@vertz/theme-shadcn 0.2.23 → 0.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,461 +5,31 @@ import {
5
5
  createBadge,
6
6
  createButton,
7
7
  textOpacity
8
- } from "./shared/chunk-gzfp8m46.js";
8
+ } from "./shared/chunk-kmh677y0.js";
9
9
  import {
10
- configureThemeBase
11
- } from "./shared/chunk-gjsm05ga.js";
12
-
13
- // src/components/alert.ts
14
- import { resolveChildren } from "@vertz/ui";
15
- function createAlertComponents(alertStyles) {
16
- function Alert({ variant, className, class: classProp, children }) {
17
- const effectiveClass = className ?? classProp;
18
- const el = document.createElement("div");
19
- const classes = [alertStyles.root];
20
- if (variant === "destructive") {
21
- classes.push(alertStyles.destructive);
22
- }
23
- if (effectiveClass) {
24
- classes.push(effectiveClass);
25
- }
26
- el.className = classes.join(" ");
27
- el.setAttribute("role", "alert");
28
- for (const node of resolveChildren(children)) {
29
- el.appendChild(node);
30
- }
31
- return el;
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 withStyles18
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 withStyles3 } from "@vertz/ui-primitives";
53
+ import { ComposedCalendar, withStyles as withStyles2 } from "@vertz/ui-primitives";
499
54
  function createThemedCalendar(styles) {
500
- const StyledCalendar = withStyles3(ComposedCalendar, {
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 withStyles4 } from "@vertz/ui-primitives";
73
+ import { ComposedCarousel, withStyles as withStyles3 } from "@vertz/ui-primitives";
519
74
  function createThemedCarousel(styles) {
520
- const StyledCarousel = withStyles4(ComposedCarousel, {
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 withStyles5 } from "@vertz/ui-primitives";
105
+ import { ComposedCheckbox, withStyles as withStyles4 } from "@vertz/ui-primitives";
551
106
  function createThemedCheckbox(styles) {
552
- const StyledCheckbox = withStyles5(ComposedCheckbox, {
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 withStyles6 } from "@vertz/ui-primitives";
142
+ import { ComposedCommand, withStyles as withStyles5 } from "@vertz/ui-primitives";
588
143
  function createThemedCommand(styles) {
589
- const Styled = withStyles6(ComposedCommand, {
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 withStyles7 } from "@vertz/ui-primitives";
180
+ import { ComposedContextMenu, withStyles as withStyles6 } from "@vertz/ui-primitives";
626
181
  function createThemedContextMenu(styles) {
627
- const Styled = withStyles7(ComposedContextMenu, {
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 { ComposedDialog, withStyles as withStyles8 } from "@vertz/ui-primitives";
692
- function createThemedDialog(styles) {
693
- return withStyles8(ComposedDialog, {
694
- overlay: styles.overlay,
695
- content: styles.panel,
696
- close: styles.close,
697
- header: styles.header,
698
- title: styles.title,
699
- description: styles.description,
700
- footer: styles.footer
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 as resolveChildren8 } from "@vertz/ui";
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 = resolveChildren8(children);
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 = resolveChildren8(children);
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 withStyles9 } from "@vertz/ui-primitives";
361
+ import { ComposedDropdownMenu, withStyles as withStyles7 } from "@vertz/ui-primitives";
799
362
  function createThemedDropdownMenu(styles) {
800
- const Styled = withStyles9(ComposedDropdownMenu, {
363
+ const Styled = withStyles7(ComposedDropdownMenu, {
801
364
  content: styles.content,
802
365
  item: styles.item,
803
366
  group: styles.group,
@@ -848,9 +411,9 @@ function createThemedHoverCard(styles) {
848
411
  }
849
412
 
850
413
  // src/components/primitives/menubar.ts
851
- import { ComposedMenubar, withStyles as withStyles10 } from "@vertz/ui-primitives";
414
+ import { ComposedMenubar, withStyles as withStyles8 } from "@vertz/ui-primitives";
852
415
  function createThemedMenubar(styles) {
853
- const Styled = withStyles10(ComposedMenubar, {
416
+ const Styled = withStyles8(ComposedMenubar, {
854
417
  root: styles.root,
855
418
  trigger: styles.trigger,
856
419
  content: styles.content,
@@ -874,9 +437,9 @@ function createThemedMenubar(styles) {
874
437
  }
875
438
 
876
439
  // src/components/primitives/navigation-menu.tsx
877
- import { ComposedNavigationMenu, withStyles as withStyles11 } from "@vertz/ui-primitives";
440
+ import { ComposedNavigationMenu, withStyles as withStyles9 } from "@vertz/ui-primitives";
878
441
  function createThemedNavigationMenu(styles) {
879
- const Styled = withStyles11(ComposedNavigationMenu, {
442
+ const Styled = withStyles9(ComposedNavigationMenu, {
880
443
  root: styles.root,
881
444
  list: styles.list,
882
445
  trigger: styles.trigger,
@@ -908,9 +471,9 @@ function createThemedNavigationMenu(styles) {
908
471
  }
909
472
 
910
473
  // src/components/primitives/popover.ts
911
- import { ComposedPopover, withStyles as withStyles12 } from "@vertz/ui-primitives";
474
+ import { ComposedPopover, withStyles as withStyles10 } from "@vertz/ui-primitives";
912
475
  function createThemedPopover(styles) {
913
- const StyledPopover = withStyles12(ComposedPopover, {
476
+ const StyledPopover = withStyles10(ComposedPopover, {
914
477
  content: styles.content
915
478
  });
916
479
  function PopoverRoot({ children, onOpenChange }) {
@@ -934,9 +497,9 @@ function createThemedProgress(styles) {
934
497
  }
935
498
 
936
499
  // src/components/primitives/radio-group.ts
937
- import { ComposedRadioGroup, withStyles as withStyles13 } from "@vertz/ui-primitives";
500
+ import { ComposedRadioGroup, withStyles as withStyles11 } from "@vertz/ui-primitives";
938
501
  function createThemedRadioGroup(styles) {
939
- const StyledRadioGroup = withStyles13(ComposedRadioGroup, {
502
+ const StyledRadioGroup = withStyles11(ComposedRadioGroup, {
940
503
  root: styles.root,
941
504
  item: styles.item,
942
505
  indicator: styles.indicator,
@@ -994,9 +557,9 @@ function createThemedScrollArea(styles) {
994
557
  }
995
558
 
996
559
  // src/components/primitives/select.ts
997
- import { ComposedSelect, withStyles as withStyles14 } from "@vertz/ui-primitives";
560
+ import { ComposedSelect, withStyles as withStyles12 } from "@vertz/ui-primitives";
998
561
  function createThemedSelect(styles) {
999
- const StyledSelect = withStyles14(ComposedSelect, {
562
+ const StyledSelect = withStyles12(ComposedSelect, {
1000
563
  trigger: styles.trigger,
1001
564
  content: styles.content,
1002
565
  item: styles.item,
@@ -1078,13 +641,13 @@ function createThemedSlider(styles) {
1078
641
  }
1079
642
 
1080
643
  // src/components/primitives/switch.ts
1081
- import { ComposedSwitch, withStyles as withStyles15 } from "@vertz/ui-primitives";
644
+ import { ComposedSwitch, withStyles as withStyles13 } from "@vertz/ui-primitives";
1082
645
  function createThemedSwitch(styles) {
1083
- const DefaultSwitch = withStyles15(ComposedSwitch, {
646
+ const DefaultSwitch = withStyles13(ComposedSwitch, {
1084
647
  root: styles.root,
1085
648
  thumb: styles.thumb
1086
649
  });
1087
- const SmSwitch = withStyles15(ComposedSwitch, {
650
+ const SmSwitch = withStyles13(ComposedSwitch, {
1088
651
  root: styles.rootSm,
1089
652
  thumb: styles.thumbSm
1090
653
  });
@@ -1095,14 +658,14 @@ function createThemedSwitch(styles) {
1095
658
  }
1096
659
 
1097
660
  // src/components/primitives/tabs.ts
1098
- import { ComposedTabs, withStyles as withStyles16 } from "@vertz/ui-primitives";
661
+ import { ComposedTabs, withStyles as withStyles14 } from "@vertz/ui-primitives";
1099
662
  function createThemedTabs(styles) {
1100
- const DefaultTabs = withStyles16(ComposedTabs, {
663
+ const DefaultTabs = withStyles14(ComposedTabs, {
1101
664
  list: styles.list,
1102
665
  trigger: styles.trigger,
1103
666
  panel: styles.panel
1104
667
  });
1105
- const LineTabs = withStyles16(ComposedTabs, {
668
+ const LineTabs = withStyles14(ComposedTabs, {
1106
669
  list: styles.listLine,
1107
670
  trigger: styles.triggerLine,
1108
671
  panel: styles.panel
@@ -1135,9 +698,9 @@ function createThemedToast(styles) {
1135
698
  }
1136
699
 
1137
700
  // src/components/primitives/toggle.ts
1138
- import { ComposedToggle, withStyles as withStyles17 } from "@vertz/ui-primitives";
701
+ import { ComposedToggle, withStyles as withStyles15 } from "@vertz/ui-primitives";
1139
702
  function createThemedToggle(styles) {
1140
- const StyledToggle = withStyles17(ComposedToggle, {
703
+ const StyledToggle = withStyles15(ComposedToggle, {
1141
704
  root: styles.root
1142
705
  });
1143
706
  return function ToggleRoot(props) {
@@ -1146,9 +709,9 @@ function createThemedToggle(styles) {
1146
709
  }
1147
710
 
1148
711
  // src/components/primitives/toggle-group.tsx
1149
- import { ComposedToggleGroup, withStyles as withStyles18 } from "@vertz/ui-primitives";
712
+ import { ComposedToggleGroup, withStyles as withStyles16 } from "@vertz/ui-primitives";
1150
713
  function createThemedToggleGroup(styles) {
1151
- const StyledToggleGroup = withStyles18(ComposedToggleGroup, {
714
+ const StyledToggleGroup = withStyles16(ComposedToggleGroup, {
1152
715
  root: styles.root,
1153
716
  item: styles.item
1154
717
  });
@@ -1161,9 +724,9 @@ function createThemedToggleGroup(styles) {
1161
724
  }
1162
725
 
1163
726
  // src/components/primitives/tooltip.ts
1164
- import { ComposedTooltip, withStyles as withStyles19 } from "@vertz/ui-primitives";
727
+ import { ComposedTooltip, withStyles as withStyles17 } from "@vertz/ui-primitives";
1165
728
  function createThemedTooltip(styles) {
1166
- const StyledTooltip = withStyles19(ComposedTooltip, {
729
+ const StyledTooltip = withStyles17(ComposedTooltip, {
1167
730
  content: styles.content
1168
731
  });
1169
732
  function TooltipRoot({ children, delay }) {
@@ -1175,185 +738,6 @@ function createThemedTooltip(styles) {
1175
738
  });
1176
739
  }
1177
740
 
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
741
  // src/styles/accordion.ts
1358
742
  import { css, keyframes } from "@vertz/ui";
1359
743
  var accordionDown = keyframes("vz-accordion-down", {
@@ -1375,10 +759,13 @@ function createAccordionStyles() {
1375
759
  "px:2",
1376
760
  "text:sm",
1377
761
  "font:medium",
762
+ "text:foreground",
1378
763
  "cursor:pointer",
764
+ "bg:transparent",
1379
765
  {
1380
766
  "&": {
1381
- "border-radius": "0.5rem",
767
+ border: "none",
768
+ "border-radius": "calc(var(--radius) * 1.33)",
1382
769
  "padding-top": "0.625rem",
1383
770
  "padding-bottom": "0.625rem"
1384
771
  },
@@ -1388,6 +775,7 @@ function createAccordionStyles() {
1388
775
  accordionContent: [
1389
776
  "overflow-hidden",
1390
777
  "text:sm",
778
+ "text:muted-foreground",
1391
779
  {
1392
780
  '&[data-state="open"]': [animationDecl(`${accordionDown} 200ms ease-out forwards`)]
1393
781
  },
@@ -1437,151 +825,10 @@ function createAlertStyles() {
1437
825
  css: s.css
1438
826
  };
1439
827
  }
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
828
  // src/styles/avatar.ts
1582
- import { css as css4 } from "@vertz/ui";
829
+ import { css as css3 } from "@vertz/ui";
1583
830
  function createAvatarStyles() {
1584
- const s = css4({
831
+ const s = css3({
1585
832
  avatarRoot: ["relative", "flex", "h:8", "w:8", "shrink-0", "overflow-hidden", "rounded:full"],
1586
833
  avatarImage: [
1587
834
  "h:full",
@@ -1626,9 +873,9 @@ function createAvatarStyles() {
1626
873
  };
1627
874
  }
1628
875
  // src/styles/breadcrumb.ts
1629
- import { css as css5 } from "@vertz/ui";
876
+ import { css as css4 } from "@vertz/ui";
1630
877
  function createBreadcrumbStyles() {
1631
- const s = css5({
878
+ const s = css4({
1632
879
  breadcrumbNav: [],
1633
880
  breadcrumbList: [
1634
881
  "flex",
@@ -1645,7 +892,12 @@ function createBreadcrumbStyles() {
1645
892
  }
1646
893
  }
1647
894
  ],
1648
- breadcrumbItem: ["inline-flex", "items:center", "gap:1.5"],
895
+ breadcrumbItem: [
896
+ "inline-flex",
897
+ "items:center",
898
+ "gap:1.5",
899
+ { '&:first-child > [role="presentation"]': { display: "none" } }
900
+ ],
1649
901
  breadcrumbLink: ["transition:colors", "text:foreground", { "&:hover": ["text:foreground"] }],
1650
902
  breadcrumbPage: ["font:normal", "text:foreground"],
1651
903
  breadcrumbSeparator: []
@@ -1661,8 +913,8 @@ function createBreadcrumbStyles() {
1661
913
  };
1662
914
  }
1663
915
  // src/styles/calendar.ts
1664
- import { css as css6 } from "@vertz/ui";
1665
- var focusRing2 = {
916
+ import { css as css5 } from "@vertz/ui";
917
+ var focusRing = {
1666
918
  "&:focus-visible": [
1667
919
  "outline-none",
1668
920
  {
@@ -1672,10 +924,11 @@ var focusRing2 = {
1672
924
  ]
1673
925
  };
1674
926
  function createCalendarStyles() {
1675
- const s = css6({
927
+ const s = css5({
1676
928
  calendarRoot: [
1677
929
  "w:fit",
1678
930
  "bg:background",
931
+ "text:foreground",
1679
932
  "rounded:lg",
1680
933
  "border:1",
1681
934
  "border:border",
@@ -1685,6 +938,17 @@ function createCalendarStyles() {
1685
938
  }
1686
939
  }
1687
940
  ],
941
+ calendarRootNoBorder: [
942
+ "w:fit",
943
+ "bg:background",
944
+ "text:foreground",
945
+ "rounded:md",
946
+ {
947
+ "&": {
948
+ padding: "0.5rem"
949
+ }
950
+ }
951
+ ],
1688
952
  calendarHeader: [
1689
953
  "flex",
1690
954
  "items:center",
@@ -1728,7 +992,7 @@ function createCalendarStyles() {
1728
992
  "cursor:pointer",
1729
993
  "transition:all",
1730
994
  { "&:hover": ["bg:muted", "text:foreground"] },
1731
- focusRing2,
995
+ focusRing,
1732
996
  {
1733
997
  "&": {
1734
998
  height: "1.75rem",
@@ -1784,7 +1048,7 @@ function createCalendarStyles() {
1784
1048
  "bg:transparent",
1785
1049
  "cursor:pointer",
1786
1050
  "transition:all",
1787
- focusRing2,
1051
+ focusRing,
1788
1052
  {
1789
1053
  "&": {
1790
1054
  height: "1.75rem",
@@ -1814,7 +1078,7 @@ function createCalendarStyles() {
1814
1078
  "font:medium",
1815
1079
  "bg:transparent",
1816
1080
  "cursor:pointer",
1817
- focusRing2,
1081
+ focusRing,
1818
1082
  {
1819
1083
  "&": {
1820
1084
  border: "none",
@@ -1828,7 +1092,7 @@ function createCalendarStyles() {
1828
1092
  "font:medium",
1829
1093
  "bg:transparent",
1830
1094
  "cursor:pointer",
1831
- focusRing2,
1095
+ focusRing,
1832
1096
  {
1833
1097
  "&": {
1834
1098
  border: "none",
@@ -1840,6 +1104,7 @@ function createCalendarStyles() {
1840
1104
  });
1841
1105
  return {
1842
1106
  root: s.calendarRoot,
1107
+ rootNoBorder: s.calendarRootNoBorder,
1843
1108
  header: s.calendarHeader,
1844
1109
  title: s.calendarTitle,
1845
1110
  navButton: s.calendarNavButton,
@@ -1853,9 +1118,9 @@ function createCalendarStyles() {
1853
1118
  };
1854
1119
  }
1855
1120
  // src/styles/card.ts
1856
- import { css as css7 } from "@vertz/ui";
1121
+ import { css as css6 } from "@vertz/ui";
1857
1122
  function createCard() {
1858
- const s = css7({
1123
+ const s = css6({
1859
1124
  cardRoot: [
1860
1125
  "flex",
1861
1126
  "flex-col",
@@ -1867,7 +1132,7 @@ function createCard() {
1867
1132
  "text:sm",
1868
1133
  {
1869
1134
  "&": {
1870
- "border-radius": "0.75rem",
1135
+ "border-radius": "calc(var(--radius) * 2)",
1871
1136
  "box-shadow": "0 0 0 1px color-mix(in oklch, var(--color-foreground) 10%, transparent)"
1872
1137
  }
1873
1138
  }
@@ -1894,7 +1159,7 @@ function createCard() {
1894
1159
  {
1895
1160
  "&": {
1896
1161
  "background-color": "color-mix(in oklch, var(--color-muted) 50%, transparent)",
1897
- "border-radius": "0 0 0.75rem 0.75rem",
1162
+ "border-radius": "0 0 calc(var(--radius) * 2) calc(var(--radius) * 2)",
1898
1163
  "margin-bottom": "-1rem"
1899
1164
  }
1900
1165
  }
@@ -1913,14 +1178,12 @@ function createCard() {
1913
1178
  };
1914
1179
  }
1915
1180
  // src/styles/carousel.ts
1916
- import { css as css8 } from "@vertz/ui";
1181
+ import { css as css7 } from "@vertz/ui";
1917
1182
  function createCarouselStyles() {
1918
- const s = css8({
1183
+ const s = css7({
1919
1184
  carouselRoot: ["relative"],
1920
1185
  carouselViewport: ["overflow-hidden"],
1921
- carouselSlide: [
1922
- { '&[data-state="inactive"]': [{ display: "none" }] }
1923
- ],
1186
+ carouselSlide: [{ '&[data-state="inactive"]': [{ display: "none" }] }],
1924
1187
  carouselPrevButton: [
1925
1188
  "absolute",
1926
1189
  "h:8",
@@ -1929,6 +1192,7 @@ function createCarouselStyles() {
1929
1192
  "border:1",
1930
1193
  "border:border",
1931
1194
  "bg:background",
1195
+ "text:foreground",
1932
1196
  "inline-flex",
1933
1197
  "items:center",
1934
1198
  "justify:center",
@@ -1951,6 +1215,7 @@ function createCarouselStyles() {
1951
1215
  "border:1",
1952
1216
  "border:border",
1953
1217
  "bg:background",
1218
+ "text:foreground",
1954
1219
  "inline-flex",
1955
1220
  "items:center",
1956
1221
  "justify:center",
@@ -1976,8 +1241,8 @@ function createCarouselStyles() {
1976
1241
  };
1977
1242
  }
1978
1243
  // src/styles/checkbox.ts
1979
- import { css as css9 } from "@vertz/ui";
1980
- var focusRing3 = {
1244
+ import { css as css8 } from "@vertz/ui";
1245
+ var focusRing2 = {
1981
1246
  "&:focus-visible": [
1982
1247
  "outline-none",
1983
1248
  "border:ring",
@@ -1987,7 +1252,7 @@ var focusRing3 = {
1987
1252
  ]
1988
1253
  };
1989
1254
  function createCheckboxStyles() {
1990
- const s = css9({
1255
+ const s = css8({
1991
1256
  checkboxRoot: [
1992
1257
  "shrink-0",
1993
1258
  "flex",
@@ -1999,9 +1264,9 @@ function createCheckboxStyles() {
1999
1264
  "border:input",
2000
1265
  "cursor:pointer",
2001
1266
  "transition:colors",
2002
- { "&": { padding: "0", background: "transparent", "border-radius": "4px" } },
1267
+ { "&": { padding: "0", background: "transparent", "border-radius": "calc(var(--radius) * 0.67)" } },
2003
1268
  { [DARK]: [bgOpacity("input", 30)] },
2004
- focusRing3,
1269
+ focusRing2,
2005
1270
  { "&:disabled": ["pointer-events-none", "opacity:0.5"] },
2006
1271
  {
2007
1272
  '&[data-state="checked"]': ["bg:primary", "text:primary-foreground", "border:primary"],
@@ -2051,9 +1316,9 @@ function createCheckboxStyles() {
2051
1316
  };
2052
1317
  }
2053
1318
  // src/styles/collapsible.ts
2054
- import { css as css10 } from "@vertz/ui";
1319
+ import { css as css9 } from "@vertz/ui";
2055
1320
  function createCollapsibleStyles() {
2056
- const s = css10({
1321
+ const s = css9({
2057
1322
  collapsibleContent: [
2058
1323
  "overflow-hidden",
2059
1324
  "text:sm",
@@ -2071,8 +1336,8 @@ function createCollapsibleStyles() {
2071
1336
  };
2072
1337
  }
2073
1338
  // src/styles/command.ts
2074
- import { css as css11 } from "@vertz/ui";
2075
- var focusRing4 = {
1339
+ import { css as css10 } from "@vertz/ui";
1340
+ var focusRing3 = {
2076
1341
  "&:focus-visible": [
2077
1342
  "outline-none",
2078
1343
  {
@@ -2082,7 +1347,7 @@ var focusRing4 = {
2082
1347
  ]
2083
1348
  };
2084
1349
  function createCommandStyles() {
2085
- const s = css11({
1350
+ const s = css10({
2086
1351
  commandRoot: [
2087
1352
  "flex",
2088
1353
  "flex-col",
@@ -2109,7 +1374,7 @@ function createCommandStyles() {
2109
1374
  "border-bottom": "1px solid var(--color-border)"
2110
1375
  }
2111
1376
  },
2112
- focusRing4
1377
+ focusRing3
2113
1378
  ],
2114
1379
  commandList: [
2115
1380
  "px:1",
@@ -2177,9 +1442,9 @@ function createCommandStyles() {
2177
1442
  };
2178
1443
  }
2179
1444
  // src/styles/context-menu.ts
2180
- import { css as css12 } from "@vertz/ui";
1445
+ import { css as css11 } from "@vertz/ui";
2181
1446
  function createContextMenuStyles() {
2182
- const s = css12({
1447
+ const s = css11({
2183
1448
  cmContent: [
2184
1449
  "z:50",
2185
1450
  "overflow-hidden",
@@ -2239,8 +1504,8 @@ function createContextMenuStyles() {
2239
1504
  };
2240
1505
  }
2241
1506
  // src/styles/date-picker.ts
2242
- import { css as css13 } from "@vertz/ui";
2243
- var focusRing5 = {
1507
+ import { css as css12 } from "@vertz/ui";
1508
+ var focusRing4 = {
2244
1509
  "&:focus-visible": [
2245
1510
  "outline-none",
2246
1511
  {
@@ -2250,7 +1515,7 @@ var focusRing5 = {
2250
1515
  ]
2251
1516
  };
2252
1517
  function createDatePickerStyles() {
2253
- const s = css13({
1518
+ const s = css12({
2254
1519
  datePickerTrigger: [
2255
1520
  "inline-flex",
2256
1521
  "items:center",
@@ -2259,11 +1524,12 @@ function createDatePickerStyles() {
2259
1524
  "border:1",
2260
1525
  "border:input",
2261
1526
  "bg:background",
1527
+ "text:foreground",
2262
1528
  "text:sm",
2263
1529
  "font:normal",
2264
1530
  "cursor:pointer",
2265
1531
  "transition:colors",
2266
- focusRing5,
1532
+ focusRing4,
2267
1533
  {
2268
1534
  "&": {
2269
1535
  height: "2.5rem",
@@ -2281,6 +1547,7 @@ function createDatePickerStyles() {
2281
1547
  "border:1",
2282
1548
  "border:border",
2283
1549
  "shadow:md",
1550
+ "overflow-hidden",
2284
1551
  { "&": { padding: "0" } }
2285
1552
  ]
2286
1553
  });
@@ -2291,8 +1558,8 @@ function createDatePickerStyles() {
2291
1558
  };
2292
1559
  }
2293
1560
  // src/styles/dialog.ts
2294
- import { css as css14 } from "@vertz/ui";
2295
- var focusRing6 = {
1561
+ import { css as css13, globalCss, injectCSS } from "@vertz/ui";
1562
+ var focusRing5 = {
2296
1563
  "&:focus-visible": [
2297
1564
  "outline-none",
2298
1565
  {
@@ -2302,7 +1569,7 @@ var focusRing6 = {
2302
1569
  ]
2303
1570
  };
2304
1571
  function createDialogStyles() {
2305
- const s = css14({
1572
+ const s = css13({
2306
1573
  dialogOverlay: [
2307
1574
  "fixed",
2308
1575
  "inset:0",
@@ -2323,6 +1590,7 @@ function createDialogStyles() {
2323
1590
  ],
2324
1591
  dialogPanel: [
2325
1592
  "bg:background",
1593
+ "text:foreground",
2326
1594
  "gap:4",
2327
1595
  {
2328
1596
  "&": {
@@ -2330,7 +1598,7 @@ function createDialogStyles() {
2330
1598
  width: "100%",
2331
1599
  "max-width": "calc(100% - 2rem)",
2332
1600
  "box-shadow": "0 0 0 1px color-mix(in oklch, var(--color-foreground) 10%, transparent)",
2333
- "border-radius": "0.75rem",
1601
+ "border-radius": "calc(var(--radius) * 2)",
2334
1602
  padding: "1rem",
2335
1603
  "font-size": "0.875rem",
2336
1604
  margin: "auto",
@@ -2369,6 +1637,7 @@ function createDialogStyles() {
2369
1637
  }
2370
1638
  ],
2371
1639
  dialogTitle: [
1640
+ "text:foreground",
2372
1641
  {
2373
1642
  "&": {
2374
1643
  "font-size": "1rem",
@@ -2401,7 +1670,7 @@ function createDialogStyles() {
2401
1670
  "&:hover": { opacity: "1" },
2402
1671
  "&:disabled": { "pointer-events": "none" }
2403
1672
  },
2404
- focusRing6
1673
+ focusRing5
2405
1674
  ],
2406
1675
  dialogFooter: [
2407
1676
  "flex",
@@ -2411,7 +1680,7 @@ function createDialogStyles() {
2411
1680
  "flex-direction": "column-reverse",
2412
1681
  "background-color": "color-mix(in oklch, var(--color-muted) 50%, transparent)",
2413
1682
  margin: "0 -1rem -1rem -1rem",
2414
- "border-radius": "0 0 0.75rem 0.75rem",
1683
+ "border-radius": "0 0 calc(var(--radius) * 2) calc(var(--radius) * 2)",
2415
1684
  "border-top": "1px solid var(--color-border)",
2416
1685
  padding: "1rem"
2417
1686
  },
@@ -2433,9 +1702,148 @@ function createDialogStyles() {
2433
1702
  css: s.css
2434
1703
  };
2435
1704
  }
1705
+ function createDialogGlobalStyles() {
1706
+ const output = globalCss({
1707
+ "dialog[data-dialog-wrapper]": {
1708
+ background: "transparent",
1709
+ border: "none",
1710
+ padding: "0",
1711
+ maxWidth: "100vw",
1712
+ maxHeight: "100vh",
1713
+ overflow: "visible"
1714
+ },
1715
+ "dialog[data-dialog-wrapper]::backdrop": {
1716
+ backgroundColor: "oklch(0 0 0 / 10%)",
1717
+ backdropFilter: "blur(4px)",
1718
+ WebkitBackdropFilter: "blur(4px)"
1719
+ },
1720
+ 'dialog[data-dialog-wrapper][data-state="open"]::backdrop': {
1721
+ animation: "vz-fade-in 100ms ease-out forwards"
1722
+ },
1723
+ 'dialog[data-dialog-wrapper][data-state="closed"]::backdrop': {
1724
+ animation: "vz-fade-out 100ms ease-out forwards"
1725
+ },
1726
+ 'dialog[data-dialog-wrapper] > [data-part="panel"]': {
1727
+ position: "relative",
1728
+ display: "grid",
1729
+ gap: "1rem",
1730
+ width: "100%",
1731
+ maxWidth: "calc(100% - 2rem)",
1732
+ boxShadow: "0 0 0 1px color-mix(in oklch, var(--color-foreground) 10%, transparent)",
1733
+ borderRadius: "calc(var(--radius) * 2)",
1734
+ padding: "1rem",
1735
+ fontSize: "0.875rem",
1736
+ margin: "auto",
1737
+ height: "fit-content",
1738
+ outline: "none",
1739
+ containerType: "inline-size",
1740
+ backgroundColor: "var(--color-background)"
1741
+ },
1742
+ 'dialog[data-dialog-wrapper][data-state="open"] > [data-part="panel"]': {
1743
+ animation: "vz-zoom-in 100ms ease-out forwards"
1744
+ },
1745
+ 'dialog[data-dialog-wrapper][data-state="closed"] > [data-part="panel"]': {
1746
+ animation: "vz-zoom-out 100ms ease-out forwards"
1747
+ },
1748
+ 'dialog[data-dialog-wrapper] [data-part="header"]': {
1749
+ display: "flex",
1750
+ flexDirection: "column",
1751
+ gap: "0.5rem"
1752
+ },
1753
+ 'dialog[data-dialog-wrapper] [data-part="title"]': {
1754
+ fontSize: "1rem",
1755
+ lineHeight: "1",
1756
+ fontWeight: "500"
1757
+ },
1758
+ 'dialog[data-dialog-wrapper] [data-part="description"]': {
1759
+ fontSize: "0.875rem",
1760
+ color: "var(--color-muted-foreground)"
1761
+ },
1762
+ 'dialog[data-dialog-wrapper] [data-part="body"]': {
1763
+ overflow: "auto"
1764
+ },
1765
+ 'dialog[data-dialog-wrapper] [data-part="footer"]': {
1766
+ display: "flex",
1767
+ gap: "0.5rem",
1768
+ flexDirection: "column-reverse",
1769
+ backgroundColor: "color-mix(in oklch, var(--color-muted) 50%, transparent)",
1770
+ margin: "0 -1rem -1rem -1rem",
1771
+ borderRadius: "0 0 calc(var(--radius) * 2) calc(var(--radius) * 2)",
1772
+ borderTop: "1px solid var(--color-border)",
1773
+ padding: "1rem"
1774
+ },
1775
+ 'dialog[data-dialog-wrapper] [data-part="close"]': {
1776
+ position: "absolute",
1777
+ top: "0.5rem",
1778
+ right: "0.5rem",
1779
+ opacity: "0.7",
1780
+ transition: "opacity 150ms",
1781
+ display: "inline-flex",
1782
+ alignItems: "center",
1783
+ justifyContent: "center",
1784
+ width: "1rem",
1785
+ height: "1rem",
1786
+ background: "none",
1787
+ border: "none",
1788
+ color: "currentColor",
1789
+ padding: "0",
1790
+ cursor: "pointer",
1791
+ borderRadius: "calc(var(--radius) * 0.33)"
1792
+ },
1793
+ 'dialog[data-dialog-wrapper] [data-part="close"]:hover': {
1794
+ opacity: "1"
1795
+ },
1796
+ 'dialog[data-dialog-wrapper] [data-part="cancel"]': {
1797
+ background: "none",
1798
+ border: "1px solid var(--color-border)",
1799
+ borderRadius: "var(--radius)",
1800
+ padding: "0.5rem 1rem",
1801
+ cursor: "pointer",
1802
+ fontSize: "0.875rem",
1803
+ color: "var(--color-foreground)"
1804
+ },
1805
+ 'dialog[data-dialog-wrapper] [data-part="confirm-cancel"]': {
1806
+ background: "none",
1807
+ border: "1px solid var(--color-border)",
1808
+ borderRadius: "var(--radius)",
1809
+ padding: "0.5rem 1rem",
1810
+ cursor: "pointer",
1811
+ fontSize: "0.875rem",
1812
+ color: "var(--color-foreground)"
1813
+ },
1814
+ 'dialog[data-dialog-wrapper] [data-part="confirm-action"]': {
1815
+ border: "none",
1816
+ borderRadius: "var(--radius)",
1817
+ padding: "0.5rem 1rem",
1818
+ cursor: "pointer",
1819
+ fontSize: "0.875rem",
1820
+ fontWeight: "500",
1821
+ color: "var(--color-primary-foreground)",
1822
+ backgroundColor: "var(--color-primary)"
1823
+ },
1824
+ 'dialog[data-dialog-wrapper] [data-part="confirm-action"][data-intent="danger"]': {
1825
+ color: "var(--color-destructive-foreground)",
1826
+ backgroundColor: "var(--color-destructive)"
1827
+ }
1828
+ });
1829
+ injectCSS(`
1830
+ @media (min-width: 640px) {
1831
+ dialog[data-dialog-wrapper] > [data-part="panel"] {
1832
+ max-width: 24rem;
1833
+ }
1834
+ }
1835
+ @container (min-width: 20rem) {
1836
+ dialog[data-dialog-wrapper] [data-part="footer"] {
1837
+ flex-direction: row;
1838
+ justify-content: flex-end;
1839
+ }
1840
+ }
1841
+ `.trim());
1842
+ return output;
1843
+ }
2436
1844
  // src/styles/drawer.ts
2437
- import { css as css15 } from "@vertz/ui";
2438
- var focusRing7 = {
1845
+ import { css as css14 } from "@vertz/ui";
1846
+ var focusRing6 = {
2439
1847
  "&:focus-visible": [
2440
1848
  "outline-none",
2441
1849
  {
@@ -2455,7 +1863,7 @@ var PANEL_BASE = [
2455
1863
  "gap:4"
2456
1864
  ];
2457
1865
  function createDrawerStyles() {
2458
- const s = css15({
1866
+ const s = css14({
2459
1867
  drawerOverlay: [
2460
1868
  "fixed",
2461
1869
  "inset:0",
@@ -2483,7 +1891,7 @@ function createDrawerStyles() {
2483
1891
  margin: "0",
2484
1892
  outline: "none",
2485
1893
  border: "none",
2486
- "border-radius": "0 0.75rem 0.75rem 0"
1894
+ "border-radius": "0 calc(var(--radius) * 2) calc(var(--radius) * 2) 0"
2487
1895
  },
2488
1896
  '&:not([open]):not([data-state="open"])': { display: "none" },
2489
1897
  "&::backdrop": {
@@ -2516,7 +1924,7 @@ function createDrawerStyles() {
2516
1924
  margin: "0",
2517
1925
  outline: "none",
2518
1926
  border: "none",
2519
- "border-radius": "0.75rem 0 0 0.75rem"
1927
+ "border-radius": "calc(var(--radius) * 2) 0 0 calc(var(--radius) * 2)"
2520
1928
  },
2521
1929
  '&:not([open]):not([data-state="open"])': { display: "none" },
2522
1930
  "&::backdrop": {
@@ -2547,7 +1955,7 @@ function createDrawerStyles() {
2547
1955
  margin: "0",
2548
1956
  outline: "none",
2549
1957
  border: "none",
2550
- "border-radius": "0 0 0.75rem 0.75rem"
1958
+ "border-radius": "0 0 calc(var(--radius) * 2) calc(var(--radius) * 2)"
2551
1959
  },
2552
1960
  '&:not([open]):not([data-state="open"])': { display: "none" },
2553
1961
  "&::backdrop": {
@@ -2578,7 +1986,7 @@ function createDrawerStyles() {
2578
1986
  margin: "0",
2579
1987
  outline: "none",
2580
1988
  border: "none",
2581
- "border-radius": "0.75rem 0.75rem 0 0"
1989
+ "border-radius": "calc(var(--radius) * 2) calc(var(--radius) * 2) 0 0"
2582
1990
  },
2583
1991
  '&:not([open]):not([data-state="open"])': { display: "none" },
2584
1992
  "&::backdrop": {
@@ -2634,7 +2042,7 @@ function createDrawerStyles() {
2634
2042
  "cursor:pointer",
2635
2043
  "transition:colors",
2636
2044
  { "&:hover": ["opacity:1"] },
2637
- focusRing7
2045
+ focusRing6
2638
2046
  ]
2639
2047
  });
2640
2048
  return {
@@ -2653,9 +2061,9 @@ function createDrawerStyles() {
2653
2061
  };
2654
2062
  }
2655
2063
  // src/styles/dropdown-menu.ts
2656
- import { css as css16 } from "@vertz/ui";
2064
+ import { css as css15 } from "@vertz/ui";
2657
2065
  function createDropdownMenuStyles() {
2658
- const s = css16({
2066
+ const s = css15({
2659
2067
  dmContent: [
2660
2068
  "z:50",
2661
2069
  "overflow-hidden",
@@ -2714,6 +2122,17 @@ function createDropdownMenuStyles() {
2714
2122
  css: s.css
2715
2123
  };
2716
2124
  }
2125
+ // src/styles/empty-state.ts
2126
+ import { css as css16 } from "@vertz/ui";
2127
+ function createEmptyStateStyles() {
2128
+ return css16({
2129
+ root: ["flex", "flex-col", "items:center", "justify:center", "py:12", "text:center"],
2130
+ icon: ["mb:3", "text:muted-foreground"],
2131
+ title: ["font:lg", "font:semibold", "text:foreground", "mb:1"],
2132
+ description: ["text:sm", "text:muted-foreground", "mb:4", "max-w:md"],
2133
+ action: ["mt:2"]
2134
+ });
2135
+ }
2717
2136
  // src/styles/form-group.ts
2718
2137
  import { css as css17 } from "@vertz/ui";
2719
2138
  function createFormGroup() {
@@ -2764,7 +2183,7 @@ function createHoverCardStyles() {
2764
2183
  // src/styles/input.ts
2765
2184
  import { css as css19 } from "@vertz/ui";
2766
2185
  function createInput() {
2767
- const focusRing8 = {
2186
+ const focusRing7 = {
2768
2187
  "&:focus-visible": [
2769
2188
  "outline-none",
2770
2189
  "border:ring",
@@ -2793,7 +2212,7 @@ function createInput() {
2793
2212
  "text:sm",
2794
2213
  "text:foreground",
2795
2214
  "transition:colors",
2796
- focusRing8,
2215
+ focusRing7,
2797
2216
  { "&:disabled": ["pointer-events-none", "opacity:0.5"] },
2798
2217
  { [DARK]: [bgOpacity("input", 30)] },
2799
2218
  {
@@ -2845,6 +2264,7 @@ function createMenubarStyles() {
2845
2264
  "border:1",
2846
2265
  "border:border",
2847
2266
  "bg:background",
2267
+ "text:foreground",
2848
2268
  "p:1",
2849
2269
  { "&": { "column-gap": "0.25rem" } }
2850
2270
  ],
@@ -2984,7 +2404,7 @@ function createNavigationMenuStyles() {
2984
2404
  }
2985
2405
  // src/styles/pagination.ts
2986
2406
  import { css as css23 } from "@vertz/ui";
2987
- var focusRing8 = {
2407
+ var focusRing7 = {
2988
2408
  "&:focus-visible": [
2989
2409
  "outline-none",
2990
2410
  {
@@ -3029,7 +2449,7 @@ function createPaginationStyles() {
3029
2449
  "bg:transparent",
3030
2450
  "cursor:pointer",
3031
2451
  "transition:all",
3032
- focusRing8,
2452
+ focusRing7,
3033
2453
  {
3034
2454
  "&": {
3035
2455
  height: "2rem",
@@ -3051,8 +2471,9 @@ function createPaginationStyles() {
3051
2471
  "border:1",
3052
2472
  "border:border",
3053
2473
  "bg:background",
2474
+ "text:foreground",
3054
2475
  "cursor:pointer",
3055
- focusRing8,
2476
+ focusRing7,
3056
2477
  {
3057
2478
  "&": {
3058
2479
  height: "2rem",
@@ -3071,7 +2492,7 @@ function createPaginationStyles() {
3071
2492
  "bg:transparent",
3072
2493
  "cursor:pointer",
3073
2494
  "transition:all",
3074
- focusRing8,
2495
+ focusRing7,
3075
2496
  {
3076
2497
  "&": {
3077
2498
  height: "2rem",
@@ -3168,7 +2589,7 @@ function createProgressStyles() {
3168
2589
  }
3169
2590
  // src/styles/radio-group.ts
3170
2591
  import { css as css26 } from "@vertz/ui";
3171
- var focusRing9 = {
2592
+ var focusRing8 = {
3172
2593
  "&:focus-visible": [
3173
2594
  "outline-none",
3174
2595
  "border:ring",
@@ -3200,7 +2621,7 @@ function createRadioGroupStyles() {
3200
2621
  }
3201
2622
  },
3202
2623
  { [DARK]: [bgOpacity("input", 30)] },
3203
- focusRing9,
2624
+ focusRing8,
3204
2625
  { "&:disabled": ["pointer-events-none", "opacity:0.5"] },
3205
2626
  {
3206
2627
  '&[data-state="checked"]': ["bg:primary", "text:primary-foreground", "border:primary"]
@@ -3244,7 +2665,7 @@ function createRadioGroupStyles() {
3244
2665
  }
3245
2666
  // src/styles/resizable-panel.ts
3246
2667
  import { css as css27 } from "@vertz/ui";
3247
- var focusRing10 = {
2668
+ var focusRing9 = {
3248
2669
  "&:focus-visible": [
3249
2670
  "outline-none",
3250
2671
  {
@@ -3263,7 +2684,7 @@ function createResizablePanelStyles() {
3263
2684
  "items:center",
3264
2685
  "justify:center",
3265
2686
  "bg:border",
3266
- focusRing10,
2687
+ focusRing9,
3267
2688
  {
3268
2689
  "&:hover": ["bg:muted-foreground"]
3269
2690
  },
@@ -3319,7 +2740,12 @@ function createScrollAreaStyles() {
3319
2740
  ]
3320
2741
  }
3321
2742
  ],
3322
- scrollAreaThumb: ["relative", "flex-1", "rounded:full", "bg:border"]
2743
+ scrollAreaThumb: [
2744
+ "relative",
2745
+ "flex-1",
2746
+ "rounded:full",
2747
+ { "&": { "background-color": "color-mix(in oklch, var(--color-foreground) 40%, transparent)" } }
2748
+ ]
3323
2749
  });
3324
2750
  return {
3325
2751
  root: s.scrollAreaRoot,
@@ -3331,7 +2757,7 @@ function createScrollAreaStyles() {
3331
2757
  }
3332
2758
  // src/styles/select.ts
3333
2759
  import { css as css29 } from "@vertz/ui";
3334
- var focusRing11 = {
2760
+ var focusRing10 = {
3335
2761
  "&:focus-visible": [
3336
2762
  "outline-none",
3337
2763
  {
@@ -3364,7 +2790,7 @@ function createSelectStyles() {
3364
2790
  "padding-left": "0.625rem"
3365
2791
  }
3366
2792
  },
3367
- focusRing11,
2793
+ focusRing10,
3368
2794
  { "&:disabled": ["pointer-events-none", "opacity:0.5"] },
3369
2795
  { '&[data-state="open"]': ["border:ring"] },
3370
2796
  { [DARK]: [bgOpacity("input", 30)] },
@@ -3497,7 +2923,7 @@ function createSeparator() {
3497
2923
  }
3498
2924
  // src/styles/sheet.ts
3499
2925
  import { css as css31 } from "@vertz/ui";
3500
- var focusRing12 = {
2926
+ var focusRing11 = {
3501
2927
  "&:focus-visible": [
3502
2928
  "outline-none",
3503
2929
  {
@@ -3696,7 +3122,7 @@ function createSheetStyles() {
3696
3122
  }
3697
3123
  },
3698
3124
  { "&:hover": ["opacity:1"] },
3699
- focusRing12
3125
+ focusRing11
3700
3126
  ]
3701
3127
  });
3702
3128
  return {
@@ -3717,9 +3143,17 @@ var pulse = keyframes2("vz-skeleton-pulse", {
3717
3143
  "0%, 100%": { opacity: "1" },
3718
3144
  "50%": { opacity: "0.5" }
3719
3145
  });
3146
+ var skeletonBase = [
3147
+ "bg:muted",
3148
+ "rounded:md",
3149
+ { "&": { animation: `${pulse} 2s ease-in-out infinite` } }
3150
+ ];
3720
3151
  function createSkeletonStyles() {
3721
3152
  return css32({
3722
- base: ["bg:muted", "rounded:md", { "&": { animation: `${pulse} 2s ease-in-out infinite` } }]
3153
+ root: [...skeletonBase],
3154
+ textRoot: ["flex", "flex-col"],
3155
+ textLine: [...skeletonBase, "h:4"],
3156
+ circleRoot: [...skeletonBase, { "&": { borderRadius: "50%" } }]
3723
3157
  });
3724
3158
  }
3725
3159
  // src/styles/slider.ts
@@ -3800,7 +3234,7 @@ function createSliderStyles() {
3800
3234
  }
3801
3235
  // src/styles/switch.ts
3802
3236
  import { css as css34 } from "@vertz/ui";
3803
- var focusRing13 = {
3237
+ var focusRing12 = {
3804
3238
  "&:focus-visible": [
3805
3239
  "outline-none",
3806
3240
  "border:ring",
@@ -3824,7 +3258,7 @@ function createSwitchStyles() {
3824
3258
  "h:5",
3825
3259
  "w:8",
3826
3260
  { [DARK]: [bgOpacity("input", 80)] },
3827
- focusRing13,
3261
+ focusRing12,
3828
3262
  { "&:disabled": ["pointer-events-none", "opacity:0.5"] },
3829
3263
  {
3830
3264
  '&[data-state="checked"]': ["bg:primary"],
@@ -3872,7 +3306,7 @@ function createSwitchStyles() {
3872
3306
  "h:3.5",
3873
3307
  "w:6",
3874
3308
  { [DARK]: [bgOpacity("input", 80)] },
3875
- focusRing13,
3309
+ focusRing12,
3876
3310
  { "&:disabled": ["pointer-events-none", "opacity:0.5"] },
3877
3311
  {
3878
3312
  '&[data-state="checked"]': ["bg:primary"],
@@ -4066,7 +3500,7 @@ function createTabsStyles() {
4066
3500
  // src/styles/textarea.ts
4067
3501
  import { css as css37 } from "@vertz/ui";
4068
3502
  function createTextarea() {
4069
- const focusRing14 = {
3503
+ const focusRing13 = {
4070
3504
  "&:focus-visible": [
4071
3505
  "outline-none",
4072
3506
  "border:ring",
@@ -4096,7 +3530,7 @@ function createTextarea() {
4096
3530
  "text:sm",
4097
3531
  "text:foreground",
4098
3532
  "transition:colors",
4099
- focusRing14,
3533
+ focusRing13,
4100
3534
  { "&:disabled": ["pointer-events-none", "opacity:0.5"] },
4101
3535
  { [DARK]: [bgOpacity("input", 30)] }
4102
3536
  ]
@@ -4108,7 +3542,7 @@ function createTextarea() {
4108
3542
  }
4109
3543
  // src/styles/toast.ts
4110
3544
  import { css as css38 } from "@vertz/ui";
4111
- var focusRing14 = {
3545
+ var focusRing13 = {
4112
3546
  "&:focus-visible": [
4113
3547
  "outline-none",
4114
3548
  {
@@ -4175,7 +3609,7 @@ function createToastStyles() {
4175
3609
  "shrink-0",
4176
3610
  { "&": { height: "2rem" } },
4177
3611
  { "&:hover": ["bg:secondary"] },
4178
- focusRing14
3612
+ focusRing13
4179
3613
  ],
4180
3614
  toastClose: [
4181
3615
  "absolute",
@@ -4184,7 +3618,7 @@ function createToastStyles() {
4184
3618
  "cursor:pointer",
4185
3619
  "transition:colors",
4186
3620
  { "&:hover": ["opacity:1"] },
4187
- focusRing14
3621
+ focusRing13
4188
3622
  ]
4189
3623
  });
4190
3624
  return {
@@ -4199,7 +3633,7 @@ function createToastStyles() {
4199
3633
  }
4200
3634
  // src/styles/toggle.ts
4201
3635
  import { css as css39 } from "@vertz/ui";
4202
- var focusRing15 = {
3636
+ var focusRing14 = {
4203
3637
  "&:focus-visible": [
4204
3638
  "outline-none",
4205
3639
  {
@@ -4222,7 +3656,7 @@ function createToggleStyles() {
4222
3656
  "gap:2",
4223
3657
  "px:3",
4224
3658
  "h:9",
4225
- focusRing15,
3659
+ focusRing14,
4226
3660
  { "&:hover": ["bg:muted", "text:muted-foreground"] },
4227
3661
  { "&:disabled": ["pointer-events-none", "opacity:0.5"] },
4228
3662
  {
@@ -4237,7 +3671,7 @@ function createToggleStyles() {
4237
3671
  }
4238
3672
  // src/styles/toggle-group.ts
4239
3673
  import { css as css40 } from "@vertz/ui";
4240
- var focusRing16 = {
3674
+ var focusRing15 = {
4241
3675
  "&:focus-visible": [
4242
3676
  "outline-none",
4243
3677
  {
@@ -4261,7 +3695,7 @@ function createToggleGroupStyles() {
4261
3695
  "bg:transparent",
4262
3696
  "cursor:pointer",
4263
3697
  "transition:colors",
4264
- focusRing16,
3698
+ focusRing15,
4265
3699
  { "&:hover": ["bg:muted", "text:muted-foreground"] },
4266
3700
  { "&:disabled": ["pointer-events-none", "opacity:0.5"] },
4267
3701
  {
@@ -4314,6 +3748,7 @@ function configureTheme(config) {
4314
3748
  const separatorStyles = createSeparator();
4315
3749
  const formGroupStyles = createFormGroup();
4316
3750
  const dialogStyles = createDialogStyles();
3751
+ createDialogGlobalStyles();
4317
3752
  const dropdownMenuStyles = createDropdownMenuStyles();
4318
3753
  const selectStyles = createSelectStyles();
4319
3754
  const tabsStyles = createTabsStyles();
@@ -4324,12 +3759,12 @@ function configureTheme(config) {
4324
3759
  const radioGroupStyles = createRadioGroupStyles();
4325
3760
  const sliderStyles = createSliderStyles();
4326
3761
  const alertStyles = createAlertStyles();
4327
- const alertDialogStyles = createAlertDialogStyles();
4328
3762
  const accordionStyles = createAccordionStyles();
4329
3763
  const textareaStyles = createTextarea();
4330
3764
  const toastStyles = createToastStyles();
4331
3765
  const tooltipStyles = createTooltipStyles();
4332
3766
  const avatarStyles = createAvatarStyles();
3767
+ const emptyStateStyles = createEmptyStateStyles();
4333
3768
  const skeletonStyles = createSkeletonStyles();
4334
3769
  const tableStyles = createTableStyles();
4335
3770
  const sheetStyles = createSheetStyles();
@@ -4351,7 +3786,6 @@ function configureTheme(config) {
4351
3786
  const toggleGroupStyles = createToggleGroupStyles();
4352
3787
  const styles = {
4353
3788
  alert: alertStyles,
4354
- alertDialog: alertDialogStyles,
4355
3789
  button: buttonStyles,
4356
3790
  badge: badgeStyles,
4357
3791
  card: cardStyles,
@@ -4374,6 +3808,7 @@ function configureTheme(config) {
4374
3808
  toast: toastStyles,
4375
3809
  tooltip: tooltipStyles,
4376
3810
  avatar: avatarStyles,
3811
+ emptyState: emptyStateStyles,
4377
3812
  skeleton: skeletonStyles,
4378
3813
  table: tableStyles,
4379
3814
  sheet: sheetStyles,
@@ -4394,24 +3829,109 @@ function configureTheme(config) {
4394
3829
  toggle: toggleStyles,
4395
3830
  toggleGroup: toggleGroupStyles
4396
3831
  };
3832
+ const badgeColorInlineStyles = {
3833
+ blue: { backgroundColor: "oklch(0.55 0.15 250)", color: "#fff" },
3834
+ green: { backgroundColor: "oklch(0.55 0.15 155)", color: "#fff" },
3835
+ yellow: { backgroundColor: "oklch(0.75 0.15 85)", color: "oklch(0.25 0.05 85)" }
3836
+ };
3837
+ const DefaultAlert = withStyles18(ComposedAlert, {
3838
+ root: alertStyles.root,
3839
+ title: alertStyles.title,
3840
+ description: alertStyles.description
3841
+ });
3842
+ const DestructiveAlert = withStyles18(ComposedAlert, {
3843
+ root: [alertStyles.root, alertStyles.destructive].join(" "),
3844
+ title: alertStyles.title,
3845
+ description: alertStyles.description
3846
+ });
3847
+ function ThemedAlert({ variant, ...rest }) {
3848
+ return (variant === "destructive" ? DestructiveAlert : DefaultAlert)(rest);
3849
+ }
3850
+ const Alert = Object.assign(ThemedAlert, {
3851
+ Title: ComposedAlert.Title,
3852
+ Description: ComposedAlert.Description
3853
+ });
4397
3854
  const components = {
4398
- Alert: createAlertComponents(alertStyles),
4399
- Button: createButtonComponent(buttonStyles),
4400
- Badge: createBadgeComponent(badgeStyles),
4401
- Breadcrumb: createBreadcrumbComponent(breadcrumbStyles),
4402
- Card: createCardComponents(cardStyles),
4403
- Input: createInputComponent(inputStyles),
4404
- Textarea: createTextareaComponent(textareaStyles),
4405
- Label: createLabelComponent(labelStyles),
4406
- Pagination: createPaginationComponent(paginationStyles),
4407
- Separator: createSeparatorComponent(separatorStyles),
4408
- FormGroup: createFormGroupComponents(formGroupStyles),
4409
- Avatar: createAvatarComponents(avatarStyles),
4410
- Skeleton: createSkeletonComponents(skeletonStyles),
4411
- Table: createTableComponents(tableStyles),
3855
+ Alert,
3856
+ Button: ({ intent, size, ...rest }) => ComposedButton({ ...rest, classes: { base: buttonStyles({ intent, size }) } }),
3857
+ Badge: ({ color, ...rest }) => {
3858
+ const style = color ? badgeColorInlineStyles[color] : undefined;
3859
+ return ComposedBadge({ ...rest, classes: { base: badgeStyles({ color }) }, style });
3860
+ },
3861
+ Breadcrumb: withStyles18(ComposedBreadcrumb, {
3862
+ nav: breadcrumbStyles.nav,
3863
+ list: breadcrumbStyles.list,
3864
+ item: breadcrumbStyles.item,
3865
+ link: breadcrumbStyles.link,
3866
+ page: breadcrumbStyles.page,
3867
+ separator: breadcrumbStyles.separator
3868
+ }),
3869
+ Card: withStyles18(ComposedCard, {
3870
+ root: cardStyles.root,
3871
+ header: cardStyles.header,
3872
+ title: cardStyles.title,
3873
+ description: cardStyles.description,
3874
+ content: cardStyles.content,
3875
+ footer: cardStyles.footer,
3876
+ action: cardStyles.action
3877
+ }),
3878
+ Input: withStyles18(ComposedInput, { base: inputStyles.base }),
3879
+ Textarea: withStyles18(ComposedTextarea, { base: textareaStyles.base }),
3880
+ Label: withStyles18(ComposedLabel, { base: labelStyles.base }),
3881
+ Pagination: (props) => ComposedPagination({
3882
+ ...props,
3883
+ classes: {
3884
+ nav: paginationStyles.nav,
3885
+ list: paginationStyles.list,
3886
+ item: paginationStyles.item,
3887
+ link: paginationStyles.link,
3888
+ linkActive: paginationStyles.linkActive,
3889
+ navButton: paginationStyles.navButton,
3890
+ ellipsis: paginationStyles.ellipsis
3891
+ }
3892
+ }),
3893
+ Separator: withStyles18(ComposedSeparator, {
3894
+ base: separatorStyles.base,
3895
+ horizontal: separatorStyles.horizontal,
3896
+ vertical: separatorStyles.vertical
3897
+ }),
3898
+ FormGroup: withStyles18(ComposedFormGroup, {
3899
+ base: formGroupStyles.base,
3900
+ error: formGroupStyles.error
3901
+ }),
3902
+ Avatar: withStyles18(ComposedAvatar, {
3903
+ root: avatarStyles.root,
3904
+ image: avatarStyles.image,
3905
+ fallback: avatarStyles.fallback
3906
+ }),
3907
+ EmptyState: withStyles18(ComposedEmptyState, {
3908
+ root: emptyStateStyles.root,
3909
+ icon: emptyStateStyles.icon,
3910
+ title: emptyStateStyles.title,
3911
+ description: emptyStateStyles.description,
3912
+ action: emptyStateStyles.action
3913
+ }),
3914
+ Skeleton: Object.assign(withStyles18(ComposedSkeleton, { root: skeletonStyles.root }), {
3915
+ Text: withStyles18(ComposedSkeleton.Text, {
3916
+ root: skeletonStyles.textRoot,
3917
+ line: skeletonStyles.textLine
3918
+ }),
3919
+ Circle: withStyles18(ComposedSkeleton.Circle, {
3920
+ root: skeletonStyles.circleRoot
3921
+ })
3922
+ }),
3923
+ Table: withStyles18(ComposedTable, {
3924
+ root: tableStyles.root,
3925
+ header: tableStyles.header,
3926
+ body: tableStyles.body,
3927
+ row: tableStyles.row,
3928
+ head: tableStyles.head,
3929
+ cell: tableStyles.cell,
3930
+ caption: tableStyles.caption,
3931
+ footer: tableStyles.footer
3932
+ }),
4412
3933
  primitives: {
4413
- AlertDialog: createThemedAlertDialog(alertDialogStyles),
4414
- Dialog: createThemedDialog(dialogStyles),
3934
+ Dialog: createThemedDialog(),
4415
3935
  DropdownMenu: createThemedDropdownMenu(dropdownMenuStyles),
4416
3936
  Select: createThemedSelect(selectStyles),
4417
3937
  Tabs: createThemedTabs(tabsStyles),
@@ -4430,7 +3950,10 @@ function configureTheme(config) {
4430
3950
  Collapsible: createThemedCollapsible(collapsibleStyles),
4431
3951
  Command: createThemedCommand(commandStyles),
4432
3952
  ContextMenu: createThemedContextMenu(contextMenuStyles),
4433
- DatePicker: createThemedDatePicker(datePickerStyles, calendarStyles),
3953
+ DatePicker: createThemedDatePicker(datePickerStyles, {
3954
+ ...calendarStyles,
3955
+ root: calendarStyles.rootNoBorder
3956
+ }),
4434
3957
  Drawer: createThemedDrawer(drawerStyles),
4435
3958
  HoverCard: createThemedHoverCard(hoverCardStyles),
4436
3959
  Menubar: createThemedMenubar(menubarStyles),
@@ -4444,5 +3967,7 @@ function configureTheme(config) {
4444
3967
  return { theme, globals, styles, components };
4445
3968
  }
4446
3969
  export {
4447
- configureTheme
3970
+ palettes,
3971
+ configureTheme,
3972
+ RADIUS_VALUES
4448
3973
  };