@tidbcloud/uikit 2.0.0-beta.12 → 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 (40) hide show
  1. package/CHANGELOG.md +6 -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/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.13
4
+
5
+ ### Patch Changes
6
+
7
+ - map gray color to carbon
8
+
3
9
  ## 2.0.0-beta.12
4
10
 
5
11
  ### Minor 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
  }
@@ -55,7 +55,7 @@ const Tree = React__default.forwardRef((props, ref) => {
55
55
  lineHeight: "24px"
56
56
  },
57
57
  ".tc-uikit-tree-title": {
58
- color: theme.colors.gray[8]
58
+ color: theme.colors.carbon[8]
59
59
  },
60
60
  ".tc-uikit-tree .tc-uikit-tree-treenode": {
61
61
  display: "flex",
@@ -83,7 +83,7 @@ const Tree = React__default.forwardRef((props, ref) => {
83
83
  cursor: "default"
84
84
  },
85
85
  ".tc-uikit-tree-switcher > svg": {
86
- color: theme.colors.gray[8],
86
+ color: theme.colors.carbon[8],
87
87
  transition: "transform 0.3s",
88
88
  margin: 0,
89
89
  fontSize: 12,
@@ -108,7 +108,7 @@ const Tree = React__default.forwardRef((props, ref) => {
108
108
  margin: 0,
109
109
  padding: 0,
110
110
  marginRight: 6,
111
- color: theme.colors.dark[8],
111
+ color: theme.colors.carbon[8],
112
112
  fontSize: 14,
113
113
  fontVariant: "tabular-nums",
114
114
  listStyle: "none",
@@ -131,7 +131,7 @@ const Tree = React__default.forwardRef((props, ref) => {
131
131
  height: 16,
132
132
  direction: "ltr",
133
133
  backgroundColor: theme.white,
134
- border: `1px solid ${theme.colors.gray[3]}`,
134
+ border: `1px solid ${theme.colors.carbon[4]}`,
135
135
  borderRadius: 2,
136
136
  borderCollapse: "separate",
137
137
  transition: "all 0.3s"
@@ -152,8 +152,8 @@ const Tree = React__default.forwardRef((props, ref) => {
152
152
  content: '" "'
153
153
  },
154
154
  ".tc-uikit-tree-checkbox-checked .tc-uikit-tree-checkbox-inner": {
155
- backgroundColor: theme.colors.blue[7],
156
- borderColor: theme.colors.blue[7]
155
+ backgroundColor: theme.colors.carbon[8],
156
+ borderColor: theme.colors.carbon[8]
157
157
  },
158
158
  ".tc-uikit-tree-checkbox-checked .tc-uikit-tree-checkbox-inner:after": {
159
159
  position: "absolute",
@@ -179,18 +179,18 @@ const Tree = React__default.forwardRef((props, ref) => {
179
179
  },
180
180
  ".tc-uikit-tree-checkbox-indeterminate .tc-uikit-tree-checkbox-inner": {
181
181
  backgroundColor: theme.white,
182
- borderColor: theme.colors.gray[3]
182
+ borderColor: theme.colors.carbon[4]
183
183
  },
184
184
  ".tc-uikit-tree-checkbox-disabled .tc-uikit-tree-checkbox-inner": {
185
- backgroundColor: theme.colors.gray[2],
186
- borderColor: theme.colors.gray[3]
185
+ backgroundColor: theme.colors.carbon[3],
186
+ borderColor: theme.colors.carbon[4]
187
187
  },
188
188
  ".tc-uikit-tree-checkbox-disabled.tc-uikit-tree-checkbox-checked .tc-uikit-tree-checkbox-inner:after": {
189
- borderColor: theme.colors.gray[5],
189
+ borderColor: theme.colors.carbon[6],
190
190
  animationName: "none"
191
191
  },
192
192
  ".tc-uikit-tree-checkbox-disabled .tc-uikit-tree-checkbox-inner:after": {
193
- borderColor: theme.colors.gray[3],
193
+ borderColor: theme.colors.carbon[4],
194
194
  borderCollapse: "separate",
195
195
  animationName: "none"
196
196
  }
@@ -6,6 +6,6 @@ const prismTheme = require("./prism-theme.cjs");
6
6
  const MantineProvider = require("../../node_modules/.pnpm/@mantine_styles@5.10.4_@emotion_react@11.13.0_react-dom@18.3.1_react@18.3.1/node_modules/@mantine/styles/esm/theme/MantineProvider.cjs");
7
7
  const MantinePrism = (props) => {
8
8
  const theme = MantineProvider.useMantineTheme();
9
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(MantineProvider.MantineProvider, { theme: { colorScheme: theme.colorScheme }, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Prism, { getPrismTheme: prismTheme.getPrismTheme, noCopy: true, scrollAreaComponent: "div", ...props }) });
9
+ return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(MantineProvider.MantineProvider, { theme: { colorScheme: theme.colorScheme, colors: theme.colors }, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Prism, { getPrismTheme: prismTheme.getPrismTheme, noCopy: true, scrollAreaComponent: "div", ...props }) });
10
10
  };
11
11
  exports.MantinePrism = MantinePrism;
@@ -4,7 +4,7 @@ import { getPrismTheme } from "./prism-theme.js";
4
4
  import { useMantineTheme, MantineProvider } from "../../node_modules/.pnpm/@mantine_styles@5.10.4_@emotion_react@11.13.0_react-dom@18.3.1_react@18.3.1/node_modules/@mantine/styles/esm/theme/MantineProvider.js";
5
5
  const MantinePrism = (props) => {
6
6
  const theme = useMantineTheme();
7
- return /* @__PURE__ */ jsxRuntimeExports.jsx(MantineProvider, { theme: { colorScheme: theme.colorScheme }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PrismExport, { getPrismTheme, noCopy: true, scrollAreaComponent: "div", ...props }) });
7
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MantineProvider, { theme: { colorScheme: theme.colorScheme, colors: theme.colors }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PrismExport, { getPrismTheme, noCopy: true, scrollAreaComponent: "div", ...props }) });
8
8
  };
9
9
  export {
10
10
  MantinePrism
@@ -2,44 +2,44 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const dark = (theme) => ({
4
4
  plain: {
5
- color: theme.colors.gray[4],
6
- backgroundColor: theme.colors.dark[8]
5
+ color: theme.colors.carbon[5],
6
+ backgroundColor: theme.colors.carbon[8]
7
7
  },
8
8
  styles: [
9
9
  {
10
10
  types: ["comment"],
11
11
  style: {
12
- color: theme.colors.gray[6]
12
+ color: theme.colors.carbon[7]
13
13
  }
14
14
  },
15
15
  {
16
16
  types: ["string", "inserted", "selector", "atrule"],
17
17
  style: {
18
- color: theme.colors.teal[4]
18
+ color: theme.colors.aqua[4]
19
19
  }
20
20
  },
21
21
  {
22
22
  types: ["number"],
23
23
  style: {
24
- color: theme.colors.blue[4]
24
+ color: theme.colors.peacock[4]
25
25
  }
26
26
  },
27
27
  {
28
28
  types: ["builtin", "char", "constant", "function"],
29
29
  style: {
30
- color: theme.colors.orange[5]
30
+ color: theme.colors.yellow[5]
31
31
  }
32
32
  },
33
33
  {
34
34
  types: ["punctuation"],
35
35
  style: {
36
- color: theme.colors.gray[5]
36
+ color: theme.colors.carbon[6]
37
37
  }
38
38
  },
39
39
  {
40
40
  types: ["variable"],
41
41
  style: {
42
- color: theme.colors.gray[5]
42
+ color: theme.colors.carbon[6]
43
43
  }
44
44
  },
45
45
  {
@@ -57,7 +57,7 @@ const dark = (theme) => ({
57
57
  {
58
58
  types: ["operator"],
59
59
  style: {
60
- color: theme.colors.gray[5]
60
+ color: theme.colors.carbon[6]
61
61
  }
62
62
  },
63
63
  {
@@ -69,39 +69,39 @@ const dark = (theme) => ({
69
69
  {
70
70
  types: ["keyword"],
71
71
  style: {
72
- color: theme.colors.indigo[3]
72
+ color: theme.colors.violet[3]
73
73
  }
74
74
  },
75
75
  {
76
76
  types: ["doctype"],
77
77
  style: {
78
- color: theme.colors.gray[5]
78
+ color: theme.colors.carbon[6]
79
79
  }
80
80
  },
81
81
  {
82
82
  types: ["url"],
83
83
  style: {
84
- color: theme.colors.gray[5]
84
+ color: theme.colors.carbon[6]
85
85
  }
86
86
  }
87
87
  ]
88
88
  });
89
89
  const light = (theme) => ({
90
90
  plain: {
91
- color: theme.colors.gray[9],
92
- backgroundColor: theme.fn.rgba(theme.colors.gray[0], 0.65)
91
+ color: theme.colors.carbon[9],
92
+ backgroundColor: theme.fn.rgba(theme.colors.carbon[1], 0.65)
93
93
  },
94
94
  styles: [
95
95
  {
96
96
  types: ["comment"],
97
97
  style: {
98
- color: theme.colors.gray[6]
98
+ color: theme.colors.carbon[7]
99
99
  }
100
100
  },
101
101
  {
102
102
  types: ["string", "inserted"],
103
103
  style: {
104
- color: theme.colors.indigo[9]
104
+ color: theme.colors.violet[9]
105
105
  }
106
106
  },
107
107
  {
@@ -113,13 +113,13 @@ const light = (theme) => ({
113
113
  {
114
114
  types: ["builtin", "char", "constant", "function", "selector", "atrule"],
115
115
  style: {
116
- color: theme.colors.lime[9]
116
+ color: theme.colors.thyme[9]
117
117
  }
118
118
  },
119
119
  {
120
120
  types: ["punctuation"],
121
121
  style: {
122
- color: theme.colors.gray[7]
122
+ color: theme.colors.carbon[8]
123
123
  }
124
124
  },
125
125
  {
@@ -167,13 +167,13 @@ const light = (theme) => ({
167
167
  {
168
168
  types: ["doctype"],
169
169
  style: {
170
- color: theme.colors.gray[7]
170
+ color: theme.colors.carbon[8]
171
171
  }
172
172
  },
173
173
  {
174
174
  types: ["url"],
175
175
  style: {
176
- color: theme.colors.gray[7]
176
+ color: theme.colors.carbon[8]
177
177
  }
178
178
  }
179
179
  ]
@@ -1,43 +1,43 @@
1
1
  const dark = (theme) => ({
2
2
  plain: {
3
- color: theme.colors.gray[4],
4
- backgroundColor: theme.colors.dark[8]
3
+ color: theme.colors.carbon[5],
4
+ backgroundColor: theme.colors.carbon[8]
5
5
  },
6
6
  styles: [
7
7
  {
8
8
  types: ["comment"],
9
9
  style: {
10
- color: theme.colors.gray[6]
10
+ color: theme.colors.carbon[7]
11
11
  }
12
12
  },
13
13
  {
14
14
  types: ["string", "inserted", "selector", "atrule"],
15
15
  style: {
16
- color: theme.colors.teal[4]
16
+ color: theme.colors.aqua[4]
17
17
  }
18
18
  },
19
19
  {
20
20
  types: ["number"],
21
21
  style: {
22
- color: theme.colors.blue[4]
22
+ color: theme.colors.peacock[4]
23
23
  }
24
24
  },
25
25
  {
26
26
  types: ["builtin", "char", "constant", "function"],
27
27
  style: {
28
- color: theme.colors.orange[5]
28
+ color: theme.colors.yellow[5]
29
29
  }
30
30
  },
31
31
  {
32
32
  types: ["punctuation"],
33
33
  style: {
34
- color: theme.colors.gray[5]
34
+ color: theme.colors.carbon[6]
35
35
  }
36
36
  },
37
37
  {
38
38
  types: ["variable"],
39
39
  style: {
40
- color: theme.colors.gray[5]
40
+ color: theme.colors.carbon[6]
41
41
  }
42
42
  },
43
43
  {
@@ -55,7 +55,7 @@ const dark = (theme) => ({
55
55
  {
56
56
  types: ["operator"],
57
57
  style: {
58
- color: theme.colors.gray[5]
58
+ color: theme.colors.carbon[6]
59
59
  }
60
60
  },
61
61
  {
@@ -67,39 +67,39 @@ const dark = (theme) => ({
67
67
  {
68
68
  types: ["keyword"],
69
69
  style: {
70
- color: theme.colors.indigo[3]
70
+ color: theme.colors.violet[3]
71
71
  }
72
72
  },
73
73
  {
74
74
  types: ["doctype"],
75
75
  style: {
76
- color: theme.colors.gray[5]
76
+ color: theme.colors.carbon[6]
77
77
  }
78
78
  },
79
79
  {
80
80
  types: ["url"],
81
81
  style: {
82
- color: theme.colors.gray[5]
82
+ color: theme.colors.carbon[6]
83
83
  }
84
84
  }
85
85
  ]
86
86
  });
87
87
  const light = (theme) => ({
88
88
  plain: {
89
- color: theme.colors.gray[9],
90
- backgroundColor: theme.fn.rgba(theme.colors.gray[0], 0.65)
89
+ color: theme.colors.carbon[9],
90
+ backgroundColor: theme.fn.rgba(theme.colors.carbon[1], 0.65)
91
91
  },
92
92
  styles: [
93
93
  {
94
94
  types: ["comment"],
95
95
  style: {
96
- color: theme.colors.gray[6]
96
+ color: theme.colors.carbon[7]
97
97
  }
98
98
  },
99
99
  {
100
100
  types: ["string", "inserted"],
101
101
  style: {
102
- color: theme.colors.indigo[9]
102
+ color: theme.colors.violet[9]
103
103
  }
104
104
  },
105
105
  {
@@ -111,13 +111,13 @@ const light = (theme) => ({
111
111
  {
112
112
  types: ["builtin", "char", "constant", "function", "selector", "atrule"],
113
113
  style: {
114
- color: theme.colors.lime[9]
114
+ color: theme.colors.thyme[9]
115
115
  }
116
116
  },
117
117
  {
118
118
  types: ["punctuation"],
119
119
  style: {
120
- color: theme.colors.gray[7]
120
+ color: theme.colors.carbon[8]
121
121
  }
122
122
  },
123
123
  {
@@ -165,13 +165,13 @@ const light = (theme) => ({
165
165
  {
166
166
  types: ["doctype"],
167
167
  style: {
168
- color: theme.colors.gray[7]
168
+ color: theme.colors.carbon[8]
169
169
  }
170
170
  },
171
171
  {
172
172
  types: ["url"],
173
173
  style: {
174
- color: theme.colors.gray[7]
174
+ color: theme.colors.carbon[8]
175
175
  }
176
176
  }
177
177
  ]
@@ -23,13 +23,13 @@ const TextInput = React.forwardRef((props, ref) => {
23
23
  icon: {
24
24
  position: "relative",
25
25
  width: "fit-content",
26
- border: `1px solid ${theme.colors.gray[4]}`,
26
+ border: `1px solid ${theme.colors.carbon[5]}`,
27
27
  borderRightWidth: 0,
28
28
  paddingLeft: 12,
29
29
  paddingRight: 12,
30
30
  borderTopLeftRadius: theme.defaultRadius,
31
31
  borderBottomLeftRadius: theme.defaultRadius,
32
- backgroundColor: theme.colors.gray[1]
32
+ backgroundColor: theme.colors.carbon[2]
33
33
  },
34
34
  input: {
35
35
  flex: 1,
@@ -46,7 +46,7 @@ const TextInput = React.forwardRef((props, ref) => {
46
46
  },
47
47
  props.styles
48
48
  ]),
49
- icon: !!leftLabel ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Typography, { variant: "label-lg", c: "gray.6", children: leftLabel }) : icon,
49
+ icon: !!leftLabel ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Typography, { variant: "label-lg", children: leftLabel }) : icon,
50
50
  ref
51
51
  }
52
52
  );
@@ -21,13 +21,13 @@ const TextInput = forwardRef((props, ref) => {
21
21
  icon: {
22
22
  position: "relative",
23
23
  width: "fit-content",
24
- border: `1px solid ${theme.colors.gray[4]}`,
24
+ border: `1px solid ${theme.colors.carbon[5]}`,
25
25
  borderRightWidth: 0,
26
26
  paddingLeft: 12,
27
27
  paddingRight: 12,
28
28
  borderTopLeftRadius: theme.defaultRadius,
29
29
  borderBottomLeftRadius: theme.defaultRadius,
30
- backgroundColor: theme.colors.gray[1]
30
+ backgroundColor: theme.colors.carbon[2]
31
31
  },
32
32
  input: {
33
33
  flex: 1,
@@ -44,7 +44,7 @@ const TextInput = forwardRef((props, ref) => {
44
44
  },
45
45
  props.styles
46
46
  ]),
47
- icon: !!leftLabel ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "label-lg", c: "gray.6", children: leftLabel }) : icon,
47
+ icon: !!leftLabel ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "label-lg", children: leftLabel }) : icon,
48
48
  ref
49
49
  }
50
50
  );
@@ -44,10 +44,10 @@ function getVariant(theme) {
44
44
  }
45
45
  case "default": {
46
46
  return {
47
- border: theme.colors.gray[4],
48
- background: theme.colorScheme === "dark" ? theme.colors.gray[1] : theme.white,
49
- color: theme.colors.gray[8],
50
- hover: theme.colors.gray[2]
47
+ border: theme.colors.carbon[5],
48
+ background: theme.colorScheme === "dark" ? theme.colors.carbon[2] : theme.white,
49
+ color: theme.colors.carbon[8],
50
+ hover: theme.colors.carbon[3]
51
51
  };
52
52
  }
53
53
  case "white": {
@@ -42,10 +42,10 @@ function getVariant(theme) {
42
42
  }
43
43
  case "default": {
44
44
  return {
45
- border: theme.colors.gray[4],
46
- background: theme.colorScheme === "dark" ? theme.colors.gray[1] : theme.white,
47
- color: theme.colors.gray[8],
48
- hover: theme.colors.gray[2]
45
+ border: theme.colors.carbon[5],
46
+ background: theme.colorScheme === "dark" ? theme.colors.carbon[2] : theme.white,
47
+ color: theme.colors.carbon[8],
48
+ hover: theme.colors.carbon[3]
49
49
  };
50
50
  }
51
51
  case "white": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.12",
3
+ "version": "2.0.0-beta.13",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",