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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fds-vue-core",
3
- "version": "7.2.4",
3
+ "version": "7.2.6",
4
4
  "description": "FDS Vue Core Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/fds-vue-core.cjs.js",
@@ -350,6 +350,7 @@ watch(
350
350
  :aria-labelledby="ariaLabelledBy"
351
351
  :aria-describedby="ariaDescribedBy"
352
352
  :autocomplete="props.autocomplete"
353
+ :placeholder="props.placeholder"
353
354
  :pattern="props.pattern"
354
355
  :searchIcon="props.searchIcon"
355
356
  v-bind="inputAttrs"
@@ -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-red-600': isInvalid.value && !props.disabled,
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
- 'id' | 'autocomplete' | 'required' | 'placeholder' | 'maxlength' | 'minlength' | 'name' | 'autofocus' | 'readonly' | 'pattern'
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]