@wikicasa-dev/components 2.2.9-alpha.66 → 2.2.9-alpha.8

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.
Files changed (58) hide show
  1. package/dist/Swiper/autoplay.js +1 -1
  2. package/dist/Swiper/controller.js +1 -1
  3. package/dist/Swiper/keyboard.js +1 -1
  4. package/dist/Swiper/thumbs.js +1 -1
  5. package/dist/UIKit/AccessibleSelect.d.ts +4 -5
  6. package/dist/UIKit/AccessibleSelect.js +2 -3
  7. package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +2 -7
  8. package/dist/UIKit/BaseAutocomplete.d.ts +4 -4
  9. package/dist/UIKit/BaseButton.d.ts +8 -14
  10. package/dist/UIKit/BaseCard.js +3 -1
  11. package/dist/UIKit/BaseDropDown.d.ts +11 -17
  12. package/dist/UIKit/BaseFloatingLabel.js +4 -4
  13. package/dist/UIKit/BaseInput.d.ts +2 -3
  14. package/dist/UIKit/BaseInput.js +1 -1
  15. package/dist/UIKit/BaseSnackbar.d.ts +2 -2
  16. package/dist/UIKit/BaseTextarea.d.ts +2 -2
  17. package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +7 -14
  18. package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -5
  19. package/dist/UIKit/Radio/RadioButton.d.ts +23 -28
  20. package/dist/UIKit/Radio/RadioGroup.d.ts +50 -49
  21. package/dist/assets/BaseCard.css +1 -1
  22. package/dist/assets/BaseDropDown.css +1 -1
  23. package/dist/assets/BaseFloatingLabel.css +1 -1
  24. package/dist/assets/BaseInput.css +1 -1
  25. package/dist/assets/tailwind.css +1 -1
  26. package/dist/index.d.ts +0 -3
  27. package/dist/index.js +83 -92
  28. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +160 -158
  29. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +6 -4
  30. package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +106 -112
  31. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +36 -36
  32. package/dist/packages/components/lib/UIKit/BaseButton.vue.js +24 -28
  33. package/dist/packages/components/lib/UIKit/BaseCard.vue.js +13 -13
  34. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +105 -102
  35. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +8 -8
  36. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +64 -65
  37. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +36 -42
  38. package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +17 -18
  39. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +37 -50
  40. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +55 -60
  41. package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +14 -16
  42. package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +33 -37
  43. package/dist/types/index.d.ts +0 -3
  44. package/package.json +7 -8
  45. package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.d.ts +0 -40
  46. package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +0 -4
  47. package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +0 -29
  48. package/dist/UIKit/Radio/v2/RadioButtonGroup.js +0 -4
  49. package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +0 -16
  50. package/dist/UIKit/Radio/v2/RadioButtonItem.js +0 -5
  51. package/dist/assets/AccessibleSelect.css +0 -1
  52. package/dist/assets/RadioButtonItem.css +0 -1
  53. package/dist/composables/mock.d.ts +0 -25
  54. package/dist/composables/mock.js +0 -49
  55. package/dist/packages/components/lib/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +0 -78
  56. package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonGroup.vue.js +0 -49
  57. package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonItem.vue.js +0 -45
  58. /package/dist/assets/{swiper-controller.css → swiper-thumbs.css} +0 -0
@@ -1,10 +1,10 @@
1
- import { defineComponent as H, mergeModels as y, useModel as C, useId as F, useTemplateRef as z, computed as p, watch as I, createElementBlock as a, openBlock as l, createVNode as $, createCommentVNode as u, normalizeClass as n, withCtx as x, Fragment as g, renderList as N, withModifiers as f, createElementVNode as d, renderSlot as P, createBlock as A, unref as M } from "vue";
2
- import { WarningIconRounded as E, ArrowIcon as R } from "@wikicasa-dev/svg-icons";
3
- import S from "./BaseDropDown.vue.js";
4
- import '../../../../assets/BaseDropDown.css';/* empty css */
5
- const q = { class: "uikit-relative uikit-flex uikit-h-[var(--btn-height)] uikit-items-center" }, K = ["id", "innerHTML"], j = ["onClick"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "onClick", "onKeydown"], W = ["innerHTML"], D = ["innerHTML"], G = ["id", "aria-selected", "onClick", "onMouseover"], J = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, O = ["name", "checked", "onInput"], Q = ["innerHTML"], X = ["id", "arial-live", "innerHTML"], Y = ["id", "arial-live", "innerHTML"], te = /* @__PURE__ */ H({
1
+ import { defineComponent as H, mergeModels as $, useModel as p, useId as I, computed as M, ref as D, watch as h, onMounted as F, onUnmounted as P, createElementBlock as u, openBlock as n, normalizeClass as a, createElementVNode as o, createCommentVNode as r, withModifiers as c, renderSlot as z, unref as b, createBlock as A, createVNode as E, Fragment as V, renderList as N } from "vue";
2
+ import { useKeyboardController as O } from "@wikicasa-dev/vue-composables";
3
+ import { WarningIconRounded as S, ArrowIcon as q } from "@wikicasa-dev/svg-icons";
4
+ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], R = ["innerHTML"], U = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, W = ["innerHTML"], G = ["data-cy"], J = ["id", "aria-selected", "onClick", "onMouseover"], Q = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, X = ["name", "checked", "onInput"], Y = ["innerHTML"], Z = ["id", "arial-live", "innerHTML"], _ = ["id", "arial-live", "innerHTML"], le = /* @__PURE__ */ H({
5
+ inheritAttrs: !1,
6
6
  __name: "AccessibleSelect",
7
- props: /* @__PURE__ */ y({
7
+ props: /* @__PURE__ */ $({
8
8
  label: { default: "" },
9
9
  dropdownPosition: { default: "bottom" },
10
10
  namespace: {},
@@ -13,7 +13,6 @@ const q = { class: "uikit-relative uikit-flex uikit-h-[var(--btn-height)] uikit-
13
13
  feedback: {},
14
14
  closeOnBodyPressed: { type: Boolean, default: !0 },
15
15
  border: { type: Boolean, default: !0 },
16
- withFieldset: { type: Boolean, default: !0 },
17
16
  fieldsetClasses: {},
18
17
  legendClasses: {},
19
18
  dropdownClasses: {},
@@ -29,178 +28,181 @@ const q = { class: "uikit-relative uikit-flex uikit-h-[var(--btn-height)] uikit-
29
28
  default: () => ({ id: "", label: "" })
30
29
  },
31
30
  modelModifiers: {},
32
- open: { type: Boolean, default: !1 },
33
- openModifiers: {}
31
+ toggleDropdown: { type: Boolean, default: void 0 },
32
+ toggleDropdownModifiers: {}
34
33
  }),
35
- emits: /* @__PURE__ */ y(["click", "update:dropdownState"], ["update:modelValue", "update:open"]),
36
- setup(e, { emit: V }) {
37
- const T = V, k = C(e, "modelValue"), m = C(e, "open"), L = F(), B = z("dropdownRef"), t = p(() => e.namespace || L), w = p(() => !!k.value.label), h = (i) => {
38
- m.value = !1, k.value = i;
34
+ emits: /* @__PURE__ */ $(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
35
+ setup(e, { emit: L }) {
36
+ const y = L, k = p(e, "modelValue"), g = p(e, "toggleDropdown"), T = I(), l = M(() => e.namespace || T), t = D(!1), m = M(() => !!k.value.label), { activeIdx: v, selectedIdx: B } = O({
37
+ optionsLength: e.options.length,
38
+ isDropdownOpen: t
39
+ }), w = (i) => {
40
+ t.value = !1, k.value = i;
39
41
  };
40
- return I(
41
- () => B.value?.selectedIdx,
42
- (i) => {
43
- i === void 0 || i === -1 || (h(e.options[i]), m.value = !1);
44
- }
45
- ), (i, v) => (l(), a("div", null, [
46
- $(S, {
47
- ref: "dropdownRef",
48
- open: m.value,
49
- "onUpdate:open": v[1] || (v[1] = (r) => m.value = r),
50
- class: n(["uikit-select-wrapper", e.wrapperClasses]),
51
- "data-cy": e.dataCy,
52
- "activate-keyboard-controller": "",
53
- "close-when-clicked-outside": e.closeOnBodyPressed,
54
- direction: e.dropdownPosition === "top" ? "up" : "down",
55
- "dropdown-element": "ul",
56
- "dropdown-classes": [
57
- "uikit-select-dropdown uikit-z-30 uikit-mb-0",
58
- e.dropdownClasses
59
- ],
60
- "dropdown-attrs": {
61
- role: "listbox",
62
- tabindex: -1,
63
- "aria-multiselectable": !1
64
- }
65
- }, {
66
- btn_slot: x(({ toggleDropdown: r, isOpen: b, activeIdx: o, setSelectedIdx: c }) => [
67
- d("div", q, [
68
- e.label ? (l(), a("label", {
42
+ h(B, (i) => {
43
+ w(e.options[i]), t.value = !1;
44
+ }), h(g, (i) => {
45
+ i && (t.value = !t.value, g.value = !1);
46
+ }), h(t, (i) => {
47
+ y("update:dropdownState", i);
48
+ });
49
+ const C = ({ target: i }) => {
50
+ `${l.value}_btn` !== i.id && (t.value = !1);
51
+ };
52
+ return F(() => {
53
+ e.closeOnBodyPressed && document.addEventListener("click", C);
54
+ }), P(() => {
55
+ e.closeOnBodyPressed && document.removeEventListener("click", C);
56
+ }), (i, s) => (n(), u("div", {
57
+ class: a(i.$attrs.class)
58
+ }, [
59
+ o("div", {
60
+ class: a(["uikit-relative uikit-flex uikit-h-12 uikit-items-center", e.wrapperClasses])
61
+ }, [
62
+ e.label ? (n(), u("label", {
63
+ key: 0,
64
+ id: `${l.value}_label`,
65
+ class: a(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
66
+ m.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-top-4 uikit-text-w-gray",
67
+ e.labelClasses,
68
+ { "uikit-left-9": i.$slots.lefticon && !m.value },
69
+ { "uikit-left-4": !i.$slots.lefticon && !m.value }
70
+ ]]),
71
+ innerHTML: e.label
72
+ }, null, 10, j)) : r("", !0),
73
+ i.$slots.lefticon ? (n(), u("span", {
74
+ key: 1,
75
+ class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
76
+ onClick: s[0] || (s[0] = c((d) => t.value = !t.value, ["stop"]))
77
+ }, [
78
+ z(i.$slots, "lefticon")
79
+ ])) : r("", !0),
80
+ o("button", {
81
+ id: `${l.value}_btn`,
82
+ ref: "btnEl",
83
+ type: "button",
84
+ "data-cy": e.dataCy,
85
+ class: a(["uikit-peer uikit-relative uikit-z-10 uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-border-0 uikit-bg-transparent uikit-pr-4 uikit-text-left focus-visible:uikit-outline-0", [i.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", e.btnClasses]]),
86
+ "aria-required": !!i.$attrs.required,
87
+ role: "combobox",
88
+ "aria-haspopup": "listbox",
89
+ "aria-controls": `${l.value}_dropdown`,
90
+ "aria-labelledby": `${l.value}_label ${l.value}_btn`,
91
+ "aria-expanded": t.value,
92
+ "aria-activedescendant": b(v) >= 0 && t.value ? `${l.value}_element_${e.options[b(v)].label}` : "",
93
+ "aria-invalid": e.isValid === !1,
94
+ "aria-describedby": e.isValid === !1 ? `${l.value}_invalid_msg` : void 0,
95
+ onClick: s[1] || (s[1] = (d) => {
96
+ t.value = !t.value, y("click", d);
97
+ })
98
+ }, [
99
+ o("span", {
100
+ class: a(["uikit-pointer-events-none uikit-mt-1", e.btnTextClasses]),
101
+ innerHTML: k.value.visibleLabel || k.value.label
102
+ }, null, 10, R),
103
+ o("span", U, [
104
+ e.isValid == !1 ? (n(), A(b(S), {
69
105
  key: 0,
70
- id: `${t.value}_label`,
71
- class: n(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
72
- w.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-top-4 uikit-text-w-gray",
73
- e.labelClasses,
74
- { "uikit-left-9": i.$slots.lefticon && !w.value },
75
- { "uikit-left-4": !i.$slots.lefticon && !w.value }
106
+ class: "uikit-mr-1",
107
+ width: 20,
108
+ height: 20,
109
+ "stroke-color": "#FA4F64"
110
+ })) : r("", !0),
111
+ E(b(q), {
112
+ class: a(["uikit-transition-transform motion-reduce:uikit-transition-none", [
113
+ t.value ? "uikit-rotate-180" : "",
114
+ e.arrowIcon?.classes
76
115
  ]]),
77
- innerHTML: e.label
78
- }, null, 10, K)) : u("", !0),
79
- i.$slots.lefticon ? (l(), a("span", {
80
- key: 1,
81
- class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
82
- onClick: f((s) => r(), ["stop"])
83
- }, [
84
- P(i.$slots, "lefticon")
85
- ], 8, j)) : u("", !0),
86
- d("button", {
87
- id: `${t.value}_btn`,
88
- ref: "btnEl",
89
- type: "button",
90
- "data-cy": e.dataCy,
91
- class: n(["uikit-peer uikit-relative uikit-z-10 uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-border-0 uikit-bg-transparent uikit-pr-4 uikit-text-left focus-visible:uikit-outline-0", [i.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", e.btnClasses]]),
92
- "aria-required": !!i.$attrs.required,
93
- role: "combobox",
94
- "aria-haspopup": "listbox",
95
- "aria-controls": `${t.value}_dropdown`,
96
- "aria-labelledby": `${t.value}_label ${t.value}_btn`,
97
- "aria-expanded": b,
98
- "aria-activedescendant": o >= 0 && b ? `${t.value}_element_${e.options[o].label}` : "",
99
- "aria-invalid": e.isValid === !1,
100
- "aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
101
- onClick: (s) => {
102
- r(), T("click", s);
103
- },
104
- onKeydown: (s) => {
105
- ["Enter", "Space"].includes(s.key) && (s.preventDefault(), s.stopPropagation(), c(o), r());
106
- }
107
- }, [
108
- d("span", {
109
- class: n(["uikit-pointer-events-none", [e.btnTextClasses, { "uikit-mt-1": e.withFieldset }]]),
110
- innerHTML: k.value?.visibleLabel || k.value?.label
111
- }, null, 10, W),
112
- d("span", {
113
- class: n(["uikit-pointer-events-none uikit-inline-flex", [{ "uikit-mt-1": e.withFieldset }]])
114
- }, [
115
- e.isValid == !1 ? (l(), A(M(E), {
116
- key: 0,
117
- class: "uikit-mr-1",
118
- width: 20,
119
- height: 20,
120
- "stroke-color": "#FA4F64"
121
- })) : u("", !0),
122
- $(M(R), {
123
- class: n(["uikit-transition-transform motion-reduce:uikit-transition-none", [b ? "uikit-rotate-180" : "", e.arrowIcon?.classes]]),
124
- width: e.arrowIcon?.width ?? 18,
125
- height: e.arrowIcon?.height ?? 18,
126
- "stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
127
- }, null, 8, ["class", "width", "height", "stroke-color"])
128
- ], 2)
129
- ], 42, U),
130
- e.withFieldset ? (l(), a("fieldset", {
131
- key: 2,
132
- "aria-hidden": "true",
133
- class: n(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
134
- e.fieldsetClasses,
135
- e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
136
- {
137
- "uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary peer-aria-invalid:uikit-border-w-danger": e.border
138
- },
139
- { "uikit-border-0 peer-focus:uikit-border-0": !e.border }
140
- ]])
141
- }, [
142
- d("legend", {
143
- class: n([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
144
- }, [
145
- e.label ? (l(), a("span", {
146
- key: 0,
147
- class: n(["uikit-mx-5px", [
148
- k.value.label ? "uikit-invisible" : "uikit-hidden"
149
- ]]),
150
- innerHTML: e.label
151
- }, null, 10, D)) : u("", !0)
152
- ], 2)
153
- ], 2)) : u("", !0)
116
+ width: e.arrowIcon?.width ?? 18,
117
+ height: e.arrowIcon?.height ?? 18,
118
+ "stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
119
+ }, null, 8, ["class", "width", "height", "stroke-color"])
154
120
  ])
155
- ]),
156
- default: x(({ activeIdx: r, setActiveIdx: b }) => [
157
- (l(!0), a(g, null, N(e.options, (o, c) => (l(), a("li", {
158
- id: `${t.value}_element_${e.options[c].label}`,
159
- key: `${o.label}_${c}`,
121
+ ], 10, K),
122
+ o("fieldset", {
123
+ "aria-hidden": "true",
124
+ class: a(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
125
+ e.fieldsetClasses,
126
+ e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
127
+ {
128
+ "uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary peer-aria-invalid:uikit-border-w-danger": e.border
129
+ },
130
+ { "uikit-border-0 peer-focus:uikit-border-0": !e.border }
131
+ ]])
132
+ }, [
133
+ o("legend", {
134
+ class: a([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
135
+ }, [
136
+ e.label ? (n(), u("span", {
137
+ key: 0,
138
+ class: a(["uikit-mx-5px", [k.value.label ? "uikit-invisible" : "uikit-hidden"]]),
139
+ innerHTML: e.label
140
+ }, null, 10, W)) : r("", !0)
141
+ ], 2)
142
+ ], 2),
143
+ o("ul", {
144
+ "data-cy": e.dataCy && `${e.dataCy}_dropdown`,
145
+ role: "listbox",
146
+ tabindex: -1,
147
+ "aria-multiselectable": !1,
148
+ class: a(["uikit-absolute uikit-z-30 uikit-m-0 uikit-max-h-[225px] uikit-w-full uikit-min-w-full uikit-list-none uikit-overflow-y-auto uikit-p-0 uikit-no-scrollbar", [
149
+ { "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !t.value },
150
+ {
151
+ "uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": t.value
152
+ },
153
+ { "uikit-bottom-[55px]": e.dropdownPosition === "top" },
154
+ { "uikit-top-[55px]": e.dropdownPosition === "bottom" },
155
+ e.dropdownClasses
156
+ ]]),
157
+ onClick: s[3] || (s[3] = c(() => {
158
+ }, ["stop"]))
159
+ }, [
160
+ (n(!0), u(V, null, N(e.options, (d, f) => (n(), u("li", {
161
+ id: `${l.value}_element_${e.options[f].label}`,
162
+ key: `${d.label}_${f}`,
160
163
  role: "option",
161
- "aria-selected": r === c,
162
- class: n(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
163
- onClick: f((s) => h(o), ["stop"]),
164
- onMouseover: f((s) => b(c), ["stop"]),
165
- onBlur: v[0] || (v[0] = f(() => {
164
+ "aria-selected": b(v) === f,
165
+ class: a(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
166
+ onClick: c((x) => w(d), ["stop"]),
167
+ onMouseover: c((x) => v.value = f, ["stop"]),
168
+ onBlur: s[2] || (s[2] = c(() => {
166
169
  }, ["stop"]))
167
170
  }, [
168
- d("label", J, [
169
- d("input", {
171
+ o("label", Q, [
172
+ o("input", {
170
173
  tabindex: "-1",
171
174
  class: "uikit-m-0 uikit-appearance-none",
172
- name: `${t.value}_radio`,
175
+ name: `${l.value}_radio`,
173
176
  type: "radio",
174
- checked: o.label === k.value.label,
175
- onInput: f((s) => h(o), ["stop"])
176
- }, null, 40, O),
177
- d("span", {
178
- innerHTML: o.label
179
- }, null, 8, Q)
177
+ checked: d.label === k.value.label,
178
+ onInput: c((x) => w(d), ["stop"])
179
+ }, null, 40, X),
180
+ o("span", {
181
+ innerHTML: d.label
182
+ }, null, 8, Y)
180
183
  ])
181
- ], 42, G))), 128))
182
- ]),
183
- _: 3
184
- }, 8, ["open", "class", "data-cy", "close-when-clicked-outside", "direction", "dropdown-classes"]),
185
- e.feedback ? (l(), a(g, { key: 0 }, [
186
- e.feedback.valid ? (l(), a("span", {
184
+ ], 42, J))), 128))
185
+ ], 10, G)
186
+ ], 2),
187
+ e.feedback ? (n(), u(V, { key: 0 }, [
188
+ e.feedback.valid ? (n(), u("span", {
187
189
  key: 0,
188
- id: `${t.value}_valid_msg`,
190
+ id: `${l.value}_valid_msg`,
189
191
  "arial-live": i.$attrs["aria-live"],
190
192
  class: "uikit-mt-1 uikit-inline-block uikit-text-12",
191
193
  innerHTML: e.isValid ? e.feedback.valid : ""
192
- }, null, 8, X)) : u("", !0),
193
- e.feedback.invalid ? (l(), a("span", {
194
+ }, null, 8, Z)) : r("", !0),
195
+ e.feedback.invalid ? (n(), u("span", {
194
196
  key: 1,
195
- id: `${t.value}_invalid_msg`,
197
+ id: `${l.value}_invalid_msg`,
196
198
  "arial-live": i.$attrs["aria-live"],
197
199
  class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
198
200
  innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
199
- }, null, 8, Y)) : u("", !0)
200
- ], 64)) : u("", !0)
201
- ]));
201
+ }, null, 8, _)) : r("", !0)
202
+ ], 64)) : r("", !0)
203
+ ], 2));
202
204
  }
203
205
  });
204
206
  export {
205
- te as default
207
+ le as default
206
208
  };
@@ -17,7 +17,10 @@ const b = /* @__PURE__ */ n({
17
17
  },
18
18
  setup(e) {
19
19
  const o = c("isActive");
20
- return (i, v) => (d(), u(t(h), { value: e.value }, {
20
+ return (i, v) => (d(), u(t(h), {
21
+ value: e.value,
22
+ "data-cy": e.dataCy
23
+ }, {
21
24
  default: a(() => [
22
25
  s(t(m), {
23
26
  as: e.headerTag,
@@ -29,7 +32,6 @@ const b = /* @__PURE__ */ n({
29
32
  default: a(() => [
30
33
  l(i.$slots, "header-content"),
31
34
  s(t(g), {
32
- "data-cy": e.dataCy,
33
35
  class: r([
34
36
  e.triggerClasses,
35
37
  {
@@ -52,7 +54,7 @@ const b = /* @__PURE__ */ n({
52
54
  ])
53
55
  ]),
54
56
  _: 3
55
- }, 8, ["data-cy", "class"])
57
+ }, 8, ["class"])
56
58
  ]),
57
59
  _: 3
58
60
  }, 8, ["as", "class"]),
@@ -69,7 +71,7 @@ const b = /* @__PURE__ */ n({
69
71
  }, 8, ["class"])
70
72
  ]),
71
73
  _: 3
72
- }, 8, ["value"]));
74
+ }, 8, ["value", "data-cy"]));
73
75
  }
74
76
  });
75
77
  export {