@wikicasa-dev/components 2.2.9-alpha.56 → 2.2.9-alpha.59
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.
- package/dist/Swiper/autoplay.js +1 -1
- package/dist/Swiper/controller.js +1 -1
- package/dist/Swiper/keyboard.js +1 -1
- package/dist/Swiper/thumbs.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +4 -1
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +1 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +29 -24
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonItem.vue.js +6 -5
- package/package.json +1 -1
- /package/dist/assets/{swiper-autoplay.css → swiper-keyboard.css} +0 -0
package/dist/Swiper/autoplay.js
CHANGED
package/dist/Swiper/keyboard.js
CHANGED
package/dist/Swiper/thumbs.js
CHANGED
|
@@ -21,7 +21,10 @@ declare const _default: <TID extends string | number, TLabel extends string | nu
|
|
|
21
21
|
label?: TLabel;
|
|
22
22
|
modelValue?: boolean;
|
|
23
23
|
} & Partial<{}>> & import('vue').PublicProps;
|
|
24
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
24
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
25
|
+
getRootElement: () => HTMLLabelElement | null;
|
|
26
|
+
getCheckboxElement: () => any;
|
|
27
|
+
}>): void;
|
|
25
28
|
attrs: any;
|
|
26
29
|
slots: {
|
|
27
30
|
label?(_: {}): any;
|
|
@@ -3,6 +3,7 @@ import { ClassTypeProp } from '../../types';
|
|
|
3
3
|
export interface RadioButtonItemProps extends RadioGroupItemProps {
|
|
4
4
|
itemClasses?: ClassTypeProp;
|
|
5
5
|
labelClasses?: ClassTypeProp;
|
|
6
|
+
dataCy?: string;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioButtonItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RadioButtonItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
8
9
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { CheckIcon as
|
|
3
|
-
import { CheckboxRoot as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as b, useId as x, useTemplateRef as o, watch as C, createElementBlock as y, openBlock as d, createVNode as c, renderSlot as g, unref as a, normalizeClass as V, withCtx as u, createBlock as p, createCommentVNode as B, createTextVNode as R, toDisplayString as w } from "vue";
|
|
2
|
+
import { CheckIcon as v } from "@wikicasa-dev/svg-icons";
|
|
3
|
+
import { CheckboxRoot as E, CheckboxIndicator as I } from "reka-ui";
|
|
4
|
+
const T = /* @__PURE__ */ b({
|
|
5
5
|
__name: "CheckboxBtn",
|
|
6
6
|
props: {
|
|
7
7
|
id: {},
|
|
@@ -15,59 +15,64 @@ const z = /* @__PURE__ */ s({
|
|
|
15
15
|
modelValue: { type: Boolean, default: !1 }
|
|
16
16
|
},
|
|
17
17
|
emits: ["click", "update:modelValue", "change"],
|
|
18
|
-
setup(e, { emit:
|
|
19
|
-
const
|
|
20
|
-
|
|
18
|
+
setup(e, { expose: n, emit: r }) {
|
|
19
|
+
const k = x(), s = o("root"), m = o("checkboxRoot"), l = r;
|
|
20
|
+
C(
|
|
21
21
|
() => e.checked,
|
|
22
22
|
(t) => {
|
|
23
|
-
t !== void 0 &&
|
|
23
|
+
t !== void 0 && l("update:modelValue", t);
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
|
-
const
|
|
27
|
-
t !== "indeterminate" && (
|
|
28
|
-
id: e.id ??
|
|
26
|
+
const f = (t) => {
|
|
27
|
+
t !== "indeterminate" && (l("change", {
|
|
28
|
+
id: e.id ?? k,
|
|
29
29
|
label: e.label,
|
|
30
30
|
checked: t
|
|
31
|
-
}),
|
|
31
|
+
}), l("update:modelValue", t));
|
|
32
32
|
};
|
|
33
|
-
return (
|
|
33
|
+
return n({
|
|
34
|
+
getRootElement: () => s.value,
|
|
35
|
+
getCheckboxElement: () => m.value?.$el
|
|
36
|
+
}), (t, i) => (d(), y("label", {
|
|
37
|
+
ref: "root",
|
|
34
38
|
class: "uikit-checkbox-btn uikit-flex uikit-items-center uikit-gap-[12px]",
|
|
35
|
-
onClick:
|
|
39
|
+
onClick: i[0] || (i[0] = (h) => l("click", h))
|
|
36
40
|
}, [
|
|
37
|
-
|
|
41
|
+
c(a(E), {
|
|
42
|
+
ref: "checkboxRoot",
|
|
38
43
|
"model-value": e.modelValue,
|
|
39
44
|
"data-cy": e.dataCy,
|
|
40
45
|
disabled: e.disabled,
|
|
41
|
-
class:
|
|
46
|
+
class: V(["uikit-inline-flex uikit-size-[20px] uikit-shrink-0 uikit-items-center uikit-justify-center uikit-rounded-[4px] uikit-p-0 data-[state='unchecked']:uikit-border data-[state='unchecked']:uikit-border-solid data-[state='unchecked']:uikit-border-w-lightgray", [
|
|
42
47
|
{
|
|
43
48
|
"uikit-bg-white": !e.modelValue,
|
|
44
49
|
"uikit-bg-w-primary": e.modelValue
|
|
45
50
|
},
|
|
46
51
|
e.inputClass
|
|
47
52
|
]]),
|
|
48
|
-
"onUpdate:modelValue":
|
|
53
|
+
"onUpdate:modelValue": f
|
|
49
54
|
}, {
|
|
50
55
|
default: u(() => [
|
|
51
|
-
|
|
56
|
+
c(a(I), { class: "uikit-flex" }, {
|
|
52
57
|
default: u(() => [
|
|
53
|
-
e.modelValue === !0 ? (d(),
|
|
58
|
+
e.modelValue === !0 ? (d(), p(a(v), {
|
|
54
59
|
key: 0,
|
|
55
60
|
"fill-color": "#fff",
|
|
56
61
|
width: 12,
|
|
57
62
|
height: 14
|
|
58
|
-
})) :
|
|
63
|
+
})) : B("", !0)
|
|
59
64
|
]),
|
|
60
65
|
_: 1
|
|
61
66
|
})
|
|
62
67
|
]),
|
|
63
68
|
_: 1
|
|
64
69
|
}, 8, ["model-value", "data-cy", "disabled", "class"]),
|
|
65
|
-
|
|
66
|
-
|
|
70
|
+
g(t.$slots, "label", {}, () => [
|
|
71
|
+
R(w(e.label), 1)
|
|
67
72
|
])
|
|
68
|
-
]));
|
|
73
|
+
], 512));
|
|
69
74
|
}
|
|
70
75
|
});
|
|
71
76
|
export {
|
|
72
|
-
|
|
77
|
+
T as default
|
|
73
78
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
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
|
|
3
|
-
const
|
|
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({
|
|
4
4
|
__name: "RadioButtonItem",
|
|
5
5
|
props: {
|
|
6
6
|
itemClasses: {},
|
|
7
7
|
labelClasses: {},
|
|
8
|
+
dataCy: {},
|
|
8
9
|
id: {},
|
|
9
10
|
value: {},
|
|
10
11
|
disabled: { type: Boolean },
|
|
@@ -15,16 +16,16 @@ const h = { class: "uikit-radio-btn uikit-flex uikit-items-center uikit-gap-x-[8
|
|
|
15
16
|
},
|
|
16
17
|
setup(e) {
|
|
17
18
|
const i = n(e, ["itemClasses", "labelClasses"]), l = c(), t = k(() => i.id ?? l);
|
|
18
|
-
return (o, w) => (r(), s("div",
|
|
19
|
+
return (o, w) => (r(), s("div", x, [
|
|
19
20
|
a(u(y), p(i, {
|
|
20
21
|
id: t.value,
|
|
21
22
|
class: [
|
|
22
|
-
"uikit-radio-group-item uikit-inline-flex uikit-size-[18px] 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",
|
|
23
|
+
"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",
|
|
23
24
|
e.itemClasses
|
|
24
25
|
]
|
|
25
26
|
}), {
|
|
26
27
|
default: f(() => [
|
|
27
|
-
a(u(
|
|
28
|
+
a(u(h), { class: "uikit-radio-group-indicator uikit-size-[12px] uikit-rounded-[50%] uikit-bg-w-primary" })
|
|
28
29
|
]),
|
|
29
30
|
_: 1
|
|
30
31
|
}, 16, ["id", "class"]),
|
package/package.json
CHANGED
|
File without changes
|