@voicenter-team/voicenter-ui-plus 0.2.27 → 0.2.28

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.
@@ -22,4 +22,7 @@ export type UIThemeCustomObjectJsonConfig = UIThemeBaseConfig & {
22
22
  type: 'customJson';
23
23
  config: themeType;
24
24
  };
25
- export declare type UIThemeConfig = UIThemeLocalConfig | UIThemeRemoteConfig | UIThemeCustomObjectJsonConfig;
25
+ export type UiThemeNoneConfig = UIThemeBaseConfig & {
26
+ type: 'none';
27
+ };
28
+ export declare type UIThemeConfig = UIThemeLocalConfig | UIThemeRemoteConfig | UIThemeCustomObjectJsonConfig | UiThemeNoneConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voicenter-team/voicenter-ui-plus",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vue-tsc --declaration --emitDeclarationOnly && vite build",
@@ -45,6 +45,10 @@ export async function getThemeConfigData (themeConfig?: UIThemeConfig) {
45
45
  let currentTheme = _default
46
46
 
47
47
  if (themeConfig) {
48
+ if (themeConfig.type === 'none') {
49
+ return {}
50
+ }
51
+
48
52
  if (themeConfig.type === 'local') {
49
53
  if (themes[themeConfig.themeName]) {
50
54
  currentTheme = themes[themeConfig.themeName]
@@ -24,4 +24,8 @@ export type UIThemeCustomObjectJsonConfig = UIThemeBaseConfig & {
24
24
  config: themeType
25
25
  }
26
26
 
27
- export declare type UIThemeConfig = UIThemeLocalConfig | UIThemeRemoteConfig | UIThemeCustomObjectJsonConfig
27
+ export type UiThemeNoneConfig = UIThemeBaseConfig & {
28
+ type: 'none'
29
+ }
30
+
31
+ export declare type UIThemeConfig = UIThemeLocalConfig | UIThemeRemoteConfig | UIThemeCustomObjectJsonConfig | UiThemeNoneConfig