magtool 1.1.4 → 1.1.6

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.
@@ -0,0 +1,87 @@
1
+ :root {
2
+ --mg-white: rgba(255, 255, 255, 1);
3
+ --mg-white1: rgba(255, 255, 255, 0.1);
4
+ --mg-white3: rgba(255, 255, 255, 0.3);
5
+ --mg-white5: rgba(255, 255, 255, 0.5);
6
+ --mg-white7: rgba(255, 255, 255, 0.7);
7
+ --mg-white9: rgba(255, 255, 255, 0.9);
8
+ --mg-dark: rgba(46, 38, 61, 1);
9
+ --mg-dark1: rgba(46, 38, 61, 0.1);
10
+ --mg-dark3: rgba(46, 38, 61, 0.3);
11
+ --mg-dark5: rgba(46, 38, 61, 0.5);
12
+ --mg-dark7: rgba(46, 38, 61, 0.7);
13
+ --mg-dark9: rgba(46, 38, 61, 0.9);
14
+ --mg-primary: rgba(22, 177, 255, 1);
15
+ --mg-primary1: rgba(22, 177, 255, 0.1);
16
+ --mg-primary3: rgba(22, 177, 255, 0.3);
17
+ --mg-primary5: rgba(22, 177, 255, 0.5);
18
+ --mg-primary7: rgba(22, 177, 255, 0.7);
19
+ --mg-primary9: rgba(22, 177, 255, 0.9);
20
+ --mg-orange: rgba(250, 139, 12, 1);
21
+ --mg-orange1: rgba(250, 139, 12, 0.1);
22
+ --mg-orange3: rgba(250, 139, 12, 0.3);
23
+ --mg-orange5: rgba(250, 139, 12, 0.5);
24
+ --mg-orange7: rgba(250, 139, 12, 0.7);
25
+ --mg-orange9: rgba(250, 139, 12, 0.9);
26
+ --mg-green: rgba(32, 201, 151, 1);
27
+ --mg-green1: rgba(32, 201, 151, 0.1);
28
+ --mg-green3: rgba(32, 201, 151, 0.3);
29
+ --mg-green5: rgba(32, 201, 151, 0.5);
30
+ --mg-green7: rgba(32, 201, 151, 0.7);
31
+ --mg-green9: rgba(32, 201, 151, 0.9);
32
+ --mg-red: rgba(255, 77, 79, 1);
33
+ --mg-red1: rgba(255, 77, 79, 0.1);
34
+ --mg-red3: rgba(255, 77, 79, 0.3);
35
+ --mg-red5: rgba(255, 77, 79, 0.5);
36
+ --mg-red7: rgba(255, 77, 79, 0.7);
37
+ --mg-red9: rgba(255, 77, 79, 0.9);
38
+ --mg-yellow: rgba(255, 77, 79, 1);
39
+ --mg-yellow1: rgba(255, 77, 79, 0.1);
40
+ --mg-yellow3: rgba(255, 77, 79, 0.3);
41
+ --mg-yellow5: rgba(255, 77, 79, 0.5);
42
+ --mg-yellow7: rgba(255, 77, 79, 0.7);
43
+ --mg-yellow9: rgba(255, 77, 79, 0.9);
44
+ --mg-blue: rgba(44, 153, 255, 1);
45
+ --mg-blue1: rgba(44, 153, 255, 0.1);
46
+ --mg-blue3: rgba(44, 153, 255, 0.3);
47
+ --mg-blue5: rgba(44, 153, 255, 0.5);
48
+ --mg-blue7: rgba(44, 153, 255, 0.7);
49
+ --mg-blue9: rgba(44, 153, 255, 0.9);
50
+ --mg-purple: rgba(134, 50, 244, 1);
51
+ --mg-purple1: rgba(134, 50, 244, 0.1);
52
+ --mg-purple3: rgba(134, 50, 244, 0.3);
53
+ --mg-purple5: rgba(134, 50, 244, 0.5);
54
+ --mg-purple7: rgba(134, 50, 244, 0.7);
55
+ --mg-purple9: rgba(134, 50, 244, 0.9);
56
+ --mg-pink: rgba(255, 105, 165, 1);
57
+ --mg-pink1: rgba(255, 105, 165, 0.1);
58
+ --mg-pink3: rgba(255, 105, 165, 0.3);
59
+ --mg-pink5: rgba(255, 105, 165, 0.5);
60
+ --mg-pink7: rgba(255, 105, 165, 0.7);
61
+ --mg-pink9: rgba(255, 105, 165, 0.9);
62
+ --mg-yellow: rgba(255, 204, 0, 1);
63
+ --mg-yellow1: rgba(255, 204, 0, 0.1);
64
+ --mg-yellow3: rgba(255, 204, 0, 0.3);
65
+ --mg-yellow5: rgba(255, 204, 0, 0.5);
66
+ --mg-yellow7: rgba(255, 204, 0, 0.7);
67
+ --mg-yellow9: rgba(255, 204, 0, 0.9);
68
+ --mg-gray: rgba(230, 230, 230, 1);
69
+ --mg-gray1: rgba(230, 230, 230, 0.1);
70
+ --mg-gray3: rgba(230, 230, 230, 0.3);
71
+ --mg-gray5: rgba(230, 230, 230, 0.5);
72
+ --mg-gray7: rgba(230, 230, 230, 0.7);
73
+ --mg-gray9: rgba(230, 230, 230, 0.9);
74
+ --mg-ad: rgba(239, 246, 254, 1);
75
+
76
+ --mg-label: #999;
77
+ --mg-dark-2: #666;
78
+
79
+ --mg-bg: #f0f2f7;
80
+ --mg-border: rgba(0, 0, 0, 0.1);
81
+ --mg-border-1: thin solid var(--mg-border);
82
+
83
+ --mg-trans-in: all 300ms ease-in;
84
+ --mg-trans-out: all 300ms ease-out;
85
+ --mg-trans-inout: all 300ms ease-in-out;
86
+ --mg-trans-linear: all 300ms linear;
87
+ }
package/dist/index.js CHANGED
@@ -1,23 +1,35 @@
1
1
  import _ from "moment";
2
- import { c as s } from "./cps.js";
3
- import { d as e } from "./util.js";
4
- import { d as i } from "./directive.js";
5
- import { s as m } from "./store.js";
2
+ import { c as i } from "./cps.js";
3
+ import { d as m } from "./util.js";
4
+ import { d as a } from "./directive.js";
5
+ import { p as n } from "./store.js";
6
6
  /* empty css */
7
- const f = (t, r) => {
8
- t.use(e).use(i);
9
- const o = localStorage.getItem("lang");
10
- return o && o.includes("cn") && _.locale("zh-cn", {
11
- months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
12
- monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
7
+ const w = (o, t) => {
8
+ if (o.use(m).use(a), t.storeChips)
9
+ try {
10
+ const { store: e, pinia: s } = n(t.storeChips);
11
+ o.provide("store", e).use(s);
12
+ } catch {
13
+ throw new Error(
14
+ "piniaStore error, storeChips must be an Object source from import.meta.globa"
15
+ );
16
+ }
17
+ const r = localStorage.getItem("lang");
18
+ return r && r.includes("cn") && _.locale("zh-cn", {
19
+ months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split(
20
+ "_"
21
+ ),
22
+ monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split(
23
+ "_"
24
+ ),
13
25
  weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
14
26
  weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
15
27
  weekdaysMin: "日_一_二_三_四_五_六".split("_")
16
28
  }), window.$m = _, window.$moment = _, {
17
- composition: s,
18
- store: m
29
+ composition: i,
30
+ store
19
31
  };
20
32
  };
21
33
  export {
22
- f as default
34
+ w as default
23
35
  };
package/dist/store.js CHANGED
@@ -1,11 +1,11 @@
1
- import { createPinia as n, defineStore as r } from "pinia";
2
- const a = n(), i = (e) => {
1
+ import { createPinia as a, defineStore as c } from "pinia";
2
+ const r = a(), s = (e) => {
3
3
  const t = {};
4
- return Object.keys(e).forEach((o) => {
5
- const c = o.match(/chip\/(\S*).js/)[1];
6
- t[c] = r(c, e[o].default);
7
- }), { pinia: a, store: t };
4
+ return Object.keys(e).forEach((n) => {
5
+ const o = n.match(/chip\/(\S*).js/)[1];
6
+ t[o] = c(o, e[n].default);
7
+ }), { pinia: r, store: t };
8
8
  };
9
9
  export {
10
- i as s
10
+ s as p
11
11
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "magtool",
3
3
  "packageManager": "yarn@4.4.1",
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
5
5
  "author": "magxl",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -33,7 +33,8 @@
33
33
  "build": "vite build"
34
34
  },
35
35
  "files": [
36
- "dist/*"
36
+ "dist/*",
37
+ "assets/scss/var.scss"
37
38
  ],
38
39
  "dependencies": {
39
40
  "magtool": "^1.1.2",