diff --git a/src/lib/components/ui/button/button.svelte b/src/lib/components/ui/button/button.svelte index a128f14..fb61a87 100644 --- a/src/lib/components/ui/button/button.svelte +++ b/src/lib/components/ui/button/button.svelte @@ -1,15 +1,15 @@ diff --git a/src/lib/components/ui/button/index.ts b/src/lib/components/ui/button/index.ts index 86b7231..f13cfdf 100644 --- a/src/lib/components/ui/button/index.ts +++ b/src/lib/components/ui/button/index.ts @@ -1,35 +1,34 @@ -import type { Button as ButtonPrimitive } from "bits-ui"; -import { tv, type VariantProps } from "tailwind-variants"; -import Root from "./button.svelte"; +import type { Button as ButtonPrimitive } from 'bits-ui'; +import { tv, type VariantProps } from 'tailwind-variants'; +import Root from './button.svelte'; const buttonVariants = tv({ - base: "inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", + base: 'inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50', variants: { variant: { - default: "bg-primary text-primary-foreground shadow hover:bg-primary/90", - destructive: - "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90", + default: 'bg-primary text-primary-foreground shadow hover:bg-primary/90', + destructive: 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90', outline: - "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground", - secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80", - ghost: "hover:bg-accent hover:text-accent-foreground", - link: "text-primary underline-offset-4 hover:underline", + 'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground', + secondary: 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80', + ghost: 'hover:bg-accent hover:text-accent-foreground', + link: 'text-primary underline-offset-4 hover:underline' }, size: { - default: "h-9 px-4 py-2", - sm: "h-8 rounded-md px-3 text-xs", - lg: "h-10 rounded-md px-8", - icon: "h-9 w-9", - }, + default: 'h-9 px-4 py-2', + sm: 'h-8 rounded-md px-3 text-xs', + lg: 'h-10 rounded-md px-8', + icon: 'h-9 w-9' + } }, defaultVariants: { - variant: "default", - size: "default", - }, + variant: 'default', + size: 'default' + } }); -type Variant = VariantProps["variant"]; -type Size = VariantProps["size"]; +type Variant = VariantProps['variant']; +type Size = VariantProps['size']; type Props = ButtonPrimitive.Props & { variant?: Variant; @@ -46,5 +45,5 @@ export { Root as Button, type Props as ButtonProps, type Events as ButtonEvents, - buttonVariants, + buttonVariants }; diff --git a/src/lib/components/ui/calendar/calendar-cell.svelte b/src/lib/components/ui/calendar/calendar-cell.svelte index 1febe35..563b2e3 100644 --- a/src/lib/components/ui/calendar/calendar-cell.svelte +++ b/src/lib/components/ui/calendar/calendar-cell.svelte @@ -1,18 +1,18 @@ - import { Calendar as CalendarPrimitive } from "bits-ui"; - import { buttonVariants } from "$lib/components/ui/button"; - import { cn } from "$lib/utils"; + import { Calendar as CalendarPrimitive } from 'bits-ui'; + import { buttonVariants } from '$lib/components/ui/button'; + import { cn } from '$lib/utils'; type $$Props = CalendarPrimitive.DayProps; type $$Events = CalendarPrimitive.DayEvents; - export let date: $$Props["date"]; - export let month: $$Props["month"]; - let className: $$Props["class"] = undefined; + export let date: $$Props['date']; + export let month: $$Props['month']; + let className: $$Props['class'] = undefined; export { className as class }; @@ -17,18 +17,18 @@ {date} {month} class={cn( - buttonVariants({ variant: "ghost" }), - "h-8 w-8 p-0 font-normal", + buttonVariants({ variant: 'ghost' }), + 'h-8 w-8 p-0 font-normal', // Today - "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground", + '[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground', // Selected - "data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:opacity-100 data-[selected]:hover:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground", + 'data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:opacity-100 data-[selected]:hover:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground', // Disabled - "data-[disabled]:text-muted-foreground data-[disabled]:opacity-50", + 'data-[disabled]:text-muted-foreground data-[disabled]:opacity-50', // Unavailable - "data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through", + 'data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through', // Outside months - "data-[outside-month]:pointer-events-none data-[outside-month]:text-muted-foreground data-[outside-month]:opacity-50 [&[data-outside-month][data-selected]]:bg-accent/50 [&[data-outside-month][data-selected]]:text-muted-foreground [&[data-outside-month][data-selected]]:opacity-30", + 'data-[outside-month]:pointer-events-none data-[outside-month]:text-muted-foreground data-[outside-month]:opacity-50 [&[data-outside-month][data-selected]]:bg-accent/50 [&[data-outside-month][data-selected]]:text-muted-foreground [&[data-outside-month][data-selected]]:opacity-30', className )} {...$$restProps} diff --git a/src/lib/components/ui/calendar/calendar-grid-body.svelte b/src/lib/components/ui/calendar/calendar-grid-body.svelte index b790214..460320f 100644 --- a/src/lib/components/ui/calendar/calendar-grid-body.svelte +++ b/src/lib/components/ui/calendar/calendar-grid-body.svelte @@ -1,10 +1,10 @@ diff --git a/src/lib/components/ui/calendar/calendar-grid-head.svelte b/src/lib/components/ui/calendar/calendar-grid-head.svelte index 8be9ae8..1126125 100644 --- a/src/lib/components/ui/calendar/calendar-grid-head.svelte +++ b/src/lib/components/ui/calendar/calendar-grid-head.svelte @@ -1,6 +1,6 @@ - + diff --git a/src/lib/components/ui/calendar/calendar-grid.svelte b/src/lib/components/ui/calendar/calendar-grid.svelte index 4cdfba7..7b3f7f3 100644 --- a/src/lib/components/ui/calendar/calendar-grid.svelte +++ b/src/lib/components/ui/calendar/calendar-grid.svelte @@ -1,13 +1,13 @@ - + diff --git a/src/lib/components/ui/calendar/calendar-head-cell.svelte b/src/lib/components/ui/calendar/calendar-head-cell.svelte index 1176f7f..e0c4aaf 100644 --- a/src/lib/components/ui/calendar/calendar-head-cell.svelte +++ b/src/lib/components/ui/calendar/calendar-head-cell.svelte @@ -1,15 +1,15 @@ diff --git a/src/lib/components/ui/calendar/calendar-header.svelte b/src/lib/components/ui/calendar/calendar-header.svelte index 88b8616..c663b5d 100644 --- a/src/lib/components/ui/calendar/calendar-header.svelte +++ b/src/lib/components/ui/calendar/calendar-header.svelte @@ -1,15 +1,15 @@ diff --git a/src/lib/components/ui/calendar/calendar-heading.svelte b/src/lib/components/ui/calendar/calendar-heading.svelte index 51ce98c..929adca 100644 --- a/src/lib/components/ui/calendar/calendar-heading.svelte +++ b/src/lib/components/ui/calendar/calendar-heading.svelte @@ -1,6 +1,6 @@
diff --git a/src/lib/components/ui/calendar/calendar-next-button.svelte b/src/lib/components/ui/calendar/calendar-next-button.svelte index 3782695..8540714 100644 --- a/src/lib/components/ui/calendar/calendar-next-button.svelte +++ b/src/lib/components/ui/calendar/calendar-next-button.svelte @@ -1,21 +1,21 @@ - import { Calendar as CalendarPrimitive } from "bits-ui"; - import { ChevronLeft } from "radix-icons-svelte"; - import { buttonVariants } from "$lib/components/ui/button"; - import { cn } from "$lib/utils"; + import { Calendar as CalendarPrimitive } from 'bits-ui'; + import { ChevronLeft } from 'radix-icons-svelte'; + import { buttonVariants } from '$lib/components/ui/button'; + import { cn } from '$lib/utils'; type $$Props = CalendarPrimitive.PrevButtonProps; type $$Events = CalendarPrimitive.PrevButtonEvents; - let className: $$Props["class"] = undefined; + let className: $$Props['class'] = undefined; export { className as class }; - import { Calendar as CalendarPrimitive } from "bits-ui"; - import * as Calendar from "."; - import { cn } from "$lib/utils"; + import { Calendar as CalendarPrimitive } from 'bits-ui'; + import * as Calendar from '.'; + import { cn } from '$lib/utils'; type $$Props = CalendarPrimitive.Props; type $$Events = CalendarPrimitive.Events; - export let value: $$Props["value"] = undefined; - export let placeholder: $$Props["placeholder"] = undefined; - export let weekdayFormat: $$Props["weekdayFormat"] = "short"; + export let value: $$Props['value'] = undefined; + export let placeholder: $$Props['placeholder'] = undefined; + export let weekdayFormat: $$Props['weekdayFormat'] = 'short'; - let className: $$Props["class"] = undefined; + let className: $$Props['class'] = undefined; export { className as class }; @@ -18,7 +18,7 @@ bind:value bind:placeholder {weekdayFormat} - class={cn("p-3", className)} + class={cn('p-3', className)} {...$$restProps} on:keydown let:months diff --git a/src/lib/components/ui/calendar/index.ts b/src/lib/components/ui/calendar/index.ts index ab257ab..5d60fa5 100644 --- a/src/lib/components/ui/calendar/index.ts +++ b/src/lib/components/ui/calendar/index.ts @@ -1,16 +1,16 @@ -import Root from "./calendar.svelte"; -import Cell from "./calendar-cell.svelte"; -import Day from "./calendar-day.svelte"; -import Grid from "./calendar-grid.svelte"; -import Header from "./calendar-header.svelte"; -import Months from "./calendar-months.svelte"; -import GridRow from "./calendar-grid-row.svelte"; -import Heading from "./calendar-heading.svelte"; -import GridBody from "./calendar-grid-body.svelte"; -import GridHead from "./calendar-grid-head.svelte"; -import HeadCell from "./calendar-head-cell.svelte"; -import NextButton from "./calendar-next-button.svelte"; -import PrevButton from "./calendar-prev-button.svelte"; +import Root from './calendar.svelte'; +import Cell from './calendar-cell.svelte'; +import Day from './calendar-day.svelte'; +import Grid from './calendar-grid.svelte'; +import Header from './calendar-header.svelte'; +import Months from './calendar-months.svelte'; +import GridRow from './calendar-grid-row.svelte'; +import Heading from './calendar-heading.svelte'; +import GridBody from './calendar-grid-body.svelte'; +import GridHead from './calendar-grid-head.svelte'; +import HeadCell from './calendar-head-cell.svelte'; +import NextButton from './calendar-next-button.svelte'; +import PrevButton from './calendar-prev-button.svelte'; export { Day, @@ -26,5 +26,5 @@ export { NextButton, PrevButton, // - Root as Calendar, + Root as Calendar }; diff --git a/src/lib/components/ui/form/form-button.svelte b/src/lib/components/ui/form/form-button.svelte index 881e139..30fd292 100644 --- a/src/lib/components/ui/form/form-button.svelte +++ b/src/lib/components/ui/form/form-button.svelte @@ -1,5 +1,5 @@ diff --git a/src/lib/components/ui/form/form-description.svelte b/src/lib/components/ui/form/form-description.svelte index 0cc7564..02f181a 100644 --- a/src/lib/components/ui/form/form-description.svelte +++ b/src/lib/components/ui/form/form-description.svelte @@ -1,14 +1,14 @@ diff --git a/src/lib/components/ui/form/form-element-field.svelte b/src/lib/components/ui/form/form-element-field.svelte index 12bab55..7a91298 100644 --- a/src/lib/components/ui/form/form-element-field.svelte +++ b/src/lib/components/ui/form/form-element-field.svelte @@ -1,26 +1,26 @@ -
+
diff --git a/src/lib/components/ui/form/form-field-errors.svelte b/src/lib/components/ui/form/form-field-errors.svelte index 8c9bc12..2a4d145 100644 --- a/src/lib/components/ui/form/form-field-errors.svelte +++ b/src/lib/components/ui/form/form-field-errors.svelte @@ -1,18 +1,18 @@ // eslint-disable-next-line @typescript-eslint/no-unused-vars - import type { FormPath, SuperForm } from "sveltekit-superforms"; + import type { FormPath, SuperForm } from 'sveltekit-superforms'; type T = Record; type U = unknown; -
+
diff --git a/src/lib/components/ui/form/form-fieldset.svelte b/src/lib/components/ui/form/form-fieldset.svelte index 6d35255..c1bf647 100644 --- a/src/lib/components/ui/form/form-fieldset.svelte +++ b/src/lib/components/ui/form/form-fieldset.svelte @@ -1,20 +1,20 @@ @@ -25,7 +25,7 @@ let:errors let:tainted let:value - class={cn("space-y-2", className)} + class={cn('space-y-2', className)} > diff --git a/src/lib/components/ui/form/form-label.svelte b/src/lib/components/ui/form/form-label.svelte index 0fd76c6..eac607d 100644 --- a/src/lib/components/ui/form/form-label.svelte +++ b/src/lib/components/ui/form/form-label.svelte @@ -1,17 +1,17 @@ -