@vaneui/ui 0.3.1-alpha.20250914202143.38eda80 → 0.3.1-alpha.20250914210126.5142197
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/components/ui/props/border.d.ts +0 -18
- package/dist/components/ui/props/border.d.ts.map +1 -1
- package/dist/components/ui/theme/appearance/appearanceTheme.d.ts +10 -0
- package/dist/components/ui/theme/appearance/appearanceTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/appearance/genericVariantTheme.d.ts +2 -0
- package/dist/components/ui/theme/appearance/genericVariantTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/appearance/shadowAppearanceTheme.d.ts +10 -0
- package/dist/components/ui/theme/appearance/shadowAppearanceTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/borderTheme.d.ts +7 -0
- package/dist/components/ui/theme/layout/borderTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/directionTheme.d.ts +4 -0
- package/dist/components/ui/theme/layout/directionTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/displayTheme.d.ts +11 -0
- package/dist/components/ui/theme/layout/displayTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/focusVisibleTheme.d.ts +5 -0
- package/dist/components/ui/theme/layout/focusVisibleTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/hideTheme.d.ts +5 -0
- package/dist/components/ui/theme/layout/hideTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/itemsTheme.d.ts +5 -0
- package/dist/components/ui/theme/layout/itemsTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/justifyTheme.d.ts +8 -0
- package/dist/components/ui/theme/layout/justifyTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/overflowTheme.d.ts +15 -0
- package/dist/components/ui/theme/layout/overflowTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/positionTheme.d.ts +5 -0
- package/dist/components/ui/theme/layout/positionTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/radiusTheme.d.ts +3 -0
- package/dist/components/ui/theme/layout/radiusTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/ringTheme.d.ts +5 -0
- package/dist/components/ui/theme/layout/ringTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/wrapTheme.d.ts +3 -0
- package/dist/components/ui/theme/layout/wrapTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/list/listStyleTheme.d.ts +2 -0
- package/dist/components/ui/theme/list/listStyleTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/breakpointTheme.d.ts +5 -0
- package/dist/components/ui/theme/size/breakpointTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/gapTheme.d.ts +5 -0
- package/dist/components/ui/theme/size/gapTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/paddingTheme.d.ts +5 -0
- package/dist/components/ui/theme/size/paddingTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/plTheme.d.ts +1 -0
- package/dist/components/ui/theme/size/plTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/pxTheme.d.ts +1 -0
- package/dist/components/ui/theme/size/pxTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/pyTheme.d.ts +1 -0
- package/dist/components/ui/theme/size/pyTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/sizeTheme.d.ts +5 -0
- package/dist/components/ui/theme/size/sizeTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/typography/fontFamilyTheme.d.ts +3 -0
- package/dist/components/ui/theme/typography/fontFamilyTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/typography/fontStyleTheme.d.ts +2 -0
- package/dist/components/ui/theme/typography/fontStyleTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/typography/fontWeightTheme.d.ts +9 -0
- package/dist/components/ui/theme/typography/fontWeightTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/typography/textAlignTheme.d.ts +4 -0
- package/dist/components/ui/theme/typography/textAlignTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/typography/textDecorationTheme.d.ts +4 -0
- package/dist/components/ui/theme/typography/textDecorationTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/typography/textTransformTheme.d.ts +4 -0
- package/dist/components/ui/theme/typography/textTransformTheme.d.ts.map +1 -1
- package/dist/index.esm.js +127 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +126 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52,24 +52,8 @@ const BORDER_Y = 'borderY';
|
|
|
52
52
|
const NO_BORDER = 'noBorder';
|
|
53
53
|
/** All border property values - includes all border variations and noBorder */
|
|
54
54
|
const BORDER_VALUES = [BORDER$1, BORDER_T, BORDER_B, BORDER_L, BORDER_R, BORDER_X, BORDER_Y, NO_BORDER];
|
|
55
|
-
/** All borderT property values */
|
|
56
|
-
const BORDER_T_VALUES = [BORDER_T];
|
|
57
|
-
/** All borderB property values */
|
|
58
|
-
const BORDER_B_VALUES = [BORDER_B];
|
|
59
|
-
/** All borderL property values */
|
|
60
|
-
const BORDER_L_VALUES = [BORDER_L];
|
|
61
|
-
/** All borderR property values */
|
|
62
|
-
const BORDER_R_VALUES = [BORDER_R];
|
|
63
|
-
/** All borderX property values */
|
|
64
|
-
const BORDER_X_VALUES = [BORDER_X];
|
|
65
|
-
/** All borderY property values */
|
|
66
|
-
const BORDER_Y_VALUES = [BORDER_Y];
|
|
67
|
-
/** All noBorder property values */
|
|
68
|
-
const NO_BORDER_VALUES = [NO_BORDER];
|
|
69
55
|
/** All border side keys (excluding noBorder since it doesn't have a CSS class) */
|
|
70
56
|
const BORDER_KEYS = [BORDER$1, BORDER_T, BORDER_B, BORDER_L, BORDER_R, BORDER_X, BORDER_Y];
|
|
71
|
-
/** All border keys including noBorder for category purposes */
|
|
72
|
-
const ALL_BORDER_KEYS = [...BORDER_KEYS, NO_BORDER];
|
|
73
57
|
|
|
74
58
|
/** Extra-small column breakpoint - responsive grid column sizing for xs screens */
|
|
75
59
|
const XS_COL = 'xsCol';
|
|
@@ -584,10 +568,15 @@ const ComponentCategories = {
|
|
|
584
568
|
class HideTheme extends BaseTheme {
|
|
585
569
|
constructor() {
|
|
586
570
|
super(...arguments);
|
|
571
|
+
/** Hide element on extra-small screens and below */
|
|
587
572
|
this.xsHide = "max-xs:hidden";
|
|
573
|
+
/** Hide element on small screens and below */
|
|
588
574
|
this.smHide = "max-sm:hidden";
|
|
575
|
+
/** Hide element on medium screens and below */
|
|
589
576
|
this.mdHide = "max-md:hidden";
|
|
577
|
+
/** Hide element on large screens and below */
|
|
590
578
|
this.lgHide = "max-lg:hidden";
|
|
579
|
+
/** Hide element on extra-large screens and below */
|
|
591
580
|
this.xlHide = "max-xl:hidden";
|
|
592
581
|
}
|
|
593
582
|
getClasses(extractedKeys) {
|
|
@@ -598,10 +587,15 @@ class HideTheme extends BaseTheme {
|
|
|
598
587
|
class ItemsTheme extends BaseTheme {
|
|
599
588
|
constructor() {
|
|
600
589
|
super(...arguments);
|
|
590
|
+
/** Align flex items to the start of the cross axis */
|
|
601
591
|
this.itemsStart = "items-start";
|
|
592
|
+
/** Align flex items to the end of the cross axis */
|
|
602
593
|
this.itemsEnd = "items-end";
|
|
594
|
+
/** Center flex items along the cross axis */
|
|
603
595
|
this.itemsCenter = "items-center";
|
|
596
|
+
/** Align flex items along their baseline */
|
|
604
597
|
this.itemsBaseline = "items-baseline";
|
|
598
|
+
/** Stretch flex items to fill the cross axis */
|
|
605
599
|
this.itemsStretch = "items-stretch";
|
|
606
600
|
}
|
|
607
601
|
getClasses(extractedKeys) {
|
|
@@ -612,13 +606,21 @@ class ItemsTheme extends BaseTheme {
|
|
|
612
606
|
class JustifyTheme extends BaseTheme {
|
|
613
607
|
constructor() {
|
|
614
608
|
super(...arguments);
|
|
609
|
+
/** Pack flex items toward the start of the main axis */
|
|
615
610
|
this.justifyStart = "justify-start";
|
|
611
|
+
/** Pack flex items toward the end of the main axis */
|
|
616
612
|
this.justifyEnd = "justify-end";
|
|
613
|
+
/** Pack flex items around the center of the main axis */
|
|
617
614
|
this.justifyCenter = "justify-center";
|
|
615
|
+
/** Distribute flex items with equal space between them */
|
|
618
616
|
this.justifyBetween = "justify-between";
|
|
617
|
+
/** Distribute flex items with equal space around them */
|
|
619
618
|
this.justifyAround = "justify-around";
|
|
619
|
+
/** Distribute flex items with equal space around them, including edges */
|
|
620
620
|
this.justifyEvenly = "justify-evenly";
|
|
621
|
+
/** Stretch flex items to fill the main axis */
|
|
621
622
|
this.justifyStretch = "justify-stretch";
|
|
623
|
+
/** Align flex items along their baseline on the main axis */
|
|
622
624
|
this.justifyBaseline = "justify-baseline";
|
|
623
625
|
}
|
|
624
626
|
getClasses(extractedKeys) {
|
|
@@ -629,10 +631,15 @@ class JustifyTheme extends BaseTheme {
|
|
|
629
631
|
class PositionTheme extends BaseTheme {
|
|
630
632
|
constructor() {
|
|
631
633
|
super(...arguments);
|
|
634
|
+
/** Relative positioning - positioned relative to its normal position */
|
|
632
635
|
this.relative = "relative";
|
|
636
|
+
/** Absolute positioning - positioned relative to its closest positioned ancestor */
|
|
633
637
|
this.absolute = "absolute";
|
|
638
|
+
/** Fixed positioning - positioned relative to the viewport */
|
|
634
639
|
this.fixed = "fixed";
|
|
640
|
+
/** Sticky positioning - toggles between relative and fixed based on scroll position */
|
|
635
641
|
this.sticky = "sticky";
|
|
642
|
+
/** Static positioning - default positioning, not affected by top/left/right/bottom */
|
|
636
643
|
this.static = "static";
|
|
637
644
|
}
|
|
638
645
|
getClasses(extractedKeys) {
|
|
@@ -643,7 +650,9 @@ class PositionTheme extends BaseTheme {
|
|
|
643
650
|
class FontStyleTheme extends BaseTheme {
|
|
644
651
|
constructor() {
|
|
645
652
|
super(...arguments);
|
|
653
|
+
/** Italic font style - slanted text */
|
|
646
654
|
this.italic = "italic";
|
|
655
|
+
/** Normal font style - upright text (not italic) */
|
|
647
656
|
this.notItalic = "not-italic";
|
|
648
657
|
}
|
|
649
658
|
getClasses(extractedKeys) {
|
|
@@ -654,8 +663,11 @@ class FontStyleTheme extends BaseTheme {
|
|
|
654
663
|
class FontFamilyTheme extends BaseTheme {
|
|
655
664
|
constructor() {
|
|
656
665
|
super(...arguments);
|
|
666
|
+
/** Sans-serif font family - clean, modern fonts without serifs */
|
|
657
667
|
this.sans = "font-sans";
|
|
668
|
+
/** Serif font family - traditional fonts with serifs */
|
|
658
669
|
this.serif = "font-serif";
|
|
670
|
+
/** Monospace font family - fixed-width fonts for code and data */
|
|
659
671
|
this.mono = "font-mono";
|
|
660
672
|
}
|
|
661
673
|
getClasses(extractedKeys) {
|
|
@@ -666,14 +678,23 @@ class FontFamilyTheme extends BaseTheme {
|
|
|
666
678
|
class FontWeightTheme extends BaseTheme {
|
|
667
679
|
constructor() {
|
|
668
680
|
super(...arguments);
|
|
681
|
+
/** Thin font weight (100) - lightest weight */
|
|
669
682
|
this.thin = "font-thin";
|
|
683
|
+
/** Extra-light font weight (200) - very light */
|
|
670
684
|
this.extralight = "font-extralight";
|
|
685
|
+
/** Light font weight (300) - lighter than normal */
|
|
671
686
|
this.light = "font-light";
|
|
687
|
+
/** Normal font weight (400) - default font weight */
|
|
672
688
|
this.normal = "font-normal";
|
|
689
|
+
/** Medium font weight (500) - slightly bold */
|
|
673
690
|
this.medium = "font-medium";
|
|
691
|
+
/** Semi-bold font weight (600) - moderately bold */
|
|
674
692
|
this.semibold = "font-semibold";
|
|
693
|
+
/** Bold font weight (700) - standard bold */
|
|
675
694
|
this.bold = "font-bold";
|
|
695
|
+
/** Extra-bold font weight (800) - very bold */
|
|
676
696
|
this.extrabold = "font-extrabold";
|
|
697
|
+
/** Black font weight (900) - heaviest weight */
|
|
677
698
|
this.black = "font-black";
|
|
678
699
|
}
|
|
679
700
|
getClasses(extractedKeys) {
|
|
@@ -684,9 +705,13 @@ class FontWeightTheme extends BaseTheme {
|
|
|
684
705
|
class TextDecorationTheme extends BaseTheme {
|
|
685
706
|
constructor() {
|
|
686
707
|
super(...arguments);
|
|
708
|
+
/** Underline text decoration - line below text */
|
|
687
709
|
this.underline = "underline";
|
|
710
|
+
/** Line-through text decoration - strikethrough */
|
|
688
711
|
this.lineThrough = "line-through";
|
|
712
|
+
/** Remove underline text decoration */
|
|
689
713
|
this.noUnderline = "no-underline";
|
|
714
|
+
/** Overline text decoration - line above text */
|
|
690
715
|
this.overline = "overline";
|
|
691
716
|
}
|
|
692
717
|
getClasses(extractedKeys) {
|
|
@@ -697,9 +722,13 @@ class TextDecorationTheme extends BaseTheme {
|
|
|
697
722
|
class TextTransformTheme extends BaseTheme {
|
|
698
723
|
constructor() {
|
|
699
724
|
super(...arguments);
|
|
725
|
+
/** Transform text to UPPERCASE */
|
|
700
726
|
this.uppercase = "uppercase";
|
|
727
|
+
/** Transform text to lowercase */
|
|
701
728
|
this.lowercase = "lowercase";
|
|
729
|
+
/** Capitalize First Letter Of Each Word */
|
|
702
730
|
this.capitalize = "capitalize";
|
|
731
|
+
/** Normal case - no text transformation */
|
|
703
732
|
this.normalCase = "normal-case";
|
|
704
733
|
}
|
|
705
734
|
getClasses(extractedKeys) {
|
|
@@ -710,9 +739,13 @@ class TextTransformTheme extends BaseTheme {
|
|
|
710
739
|
class TextAlignTheme extends BaseTheme {
|
|
711
740
|
constructor() {
|
|
712
741
|
super(...arguments);
|
|
742
|
+
/** Left-align text */
|
|
713
743
|
this.textLeft = "text-left";
|
|
744
|
+
/** Center-align text */
|
|
714
745
|
this.textCenter = "text-center";
|
|
746
|
+
/** Right-align text */
|
|
715
747
|
this.textRight = "text-right";
|
|
748
|
+
/** Justify text - stretch lines to fill width */
|
|
716
749
|
this.textJustify = "text-justify";
|
|
717
750
|
}
|
|
718
751
|
getClasses(extractedKeys) {
|
|
@@ -723,16 +756,27 @@ class TextAlignTheme extends BaseTheme {
|
|
|
723
756
|
class DisplayTheme extends BaseTheme {
|
|
724
757
|
constructor() {
|
|
725
758
|
super(...arguments);
|
|
759
|
+
/** Inline display - element flows with text */
|
|
726
760
|
this.inline = "inline";
|
|
761
|
+
/** Block display - element takes full width */
|
|
727
762
|
this.block = "block";
|
|
763
|
+
/** Inline-block display - element flows with text but can have width/height */
|
|
728
764
|
this.inlineBlock = "inline-block";
|
|
765
|
+
/** Flex display - creates a flex container */
|
|
729
766
|
this.flex = "flex";
|
|
767
|
+
/** Inline-flex display - creates an inline flex container */
|
|
730
768
|
this.inlineFlex = "inline-flex";
|
|
769
|
+
/** Grid display - creates a grid container */
|
|
731
770
|
this.grid = "grid";
|
|
771
|
+
/** Inline-grid display - creates an inline grid container */
|
|
732
772
|
this.inlineGrid = "inline-grid";
|
|
773
|
+
/** Contents display - element's children behave as if they are direct children of the parent */
|
|
733
774
|
this.contents = "contents";
|
|
775
|
+
/** Table display - element behaves like a table */
|
|
734
776
|
this.table = "table";
|
|
777
|
+
/** Table-cell display - element behaves like a table cell */
|
|
735
778
|
this.tableCell = "table-cell";
|
|
779
|
+
/** Hidden display - element is completely removed from layout */
|
|
736
780
|
this.hidden = "hidden";
|
|
737
781
|
}
|
|
738
782
|
getClasses(extractedKeys) {
|
|
@@ -3454,20 +3498,35 @@ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
|
|
|
3454
3498
|
class OverflowTheme extends BaseTheme {
|
|
3455
3499
|
constructor() {
|
|
3456
3500
|
super(...arguments);
|
|
3501
|
+
/** Auto overflow - adds scrollbars when content overflows */
|
|
3457
3502
|
this.overflowAuto = 'overflow-auto';
|
|
3503
|
+
/** Hidden overflow - clips content that overflows */
|
|
3458
3504
|
this.overflowHidden = 'overflow-hidden';
|
|
3505
|
+
/** Clip overflow - clips content without scrollbars */
|
|
3459
3506
|
this.overflowClip = 'overflow-clip';
|
|
3507
|
+
/** Visible overflow - content overflows and remains visible */
|
|
3460
3508
|
this.overflowVisible = 'overflow-visible';
|
|
3509
|
+
/** Scroll overflow - always shows scrollbars */
|
|
3461
3510
|
this.overflowScroll = 'overflow-scroll';
|
|
3511
|
+
/** Auto horizontal overflow - adds horizontal scrollbar when needed */
|
|
3462
3512
|
this.overflowXAuto = 'overflow-x-auto';
|
|
3513
|
+
/** Auto vertical overflow - adds vertical scrollbar when needed */
|
|
3463
3514
|
this.overflowYAuto = 'overflow-y-auto';
|
|
3515
|
+
/** Hidden horizontal overflow - clips content horizontally */
|
|
3464
3516
|
this.overflowXHidden = 'overflow-x-hidden';
|
|
3517
|
+
/** Hidden vertical overflow - clips content vertically */
|
|
3465
3518
|
this.overflowYHidden = 'overflow-y-hidden';
|
|
3519
|
+
/** Clip horizontal overflow - clips content horizontally without scrollbars */
|
|
3466
3520
|
this.overflowXClip = 'overflow-x-clip';
|
|
3521
|
+
/** Clip vertical overflow - clips content vertically without scrollbars */
|
|
3467
3522
|
this.overflowYClip = 'overflow-y-clip';
|
|
3523
|
+
/** Visible horizontal overflow - content overflows horizontally and remains visible */
|
|
3468
3524
|
this.overflowXVisible = 'overflow-x-visible';
|
|
3525
|
+
/** Visible vertical overflow - content overflows vertically and remains visible */
|
|
3469
3526
|
this.overflowYVisible = 'overflow-y-visible';
|
|
3527
|
+
/** Scroll horizontal overflow - always shows horizontal scrollbar */
|
|
3470
3528
|
this.overflowXScroll = 'overflow-x-scroll';
|
|
3529
|
+
/** Scroll vertical overflow - always shows vertical scrollbar */
|
|
3471
3530
|
this.overflowYScroll = 'overflow-y-scroll';
|
|
3472
3531
|
}
|
|
3473
3532
|
getClasses(extractedKeys) {
|
|
@@ -3597,10 +3656,15 @@ class ComponentTheme {
|
|
|
3597
3656
|
class SizeTheme extends BaseTheme {
|
|
3598
3657
|
constructor(sizeMap, useDefaultKey = true) {
|
|
3599
3658
|
super();
|
|
3659
|
+
/** Extra-small size variant */
|
|
3600
3660
|
this.xs = "";
|
|
3661
|
+
/** Small size variant */
|
|
3601
3662
|
this.sm = "";
|
|
3663
|
+
/** Medium size variant (default) */
|
|
3602
3664
|
this.md = "";
|
|
3665
|
+
/** Large size variant */
|
|
3603
3666
|
this.lg = "";
|
|
3667
|
+
/** Extra-large size variant */
|
|
3604
3668
|
this.xl = "";
|
|
3605
3669
|
this.useDefaultKey = useDefaultKey;
|
|
3606
3670
|
ComponentKeys.size.forEach((key) => {
|
|
@@ -3618,10 +3682,15 @@ class SizeTheme extends BaseTheme {
|
|
|
3618
3682
|
class GapTheme extends BaseTheme {
|
|
3619
3683
|
constructor(sizeMap) {
|
|
3620
3684
|
super();
|
|
3685
|
+
/** Extra-small gap - 0.5rem spacing between items */
|
|
3621
3686
|
this.xs = 'gap-2';
|
|
3687
|
+
/** Small gap - 0.75rem spacing between items */
|
|
3622
3688
|
this.sm = 'gap-3';
|
|
3689
|
+
/** Medium gap - 1rem spacing between items */
|
|
3623
3690
|
this.md = 'gap-4';
|
|
3691
|
+
/** Large gap - 1.25rem spacing between items */
|
|
3624
3692
|
this.lg = 'gap-5';
|
|
3693
|
+
/** Extra-large gap - 1.5rem spacing between items */
|
|
3625
3694
|
this.xl = 'gap-6';
|
|
3626
3695
|
if (sizeMap) {
|
|
3627
3696
|
ComponentKeys.size.forEach((key) => {
|
|
@@ -3659,7 +3728,9 @@ const layoutBorderRadiusClasses = {
|
|
|
3659
3728
|
class RadiusTheme extends BaseTheme {
|
|
3660
3729
|
constructor(roundedClasses) {
|
|
3661
3730
|
super();
|
|
3731
|
+
/** Pill shape - fully rounded corners */
|
|
3662
3732
|
this.pill = "rounded-full";
|
|
3733
|
+
/** Sharp shape - no rounded corners */
|
|
3663
3734
|
this.sharp = "rounded-none";
|
|
3664
3735
|
this.rounded = roundedClasses;
|
|
3665
3736
|
}
|
|
@@ -3691,12 +3762,19 @@ class RadiusTheme extends BaseTheme {
|
|
|
3691
3762
|
class BorderTheme extends BaseTheme {
|
|
3692
3763
|
constructor() {
|
|
3693
3764
|
super(...arguments);
|
|
3765
|
+
/** Show border - adds appearance-based border styling */
|
|
3694
3766
|
this.border = "border";
|
|
3767
|
+
/** Show top border */
|
|
3695
3768
|
this.borderT = "border-t";
|
|
3769
|
+
/** Show bottom border */
|
|
3696
3770
|
this.borderB = "border-b";
|
|
3771
|
+
/** Show left border */
|
|
3697
3772
|
this.borderL = "border-l";
|
|
3773
|
+
/** Show right border */
|
|
3698
3774
|
this.borderR = "border-r";
|
|
3775
|
+
/** Show horizontal borders (left and right) */
|
|
3699
3776
|
this.borderX = "border-x";
|
|
3777
|
+
/** Show vertical borders (top and bottom) */
|
|
3700
3778
|
this.borderY = "border-y";
|
|
3701
3779
|
}
|
|
3702
3780
|
getClasses(extractedKeys) {
|
|
@@ -3718,10 +3796,15 @@ class BorderTheme extends BaseTheme {
|
|
|
3718
3796
|
class RingTheme extends BaseTheme {
|
|
3719
3797
|
constructor() {
|
|
3720
3798
|
super(...arguments);
|
|
3799
|
+
/** Base ring styling - ring with inset positioning */
|
|
3721
3800
|
this.base = "ring ring-inset";
|
|
3801
|
+
/** Ring styling on hover state */
|
|
3722
3802
|
this.hover = "";
|
|
3803
|
+
/** Ring styling on active state */
|
|
3723
3804
|
this.active = "";
|
|
3805
|
+
/** Ring styling on focus state */
|
|
3724
3806
|
this.focus = "";
|
|
3807
|
+
/** Ring styling on focus-visible state for keyboard navigation */
|
|
3725
3808
|
this.focusVisible = "";
|
|
3726
3809
|
}
|
|
3727
3810
|
getClasses(extractedKeys) {
|
|
@@ -3734,10 +3817,15 @@ class RingTheme extends BaseTheme {
|
|
|
3734
3817
|
class FocusVisibleTheme extends BaseTheme {
|
|
3735
3818
|
constructor() {
|
|
3736
3819
|
super(...arguments);
|
|
3820
|
+
/** Base focus-visible styling */
|
|
3737
3821
|
this.base = "";
|
|
3822
|
+
/** Focus-visible styling on hover state */
|
|
3738
3823
|
this.hover = "";
|
|
3824
|
+
/** Focus-visible styling on active state */
|
|
3739
3825
|
this.active = "";
|
|
3826
|
+
/** Focus-visible styling on focus state */
|
|
3740
3827
|
this.focus = "";
|
|
3828
|
+
/** Focus-visible styling for keyboard navigation - outline on focus */
|
|
3741
3829
|
this.focusVisible = "focus-visible:outline-2 focus-visible:outline-offset-2";
|
|
3742
3830
|
}
|
|
3743
3831
|
getClasses(extractedKeys) {
|
|
@@ -3750,10 +3838,15 @@ class FocusVisibleTheme extends BaseTheme {
|
|
|
3750
3838
|
class PaddingTheme extends BaseTheme {
|
|
3751
3839
|
constructor(initial) {
|
|
3752
3840
|
super();
|
|
3841
|
+
/** Extra-small padding - varies by component implementation */
|
|
3753
3842
|
this.xs = "";
|
|
3843
|
+
/** Small padding - varies by component implementation */
|
|
3754
3844
|
this.sm = "";
|
|
3845
|
+
/** Medium padding - varies by component implementation */
|
|
3755
3846
|
this.md = "";
|
|
3847
|
+
/** Large padding - varies by component implementation */
|
|
3756
3848
|
this.lg = "";
|
|
3849
|
+
/** Extra-large padding - varies by component implementation */
|
|
3757
3850
|
this.xl = "";
|
|
3758
3851
|
if (initial) {
|
|
3759
3852
|
ComponentKeys.size.forEach((key) => {
|
|
@@ -3773,6 +3866,7 @@ class PaddingTheme extends BaseTheme {
|
|
|
3773
3866
|
}
|
|
3774
3867
|
}
|
|
3775
3868
|
|
|
3869
|
+
/** Horizontal padding theme - controls left and right padding */
|
|
3776
3870
|
class PxTheme extends PaddingTheme {
|
|
3777
3871
|
constructor(sizeMap) {
|
|
3778
3872
|
super(sizeMap);
|
|
@@ -3787,6 +3881,7 @@ class PxTheme extends PaddingTheme {
|
|
|
3787
3881
|
}
|
|
3788
3882
|
}
|
|
3789
3883
|
|
|
3884
|
+
/** Vertical padding theme - controls top and bottom padding */
|
|
3790
3885
|
class PyTheme extends PaddingTheme {
|
|
3791
3886
|
constructor(sizeMap) {
|
|
3792
3887
|
super(sizeMap);
|
|
@@ -4364,8 +4459,11 @@ class GenericVariantTheme extends BaseTheme {
|
|
|
4364
4459
|
class WrapTheme extends BaseTheme {
|
|
4365
4460
|
constructor() {
|
|
4366
4461
|
super(...arguments);
|
|
4462
|
+
/** Allow flex items to wrap to new lines */
|
|
4367
4463
|
this.flexWrap = "flex-wrap";
|
|
4464
|
+
/** Prevent flex items from wrapping - keep on single line */
|
|
4368
4465
|
this.flexNoWrap = "flex-nowrap";
|
|
4466
|
+
/** Allow flex items to wrap in reverse order */
|
|
4369
4467
|
this.flexWrapReverse = "flex-wrap-reverse";
|
|
4370
4468
|
}
|
|
4371
4469
|
getClasses(extractedKeys) {
|
|
@@ -4376,9 +4474,13 @@ class WrapTheme extends BaseTheme {
|
|
|
4376
4474
|
class DirectionTheme extends BaseTheme {
|
|
4377
4475
|
constructor() {
|
|
4378
4476
|
super(...arguments);
|
|
4477
|
+
/** Horizontal flex direction - items flow left to right */
|
|
4379
4478
|
this.row = "flex-row";
|
|
4479
|
+
/** Vertical flex direction - items flow top to bottom */
|
|
4380
4480
|
this.column = "flex-col";
|
|
4481
|
+
/** Reversed horizontal flex direction - items flow right to left */
|
|
4381
4482
|
this.rowReverse = "flex-row-reverse";
|
|
4483
|
+
/** Reversed vertical flex direction - items flow bottom to top */
|
|
4382
4484
|
this.columnReverse = "flex-col-reverse";
|
|
4383
4485
|
}
|
|
4384
4486
|
getClasses(extractedKeys) {
|
|
@@ -4823,6 +4925,7 @@ const mergeDefaults = (baseDefaults, overrideDefaults) => {
|
|
|
4823
4925
|
return finalDefaults;
|
|
4824
4926
|
};
|
|
4825
4927
|
|
|
4928
|
+
/** Left padding theme - controls left padding only */
|
|
4826
4929
|
class PlTheme extends PaddingTheme {
|
|
4827
4930
|
constructor(sizeMap) {
|
|
4828
4931
|
super(sizeMap);
|
|
@@ -4840,7 +4943,9 @@ class PlTheme extends PaddingTheme {
|
|
|
4840
4943
|
class ListStyleTheme extends BaseTheme {
|
|
4841
4944
|
constructor() {
|
|
4842
4945
|
super(...arguments);
|
|
4946
|
+
/** Disc list style - bullet points for unordered lists */
|
|
4843
4947
|
this.disc = 'list-disc';
|
|
4948
|
+
/** Decimal list style - numbers for ordered lists */
|
|
4844
4949
|
this.decimal = 'list-decimal';
|
|
4845
4950
|
}
|
|
4846
4951
|
getClasses(extractedKeys) {
|
|
@@ -4932,10 +5037,15 @@ const listTheme = new ComponentTheme("ul", "list-inside", {
|
|
|
4932
5037
|
class BreakpointTheme extends BaseTheme {
|
|
4933
5038
|
constructor() {
|
|
4934
5039
|
super(...arguments);
|
|
5040
|
+
/** Switch to column layout on extra-small screens and below */
|
|
4935
5041
|
this.xsCol = "max-xs:flex-col";
|
|
5042
|
+
/** Switch to column layout on small screens and below */
|
|
4936
5043
|
this.smCol = "max-sm:flex-col";
|
|
5044
|
+
/** Switch to column layout on medium screens and below */
|
|
4937
5045
|
this.mdCol = "max-md:flex-col";
|
|
5046
|
+
/** Switch to column layout on large screens and below */
|
|
4938
5047
|
this.lgCol = "max-lg:flex-col";
|
|
5048
|
+
/** Switch to column layout on extra-large screens and below */
|
|
4939
5049
|
this.xlCol = "max-xl:flex-col";
|
|
4940
5050
|
}
|
|
4941
5051
|
getClasses(extractedKeys) {
|
|
@@ -5578,7 +5688,6 @@ const List = react.forwardRef(function List(props, ref) {
|
|
|
5578
5688
|
exports.ABSOLUTE = ABSOLUTE;
|
|
5579
5689
|
exports.ACCENT = ACCENT;
|
|
5580
5690
|
exports.ACTIVE = ACTIVE;
|
|
5581
|
-
exports.ALL_BORDER_KEYS = ALL_BORDER_KEYS;
|
|
5582
5691
|
exports.APPEARANCE_CATEGORY = APPEARANCE_CATEGORY;
|
|
5583
5692
|
exports.APPEARANCE_VALUES = APPEARANCE_VALUES;
|
|
5584
5693
|
exports.BADGE_CATEGORIES = BADGE_CATEGORIES;
|
|
@@ -5588,19 +5697,13 @@ exports.BLOCK = BLOCK;
|
|
|
5588
5697
|
exports.BOLD = BOLD;
|
|
5589
5698
|
exports.BORDER = BORDER;
|
|
5590
5699
|
exports.BORDER_B = BORDER_B;
|
|
5591
|
-
exports.BORDER_B_VALUES = BORDER_B_VALUES;
|
|
5592
5700
|
exports.BORDER_KEYS = BORDER_KEYS;
|
|
5593
5701
|
exports.BORDER_L = BORDER_L;
|
|
5594
|
-
exports.BORDER_L_VALUES = BORDER_L_VALUES;
|
|
5595
5702
|
exports.BORDER_R = BORDER_R;
|
|
5596
|
-
exports.BORDER_R_VALUES = BORDER_R_VALUES;
|
|
5597
5703
|
exports.BORDER_T = BORDER_T;
|
|
5598
|
-
exports.BORDER_T_VALUES = BORDER_T_VALUES;
|
|
5599
5704
|
exports.BORDER_VALUES = BORDER_VALUES;
|
|
5600
5705
|
exports.BORDER_X = BORDER_X;
|
|
5601
|
-
exports.BORDER_X_VALUES = BORDER_X_VALUES;
|
|
5602
5706
|
exports.BORDER_Y = BORDER_Y;
|
|
5603
|
-
exports.BORDER_Y_VALUES = BORDER_Y_VALUES;
|
|
5604
5707
|
exports.BREAKPOINT = BREAKPOINT;
|
|
5605
5708
|
exports.BREAKPOINT_VALUES = BREAKPOINT_VALUES;
|
|
5606
5709
|
exports.BUTTON_CATEGORIES = BUTTON_CATEGORIES;
|
|
@@ -5716,7 +5819,6 @@ exports.NORMAL = NORMAL;
|
|
|
5716
5819
|
exports.NORMAL_CASE = NORMAL_CASE;
|
|
5717
5820
|
exports.NOT_ITALIC = NOT_ITALIC;
|
|
5718
5821
|
exports.NO_BORDER = NO_BORDER;
|
|
5719
|
-
exports.NO_BORDER_VALUES = NO_BORDER_VALUES;
|
|
5720
5822
|
exports.NO_FOCUS_VISIBLE_OUTLINE = NO_FOCUS_VISIBLE_OUTLINE;
|
|
5721
5823
|
exports.NO_GAP = NO_GAP;
|
|
5722
5824
|
exports.NO_PADDING = NO_PADDING;
|