iryx-ui 0.5.0 → 0.6.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 +205 -3
- package/dist/component-names.d.ts +1 -1
- package/dist/components/Alert.vue.d.ts +19 -4
- package/dist/components/Badge.vue.d.ts +4 -3
- package/dist/components/Banner.vue.d.ts +81 -0
- package/dist/components/Combobox.vue.d.ts +3 -3
- package/dist/components/DropdownMenu.vue.d.ts +1 -1
- package/dist/components/Pagination.vue.d.ts +2 -0
- package/dist/components/Select.vue.d.ts +2 -2
- package/dist/components/Table.vue.d.ts +131 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/composables/data-table.d.ts +93 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +65 -60
- package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +15 -1
- package/dist/packages/iryx-ui/src/component-names.js +1 -1
- package/dist/packages/iryx-ui/src/components/Alert.vue_vue_type_script_setup_true_lang.js +51 -35
- package/dist/packages/iryx-ui/src/components/Badge.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/packages/iryx-ui/src/components/Banner.js +5 -0
- package/dist/packages/iryx-ui/src/components/Banner.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/packages/iryx-ui/src/components/Pagination.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/packages/iryx-ui/src/components/Table.js +5 -0
- package/dist/packages/iryx-ui/src/components/Table.vue_vue_type_script_setup_true_lang.js +217 -0
- package/dist/packages/iryx-ui/src/components/index.js +62 -58
- package/dist/packages/iryx-ui/src/composables/data-table.js +106 -0
- package/dist/packages/iryx-ui/src/theme/alert.js +10 -21
- package/dist/packages/iryx-ui/src/theme/badge.js +37 -37
- package/dist/packages/iryx-ui/src/theme/banner.js +62 -0
- package/dist/packages/iryx-ui/src/theme/pagination.js +23 -13
- package/dist/packages/iryx-ui/src/theme/stat.js +4 -4
- package/dist/packages/iryx-ui/src/theme/table.js +62 -0
- package/dist/packages/iryx-ui/src/theme/toast.js +11 -26
- package/dist/theme/alert.d.ts +6 -12
- package/dist/theme/badge.d.ts +15 -12
- package/dist/theme/banner.d.ts +185 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/pagination.d.ts +33 -0
- package/dist/theme/stat.d.ts +0 -3
- package/dist/theme/table.d.ts +230 -0
- package/dist/theme/toast.d.ts +0 -15
- package/package.json +1 -1
- package/theme.css +10 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/banner.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "w-full border-b",
|
|
6
|
+
container: "mx-auto flex w-full items-center gap-3 px-4 py-2.5",
|
|
7
|
+
icon: "shrink-0 [&_svg]:size-4",
|
|
8
|
+
content: "min-w-0 flex-1 text-sm",
|
|
9
|
+
title: "font-medium",
|
|
10
|
+
actions: "flex shrink-0 items-center gap-2",
|
|
11
|
+
close: "-mr-1 shrink-0 rounded-lg p-1 opacity-70 transition-opacity outline-none hover:opacity-100 focus-visible:ring-2 focus-visible:ring-current/50 [&_svg]:size-4"
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
variant: {
|
|
15
|
+
neutral: {
|
|
16
|
+
root: "border-border bg-muted text-foreground",
|
|
17
|
+
icon: "text-muted-foreground"
|
|
18
|
+
},
|
|
19
|
+
info: {
|
|
20
|
+
root: "border-info-border bg-info-muted text-info-muted-foreground",
|
|
21
|
+
icon: "text-info"
|
|
22
|
+
},
|
|
23
|
+
success: {
|
|
24
|
+
root: "border-success-border bg-success-muted text-success-muted-foreground",
|
|
25
|
+
icon: "text-success"
|
|
26
|
+
},
|
|
27
|
+
warning: {
|
|
28
|
+
root: "border-warning-border bg-warning-muted text-warning-muted-foreground",
|
|
29
|
+
icon: "text-warning"
|
|
30
|
+
},
|
|
31
|
+
danger: {
|
|
32
|
+
root: "border-danger-border bg-danger-muted text-danger-muted-foreground",
|
|
33
|
+
icon: "text-danger"
|
|
34
|
+
},
|
|
35
|
+
primary: {
|
|
36
|
+
root: "border-transparent bg-linear-to-b from-primary-from to-primary-to text-primary-foreground",
|
|
37
|
+
icon: "text-primary-foreground"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
position: {
|
|
41
|
+
static: {},
|
|
42
|
+
top: { root: "sticky top-0 z-30" },
|
|
43
|
+
bottom: { root: "fixed inset-x-0 bottom-0 z-30 border-t border-b-0" }
|
|
44
|
+
},
|
|
45
|
+
contained: {
|
|
46
|
+
true: { container: "max-w-5xl" },
|
|
47
|
+
false: {}
|
|
48
|
+
},
|
|
49
|
+
align: {
|
|
50
|
+
start: {},
|
|
51
|
+
center: { content: "text-center" }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
defaultVariants: {
|
|
55
|
+
variant: "neutral",
|
|
56
|
+
position: "static",
|
|
57
|
+
contained: !1,
|
|
58
|
+
align: "start"
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
export { t as bannerTheme };
|
|
@@ -9,21 +9,31 @@ var t = e({
|
|
|
9
9
|
inactive: "text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
10
10
|
ellipsis: "inline-flex items-center justify-center text-sm text-muted-foreground"
|
|
11
11
|
},
|
|
12
|
-
variants: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
sm: {
|
|
15
|
+
item: "h-8 min-w-8 px-2",
|
|
16
|
+
ellipsis: "h-8 min-w-8"
|
|
17
|
+
},
|
|
18
|
+
md: {
|
|
19
|
+
item: "h-9 min-w-9 px-2.5",
|
|
20
|
+
ellipsis: "h-9 min-w-9"
|
|
21
|
+
},
|
|
22
|
+
lg: {
|
|
23
|
+
item: "h-10 min-w-10 px-3",
|
|
24
|
+
ellipsis: "h-10 min-w-10"
|
|
25
|
+
}
|
|
16
26
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
lg: {
|
|
22
|
-
item: "h-10 min-w-10 px-3",
|
|
23
|
-
ellipsis: "h-10 min-w-10"
|
|
27
|
+
align: {
|
|
28
|
+
start: { root: "justify-start" },
|
|
29
|
+
center: { root: "justify-center" },
|
|
30
|
+
end: { root: "justify-end" }
|
|
24
31
|
}
|
|
25
|
-
}
|
|
26
|
-
defaultVariants: {
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
size: "sm",
|
|
35
|
+
align: "center"
|
|
36
|
+
}
|
|
27
37
|
});
|
|
28
38
|
//#endregion
|
|
29
39
|
export { t as paginationTheme };
|
|
@@ -5,7 +5,7 @@ var t = e({
|
|
|
5
5
|
root: "flex flex-col gap-2",
|
|
6
6
|
label: "text-xs font-medium tracking-wide text-muted-foreground uppercase",
|
|
7
7
|
value: "font-semibold tracking-tight text-foreground tabular-nums",
|
|
8
|
-
delta: "inline-flex items-center gap-0.5
|
|
8
|
+
delta: "inline-flex items-center gap-0.5 text-xs font-medium tabular-nums [&_svg]:size-3.5",
|
|
9
9
|
hint: "text-xs text-muted-foreground",
|
|
10
10
|
row: "flex flex-col items-start gap-1.5"
|
|
11
11
|
},
|
|
@@ -16,9 +16,9 @@ var t = e({
|
|
|
16
16
|
lg: { value: "text-4xl" }
|
|
17
17
|
},
|
|
18
18
|
trend: {
|
|
19
|
-
up: { delta: "
|
|
20
|
-
down: { delta: "
|
|
21
|
-
neutral: { delta: "
|
|
19
|
+
up: { delta: "text-success" },
|
|
20
|
+
down: { delta: "text-danger" },
|
|
21
|
+
neutral: { delta: "text-muted-foreground" }
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
defaultVariants: {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/table.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "relative w-full overflow-x-auto",
|
|
6
|
+
table: "w-full caption-bottom border-collapse text-sm",
|
|
7
|
+
thead: "",
|
|
8
|
+
tbody: "",
|
|
9
|
+
tr: "border-b border-border transition-colors last:border-b-0",
|
|
10
|
+
th: "border-b border-border px-3 py-3 text-start align-middle text-xs font-semibold tracking-wide text-muted-foreground uppercase",
|
|
11
|
+
sortButton: "inline-flex cursor-pointer items-center gap-1.5 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-primary/50 [&_svg]:size-3.5 [&_svg]:shrink-0",
|
|
12
|
+
sortIcon: "text-muted-foreground/70 transition-colors",
|
|
13
|
+
td: "px-3 py-3 align-middle text-foreground",
|
|
14
|
+
gutter: "w-px px-3 py-3 align-middle",
|
|
15
|
+
headGutter: "w-px border-b border-border px-3 py-3 align-middle",
|
|
16
|
+
expandButton: "inline-flex size-6 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-[transform,color,background-color] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 [&_svg]:size-4",
|
|
17
|
+
expandedRow: "bg-muted/30",
|
|
18
|
+
expandedCell: "p-0",
|
|
19
|
+
empty: "px-3 py-10 text-center text-sm text-muted-foreground",
|
|
20
|
+
caption: "mt-3 text-sm text-muted-foreground"
|
|
21
|
+
},
|
|
22
|
+
variants: {
|
|
23
|
+
striped: { true: { tr: "even:bg-muted/30" } },
|
|
24
|
+
hoverable: { true: { tr: "hover:bg-muted/50" } },
|
|
25
|
+
clickable: { true: { tr: "cursor-pointer" } },
|
|
26
|
+
stickyHeader: { true: { th: "sticky top-0 z-10 bg-background" } },
|
|
27
|
+
selected: { true: { tr: "bg-primary/5" } },
|
|
28
|
+
size: {
|
|
29
|
+
sm: {
|
|
30
|
+
th: "py-2",
|
|
31
|
+
td: "py-2",
|
|
32
|
+
gutter: "py-2"
|
|
33
|
+
},
|
|
34
|
+
md: {},
|
|
35
|
+
lg: {
|
|
36
|
+
th: "py-4",
|
|
37
|
+
td: "py-4",
|
|
38
|
+
gutter: "py-4"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
align: {
|
|
42
|
+
start: {
|
|
43
|
+
th: "text-start",
|
|
44
|
+
td: "text-start"
|
|
45
|
+
},
|
|
46
|
+
center: {
|
|
47
|
+
th: "text-center",
|
|
48
|
+
td: "text-center"
|
|
49
|
+
},
|
|
50
|
+
end: {
|
|
51
|
+
th: "text-end",
|
|
52
|
+
td: "text-end"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
size: "md",
|
|
58
|
+
hoverable: !0
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
export { t as tableTheme };
|
|
@@ -3,36 +3,21 @@ import { tv as e } from "tailwind-variants";
|
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: {
|
|
5
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-xl border p-4 shadow-lg data-[state=closed]:animate-fade-out data-[state=open]:animate-toast-in",
|
|
7
|
-
icon: "mt-
|
|
6
|
+
root: "flex items-start gap-3 rounded-xl border border-border bg-background p-4 text-foreground shadow-lg data-[state=closed]:animate-fade-out data-[state=open]:animate-toast-in",
|
|
7
|
+
icon: "mt-px shrink-0 [&_svg]:size-4.5",
|
|
8
8
|
content: "min-w-0 flex-1",
|
|
9
|
-
title: "text-sm font-medium",
|
|
10
|
-
description: "text-sm
|
|
11
|
-
action: "shrink-0 self-center rounded-lg px-2 py-1 text-
|
|
12
|
-
close: "-m-1 shrink-0 self-start rounded-lg p-1
|
|
9
|
+
title: "text-sm font-medium text-foreground",
|
|
10
|
+
description: "text-sm text-muted-foreground",
|
|
11
|
+
action: "shrink-0 self-center rounded-lg border border-border px-2.5 py-1 text-xs font-medium transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50",
|
|
12
|
+
close: "-m-1 shrink-0 self-start rounded-lg p-1 text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-primary/50 [&_svg]:size-4"
|
|
13
13
|
},
|
|
14
14
|
variants: {
|
|
15
15
|
variant: {
|
|
16
|
-
neutral: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
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
|
-
}
|
|
16
|
+
neutral: { icon: "text-muted-foreground" },
|
|
17
|
+
success: { icon: "text-success" },
|
|
18
|
+
warning: { icon: "text-warning" },
|
|
19
|
+
danger: { icon: "text-danger" },
|
|
20
|
+
info: { icon: "text-info" }
|
|
36
21
|
},
|
|
37
22
|
position: {
|
|
38
23
|
"top-left": { viewport: "top-0 left-0" },
|
package/dist/theme/alert.d.ts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
export declare const alertTheme: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
variant: {
|
|
3
3
|
info: {
|
|
4
|
-
root: string;
|
|
5
4
|
icon: string;
|
|
6
5
|
};
|
|
7
6
|
success: {
|
|
8
|
-
root: string;
|
|
9
7
|
icon: string;
|
|
10
8
|
};
|
|
11
9
|
warning: {
|
|
12
|
-
root: string;
|
|
13
10
|
icon: string;
|
|
14
11
|
};
|
|
15
12
|
danger: {
|
|
16
|
-
root: string;
|
|
17
13
|
icon: string;
|
|
18
14
|
};
|
|
19
15
|
};
|
|
@@ -29,23 +25,21 @@ export declare const alertTheme: import("tailwind-variants").TVReturnType<{
|
|
|
29
25
|
content: string;
|
|
30
26
|
title: string;
|
|
31
27
|
description: string;
|
|
28
|
+
/** Buttons or links under the body — "Retry", "Undo", "View invoice". */
|
|
29
|
+
actions: string;
|
|
32
30
|
close: string;
|
|
33
31
|
}, undefined, {
|
|
34
32
|
variant: {
|
|
35
33
|
info: {
|
|
36
|
-
root: string;
|
|
37
34
|
icon: string;
|
|
38
35
|
};
|
|
39
36
|
success: {
|
|
40
|
-
root: string;
|
|
41
37
|
icon: string;
|
|
42
38
|
};
|
|
43
39
|
warning: {
|
|
44
|
-
root: string;
|
|
45
40
|
icon: string;
|
|
46
41
|
};
|
|
47
42
|
danger: {
|
|
48
|
-
root: string;
|
|
49
43
|
icon: string;
|
|
50
44
|
};
|
|
51
45
|
};
|
|
@@ -61,23 +55,21 @@ export declare const alertTheme: import("tailwind-variants").TVReturnType<{
|
|
|
61
55
|
content: string;
|
|
62
56
|
title: string;
|
|
63
57
|
description: string;
|
|
58
|
+
/** Buttons or links under the body — "Retry", "Undo", "View invoice". */
|
|
59
|
+
actions: string;
|
|
64
60
|
close: string;
|
|
65
61
|
}, import("tailwind-variants").TVReturnType<{
|
|
66
62
|
variant: {
|
|
67
63
|
info: {
|
|
68
|
-
root: string;
|
|
69
64
|
icon: string;
|
|
70
65
|
};
|
|
71
66
|
success: {
|
|
72
|
-
root: string;
|
|
73
67
|
icon: string;
|
|
74
68
|
};
|
|
75
69
|
warning: {
|
|
76
|
-
root: string;
|
|
77
70
|
icon: string;
|
|
78
71
|
};
|
|
79
72
|
danger: {
|
|
80
|
-
root: string;
|
|
81
73
|
icon: string;
|
|
82
74
|
};
|
|
83
75
|
};
|
|
@@ -93,6 +85,8 @@ export declare const alertTheme: import("tailwind-variants").TVReturnType<{
|
|
|
93
85
|
content: string;
|
|
94
86
|
title: string;
|
|
95
87
|
description: string;
|
|
88
|
+
/** Buttons or links under the body — "Retry", "Undo", "View invoice". */
|
|
89
|
+
actions: string;
|
|
96
90
|
close: string;
|
|
97
91
|
}, undefined, unknown, unknown, undefined>>;
|
|
98
92
|
export type AlertSlots = keyof ReturnType<typeof alertTheme>;
|
package/dist/theme/badge.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ export declare const badgeTheme: import("tailwind-variants").TVReturnType<{
|
|
|
6
6
|
danger: {};
|
|
7
7
|
info: {};
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
withDot: {
|
|
10
|
+
true: {
|
|
11
|
+
root: string;
|
|
12
|
+
};
|
|
13
|
+
false: {};
|
|
13
14
|
};
|
|
14
15
|
size: {
|
|
15
16
|
sm: {
|
|
@@ -36,10 +37,11 @@ export declare const badgeTheme: import("tailwind-variants").TVReturnType<{
|
|
|
36
37
|
danger: {};
|
|
37
38
|
info: {};
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
withDot: {
|
|
41
|
+
true: {
|
|
42
|
+
root: string;
|
|
43
|
+
};
|
|
44
|
+
false: {};
|
|
43
45
|
};
|
|
44
46
|
size: {
|
|
45
47
|
sm: {
|
|
@@ -66,10 +68,11 @@ export declare const badgeTheme: import("tailwind-variants").TVReturnType<{
|
|
|
66
68
|
danger: {};
|
|
67
69
|
info: {};
|
|
68
70
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
withDot: {
|
|
72
|
+
true: {
|
|
73
|
+
root: string;
|
|
74
|
+
};
|
|
75
|
+
false: {};
|
|
73
76
|
};
|
|
74
77
|
size: {
|
|
75
78
|
sm: {
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
export declare const bannerTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
neutral: {
|
|
4
|
+
root: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
};
|
|
7
|
+
info: {
|
|
8
|
+
root: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
};
|
|
11
|
+
success: {
|
|
12
|
+
root: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
};
|
|
15
|
+
warning: {
|
|
16
|
+
root: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
};
|
|
19
|
+
danger: {
|
|
20
|
+
root: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
};
|
|
23
|
+
/** Brand-coloured, for announcements rather than status. */
|
|
24
|
+
primary: {
|
|
25
|
+
root: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
position: {
|
|
30
|
+
static: {};
|
|
31
|
+
/** Sticks under the top of the scroll container. */
|
|
32
|
+
top: {
|
|
33
|
+
root: string;
|
|
34
|
+
};
|
|
35
|
+
/** Pinned to the bottom of the viewport; the rule moves to the top edge. */
|
|
36
|
+
bottom: {
|
|
37
|
+
root: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/** Constrains the text while the fill still spans the viewport. */
|
|
41
|
+
contained: {
|
|
42
|
+
true: {
|
|
43
|
+
container: string;
|
|
44
|
+
};
|
|
45
|
+
false: {};
|
|
46
|
+
};
|
|
47
|
+
align: {
|
|
48
|
+
start: {};
|
|
49
|
+
center: {
|
|
50
|
+
content: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
root: string;
|
|
55
|
+
/** Keeps the text off the viewport edge without constraining the fill. */
|
|
56
|
+
container: string;
|
|
57
|
+
icon: string;
|
|
58
|
+
content: string;
|
|
59
|
+
title: string;
|
|
60
|
+
actions: string;
|
|
61
|
+
close: string;
|
|
62
|
+
}, undefined, {
|
|
63
|
+
variant: {
|
|
64
|
+
neutral: {
|
|
65
|
+
root: string;
|
|
66
|
+
icon: string;
|
|
67
|
+
};
|
|
68
|
+
info: {
|
|
69
|
+
root: string;
|
|
70
|
+
icon: string;
|
|
71
|
+
};
|
|
72
|
+
success: {
|
|
73
|
+
root: string;
|
|
74
|
+
icon: string;
|
|
75
|
+
};
|
|
76
|
+
warning: {
|
|
77
|
+
root: string;
|
|
78
|
+
icon: string;
|
|
79
|
+
};
|
|
80
|
+
danger: {
|
|
81
|
+
root: string;
|
|
82
|
+
icon: string;
|
|
83
|
+
};
|
|
84
|
+
/** Brand-coloured, for announcements rather than status. */
|
|
85
|
+
primary: {
|
|
86
|
+
root: string;
|
|
87
|
+
icon: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
position: {
|
|
91
|
+
static: {};
|
|
92
|
+
/** Sticks under the top of the scroll container. */
|
|
93
|
+
top: {
|
|
94
|
+
root: string;
|
|
95
|
+
};
|
|
96
|
+
/** Pinned to the bottom of the viewport; the rule moves to the top edge. */
|
|
97
|
+
bottom: {
|
|
98
|
+
root: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
/** Constrains the text while the fill still spans the viewport. */
|
|
102
|
+
contained: {
|
|
103
|
+
true: {
|
|
104
|
+
container: string;
|
|
105
|
+
};
|
|
106
|
+
false: {};
|
|
107
|
+
};
|
|
108
|
+
align: {
|
|
109
|
+
start: {};
|
|
110
|
+
center: {
|
|
111
|
+
content: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}, {
|
|
115
|
+
root: string;
|
|
116
|
+
/** Keeps the text off the viewport edge without constraining the fill. */
|
|
117
|
+
container: string;
|
|
118
|
+
icon: string;
|
|
119
|
+
content: string;
|
|
120
|
+
title: string;
|
|
121
|
+
actions: string;
|
|
122
|
+
close: string;
|
|
123
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
124
|
+
variant: {
|
|
125
|
+
neutral: {
|
|
126
|
+
root: string;
|
|
127
|
+
icon: string;
|
|
128
|
+
};
|
|
129
|
+
info: {
|
|
130
|
+
root: string;
|
|
131
|
+
icon: string;
|
|
132
|
+
};
|
|
133
|
+
success: {
|
|
134
|
+
root: string;
|
|
135
|
+
icon: string;
|
|
136
|
+
};
|
|
137
|
+
warning: {
|
|
138
|
+
root: string;
|
|
139
|
+
icon: string;
|
|
140
|
+
};
|
|
141
|
+
danger: {
|
|
142
|
+
root: string;
|
|
143
|
+
icon: string;
|
|
144
|
+
};
|
|
145
|
+
/** Brand-coloured, for announcements rather than status. */
|
|
146
|
+
primary: {
|
|
147
|
+
root: string;
|
|
148
|
+
icon: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
position: {
|
|
152
|
+
static: {};
|
|
153
|
+
/** Sticks under the top of the scroll container. */
|
|
154
|
+
top: {
|
|
155
|
+
root: string;
|
|
156
|
+
};
|
|
157
|
+
/** Pinned to the bottom of the viewport; the rule moves to the top edge. */
|
|
158
|
+
bottom: {
|
|
159
|
+
root: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
/** Constrains the text while the fill still spans the viewport. */
|
|
163
|
+
contained: {
|
|
164
|
+
true: {
|
|
165
|
+
container: string;
|
|
166
|
+
};
|
|
167
|
+
false: {};
|
|
168
|
+
};
|
|
169
|
+
align: {
|
|
170
|
+
start: {};
|
|
171
|
+
center: {
|
|
172
|
+
content: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
}, {
|
|
176
|
+
root: string;
|
|
177
|
+
/** Keeps the text off the viewport edge without constraining the fill. */
|
|
178
|
+
container: string;
|
|
179
|
+
icon: string;
|
|
180
|
+
content: string;
|
|
181
|
+
title: string;
|
|
182
|
+
actions: string;
|
|
183
|
+
close: string;
|
|
184
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
185
|
+
export type BannerSlots = keyof ReturnType<typeof bannerTheme>;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './alert';
|
|
2
2
|
export * from './badge';
|
|
3
|
+
export * from './banner';
|
|
3
4
|
export * from './breadcrumb';
|
|
4
5
|
export * from './button';
|
|
5
6
|
export * from './button-group';
|
|
@@ -22,6 +23,7 @@ export * from './skeleton';
|
|
|
22
23
|
export * from './stat';
|
|
23
24
|
export * from './stepper';
|
|
24
25
|
export * from './switch';
|
|
26
|
+
export * from './table';
|
|
25
27
|
export * from './tabs';
|
|
26
28
|
export * from './toast';
|
|
27
29
|
export * from './tooltip';
|
|
@@ -13,6 +13,17 @@ export declare const paginationTheme: import("tailwind-variants").TVReturnType<{
|
|
|
13
13
|
ellipsis: string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
align: {
|
|
17
|
+
start: {
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
center: {
|
|
21
|
+
root: string;
|
|
22
|
+
};
|
|
23
|
+
end: {
|
|
24
|
+
root: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
16
27
|
}, {
|
|
17
28
|
root: string;
|
|
18
29
|
list: string;
|
|
@@ -36,6 +47,17 @@ export declare const paginationTheme: import("tailwind-variants").TVReturnType<{
|
|
|
36
47
|
ellipsis: string;
|
|
37
48
|
};
|
|
38
49
|
};
|
|
50
|
+
align: {
|
|
51
|
+
start: {
|
|
52
|
+
root: string;
|
|
53
|
+
};
|
|
54
|
+
center: {
|
|
55
|
+
root: string;
|
|
56
|
+
};
|
|
57
|
+
end: {
|
|
58
|
+
root: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
39
61
|
}, {
|
|
40
62
|
root: string;
|
|
41
63
|
list: string;
|
|
@@ -59,6 +81,17 @@ export declare const paginationTheme: import("tailwind-variants").TVReturnType<{
|
|
|
59
81
|
ellipsis: string;
|
|
60
82
|
};
|
|
61
83
|
};
|
|
84
|
+
align: {
|
|
85
|
+
start: {
|
|
86
|
+
root: string;
|
|
87
|
+
};
|
|
88
|
+
center: {
|
|
89
|
+
root: string;
|
|
90
|
+
};
|
|
91
|
+
end: {
|
|
92
|
+
root: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
62
95
|
}, {
|
|
63
96
|
root: string;
|
|
64
97
|
list: string;
|
package/dist/theme/stat.d.ts
CHANGED
|
@@ -32,7 +32,6 @@ export declare const statTheme: import("tailwind-variants").TVReturnType<{
|
|
|
32
32
|
value: string;
|
|
33
33
|
delta: string;
|
|
34
34
|
hint: string;
|
|
35
|
-
/** Column, so the delta always sits on its own line under the value. */
|
|
36
35
|
row: string;
|
|
37
36
|
}, undefined, {
|
|
38
37
|
size: {
|
|
@@ -68,7 +67,6 @@ export declare const statTheme: import("tailwind-variants").TVReturnType<{
|
|
|
68
67
|
value: string;
|
|
69
68
|
delta: string;
|
|
70
69
|
hint: string;
|
|
71
|
-
/** Column, so the delta always sits on its own line under the value. */
|
|
72
70
|
row: string;
|
|
73
71
|
}, import("tailwind-variants").TVReturnType<{
|
|
74
72
|
size: {
|
|
@@ -104,7 +102,6 @@ export declare const statTheme: import("tailwind-variants").TVReturnType<{
|
|
|
104
102
|
value: string;
|
|
105
103
|
delta: string;
|
|
106
104
|
hint: string;
|
|
107
|
-
/** Column, so the delta always sits on its own line under the value. */
|
|
108
105
|
row: string;
|
|
109
106
|
}, undefined, unknown, unknown, undefined>>;
|
|
110
107
|
export type StatSlots = keyof ReturnType<typeof statTheme>;
|