@vaneui/ui 0.9.0-alpha.20260105191526.b49b458 → 0.9.0-alpha.20260106184406.602ce72
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/keys.d.ts +9 -9
- package/dist/components/ui/props/keys.d.ts.map +1 -1
- package/dist/components/ui/props/propDescriptions.d.ts +1 -1
- package/dist/components/ui/theme/size/fontSizeTheme.d.ts +5 -8
- package/dist/components/ui/theme/size/fontSizeTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/gapTheme.d.ts +5 -8
- package/dist/components/ui/theme/size/gapTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/pxTheme.d.ts +5 -8
- package/dist/components/ui/theme/size/pxTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/pyTheme.d.ts +5 -8
- package/dist/components/ui/theme/size/pyTheme.d.ts.map +1 -1
- package/dist/index.esm.js +37 -51
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +37 -51
- package/dist/index.js.map +1 -1
- package/dist/ui.css +54 -28
- package/dist/vars.css +24 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -227,7 +227,7 @@ const ComponentCategories = {
|
|
|
227
227
|
* Auto-generated prop descriptions from JSDoc comments.
|
|
228
228
|
* DO NOT EDIT MANUALLY - Run 'npm run props:generate' to regenerate.
|
|
229
229
|
*
|
|
230
|
-
* Generated on: 2026-01-
|
|
230
|
+
* Generated on: 2026-01-06T18:44:07.388Z
|
|
231
231
|
*/
|
|
232
232
|
const PropDescriptions = {
|
|
233
233
|
"appearance": {
|
|
@@ -3897,24 +3897,21 @@ class ComponentTheme {
|
|
|
3897
3897
|
}
|
|
3898
3898
|
|
|
3899
3899
|
/**
|
|
3900
|
-
* Font size theme -
|
|
3901
|
-
* CSS
|
|
3902
|
-
* The formula --fs = --fs-unit * --fs-base is computed once in CSS.
|
|
3900
|
+
* Font size theme - applies text size using pre-computed breakpoint variables.
|
|
3901
|
+
* CSS computes --fs-desktop/tablet/mobile from --fs-unit (with fallbacks for responsive overrides).
|
|
3903
3902
|
*/
|
|
3904
3903
|
class FontSizeTheme extends BaseTheme {
|
|
3905
3904
|
constructor() {
|
|
3906
3905
|
super(...arguments);
|
|
3907
|
-
/** Desktop
|
|
3908
|
-
this.desktop = "
|
|
3909
|
-
/** Tablet
|
|
3910
|
-
this.tablet = "max-tablet:
|
|
3911
|
-
/** Mobile
|
|
3912
|
-
this.mobile = "max-mobile:
|
|
3913
|
-
/** Consumer class */
|
|
3914
|
-
this.fontSize = "text-(length:--fs)";
|
|
3906
|
+
/** Desktop: apply font size using --fs-desktop */
|
|
3907
|
+
this.desktop = "text-(length:--fs-desktop)";
|
|
3908
|
+
/** Tablet: apply font size using --fs-tablet */
|
|
3909
|
+
this.tablet = "max-tablet:text-(length:--fs-tablet)";
|
|
3910
|
+
/** Mobile: apply font size using --fs-mobile */
|
|
3911
|
+
this.mobile = "max-mobile:text-(length:--fs-mobile)";
|
|
3915
3912
|
}
|
|
3916
3913
|
getClasses(_extractedKeys) {
|
|
3917
|
-
return [this.desktop, this.tablet, this.mobile
|
|
3914
|
+
return [this.desktop, this.tablet, this.mobile];
|
|
3918
3915
|
}
|
|
3919
3916
|
}
|
|
3920
3917
|
|
|
@@ -3935,25 +3932,22 @@ class LineHeightTheme extends BaseTheme {
|
|
|
3935
3932
|
}
|
|
3936
3933
|
|
|
3937
3934
|
/**
|
|
3938
|
-
* Gap theme -
|
|
3939
|
-
* CSS
|
|
3940
|
-
* The formula --gap = --gap-unit * --spacing is computed once in CSS.
|
|
3935
|
+
* Gap theme - applies gap using pre-computed breakpoint variables.
|
|
3936
|
+
* CSS computes --gap-desktop/tablet/mobile from --gap-unit (with fallbacks for responsive overrides).
|
|
3941
3937
|
*/
|
|
3942
3938
|
class GapTheme extends BaseTheme {
|
|
3943
3939
|
constructor() {
|
|
3944
3940
|
super(...arguments);
|
|
3945
|
-
/** Desktop
|
|
3946
|
-
this.desktop = "
|
|
3947
|
-
/** Tablet
|
|
3948
|
-
this.tablet = "max-tablet:
|
|
3949
|
-
/** Mobile
|
|
3950
|
-
this.mobile = "max-mobile:
|
|
3951
|
-
/** Consumer class */
|
|
3952
|
-
this.gap = "gap-(--gap)";
|
|
3941
|
+
/** Desktop: apply gap using --gap-desktop */
|
|
3942
|
+
this.desktop = "gap-(--gap-desktop)";
|
|
3943
|
+
/** Tablet: apply gap using --gap-tablet */
|
|
3944
|
+
this.tablet = "max-tablet:gap-(--gap-tablet)";
|
|
3945
|
+
/** Mobile: apply gap using --gap-mobile */
|
|
3946
|
+
this.mobile = "max-mobile:gap-(--gap-mobile)";
|
|
3953
3947
|
}
|
|
3954
3948
|
getClasses(extractedKeys) {
|
|
3955
3949
|
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.gap) === 'gap') {
|
|
3956
|
-
return [this.desktop, this.tablet, this.mobile
|
|
3950
|
+
return [this.desktop, this.tablet, this.mobile];
|
|
3957
3951
|
}
|
|
3958
3952
|
return [];
|
|
3959
3953
|
}
|
|
@@ -4071,52 +4065,44 @@ class FocusVisibleTheme extends BaseTheme {
|
|
|
4071
4065
|
}
|
|
4072
4066
|
|
|
4073
4067
|
/**
|
|
4074
|
-
* Horizontal padding theme -
|
|
4075
|
-
*
|
|
4076
|
-
* Uses same --py-unit as PyTheme since px is derived from py.
|
|
4068
|
+
* Horizontal padding theme - applies px using pre-computed breakpoint variables.
|
|
4069
|
+
* CSS computes --px-desktop/tablet/mobile from --py-unit and --aspect-ratio.
|
|
4077
4070
|
*/
|
|
4078
4071
|
class PxTheme extends BaseTheme {
|
|
4079
4072
|
constructor() {
|
|
4080
4073
|
super(...arguments);
|
|
4081
|
-
/** Desktop
|
|
4082
|
-
this.desktop = "
|
|
4083
|
-
/** Tablet
|
|
4084
|
-
this.tablet = "max-tablet:
|
|
4085
|
-
/** Mobile
|
|
4086
|
-
this.mobile = "max-mobile:
|
|
4087
|
-
/** Consumer class */
|
|
4088
|
-
this.px = "px-(--px)";
|
|
4074
|
+
/** Desktop: apply horizontal padding using --px-desktop */
|
|
4075
|
+
this.desktop = "px-(--px-desktop)";
|
|
4076
|
+
/** Tablet: apply horizontal padding using --px-tablet */
|
|
4077
|
+
this.tablet = "max-tablet:px-(--px-tablet)";
|
|
4078
|
+
/** Mobile: apply horizontal padding using --px-mobile */
|
|
4079
|
+
this.mobile = "max-mobile:px-(--px-mobile)";
|
|
4089
4080
|
}
|
|
4090
4081
|
getClasses(extractedKeys) {
|
|
4091
4082
|
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === 'padding' || (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === undefined) {
|
|
4092
|
-
|
|
4093
|
-
// in case px is used without py. twMerge will dedupe if both are used.
|
|
4094
|
-
return [this.desktop, this.tablet, this.mobile, this.px];
|
|
4083
|
+
return [this.desktop, this.tablet, this.mobile];
|
|
4095
4084
|
}
|
|
4096
4085
|
return [];
|
|
4097
4086
|
}
|
|
4098
4087
|
}
|
|
4099
4088
|
|
|
4100
4089
|
/**
|
|
4101
|
-
* Vertical padding theme -
|
|
4102
|
-
* CSS
|
|
4103
|
-
* The formula --py = --py-unit * --spacing is computed once in CSS.
|
|
4090
|
+
* Vertical padding theme - applies py using pre-computed breakpoint variables.
|
|
4091
|
+
* CSS computes --py-desktop/tablet/mobile from --py-unit (with fallbacks for responsive overrides).
|
|
4104
4092
|
*/
|
|
4105
4093
|
class PyTheme extends BaseTheme {
|
|
4106
4094
|
constructor() {
|
|
4107
4095
|
super(...arguments);
|
|
4108
|
-
/** Desktop
|
|
4109
|
-
this.desktop = "
|
|
4110
|
-
/** Tablet
|
|
4111
|
-
this.tablet = "max-tablet:
|
|
4112
|
-
/** Mobile
|
|
4113
|
-
this.mobile = "max-mobile:
|
|
4114
|
-
/** Consumer class */
|
|
4115
|
-
this.py = "py-(--py)";
|
|
4096
|
+
/** Desktop: apply vertical padding using --py-desktop */
|
|
4097
|
+
this.desktop = "py-(--py-desktop)";
|
|
4098
|
+
/** Tablet: apply vertical padding using --py-tablet */
|
|
4099
|
+
this.tablet = "max-tablet:py-(--py-tablet)";
|
|
4100
|
+
/** Mobile: apply vertical padding using --py-mobile */
|
|
4101
|
+
this.mobile = "max-mobile:py-(--py-mobile)";
|
|
4116
4102
|
}
|
|
4117
4103
|
getClasses(extractedKeys) {
|
|
4118
4104
|
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === 'padding' || (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === undefined) {
|
|
4119
|
-
return [this.desktop, this.tablet, this.mobile
|
|
4105
|
+
return [this.desktop, this.tablet, this.mobile];
|
|
4120
4106
|
}
|
|
4121
4107
|
return [];
|
|
4122
4108
|
}
|