@wikicasa-dev/components 2.1.4-alpha.9 → 2.1.4

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 +9 -20
  2. package/dist/UIKit/BaseBadge.d.ts +5 -40
  3. package/dist/UIKit/BaseBreadcrumb.js +2 -3
  4. package/dist/UIKit/BaseButton.d.ts +8 -9
  5. package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
  6. package/dist/UIKit/BaseComplexToggle.js +2 -2
  7. package/dist/UIKit/BaseDropDown.d.ts +0 -5
  8. package/dist/UIKit/BaseFloatingLabel.js +3 -1
  9. package/dist/UIKit/BaseInput.d.ts +5 -4
  10. package/dist/UIKit/BaseInput.js +3 -1
  11. package/dist/UIKit/BasePagination.d.ts +3 -10
  12. package/dist/UIKit/BaseSlider.d.ts +10 -14
  13. package/dist/UIKit/BaseSlider.js +4 -1
  14. package/dist/UIKit/BaseSnackbar.js +4 -4
  15. package/dist/UIKit/BaseTextarea.d.ts +4 -4
  16. package/dist/UIKit/BaseTextarea.js +3 -3
  17. package/dist/UIKit/BaseToggle.d.ts +8 -5
  18. package/dist/UIKit/BaseToggle.js +4 -1
  19. package/dist/UIKit/BaseTooltip.d.ts +20 -10
  20. package/dist/UIKit/BaseTooltip.js +2 -2
  21. package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +16 -9
  22. package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -2
  23. package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -2
  24. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -1
  25. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +5 -1
  26. package/dist/UIKit/Slider/SimpleSlider.d.ts +19 -0
  27. package/dist/UIKit/Slider/SimpleSlider.js +7 -0
  28. package/dist/UIKit/Tab/BaseTabList.d.ts +0 -1
  29. package/dist/UIKit/types.d.ts +6 -11
  30. package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
  31. package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
  32. package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
  33. package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
  34. package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
  35. package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
  36. package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
  37. package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +1 -0
  38. package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
  39. package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
  40. package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +1 -0
  41. package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
  42. package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +1 -0
  43. package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
  44. package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +1 -0
  45. package/dist/assets/packages/components/src/tailwind.css +1 -1
  46. package/dist/composables/useFloatingLabel.d.ts +1 -1
  47. package/dist/composables/useFloatingLabel.js +20 -20
  48. package/dist/index.d.ts +2 -5
  49. package/dist/index.js +85 -98
  50. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +4 -0
  51. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +4 -0
  52. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +12 -0
  53. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +18 -0
  54. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +4 -0
  55. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.js +1 -1
  56. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.js +1 -1
  57. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.js +9 -9
  58. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.js +17 -17
  59. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.js +1 -1
  60. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.js +13 -13
  61. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/utils.js +26 -32
  62. package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
  63. package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
  64. package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
  65. package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
  66. package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
  67. package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
  68. package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
  69. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +30 -30
  70. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  71. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
  72. package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +13 -107
  73. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +27 -28
  74. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +11 -46
  75. package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +35 -32
  76. package/dist/packages/components/lib/UIKit/BaseButton.vue.js +36 -56
  77. package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
  78. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +45 -48
  79. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +17 -14
  80. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +119 -93
  81. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +66 -70
  82. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +134 -89
  83. package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +178 -107
  84. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
  85. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +73 -55
  86. package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +31 -27
  87. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +33 -48
  88. package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +40 -19
  89. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +52 -55
  90. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +26 -20
  91. package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
  92. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +9 -10
  93. package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +9 -10
  94. package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
  95. package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +27 -28
  96. package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +19 -21
  97. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +6 -5
  98. package/dist/utils.d.ts +1 -1
  99. package/dist/utils.js +3 -5
  100. package/package.json +18 -25
  101. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +0 -4
  102. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +0 -4
  103. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +0 -4
  104. package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +0 -4
  105. package/dist/UIKit/BaseBanner.js +0 -4
  106. package/dist/UIKit/BaseChip.js +0 -4
  107. package/dist/UIKit/BaseCollapse.js +0 -7
  108. package/dist/UIKit/BaseNotificationBadge.js +0 -4
  109. package/dist/UIKit/BasePin.d.ts +0 -22
  110. package/dist/UIKit/BasePin.js +0 -5
  111. package/dist/UIKit/BaseSelect.d.ts +0 -26
  112. package/dist/UIKit/BaseSelect.js +0 -5
  113. package/dist/UIKit/DatePicker.js +0 -5
  114. package/dist/UIKit/InputDropdown.js +0 -4
  115. package/dist/UIKit/Navigation/NavigationBar.d.ts +0 -17
  116. package/dist/UIKit/Navigation/NavigationBar.js +0 -5
  117. package/dist/UIKit/Navigation/NavigationBarItem.d.ts +0 -34
  118. package/dist/UIKit/Navigation/NavigationBarItem.js +0 -4
  119. package/dist/UIKit/SegmentedControl/SegmentedControl.js +0 -4
  120. package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +0 -4
  121. package/dist/UIKit/Tab/BaseTabItem.d.ts +0 -27
  122. package/dist/UIKit/Tab/BaseTabItem.js +0 -4
  123. 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 +0 -1
  124. package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +0 -1
  125. package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +0 -1
  126. package/dist/assets/packages/components/lib/UIKit/BasePin.css +0 -1
  127. package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +0 -1
  128. package/dist/assets/packages/components/lib/UIKit/DatePicker.css +0 -1
  129. package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +0 -1
  130. 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 +0 -19
  131. 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 +0 -16
  132. 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 +0 -29
  133. 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 +0 -33
  134. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +0 -29
  135. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +0 -56
  136. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +0 -56
  137. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +0 -56
  138. package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +0 -75
  139. package/dist/packages/components/lib/UIKit/BaseChip.vue.js +0 -38
  140. package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +0 -54
  141. package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +0 -19
  142. package/dist/packages/components/lib/UIKit/BasePin.vue.js +0 -37
  143. package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +0 -65
  144. package/dist/packages/components/lib/UIKit/DatePicker.vue.js +0 -143
  145. package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +0 -152
  146. package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +0 -21
  147. package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +0 -48
  148. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +0 -93
  149. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +0 -30
  150. package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +0 -39
  151. package/plugins/buttonPlugin.ts +0 -290
  152. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.css +0 -0
  153. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.css +0 -0
  154. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.css +0 -0
  155. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.css +0 -0
  156. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/swiper.css +0 -0
  157. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_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.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
  162. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.css.js +0 -0
  163. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.js +0 -0
  164. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.css.js +0 -0
  165. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.css.js +0 -0
  166. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.js +0 -0
  167. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.css.js +0 -0
  168. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/classes-to-selector.js +0 -0
  169. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
  170. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
@@ -2,7 +2,7 @@ import { a, g as c } from "./ssr-window.esm.js";
2
2
  function u(t) {
3
3
  return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
4
4
  }
5
- function p(t, e) {
5
+ function d(t, e) {
6
6
  return e === void 0 && (e = 0), setTimeout(t, e);
7
7
  }
8
8
  function g() {
@@ -13,17 +13,17 @@ function m(t) {
13
13
  let n;
14
14
  return e.getComputedStyle && (n = e.getComputedStyle(t, null)), !n && t.currentStyle && (n = t.currentStyle), n || (n = t.style), n;
15
15
  }
16
- function T(t, e) {
16
+ function y(t, e) {
17
17
  e === void 0 && (e = "x");
18
18
  const n = a();
19
- let r, i, s;
19
+ let r, i, l;
20
20
  const o = m(t);
21
- return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((l) => l.replace(",", ".")).join(", ")), s = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (s = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = s.toString().split(",")), e === "x" && (n.WebKitCSSMatrix ? i = s.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), e === "y" && (n.WebKitCSSMatrix ? i = s.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
21
+ return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((s) => s.replace(",", ".")).join(", ")), l = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (l = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = l.toString().split(",")), e === "x" && (n.WebKitCSSMatrix ? i = l.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), e === "y" && (n.WebKitCSSMatrix ? i = l.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
22
22
  }
23
- function y(t) {
23
+ function S(t) {
24
24
  return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
25
25
  }
26
- function S(t, e) {
26
+ function h(t, e) {
27
27
  e === void 0 && (e = "");
28
28
  const n = a(), r = [...t.children];
29
29
  return n.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((i) => i.matches(e)) : r;
@@ -33,14 +33,14 @@ function w(t, e) {
33
33
  const n = document.createElement(t);
34
34
  return n.classList.add(...Array.isArray(e) ? e : u(e)), n;
35
35
  }
36
- function h(t) {
37
- const e = a(), n = c(), r = t.getBoundingClientRect(), i = n.body, s = t.clientTop || i.clientTop || 0, o = t.clientLeft || i.clientLeft || 0, l = t === e ? e.scrollY : t.scrollTop, f = t === e ? e.scrollX : t.scrollLeft;
36
+ function T(t) {
37
+ const e = a(), n = c(), r = t.getBoundingClientRect(), i = n.body, l = t.clientTop || i.clientTop || 0, o = t.clientLeft || i.clientLeft || 0, s = t === e ? e.scrollY : t.scrollTop, f = t === e ? e.scrollX : t.scrollLeft;
38
38
  return {
39
- top: r.top + l - s,
39
+ top: r.top + s - l,
40
40
  left: r.left + f - o
41
41
  };
42
42
  }
43
- function L(t) {
43
+ function b(t) {
44
44
  let e = t, n;
45
45
  if (e) {
46
46
  for (n = 0; (e = e.previousSibling) !== null; )
@@ -48,44 +48,38 @@ function L(t) {
48
48
  return n;
49
49
  }
50
50
  }
51
- function M(t, e) {
51
+ function C(t, e) {
52
52
  const n = [];
53
53
  let r = t.parentElement;
54
54
  for (; r; )
55
55
  e ? r.matches(e) && n.push(r) : n.push(r), r = r.parentElement;
56
56
  return n;
57
57
  }
58
- function b(t, e) {
58
+ function E(t, e) {
59
59
  function n(r) {
60
60
  r.target === t && (e.call(t, r), t.removeEventListener("transitionend", n));
61
61
  }
62
62
  e && t.addEventListener("transitionend", n);
63
63
  }
64
- function C(t, e, n) {
64
+ function x(t, e, n) {
65
65
  const r = a();
66
66
  return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
67
67
  }
68
- function E(t) {
68
+ function L(t) {
69
69
  return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
70
70
  }
71
- function v(t, e) {
72
- e === void 0 && (e = ""), typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
73
- createHTML: (n) => n
74
- }).createHTML(e) : t.innerHTML = e;
75
- }
76
71
  export {
77
- M as b,
72
+ C as a,
73
+ T as b,
78
74
  w as c,
79
- h as d,
80
- S as e,
81
- g as f,
82
- C as h,
83
- L as i,
84
- u as j,
85
- T as k,
86
- b as l,
87
- E as m,
88
- p as n,
89
- y as o,
90
- v as s
75
+ g as d,
76
+ h as e,
77
+ x as f,
78
+ b as h,
79
+ u as i,
80
+ y as j,
81
+ E as k,
82
+ S as l,
83
+ L as m,
84
+ d as n
91
85
  };
@@ -1,5 +1,5 @@
1
- import { default as p } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.js";
2
- import "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.css.js";
1
+ import { default as p } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js";
2
+ import "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js";
3
3
  export {
4
4
  p as Autoplay
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.js";
2
- import "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.css.js";
1
+ import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js";
2
+ import "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js";
3
3
  export {
4
4
  e as Controller
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.js";
2
- import '../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.css';/* empty css */
1
+ import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js";
2
+ import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.css';/* empty css */
3
3
  export {
4
4
  t as FreeMode
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.js";
2
- import "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.css.js";
1
+ import { default as e } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js";
2
+ import "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js";
3
3
  export {
4
4
  e as Keyboard
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.js";
2
- import '../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.css';/* empty css */
1
+ import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js";
2
+ import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css';/* empty css */
3
3
  export {
4
4
  i as Navigation
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.js";
2
- import '../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.css';/* empty css */
1
+ import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js";
2
+ import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css';/* empty css */
3
3
  export {
4
4
  i as Pagination
5
5
  };
@@ -1,5 +1,5 @@
1
- import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.js";
2
- import "../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.css.js";
1
+ import { default as t } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.js";
2
+ import "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js";
3
3
  export {
4
4
  t as Thumbs
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as F, mergeModels as $, useModel as M, useId as A, computed as V, ref as L, watch as w, onMounted as E, onUnmounted as P, createElementBlock as s, openBlock as a, normalizeClass as l, createElementVNode as o, createCommentVNode as d, withModifiers as p, renderSlot as z, unref as b, createBlock as N, createVNode as O, Fragment as T, renderList as S } from "vue";
2
2
  import { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
3
- import { ArrowIcon as j } 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 { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
5
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
3
+ import { ArrowIcon as j } 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 { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
5
+ import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
6
6
  const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], W = ["innerHTML"], G = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, J = ["innerHTML"], Q = ["data-cy"], X = ["id", "aria-selected", "onClick", "onMouseover"], Y = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Z = ["name", "checked", "onInput"], x = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ee = ["id", "arial-live", "innerHTML"], se = /* @__PURE__ */ F({
7
7
  inheritAttrs: !1,
8
8
  __name: "AccessibleSelect",
@@ -36,27 +36,27 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
36
36
  toggleDropdownModifiers: {}
37
37
  }),
38
38
  emits: /* @__PURE__ */ $(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
39
- setup(r, { emit: B }) {
40
- const h = B, k = M(r, "modelValue"), g = M(r, "toggleDropdown"), H = A(), t = V(() => r.namespace || H), i = L(!1), I = L(null), f = V(() => !!k.value.label), { activeIdx: v, selectedIdx: D } = q({
41
- optionsLength: r.options.length,
39
+ setup(u, { emit: B }) {
40
+ const h = B, k = M(u, "modelValue"), y = M(u, "toggleDropdown"), H = A(), t = V(() => u.namespace || H), i = L(!1), I = L(null), f = V(() => !!k.value.label), { activeIdx: c, selectedIdx: D } = q({
41
+ optionsLength: u.options.length,
42
42
  isDropdownOpen: i
43
43
  }), m = (e) => {
44
44
  i.value = !1, k.value = e;
45
45
  };
46
46
  w(D, (e) => {
47
- m(r.options[e]), i.value = !1;
48
- }), w(g, (e) => {
49
- e && (i.value = !i.value, g.value = !1);
47
+ m(u.options[e]), i.value = !1;
48
+ }), w(y, (e) => {
49
+ e && (i.value = !i.value, y.value = !1);
50
50
  }), w(i, (e) => {
51
51
  h("update:dropdownState", e);
52
52
  });
53
- const y = ({ target: e }) => {
53
+ const g = ({ target: e }) => {
54
54
  `${t.value}_btn` !== e.id && (i.value = !1);
55
55
  };
56
56
  return E(() => {
57
- r.closeOnBodyPressed && document.addEventListener("click", y);
57
+ u.closeOnBodyPressed && document.addEventListener("click", g);
58
58
  }), P(() => {
59
- r.closeOnBodyPressed && document.removeEventListener("click", y);
59
+ u.closeOnBodyPressed && document.removeEventListener("click", g);
60
60
  }), (e, n) => (a(), s("div", {
61
61
  class: l(e.$attrs.class)
62
62
  }, [
@@ -77,7 +77,7 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
77
77
  e.$slots.lefticon ? (a(), s("span", {
78
78
  key: 1,
79
79
  class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
80
- onClick: n[0] || (n[0] = p((u) => i.value = !i.value, ["stop"]))
80
+ onClick: n[0] || (n[0] = p((r) => i.value = !i.value, ["stop"]))
81
81
  }, [
82
82
  z(e.$slots, "lefticon")
83
83
  ])) : d("", !0),
@@ -94,11 +94,11 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
94
94
  "aria-controls": `${t.value}_dropdown`,
95
95
  "aria-labelledby": `${t.value}_label ${t.value}_btn`,
96
96
  "aria-expanded": i.value,
97
- "aria-activedescendant": b(v) >= 0 && i.value ? `${t.value}_element_${e.options[b(v)].label}` : "",
97
+ "aria-activedescendant": b(c) >= 0 && i.value ? `${t.value}_element_${e.options[b(c)].label}` : "",
98
98
  "aria-invalid": e.isValid === !1,
99
99
  "aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
100
- onClick: n[1] || (n[1] = (u) => {
101
- i.value = !i.value, h("click", u);
100
+ onClick: n[1] || (n[1] = (r) => {
101
+ i.value = !i.value, h("click", r);
102
102
  })
103
103
  }, [
104
104
  o("span", {
@@ -128,9 +128,9 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
128
128
  "aria-hidden": "true",
129
129
  class: l(["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
130
  e.fieldsetClasses,
131
- e.isValid ? "uikit-border-w-pink" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-lightgray",
131
+ e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
132
132
  {
133
- "peer-aria-invalid:uikit-border-w-danger uikit-border uikit-border-solid peer-focus:uikit-border-w-pink peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-pink": e.border
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
134
  },
135
135
  { "uikit-border-0 peer-focus:uikit-border-0": !e.border }
136
136
  ]])
@@ -153,7 +153,7 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
153
153
  class: l(["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", [
154
154
  { "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !i.value },
155
155
  {
156
- "uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white": i.value
156
+ "uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": i.value
157
157
  },
158
158
  { "uikit-bottom-[55px]": e.dropdownPosition === "top" },
159
159
  { "uikit-top-[55px]": e.dropdownPosition === "bottom" },
@@ -162,14 +162,14 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
162
162
  onClick: n[3] || (n[3] = p(() => {
163
163
  }, ["stop"]))
164
164
  }, [
165
- (a(!0), s(T, null, S(e.options, (u, c) => (a(), s("li", {
166
- id: `${t.value}_element_${e.options[c].label}`,
167
- key: `${u.label}_${c}`,
165
+ (a(!0), s(T, null, S(e.options, (r, v) => (a(), s("li", {
166
+ id: `${t.value}_element_${e.options[v].label}`,
167
+ key: `${r.label}_${v}`,
168
168
  role: "option",
169
- "aria-selected": b(v) === c,
170
- class: l(["uikit-px-20px uikit-m-1 uikit-cursor-pointer uikit-py-xs uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
171
- onClick: p((C) => m(u), ["stop"]),
172
- onMouseover: p((C) => v.value = c, ["stop"]),
169
+ "aria-selected": b(c) === v,
170
+ class: l(["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]),
171
+ onClick: p((C) => m(r), ["stop"]),
172
+ onMouseover: p((C) => c.value = v, ["stop"]),
173
173
  onBlur: n[2] || (n[2] = p(() => {
174
174
  }, ["stop"]))
175
175
  }, [
@@ -179,11 +179,11 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
179
179
  class: "uikit-m-0 uikit-appearance-none",
180
180
  name: `${t.value}_radio`,
181
181
  type: "radio",
182
- checked: u.label === k.value.label,
183
- onInput: p((C) => m(u), ["stop"])
182
+ checked: r.label === k.value.label,
183
+ onInput: p((C) => m(r), ["stop"])
184
184
  }, null, 40, Z),
185
185
  o("span", {
186
- innerHTML: u.label
186
+ innerHTML: r.label
187
187
  }, null, 8, x)
188
188
  ])
189
189
  ], 42, X))), 128))
@@ -201,7 +201,7 @@ const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-cont
201
201
  key: 1,
202
202
  id: `${t.value}_invalid_msg`,
203
203
  "arial-live": e.$attrs["aria-live"],
204
- class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-red",
204
+ class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
205
205
  innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
206
206
  }, null, 8, ee)) : d("", !0)
207
207
  ], 64)) : d("", !0)
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as e, renderSlot as n, createElementVNode as c, withModifiers as p, createVNode as u, unref as k } from "vue";
2
- import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.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";
2
+ import { ArrowIcon as m } 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
4
  const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
5
5
  inheritAttrs: !1,
6
6
  __name: "BaseAccordionBtn",
@@ -1,8 +1,8 @@
1
- import { defineComponent as h, ref as $, inject as C, watch as l, unref as d, createElementBlock as v, openBlock as u, normalizeClass as m, createBlock as y, createCommentVNode as g, renderSlot as s, createElementVNode as f, withModifiers as O, createVNode as k, withCtx as c } from "vue";
1
+ import { defineComponent as h, ref as $, inject as p, watch as l, unref as d, createElementBlock as v, openBlock as u, normalizeClass as m, createBlock as y, createCommentVNode as g, renderSlot as s, createElementVNode as f, withModifiers as O, createVNode as k, withCtx as c } from "vue";
2
2
  import A from "./BaseAccordionBtn.vue.js";
3
3
  import B from "./BaseAccordionContent.vue.js";
4
- import { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
5
- 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 { ArrowIcon as E } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
5
+ import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
6
6
  const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ h({
7
7
  inheritAttrs: !1,
8
8
  __name: "BaseAccordionItem",
@@ -26,31 +26,31 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
26
26
  },
27
27
  emits: ["click", "accordionOpened", "accordionClosed", "update:accordionState"],
28
28
  setup(i, { emit: w }) {
29
- const a = w, o = $(!1), r = C(
29
+ const a = w, o = $(!1), r = p(
30
30
  "accordionItems",
31
31
  () => {
32
32
  },
33
33
  !0
34
- ), b = C(
34
+ ), b = p(
35
35
  "handleClick",
36
36
  () => {
37
37
  },
38
38
  !0
39
- ), p = (e, t = !1) => {
39
+ ), C = (e, t = !1) => {
40
40
  a(t ? "accordionOpened" : "accordionClosed", e), a("update:accordionState", t);
41
41
  };
42
42
  r && (r.value[i.id] = { id: i.id, title: i.title, active: i.active }), l(
43
43
  () => d(r),
44
44
  (e) => {
45
45
  const t = e?.[i.id];
46
- !t || o.value === t.active || (o.value = t.active ?? !1, p(
46
+ !t || o.value === t.active || (o.value = t.active ?? !1, C(
47
47
  { id: i.id, title: i.title, active: t.active },
48
48
  t.active
49
49
  ));
50
50
  },
51
51
  { deep: !0, immediate: !0 }
52
52
  ), l(o, (e) => {
53
- o.value = e, p({ id: i.id, title: i.title, active: o.value }, e);
53
+ o.value = e, C({ id: i.id, title: i.title, active: o.value }, e);
54
54
  }), l(
55
55
  () => i.active,
56
56
  (e) => {
@@ -68,7 +68,7 @@ const W = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M
68
68
  f("button", {
69
69
  id: `accordion-title-${e.id}`,
70
70
  type: "button",
71
- class: m(["uikit-flex uikit-w-full uikit-items-center uikit-justify-between uikit-border-0 uikit-bg-white uikit-px-[20px] uikit-py-md uikit-text-left uikit-font-semibold uikit-transition-colors active:max-sm:uikit-bg-w-cultured hover:sm:uikit-bg-w-cultured", e.btnClasses]),
71
+ class: m(["uikit-flex uikit-w-full uikit-items-center uikit-justify-between uikit-border-0 uikit-bg-white uikit-px-5 uikit-py-4 uikit-text-left uikit-font-semibold uikit-transition-colors active:max-sm:uikit-bg-w-cultured hover:sm:uikit-bg-w-cultured", e.btnClasses]),
72
72
  "data-cy": e.dataCy,
73
73
  "aria-expanded": o.value,
74
74
  "aria-controls": `accordion-text-${e.id}`,
@@ -1,113 +1,19 @@
1
- import { defineComponent as g, mergeModels as T, useModel as h, ref as w, watch as x, nextTick as y, createBlock as f, openBlock as m, unref as e, withCtx as l, renderSlot as r, createVNode as i, normalizeClass as C, createCommentVNode as I, normalizeStyle as b } from "vue";
2
- import { CloseIcon as V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.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 { ToastProvider as $, ToastRoot as z, ToastTitle as M, ToastDescription as P, ToastClose as B, ToastAction as D, ProgressRoot as j, ProgressIndicator as A, ToastViewport as N } from "reka-ui";
5
- const X = /* @__PURE__ */ g({
1
+ import { defineComponent as t, createElementBlock as r, openBlock as s, normalizeClass as a, renderSlot as l } from "vue";
2
+ const o = ["id"], p = /* @__PURE__ */ t({
6
3
  __name: "BaseAlert",
7
- props: /* @__PURE__ */ T({
8
- alertClass: { default: "primary" },
9
- duration: { default: 3e3 }
10
- }, {
11
- open: { default: !1 },
12
- openModifiers: {}
13
- }),
14
- emits: ["update:open"],
4
+ props: {
5
+ alertClass: { default: "" }
6
+ },
15
7
  setup(n) {
16
- const u = h(n, "open"), o = w(0);
17
- let d = -1, k = -1;
18
- const c = (t = 3e3) => {
19
- o.value = 0;
20
- const a = Date.now();
21
- k = setInterval(() => {
22
- const v = Date.now() - a;
23
- o.value = Math.min(100, v / t * 100), o.value >= 100 && clearInterval(k);
24
- }, 30);
25
- }, p = () => {
26
- clearTimeout(d), d = setTimeout(() => {
27
- u.value = !1;
28
- }, n.duration), c(n.duration);
29
- };
30
- return x(
31
- u,
32
- (t) => {
33
- y(() => {
34
- if (t) {
35
- p();
36
- return;
37
- }
38
- clearInterval(k), clearTimeout(d), o.value = 0;
39
- });
40
- },
41
- { immediate: !0 }
42
- ), (t, a) => (m(), f(e($), null, {
43
- default: l(() => [
44
- r(t.$slots, "trigger", {
45
- open: () => u.value = !0
46
- }),
47
- i(e(z), {
48
- open: u.value,
49
- "onUpdate:open": a[1] || (a[1] = (s) => u.value = s),
50
- duration: t.duration,
51
- class: C(["toast-root uikit-shadow-surface uikit-relative uikit-flex uikit-gap-x-xs uikit-overflow-hidden uikit-rounded-2xs uikit-p-md uikit-text-16 uikit-font-medium sm:uikit-max-w-[460px]", ["uikit-alert", `uikit-alert-w-${t.alertClass}`]])
52
- }, {
53
- default: l(() => [
54
- t.$slots.title ? (m(), f(e(M), {
55
- key: 0,
56
- "as-child": ""
57
- }, {
58
- default: l(() => [
59
- r(t.$slots, "title")
60
- ]),
61
- _: 3
62
- })) : I("", !0),
63
- i(e(P), { "as-child": "" }, {
64
- default: l(() => [
65
- r(t.$slots, "default"),
66
- i(e(B), { class: "uikit-ml-md uikit-flex uikit-size-lg uikit-shrink-0 uikit-cursor-pointer uikit-appearance-none uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-lightgray" }, {
67
- default: l(() => [
68
- i(e(V), {
69
- width: 12,
70
- height: 12,
71
- "stroke-color": "#fff"
72
- })
73
- ]),
74
- _: 1
75
- })
76
- ]),
77
- _: 3
78
- }),
79
- i(e(D), {
80
- class: "[grid-area:_action]",
81
- "as-child": "",
82
- "alt-text": "Goto schedule to undo"
83
- }, {
84
- default: l(() => [
85
- r(t.$slots, "toast-action")
86
- ]),
87
- _: 3
88
- }),
89
- i(e(j), {
90
- modelValue: o.value,
91
- "onUpdate:modelValue": a[0] || (a[0] = (s) => o.value = s),
92
- class: "uikit-absolute uikit-bottom-0 uikit-left-0 uikit-h-2xs uikit-w-full uikit-overflow-hidden"
93
- }, {
94
- default: l(() => [
95
- i(e(A), {
96
- class: "uikit-relative uikit-block uikit-size-full uikit-bg-w-blue uikit-transition-transform uikit-duration-75 uikit-will-change-transform",
97
- style: b(`transform: translateX(-${100 - o.value}%)`)
98
- }, null, 8, ["style"])
99
- ]),
100
- _: 1
101
- }, 8, ["modelValue"])
102
- ]),
103
- _: 3
104
- }, 8, ["open", "duration", "class"]),
105
- i(e(N), { class: "uikit-fixed uikit-bottom-0 uikit-right-0 uikit-flex uikit-size-full uikit-list-none uikit-flex-col uikit-items-end uikit-justify-end uikit-p-0" })
106
- ]),
107
- _: 3
108
- }));
8
+ return (e, i) => (s(), r("div", {
9
+ id: e.$attrs.id,
10
+ class: a(["uikit-alert", e.alertClass]),
11
+ role: "alert"
12
+ }, [
13
+ l(e.$slots, "default")
14
+ ], 10, o));
109
15
  }
110
16
  });
111
17
  export {
112
- X as default
18
+ p as default
113
19
  };