@vaneui/ui 0.3.1-alpha.20250914210126.5142197 → 0.3.1-alpha.20250916140129.7475230
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/gapClasses.d.ts +3 -0
- package/dist/components/ui/classes/gapClasses.d.ts.map +1 -0
- package/dist/components/ui/theme/containerTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/gridTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/gapTheme.d.ts +5 -5
- package/dist/components/ui/theme/size/gapTheme.d.ts.map +1 -1
- package/dist/index.esm.js +20 -24
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +20 -24
- package/dist/index.js.map +1 -1
- package/dist/ui.css +57 -74
- package/dist/vars.css +35 -25
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3679,19 +3679,27 @@ class SizeTheme extends BaseTheme {
|
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
3681
|
|
|
3682
|
+
const layoutGapClasses = {
|
|
3683
|
+
xs: "gap-(--layout-gap-xs)",
|
|
3684
|
+
sm: "gap-(--layout-gap-sm)",
|
|
3685
|
+
md: "gap-(--layout-gap-md)",
|
|
3686
|
+
lg: "gap-(--layout-gap-lg)",
|
|
3687
|
+
xl: "gap-(--layout-gap-xl)",
|
|
3688
|
+
};
|
|
3689
|
+
|
|
3682
3690
|
class GapTheme extends BaseTheme {
|
|
3683
3691
|
constructor(sizeMap) {
|
|
3684
3692
|
super();
|
|
3685
|
-
/** Extra-small gap -
|
|
3686
|
-
this.xs =
|
|
3687
|
-
/** Small gap -
|
|
3688
|
-
this.sm =
|
|
3689
|
-
/** Medium gap -
|
|
3690
|
-
this.md =
|
|
3691
|
-
/** Large gap -
|
|
3692
|
-
this.lg =
|
|
3693
|
-
/** Extra-large gap -
|
|
3694
|
-
this.xl =
|
|
3693
|
+
/** Extra-small gap - uses CSS variable --layout-gap-xs */
|
|
3694
|
+
this.xs = layoutGapClasses.xs;
|
|
3695
|
+
/** Small gap - uses CSS variable --layout-gap-sm */
|
|
3696
|
+
this.sm = layoutGapClasses.sm;
|
|
3697
|
+
/** Medium gap - uses CSS variable --layout-gap-md */
|
|
3698
|
+
this.md = layoutGapClasses.md;
|
|
3699
|
+
/** Large gap - uses CSS variable --layout-gap-lg */
|
|
3700
|
+
this.lg = layoutGapClasses.lg;
|
|
3701
|
+
/** Extra-large gap - uses CSS variable --layout-gap-xl */
|
|
3702
|
+
this.xl = layoutGapClasses.xl;
|
|
3695
3703
|
if (sizeMap) {
|
|
3696
3704
|
ComponentKeys.size.forEach((key) => {
|
|
3697
3705
|
if (sizeMap[key] !== undefined) {
|
|
@@ -5132,13 +5140,7 @@ const defaultDividerTheme = new ComponentTheme("div", "h-px w-full", {
|
|
|
5132
5140
|
|
|
5133
5141
|
const defaultContainerTheme = new ComponentTheme("div", "flex-col mx-auto w-full", {
|
|
5134
5142
|
size: {
|
|
5135
|
-
gap: new GapTheme(
|
|
5136
|
-
xs: 'gap-2 max-lg:gap-1',
|
|
5137
|
-
sm: 'gap-4 max-lg:gap-3 max-md:gap-2',
|
|
5138
|
-
md: 'gap-6 max-lg:gap-5 max-md:gap-4',
|
|
5139
|
-
lg: 'gap-8 max-lg:gap-7 max-md:gap-6',
|
|
5140
|
-
xl: 'gap-10 max-lg:gap-9 max-md:gap-8',
|
|
5141
|
-
}),
|
|
5143
|
+
gap: new GapTheme(),
|
|
5142
5144
|
maxWidth: new SizeTheme({ xs: 'max-w-3xl', sm: 'max-w-4xl', md: 'max-w-5xl', lg: 'max-w-6xl', xl: 'max-w-7xl' }),
|
|
5143
5145
|
},
|
|
5144
5146
|
layout: {
|
|
@@ -5241,13 +5243,7 @@ const defaultSectionTheme = new ComponentTheme("div", "w-full flex-col", {
|
|
|
5241
5243
|
|
|
5242
5244
|
const gridSubThemes = {
|
|
5243
5245
|
size: {
|
|
5244
|
-
gap: new GapTheme(
|
|
5245
|
-
xs: "gap-2",
|
|
5246
|
-
sm: "gap-4 max-lg:gap-2",
|
|
5247
|
-
md: "gap-6 max-lg:gap-4",
|
|
5248
|
-
lg: "gap-8 max-lg:gap-6 max-md:gap-4",
|
|
5249
|
-
xl: "gap-10 max-lg:gap-8 max-md:gap-6"
|
|
5250
|
-
}),
|
|
5246
|
+
gap: new GapTheme(),
|
|
5251
5247
|
},
|
|
5252
5248
|
appearance: {
|
|
5253
5249
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|