rappel-ui 1.0.0
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/cjs/_virtual/_plugin-vue_export-helper.js +1 -0
- package/cjs/components/button/index.d.ts +33 -0
- package/cjs/components/button/index.js +1 -0
- package/cjs/components/button/src/button.d.ts +3 -0
- package/cjs/components/button/src/button.vue.js +1 -0
- package/cjs/components/button/src/button.vue2.js +1 -0
- package/cjs/components/button/src/constants.d.ts +4 -0
- package/cjs/components/button/src/constants.js +1 -0
- package/cjs/components/button/src/types.d.ts +16 -0
- package/cjs/components/button/style/css.d.ts +0 -0
- package/cjs/components/button/style/index.d.ts +0 -0
- package/cjs/components/colors/index.d.ts +7 -0
- package/cjs/components/colors/index.js +1 -0
- package/cjs/components/colors/src/colors.vue.js +1 -0
- package/cjs/components/colors/src/colors.vue2.js +1 -0
- package/cjs/components/colors/src/neutral-color.css +1 -0
- package/cjs/components/colors/src/neutral-color.vue.js +1 -0
- package/cjs/components/colors/src/neutral-color.vue2.js +1 -0
- package/cjs/components/colors/src/primary-color.css +1 -0
- package/cjs/components/colors/src/primary-color.vue.js +1 -0
- package/cjs/components/colors/src/primary-color.vue2.js +1 -0
- package/cjs/components/colors/src/secondary-color.css +1 -0
- package/cjs/components/colors/src/secondary-color.vue.js +1 -0
- package/cjs/components/colors/src/secondary-color.vue2.js +1 -0
- package/cjs/components/index.d.ts +4 -0
- package/cjs/components/index.js +1 -0
- package/cjs/components/input/index.d.ts +25 -0
- package/cjs/components/input/index.js +1 -0
- package/cjs/components/input/src/input.vue.js +1 -0
- package/cjs/components/input/src/input.vue2.js +1 -0
- package/cjs/components/tabs/index.d.ts +20 -0
- package/cjs/components/tabs/index.js +1 -0
- package/cjs/components/tabs/src/tabs.vue.js +1 -0
- package/cjs/composables/index.d.ts +6 -0
- package/cjs/composables/use-namespace/index.d.ts +12 -0
- package/cjs/composables/use-namespace/index.js +1 -0
- package/cjs/composables/useDateFormat.d.ts +7 -0
- package/cjs/composables/useDateFormat.js +1 -0
- package/cjs/composables/useDraggable.d.ts +10 -0
- package/cjs/composables/useDraggable.js +1 -0
- package/cjs/composables/useOnceFn.d.ts +24 -0
- package/cjs/composables/useOnceFn.js +1 -0
- package/cjs/composables/useTimeNodes.d.ts +3 -0
- package/cjs/composables/useTimeNodes.js +1 -0
- package/cjs/composables/useWaterFallLayout.d.ts +10 -0
- package/cjs/composables/useWaterFallLayout.js +1 -0
- package/cjs/constants/index.d.ts +1 -0
- package/cjs/constants/svgLoading.d.ts +2 -0
- package/cjs/constants/svgLoading.js +36 -0
- package/cjs/directives/index.d.ts +3 -0
- package/cjs/directives/vDraggable.d.ts +2 -0
- package/cjs/directives/vDraggable.js +1 -0
- package/cjs/directives/vResizable.d.ts +14 -0
- package/cjs/directives/vResizable.js +21 -0
- package/cjs/directives/vSvgLoading.d.ts +4 -0
- package/cjs/directives/vSvgLoading.js +1 -0
- package/cjs/index.d.ts +86 -0
- package/cjs/index.js +1 -0
- package/cjs/package.json.js +1 -0
- package/cjs/purple-ui/index.d.ts +1 -0
- package/cjs/purple-ui/resolver.d.ts +2 -0
- package/cjs/purple-ui/resolver.js +1 -0
- package/cjs/theme-chalk/src/base.css +1 -0
- package/cjs/theme-chalk/src/button.css +1 -0
- package/cjs/utils/index.d.ts +2 -0
- package/cjs/utils/util.d.ts +143 -0
- package/cjs/utils/util.js +3 -0
- package/cjs/utils/vue/index.d.ts +17 -0
- package/cjs/utils/vue/index.js +1 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/components/button/index.d.ts +33 -0
- package/es/components/button/index.mjs +6 -0
- package/es/components/button/src/button.d.ts +3 -0
- package/es/components/button/src/button.vue.mjs +74 -0
- package/es/components/button/src/button.vue2.mjs +4 -0
- package/es/components/button/src/constants.d.ts +4 -0
- package/es/components/button/src/constants.mjs +5 -0
- package/es/components/button/src/types.d.ts +16 -0
- package/es/components/button/style/css.d.ts +0 -0
- package/es/components/button/style/index.d.ts +0 -0
- package/es/components/colors/index.d.ts +7 -0
- package/es/components/colors/index.mjs +16 -0
- package/es/components/colors/src/colors.vue.mjs +21 -0
- package/es/components/colors/src/colors.vue2.mjs +4 -0
- package/es/components/colors/src/neutral-color.css +1 -0
- package/es/components/colors/src/neutral-color.vue.mjs +7 -0
- package/es/components/colors/src/neutral-color.vue2.mjs +195 -0
- package/es/components/colors/src/primary-color.css +1 -0
- package/es/components/colors/src/primary-color.vue.mjs +7 -0
- package/es/components/colors/src/primary-color.vue2.mjs +33 -0
- package/es/components/colors/src/secondary-color.css +1 -0
- package/es/components/colors/src/secondary-color.vue.mjs +7 -0
- package/es/components/colors/src/secondary-color.vue2.mjs +54 -0
- package/es/components/index.d.ts +4 -0
- package/es/components/index.mjs +20 -0
- package/es/components/input/index.d.ts +25 -0
- package/es/components/input/index.mjs +6 -0
- package/es/components/input/src/input.vue.mjs +15 -0
- package/es/components/input/src/input.vue2.mjs +4 -0
- package/es/components/tabs/index.d.ts +20 -0
- package/es/components/tabs/index.mjs +6 -0
- package/es/components/tabs/src/tabs.vue.mjs +17 -0
- package/es/composables/index.d.ts +6 -0
- package/es/composables/use-namespace/index.d.ts +12 -0
- package/es/composables/use-namespace/index.mjs +21 -0
- package/es/composables/useDateFormat.d.ts +7 -0
- package/es/composables/useDateFormat.mjs +20 -0
- package/es/composables/useDraggable.d.ts +10 -0
- package/es/composables/useDraggable.mjs +55 -0
- package/es/composables/useOnceFn.d.ts +24 -0
- package/es/composables/useOnceFn.mjs +32 -0
- package/es/composables/useTimeNodes.d.ts +3 -0
- package/es/composables/useTimeNodes.mjs +24 -0
- package/es/composables/useWaterFallLayout.d.ts +10 -0
- package/es/composables/useWaterFallLayout.mjs +51 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/svgLoading.d.ts +2 -0
- package/es/constants/svgLoading.mjs +39 -0
- package/es/directives/index.d.ts +3 -0
- package/es/directives/vDraggable.d.ts +2 -0
- package/es/directives/vDraggable.mjs +13 -0
- package/es/directives/vResizable.d.ts +14 -0
- package/es/directives/vResizable.mjs +136 -0
- package/es/directives/vSvgLoading.d.ts +4 -0
- package/es/directives/vSvgLoading.mjs +48 -0
- package/es/index.d.ts +86 -0
- package/es/index.mjs +76 -0
- package/es/package.json.mjs +4 -0
- package/es/purple-ui/index.d.ts +1 -0
- package/es/purple-ui/resolver.d.ts +2 -0
- package/es/purple-ui/resolver.mjs +18 -0
- package/es/theme-chalk/src/base.css +1 -0
- package/es/theme-chalk/src/button.css +1 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/util.d.ts +143 -0
- package/es/utils/util.mjs +151 -0
- package/es/utils/vue/index.d.ts +17 -0
- package/es/utils/vue/index.mjs +36 -0
- package/global.d.ts +7 -0
- package/package.json +65 -0
- package/theme-chalk/base.css +148 -0
- package/theme-chalk/css-vars/_button.css +35 -0
- package/theme-chalk/css-vars/_colors.css +51 -0
- package/theme-chalk/function/_button.css +35 -0
- package/theme-chalk/function/index.css +35 -0
- package/theme-chalk/index.css +560 -0
- package/theme-chalk/mixins/_button.css +35 -0
- package/theme-chalk/mixins/index.css +35 -0
- package/theme-chalk/pu-button.css +446 -0
- package/theme-chalk/root-vars.css +132 -0
- package/theme-chalk/src/base.scss +30 -0
- package/theme-chalk/src/button.scss +104 -0
- package/theme-chalk/src/common/_function.scss +46 -0
- package/theme-chalk/src/css-vars/_button.scss +47 -0
- package/theme-chalk/src/css-vars/_colors.scss +82 -0
- package/theme-chalk/src/css-vars/_namespace.scss +12 -0
- package/theme-chalk/src/function/_button.scss +2 -0
- package/theme-chalk/src/function/index.scss +155 -0
- package/theme-chalk/src/index.scss +2 -0
- package/theme-chalk/src/mixins/_button.scss +140 -0
- package/theme-chalk/src/mixins/index.scss +25 -0
- package/theme-chalk/src/root-vars.scss +13 -0
- package/umd/index.js +59 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
function O(n) {
|
|
2
|
+
const e = new FormData();
|
|
3
|
+
for (const t in n)
|
|
4
|
+
e.append(t, n[t]);
|
|
5
|
+
return e;
|
|
6
|
+
}
|
|
7
|
+
function A(n, e) {
|
|
8
|
+
const t = new URL(n), c = new URLSearchParams(t.search);
|
|
9
|
+
for (const r in e)
|
|
10
|
+
!["", void 0, null].includes(e[r]) && c.set(r, e[r]);
|
|
11
|
+
return t.search = c.toString(), t.href;
|
|
12
|
+
}
|
|
13
|
+
function S(...n) {
|
|
14
|
+
let e = n[0];
|
|
15
|
+
for (let t = 1; t < n.length; t++)
|
|
16
|
+
e[e.length - 1] === "/" && n[t][0] === "/" ? e += n[t].slice(1) : e[e.length - 1] === "/" || n[t][0] === "/" ? e += n[t] : e += "/" + n[t];
|
|
17
|
+
return e;
|
|
18
|
+
}
|
|
19
|
+
function B(n) {
|
|
20
|
+
try {
|
|
21
|
+
return JSON.parse(JSON.stringify(n));
|
|
22
|
+
} catch {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function M(n) {
|
|
27
|
+
const e = ["B", "KB", "MB", "GB", "TB"];
|
|
28
|
+
let t = 0, c = e[0];
|
|
29
|
+
for (; n >= 1024 && t < e.length - 1; )
|
|
30
|
+
n /= 1024, t++, c = e[t];
|
|
31
|
+
const r = n.toString(), o = r.indexOf(".");
|
|
32
|
+
return n = o === -1 ? n : parseFloat(r.substring(0, o + 3)), `${n}${c}}`;
|
|
33
|
+
}
|
|
34
|
+
function p(n, e) {
|
|
35
|
+
return new Promise((t, c) => {
|
|
36
|
+
const r = new FileReader();
|
|
37
|
+
r.onload = (o) => {
|
|
38
|
+
t(o.target?.result);
|
|
39
|
+
}, r.onerror = (o) => {
|
|
40
|
+
c(o);
|
|
41
|
+
}, r.readAsText(n, e);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
async function b(n, e = ["UTF-8", "GBK", "GB2312"]) {
|
|
45
|
+
for (const t of e) {
|
|
46
|
+
const c = await p(n, t);
|
|
47
|
+
if (!(c && c.indexOf("�") > -1))
|
|
48
|
+
return c;
|
|
49
|
+
}
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
52
|
+
function P(n) {
|
|
53
|
+
if (!n) return "";
|
|
54
|
+
let e = "";
|
|
55
|
+
return n.includes(",") ? e = n.replace(/,/g, ",") : n.includes(`\r
|
|
56
|
+
`) ? e = n.replace(/\r\n/g, ",") : n.includes(`
|
|
57
|
+
`) ? e = n.replace(/\n/g, ",") : n.includes("\r") ? e = n.replace(/\r/g, ",") : n.includes("↵") && (e = n.replace(/↵/g, ",")), e.replace(/,+/g, ",").replace(/^,|,$/g, "").replace(/\s+/g, "");
|
|
58
|
+
}
|
|
59
|
+
function E(n) {
|
|
60
|
+
let e;
|
|
61
|
+
const t = new Proxy(n, {
|
|
62
|
+
construct(c, r) {
|
|
63
|
+
return e || (e = Reflect.construct(c, r), e);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
return t.prototype.constructor = t, t;
|
|
67
|
+
}
|
|
68
|
+
function I() {
|
|
69
|
+
const n = /* @__PURE__ */ new Map();
|
|
70
|
+
function e(...t) {
|
|
71
|
+
const c = t.map((o) => typeof o).join(","), r = n.get(c);
|
|
72
|
+
if (!r)
|
|
73
|
+
throw new Error("没有找到对应的实现");
|
|
74
|
+
return r.apply(this, t);
|
|
75
|
+
}
|
|
76
|
+
return e.add = function(...t) {
|
|
77
|
+
const c = t.pop();
|
|
78
|
+
if (typeof c != "function")
|
|
79
|
+
throw new Error("最后一个参数必须是函数");
|
|
80
|
+
const r = t.join(",");
|
|
81
|
+
n.set(r, c);
|
|
82
|
+
}, e;
|
|
83
|
+
}
|
|
84
|
+
function R(n, e = { label: "label", value: "value", children: "children", parentId: "parentId" }) {
|
|
85
|
+
const t = [], c = /* @__PURE__ */ new WeakMap();
|
|
86
|
+
return n.forEach((r) => {
|
|
87
|
+
r.label = r[e.label], r.value = r[e.value], r.children = [], c.set(r[e.value], r);
|
|
88
|
+
}), n.forEach((r) => {
|
|
89
|
+
const o = c.get(r[e.parentId]);
|
|
90
|
+
o ? o.children.push(r) : t.push(r);
|
|
91
|
+
}), t;
|
|
92
|
+
}
|
|
93
|
+
function g(n, e = 1) {
|
|
94
|
+
n = n.replace("#", "");
|
|
95
|
+
const t = parseInt(n.substring(0, 2), 16), c = parseInt(n.substring(2, 4), 16), r = parseInt(n.substring(4, 6), 16), o = { r: 255, g: 255, b: 255 }, s = Math.round(t * e + o.r * (1 - e)), l = Math.round(c * e + o.g * (1 - e)), u = Math.round(r * e + o.b * (1 - e)), i = (d) => d.toString(16).padStart(2, "0");
|
|
96
|
+
return `#${i(s)}${i(l)}${i(u)}`;
|
|
97
|
+
}
|
|
98
|
+
function h(n, e = 0.15) {
|
|
99
|
+
n = n.replace("#", ""), n.length === 3 && (n = n.split("").map((i) => i + i).join(""));
|
|
100
|
+
const t = parseInt(n.substring(0, 2), 16), c = parseInt(n.substring(2, 4), 16), r = parseInt(n.substring(4, 6), 16), o = Math.round(t * (1 - e)), s = Math.round(c * (1 - e)), l = Math.round(r * (1 - e)), u = (i) => Math.round(i).toString(16).padStart(2, "0");
|
|
101
|
+
return `#${u(o)}${u(s)}${u(l)}`;
|
|
102
|
+
}
|
|
103
|
+
function $(n, e = 0.15, t = [0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1]) {
|
|
104
|
+
return [h(n, e)].concat(
|
|
105
|
+
t.map((c) => g(n, c))
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
function w(n, e) {
|
|
109
|
+
return Object.prototype.hasOwnProperty.call(n, e);
|
|
110
|
+
}
|
|
111
|
+
function a(n) {
|
|
112
|
+
return n !== null && typeof n == "object" && Object.getPrototypeOf(n) === Object.prototype;
|
|
113
|
+
}
|
|
114
|
+
function y(n, e) {
|
|
115
|
+
if (!n || !e || !a(n)) return n;
|
|
116
|
+
const t = { ...n };
|
|
117
|
+
return (Array.isArray(e) ? e : [e]).forEach((c) => {
|
|
118
|
+
Reflect.deleteProperty(t, c);
|
|
119
|
+
}), t;
|
|
120
|
+
}
|
|
121
|
+
function f(n, e = "children") {
|
|
122
|
+
return !n || !Array.isArray(n) ? [] : n.reduce((t, c) => Array.isArray(c) ? t.concat(f(c, e)) : c && a(c) && c[e] ? t.concat(y(c, [e]), f(c[e], e)) : t.concat(c), []);
|
|
123
|
+
}
|
|
124
|
+
function m(n, e = ["", void 0, null]) {
|
|
125
|
+
if (!n || !a(n)) return n;
|
|
126
|
+
const t = {}, c = (r) => e.some((o) => Array.isArray(o) && Array.isArray(r) ? o.length === 0 && r.length === 0 : a(o) && a(r) ? Object.keys(o).length === 0 && Object.keys(r).length === 0 : o === r);
|
|
127
|
+
for (const r in n)
|
|
128
|
+
w(n, r) && (c(n[r]) || (t[r] = n[r]));
|
|
129
|
+
return t;
|
|
130
|
+
}
|
|
131
|
+
export {
|
|
132
|
+
M as autoCalcFileSize,
|
|
133
|
+
R as buildTree,
|
|
134
|
+
$ as createColors,
|
|
135
|
+
I as createOverload,
|
|
136
|
+
h as darkenColor,
|
|
137
|
+
B as deepClone,
|
|
138
|
+
y as deleteKeys,
|
|
139
|
+
f as flatArr,
|
|
140
|
+
g as getEqualOpacityColor,
|
|
141
|
+
w as hasOwnProperty,
|
|
142
|
+
a as isPlainObject,
|
|
143
|
+
S as joinURLs,
|
|
144
|
+
P as lineBreakToComma,
|
|
145
|
+
m as omitEmptyKeys,
|
|
146
|
+
O as paramsToFormData,
|
|
147
|
+
b as readTxtByEncodes,
|
|
148
|
+
p as readTxtFile,
|
|
149
|
+
A as setURLSearchParams,
|
|
150
|
+
E as singleton
|
|
151
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
export declare const INSTALLED_KEY: unique symbol;
|
|
3
|
+
declare module 'vue' {
|
|
4
|
+
interface App {
|
|
5
|
+
[INSTALLED_KEY]?: boolean;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const withInstall: <T extends Record<string, any>, E extends Record<string, any>>(main: T, extra?: E) => T;
|
|
9
|
+
export declare function withMultiInstall<T extends Record<string, any>>(compEntries: T): T;
|
|
10
|
+
export declare function createGlobalInstaller(comps?: {
|
|
11
|
+
install: (app: App) => void;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}[]): {
|
|
14
|
+
install: (app: App) => void;
|
|
15
|
+
version: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function toLowerCase(input: string): string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { version as s } from "../../package.json.mjs";
|
|
2
|
+
const l = Symbol("INSTALLED_KEY"), a = (t, n) => {
|
|
3
|
+
if (t.install = (e) => {
|
|
4
|
+
e.component(t.name, t);
|
|
5
|
+
}, n)
|
|
6
|
+
for (const [e, o] of Object.entries(n))
|
|
7
|
+
t[e] = o, o.install = (r) => {
|
|
8
|
+
r.component(o.name, o);
|
|
9
|
+
};
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
function u(t) {
|
|
13
|
+
return Object.values(t).forEach((n) => {
|
|
14
|
+
n.install = (e) => {
|
|
15
|
+
e.component(n.name, n);
|
|
16
|
+
};
|
|
17
|
+
}), t;
|
|
18
|
+
}
|
|
19
|
+
function i(t = []) {
|
|
20
|
+
return {
|
|
21
|
+
install: (e) => {
|
|
22
|
+
e[l] || (e[l] = !0, t.forEach((o) => e.use(o)));
|
|
23
|
+
},
|
|
24
|
+
version: s
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function f(t) {
|
|
28
|
+
return t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().replace(/\s+/g, "-");
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
l as INSTALLED_KEY,
|
|
32
|
+
i as createGlobalInstaller,
|
|
33
|
+
f as toLowerCase,
|
|
34
|
+
a as withInstall,
|
|
35
|
+
u as withMultiInstall
|
|
36
|
+
};
|
package/global.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rappel-ui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "a vue3 ui library",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "owen",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"packageManager": "pnpm@10.19.0",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./es/index.d.ts",
|
|
19
|
+
"import": "./es/index.js",
|
|
20
|
+
"require": "./cjs/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./global": {
|
|
23
|
+
"types": "./es/global.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./es": {
|
|
26
|
+
"types": "./es/index.d.ts",
|
|
27
|
+
"import": "./es/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"./cjs": {
|
|
30
|
+
"types": "./cjs/index.d.ts",
|
|
31
|
+
"require": "./cjs/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./es/*.mjs": {
|
|
34
|
+
"types": "./es/*.d.ts",
|
|
35
|
+
"import": "./es/*.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./es/*": {
|
|
38
|
+
"types": [
|
|
39
|
+
"./es/*.d.ts",
|
|
40
|
+
"./es/*/index.d.ts"
|
|
41
|
+
],
|
|
42
|
+
"import": "./es/*.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./cjs/*.js": {
|
|
45
|
+
"types": "./cjs/*.d.ts",
|
|
46
|
+
"require": "./cjs/*.js"
|
|
47
|
+
},
|
|
48
|
+
"./cjs/*": {
|
|
49
|
+
"types": [
|
|
50
|
+
"./cjs/*.d.ts",
|
|
51
|
+
"./cjs/*/index.d.ts"
|
|
52
|
+
],
|
|
53
|
+
"require": "./cjs/*.js"
|
|
54
|
+
},
|
|
55
|
+
"./*": "./*"
|
|
56
|
+
},
|
|
57
|
+
"main": "./cjs/index.js",
|
|
58
|
+
"module": "./es/index.js",
|
|
59
|
+
"types": "./es/index.d.ts",
|
|
60
|
+
"style": "./umd/index.css",
|
|
61
|
+
"sideEffects": [
|
|
62
|
+
"./es/components/**/*.css",
|
|
63
|
+
"./cjs/components/**/*.css"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* 将十六进制颜色转换为RGB颜色
|
|
4
|
+
* @param $hex 十六进制颜色值
|
|
5
|
+
* @returns RGB颜色值
|
|
6
|
+
* color.channel($color, "red", $space: rgb)
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 将RGB颜色转换为十六进制颜色
|
|
10
|
+
* @param $value RGB颜色值
|
|
11
|
+
* @returns 十六进制颜色值
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* 将RGB颜色转换为十六进制颜色
|
|
15
|
+
* @param $color RGB颜色值
|
|
16
|
+
* @returns 十六进制颜色值
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
|
|
20
|
+
* @param $color 颜色
|
|
21
|
+
* @param $opacity 透明度,默认值为1
|
|
22
|
+
* @returns 一个等效的透明度颜色
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* 创建一个变暗的颜色,并返回一个变暗的颜色
|
|
26
|
+
* @param $color 颜色
|
|
27
|
+
* @param $factor 颜色变暗的度量,默认为0.15
|
|
28
|
+
* @returns 一个变暗的颜色
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* 创建层级颜色
|
|
32
|
+
* @param $base-color 基础颜色
|
|
33
|
+
* @param $darkness 变暗的度量,默认为0.15
|
|
34
|
+
* @returns 主题色映射
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* 生成不同(0.9-0.1)透明度对应的等值颜色:
|
|
38
|
+
primary: (
|
|
39
|
+
base: #937bff,
|
|
40
|
+
hover: #7e69dc,
|
|
41
|
+
shade-9: #9e88ff,
|
|
42
|
+
shade-8: #a995ff,
|
|
43
|
+
shade-7: #b3a3ff,
|
|
44
|
+
shade-6: #beb0ff,
|
|
45
|
+
shade-5: #c9bdff,
|
|
46
|
+
shade-4: #d4caff,
|
|
47
|
+
shade-3: #ded7ff,
|
|
48
|
+
shade-2: #e9e5ff,
|
|
49
|
+
shade-1: #f4f2ff
|
|
50
|
+
),
|
|
51
|
+
*/
|
|
52
|
+
:root {
|
|
53
|
+
--pu-color-primary: #937bff;
|
|
54
|
+
--pu-color-text-darkest: #000000;
|
|
55
|
+
--pu-color-text-base: #303131;
|
|
56
|
+
--pu-color-text-secondary: #606062;
|
|
57
|
+
--pu-color-text-neutral: #909093;
|
|
58
|
+
--pu-color-text-placeholder: #b2b2b6;
|
|
59
|
+
--pu-color-text-disabled: #cdcdd1;
|
|
60
|
+
--pu-color-text-lightest: #ffffff;
|
|
61
|
+
--pu-color-border-darker: #c3c3cb;
|
|
62
|
+
--pu-color-border-dark: #d0d0d8;
|
|
63
|
+
--pu-color-border-base: #dbdbe0;
|
|
64
|
+
--pu-color-border-light: #e4e4e8;
|
|
65
|
+
--pu-color-border-lighter: #ededef;
|
|
66
|
+
--pu-color-border-extra-light: #efeff3;
|
|
67
|
+
--pu-color-border-theme: #d4caff;
|
|
68
|
+
--pu-color-fill-darker: #d7d7dc;
|
|
69
|
+
--pu-color-fill-dark: #e8e8ec;
|
|
70
|
+
--pu-color-fill-base: #ededf0;
|
|
71
|
+
--pu-color-fill-light: #f1f1f4;
|
|
72
|
+
--pu-color-fill-lighter: #f6f6f7;
|
|
73
|
+
--pu-color-fill-extra-light: #f8f8f9;
|
|
74
|
+
--pu-color-fill-theme: #f7f7fb;
|
|
75
|
+
--pu-color-fill-blank: #ffffff;
|
|
76
|
+
--pu-color-fill-transparent: transparent;
|
|
77
|
+
--pu-color-primary-base: #937bff;
|
|
78
|
+
--pu-color-primary-hover: #7d69d9;
|
|
79
|
+
--pu-color-primary-shade-9: #9e88ff;
|
|
80
|
+
--pu-color-primary-shade-8: #a995ff;
|
|
81
|
+
--pu-color-primary-shade-7: #b3a3ff;
|
|
82
|
+
--pu-color-primary-shade-6: #beb0ff;
|
|
83
|
+
--pu-color-primary-shade-5: #c9bdff;
|
|
84
|
+
--pu-color-primary-shade-4: #d4caff;
|
|
85
|
+
--pu-color-primary-shade-3: #dfd7ff;
|
|
86
|
+
--pu-color-primary-shade-2: #e9e5ff;
|
|
87
|
+
--pu-color-primary-shade-1: #f4f2ff;
|
|
88
|
+
--pu-color-success-base: #06b56d;
|
|
89
|
+
--pu-color-success-hover: #059a5d;
|
|
90
|
+
--pu-color-success-shade-9: #1fbc7c;
|
|
91
|
+
--pu-color-success-shade-8: #38c48a;
|
|
92
|
+
--pu-color-success-shade-7: #51cb99;
|
|
93
|
+
--pu-color-success-shade-6: #6ad3a7;
|
|
94
|
+
--pu-color-success-shade-5: #83dab6;
|
|
95
|
+
--pu-color-success-shade-4: #9be1c5;
|
|
96
|
+
--pu-color-success-shade-3: #b4e9d3;
|
|
97
|
+
--pu-color-success-shade-2: #cdf0e2;
|
|
98
|
+
--pu-color-success-shade-1: #e6f8f0;
|
|
99
|
+
--pu-color-danger-base: #ee6979;
|
|
100
|
+
--pu-color-danger-hover: #ca5967;
|
|
101
|
+
--pu-color-danger-shade-9: #f07886;
|
|
102
|
+
--pu-color-danger-shade-8: #f18794;
|
|
103
|
+
--pu-color-danger-shade-7: #f396a1;
|
|
104
|
+
--pu-color-danger-shade-6: #f5a5af;
|
|
105
|
+
--pu-color-danger-shade-5: #f7b4bc;
|
|
106
|
+
--pu-color-danger-shade-4: #f8c3c9;
|
|
107
|
+
--pu-color-danger-shade-3: #fad2d7;
|
|
108
|
+
--pu-color-danger-shade-2: #fce1e4;
|
|
109
|
+
--pu-color-danger-shade-1: #fdf0f2;
|
|
110
|
+
--pu-color-warning-base: #cd9a0a;
|
|
111
|
+
--pu-color-warning-hover: #ae8309;
|
|
112
|
+
--pu-color-warning-shade-9: #d2a422;
|
|
113
|
+
--pu-color-warning-shade-8: #d7ae3b;
|
|
114
|
+
--pu-color-warning-shade-7: #dcb853;
|
|
115
|
+
--pu-color-warning-shade-6: #e1c26c;
|
|
116
|
+
--pu-color-warning-shade-5: #e6cd85;
|
|
117
|
+
--pu-color-warning-shade-4: #ebd79d;
|
|
118
|
+
--pu-color-warning-shade-3: #f0e1b6;
|
|
119
|
+
--pu-color-warning-shade-2: #f5ebce;
|
|
120
|
+
--pu-color-warning-shade-1: #faf5e7;
|
|
121
|
+
--pu-color-info-base: #8e8e91;
|
|
122
|
+
--pu-color-info-hover: #79797b;
|
|
123
|
+
--pu-color-info-shade-9: #99999c;
|
|
124
|
+
--pu-color-info-shade-8: #a5a5a7;
|
|
125
|
+
--pu-color-info-shade-7: #b0b0b2;
|
|
126
|
+
--pu-color-info-shade-6: #bbbbbd;
|
|
127
|
+
--pu-color-info-shade-5: #c7c7c8;
|
|
128
|
+
--pu-color-info-shade-4: #d2d2d3;
|
|
129
|
+
--pu-color-info-shade-3: #ddddde;
|
|
130
|
+
--pu-color-info-shade-2: #e8e8e9;
|
|
131
|
+
--pu-color-info-shade-1: #f4f4f4;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
*,
|
|
135
|
+
*::before,
|
|
136
|
+
*::after {
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
font-weight: normal;
|
|
139
|
+
-webkit-tap-highlight-color: transparent;
|
|
140
|
+
-webkit-font-smoothing: antialiased;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
body {
|
|
144
|
+
margin: 0;
|
|
145
|
+
padding: 0;
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
font-family: -apple-system, BlinkMacSystemFont, Microsoft YaHei, 微软雅黑, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
148
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* 将十六进制颜色转换为RGB颜色
|
|
4
|
+
* @param $hex 十六进制颜色值
|
|
5
|
+
* @returns RGB颜色值
|
|
6
|
+
* color.channel($color, "red", $space: rgb)
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 将RGB颜色转换为十六进制颜色
|
|
10
|
+
* @param $value RGB颜色值
|
|
11
|
+
* @returns 十六进制颜色值
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* 将RGB颜色转换为十六进制颜色
|
|
15
|
+
* @param $color RGB颜色值
|
|
16
|
+
* @returns 十六进制颜色值
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
|
|
20
|
+
* @param $color 颜色
|
|
21
|
+
* @param $opacity 透明度,默认值为1
|
|
22
|
+
* @returns 一个等效的透明度颜色
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* 创建一个变暗的颜色,并返回一个变暗的颜色
|
|
26
|
+
* @param $color 颜色
|
|
27
|
+
* @param $factor 颜色变暗的度量,默认为0.15
|
|
28
|
+
* @returns 一个变暗的颜色
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* 创建层级颜色
|
|
32
|
+
* @param $base-color 基础颜色
|
|
33
|
+
* @param $darkness 变暗的度量,默认为0.15
|
|
34
|
+
* @returns 主题色映射
|
|
35
|
+
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* 将十六进制颜色转换为RGB颜色
|
|
4
|
+
* @param $hex 十六进制颜色值
|
|
5
|
+
* @returns RGB颜色值
|
|
6
|
+
* color.channel($color, "red", $space: rgb)
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 将RGB颜色转换为十六进制颜色
|
|
10
|
+
* @param $value RGB颜色值
|
|
11
|
+
* @returns 十六进制颜色值
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* 将RGB颜色转换为十六进制颜色
|
|
15
|
+
* @param $color RGB颜色值
|
|
16
|
+
* @returns 十六进制颜色值
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
|
|
20
|
+
* @param $color 颜色
|
|
21
|
+
* @param $opacity 透明度,默认值为1
|
|
22
|
+
* @returns 一个等效的透明度颜色
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* 创建一个变暗的颜色,并返回一个变暗的颜色
|
|
26
|
+
* @param $color 颜色
|
|
27
|
+
* @param $factor 颜色变暗的度量,默认为0.15
|
|
28
|
+
* @returns 一个变暗的颜色
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* 创建层级颜色
|
|
32
|
+
* @param $base-color 基础颜色
|
|
33
|
+
* @param $darkness 变暗的度量,默认为0.15
|
|
34
|
+
* @returns 主题色映射
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* 生成不同(0.9-0.1)透明度对应的等值颜色:
|
|
38
|
+
primary: (
|
|
39
|
+
base: #937bff,
|
|
40
|
+
hover: #7e69dc,
|
|
41
|
+
shade-9: #9e88ff,
|
|
42
|
+
shade-8: #a995ff,
|
|
43
|
+
shade-7: #b3a3ff,
|
|
44
|
+
shade-6: #beb0ff,
|
|
45
|
+
shade-5: #c9bdff,
|
|
46
|
+
shade-4: #d4caff,
|
|
47
|
+
shade-3: #ded7ff,
|
|
48
|
+
shade-2: #e9e5ff,
|
|
49
|
+
shade-1: #f4f2ff
|
|
50
|
+
),
|
|
51
|
+
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* 将十六进制颜色转换为RGB颜色
|
|
4
|
+
* @param $hex 十六进制颜色值
|
|
5
|
+
* @returns RGB颜色值
|
|
6
|
+
* color.channel($color, "red", $space: rgb)
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 将RGB颜色转换为十六进制颜色
|
|
10
|
+
* @param $value RGB颜色值
|
|
11
|
+
* @returns 十六进制颜色值
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* 将RGB颜色转换为十六进制颜色
|
|
15
|
+
* @param $color RGB颜色值
|
|
16
|
+
* @returns 十六进制颜色值
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
|
|
20
|
+
* @param $color 颜色
|
|
21
|
+
* @param $opacity 透明度,默认值为1
|
|
22
|
+
* @returns 一个等效的透明度颜色
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* 创建一个变暗的颜色,并返回一个变暗的颜色
|
|
26
|
+
* @param $color 颜色
|
|
27
|
+
* @param $factor 颜色变暗的度量,默认为0.15
|
|
28
|
+
* @returns 一个变暗的颜色
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* 创建层级颜色
|
|
32
|
+
* @param $base-color 基础颜色
|
|
33
|
+
* @param $darkness 变暗的度量,默认为0.15
|
|
34
|
+
* @returns 主题色映射
|
|
35
|
+
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* 将十六进制颜色转换为RGB颜色
|
|
4
|
+
* @param $hex 十六进制颜色值
|
|
5
|
+
* @returns RGB颜色值
|
|
6
|
+
* color.channel($color, "red", $space: rgb)
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 将RGB颜色转换为十六进制颜色
|
|
10
|
+
* @param $value RGB颜色值
|
|
11
|
+
* @returns 十六进制颜色值
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* 将RGB颜色转换为十六进制颜色
|
|
15
|
+
* @param $color RGB颜色值
|
|
16
|
+
* @returns 十六进制颜色值
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
|
|
20
|
+
* @param $color 颜色
|
|
21
|
+
* @param $opacity 透明度,默认值为1
|
|
22
|
+
* @returns 一个等效的透明度颜色
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* 创建一个变暗的颜色,并返回一个变暗的颜色
|
|
26
|
+
* @param $color 颜色
|
|
27
|
+
* @param $factor 颜色变暗的度量,默认为0.15
|
|
28
|
+
* @returns 一个变暗的颜色
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* 创建层级颜色
|
|
32
|
+
* @param $base-color 基础颜色
|
|
33
|
+
* @param $darkness 变暗的度量,默认为0.15
|
|
34
|
+
* @returns 主题色映射
|
|
35
|
+
*/
|