@wikicasa-dev/components 2.3.1-alpha.7 → 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.
- 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/BaseToggle.d.ts +1 -0
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +16 -14
- package/package.json +1 -1
- /package/dist/assets/{swiper-thumbs.css → swiper-keyboard.css} +0 -0
package/dist/Swiper/autoplay.js
CHANGED
package/dist/Swiper/keyboard.js
CHANGED
package/dist/Swiper/thumbs.js
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import { defineComponent as s, mergeModels as
|
|
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"],
|
|
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__ */
|
|
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(
|
|
14
|
-
const i =
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
32
|
+
innerHTML: e.label
|
|
31
33
|
}, null, 8, w)
|
|
32
34
|
])
|
|
33
35
|
]));
|
|
34
36
|
}
|
|
35
37
|
});
|
|
36
38
|
export {
|
|
37
|
-
|
|
39
|
+
V as default
|
|
38
40
|
};
|
package/package.json
CHANGED
|
File without changes
|