svelte-docsmith 0.1.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 (192) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +162 -0
  3. package/dist/clipboard.svelte.d.ts +6 -0
  4. package/dist/clipboard.svelte.js +27 -0
  5. package/dist/config.d.ts +79 -0
  6. package/dist/config.js +55 -0
  7. package/dist/content.d.ts +10 -0
  8. package/dist/content.js +4 -0
  9. package/dist/highlight.d.ts +17 -0
  10. package/dist/highlight.js +34 -0
  11. package/dist/index.d.ts +20 -0
  12. package/dist/index.js +26 -0
  13. package/dist/markdown-layout.svelte +21 -0
  14. package/dist/markdown-layout.svelte.d.ts +18 -0
  15. package/dist/preprocess.d.ts +33 -0
  16. package/dist/preprocess.js +65 -0
  17. package/dist/shadcn.d.ts +12 -0
  18. package/dist/shadcn.js +5 -0
  19. package/dist/theme.css +201 -0
  20. package/dist/themes/amethyst.css +76 -0
  21. package/dist/themes/bubblegum.css +79 -0
  22. package/dist/themes/claude.css +79 -0
  23. package/dist/themes/evergreen.css +76 -0
  24. package/dist/themes/graphite.css +79 -0
  25. package/dist/themes/mono.css +79 -0
  26. package/dist/themes/nord.css +79 -0
  27. package/dist/themes/ocean.css +76 -0
  28. package/dist/themes/rose.css +78 -0
  29. package/dist/themes/tangerine.css +81 -0
  30. package/dist/toc/from-content.d.ts +11 -0
  31. package/dist/toc/from-content.js +18 -0
  32. package/dist/toc/index.d.ts +3 -0
  33. package/dist/toc/index.js +3 -0
  34. package/dist/toc/toc.svelte.d.ts +26 -0
  35. package/dist/toc/toc.svelte.js +74 -0
  36. package/dist/toc/types.d.ts +11 -0
  37. package/dist/toc/types.js +1 -0
  38. package/dist/types.d.ts +13 -0
  39. package/dist/types.js +1 -0
  40. package/dist/ui/accordion-item.svelte +24 -0
  41. package/dist/ui/accordion-item.svelte.d.ts +9 -0
  42. package/dist/ui/accordion.svelte +45 -0
  43. package/dist/ui/accordion.svelte.d.ts +15 -0
  44. package/dist/ui/background-pattern.svelte +17 -0
  45. package/dist/ui/background-pattern.svelte.d.ts +26 -0
  46. package/dist/ui/badge.svelte +54 -0
  47. package/dist/ui/badge.svelte.d.ts +12 -0
  48. package/dist/ui/callout.svelte +125 -0
  49. package/dist/ui/callout.svelte.d.ts +13 -0
  50. package/dist/ui/card-grid.svelte +10 -0
  51. package/dist/ui/card-grid.svelte.d.ts +7 -0
  52. package/dist/ui/card.svelte +52 -0
  53. package/dist/ui/card.svelte.d.ts +14 -0
  54. package/dist/ui/copy-button.svelte +30 -0
  55. package/dist/ui/copy-button.svelte.d.ts +9 -0
  56. package/dist/ui/file-tree-item.svelte +70 -0
  57. package/dist/ui/file-tree-item.svelte.d.ts +14 -0
  58. package/dist/ui/file-tree.svelte +34 -0
  59. package/dist/ui/file-tree.svelte.d.ts +7 -0
  60. package/dist/ui/icons/github.svelte +14 -0
  61. package/dist/ui/icons/github.svelte.d.ts +6 -0
  62. package/dist/ui/kbd.svelte +11 -0
  63. package/dist/ui/kbd.svelte.d.ts +7 -0
  64. package/dist/ui/layouts/breadcrumbs.svelte +37 -0
  65. package/dist/ui/layouts/breadcrumbs.svelte.d.ts +10 -0
  66. package/dist/ui/layouts/docs-footer.svelte +40 -0
  67. package/dist/ui/layouts/docs-footer.svelte.d.ts +7 -0
  68. package/dist/ui/layouts/docs-header.svelte +109 -0
  69. package/dist/ui/layouts/docs-header.svelte.d.ts +18 -0
  70. package/dist/ui/layouts/docs-mobile-header.svelte +106 -0
  71. package/dist/ui/layouts/docs-mobile-header.svelte.d.ts +18 -0
  72. package/dist/ui/layouts/docs-shell.svelte +133 -0
  73. package/dist/ui/layouts/docs-shell.svelte.d.ts +25 -0
  74. package/dist/ui/layouts/docs-sidebar.svelte +36 -0
  75. package/dist/ui/layouts/docs-sidebar.svelte.d.ts +8 -0
  76. package/dist/ui/layouts/prev-next-nav.svelte +32 -0
  77. package/dist/ui/layouts/prev-next-nav.svelte.d.ts +8 -0
  78. package/dist/ui/live-example.svelte +67 -0
  79. package/dist/ui/live-example.svelte.d.ts +10 -0
  80. package/dist/ui/markdown/code.svelte +11 -0
  81. package/dist/ui/markdown/code.svelte.d.ts +7 -0
  82. package/dist/ui/markdown/h2.svelte +13 -0
  83. package/dist/ui/markdown/h2.svelte.d.ts +4 -0
  84. package/dist/ui/markdown/h3.svelte +13 -0
  85. package/dist/ui/markdown/h3.svelte.d.ts +4 -0
  86. package/dist/ui/markdown/index.d.ts +5 -0
  87. package/dist/ui/markdown/index.js +5 -0
  88. package/dist/ui/markdown/pre.svelte +88 -0
  89. package/dist/ui/markdown/pre.svelte.d.ts +7 -0
  90. package/dist/ui/markdown/table.svelte +80 -0
  91. package/dist/ui/markdown/table.svelte.d.ts +7 -0
  92. package/dist/ui/markdown/types.d.ts +3 -0
  93. package/dist/ui/markdown/types.js +1 -0
  94. package/dist/ui/prop.svelte +130 -0
  95. package/dist/ui/prop.svelte.d.ts +16 -0
  96. package/dist/ui/props-table.svelte +127 -0
  97. package/dist/ui/props-table.svelte.d.ts +9 -0
  98. package/dist/ui/shadcn/accordion/accordion-content.svelte +27 -0
  99. package/dist/ui/shadcn/accordion/accordion-content.svelte.d.ts +4 -0
  100. package/dist/ui/shadcn/accordion/accordion-item.svelte +17 -0
  101. package/dist/ui/shadcn/accordion/accordion-item.svelte.d.ts +4 -0
  102. package/dist/ui/shadcn/accordion/accordion-trigger.svelte +38 -0
  103. package/dist/ui/shadcn/accordion/accordion-trigger.svelte.d.ts +8 -0
  104. package/dist/ui/shadcn/accordion/accordion.svelte +19 -0
  105. package/dist/ui/shadcn/accordion/accordion.svelte.d.ts +4 -0
  106. package/dist/ui/shadcn/accordion/index.d.ts +5 -0
  107. package/dist/ui/shadcn/accordion/index.js +7 -0
  108. package/dist/ui/shadcn/badge/badge.svelte +50 -0
  109. package/dist/ui/shadcn/badge/badge.svelte.d.ts +38 -0
  110. package/dist/ui/shadcn/badge/index.d.ts +2 -0
  111. package/dist/ui/shadcn/badge/index.js +2 -0
  112. package/dist/ui/shadcn/button/button.svelte +89 -0
  113. package/dist/ui/shadcn/button/button.svelte.d.ts +70 -0
  114. package/dist/ui/shadcn/button/index.d.ts +2 -0
  115. package/dist/ui/shadcn/button/index.js +4 -0
  116. package/dist/ui/shadcn/popover/index.d.ts +9 -0
  117. package/dist/ui/shadcn/popover/index.js +11 -0
  118. package/dist/ui/shadcn/popover/popover-close.svelte +7 -0
  119. package/dist/ui/shadcn/popover/popover-close.svelte.d.ts +4 -0
  120. package/dist/ui/shadcn/popover/popover-content.svelte +31 -0
  121. package/dist/ui/shadcn/popover/popover-content.svelte.d.ts +10 -0
  122. package/dist/ui/shadcn/popover/popover-description.svelte +20 -0
  123. package/dist/ui/shadcn/popover/popover-description.svelte.d.ts +5 -0
  124. package/dist/ui/shadcn/popover/popover-header.svelte +20 -0
  125. package/dist/ui/shadcn/popover/popover-header.svelte.d.ts +5 -0
  126. package/dist/ui/shadcn/popover/popover-portal.svelte +7 -0
  127. package/dist/ui/shadcn/popover/popover-portal.svelte.d.ts +3 -0
  128. package/dist/ui/shadcn/popover/popover-title.svelte +15 -0
  129. package/dist/ui/shadcn/popover/popover-title.svelte.d.ts +5 -0
  130. package/dist/ui/shadcn/popover/popover-trigger.svelte +17 -0
  131. package/dist/ui/shadcn/popover/popover-trigger.svelte.d.ts +4 -0
  132. package/dist/ui/shadcn/popover/popover.svelte +7 -0
  133. package/dist/ui/shadcn/popover/popover.svelte.d.ts +3 -0
  134. package/dist/ui/shadcn/scroll-area/index.d.ts +3 -0
  135. package/dist/ui/shadcn/scroll-area/index.js +5 -0
  136. package/dist/ui/shadcn/scroll-area/scroll-area-scrollbar.svelte +30 -0
  137. package/dist/ui/shadcn/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -0
  138. package/dist/ui/shadcn/scroll-area/scroll-area.svelte +43 -0
  139. package/dist/ui/shadcn/scroll-area/scroll-area.svelte.d.ts +11 -0
  140. package/dist/ui/shadcn/separator/index.d.ts +2 -0
  141. package/dist/ui/shadcn/separator/index.js +4 -0
  142. package/dist/ui/shadcn/separator/separator.svelte +23 -0
  143. package/dist/ui/shadcn/separator/separator.svelte.d.ts +4 -0
  144. package/dist/ui/shadcn/sheet/index.d.ts +11 -0
  145. package/dist/ui/shadcn/sheet/index.js +13 -0
  146. package/dist/ui/shadcn/sheet/sheet-close.svelte +7 -0
  147. package/dist/ui/shadcn/sheet/sheet-close.svelte.d.ts +4 -0
  148. package/dist/ui/shadcn/sheet/sheet-content.svelte +55 -0
  149. package/dist/ui/shadcn/sheet/sheet-content.svelte.d.ts +15 -0
  150. package/dist/ui/shadcn/sheet/sheet-description.svelte +17 -0
  151. package/dist/ui/shadcn/sheet/sheet-description.svelte.d.ts +4 -0
  152. package/dist/ui/shadcn/sheet/sheet-footer.svelte +20 -0
  153. package/dist/ui/shadcn/sheet/sheet-footer.svelte.d.ts +5 -0
  154. package/dist/ui/shadcn/sheet/sheet-header.svelte +20 -0
  155. package/dist/ui/shadcn/sheet/sheet-header.svelte.d.ts +5 -0
  156. package/dist/ui/shadcn/sheet/sheet-overlay.svelte +17 -0
  157. package/dist/ui/shadcn/sheet/sheet-overlay.svelte.d.ts +4 -0
  158. package/dist/ui/shadcn/sheet/sheet-portal.svelte +7 -0
  159. package/dist/ui/shadcn/sheet/sheet-portal.svelte.d.ts +3 -0
  160. package/dist/ui/shadcn/sheet/sheet-title.svelte +17 -0
  161. package/dist/ui/shadcn/sheet/sheet-title.svelte.d.ts +4 -0
  162. package/dist/ui/shadcn/sheet/sheet-trigger.svelte +7 -0
  163. package/dist/ui/shadcn/sheet/sheet-trigger.svelte.d.ts +4 -0
  164. package/dist/ui/shadcn/sheet/sheet.svelte +7 -0
  165. package/dist/ui/shadcn/sheet/sheet.svelte.d.ts +3 -0
  166. package/dist/ui/shadcn/tabs/index.d.ts +5 -0
  167. package/dist/ui/shadcn/tabs/index.js +7 -0
  168. package/dist/ui/shadcn/tabs/tabs-content.svelte +17 -0
  169. package/dist/ui/shadcn/tabs/tabs-content.svelte.d.ts +4 -0
  170. package/dist/ui/shadcn/tabs/tabs-list.svelte +40 -0
  171. package/dist/ui/shadcn/tabs/tabs-list.svelte.d.ts +25 -0
  172. package/dist/ui/shadcn/tabs/tabs-trigger.svelte +23 -0
  173. package/dist/ui/shadcn/tabs/tabs-trigger.svelte.d.ts +4 -0
  174. package/dist/ui/shadcn/tabs/tabs.svelte +19 -0
  175. package/dist/ui/shadcn/tabs/tabs.svelte.d.ts +4 -0
  176. package/dist/ui/step.svelte +82 -0
  177. package/dist/ui/step.svelte.d.ts +9 -0
  178. package/dist/ui/steps.svelte +71 -0
  179. package/dist/ui/steps.svelte.d.ts +7 -0
  180. package/dist/ui/tab-item.svelte +14 -0
  181. package/dist/ui/tab-item.svelte.d.ts +6 -0
  182. package/dist/ui/table-of-contents.svelte +114 -0
  183. package/dist/ui/table-of-contents.svelte.d.ts +9 -0
  184. package/dist/ui/tabs.svelte +29 -0
  185. package/dist/ui/tabs.svelte.d.ts +8 -0
  186. package/dist/ui/theme-provider.svelte +23 -0
  187. package/dist/ui/theme-provider.svelte.d.ts +10 -0
  188. package/dist/ui/theme-toggle.svelte +22 -0
  189. package/dist/ui/theme-toggle.svelte.d.ts +6 -0
  190. package/dist/vite.d.ts +32 -0
  191. package/dist/vite.js +216 -0
  192. package/package.json +115 -0
@@ -0,0 +1,38 @@
1
+ import { type VariantProps } from 'tailwind-variants';
2
+ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
3
+ variant: {
4
+ default: string;
5
+ secondary: string;
6
+ destructive: string;
7
+ outline: string;
8
+ ghost: string;
9
+ link: string;
10
+ };
11
+ }, undefined, "h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap transition-colors focus-visible:ring-[3px] [&>svg]:pointer-events-none", {
12
+ variant: {
13
+ default: string;
14
+ secondary: string;
15
+ destructive: string;
16
+ outline: string;
17
+ ghost: string;
18
+ link: string;
19
+ };
20
+ }, undefined, import("tailwind-variants").TVReturnType<{
21
+ variant: {
22
+ default: string;
23
+ secondary: string;
24
+ destructive: string;
25
+ outline: string;
26
+ ghost: string;
27
+ link: string;
28
+ };
29
+ }, undefined, "h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap transition-colors focus-visible:ring-[3px] [&>svg]:pointer-events-none", unknown, unknown, undefined>>;
30
+ export type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];
31
+ import type { HTMLAnchorAttributes } from 'svelte/elements';
32
+ import { type WithElementRef } from '../../../shadcn.js';
33
+ type $$ComponentProps = WithElementRef<HTMLAnchorAttributes> & {
34
+ variant?: BadgeVariant;
35
+ };
36
+ declare const Badge: import("svelte").Component<$$ComponentProps, {}, "ref">;
37
+ type Badge = ReturnType<typeof Badge>;
38
+ export default Badge;
@@ -0,0 +1,2 @@
1
+ export { default as Badge } from './badge.svelte';
2
+ export { badgeVariants, type BadgeVariant } from './badge.svelte';
@@ -0,0 +1,2 @@
1
+ export { default as Badge } from './badge.svelte';
2
+ export { badgeVariants } from './badge.svelte';
@@ -0,0 +1,89 @@
1
+ <script lang="ts" module>
2
+ import { cn, type WithElementRef } from '../../../shadcn.js';
3
+ import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
4
+ import { type VariantProps, tv } from 'tailwind-variants';
5
+
6
+ export const buttonVariants = tv({
7
+ base: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-px aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
8
+ variants: {
9
+ variant: {
10
+ default: 'bg-primary text-primary-foreground hover:bg-primary/80',
11
+ outline:
12
+ 'border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground shadow-xs',
13
+ secondary:
14
+ 'bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',
15
+ ghost:
16
+ 'hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground',
17
+ destructive:
18
+ 'bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30',
19
+ link: 'text-primary underline-offset-4 hover:underline'
20
+ },
21
+ size: {
22
+ default:
23
+ 'h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',
24
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
25
+ sm: 'h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5',
26
+ lg: 'h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',
27
+ icon: 'size-9',
28
+ 'icon-xs':
29
+ "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
30
+ 'icon-sm':
31
+ 'size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md',
32
+ 'icon-lg': 'size-10'
33
+ }
34
+ },
35
+ defaultVariants: {
36
+ variant: 'default',
37
+ size: 'default'
38
+ }
39
+ });
40
+
41
+ export type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];
42
+ export type ButtonSize = VariantProps<typeof buttonVariants>['size'];
43
+
44
+ export type ButtonProps = WithElementRef<HTMLButtonAttributes> &
45
+ WithElementRef<HTMLAnchorAttributes> & {
46
+ variant?: ButtonVariant;
47
+ size?: ButtonSize;
48
+ };
49
+ </script>
50
+
51
+ <script lang="ts">
52
+ let {
53
+ class: className,
54
+ variant = 'default',
55
+ size = 'default',
56
+ ref = $bindable(null),
57
+ href = undefined,
58
+ type = 'button',
59
+ disabled,
60
+ children,
61
+ ...restProps
62
+ }: ButtonProps = $props();
63
+ </script>
64
+
65
+ {#if href}
66
+ <a
67
+ bind:this={ref}
68
+ data-slot="button"
69
+ class={cn(buttonVariants({ variant, size }), className)}
70
+ href={disabled ? undefined : href}
71
+ aria-disabled={disabled}
72
+ role={disabled ? 'link' : undefined}
73
+ tabindex={disabled ? -1 : undefined}
74
+ {...restProps}
75
+ >
76
+ {@render children?.()}
77
+ </a>
78
+ {:else}
79
+ <button
80
+ bind:this={ref}
81
+ data-slot="button"
82
+ class={cn(buttonVariants({ variant, size }), className)}
83
+ {type}
84
+ {disabled}
85
+ {...restProps}
86
+ >
87
+ {@render children?.()}
88
+ </button>
89
+ {/if}
@@ -0,0 +1,70 @@
1
+ import { type WithElementRef } from '../../../shadcn.js';
2
+ import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
3
+ import { type VariantProps } from 'tailwind-variants';
4
+ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
5
+ variant: {
6
+ default: string;
7
+ outline: string;
8
+ secondary: string;
9
+ ghost: string;
10
+ destructive: string;
11
+ link: string;
12
+ };
13
+ size: {
14
+ default: string;
15
+ xs: string;
16
+ sm: string;
17
+ lg: string;
18
+ icon: string;
19
+ 'icon-xs': string;
20
+ 'icon-sm': string;
21
+ 'icon-lg': string;
22
+ };
23
+ }, undefined, "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-px aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
24
+ variant: {
25
+ default: string;
26
+ outline: string;
27
+ secondary: string;
28
+ ghost: string;
29
+ destructive: string;
30
+ link: string;
31
+ };
32
+ size: {
33
+ default: string;
34
+ xs: string;
35
+ sm: string;
36
+ lg: string;
37
+ icon: string;
38
+ 'icon-xs': string;
39
+ 'icon-sm': string;
40
+ 'icon-lg': string;
41
+ };
42
+ }, undefined, import("tailwind-variants").TVReturnType<{
43
+ variant: {
44
+ default: string;
45
+ outline: string;
46
+ secondary: string;
47
+ ghost: string;
48
+ destructive: string;
49
+ link: string;
50
+ };
51
+ size: {
52
+ default: string;
53
+ xs: string;
54
+ sm: string;
55
+ lg: string;
56
+ icon: string;
57
+ 'icon-xs': string;
58
+ 'icon-sm': string;
59
+ 'icon-lg': string;
60
+ };
61
+ }, undefined, "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-px aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", unknown, unknown, undefined>>;
62
+ export type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];
63
+ export type ButtonSize = VariantProps<typeof buttonVariants>['size'];
64
+ export type ButtonProps = WithElementRef<HTMLButtonAttributes> & WithElementRef<HTMLAnchorAttributes> & {
65
+ variant?: ButtonVariant;
66
+ size?: ButtonSize;
67
+ };
68
+ declare const Button: import("svelte").Component<ButtonProps, {}, "ref">;
69
+ type Button = ReturnType<typeof Button>;
70
+ export default Button;
@@ -0,0 +1,2 @@
1
+ import Root, { type ButtonProps, type ButtonSize, type ButtonVariant, buttonVariants } from './button.svelte';
2
+ export { Root, type ButtonProps as Props, Root as Button, buttonVariants, type ButtonProps, type ButtonSize, type ButtonVariant };
@@ -0,0 +1,4 @@
1
+ import Root, { buttonVariants } from './button.svelte';
2
+ export { Root,
3
+ //
4
+ Root as Button, buttonVariants };
@@ -0,0 +1,9 @@
1
+ import Root from './popover.svelte';
2
+ import Close from './popover-close.svelte';
3
+ import Content from './popover-content.svelte';
4
+ import Description from './popover-description.svelte';
5
+ import Header from './popover-header.svelte';
6
+ import Title from './popover-title.svelte';
7
+ import Trigger from './popover-trigger.svelte';
8
+ import Portal from './popover-portal.svelte';
9
+ export { Root, Content, Description, Header, Title, Trigger, Close, Portal, Root as Popover, Content as PopoverContent, Description as PopoverDescription, Header as PopoverHeader, Title as PopoverTitle, Trigger as PopoverTrigger, Close as PopoverClose, Portal as PopoverPortal };
@@ -0,0 +1,11 @@
1
+ import Root from './popover.svelte';
2
+ import Close from './popover-close.svelte';
3
+ import Content from './popover-content.svelte';
4
+ import Description from './popover-description.svelte';
5
+ import Header from './popover-header.svelte';
6
+ import Title from './popover-title.svelte';
7
+ import Trigger from './popover-trigger.svelte';
8
+ import Portal from './popover-portal.svelte';
9
+ export { Root, Content, Description, Header, Title, Trigger, Close, Portal,
10
+ //
11
+ Root as Popover, Content as PopoverContent, Description as PopoverDescription, Header as PopoverHeader, Title as PopoverTitle, Trigger as PopoverTrigger, Close as PopoverClose, Portal as PopoverPortal };
@@ -0,0 +1,7 @@
1
+ <script lang="ts">
2
+ import { Popover as PopoverPrimitive } from 'bits-ui';
3
+
4
+ let { ref = $bindable(null), ...restProps }: PopoverPrimitive.CloseProps = $props();
5
+ </script>
6
+
7
+ <PopoverPrimitive.Close bind:ref data-slot="popover-close" {...restProps} />
@@ -0,0 +1,4 @@
1
+ import { Popover as PopoverPrimitive } from 'bits-ui';
2
+ declare const PopoverClose: import("svelte").Component<PopoverPrimitive.CloseProps, {}, "ref">;
3
+ type PopoverClose = ReturnType<typeof PopoverClose>;
4
+ export default PopoverClose;
@@ -0,0 +1,31 @@
1
+ <script lang="ts">
2
+ import { Popover as PopoverPrimitive } from 'bits-ui';
3
+ import PopoverPortal from './popover-portal.svelte';
4
+ import { cn, type WithoutChildrenOrChild } from '../../../shadcn.js';
5
+ import type { ComponentProps } from 'svelte';
6
+
7
+ let {
8
+ ref = $bindable(null),
9
+ class: className,
10
+ sideOffset = 4,
11
+ align = 'center',
12
+ portalProps,
13
+ ...restProps
14
+ }: PopoverPrimitive.ContentProps & {
15
+ portalProps?: WithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>>;
16
+ } = $props();
17
+ </script>
18
+
19
+ <PopoverPortal {...portalProps}>
20
+ <PopoverPrimitive.Content
21
+ bind:ref
22
+ data-slot="popover-content"
23
+ {sideOffset}
24
+ {align}
25
+ class={cn(
26
+ 'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 flex flex-col gap-4 rounded-md p-4 text-sm shadow-md ring-1 duration-100 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 w-72 origin-(--transform-origin) outline-hidden',
27
+ className
28
+ )}
29
+ {...restProps}
30
+ />
31
+ </PopoverPortal>
@@ -0,0 +1,10 @@
1
+ import { Popover as PopoverPrimitive } from 'bits-ui';
2
+ import PopoverPortal from './popover-portal.svelte';
3
+ import { type WithoutChildrenOrChild } from '../../../shadcn.js';
4
+ import type { ComponentProps } from 'svelte';
5
+ type $$ComponentProps = PopoverPrimitive.ContentProps & {
6
+ portalProps?: WithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>>;
7
+ };
8
+ declare const PopoverContent: import("svelte").Component<$$ComponentProps, {}, "ref">;
9
+ type PopoverContent = ReturnType<typeof PopoverContent>;
10
+ export default PopoverContent;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ import { cn, type WithElementRef } from '../../../shadcn.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
11
+ </script>
12
+
13
+ <div
14
+ bind:this={ref}
15
+ data-slot="popover-description"
16
+ class={cn('text-muted-foreground', className)}
17
+ {...restProps}
18
+ >
19
+ {@render children?.()}
20
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { HTMLAttributes } from 'svelte/elements';
2
+ import { type WithElementRef } from '../../../shadcn.js';
3
+ declare const PopoverDescription: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type PopoverDescription = ReturnType<typeof PopoverDescription>;
5
+ export default PopoverDescription;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ import { cn, type WithElementRef } from '../../../shadcn.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
11
+ </script>
12
+
13
+ <div
14
+ bind:this={ref}
15
+ data-slot="popover-header"
16
+ class={cn('flex flex-col gap-1 text-sm', className)}
17
+ {...restProps}
18
+ >
19
+ {@render children?.()}
20
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { HTMLAttributes } from 'svelte/elements';
2
+ import { type WithElementRef } from '../../../shadcn.js';
3
+ declare const PopoverHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type PopoverHeader = ReturnType<typeof PopoverHeader>;
5
+ export default PopoverHeader;
@@ -0,0 +1,7 @@
1
+ <script lang="ts">
2
+ import { Popover as PopoverPrimitive } from 'bits-ui';
3
+
4
+ let { ...restProps }: PopoverPrimitive.PortalProps = $props();
5
+ </script>
6
+
7
+ <PopoverPrimitive.Portal {...restProps} />
@@ -0,0 +1,3 @@
1
+ declare const PopoverPortal: import("svelte").Component<import("bits-ui").PortalProps, {}, "">;
2
+ type PopoverPortal = ReturnType<typeof PopoverPortal>;
3
+ export default PopoverPortal;
@@ -0,0 +1,15 @@
1
+ <script lang="ts">
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ import { cn, type WithElementRef } from '../../../shadcn.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
11
+ </script>
12
+
13
+ <div bind:this={ref} data-slot="popover-title" class={cn('font-medium', className)} {...restProps}>
14
+ {@render children?.()}
15
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { HTMLAttributes } from 'svelte/elements';
2
+ import { type WithElementRef } from '../../../shadcn.js';
3
+ declare const PopoverTitle: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type PopoverTitle = ReturnType<typeof PopoverTitle>;
5
+ export default PopoverTitle;
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ import { cn } from '../../../shadcn.js';
3
+ import { Popover as PopoverPrimitive } from 'bits-ui';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: PopoverPrimitive.TriggerProps = $props();
10
+ </script>
11
+
12
+ <PopoverPrimitive.Trigger
13
+ bind:ref
14
+ data-slot="popover-trigger"
15
+ class={cn('', className)}
16
+ {...restProps}
17
+ />
@@ -0,0 +1,4 @@
1
+ import { Popover as PopoverPrimitive } from 'bits-ui';
2
+ declare const PopoverTrigger: import("svelte").Component<PopoverPrimitive.TriggerProps, {}, "ref">;
3
+ type PopoverTrigger = ReturnType<typeof PopoverTrigger>;
4
+ export default PopoverTrigger;
@@ -0,0 +1,7 @@
1
+ <script lang="ts">
2
+ import { Popover as PopoverPrimitive } from 'bits-ui';
3
+
4
+ let { open = $bindable(false), ...restProps }: PopoverPrimitive.RootProps = $props();
5
+ </script>
6
+
7
+ <PopoverPrimitive.Root bind:open {...restProps} />
@@ -0,0 +1,3 @@
1
+ declare const Popover: import("svelte").Component<import("bits-ui").PopoverRootPropsWithoutHTML, {}, "open">;
2
+ type Popover = ReturnType<typeof Popover>;
3
+ export default Popover;
@@ -0,0 +1,3 @@
1
+ import Scrollbar from './scroll-area-scrollbar.svelte';
2
+ import Root from './scroll-area.svelte';
3
+ export { Root, Scrollbar, Root as ScrollArea, Scrollbar as ScrollAreaScrollbar };
@@ -0,0 +1,5 @@
1
+ import Scrollbar from './scroll-area-scrollbar.svelte';
2
+ import Root from './scroll-area.svelte';
3
+ export { Root, Scrollbar,
4
+ //,
5
+ Root as ScrollArea, Scrollbar as ScrollAreaScrollbar };
@@ -0,0 +1,30 @@
1
+ <script lang="ts">
2
+ import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
3
+ import { cn, type WithoutChild } from '../../../shadcn.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ orientation = 'vertical',
9
+ children,
10
+ ...restProps
11
+ }: WithoutChild<ScrollAreaPrimitive.ScrollbarProps> = $props();
12
+ </script>
13
+
14
+ <ScrollAreaPrimitive.Scrollbar
15
+ bind:ref
16
+ data-slot="scroll-area-scrollbar"
17
+ data-orientation={orientation}
18
+ {orientation}
19
+ class={cn(
20
+ 'data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent flex touch-none p-px transition-colors select-none',
21
+ className
22
+ )}
23
+ {...restProps}
24
+ >
25
+ {@render children?.()}
26
+ <ScrollAreaPrimitive.Thumb
27
+ data-slot="scroll-area-thumb"
28
+ class="rounded-full bg-border relative flex-1"
29
+ />
30
+ </ScrollAreaPrimitive.Scrollbar>
@@ -0,0 +1,4 @@
1
+ import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
2
+ declare const ScrollAreaScrollbar: import("svelte").Component<Omit<ScrollAreaPrimitive.ScrollbarProps, "child">, {}, "ref">;
3
+ type ScrollAreaScrollbar = ReturnType<typeof ScrollAreaScrollbar>;
4
+ export default ScrollAreaScrollbar;
@@ -0,0 +1,43 @@
1
+ <script lang="ts">
2
+ import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
3
+ import { Scrollbar } from './index.js';
4
+ import { cn, type WithoutChild } from '../../../shadcn.js';
5
+
6
+ let {
7
+ ref = $bindable(null),
8
+ viewportRef = $bindable(null),
9
+ class: className,
10
+ orientation = 'vertical',
11
+ scrollbarXClasses = '',
12
+ scrollbarYClasses = '',
13
+ children,
14
+ ...restProps
15
+ }: WithoutChild<ScrollAreaPrimitive.RootProps> & {
16
+ orientation?: 'vertical' | 'horizontal' | 'both' | undefined;
17
+ scrollbarXClasses?: string | undefined;
18
+ scrollbarYClasses?: string | undefined;
19
+ viewportRef?: HTMLElement | null;
20
+ } = $props();
21
+ </script>
22
+
23
+ <ScrollAreaPrimitive.Root
24
+ bind:ref
25
+ data-slot="scroll-area"
26
+ class={cn('relative', className)}
27
+ {...restProps}
28
+ >
29
+ <ScrollAreaPrimitive.Viewport
30
+ bind:ref={viewportRef}
31
+ data-slot="scroll-area-viewport"
32
+ class="cn-scroll-area-viewport focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"
33
+ >
34
+ {@render children?.()}
35
+ </ScrollAreaPrimitive.Viewport>
36
+ {#if orientation === 'vertical' || orientation === 'both'}
37
+ <Scrollbar orientation="vertical" class={scrollbarYClasses} />
38
+ {/if}
39
+ {#if orientation === 'horizontal' || orientation === 'both'}
40
+ <Scrollbar orientation="horizontal" class={scrollbarXClasses} />
41
+ {/if}
42
+ <ScrollAreaPrimitive.Corner />
43
+ </ScrollAreaPrimitive.Root>
@@ -0,0 +1,11 @@
1
+ import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
2
+ import { type WithoutChild } from '../../../shadcn.js';
3
+ type $$ComponentProps = WithoutChild<ScrollAreaPrimitive.RootProps> & {
4
+ orientation?: 'vertical' | 'horizontal' | 'both' | undefined;
5
+ scrollbarXClasses?: string | undefined;
6
+ scrollbarYClasses?: string | undefined;
7
+ viewportRef?: HTMLElement | null;
8
+ };
9
+ declare const ScrollArea: import("svelte").Component<$$ComponentProps, {}, "ref" | "viewportRef">;
10
+ type ScrollArea = ReturnType<typeof ScrollArea>;
11
+ export default ScrollArea;
@@ -0,0 +1,2 @@
1
+ import Root from './separator.svelte';
2
+ export { Root, Root as Separator };
@@ -0,0 +1,4 @@
1
+ import Root from './separator.svelte';
2
+ export { Root,
3
+ //
4
+ Root as Separator };
@@ -0,0 +1,23 @@
1
+ <script lang="ts">
2
+ import { Separator as SeparatorPrimitive } from 'bits-ui';
3
+ import { cn } from '../../../shadcn.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ 'data-slot': dataSlot = 'separator',
9
+ ...restProps
10
+ }: SeparatorPrimitive.RootProps = $props();
11
+ </script>
12
+
13
+ <SeparatorPrimitive.Root
14
+ bind:ref
15
+ data-slot={dataSlot}
16
+ class={cn(
17
+ 'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px',
18
+ // this is different in shadcn/ui but self-stretch breaks things for us
19
+ 'data-[orientation=vertical]:h-full',
20
+ className
21
+ )}
22
+ {...restProps}
23
+ />
@@ -0,0 +1,4 @@
1
+ import { Separator as SeparatorPrimitive } from 'bits-ui';
2
+ declare const Separator: import("svelte").Component<SeparatorPrimitive.RootProps, {}, "ref">;
3
+ type Separator = ReturnType<typeof Separator>;
4
+ export default Separator;
@@ -0,0 +1,11 @@
1
+ import Root from './sheet.svelte';
2
+ import Portal from './sheet-portal.svelte';
3
+ import Trigger from './sheet-trigger.svelte';
4
+ import Close from './sheet-close.svelte';
5
+ import Overlay from './sheet-overlay.svelte';
6
+ import Content from './sheet-content.svelte';
7
+ import Header from './sheet-header.svelte';
8
+ import Footer from './sheet-footer.svelte';
9
+ import Title from './sheet-title.svelte';
10
+ import Description from './sheet-description.svelte';
11
+ export { Root, Close, Trigger, Portal, Overlay, Content, Header, Footer, Title, Description, Root as Sheet, Close as SheetClose, Trigger as SheetTrigger, Portal as SheetPortal, Overlay as SheetOverlay, Content as SheetContent, Header as SheetHeader, Footer as SheetFooter, Title as SheetTitle, Description as SheetDescription };
@@ -0,0 +1,13 @@
1
+ import Root from './sheet.svelte';
2
+ import Portal from './sheet-portal.svelte';
3
+ import Trigger from './sheet-trigger.svelte';
4
+ import Close from './sheet-close.svelte';
5
+ import Overlay from './sheet-overlay.svelte';
6
+ import Content from './sheet-content.svelte';
7
+ import Header from './sheet-header.svelte';
8
+ import Footer from './sheet-footer.svelte';
9
+ import Title from './sheet-title.svelte';
10
+ import Description from './sheet-description.svelte';
11
+ export { Root, Close, Trigger, Portal, Overlay, Content, Header, Footer, Title, Description,
12
+ //
13
+ Root as Sheet, Close as SheetClose, Trigger as SheetTrigger, Portal as SheetPortal, Overlay as SheetOverlay, Content as SheetContent, Header as SheetHeader, Footer as SheetFooter, Title as SheetTitle, Description as SheetDescription };
@@ -0,0 +1,7 @@
1
+ <script lang="ts">
2
+ import { Dialog as SheetPrimitive } from 'bits-ui';
3
+
4
+ let { ref = $bindable(null), ...restProps }: SheetPrimitive.CloseProps = $props();
5
+ </script>
6
+
7
+ <SheetPrimitive.Close bind:ref data-slot="sheet-close" {...restProps} />
@@ -0,0 +1,4 @@
1
+ import { Dialog as SheetPrimitive } from 'bits-ui';
2
+ declare const SheetClose: import("svelte").Component<SheetPrimitive.TriggerProps, {}, "ref">;
3
+ type SheetClose = ReturnType<typeof SheetClose>;
4
+ export default SheetClose;