@lobehub/ui 1.161.0 → 1.162.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/es/Avatar/index.js +3 -2
- package/es/Highlighter/FullFeatured.d.ts +6 -3
- package/es/Highlighter/FullFeatured.js +6 -21
- package/es/Highlighter/SyntaxHighlighter/index.d.ts +1 -0
- package/es/Highlighter/SyntaxHighlighter/index.js +3 -5
- package/es/Highlighter/index.js +6 -2
- package/es/Highlighter/theme.js +7 -8
- package/es/Highlighter/type.d.ts +1 -0
- package/es/Markdown/CodeBlock.js +2 -2
- package/es/Mermaid/index.js +4 -3
- package/es/awesome/Giscus/index.js +4 -10
- package/es/awesome/Giscus/style.d.ts +1 -2
- package/es/awesome/Giscus/style.js +18 -14
- package/es/{ColorScales → color/ColorScales}/ScaleRow.js +1 -1
- package/es/{ColorScales → color/ColorScales}/index.d.ts +1 -1
- package/es/color/colors/blue.d.ts +3 -0
- package/es/color/colors/blue.js +7 -0
- package/es/color/colors/cyan.d.ts +3 -0
- package/es/color/colors/cyan.js +7 -0
- package/es/color/colors/geekblue.d.ts +3 -0
- package/es/color/colors/geekblue.js +7 -0
- package/es/color/colors/gold.d.ts +3 -0
- package/es/color/colors/gold.js +7 -0
- package/es/color/colors/gray.d.ts +3 -0
- package/es/color/colors/gray.js +7 -0
- package/es/color/colors/green.d.ts +3 -0
- package/es/color/colors/green.js +7 -0
- package/es/color/colors/index.d.ts +33 -0
- package/es/color/colors/index.js +45 -0
- package/es/color/colors/lime.d.ts +3 -0
- package/es/color/colors/lime.js +7 -0
- package/es/color/colors/magenta.d.ts +3 -0
- package/es/color/colors/magenta.js +7 -0
- package/es/color/colors/orange.d.ts +3 -0
- package/es/color/colors/orange.js +7 -0
- package/es/color/colors/primary.d.ts +3 -0
- package/es/color/colors/primary.js +7 -0
- package/es/color/colors/purple.d.ts +3 -0
- package/es/color/colors/purple.js +7 -0
- package/es/color/colors/red.d.ts +3 -0
- package/es/color/colors/red.js +7 -0
- package/es/color/colors/volcano.d.ts +3 -0
- package/es/color/colors/volcano.js +7 -0
- package/es/color/colors/yellow.d.ts +3 -0
- package/es/color/colors/yellow.js +7 -0
- package/es/color/index.d.ts +4 -0
- package/es/color/index.js +4 -0
- package/es/color/neutrals/index.d.ts +15 -0
- package/es/color/neutrals/index.js +18 -0
- package/es/color/neutrals/mauve.d.ts +3 -0
- package/es/color/neutrals/mauve.js +7 -0
- package/es/color/neutrals/olive.d.ts +3 -0
- package/es/color/neutrals/olive.js +7 -0
- package/es/color/neutrals/sage.d.ts +3 -0
- package/es/color/neutrals/sage.js +7 -0
- package/es/color/neutrals/sand.d.ts +3 -0
- package/es/color/neutrals/sand.js +7 -0
- package/es/color/neutrals/slate.d.ts +3 -0
- package/es/color/neutrals/slate.js +7 -0
- package/es/color/types.d.ts +22 -0
- package/es/color/types.js +1 -0
- package/es/components.d.ts +1 -1
- package/es/components.js +2 -2
- package/es/hooks/useChatListActionsBar.js +28 -25
- package/es/hooks/useHighlight.d.ts +1 -1
- package/es/hooks/useHighlight.js +27 -11
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/styles/customTheme.js +19 -19
- package/es/styles/index.d.ts +1 -4
- package/es/styles/index.js +2 -5
- package/es/styles/theme/algorithms/darkAlgorithm.js +3 -2
- package/es/styles/theme/algorithms/lightAlgorithm.js +3 -2
- package/es/styles/theme/antdTheme.d.ts +1 -1
- package/es/styles/theme/customToken.js +1 -1
- package/es/styles/{colors → theme}/generateColorPalette.d.ts +1 -1
- package/es/styles/theme/token/dark.js +8 -8
- package/es/styles/theme/token/light.js +8 -8
- package/package.json +1 -1
- package/es/styles/colors/colors.d.ts +0 -39
- package/es/styles/colors/colors.js +0 -86
- package/es/styles/colors/neutralColors.d.ts +0 -9
- package/es/styles/colors/neutralColors.js +0 -32
- /package/es/{ColorScales → color/ColorScales}/ScaleRow.d.ts +0 -0
- /package/es/{ColorScales → color/ColorScales}/index.js +0 -0
- /package/es/{ColorScales → color/ColorScales}/style.d.ts +0 -0
- /package/es/{ColorScales → color/ColorScales}/style.js +0 -0
- /package/es/styles/{colors → theme}/generateColorPalette.js +0 -0
package/es/Avatar/index.js
CHANGED
|
@@ -47,7 +47,7 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
47
47
|
cursor: 'default'
|
|
48
48
|
}, style)
|
|
49
49
|
}, rest);
|
|
50
|
-
|
|
50
|
+
if (isDefaultAntAvatar) return /*#__PURE__*/_jsx(AntAvatar, _objectSpread({
|
|
51
51
|
ref: ref,
|
|
52
52
|
src: typeof avatar === 'string' ? /*#__PURE__*/_jsx(Img, {
|
|
53
53
|
alt: avatarProps.alt || title,
|
|
@@ -56,7 +56,8 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
56
56
|
src: avatar,
|
|
57
57
|
width: size
|
|
58
58
|
}) : avatar
|
|
59
|
-
}, avatarProps))
|
|
59
|
+
}, avatarProps));
|
|
60
|
+
return /*#__PURE__*/_jsx(AntAvatar, _objectSpread(_objectSpread({
|
|
60
61
|
ref: ref
|
|
61
62
|
}, avatarProps), {}, {
|
|
62
63
|
children: emoji ? /*#__PURE__*/_jsx(FluentEmoji, {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { HighlighterProps } from './type';
|
|
3
|
-
|
|
3
|
+
interface HighlighterFullFeaturedProps extends Omit<HighlighterProps, 'children'> {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
content: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const HighlighterFullFeatured: import("react").NamedExoticComponent<HighlighterFullFeaturedProps>;
|
|
4
8
|
export default HighlighterFullFeatured;
|
|
5
|
-
export { default as SyntaxHighlighter, type SyntaxHighlighterProps } from './SyntaxHighlighter';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["children", "language", "showLanguage", "className", "style", "allowChangeLanguage", "fileName", "icon", "
|
|
4
|
+
var _excluded = ["children", "content", "language", "showLanguage", "className", "style", "allowChangeLanguage", "fileName", "icon", "actionsRender", "copyable", "type", "defalutExpand"];
|
|
5
5
|
import { Select } from 'antd';
|
|
6
6
|
import { ChevronDown, ChevronRight } from 'lucide-react';
|
|
7
7
|
import { memo, useState } from 'react';
|
|
@@ -9,7 +9,6 @@ import { Flexbox } from 'react-layout-kit';
|
|
|
9
9
|
import ActionIcon from "../ActionIcon";
|
|
10
10
|
import CopyButton from "../CopyButton";
|
|
11
11
|
import { languageMap } from "../hooks/useHighlight";
|
|
12
|
-
import SyntaxHighlighter from "./SyntaxHighlighter";
|
|
13
12
|
import { useStyles } from "./style";
|
|
14
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -21,6 +20,7 @@ var options = languageMap.map(function (item) {
|
|
|
21
20
|
});
|
|
22
21
|
export var HighlighterFullFeatured = /*#__PURE__*/memo(function (_ref) {
|
|
23
22
|
var children = _ref.children,
|
|
23
|
+
content = _ref.content,
|
|
24
24
|
language = _ref.language,
|
|
25
25
|
showLanguage = _ref.showLanguage,
|
|
26
26
|
className = _ref.className,
|
|
@@ -29,7 +29,6 @@ export var HighlighterFullFeatured = /*#__PURE__*/memo(function (_ref) {
|
|
|
29
29
|
allowChangeLanguage = _ref$allowChangeLangu === void 0 ? true : _ref$allowChangeLangu,
|
|
30
30
|
fileName = _ref.fileName,
|
|
31
31
|
icon = _ref.icon,
|
|
32
|
-
bodyRender = _ref.bodyRender,
|
|
33
32
|
actionsRender = _ref.actionsRender,
|
|
34
33
|
copyable = _ref.copyable,
|
|
35
34
|
type = _ref.type,
|
|
@@ -53,29 +52,16 @@ export var HighlighterFullFeatured = /*#__PURE__*/memo(function (_ref) {
|
|
|
53
52
|
strokeWidth: 2
|
|
54
53
|
};
|
|
55
54
|
var origianlActions = copyable && /*#__PURE__*/_jsx(CopyButton, {
|
|
56
|
-
content:
|
|
55
|
+
content: content,
|
|
57
56
|
placement: "left",
|
|
58
57
|
size: size
|
|
59
58
|
});
|
|
60
59
|
var actions = actionsRender ? actionsRender({
|
|
61
60
|
actionIconSize: size,
|
|
62
|
-
content:
|
|
61
|
+
content: content,
|
|
63
62
|
language: language,
|
|
64
63
|
originalNode: origianlActions
|
|
65
64
|
}) : origianlActions;
|
|
66
|
-
var originalBody = /*#__PURE__*/_jsx(SyntaxHighlighter, {
|
|
67
|
-
language: lang === null || lang === void 0 ? void 0 : lang.toLowerCase(),
|
|
68
|
-
style: expand ? {} : {
|
|
69
|
-
height: 0,
|
|
70
|
-
overflow: 'hidden'
|
|
71
|
-
},
|
|
72
|
-
children: children
|
|
73
|
-
});
|
|
74
|
-
var body = bodyRender ? bodyRender({
|
|
75
|
-
content: children,
|
|
76
|
-
language: language,
|
|
77
|
-
originalNode: originalBody
|
|
78
|
-
}) : originalBody;
|
|
79
65
|
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
|
|
80
66
|
className: cx(styles.container, className),
|
|
81
67
|
"data-code-type": "highlighter",
|
|
@@ -120,8 +106,7 @@ export var HighlighterFullFeatured = /*#__PURE__*/memo(function (_ref) {
|
|
|
120
106
|
horizontal: true,
|
|
121
107
|
children: actions
|
|
122
108
|
})]
|
|
123
|
-
}),
|
|
109
|
+
}), children]
|
|
124
110
|
}));
|
|
125
111
|
});
|
|
126
|
-
export default HighlighterFullFeatured;
|
|
127
|
-
export { default as SyntaxHighlighter } from "./SyntaxHighlighter";
|
|
112
|
+
export default HighlighterFullFeatured;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { DivProps } from "../../types";
|
|
3
3
|
export interface SyntaxHighlighterProps extends DivProps {
|
|
4
4
|
children: string;
|
|
5
|
+
enableTransformer?: boolean;
|
|
5
6
|
language: string;
|
|
6
7
|
}
|
|
7
8
|
declare const SyntaxHighlighter: import("react").NamedExoticComponent<SyntaxHighlighterProps>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useThemeMode } from 'antd-style';
|
|
2
1
|
import { Loader2 } from 'lucide-react';
|
|
3
2
|
import { memo } from 'react';
|
|
4
3
|
import { Flexbox } from 'react-layout-kit';
|
|
@@ -12,13 +11,12 @@ var SyntaxHighlighter = /*#__PURE__*/memo(function (_ref) {
|
|
|
12
11
|
var children = _ref.children,
|
|
13
12
|
language = _ref.language,
|
|
14
13
|
className = _ref.className,
|
|
15
|
-
style = _ref.style
|
|
14
|
+
style = _ref.style,
|
|
15
|
+
enableTransformer = _ref.enableTransformer;
|
|
16
16
|
var _useStyles = useStyles(),
|
|
17
17
|
styles = _useStyles.styles,
|
|
18
18
|
cx = _useStyles.cx;
|
|
19
|
-
var
|
|
20
|
-
isDarkMode = _useThemeMode.isDarkMode;
|
|
21
|
-
var _useHighlight = useHighlight(children, language, isDarkMode),
|
|
19
|
+
var _useHighlight = useHighlight(children, language, enableTransformer),
|
|
22
20
|
data = _useHighlight.data,
|
|
23
21
|
isLoading = _useHighlight.isLoading;
|
|
24
22
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
package/es/Highlighter/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["fullFeatured", "copyButtonSize", "children", "language", "className", "style", "copyable", "showLanguage", "type", "wrap", "bodyRender", "actionsRender"];
|
|
5
|
+
var _excluded = ["fullFeatured", "copyButtonSize", "children", "language", "className", "style", "copyable", "showLanguage", "type", "wrap", "bodyRender", "actionsRender", "enableTransformer"];
|
|
6
6
|
import { memo } from 'react';
|
|
7
7
|
import { Flexbox } from 'react-layout-kit';
|
|
8
8
|
import CopyButton from "../CopyButton";
|
|
@@ -30,6 +30,7 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
|
|
|
30
30
|
wrap = _ref.wrap,
|
|
31
31
|
bodyRender = _ref.bodyRender,
|
|
32
32
|
actionsRender = _ref.actionsRender,
|
|
33
|
+
enableTransformer = _ref.enableTransformer,
|
|
33
34
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
34
35
|
var _useStyles = useStyles(type),
|
|
35
36
|
styles = _useStyles.styles,
|
|
@@ -47,6 +48,7 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
|
|
|
47
48
|
originalNode: originalActions
|
|
48
49
|
}) : originalActions;
|
|
49
50
|
var originalBody = /*#__PURE__*/_jsx(SyntaxHighlighter, {
|
|
51
|
+
enableTransformer: enableTransformer,
|
|
50
52
|
language: language === null || language === void 0 ? void 0 : language.toLowerCase(),
|
|
51
53
|
children: tirmedChildren
|
|
52
54
|
});
|
|
@@ -59,13 +61,15 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
|
|
|
59
61
|
actionsRender: actionsRender,
|
|
60
62
|
bodyRender: bodyRender,
|
|
61
63
|
className: className,
|
|
64
|
+
content: tirmedChildren,
|
|
62
65
|
copyable: copyable,
|
|
66
|
+
enableTransformer: enableTransformer,
|
|
63
67
|
language: language,
|
|
64
68
|
showLanguage: showLanguage,
|
|
65
69
|
type: type,
|
|
66
70
|
wrap: wrap
|
|
67
71
|
}, rest), {}, {
|
|
68
|
-
children:
|
|
72
|
+
children: body
|
|
69
73
|
}));
|
|
70
74
|
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
|
|
71
75
|
className: cx(styles.container, !wrap && styles.nowrap, className),
|
package/es/Highlighter/theme.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { blue, geekblue, gold, gray, green, lime, orange, red, volcano } from "../color/colors";
|
|
2
2
|
export var themeConfig = function themeConfig(isDarkMode) {
|
|
3
3
|
var type = isDarkMode ? 'dark' : 'light';
|
|
4
|
-
var colorText =
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var colorBlue = isDarkMode ? colorScales.blue[type][9] : colorScales.geekblue[type][9];
|
|
4
|
+
var colorText = gray[type][11];
|
|
5
|
+
var colorTextTertiary = gray[type][7];
|
|
6
|
+
var colorRed = isDarkMode ? red[type][9] : volcano[type][9];
|
|
7
|
+
var colorOrange = isDarkMode ? gold[type][9] : orange[type][9];
|
|
8
|
+
var colorGreen = isDarkMode ? lime[type][9] : green[type][9];
|
|
9
|
+
var colorBlue = isDarkMode ? blue[type][9] : geekblue[type][9];
|
|
11
10
|
return {
|
|
12
11
|
colors: {
|
|
13
12
|
'editor.foreground': colorText
|
package/es/Highlighter/type.d.ts
CHANGED
package/es/Markdown/CodeBlock.js
CHANGED
|
@@ -33,9 +33,9 @@ var CodeBlock = function CodeBlock(_ref) {
|
|
|
33
33
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
34
34
|
var code = useCode(rest === null || rest === void 0 || (_rest$children = rest.children) === null || _rest$children === void 0 ? void 0 : _rest$children[0]);
|
|
35
35
|
if (!code) return;
|
|
36
|
-
if (enableMermaid && code.lang === 'mermaid') return /*#__PURE__*/_jsx(PreMermaid, _objectSpread(_objectSpread({
|
|
36
|
+
if (enableMermaid && code.lang === 'mermaid') return /*#__PURE__*/_jsx(PreMermaid, _objectSpread(_objectSpread(_objectSpread({
|
|
37
37
|
fullFeatured: fullFeatured
|
|
38
|
-
}, mermaid), {}, {
|
|
38
|
+
}, mermaid), rest), {}, {
|
|
39
39
|
children: code.content
|
|
40
40
|
}));
|
|
41
41
|
if (!highlight && code.isSingleLine) return /*#__PURE__*/_jsx(PreSingleLine, {
|
package/es/Mermaid/index.js
CHANGED
|
@@ -29,7 +29,8 @@ var Mermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
29
29
|
var _useStyles = useStyles(type),
|
|
30
30
|
cx = _useStyles.cx,
|
|
31
31
|
styles = _useStyles.styles;
|
|
32
|
-
var
|
|
32
|
+
var tirmedChildren = children.trim();
|
|
33
|
+
var MermaidRender = useMermaid(tirmedChildren);
|
|
33
34
|
var originalActions = copyable && /*#__PURE__*/_jsx(CopyButton, {
|
|
34
35
|
content: children,
|
|
35
36
|
placement: "left",
|
|
@@ -42,14 +43,14 @@ var Mermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
42
43
|
}) : originalActions;
|
|
43
44
|
var defaultBody = /*#__PURE__*/_jsx(MermaidRender, {});
|
|
44
45
|
var body = bodyRender ? bodyRender({
|
|
45
|
-
content:
|
|
46
|
+
content: tirmedChildren,
|
|
46
47
|
originalNode: defaultBody
|
|
47
48
|
}) : defaultBody;
|
|
48
49
|
if (fullFeatured) return /*#__PURE__*/_jsx(FullFeatured, _objectSpread(_objectSpread({
|
|
49
50
|
actionsRender: actionsRender,
|
|
50
51
|
bodyRender: bodyRender,
|
|
51
52
|
className: className,
|
|
52
|
-
content:
|
|
53
|
+
content: tirmedChildren,
|
|
53
54
|
copyable: copyable,
|
|
54
55
|
showLanguage: showLanguage,
|
|
55
56
|
style: style,
|
|
@@ -4,9 +4,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["style", "className", "reactionsEnabled", "mapping", "lang", "inputPosition", "id", "loading", "emitMetadata"];
|
|
6
6
|
import GiscusComponent from '@giscus/react';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { formatLang, genStyles } from "./style";
|
|
7
|
+
import { memo } from 'react';
|
|
8
|
+
import { formatLang, useStyles } from "./style";
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
10
|
var Giscus = /*#__PURE__*/memo(function (_ref) {
|
|
12
11
|
var style = _ref.style,
|
|
@@ -26,12 +25,7 @@ var Giscus = /*#__PURE__*/memo(function (_ref) {
|
|
|
26
25
|
_ref$emitMetadata = _ref.emitMetadata,
|
|
27
26
|
emitMetadata = _ref$emitMetadata === void 0 ? '0' : _ref$emitMetadata,
|
|
28
27
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
-
var
|
|
30
|
-
var _useThemeMode = useThemeMode(),
|
|
31
|
-
isDarkMode = _useThemeMode.isDarkMode;
|
|
32
|
-
var giscusTheme = useMemo(function () {
|
|
33
|
-
return btoa(genStyles(token, isDarkMode).styles);
|
|
34
|
-
}, [isDarkMode, token]);
|
|
28
|
+
var theme = useStyles();
|
|
35
29
|
return /*#__PURE__*/_jsx("div", {
|
|
36
30
|
className: className,
|
|
37
31
|
style: style,
|
|
@@ -43,7 +37,7 @@ var Giscus = /*#__PURE__*/memo(function (_ref) {
|
|
|
43
37
|
loading: loading,
|
|
44
38
|
mapping: mapping,
|
|
45
39
|
reactionsEnabled: reactionsEnabled,
|
|
46
|
-
theme:
|
|
40
|
+
theme: theme
|
|
47
41
|
}, rest))
|
|
48
42
|
});
|
|
49
43
|
});
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
import { css } from 'antd-style';
|
|
3
|
+
import { css, useTheme } from 'antd-style';
|
|
4
4
|
import { readableColor, rgba } from 'polished';
|
|
5
|
-
import {
|
|
6
|
-
export var
|
|
7
|
-
var
|
|
8
|
-
var colorText =
|
|
9
|
-
var colorTextSecondary =
|
|
10
|
-
var colorTextTertiary =
|
|
11
|
-
var colorRed =
|
|
12
|
-
var colorOrange =
|
|
13
|
-
var colorGreen =
|
|
14
|
-
var colorBlue =
|
|
15
|
-
var loaderContainer = isDarkMode ? 'https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg' : 'https://github.com/images/modules/pulls/progressive-disclosure-line.svg';
|
|
16
|
-
var loadingImage = isDarkMode ? 'https://github.githubassets.com/images/mona-loading-dark.gif' : 'https://github.githubassets.com/images/mona-loading-default.gif';
|
|
17
|
-
|
|
5
|
+
import { useMemo } from 'react';
|
|
6
|
+
export var useStyles = function useStyles() {
|
|
7
|
+
var theme = useTheme();
|
|
8
|
+
var colorText = theme.colorText;
|
|
9
|
+
var colorTextSecondary = theme.colorTextSecondary;
|
|
10
|
+
var colorTextTertiary = theme.colorTextTertiary;
|
|
11
|
+
var colorRed = theme.colorError;
|
|
12
|
+
var colorOrange = theme.colorWarning;
|
|
13
|
+
var colorGreen = theme.colorSuccess;
|
|
14
|
+
var colorBlue = theme.colorInfo;
|
|
15
|
+
var loaderContainer = theme.isDarkMode ? 'https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg' : 'https://github.com/images/modules/pulls/progressive-disclosure-line.svg';
|
|
16
|
+
var loadingImage = theme.isDarkMode ? 'https://github.githubassets.com/images/mona-loading-dark.gif' : 'https://github.githubassets.com/images/mona-loading-default.gif';
|
|
17
|
+
var _ref = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n main {\n --color-prettylights-syntax-comment: ", ";\n --color-prettylights-syntax-constant: ", ";\n --color-prettylights-syntax-entity: ", ";\n --color-prettylights-syntax-storage-modifier-import: ", ";\n --color-prettylights-syntax-entity-tag: ", ";\n --color-prettylights-syntax-keyword: ", ";\n --color-prettylights-syntax-string: ", ";\n --color-prettylights-syntax-variable: ", ";\n --color-prettylights-syntax-brackethighlighter-unmatched: ", ";\n --color-prettylights-syntax-invalid-illegal-text: ", ";\n --color-prettylights-syntax-invalid-illegal-bg: ", ";\n --color-prettylights-syntax-carriage-return-text: ", ";\n --color-prettylights-syntax-carriage-return-bg: ", ";\n --color-prettylights-syntax-string-regexp: ", ";\n --color-prettylights-syntax-markup-list: ", ";\n --color-prettylights-syntax-markup-heading: ", ";\n --color-prettylights-syntax-markup-italic: ", ";\n --color-prettylights-syntax-markup-bold: ", ";\n --color-prettylights-syntax-markup-deleted-text: ", ";\n --color-prettylights-syntax-markup-deleted-bg: ", ";\n --color-prettylights-syntax-markup-inserted-text: ", ";\n --color-prettylights-syntax-markup-inserted-bg: ", ";\n --color-prettylights-syntax-markup-changed-text: ", ";\n --color-prettylights-syntax-markup-changed-bg: ", ";\n --color-prettylights-syntax-markup-ignored-text: ", ";\n --color-prettylights-syntax-markup-ignored-bg: ", ";\n --color-prettylights-syntax-meta-diff-range: ", ";\n --color-prettylights-syntax-brackethighlighter-angle: ", ";\n --color-prettylights-syntax-sublimelinter-gutter-mark: ", ";\n --color-prettylights-syntax-constant-other-reference-link: ", ";\n --color-btn-text: ", ";\n --color-btn-bg: ", ";\n --color-btn-border: ", ";\n --color-btn-shadow: 0 0 transparent;\n --color-btn-inset-shadow: 0 0 transparent;\n --color-btn-hover-bg: ", ";\n --color-btn-hover-border: ", ";\n --color-btn-active-bg: ", ";\n --color-btn-active-border: ", ";\n --color-btn-selected-bg: ", ";\n --color-btn-primary-text: ", ";\n --color-btn-primary-bg: ", ";\n --color-btn-primary-border: ", ";\n --color-btn-primary-shadow: 0 0 transparent;\n --color-btn-primary-inset-shadow: 0 0 transparent;\n --color-btn-primary-hover-bg: ", ";\n --color-btn-primary-hover-border: ", ";\n --color-btn-primary-selected-bg: ", ";\n --color-btn-primary-selected-shadow: 0 0 transparent;\n --color-btn-primary-disabled-text: ", ";\n --color-btn-primary-disabled-bg: ", ";\n --color-btn-primary-disabled-border: ", ";\n --color-action-list-item-default-hover-bg: ", ";\n --color-segmented-control-bg: ", ";\n --color-segmented-control-button-bg: transparent;\n --color-segmented-control-button-selected-border: ", ";\n --color-fg-default: ", ";\n --color-fg-muted: ", ";\n --color-fg-subtle: ", ";\n --color-canvas-default: transparent;\n --color-canvas-overlay: ", ";\n --color-canvas-inset: transparent;\n --color-canvas-subtle: ", ";\n --color-border-default: ", ";\n --color-border-muted: ", ";\n --color-neutral-muted: ", ";\n --color-neutral-subtle: ", ";\n --color-accent-fg: ", ";\n --color-accent-emphasis: ", ";\n --color-accent-muted: ", ";\n --color-accent-subtle: ", ";\n --color-success-fg: ", ";\n --color-attention-fg: ", ";\n --color-attention-muted: ", ";\n --color-attention-subtle: ", ";\n --color-danger-fg: ", ";\n --color-danger-muted: ", ";\n --color-danger-subtle: ", ";\n --color-primer-shadow-inset: 0 0 transparent;\n --color-scale-gray-7: ", ";\n --color-scale-blue-8: ", ";\n --color-social-reaction-bg-hover: ", ";\n --color-social-reaction-bg-reacted-hover: ", ";\n\n .markdown pre {\n color: ", ";\n }\n\n .pagination-loader-container {\n background-image: url(", ");\n }\n\n .gsc-pagination-button {\n background-color: var(--color-btn-bg);\n }\n\n .gsc-reactions-popover {\n width: 170px;\n\n > .m-2 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n }\n }\n\n .gsc-emoji-button.has-reacted {\n border-color: ", ";\n border-radius: ", "px;\n }\n\n .gsc-loading-image {\n background-image: url(", ");\n }\n }\n "])), colorTextTertiary, colorGreen, colorOrange, colorRed, colorBlue, colorBlue, colorGreen, colorRed, colorRed, colorTextSecondary, rgba(colorRed, 0.4), colorTextSecondary, rgba(colorRed, 0.6), colorGreen, colorOrange, colorBlue, colorTextSecondary, colorTextSecondary, colorTextSecondary, rgba(colorRed, 0.2), colorGreen, rgba(colorGreen, 0.2), colorOrange, rgba(colorRed, 0.2), colorTextSecondary, rgba(colorBlue, 0.2), colorOrange, colorTextSecondary, colorTextTertiary, colorBlue, theme.colorText, theme.colorFillTertiary, theme.colorBorderSecondary, theme.colorFillSecondary, theme.colorBorder, theme.colorFillSecondary, theme.colorBorder, theme.colorFillSecondary, readableColor(theme.colorPrimary), theme.colorPrimary, theme.colorPrimaryBorder, theme.colorPrimaryHover, theme.colorPrimaryBorderHover, theme.colorPrimaryActive, rgba(readableColor(theme.colorPrimary), 0.5), rgba(theme.colorPrimary, 0.5), rgba(theme.colorPrimaryBorder, 0.5), theme.colorFillQuaternary, theme.colorFillTertiary, theme.colorBorder, theme.colorText, theme.colorTextSecondary, theme.colorTextQuaternary, theme.colorBgElevated, theme.colorFillQuaternary, theme.colorBorder, theme.colorBorderSecondary, theme.colorFillQuaternary, theme.colorFillTertiary, theme.colorInfo, theme.colorInfoBorderHover, theme.colorInfoBorder, theme.colorInfoBg, theme.colorSuccess, theme.colorWarning, theme.colorWarningBorder, theme.colorWarningBg, theme.colorError, theme.colorErrorBorder, theme.colorErrorBg, theme.colorBgContainer, theme.colorInfoBg, theme.colorFillSecondary, theme.colorInfoBgHover, colorText, loaderContainer, theme.colorInfoBorderHover, theme.borderRadius, loadingImage),
|
|
18
|
+
styles = _ref.styles;
|
|
19
|
+
return useMemo(function () {
|
|
20
|
+
return "data:text/css;base64,".concat(btoa(styles));
|
|
21
|
+
}, [styles]);
|
|
18
22
|
};
|
|
19
23
|
export var formatLang = function formatLang(lang) {
|
|
20
24
|
if (['zh_CN', 'zh_TW'].includes(lang)) {
|
|
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
|
3
3
|
import { Space, message } from 'antd';
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
import { Flexbox } from 'react-layout-kit';
|
|
6
|
-
import { copyToClipboard } from "
|
|
6
|
+
import { copyToClipboard } from "../../utils/copyToClipboard";
|
|
7
7
|
import { alphaBg, useStyles } from "./style";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var blue = {
|
|
2
|
+
dark: ['#000506', '#002126', '#00363f', '#004e59', '#006675', '#008093', '#159ab0', '#47b3ca', '#6acde4', '#8ae8ff', '#b8f0ff', '#def7ff', '#ffffff'],
|
|
3
|
+
darkA: ['rgba(0, 167, 200, 0.03)', 'rgba(0, 220, 253, 0.15)', 'rgba(0, 216, 252, 0.25)', 'rgba(0, 223, 254, 0.35)', 'rgba(0, 222, 254, 0.46)', 'rgba(0, 221, 253, 0.58)', 'rgba(30, 223, 255, 0.69)', 'rgba(89, 224, 252, 0.8)', 'rgba(118, 228, 253, 0.9)', '#8ae8ff', '#b8f0ff', '#def7ff', '#ffffff'],
|
|
4
|
+
light: ['#ffffff', '#fbfeff', '#f4fcff', '#eafaff', '#dff7ff', '#d3f5ff', '#c4f2ff', '#b4efff', '#a1ecff', '#8ae8ff', '#159ab0', '#004e59', '#000506'],
|
|
5
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(55, 205, 255, 0.02)', 'rgba(35, 195, 255, 0.05)', 'rgba(22, 199, 255, 0.09)', 'rgba(9, 193, 255, 0.13)', 'rgba(11, 199, 255, 0.18)', 'rgba(9, 201, 255, 0.24)', 'rgba(5, 202, 255, 0.3)', 'rgba(1, 204, 255, 0.37)', 'rgba(1, 205, 255, 0.46)', 'rgba(1, 145, 169, 0.92)', '#004e59', '#000506']
|
|
6
|
+
};
|
|
7
|
+
export default blue;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var cyan = {
|
|
2
|
+
dark: ['#000503', '#00221c', '#003930', '#005245', '#006c5b', '#008772', '#2fa28a', '#55bca4', '#75d7be', '#95f3d9', '#bdf7e4', '#dffcf0', '#ffffff'],
|
|
3
|
+
darkA: ['rgba(0, 250, 150, 0.02)', 'rgba(0, 243, 200, 0.14)', 'rgba(0, 248, 209, 0.23)', 'rgba(0, 248, 209, 0.33)', 'rgba(0, 251, 212, 0.43)', 'rgba(0, 255, 215, 0.53)', 'rgba(73, 253, 216, 0.64)', 'rgba(115, 254, 222, 0.74)', 'rgba(138, 253, 224, 0.85)', 'rgba(155, 253, 226, 0.96)', 'rgba(195, 255, 235, 0.97)', 'rgba(225, 255, 242, 0.99)', '#ffffff'],
|
|
4
|
+
light: ['#ffffff', '#f9fffb', '#effff8', '#e3fff4', '#d8fef0', '#ccfcec', '#c0fae8', '#b3f8e3', '#a5f6de', '#95f3d9', '#2fa28a', '#005245', '#000503'],
|
|
5
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(55, 255, 122, 0.03)', 'rgba(26, 255, 155, 0.07)', 'rgba(0, 255, 155, 0.11)', 'rgba(11, 249, 161, 0.16)', 'rgba(0, 240, 160, 0.2)', 'rgba(3, 235, 163, 0.25)', 'rgba(2, 232, 162, 0.3)', 'rgba(5, 230, 163, 0.36)', 'rgba(3, 226, 165, 0.42)', 'rgba(1, 142, 112, 0.82)', '#005245', '#000503']
|
|
6
|
+
};
|
|
7
|
+
export default cyan;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var geekblue = {
|
|
2
|
+
dark: ['#00021b', '#000d4c', '#001a69', '#002a8a', '#003bac', '#004cca', '#005ae0', '#0065ed', '#006cf3', '#0072f5', '#9abeff', '#e2ebff', '#ffffff'],
|
|
3
|
+
darkA: ['rgba(0, 18, 245, 0.11)', 'rgba(0, 43, 253, 0.3)', 'rgba(0, 62, 250, 0.42)', 'rgba(0, 76, 251, 0.55)', 'rgba(0, 87, 253, 0.68)', 'rgba(0, 95, 252, 0.8)', 'rgba(0, 102, 255, 0.88)', 'rgba(0, 109, 255, 0.93)', 'rgba(0, 112, 253, 0.96)', 'rgba(0, 119, 255, 0.96)', '#9abeff', '#e2ebff', '#ffffff'],
|
|
4
|
+
light: ['#ffffff', '#fcfbff', '#f1f5ff', '#e2ebff', '#cedfff', '#b6d0ff', '#9abeff', '#78a9ff', '#4c90ff', '#0072f5', '#005ae0', '#002a8a', '#00021b'],
|
|
5
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(105, 55, 255, 0.02)', 'rgba(22, 88, 255, 0.06)', 'rgba(13, 88, 255, 0.12)', 'rgba(10, 95, 255, 0.2)', 'rgba(3, 93, 255, 0.29)', 'rgba(3, 93, 255, 0.4)', 'rgba(0, 93, 255, 0.53)', 'rgba(3, 99, 255, 0.71)', '#0072f5', '#005ae0', '#002a8a', '#00021b']
|
|
6
|
+
};
|
|
7
|
+
export default geekblue;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var gold = {
|
|
2
|
+
dark: ['#070300', '#2a1b00', '#483000', '#6a4900', '#916400', '#b77e00', '#d59300', '#eaa100', '#f8aa00', '#ffb224', '#ffdcaf', '#fff4eb', '#ffffff'],
|
|
3
|
+
darkA: ['rgba(233, 100, 0, 0.03)', 'rgba(247, 159, 0, 0.17)', 'rgba(248, 166, 0, 0.29)', 'rgba(252, 174, 0, 0.42)', 'rgba(254, 175, 0, 0.57)', 'rgba(254, 175, 0, 0.72)', 'rgba(254, 175, 0, 0.84)', 'rgba(254, 175, 0, 0.92)', 'rgba(253, 173, 0, 0.98)', '#ffb224', '#ffdcaf', '#fff4eb', '#ffffff'],
|
|
4
|
+
light: ['#ffffff', '#fffdff', '#fff9f7', '#fff4eb', '#ffeedc', '#ffe6c8', '#ffdcaf', '#ffd190', '#ffc368', '#ffb224', '#d59300', '#6a4900', '#070300'],
|
|
5
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(255, 55, 255, 0.01)', 'rgba(255, 105, 55, 0.04)', 'rgba(255, 117, 5, 0.08)', 'rgba(255, 134, 5, 0.14)', 'rgba(255, 141, 5, 0.22)', 'rgba(255, 146, 5, 0.32)', 'rgba(255, 150, 3, 0.44)', 'rgba(255, 155, 3, 0.6)', 'rgba(255, 165, 0, 0.86)', '#d59300', '#6a4900', '#070300']
|
|
6
|
+
};
|
|
7
|
+
export default gold;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var gray = {
|
|
2
|
+
dark: ['#000000', '#111111', '#222222', '#2d2d2d', '#333333', '#444444', '#555555', '#666666', '#6f6f6f', '#777777', '#aaaaaa', '#dddddd', '#ffffff'],
|
|
3
|
+
darkA: ['rgba(255, 255, 255, 0.02)', 'rgba(255, 255, 255, 0.06)', 'rgba(255, 255, 255, 0.10)', 'rgba(255, 255, 255, 0.16)', 'rgba(255, 255, 255, 0.24)', 'rgba(255, 255, 255, 0.28)', 'rgba(255, 255, 255, 0.32)', 'rgba(255, 255, 255, 0.38)', 'rgba(255, 255, 255, 0.44)', 'rgba(255, 255, 255, 0.5)', 'rgba(255, 255, 255, 0.66)', 'rgba(255, 255, 255, 0.84)', '#ffffff'],
|
|
4
|
+
light: ['#ffffff', '#f8f8f8', '#eeeeee', '#e3e3e3', '#dddddd', '#cccccc', '#bbbbbb', '#aaaaaa', '#999999', '#888888', '#666666', '#333333', '#080808'],
|
|
5
|
+
lightA: ['rgba(0, 0, 0, 0.015)', 'rgba(0, 0, 0, 0.03)', 'rgba(0, 0, 0, 0.06)', 'rgba(0, 0, 0, 0.12)', 'rgba(0, 0, 0, 0.18)', 'rgba(0, 0, 0, 0.24)', 'rgba(0, 0, 0, 0.32)', 'rgba(0, 0, 0, 0.38)', 'rgba(0, 0, 0, 0.44)', 'rgba(0, 0, 0, 0.5)', 'rgba(0, 0, 0, 0.68)', 'rgba(0, 0, 0, 0.84)', 'rgba(0, 0, 0, 0.98)']
|
|
6
|
+
};
|
|
7
|
+
export default gray;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var green = {
|
|
2
|
+
dark: ['#000503', '#001d12', '#002d1d', '#003f28', '#005232', '#00653c', '#007944', '#1b8d4d', '#3ba05a', '#55b467', '#96cd92', '#cde6c3', '#ffffff'],
|
|
3
|
+
darkA: ['rgba(0, 250, 150, 0.02)', 'rgba(0, 242, 150, 0.12)', 'rgba(0, 250, 161, 0.18)', 'rgba(0, 252, 160, 0.25)', 'rgba(0, 248, 152, 0.33)', 'rgba(0, 252, 150, 0.4)', 'rgba(0, 252, 142, 0.48)', 'rgba(48, 252, 137, 0.56)', 'rgba(94, 254, 143, 0.63)', 'rgba(120, 254, 145, 0.71)', 'rgba(185, 253, 180, 0.81)', 'rgba(225, 253, 214, 0.91)', '#ffffff'],
|
|
4
|
+
light: ['#ffffff', '#f4fdeb', '#e7f8dd', '#d8f2ce', '#c7eabd', '#b4e1ac', '#a0d79b', '#89cc8a', '#71c179', '#55b467', '#007944', '#003f28', '#000503'],
|
|
5
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(117, 230, 5, 0.08)', 'rgba(84, 205, 12, 0.14)', 'rgba(60, 190, 10, 0.2)', 'rgba(40, 174, 1, 0.26)', 'rgba(28, 164, 3, 0.33)', 'rgba(18, 155, 5, 0.4)', 'rgba(4, 146, 6, 0.47)', 'rgba(1, 144, 16, 0.56)', 'rgba(1, 143, 28, 0.67)', '#007944', '#003f28', '#000503']
|
|
6
|
+
};
|
|
7
|
+
export default green;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ColorScaleItem } from '../types';
|
|
2
|
+
export interface ColorScales {
|
|
3
|
+
blue: ColorScaleItem;
|
|
4
|
+
cyan: ColorScaleItem;
|
|
5
|
+
geekblue: ColorScaleItem;
|
|
6
|
+
gold: ColorScaleItem;
|
|
7
|
+
gray: ColorScaleItem;
|
|
8
|
+
green: ColorScaleItem;
|
|
9
|
+
lime: ColorScaleItem;
|
|
10
|
+
magenta: ColorScaleItem;
|
|
11
|
+
orange: ColorScaleItem;
|
|
12
|
+
primary: ColorScaleItem;
|
|
13
|
+
purple: ColorScaleItem;
|
|
14
|
+
red: ColorScaleItem;
|
|
15
|
+
volcano: ColorScaleItem;
|
|
16
|
+
yellow: ColorScaleItem;
|
|
17
|
+
}
|
|
18
|
+
export declare const colorScales: ColorScales;
|
|
19
|
+
export { colorScales as colors };
|
|
20
|
+
export { default as blue } from './blue';
|
|
21
|
+
export { default as cyan } from './cyan';
|
|
22
|
+
export { default as geekblue } from './geekblue';
|
|
23
|
+
export { default as gold } from './gold';
|
|
24
|
+
export { default as gray } from './gray';
|
|
25
|
+
export { default as green } from './green';
|
|
26
|
+
export { default as lime } from './lime';
|
|
27
|
+
export { default as magenta } from './magenta';
|
|
28
|
+
export { default as orange } from './orange';
|
|
29
|
+
export { default as primary } from './primary';
|
|
30
|
+
export { default as purple } from './purple';
|
|
31
|
+
export { default as red } from './red';
|
|
32
|
+
export { default as volcano } from './volcano';
|
|
33
|
+
export { default as yellow } from './yellow';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import blue from "./blue";
|
|
2
|
+
import cyan from "./cyan";
|
|
3
|
+
import geekblue from "./geekblue";
|
|
4
|
+
import gold from "./gold";
|
|
5
|
+
import gray from "./gray";
|
|
6
|
+
import green from "./green";
|
|
7
|
+
import lime from "./lime";
|
|
8
|
+
import magenta from "./magenta";
|
|
9
|
+
import orange from "./orange";
|
|
10
|
+
import primary from "./primary";
|
|
11
|
+
import purple from "./purple";
|
|
12
|
+
import red from "./red";
|
|
13
|
+
import volcano from "./volcano";
|
|
14
|
+
import yellow from "./yellow";
|
|
15
|
+
export var colorScales = {
|
|
16
|
+
blue: blue,
|
|
17
|
+
cyan: cyan,
|
|
18
|
+
geekblue: geekblue,
|
|
19
|
+
gold: gold,
|
|
20
|
+
gray: gray,
|
|
21
|
+
green: green,
|
|
22
|
+
lime: lime,
|
|
23
|
+
magenta: magenta,
|
|
24
|
+
orange: orange,
|
|
25
|
+
primary: primary,
|
|
26
|
+
purple: purple,
|
|
27
|
+
red: red,
|
|
28
|
+
volcano: volcano,
|
|
29
|
+
yellow: yellow
|
|
30
|
+
};
|
|
31
|
+
export { colorScales as colors };
|
|
32
|
+
export { default as blue } from "./blue";
|
|
33
|
+
export { default as cyan } from "./cyan";
|
|
34
|
+
export { default as geekblue } from "./geekblue";
|
|
35
|
+
export { default as gold } from "./gold";
|
|
36
|
+
export { default as gray } from "./gray";
|
|
37
|
+
export { default as green } from "./green";
|
|
38
|
+
export { default as lime } from "./lime";
|
|
39
|
+
export { default as magenta } from "./magenta";
|
|
40
|
+
export { default as orange } from "./orange";
|
|
41
|
+
export { default as primary } from "./primary";
|
|
42
|
+
export { default as purple } from "./purple";
|
|
43
|
+
export { default as red } from "./red";
|
|
44
|
+
export { default as volcano } from "./volcano";
|
|
45
|
+
export { default as yellow } from "./yellow";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var lime = {
|
|
2
|
+
dark: ['#020400', '#142100', '#253700', '#374f00', '#4b6800', '#608200', '#769d00', '#8fb81b', '#a9d42f', '#c4f042', '#daf685', '#eefbbe', '#ffffff'],
|
|
3
|
+
darkA: ['rgba(100, 200, 0, 0.02)', 'rgba(154, 254, 0, 0.13)', 'rgba(168, 250, 0, 0.22)', 'rgba(177, 255, 0, 0.31)', 'rgba(183, 254, 0, 0.41)', 'rgba(188, 255, 0, 0.51)', 'rgba(190, 253, 0, 0.62)', 'rgba(196, 252, 37, 0.73)', 'rgba(204, 255, 57, 0.83)', 'rgba(209, 255, 70, 0.94)', 'rgba(225, 254, 137, 0.97)', 'rgba(240, 254, 192, 0.99)', '#ffffff'],
|
|
4
|
+
light: ['#ffffff', '#feffeb', '#f9ffd8', '#f2ffc1', '#ebfdaf', '#e4fc9b', '#ddf987', '#d5f773', '#cdf35c', '#c4f042', '#769d00', '#374f00', '#020400'],
|
|
5
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(242, 255, 5, 0.08)', 'rgba(218, 255, 11, 0.16)', 'rgba(203, 255, 7, 0.25)', 'rgba(193, 249, 5, 0.32)', 'rgba(187, 247, 5, 0.4)', 'rgba(183, 242, 0, 0.47)', 'rgba(179, 240, 0, 0.55)', 'rgba(177, 236, 0, 0.64)', 'rgba(175, 235, 0, 0.74)', '#769d00', '#374f00', '#020400']
|
|
6
|
+
};
|
|
7
|
+
export default lime;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var magenta = {
|
|
2
|
+
dark: ['#100002', '#350011', '#4b001e', '#63002d', '#79093f', '#8e1752', '#a32466', '#b8317b', '#ce3e91', '#e34ba9', '#f38bcb', '#fec5e8', '#ffffff'],
|
|
3
|
+
darkA: ['rgba(229, 0, 29, 0.07)', 'rgba(252, 0, 81, 0.21)', 'rgba(250, 0, 100, 0.3)', 'rgba(254, 0, 115, 0.39)', 'rgba(252, 19, 131, 0.48)', 'rgba(254, 41, 146, 0.56)', 'rgba(255, 56, 159, 0.64)', 'rgba(252, 67, 168, 0.73)', 'rgba(254, 77, 179, 0.81)', 'rgba(255, 84, 190, 0.89)', 'rgba(253, 145, 211, 0.96)', '#fec5e8', '#ffffff'],
|
|
4
|
+
light: ['#ffffff', '#fff7f9', '#ffeaf4', '#ffdaee', '#ffc7e7', '#ffb2df', '#ff99d6', '#f980ca', '#ef67ba', '#e34ba9', '#a32466', '#63002d', '#100002'],
|
|
5
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(255, 55, 105, 0.04)', 'rgba(255, 22, 133, 0.09)', 'rgba(255, 8, 142, 0.15)', 'rgba(255, 0, 146, 0.22)', 'rgba(255, 7, 152, 0.31)', 'rgba(255, 0, 153, 0.4)', 'rgba(243, 1, 149, 0.5)', 'rgba(228, 2, 140, 0.6)', 'rgba(216, 1, 134, 0.71)', 'rgba(148, 0, 77, 0.86)', '#63002d', '#100002']
|
|
6
|
+
};
|
|
7
|
+
export default magenta;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var orange = {
|
|
2
|
+
dark: ['#070300', '#291900', '#462b00', '#684100', '#8e5900', '#b36f00', '#d18000', '#e88b00', '#f89200', '#ff9927', '#ffd1b1', '#fff1eb', '#ffffff'],
|
|
3
|
+
darkA: ['rgba(233, 100, 0, 0.03)', 'rgba(241, 147, 0, 0.17)', 'rgba(250, 154, 0, 0.28)', 'rgba(254, 159, 0, 0.41)', 'rgba(254, 159, 0, 0.56)', 'rgba(252, 156, 0, 0.71)', 'rgba(255, 156, 0, 0.82)', 'rgba(255, 153, 0, 0.91)', 'rgba(253, 149, 0, 0.98)', '#ff9927', '#ffd1b1', '#fff1eb', '#ffffff'],
|
|
4
|
+
light: ['#ffffff', '#fffcff', '#fff8f6', '#fff1eb', '#ffe9dd', '#ffdeca', '#ffd1b1', '#ffc293', '#ffb06a', '#ff9927', '#d18000', '#684100', '#070300'],
|
|
5
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(255, 105, 255, 0.02)', 'rgba(255, 80, 30, 0.04)', 'rgba(255, 80, 5, 0.08)', 'rgba(255, 98, 12, 0.14)', 'rgba(255, 98, 3, 0.21)', 'rgba(255, 107, 3, 0.31)', 'rgba(255, 113, 4, 0.43)', 'rgba(255, 121, 2, 0.59)', 'rgba(255, 135, 1, 0.85)', '#d18000', '#684100', '#070300']
|
|
6
|
+
};
|
|
7
|
+
export default orange;
|