Skip to content

Commit

Permalink
Format and Organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
OrigamingWasTaken committed Oct 16, 2024
1 parent 211c6f4 commit d833c84
Show file tree
Hide file tree
Showing 65 changed files with 183 additions and 186 deletions.
18 changes: 9 additions & 9 deletions frontend/src/lib/components/ui/alert-dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ const Root = AlertDialogPrimitive.Root;
const Trigger = AlertDialogPrimitive.Trigger;

export {
Action,
//
Root as AlertDialog, Action as AlertDialogAction,
Cancel as AlertDialogCancel, Content as AlertDialogContent,
Description as AlertDialogDescription, Footer as AlertDialogFooter,
Header as AlertDialogHeader, Overlay as AlertDialogOverlay, Portal as AlertDialogPortal, Title as AlertDialogTitle, Trigger as AlertDialogTrigger, Cancel, Content,
Description, Footer,
Header, Overlay, Portal, Root,
Title, Trigger
Action,
//
Root as AlertDialog, Action as AlertDialogAction,
Cancel as AlertDialogCancel, Content as AlertDialogContent,
Description as AlertDialogDescription, Footer as AlertDialogFooter,
Header as AlertDialogHeader, Overlay as AlertDialogOverlay, Portal as AlertDialogPortal, Title as AlertDialogTitle, Trigger as AlertDialogTrigger, Cancel, Content,
Description, Footer,
Header, Overlay, Portal, Root,
Title, Trigger
};

8 changes: 4 additions & 4 deletions frontend/src/lib/components/ui/alert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export type Variant = VariantProps<typeof alertVariants>['variant'];
export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';

export {
//
Root as Alert,
Description as AlertDescription,
Title as AlertTitle, Description, Root, Title
//
Root as Alert,
Description as AlertDescription,
Title as AlertTitle, Description, Root, Title
};

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { cn } from '$lib/utils.js';
import Ellipsis from 'lucide-svelte/icons/ellipsis';
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
type $$Props = HTMLAttributes<HTMLSpanElement> & {
el?: HTMLSpanElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { HTMLLiAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
import type { HTMLLiAttributes } from 'svelte/elements';
type $$Props = HTMLLiAttributes & {
el?: HTMLLIElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { HTMLAnchorAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
import type { HTMLAnchorAttributes } from 'svelte/elements';
type $$Props = HTMLAnchorAttributes & {
el?: HTMLAnchorElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { HTMLOlAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
import type { HTMLOlAttributes } from 'svelte/elements';
type $$Props = HTMLOlAttributes & {
el?: HTMLOListElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
type $$Props = HTMLAttributes<HTMLSpanElement> & {
el?: HTMLSpanElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { HTMLLiAttributes } from 'svelte/elements';
import ChevronRight from 'lucide-svelte/icons/chevron-right';
import { cn } from '$lib/utils.js';
import ChevronRight from 'lucide-svelte/icons/chevron-right';
import type { HTMLLiAttributes } from 'svelte/elements';
type $$Props = HTMLLiAttributes & {
el?: HTMLLIElement;
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/lib/components/ui/breadcrumb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import Separator from './breadcrumb-separator.svelte';
import Root from './breadcrumb.svelte';

export {
//
Root as Breadcrumb,
Ellipsis as BreadcrumbEllipsis,
Item as BreadcrumbItem, Link as BreadcrumbLink,
List as BreadcrumbList,
Page as BreadcrumbPage, Separator as BreadcrumbSeparator, Ellipsis,
Item, Link,
List,
Page, Root, Separator
//
Root as Breadcrumb,
Ellipsis as BreadcrumbEllipsis,
Item as BreadcrumbItem, Link as BreadcrumbLink,
List as BreadcrumbList,
Page as BreadcrumbPage, Separator as BreadcrumbSeparator, Ellipsis,
Item, Link,
List,
Page, Root, Separator
};

2 changes: 1 addition & 1 deletion frontend/src/lib/components/ui/button/button.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { cn } from '$lib/utils.js';
import { Button as ButtonPrimitive } from 'bits-ui';
import { type Events, type Props, buttonVariants } from './index.js';
import { cn } from '$lib/utils.js';
type $$Props = Props;
type $$Events = Events;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/components/ui/button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Props = ButtonPrimitive.Props & {
type Events = ButtonPrimitive.Events;

export {
//
Root as Button, Root, buttonVariants, type Events as ButtonEvents, type Props as ButtonProps, type Events, type Props
//
Root as Button, Root, buttonVariants, type Events as ButtonEvents, type Props as ButtonProps, type Events, type Props
};

20 changes: 10 additions & 10 deletions frontend/src/lib/components/ui/card/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import Title from './card-title.svelte';
import Root from './card.svelte';

export {
//
Root as Card,
Content as CardContent,
Description as CardDescription,
Footer as CardFooter,
Header as CardHeader,
Title as CardTitle, Content,
Description,
Footer,
Header, Root, Title
//
Root as Card,
Content as CardContent,
Description as CardDescription,
Footer as CardFooter,
Header as CardHeader,
Title as CardTitle, Content,
Description,
Footer,
Header, Root, Title
};

export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4 changes: 2 additions & 2 deletions frontend/src/lib/components/ui/checkbox/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Root from './checkbox.svelte';
export {
//
Root as Checkbox, Root
//
Root as Checkbox, Root
};

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Command as CommandPrimitive } from 'cmdk-sv';
import { cn } from '$lib/utils.js';
import { Command as CommandPrimitive } from 'cmdk-sv';
type $$Props = CommandPrimitive.EmptyProps;
let className: string | undefined | null = undefined;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/ui/command/command-item.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Command as CommandPrimitive } from 'cmdk-sv';
import { cn } from '$lib/utils.js';
import { Command as CommandPrimitive } from 'cmdk-sv';
type $$Props = CommandPrimitive.ItemProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Command as CommandPrimitive } from 'cmdk-sv';
import { cn } from '$lib/utils.js';
import { Command as CommandPrimitive } from 'cmdk-sv';
type $$Props = CommandPrimitive.SeparatorProps;
let className: string | undefined | null = undefined;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
type $$Props = HTMLAttributes<HTMLSpanElement>;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/ui/command/command.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Command as CommandPrimitive } from 'cmdk-sv';
import { cn } from '$lib/utils.js';
import { Command as CommandPrimitive } from 'cmdk-sv';
type $$Props = CommandPrimitive.CommandProps;
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/lib/components/ui/command/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import Root from './command.svelte';
const Loading = CommandPrimitive.Loading;

export {
//
Root as Command,
Dialog as CommandDialog,
Empty as CommandEmpty,
Group as CommandGroup, Input as CommandInput, Item as CommandItem, List as CommandList, Loading as CommandLoading, Separator as CommandSeparator,
Shortcut as CommandShortcut, Dialog,
Empty,
Group, Input, Item, List, Loading, Root, Separator,
Shortcut
//
Root as Command,
Dialog as CommandDialog,
Empty as CommandEmpty,
Group as CommandGroup, Input as CommandInput, Item as CommandItem, List as CommandList, Loading as CommandLoading, Separator as CommandSeparator,
Shortcut as CommandShortcut, Dialog,
Empty,
Group, Input, Item, List, Loading, Root, Separator,
Shortcut
};

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Dialog as DialogPrimitive } from 'bits-ui';
import { cn } from '$lib/utils.js';
import { Dialog as DialogPrimitive } from 'bits-ui';
type $$Props = DialogPrimitive.DescriptionProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { cn } from '$lib/utils.js';
import { Dialog as DialogPrimitive } from 'bits-ui';
import { fade } from 'svelte/transition';
import { cn } from '$lib/utils.js';
type $$Props = DialogPrimitive.OverlayProps;
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/lib/components/ui/dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const Trigger = DialogPrimitive.Trigger;
const Close = DialogPrimitive.Close;

export {
Close, Content,
Description,
//
Root as Dialog, Close as DialogClose, Content as DialogContent,
Description as DialogDescription, Footer as DialogFooter,
Header as DialogHeader, Overlay as DialogOverlay, Portal as DialogPortal, Title as DialogTitle, Trigger as DialogTrigger, Footer,
Header, Overlay, Portal, Root,
Title, Trigger
Close, Content,
Description,
//
Root as Dialog, Close as DialogClose, Content as DialogContent,
Description as DialogDescription, Footer as DialogFooter,
Header as DialogHeader, Overlay as DialogOverlay, Portal as DialogPortal, Title as DialogTitle, Trigger as DialogTrigger, Footer,
Header, Overlay, Portal, Root,
Title, Trigger
};

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
import { cn } from '$lib/utils.js';
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
type $$Props = DropdownMenuPrimitive.ItemProps & {
inset?: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { cn } from '$lib/utils.js';
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
import Circle from 'lucide-svelte/icons/circle';
import { cn } from '$lib/utils.js';
type $$Props = DropdownMenuPrimitive.RadioItemProps;
type $$Events = DropdownMenuPrimitive.RadioItemEvents;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
import { cn } from '$lib/utils.js';
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
type $$Props = DropdownMenuPrimitive.SeparatorProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
type $$Props = HTMLAttributes<HTMLSpanElement>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
import { cn, flyAndScale } from '$lib/utils.js';
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
type $$Props = DropdownMenuPrimitive.SubContentProps;
type $$Events = DropdownMenuPrimitive.SubContentEvents;
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/lib/components/ui/dropdown-menu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ const Trigger = DropdownMenuPrimitive.Trigger;
const Group = DropdownMenuPrimitive.Group;

export {
CheckboxItem, Content,
//
Root as DropdownMenu, CheckboxItem as DropdownMenuCheckboxItem, Content as DropdownMenuContent, Group as DropdownMenuGroup, Item as DropdownMenuItem,
Label as DropdownMenuLabel, RadioGroup as DropdownMenuRadioGroup, RadioItem as DropdownMenuRadioItem,
Separator as DropdownMenuSeparator, Shortcut as DropdownMenuShortcut, Sub as DropdownMenuSub, SubContent as DropdownMenuSubContent,
SubTrigger as DropdownMenuSubTrigger, Trigger as DropdownMenuTrigger, Group, Item,
Label, RadioGroup, RadioItem, Root, Separator, Shortcut, Sub, SubContent,
SubTrigger, Trigger
CheckboxItem, Content,
//
Root as DropdownMenu, CheckboxItem as DropdownMenuCheckboxItem, Content as DropdownMenuContent, Group as DropdownMenuGroup, Item as DropdownMenuItem,
Label as DropdownMenuLabel, RadioGroup as DropdownMenuRadioGroup, RadioItem as DropdownMenuRadioItem,
Separator as DropdownMenuSeparator, Shortcut as DropdownMenuShortcut, Sub as DropdownMenuSub, SubContent as DropdownMenuSubContent,
SubTrigger as DropdownMenuSubTrigger, Trigger as DropdownMenuTrigger, Group, Item,
Label, RadioGroup, RadioItem, Root, Separator, Shortcut, Sub, SubContent,
SubTrigger, Trigger
};

4 changes: 2 additions & 2 deletions frontend/src/lib/components/ui/input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type InputEvents = {
};

export {
//
Root as Input, Root
//
Root as Input, Root
};

4 changes: 2 additions & 2 deletions frontend/src/lib/components/ui/label/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Root from './label.svelte';

export {
//
Root as Label, Root
//
Root as Label, Root
};

2 changes: 1 addition & 1 deletion frontend/src/lib/components/ui/label/label.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Label as LabelPrimitive } from 'bits-ui';
import { cn } from '$lib/utils.js';
import { Label as LabelPrimitive } from 'bits-ui';
type $$Props = LabelPrimitive.Props;
type $$Events = LabelPrimitive.Events;
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/lib/components/ui/popover/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const Trigger = PopoverPrimitive.Trigger;
const Close = PopoverPrimitive.Close;

export {
Close, Content,
//
Root as Popover, Close as PopoverClose, Content as PopoverContent,
Trigger as PopoverTrigger, Root, Trigger
Close, Content,
//
Root as Popover, Close as PopoverClose, Content as PopoverContent,
Trigger as PopoverTrigger, Root, Trigger
};

4 changes: 2 additions & 2 deletions frontend/src/lib/components/ui/progress/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Root from './progress.svelte';

export {
//
Root as Progress, Root
//
Root as Progress, Root
};

Loading

0 comments on commit d833c84

Please sign in to comment.