@finema/core 1.4.160 → 1.4.161
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
|
|
2
2
|
|
|
3
3
|
const name = "@finema/core";
|
|
4
|
-
const version = "1.4.
|
|
4
|
+
const version = "1.4.161";
|
|
5
5
|
|
|
6
6
|
const colors = {
|
|
7
7
|
black: "#20243E",
|
|
@@ -37,35 +37,55 @@ const colors = {
|
|
|
37
37
|
},
|
|
38
38
|
info: {
|
|
39
39
|
DEFAULT: "#0D8CEE",
|
|
40
|
-
50: "#
|
|
41
|
-
100: "#
|
|
40
|
+
50: "#F3F9FE",
|
|
41
|
+
100: "#E7F4FD",
|
|
42
|
+
200: "#C3E2FB",
|
|
43
|
+
300: "#9ED1F8",
|
|
42
44
|
400: "#56AFF3",
|
|
43
45
|
500: "#0D8CEE",
|
|
44
|
-
600: "#
|
|
46
|
+
600: "#0C7ED6",
|
|
47
|
+
700: "#08548F",
|
|
48
|
+
800: "#063F6B",
|
|
49
|
+
900: "#042A47"
|
|
45
50
|
},
|
|
46
51
|
danger: {
|
|
47
52
|
DEFAULT: "#F25555",
|
|
48
|
-
50: "#
|
|
49
|
-
100: "#
|
|
50
|
-
|
|
53
|
+
50: "#FEF7F7",
|
|
54
|
+
100: "#FEEEEE",
|
|
55
|
+
200: "#FCD5D5",
|
|
56
|
+
300: "#FABBBB",
|
|
57
|
+
400: "#F68888",
|
|
51
58
|
500: "#F25555",
|
|
52
|
-
600: "#
|
|
59
|
+
600: "#DA4D4D",
|
|
60
|
+
700: "#913333",
|
|
61
|
+
800: "#6D2626",
|
|
62
|
+
900: "#491A1A"
|
|
53
63
|
},
|
|
54
64
|
success: {
|
|
55
65
|
DEFAULT: "#3FB061",
|
|
56
|
-
50: "#
|
|
57
|
-
100: "#
|
|
58
|
-
|
|
66
|
+
50: "#F5FBF7",
|
|
67
|
+
100: "#ECF7EF",
|
|
68
|
+
200: "#CFEBD8",
|
|
69
|
+
300: "#B2DFC0",
|
|
70
|
+
400: "#79C890",
|
|
59
71
|
500: "#3FB061",
|
|
60
|
-
600: "#
|
|
72
|
+
600: "#399E57",
|
|
73
|
+
700: "#266A3A",
|
|
74
|
+
800: "#1C4F2C",
|
|
75
|
+
900: "#13351D"
|
|
61
76
|
},
|
|
62
77
|
warning: {
|
|
63
78
|
DEFAULT: "#FF9A35",
|
|
64
|
-
50: "#
|
|
65
|
-
100: "#
|
|
66
|
-
|
|
79
|
+
50: "#FFFAF5",
|
|
80
|
+
100: "#FFF5EB",
|
|
81
|
+
200: "#FFE6CD",
|
|
82
|
+
300: "#FFD7AE",
|
|
83
|
+
400: "#FFB872",
|
|
67
84
|
500: "#FF9A35",
|
|
68
|
-
600: "#
|
|
85
|
+
600: "#E68B30",
|
|
86
|
+
700: "#995C20",
|
|
87
|
+
800: "#734518",
|
|
88
|
+
900: "#4D2E10"
|
|
69
89
|
}
|
|
70
90
|
};
|
|
71
91
|
|
|
@@ -355,6 +375,12 @@ const module = defineNuxtModule({
|
|
|
355
375
|
nuxt.options.alias["#core"] = runtimeDir;
|
|
356
376
|
nuxt.options.css.push(resolve(runtimeDir, "ui.css"));
|
|
357
377
|
nuxt.hook("tailwindcss:config", (tailwindConfig) => {
|
|
378
|
+
tailwindConfig.safelist = [
|
|
379
|
+
...tailwindConfig.safelist || [],
|
|
380
|
+
{
|
|
381
|
+
pattern: /bg-(primary|info|warning|success|danger)-(200)/
|
|
382
|
+
}
|
|
383
|
+
];
|
|
358
384
|
tailwindConfig.content = {
|
|
359
385
|
...tailwindConfig.content,
|
|
360
386
|
files: [
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useToast } from "#imports";
|
|
2
2
|
const ui = (ui2 = {}, titleClass) => ({
|
|
3
|
-
background: "bg-{color}-
|
|
4
|
-
title: titleClass
|
|
3
|
+
background: "bg-{color}-200",
|
|
4
|
+
title: titleClass,
|
|
5
|
+
...ui2
|
|
5
6
|
});
|
|
6
7
|
export const useNotification = () => {
|
|
7
8
|
const toast = useToast();
|