@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,152 @@
1
+ import { defineComponent as E, mergeModels as C, useModel as O, ref as k, watch as y, createElementBlock as w, openBlock as r, createElementVNode as M, createVNode as p, withCtx as u, Fragment as h, renderList as D, createBlock as U, createTextVNode as x, toDisplayString as V, renderSlot as P } from "vue";
2
+ import R from "./BaseButton.vue.js";
3
+ import B from "./BaseInput.vue.js";
4
+ import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
5
+ import I from "./BaseDropDown.vue.js";
6
+ import L from "./BaseSelect/SelectItem.vue.js";
7
+ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330px] uikit-flex-col uikit-justify-between uikit-rounded-2xs uikit-bg-white uikit-pt-md" }, z = { class: "uikit-relative uikit-flex uikit-gap-x-md uikit-border-b uikit-border-solid uikit-border-w-lightgray uikit-px-md uikit-pb-xs" }, F = { class: "uikit-z-10 uikit-h-[55px] uikit-bg-w-cultured uikit-px-md uikit-py-xs" }, Q = /* @__PURE__ */ E({
8
+ __name: "InputDropdown",
9
+ props: /* @__PURE__ */ C({
10
+ leftSelectOptions: { default: () => [] },
11
+ rightSelectOptions: { default: () => [] },
12
+ submitBtnLabel: {}
13
+ }, {
14
+ leftValue: { default: () => ({ id: -1, label: "" }) },
15
+ leftValueModifiers: {},
16
+ rightValue: { default: () => ({ id: -1, label: "" }) },
17
+ rightValueModifiers: {}
18
+ }),
19
+ emits: /* @__PURE__ */ C(["submit"], ["update:leftValue", "update:rightValue"]),
20
+ setup(f, { emit: K }) {
21
+ const a = O(
22
+ f,
23
+ "leftValue"
24
+ ), d = O(
25
+ f,
26
+ "rightValue"
27
+ ), v = k(!1), m = k(!1), g = k(!1), b = k(!1), $ = (i) => ({
28
+ id: -1,
29
+ label: i ? `${i}` : ""
30
+ }), S = (i, e = []) => {
31
+ if (!i) return null;
32
+ const t = e.find(
33
+ (o) => o.id === i.id || o.label === i.label
34
+ );
35
+ return t || null;
36
+ }, N = K;
37
+ return y(
38
+ a,
39
+ (i) => {
40
+ const e = S(i, f.leftSelectOptions);
41
+ e && (a.value = e);
42
+ },
43
+ { immediate: !0, deep: !0 }
44
+ ), y(
45
+ d,
46
+ (i) => {
47
+ const e = S(i, f.rightSelectOptions);
48
+ e && (d.value = e);
49
+ },
50
+ { immediate: !0, deep: !0 }
51
+ ), (i, e) => (r(), w("div", j, [
52
+ M("div", z, [
53
+ p(I, {
54
+ "toggle-dropdown": m.value,
55
+ "onUpdate:toggleDropdown": e[1] || (e[1] = (t) => m.value = t),
56
+ class: "!uikit-static",
57
+ "dropdown-classes": "!uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none",
58
+ "disable-space-handler": "",
59
+ "onUpdate:selectedIdx": e[2] || (e[2] = (t) => a.value = i.leftSelectOptions[t]),
60
+ "onUpdate:dropdownState": e[3] || (e[3] = (t) => v.value = t)
61
+ }, {
62
+ btn_slot: u(({ toggleDropdown: t, setActiveIdx: o }) => [
63
+ p(B, {
64
+ "model-value": a.value.label,
65
+ "label-text": "Min",
66
+ onClick: (l) => {
67
+ l.stopPropagation(), v.value || t(), g.value && (b.value = !0);
68
+ },
69
+ onKeyup: (l) => o(-1),
70
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => {
71
+ a.value = $(l);
72
+ })
73
+ }, null, 8, ["model-value", "onClick", "onKeyup"])
74
+ ]),
75
+ default: u(({ activeIdx: t, toggleDropdown: o, setActiveIdx: l }) => [
76
+ (r(!0), w(h, null, D(i.leftSelectOptions, (s, n) => (r(), U(L, {
77
+ key: `left-option-${n}`,
78
+ class: "uikit-rounded-3xs uikit-p-xs uikit-text-16",
79
+ active: t === n,
80
+ onClick: (c) => {
81
+ a.value = s, o();
82
+ },
83
+ onMouseover: (c) => l(n)
84
+ }, {
85
+ default: u(() => [
86
+ x(V(s.label), 1)
87
+ ]),
88
+ _: 2
89
+ }, 1032, ["active", "onClick", "onMouseover"]))), 128))
90
+ ]),
91
+ _: 1
92
+ }, 8, ["toggle-dropdown"]),
93
+ p(I, {
94
+ "toggle-dropdown": b.value,
95
+ "onUpdate:toggleDropdown": e[5] || (e[5] = (t) => b.value = t),
96
+ "disable-space-handler": "",
97
+ class: "!uikit-static",
98
+ "dropdown-classes": "uikit-left-0 !uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none",
99
+ "onUpdate:selectedIdx": e[6] || (e[6] = (t) => d.value = i.rightSelectOptions[t]),
100
+ "onUpdate:dropdownState": e[7] || (e[7] = (t) => g.value = t)
101
+ }, {
102
+ btn_slot: u(({ toggleDropdown: t, setActiveIdx: o }) => [
103
+ p(B, {
104
+ "model-value": d.value.label,
105
+ "label-text": "Max",
106
+ onClick: (l) => {
107
+ l.stopPropagation(), g.value || t(), v.value && (m.value = !0);
108
+ },
109
+ onKeyup: (l) => o(-1),
110
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => {
111
+ d.value = $(l);
112
+ })
113
+ }, null, 8, ["model-value", "onClick", "onKeyup"])
114
+ ]),
115
+ default: u(({ activeIdx: t, toggleDropdown: o, setActiveIdx: l }) => [
116
+ (r(!0), w(h, null, D(i.rightSelectOptions, (s, n) => (r(), U(L, {
117
+ key: `left-option-${n}`,
118
+ class: "uikit-rounded-3xs uikit-p-xs uikit-text-16",
119
+ active: t === n,
120
+ onClick: (c) => {
121
+ d.value = s, o();
122
+ },
123
+ onMouseover: (c) => l(n)
124
+ }, {
125
+ default: u(() => [
126
+ x(V(s.label), 1)
127
+ ]),
128
+ _: 2
129
+ }, 1032, ["active", "onClick", "onMouseover"]))), 128))
130
+ ]),
131
+ _: 1
132
+ }, 8, ["toggle-dropdown"])
133
+ ]),
134
+ M("div", F, [
135
+ P(i.$slots, "submitBtn", {}, () => [
136
+ p(R, {
137
+ class: "uikit-w-full",
138
+ onClick: e[8] || (e[8] = (t) => N("submit", t))
139
+ }, {
140
+ default: u(() => [
141
+ x(V(i.submitBtnLabel), 1)
142
+ ]),
143
+ _: 1
144
+ })
145
+ ])
146
+ ])
147
+ ]));
148
+ }
149
+ });
150
+ export {
151
+ Q as default
152
+ };
@@ -0,0 +1,21 @@
1
+ import { defineComponent as a, createBlock as o, openBlock as n, unref as t, withCtx as i, createVNode as u, renderSlot as r } from "vue";
2
+ import { NavigationMenuRoot as s, NavigationMenuList as l } from "reka-ui";
3
+ const x = /* @__PURE__ */ a({
4
+ __name: "NavigationBar",
5
+ setup(f) {
6
+ return (e, k) => (n(), o(t(s), null, {
7
+ default: i(() => [
8
+ u(t(l), { class: "uikit-navigation-bar-shadow uikit-mx-2xs uikit-flex uikit-w-fit uikit-list-none uikit-gap-x-xs uikit-p-xs uikit-text" }, {
9
+ default: i(() => [
10
+ r(e.$slots, "default")
11
+ ]),
12
+ _: 3
13
+ })
14
+ ]),
15
+ _: 3
16
+ }));
17
+ }
18
+ });
19
+ export {
20
+ x as default
21
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as l, createBlock as k, openBlock as p, unref as e, withCtx as a, createVNode as c, normalizeClass as o, renderSlot as u, withDirectives as m, createElementVNode as d, vShow as f } from "vue";
2
+ import { NavigationMenuItem as v, NavigationMenuLink as b } from "reka-ui";
3
+ const x = /* @__PURE__ */ l({
4
+ __name: "NavigationBarItem",
5
+ props: {
6
+ as: { type: [Object, Function, String], default: "a" },
7
+ activeBorderPosition: {},
8
+ active: { type: Boolean, default: !1 },
9
+ href: {},
10
+ value: {}
11
+ },
12
+ emits: ["select"],
13
+ setup(h, { emit: s }) {
14
+ const r = s;
15
+ return (t, i) => (p(), k(e(v), null, {
16
+ default: a(() => [
17
+ c(e(b), {
18
+ as: t.as,
19
+ class: o([
20
+ "uikit-relative uikit-flex uikit-min-w-[56px] uikit-flex-col uikit-items-center uikit-gap-y-2xs uikit-bg-transparent hover:uikit-cursor-pointer data-[active]:uikit-font-medium data-[active]:uikit-text-w-blue",
21
+ t.activeBorderPosition === "top" ? "uikit-pb-2xs uikit-pt-sm" : "uikit-pb-sm uikit-pt-2xs"
22
+ ]),
23
+ active: t.active,
24
+ href: t.href,
25
+ onSelect: i[0] || (i[0] = (n) => r("select", n))
26
+ }, {
27
+ default: a(() => [
28
+ u(t.$slots, "icon"),
29
+ u(t.$slots, "label"),
30
+ m(d("div", {
31
+ class: o([
32
+ "uikit-absolute uikit-left-1/2 uikit-h-2xs uikit-w-[56px] -uikit-translate-x-1/2 uikit-bg-w-blue",
33
+ t.activeBorderPosition === "top" ? "uikit-top-0 uikit-rounded-t-3xs" : "uikit-bottom-0 uikit-rounded-b-3xs"
34
+ ])
35
+ }, null, 2), [
36
+ [f, t.active]
37
+ ])
38
+ ]),
39
+ _: 3
40
+ }, 8, ["as", "class", "active", "href"])
41
+ ]),
42
+ _: 3
43
+ }));
44
+ }
45
+ });
46
+ export {
47
+ x as default
48
+ };
@@ -1,5 +1,5 @@
1
- import { defineComponent as k, useId as m, computed as c, createElementBlock as f, openBlock as p, withModifiers as l, createElementVNode as n, normalizeClass as s, createTextVNode as b, toDisplayString as h } from "vue";
2
- const C = ["id", "name", "checked"], V = ["for"], y = /* @__PURE__ */ k({
1
+ import { defineComponent as k, useId as m, computed as c, createElementBlock as b, openBlock as f, withModifiers as l, createElementVNode as n, normalizeClass as s, createTextVNode as p, toDisplayString as h } from "vue";
2
+ const C = ["id", "name", "checked"], g = ["for"], v = /* @__PURE__ */ k({
3
3
  __name: "RadioButton",
4
4
  props: {
5
5
  id: {},
@@ -20,7 +20,7 @@ const C = ["id", "name", "checked"], V = ["for"], y = /* @__PURE__ */ k({
20
20
  };
21
21
  o("change", e), o("update:modelValue", !i.modelValue);
22
22
  };
23
- return (e, t) => (p(), f("div", {
23
+ return (e, t) => (f(), b("div", {
24
24
  class: "uikit-inline-block",
25
25
  onClick: l(r, ["stop"])
26
26
  }, [
@@ -37,22 +37,22 @@ const C = ["id", "name", "checked"], V = ["for"], y = /* @__PURE__ */ k({
37
37
  }, ["prevent"]))
38
38
  }, null, 40, C),
39
39
  n("label", {
40
- class: s([e.labelClasses, "uikit-flex uikit-cursor-pointer uikit-items-center uikit-text-sm"]),
40
+ class: s([e.labelClasses, "uikit-inline-flex uikit-cursor-pointer uikit-items-center uikit-gap-x-sm uikit-text-16"]),
41
41
  for: u.value
42
42
  }, [
43
43
  n("span", {
44
- class: s(["uikit-flex-no-shrink uikit-mr-2 uikit-inline-block uikit-h-4 uikit-w-4 uikit-transform uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-secondary uikit-transition-colors uikit-duration-200", [
44
+ class: s(["uikit-flex-no-shrink uikit-inline-block uikit-size-[20px] uikit-transform uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-transition-colors uikit-duration-200", [
45
45
  {
46
- "checked uikit-border-w-primary uikit-bg-w-primary uikit-shadow-[0_0_0_2px_white_inset]": e.modelValue
46
+ "checked uikit-border-w-blue uikit-bg-w-blue uikit-shadow-[0_0_0_3px_white_inset]": e.modelValue
47
47
  },
48
48
  e.inputClasses
49
49
  ]])
50
50
  }, null, 2),
51
- b(" " + h(e.label), 1)
52
- ], 10, V)
51
+ p(" " + h(e.label), 1)
52
+ ], 10, g)
53
53
  ]));
54
54
  }
55
55
  });
56
56
  export {
57
- y as default
57
+ v as default
58
58
  };
@@ -0,0 +1,93 @@
1
+ import { defineComponent as g, mergeModels as c, useModel as k, createBlock as m, openBlock as a, unref as h, normalizeClass as y, withCtx as d, createElementBlock as p, Fragment as v, renderList as I, renderSlot as C, createTextVNode as M, toDisplayString as V } from "vue";
2
+ import { ToggleGroupRoot as b } from "reka-ui";
3
+ import S from "./SegmentedControlItem.vue.js";
4
+ const E = /* @__PURE__ */ g({
5
+ __name: "SegmentedControl",
6
+ props: /* @__PURE__ */ c({
7
+ items: { default: () => [] },
8
+ type: { default: "single" }
9
+ }, {
10
+ modelValue: {
11
+ required: !0
12
+ },
13
+ modelModifiers: {}
14
+ }),
15
+ emits: ["update:modelValue"],
16
+ setup(i) {
17
+ const o = k(i, "modelValue");
18
+ let u = null, r = null;
19
+ const s = (e = 0, l = 0) => {
20
+ u = e, r = l;
21
+ const t = [];
22
+ for (let n = e; n <= l; n++)
23
+ t.push(i.items[n]);
24
+ o.value = t;
25
+ }, f = (e = 0) => {
26
+ if (i.type === "single") {
27
+ o.value = i.items[e];
28
+ return;
29
+ }
30
+ if (i.items[e].single) {
31
+ u = null, r = null, o.value = [i.items[e]];
32
+ return;
33
+ }
34
+ if (u === null && r === null) {
35
+ s(e, i.items.length);
36
+ return;
37
+ }
38
+ const l = Math.min(u ?? 1 / 0, r ?? 1 / 0), t = Math.max(
39
+ u ?? -1 / 0,
40
+ r ?? -1 / 0
41
+ );
42
+ if (e < l) {
43
+ s(e, t);
44
+ return;
45
+ }
46
+ if (e > t) {
47
+ s(l, e);
48
+ return;
49
+ }
50
+ if (e === l || e === t) {
51
+ s(e, e);
52
+ return;
53
+ }
54
+ s(l, e);
55
+ };
56
+ return (e, l) => (a(), m(h(b), {
57
+ type: e.type,
58
+ class: y([
59
+ "uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-text-16",
60
+ {
61
+ "uikit-grid uikit-grid-cols-2": e.items.length === 2
62
+ },
63
+ {
64
+ "uikit-grid uikit-grid-cols-3": e.items.length === 3
65
+ },
66
+ {
67
+ "uikit-flex *:uikit-px-md *:uikit-py-sm [&_>_*:first-child]:uikit-px-sm [&_>_*:last-child]:uikit-px-sm": e.items.length === 6
68
+ }
69
+ ]),
70
+ "model-value": o.value
71
+ }, {
72
+ default: d(() => [
73
+ (a(!0), p(v, null, I(e.items, (t, n) => (a(), m(S, {
74
+ key: `segmented-control-item-${n}`,
75
+ theme: e.items.length === 6 ? "square" : "rounded",
76
+ value: t,
77
+ onClick: ($) => f(n)
78
+ }, {
79
+ default: d(() => [
80
+ C(e.$slots, "item", {}, () => [
81
+ M(V(t.label), 1)
82
+ ])
83
+ ]),
84
+ _: 2
85
+ }, 1032, ["theme", "value", "onClick"]))), 128))
86
+ ]),
87
+ _: 3
88
+ }, 8, ["type", "class", "model-value"]));
89
+ }
90
+ });
91
+ export {
92
+ E as default
93
+ };
@@ -0,0 +1,30 @@
1
+ import { defineComponent as t, createBlock as i, openBlock as a, unref as u, normalizeClass as o, withCtx as r, renderSlot as s } from "vue";
2
+ import { ToggleGroupItem as d } from "reka-ui";
3
+ const m = /* @__PURE__ */ t({
4
+ __name: "SegmentedControlItem",
5
+ props: {
6
+ value: {},
7
+ as: {},
8
+ theme: { default: "rounded" }
9
+ },
10
+ setup(n) {
11
+ return (e, l) => (a(), i(u(d), {
12
+ value: e.value,
13
+ as: e.as,
14
+ class: o(["uikit-h-[46px] uikit-w-full uikit-appearance-none uikit-bg-transparent uikit-outline-none [font-size:inherit] focus-visible:uikit-shadow-[0_0_0_2px_#2b5dff] data-[active]:uikit-border data-[active]:uikit-border-solid data-[active]:uikit-border-w-blue data-[active]:uikit-bg-w-ghost data-[active]:uikit-font-medium data-[active]:uikit-text-w-blue", [
15
+ { "uikit-rounded-2xs": e.theme === "rounded" },
16
+ {
17
+ "first:uikit-rounded-l-2xs last:uikit-rounded-r-2xs": e.theme === "square"
18
+ }
19
+ ]])
20
+ }, {
21
+ default: r(() => [
22
+ s(e.$slots, "default")
23
+ ]),
24
+ _: 3
25
+ }, 8, ["value", "as", "class"]));
26
+ }
27
+ });
28
+ export {
29
+ m as default
30
+ };
@@ -1,21 +1,22 @@
1
- import { defineComponent as i, createElementBlock as s, openBlock as l, normalizeClass as t, createElementVNode as r, renderSlot as a } from "vue";
2
- const m = /* @__PURE__ */ i({
1
+ import { defineComponent as i, createElementBlock as s, openBlock as l, normalizeStyle as r, normalizeClass as t, createElementVNode as a, renderSlot as o } from "vue";
2
+ const d = /* @__PURE__ */ i({
3
3
  inheritAttrs: !1,
4
4
  __name: "BaseShimmerLoader",
5
5
  props: {
6
6
  shimmerClasses: { default: "" }
7
7
  },
8
- setup(o) {
9
- return (e, u) => (l(), s("div", {
10
- class: t(["uikit-relative uikit-overflow-hidden uikit-bg-w-lavender", e.$attrs.class])
8
+ setup(u) {
9
+ return (e, m) => (l(), s("div", {
10
+ class: t(["uikit-shimmer-loader uikit-relative uikit-overflow-hidden uikit-rounded-3xs uikit-bg-w-cultured", e.$attrs.class]),
11
+ style: r(e.$attrs.style)
11
12
  }, [
12
- r("div", {
13
+ a("div", {
13
14
  class: t(["shimmer uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-h-full -uikit-translate-x-full", e.shimmerClasses])
14
15
  }, null, 2),
15
- a(e.$slots, "default", {}, void 0, !0)
16
- ], 2));
16
+ o(e.$slots, "default")
17
+ ], 6));
17
18
  }
18
19
  });
19
20
  export {
20
- m as default
21
+ d as default
21
22
  };
@@ -1,6 +1,7 @@
1
- import { defineComponent as i, createElementBlock as n, openBlock as r, Fragment as s, renderList as l, createBlock as a, normalizeStyle as m, normalizeClass as o } from "vue";
2
- import u from "../../../../../UIKit/ShimmerLoader/BaseShimmerLoader.js";
3
- const c = /* @__PURE__ */ i({
1
+ import { defineComponent as i, createElementBlock as n, openBlock as r, Fragment as s, renderList as l, createBlock as m, normalizeStyle as a, normalizeClass as o } from "vue";
2
+ import u from "./BaseShimmerLoader.vue.js";
3
+ import '../../../../../assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css';/* empty css */
4
+ const k = /* @__PURE__ */ i({
4
5
  __name: "ShimmerMultiLine",
5
6
  props: {
6
7
  lines: { default: 1 },
@@ -9,21 +10,21 @@ const c = /* @__PURE__ */ i({
9
10
  inheritHeight: { type: Boolean, default: !1 }
10
11
  },
11
12
  setup(h) {
12
- return (e, d) => (r(!0), n(s, null, l(e.lines, (t) => (r(), a(u, {
13
+ return (e, f) => (r(!0), n(s, null, l(e.lines, (t) => (r(), m(u, {
14
+ key: `sml-${t}`,
13
15
  ref_for: !0,
14
16
  ref: "shimmerLines",
15
17
  class: o(["shimmer-line", [
16
18
  e.shimmerClasses,
17
- e.inheritHeight ? "uikit-h-[1em]" : "uikit-h-8",
18
- "uikit-mb-2 uikit-rounded-xs"
19
+ e.inheritHeight ? "uikit-h-[1em]" : "uikit-h-xl",
20
+ "uikit-mb-xs uikit-rounded-xs"
19
21
  ]]),
20
- key: `sml-${t}`,
21
- style: m({
22
+ style: a({
22
23
  marginRight: e.randomLength ? `${Math.round(Math.random() * 5) * 10}%` : 0
23
24
  })
24
25
  }, null, 8, ["class", "style"]))), 128));
25
26
  }
26
27
  });
27
28
  export {
28
- c as default
29
+ k as default
29
30
  };
@@ -0,0 +1,39 @@
1
+ import { defineComponent as n, createBlock as r, openBlock as l, resolveDynamicComponent as a, normalizeClass as e, withCtx as k, renderSlot as p, withDirectives as c, createElementVNode as m, vShow as d } from "vue";
2
+ const v = /* @__PURE__ */ n({
3
+ __name: "BaseTabItem",
4
+ props: {
5
+ component: { type: [Object, Function, String], default: "button" },
6
+ activeBorderPosition: { default: "bottom" },
7
+ isActive: { type: Boolean, default: !1 }
8
+ },
9
+ emits: ["click"],
10
+ setup(b, { emit: o }) {
11
+ const s = o;
12
+ return (t, i) => (l(), r(a(t.component), {
13
+ class: e([
14
+ "uikit-relative uikit-min-w-[56px] uikit-bg-transparent uikit-text hover:uikit-cursor-pointer",
15
+ {
16
+ "uikit-font-semibold uikit-text-w-blue": t.isActive
17
+ },
18
+ t.activeBorderPosition === "top" ? "uikit-pb-2xs uikit-pt-sm" : "uikit-pb-sm uikit-pt-2xs"
19
+ ]),
20
+ onClick: i[0] || (i[0] = (u) => s("click", u))
21
+ }, {
22
+ default: k(() => [
23
+ p(t.$slots, "default"),
24
+ c(m("div", {
25
+ class: e([
26
+ "uikit-absolute uikit-left-1/2 uikit-h-2xs uikit-w-[56px] -uikit-translate-x-1/2 uikit-bg-w-blue",
27
+ t.activeBorderPosition === "top" ? "uikit-top-0 uikit-rounded-t-3xs" : "uikit-bottom-0 uikit-rounded-b-3xs"
28
+ ])
29
+ }, null, 2), [
30
+ [d, t.isActive]
31
+ ])
32
+ ]),
33
+ _: 3
34
+ }, 8, ["class"]));
35
+ }
36
+ });
37
+ export {
38
+ v as default
39
+ };
@@ -1,43 +1,46 @@
1
- import { defineComponent as p, inject as l, createElementBlock as r, openBlock as a, normalizeClass as o, Fragment as m, renderList as h, unref as i, createBlock as y, createCommentVNode as C, toDisplayString as _, resolveDynamicComponent as f } from "vue";
2
- const v = ["aria-labelledby"], B = ["id", "data-cy", "aria-selected", "aria-controls", "tabindex", "onClick"], F = { key: 0 }, $ = /* @__PURE__ */ p({
1
+ import { defineComponent as C, inject as n, createElementBlock as o, openBlock as i, normalizeClass as l, Fragment as u, renderList as h, unref as s, createBlock as c, withCtx as k, createCommentVNode as v, toDisplayString as _, resolveDynamicComponent as f } from "vue";
2
+ import B from "./BaseTabItem.vue.js";
3
+ const F = ["aria-labelledby", "data-cy"], L = { key: 0 }, D = /* @__PURE__ */ C({
3
4
  __name: "BaseTabList",
4
5
  props: {
6
+ dataCy: {},
5
7
  uid: {},
6
- tabListClasses: { default: "" }
8
+ tabListClasses: {},
9
+ activeBorderPosition: {}
7
10
  },
8
11
  emits: ["tabClick"],
9
- setup(L, { emit: c }) {
10
- const d = l("tabs"), s = l("isTabActive"), b = l("handleClick"), u = c;
11
- return (n, g) => (a(), r("div", {
12
+ setup($, { emit: d }) {
13
+ const b = n("tabs"), r = n("isTabActive"), m = n("handleClick"), p = d;
14
+ return (t, T) => (i(), o("div", {
12
15
  role: "tablist",
13
- "aria-labelledby": `tablist-${n.uid}`,
14
- class: o(n.tabListClasses)
16
+ "aria-labelledby": `tablist-${t.uid}`,
17
+ class: l(t.tabListClasses),
18
+ "data-cy": t.dataCy
15
19
  }, [
16
- (a(!0), r(m, null, h(i(d), (e, t) => (a(), r("button", {
20
+ (i(!0), o(u, null, h(s(b), (e, a) => (i(), c(B, {
17
21
  id: e.tabId,
18
- key: t,
22
+ key: a,
23
+ "active-border-position": t.activeBorderPosition,
24
+ "is-active": s(r)(a),
19
25
  "data-cy": e["data-cy"],
20
26
  type: "button",
21
27
  role: "tab",
22
- "aria-selected": i(s)(t),
23
- "aria-controls": `base-tab-panel-${t}-${n.uid}`,
24
- tabindex: i(s)(t) ? void 0 : -1,
25
- class: o([
26
- "uikit-bg-transparent uikit-p-5px",
27
- {
28
- "uikit-border-b-2 uikit-border-solid uikit-border-w-primary uikit-font-semibold": i(s)(t)
29
- },
30
- e.class
31
- ]),
32
- onClick: (k) => {
33
- i(b)(t, e), u("tabClick", k, t, e);
28
+ "aria-selected": s(r)(a),
29
+ "aria-controls": `base-tab-panel-${a}-${t.uid}`,
30
+ tabindex: s(r)(a) ? void 0 : -1,
31
+ class: l(e.class),
32
+ onClick: (y) => {
33
+ s(m)(a, e), p("tabClick", y, a, e);
34
34
  }
35
- }, [
36
- e["header-title"] ? (a(), r("span", F, _(e["header-title"]), 1)) : e.renderFn.children && e.renderFn.children.header ? (a(), y(f(e.renderFn.children.header), { key: 1 })) : C("", !0)
37
- ], 10, B))), 128))
38
- ], 10, v));
35
+ }, {
36
+ default: k(() => [
37
+ e["header-title"] ? (i(), o("span", L, _(e["header-title"]), 1)) : e.renderFn.children && e.renderFn.children.header ? (i(), c(f(e.renderFn.children.header), { key: 1 })) : v("", !0)
38
+ ]),
39
+ _: 2
40
+ }, 1032, ["id", "active-border-position", "is-active", "data-cy", "aria-selected", "aria-controls", "tabindex", "class", "onClick"]))), 128))
41
+ ], 10, F));
39
42
  }
40
43
  });
41
44
  export {
42
- $ as default
45
+ D as default
43
46
  };