@wikicasa-dev/components 2.1.3 → 2.1.4-alpha.10

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 (170) hide show
  1. package/dist/UIKit/BaseAlert.d.ts +20 -9
  2. package/dist/UIKit/BaseBadge.d.ts +40 -5
  3. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +4 -0
  4. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +4 -0
  5. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +4 -0
  6. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +4 -0
  7. package/dist/UIKit/BaseBanner.js +4 -0
  8. package/dist/UIKit/BaseBreadcrumb.js +3 -2
  9. package/dist/UIKit/BaseButton.d.ts +9 -8
  10. package/dist/UIKit/BaseChip.js +4 -0
  11. package/dist/UIKit/BaseCollapse.js +7 -0
  12. package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
  13. package/dist/UIKit/BaseComplexToggle.js +2 -2
  14. package/dist/UIKit/BaseDropDown.d.ts +5 -0
  15. package/dist/UIKit/BaseFloatingLabel.js +1 -3
  16. package/dist/UIKit/BaseInput.d.ts +4 -5
  17. package/dist/UIKit/BaseInput.js +1 -3
  18. package/dist/UIKit/BaseNotificationBadge.js +4 -0
  19. package/dist/UIKit/BasePagination.d.ts +10 -3
  20. package/dist/UIKit/BasePin.d.ts +22 -0
  21. package/dist/UIKit/BasePin.js +5 -0
  22. package/dist/UIKit/BaseSelect.d.ts +26 -0
  23. package/dist/UIKit/BaseSelect.js +5 -0
  24. package/dist/UIKit/BaseSlider.d.ts +14 -10
  25. package/dist/UIKit/BaseSlider.js +1 -4
  26. package/dist/UIKit/BaseSnackbar.js +4 -4
  27. package/dist/UIKit/BaseTextarea.d.ts +4 -4
  28. package/dist/UIKit/BaseTextarea.js +3 -3
  29. package/dist/UIKit/BaseToggle.d.ts +5 -8
  30. package/dist/UIKit/BaseToggle.js +1 -4
  31. package/dist/UIKit/BaseTooltip.d.ts +10 -20
  32. package/dist/UIKit/BaseTooltip.js +2 -2
  33. package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
  34. package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -5
  35. package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
  36. package/dist/UIKit/DatePicker.js +5 -0
  37. package/dist/UIKit/InputDropdown.js +4 -0
  38. package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
  39. package/dist/UIKit/Navigation/NavigationBar.js +5 -0
  40. package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
  41. package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
  42. package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
  43. package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
  44. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +1 -3
  45. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
  46. package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
  47. package/dist/UIKit/Tab/BaseTabItem.js +4 -0
  48. package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
  49. package/dist/UIKit/types.d.ts +11 -6
  50. package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +1 -0
  51. package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
  52. package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
  53. package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +1 -0
  54. package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
  55. package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
  56. package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
  57. package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
  58. package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
  59. package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
  60. package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -0
  61. package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +1 -0
  62. package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
  63. package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
  64. package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
  65. package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
  66. package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
  67. package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
  68. package/dist/assets/packages/components/src/tailwind.css +1 -1
  69. package/dist/composables/useFloatingLabel.d.ts +1 -1
  70. package/dist/composables/useFloatingLabel.js +20 -20
  71. package/dist/index.d.ts +5 -2
  72. package/dist/index.js +98 -85
  73. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +19 -0
  74. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +16 -0
  75. package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +29 -0
  76. package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +33 -0
  77. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.js +1 -1
  78. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.js +1 -1
  79. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.js +9 -9
  80. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.js +17 -17
  81. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.js +1 -1
  82. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.js +13 -13
  83. package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/utils.js +32 -26
  84. package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
  85. package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
  86. package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
  87. package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
  88. package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
  89. package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
  90. package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
  91. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +30 -30
  92. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  93. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
  94. package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +107 -13
  95. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +28 -27
  96. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +46 -11
  97. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
  98. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
  99. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
  100. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
  101. package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
  102. package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +32 -35
  103. package/dist/packages/components/lib/UIKit/BaseButton.vue.js +56 -36
  104. package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
  105. package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
  106. package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
  107. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +48 -45
  108. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +14 -17
  109. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +93 -119
  110. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +70 -66
  111. package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
  112. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +89 -134
  113. package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
  114. package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +65 -0
  115. package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +107 -178
  116. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
  117. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +55 -73
  118. package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +27 -31
  119. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +48 -33
  120. package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +19 -40
  121. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +55 -52
  122. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +20 -26
  123. package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
  124. package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
  125. package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
  126. package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
  127. package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
  128. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
  129. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
  130. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +10 -9
  131. package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +10 -9
  132. package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
  133. package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +30 -27
  134. package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +40 -36
  135. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +5 -6
  136. package/dist/utils.d.ts +1 -1
  137. package/dist/utils.js +5 -3
  138. package/package.json +26 -19
  139. package/plugins/buttonPlugin.ts +290 -0
  140. package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
  141. package/dist/UIKit/Slider/SimpleSlider.js +0 -7
  142. package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +0 -1
  143. package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +0 -1
  144. package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +0 -1
  145. package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
  146. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
  147. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
  148. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
  149. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +0 -18
  150. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
  151. package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
  152. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/free-mode.css +0 -0
  153. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.css +0 -0
  154. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/pagination.css +0 -0
  155. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/zoom.css +0 -0
  156. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/swiper.css +0 -0
  157. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
  158. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
  159. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
  160. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
  161. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
  162. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.css.js +0 -0
  163. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/autoplay.js +0 -0
  164. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/controller.css.js +0 -0
  165. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/keyboard.css.js +0 -0
  166. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/navigation.js +0 -0
  167. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/modules/thumbs.css.js +0 -0
  168. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/classes-to-selector.js +0 -0
  169. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
  170. /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.8}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
@@ -0,0 +1,75 @@
1
+ import { defineComponent as d, createElementBlock as k, openBlock as e, normalizeClass as m, createElementVNode as a, renderSlot as o, createVNode as t, createBlock as s, resolveDynamicComponent as r, withCtx as l, createTextVNode as u, toDisplayString as n } from "vue";
2
+ import c from "./BaseBanner/Background/BaseBannerBgElement1.vue.js";
3
+ import b from "./BaseBanner/Background/BaseBannerBgElement2.vue.js";
4
+ import h from "./BaseBanner/Background/BaseBannerBgElement3.vue.js";
5
+ import p from "./BaseBanner/Background/BaseBannerBgElement4.vue.js";
6
+ const f = ["aria-label"], g = { class: "uikit-relative uikit-z-[2]" }, v = { class: "uikit-text max-sm:uikit-mb-md" }, L = /* @__PURE__ */ d({
7
+ __name: "BaseBanner",
8
+ props: {
9
+ ariaLabel: {},
10
+ headerTag: {},
11
+ title: {},
12
+ description: {},
13
+ ctaComponent: { type: [Object, Function] },
14
+ ctaLabel: {},
15
+ bannerClass: {}
16
+ },
17
+ setup(C) {
18
+ return (i, _) => (e(), k("section", {
19
+ "aria-label": i.ariaLabel,
20
+ class: m([
21
+ "uikit-relative uikit-overflow-hidden uikit-rounded-xs uikit-p-md uikit-text-white sm:uikit-p-lg",
22
+ i.bannerClass === "secondary" ? "uikit-bg-w-blue" : "uikit-bg-w-pink"
23
+ ])
24
+ }, [
25
+ a("div", g, [
26
+ o(i.$slots, "title", {}, () => [
27
+ (e(), s(r(i.headerTag || "h2"), { class: "uikit-m-0 uikit-text-20 max-sm:uikit-mb-xs" }, {
28
+ default: l(() => [
29
+ u(n(i.title), 1)
30
+ ]),
31
+ _: 1
32
+ }))
33
+ ]),
34
+ o(i.$slots, "description", {}, () => [
35
+ a("p", v, n(i.description), 1)
36
+ ])
37
+ ]),
38
+ o(i.$slots, "cta", {}, () => [
39
+ (e(), s(r(i.ctaComponent || "button"), { class: "uikit-btn uikit-btn-ternary uikit-relative uikit-z-[2]" }, {
40
+ default: l(() => [
41
+ u(n(i.ctaLabel), 1)
42
+ ]),
43
+ _: 1
44
+ }))
45
+ ]),
46
+ t(c, {
47
+ class: "uikit-pointer-events-none uikit-absolute -uikit-right-1/2 uikit-bottom-0 max-sm:uikit-hidden",
48
+ width: 1597,
49
+ height: 211,
50
+ color: i.bannerClass === "secondary" ? "#254fd9" : void 0
51
+ }, null, 8, ["color"]),
52
+ t(b, {
53
+ class: "uikit-pointer-events-none uikit-absolute -uikit-right-1/2 uikit-bottom-0 max-sm:uikit-hidden",
54
+ width: 1597,
55
+ height: 211,
56
+ color: i.bannerClass === "secondary" ? "#2146bf" : void 0
57
+ }, null, 8, ["color"]),
58
+ t(h, {
59
+ class: "uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-right-0 uikit-z-[1] sm:uikit-hidden",
60
+ width: 411,
61
+ height: 196,
62
+ color: i.bannerClass === "secondary" ? "#2146bf" : void 0
63
+ }, null, 8, ["color"]),
64
+ t(p, {
65
+ class: "uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-right-0 sm:uikit-hidden",
66
+ width: 411,
67
+ height: 196,
68
+ color: i.bannerClass === "secondary" ? "#254fd9" : void 0
69
+ }, null, 8, ["color"])
70
+ ], 10, f));
71
+ }
72
+ });
73
+ export {
74
+ L as default
75
+ };
@@ -1,51 +1,48 @@
1
- import { defineComponent as d, computed as k, createElementBlock as s, openBlock as i, createElementVNode as n, normalizeClass as a, Fragment as u, renderList as p, renderSlot as c, toDisplayString as h, createVNode as b, unref as f } from "vue";
2
- import { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
3
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
- const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], I = ["href"], v = /* @__PURE__ */ d({
1
+ import { defineComponent as m, computed as k, createElementBlock as i, openBlock as l, createElementVNode as o, normalizeClass as r, Fragment as u, renderList as p, renderSlot as d, toDisplayString as b, createTextVNode as h } from "vue";
2
+ const f = {
3
+ "aria-label": "Breadcrumb",
4
+ class: "uikit-text"
5
+ }, C = ["data-tooltip", "data-active"], g = ["href"], B = /* @__PURE__ */ m({
5
6
  __name: "BaseBreadcrumb",
6
7
  props: {
7
8
  items: {},
8
9
  listClasses: {},
9
10
  listItemClasses: {}
10
11
  },
11
- setup(r) {
12
- const m = k(() => {
12
+ setup(a) {
13
+ const c = k(() => {
13
14
  let e = 0;
14
- const l = [];
15
- for (; e < r.items.length; )
16
- l.push({ ...r.items[e], idx: e }), e < r.items.length - 1 && l.push({ arrowIcon: !0 }), e++;
17
- return l;
15
+ const t = [];
16
+ for (; e < a.items.length; )
17
+ t.push({ ...a.items[e], idx: e }), e < a.items.length - 1 && t.push({ arrowIcon: !0 }), e++;
18
+ return t;
18
19
  });
19
- return (e, l) => (i(), s("nav", g, [
20
- n("ol", {
21
- class: a(["uikit-flex uikit-items-center uikit-gap-10px uikit-p-0", e.listClasses])
20
+ return (e, t) => (l(), i("nav", f, [
21
+ o("ol", {
22
+ class: r(["uikit-gap-10px uikit-flex uikit-items-center uikit-p-0", e.listClasses])
22
23
  }, [
23
- (i(!0), s(u, null, p(m.value, (t, o) => (i(), s(u, null, [
24
- t?.label ? (i(), s("li", {
25
- key: `breadcrumb-li-${o}`,
26
- class: a(["uikit-list-none", e.listItemClasses]),
27
- "data-tooltip": t.dataTooltip
24
+ (l(!0), i(u, null, p(c.value, (s, n) => (l(), i(u, null, [
25
+ s?.label ? (l(), i("li", {
26
+ key: `breadcrumb-li-${n}`,
27
+ class: r(["uikit-breadcrumb-item uikit-list-none", e.listItemClasses]),
28
+ "data-tooltip": s.dataTooltip,
29
+ "data-active": s.active
28
30
  }, [
29
- c(e.$slots, "item", {
30
- item: t
31
+ d(e.$slots, "item", {
32
+ item: s
31
33
  }, () => [
32
- n("a", {
33
- class: a(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
34
- href: t.link
35
- }, h(t.label), 11, I)
34
+ o("a", {
35
+ class: "uikit-no-underline [font-size:inherit]",
36
+ href: s.link
37
+ }, b(s.label), 9, g)
36
38
  ])
37
- ], 10, w)) : (i(), s("li", {
38
- key: `breadcrumb-li-no-label-${o}`,
39
- class: a(["uikit-list-none", e.listItemClasses]),
39
+ ], 10, C)) : (l(), i("li", {
40
+ key: `breadcrumb-li-no-label-${n}`,
41
+ class: r(["uikit-list-none uikit-px-sm", e.listItemClasses]),
40
42
  "aria-hidden": "true"
41
43
  }, [
42
- c(e.$slots, "separator", {}, () => [
43
- b(f(C), {
44
- class: "-uikit-rotate-90",
45
- "stroke-color": "#222",
46
- width: 10,
47
- height: 10
48
- })
44
+ d(e.$slots, "separator", {}, () => [
45
+ t[0] || (t[0] = h(" / "))
49
46
  ])
50
47
  ], 2))
51
48
  ], 64))), 256))
@@ -54,5 +51,5 @@ const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], I = ["href"], v
54
51
  }
55
52
  });
56
53
  export {
57
- v as default
54
+ B as default
58
55
  };
@@ -1,10 +1,11 @@
1
- import { defineComponent as y, ref as b, computed as l, createElementBlock as f, openBlock as v, withModifiers as s, normalizeStyle as B, normalizeClass as C, renderSlot as u, createVNode as c } from "vue";
2
- import M from "../../../../UIKit/StaticSpinner.js";
3
- const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ y({
1
+ import { defineComponent as f, ref as v, computed as s, createElementBlock as c, openBlock as g, withModifiers as l, normalizeStyle as B, normalizeClass as h, renderSlot as r, createVNode as C } from "vue";
2
+ import w from "../../../../UIKit/StaticSpinner.js";
3
+ const M = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "title"], S = /* @__PURE__ */ f({
4
4
  __name: "BaseButton",
5
5
  props: {
6
- btnClass: { default: "uikit-btn-w-primary" },
6
+ btnClass: { default: "primary" },
7
7
  outlined: { type: Boolean },
8
+ rounded: { type: Boolean },
8
9
  size: {},
9
10
  withMinWidth: { type: Boolean, default: !0 },
10
11
  keepActive: { type: Boolean },
@@ -16,49 +17,68 @@ const z = ["id", "data-cy", "type", "data-active", "disabled", "aria-label", "ti
16
17
  type: {}
17
18
  },
18
19
  emits: ["mouseover", "mouseout", "click"],
19
- setup(o, { emit: r }) {
20
- const a = r, n = b(!1), d = l(() => o.size ? `uikit-btn-${o.size}` : ""), m = l(() => o.outlined ? "uikit-btn-outline" : ""), p = () => {
21
- n.value = !0;
22
- }, k = () => {
23
- n.value = !1;
20
+ setup(a, { emit: u }) {
21
+ const n = u, d = {
22
+ primary: "uikit-btn-primary",
23
+ secondary: "uikit-btn-secondary",
24
+ ternary: "uikit-btn-ternary",
25
+ quaternary: "uikit-btn-quaternary",
26
+ warning: "uikit-btn-warning",
27
+ danger: "uikit-btn-danger",
28
+ transparent: "uikit-btn-transparent",
29
+ light: "uikit-btn-light",
30
+ "show-more": "uikit-btn-show-more",
31
+ "multi-selection": "uikit-btn-multi-selection",
32
+ "single-selection": "uikit-btn-single-selection",
33
+ facile: "uikit-btn-facile"
34
+ }, k = {
35
+ sm: "uikit-btn-sm",
36
+ lg: "uikit-btn-lg"
37
+ }, o = v(!1), b = s(
38
+ () => k[a.size]
39
+ ), m = s(() => a.outlined ? "uikit-btn-outline" : ""), p = () => {
40
+ o.value = !0;
41
+ }, y = () => {
42
+ o.value = !1;
24
43
  };
25
- return (e, t) => (v(), f("button", {
26
- id: e.$attrs.id,
27
- "data-cy": e.dataCy,
28
- type: e.type,
29
- class: C([
44
+ return (t, e) => (g(), c("button", {
45
+ id: t.$attrs.id,
46
+ "data-cy": t.dataCy,
47
+ type: t.type,
48
+ class: h([
30
49
  "uikit-btn",
31
50
  {
32
- "uikit-btn-empty": !e.withMinWidth,
33
- "active uikit-font-medium": e.keepActive,
34
- "uikit-flex uikit-items-center uikit-justify-center": e.isLoading
51
+ "uikit-btn-empty": !t.withMinWidth,
52
+ "active uikit-font-medium": t.keepActive,
53
+ "uikit-flex uikit-items-center uikit-justify-center": t.isLoading
35
54
  },
36
- e.btnClass,
37
- d.value,
38
- m.value
55
+ d[t.btnClass],
56
+ b.value,
57
+ m.value,
58
+ { "uikit-btn-rounded": t.rounded }
39
59
  ]),
40
- style: B(e.$attrs.style),
41
- "data-active": e.keepActive,
42
- disabled: e.isLoading || e.disabled,
43
- "aria-label": e.ariaLabel,
44
- title: e.title,
45
- onMouseover: t[0] || (t[0] = s((i) => {
46
- p(), a("mouseover", i);
60
+ style: B(t.$attrs.style),
61
+ "data-active": t.keepActive,
62
+ disabled: t.isLoading || t.disabled,
63
+ "aria-label": t.ariaLabel,
64
+ title: t.title,
65
+ onMouseover: e[0] || (e[0] = l((i) => {
66
+ p(), n("mouseover", i);
47
67
  }, ["stop"])),
48
- onMouseout: t[1] || (t[1] = s((i) => {
49
- k(), a("mouseout", i);
68
+ onMouseout: e[1] || (e[1] = l((i) => {
69
+ y(), n("mouseout", i);
50
70
  }, ["stop"])),
51
- onClick: t[2] || (t[2] = (i) => a("click", i))
71
+ onClick: e[2] || (e[2] = (i) => n("click", i))
52
72
  }, [
53
- e.isLoading ? u(e.$slots, "spinner", { key: 1 }, () => [
54
- c(M, {
55
- "stroke-color": e.outlined ? "#ACB4C3" : "#fff"
73
+ t.isLoading ? r(t.$slots, "spinner", { key: 1 }, () => [
74
+ C(w, {
75
+ "stroke-color": t.outlined ? "#ACB4C3" : "#fff"
56
76
  }, null, 8, ["stroke-color"])
57
- ]) : u(e.$slots, "default", {
77
+ ]) : r(t.$slots, "default", {
58
78
  key: 0,
59
- hover: n.value
79
+ hover: o.value
60
80
  })
61
- ], 46, z));
81
+ ], 46, M));
62
82
  }
63
83
  });
64
84
  export {
@@ -0,0 +1,38 @@
1
+ import { defineComponent as a, useModel as d, createBlock as s, openBlock as i, unref as o, withCtx as k, renderSlot as m, createElementBlock as n, createCommentVNode as f, createVNode as c } from "vue";
2
+ import { Toggle as p } from "reka-ui";
3
+ import { CloseIcon as x } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
4
+ import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
5
+ const b = {
6
+ key: 0,
7
+ class: "uikit-box-border uikit-flex uikit-size-sm uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-blue uikit-text-10 uikit-text-white"
8
+ }, C = /* @__PURE__ */ a({
9
+ __name: "BaseChip",
10
+ props: {
11
+ modelValue: { default: !1 },
12
+ modelModifiers: {}
13
+ },
14
+ emits: ["update:modelValue"],
15
+ setup(u) {
16
+ const e = d(u, "modelValue");
17
+ return (l, t) => (i(), s(o(p), {
18
+ modelValue: e.value,
19
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value = r),
20
+ class: "uikit-flex uikit-h-xl uikit-items-center uikit-gap-x-2xs uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-px-sm uikit-py-xs uikit-text-12 hover:uikit-border-[#385CF6] data-[state=on]:uikit-border-[#385CF6] data-[state=on]:uikit-bg-w-cultured data-[state=on]:uikit-font-medium data-[state=on]:uikit-text-w-blue"
21
+ }, {
22
+ default: k(() => [
23
+ m(l.$slots, "default"),
24
+ e.value ? (i(), n("span", b, [
25
+ c(o(x), {
26
+ width: 6,
27
+ height: 6,
28
+ "stroke-color": "#fff"
29
+ })
30
+ ])) : f("", !0)
31
+ ]),
32
+ _: 3
33
+ }, 8, ["modelValue"]));
34
+ }
35
+ });
36
+ export {
37
+ C as default
38
+ };
@@ -0,0 +1,54 @@
1
+ import { defineComponent as s, mergeModels as p, useModel as d, createBlock as f, openBlock as m, unref as t, withCtx as i, createVNode as n, renderSlot as l, normalizeClass as k } from "vue";
2
+ import { ArrowFilledIcon as c } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js";
3
+ import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
+ import { CollapsibleRoot as b, CollapsibleTrigger as g, CollapsibleContent as C } from "reka-ui";
5
+ const M = /* @__PURE__ */ s({
6
+ __name: "BaseCollapse",
7
+ props: /* @__PURE__ */ p({
8
+ unmountOnHide: { type: Boolean, default: !0 }
9
+ }, {
10
+ open: { default: !1 },
11
+ openModifiers: {}
12
+ }),
13
+ emits: ["update:open"],
14
+ setup(a) {
15
+ const o = d(a, "open");
16
+ return (e, r) => (m(), f(t(b), {
17
+ open: o.value,
18
+ "onUpdate:open": r[0] || (r[0] = (u) => o.value = u),
19
+ "unmount-on-hide": e.unmountOnHide
20
+ }, {
21
+ default: i(() => [
22
+ n(t(g), { class: "uikit-inline-flex uikit-cursor-pointer uikit-appearance-none uikit-items-center uikit-gap-xs uikit-bg-transparent uikit-p-0 uikit-font-semibold uikit-text-w-blue" }, {
23
+ default: i(() => [
24
+ l(e.$slots, "label", {}, void 0, !0),
25
+ l(e.$slots, "trigger", {}, () => [
26
+ n(t(c), {
27
+ "fill-color": "#2b5dff",
28
+ width: 14,
29
+ height: 16,
30
+ class: k([
31
+ "uikit-pointer-events-none uikit-transition-transform uikit-will-change-transform",
32
+ {
33
+ "uikit-rotate-180": o.value
34
+ }
35
+ ])
36
+ }, null, 8, ["class"])
37
+ ], !0)
38
+ ]),
39
+ _: 3
40
+ }),
41
+ n(t(C), { class: "collapsible-content" }, {
42
+ default: i(() => [
43
+ l(e.$slots, "default", {}, void 0, !0)
44
+ ]),
45
+ _: 3
46
+ })
47
+ ]),
48
+ _: 3
49
+ }, 8, ["open", "unmount-on-hide"]));
50
+ }
51
+ });
52
+ export {
53
+ M as default
54
+ };
@@ -1,13 +1,13 @@
1
- import { defineComponent as v, mergeModels as T, useModel as C, computed as c, createElementBlock as n, openBlock as r, normalizeClass as o, createElementVNode as t, withModifiers as f, renderSlot as m, createCommentVNode as k } from "vue";
2
- const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "alt"], M = ["innerHTML"], z = ["data-btn-bg-color", "data-cy"], B = ["src", "alt"], V = ["innerHTML"], j = /* @__PURE__ */ v({
1
+ import { defineComponent as v, mergeModels as T, useModel as y, computed as c, createElementBlock as r, openBlock as g, normalizeClass as o, createElementVNode as t, withModifiers as f, renderSlot as m, createCommentVNode as k } from "vue";
2
+ const C = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "alt"], M = ["innerHTML"], z = ["data-btn-bg-color", "data-cy"], B = ["src", "alt"], V = ["innerHTML"], j = /* @__PURE__ */ v({
3
3
  __name: "BaseComplexToggle",
4
4
  props: /* @__PURE__ */ T({
5
5
  labels: {},
6
6
  type: { default: "full" },
7
7
  mode: { default: "" },
8
- btnBgColor: { default: "uikit-bg-w-lavender" },
8
+ btnBgColor: { default: "uikit-bg-w-gray" },
9
9
  btnClasses: {},
10
- borderContainerColor: { default: "uikit-border-w-secondary" },
10
+ borderContainerColor: { default: "uikit-border-w-gray" },
11
11
  size: { default: "" }
12
12
  }, {
13
13
  modelValue: {
@@ -16,8 +16,8 @@ const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
16
16
  modelModifiers: {}
17
17
  }),
18
18
  emits: ["update:modelValue"],
19
- setup(g) {
20
- const l = g, a = C(g, "modelValue"), s = () => {
19
+ setup(n) {
20
+ const l = n, a = y(n, "modelValue"), s = () => {
21
21
  a.value = l.labels.leftToggle;
22
22
  }, u = () => {
23
23
  a.value = l.labels.rightToggle;
@@ -34,7 +34,7 @@ const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
34
34
  s();
35
35
  })();
36
36
  const b = (e) => a.value?.label === e.label, d = c(() => b(l.labels.leftToggle)), p = c(() => b(l.labels.rightToggle));
37
- return (e, i) => (r(), n("div", {
37
+ return (e, i) => (g(), r("div", {
38
38
  id: e.$attrs.id || "",
39
39
  "data-cy": e.$attrs["data-cy"] || "",
40
40
  class: o(["base-complex-toggle uikit-relative uikit-flex uikit-justify-center uikit-p-0", [e.mode, e.borderContainerColor, e.size]])
@@ -50,9 +50,9 @@ const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
50
50
  onClick: i[0] || (i[0] = f((h) => s(), ["stop"]))
51
51
  }, [
52
52
  m(e.$slots, "left_icon", {}, () => [
53
- e.labels.leftToggle.icon ? (r(), n("img", {
53
+ e.labels.leftToggle.icon ? (g(), r("img", {
54
54
  key: 0,
55
- class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
55
+ class: "base-complex-toggle-icon uikit-mr-10px uikit-relative uikit-z-10",
56
56
  src: e.labels.leftToggle.icon.src,
57
57
  alt: e.labels.leftToggle.icon.alt,
58
58
  width: "15",
@@ -75,9 +75,9 @@ const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
75
75
  onClick: i[1] || (i[1] = f((h) => u(), ["stop"]))
76
76
  }, [
77
77
  m(e.$slots, "right_icon", {}, () => [
78
- e.labels.rightToggle.icon ? (r(), n("img", {
78
+ e.labels.rightToggle.icon ? (g(), r("img", {
79
79
  key: 0,
80
- class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
80
+ class: "base-complex-toggle-icon uikit-mr-10px uikit-relative uikit-z-10",
81
81
  src: e.labels.rightToggle.icon.src,
82
82
  alt: e.labels.rightToggle.icon.alt,
83
83
  width: "15",
@@ -98,7 +98,7 @@ const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
98
98
  e.btnClasses
99
99
  ]])
100
100
  }, null, 2)
101
- ], 10, y));
101
+ ], 10, C));
102
102
  }
103
103
  });
104
104
  export {
@@ -1,12 +1,12 @@
1
- import { defineComponent as L, mergeModels as b, useId as M, useModel as E, ref as h, computed as O, useTemplateRef as W, watch as n, onBeforeMount as $, onMounted as H, onUnmounted as K, createElementBlock as N, openBlock as u, withModifiers as C, normalizeClass as i, renderSlot as g, createBlock as y, createVNode as T, unref as l, withCtx as D, createElementVNode as V, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
1
+ import { defineComponent as L, mergeModels as h, useId as M, useModel as E, ref as y, computed as H, useTemplateRef as O, watch as d, onBeforeMount as W, onMounted as $, onUnmounted as K, createElementBlock as N, openBlock as p, withModifiers as C, normalizeClass as l, renderSlot as g, createBlock as D, createVNode as T, unref as i, withCtx as S, createElementVNode as V, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
2
2
  import R from "./BaseButton.vue.js";
3
- import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
4
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
3
+ import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
4
+ import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
5
5
  import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
6
- const F = ["innerHTML"], Z = /* @__PURE__ */ L({
6
+ const x = ["innerHTML"], Y = /* @__PURE__ */ L({
7
7
  inheritAttrs: !1,
8
8
  __name: "BaseDropDown",
9
- props: /* @__PURE__ */ b({
9
+ props: /* @__PURE__ */ h({
10
10
  dropdownClasses: { default: "" },
11
11
  btnClasses: { default: "" },
12
12
  withArrowIcon: { type: Boolean, default: !1 },
@@ -21,6 +21,7 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
21
21
  dropdownElement: { default: "div" },
22
22
  keepState: { default: "" },
23
23
  activateKeyboardController: { type: Boolean, default: !0 },
24
+ disableSpaceHandler: { type: Boolean, default: !1 },
24
25
  dataCy: { default: "" }
25
26
  }, {
26
27
  toggleDropdown: {
@@ -28,14 +29,15 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
28
29
  },
29
30
  toggleDropdownModifiers: {}
30
31
  }),
31
- emits: /* @__PURE__ */ b(["click", "update:dropdownState"], ["update:toggleDropdown"]),
32
- setup(p, { emit: B }) {
33
- const o = p, c = M(), f = B, k = E(p, "toggleDropdown"), t = h(!1), d = h([]), I = O(() => d.value.length), w = W("dropdown"), { activeIdx: m, selectedIdx: r } = j({
34
- optionsLength: I,
32
+ emits: /* @__PURE__ */ h(["click", "update:dropdownState", "update:selectedIdx"], ["update:toggleDropdown"]),
33
+ setup(c, { emit: I }) {
34
+ const o = c, f = M(), n = I, k = E(c, "toggleDropdown"), t = y(!1), r = y([]), B = H(() => r.value.length), w = O("dropdown"), { activeIdx: m, selectedIdx: s } = j({
35
+ optionsLength: B,
35
36
  isDropdownOpen: t,
36
- activate: o.activateKeyboardController
37
+ activate: o.activateKeyboardController,
38
+ disableSpaceHandler: o.disableSpaceHandler
37
39
  });
38
- n(
40
+ d(
39
41
  () => o.openDropdown,
40
42
  (e) => {
41
43
  t.value = e;
@@ -43,57 +45,58 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
43
45
  {
44
46
  immediate: !0
45
47
  }
46
- ), n(t, (e) => {
47
- f("update:dropdownState", e);
48
- }), n(k, (e) => {
48
+ ), d(t, (e) => {
49
+ n("update:dropdownState", e);
50
+ }), d(k, (e) => {
49
51
  e && (t.value = !t.value, k.value = !1);
50
- }), n(r, (e) => {
51
- e !== -1 && d.value[e].querySelector("a")?.click();
52
+ }), d(s, (e) => {
53
+ e !== -1 && (r.value[e].querySelector("a")?.click(), n("update:selectedIdx", e));
52
54
  });
53
55
  const v = () => {
54
56
  t.value = !1;
55
- }, s = () => {
57
+ }, u = () => {
56
58
  o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
57
- }, S = (e) => {
59
+ }, b = (e) => {
58
60
  e != null && (m.value = e);
59
61
  }, A = (e) => {
60
- e != null && (r.value = e);
62
+ e != null && (s.value = e);
61
63
  };
62
- return $(() => {
64
+ return W(() => {
63
65
  o.closeWhenClickedOutside && document.body.addEventListener("click", v);
64
- }), H(() => {
65
- w.value && (d.value = w.value.children || []);
66
+ }), $(() => {
67
+ w.value && (r.value = w.value.children || []);
66
68
  }), K(() => {
67
69
  o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
68
- }), (e, a) => (u(), N("div", {
69
- class: i(["uikit-relative uikit-block", e.$attrs.class]),
70
- onClick: a[1] || (a[1] = C((G) => {
71
- f("click"), s();
70
+ }), (e, a) => (p(), N("div", {
71
+ class: l(["uikit-relative uikit-block", e.$attrs.class]),
72
+ onClick: a[1] || (a[1] = C((F) => {
73
+ n("click"), u();
72
74
  }, ["stop"]))
73
75
  }, [
74
76
  g(e.$slots, "btn_slot", {
75
- toggleDropdown: s,
76
- isOpen: t.value
77
+ toggleDropdown: u,
78
+ isOpen: t.value,
79
+ setActiveIdx: b
77
80
  }, () => [
78
81
  T(R, {
79
- id: l(c),
82
+ id: i(f),
80
83
  type: "button",
81
84
  "data-cy": e.dataCy,
82
- class: i([
85
+ class: l([
83
86
  "!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
84
87
  e.btnClasses
85
88
  ]),
86
89
  "aria-expanded": t.value,
87
- "btn-class": "uikit-btn-single-selection"
90
+ "btn-class": "single-selection"
88
91
  }, {
89
- default: D(() => [
92
+ default: S(() => [
90
93
  V("span", {
91
- class: i(["uikit-mr-5px", e.labelClasses]),
94
+ class: l(["uikit-mr-5px", e.labelClasses]),
92
95
  innerHTML: e.btnLabel
93
- }, null, 10, F),
94
- e.withArrowIcon ? (u(), y(l(U), {
96
+ }, null, 10, x),
97
+ e.withArrowIcon ? (p(), D(i(U), {
95
98
  key: 0,
96
- class: i(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
99
+ class: l(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
97
100
  width: e.arrowWidth,
98
101
  height: e.arrowWidth,
99
102
  "stroke-color": e.arrowStrokeColor
@@ -102,11 +105,11 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
102
105
  _: 1
103
106
  }, 8, ["id", "data-cy", "class", "aria-expanded"])
104
107
  ]),
105
- (u(), y(z(e.dropdownElement), {
106
- id: "dropdown_" + l(c),
108
+ (p(), D(z(e.dropdownElement), {
109
+ id: "dropdown_" + i(f),
107
110
  ref: "dropdown",
108
111
  "data-cy": e.dataCy && `${e.dataCy}_dropdown`,
109
- class: i(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
112
+ class: l(["uikit-border-w-lavender uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
110
113
  e.dropdownClasses,
111
114
  t.value ? "uikit-flex" : "uikit-hidden",
112
115
  { "uikit-bottom-[55px] uikit-rounded-xs": e.direction === "up" },
@@ -117,13 +120,13 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
117
120
  onClick: a[0] || (a[0] = C(() => {
118
121
  }, ["stop"]))
119
122
  }, {
120
- default: D(() => [
123
+ default: S(() => [
121
124
  g(e.$slots, "default", {
122
125
  isOpen: t.value,
123
- toggleDropdown: s,
124
- activeIdx: l(m),
125
- selectedIdx: l(r),
126
- setActiveIdx: S,
126
+ toggleDropdown: u,
127
+ activeIdx: i(m),
128
+ selectedIdx: i(s),
129
+ setActiveIdx: b,
127
130
  setSelectedIdx: A
128
131
  })
129
132
  ]),
@@ -133,5 +136,5 @@ const F = ["innerHTML"], Z = /* @__PURE__ */ L({
133
136
  }
134
137
  });
135
138
  export {
136
- Z as default
139
+ Y as default
137
140
  };