@tidbcloud/uikit 2.0.0-beta.35 → 2.0.0-beta.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.37
4
+
5
+ ### Major Changes
6
+
7
+ - add tableList,block icon
8
+
9
+ ## 2.0.0-beta.36
10
+
11
+ ### Minor Changes
12
+
13
+ - Update Input/Select size and styles
14
+
3
15
  ## 2.0.0-beta.35
4
16
 
5
17
  ### Minor Changes
@@ -1237,6 +1237,8 @@ const ZapOff = require("./react/ZapOff.cjs");
1237
1237
  const ZapSquare = require("./react/ZapSquare.cjs");
1238
1238
  const ZoomIn = require("./react/ZoomIn.cjs");
1239
1239
  const ZoomOut = require("./react/ZoomOut.cjs");
1240
+ const Block = require("./react/Block.cjs");
1241
+ const TableList = require("./react/TableList.cjs");
1240
1242
  const IconActivity = Activity;
1241
1243
  const IconActivityHeart = ActivityHeart;
1242
1244
  const IconAiExplore01 = AiExplore01;
@@ -2474,6 +2476,8 @@ const IconZapOff = ZapOff;
2474
2476
  const IconZapSquare = ZapSquare;
2475
2477
  const IconZoomIn = ZoomIn;
2476
2478
  const IconZoomOut = ZoomOut;
2479
+ const IconBlock = Block;
2480
+ const IconTableList = TableList;
2477
2481
  exports.IconActivity = IconActivity;
2478
2482
  exports.IconActivityHeart = IconActivityHeart;
2479
2483
  exports.IconAiExplore01 = IconAiExplore01;
@@ -2637,6 +2641,7 @@ exports.IconBellRinging04 = IconBellRinging04;
2637
2641
  exports.IconBezierCurve01 = IconBezierCurve01;
2638
2642
  exports.IconBezierCurve02 = IconBezierCurve02;
2639
2643
  exports.IconBezierCurve03 = IconBezierCurve03;
2644
+ exports.IconBlock = IconBlock;
2640
2645
  exports.IconBluetoothConnect = IconBluetoothConnect;
2641
2646
  exports.IconBluetoothOff = IconBluetoothOff;
2642
2647
  exports.IconBluetoothOn = IconBluetoothOn;
@@ -3563,6 +3568,7 @@ exports.IconSystemDatabase = IconSystemDatabase;
3563
3568
  exports.IconSystemEndpoint = IconSystemEndpoint;
3564
3569
  exports.IconSystemMode = IconSystemMode;
3565
3570
  exports.IconTable = IconTable;
3571
+ exports.IconTableList = IconTableList;
3566
3572
  exports.IconTablet01 = IconTablet01;
3567
3573
  exports.IconTablet02 = IconTablet02;
3568
3574
  exports.IconTag01 = IconTag01;
@@ -1241,3 +1241,5 @@ export declare const IconZapOff: React.FC<IconProps>;
1241
1241
  export declare const IconZapSquare: React.FC<IconProps>;
1242
1242
  export declare const IconZoomIn: React.FC<IconProps>;
1243
1243
  export declare const IconZoomOut: React.FC<IconProps>;
1244
+ export declare const IconBlock: React.FC<IconProps>;
1245
+ export declare const IconTableList: React.FC<IconProps>;
@@ -1241,3 +1241,5 @@ export declare const IconZapOff: React.FC<IconProps>;
1241
1241
  export declare const IconZapSquare: React.FC<IconProps>;
1242
1242
  export declare const IconZoomIn: React.FC<IconProps>;
1243
1243
  export declare const IconZoomOut: React.FC<IconProps>;
1244
+ export declare const IconBlock: React.FC<IconProps>;
1245
+ export declare const IconTableList: React.FC<IconProps>;
@@ -1235,6 +1235,8 @@ import ZapOff from "./react/ZapOff.js";
1235
1235
  import ZapSquare from "./react/ZapSquare.js";
1236
1236
  import ZoomIn from "./react/ZoomIn.js";
1237
1237
  import ZoomOut from "./react/ZoomOut.js";
1238
+ import Block from "./react/Block.js";
1239
+ import TableList from "./react/TableList.js";
1238
1240
  const IconActivity = Activity;
1239
1241
  const IconActivityHeart = ActivityHeart;
1240
1242
  const IconAiExplore01 = AiExplore01;
@@ -2472,6 +2474,8 @@ const IconZapOff = ZapOff;
2472
2474
  const IconZapSquare = ZapSquare;
2473
2475
  const IconZoomIn = ZoomIn;
2474
2476
  const IconZoomOut = ZoomOut;
2477
+ const IconBlock = Block;
2478
+ const IconTableList = TableList;
2475
2479
  export {
2476
2480
  IconActivity,
2477
2481
  IconActivityHeart,
@@ -2636,6 +2640,7 @@ export {
2636
2640
  IconBezierCurve01,
2637
2641
  IconBezierCurve02,
2638
2642
  IconBezierCurve03,
2643
+ IconBlock,
2639
2644
  IconBluetoothConnect,
2640
2645
  IconBluetoothOff,
2641
2646
  IconBluetoothOn,
@@ -3562,6 +3567,7 @@ export {
3562
3567
  IconSystemEndpoint,
3563
3568
  IconSystemMode,
3564
3569
  IconTable,
3570
+ IconTableList,
3565
3571
  IconTablet01,
3566
3572
  IconTablet02,
3567
3573
  IconTag01,
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.5 6.47012C13.5 5.91006 13.5 5.63004 13.609 5.41613C13.7049 5.22796 13.8578 5.07498 14.046 4.97911C14.2599 4.87012 14.5399 4.87012 15.1 4.87012H19.9C20.4601 4.87012 20.7401 4.87012 20.954 4.97911C21.1422 5.07498 21.2951 5.22796 21.391 5.41613C21.5 5.63004 21.5 5.91006 21.5 6.47012V9.27012C21.5 9.83017 21.5 10.1102 21.391 10.3241C21.2951 10.5123 21.1422 10.6653 20.954 10.7611C20.7401 10.8701 20.4601 10.8701 19.9 10.8701H15.1C14.5399 10.8701 14.2599 10.8701 14.046 10.7611C13.8578 10.6653 13.7049 10.5123 13.609 10.3241C13.5 10.1102 13.5 9.83017 13.5 9.27012V6.47012Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M2.5 6.47012C2.5 5.91006 2.5 5.63004 2.60899 5.41613C2.70487 5.22796 2.85785 5.07498 3.04601 4.97911C3.25992 4.87012 3.53995 4.87012 4.1 4.87012H8.9C9.46005 4.87012 9.74008 4.87012 9.95399 4.97911C10.1422 5.07498 10.2951 5.22796 10.391 5.41613C10.5 5.63004 10.5 5.91006 10.5 6.47012V9.27012C10.5 9.83017 10.5 10.1102 10.391 10.3241C10.2951 10.5123 10.1422 10.6653 9.95399 10.7611C9.74008 10.8701 9.46005 10.8701 8.9 10.8701H4.1C3.53995 10.8701 3.25992 10.8701 3.04601 10.7611C2.85785 10.6653 2.70487 10.5123 2.60899 10.3241C2.5 10.1102 2.5 9.83017 2.5 9.27012V6.47012Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M2.5 15.6C2.5 15.04 2.5 14.76 2.60899 14.546C2.70487 14.3579 2.85785 14.2049 3.04601 14.109C3.25992 14 3.53995 14 4.1 14H8.9C9.46005 14 9.74008 14 9.95399 14.109C10.1422 14.2049 10.2951 14.3579 10.391 14.546C10.5 14.76 10.5 15.04 10.5 15.6V18.4C10.5 18.9601 10.5 19.2401 10.391 19.454C10.2951 19.6422 10.1422 19.7952 9.95399 19.891C9.74008 20 9.46005 20 8.9 20H4.1C3.53995 20 3.25992 20 3.04601 19.891C2.85785 19.7952 2.70487 19.6422 2.60899 19.454C2.5 19.2401 2.5 18.9601 2.5 18.4V15.6Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M13.4801 15.6144C13.4801 15.0543 13.4801 14.7743 13.5891 14.5604C13.685 14.3722 13.838 14.2192 14.0261 14.1234C14.2401 14.0144 14.5201 14.0144 15.0801 14.0144H19.8801C20.4402 14.0144 20.7202 14.0144 20.9341 14.1234C21.1223 14.2192 21.2753 14.3722 21.3711 14.5604C21.4801 14.7743 21.4801 15.0543 21.4801 15.6144V18.4144C21.4801 18.9744 21.4801 19.2545 21.3711 19.4684C21.2753 19.6565 21.1223 19.8095 20.9341 19.9054C20.7202 20.0144 20.4402 20.0144 19.8801 20.0144H15.0801C14.5201 20.0144 14.2401 20.0144 14.0261 19.9054C13.838 19.8095 13.685 19.6565 13.5891 19.4684C13.4801 19.2545 13.4801 18.9744 13.4801 18.4144V15.6144Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3 9.5H21M3 14.5H21M7.8 4.5H16.2C17.8802 4.5 18.7202 4.5 19.362 4.82698C19.9265 5.1146 20.3854 5.57354 20.673 6.13803C21 6.77976 21 6.61984 21 8.3V15.7C21 17.3802 21 17.2202 20.673 17.862C20.3854 18.4265 19.9265 18.8854 19.362 19.173C18.7202 19.5 17.8802 19.5 16.2 19.5H7.8C6.11984 19.5 5.27976 19.5 4.63803 19.173C4.07354 18.8854 3.6146 18.4265 3.32698 17.862C3 17.2202 3 17.3802 3 15.7V8.3C3 6.61984 3 6.77976 3.32698 6.13803C3.6146 5.57354 4.07354 5.1146 4.63803 4.82698C5.27976 4.5 6.11984 4.5 7.8 4.5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ const jsxRuntime = require("../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.cjs");
3
+ const React = require("react");
4
+ const Block = (props, ref) => {
5
+ if (typeof props.size === "number") {
6
+ const { size, ...rest } = props;
7
+ props = {
8
+ ...rest,
9
+ height: size,
10
+ width: size
11
+ };
12
+ }
13
+ return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
14
+ "svg",
15
+ {
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ width: "1em",
18
+ height: "1em",
19
+ fill: "none",
20
+ viewBox: "0 0 24 24",
21
+ strokeWidth: "1.5",
22
+ ref,
23
+ ...props,
24
+ children: [
25
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
26
+ "path",
27
+ {
28
+ stroke: "currentColor",
29
+ "stroke-width": "inherit",
30
+ "stroke-linecap": "round",
31
+ "stroke-linejoin": "round",
32
+ d: "M13.5 6.47012C13.5 5.91006 13.5 5.63004 13.609 5.41613C13.7049 5.22796 13.8578 5.07498 14.046 4.97911C14.2599 4.87012 14.5399 4.87012 15.1 4.87012H19.9C20.4601 4.87012 20.7401 4.87012 20.954 4.97911C21.1422 5.07498 21.2951 5.22796 21.391 5.41613C21.5 5.63004 21.5 5.91006 21.5 6.47012V9.27012C21.5 9.83017 21.5 10.1102 21.391 10.3241C21.2951 10.5123 21.1422 10.6653 20.954 10.7611C20.7401 10.8701 20.4601 10.8701 19.9 10.8701H15.1C14.5399 10.8701 14.2599 10.8701 14.046 10.7611C13.8578 10.6653 13.7049 10.5123 13.609 10.3241C13.5 10.1102 13.5 9.83017 13.5 9.27012V6.47012Z"
33
+ }
34
+ ),
35
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
36
+ "path",
37
+ {
38
+ stroke: "currentColor",
39
+ "stroke-width": "inherit",
40
+ "stroke-linecap": "round",
41
+ "stroke-linejoin": "round",
42
+ d: "M2.5 6.47012C2.5 5.91006 2.5 5.63004 2.60899 5.41613C2.70487 5.22796 2.85785 5.07498 3.04601 4.97911C3.25992 4.87012 3.53995 4.87012 4.1 4.87012H8.9C9.46005 4.87012 9.74008 4.87012 9.95399 4.97911C10.1422 5.07498 10.2951 5.22796 10.391 5.41613C10.5 5.63004 10.5 5.91006 10.5 6.47012V9.27012C10.5 9.83017 10.5 10.1102 10.391 10.3241C10.2951 10.5123 10.1422 10.6653 9.95399 10.7611C9.74008 10.8701 9.46005 10.8701 8.9 10.8701H4.1C3.53995 10.8701 3.25992 10.8701 3.04601 10.7611C2.85785 10.6653 2.70487 10.5123 2.60899 10.3241C2.5 10.1102 2.5 9.83017 2.5 9.27012V6.47012Z"
43
+ }
44
+ ),
45
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
46
+ "path",
47
+ {
48
+ stroke: "currentColor",
49
+ "stroke-width": "inherit",
50
+ "stroke-linecap": "round",
51
+ "stroke-linejoin": "round",
52
+ d: "M2.5 15.6C2.5 15.04 2.5 14.76 2.60899 14.546C2.70487 14.3579 2.85785 14.2049 3.04601 14.109C3.25992 14 3.53995 14 4.1 14H8.9C9.46005 14 9.74008 14 9.95399 14.109C10.1422 14.2049 10.2951 14.3579 10.391 14.546C10.5 14.76 10.5 15.04 10.5 15.6V18.4C10.5 18.9601 10.5 19.2401 10.391 19.454C10.2951 19.6422 10.1422 19.7952 9.95399 19.891C9.74008 20 9.46005 20 8.9 20H4.1C3.53995 20 3.25992 20 3.04601 19.891C2.85785 19.7952 2.70487 19.6422 2.60899 19.454C2.5 19.2401 2.5 18.9601 2.5 18.4V15.6Z"
53
+ }
54
+ ),
55
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
56
+ "path",
57
+ {
58
+ stroke: "currentColor",
59
+ "stroke-width": "inherit",
60
+ "stroke-linecap": "round",
61
+ "stroke-linejoin": "round",
62
+ d: "M13.4801 15.6144C13.4801 15.0543 13.4801 14.7743 13.5891 14.5604C13.685 14.3722 13.838 14.2192 14.0261 14.1234C14.2401 14.0144 14.5201 14.0144 15.0801 14.0144H19.8801C20.4402 14.0144 20.7202 14.0144 20.9341 14.1234C21.1223 14.2192 21.2753 14.3722 21.3711 14.5604C21.4801 14.7743 21.4801 15.0543 21.4801 15.6144V18.4144C21.4801 18.9744 21.4801 19.2545 21.3711 19.4684C21.2753 19.6565 21.1223 19.8095 20.9341 19.9054C20.7202 20.0144 20.4402 20.0144 19.8801 20.0144H15.0801C14.5201 20.0144 14.2401 20.0144 14.0261 19.9054C13.838 19.8095 13.685 19.6565 13.5891 19.4684C13.4801 19.2545 13.4801 18.9744 13.4801 18.4144V15.6144Z"
63
+ }
64
+ )
65
+ ]
66
+ }
67
+ );
68
+ };
69
+ const ForwardRef = React.forwardRef(Block);
70
+ const Block$1 = ForwardRef;
71
+ module.exports = Block$1;
@@ -0,0 +1,3 @@
1
+ export default ForwardRef;
2
+ declare const ForwardRef: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
3
+ import * as React from 'react';
@@ -0,0 +1,3 @@
1
+ export default ForwardRef;
2
+ declare const ForwardRef: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
3
+ import * as React from 'react';
@@ -0,0 +1,72 @@
1
+ import { j as jsxRuntimeExports } from "../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
+ import { forwardRef } from "react";
3
+ const Block = (props, ref) => {
4
+ if (typeof props.size === "number") {
5
+ const { size, ...rest } = props;
6
+ props = {
7
+ ...rest,
8
+ height: size,
9
+ width: size
10
+ };
11
+ }
12
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
13
+ "svg",
14
+ {
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ width: "1em",
17
+ height: "1em",
18
+ fill: "none",
19
+ viewBox: "0 0 24 24",
20
+ strokeWidth: "1.5",
21
+ ref,
22
+ ...props,
23
+ children: [
24
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
25
+ "path",
26
+ {
27
+ stroke: "currentColor",
28
+ "stroke-width": "inherit",
29
+ "stroke-linecap": "round",
30
+ "stroke-linejoin": "round",
31
+ d: "M13.5 6.47012C13.5 5.91006 13.5 5.63004 13.609 5.41613C13.7049 5.22796 13.8578 5.07498 14.046 4.97911C14.2599 4.87012 14.5399 4.87012 15.1 4.87012H19.9C20.4601 4.87012 20.7401 4.87012 20.954 4.97911C21.1422 5.07498 21.2951 5.22796 21.391 5.41613C21.5 5.63004 21.5 5.91006 21.5 6.47012V9.27012C21.5 9.83017 21.5 10.1102 21.391 10.3241C21.2951 10.5123 21.1422 10.6653 20.954 10.7611C20.7401 10.8701 20.4601 10.8701 19.9 10.8701H15.1C14.5399 10.8701 14.2599 10.8701 14.046 10.7611C13.8578 10.6653 13.7049 10.5123 13.609 10.3241C13.5 10.1102 13.5 9.83017 13.5 9.27012V6.47012Z"
32
+ }
33
+ ),
34
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
35
+ "path",
36
+ {
37
+ stroke: "currentColor",
38
+ "stroke-width": "inherit",
39
+ "stroke-linecap": "round",
40
+ "stroke-linejoin": "round",
41
+ d: "M2.5 6.47012C2.5 5.91006 2.5 5.63004 2.60899 5.41613C2.70487 5.22796 2.85785 5.07498 3.04601 4.97911C3.25992 4.87012 3.53995 4.87012 4.1 4.87012H8.9C9.46005 4.87012 9.74008 4.87012 9.95399 4.97911C10.1422 5.07498 10.2951 5.22796 10.391 5.41613C10.5 5.63004 10.5 5.91006 10.5 6.47012V9.27012C10.5 9.83017 10.5 10.1102 10.391 10.3241C10.2951 10.5123 10.1422 10.6653 9.95399 10.7611C9.74008 10.8701 9.46005 10.8701 8.9 10.8701H4.1C3.53995 10.8701 3.25992 10.8701 3.04601 10.7611C2.85785 10.6653 2.70487 10.5123 2.60899 10.3241C2.5 10.1102 2.5 9.83017 2.5 9.27012V6.47012Z"
42
+ }
43
+ ),
44
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
45
+ "path",
46
+ {
47
+ stroke: "currentColor",
48
+ "stroke-width": "inherit",
49
+ "stroke-linecap": "round",
50
+ "stroke-linejoin": "round",
51
+ d: "M2.5 15.6C2.5 15.04 2.5 14.76 2.60899 14.546C2.70487 14.3579 2.85785 14.2049 3.04601 14.109C3.25992 14 3.53995 14 4.1 14H8.9C9.46005 14 9.74008 14 9.95399 14.109C10.1422 14.2049 10.2951 14.3579 10.391 14.546C10.5 14.76 10.5 15.04 10.5 15.6V18.4C10.5 18.9601 10.5 19.2401 10.391 19.454C10.2951 19.6422 10.1422 19.7952 9.95399 19.891C9.74008 20 9.46005 20 8.9 20H4.1C3.53995 20 3.25992 20 3.04601 19.891C2.85785 19.7952 2.70487 19.6422 2.60899 19.454C2.5 19.2401 2.5 18.9601 2.5 18.4V15.6Z"
52
+ }
53
+ ),
54
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
55
+ "path",
56
+ {
57
+ stroke: "currentColor",
58
+ "stroke-width": "inherit",
59
+ "stroke-linecap": "round",
60
+ "stroke-linejoin": "round",
61
+ d: "M13.4801 15.6144C13.4801 15.0543 13.4801 14.7743 13.5891 14.5604C13.685 14.3722 13.838 14.2192 14.0261 14.1234C14.2401 14.0144 14.5201 14.0144 15.0801 14.0144H19.8801C20.4402 14.0144 20.7202 14.0144 20.9341 14.1234C21.1223 14.2192 21.2753 14.3722 21.3711 14.5604C21.4801 14.7743 21.4801 15.0543 21.4801 15.6144V18.4144C21.4801 18.9744 21.4801 19.2545 21.3711 19.4684C21.2753 19.6565 21.1223 19.8095 20.9341 19.9054C20.7202 20.0144 20.4402 20.0144 19.8801 20.0144H15.0801C14.5201 20.0144 14.2401 20.0144 14.0261 19.9054C13.838 19.8095 13.685 19.6565 13.5891 19.4684C13.4801 19.2545 13.4801 18.9744 13.4801 18.4144V15.6144Z"
62
+ }
63
+ )
64
+ ]
65
+ }
66
+ );
67
+ };
68
+ const ForwardRef = forwardRef(Block);
69
+ const Block$1 = ForwardRef;
70
+ export {
71
+ Block$1 as default
72
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ const jsxRuntime = require("../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.cjs");
3
+ const React = require("react");
4
+ const TableList = (props, ref) => {
5
+ if (typeof props.size === "number") {
6
+ const { size, ...rest } = props;
7
+ props = {
8
+ ...rest,
9
+ height: size,
10
+ width: size
11
+ };
12
+ }
13
+ return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
14
+ "svg",
15
+ {
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ width: "1em",
18
+ height: "1em",
19
+ fill: "none",
20
+ viewBox: "0 0 24 24",
21
+ strokeWidth: "1.5",
22
+ ref,
23
+ ...props,
24
+ children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
25
+ "path",
26
+ {
27
+ d: "M3 9.5H21M3 14.5H21M7.8 4.5H16.2C17.8802 4.5 18.7202 4.5 19.362 4.82698C19.9265 5.1146 20.3854 5.57354 20.673 6.13803C21 6.77976 21 6.61984 21 8.3V15.7C21 17.3802 21 17.2202 20.673 17.862C20.3854 18.4265 19.9265 18.8854 19.362 19.173C18.7202 19.5 17.8802 19.5 16.2 19.5H7.8C6.11984 19.5 5.27976 19.5 4.63803 19.173C4.07354 18.8854 3.6146 18.4265 3.32698 17.862C3 17.2202 3 17.3802 3 15.7V8.3C3 6.61984 3 6.77976 3.32698 6.13803C3.6146 5.57354 4.07354 5.1146 4.63803 4.82698C5.27976 4.5 6.11984 4.5 7.8 4.5Z",
28
+ stroke: "currentColor",
29
+ "stroke-width": "inherit",
30
+ "stroke-linecap": "round",
31
+ "stroke-linejoin": "round"
32
+ }
33
+ )
34
+ }
35
+ );
36
+ };
37
+ const ForwardRef = React.forwardRef(TableList);
38
+ const TableList$1 = ForwardRef;
39
+ module.exports = TableList$1;
@@ -0,0 +1,3 @@
1
+ export default ForwardRef;
2
+ declare const ForwardRef: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
3
+ import * as React from 'react';
@@ -0,0 +1,3 @@
1
+ export default ForwardRef;
2
+ declare const ForwardRef: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
3
+ import * as React from 'react';
@@ -0,0 +1,40 @@
1
+ import { j as jsxRuntimeExports } from "../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
+ import { forwardRef } from "react";
3
+ const TableList = (props, ref) => {
4
+ if (typeof props.size === "number") {
5
+ const { size, ...rest } = props;
6
+ props = {
7
+ ...rest,
8
+ height: size,
9
+ width: size
10
+ };
11
+ }
12
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
13
+ "svg",
14
+ {
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ width: "1em",
17
+ height: "1em",
18
+ fill: "none",
19
+ viewBox: "0 0 24 24",
20
+ strokeWidth: "1.5",
21
+ ref,
22
+ ...props,
23
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
24
+ "path",
25
+ {
26
+ d: "M3 9.5H21M3 14.5H21M7.8 4.5H16.2C17.8802 4.5 18.7202 4.5 19.362 4.82698C19.9265 5.1146 20.3854 5.57354 20.673 6.13803C21 6.77976 21 6.61984 21 8.3V15.7C21 17.3802 21 17.2202 20.673 17.862C20.3854 18.4265 19.9265 18.8854 19.362 19.173C18.7202 19.5 17.8802 19.5 16.2 19.5H7.8C6.11984 19.5 5.27976 19.5 4.63803 19.173C4.07354 18.8854 3.6146 18.4265 3.32698 17.862C3 17.2202 3 17.3802 3 15.7V8.3C3 6.61984 3 6.77976 3.32698 6.13803C3.6146 5.57354 4.07354 5.1146 4.63803 4.82698C5.27976 4.5 6.11984 4.5 7.8 4.5Z",
27
+ stroke: "currentColor",
28
+ "stroke-width": "inherit",
29
+ "stroke-linecap": "round",
30
+ "stroke-linejoin": "round"
31
+ }
32
+ )
33
+ }
34
+ );
35
+ };
36
+ const ForwardRef = forwardRef(TableList);
37
+ const TableList$1 = ForwardRef;
38
+ export {
39
+ TableList$1 as default
40
+ };
@@ -7,6 +7,13 @@ const index = require("../Typography/index.cjs");
7
7
  const TextInput$1 = 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/TextInput/TextInput.cjs");
8
8
  const TextInput = React.forwardRef((props, ref) => {
9
9
  const { leftLabel, icon, ...rest } = props;
10
+ const prefixFontSizes = {
11
+ xs: 12,
12
+ sm: 13,
13
+ md: 14,
14
+ lg: 14,
15
+ xl: 16
16
+ };
10
17
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
11
18
  TextInput$1.TextInput,
12
19
  {
@@ -29,7 +36,10 @@ const TextInput = React.forwardRef((props, ref) => {
29
36
  paddingRight: 12,
30
37
  borderTopLeftRadius: theme.defaultRadius,
31
38
  borderBottomLeftRadius: theme.defaultRadius,
32
- backgroundColor: theme.colors.carbon[2]
39
+ backgroundColor: theme.colors.carbon[2],
40
+ "& > .mantine-Text-root": {
41
+ fontSize: theme.fn.size({ sizes: prefixFontSizes, size: props.size ?? "md" })
42
+ }
33
43
  },
34
44
  input: {
35
45
  flex: 1,
@@ -5,6 +5,13 @@ import { Typography } from "../Typography/index.js";
5
5
  import { TextInput as TextInput$1 } 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/TextInput/TextInput.js";
6
6
  const TextInput = forwardRef((props, ref) => {
7
7
  const { leftLabel, icon, ...rest } = props;
8
+ const prefixFontSizes = {
9
+ xs: 12,
10
+ sm: 13,
11
+ md: 14,
12
+ lg: 14,
13
+ xl: 16
14
+ };
8
15
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9
16
  TextInput$1,
10
17
  {
@@ -27,7 +34,10 @@ const TextInput = forwardRef((props, ref) => {
27
34
  paddingRight: 12,
28
35
  borderTopLeftRadius: theme.defaultRadius,
29
36
  borderBottomLeftRadius: theme.defaultRadius,
30
- backgroundColor: theme.colors.carbon[2]
37
+ backgroundColor: theme.colors.carbon[2],
38
+ "& > .mantine-Text-root": {
39
+ fontSize: theme.fn.size({ sizes: prefixFontSizes, size: props.size ?? "md" })
40
+ }
31
41
  },
32
42
  input: {
33
43
  flex: 1,
@@ -129,51 +129,58 @@ const getButtonStyles = (theme2, params) => {
129
129
  return finalStyles;
130
130
  };
131
131
  const getInputStyles = (theme2, params) => {
132
- const inputStyle = {
133
- height: 40,
134
- minHeight: 40,
135
- lineHeight: "38px"
132
+ const sizes = {
133
+ xl: 48,
134
+ lg: 44,
135
+ md: 40,
136
+ sm: 32,
137
+ xs: 28
136
138
  };
137
- const diffSizeStyles = {
138
- sm: {
139
- label: {
140
- lineHeight: "20px"
141
- },
142
- input: {
143
- ...inputStyle,
144
- // This is for PasswordInput, is has different dom structure with normal input
145
- // FIXME innerInput is not working in current v5.10.4, use that key after upgrade mantine
146
- "& .mantine-PasswordInput-innerInput": inputStyle
147
- }
148
- }
139
+ const fontSizes = {
140
+ xl: 16,
141
+ lg: 14,
142
+ md: 14,
143
+ sm: 13,
144
+ xs: 12
149
145
  };
150
- const matches = diffSizeStyles[params.size] || { label: {}, input: {} };
151
- const passwordInputSizeStyles = {
152
- sm: {
153
- height: 38,
154
- lineHeight: "38px"
155
- }
146
+ const size = theme2.fn.size({ size: params.size ?? "md", sizes });
147
+ const inputFontSize = theme2.fn.size({ size: params.size ?? "md", sizes: fontSizes });
148
+ const inputSize = {
149
+ height: size,
150
+ minHeight: size,
151
+ lineHeight: `${size - 2}px`,
152
+ fontSize: inputFontSize
153
+ };
154
+ const passwordInnerInputSize = {
155
+ height: size - 2,
156
+ minHeight: size - 2,
157
+ lineHeight: `${size - 2}px`,
158
+ fontSize: inputFontSize
156
159
  };
157
160
  return {
158
161
  label: {
159
- ...matches.label,
160
- color: theme2.colors.carbon[8]
162
+ color: theme2.colors.carbon[8],
163
+ marginBottom: 6,
164
+ lineHeight: "20px",
165
+ fontSize: 14
161
166
  },
162
167
  description: {
163
- color: theme2.colors.carbon[7]
168
+ color: theme2.colors.carbon[7],
169
+ fontSize: 12
164
170
  },
165
171
  input: {
166
- ...matches.input,
172
+ ...inputSize,
167
173
  color: theme2.colors.carbon[8],
168
174
  border: `1px solid ${theme2.colors.carbon[4]}`,
169
175
  backgroundColor: theme2.colors.carbon[0],
170
- "&:hover:not(:disabled):not(:focus)": {
176
+ "&:hover": {
171
177
  borderColor: theme2.colors.carbon[5]
172
178
  },
173
- "&:focus": {
179
+ "&:focus, &:focus-within": {
174
180
  borderColor: theme2.colors.carbon[9]
175
181
  },
176
182
  "&:disabled": {
183
+ borderColor: theme2.colors.carbon[4],
177
184
  backgroundColor: theme2.colors.carbon[2],
178
185
  color: theme2.colors.carbon[8],
179
186
  opacity: 1
@@ -182,7 +189,7 @@ const getInputStyles = (theme2, params) => {
182
189
  color: theme2.colors.carbon[6]
183
190
  },
184
191
  "& .mantine-PasswordInput-innerInput": {
185
- ...passwordInputSizeStyles[params.size],
192
+ ...passwordInnerInputSize,
186
193
  "&::placeholder": {
187
194
  color: theme2.colors.carbon[6]
188
195
  }
@@ -477,31 +484,23 @@ const theme = {
477
484
  defaultProps: {
478
485
  transition: "fade",
479
486
  transitionDuration: 200,
480
- transitionTimingFunction: "ease"
487
+ transitionTimingFunction: "ease",
488
+ size: "md"
481
489
  },
482
490
  styles: (theme2, params) => {
483
- const diffSizeStyles = {
484
- sm: {
485
- label: {
486
- lineHeight: "20px"
487
- },
488
- input: {
489
- height: 40,
490
- minHeight: 40,
491
- lineHeight: "38px"
492
- }
493
- }
494
- };
495
- const matches = diffSizeStyles[params.size] || { label: {}, input: {} };
491
+ const styles = getInputStyles(theme2, { size: params.size });
492
+ const height = styles.input.height;
496
493
  return {
497
494
  label: {
498
- ...matches.label
495
+ lineHeight: "20px",
496
+ marginBottom: 6
499
497
  },
500
498
  description: {
501
499
  color: theme2.colors.carbon[7]
502
500
  },
503
501
  input: {
504
- ...matches.input,
502
+ height,
503
+ minHeight: height,
505
504
  color: theme2.colors.carbon[8],
506
505
  ...params.variant === "unstyled" && {
507
506
  border: "none",
@@ -535,6 +534,9 @@ const theme = {
535
534
  }
536
535
  },
537
536
  rightSection: {
537
+ "& .mantine-ActionIcon-root": {
538
+ color: `${theme2.colors.carbon[7]} !important`
539
+ },
538
540
  "& [data-chevron]": {
539
541
  color: `${theme2.colors.carbon[7]} !important`
540
542
  }
@@ -543,34 +545,62 @@ const theme = {
543
545
  }
544
546
  },
545
547
  MultiSelect: {
548
+ defaultProps: {
549
+ size: "md",
550
+ transition: "fade",
551
+ transitionDuration: 200,
552
+ transitionTimingFunction: "ease"
553
+ },
546
554
  styles: (theme2, params) => {
547
- const diffSizeStyles = {
548
- sm: {
549
- values: {
550
- height: 38,
551
- minHeight: 38,
552
- lineHeight: "38px"
553
- }
554
- }
555
- };
556
- const matches = diffSizeStyles[params.size] || { values: {} };
555
+ const styles = getInputStyles(theme2, { size: params.size });
556
+ const inputHeight = styles.input.height;
557
557
  return {
558
+ label: {
559
+ fontSize: 14,
560
+ marginBottom: 6
561
+ },
562
+ wrapper: {
563
+ height: inputHeight + 2
564
+ },
558
565
  values: {
559
- ...matches.values
566
+ height: inputHeight - 2,
567
+ minHeight: inputHeight - 2
568
+ },
569
+ value: {
570
+ height: inputHeight - 12,
571
+ backgroundColor: theme2.colors.carbon[3],
572
+ color: theme2.colors.carbon[8]
573
+ },
574
+ rightSection: {
575
+ "& [data-chevron]": {
576
+ color: `${theme2.colors.carbon[7]} !important`
577
+ }
560
578
  }
561
579
  };
562
580
  }
563
581
  },
564
582
  Input: {
583
+ defaultProps: {
584
+ size: "md"
585
+ },
565
586
  styles: getInputStyles
566
587
  },
567
588
  TextInput: {
589
+ defaultProps: {
590
+ size: "md"
591
+ },
568
592
  styles: getInputStyles
569
593
  },
570
594
  PasswordInput: {
595
+ defaultProps: {
596
+ size: "md"
597
+ },
571
598
  styles: getInputStyles
572
599
  },
573
600
  NumberInput: {
601
+ defaultProps: {
602
+ size: "md"
603
+ },
574
604
  styles: getInputStyles
575
605
  },
576
606
  Textarea: {
@@ -127,51 +127,58 @@ const getButtonStyles = (theme2, params) => {
127
127
  return finalStyles;
128
128
  };
129
129
  const getInputStyles = (theme2, params) => {
130
- const inputStyle = {
131
- height: 40,
132
- minHeight: 40,
133
- lineHeight: "38px"
130
+ const sizes = {
131
+ xl: 48,
132
+ lg: 44,
133
+ md: 40,
134
+ sm: 32,
135
+ xs: 28
134
136
  };
135
- const diffSizeStyles = {
136
- sm: {
137
- label: {
138
- lineHeight: "20px"
139
- },
140
- input: {
141
- ...inputStyle,
142
- // This is for PasswordInput, is has different dom structure with normal input
143
- // FIXME innerInput is not working in current v5.10.4, use that key after upgrade mantine
144
- "& .mantine-PasswordInput-innerInput": inputStyle
145
- }
146
- }
137
+ const fontSizes = {
138
+ xl: 16,
139
+ lg: 14,
140
+ md: 14,
141
+ sm: 13,
142
+ xs: 12
147
143
  };
148
- const matches = diffSizeStyles[params.size] || { label: {}, input: {} };
149
- const passwordInputSizeStyles = {
150
- sm: {
151
- height: 38,
152
- lineHeight: "38px"
153
- }
144
+ const size = theme2.fn.size({ size: params.size ?? "md", sizes });
145
+ const inputFontSize = theme2.fn.size({ size: params.size ?? "md", sizes: fontSizes });
146
+ const inputSize = {
147
+ height: size,
148
+ minHeight: size,
149
+ lineHeight: `${size - 2}px`,
150
+ fontSize: inputFontSize
151
+ };
152
+ const passwordInnerInputSize = {
153
+ height: size - 2,
154
+ minHeight: size - 2,
155
+ lineHeight: `${size - 2}px`,
156
+ fontSize: inputFontSize
154
157
  };
155
158
  return {
156
159
  label: {
157
- ...matches.label,
158
- color: theme2.colors.carbon[8]
160
+ color: theme2.colors.carbon[8],
161
+ marginBottom: 6,
162
+ lineHeight: "20px",
163
+ fontSize: 14
159
164
  },
160
165
  description: {
161
- color: theme2.colors.carbon[7]
166
+ color: theme2.colors.carbon[7],
167
+ fontSize: 12
162
168
  },
163
169
  input: {
164
- ...matches.input,
170
+ ...inputSize,
165
171
  color: theme2.colors.carbon[8],
166
172
  border: `1px solid ${theme2.colors.carbon[4]}`,
167
173
  backgroundColor: theme2.colors.carbon[0],
168
- "&:hover:not(:disabled):not(:focus)": {
174
+ "&:hover": {
169
175
  borderColor: theme2.colors.carbon[5]
170
176
  },
171
- "&:focus": {
177
+ "&:focus, &:focus-within": {
172
178
  borderColor: theme2.colors.carbon[9]
173
179
  },
174
180
  "&:disabled": {
181
+ borderColor: theme2.colors.carbon[4],
175
182
  backgroundColor: theme2.colors.carbon[2],
176
183
  color: theme2.colors.carbon[8],
177
184
  opacity: 1
@@ -180,7 +187,7 @@ const getInputStyles = (theme2, params) => {
180
187
  color: theme2.colors.carbon[6]
181
188
  },
182
189
  "& .mantine-PasswordInput-innerInput": {
183
- ...passwordInputSizeStyles[params.size],
190
+ ...passwordInnerInputSize,
184
191
  "&::placeholder": {
185
192
  color: theme2.colors.carbon[6]
186
193
  }
@@ -475,31 +482,23 @@ const theme = {
475
482
  defaultProps: {
476
483
  transition: "fade",
477
484
  transitionDuration: 200,
478
- transitionTimingFunction: "ease"
485
+ transitionTimingFunction: "ease",
486
+ size: "md"
479
487
  },
480
488
  styles: (theme2, params) => {
481
- const diffSizeStyles = {
482
- sm: {
483
- label: {
484
- lineHeight: "20px"
485
- },
486
- input: {
487
- height: 40,
488
- minHeight: 40,
489
- lineHeight: "38px"
490
- }
491
- }
492
- };
493
- const matches = diffSizeStyles[params.size] || { label: {}, input: {} };
489
+ const styles = getInputStyles(theme2, { size: params.size });
490
+ const height = styles.input.height;
494
491
  return {
495
492
  label: {
496
- ...matches.label
493
+ lineHeight: "20px",
494
+ marginBottom: 6
497
495
  },
498
496
  description: {
499
497
  color: theme2.colors.carbon[7]
500
498
  },
501
499
  input: {
502
- ...matches.input,
500
+ height,
501
+ minHeight: height,
503
502
  color: theme2.colors.carbon[8],
504
503
  ...params.variant === "unstyled" && {
505
504
  border: "none",
@@ -533,6 +532,9 @@ const theme = {
533
532
  }
534
533
  },
535
534
  rightSection: {
535
+ "& .mantine-ActionIcon-root": {
536
+ color: `${theme2.colors.carbon[7]} !important`
537
+ },
536
538
  "& [data-chevron]": {
537
539
  color: `${theme2.colors.carbon[7]} !important`
538
540
  }
@@ -541,34 +543,62 @@ const theme = {
541
543
  }
542
544
  },
543
545
  MultiSelect: {
546
+ defaultProps: {
547
+ size: "md",
548
+ transition: "fade",
549
+ transitionDuration: 200,
550
+ transitionTimingFunction: "ease"
551
+ },
544
552
  styles: (theme2, params) => {
545
- const diffSizeStyles = {
546
- sm: {
547
- values: {
548
- height: 38,
549
- minHeight: 38,
550
- lineHeight: "38px"
551
- }
552
- }
553
- };
554
- const matches = diffSizeStyles[params.size] || { values: {} };
553
+ const styles = getInputStyles(theme2, { size: params.size });
554
+ const inputHeight = styles.input.height;
555
555
  return {
556
+ label: {
557
+ fontSize: 14,
558
+ marginBottom: 6
559
+ },
560
+ wrapper: {
561
+ height: inputHeight + 2
562
+ },
556
563
  values: {
557
- ...matches.values
564
+ height: inputHeight - 2,
565
+ minHeight: inputHeight - 2
566
+ },
567
+ value: {
568
+ height: inputHeight - 12,
569
+ backgroundColor: theme2.colors.carbon[3],
570
+ color: theme2.colors.carbon[8]
571
+ },
572
+ rightSection: {
573
+ "& [data-chevron]": {
574
+ color: `${theme2.colors.carbon[7]} !important`
575
+ }
558
576
  }
559
577
  };
560
578
  }
561
579
  },
562
580
  Input: {
581
+ defaultProps: {
582
+ size: "md"
583
+ },
563
584
  styles: getInputStyles
564
585
  },
565
586
  TextInput: {
587
+ defaultProps: {
588
+ size: "md"
589
+ },
566
590
  styles: getInputStyles
567
591
  },
568
592
  PasswordInput: {
593
+ defaultProps: {
594
+ size: "md"
595
+ },
569
596
  styles: getInputStyles
570
597
  },
571
598
  NumberInput: {
599
+ defaultProps: {
600
+ size: "md"
601
+ },
572
602
  styles: getInputStyles
573
603
  },
574
604
  Textarea: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.35",
3
+ "version": "2.0.0-beta.37",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",