fds-vue-core 7.2.4 → 7.2.6
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/Form/FdsPhonenumber/FdsPhonenumber.vue.d.ts +2 -2
- package/dist/components/Form/FdsPhonenumber/types.d.ts +2 -0
- package/dist/fds-vue-core.cjs.js +72 -53
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +72 -53
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/Form/FdsInput/FdsInput.vue +1 -0
- package/src/components/Form/FdsPhonenumber/FdsPhonenumberCountryPicker.vue +1 -2
- package/src/components/Form/FdsPhonenumber/types.ts +12 -1
package/package.json
CHANGED
|
@@ -125,8 +125,7 @@ const arrowClasses = computed(() => [
|
|
|
125
125
|
'pointer-events-none transition-transform duration-200 ease-in-out',
|
|
126
126
|
{
|
|
127
127
|
'fill-gray-500': props.disabled,
|
|
128
|
-
'fill-
|
|
129
|
-
'fill-blue-500': !props.disabled && !isInvalid.value,
|
|
128
|
+
'fill-blue-500': (!props.disabled && !isInvalid.value) || isInvalid.value,
|
|
130
129
|
'rotate-180': dropdownOpen.value && !props.disabled,
|
|
131
130
|
},
|
|
132
131
|
])
|
|
@@ -9,7 +9,16 @@ export type FdsPhonenumberNumberType = 'mobile' | 'any'
|
|
|
9
9
|
|
|
10
10
|
type FdsPhonenumberInputPassthroughProps = Pick<
|
|
11
11
|
FdsInputProps,
|
|
12
|
-
|
|
12
|
+
| 'id'
|
|
13
|
+
| 'autocomplete'
|
|
14
|
+
| 'required'
|
|
15
|
+
| 'placeholder'
|
|
16
|
+
| 'maxlength'
|
|
17
|
+
| 'minlength'
|
|
18
|
+
| 'name'
|
|
19
|
+
| 'autofocus'
|
|
20
|
+
| 'readonly'
|
|
21
|
+
| 'pattern'
|
|
13
22
|
>
|
|
14
23
|
|
|
15
24
|
export interface FdsPhonenumberProps extends FdsPhonenumberInputPassthroughProps {
|
|
@@ -38,11 +47,13 @@ export interface FdsPhonenumberProps extends FdsPhonenumberInputPassthroughProps
|
|
|
38
47
|
onValid?: ((value: boolean | null) => void) | Array<(value: boolean | null) => void>
|
|
39
48
|
onNoCountryResults?: ((value: boolean) => void) | Array<(value: boolean) => void>
|
|
40
49
|
onBlur?: ((event: FocusEvent) => void) | Array<(event: FocusEvent) => void>
|
|
50
|
+
'onUpdate:modelValue'?: ((value: string) => void) | Array<(value: string) => void>
|
|
41
51
|
'onUpdate:e164'?: ((value: string) => void) | Array<(value: string) => void>
|
|
42
52
|
'onUpdate:country'?: ((value: string) => void) | Array<(value: string) => void>
|
|
43
53
|
}
|
|
44
54
|
|
|
45
55
|
export interface FdsPhonenumberEmits {
|
|
56
|
+
'update:modelValue': [value: string]
|
|
46
57
|
'update:country': [country: string]
|
|
47
58
|
'update:e164': [phoneNumber: string]
|
|
48
59
|
valid: [value: boolean | null]
|