@wikicasa-dev/components 2.1.4-alpha.2 → 2.1.4-alpha.20

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 (110) hide show
  1. package/dist/UIKit/BaseAutocomplete.d.ts +14 -12
  2. package/dist/UIKit/BaseAutocomplete.js +3 -2
  3. package/dist/UIKit/BaseBadge.d.ts +2 -38
  4. package/dist/UIKit/BaseDropDown.d.ts +8 -13
  5. package/dist/UIKit/BaseInput.d.ts +4 -5
  6. package/dist/UIKit/BasePagination.d.ts +7 -1
  7. package/dist/UIKit/BasePin.d.ts +22 -0
  8. package/dist/UIKit/BaseSelect.d.ts +26 -0
  9. package/dist/UIKit/BaseSelect.js +5 -0
  10. package/dist/UIKit/BaseTextarea.js +2 -2
  11. package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -3
  12. package/dist/UIKit/types.d.ts +7 -3
  13. package/dist/_virtual/_commonjsHelpers.js +6 -0
  14. package/dist/_virtual/cloneDeep.js +4 -0
  15. package/dist/_virtual/create-plugin.js +4 -0
  16. package/dist/_virtual/createPlugin.js +4 -0
  17. package/dist/_virtual/default-theme.js +4 -0
  18. package/dist/_virtual/defaultTheme.js +7 -0
  19. package/dist/_virtual/plugin.js +7 -0
  20. package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
  21. package/dist/assets/packages/components/lib/UIKit/BaseAutocomplete.css +1 -0
  22. package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
  23. package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
  24. package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
  25. package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -1
  26. package/dist/assets/packages/components/lib/UIKit/{NativeSelect.css → BaseSelect.css} +1 -1
  27. package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
  28. package/dist/assets/packages/components/src/tailwind.css +1 -1
  29. package/dist/index.d.ts +3 -1
  30. package/dist/index.js +94 -87
  31. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/keyboard.js +13 -13
  32. package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/classes-to-selector.js +1 -1
  33. 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/defaultTheme.js +11 -0
  34. 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 +25 -0
  35. 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/default-theme.js +26 -0
  36. 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/cloneDeep.js +23 -0
  37. 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 +34 -0
  38. 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 +11 -0
  39. 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/stubs/config.full.js +1068 -0
  40. package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
  41. package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
  42. package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
  43. package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
  44. package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
  45. package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
  46. package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
  47. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +24 -24
  48. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +10 -9
  49. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
  50. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
  51. package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +2 -2
  52. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +106 -141
  53. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +16 -45
  54. package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +9 -9
  55. package/dist/packages/components/lib/UIKit/BaseButton.vue.js +15 -15
  56. package/dist/packages/components/lib/UIKit/BaseChip.vue.js +2 -2
  57. package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +2 -2
  58. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +53 -65
  59. package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +4 -4
  60. package/dist/packages/components/lib/UIKit/BaseInput.vue.js +52 -51
  61. package/dist/packages/components/lib/UIKit/BaseModal.vue.js +2 -2
  62. package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +1 -1
  63. package/dist/packages/components/lib/UIKit/BasePagination.vue.js +63 -40
  64. package/dist/packages/components/lib/UIKit/BasePin.vue.js +1 -1
  65. package/dist/packages/components/lib/UIKit/{NativeSelect.vue.js → BaseSelect.vue.js} +12 -12
  66. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
  67. package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +8 -8
  68. package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +1 -1
  69. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +4 -4
  70. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +7 -9
  71. package/dist/packages/components/lib/UIKit/DatePicker.vue.js +4 -4
  72. package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +30 -30
  73. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +1 -1
  74. package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +7 -6
  75. package/dist/packages/components/plugins/buttonPlugin.js +232 -0
  76. package/dist/tailwind.config.js +147 -0
  77. package/package.json +24 -31
  78. package/plugins/buttonPlugin.ts +290 -0
  79. package/dist/UIKit/NativeSelect.js +0 -5
  80. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.css +0 -0
  81. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/navigation.css +0 -0
  82. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/pagination.css +0 -0
  83. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/zoom.css +0 -0
  84. /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/swiper.css +0 -0
  85. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +0 -0
  86. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
  87. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +0 -0
  88. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
  89. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
  90. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
  91. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
  92. /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +0 -0
  93. /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
  94. /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -0
  95. /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +0 -0
  96. /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
  97. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.css.js +0 -0
  98. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.js +0 -0
  99. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/controller.css.js +0 -0
  100. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/controller.js +0 -0
  101. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.js +0 -0
  102. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/keyboard.css.js +0 -0
  103. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/navigation.js +0 -0
  104. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/pagination.js +0 -0
  105. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.css.js +0 -0
  106. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.js +0 -0
  107. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/modules/zoom.js +0 -0
  108. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
  109. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
  110. /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.10}/node_modules/swiper/shared/utils.js +0 -0
@@ -13,15 +13,13 @@ const w = ["id", "data-cy"], F = /* @__PURE__ */ x({
13
13
  autoCheckResetAll: { type: Boolean, default: !1 },
14
14
  autoCheckResetEmpty: { type: Boolean, default: !1 },
15
15
  manualToggleResetButton: { type: Boolean, default: !1 },
16
- getKey: { type: Function, default() {
17
- return (n) => typeof n == "string" || typeof n == "number" ? `${n}` : `${n.id}`;
18
- } },
16
+ getKey: { type: Function, default: (n) => typeof n == "string" || typeof n == "number" ? `${n}` : `${n.id}` },
19
17
  groupId: { default: "" },
20
18
  dataCy: { default: "" }
21
19
  },
22
20
  emits: ["resetted", "update:modelValue", "checkedGroup"],
23
21
  setup(n, { emit: g }) {
24
- const C = (e = "") => !e || !e.trim() ? "" : (e = e.trim(), e.replace(" ", "-").toLowerCase()), y = (e) => !e?.length, o = n, r = g, c = D(/* @__PURE__ */ new Map()), s = h(() => {
22
+ const C = (e = "") => !e || !e.trim() ? "" : (e = e.trim(), e.replace(" ", "-").toLowerCase()), y = (e) => !e?.length, o = n, s = g, c = D(/* @__PURE__ */ new Map()), r = h(() => {
25
23
  for (const e of o.checkboxData)
26
24
  if (e.reset) return e;
27
25
  return null;
@@ -38,7 +36,7 @@ const w = ["id", "data-cy"], F = /* @__PURE__ */ x({
38
36
  `${t.id}`,
39
37
  t
40
38
  ), t.checked && e.push(t);
41
- r("update:modelValue", e);
39
+ s("update:modelValue", e);
42
40
  })();
43
41
  const u = (e, t) => {
44
42
  const a = c.value.get(e);
@@ -54,17 +52,17 @@ const w = ["id", "data-cy"], F = /* @__PURE__ */ x({
54
52
  e.checked = !1;
55
53
  });
56
54
  }, p = () => {
57
- k(), r("update:modelValue", []), r("resetted");
55
+ k(), s("update:modelValue", []), s("resetted");
58
56
  }, d = (e) => c.value.get(o.getKey(e))?.checked ?? !1, i = (e) => {
59
57
  if (y(o.checkboxData)) return;
60
58
  const t = c.value.get(e.id);
61
- t?.reset && e.checked ? k() : s.value && !t?.reset && u(o.getKey(s.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && s.value && f.value === v.value - 1 && c.value.forEach((l) => {
59
+ t?.reset && e.checked ? k() : r.value && !t?.reset && u(o.getKey(r.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && r.value && f.value === v.value - 1 && c.value.forEach((l) => {
62
60
  l.checked = !!l.reset;
63
- }), o.autoCheckResetEmpty && s.value && !f.value && (!o.manualToggleResetButton || !t?.reset) && u(o.getKey(s.value), { checked: !0 });
61
+ }), o.autoCheckResetEmpty && r.value && !f.value && (!o.manualToggleResetButton || !t?.reset) && u(o.getKey(r.value), { checked: !0 });
64
62
  const a = [];
65
63
  c.value.forEach((l) => {
66
64
  l.checked && a.push(l);
67
- }), r("update:modelValue", a), r("checkedGroup", o.groupId);
65
+ }), s("update:modelValue", a), s("checkedGroup", o.groupId);
68
66
  };
69
67
  return E(
70
68
  () => o.reset,
@@ -1,9 +1,9 @@
1
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";
2
+ import { ArrowIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
3
+ import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
4
4
  import j from "@vuepic/vue-datepicker";
5
- import y from "./NativeSelect.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/NativeSelect.css';/* empty css */
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
7
  /* empty css */
8
8
  import z from "./BaseButton.vue.js";
9
9
  import R from "./BaseInput.vue.js";
@@ -1,4 +1,4 @@
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";
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 n, Fragment as h, renderList as D, createBlock as U, createTextVNode as x, toDisplayString as V, renderSlot as P } from "vue";
2
2
  import R from "./BaseButton.vue.js";
3
3
  import B from "./BaseInput.vue.js";
4
4
  import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
@@ -24,7 +24,7 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
24
24
  ), d = O(
25
25
  f,
26
26
  "rightValue"
27
- ), v = k(!1), m = k(!1), g = k(!1), b = k(!1), $ = (i) => ({
27
+ ), m = k(!1), v = k(!1), g = k(!1), c = k(!1), $ = (i) => ({
28
28
  id: -1,
29
29
  label: i ? `${i}` : ""
30
30
  }), S = (i, e = []) => {
@@ -51,20 +51,20 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
51
51
  ), (i, e) => (r(), w("div", j, [
52
52
  M("div", z, [
53
53
  p(I, {
54
- "toggle-dropdown": m.value,
55
- "onUpdate:toggleDropdown": e[1] || (e[1] = (t) => m.value = t),
54
+ "toggle-dropdown": v.value,
55
+ "onUpdate:toggleDropdown": e[1] || (e[1] = (t) => v.value = t),
56
56
  class: "!uikit-static",
57
- "dropdown-classes": "!uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none",
57
+ "dropdown-classes": "!uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none !uikit-w-[calc(100%-32px)]",
58
58
  "disable-space-handler": "",
59
59
  "onUpdate:selectedIdx": e[2] || (e[2] = (t) => a.value = i.leftSelectOptions[t]),
60
- "onUpdate:dropdownState": e[3] || (e[3] = (t) => v.value = t)
60
+ "onUpdate:dropdownState": e[3] || (e[3] = (t) => m.value = t)
61
61
  }, {
62
- btn_slot: u(({ toggleDropdown: t, setActiveIdx: o }) => [
62
+ btn_slot: n(({ toggleDropdown: t, setActiveIdx: o }) => [
63
63
  p(B, {
64
64
  "model-value": a.value.label,
65
65
  "label-text": "Min",
66
66
  onClick: (l) => {
67
- l.stopPropagation(), v.value || t(), g.value && (b.value = !0);
67
+ l.stopPropagation(), m.value || t(), g.value && (c.value = !0);
68
68
  },
69
69
  onKeyup: (l) => o(-1),
70
70
  "onUpdate:modelValue": e[0] || (e[0] = (l) => {
@@ -72,17 +72,17 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
72
72
  })
73
73
  }, null, 8, ["model-value", "onClick", "onKeyup"])
74
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) => {
75
+ default: n(({ activeIdx: t, toggleDropdown: o, setActiveIdx: l }) => [
76
+ (r(!0), w(h, null, D(i.leftSelectOptions, (s, u) => (r(), U(L, {
77
+ key: `left-option-${u}`,
78
+ class: "uikit-rounded-2xs uikit-p-xs uikit-text-16",
79
+ active: t === u,
80
+ onClick: (b) => {
81
81
  a.value = s, o();
82
82
  },
83
- onMouseover: (c) => l(n)
83
+ onMouseover: (b) => l(u)
84
84
  }, {
85
- default: u(() => [
85
+ default: n(() => [
86
86
  x(V(s.label), 1)
87
87
  ]),
88
88
  _: 2
@@ -91,20 +91,20 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
91
91
  _: 1
92
92
  }, 8, ["toggle-dropdown"]),
93
93
  p(I, {
94
- "toggle-dropdown": b.value,
95
- "onUpdate:toggleDropdown": e[5] || (e[5] = (t) => b.value = t),
94
+ "toggle-dropdown": c.value,
95
+ "onUpdate:toggleDropdown": e[5] || (e[5] = (t) => c.value = t),
96
96
  "disable-space-handler": "",
97
97
  class: "!uikit-static",
98
- "dropdown-classes": "uikit-left-0 !uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none",
98
+ "dropdown-classes": "uikit-left-md !uikit-shadow-none uikit-top-[70px] !uikit-border-none !uikit-rounded-none !uikit-w-[calc(100%-32px)]",
99
99
  "onUpdate:selectedIdx": e[6] || (e[6] = (t) => d.value = i.rightSelectOptions[t]),
100
100
  "onUpdate:dropdownState": e[7] || (e[7] = (t) => g.value = t)
101
101
  }, {
102
- btn_slot: u(({ toggleDropdown: t, setActiveIdx: o }) => [
102
+ btn_slot: n(({ toggleDropdown: t, setActiveIdx: o }) => [
103
103
  p(B, {
104
104
  "model-value": d.value.label,
105
105
  "label-text": "Max",
106
106
  onClick: (l) => {
107
- l.stopPropagation(), g.value || t(), v.value && (m.value = !0);
107
+ l.stopPropagation(), g.value || t(), m.value && (v.value = !0);
108
108
  },
109
109
  onKeyup: (l) => o(-1),
110
110
  "onUpdate:modelValue": e[4] || (e[4] = (l) => {
@@ -112,17 +112,17 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
112
112
  })
113
113
  }, null, 8, ["model-value", "onClick", "onKeyup"])
114
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) => {
115
+ default: n(({ activeIdx: t, toggleDropdown: o, setActiveIdx: l }) => [
116
+ (r(!0), w(h, null, D(i.rightSelectOptions, (s, u) => (r(), U(L, {
117
+ key: `left-option-${u}`,
118
+ class: "uikit-rounded-2xs uikit-p-xs uikit-text-16",
119
+ active: t === u,
120
+ onClick: (b) => {
121
121
  d.value = s, o();
122
122
  },
123
- onMouseover: (c) => l(n)
123
+ onMouseover: (b) => l(u)
124
124
  }, {
125
- default: u(() => [
125
+ default: n(() => [
126
126
  x(V(s.label), 1)
127
127
  ]),
128
128
  _: 2
@@ -137,7 +137,7 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
137
137
  class: "uikit-w-full",
138
138
  onClick: e[8] || (e[8] = (t) => N("submit", t))
139
139
  }, {
140
- default: u(() => [
140
+ default: n(() => [
141
141
  x(V(i.submitBtnLabel), 1)
142
142
  ]),
143
143
  _: 1
@@ -7,7 +7,7 @@ const d = /* @__PURE__ */ i({
7
7
  },
8
8
  setup(u) {
9
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]),
10
+ class: t(["uikit-shimmer-loader uikit-relative uikit-overflow-hidden uikit-rounded-2xs uikit-bg-w-cultured", e.$attrs.class]),
11
11
  style: r(e.$attrs.style)
12
12
  }, [
13
13
  a("div", {
@@ -1,12 +1,13 @@
1
1
  import { defineComponent as J, reactive as Q, ref as k, useId as U, computed as f, onMounted as X, watch as Y, nextTick as M, createElementBlock as l, openBlock as u, normalizeClass as p, createElementVNode as v, createCommentVNode as y, renderSlot as E, Fragment as P, renderList as F, mergeProps as T, withModifiers as O } from "vue";
2
2
  import { Swiper as B } from "swiper";
3
- import x from "../../../../../node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.js";
4
- import '../../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.css';import '../../../../../assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css';/* empty css */
5
- /* empty css */
3
+ import x from "../../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/zoom.js";
4
+ import '../../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/zoom.css';import '../../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css';/* empty css */
5
+ /* empty css */
6
6
  import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
7
- import { shallowCopyObjectTo as _ } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
7
+ import { shallowCopyObjectTo as _ } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
8
+ import "date-fns";
8
9
  import "../../../../../_virtual/polyline.js";
9
- const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "height", "onLoad"], ie = ["id"], ae = ["alt"], me = /* @__PURE__ */ J({
10
+ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "height", "onLoad"], ie = ["id"], ae = ["alt"], we = /* @__PURE__ */ J({
10
11
  inheritAttrs: !1,
11
12
  __name: "SwiperCarousel",
12
13
  props: {
@@ -242,5 +243,5 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
242
243
  }
243
244
  });
244
245
  export {
245
- me as default
246
+ we as default
246
247
  };
@@ -0,0 +1,232 @@
1
+ import n from "../../../_virtual/plugin.js";
2
+ const o = {
3
+ //New colors
4
+ primary: { value: "#F20282", hover: "#E30C79", outlineHover: "#FFF8FB" },
5
+ secondary: { value: "#2b5dff", hover: "#244FD9" },
6
+ lightgray: { value: "#C1C8D5" },
7
+ ghost: { value: "#FAFBFF" },
8
+ lavender: { value: "#E9EFFE" },
9
+ black: { value: "#222222" },
10
+ warning: { value: "#FFD167" },
11
+ white: { value: "#FFF", hover: "" },
12
+ danger: { value: "#FA4F64" }
13
+ }, b = n(({ addComponents: r, theme: t }) => {
14
+ r({
15
+ ".btn": {
16
+ "--btn-px": "25px",
17
+ "--btn-py": "11px",
18
+ "--btn-bg-color": "transparent",
19
+ "--btn-text-color": o.black.value,
20
+ "--btn-border-color": "unset",
21
+ "--btn-border-width": "0",
22
+ "--btn-border-radius": "24px",
23
+ "--btn-border-style": "solid",
24
+ "--btn-height": "40px",
25
+ "--btn-width": "auto",
26
+ "--btn-font-size": t("fontSize.16"),
27
+ "--btn-transition": "color, background-color cubic-bezier(0.4, 0, 0.2, 1) 150ms",
28
+ "--btn-font-weight": `${t("fontWeight.semibold")}`,
29
+ display: "inline-flex",
30
+ "align-items": "center",
31
+ "justify-content": "center",
32
+ "font-size": "var(--btn-font-size)",
33
+ "font-weight": "var(--btn-font-weight)",
34
+ "white-space": "nowrap",
35
+ border: "var(--btn-border-width) var(--btn-border-color) var(--btn-border-style)",
36
+ "border-radius": "var(--btn-border-radius)",
37
+ cursor: "pointer",
38
+ height: "var(--btn-height)",
39
+ width: "var(--btn-width)",
40
+ "background-color": "var(--btn-bg-color)",
41
+ color: "var(--btn-text-color)",
42
+ padding: "var(--btn-py) var(--btn-px)",
43
+ transition: "var(--btn-transition)",
44
+ "line-height": "1",
45
+ "-webkit-tap-highlight-color": "transparent",
46
+ "&.btn-lg": {
47
+ "--btn-height": "48px",
48
+ "--btn-px": "24px",
49
+ "--btn-py": "12px"
50
+ },
51
+ "&.btn-sm": {
52
+ "--btn-px": "24px",
53
+ "--btn-py": "8px",
54
+ "--btn-height": "40px"
55
+ },
56
+ "&.btn-rounded": {
57
+ "--btn-px": "0",
58
+ "--btn-py": "0"
59
+ },
60
+ "&.btn-outline": {
61
+ "--btn-border-width": "1px",
62
+ "--btn-bg-color": o.white.value
63
+ },
64
+ "&.btn-primary": {
65
+ ...e(
66
+ {
67
+ bgColor: o.primary.value,
68
+ textColor: o.white.value,
69
+ hoverBgColor: o.primary.hover
70
+ },
71
+ {
72
+ mainColor: o.white.hover,
73
+ textColor: o.primary.value,
74
+ hoverBgColor: o.primary.outlineHover
75
+ }
76
+ ),
77
+ "text-transform": "uppercase"
78
+ },
79
+ "&.btn-secondary": e(
80
+ {
81
+ bgColor: o.secondary.value,
82
+ textColor: o.white.value,
83
+ hoverBgColor: o.secondary.hover
84
+ },
85
+ {
86
+ mainColor: o.secondary.value,
87
+ textColor: o.secondary.value
88
+ }
89
+ ),
90
+ "&.btn-ternary": {
91
+ ...e({
92
+ bgColor: o.white.value,
93
+ textColor: o.secondary.value,
94
+ hoverBgColor: o.white.value,
95
+ hoverTextColor: o.secondary.hover
96
+ }),
97
+ "--btn-border-color": o.lightgray.value,
98
+ "--btn-border-width": "1px",
99
+ "--btn-border-radius": "24px"
100
+ },
101
+ "&.btn-quaternary": {
102
+ "--btn-px": "0",
103
+ "--btn-py": "0",
104
+ "--btn-text-color": o.secondary.value,
105
+ "--btn-height": "auto",
106
+ "&:hover": {
107
+ "text-decoration": "underline",
108
+ "--btn-text-color": o.secondary.hover
109
+ },
110
+ "&:disabled": {
111
+ "--btn-bg-color": "transparent",
112
+ "--btn-text-color": o.lightgray.value
113
+ }
114
+ },
115
+ "&.btn-single-selection": {
116
+ "--btn-px": "16px",
117
+ "--btn-py": "8px",
118
+ "--btn-border-radius": t("borderRadius.2xs"),
119
+ "--btn-border-color": o.lightgray.value,
120
+ "--btn-border-width": "1px",
121
+ "--btn-font-weight": t("fontWeight.regular"),
122
+ "&:hover": {
123
+ "--btn-border-color": o.secondary.value
124
+ },
125
+ "&:active,&.active,&[data-active='true']": {
126
+ "--btn-bg-color": o.ghost.value,
127
+ "--btn-text-color": o.secondary.value,
128
+ "--btn-border-color": o.secondary.value
129
+ }
130
+ }
131
+ },
132
+ //OLD style. Kept for retro-compatibility
133
+ ".btn-light": e({
134
+ textColor: o.primary.value,
135
+ bgColor: o.white.value,
136
+ hoverTextColor: o.primary.value,
137
+ hoverBgColor: "#FAFAFA"
138
+ }),
139
+ ".btn-warning": e({
140
+ bgColor: o.warning.value,
141
+ textColor: "#2A3761",
142
+ hoverBgColor: "#F2C761"
143
+ }),
144
+ ".btn-danger": e(
145
+ {
146
+ bgColor: o.danger.value,
147
+ textColor: o.white.value,
148
+ hoverBgColor: "#E0485A"
149
+ },
150
+ {
151
+ mainColor: o.danger.value,
152
+ textColor: o.danger.value
153
+ }
154
+ ),
155
+ ".btn-multi-selection": {
156
+ "--btn-py": "10px",
157
+ "--btn-height": "40px",
158
+ "font-weight": t("fontWeight.regular"),
159
+ "--btn-border-radius": t("borderRadius.xs"),
160
+ "--btn-border-color": "#EAEFFD",
161
+ "--btn-border-width": "1px",
162
+ "white-space": "normal",
163
+ ...e({
164
+ textColor: o.black.value,
165
+ bgColor: "#F5F7FA",
166
+ hoverBgColor: o.lavender.value
167
+ })
168
+ },
169
+ ".btn-facile": {
170
+ "--btn-facile-color": "#FF6600",
171
+ "--btn-facile-hover-color": "#b34700",
172
+ ...e({
173
+ bgColor: "var(--btn-facile-color)",
174
+ textColor: o.white.value,
175
+ hoverBgColor: "var(--btn-facile-hover-color)",
176
+ hoverTextColor: o.white.value
177
+ })
178
+ },
179
+ ".btn-show-more": {
180
+ "--btn-border-radius": "0",
181
+ "--btn-border-color": o.white.value,
182
+ ...e({
183
+ textColor: "#2B5DFF",
184
+ bgColor: o.white.value,
185
+ hoverTextColor: "#3646B3",
186
+ hoverBgColor: o.white.value
187
+ })
188
+ },
189
+ ".btn-transparent": {
190
+ "--border-color": "transparent",
191
+ "--btn-px": "0",
192
+ "--btn-py": "0",
193
+ "&:hover": {
194
+ "--btn-bg-color": "transparent",
195
+ "--border-color": "transparent"
196
+ }
197
+ }
198
+ });
199
+ }), e = (r, t) => ({
200
+ "--btn-bg-color": r.bgColor,
201
+ "--btn-text-color": r.textColor,
202
+ "&:disabled": {
203
+ cursor: "not-allowed"
204
+ },
205
+ "&:hover:not(:disabled)": {
206
+ "--btn-text-color": r.hoverTextColor,
207
+ "--btn-bg-color": r.hoverBgColor
208
+ },
209
+ ...t ? {
210
+ "&.btn-outline": l(t)
211
+ } : {}
212
+ }), l = (r) => ({
213
+ "--btn-border-color": r.mainColor ?? r.borderColor,
214
+ "--btn-text-color": r.textColor,
215
+ "--btn-bg-color": "#fff",
216
+ //By default, the active section is the same of the hover section in desktop mode
217
+ "&:active": {
218
+ "--btn-bg-color": (r.mainColor ?? r.activeBgColor ?? r.hoverBgColor) + " !important",
219
+ //By default, on active the text is white
220
+ ...r.activeTextColor || r.hoverTextColor ? {
221
+ "--btn-text-color": r.activeTextColor ?? r.hoverTextColor
222
+ } : {}
223
+ },
224
+ "&:hover": {
225
+ //By default, the text color is white
226
+ ...r.hoverBgColor ? { "--btn-bg-color": r.hoverBgColor } : {},
227
+ "--btn-text-color": r.hoverTextColor ?? r.textColor
228
+ }
229
+ });
230
+ export {
231
+ b as buttonPlugin
232
+ };
@@ -0,0 +1,147 @@
1
+ import o from "./_virtual/plugin.js";
2
+ import { buttonPlugin as i } from "./packages/components/plugins/buttonPlugin.js";
3
+ import n from "./_virtual/defaultTheme.js";
4
+ const p = {
5
+ screens: {
6
+ xs: "360px",
7
+ sm: "640px",
8
+ md: "768px",
9
+ lg: "1024px",
10
+ xl: "1280px"
11
+ },
12
+ fontFamily: {
13
+ sans: ["Poppins", ...n.fontFamily.sans]
14
+ },
15
+ fontWeight: {
16
+ regular: 400,
17
+ medium: 500,
18
+ semibold: 600
19
+ },
20
+ lineHeight: {
21
+ "16px": "16px",
22
+ "20px": "20px",
23
+ "24px": "24px",
24
+ "28px": "28px",
25
+ "30px": "30px"
26
+ },
27
+ fontSize: {
28
+ 12: "12px",
29
+ 14: "14px",
30
+ 16: "16px",
31
+ 20: "20px",
32
+ 22: "22px"
33
+ },
34
+ borderRadius: {
35
+ none: "0",
36
+ "2xs": "4px",
37
+ xs: "8px",
38
+ sm: "12px",
39
+ md: "16px",
40
+ lg: "24px",
41
+ xl: "32px",
42
+ "2xl": "40px",
43
+ full: "9999px"
44
+ },
45
+ aspectRatio: {
46
+ "1/1": "1 / 1",
47
+ "4/3": "4 / 3",
48
+ "16/9": "16 / 9"
49
+ },
50
+ opacity: {
51
+ 0: 0,
52
+ 50: "50%",
53
+ 100: "100%"
54
+ },
55
+ colors: {
56
+ "w-pink": "#F20282",
57
+ "w-blue": "#2b5dff",
58
+ "w-darkblue": "#162F80",
59
+ "w-black": "#222222",
60
+ "w-gray": "#6D7687",
61
+ "w-lightgray": "#C1C8D5",
62
+ "w-cultured": "#F4F7FF",
63
+ "w-ghost": "#FAFBFF",
64
+ "w-white": "#FFFFFF",
65
+ "w-red": "#F20003",
66
+ "w-warning": "#FFD167",
67
+ "w-pink-hover": "#E30C79",
68
+ "w-pink-outline-hover": "#FFF8FB",
69
+ "w-blue-hover": "#244FD9",
70
+ transparent: "transparent",
71
+ white: "#fff"
72
+ },
73
+ spacing: {
74
+ 0: "0",
75
+ "2xs": "4px",
76
+ xs: "8px",
77
+ sm: "12px",
78
+ md: "16px",
79
+ lg: "24px",
80
+ xl: "32px",
81
+ "2xl": "40px"
82
+ },
83
+ boxShadow: {
84
+ surface: "0px 1px 3px rgba(0,0,0,0.1)"
85
+ },
86
+ dropShadow: {},
87
+ extend: {
88
+ aria: {
89
+ invalid: 'invalid="true"'
90
+ }
91
+ }
92
+ }, l = {
93
+ darkMode: ["selector", "[class*='htw-dark']"],
94
+ prefix: "uikit-",
95
+ content: [
96
+ "./src/**/*.{vue,ts}",
97
+ "./lib/**/*.{vue,ts}",
98
+ "./stories/**/*.{story.vue,ts}"
99
+ ],
100
+ theme: p,
101
+ corePlugins: {
102
+ preflight: !1
103
+ },
104
+ plugins: [
105
+ o(function({ addUtilities: t }) {
106
+ t({
107
+ ".no-scrollbar": {
108
+ "-ms-overflow-style": "none",
109
+ scrollbarWidth: "none",
110
+ "&::-webkit-scrollbar": {
111
+ display: "none"
112
+ }
113
+ },
114
+ ".no-scrolling": {
115
+ overflow: "hidden",
116
+ "&::-webkit-scrollbar": {
117
+ backgroundColor: "rgb(180 194 240 / 0.7)"
118
+ }
119
+ },
120
+ ".container-xl": {
121
+ maxWidth: "1280px"
122
+ },
123
+ ".safe-bottom": {
124
+ paddingBottom: "env(safe-area-inset-bottom) !important"
125
+ },
126
+ ".visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within)": {
127
+ border: "0 !important",
128
+ clip: "rect(0, 0, 0, 0) !important",
129
+ height: "1px !important",
130
+ margin: "-1px !important",
131
+ overflow: "hidden !important",
132
+ padding: "0 !important",
133
+ "white-space": "nowrap !important",
134
+ width: "1px !important"
135
+ },
136
+ ".visually-hidden:not(caption), .visually-hidden-focusable:not(:focus):not(:focus-within):not(caption)": {
137
+ position: "absolute !important"
138
+ }
139
+ });
140
+ }),
141
+ i
142
+ ]
143
+ };
144
+ export {
145
+ l as default,
146
+ p as twTheme
147
+ };