@vaneui/ui 0.3.1-alpha.20251214142729.7385e1d → 0.3.1-alpha.20251222151356.4f77437

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
@@ -3625,24 +3625,23 @@ class PaddingTheme extends BaseTheme {
3625
3625
  }
3626
3626
  }
3627
3627
 
3628
- /** Horizontal padding theme - controls left and right padding */
3628
+ /** Horizontal padding theme - controls left and right padding via aspect ratio */
3629
3629
  class PxTheme extends PaddingTheme {
3630
3630
  constructor(aspectRatio, isUIComponent = false) {
3631
- super();
3632
- this.aspectRatioMap = aspectRatio ? aspectRatio : {
3633
- xs: "[--aspect-ratio:1]",
3634
- sm: "[--aspect-ratio:1]",
3635
- md: "[--aspect-ratio:1]",
3636
- lg: "[--aspect-ratio:1]",
3637
- xl: "[--aspect-ratio:1]",
3638
- };
3631
+ super(aspectRatio);
3639
3632
  this.isUIComponent = isUIComponent;
3633
+ // Override with PxTheme's default aspect ratio classes if no custom map provided
3634
+ if (!aspectRatio) {
3635
+ ComponentKeys.size.forEach((key) => {
3636
+ this[key] = "[--aspect-ratio:1]";
3637
+ });
3638
+ }
3640
3639
  }
3641
3640
  getClasses(extractedKeys) {
3642
- var _a, _b;
3641
+ var _a;
3643
3642
  if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === 'padding' || (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === undefined) {
3644
3643
  const size = (_a = extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.size) !== null && _a !== void 0 ? _a : 'md';
3645
- const aspectRatioClass = (_b = this.aspectRatioMap) === null || _b === void 0 ? void 0 : _b[size];
3644
+ const aspectRatioClass = this[size];
3646
3645
  const classes = [];
3647
3646
  // Only add aspect-ratio class - no padding classes
3648
3647
  if (aspectRatioClass)