@wisemen/vue-core-components 1.10.0 → 1.11.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/{AlertCircleIcon-Xxg1e0Ye.js → AlertCircleIcon-BxKVnQnZ.js} +1 -1
- package/dist/{AlertTriangleIcon-YwA_e9oa.js → AlertTriangleIcon-BfuXnxtf.js} +1 -1
- package/dist/{ArrowDownIcon-Dsb-ghnL.js → ArrowDownIcon-C0ZFg-rd.js} +1 -1
- package/dist/{ArrowLeftIcon-BrdlXzP1.js → ArrowLeftIcon--haJNFN7.js} +1 -1
- package/dist/{ArrowRightIcon-D6QwU5EQ.js → ArrowRightIcon-C7yEAole.js} +1 -1
- package/dist/{ArrowUpIcon-BpaGmdVl.js → ArrowUpIcon-Co19hLtt.js} +1 -1
- package/dist/{CalendarIcon-Dhn1QN8y.js → CalendarIcon-CJVLdqrh.js} +1 -1
- package/dist/{CheckCircleIcon-594tnHDh.js → CheckCircleIcon-DfseMUfe.js} +1 -1
- package/dist/{CheckIcon-NQuYsnSg.js → CheckIcon-B4H-IBFH.js} +1 -1
- package/dist/{ChevronLeftDoubleIcon-NhYcG7fV.js → ChevronLeftDoubleIcon-CgKMYCl4.js} +1 -1
- package/dist/{ChevronLeftIcon-CGc3OGrr.js → ChevronLeftIcon-D3bFAJTL.js} +1 -1
- package/dist/{ChevronRightDoubleIcon-Baovq-XP.js → ChevronRightDoubleIcon-CGGUT-80.js} +1 -1
- package/dist/{ChevronRightIcon-DZWiRwHM.js → ChevronRightIcon-0SG6HFKs.js} +1 -1
- package/dist/{CloseIcon-DGggpxhF.js → CloseIcon-CPB64iop.js} +1 -1
- package/dist/{EyeIcon-CgRicyYM.js → EyeIcon-BIgxH5S-.js} +1 -1
- package/dist/{EyeOffIcon-BHrni4Gx.js → EyeOffIcon-B7aqMa3q.js} +1 -1
- package/dist/{InfoCircleIcon-CGSiZsBC.js → InfoCircleIcon-CM_Bjj3u.js} +1 -1
- package/dist/{MinusIcon-DKiNgt9K.js → MinusIcon-BfS_7GO0.js} +1 -1
- package/dist/{PlusIcon-A-X5RQKE.js → PlusIcon-CTVfkDVW.js} +1 -1
- package/dist/{SearchIcon-Dp6yJ58x.js → SearchIcon-B6IQjN6G.js} +1 -1
- package/dist/{SelectIconRight-Dugms8-J.js → SelectIconRight-CmD0uycb.js} +1 -1
- package/dist/{StarsIcon-BTZidAma.js → StarsIcon-CJB6n5-A.js} +1 -1
- package/dist/{SwitchVerticalIcon-CDoFeV45.js → SwitchVerticalIcon-CDRZaZDn.js} +1 -1
- package/dist/{TranslateIcon-BsRMm7JH.js → TranslateIcon-1PPFQeQJ.js} +1 -1
- package/dist/class-variant/classVariant.type.d.ts +8 -0
- package/dist/components/phone-number-field/PhoneNumberField.d.ts +3 -0
- package/dist/components/phone-number-field/phoneNumberField.props.d.ts +6 -1
- package/dist/components/phone-number-field/phoneNumberField.style.d.ts +19 -0
- package/dist/{index-BJ37KnQN.js → index-WOCyxsOP.js} +2125 -2097
- package/dist/index.js +1 -1
- package/dist/index.umd +14 -14
- package/dist/nieuw.d.ts +1 -0
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ import { createFormFieldStyle } from '../components/form-field/formField.style';
|
|
|
15
15
|
import { createKeyboardKeyStyle } from '../components/keyboard-key/keyboardKey.style';
|
|
16
16
|
import { createkeyboardShortcutStyle } from '../components/keyboard-shortcut/keyboardShortcut.style';
|
|
17
17
|
import { createNumberFieldStyle } from '../components/number-field/numberField.style';
|
|
18
|
+
import { createPhoneNumberFieldStyle } from '../components/phone-number-field/phoneNumberField.style';
|
|
18
19
|
import { createPopoverStyle } from '../components/popover/popover.style';
|
|
19
20
|
import { createRadioGroupItemStyle } from '../components/radio-group-item/radioGroupItem.style';
|
|
20
21
|
import { createSelectStyle } from '../components/select/style/select.style';
|
|
@@ -100,6 +101,13 @@ export interface ComponentMap {
|
|
|
100
101
|
increment: 'iconButton';
|
|
101
102
|
};
|
|
102
103
|
};
|
|
104
|
+
phoneNumberField: {
|
|
105
|
+
style: typeof createPhoneNumberFieldStyle;
|
|
106
|
+
children: {
|
|
107
|
+
input: 'textField';
|
|
108
|
+
select: 'select';
|
|
109
|
+
};
|
|
110
|
+
};
|
|
103
111
|
popover: {
|
|
104
112
|
style: typeof createPopoverStyle;
|
|
105
113
|
children: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CountryCode } from 'libphonenumber-js';
|
|
2
|
+
import { ResolvedClassConfig } from '../../class-variant/classVariant.type';
|
|
2
3
|
import { PhoneNumberFieldProps } from './phoneNumberField.props';
|
|
3
4
|
type __VLS_Props = PhoneNumberFieldProps;
|
|
4
5
|
type __VLS_PublicProps = {
|
|
@@ -22,6 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
22
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
24
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
24
25
|
}>, {
|
|
26
|
+
variant: null;
|
|
27
|
+
classConfig: ResolvedClassConfig<"phoneNumberField"> | null;
|
|
25
28
|
defaultCountryCode: CountryCode;
|
|
26
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
30
|
phoneNumberFieldRef: import('vue').ShallowUnwrapRef<{}> | null;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { CountryCode } from 'libphonenumber-js';
|
|
2
|
+
import { CustomizableElement, GetComponentProp } from '../../class-variant/classVariant.type';
|
|
2
3
|
import { TextFieldProps } from '../text-field/textField.props';
|
|
3
|
-
export interface PhoneNumberFieldProps extends Omit<TextFieldProps, 'isSpellcheckEnabled' | 'type'> {
|
|
4
|
+
export interface PhoneNumberFieldProps extends Omit<TextFieldProps, 'classConfig' | 'isSpellcheckEnabled' | 'type'>, CustomizableElement<'phoneNumberField'> {
|
|
4
5
|
/**
|
|
5
6
|
* The default country code to use.
|
|
6
7
|
* @default 'BE'
|
|
7
8
|
*/
|
|
8
9
|
defaultCountryCode?: CountryCode;
|
|
10
|
+
/**
|
|
11
|
+
* Defines the visual style of the input.
|
|
12
|
+
*/
|
|
13
|
+
variant?: GetComponentProp<'phoneNumberField', 'variant'> | null;
|
|
9
14
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
export declare const createPhoneNumberFieldStyle: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
variant: {};
|
|
4
|
+
}, {
|
|
5
|
+
countryFlag: string;
|
|
6
|
+
dialCode: string;
|
|
7
|
+
}, undefined, {
|
|
8
|
+
variant: {};
|
|
9
|
+
}, {
|
|
10
|
+
countryFlag: string;
|
|
11
|
+
dialCode: string;
|
|
12
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
13
|
+
variant: {};
|
|
14
|
+
}, {
|
|
15
|
+
countryFlag: string;
|
|
16
|
+
dialCode: string;
|
|
17
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
18
|
+
export type PhoneNumberFieldStyle = VariantProps<typeof createPhoneNumberFieldStyle>;
|
|
19
|
+
export type CreatePhoneNumberFieldStyle = ReturnType<typeof createPhoneNumberFieldStyle>;
|