@vertz/theme-shadcn 0.2.24 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +123 -87
- package/dist/index.js +185 -82
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -336,36 +336,59 @@ interface ThemedHoverCardComponent {
|
|
|
336
336
|
Content: (props: HoverCardSlotProps) => HTMLElement;
|
|
337
337
|
}
|
|
338
338
|
import { ChildValue as ChildValue12 } from "@vertz/ui";
|
|
339
|
+
import { AnimateConfig } from "@vertz/ui-primitives";
|
|
340
|
+
interface ListRootProps {
|
|
341
|
+
children?: ChildValue12;
|
|
342
|
+
className?: string;
|
|
343
|
+
/** @deprecated Use `className` instead. */
|
|
344
|
+
class?: string;
|
|
345
|
+
animate?: boolean | AnimateConfig;
|
|
346
|
+
sortable?: boolean;
|
|
347
|
+
onReorder?: (fromIndex: number, toIndex: number) => void;
|
|
348
|
+
}
|
|
349
|
+
interface ListSlotProps {
|
|
350
|
+
children?: ChildValue12;
|
|
351
|
+
className?: string;
|
|
352
|
+
/** @deprecated Use `className` instead. */
|
|
353
|
+
class?: string;
|
|
354
|
+
}
|
|
355
|
+
interface ThemedListComponent {
|
|
356
|
+
(props: ListRootProps): HTMLElement;
|
|
357
|
+
Item: (props: ListSlotProps) => HTMLElement;
|
|
358
|
+
DragHandle: (props: ListSlotProps) => HTMLElement;
|
|
359
|
+
reorder: <T>(arr: readonly T[], from: number, to: number) => T[];
|
|
360
|
+
}
|
|
361
|
+
import { ChildValue as ChildValue13 } from "@vertz/ui";
|
|
339
362
|
interface MenubarRootProps {
|
|
340
363
|
onSelect?: (value: string) => void;
|
|
341
|
-
children?:
|
|
364
|
+
children?: ChildValue13;
|
|
342
365
|
}
|
|
343
366
|
interface MenubarMenuProps {
|
|
344
367
|
value: string;
|
|
345
|
-
children?:
|
|
368
|
+
children?: ChildValue13;
|
|
346
369
|
}
|
|
347
370
|
interface MenubarSlotProps {
|
|
348
|
-
children?:
|
|
371
|
+
children?: ChildValue13;
|
|
349
372
|
className?: string;
|
|
350
373
|
/** @deprecated Use `className` instead. */
|
|
351
374
|
class?: string;
|
|
352
375
|
}
|
|
353
376
|
interface MenubarItemProps {
|
|
354
377
|
value: string;
|
|
355
|
-
children?:
|
|
378
|
+
children?: ChildValue13;
|
|
356
379
|
className?: string;
|
|
357
380
|
/** @deprecated Use `className` instead. */
|
|
358
381
|
class?: string;
|
|
359
382
|
}
|
|
360
383
|
interface MenubarGroupProps {
|
|
361
384
|
label: string;
|
|
362
|
-
children?:
|
|
385
|
+
children?: ChildValue13;
|
|
363
386
|
className?: string;
|
|
364
387
|
/** @deprecated Use `className` instead. */
|
|
365
388
|
class?: string;
|
|
366
389
|
}
|
|
367
390
|
interface MenubarLabelProps {
|
|
368
|
-
children?:
|
|
391
|
+
children?: ChildValue13;
|
|
369
392
|
className?: string;
|
|
370
393
|
/** @deprecated Use `className` instead. */
|
|
371
394
|
class?: string;
|
|
@@ -380,26 +403,26 @@ interface ThemedMenubarComponent {
|
|
|
380
403
|
Label: (props: MenubarLabelProps) => HTMLElement;
|
|
381
404
|
Separator: (props: MenubarSlotProps) => HTMLElement;
|
|
382
405
|
}
|
|
383
|
-
import { ChildValue as
|
|
406
|
+
import { ChildValue as ChildValue14 } from "@vertz/ui";
|
|
384
407
|
interface NavigationMenuRootProps {
|
|
385
408
|
orientation?: "horizontal" | "vertical";
|
|
386
409
|
delayOpen?: number;
|
|
387
410
|
delayClose?: number;
|
|
388
|
-
children?:
|
|
411
|
+
children?: ChildValue14;
|
|
389
412
|
}
|
|
390
413
|
interface NavigationMenuSlotProps {
|
|
391
|
-
children?:
|
|
414
|
+
children?: ChildValue14;
|
|
392
415
|
className?: string;
|
|
393
416
|
/** @deprecated Use `className` instead. */
|
|
394
417
|
class?: string;
|
|
395
418
|
}
|
|
396
419
|
interface NavigationMenuItemProps {
|
|
397
420
|
value: string;
|
|
398
|
-
children?:
|
|
421
|
+
children?: ChildValue14;
|
|
399
422
|
}
|
|
400
423
|
interface NavigationMenuLinkProps {
|
|
401
424
|
href: string;
|
|
402
|
-
children?:
|
|
425
|
+
children?: ChildValue14;
|
|
403
426
|
className?: string;
|
|
404
427
|
/** @deprecated Use `className` instead. */
|
|
405
428
|
class?: string;
|
|
@@ -418,13 +441,13 @@ interface ThemedNavigationMenuComponent {
|
|
|
418
441
|
Link: (props: NavigationMenuLinkProps) => HTMLElement;
|
|
419
442
|
Viewport: (props: NavigationMenuViewportProps) => HTMLElement;
|
|
420
443
|
}
|
|
421
|
-
import { ChildValue as
|
|
444
|
+
import { ChildValue as ChildValue15 } from "@vertz/ui";
|
|
422
445
|
interface PopoverRootProps {
|
|
423
446
|
onOpenChange?: (open: boolean) => void;
|
|
424
|
-
children?:
|
|
447
|
+
children?: ChildValue15;
|
|
425
448
|
}
|
|
426
449
|
interface PopoverSlotProps {
|
|
427
|
-
children?:
|
|
450
|
+
children?: ChildValue15;
|
|
428
451
|
className?: string;
|
|
429
452
|
/** @deprecated Use `className` instead. */
|
|
430
453
|
class?: string;
|
|
@@ -434,30 +457,30 @@ interface ThemedPopoverComponent {
|
|
|
434
457
|
Trigger: (props: PopoverSlotProps) => HTMLElement;
|
|
435
458
|
Content: (props: PopoverSlotProps) => HTMLElement;
|
|
436
459
|
}
|
|
437
|
-
import { ChildValue as
|
|
460
|
+
import { ChildValue as ChildValue16 } from "@vertz/ui";
|
|
438
461
|
interface ProgressRootProps {
|
|
439
|
-
children?:
|
|
462
|
+
children?: ChildValue16;
|
|
440
463
|
defaultValue?: number;
|
|
441
464
|
min?: number;
|
|
442
465
|
max?: number;
|
|
443
466
|
}
|
|
444
467
|
type ThemedProgressComponent = (props: ProgressRootProps) => HTMLElement;
|
|
445
|
-
import { ChildValue as
|
|
468
|
+
import { ChildValue as ChildValue17 } from "@vertz/ui";
|
|
446
469
|
interface RadioGroupRootProps {
|
|
447
|
-
children?:
|
|
470
|
+
children?: ChildValue17;
|
|
448
471
|
defaultValue?: string;
|
|
449
472
|
onValueChange?: (value: string) => void;
|
|
450
473
|
}
|
|
451
474
|
interface RadioGroupItemProps {
|
|
452
475
|
value: string;
|
|
453
476
|
disabled?: boolean;
|
|
454
|
-
children?:
|
|
477
|
+
children?: ChildValue17;
|
|
455
478
|
}
|
|
456
479
|
interface ThemedRadioGroupComponent {
|
|
457
480
|
(props: RadioGroupRootProps): HTMLElement;
|
|
458
481
|
Item: (props: RadioGroupItemProps) => HTMLElement;
|
|
459
482
|
}
|
|
460
|
-
import { ChildValue as
|
|
483
|
+
import { ChildValue as ChildValue18 } from "@vertz/ui";
|
|
461
484
|
import { PanelOptions } from "@vertz/ui-primitives";
|
|
462
485
|
interface ResizablePanelStyleClasses {
|
|
463
486
|
readonly root: string;
|
|
@@ -467,10 +490,10 @@ interface ResizablePanelStyleClasses {
|
|
|
467
490
|
interface ResizablePanelRootProps {
|
|
468
491
|
orientation?: "horizontal" | "vertical";
|
|
469
492
|
onResize?: (sizes: number[]) => void;
|
|
470
|
-
children?:
|
|
493
|
+
children?: ChildValue18;
|
|
471
494
|
}
|
|
472
495
|
interface ResizablePanelPanelProps extends PanelOptions {
|
|
473
|
-
children?:
|
|
496
|
+
children?: ChildValue18;
|
|
474
497
|
className?: string;
|
|
475
498
|
/** @deprecated Use `className` instead. */
|
|
476
499
|
class?: string;
|
|
@@ -486,35 +509,35 @@ interface ThemedResizablePanelComponent {
|
|
|
486
509
|
Handle: (props: ResizablePanelHandleProps) => HTMLElement;
|
|
487
510
|
}
|
|
488
511
|
declare function createThemedResizablePanel(styles: ResizablePanelStyleClasses): ThemedResizablePanelComponent;
|
|
489
|
-
import { ChildValue as
|
|
512
|
+
import { ChildValue as ChildValue19 } from "@vertz/ui";
|
|
490
513
|
interface ScrollAreaRootProps {
|
|
491
514
|
orientation?: "vertical" | "horizontal" | "both";
|
|
492
|
-
children?:
|
|
515
|
+
children?: ChildValue19;
|
|
493
516
|
}
|
|
494
517
|
type ThemedScrollAreaComponent = (props: ScrollAreaRootProps) => HTMLElement;
|
|
495
|
-
import { ChildValue as
|
|
518
|
+
import { ChildValue as ChildValue20 } from "@vertz/ui";
|
|
496
519
|
interface SelectRootProps {
|
|
497
520
|
defaultValue?: string;
|
|
498
521
|
placeholder?: string;
|
|
499
522
|
onValueChange?: (value: string) => void;
|
|
500
|
-
children?:
|
|
523
|
+
children?: ChildValue20;
|
|
501
524
|
}
|
|
502
525
|
interface SelectSlotProps {
|
|
503
|
-
children?:
|
|
526
|
+
children?: ChildValue20;
|
|
504
527
|
className?: string;
|
|
505
528
|
/** @deprecated Use `className` instead. */
|
|
506
529
|
class?: string;
|
|
507
530
|
}
|
|
508
531
|
interface SelectItemProps {
|
|
509
532
|
value: string;
|
|
510
|
-
children?:
|
|
533
|
+
children?: ChildValue20;
|
|
511
534
|
className?: string;
|
|
512
535
|
/** @deprecated Use `className` instead. */
|
|
513
536
|
class?: string;
|
|
514
537
|
}
|
|
515
538
|
interface SelectGroupProps {
|
|
516
539
|
label: string;
|
|
517
|
-
children?:
|
|
540
|
+
children?: ChildValue20;
|
|
518
541
|
className?: string;
|
|
519
542
|
/** @deprecated Use `className` instead. */
|
|
520
543
|
class?: string;
|
|
@@ -527,15 +550,15 @@ interface ThemedSelectComponent {
|
|
|
527
550
|
Group: (props: SelectGroupProps) => HTMLElement;
|
|
528
551
|
Separator: (props: SelectSlotProps) => HTMLElement;
|
|
529
552
|
}
|
|
530
|
-
import { ChildValue as
|
|
553
|
+
import { ChildValue as ChildValue21 } from "@vertz/ui";
|
|
531
554
|
import { SheetSide as SheetSide2 } from "@vertz/ui-primitives";
|
|
532
555
|
interface SheetRootProps {
|
|
533
556
|
side?: SheetSide2;
|
|
534
557
|
onOpenChange?: (open: boolean) => void;
|
|
535
|
-
children?:
|
|
558
|
+
children?: ChildValue21;
|
|
536
559
|
}
|
|
537
560
|
interface SheetSlotProps {
|
|
538
|
-
children?:
|
|
561
|
+
children?: ChildValue21;
|
|
539
562
|
className?: string;
|
|
540
563
|
/** @deprecated Use `className` instead. */
|
|
541
564
|
class?: string;
|
|
@@ -551,9 +574,9 @@ interface ThemedSheetComponent {
|
|
|
551
574
|
Description: (props: SheetSlotProps) => HTMLElement;
|
|
552
575
|
Close: (props: SheetSlotProps) => HTMLElement;
|
|
553
576
|
}
|
|
554
|
-
import { ChildValue as
|
|
577
|
+
import { ChildValue as ChildValue22 } from "@vertz/ui";
|
|
555
578
|
interface SliderRootProps {
|
|
556
|
-
children?:
|
|
579
|
+
children?: ChildValue22;
|
|
557
580
|
defaultValue?: number;
|
|
558
581
|
min?: number;
|
|
559
582
|
max?: number;
|
|
@@ -562,37 +585,37 @@ interface SliderRootProps {
|
|
|
562
585
|
onValueChange?: (value: number) => void;
|
|
563
586
|
}
|
|
564
587
|
type ThemedSliderComponent = (props: SliderRootProps) => HTMLElement;
|
|
565
|
-
import { ChildValue as
|
|
588
|
+
import { ChildValue as ChildValue23 } from "@vertz/ui";
|
|
566
589
|
interface ThemedSwitchProps {
|
|
567
|
-
children?:
|
|
590
|
+
children?: ChildValue23;
|
|
568
591
|
defaultChecked?: boolean;
|
|
569
592
|
disabled?: boolean;
|
|
570
593
|
onCheckedChange?: (checked: boolean) => void;
|
|
571
594
|
size?: "default" | "sm";
|
|
572
595
|
}
|
|
573
596
|
type ThemedSwitchComponent = (props: ThemedSwitchProps) => HTMLElement;
|
|
574
|
-
import { ChildValue as
|
|
597
|
+
import { ChildValue as ChildValue24 } from "@vertz/ui";
|
|
575
598
|
interface TabsRootProps {
|
|
576
599
|
defaultValue?: string;
|
|
577
600
|
variant?: "default" | "line";
|
|
578
|
-
children?:
|
|
601
|
+
children?: ChildValue24;
|
|
579
602
|
}
|
|
580
603
|
interface TabsSlotProps {
|
|
581
|
-
children?:
|
|
604
|
+
children?: ChildValue24;
|
|
582
605
|
className?: string;
|
|
583
606
|
/** @deprecated Use `className` instead. */
|
|
584
607
|
class?: string;
|
|
585
608
|
}
|
|
586
609
|
interface TabsTriggerProps {
|
|
587
610
|
value: string;
|
|
588
|
-
children?:
|
|
611
|
+
children?: ChildValue24;
|
|
589
612
|
className?: string;
|
|
590
613
|
/** @deprecated Use `className` instead. */
|
|
591
614
|
class?: string;
|
|
592
615
|
}
|
|
593
616
|
interface TabsContentProps {
|
|
594
617
|
value: string;
|
|
595
|
-
children?:
|
|
618
|
+
children?: ChildValue24;
|
|
596
619
|
className?: string;
|
|
597
620
|
/** @deprecated Use `className` instead. */
|
|
598
621
|
class?: string;
|
|
@@ -609,17 +632,17 @@ type ThemedToastResult = ToastElements & {
|
|
|
609
632
|
announce: (content: string) => ToastMessage;
|
|
610
633
|
dismiss: (id: string) => void;
|
|
611
634
|
};
|
|
612
|
-
import { ChildValue as
|
|
635
|
+
import { ChildValue as ChildValue25 } from "@vertz/ui";
|
|
613
636
|
interface ToggleRootProps {
|
|
614
|
-
children?:
|
|
637
|
+
children?: ChildValue25;
|
|
615
638
|
defaultPressed?: boolean;
|
|
616
639
|
disabled?: boolean;
|
|
617
640
|
onPressedChange?: (pressed: boolean) => void;
|
|
618
641
|
}
|
|
619
642
|
type ThemedToggleComponent = (props: ToggleRootProps) => HTMLElement;
|
|
620
|
-
import { ChildValue as
|
|
643
|
+
import { ChildValue as ChildValue26 } from "@vertz/ui";
|
|
621
644
|
interface ToggleGroupRootProps {
|
|
622
|
-
children?:
|
|
645
|
+
children?: ChildValue26;
|
|
623
646
|
type?: "single" | "multiple";
|
|
624
647
|
defaultValue?: string[];
|
|
625
648
|
orientation?: "horizontal" | "vertical";
|
|
@@ -628,19 +651,19 @@ interface ToggleGroupRootProps {
|
|
|
628
651
|
}
|
|
629
652
|
interface ToggleGroupItemProps {
|
|
630
653
|
value: string;
|
|
631
|
-
children?:
|
|
654
|
+
children?: ChildValue26;
|
|
632
655
|
}
|
|
633
656
|
interface ThemedToggleGroupComponent {
|
|
634
657
|
(props: ToggleGroupRootProps): HTMLElement;
|
|
635
658
|
Item: (props: ToggleGroupItemProps) => HTMLElement;
|
|
636
659
|
}
|
|
637
|
-
import { ChildValue as
|
|
660
|
+
import { ChildValue as ChildValue27 } from "@vertz/ui";
|
|
638
661
|
interface TooltipRootProps {
|
|
639
662
|
delay?: number;
|
|
640
|
-
children?:
|
|
663
|
+
children?: ChildValue27;
|
|
641
664
|
}
|
|
642
665
|
interface TooltipSlotProps {
|
|
643
|
-
children?:
|
|
666
|
+
children?: ChildValue27;
|
|
644
667
|
className?: string;
|
|
645
668
|
/** @deprecated Use `className` instead. */
|
|
646
669
|
class?: string;
|
|
@@ -746,69 +769,77 @@ type HoverCardBlocks = {
|
|
|
746
769
|
/** Create hover card css() styles. */
|
|
747
770
|
declare function createHoverCardStyles(): CSSOutput18<HoverCardBlocks>;
|
|
748
771
|
import { CSSOutput as CSSOutput21, StyleEntry as StyleEntry21 } from "@vertz/ui";
|
|
749
|
-
type
|
|
772
|
+
type ListBlocks = {
|
|
750
773
|
root: StyleEntry21[];
|
|
751
|
-
trigger: StyleEntry21[];
|
|
752
|
-
content: StyleEntry21[];
|
|
753
774
|
item: StyleEntry21[];
|
|
754
|
-
|
|
755
|
-
label: StyleEntry21[];
|
|
775
|
+
dragHandle: StyleEntry21[];
|
|
756
776
|
};
|
|
757
|
-
/** Create
|
|
758
|
-
declare function
|
|
777
|
+
/** Create list css() styles. */
|
|
778
|
+
declare function createListStyles(): CSSOutput21<ListBlocks>;
|
|
759
779
|
import { CSSOutput as CSSOutput22, StyleEntry as StyleEntry22 } from "@vertz/ui";
|
|
760
|
-
type
|
|
780
|
+
type MenubarBlocks = {
|
|
761
781
|
root: StyleEntry22[];
|
|
762
|
-
list: StyleEntry22[];
|
|
763
782
|
trigger: StyleEntry22[];
|
|
764
783
|
content: StyleEntry22[];
|
|
765
|
-
|
|
766
|
-
|
|
784
|
+
item: StyleEntry22[];
|
|
785
|
+
separator: StyleEntry22[];
|
|
786
|
+
label: StyleEntry22[];
|
|
767
787
|
};
|
|
768
|
-
/** Create
|
|
769
|
-
declare function
|
|
788
|
+
/** Create menubar css() styles. */
|
|
789
|
+
declare function createMenubarStyles(): CSSOutput22<MenubarBlocks>;
|
|
770
790
|
import { CSSOutput as CSSOutput23, StyleEntry as StyleEntry23 } from "@vertz/ui";
|
|
771
|
-
type
|
|
772
|
-
|
|
791
|
+
type NavigationMenuBlocks = {
|
|
792
|
+
root: StyleEntry23[];
|
|
773
793
|
list: StyleEntry23[];
|
|
774
|
-
|
|
794
|
+
trigger: StyleEntry23[];
|
|
795
|
+
content: StyleEntry23[];
|
|
775
796
|
link: StyleEntry23[];
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
797
|
+
viewport: StyleEntry23[];
|
|
798
|
+
};
|
|
799
|
+
/** Create navigation menu css() styles. */
|
|
800
|
+
declare function createNavigationMenuStyles(): CSSOutput23<NavigationMenuBlocks>;
|
|
801
|
+
import { CSSOutput as CSSOutput24, StyleEntry as StyleEntry24 } from "@vertz/ui";
|
|
802
|
+
type PaginationBlocks = {
|
|
803
|
+
nav: StyleEntry24[];
|
|
804
|
+
list: StyleEntry24[];
|
|
805
|
+
item: StyleEntry24[];
|
|
806
|
+
link: StyleEntry24[];
|
|
807
|
+
linkActive: StyleEntry24[];
|
|
808
|
+
navButton: StyleEntry24[];
|
|
809
|
+
ellipsis: StyleEntry24[];
|
|
779
810
|
};
|
|
780
811
|
/** Create pagination css() styles. */
|
|
781
|
-
declare function createPaginationStyles():
|
|
782
|
-
import { CSSOutput as
|
|
812
|
+
declare function createPaginationStyles(): CSSOutput24<PaginationBlocks>;
|
|
813
|
+
import { CSSOutput as CSSOutput28, StyleEntry as StyleEntry28 } from "@vertz/ui";
|
|
783
814
|
type ResizablePanelBlocks = {
|
|
784
|
-
root:
|
|
785
|
-
panel:
|
|
786
|
-
handle:
|
|
815
|
+
root: StyleEntry28[];
|
|
816
|
+
panel: StyleEntry28[];
|
|
817
|
+
handle: StyleEntry28[];
|
|
787
818
|
};
|
|
788
819
|
/** Create resizable panel css() styles following shadcn conventions. */
|
|
789
|
-
declare function createResizablePanelStyles():
|
|
790
|
-
import { CSSOutput as
|
|
820
|
+
declare function createResizablePanelStyles(): CSSOutput28<ResizablePanelBlocks>;
|
|
821
|
+
import { CSSOutput as CSSOutput29, StyleEntry as StyleEntry29 } from "@vertz/ui";
|
|
791
822
|
type ScrollAreaBlocks = {
|
|
792
|
-
root:
|
|
793
|
-
viewport:
|
|
794
|
-
scrollbar:
|
|
795
|
-
thumb:
|
|
823
|
+
root: StyleEntry29[];
|
|
824
|
+
viewport: StyleEntry29[];
|
|
825
|
+
scrollbar: StyleEntry29[];
|
|
826
|
+
thumb: StyleEntry29[];
|
|
796
827
|
};
|
|
797
828
|
/** Create scroll-area css() styles following shadcn conventions. */
|
|
798
|
-
declare function createScrollAreaStyles():
|
|
799
|
-
import { CSSOutput as
|
|
829
|
+
declare function createScrollAreaStyles(): CSSOutput29<ScrollAreaBlocks>;
|
|
830
|
+
import { CSSOutput as CSSOutput40, StyleEntry as StyleEntry40 } from "@vertz/ui";
|
|
800
831
|
type ToggleBlocks = {
|
|
801
|
-
root:
|
|
832
|
+
root: StyleEntry40[];
|
|
802
833
|
};
|
|
803
834
|
/** Create toggle css() styles. */
|
|
804
|
-
declare function createToggleStyles():
|
|
805
|
-
import { CSSOutput as
|
|
835
|
+
declare function createToggleStyles(): CSSOutput40<ToggleBlocks>;
|
|
836
|
+
import { CSSOutput as CSSOutput41, StyleEntry as StyleEntry41 } from "@vertz/ui";
|
|
806
837
|
type ToggleGroupBlocks = {
|
|
807
|
-
root:
|
|
808
|
-
item:
|
|
838
|
+
root: StyleEntry41[];
|
|
839
|
+
item: StyleEntry41[];
|
|
809
840
|
};
|
|
810
841
|
/** Create toggle group css() styles. */
|
|
811
|
-
declare function createToggleGroupStyles():
|
|
842
|
+
declare function createToggleGroupStyles(): CSSOutput41<ToggleGroupBlocks>;
|
|
812
843
|
/** Pre-built style definitions returned by configureTheme(). */
|
|
813
844
|
interface ThemeStyles {
|
|
814
845
|
/** Button variant function: `button({ intent: 'primary', size: 'md' })` */
|
|
@@ -1039,6 +1070,8 @@ interface ThemeStyles {
|
|
|
1039
1070
|
drawer: ReturnType<typeof createDrawerStyles>;
|
|
1040
1071
|
/** HoverCard css() styles. */
|
|
1041
1072
|
hoverCard: ReturnType<typeof createHoverCardStyles>;
|
|
1073
|
+
/** List css() styles. */
|
|
1074
|
+
list: ReturnType<typeof createListStyles>;
|
|
1042
1075
|
/** Menubar css() styles. */
|
|
1043
1076
|
menubar: ReturnType<typeof createMenubarStyles>;
|
|
1044
1077
|
/** NavigationMenu css() styles. */
|
|
@@ -1100,6 +1133,8 @@ interface ThemedPrimitives {
|
|
|
1100
1133
|
Drawer: ThemedDrawerComponent;
|
|
1101
1134
|
/** Themed HoverCard — hover-triggered interactive card. */
|
|
1102
1135
|
HoverCard: ThemedHoverCardComponent;
|
|
1136
|
+
/** Themed List — compound component with List.Item and List.DragHandle. */
|
|
1137
|
+
List: ThemedListComponent;
|
|
1103
1138
|
/** Themed Menubar — composable JSX component with Menubar.Menu, Menubar.Trigger, Menubar.Content, etc. */
|
|
1104
1139
|
Menubar: ThemedMenubarComponent;
|
|
1105
1140
|
/** Themed NavigationMenu — composable JSX component with NavigationMenu.List, NavigationMenu.Item, etc. */
|
|
@@ -1223,6 +1258,7 @@ declare module "@vertz/ui/components" {
|
|
|
1223
1258
|
Slider: ThemedSliderComponent;
|
|
1224
1259
|
Toggle: ThemedToggleComponent;
|
|
1225
1260
|
Toast: ThemedPrimitives["Toast"];
|
|
1261
|
+
List: ThemedListComponent;
|
|
1226
1262
|
Carousel: ThemedCarouselComponent;
|
|
1227
1263
|
Command: ThemedCommandComponent;
|
|
1228
1264
|
Collapsible: ThemedCollapsibleComponent;
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
ComposedSkeleton,
|
|
29
29
|
ComposedTable,
|
|
30
30
|
ComposedTextarea,
|
|
31
|
-
withStyles as
|
|
31
|
+
withStyles as withStyles19
|
|
32
32
|
} from "@vertz/ui-primitives";
|
|
33
33
|
|
|
34
34
|
// src/components/primitives/accordion.ts
|
|
@@ -410,10 +410,41 @@ function createThemedHoverCard(styles) {
|
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
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
|
+
|
|
413
444
|
// src/components/primitives/menubar.ts
|
|
414
|
-
import { ComposedMenubar, withStyles as
|
|
445
|
+
import { ComposedMenubar, withStyles as withStyles9 } from "@vertz/ui-primitives";
|
|
415
446
|
function createThemedMenubar(styles) {
|
|
416
|
-
const Styled =
|
|
447
|
+
const Styled = withStyles9(ComposedMenubar, {
|
|
417
448
|
root: styles.root,
|
|
418
449
|
trigger: styles.trigger,
|
|
419
450
|
content: styles.content,
|
|
@@ -437,9 +468,9 @@ function createThemedMenubar(styles) {
|
|
|
437
468
|
}
|
|
438
469
|
|
|
439
470
|
// src/components/primitives/navigation-menu.tsx
|
|
440
|
-
import { ComposedNavigationMenu, withStyles as
|
|
471
|
+
import { ComposedNavigationMenu, withStyles as withStyles10 } from "@vertz/ui-primitives";
|
|
441
472
|
function createThemedNavigationMenu(styles) {
|
|
442
|
-
const Styled =
|
|
473
|
+
const Styled = withStyles10(ComposedNavigationMenu, {
|
|
443
474
|
root: styles.root,
|
|
444
475
|
list: styles.list,
|
|
445
476
|
trigger: styles.trigger,
|
|
@@ -471,9 +502,9 @@ function createThemedNavigationMenu(styles) {
|
|
|
471
502
|
}
|
|
472
503
|
|
|
473
504
|
// src/components/primitives/popover.ts
|
|
474
|
-
import { ComposedPopover, withStyles as
|
|
505
|
+
import { ComposedPopover, withStyles as withStyles11 } from "@vertz/ui-primitives";
|
|
475
506
|
function createThemedPopover(styles) {
|
|
476
|
-
const StyledPopover =
|
|
507
|
+
const StyledPopover = withStyles11(ComposedPopover, {
|
|
477
508
|
content: styles.content
|
|
478
509
|
});
|
|
479
510
|
function PopoverRoot({ children, onOpenChange }) {
|
|
@@ -497,9 +528,9 @@ function createThemedProgress(styles) {
|
|
|
497
528
|
}
|
|
498
529
|
|
|
499
530
|
// src/components/primitives/radio-group.ts
|
|
500
|
-
import { ComposedRadioGroup, withStyles as
|
|
531
|
+
import { ComposedRadioGroup, withStyles as withStyles12 } from "@vertz/ui-primitives";
|
|
501
532
|
function createThemedRadioGroup(styles) {
|
|
502
|
-
const StyledRadioGroup =
|
|
533
|
+
const StyledRadioGroup = withStyles12(ComposedRadioGroup, {
|
|
503
534
|
root: styles.root,
|
|
504
535
|
item: styles.item,
|
|
505
536
|
indicator: styles.indicator,
|
|
@@ -557,9 +588,9 @@ function createThemedScrollArea(styles) {
|
|
|
557
588
|
}
|
|
558
589
|
|
|
559
590
|
// src/components/primitives/select.ts
|
|
560
|
-
import { ComposedSelect, withStyles as
|
|
591
|
+
import { ComposedSelect, withStyles as withStyles13 } from "@vertz/ui-primitives";
|
|
561
592
|
function createThemedSelect(styles) {
|
|
562
|
-
const StyledSelect =
|
|
593
|
+
const StyledSelect = withStyles13(ComposedSelect, {
|
|
563
594
|
trigger: styles.trigger,
|
|
564
595
|
content: styles.content,
|
|
565
596
|
item: styles.item,
|
|
@@ -641,13 +672,13 @@ function createThemedSlider(styles) {
|
|
|
641
672
|
}
|
|
642
673
|
|
|
643
674
|
// src/components/primitives/switch.ts
|
|
644
|
-
import { ComposedSwitch, withStyles as
|
|
675
|
+
import { ComposedSwitch, withStyles as withStyles14 } from "@vertz/ui-primitives";
|
|
645
676
|
function createThemedSwitch(styles) {
|
|
646
|
-
const DefaultSwitch =
|
|
677
|
+
const DefaultSwitch = withStyles14(ComposedSwitch, {
|
|
647
678
|
root: styles.root,
|
|
648
679
|
thumb: styles.thumb
|
|
649
680
|
});
|
|
650
|
-
const SmSwitch =
|
|
681
|
+
const SmSwitch = withStyles14(ComposedSwitch, {
|
|
651
682
|
root: styles.rootSm,
|
|
652
683
|
thumb: styles.thumbSm
|
|
653
684
|
});
|
|
@@ -658,14 +689,14 @@ function createThemedSwitch(styles) {
|
|
|
658
689
|
}
|
|
659
690
|
|
|
660
691
|
// src/components/primitives/tabs.ts
|
|
661
|
-
import { ComposedTabs, withStyles as
|
|
692
|
+
import { ComposedTabs, withStyles as withStyles15 } from "@vertz/ui-primitives";
|
|
662
693
|
function createThemedTabs(styles) {
|
|
663
|
-
const DefaultTabs =
|
|
694
|
+
const DefaultTabs = withStyles15(ComposedTabs, {
|
|
664
695
|
list: styles.list,
|
|
665
696
|
trigger: styles.trigger,
|
|
666
697
|
panel: styles.panel
|
|
667
698
|
});
|
|
668
|
-
const LineTabs =
|
|
699
|
+
const LineTabs = withStyles15(ComposedTabs, {
|
|
669
700
|
list: styles.listLine,
|
|
670
701
|
trigger: styles.triggerLine,
|
|
671
702
|
panel: styles.panel
|
|
@@ -698,9 +729,9 @@ function createThemedToast(styles) {
|
|
|
698
729
|
}
|
|
699
730
|
|
|
700
731
|
// src/components/primitives/toggle.ts
|
|
701
|
-
import { ComposedToggle, withStyles as
|
|
732
|
+
import { ComposedToggle, withStyles as withStyles16 } from "@vertz/ui-primitives";
|
|
702
733
|
function createThemedToggle(styles) {
|
|
703
|
-
const StyledToggle =
|
|
734
|
+
const StyledToggle = withStyles16(ComposedToggle, {
|
|
704
735
|
root: styles.root
|
|
705
736
|
});
|
|
706
737
|
return function ToggleRoot(props) {
|
|
@@ -709,9 +740,9 @@ function createThemedToggle(styles) {
|
|
|
709
740
|
}
|
|
710
741
|
|
|
711
742
|
// src/components/primitives/toggle-group.tsx
|
|
712
|
-
import { ComposedToggleGroup, withStyles as
|
|
743
|
+
import { ComposedToggleGroup, withStyles as withStyles17 } from "@vertz/ui-primitives";
|
|
713
744
|
function createThemedToggleGroup(styles) {
|
|
714
|
-
const StyledToggleGroup =
|
|
745
|
+
const StyledToggleGroup = withStyles17(ComposedToggleGroup, {
|
|
715
746
|
root: styles.root,
|
|
716
747
|
item: styles.item
|
|
717
748
|
});
|
|
@@ -724,9 +755,9 @@ function createThemedToggleGroup(styles) {
|
|
|
724
755
|
}
|
|
725
756
|
|
|
726
757
|
// src/components/primitives/tooltip.ts
|
|
727
|
-
import { ComposedTooltip, withStyles as
|
|
758
|
+
import { ComposedTooltip, withStyles as withStyles18 } from "@vertz/ui-primitives";
|
|
728
759
|
function createThemedTooltip(styles) {
|
|
729
|
-
const StyledTooltip =
|
|
760
|
+
const StyledTooltip = withStyles18(ComposedTooltip, {
|
|
730
761
|
content: styles.content
|
|
731
762
|
});
|
|
732
763
|
function TooltipRoot({ children, delay }) {
|
|
@@ -777,7 +808,9 @@ function createAccordionStyles() {
|
|
|
777
808
|
"text:sm",
|
|
778
809
|
"text:muted-foreground",
|
|
779
810
|
{
|
|
780
|
-
'&[data-state="open"]': [
|
|
811
|
+
'&[data-state="open"]:not([data-initial])': [
|
|
812
|
+
animationDecl(`${accordionDown} 200ms ease-out forwards`)
|
|
813
|
+
]
|
|
781
814
|
},
|
|
782
815
|
{
|
|
783
816
|
'&[data-state="closed"]': [animationDecl(`${accordionUp} 200ms ease-out forwards`)]
|
|
@@ -2252,10 +2285,77 @@ function createLabel() {
|
|
|
2252
2285
|
css: s.css
|
|
2253
2286
|
};
|
|
2254
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
|
+
}
|
|
2255
2355
|
// src/styles/menubar.ts
|
|
2256
|
-
import { css as
|
|
2356
|
+
import { css as css22 } from "@vertz/ui";
|
|
2257
2357
|
function createMenubarStyles() {
|
|
2258
|
-
const s =
|
|
2358
|
+
const s = css22({
|
|
2259
2359
|
mbRoot: [
|
|
2260
2360
|
"flex",
|
|
2261
2361
|
"h:9",
|
|
@@ -2328,9 +2428,9 @@ function createMenubarStyles() {
|
|
|
2328
2428
|
};
|
|
2329
2429
|
}
|
|
2330
2430
|
// src/styles/navigation-menu.ts
|
|
2331
|
-
import { css as
|
|
2431
|
+
import { css as css23 } from "@vertz/ui";
|
|
2332
2432
|
function createNavigationMenuStyles() {
|
|
2333
|
-
const s =
|
|
2433
|
+
const s = css23({
|
|
2334
2434
|
navRoot: ["relative", "z:10"],
|
|
2335
2435
|
navList: ["flex", "items:center", "gap:1"],
|
|
2336
2436
|
navTrigger: [
|
|
@@ -2403,7 +2503,7 @@ function createNavigationMenuStyles() {
|
|
|
2403
2503
|
};
|
|
2404
2504
|
}
|
|
2405
2505
|
// src/styles/pagination.ts
|
|
2406
|
-
import { css as
|
|
2506
|
+
import { css as css24 } from "@vertz/ui";
|
|
2407
2507
|
var focusRing7 = {
|
|
2408
2508
|
"&:focus-visible": [
|
|
2409
2509
|
"outline-none",
|
|
@@ -2414,7 +2514,7 @@ var focusRing7 = {
|
|
|
2414
2514
|
]
|
|
2415
2515
|
};
|
|
2416
2516
|
function createPaginationStyles() {
|
|
2417
|
-
const s =
|
|
2517
|
+
const s = css24({
|
|
2418
2518
|
paginationNav: [
|
|
2419
2519
|
"flex",
|
|
2420
2520
|
"justify:center",
|
|
@@ -2534,9 +2634,9 @@ function createPaginationStyles() {
|
|
|
2534
2634
|
};
|
|
2535
2635
|
}
|
|
2536
2636
|
// src/styles/popover.ts
|
|
2537
|
-
import { css as
|
|
2637
|
+
import { css as css25 } from "@vertz/ui";
|
|
2538
2638
|
function createPopoverStyles() {
|
|
2539
|
-
const s =
|
|
2639
|
+
const s = css25({
|
|
2540
2640
|
popoverContent: [
|
|
2541
2641
|
"z:50",
|
|
2542
2642
|
"overflow-hidden",
|
|
@@ -2568,9 +2668,9 @@ function createPopoverStyles() {
|
|
|
2568
2668
|
};
|
|
2569
2669
|
}
|
|
2570
2670
|
// src/styles/progress.ts
|
|
2571
|
-
import { css as
|
|
2671
|
+
import { css as css26 } from "@vertz/ui";
|
|
2572
2672
|
function createProgressStyles() {
|
|
2573
|
-
const s =
|
|
2673
|
+
const s = css26({
|
|
2574
2674
|
progressRoot: [
|
|
2575
2675
|
"relative",
|
|
2576
2676
|
"w:full",
|
|
@@ -2588,7 +2688,7 @@ function createProgressStyles() {
|
|
|
2588
2688
|
};
|
|
2589
2689
|
}
|
|
2590
2690
|
// src/styles/radio-group.ts
|
|
2591
|
-
import { css as
|
|
2691
|
+
import { css as css27 } from "@vertz/ui";
|
|
2592
2692
|
var focusRing8 = {
|
|
2593
2693
|
"&:focus-visible": [
|
|
2594
2694
|
"outline-none",
|
|
@@ -2599,7 +2699,7 @@ var focusRing8 = {
|
|
|
2599
2699
|
]
|
|
2600
2700
|
};
|
|
2601
2701
|
function createRadioGroupStyles() {
|
|
2602
|
-
const s =
|
|
2702
|
+
const s = css27({
|
|
2603
2703
|
radioGroupRoot: ["grid", "gap:2"],
|
|
2604
2704
|
radioGroupItem: [
|
|
2605
2705
|
"flex",
|
|
@@ -2664,7 +2764,7 @@ function createRadioGroupStyles() {
|
|
|
2664
2764
|
};
|
|
2665
2765
|
}
|
|
2666
2766
|
// src/styles/resizable-panel.ts
|
|
2667
|
-
import { css as
|
|
2767
|
+
import { css as css28 } from "@vertz/ui";
|
|
2668
2768
|
var focusRing9 = {
|
|
2669
2769
|
"&:focus-visible": [
|
|
2670
2770
|
"outline-none",
|
|
@@ -2675,7 +2775,7 @@ var focusRing9 = {
|
|
|
2675
2775
|
]
|
|
2676
2776
|
};
|
|
2677
2777
|
function createResizablePanelStyles() {
|
|
2678
|
-
const s =
|
|
2778
|
+
const s = css28({
|
|
2679
2779
|
resizableRoot: ["flex", "h:full", "w:full"],
|
|
2680
2780
|
resizablePanel: ["overflow-hidden", { "&": [{ "white-space": "nowrap" }] }],
|
|
2681
2781
|
resizableHandle: [
|
|
@@ -2713,9 +2813,9 @@ function createResizablePanelStyles() {
|
|
|
2713
2813
|
};
|
|
2714
2814
|
}
|
|
2715
2815
|
// src/styles/scroll-area.ts
|
|
2716
|
-
import { css as
|
|
2816
|
+
import { css as css29 } from "@vertz/ui";
|
|
2717
2817
|
function createScrollAreaStyles() {
|
|
2718
|
-
const s =
|
|
2818
|
+
const s = css29({
|
|
2719
2819
|
scrollAreaRoot: ["relative", "overflow-hidden"],
|
|
2720
2820
|
scrollAreaViewport: ["h:full", "w:full", { "&": { "border-radius": "inherit" } }],
|
|
2721
2821
|
scrollAreaScrollbar: [
|
|
@@ -2756,7 +2856,7 @@ function createScrollAreaStyles() {
|
|
|
2756
2856
|
};
|
|
2757
2857
|
}
|
|
2758
2858
|
// src/styles/select.ts
|
|
2759
|
-
import { css as
|
|
2859
|
+
import { css as css30 } from "@vertz/ui";
|
|
2760
2860
|
var focusRing10 = {
|
|
2761
2861
|
"&:focus-visible": [
|
|
2762
2862
|
"outline-none",
|
|
@@ -2767,7 +2867,7 @@ var focusRing10 = {
|
|
|
2767
2867
|
]
|
|
2768
2868
|
};
|
|
2769
2869
|
function createSelectStyles() {
|
|
2770
|
-
const s =
|
|
2870
|
+
const s = css30({
|
|
2771
2871
|
selectTrigger: [
|
|
2772
2872
|
"flex",
|
|
2773
2873
|
"w:full",
|
|
@@ -2900,9 +3000,9 @@ function createSelectStyles() {
|
|
|
2900
3000
|
};
|
|
2901
3001
|
}
|
|
2902
3002
|
// src/styles/separator.ts
|
|
2903
|
-
import { css as
|
|
3003
|
+
import { css as css31 } from "@vertz/ui";
|
|
2904
3004
|
function createSeparator() {
|
|
2905
|
-
const s =
|
|
3005
|
+
const s = css31({
|
|
2906
3006
|
separatorBase: ["bg:border", "shrink-0"],
|
|
2907
3007
|
separatorHorizontal: ["w:full", { "&": { height: "1px" } }],
|
|
2908
3008
|
separatorVertical: [
|
|
@@ -2922,7 +3022,7 @@ function createSeparator() {
|
|
|
2922
3022
|
};
|
|
2923
3023
|
}
|
|
2924
3024
|
// src/styles/sheet.ts
|
|
2925
|
-
import { css as
|
|
3025
|
+
import { css as css32 } from "@vertz/ui";
|
|
2926
3026
|
var focusRing11 = {
|
|
2927
3027
|
"&:focus-visible": [
|
|
2928
3028
|
"outline-none",
|
|
@@ -2944,7 +3044,7 @@ var PANEL_BASE2 = [
|
|
|
2944
3044
|
"text:sm"
|
|
2945
3045
|
];
|
|
2946
3046
|
function createSheetStyles() {
|
|
2947
|
-
const s =
|
|
3047
|
+
const s = css32({
|
|
2948
3048
|
sheetOverlay: [
|
|
2949
3049
|
"fixed",
|
|
2950
3050
|
"inset:0",
|
|
@@ -3138,8 +3238,8 @@ function createSheetStyles() {
|
|
|
3138
3238
|
};
|
|
3139
3239
|
}
|
|
3140
3240
|
// src/styles/skeleton.ts
|
|
3141
|
-
import { css as
|
|
3142
|
-
var pulse =
|
|
3241
|
+
import { css as css33, keyframes as keyframes3 } from "@vertz/ui";
|
|
3242
|
+
var pulse = keyframes3("vz-skeleton-pulse", {
|
|
3143
3243
|
"0%, 100%": { opacity: "1" },
|
|
3144
3244
|
"50%": { opacity: "0.5" }
|
|
3145
3245
|
});
|
|
@@ -3149,7 +3249,7 @@ var skeletonBase = [
|
|
|
3149
3249
|
{ "&": { animation: `${pulse} 2s ease-in-out infinite` } }
|
|
3150
3250
|
];
|
|
3151
3251
|
function createSkeletonStyles() {
|
|
3152
|
-
return
|
|
3252
|
+
return css33({
|
|
3153
3253
|
root: [...skeletonBase],
|
|
3154
3254
|
textRoot: ["flex", "flex-col"],
|
|
3155
3255
|
textLine: [...skeletonBase, "h:4"],
|
|
@@ -3157,12 +3257,12 @@ function createSkeletonStyles() {
|
|
|
3157
3257
|
});
|
|
3158
3258
|
}
|
|
3159
3259
|
// src/styles/slider.ts
|
|
3160
|
-
import { css as
|
|
3260
|
+
import { css as css34 } from "@vertz/ui";
|
|
3161
3261
|
var ringStyle = {
|
|
3162
3262
|
"box-shadow": "0 0 0 3px color-mix(in oklch, var(--color-ring) 50%, transparent)"
|
|
3163
3263
|
};
|
|
3164
3264
|
function createSliderStyles() {
|
|
3165
|
-
const s =
|
|
3265
|
+
const s = css34({
|
|
3166
3266
|
sliderRoot: [
|
|
3167
3267
|
"relative",
|
|
3168
3268
|
"flex",
|
|
@@ -3233,7 +3333,7 @@ function createSliderStyles() {
|
|
|
3233
3333
|
};
|
|
3234
3334
|
}
|
|
3235
3335
|
// src/styles/switch.ts
|
|
3236
|
-
import { css as
|
|
3336
|
+
import { css as css35 } from "@vertz/ui";
|
|
3237
3337
|
var focusRing12 = {
|
|
3238
3338
|
"&:focus-visible": [
|
|
3239
3339
|
"outline-none",
|
|
@@ -3244,7 +3344,7 @@ var focusRing12 = {
|
|
|
3244
3344
|
]
|
|
3245
3345
|
};
|
|
3246
3346
|
function createSwitchStyles() {
|
|
3247
|
-
const s =
|
|
3347
|
+
const s = css35({
|
|
3248
3348
|
switchRoot: [
|
|
3249
3349
|
"inline-flex",
|
|
3250
3350
|
"shrink-0",
|
|
@@ -3351,9 +3451,9 @@ function createSwitchStyles() {
|
|
|
3351
3451
|
};
|
|
3352
3452
|
}
|
|
3353
3453
|
// src/styles/table.ts
|
|
3354
|
-
import { css as
|
|
3454
|
+
import { css as css36 } from "@vertz/ui";
|
|
3355
3455
|
function createTableStyles() {
|
|
3356
|
-
const s =
|
|
3456
|
+
const s = css36({
|
|
3357
3457
|
tableRoot: [
|
|
3358
3458
|
"w:full",
|
|
3359
3459
|
"text:sm",
|
|
@@ -3409,9 +3509,9 @@ function createTableStyles() {
|
|
|
3409
3509
|
};
|
|
3410
3510
|
}
|
|
3411
3511
|
// src/styles/tabs.ts
|
|
3412
|
-
import { css as
|
|
3512
|
+
import { css as css37 } from "@vertz/ui";
|
|
3413
3513
|
function createTabsStyles() {
|
|
3414
|
-
const s =
|
|
3514
|
+
const s = css37({
|
|
3415
3515
|
tabsList: [
|
|
3416
3516
|
"inline-flex",
|
|
3417
3517
|
"items:center",
|
|
@@ -3498,7 +3598,7 @@ function createTabsStyles() {
|
|
|
3498
3598
|
};
|
|
3499
3599
|
}
|
|
3500
3600
|
// src/styles/textarea.ts
|
|
3501
|
-
import { css as
|
|
3601
|
+
import { css as css38 } from "@vertz/ui";
|
|
3502
3602
|
function createTextarea() {
|
|
3503
3603
|
const focusRing13 = {
|
|
3504
3604
|
"&:focus-visible": [
|
|
@@ -3510,7 +3610,7 @@ function createTextarea() {
|
|
|
3510
3610
|
{ "outline-offset": "2px" }
|
|
3511
3611
|
]
|
|
3512
3612
|
};
|
|
3513
|
-
const s =
|
|
3613
|
+
const s = css38({
|
|
3514
3614
|
textareaBase: [
|
|
3515
3615
|
"flex",
|
|
3516
3616
|
"w:full",
|
|
@@ -3541,7 +3641,7 @@ function createTextarea() {
|
|
|
3541
3641
|
};
|
|
3542
3642
|
}
|
|
3543
3643
|
// src/styles/toast.ts
|
|
3544
|
-
import { css as
|
|
3644
|
+
import { css as css39 } from "@vertz/ui";
|
|
3545
3645
|
var focusRing13 = {
|
|
3546
3646
|
"&:focus-visible": [
|
|
3547
3647
|
"outline-none",
|
|
@@ -3552,7 +3652,7 @@ var focusRing13 = {
|
|
|
3552
3652
|
]
|
|
3553
3653
|
};
|
|
3554
3654
|
function createToastStyles() {
|
|
3555
|
-
const s =
|
|
3655
|
+
const s = css39({
|
|
3556
3656
|
toastViewport: [
|
|
3557
3657
|
"fixed",
|
|
3558
3658
|
"z:50",
|
|
@@ -3632,7 +3732,7 @@ function createToastStyles() {
|
|
|
3632
3732
|
};
|
|
3633
3733
|
}
|
|
3634
3734
|
// src/styles/toggle.ts
|
|
3635
|
-
import { css as
|
|
3735
|
+
import { css as css40 } from "@vertz/ui";
|
|
3636
3736
|
var focusRing14 = {
|
|
3637
3737
|
"&:focus-visible": [
|
|
3638
3738
|
"outline-none",
|
|
@@ -3643,7 +3743,7 @@ var focusRing14 = {
|
|
|
3643
3743
|
]
|
|
3644
3744
|
};
|
|
3645
3745
|
function createToggleStyles() {
|
|
3646
|
-
const s =
|
|
3746
|
+
const s = css40({
|
|
3647
3747
|
toggleRoot: [
|
|
3648
3748
|
"inline-flex",
|
|
3649
3749
|
"items:center",
|
|
@@ -3670,7 +3770,7 @@ function createToggleStyles() {
|
|
|
3670
3770
|
};
|
|
3671
3771
|
}
|
|
3672
3772
|
// src/styles/toggle-group.ts
|
|
3673
|
-
import { css as
|
|
3773
|
+
import { css as css41 } from "@vertz/ui";
|
|
3674
3774
|
var focusRing15 = {
|
|
3675
3775
|
"&:focus-visible": [
|
|
3676
3776
|
"outline-none",
|
|
@@ -3681,7 +3781,7 @@ var focusRing15 = {
|
|
|
3681
3781
|
]
|
|
3682
3782
|
};
|
|
3683
3783
|
function createToggleGroupStyles() {
|
|
3684
|
-
const s =
|
|
3784
|
+
const s = css41({
|
|
3685
3785
|
toggleGroupRoot: ["inline-flex", "items:center", "gap:1", "rounded:md"],
|
|
3686
3786
|
toggleGroupItem: [
|
|
3687
3787
|
"inline-flex",
|
|
@@ -3710,9 +3810,9 @@ function createToggleGroupStyles() {
|
|
|
3710
3810
|
};
|
|
3711
3811
|
}
|
|
3712
3812
|
// src/styles/tooltip.ts
|
|
3713
|
-
import { css as
|
|
3813
|
+
import { css as css42 } from "@vertz/ui";
|
|
3714
3814
|
function createTooltipStyles() {
|
|
3715
|
-
const s =
|
|
3815
|
+
const s = css42({
|
|
3716
3816
|
tooltipContent: [
|
|
3717
3817
|
"z:50",
|
|
3718
3818
|
"bg:primary",
|
|
@@ -3777,6 +3877,7 @@ function configureTheme(config) {
|
|
|
3777
3877
|
const datePickerStyles = createDatePickerStyles();
|
|
3778
3878
|
const drawerStyles = createDrawerStyles();
|
|
3779
3879
|
const hoverCardStyles = createHoverCardStyles();
|
|
3880
|
+
const listStyles = createListStyles();
|
|
3780
3881
|
const menubarStyles = createMenubarStyles();
|
|
3781
3882
|
const navigationMenuStyles = createNavigationMenuStyles();
|
|
3782
3883
|
const paginationStyles = createPaginationStyles();
|
|
@@ -3821,6 +3922,7 @@ function configureTheme(config) {
|
|
|
3821
3922
|
datePicker: datePickerStyles,
|
|
3822
3923
|
drawer: drawerStyles,
|
|
3823
3924
|
hoverCard: hoverCardStyles,
|
|
3925
|
+
list: listStyles,
|
|
3824
3926
|
menubar: menubarStyles,
|
|
3825
3927
|
navigationMenu: navigationMenuStyles,
|
|
3826
3928
|
pagination: paginationStyles,
|
|
@@ -3834,12 +3936,12 @@ function configureTheme(config) {
|
|
|
3834
3936
|
green: { backgroundColor: "oklch(0.55 0.15 155)", color: "#fff" },
|
|
3835
3937
|
yellow: { backgroundColor: "oklch(0.75 0.15 85)", color: "oklch(0.25 0.05 85)" }
|
|
3836
3938
|
};
|
|
3837
|
-
const DefaultAlert =
|
|
3939
|
+
const DefaultAlert = withStyles19(ComposedAlert, {
|
|
3838
3940
|
root: alertStyles.root,
|
|
3839
3941
|
title: alertStyles.title,
|
|
3840
3942
|
description: alertStyles.description
|
|
3841
3943
|
});
|
|
3842
|
-
const DestructiveAlert =
|
|
3944
|
+
const DestructiveAlert = withStyles19(ComposedAlert, {
|
|
3843
3945
|
root: [alertStyles.root, alertStyles.destructive].join(" "),
|
|
3844
3946
|
title: alertStyles.title,
|
|
3845
3947
|
description: alertStyles.description
|
|
@@ -3858,7 +3960,7 @@ function configureTheme(config) {
|
|
|
3858
3960
|
const style = color ? badgeColorInlineStyles[color] : undefined;
|
|
3859
3961
|
return ComposedBadge({ ...rest, classes: { base: badgeStyles({ color }) }, style });
|
|
3860
3962
|
},
|
|
3861
|
-
Breadcrumb:
|
|
3963
|
+
Breadcrumb: withStyles19(ComposedBreadcrumb, {
|
|
3862
3964
|
nav: breadcrumbStyles.nav,
|
|
3863
3965
|
list: breadcrumbStyles.list,
|
|
3864
3966
|
item: breadcrumbStyles.item,
|
|
@@ -3866,7 +3968,7 @@ function configureTheme(config) {
|
|
|
3866
3968
|
page: breadcrumbStyles.page,
|
|
3867
3969
|
separator: breadcrumbStyles.separator
|
|
3868
3970
|
}),
|
|
3869
|
-
Card:
|
|
3971
|
+
Card: withStyles19(ComposedCard, {
|
|
3870
3972
|
root: cardStyles.root,
|
|
3871
3973
|
header: cardStyles.header,
|
|
3872
3974
|
title: cardStyles.title,
|
|
@@ -3875,9 +3977,9 @@ function configureTheme(config) {
|
|
|
3875
3977
|
footer: cardStyles.footer,
|
|
3876
3978
|
action: cardStyles.action
|
|
3877
3979
|
}),
|
|
3878
|
-
Input:
|
|
3879
|
-
Textarea:
|
|
3880
|
-
Label:
|
|
3980
|
+
Input: withStyles19(ComposedInput, { base: inputStyles.base }),
|
|
3981
|
+
Textarea: withStyles19(ComposedTextarea, { base: textareaStyles.base }),
|
|
3982
|
+
Label: withStyles19(ComposedLabel, { base: labelStyles.base }),
|
|
3881
3983
|
Pagination: (props) => ComposedPagination({
|
|
3882
3984
|
...props,
|
|
3883
3985
|
classes: {
|
|
@@ -3890,37 +3992,37 @@ function configureTheme(config) {
|
|
|
3890
3992
|
ellipsis: paginationStyles.ellipsis
|
|
3891
3993
|
}
|
|
3892
3994
|
}),
|
|
3893
|
-
Separator:
|
|
3995
|
+
Separator: withStyles19(ComposedSeparator, {
|
|
3894
3996
|
base: separatorStyles.base,
|
|
3895
3997
|
horizontal: separatorStyles.horizontal,
|
|
3896
3998
|
vertical: separatorStyles.vertical
|
|
3897
3999
|
}),
|
|
3898
|
-
FormGroup:
|
|
4000
|
+
FormGroup: withStyles19(ComposedFormGroup, {
|
|
3899
4001
|
base: formGroupStyles.base,
|
|
3900
4002
|
error: formGroupStyles.error
|
|
3901
4003
|
}),
|
|
3902
|
-
Avatar:
|
|
4004
|
+
Avatar: withStyles19(ComposedAvatar, {
|
|
3903
4005
|
root: avatarStyles.root,
|
|
3904
4006
|
image: avatarStyles.image,
|
|
3905
4007
|
fallback: avatarStyles.fallback
|
|
3906
4008
|
}),
|
|
3907
|
-
EmptyState:
|
|
4009
|
+
EmptyState: withStyles19(ComposedEmptyState, {
|
|
3908
4010
|
root: emptyStateStyles.root,
|
|
3909
4011
|
icon: emptyStateStyles.icon,
|
|
3910
4012
|
title: emptyStateStyles.title,
|
|
3911
4013
|
description: emptyStateStyles.description,
|
|
3912
4014
|
action: emptyStateStyles.action
|
|
3913
4015
|
}),
|
|
3914
|
-
Skeleton: Object.assign(
|
|
3915
|
-
Text:
|
|
4016
|
+
Skeleton: Object.assign(withStyles19(ComposedSkeleton, { root: skeletonStyles.root }), {
|
|
4017
|
+
Text: withStyles19(ComposedSkeleton.Text, {
|
|
3916
4018
|
root: skeletonStyles.textRoot,
|
|
3917
4019
|
line: skeletonStyles.textLine
|
|
3918
4020
|
}),
|
|
3919
|
-
Circle:
|
|
4021
|
+
Circle: withStyles19(ComposedSkeleton.Circle, {
|
|
3920
4022
|
root: skeletonStyles.circleRoot
|
|
3921
4023
|
})
|
|
3922
4024
|
}),
|
|
3923
|
-
Table:
|
|
4025
|
+
Table: withStyles19(ComposedTable, {
|
|
3924
4026
|
root: tableStyles.root,
|
|
3925
4027
|
header: tableStyles.header,
|
|
3926
4028
|
body: tableStyles.body,
|
|
@@ -3956,6 +4058,7 @@ function configureTheme(config) {
|
|
|
3956
4058
|
}),
|
|
3957
4059
|
Drawer: createThemedDrawer(drawerStyles),
|
|
3958
4060
|
HoverCard: createThemedHoverCard(hoverCardStyles),
|
|
4061
|
+
List: createThemedList(listStyles),
|
|
3959
4062
|
Menubar: createThemedMenubar(menubarStyles),
|
|
3960
4063
|
NavigationMenu: createThemedNavigationMenu(navigationMenuStyles),
|
|
3961
4064
|
ResizablePanel: createThemedResizablePanel(resizablePanelStyles),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertz/theme-shadcn",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Shadcn-inspired theme for Vertz — pre-built style definitions using variants() and css()",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"typecheck": "tsc --noEmit"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@vertz/ui": "^0.2.
|
|
43
|
-
"@vertz/ui-primitives": "^0.2.
|
|
42
|
+
"@vertz/ui": "^0.2.25",
|
|
43
|
+
"@vertz/ui-primitives": "^0.2.25"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@happy-dom/global-registrator": "^20.7.0",
|
|
47
|
-
"@vertz/ui-compiler": "^0.2.
|
|
47
|
+
"@vertz/ui-compiler": "^0.2.25",
|
|
48
48
|
"bunup": "^0.16.31",
|
|
49
49
|
"happy-dom": "^20.7.0",
|
|
50
50
|
"typescript": "^5.7.0"
|