@code-coaching/vuetiful 0.14.1 → 0.14.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.
package/dist/vuetiful.es.mjs
CHANGED
|
@@ -769,19 +769,23 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
769
769
|
});
|
|
770
770
|
return (_ctx, _cache) => {
|
|
771
771
|
return openBlock(), createBlock(unref(ue), {
|
|
772
|
-
class: normalizeClass(`slide-toggle
|
|
772
|
+
class: normalizeClass(`slide-toggle rounded-container-token ${__props.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`),
|
|
773
773
|
name: __props.name,
|
|
774
774
|
as: __props.as,
|
|
775
775
|
modelValue: parentModelValue.value,
|
|
776
776
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => parentModelValue.value = $event)
|
|
777
777
|
}, {
|
|
778
778
|
default: withCtx(({ checked }) => [
|
|
779
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$6, [
|
|
780
|
-
renderSlot(_ctx.$slots, "default")
|
|
781
|
-
])) : createCommentVNode("", true),
|
|
782
779
|
createElementVNode("div", {
|
|
783
|
-
class: normalizeClass(`slide-toggle-
|
|
784
|
-
},
|
|
780
|
+
class: normalizeClass(`slide-toggle-track flex transition-all duration-[150ms] border-token rounded-token ${unref(trackSize)} ${__props.disabled ? "cursor-not-allowed" : "cursor-pointer"} ${__props.switchClass}`)
|
|
781
|
+
}, [
|
|
782
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$6, [
|
|
783
|
+
renderSlot(_ctx.$slots, "default")
|
|
784
|
+
])) : createCommentVNode("", true),
|
|
785
|
+
createElementVNode("div", {
|
|
786
|
+
class: normalizeClass(`slide-toggle-thumb h-full w-[50%] scale-[0.8] shadow transition-all duration-[150ms] rounded-token ${checked ? "translate-x-full" : "opacity-90"} ${__props.disabled ? "cursor-not-allowed" : "cursor-pointer"} ${__props.thumbClass} bg-opacity-90`)
|
|
787
|
+
}, null, 2)
|
|
788
|
+
], 2)
|
|
785
789
|
]),
|
|
786
790
|
_: 3
|
|
787
791
|
}, 8, ["class", "name", "as", "modelValue"]);
|