@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
@@ -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": {