@engineio/ui 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +274 -0
  3. package/dist/components/brand/engine-icon.svelte +75 -0
  4. package/dist/components/brand/engine-icon.svelte.d.ts +25 -0
  5. package/dist/components/brand/engine-wordmark.svelte +104 -0
  6. package/dist/components/brand/engine-wordmark.svelte.d.ts +16 -0
  7. package/dist/components/brand/index.d.ts +3 -0
  8. package/dist/components/brand/index.js +3 -0
  9. package/dist/components/ui/alert/alert-description.svelte +22 -0
  10. package/dist/components/ui/alert/alert-description.svelte.d.ts +5 -0
  11. package/dist/components/ui/alert/alert-title.svelte +31 -0
  12. package/dist/components/ui/alert/alert-title.svelte.d.ts +8 -0
  13. package/dist/components/ui/alert/alert.svelte +114 -0
  14. package/dist/components/ui/alert/alert.svelte.d.ts +70 -0
  15. package/dist/components/ui/alert/index.d.ts +5 -0
  16. package/dist/components/ui/alert/index.js +7 -0
  17. package/dist/components/ui/badge/badge.svelte +96 -0
  18. package/dist/components/ui/badge/badge.svelte.d.ts +88 -0
  19. package/dist/components/ui/badge/index.d.ts +2 -0
  20. package/dist/components/ui/badge/index.js +2 -0
  21. package/dist/components/ui/button/button.svelte +137 -0
  22. package/dist/components/ui/button/button.svelte.d.ts +154 -0
  23. package/dist/components/ui/button/index.d.ts +2 -0
  24. package/dist/components/ui/button/index.js +4 -0
  25. package/dist/components/ui/card/card-content.svelte +16 -0
  26. package/dist/components/ui/card/card-content.svelte.d.ts +5 -0
  27. package/dist/components/ui/card/card-description.svelte +20 -0
  28. package/dist/components/ui/card/card-description.svelte.d.ts +5 -0
  29. package/dist/components/ui/card/card-footer.svelte +20 -0
  30. package/dist/components/ui/card/card-footer.svelte.d.ts +5 -0
  31. package/dist/components/ui/card/card-header.svelte +20 -0
  32. package/dist/components/ui/card/card-header.svelte.d.ts +5 -0
  33. package/dist/components/ui/card/card-title.svelte +25 -0
  34. package/dist/components/ui/card/card-title.svelte.d.ts +8 -0
  35. package/dist/components/ui/card/card.svelte +23 -0
  36. package/dist/components/ui/card/card.svelte.d.ts +5 -0
  37. package/dist/components/ui/card/index.d.ts +7 -0
  38. package/dist/components/ui/card/index.js +9 -0
  39. package/dist/components/ui/checkbox/checkbox.svelte +38 -0
  40. package/dist/components/ui/checkbox/checkbox.svelte.d.ts +4 -0
  41. package/dist/components/ui/checkbox/index.d.ts +2 -0
  42. package/dist/components/ui/checkbox/index.js +4 -0
  43. package/dist/components/ui/dialog/dialog-content.svelte +41 -0
  44. package/dist/components/ui/dialog/dialog-content.svelte.d.ts +9 -0
  45. package/dist/components/ui/dialog/dialog-description.svelte +16 -0
  46. package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -0
  47. package/dist/components/ui/dialog/dialog-footer.svelte +23 -0
  48. package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +5 -0
  49. package/dist/components/ui/dialog/dialog-header.svelte +20 -0
  50. package/dist/components/ui/dialog/dialog-header.svelte.d.ts +5 -0
  51. package/dist/components/ui/dialog/dialog-overlay.svelte +19 -0
  52. package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
  53. package/dist/components/ui/dialog/dialog-title.svelte +16 -0
  54. package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -0
  55. package/dist/components/ui/dialog/index.d.ts +12 -0
  56. package/dist/components/ui/dialog/index.js +14 -0
  57. package/dist/components/ui/input/index.d.ts +2 -0
  58. package/dist/components/ui/input/index.js +4 -0
  59. package/dist/components/ui/input/input.svelte +52 -0
  60. package/dist/components/ui/input/input.svelte.d.ts +13 -0
  61. package/dist/components/ui/label/index.d.ts +2 -0
  62. package/dist/components/ui/label/index.js +4 -0
  63. package/dist/components/ui/label/label.svelte +19 -0
  64. package/dist/components/ui/label/label.svelte.d.ts +4 -0
  65. package/dist/components/ui/popover/index.d.ts +6 -0
  66. package/dist/components/ui/popover/index.js +8 -0
  67. package/dist/components/ui/popover/popover-content.svelte +28 -0
  68. package/dist/components/ui/popover/popover-content.svelte.d.ts +7 -0
  69. package/dist/components/ui/progress/index.d.ts +2 -0
  70. package/dist/components/ui/progress/index.js +4 -0
  71. package/dist/components/ui/progress/progress.svelte +25 -0
  72. package/dist/components/ui/progress/progress.svelte.d.ts +4 -0
  73. package/dist/components/ui/radio-group/index.d.ts +3 -0
  74. package/dist/components/ui/radio-group/index.js +5 -0
  75. package/dist/components/ui/radio-group/radio-group-item.svelte +28 -0
  76. package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -0
  77. package/dist/components/ui/radio-group/radio-group.svelte +13 -0
  78. package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -0
  79. package/dist/components/ui/select/index.d.ts +11 -0
  80. package/dist/components/ui/select/index.js +13 -0
  81. package/dist/components/ui/select/select-content.svelte +39 -0
  82. package/dist/components/ui/select/select-content.svelte.d.ts +7 -0
  83. package/dist/components/ui/select/select-group-heading.svelte +16 -0
  84. package/dist/components/ui/select/select-group-heading.svelte.d.ts +4 -0
  85. package/dist/components/ui/select/select-item.svelte +37 -0
  86. package/dist/components/ui/select/select-item.svelte.d.ts +4 -0
  87. package/dist/components/ui/select/select-scroll-down-button.svelte +19 -0
  88. package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -0
  89. package/dist/components/ui/select/select-scroll-up-button.svelte +19 -0
  90. package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -0
  91. package/dist/components/ui/select/select-separator.svelte +13 -0
  92. package/dist/components/ui/select/select-separator.svelte.d.ts +4 -0
  93. package/dist/components/ui/select/select-trigger.svelte +24 -0
  94. package/dist/components/ui/select/select-trigger.svelte.d.ts +4 -0
  95. package/dist/components/ui/separator/index.d.ts +2 -0
  96. package/dist/components/ui/separator/index.js +4 -0
  97. package/dist/components/ui/separator/separator.svelte +22 -0
  98. package/dist/components/ui/separator/separator.svelte.d.ts +4 -0
  99. package/dist/components/ui/skeleton/index.d.ts +2 -0
  100. package/dist/components/ui/skeleton/index.js +4 -0
  101. package/dist/components/ui/skeleton/skeleton.svelte +17 -0
  102. package/dist/components/ui/skeleton/skeleton.svelte.d.ts +5 -0
  103. package/dist/components/ui/switch/index.d.ts +2 -0
  104. package/dist/components/ui/switch/index.js +4 -0
  105. package/dist/components/ui/switch/switch.svelte +27 -0
  106. package/dist/components/ui/switch/switch.svelte.d.ts +4 -0
  107. package/dist/components/ui/table/index.d.ts +9 -0
  108. package/dist/components/ui/table/index.js +11 -0
  109. package/dist/components/ui/table/table-body.svelte +22 -0
  110. package/dist/components/ui/table/table-body.svelte.d.ts +5 -0
  111. package/dist/components/ui/table/table-caption.svelte +21 -0
  112. package/dist/components/ui/table/table-caption.svelte.d.ts +5 -0
  113. package/dist/components/ui/table/table-cell.svelte +33 -0
  114. package/dist/components/ui/table/table-cell.svelte.d.ts +5 -0
  115. package/dist/components/ui/table/table-footer.svelte +29 -0
  116. package/dist/components/ui/table/table-footer.svelte.d.ts +5 -0
  117. package/dist/components/ui/table/table-head.svelte +36 -0
  118. package/dist/components/ui/table/table-head.svelte.d.ts +5 -0
  119. package/dist/components/ui/table/table-header.svelte +23 -0
  120. package/dist/components/ui/table/table-header.svelte.d.ts +5 -0
  121. package/dist/components/ui/table/table-row.svelte +32 -0
  122. package/dist/components/ui/table/table-row.svelte.d.ts +5 -0
  123. package/dist/components/ui/table/table.svelte +36 -0
  124. package/dist/components/ui/table/table.svelte.d.ts +5 -0
  125. package/dist/components/ui/tabs/index.d.ts +6 -0
  126. package/dist/components/ui/tabs/index.js +8 -0
  127. package/dist/components/ui/tabs/tabs-content.svelte +19 -0
  128. package/dist/components/ui/tabs/tabs-content.svelte.d.ts +4 -0
  129. package/dist/components/ui/tabs/tabs-list.svelte +27 -0
  130. package/dist/components/ui/tabs/tabs-list.svelte.d.ts +7 -0
  131. package/dist/components/ui/tabs/tabs-trigger.svelte +29 -0
  132. package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +7 -0
  133. package/dist/components/ui/textarea/index.d.ts +2 -0
  134. package/dist/components/ui/textarea/index.js +4 -0
  135. package/dist/components/ui/textarea/textarea.svelte +22 -0
  136. package/dist/components/ui/textarea/textarea.svelte.d.ts +5 -0
  137. package/dist/components/ui/tooltip/index.d.ts +6 -0
  138. package/dist/components/ui/tooltip/index.js +8 -0
  139. package/dist/components/ui/tooltip/tooltip-content.svelte +21 -0
  140. package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +4 -0
  141. package/dist/fonts/ProximaNova-ExtraCondensedThin.otf +0 -0
  142. package/dist/fonts/ProximaNovaBlack.otf +0 -0
  143. package/dist/fonts/ProximaNovaBold.otf +0 -0
  144. package/dist/fonts/ProximaNovaCondensedBlack.otf +0 -0
  145. package/dist/fonts/ProximaNovaExtraCondensedBlack.otf +0 -0
  146. package/dist/fonts/ProximaNovaRegular.otf +0 -0
  147. package/dist/fonts/ProximaNovaSemibold.otf +0 -0
  148. package/dist/index.d.ts +45 -0
  149. package/dist/index.js +44 -0
  150. package/dist/styles/fonts.css +116 -0
  151. package/dist/styles/index.css +28 -0
  152. package/dist/styles/tokens.css +221 -0
  153. package/dist/styles/utilities.css +129 -0
  154. package/dist/utils.d.ts +18 -0
  155. package/dist/utils.js +22 -0
  156. package/package.json +92 -0
@@ -0,0 +1,4 @@
1
+ import Root, { buttonVariants, } from "./button.svelte";
2
+ export { Root,
3
+ //
4
+ Root as Button, buttonVariants, };
@@ -0,0 +1,16 @@
1
+ <script lang="ts">
2
+ import type { WithElementRef } from "../../../utils.js"
3
+ import { cn } from "../../../utils.js"
4
+ import type { HTMLAttributes } from "svelte/elements"
5
+
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ children,
10
+ ...restProps
11
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props()
12
+ </script>
13
+
14
+ <div bind:this={ref} class={cn("p-6", className)} {...restProps}>
15
+ {@render children?.()}
16
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ declare const CardContent: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type CardContent = ReturnType<typeof CardContent>;
5
+ export default CardContent;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import type { WithElementRef } from "../../../utils.js"
3
+ import { cn } from "../../../utils.js"
4
+ import type { HTMLAttributes } from "svelte/elements"
5
+
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ children,
10
+ ...restProps
11
+ }: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props()
12
+ </script>
13
+
14
+ <p
15
+ bind:this={ref}
16
+ class={cn("text-muted-foreground text-sm", className)}
17
+ {...restProps}
18
+ >
19
+ {@render children?.()}
20
+ </p>
@@ -0,0 +1,5 @@
1
+ import type { WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ declare const CardDescription: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLParagraphElement>>, {}, "ref">;
4
+ type CardDescription = ReturnType<typeof CardDescription>;
5
+ export default CardDescription;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import type { WithElementRef } from "../../../utils.js"
3
+ import { cn } from "../../../utils.js"
4
+ import type { HTMLAttributes } from "svelte/elements"
5
+
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ children,
10
+ ...restProps
11
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props()
12
+ </script>
13
+
14
+ <div
15
+ bind:this={ref}
16
+ class={cn("flex items-center p-6 pt-0", className)}
17
+ {...restProps}
18
+ >
19
+ {@render children?.()}
20
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ declare const CardFooter: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type CardFooter = ReturnType<typeof CardFooter>;
5
+ export default CardFooter;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import type { WithElementRef } from "../../../utils.js"
3
+ import { cn } from "../../../utils.js"
4
+ import type { HTMLAttributes } from "svelte/elements"
5
+
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ children,
10
+ ...restProps
11
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props()
12
+ </script>
13
+
14
+ <div
15
+ bind:this={ref}
16
+ class={cn("flex flex-col space-y-1.5 p-6 pb-0", className)}
17
+ {...restProps}
18
+ >
19
+ {@render children?.()}
20
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ declare const CardHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type CardHeader = ReturnType<typeof CardHeader>;
5
+ export default CardHeader;
@@ -0,0 +1,25 @@
1
+ <script lang="ts">
2
+ import type { WithElementRef } from "../../../utils.js"
3
+ import { cn } from "../../../utils.js"
4
+ import type { HTMLAttributes } from "svelte/elements"
5
+
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ level = 3,
10
+ children,
11
+ ...restProps
12
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
13
+ level?: 1 | 2 | 3 | 4 | 5 | 6
14
+ } = $props()
15
+ </script>
16
+
17
+ <div
18
+ role="heading"
19
+ aria-level={level}
20
+ bind:this={ref}
21
+ class={cn("text-2xl font-semibold leading-none tracking-tight", className)}
22
+ {...restProps}
23
+ >
24
+ {@render children?.()}
25
+ </div>
@@ -0,0 +1,8 @@
1
+ import type { WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
4
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
5
+ };
6
+ declare const CardTitle: import("svelte").Component<$$ComponentProps, {}, "ref">;
7
+ type CardTitle = ReturnType<typeof CardTitle>;
8
+ export default CardTitle;
@@ -0,0 +1,23 @@
1
+ <script lang="ts">
2
+ import type { WithElementRef } from "../../../utils.js"
3
+ import { cn } from "../../../utils.js"
4
+ import type { HTMLAttributes } from "svelte/elements"
5
+
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ children,
10
+ ...restProps
11
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props()
12
+ </script>
13
+
14
+ <div
15
+ bind:this={ref}
16
+ class={cn(
17
+ "bg-card text-card-foreground rounded-card",
18
+ className,
19
+ )}
20
+ {...restProps}
21
+ >
22
+ {@render children?.()}
23
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ declare const Card: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type Card = ReturnType<typeof Card>;
5
+ export default Card;
@@ -0,0 +1,7 @@
1
+ import Root from "./card.svelte";
2
+ import Content from "./card-content.svelte";
3
+ import Description from "./card-description.svelte";
4
+ import Footer from "./card-footer.svelte";
5
+ import Header from "./card-header.svelte";
6
+ import Title from "./card-title.svelte";
7
+ export { Root, Content, Description, Footer, Header, Title, Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
@@ -0,0 +1,9 @@
1
+ import Root from "./card.svelte";
2
+ import Content from "./card-content.svelte";
3
+ import Description from "./card-description.svelte";
4
+ import Footer from "./card-footer.svelte";
5
+ import Header from "./card-header.svelte";
6
+ import Title from "./card-title.svelte";
7
+ export { Root, Content, Description, Footer, Header, Title,
8
+ //
9
+ Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
@@ -0,0 +1,38 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js"
3
+ import Check from "@lucide/svelte/icons/check"
4
+ import Minus from "@lucide/svelte/icons/minus"
5
+ import {
6
+ Checkbox as CheckboxPrimitive,
7
+ type WithoutChildrenOrChild,
8
+ } from "bits-ui"
9
+
10
+ let {
11
+ ref = $bindable(null),
12
+ checked = $bindable(false),
13
+ indeterminate = $bindable(false),
14
+ class: className,
15
+ ...restProps
16
+ }: WithoutChildrenOrChild<CheckboxPrimitive.RootProps> = $props()
17
+ </script>
18
+
19
+ <CheckboxPrimitive.Root
20
+ bind:ref
21
+ class={cn(
22
+ "peer box-content size-4 shrink-0 rounded-[6px] border-[1.5px] border-grey-500 transition-colors duration-140 ease-brand data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:ring-ring focus-visible:ring-offset-background focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-38 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-38",
23
+ className,
24
+ )}
25
+ bind:checked
26
+ bind:indeterminate
27
+ {...restProps}
28
+ >
29
+ {#snippet children({ checked, indeterminate })}
30
+ <div class="flex size-4 items-center justify-center text-current">
31
+ {#if indeterminate}
32
+ <Minus class="size-3.5" />
33
+ {:else}
34
+ <Check class={cn("size-3.5", !checked && "text-transparent")} />
35
+ {/if}
36
+ </div>
37
+ {/snippet}
38
+ </CheckboxPrimitive.Root>
@@ -0,0 +1,4 @@
1
+ import { Checkbox as CheckboxPrimitive } from "bits-ui";
2
+ declare const Checkbox: import("svelte").Component<Omit<Omit<CheckboxPrimitive.RootProps, "child">, "children">, {}, "ref" | "checked" | "indeterminate">;
3
+ type Checkbox = ReturnType<typeof Checkbox>;
4
+ export default Checkbox;
@@ -0,0 +1,2 @@
1
+ import Root from "./checkbox.svelte";
2
+ export { Root, Root as Checkbox, };
@@ -0,0 +1,4 @@
1
+ import Root from "./checkbox.svelte";
2
+ export { Root,
3
+ //
4
+ Root as Checkbox, };
@@ -0,0 +1,41 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js"
3
+ import X from "@lucide/svelte/icons/x"
4
+ import {
5
+ Dialog as DialogPrimitive,
6
+ type WithoutChildrenOrChild,
7
+ } from "bits-ui"
8
+ import type { Snippet } from "svelte"
9
+ import * as Dialog from "./index.js"
10
+
11
+ let {
12
+ ref = $bindable(null),
13
+ class: className,
14
+ portalProps,
15
+ children,
16
+ ...restProps
17
+ }: WithoutChildrenOrChild<DialogPrimitive.ContentProps> & {
18
+ portalProps?: DialogPrimitive.PortalProps
19
+ children: Snippet
20
+ } = $props()
21
+ </script>
22
+
23
+ <Dialog.Portal {...portalProps}>
24
+ <Dialog.Overlay />
25
+ <DialogPrimitive.Content
26
+ bind:ref
27
+ class={cn(
28
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 bg-card fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-card border-[1.5px] border-grey-600 p-7 shadow-modal duration-220 ease-brand-out",
29
+ className,
30
+ )}
31
+ {...restProps}
32
+ >
33
+ {@render children?.()}
34
+ <DialogPrimitive.Close
35
+ class="ring-offset-background focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"
36
+ >
37
+ <X class="size-4" />
38
+ <span class="sr-only">Close</span>
39
+ </DialogPrimitive.Close>
40
+ </DialogPrimitive.Content>
41
+ </Dialog.Portal>
@@ -0,0 +1,9 @@
1
+ import { Dialog as DialogPrimitive, type WithoutChildrenOrChild } from "bits-ui";
2
+ import type { Snippet } from "svelte";
3
+ type $$ComponentProps = WithoutChildrenOrChild<DialogPrimitive.ContentProps> & {
4
+ portalProps?: DialogPrimitive.PortalProps;
5
+ children: Snippet;
6
+ };
7
+ declare const DialogContent: import("svelte").Component<$$ComponentProps, {}, "ref">;
8
+ type DialogContent = ReturnType<typeof DialogContent>;
9
+ export default DialogContent;
@@ -0,0 +1,16 @@
1
+ <script lang="ts">
2
+ import { Dialog as DialogPrimitive } from "bits-ui";
3
+ import { cn } from "../../../utils.js";
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: DialogPrimitive.DescriptionProps = $props();
10
+ </script>
11
+
12
+ <DialogPrimitive.Description
13
+ bind:ref
14
+ class={cn("text-muted-foreground text-sm", className)}
15
+ {...restProps}
16
+ />
@@ -0,0 +1,4 @@
1
+ import { Dialog as DialogPrimitive } from "bits-ui";
2
+ declare const DialogDescription: import("svelte").Component<DialogPrimitive.DescriptionProps, {}, "ref">;
3
+ type DialogDescription = ReturnType<typeof DialogDescription>;
4
+ export default DialogDescription;
@@ -0,0 +1,23 @@
1
+ <script lang="ts">
2
+ import type { WithElementRef } from "../../../utils.js"
3
+ import { cn } from "../../../utils.js"
4
+ import type { HTMLAttributes } from "svelte/elements"
5
+
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ children,
10
+ ...restProps
11
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props()
12
+ </script>
13
+
14
+ <div
15
+ bind:this={ref}
16
+ class={cn(
17
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
18
+ className,
19
+ )}
20
+ {...restProps}
21
+ >
22
+ {@render children?.()}
23
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ declare const DialogFooter: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type DialogFooter = ReturnType<typeof DialogFooter>;
5
+ export default DialogFooter;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import type { WithElementRef } from "../../../utils.js"
3
+ import { cn } from "../../../utils.js"
4
+ import type { HTMLAttributes } from "svelte/elements"
5
+
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ children,
10
+ ...restProps
11
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props()
12
+ </script>
13
+
14
+ <div
15
+ bind:this={ref}
16
+ class={cn("flex flex-col space-y-1.5 text-center sm:text-left", className)}
17
+ {...restProps}
18
+ >
19
+ {@render children?.()}
20
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ declare const DialogHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type DialogHeader = ReturnType<typeof DialogHeader>;
5
+ export default DialogHeader;
@@ -0,0 +1,19 @@
1
+ <script lang="ts">
2
+ import { Dialog as DialogPrimitive } from "bits-ui";
3
+ import { cn } from "../../../utils.js";
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: DialogPrimitive.OverlayProps = $props();
10
+ </script>
11
+
12
+ <DialogPrimitive.Overlay
13
+ bind:ref
14
+ class={cn(
15
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-[rgb(10_10_10/0.72)] backdrop-blur-[18px]",
16
+ className
17
+ )}
18
+ {...restProps}
19
+ />
@@ -0,0 +1,4 @@
1
+ import { Dialog as DialogPrimitive } from "bits-ui";
2
+ declare const DialogOverlay: import("svelte").Component<DialogPrimitive.OverlayProps, {}, "ref">;
3
+ type DialogOverlay = ReturnType<typeof DialogOverlay>;
4
+ export default DialogOverlay;
@@ -0,0 +1,16 @@
1
+ <script lang="ts">
2
+ import { Dialog as DialogPrimitive } from "bits-ui";
3
+ import { cn } from "../../../utils.js";
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: DialogPrimitive.TitleProps = $props();
10
+ </script>
11
+
12
+ <DialogPrimitive.Title
13
+ bind:ref
14
+ class={cn("text-lg font-semibold leading-none tracking-tight", className)}
15
+ {...restProps}
16
+ />
@@ -0,0 +1,4 @@
1
+ import { Dialog as DialogPrimitive } from "bits-ui";
2
+ declare const DialogTitle: import("svelte").Component<DialogPrimitive.TitleProps, {}, "ref">;
3
+ type DialogTitle = ReturnType<typeof DialogTitle>;
4
+ export default DialogTitle;
@@ -0,0 +1,12 @@
1
+ import { Dialog as DialogPrimitive } from "bits-ui";
2
+ import Title from "./dialog-title.svelte";
3
+ import Footer from "./dialog-footer.svelte";
4
+ import Header from "./dialog-header.svelte";
5
+ import Overlay from "./dialog-overlay.svelte";
6
+ import Content from "./dialog-content.svelte";
7
+ import Description from "./dialog-description.svelte";
8
+ declare const Root: import("svelte").Component<import("bits-ui").AlertDialogRootPropsWithoutHTML, {}, "open">;
9
+ declare const Trigger: import("svelte").Component<DialogPrimitive.TriggerProps, {}, "ref">;
10
+ declare const Close: import("svelte").Component<DialogPrimitive.TriggerProps, {}, "ref">;
11
+ declare const Portal: import("svelte").Component<import("bits-ui").PortalProps, {}, "">;
12
+ export { Root, Title, Portal, Footer, Header, Trigger, Overlay, Content, Description, Close, Root as Dialog, Title as DialogTitle, Portal as DialogPortal, Footer as DialogFooter, Header as DialogHeader, Trigger as DialogTrigger, Overlay as DialogOverlay, Content as DialogContent, Description as DialogDescription, Close as DialogClose, };
@@ -0,0 +1,14 @@
1
+ import { Dialog as DialogPrimitive } from "bits-ui";
2
+ import Title from "./dialog-title.svelte";
3
+ import Footer from "./dialog-footer.svelte";
4
+ import Header from "./dialog-header.svelte";
5
+ import Overlay from "./dialog-overlay.svelte";
6
+ import Content from "./dialog-content.svelte";
7
+ import Description from "./dialog-description.svelte";
8
+ const Root = DialogPrimitive.Root;
9
+ const Trigger = DialogPrimitive.Trigger;
10
+ const Close = DialogPrimitive.Close;
11
+ const Portal = DialogPrimitive.Portal;
12
+ export { Root, Title, Portal, Footer, Header, Trigger, Overlay, Content, Description, Close,
13
+ //
14
+ Root as Dialog, Title as DialogTitle, Portal as DialogPortal, Footer as DialogFooter, Header as DialogHeader, Trigger as DialogTrigger, Overlay as DialogOverlay, Content as DialogContent, Description as DialogDescription, Close as DialogClose, };
@@ -0,0 +1,2 @@
1
+ import Root from "./input.svelte";
2
+ export { Root, Root as Input, };
@@ -0,0 +1,4 @@
1
+ import Root from "./input.svelte";
2
+ export { Root,
3
+ //
4
+ Root as Input, };
@@ -0,0 +1,52 @@
1
+ <script lang="ts">
2
+ import type { WithElementRef } from "../../../utils.js"
3
+ import { cn } from "../../../utils.js"
4
+ import type {
5
+ HTMLInputAttributes,
6
+ HTMLInputTypeAttribute,
7
+ } from "svelte/elements"
8
+
9
+ type InputType = Exclude<HTMLInputTypeAttribute, "file">
10
+
11
+ type Props = WithElementRef<
12
+ Omit<HTMLInputAttributes, "type"> &
13
+ (
14
+ | { type: "file"; files?: FileList }
15
+ | { type?: InputType; files?: undefined }
16
+ )
17
+ >
18
+
19
+ let {
20
+ ref = $bindable(null),
21
+ value = $bindable(),
22
+ type,
23
+ files = $bindable(),
24
+ class: className,
25
+ ...restProps
26
+ }: Props = $props()
27
+ </script>
28
+
29
+ {#if type === "file"}
30
+ <input
31
+ bind:this={ref}
32
+ class={cn(
33
+ "field flex h-10 w-full px-3 py-2 text-[15px] file:border-0 file:bg-transparent file:text-sm file:font-medium",
34
+ className,
35
+ )}
36
+ type="file"
37
+ bind:files
38
+ bind:value
39
+ {...restProps}
40
+ />
41
+ {:else}
42
+ <input
43
+ bind:this={ref}
44
+ class={cn(
45
+ "field flex h-10 w-full px-3 py-2 text-[15px] file:border-0 file:bg-transparent file:text-sm file:font-medium",
46
+ className,
47
+ )}
48
+ {type}
49
+ bind:value
50
+ {...restProps}
51
+ />
52
+ {/if}
@@ -0,0 +1,13 @@
1
+ import type { WithElementRef } from "../../../utils.js";
2
+ import type { HTMLInputAttributes, HTMLInputTypeAttribute } from "svelte/elements";
3
+ type InputType = Exclude<HTMLInputTypeAttribute, "file">;
4
+ type Props = WithElementRef<Omit<HTMLInputAttributes, "type"> & ({
5
+ type: "file";
6
+ files?: FileList;
7
+ } | {
8
+ type?: InputType;
9
+ files?: undefined;
10
+ })>;
11
+ declare const Input: import("svelte").Component<Props, {}, "ref" | "value" | "files">;
12
+ type Input = ReturnType<typeof Input>;
13
+ export default Input;
@@ -0,0 +1,2 @@
1
+ import Root from "./label.svelte";
2
+ export { Root, Root as Label, };
@@ -0,0 +1,4 @@
1
+ import Root from "./label.svelte";
2
+ export { Root,
3
+ //
4
+ Root as Label, };
@@ -0,0 +1,19 @@
1
+ <script lang="ts">
2
+ import { Label as LabelPrimitive } from "bits-ui";
3
+ import { cn } from "../../../utils.js";
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: LabelPrimitive.RootProps = $props();
10
+ </script>
11
+
12
+ <LabelPrimitive.Root
13
+ bind:ref
14
+ class={cn(
15
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
16
+ className
17
+ )}
18
+ {...restProps}
19
+ />
@@ -0,0 +1,4 @@
1
+ import { Label as LabelPrimitive } from "bits-ui";
2
+ declare const Label: import("svelte").Component<LabelPrimitive.RootProps, {}, "ref">;
3
+ type Label = ReturnType<typeof Label>;
4
+ export default Label;
@@ -0,0 +1,6 @@
1
+ import { Popover as PopoverPrimitive } from "bits-ui";
2
+ import Content from "./popover-content.svelte";
3
+ declare const Root: import("svelte").Component<import("bits-ui").PopoverRootPropsWithoutHTML, {}, "open">;
4
+ declare const Trigger: import("svelte").Component<PopoverPrimitive.TriggerProps, {}, "ref">;
5
+ declare const Close: import("svelte").Component<PopoverPrimitive.CloseProps, {}, "ref">;
6
+ export { Root, Content, Trigger, Close, Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, };
@@ -0,0 +1,8 @@
1
+ import { Popover as PopoverPrimitive } from "bits-ui";
2
+ import Content from "./popover-content.svelte";
3
+ const Root = PopoverPrimitive.Root;
4
+ const Trigger = PopoverPrimitive.Trigger;
5
+ const Close = PopoverPrimitive.Close;
6
+ export { Root, Content, Trigger, Close,
7
+ //
8
+ Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, };
@@ -0,0 +1,28 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils.js";
3
+ import { Popover as PopoverPrimitive } from "bits-ui";
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ sideOffset = 4,
9
+ align = "center",
10
+ portalProps,
11
+ ...restProps
12
+ }: PopoverPrimitive.ContentProps & {
13
+ portalProps?: PopoverPrimitive.PortalProps;
14
+ } = $props();
15
+ </script>
16
+
17
+ <PopoverPrimitive.Portal {...portalProps}>
18
+ <PopoverPrimitive.Content
19
+ bind:ref
20
+ {sideOffset}
21
+ {align}
22
+ class={cn(
23
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",
24
+ className
25
+ )}
26
+ {...restProps}
27
+ />
28
+ </PopoverPrimitive.Portal>
@@ -0,0 +1,7 @@
1
+ import { Popover as PopoverPrimitive } from "bits-ui";
2
+ type $$ComponentProps = PopoverPrimitive.ContentProps & {
3
+ portalProps?: PopoverPrimitive.PortalProps;
4
+ };
5
+ declare const PopoverContent: import("svelte").Component<$$ComponentProps, {}, "ref">;
6
+ type PopoverContent = ReturnType<typeof PopoverContent>;
7
+ export default PopoverContent;