@yh-ui/theme 1.0.47 → 1.0.49

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/theme.cjs CHANGED
@@ -732,11 +732,11 @@ class ThemeManager {
732
732
  }
733
733
  /** 获取当前是否暗色模式 */
734
734
  get dark() {
735
- return this.isDark;
735
+ return this.state.dark;
736
736
  }
737
737
  /** 获取当前主题 */
738
738
  get theme() {
739
- return this.currentTheme;
739
+ return this.state.theme;
740
740
  }
741
741
  /** 获取所有可用预设 */
742
742
  get presets() {
@@ -744,7 +744,7 @@ class ThemeManager {
744
744
  }
745
745
  /** 获取当前断点 */
746
746
  get breakpoint() {
747
- return this.currentBreakpoint;
747
+ return this.state.breakpoint;
748
748
  }
749
749
  /** 应用颜色到 CSS 变量 */
750
750
  applyColors(colors) {
@@ -998,7 +998,7 @@ class ThemeManager {
998
998
  }
999
999
  /** 获取当前密度 */
1000
1000
  get density() {
1001
- return this.currentDensity;
1001
+ return this.state.density;
1002
1002
  }
1003
1003
  // ==================== 色盲模式 ====================
1004
1004
  /** 设置色盲友好模式 */
@@ -1022,7 +1022,7 @@ class ThemeManager {
1022
1022
  }
1023
1023
  /** 获取当前色盲模式 */
1024
1024
  get colorBlind() {
1025
- return this.colorBlindMode;
1025
+ return this.state.colorBlindMode;
1026
1026
  }
1027
1027
  // ==================== 组件级主题覆盖 ====================
1028
1028
  /** 设置组件级主题覆盖 */
package/dist/theme.mjs CHANGED
@@ -662,11 +662,11 @@ export class ThemeManager {
662
662
  }
663
663
  /** 获取当前是否暗色模式 */
664
664
  get dark() {
665
- return this.isDark;
665
+ return this.state.dark;
666
666
  }
667
667
  /** 获取当前主题 */
668
668
  get theme() {
669
- return this.currentTheme;
669
+ return this.state.theme;
670
670
  }
671
671
  /** 获取所有可用预设 */
672
672
  get presets() {
@@ -674,7 +674,7 @@ export class ThemeManager {
674
674
  }
675
675
  /** 获取当前断点 */
676
676
  get breakpoint() {
677
- return this.currentBreakpoint;
677
+ return this.state.breakpoint;
678
678
  }
679
679
  /** 应用颜色到 CSS 变量 */
680
680
  applyColors(colors) {
@@ -933,7 +933,7 @@ export class ThemeManager {
933
933
  }
934
934
  /** 获取当前密度 */
935
935
  get density() {
936
- return this.currentDensity;
936
+ return this.state.density;
937
937
  }
938
938
  // ==================== 色盲模式 ====================
939
939
  /** 设置色盲友好模式 */
@@ -957,7 +957,7 @@ export class ThemeManager {
957
957
  }
958
958
  /** 获取当前色盲模式 */
959
959
  get colorBlind() {
960
- return this.colorBlindMode;
960
+ return this.state.colorBlindMode;
961
961
  }
962
962
  // ==================== 组件级主题覆盖 ====================
963
963
  /** 设置组件级主题覆盖 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yh-ui/theme",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "YH-UI theme and design tokens",
5
5
  "type": "module",
6
6
  "sideEffects": [