@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
@@ -1,5 +1,5 @@
1
- import { defineComponent as o, createElementBlock as l, openBlock as s, withModifiers as r, normalizeClass as t, createElementVNode as u, createCommentVNode as d } from "vue";
2
- const k = ["for"], b = ["innerHTML"], c = /* @__PURE__ */ o({
1
+ import { defineComponent as o, createElementBlock as i, openBlock as s, withModifiers as r, normalizeClass as l, createElementVNode as d, createCommentVNode as u } from "vue";
2
+ const k = ["for"], b = ["innerHTML"], C = /* @__PURE__ */ o({
3
3
  __name: "BaseFloatingLabel",
4
4
  props: {
5
5
  labelState: { default: "inline-label" },
@@ -10,31 +10,28 @@ const k = ["for"], b = ["innerHTML"], c = /* @__PURE__ */ o({
10
10
  labelTextClasses: {}
11
11
  },
12
12
  emits: ["click"],
13
- setup(m, { emit: a }) {
13
+ setup(p, { emit: a }) {
14
14
  const n = a;
15
- return (e, i) => (s(), l("label", {
15
+ return (e, t) => (s(), i("label", {
16
16
  for: e.$attrs.for,
17
- class: t(["uikit-pointer-events-none uikit-absolute uikit-left-15px uikit-h-5 uikit-text-sm", [e.labelState, { "uikit-text-w-secondary": e.disabled }, e.labelClasses]]),
18
- onClick: i[0] || (i[0] = r((p) => n("click"), ["stop"]))
17
+ class: l(["uikit-floating-label uikit-h-5 uikit-pointer-events-none uikit-absolute uikit-left-sm uikit-text-16 uikit-text-w-gray", [e.labelState, { "uikit-text-w-secondary": e.disabled }, e.labelClasses]]),
18
+ onClick: t[0] || (t[0] = r((f) => n("click"), ["stop"]))
19
19
  }, [
20
- u("span", {
21
- class: t(["uikit-text uikit-font-medium", [
22
- e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
23
- e.labelTextClasses
24
- ]]),
20
+ d("span", {
21
+ class: l([{ "uikit-text-w-secondary": e.disabled }, e.labelTextClasses]),
25
22
  innerHTML: e.labelText
26
23
  }, null, 10, b),
27
- e.$attrs.required ? (s(), l("sup", {
24
+ e.$attrs.required ? (s(), i("span", {
28
25
  key: 0,
29
- class: t(["uikit-absolute -uikit-top-[0.3rem] uikit-text", [
26
+ class: l(["uikit-absolute -uikit-top-[0.3rem]", [
30
27
  { "uikit-text-w-secondary": e.disabled },
31
- { "uikit-text-w-danger": e.isValid === !1 },
32
- { "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
28
+ { "uikit-text-w-red": e.isValid === !1 },
29
+ { "uikit-text-w-pink": (e.isValid || e.isValid === null) && !e.disabled }
33
30
  ]])
34
- }, " *", 2)) : d("", !0)
31
+ }, " *", 2)) : u("", !0)
35
32
  ], 10, k));
36
33
  }
37
34
  });
38
35
  export {
39
- c as default
36
+ C as default
40
37
  };
@@ -1,13 +1,14 @@
1
- import { defineComponent as z, mergeModels as C, useModel as A, ref as m, watch as g, useAttrs as N, createElementBlock as r, openBlock as u, normalizeClass as v, unref as s, renderSlot as p, createElementVNode as h, createBlock as O, createCommentVNode as w, withKeys as j, withModifiers as y, Fragment as T, renderList as M } from "vue";
2
- import D from "../../../../UIKit/BaseFloatingLabel.js";
3
- import { useFloatingLabel as G } from "../../../../composables/useFloatingLabel.js";
4
- const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Q = { class: "uikit-invisible uikit-float-none uikit-mb-2 uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-transition-[max-width] uikit-duration-[50ms] uikit-ease-out" }, W = ["innerHTML"], X = ["innerHTML"], Y = ["innerHTML"], Z = {
1
+ import { defineComponent as A, mergeModels as L, useModel as N, ref as v, useAttrs as O, useId as j, computed as D, watch as p, createElementBlock as o, openBlock as s, normalizeClass as T, unref as k, renderSlot as m, createElementVNode as G, createBlock as J, createCommentVNode as h, withKeys as Q, withModifiers as g, Fragment as B, renderList as E } from "vue";
2
+ import W from "./BaseFloatingLabel.vue.js";
3
+ import '../../../../assets/packages/components/lib/UIKit/BaseFloatingLabel.css';/* empty css */
4
+ import { useFloatingLabel as X } from "../../../../composables/useFloatingLabel.js";
5
+ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Z = ["innerHTML"], x = ["innerHTML"], U = {
5
6
  key: 1,
6
7
  class: "under-label uikit-absolute uikit-text-12"
7
- }, ie = /* @__PURE__ */ z({
8
+ }, _ = "peer-data-[validation='invalid']:uikit-text-w-red peer-data-[validation='valid']:uikit-text-w-blue", ne = /* @__PURE__ */ A({
8
9
  inheritAttrs: !1,
9
10
  __name: "BaseInput",
10
- props: /* @__PURE__ */ C({
11
+ props: /* @__PURE__ */ L({
11
12
  inputClass: {},
12
13
  labelText: { default: "" },
13
14
  feedback: {},
@@ -15,7 +16,6 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
15
16
  keepFloatingLabel: { type: Boolean, default: !1 },
16
17
  formatter: { default: null },
17
18
  labelClasses: {},
18
- fieldsetClasses: {},
19
19
  labelTextClasses: {},
20
20
  withLeftIcon: { type: Boolean, default: () => {
21
21
  } },
@@ -26,73 +26,71 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
26
26
  modelValue: { default: "" },
27
27
  modelModifiers: {}
28
28
  }),
29
- emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
30
- setup(l, { expose: B, emit: E }) {
31
- const o = A(l, "modelValue"), a = m(""), k = E, {
32
- labelState: d,
33
- handleFocusIn: H,
34
- handleFocusOut: $,
35
- setInlineLabel: V,
36
- setFloatingLabel: I
37
- } = G(k), n = m("text"), f = m({}), b = m(null), R = () => {
29
+ emits: /* @__PURE__ */ L(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
30
+ setup(l, { expose: M, emit: H }) {
31
+ const u = N(l, "modelValue"), i = v(""), d = H, {
32
+ labelState: c,
33
+ handleFocusIn: P,
34
+ handleFocusOut: w,
35
+ setInlineLabel: $,
36
+ setFloatingLabel: V
37
+ } = X(), I = O(), q = j(), r = D(() => I.id || q), n = v("text"), f = v({}), b = v(null), K = () => {
38
38
  l.feedback && (f.value = l.feedback, l.feedback.valid && typeof l.feedback.valid == "string" && (f.value.valid = [l.feedback.valid]), l.feedback.invalid && typeof l.feedback.invalid == "string" && (f.value.invalid = [l.feedback.invalid]));
39
- }, L = (e, i) => {
39
+ }, F = (e, a) => {
40
40
  if (!l.formatter || !l.formatter.formatFn)
41
- return a.value = e, "";
41
+ return i.value = e, "";
42
42
  const t = e.length ? l.formatter.formatFn(e) : e;
43
- return i && (i.value = t), a.value = t, t;
44
- }, F = (e, i = !0) => {
45
- if (i && (!l.formatter || !l.formatter.unFormatFn))
46
- return o.value = e, e;
47
- if (!i || !l.formatter || !l.formatter.unFormatFn) return;
43
+ return a && (a.value = t), i.value = t, t;
44
+ }, C = (e, a = !0) => {
45
+ if (a && (!l.formatter || !l.formatter.unFormatFn))
46
+ return u.value = e, e;
47
+ if (!a || !l.formatter || !l.formatter.unFormatFn) return;
48
48
  const t = l.formatter.unFormatFn(e);
49
- return o.value = t ?? "", t;
50
- }, P = ({ target: e }) => {
51
- const i = e, t = F(i.value);
52
- L(
49
+ return u.value = t ?? "", t;
50
+ }, R = ({ target: e }) => {
51
+ const a = e, t = C(a.value);
52
+ F(
53
53
  `${t}`,
54
- t === o.value ? i : void 0
54
+ t === u.value ? a : void 0
55
55
  );
56
- }, q = () => {
57
- o.value = "", V();
58
- }, K = () => {
56
+ }, S = () => {
57
+ u.value = "", $();
58
+ }, z = () => {
59
59
  n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
60
60
  };
61
- g(
61
+ return p(
62
62
  () => l.feedback,
63
63
  () => {
64
- R();
64
+ K();
65
65
  },
66
66
  {
67
67
  immediate: !0
68
68
  }
69
- ), g(
70
- o,
69
+ ), p(
70
+ u,
71
71
  (e) => {
72
- L(
72
+ F(
73
73
  `${e}`,
74
- F(`${e}`, !1) === e ? b.value : void 0
75
- ), a.value != null && a.value.length > 0 && d.value !== "floating-label" ? I() : !a.value && document && document.activeElement !== b.value && V();
74
+ C(`${e}`, !1) === e ? b.value : void 0
75
+ ), i.value != null && i.value.length > 0 && c.value !== "floating-label" ? V() : !i.value && document && document.activeElement !== b.value && $();
76
76
  },
77
77
  {
78
78
  immediate: !0
79
79
  }
80
- ), g(
80
+ ), p(
81
81
  () => l.keepFloatingLabel,
82
82
  (e) => {
83
- e ? I() : $(o.value);
83
+ e ? V() : w(u.value);
84
84
  }
85
- );
86
- const S = N();
87
- return n.value = S.type || "text", B({
85
+ ), n.value = I.type || "text", M({
88
86
  select: () => {
89
87
  b.value?.select();
90
88
  }
91
- }), (e, i) => (u(), r("div", {
92
- class: v(["input-wrapper uikit-relative uikit-inline-block uikit-w-full [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px", [
89
+ }), (e, a) => (s(), o("div", {
90
+ class: T(["uikit-input-wrapper [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px uikit-relative uikit-inline-block uikit-w-full", [
93
91
  e.$attrs.class,
94
92
  { "floating-label": e.labelText },
95
- s(d) === "floating-label" ? "floating-state" : "inline-state",
93
+ k(c) === "floating-label" ? "floating-state" : "inline-state",
96
94
  {
97
95
  "has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
98
96
  },
@@ -102,34 +100,29 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
102
100
  { "is-invalid": e.isValid === !1, "is-valid": e.isValid }
103
101
  ]])
104
102
  }, [
105
- p(e.$slots, "leftIcon", {}, void 0, !0),
106
- p(e.$slots, "righticon", {
107
- handleClean: q,
108
- handleShowPasswd: K,
103
+ m(e.$slots, "leftIcon"),
104
+ m(e.$slots, "righticon", {
105
+ handleClean: S,
106
+ handleShowPasswd: z,
109
107
  curType: n.value
110
- }, void 0, !0),
111
- h("input", {
112
- id: e.$attrs.id,
108
+ }),
109
+ G("input", {
110
+ id: r.value,
113
111
  ref_key: "baseInputEl",
114
112
  ref: b,
115
113
  "data-cy": e.dataCy,
116
114
  name: e.$attrs.name,
117
- class: v(["input-element uikit-peer uikit-relative uikit-ml-[1px] uikit-mt-[6px] uikit-box-border uikit-block uikit-h-[42px] uikit-w-[calc(100%-2px)] uikit-appearance-none uikit-truncate uikit-rounded-[11px] !uikit-border-none uikit-bg-white uikit-bg-no-repeat uikit-px-4 uikit-outline-0 focus:uikit-shadow-none focus:uikit-outline-none disabled:uikit-bg-w-cultured disabled:uikit-text-w-secondary", [
115
+ class: T(["input-element disabled:uikit-text-w-secondary uikit-peer uikit-relative uikit-box-border uikit-block uikit-h-[56px] uikit-w-full uikit-appearance-none uikit-truncate uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-px-sm uikit-pb-0 uikit-pt-md uikit-text-16 uikit-outline-none focus-visible:uikit-border-w-blue disabled:uikit-bg-w-cultured data-[validation='invalid']:uikit-border-w-red data-[validation='valid']:uikit-border-w-blue", [
118
116
  {
119
- "is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
120
- "is-valid valid-bg !uikit-pr-9": e.isValid
121
- },
122
- {
123
- "uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
124
- },
125
- {
126
- "uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
117
+ "is-invalid": e.isValid === !1,
118
+ "is-valid": e.isValid
127
119
  },
128
120
  e.inputClass
129
121
  ]]),
122
+ "data-validation": e.isValid ? "valid" : e.isValid === !1 ? "invalid" : "",
130
123
  autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
131
124
  disabled: e.$attrs.disabled,
132
- "aria-labelledby": e.$attrs.id,
125
+ "aria-labelledby": r.value,
133
126
  readonly: e.$attrs.readonly,
134
127
  type: n.value,
135
128
  pattern: e.$attrs.pattern,
@@ -138,74 +131,55 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
138
131
  maxlength: e.$attrs.maxlength,
139
132
  inputmode: e.$attrs.inputmode,
140
133
  placeholder: e.$attrs.placeholder,
141
- value: a.value,
142
- onClick: i[0] || (i[0] = (t) => k("click", t)),
143
- onFocusin: i[1] || (i[1] = y(() => e.labelText && s(H)(), ["stop"])),
144
- onFocusout: i[2] || (i[2] = y((t) => e.labelText && !e.keepFloatingLabel && s($)(a.value), ["stop"])),
145
- onInput: y(P, ["stop"]),
134
+ value: i.value,
135
+ onClick: a[0] || (a[0] = (t) => d("click", t)),
136
+ onFocusin: a[1] || (a[1] = g(
137
+ (t) => {
138
+ d("focusin", t), e.labelText && k(P)();
139
+ },
140
+ ["stop"]
141
+ )),
142
+ onFocusout: a[2] || (a[2] = g(
143
+ (t) => {
144
+ d("focusout", t), e.labelText && !e.keepFloatingLabel && k(w)(i.value);
145
+ },
146
+ ["stop"]
147
+ )),
148
+ onInput: g(R, ["stop"]),
146
149
  onKeydown: [
147
- i[3] || (i[3] = j(() => k("keydownEnterPressed"), ["enter"])),
148
- i[4] || (i[4] = (t) => k("keydown", t))
150
+ a[3] || (a[3] = Q(() => d("keydownEnterPressed"), ["enter"])),
151
+ a[4] || (a[4] = (t) => d("keydown", t))
149
152
  ],
150
- onKeyup: i[5] || (i[5] = (t) => k("keyup", t))
151
- }, null, 42, J),
152
- h("fieldset", {
153
- class: v(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-py-0 uikit-text-left uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger", [
154
- {
155
- "is-invalid uikit-border-w-danger": e.isValid === !1,
156
- "is-valid uikit-border-w-primary": e.isValid,
157
- "uikit-border-w-secondary": e.isValid === null
158
- },
159
- { "uikit-top-0": !e.labelText },
160
- e.fieldsetClasses
161
- ]])
162
- }, [
163
- h("legend", Q, [
164
- h("span", {
165
- class: v(["visible-label uikit-opacity-0", [
166
- { "uikit-mx-5px": e.labelText },
167
- {
168
- "uikit-visible uikit-inline-block": s(d) === "floating-label"
169
- },
170
- {
171
- "uikit-invisible uikit-hidden": s(d) === "inline-label"
172
- }
173
- ]]),
174
- innerHTML: e.labelText
175
- }, null, 10, W)
176
- ])
177
- ], 2),
178
- e.labelText ? (u(), O(D, {
153
+ onKeyup: a[5] || (a[5] = (t) => d("keyup", t))
154
+ }, null, 42, Y),
155
+ e.labelText ? (s(), J(W, {
179
156
  key: 0,
180
- for: e.$attrs.id,
157
+ for: r.value,
181
158
  "label-text": e.labelText,
182
- "label-state": s(d),
159
+ "label-state": k(c),
183
160
  "is-valid": e.isValid,
184
161
  required: e.$attrs.required,
185
162
  disabled: e.$attrs.disabled,
186
- "label-classes": [
187
- s(d) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
188
- e.labelClasses
189
- ],
163
+ "label-classes": [e.labelClasses, _],
190
164
  "label-text-classes": e.labelTextClasses
191
- }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : w("", !0),
192
- p(e.$slots, "feedback", {}, () => [
193
- e.isValid === !1 ? (u(!0), r(T, { key: 0 }, M(f.value.invalid, (t, c) => (u(), r("div", {
194
- key: `${e.$attrs.id}_invalid_${c}`,
195
- class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
165
+ }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : h("", !0),
166
+ m(e.$slots, "feedback", {}, () => [
167
+ e.isValid === !1 ? (s(!0), o(B, { key: 0 }, E(f.value.invalid, (t, y) => (s(), o("div", {
168
+ key: `${r.value}_invalid_${y}`,
169
+ class: "uikit-mt-1 uikit-text-12 uikit-text-w-red",
196
170
  innerHTML: t
197
- }, null, 8, X))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, M(f.value.valid, (t, c) => (u(), r("div", {
198
- key: `${e.$attrs.id}_valid_${c}`,
199
- class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
171
+ }, null, 8, Z))), 128)) : e.isValid === !0 ? (s(!0), o(B, { key: 1 }, E(f.value.valid, (t, y) => (s(), o("div", {
172
+ key: `${r.value}_valid_${y}`,
173
+ class: "uikit-mt-1 uikit-text-12 uikit-text-w-blue",
200
174
  innerHTML: t
201
- }, null, 8, Y))), 128)) : w("", !0)
202
- ], !0),
203
- e.$slots["under-label"] ? (u(), r("div", Z, [
204
- p(e.$slots, "under-label", {}, void 0, !0)
205
- ])) : w("", !0)
175
+ }, null, 8, x))), 128)) : h("", !0)
176
+ ]),
177
+ e.$slots["under-label"] ? (s(), o("div", U, [
178
+ m(e.$slots, "under-label")
179
+ ])) : h("", !0)
206
180
  ], 2));
207
181
  }
208
182
  });
209
183
  export {
210
- ie as default
184
+ ne as default
211
185
  };
@@ -1,14 +1,10 @@
1
- import { defineComponent as T, ref as n, useTemplateRef as z, onUnmounted as H, watch as I, createBlock as O, openBlock as k, Teleport as $, createElementVNode as s, normalizeClass as o, withModifiers as v, createElementBlock as y, createCommentVNode as h, renderSlot as d, createVNode as D, unref as K, nextTick as N } from "vue";
2
- import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
3
- import { isWindows as w } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js";
4
- import { awaitableSetTimeout as S } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js";
5
- import "../../../../_virtual/polyline.js";
6
- import { CloseIcon as V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
7
- import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
8
- const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
1
+ import { defineComponent as z, ref as d, useTemplateRef as D, useId as K, computed as N, onUnmounted as S, watch as V, createBlock as W, openBlock as f, Teleport as A, createElementVNode as l, normalizeClass as o, withModifiers as g, createElementBlock as w, createCommentVNode as h, renderSlot as r, createVNode as F, unref as P, nextTick as U } from "vue";
2
+ import { CloseIcon as R } 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
+ const j = ["id", "data-cy"], q = ["innerHTML"], X = /* @__PURE__ */ z({
9
5
  __name: "BaseModal",
10
6
  props: {
11
- id: { default: "base-bt-modal" },
7
+ id: {},
12
8
  size: { default: "modal-md" },
13
9
  customBackdropClasses: {},
14
10
  customModalDialogClasses: {},
@@ -27,25 +23,33 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
27
23
  titleClasses: {}
28
24
  },
29
25
  emits: ["closed", "opened", "dialogClick"],
30
- setup(l, { emit: C }) {
31
- const r = C, t = n(!1), m = n(null), a = z("modalDialog"), c = n(!1), u = n(!1), f = ({ key: e }) => {
26
+ setup(s, { emit: C }) {
27
+ const b = () => navigator?.userAgent.includes("Windows"), M = (e, n) => new Promise((m, O) => {
28
+ setTimeout(() => {
29
+ try {
30
+ e && e(), m();
31
+ } catch ($) {
32
+ O($);
33
+ }
34
+ }, n);
35
+ }), c = C, t = d(!1), p = d(null), a = D("modalDialog"), k = d(!1), u = d(!1), B = K(), L = N(() => s.id || B), v = ({ key: e }) => {
32
36
  e === "Escape" && i();
33
- }, g = () => {
34
- document?.body.addEventListener("keydown", f);
35
- }, p = () => {
36
- document?.body.removeEventListener("keydown", f);
37
- }, M = async () => {
38
- t.value = !0, N(() => {
39
- g(), w() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
40
- }), r("opened"), l.autoClose !== void 0 && setTimeout(() => {
37
+ }, E = () => {
38
+ document?.body.addEventListener("keydown", v);
39
+ }, y = () => {
40
+ document?.body.removeEventListener("keydown", v);
41
+ }, T = async () => {
42
+ t.value = !0, U(() => {
43
+ E(), b() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
44
+ }), c("opened"), s.autoClose !== void 0 && setTimeout(() => {
41
45
  i();
42
- }, l.autoClose);
43
- }, B = (e) => {
46
+ }, s.autoClose);
47
+ }, I = (e) => {
44
48
  a.value && a.value.contains(e.target) && (u.value = !0);
45
49
  }, x = (e) => {
46
50
  a.value && a.value.contains(e.target) && (u.value = !1);
47
- }, L = async () => {
48
- if (l.closeOnClickOut) {
51
+ }, H = async () => {
52
+ if (s.closeOnClickOut) {
49
53
  if (u.value) {
50
54
  u.value = !1;
51
55
  return;
@@ -53,41 +57,41 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
53
57
  await i();
54
58
  }
55
59
  }, i = async () => {
56
- t.value = !1, p(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await S(() => {
57
- m.value?.classList.add("uikit-hidden"), r("closed");
60
+ t.value = !1, y(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await M(() => {
61
+ p.value?.classList.add("uikit-hidden"), c("closed");
58
62
  }, 250);
59
63
  };
60
- return H(() => {
61
- p(), document?.documentElement.classList.remove("uikit-no-scrolling"), w() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
62
- }), I(
63
- () => l.showModal,
64
+ return S(() => {
65
+ y(), document?.documentElement.classList.remove("uikit-no-scrolling"), b() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
66
+ }), V(
67
+ () => s.showModal,
64
68
  async (e) => {
65
- !e && !t.value ? c.value = !0 : c.value = !1, e && !t.value && await M(), !e && t.value && await i(), t.value = e;
69
+ !e && !t.value ? k.value = !0 : k.value = !1, e && !t.value && await T(), !e && t.value && await i(), t.value = e;
66
70
  },
67
71
  { immediate: !0 }
68
- ), (e, b) => (k(), O($, { to: "body" }, [
69
- s("div", {
72
+ ), (e, n) => (f(), W(A, { to: "body" }, [
73
+ l("div", {
70
74
  ref_key: "backdropEl",
71
- ref: m,
75
+ ref: p,
72
76
  class: o(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
73
77
  e.customBackdropClasses,
74
78
  {
75
- "uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70": t.value
79
+ "uikit-bg-w-darkblue/70 uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards]": t.value
76
80
  },
77
81
  { "uikit-bg-transparent": !t.value },
78
82
  { "sm:uikit-pt-[30px]": !e.centered },
79
- { hide: c.value }
83
+ { hide: k.value }
80
84
  ]]),
81
85
  style: { "z-index": "1062" },
82
- onClick: L,
83
- onMousedown: B,
86
+ onClick: H,
87
+ onMousedown: I,
84
88
  onMouseup: x
85
89
  }, [
86
- s("dialog", {
87
- id: e.id,
90
+ l("dialog", {
91
+ id: L.value,
88
92
  ref: "modalDialog",
89
93
  "data-cy": e.dataCy,
90
- class: o(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
94
+ class: o(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded-2xs uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
91
95
  e.customModalDialogClasses,
92
96
  { show: t.value },
93
97
  { "closed uikit-overflow-hidden": !t.value },
@@ -97,50 +101,50 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
97
101
  `base-${e.size}`,
98
102
  e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
99
103
  ]]),
100
- onClick: b[0] || (b[0] = v((E) => r("dialogClick", E), ["stop"]))
104
+ onClick: n[0] || (n[0] = g((m) => c("dialogClick", m), ["stop"]))
101
105
  }, [
102
- s("div", {
103
- class: o(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-rounded-t uikit-border-0 uikit-bg-white uikit-px-4 uikit-pb-10px uikit-pt-20px sm:uikit-px-6", [e.customModalHeaderClasses]])
106
+ l("div", {
107
+ class: o(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-flex uikit-items-center uikit-border-0 uikit-bg-white uikit-p-md uikit-text-20 uikit-font-semibold sm:uikit-p-lg", [e.customModalHeaderClasses]])
104
108
  }, [
105
- e.withCloseIcon ? (k(), y("button", {
109
+ r(e.$slots, "header", { closeModal: i }, () => [
110
+ l("span", {
111
+ class: o(["uikit-w-auto uikit-grow", e.titleClasses]),
112
+ innerHTML: e.headerTitle
113
+ }, null, 10, q)
114
+ ]),
115
+ e.withCloseIcon ? (f(), w("button", {
106
116
  key: 0,
107
117
  id: "close-icon-btn",
108
118
  "data-cy": "bbt-default-close-icon-btn",
109
- class: o(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", e.closeIconBtnClasses]),
119
+ class: o(["uikit-cursor-pointer uikit-bg-transparent uikit-p-0", e.closeIconBtnClasses]),
110
120
  type: "button",
111
121
  "aria-label": "Close",
112
- onClick: v(i, ["prevent", "stop"])
122
+ onClick: g(i, ["prevent", "stop"])
113
123
  }, [
114
- D(K(V), {
115
- class: "bbt-close-icon uikit-box-border uikit-p-5px",
116
- width: 30,
117
- height: 30
124
+ F(P(R), {
125
+ class: "bbt-close-icon uikit-box-border",
126
+ width: 24,
127
+ height: 24
118
128
  })
119
- ], 2)) : h("", !0),
120
- d(e.$slots, "header", { closeModal: i }, () => [
121
- s("span", {
122
- class: o(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
123
- innerHTML: e.headerTitle
124
- }, null, 10, U)
125
- ])
129
+ ], 2)) : h("", !0)
126
130
  ], 2),
127
- s("div", {
128
- class: o(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-4 uikit-pb-0 uikit-no-scrollbar sm:uikit-px-6 sm:uikit-pb-25px", [e.customModalBodyClasses]])
131
+ l("div", {
132
+ class: o(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-md uikit-pb-md uikit-no-scrollbar sm:uikit-px-lg sm:uikit-pb-lg", [e.customModalBodyClasses]])
129
133
  }, [
130
- d(e.$slots, "body", { closeModal: i })
134
+ r(e.$slots, "body", { closeModal: i })
131
135
  ], 2),
132
- e.$slots.footer ? (k(), y("div", {
136
+ e.$slots.footer ? (f(), w("div", {
133
137
  key: 0,
134
- class: o(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6", e.customModalFooterClasses])
138
+ class: o(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-w-cultured uikit-px-md uikit-py-sm sm:uikit-px-lg sm:uikit-py-md", e.customModalFooterClasses])
135
139
  }, [
136
- d(e.$slots, "footer", { closeModal: i })
140
+ r(e.$slots, "footer", { closeModal: i })
137
141
  ], 2)) : h("", !0),
138
- d(e.$slots, "fixed-bottom")
139
- ], 10, F)
142
+ r(e.$slots, "fixed-bottom")
143
+ ], 10, j)
140
144
  ], 34)
141
145
  ]));
142
146
  }
143
147
  });
144
148
  export {
145
- J as default
149
+ X as default
146
150
  };
@@ -0,0 +1,19 @@
1
+ import { defineComponent as o, createElementBlock as e, openBlock as i, renderSlot as n, createCommentVNode as u, toDisplayString as s } from "vue";
2
+ const r = { class: "uikit-relative uikit-inline-block" }, a = {
3
+ key: 0,
4
+ class: "uikit-pointer-events-none uikit-absolute -uikit-right-sm -uikit-top-sm uikit-rounded-3xs uikit-bg-w-cultured uikit-px-2xs uikit-text-12 uikit-font-medium uikit-text-w-blue"
5
+ }, p = /* @__PURE__ */ o({
6
+ __name: "BaseNotificationBadge",
7
+ props: {
8
+ count: { default: 0 }
9
+ },
10
+ setup(l) {
11
+ return (t, c) => (i(), e("span", r, [
12
+ n(t.$slots, "default"),
13
+ t.count ? (i(), e("span", a, s(t.count), 1)) : u("", !0)
14
+ ]));
15
+ }
16
+ });
17
+ export {
18
+ p as default
19
+ };