@@ -35,62 +35,32 @@ const id = useId()
3535 : 'grid-template-areas: \'label-text . toggle\''
3636 "
3737 >
38- <template v-if =" props .reverseOrder " >
39- <input
40- role =" switch"
41- type =" checkbox"
42- :id =" id"
43- v-model =" checked"
44- class =" toggle appearance-none h-6 w-11 rounded-full border border-fg relative shrink-0 bg-fg/50 transition-colors duration-200 ease-in-out checked:bg-fg [@media(hover:hover)]:hover:bg-fg/60 [@media(hover:hover)]:checked:hover:(bg-fg/80 after:opacity-50) focus-visible:(outline-2 outline-accent outline-offset-2) before:(content-[''] absolute h-5 w-5 top-px start-px rounded-full bg-bg transition-transform duration-200 ease-in-out) checked:before:translate-x-[20px] rtl:checked:before:-translate-x-[20px] after:(content-[''] absolute h-3.5 w-3.5 top-[4px] start-[4px] i-lucide:check bg-fg opacity-0 transition-all duration-200 ease-in-out) checked:after:opacity-100 checked:after:translate-x-[20px] rtl:checked:after:-translate-x-[20px]"
45- style =" grid-area : toggle"
46- />
47- <TooltipApp
48- v-if =" tooltip && label"
49- :text =" tooltip"
50- :position =" tooltipPosition ?? 'top'"
51- :to =" tooltipTo"
52- :offset =" tooltipOffset"
53- >
54- <span class =" text-sm text-fg font-medium text-start" style =" grid-area : label-text" >
55- {{ label }}
56- </span >
57- </TooltipApp >
58- <span
59- v-else-if =" label"
60- class =" text-sm text-fg font-medium text-start"
61- style =" grid-area : label-text"
62- >
38+ <TooltipApp
39+ v-if =" tooltip && label"
40+ :text =" tooltip"
41+ :position =" tooltipPosition ?? 'top'"
42+ :to =" tooltipTo"
43+ :offset =" tooltipOffset"
44+ >
45+ <span class =" text-sm text-fg font-medium text-start" style =" grid-area : label-text" >
6346 {{ label }}
6447 </span >
65- </template >
66- <template v-else >
67- <TooltipApp
68- v-if =" tooltip && label"
69- :text =" tooltip"
70- :position =" tooltipPosition ?? 'top'"
71- :to =" tooltipTo"
72- :offset =" tooltipOffset"
73- >
74- <span class =" text-sm text-fg font-medium text-start" style =" grid-area : label-text" >
75- {{ label }}
76- </span >
77- </TooltipApp >
78- <span
79- v-else-if =" label"
80- class =" text-sm text-fg font-medium text-start"
81- style =" grid-area : label-text"
82- >
83- {{ label }}
84- </span >
85- <input
86- role =" switch"
87- type =" checkbox"
88- :id =" id"
89- v-model =" checked"
90- class =" toggle appearance-none h-6 w-11 rounded-full border border-fg relative shrink-0 bg-fg/50 transition-colors duration-200 ease-in-out checked:bg-fg [@media(hover:hover)]:hover:bg-fg/60 [@media(hover:hover)]:checked:hover:(bg-fg/80 after:opacity-50) focus-visible:(outline-2 outline-accent outline-offset-2) before:(content-[''] absolute h-5 w-5 top-px start-px rounded-full bg-bg transition-transform duration-200 ease-in-out) checked:before:translate-x-[20px] rtl:checked:before:-translate-x-[20px] after:(content-[''] absolute h-3.5 w-3.5 top-[4px] start-[4px] i-lucide:check bg-fg opacity-0 transition-all duration-200 ease-in-out) checked:after:opacity-100 checked:after:translate-x-[20px] rtl:checked:after:-translate-x-[20px]"
91- style =" grid-area : toggle; justify-self : end "
92- />
93- </template >
48+ </TooltipApp >
49+ <span
50+ v-else-if =" label"
51+ class =" text-sm text-fg font-medium text-start"
52+ style =" grid-area : label-text"
53+ >
54+ {{ label }}
55+ </span >
56+ <input
57+ role =" switch"
58+ type =" checkbox"
59+ :id =" id"
60+ v-model =" checked"
61+ class =" toggle appearance-none h-6 w-11 rounded-full border border-fg relative shrink-0 bg-fg/50 transition-colors duration-200 ease-in-out checked:bg-fg [@media(hover:hover)]:hover:bg-fg/60 [@media(hover:hover)]:checked:hover:(bg-fg/80 after:opacity-50) focus-visible:(outline-2 outline-accent outline-offset-2) before:(content-[''] absolute h-5 w-5 top-px start-px rounded-full bg-bg transition-transform duration-200 ease-in-out) checked:before:translate-x-[20px] rtl:checked:before:-translate-x-[20px] after:(content-[''] absolute h-3.5 w-3.5 top-[4px] start-[4px] i-lucide:check bg-fg opacity-0 transition-all duration-200 ease-in-out) checked:after:opacity-100 checked:after:translate-x-[20px] rtl:checked:after:-translate-x-[20px]"
62+ style =" grid-area : toggle; justify-self : end "
63+ />
9464 </label >
9565 <p v-if =" description" class =" text-sm text-fg-muted mt-2" >
9666 {{ description }}
0 commit comments