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/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -18315,9 +18315,6 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
18315
18315
|
const showActiveDialPreview = vue.computed(
|
|
18316
18316
|
() => !showHoverDialPreview.value && !!activeCountry.value && dropdownOpen.value && !isSearching.value
|
|
18317
18317
|
);
|
|
18318
|
-
const showDialPreviewPadding = vue.computed(
|
|
18319
|
-
() => showSelectedDialPreview.value || showHoverDialPreview.value || showActiveDialPreview.value
|
|
18320
|
-
);
|
|
18321
18318
|
const dialPreviewCountry = vue.computed(() => {
|
|
18322
18319
|
if (showHoverDialPreview.value && hoveredCountry.value) {
|
|
18323
18320
|
return hoveredCountry.value;
|
|
@@ -18340,11 +18337,11 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
18340
18337
|
showHoverDialPreview.value ? "text-gray-900/50" : "text-gray-900"
|
|
18341
18338
|
]);
|
|
18342
18339
|
const inputClasses = vue.computed(() => [
|
|
18343
|
-
"block w-full h-12 rounded-md border border-gray-500 py-2 text-base leading-6 tabular-nums",
|
|
18344
|
-
showDialPreviewPadding.value ? "pl-10 pr-10" : "px-3 pr-10",
|
|
18340
|
+
"block w-full h-12 rounded-md border border-gray-500 py-2 text-base leading-6 tabular-nums px-3 pr-10",
|
|
18345
18341
|
"focus:outline-2 focus:outline-blue-500 -outline-offset-2 focus:border-transparent",
|
|
18346
18342
|
props.disabled ? "text-gray-800 outline-dashed outline-2 outline-gray-400 cursor-not-allowed border-transparent bg-gray-50" : "cursor-text bg-white text-gray-900",
|
|
18347
|
-
isInvalid.value && "outline-2 -outline-offset-2 outline-red-600"
|
|
18343
|
+
isInvalid.value && "outline-2 -outline-offset-2 outline-red-600",
|
|
18344
|
+
hasNoCountryResults.value && "outline-red-600!"
|
|
18348
18345
|
]);
|
|
18349
18346
|
const arrowButtonClasses = vue.computed(() => [
|
|
18350
18347
|
"absolute right-0 top-0 z-10 flex h-12 w-10 items-center justify-center border-0 bg-transparent p-0",
|
|
@@ -18541,13 +18538,13 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
18541
18538
|
class: vue.normalizeClass(["relative w-32", props.class])
|
|
18542
18539
|
}, [
|
|
18543
18540
|
vue.createElementVNode("div", _hoisted_1$5, [
|
|
18544
|
-
|
|
18541
|
+
!dropdownOpen.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
18545
18542
|
key: 0,
|
|
18546
18543
|
class: vue.normalizeClass(dialPreviewClasses.value),
|
|
18547
18544
|
"aria-hidden": "true"
|
|
18548
18545
|
}, [
|
|
18549
|
-
vue.createElementVNode("span", _hoisted_2$4, vue.toDisplayString(vue.unref(countryCodeToFlag)(dialPreviewCountry.value
|
|
18550
|
-
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(t)("common.plus")) + vue.toDisplayString(dialPreviewCountry.value
|
|
18546
|
+
vue.createElementVNode("span", _hoisted_2$4, vue.toDisplayString(vue.unref(countryCodeToFlag)(dialPreviewCountry.value?.value ?? "")), 1),
|
|
18547
|
+
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(t)("common.plus")) + vue.toDisplayString(dialPreviewCountry.value?.countryCode ?? ""), 1)
|
|
18551
18548
|
], 2)) : vue.createCommentVNode("", true),
|
|
18552
18549
|
vue.createElementVNode("input", vue.mergeProps({
|
|
18553
18550
|
ref_key: "inputRef",
|