@kopexa/theme 1.5.8 → 1.6.1
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/{chunk-FLD2CUFZ.mjs → chunk-3IIJVON7.mjs} +11 -8
- package/dist/{chunk-I2NMD23O.mjs → chunk-5QIMO5EG.mjs} +1 -1
- package/dist/chunk-CZMZHA7U.mjs +37 -0
- package/dist/{chunk-3M5JSM7Y.mjs → chunk-DQEPGWAN.mjs} +1 -1
- package/dist/{chunk-4VKJFW6Y.mjs → chunk-EACX3NZF.mjs} +11 -2
- package/dist/chunk-FWRXPYLB.mjs +41 -0
- package/dist/chunk-GA6UOB2D.mjs +166 -0
- package/dist/chunk-I6M4S2KZ.mjs +41 -0
- package/dist/{chunk-UI2M2MFB.mjs → chunk-J4JIYTOU.mjs} +4 -2
- package/dist/{chunk-67PPUTSS.mjs → chunk-LG2J56LI.mjs} +2 -2
- package/dist/{chunk-CDTKWCOH.mjs → chunk-MKBU6G6Q.mjs} +44 -3
- package/dist/{chunk-32L6KXLV.mjs → chunk-T5PESSOS.mjs} +1 -1
- package/dist/chunk-TT5V2MUL.mjs +29 -0
- package/dist/chunk-V2J5XG34.mjs +43 -0
- package/dist/chunk-VCLXE57S.mjs +16 -0
- package/dist/chunk-WPOYEHD2.mjs +45 -0
- package/dist/{chunk-5BIGFSZK.mjs → chunk-XJ7XBZNF.mjs} +1 -1
- package/dist/chunk-ZLM6Z3W2.mjs +94 -0
- package/dist/components/avatar.js +2 -2
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/button.js +2 -2
- package/dist/components/button.mjs +2 -2
- package/dist/components/card.d.mts +24 -0
- package/dist/components/card.d.ts +24 -0
- package/dist/components/card.js +11 -2
- package/dist/components/card.mjs +1 -1
- package/dist/components/chip.js +2 -2
- package/dist/components/chip.mjs +2 -2
- package/dist/components/code.js +2 -2
- package/dist/components/code.mjs +2 -2
- package/dist/components/drawer.d.mts +9 -3
- package/dist/components/drawer.d.ts +9 -3
- package/dist/components/drawer.js +4 -2
- package/dist/components/drawer.mjs +1 -1
- package/dist/components/index.d.mts +9 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +585 -25
- package/dist/components/index.mjs +55 -15
- package/dist/components/page-layout.d.mts +9 -0
- package/dist/components/page-layout.d.ts +9 -0
- package/dist/components/page-layout.js +11 -8
- package/dist/components/page-layout.mjs +1 -1
- package/dist/components/preview-card.d.mts +89 -0
- package/dist/components/preview-card.d.ts +89 -0
- package/dist/components/preview-card.js +69 -0
- package/dist/components/preview-card.mjs +6 -0
- package/dist/components/risk-badge.d.mts +97 -0
- package/dist/components/risk-badge.d.ts +97 -0
- package/dist/components/risk-badge.js +67 -0
- package/dist/components/risk-badge.mjs +6 -0
- package/dist/components/risk-indicator.d.mts +76 -0
- package/dist/components/risk-indicator.d.ts +76 -0
- package/dist/components/risk-indicator.js +61 -0
- package/dist/components/risk-indicator.mjs +6 -0
- package/dist/components/section-row.d.mts +47 -0
- package/dist/components/section-row.d.ts +47 -0
- package/dist/components/section-row.js +53 -0
- package/dist/components/section-row.mjs +6 -0
- package/dist/components/separator.d.mts +22 -0
- package/dist/components/separator.d.ts +22 -0
- package/dist/components/separator.js +40 -0
- package/dist/components/separator.mjs +6 -0
- package/dist/components/sidebar.d.mts +206 -0
- package/dist/components/sidebar.d.ts +206 -0
- package/dist/components/sidebar.js +192 -0
- package/dist/components/sidebar.mjs +10 -0
- package/dist/components/split-page-layout.d.mts +49 -0
- package/dist/components/split-page-layout.d.ts +49 -0
- package/dist/components/split-page-layout.js +65 -0
- package/dist/components/split-page-layout.mjs +6 -0
- package/dist/components/tab-nav.d.mts +119 -0
- package/dist/components/tab-nav.d.ts +119 -0
- package/dist/components/tab-nav.js +118 -0
- package/dist/components/tab-nav.mjs +6 -0
- package/dist/components/table.d.mts +72 -0
- package/dist/components/table.d.ts +72 -0
- package/dist/components/table.js +44 -3
- package/dist/components/table.mjs +1 -1
- package/dist/components/tabs.d.mts +43 -0
- package/dist/components/tabs.d.ts +43 -0
- package/dist/components/tabs.js +65 -0
- package/dist/components/tabs.mjs +6 -0
- package/dist/index.css +93 -23
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +585 -25
- package/dist/index.mjs +55 -15
- package/dist/utils/variants.js +2 -2
- package/dist/utils/variants.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-FWB233VZ.mjs → chunk-NP4SOC4S.mjs} +0 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const sidebar: tailwind_variants.TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
sidebar: {
|
|
7
|
+
gap: string;
|
|
8
|
+
container: string;
|
|
9
|
+
};
|
|
10
|
+
floating: {
|
|
11
|
+
gap: string;
|
|
12
|
+
container: string;
|
|
13
|
+
};
|
|
14
|
+
inset: {
|
|
15
|
+
gap: string;
|
|
16
|
+
container: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
side: {
|
|
20
|
+
left: {
|
|
21
|
+
container: string;
|
|
22
|
+
};
|
|
23
|
+
right: {
|
|
24
|
+
container: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
isMobile: {
|
|
28
|
+
true: {};
|
|
29
|
+
false: {};
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
provider: string[];
|
|
33
|
+
sidebarWrapper: string[];
|
|
34
|
+
sidebar: string[];
|
|
35
|
+
gap: string[];
|
|
36
|
+
container: string[];
|
|
37
|
+
inner: string[];
|
|
38
|
+
trigger: never[];
|
|
39
|
+
rail: string[];
|
|
40
|
+
inset: string[];
|
|
41
|
+
input: string[];
|
|
42
|
+
header: string[];
|
|
43
|
+
footer: string[];
|
|
44
|
+
separator: string[];
|
|
45
|
+
content: string[];
|
|
46
|
+
group: string[];
|
|
47
|
+
groupLabel: string[];
|
|
48
|
+
groupAction: string[];
|
|
49
|
+
groupContent: string[];
|
|
50
|
+
menu: string[];
|
|
51
|
+
menuItem: string[];
|
|
52
|
+
}, undefined, {
|
|
53
|
+
variant: {
|
|
54
|
+
sidebar: {
|
|
55
|
+
gap: string;
|
|
56
|
+
container: string;
|
|
57
|
+
};
|
|
58
|
+
floating: {
|
|
59
|
+
gap: string;
|
|
60
|
+
container: string;
|
|
61
|
+
};
|
|
62
|
+
inset: {
|
|
63
|
+
gap: string;
|
|
64
|
+
container: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
side: {
|
|
68
|
+
left: {
|
|
69
|
+
container: string;
|
|
70
|
+
};
|
|
71
|
+
right: {
|
|
72
|
+
container: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
isMobile: {
|
|
76
|
+
true: {};
|
|
77
|
+
false: {};
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
provider: string[];
|
|
81
|
+
sidebarWrapper: string[];
|
|
82
|
+
sidebar: string[];
|
|
83
|
+
gap: string[];
|
|
84
|
+
container: string[];
|
|
85
|
+
inner: string[];
|
|
86
|
+
trigger: never[];
|
|
87
|
+
rail: string[];
|
|
88
|
+
inset: string[];
|
|
89
|
+
input: string[];
|
|
90
|
+
header: string[];
|
|
91
|
+
footer: string[];
|
|
92
|
+
separator: string[];
|
|
93
|
+
content: string[];
|
|
94
|
+
group: string[];
|
|
95
|
+
groupLabel: string[];
|
|
96
|
+
groupAction: string[];
|
|
97
|
+
groupContent: string[];
|
|
98
|
+
menu: string[];
|
|
99
|
+
menuItem: string[];
|
|
100
|
+
}, tailwind_variants.TVReturnType<{
|
|
101
|
+
variant: {
|
|
102
|
+
sidebar: {
|
|
103
|
+
gap: string;
|
|
104
|
+
container: string;
|
|
105
|
+
};
|
|
106
|
+
floating: {
|
|
107
|
+
gap: string;
|
|
108
|
+
container: string;
|
|
109
|
+
};
|
|
110
|
+
inset: {
|
|
111
|
+
gap: string;
|
|
112
|
+
container: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
side: {
|
|
116
|
+
left: {
|
|
117
|
+
container: string;
|
|
118
|
+
};
|
|
119
|
+
right: {
|
|
120
|
+
container: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
isMobile: {
|
|
124
|
+
true: {};
|
|
125
|
+
false: {};
|
|
126
|
+
};
|
|
127
|
+
}, {
|
|
128
|
+
provider: string[];
|
|
129
|
+
sidebarWrapper: string[];
|
|
130
|
+
sidebar: string[];
|
|
131
|
+
gap: string[];
|
|
132
|
+
container: string[];
|
|
133
|
+
inner: string[];
|
|
134
|
+
trigger: never[];
|
|
135
|
+
rail: string[];
|
|
136
|
+
inset: string[];
|
|
137
|
+
input: string[];
|
|
138
|
+
header: string[];
|
|
139
|
+
footer: string[];
|
|
140
|
+
separator: string[];
|
|
141
|
+
content: string[];
|
|
142
|
+
group: string[];
|
|
143
|
+
groupLabel: string[];
|
|
144
|
+
groupAction: string[];
|
|
145
|
+
groupContent: string[];
|
|
146
|
+
menu: string[];
|
|
147
|
+
menuItem: string[];
|
|
148
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
149
|
+
type SidebarVariantProps = VariantProps<typeof sidebar>;
|
|
150
|
+
declare const sidebarMenuButton: tailwind_variants.TVReturnType<{
|
|
151
|
+
variant: {
|
|
152
|
+
default: string;
|
|
153
|
+
outline: string;
|
|
154
|
+
};
|
|
155
|
+
color: {
|
|
156
|
+
default: string[];
|
|
157
|
+
};
|
|
158
|
+
size: {
|
|
159
|
+
sm: string;
|
|
160
|
+
md: string;
|
|
161
|
+
lg: string;
|
|
162
|
+
};
|
|
163
|
+
}, undefined, string[], {
|
|
164
|
+
variant: {
|
|
165
|
+
default: string;
|
|
166
|
+
outline: string;
|
|
167
|
+
};
|
|
168
|
+
color: {
|
|
169
|
+
default: string[];
|
|
170
|
+
};
|
|
171
|
+
size: {
|
|
172
|
+
sm: string;
|
|
173
|
+
md: string;
|
|
174
|
+
lg: string;
|
|
175
|
+
};
|
|
176
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
177
|
+
variant: {
|
|
178
|
+
default: string;
|
|
179
|
+
outline: string;
|
|
180
|
+
};
|
|
181
|
+
color: {
|
|
182
|
+
default: string[];
|
|
183
|
+
};
|
|
184
|
+
size: {
|
|
185
|
+
sm: string;
|
|
186
|
+
md: string;
|
|
187
|
+
lg: string;
|
|
188
|
+
};
|
|
189
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
190
|
+
type SidebarMenuButtonVariantProps = VariantProps<typeof sidebarMenuButton>;
|
|
191
|
+
declare const sidebarMenuAction: tailwind_variants.TVReturnType<{
|
|
192
|
+
showOnHover: {
|
|
193
|
+
true: string[];
|
|
194
|
+
};
|
|
195
|
+
}, undefined, string[], {
|
|
196
|
+
showOnHover: {
|
|
197
|
+
true: string[];
|
|
198
|
+
};
|
|
199
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
200
|
+
showOnHover: {
|
|
201
|
+
true: string[];
|
|
202
|
+
};
|
|
203
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
204
|
+
type SidebarMenuActionVariantProps = VariantProps<typeof sidebarMenuAction>;
|
|
205
|
+
|
|
206
|
+
export { type SidebarMenuActionVariantProps, type SidebarMenuButtonVariantProps, type SidebarVariantProps, sidebar, sidebarMenuAction, sidebarMenuButton };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const sidebar: tailwind_variants.TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
sidebar: {
|
|
7
|
+
gap: string;
|
|
8
|
+
container: string;
|
|
9
|
+
};
|
|
10
|
+
floating: {
|
|
11
|
+
gap: string;
|
|
12
|
+
container: string;
|
|
13
|
+
};
|
|
14
|
+
inset: {
|
|
15
|
+
gap: string;
|
|
16
|
+
container: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
side: {
|
|
20
|
+
left: {
|
|
21
|
+
container: string;
|
|
22
|
+
};
|
|
23
|
+
right: {
|
|
24
|
+
container: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
isMobile: {
|
|
28
|
+
true: {};
|
|
29
|
+
false: {};
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
provider: string[];
|
|
33
|
+
sidebarWrapper: string[];
|
|
34
|
+
sidebar: string[];
|
|
35
|
+
gap: string[];
|
|
36
|
+
container: string[];
|
|
37
|
+
inner: string[];
|
|
38
|
+
trigger: never[];
|
|
39
|
+
rail: string[];
|
|
40
|
+
inset: string[];
|
|
41
|
+
input: string[];
|
|
42
|
+
header: string[];
|
|
43
|
+
footer: string[];
|
|
44
|
+
separator: string[];
|
|
45
|
+
content: string[];
|
|
46
|
+
group: string[];
|
|
47
|
+
groupLabel: string[];
|
|
48
|
+
groupAction: string[];
|
|
49
|
+
groupContent: string[];
|
|
50
|
+
menu: string[];
|
|
51
|
+
menuItem: string[];
|
|
52
|
+
}, undefined, {
|
|
53
|
+
variant: {
|
|
54
|
+
sidebar: {
|
|
55
|
+
gap: string;
|
|
56
|
+
container: string;
|
|
57
|
+
};
|
|
58
|
+
floating: {
|
|
59
|
+
gap: string;
|
|
60
|
+
container: string;
|
|
61
|
+
};
|
|
62
|
+
inset: {
|
|
63
|
+
gap: string;
|
|
64
|
+
container: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
side: {
|
|
68
|
+
left: {
|
|
69
|
+
container: string;
|
|
70
|
+
};
|
|
71
|
+
right: {
|
|
72
|
+
container: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
isMobile: {
|
|
76
|
+
true: {};
|
|
77
|
+
false: {};
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
provider: string[];
|
|
81
|
+
sidebarWrapper: string[];
|
|
82
|
+
sidebar: string[];
|
|
83
|
+
gap: string[];
|
|
84
|
+
container: string[];
|
|
85
|
+
inner: string[];
|
|
86
|
+
trigger: never[];
|
|
87
|
+
rail: string[];
|
|
88
|
+
inset: string[];
|
|
89
|
+
input: string[];
|
|
90
|
+
header: string[];
|
|
91
|
+
footer: string[];
|
|
92
|
+
separator: string[];
|
|
93
|
+
content: string[];
|
|
94
|
+
group: string[];
|
|
95
|
+
groupLabel: string[];
|
|
96
|
+
groupAction: string[];
|
|
97
|
+
groupContent: string[];
|
|
98
|
+
menu: string[];
|
|
99
|
+
menuItem: string[];
|
|
100
|
+
}, tailwind_variants.TVReturnType<{
|
|
101
|
+
variant: {
|
|
102
|
+
sidebar: {
|
|
103
|
+
gap: string;
|
|
104
|
+
container: string;
|
|
105
|
+
};
|
|
106
|
+
floating: {
|
|
107
|
+
gap: string;
|
|
108
|
+
container: string;
|
|
109
|
+
};
|
|
110
|
+
inset: {
|
|
111
|
+
gap: string;
|
|
112
|
+
container: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
side: {
|
|
116
|
+
left: {
|
|
117
|
+
container: string;
|
|
118
|
+
};
|
|
119
|
+
right: {
|
|
120
|
+
container: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
isMobile: {
|
|
124
|
+
true: {};
|
|
125
|
+
false: {};
|
|
126
|
+
};
|
|
127
|
+
}, {
|
|
128
|
+
provider: string[];
|
|
129
|
+
sidebarWrapper: string[];
|
|
130
|
+
sidebar: string[];
|
|
131
|
+
gap: string[];
|
|
132
|
+
container: string[];
|
|
133
|
+
inner: string[];
|
|
134
|
+
trigger: never[];
|
|
135
|
+
rail: string[];
|
|
136
|
+
inset: string[];
|
|
137
|
+
input: string[];
|
|
138
|
+
header: string[];
|
|
139
|
+
footer: string[];
|
|
140
|
+
separator: string[];
|
|
141
|
+
content: string[];
|
|
142
|
+
group: string[];
|
|
143
|
+
groupLabel: string[];
|
|
144
|
+
groupAction: string[];
|
|
145
|
+
groupContent: string[];
|
|
146
|
+
menu: string[];
|
|
147
|
+
menuItem: string[];
|
|
148
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
149
|
+
type SidebarVariantProps = VariantProps<typeof sidebar>;
|
|
150
|
+
declare const sidebarMenuButton: tailwind_variants.TVReturnType<{
|
|
151
|
+
variant: {
|
|
152
|
+
default: string;
|
|
153
|
+
outline: string;
|
|
154
|
+
};
|
|
155
|
+
color: {
|
|
156
|
+
default: string[];
|
|
157
|
+
};
|
|
158
|
+
size: {
|
|
159
|
+
sm: string;
|
|
160
|
+
md: string;
|
|
161
|
+
lg: string;
|
|
162
|
+
};
|
|
163
|
+
}, undefined, string[], {
|
|
164
|
+
variant: {
|
|
165
|
+
default: string;
|
|
166
|
+
outline: string;
|
|
167
|
+
};
|
|
168
|
+
color: {
|
|
169
|
+
default: string[];
|
|
170
|
+
};
|
|
171
|
+
size: {
|
|
172
|
+
sm: string;
|
|
173
|
+
md: string;
|
|
174
|
+
lg: string;
|
|
175
|
+
};
|
|
176
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
177
|
+
variant: {
|
|
178
|
+
default: string;
|
|
179
|
+
outline: string;
|
|
180
|
+
};
|
|
181
|
+
color: {
|
|
182
|
+
default: string[];
|
|
183
|
+
};
|
|
184
|
+
size: {
|
|
185
|
+
sm: string;
|
|
186
|
+
md: string;
|
|
187
|
+
lg: string;
|
|
188
|
+
};
|
|
189
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
190
|
+
type SidebarMenuButtonVariantProps = VariantProps<typeof sidebarMenuButton>;
|
|
191
|
+
declare const sidebarMenuAction: tailwind_variants.TVReturnType<{
|
|
192
|
+
showOnHover: {
|
|
193
|
+
true: string[];
|
|
194
|
+
};
|
|
195
|
+
}, undefined, string[], {
|
|
196
|
+
showOnHover: {
|
|
197
|
+
true: string[];
|
|
198
|
+
};
|
|
199
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
200
|
+
showOnHover: {
|
|
201
|
+
true: string[];
|
|
202
|
+
};
|
|
203
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
204
|
+
type SidebarMenuActionVariantProps = VariantProps<typeof sidebarMenuAction>;
|
|
205
|
+
|
|
206
|
+
export { type SidebarMenuActionVariantProps, type SidebarMenuButtonVariantProps, type SidebarVariantProps, sidebar, sidebarMenuAction, sidebarMenuButton };
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/sidebar.ts
|
|
21
|
+
var sidebar_exports = {};
|
|
22
|
+
__export(sidebar_exports, {
|
|
23
|
+
sidebar: () => sidebar,
|
|
24
|
+
sidebarMenuAction: () => sidebarMenuAction,
|
|
25
|
+
sidebarMenuButton: () => sidebarMenuButton
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(sidebar_exports);
|
|
28
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
+
var sidebar = (0, import_tailwind_variants.tv)({
|
|
30
|
+
slots: {
|
|
31
|
+
provider: [
|
|
32
|
+
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full"
|
|
33
|
+
],
|
|
34
|
+
sidebarWrapper: ["group peer text-sidebar-foreground hidden md:block"],
|
|
35
|
+
sidebar: [
|
|
36
|
+
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col"
|
|
37
|
+
],
|
|
38
|
+
gap: [
|
|
39
|
+
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
40
|
+
"group-data-[collapsible=offcanvas]:w-0",
|
|
41
|
+
"group-data-[side=right]:rotate-180"
|
|
42
|
+
],
|
|
43
|
+
container: [
|
|
44
|
+
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex"
|
|
45
|
+
],
|
|
46
|
+
inner: [
|
|
47
|
+
"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
|
|
48
|
+
],
|
|
49
|
+
trigger: [],
|
|
50
|
+
rail: [
|
|
51
|
+
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
|
|
52
|
+
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
53
|
+
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
54
|
+
"hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
|
|
55
|
+
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
56
|
+
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2"
|
|
57
|
+
],
|
|
58
|
+
inset: [
|
|
59
|
+
"bg-background relative flex w-full flex-1 flex-col",
|
|
60
|
+
"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2"
|
|
61
|
+
],
|
|
62
|
+
input: ["bg-background h-8 w-full shadow-none"],
|
|
63
|
+
header: ["flex flex-col gap-2 p-2"],
|
|
64
|
+
footer: ["flex flex-col gap-2 p-2"],
|
|
65
|
+
separator: ["bg-sidebar-border mx-2 w-auto"],
|
|
66
|
+
content: [
|
|
67
|
+
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden"
|
|
68
|
+
],
|
|
69
|
+
group: ["relative flex w-full min-w-0 flex-col p-2"],
|
|
70
|
+
groupLabel: [
|
|
71
|
+
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
72
|
+
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0"
|
|
73
|
+
],
|
|
74
|
+
groupAction: [
|
|
75
|
+
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
76
|
+
// Increases the hit area of the button on mobile.
|
|
77
|
+
"after:absolute after:-inset-2 md:after:hidden",
|
|
78
|
+
"group-data-[collapsible=icon]:hidden"
|
|
79
|
+
],
|
|
80
|
+
groupContent: ["w-full text-sm"],
|
|
81
|
+
menu: ["flex w-full min-w-0 flex-col gap-1"],
|
|
82
|
+
menuItem: ["group/menu-item relative"]
|
|
83
|
+
},
|
|
84
|
+
variants: {
|
|
85
|
+
variant: {
|
|
86
|
+
sidebar: {
|
|
87
|
+
gap: "group-data-[collapsible=icon]:w-(--sidebar-width-icon)",
|
|
88
|
+
container: "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l"
|
|
89
|
+
},
|
|
90
|
+
floating: {
|
|
91
|
+
gap: "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]",
|
|
92
|
+
container: "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"
|
|
93
|
+
},
|
|
94
|
+
inset: {
|
|
95
|
+
gap: "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]",
|
|
96
|
+
container: "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
side: {
|
|
100
|
+
left: {
|
|
101
|
+
container: "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
|
|
102
|
+
},
|
|
103
|
+
right: {
|
|
104
|
+
container: "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
isMobile: {
|
|
108
|
+
true: {},
|
|
109
|
+
false: {}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
defaultVariants: {
|
|
113
|
+
variant: "sidebar",
|
|
114
|
+
isMobile: false
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
var sidebarMenuButton = (0, import_tailwind_variants.tv)({
|
|
118
|
+
base: [
|
|
119
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md",
|
|
120
|
+
"p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding]",
|
|
121
|
+
"disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8",
|
|
122
|
+
"aria-disabled:pointer-events-none aria-disabled:opacity-50",
|
|
123
|
+
"data-[active=true]:font-medium",
|
|
124
|
+
"group-data-[collapsible=icon]:size-8!",
|
|
125
|
+
"group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0"
|
|
126
|
+
],
|
|
127
|
+
variants: {
|
|
128
|
+
variant: {
|
|
129
|
+
default: "",
|
|
130
|
+
outline: ""
|
|
131
|
+
},
|
|
132
|
+
color: {
|
|
133
|
+
default: [
|
|
134
|
+
"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
135
|
+
"focus-visible:ring-2",
|
|
136
|
+
"active:bg-sidebar-accent active:text-sidebar-accent-foreground",
|
|
137
|
+
"data-[active=true]:bg-sidebar-accent",
|
|
138
|
+
"data-[active=true]:text-sidebar-accent-foreground",
|
|
139
|
+
"data-[state=open]:hover:bg-sidebar-accent",
|
|
140
|
+
"data-[state=open]:hover:text-sidebar-accent-foreground "
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
size: {
|
|
144
|
+
sm: "h-7 text-xs",
|
|
145
|
+
md: "h-8 text-sm",
|
|
146
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
defaultVariants: {
|
|
150
|
+
color: "default",
|
|
151
|
+
variant: "default",
|
|
152
|
+
size: "md"
|
|
153
|
+
},
|
|
154
|
+
compoundVariants: [
|
|
155
|
+
{
|
|
156
|
+
variant: "default",
|
|
157
|
+
color: "default",
|
|
158
|
+
class: ["hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
variant: "outline",
|
|
162
|
+
color: "default",
|
|
163
|
+
class: [
|
|
164
|
+
"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
});
|
|
169
|
+
var sidebarMenuAction = (0, import_tailwind_variants.tv)({
|
|
170
|
+
base: [
|
|
171
|
+
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
172
|
+
// Increases the hit area of the button on mobile.
|
|
173
|
+
"after:absolute after:-inset-2 md:after:hidden",
|
|
174
|
+
"peer-data-[size=sm]/menu-button:top-1",
|
|
175
|
+
"peer-data-[size=default]/menu-button:top-1.5",
|
|
176
|
+
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
177
|
+
"group-data-[collapsible=icon]:hidden"
|
|
178
|
+
],
|
|
179
|
+
variants: {
|
|
180
|
+
showOnHover: {
|
|
181
|
+
true: [
|
|
182
|
+
"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
188
|
+
0 && (module.exports = {
|
|
189
|
+
sidebar,
|
|
190
|
+
sidebarMenuAction,
|
|
191
|
+
sidebarMenuButton
|
|
192
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const splitPageLayout: tailwind_variants.TVReturnType<{
|
|
5
|
+
inset: {
|
|
6
|
+
true: {
|
|
7
|
+
panelContainer: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
root: string[];
|
|
12
|
+
content: string[];
|
|
13
|
+
panelContainer: string[];
|
|
14
|
+
panel: string[];
|
|
15
|
+
bleed: string;
|
|
16
|
+
mobileWrapper: string;
|
|
17
|
+
mobileContainer: string[];
|
|
18
|
+
}, undefined, {
|
|
19
|
+
inset: {
|
|
20
|
+
true: {
|
|
21
|
+
panelContainer: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
root: string[];
|
|
26
|
+
content: string[];
|
|
27
|
+
panelContainer: string[];
|
|
28
|
+
panel: string[];
|
|
29
|
+
bleed: string;
|
|
30
|
+
mobileWrapper: string;
|
|
31
|
+
mobileContainer: string[];
|
|
32
|
+
}, tailwind_variants.TVReturnType<{
|
|
33
|
+
inset: {
|
|
34
|
+
true: {
|
|
35
|
+
panelContainer: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
root: string[];
|
|
40
|
+
content: string[];
|
|
41
|
+
panelContainer: string[];
|
|
42
|
+
panel: string[];
|
|
43
|
+
bleed: string;
|
|
44
|
+
mobileWrapper: string;
|
|
45
|
+
mobileContainer: string[];
|
|
46
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
47
|
+
type SplitPageLayoutVariantProps = VariantProps<typeof splitPageLayout>;
|
|
48
|
+
|
|
49
|
+
export { type SplitPageLayoutVariantProps, splitPageLayout };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const splitPageLayout: tailwind_variants.TVReturnType<{
|
|
5
|
+
inset: {
|
|
6
|
+
true: {
|
|
7
|
+
panelContainer: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
root: string[];
|
|
12
|
+
content: string[];
|
|
13
|
+
panelContainer: string[];
|
|
14
|
+
panel: string[];
|
|
15
|
+
bleed: string;
|
|
16
|
+
mobileWrapper: string;
|
|
17
|
+
mobileContainer: string[];
|
|
18
|
+
}, undefined, {
|
|
19
|
+
inset: {
|
|
20
|
+
true: {
|
|
21
|
+
panelContainer: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
root: string[];
|
|
26
|
+
content: string[];
|
|
27
|
+
panelContainer: string[];
|
|
28
|
+
panel: string[];
|
|
29
|
+
bleed: string;
|
|
30
|
+
mobileWrapper: string;
|
|
31
|
+
mobileContainer: string[];
|
|
32
|
+
}, tailwind_variants.TVReturnType<{
|
|
33
|
+
inset: {
|
|
34
|
+
true: {
|
|
35
|
+
panelContainer: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
root: string[];
|
|
40
|
+
content: string[];
|
|
41
|
+
panelContainer: string[];
|
|
42
|
+
panel: string[];
|
|
43
|
+
bleed: string;
|
|
44
|
+
mobileWrapper: string;
|
|
45
|
+
mobileContainer: string[];
|
|
46
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
47
|
+
type SplitPageLayoutVariantProps = VariantProps<typeof splitPageLayout>;
|
|
48
|
+
|
|
49
|
+
export { type SplitPageLayoutVariantProps, splitPageLayout };
|