@alikhalilll/ui 1.2.0 → 1.2.2
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/README.md +68 -45
- package/dist/assets/styles.css +2 -74
- package/dist/chunks/{ADrawerContent.vue_vue_type_script_setup_true_lang-BivIZvV1.mjs → ADrawerContent.vue_vue_type_script_setup_true_lang-W28CSzER.mjs} +15 -15
- package/dist/chunks/ADrawerContent.vue_vue_type_script_setup_true_lang-W28CSzER.mjs.map +1 -0
- package/dist/chunks/AResponsivePopoverContent.vue_vue_type_script_setup_true_lang-BrBsDiHc.mjs +113 -0
- package/dist/chunks/AResponsivePopoverContent.vue_vue_type_script_setup_true_lang-BrBsDiHc.mjs.map +1 -0
- package/dist/chunks/ATellInput.vue_vue_type_script_setup_true_lang-D4odgAna.mjs +1606 -0
- package/dist/chunks/ATellInput.vue_vue_type_script_setup_true_lang-D4odgAna.mjs.map +1 -0
- package/dist/chunks/useEventScrollLock-BcP8fg-L.mjs +241 -0
- package/dist/chunks/useEventScrollLock-BcP8fg-L.mjs.map +1 -0
- package/dist/drawer.mjs +1 -1
- package/dist/entries/drawer/components/ADrawer.vue.d.ts +31 -0
- package/dist/entries/drawer/components/ADrawer.vue.d.ts.map +1 -0
- package/dist/entries/drawer/components/ADrawerContent.vue.d.ts +33 -0
- package/dist/entries/drawer/components/ADrawerContent.vue.d.ts.map +1 -0
- package/dist/entries/drawer/components/ADrawerOverlay.vue.d.ts +9 -0
- package/dist/entries/drawer/components/ADrawerOverlay.vue.d.ts.map +1 -0
- package/dist/entries/drawer/components/ADrawerTrigger.vue.d.ts +15 -0
- package/dist/entries/drawer/components/ADrawerTrigger.vue.d.ts.map +1 -0
- package/dist/entries/drawer/index.d.ts +5 -0
- package/dist/entries/drawer/index.d.ts.map +1 -0
- package/dist/entries/input/components/AInput.vue.d.ts +36 -0
- package/dist/entries/input/components/AInput.vue.d.ts.map +1 -0
- package/dist/entries/input/index.d.ts +2 -0
- package/dist/entries/input/index.d.ts.map +1 -0
- package/dist/entries/popover/components/APopover.vue.d.ts +24 -0
- package/dist/entries/popover/components/APopover.vue.d.ts.map +1 -0
- package/dist/entries/popover/components/APopoverContent.vue.d.ts +48 -0
- package/dist/entries/popover/components/APopoverContent.vue.d.ts.map +1 -0
- package/dist/entries/popover/components/APopoverOverlay.vue.d.ts +17 -0
- package/dist/entries/popover/components/APopoverOverlay.vue.d.ts.map +1 -0
- package/dist/entries/popover/components/APopoverTrigger.vue.d.ts +15 -0
- package/dist/entries/popover/components/APopoverTrigger.vue.d.ts.map +1 -0
- package/dist/entries/popover/composables/useEventScrollLock.d.ts +21 -0
- package/dist/entries/popover/composables/useEventScrollLock.d.ts.map +1 -0
- package/dist/entries/popover/index.d.ts +6 -0
- package/dist/entries/popover/index.d.ts.map +1 -0
- package/dist/entries/responsive-popover/components/AResponsivePopover.vue.d.ts +50 -0
- package/dist/entries/responsive-popover/components/AResponsivePopover.vue.d.ts.map +1 -0
- package/dist/entries/responsive-popover/components/AResponsivePopoverContent.vue.d.ts +39 -0
- package/dist/entries/responsive-popover/components/AResponsivePopoverContent.vue.d.ts.map +1 -0
- package/dist/entries/responsive-popover/components/AResponsivePopoverTrigger.vue.d.ts +20 -0
- package/dist/entries/responsive-popover/components/AResponsivePopoverTrigger.vue.d.ts.map +1 -0
- package/dist/entries/responsive-popover/composables/useResponsivePopoverContext.d.ts +10 -0
- package/dist/entries/responsive-popover/composables/useResponsivePopoverContext.d.ts.map +1 -0
- package/dist/entries/responsive-popover/index.d.ts +4 -0
- package/dist/entries/responsive-popover/index.d.ts.map +1 -0
- package/dist/entries/tell-input/components/ACountryFlag.vue.d.ts +30 -0
- package/dist/entries/tell-input/components/ACountryFlag.vue.d.ts.map +1 -0
- package/dist/entries/tell-input/components/ACountrySelect.vue.d.ts +140 -0
- package/dist/entries/tell-input/components/ACountrySelect.vue.d.ts.map +1 -0
- package/dist/entries/tell-input/components/ATellInput.vue.d.ts +145 -0
- package/dist/entries/tell-input/components/ATellInput.vue.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/useCountryDetection.d.ts +44 -0
- package/dist/entries/tell-input/composables/useCountryDetection.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/useCountryMatching.d.ts +44 -0
- package/dist/entries/tell-input/composables/useCountryMatching.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/usePhoneValidation.d.ts +110 -0
- package/dist/entries/tell-input/composables/usePhoneValidation.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/useTellInputValidation.d.ts +67 -0
- package/dist/entries/tell-input/composables/useTellInputValidation.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/useTypingPhase.d.ts +50 -0
- package/dist/entries/tell-input/composables/useTypingPhase.d.ts.map +1 -0
- package/dist/entries/tell-input/index.d.ts +12 -0
- package/dist/entries/tell-input/index.d.ts.map +1 -0
- package/dist/entries/tell-input/utils/digits.d.ts +22 -0
- package/dist/entries/tell-input/utils/digits.d.ts.map +1 -0
- package/dist/entries/tell-input/utils/flag-url.d.ts +8 -0
- package/dist/entries/tell-input/utils/flag-url.d.ts.map +1 -0
- package/dist/entries/tell-input/utils/types.d.ts +120 -0
- package/dist/entries/tell-input/utils/types.d.ts.map +1 -0
- package/dist/index.d.ts +7 -1131
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +39 -33
- package/dist/popover.mjs +5 -4
- package/dist/responsive-popover.mjs +1 -1
- package/dist/tell-input.mjs +14 -9
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/{utils.d.ts → utils/sizes.d.ts} +18 -29
- package/dist/utils/sizes.d.ts.map +1 -0
- package/entries/tell-input/README.md +1 -0
- package/package.json +14 -10
- package/dist/chunks/ADrawerContent.vue_vue_type_script_setup_true_lang-BivIZvV1.mjs.map +0 -1
- package/dist/chunks/APopoverContent.vue_vue_type_script_setup_true_lang-o1XhV9DM.mjs +0 -132
- package/dist/chunks/APopoverContent.vue_vue_type_script_setup_true_lang-o1XhV9DM.mjs.map +0 -1
- package/dist/chunks/AResponsivePopoverContent.vue_vue_type_script_setup_true_lang-BYEb5UBL.mjs +0 -92
- package/dist/chunks/AResponsivePopoverContent.vue_vue_type_script_setup_true_lang-BYEb5UBL.mjs.map +0 -1
- package/dist/chunks/ATellInput.vue_vue_type_script_setup_true_lang-Bv_lLV_l.mjs +0 -1485
- package/dist/chunks/ATellInput.vue_vue_type_script_setup_true_lang-Bv_lLV_l.mjs.map +0 -1
- package/dist/drawer.d.ts +0 -116
- package/dist/input.d.ts +0 -65
- package/dist/popover.d.ts +0 -117
- package/dist/responsive-popover.d.ts +0 -124
- package/dist/tell-input.d.ts +0 -732
package/dist/index.d.ts
CHANGED
|
@@ -1,1131 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { DialogOverlayProps } from 'reka-ui';
|
|
9
|
-
import { DrawerRootProps } from 'vaul-vue';
|
|
10
|
-
import { DrawerTriggerProps } from 'vaul-vue';
|
|
11
|
-
import { FocusOutsideEvent } from 'reka-ui';
|
|
12
|
-
import { HTMLAttributes } from 'vue';
|
|
13
|
-
import { PointerDownOutsideEvent } from 'reka-ui';
|
|
14
|
-
import { PopoverContentProps } from 'reka-ui';
|
|
15
|
-
import { PopoverRootProps } from 'reka-ui';
|
|
16
|
-
import { PopoverTriggerProps } from 'reka-ui';
|
|
17
|
-
import { PublicProps } from 'vue';
|
|
18
|
-
import { Ref } from 'vue';
|
|
19
|
-
import { VariantProps } from 'class-variance-authority';
|
|
20
|
-
|
|
21
|
-
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
22
|
-
"update:modelValue": (payload: string | number) => any;
|
|
23
|
-
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
-
"onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
size: Size;
|
|
27
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
28
|
-
|
|
29
|
-
declare const __VLS_component_10: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
|
|
30
|
-
sideOffset: number;
|
|
31
|
-
align: "start" | "center" | "end";
|
|
32
|
-
overlay: boolean;
|
|
33
|
-
breakpoint: string;
|
|
34
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
35
|
-
|
|
36
|
-
declare const __VLS_component_11: DefineComponent<__VLS_PublicProps_2, {
|
|
37
|
-
validation: ComputedRef<PhoneValidationResult>;
|
|
38
|
-
required: ComputedRef<PhoneRequiredInfo | null>;
|
|
39
|
-
selectedDialCode: ComputedRef<string | null>;
|
|
40
|
-
validationState: ComputedRef<"error" | "idle" | "valid">;
|
|
41
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
42
|
-
"update:phone": (value: string) => any;
|
|
43
|
-
"update:country": (value: number | null) => any;
|
|
44
|
-
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
45
|
-
"onUpdate:phone"?: ((value: string) => any) | undefined;
|
|
46
|
-
"onUpdate:country"?: ((value: number | null) => any) | undefined;
|
|
47
|
-
}>, {
|
|
48
|
-
size: ATellInputSize;
|
|
49
|
-
placeholder: string;
|
|
50
|
-
ipEndpoint: string;
|
|
51
|
-
defaultCountry: string;
|
|
52
|
-
detectCountry: DetectionStrategy;
|
|
53
|
-
detectFromInput: boolean;
|
|
54
|
-
detectDebounceMs: number;
|
|
55
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
56
|
-
|
|
57
|
-
declare const __VLS_component_12: DefineComponent<__VLS_PublicProps_3, {
|
|
58
|
-
open: Ref<boolean, boolean>;
|
|
59
|
-
setOpen: (v: boolean) => boolean;
|
|
60
|
-
search: Ref<string, string>;
|
|
61
|
-
setSearch: (v: string) => string;
|
|
62
|
-
selectedCountry: ComputedRef<CountryOption<RestCountry> | null>;
|
|
63
|
-
selectCountry: typeof selectCountry;
|
|
64
|
-
countries: ComputedRef<CountryOption<RestCountry>[]>;
|
|
65
|
-
recents: Ref<string[], string[]>;
|
|
66
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
67
|
-
"update:selected": (value: string) => any;
|
|
68
|
-
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
69
|
-
"onUpdate:selected"?: ((value: string) => any) | undefined;
|
|
70
|
-
}>, {
|
|
71
|
-
size: Size;
|
|
72
|
-
searchPlaceholder: string;
|
|
73
|
-
emptyText: string;
|
|
74
|
-
loadingText: string;
|
|
75
|
-
suggestedLabel: string;
|
|
76
|
-
allCountriesLabel: string;
|
|
77
|
-
countryLabel: string;
|
|
78
|
-
selectCountryLabel: string;
|
|
79
|
-
suggestedLimit: number;
|
|
80
|
-
maxResults: number;
|
|
81
|
-
kbdOpen: string | null;
|
|
82
|
-
kbdClose: string | null;
|
|
83
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
84
|
-
|
|
85
|
-
declare const __VLS_component_13: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {
|
|
86
|
-
width: number;
|
|
87
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
88
|
-
|
|
89
|
-
declare const __VLS_component_2: DefineComponent<PopoverRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
90
|
-
"update:open": (value: boolean) => any;
|
|
91
|
-
}, string, PublicProps, Readonly<PopoverRootProps> & Readonly<{
|
|
92
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
93
|
-
}>, {
|
|
94
|
-
modal: boolean;
|
|
95
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
96
|
-
|
|
97
|
-
declare const __VLS_component_3: DefineComponent<PopoverTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PopoverTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
98
|
-
|
|
99
|
-
declare const __VLS_component_4: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
100
|
-
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
101
|
-
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
102
|
-
focusOutside: (event: FocusOutsideEvent) => any;
|
|
103
|
-
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
104
|
-
openAutoFocus: (event: Event) => any;
|
|
105
|
-
closeAutoFocus: (event: Event) => any;
|
|
106
|
-
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
107
|
-
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
108
|
-
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
109
|
-
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
110
|
-
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
111
|
-
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
112
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
113
|
-
}>, {
|
|
114
|
-
sideOffset: number;
|
|
115
|
-
align: "start" | "center" | "end";
|
|
116
|
-
overlay: boolean;
|
|
117
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
118
|
-
|
|
119
|
-
declare const __VLS_component_5: DefineComponent<DrawerRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
120
|
-
"update:open": (open: boolean) => any;
|
|
121
|
-
animationEnd: (open: boolean) => any;
|
|
122
|
-
drag: (percentageDragged: number) => any;
|
|
123
|
-
release: (open: boolean) => any;
|
|
124
|
-
close: () => any;
|
|
125
|
-
"update:activeSnapPoint": (val: string | number) => any;
|
|
126
|
-
}, string, PublicProps, Readonly<DrawerRootProps> & Readonly<{
|
|
127
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
128
|
-
onAnimationEnd?: ((open: boolean) => any) | undefined;
|
|
129
|
-
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
130
|
-
onRelease?: ((open: boolean) => any) | undefined;
|
|
131
|
-
onClose?: (() => any) | undefined;
|
|
132
|
-
"onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
|
|
133
|
-
}>, {
|
|
134
|
-
shouldScaleBackground: boolean;
|
|
135
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
136
|
-
|
|
137
|
-
declare const __VLS_component_6: DefineComponent<DrawerTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DrawerTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
138
|
-
|
|
139
|
-
declare const __VLS_component_7: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
140
|
-
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
141
|
-
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
142
|
-
focusOutside: (event: FocusOutsideEvent) => any;
|
|
143
|
-
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
144
|
-
openAutoFocus: (event: Event) => any;
|
|
145
|
-
closeAutoFocus: (event: Event) => any;
|
|
146
|
-
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
147
|
-
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
148
|
-
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
149
|
-
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
150
|
-
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
151
|
-
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
152
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
153
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
154
|
-
|
|
155
|
-
declare const __VLS_component_8: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
156
|
-
"update:open": (value: boolean) => any;
|
|
157
|
-
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
158
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
159
|
-
}>, {
|
|
160
|
-
modal: boolean;
|
|
161
|
-
breakpoint: string;
|
|
162
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
163
|
-
|
|
164
|
-
declare const __VLS_component_9: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {
|
|
165
|
-
breakpoint: string;
|
|
166
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
167
|
-
|
|
168
|
-
declare type __VLS_Props = {
|
|
169
|
-
defaultValue?: string | number;
|
|
170
|
-
modelValue?: string | number;
|
|
171
|
-
class?: HTMLAttributes['class'];
|
|
172
|
-
/** Classes for the inner <input> element (useful when prefix/suffix are present). */
|
|
173
|
-
inputClass?: HTMLAttributes['class'];
|
|
174
|
-
/** Classes for the prefix wrapper. */
|
|
175
|
-
prefixClass?: HTMLAttributes['class'];
|
|
176
|
-
/** Classes for the suffix wrapper. */
|
|
177
|
-
suffixClass?: HTMLAttributes['class'];
|
|
178
|
-
size?: Size;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
declare type __VLS_Props_10 = {
|
|
182
|
-
class?: HTMLAttributes['class'];
|
|
183
|
-
triggerClass?: HTMLAttributes['class'];
|
|
184
|
-
contentClass?: HTMLAttributes['class'];
|
|
185
|
-
popoverClass?: HTMLAttributes['class'];
|
|
186
|
-
drawerClass?: HTMLAttributes['class'];
|
|
187
|
-
searchPlaceholder?: string;
|
|
188
|
-
emptyText?: string;
|
|
189
|
-
loadingText?: string;
|
|
190
|
-
suggestedLabel?: string;
|
|
191
|
-
allCountriesLabel?: string;
|
|
192
|
-
/** ISO2 codes that are selectable. Others are listed but disabled. */
|
|
193
|
-
allowedDialCodes?: string[];
|
|
194
|
-
disabled?: boolean;
|
|
195
|
-
/** Drives the trigger button padding + text size. Matches ATellInput's `size`. */
|
|
196
|
-
size?: Size;
|
|
197
|
-
/** Max items rendered under the "Suggested" header (current + recents, deduped). */
|
|
198
|
-
suggestedLimit?: number;
|
|
199
|
-
/** Cap the number of matching countries shown in search results. */
|
|
200
|
-
maxResults?: number;
|
|
201
|
-
/** Override the flag URL builder, e.g. `(iso, w) => \`/flags/${iso}.svg\``. */
|
|
202
|
-
flagUrl?: (iso2: string, width: number) => string;
|
|
203
|
-
/**
|
|
204
|
-
* Custom search predicate. Default: substring match on the precomputed `search_key`.
|
|
205
|
-
* Return `true` to keep the country in results.
|
|
206
|
-
*/
|
|
207
|
-
searcher?: (query: string, country: CountryOption) => boolean;
|
|
208
|
-
/**
|
|
209
|
-
* Provide your own country list (bypasses the REST Countries fetch). Useful when you
|
|
210
|
-
* already have a curated subset, an i18n'd list, or want to avoid the network call.
|
|
211
|
-
*/
|
|
212
|
-
countries?: CountryOption[];
|
|
213
|
-
/** Override the right-side kbd hints. Pass `null` to hide. */
|
|
214
|
-
kbdOpen?: string | null;
|
|
215
|
-
kbdClose?: string | null;
|
|
216
|
-
/** BCP-47 locale — country names render localized via `Intl.DisplayNames`. */
|
|
217
|
-
locale?: string;
|
|
218
|
-
/** Prefix of the trigger's `aria-label` when a country is selected, e.g. `"Country"`. */
|
|
219
|
-
countryLabel?: string;
|
|
220
|
-
/** Trigger's `aria-label` when no country is selected. */
|
|
221
|
-
selectCountryLabel?: string;
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
declare type __VLS_Props_11 = {
|
|
225
|
-
/** ISO 3166-1 alpha-2 country code, case-insensitive. */
|
|
226
|
-
iso2: string;
|
|
227
|
-
/** Pixel width served by flagcdn. 40 is crisp at retina up to ~24px wide. */
|
|
228
|
-
width?: number;
|
|
229
|
-
/** Optional explicit URL override. When set, `iso2` / `width` / `flagUrl` are ignored. */
|
|
230
|
-
src?: string | null;
|
|
231
|
-
/** Function `(iso2, width) => string` — fully replace the URL builder. */
|
|
232
|
-
flagUrl?: FlagUrlBuilder;
|
|
233
|
-
alt?: string;
|
|
234
|
-
class?: HTMLAttributes['class'];
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
declare type __VLS_Props_2 = PopoverContentProps & {
|
|
238
|
-
class?: HTMLAttributes['class'];
|
|
239
|
-
/** Dim the entire viewport behind the popover and block all interaction with the
|
|
240
|
-
* page (clicks are captured by the overlay; body scroll is locked while open).
|
|
241
|
-
* Pair with `<APopover :modal="true">` (the default) for the full modal behaviour. */
|
|
242
|
-
overlay?: boolean;
|
|
243
|
-
overlayClass?: HTMLAttributes['class'];
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
declare type __VLS_Props_3 = {
|
|
247
|
-
class?: HTMLAttributes['class'];
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
declare type __VLS_Props_4 = DialogContentProps & {
|
|
251
|
-
class?: HTMLAttributes['class'];
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
declare type __VLS_Props_5 = DialogOverlayProps & {
|
|
255
|
-
class?: HTMLAttributes['class'];
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
declare type __VLS_Props_6 = {
|
|
259
|
-
/** CSS media query for the desktop break. Below this width we render a vaul drawer. */
|
|
260
|
-
breakpoint?: string;
|
|
261
|
-
/**
|
|
262
|
-
* When true, the popover (desktop) locks page scroll, traps focus, and renders an overlay.
|
|
263
|
-
* The drawer (mobile) is always modal-like (vaul-vue ships its own overlay + scroll-lock).
|
|
264
|
-
*/
|
|
265
|
-
modal?: boolean;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
declare type __VLS_Props_7 = {
|
|
269
|
-
breakpoint?: string;
|
|
270
|
-
asChild?: boolean;
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
declare type __VLS_Props_8 = {
|
|
274
|
-
breakpoint?: string;
|
|
275
|
-
/** Classes applied on both branches. Avoid width / inset classes here. */
|
|
276
|
-
class?: HTMLAttributes['class'];
|
|
277
|
-
/** Classes applied only when the popover (desktop) branch is rendered. */
|
|
278
|
-
popoverClass?: HTMLAttributes['class'];
|
|
279
|
-
/** Classes applied only when the drawer (mobile) branch is rendered. */
|
|
280
|
-
drawerClass?: HTMLAttributes['class'];
|
|
281
|
-
/**
|
|
282
|
-
* Render the dimmed overlay on the desktop popover branch. Defaults to `false` — popovers
|
|
283
|
-
* on desktop are non-modal-looking by convention. The mobile drawer always has its own
|
|
284
|
-
* overlay (vaul-vue's `DrawerOverlay`) regardless of this prop.
|
|
285
|
-
*/
|
|
286
|
-
overlay?: boolean;
|
|
287
|
-
align?: 'start' | 'center' | 'end';
|
|
288
|
-
sideOffset?: number;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
declare type __VLS_Props_9 = ExtendedProps;
|
|
292
|
-
|
|
293
|
-
declare type __VLS_PublicProps = {
|
|
294
|
-
'open'?: boolean;
|
|
295
|
-
} & __VLS_Props_6;
|
|
296
|
-
|
|
297
|
-
declare type __VLS_PublicProps_2 = {
|
|
298
|
-
'phone'?: string;
|
|
299
|
-
'country'?: number | null;
|
|
300
|
-
} & __VLS_Props_9;
|
|
301
|
-
|
|
302
|
-
declare type __VLS_PublicProps_3 = {
|
|
303
|
-
'selected'?: string;
|
|
304
|
-
} & __VLS_Props_10;
|
|
305
|
-
|
|
306
|
-
declare function __VLS_template(): {
|
|
307
|
-
attrs: Partial<{}>;
|
|
308
|
-
slots: Readonly<{
|
|
309
|
-
/** Content rendered inside the input's border, left of the field. */
|
|
310
|
-
prefix?: () => unknown;
|
|
311
|
-
/** Content rendered inside the input's border, right of the field. */
|
|
312
|
-
suffix?: () => unknown;
|
|
313
|
-
}> & {
|
|
314
|
-
/** Content rendered inside the input's border, left of the field. */
|
|
315
|
-
prefix?: () => unknown;
|
|
316
|
-
/** Content rendered inside the input's border, right of the field. */
|
|
317
|
-
suffix?: () => unknown;
|
|
318
|
-
};
|
|
319
|
-
refs: {};
|
|
320
|
-
rootEl: any;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
declare function __VLS_template_10(): {
|
|
324
|
-
attrs: Partial<{}>;
|
|
325
|
-
slots: {
|
|
326
|
-
default?(_: {}): any;
|
|
327
|
-
default?(_: {}): any;
|
|
328
|
-
};
|
|
329
|
-
refs: {};
|
|
330
|
-
rootEl: any;
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
declare function __VLS_template_11(): {
|
|
334
|
-
attrs: Partial<{}>;
|
|
335
|
-
slots: Readonly<{
|
|
336
|
-
/** Content before the country select trigger (e.g. an icon). */
|
|
337
|
-
prefix?: () => unknown;
|
|
338
|
-
/** Content between the input and the validation icons. */
|
|
339
|
-
suffix?: (props: {
|
|
340
|
-
validationState: "idle" | "valid" | "error";
|
|
341
|
-
validation: PhoneValidationResult;
|
|
342
|
-
}) => unknown;
|
|
343
|
-
/** Replace the green check shown when the number validates. */
|
|
344
|
-
'valid-icon'?: () => unknown;
|
|
345
|
-
/** Replace the warning icon shown when the number fails validation. */
|
|
346
|
-
'error-icon'?: (props: {
|
|
347
|
-
reason: string;
|
|
348
|
-
}) => unknown;
|
|
349
|
-
/** Replace the dim helper line shown below the input when empty. */
|
|
350
|
-
hint?: (props: {
|
|
351
|
-
country: string;
|
|
352
|
-
formatHint: string;
|
|
353
|
-
example: string | null;
|
|
354
|
-
}) => unknown;
|
|
355
|
-
/** Replace the error message rendered when invalid. */
|
|
356
|
-
error?: (props: {
|
|
357
|
-
message: string;
|
|
358
|
-
reason: string;
|
|
359
|
-
validation: PhoneValidationResult;
|
|
360
|
-
}) => unknown;
|
|
361
|
-
/** Forwarded to ACountrySelect — replace the trigger button. */
|
|
362
|
-
trigger?: (props: {
|
|
363
|
-
selectedCountry: CountryOption | null;
|
|
364
|
-
open: boolean;
|
|
365
|
-
sizeClasses: string;
|
|
366
|
-
}) => unknown;
|
|
367
|
-
/** Forwarded to ACountrySelect — replace the chevron. */
|
|
368
|
-
chevron?: (props: {
|
|
369
|
-
open: boolean;
|
|
370
|
-
}) => unknown;
|
|
371
|
-
/** Forwarded — replace any flag rendering. */
|
|
372
|
-
flag?: (props: {
|
|
373
|
-
country: CountryOption;
|
|
374
|
-
context: "trigger" | "item";
|
|
375
|
-
}) => unknown;
|
|
376
|
-
/** Forwarded — replace each country list row. */
|
|
377
|
-
item?: (props: {
|
|
378
|
-
country: CountryOption;
|
|
379
|
-
selected: boolean;
|
|
380
|
-
disabled: boolean;
|
|
381
|
-
select: () => void;
|
|
382
|
-
}) => unknown;
|
|
383
|
-
/** Forwarded — section header. */
|
|
384
|
-
'group-header'?: (props: {
|
|
385
|
-
label: string;
|
|
386
|
-
group: "suggested" | "all";
|
|
387
|
-
}) => unknown;
|
|
388
|
-
/** Forwarded — search bar. */
|
|
389
|
-
search?: (props: {
|
|
390
|
-
value: string;
|
|
391
|
-
setValue: (v: string) => void;
|
|
392
|
-
isSearching: boolean;
|
|
393
|
-
}) => unknown;
|
|
394
|
-
loading?: () => unknown;
|
|
395
|
-
empty?: (props: {
|
|
396
|
-
query: string;
|
|
397
|
-
}) => unknown;
|
|
398
|
-
}> & {
|
|
399
|
-
/** Content before the country select trigger (e.g. an icon). */
|
|
400
|
-
prefix?: () => unknown;
|
|
401
|
-
/** Content between the input and the validation icons. */
|
|
402
|
-
suffix?: (props: {
|
|
403
|
-
validationState: "idle" | "valid" | "error";
|
|
404
|
-
validation: PhoneValidationResult;
|
|
405
|
-
}) => unknown;
|
|
406
|
-
/** Replace the green check shown when the number validates. */
|
|
407
|
-
'valid-icon'?: () => unknown;
|
|
408
|
-
/** Replace the warning icon shown when the number fails validation. */
|
|
409
|
-
'error-icon'?: (props: {
|
|
410
|
-
reason: string;
|
|
411
|
-
}) => unknown;
|
|
412
|
-
/** Replace the dim helper line shown below the input when empty. */
|
|
413
|
-
hint?: (props: {
|
|
414
|
-
country: string;
|
|
415
|
-
formatHint: string;
|
|
416
|
-
example: string | null;
|
|
417
|
-
}) => unknown;
|
|
418
|
-
/** Replace the error message rendered when invalid. */
|
|
419
|
-
error?: (props: {
|
|
420
|
-
message: string;
|
|
421
|
-
reason: string;
|
|
422
|
-
validation: PhoneValidationResult;
|
|
423
|
-
}) => unknown;
|
|
424
|
-
/** Forwarded to ACountrySelect — replace the trigger button. */
|
|
425
|
-
trigger?: (props: {
|
|
426
|
-
selectedCountry: CountryOption | null;
|
|
427
|
-
open: boolean;
|
|
428
|
-
sizeClasses: string;
|
|
429
|
-
}) => unknown;
|
|
430
|
-
/** Forwarded to ACountrySelect — replace the chevron. */
|
|
431
|
-
chevron?: (props: {
|
|
432
|
-
open: boolean;
|
|
433
|
-
}) => unknown;
|
|
434
|
-
/** Forwarded — replace any flag rendering. */
|
|
435
|
-
flag?: (props: {
|
|
436
|
-
country: CountryOption;
|
|
437
|
-
context: "trigger" | "item";
|
|
438
|
-
}) => unknown;
|
|
439
|
-
/** Forwarded — replace each country list row. */
|
|
440
|
-
item?: (props: {
|
|
441
|
-
country: CountryOption;
|
|
442
|
-
selected: boolean;
|
|
443
|
-
disabled: boolean;
|
|
444
|
-
select: () => void;
|
|
445
|
-
}) => unknown;
|
|
446
|
-
/** Forwarded — section header. */
|
|
447
|
-
'group-header'?: (props: {
|
|
448
|
-
label: string;
|
|
449
|
-
group: "suggested" | "all";
|
|
450
|
-
}) => unknown;
|
|
451
|
-
/** Forwarded — search bar. */
|
|
452
|
-
search?: (props: {
|
|
453
|
-
value: string;
|
|
454
|
-
setValue: (v: string) => void;
|
|
455
|
-
isSearching: boolean;
|
|
456
|
-
}) => unknown;
|
|
457
|
-
loading?: () => unknown;
|
|
458
|
-
empty?: (props: {
|
|
459
|
-
query: string;
|
|
460
|
-
}) => unknown;
|
|
461
|
-
};
|
|
462
|
-
refs: {};
|
|
463
|
-
rootEl: HTMLDivElement;
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
declare function __VLS_template_12(): {
|
|
467
|
-
attrs: Partial<{}>;
|
|
468
|
-
slots: Readonly<{
|
|
469
|
-
/** Replace the entire country picker trigger button. */
|
|
470
|
-
trigger?: (props: {
|
|
471
|
-
selectedCountry: CountryOption | null;
|
|
472
|
-
open: boolean;
|
|
473
|
-
sizeClasses: string;
|
|
474
|
-
}) => unknown;
|
|
475
|
-
/** Replace the chevron icon. */
|
|
476
|
-
chevron?: (props: {
|
|
477
|
-
open: boolean;
|
|
478
|
-
}) => unknown;
|
|
479
|
-
/** Replace just the flag rendered in the trigger and items. */
|
|
480
|
-
flag?: (props: {
|
|
481
|
-
country: CountryOption;
|
|
482
|
-
context: "trigger" | "item";
|
|
483
|
-
}) => unknown;
|
|
484
|
-
/** Replace the entire search bar (input + icon + kbd). */
|
|
485
|
-
search?: (props: {
|
|
486
|
-
value: string;
|
|
487
|
-
setValue: (v: string) => void;
|
|
488
|
-
isSearching: boolean;
|
|
489
|
-
}) => unknown;
|
|
490
|
-
/** Replace the search-bar leading icon. */
|
|
491
|
-
'search-icon'?: () => unknown;
|
|
492
|
-
/** Replace the loading state. */
|
|
493
|
-
loading?: () => unknown;
|
|
494
|
-
/** Replace the empty/no-results state. */
|
|
495
|
-
empty?: (props: {
|
|
496
|
-
query: string;
|
|
497
|
-
}) => unknown;
|
|
498
|
-
/** Replace a section header. */
|
|
499
|
-
'group-header'?: (props: {
|
|
500
|
-
label: string;
|
|
501
|
-
group: "suggested" | "all";
|
|
502
|
-
}) => unknown;
|
|
503
|
-
/** Replace each country list row. Default render still available via <ACountrySelectItem />. */
|
|
504
|
-
item?: (props: {
|
|
505
|
-
country: CountryOption;
|
|
506
|
-
selected: boolean;
|
|
507
|
-
disabled: boolean;
|
|
508
|
-
select: () => void;
|
|
509
|
-
}) => unknown;
|
|
510
|
-
/** Replace just the right-side check icon for the selected row. */
|
|
511
|
-
'item-check'?: (props: {
|
|
512
|
-
country: CountryOption;
|
|
513
|
-
}) => unknown;
|
|
514
|
-
}> & {
|
|
515
|
-
/** Replace the entire country picker trigger button. */
|
|
516
|
-
trigger?: (props: {
|
|
517
|
-
selectedCountry: CountryOption | null;
|
|
518
|
-
open: boolean;
|
|
519
|
-
sizeClasses: string;
|
|
520
|
-
}) => unknown;
|
|
521
|
-
/** Replace the chevron icon. */
|
|
522
|
-
chevron?: (props: {
|
|
523
|
-
open: boolean;
|
|
524
|
-
}) => unknown;
|
|
525
|
-
/** Replace just the flag rendered in the trigger and items. */
|
|
526
|
-
flag?: (props: {
|
|
527
|
-
country: CountryOption;
|
|
528
|
-
context: "trigger" | "item";
|
|
529
|
-
}) => unknown;
|
|
530
|
-
/** Replace the entire search bar (input + icon + kbd). */
|
|
531
|
-
search?: (props: {
|
|
532
|
-
value: string;
|
|
533
|
-
setValue: (v: string) => void;
|
|
534
|
-
isSearching: boolean;
|
|
535
|
-
}) => unknown;
|
|
536
|
-
/** Replace the search-bar leading icon. */
|
|
537
|
-
'search-icon'?: () => unknown;
|
|
538
|
-
/** Replace the loading state. */
|
|
539
|
-
loading?: () => unknown;
|
|
540
|
-
/** Replace the empty/no-results state. */
|
|
541
|
-
empty?: (props: {
|
|
542
|
-
query: string;
|
|
543
|
-
}) => unknown;
|
|
544
|
-
/** Replace a section header. */
|
|
545
|
-
'group-header'?: (props: {
|
|
546
|
-
label: string;
|
|
547
|
-
group: "suggested" | "all";
|
|
548
|
-
}) => unknown;
|
|
549
|
-
/** Replace each country list row. Default render still available via <ACountrySelectItem />. */
|
|
550
|
-
item?: (props: {
|
|
551
|
-
country: CountryOption;
|
|
552
|
-
selected: boolean;
|
|
553
|
-
disabled: boolean;
|
|
554
|
-
select: () => void;
|
|
555
|
-
}) => unknown;
|
|
556
|
-
/** Replace just the right-side check icon for the selected row. */
|
|
557
|
-
'item-check'?: (props: {
|
|
558
|
-
country: CountryOption;
|
|
559
|
-
}) => unknown;
|
|
560
|
-
};
|
|
561
|
-
refs: {};
|
|
562
|
-
rootEl: any;
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
declare function __VLS_template_13(): {
|
|
566
|
-
attrs: Partial<{}>;
|
|
567
|
-
slots: {
|
|
568
|
-
empty?(_: {}): any;
|
|
569
|
-
};
|
|
570
|
-
refs: {};
|
|
571
|
-
rootEl: any;
|
|
572
|
-
};
|
|
573
|
-
|
|
574
|
-
declare function __VLS_template_2(): {
|
|
575
|
-
attrs: Partial<{}>;
|
|
576
|
-
slots: {
|
|
577
|
-
default?(_: {
|
|
578
|
-
open: boolean;
|
|
579
|
-
close: () => void;
|
|
580
|
-
}): any;
|
|
581
|
-
};
|
|
582
|
-
refs: {};
|
|
583
|
-
rootEl: any;
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
declare function __VLS_template_3(): {
|
|
587
|
-
attrs: Partial<{}>;
|
|
588
|
-
slots: {
|
|
589
|
-
default?(_: {}): any;
|
|
590
|
-
};
|
|
591
|
-
refs: {};
|
|
592
|
-
rootEl: any;
|
|
593
|
-
};
|
|
594
|
-
|
|
595
|
-
declare function __VLS_template_4(): {
|
|
596
|
-
attrs: Partial<{}>;
|
|
597
|
-
slots: {
|
|
598
|
-
default?(_: {}): any;
|
|
599
|
-
};
|
|
600
|
-
refs: {};
|
|
601
|
-
rootEl: any;
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
declare function __VLS_template_5(): {
|
|
605
|
-
attrs: Partial<{}>;
|
|
606
|
-
slots: {
|
|
607
|
-
default?(_: {}): any;
|
|
608
|
-
};
|
|
609
|
-
refs: {};
|
|
610
|
-
rootEl: any;
|
|
611
|
-
};
|
|
612
|
-
|
|
613
|
-
declare function __VLS_template_6(): {
|
|
614
|
-
attrs: Partial<{}>;
|
|
615
|
-
slots: {
|
|
616
|
-
default?(_: {}): any;
|
|
617
|
-
};
|
|
618
|
-
refs: {};
|
|
619
|
-
rootEl: any;
|
|
620
|
-
};
|
|
621
|
-
|
|
622
|
-
declare function __VLS_template_7(): {
|
|
623
|
-
attrs: Partial<{}>;
|
|
624
|
-
slots: {
|
|
625
|
-
default?(_: {}): any;
|
|
626
|
-
};
|
|
627
|
-
refs: {};
|
|
628
|
-
rootEl: any;
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
declare function __VLS_template_8(): {
|
|
632
|
-
attrs: Partial<{}>;
|
|
633
|
-
slots: {
|
|
634
|
-
default?(_: {
|
|
635
|
-
isDesktop: boolean;
|
|
636
|
-
}): any;
|
|
637
|
-
};
|
|
638
|
-
refs: {};
|
|
639
|
-
rootEl: any;
|
|
640
|
-
};
|
|
641
|
-
|
|
642
|
-
declare function __VLS_template_9(): {
|
|
643
|
-
attrs: Partial<{}>;
|
|
644
|
-
slots: {
|
|
645
|
-
default?(_: {}): any;
|
|
646
|
-
};
|
|
647
|
-
refs: {};
|
|
648
|
-
rootEl: any;
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
652
|
-
|
|
653
|
-
declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
|
|
654
|
-
|
|
655
|
-
declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
|
|
656
|
-
|
|
657
|
-
declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
|
|
658
|
-
|
|
659
|
-
declare type __VLS_TemplateResult_13 = ReturnType<typeof __VLS_template_13>;
|
|
660
|
-
|
|
661
|
-
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
662
|
-
|
|
663
|
-
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
664
|
-
|
|
665
|
-
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
666
|
-
|
|
667
|
-
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
668
|
-
|
|
669
|
-
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
670
|
-
|
|
671
|
-
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
672
|
-
|
|
673
|
-
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
674
|
-
|
|
675
|
-
declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
|
|
676
|
-
|
|
677
|
-
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
678
|
-
new (): {
|
|
679
|
-
$slots: S;
|
|
680
|
-
};
|
|
681
|
-
};
|
|
682
|
-
|
|
683
|
-
declare type __VLS_WithTemplateSlots_10<T, S> = T & {
|
|
684
|
-
new (): {
|
|
685
|
-
$slots: S;
|
|
686
|
-
};
|
|
687
|
-
};
|
|
688
|
-
|
|
689
|
-
declare type __VLS_WithTemplateSlots_11<T, S> = T & {
|
|
690
|
-
new (): {
|
|
691
|
-
$slots: S;
|
|
692
|
-
};
|
|
693
|
-
};
|
|
694
|
-
|
|
695
|
-
declare type __VLS_WithTemplateSlots_12<T, S> = T & {
|
|
696
|
-
new (): {
|
|
697
|
-
$slots: S;
|
|
698
|
-
};
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
declare type __VLS_WithTemplateSlots_13<T, S> = T & {
|
|
702
|
-
new (): {
|
|
703
|
-
$slots: S;
|
|
704
|
-
};
|
|
705
|
-
};
|
|
706
|
-
|
|
707
|
-
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
708
|
-
new (): {
|
|
709
|
-
$slots: S;
|
|
710
|
-
};
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
714
|
-
new (): {
|
|
715
|
-
$slots: S;
|
|
716
|
-
};
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
720
|
-
new (): {
|
|
721
|
-
$slots: S;
|
|
722
|
-
};
|
|
723
|
-
};
|
|
724
|
-
|
|
725
|
-
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
726
|
-
new (): {
|
|
727
|
-
$slots: S;
|
|
728
|
-
};
|
|
729
|
-
};
|
|
730
|
-
|
|
731
|
-
declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
732
|
-
new (): {
|
|
733
|
-
$slots: S;
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
|
-
|
|
737
|
-
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
738
|
-
new (): {
|
|
739
|
-
$slots: S;
|
|
740
|
-
};
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
744
|
-
new (): {
|
|
745
|
-
$slots: S;
|
|
746
|
-
};
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
750
|
-
new (): {
|
|
751
|
-
$slots: S;
|
|
752
|
-
};
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
export declare const ACountryFlag: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
756
|
-
|
|
757
|
-
export declare const ACountrySelect: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
758
|
-
|
|
759
|
-
export declare const ADrawer: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
760
|
-
|
|
761
|
-
export declare const ADrawerContent: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
762
|
-
|
|
763
|
-
export declare const ADrawerOverlay: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
764
|
-
|
|
765
|
-
export declare const ADrawerTrigger: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
766
|
-
|
|
767
|
-
export declare const AInput: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
768
|
-
|
|
769
|
-
export declare const APopover: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
770
|
-
|
|
771
|
-
export declare const APopoverContent: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
772
|
-
|
|
773
|
-
export declare const APopoverOverlay: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
774
|
-
|
|
775
|
-
export declare const APopoverTrigger: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
776
|
-
|
|
777
|
-
export declare const AResponsivePopover: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
778
|
-
|
|
779
|
-
export declare const AResponsivePopoverContent: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
780
|
-
|
|
781
|
-
export declare const AResponsivePopoverTrigger: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
782
|
-
|
|
783
|
-
export declare const ATellInput: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
784
|
-
|
|
785
|
-
/** Text direction for the field. `'auto'` (or omitting the prop) inherits from the
|
|
786
|
-
* nearest `[dir]` ancestor / `<html dir>`; `'ltr'` / `'rtl'` force it. */
|
|
787
|
-
export declare type ATellInputDir = 'ltr' | 'rtl' | 'auto';
|
|
788
|
-
|
|
789
|
-
export declare interface ATellInputProps {
|
|
790
|
-
class?: HTMLAttributes['class'];
|
|
791
|
-
placeholder?: string;
|
|
792
|
-
disabled?: boolean;
|
|
793
|
-
loading?: boolean;
|
|
794
|
-
size?: ATellInputSize;
|
|
795
|
-
/**
|
|
796
|
-
* Text direction. Omit (or pass `'auto'`) to inherit from the page — RTL pages get an
|
|
797
|
-
* RTL field automatically. Pass `'ltr'` / `'rtl'` to force it.
|
|
798
|
-
*/
|
|
799
|
-
dir?: ATellInputDir;
|
|
800
|
-
/**
|
|
801
|
-
* BCP-47 locale (e.g. `'ar'`, `'fr'`). When set, country names render localized via
|
|
802
|
-
* `Intl.DisplayNames` and the format hint uses the locale's numerals.
|
|
803
|
-
*/
|
|
804
|
-
locale?: string;
|
|
805
|
-
/**
|
|
806
|
-
* Localized UI strings. A single bag covering the picker, validation errors, and a11y
|
|
807
|
-
* labels. Individual props (`searchPlaceholder`, `emptyText`, `loadingText`,
|
|
808
|
-
* `errorMessages`) take precedence over the matching `messages` key when both are set.
|
|
809
|
-
*/
|
|
810
|
-
messages?: TellInputMessagesInput;
|
|
811
|
-
/**
|
|
812
|
-
* Whitelist of allowed dial-digit codes (no `+`), e.g. `['20', '966']`.
|
|
813
|
-
* Countries outside this list are still shown in the picker but rendered as disabled.
|
|
814
|
-
*/
|
|
815
|
-
allowedDialCodes?: string[];
|
|
816
|
-
/** Show validation error text beneath the input when invalid. */
|
|
817
|
-
showValidation?: boolean;
|
|
818
|
-
/**
|
|
819
|
-
* Country auto-detect strategy. Defaults to `'auto'` — try IP geolocation first, then
|
|
820
|
-
* timezone, then `navigator.language`, finally `defaultCountry`.
|
|
821
|
-
*/
|
|
822
|
-
detectCountry?: DetectionStrategy;
|
|
823
|
-
/**
|
|
824
|
-
* Initial country. Accepts either an ISO2 code (`'EG'`) or a dial-digit string
|
|
825
|
-
* (`'20'`, `'+20'`). When set, the picker is visible at mount with this country
|
|
826
|
-
* pre-selected — overrides the hidden-until-detected default.
|
|
827
|
-
*/
|
|
828
|
-
defaultCountry?: string;
|
|
829
|
-
/** Override the IP geolocation endpoint. Must return JSON with `country_code` or `country`. */
|
|
830
|
-
ipEndpoint?: string;
|
|
831
|
-
/** Localized strings for the country picker UI. */
|
|
832
|
-
searchPlaceholder?: string;
|
|
833
|
-
emptyText?: string;
|
|
834
|
-
loadingText?: string;
|
|
835
|
-
/** Error labels keyed by reason. Each gets a sensible English default. */
|
|
836
|
-
errorMessages?: Partial<Record<PhoneValidationReason, string>>;
|
|
837
|
-
/**
|
|
838
|
-
* When true, the country picker is hidden until a leading dial code is detected in the
|
|
839
|
-
* phone input. Every keystroke runs a longest-prefix match against known dial codes; on
|
|
840
|
-
* first match the picker reveals with that country and the matched dial digits are
|
|
841
|
-
* stripped from `phone`. Skips the onMount IP/timezone/locale detection chain.
|
|
842
|
-
*/
|
|
843
|
-
detectFromInput?: boolean;
|
|
844
|
-
/**
|
|
845
|
-
* Debounce window (ms) for `detectFromInput` detection. Each keystroke schedules the
|
|
846
|
-
* libphonenumber parse + lookup; bursts of typing/paste collapse into a single call.
|
|
847
|
-
* Clearing the input is not debounced — the picker hides immediately. Default 150ms.
|
|
848
|
-
*/
|
|
849
|
-
detectDebounceMs?: number;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
/** Alias for the shared `Size` scale — kept for backwards-friendly naming. */
|
|
853
|
-
export declare type ATellInputSize = Size;
|
|
854
|
-
|
|
855
|
-
export declare type ATellInputVariants = VariantProps<typeof aTellInputVariants>;
|
|
856
|
-
|
|
857
|
-
export declare const aTellInputVariants: (props?: ({
|
|
858
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
859
|
-
} & ClassProp) | undefined) => string;
|
|
860
|
-
|
|
861
|
-
export declare function cn(...inputs: ClassValue[]): string;
|
|
862
|
-
|
|
863
|
-
/** Tailwind height utility per size. md uses an arbitrary value because 43px isn't on the spacing scale. */
|
|
864
|
-
export declare const controlHeight: Record<Size, string>;
|
|
865
|
-
|
|
866
|
-
/** Pixel values exposed so non-template code (icons, ResizeObserver, etc.) can read the height. */
|
|
867
|
-
export declare const controlHeightPx: Record<Size, number>;
|
|
868
|
-
|
|
869
|
-
export declare const controlPaddingX: Record<Size, string>;
|
|
870
|
-
|
|
871
|
-
export declare const controlTextSize: Record<Size, string>;
|
|
872
|
-
|
|
873
|
-
export declare interface CountryOption<T = RestCountry> {
|
|
874
|
-
/** Display label, e.g. "Egypt (+20)". */
|
|
875
|
-
label: string;
|
|
876
|
-
/** Stable unique ID — the ISO 3166-1 alpha-2 code, e.g. "EG". */
|
|
877
|
-
value: string;
|
|
878
|
-
/** Precomputed normalized string for fast substring search. */
|
|
879
|
-
search_key: string;
|
|
880
|
-
raw_data: {
|
|
881
|
-
iso2: string;
|
|
882
|
-
dial_code: string;
|
|
883
|
-
dial_digits: string;
|
|
884
|
-
name: string;
|
|
885
|
-
flag: string | null;
|
|
886
|
-
source: 'restcountries' | 'fallback';
|
|
887
|
-
original: T;
|
|
888
|
-
};
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
export declare const DEFAULT_ERROR_MESSAGES: Record<PhoneValidationReason, string>;
|
|
892
|
-
|
|
893
|
-
/** English defaults for every {@link TellInputMessages} key. */
|
|
894
|
-
export declare const DEFAULT_MESSAGES: TellInputMessages;
|
|
895
|
-
|
|
896
|
-
export declare const DEFAULT_SIZE: Size;
|
|
897
|
-
|
|
898
|
-
/**
|
|
899
|
-
* Default flag URL builder — flagcdn.com hosts PNG flags at multiple widths and is
|
|
900
|
-
* generous with caching + no API key required. Swap via the `flagUrl` prop on
|
|
901
|
-
* ATellInput / ACountrySelect / ACountryFlag to use any other source.
|
|
902
|
-
*/
|
|
903
|
-
export declare function defaultFlagUrl(iso2: string, width?: number): string;
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Imperative API. Use this when you want to call detection from outside Vue (e.g. inside a
|
|
907
|
-
* non-component composable, server middleware, or unit test).
|
|
908
|
-
*/
|
|
909
|
-
export declare function detectCountry(opts?: DetectCountryOptions): Promise<string>;
|
|
910
|
-
|
|
911
|
-
export declare interface DetectCountryOptions {
|
|
912
|
-
/**
|
|
913
|
-
* - `'auto'` — try IP geolocation first, then timezone, then `navigator.language`, then default.
|
|
914
|
-
* - `'locale'` — skip the network call, use timezone + locale only.
|
|
915
|
-
* - `'none'` — return `defaultCountry` immediately.
|
|
916
|
-
*/
|
|
917
|
-
strategy?: DetectionStrategy;
|
|
918
|
-
/** Endpoint returning a JSON body with a `country_code` (or `country`) field. */
|
|
919
|
-
ipEndpoint?: string;
|
|
920
|
-
/** Fallback ISO2 used when every step fails. */
|
|
921
|
-
defaultCountry?: string;
|
|
922
|
-
/** Abort the IP request after this many ms. */
|
|
923
|
-
timeoutMs?: number;
|
|
924
|
-
/** Persist the resolved country in sessionStorage so re-mounts within the session skip detection. */
|
|
925
|
-
cache?: boolean;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
export declare type DetectionStrategy = 'auto' | 'locale' | 'none';
|
|
929
|
-
|
|
930
|
-
declare interface ExtendedProps extends ATellInputProps {
|
|
931
|
-
/** Override the flag URL builder, forwarded to ACountrySelect. */
|
|
932
|
-
flagUrl?: (iso2: string, width: number) => string;
|
|
933
|
-
/** Custom search predicate, forwarded to ACountrySelect. */
|
|
934
|
-
searcher?: (query: string, country: CountryOption) => boolean;
|
|
935
|
-
/** Provide your own country list, forwarded to ACountrySelect. */
|
|
936
|
-
countries?: CountryOption[];
|
|
937
|
-
/**
|
|
938
|
-
* Fully custom country detection. When provided, this function runs in place of the
|
|
939
|
-
* built-in chain — `detectCountry`-style options are still honored but the function
|
|
940
|
-
* receives them and is free to ignore them.
|
|
941
|
-
*/
|
|
942
|
-
detector?: (options: DetectCountryOptions) => Promise<string | null | undefined>;
|
|
943
|
-
/** Forwarded to ACountrySelect: classes for the popover content surface. */
|
|
944
|
-
contentClass?: string;
|
|
945
|
-
popoverClass?: string;
|
|
946
|
-
drawerClass?: string;
|
|
947
|
-
/** Classes for the inner phone field input element. */
|
|
948
|
-
inputClass?: string;
|
|
949
|
-
/** Classes for the outer wrapper that holds country select + input. */
|
|
950
|
-
fieldClass?: string;
|
|
951
|
-
/** Classes for the helper hint line. */
|
|
952
|
-
hintClass?: string;
|
|
953
|
-
/** Classes for the error message line. */
|
|
954
|
-
errorClass?: string;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
export declare type FlagUrlBuilder = (iso2: string, width: number) => string;
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* Base code points of contiguous decimal-digit blocks. Each block runs `base`‥`base+9`
|
|
961
|
-
* for digit `0`‥`9`, so the ASCII digit is `codePoint - base`. Add a script by appending
|
|
962
|
-
* one entry here.
|
|
963
|
-
*/
|
|
964
|
-
export declare const LOCALE_DIGIT_RANGES: {
|
|
965
|
-
name: string;
|
|
966
|
-
base: number;
|
|
967
|
-
}[];
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* Return a copy of the country list with display names localized to `locale` via
|
|
971
|
-
* `Intl.DisplayNames`. `search_key` is rebuilt (keeping the English name too) so search
|
|
972
|
-
* still matches either spelling. Unknown locales / regions fall back to the English name.
|
|
973
|
-
*/
|
|
974
|
-
export declare function localizeCountries(list: CountryOption[], locale?: string): CountryOption[];
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* Replace any supported non-ASCII decimal digit with its ASCII equivalent. Every other
|
|
978
|
-
* character (spaces, `+`, separators, letters) is left untouched — callers still run their
|
|
979
|
-
* own `\D` cleanup afterwards.
|
|
980
|
-
*/
|
|
981
|
-
export declare function normalizeDigits(input: string): string;
|
|
982
|
-
|
|
983
|
-
export declare interface PhoneRequiredInfo {
|
|
984
|
-
iso2: string;
|
|
985
|
-
dial_code: string;
|
|
986
|
-
/** Empty by default — consumer passes a placeholder via the component prop. */
|
|
987
|
-
placeholder: string;
|
|
988
|
-
example_national: string;
|
|
989
|
-
example_e164: string;
|
|
990
|
-
national_number_length: {
|
|
991
|
-
min: number | null;
|
|
992
|
-
max: number | null;
|
|
993
|
-
};
|
|
994
|
-
format_hint: string;
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
export declare type PhoneValidationReason = 'missing_country' | 'country_not_supported' | 'phone_has_non_digits' | 'too_short' | 'too_long' | 'invalid_phone' | 'parse_failed';
|
|
998
|
-
|
|
999
|
-
export declare interface PhoneValidationResult {
|
|
1000
|
-
ok: boolean;
|
|
1001
|
-
reason: PhoneValidationReason | null;
|
|
1002
|
-
country: {
|
|
1003
|
-
iso2: string;
|
|
1004
|
-
dial_code: string;
|
|
1005
|
-
} | null;
|
|
1006
|
-
phone: {
|
|
1007
|
-
raw: string | null;
|
|
1008
|
-
digits: string;
|
|
1009
|
-
};
|
|
1010
|
-
full_phone: string | null;
|
|
1011
|
-
required: PhoneRequiredInfo | null;
|
|
1012
|
-
details?: Record<string, unknown>;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
* Merge a partial `messages` override onto the English defaults. Used internally by
|
|
1017
|
-
* `ATellInput` to resolve a complete {@link TellInputMessages} object.
|
|
1018
|
-
*/
|
|
1019
|
-
export declare function resolveMessages(input?: TellInputMessagesInput): TellInputMessages;
|
|
1020
|
-
|
|
1021
|
-
export declare interface RestCountry {
|
|
1022
|
-
name?: {
|
|
1023
|
-
common?: string;
|
|
1024
|
-
};
|
|
1025
|
-
cca2?: string;
|
|
1026
|
-
idd?: {
|
|
1027
|
-
root?: string;
|
|
1028
|
-
suffixes?: string[];
|
|
1029
|
-
};
|
|
1030
|
-
flags?: {
|
|
1031
|
-
png?: string;
|
|
1032
|
-
svg?: string;
|
|
1033
|
-
};
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
declare function selectCountry(option: CountryOption): void;
|
|
1037
|
-
|
|
1038
|
-
/**
|
|
1039
|
-
* Shared size scale for every interactive UI component in @alikhalilll/ui.
|
|
1040
|
-
*
|
|
1041
|
-
* xs = 28px · sm = 36px · md = 43px (default) · lg = 52px · xl = 60px
|
|
1042
|
-
*
|
|
1043
|
-
* Use the {@link controlHeight}, {@link controlPaddingX}, {@link controlTextSize}
|
|
1044
|
-
* maps when building a CVA variant so every component stays in lockstep.
|
|
1045
|
-
*/
|
|
1046
|
-
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1047
|
-
|
|
1048
|
-
export declare const SIZES: readonly Size[];
|
|
1049
|
-
|
|
1050
|
-
/**
|
|
1051
|
-
* Every user-facing string in the tell-input UI, bundled so a consumer can localize the
|
|
1052
|
-
* component in one prop. Each key has an English default in {@link DEFAULT_MESSAGES}.
|
|
1053
|
-
*/
|
|
1054
|
-
export declare interface TellInputMessages {
|
|
1055
|
-
/** Placeholder of the country-picker search box. */
|
|
1056
|
-
searchPlaceholder: string;
|
|
1057
|
-
/** Shown when a search yields no countries. */
|
|
1058
|
-
emptyText: string;
|
|
1059
|
-
/** Shown while the country list is loading. */
|
|
1060
|
-
loadingText: string;
|
|
1061
|
-
/** Header of the "Suggested" group (current + recent picks). */
|
|
1062
|
-
suggestedLabel: string;
|
|
1063
|
-
/** Header of the full country list. */
|
|
1064
|
-
allCountriesLabel: string;
|
|
1065
|
-
/** Validation error text, keyed by reason. */
|
|
1066
|
-
errorMessages: Record<PhoneValidationReason, string>;
|
|
1067
|
-
/** Prefix of the country trigger's `aria-label`, e.g. `"Country: Egypt"`. */
|
|
1068
|
-
countryLabel: string;
|
|
1069
|
-
/** `aria-label` of the country trigger when no country is selected. */
|
|
1070
|
-
selectCountryLabel: string;
|
|
1071
|
-
/** `aria-label` of the phone input element. */
|
|
1072
|
-
phoneInputLabel: string;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
/** Partial override shape for the `messages` prop — every key (and every error reason) is optional. */
|
|
1076
|
-
export declare type TellInputMessagesInput = Partial<Omit<TellInputMessages, 'errorMessages'>> & {
|
|
1077
|
-
errorMessages?: Partial<Record<PhoneValidationReason, string>>;
|
|
1078
|
-
};
|
|
1079
|
-
|
|
1080
|
-
/**
|
|
1081
|
-
* Reactive wrapper. Kicks off detection in `onMounted` so SSR renders an empty value and the
|
|
1082
|
-
* client patches in the real country once resolved.
|
|
1083
|
-
*/
|
|
1084
|
-
export declare function useCountryDetection(opts?: DetectCountryOptions): UseCountryDetectionReturn;
|
|
1085
|
-
|
|
1086
|
-
export declare interface UseCountryDetectionReturn {
|
|
1087
|
-
/** Resolved ISO2 code. Initially `null` until detection completes. */
|
|
1088
|
-
country: Ref<string | null>;
|
|
1089
|
-
/** True while detection is in flight. */
|
|
1090
|
-
isLoading: Ref<boolean>;
|
|
1091
|
-
/** Manually re-run detection (e.g. after the user changes their VPN). */
|
|
1092
|
-
refresh: () => Promise<string>;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
export declare function usePhoneValidation(): UsePhoneValidationReturn;
|
|
1096
|
-
|
|
1097
|
-
export declare interface UsePhoneValidationReturn {
|
|
1098
|
-
countries: Ref<CountryOption[]>;
|
|
1099
|
-
isCountriesLoading: Ref<boolean>;
|
|
1100
|
-
getCountries(options?: {
|
|
1101
|
-
force?: boolean;
|
|
1102
|
-
}): Promise<CountryOption[]>;
|
|
1103
|
-
searchCountries(keyword: string, limit?: number): CountryOption[];
|
|
1104
|
-
getCountryByValue(value: string): CountryOption | null;
|
|
1105
|
-
getCountriesByDial(dial: string): CountryOption[];
|
|
1106
|
-
getRequiredInfo(country: {
|
|
1107
|
-
iso2: string;
|
|
1108
|
-
dial_code?: string;
|
|
1109
|
-
}, locale?: string): PhoneRequiredInfo | null;
|
|
1110
|
-
validate(input: ValidateArgs): PhoneValidationResult;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
export declare type ValidateArgs = {
|
|
1114
|
-
country: {
|
|
1115
|
-
iso2: string;
|
|
1116
|
-
dial_code?: string;
|
|
1117
|
-
} | null | undefined;
|
|
1118
|
-
phone?: undefined;
|
|
1119
|
-
/** BCP-47 locale — localizes the numerals in the returned `required.format_hint`. */
|
|
1120
|
-
locale?: string;
|
|
1121
|
-
} | {
|
|
1122
|
-
country: {
|
|
1123
|
-
iso2: string;
|
|
1124
|
-
dial_code?: string;
|
|
1125
|
-
} | null | undefined;
|
|
1126
|
-
phone: string | null;
|
|
1127
|
-
/** BCP-47 locale — localizes the numerals in the returned `required.format_hint`. */
|
|
1128
|
-
locale?: string;
|
|
1129
|
-
};
|
|
1130
|
-
|
|
1131
|
-
export { }
|
|
1
|
+
export * from './entries/input';
|
|
2
|
+
export * from './entries/popover';
|
|
3
|
+
export * from './entries/drawer';
|
|
4
|
+
export * from './entries/responsive-popover';
|
|
5
|
+
export * from './entries/tell-input';
|
|
6
|
+
export * from './utils';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|