@vertz/theme-shadcn 0.2.23 → 0.2.25
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/base.d.ts +2 -1
- package/dist/base.js +4 -2
- package/dist/configs.js +1 -1
- package/dist/index.d.ts +331 -472
- package/dist/index.js +612 -984
- package/dist/shared/{chunk-gjsm05ga.js → chunk-f0wk9320.js} +4 -2
- package/dist/shared/{chunk-gzfp8m46.js → chunk-kmh677y0.js} +1 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5,461 +5,31 @@ import {
|
|
|
5
5
|
createBadge,
|
|
6
6
|
createButton,
|
|
7
7
|
textOpacity
|
|
8
|
-
} from "./shared/chunk-
|
|
8
|
+
} from "./shared/chunk-kmh677y0.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
function AlertTitle({ className, class: classProp, children }) {
|
|
34
|
-
const effectiveClass = className ?? classProp;
|
|
35
|
-
const el = document.createElement("h5");
|
|
36
|
-
el.className = [alertStyles.title, effectiveClass].filter(Boolean).join(" ");
|
|
37
|
-
for (const node of resolveChildren(children)) {
|
|
38
|
-
el.appendChild(node);
|
|
39
|
-
}
|
|
40
|
-
return el;
|
|
41
|
-
}
|
|
42
|
-
function AlertDescription({ className, class: classProp, children }) {
|
|
43
|
-
const effectiveClass = className ?? classProp;
|
|
44
|
-
const el = document.createElement("div");
|
|
45
|
-
el.className = [alertStyles.description, effectiveClass].filter(Boolean).join(" ");
|
|
46
|
-
for (const node of resolveChildren(children)) {
|
|
47
|
-
el.appendChild(node);
|
|
48
|
-
}
|
|
49
|
-
return el;
|
|
50
|
-
}
|
|
51
|
-
return { Alert, AlertTitle, AlertDescription };
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// src/components/avatar.ts
|
|
55
|
-
import { resolveChildren as resolveChildren2 } from "@vertz/ui";
|
|
56
|
-
function createAvatarComponents(avatarStyles) {
|
|
57
|
-
function Avatar({ className, class: classProp, children }) {
|
|
58
|
-
const effectiveClass = className ?? classProp;
|
|
59
|
-
const el = document.createElement("div");
|
|
60
|
-
el.className = [avatarStyles.root, effectiveClass].filter(Boolean).join(" ");
|
|
61
|
-
for (const node of resolveChildren2(children)) {
|
|
62
|
-
el.appendChild(node);
|
|
63
|
-
}
|
|
64
|
-
return el;
|
|
65
|
-
}
|
|
66
|
-
function AvatarImage({
|
|
67
|
-
src,
|
|
68
|
-
alt,
|
|
69
|
-
className,
|
|
70
|
-
class: classProp
|
|
71
|
-
}) {
|
|
72
|
-
const effectiveClass = className ?? classProp;
|
|
73
|
-
const el = document.createElement("img");
|
|
74
|
-
el.className = [avatarStyles.image, effectiveClass].filter(Boolean).join(" ");
|
|
75
|
-
el.src = src;
|
|
76
|
-
el.alt = alt;
|
|
77
|
-
return el;
|
|
78
|
-
}
|
|
79
|
-
function AvatarFallback({ className, class: classProp, children }) {
|
|
80
|
-
const effectiveClass = className ?? classProp;
|
|
81
|
-
const el = document.createElement("div");
|
|
82
|
-
el.className = [avatarStyles.fallback, effectiveClass].filter(Boolean).join(" ");
|
|
83
|
-
for (const node of resolveChildren2(children)) {
|
|
84
|
-
el.appendChild(node);
|
|
85
|
-
}
|
|
86
|
-
return el;
|
|
87
|
-
}
|
|
88
|
-
return { Avatar, AvatarImage, AvatarFallback };
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// src/components/badge.ts
|
|
92
|
-
import { resolveChildren as resolveChildren3 } from "@vertz/ui";
|
|
93
|
-
function createBadgeComponent(badgeStyles) {
|
|
94
|
-
const colorStyles = {
|
|
95
|
-
blue: { backgroundColor: "oklch(0.55 0.15 250)", color: "#fff" },
|
|
96
|
-
green: { backgroundColor: "oklch(0.55 0.15 155)", color: "#fff" },
|
|
97
|
-
yellow: { backgroundColor: "oklch(0.75 0.15 85)", color: "oklch(0.25 0.05 85)" }
|
|
98
|
-
};
|
|
99
|
-
return function Badge({
|
|
100
|
-
color,
|
|
101
|
-
className,
|
|
102
|
-
class: classProp,
|
|
103
|
-
children
|
|
104
|
-
}) {
|
|
105
|
-
const effectiveClass = className ?? classProp;
|
|
106
|
-
const el = document.createElement("span");
|
|
107
|
-
el.className = [badgeStyles({ color }), effectiveClass].filter(Boolean).join(" ");
|
|
108
|
-
const inlineStyle = color ? colorStyles[color] : undefined;
|
|
109
|
-
if (inlineStyle) {
|
|
110
|
-
Object.assign(el.style, inlineStyle);
|
|
111
|
-
}
|
|
112
|
-
for (const node of resolveChildren3(children)) {
|
|
113
|
-
el.appendChild(node);
|
|
114
|
-
}
|
|
115
|
-
return el;
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// src/components/breadcrumb.ts
|
|
120
|
-
function createBreadcrumbComponent(styles) {
|
|
121
|
-
return function Breadcrumb(props) {
|
|
122
|
-
const { items, separator = "/", className, class: classProp } = props;
|
|
123
|
-
const effectiveClass = className ?? classProp;
|
|
124
|
-
const nav = document.createElement("nav");
|
|
125
|
-
nav.setAttribute("aria-label", "Breadcrumb");
|
|
126
|
-
if (styles.nav)
|
|
127
|
-
nav.className = styles.nav;
|
|
128
|
-
if (effectiveClass) {
|
|
129
|
-
nav.className = [nav.className, effectiveClass].filter(Boolean).join(" ");
|
|
130
|
-
}
|
|
131
|
-
const ol = document.createElement("ol");
|
|
132
|
-
ol.className = styles.list;
|
|
133
|
-
for (let i = 0;i < items.length; i++) {
|
|
134
|
-
const item = items[i];
|
|
135
|
-
const li = document.createElement("li");
|
|
136
|
-
li.className = styles.item;
|
|
137
|
-
const isLast = i === items.length - 1;
|
|
138
|
-
if (isLast) {
|
|
139
|
-
const span = document.createElement("span");
|
|
140
|
-
span.setAttribute("aria-current", "page");
|
|
141
|
-
span.className = styles.page;
|
|
142
|
-
span.textContent = item.label;
|
|
143
|
-
li.appendChild(span);
|
|
144
|
-
} else {
|
|
145
|
-
if (item.href) {
|
|
146
|
-
const a = document.createElement("a");
|
|
147
|
-
a.href = item.href;
|
|
148
|
-
a.className = styles.link;
|
|
149
|
-
a.textContent = item.label;
|
|
150
|
-
li.appendChild(a);
|
|
151
|
-
} else {
|
|
152
|
-
const span = document.createElement("span");
|
|
153
|
-
span.className = styles.link;
|
|
154
|
-
span.textContent = item.label;
|
|
155
|
-
li.appendChild(span);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
ol.appendChild(li);
|
|
159
|
-
if (!isLast) {
|
|
160
|
-
const sepLi = document.createElement("li");
|
|
161
|
-
sepLi.setAttribute("role", "presentation");
|
|
162
|
-
sepLi.setAttribute("aria-hidden", "true");
|
|
163
|
-
sepLi.className = styles.separator;
|
|
164
|
-
sepLi.textContent = separator;
|
|
165
|
-
ol.appendChild(sepLi);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
nav.appendChild(ol);
|
|
169
|
-
return nav;
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// src/components/button.ts
|
|
174
|
-
import { resolveChildren as resolveChildren4 } from "@vertz/ui";
|
|
175
|
-
import { applyProps } from "@vertz/ui-primitives/utils";
|
|
176
|
-
function createButtonComponent(buttonStyles) {
|
|
177
|
-
return function Button({
|
|
178
|
-
intent,
|
|
179
|
-
size,
|
|
180
|
-
className,
|
|
181
|
-
class: classProp,
|
|
182
|
-
children,
|
|
183
|
-
disabled,
|
|
184
|
-
type,
|
|
185
|
-
...rest
|
|
186
|
-
}) {
|
|
187
|
-
const effectiveClass = className ?? classProp;
|
|
188
|
-
const el = document.createElement("button");
|
|
189
|
-
el.type = type ?? "button";
|
|
190
|
-
el.className = [buttonStyles({ intent, size }), effectiveClass].filter(Boolean).join(" ");
|
|
191
|
-
if (disabled)
|
|
192
|
-
el.disabled = true;
|
|
193
|
-
applyProps(el, rest);
|
|
194
|
-
for (const node of resolveChildren4(children)) {
|
|
195
|
-
el.appendChild(node);
|
|
196
|
-
}
|
|
197
|
-
return el;
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// src/components/card.ts
|
|
202
|
-
import { resolveChildren as resolveChildren5 } from "@vertz/ui";
|
|
203
|
-
function createCardComponents(cardStyles) {
|
|
204
|
-
function Card({ className, class: classProp, children }) {
|
|
205
|
-
const effectiveClass = className ?? classProp;
|
|
206
|
-
const el = document.createElement("div");
|
|
207
|
-
el.className = [cardStyles.root, effectiveClass].filter(Boolean).join(" ");
|
|
208
|
-
for (const node of resolveChildren5(children)) {
|
|
209
|
-
el.appendChild(node);
|
|
210
|
-
}
|
|
211
|
-
return el;
|
|
212
|
-
}
|
|
213
|
-
function CardHeader({ className, class: classProp, children }) {
|
|
214
|
-
const effectiveClass = className ?? classProp;
|
|
215
|
-
const el = document.createElement("div");
|
|
216
|
-
el.className = [cardStyles.header, effectiveClass].filter(Boolean).join(" ");
|
|
217
|
-
for (const node of resolveChildren5(children)) {
|
|
218
|
-
el.appendChild(node);
|
|
219
|
-
}
|
|
220
|
-
return el;
|
|
221
|
-
}
|
|
222
|
-
function CardTitle({ className, class: classProp, children }) {
|
|
223
|
-
const effectiveClass = className ?? classProp;
|
|
224
|
-
const el = document.createElement("h3");
|
|
225
|
-
el.className = [cardStyles.title, effectiveClass].filter(Boolean).join(" ");
|
|
226
|
-
for (const node of resolveChildren5(children)) {
|
|
227
|
-
el.appendChild(node);
|
|
228
|
-
}
|
|
229
|
-
return el;
|
|
230
|
-
}
|
|
231
|
-
function CardDescription({
|
|
232
|
-
className,
|
|
233
|
-
class: classProp,
|
|
234
|
-
children
|
|
235
|
-
}) {
|
|
236
|
-
const effectiveClass = className ?? classProp;
|
|
237
|
-
const el = document.createElement("p");
|
|
238
|
-
el.className = [cardStyles.description, effectiveClass].filter(Boolean).join(" ");
|
|
239
|
-
for (const node of resolveChildren5(children)) {
|
|
240
|
-
el.appendChild(node);
|
|
241
|
-
}
|
|
242
|
-
return el;
|
|
243
|
-
}
|
|
244
|
-
function CardContent({ className, class: classProp, children }) {
|
|
245
|
-
const effectiveClass = className ?? classProp;
|
|
246
|
-
const el = document.createElement("div");
|
|
247
|
-
el.className = [cardStyles.content, effectiveClass].filter(Boolean).join(" ");
|
|
248
|
-
for (const node of resolveChildren5(children)) {
|
|
249
|
-
el.appendChild(node);
|
|
250
|
-
}
|
|
251
|
-
return el;
|
|
252
|
-
}
|
|
253
|
-
function CardFooter({ className, class: classProp, children }) {
|
|
254
|
-
const effectiveClass = className ?? classProp;
|
|
255
|
-
const el = document.createElement("div");
|
|
256
|
-
el.className = [cardStyles.footer, effectiveClass].filter(Boolean).join(" ");
|
|
257
|
-
for (const node of resolveChildren5(children)) {
|
|
258
|
-
el.appendChild(node);
|
|
259
|
-
}
|
|
260
|
-
return el;
|
|
261
|
-
}
|
|
262
|
-
function CardAction({ className, class: classProp, children }) {
|
|
263
|
-
const effectiveClass = className ?? classProp;
|
|
264
|
-
const el = document.createElement("div");
|
|
265
|
-
el.className = [cardStyles.action, effectiveClass].filter(Boolean).join(" ");
|
|
266
|
-
for (const node of resolveChildren5(children)) {
|
|
267
|
-
el.appendChild(node);
|
|
268
|
-
}
|
|
269
|
-
return el;
|
|
270
|
-
}
|
|
271
|
-
return {
|
|
272
|
-
Card,
|
|
273
|
-
CardHeader,
|
|
274
|
-
CardTitle,
|
|
275
|
-
CardDescription,
|
|
276
|
-
CardContent,
|
|
277
|
-
CardFooter,
|
|
278
|
-
CardAction
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
// src/components/form-group.ts
|
|
283
|
-
import { resolveChildren as resolveChildren6 } from "@vertz/ui";
|
|
284
|
-
function createFormGroupComponents(formGroupStyles) {
|
|
285
|
-
function FormGroup({ className, class: classProp, children }) {
|
|
286
|
-
const effectiveClass = className ?? classProp;
|
|
287
|
-
const el = document.createElement("div");
|
|
288
|
-
el.className = [formGroupStyles.base, effectiveClass].filter(Boolean).join(" ");
|
|
289
|
-
for (const node of resolveChildren6(children)) {
|
|
290
|
-
el.appendChild(node);
|
|
291
|
-
}
|
|
292
|
-
return el;
|
|
293
|
-
}
|
|
294
|
-
function FormError({ className, class: classProp, children }) {
|
|
295
|
-
const effectiveClass = className ?? classProp;
|
|
296
|
-
const el = document.createElement("span");
|
|
297
|
-
el.className = [formGroupStyles.error, effectiveClass].filter(Boolean).join(" ");
|
|
298
|
-
for (const node of resolveChildren6(children)) {
|
|
299
|
-
el.appendChild(node);
|
|
300
|
-
}
|
|
301
|
-
return el;
|
|
302
|
-
}
|
|
303
|
-
return {
|
|
304
|
-
FormGroup,
|
|
305
|
-
FormError
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
// src/components/input.ts
|
|
310
|
-
import { applyProps as applyProps2 } from "@vertz/ui-primitives/utils";
|
|
311
|
-
function createInputComponent(inputStyles) {
|
|
312
|
-
return function Input({
|
|
313
|
-
className,
|
|
314
|
-
class: classProp,
|
|
315
|
-
name,
|
|
316
|
-
placeholder,
|
|
317
|
-
type,
|
|
318
|
-
disabled,
|
|
319
|
-
value,
|
|
320
|
-
...attrs
|
|
321
|
-
}) {
|
|
322
|
-
const effectiveClass = className ?? classProp;
|
|
323
|
-
const el = document.createElement("input");
|
|
324
|
-
el.className = [inputStyles.base, effectiveClass].filter(Boolean).join(" ");
|
|
325
|
-
if (name !== undefined)
|
|
326
|
-
el.name = name;
|
|
327
|
-
if (placeholder !== undefined)
|
|
328
|
-
el.placeholder = placeholder;
|
|
329
|
-
if (type !== undefined)
|
|
330
|
-
el.type = type;
|
|
331
|
-
if (disabled)
|
|
332
|
-
el.disabled = true;
|
|
333
|
-
if (value !== undefined)
|
|
334
|
-
el.value = value;
|
|
335
|
-
applyProps2(el, attrs);
|
|
336
|
-
return el;
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// src/components/label.ts
|
|
341
|
-
import { resolveChildren as resolveChildren7 } from "@vertz/ui";
|
|
342
|
-
function createLabelComponent(labelStyles) {
|
|
343
|
-
return function Label({
|
|
344
|
-
className,
|
|
345
|
-
class: classProp,
|
|
346
|
-
for: htmlFor,
|
|
347
|
-
children
|
|
348
|
-
}) {
|
|
349
|
-
const effectiveClass = className ?? classProp;
|
|
350
|
-
const el = document.createElement("label");
|
|
351
|
-
el.className = [labelStyles.base, effectiveClass].filter(Boolean).join(" ");
|
|
352
|
-
if (htmlFor !== undefined)
|
|
353
|
-
el.htmlFor = htmlFor;
|
|
354
|
-
for (const node of resolveChildren7(children)) {
|
|
355
|
-
el.appendChild(node);
|
|
356
|
-
}
|
|
357
|
-
return el;
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
// src/components/pagination.ts
|
|
362
|
-
function createPaginationComponent(styles) {
|
|
363
|
-
return function Pagination(props) {
|
|
364
|
-
const {
|
|
365
|
-
currentPage,
|
|
366
|
-
totalPages,
|
|
367
|
-
onPageChange,
|
|
368
|
-
siblingCount = 1,
|
|
369
|
-
className,
|
|
370
|
-
class: classProp
|
|
371
|
-
} = props;
|
|
372
|
-
const effectiveClass = className ?? classProp;
|
|
373
|
-
const nav = document.createElement("nav");
|
|
374
|
-
nav.setAttribute("aria-label", "Pagination");
|
|
375
|
-
if (styles.nav)
|
|
376
|
-
nav.classList.add(styles.nav);
|
|
377
|
-
if (effectiveClass)
|
|
378
|
-
nav.classList.add(effectiveClass);
|
|
379
|
-
const ul = document.createElement("ul");
|
|
380
|
-
ul.classList.add(styles.list);
|
|
381
|
-
const prevLi = document.createElement("li");
|
|
382
|
-
prevLi.classList.add(styles.item);
|
|
383
|
-
const prevBtn = document.createElement("button");
|
|
384
|
-
prevBtn.setAttribute("type", "button");
|
|
385
|
-
prevBtn.classList.add(styles.navButton);
|
|
386
|
-
prevBtn.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg><span>Previous</span>';
|
|
387
|
-
prevBtn.style.paddingLeft = "0.375rem";
|
|
388
|
-
prevBtn.style.paddingRight = "0.625rem";
|
|
389
|
-
prevBtn.setAttribute("aria-label", "Previous page");
|
|
390
|
-
if (currentPage <= 1) {
|
|
391
|
-
prevBtn.disabled = true;
|
|
392
|
-
} else {
|
|
393
|
-
prevBtn.addEventListener("click", () => onPageChange(currentPage - 1));
|
|
394
|
-
}
|
|
395
|
-
prevLi.appendChild(prevBtn);
|
|
396
|
-
ul.appendChild(prevLi);
|
|
397
|
-
const range = generatePaginationRange(currentPage, totalPages, siblingCount);
|
|
398
|
-
for (const page of range) {
|
|
399
|
-
const li = document.createElement("li");
|
|
400
|
-
li.classList.add(styles.item);
|
|
401
|
-
if (page === "...") {
|
|
402
|
-
const span = document.createElement("span");
|
|
403
|
-
span.setAttribute("aria-hidden", "true");
|
|
404
|
-
span.classList.add(styles.ellipsis);
|
|
405
|
-
span.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>';
|
|
406
|
-
li.appendChild(span);
|
|
407
|
-
} else {
|
|
408
|
-
const btn = document.createElement("button");
|
|
409
|
-
btn.setAttribute("type", "button");
|
|
410
|
-
btn.textContent = String(page);
|
|
411
|
-
if (page === currentPage) {
|
|
412
|
-
btn.classList.add(styles.linkActive);
|
|
413
|
-
btn.setAttribute("aria-current", "page");
|
|
414
|
-
} else {
|
|
415
|
-
btn.classList.add(styles.link);
|
|
416
|
-
btn.addEventListener("click", () => onPageChange(page));
|
|
417
|
-
}
|
|
418
|
-
li.appendChild(btn);
|
|
419
|
-
}
|
|
420
|
-
ul.appendChild(li);
|
|
421
|
-
}
|
|
422
|
-
const nextLi = document.createElement("li");
|
|
423
|
-
nextLi.classList.add(styles.item);
|
|
424
|
-
const nextBtn = document.createElement("button");
|
|
425
|
-
nextBtn.setAttribute("type", "button");
|
|
426
|
-
nextBtn.classList.add(styles.navButton);
|
|
427
|
-
nextBtn.innerHTML = '<span>Next</span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg>';
|
|
428
|
-
nextBtn.style.paddingLeft = "0.625rem";
|
|
429
|
-
nextBtn.style.paddingRight = "0.375rem";
|
|
430
|
-
nextBtn.setAttribute("aria-label", "Next page");
|
|
431
|
-
if (currentPage >= totalPages) {
|
|
432
|
-
nextBtn.disabled = true;
|
|
433
|
-
} else {
|
|
434
|
-
nextBtn.addEventListener("click", () => onPageChange(currentPage + 1));
|
|
435
|
-
}
|
|
436
|
-
nextLi.appendChild(nextBtn);
|
|
437
|
-
ul.appendChild(nextLi);
|
|
438
|
-
nav.appendChild(ul);
|
|
439
|
-
return nav;
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
function generatePaginationRange(current, total, siblings) {
|
|
443
|
-
const range = [];
|
|
444
|
-
const left = Math.max(2, current - siblings);
|
|
445
|
-
const right = Math.min(total - 1, current + siblings);
|
|
446
|
-
range.push(1);
|
|
447
|
-
if (left > 2) {
|
|
448
|
-
range.push("...");
|
|
449
|
-
}
|
|
450
|
-
for (let i = left;i <= right; i++) {
|
|
451
|
-
if (i !== 1 && i !== total) {
|
|
452
|
-
range.push(i);
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
if (right < total - 1) {
|
|
456
|
-
range.push("...");
|
|
457
|
-
}
|
|
458
|
-
if (total > 1) {
|
|
459
|
-
range.push(total);
|
|
460
|
-
}
|
|
461
|
-
return range;
|
|
462
|
-
}
|
|
10
|
+
RADIUS_VALUES,
|
|
11
|
+
configureThemeBase,
|
|
12
|
+
palettes
|
|
13
|
+
} from "./shared/chunk-f0wk9320.js";
|
|
14
|
+
// src/configure.ts
|
|
15
|
+
import {
|
|
16
|
+
ComposedAlert,
|
|
17
|
+
ComposedAvatar,
|
|
18
|
+
ComposedBadge,
|
|
19
|
+
ComposedBreadcrumb,
|
|
20
|
+
ComposedButton,
|
|
21
|
+
ComposedCard,
|
|
22
|
+
ComposedEmptyState,
|
|
23
|
+
ComposedFormGroup,
|
|
24
|
+
ComposedInput,
|
|
25
|
+
ComposedLabel,
|
|
26
|
+
ComposedPagination,
|
|
27
|
+
ComposedSeparator,
|
|
28
|
+
ComposedSkeleton,
|
|
29
|
+
ComposedTable,
|
|
30
|
+
ComposedTextarea,
|
|
31
|
+
withStyles as withStyles19
|
|
32
|
+
} from "@vertz/ui-primitives";
|
|
463
33
|
|
|
464
34
|
// src/components/primitives/accordion.ts
|
|
465
35
|
import { ComposedAccordion, withStyles } from "@vertz/ui-primitives";
|
|
@@ -479,25 +49,10 @@ function createThemedAccordion(styles) {
|
|
|
479
49
|
});
|
|
480
50
|
}
|
|
481
51
|
|
|
482
|
-
// src/components/primitives/alert-dialog.ts
|
|
483
|
-
import { ComposedAlertDialog, withStyles as withStyles2 } from "@vertz/ui-primitives";
|
|
484
|
-
function createThemedAlertDialog(styles) {
|
|
485
|
-
return withStyles2(ComposedAlertDialog, {
|
|
486
|
-
overlay: styles.overlay,
|
|
487
|
-
content: styles.panel,
|
|
488
|
-
cancel: styles.cancel,
|
|
489
|
-
action: styles.action,
|
|
490
|
-
title: styles.title,
|
|
491
|
-
description: styles.description,
|
|
492
|
-
footer: styles.footer,
|
|
493
|
-
header: ""
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
|
|
497
52
|
// src/components/primitives/calendar.ts
|
|
498
|
-
import { ComposedCalendar, withStyles as
|
|
53
|
+
import { ComposedCalendar, withStyles as withStyles2 } from "@vertz/ui-primitives";
|
|
499
54
|
function createThemedCalendar(styles) {
|
|
500
|
-
const StyledCalendar =
|
|
55
|
+
const StyledCalendar = withStyles2(ComposedCalendar, {
|
|
501
56
|
root: styles.root,
|
|
502
57
|
header: styles.header,
|
|
503
58
|
title: styles.title,
|
|
@@ -515,9 +70,9 @@ function createThemedCalendar(styles) {
|
|
|
515
70
|
}
|
|
516
71
|
|
|
517
72
|
// src/components/primitives/carousel.ts
|
|
518
|
-
import { ComposedCarousel, withStyles as
|
|
73
|
+
import { ComposedCarousel, withStyles as withStyles3 } from "@vertz/ui-primitives";
|
|
519
74
|
function createThemedCarousel(styles) {
|
|
520
|
-
const StyledCarousel =
|
|
75
|
+
const StyledCarousel = withStyles3(ComposedCarousel, {
|
|
521
76
|
root: styles.root,
|
|
522
77
|
viewport: styles.viewport,
|
|
523
78
|
slide: styles.slide,
|
|
@@ -547,9 +102,9 @@ function createThemedCarousel(styles) {
|
|
|
547
102
|
}
|
|
548
103
|
|
|
549
104
|
// src/components/primitives/checkbox.ts
|
|
550
|
-
import { ComposedCheckbox, withStyles as
|
|
105
|
+
import { ComposedCheckbox, withStyles as withStyles4 } from "@vertz/ui-primitives";
|
|
551
106
|
function createThemedCheckbox(styles) {
|
|
552
|
-
const StyledCheckbox =
|
|
107
|
+
const StyledCheckbox = withStyles4(ComposedCheckbox, {
|
|
553
108
|
root: styles.root,
|
|
554
109
|
indicator: styles.indicator
|
|
555
110
|
});
|
|
@@ -584,9 +139,9 @@ function createThemedCollapsible(styles) {
|
|
|
584
139
|
}
|
|
585
140
|
|
|
586
141
|
// src/components/primitives/command.tsx
|
|
587
|
-
import { ComposedCommand, withStyles as
|
|
142
|
+
import { ComposedCommand, withStyles as withStyles5 } from "@vertz/ui-primitives";
|
|
588
143
|
function createThemedCommand(styles) {
|
|
589
|
-
const Styled =
|
|
144
|
+
const Styled = withStyles5(ComposedCommand, {
|
|
590
145
|
root: styles.root,
|
|
591
146
|
input: styles.input,
|
|
592
147
|
list: styles.list,
|
|
@@ -622,9 +177,9 @@ function createThemedCommand(styles) {
|
|
|
622
177
|
}
|
|
623
178
|
|
|
624
179
|
// src/components/primitives/context-menu.ts
|
|
625
|
-
import { ComposedContextMenu, withStyles as
|
|
180
|
+
import { ComposedContextMenu, withStyles as withStyles6 } from "@vertz/ui-primitives";
|
|
626
181
|
function createThemedContextMenu(styles) {
|
|
627
|
-
const Styled =
|
|
182
|
+
const Styled = withStyles6(ComposedContextMenu, {
|
|
628
183
|
content: styles.content,
|
|
629
184
|
item: styles.item,
|
|
630
185
|
group: styles.group,
|
|
@@ -688,22 +243,30 @@ function createThemedDatePicker(styles, calendarClasses) {
|
|
|
688
243
|
}
|
|
689
244
|
|
|
690
245
|
// src/components/primitives/dialog.ts
|
|
691
|
-
import {
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
246
|
+
import {
|
|
247
|
+
StackDialogBody,
|
|
248
|
+
StackDialogCancel,
|
|
249
|
+
StackDialogClose,
|
|
250
|
+
StackDialogDescription,
|
|
251
|
+
StackDialogFooter,
|
|
252
|
+
StackDialogHeader,
|
|
253
|
+
StackDialogTitle
|
|
254
|
+
} from "@vertz/ui-primitives";
|
|
255
|
+
function createThemedDialog() {
|
|
256
|
+
return {
|
|
257
|
+
Header: StackDialogHeader,
|
|
258
|
+
Title: StackDialogTitle,
|
|
259
|
+
Description: StackDialogDescription,
|
|
260
|
+
Footer: StackDialogFooter,
|
|
261
|
+
Body: StackDialogBody,
|
|
262
|
+
Close: StackDialogClose,
|
|
263
|
+
Cancel: StackDialogCancel
|
|
264
|
+
};
|
|
702
265
|
}
|
|
703
266
|
|
|
704
267
|
// src/components/primitives/drawer.tsx
|
|
705
268
|
import { __discardMountFrame, __element, __enterChildren, __exitChildren, __flushMountFrame, __insert, __pushMountFrame } from "@vertz/ui/internals";
|
|
706
|
-
import { resolveChildren
|
|
269
|
+
import { resolveChildren } from "@vertz/ui";
|
|
707
270
|
import { ComposedSheet } from "@vertz/ui-primitives";
|
|
708
271
|
var PANEL_CLASS_MAP = {
|
|
709
272
|
left: "panelLeft",
|
|
@@ -732,7 +295,7 @@ function createThemedDrawer(styles) {
|
|
|
732
295
|
}, DrawerHeader = function({ children, className: cls, class: classProp }) {
|
|
733
296
|
const effectiveCls = cls ?? classProp;
|
|
734
297
|
const combined = [styles.header, effectiveCls].filter(Boolean).join(" ");
|
|
735
|
-
const resolved =
|
|
298
|
+
const resolved = resolveChildren(children);
|
|
736
299
|
return (() => {
|
|
737
300
|
const __el0 = __element("div");
|
|
738
301
|
__el0.setAttribute("data-slot", "drawer-header");
|
|
@@ -749,7 +312,7 @@ function createThemedDrawer(styles) {
|
|
|
749
312
|
}, DrawerFooter = function({ children, className: cls, class: classProp }) {
|
|
750
313
|
const effectiveCls = cls ?? classProp;
|
|
751
314
|
const combined = [styles.footer, effectiveCls].filter(Boolean).join(" ");
|
|
752
|
-
const resolved =
|
|
315
|
+
const resolved = resolveChildren(children);
|
|
753
316
|
return (() => {
|
|
754
317
|
const __el1 = __element("div");
|
|
755
318
|
__el1.setAttribute("data-slot", "drawer-footer");
|
|
@@ -795,9 +358,9 @@ function createThemedDrawer(styles) {
|
|
|
795
358
|
}
|
|
796
359
|
|
|
797
360
|
// src/components/primitives/dropdown-menu.ts
|
|
798
|
-
import { ComposedDropdownMenu, withStyles as
|
|
361
|
+
import { ComposedDropdownMenu, withStyles as withStyles7 } from "@vertz/ui-primitives";
|
|
799
362
|
function createThemedDropdownMenu(styles) {
|
|
800
|
-
const Styled =
|
|
363
|
+
const Styled = withStyles7(ComposedDropdownMenu, {
|
|
801
364
|
content: styles.content,
|
|
802
365
|
item: styles.item,
|
|
803
366
|
group: styles.group,
|
|
@@ -847,10 +410,41 @@ function createThemedHoverCard(styles) {
|
|
|
847
410
|
});
|
|
848
411
|
}
|
|
849
412
|
|
|
413
|
+
// src/components/primitives/list.ts
|
|
414
|
+
import { ComposedList, withStyles as withStyles8 } from "@vertz/ui-primitives";
|
|
415
|
+
function createThemedList(styles) {
|
|
416
|
+
const StyledList = withStyles8(ComposedList, {
|
|
417
|
+
root: styles.root,
|
|
418
|
+
item: styles.item,
|
|
419
|
+
dragHandle: styles.dragHandle
|
|
420
|
+
});
|
|
421
|
+
function ListRoot({
|
|
422
|
+
children,
|
|
423
|
+
className,
|
|
424
|
+
class: classProp,
|
|
425
|
+
animate,
|
|
426
|
+
sortable,
|
|
427
|
+
onReorder
|
|
428
|
+
}) {
|
|
429
|
+
return StyledList({
|
|
430
|
+
children,
|
|
431
|
+
className: className ?? classProp,
|
|
432
|
+
animate,
|
|
433
|
+
sortable,
|
|
434
|
+
onReorder
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
return Object.assign(ListRoot, {
|
|
438
|
+
Item: ComposedList.Item,
|
|
439
|
+
DragHandle: ComposedList.DragHandle,
|
|
440
|
+
reorder: ComposedList.reorder
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
|
|
850
444
|
// src/components/primitives/menubar.ts
|
|
851
|
-
import { ComposedMenubar, withStyles as
|
|
445
|
+
import { ComposedMenubar, withStyles as withStyles9 } from "@vertz/ui-primitives";
|
|
852
446
|
function createThemedMenubar(styles) {
|
|
853
|
-
const Styled =
|
|
447
|
+
const Styled = withStyles9(ComposedMenubar, {
|
|
854
448
|
root: styles.root,
|
|
855
449
|
trigger: styles.trigger,
|
|
856
450
|
content: styles.content,
|
|
@@ -874,9 +468,9 @@ function createThemedMenubar(styles) {
|
|
|
874
468
|
}
|
|
875
469
|
|
|
876
470
|
// src/components/primitives/navigation-menu.tsx
|
|
877
|
-
import { ComposedNavigationMenu, withStyles as
|
|
471
|
+
import { ComposedNavigationMenu, withStyles as withStyles10 } from "@vertz/ui-primitives";
|
|
878
472
|
function createThemedNavigationMenu(styles) {
|
|
879
|
-
const Styled =
|
|
473
|
+
const Styled = withStyles10(ComposedNavigationMenu, {
|
|
880
474
|
root: styles.root,
|
|
881
475
|
list: styles.list,
|
|
882
476
|
trigger: styles.trigger,
|
|
@@ -908,9 +502,9 @@ function createThemedNavigationMenu(styles) {
|
|
|
908
502
|
}
|
|
909
503
|
|
|
910
504
|
// src/components/primitives/popover.ts
|
|
911
|
-
import { ComposedPopover, withStyles as
|
|
505
|
+
import { ComposedPopover, withStyles as withStyles11 } from "@vertz/ui-primitives";
|
|
912
506
|
function createThemedPopover(styles) {
|
|
913
|
-
const StyledPopover =
|
|
507
|
+
const StyledPopover = withStyles11(ComposedPopover, {
|
|
914
508
|
content: styles.content
|
|
915
509
|
});
|
|
916
510
|
function PopoverRoot({ children, onOpenChange }) {
|
|
@@ -934,9 +528,9 @@ function createThemedProgress(styles) {
|
|
|
934
528
|
}
|
|
935
529
|
|
|
936
530
|
// src/components/primitives/radio-group.ts
|
|
937
|
-
import { ComposedRadioGroup, withStyles as
|
|
531
|
+
import { ComposedRadioGroup, withStyles as withStyles12 } from "@vertz/ui-primitives";
|
|
938
532
|
function createThemedRadioGroup(styles) {
|
|
939
|
-
const StyledRadioGroup =
|
|
533
|
+
const StyledRadioGroup = withStyles12(ComposedRadioGroup, {
|
|
940
534
|
root: styles.root,
|
|
941
535
|
item: styles.item,
|
|
942
536
|
indicator: styles.indicator,
|
|
@@ -994,9 +588,9 @@ function createThemedScrollArea(styles) {
|
|
|
994
588
|
}
|
|
995
589
|
|
|
996
590
|
// src/components/primitives/select.ts
|
|
997
|
-
import { ComposedSelect, withStyles as
|
|
591
|
+
import { ComposedSelect, withStyles as withStyles13 } from "@vertz/ui-primitives";
|
|
998
592
|
function createThemedSelect(styles) {
|
|
999
|
-
const StyledSelect =
|
|
593
|
+
const StyledSelect = withStyles13(ComposedSelect, {
|
|
1000
594
|
trigger: styles.trigger,
|
|
1001
595
|
content: styles.content,
|
|
1002
596
|
item: styles.item,
|
|
@@ -1078,13 +672,13 @@ function createThemedSlider(styles) {
|
|
|
1078
672
|
}
|
|
1079
673
|
|
|
1080
674
|
// src/components/primitives/switch.ts
|
|
1081
|
-
import { ComposedSwitch, withStyles as
|
|
675
|
+
import { ComposedSwitch, withStyles as withStyles14 } from "@vertz/ui-primitives";
|
|
1082
676
|
function createThemedSwitch(styles) {
|
|
1083
|
-
const DefaultSwitch =
|
|
677
|
+
const DefaultSwitch = withStyles14(ComposedSwitch, {
|
|
1084
678
|
root: styles.root,
|
|
1085
679
|
thumb: styles.thumb
|
|
1086
680
|
});
|
|
1087
|
-
const SmSwitch =
|
|
681
|
+
const SmSwitch = withStyles14(ComposedSwitch, {
|
|
1088
682
|
root: styles.rootSm,
|
|
1089
683
|
thumb: styles.thumbSm
|
|
1090
684
|
});
|
|
@@ -1095,14 +689,14 @@ function createThemedSwitch(styles) {
|
|
|
1095
689
|
}
|
|
1096
690
|
|
|
1097
691
|
// src/components/primitives/tabs.ts
|
|
1098
|
-
import { ComposedTabs, withStyles as
|
|
692
|
+
import { ComposedTabs, withStyles as withStyles15 } from "@vertz/ui-primitives";
|
|
1099
693
|
function createThemedTabs(styles) {
|
|
1100
|
-
const DefaultTabs =
|
|
694
|
+
const DefaultTabs = withStyles15(ComposedTabs, {
|
|
1101
695
|
list: styles.list,
|
|
1102
696
|
trigger: styles.trigger,
|
|
1103
697
|
panel: styles.panel
|
|
1104
698
|
});
|
|
1105
|
-
const LineTabs =
|
|
699
|
+
const LineTabs = withStyles15(ComposedTabs, {
|
|
1106
700
|
list: styles.listLine,
|
|
1107
701
|
trigger: styles.triggerLine,
|
|
1108
702
|
panel: styles.panel
|
|
@@ -1135,9 +729,9 @@ function createThemedToast(styles) {
|
|
|
1135
729
|
}
|
|
1136
730
|
|
|
1137
731
|
// src/components/primitives/toggle.ts
|
|
1138
|
-
import { ComposedToggle, withStyles as
|
|
732
|
+
import { ComposedToggle, withStyles as withStyles16 } from "@vertz/ui-primitives";
|
|
1139
733
|
function createThemedToggle(styles) {
|
|
1140
|
-
const StyledToggle =
|
|
734
|
+
const StyledToggle = withStyles16(ComposedToggle, {
|
|
1141
735
|
root: styles.root
|
|
1142
736
|
});
|
|
1143
737
|
return function ToggleRoot(props) {
|
|
@@ -1146,9 +740,9 @@ function createThemedToggle(styles) {
|
|
|
1146
740
|
}
|
|
1147
741
|
|
|
1148
742
|
// src/components/primitives/toggle-group.tsx
|
|
1149
|
-
import { ComposedToggleGroup, withStyles as
|
|
743
|
+
import { ComposedToggleGroup, withStyles as withStyles17 } from "@vertz/ui-primitives";
|
|
1150
744
|
function createThemedToggleGroup(styles) {
|
|
1151
|
-
const StyledToggleGroup =
|
|
745
|
+
const StyledToggleGroup = withStyles17(ComposedToggleGroup, {
|
|
1152
746
|
root: styles.root,
|
|
1153
747
|
item: styles.item
|
|
1154
748
|
});
|
|
@@ -1161,9 +755,9 @@ function createThemedToggleGroup(styles) {
|
|
|
1161
755
|
}
|
|
1162
756
|
|
|
1163
757
|
// src/components/primitives/tooltip.ts
|
|
1164
|
-
import { ComposedTooltip, withStyles as
|
|
758
|
+
import { ComposedTooltip, withStyles as withStyles18 } from "@vertz/ui-primitives";
|
|
1165
759
|
function createThemedTooltip(styles) {
|
|
1166
|
-
const StyledTooltip =
|
|
760
|
+
const StyledTooltip = withStyles18(ComposedTooltip, {
|
|
1167
761
|
content: styles.content
|
|
1168
762
|
});
|
|
1169
763
|
function TooltipRoot({ children, delay }) {
|
|
@@ -1175,185 +769,6 @@ function createThemedTooltip(styles) {
|
|
|
1175
769
|
});
|
|
1176
770
|
}
|
|
1177
771
|
|
|
1178
|
-
// src/components/separator.ts
|
|
1179
|
-
function createSeparatorComponent(separatorStyles) {
|
|
1180
|
-
return function Separator({
|
|
1181
|
-
orientation = "horizontal",
|
|
1182
|
-
className,
|
|
1183
|
-
class: classProp
|
|
1184
|
-
}) {
|
|
1185
|
-
const effectiveClass = className ?? classProp;
|
|
1186
|
-
const orientationClass = orientation === "vertical" ? separatorStyles.vertical : separatorStyles.horizontal;
|
|
1187
|
-
const el = document.createElement("hr");
|
|
1188
|
-
el.className = [separatorStyles.base, orientationClass, effectiveClass].filter(Boolean).join(" ");
|
|
1189
|
-
el.setAttribute("role", "separator");
|
|
1190
|
-
el.setAttribute("aria-orientation", orientation);
|
|
1191
|
-
return el;
|
|
1192
|
-
};
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
// src/components/skeleton.ts
|
|
1196
|
-
function createSkeletonComponents(skeletonStyles) {
|
|
1197
|
-
function Skeleton({
|
|
1198
|
-
className,
|
|
1199
|
-
class: classProp,
|
|
1200
|
-
width,
|
|
1201
|
-
height
|
|
1202
|
-
} = {}) {
|
|
1203
|
-
const effectiveClass = className ?? classProp;
|
|
1204
|
-
const el = document.createElement("div");
|
|
1205
|
-
el.className = [skeletonStyles.base, effectiveClass].filter(Boolean).join(" ");
|
|
1206
|
-
el.setAttribute("aria-hidden", "true");
|
|
1207
|
-
if (width)
|
|
1208
|
-
el.style.width = width;
|
|
1209
|
-
if (height)
|
|
1210
|
-
el.style.height = height;
|
|
1211
|
-
return el;
|
|
1212
|
-
}
|
|
1213
|
-
return { Skeleton };
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
// src/components/table.ts
|
|
1217
|
-
import { resolveChildren as resolveChildren9 } from "@vertz/ui";
|
|
1218
|
-
function createTableComponents(tableStyles) {
|
|
1219
|
-
function Table({ className, class: classProp, children }) {
|
|
1220
|
-
const effectiveClass = className ?? classProp;
|
|
1221
|
-
const wrapper = document.createElement("div");
|
|
1222
|
-
wrapper.style.position = "relative";
|
|
1223
|
-
wrapper.style.width = "100%";
|
|
1224
|
-
wrapper.style.overflowX = "auto";
|
|
1225
|
-
const table = document.createElement("table");
|
|
1226
|
-
table.style.borderCollapse = "collapse";
|
|
1227
|
-
table.className = [tableStyles.root, effectiveClass].filter(Boolean).join(" ");
|
|
1228
|
-
for (const node of resolveChildren9(children)) {
|
|
1229
|
-
table.appendChild(node);
|
|
1230
|
-
}
|
|
1231
|
-
wrapper.appendChild(table);
|
|
1232
|
-
return wrapper;
|
|
1233
|
-
}
|
|
1234
|
-
function TableHeader({
|
|
1235
|
-
className,
|
|
1236
|
-
class: classProp,
|
|
1237
|
-
children
|
|
1238
|
-
}) {
|
|
1239
|
-
const effectiveClass = className ?? classProp;
|
|
1240
|
-
const el = document.createElement("thead");
|
|
1241
|
-
el.className = [tableStyles.header, effectiveClass].filter(Boolean).join(" ");
|
|
1242
|
-
for (const node of resolveChildren9(children)) {
|
|
1243
|
-
el.appendChild(node);
|
|
1244
|
-
}
|
|
1245
|
-
return el;
|
|
1246
|
-
}
|
|
1247
|
-
function TableBody({
|
|
1248
|
-
className,
|
|
1249
|
-
class: classProp,
|
|
1250
|
-
children
|
|
1251
|
-
}) {
|
|
1252
|
-
const effectiveClass = className ?? classProp;
|
|
1253
|
-
const el = document.createElement("tbody");
|
|
1254
|
-
el.className = [tableStyles.body, effectiveClass].filter(Boolean).join(" ");
|
|
1255
|
-
for (const node of resolveChildren9(children)) {
|
|
1256
|
-
el.appendChild(node);
|
|
1257
|
-
}
|
|
1258
|
-
return el;
|
|
1259
|
-
}
|
|
1260
|
-
function TableRow({ className, class: classProp, children }) {
|
|
1261
|
-
const effectiveClass = className ?? classProp;
|
|
1262
|
-
const el = document.createElement("tr");
|
|
1263
|
-
el.className = [tableStyles.row, effectiveClass].filter(Boolean).join(" ");
|
|
1264
|
-
for (const node of resolveChildren9(children)) {
|
|
1265
|
-
el.appendChild(node);
|
|
1266
|
-
}
|
|
1267
|
-
return el;
|
|
1268
|
-
}
|
|
1269
|
-
function TableHead({ className, class: classProp, children }) {
|
|
1270
|
-
const effectiveClass = className ?? classProp;
|
|
1271
|
-
const el = document.createElement("th");
|
|
1272
|
-
el.scope = "col";
|
|
1273
|
-
el.className = [tableStyles.head, effectiveClass].filter(Boolean).join(" ");
|
|
1274
|
-
for (const node of resolveChildren9(children)) {
|
|
1275
|
-
el.appendChild(node);
|
|
1276
|
-
}
|
|
1277
|
-
return el;
|
|
1278
|
-
}
|
|
1279
|
-
function TableCell({ className, class: classProp, children }) {
|
|
1280
|
-
const effectiveClass = className ?? classProp;
|
|
1281
|
-
const el = document.createElement("td");
|
|
1282
|
-
el.className = [tableStyles.cell, effectiveClass].filter(Boolean).join(" ");
|
|
1283
|
-
for (const node of resolveChildren9(children)) {
|
|
1284
|
-
el.appendChild(node);
|
|
1285
|
-
}
|
|
1286
|
-
return el;
|
|
1287
|
-
}
|
|
1288
|
-
function TableCaption({
|
|
1289
|
-
className,
|
|
1290
|
-
class: classProp,
|
|
1291
|
-
children
|
|
1292
|
-
}) {
|
|
1293
|
-
const effectiveClass = className ?? classProp;
|
|
1294
|
-
const el = document.createElement("caption");
|
|
1295
|
-
el.className = [tableStyles.caption, effectiveClass].filter(Boolean).join(" ");
|
|
1296
|
-
for (const node of resolveChildren9(children)) {
|
|
1297
|
-
el.appendChild(node);
|
|
1298
|
-
}
|
|
1299
|
-
return el;
|
|
1300
|
-
}
|
|
1301
|
-
function TableFooter({
|
|
1302
|
-
className,
|
|
1303
|
-
class: classProp,
|
|
1304
|
-
children
|
|
1305
|
-
}) {
|
|
1306
|
-
const effectiveClass = className ?? classProp;
|
|
1307
|
-
const el = document.createElement("tfoot");
|
|
1308
|
-
el.className = [tableStyles.footer, effectiveClass].filter(Boolean).join(" ");
|
|
1309
|
-
for (const node of resolveChildren9(children)) {
|
|
1310
|
-
el.appendChild(node);
|
|
1311
|
-
}
|
|
1312
|
-
return el;
|
|
1313
|
-
}
|
|
1314
|
-
return {
|
|
1315
|
-
Table,
|
|
1316
|
-
TableHeader,
|
|
1317
|
-
TableBody,
|
|
1318
|
-
TableRow,
|
|
1319
|
-
TableHead,
|
|
1320
|
-
TableCell,
|
|
1321
|
-
TableCaption,
|
|
1322
|
-
TableFooter
|
|
1323
|
-
};
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
// src/components/textarea.ts
|
|
1327
|
-
import { applyProps as applyProps3 } from "@vertz/ui-primitives/utils";
|
|
1328
|
-
function createTextareaComponent(textareaStyles) {
|
|
1329
|
-
return function Textarea({
|
|
1330
|
-
className,
|
|
1331
|
-
class: classProp,
|
|
1332
|
-
name,
|
|
1333
|
-
placeholder,
|
|
1334
|
-
disabled,
|
|
1335
|
-
value,
|
|
1336
|
-
rows,
|
|
1337
|
-
...attrs
|
|
1338
|
-
}) {
|
|
1339
|
-
const effectiveClass = className ?? classProp;
|
|
1340
|
-
const el = document.createElement("textarea");
|
|
1341
|
-
el.className = [textareaStyles.base, effectiveClass].filter(Boolean).join(" ");
|
|
1342
|
-
if (name !== undefined)
|
|
1343
|
-
el.name = name;
|
|
1344
|
-
if (placeholder !== undefined)
|
|
1345
|
-
el.placeholder = placeholder;
|
|
1346
|
-
if (disabled)
|
|
1347
|
-
el.disabled = true;
|
|
1348
|
-
if (value !== undefined)
|
|
1349
|
-
el.value = value;
|
|
1350
|
-
if (rows !== undefined)
|
|
1351
|
-
el.rows = rows;
|
|
1352
|
-
applyProps3(el, attrs);
|
|
1353
|
-
return el;
|
|
1354
|
-
};
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
772
|
// src/styles/accordion.ts
|
|
1358
773
|
import { css, keyframes } from "@vertz/ui";
|
|
1359
774
|
var accordionDown = keyframes("vz-accordion-down", {
|
|
@@ -1375,10 +790,13 @@ function createAccordionStyles() {
|
|
|
1375
790
|
"px:2",
|
|
1376
791
|
"text:sm",
|
|
1377
792
|
"font:medium",
|
|
793
|
+
"text:foreground",
|
|
1378
794
|
"cursor:pointer",
|
|
795
|
+
"bg:transparent",
|
|
1379
796
|
{
|
|
1380
797
|
"&": {
|
|
1381
|
-
|
|
798
|
+
border: "none",
|
|
799
|
+
"border-radius": "calc(var(--radius) * 1.33)",
|
|
1382
800
|
"padding-top": "0.625rem",
|
|
1383
801
|
"padding-bottom": "0.625rem"
|
|
1384
802
|
},
|
|
@@ -1388,8 +806,11 @@ function createAccordionStyles() {
|
|
|
1388
806
|
accordionContent: [
|
|
1389
807
|
"overflow-hidden",
|
|
1390
808
|
"text:sm",
|
|
809
|
+
"text:muted-foreground",
|
|
1391
810
|
{
|
|
1392
|
-
'&[data-state="open"]': [
|
|
811
|
+
'&[data-state="open"]:not([data-initial])': [
|
|
812
|
+
animationDecl(`${accordionDown} 200ms ease-out forwards`)
|
|
813
|
+
]
|
|
1393
814
|
},
|
|
1394
815
|
{
|
|
1395
816
|
'&[data-state="closed"]': [animationDecl(`${accordionUp} 200ms ease-out forwards`)]
|
|
@@ -1437,151 +858,10 @@ function createAlertStyles() {
|
|
|
1437
858
|
css: s.css
|
|
1438
859
|
};
|
|
1439
860
|
}
|
|
1440
|
-
// src/styles/alert-dialog.ts
|
|
1441
|
-
import { css as css3 } from "@vertz/ui";
|
|
1442
|
-
var focusRing = {
|
|
1443
|
-
"&:focus-visible": [
|
|
1444
|
-
"outline-none",
|
|
1445
|
-
{
|
|
1446
|
-
outline: "3px solid color-mix(in oklch, var(--color-ring) 50%, transparent)"
|
|
1447
|
-
},
|
|
1448
|
-
{ "outline-offset": "2px" }
|
|
1449
|
-
]
|
|
1450
|
-
};
|
|
1451
|
-
function createAlertDialogStyles() {
|
|
1452
|
-
const s = css3({
|
|
1453
|
-
alertDialogOverlay: [
|
|
1454
|
-
"fixed",
|
|
1455
|
-
"inset:0",
|
|
1456
|
-
"z:50",
|
|
1457
|
-
{
|
|
1458
|
-
"&": {
|
|
1459
|
-
"background-color": "oklch(0 0 0 / 10%)",
|
|
1460
|
-
"backdrop-filter": "blur(4px)",
|
|
1461
|
-
"-webkit-backdrop-filter": "blur(4px)"
|
|
1462
|
-
}
|
|
1463
|
-
},
|
|
1464
|
-
{
|
|
1465
|
-
'&[data-state="open"]': [animationDecl("vz-fade-in 100ms ease-out forwards")]
|
|
1466
|
-
},
|
|
1467
|
-
{
|
|
1468
|
-
'&[data-state="closed"]': [animationDecl("vz-fade-out 100ms ease-out forwards")]
|
|
1469
|
-
}
|
|
1470
|
-
],
|
|
1471
|
-
alertDialogPanel: [
|
|
1472
|
-
"bg:background",
|
|
1473
|
-
"gap:4",
|
|
1474
|
-
{
|
|
1475
|
-
"&": {
|
|
1476
|
-
display: "grid",
|
|
1477
|
-
width: "100%",
|
|
1478
|
-
"max-width": "calc(100% - 2rem)",
|
|
1479
|
-
"box-shadow": "0 0 0 1px color-mix(in oklch, var(--color-foreground) 10%, transparent)",
|
|
1480
|
-
"border-radius": "0.75rem",
|
|
1481
|
-
padding: "1rem",
|
|
1482
|
-
margin: "auto",
|
|
1483
|
-
height: "fit-content",
|
|
1484
|
-
outline: "none",
|
|
1485
|
-
border: "none",
|
|
1486
|
-
"container-type": "inline-size"
|
|
1487
|
-
},
|
|
1488
|
-
'&:not([open]):not([data-state="open"])': { display: "none" },
|
|
1489
|
-
"&::backdrop": {
|
|
1490
|
-
"background-color": "oklch(0 0 0 / 10%)",
|
|
1491
|
-
"backdrop-filter": "blur(4px)",
|
|
1492
|
-
"-webkit-backdrop-filter": "blur(4px)"
|
|
1493
|
-
},
|
|
1494
|
-
'&[data-state="open"]::backdrop': {
|
|
1495
|
-
animation: "vz-fade-in 100ms ease-out forwards"
|
|
1496
|
-
},
|
|
1497
|
-
'&[data-state="closed"]::backdrop': {
|
|
1498
|
-
animation: "vz-fade-out 100ms ease-out forwards"
|
|
1499
|
-
},
|
|
1500
|
-
"@media (min-width: 640px)": { "max-width": "24rem" }
|
|
1501
|
-
},
|
|
1502
|
-
{
|
|
1503
|
-
'&[data-state="open"]': [animationDecl("vz-zoom-in 100ms ease-out forwards")]
|
|
1504
|
-
},
|
|
1505
|
-
{
|
|
1506
|
-
'&[data-state="closed"]': [animationDecl("vz-zoom-out 100ms ease-out forwards")]
|
|
1507
|
-
}
|
|
1508
|
-
],
|
|
1509
|
-
alertDialogTitle: [
|
|
1510
|
-
{
|
|
1511
|
-
"&": {
|
|
1512
|
-
"font-size": "1rem",
|
|
1513
|
-
"font-weight": "500"
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
],
|
|
1517
|
-
alertDialogDescription: ["text:sm", "text:muted-foreground"],
|
|
1518
|
-
alertDialogFooter: [
|
|
1519
|
-
"flex",
|
|
1520
|
-
"gap:2",
|
|
1521
|
-
{
|
|
1522
|
-
"&": {
|
|
1523
|
-
"flex-direction": "column-reverse",
|
|
1524
|
-
"background-color": "color-mix(in oklch, var(--color-muted) 50%, transparent)",
|
|
1525
|
-
margin: "0 -1rem -1rem -1rem",
|
|
1526
|
-
"border-radius": "0 0 0.75rem 0.75rem",
|
|
1527
|
-
"border-top": "1px solid var(--color-border)",
|
|
1528
|
-
padding: "1rem"
|
|
1529
|
-
},
|
|
1530
|
-
"@container (min-width: 20rem)": {
|
|
1531
|
-
"flex-direction": "row",
|
|
1532
|
-
"justify-content": "flex-end"
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
],
|
|
1536
|
-
alertDialogCancel: [
|
|
1537
|
-
"inline-flex",
|
|
1538
|
-
"items:center",
|
|
1539
|
-
"justify:center",
|
|
1540
|
-
"rounded:md",
|
|
1541
|
-
"border:1",
|
|
1542
|
-
"border:input",
|
|
1543
|
-
"bg:background",
|
|
1544
|
-
"px:4",
|
|
1545
|
-
"py:2",
|
|
1546
|
-
"text:sm",
|
|
1547
|
-
"font:medium",
|
|
1548
|
-
"cursor:pointer",
|
|
1549
|
-
"transition:colors",
|
|
1550
|
-
{ "&:hover": ["bg:accent", "text:accent-foreground"] },
|
|
1551
|
-
focusRing
|
|
1552
|
-
],
|
|
1553
|
-
alertDialogAction: [
|
|
1554
|
-
"inline-flex",
|
|
1555
|
-
"items:center",
|
|
1556
|
-
"justify:center",
|
|
1557
|
-
"rounded:md",
|
|
1558
|
-
"bg:primary",
|
|
1559
|
-
"text:primary-foreground",
|
|
1560
|
-
"px:4",
|
|
1561
|
-
"py:2",
|
|
1562
|
-
"text:sm",
|
|
1563
|
-
"font:medium",
|
|
1564
|
-
"cursor:pointer",
|
|
1565
|
-
"transition:colors",
|
|
1566
|
-
{ "&:hover": [{ opacity: "0.9" }] },
|
|
1567
|
-
focusRing
|
|
1568
|
-
]
|
|
1569
|
-
});
|
|
1570
|
-
return {
|
|
1571
|
-
overlay: s.alertDialogOverlay,
|
|
1572
|
-
panel: s.alertDialogPanel,
|
|
1573
|
-
title: s.alertDialogTitle,
|
|
1574
|
-
description: s.alertDialogDescription,
|
|
1575
|
-
footer: s.alertDialogFooter,
|
|
1576
|
-
cancel: s.alertDialogCancel,
|
|
1577
|
-
action: s.alertDialogAction,
|
|
1578
|
-
css: s.css
|
|
1579
|
-
};
|
|
1580
|
-
}
|
|
1581
861
|
// src/styles/avatar.ts
|
|
1582
|
-
import { css as
|
|
862
|
+
import { css as css3 } from "@vertz/ui";
|
|
1583
863
|
function createAvatarStyles() {
|
|
1584
|
-
const s =
|
|
864
|
+
const s = css3({
|
|
1585
865
|
avatarRoot: ["relative", "flex", "h:8", "w:8", "shrink-0", "overflow-hidden", "rounded:full"],
|
|
1586
866
|
avatarImage: [
|
|
1587
867
|
"h:full",
|
|
@@ -1626,9 +906,9 @@ function createAvatarStyles() {
|
|
|
1626
906
|
};
|
|
1627
907
|
}
|
|
1628
908
|
// src/styles/breadcrumb.ts
|
|
1629
|
-
import { css as
|
|
909
|
+
import { css as css4 } from "@vertz/ui";
|
|
1630
910
|
function createBreadcrumbStyles() {
|
|
1631
|
-
const s =
|
|
911
|
+
const s = css4({
|
|
1632
912
|
breadcrumbNav: [],
|
|
1633
913
|
breadcrumbList: [
|
|
1634
914
|
"flex",
|
|
@@ -1645,7 +925,12 @@ function createBreadcrumbStyles() {
|
|
|
1645
925
|
}
|
|
1646
926
|
}
|
|
1647
927
|
],
|
|
1648
|
-
breadcrumbItem: [
|
|
928
|
+
breadcrumbItem: [
|
|
929
|
+
"inline-flex",
|
|
930
|
+
"items:center",
|
|
931
|
+
"gap:1.5",
|
|
932
|
+
{ '&:first-child > [role="presentation"]': { display: "none" } }
|
|
933
|
+
],
|
|
1649
934
|
breadcrumbLink: ["transition:colors", "text:foreground", { "&:hover": ["text:foreground"] }],
|
|
1650
935
|
breadcrumbPage: ["font:normal", "text:foreground"],
|
|
1651
936
|
breadcrumbSeparator: []
|
|
@@ -1661,8 +946,8 @@ function createBreadcrumbStyles() {
|
|
|
1661
946
|
};
|
|
1662
947
|
}
|
|
1663
948
|
// src/styles/calendar.ts
|
|
1664
|
-
import { css as
|
|
1665
|
-
var
|
|
949
|
+
import { css as css5 } from "@vertz/ui";
|
|
950
|
+
var focusRing = {
|
|
1666
951
|
"&:focus-visible": [
|
|
1667
952
|
"outline-none",
|
|
1668
953
|
{
|
|
@@ -1672,10 +957,11 @@ var focusRing2 = {
|
|
|
1672
957
|
]
|
|
1673
958
|
};
|
|
1674
959
|
function createCalendarStyles() {
|
|
1675
|
-
const s =
|
|
960
|
+
const s = css5({
|
|
1676
961
|
calendarRoot: [
|
|
1677
962
|
"w:fit",
|
|
1678
963
|
"bg:background",
|
|
964
|
+
"text:foreground",
|
|
1679
965
|
"rounded:lg",
|
|
1680
966
|
"border:1",
|
|
1681
967
|
"border:border",
|
|
@@ -1685,6 +971,17 @@ function createCalendarStyles() {
|
|
|
1685
971
|
}
|
|
1686
972
|
}
|
|
1687
973
|
],
|
|
974
|
+
calendarRootNoBorder: [
|
|
975
|
+
"w:fit",
|
|
976
|
+
"bg:background",
|
|
977
|
+
"text:foreground",
|
|
978
|
+
"rounded:md",
|
|
979
|
+
{
|
|
980
|
+
"&": {
|
|
981
|
+
padding: "0.5rem"
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
],
|
|
1688
985
|
calendarHeader: [
|
|
1689
986
|
"flex",
|
|
1690
987
|
"items:center",
|
|
@@ -1728,7 +1025,7 @@ function createCalendarStyles() {
|
|
|
1728
1025
|
"cursor:pointer",
|
|
1729
1026
|
"transition:all",
|
|
1730
1027
|
{ "&:hover": ["bg:muted", "text:foreground"] },
|
|
1731
|
-
|
|
1028
|
+
focusRing,
|
|
1732
1029
|
{
|
|
1733
1030
|
"&": {
|
|
1734
1031
|
height: "1.75rem",
|
|
@@ -1784,7 +1081,7 @@ function createCalendarStyles() {
|
|
|
1784
1081
|
"bg:transparent",
|
|
1785
1082
|
"cursor:pointer",
|
|
1786
1083
|
"transition:all",
|
|
1787
|
-
|
|
1084
|
+
focusRing,
|
|
1788
1085
|
{
|
|
1789
1086
|
"&": {
|
|
1790
1087
|
height: "1.75rem",
|
|
@@ -1814,7 +1111,7 @@ function createCalendarStyles() {
|
|
|
1814
1111
|
"font:medium",
|
|
1815
1112
|
"bg:transparent",
|
|
1816
1113
|
"cursor:pointer",
|
|
1817
|
-
|
|
1114
|
+
focusRing,
|
|
1818
1115
|
{
|
|
1819
1116
|
"&": {
|
|
1820
1117
|
border: "none",
|
|
@@ -1828,7 +1125,7 @@ function createCalendarStyles() {
|
|
|
1828
1125
|
"font:medium",
|
|
1829
1126
|
"bg:transparent",
|
|
1830
1127
|
"cursor:pointer",
|
|
1831
|
-
|
|
1128
|
+
focusRing,
|
|
1832
1129
|
{
|
|
1833
1130
|
"&": {
|
|
1834
1131
|
border: "none",
|
|
@@ -1840,6 +1137,7 @@ function createCalendarStyles() {
|
|
|
1840
1137
|
});
|
|
1841
1138
|
return {
|
|
1842
1139
|
root: s.calendarRoot,
|
|
1140
|
+
rootNoBorder: s.calendarRootNoBorder,
|
|
1843
1141
|
header: s.calendarHeader,
|
|
1844
1142
|
title: s.calendarTitle,
|
|
1845
1143
|
navButton: s.calendarNavButton,
|
|
@@ -1853,9 +1151,9 @@ function createCalendarStyles() {
|
|
|
1853
1151
|
};
|
|
1854
1152
|
}
|
|
1855
1153
|
// src/styles/card.ts
|
|
1856
|
-
import { css as
|
|
1154
|
+
import { css as css6 } from "@vertz/ui";
|
|
1857
1155
|
function createCard() {
|
|
1858
|
-
const s =
|
|
1156
|
+
const s = css6({
|
|
1859
1157
|
cardRoot: [
|
|
1860
1158
|
"flex",
|
|
1861
1159
|
"flex-col",
|
|
@@ -1867,7 +1165,7 @@ function createCard() {
|
|
|
1867
1165
|
"text:sm",
|
|
1868
1166
|
{
|
|
1869
1167
|
"&": {
|
|
1870
|
-
"border-radius": "
|
|
1168
|
+
"border-radius": "calc(var(--radius) * 2)",
|
|
1871
1169
|
"box-shadow": "0 0 0 1px color-mix(in oklch, var(--color-foreground) 10%, transparent)"
|
|
1872
1170
|
}
|
|
1873
1171
|
}
|
|
@@ -1894,7 +1192,7 @@ function createCard() {
|
|
|
1894
1192
|
{
|
|
1895
1193
|
"&": {
|
|
1896
1194
|
"background-color": "color-mix(in oklch, var(--color-muted) 50%, transparent)",
|
|
1897
|
-
"border-radius": "0 0
|
|
1195
|
+
"border-radius": "0 0 calc(var(--radius) * 2) calc(var(--radius) * 2)",
|
|
1898
1196
|
"margin-bottom": "-1rem"
|
|
1899
1197
|
}
|
|
1900
1198
|
}
|
|
@@ -1913,14 +1211,12 @@ function createCard() {
|
|
|
1913
1211
|
};
|
|
1914
1212
|
}
|
|
1915
1213
|
// src/styles/carousel.ts
|
|
1916
|
-
import { css as
|
|
1214
|
+
import { css as css7 } from "@vertz/ui";
|
|
1917
1215
|
function createCarouselStyles() {
|
|
1918
|
-
const s =
|
|
1216
|
+
const s = css7({
|
|
1919
1217
|
carouselRoot: ["relative"],
|
|
1920
1218
|
carouselViewport: ["overflow-hidden"],
|
|
1921
|
-
carouselSlide: [
|
|
1922
|
-
{ '&[data-state="inactive"]': [{ display: "none" }] }
|
|
1923
|
-
],
|
|
1219
|
+
carouselSlide: [{ '&[data-state="inactive"]': [{ display: "none" }] }],
|
|
1924
1220
|
carouselPrevButton: [
|
|
1925
1221
|
"absolute",
|
|
1926
1222
|
"h:8",
|
|
@@ -1929,6 +1225,7 @@ function createCarouselStyles() {
|
|
|
1929
1225
|
"border:1",
|
|
1930
1226
|
"border:border",
|
|
1931
1227
|
"bg:background",
|
|
1228
|
+
"text:foreground",
|
|
1932
1229
|
"inline-flex",
|
|
1933
1230
|
"items:center",
|
|
1934
1231
|
"justify:center",
|
|
@@ -1951,6 +1248,7 @@ function createCarouselStyles() {
|
|
|
1951
1248
|
"border:1",
|
|
1952
1249
|
"border:border",
|
|
1953
1250
|
"bg:background",
|
|
1251
|
+
"text:foreground",
|
|
1954
1252
|
"inline-flex",
|
|
1955
1253
|
"items:center",
|
|
1956
1254
|
"justify:center",
|
|
@@ -1976,8 +1274,8 @@ function createCarouselStyles() {
|
|
|
1976
1274
|
};
|
|
1977
1275
|
}
|
|
1978
1276
|
// src/styles/checkbox.ts
|
|
1979
|
-
import { css as
|
|
1980
|
-
var
|
|
1277
|
+
import { css as css8 } from "@vertz/ui";
|
|
1278
|
+
var focusRing2 = {
|
|
1981
1279
|
"&:focus-visible": [
|
|
1982
1280
|
"outline-none",
|
|
1983
1281
|
"border:ring",
|
|
@@ -1987,7 +1285,7 @@ var focusRing3 = {
|
|
|
1987
1285
|
]
|
|
1988
1286
|
};
|
|
1989
1287
|
function createCheckboxStyles() {
|
|
1990
|
-
const s =
|
|
1288
|
+
const s = css8({
|
|
1991
1289
|
checkboxRoot: [
|
|
1992
1290
|
"shrink-0",
|
|
1993
1291
|
"flex",
|
|
@@ -1999,9 +1297,9 @@ function createCheckboxStyles() {
|
|
|
1999
1297
|
"border:input",
|
|
2000
1298
|
"cursor:pointer",
|
|
2001
1299
|
"transition:colors",
|
|
2002
|
-
{ "&": { padding: "0", background: "transparent", "border-radius": "
|
|
1300
|
+
{ "&": { padding: "0", background: "transparent", "border-radius": "calc(var(--radius) * 0.67)" } },
|
|
2003
1301
|
{ [DARK]: [bgOpacity("input", 30)] },
|
|
2004
|
-
|
|
1302
|
+
focusRing2,
|
|
2005
1303
|
{ "&:disabled": ["pointer-events-none", "opacity:0.5"] },
|
|
2006
1304
|
{
|
|
2007
1305
|
'&[data-state="checked"]': ["bg:primary", "text:primary-foreground", "border:primary"],
|
|
@@ -2051,9 +1349,9 @@ function createCheckboxStyles() {
|
|
|
2051
1349
|
};
|
|
2052
1350
|
}
|
|
2053
1351
|
// src/styles/collapsible.ts
|
|
2054
|
-
import { css as
|
|
1352
|
+
import { css as css9 } from "@vertz/ui";
|
|
2055
1353
|
function createCollapsibleStyles() {
|
|
2056
|
-
const s =
|
|
1354
|
+
const s = css9({
|
|
2057
1355
|
collapsibleContent: [
|
|
2058
1356
|
"overflow-hidden",
|
|
2059
1357
|
"text:sm",
|
|
@@ -2071,8 +1369,8 @@ function createCollapsibleStyles() {
|
|
|
2071
1369
|
};
|
|
2072
1370
|
}
|
|
2073
1371
|
// src/styles/command.ts
|
|
2074
|
-
import { css as
|
|
2075
|
-
var
|
|
1372
|
+
import { css as css10 } from "@vertz/ui";
|
|
1373
|
+
var focusRing3 = {
|
|
2076
1374
|
"&:focus-visible": [
|
|
2077
1375
|
"outline-none",
|
|
2078
1376
|
{
|
|
@@ -2082,7 +1380,7 @@ var focusRing4 = {
|
|
|
2082
1380
|
]
|
|
2083
1381
|
};
|
|
2084
1382
|
function createCommandStyles() {
|
|
2085
|
-
const s =
|
|
1383
|
+
const s = css10({
|
|
2086
1384
|
commandRoot: [
|
|
2087
1385
|
"flex",
|
|
2088
1386
|
"flex-col",
|
|
@@ -2109,7 +1407,7 @@ function createCommandStyles() {
|
|
|
2109
1407
|
"border-bottom": "1px solid var(--color-border)"
|
|
2110
1408
|
}
|
|
2111
1409
|
},
|
|
2112
|
-
|
|
1410
|
+
focusRing3
|
|
2113
1411
|
],
|
|
2114
1412
|
commandList: [
|
|
2115
1413
|
"px:1",
|
|
@@ -2177,9 +1475,9 @@ function createCommandStyles() {
|
|
|
2177
1475
|
};
|
|
2178
1476
|
}
|
|
2179
1477
|
// src/styles/context-menu.ts
|
|
2180
|
-
import { css as
|
|
1478
|
+
import { css as css11 } from "@vertz/ui";
|
|
2181
1479
|
function createContextMenuStyles() {
|
|
2182
|
-
const s =
|
|
1480
|
+
const s = css11({
|
|
2183
1481
|
cmContent: [
|
|
2184
1482
|
"z:50",
|
|
2185
1483
|
"overflow-hidden",
|
|
@@ -2239,8 +1537,8 @@ function createContextMenuStyles() {
|
|
|
2239
1537
|
};
|
|
2240
1538
|
}
|
|
2241
1539
|
// src/styles/date-picker.ts
|
|
2242
|
-
import { css as
|
|
2243
|
-
var
|
|
1540
|
+
import { css as css12 } from "@vertz/ui";
|
|
1541
|
+
var focusRing4 = {
|
|
2244
1542
|
"&:focus-visible": [
|
|
2245
1543
|
"outline-none",
|
|
2246
1544
|
{
|
|
@@ -2250,7 +1548,7 @@ var focusRing5 = {
|
|
|
2250
1548
|
]
|
|
2251
1549
|
};
|
|
2252
1550
|
function createDatePickerStyles() {
|
|
2253
|
-
const s =
|
|
1551
|
+
const s = css12({
|
|
2254
1552
|
datePickerTrigger: [
|
|
2255
1553
|
"inline-flex",
|
|
2256
1554
|
"items:center",
|
|
@@ -2259,11 +1557,12 @@ function createDatePickerStyles() {
|
|
|
2259
1557
|
"border:1",
|
|
2260
1558
|
"border:input",
|
|
2261
1559
|
"bg:background",
|
|
1560
|
+
"text:foreground",
|
|
2262
1561
|
"text:sm",
|
|
2263
1562
|
"font:normal",
|
|
2264
1563
|
"cursor:pointer",
|
|
2265
1564
|
"transition:colors",
|
|
2266
|
-
|
|
1565
|
+
focusRing4,
|
|
2267
1566
|
{
|
|
2268
1567
|
"&": {
|
|
2269
1568
|
height: "2.5rem",
|
|
@@ -2281,6 +1580,7 @@ function createDatePickerStyles() {
|
|
|
2281
1580
|
"border:1",
|
|
2282
1581
|
"border:border",
|
|
2283
1582
|
"shadow:md",
|
|
1583
|
+
"overflow-hidden",
|
|
2284
1584
|
{ "&": { padding: "0" } }
|
|
2285
1585
|
]
|
|
2286
1586
|
});
|
|
@@ -2291,8 +1591,8 @@ function createDatePickerStyles() {
|
|
|
2291
1591
|
};
|
|
2292
1592
|
}
|
|
2293
1593
|
// src/styles/dialog.ts
|
|
2294
|
-
import { css as
|
|
2295
|
-
var
|
|
1594
|
+
import { css as css13, globalCss, injectCSS } from "@vertz/ui";
|
|
1595
|
+
var focusRing5 = {
|
|
2296
1596
|
"&:focus-visible": [
|
|
2297
1597
|
"outline-none",
|
|
2298
1598
|
{
|
|
@@ -2302,7 +1602,7 @@ var focusRing6 = {
|
|
|
2302
1602
|
]
|
|
2303
1603
|
};
|
|
2304
1604
|
function createDialogStyles() {
|
|
2305
|
-
const s =
|
|
1605
|
+
const s = css13({
|
|
2306
1606
|
dialogOverlay: [
|
|
2307
1607
|
"fixed",
|
|
2308
1608
|
"inset:0",
|
|
@@ -2323,6 +1623,7 @@ function createDialogStyles() {
|
|
|
2323
1623
|
],
|
|
2324
1624
|
dialogPanel: [
|
|
2325
1625
|
"bg:background",
|
|
1626
|
+
"text:foreground",
|
|
2326
1627
|
"gap:4",
|
|
2327
1628
|
{
|
|
2328
1629
|
"&": {
|
|
@@ -2330,7 +1631,7 @@ function createDialogStyles() {
|
|
|
2330
1631
|
width: "100%",
|
|
2331
1632
|
"max-width": "calc(100% - 2rem)",
|
|
2332
1633
|
"box-shadow": "0 0 0 1px color-mix(in oklch, var(--color-foreground) 10%, transparent)",
|
|
2333
|
-
"border-radius": "
|
|
1634
|
+
"border-radius": "calc(var(--radius) * 2)",
|
|
2334
1635
|
padding: "1rem",
|
|
2335
1636
|
"font-size": "0.875rem",
|
|
2336
1637
|
margin: "auto",
|
|
@@ -2369,6 +1670,7 @@ function createDialogStyles() {
|
|
|
2369
1670
|
}
|
|
2370
1671
|
],
|
|
2371
1672
|
dialogTitle: [
|
|
1673
|
+
"text:foreground",
|
|
2372
1674
|
{
|
|
2373
1675
|
"&": {
|
|
2374
1676
|
"font-size": "1rem",
|
|
@@ -2401,7 +1703,7 @@ function createDialogStyles() {
|
|
|
2401
1703
|
"&:hover": { opacity: "1" },
|
|
2402
1704
|
"&:disabled": { "pointer-events": "none" }
|
|
2403
1705
|
},
|
|
2404
|
-
|
|
1706
|
+
focusRing5
|
|
2405
1707
|
],
|
|
2406
1708
|
dialogFooter: [
|
|
2407
1709
|
"flex",
|
|
@@ -2411,7 +1713,7 @@ function createDialogStyles() {
|
|
|
2411
1713
|
"flex-direction": "column-reverse",
|
|
2412
1714
|
"background-color": "color-mix(in oklch, var(--color-muted) 50%, transparent)",
|
|
2413
1715
|
margin: "0 -1rem -1rem -1rem",
|
|
2414
|
-
"border-radius": "0 0
|
|
1716
|
+
"border-radius": "0 0 calc(var(--radius) * 2) calc(var(--radius) * 2)",
|
|
2415
1717
|
"border-top": "1px solid var(--color-border)",
|
|
2416
1718
|
padding: "1rem"
|
|
2417
1719
|
},
|
|
@@ -2433,9 +1735,148 @@ function createDialogStyles() {
|
|
|
2433
1735
|
css: s.css
|
|
2434
1736
|
};
|
|
2435
1737
|
}
|
|
1738
|
+
function createDialogGlobalStyles() {
|
|
1739
|
+
const output = globalCss({
|
|
1740
|
+
"dialog[data-dialog-wrapper]": {
|
|
1741
|
+
background: "transparent",
|
|
1742
|
+
border: "none",
|
|
1743
|
+
padding: "0",
|
|
1744
|
+
maxWidth: "100vw",
|
|
1745
|
+
maxHeight: "100vh",
|
|
1746
|
+
overflow: "visible"
|
|
1747
|
+
},
|
|
1748
|
+
"dialog[data-dialog-wrapper]::backdrop": {
|
|
1749
|
+
backgroundColor: "oklch(0 0 0 / 10%)",
|
|
1750
|
+
backdropFilter: "blur(4px)",
|
|
1751
|
+
WebkitBackdropFilter: "blur(4px)"
|
|
1752
|
+
},
|
|
1753
|
+
'dialog[data-dialog-wrapper][data-state="open"]::backdrop': {
|
|
1754
|
+
animation: "vz-fade-in 100ms ease-out forwards"
|
|
1755
|
+
},
|
|
1756
|
+
'dialog[data-dialog-wrapper][data-state="closed"]::backdrop': {
|
|
1757
|
+
animation: "vz-fade-out 100ms ease-out forwards"
|
|
1758
|
+
},
|
|
1759
|
+
'dialog[data-dialog-wrapper] > [data-part="panel"]': {
|
|
1760
|
+
position: "relative",
|
|
1761
|
+
display: "grid",
|
|
1762
|
+
gap: "1rem",
|
|
1763
|
+
width: "100%",
|
|
1764
|
+
maxWidth: "calc(100% - 2rem)",
|
|
1765
|
+
boxShadow: "0 0 0 1px color-mix(in oklch, var(--color-foreground) 10%, transparent)",
|
|
1766
|
+
borderRadius: "calc(var(--radius) * 2)",
|
|
1767
|
+
padding: "1rem",
|
|
1768
|
+
fontSize: "0.875rem",
|
|
1769
|
+
margin: "auto",
|
|
1770
|
+
height: "fit-content",
|
|
1771
|
+
outline: "none",
|
|
1772
|
+
containerType: "inline-size",
|
|
1773
|
+
backgroundColor: "var(--color-background)"
|
|
1774
|
+
},
|
|
1775
|
+
'dialog[data-dialog-wrapper][data-state="open"] > [data-part="panel"]': {
|
|
1776
|
+
animation: "vz-zoom-in 100ms ease-out forwards"
|
|
1777
|
+
},
|
|
1778
|
+
'dialog[data-dialog-wrapper][data-state="closed"] > [data-part="panel"]': {
|
|
1779
|
+
animation: "vz-zoom-out 100ms ease-out forwards"
|
|
1780
|
+
},
|
|
1781
|
+
'dialog[data-dialog-wrapper] [data-part="header"]': {
|
|
1782
|
+
display: "flex",
|
|
1783
|
+
flexDirection: "column",
|
|
1784
|
+
gap: "0.5rem"
|
|
1785
|
+
},
|
|
1786
|
+
'dialog[data-dialog-wrapper] [data-part="title"]': {
|
|
1787
|
+
fontSize: "1rem",
|
|
1788
|
+
lineHeight: "1",
|
|
1789
|
+
fontWeight: "500"
|
|
1790
|
+
},
|
|
1791
|
+
'dialog[data-dialog-wrapper] [data-part="description"]': {
|
|
1792
|
+
fontSize: "0.875rem",
|
|
1793
|
+
color: "var(--color-muted-foreground)"
|
|
1794
|
+
},
|
|
1795
|
+
'dialog[data-dialog-wrapper] [data-part="body"]': {
|
|
1796
|
+
overflow: "auto"
|
|
1797
|
+
},
|
|
1798
|
+
'dialog[data-dialog-wrapper] [data-part="footer"]': {
|
|
1799
|
+
display: "flex",
|
|
1800
|
+
gap: "0.5rem",
|
|
1801
|
+
flexDirection: "column-reverse",
|
|
1802
|
+
backgroundColor: "color-mix(in oklch, var(--color-muted) 50%, transparent)",
|
|
1803
|
+
margin: "0 -1rem -1rem -1rem",
|
|
1804
|
+
borderRadius: "0 0 calc(var(--radius) * 2) calc(var(--radius) * 2)",
|
|
1805
|
+
borderTop: "1px solid var(--color-border)",
|
|
1806
|
+
padding: "1rem"
|
|
1807
|
+
},
|
|
1808
|
+
'dialog[data-dialog-wrapper] [data-part="close"]': {
|
|
1809
|
+
position: "absolute",
|
|
1810
|
+
top: "0.5rem",
|
|
1811
|
+
right: "0.5rem",
|
|
1812
|
+
opacity: "0.7",
|
|
1813
|
+
transition: "opacity 150ms",
|
|
1814
|
+
display: "inline-flex",
|
|
1815
|
+
alignItems: "center",
|
|
1816
|
+
justifyContent: "center",
|
|
1817
|
+
width: "1rem",
|
|
1818
|
+
height: "1rem",
|
|
1819
|
+
background: "none",
|
|
1820
|
+
border: "none",
|
|
1821
|
+
color: "currentColor",
|
|
1822
|
+
padding: "0",
|
|
1823
|
+
cursor: "pointer",
|
|
1824
|
+
borderRadius: "calc(var(--radius) * 0.33)"
|
|
1825
|
+
},
|
|
1826
|
+
'dialog[data-dialog-wrapper] [data-part="close"]:hover': {
|
|
1827
|
+
opacity: "1"
|
|
1828
|
+
},
|
|
1829
|
+
'dialog[data-dialog-wrapper] [data-part="cancel"]': {
|
|
1830
|
+
background: "none",
|
|
1831
|
+
border: "1px solid var(--color-border)",
|
|
1832
|
+
borderRadius: "var(--radius)",
|
|
1833
|
+
padding: "0.5rem 1rem",
|
|
1834
|
+
cursor: "pointer",
|
|
1835
|
+
fontSize: "0.875rem",
|
|
1836
|
+
color: "var(--color-foreground)"
|
|
1837
|
+
},
|
|
1838
|
+
'dialog[data-dialog-wrapper] [data-part="confirm-cancel"]': {
|
|
1839
|
+
background: "none",
|
|
1840
|
+
border: "1px solid var(--color-border)",
|
|
1841
|
+
borderRadius: "var(--radius)",
|
|
1842
|
+
padding: "0.5rem 1rem",
|
|
1843
|
+
cursor: "pointer",
|
|
1844
|
+
fontSize: "0.875rem",
|
|
1845
|
+
color: "var(--color-foreground)"
|
|
1846
|
+
},
|
|
1847
|
+
'dialog[data-dialog-wrapper] [data-part="confirm-action"]': {
|
|
1848
|
+
border: "none",
|
|
1849
|
+
borderRadius: "var(--radius)",
|
|
1850
|
+
padding: "0.5rem 1rem",
|
|
1851
|
+
cursor: "pointer",
|
|
1852
|
+
fontSize: "0.875rem",
|
|
1853
|
+
fontWeight: "500",
|
|
1854
|
+
color: "var(--color-primary-foreground)",
|
|
1855
|
+
backgroundColor: "var(--color-primary)"
|
|
1856
|
+
},
|
|
1857
|
+
'dialog[data-dialog-wrapper] [data-part="confirm-action"][data-intent="danger"]': {
|
|
1858
|
+
color: "var(--color-destructive-foreground)",
|
|
1859
|
+
backgroundColor: "var(--color-destructive)"
|
|
1860
|
+
}
|
|
1861
|
+
});
|
|
1862
|
+
injectCSS(`
|
|
1863
|
+
@media (min-width: 640px) {
|
|
1864
|
+
dialog[data-dialog-wrapper] > [data-part="panel"] {
|
|
1865
|
+
max-width: 24rem;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
@container (min-width: 20rem) {
|
|
1869
|
+
dialog[data-dialog-wrapper] [data-part="footer"] {
|
|
1870
|
+
flex-direction: row;
|
|
1871
|
+
justify-content: flex-end;
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
`.trim());
|
|
1875
|
+
return output;
|
|
1876
|
+
}
|
|
2436
1877
|
// src/styles/drawer.ts
|
|
2437
|
-
import { css as
|
|
2438
|
-
var
|
|
1878
|
+
import { css as css14 } from "@vertz/ui";
|
|
1879
|
+
var focusRing6 = {
|
|
2439
1880
|
"&:focus-visible": [
|
|
2440
1881
|
"outline-none",
|
|
2441
1882
|
{
|
|
@@ -2455,7 +1896,7 @@ var PANEL_BASE = [
|
|
|
2455
1896
|
"gap:4"
|
|
2456
1897
|
];
|
|
2457
1898
|
function createDrawerStyles() {
|
|
2458
|
-
const s =
|
|
1899
|
+
const s = css14({
|
|
2459
1900
|
drawerOverlay: [
|
|
2460
1901
|
"fixed",
|
|
2461
1902
|
"inset:0",
|
|
@@ -2483,7 +1924,7 @@ function createDrawerStyles() {
|
|
|
2483
1924
|
margin: "0",
|
|
2484
1925
|
outline: "none",
|
|
2485
1926
|
border: "none",
|
|
2486
|
-
"border-radius": "0
|
|
1927
|
+
"border-radius": "0 calc(var(--radius) * 2) calc(var(--radius) * 2) 0"
|
|
2487
1928
|
},
|
|
2488
1929
|
'&:not([open]):not([data-state="open"])': { display: "none" },
|
|
2489
1930
|
"&::backdrop": {
|
|
@@ -2516,7 +1957,7 @@ function createDrawerStyles() {
|
|
|
2516
1957
|
margin: "0",
|
|
2517
1958
|
outline: "none",
|
|
2518
1959
|
border: "none",
|
|
2519
|
-
"border-radius": "
|
|
1960
|
+
"border-radius": "calc(var(--radius) * 2) 0 0 calc(var(--radius) * 2)"
|
|
2520
1961
|
},
|
|
2521
1962
|
'&:not([open]):not([data-state="open"])': { display: "none" },
|
|
2522
1963
|
"&::backdrop": {
|
|
@@ -2547,7 +1988,7 @@ function createDrawerStyles() {
|
|
|
2547
1988
|
margin: "0",
|
|
2548
1989
|
outline: "none",
|
|
2549
1990
|
border: "none",
|
|
2550
|
-
"border-radius": "0 0
|
|
1991
|
+
"border-radius": "0 0 calc(var(--radius) * 2) calc(var(--radius) * 2)"
|
|
2551
1992
|
},
|
|
2552
1993
|
'&:not([open]):not([data-state="open"])': { display: "none" },
|
|
2553
1994
|
"&::backdrop": {
|
|
@@ -2578,7 +2019,7 @@ function createDrawerStyles() {
|
|
|
2578
2019
|
margin: "0",
|
|
2579
2020
|
outline: "none",
|
|
2580
2021
|
border: "none",
|
|
2581
|
-
"border-radius": "
|
|
2022
|
+
"border-radius": "calc(var(--radius) * 2) calc(var(--radius) * 2) 0 0"
|
|
2582
2023
|
},
|
|
2583
2024
|
'&:not([open]):not([data-state="open"])': { display: "none" },
|
|
2584
2025
|
"&::backdrop": {
|
|
@@ -2634,7 +2075,7 @@ function createDrawerStyles() {
|
|
|
2634
2075
|
"cursor:pointer",
|
|
2635
2076
|
"transition:colors",
|
|
2636
2077
|
{ "&:hover": ["opacity:1"] },
|
|
2637
|
-
|
|
2078
|
+
focusRing6
|
|
2638
2079
|
]
|
|
2639
2080
|
});
|
|
2640
2081
|
return {
|
|
@@ -2653,9 +2094,9 @@ function createDrawerStyles() {
|
|
|
2653
2094
|
};
|
|
2654
2095
|
}
|
|
2655
2096
|
// src/styles/dropdown-menu.ts
|
|
2656
|
-
import { css as
|
|
2097
|
+
import { css as css15 } from "@vertz/ui";
|
|
2657
2098
|
function createDropdownMenuStyles() {
|
|
2658
|
-
const s =
|
|
2099
|
+
const s = css15({
|
|
2659
2100
|
dmContent: [
|
|
2660
2101
|
"z:50",
|
|
2661
2102
|
"overflow-hidden",
|
|
@@ -2714,6 +2155,17 @@ function createDropdownMenuStyles() {
|
|
|
2714
2155
|
css: s.css
|
|
2715
2156
|
};
|
|
2716
2157
|
}
|
|
2158
|
+
// src/styles/empty-state.ts
|
|
2159
|
+
import { css as css16 } from "@vertz/ui";
|
|
2160
|
+
function createEmptyStateStyles() {
|
|
2161
|
+
return css16({
|
|
2162
|
+
root: ["flex", "flex-col", "items:center", "justify:center", "py:12", "text:center"],
|
|
2163
|
+
icon: ["mb:3", "text:muted-foreground"],
|
|
2164
|
+
title: ["font:lg", "font:semibold", "text:foreground", "mb:1"],
|
|
2165
|
+
description: ["text:sm", "text:muted-foreground", "mb:4", "max-w:md"],
|
|
2166
|
+
action: ["mt:2"]
|
|
2167
|
+
});
|
|
2168
|
+
}
|
|
2717
2169
|
// src/styles/form-group.ts
|
|
2718
2170
|
import { css as css17 } from "@vertz/ui";
|
|
2719
2171
|
function createFormGroup() {
|
|
@@ -2764,7 +2216,7 @@ function createHoverCardStyles() {
|
|
|
2764
2216
|
// src/styles/input.ts
|
|
2765
2217
|
import { css as css19 } from "@vertz/ui";
|
|
2766
2218
|
function createInput() {
|
|
2767
|
-
const
|
|
2219
|
+
const focusRing7 = {
|
|
2768
2220
|
"&:focus-visible": [
|
|
2769
2221
|
"outline-none",
|
|
2770
2222
|
"border:ring",
|
|
@@ -2793,7 +2245,7 @@ function createInput() {
|
|
|
2793
2245
|
"text:sm",
|
|
2794
2246
|
"text:foreground",
|
|
2795
2247
|
"transition:colors",
|
|
2796
|
-
|
|
2248
|
+
focusRing7,
|
|
2797
2249
|
{ "&:disabled": ["pointer-events-none", "opacity:0.5"] },
|
|
2798
2250
|
{ [DARK]: [bgOpacity("input", 30)] },
|
|
2799
2251
|
{
|
|
@@ -2833,10 +2285,77 @@ function createLabel() {
|
|
|
2833
2285
|
css: s.css
|
|
2834
2286
|
};
|
|
2835
2287
|
}
|
|
2288
|
+
// src/styles/list.ts
|
|
2289
|
+
import { css as css21, keyframes as keyframes2 } from "@vertz/ui";
|
|
2290
|
+
var listEnter = keyframes2("vz-list-enter", {
|
|
2291
|
+
from: { opacity: "0", transform: "translateY(-0.5rem)" },
|
|
2292
|
+
to: { opacity: "1", transform: "translateY(0)" }
|
|
2293
|
+
});
|
|
2294
|
+
function createListStyles() {
|
|
2295
|
+
const s = css21({
|
|
2296
|
+
listRoot: [
|
|
2297
|
+
"flex",
|
|
2298
|
+
"flex-col",
|
|
2299
|
+
"gap:0",
|
|
2300
|
+
{
|
|
2301
|
+
"&": {
|
|
2302
|
+
"list-style": "none",
|
|
2303
|
+
margin: "0",
|
|
2304
|
+
padding: "0",
|
|
2305
|
+
position: "relative"
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
],
|
|
2309
|
+
listItem: [
|
|
2310
|
+
"flex",
|
|
2311
|
+
"items:center",
|
|
2312
|
+
"gap:2",
|
|
2313
|
+
"px:3",
|
|
2314
|
+
"py:2",
|
|
2315
|
+
"border-b:1",
|
|
2316
|
+
"border:border",
|
|
2317
|
+
"text:sm",
|
|
2318
|
+
"text:foreground",
|
|
2319
|
+
{ "&:last-child": { "border-bottom": "0" } },
|
|
2320
|
+
{
|
|
2321
|
+
"&[data-dragging]": {
|
|
2322
|
+
position: "relative",
|
|
2323
|
+
"z-index": "50",
|
|
2324
|
+
"box-shadow": "0 4px 12px rgba(0,0,0,0.15)",
|
|
2325
|
+
"background-color": "var(--color-background)",
|
|
2326
|
+
opacity: "1"
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
{ '&[data-presence="enter"]': [animationDecl(`${listEnter} 200ms ease-out`)] },
|
|
2330
|
+
{
|
|
2331
|
+
'&[data-presence="exit"]': [{ overflow: "hidden", "pointer-events": "none" }]
|
|
2332
|
+
}
|
|
2333
|
+
],
|
|
2334
|
+
listDragHandle: [
|
|
2335
|
+
"flex",
|
|
2336
|
+
"items:center",
|
|
2337
|
+
"text:muted-foreground",
|
|
2338
|
+
{
|
|
2339
|
+
"&": {
|
|
2340
|
+
cursor: "grab",
|
|
2341
|
+
"touch-action": "none",
|
|
2342
|
+
"user-select": "none"
|
|
2343
|
+
},
|
|
2344
|
+
"&:active": { cursor: "grabbing" }
|
|
2345
|
+
}
|
|
2346
|
+
]
|
|
2347
|
+
});
|
|
2348
|
+
return {
|
|
2349
|
+
root: s.listRoot,
|
|
2350
|
+
item: s.listItem,
|
|
2351
|
+
dragHandle: s.listDragHandle,
|
|
2352
|
+
css: s.css
|
|
2353
|
+
};
|
|
2354
|
+
}
|
|
2836
2355
|
// src/styles/menubar.ts
|
|
2837
|
-
import { css as
|
|
2356
|
+
import { css as css22 } from "@vertz/ui";
|
|
2838
2357
|
function createMenubarStyles() {
|
|
2839
|
-
const s =
|
|
2358
|
+
const s = css22({
|
|
2840
2359
|
mbRoot: [
|
|
2841
2360
|
"flex",
|
|
2842
2361
|
"h:9",
|
|
@@ -2845,6 +2364,7 @@ function createMenubarStyles() {
|
|
|
2845
2364
|
"border:1",
|
|
2846
2365
|
"border:border",
|
|
2847
2366
|
"bg:background",
|
|
2367
|
+
"text:foreground",
|
|
2848
2368
|
"p:1",
|
|
2849
2369
|
{ "&": { "column-gap": "0.25rem" } }
|
|
2850
2370
|
],
|
|
@@ -2908,9 +2428,9 @@ function createMenubarStyles() {
|
|
|
2908
2428
|
};
|
|
2909
2429
|
}
|
|
2910
2430
|
// src/styles/navigation-menu.ts
|
|
2911
|
-
import { css as
|
|
2431
|
+
import { css as css23 } from "@vertz/ui";
|
|
2912
2432
|
function createNavigationMenuStyles() {
|
|
2913
|
-
const s =
|
|
2433
|
+
const s = css23({
|
|
2914
2434
|
navRoot: ["relative", "z:10"],
|
|
2915
2435
|
navList: ["flex", "items:center", "gap:1"],
|
|
2916
2436
|
navTrigger: [
|
|
@@ -2983,8 +2503,8 @@ function createNavigationMenuStyles() {
|
|
|
2983
2503
|
};
|
|
2984
2504
|
}
|
|
2985
2505
|
// src/styles/pagination.ts
|
|
2986
|
-
import { css as
|
|
2987
|
-
var
|
|
2506
|
+
import { css as css24 } from "@vertz/ui";
|
|
2507
|
+
var focusRing7 = {
|
|
2988
2508
|
"&:focus-visible": [
|
|
2989
2509
|
"outline-none",
|
|
2990
2510
|
{
|
|
@@ -2994,7 +2514,7 @@ var focusRing8 = {
|
|
|
2994
2514
|
]
|
|
2995
2515
|
};
|
|
2996
2516
|
function createPaginationStyles() {
|
|
2997
|
-
const s =
|
|
2517
|
+
const s = css24({
|
|
2998
2518
|
paginationNav: [
|
|
2999
2519
|
"flex",
|
|
3000
2520
|
"justify:center",
|
|
@@ -3029,7 +2549,7 @@ function createPaginationStyles() {
|
|
|
3029
2549
|
"bg:transparent",
|
|
3030
2550
|
"cursor:pointer",
|
|
3031
2551
|
"transition:all",
|
|
3032
|
-
|
|
2552
|
+
focusRing7,
|
|
3033
2553
|
{
|
|
3034
2554
|
"&": {
|
|
3035
2555
|
height: "2rem",
|
|
@@ -3051,8 +2571,9 @@ function createPaginationStyles() {
|
|
|
3051
2571
|
"border:1",
|
|
3052
2572
|
"border:border",
|
|
3053
2573
|
"bg:background",
|
|
2574
|
+
"text:foreground",
|
|
3054
2575
|
"cursor:pointer",
|
|
3055
|
-
|
|
2576
|
+
focusRing7,
|
|
3056
2577
|
{
|
|
3057
2578
|
"&": {
|
|
3058
2579
|
height: "2rem",
|
|
@@ -3071,7 +2592,7 @@ function createPaginationStyles() {
|
|
|
3071
2592
|
"bg:transparent",
|
|
3072
2593
|
"cursor:pointer",
|
|
3073
2594
|
"transition:all",
|
|
3074
|
-
|
|
2595
|
+
focusRing7,
|
|
3075
2596
|
{
|
|
3076
2597
|
"&": {
|
|
3077
2598
|
height: "2rem",
|
|
@@ -3113,9 +2634,9 @@ function createPaginationStyles() {
|
|
|
3113
2634
|
};
|
|
3114
2635
|
}
|
|
3115
2636
|
// src/styles/popover.ts
|
|
3116
|
-
import { css as
|
|
2637
|
+
import { css as css25 } from "@vertz/ui";
|
|
3117
2638
|
function createPopoverStyles() {
|
|
3118
|
-
const s =
|
|
2639
|
+
const s = css25({
|
|
3119
2640
|
popoverContent: [
|
|
3120
2641
|
"z:50",
|
|
3121
2642
|
"overflow-hidden",
|
|
@@ -3147,9 +2668,9 @@ function createPopoverStyles() {
|
|
|
3147
2668
|
};
|
|
3148
2669
|
}
|
|
3149
2670
|
// src/styles/progress.ts
|
|
3150
|
-
import { css as
|
|
2671
|
+
import { css as css26 } from "@vertz/ui";
|
|
3151
2672
|
function createProgressStyles() {
|
|
3152
|
-
const s =
|
|
2673
|
+
const s = css26({
|
|
3153
2674
|
progressRoot: [
|
|
3154
2675
|
"relative",
|
|
3155
2676
|
"w:full",
|
|
@@ -3167,8 +2688,8 @@ function createProgressStyles() {
|
|
|
3167
2688
|
};
|
|
3168
2689
|
}
|
|
3169
2690
|
// src/styles/radio-group.ts
|
|
3170
|
-
import { css as
|
|
3171
|
-
var
|
|
2691
|
+
import { css as css27 } from "@vertz/ui";
|
|
2692
|
+
var focusRing8 = {
|
|
3172
2693
|
"&:focus-visible": [
|
|
3173
2694
|
"outline-none",
|
|
3174
2695
|
"border:ring",
|
|
@@ -3178,7 +2699,7 @@ var focusRing9 = {
|
|
|
3178
2699
|
]
|
|
3179
2700
|
};
|
|
3180
2701
|
function createRadioGroupStyles() {
|
|
3181
|
-
const s =
|
|
2702
|
+
const s = css27({
|
|
3182
2703
|
radioGroupRoot: ["grid", "gap:2"],
|
|
3183
2704
|
radioGroupItem: [
|
|
3184
2705
|
"flex",
|
|
@@ -3200,7 +2721,7 @@ function createRadioGroupStyles() {
|
|
|
3200
2721
|
}
|
|
3201
2722
|
},
|
|
3202
2723
|
{ [DARK]: [bgOpacity("input", 30)] },
|
|
3203
|
-
|
|
2724
|
+
focusRing8,
|
|
3204
2725
|
{ "&:disabled": ["pointer-events-none", "opacity:0.5"] },
|
|
3205
2726
|
{
|
|
3206
2727
|
'&[data-state="checked"]': ["bg:primary", "text:primary-foreground", "border:primary"]
|
|
@@ -3243,8 +2764,8 @@ function createRadioGroupStyles() {
|
|
|
3243
2764
|
};
|
|
3244
2765
|
}
|
|
3245
2766
|
// src/styles/resizable-panel.ts
|
|
3246
|
-
import { css as
|
|
3247
|
-
var
|
|
2767
|
+
import { css as css28 } from "@vertz/ui";
|
|
2768
|
+
var focusRing9 = {
|
|
3248
2769
|
"&:focus-visible": [
|
|
3249
2770
|
"outline-none",
|
|
3250
2771
|
{
|
|
@@ -3254,7 +2775,7 @@ var focusRing10 = {
|
|
|
3254
2775
|
]
|
|
3255
2776
|
};
|
|
3256
2777
|
function createResizablePanelStyles() {
|
|
3257
|
-
const s =
|
|
2778
|
+
const s = css28({
|
|
3258
2779
|
resizableRoot: ["flex", "h:full", "w:full"],
|
|
3259
2780
|
resizablePanel: ["overflow-hidden", { "&": [{ "white-space": "nowrap" }] }],
|
|
3260
2781
|
resizableHandle: [
|
|
@@ -3263,7 +2784,7 @@ function createResizablePanelStyles() {
|
|
|
3263
2784
|
"items:center",
|
|
3264
2785
|
"justify:center",
|
|
3265
2786
|
"bg:border",
|
|
3266
|
-
|
|
2787
|
+
focusRing9,
|
|
3267
2788
|
{
|
|
3268
2789
|
"&:hover": ["bg:muted-foreground"]
|
|
3269
2790
|
},
|
|
@@ -3292,9 +2813,9 @@ function createResizablePanelStyles() {
|
|
|
3292
2813
|
};
|
|
3293
2814
|
}
|
|
3294
2815
|
// src/styles/scroll-area.ts
|
|
3295
|
-
import { css as
|
|
2816
|
+
import { css as css29 } from "@vertz/ui";
|
|
3296
2817
|
function createScrollAreaStyles() {
|
|
3297
|
-
const s =
|
|
2818
|
+
const s = css29({
|
|
3298
2819
|
scrollAreaRoot: ["relative", "overflow-hidden"],
|
|
3299
2820
|
scrollAreaViewport: ["h:full", "w:full", { "&": { "border-radius": "inherit" } }],
|
|
3300
2821
|
scrollAreaScrollbar: [
|
|
@@ -3319,7 +2840,12 @@ function createScrollAreaStyles() {
|
|
|
3319
2840
|
]
|
|
3320
2841
|
}
|
|
3321
2842
|
],
|
|
3322
|
-
scrollAreaThumb: [
|
|
2843
|
+
scrollAreaThumb: [
|
|
2844
|
+
"relative",
|
|
2845
|
+
"flex-1",
|
|
2846
|
+
"rounded:full",
|
|
2847
|
+
{ "&": { "background-color": "color-mix(in oklch, var(--color-foreground) 40%, transparent)" } }
|
|
2848
|
+
]
|
|
3323
2849
|
});
|
|
3324
2850
|
return {
|
|
3325
2851
|
root: s.scrollAreaRoot,
|
|
@@ -3330,8 +2856,8 @@ function createScrollAreaStyles() {
|
|
|
3330
2856
|
};
|
|
3331
2857
|
}
|
|
3332
2858
|
// src/styles/select.ts
|
|
3333
|
-
import { css as
|
|
3334
|
-
var
|
|
2859
|
+
import { css as css30 } from "@vertz/ui";
|
|
2860
|
+
var focusRing10 = {
|
|
3335
2861
|
"&:focus-visible": [
|
|
3336
2862
|
"outline-none",
|
|
3337
2863
|
{
|
|
@@ -3341,7 +2867,7 @@ var focusRing11 = {
|
|
|
3341
2867
|
]
|
|
3342
2868
|
};
|
|
3343
2869
|
function createSelectStyles() {
|
|
3344
|
-
const s =
|
|
2870
|
+
const s = css30({
|
|
3345
2871
|
selectTrigger: [
|
|
3346
2872
|
"flex",
|
|
3347
2873
|
"w:full",
|
|
@@ -3364,7 +2890,7 @@ function createSelectStyles() {
|
|
|
3364
2890
|
"padding-left": "0.625rem"
|
|
3365
2891
|
}
|
|
3366
2892
|
},
|
|
3367
|
-
|
|
2893
|
+
focusRing10,
|
|
3368
2894
|
{ "&:disabled": ["pointer-events-none", "opacity:0.5"] },
|
|
3369
2895
|
{ '&[data-state="open"]': ["border:ring"] },
|
|
3370
2896
|
{ [DARK]: [bgOpacity("input", 30)] },
|
|
@@ -3474,9 +3000,9 @@ function createSelectStyles() {
|
|
|
3474
3000
|
};
|
|
3475
3001
|
}
|
|
3476
3002
|
// src/styles/separator.ts
|
|
3477
|
-
import { css as
|
|
3003
|
+
import { css as css31 } from "@vertz/ui";
|
|
3478
3004
|
function createSeparator() {
|
|
3479
|
-
const s =
|
|
3005
|
+
const s = css31({
|
|
3480
3006
|
separatorBase: ["bg:border", "shrink-0"],
|
|
3481
3007
|
separatorHorizontal: ["w:full", { "&": { height: "1px" } }],
|
|
3482
3008
|
separatorVertical: [
|
|
@@ -3496,8 +3022,8 @@ function createSeparator() {
|
|
|
3496
3022
|
};
|
|
3497
3023
|
}
|
|
3498
3024
|
// src/styles/sheet.ts
|
|
3499
|
-
import { css as
|
|
3500
|
-
var
|
|
3025
|
+
import { css as css32 } from "@vertz/ui";
|
|
3026
|
+
var focusRing11 = {
|
|
3501
3027
|
"&:focus-visible": [
|
|
3502
3028
|
"outline-none",
|
|
3503
3029
|
{
|
|
@@ -3518,7 +3044,7 @@ var PANEL_BASE2 = [
|
|
|
3518
3044
|
"text:sm"
|
|
3519
3045
|
];
|
|
3520
3046
|
function createSheetStyles() {
|
|
3521
|
-
const s =
|
|
3047
|
+
const s = css32({
|
|
3522
3048
|
sheetOverlay: [
|
|
3523
3049
|
"fixed",
|
|
3524
3050
|
"inset:0",
|
|
@@ -3696,7 +3222,7 @@ function createSheetStyles() {
|
|
|
3696
3222
|
}
|
|
3697
3223
|
},
|
|
3698
3224
|
{ "&:hover": ["opacity:1"] },
|
|
3699
|
-
|
|
3225
|
+
focusRing11
|
|
3700
3226
|
]
|
|
3701
3227
|
});
|
|
3702
3228
|
return {
|
|
@@ -3712,23 +3238,31 @@ function createSheetStyles() {
|
|
|
3712
3238
|
};
|
|
3713
3239
|
}
|
|
3714
3240
|
// src/styles/skeleton.ts
|
|
3715
|
-
import { css as
|
|
3716
|
-
var pulse =
|
|
3241
|
+
import { css as css33, keyframes as keyframes3 } from "@vertz/ui";
|
|
3242
|
+
var pulse = keyframes3("vz-skeleton-pulse", {
|
|
3717
3243
|
"0%, 100%": { opacity: "1" },
|
|
3718
3244
|
"50%": { opacity: "0.5" }
|
|
3719
3245
|
});
|
|
3246
|
+
var skeletonBase = [
|
|
3247
|
+
"bg:muted",
|
|
3248
|
+
"rounded:md",
|
|
3249
|
+
{ "&": { animation: `${pulse} 2s ease-in-out infinite` } }
|
|
3250
|
+
];
|
|
3720
3251
|
function createSkeletonStyles() {
|
|
3721
|
-
return
|
|
3722
|
-
|
|
3252
|
+
return css33({
|
|
3253
|
+
root: [...skeletonBase],
|
|
3254
|
+
textRoot: ["flex", "flex-col"],
|
|
3255
|
+
textLine: [...skeletonBase, "h:4"],
|
|
3256
|
+
circleRoot: [...skeletonBase, { "&": { borderRadius: "50%" } }]
|
|
3723
3257
|
});
|
|
3724
3258
|
}
|
|
3725
3259
|
// src/styles/slider.ts
|
|
3726
|
-
import { css as
|
|
3260
|
+
import { css as css34 } from "@vertz/ui";
|
|
3727
3261
|
var ringStyle = {
|
|
3728
3262
|
"box-shadow": "0 0 0 3px color-mix(in oklch, var(--color-ring) 50%, transparent)"
|
|
3729
3263
|
};
|
|
3730
3264
|
function createSliderStyles() {
|
|
3731
|
-
const s =
|
|
3265
|
+
const s = css34({
|
|
3732
3266
|
sliderRoot: [
|
|
3733
3267
|
"relative",
|
|
3734
3268
|
"flex",
|
|
@@ -3799,8 +3333,8 @@ function createSliderStyles() {
|
|
|
3799
3333
|
};
|
|
3800
3334
|
}
|
|
3801
3335
|
// src/styles/switch.ts
|
|
3802
|
-
import { css as
|
|
3803
|
-
var
|
|
3336
|
+
import { css as css35 } from "@vertz/ui";
|
|
3337
|
+
var focusRing12 = {
|
|
3804
3338
|
"&:focus-visible": [
|
|
3805
3339
|
"outline-none",
|
|
3806
3340
|
"border:ring",
|
|
@@ -3810,7 +3344,7 @@ var focusRing13 = {
|
|
|
3810
3344
|
]
|
|
3811
3345
|
};
|
|
3812
3346
|
function createSwitchStyles() {
|
|
3813
|
-
const s =
|
|
3347
|
+
const s = css35({
|
|
3814
3348
|
switchRoot: [
|
|
3815
3349
|
"inline-flex",
|
|
3816
3350
|
"shrink-0",
|
|
@@ -3824,7 +3358,7 @@ function createSwitchStyles() {
|
|
|
3824
3358
|
"h:5",
|
|
3825
3359
|
"w:8",
|
|
3826
3360
|
{ [DARK]: [bgOpacity("input", 80)] },
|
|
3827
|
-
|
|
3361
|
+
focusRing12,
|
|
3828
3362
|
{ "&:disabled": ["pointer-events-none", "opacity:0.5"] },
|
|
3829
3363
|
{
|
|
3830
3364
|
'&[data-state="checked"]': ["bg:primary"],
|
|
@@ -3872,7 +3406,7 @@ function createSwitchStyles() {
|
|
|
3872
3406
|
"h:3.5",
|
|
3873
3407
|
"w:6",
|
|
3874
3408
|
{ [DARK]: [bgOpacity("input", 80)] },
|
|
3875
|
-
|
|
3409
|
+
focusRing12,
|
|
3876
3410
|
{ "&:disabled": ["pointer-events-none", "opacity:0.5"] },
|
|
3877
3411
|
{
|
|
3878
3412
|
'&[data-state="checked"]': ["bg:primary"],
|
|
@@ -3917,9 +3451,9 @@ function createSwitchStyles() {
|
|
|
3917
3451
|
};
|
|
3918
3452
|
}
|
|
3919
3453
|
// src/styles/table.ts
|
|
3920
|
-
import { css as
|
|
3454
|
+
import { css as css36 } from "@vertz/ui";
|
|
3921
3455
|
function createTableStyles() {
|
|
3922
|
-
const s =
|
|
3456
|
+
const s = css36({
|
|
3923
3457
|
tableRoot: [
|
|
3924
3458
|
"w:full",
|
|
3925
3459
|
"text:sm",
|
|
@@ -3975,9 +3509,9 @@ function createTableStyles() {
|
|
|
3975
3509
|
};
|
|
3976
3510
|
}
|
|
3977
3511
|
// src/styles/tabs.ts
|
|
3978
|
-
import { css as
|
|
3512
|
+
import { css as css37 } from "@vertz/ui";
|
|
3979
3513
|
function createTabsStyles() {
|
|
3980
|
-
const s =
|
|
3514
|
+
const s = css37({
|
|
3981
3515
|
tabsList: [
|
|
3982
3516
|
"inline-flex",
|
|
3983
3517
|
"items:center",
|
|
@@ -4064,9 +3598,9 @@ function createTabsStyles() {
|
|
|
4064
3598
|
};
|
|
4065
3599
|
}
|
|
4066
3600
|
// src/styles/textarea.ts
|
|
4067
|
-
import { css as
|
|
3601
|
+
import { css as css38 } from "@vertz/ui";
|
|
4068
3602
|
function createTextarea() {
|
|
4069
|
-
const
|
|
3603
|
+
const focusRing13 = {
|
|
4070
3604
|
"&:focus-visible": [
|
|
4071
3605
|
"outline-none",
|
|
4072
3606
|
"border:ring",
|
|
@@ -4076,7 +3610,7 @@ function createTextarea() {
|
|
|
4076
3610
|
{ "outline-offset": "2px" }
|
|
4077
3611
|
]
|
|
4078
3612
|
};
|
|
4079
|
-
const s =
|
|
3613
|
+
const s = css38({
|
|
4080
3614
|
textareaBase: [
|
|
4081
3615
|
"flex",
|
|
4082
3616
|
"w:full",
|
|
@@ -4096,7 +3630,7 @@ function createTextarea() {
|
|
|
4096
3630
|
"text:sm",
|
|
4097
3631
|
"text:foreground",
|
|
4098
3632
|
"transition:colors",
|
|
4099
|
-
|
|
3633
|
+
focusRing13,
|
|
4100
3634
|
{ "&:disabled": ["pointer-events-none", "opacity:0.5"] },
|
|
4101
3635
|
{ [DARK]: [bgOpacity("input", 30)] }
|
|
4102
3636
|
]
|
|
@@ -4107,8 +3641,8 @@ function createTextarea() {
|
|
|
4107
3641
|
};
|
|
4108
3642
|
}
|
|
4109
3643
|
// src/styles/toast.ts
|
|
4110
|
-
import { css as
|
|
4111
|
-
var
|
|
3644
|
+
import { css as css39 } from "@vertz/ui";
|
|
3645
|
+
var focusRing13 = {
|
|
4112
3646
|
"&:focus-visible": [
|
|
4113
3647
|
"outline-none",
|
|
4114
3648
|
{
|
|
@@ -4118,7 +3652,7 @@ var focusRing14 = {
|
|
|
4118
3652
|
]
|
|
4119
3653
|
};
|
|
4120
3654
|
function createToastStyles() {
|
|
4121
|
-
const s =
|
|
3655
|
+
const s = css39({
|
|
4122
3656
|
toastViewport: [
|
|
4123
3657
|
"fixed",
|
|
4124
3658
|
"z:50",
|
|
@@ -4175,7 +3709,7 @@ function createToastStyles() {
|
|
|
4175
3709
|
"shrink-0",
|
|
4176
3710
|
{ "&": { height: "2rem" } },
|
|
4177
3711
|
{ "&:hover": ["bg:secondary"] },
|
|
4178
|
-
|
|
3712
|
+
focusRing13
|
|
4179
3713
|
],
|
|
4180
3714
|
toastClose: [
|
|
4181
3715
|
"absolute",
|
|
@@ -4184,7 +3718,7 @@ function createToastStyles() {
|
|
|
4184
3718
|
"cursor:pointer",
|
|
4185
3719
|
"transition:colors",
|
|
4186
3720
|
{ "&:hover": ["opacity:1"] },
|
|
4187
|
-
|
|
3721
|
+
focusRing13
|
|
4188
3722
|
]
|
|
4189
3723
|
});
|
|
4190
3724
|
return {
|
|
@@ -4198,8 +3732,8 @@ function createToastStyles() {
|
|
|
4198
3732
|
};
|
|
4199
3733
|
}
|
|
4200
3734
|
// src/styles/toggle.ts
|
|
4201
|
-
import { css as
|
|
4202
|
-
var
|
|
3735
|
+
import { css as css40 } from "@vertz/ui";
|
|
3736
|
+
var focusRing14 = {
|
|
4203
3737
|
"&:focus-visible": [
|
|
4204
3738
|
"outline-none",
|
|
4205
3739
|
{
|
|
@@ -4209,7 +3743,7 @@ var focusRing15 = {
|
|
|
4209
3743
|
]
|
|
4210
3744
|
};
|
|
4211
3745
|
function createToggleStyles() {
|
|
4212
|
-
const s =
|
|
3746
|
+
const s = css40({
|
|
4213
3747
|
toggleRoot: [
|
|
4214
3748
|
"inline-flex",
|
|
4215
3749
|
"items:center",
|
|
@@ -4222,7 +3756,7 @@ function createToggleStyles() {
|
|
|
4222
3756
|
"gap:2",
|
|
4223
3757
|
"px:3",
|
|
4224
3758
|
"h:9",
|
|
4225
|
-
|
|
3759
|
+
focusRing14,
|
|
4226
3760
|
{ "&:hover": ["bg:muted", "text:muted-foreground"] },
|
|
4227
3761
|
{ "&:disabled": ["pointer-events-none", "opacity:0.5"] },
|
|
4228
3762
|
{
|
|
@@ -4236,8 +3770,8 @@ function createToggleStyles() {
|
|
|
4236
3770
|
};
|
|
4237
3771
|
}
|
|
4238
3772
|
// src/styles/toggle-group.ts
|
|
4239
|
-
import { css as
|
|
4240
|
-
var
|
|
3773
|
+
import { css as css41 } from "@vertz/ui";
|
|
3774
|
+
var focusRing15 = {
|
|
4241
3775
|
"&:focus-visible": [
|
|
4242
3776
|
"outline-none",
|
|
4243
3777
|
{
|
|
@@ -4247,7 +3781,7 @@ var focusRing16 = {
|
|
|
4247
3781
|
]
|
|
4248
3782
|
};
|
|
4249
3783
|
function createToggleGroupStyles() {
|
|
4250
|
-
const s =
|
|
3784
|
+
const s = css41({
|
|
4251
3785
|
toggleGroupRoot: ["inline-flex", "items:center", "gap:1", "rounded:md"],
|
|
4252
3786
|
toggleGroupItem: [
|
|
4253
3787
|
"inline-flex",
|
|
@@ -4261,7 +3795,7 @@ function createToggleGroupStyles() {
|
|
|
4261
3795
|
"bg:transparent",
|
|
4262
3796
|
"cursor:pointer",
|
|
4263
3797
|
"transition:colors",
|
|
4264
|
-
|
|
3798
|
+
focusRing15,
|
|
4265
3799
|
{ "&:hover": ["bg:muted", "text:muted-foreground"] },
|
|
4266
3800
|
{ "&:disabled": ["pointer-events-none", "opacity:0.5"] },
|
|
4267
3801
|
{
|
|
@@ -4276,9 +3810,9 @@ function createToggleGroupStyles() {
|
|
|
4276
3810
|
};
|
|
4277
3811
|
}
|
|
4278
3812
|
// src/styles/tooltip.ts
|
|
4279
|
-
import { css as
|
|
3813
|
+
import { css as css42 } from "@vertz/ui";
|
|
4280
3814
|
function createTooltipStyles() {
|
|
4281
|
-
const s =
|
|
3815
|
+
const s = css42({
|
|
4282
3816
|
tooltipContent: [
|
|
4283
3817
|
"z:50",
|
|
4284
3818
|
"bg:primary",
|
|
@@ -4314,6 +3848,7 @@ function configureTheme(config) {
|
|
|
4314
3848
|
const separatorStyles = createSeparator();
|
|
4315
3849
|
const formGroupStyles = createFormGroup();
|
|
4316
3850
|
const dialogStyles = createDialogStyles();
|
|
3851
|
+
createDialogGlobalStyles();
|
|
4317
3852
|
const dropdownMenuStyles = createDropdownMenuStyles();
|
|
4318
3853
|
const selectStyles = createSelectStyles();
|
|
4319
3854
|
const tabsStyles = createTabsStyles();
|
|
@@ -4324,12 +3859,12 @@ function configureTheme(config) {
|
|
|
4324
3859
|
const radioGroupStyles = createRadioGroupStyles();
|
|
4325
3860
|
const sliderStyles = createSliderStyles();
|
|
4326
3861
|
const alertStyles = createAlertStyles();
|
|
4327
|
-
const alertDialogStyles = createAlertDialogStyles();
|
|
4328
3862
|
const accordionStyles = createAccordionStyles();
|
|
4329
3863
|
const textareaStyles = createTextarea();
|
|
4330
3864
|
const toastStyles = createToastStyles();
|
|
4331
3865
|
const tooltipStyles = createTooltipStyles();
|
|
4332
3866
|
const avatarStyles = createAvatarStyles();
|
|
3867
|
+
const emptyStateStyles = createEmptyStateStyles();
|
|
4333
3868
|
const skeletonStyles = createSkeletonStyles();
|
|
4334
3869
|
const tableStyles = createTableStyles();
|
|
4335
3870
|
const sheetStyles = createSheetStyles();
|
|
@@ -4342,6 +3877,7 @@ function configureTheme(config) {
|
|
|
4342
3877
|
const datePickerStyles = createDatePickerStyles();
|
|
4343
3878
|
const drawerStyles = createDrawerStyles();
|
|
4344
3879
|
const hoverCardStyles = createHoverCardStyles();
|
|
3880
|
+
const listStyles = createListStyles();
|
|
4345
3881
|
const menubarStyles = createMenubarStyles();
|
|
4346
3882
|
const navigationMenuStyles = createNavigationMenuStyles();
|
|
4347
3883
|
const paginationStyles = createPaginationStyles();
|
|
@@ -4351,7 +3887,6 @@ function configureTheme(config) {
|
|
|
4351
3887
|
const toggleGroupStyles = createToggleGroupStyles();
|
|
4352
3888
|
const styles = {
|
|
4353
3889
|
alert: alertStyles,
|
|
4354
|
-
alertDialog: alertDialogStyles,
|
|
4355
3890
|
button: buttonStyles,
|
|
4356
3891
|
badge: badgeStyles,
|
|
4357
3892
|
card: cardStyles,
|
|
@@ -4374,6 +3909,7 @@ function configureTheme(config) {
|
|
|
4374
3909
|
toast: toastStyles,
|
|
4375
3910
|
tooltip: tooltipStyles,
|
|
4376
3911
|
avatar: avatarStyles,
|
|
3912
|
+
emptyState: emptyStateStyles,
|
|
4377
3913
|
skeleton: skeletonStyles,
|
|
4378
3914
|
table: tableStyles,
|
|
4379
3915
|
sheet: sheetStyles,
|
|
@@ -4386,6 +3922,7 @@ function configureTheme(config) {
|
|
|
4386
3922
|
datePicker: datePickerStyles,
|
|
4387
3923
|
drawer: drawerStyles,
|
|
4388
3924
|
hoverCard: hoverCardStyles,
|
|
3925
|
+
list: listStyles,
|
|
4389
3926
|
menubar: menubarStyles,
|
|
4390
3927
|
navigationMenu: navigationMenuStyles,
|
|
4391
3928
|
pagination: paginationStyles,
|
|
@@ -4394,24 +3931,109 @@ function configureTheme(config) {
|
|
|
4394
3931
|
toggle: toggleStyles,
|
|
4395
3932
|
toggleGroup: toggleGroupStyles
|
|
4396
3933
|
};
|
|
3934
|
+
const badgeColorInlineStyles = {
|
|
3935
|
+
blue: { backgroundColor: "oklch(0.55 0.15 250)", color: "#fff" },
|
|
3936
|
+
green: { backgroundColor: "oklch(0.55 0.15 155)", color: "#fff" },
|
|
3937
|
+
yellow: { backgroundColor: "oklch(0.75 0.15 85)", color: "oklch(0.25 0.05 85)" }
|
|
3938
|
+
};
|
|
3939
|
+
const DefaultAlert = withStyles19(ComposedAlert, {
|
|
3940
|
+
root: alertStyles.root,
|
|
3941
|
+
title: alertStyles.title,
|
|
3942
|
+
description: alertStyles.description
|
|
3943
|
+
});
|
|
3944
|
+
const DestructiveAlert = withStyles19(ComposedAlert, {
|
|
3945
|
+
root: [alertStyles.root, alertStyles.destructive].join(" "),
|
|
3946
|
+
title: alertStyles.title,
|
|
3947
|
+
description: alertStyles.description
|
|
3948
|
+
});
|
|
3949
|
+
function ThemedAlert({ variant, ...rest }) {
|
|
3950
|
+
return (variant === "destructive" ? DestructiveAlert : DefaultAlert)(rest);
|
|
3951
|
+
}
|
|
3952
|
+
const Alert = Object.assign(ThemedAlert, {
|
|
3953
|
+
Title: ComposedAlert.Title,
|
|
3954
|
+
Description: ComposedAlert.Description
|
|
3955
|
+
});
|
|
4397
3956
|
const components = {
|
|
4398
|
-
Alert
|
|
4399
|
-
Button:
|
|
4400
|
-
Badge:
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
3957
|
+
Alert,
|
|
3958
|
+
Button: ({ intent, size, ...rest }) => ComposedButton({ ...rest, classes: { base: buttonStyles({ intent, size }) } }),
|
|
3959
|
+
Badge: ({ color, ...rest }) => {
|
|
3960
|
+
const style = color ? badgeColorInlineStyles[color] : undefined;
|
|
3961
|
+
return ComposedBadge({ ...rest, classes: { base: badgeStyles({ color }) }, style });
|
|
3962
|
+
},
|
|
3963
|
+
Breadcrumb: withStyles19(ComposedBreadcrumb, {
|
|
3964
|
+
nav: breadcrumbStyles.nav,
|
|
3965
|
+
list: breadcrumbStyles.list,
|
|
3966
|
+
item: breadcrumbStyles.item,
|
|
3967
|
+
link: breadcrumbStyles.link,
|
|
3968
|
+
page: breadcrumbStyles.page,
|
|
3969
|
+
separator: breadcrumbStyles.separator
|
|
3970
|
+
}),
|
|
3971
|
+
Card: withStyles19(ComposedCard, {
|
|
3972
|
+
root: cardStyles.root,
|
|
3973
|
+
header: cardStyles.header,
|
|
3974
|
+
title: cardStyles.title,
|
|
3975
|
+
description: cardStyles.description,
|
|
3976
|
+
content: cardStyles.content,
|
|
3977
|
+
footer: cardStyles.footer,
|
|
3978
|
+
action: cardStyles.action
|
|
3979
|
+
}),
|
|
3980
|
+
Input: withStyles19(ComposedInput, { base: inputStyles.base }),
|
|
3981
|
+
Textarea: withStyles19(ComposedTextarea, { base: textareaStyles.base }),
|
|
3982
|
+
Label: withStyles19(ComposedLabel, { base: labelStyles.base }),
|
|
3983
|
+
Pagination: (props) => ComposedPagination({
|
|
3984
|
+
...props,
|
|
3985
|
+
classes: {
|
|
3986
|
+
nav: paginationStyles.nav,
|
|
3987
|
+
list: paginationStyles.list,
|
|
3988
|
+
item: paginationStyles.item,
|
|
3989
|
+
link: paginationStyles.link,
|
|
3990
|
+
linkActive: paginationStyles.linkActive,
|
|
3991
|
+
navButton: paginationStyles.navButton,
|
|
3992
|
+
ellipsis: paginationStyles.ellipsis
|
|
3993
|
+
}
|
|
3994
|
+
}),
|
|
3995
|
+
Separator: withStyles19(ComposedSeparator, {
|
|
3996
|
+
base: separatorStyles.base,
|
|
3997
|
+
horizontal: separatorStyles.horizontal,
|
|
3998
|
+
vertical: separatorStyles.vertical
|
|
3999
|
+
}),
|
|
4000
|
+
FormGroup: withStyles19(ComposedFormGroup, {
|
|
4001
|
+
base: formGroupStyles.base,
|
|
4002
|
+
error: formGroupStyles.error
|
|
4003
|
+
}),
|
|
4004
|
+
Avatar: withStyles19(ComposedAvatar, {
|
|
4005
|
+
root: avatarStyles.root,
|
|
4006
|
+
image: avatarStyles.image,
|
|
4007
|
+
fallback: avatarStyles.fallback
|
|
4008
|
+
}),
|
|
4009
|
+
EmptyState: withStyles19(ComposedEmptyState, {
|
|
4010
|
+
root: emptyStateStyles.root,
|
|
4011
|
+
icon: emptyStateStyles.icon,
|
|
4012
|
+
title: emptyStateStyles.title,
|
|
4013
|
+
description: emptyStateStyles.description,
|
|
4014
|
+
action: emptyStateStyles.action
|
|
4015
|
+
}),
|
|
4016
|
+
Skeleton: Object.assign(withStyles19(ComposedSkeleton, { root: skeletonStyles.root }), {
|
|
4017
|
+
Text: withStyles19(ComposedSkeleton.Text, {
|
|
4018
|
+
root: skeletonStyles.textRoot,
|
|
4019
|
+
line: skeletonStyles.textLine
|
|
4020
|
+
}),
|
|
4021
|
+
Circle: withStyles19(ComposedSkeleton.Circle, {
|
|
4022
|
+
root: skeletonStyles.circleRoot
|
|
4023
|
+
})
|
|
4024
|
+
}),
|
|
4025
|
+
Table: withStyles19(ComposedTable, {
|
|
4026
|
+
root: tableStyles.root,
|
|
4027
|
+
header: tableStyles.header,
|
|
4028
|
+
body: tableStyles.body,
|
|
4029
|
+
row: tableStyles.row,
|
|
4030
|
+
head: tableStyles.head,
|
|
4031
|
+
cell: tableStyles.cell,
|
|
4032
|
+
caption: tableStyles.caption,
|
|
4033
|
+
footer: tableStyles.footer
|
|
4034
|
+
}),
|
|
4412
4035
|
primitives: {
|
|
4413
|
-
|
|
4414
|
-
Dialog: createThemedDialog(dialogStyles),
|
|
4036
|
+
Dialog: createThemedDialog(),
|
|
4415
4037
|
DropdownMenu: createThemedDropdownMenu(dropdownMenuStyles),
|
|
4416
4038
|
Select: createThemedSelect(selectStyles),
|
|
4417
4039
|
Tabs: createThemedTabs(tabsStyles),
|
|
@@ -4430,9 +4052,13 @@ function configureTheme(config) {
|
|
|
4430
4052
|
Collapsible: createThemedCollapsible(collapsibleStyles),
|
|
4431
4053
|
Command: createThemedCommand(commandStyles),
|
|
4432
4054
|
ContextMenu: createThemedContextMenu(contextMenuStyles),
|
|
4433
|
-
DatePicker: createThemedDatePicker(datePickerStyles,
|
|
4055
|
+
DatePicker: createThemedDatePicker(datePickerStyles, {
|
|
4056
|
+
...calendarStyles,
|
|
4057
|
+
root: calendarStyles.rootNoBorder
|
|
4058
|
+
}),
|
|
4434
4059
|
Drawer: createThemedDrawer(drawerStyles),
|
|
4435
4060
|
HoverCard: createThemedHoverCard(hoverCardStyles),
|
|
4061
|
+
List: createThemedList(listStyles),
|
|
4436
4062
|
Menubar: createThemedMenubar(menubarStyles),
|
|
4437
4063
|
NavigationMenu: createThemedNavigationMenu(navigationMenuStyles),
|
|
4438
4064
|
ResizablePanel: createThemedResizablePanel(resizablePanelStyles),
|
|
@@ -4444,5 +4070,7 @@ function configureTheme(config) {
|
|
|
4444
4070
|
return { theme, globals, styles, components };
|
|
4445
4071
|
}
|
|
4446
4072
|
export {
|
|
4447
|
-
|
|
4073
|
+
palettes,
|
|
4074
|
+
configureTheme,
|
|
4075
|
+
RADIUS_VALUES
|
|
4448
4076
|
};
|