migrate: run bunx migrate
This commit is contained in:
115 files changed
+329
-326
No files matched your search
@@ -38,7 +38,7 @@
|
||||
type="radio"
|
||||
bind:group
|
||||
{value}
|
||||
onblur={bubble('blur')}
|
||||
onblur={bubble('blur-sm')}
|
||||
onchange={bubble('change')}
|
||||
{disabled}
|
||||
class="cursor-pointer disabled:cursor-not-allowed peer disabled:opacity-50"
|
||||
|
||||
@@ -22,11 +22,11 @@
|
||||
class="font-normal cursor-pointer flex flex-row items-start gap-4 group {clazz}"
|
||||
>
|
||||
<div
|
||||
class="w-11 h-6 rounded-full relative z-[inherit] cursor-pointer flex flex-row transition-colors shadow-sm
|
||||
class="w-11 h-6 rounded-full relative z-[inherit] cursor-pointer flex flex-row transition-colors shadow-xs
|
||||
{checked
|
||||
? 'bg-primary-900 dark:bg-primary-100'
|
||||
: 'bg-slate-200 dark:bg-zinc-800'}
|
||||
p-0.5 flex-shrink-0"
|
||||
p-0.5 shrink-0"
|
||||
>
|
||||
<input
|
||||
bind:checked
|
||||
@@ -34,9 +34,9 @@
|
||||
class="peer appearance-none absolute top-0 left-0 w-full h-full cursor-pointer z-10"
|
||||
/>
|
||||
<div
|
||||
class="box-border w-5 h-full bg-white peer-checked:dark:bg-black rounded-full shadow-sm
|
||||
group-active:w-6 transition peer-checked:translate-x-5 group-active:peer-checked:translate-x-4
|
||||
rtl:peer-checked:-translate-x-5 rtl:group-active:peer-checked:-translate-x-4"
|
||||
class="box-border w-5 h-full bg-white dark:peer-checked:bg-black rounded-full shadow-xs
|
||||
group-active:w-6 transition peer-checked:translate-x-5 peer-checked:group-active:translate-x-4
|
||||
peer-checked:rtl:-translate-x-5 peer-checked:group-active:rtl:-translate-x-4"
|
||||
></div>
|
||||
</div>
|
||||
<div class="flex flex-col {labelClass}">
|
||||
|
||||
@@ -80,10 +80,10 @@
|
||||
class={[
|
||||
sizeClass[size],
|
||||
borderClass,
|
||||
`focus:border-slate-800 focus:dark:border-zinc-200 bg-white dark:bg-zinc-950
|
||||
focus:outline-none focus:ring-2 ring-slate-800/50 rounded-xl dark:ring-zinc-200/50
|
||||
`focus:border-slate-800 dark:focus:border-zinc-200 bg-white dark:bg-zinc-950
|
||||
focus:outline-hidden focus:ring-2 ring-slate-800/50 rounded-xl dark:ring-zinc-200/50
|
||||
transition-all text-sm w-full disabled:bg-slate-100
|
||||
disabled:cursor-not-allowed disabled:dark:bg-zinc-900 invalid:!border-red-500
|
||||
disabled:cursor-not-allowed dark:disabled:bg-zinc-900 invalid:border-red-500!
|
||||
peer invalid:text-red-500 z-10`,
|
||||
suffix && 'rounded-b-none border-b-0',
|
||||
clazz,
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
}
|
||||
|
||||
export const shadowClass = {
|
||||
sm: 'shadow-sm',
|
||||
sm: 'shadow-xs',
|
||||
none: 'shadow-none',
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
class={[
|
||||
shadowClass[shadow],
|
||||
borderClass,
|
||||
`border focus-within:border-primary-900 focus-within:dark:border-primary-100 focus-within:ring-2
|
||||
`border focus-within:border-primary-900 dark:focus-within:border-primary-100 focus-within:ring-2
|
||||
ring-slate-300 dark:ring-zinc-700
|
||||
transition-colors
|
||||
rounded-lg flex flex-row items-center text-sm`,
|
||||
@@ -112,8 +112,8 @@
|
||||
class={[
|
||||
sizeClass[size],
|
||||
`bg-white dark:bg-zinc-950
|
||||
focus:outline-none rounded-lg text-sm w-full disabled:bg-slate-100
|
||||
disabled:cursor-not-allowed disabled:dark:bg-zinc-950 invalid:!border-red-500
|
||||
focus:outline-hidden rounded-lg text-sm w-full disabled:bg-slate-100
|
||||
disabled:cursor-not-allowed dark:disabled:bg-zinc-950 invalid:border-red-500!
|
||||
peer invalid:text-red-500 z-10`,
|
||||
prefix && 'rounded-l-none',
|
||||
prefix && inlineAffixes && 'border-l-0',
|
||||
|
||||
@@ -127,8 +127,8 @@
|
||||
}}
|
||||
size="custom"
|
||||
disabled={option.disabled}
|
||||
class="!min-h-0 !py-[5px] {option.value == value
|
||||
? '!bg-slate-100 dark:!bg-zinc-800'
|
||||
class="min-h-0! py-[5px]! {option.value == value
|
||||
? 'bg-slate-100! dark:bg-zinc-800!'
|
||||
: ''}"
|
||||
>
|
||||
{#if option.icon}
|
||||
|
||||
Reference in new issue
Block a user