Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vdawg-git committed Nov 5, 2024
1 parent 651f5a0 commit 759d9e9
Show file tree
Hide file tree
Showing 46 changed files with 303 additions and 304 deletions.
2 changes: 1 addition & 1 deletion src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ declare global {
}
}

export {};
export {}
18 changes: 9 additions & 9 deletions src/lib/components/ui/accordion/accordion-content.svelte
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<script lang="ts">
import { Accordion as AccordionPrimitive } from "bits-ui";
import { slide } from "svelte/transition";
import { cn } from "$lib/utils.js";
import { Accordion as AccordionPrimitive } from "bits-ui"
import { slide } from "svelte/transition"
import { cn } from "$lib/utils.js"
type $$Props = AccordionPrimitive.ContentProps;
type $$Props = AccordionPrimitive.ContentProps
let className: $$Props["class"] = undefined;
export let transition: $$Props["transition"] = slide;
let className: $$Props["class"] = undefined
export let transition: $$Props["transition"] = slide
export let transitionConfig: $$Props["transitionConfig"] = {
duration: 200,
};
export { className as class };
duration: 200
}
export { className as class }
</script>

<AccordionPrimitive.Content
Expand Down
12 changes: 6 additions & 6 deletions src/lib/components/ui/accordion/accordion-item.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script lang="ts">
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;
type $$Props = AccordionPrimitive.ItemProps
let className: $$Props["class"] = undefined;
export let value: $$Props["value"];
export { className as class };
let className: $$Props["class"] = undefined
export let value: $$Props["value"]
export { className as class }
</script>

<AccordionPrimitive.Item {value} class={cn("border-b", className)} {...$$restProps}>
Expand Down
14 changes: 7 additions & 7 deletions src/lib/components/ui/accordion/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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;
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 {
Root,
Expand All @@ -13,5 +13,5 @@ export {
Root as Accordion,
Content as AccordionContent,
Item as AccordionItem,
Trigger as AccordionTrigger,
};
Trigger as AccordionTrigger
}
10 changes: 5 additions & 5 deletions src/lib/components/ui/card/card-content.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
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<HTMLDivElement>;
type $$Props = HTMLAttributes<HTMLDivElement>
let className: $$Props["class"] = undefined;
export { className as class };
let className: $$Props["class"] = undefined
export { className as class }
</script>

<div class={cn("p-6", className)} {...$$restProps}>
Expand Down
10 changes: 5 additions & 5 deletions src/lib/components/ui/card/card-description.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
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<HTMLParagraphElement>;
type $$Props = HTMLAttributes<HTMLParagraphElement>
let className: $$Props["class"] = undefined;
export { className as class };
let className: $$Props["class"] = undefined
export { className as class }
</script>

<p class={cn("text-muted-foreground text-sm", className)} {...$$restProps}>
Expand Down
10 changes: 5 additions & 5 deletions src/lib/components/ui/card/card-footer.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
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<HTMLDivElement>;
type $$Props = HTMLAttributes<HTMLDivElement>
let className: $$Props["class"] = undefined;
export { className as class };
let className: $$Props["class"] = undefined
export { className as class }
</script>

<div class={cn("flex items-center p-6 pt-0", className)} {...$$restProps}>
Expand Down
10 changes: 5 additions & 5 deletions src/lib/components/ui/card/card-header.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
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<HTMLDivElement>;
type $$Props = HTMLAttributes<HTMLDivElement>
let className: $$Props["class"] = undefined;
export { className as class };
let className: $$Props["class"] = undefined
export { className as class }
</script>

<div class={cn("flex flex-col space-y-1.5 p-6 pb-0", className)} {...$$restProps}>
Expand Down
16 changes: 8 additions & 8 deletions src/lib/components/ui/card/card-title.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script lang="ts">
import type { HTMLAttributes } from "svelte/elements";
import type { HeadingLevel } from "./index.js";
import { cn } from "$lib/utils.js";
import type { HTMLAttributes } from "svelte/elements"
import type { HeadingLevel } from "./index.js"
import { cn } from "$lib/utils.js"
type $$Props = HTMLAttributes<HTMLHeadingElement> & {
tag?: HeadingLevel;
};
tag?: HeadingLevel
}
let className: $$Props["class"] = undefined;
export let tag: $$Props["tag"] = "h3";
export { className as class };
let className: $$Props["class"] = undefined
export let tag: $$Props["tag"] = "h3"
export { className as class }
</script>

<svelte:element
Expand Down
10 changes: 5 additions & 5 deletions src/lib/components/ui/card/card.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
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<HTMLDivElement>;
type $$Props = HTMLAttributes<HTMLDivElement>
let className: $$Props["class"] = undefined;
export { className as class };
let className: $$Props["class"] = undefined
export { className as class }
</script>

<div
Expand Down
18 changes: 9 additions & 9 deletions src/lib/components/ui/card/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Root from "./card.svelte";
import Content from "./card-content.svelte";
import Description from "./card-description.svelte";
import Footer from "./card-footer.svelte";
import Header from "./card-header.svelte";
import Title from "./card-title.svelte";
import Root from "./card.svelte"
import Content from "./card-content.svelte"
import Description from "./card-description.svelte"
import Footer from "./card-footer.svelte"
import Header from "./card-header.svelte"
import Title from "./card-title.svelte"

export {
Root,
Expand All @@ -18,7 +18,7 @@ export {
Description as CardDescription,
Footer as CardFooter,
Header as CardHeader,
Title as CardTitle,
};
Title as CardTitle
}

export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
12 changes: 6 additions & 6 deletions src/lib/components/ui/collapsible/collapsible-content.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import { Collapsible as CollapsiblePrimitive } from "bits-ui";
import { slide } from "svelte/transition";
import { Collapsible as CollapsiblePrimitive } from "bits-ui"
import { slide } from "svelte/transition"
type $$Props = CollapsiblePrimitive.ContentProps;
type $$Props = CollapsiblePrimitive.ContentProps
export let transition: $$Props["transition"] = slide;
export let transition: $$Props["transition"] = slide
export let transitionConfig: $$Props["transitionConfig"] = {
duration: 150,
};
duration: 150
}
</script>

<CollapsiblePrimitive.Content {transition} {transitionConfig} {...$$restProps}>
Expand Down
12 changes: 6 additions & 6 deletions src/lib/components/ui/collapsible/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Collapsible as CollapsiblePrimitive } from "bits-ui";
import Content from "./collapsible-content.svelte";
import { Collapsible as CollapsiblePrimitive } from "bits-ui"
import Content from "./collapsible-content.svelte"

const Root = CollapsiblePrimitive.Root;
const Trigger = CollapsiblePrimitive.Trigger;
const Root = CollapsiblePrimitive.Root
const Trigger = CollapsiblePrimitive.Trigger

export {
Root,
Expand All @@ -11,5 +11,5 @@ export {
//
Root as Collapsible,
Content as CollapsibleContent,
Trigger as CollapsibleTrigger,
};
Trigger as CollapsibleTrigger
}
14 changes: 7 additions & 7 deletions src/lib/components/ui/command/command-dialog.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import type { Dialog as DialogPrimitive } from "bits-ui";
import type { Command as CommandPrimitive } from "cmdk-sv";
import Command from "./command.svelte";
import * as Dialog from "$lib/components/ui/dialog/index.js";
import type { Dialog as DialogPrimitive } from "bits-ui"
import type { Command as CommandPrimitive } from "cmdk-sv"
import Command from "./command.svelte"
import * as Dialog from "$lib/components/ui/dialog/index.js"
type $$Props = DialogPrimitive.Props & CommandPrimitive.CommandProps;
type $$Props = DialogPrimitive.Props & CommandPrimitive.CommandProps
export let open: $$Props["open"] = false;
export let value: $$Props["value"] = undefined;
export let open: $$Props["open"] = false
export let value: $$Props["value"] = undefined
</script>

<Dialog.Root bind:open {...$$restProps}>
Expand Down
10 changes: 5 additions & 5 deletions src/lib/components/ui/command/command-empty.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils.js";
import { Command as CommandPrimitive } from "cmdk-sv"
import { cn } from "$lib/utils.js"
type $$Props = CommandPrimitive.EmptyProps;
let className: string | undefined | null = undefined;
export { className as class };
type $$Props = CommandPrimitive.EmptyProps
let className: string | undefined | null = undefined
export { className as class }
</script>

<CommandPrimitive.Empty class={cn("py-6 text-center text-sm", className)} {...$$restProps}>
Expand Down
10 changes: 5 additions & 5 deletions src/lib/components/ui/command/command-group.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils.js";
type $$Props = CommandPrimitive.GroupProps;
import { Command as CommandPrimitive } from "cmdk-sv"
import { cn } from "$lib/utils.js"
type $$Props = CommandPrimitive.GroupProps
let className: string | undefined | null = undefined;
export { className as class };
let className: string | undefined | null = undefined
export { className as class }
</script>

<CommandPrimitive.Group
Expand Down
12 changes: 6 additions & 6 deletions src/lib/components/ui/command/command-item.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils.js";
import { Command as CommandPrimitive } from "cmdk-sv"
import { cn } from "$lib/utils.js"
type $$Props = CommandPrimitive.ItemProps;
type $$Props = CommandPrimitive.ItemProps
export let asChild = false;
export let asChild = false
let className: string | undefined | null = undefined;
export { className as class };
let className: string | undefined | null = undefined
export { className as class }
</script>

<CommandPrimitive.Item
Expand Down
10 changes: 5 additions & 5 deletions src/lib/components/ui/command/command-list.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils.js";
import { Command as CommandPrimitive } from "cmdk-sv"
import { cn } from "$lib/utils.js"
type $$Props = CommandPrimitive.ListProps;
let className: string | undefined | null = undefined;
export { className as class };
type $$Props = CommandPrimitive.ListProps
let className: string | undefined | null = undefined
export { className as class }
</script>

<CommandPrimitive.List
Expand Down
10 changes: 5 additions & 5 deletions src/lib/components/ui/command/command-separator.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils.js";
import { Command as CommandPrimitive } from "cmdk-sv"
import { cn } from "$lib/utils.js"
type $$Props = CommandPrimitive.SeparatorProps;
let className: string | undefined | null = undefined;
export { className as class };
type $$Props = CommandPrimitive.SeparatorProps
let className: string | undefined | null = undefined
export { className as class }
</script>

<CommandPrimitive.Separator class={cn("bg-border -mx-1 h-px", className)} {...$$restProps} />
10 changes: 5 additions & 5 deletions src/lib/components/ui/command/command-shortcut.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
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<HTMLSpanElement>;
type $$Props = HTMLAttributes<HTMLSpanElement>
let className: string | undefined | null = undefined;
export { className as class };
let className: string | undefined | null = undefined
export { className as class }
</script>

<span
Expand Down
12 changes: 6 additions & 6 deletions src/lib/components/ui/command/command.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils.js";
import { Command as CommandPrimitive } from "cmdk-sv"
import { cn } from "$lib/utils.js"
type $$Props = CommandPrimitive.CommandProps;
type $$Props = CommandPrimitive.CommandProps
export let value: $$Props["value"] = undefined;
export let value: $$Props["value"] = undefined
let className: string | undefined | null = undefined;
export { className as class };
let className: string | undefined | null = undefined
export { className as class }
</script>

<CommandPrimitive.Root
Expand Down
Loading

0 comments on commit 759d9e9

Please sign in to comment.