@umami/react-zen 0.221.0 → 0.222.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +406 -7
- package/dist/index.mjs +406 -7
- package/package.json +1 -1
- package/styles.full.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -105,6 +105,17 @@ type AlignSelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-
|
|
|
105
105
|
type ObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
106
106
|
type Opacity = '0' | '5' | '10' | '15' | '20' | '25' | '30' | '35' | '40' | '45' | '50' | '55' | '60' | '65' | '70' | '75' | '80' | '85' | '90' | '95' | '100';
|
|
107
107
|
type PointerEvents = 'none' | 'auto';
|
|
108
|
+
type SizingSpecial = 'auto' | 'full' | 'min' | 'max' | 'fit';
|
|
109
|
+
type WidthViewport = 'screen' | 'svw' | 'lvw' | 'dvw';
|
|
110
|
+
type HeightViewport = 'screen' | 'svh' | 'lvh' | 'dvh';
|
|
111
|
+
type Fraction = '1/2' | '1/3' | '2/3' | '1/4' | '2/4' | '3/4' | '1/5' | '2/5' | '3/5' | '4/5' | '1/6' | '2/6' | '3/6' | '4/6' | '5/6' | '1/12' | '2/12' | '3/12' | '4/12' | '5/12' | '6/12' | '7/12' | '8/12' | '9/12' | '10/12' | '11/12';
|
|
112
|
+
type Width = Spacing | Fraction | SizingSpecial | WidthViewport;
|
|
113
|
+
type Height = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
114
|
+
type MaxWidthSpecial = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full' | 'min' | 'max' | 'fit' | 'prose' | 'screen-sm' | 'screen-md' | 'screen-lg' | 'screen-xl' | 'screen-2xl';
|
|
115
|
+
type MinWidth = Spacing | Fraction | SizingSpecial | WidthViewport;
|
|
116
|
+
type MaxWidth = Spacing | Fraction | MaxWidthSpecial | WidthViewport;
|
|
117
|
+
type MinHeight = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
118
|
+
type MaxHeight = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
108
119
|
|
|
109
120
|
type RenderProp<P = Record<string, unknown>> = ReactElement | ((props: P) => ReactElement);
|
|
110
121
|
/**
|
|
@@ -182,12 +193,12 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
182
193
|
marginRight?: Responsive<Spacing>;
|
|
183
194
|
marginBottom?: Responsive<Spacing>;
|
|
184
195
|
marginLeft?: Responsive<Spacing>;
|
|
185
|
-
width?: string
|
|
186
|
-
minWidth?: string
|
|
187
|
-
maxWidth?: string
|
|
188
|
-
height?: string
|
|
189
|
-
minHeight?: string
|
|
190
|
-
maxHeight?: string
|
|
196
|
+
width?: Responsive<Width | string>;
|
|
197
|
+
minWidth?: Responsive<MinWidth | string>;
|
|
198
|
+
maxWidth?: Responsive<MaxWidth | string>;
|
|
199
|
+
height?: Responsive<Height | string>;
|
|
200
|
+
minHeight?: Responsive<MinHeight | string>;
|
|
201
|
+
maxHeight?: Responsive<MaxHeight | string>;
|
|
191
202
|
position?: Responsive<Position>;
|
|
192
203
|
textAlign?: Responsive<TextAlign>;
|
|
193
204
|
top?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,17 @@ type AlignSelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-
|
|
|
105
105
|
type ObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
106
106
|
type Opacity = '0' | '5' | '10' | '15' | '20' | '25' | '30' | '35' | '40' | '45' | '50' | '55' | '60' | '65' | '70' | '75' | '80' | '85' | '90' | '95' | '100';
|
|
107
107
|
type PointerEvents = 'none' | 'auto';
|
|
108
|
+
type SizingSpecial = 'auto' | 'full' | 'min' | 'max' | 'fit';
|
|
109
|
+
type WidthViewport = 'screen' | 'svw' | 'lvw' | 'dvw';
|
|
110
|
+
type HeightViewport = 'screen' | 'svh' | 'lvh' | 'dvh';
|
|
111
|
+
type Fraction = '1/2' | '1/3' | '2/3' | '1/4' | '2/4' | '3/4' | '1/5' | '2/5' | '3/5' | '4/5' | '1/6' | '2/6' | '3/6' | '4/6' | '5/6' | '1/12' | '2/12' | '3/12' | '4/12' | '5/12' | '6/12' | '7/12' | '8/12' | '9/12' | '10/12' | '11/12';
|
|
112
|
+
type Width = Spacing | Fraction | SizingSpecial | WidthViewport;
|
|
113
|
+
type Height = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
114
|
+
type MaxWidthSpecial = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full' | 'min' | 'max' | 'fit' | 'prose' | 'screen-sm' | 'screen-md' | 'screen-lg' | 'screen-xl' | 'screen-2xl';
|
|
115
|
+
type MinWidth = Spacing | Fraction | SizingSpecial | WidthViewport;
|
|
116
|
+
type MaxWidth = Spacing | Fraction | MaxWidthSpecial | WidthViewport;
|
|
117
|
+
type MinHeight = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
118
|
+
type MaxHeight = Spacing | Fraction | SizingSpecial | HeightViewport;
|
|
108
119
|
|
|
109
120
|
type RenderProp<P = Record<string, unknown>> = ReactElement | ((props: P) => ReactElement);
|
|
110
121
|
/**
|
|
@@ -182,12 +193,12 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
182
193
|
marginRight?: Responsive<Spacing>;
|
|
183
194
|
marginBottom?: Responsive<Spacing>;
|
|
184
195
|
marginLeft?: Responsive<Spacing>;
|
|
185
|
-
width?: string
|
|
186
|
-
minWidth?: string
|
|
187
|
-
maxWidth?: string
|
|
188
|
-
height?: string
|
|
189
|
-
minHeight?: string
|
|
190
|
-
maxHeight?: string
|
|
196
|
+
width?: Responsive<Width | string>;
|
|
197
|
+
minWidth?: Responsive<MinWidth | string>;
|
|
198
|
+
maxWidth?: Responsive<MaxWidth | string>;
|
|
199
|
+
height?: Responsive<Height | string>;
|
|
200
|
+
minHeight?: Responsive<MinHeight | string>;
|
|
201
|
+
maxHeight?: Responsive<MaxHeight | string>;
|
|
191
202
|
position?: Responsive<Position>;
|
|
192
203
|
textAlign?: Responsive<TextAlign>;
|
|
193
204
|
top?: string;
|
package/dist/index.js
CHANGED
|
@@ -31617,6 +31617,373 @@ function getCssColorValue(value) {
|
|
|
31617
31617
|
}
|
|
31618
31618
|
return void 0;
|
|
31619
31619
|
}
|
|
31620
|
+
var widthMap = {
|
|
31621
|
+
// Spacing scale
|
|
31622
|
+
"0": "w-0",
|
|
31623
|
+
px: "w-px",
|
|
31624
|
+
"0.5": "w-0.5",
|
|
31625
|
+
"1": "w-1",
|
|
31626
|
+
"1.5": "w-1.5",
|
|
31627
|
+
"2": "w-2",
|
|
31628
|
+
"2.5": "w-2.5",
|
|
31629
|
+
"3": "w-3",
|
|
31630
|
+
"3.5": "w-3.5",
|
|
31631
|
+
"4": "w-4",
|
|
31632
|
+
"5": "w-5",
|
|
31633
|
+
"6": "w-6",
|
|
31634
|
+
"7": "w-7",
|
|
31635
|
+
"8": "w-8",
|
|
31636
|
+
"9": "w-9",
|
|
31637
|
+
"10": "w-10",
|
|
31638
|
+
"11": "w-11",
|
|
31639
|
+
"12": "w-12",
|
|
31640
|
+
"14": "w-14",
|
|
31641
|
+
"16": "w-16",
|
|
31642
|
+
"20": "w-20",
|
|
31643
|
+
"24": "w-24",
|
|
31644
|
+
"28": "w-28",
|
|
31645
|
+
"32": "w-32",
|
|
31646
|
+
"36": "w-36",
|
|
31647
|
+
"40": "w-40",
|
|
31648
|
+
"44": "w-44",
|
|
31649
|
+
"48": "w-48",
|
|
31650
|
+
"52": "w-52",
|
|
31651
|
+
"56": "w-56",
|
|
31652
|
+
"60": "w-60",
|
|
31653
|
+
"64": "w-64",
|
|
31654
|
+
"72": "w-72",
|
|
31655
|
+
"80": "w-80",
|
|
31656
|
+
"96": "w-96",
|
|
31657
|
+
// Fractions
|
|
31658
|
+
"1/2": "w-1/2",
|
|
31659
|
+
"1/3": "w-1/3",
|
|
31660
|
+
"2/3": "w-2/3",
|
|
31661
|
+
"1/4": "w-1/4",
|
|
31662
|
+
"2/4": "w-2/4",
|
|
31663
|
+
"3/4": "w-3/4",
|
|
31664
|
+
"1/5": "w-1/5",
|
|
31665
|
+
"2/5": "w-2/5",
|
|
31666
|
+
"3/5": "w-3/5",
|
|
31667
|
+
"4/5": "w-4/5",
|
|
31668
|
+
"1/6": "w-1/6",
|
|
31669
|
+
"2/6": "w-2/6",
|
|
31670
|
+
"3/6": "w-3/6",
|
|
31671
|
+
"4/6": "w-4/6",
|
|
31672
|
+
"5/6": "w-5/6",
|
|
31673
|
+
"1/12": "w-1/12",
|
|
31674
|
+
"2/12": "w-2/12",
|
|
31675
|
+
"3/12": "w-3/12",
|
|
31676
|
+
"4/12": "w-4/12",
|
|
31677
|
+
"5/12": "w-5/12",
|
|
31678
|
+
"6/12": "w-6/12",
|
|
31679
|
+
"7/12": "w-7/12",
|
|
31680
|
+
"8/12": "w-8/12",
|
|
31681
|
+
"9/12": "w-9/12",
|
|
31682
|
+
"10/12": "w-10/12",
|
|
31683
|
+
"11/12": "w-11/12",
|
|
31684
|
+
// Special values
|
|
31685
|
+
auto: "w-auto",
|
|
31686
|
+
full: "w-full",
|
|
31687
|
+
screen: "w-screen",
|
|
31688
|
+
svw: "w-svw",
|
|
31689
|
+
lvw: "w-lvw",
|
|
31690
|
+
dvw: "w-dvw",
|
|
31691
|
+
min: "w-min",
|
|
31692
|
+
max: "w-max",
|
|
31693
|
+
fit: "w-fit"
|
|
31694
|
+
};
|
|
31695
|
+
var heightMap = {
|
|
31696
|
+
// Spacing scale
|
|
31697
|
+
"0": "h-0",
|
|
31698
|
+
px: "h-px",
|
|
31699
|
+
"0.5": "h-0.5",
|
|
31700
|
+
"1": "h-1",
|
|
31701
|
+
"1.5": "h-1.5",
|
|
31702
|
+
"2": "h-2",
|
|
31703
|
+
"2.5": "h-2.5",
|
|
31704
|
+
"3": "h-3",
|
|
31705
|
+
"3.5": "h-3.5",
|
|
31706
|
+
"4": "h-4",
|
|
31707
|
+
"5": "h-5",
|
|
31708
|
+
"6": "h-6",
|
|
31709
|
+
"7": "h-7",
|
|
31710
|
+
"8": "h-8",
|
|
31711
|
+
"9": "h-9",
|
|
31712
|
+
"10": "h-10",
|
|
31713
|
+
"11": "h-11",
|
|
31714
|
+
"12": "h-12",
|
|
31715
|
+
"14": "h-14",
|
|
31716
|
+
"16": "h-16",
|
|
31717
|
+
"20": "h-20",
|
|
31718
|
+
"24": "h-24",
|
|
31719
|
+
"28": "h-28",
|
|
31720
|
+
"32": "h-32",
|
|
31721
|
+
"36": "h-36",
|
|
31722
|
+
"40": "h-40",
|
|
31723
|
+
"44": "h-44",
|
|
31724
|
+
"48": "h-48",
|
|
31725
|
+
"52": "h-52",
|
|
31726
|
+
"56": "h-56",
|
|
31727
|
+
"60": "h-60",
|
|
31728
|
+
"64": "h-64",
|
|
31729
|
+
"72": "h-72",
|
|
31730
|
+
"80": "h-80",
|
|
31731
|
+
"96": "h-96",
|
|
31732
|
+
// Fractions
|
|
31733
|
+
"1/2": "h-1/2",
|
|
31734
|
+
"1/3": "h-1/3",
|
|
31735
|
+
"2/3": "h-2/3",
|
|
31736
|
+
"1/4": "h-1/4",
|
|
31737
|
+
"2/4": "h-2/4",
|
|
31738
|
+
"3/4": "h-3/4",
|
|
31739
|
+
"1/5": "h-1/5",
|
|
31740
|
+
"2/5": "h-2/5",
|
|
31741
|
+
"3/5": "h-3/5",
|
|
31742
|
+
"4/5": "h-4/5",
|
|
31743
|
+
"1/6": "h-1/6",
|
|
31744
|
+
"2/6": "h-2/6",
|
|
31745
|
+
"3/6": "h-3/6",
|
|
31746
|
+
"4/6": "h-4/6",
|
|
31747
|
+
"5/6": "h-5/6",
|
|
31748
|
+
// Special values
|
|
31749
|
+
auto: "h-auto",
|
|
31750
|
+
full: "h-full",
|
|
31751
|
+
screen: "h-screen",
|
|
31752
|
+
svh: "h-svh",
|
|
31753
|
+
lvh: "h-lvh",
|
|
31754
|
+
dvh: "h-dvh",
|
|
31755
|
+
min: "h-min",
|
|
31756
|
+
max: "h-max",
|
|
31757
|
+
fit: "h-fit"
|
|
31758
|
+
};
|
|
31759
|
+
var minWidthMap = {
|
|
31760
|
+
"0": "min-w-0",
|
|
31761
|
+
px: "min-w-px",
|
|
31762
|
+
"0.5": "min-w-0.5",
|
|
31763
|
+
"1": "min-w-1",
|
|
31764
|
+
"1.5": "min-w-1.5",
|
|
31765
|
+
"2": "min-w-2",
|
|
31766
|
+
"2.5": "min-w-2.5",
|
|
31767
|
+
"3": "min-w-3",
|
|
31768
|
+
"3.5": "min-w-3.5",
|
|
31769
|
+
"4": "min-w-4",
|
|
31770
|
+
"5": "min-w-5",
|
|
31771
|
+
"6": "min-w-6",
|
|
31772
|
+
"7": "min-w-7",
|
|
31773
|
+
"8": "min-w-8",
|
|
31774
|
+
"9": "min-w-9",
|
|
31775
|
+
"10": "min-w-10",
|
|
31776
|
+
"11": "min-w-11",
|
|
31777
|
+
"12": "min-w-12",
|
|
31778
|
+
"14": "min-w-14",
|
|
31779
|
+
"16": "min-w-16",
|
|
31780
|
+
"20": "min-w-20",
|
|
31781
|
+
"24": "min-w-24",
|
|
31782
|
+
"28": "min-w-28",
|
|
31783
|
+
"32": "min-w-32",
|
|
31784
|
+
"36": "min-w-36",
|
|
31785
|
+
"40": "min-w-40",
|
|
31786
|
+
"44": "min-w-44",
|
|
31787
|
+
"48": "min-w-48",
|
|
31788
|
+
"52": "min-w-52",
|
|
31789
|
+
"56": "min-w-56",
|
|
31790
|
+
"60": "min-w-60",
|
|
31791
|
+
"64": "min-w-64",
|
|
31792
|
+
"72": "min-w-72",
|
|
31793
|
+
"80": "min-w-80",
|
|
31794
|
+
"96": "min-w-96",
|
|
31795
|
+
full: "min-w-full",
|
|
31796
|
+
min: "min-w-min",
|
|
31797
|
+
max: "min-w-max",
|
|
31798
|
+
fit: "min-w-fit"
|
|
31799
|
+
};
|
|
31800
|
+
var maxWidthMap = {
|
|
31801
|
+
"0": "max-w-0",
|
|
31802
|
+
px: "max-w-px",
|
|
31803
|
+
"0.5": "max-w-0.5",
|
|
31804
|
+
"1": "max-w-1",
|
|
31805
|
+
"1.5": "max-w-1.5",
|
|
31806
|
+
"2": "max-w-2",
|
|
31807
|
+
"2.5": "max-w-2.5",
|
|
31808
|
+
"3": "max-w-3",
|
|
31809
|
+
"3.5": "max-w-3.5",
|
|
31810
|
+
"4": "max-w-4",
|
|
31811
|
+
"5": "max-w-5",
|
|
31812
|
+
"6": "max-w-6",
|
|
31813
|
+
"7": "max-w-7",
|
|
31814
|
+
"8": "max-w-8",
|
|
31815
|
+
"9": "max-w-9",
|
|
31816
|
+
"10": "max-w-10",
|
|
31817
|
+
"11": "max-w-11",
|
|
31818
|
+
"12": "max-w-12",
|
|
31819
|
+
"14": "max-w-14",
|
|
31820
|
+
"16": "max-w-16",
|
|
31821
|
+
"20": "max-w-20",
|
|
31822
|
+
"24": "max-w-24",
|
|
31823
|
+
"28": "max-w-28",
|
|
31824
|
+
"32": "max-w-32",
|
|
31825
|
+
"36": "max-w-36",
|
|
31826
|
+
"40": "max-w-40",
|
|
31827
|
+
"44": "max-w-44",
|
|
31828
|
+
"48": "max-w-48",
|
|
31829
|
+
"52": "max-w-52",
|
|
31830
|
+
"56": "max-w-56",
|
|
31831
|
+
"60": "max-w-60",
|
|
31832
|
+
"64": "max-w-64",
|
|
31833
|
+
"72": "max-w-72",
|
|
31834
|
+
"80": "max-w-80",
|
|
31835
|
+
"96": "max-w-96",
|
|
31836
|
+
// Container sizes
|
|
31837
|
+
none: "max-w-none",
|
|
31838
|
+
xs: "max-w-xs",
|
|
31839
|
+
sm: "max-w-sm",
|
|
31840
|
+
md: "max-w-md",
|
|
31841
|
+
lg: "max-w-lg",
|
|
31842
|
+
xl: "max-w-xl",
|
|
31843
|
+
"2xl": "max-w-2xl",
|
|
31844
|
+
"3xl": "max-w-3xl",
|
|
31845
|
+
"4xl": "max-w-4xl",
|
|
31846
|
+
"5xl": "max-w-5xl",
|
|
31847
|
+
"6xl": "max-w-6xl",
|
|
31848
|
+
"7xl": "max-w-7xl",
|
|
31849
|
+
full: "max-w-full",
|
|
31850
|
+
min: "max-w-min",
|
|
31851
|
+
max: "max-w-max",
|
|
31852
|
+
fit: "max-w-fit",
|
|
31853
|
+
prose: "max-w-prose",
|
|
31854
|
+
"screen-sm": "max-w-screen-sm",
|
|
31855
|
+
"screen-md": "max-w-screen-md",
|
|
31856
|
+
"screen-lg": "max-w-screen-lg",
|
|
31857
|
+
"screen-xl": "max-w-screen-xl",
|
|
31858
|
+
"screen-2xl": "max-w-screen-2xl"
|
|
31859
|
+
};
|
|
31860
|
+
var minHeightMap = {
|
|
31861
|
+
"0": "min-h-0",
|
|
31862
|
+
px: "min-h-px",
|
|
31863
|
+
"0.5": "min-h-0.5",
|
|
31864
|
+
"1": "min-h-1",
|
|
31865
|
+
"1.5": "min-h-1.5",
|
|
31866
|
+
"2": "min-h-2",
|
|
31867
|
+
"2.5": "min-h-2.5",
|
|
31868
|
+
"3": "min-h-3",
|
|
31869
|
+
"3.5": "min-h-3.5",
|
|
31870
|
+
"4": "min-h-4",
|
|
31871
|
+
"5": "min-h-5",
|
|
31872
|
+
"6": "min-h-6",
|
|
31873
|
+
"7": "min-h-7",
|
|
31874
|
+
"8": "min-h-8",
|
|
31875
|
+
"9": "min-h-9",
|
|
31876
|
+
"10": "min-h-10",
|
|
31877
|
+
"11": "min-h-11",
|
|
31878
|
+
"12": "min-h-12",
|
|
31879
|
+
"14": "min-h-14",
|
|
31880
|
+
"16": "min-h-16",
|
|
31881
|
+
"20": "min-h-20",
|
|
31882
|
+
"24": "min-h-24",
|
|
31883
|
+
"28": "min-h-28",
|
|
31884
|
+
"32": "min-h-32",
|
|
31885
|
+
"36": "min-h-36",
|
|
31886
|
+
"40": "min-h-40",
|
|
31887
|
+
"44": "min-h-44",
|
|
31888
|
+
"48": "min-h-48",
|
|
31889
|
+
"52": "min-h-52",
|
|
31890
|
+
"56": "min-h-56",
|
|
31891
|
+
"60": "min-h-60",
|
|
31892
|
+
"64": "min-h-64",
|
|
31893
|
+
"72": "min-h-72",
|
|
31894
|
+
"80": "min-h-80",
|
|
31895
|
+
"96": "min-h-96",
|
|
31896
|
+
full: "min-h-full",
|
|
31897
|
+
screen: "min-h-screen",
|
|
31898
|
+
svh: "min-h-svh",
|
|
31899
|
+
lvh: "min-h-lvh",
|
|
31900
|
+
dvh: "min-h-dvh",
|
|
31901
|
+
min: "min-h-min",
|
|
31902
|
+
max: "min-h-max",
|
|
31903
|
+
fit: "min-h-fit"
|
|
31904
|
+
};
|
|
31905
|
+
var maxHeightMap = {
|
|
31906
|
+
"0": "max-h-0",
|
|
31907
|
+
px: "max-h-px",
|
|
31908
|
+
"0.5": "max-h-0.5",
|
|
31909
|
+
"1": "max-h-1",
|
|
31910
|
+
"1.5": "max-h-1.5",
|
|
31911
|
+
"2": "max-h-2",
|
|
31912
|
+
"2.5": "max-h-2.5",
|
|
31913
|
+
"3": "max-h-3",
|
|
31914
|
+
"3.5": "max-h-3.5",
|
|
31915
|
+
"4": "max-h-4",
|
|
31916
|
+
"5": "max-h-5",
|
|
31917
|
+
"6": "max-h-6",
|
|
31918
|
+
"7": "max-h-7",
|
|
31919
|
+
"8": "max-h-8",
|
|
31920
|
+
"9": "max-h-9",
|
|
31921
|
+
"10": "max-h-10",
|
|
31922
|
+
"11": "max-h-11",
|
|
31923
|
+
"12": "max-h-12",
|
|
31924
|
+
"14": "max-h-14",
|
|
31925
|
+
"16": "max-h-16",
|
|
31926
|
+
"20": "max-h-20",
|
|
31927
|
+
"24": "max-h-24",
|
|
31928
|
+
"28": "max-h-28",
|
|
31929
|
+
"32": "max-h-32",
|
|
31930
|
+
"36": "max-h-36",
|
|
31931
|
+
"40": "max-h-40",
|
|
31932
|
+
"44": "max-h-44",
|
|
31933
|
+
"48": "max-h-48",
|
|
31934
|
+
"52": "max-h-52",
|
|
31935
|
+
"56": "max-h-56",
|
|
31936
|
+
"60": "max-h-60",
|
|
31937
|
+
"64": "max-h-64",
|
|
31938
|
+
"72": "max-h-72",
|
|
31939
|
+
"80": "max-h-80",
|
|
31940
|
+
"96": "max-h-96",
|
|
31941
|
+
none: "max-h-none",
|
|
31942
|
+
full: "max-h-full",
|
|
31943
|
+
screen: "max-h-screen",
|
|
31944
|
+
svh: "max-h-svh",
|
|
31945
|
+
lvh: "max-h-lvh",
|
|
31946
|
+
dvh: "max-h-dvh",
|
|
31947
|
+
min: "max-h-min",
|
|
31948
|
+
max: "max-h-max",
|
|
31949
|
+
fit: "max-h-fit"
|
|
31950
|
+
};
|
|
31951
|
+
function mapWidth(value) {
|
|
31952
|
+
return mapResponsive(value, (v) => widthMap[v]);
|
|
31953
|
+
}
|
|
31954
|
+
function mapHeight(value) {
|
|
31955
|
+
return mapResponsive(value, (v) => heightMap[v]);
|
|
31956
|
+
}
|
|
31957
|
+
function mapMinWidth(value) {
|
|
31958
|
+
return mapResponsive(value, (v) => minWidthMap[v]);
|
|
31959
|
+
}
|
|
31960
|
+
function mapMaxWidth(value) {
|
|
31961
|
+
return mapResponsive(value, (v) => maxWidthMap[v]);
|
|
31962
|
+
}
|
|
31963
|
+
function mapMinHeight(value) {
|
|
31964
|
+
return mapResponsive(value, (v) => minHeightMap[v]);
|
|
31965
|
+
}
|
|
31966
|
+
function mapMaxHeight(value) {
|
|
31967
|
+
return mapResponsive(value, (v) => maxHeightMap[v]);
|
|
31968
|
+
}
|
|
31969
|
+
function isWidthPreset(value) {
|
|
31970
|
+
return value in widthMap;
|
|
31971
|
+
}
|
|
31972
|
+
function isHeightPreset(value) {
|
|
31973
|
+
return value in heightMap;
|
|
31974
|
+
}
|
|
31975
|
+
function isMinWidthPreset(value) {
|
|
31976
|
+
return value in minWidthMap;
|
|
31977
|
+
}
|
|
31978
|
+
function isMaxWidthPreset(value) {
|
|
31979
|
+
return value in maxWidthMap;
|
|
31980
|
+
}
|
|
31981
|
+
function isMinHeightPreset(value) {
|
|
31982
|
+
return value in minHeightMap;
|
|
31983
|
+
}
|
|
31984
|
+
function isMaxHeightPreset(value) {
|
|
31985
|
+
return value in maxHeightMap;
|
|
31986
|
+
}
|
|
31620
31987
|
|
|
31621
31988
|
// src/components/Icon.tsx
|
|
31622
31989
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -31850,6 +32217,11 @@ var Box = (0, import_react161.forwardRef)(function Box2({
|
|
|
31850
32217
|
...props
|
|
31851
32218
|
}, ref) {
|
|
31852
32219
|
const Component = as;
|
|
32220
|
+
const getSizingStyle = (value, isPreset) => {
|
|
32221
|
+
if (!value) return void 0;
|
|
32222
|
+
if (typeof value === "string" && !isPreset(value)) return value;
|
|
32223
|
+
return void 0;
|
|
32224
|
+
};
|
|
31853
32225
|
const classes = cn(
|
|
31854
32226
|
mapDisplay(display),
|
|
31855
32227
|
mapTextColor(toStringValue(color)),
|
|
@@ -31875,6 +32247,12 @@ var Box = (0, import_react161.forwardRef)(function Box2({
|
|
|
31875
32247
|
mapMargin(marginRight, "r"),
|
|
31876
32248
|
mapMargin(marginBottom, "b"),
|
|
31877
32249
|
mapMargin(marginLeft, "l"),
|
|
32250
|
+
mapWidth(width),
|
|
32251
|
+
mapMinWidth(minWidth),
|
|
32252
|
+
mapMaxWidth(maxWidth),
|
|
32253
|
+
mapHeight(height),
|
|
32254
|
+
mapMinHeight(minHeight),
|
|
32255
|
+
mapMaxHeight(maxHeight),
|
|
31878
32256
|
mapPosition(position),
|
|
31879
32257
|
mapTextAlign(textAlign),
|
|
31880
32258
|
mapOverflow(overflow),
|
|
@@ -31887,14 +32265,20 @@ var Box = (0, import_react161.forwardRef)(function Box2({
|
|
|
31887
32265
|
theme && `${theme}-theme`,
|
|
31888
32266
|
className
|
|
31889
32267
|
);
|
|
32268
|
+
const widthStyle = getSizingStyle(width, isWidthPreset);
|
|
32269
|
+
const minWidthStyle = getSizingStyle(minWidth, isMinWidthPreset);
|
|
32270
|
+
const maxWidthStyle = getSizingStyle(maxWidth, isMaxWidthPreset);
|
|
32271
|
+
const heightStyle = getSizingStyle(height, isHeightPreset);
|
|
32272
|
+
const minHeightStyle = getSizingStyle(minHeight, isMinHeightPreset);
|
|
32273
|
+
const maxHeightStyle = getSizingStyle(maxHeight, isMaxHeightPreset);
|
|
31890
32274
|
const inlineStyles = {
|
|
31891
32275
|
...style,
|
|
31892
|
-
...
|
|
31893
|
-
...
|
|
31894
|
-
...
|
|
31895
|
-
...
|
|
31896
|
-
...
|
|
31897
|
-
...
|
|
32276
|
+
...widthStyle && { width: widthStyle },
|
|
32277
|
+
...minWidthStyle && { minWidth: minWidthStyle },
|
|
32278
|
+
...maxWidthStyle && { maxWidth: maxWidthStyle },
|
|
32279
|
+
...heightStyle && { height: heightStyle },
|
|
32280
|
+
...minHeightStyle && { minHeight: minHeightStyle },
|
|
32281
|
+
...maxHeightStyle && { maxHeight: maxHeightStyle },
|
|
31898
32282
|
...top && { top },
|
|
31899
32283
|
...right && { right },
|
|
31900
32284
|
...bottom && { bottom },
|
|
@@ -32648,7 +33032,22 @@ var import_react169 = require("react");
|
|
|
32648
33032
|
// src/components/Grid.tsx
|
|
32649
33033
|
var import_react168 = require("react");
|
|
32650
33034
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
32651
|
-
var PRESET_VALUES = [
|
|
33035
|
+
var PRESET_VALUES = [
|
|
33036
|
+
"1",
|
|
33037
|
+
"2",
|
|
33038
|
+
"3",
|
|
33039
|
+
"4",
|
|
33040
|
+
"5",
|
|
33041
|
+
"6",
|
|
33042
|
+
"7",
|
|
33043
|
+
"8",
|
|
33044
|
+
"9",
|
|
33045
|
+
"10",
|
|
33046
|
+
"11",
|
|
33047
|
+
"12",
|
|
33048
|
+
"none",
|
|
33049
|
+
"subgrid"
|
|
33050
|
+
];
|
|
32652
33051
|
var BREAKPOINT_QUERIES = {
|
|
32653
33052
|
base: "",
|
|
32654
33053
|
sm: "@media (min-width: 640px)",
|