@wikicasa-dev/components 2.3.1-alpha.5 → 2.3.1-alpha.7

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 (40) hide show
  1. package/dist/Swiper/autoplay.js +1 -1
  2. package/dist/Swiper/controller.js +1 -1
  3. package/dist/Swiper/keyboard.js +1 -1
  4. package/dist/Swiper/thumbs.js +1 -1
  5. package/dist/UIKit/Accordion/AccordionContentPrimitive.d.ts +19 -0
  6. package/dist/UIKit/Accordion/AccordionContentPrimitive.js +4 -0
  7. package/dist/UIKit/Accordion/AccordionHeaderPrimitive.d.ts +11 -0
  8. package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +4 -0
  9. package/dist/UIKit/Accordion/AccordionItemPrimitive.d.ts +13 -0
  10. package/dist/UIKit/Accordion/AccordionItemPrimitive.js +4 -0
  11. package/dist/UIKit/Accordion/AccordionTriggerPrimitive.d.ts +13 -0
  12. package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +4 -0
  13. package/dist/UIKit/Accordion/BaseAccordion.d.ts +15 -18
  14. package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +12 -21
  15. package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +1 -1
  16. package/dist/UIKit/BaseAutocomplete.d.ts +1 -1
  17. package/dist/UIKit/BaseButton.d.ts +2 -2
  18. package/dist/UIKit/BaseDropDown.d.ts +1 -1
  19. package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +1 -1
  20. package/dist/assets/BaseAccordionItem.css +1 -1
  21. package/dist/assets/tailwind.css +1 -1
  22. package/dist/index.d.ts +4 -2
  23. package/dist/index.js +96 -92
  24. package/dist/packages/components/lib/UIKit/Accordion/AccordionContentPrimitive.vue.js +22 -0
  25. package/dist/packages/components/lib/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +21 -0
  26. package/dist/packages/components/lib/UIKit/Accordion/AccordionItemPrimitive.vue.js +24 -0
  27. package/dist/packages/components/lib/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +22 -0
  28. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +22 -14
  29. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +36 -36
  30. package/dist/packages/components/lib/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +11 -10
  31. package/dist/packages/components/lib/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +12 -11
  32. package/dist/types/index.d.ts +6 -1
  33. package/package.json +1 -1
  34. package/dist/UIKit/Accordion/BaseAccordionBtn.d.ts +0 -34
  35. package/dist/UIKit/Accordion/BaseAccordionBtn.js +0 -4
  36. package/dist/UIKit/Accordion/BaseAccordionContent.d.ts +0 -30
  37. package/dist/UIKit/Accordion/BaseAccordionContent.js +0 -4
  38. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +0 -59
  39. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js +0 -34
  40. /package/dist/assets/{swiper-keyboard.css → swiper-thumbs.css} +0 -0
@@ -1,4 +0,0 @@
1
- import f from "../../packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,59 +0,0 @@
1
- import { defineComponent as l, createElementBlock as s, openBlock as d, normalizeClass as n, renderSlot as i, createElementVNode as u, withModifiers as k, createVNode as m, unref as f } from "vue";
2
- import { ArrowIcon as g } from "@wikicasa-dev/svg-icons";
3
- const C = ["id"], w = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ l({
4
- inheritAttrs: !1,
5
- __name: "BaseAccordionBtn",
6
- props: {
7
- id: {},
8
- arrowWidth: { default: 12 },
9
- arrowColor: {},
10
- onContainerClickExpand: { type: Boolean, default: !1 },
11
- accordionOpen: { type: Boolean, default: !1 },
12
- toggleAccordion: { type: Function }
13
- },
14
- emits: ["click"],
15
- setup(t, { emit: r }) {
16
- const a = r;
17
- return (o, e) => (d(), s("div", {
18
- id: `${t.id}`,
19
- class: n(["uikit-flex uikit-items-center uikit-justify-around", [
20
- o.$attrs["btn-wrapper-classes"],
21
- t.onContainerClickExpand ? "uikit-cursor-pointer" : ""
22
- ]]),
23
- onClick: e[1] || (e[1] = (c) => t.onContainerClickExpand && t.toggleAccordion())
24
- }, [
25
- i(o.$slots, "custom-content"),
26
- i(o.$slots, "custom_btn", {
27
- btnId: `btn-${t.id}`,
28
- isOpen: t.accordionOpen,
29
- toggleAccordion: t.toggleAccordion
30
- }, () => [
31
- u("button", {
32
- type: "button",
33
- class: n(["uikit-border-0 uikit-bg-transparent", o.$attrs["btn-classes"]]),
34
- "aria-expanded": t.accordionOpen,
35
- "aria-controls": `accordion-text-${t.id}`,
36
- onClick: e[0] || (e[0] = k((c) => {
37
- t.toggleAccordion(), a("click");
38
- }, ["prevent", "stop"]))
39
- }, [
40
- m(f(g), {
41
- class: n([
42
- "uikit-transition-transform motion-reduce:uikit-transition-none",
43
- [
44
- t.accordionOpen ? "uikit-rotate-180" : "",
45
- o.$attrs["arrow-classes"]
46
- ]
47
- ]),
48
- "stroke-color": t.arrowColor ?? "#222",
49
- width: t.arrowWidth,
50
- height: t.arrowWidth
51
- }, null, 8, ["stroke-color", "class", "width", "height"])
52
- ], 10, w)
53
- ])
54
- ], 10, C));
55
- }
56
- });
57
- export {
58
- b as default
59
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, createElementBlock as a, openBlock as c, normalizeClass as o, renderSlot as t, createElementVNode as d } from "vue";
2
- const s = ["id", "aria-labelledby"], u = /* @__PURE__ */ n({
3
- __name: "BaseAccordionContent",
4
- props: {
5
- id: {},
6
- accordionOpen: { type: Boolean },
7
- accordionOpenClasses: {},
8
- accordionClosedClasses: {},
9
- accordionContentClasses: {}
10
- },
11
- setup(i) {
12
- return (e, r) => (c(), a("div", {
13
- id: `accordion-text-${i.id}`,
14
- role: "region",
15
- "aria-labelledby": `accordion-title-${i.id}`,
16
- class: o(["uikit-grid uikit-overflow-hidden uikit-px-5 uikit-text-sm uikit-text-w-black uikit-transition-[grid-template-rows,opacity,padding,margin] uikit-duration-300 uikit-ease-in-out", [
17
- i.accordionOpen ? i.accordionOpenClasses : i.accordionClosedClasses,
18
- i.accordionOpen ? "uikit-grid-rows-[1fr] uikit-opacity-100" : "uikit-grid-rows-[0fr] uikit-opacity-0",
19
- e.$attrs["accordion-classes"]
20
- ]])
21
- }, [
22
- t(e.$slots, "custom-accordion-content", { isOpen: i.accordionOpen }, () => [
23
- d("div", {
24
- class: o(["uikit-overflow-hidden", i.accordionContentClasses])
25
- }, [
26
- t(e.$slots, "default", { isOpen: i.accordionOpen })
27
- ], 2)
28
- ])
29
- ], 10, s));
30
- }
31
- });
32
- export {
33
- u as default
34
- };