@tecsinapse/cortex-react 2.0.0 → 2.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/PhoneInput/Option.d.ts +6 -0
- package/dist/types/components/PhoneInput/Options.d.ts +1 -0
- package/dist/types/components/PhoneInput/PhoneInput.d.ts +1 -0
- package/dist/types/components/PhoneInput/Popover.d.ts +4 -0
- package/dist/types/components/PhoneInput/Root.d.ts +6 -0
- package/dist/types/components/PhoneInput/Trigger.d.ts +6 -0
- package/dist/types/components/PhoneInput/context.d.ts +16 -0
- package/dist/types/components/PhoneInput/index.d.ts +22 -0
- package/package.json +3 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Country } from './context';
|
|
2
|
+
export declare const PhoneInputOption: ({ country, handleSelectCountry, disableClick, }: {
|
|
3
|
+
country: Country | null;
|
|
4
|
+
handleSelectCountry: (country: Country | null) => void;
|
|
5
|
+
disableClick?: boolean;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PhoneInputOptions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PhoneInput: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Country {
|
|
2
|
+
country: string;
|
|
3
|
+
iso: string;
|
|
4
|
+
code: string;
|
|
5
|
+
}
|
|
6
|
+
interface PhoneInputContextProps {
|
|
7
|
+
triggerWidth?: number;
|
|
8
|
+
setTriggerWidth?: (width: number) => void;
|
|
9
|
+
isOpen?: boolean;
|
|
10
|
+
setIsOpen?: (isOpen: boolean) => void;
|
|
11
|
+
country?: Country | null;
|
|
12
|
+
setCountry?: (country: Country | null) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const PhoneInputContext: import("react").Context<PhoneInputContextProps>;
|
|
15
|
+
export declare const usePhoneInput: () => PhoneInputContextProps;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const PhoneInput: {
|
|
2
|
+
Root: ({ children, className, defaultDDI, }: {
|
|
3
|
+
children: import("react").ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
defaultDDI?: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Popover: ({ children }: {
|
|
8
|
+
children: import("react").ReactNode;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Trigger: ({ onChange, disabled, label, value, }: {
|
|
11
|
+
onChange?: (value: any) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
Option: ({ country, handleSelectCountry, disableClick, }: {
|
|
17
|
+
country: import("./context").Country | null;
|
|
18
|
+
handleSelectCountry: (country: import("./context").Country | null) => void;
|
|
19
|
+
disableClick?: boolean;
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
Options: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "2.0.0",
|
|
3
|
+
"version": "2.1.0-beta.0",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"currency.js": "2.0.4",
|
|
26
26
|
"embla-carousel-autoplay": "^8.0.0",
|
|
27
27
|
"embla-carousel-react": "^8.6.0",
|
|
28
|
+
"libphonenumber-js": "^1.12.31",
|
|
28
29
|
"react-aria": "3.38.1",
|
|
29
30
|
"react-dropzone": "14.3.8",
|
|
30
31
|
"react-imask": "7.6.1",
|
|
@@ -48,5 +49,5 @@
|
|
|
48
49
|
"react-icons": ">=5.2.0",
|
|
49
50
|
"tailwindcss": "^4.1.16"
|
|
50
51
|
},
|
|
51
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "574735ac6e5adc45d41ba293ae2ae4f4b929e0c5"
|
|
52
53
|
}
|