@vaneui/ui 0.3.1-alpha.20250917170051.b819c80 → 0.3.1-alpha.20250925201320.8b6a424
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/classes/layoutClasses.d.ts +10 -4
- package/dist/components/ui/classes/layoutClasses.d.ts.map +1 -1
- package/dist/components/ui/theme/badgeTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/buttonTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/cardTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/chipTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/codeTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/colTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/containerTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/defaults.d.ts.map +1 -1
- package/dist/components/ui/theme/gridTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/inputTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/rowTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/sectionTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/gapTheme.d.ts +2 -1
- package/dist/components/ui/theme/size/gapTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/pxTheme.d.ts +5 -1
- package/dist/components/ui/theme/size/pxTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/pyTheme.d.ts +4 -1
- package/dist/components/ui/theme/size/pyTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/stackTheme.d.ts.map +1 -1
- package/dist/index.esm.js +193 -61
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +193 -61
- package/dist/index.js.map +1 -1
- package/dist/ui.css +131 -126
- package/dist/vars.css +27 -42
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3680,43 +3680,91 @@ class SizeTheme extends BaseTheme {
|
|
|
3680
3680
|
}
|
|
3681
3681
|
|
|
3682
3682
|
const layoutGapClasses = {
|
|
3683
|
-
xs: "
|
|
3684
|
-
sm: "
|
|
3685
|
-
md: "
|
|
3686
|
-
lg: "
|
|
3687
|
-
xl: "
|
|
3683
|
+
xs: "[--gap-unit:2]",
|
|
3684
|
+
sm: "[--gap-unit:3]",
|
|
3685
|
+
md: "[--gap-unit:4]",
|
|
3686
|
+
lg: "[--gap-unit:5]",
|
|
3687
|
+
xl: "[--gap-unit:6]",
|
|
3688
3688
|
};
|
|
3689
|
-
const
|
|
3690
|
-
xs: "
|
|
3691
|
-
sm: "
|
|
3692
|
-
md: "
|
|
3693
|
-
lg: "
|
|
3694
|
-
xl: "
|
|
3689
|
+
const layoutPaddingClasses = {
|
|
3690
|
+
xs: "[--py-unit:2]",
|
|
3691
|
+
sm: "[--py-unit:3]",
|
|
3692
|
+
md: "[--py-unit:4]",
|
|
3693
|
+
lg: "[--py-unit:5]",
|
|
3694
|
+
xl: "[--py-unit:6]",
|
|
3695
3695
|
};
|
|
3696
|
-
const
|
|
3697
|
-
xs: "
|
|
3698
|
-
sm: "
|
|
3699
|
-
md: "
|
|
3700
|
-
lg: "
|
|
3701
|
-
xl: "
|
|
3696
|
+
const sectionAspectRatioClasses = {
|
|
3697
|
+
xs: "[--aspect-ratio:2.5]",
|
|
3698
|
+
sm: "[--aspect-ratio:2]",
|
|
3699
|
+
md: "[--aspect-ratio:1.75]",
|
|
3700
|
+
lg: "[--aspect-ratio:1.6]",
|
|
3701
|
+
xl: "[--aspect-ratio:1.5]",
|
|
3702
3702
|
};
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3703
|
+
// UI component classes
|
|
3704
|
+
const uiPaddingClasses = {
|
|
3705
|
+
xs: "[--py-unit:1]",
|
|
3706
|
+
sm: "[--py-unit:1.5]",
|
|
3707
|
+
md: "[--py-unit:2]",
|
|
3708
|
+
lg: "[--py-unit:2.5]",
|
|
3709
|
+
xl: "[--py-unit:3]",
|
|
3709
3710
|
};
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3711
|
+
// Button-specific aspect ratios (px-2,3,4,5,6 vs py-1,1.5,2,2.5,3)
|
|
3712
|
+
const buttonAspectRatioClasses = {
|
|
3713
|
+
xs: "[--aspect-ratio:2]", // px-2 vs py-1 = 2
|
|
3714
|
+
sm: "[--aspect-ratio:2]", // px-3 vs py-1.5 = 2
|
|
3715
|
+
md: "[--aspect-ratio:2]", // px-4 vs py-2 = 2
|
|
3716
|
+
lg: "[--aspect-ratio:2]", // px-5 vs py-2.5 = 2
|
|
3717
|
+
xl: "[--aspect-ratio:2]", // px-6 vs py-3 = 2
|
|
3718
|
+
};
|
|
3719
|
+
// Badge aspect ratios (same as button)
|
|
3720
|
+
const badgeAspectRatioClasses = {
|
|
3721
|
+
xs: "[--aspect-ratio:2]",
|
|
3722
|
+
sm: "[--aspect-ratio:2]",
|
|
3723
|
+
md: "[--aspect-ratio:2]",
|
|
3724
|
+
lg: "[--aspect-ratio:2]",
|
|
3725
|
+
xl: "[--aspect-ratio:2]",
|
|
3726
|
+
};
|
|
3727
|
+
// Input aspect ratios (same as button)
|
|
3728
|
+
const inputAspectRatioClasses = {
|
|
3729
|
+
xs: "[--aspect-ratio:2]",
|
|
3730
|
+
sm: "[--aspect-ratio:2]",
|
|
3731
|
+
md: "[--aspect-ratio:2]",
|
|
3732
|
+
lg: "[--aspect-ratio:2]",
|
|
3733
|
+
xl: "[--aspect-ratio:2]",
|
|
3734
|
+
};
|
|
3735
|
+
// Code-specific classes (px-1,1.5,1.5,2,2 vs py-0,0.5,1,1,1)
|
|
3736
|
+
const codeAspectRatioClasses = {
|
|
3737
|
+
xs: "[--aspect-ratio:1]", // px-1 vs py-0 (but py-0 is 0, so use py-unit but ratio for px)
|
|
3738
|
+
sm: "[--aspect-ratio:3]", // px-1.5 vs py-0.5 = 3
|
|
3739
|
+
md: "[--aspect-ratio:1.5]", // px-1.5 vs py-1 = 1.5
|
|
3740
|
+
lg: "[--aspect-ratio:2]", // px-2 vs py-1 = 2
|
|
3741
|
+
xl: "[--aspect-ratio:2]", // px-2 vs py-1 = 2
|
|
3742
|
+
};
|
|
3743
|
+
const codePyClasses = {
|
|
3744
|
+
xs: "[--py-unit:0]",
|
|
3745
|
+
sm: "[--py-unit:0.5]",
|
|
3746
|
+
md: "[--py-unit:1]",
|
|
3747
|
+
lg: "[--py-unit:1]",
|
|
3748
|
+
xl: "[--py-unit:1]",
|
|
3749
|
+
};
|
|
3750
|
+
// Chip-specific classes (px-2,2.5,3,3.5,4 vs py-0.5,1,1.5,2,2.5)
|
|
3751
|
+
const chipAspectRatioClasses = {
|
|
3752
|
+
xs: "[--aspect-ratio:4]", // px-2 vs py-0.5 = 4
|
|
3753
|
+
sm: "[--aspect-ratio:2.5]", // px-2.5 vs py-1 = 2.5
|
|
3754
|
+
md: "[--aspect-ratio:2]", // px-3 vs py-1.5 = 2
|
|
3755
|
+
lg: "[--aspect-ratio:1.75]", // px-3.5 vs py-2 = 1.75
|
|
3756
|
+
xl: "[--aspect-ratio:1.6]", // px-4 vs py-2.5 = 1.6
|
|
3757
|
+
};
|
|
3758
|
+
const chipPyClasses = {
|
|
3759
|
+
xs: "[--py-unit:0.5]",
|
|
3760
|
+
sm: "[--py-unit:1]",
|
|
3761
|
+
md: "[--py-unit:1.5]",
|
|
3762
|
+
lg: "[--py-unit:2]",
|
|
3763
|
+
xl: "[--py-unit:2.5]",
|
|
3716
3764
|
};
|
|
3717
3765
|
|
|
3718
3766
|
class GapTheme extends BaseTheme {
|
|
3719
|
-
constructor(sizeMap) {
|
|
3767
|
+
constructor(sizeMap, isUIComponent = false) {
|
|
3720
3768
|
super();
|
|
3721
3769
|
/** Extra-small gap - uses CSS variable --layout-gap-xs */
|
|
3722
3770
|
this.xs = layoutGapClasses.xs;
|
|
@@ -3728,6 +3776,7 @@ class GapTheme extends BaseTheme {
|
|
|
3728
3776
|
this.lg = layoutGapClasses.lg;
|
|
3729
3777
|
/** Extra-large gap - uses CSS variable --layout-gap-xl */
|
|
3730
3778
|
this.xl = layoutGapClasses.xl;
|
|
3779
|
+
this.isUIComponent = isUIComponent;
|
|
3731
3780
|
if (sizeMap) {
|
|
3732
3781
|
ComponentKeys.size.forEach((key) => {
|
|
3733
3782
|
if (sizeMap[key] !== undefined) {
|
|
@@ -3740,7 +3789,8 @@ class GapTheme extends BaseTheme {
|
|
|
3740
3789
|
var _a;
|
|
3741
3790
|
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.gap) === 'gap') {
|
|
3742
3791
|
const gapClass = this[(_a = extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.size) !== null && _a !== void 0 ? _a : 'md'];
|
|
3743
|
-
|
|
3792
|
+
const gapVar = this.isUIComponent ? "gap-(--ui-gap)" : "gap-(--gap)";
|
|
3793
|
+
return gapClass ? [gapClass, gapVar] : [];
|
|
3744
3794
|
}
|
|
3745
3795
|
return [];
|
|
3746
3796
|
}
|
|
@@ -3904,28 +3954,61 @@ class PaddingTheme extends BaseTheme {
|
|
|
3904
3954
|
|
|
3905
3955
|
/** Horizontal padding theme - controls left and right padding */
|
|
3906
3956
|
class PxTheme extends PaddingTheme {
|
|
3907
|
-
constructor(sizeMap) {
|
|
3957
|
+
constructor(sizeMap, aspectRatioMap, isUIComponent = false) {
|
|
3908
3958
|
super(sizeMap);
|
|
3959
|
+
this.aspectRatioMap = aspectRatioMap;
|
|
3960
|
+
this.isUIComponent = isUIComponent;
|
|
3909
3961
|
// Override with PxTheme's default classes if no custom sizeMap provided
|
|
3910
3962
|
if (!sizeMap) {
|
|
3911
3963
|
ComponentKeys.size.forEach((key) => {
|
|
3912
|
-
this[key] =
|
|
3964
|
+
this[key] = layoutPaddingClasses[key];
|
|
3913
3965
|
});
|
|
3914
3966
|
}
|
|
3915
3967
|
}
|
|
3968
|
+
getClasses(extractedKeys) {
|
|
3969
|
+
var _a, _b;
|
|
3970
|
+
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === 'padding' || (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === undefined) {
|
|
3971
|
+
const size = (_a = extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.size) !== null && _a !== void 0 ? _a : 'md';
|
|
3972
|
+
const paddingClass = this[size];
|
|
3973
|
+
const aspectRatioClass = (_b = this.aspectRatioMap) === null || _b === void 0 ? void 0 : _b[size];
|
|
3974
|
+
const classes = [];
|
|
3975
|
+
if (paddingClass)
|
|
3976
|
+
classes.push(paddingClass);
|
|
3977
|
+
if (aspectRatioClass)
|
|
3978
|
+
classes.push(aspectRatioClass);
|
|
3979
|
+
// Use UI or layout CSS variables based on component type
|
|
3980
|
+
const cssVar = this.isUIComponent ? "px-(--ui-px)" : "px-(--px)";
|
|
3981
|
+
classes.push(cssVar);
|
|
3982
|
+
return classes.length > 1 ? classes : [];
|
|
3983
|
+
}
|
|
3984
|
+
return [];
|
|
3985
|
+
}
|
|
3916
3986
|
}
|
|
3917
3987
|
|
|
3918
3988
|
/** Vertical padding theme - controls top and bottom padding */
|
|
3919
3989
|
class PyTheme extends PaddingTheme {
|
|
3920
|
-
constructor(sizeMap) {
|
|
3990
|
+
constructor(sizeMap, isUIComponent = false) {
|
|
3921
3991
|
super(sizeMap);
|
|
3992
|
+
this.isUIComponent = isUIComponent;
|
|
3922
3993
|
// Override with PyTheme's default classes if no custom sizeMap provided
|
|
3923
3994
|
if (!sizeMap) {
|
|
3924
3995
|
ComponentKeys.size.forEach((key) => {
|
|
3925
|
-
this[key] =
|
|
3996
|
+
this[key] = layoutPaddingClasses[key];
|
|
3926
3997
|
});
|
|
3927
3998
|
}
|
|
3928
3999
|
}
|
|
4000
|
+
getClasses(extractedKeys) {
|
|
4001
|
+
var _a;
|
|
4002
|
+
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === 'padding' || (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === undefined) {
|
|
4003
|
+
const paddingClass = this[(_a = extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.size) !== null && _a !== void 0 ? _a : 'md'];
|
|
4004
|
+
if (!paddingClass)
|
|
4005
|
+
return [];
|
|
4006
|
+
// Use UI or layout CSS variables based on component type
|
|
4007
|
+
const cssVar = this.isUIComponent ? "py-(--ui-py)" : "py-(--py)";
|
|
4008
|
+
return [paddingClass, cssVar];
|
|
4009
|
+
}
|
|
4010
|
+
return [];
|
|
4011
|
+
}
|
|
3929
4012
|
}
|
|
3930
4013
|
|
|
3931
4014
|
class AppearanceTheme extends BaseTheme {
|
|
@@ -4598,6 +4681,7 @@ const themeDefaults = {
|
|
|
4598
4681
|
section: {
|
|
4599
4682
|
md: true,
|
|
4600
4683
|
flex: true,
|
|
4684
|
+
column: true,
|
|
4601
4685
|
default: true,
|
|
4602
4686
|
itemsStart: true,
|
|
4603
4687
|
gap: true,
|
|
@@ -4765,9 +4849,9 @@ const themeDefaults = {
|
|
|
4765
4849
|
|
|
4766
4850
|
const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-pointer transition-all duration-200 whitespace-nowrap", {
|
|
4767
4851
|
size: {
|
|
4768
|
-
px: new PxTheme(
|
|
4769
|
-
py: new PyTheme(
|
|
4770
|
-
gap: new GapTheme({ xs: 'gap-1', sm: 'gap-1.5', md: 'gap-2', lg: 'gap-2.5', xl: 'gap-3' }),
|
|
4852
|
+
px: new PxTheme(uiPaddingClasses, buttonAspectRatioClasses, true),
|
|
4853
|
+
py: new PyTheme(uiPaddingClasses, true),
|
|
4854
|
+
gap: new GapTheme({ xs: '[--gap-unit:1]', sm: '[--gap-unit:1.5]', md: '[--gap-unit:2]', lg: '[--gap-unit:2.5]', xl: '[--gap-unit:3]' }, true),
|
|
4771
4855
|
text: new SizeTheme({ xs: 'text-xs', sm: 'text-sm', md: 'text-base', lg: 'text-lg', xl: 'text-xl' }),
|
|
4772
4856
|
},
|
|
4773
4857
|
appearance: {
|
|
@@ -4795,9 +4879,9 @@ const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-poin
|
|
|
4795
4879
|
|
|
4796
4880
|
const defaultBadgeTheme = new ComponentTheme("span", "w-fit h-fit transition-all duration-200 whitespace-nowrap", {
|
|
4797
4881
|
size: {
|
|
4798
|
-
px: new PxTheme(
|
|
4799
|
-
py: new PyTheme(
|
|
4800
|
-
gap: new GapTheme({ xs: 'gap-1', sm: 'gap-1.5', md: 'gap-2', lg: 'gap-2.5', xl: 'gap-3' }),
|
|
4882
|
+
px: new PxTheme(uiPaddingClasses, badgeAspectRatioClasses, true),
|
|
4883
|
+
py: new PyTheme(uiPaddingClasses, true),
|
|
4884
|
+
gap: new GapTheme({ xs: '[--gap-unit:1]', sm: '[--gap-unit:1.5]', md: '[--gap-unit:2]', lg: '[--gap-unit:2.5]', xl: '[--gap-unit:3]' }, true),
|
|
4801
4885
|
text: new SizeTheme({ xs: 'text-xs', sm: 'text-sm', md: 'text-base', lg: 'text-lg', xl: 'text-xl' })
|
|
4802
4886
|
},
|
|
4803
4887
|
appearance: {
|
|
@@ -4824,10 +4908,10 @@ const defaultBadgeTheme = new ComponentTheme("span", "w-fit h-fit transition-all
|
|
|
4824
4908
|
|
|
4825
4909
|
const defaultChipTheme = new ComponentTheme("span", "w-fit h-fit transition-all duration-200 whitespace-nowrap", {
|
|
4826
4910
|
size: {
|
|
4827
|
-
px: new PxTheme(
|
|
4828
|
-
py: new PyTheme(
|
|
4911
|
+
px: new PxTheme(chipPyClasses, chipAspectRatioClasses, true),
|
|
4912
|
+
py: new PyTheme(chipPyClasses, true),
|
|
4829
4913
|
text: new SizeTheme({ xs: 'text-xs', sm: 'text-sm', md: 'text-base', lg: 'text-lg', xl: 'text-xl' }),
|
|
4830
|
-
gap: new GapTheme({ xs: 'gap-1', sm: 'gap-1.5', md: 'gap-2', lg: 'gap-2.5', xl: 'gap-3' })
|
|
4914
|
+
gap: new GapTheme({ xs: '[--gap-unit:1]', sm: '[--gap-unit:1.5]', md: '[--gap-unit:2]', lg: '[--gap-unit:2.5]', xl: '[--gap-unit:3]' }, true)
|
|
4831
4915
|
},
|
|
4832
4916
|
appearance: {
|
|
4833
4917
|
background: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
@@ -4853,10 +4937,10 @@ const defaultChipTheme = new ComponentTheme("span", "w-fit h-fit transition-all
|
|
|
4853
4937
|
|
|
4854
4938
|
const defaultCodeTheme = new ComponentTheme("code", "", {
|
|
4855
4939
|
size: {
|
|
4856
|
-
px: new PxTheme(
|
|
4857
|
-
py: new PyTheme(
|
|
4940
|
+
px: new PxTheme(codePyClasses, codeAspectRatioClasses, true),
|
|
4941
|
+
py: new PyTheme(codePyClasses, true),
|
|
4858
4942
|
text: new SizeTheme({ xs: 'text-xs', sm: 'text-sm', md: 'text-sm', lg: 'text-base', xl: 'text-lg' }),
|
|
4859
|
-
gap: new GapTheme({ xs: 'gap-0.5', sm: 'gap-1', md: 'gap-1.5', lg: 'gap-2', xl: 'gap-2.5' })
|
|
4943
|
+
gap: new GapTheme({ xs: '[--gap-unit:0.5]', sm: '[--gap-unit:1]', md: '[--gap-unit:1.5]', lg: '[--gap-unit:2]', xl: '[--gap-unit:2.5]' }, true)
|
|
4860
4944
|
},
|
|
4861
4945
|
appearance: {
|
|
4862
4946
|
background: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
@@ -5087,7 +5171,13 @@ const defaultCardTheme = new ComponentTheme("div", "", {
|
|
|
5087
5171
|
size: {
|
|
5088
5172
|
px: new PxTheme(),
|
|
5089
5173
|
py: new PyTheme(),
|
|
5090
|
-
gap: new GapTheme(
|
|
5174
|
+
gap: new GapTheme({
|
|
5175
|
+
xs: "[--gap-unit:1]",
|
|
5176
|
+
sm: "[--gap-unit:1.5]",
|
|
5177
|
+
md: "[--gap-unit:2]",
|
|
5178
|
+
lg: "[--gap-unit:2.5]",
|
|
5179
|
+
xl: "[--gap-unit:3]",
|
|
5180
|
+
}),
|
|
5091
5181
|
},
|
|
5092
5182
|
layout: {
|
|
5093
5183
|
...defaultLayoutsThemes,
|
|
@@ -5110,7 +5200,13 @@ const defaultCardTheme = new ComponentTheme("div", "", {
|
|
|
5110
5200
|
|
|
5111
5201
|
const defaultRowTheme = new ComponentTheme("div", "", {
|
|
5112
5202
|
size: {
|
|
5113
|
-
gap: new GapTheme(
|
|
5203
|
+
gap: new GapTheme({
|
|
5204
|
+
xs: "[--gap-unit:2]",
|
|
5205
|
+
sm: "[--gap-unit:3]",
|
|
5206
|
+
md: "[--gap-unit:4]",
|
|
5207
|
+
lg: "[--gap-unit:5]",
|
|
5208
|
+
xl: "[--gap-unit:6]",
|
|
5209
|
+
}),
|
|
5114
5210
|
breakpoint: new BreakpointTheme(),
|
|
5115
5211
|
},
|
|
5116
5212
|
layout: {
|
|
@@ -5132,7 +5228,7 @@ const defaultRowTheme = new ComponentTheme("div", "", {
|
|
|
5132
5228
|
|
|
5133
5229
|
const defaultDividerTheme = new ComponentTheme("div", "h-px w-full", {
|
|
5134
5230
|
size: {
|
|
5135
|
-
py: new PyTheme(),
|
|
5231
|
+
py: new PyTheme(), // Uses layout spacing by default
|
|
5136
5232
|
},
|
|
5137
5233
|
appearance: {
|
|
5138
5234
|
background: AppearanceTheme.createTheme({
|
|
@@ -5144,7 +5240,13 @@ const defaultDividerTheme = new ComponentTheme("div", "h-px w-full", {
|
|
|
5144
5240
|
|
|
5145
5241
|
const defaultContainerTheme = new ComponentTheme("div", "flex-col mx-auto w-full", {
|
|
5146
5242
|
size: {
|
|
5147
|
-
gap: new GapTheme(
|
|
5243
|
+
gap: new GapTheme({
|
|
5244
|
+
xs: "[--gap-unit:2]",
|
|
5245
|
+
sm: "[--gap-unit:3]",
|
|
5246
|
+
md: "[--gap-unit:4]",
|
|
5247
|
+
lg: "[--gap-unit:5]",
|
|
5248
|
+
xl: "[--gap-unit:6]",
|
|
5249
|
+
}),
|
|
5148
5250
|
maxWidth: new SizeTheme({ xs: 'max-w-3xl', sm: 'max-w-4xl', md: 'max-w-5xl', lg: 'max-w-6xl', xl: 'max-w-7xl' }),
|
|
5149
5251
|
},
|
|
5150
5252
|
layout: {
|
|
@@ -5166,7 +5268,13 @@ const defaultContainerTheme = new ComponentTheme("div", "flex-col mx-auto w-full
|
|
|
5166
5268
|
|
|
5167
5269
|
const defaultColTheme = new ComponentTheme("div", "", {
|
|
5168
5270
|
size: {
|
|
5169
|
-
gap: new GapTheme(
|
|
5271
|
+
gap: new GapTheme({
|
|
5272
|
+
xs: "[--gap-unit:2]",
|
|
5273
|
+
sm: "[--gap-unit:3]",
|
|
5274
|
+
md: "[--gap-unit:4]",
|
|
5275
|
+
lg: "[--gap-unit:5]",
|
|
5276
|
+
xl: "[--gap-unit:6]",
|
|
5277
|
+
}),
|
|
5170
5278
|
},
|
|
5171
5279
|
layout: {
|
|
5172
5280
|
...defaultLayoutsThemes,
|
|
@@ -5189,7 +5297,13 @@ const defaultStackTheme = new ComponentTheme("div", "", {
|
|
|
5189
5297
|
size: {
|
|
5190
5298
|
px: new PxTheme(),
|
|
5191
5299
|
py: new PyTheme(),
|
|
5192
|
-
gap: new GapTheme(
|
|
5300
|
+
gap: new GapTheme({
|
|
5301
|
+
xs: "[--gap-unit:2]",
|
|
5302
|
+
sm: "[--gap-unit:3]",
|
|
5303
|
+
md: "[--gap-unit:4]",
|
|
5304
|
+
lg: "[--gap-unit:5]",
|
|
5305
|
+
xl: "[--gap-unit:6]",
|
|
5306
|
+
}),
|
|
5193
5307
|
breakpoint: new BreakpointTheme(),
|
|
5194
5308
|
},
|
|
5195
5309
|
layout: {
|
|
@@ -5209,11 +5323,23 @@ const defaultStackTheme = new ComponentTheme("div", "", {
|
|
|
5209
5323
|
}
|
|
5210
5324
|
}, themeDefaults.stack, STACK_CATEGORIES);
|
|
5211
5325
|
|
|
5212
|
-
const defaultSectionTheme = new ComponentTheme("div", "w-full
|
|
5326
|
+
const defaultSectionTheme = new ComponentTheme("div", "w-full", {
|
|
5213
5327
|
size: {
|
|
5214
|
-
px: new PxTheme(
|
|
5215
|
-
py: new PyTheme(
|
|
5216
|
-
|
|
5328
|
+
px: new PxTheme(layoutPaddingClasses, sectionAspectRatioClasses),
|
|
5329
|
+
py: new PyTheme({
|
|
5330
|
+
xs: "[--py-unit:4]",
|
|
5331
|
+
sm: "[--py-unit:8]",
|
|
5332
|
+
md: "[--py-unit:12]",
|
|
5333
|
+
lg: "[--py-unit:16]",
|
|
5334
|
+
xl: "[--py-unit:20]",
|
|
5335
|
+
}),
|
|
5336
|
+
gap: new GapTheme({
|
|
5337
|
+
xs: "[--gap-unit:2]",
|
|
5338
|
+
sm: "[--gap-unit:3]",
|
|
5339
|
+
md: "[--gap-unit:4]",
|
|
5340
|
+
lg: "[--gap-unit:5]",
|
|
5341
|
+
xl: "[--gap-unit:6]",
|
|
5342
|
+
}),
|
|
5217
5343
|
breakpoint: new BreakpointTheme(),
|
|
5218
5344
|
},
|
|
5219
5345
|
appearance: {
|
|
@@ -5235,7 +5361,13 @@ const defaultSectionTheme = new ComponentTheme("div", "w-full flex-col", {
|
|
|
5235
5361
|
|
|
5236
5362
|
const gridSubThemes = {
|
|
5237
5363
|
size: {
|
|
5238
|
-
gap: new GapTheme(
|
|
5364
|
+
gap: new GapTheme({
|
|
5365
|
+
xs: "[--gap-unit:2]",
|
|
5366
|
+
sm: "[--gap-unit:3]",
|
|
5367
|
+
md: "[--gap-unit:4]",
|
|
5368
|
+
lg: "[--gap-unit:5]",
|
|
5369
|
+
xl: "[--gap-unit:6]",
|
|
5370
|
+
}),
|
|
5239
5371
|
},
|
|
5240
5372
|
appearance: {
|
|
5241
5373
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|
|
@@ -5355,9 +5487,9 @@ const defaultImgTheme = new ComponentTheme("img", "object-cover", // Default to
|
|
|
5355
5487
|
|
|
5356
5488
|
const defaultInputTheme = new ComponentTheme("input", "w-full transition-all duration-200", {
|
|
5357
5489
|
size: {
|
|
5358
|
-
px: new PxTheme(
|
|
5359
|
-
py: new PyTheme(
|
|
5360
|
-
gap: new GapTheme({ xs: 'gap-1', sm: 'gap-1.5', md: 'gap-2', lg: 'gap-2.5', xl: 'gap-3' }),
|
|
5490
|
+
px: new PxTheme(uiPaddingClasses, inputAspectRatioClasses, true),
|
|
5491
|
+
py: new PyTheme(uiPaddingClasses, true),
|
|
5492
|
+
gap: new GapTheme({ xs: '[--gap-unit:1]', sm: '[--gap-unit:1.5]', md: '[--gap-unit:2]', lg: '[--gap-unit:2.5]', xl: '[--gap-unit:3]' }, true),
|
|
5361
5493
|
text: new SizeTheme({ xs: 'text-xs', sm: 'text-sm', md: 'text-base', lg: 'text-lg', xl: 'text-xl' }),
|
|
5362
5494
|
},
|
|
5363
5495
|
appearance: {
|