@vaneui/md 0.9.0-alpha.20260105192120.1be78c6 → 0.9.0-alpha.20260106191130.bc0ea5f

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
@@ -11804,24 +11804,21 @@ class ComponentTheme {
11804
11804
  }
11805
11805
 
11806
11806
  /**
11807
- * Font size theme - switches --fs-unit via breakpoint classes.
11808
- * CSS variable values (--fs-unit-desktop/tablet/mobile) are set in vars.css.
11809
- * The formula --fs = --fs-unit * --fs-base is computed once in CSS.
11807
+ * Font size theme - applies text size using pre-computed breakpoint variables.
11808
+ * CSS computes --fs-desktop/tablet/mobile from --fs-unit (with fallbacks for responsive overrides).
11810
11809
  */
11811
11810
  class FontSizeTheme extends BaseTheme {
11812
11811
  constructor() {
11813
11812
  super(...arguments);
11814
- /** Desktop breakpoint unit switch */
11815
- this.desktop = "[--fs-unit:var(--fs-unit-desktop)]";
11816
- /** Tablet breakpoint unit switch */
11817
- this.tablet = "max-tablet:[--fs-unit:var(--fs-unit-tablet)]";
11818
- /** Mobile breakpoint unit switch */
11819
- this.mobile = "max-mobile:[--fs-unit:var(--fs-unit-mobile)]";
11820
- /** Consumer class */
11821
- this.fontSize = "text-(length:--fs)";
11813
+ /** Desktop: apply font size using --fs-desktop */
11814
+ this.desktop = "text-(length:--fs-desktop)";
11815
+ /** Tablet: apply font size using --fs-tablet */
11816
+ this.tablet = "max-tablet:text-(length:--fs-tablet)";
11817
+ /** Mobile: apply font size using --fs-mobile */
11818
+ this.mobile = "max-mobile:text-(length:--fs-mobile)";
11822
11819
  }
11823
11820
  getClasses(_extractedKeys) {
11824
- return [this.desktop, this.tablet, this.mobile, this.fontSize];
11821
+ return [this.desktop, this.tablet, this.mobile];
11825
11822
  }
11826
11823
  }
11827
11824
 
@@ -11842,25 +11839,22 @@ class LineHeightTheme extends BaseTheme {
11842
11839
  }
11843
11840
 
11844
11841
  /**
11845
- * Gap theme - switches --gap-unit via breakpoint classes.
11846
- * CSS variable values (--gap-unit-desktop/tablet/mobile) are set in vars.css.
11847
- * The formula --gap = --gap-unit * --spacing is computed once in CSS.
11842
+ * Gap theme - applies gap using pre-computed breakpoint variables.
11843
+ * CSS computes --gap-desktop/tablet/mobile from --gap-unit (with fallbacks for responsive overrides).
11848
11844
  */
11849
11845
  class GapTheme extends BaseTheme {
11850
11846
  constructor() {
11851
11847
  super(...arguments);
11852
- /** Desktop breakpoint unit switch */
11853
- this.desktop = "[--gap-unit:var(--gap-unit-desktop)]";
11854
- /** Tablet breakpoint unit switch */
11855
- this.tablet = "max-tablet:[--gap-unit:var(--gap-unit-tablet)]";
11856
- /** Mobile breakpoint unit switch */
11857
- this.mobile = "max-mobile:[--gap-unit:var(--gap-unit-mobile)]";
11858
- /** Consumer class */
11859
- this.gap = "gap-(--gap)";
11848
+ /** Desktop: apply gap using --gap-desktop */
11849
+ this.desktop = "gap-(--gap-desktop)";
11850
+ /** Tablet: apply gap using --gap-tablet */
11851
+ this.tablet = "max-tablet:gap-(--gap-tablet)";
11852
+ /** Mobile: apply gap using --gap-mobile */
11853
+ this.mobile = "max-mobile:gap-(--gap-mobile)";
11860
11854
  }
11861
11855
  getClasses(extractedKeys) {
11862
11856
  if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.gap) === 'gap') {
11863
- return [this.desktop, this.tablet, this.mobile, this.gap];
11857
+ return [this.desktop, this.tablet, this.mobile];
11864
11858
  }
11865
11859
  return [];
11866
11860
  }
@@ -11978,52 +11972,44 @@ class FocusVisibleTheme extends BaseTheme {
11978
11972
  }
11979
11973
 
11980
11974
  /**
11981
- * Horizontal padding theme - switches --py-unit via breakpoint classes.
11982
- * The formula --px = --aspect-ratio * --py-unit * --spacing is computed in CSS.
11983
- * Uses same --py-unit as PyTheme since px is derived from py.
11975
+ * Horizontal padding theme - applies px using pre-computed breakpoint variables.
11976
+ * CSS computes --px-desktop/tablet/mobile from --py-unit and --aspect-ratio.
11984
11977
  */
11985
11978
  class PxTheme extends BaseTheme {
11986
11979
  constructor() {
11987
11980
  super(...arguments);
11988
- /** Desktop breakpoint unit switch */
11989
- this.desktop = "[--py-unit:var(--py-unit-desktop)]";
11990
- /** Tablet breakpoint unit switch */
11991
- this.tablet = "max-tablet:[--py-unit:var(--py-unit-tablet)]";
11992
- /** Mobile breakpoint unit switch */
11993
- this.mobile = "max-mobile:[--py-unit:var(--py-unit-mobile)]";
11994
- /** Consumer class */
11995
- this.px = "px-(--px)";
11981
+ /** Desktop: apply horizontal padding using --px-desktop */
11982
+ this.desktop = "px-(--px-desktop)";
11983
+ /** Tablet: apply horizontal padding using --px-tablet */
11984
+ this.tablet = "max-tablet:px-(--px-tablet)";
11985
+ /** Mobile: apply horizontal padding using --px-mobile */
11986
+ this.mobile = "max-mobile:px-(--px-mobile)";
11996
11987
  }
11997
11988
  getClasses(extractedKeys) {
11998
11989
  if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === 'padding' || (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === undefined) {
11999
- // Note: unit switching classes are same as py, but we still emit them
12000
- // in case px is used without py. twMerge will dedupe if both are used.
12001
- return [this.desktop, this.tablet, this.mobile, this.px];
11990
+ return [this.desktop, this.tablet, this.mobile];
12002
11991
  }
12003
11992
  return [];
12004
11993
  }
12005
11994
  }
12006
11995
 
12007
11996
  /**
12008
- * Vertical padding theme - switches --py-unit via breakpoint classes.
12009
- * CSS variable values (--py-unit-desktop/tablet/mobile) are set in vars.css.
12010
- * The formula --py = --py-unit * --spacing is computed once in CSS.
11997
+ * Vertical padding theme - applies py using pre-computed breakpoint variables.
11998
+ * CSS computes --py-desktop/tablet/mobile from --py-unit (with fallbacks for responsive overrides).
12011
11999
  */
12012
12000
  class PyTheme extends BaseTheme {
12013
12001
  constructor() {
12014
12002
  super(...arguments);
12015
- /** Desktop breakpoint unit switch */
12016
- this.desktop = "[--py-unit:var(--py-unit-desktop)]";
12017
- /** Tablet breakpoint unit switch */
12018
- this.tablet = "max-tablet:[--py-unit:var(--py-unit-tablet)]";
12019
- /** Mobile breakpoint unit switch */
12020
- this.mobile = "max-mobile:[--py-unit:var(--py-unit-mobile)]";
12021
- /** Consumer class */
12022
- this.py = "py-(--py)";
12003
+ /** Desktop: apply vertical padding using --py-desktop */
12004
+ this.desktop = "py-(--py-desktop)";
12005
+ /** Tablet: apply vertical padding using --py-tablet */
12006
+ this.tablet = "max-tablet:py-(--py-tablet)";
12007
+ /** Mobile: apply vertical padding using --py-mobile */
12008
+ this.mobile = "max-mobile:py-(--py-mobile)";
12023
12009
  }
12024
12010
  getClasses(extractedKeys) {
12025
12011
  if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === 'padding' || (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === undefined) {
12026
- return [this.desktop, this.tablet, this.mobile, this.py];
12012
+ return [this.desktop, this.tablet, this.mobile];
12027
12013
  }
12028
12014
  return [];
12029
12015
  }