@vaneui/ui 0.9.0-alpha.20260105191526.b49b458 → 0.9.0-alpha.20260106192523.680d7a3

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.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-05T19:15:28.344Z
230
+ * Generated on: 2026-01-06T19:25:25.090Z
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 - switches --fs-unit via breakpoint classes.
3901
- * CSS variable values (--fs-unit-desktop/tablet/mobile) are set in vars.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 breakpoint unit switch */
3908
- this.desktop = "[--fs-unit:var(--fs-unit-desktop)]";
3909
- /** Tablet breakpoint unit switch */
3910
- this.tablet = "max-tablet:[--fs-unit:var(--fs-unit-tablet)]";
3911
- /** Mobile breakpoint unit switch */
3912
- this.mobile = "max-mobile:[--fs-unit:var(--fs-unit-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, this.fontSize];
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 - switches --gap-unit via breakpoint classes.
3939
- * CSS variable values (--gap-unit-desktop/tablet/mobile) are set in vars.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 breakpoint unit switch */
3946
- this.desktop = "[--gap-unit:var(--gap-unit-desktop)]";
3947
- /** Tablet breakpoint unit switch */
3948
- this.tablet = "max-tablet:[--gap-unit:var(--gap-unit-tablet)]";
3949
- /** Mobile breakpoint unit switch */
3950
- this.mobile = "max-mobile:[--gap-unit:var(--gap-unit-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, this.gap];
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 - switches --py-unit via breakpoint classes.
4075
- * The formula --px = --aspect-ratio * --py-unit * --spacing is computed in CSS.
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 breakpoint unit switch */
4082
- this.desktop = "[--py-unit:var(--py-unit-desktop)]";
4083
- /** Tablet breakpoint unit switch */
4084
- this.tablet = "max-tablet:[--py-unit:var(--py-unit-tablet)]";
4085
- /** Mobile breakpoint unit switch */
4086
- this.mobile = "max-mobile:[--py-unit:var(--py-unit-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
- // Note: unit switching classes are same as py, but we still emit them
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 - switches --py-unit via breakpoint classes.
4102
- * CSS variable values (--py-unit-desktop/tablet/mobile) are set in vars.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 breakpoint unit switch */
4109
- this.desktop = "[--py-unit:var(--py-unit-desktop)]";
4110
- /** Tablet breakpoint unit switch */
4111
- this.tablet = "max-tablet:[--py-unit:var(--py-unit-tablet)]";
4112
- /** Mobile breakpoint unit switch */
4113
- this.mobile = "max-mobile:[--py-unit:var(--py-unit-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, this.py];
4105
+ return [this.desktop, this.tablet, this.mobile];
4120
4106
  }
4121
4107
  return [];
4122
4108
  }