@wikicasa-dev/components 2.1.4-alpha.22 → 2.1.4-alpha.24

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 (25) hide show
  1. package/dist/UIKit/AccessibleSelect.d.ts +2 -2
  2. package/dist/UIKit/Accordion/BaseAccordion.d.ts +26 -28
  3. package/dist/UIKit/Accordion/BaseAccordionContent.d.ts +4 -4
  4. package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +14 -40
  5. package/dist/UIKit/Accordion/BaseAccordionItem.js +3 -2
  6. package/dist/UIKit/BaseAutocomplete.d.ts +2 -2
  7. package/dist/UIKit/BaseDropDown.js +3 -2
  8. package/dist/UIKit/BaseInput.d.ts +2 -2
  9. package/dist/UIKit/BaseSelect.d.ts +2 -2
  10. package/dist/UIKit/BaseTextarea.d.ts +2 -2
  11. package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +2 -2
  12. package/dist/UIKit/Radio/RadioButton.d.ts +2 -2
  13. package/dist/UIKit/types.d.ts +1 -2
  14. package/dist/assets/packages/components/lib/UIKit/Accordion/BaseAccordionItem.css +1 -0
  15. package/dist/assets/packages/components/lib/UIKit/BaseAutocomplete.css +1 -1
  16. package/dist/assets/packages/components/lib/UIKit/BaseDropDown.css +1 -0
  17. package/dist/assets/packages/components/src/tailwind.css +1 -1
  18. package/dist/index.js +93 -91
  19. package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +4 -6
  20. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +25 -29
  21. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +58 -127
  22. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +32 -31
  23. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +18 -18
  24. package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +4 -3
  25. package/package.json +1 -1
@@ -23,44 +23,44 @@ const R = ["innerHTML"], X = /* @__PURE__ */ O({
23
23
  openModifiers: {}
24
24
  }),
25
25
  emits: /* @__PURE__ */ v(["click", "update:dropdownState", "update:selectedIdx"], ["update:open"]),
26
- setup(o, { emit: P }) {
27
- const M = S(), c = P, i = E(o, "open"), t = w(!1), s = w([]), A = H(() => s.value.length), p = L("dropdown"), { activeIdx: k, selectedIdx: d } = z({
26
+ setup(t, { emit: P }) {
27
+ const M = S(), c = P, i = E(t, "open"), o = w(!1), s = w([]), A = H(() => s.value.length), p = L("dropdown"), { activeIdx: k, selectedIdx: d } = z({
28
28
  optionsLength: A,
29
- isDropdownOpen: t,
30
- activate: o.activateKeyboardController,
31
- disableSpaceHandler: o.disableSpaceHandler
29
+ isDropdownOpen: o,
30
+ activate: t.activateKeyboardController,
31
+ disableSpaceHandler: t.disableSpaceHandler
32
32
  }), f = () => {
33
- t.value = !1, i.value !== void 0 && (i.value = !1);
33
+ o.value = !1, i.value !== void 0 && (i.value = !1);
34
34
  }, u = () => {
35
- i.value === void 0 && (t.value = !t.value);
35
+ i.value === void 0 && (o.value = !o.value);
36
36
  }, m = (e) => {
37
37
  e != null && (k.value = e);
38
38
  }, D = (e) => {
39
39
  e != null && (d.value = e);
40
40
  };
41
41
  return $(() => {
42
- o.closeWhenClickedOutside && document.body.addEventListener("click", f);
42
+ t.closeWhenClickedOutside && document.body.addEventListener("click", f);
43
43
  }), K(() => {
44
44
  p.value && (s.value = p.value.children || []);
45
45
  }), T(() => {
46
- o.closeWhenClickedOutside && document.body.removeEventListener("click", f);
46
+ t.closeWhenClickedOutside && document.body.removeEventListener("click", f);
47
47
  }), b(d, (e) => {
48
48
  e !== -1 && (s.value[e].querySelector("a")?.click(), c("update:selectedIdx", e));
49
49
  }), b(
50
50
  i,
51
51
  (e) => {
52
- e !== void 0 && (t.value = e);
52
+ e !== void 0 && (o.value = e);
53
53
  },
54
54
  { immediate: !0 }
55
55
  ), (e, l) => (a(), y("div", {
56
- class: "uikit-relative uikit-block",
56
+ class: "uikit-base-dropdown uikit-relative uikit-block",
57
57
  onClick: l[1] || (l[1] = h((U) => {
58
58
  c("click"), u();
59
59
  }, ["stop"]))
60
60
  }, [
61
61
  C(e.$slots, "button", {
62
62
  toggleDropdown: u,
63
- isOpen: t.value,
63
+ isOpen: o.value,
64
64
  setActiveIdx: m
65
65
  }, () => [
66
66
  W(V, {
@@ -70,7 +70,7 @@ const R = ["innerHTML"], X = /* @__PURE__ */ O({
70
70
  "uikit-w-full uikit-truncate uikit-gap-2xs",
71
71
  e.btnProps?.classes
72
72
  ]),
73
- "aria-expanded": t.value,
73
+ "aria-expanded": o.value,
74
74
  "btn-class": e.btnProps?.type ?? "single-selection"
75
75
  }, {
76
76
  default: I(() => [
@@ -81,7 +81,7 @@ const R = ["innerHTML"], X = /* @__PURE__ */ O({
81
81
  }, null, 10, R)) : B("", !0),
82
82
  e.withArrowIcon ? (a(), g(r(q), {
83
83
  key: 1,
84
- class: n(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", [t.value ? "uikit-rotate-180" : "", e.arrowProps?.classes]]),
84
+ class: n(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", [o.value ? "uikit-rotate-180" : "", e.arrowProps?.classes]]),
85
85
  width: e.arrowProps?.width ?? 12,
86
86
  height: e.arrowProps?.height ?? 12,
87
87
  "stroke-color": e.arrowProps?.strokeColor ?? "#222"
@@ -94,19 +94,19 @@ const R = ["innerHTML"], X = /* @__PURE__ */ O({
94
94
  id: "dropdown_" + r(M),
95
95
  ref: "dropdown",
96
96
  "data-cy": e.dataCy && `${e.dataCy}_dropdown`,
97
- class: n(["uikit-border-w-lightgray uikit-m-0 uikit-mt-xs uikit-rounded-2xs uikit-max-h-[112px] uikit-w-full uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-no-scrollbar", [
97
+ class: n(["dropdown-content uikit-border-w-lightgray uikit-m-0 uikit-mt-xs uikit-rounded-2xs uikit-w-full uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-no-scrollbar", [
98
98
  e.dropdownClasses,
99
- t.value ? "uikit-flex" : "uikit-hidden",
99
+ o.value ? "uikit-flex" : "uikit-hidden",
100
100
  { "uikit-bottom-[55px]": e.direction === "up" },
101
101
  { "uikit-absolute": e.isAbsolute }
102
102
  ]]),
103
- "aria-hidden": !t.value,
103
+ "aria-hidden": !o.value,
104
104
  onClick: l[0] || (l[0] = h(() => {
105
105
  }, ["stop"]))
106
106
  }, {
107
107
  default: I(() => [
108
108
  C(e.$slots, "default", {
109
- isOpen: t.value,
109
+ isOpen: o.value,
110
110
  toggleDropdown: u,
111
111
  activeIdx: r(k),
112
112
  selectedIdx: r(d),
@@ -1,10 +1,11 @@
1
1
  import { defineComponent as E, mergeModels as C, useModel as O, ref as k, watch as y, createElementBlock as w, openBlock as s, 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
- import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
4
+ import '../../../../assets/packages/components/lib/UIKit/BaseDropDown.css';import '../../../../assets/packages/components/lib/UIKit/BaseInput.css';/* empty css */
5
5
  import I from "./BaseDropDown.vue.js";
6
+ /* empty css */
6
7
  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
+ 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" }, W = /* @__PURE__ */ E({
8
9
  __name: "InputDropdown",
9
10
  props: /* @__PURE__ */ C({
10
11
  leftSelectOptions: { default: () => [] },
@@ -148,5 +149,5 @@ const j = { class: "uikit-shadow-surface uikit-flex uikit-h-[360px] uikit-w-[330
148
149
  }
149
150
  });
150
151
  export {
151
- Q as default
152
+ W as default
152
153
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.1.4-alpha.22",
3
+ "version": "2.1.4-alpha.24",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",