From 3b696209e6f9a3287c6853e833b6df5ef6ea87a6 Mon Sep 17 00:00:00 2001 From: April Hall Date: Sat, 15 Feb 2025 16:45:08 -0500 Subject: [PATCH] style: Prettier format --- src/lib/components/ui/select/index.ts | 50 ++++++++-------- .../ui/select/select-content.svelte | 56 +++++++++--------- .../components/ui/select/select-item.svelte | 58 +++++++++---------- .../components/ui/select/select-label.svelte | 14 ++--- .../ui/select/select-separator.svelte | 12 ++-- .../ui/select/select-trigger.svelte | 32 +++++----- 6 files changed, 111 insertions(+), 111 deletions(-) diff --git a/src/lib/components/ui/select/index.ts b/src/lib/components/ui/select/index.ts index 10a33c5..d672aa6 100644 --- a/src/lib/components/ui/select/index.ts +++ b/src/lib/components/ui/select/index.ts @@ -1,10 +1,10 @@ -import { Select as SelectPrimitive } from "bits-ui"; +import { Select as SelectPrimitive } from 'bits-ui'; -import Label from "./select-label.svelte"; -import Item from "./select-item.svelte"; -import Content from "./select-content.svelte"; -import Trigger from "./select-trigger.svelte"; -import Separator from "./select-separator.svelte"; +import Label from './select-label.svelte'; +import Item from './select-item.svelte'; +import Content from './select-content.svelte'; +import Trigger from './select-trigger.svelte'; +import Separator from './select-separator.svelte'; const Root = SelectPrimitive.Root; const Group = SelectPrimitive.Group; @@ -12,23 +12,23 @@ const Input = SelectPrimitive.Input; const Value = SelectPrimitive.Value; export { - Root, - Item, - Group, - Input, - Label, - Value, - Content, - Trigger, - Separator, - // - Root as Select, - Item as SelectItem, - Group as SelectGroup, - Input as SelectInput, - Label as SelectLabel, - Value as SelectValue, - Content as SelectContent, - Trigger as SelectTrigger, - Separator as SelectSeparator, + Root, + Item, + Group, + Input, + Label, + Value, + Content, + Trigger, + Separator, + // + Root as Select, + Item as SelectItem, + Group as SelectGroup, + Input as SelectInput, + Label as SelectLabel, + Value as SelectValue, + Content as SelectContent, + Trigger as SelectTrigger, + Separator as SelectSeparator, }; diff --git a/src/lib/components/ui/select/select-content.svelte b/src/lib/components/ui/select/select-content.svelte index 7ed541c..c7183c4 100644 --- a/src/lib/components/ui/select/select-content.svelte +++ b/src/lib/components/ui/select/select-content.svelte @@ -1,36 +1,36 @@ -
- -
+
+ +
diff --git a/src/lib/components/ui/select/select-item.svelte b/src/lib/components/ui/select/select-item.svelte index 73cb954..5314c33 100644 --- a/src/lib/components/ui/select/select-item.svelte +++ b/src/lib/components/ui/select/select-item.svelte @@ -1,37 +1,37 @@ - - - - - - - {label || value} - + + + + + + + {label || value} + diff --git a/src/lib/components/ui/select/select-label.svelte b/src/lib/components/ui/select/select-label.svelte index 29b319b..122f121 100644 --- a/src/lib/components/ui/select/select-label.svelte +++ b/src/lib/components/ui/select/select-label.svelte @@ -1,13 +1,13 @@ - - + + diff --git a/src/lib/components/ui/select/select-separator.svelte b/src/lib/components/ui/select/select-separator.svelte index 78fc46d..743a5ab 100644 --- a/src/lib/components/ui/select/select-separator.svelte +++ b/src/lib/components/ui/select/select-separator.svelte @@ -1,11 +1,11 @@ - + diff --git a/src/lib/components/ui/select/select-trigger.svelte b/src/lib/components/ui/select/select-trigger.svelte index cd958b7..bbc4722 100644 --- a/src/lib/components/ui/select/select-trigger.svelte +++ b/src/lib/components/ui/select/select-trigger.svelte @@ -1,24 +1,24 @@ span]:text-muted-foreground flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", - className - )} - {...$$restProps} + class={cn( + 'flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid]:border-destructive [&>span]:line-clamp-1 data-[placeholder]:[&>span]:text-muted-foreground', + className, + )} + {...$$restProps} > - -
- -
+ +
+ +