@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.
- package/dist/index.es.js +2140 -2098
- package/dist/index.umd.js +143 -136
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +2 -1
- package/dist/src/components/feedback/nmorph-callout/types.d.ts +1 -1
- package/dist/src/outside-hooks/use-nmorph-theme.d.ts +1 -1
- package/dist/src/types/index.d.ts +4 -2
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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,
|
|
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
|
|
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[];
|