@nmorph/nmorph-ui-kit 2.2.0 → 2.2.1

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.
@@ -2,10 +2,11 @@ import { NmorphCalloutType } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  interface INmorphProps {
4
4
  type?: NmorphCalloutType;
5
- title: string;
5
+ title?: string;
6
6
  content: string;
7
7
  }
8
8
  declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
9
9
  type: NmorphCalloutType;
10
+ title: string;
10
11
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
12
  export default _default;
@@ -1 +1 @@
1
- export type NmorphCalloutType = 'info' | 'warning';
1
+ export type NmorphCalloutType = 'info' | 'warning' | 'success' | 'error';
@@ -1,2 +1,2 @@
1
1
  import { INmorphThemeOptions, INmorphThemeInstance } from '../main';
2
- export declare const useNmorphTheme: (customOptions: INmorphThemeOptions) => INmorphThemeInstance;
2
+ export declare const useNmorphTheme: (customOptions?: INmorphThemeOptions) => INmorphThemeInstance;
@@ -87,7 +87,7 @@ export interface INmorphOptions {
87
87
  theme?: INmorphThemeOptions;
88
88
  i18n?: INmorphApplyTranslation;
89
89
  }
90
- export type NmorphThemeOptionsType = Record<string, INmorphThemeOptions>;
90
+ export type NmorphThemeOptionsType = Record<string, INmorphThemeColors>;
91
91
  export interface INmorphStaticColors {
92
92
  info?: string;
93
93
  infoText?: string;
@@ -113,7 +113,7 @@ export interface INmorphDynamicColors {
113
113
  darkShade?: string;
114
114
  lightShade?: string;
115
115
  }
116
- export interface INmorphThemeOptions extends INmorphDynamicColors, INmorphStaticColors {
116
+ export interface INmorphThemeColors extends INmorphDynamicColors, INmorphStaticColors {
117
117
  main?: string;
118
118
  }
119
119
  export type NmorphThemeMapType = Record<string, INmorphColorVariable[]>;
@@ -138,6 +138,8 @@ export interface INmorphApplyTranslation {
138
138
  }
139
139
  export interface INmorphThemeInstance {
140
140
  setTheme: (theme: string) => void;
141
+ setThemeColors: (theme: string, colors: INmorphThemeColors) => void;
142
+ applyTheme: (theme: string, colors?: INmorphThemeColors) => void;
141
143
  currentTheme: Readonly<Ref<string>>;
142
144
  data: INmorphThemeOptions;
143
145
  getDynamicColorVariables: (mainBgColor: string) => INmorphColorVariable[];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "2.2.0",
5
+ "version": "2.2.1",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",