@wikicasa-dev/components 2.2.9-alpha.6 → 2.2.9-alpha.61

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