sun-card-design 1.1.3 → 1.1.11
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/mobile/sun-card-design-mobile.es32.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es33.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es34.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es35.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es36.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es37.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es38.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es49.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es68.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es70.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es72.js +4 -4
- package/dist/mobile/sun-card-design-mobile.es73.js +12 -31
- package/dist/mobile/sun-card-design-mobile.es74.js +173 -2
- package/dist/mobile/sun-card-design-mobile.es75.js +35 -139
- package/dist/mobile/sun-card-design-mobile.es76.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es77.js +146 -2
- package/dist/mobile/sun-card-design-mobile.es78.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es79.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es80.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es81.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es82.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es83.js +2 -2
- package/dist/mobile/sun-card-design-mobile.es84.js +2 -175
- package/dist/mobile/sun-card-design-mobile.es85.js +2 -10
- package/dist/mobile/sun-card-design-mobile.es86.js +133 -94
- package/dist/mobile/sun-card-design-mobile.es87.js +110 -12
- package/dist/mobile/sun-card-design-mobile.es88.js +150 -145
- package/dist/mobile/sun-card-design-mobile.es89.js +36 -99
- package/dist/pc/sun-card-design-pc.es32.js +2 -2
- package/dist/pc/sun-card-design-pc.es33.js +2 -2
- package/dist/pc/sun-card-design-pc.es34.js +2 -2
- package/dist/pc/sun-card-design-pc.es35.js +2 -2
- package/dist/pc/sun-card-design-pc.es36.js +2 -2
- package/dist/pc/sun-card-design-pc.es37.js +2 -2
- package/dist/pc/sun-card-design-pc.es38.js +2 -2
- package/dist/pc/sun-card-design-pc.es68.js +2 -2
- package/dist/pc/sun-card-design-pc.es70.js +2 -2
- package/dist/pc/sun-card-design-pc.es72.js +4 -4
- package/dist/pc/sun-card-design-pc.es73.js +12 -31
- package/dist/pc/sun-card-design-pc.es74.js +2 -175
- package/dist/pc/sun-card-design-pc.es75.js +145 -9
- package/dist/pc/sun-card-design-pc.es76.js +2 -107
- package/dist/pc/sun-card-design-pc.es77.js +2 -2
- package/dist/pc/sun-card-design-pc.es78.js +2 -146
- package/dist/pc/sun-card-design-pc.es79.js +2 -2
- package/dist/pc/sun-card-design-pc.es80.js +2 -2
- package/dist/pc/sun-card-design-pc.es81.js +2 -2
- package/dist/pc/sun-card-design-pc.es82.js +2 -2
- package/dist/pc/sun-card-design-pc.es83.js +2 -2
- package/dist/pc/sun-card-design-pc.es84.js +173 -2
- package/dist/pc/sun-card-design-pc.es85.js +42 -2
- package/dist/pc/sun-card-design-pc.es86.js +146 -2
- package/dist/pc/sun-card-design-pc.es87.js +110 -12
- package/dist/pc/sun-card-design-pc.es88.js +150 -145
- package/dist/pc/sun-card-design-pc.es89.js +36 -99
- package/package.json +4 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import EditOutlined$1 from "./sun-card-design-mobile.
|
|
3
|
-
import Icon from "./sun-card-design-mobile.
|
|
2
|
+
import EditOutlined$1 from "./sun-card-design-mobile.es83.js";
|
|
3
|
+
import Icon from "./sun-card-design-mobile.es77.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import DeleteOutlined$1 from "./sun-card-design-mobile.
|
|
3
|
-
import Icon from "./sun-card-design-mobile.
|
|
2
|
+
import DeleteOutlined$1 from "./sun-card-design-mobile.es81.js";
|
|
3
|
+
import Icon from "./sun-card-design-mobile.es77.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import CloseOutlined$1 from "./sun-card-design-mobile.
|
|
3
|
-
import Icon from "./sun-card-design-mobile.
|
|
2
|
+
import CloseOutlined$1 from "./sun-card-design-mobile.es80.js";
|
|
3
|
+
import Icon from "./sun-card-design-mobile.es77.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import CheckOutlined$1 from "./sun-card-design-mobile.
|
|
3
|
-
import Icon from "./sun-card-design-mobile.
|
|
2
|
+
import CheckOutlined$1 from "./sun-card-design-mobile.es76.js";
|
|
3
|
+
import Icon from "./sun-card-design-mobile.es77.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import ClearOutlined$1 from "./sun-card-design-mobile.
|
|
3
|
-
import Icon from "./sun-card-design-mobile.
|
|
2
|
+
import ClearOutlined$1 from "./sun-card-design-mobile.es78.js";
|
|
3
|
+
import Icon from "./sun-card-design-mobile.es77.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import DownloadOutlined$1 from "./sun-card-design-mobile.
|
|
3
|
-
import Icon from "./sun-card-design-mobile.
|
|
2
|
+
import DownloadOutlined$1 from "./sun-card-design-mobile.es82.js";
|
|
3
|
+
import Icon from "./sun-card-design-mobile.es77.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import SearchOutlined$1 from "./sun-card-design-mobile.
|
|
3
|
-
import Icon from "./sun-card-design-mobile.
|
|
2
|
+
import SearchOutlined$1 from "./sun-card-design-mobile.es84.js";
|
|
3
|
+
import Icon from "./sun-card-design-mobile.es77.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -4,7 +4,7 @@ import { OrbitControls } from "./sun-card-design-mobile.es58.js";
|
|
|
4
4
|
import TWEEN from "@tweenjs/tween.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _export_sfc from "./sun-card-design-mobile.es28.js";
|
|
7
|
-
import CloseCircleFilled from "./sun-card-design-mobile.
|
|
7
|
+
import CloseCircleFilled from "./sun-card-design-mobile.es68.js";
|
|
8
8
|
const _hoisted_1 = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "canvas"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import CloseCircleFilled$1 from "./sun-card-design-mobile.
|
|
3
|
-
import Icon from "./sun-card-design-mobile.
|
|
2
|
+
import CloseCircleFilled$1 from "./sun-card-design-mobile.es79.js";
|
|
3
|
+
import Icon from "./sun-card-design-mobile.es77.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import UploadOutlined$1 from "./sun-card-design-mobile.
|
|
3
|
-
import Icon from "./sun-card-design-mobile.
|
|
2
|
+
import UploadOutlined$1 from "./sun-card-design-mobile.es85.js";
|
|
3
|
+
import Icon from "./sun-card-design-mobile.es77.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { getSecondaryColor, warning, isIconDefinition, generate } from "./sun-card-design-mobile.es73.js";
|
|
2
|
-
import { reactive } from "vue";
|
|
1
|
+
import { getSecondaryColor, useInsertStyles, warning, isIconDefinition, generate } from "./sun-card-design-mobile.es73.js";
|
|
3
2
|
var _excluded = ["icon", "primaryColor", "secondaryColor"];
|
|
4
3
|
function _objectWithoutProperties(source, excluded) {
|
|
5
4
|
if (source == null) return {};
|
|
@@ -51,11 +50,11 @@ function _defineProperty(obj, key, value) {
|
|
|
51
50
|
}
|
|
52
51
|
return obj;
|
|
53
52
|
}
|
|
54
|
-
var twoToneColorPalette =
|
|
53
|
+
var twoToneColorPalette = {
|
|
55
54
|
primaryColor: "#333",
|
|
56
55
|
secondaryColor: "#E6E6E6",
|
|
57
56
|
calculated: false
|
|
58
|
-
}
|
|
57
|
+
};
|
|
59
58
|
function setTwoToneColors(_ref) {
|
|
60
59
|
var primaryColor = _ref.primaryColor, secondaryColor = _ref.secondaryColor;
|
|
61
60
|
twoToneColorPalette.primaryColor = primaryColor;
|
|
@@ -74,6 +73,7 @@ var IconBase = function IconBase2(props, context) {
|
|
|
74
73
|
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
|
75
74
|
};
|
|
76
75
|
}
|
|
76
|
+
useInsertStyles();
|
|
77
77
|
warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
|
|
78
78
|
if (!isIconDefinition(icon)) {
|
|
79
79
|
return null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { generate as generate$1 } from "./sun-card-design-mobile.
|
|
3
|
-
import
|
|
4
|
-
import { canUseDom, updateCSS } from "./sun-card-design-mobile.es86.js";
|
|
1
|
+
import { nextTick, h } from "vue";
|
|
2
|
+
import { generate as generate$1 } from "./sun-card-design-mobile.es74.js";
|
|
3
|
+
import insertCss from "./sun-card-design-mobile.es75.js";
|
|
5
4
|
function _objectSpread(target) {
|
|
6
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
7
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -60,36 +59,18 @@ function normalizeTwoToneColors(twoToneColor) {
|
|
|
60
59
|
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
|
61
60
|
}
|
|
62
61
|
var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
|
|
63
|
-
|
|
64
|
-
return ele && ele.getRootNode && ele.getRootNode();
|
|
65
|
-
}
|
|
66
|
-
function inShadow(ele) {
|
|
67
|
-
if (!canUseDom()) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
return getRoot(ele) instanceof ShadowRoot;
|
|
71
|
-
}
|
|
72
|
-
function getShadowRoot(ele) {
|
|
73
|
-
return inShadow(ele) ? getRoot(ele) : null;
|
|
74
|
-
}
|
|
62
|
+
var cssInjectedFlag = false;
|
|
75
63
|
var useInsertStyles = function useInsertStyles2() {
|
|
76
|
-
var
|
|
77
|
-
var instance = getCurrentInstance();
|
|
78
|
-
var mergedStyleStr = iconStyles;
|
|
79
|
-
if (prefixCls) {
|
|
80
|
-
mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls.value);
|
|
81
|
-
}
|
|
64
|
+
var styleStr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iconStyles;
|
|
82
65
|
nextTick(function() {
|
|
83
|
-
if (!
|
|
84
|
-
|
|
66
|
+
if (!cssInjectedFlag) {
|
|
67
|
+
if (typeof window !== "undefined" && window.document && window.document.documentElement) {
|
|
68
|
+
insertCss(styleStr, {
|
|
69
|
+
prepend: true
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
cssInjectedFlag = true;
|
|
85
73
|
}
|
|
86
|
-
var ele = instance.vnode.el;
|
|
87
|
-
var shadowRoot = getShadowRoot(ele);
|
|
88
|
-
updateCSS(mergedStyleStr, "@ant-design-vue-icons", {
|
|
89
|
-
prepend: true,
|
|
90
|
-
csp: csp.value,
|
|
91
|
-
attachTo: shadowRoot
|
|
92
|
-
});
|
|
93
74
|
});
|
|
94
75
|
};
|
|
95
76
|
export {
|
|
@@ -1,4 +1,175 @@
|
|
|
1
|
-
|
|
1
|
+
import { inputToRGB } from "./sun-card-design-mobile.es86.js";
|
|
2
|
+
import { rgbToHsv, rgbToHex } from "./sun-card-design-mobile.es87.js";
|
|
3
|
+
var hueStep = 2;
|
|
4
|
+
var saturationStep = 0.16;
|
|
5
|
+
var saturationStep2 = 0.05;
|
|
6
|
+
var brightnessStep1 = 0.05;
|
|
7
|
+
var brightnessStep2 = 0.15;
|
|
8
|
+
var lightColorCount = 5;
|
|
9
|
+
var darkColorCount = 4;
|
|
10
|
+
var darkColorMap = [{
|
|
11
|
+
index: 7,
|
|
12
|
+
opacity: 0.15
|
|
13
|
+
}, {
|
|
14
|
+
index: 6,
|
|
15
|
+
opacity: 0.25
|
|
16
|
+
}, {
|
|
17
|
+
index: 5,
|
|
18
|
+
opacity: 0.3
|
|
19
|
+
}, {
|
|
20
|
+
index: 5,
|
|
21
|
+
opacity: 0.45
|
|
22
|
+
}, {
|
|
23
|
+
index: 5,
|
|
24
|
+
opacity: 0.65
|
|
25
|
+
}, {
|
|
26
|
+
index: 5,
|
|
27
|
+
opacity: 0.85
|
|
28
|
+
}, {
|
|
29
|
+
index: 4,
|
|
30
|
+
opacity: 0.9
|
|
31
|
+
}, {
|
|
32
|
+
index: 3,
|
|
33
|
+
opacity: 0.95
|
|
34
|
+
}, {
|
|
35
|
+
index: 2,
|
|
36
|
+
opacity: 0.97
|
|
37
|
+
}, {
|
|
38
|
+
index: 1,
|
|
39
|
+
opacity: 0.98
|
|
40
|
+
}];
|
|
41
|
+
function toHsv(_ref) {
|
|
42
|
+
var r = _ref.r, g = _ref.g, b = _ref.b;
|
|
43
|
+
var hsv = rgbToHsv(r, g, b);
|
|
44
|
+
return {
|
|
45
|
+
h: hsv.h * 360,
|
|
46
|
+
s: hsv.s,
|
|
47
|
+
v: hsv.v
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function toHex(_ref2) {
|
|
51
|
+
var r = _ref2.r, g = _ref2.g, b = _ref2.b;
|
|
52
|
+
return "#".concat(rgbToHex(r, g, b));
|
|
53
|
+
}
|
|
54
|
+
function mix(rgb1, rgb2, amount) {
|
|
55
|
+
var p = amount / 100;
|
|
56
|
+
var rgb = {
|
|
57
|
+
r: (rgb2.r - rgb1.r) * p + rgb1.r,
|
|
58
|
+
g: (rgb2.g - rgb1.g) * p + rgb1.g,
|
|
59
|
+
b: (rgb2.b - rgb1.b) * p + rgb1.b
|
|
60
|
+
};
|
|
61
|
+
return rgb;
|
|
62
|
+
}
|
|
63
|
+
function getHue(hsv, i, light) {
|
|
64
|
+
var hue;
|
|
65
|
+
if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
|
|
66
|
+
hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
|
|
67
|
+
} else {
|
|
68
|
+
hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
|
|
69
|
+
}
|
|
70
|
+
if (hue < 0) {
|
|
71
|
+
hue += 360;
|
|
72
|
+
} else if (hue >= 360) {
|
|
73
|
+
hue -= 360;
|
|
74
|
+
}
|
|
75
|
+
return hue;
|
|
76
|
+
}
|
|
77
|
+
function getSaturation(hsv, i, light) {
|
|
78
|
+
if (hsv.h === 0 && hsv.s === 0) {
|
|
79
|
+
return hsv.s;
|
|
80
|
+
}
|
|
81
|
+
var saturation;
|
|
82
|
+
if (light) {
|
|
83
|
+
saturation = hsv.s - saturationStep * i;
|
|
84
|
+
} else if (i === darkColorCount) {
|
|
85
|
+
saturation = hsv.s + saturationStep;
|
|
86
|
+
} else {
|
|
87
|
+
saturation = hsv.s + saturationStep2 * i;
|
|
88
|
+
}
|
|
89
|
+
if (saturation > 1) {
|
|
90
|
+
saturation = 1;
|
|
91
|
+
}
|
|
92
|
+
if (light && i === lightColorCount && saturation > 0.1) {
|
|
93
|
+
saturation = 0.1;
|
|
94
|
+
}
|
|
95
|
+
if (saturation < 0.06) {
|
|
96
|
+
saturation = 0.06;
|
|
97
|
+
}
|
|
98
|
+
return Number(saturation.toFixed(2));
|
|
99
|
+
}
|
|
100
|
+
function getValue(hsv, i, light) {
|
|
101
|
+
var value;
|
|
102
|
+
if (light) {
|
|
103
|
+
value = hsv.v + brightnessStep1 * i;
|
|
104
|
+
} else {
|
|
105
|
+
value = hsv.v - brightnessStep2 * i;
|
|
106
|
+
}
|
|
107
|
+
if (value > 1) {
|
|
108
|
+
value = 1;
|
|
109
|
+
}
|
|
110
|
+
return Number(value.toFixed(2));
|
|
111
|
+
}
|
|
112
|
+
function generate(color) {
|
|
113
|
+
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
114
|
+
var patterns = [];
|
|
115
|
+
var pColor = inputToRGB(color);
|
|
116
|
+
for (var i = lightColorCount; i > 0; i -= 1) {
|
|
117
|
+
var hsv = toHsv(pColor);
|
|
118
|
+
var colorString = toHex(inputToRGB({
|
|
119
|
+
h: getHue(hsv, i, true),
|
|
120
|
+
s: getSaturation(hsv, i, true),
|
|
121
|
+
v: getValue(hsv, i, true)
|
|
122
|
+
}));
|
|
123
|
+
patterns.push(colorString);
|
|
124
|
+
}
|
|
125
|
+
patterns.push(toHex(pColor));
|
|
126
|
+
for (var _i = 1; _i <= darkColorCount; _i += 1) {
|
|
127
|
+
var _hsv = toHsv(pColor);
|
|
128
|
+
var _colorString = toHex(inputToRGB({
|
|
129
|
+
h: getHue(_hsv, _i),
|
|
130
|
+
s: getSaturation(_hsv, _i),
|
|
131
|
+
v: getValue(_hsv, _i)
|
|
132
|
+
}));
|
|
133
|
+
patterns.push(_colorString);
|
|
134
|
+
}
|
|
135
|
+
if (opts.theme === "dark") {
|
|
136
|
+
return darkColorMap.map(function(_ref3) {
|
|
137
|
+
var index = _ref3.index, opacity = _ref3.opacity;
|
|
138
|
+
var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || "#141414"), inputToRGB(patterns[index]), opacity * 100));
|
|
139
|
+
return darkColorString;
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
return patterns;
|
|
143
|
+
}
|
|
144
|
+
var presetPrimaryColors = {
|
|
145
|
+
red: "#F5222D",
|
|
146
|
+
volcano: "#FA541C",
|
|
147
|
+
orange: "#FA8C16",
|
|
148
|
+
gold: "#FAAD14",
|
|
149
|
+
yellow: "#FADB14",
|
|
150
|
+
lime: "#A0D911",
|
|
151
|
+
green: "#52C41A",
|
|
152
|
+
cyan: "#13C2C2",
|
|
153
|
+
blue: "#1890FF",
|
|
154
|
+
geekblue: "#2F54EB",
|
|
155
|
+
purple: "#722ED1",
|
|
156
|
+
magenta: "#EB2F96",
|
|
157
|
+
grey: "#666666"
|
|
158
|
+
};
|
|
159
|
+
var presetPalettes = {};
|
|
160
|
+
var presetDarkPalettes = {};
|
|
161
|
+
Object.keys(presetPrimaryColors).forEach(function(key) {
|
|
162
|
+
presetPalettes[key] = generate(presetPrimaryColors[key]);
|
|
163
|
+
presetPalettes[key].primary = presetPalettes[key][5];
|
|
164
|
+
presetDarkPalettes[key] = generate(presetPrimaryColors[key], {
|
|
165
|
+
theme: "dark",
|
|
166
|
+
backgroundColor: "#141414"
|
|
167
|
+
});
|
|
168
|
+
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
169
|
+
});
|
|
2
170
|
export {
|
|
3
|
-
|
|
171
|
+
generate,
|
|
172
|
+
presetDarkPalettes,
|
|
173
|
+
presetPalettes,
|
|
174
|
+
presetPrimaryColors
|
|
4
175
|
};
|
|
@@ -1,148 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14
|
-
}
|
|
15
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
16
|
-
if (!o) return;
|
|
17
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
18
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
19
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
20
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
21
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
22
|
-
}
|
|
23
|
-
function _arrayLikeToArray(arr, len) {
|
|
24
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
25
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
26
|
-
arr2[i] = arr[i];
|
|
27
|
-
}
|
|
28
|
-
return arr2;
|
|
29
|
-
}
|
|
30
|
-
function _iterableToArrayLimit(arr, i) {
|
|
31
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
32
|
-
if (_i == null) return;
|
|
33
|
-
var _arr = [];
|
|
34
|
-
var _n = true;
|
|
35
|
-
var _d = false;
|
|
36
|
-
var _s, _e;
|
|
37
|
-
try {
|
|
38
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
39
|
-
_arr.push(_s.value);
|
|
40
|
-
if (i && _arr.length === i) break;
|
|
41
|
-
}
|
|
42
|
-
} catch (err) {
|
|
43
|
-
_d = true;
|
|
44
|
-
_e = err;
|
|
45
|
-
} finally {
|
|
46
|
-
try {
|
|
47
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
48
|
-
} finally {
|
|
49
|
-
if (_d) throw _e;
|
|
50
|
-
}
|
|
1
|
+
var containers = [];
|
|
2
|
+
var styleElements = [];
|
|
3
|
+
var usage = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
4
|
+
function createStyleElement() {
|
|
5
|
+
var styleElement = document.createElement("style");
|
|
6
|
+
styleElement.setAttribute("type", "text/css");
|
|
7
|
+
return styleElement;
|
|
8
|
+
}
|
|
9
|
+
function insertCss(css, options) {
|
|
10
|
+
options = options || {};
|
|
11
|
+
if (css === void 0) {
|
|
12
|
+
throw new Error(usage);
|
|
51
13
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
59
|
-
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
60
|
-
var ownKeys = Object.keys(source);
|
|
61
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
62
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
63
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
66
|
-
ownKeys.forEach(function(key) {
|
|
67
|
-
_defineProperty(target, key, source[key]);
|
|
68
|
-
});
|
|
14
|
+
var position = options.prepend === true ? "prepend" : "append";
|
|
15
|
+
var container = options.container !== void 0 ? options.container : document.querySelector("head");
|
|
16
|
+
var containerId = containers.indexOf(container);
|
|
17
|
+
if (containerId === -1) {
|
|
18
|
+
containerId = containers.push(container) - 1;
|
|
19
|
+
styleElements[containerId] = {};
|
|
69
20
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
if (key in obj) {
|
|
74
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
21
|
+
var styleElement;
|
|
22
|
+
if (styleElements[containerId] !== void 0 && styleElements[containerId][position] !== void 0) {
|
|
23
|
+
styleElement = styleElements[containerId][position];
|
|
75
24
|
} else {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (source == null) return {};
|
|
82
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
83
|
-
var key, i;
|
|
84
|
-
if (Object.getOwnPropertySymbols) {
|
|
85
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
86
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
87
|
-
key = sourceSymbolKeys[i];
|
|
88
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
89
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
90
|
-
target[key] = source[key];
|
|
25
|
+
styleElement = styleElements[containerId][position] = createStyleElement();
|
|
26
|
+
if (position === "prepend") {
|
|
27
|
+
container.insertBefore(styleElement, container.childNodes[0]);
|
|
28
|
+
} else {
|
|
29
|
+
container.appendChild(styleElement);
|
|
91
30
|
}
|
|
92
31
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
96
|
-
if (source == null) return {};
|
|
97
|
-
var target = {};
|
|
98
|
-
var sourceKeys = Object.keys(source);
|
|
99
|
-
var key, i;
|
|
100
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
101
|
-
key = sourceKeys[i];
|
|
102
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
103
|
-
target[key] = source[key];
|
|
32
|
+
if (css.charCodeAt(0) === 65279) {
|
|
33
|
+
css = css.substr(1, css.length);
|
|
104
34
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
var _classObj;
|
|
110
|
-
var _props$context$attrs = _objectSpread({}, props, context.attrs), cls = _props$context$attrs["class"], icon = _props$context$attrs.icon, spin = _props$context$attrs.spin, rotate = _props$context$attrs.rotate, tabindex = _props$context$attrs.tabindex, twoToneColor = _props$context$attrs.twoToneColor, onClick = _props$context$attrs.onClick, restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
|
|
111
|
-
var _useInjectIconContext = useInjectIconContext(), prefixCls = _useInjectIconContext.prefixCls, rootClassName = _useInjectIconContext.rootClassName;
|
|
112
|
-
var classObj = (_classObj = {}, _defineProperty(_classObj, rootClassName.value, !!rootClassName.value), _defineProperty(_classObj, prefixCls.value, true), _defineProperty(_classObj, "".concat(prefixCls.value, "-").concat(icon.name), Boolean(icon.name)), _defineProperty(_classObj, "".concat(prefixCls.value, "-spin"), !!spin || icon.name === "loading"), _classObj);
|
|
113
|
-
var iconTabIndex = tabindex;
|
|
114
|
-
if (iconTabIndex === void 0 && onClick) {
|
|
115
|
-
iconTabIndex = -1;
|
|
35
|
+
if (styleElement.styleSheet) {
|
|
36
|
+
styleElement.styleSheet.cssText += css;
|
|
37
|
+
} else {
|
|
38
|
+
styleElement.textContent += css;
|
|
116
39
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
transform: "rotate(".concat(rotate, "deg)")
|
|
120
|
-
} : void 0;
|
|
121
|
-
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
|
|
122
|
-
return createVNode("span", _objectSpread({
|
|
123
|
-
"role": "img",
|
|
124
|
-
"aria-label": icon.name
|
|
125
|
-
}, restProps, {
|
|
126
|
-
"onClick": onClick,
|
|
127
|
-
"class": [classObj, cls],
|
|
128
|
-
"tabindex": iconTabIndex
|
|
129
|
-
}), [createVNode(IconBase, {
|
|
130
|
-
"icon": icon,
|
|
131
|
-
"primaryColor": primaryColor,
|
|
132
|
-
"secondaryColor": secondaryColor,
|
|
133
|
-
"style": svgStyle
|
|
134
|
-
}, null), createVNode(InsertStyles, null, null)]);
|
|
135
|
-
};
|
|
136
|
-
Icon.props = {
|
|
137
|
-
spin: Boolean,
|
|
138
|
-
rotate: Number,
|
|
139
|
-
icon: Object,
|
|
140
|
-
twoToneColor: [String, Array]
|
|
141
|
-
};
|
|
142
|
-
Icon.displayName = "AntdIcon";
|
|
143
|
-
Icon.inheritAttrs = false;
|
|
144
|
-
Icon.getTwoToneColor = getTwoToneColor;
|
|
145
|
-
Icon.setTwoToneColor = setTwoToneColor;
|
|
40
|
+
return styleElement;
|
|
41
|
+
}
|
|
146
42
|
export {
|
|
147
|
-
|
|
43
|
+
insertCss as default
|
|
148
44
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
CheckOutlined as default
|
|
4
4
|
};
|