iryx-ui 0.2.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 +3 -3
- package/dist/components/Breadcrumb.vue.d.ts +45 -0
- package/dist/components/Button.vue.d.ts +8 -0
- package/dist/components/ButtonGroup.vue.d.ts +32 -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 +15 -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 +19 -0
- package/dist/index.js +64 -31
- 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.vue_vue_type_script_setup_true_lang.js +75 -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/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/{theme → packages/iryx-ui/src/theme}/badge.js +3 -3
- 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/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/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/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/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 +14 -0
- package/dist/theme/label.d.ts +18 -0
- package/dist/theme/pagination.d.ts +71 -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/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 +55 -0
- package/dist/component-names.js +0 -19
- package/dist/components/Alert.vue_vue_type_script_setup_true_lang.js +0 -74
- 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 -34
- package/dist/theme/button.js +0 -27
- package/dist/theme/form.js +0 -14
- /package/dist/{components → packages/iryx-ui/src/components}/Alert.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/App.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/App.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Badge.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Badge.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Button.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Card.js +0 -0
- /package/dist/{components → packages/iryx-ui/src/components}/Card.vue_vue_type_script_setup_true_lang.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/{plugin.js → packages/iryx-ui/src/plugin.js} +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/alert.js +0 -0
- /package/dist/{theme → packages/iryx-ui/src/theme}/card.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}/presets.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,33 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/progress.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex w-full flex-col gap-1.5",
|
|
6
|
+
header: "flex items-baseline justify-between gap-2 text-sm",
|
|
7
|
+
label: "font-medium text-foreground",
|
|
8
|
+
value: "text-muted-foreground tabular-nums",
|
|
9
|
+
track: "relative w-full overflow-hidden rounded-full bg-muted",
|
|
10
|
+
indicator: "h-full w-full flex-1 rounded-full transition-transform duration-300 ease-out"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
primary: { indicator: "bg-linear-to-b from-primary-from to-primary-to" },
|
|
15
|
+
success: { indicator: "bg-success" },
|
|
16
|
+
warning: { indicator: "bg-warning" },
|
|
17
|
+
danger: { indicator: "bg-danger" },
|
|
18
|
+
info: { indicator: "bg-info" }
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
sm: { track: "h-1" },
|
|
22
|
+
md: { track: "h-2" },
|
|
23
|
+
lg: { track: "h-3" }
|
|
24
|
+
},
|
|
25
|
+
indeterminate: { true: { indicator: "w-1/3 animate-progress-indeterminate" } }
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "primary",
|
|
29
|
+
size: "md"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { t as progressTheme };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/separator.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex shrink-0 items-center",
|
|
6
|
+
line: "bg-border",
|
|
7
|
+
label: "shrink-0 text-xs text-muted-foreground"
|
|
8
|
+
},
|
|
9
|
+
variants: { orientation: {
|
|
10
|
+
horizontal: {
|
|
11
|
+
root: "w-full gap-3",
|
|
12
|
+
line: "h-px w-full"
|
|
13
|
+
},
|
|
14
|
+
vertical: {
|
|
15
|
+
root: "h-full flex-col gap-3",
|
|
16
|
+
line: "h-full w-px"
|
|
17
|
+
}
|
|
18
|
+
} },
|
|
19
|
+
defaultVariants: { orientation: "horizontal" }
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as separatorTheme };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/skeleton.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
base: "animate-pulse bg-muted",
|
|
5
|
+
variants: { variant: {
|
|
6
|
+
text: "h-[1em] w-full rounded",
|
|
7
|
+
rect: "rounded-lg",
|
|
8
|
+
circle: "aspect-square rounded-full"
|
|
9
|
+
} },
|
|
10
|
+
defaultVariants: { variant: "rect" }
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as skeletonTheme };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/stat.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex flex-col gap-2",
|
|
6
|
+
label: "text-xs font-medium tracking-wide text-muted-foreground uppercase",
|
|
7
|
+
value: "font-semibold tracking-tight text-foreground tabular-nums",
|
|
8
|
+
delta: "inline-flex items-center gap-0.5 rounded-full px-2 py-0.5 text-xs font-medium tabular-nums has-[[data-icon=inline-end]]:pe-1 has-[[data-icon=inline-start]]:ps-1 [&_svg]:size-3.5",
|
|
9
|
+
hint: "text-xs text-muted-foreground",
|
|
10
|
+
row: "flex flex-col items-start gap-1.5"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
sm: { value: "text-2xl" },
|
|
15
|
+
md: { value: "text-3xl" },
|
|
16
|
+
lg: { value: "text-4xl" }
|
|
17
|
+
},
|
|
18
|
+
trend: {
|
|
19
|
+
up: { delta: "bg-success-muted text-success-muted-foreground" },
|
|
20
|
+
down: { delta: "bg-danger-muted text-danger-muted-foreground" },
|
|
21
|
+
neutral: { delta: "bg-muted text-muted-foreground" }
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
size: "md",
|
|
26
|
+
trend: "neutral"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { t as statTheme };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/stepper.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex w-full",
|
|
6
|
+
item: "group relative flex flex-1 items-center gap-3",
|
|
7
|
+
trigger: "flex items-center gap-3 rounded-lg text-left outline-none focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50",
|
|
8
|
+
indicator: "flex size-8 shrink-0 items-center justify-center rounded-full border border-border bg-linear-to-b text-sm font-medium transition-[color,border-color] group-data-[state=active]:border-primary group-data-[state=active]:from-primary-from group-data-[state=active]:to-primary-to group-data-[state=active]:text-primary-foreground group-data-[state=completed]:border-primary group-data-[state=completed]:from-primary-from group-data-[state=completed]:to-primary-to group-data-[state=completed]:text-primary-foreground [&_svg]:size-4",
|
|
9
|
+
content: "flex flex-col gap-0.5",
|
|
10
|
+
title: "text-sm font-medium text-foreground",
|
|
11
|
+
description: "text-xs text-muted-foreground",
|
|
12
|
+
separator: "h-px flex-1 bg-border group-data-[state=completed]:bg-primary"
|
|
13
|
+
},
|
|
14
|
+
variants: { orientation: {
|
|
15
|
+
horizontal: {},
|
|
16
|
+
vertical: {
|
|
17
|
+
root: "flex-col gap-2",
|
|
18
|
+
item: "flex-none items-start",
|
|
19
|
+
separator: "ml-4 h-6 w-px flex-none"
|
|
20
|
+
}
|
|
21
|
+
} },
|
|
22
|
+
defaultVariants: { orientation: "horizontal" }
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { t as stepperTheme };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/tabs.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex flex-col gap-4",
|
|
6
|
+
list: "relative flex shrink-0 items-center gap-1",
|
|
7
|
+
indicator: "absolute left-0 transition-[translate,width,height] duration-200 ease-out",
|
|
8
|
+
trigger: "relative z-10 inline-flex items-center justify-center gap-2 text-sm font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9
|
+
content: "outline-none"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
solid: {
|
|
14
|
+
list: "rounded-lg bg-muted p-1",
|
|
15
|
+
indicator: "top-1 h-[calc(100%---spacing(2))] rounded-md bg-background shadow-sm",
|
|
16
|
+
trigger: "rounded-md px-3 py-1.5 text-muted-foreground data-[state=active]:text-foreground"
|
|
17
|
+
},
|
|
18
|
+
line: {
|
|
19
|
+
list: "gap-4 border-b border-border",
|
|
20
|
+
indicator: "bottom-0 h-0.5 rounded-none bg-primary",
|
|
21
|
+
trigger: "rounded-none px-1 py-2 text-muted-foreground data-[state=active]:text-foreground"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
orientation: {
|
|
25
|
+
horizontal: { indicator: "w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)" },
|
|
26
|
+
vertical: {
|
|
27
|
+
root: "flex-row",
|
|
28
|
+
list: "flex-col items-stretch",
|
|
29
|
+
indicator: "h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
compoundVariants: [{
|
|
34
|
+
variant: "solid",
|
|
35
|
+
orientation: "vertical",
|
|
36
|
+
class: { indicator: "top-0 left-1 w-[calc(100%---spacing(2))]" }
|
|
37
|
+
}, {
|
|
38
|
+
variant: "line",
|
|
39
|
+
orientation: "vertical",
|
|
40
|
+
class: {
|
|
41
|
+
list: "border-r border-b-0",
|
|
42
|
+
indicator: "right-0 bottom-auto h-(--reka-tabs-indicator-size) w-0.5",
|
|
43
|
+
trigger: "text-left"
|
|
44
|
+
}
|
|
45
|
+
}],
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
variant: "solid",
|
|
48
|
+
orientation: "horizontal"
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { t as tabsTheme };
|
|
@@ -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,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,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>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare const emptyStateTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
root: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
title: string;
|
|
7
|
+
actions: string;
|
|
8
|
+
};
|
|
9
|
+
md: {
|
|
10
|
+
root: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
title: string;
|
|
13
|
+
actions: string;
|
|
14
|
+
};
|
|
15
|
+
lg: {
|
|
16
|
+
root: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
title: string;
|
|
19
|
+
actions: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
root: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
/** Only rendered when the actions slot is used. */
|
|
28
|
+
actions: string;
|
|
29
|
+
}, undefined, {
|
|
30
|
+
size: {
|
|
31
|
+
sm: {
|
|
32
|
+
root: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
title: string;
|
|
35
|
+
actions: string;
|
|
36
|
+
};
|
|
37
|
+
md: {
|
|
38
|
+
root: string;
|
|
39
|
+
icon: string;
|
|
40
|
+
title: string;
|
|
41
|
+
actions: string;
|
|
42
|
+
};
|
|
43
|
+
lg: {
|
|
44
|
+
root: string;
|
|
45
|
+
icon: string;
|
|
46
|
+
title: string;
|
|
47
|
+
actions: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
root: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
title: string;
|
|
54
|
+
description: string;
|
|
55
|
+
/** Only rendered when the actions slot is used. */
|
|
56
|
+
actions: string;
|
|
57
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
58
|
+
size: {
|
|
59
|
+
sm: {
|
|
60
|
+
root: string;
|
|
61
|
+
icon: string;
|
|
62
|
+
title: string;
|
|
63
|
+
actions: string;
|
|
64
|
+
};
|
|
65
|
+
md: {
|
|
66
|
+
root: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
title: string;
|
|
69
|
+
actions: string;
|
|
70
|
+
};
|
|
71
|
+
lg: {
|
|
72
|
+
root: string;
|
|
73
|
+
icon: string;
|
|
74
|
+
title: string;
|
|
75
|
+
actions: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
root: string;
|
|
80
|
+
icon: string;
|
|
81
|
+
title: string;
|
|
82
|
+
description: string;
|
|
83
|
+
/** Only rendered when the actions slot is used. */
|
|
84
|
+
actions: string;
|
|
85
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
86
|
+
export type EmptyStateSlots = keyof ReturnType<typeof emptyStateTheme>;
|