Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 340951c

Browse files
committed
release
1 parent 498d139 commit 340951c

File tree

6 files changed

+22
-19
lines changed

6 files changed

+22
-19
lines changed

apps/docs/src/app/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
CardFooter,
88
CardHeader,
99
CardTitle,
10+
InputPhoneNumber,
1011
Switch,
1112
} from '@codefixlabs/ui';
1213
import { BellIcon, CheckIcon } from 'lucide-react';
@@ -94,6 +95,10 @@ export default function Page(): React.JSX.Element {
9495
</Link>
9596
</div>
9697

98+
<div className="">
99+
<InputPhoneNumber placeholder="Enter your phone number" />
100+
</div>
101+
97102
<article className="prose lg:prose-xl">
98103
<h1>Garlic bread with cheese: What the science tells us</h1>
99104
<p>

packages/hooks/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefixlabs/hooks
22

3+
## 0.1.19
4+
5+
### Patch Changes
6+
7+
- Only export contries
8+
39
## 0.1.18
410

511
### Patch Changes

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefixlabs/hooks",
3-
"version": "0.1.18",
3+
"version": "0.1.19",
44
"license": "MIT",
55
"sideEffects": false,
66
"exports": {

packages/hooks/src/use-countries.ts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import type { ICity, ICountry, IState } from 'country-state-city';
2-
import { City, Country, State } from 'country-state-city';
1+
import type { ICountry } from 'country-state-city';
2+
import { Country } from 'country-state-city';
33
import { useMemo } from 'react';
44

55
export function useCountries(): {
66
countries: ICountry[];
7-
getStatesOfCountry: (countryCode: string) => IState[];
8-
getCitiesOfState: (countryCode: string, stateCode: string) => ICity[];
97
} {
108
const countries = useMemo<ICountry[]>(
119
() =>
@@ -18,20 +16,7 @@ export function useCountries(): {
1816
[],
1917
);
2018

21-
const getStatesOfCountry = (countryCode: string): IState[] => {
22-
return State.getStatesOfCountry(countryCode);
23-
};
24-
25-
const getCitiesOfState = (
26-
countryCode: string,
27-
stateCode: string,
28-
): ICity[] => {
29-
return City.getCitiesOfState(countryCode, stateCode);
30-
};
31-
3219
return {
3320
countries,
34-
getCitiesOfState,
35-
getStatesOfCountry,
3621
};
3722
}

packages/ui/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @codefixlabs/ui
22

3+
## 0.1.46
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @codefixlabs/hooks@0.1.19
9+
310
## 0.1.45
411

512
### Patch Changes

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefixlabs/ui",
3-
"version": "0.1.45",
3+
"version": "0.1.46",
44
"license": "MIT",
55
"sideEffects": false,
66
"exports": {

0 commit comments

Comments
 (0)