@tidbcloud/uikit 2.0.0-beta.11 → 2.0.0-beta.13

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 (42) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/biz/CodeBlock/index.cjs +4 -4
  3. package/dist/biz/CodeBlock/index.js +4 -4
  4. package/dist/biz/Dot/index.cjs +1 -1
  5. package/dist/biz/Dot/index.js +1 -1
  6. package/dist/biz/Form/CopyText.cjs +4 -4
  7. package/dist/biz/Form/CopyText.js +4 -4
  8. package/dist/biz/Form/FormActions.cjs +1 -1
  9. package/dist/biz/Form/FormActions.js +1 -1
  10. package/dist/biz/LabelTooltip/index.cjs +1 -1
  11. package/dist/biz/LabelTooltip/index.js +1 -1
  12. package/dist/biz/PageShell/index.cjs +3 -3
  13. package/dist/biz/PageShell/index.js +3 -3
  14. package/dist/biz/PhoneInput/styles.cjs +3 -3
  15. package/dist/biz/PhoneInput/styles.js +3 -3
  16. package/dist/biz/PropertyCard/index.cjs +1 -1
  17. package/dist/biz/PropertyCard/index.js +1 -1
  18. package/dist/biz/SearchArea/index.cjs +2 -2
  19. package/dist/biz/SearchArea/index.js +2 -2
  20. package/dist/biz/Table/BasicTable/BasicTable.styles.cjs +2 -2
  21. package/dist/biz/Table/BasicTable/BasicTable.styles.js +2 -2
  22. package/dist/biz/Table/TablePagination.cjs +3 -3
  23. package/dist/biz/Table/TablePagination.js +3 -3
  24. package/dist/biz/TimeRangePicker/AbsoluteTimeRangePicker.cjs +1 -1
  25. package/dist/biz/TimeRangePicker/AbsoluteTimeRangePicker.js +1 -1
  26. package/dist/biz/TimeRangePicker/index.cjs +3 -3
  27. package/dist/biz/TimeRangePicker/index.js +3 -3
  28. package/dist/biz/TransferTree/index.cjs +2 -2
  29. package/dist/biz/TransferTree/index.js +2 -2
  30. package/dist/biz/Tree/index.cjs +11 -11
  31. package/dist/biz/Tree/index.js +11 -11
  32. package/dist/primitive/Prism/Prism.cjs +1 -1
  33. package/dist/primitive/Prism/Prism.js +1 -1
  34. package/dist/primitive/Prism/prism-theme.cjs +20 -20
  35. package/dist/primitive/Prism/prism-theme.js +20 -20
  36. package/dist/primitive/TextInput/TextInput.cjs +3 -3
  37. package/dist/primitive/TextInput/TextInput.js +3 -3
  38. package/dist/theme/fns/variant.cjs +4 -4
  39. package/dist/theme/fns/variant.js +4 -4
  40. package/dist/theme/theme.cjs +41 -41
  41. package/dist/theme/theme.js +41 -41
  42. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.13
4
+
5
+ ### Patch Changes
6
+
7
+ - map gray color to carbon
8
+
9
+ ## 2.0.0-beta.12
10
+
11
+ ### Minor Changes
12
+
13
+ - map gray color to carbon
14
+
3
15
  ## 2.0.0-beta.11
4
16
 
5
17
  ### Patch Changes
@@ -55,9 +55,9 @@ const CodeBlock = ({
55
55
  {
56
56
  p: "md",
57
57
  mah,
58
- bg: "gray.1",
58
+ bg: "carbon.2",
59
59
  sx: (theme) => ({
60
- border: `1px solid ${theme.colors.gray[4]}`,
60
+ border: `1px solid ${theme.colors.carbon[5]}`,
61
61
  borderRadius: theme.defaultRadius,
62
62
  overflow: "auto"
63
63
  }),
@@ -87,7 +87,7 @@ const CodeBlock = ({
87
87
  )
88
88
  }
89
89
  ),
90
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Group.Group, { spacing: 4, sx: (theme) => ({ position: "absolute", top: 16, right: 16, color: theme.colors.gray[7] }), children: [
90
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Group.Group, { spacing: 4, sx: (theme) => ({ position: "absolute", top: 16, right: 16, color: theme.colors.carbon[8] }), children: [
91
91
  foldIconVisible && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Tooltip.Tooltip, { label: folded ? "Expand" : "Collapse", withArrow: true, position: "top", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
92
92
  ActionIcon.ActionIcon,
93
93
  {
@@ -120,7 +120,7 @@ const CopyText = ({ children, value, ...rest }) => {
120
120
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
121
121
  Code.Code,
122
122
  {
123
- bg: "gray.2",
123
+ bg: "carbon.3",
124
124
  ...rest,
125
125
  p: 8,
126
126
  sx: (theme) => {
@@ -53,9 +53,9 @@ const CodeBlock = ({
53
53
  {
54
54
  p: "md",
55
55
  mah,
56
- bg: "gray.1",
56
+ bg: "carbon.2",
57
57
  sx: (theme) => ({
58
- border: `1px solid ${theme.colors.gray[4]}`,
58
+ border: `1px solid ${theme.colors.carbon[5]}`,
59
59
  borderRadius: theme.defaultRadius,
60
60
  overflow: "auto"
61
61
  }),
@@ -85,7 +85,7 @@ const CodeBlock = ({
85
85
  )
86
86
  }
87
87
  ),
88
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { spacing: 4, sx: (theme) => ({ position: "absolute", top: 16, right: 16, color: theme.colors.gray[7] }), children: [
88
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { spacing: 4, sx: (theme) => ({ position: "absolute", top: 16, right: 16, color: theme.colors.carbon[8] }), children: [
89
89
  foldIconVisible && /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { label: folded ? "Expand" : "Collapse", withArrow: true, position: "top", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
90
90
  ActionIcon,
91
91
  {
@@ -118,7 +118,7 @@ const CopyText = ({ children, value, ...rest }) => {
118
118
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
119
119
  Code,
120
120
  {
121
- bg: "gray.2",
121
+ bg: "carbon.3",
122
122
  ...rest,
123
123
  p: 8,
124
124
  sx: (theme) => {
@@ -9,7 +9,7 @@ const Dot = ({ color, size = 8, ...rest }) => {
9
9
  sx: (theme) => {
10
10
  var _a;
11
11
  return {
12
- backgroundColor: ((_a = theme.colors[color]) == null ? void 0 : _a[5]) ?? theme.colors.gray[5],
12
+ backgroundColor: ((_a = theme.colors[color]) == null ? void 0 : _a[5]) ?? theme.colors.carbon[6],
13
13
  height: size,
14
14
  width: size,
15
15
  borderRadius: "50%"
@@ -7,7 +7,7 @@ const Dot = ({ color, size = 8, ...rest }) => {
7
7
  sx: (theme) => {
8
8
  var _a;
9
9
  return {
10
- backgroundColor: ((_a = theme.colors[color]) == null ? void 0 : _a[5]) ?? theme.colors.gray[5],
10
+ backgroundColor: ((_a = theme.colors[color]) == null ? void 0 : _a[5]) ?? theme.colors.carbon[6],
11
11
  height: size,
12
12
  width: size,
13
13
  borderRadius: "50%"
@@ -27,8 +27,8 @@ const FormCopyText = ({
27
27
  paddingRight: 8,
28
28
  height: 40,
29
29
  borderRadius: theme.defaultRadius,
30
- backgroundColor: theme.colors.gray[1],
31
- border: `1px solid ${theme.colors.gray[4]}`
30
+ backgroundColor: theme.colors.carbon[2],
31
+ border: `1px solid ${theme.colors.carbon[5]}`
32
32
  }),
33
33
  props.sx
34
34
  ]),
@@ -38,7 +38,7 @@ const FormCopyText = ({
38
38
  index.Typography,
39
39
  {
40
40
  variant: "body-lg",
41
- c: "gray.7",
41
+ c: "carbon.8",
42
42
  sx: styles.mergeSxList([
43
43
  () => ({
44
44
  flex: "1",
@@ -53,7 +53,7 @@ const FormCopyText = ({
53
53
  children: value
54
54
  }
55
55
  ),
56
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Tooltip.Tooltip, { label: copied ? "Copied" : "Copy", withArrow: true, ...tooltipProps, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ActionIcon.ActionIcon, { color: "gray.7", variant: "transparent", onClick: copy, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
56
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Tooltip.Tooltip, { label: copied ? "Copied" : "Copy", withArrow: true, ...tooltipProps, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ActionIcon.ActionIcon, { color: "carbon.8", variant: "transparent", onClick: copy, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
57
57
  Copy01,
58
58
  {
59
59
  size,
@@ -25,8 +25,8 @@ const FormCopyText = ({
25
25
  paddingRight: 8,
26
26
  height: 40,
27
27
  borderRadius: theme.defaultRadius,
28
- backgroundColor: theme.colors.gray[1],
29
- border: `1px solid ${theme.colors.gray[4]}`
28
+ backgroundColor: theme.colors.carbon[2],
29
+ border: `1px solid ${theme.colors.carbon[5]}`
30
30
  }),
31
31
  props.sx
32
32
  ]),
@@ -36,7 +36,7 @@ const FormCopyText = ({
36
36
  Typography,
37
37
  {
38
38
  variant: "body-lg",
39
- c: "gray.7",
39
+ c: "carbon.8",
40
40
  sx: mergeSxList([
41
41
  () => ({
42
42
  flex: "1",
@@ -51,7 +51,7 @@ const FormCopyText = ({
51
51
  children: value
52
52
  }
53
53
  ),
54
- /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { label: copied ? "Copied" : "Copy", withArrow: true, ...tooltipProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ActionIcon, { color: "gray.7", variant: "transparent", onClick: copy, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
54
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { label: copied ? "Copied" : "Copy", withArrow: true, ...tooltipProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ActionIcon, { color: "carbon.8", variant: "transparent", onClick: copy, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
55
55
  IconCopy01,
56
56
  {
57
57
  size,
@@ -17,7 +17,7 @@ const FormActions = ({
17
17
  }) => {
18
18
  const style = index.TYPOGRAPHY_STYLES_MAP["action-md"];
19
19
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Flex.Flex, { justify: "flex-end", mt: 24, ...rest, children: [
20
- cancelText && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Button.Button, { onClick: onCancel, mr: 16, variant: "default", fw: style.fw, fs: style.fs, c: "gray.7", ...cancelProps, children: cancelText }),
20
+ cancelText && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Button.Button, { onClick: onCancel, mr: 16, variant: "default", fw: style.fw, fs: style.fs, ...cancelProps, children: cancelText }),
21
21
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Button.Button, { type: "submit", onClick: onConfirm, loading, disabled, ...confirmProps, children: confirmText })
22
22
  ] });
23
23
  };
@@ -15,7 +15,7 @@ const FormActions = ({
15
15
  }) => {
16
16
  const style = TYPOGRAPHY_STYLES_MAP["action-md"];
17
17
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "flex-end", mt: 24, ...rest, children: [
18
- cancelText && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: onCancel, mr: 16, variant: "default", fw: style.fw, fs: style.fs, c: "gray.7", ...cancelProps, children: cancelText }),
18
+ cancelText && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: onCancel, mr: 16, variant: "default", fw: style.fw, fs: style.fs, ...cancelProps, children: cancelText }),
19
19
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "submit", onClick: onConfirm, loading, disabled, ...confirmProps, children: confirmText })
20
20
  ] });
21
21
  };
@@ -7,7 +7,7 @@ const HoverCard = require("../../node_modules/.pnpm/@mantine_core@5.10.4_patch_h
7
7
  const Box = require("../../node_modules/.pnpm/@mantine_core@5.10.4_patch_hash_k3wzpm5n4esvq7igbvcsgyfoja_@emotion_react@11.13.0_@mantine_ho_u2jurujayhgo5kjqawpkatsdsi/node_modules/@mantine/core/esm/Box/Box.cjs");
8
8
  function LabelTooltip({ label, ...rest }) {
9
9
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(HoverCard.HoverCard, { shadow: "md", withArrow: true, withinPortal: true, position: "top", ...rest, children: [
10
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(HoverCard.HoverCard.Target, { children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { sx: { marginLeft: 8, verticalAlign: "middle", position: "relative", top: 1 }, component: "span", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(InfoCircle, { cursor: "pointer", size: 14, color: "gray.7" }) }) }),
10
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(HoverCard.HoverCard.Target, { children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { sx: { marginLeft: 8, verticalAlign: "middle", position: "relative", top: 1 }, component: "span", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(InfoCircle, { cursor: "pointer", size: 14, color: "carbon.8" }) }) }),
11
11
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(HoverCard.HoverCard.Dropdown, { maw: 480, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Typography, { variant: "body-lg", children: label }) })
12
12
  ] });
13
13
  }
@@ -5,7 +5,7 @@ import { HoverCard } from "../../node_modules/.pnpm/@mantine_core@5.10.4_patch_h
5
5
  import { Box } from "../../node_modules/.pnpm/@mantine_core@5.10.4_patch_hash_k3wzpm5n4esvq7igbvcsgyfoja_@emotion_react@11.13.0_@mantine_ho_u2jurujayhgo5kjqawpkatsdsi/node_modules/@mantine/core/esm/Box/Box.js";
6
6
  function LabelTooltip({ label, ...rest }) {
7
7
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(HoverCard, { shadow: "md", withArrow: true, withinPortal: true, position: "top", ...rest, children: [
8
- /* @__PURE__ */ jsxRuntimeExports.jsx(HoverCard.Target, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { sx: { marginLeft: 8, verticalAlign: "middle", position: "relative", top: 1 }, component: "span", children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconInfoCircle, { cursor: "pointer", size: 14, color: "gray.7" }) }) }),
8
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HoverCard.Target, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { sx: { marginLeft: 8, verticalAlign: "middle", position: "relative", top: 1 }, component: "span", children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconInfoCircle, { cursor: "pointer", size: 14, color: "carbon.8" }) }) }),
9
9
  /* @__PURE__ */ jsxRuntimeExports.jsx(HoverCard.Dropdown, { maw: 480, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body-lg", children: label }) })
10
10
  ] });
11
11
  }
@@ -57,10 +57,10 @@ const PageShell = ({
57
57
  ActionIcon.ActionIcon,
58
58
  {
59
59
  variant: "light",
60
- bg: "gray.2",
60
+ bg: "carbon.3",
61
61
  sx: (theme) => ({
62
62
  ":hover": {
63
- backgroundColor: theme.colors.gray[3]
63
+ backgroundColor: theme.colors.carbon[4]
64
64
  }
65
65
  }),
66
66
  onClick: () => {
@@ -72,7 +72,7 @@ const PageShell = ({
72
72
  history.back();
73
73
  }
74
74
  },
75
- children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ChevronLeft, { size: 20, color: "gray" })
75
+ children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ChevronLeft, { size: 20 })
76
76
  }
77
77
  );
78
78
  const page = /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [
@@ -55,10 +55,10 @@ const PageShell = ({
55
55
  ActionIcon,
56
56
  {
57
57
  variant: "light",
58
- bg: "gray.2",
58
+ bg: "carbon.3",
59
59
  sx: (theme) => ({
60
60
  ":hover": {
61
- backgroundColor: theme.colors.gray[3]
61
+ backgroundColor: theme.colors.carbon[4]
62
62
  }
63
63
  }),
64
64
  onClick: () => {
@@ -70,7 +70,7 @@ const PageShell = ({
70
70
  history.back();
71
71
  }
72
72
  },
73
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconChevronLeft, { size: 20, color: "gray" })
73
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconChevronLeft, { size: 20 })
74
74
  }
75
75
  );
76
76
  const page = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
@@ -16,16 +16,16 @@ const useStyles = createStyles.createStyles((theme, params) => {
16
16
  "&.react-tel-input": {
17
17
  ".form-control": {
18
18
  // see more https://github.com/mantinedev/mantine/blob/master/src/mantine-core/src/Input/Input.styles.ts#LL40C23-L40C89
19
- backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.white,
19
+ backgroundColor: theme.colorScheme === "dark" ? theme.colors.carbon[7] : theme.white,
20
20
  fontSize: 14,
21
- color: theme.colorScheme === "dark" ? theme.colors.gray[8] : theme.black,
21
+ color: theme.colorScheme === "dark" ? theme.colors.carbon[8] : theme.black,
22
22
  width: "100%",
23
23
  height: 40,
24
24
  minHeight: 40,
25
25
  lineHeight: "38px",
26
26
  borderRadius: theme.defaultRadius,
27
27
  padding: "0 12px",
28
- border: hasError ? `1px solid ${invalidColor}` : `1px solid ${theme.colors.gray[4]}`,
28
+ border: hasError ? `1px solid ${invalidColor}` : `1px solid ${theme.colors.carbon[5]}`,
29
29
  marginBottom: hasError ? 5 : void 0,
30
30
  outline: "none",
31
31
  "::placeholder": {
@@ -14,16 +14,16 @@ const useStyles = createStyles((theme, params) => {
14
14
  "&.react-tel-input": {
15
15
  ".form-control": {
16
16
  // see more https://github.com/mantinedev/mantine/blob/master/src/mantine-core/src/Input/Input.styles.ts#LL40C23-L40C89
17
- backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.white,
17
+ backgroundColor: theme.colorScheme === "dark" ? theme.colors.carbon[7] : theme.white,
18
18
  fontSize: 14,
19
- color: theme.colorScheme === "dark" ? theme.colors.gray[8] : theme.black,
19
+ color: theme.colorScheme === "dark" ? theme.colors.carbon[8] : theme.black,
20
20
  width: "100%",
21
21
  height: 40,
22
22
  minHeight: 40,
23
23
  lineHeight: "38px",
24
24
  borderRadius: theme.defaultRadius,
25
25
  padding: "0 12px",
26
- border: hasError ? `1px solid ${invalidColor}` : `1px solid ${theme.colors.gray[4]}`,
26
+ border: hasError ? `1px solid ${invalidColor}` : `1px solid ${theme.colors.carbon[5]}`,
27
27
  marginBottom: hasError ? 5 : void 0,
28
28
  outline: "none",
29
29
  "::placeholder": {
@@ -38,7 +38,7 @@ const Item = ({ label, children, labelProps, valueProps, ...rest }) => {
38
38
  ] });
39
39
  };
40
40
  const Divider = (props) => {
41
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Divider$1.Divider, { color: "gray.3", my: "xs", ...props });
41
+ return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Divider$1.Divider, { color: "carbon.4", my: "xs", ...props });
42
42
  };
43
43
  PropertyCard.Item = Item;
44
44
  PropertyCard.Divider = Divider;
@@ -36,7 +36,7 @@ const Item = ({ label, children, labelProps, valueProps, ...rest }) => {
36
36
  ] });
37
37
  };
38
38
  const Divider = (props) => {
39
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, { color: "gray.3", my: "xs", ...props });
39
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, { color: "carbon.4", my: "xs", ...props });
40
40
  };
41
41
  PropertyCard.Item = Item;
42
42
  PropertyCard.Divider = Divider;
@@ -157,11 +157,11 @@ function SearchArea(props) {
157
157
  x.name
158
158
  )),
159
159
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Box.Box, { sx: SX_Y_MID, children: [
160
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Button.Button, { variant: "subtle", color: "gray.7", onClick: handleReset, children: [
160
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Button.Button, { variant: "subtle", color: "carbon.8", onClick: handleReset, children: [
161
161
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Eraser, { size: 16, style: { marginRight: 4 } }),
162
162
  "Clear Filters"
163
163
  ] }) }),
164
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { ml: 16, sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Button.Button, { variant: "subtle", color: "gray.7", onClick: handleSubmit, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(RefreshCw01, { size: 16 }) }) })
164
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { ml: 16, sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Button.Button, { variant: "subtle", color: "carbon.8", onClick: handleSubmit, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(RefreshCw01, { size: 16 }) }) })
165
165
  ] })
166
166
  ] }) }),
167
167
  props.debugEnabled && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Box.Box, { sx: { height: 320 }, children: [
@@ -155,11 +155,11 @@ function SearchArea(props) {
155
155
  x.name
156
156
  )),
157
157
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: SX_Y_MID, children: [
158
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { variant: "subtle", color: "gray.7", onClick: handleReset, children: [
158
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { variant: "subtle", color: "carbon.8", onClick: handleReset, children: [
159
159
  /* @__PURE__ */ jsxRuntimeExports.jsx(IconEraser, { size: 16, style: { marginRight: 4 } }),
160
160
  "Clear Filters"
161
161
  ] }) }),
162
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { ml: 16, sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "subtle", color: "gray.7", onClick: handleSubmit, children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconRefreshCw01, { size: 16 }) }) })
162
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { ml: 16, sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "subtle", color: "carbon.8", onClick: handleSubmit, children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconRefreshCw01, { size: 16 }) }) })
163
163
  ] })
164
164
  ] }) }),
165
165
  props.debugEnabled && /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: { height: 320 }, children: [
@@ -12,7 +12,7 @@ const useStyles = createStyles.createStyles((theme, _params, getRef) => {
12
12
  borderRadius: theme.defaultRadius,
13
13
  tfoot: {
14
14
  "tr th": {
15
- backgroundColor: theme.colors.gray[0],
15
+ backgroundColor: theme.colors.carbon[1],
16
16
  ":first-of-type": {
17
17
  borderBottomLeftRadius: theme.defaultRadius
18
18
  },
@@ -24,7 +24,7 @@ const useStyles = createStyles.createStyles((theme, _params, getRef) => {
24
24
  },
25
25
  thead: {
26
26
  "tr th": {
27
- backgroundColor: theme.colors.gray[0],
27
+ backgroundColor: theme.colors.carbon[1],
28
28
  ":first-of-type": {
29
29
  borderTopLeftRadius: theme.defaultRadius
30
30
  },
@@ -10,7 +10,7 @@ const useStyles = createStyles((theme, _params, getRef) => {
10
10
  borderRadius: theme.defaultRadius,
11
11
  tfoot: {
12
12
  "tr th": {
13
- backgroundColor: theme.colors.gray[0],
13
+ backgroundColor: theme.colors.carbon[1],
14
14
  ":first-of-type": {
15
15
  borderBottomLeftRadius: theme.defaultRadius
16
16
  },
@@ -22,7 +22,7 @@ const useStyles = createStyles((theme, _params, getRef) => {
22
22
  },
23
23
  thead: {
24
24
  "tr th": {
25
- backgroundColor: theme.colors.gray[0],
25
+ backgroundColor: theme.colors.carbon[1],
26
26
  ":first-of-type": {
27
27
  borderTopLeftRadius: theme.defaultRadius
28
28
  },
@@ -12,11 +12,11 @@ const TablePagination = ({ ...rest }) => {
12
12
  (theme) => ({
13
13
  item: {
14
14
  border: "none",
15
- color: theme.colors.gray[9],
15
+ color: theme.colors.carbon[9],
16
16
  borderRadius: theme.defaultRadius,
17
17
  "&[data-active]": {
18
- color: theme.colors.gray[9],
19
- background: theme.colors.gray[3]
18
+ color: theme.colors.carbon[9],
19
+ background: theme.colors.carbon[4]
20
20
  }
21
21
  }
22
22
  }),
@@ -10,11 +10,11 @@ const TablePagination = ({ ...rest }) => {
10
10
  (theme) => ({
11
11
  item: {
12
12
  border: "none",
13
- color: theme.colors.gray[9],
13
+ color: theme.colors.carbon[9],
14
14
  borderRadius: theme.defaultRadius,
15
15
  "&[data-active]": {
16
- color: theme.colors.gray[9],
17
- background: theme.colors.gray[3]
16
+ color: theme.colors.carbon[9],
17
+ background: theme.colors.carbon[4]
18
18
  }
19
19
  }
20
20
  }),
@@ -26,7 +26,7 @@ const AbsoluteTimeRangePicker = ({
26
26
  onReturnClick
27
27
  }) => {
28
28
  const theme = MantineProvider.useMantineTheme();
29
- const dayStyle = (_date, modifiers) => modifiers.weekend && !modifiers.disabled && !modifiers.selected && !modifiers.outside && !modifiers.selectedInRange ? { color: theme.colors.gray[7] } : null;
29
+ const dayStyle = (_date, modifiers) => modifiers.weekend && !modifiers.disabled && !modifiers.selected && !modifiers.outside && !modifiers.selectedInRange ? { color: theme.colors.carbon[8] } : null;
30
30
  const [start, setStart] = React.useState(() => new Date(value[0] * 1e3));
31
31
  const [end, setEnd] = React.useState(() => new Date(value[1] * 1e3));
32
32
  const startAfterEnd = React.useMemo(() => {
@@ -25,7 +25,7 @@ const AbsoluteTimeRangePicker = ({
25
25
  onReturnClick
26
26
  }) => {
27
27
  const theme = useMantineTheme();
28
- const dayStyle = (_date, modifiers) => modifiers.weekend && !modifiers.disabled && !modifiers.selected && !modifiers.outside && !modifiers.selectedInRange ? { color: theme.colors.gray[7] } : null;
28
+ const dayStyle = (_date, modifiers) => modifiers.weekend && !modifiers.disabled && !modifiers.selected && !modifiers.outside && !modifiers.selectedInRange ? { color: theme.colors.carbon[8] } : null;
29
29
  const [start, setStart] = useState(() => new Date(value[0] * 1e3));
30
30
  const [end, setEnd] = useState(() => new Date(value[1] * 1e3));
31
31
  const startAfterEnd = useMemo(() => {
@@ -120,7 +120,7 @@ const TimeRangePicker = ({
120
120
  Menu.Menu.Item,
121
121
  {
122
122
  sx: (theme) => ({
123
- background: seconds === selectedRelativeItem ? theme.colors.gray[2] : ""
123
+ background: seconds === selectedRelativeItem ? theme.colors.carbon[3] : ""
124
124
  }),
125
125
  onClick: () => onChange == null ? void 0 : onChange({ type: "relative", value: seconds }),
126
126
  children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Text.Text, { children: [
@@ -142,8 +142,8 @@ const DurationBadge = ({ children }) => {
142
142
  display: "inline-block",
143
143
  w: 35,
144
144
  py: 3,
145
- bg: "gray.4",
146
- c: "gray.7",
145
+ bg: "carbon.5",
146
+ c: "carbon.8",
147
147
  fz: 10,
148
148
  lh: "14px",
149
149
  ta: "center",
@@ -119,7 +119,7 @@ const TimeRangePicker = ({
119
119
  Menu.Item,
120
120
  {
121
121
  sx: (theme) => ({
122
- background: seconds === selectedRelativeItem ? theme.colors.gray[2] : ""
122
+ background: seconds === selectedRelativeItem ? theme.colors.carbon[3] : ""
123
123
  }),
124
124
  onClick: () => onChange == null ? void 0 : onChange({ type: "relative", value: seconds }),
125
125
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { children: [
@@ -141,8 +141,8 @@ const DurationBadge = ({ children }) => {
141
141
  display: "inline-block",
142
142
  w: 35,
143
143
  py: 3,
144
- bg: "gray.4",
145
- c: "gray.7",
144
+ bg: "carbon.5",
145
+ c: "carbon.8",
146
146
  fz: 10,
147
147
  lh: "14px",
148
148
  ta: "center",
@@ -91,7 +91,7 @@ const TransferTree = ({
91
91
  });
92
92
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Card.Card, { withBorder: true, className: clsx_m(classes.transferTree, className), children: [
93
93
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: classes.transfer, children: [
94
- sourceHeader ? sourceHeader : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { component: "header", p: 16, sx: (theme) => ({ backgroundColor: theme.colors.gray[2] }), children: "Source" }),
94
+ sourceHeader ? sourceHeader : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { component: "header", p: 16, sx: (theme) => ({ backgroundColor: theme.colors.carbon[3] }), children: "Source" }),
95
95
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: classes.treeWrapper, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
96
96
  index.Tree,
97
97
  {
@@ -108,7 +108,7 @@ const TransferTree = ({
108
108
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ActionIcon.ActionIcon, { variant: "default", disabled: checkedTarget.size === 0, onClick: ahooks.useMemoizedFn(onMoveToLeft), children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ChevronLeft, { size: 14 }) })
109
109
  ] }),
110
110
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: classes.transfer, children: [
111
- targetHeader ? targetHeader : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { component: "header", h: 60, p: 16, sx: (theme) => ({ backgroundColor: theme.colors.gray[2] }), children: "Target" }),
111
+ targetHeader ? targetHeader : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { component: "header", h: 60, p: 16, sx: (theme) => ({ backgroundColor: theme.colors.carbon[3] }), children: "Target" }),
112
112
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: classes.treeWrapper, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Tree, { ...treeProps, checkable: true, treeData: renderedTarget, onCheck: ahooks.useMemoizedFn(onCheckRightTree) }) })
113
113
  ] })
114
114
  ] });
@@ -89,7 +89,7 @@ const TransferTree = ({
89
89
  });
90
90
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { withBorder: true, className: clsx(classes.transferTree, className), children: [
91
91
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes.transfer, children: [
92
- sourceHeader ? sourceHeader : /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { component: "header", p: 16, sx: (theme) => ({ backgroundColor: theme.colors.gray[2] }), children: "Source" }),
92
+ sourceHeader ? sourceHeader : /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { component: "header", p: 16, sx: (theme) => ({ backgroundColor: theme.colors.carbon[3] }), children: "Source" }),
93
93
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes.treeWrapper, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
94
94
  Tree,
95
95
  {
@@ -106,7 +106,7 @@ const TransferTree = ({
106
106
  /* @__PURE__ */ jsxRuntimeExports.jsx(ActionIcon, { variant: "default", disabled: checkedTarget.size === 0, onClick: useMemoizedFn(onMoveToLeft), children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconChevronLeft, { size: 14 }) })
107
107
  ] }),
108
108
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes.transfer, children: [
109
- targetHeader ? targetHeader : /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { component: "header", h: 60, p: 16, sx: (theme) => ({ backgroundColor: theme.colors.gray[2] }), children: "Target" }),
109
+ targetHeader ? targetHeader : /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { component: "header", h: 60, p: 16, sx: (theme) => ({ backgroundColor: theme.colors.carbon[3] }), children: "Target" }),
110
110
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes.treeWrapper, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tree, { ...treeProps, checkable: true, treeData: renderedTarget, onCheck: useMemoizedFn(onCheckRightTree) }) })
111
111
  ] })
112
112
  ] });
@@ -57,7 +57,7 @@ const Tree = React.forwardRef((props, ref) => {
57
57
  lineHeight: "24px"
58
58
  },
59
59
  ".tc-uikit-tree-title": {
60
- color: theme.colors.gray[8]
60
+ color: theme.colors.carbon[8]
61
61
  },
62
62
  ".tc-uikit-tree .tc-uikit-tree-treenode": {
63
63
  display: "flex",
@@ -85,7 +85,7 @@ const Tree = React.forwardRef((props, ref) => {
85
85
  cursor: "default"
86
86
  },
87
87
  ".tc-uikit-tree-switcher > svg": {
88
- color: theme.colors.gray[8],
88
+ color: theme.colors.carbon[8],
89
89
  transition: "transform 0.3s",
90
90
  margin: 0,
91
91
  fontSize: 12,
@@ -110,7 +110,7 @@ const Tree = React.forwardRef((props, ref) => {
110
110
  margin: 0,
111
111
  padding: 0,
112
112
  marginRight: 6,
113
- color: theme.colors.dark[8],
113
+ color: theme.colors.carbon[8],
114
114
  fontSize: 14,
115
115
  fontVariant: "tabular-nums",
116
116
  listStyle: "none",
@@ -133,7 +133,7 @@ const Tree = React.forwardRef((props, ref) => {
133
133
  height: 16,
134
134
  direction: "ltr",
135
135
  backgroundColor: theme.white,
136
- border: `1px solid ${theme.colors.gray[3]}`,
136
+ border: `1px solid ${theme.colors.carbon[4]}`,
137
137
  borderRadius: 2,
138
138
  borderCollapse: "separate",
139
139
  transition: "all 0.3s"
@@ -154,8 +154,8 @@ const Tree = React.forwardRef((props, ref) => {
154
154
  content: '" "'
155
155
  },
156
156
  ".tc-uikit-tree-checkbox-checked .tc-uikit-tree-checkbox-inner": {
157
- backgroundColor: theme.colors.blue[7],
158
- borderColor: theme.colors.blue[7]
157
+ backgroundColor: theme.colors.carbon[8],
158
+ borderColor: theme.colors.carbon[8]
159
159
  },
160
160
  ".tc-uikit-tree-checkbox-checked .tc-uikit-tree-checkbox-inner:after": {
161
161
  position: "absolute",
@@ -181,18 +181,18 @@ const Tree = React.forwardRef((props, ref) => {
181
181
  },
182
182
  ".tc-uikit-tree-checkbox-indeterminate .tc-uikit-tree-checkbox-inner": {
183
183
  backgroundColor: theme.white,
184
- borderColor: theme.colors.gray[3]
184
+ borderColor: theme.colors.carbon[4]
185
185
  },
186
186
  ".tc-uikit-tree-checkbox-disabled .tc-uikit-tree-checkbox-inner": {
187
- backgroundColor: theme.colors.gray[2],
188
- borderColor: theme.colors.gray[3]
187
+ backgroundColor: theme.colors.carbon[3],
188
+ borderColor: theme.colors.carbon[4]
189
189
  },
190
190
  ".tc-uikit-tree-checkbox-disabled.tc-uikit-tree-checkbox-checked .tc-uikit-tree-checkbox-inner:after": {
191
- borderColor: theme.colors.gray[5],
191
+ borderColor: theme.colors.carbon[6],
192
192
  animationName: "none"
193
193
  },
194
194
  ".tc-uikit-tree-checkbox-disabled .tc-uikit-tree-checkbox-inner:after": {
195
- borderColor: theme.colors.gray[3],
195
+ borderColor: theme.colors.carbon[4],
196
196
  borderCollapse: "separate",
197
197
  animationName: "none"
198
198
  }