@vaneui/ui 0.2.1-alpha.20250824103031.3e0b460 → 0.2.1-alpha.20250830120134.26927ee

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
@@ -3632,17 +3632,16 @@ const filledCheckedBackgroundAppearanceClasses = {
3632
3632
  };
3633
3633
 
3634
3634
  class AppearanceTheme extends BaseTheme {
3635
- constructor(config, options) {
3635
+ constructor(config, transparentClasses) {
3636
3636
  super();
3637
3637
  Object.assign(this, config);
3638
- this.transparentClassSource = options === null || options === void 0 ? void 0 : options.transparentClassSource;
3639
- this.linkClassSource = options === null || options === void 0 ? void 0 : options.linkClassSource;
3638
+ this.transparentClasses = transparentClasses;
3640
3639
  }
3641
3640
  getClasses(extractedKeys) {
3642
3641
  var _a;
3643
3642
  // Check for specific transparent styles first
3644
3643
  if (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.transparent) {
3645
- const transparentClass = ((_a = this.transparentClassSource) === null || _a === void 0 ? void 0 : _a[extractedKeys.transparent]) || '';
3644
+ const transparentClass = ((_a = this.transparentClasses) === null || _a === void 0 ? void 0 : _a[extractedKeys.transparent]) || '';
3646
3645
  return [transparentClass];
3647
3646
  }
3648
3647
  // Use appearance (now includes link as an appearance option)
@@ -3655,8 +3654,8 @@ class AppearanceTheme extends BaseTheme {
3655
3654
  }
3656
3655
  return [];
3657
3656
  }
3658
- static createTheme(src = {}, options) {
3659
- const finalConfig = Object.fromEntries(ComponentKeys.appearance.map(textKey => [
3657
+ static createTheme(src = {}) {
3658
+ const config = Object.fromEntries(ComponentKeys.appearance.map(textKey => [
3660
3659
  textKey,
3661
3660
  Object.fromEntries(ComponentKeys.mode.map(modeKey => {
3662
3661
  var _a;
@@ -3666,13 +3665,7 @@ class AppearanceTheme extends BaseTheme {
3666
3665
  ];
3667
3666
  })),
3668
3667
  ]));
3669
- // Auto-detect base classes for transparent and link sources if not explicitly provided
3670
- const baseClasses = src.base;
3671
- const finalOptions = {
3672
- transparentClassSource: (options === null || options === void 0 ? void 0 : options.transparentClassSource) || baseClasses,
3673
- linkClassSource: (options === null || options === void 0 ? void 0 : options.linkClassSource) || baseClasses,
3674
- };
3675
- return new AppearanceTheme(finalConfig, finalOptions);
3668
+ return new AppearanceTheme(config, src.base);
3676
3669
  }
3677
3670
  static createLayoutBgTheme() {
3678
3671
  // Creates a theme for layout backgrounds, replacing BgAppearanceTheme
@@ -3684,10 +3677,7 @@ class AppearanceTheme extends BaseTheme {
3684
3677
  active: '',
3685
3678
  }
3686
3679
  ]));
3687
- return new AppearanceTheme(config, {
3688
- transparentClassSource: layoutBackgroundAppearanceClasses,
3689
- linkClassSource: layoutBackgroundAppearanceClasses
3690
- });
3680
+ return new AppearanceTheme(config, layoutBackgroundAppearanceClasses);
3691
3681
  }
3692
3682
  }
3693
3683