@shellicar/ui-shadcn 1.0.4 → 1.0.5

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 (103) hide show
  1. package/dist/components/ui/button/button.svelte +37 -35
  2. package/dist/components/ui/button/button.svelte.d.ts +11 -11
  3. package/dist/components/ui/button/index.d.ts +1 -1
  4. package/dist/components/ui/button/index.js +1 -1
  5. package/dist/components/ui/card/card-action.svelte +8 -3
  6. package/dist/components/ui/card/card-action.svelte.d.ts +2 -2
  7. package/dist/components/ui/card/card-content.svelte +8 -3
  8. package/dist/components/ui/card/card-content.svelte.d.ts +2 -2
  9. package/dist/components/ui/card/card-description.svelte +8 -3
  10. package/dist/components/ui/card/card-description.svelte.d.ts +2 -2
  11. package/dist/components/ui/card/card-footer.svelte +8 -3
  12. package/dist/components/ui/card/card-footer.svelte.d.ts +2 -2
  13. package/dist/components/ui/card/card-header.svelte +8 -3
  14. package/dist/components/ui/card/card-header.svelte.d.ts +2 -2
  15. package/dist/components/ui/card/card-title.svelte +8 -3
  16. package/dist/components/ui/card/card-title.svelte.d.ts +2 -2
  17. package/dist/components/ui/card/card.svelte +8 -3
  18. package/dist/components/ui/card/card.svelte.d.ts +2 -2
  19. package/dist/components/ui/card/index.d.ts +7 -7
  20. package/dist/components/ui/card/index.js +7 -7
  21. package/dist/components/ui/form/form-button.svelte +2 -2
  22. package/dist/components/ui/form/form-button.svelte.d.ts +1 -1
  23. package/dist/components/ui/form/form-description.svelte +7 -3
  24. package/dist/components/ui/form/form-description.svelte.d.ts +1 -1
  25. package/dist/components/ui/form/form-element-field.svelte +0 -3
  26. package/dist/components/ui/form/form-field-errors.svelte +11 -11
  27. package/dist/components/ui/form/form-field-errors.svelte.d.ts +2 -2
  28. package/dist/components/ui/form/form-field.svelte +0 -4
  29. package/dist/components/ui/form/form-fieldset.svelte +0 -3
  30. package/dist/components/ui/form/form-label.svelte +9 -4
  31. package/dist/components/ui/form/form-label.svelte.d.ts +1 -1
  32. package/dist/components/ui/form/form-legend.svelte +7 -3
  33. package/dist/components/ui/form/form-legend.svelte.d.ts +1 -1
  34. package/dist/components/ui/form/index.d.ts +9 -9
  35. package/dist/components/ui/form/index.js +9 -9
  36. package/dist/components/ui/input/index.d.ts +1 -1
  37. package/dist/components/ui/input/index.js +1 -1
  38. package/dist/components/ui/input/input.svelte +16 -5
  39. package/dist/components/ui/input/input.svelte.d.ts +5 -5
  40. package/dist/components/ui/label/index.d.ts +1 -1
  41. package/dist/components/ui/label/index.js +1 -1
  42. package/dist/components/ui/label/label.svelte +7 -3
  43. package/dist/components/ui/label/label.svelte.d.ts +1 -1
  44. package/dist/components/ui/popover/index.d.ts +5 -5
  45. package/dist/components/ui/popover/index.js +5 -5
  46. package/dist/components/ui/popover/popover-close.svelte +2 -2
  47. package/dist/components/ui/popover/popover-close.svelte.d.ts +1 -1
  48. package/dist/components/ui/popover/popover-content.svelte +14 -14
  49. package/dist/components/ui/popover/popover-content.svelte.d.ts +4 -4
  50. package/dist/components/ui/popover/popover-portal.svelte +2 -2
  51. package/dist/components/ui/popover/popover-trigger.svelte +7 -3
  52. package/dist/components/ui/popover/popover-trigger.svelte.d.ts +1 -1
  53. package/dist/components/ui/popover/popover.svelte +2 -2
  54. package/dist/components/ui/select/index.d.ts +11 -11
  55. package/dist/components/ui/select/index.js +11 -11
  56. package/dist/components/ui/select/select-content.svelte +18 -18
  57. package/dist/components/ui/select/select-content.svelte.d.ts +5 -5
  58. package/dist/components/ui/select/select-group-heading.svelte +9 -4
  59. package/dist/components/ui/select/select-group.svelte +3 -3
  60. package/dist/components/ui/select/select-group.svelte.d.ts +1 -1
  61. package/dist/components/ui/select/select-item.svelte +11 -4
  62. package/dist/components/ui/select/select-item.svelte.d.ts +1 -1
  63. package/dist/components/ui/select/select-label.svelte +8 -3
  64. package/dist/components/ui/select/select-label.svelte.d.ts +2 -2
  65. package/dist/components/ui/select/select-portal.svelte +2 -2
  66. package/dist/components/ui/select/select-scroll-down-button.svelte +8 -4
  67. package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +1 -1
  68. package/dist/components/ui/select/select-scroll-up-button.svelte +8 -4
  69. package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +1 -1
  70. package/dist/components/ui/select/select-separator.svelte +8 -4
  71. package/dist/components/ui/select/select-separator.svelte.d.ts +1 -1
  72. package/dist/components/ui/select/select-trigger.svelte +12 -12
  73. package/dist/components/ui/select/select-trigger.svelte.d.ts +3 -3
  74. package/dist/components/ui/select/select.svelte +6 -2
  75. package/dist/components/ui/separator/index.d.ts +1 -1
  76. package/dist/components/ui/separator/index.js +1 -1
  77. package/dist/components/ui/separator/separator.svelte +9 -4
  78. package/dist/components/ui/separator/separator.svelte.d.ts +1 -1
  79. package/dist/components/ui/sheet/index.d.ts +10 -10
  80. package/dist/components/ui/sheet/index.js +10 -10
  81. package/dist/components/ui/sheet/sheet-close.svelte +2 -2
  82. package/dist/components/ui/sheet/sheet-close.svelte.d.ts +1 -1
  83. package/dist/components/ui/sheet/sheet-content.svelte +16 -16
  84. package/dist/components/ui/sheet/sheet-content.svelte.d.ts +2 -2
  85. package/dist/components/ui/sheet/sheet-description.svelte +7 -3
  86. package/dist/components/ui/sheet/sheet-description.svelte.d.ts +1 -1
  87. package/dist/components/ui/sheet/sheet-footer.svelte +8 -3
  88. package/dist/components/ui/sheet/sheet-footer.svelte.d.ts +2 -2
  89. package/dist/components/ui/sheet/sheet-header.svelte +8 -3
  90. package/dist/components/ui/sheet/sheet-header.svelte.d.ts +2 -2
  91. package/dist/components/ui/sheet/sheet-overlay.svelte +7 -3
  92. package/dist/components/ui/sheet/sheet-overlay.svelte.d.ts +1 -1
  93. package/dist/components/ui/sheet/sheet-portal.svelte +2 -2
  94. package/dist/components/ui/sheet/sheet-title.svelte +7 -3
  95. package/dist/components/ui/sheet/sheet-title.svelte.d.ts +1 -1
  96. package/dist/components/ui/sheet/sheet-trigger.svelte +2 -2
  97. package/dist/components/ui/sheet/sheet-trigger.svelte.d.ts +1 -1
  98. package/dist/components/ui/sheet/sheet.svelte +2 -2
  99. package/dist/components/ui/textarea/index.d.ts +1 -1
  100. package/dist/components/ui/textarea/index.js +1 -1
  101. package/dist/components/ui/textarea/textarea.svelte +9 -3
  102. package/dist/components/ui/textarea/textarea.svelte.d.ts +2 -2
  103. package/package.json +2 -2
@@ -1,42 +1,44 @@
1
1
  <script lang="ts" module>
2
- import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
3
- import { tv, type VariantProps } from 'tailwind-variants';
4
- import { cn, type WithElementRef } from '../../../utils.js';
2
+ import { cn, type WithElementRef } from "../../../utils.js";
3
+ import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
4
+ import { type VariantProps, tv } from "tailwind-variants";
5
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 inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
8
- variants: {
9
- variant: {
10
- default: 'bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs',
11
- destructive: 'bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs',
12
- outline: 'bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs',
13
- secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs',
14
- ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
15
- link: 'text-primary underline-offset-4 hover:underline',
16
- },
17
- size: {
18
- default: 'h-9 px-4 py-2 has-[>svg]:px-3',
19
- sm: 'h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5',
20
- lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',
21
- icon: 'size-9',
22
- 'icon-sm': 'size-8',
23
- 'icon-lg': 'size-10',
24
- },
25
- },
26
- defaultVariants: {
27
- variant: 'default',
28
- size: 'default',
29
- },
30
- });
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 inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
8
+ variants: {
9
+ variant: {
10
+ default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
11
+ destructive:
12
+ "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",
13
+ outline:
14
+ "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
15
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
16
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
17
+ link: "text-primary underline-offset-4 hover:underline",
18
+ },
19
+ size: {
20
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
21
+ sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
22
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
23
+ icon: "size-9",
24
+ "icon-sm": "size-8",
25
+ "icon-lg": "size-10",
26
+ },
27
+ },
28
+ defaultVariants: {
29
+ variant: "default",
30
+ size: "default",
31
+ },
32
+ });
31
33
 
32
- export type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];
33
- export type ButtonSize = VariantProps<typeof buttonVariants>['size'];
34
+ export type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
35
+ export type ButtonSize = VariantProps<typeof buttonVariants>["size"];
34
36
 
35
- export type ButtonProps = WithElementRef<HTMLButtonAttributes> &
36
- WithElementRef<HTMLAnchorAttributes> & {
37
- variant?: ButtonVariant;
38
- size?: ButtonSize;
39
- };
37
+ export type ButtonProps = WithElementRef<HTMLButtonAttributes> &
38
+ WithElementRef<HTMLAnchorAttributes> & {
39
+ variant?: ButtonVariant;
40
+ size?: ButtonSize;
41
+ };
40
42
  </script>
41
43
 
42
44
  <script lang="ts">
@@ -1,6 +1,6 @@
1
- import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
2
- import { type VariantProps } from 'tailwind-variants';
3
- import { type WithElementRef } from '../../../utils.js';
1
+ import { type WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
3
+ import { type VariantProps } from "tailwind-variants";
4
4
  export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
5
5
  variant: {
6
6
  default: string;
@@ -15,8 +15,8 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
15
15
  sm: string;
16
16
  lg: string;
17
17
  icon: string;
18
- 'icon-sm': string;
19
- 'icon-lg': string;
18
+ "icon-sm": string;
19
+ "icon-lg": string;
20
20
  };
21
21
  }, 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 inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
22
22
  variant: {
@@ -32,8 +32,8 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
32
32
  sm: string;
33
33
  lg: string;
34
34
  icon: string;
35
- 'icon-sm': string;
36
- 'icon-lg': string;
35
+ "icon-sm": string;
36
+ "icon-lg": string;
37
37
  };
38
38
  }, undefined, import("tailwind-variants").TVReturnType<{
39
39
  variant: {
@@ -49,12 +49,12 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
49
49
  sm: string;
50
50
  lg: string;
51
51
  icon: string;
52
- 'icon-sm': string;
53
- 'icon-lg': string;
52
+ "icon-sm": string;
53
+ "icon-lg": string;
54
54
  };
55
55
  }, 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 inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", unknown, unknown, undefined>>;
56
- export type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];
57
- export type ButtonSize = VariantProps<typeof buttonVariants>['size'];
56
+ export type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
57
+ export type ButtonSize = VariantProps<typeof buttonVariants>["size"];
58
58
  export type ButtonProps = WithElementRef<HTMLButtonAttributes> & WithElementRef<HTMLAnchorAttributes> & {
59
59
  variant?: ButtonVariant;
60
60
  size?: ButtonSize;
@@ -1,2 +1,2 @@
1
- import Root, { type ButtonProps, type ButtonSize, type ButtonVariant, buttonVariants } from './button.svelte';
1
+ import Root, { type ButtonProps, type ButtonSize, type ButtonVariant, buttonVariants } from "./button.svelte";
2
2
  export { Root, type ButtonProps as Props, Root as Button, buttonVariants, type ButtonProps, type ButtonSize, type ButtonVariant, };
@@ -1,4 +1,4 @@
1
- import Root, { buttonVariants } from './button.svelte';
1
+ import Root, { buttonVariants, } from "./button.svelte";
2
2
  export { Root,
3
3
  //
4
4
  Root as Button, buttonVariants, };
@@ -1,8 +1,13 @@
1
1
  <script lang="ts">
2
- import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../utils.js';
2
+ import { cn, type WithElementRef } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
- const { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
6
11
  </script>
7
12
 
8
13
  <div
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../utils.js';
1
+ import { type WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
3
  declare const CardAction: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type CardAction = ReturnType<typeof CardAction>;
5
5
  export default CardAction;
@@ -1,8 +1,13 @@
1
1
  <script lang="ts">
2
- import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../utils.js';
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ import { cn, type WithElementRef } from "../../../utils.js";
4
4
 
5
- const { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
6
11
  </script>
7
12
 
8
13
  <div bind:this={ref} data-slot="card-content" class={cn("px-6", className)} {...restProps}>
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../utils.js';
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ import { type WithElementRef } from "../../../utils.js";
3
3
  declare const CardContent: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type CardContent = ReturnType<typeof CardContent>;
5
5
  export default CardContent;
@@ -1,8 +1,13 @@
1
1
  <script lang="ts">
2
- import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../utils.js';
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ import { cn, type WithElementRef } from "../../../utils.js";
4
4
 
5
- const { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();
6
11
  </script>
7
12
 
8
13
  <p
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../utils.js';
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ import { type WithElementRef } from "../../../utils.js";
3
3
  declare const CardDescription: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLParagraphElement>>, {}, "ref">;
4
4
  type CardDescription = ReturnType<typeof CardDescription>;
5
5
  export default CardDescription;
@@ -1,8 +1,13 @@
1
1
  <script lang="ts">
2
- import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../utils.js';
2
+ import { cn, type WithElementRef } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
- const { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
6
11
  </script>
7
12
 
8
13
  <div
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../utils.js';
1
+ import { type WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
3
  declare const CardFooter: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type CardFooter = ReturnType<typeof CardFooter>;
5
5
  export default CardFooter;
@@ -1,8 +1,13 @@
1
1
  <script lang="ts">
2
- import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../utils.js';
2
+ import { cn, type WithElementRef } from "../../../utils.js";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
- const { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
6
11
  </script>
7
12
 
8
13
  <div
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../utils.js';
1
+ import { type WithElementRef } from "../../../utils.js";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
3
  declare const CardHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type CardHeader = ReturnType<typeof CardHeader>;
5
5
  export default CardHeader;
@@ -1,8 +1,13 @@
1
1
  <script lang="ts">
2
- import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../utils.js';
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ import { cn, type WithElementRef } from "../../../utils.js";
4
4
 
5
- const { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
6
11
  </script>
7
12
 
8
13
  <div
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../utils.js';
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ import { type WithElementRef } from "../../../utils.js";
3
3
  declare const CardTitle: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type CardTitle = ReturnType<typeof CardTitle>;
5
5
  export default CardTitle;
@@ -1,8 +1,13 @@
1
1
  <script lang="ts">
2
- import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../utils.js';
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ import { cn, type WithElementRef } from "../../../utils.js";
4
4
 
5
- const { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
6
11
  </script>
7
12
 
8
13
  <div
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../utils.js';
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ import { type WithElementRef } from "../../../utils.js";
3
3
  declare const Card: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type Card = ReturnType<typeof Card>;
5
5
  export default Card;
@@ -1,8 +1,8 @@
1
- import Root from './card.svelte';
2
- import Action from './card-action.svelte';
3
- import Content from './card-content.svelte';
4
- import Description from './card-description.svelte';
5
- import Footer from './card-footer.svelte';
6
- import Header from './card-header.svelte';
7
- import Title from './card-title.svelte';
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
+ import Action from "./card-action.svelte";
8
8
  export { Root, Content, Description, Footer, Header, Title, Action, Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, Action as CardAction, };
@@ -1,10 +1,10 @@
1
- import Root from './card.svelte';
2
- import Action from './card-action.svelte';
3
- import Content from './card-content.svelte';
4
- import Description from './card-description.svelte';
5
- import Footer from './card-footer.svelte';
6
- import Header from './card-header.svelte';
7
- import Title from './card-title.svelte';
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
+ import Action from "./card-action.svelte";
8
8
  export { Root, Content, Description, Footer, Header, Title, Action,
9
9
  //
10
10
  Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, Action as CardAction, };
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
- import { Button, type ButtonProps } from '../button/index.js';
2
+ import { Button, type ButtonProps } from "../button/index.js";
3
3
 
4
- const { ref = $bindable(null), ...restProps }: ButtonProps = $props();
4
+ let { ref = $bindable(null), ...restProps }: ButtonProps = $props();
5
5
  </script>
6
6
 
7
7
  <Button bind:ref type="submit" {...restProps} />
@@ -1,4 +1,4 @@
1
- import { type ButtonProps } from '../button/index.js';
1
+ import { type ButtonProps } from "../button/index.js";
2
2
  declare const FormButton: import("svelte").Component<ButtonProps, {}, "ref">;
3
3
  type FormButton = ReturnType<typeof FormButton>;
4
4
  export default FormButton;
@@ -1,8 +1,12 @@
1
1
  <script lang="ts">
2
- import type * as FormPrimitive from 'formsnap';
3
- import { cn, type WithoutChild } from '../../../utils.js';
2
+ import * as FormPrimitive from "formsnap";
3
+ import { cn, type WithoutChild } from "../../../utils.js";
4
4
 
5
- const { ref = $bindable(null), class: className, ...restProps }: WithoutChild<FormPrimitive.DescriptionProps> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: WithoutChild<FormPrimitive.DescriptionProps> = $props();
6
10
  </script>
7
11
 
8
12
  <FormPrimitive.Description
@@ -1,4 +1,4 @@
1
- import type * as FormPrimitive from 'formsnap';
1
+ import * as FormPrimitive from "formsnap";
2
2
  declare const FormDescription: import("svelte").Component<Omit<FormPrimitive.DescriptionProps, "child">, {}, "ref">;
3
3
  type FormDescription = ReturnType<typeof FormDescription>;
4
4
  export default FormDescription;
@@ -1,10 +1,7 @@
1
1
  <script lang="ts" generics="T extends Record<string, unknown>, U extends FormPathLeaves<T>">
2
-
3
2
  import * as FormPrimitive from "formsnap";
4
-
5
3
  import type { FormPathLeaves } from "sveltekit-superforms";
6
4
  import type { HTMLAttributes } from "svelte/elements";
7
-
8
5
  import { cn, type WithElementRef, type WithoutChildren } from "../../../utils.js";
9
6
 
10
7
  let {
@@ -1,16 +1,16 @@
1
1
  <script lang="ts">
2
- import type * as FormPrimitive from 'formsnap';
3
- import { cn, type WithoutChild } from '../../../utils.js';
2
+ import * as FormPrimitive from "formsnap";
3
+ import { cn, type WithoutChild } from "../../../utils.js";
4
4
 
5
- const {
6
- ref = $bindable(null),
7
- class: className,
8
- errorClasses,
9
- children: childrenProp,
10
- ...restProps
11
- }: WithoutChild<FormPrimitive.FieldErrorsProps> & {
12
- errorClasses?: string | undefined | null;
13
- } = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ errorClasses,
9
+ children: childrenProp,
10
+ ...restProps
11
+ }: WithoutChild<FormPrimitive.FieldErrorsProps> & {
12
+ errorClasses?: string | undefined | null;
13
+ } = $props();
14
14
  </script>
15
15
 
16
16
  <FormPrimitive.FieldErrors
@@ -1,5 +1,5 @@
1
- import type * as FormPrimitive from 'formsnap';
2
- import { type WithoutChild } from '../../../utils.js';
1
+ import * as FormPrimitive from "formsnap";
2
+ import { type WithoutChild } from "../../../utils.js";
3
3
  type $$ComponentProps = WithoutChild<FormPrimitive.FieldErrorsProps> & {
4
4
  errorClasses?: string | undefined | null;
5
5
  };
@@ -1,11 +1,7 @@
1
1
  <script lang="ts" generics="T extends Record<string, unknown>, U extends FormPath<T>">
2
-
3
2
  import * as FormPrimitive from "formsnap";
4
-
5
3
  import type { FormPath } from "sveltekit-superforms";
6
-
7
4
  import { cn, type WithElementRef, type WithoutChildren } from "../../../utils.js";
8
-
9
5
  import type { HTMLAttributes } from "svelte/elements";
10
6
 
11
7
  let {
@@ -1,9 +1,6 @@
1
1
  <script lang="ts" generics="T extends Record<string, unknown>, U extends FormPath<T>">
2
-
3
2
  import * as FormPrimitive from "formsnap";
4
-
5
3
  import type { FormPath } from "sveltekit-superforms";
6
-
7
4
  import { cn, type WithoutChild } from "../../../utils.js";
8
5
 
9
6
  let {
@@ -1,9 +1,14 @@
1
1
  <script lang="ts">
2
- import type * as FormPrimitive from 'formsnap';
3
- import { Label } from '../label/index.js';
4
- import { cn, type WithoutChild } from '../../../utils.js';
2
+ import * as FormPrimitive from "formsnap";
3
+ import { Label } from "../label/index.js";
4
+ import { cn, type WithoutChild } from "../../../utils.js";
5
5
 
6
- const { ref = $bindable(null), children, class: className, ...restProps }: WithoutChild<FormPrimitive.LabelProps> = $props();
6
+ let {
7
+ ref = $bindable(null),
8
+ children,
9
+ class: className,
10
+ ...restProps
11
+ }: WithoutChild<FormPrimitive.LabelProps> = $props();
7
12
  </script>
8
13
 
9
14
  <FormPrimitive.Label {...restProps} bind:ref>
@@ -1,4 +1,4 @@
1
- import type * as FormPrimitive from 'formsnap';
1
+ import * as FormPrimitive from "formsnap";
2
2
  declare const FormLabel: import("svelte").Component<Omit<FormPrimitive.LabelProps, "child">, {}, "ref">;
3
3
  type FormLabel = ReturnType<typeof FormLabel>;
4
4
  export default FormLabel;
@@ -1,8 +1,12 @@
1
1
  <script lang="ts">
2
- import type * as FormPrimitive from 'formsnap';
3
- import { cn, type WithoutChild } from '../../../utils.js';
2
+ import * as FormPrimitive from "formsnap";
3
+ import { cn, type WithoutChild } from "../../../utils.js";
4
4
 
5
- const { ref = $bindable(null), class: className, ...restProps }: WithoutChild<FormPrimitive.LegendProps> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: WithoutChild<FormPrimitive.LegendProps> = $props();
6
10
  </script>
7
11
 
8
12
  <FormPrimitive.Legend
@@ -1,4 +1,4 @@
1
- import type * as FormPrimitive from 'formsnap';
1
+ import * as FormPrimitive from "formsnap";
2
2
  declare const FormLegend: import("svelte").Component<Omit<FormPrimitive.LegendProps, "child">, {}, "ref">;
3
3
  type FormLegend = ReturnType<typeof FormLegend>;
4
4
  export default FormLegend;
@@ -1,11 +1,11 @@
1
- import * as FormPrimitive from 'formsnap';
2
- import Button from './form-button.svelte';
3
- import Description from './form-description.svelte';
4
- import ElementField from './form-element-field.svelte';
5
- import Field from './form-field.svelte';
6
- import FieldErrors from './form-field-errors.svelte';
7
- import Fieldset from './form-fieldset.svelte';
8
- import Label from './form-label.svelte';
9
- import Legend from './form-legend.svelte';
1
+ import * as FormPrimitive from "formsnap";
2
+ import Description from "./form-description.svelte";
3
+ import Label from "./form-label.svelte";
4
+ import FieldErrors from "./form-field-errors.svelte";
5
+ import Field from "./form-field.svelte";
6
+ import Fieldset from "./form-fieldset.svelte";
7
+ import Legend from "./form-legend.svelte";
8
+ import ElementField from "./form-element-field.svelte";
9
+ import Button from "./form-button.svelte";
10
10
  declare const Control: import("svelte").Component<FormPrimitive.ControlProps, {}, "">;
11
11
  export { Field, Control, Label, Button, FieldErrors, Description, Fieldset, Legend, ElementField, Field as FormField, Control as FormControl, Description as FormDescription, Label as FormLabel, FieldErrors as FormFieldErrors, Fieldset as FormFieldset, Legend as FormLegend, ElementField as FormElementField, Button as FormButton, };
@@ -1,12 +1,12 @@
1
- import * as FormPrimitive from 'formsnap';
2
- import Button from './form-button.svelte';
3
- import Description from './form-description.svelte';
4
- import ElementField from './form-element-field.svelte';
5
- import Field from './form-field.svelte';
6
- import FieldErrors from './form-field-errors.svelte';
7
- import Fieldset from './form-fieldset.svelte';
8
- import Label from './form-label.svelte';
9
- import Legend from './form-legend.svelte';
1
+ import * as FormPrimitive from "formsnap";
2
+ import Description from "./form-description.svelte";
3
+ import Label from "./form-label.svelte";
4
+ import FieldErrors from "./form-field-errors.svelte";
5
+ import Field from "./form-field.svelte";
6
+ import Fieldset from "./form-fieldset.svelte";
7
+ import Legend from "./form-legend.svelte";
8
+ import ElementField from "./form-element-field.svelte";
9
+ import Button from "./form-button.svelte";
10
10
  const Control = FormPrimitive.Control;
11
11
  export { Field, Control, Label, Button, FieldErrors, Description, Fieldset, Legend, ElementField,
12
12
  //
@@ -1,2 +1,2 @@
1
- import Root from './input.svelte';
1
+ import Root from "./input.svelte";
2
2
  export { Root, Root as Input, };
@@ -1,4 +1,4 @@
1
- import Root from './input.svelte';
1
+ import Root from "./input.svelte";
2
2
  export { Root,
3
3
  //
4
4
  Root as Input, };