@wikicasa-dev/components 2.2.8-alpha.33 → 2.2.8-alpha.5

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 (32) 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/Accordion/BaseAccordionItem.d.ts +1 -1
  6. package/dist/UIKit/BaseAutocomplete.d.ts +7 -7
  7. package/dist/UIKit/BaseDropDown.d.ts +1 -10
  8. package/dist/UIKit/BaseFloatingLabel.js +4 -4
  9. package/dist/UIKit/BaseModal.d.ts +0 -4
  10. package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +38 -34
  11. package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -3
  12. package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +9 -6
  13. package/dist/assets/BaseFloatingLabel.css +1 -1
  14. package/dist/assets/tailwind.css +1 -1
  15. package/dist/components/carousel/SwiperCarousel.d.ts +8 -8
  16. package/dist/index.d.ts +0 -1
  17. package/dist/index.js +81 -85
  18. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +31 -30
  19. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +12 -12
  20. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +4 -1
  21. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +86 -104
  22. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +8 -8
  23. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +10 -11
  24. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +3 -3
  25. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +39 -42
  26. package/package.json +3 -3
  27. package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +0 -54
  28. package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +0 -5
  29. package/dist/assets/CheckboxBtn.css +0 -1
  30. package/dist/assets/ClearableAutocomplete.css +0 -1
  31. package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +0 -166
  32. /package/dist/assets/{swiper-keyboard.css → swiper-thumbs.css} +0 -0
package/dist/index.js CHANGED
@@ -1,93 +1,89 @@
1
- import { default as u } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
2
- import { default as i } from "./packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js";
3
- import { default as n } from "./packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js";
4
- import { default as S } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
5
- import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/BaseBadge.css';import './assets/ClearableAutocomplete.css';import './assets/BaseAutocomplete.css';import './assets/BaseAlert.css';import './assets/CheckboxBtn.css';import './assets/BaseAccordionItem.css';/* empty css */
6
- import { default as C } from "./packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js";
7
- import { default as A } from "./packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js";
8
- /* empty css */
9
- import { default as T } from "./packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js";
10
- import { default as w } from "./packages/components/lib/UIKit/Tab/BaseTabView.vue.js";
11
- import { default as k } from "./packages/components/lib/UIKit/Tab/BaseTab.vue.js";
12
- import { default as v } from "./packages/components/lib/UIKit/Radio/RadioButton.vue.js";
13
- import { default as G } from "./packages/components/lib/UIKit/Radio/RadioGroup.vue.js";
14
- import { default as O } from "./packages/components/lib/UIKit/AccessibleSelect.vue.js";
15
- import { default as P } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
1
+ import { default as m } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
2
+ import { default as u } from "./packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js";
3
+ import { default as i } from "./packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js";
4
+ import { default as n } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
5
+ import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/BaseBadge.css';import './assets/BaseAutocomplete.css';import './assets/BaseAlert.css';import './assets/BaseAccordionItem.css';/* empty css */
6
+ import { default as S } from "./packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js";
7
+ import { default as g } from "./packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js";
8
+ import { default as h } from "./packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js";
9
+ import { default as T } from "./packages/components/lib/UIKit/Tab/BaseTabView.vue.js";
10
+ import { default as w } from "./packages/components/lib/UIKit/Tab/BaseTab.vue.js";
11
+ import { default as k } from "./packages/components/lib/UIKit/Radio/RadioButton.vue.js";
12
+ import { default as v } from "./packages/components/lib/UIKit/Radio/RadioGroup.vue.js";
13
+ import { default as G } from "./packages/components/lib/UIKit/AccessibleSelect.vue.js";
14
+ import { default as O } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
16
15
  /* empty css */
17
- import { default as V } from "./packages/components/lib/UIKit/BaseAutocomplete.vue.js";
16
+ import { default as P } from "./packages/components/lib/UIKit/BaseAutocomplete.vue.js";
18
17
  /* empty css */
19
- import { default as q } from "./packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js";
20
- /* empty css */
21
- import { default as z } from "./packages/components/lib/UIKit/BaseBadge.vue.js";
18
+ import { default as V } from "./packages/components/lib/UIKit/BaseBadge.vue.js";
22
19
  /* empty css */
23
- import { default as H } from "./packages/components/lib/UIKit/BaseButton.vue.js";
24
- import { default as K } from "./UIKit/BaseCard.js";
25
- import { default as Q } from "./UIKit/BaseComplexToggle.js";
26
- import { default as X } from "./packages/components/lib/UIKit/BaseDropDown.vue.js";
20
+ import { default as q } from "./packages/components/lib/UIKit/BaseButton.vue.js";
21
+ import { default as z } from "./UIKit/BaseCard.js";
22
+ import { default as H } from "./UIKit/BaseComplexToggle.js";
23
+ import { default as K } from "./packages/components/lib/UIKit/BaseDropDown.vue.js";
27
24
  /* empty css */
28
- import { default as Z } from "./UIKit/BaseFloatingLabel.js";
29
- import { default as $ } from "./UIKit/BaseInput.js";
30
- import { default as ae } from "./packages/components/lib/UIKit/BasePagination.vue.js";
31
- import { default as te } from "./UIKit/BaseSlider.js";
32
- import { default as fe } from "./UIKit/BaseTextarea.js";
33
- import { default as le } from "./UIKit/BaseToggle.js";
34
- import { default as me } from "./UIKit/BaseTooltip.js";
35
- import { default as ue } from "./packages/components/lib/UIKit/BaseUploadFile.vue.js";
36
- import { default as ie } from "./packages/components/lib/UIKit/BaseModal.vue.js";
25
+ import { default as Q } from "./UIKit/BaseFloatingLabel.js";
26
+ import { default as X } from "./UIKit/BaseInput.js";
27
+ import { default as Z } from "./packages/components/lib/UIKit/BasePagination.vue.js";
28
+ import { default as $ } from "./UIKit/BaseSlider.js";
29
+ import { default as ae } from "./UIKit/BaseTextarea.js";
30
+ import { default as te } from "./UIKit/BaseToggle.js";
31
+ import { default as fe } from "./UIKit/BaseTooltip.js";
32
+ import { default as le } from "./packages/components/lib/UIKit/BaseUploadFile.vue.js";
33
+ import { default as me } from "./packages/components/lib/UIKit/BaseModal.vue.js";
37
34
  /* empty css */
38
- import { default as ne } from "./UIKit/StaticSpinner.js";
39
- import { default as Se } from "./UIKit/ShimmerLoader/BaseShimmerLoader.js";
40
- import { default as Ce } from "./packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js";
41
- import { default as Ae } from "./packages/components/lib/chart/DoughnutChart.vue.js";
42
- import { default as Te } from "./packages/components/lib/chart/LineChart.vue.js";
43
- import { default as we } from "./UIKit/Slider/SimpleSlider.js";
44
- import { default as ke } from "./packages/components/lib/UIKit/BaseSnackbar.vue.js";
35
+ import { default as ue } from "./UIKit/StaticSpinner.js";
36
+ import { default as ie } from "./UIKit/ShimmerLoader/BaseShimmerLoader.js";
37
+ import { default as ne } from "./packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js";
38
+ import { default as Se } from "./packages/components/lib/chart/DoughnutChart.vue.js";
39
+ import { default as ge } from "./packages/components/lib/chart/LineChart.vue.js";
40
+ import { default as he } from "./UIKit/Slider/SimpleSlider.js";
41
+ import { default as Te } from "./packages/components/lib/UIKit/BaseSnackbar.vue.js";
45
42
  /* empty css */
46
- import { default as ve } from "./packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js";
47
- import { default as Ge } from "./packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js";
48
- import { default as Oe } from "./components/carousel/SwiperCarousel.js";
49
- import { default as Pe } from "./components/carousel/SwiperSlide.js";
50
- import { default as Ve } from "./packages/components/lib/UIKit/BaseBreadcrumb.vue.js";
43
+ import { default as we } from "./packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js";
44
+ import { default as ke } from "./packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js";
45
+ import { default as ve } from "./components/carousel/SwiperCarousel.js";
46
+ import { default as Ge } from "./components/carousel/SwiperSlide.js";
47
+ import { default as Oe } from "./packages/components/lib/UIKit/BaseBreadcrumb.vue.js";
51
48
  export {
52
- O as AccessibleSelect,
53
- u as BaseAccordion,
54
- i as BaseAccordionBtn,
55
- n as BaseAccordionContent,
56
- S as BaseAccordionItem,
57
- P as BaseAlert,
58
- V as BaseAutocomplete,
59
- z as BaseBadge,
60
- Ve as BaseBreadcrumb,
61
- H as BaseButton,
62
- K as BaseCard,
63
- Q as BaseComplexToggle,
64
- X as BaseDropDown,
65
- Z as BaseFloatingLabel,
66
- $ as BaseInput,
67
- ie as BaseModal,
68
- ae as BasePagination,
69
- Se as BaseShimmerLoader,
70
- te as BaseSlider,
71
- ke as BaseSnackbar,
72
- k as BaseTab,
73
- w as BaseTabView,
74
- fe as BaseTextarea,
75
- le as BaseToggle,
76
- me as BaseTooltip,
77
- ue as BaseUploadFile,
78
- A as CheckboxBtn,
79
- T as CheckboxGroup,
80
- q as ClearableAutocomplete,
81
- Ae as DoughnutChart,
82
- ve as IntersectionObservable,
83
- Ge as IntersectionObserver,
84
- Te as LineChart,
85
- v as RadioButton,
86
- G as RadioGroup,
87
- C as SelectItem,
88
- Ce as ShimmerMultiLine,
89
- we as SimpleSlider,
90
- ne as StaticSpinner,
91
- Oe as SwiperCarousel,
92
- Pe as SwiperSlide
49
+ G as AccessibleSelect,
50
+ m as BaseAccordion,
51
+ u as BaseAccordionBtn,
52
+ i as BaseAccordionContent,
53
+ n as BaseAccordionItem,
54
+ O as BaseAlert,
55
+ P as BaseAutocomplete,
56
+ V as BaseBadge,
57
+ Oe as BaseBreadcrumb,
58
+ q as BaseButton,
59
+ z as BaseCard,
60
+ H as BaseComplexToggle,
61
+ K as BaseDropDown,
62
+ Q as BaseFloatingLabel,
63
+ X as BaseInput,
64
+ me as BaseModal,
65
+ Z as BasePagination,
66
+ ie as BaseShimmerLoader,
67
+ $ as BaseSlider,
68
+ Te as BaseSnackbar,
69
+ w as BaseTab,
70
+ T as BaseTabView,
71
+ ae as BaseTextarea,
72
+ te as BaseToggle,
73
+ fe as BaseTooltip,
74
+ le as BaseUploadFile,
75
+ g as CheckboxBtn,
76
+ h as CheckboxGroup,
77
+ Se as DoughnutChart,
78
+ we as IntersectionObservable,
79
+ ke as IntersectionObserver,
80
+ ge as LineChart,
81
+ k as RadioButton,
82
+ v as RadioGroup,
83
+ S as SelectItem,
84
+ ne as ShimmerMultiLine,
85
+ he as SimpleSlider,
86
+ ue as StaticSpinner,
87
+ ve as SwiperCarousel,
88
+ Ge as SwiperSlide
93
89
  };
@@ -1,7 +1,7 @@
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({
1
+ import { defineComponent as D, mergeModels as $, useModel as p, useId as F, computed as M, ref as V, watch as y, onMounted as E, 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 N, Fragment as L, renderList as O } from "vue";
2
+ import { useKeyboardController as S } from "@wikicasa-dev/vue-composables";
3
+ import { WarningIconRounded as q, ArrowIcon as j } from "@wikicasa-dev/svg-icons";
4
+ const K = ["id", "innerHTML"], R = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], U = ["innerHTML"], W = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, G = ["innerHTML"], J = ["data-cy"], Q = ["id", "aria-selected", "onClick", "onMouseover"], X = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Y = ["name", "checked", "onInput"], Z = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ee = ["id", "arial-live", "innerHTML"], ae = /* @__PURE__ */ D({
5
5
  inheritAttrs: !1,
6
6
  __name: "AccessibleSelect",
7
7
  props: /* @__PURE__ */ $({
@@ -32,24 +32,24 @@ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-cont
32
32
  toggleDropdownModifiers: {}
33
33
  }),
34
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({
35
+ setup(e, { emit: T }) {
36
+ const h = T, k = p(e, "modelValue"), g = p(e, "toggleDropdown"), B = F(), l = M(() => e.namespace || B), t = V(!1), H = V(null), m = M(() => !!k.value.label), { activeIdx: v, selectedIdx: I } = S({
37
37
  optionsLength: e.options.length,
38
38
  isDropdownOpen: t
39
39
  }), w = (i) => {
40
40
  t.value = !1, k.value = i;
41
41
  };
42
- h(B, (i) => {
42
+ y(I, (i) => {
43
43
  w(e.options[i]), t.value = !1;
44
- }), h(g, (i) => {
44
+ }), y(g, (i) => {
45
45
  i && (t.value = !t.value, g.value = !1);
46
- }), h(t, (i) => {
47
- y("update:dropdownState", i);
46
+ }), y(t, (i) => {
47
+ h("update:dropdownState", i);
48
48
  });
49
49
  const C = ({ target: i }) => {
50
50
  `${l.value}_btn` !== i.id && (t.value = !1);
51
51
  };
52
- return F(() => {
52
+ return E(() => {
53
53
  e.closeOnBodyPressed && document.addEventListener("click", C);
54
54
  }), P(() => {
55
55
  e.closeOnBodyPressed && document.removeEventListener("click", C);
@@ -69,7 +69,7 @@ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-cont
69
69
  { "uikit-left-4": !i.$slots.lefticon && !m.value }
70
70
  ]]),
71
71
  innerHTML: e.label
72
- }, null, 10, j)) : r("", !0),
72
+ }, null, 10, K)) : r("", !0),
73
73
  i.$slots.lefticon ? (n(), u("span", {
74
74
  key: 1,
75
75
  class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
@@ -79,7 +79,8 @@ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-cont
79
79
  ])) : r("", !0),
80
80
  o("button", {
81
81
  id: `${l.value}_btn`,
82
- ref: "btnEl",
82
+ ref_key: "btnEl",
83
+ ref: H,
83
84
  type: "button",
84
85
  "data-cy": e.dataCy,
85
86
  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]]),
@@ -93,22 +94,22 @@ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-cont
93
94
  "aria-invalid": e.isValid === !1,
94
95
  "aria-describedby": e.isValid === !1 ? `${l.value}_invalid_msg` : void 0,
95
96
  onClick: s[1] || (s[1] = (d) => {
96
- t.value = !t.value, y("click", d);
97
+ t.value = !t.value, h("click", d);
97
98
  })
98
99
  }, [
99
100
  o("span", {
100
101
  class: a(["uikit-pointer-events-none uikit-mt-1", e.btnTextClasses]),
101
102
  innerHTML: k.value.visibleLabel || k.value.label
102
- }, null, 10, R),
103
- o("span", U, [
104
- e.isValid == !1 ? (n(), A(b(S), {
103
+ }, null, 10, U),
104
+ o("span", W, [
105
+ e.isValid == !1 ? (n(), A(b(q), {
105
106
  key: 0,
106
107
  class: "uikit-mr-1",
107
108
  width: 20,
108
109
  height: 20,
109
110
  "stroke-color": "#FA4F64"
110
111
  })) : r("", !0),
111
- E(b(q), {
112
+ N(b(j), {
112
113
  class: a(["uikit-transition-transform motion-reduce:uikit-transition-none", [
113
114
  t.value ? "uikit-rotate-180" : "",
114
115
  e.arrowIcon?.classes
@@ -118,7 +119,7 @@ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-cont
118
119
  "stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
119
120
  }, null, 8, ["class", "width", "height", "stroke-color"])
120
121
  ])
121
- ], 10, K),
122
+ ], 10, R),
122
123
  o("fieldset", {
123
124
  "aria-hidden": "true",
124
125
  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", [
@@ -137,7 +138,7 @@ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-cont
137
138
  key: 0,
138
139
  class: a(["uikit-mx-5px", [k.value.label ? "uikit-invisible" : "uikit-hidden"]]),
139
140
  innerHTML: e.label
140
- }, null, 10, W)) : r("", !0)
141
+ }, null, 10, G)) : r("", !0)
141
142
  ], 2)
142
143
  ], 2),
143
144
  o("ul", {
@@ -157,7 +158,7 @@ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-cont
157
158
  onClick: s[3] || (s[3] = c(() => {
158
159
  }, ["stop"]))
159
160
  }, [
160
- (n(!0), u(V, null, N(e.options, (d, f) => (n(), u("li", {
161
+ (n(!0), u(L, null, O(e.options, (d, f) => (n(), u("li", {
161
162
  id: `${l.value}_element_${e.options[f].label}`,
162
163
  key: `${d.label}_${f}`,
163
164
  role: "option",
@@ -168,7 +169,7 @@ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-cont
168
169
  onBlur: s[2] || (s[2] = c(() => {
169
170
  }, ["stop"]))
170
171
  }, [
171
- o("label", Q, [
172
+ o("label", X, [
172
173
  o("input", {
173
174
  tabindex: "-1",
174
175
  class: "uikit-m-0 uikit-appearance-none",
@@ -176,33 +177,33 @@ const j = ["id", "innerHTML"], K = ["id", "data-cy", "aria-required", "aria-cont
176
177
  type: "radio",
177
178
  checked: d.label === k.value.label,
178
179
  onInput: c((x) => w(d), ["stop"])
179
- }, null, 40, X),
180
+ }, null, 40, Y),
180
181
  o("span", {
181
182
  innerHTML: d.label
182
- }, null, 8, Y)
183
+ }, null, 8, Z)
183
184
  ])
184
- ], 42, J))), 128))
185
- ], 10, G)
185
+ ], 42, Q))), 128))
186
+ ], 10, J)
186
187
  ], 2),
187
- e.feedback ? (n(), u(V, { key: 0 }, [
188
+ e.feedback ? (n(), u(L, { key: 0 }, [
188
189
  e.feedback.valid ? (n(), u("span", {
189
190
  key: 0,
190
191
  id: `${l.value}_valid_msg`,
191
192
  "arial-live": i.$attrs["aria-live"],
192
193
  class: "uikit-mt-1 uikit-inline-block uikit-text-12",
193
194
  innerHTML: e.isValid ? e.feedback.valid : ""
194
- }, null, 8, Z)) : r("", !0),
195
+ }, null, 8, _)) : r("", !0),
195
196
  e.feedback.invalid ? (n(), u("span", {
196
197
  key: 1,
197
198
  id: `${l.value}_invalid_msg`,
198
199
  "arial-live": i.$attrs["aria-live"],
199
200
  class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
200
201
  innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
201
- }, null, 8, _)) : r("", !0)
202
+ }, null, 8, ee)) : r("", !0)
202
203
  ], 64)) : r("", !0)
203
204
  ], 2));
204
205
  }
205
206
  });
206
207
  export {
207
- le as default
208
+ ae as default
208
209
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as n, inject as c, createBlock as u, openBlock as d, unref as t, withCtx as a, createVNode as s, normalizeClass as r, renderSlot as l, createTextVNode as f, toDisplayString as k } from "vue";
2
- import { AccordionItem as h, AccordionHeader as m, AccordionTrigger as g, AccordionContent as w } from "reka-ui";
1
+ import { defineComponent as n, inject as c, createBlock as u, openBlock as d, unref as t, withCtx as a, createVNode as s, normalizeClass as r, renderSlot as o, createTextVNode as f, toDisplayString as k } from "vue";
2
+ import { AccordionItem as m, AccordionHeader as h, AccordionTrigger as g, AccordionContent as w } from "reka-ui";
3
3
  import { ArrowIcon as C } from "@wikicasa-dev/svg-icons";
4
4
  const b = /* @__PURE__ */ n({
5
5
  __name: "BaseAccordionItem",
@@ -13,24 +13,24 @@ const b = /* @__PURE__ */ n({
13
13
  headerClasses: {},
14
14
  contentClasses: {},
15
15
  arrowClasses: {},
16
- headerTag: { default: "h3" }
16
+ accordionHeaderTag: { default: "h3" }
17
17
  },
18
18
  setup(e) {
19
- const o = c("isActive");
20
- return (i, v) => (d(), u(t(h), {
19
+ const l = c("isActive");
20
+ return (i, v) => (d(), u(t(m), {
21
21
  value: e.value,
22
22
  "data-cy": e.dataCy
23
23
  }, {
24
24
  default: a(() => [
25
- s(t(m), {
26
- as: e.headerTag,
25
+ s(t(h), {
26
+ as: e.accordionHeaderTag,
27
27
  class: r([
28
28
  e.headerClasses,
29
29
  "uikit-flex uikit-items-center uikit-justify-between"
30
30
  ])
31
31
  }, {
32
32
  default: a(() => [
33
- l(i.$slots, "header-content"),
33
+ o(i.$slots, "header-content"),
34
34
  s(t(g), {
35
35
  class: r([
36
36
  e.triggerClasses,
@@ -41,12 +41,12 @@ const b = /* @__PURE__ */ n({
41
41
  ])
42
42
  }, {
43
43
  default: a(() => [
44
- l(i.$slots, "trigger", {
45
- active: t(o)(e.value)
44
+ o(i.$slots, "trigger", {
45
+ active: t(l)(e.value)
46
46
  }, () => [
47
47
  f(k(e.title) + " ", 1),
48
48
  s(t(C), {
49
- class: r(["uikit-flex-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", [t(o)(e.value) ? "uikit-rotate-180" : "", e.arrowClasses]]),
49
+ class: r(["uikit-flex-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", [t(l)(e.value) ? "uikit-rotate-180" : "", e.arrowClasses]]),
50
50
  "arrow-classes": e.arrowClasses,
51
51
  width: e.arrowWidth,
52
52
  height: e.arrowWidth
@@ -65,7 +65,7 @@ const b = /* @__PURE__ */ n({
65
65
  ])
66
66
  }, {
67
67
  default: a(() => [
68
- l(i.$slots, "default")
68
+ o(i.$slots, "default")
69
69
  ]),
70
70
  _: 3
71
71
  }, 8, ["class"])
@@ -31,7 +31,10 @@ const Q = ["innerHTML"], ne = /* @__PURE__ */ x({
31
31
  }),
32
32
  emits: /* @__PURE__ */ $(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
33
33
  setup(t, { expose: S, emit: V }) {
34
- const u = F(t, "modelValue"), r = V, i = d(""), a = d([]), v = d(null), b = d(!1), n = d(!1), C = d(null), B = k(() => a.value.length);
34
+ const u = F(
35
+ t,
36
+ "modelValue"
37
+ ), r = V, i = d(""), a = d([]), v = d(null), b = d(!1), n = d(!1), C = d(null), B = k(() => a.value.length);
35
38
  L(() => {
36
39
  v.value = q({ delay: 300 }, t.onInputChangeCb);
37
40
  });