iryx-ui 0.1.0 → 0.3.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.
- package/README.md +180 -20
- package/dist/component-names.d.ts +1 -1
- package/dist/components/Alert.vue.d.ts +59 -0
- package/dist/components/App.vue.d.ts +1 -1
- package/dist/components/Badge.vue.d.ts +38 -0
- package/dist/components/Breadcrumb.vue.d.ts +45 -0
- package/dist/components/Button.vue.d.ts +9 -1
- package/dist/components/ButtonGroup.vue.d.ts +32 -0
- package/dist/components/Card.vue.d.ts +49 -0
- package/dist/components/ConfirmDialog.vue.d.ts +18 -0
- package/dist/components/Dialog.vue.d.ts +65 -0
- package/dist/components/DropdownMenu.vue.d.ts +49 -0
- package/dist/components/DropdownMenuItems.vue.d.ts +24 -0
- package/dist/components/EmptyState.vue.d.ts +46 -0
- package/dist/components/FormField.vue.d.ts +9 -0
- package/dist/components/Icon.vue.d.ts +8 -0
- package/dist/components/Label.vue.d.ts +6 -0
- package/dist/components/Pagination.vue.d.ts +57 -0
- package/dist/components/Progress.vue.d.ts +52 -0
- package/dist/components/Separator.vue.d.ts +36 -0
- package/dist/components/Skeleton.vue.d.ts +20 -0
- package/dist/components/Stat.vue.d.ts +57 -0
- package/dist/components/Stepper.vue.d.ts +61 -0
- package/dist/components/Tabs.vue.d.ts +63 -0
- package/dist/components/Toaster.vue.d.ts +28 -0
- package/dist/components/Tooltip.vue.d.ts +49 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/composables/button-group.d.ts +12 -0
- package/dist/composables/confirm.d.ts +36 -0
- package/dist/composables/dropdown-menu.d.ts +22 -0
- package/dist/composables/icon.d.ts +10 -0
- package/dist/composables/toast.d.ts +42 -0
- package/dist/config.d.ts +9 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +64 -25
- package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +201 -0
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue.js +25 -0
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue2.js +63 -0
- package/dist/nuxt.js +1 -1
- package/dist/packages/iryx-ui/src/component-names.js +4 -0
- package/dist/packages/iryx-ui/src/components/Alert.js +5 -0
- package/dist/packages/iryx-ui/src/components/Alert.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/{components → packages/iryx-ui/src/components}/App.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/packages/iryx-ui/src/components/Badge.js +5 -0
- package/dist/packages/iryx-ui/src/components/Badge.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/packages/iryx-ui/src/components/Breadcrumb.js +5 -0
- package/dist/packages/iryx-ui/src/components/Breadcrumb.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/packages/iryx-ui/src/components/Button.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/packages/iryx-ui/src/components/ButtonGroup.js +5 -0
- package/dist/packages/iryx-ui/src/components/ButtonGroup.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/packages/iryx-ui/src/components/Card.js +5 -0
- package/dist/packages/iryx-ui/src/components/Card.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/packages/iryx-ui/src/components/Checkbox.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/packages/iryx-ui/src/components/ConfirmDialog.js +5 -0
- package/dist/packages/iryx-ui/src/components/ConfirmDialog.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/packages/iryx-ui/src/components/Dialog.js +5 -0
- package/dist/packages/iryx-ui/src/components/Dialog.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/packages/iryx-ui/src/components/DropdownMenu.js +5 -0
- package/dist/packages/iryx-ui/src/components/DropdownMenu.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/packages/iryx-ui/src/components/DropdownMenuItems.js +5 -0
- package/dist/packages/iryx-ui/src/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/packages/iryx-ui/src/components/EmptyState.js +5 -0
- package/dist/packages/iryx-ui/src/components/EmptyState.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/{components → packages/iryx-ui/src/components}/FormField.vue_vue_type_script_setup_true_lang.js +5 -3
- package/dist/packages/iryx-ui/src/components/Icon.js +5 -0
- package/dist/packages/iryx-ui/src/components/Icon.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/{components → packages/iryx-ui/src/components}/Label.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/packages/iryx-ui/src/components/Pagination.js +5 -0
- package/dist/packages/iryx-ui/src/components/Pagination.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/packages/iryx-ui/src/components/Progress.js +5 -0
- package/dist/packages/iryx-ui/src/components/Progress.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/packages/iryx-ui/src/components/Select.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/packages/iryx-ui/src/components/Separator.js +5 -0
- package/dist/packages/iryx-ui/src/components/Separator.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/packages/iryx-ui/src/components/Skeleton.js +5 -0
- package/dist/packages/iryx-ui/src/components/Skeleton.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/packages/iryx-ui/src/components/Stat.js +5 -0
- package/dist/packages/iryx-ui/src/components/Stat.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/packages/iryx-ui/src/components/Stepper.js +5 -0
- package/dist/packages/iryx-ui/src/components/Stepper.vue_vue_type_script_setup_true_lang.js +89 -0
- package/dist/packages/iryx-ui/src/components/Tabs.js +5 -0
- package/dist/packages/iryx-ui/src/components/Tabs.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/packages/iryx-ui/src/components/Toaster.js +5 -0
- package/dist/packages/iryx-ui/src/components/Toaster.vue_vue_type_script_setup_true_lang.js +115 -0
- package/dist/packages/iryx-ui/src/components/Tooltip.js +5 -0
- package/dist/packages/iryx-ui/src/components/Tooltip.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/packages/iryx-ui/src/components/index.js +64 -0
- package/dist/{composables → packages/iryx-ui/src/composables}/appearance.js +11 -7
- package/dist/packages/iryx-ui/src/composables/button-group.js +8 -0
- package/dist/packages/iryx-ui/src/composables/confirm.js +25 -0
- package/dist/packages/iryx-ui/src/composables/dropdown-menu.js +9 -0
- package/dist/packages/iryx-ui/src/composables/icon.js +6 -0
- package/dist/packages/iryx-ui/src/composables/toast.js +38 -0
- package/dist/{plugin.js → packages/iryx-ui/src/plugin.js} +5 -5
- package/dist/packages/iryx-ui/src/theme/alert.js +36 -0
- package/dist/packages/iryx-ui/src/theme/badge.js +94 -0
- package/dist/packages/iryx-ui/src/theme/breadcrumb.js +12 -0
- package/dist/packages/iryx-ui/src/theme/button-group.js +15 -0
- package/dist/packages/iryx-ui/src/theme/button.js +59 -0
- package/dist/packages/iryx-ui/src/theme/card.js +42 -0
- package/dist/packages/iryx-ui/src/theme/dialog.js +23 -0
- package/dist/packages/iryx-ui/src/theme/dropdown-menu.js +16 -0
- package/dist/packages/iryx-ui/src/theme/empty-state.js +34 -0
- package/dist/packages/iryx-ui/src/theme/form.js +38 -0
- package/dist/{theme → packages/iryx-ui/src/theme}/label.js +10 -1
- package/dist/packages/iryx-ui/src/theme/pagination.js +29 -0
- package/dist/{theme → packages/iryx-ui/src/theme}/presets.js +21 -1
- package/dist/packages/iryx-ui/src/theme/progress.js +33 -0
- package/dist/packages/iryx-ui/src/theme/separator.js +22 -0
- package/dist/packages/iryx-ui/src/theme/skeleton.js +13 -0
- package/dist/packages/iryx-ui/src/theme/stat.js +30 -0
- package/dist/packages/iryx-ui/src/theme/stepper.js +25 -0
- package/dist/packages/iryx-ui/src/theme/tabs.js +52 -0
- package/dist/packages/iryx-ui/src/theme/toast.js +53 -0
- package/dist/packages/iryx-ui/src/theme/tooltip.js +8 -0
- package/dist/theme/alert.d.ts +98 -0
- package/dist/theme/badge.d.ts +92 -0
- package/dist/theme/breadcrumb.d.ts +59 -0
- package/dist/theme/button-group.d.ts +29 -0
- package/dist/theme/button.d.ts +17 -2
- package/dist/theme/card.d.ts +110 -0
- package/dist/theme/dialog.d.ts +74 -0
- package/dist/theme/dropdown-menu.d.ts +53 -0
- package/dist/theme/empty-state.d.ts +86 -0
- package/dist/theme/form.d.ts +62 -35
- package/dist/theme/index.d.ts +17 -0
- package/dist/theme/label.d.ts +18 -0
- package/dist/theme/pagination.d.ts +71 -0
- package/dist/theme/presets.d.ts +20 -0
- package/dist/theme/progress.d.ts +143 -0
- package/dist/theme/separator.d.ts +50 -0
- package/dist/theme/skeleton.d.ts +23 -0
- package/dist/theme/stat.d.ts +110 -0
- package/dist/theme/stepper.d.ts +56 -0
- package/dist/theme/switch.d.ts +6 -6
- package/dist/theme/tabs.d.ts +104 -0
- package/dist/theme/toast.d.ts +176 -0
- package/dist/theme/tooltip.d.ts +32 -0
- package/package.json +4 -3
- package/theme.css +121 -0
- package/dist/component-names.js +0 -16
- package/dist/components/Button.vue_vue_type_script_setup_true_lang.js +0 -54
- package/dist/components/Checkbox.vue_vue_type_script_setup_true_lang.js +0 -79
- package/dist/components/Select.vue_vue_type_script_setup_true_lang.js +0 -84
- package/dist/components/index.js +0 -28
- package/dist/theme/button.js +0 -27
- package/dist/theme/form.js +0 -14
- /package/dist/{components → packages/iryx-ui/src/components}/App.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Button.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Checkbox.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Form.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Form.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/FormField.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Input.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Input.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Label.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/RadioGroup.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/RadioGroup.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Select.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Switch.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Switch.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Textarea.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Textarea.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{composables → packages/iryx-ui/src/composables}/form.js +0 -0
- /package/dist/{config.js → packages/iryx-ui/src/config.js} +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/checkbox.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/input.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/radio-group.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/select.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/switch.js +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/toast.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
viewport: "fixed z-50 flex max-h-screen w-full flex-col gap-2 p-4 outline-none sm:max-w-sm",
|
|
6
|
+
root: "flex items-start gap-3 rounded-lg border p-4 shadow-lg data-[state=closed]:animate-fade-out data-[state=open]:animate-toast-in",
|
|
7
|
+
icon: "mt-0.5 shrink-0 [&_svg]:size-5",
|
|
8
|
+
content: "min-w-0 flex-1",
|
|
9
|
+
title: "text-sm font-medium",
|
|
10
|
+
description: "text-sm opacity-90",
|
|
11
|
+
action: "shrink-0 self-center rounded-md px-2 py-1 text-sm font-medium underline-offset-4 transition-colors outline-none hover:underline focus-visible:ring-2 focus-visible:ring-current/50",
|
|
12
|
+
close: "-m-1 shrink-0 self-start rounded-md p-1 opacity-70 transition-opacity outline-none hover:opacity-100 focus-visible:ring-2 focus-visible:ring-current/50 [&_svg]:size-4"
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
neutral: {
|
|
17
|
+
root: "border-border bg-background text-foreground",
|
|
18
|
+
icon: "text-muted-foreground"
|
|
19
|
+
},
|
|
20
|
+
success: {
|
|
21
|
+
root: "border-success-border bg-success-muted text-success-muted-foreground",
|
|
22
|
+
icon: "text-success"
|
|
23
|
+
},
|
|
24
|
+
warning: {
|
|
25
|
+
root: "border-warning-border bg-warning-muted text-warning-muted-foreground",
|
|
26
|
+
icon: "text-warning"
|
|
27
|
+
},
|
|
28
|
+
danger: {
|
|
29
|
+
root: "border-danger-border bg-danger-muted text-danger-muted-foreground",
|
|
30
|
+
icon: "text-danger"
|
|
31
|
+
},
|
|
32
|
+
info: {
|
|
33
|
+
root: "border-info-border bg-info-muted text-info-muted-foreground",
|
|
34
|
+
icon: "text-info"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
position: {
|
|
38
|
+
"top-left": { viewport: "top-0 left-0" },
|
|
39
|
+
"top-center": { viewport: "top-0 left-1/2 -translate-x-1/2" },
|
|
40
|
+
"top-right": { viewport: "top-0 right-0" },
|
|
41
|
+
"bottom-left": { viewport: "bottom-0 left-0 flex-col-reverse" },
|
|
42
|
+
"bottom-center": { viewport: "bottom-0 left-1/2 -translate-x-1/2 flex-col-reverse" },
|
|
43
|
+
"bottom-right": { viewport: "right-0 bottom-0 flex-col-reverse" }
|
|
44
|
+
},
|
|
45
|
+
withTitle: { true: { description: "mt-1" } }
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: {
|
|
48
|
+
variant: "neutral",
|
|
49
|
+
position: "bottom-right"
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
export { t as toastTheme };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/tooltip.ts
|
|
3
|
+
var t = e({ slots: {
|
|
4
|
+
content: "z-50 max-w-xs rounded-md bg-foreground px-2.5 py-1.5 text-xs text-background shadow-md data-[state=closed]:animate-fade-out data-[state=delayed-open]:animate-fade-in",
|
|
5
|
+
arrow: "fill-foreground"
|
|
6
|
+
} });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as tooltipTheme };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare const alertTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
info: {
|
|
4
|
+
root: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
};
|
|
7
|
+
success: {
|
|
8
|
+
root: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
};
|
|
11
|
+
warning: {
|
|
12
|
+
root: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
};
|
|
15
|
+
danger: {
|
|
16
|
+
root: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
/** Tightens the title/description gap when both are present. */
|
|
21
|
+
withTitle: {
|
|
22
|
+
true: {
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
root: string;
|
|
28
|
+
icon: string;
|
|
29
|
+
content: string;
|
|
30
|
+
title: string;
|
|
31
|
+
description: string;
|
|
32
|
+
close: string;
|
|
33
|
+
}, undefined, {
|
|
34
|
+
variant: {
|
|
35
|
+
info: {
|
|
36
|
+
root: string;
|
|
37
|
+
icon: string;
|
|
38
|
+
};
|
|
39
|
+
success: {
|
|
40
|
+
root: string;
|
|
41
|
+
icon: string;
|
|
42
|
+
};
|
|
43
|
+
warning: {
|
|
44
|
+
root: string;
|
|
45
|
+
icon: string;
|
|
46
|
+
};
|
|
47
|
+
danger: {
|
|
48
|
+
root: string;
|
|
49
|
+
icon: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
/** Tightens the title/description gap when both are present. */
|
|
53
|
+
withTitle: {
|
|
54
|
+
true: {
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}, {
|
|
59
|
+
root: string;
|
|
60
|
+
icon: string;
|
|
61
|
+
content: string;
|
|
62
|
+
title: string;
|
|
63
|
+
description: string;
|
|
64
|
+
close: string;
|
|
65
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
66
|
+
variant: {
|
|
67
|
+
info: {
|
|
68
|
+
root: string;
|
|
69
|
+
icon: string;
|
|
70
|
+
};
|
|
71
|
+
success: {
|
|
72
|
+
root: string;
|
|
73
|
+
icon: string;
|
|
74
|
+
};
|
|
75
|
+
warning: {
|
|
76
|
+
root: string;
|
|
77
|
+
icon: string;
|
|
78
|
+
};
|
|
79
|
+
danger: {
|
|
80
|
+
root: string;
|
|
81
|
+
icon: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/** Tightens the title/description gap when both are present. */
|
|
85
|
+
withTitle: {
|
|
86
|
+
true: {
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
root: string;
|
|
92
|
+
icon: string;
|
|
93
|
+
content: string;
|
|
94
|
+
title: string;
|
|
95
|
+
description: string;
|
|
96
|
+
close: string;
|
|
97
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
98
|
+
export type AlertSlots = keyof ReturnType<typeof alertTheme>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const badgeTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
neutral: {};
|
|
4
|
+
success: {};
|
|
5
|
+
warning: {};
|
|
6
|
+
danger: {};
|
|
7
|
+
info: {};
|
|
8
|
+
};
|
|
9
|
+
/** `soft` is a tinted background; `solid` is a filled block of colour. */
|
|
10
|
+
tone: {
|
|
11
|
+
soft: {};
|
|
12
|
+
solid: {};
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
sm: {
|
|
16
|
+
root: string;
|
|
17
|
+
dot: string;
|
|
18
|
+
};
|
|
19
|
+
md: {
|
|
20
|
+
root: string;
|
|
21
|
+
dot: string;
|
|
22
|
+
};
|
|
23
|
+
lg: {
|
|
24
|
+
root: string;
|
|
25
|
+
dot: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
root: string;
|
|
30
|
+
dot: string;
|
|
31
|
+
}, undefined, {
|
|
32
|
+
variant: {
|
|
33
|
+
neutral: {};
|
|
34
|
+
success: {};
|
|
35
|
+
warning: {};
|
|
36
|
+
danger: {};
|
|
37
|
+
info: {};
|
|
38
|
+
};
|
|
39
|
+
/** `soft` is a tinted background; `solid` is a filled block of colour. */
|
|
40
|
+
tone: {
|
|
41
|
+
soft: {};
|
|
42
|
+
solid: {};
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
sm: {
|
|
46
|
+
root: string;
|
|
47
|
+
dot: string;
|
|
48
|
+
};
|
|
49
|
+
md: {
|
|
50
|
+
root: string;
|
|
51
|
+
dot: string;
|
|
52
|
+
};
|
|
53
|
+
lg: {
|
|
54
|
+
root: string;
|
|
55
|
+
dot: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}, {
|
|
59
|
+
root: string;
|
|
60
|
+
dot: string;
|
|
61
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
62
|
+
variant: {
|
|
63
|
+
neutral: {};
|
|
64
|
+
success: {};
|
|
65
|
+
warning: {};
|
|
66
|
+
danger: {};
|
|
67
|
+
info: {};
|
|
68
|
+
};
|
|
69
|
+
/** `soft` is a tinted background; `solid` is a filled block of colour. */
|
|
70
|
+
tone: {
|
|
71
|
+
soft: {};
|
|
72
|
+
solid: {};
|
|
73
|
+
};
|
|
74
|
+
size: {
|
|
75
|
+
sm: {
|
|
76
|
+
root: string;
|
|
77
|
+
dot: string;
|
|
78
|
+
};
|
|
79
|
+
md: {
|
|
80
|
+
root: string;
|
|
81
|
+
dot: string;
|
|
82
|
+
};
|
|
83
|
+
lg: {
|
|
84
|
+
root: string;
|
|
85
|
+
dot: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}, {
|
|
89
|
+
root: string;
|
|
90
|
+
dot: string;
|
|
91
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
92
|
+
export type BadgeSlots = keyof ReturnType<typeof badgeTheme>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const breadcrumbTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
root?: import("tailwind-variants").ClassValue;
|
|
5
|
+
link?: import("tailwind-variants").ClassValue;
|
|
6
|
+
list?: import("tailwind-variants").ClassValue;
|
|
7
|
+
item?: import("tailwind-variants").ClassValue;
|
|
8
|
+
current?: import("tailwind-variants").ClassValue;
|
|
9
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
[x: string]: {
|
|
14
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
15
|
+
root?: import("tailwind-variants").ClassValue;
|
|
16
|
+
link?: import("tailwind-variants").ClassValue;
|
|
17
|
+
list?: import("tailwind-variants").ClassValue;
|
|
18
|
+
item?: import("tailwind-variants").ClassValue;
|
|
19
|
+
current?: import("tailwind-variants").ClassValue;
|
|
20
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
} | {}, {
|
|
24
|
+
root: string;
|
|
25
|
+
list: string;
|
|
26
|
+
item: string;
|
|
27
|
+
link: string;
|
|
28
|
+
/** The last crumb: current page, so not a link. */
|
|
29
|
+
current: string;
|
|
30
|
+
separator: string;
|
|
31
|
+
}, undefined, {
|
|
32
|
+
[key: string]: {
|
|
33
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
34
|
+
root?: import("tailwind-variants").ClassValue;
|
|
35
|
+
link?: import("tailwind-variants").ClassValue;
|
|
36
|
+
list?: import("tailwind-variants").ClassValue;
|
|
37
|
+
item?: import("tailwind-variants").ClassValue;
|
|
38
|
+
current?: import("tailwind-variants").ClassValue;
|
|
39
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
} | {}, {
|
|
43
|
+
root: string;
|
|
44
|
+
list: string;
|
|
45
|
+
item: string;
|
|
46
|
+
link: string;
|
|
47
|
+
/** The last crumb: current page, so not a link. */
|
|
48
|
+
current: string;
|
|
49
|
+
separator: string;
|
|
50
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
51
|
+
root: string;
|
|
52
|
+
list: string;
|
|
53
|
+
item: string;
|
|
54
|
+
link: string;
|
|
55
|
+
/** The last crumb: current page, so not a link. */
|
|
56
|
+
current: string;
|
|
57
|
+
separator: string;
|
|
58
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
59
|
+
export type BreadcrumbSlots = keyof ReturnType<typeof breadcrumbTheme>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const buttonGroupTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: string;
|
|
4
|
+
vertical: string;
|
|
5
|
+
};
|
|
6
|
+
/** Stretch to fill the container, splitting the width between children. */
|
|
7
|
+
block: {
|
|
8
|
+
true: string;
|
|
9
|
+
};
|
|
10
|
+
}, undefined, "isolate inline-flex [&>*]:relative [&>*:focus-visible]:z-10 [&>*:hover]:z-10", {
|
|
11
|
+
orientation: {
|
|
12
|
+
horizontal: string;
|
|
13
|
+
vertical: string;
|
|
14
|
+
};
|
|
15
|
+
/** Stretch to fill the container, splitting the width between children. */
|
|
16
|
+
block: {
|
|
17
|
+
true: string;
|
|
18
|
+
};
|
|
19
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
20
|
+
orientation: {
|
|
21
|
+
horizontal: string;
|
|
22
|
+
vertical: string;
|
|
23
|
+
};
|
|
24
|
+
/** Stretch to fill the container, splitting the width between children. */
|
|
25
|
+
block: {
|
|
26
|
+
true: string;
|
|
27
|
+
};
|
|
28
|
+
}, undefined, "isolate inline-flex [&>*]:relative [&>*:focus-visible]:z-10 [&>*:hover]:z-10", unknown, unknown, undefined>>;
|
|
29
|
+
export type ButtonGroupVariants = Parameters<typeof buttonGroupTheme>[0];
|
package/dist/theme/button.d.ts
CHANGED
|
@@ -12,10 +12,15 @@ export declare const buttonTheme: import("tailwind-variants").TVReturnType<{
|
|
|
12
12
|
lg: string;
|
|
13
13
|
xl: string;
|
|
14
14
|
};
|
|
15
|
+
/** Icon-only: square, no horizontal padding. */
|
|
16
|
+
square: {
|
|
17
|
+
true: string;
|
|
18
|
+
false: string;
|
|
19
|
+
};
|
|
15
20
|
block: {
|
|
16
21
|
true: string;
|
|
17
22
|
};
|
|
18
|
-
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-lg font-medium transition-
|
|
23
|
+
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-lg border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
19
24
|
variant: {
|
|
20
25
|
solid: string;
|
|
21
26
|
outline: string;
|
|
@@ -29,6 +34,11 @@ export declare const buttonTheme: import("tailwind-variants").TVReturnType<{
|
|
|
29
34
|
lg: string;
|
|
30
35
|
xl: string;
|
|
31
36
|
};
|
|
37
|
+
/** Icon-only: square, no horizontal padding. */
|
|
38
|
+
square: {
|
|
39
|
+
true: string;
|
|
40
|
+
false: string;
|
|
41
|
+
};
|
|
32
42
|
block: {
|
|
33
43
|
true: string;
|
|
34
44
|
};
|
|
@@ -46,8 +56,13 @@ export declare const buttonTheme: import("tailwind-variants").TVReturnType<{
|
|
|
46
56
|
lg: string;
|
|
47
57
|
xl: string;
|
|
48
58
|
};
|
|
59
|
+
/** Icon-only: square, no horizontal padding. */
|
|
60
|
+
square: {
|
|
61
|
+
true: string;
|
|
62
|
+
false: string;
|
|
63
|
+
};
|
|
49
64
|
block: {
|
|
50
65
|
true: string;
|
|
51
66
|
};
|
|
52
|
-
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-lg font-medium transition-
|
|
67
|
+
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-lg border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", unknown, unknown, undefined>>;
|
|
53
68
|
export type ButtonVariants = Parameters<typeof buttonTheme>[0];
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare const cardTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
outline: {
|
|
4
|
+
root: string;
|
|
5
|
+
};
|
|
6
|
+
soft: {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
padding: {
|
|
11
|
+
none: {};
|
|
12
|
+
sm: {
|
|
13
|
+
root: string;
|
|
14
|
+
header: string;
|
|
15
|
+
footer: string;
|
|
16
|
+
};
|
|
17
|
+
md: {
|
|
18
|
+
root: string;
|
|
19
|
+
header: string;
|
|
20
|
+
footer: string;
|
|
21
|
+
};
|
|
22
|
+
lg: {
|
|
23
|
+
root: string;
|
|
24
|
+
header: string;
|
|
25
|
+
footer: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
root: string;
|
|
30
|
+
/** Only rendered when a title, description or header slot is provided. */
|
|
31
|
+
header: string;
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
body: string;
|
|
35
|
+
/** Only rendered when a footer slot is provided. */
|
|
36
|
+
footer: string;
|
|
37
|
+
}, undefined, {
|
|
38
|
+
variant: {
|
|
39
|
+
outline: {
|
|
40
|
+
root: string;
|
|
41
|
+
};
|
|
42
|
+
soft: {
|
|
43
|
+
root: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
padding: {
|
|
47
|
+
none: {};
|
|
48
|
+
sm: {
|
|
49
|
+
root: string;
|
|
50
|
+
header: string;
|
|
51
|
+
footer: string;
|
|
52
|
+
};
|
|
53
|
+
md: {
|
|
54
|
+
root: string;
|
|
55
|
+
header: string;
|
|
56
|
+
footer: string;
|
|
57
|
+
};
|
|
58
|
+
lg: {
|
|
59
|
+
root: string;
|
|
60
|
+
header: string;
|
|
61
|
+
footer: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
root: string;
|
|
66
|
+
/** Only rendered when a title, description or header slot is provided. */
|
|
67
|
+
header: string;
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
body: string;
|
|
71
|
+
/** Only rendered when a footer slot is provided. */
|
|
72
|
+
footer: string;
|
|
73
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
74
|
+
variant: {
|
|
75
|
+
outline: {
|
|
76
|
+
root: string;
|
|
77
|
+
};
|
|
78
|
+
soft: {
|
|
79
|
+
root: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
padding: {
|
|
83
|
+
none: {};
|
|
84
|
+
sm: {
|
|
85
|
+
root: string;
|
|
86
|
+
header: string;
|
|
87
|
+
footer: string;
|
|
88
|
+
};
|
|
89
|
+
md: {
|
|
90
|
+
root: string;
|
|
91
|
+
header: string;
|
|
92
|
+
footer: string;
|
|
93
|
+
};
|
|
94
|
+
lg: {
|
|
95
|
+
root: string;
|
|
96
|
+
header: string;
|
|
97
|
+
footer: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
root: string;
|
|
102
|
+
/** Only rendered when a title, description or header slot is provided. */
|
|
103
|
+
header: string;
|
|
104
|
+
title: string;
|
|
105
|
+
description: string;
|
|
106
|
+
body: string;
|
|
107
|
+
/** Only rendered when a footer slot is provided. */
|
|
108
|
+
footer: string;
|
|
109
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
110
|
+
export type CardSlots = keyof ReturnType<typeof cardTheme>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const dialogTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
content: string;
|
|
5
|
+
};
|
|
6
|
+
md: {
|
|
7
|
+
content: string;
|
|
8
|
+
};
|
|
9
|
+
lg: {
|
|
10
|
+
content: string;
|
|
11
|
+
};
|
|
12
|
+
xl: {
|
|
13
|
+
content: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
overlay: string;
|
|
18
|
+
content: string;
|
|
19
|
+
header: string;
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
body: string;
|
|
23
|
+
footer: string;
|
|
24
|
+
close: string;
|
|
25
|
+
}, undefined, {
|
|
26
|
+
size: {
|
|
27
|
+
sm: {
|
|
28
|
+
content: string;
|
|
29
|
+
};
|
|
30
|
+
md: {
|
|
31
|
+
content: string;
|
|
32
|
+
};
|
|
33
|
+
lg: {
|
|
34
|
+
content: string;
|
|
35
|
+
};
|
|
36
|
+
xl: {
|
|
37
|
+
content: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
overlay: string;
|
|
42
|
+
content: string;
|
|
43
|
+
header: string;
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
body: string;
|
|
47
|
+
footer: string;
|
|
48
|
+
close: string;
|
|
49
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
50
|
+
size: {
|
|
51
|
+
sm: {
|
|
52
|
+
content: string;
|
|
53
|
+
};
|
|
54
|
+
md: {
|
|
55
|
+
content: string;
|
|
56
|
+
};
|
|
57
|
+
lg: {
|
|
58
|
+
content: string;
|
|
59
|
+
};
|
|
60
|
+
xl: {
|
|
61
|
+
content: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
overlay: string;
|
|
66
|
+
content: string;
|
|
67
|
+
header: string;
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
body: string;
|
|
71
|
+
footer: string;
|
|
72
|
+
close: string;
|
|
73
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
74
|
+
export type DialogSlots = keyof ReturnType<typeof dialogTheme>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const dropdownMenuTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
/** Destructive items read in the danger colour, including when highlighted. */
|
|
3
|
+
danger: {
|
|
4
|
+
true: {
|
|
5
|
+
item: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
content: string;
|
|
10
|
+
item: string;
|
|
11
|
+
label: string;
|
|
12
|
+
separator: string;
|
|
13
|
+
/** Same chrome as an item, plus a trailing chevron and an open state. */
|
|
14
|
+
subTrigger: string;
|
|
15
|
+
subContent: string;
|
|
16
|
+
/** Pushes the submenu chevron to the trailing edge. */
|
|
17
|
+
subTriggerIcon: string;
|
|
18
|
+
}, undefined, {
|
|
19
|
+
/** Destructive items read in the danger colour, including when highlighted. */
|
|
20
|
+
danger: {
|
|
21
|
+
true: {
|
|
22
|
+
item: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
content: string;
|
|
27
|
+
item: string;
|
|
28
|
+
label: string;
|
|
29
|
+
separator: string;
|
|
30
|
+
/** Same chrome as an item, plus a trailing chevron and an open state. */
|
|
31
|
+
subTrigger: string;
|
|
32
|
+
subContent: string;
|
|
33
|
+
/** Pushes the submenu chevron to the trailing edge. */
|
|
34
|
+
subTriggerIcon: string;
|
|
35
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
36
|
+
/** Destructive items read in the danger colour, including when highlighted. */
|
|
37
|
+
danger: {
|
|
38
|
+
true: {
|
|
39
|
+
item: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
content: string;
|
|
44
|
+
item: string;
|
|
45
|
+
label: string;
|
|
46
|
+
separator: string;
|
|
47
|
+
/** Same chrome as an item, plus a trailing chevron and an open state. */
|
|
48
|
+
subTrigger: string;
|
|
49
|
+
subContent: string;
|
|
50
|
+
/** Pushes the submenu chevron to the trailing edge. */
|
|
51
|
+
subTriggerIcon: string;
|
|
52
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
53
|
+
export type DropdownMenuSlots = keyof ReturnType<typeof dropdownMenuTheme>;
|