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