iryx-ui 0.25.0 → 0.27.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/dist/components/AppShell.vue.d.ts +12 -11
- package/dist/components/AppShell.vue_vue_type_script_setup_true_lang.js +76 -61
- package/dist/components/Breadcrumb.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/CommandPalette.vue.d.ts +12 -0
- package/dist/components/CommandPalette.vue_vue_type_script_setup_true_lang.js +122 -85
- package/dist/components/DateRangePicker.vue.d.ts +14 -2
- package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +111 -70
- package/dist/components/DropdownMenu.vue_vue_type_script_setup_true_lang.js +19 -18
- package/dist/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +12 -8
- package/dist/components/Sidebar.vue.d.ts +11 -5
- package/dist/components/Sidebar.vue_vue_type_script_setup_true_lang.js +172 -92
- package/dist/components/Tabs.vue.d.ts +7 -6
- package/dist/components/Tabs.vue_vue_type_script_setup_true_lang.js +65 -30
- package/dist/composables/command-palette.d.ts +7 -0
- package/dist/composables/command-palette.js +8 -2
- package/dist/composables/date.d.ts +25 -0
- package/dist/composables/date.js +59 -16
- package/dist/composables/dropdown-menu.d.ts +3 -1
- package/dist/composables/scroll-fade.d.ts +1 -1
- package/dist/composables/sidebar.d.ts +3 -0
- package/dist/composables/sidebar.js +7 -6
- package/dist/index.js +166 -166
- package/dist/theme/app-shell.d.ts +27 -6
- package/dist/theme/app-shell.js +26 -9
- package/dist/theme/avatar.js +1 -1
- package/dist/theme/date-picker.d.ts +9 -0
- package/dist/theme/date-picker.js +3 -0
- package/dist/theme/presets.d.ts +1 -0
- package/dist/theme/presets.js +1 -0
- package/dist/theme/sidebar.d.ts +24 -0
- package/dist/theme/sidebar.js +9 -2
- package/dist/theme/tabs.d.ts +18 -3
- package/dist/theme/tabs.js +20 -12
- package/package.json +1 -1
- package/theme.css +4 -0
|
@@ -2,11 +2,13 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
2
2
|
scroll: {
|
|
3
3
|
main: {
|
|
4
4
|
root: string;
|
|
5
|
+
panel: string;
|
|
5
6
|
main: string;
|
|
6
7
|
};
|
|
7
8
|
page: {
|
|
8
9
|
root: string;
|
|
9
10
|
header: string;
|
|
11
|
+
headerRow: string;
|
|
10
12
|
sidebar: string;
|
|
11
13
|
};
|
|
12
14
|
};
|
|
@@ -25,14 +27,19 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
25
27
|
body: string;
|
|
26
28
|
};
|
|
27
29
|
};
|
|
30
|
+
hasSidebar: {
|
|
31
|
+
true: {};
|
|
32
|
+
false: {};
|
|
33
|
+
};
|
|
28
34
|
}, {
|
|
29
35
|
root: string;
|
|
36
|
+
body: string;
|
|
37
|
+
sidebar: string;
|
|
38
|
+
panel: string;
|
|
30
39
|
header: string;
|
|
31
40
|
headerRow: string;
|
|
32
41
|
headerContent: string;
|
|
33
42
|
navTrigger: string;
|
|
34
|
-
body: string;
|
|
35
|
-
sidebar: string;
|
|
36
43
|
main: string;
|
|
37
44
|
footer: string;
|
|
38
45
|
navDrawer: string;
|
|
@@ -41,11 +48,13 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
41
48
|
scroll: {
|
|
42
49
|
main: {
|
|
43
50
|
root: string;
|
|
51
|
+
panel: string;
|
|
44
52
|
main: string;
|
|
45
53
|
};
|
|
46
54
|
page: {
|
|
47
55
|
root: string;
|
|
48
56
|
header: string;
|
|
57
|
+
headerRow: string;
|
|
49
58
|
sidebar: string;
|
|
50
59
|
};
|
|
51
60
|
};
|
|
@@ -64,14 +73,19 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
64
73
|
body: string;
|
|
65
74
|
};
|
|
66
75
|
};
|
|
76
|
+
hasSidebar: {
|
|
77
|
+
true: {};
|
|
78
|
+
false: {};
|
|
79
|
+
};
|
|
67
80
|
}, {
|
|
68
81
|
root: string;
|
|
82
|
+
body: string;
|
|
83
|
+
sidebar: string;
|
|
84
|
+
panel: string;
|
|
69
85
|
header: string;
|
|
70
86
|
headerRow: string;
|
|
71
87
|
headerContent: string;
|
|
72
88
|
navTrigger: string;
|
|
73
|
-
body: string;
|
|
74
|
-
sidebar: string;
|
|
75
89
|
main: string;
|
|
76
90
|
footer: string;
|
|
77
91
|
navDrawer: string;
|
|
@@ -80,11 +94,13 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
80
94
|
scroll: {
|
|
81
95
|
main: {
|
|
82
96
|
root: string;
|
|
97
|
+
panel: string;
|
|
83
98
|
main: string;
|
|
84
99
|
};
|
|
85
100
|
page: {
|
|
86
101
|
root: string;
|
|
87
102
|
header: string;
|
|
103
|
+
headerRow: string;
|
|
88
104
|
sidebar: string;
|
|
89
105
|
};
|
|
90
106
|
};
|
|
@@ -103,14 +119,19 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
103
119
|
body: string;
|
|
104
120
|
};
|
|
105
121
|
};
|
|
122
|
+
hasSidebar: {
|
|
123
|
+
true: {};
|
|
124
|
+
false: {};
|
|
125
|
+
};
|
|
106
126
|
}, {
|
|
107
127
|
root: string;
|
|
128
|
+
body: string;
|
|
129
|
+
sidebar: string;
|
|
130
|
+
panel: string;
|
|
108
131
|
header: string;
|
|
109
132
|
headerRow: string;
|
|
110
133
|
headerContent: string;
|
|
111
134
|
navTrigger: string;
|
|
112
|
-
body: string;
|
|
113
|
-
sidebar: string;
|
|
114
135
|
main: string;
|
|
115
136
|
footer: string;
|
|
116
137
|
navDrawer: string;
|
package/dist/theme/app-shell.js
CHANGED
|
@@ -2,15 +2,16 @@ import { tv as e } from "tailwind-variants";
|
|
|
2
2
|
//#region src/theme/app-shell.ts
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: {
|
|
5
|
-
root: "flex w-full flex-col bg-
|
|
6
|
-
|
|
5
|
+
root: "flex w-full flex-col bg-canvas text-foreground",
|
|
6
|
+
body: "flex min-h-0 w-full flex-1",
|
|
7
|
+
sidebar: "shrink-0",
|
|
8
|
+
panel: "flex min-w-0 flex-1 flex-col bg-background md:m-2 md:rounded-xl md:border md:border-border md:shadow-xs",
|
|
9
|
+
header: "z-30 shrink-0 border-b border-border bg-background md:rounded-t-xl",
|
|
7
10
|
headerRow: "flex w-full items-center",
|
|
8
11
|
headerContent: "min-w-0 flex-1",
|
|
9
12
|
navTrigger: "ms-2 inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg text-muted-foreground transition-[color,background-color,border-color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 [&_svg]:size-5",
|
|
10
|
-
body: "flex min-h-0 w-full flex-1",
|
|
11
|
-
sidebar: "shrink-0",
|
|
12
13
|
main: "flex min-w-0 flex-1 flex-col",
|
|
13
|
-
footer: "shrink-0",
|
|
14
|
+
footer: "shrink-0 border-t border-border",
|
|
14
15
|
navDrawer: "",
|
|
15
16
|
navDrawerBody: "p-0 pt-12 [&>*]:h-full [&>*]:w-full [&>*]:border-0"
|
|
16
17
|
},
|
|
@@ -18,12 +19,14 @@ var t = e({
|
|
|
18
19
|
scroll: {
|
|
19
20
|
main: {
|
|
20
21
|
root: "h-svh overflow-hidden",
|
|
21
|
-
|
|
22
|
+
panel: "min-h-0 overflow-hidden",
|
|
23
|
+
main: "min-h-0 overflow-y-auto"
|
|
22
24
|
},
|
|
23
25
|
page: {
|
|
24
26
|
root: "min-h-svh",
|
|
25
|
-
header: "sticky top-0",
|
|
26
|
-
|
|
27
|
+
header: "sticky top-0 border-b-0 bg-canvas md:-mx-px md:-mt-[9px] md:rounded-none md:pt-2",
|
|
28
|
+
headerRow: "border-b border-border bg-background md:overflow-hidden md:rounded-t-xl md:border-x md:border-t",
|
|
29
|
+
sidebar: "sticky top-0 h-svh self-start overflow-y-auto"
|
|
27
30
|
}
|
|
28
31
|
},
|
|
29
32
|
mobileNav: {
|
|
@@ -36,11 +39,25 @@ var t = e({
|
|
|
36
39
|
sidebarPosition: {
|
|
37
40
|
left: {},
|
|
38
41
|
right: { body: "flex-row-reverse" }
|
|
42
|
+
},
|
|
43
|
+
hasSidebar: {
|
|
44
|
+
true: {},
|
|
45
|
+
false: {}
|
|
39
46
|
}
|
|
40
47
|
},
|
|
48
|
+
compoundVariants: [{
|
|
49
|
+
hasSidebar: !0,
|
|
50
|
+
sidebarPosition: "left",
|
|
51
|
+
class: { panel: "md:ms-0" }
|
|
52
|
+
}, {
|
|
53
|
+
hasSidebar: !0,
|
|
54
|
+
sidebarPosition: "right",
|
|
55
|
+
class: { panel: "md:me-0" }
|
|
56
|
+
}],
|
|
41
57
|
defaultVariants: {
|
|
42
58
|
scroll: "main",
|
|
43
|
-
sidebarPosition: "left"
|
|
59
|
+
sidebarPosition: "left",
|
|
60
|
+
hasSidebar: !1
|
|
44
61
|
}
|
|
45
62
|
});
|
|
46
63
|
//#endregion
|
package/dist/theme/avatar.js
CHANGED
|
@@ -2,7 +2,7 @@ import { tv as e } from "tailwind-variants";
|
|
|
2
2
|
//#region src/theme/avatar.ts
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: {
|
|
5
|
-
root: "relative inline-flex shrink-0 items-center justify-center bg-
|
|
5
|
+
root: "relative inline-flex shrink-0 items-center justify-center bg-foreground/8 align-middle select-none",
|
|
6
6
|
image: "size-full rounded-[inherit] object-cover",
|
|
7
7
|
fallback: "flex size-full items-center justify-center overflow-hidden rounded-[inherit] font-medium text-muted-foreground uppercase",
|
|
8
8
|
status: "absolute right-0 bottom-0 rounded-full ring-2 ring-background"
|
|
@@ -19,6 +19,9 @@ export declare const datePickerTheme: import("tailwind-variants").TVReturnType<{
|
|
|
19
19
|
trigger: string;
|
|
20
20
|
placeholder: string;
|
|
21
21
|
content: string;
|
|
22
|
+
panel: string;
|
|
23
|
+
presets: string;
|
|
24
|
+
preset: string;
|
|
22
25
|
footer: string;
|
|
23
26
|
action: string;
|
|
24
27
|
}, undefined, {
|
|
@@ -42,6 +45,9 @@ export declare const datePickerTheme: import("tailwind-variants").TVReturnType<{
|
|
|
42
45
|
trigger: string;
|
|
43
46
|
placeholder: string;
|
|
44
47
|
content: string;
|
|
48
|
+
panel: string;
|
|
49
|
+
presets: string;
|
|
50
|
+
preset: string;
|
|
45
51
|
footer: string;
|
|
46
52
|
action: string;
|
|
47
53
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
@@ -65,6 +71,9 @@ export declare const datePickerTheme: import("tailwind-variants").TVReturnType<{
|
|
|
65
71
|
trigger: string;
|
|
66
72
|
placeholder: string;
|
|
67
73
|
content: string;
|
|
74
|
+
panel: string;
|
|
75
|
+
presets: string;
|
|
76
|
+
preset: string;
|
|
68
77
|
footer: string;
|
|
69
78
|
action: string;
|
|
70
79
|
}>>;
|
|
@@ -6,6 +6,9 @@ var n = t({
|
|
|
6
6
|
trigger: `flex items-center justify-between gap-2 ${e} cursor-pointer [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:opacity-60`,
|
|
7
7
|
placeholder: "text-muted-foreground",
|
|
8
8
|
content: "z-50 rounded-xl border border-border bg-background p-3 text-foreground shadow-md",
|
|
9
|
+
panel: "flex flex-col gap-3 sm:flex-row",
|
|
10
|
+
presets: "-mx-3 -mt-3 flex w-0 min-w-[calc(100%+--spacing(6))] gap-1 overflow-x-auto border-b border-border p-3 sm:mx-0 sm:-my-3 sm:ml-0 sm:w-auto sm:min-w-0 sm:flex-col sm:overflow-visible sm:border-r sm:border-b-0 sm:py-3 sm:pr-3 sm:pl-0",
|
|
11
|
+
preset: "shrink-0 rounded-lg px-2 py-1 text-left text-sm whitespace-nowrap text-muted-foreground transition-[color,background-color,border-color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50 aria-pressed:bg-accent aria-pressed:text-accent-foreground",
|
|
9
12
|
footer: "flex items-center justify-between gap-2 pt-3",
|
|
10
13
|
action: "rounded-lg px-2 py-1 text-sm text-muted-foreground transition-[color,background-color,border-color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50"
|
|
11
14
|
},
|
package/dist/theme/presets.d.ts
CHANGED
package/dist/theme/presets.js
CHANGED
package/dist/theme/sidebar.d.ts
CHANGED
|
@@ -7,6 +7,13 @@ export declare const sidebarTheme: import("tailwind-variants").TVReturnType<{
|
|
|
7
7
|
root: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
inShell: {
|
|
11
|
+
true: {
|
|
12
|
+
root: string;
|
|
13
|
+
footer: string;
|
|
14
|
+
link: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
10
17
|
collapsed: {
|
|
11
18
|
true: {
|
|
12
19
|
root: string;
|
|
@@ -31,6 +38,7 @@ export declare const sidebarTheme: import("tailwind-variants").TVReturnType<{
|
|
|
31
38
|
sectionLabel: string;
|
|
32
39
|
link: string;
|
|
33
40
|
linkLabel: string;
|
|
41
|
+
linkInitial: string;
|
|
34
42
|
linkBadge: string;
|
|
35
43
|
groupIcon: string;
|
|
36
44
|
groupContent: string;
|
|
@@ -44,6 +52,13 @@ export declare const sidebarTheme: import("tailwind-variants").TVReturnType<{
|
|
|
44
52
|
root: string;
|
|
45
53
|
};
|
|
46
54
|
};
|
|
55
|
+
inShell: {
|
|
56
|
+
true: {
|
|
57
|
+
root: string;
|
|
58
|
+
footer: string;
|
|
59
|
+
link: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
47
62
|
collapsed: {
|
|
48
63
|
true: {
|
|
49
64
|
root: string;
|
|
@@ -68,6 +83,7 @@ export declare const sidebarTheme: import("tailwind-variants").TVReturnType<{
|
|
|
68
83
|
sectionLabel: string;
|
|
69
84
|
link: string;
|
|
70
85
|
linkLabel: string;
|
|
86
|
+
linkInitial: string;
|
|
71
87
|
linkBadge: string;
|
|
72
88
|
groupIcon: string;
|
|
73
89
|
groupContent: string;
|
|
@@ -81,6 +97,13 @@ export declare const sidebarTheme: import("tailwind-variants").TVReturnType<{
|
|
|
81
97
|
root: string;
|
|
82
98
|
};
|
|
83
99
|
};
|
|
100
|
+
inShell: {
|
|
101
|
+
true: {
|
|
102
|
+
root: string;
|
|
103
|
+
footer: string;
|
|
104
|
+
link: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
84
107
|
collapsed: {
|
|
85
108
|
true: {
|
|
86
109
|
root: string;
|
|
@@ -105,6 +128,7 @@ export declare const sidebarTheme: import("tailwind-variants").TVReturnType<{
|
|
|
105
128
|
sectionLabel: string;
|
|
106
129
|
link: string;
|
|
107
130
|
linkLabel: string;
|
|
131
|
+
linkInitial: string;
|
|
108
132
|
linkBadge: string;
|
|
109
133
|
groupIcon: string;
|
|
110
134
|
groupContent: string;
|
package/dist/theme/sidebar.js
CHANGED
|
@@ -5,11 +5,12 @@ var t = e({
|
|
|
5
5
|
root: "flex h-full flex-col gap-2 border-border bg-background text-foreground transition-[width] duration-200 ease-out",
|
|
6
6
|
header: "flex shrink-0 items-center gap-2 px-3 py-3",
|
|
7
7
|
nav: "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-2",
|
|
8
|
-
footer: "flex shrink-0 items-center gap-2 border-t border-border px-
|
|
8
|
+
footer: "flex shrink-0 items-center gap-2 border-t border-border px-2 py-3",
|
|
9
9
|
section: "flex flex-col gap-1",
|
|
10
10
|
sectionLabel: "px-2 pt-1 pb-0.5 text-xs font-medium tracking-wide text-muted-foreground uppercase",
|
|
11
11
|
link: "group/link relative flex w-full cursor-pointer items-center gap-3 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground no-underline transition-[color,background-color,border-color,box-shadow] outline-none select-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 data-[active]:bg-accent data-[active]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",
|
|
12
12
|
linkLabel: "flex-1 truncate text-left",
|
|
13
|
+
linkInitial: "flex size-4 shrink-0 items-center justify-center text-xs leading-none font-semibold",
|
|
13
14
|
linkBadge: "ml-auto shrink-0",
|
|
14
15
|
groupIcon: "ml-auto size-4 shrink-0 transition-[rotate] duration-200 ease-out group-data-[state=open]/link:rotate-90",
|
|
15
16
|
groupContent: "group/collapsible overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",
|
|
@@ -20,6 +21,11 @@ var t = e({
|
|
|
20
21
|
left: { root: "border-r" },
|
|
21
22
|
right: { root: "border-l" }
|
|
22
23
|
},
|
|
24
|
+
inShell: { true: {
|
|
25
|
+
root: "border-0 bg-transparent",
|
|
26
|
+
footer: "border-0",
|
|
27
|
+
link: "hover:bg-foreground/5 data-[active]:bg-foreground/[0.07]"
|
|
28
|
+
} },
|
|
23
29
|
collapsed: {
|
|
24
30
|
true: {
|
|
25
31
|
root: "w-16",
|
|
@@ -36,7 +42,8 @@ var t = e({
|
|
|
36
42
|
},
|
|
37
43
|
defaultVariants: {
|
|
38
44
|
side: "left",
|
|
39
|
-
collapsed: !1
|
|
45
|
+
collapsed: !1,
|
|
46
|
+
inShell: !1
|
|
40
47
|
}
|
|
41
48
|
});
|
|
42
49
|
//#endregion
|
package/dist/theme/tabs.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
variant: {
|
|
3
3
|
solid: {
|
|
4
|
-
|
|
4
|
+
frame: string;
|
|
5
5
|
indicator: string;
|
|
6
6
|
trigger: string;
|
|
7
7
|
};
|
|
8
8
|
line: {
|
|
9
|
+
frame: string;
|
|
9
10
|
list: string;
|
|
10
11
|
indicator: string;
|
|
11
12
|
trigger: string;
|
|
@@ -13,16 +14,20 @@ export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
|
13
14
|
};
|
|
14
15
|
orientation: {
|
|
15
16
|
horizontal: {
|
|
17
|
+
list: string;
|
|
16
18
|
indicator: string;
|
|
17
19
|
};
|
|
18
20
|
vertical: {
|
|
19
21
|
root: string;
|
|
22
|
+
frame: string;
|
|
20
23
|
list: string;
|
|
21
24
|
indicator: string;
|
|
25
|
+
trigger: string;
|
|
22
26
|
};
|
|
23
27
|
};
|
|
24
28
|
}, {
|
|
25
29
|
root: string;
|
|
30
|
+
frame: string;
|
|
26
31
|
list: string;
|
|
27
32
|
indicator: string;
|
|
28
33
|
trigger: string;
|
|
@@ -30,11 +35,12 @@ export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
|
30
35
|
}, undefined, {
|
|
31
36
|
variant: {
|
|
32
37
|
solid: {
|
|
33
|
-
|
|
38
|
+
frame: string;
|
|
34
39
|
indicator: string;
|
|
35
40
|
trigger: string;
|
|
36
41
|
};
|
|
37
42
|
line: {
|
|
43
|
+
frame: string;
|
|
38
44
|
list: string;
|
|
39
45
|
indicator: string;
|
|
40
46
|
trigger: string;
|
|
@@ -42,16 +48,20 @@ export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
|
42
48
|
};
|
|
43
49
|
orientation: {
|
|
44
50
|
horizontal: {
|
|
51
|
+
list: string;
|
|
45
52
|
indicator: string;
|
|
46
53
|
};
|
|
47
54
|
vertical: {
|
|
48
55
|
root: string;
|
|
56
|
+
frame: string;
|
|
49
57
|
list: string;
|
|
50
58
|
indicator: string;
|
|
59
|
+
trigger: string;
|
|
51
60
|
};
|
|
52
61
|
};
|
|
53
62
|
}, {
|
|
54
63
|
root: string;
|
|
64
|
+
frame: string;
|
|
55
65
|
list: string;
|
|
56
66
|
indicator: string;
|
|
57
67
|
trigger: string;
|
|
@@ -59,11 +69,12 @@ export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
|
59
69
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
60
70
|
variant: {
|
|
61
71
|
solid: {
|
|
62
|
-
|
|
72
|
+
frame: string;
|
|
63
73
|
indicator: string;
|
|
64
74
|
trigger: string;
|
|
65
75
|
};
|
|
66
76
|
line: {
|
|
77
|
+
frame: string;
|
|
67
78
|
list: string;
|
|
68
79
|
indicator: string;
|
|
69
80
|
trigger: string;
|
|
@@ -71,16 +82,20 @@ export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
|
71
82
|
};
|
|
72
83
|
orientation: {
|
|
73
84
|
horizontal: {
|
|
85
|
+
list: string;
|
|
74
86
|
indicator: string;
|
|
75
87
|
};
|
|
76
88
|
vertical: {
|
|
77
89
|
root: string;
|
|
90
|
+
frame: string;
|
|
78
91
|
list: string;
|
|
79
92
|
indicator: string;
|
|
93
|
+
trigger: string;
|
|
80
94
|
};
|
|
81
95
|
};
|
|
82
96
|
}, {
|
|
83
97
|
root: string;
|
|
98
|
+
frame: string;
|
|
84
99
|
list: string;
|
|
85
100
|
indicator: string;
|
|
86
101
|
trigger: string;
|
package/dist/theme/tabs.js
CHANGED
|
@@ -3,44 +3,52 @@ import { tv as e } from "tailwind-variants";
|
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: {
|
|
5
5
|
root: "flex flex-col gap-4",
|
|
6
|
-
|
|
6
|
+
frame: "flex min-w-0 shrink-0",
|
|
7
|
+
list: "relative flex min-w-0 flex-1 items-center gap-1",
|
|
7
8
|
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-[color,background-color,border-color,box-shadow] 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
|
+
trigger: "relative z-10 inline-flex shrink-0 items-center justify-center gap-2 text-sm font-medium whitespace-nowrap transition-[color,background-color,border-color,box-shadow] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-inset disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9
10
|
content: "outline-none"
|
|
10
11
|
},
|
|
11
12
|
variants: {
|
|
12
13
|
variant: {
|
|
13
14
|
solid: {
|
|
14
|
-
|
|
15
|
-
indicator: "top-
|
|
15
|
+
frame: "rounded-xl bg-muted p-1",
|
|
16
|
+
indicator: "top-0 h-full rounded-lg bg-background shadow-sm",
|
|
16
17
|
trigger: "rounded-lg px-3 py-1.5 text-muted-foreground data-[state=active]:text-foreground"
|
|
17
18
|
},
|
|
18
19
|
line: {
|
|
19
|
-
|
|
20
|
+
frame: "border-b border-border",
|
|
21
|
+
list: "gap-4",
|
|
20
22
|
indicator: "bottom-0 h-0.5 rounded-none bg-primary",
|
|
21
23
|
trigger: "rounded-none px-1 py-2 text-muted-foreground data-[state=active]:text-foreground"
|
|
22
24
|
}
|
|
23
25
|
},
|
|
24
26
|
orientation: {
|
|
25
|
-
horizontal: {
|
|
27
|
+
horizontal: {
|
|
28
|
+
list: "[scrollbar-width:none] overflow-x-auto scroll-smooth [&::-webkit-scrollbar]:hidden",
|
|
29
|
+
indicator: "w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)"
|
|
30
|
+
},
|
|
26
31
|
vertical: {
|
|
27
32
|
root: "flex-row",
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
frame: "min-h-0 flex-col",
|
|
34
|
+
list: "[scrollbar-width:none] flex-col items-stretch overflow-y-auto scroll-smooth [&::-webkit-scrollbar]:hidden",
|
|
35
|
+
indicator: "h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)",
|
|
36
|
+
trigger: "justify-start"
|
|
30
37
|
}
|
|
31
38
|
}
|
|
32
39
|
},
|
|
33
40
|
compoundVariants: [{
|
|
34
41
|
variant: "solid",
|
|
35
42
|
orientation: "vertical",
|
|
36
|
-
class: { indicator: "top-0 left-
|
|
43
|
+
class: { indicator: "top-0 left-0 w-full" }
|
|
37
44
|
}, {
|
|
38
45
|
variant: "line",
|
|
39
46
|
orientation: "vertical",
|
|
40
47
|
class: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
48
|
+
frame: "border-r border-b-0",
|
|
49
|
+
list: "gap-0.5",
|
|
50
|
+
indicator: "right-0 bottom-auto left-auto h-(--reka-tabs-indicator-size) w-0.5",
|
|
51
|
+
trigger: "px-3"
|
|
44
52
|
}
|
|
45
53
|
}],
|
|
46
54
|
defaultVariants: {
|
package/package.json
CHANGED
package/theme.css
CHANGED
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
|
|
44
44
|
/* Neutral surfaces — shadcn/ui "zinc" palette. */
|
|
45
45
|
--iryx-background: oklch(1 0 0);
|
|
46
|
+
/* Behind IAppShell's content card. */
|
|
47
|
+
--iryx-canvas: oklch(0.967 0.001 286.375);
|
|
46
48
|
--iryx-foreground: oklch(0.145 0 0);
|
|
47
49
|
--iryx-accent: oklch(0.97 0 0);
|
|
48
50
|
--iryx-accent-foreground: oklch(0.205 0 0);
|
|
@@ -121,6 +123,7 @@
|
|
|
121
123
|
|
|
122
124
|
/* Neutral surfaces — shadcn/ui "zinc" palette. */
|
|
123
125
|
--iryx-background: oklch(0.145 0 0);
|
|
126
|
+
--iryx-canvas: oklch(0.1 0 0);
|
|
124
127
|
--iryx-foreground: oklch(0.985 0 0);
|
|
125
128
|
--iryx-accent: oklch(0.269 0 0);
|
|
126
129
|
--iryx-accent-foreground: oklch(0.985 0 0);
|
|
@@ -184,6 +187,7 @@
|
|
|
184
187
|
--radius-2xl: calc(var(--iryx-radius) * 2);
|
|
185
188
|
--radius-3xl: calc(var(--iryx-radius) * 3);
|
|
186
189
|
--color-background: var(--iryx-background);
|
|
190
|
+
--color-canvas: var(--iryx-canvas);
|
|
187
191
|
--color-foreground: var(--iryx-foreground);
|
|
188
192
|
--color-primary: var(--iryx-primary);
|
|
189
193
|
--color-primary-foreground: var(--iryx-primary-foreground);
|