@lobehub/ui 1.160.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.
Files changed (91) hide show
  1. package/es/ActionIcon/index.d.ts +5 -2
  2. package/es/ActionIcon/index.js +10 -8
  3. package/es/Avatar/index.js +3 -2
  4. package/es/Highlighter/FullFeatured.d.ts +6 -3
  5. package/es/Highlighter/FullFeatured.js +6 -21
  6. package/es/Highlighter/SyntaxHighlighter/index.d.ts +1 -0
  7. package/es/Highlighter/SyntaxHighlighter/index.js +3 -5
  8. package/es/Highlighter/index.js +6 -2
  9. package/es/Highlighter/theme.js +7 -8
  10. package/es/Highlighter/type.d.ts +1 -0
  11. package/es/Markdown/CodeBlock.js +2 -2
  12. package/es/Mermaid/index.js +4 -3
  13. package/es/Tooltip/index.js +3 -1
  14. package/es/awesome/Giscus/index.js +4 -10
  15. package/es/awesome/Giscus/style.d.ts +1 -2
  16. package/es/awesome/Giscus/style.js +18 -14
  17. package/es/{ColorScales → color/ColorScales}/ScaleRow.js +1 -1
  18. package/es/{ColorScales → color/ColorScales}/index.d.ts +1 -1
  19. package/es/color/colors/blue.d.ts +3 -0
  20. package/es/color/colors/blue.js +7 -0
  21. package/es/color/colors/cyan.d.ts +3 -0
  22. package/es/color/colors/cyan.js +7 -0
  23. package/es/color/colors/geekblue.d.ts +3 -0
  24. package/es/color/colors/geekblue.js +7 -0
  25. package/es/color/colors/gold.d.ts +3 -0
  26. package/es/color/colors/gold.js +7 -0
  27. package/es/color/colors/gray.d.ts +3 -0
  28. package/es/color/colors/gray.js +7 -0
  29. package/es/color/colors/green.d.ts +3 -0
  30. package/es/color/colors/green.js +7 -0
  31. package/es/color/colors/index.d.ts +33 -0
  32. package/es/color/colors/index.js +45 -0
  33. package/es/color/colors/lime.d.ts +3 -0
  34. package/es/color/colors/lime.js +7 -0
  35. package/es/color/colors/magenta.d.ts +3 -0
  36. package/es/color/colors/magenta.js +7 -0
  37. package/es/color/colors/orange.d.ts +3 -0
  38. package/es/color/colors/orange.js +7 -0
  39. package/es/color/colors/primary.d.ts +3 -0
  40. package/es/color/colors/primary.js +7 -0
  41. package/es/color/colors/purple.d.ts +3 -0
  42. package/es/color/colors/purple.js +7 -0
  43. package/es/color/colors/red.d.ts +3 -0
  44. package/es/color/colors/red.js +7 -0
  45. package/es/color/colors/volcano.d.ts +3 -0
  46. package/es/color/colors/volcano.js +7 -0
  47. package/es/color/colors/yellow.d.ts +3 -0
  48. package/es/color/colors/yellow.js +7 -0
  49. package/es/color/index.d.ts +4 -0
  50. package/es/color/index.js +4 -0
  51. package/es/color/neutrals/index.d.ts +15 -0
  52. package/es/color/neutrals/index.js +18 -0
  53. package/es/color/neutrals/mauve.d.ts +3 -0
  54. package/es/color/neutrals/mauve.js +7 -0
  55. package/es/color/neutrals/olive.d.ts +3 -0
  56. package/es/color/neutrals/olive.js +7 -0
  57. package/es/color/neutrals/sage.d.ts +3 -0
  58. package/es/color/neutrals/sage.js +7 -0
  59. package/es/color/neutrals/sand.d.ts +3 -0
  60. package/es/color/neutrals/sand.js +7 -0
  61. package/es/color/neutrals/slate.d.ts +3 -0
  62. package/es/color/neutrals/slate.js +7 -0
  63. package/es/color/types.d.ts +22 -0
  64. package/es/color/types.js +1 -0
  65. package/es/components.d.ts +1 -1
  66. package/es/components.js +2 -2
  67. package/es/hooks/useChatListActionsBar.js +28 -25
  68. package/es/hooks/useHighlight.d.ts +1 -1
  69. package/es/hooks/useHighlight.js +27 -11
  70. package/es/index.d.ts +1 -0
  71. package/es/index.js +1 -0
  72. package/es/styles/customTheme.js +19 -19
  73. package/es/styles/index.d.ts +1 -4
  74. package/es/styles/index.js +2 -5
  75. package/es/styles/theme/algorithms/darkAlgorithm.js +3 -2
  76. package/es/styles/theme/algorithms/lightAlgorithm.js +3 -2
  77. package/es/styles/theme/antdTheme.d.ts +1 -1
  78. package/es/styles/theme/customToken.js +1 -1
  79. package/es/styles/{colors → theme}/generateColorPalette.d.ts +1 -1
  80. package/es/styles/theme/token/dark.js +8 -8
  81. package/es/styles/theme/token/light.js +8 -8
  82. package/package.json +21 -22
  83. package/es/styles/colors/colors.d.ts +0 -39
  84. package/es/styles/colors/colors.js +0 -86
  85. package/es/styles/colors/neutralColors.d.ts +0 -9
  86. package/es/styles/colors/neutralColors.js +0 -32
  87. /package/es/{ColorScales → color/ColorScales}/ScaleRow.d.ts +0 -0
  88. /package/es/{ColorScales → color/ColorScales}/index.js +0 -0
  89. /package/es/{ColorScales → color/ColorScales}/style.d.ts +0 -0
  90. /package/es/{ColorScales → color/ColorScales}/style.js +0 -0
  91. /package/es/styles/{colors → theme}/generateColorPalette.js +0 -0
@@ -1,4 +1,4 @@
1
- import { type CSSProperties } from 'react';
1
+ /// <reference types="react" />
2
2
  import { type FlexboxProps } from 'react-layout-kit';
3
3
  import { type IconProps, type IconSizeConfig, type IconSizeType, LucideIconProps } from "../Icon";
4
4
  import { type TooltipProps } from "../Tooltip";
@@ -19,6 +19,7 @@ export interface ActionIconProps extends LucideIconProps, FlexboxProps {
19
19
  * @default false
20
20
  */
21
21
  arrow?: boolean;
22
+ classNames?: TooltipProps['classNames'];
22
23
  disable?: boolean;
23
24
  /**
24
25
  * @description Glass blur style
@@ -30,7 +31,8 @@ export interface ActionIconProps extends LucideIconProps, FlexboxProps {
30
31
  * @description Set the loading status of ActionIcon
31
32
  */
32
33
  loading?: boolean;
33
- overlayStyle?: CSSProperties;
34
+ overlayClassName?: TooltipProps['overlayClassName'];
35
+ overlayStyle?: TooltipProps['overlayStyle'];
34
36
  /**
35
37
  * @description The position of the tooltip relative to the target
36
38
  * @enum ["top","left","right","bottom","topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]
@@ -48,6 +50,7 @@ export interface ActionIconProps extends LucideIconProps, FlexboxProps {
48
50
  * @default false
49
51
  */
50
52
  spotlight?: boolean;
53
+ styles?: TooltipProps['styles'];
51
54
  /**
52
55
  * @description The text shown in the tooltip
53
56
  */
@@ -3,7 +3,7 @@
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
5
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
6
- var _excluded = ["color", "fill", "className", "active", "icon", "size", "style", "glass", "title", "placement", "arrow", "spotlight", "onClick", "children", "loading", "overlayStyle", "tooltipDelay", "fillOpacity", "fillRule", "focusable", "disable", "spin"];
6
+ var _excluded = ["color", "fill", "className", "active", "icon", "size", "style", "glass", "title", "placement", "arrow", "spotlight", "onClick", "children", "loading", "tooltipDelay", "fillOpacity", "fillRule", "focusable", "disable", "spin", "styles"];
7
7
  import { Loader2 } from 'lucide-react';
8
8
  import { forwardRef, useCallback, useMemo, useState } from 'react';
9
9
  import { Flexbox } from 'react-layout-kit';
@@ -32,7 +32,6 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
32
32
  onClick = _ref.onClick,
33
33
  children = _ref.children,
34
34
  loading = _ref.loading,
35
- overlayStyle = _ref.overlayStyle,
36
35
  _ref$tooltipDelay = _ref.tooltipDelay,
37
36
  tooltipDelay = _ref$tooltipDelay === void 0 ? 0.5 : _ref$tooltipDelay,
38
37
  fillOpacity = _ref.fillOpacity,
@@ -40,12 +39,13 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
40
39
  focusable = _ref.focusable,
41
40
  disable = _ref.disable,
42
41
  iconSpinning = _ref.spin,
42
+ styles = _ref.styles,
43
43
  rest = _objectWithoutProperties(_ref, _excluded);
44
44
  var _useStyles = useStyles({
45
45
  active: Boolean(active),
46
46
  glass: Boolean(glass)
47
47
  }),
48
- styles = _useStyles.styles,
48
+ s = _useStyles.styles,
49
49
  cx = _useStyles.cx;
50
50
  var _useMemo = useMemo(function () {
51
51
  return calcSize(size);
@@ -61,7 +61,7 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
61
61
  size: size === 'site' ? 'normal' : size
62
62
  };
63
63
  var content = icon && /*#__PURE__*/_jsx(Icon, _objectSpread(_objectSpread({
64
- className: styles.icon,
64
+ className: s.icon,
65
65
  icon: icon
66
66
  }, iconProps), {}, {
67
67
  spin: iconSpinning
@@ -82,7 +82,7 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
82
82
  }, [loading, disable, setTooltipOpen, onClick]);
83
83
  var actionIconBlock = /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
84
84
  align: 'center',
85
- className: cx(styles.block, disable ? styles.disabled : styles.normal, className),
85
+ className: cx(s.block, disable ? s.disabled : s.normal, className),
86
86
  horizontal: true,
87
87
  justify: 'center',
88
88
  onClick: handleClick,
@@ -101,10 +101,12 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
101
101
  mouseEnterDelay: tooltipDelay,
102
102
  onOpenChange: setTooltipOpen,
103
103
  open: tooltipOpen,
104
- overlayStyle: _objectSpread({
105
- pointerEvents: 'none'
106
- }, overlayStyle),
107
104
  placement: placement,
105
+ styles: _objectSpread(_objectSpread({}, styles), {}, {
106
+ root: _objectSpread({
107
+ pointerEvents: 'none'
108
+ }, styles === null || styles === void 0 ? void 0 : styles.root)
109
+ }),
108
110
  title: title,
109
111
  children: actionIconBlock
110
112
  });
@@ -47,7 +47,7 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
47
47
  cursor: 'default'
48
48
  }, style)
49
49
  }, rest);
50
- return isDefaultAntAvatar ? /*#__PURE__*/_jsx(AntAvatar, _objectSpread({
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)) : /*#__PURE__*/_jsx(AntAvatar, _objectSpread(_objectSpread({
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
- /// <reference types="react" />
1
+ import { ReactNode } from 'react';
2
2
  import { HighlighterProps } from './type';
3
- export declare const HighlighterFullFeatured: import("react").NamedExoticComponent<HighlighterProps>;
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", "bodyRender", "actionsRender", "copyable", "type", "defalutExpand"];
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: children,
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: children,
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
- }), body]
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 _useThemeMode = useThemeMode(),
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, {
@@ -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: tirmedChildren
72
+ children: body
69
73
  }));
70
74
  return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
71
75
  className: cx(styles.container, !wrap && styles.nowrap, className),
@@ -1,13 +1,12 @@
1
- import { colorScales } from "../styles/colors/colors";
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 = colorScales.gray[type][11];
5
- // const colorTextSecondary = colorScales.gray[type][10];
6
- var colorTextTertiary = colorScales.gray[type][7];
7
- var colorRed = isDarkMode ? colorScales.red[type][9] : colorScales.volcano[type][9];
8
- var colorOrange = isDarkMode ? colorScales.gold[type][9] : colorScales.orange[type][9];
9
- var colorGreen = isDarkMode ? colorScales.lime[type][9] : colorScales.green[type][9];
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
@@ -30,6 +30,7 @@ export interface HighlighterProps extends DivProps {
30
30
  * @default true
31
31
  */
32
32
  defalutExpand?: boolean;
33
+ enableTransformer?: boolean;
33
34
  fileName?: string;
34
35
  fullFeatured?: boolean;
35
36
  icon?: ReactNode;
@@ -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, {
@@ -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 MermaidRender = useMermaid(children);
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: children,
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: children,
53
+ content: tirmedChildren,
53
54
  copyable: copyable,
54
55
  showLanguage: showLanguage,
55
56
  style: style,
@@ -17,7 +17,9 @@ var Tooltip = /*#__PURE__*/memo(function (_ref) {
17
17
  cx = _useStyles.cx;
18
18
  return /*#__PURE__*/_jsx(AntdTooltip, _objectSpread({
19
19
  arrow: arrow,
20
- overlayClassName: cx(styles.tooltip, className)
20
+ classNames: {
21
+ root: cx(styles.tooltip, className)
22
+ }
21
23
  }, rest));
22
24
  });
23
25
  export default Tooltip;
@@ -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 { useTheme, useThemeMode } from 'antd-style';
8
- import { memo, useMemo } from 'react';
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 token = useTheme();
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: "data:text/css;base64,".concat(giscusTheme)
40
+ theme: theme
47
41
  }, rest))
48
42
  });
49
43
  });
@@ -1,3 +1,2 @@
1
- import { Theme } from 'antd-style';
2
- export declare const genStyles: (token: Theme, isDarkMode: boolean) => import("antd-style").SerializedStyles;
1
+ export declare const useStyles: () => string;
3
2
  export declare const formatLang: (lang: string) => string;
@@ -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 { colorScales } from "../../styles/colors/colors";
6
- export var genStyles = function genStyles(token, isDarkMode) {
7
- var type = isDarkMode ? 'dark' : 'light';
8
- var colorText = colorScales.gray[type][11];
9
- var colorTextSecondary = colorScales.gray[type][10];
10
- var colorTextTertiary = colorScales.gray[type][7];
11
- var colorRed = isDarkMode ? colorScales.red[type][9] : colorScales.volcano[type][9];
12
- var colorOrange = isDarkMode ? colorScales.gold[type][9] : colorScales.orange[type][9];
13
- var colorGreen = isDarkMode ? colorScales.lime[type][9] : colorScales.green[type][9];
14
- var colorBlue = isDarkMode ? colorScales.blue[type][9] : colorScales.geekblue[type][9];
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
- return 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, token.colorText, token.colorFillTertiary, token.colorBorderSecondary, token.colorFillSecondary, token.colorBorder, token.colorFillSecondary, token.colorBorder, token.colorFillSecondary, readableColor(token.colorPrimary), token.colorPrimary, token.colorPrimaryBorder, token.colorPrimaryHover, token.colorPrimaryBorderHover, token.colorPrimaryActive, rgba(readableColor(token.colorPrimary), 0.5), rgba(token.colorPrimary, 0.5), rgba(token.colorPrimaryBorder, 0.5), token.colorFillQuaternary, token.colorFillTertiary, token.colorBorder, token.colorText, token.colorTextSecondary, token.colorTextQuaternary, token.colorBgElevated, token.colorFillQuaternary, token.colorBorder, token.colorBorderSecondary, token.colorFillQuaternary, token.colorFillTertiary, token.colorInfo, token.colorInfoBorderHover, token.colorInfoBorder, token.colorInfoBg, token.colorSuccess, token.colorWarning, token.colorWarningBorder, token.colorWarningBg, token.colorError, token.colorErrorBorder, token.colorErrorBg, token.colorBgContainer, token.colorInfoBg, token.colorFillSecondary, token.colorInfoBgHover, colorText, loaderContainer, token.colorInfoBorderHover, token.borderRadius, loadingImage);
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 "../utils/copyToClipboard";
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";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ColorScaleItem } from "../styles/colors/colors";
2
+ import { ColorScaleItem } from '../types';
3
3
  export interface ColorScalesProps {
4
4
  /**
5
5
  * @description Index of the mid highlight color in the scale
@@ -0,0 +1,3 @@
1
+ import { ColorScaleItem } from '../types';
2
+ declare const blue: ColorScaleItem;
3
+ export default blue;
@@ -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,3 @@
1
+ import { ColorScaleItem } from '../types';
2
+ declare const cyan: ColorScaleItem;
3
+ export default cyan;
@@ -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,3 @@
1
+ import { ColorScaleItem } from '../types';
2
+ declare const geekblue: ColorScaleItem;
3
+ export default geekblue;
@@ -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,3 @@
1
+ import { ColorScaleItem } from '../types';
2
+ declare const gold: ColorScaleItem;
3
+ export default gold;
@@ -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,3 @@
1
+ import { ColorScaleItem } from '../types';
2
+ declare const gray: ColorScaleItem;
3
+ export default gray;
@@ -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,3 @@
1
+ import { ColorScaleItem } from '../types';
2
+ declare const green: ColorScaleItem;
3
+ export default green;
@@ -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';