@wikicasa-dev/components 2.2.9-alpha.59 → 2.2.9-alpha.60

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,10 +1,10 @@
1
- import { defineComponent as s, mergeModels as p, createPropsRestProxy as f, useModel as c, createBlock as d, openBlock as t, unref as V, mergeProps as u, withCtx as m, renderSlot as y, createElementBlock as B, Fragment as g, renderList as k, createTextVNode as x, toDisplayString as C } from "vue";
1
+ import { defineComponent as s, mergeModels as f, createPropsRestProxy as p, useModel as c, createBlock as d, openBlock as o, unref as y, mergeProps as u, withCtx as m, renderSlot as V, createElementBlock as B, Fragment as C, renderList as g, createTextVNode as k, toDisplayString as x } from "vue";
2
2
  import { RadioGroupRoot as R } from "reka-ui";
3
- import _ from "./RadioButtonItem.vue.js";
3
+ import v from "./RadioButtonItem.vue.js";
4
4
  import '../../../../../../assets/RadioButtonItem.css';/* empty css */
5
- const G = /* @__PURE__ */ s({
5
+ const S = /* @__PURE__ */ s({
6
6
  __name: "RadioButtonGroup",
7
- props: /* @__PURE__ */ p({
7
+ props: /* @__PURE__ */ f({
8
8
  dataCy: {},
9
9
  items: { default: () => [] },
10
10
  modelValue: {},
@@ -23,27 +23,27 @@ const G = /* @__PURE__ */ s({
23
23
  }),
24
24
  emits: ["update:modelValue"],
25
25
  setup(e) {
26
- const n = f(e, ["items"]), l = c(e, "modelValue");
27
- return (i, a) => (t(), d(V(R), u(n, {
28
- modelValue: l.value,
29
- "onUpdate:modelValue": a[0] || (a[0] = (o) => l.value = o)
26
+ const n = p(e, ["dataCy", "items"]), a = c(e, "modelValue");
27
+ return (i, l) => (o(), d(y(R), u({ "data-cy": e.dataCy }, n, {
28
+ modelValue: a.value,
29
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => a.value = t)
30
30
  }), {
31
31
  default: m(() => [
32
- y(i.$slots, "default", {}, () => [
33
- (t(!0), B(g, null, k(e.items, ({ label: o, ...r }) => (t(), d(_, u({ ref_for: !0 }, r, {
32
+ V(i.$slots, "default", {}, () => [
33
+ (o(!0), B(C, null, g(e.items, ({ label: t, ...r }) => (o(), d(v, u({ ref_for: !0 }, r, {
34
34
  key: `radio-item-${r.value}`
35
35
  }), {
36
36
  default: m(() => [
37
- x(C(o), 1)
37
+ k(x(t), 1)
38
38
  ]),
39
39
  _: 2
40
40
  }, 1040))), 128))
41
41
  ])
42
42
  ]),
43
43
  _: 3
44
- }, 16, ["modelValue"]));
44
+ }, 16, ["data-cy", "modelValue"]));
45
45
  }
46
46
  });
47
47
  export {
48
- G as default
48
+ S as default
49
49
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as d, createPropsRestProxy as n, useId as c, computed as k, createElementBlock as s, openBlock as r, createVNode as a, createCommentVNode as m, unref as u, mergeProps as p, withCtx as f, normalizeClass as b, renderSlot as C } from "vue";
2
- import { RadioGroupItem as y, RadioGroupIndicator as h } from "reka-ui";
3
- const x = { class: "uikit-radio-btn uikit-flex uikit-items-center uikit-gap-x-[8px]" }, g = ["for"], _ = /* @__PURE__ */ d({
1
+ import { defineComponent as l, createPropsRestProxy as n, useId as c, computed as k, createElementBlock as a, openBlock as s, createVNode as r, createCommentVNode as m, unref as u, mergeProps as p, withCtx as f, normalizeClass as y, renderSlot as C } from "vue";
2
+ import { RadioGroupItem as b, RadioGroupIndicator as h } from "reka-ui";
3
+ const x = { class: "uikit-radio-btn uikit-flex uikit-items-center uikit-gap-x-[8px]" }, g = ["for"], v = /* @__PURE__ */ l({
4
4
  __name: "RadioButtonItem",
5
5
  props: {
6
6
  itemClasses: {},
@@ -15,24 +15,25 @@ const x = { class: "uikit-radio-btn uikit-flex uikit-items-center uikit-gap-x-[8
15
15
  required: { type: Boolean }
16
16
  },
17
17
  setup(e) {
18
- const i = n(e, ["itemClasses", "labelClasses"]), l = c(), t = k(() => i.id ?? l);
19
- return (o, w) => (r(), s("div", x, [
20
- a(u(y), p(i, {
18
+ const i = n(e, ["itemClasses", "labelClasses", "dataCy"]), d = c(), t = k(() => i.id ?? d);
19
+ return (o, w) => (s(), a("div", x, [
20
+ r(u(b), p(i, {
21
21
  id: t.value,
22
+ "data-cy": e.dataCy,
22
23
  class: [
23
24
  "uikit-radio-group-item uikit-inline-flex uikit-size-[18px] uikit-shrink-0 uikit-cursor-default uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white uikit-p-0 uikit-shadow-sm uikit-outline-none focus:uikit-border-2 focus:uikit-border-w-primary",
24
25
  e.itemClasses
25
26
  ]
26
27
  }), {
27
28
  default: f(() => [
28
- a(u(h), { class: "uikit-radio-group-indicator uikit-size-[12px] uikit-rounded-[50%] uikit-bg-w-primary" })
29
+ r(u(h), { class: "uikit-radio-group-indicator uikit-size-[12px] uikit-rounded-[50%] uikit-bg-w-primary" })
29
30
  ]),
30
31
  _: 1
31
- }, 16, ["id", "class"]),
32
- o.$slots.default ? (r(), s("label", {
32
+ }, 16, ["id", "data-cy", "class"]),
33
+ o.$slots.default ? (s(), a("label", {
33
34
  key: 0,
34
35
  for: t.value,
35
- class: b(e.labelClasses)
36
+ class: y(e.labelClasses)
36
37
  }, [
37
38
  C(o.$slots, "default")
38
39
  ], 10, g)) : m("", !0)
@@ -40,5 +41,5 @@ const x = { class: "uikit-radio-btn uikit-flex uikit-items-center uikit-gap-x-[8
40
41
  }
41
42
  });
42
43
  export {
43
- _ as default
44
+ v as default
44
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.2.9-alpha.59",
3
+ "version": "2.2.9-alpha.60",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",