@shellicar/ui-shadcn 1.0.3 → 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.
- package/dist/components/ui/button/button.svelte +37 -35
- package/dist/components/ui/button/button.svelte.d.ts +11 -11
- package/dist/components/ui/button/index.d.ts +1 -1
- package/dist/components/ui/button/index.js +1 -1
- package/dist/components/ui/card/card-action.svelte +8 -3
- package/dist/components/ui/card/card-action.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-content.svelte +8 -3
- package/dist/components/ui/card/card-content.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-description.svelte +8 -3
- package/dist/components/ui/card/card-description.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-footer.svelte +8 -3
- package/dist/components/ui/card/card-footer.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-header.svelte +8 -3
- package/dist/components/ui/card/card-header.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-title.svelte +8 -3
- package/dist/components/ui/card/card-title.svelte.d.ts +2 -2
- package/dist/components/ui/card/card.svelte +8 -3
- package/dist/components/ui/card/card.svelte.d.ts +2 -2
- package/dist/components/ui/card/index.d.ts +7 -7
- package/dist/components/ui/card/index.js +7 -7
- package/dist/components/ui/form/form-button.svelte +2 -2
- package/dist/components/ui/form/form-button.svelte.d.ts +1 -1
- package/dist/components/ui/form/form-description.svelte +7 -3
- package/dist/components/ui/form/form-description.svelte.d.ts +1 -1
- package/dist/components/ui/form/form-element-field.svelte +0 -3
- package/dist/components/ui/form/form-field-errors.svelte +11 -11
- package/dist/components/ui/form/form-field-errors.svelte.d.ts +2 -2
- package/dist/components/ui/form/form-field.svelte +0 -4
- package/dist/components/ui/form/form-fieldset.svelte +0 -3
- package/dist/components/ui/form/form-label.svelte +9 -4
- package/dist/components/ui/form/form-label.svelte.d.ts +1 -1
- package/dist/components/ui/form/form-legend.svelte +7 -3
- package/dist/components/ui/form/form-legend.svelte.d.ts +1 -1
- package/dist/components/ui/form/index.d.ts +9 -9
- package/dist/components/ui/form/index.js +9 -9
- package/dist/components/ui/input/index.d.ts +1 -1
- package/dist/components/ui/input/index.js +1 -1
- package/dist/components/ui/input/input.svelte +16 -5
- package/dist/components/ui/input/input.svelte.d.ts +5 -5
- package/dist/components/ui/label/index.d.ts +1 -1
- package/dist/components/ui/label/index.js +1 -1
- package/dist/components/ui/label/label.svelte +7 -3
- package/dist/components/ui/label/label.svelte.d.ts +1 -1
- package/dist/components/ui/popover/index.d.ts +5 -5
- package/dist/components/ui/popover/index.js +5 -5
- package/dist/components/ui/popover/popover-close.svelte +2 -2
- package/dist/components/ui/popover/popover-close.svelte.d.ts +1 -1
- package/dist/components/ui/popover/popover-content.svelte +14 -14
- package/dist/components/ui/popover/popover-content.svelte.d.ts +4 -4
- package/dist/components/ui/popover/popover-portal.svelte +2 -2
- package/dist/components/ui/popover/popover-trigger.svelte +7 -3
- package/dist/components/ui/popover/popover-trigger.svelte.d.ts +1 -1
- package/dist/components/ui/popover/popover.svelte +2 -2
- package/dist/components/ui/select/index.d.ts +11 -11
- package/dist/components/ui/select/index.js +11 -11
- package/dist/components/ui/select/select-content.svelte +18 -18
- package/dist/components/ui/select/select-content.svelte.d.ts +5 -5
- package/dist/components/ui/select/select-group-heading.svelte +9 -4
- package/dist/components/ui/select/select-group.svelte +3 -3
- package/dist/components/ui/select/select-group.svelte.d.ts +1 -1
- package/dist/components/ui/select/select-item.svelte +11 -4
- package/dist/components/ui/select/select-item.svelte.d.ts +1 -1
- package/dist/components/ui/select/select-label.svelte +8 -3
- package/dist/components/ui/select/select-label.svelte.d.ts +2 -2
- package/dist/components/ui/select/select-portal.svelte +2 -2
- package/dist/components/ui/select/select-scroll-down-button.svelte +8 -4
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +1 -1
- package/dist/components/ui/select/select-scroll-up-button.svelte +8 -4
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +1 -1
- package/dist/components/ui/select/select-separator.svelte +8 -4
- package/dist/components/ui/select/select-separator.svelte.d.ts +1 -1
- package/dist/components/ui/select/select-trigger.svelte +12 -12
- package/dist/components/ui/select/select-trigger.svelte.d.ts +3 -3
- package/dist/components/ui/select/select.svelte +6 -2
- package/dist/components/ui/separator/index.d.ts +1 -1
- package/dist/components/ui/separator/index.js +1 -1
- package/dist/components/ui/separator/separator.svelte +9 -4
- package/dist/components/ui/separator/separator.svelte.d.ts +1 -1
- package/dist/components/ui/sheet/index.d.ts +10 -10
- package/dist/components/ui/sheet/index.js +10 -10
- package/dist/components/ui/sheet/sheet-close.svelte +2 -2
- package/dist/components/ui/sheet/sheet-close.svelte.d.ts +1 -1
- package/dist/components/ui/sheet/sheet-content.svelte +16 -16
- package/dist/components/ui/sheet/sheet-content.svelte.d.ts +2 -2
- package/dist/components/ui/sheet/sheet-description.svelte +7 -3
- package/dist/components/ui/sheet/sheet-description.svelte.d.ts +1 -1
- package/dist/components/ui/sheet/sheet-footer.svelte +8 -3
- package/dist/components/ui/sheet/sheet-footer.svelte.d.ts +2 -2
- package/dist/components/ui/sheet/sheet-header.svelte +8 -3
- package/dist/components/ui/sheet/sheet-header.svelte.d.ts +2 -2
- package/dist/components/ui/sheet/sheet-overlay.svelte +7 -3
- package/dist/components/ui/sheet/sheet-overlay.svelte.d.ts +1 -1
- package/dist/components/ui/sheet/sheet-portal.svelte +2 -2
- package/dist/components/ui/sheet/sheet-title.svelte +7 -3
- package/dist/components/ui/sheet/sheet-title.svelte.d.ts +1 -1
- package/dist/components/ui/sheet/sheet-trigger.svelte +2 -2
- package/dist/components/ui/sheet/sheet-trigger.svelte.d.ts +1 -1
- package/dist/components/ui/sheet/sheet.svelte +2 -2
- package/dist/components/ui/textarea/index.d.ts +1 -1
- package/dist/components/ui/textarea/index.js +1 -1
- package/dist/components/ui/textarea/textarea.svelte +9 -3
- package/dist/components/ui/textarea/textarea.svelte.d.ts +2 -2
- package/package.json +9 -2
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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>[
|
|
33
|
-
export type ButtonSize = VariantProps<typeof buttonVariants>[
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
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
|
-
|
|
19
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
-
|
|
53
|
-
|
|
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>[
|
|
57
|
-
export type ButtonSize = VariantProps<typeof buttonVariants>[
|
|
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
|
|
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,8 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
2
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
3
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
2
|
-
import {
|
|
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
|
|
3
|
-
import { cn, type WithElementRef } from
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
2
|
-
import { type WithElementRef } from
|
|
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
|
|
3
|
-
import { cn, type WithElementRef } from
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
2
|
-
import { type WithElementRef } from
|
|
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
|
|
3
|
-
import {
|
|
2
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
3
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
2
|
-
import {
|
|
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
|
|
3
|
-
import {
|
|
2
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
3
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
2
|
-
import {
|
|
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
|
|
3
|
-
import { cn, type WithElementRef } from
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
2
|
-
import { type WithElementRef } from
|
|
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
|
|
3
|
-
import { cn, type WithElementRef } from
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
2
|
-
import { type WithElementRef } from
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
|
2
|
+
import { Button, type ButtonProps } from "../button/index.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
let { ref = $bindable(null), ...restProps }: ButtonProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<Button bind:ref type="submit" {...restProps} />
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import
|
|
3
|
-
import { cn, type WithoutChild } from
|
|
2
|
+
import * as FormPrimitive from "formsnap";
|
|
3
|
+
import { cn, type WithoutChild } from "../../../utils.js";
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
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
|
|
3
|
-
import { cn, type WithoutChild } from
|
|
2
|
+
import * as FormPrimitive from "formsnap";
|
|
3
|
+
import { cn, type WithoutChild } from "../../../utils.js";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}: WithoutChild<FormPrimitive.FieldErrorsProps> & {
|
|
12
|
-
|
|
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
|
|
2
|
-
import { type WithoutChild } from
|
|
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
|
|
3
|
-
import { Label } from
|
|
4
|
-
import { cn, type WithoutChild } from
|
|
2
|
+
import * as FormPrimitive from "formsnap";
|
|
3
|
+
import { Label } from "../label/index.js";
|
|
4
|
+
import { cn, type WithoutChild } from "../../../utils.js";
|
|
5
5
|
|
|
6
|
-
|
|
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
|
|
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
|
|
3
|
-
import { cn, type WithoutChild } from
|
|
2
|
+
import * as FormPrimitive from "formsnap";
|
|
3
|
+
import { cn, type WithoutChild } from "../../../utils.js";
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import Field from
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import Field from
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
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
|
|
1
|
+
import Root from "./input.svelte";
|
|
2
2
|
export { Root, Root as Input, };
|