@wikicasa-dev/components 2.5.1-alpha.0 → 2.5.1-alpha.2

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.
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-thumbs.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Autoplay as p } from "swiper/modules";
3
3
  export {
4
4
  p as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-thumbs.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Controller as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-thumbs.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Keyboard as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-thumbs.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Thumbs as t } from "swiper/modules";
3
3
  export {
4
4
  t as default
@@ -1,6 +1,6 @@
1
1
  import { Optional } from '@wikicasa-dev/types';
2
2
  import { AccordionRootProps } from 'reka-ui';
3
- export interface BaseAccordionProps<T extends AccordionRootProps["type"]> extends AccordionRootProps {
3
+ export interface BaseAccordionProps<T extends AccordionRootProps["type"]> extends Omit<AccordionRootProps, "modelValue" | "defaultValue"> {
4
4
  /**
5
5
  * When type is "single", allows closing content when clicking trigger for an open item. When type is "multiple", this prop has no effect.
6
6
  */
@@ -31,7 +31,7 @@ declare const _default: <TID extends string | number | undefined, TPayload>(__VL
31
31
  readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
32
32
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
33
33
  readonly onInputClick?: ((args_0: MouseEvent) => any) | undefined;
34
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onInput" | "onKeydown" | "onClick" | "onUpdate:open" | "onUpdate:inputValue" | "onInputClick"> & ({
34
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onInput" | "onKeydown" | "onUpdate:open" | "onUpdate:inputValue" | "onInputClick"> & ({
35
35
  open?: boolean;
36
36
  modelValue?: Nullable<AccessibleSelectOptions<TPayload, TID>>;
37
37
  inputValue?: string;
@@ -10,7 +10,7 @@ declare const _default: <TID extends string | number | undefined, TPayload>(__VL
10
10
  readonly "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
11
11
  readonly onKeydownEnterPressed?: (() => any) | undefined;
12
12
  readonly onChangedValue?: ((args_0: string) => any) | undefined;
13
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onKeydown" | "onClick" | "onUpdate:dropdownState" | "onKeydownEnterPressed" | "onChangedValue"> & ({
13
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onKeydown" | "onUpdate:dropdownState" | "onKeydownEnterPressed" | "onChangedValue"> & ({
14
14
  modelValue?: AccessibleSelectOptions<TPayload, TID> | undefined;
15
15
  } & {
16
16
  isValid?: Nullable<boolean>;
@@ -13,7 +13,7 @@ declare const _default: <TID extends string | number, TLabel extends string | nu
13
13
  label: TLabel;
14
14
  checked: boolean;
15
15
  }) => any) | undefined;
16
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onChange" | "onClick"> & ({
16
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onChange"> & ({
17
17
  modelValue?: boolean;
18
18
  } & {
19
19
  id?: TID;
@@ -1,7 +1,7 @@
1
1
  import o from "../../packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js";
2
2
  import '../../assets/BaseShimmerLoader.css';/* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-eb2d6076"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-83429b3e"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1 +1 @@
1
- .uikit-base-accordion-trigger[data-state=open]>.uikit-base-accordion-item-arrow{transform:rotate(180deg)}.uikit-base-accordion-item-content{overflow:hidden;will-change:animation,height}.uikit-base-accordion-item-content[data-state=open]{animation:slideDown .2s ease-out}.uikit-base-accordion-item-content[data-state=closed]{animation:slideUp .2s ease-out}@keyframes slideDown{0%{height:0}to{height:var(--reka-accordion-content-height)}}@keyframes slideUp{0%{height:var(--reka-accordion-content-height)}to{height:0}}
1
+ .uikit-base-accordion-trigger[data-state=open]>.uikit-base-accordion-item-arrow{transform:rotate(180deg)}.uikit-base-accordion-item-content{overflow:hidden;will-change:animation,height}.uikit-base-accordion-item-content[data-state=open][data-interacted]{animation:slideDown .2s ease-out}.uikit-base-accordion-item-content[data-state=closed][data-interacted]{animation:slideUp .2s ease-out}@keyframes slideDown{0%{height:0}to{height:var(--reka-accordion-content-height)}}@keyframes slideUp{0%{height:var(--reka-accordion-content-height)}to{height:0}}
@@ -1 +1 @@
1
- .shimmer[data-v-eb2d6076]{animation:shimmer-eb2d6076 1.4s infinite;background-image:linear-gradient(90deg,#fff0,#fff3 20%,#ffffff80 60%,#fff0)}@keyframes shimmer-eb2d6076{to{transform:translate(100%)}}
1
+ .shimmer[data-v-83429b3e]{animation:shimmer-83429b3e 1.4s infinite;background-image:linear-gradient(90deg,#fff0,#fff3 20%,#ffffff80 60%,#fff0)}@keyframes shimmer-83429b3e{to{transform:translate(100%)}}
@@ -1,6 +1,6 @@
1
- import { defineComponent as d, mergeModels as n, useModel as u, createBlock as i, openBlock as r, unref as m, withCtx as p, renderSlot as s, normalizeProps as c, guardReactiveProps as f } from "vue";
2
- import { AccordionRoot as y } from "reka-ui";
3
- const b = /* @__PURE__ */ d({
1
+ import { defineComponent as d, mergeModels as n, createPropsRestProxy as s, useModel as p, createBlock as i, openBlock as m, unref as u, mergeProps as c, withCtx as y, renderSlot as f, normalizeProps as B, guardReactiveProps as b } from "vue";
2
+ import { AccordionRoot as V } from "reka-ui";
3
+ const v = /* @__PURE__ */ d({
4
4
  __name: "BaseAccordion",
5
5
  props: /* @__PURE__ */ n({
6
6
  collapsible: { type: Boolean },
@@ -10,29 +10,28 @@ const b = /* @__PURE__ */ d({
10
10
  orientation: {},
11
11
  unmountOnHide: { type: Boolean },
12
12
  asChild: { type: Boolean },
13
- as: {},
14
- modelValue: {},
15
- defaultValue: {}
13
+ as: {}
16
14
  }, {
17
15
  modelValue: {},
18
16
  modelModifiers: {}
19
17
  }),
20
18
  emits: ["update:modelValue"],
21
19
  setup(e) {
22
- const l = u(e, "modelValue");
23
- return (t, a) => (r(), i(m(y), {
20
+ const a = s(e, ["collapsible", "type"]), l = p(e, "modelValue");
21
+ return (r, t) => (m(), i(u(V), c({
24
22
  collapsible: e.collapsible,
25
- type: e.type,
23
+ type: e.type
24
+ }, a, {
26
25
  modelValue: l.value,
27
- "onUpdate:modelValue": a[0] || (a[0] = (o) => l.value = o)
28
- }, {
29
- default: p((o) => [
30
- s(t.$slots, "default", c(f(o)))
26
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o)
27
+ }), {
28
+ default: y((o) => [
29
+ f(r.$slots, "default", B(b(o)))
31
30
  ]),
32
31
  _: 3
33
- }, 8, ["collapsible", "type", "modelValue"]));
32
+ }, 16, ["collapsible", "type", "modelValue"]));
34
33
  }
35
34
  });
36
35
  export {
37
- b as default
36
+ v as default
38
37
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as o, createBlock as l, openBlock as n, withCtx as i, createVNode as a, normalizeClass as s, renderSlot as r, createTextVNode as u, toDisplayString as c, unref as d } from "vue";
2
- import f from "./AccordionContentPrimitive.vue.js";
3
- import m from "./AccordionTriggerPrimitive.vue.js";
4
- import k from "./AccordionHeaderPrimitive.vue.js";
5
- import h from "./AccordionItemPrimitive.vue.js";
6
- import { ArrowIcon as w } from "@wikicasa-dev/svg-icons";
7
- const B = /* @__PURE__ */ o({
1
+ import { defineComponent as n, shallowRef as u, createBlock as c, openBlock as d, withCtx as i, createVNode as a, normalizeClass as s, renderSlot as o, createTextVNode as f, toDisplayString as m, unref as k } from "vue";
2
+ import h from "./AccordionContentPrimitive.vue.js";
3
+ import w from "./AccordionTriggerPrimitive.vue.js";
4
+ import g from "./AccordionHeaderPrimitive.vue.js";
5
+ import C from "./AccordionItemPrimitive.vue.js";
6
+ import { ArrowIcon as $ } from "@wikicasa-dev/svg-icons";
7
+ const T = /* @__PURE__ */ n({
8
8
  __name: "BaseAccordionItem",
9
9
  props: {
10
10
  title: {},
@@ -19,9 +19,10 @@ const B = /* @__PURE__ */ o({
19
19
  headerTag: { default: "h3" }
20
20
  },
21
21
  setup(t) {
22
- return (e, g) => (n(), l(h, { value: t.value }, {
22
+ const r = u();
23
+ return (e, l) => (d(), c(C, { value: t.value }, {
23
24
  default: i(() => [
24
- a(k, {
25
+ a(g, {
25
26
  as: t.headerTag,
26
27
  class: s([
27
28
  t.headerClasses,
@@ -29,8 +30,8 @@ const B = /* @__PURE__ */ o({
29
30
  ])
30
31
  }, {
31
32
  default: i(() => [
32
- r(e.$slots, "header-content"),
33
- a(m, {
33
+ o(e.$slots, "header-content"),
34
+ a(w, {
34
35
  "data-cy": t.dataCy,
35
36
  class: s([
36
37
  t.triggerClasses,
@@ -38,12 +39,15 @@ const B = /* @__PURE__ */ o({
38
39
  "uikit-base-accordion-trigger uikit-inline-flex uikit-cursor-pointer uikit-items-center uikit-justify-between uikit-border-0 uikit-bg-transparent uikit-px-[16px] uikit-py-[16px] uikit-text-left uikit-font-semibold": !e.$slots.trigger,
39
40
  "uikit-w-full": !e.$slots["header-content"]
40
41
  }
41
- ])
42
+ ]),
43
+ onClick: l[0] || (l[0] = () => {
44
+ r.value || (r.value = !0);
45
+ })
42
46
  }, {
43
47
  default: i(() => [
44
- r(e.$slots, "trigger", {}, () => [
45
- u(c(t.title) + " ", 1),
46
- a(d(w), {
48
+ o(e.$slots, "trigger", {}, () => [
49
+ f(m(t.title) + " ", 1),
50
+ a(k($), {
47
51
  class: s(["uikit-base-accordion-item-arrow uikit-flex-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.arrowClasses]),
48
52
  "arrow-classes": t.arrowClasses,
49
53
  width: t.arrowWidth,
@@ -56,22 +60,23 @@ const B = /* @__PURE__ */ o({
56
60
  ]),
57
61
  _: 3
58
62
  }, 8, ["as", "class"]),
59
- a(f, {
63
+ a(h, {
60
64
  class: s([
61
65
  t.contentClasses,
62
66
  "uikit-base-accordion-item-content uikit-px-[16px]"
63
- ])
67
+ ]),
68
+ "data-interacted": r.value || void 0
64
69
  }, {
65
70
  default: i(() => [
66
- r(e.$slots, "default")
71
+ o(e.$slots, "default")
67
72
  ]),
68
73
  _: 3
69
- }, 8, ["class"])
74
+ }, 8, ["class", "data-interacted"])
70
75
  ]),
71
76
  _: 3
72
77
  }, 8, ["value"]));
73
78
  }
74
79
  });
75
80
  export {
76
- B as default
81
+ T as default
77
82
  };
@@ -1,21 +1,22 @@
1
- import { defineComponent as s, createElementBlock as l, openBlock as r, normalizeClass as t, createElementVNode as a, renderSlot as o } from "vue";
2
- const m = /* @__PURE__ */ s({
1
+ import { defineComponent as l, createElementBlock as s, openBlock as r, normalizeStyle as a, normalizeClass as t, createElementVNode as o, renderSlot as u } from "vue";
2
+ const d = /* @__PURE__ */ l({
3
3
  inheritAttrs: !1,
4
4
  __name: "BaseShimmerLoader",
5
5
  props: {
6
6
  shimmerClasses: { default: "" }
7
7
  },
8
8
  setup(i) {
9
- return (e, u) => (r(), l("div", {
10
- class: t(["uikit-relative uikit-overflow-hidden uikit-bg-w-lavender", e.$attrs.class])
9
+ return (e, n) => (r(), s("div", {
10
+ class: t(["uikit-relative uikit-overflow-hidden uikit-bg-w-lavender", e.$attrs.class]),
11
+ style: a(e.$attrs.style)
11
12
  }, [
12
- a("div", {
13
+ o("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", i.shimmerClasses])
14
15
  }, null, 2),
15
- o(e.$slots, "default", {}, void 0, !0)
16
- ], 2));
16
+ u(e.$slots, "default", {}, void 0, !0)
17
+ ], 6));
17
18
  }
18
19
  });
19
20
  export {
20
- m as default
21
+ d as default
21
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.5.1-alpha.0",
3
+ "version": "2.5.1-alpha.2",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",