@vaneui/ui 0.3.1-alpha.20251110144303.5af7508 → 0.3.1-alpha.20251110155311.4ef4158
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/theme/defaults.d.ts.map +1 -1
- package/dist/components/ui/theme/layout/radiusTheme.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 +3 -1
- package/dist/components/ui/theme/size/gapTheme.d.ts.map +1 -1
- package/dist/index.esm.js +54 -47
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +54 -47
- package/dist/index.js.map +1 -1
- package/dist/ui.css +54 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/theme/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/theme/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,aAgQ3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radiusTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/theme/layout/radiusTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,WAAY,SAAQ,SAAS;IACxC,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAkB;IAC9B,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAkB;IAC/B,4DAA4D;IAC5D,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAEjC,OAAO,CAAC,aAAa,CAAU;IAE/B,OAAO;IAMP,MAAM,CAAC,mBAAmB,IAAI,WAAW;IAUzC,MAAM,CAAC,aAAa,IAAI,WAAW;IAUnC,MAAM,CAAC,iBAAiB,IAAI,WAAW;IAWvC,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"radiusTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/theme/layout/radiusTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,WAAY,SAAQ,SAAS;IACxC,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAkB;IAC9B,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAkB;IAC/B,4DAA4D;IAC5D,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAEjC,OAAO,CAAC,aAAa,CAAU;IAE/B,OAAO;IAMP,MAAM,CAAC,mBAAmB,IAAI,WAAW;IAUzC,MAAM,CAAC,aAAa,IAAI,WAAW;IAUnC,MAAM,CAAC,iBAAiB,IAAI,WAAW;IAWvC,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE;CAsBnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sectionTheme.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/theme/sectionTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAwB,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACxH,OAAO,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BAAmB,CAAC,eAAe,CAAC,CAAC;QAC3C,MAAM,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;QAC7C,IAAI,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;QAC3C,MAAM,EAAE,qBAAqB,CAAC;KAC/B,CAAC;IACF,MAAM,EAAE,mBAAmB,GAAG;QAC5B,IAAI,EAAE,SAAS,CAAC;QAChB,SAAS,EAAE,cAAc,CAAC;QAC1B,MAAM,EAAE,WAAW,CAAC;QACpB,IAAI,EAAE,SAAS,CAAC;QAChB,MAAM,EAAE,WAAW,CAAC;KACrB,CAAC;CACH;AAED,eAAO,MAAM,mBAAmB,4CA8C/B,CAAC"}
|
|
@@ -13,7 +13,9 @@ export declare class GapTheme extends BaseTheme implements Record<SizeKey, strin
|
|
|
13
13
|
/** Extra-large gap */
|
|
14
14
|
xl: string;
|
|
15
15
|
private readonly gapVarClass;
|
|
16
|
-
constructor(isUIComponent?: boolean);
|
|
16
|
+
constructor(gapClasses: Record<SizeKey, string>, isUIComponent?: boolean);
|
|
17
17
|
getClasses(extractedKeys: CategoryProps): string[];
|
|
18
|
+
static createForUI(): GapTheme;
|
|
19
|
+
static createForLayout(): GapTheme;
|
|
18
20
|
}
|
|
19
21
|
//# sourceMappingURL=gapTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gapTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/theme/size/gapTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,QAAS,SAAQ,SAAU,YAAW,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;IACxE,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAEzB,aAAa,GAAE,OAAe;
|
|
1
|
+
{"version":3,"file":"gapTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/theme/size/gapTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,QAAS,SAAQ,SAAU,YAAW,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;IACxE,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAEzB,UAAU,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,aAAa,GAAE,OAAe;IAW/E,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE;IAQlD,MAAM,CAAC,WAAW,IAAI,QAAQ;IAU9B,MAAM,CAAC,eAAe,IAAI,QAAQ;CASnC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -3765,24 +3765,9 @@ class LineHeightTheme extends BaseTheme {
|
|
|
3765
3765
|
}
|
|
3766
3766
|
|
|
3767
3767
|
class GapTheme extends BaseTheme {
|
|
3768
|
-
constructor(isUIComponent = false) {
|
|
3768
|
+
constructor(gapClasses, isUIComponent = false) {
|
|
3769
3769
|
super();
|
|
3770
3770
|
this.gapVarClass = isUIComponent ? "gap-(--ui-gap)" : "gap-(--gap)";
|
|
3771
|
-
const gapClasses = isUIComponent
|
|
3772
|
-
? {
|
|
3773
|
-
xs: "[--gap-unit:1]",
|
|
3774
|
-
sm: "[--gap-unit:1.5]",
|
|
3775
|
-
md: "[--gap-unit:2]",
|
|
3776
|
-
lg: "[--gap-unit:2.5]",
|
|
3777
|
-
xl: "[--gap-unit:3]",
|
|
3778
|
-
}
|
|
3779
|
-
: {
|
|
3780
|
-
xs: "[--gap-unit:2]",
|
|
3781
|
-
sm: "[--gap-unit:3]",
|
|
3782
|
-
md: "[--gap-unit:4]",
|
|
3783
|
-
lg: "[--gap-unit:5]",
|
|
3784
|
-
xl: "[--gap-unit:6]",
|
|
3785
|
-
};
|
|
3786
3771
|
this.xs = gapClasses.xs;
|
|
3787
3772
|
this.sm = gapClasses.sm;
|
|
3788
3773
|
this.md = gapClasses.md;
|
|
@@ -3797,6 +3782,24 @@ class GapTheme extends BaseTheme {
|
|
|
3797
3782
|
}
|
|
3798
3783
|
return [];
|
|
3799
3784
|
}
|
|
3785
|
+
static createForUI() {
|
|
3786
|
+
return new GapTheme({
|
|
3787
|
+
xs: "[--gap-unit:1]",
|
|
3788
|
+
sm: "[--gap-unit:1.5]",
|
|
3789
|
+
md: "[--gap-unit:2]",
|
|
3790
|
+
lg: "[--gap-unit:2.5]",
|
|
3791
|
+
xl: "[--gap-unit:3]",
|
|
3792
|
+
}, true);
|
|
3793
|
+
}
|
|
3794
|
+
static createForLayout() {
|
|
3795
|
+
return new GapTheme({
|
|
3796
|
+
xs: "[--gap-unit:2]",
|
|
3797
|
+
sm: "[--gap-unit:3]",
|
|
3798
|
+
md: "[--gap-unit:4]",
|
|
3799
|
+
lg: "[--gap-unit:5]",
|
|
3800
|
+
xl: "[--gap-unit:6]",
|
|
3801
|
+
}, false);
|
|
3802
|
+
}
|
|
3800
3803
|
}
|
|
3801
3804
|
|
|
3802
3805
|
class RadiusTheme extends BaseTheme {
|
|
@@ -3838,22 +3841,25 @@ class RadiusTheme extends BaseTheme {
|
|
|
3838
3841
|
return new RadiusTheme(brUnitClasses, false);
|
|
3839
3842
|
}
|
|
3840
3843
|
getClasses(extractedKeys) {
|
|
3841
|
-
var _a
|
|
3844
|
+
var _a;
|
|
3842
3845
|
const size = (_a = extractedKeys.size) !== null && _a !== void 0 ? _a : 'md';
|
|
3843
|
-
const shape =
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3846
|
+
const shape = extractedKeys.shape;
|
|
3847
|
+
if (shape) {
|
|
3848
|
+
switch (shape) {
|
|
3849
|
+
case 'pill':
|
|
3850
|
+
return [this.pill];
|
|
3851
|
+
case 'sharp':
|
|
3852
|
+
return [this.sharp];
|
|
3853
|
+
case 'rounded': {
|
|
3854
|
+
const brUnitClass = this.rounded[size];
|
|
3855
|
+
const roundedVar = this.isUIComponent ? "rounded-(--ui-br)" : "rounded-(--br)";
|
|
3856
|
+
return brUnitClass ? [brUnitClass, roundedVar] : [];
|
|
3857
|
+
}
|
|
3858
|
+
default:
|
|
3859
|
+
return [];
|
|
3853
3860
|
}
|
|
3854
|
-
default:
|
|
3855
|
-
return [];
|
|
3856
3861
|
}
|
|
3862
|
+
return [];
|
|
3857
3863
|
}
|
|
3858
3864
|
}
|
|
3859
3865
|
|
|
@@ -4697,7 +4703,6 @@ const themeDefaults = {
|
|
|
4697
4703
|
md: true,
|
|
4698
4704
|
itemsCenter: true,
|
|
4699
4705
|
gap: true,
|
|
4700
|
-
sharp: true,
|
|
4701
4706
|
},
|
|
4702
4707
|
section: {
|
|
4703
4708
|
md: true,
|
|
@@ -4710,7 +4715,6 @@ const themeDefaults = {
|
|
|
4710
4715
|
noBorder: true,
|
|
4711
4716
|
noRing: true,
|
|
4712
4717
|
noShadow: true,
|
|
4713
|
-
sharp: true,
|
|
4714
4718
|
},
|
|
4715
4719
|
stack: {
|
|
4716
4720
|
md: true,
|
|
@@ -4721,7 +4725,6 @@ const themeDefaults = {
|
|
|
4721
4725
|
padding: true,
|
|
4722
4726
|
noBorder: true,
|
|
4723
4727
|
noRing: true,
|
|
4724
|
-
sharp: true,
|
|
4725
4728
|
},
|
|
4726
4729
|
row: {
|
|
4727
4730
|
row: true,
|
|
@@ -4731,7 +4734,6 @@ const themeDefaults = {
|
|
|
4731
4734
|
gap: true,
|
|
4732
4735
|
noBorder: true,
|
|
4733
4736
|
noRing: true,
|
|
4734
|
-
sharp: true,
|
|
4735
4737
|
},
|
|
4736
4738
|
col: {
|
|
4737
4739
|
column: true,
|
|
@@ -4740,7 +4742,6 @@ const themeDefaults = {
|
|
|
4740
4742
|
gap: true,
|
|
4741
4743
|
noBorder: true,
|
|
4742
4744
|
noRing: true,
|
|
4743
|
-
sharp: true,
|
|
4744
4745
|
},
|
|
4745
4746
|
grid2: {
|
|
4746
4747
|
md: true,
|
|
@@ -4879,7 +4880,7 @@ const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-poin
|
|
|
4879
4880
|
size: {
|
|
4880
4881
|
px: new PxTheme(buttonAspectRatioClasses, true),
|
|
4881
4882
|
py: PyTheme.createForUI(),
|
|
4882
|
-
gap:
|
|
4883
|
+
gap: GapTheme.createForUI(),
|
|
4883
4884
|
text: new FontSizeTheme(),
|
|
4884
4885
|
lineHeight: new LineHeightTheme({
|
|
4885
4886
|
xs: "[--lh:1.3]",
|
|
@@ -4924,7 +4925,7 @@ const defaultBadgeTheme = new ComponentTheme("span", "w-fit h-fit transition-all
|
|
|
4924
4925
|
size: {
|
|
4925
4926
|
px: new PxTheme(badgeAspectRatioClasses, true),
|
|
4926
4927
|
py: PyTheme.createForUI(),
|
|
4927
|
-
gap:
|
|
4928
|
+
gap: GapTheme.createForUI(),
|
|
4928
4929
|
text: new FontSizeTheme(),
|
|
4929
4930
|
lineHeight: LineHeightTheme.createDefault()
|
|
4930
4931
|
},
|
|
@@ -4974,7 +4975,7 @@ const defaultChipTheme = new ComponentTheme("span", "w-fit h-fit transition-all
|
|
|
4974
4975
|
lg: "[--lh:1.2]",
|
|
4975
4976
|
xl: "[--lh:1.2]"
|
|
4976
4977
|
}),
|
|
4977
|
-
gap:
|
|
4978
|
+
gap: GapTheme.createForUI()
|
|
4978
4979
|
},
|
|
4979
4980
|
appearance: {
|
|
4980
4981
|
background: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
@@ -5022,7 +5023,7 @@ const defaultCodeTheme = new ComponentTheme("code", "", {
|
|
|
5022
5023
|
lg: "[--lh:1.2]",
|
|
5023
5024
|
xl: "[--lh:1.2]"
|
|
5024
5025
|
}),
|
|
5025
|
-
gap:
|
|
5026
|
+
gap: GapTheme.createForUI()
|
|
5026
5027
|
},
|
|
5027
5028
|
appearance: {
|
|
5028
5029
|
background: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
@@ -5254,7 +5255,7 @@ const defaultCardTheme = new ComponentTheme("div", "", {
|
|
|
5254
5255
|
xl: "[--py-unit:10]",
|
|
5255
5256
|
}),
|
|
5256
5257
|
lineHeight: LineHeightTheme.createDefault(),
|
|
5257
|
-
gap:
|
|
5258
|
+
gap: GapTheme.createForLayout(),
|
|
5258
5259
|
},
|
|
5259
5260
|
layout: {
|
|
5260
5261
|
...defaultLayoutsThemes,
|
|
@@ -5277,7 +5278,7 @@ const defaultCardTheme = new ComponentTheme("div", "", {
|
|
|
5277
5278
|
|
|
5278
5279
|
const defaultRowTheme = new ComponentTheme("div", "", {
|
|
5279
5280
|
size: {
|
|
5280
|
-
gap:
|
|
5281
|
+
gap: GapTheme.createForLayout(),
|
|
5281
5282
|
breakpoint: new BreakpointTheme(),
|
|
5282
5283
|
},
|
|
5283
5284
|
layout: {
|
|
@@ -5336,7 +5337,7 @@ class SizeTheme extends BaseTheme {
|
|
|
5336
5337
|
|
|
5337
5338
|
const defaultContainerTheme = new ComponentTheme("div", "mx-auto w-full", {
|
|
5338
5339
|
size: {
|
|
5339
|
-
gap:
|
|
5340
|
+
gap: GapTheme.createForLayout(),
|
|
5340
5341
|
maxWidth: new SizeTheme({ xs: 'max-w-3xl', sm: 'max-w-4xl', md: 'max-w-5xl', lg: 'max-w-6xl', xl: 'max-w-7xl' }),
|
|
5341
5342
|
},
|
|
5342
5343
|
layout: {
|
|
@@ -5358,7 +5359,7 @@ const defaultContainerTheme = new ComponentTheme("div", "mx-auto w-full", {
|
|
|
5358
5359
|
|
|
5359
5360
|
const defaultColTheme = new ComponentTheme("div", "", {
|
|
5360
5361
|
size: {
|
|
5361
|
-
gap:
|
|
5362
|
+
gap: GapTheme.createForLayout(),
|
|
5362
5363
|
},
|
|
5363
5364
|
layout: {
|
|
5364
5365
|
...defaultLayoutsThemes,
|
|
@@ -5387,7 +5388,7 @@ const defaultStackTheme = new ComponentTheme("div", "", {
|
|
|
5387
5388
|
xl: "[--aspect-ratio:1]",
|
|
5388
5389
|
}),
|
|
5389
5390
|
py: new PyTheme(),
|
|
5390
|
-
gap:
|
|
5391
|
+
gap: GapTheme.createForLayout(),
|
|
5391
5392
|
breakpoint: new BreakpointTheme(),
|
|
5392
5393
|
},
|
|
5393
5394
|
layout: {
|
|
@@ -5423,7 +5424,13 @@ const defaultSectionTheme = new ComponentTheme("div", "w-full", {
|
|
|
5423
5424
|
lg: "[--py-unit:16] max-laptop:[--py-unit:8] max-tablet:[--py-unit:2]",
|
|
5424
5425
|
xl: "[--py-unit:20] max-laptop:[--py-unit:10] max-tablet:[--py-unit:4]",
|
|
5425
5426
|
}),
|
|
5426
|
-
gap: new GapTheme(
|
|
5427
|
+
gap: new GapTheme({
|
|
5428
|
+
xs: "[--gap-unit:4] max-laptop:[--gap-unit:3] max-tablet:[--gap-unit:2]",
|
|
5429
|
+
sm: "[--gap-unit:6] max-laptop:[--gap-unit:5] max-tablet:[--gap-unit:4]",
|
|
5430
|
+
md: "[--gap-unit:8] max-laptop:[--gap-unit:6] max-tablet:[--gap-unit:4]",
|
|
5431
|
+
lg: "[--gap-unit:10] max-laptop:[--gap-unit:8] max-tablet:[--gap-unit:6]",
|
|
5432
|
+
xl: "[--gap-unit:12] max-laptop:[--gap-unit:10] max-tablet:[--gap-unit:8]",
|
|
5433
|
+
}),
|
|
5427
5434
|
breakpoint: new BreakpointTheme(),
|
|
5428
5435
|
},
|
|
5429
5436
|
appearance: {
|
|
@@ -5445,7 +5452,7 @@ const defaultSectionTheme = new ComponentTheme("div", "w-full", {
|
|
|
5445
5452
|
|
|
5446
5453
|
const gridSubThemes = {
|
|
5447
5454
|
size: {
|
|
5448
|
-
gap:
|
|
5455
|
+
gap: GapTheme.createForLayout(),
|
|
5449
5456
|
},
|
|
5450
5457
|
appearance: {
|
|
5451
5458
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|
|
@@ -5527,7 +5534,7 @@ const defaultLabelTheme = new ComponentTheme("label", "has-[input]:cursor-pointe
|
|
|
5527
5534
|
size: {
|
|
5528
5535
|
text: new FontSizeTheme(),
|
|
5529
5536
|
lineHeight: LineHeightTheme.createDefault(),
|
|
5530
|
-
gap:
|
|
5537
|
+
gap: GapTheme.createForUI(),
|
|
5531
5538
|
},
|
|
5532
5539
|
appearance: {
|
|
5533
5540
|
text: GenericVariantTheme.createTypographyTextTheme(),
|
|
@@ -5568,7 +5575,7 @@ const defaultInputTheme = new ComponentTheme("input", "w-full transition-all dur
|
|
|
5568
5575
|
xl: "[--aspect-ratio:2]",
|
|
5569
5576
|
}, true),
|
|
5570
5577
|
py: PyTheme.createForUI(),
|
|
5571
|
-
gap:
|
|
5578
|
+
gap: GapTheme.createForUI(),
|
|
5572
5579
|
text: new FontSizeTheme(),
|
|
5573
5580
|
lineHeight: LineHeightTheme.createDefault(),
|
|
5574
5581
|
},
|