@marigold/theme-rui 2.3.0 → 3.0.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/index.d.mts +4 -2
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1056 -1286
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1040 -1271
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +123 -27
- package/dist/theme.css +23 -9
- package/dist/utils.css +30 -0
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -1,1360 +1,1129 @@
|
|
|
1
|
+
import { cva } from "@marigold/system";
|
|
2
|
+
|
|
3
|
+
//#region rolldown:runtime
|
|
1
4
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
var __export = (all) => {
|
|
6
|
+
let target = {};
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
return target;
|
|
5
12
|
};
|
|
6
13
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
NumberField: () => NumberField,
|
|
39
|
-
Pagination: () => Pagination,
|
|
40
|
-
Popover: () => Popover,
|
|
41
|
-
ProgressCycle: () => ProgressCycle,
|
|
42
|
-
Radio: () => Radio,
|
|
43
|
-
SectionMessage: () => SectionMessage,
|
|
44
|
-
Select: () => Select,
|
|
45
|
-
Slider: () => Slider,
|
|
46
|
-
Switch: () => Switch,
|
|
47
|
-
Table: () => Table,
|
|
48
|
-
Tabs: () => Tabs,
|
|
49
|
-
Tag: () => Tag,
|
|
50
|
-
Text: () => Text,
|
|
51
|
-
TextArea: () => TextArea,
|
|
52
|
-
Toast: () => Toast,
|
|
53
|
-
Tooltip: () => Tooltip,
|
|
54
|
-
Underlay: () => Underlay,
|
|
55
|
-
XLoader: () => XLoader
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
// src/components/Accordion.styles.ts
|
|
59
|
-
import { cva } from "@marigold/system";
|
|
60
|
-
var Accordion = {
|
|
61
|
-
container: cva("flex-col", {
|
|
62
|
-
variants: {
|
|
63
|
-
variant: {
|
|
64
|
-
default: "",
|
|
65
|
-
card: "space-y-2"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
defaultVariants: {
|
|
69
|
-
variant: "default"
|
|
70
|
-
}
|
|
71
|
-
}),
|
|
72
|
-
item: cva("bg-background border-b last:border-b-0 border-border", {
|
|
73
|
-
variants: {
|
|
74
|
-
variant: {
|
|
75
|
-
default: "",
|
|
76
|
-
card: [
|
|
77
|
-
"rounded-md border px-4 py-1 outline-none last:border-b",
|
|
78
|
-
// TODO: focus is still shown even if an item within the item is focused
|
|
79
|
-
"has-focus-visible:util-focus-ring outline-none"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
defaultVariants: {
|
|
84
|
-
variant: "default"
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
|
-
header: cva(
|
|
88
|
-
[
|
|
89
|
-
"flex w-full items-center justify-between gap-4 rounded-md py-2 cursor-pointer text-foreground",
|
|
90
|
-
"text-left text-sm font-semibold leading-6 transition-all",
|
|
91
|
-
"hover:no-underline",
|
|
92
|
-
"disabled:cursor-not-allowed disabled:text-disabled-foreground"
|
|
93
|
-
],
|
|
94
|
-
{
|
|
95
|
-
variants: {
|
|
96
|
-
variant: {
|
|
97
|
-
default: "focus-visible:util-focus-ring outline-none",
|
|
98
|
-
card: "outline-none"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
defaultVariants: {
|
|
102
|
-
variant: "default"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
content: cva("in-data-[expanded]:pb-2"),
|
|
107
|
-
icon: cva(
|
|
108
|
-
"pointer-events-none shrink-0 opacity-60 transition-transform duration-200"
|
|
109
|
-
)
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/Accordion.styles.ts
|
|
16
|
+
const Accordion = {
|
|
17
|
+
container: cva("flex-col", {
|
|
18
|
+
variants: { variant: {
|
|
19
|
+
default: "",
|
|
20
|
+
card: "space-y-2"
|
|
21
|
+
} },
|
|
22
|
+
defaultVariants: { variant: "default" }
|
|
23
|
+
}),
|
|
24
|
+
item: cva("bg-background border-b last:border-b-0 border-border", {
|
|
25
|
+
variants: { variant: {
|
|
26
|
+
default: "",
|
|
27
|
+
card: ["rounded-md border px-4 py-1 outline-none last:border-b", "has-focus-visible:util-focus-ring outline-none"]
|
|
28
|
+
} },
|
|
29
|
+
defaultVariants: { variant: "default" }
|
|
30
|
+
}),
|
|
31
|
+
header: cva([
|
|
32
|
+
"flex w-full items-center justify-between gap-4 rounded-md py-2 cursor-pointer text-foreground",
|
|
33
|
+
"text-left text-base font-semibold leading-6 transition-all",
|
|
34
|
+
"hover:no-underline",
|
|
35
|
+
"disabled:cursor-not-allowed disabled:text-disabled-foreground"
|
|
36
|
+
], {
|
|
37
|
+
variants: { variant: {
|
|
38
|
+
default: "focus-visible:util-focus-ring outline-none",
|
|
39
|
+
card: "outline-none"
|
|
40
|
+
} },
|
|
41
|
+
defaultVariants: { variant: "default" }
|
|
42
|
+
}),
|
|
43
|
+
content: cva("in-data-[expanded]:pb-2"),
|
|
44
|
+
icon: cva("pointer-events-none shrink-0 opacity-60 transition-transform duration-200")
|
|
110
45
|
};
|
|
111
46
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
error: "bg-destructive-muted text-destructive-muted-foreground",
|
|
128
|
-
admin: "text-access-admin-foreground border border-access-admin-foreground bg-background",
|
|
129
|
-
master: "text-access-master-foreground border border-access-master-foreground bg-background"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
defaultVariants: {
|
|
133
|
-
variant: "default"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
);
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/Badge.styles.ts
|
|
49
|
+
const Badge = cva(["inline-flex items-center justify-center rounded-full px-2 text-xs font-medium leading-normal transition-colors", "focus-visible:util-focus-ring outline-none"], {
|
|
50
|
+
variants: { variant: {
|
|
51
|
+
default: "bg-muted text-foreground border border-border",
|
|
52
|
+
primary: "bg-brand text-brand-foreground ",
|
|
53
|
+
success: "bg-success-muted text-success-muted-foreground",
|
|
54
|
+
warning: "bg-warning-muted text-warning-muted-foreground",
|
|
55
|
+
info: "bg-info-muted text-info-muted-foreground",
|
|
56
|
+
error: "bg-destructive-muted text-destructive-muted-foreground",
|
|
57
|
+
admin: "text-access-admin-foreground border border-access-admin-foreground bg-background",
|
|
58
|
+
master: "text-access-master-foreground border border-access-master-foreground bg-background"
|
|
59
|
+
} },
|
|
60
|
+
defaultVariants: { variant: "default" }
|
|
61
|
+
});
|
|
137
62
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/Button.styles.ts
|
|
65
|
+
const Button = cva([
|
|
66
|
+
"inline-flex items-center justify-center gap-2",
|
|
67
|
+
"whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
|
|
68
|
+
"duration-150 active:scale-[0.98] pressed:scale-[0.98]",
|
|
69
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
70
|
+
"focus-visible:util-focus-ring outline-none disabled:util-disabled",
|
|
71
|
+
"pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none",
|
|
72
|
+
"cursor-pointer"
|
|
73
|
+
], {
|
|
74
|
+
variants: {
|
|
75
|
+
variant: {
|
|
76
|
+
primary: "bg-brand text-brand-foreground shadow-xs hover:bg-brand/90",
|
|
77
|
+
secondary: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
|
|
78
|
+
destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
|
|
79
|
+
ghost: "hover:bg-hover hover:text-foreground",
|
|
80
|
+
link: "text-link util-touch-hitbox"
|
|
81
|
+
},
|
|
82
|
+
size: {
|
|
83
|
+
default: "text-sm",
|
|
84
|
+
small: "text-xs",
|
|
85
|
+
large: "",
|
|
86
|
+
icon: ""
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
defaultVariants: {
|
|
90
|
+
variant: "secondary",
|
|
91
|
+
size: "default"
|
|
92
|
+
},
|
|
93
|
+
compoundVariants: [
|
|
94
|
+
{
|
|
95
|
+
variant: [
|
|
96
|
+
"primary",
|
|
97
|
+
"secondary",
|
|
98
|
+
"destructive",
|
|
99
|
+
"ghost"
|
|
100
|
+
],
|
|
101
|
+
class: "items-center justify-center"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
variant: [
|
|
105
|
+
"primary",
|
|
106
|
+
"secondary",
|
|
107
|
+
"destructive",
|
|
108
|
+
"ghost"
|
|
109
|
+
],
|
|
110
|
+
size: "default",
|
|
111
|
+
class: "h-button px-4 py-2 [&_svg]:size-4"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
variant: [
|
|
115
|
+
"primary",
|
|
116
|
+
"secondary",
|
|
117
|
+
"destructive",
|
|
118
|
+
"ghost"
|
|
119
|
+
],
|
|
120
|
+
size: "small",
|
|
121
|
+
class: "h-button-small px-3 [&_svg]:size-3.5"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
variant: [
|
|
125
|
+
"primary",
|
|
126
|
+
"secondary",
|
|
127
|
+
"destructive",
|
|
128
|
+
"ghost"
|
|
129
|
+
],
|
|
130
|
+
size: "large",
|
|
131
|
+
class: "h-button-large px-8 [&_svg]:size-5"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
variant: [
|
|
135
|
+
"primary",
|
|
136
|
+
"secondary",
|
|
137
|
+
"destructive",
|
|
138
|
+
"ghost"
|
|
139
|
+
],
|
|
140
|
+
size: "icon",
|
|
141
|
+
class: "size-button [&_svg]:size-4"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
});
|
|
198
145
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/components/Card.styles.ts
|
|
148
|
+
const Card = cva(["p-4 rounded-md"], {
|
|
149
|
+
variants: {
|
|
150
|
+
variant: {
|
|
151
|
+
default: "util-surface-raised",
|
|
152
|
+
master: "rounded-md bg-access-master/30 p-4 border border-access-master",
|
|
153
|
+
admin: "rounded-md bg-access-admin/30 p-4 border border-access-admin"
|
|
154
|
+
},
|
|
155
|
+
size: {
|
|
156
|
+
default: "",
|
|
157
|
+
full: "w-full"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
defaultVariants: {
|
|
161
|
+
variant: "default",
|
|
162
|
+
size: "default"
|
|
163
|
+
}
|
|
217
164
|
});
|
|
218
165
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/components/Checkbox.styles.ts
|
|
168
|
+
const Checkbox = {
|
|
169
|
+
checkbox: cva([
|
|
170
|
+
"grid size-4 shrink-0 place-content-center rounded",
|
|
171
|
+
"border border-input shadow-xs",
|
|
172
|
+
"group-focus-visible/checkbox:util-focus-ring outline-none",
|
|
173
|
+
"group-disabled/checkbox:group-selected/checkbox:bg-disabled group-disabled/checkbox:border-disabled! group-disabled/checkbox:text-disabled-foreground group-disabled/checkbox:cursor-not-allowed",
|
|
174
|
+
"group-selected/checkbox:border-brand group-selected/checkbox:bg-brand group-selected/checkbox:text-brand-foreground",
|
|
175
|
+
"group-[indeterminate]/checkbox:border-brand group-[indeterminate]/checkbox:bg-brand group-[indeterminate]/checkbox:text-brand-foreground"
|
|
176
|
+
]),
|
|
177
|
+
container: cva("cursor-pointer read-only:cursor-default gap-2"),
|
|
178
|
+
label: cva([
|
|
179
|
+
"flex items-center gap-1",
|
|
180
|
+
"text-sm leading-4 group-[group=\"checkbox\"]/checkboxgroup:font-normal font-medium text-foregroun",
|
|
181
|
+
"group-disabled/checkbox:text-disabled-foreground"
|
|
182
|
+
]),
|
|
183
|
+
group: cva()
|
|
237
184
|
};
|
|
238
185
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
"h-input",
|
|
276
|
-
"disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
|
|
277
|
-
"cursor-pointer"
|
|
278
|
-
])
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/components/Calendar.styles.ts
|
|
188
|
+
const Calendar = {
|
|
189
|
+
calendar: cva("rounded-md border group-[[data-trigger]]/popover:border-0 border-border p-2"),
|
|
190
|
+
calendarCell: cva([
|
|
191
|
+
"relative flex size-9 items-center justify-center whitespace-nowrap rounded-lg justify-self-center",
|
|
192
|
+
"border border-transparent p-0 text-sm font-normal text-foreground",
|
|
193
|
+
"outline-offset-2 duration-150 [transition-property:color,background-color,border-radius,box-shadow]",
|
|
194
|
+
"disabled:pointer-events-none data-[unavailable]:pointer-events-none data-focus-visible:z-10 data-[hovered]:bg-hover selected:bg-brand data-[hovered]:text-foreground selected:text-brand-foreground data-[unavailable]:line-through",
|
|
195
|
+
"disabled:opacity-30 data-[unavailable]:opacity-30",
|
|
196
|
+
"focus-visible:util-focus-borderless-ring outline-none"
|
|
197
|
+
]),
|
|
198
|
+
calendarControllers: cva([
|
|
199
|
+
"size-9 rounded-lg",
|
|
200
|
+
"text-muted-foreground/80",
|
|
201
|
+
"transition-colors",
|
|
202
|
+
"focus-visible:util-focus-ring outline-none"
|
|
203
|
+
]),
|
|
204
|
+
calendarHeader: cva(["size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground/80"]),
|
|
205
|
+
calendarGrid: cva("[&_td]:p-2"),
|
|
206
|
+
calendarListboxButton: cva([
|
|
207
|
+
"rounded-md text-sm font-medium transition-[color,box-shadow]",
|
|
208
|
+
"px-4 py-2",
|
|
209
|
+
"focus-visible:util-focus-ring outline-none",
|
|
210
|
+
"cursor-pointer",
|
|
211
|
+
"hover:bg-hover",
|
|
212
|
+
"aria-selected:bg-brand aria-selected:text-brand-foreground aria-selected:shadow-xs aria-selected:hover:bg-brand/90"
|
|
213
|
+
]),
|
|
214
|
+
select: cva([
|
|
215
|
+
"[&svg]:text-muted-foreground/80",
|
|
216
|
+
"flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow",
|
|
217
|
+
"focus-visible:util-focus-ring outline-none",
|
|
218
|
+
"h-input",
|
|
219
|
+
"disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
|
|
220
|
+
"cursor-pointer"
|
|
221
|
+
])
|
|
279
222
|
};
|
|
280
223
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/components/CloseButton.styles.ts
|
|
226
|
+
const CloseButton = cva([
|
|
227
|
+
"flex items-center justify-center whitespace-nowrap",
|
|
228
|
+
"cursor-pointer",
|
|
229
|
+
"transition-[color,box-shadow]",
|
|
230
|
+
"mixin-ring-focus-visible",
|
|
231
|
+
"rounded",
|
|
232
|
+
"duration-150 active:scale-[0.98] pressed:scale-[0.98] transition-transform",
|
|
233
|
+
"[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
|
|
291
234
|
]);
|
|
292
235
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
"text-muted-foreground/80 right-2"
|
|
297
|
-
);
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/components/ComboBox.styles.ts
|
|
238
|
+
const ComboBox = cva("text-muted-foreground/80 right-2");
|
|
298
239
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
size: "default"
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
),
|
|
327
|
-
content: cva9()
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region src/components/Collapsible.styles.ts
|
|
242
|
+
const Collapsible = {
|
|
243
|
+
container: cva(),
|
|
244
|
+
trigger: cva([
|
|
245
|
+
"inline-flex gap-2 whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
|
|
246
|
+
"duration-150 active:scale-[0.98] pressed:scale-[0.98]",
|
|
247
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
248
|
+
"focus-visible:util-focus-ring outline-none disabled:util-disabled",
|
|
249
|
+
"cursor-pointer"
|
|
250
|
+
], {
|
|
251
|
+
variants: {
|
|
252
|
+
variant: {
|
|
253
|
+
default: "",
|
|
254
|
+
link: "text-link util-touch-hitbox"
|
|
255
|
+
},
|
|
256
|
+
size: { default: "text-sm" }
|
|
257
|
+
},
|
|
258
|
+
defaultVariants: {
|
|
259
|
+
variant: "default",
|
|
260
|
+
size: "default"
|
|
261
|
+
}
|
|
262
|
+
}),
|
|
263
|
+
content: cva()
|
|
328
264
|
};
|
|
329
265
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
dialog: cva10("text-sm leading-normal"),
|
|
361
|
-
title: cva10("text-lg font-semibold mb-1"),
|
|
362
|
-
content: cva10("text-sm")
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region src/components/ContextualHelp.styles.ts
|
|
268
|
+
const ContextualHelp = {
|
|
269
|
+
trigger: cva([
|
|
270
|
+
"inline-flex items-center justify-center rounded-full transition-[color,box-shadow] hover:bg-hover hover:text-foreground",
|
|
271
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
272
|
+
"focus-visible:util-focus-ring outline-none",
|
|
273
|
+
"cursor-pointer"
|
|
274
|
+
], {
|
|
275
|
+
variants: {
|
|
276
|
+
variant: {
|
|
277
|
+
help: "",
|
|
278
|
+
info: ""
|
|
279
|
+
},
|
|
280
|
+
size: {
|
|
281
|
+
default: "size-button [&_svg]:size-4",
|
|
282
|
+
small: "size-button-small [&_svg]:size-3.5",
|
|
283
|
+
large: "size-button-large [&_svg]:size-5"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
defaultVariants: { size: "default" }
|
|
287
|
+
}),
|
|
288
|
+
popover: cva([
|
|
289
|
+
"flex flex-col gap-0 rounded-xl p-5 util-surface-overlay",
|
|
290
|
+
"data-[small]:max-w-3xs data-[medium]:max-w-xs data-[large]:max-w-md",
|
|
291
|
+
"overflow-y-auto util-scrollbar"
|
|
292
|
+
]),
|
|
293
|
+
container: cva(""),
|
|
294
|
+
title: cva("text-lg font-semibold mb-1"),
|
|
295
|
+
content: cva("text-sm")
|
|
363
296
|
};
|
|
364
297
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
]),
|
|
388
|
-
icon: cva11([
|
|
389
|
-
"pointer-events-none left-1",
|
|
390
|
-
"text-muted-foreground disabled:text-disabled-foreground"
|
|
391
|
-
]),
|
|
392
|
-
action: cva11(["text-muted-foreground right-1"])
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/components/Input.styles.ts
|
|
300
|
+
const inputContainer = "flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow group-read-only/field:bg-muted";
|
|
301
|
+
const inputDisabled = "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled";
|
|
302
|
+
const inputInvalid = "group-invalid/field:border-destructive group-invalid/field:focus:border-destructive group-invalid/field:focus:ring-destructive/20";
|
|
303
|
+
const inputReadOnly = "group-read-only/field:bg-muted";
|
|
304
|
+
const Input = {
|
|
305
|
+
input: cva([
|
|
306
|
+
inputContainer,
|
|
307
|
+
inputDisabled,
|
|
308
|
+
inputInvalid,
|
|
309
|
+
"focus:util-focus-ring outline-none",
|
|
310
|
+
inputReadOnly,
|
|
311
|
+
"h-input",
|
|
312
|
+
"placeholder:text-placeholder",
|
|
313
|
+
"[&[type=file]]:cursor-pointer [&[type=file]]:border-solid [&[type=file]]:bg-background [&[type=file]]:p-0 [&[type=file]]:pr-3 [&[type=file]]:italic [&[type=file]]:text-muted-foreground/70",
|
|
314
|
+
"file:cursor-pointer file:me-3 file:h-full file:border-0 file:border-r file:border-solid file:border-input file:bg-transparent file:px-3 file:text-sm file:font-medium file:not-italic file:text-foreground",
|
|
315
|
+
"group-[[data-icon]]/input:pl-8",
|
|
316
|
+
"group-[[data-action]]/input:pr-7"
|
|
317
|
+
]),
|
|
318
|
+
icon: cva(["pointer-events-none left-2", "text-muted-foreground disabled:text-disabled-foreground"]),
|
|
319
|
+
action: cva(["text-muted-foreground pr-1"])
|
|
393
320
|
};
|
|
394
321
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
)
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/components/DateField.styles.ts
|
|
324
|
+
const DateField = {
|
|
325
|
+
field: cva([
|
|
326
|
+
"h-input",
|
|
327
|
+
inputContainer,
|
|
328
|
+
inputDisabled,
|
|
329
|
+
"has-focus-visible:util-focus-ring outline-none",
|
|
330
|
+
inputInvalid,
|
|
331
|
+
inputReadOnly,
|
|
332
|
+
"invalid:focus-within:border-destructive invalid:focus-within:ring-destructive/20",
|
|
333
|
+
"data-[focus-within]:util-focus-ring outline-0"
|
|
334
|
+
]),
|
|
335
|
+
segment: cva([
|
|
336
|
+
inputDisabled,
|
|
337
|
+
"inline rounded p-0.5 text-foreground caret-transparent outline-0 data-[type=literal]:px-0 data-[focused]:data-[placeholder]:text-foreground data-[focused]:text-foreground data-[type=literal]:text-placeholder ",
|
|
338
|
+
"data-[focused]:bg-focus",
|
|
339
|
+
"data-[placeholder]:disabled:text-disabled-foreground",
|
|
340
|
+
"invalid:data-[focused]:bg-destructive invalid:data-[focused]:data-[placeholder]:text-destructive-foreground invalid:data-[focused]:text-destructive-foreground invalid:placeholder:text-destructive invalid:text-destructive data-[placeholder]:text-placeholder",
|
|
341
|
+
"group/segment",
|
|
342
|
+
"outline-0",
|
|
343
|
+
"whitespace-pre",
|
|
344
|
+
"data-[placeholder]:text-placeholder text-foreground data-[focused]:bg-focus data-[focused]:text-foreground rounded leading-none"
|
|
345
|
+
]),
|
|
346
|
+
action: cva("fill-muted-foreground disabled:text-disabled-foreground group-invalid/field:fill-destructive")
|
|
421
347
|
};
|
|
422
348
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region src/components/DatePicker.styles.ts
|
|
351
|
+
const DatePicker = cva([
|
|
352
|
+
"relative h-input -top-2",
|
|
353
|
+
"text-muted-foreground/80",
|
|
354
|
+
"hover:text-brand",
|
|
355
|
+
"disabled:cursor-not-allowed"
|
|
430
356
|
]);
|
|
431
357
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
medium: ""
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
),
|
|
453
|
-
header: cva14("flex flex-col gap-1 text-center sm:text-left"),
|
|
454
|
-
title: cva14("text-lg font-semibold mb-1"),
|
|
455
|
-
content: cva14("text-muted-foreground text-sm"),
|
|
456
|
-
actions: cva14("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4")
|
|
358
|
+
//#endregion
|
|
359
|
+
//#region src/components/Dialog.styles.ts
|
|
360
|
+
const Dialog = {
|
|
361
|
+
closeButton: cva(["absolute top-6 right-3", "size-7 "]),
|
|
362
|
+
container: cva(["flex flex-col gap-0 rounded-xl p-6 overflow-y-auto", "util-surface-overlay"], { variants: {
|
|
363
|
+
variant: {},
|
|
364
|
+
size: {
|
|
365
|
+
xsmall: "",
|
|
366
|
+
small: "",
|
|
367
|
+
medium: ""
|
|
368
|
+
}
|
|
369
|
+
} }),
|
|
370
|
+
header: cva("flex flex-col gap-1 text-center sm:text-left"),
|
|
371
|
+
title: cva("text-lg font-semibold mb-1"),
|
|
372
|
+
content: cva("text-muted-foreground text-sm"),
|
|
373
|
+
actions: cva("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4")
|
|
457
374
|
};
|
|
458
375
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
},
|
|
468
|
-
defaultVariants: {
|
|
469
|
-
variant: "default"
|
|
470
|
-
}
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/components/Divider.styles.ts
|
|
378
|
+
const Divider = cva("bg-border h-px w-full", {
|
|
379
|
+
variants: { variant: {
|
|
380
|
+
default: "",
|
|
381
|
+
bold: "h-0.5"
|
|
382
|
+
} },
|
|
383
|
+
defaultVariants: { variant: "default" }
|
|
471
384
|
});
|
|
472
385
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
),
|
|
499
|
-
closeButton: cva16(["absolute top-3.5 right-3 z-50", "size-7"]),
|
|
500
|
-
header: cva16("border-border border-b px-6 py-4"),
|
|
501
|
-
title: cva16("font-semibold text-base"),
|
|
502
|
-
content: cva16("px-6 py-4 overflow-y-auto outline-none"),
|
|
503
|
-
actions: cva16(
|
|
504
|
-
"flex flex-row gap-3 justify-end border-border border-t px-6 py-4"
|
|
505
|
-
)
|
|
386
|
+
//#endregion
|
|
387
|
+
//#region src/components/Drawer.styles.ts
|
|
388
|
+
const Drawer = {
|
|
389
|
+
overlay: cva([
|
|
390
|
+
"group/overlay z-40",
|
|
391
|
+
"data-[placement=top]:w-full data-[placement=top]:entering:animate-slide-in-top data-[placement=top]:exiting:animate-slide-out-top data-[placement=top]:top-0 data-[placement=top]:left-0",
|
|
392
|
+
"data-[placement=bottom]:w-full data-[placement=bottom]:entering:animate-slide-in-bottom data-[placement=bottom]:exiting:animate-slide-out-bottom data-[placement=bottom]:bottom-0 data-[placement=bottom]:left-0",
|
|
393
|
+
"data-[placement=left]:entering:animate-slide-in-left data-[placement=left]:exiting:animate-slide-out-left data-[placement=left]:top-0 data-[placement=left]:left-0",
|
|
394
|
+
"data-[placement=right]:entering:animate-slide-in-right data-[placement=right]:exiting:animate-slide-out-right data-[placement=right]:top-0 data-[placement=right]:right-0"
|
|
395
|
+
]),
|
|
396
|
+
container: cva([
|
|
397
|
+
"w-full relative grid-rows-[auto_1fr_auto]",
|
|
398
|
+
"util-surface-overlay",
|
|
399
|
+
"data-[placement=top]:w-full data-[placement=bottom]:w-full"
|
|
400
|
+
], { variants: { size: {
|
|
401
|
+
xsmall: "w-64 data-[placement=top]:h-48 data-[placement=bottom]:h-48",
|
|
402
|
+
small: "w-72 data-[placement=top]:h-64 data-[placement=bottom]:h-64",
|
|
403
|
+
medium: "w-96 data-[placement=top]:h-80 data-[placement=bottom]:h-80"
|
|
404
|
+
} } }),
|
|
405
|
+
closeButton: cva(["absolute top-3.5 right-3 z-50", "size-7"]),
|
|
406
|
+
header: cva("border-border border-b px-6 py-4"),
|
|
407
|
+
title: cva("font-semibold text-base"),
|
|
408
|
+
content: cva("px-6 py-4 overflow-y-auto outline-none"),
|
|
409
|
+
actions: cva("flex flex-row gap-3 justify-end border-border border-t px-6 py-4")
|
|
506
410
|
};
|
|
507
411
|
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
variants: {
|
|
512
|
-
variant: {
|
|
513
|
-
navigation: "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors outline-offset-2 focus-visible:outline-2 outline-ring/30 disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 hover:bg-hover hover:text-hover-foreground h-9 py-2 gap-1 px-2.5"
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
});
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region src/components/IconButton.styles.ts
|
|
414
|
+
const IconButton = cva("", { variants: { variant: { navigation: "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors outline-offset-2 focus-visible:outline-2 outline-ring/30 disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 hover:bg-hover hover:text-hover-foreground h-9 py-2 gap-1 px-2.5" } } });
|
|
517
415
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region src/components/Field.styles.ts
|
|
418
|
+
const Field = cva("space-y-2");
|
|
521
419
|
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
"level-6": "text-base font-normal"
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
});
|
|
420
|
+
//#endregion
|
|
421
|
+
//#region src/components/Headline.styles.ts
|
|
422
|
+
const Headline = cva("", { variants: { size: {
|
|
423
|
+
"level-1": "text-3xl font-extrabold",
|
|
424
|
+
"level-2": "text-2xl font-bold",
|
|
425
|
+
"level-3": "text-xl font-semibold",
|
|
426
|
+
"level-4": "text-lg font-semibold",
|
|
427
|
+
"level-5": "text-base font-medium",
|
|
428
|
+
"level-6": "text-base font-normal"
|
|
429
|
+
} } });
|
|
536
430
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
*/
|
|
547
|
-
'has-[+_[aria-hidden="true"]]:mb-0'
|
|
548
|
-
]),
|
|
549
|
-
icon: cva20("")
|
|
431
|
+
//#endregion
|
|
432
|
+
//#region src/components/HelpText.styles.ts
|
|
433
|
+
const HelpText = {
|
|
434
|
+
container: cva([
|
|
435
|
+
"text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
|
|
436
|
+
"group-invalid/field:text-destructive",
|
|
437
|
+
"has-[+_[aria-hidden=\"true\"]]:mb-0"
|
|
438
|
+
]),
|
|
439
|
+
icon: cva("")
|
|
550
440
|
};
|
|
551
441
|
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
"group-required/field:block text-destructive align-super size-2.5"
|
|
562
|
-
)
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region src/components/Label.styles.ts
|
|
444
|
+
const Label = {
|
|
445
|
+
container: cva([
|
|
446
|
+
"flex items-center gap-1",
|
|
447
|
+
"text-sm font-medium leading-none text-foreground",
|
|
448
|
+
"group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground"
|
|
449
|
+
]),
|
|
450
|
+
indicator: cva("group-required/field:block text-destructive -ml-1")
|
|
563
451
|
};
|
|
564
452
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
);
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region src/components/Link.styles.ts
|
|
455
|
+
const Link = cva("aria-[disabled]:cursor-not-allowed", {
|
|
456
|
+
variants: {
|
|
457
|
+
variant: {
|
|
458
|
+
default: "text-link font-normal",
|
|
459
|
+
secondary: "font-medium text-foreground underline hover:no-underline"
|
|
460
|
+
},
|
|
461
|
+
size: {
|
|
462
|
+
default: "",
|
|
463
|
+
small: "text-sm"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
defaultVariants: {
|
|
467
|
+
variant: "default",
|
|
468
|
+
size: "default"
|
|
469
|
+
}
|
|
470
|
+
});
|
|
586
471
|
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
size: {
|
|
606
|
-
default: "",
|
|
607
|
-
small: "*:text-sm"
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
defaultVariants: {
|
|
611
|
-
size: "default"
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
),
|
|
615
|
-
item: cva23("")
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region src/components/List.styles.ts
|
|
474
|
+
const List = {
|
|
475
|
+
ul: cva("ml-6 list-outside list-disc space-y-1 marker:text-foreground/50", {
|
|
476
|
+
variants: { size: {
|
|
477
|
+
default: "",
|
|
478
|
+
small: "*:text-sm"
|
|
479
|
+
} },
|
|
480
|
+
defaultVariants: { size: "default" }
|
|
481
|
+
}),
|
|
482
|
+
ol: cva("ml-6 list-outside list-decimal space-y-1 marker:text-foreground/50", {
|
|
483
|
+
variants: { size: {
|
|
484
|
+
default: "",
|
|
485
|
+
small: "*:text-sm"
|
|
486
|
+
} },
|
|
487
|
+
defaultVariants: { size: "default" }
|
|
488
|
+
}),
|
|
489
|
+
item: cva("")
|
|
616
490
|
};
|
|
617
491
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
section: cva24(""),
|
|
635
|
-
header: cva24(
|
|
636
|
-
"[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground"
|
|
637
|
-
)
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region src/components/ListBox.styles.ts
|
|
494
|
+
const ListBox = {
|
|
495
|
+
container: cva(["overflow-hidden rounded-md border border-input group-[[data-trigger]]/popover:border-0"]),
|
|
496
|
+
list: cva(["bg-background p-1 text-sm outline-0 space-y-px"]),
|
|
497
|
+
item: cva([
|
|
498
|
+
"relative flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground",
|
|
499
|
+
"[&_.selection-indicator>svg]:invisible [&_.selection-indicator>svg]:block",
|
|
500
|
+
"selected:bg-selected selected:[&_.selection-indicator>svg]:visible",
|
|
501
|
+
"hover:bg-hover hover:text-hover-foreground",
|
|
502
|
+
"disabled:cursor-not-allowed disabled:text-disabled-foreground",
|
|
503
|
+
"focus-visible:util-focus-ring outline-none focus-visible:z-1",
|
|
504
|
+
"cursor-default data-selection-mode:cursor-pointer"
|
|
505
|
+
]),
|
|
506
|
+
section: cva(""),
|
|
507
|
+
header: cva("[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground")
|
|
638
508
|
};
|
|
639
509
|
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
},
|
|
680
|
-
size: {
|
|
681
|
-
default: "h-button px-4 py-2 [&_svg]:size-4",
|
|
682
|
-
small: "h-button-small px-3 text-xs [&_svg]:size-3.5",
|
|
683
|
-
large: "h-button-large px-8 [&_svg]:size-5",
|
|
684
|
-
icon: "size-button [&_svg]:size-4"
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
defaultVariants: {
|
|
688
|
-
variant: "default",
|
|
689
|
-
size: "default"
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
)
|
|
510
|
+
//#endregion
|
|
511
|
+
//#region src/components/Menu.styles.ts
|
|
512
|
+
const Menu = {
|
|
513
|
+
container: cva(["text-foreground z-50 overflow-hidden rounded-md p-1 outline-none"]),
|
|
514
|
+
item: cva([
|
|
515
|
+
"relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none text-nowrap",
|
|
516
|
+
"disabled:text-disabled-foreground",
|
|
517
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4"
|
|
518
|
+
], {
|
|
519
|
+
variants: { variant: {
|
|
520
|
+
default: "text-foreground focus:bg-focus [&_svg]:opacity-60",
|
|
521
|
+
destructive: "text-destructive focus:bg-destructive/10"
|
|
522
|
+
} },
|
|
523
|
+
defaultVariants: { variant: "default" }
|
|
524
|
+
}),
|
|
525
|
+
section: cva("text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"),
|
|
526
|
+
button: cva([
|
|
527
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
|
|
528
|
+
"[&_svg]:shrink-0 [&_svg]:pointer-events-none",
|
|
529
|
+
"focus-visible:util-focus-ring outline-none disabled:util-disabled",
|
|
530
|
+
"cursor-pointer"
|
|
531
|
+
], {
|
|
532
|
+
variants: {
|
|
533
|
+
variant: {
|
|
534
|
+
default: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
|
|
535
|
+
ghost: "hover:bg-hover hover:text-foreground expanded:bg-hover"
|
|
536
|
+
},
|
|
537
|
+
size: {
|
|
538
|
+
default: "h-button px-4 py-2 [&_svg]:size-4",
|
|
539
|
+
small: "h-button-small px-3 text-xs [&_svg]:size-3.5",
|
|
540
|
+
large: "h-button-large px-8 [&_svg]:size-5",
|
|
541
|
+
icon: "size-button [&_svg]:size-4"
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
defaultVariants: {
|
|
545
|
+
variant: "default",
|
|
546
|
+
size: "default"
|
|
547
|
+
}
|
|
548
|
+
})
|
|
693
549
|
};
|
|
694
550
|
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
small: "[--dialog-width:640px]",
|
|
710
|
-
// sm breakpoint
|
|
711
|
-
medium: "[--dialog-width:768px]"
|
|
712
|
-
// md breakpoint
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
defaultVariants: {
|
|
716
|
-
size: "small"
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
);
|
|
551
|
+
//#endregion
|
|
552
|
+
//#region src/components/Modal.styles.ts
|
|
553
|
+
const Modal = cva([
|
|
554
|
+
"sm:max-h-[min(640px,80vh)]",
|
|
555
|
+
"[--dialog-spacing-x:1rem]",
|
|
556
|
+
"w-[min(calc(100%_-_var(--dialog-spacing-x)),calc(var(--dialog-width)_-_var(--dialog-spacing-x)))]"
|
|
557
|
+
], {
|
|
558
|
+
variants: { size: {
|
|
559
|
+
xsmall: "[--dialog-width:480px]",
|
|
560
|
+
small: "[--dialog-width:640px]",
|
|
561
|
+
medium: "[--dialog-width:768px]"
|
|
562
|
+
} },
|
|
563
|
+
defaultVariants: { size: "small" }
|
|
564
|
+
});
|
|
720
565
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
]),
|
|
765
|
-
valueContainer: cva27("gap-2")
|
|
566
|
+
//#endregion
|
|
567
|
+
//#region src/components/Multiselect.styles.ts
|
|
568
|
+
const MultiSelect = {
|
|
569
|
+
field: cva("space-y-2"),
|
|
570
|
+
container: cva([
|
|
571
|
+
"bg-background shadow-xs border",
|
|
572
|
+
"px-3 text-sm text-foreground transition-shadow",
|
|
573
|
+
"border border-input rounded-lg outline-hidden",
|
|
574
|
+
"aria-disabled:bg-disabled aria-disabled:text-disabled-foreground aria-disabled:hover:border-input aria-disabled:border-input aria-disabled:cursor-not-allowed",
|
|
575
|
+
"has-[input[data-invalid=true]]:border-destructive has-[input[data-invalid=true][data-focused=true]]:!border-destructive has-[input[data-invalid=true][data-focused=true]]:!ring-destructive/20",
|
|
576
|
+
"has-[input[data-focused=true]]:!border-ring has-[input[data-focused=true]]:!ring-ring/50 has-[input[data-focused=true]]:ring-[3px] has-[input[data-focused=true]]:!outline-none",
|
|
577
|
+
"has-[input[aria-readonly=true]]:bg-muted",
|
|
578
|
+
"min-h-input"
|
|
579
|
+
]),
|
|
580
|
+
input: cva([
|
|
581
|
+
"bg-transparent flex-1 h-full",
|
|
582
|
+
"leading-loose",
|
|
583
|
+
"data-[focused]:outline-hidden outline-hidden border-0",
|
|
584
|
+
"disabled:cursor-not-allowed",
|
|
585
|
+
"group-data-[icon]/input:pl-5",
|
|
586
|
+
"group-data-[action]/input:pr-8",
|
|
587
|
+
"placeholder:text-placeholder"
|
|
588
|
+
]),
|
|
589
|
+
tag: cva([
|
|
590
|
+
"border border-solid border-input rounded-md",
|
|
591
|
+
"bg-background",
|
|
592
|
+
"font-medium text-xs",
|
|
593
|
+
"flex items-center gap-1 ",
|
|
594
|
+
"h-7 px-2 cursor-default"
|
|
595
|
+
]),
|
|
596
|
+
closeButton: cva("size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"),
|
|
597
|
+
icon: cva("left-1"),
|
|
598
|
+
listContainer: cva(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
|
|
599
|
+
list: cva("pointer-events-auto space-y-1 p-1"),
|
|
600
|
+
option: cva([
|
|
601
|
+
"text-sm text-foreground",
|
|
602
|
+
"flex flex-col",
|
|
603
|
+
"cursor-pointer p-2 outline-hidden",
|
|
604
|
+
"[&.isFocused:not([aria-disabled=true])]:!text-foreground [&.isFocused[aria-disabled=true]]:bg-transparent",
|
|
605
|
+
"aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
|
|
606
|
+
"[&.isFocused:not([aria-disabled=true])]:!bg-hover"
|
|
607
|
+
]),
|
|
608
|
+
valueContainer: cva("gap-2")
|
|
766
609
|
};
|
|
767
610
|
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
611
|
+
//#endregion
|
|
612
|
+
//#region src/components/NumberField.styles.ts
|
|
613
|
+
const NumberField = {
|
|
614
|
+
group: cva([
|
|
615
|
+
"rounded-lg h-input bg-background",
|
|
616
|
+
"has-focus-visible:util-focus-ring outline-none",
|
|
617
|
+
inputInvalid,
|
|
618
|
+
inputReadOnly,
|
|
619
|
+
"border border-input text-sm shadow-xs transition-shadow",
|
|
620
|
+
"data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
|
|
621
|
+
]),
|
|
622
|
+
stepper: cva([
|
|
623
|
+
"w-7 h-full text-center shrink-0",
|
|
624
|
+
"disabled:text-disabled-foreground disabled:bg-disabled",
|
|
625
|
+
"border-input! first-of-type:border-r! last-of-type:border-l!"
|
|
626
|
+
]),
|
|
627
|
+
input: cva([
|
|
628
|
+
"tabular-nums text-foreground px-3 py-2",
|
|
629
|
+
"min-w-0 flex-1 bg-transparent",
|
|
630
|
+
"group-[[data-stepper]]/field:text-center",
|
|
631
|
+
"disabled:text-disabled-foreground disabled:bg-disabled"
|
|
632
|
+
])
|
|
790
633
|
};
|
|
791
634
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
635
|
+
//#endregion
|
|
636
|
+
//#region src/components/Popover.styles.ts
|
|
637
|
+
const Popover = cva([
|
|
638
|
+
"group/popover",
|
|
639
|
+
"text-foreground z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0",
|
|
640
|
+
"placement-top:mb-1",
|
|
641
|
+
"placement-bottom:mt-1",
|
|
642
|
+
"placement-right:ml-1",
|
|
643
|
+
"placement-left:mr-1",
|
|
644
|
+
"util-surface-overlay"
|
|
802
645
|
]);
|
|
803
646
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
"group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
|
|
818
|
-
]),
|
|
819
|
-
group: cva30()
|
|
647
|
+
//#endregion
|
|
648
|
+
//#region src/components/Radio.styles.ts
|
|
649
|
+
const Radio = {
|
|
650
|
+
container: cva("group-disabled/radio:cursor-not-allowed"),
|
|
651
|
+
label: cva(["text-sm font-normal cursor-pointer", "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"]),
|
|
652
|
+
radio: cva([
|
|
653
|
+
"aspect-square size-4 rounded-full",
|
|
654
|
+
"border border-input shadow-xs",
|
|
655
|
+
"group-focus-visible/radio:util-focus-ring outline-none",
|
|
656
|
+
"group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
|
|
657
|
+
"group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
|
|
658
|
+
]),
|
|
659
|
+
group: cva()
|
|
820
660
|
};
|
|
821
661
|
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
662
|
+
//#endregion
|
|
663
|
+
//#region src/components/Pagination.styles.ts
|
|
664
|
+
const button = [
|
|
665
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
|
|
666
|
+
"focus-visible:util-focus-ring outline-none",
|
|
667
|
+
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
668
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
669
|
+
"hover:bg-hover hover:text-hover-foreground",
|
|
670
|
+
"cursor-pointer"
|
|
831
671
|
];
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
672
|
+
const Pagination = {
|
|
673
|
+
container: cva("flex items-center justify-center space-x-2"),
|
|
674
|
+
navigationButton: cva([
|
|
675
|
+
...button,
|
|
676
|
+
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
677
|
+
"h-9 py-2 gap-1 px-2.5"
|
|
678
|
+
]),
|
|
679
|
+
pageButton: cva([
|
|
680
|
+
...button,
|
|
681
|
+
"bg-background size-9",
|
|
682
|
+
"data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs"
|
|
683
|
+
]),
|
|
684
|
+
icon: cva("h-4 w-4"),
|
|
685
|
+
ellipsis: cva("text-foreground flex h-8 w-8 items-center justify-center")
|
|
846
686
|
};
|
|
847
687
|
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
"stroke-foreground"
|
|
852
|
-
]);
|
|
688
|
+
//#endregion
|
|
689
|
+
//#region src/components/ProgressCycle.styles.ts
|
|
690
|
+
const ProgressCycle = cva(["stroke-foreground"]);
|
|
853
691
|
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
icon: cva33("h-6 w-6 align-baseline leading-none -mt-0.5", {
|
|
891
|
-
variants: {
|
|
892
|
-
variant: {
|
|
893
|
-
success: "text-success-muted-accent",
|
|
894
|
-
warning: "text-warning-muted-accent",
|
|
895
|
-
info: "text-info-muted-accent",
|
|
896
|
-
error: "text-destructive-muted-accent"
|
|
897
|
-
}
|
|
898
|
-
},
|
|
899
|
-
defaultVariants: {
|
|
900
|
-
variant: "info"
|
|
901
|
-
}
|
|
902
|
-
}),
|
|
903
|
-
close: cva33([
|
|
904
|
-
"size-8 text-foreground",
|
|
905
|
-
"[&_svg]:size-6",
|
|
906
|
-
"-my-1.5 -me-2"
|
|
907
|
-
// align button with title
|
|
908
|
-
])
|
|
692
|
+
//#endregion
|
|
693
|
+
//#region src/components/SectionMessage.styles.ts
|
|
694
|
+
const SectionMessage = {
|
|
695
|
+
container: cva(["grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:\"icon_title_close\"\"icon_content_content\"]", "bg-background rounded-md border px-3 py-4"], {
|
|
696
|
+
variants: { variant: {
|
|
697
|
+
success: "border-success-muted-accent bg-success-muted text-success-muted-foreground",
|
|
698
|
+
warning: "border-warning-muted-accent bg-warning-muted text-warning-muted-foreground",
|
|
699
|
+
info: "border-info-muted-accent bg-info-muted text-info-muted-foreground",
|
|
700
|
+
error: "border-destructive-muted-accent bg-destructive-muted text-destructive-muted-foreground"
|
|
701
|
+
} },
|
|
702
|
+
defaultVariants: { variant: "info" }
|
|
703
|
+
}),
|
|
704
|
+
title: cva("text-sm font-medium"),
|
|
705
|
+
content: cva("text-muted-foreground text-sm leading-5 font-normal", {
|
|
706
|
+
variants: { variant: {
|
|
707
|
+
success: "text-success-muted-foreground",
|
|
708
|
+
warning: "text-warning-muted-foreground",
|
|
709
|
+
info: "text-info-muted-foreground",
|
|
710
|
+
error: "text-destructive-muted-foreground"
|
|
711
|
+
} },
|
|
712
|
+
defaultVariants: { variant: "info" }
|
|
713
|
+
}),
|
|
714
|
+
icon: cva("h-6 w-6 align-baseline leading-none -mt-0.5", {
|
|
715
|
+
variants: { variant: {
|
|
716
|
+
success: "text-success-muted-accent",
|
|
717
|
+
warning: "text-warning-muted-accent",
|
|
718
|
+
info: "text-info-muted-accent",
|
|
719
|
+
error: "text-destructive-muted-accent"
|
|
720
|
+
} },
|
|
721
|
+
defaultVariants: { variant: "info" }
|
|
722
|
+
}),
|
|
723
|
+
close: cva([
|
|
724
|
+
"size-8 text-foreground",
|
|
725
|
+
"[&_svg]:size-6",
|
|
726
|
+
"-my-1.5 -me-2"
|
|
727
|
+
])
|
|
909
728
|
};
|
|
910
729
|
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
* helptext. Spacing is applied because the select is followed
|
|
926
|
-
* by a hidden select that is rendered by react-aria.
|
|
927
|
-
*/
|
|
928
|
-
'has-[+_[aria-hidden="true"]]:mb-0'
|
|
929
|
-
])
|
|
730
|
+
//#endregion
|
|
731
|
+
//#region src/components/Select.styles.ts
|
|
732
|
+
const Select = {
|
|
733
|
+
icon: cva("text-muted-foreground/80"),
|
|
734
|
+
select: cva([
|
|
735
|
+
inputContainer,
|
|
736
|
+
inputInvalid,
|
|
737
|
+
inputDisabled,
|
|
738
|
+
"focus-visible:util-focus-ring outline-none",
|
|
739
|
+
"h-input",
|
|
740
|
+
"cursor-pointer",
|
|
741
|
+
"*:data-placeholder:text-placeholder",
|
|
742
|
+
"has-[+_[aria-hidden=\"true\"]]:mb-0"
|
|
743
|
+
])
|
|
930
744
|
};
|
|
931
745
|
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
"focus-visible:util-focus-borderless-ring outline-none",
|
|
945
|
-
"disabled:cursor-not-allowed"
|
|
946
|
-
]),
|
|
947
|
-
output: cva35("text-foreground text-sm")
|
|
746
|
+
//#endregion
|
|
747
|
+
//#region src/components/Slider.styles.ts
|
|
748
|
+
const Slider = {
|
|
749
|
+
container: cva("*:aria-hidden:hidden"),
|
|
750
|
+
track: cva(["relative bg-muted rounded-lg flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[disabled]:opacity-50"]),
|
|
751
|
+
selectedTrack: cva(["absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"]),
|
|
752
|
+
thumb: cva([
|
|
753
|
+
"block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
|
|
754
|
+
"focus-visible:util-focus-borderless-ring outline-none",
|
|
755
|
+
"disabled:cursor-not-allowed"
|
|
756
|
+
]),
|
|
757
|
+
output: cva("text-foreground text-sm")
|
|
948
758
|
};
|
|
949
759
|
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
"ring-0 transition-transform duration-150 ease-out-quint",
|
|
968
|
-
"group-selected/switch:translate-x-4 translate-x-0"
|
|
969
|
-
])
|
|
760
|
+
//#endregion
|
|
761
|
+
//#region src/components/Switch.styles.ts
|
|
762
|
+
const Switch = {
|
|
763
|
+
container: cva("disabled:cursor-not-allowed disabled:text-disabled-foreground"),
|
|
764
|
+
track: cva([
|
|
765
|
+
"flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full transition-colors",
|
|
766
|
+
"border-2 border-transparent",
|
|
767
|
+
"group-disabled/switch:bg-disabled group-disabled/switch:text-disabled-foreground group-selected/switch:group-disabled/switch:bg-disabled group-selected/switch:group-disabled/switch:text-disabled-foreground",
|
|
768
|
+
"group-selected/switch:bg-brand bg-input",
|
|
769
|
+
"group-focus-visible/switch:util-focus-borderless-ring outline-none"
|
|
770
|
+
]),
|
|
771
|
+
thumb: cva([
|
|
772
|
+
"pointer-events-none block size-5 rounded-full",
|
|
773
|
+
"bg-background shadow-xs",
|
|
774
|
+
"ring-0 transition-transform duration-150 ease-out-quint",
|
|
775
|
+
"group-selected/switch:translate-x-4 translate-x-0"
|
|
776
|
+
])
|
|
970
777
|
};
|
|
971
778
|
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
[
|
|
1031
|
-
"border-b border-border transition-colors",
|
|
1032
|
-
"focus-visible:outline-2 outline-offset-2 outline-ring/70",
|
|
1033
|
-
"data-disabled:cursor-not-allowed"
|
|
1034
|
-
],
|
|
1035
|
-
{
|
|
1036
|
-
variants: {
|
|
1037
|
-
variant: {
|
|
1038
|
-
default: "aria-[selected=true]:bg-muted",
|
|
1039
|
-
grid: "aria-[selected=true]:bg-muted [&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
|
|
1040
|
-
admin: [
|
|
1041
|
-
"bg-access-admin",
|
|
1042
|
-
"[&_td:first-child]:relative [&_td:first-child]:pl-4",
|
|
1043
|
-
'[&_td:first-child:before]:content-[""] [&_td:first-child:before]:absolute [&_td:first-child:before]:top-0 [&_td:first-child:before]:bottom-0 [&_td:first-child:before]:left-0 [&_td:first-child:before]:w-1',
|
|
1044
|
-
"[&_td:first-child:before]:bg-access-admin-foreground"
|
|
1045
|
-
],
|
|
1046
|
-
master: [
|
|
1047
|
-
"bg-access-master",
|
|
1048
|
-
"[&_td:first-child]:relative [&_td:first-child]:pl-4",
|
|
1049
|
-
'[&_td:first-child:before]:content-[""] [&_td:first-child:before]:absolute [&_td:first-child:before]:top-0 [&_td:first-child:before]:bottom-0 [&_td:first-child:before]:left-0 [&_td:first-child:before]:w-1',
|
|
1050
|
-
"[&_td:first-child:before]:bg-access-master-foreground"
|
|
1051
|
-
]
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
defaultVariants: {
|
|
1055
|
-
variant: "default"
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
),
|
|
1059
|
-
cell: cva37("p-3 focus-visible:outline-2 outline-offset-2 outline-ring/70", {
|
|
1060
|
-
variants: {
|
|
1061
|
-
variant: {
|
|
1062
|
-
default: "[&:has([type=checkbox])]:pr-0",
|
|
1063
|
-
grid: ""
|
|
1064
|
-
}
|
|
1065
|
-
},
|
|
1066
|
-
defaultVariants: {
|
|
1067
|
-
variant: "default"
|
|
1068
|
-
}
|
|
1069
|
-
})
|
|
779
|
+
//#endregion
|
|
780
|
+
//#region src/components/Table.styles.ts
|
|
781
|
+
const Table = {
|
|
782
|
+
table: cva("text-sm [&_td]:border-border [&_th]:border-border border-separate border-spacing-0 [&_th]:border-b [&_tr]:border-none [&_tr:not(:last-child)_td]:border-b", { variants: { variant: {
|
|
783
|
+
default: "",
|
|
784
|
+
grid: ""
|
|
785
|
+
} } }),
|
|
786
|
+
thead: cva("bg-background/90 top-0 z-1 backdrop-blur-xs ", { variants: { variant: {
|
|
787
|
+
default: "",
|
|
788
|
+
grid: ""
|
|
789
|
+
} } }),
|
|
790
|
+
headerRow: cva(["border-border border-b"], {
|
|
791
|
+
variants: { variant: {
|
|
792
|
+
default: "",
|
|
793
|
+
grid: "[&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
|
|
794
|
+
muted: "bg-muted"
|
|
795
|
+
} },
|
|
796
|
+
defaultVariants: { variant: "default" }
|
|
797
|
+
}),
|
|
798
|
+
header: cva(["h-12 px-3 align-middle font-medium text-muted-foreground", "focus-visible:outline-2 outline-offset-2 outline-ring/70"], {
|
|
799
|
+
variants: { variant: {
|
|
800
|
+
default: "[&:has([type=checkbox])]:pr-0",
|
|
801
|
+
grid: "",
|
|
802
|
+
muted: "border-t"
|
|
803
|
+
} },
|
|
804
|
+
defaultVariants: { variant: "default" }
|
|
805
|
+
}),
|
|
806
|
+
body: cva("[&_tr:last-child]:border-0"),
|
|
807
|
+
row: cva([
|
|
808
|
+
"border-b border-border transition-colors",
|
|
809
|
+
"focus-visible:outline-2 outline-offset-2 outline-ring/70",
|
|
810
|
+
"data-disabled:cursor-not-allowed"
|
|
811
|
+
], {
|
|
812
|
+
variants: { variant: {
|
|
813
|
+
default: "aria-[selected=true]:bg-muted",
|
|
814
|
+
grid: "aria-[selected=true]:bg-muted [&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
|
|
815
|
+
admin: [
|
|
816
|
+
"bg-access-admin",
|
|
817
|
+
"[&_td:first-child]:relative [&_td:first-child]:pl-4",
|
|
818
|
+
"[&_td:first-child:before]:content-[\"\"] [&_td:first-child:before]:absolute [&_td:first-child:before]:top-0 [&_td:first-child:before]:bottom-0 [&_td:first-child:before]:left-0 [&_td:first-child:before]:w-1",
|
|
819
|
+
"[&_td:first-child:before]:bg-access-admin-foreground"
|
|
820
|
+
],
|
|
821
|
+
master: [
|
|
822
|
+
"bg-access-master",
|
|
823
|
+
"[&_td:first-child]:relative [&_td:first-child]:pl-4",
|
|
824
|
+
"[&_td:first-child:before]:content-[\"\"] [&_td:first-child:before]:absolute [&_td:first-child:before]:top-0 [&_td:first-child:before]:bottom-0 [&_td:first-child:before]:left-0 [&_td:first-child:before]:w-1",
|
|
825
|
+
"[&_td:first-child:before]:bg-access-master-foreground"
|
|
826
|
+
]
|
|
827
|
+
} },
|
|
828
|
+
defaultVariants: { variant: "default" }
|
|
829
|
+
}),
|
|
830
|
+
cell: cva("p-3 focus-visible:outline-2 outline-offset-2 outline-ring/70", {
|
|
831
|
+
variants: { variant: {
|
|
832
|
+
default: "[&:has([type=checkbox])]:pr-0",
|
|
833
|
+
grid: ""
|
|
834
|
+
} },
|
|
835
|
+
defaultVariants: { variant: "default" }
|
|
836
|
+
})
|
|
1070
837
|
};
|
|
1071
838
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
"data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
|
|
1088
|
-
]),
|
|
1089
|
-
tabpanel: cva38([
|
|
1090
|
-
"py-4 rounded-sm",
|
|
1091
|
-
"focus-visible:util-focus-ring outline-none"
|
|
1092
|
-
])
|
|
839
|
+
//#endregion
|
|
840
|
+
//#region src/components/Tabs.styles.ts
|
|
841
|
+
const Tabs = {
|
|
842
|
+
container: cva("flex flex-col gap-2"),
|
|
843
|
+
tabsList: cva(["text-muted-foreground", "flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"]),
|
|
844
|
+
tab: cva([
|
|
845
|
+
"relative inline-flex items-center justify-center gap-1 rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
|
|
846
|
+
"[&_svg]:shrink-0",
|
|
847
|
+
"focus-visible:util-focus-ring outline-none",
|
|
848
|
+
"hover:bg-hover hover:text-foreground",
|
|
849
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
850
|
+
"data-selected:text-foreground data-selected:hover:bg-hover",
|
|
851
|
+
"data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
|
|
852
|
+
]),
|
|
853
|
+
tabpanel: cva(["py-4 rounded-sm", "focus-visible:util-focus-ring outline-none"])
|
|
1093
854
|
};
|
|
1094
855
|
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
"flex flex-wrap gap-1",
|
|
1119
|
-
// mb-0 prevents whitespace when the hidden field is rendered
|
|
1120
|
-
"mb-0"
|
|
1121
|
-
]),
|
|
1122
|
-
removeAll: cva39([
|
|
1123
|
-
"inline whitespace-nowrap font-medium transition-[color,box-shadow,transform]",
|
|
1124
|
-
"duration-150 active:scale-[0.98] pressed:scale-[0.98]",
|
|
1125
|
-
"focus-visible:util-focus-ring outline-none",
|
|
1126
|
-
"cursor-pointer",
|
|
1127
|
-
"text-link text-xs util-touch-hitbox"
|
|
1128
|
-
])
|
|
856
|
+
//#endregion
|
|
857
|
+
//#region src/components/Tag.styles.ts
|
|
858
|
+
const Tag = {
|
|
859
|
+
container: cva(["flex gap-3", "min-h-7"]),
|
|
860
|
+
tag: cva([
|
|
861
|
+
"relative inline-flex items-center gap-[7px]",
|
|
862
|
+
"border border-solid border-input rounded-lg",
|
|
863
|
+
"font-medium text-xs",
|
|
864
|
+
"h-7 px-2 cursor-default",
|
|
865
|
+
"bg-background",
|
|
866
|
+
"data-selected:text-white data-selected:bg-brand",
|
|
867
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
|
|
868
|
+
"focus-visible:util-focus-ring outline-none"
|
|
869
|
+
]),
|
|
870
|
+
closeButton: cva(["size-4", "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"]),
|
|
871
|
+
listItems: cva(["flex flex-wrap gap-1", "mb-0"]),
|
|
872
|
+
removeAll: cva([
|
|
873
|
+
"inline whitespace-nowrap font-medium transition-[color,box-shadow,transform]",
|
|
874
|
+
"duration-150 active:scale-[0.98] pressed:scale-[0.98]",
|
|
875
|
+
"focus-visible:util-focus-ring outline-none",
|
|
876
|
+
"cursor-pointer",
|
|
877
|
+
"text-link text-xs util-touch-hitbox"
|
|
878
|
+
])
|
|
1129
879
|
};
|
|
1130
880
|
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
881
|
+
//#endregion
|
|
882
|
+
//#region src/components/TextArea.styles.ts
|
|
883
|
+
const TextArea = cva([
|
|
884
|
+
inputContainer,
|
|
885
|
+
inputInvalid,
|
|
886
|
+
"focus:util-focus-ring outline-none",
|
|
887
|
+
inputDisabled,
|
|
888
|
+
inputReadOnly,
|
|
889
|
+
"invalid:text-destructive"
|
|
1140
890
|
]);
|
|
1141
891
|
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
}
|
|
892
|
+
//#endregion
|
|
893
|
+
//#region src/components/Text.styles.ts
|
|
894
|
+
const Text = cva("", {
|
|
895
|
+
variants: {
|
|
896
|
+
variant: {
|
|
897
|
+
default: "",
|
|
898
|
+
muted: "text-muted-foreground"
|
|
899
|
+
},
|
|
900
|
+
size: {
|
|
901
|
+
default: "",
|
|
902
|
+
xs: "text-xs",
|
|
903
|
+
sm: "text-sm",
|
|
904
|
+
base: "text-base",
|
|
905
|
+
lg: "text-lg",
|
|
906
|
+
xl: "text-xl",
|
|
907
|
+
"2xl": "text-2xl",
|
|
908
|
+
"3xl": "text-3xl",
|
|
909
|
+
"4xl": "text-4xl",
|
|
910
|
+
"5xl": "text-5xl",
|
|
911
|
+
"6xl": "text-6xl",
|
|
912
|
+
"7xl": "text-7xl",
|
|
913
|
+
"8xl": "text-8xl",
|
|
914
|
+
"9xl": "text-9xl"
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
defaultVariants: {
|
|
918
|
+
variant: "default",
|
|
919
|
+
size: "default"
|
|
920
|
+
}
|
|
1172
921
|
});
|
|
1173
922
|
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
}
|
|
1220
|
-
),
|
|
1221
|
-
content: cva42(["contents"]),
|
|
1222
|
-
"bottom-left": cva42(["fixed bottom-4 left-4 flex flex-col-reverse"]),
|
|
1223
|
-
"bottom-right": cva42(["fixed bottom-4 right-4 flex flex-col-reverse"]),
|
|
1224
|
-
"top-left": cva42(["fixed top-4 left-4 flex flex-col"]),
|
|
1225
|
-
"top-right": cva42(["fixed top-4 right-4 flex flex-col"]),
|
|
1226
|
-
top: cva42([
|
|
1227
|
-
"fixed top-4 left-1/2 right-auto -translate-x-1/2 flex flex-col items-center w-auto align-middle"
|
|
1228
|
-
]),
|
|
1229
|
-
bottom: cva42([
|
|
1230
|
-
"fixed bottom-4 left-1/2 right-auto -translate-x-1/2 flex flex-col-reverse items-center w-auto align-middle"
|
|
1231
|
-
])
|
|
923
|
+
//#endregion
|
|
924
|
+
//#region src/components/Toast.styles.ts
|
|
925
|
+
const Toast = {
|
|
926
|
+
toast: cva([
|
|
927
|
+
"z-50",
|
|
928
|
+
"max-w-sm w-full pointer-events-auto overflow-hidden rounded-md border shadow-lg bg-background text-foreground border-border",
|
|
929
|
+
"grid grid-cols-[auto_1fr_auto_auto] grid-rows-[auto_auto] gap-x-1 gap-y-0",
|
|
930
|
+
"[grid-template-areas:\"icon_title_action_close\"\"icon_description_action_close\"] focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
931
|
+
"p-4"
|
|
932
|
+
]),
|
|
933
|
+
title: cva([
|
|
934
|
+
"text-sm font-medium",
|
|
935
|
+
"[grid-area:title]",
|
|
936
|
+
"flex items-center mb-0"
|
|
937
|
+
]),
|
|
938
|
+
description: cva(["text-muted-foreground text-sm", "[grid-area:description] mt-0"]),
|
|
939
|
+
closeButton: cva([
|
|
940
|
+
"[grid-area:close] row-end-1",
|
|
941
|
+
"ml-2",
|
|
942
|
+
"flex items-center justify-center",
|
|
943
|
+
"size-5 rounded transition-[color,box-shadow] outline-none",
|
|
944
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] text-muted-foreground hover:text-hover-foreground"
|
|
945
|
+
]),
|
|
946
|
+
icon: cva([
|
|
947
|
+
"[grid-area:icon]",
|
|
948
|
+
"flex items-center justify-center",
|
|
949
|
+
"h-5 w-5 leading-none"
|
|
950
|
+
], {
|
|
951
|
+
variants: { variant: {
|
|
952
|
+
default: "",
|
|
953
|
+
success: "text-success-muted-accent",
|
|
954
|
+
warning: "text-warning-muted-accent",
|
|
955
|
+
info: "text-info-muted-accent",
|
|
956
|
+
error: "text-destructive-muted-accent"
|
|
957
|
+
} },
|
|
958
|
+
defaultVariants: { variant: "default" }
|
|
959
|
+
}),
|
|
960
|
+
content: cva(["contents"]),
|
|
961
|
+
"bottom-left": cva(["fixed bottom-4 left-4 flex flex-col-reverse"]),
|
|
962
|
+
"bottom-right": cva(["fixed bottom-4 right-4 flex flex-col-reverse"]),
|
|
963
|
+
"top-left": cva(["fixed top-4 left-4 flex flex-col"]),
|
|
964
|
+
"top-right": cva(["fixed top-4 right-4 flex flex-col"]),
|
|
965
|
+
top: cva(["fixed top-4 left-1/2 right-auto -translate-x-1/2 flex flex-col items-center w-auto align-middle"]),
|
|
966
|
+
bottom: cva(["fixed bottom-4 left-1/2 right-auto -translate-x-1/2 flex flex-col-reverse items-center w-auto align-middle"]),
|
|
967
|
+
action: cva(["[grid-area:action] flex items-start pl-4"])
|
|
1232
968
|
};
|
|
1233
969
|
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
// left
|
|
1262
|
-
"data-[placement=left]:[&_svg]:-rotate-90",
|
|
1263
|
-
// bottom
|
|
1264
|
-
"data-[placement=bottom]:[&_svg]:rotate-180"
|
|
1265
|
-
],
|
|
1266
|
-
{
|
|
1267
|
-
variants: {
|
|
1268
|
-
variant: {
|
|
1269
|
-
default: "fill-brand stroke-brand",
|
|
1270
|
-
white: "fill-white stroke-border "
|
|
1271
|
-
}
|
|
1272
|
-
},
|
|
1273
|
-
defaultVariants: {
|
|
1274
|
-
variant: "default"
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
)
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region src/components/Tooltip.styles.ts
|
|
972
|
+
const Tooltip = {
|
|
973
|
+
container: cva([
|
|
974
|
+
"relative z-50 max-w-70 rounded-md border px-3 py-1.5 text-sm",
|
|
975
|
+
"placement-top:mb-2",
|
|
976
|
+
"placement-bottom:mt-2",
|
|
977
|
+
"placement-right:ml-2",
|
|
978
|
+
"placement-left:mr-2"
|
|
979
|
+
], {
|
|
980
|
+
variants: { variant: {
|
|
981
|
+
default: "text-brand-foreground bg-brand border-brand",
|
|
982
|
+
white: "text-secondary-foreground border-border bg-white"
|
|
983
|
+
} },
|
|
984
|
+
defaultVariants: { variant: "default" }
|
|
985
|
+
}),
|
|
986
|
+
arrow: cva([
|
|
987
|
+
"data-[placement=right]:[&_svg]:rotate-90",
|
|
988
|
+
"data-[placement=left]:[&_svg]:-rotate-90",
|
|
989
|
+
"data-[placement=bottom]:[&_svg]:rotate-180"
|
|
990
|
+
], {
|
|
991
|
+
variants: { variant: {
|
|
992
|
+
default: "fill-brand stroke-brand",
|
|
993
|
+
white: "fill-white stroke-border "
|
|
994
|
+
} },
|
|
995
|
+
defaultVariants: { variant: "default" }
|
|
996
|
+
})
|
|
1278
997
|
};
|
|
1279
998
|
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
999
|
+
//#endregion
|
|
1000
|
+
//#region src/components/Underlay.styles.ts
|
|
1001
|
+
const Underlay = cva("bg-black/80 px-4");
|
|
1283
1002
|
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1003
|
+
//#endregion
|
|
1004
|
+
//#region src/components/XLoader.styles.ts
|
|
1005
|
+
const XLoader = {
|
|
1006
|
+
container: cva("grid place-items-center text-brand", {
|
|
1007
|
+
variants: {
|
|
1008
|
+
variant: {
|
|
1009
|
+
default: "",
|
|
1010
|
+
inverted: "text-secondary"
|
|
1011
|
+
},
|
|
1012
|
+
size: {
|
|
1013
|
+
default: "size-20",
|
|
1014
|
+
large: "size-36",
|
|
1015
|
+
fit: "size-full"
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
defaultVariants: {
|
|
1019
|
+
variant: "default",
|
|
1020
|
+
size: "default"
|
|
1021
|
+
}
|
|
1022
|
+
}),
|
|
1023
|
+
loader: cva("size-full", {
|
|
1024
|
+
variants: {
|
|
1025
|
+
variant: {
|
|
1026
|
+
default: "",
|
|
1027
|
+
inverted: ""
|
|
1028
|
+
},
|
|
1029
|
+
size: {
|
|
1030
|
+
default: "",
|
|
1031
|
+
large: "",
|
|
1032
|
+
fit: ""
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
defaultVariants: {
|
|
1036
|
+
variant: "default",
|
|
1037
|
+
size: "default"
|
|
1038
|
+
}
|
|
1039
|
+
}),
|
|
1040
|
+
label: cva("text-current text-sm")
|
|
1322
1041
|
};
|
|
1323
1042
|
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
link: cva46("hover:underline cursor-pointer"),
|
|
1345
|
-
current: cva46("font-medium")
|
|
1043
|
+
//#endregion
|
|
1044
|
+
//#region src/components/Breadcrumbs.styles.ts
|
|
1045
|
+
const Breadcrumbs = {
|
|
1046
|
+
container: cva(["flex flex-wrap items-center"], {
|
|
1047
|
+
variants: {
|
|
1048
|
+
variant: { default: "text-foreground" },
|
|
1049
|
+
size: {
|
|
1050
|
+
small: "text-xs gap-1.5",
|
|
1051
|
+
default: "text-sm gap-1.5",
|
|
1052
|
+
large: "text-base gap-1.5"
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
defaultVariants: {
|
|
1056
|
+
variant: "default",
|
|
1057
|
+
size: "default"
|
|
1058
|
+
}
|
|
1059
|
+
}),
|
|
1060
|
+
item: cva("inline-flex items-center gap-1.5 whitespace-nowrap "),
|
|
1061
|
+
link: cva("hover:underline cursor-pointer"),
|
|
1062
|
+
current: cva("font-medium")
|
|
1346
1063
|
};
|
|
1347
1064
|
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1065
|
+
//#endregion
|
|
1066
|
+
//#region src/components/index.ts
|
|
1067
|
+
var components_exports = /* @__PURE__ */ __export({
|
|
1068
|
+
Accordion: () => Accordion,
|
|
1069
|
+
Badge: () => Badge,
|
|
1070
|
+
Breadcrumbs: () => Breadcrumbs,
|
|
1071
|
+
Button: () => Button,
|
|
1072
|
+
Calendar: () => Calendar,
|
|
1073
|
+
Card: () => Card,
|
|
1074
|
+
Checkbox: () => Checkbox,
|
|
1075
|
+
CloseButton: () => CloseButton,
|
|
1076
|
+
Collapsible: () => Collapsible,
|
|
1077
|
+
ComboBox: () => ComboBox,
|
|
1078
|
+
ContextualHelp: () => ContextualHelp,
|
|
1079
|
+
DateField: () => DateField,
|
|
1080
|
+
DatePicker: () => DatePicker,
|
|
1081
|
+
Dialog: () => Dialog,
|
|
1082
|
+
Divider: () => Divider,
|
|
1083
|
+
Drawer: () => Drawer,
|
|
1084
|
+
Field: () => Field,
|
|
1085
|
+
Headline: () => Headline,
|
|
1086
|
+
HelpText: () => HelpText,
|
|
1087
|
+
IconButton: () => IconButton,
|
|
1088
|
+
Input: () => Input,
|
|
1089
|
+
Label: () => Label,
|
|
1090
|
+
Link: () => Link,
|
|
1091
|
+
List: () => List,
|
|
1092
|
+
ListBox: () => ListBox,
|
|
1093
|
+
Menu: () => Menu,
|
|
1094
|
+
Modal: () => Modal,
|
|
1095
|
+
MultiSelect: () => MultiSelect,
|
|
1096
|
+
NumberField: () => NumberField,
|
|
1097
|
+
Pagination: () => Pagination,
|
|
1098
|
+
Popover: () => Popover,
|
|
1099
|
+
ProgressCycle: () => ProgressCycle,
|
|
1100
|
+
Radio: () => Radio,
|
|
1101
|
+
SectionMessage: () => SectionMessage,
|
|
1102
|
+
Select: () => Select,
|
|
1103
|
+
Slider: () => Slider,
|
|
1104
|
+
Switch: () => Switch,
|
|
1105
|
+
Table: () => Table,
|
|
1106
|
+
Tabs: () => Tabs,
|
|
1107
|
+
Tag: () => Tag,
|
|
1108
|
+
Text: () => Text,
|
|
1109
|
+
TextArea: () => TextArea,
|
|
1110
|
+
Toast: () => Toast,
|
|
1111
|
+
Tooltip: () => Tooltip,
|
|
1112
|
+
Underlay: () => Underlay,
|
|
1113
|
+
XLoader: () => XLoader
|
|
1114
|
+
});
|
|
1353
1115
|
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1116
|
+
//#endregion
|
|
1117
|
+
//#region src/theme.ts
|
|
1118
|
+
const theme = {
|
|
1119
|
+
name: "rui",
|
|
1120
|
+
components: components_exports
|
|
1359
1121
|
};
|
|
1122
|
+
|
|
1123
|
+
//#endregion
|
|
1124
|
+
//#region src/index.ts
|
|
1125
|
+
var src_default = theme;
|
|
1126
|
+
|
|
1127
|
+
//#endregion
|
|
1128
|
+
export { src_default as default, theme };
|
|
1360
1129
|
//# sourceMappingURL=index.mjs.map
|