migrate: run bunx migrate

This commit is contained in:
James Xylight committed 2025-06-06 11:26:00 -07:00
1 parent 964baccfa0
commit bc05ad549a
115 files changed
+329 -326

No files matched your search

+13 -13
View File
@@ -12,39 +12,39 @@
export const buttonColor = {
primary: `border border-transparent bg-primary-900 text-white
dark:bg-primary-100 dark:text-black hover:brightness-125 dark:hover:brightness-90 active:brightness-90
active:dark:brightness-75`,
dark:active:brightness-75`,
secondary: `border border-slate-200 border-b-slate-300 dark:border-zinc-800 dark:border-t-zinc-700/50 bg-white dark:bg-zinc-900
hover:bg-slate-100 hover:dark:bg-zinc-800 hover:dark:border-zinc-700 hover:dark:border-zinc-700 active:dark:bg-zinc-900 active:bg-slate-200`,
hover:bg-slate-100 dark:hover:bg-zinc-800 dark:hover:border-zinc-700 dark:hover:border-zinc-700 dark:active:bg-zinc-900 active:bg-slate-200`,
tertiary:
'border border-transparent bg-transparent hover:bg-slate-100 hover:dark:bg-zinc-700/30 dark:text-zinc-200',
'border border-transparent bg-transparent hover:bg-slate-100 dark:hover:bg-zinc-700/30 dark:text-zinc-200',
danger:
'border border-red-500 bg-red-500 hover:text-red-500 hover:bg-transparent text-white',
'danger-subtle': 'text-red-500 hover:bg-red-500 hover:!text-inherit',
'danger-subtle': 'text-red-500 hover:bg-red-500 hover:text-inherit!',
'success-subtle': 'text-green-500 hover:bg-green-500 hover:!text-inherit',
'success-subtle': 'text-green-500 hover:bg-green-500 hover:text-inherit!',
'warning-subtle': 'text-yellow-500 hover:bg-yellow-500 hover:!text-inherit',
'warning-subtle': 'text-yellow-500 hover:bg-yellow-500 hover:text-inherit!',
ghost: `border border-slate-200 dark:border-zinc-800 bg-transparent
hover:bg-slate-100 hover:dark:bg-zinc-800 hover:dark:border-zinc-700 dark:text-zinc-400 hover:text-inherit
hover:dark:text-inherit`,
hover:bg-slate-100 dark:hover:bg-zinc-800 dark:hover:border-zinc-700 dark:text-zinc-400 hover:text-inherit
dark:hover:text-inherit`,
elevated: `bg-slate-100 dark:bg-zinc-800 border border-slate-200
dark:border-zinc-700 hover:bg-zinc-200 hover:dark:bg-zinc-700 hover:border-slate-300
hover:dark:border-zinc-600`,
dark:border-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-700 hover:border-slate-300
dark:hover:border-zinc-600`,
elevatedLow: `bg-slate-100 dark:bg-zinc-900 border border-slate-200
dark:border-zinc-800 hover:bg-slate-200 hover:dark:bg-zinc-800 hover:border-slate-300
hover:dark:border-zinc-700`,
dark:border-zinc-800 hover:bg-slate-200 dark:hover:bg-zinc-800 hover:border-slate-300
dark:hover:border-zinc-700`,
none: '',
}
export const buttonShadow = {
sm: 'shadow-sm',
sm: 'shadow-xs',
none: 'shadow-none',
}
+1 -1
View File
@@ -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"
+5 -5
View File
@@ -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}">
+3 -3
View File
@@ -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,
+4 -4
View File
@@ -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',
+2 -2
View File
@@ -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}
+3 -3
View File
@@ -9,8 +9,8 @@
const elevationClass = {
flat: '',
low: 'shadow-xs',
medium: 'shadow-sm',
low: 'shadow-2xs',
medium: 'shadow-xs',
high: 'shadow-md',
xhigh: 'shadow-lg',
max: 'shadow-xl',
@@ -26,7 +26,7 @@
const roundedClass = {
none: 'rounded-none',
sm: 'rounded-sm',
sm: 'rounded-xs',
md: 'rounded-md',
lg: 'rounded-lg',
xl: 'rounded-xl',
+2 -2
View File
@@ -43,8 +43,8 @@
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
<div
role="dialog"
class="overflow-hidden fixed top-0 left-0 w-screen h-screen z-[100]
flex flex-col items-center justify-center backdrop-blur-sm
class="overflow-hidden fixed top-0 left-0 w-screen h-screen z-100
flex flex-col items-center justify-center backdrop-blur-xs
bg-white/50 dark:bg-black/50 box-border p-4"
transition:fade|global={{ duration: 100 }}
onclick={(e) => {
+4 -4
View File
@@ -33,8 +33,8 @@
{#if route.children}
<Button
class="{depth > 0 ? 'pl-6' : ''} {route.url == currentRoute
? 'border-t-0 border-r-0 border-b-0 border-l !border-slate-900 dark:!border-zinc-50'
: 'border-t-0 border-r-0 border-b-0 border-l !border-slate-300 dark:!border-zinc-700'} rounded-l-none {depth ==
? 'border-t-0 border-r-0 border-b-0 border-l border-slate-900! dark:border-zinc-50!'
: 'border-t-0 border-r-0 border-b-0 border-l border-slate-300! dark:border-zinc-700!'} rounded-l-none {depth ==
0
? 'mt-2'
: ''} font-bold"
@@ -59,8 +59,8 @@
size="lg"
class="{depth > 1 ? 'pl-12' : depth > 0 ? 'pl-6' : ''} {route.url ==
currentRoute
? 'border-t-0 border-r-0 border-b-0 border-l !border-slate-950 dark:!border-zinc-50'
: 'border-t-0 border-r-0 border-b-0 border-l !border-slate-300 dark:!border-zinc-700'} font-normal rounded-l-none"
? 'border-t-0 border-r-0 border-b-0 border-l border-slate-950! dark:border-zinc-50!'
: 'border-t-0 border-r-0 border-b-0 border-l border-slate-300! dark:border-zinc-700!'} font-normal rounded-l-none"
>
{route.name}
</Button>
+1 -1
View File
@@ -15,7 +15,7 @@
<Material
padding="none"
color="uniform"
class="flex flex-row space-x-2 items-center px-4 py-3 !rounded-3xl {clazz}"
class="flex flex-row space-x-2 items-center px-4 py-3 rounded-3xl! {clazz}"
>
<Icon
src={InformationCircle}
+1 -1
View File
@@ -54,7 +54,7 @@
{#snippet popover()}
<div
class="w-full max-w-[280px] origin-top-left
max-h-[32rem] overflow-auto list-none shadow-lg rounded-2xl"
max-h-128 overflow-auto list-none shadow-lg rounded-2xl"
>
<div
class="flex flex-col py-2 list-none bg-white/80 dark:bg-zinc-900/90 px-2 gap-px
+2 -2
View File
@@ -39,7 +39,7 @@
class="w-full px-2 rounded-lg min-h-8 font-normal {disabled
? 'opacity-70 pointer-events-none cursor-not-allowed'
: ''} {color == 'tertiary'
? 'hover:dark:bg-zinc-800/70'
? 'dark:hover:bg-zinc-800/70'
: ''} duration-100 {clazz}"
{alignment}
{href}
@@ -50,7 +50,7 @@
class="contents {color == 'tertiary'
? 'text-slate-600 dark:text-zinc-400'
: ''}
flex-shrink-0"
shrink-0"
>
{#if icon}
<Icon src={icon} micro size="16" />
+1 -1
View File
@@ -13,6 +13,6 @@
>
<div>{@render children?.()}</div>
<hr
class="flex-shrink flex-1 border-slate-200 dark:border-zinc-800 border-opacity-70"
class="shrink flex-1 border-slate-200 dark:border-zinc-800 border-opacity-70"
/>
</div>
+2 -2
View File
@@ -131,10 +131,10 @@
{/if}
{#if open}
<Portal class="z-[150]">
<Portal class="z-150">
<div
transition:scale={{ duration: 300, start: 0.97, easing: expoOut }}
class="z-[150] {popoverClass}"
class="z-150 {popoverClass}"
use:customFloatingContent
use:focusTrap
bind:this={popoverEl}
+4 -4
View File
@@ -32,14 +32,14 @@
}}
>
{#if toast.loading}
<div class="relative m-2 ml-4 flex-shrink-0">
<div class="relative m-2 ml-4 shrink-0">
<Spinner width={20} />
</div>
{:else}
<Icon
size="20"
mini
class="relative m-2 ml-4 flex-shrink-0"
class="relative m-2 ml-4 shrink-0"
src={toast.type == 'info'
? InformationCircle
: toast.type == 'success'
@@ -64,7 +64,7 @@
toast.action?.()
toasts.update((toasts) => toasts.filter((t) => t.id != toast.id))
}}
class="rounded-lg w-max transition-colors hover:bg-black/20 hover:dark:bg-white/20 p-2"
class="rounded-lg w-max transition-colors hover:bg-black/20 dark:hover:bg-white/20 p-2"
>
<Icon src={Check} size="16" mini />
</button>
@@ -73,7 +73,7 @@
onclick={() => {
toasts.update((toasts) => toasts.filter((t) => t.id != toast.id))
}}
class="rounded-lg w-max transition-colors hover:bg-black/20 hover:dark:bg-white/20 p-2"
class="rounded-lg w-max transition-colors hover:bg-black/20 dark:hover:bg-white/20 p-2"
>
<Icon src={XMark} size="16" mini />
</button>
+2 -2
View File
@@ -6,8 +6,8 @@
</script>
<div
class="fixed right-0 bottom-0 flex flex-col items-end justify-end z-[200] p-4
group overflow-hidden h-screen min-w-[24rem] pointer-events-none gap-4"
class="fixed right-0 bottom-0 flex flex-col items-end justify-end z-200 p-4
group overflow-hidden h-screen min-w-96 pointer-events-none gap-4"
>
{#each $toasts as toast, index (toast.id)}
<div