@wikicasa-dev/components 2.3.1-alpha.6 → 2.3.1-alpha.8

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,5 +1,5 @@
1
1
  import { Autoplay as t } from "swiper/modules";
2
- import '../assets/swiper-autoplay.css';/* empty css */
2
+ import '../assets/swiper-keyboard.css';/* empty css */
3
3
  export {
4
4
  t as Autoplay
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Controller as e } from "swiper/modules";
2
- import '../assets/swiper-autoplay.css';/* empty css */
2
+ import '../assets/swiper-keyboard.css';/* empty css */
3
3
  export {
4
4
  e as Controller
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Keyboard as m } from "swiper/modules";
2
- import '../assets/swiper-autoplay.css';/* empty css */
2
+ import '../assets/swiper-keyboard.css';/* empty css */
3
3
  export {
4
4
  m as Keyboard
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Thumbs as p } from "swiper/modules";
2
- import '../assets/swiper-autoplay.css';/* empty css */
2
+ import '../assets/swiper-keyboard.css';/* empty css */
3
3
  export {
4
4
  p as Thumbs
5
5
  };
@@ -1,6 +1,7 @@
1
1
  import { Optional } from '@wikicasa-dev/types';
2
2
  type __VLS_Props = {
3
3
  label?: string;
4
+ dataCy?: string;
4
5
  };
5
6
  type __VLS_PublicProps = {
6
7
  modelValue?: Optional<boolean>;
@@ -1,6 +1,6 @@
1
- import { defineComponent as t, createBlock as a, openBlock as n, unref as i, normalizeProps as c, guardReactiveProps as p, withCtx as s, renderSlot as d } from "vue";
1
+ import { defineComponent as o, createPropsRestProxy as a, createBlock as c, openBlock as n, unref as d, mergeProps as i, withCtx as s, renderSlot as p } from "vue";
2
2
  import { AccordionTrigger as l } from "reka-ui";
3
- const _ = /* @__PURE__ */ t({
3
+ const y = /* @__PURE__ */ o({
4
4
  __name: "AccordionTriggerPrimitive",
5
5
  props: {
6
6
  asChild: { type: Boolean },
@@ -8,15 +8,15 @@ const _ = /* @__PURE__ */ t({
8
8
  dataCy: {}
9
9
  },
10
10
  setup(e) {
11
- const r = e;
12
- return (o, m) => (n(), a(i(l), c(p(r)), {
11
+ const r = a(e, ["dataCy"]);
12
+ return (t, m) => (n(), c(d(l), i(r, { "data-cy": e.dataCy }), {
13
13
  default: s(() => [
14
- d(o.$slots, "default")
14
+ p(t.$slots, "default")
15
15
  ]),
16
16
  _: 3
17
- }, 16));
17
+ }, 16, ["data-cy"]));
18
18
  }
19
19
  });
20
20
  export {
21
- _ as default
21
+ y as default
22
22
  };
@@ -1,38 +1,40 @@
1
- import { defineComponent as s, mergeModels as n, useModel as d, createElementBlock as k, openBlock as c, renderSlot as u, createVNode as a, createCommentVNode as m, unref as o, withCtx as f, createElementVNode as p } from "vue";
1
+ import { defineComponent as s, mergeModels as d, useModel as n, createElementBlock as k, openBlock as c, renderSlot as a, createVNode as u, createCommentVNode as m, unref as o, withCtx as f, createElementVNode as p } from "vue";
2
2
  import { SwitchRoot as b, SwitchThumb as h } from "reka-ui";
3
- const g = { class: "uikit-flex uikit-items-center uikit-gap-[8px]" }, w = ["innerHTML"], y = /* @__PURE__ */ s({
3
+ const g = { class: "uikit-flex uikit-items-center uikit-gap-[8px]" }, w = ["innerHTML"], V = /* @__PURE__ */ s({
4
4
  inheritAttrs: !1,
5
5
  __name: "BaseToggle",
6
- props: /* @__PURE__ */ n({
7
- label: {}
6
+ props: /* @__PURE__ */ d({
7
+ label: {},
8
+ dataCy: {}
8
9
  }, {
9
10
  modelValue: { type: Boolean, default: !1 },
10
11
  modelModifiers: {}
11
12
  }),
12
13
  emits: ["update:modelValue"],
13
- setup(t) {
14
- const i = d(t, "modelValue");
15
- return (e, l) => (c(), k("div", g, [
16
- u(e.$slots, "leftLabel"),
17
- a(o(b), {
14
+ setup(e) {
15
+ const i = n(e, "modelValue");
16
+ return (t, l) => (c(), k("div", g, [
17
+ a(t.$slots, "leftLabel"),
18
+ u(o(b), {
18
19
  modelValue: i.value,
19
20
  "onUpdate:modelValue": l[0] || (l[0] = (r) => i.value = r),
21
+ "data-cy": e.dataCy,
20
22
  class: "uikit-flex uikit-h-[20px] uikit-w-[40px] uikit-cursor-pointer uikit-rounded-full uikit-p-0 uikit-transition-[background] uikit-will-change-[background] focus-visible:uikit-outline-w-primary data-[state=checked]:uikit-bg-w-primary data-[state=unchecked]:uikit-bg-w-cultured"
21
23
  }, {
22
24
  default: f(() => [
23
- a(o(h), { class: "uikit-box-border uikit-flex uikit-size-[20px] uikit-translate-x-0 uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-shadow-xl uikit-transition-transform uikit-will-change-transform data-[state=checked]:uikit-translate-x-full" })
25
+ u(o(h), { class: "uikit-box-border uikit-flex uikit-size-[20px] uikit-translate-x-0 uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-shadow-xl uikit-transition-transform uikit-will-change-transform data-[state=checked]:uikit-translate-x-full" })
24
26
  ]),
25
27
  _: 1
26
- }, 8, ["modelValue"]),
27
- e.$slots.leftLabel ? m("", !0) : u(e.$slots, "rightLabel", { key: 0 }, () => [
28
+ }, 8, ["modelValue", "data-cy"]),
29
+ t.$slots.leftLabel ? m("", !0) : a(t.$slots, "rightLabel", { key: 0 }, () => [
28
30
  p("span", {
29
31
  class: "uikit-ml-[10px]",
30
- innerHTML: t.label
32
+ innerHTML: e.label
31
33
  }, null, 8, w)
32
34
  ])
33
35
  ]));
34
36
  }
35
37
  });
36
38
  export {
37
- y as default
39
+ V as default
38
40
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as p, createBlock as d, openBlock as u, unref as i, mergeProps as m, withCtx as s, renderSlot as f, normalizeProps as c, guardReactiveProps as B } from "vue";
2
- import { CheckboxRoot as y } from "reka-ui";
3
- const g = /* @__PURE__ */ p({
1
+ import { defineComponent as n, createPropsRestProxy as p, createBlock as u, openBlock as i, unref as m, mergeProps as s, withCtx as c, renderSlot as y, normalizeProps as f, guardReactiveProps as C } from "vue";
2
+ import { CheckboxRoot as B } from "reka-ui";
3
+ const V = /* @__PURE__ */ n({
4
4
  __name: "CheckboxGroupItemPrimitive",
5
5
  props: {
6
6
  dataCy: {},
@@ -16,17 +16,18 @@ const g = /* @__PURE__ */ p({
16
16
  },
17
17
  emits: ["update:modelValue"],
18
18
  setup(t, { emit: a }) {
19
- const l = t, r = a;
20
- return (n, o) => (u(), d(i(y), m(l, {
21
- "onUpdate:modelValue": o[0] || (o[0] = (e) => r("update:modelValue", e))
19
+ const r = p(t, ["dataCy"]), l = a;
20
+ return (d, o) => (i(), u(m(B), s(r, {
21
+ "data-cy": t.dataCy,
22
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => l("update:modelValue", e))
22
23
  }), {
23
- default: s((e) => [
24
- f(n.$slots, "default", c(B(e)))
24
+ default: c((e) => [
25
+ y(d.$slots, "default", f(C(e)))
25
26
  ]),
26
27
  _: 3
27
- }, 16));
28
+ }, 16, ["data-cy"]));
28
29
  }
29
30
  });
30
31
  export {
31
- g as default
32
+ V as default
32
33
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as p, createBlock as d, openBlock as u, unref as i, mergeProps as m, withCtx as s, renderSlot as f } from "vue";
2
- import { CheckboxGroupRoot as c } from "reka-ui";
3
- const C = /* @__PURE__ */ p({
1
+ import { defineComponent as n, createPropsRestProxy as p, createBlock as u, openBlock as i, unref as s, mergeProps as m, withCtx as c, renderSlot as y } from "vue";
2
+ import { CheckboxGroupRoot as f } from "reka-ui";
3
+ const x = /* @__PURE__ */ n({
4
4
  __name: "CheckboxGroupPrimitive",
5
5
  props: {
6
6
  dataCy: {},
@@ -17,18 +17,19 @@ const C = /* @__PURE__ */ p({
17
17
  required: { type: Boolean }
18
18
  },
19
19
  emits: ["update:modelValue"],
20
- setup(o, { emit: t }) {
21
- const a = o, l = t;
22
- return (r, e) => (u(), d(i(c), m(a, {
23
- "onUpdate:modelValue": e[0] || (e[0] = (n) => l("update:modelValue", n))
20
+ setup(e, { emit: t }) {
21
+ const a = p(e, ["dataCy"]), r = t;
22
+ return (l, o) => (i(), u(s(f), m(a, {
23
+ "data-cy": e.dataCy,
24
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => r("update:modelValue", d))
24
25
  }), {
25
- default: s(() => [
26
- f(r.$slots, "default")
26
+ default: c(() => [
27
+ y(l.$slots, "default")
27
28
  ]),
28
29
  _: 3
29
- }, 16));
30
+ }, 16, ["data-cy"]));
30
31
  }
31
32
  });
32
33
  export {
33
- C as default
34
+ x as default
34
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.3.1-alpha.6",
3
+ "version": "2.3.1-alpha.8",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",