@vespiario-thailand/design-system 1.4.2 → 1.4.4
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/components/generals/PhoneTextField/PhoneTextFieldCountrySelect.d.ts +14 -7
- package/dist/components/generals/PhoneTextField/index.d.ts +1 -6
- package/dist/components/generals/Select/index.d.ts +24 -10
- package/dist/vespa-design-system.js +5443 -6507
- package/dist/vespa-design-system.umd.cjs +15 -18
- package/package.json +34 -32
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export type PhoneTextFieldCountrySelectProps = {
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
onValueChange?: (value: string) => void;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
defaultOpen?: boolean;
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
10
|
+
dir?: 'ltr' | 'rtl';
|
|
11
|
+
name?: string;
|
|
12
|
+
autoComplete?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
form?: string;
|
|
5
16
|
id?: string;
|
|
6
17
|
isError?: boolean;
|
|
7
18
|
children?: ReactNode;
|
|
@@ -12,11 +23,7 @@ export type PhoneTextFieldCountryItemProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
12
23
|
value: string;
|
|
13
24
|
disabled?: boolean;
|
|
14
25
|
};
|
|
15
|
-
export declare const PhoneTextFieldCountrySelect: import('react').ForwardRefExoticComponent<
|
|
16
|
-
id?: string | undefined;
|
|
17
|
-
isError?: boolean | undefined;
|
|
18
|
-
children?: ReactNode;
|
|
19
|
-
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
export declare const PhoneTextFieldCountrySelect: import('react').ForwardRefExoticComponent<PhoneTextFieldCountrySelectProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
20
27
|
export declare const PhoneTextFieldCountryItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
21
28
|
code: string;
|
|
22
29
|
countryName: string;
|
|
@@ -21,12 +21,7 @@ export declare const PhoneTextField: import('react').ForwardRefExoticComponent<H
|
|
|
21
21
|
isError?: boolean | undefined;
|
|
22
22
|
disabled?: boolean | undefined;
|
|
23
23
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
24
|
-
CountrySelect: import('react').ForwardRefExoticComponent<import('
|
|
25
|
-
id?: string | undefined;
|
|
26
|
-
isError?: boolean | undefined;
|
|
27
|
-
/** contexts */
|
|
28
|
-
children?: import('react').ReactNode;
|
|
29
|
-
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
CountrySelect: import('react').ForwardRefExoticComponent<import('./PhoneTextFieldCountrySelect').PhoneTextFieldCountrySelectProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
30
25
|
CountryItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
31
26
|
code: string;
|
|
32
27
|
countryName: string;
|
|
@@ -1,23 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
2
3
|
import * as PrimitiveSelect from '@radix-ui/react-select';
|
|
3
4
|
export type SelectCtxType = {
|
|
4
5
|
isError?: boolean;
|
|
5
6
|
};
|
|
6
|
-
export declare const SelectCtx:
|
|
7
|
-
export type SelectProps =
|
|
7
|
+
export declare const SelectCtx: React.Context<SelectCtxType>;
|
|
8
|
+
export type SelectProps = {
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onValueChange?: (value: string) => void;
|
|
12
|
+
open?: boolean;
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
dir?: 'ltr' | 'rtl';
|
|
16
|
+
name?: string;
|
|
17
|
+
autoComplete?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
form?: string;
|
|
8
21
|
isError?: boolean;
|
|
22
|
+
children?: React.ReactNode;
|
|
9
23
|
};
|
|
10
24
|
export declare const Select: {
|
|
11
25
|
(props: SelectProps): JSX.Element;
|
|
12
26
|
displayName: string;
|
|
13
27
|
} & {
|
|
14
|
-
Trigger:
|
|
28
|
+
Trigger: React.ForwardRefExoticComponent<PrimitiveSelect.SelectTriggerProps & {
|
|
15
29
|
isBlock?: boolean | undefined;
|
|
16
30
|
placeholder?: string | undefined;
|
|
17
|
-
} &
|
|
18
|
-
Value:
|
|
19
|
-
Icon:
|
|
20
|
-
Portal:
|
|
21
|
-
Content:
|
|
22
|
-
Item:
|
|
31
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
Value: React.ForwardRefExoticComponent<PrimitiveSelect.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
33
|
+
Icon: React.ForwardRefExoticComponent<PrimitiveSelect.SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
34
|
+
Portal: React.FC<PrimitiveSelect.SelectPortalProps>;
|
|
35
|
+
Content: React.ForwardRefExoticComponent<PrimitiveSelect.SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
Item: React.ForwardRefExoticComponent<PrimitiveSelect.SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
37
|
};
|