fds-vue-core 7.2.2 → 7.2.3
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/fds-vue-core.cjs.js +6 -9
- 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 +6 -9
- 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/FdsPhonenumber/FdsPhonenumberCountryPicker.vue +5 -9
package/package.json
CHANGED
|
@@ -80,10 +80,6 @@ const showActiveDialPreview = computed(
|
|
|
80
80
|
() => !showHoverDialPreview.value && !!activeCountry.value && dropdownOpen.value && !isSearching.value,
|
|
81
81
|
)
|
|
82
82
|
|
|
83
|
-
const showDialPreviewPadding = computed(
|
|
84
|
-
() => showSelectedDialPreview.value || showHoverDialPreview.value || showActiveDialPreview.value,
|
|
85
|
-
)
|
|
86
|
-
|
|
87
83
|
const dialPreviewCountry = computed(() => {
|
|
88
84
|
if (showHoverDialPreview.value && hoveredCountry.value) {
|
|
89
85
|
return hoveredCountry.value
|
|
@@ -111,13 +107,13 @@ const dialPreviewClasses = computed(() => [
|
|
|
111
107
|
])
|
|
112
108
|
|
|
113
109
|
const inputClasses = computed(() => [
|
|
114
|
-
'block w-full h-12 rounded-md border border-gray-500 py-2 text-base leading-6 tabular-nums',
|
|
115
|
-
showDialPreviewPadding.value ? 'pl-10 pr-10' : 'px-3 pr-10',
|
|
110
|
+
'block w-full h-12 rounded-md border border-gray-500 py-2 text-base leading-6 tabular-nums px-3 pr-10',
|
|
116
111
|
'focus:outline-2 focus:outline-blue-500 -outline-offset-2 focus:border-transparent',
|
|
117
112
|
props.disabled
|
|
118
113
|
? 'text-gray-800 outline-dashed outline-2 outline-gray-400 cursor-not-allowed border-transparent bg-gray-50'
|
|
119
114
|
: 'cursor-text bg-white text-gray-900',
|
|
120
115
|
isInvalid.value && 'outline-2 -outline-offset-2 outline-red-600',
|
|
116
|
+
hasNoCountryResults.value && 'outline-red-600!',
|
|
121
117
|
])
|
|
122
118
|
|
|
123
119
|
const arrowButtonClasses = computed(() => [
|
|
@@ -341,11 +337,11 @@ onBeforeUnmount(() => {
|
|
|
341
337
|
<template>
|
|
342
338
|
<div ref="rootRef" class="relative w-32" :class="props.class">
|
|
343
339
|
<div class="relative w-full">
|
|
344
|
-
<div v-if="
|
|
340
|
+
<div v-if="!dropdownOpen" :class="dialPreviewClasses" aria-hidden="true">
|
|
345
341
|
<span class="absolute left-3 top-1/2 -translate-y-1/2 text-xl leading-none">
|
|
346
|
-
{{ countryCodeToFlag(dialPreviewCountry
|
|
342
|
+
{{ countryCodeToFlag(dialPreviewCountry?.value ?? '') }}
|
|
347
343
|
</span>
|
|
348
|
-
{{ t('common.plus') }}{{ dialPreviewCountry
|
|
344
|
+
{{ t('common.plus') }}{{ dialPreviewCountry?.countryCode ?? '' }}
|
|
349
345
|
</div>
|
|
350
346
|
<input
|
|
351
347
|
ref="inputRef"
|