From 357e46dc00d715d1314697eedba0863c700fe87d Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 23 Apr 2024 08:39:06 -0700 Subject: [PATCH] style: run prettier on all files --- .../ui/accordion/accordion-content.svelte | 16 ++++++------- .../ui/accordion/accordion-item.svelte | 10 ++++---- .../ui/accordion/accordion-trigger.svelte | 16 ++++++------- src/lib/components/ui/accordion/index.ts | 10 ++++---- .../ui/breadcrumb/breadcrumb-ellipsis.svelte | 12 +++++----- .../ui/breadcrumb/breadcrumb-item.svelte | 10 ++++---- .../ui/breadcrumb/breadcrumb-link.svelte | 16 ++++++------- .../ui/breadcrumb/breadcrumb-list.svelte | 10 ++++---- .../ui/breadcrumb/breadcrumb-page.svelte | 10 ++++---- .../ui/breadcrumb/breadcrumb-separator.svelte | 12 +++++----- .../ui/breadcrumb/breadcrumb.svelte | 6 ++--- src/lib/components/ui/breadcrumb/index.ts | 16 ++++++------- .../ui/drawer/drawer-content.svelte | 10 ++++---- .../ui/drawer/drawer-description.svelte | 10 ++++---- .../components/ui/drawer/drawer-footer.svelte | 10 ++++---- .../components/ui/drawer/drawer-header.svelte | 10 ++++---- .../components/ui/drawer/drawer-nested.svelte | 8 +++---- .../ui/drawer/drawer-overlay.svelte | 10 ++++---- .../components/ui/drawer/drawer-title.svelte | 10 ++++---- src/lib/components/ui/drawer/drawer.svelte | 8 +++---- src/lib/components/ui/drawer/index.ts | 20 ++++++++-------- .../dropdown-menu-checkbox-item.svelte | 12 +++++----- .../dropdown-menu-content.svelte | 14 +++++------ .../dropdown-menu/dropdown-menu-item.svelte | 12 +++++----- .../dropdown-menu/dropdown-menu-label.svelte | 10 ++++---- .../dropdown-menu-radio-group.svelte | 4 ++-- .../dropdown-menu-radio-item.svelte | 12 +++++----- .../dropdown-menu-separator.svelte | 8 +++---- .../dropdown-menu-shortcut.svelte | 8 +++---- .../dropdown-menu-sub-content.svelte | 14 +++++------ .../dropdown-menu-sub-trigger.svelte | 14 +++++------ src/lib/components/ui/dropdown-menu/index.ts | 24 +++++++++---------- src/lib/styles/markdown.pcss | 2 +- src/routes/+error.svelte | 2 +- src/routes/+page.ts | 2 +- 35 files changed, 188 insertions(+), 190 deletions(-) diff --git a/src/lib/components/ui/accordion/accordion-content.svelte b/src/lib/components/ui/accordion/accordion-content.svelte index da7265d..c8b12d2 100644 --- a/src/lib/components/ui/accordion/accordion-content.svelte +++ b/src/lib/components/ui/accordion/accordion-content.svelte @@ -1,21 +1,21 @@ - import { Accordion as AccordionPrimitive } from "bits-ui"; - import { cn } from "$lib/utils.js"; + import { Accordion as AccordionPrimitive } from 'bits-ui'; + import { cn } from '$lib/utils.js'; type $$Props = AccordionPrimitive.ItemProps; - let className: $$Props["class"] = undefined; + let className: $$Props['class'] = undefined; export { className as class }; - export let value: $$Props["value"]; + export let value: $$Props['value']; - + diff --git a/src/lib/components/ui/accordion/accordion-trigger.svelte b/src/lib/components/ui/accordion/accordion-trigger.svelte index fe85094..fcbcf35 100644 --- a/src/lib/components/ui/accordion/accordion-trigger.svelte +++ b/src/lib/components/ui/accordion/accordion-trigger.svelte @@ -1,28 +1,26 @@ svg]:rotate-180", + 'flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180', className )} {...$$restProps} on:click > - + diff --git a/src/lib/components/ui/accordion/index.ts b/src/lib/components/ui/accordion/index.ts index 3fc36e7..71538b5 100644 --- a/src/lib/components/ui/accordion/index.ts +++ b/src/lib/components/ui/accordion/index.ts @@ -1,7 +1,7 @@ -import { Accordion as AccordionPrimitive } from "bits-ui"; -import Content from "./accordion-content.svelte"; -import Item from "./accordion-item.svelte"; -import Trigger from "./accordion-trigger.svelte"; +import { Accordion as AccordionPrimitive } from 'bits-ui'; +import Content from './accordion-content.svelte'; +import Item from './accordion-item.svelte'; +import Trigger from './accordion-trigger.svelte'; const Root = AccordionPrimitive.Root; export { @@ -13,5 +13,5 @@ export { Root as Accordion, Content as AccordionContent, Item as AccordionItem, - Trigger as AccordionTrigger, + Trigger as AccordionTrigger }; diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte index d733e9b..4fe0d16 100644 --- a/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte +++ b/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte @@ -1,14 +1,14 @@ @@ -16,7 +16,7 @@ bind:this={el} role="presentation" aria-hidden="true" - class={cn("flex h-9 w-9 items-center justify-center", className)} + class={cn('flex h-9 w-9 items-center justify-center', className)} {...$$restProps} > diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte index 8e8b187..ca5edc1 100644 --- a/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte +++ b/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte @@ -1,16 +1,16 @@ -
  • +
  • diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte index e743768..27e6ecd 100644 --- a/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte +++ b/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte @@ -1,24 +1,24 @@ diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte index 7f36141..e8b586a 100644 --- a/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte +++ b/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte @@ -1,20 +1,20 @@
      - import type { HTMLAttributes } from "svelte/elements"; - import { cn } from "$lib/utils.js"; + import type { HTMLAttributes } from 'svelte/elements'; + import { cn } from '$lib/utils.js'; type $$Props = HTMLAttributes & { el?: HTMLSpanElement; }; - export let el: $$Props["el"] = undefined; - export let className: $$Props["class"] = undefined; + export let el: $$Props['el'] = undefined; + export let className: $$Props['class'] = undefined; export { className as class }; @@ -16,7 +16,7 @@ role="link" aria-disabled="true" aria-current="page" - class={cn("font-normal text-foreground", className)} + class={cn('font-normal text-foreground', className)} {...$$restProps} > diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte index 681ef99..5b5b886 100644 --- a/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte +++ b/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte @@ -1,21 +1,21 @@