@wikicasa-dev/components 2.1.4-alpha.8 → 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 (178) 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 -6
  49. package/dist/index.js +85 -100
  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 +17 -20
  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/_virtual/_commonjsHelpers.js +0 -6
  124. package/dist/_virtual/create-plugin.js +0 -4
  125. package/dist/_virtual/createPlugin.js +0 -4
  126. package/dist/_virtual/plugin.js +0 -7
  127. 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
  128. package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +0 -1
  129. package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +0 -1
  130. package/dist/assets/packages/components/lib/UIKit/BasePin.css +0 -1
  131. package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +0 -1
  132. package/dist/assets/packages/components/lib/UIKit/DatePicker.css +0 -1
  133. package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +0 -1
  134. 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
  135. 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
  136. 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
  137. 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
  138. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/public/create-plugin.js +0 -25
  139. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/lib/util/createPlugin.js +0 -34
  140. package/dist/node_modules/.pnpm/tailwindcss@3.4.15_ts-node@10.9.2_@types_node@24.0.1_typescript@5.8.3_/node_modules/tailwindcss/plugin.js +0 -11
  141. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +0 -29
  142. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +0 -56
  143. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +0 -56
  144. package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +0 -56
  145. package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +0 -75
  146. package/dist/packages/components/lib/UIKit/BaseChip.vue.js +0 -38
  147. package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +0 -54
  148. package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +0 -19
  149. package/dist/packages/components/lib/UIKit/BasePin.vue.js +0 -37
  150. package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +0 -65
  151. package/dist/packages/components/lib/UIKit/DatePicker.vue.js +0 -143
  152. package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +0 -152
  153. package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +0 -21
  154. package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +0 -48
  155. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +0 -93
  156. package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +0 -30
  157. package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +0 -39
  158. package/dist/plugins/buttonPlugin.d.ts +0 -4
  159. package/dist/plugins/buttonPlugin.js +0 -232
  160. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.css +0 -0
  161. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.css +0 -0
  162. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.css +0 -0
  163. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.css +0 -0
  164. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/swiper.css +0 -0
  165. /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
  166. /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
  167. /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
  168. /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
  169. /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
  170. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.css.js +0 -0
  171. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.js +0 -0
  172. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.css.js +0 -0
  173. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.css.js +0 -0
  174. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.js +0 -0
  175. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.css.js +0 -0
  176. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/classes-to-selector.js +0 -0
  177. /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
  178. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
@@ -1,37 +0,0 @@
1
- import { defineComponent as u, createElementBlock as e, openBlock as t, normalizeClass as n, createElementVNode as l, createCommentVNode as s, renderSlot as o } from "vue";
2
- const a = {
3
- key: 0,
4
- class: "uikit-pin-arrow"
5
- }, k = /* @__PURE__ */ u({
6
- __name: "BasePin",
7
- props: {
8
- type: { default: "default" },
9
- pinClass: { default: "white" },
10
- outlined: { type: Boolean, default: !1 }
11
- },
12
- setup(p) {
13
- return (i, r) => (t(), e("span", {
14
- class: n(["uikit-pin uikit-relative uikit-inline-block uikit-text", [
15
- { "uikit-pin-outlined": i.outlined },
16
- `uikit-pin-${i.pinClass}`,
17
- `uikit-pin-${i.type}`
18
- ]])
19
- }, [
20
- l("span", {
21
- class: n(["uikit-pin-body uikit-box-border", [
22
- {
23
- "uikit-inline-flex uikit-min-w-xl uikit-rounded-3xs uikit-px-sm uikit-py-2xs": ["default", "large"].includes(i.type),
24
- "uikit-px-xs": i.type === "large",
25
- "uikit-inline-flex uikit-size-lg uikit-items-center uikit-justify-center uikit-rounded-full": i.type === "rounded"
26
- }
27
- ]])
28
- }, [
29
- o(i.$slots, "default")
30
- ], 2),
31
- i.type !== "rounded" ? (t(), e("div", a)) : s("", !0)
32
- ], 2));
33
- }
34
- });
35
- export {
36
- k as default
37
- };
@@ -1,65 +0,0 @@
1
- import { defineComponent as x, mergeModels as u, useCssVars as w, computed as C, useModel as v, useId as y, watch as S, createElementBlock as a, openBlock as d, createCommentVNode as V, createElementVNode as O, normalizeClass as c, unref as m, toDisplayString as p, Fragment as z, renderList as B } from "vue";
2
- const E = { class: "select-wrapper" }, D = ["for"], M = ["id"], T = ["data-idx", "selected"], N = /* @__PURE__ */ x({
3
- __name: "BaseSelect",
4
- props: /* @__PURE__ */ u({
5
- labelText: { default: "" },
6
- options: { default: () => [] },
7
- border: { type: Boolean, default: !0 },
8
- labelClasses: {},
9
- arrowSize: { default: 16 }
10
- }, {
11
- modelValue: {
12
- default: () => ({
13
- id: -1,
14
- label: ""
15
- })
16
- },
17
- modelModifiers: {}
18
- }),
19
- emits: /* @__PURE__ */ u(["change"], ["update:modelValue"]),
20
- setup(o, { emit: f }) {
21
- w((e) => ({
22
- "7c189782": b.value
23
- }));
24
- const s = v(o, "modelValue"), k = f, n = y(), b = C(() => `${o.arrowSize}px`), g = ({ target: e }) => {
25
- const i = (e.selectedOptions?.[0]).dataset.idx;
26
- if (i === void 0) return;
27
- const h = o.options[i];
28
- s.value = h;
29
- }, r = (e, t) => e.id === t?.id || e.label === t?.label;
30
- return S(
31
- s,
32
- (e) => {
33
- const t = o.options.find(
34
- (l) => r(l, e)
35
- );
36
- t && (s.value = t);
37
- },
38
- { immediate: !0 }
39
- ), (e, t) => (d(), a("div", E, [
40
- e.labelText ? (d(), a("label", {
41
- key: 0,
42
- for: m(n),
43
- class: c(["uikit-block", e.labelClasses])
44
- }, p(e.labelText), 11, D)) : V("", !0),
45
- O("select", {
46
- id: m(n),
47
- class: c(["uikit-w-full uikit-cursor-pointer uikit-bg-white uikit-pr-xl uikit-text-16 uikit-font-regular", {
48
- "uikit-rounded-2xs uikit-border uikit-border-solid uikit-border-w-lightgray uikit-py-md uikit-pl-sm": e.border
49
- }]),
50
- onChange: t[0] || (t[0] = (l) => {
51
- k("change", l), g(l);
52
- })
53
- }, [
54
- (d(!0), a(z, null, B(e.options, (l, i) => (d(), a("option", {
55
- key: `option-${i}`,
56
- "data-idx": i,
57
- selected: r(l, s.value)
58
- }, p(l.label), 9, T))), 128))
59
- ], 42, M)
60
- ]));
61
- }
62
- });
63
- export {
64
- N as default
65
- };
@@ -1,143 +0,0 @@
1
- import { defineComponent as N, ref as T, watch as V, computed as x, createBlock as A, openBlock as w, unref as m, withCtx as n, createElementBlock as M, createCommentVNode as S, renderSlot as E, createVNode as a, createTextVNode as O, toDisplayString as P, createElementVNode as r } from "vue";
2
- import { ArrowIcon as C } 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";
4
- import j from "@vuepic/vue-datepicker";
5
- import y from "./BaseSelect.vue.js";
6
- import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';import '../../../../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';import '../../../../assets/packages/components/lib/UIKit/BaseSelect.css';/* empty css */
7
- /* empty css */
8
- import z from "./BaseButton.vue.js";
9
- import R from "./BaseInput.vue.js";
10
- /* empty css */
11
- const q = { class: "uikit-flex uikit-w-full uikit-justify-between uikit-border-b uikit-border-solid uikit-border-w-lightgray uikit-px-sm uikit-py-md" }, F = ["onClick"], G = ["onClick"], H = {
12
- key: 0,
13
- class: "uikit-grow"
14
- }, oe = /* @__PURE__ */ N({
15
- __name: "DatePicker",
16
- props: {
17
- btnLabel: {},
18
- range: { type: Boolean, default: !1 },
19
- locale: { default: "it-IT" },
20
- position: { default: "left" },
21
- rangeConfig: {},
22
- modelValue: {},
23
- inputLabel: {}
24
- },
25
- emits: ["update:modelValue"],
26
- setup(u, { emit: $ }) {
27
- const B = $, o = T(null);
28
- V(
29
- () => u.modelValue,
30
- (e) => {
31
- Array.isArray(e) && !e.find((l) => l instanceof Date) || (o.value = e ?? null);
32
- },
33
- { immediate: !0 }
34
- );
35
- const c = x(() => u.range || !!u.rangeConfig), I = (e, l, t) => {
36
- e(l, t, !1);
37
- }, U = (e, l, t) => {
38
- e(l, t, !1);
39
- }, p = (e, l = []) => l.find((t) => t.value === e);
40
- let s = [];
41
- const f = (e = []) => (s.length || (s = e.map((l, t) => ({
42
- id: `month-${t}`,
43
- label: l.text,
44
- value: l.value
45
- }))), s);
46
- let d = [];
47
- const k = (e = []) => (d.length || (d = e.map((l, t) => ({
48
- id: `year-${t}`,
49
- label: l.text,
50
- value: l.value
51
- }))), d), D = (e) => {
52
- !e || c.value || o.value.getTime() !== e.getTime() && (o.value = e);
53
- }, L = (e) => {
54
- e && (o.value = e);
55
- };
56
- return V(o, (e) => {
57
- e && B("update:modelValue", e);
58
- }), (e, l) => (w(), A(m(j), {
59
- "model-value": o.value,
60
- range: e.range,
61
- "enable-time-picker": !1,
62
- ui: { menu: e.range ? "dp__range-mode" : "dp__single_mode" },
63
- locale: e.locale,
64
- position: e.position,
65
- onInternalModelChange: D,
66
- "onUpdate:modelValue": L
67
- }, {
68
- "dp-input": n(({ value: t }) => [
69
- a(R, {
70
- "model-value": t,
71
- "label-text": e.inputLabel
72
- }, null, 8, ["model-value", "label-text"])
73
- ]),
74
- "month-year": n(({
75
- month: t,
76
- year: g,
77
- months: v,
78
- years: h,
79
- updateMonthYear: b,
80
- handleMonthYearChange: _
81
- }) => [
82
- r("div", q, [
83
- r("span", {
84
- class: "uikit-cursor-pointer",
85
- onClick: (i) => _?.(!1)
86
- }, [
87
- a(m(C), {
88
- class: "uikit-rotate-90",
89
- width: 20,
90
- height: 10,
91
- "stroke-width": 1.5
92
- })
93
- ], 8, F),
94
- r("div", null, [
95
- a(y, {
96
- "model-value": p(t, f(v)),
97
- options: f(v),
98
- border: !1,
99
- "arrow-size": 12,
100
- "onUpdate:modelValue": (i) => I(b, i?.value, g)
101
- }, null, 8, ["model-value", "options", "onUpdate:modelValue"]),
102
- a(y, {
103
- "model-value": p(g, k(h)),
104
- options: k(h),
105
- border: !1,
106
- "onUpdate:modelValue": (i) => U(b, t, i?.value)
107
- }, null, 8, ["model-value", "options", "onUpdate:modelValue"])
108
- ]),
109
- r("span", {
110
- class: "uikit-cursor-pointer",
111
- onClick: (i) => _?.(!1)
112
- }, [
113
- a(m(C), {
114
- class: "-uikit-rotate-90",
115
- width: 20,
116
- height: 10,
117
- "stroke-width": 1.5
118
- })
119
- ], 8, G)
120
- ])
121
- ]),
122
- "action-row": n(({ selectDate: t }) => [
123
- c.value ? (w(), M("div", H, [
124
- E(e.$slots, "submitBtn", {}, () => [
125
- a(z, {
126
- class: "uikit-w-full",
127
- onClick: t
128
- }, {
129
- default: n(() => [
130
- O(P(e.btnLabel), 1)
131
- ]),
132
- _: 2
133
- }, 1032, ["onClick"])
134
- ])
135
- ])) : S("", !0)
136
- ]),
137
- _: 3
138
- }, 8, ["model-value", "range", "ui", "locale", "position"]));
139
- }
140
- });
141
- export {
142
- oe as default
143
- };
@@ -1,152 +0,0 @@
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
- };
@@ -1,21 +0,0 @@
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
- };
@@ -1,48 +0,0 @@
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,93 +0,0 @@
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
- };
@@ -1,30 +0,0 @@
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,39 +0,0 @@
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,4 +0,0 @@
1
- export declare const buttonPlugin: {
2
- handler: import('tailwindcss/types/config').PluginCreator;
3
- config?: Partial<import('tailwindcss/types/config').Config>;
4
- };