@oceanbase/design 0.4.9 → 0.4.10
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/dist/design.min.js +1 -1
- package/es/_util/index.d.ts +1 -0
- package/es/_util/index.js +25 -0
- package/es/button/index.d.ts +1 -1
- package/es/card/index.js +5 -4
- package/es/card/style/index.js +9 -7
- package/es/descriptions/hooks/useItems.d.ts +2 -2
- package/es/descriptions/hooks/useItems.js +9 -1
- package/es/descriptions/index.js +3 -2
- package/es/descriptions/style/index.d.ts +3 -0
- package/es/descriptions/style/index.js +30 -3
- package/es/empty/colored.js +7 -4
- package/es/empty/database.js +7 -4
- package/es/empty/guide.js +7 -4
- package/es/form/FormItem.d.ts +13 -8
- package/es/form/FormItem.js +34 -8
- package/es/form/index.js +22 -12
- package/es/form/style/index.d.ts +9 -0
- package/es/form/style/index.js +20 -0
- package/es/result/404.js +14 -8
- package/es/result/500.js +7 -4
- package/es/result/Error.js +9 -5
- package/es/result/Processing.js +9 -5
- package/es/result/Success.js +39 -24
- package/es/result/Warning.js +9 -5
- package/es/table/index.d.ts +1 -0
- package/es/table/index.js +4 -1
- package/es/table/style/index.js +11 -4
- package/es/tree-select/index.d.ts +1 -1
- package/lib/_util/index.d.ts +1 -0
- package/lib/_util/index.js +49 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/card/index.js +3 -3
- package/lib/card/style/index.js +15 -16
- package/lib/descriptions/hooks/useItems.d.ts +2 -2
- package/lib/descriptions/hooks/useItems.js +18 -2
- package/lib/descriptions/index.js +5 -2
- package/lib/descriptions/style/index.d.ts +3 -0
- package/lib/descriptions/style/index.js +47 -4
- package/lib/form/FormItem.d.ts +13 -8
- package/lib/form/FormItem.js +34 -12
- package/lib/form/index.js +15 -3
- package/lib/form/style/index.d.ts +9 -0
- package/lib/form/style/index.js +52 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +5 -1
- package/lib/table/style/index.js +17 -0
- package/lib/tree-select/index.d.ts +1 -1
- package/package.json +8 -7
package/es/result/404.js
CHANGED
|
@@ -4,11 +4,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { useUniqueInlineId } from '@inline-svg-unique-id/react';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import Icon from '@oceanbase/icons';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
12
|
var Svg404 = function Svg404() {
|
|
13
|
+
var _id5 = useUniqueInlineId();
|
|
14
|
+
var _id4 = useUniqueInlineId();
|
|
15
|
+
var _id3 = useUniqueInlineId();
|
|
16
|
+
var _id2 = useUniqueInlineId();
|
|
17
|
+
var _id = useUniqueInlineId();
|
|
12
18
|
return /*#__PURE__*/_jsxs("svg", {
|
|
13
19
|
width: "160px",
|
|
14
20
|
height: "160px",
|
|
@@ -17,13 +23,13 @@ var Svg404 = function Svg404() {
|
|
|
17
23
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18
24
|
children: [/*#__PURE__*/_jsxs("defs", {
|
|
19
25
|
children: [/*#__PURE__*/_jsx("ellipse", {
|
|
20
|
-
id:
|
|
26
|
+
id: _id,
|
|
21
27
|
cx: "34.818724",
|
|
22
28
|
cy: "24.1269436",
|
|
23
29
|
rx: "11.9125",
|
|
24
30
|
ry: "32.8"
|
|
25
31
|
}), /*#__PURE__*/_jsx("ellipse", {
|
|
26
|
-
id:
|
|
32
|
+
id: _id2,
|
|
27
33
|
cx: "15.452048",
|
|
28
34
|
cy: "9.8598182",
|
|
29
35
|
rx: "4.1375",
|
|
@@ -87,9 +93,9 @@ var Svg404 = function Svg404() {
|
|
|
87
93
|
rx: "11.9125",
|
|
88
94
|
ry: "32.8"
|
|
89
95
|
}), /*#__PURE__*/_jsxs("g", {
|
|
90
|
-
id:
|
|
96
|
+
id: _id3,
|
|
91
97
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
92
|
-
id:
|
|
98
|
+
id: _id4,
|
|
93
99
|
fill: "white",
|
|
94
100
|
children: /*#__PURE__*/_jsx("use", {
|
|
95
101
|
transform: "translate(34.8187, 24.1269) rotate(-66.22) translate(-34.8187, -24.1269)"
|
|
@@ -100,7 +106,7 @@ var Svg404 = function Svg404() {
|
|
|
100
106
|
d: "M64.4080716,38.11257 C61.1330716,43.25007 46.5955716,42.33757 30.0205716,35.03757 C13.4455716,27.73757 2.79557161,17.55007 4.54557161,11.72507 C6.29557161,5.90007003 22.3330716,7.56257003 38.9080716,14.86257 C55.4830716,22.16257 68.1330716,32.28757 64.4080716,38.11257 L64.4080716,38.11257 Z",
|
|
101
107
|
fill: "#132039",
|
|
102
108
|
fillRule: "nonzero",
|
|
103
|
-
mask: "url(#
|
|
109
|
+
mask: "url(#".concat(_id4, ")")
|
|
104
110
|
})]
|
|
105
111
|
}), /*#__PURE__*/_jsx("ellipse", {
|
|
106
112
|
fill: "#F2F2F2",
|
|
@@ -111,10 +117,10 @@ var Svg404 = function Svg404() {
|
|
|
111
117
|
rx: "4.1375",
|
|
112
118
|
ry: "15.0625"
|
|
113
119
|
}), /*#__PURE__*/_jsxs("g", {
|
|
114
|
-
id:
|
|
120
|
+
id: _id3,
|
|
115
121
|
transform: "translate(17.0449, 18.1949)",
|
|
116
122
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
117
|
-
id:
|
|
123
|
+
id: _id5,
|
|
118
124
|
fill: "white",
|
|
119
125
|
children: /*#__PURE__*/_jsx("use", {
|
|
120
126
|
transform: "translate(15.452, 9.8598) rotate(-66.22) translate(-15.452, -9.8598)"
|
|
@@ -124,7 +130,7 @@ var Svg404 = function Svg404() {
|
|
|
124
130
|
}), /*#__PURE__*/_jsx("ellipse", {
|
|
125
131
|
fill: "#132039",
|
|
126
132
|
fillRule: "nonzero",
|
|
127
|
-
mask: "url(#
|
|
133
|
+
mask: "url(#".concat(_id5, ")"),
|
|
128
134
|
transform: "translate(15.0168, 10.8584) rotate(-66.22) translate(-15.0168, -10.8584)",
|
|
129
135
|
cx: "15.0167984",
|
|
130
136
|
cy: "10.8583602",
|
package/es/result/500.js
CHANGED
|
@@ -4,11 +4,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { useUniqueInlineId } from '@inline-svg-unique-id/react';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import Icon from '@oceanbase/icons';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
12
|
var Svg500 = function Svg500() {
|
|
13
|
+
var _id2 = useUniqueInlineId();
|
|
14
|
+
var _id = useUniqueInlineId();
|
|
12
15
|
return /*#__PURE__*/_jsxs("svg", {
|
|
13
16
|
width: "160px",
|
|
14
17
|
height: "160px",
|
|
@@ -17,7 +20,7 @@ var Svg500 = function Svg500() {
|
|
|
17
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18
21
|
children: [/*#__PURE__*/_jsx("defs", {
|
|
19
22
|
children: /*#__PURE__*/_jsx("rect", {
|
|
20
|
-
id:
|
|
23
|
+
id: _id,
|
|
21
24
|
x: "23.4314575",
|
|
22
25
|
y: "23.4314575",
|
|
23
26
|
width: "113.137085",
|
|
@@ -55,16 +58,16 @@ var Svg500 = function Svg500() {
|
|
|
55
58
|
}), /*#__PURE__*/_jsxs("g", {
|
|
56
59
|
transform: "translate(0, 0)",
|
|
57
60
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
58
|
-
id:
|
|
61
|
+
id: _id2,
|
|
59
62
|
fill: "white",
|
|
60
63
|
children: /*#__PURE__*/_jsx("use", {
|
|
61
|
-
xlinkHref: "#
|
|
64
|
+
xlinkHref: "#".concat(_id),
|
|
62
65
|
transform: "translate(80, 80) rotate(-45) translate(-80, -80)"
|
|
63
66
|
})
|
|
64
67
|
}), /*#__PURE__*/_jsx("g", {
|
|
65
68
|
transform: "translate(80, 80) rotate(-45) translate(-80, -80)"
|
|
66
69
|
}), /*#__PURE__*/_jsx("g", {
|
|
67
|
-
mask: "url(#
|
|
70
|
+
mask: "url(#".concat(_id2, ")"),
|
|
68
71
|
children: /*#__PURE__*/_jsxs("g", {
|
|
69
72
|
transform: "translate(18.166, 42.1381)",
|
|
70
73
|
children: [/*#__PURE__*/_jsx("path", {
|
package/es/result/Error.js
CHANGED
|
@@ -4,11 +4,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { useUniqueInlineId } from '@inline-svg-unique-id/react';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import Icon from '@oceanbase/icons';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
12
|
var ErrorSvg = function ErrorSvg() {
|
|
13
|
+
var _id3 = useUniqueInlineId();
|
|
14
|
+
var _id2 = useUniqueInlineId();
|
|
15
|
+
var _id = useUniqueInlineId();
|
|
12
16
|
return /*#__PURE__*/_jsxs("svg", {
|
|
13
17
|
width: "160px",
|
|
14
18
|
height: "160px",
|
|
@@ -17,7 +21,7 @@ var ErrorSvg = function ErrorSvg() {
|
|
|
17
21
|
children: [/*#__PURE__*/_jsx("defs", {
|
|
18
22
|
children: /*#__PURE__*/_jsx("path", {
|
|
19
23
|
d: "M33.1125,0.0125 L100.6125,0.0125 C118.8875,0.0125 133.725,14.85 133.725,33.125 L133.725,118.1 L33.1125,118.1 C14.8375,118.1 0,103.2625 0,84.9875 L0,33.1125 C0,14.8375 14.8375,0 33.1125,0 L33.1125,0.0125 Z",
|
|
20
|
-
id:
|
|
24
|
+
id: _id
|
|
21
25
|
})
|
|
22
26
|
}), /*#__PURE__*/_jsx("g", {
|
|
23
27
|
stroke: "none",
|
|
@@ -51,16 +55,16 @@ var ErrorSvg = function ErrorSvg() {
|
|
|
51
55
|
rx: "0.9375"
|
|
52
56
|
})]
|
|
53
57
|
}), /*#__PURE__*/_jsxs("g", {
|
|
54
|
-
id:
|
|
58
|
+
id: _id2,
|
|
55
59
|
transform: "translate(14.9125, 13.75)",
|
|
56
60
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
57
|
-
id:
|
|
61
|
+
id: _id3,
|
|
58
62
|
fill: "white",
|
|
59
63
|
children: /*#__PURE__*/_jsx("use", {
|
|
60
|
-
href: "#
|
|
64
|
+
href: "#".concat(_id)
|
|
61
65
|
})
|
|
62
66
|
}), /*#__PURE__*/_jsx("g", {}), /*#__PURE__*/_jsx("g", {
|
|
63
|
-
mask: "url(#
|
|
67
|
+
mask: "url(#".concat(_id3, ")"),
|
|
64
68
|
children: /*#__PURE__*/_jsxs("g", {
|
|
65
69
|
transform: "translate(10.4625, 25.15)",
|
|
66
70
|
children: [/*#__PURE__*/_jsx("path", {
|
package/es/result/Processing.js
CHANGED
|
@@ -4,11 +4,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { useUniqueInlineId } from '@inline-svg-unique-id/react';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import Icon from '@oceanbase/icons';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
12
|
var ProcessingSvg = function ProcessingSvg() {
|
|
13
|
+
var _id3 = useUniqueInlineId();
|
|
14
|
+
var _id2 = useUniqueInlineId();
|
|
15
|
+
var _id = useUniqueInlineId();
|
|
12
16
|
return /*#__PURE__*/_jsxs("svg", {
|
|
13
17
|
width: "160px",
|
|
14
18
|
height: "160px",
|
|
@@ -18,7 +22,7 @@ var ProcessingSvg = function ProcessingSvg() {
|
|
|
18
22
|
children: [/*#__PURE__*/_jsx("defs", {
|
|
19
23
|
children: /*#__PURE__*/_jsx("path", {
|
|
20
24
|
d: "M33.1125,0.0125 L100.6125,0.0125 C118.8875,0.0125 133.725,14.85 133.725,33.125 L133.725,118.1 L33.1125,118.1 C14.8375,118.1 4.4408921e-15,103.2625 4.4408921e-15,84.9875 L4.4408921e-15,33.1125 C4.4408921e-15,14.8375 14.8375,0 33.1125,0 L33.1125,0.0125 Z",
|
|
21
|
-
id:
|
|
25
|
+
id: _id
|
|
22
26
|
})
|
|
23
27
|
}), /*#__PURE__*/_jsx("g", {
|
|
24
28
|
stroke: "none",
|
|
@@ -132,16 +136,16 @@ var ProcessingSvg = function ProcessingSvg() {
|
|
|
132
136
|
points: "4.225 32.1125 5.9875 51.8875 37.8375 51.8875 39.5875 32.1125"
|
|
133
137
|
})]
|
|
134
138
|
}), /*#__PURE__*/_jsxs("g", {
|
|
135
|
-
id:
|
|
139
|
+
id: _id2,
|
|
136
140
|
transform: "translate(14.9125, 13.75)",
|
|
137
141
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
138
|
-
id:
|
|
142
|
+
id: _id3,
|
|
139
143
|
fill: "white",
|
|
140
144
|
children: /*#__PURE__*/_jsx("use", {
|
|
141
|
-
href: "#
|
|
145
|
+
href: "#".concat(_id)
|
|
142
146
|
})
|
|
143
147
|
}), /*#__PURE__*/_jsx("g", {}), /*#__PURE__*/_jsx("g", {
|
|
144
|
-
mask: "url(#
|
|
148
|
+
mask: "url(#".concat(_id3, ")"),
|
|
145
149
|
children: /*#__PURE__*/_jsxs("g", {
|
|
146
150
|
transform: "translate(31.5625, 35.9375)",
|
|
147
151
|
children: [/*#__PURE__*/_jsx("rect", {
|
package/es/result/Success.js
CHANGED
|
@@ -4,11 +4,26 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { useUniqueInlineId } from '@inline-svg-unique-id/react';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import Icon from '@oceanbase/icons';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
12
|
var SuccessSvg = function SuccessSvg() {
|
|
13
|
+
var _id14 = useUniqueInlineId();
|
|
14
|
+
var _id13 = useUniqueInlineId();
|
|
15
|
+
var _id12 = useUniqueInlineId();
|
|
16
|
+
var _id11 = useUniqueInlineId();
|
|
17
|
+
var _id10 = useUniqueInlineId();
|
|
18
|
+
var _id9 = useUniqueInlineId();
|
|
19
|
+
var _id8 = useUniqueInlineId();
|
|
20
|
+
var _id7 = useUniqueInlineId();
|
|
21
|
+
var _id6 = useUniqueInlineId();
|
|
22
|
+
var _id5 = useUniqueInlineId();
|
|
23
|
+
var _id4 = useUniqueInlineId();
|
|
24
|
+
var _id3 = useUniqueInlineId();
|
|
25
|
+
var _id2 = useUniqueInlineId();
|
|
26
|
+
var _id = useUniqueInlineId();
|
|
12
27
|
return /*#__PURE__*/_jsxs("svg", {
|
|
13
28
|
width: "160px",
|
|
14
29
|
height: "160px",
|
|
@@ -17,19 +32,19 @@ var SuccessSvg = function SuccessSvg() {
|
|
|
17
32
|
children: [/*#__PURE__*/_jsxs("defs", {
|
|
18
33
|
children: [/*#__PURE__*/_jsx("path", {
|
|
19
34
|
d: "M33.125,0 L100.625,0 C118.875,0 133.75,14.875 133.75,33.125 L133.75,118.125 L33.125,118.125 C14.875,118.125 0,103.25 0,85 L0,33.125 C0,14.875 14.875,0 33.125,0 Z",
|
|
20
|
-
id:
|
|
35
|
+
id: _id
|
|
21
36
|
}), /*#__PURE__*/_jsx("path", {
|
|
22
37
|
d: "M1.43012646,5.5292612 L17.6801265,0.154261199 C19.1801265,-0.345738801 20.8051265,0.404261199 21.1801265,1.9042612 L21.9301265,4.1542612 C22.3051265,5.2792612 21.6801265,6.5292612 20.5551265,6.9042612 L3.80512646,12.5292612 C2.68012646,12.9042612 1.43012646,12.2792612 1.05512646,11.1542612 L0.0551264646,8.2792612 C-0.194873535,7.1542612 0.430126465,5.9042612 1.43012646,5.5292612 L1.43012646,5.5292612 Z",
|
|
23
|
-
id:
|
|
38
|
+
id: _id2
|
|
24
39
|
}), /*#__PURE__*/_jsx("path", {
|
|
25
40
|
d: "M1.89214041,4.7792612 L15.8921404,0.154261199 C17.3921404,-0.345738801 18.8921404,0.404261199 19.3921404,1.9042612 L20.2671404,4.4042612 C20.7671404,5.9042612 20.0171404,7.4042612 18.5171404,7.9042612 L4.51714041,12.5292612 C3.01714041,13.0292612 1.51714041,12.2792612 1.01714041,10.7792612 L0.142140412,8.2792612 C-0.357859588,6.9042612 0.517140412,5.2792612 1.89214041,4.7792612 Z",
|
|
26
|
-
id:
|
|
41
|
+
id: _id3
|
|
27
42
|
}), /*#__PURE__*/_jsx("path", {
|
|
28
43
|
d: "M2.02814371,4.73308102 L15.9031437,0.108081022 C17.1531437,-0.266918978 18.5281437,0.358081022 19.0281437,1.60808102 L20.0281437,4.60808102 C20.4031437,5.85808102 19.7781437,7.23308102 18.5281437,7.73308102 L4.65314371,12.358081 C3.02814371,12.858081 1.27814371,11.983081 0.778143715,10.483081 L0.153143715,8.60808102 C-0.346856285,6.98308102 0.403143715,5.23308102 2.02814371,4.73308102 Z",
|
|
29
|
-
id:
|
|
44
|
+
id: _id4
|
|
30
45
|
}), /*#__PURE__*/_jsx("path", {
|
|
31
46
|
d: "M2.08661279,3.86102208 L13.2116128,0.111022078 C14.0866128,-0.263977922 15.0866128,0.361022078 15.4616128,1.23602208 L16.4616128,4.36102208 C16.9616128,5.73602208 16.2116128,7.36102208 14.7116128,7.73602208 L4.46161279,11.1110221 C2.96161279,11.6110221 1.21161279,10.7360221 0.711612789,9.23602208 L0.0866127887,7.48602208 C-0.288387211,5.98602208 0.586612789,4.36102208 2.08661279,3.86102208 Z",
|
|
32
|
-
id:
|
|
47
|
+
id: _id5
|
|
33
48
|
})]
|
|
34
49
|
}), /*#__PURE__*/_jsx("g", {
|
|
35
50
|
stroke: "none",
|
|
@@ -41,13 +56,13 @@ var SuccessSvg = function SuccessSvg() {
|
|
|
41
56
|
fill: "#0181FD"
|
|
42
57
|
}), /*#__PURE__*/_jsxs("g", {
|
|
43
58
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
44
|
-
id:
|
|
59
|
+
id: _id6,
|
|
45
60
|
fill: "white",
|
|
46
61
|
children: /*#__PURE__*/_jsx("use", {
|
|
47
|
-
href: "#
|
|
62
|
+
href: "#".concat(_id)
|
|
48
63
|
})
|
|
49
64
|
}), /*#__PURE__*/_jsx("g", {}), /*#__PURE__*/_jsx("g", {
|
|
50
|
-
mask: "url(#
|
|
65
|
+
mask: "url(#".concat(_id6, ")"),
|
|
51
66
|
children: /*#__PURE__*/_jsxs("g", {
|
|
52
67
|
transform: "translate(-8.125, 9.25)",
|
|
53
68
|
children: [/*#__PURE__*/_jsx("path", {
|
|
@@ -96,17 +111,17 @@ var SuccessSvg = function SuccessSvg() {
|
|
|
96
111
|
}), /*#__PURE__*/_jsxs("g", {
|
|
97
112
|
transform: "translate(39.5699, 47.5344)",
|
|
98
113
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
99
|
-
id:
|
|
114
|
+
id: _id7,
|
|
100
115
|
fill: "white",
|
|
101
116
|
children: /*#__PURE__*/_jsx("use", {
|
|
102
|
-
href: "#
|
|
117
|
+
href: "#".concat(_id2)
|
|
103
118
|
})
|
|
104
119
|
}), /*#__PURE__*/_jsx("g", {
|
|
105
|
-
id:
|
|
120
|
+
id: _id8
|
|
106
121
|
}), /*#__PURE__*/_jsx("path", {
|
|
107
122
|
d: "M0.555126465,5.7792612 L11.8051265,2.0292612 C12.8051265,1.6542612 13.9301265,2.2792612 14.3051265,3.2792612 L15.5551265,7.0292612 C15.8051265,7.7792612 15.4301265,8.6542612 14.6801265,8.9042612 L2.93012646,12.7792612 C2.18012646,13.0292612 1.30512646,12.6542612 1.05512646,11.9042612 L-0.319873535,7.6542612 C-0.569873535,6.9042612 -0.194873535,6.0292612 0.555126465,5.7792612 Z",
|
|
108
123
|
fill: "#D8D8D8",
|
|
109
|
-
mask: "url(#
|
|
124
|
+
mask: "url(#".concat(_id7, ")")
|
|
110
125
|
})]
|
|
111
126
|
}), /*#__PURE__*/_jsx("path", {
|
|
112
127
|
d: "M47.25,58.6887085 L61.25,54.0637085 C62.75,53.5637085 64.25,54.3137085 64.75,55.8137085 L65.625,58.3137085 C66.125,59.8137085 65.375,61.3137085 63.875,61.8137085 L49.875,66.4387085 C48.375,66.9387085 46.875,66.1887085 46.375,64.6887085 L45.5,62.1887085 C45,60.8137085 45.875,59.1887085 47.25,58.6887085 Z",
|
|
@@ -114,17 +129,17 @@ var SuccessSvg = function SuccessSvg() {
|
|
|
114
129
|
}), /*#__PURE__*/_jsxs("g", {
|
|
115
130
|
transform: "translate(45.3579, 53.9094)",
|
|
116
131
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
117
|
-
id:
|
|
132
|
+
id: _id9,
|
|
118
133
|
fill: "white",
|
|
119
134
|
children: /*#__PURE__*/_jsx("use", {
|
|
120
|
-
href: "#
|
|
135
|
+
href: "#".concat(_id3)
|
|
121
136
|
})
|
|
122
137
|
}), /*#__PURE__*/_jsx("g", {
|
|
123
|
-
id:
|
|
138
|
+
id: _id10
|
|
124
139
|
}), /*#__PURE__*/_jsx("path", {
|
|
125
140
|
d: "M-6.73285959,7.5292612 L8.76714041,2.4042612 C9.76714041,2.0292612 10.8921404,2.6542612 11.2671404,3.6542612 L12.6421404,7.7792612 C13.0171404,8.7792612 12.3921404,9.9042612 11.3921404,10.2792612 L-4.23285959,15.5292612 C-5.23285959,15.9042612 -6.35785959,15.2792612 -6.73285959,14.2792612 L-8.10785959,10.1542612 C-8.35785959,9.0292612 -7.73285959,7.9042612 -6.73285959,7.5292612 Z",
|
|
126
141
|
fill: "#D8D8D8",
|
|
127
|
-
mask: "url(#
|
|
142
|
+
mask: "url(#".concat(_id9, ")")
|
|
128
143
|
})]
|
|
129
144
|
}), /*#__PURE__*/_jsx("path", {
|
|
130
145
|
d: "M49.25,66.5637085 L63.125,61.9387085 C64.375,61.5637085 65.75,62.1887085 66.25,63.4387085 L67.25,66.4387085 C67.625,67.6887085 67,69.0637085 65.75,69.5637085 L51.875,74.1887085 C50.25,74.6887085 48.5,73.8137085 48,72.3137085 L47.375,70.4387085 C46.875,68.8137085 47.625,67.0637085 49.25,66.5637085 Z",
|
|
@@ -132,17 +147,17 @@ var SuccessSvg = function SuccessSvg() {
|
|
|
132
147
|
}), /*#__PURE__*/_jsxs("g", {
|
|
133
148
|
transform: "translate(47.2219, 61.8306)",
|
|
134
149
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
135
|
-
id:
|
|
150
|
+
id: _id11,
|
|
136
151
|
fill: "white",
|
|
137
152
|
children: /*#__PURE__*/_jsx("use", {
|
|
138
|
-
href: "#
|
|
153
|
+
href: "#".concat(_id4)
|
|
139
154
|
})
|
|
140
155
|
}), /*#__PURE__*/_jsx("g", {
|
|
141
|
-
id:
|
|
156
|
+
id: _id12
|
|
142
157
|
}), /*#__PURE__*/_jsx("path", {
|
|
143
158
|
d: "M-5.09685629,7.10808102 L8.77814371,2.48308102 C10.0281437,2.10808102 11.4031437,2.73308102 11.9031437,3.98308102 L12.9031437,6.98308102 C13.2781437,8.23308102 12.6531437,9.60808102 11.4031437,10.108081 L-2.47185629,14.733081 C-4.09685629,15.233081 -5.84685629,14.358081 -6.34685629,12.858081 L-6.97185629,10.983081 C-7.59685629,9.35808102 -6.72185629,7.73308102 -5.09685629,7.10808102 Z",
|
|
144
159
|
fill: "#D8D8D8",
|
|
145
|
-
mask: "url(#
|
|
160
|
+
mask: "url(#".concat(_id11, ")")
|
|
146
161
|
})]
|
|
147
162
|
}), /*#__PURE__*/_jsx("polygon", {
|
|
148
163
|
fill: "#132039",
|
|
@@ -153,17 +168,17 @@ var SuccessSvg = function SuccessSvg() {
|
|
|
153
168
|
}), /*#__PURE__*/_jsxs("g", {
|
|
154
169
|
transform: "translate(50.7884, 69.8277)",
|
|
155
170
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
156
|
-
id:
|
|
171
|
+
id: _id13,
|
|
157
172
|
fill: "white",
|
|
158
173
|
children: /*#__PURE__*/_jsx("use", {
|
|
159
|
-
href: "#
|
|
174
|
+
href: "#".concat(_id5)
|
|
160
175
|
})
|
|
161
176
|
}), /*#__PURE__*/_jsx("g", {
|
|
162
|
-
id:
|
|
177
|
+
id: _id14
|
|
163
178
|
}), /*#__PURE__*/_jsx("path", {
|
|
164
179
|
d: "M-3.66338721,5.73602208 L7.46161279,1.98602208 C8.33661279,1.61102208 9.33661279,2.23602208 9.71161279,3.11102208 L10.7116128,6.23602208 C11.2116128,7.61102208 10.4616128,9.23602208 8.96161279,9.61102208 L-1.28838721,12.9860221 C-2.78838721,13.4860221 -4.53838721,12.6110221 -5.03838721,11.1110221 L-5.53838721,9.48602208 C-6.16338721,7.86102208 -5.28838721,6.23602208 -3.66338721,5.73602208 Z",
|
|
165
180
|
fill: "#D8D8D8",
|
|
166
|
-
mask: "url(#
|
|
181
|
+
mask: "url(#".concat(_id13, ")")
|
|
167
182
|
})]
|
|
168
183
|
}), /*#__PURE__*/_jsx("path", {
|
|
169
184
|
d: "M0,84.0637085 L29.25,69.5637085 C31.875,67.6887085 36.25,53.6887085 36.25,53.6887085 C36.625,52.0637085 37.875,50.6887085 39.5,50.3137085 L47.875,47.8137085 L46.625,58.3137085 L46.625,58.3137085 C47.25,63.5637085 47.75,71.3137085 40.875,75.8137085 C37.5,79.6887085 26.25,94.1887085 26.25,94.1887085 L11.375,98.1887085 L0,84.0637085 L0,84.0637085 Z",
|
package/es/result/Warning.js
CHANGED
|
@@ -4,11 +4,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { useUniqueInlineId } from '@inline-svg-unique-id/react';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import Icon from '@oceanbase/icons';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
12
|
var WarningSvg = function WarningSvg() {
|
|
13
|
+
var _id3 = useUniqueInlineId();
|
|
14
|
+
var _id2 = useUniqueInlineId();
|
|
15
|
+
var _id = useUniqueInlineId();
|
|
12
16
|
return /*#__PURE__*/_jsxs("svg", {
|
|
13
17
|
width: "160px",
|
|
14
18
|
height: "160px",
|
|
@@ -18,7 +22,7 @@ var WarningSvg = function WarningSvg() {
|
|
|
18
22
|
children: [/*#__PURE__*/_jsx("defs", {
|
|
19
23
|
children: /*#__PURE__*/_jsx("path", {
|
|
20
24
|
d: "M33.1125,0 L100.6125,0 C118.8875,0 133.725,14.8375 133.725,33.1125 L133.725,118.0875 L33.1125,118.0875 C14.8375,118.0875 -4.4408921e-15,103.25 -4.4408921e-15,84.975 L-4.4408921e-15,33.1125 C-4.4408921e-15,14.8375 14.8375,0 33.1125,0 Z",
|
|
21
|
-
id:
|
|
25
|
+
id: _id
|
|
22
26
|
})
|
|
23
27
|
}), /*#__PURE__*/_jsx("g", {
|
|
24
28
|
stroke: "none",
|
|
@@ -32,16 +36,16 @@ var WarningSvg = function WarningSvg() {
|
|
|
32
36
|
fill: "#0181FD",
|
|
33
37
|
fillRule: "nonzero"
|
|
34
38
|
}), /*#__PURE__*/_jsxs("g", {
|
|
35
|
-
id:
|
|
39
|
+
id: _id2,
|
|
36
40
|
transform: "translate(14.9125, 13.75)",
|
|
37
41
|
children: [/*#__PURE__*/_jsx("mask", {
|
|
38
|
-
id:
|
|
42
|
+
id: _id3,
|
|
39
43
|
fill: "white",
|
|
40
44
|
children: /*#__PURE__*/_jsx("use", {
|
|
41
|
-
href: "#
|
|
45
|
+
href: "#".concat(_id)
|
|
42
46
|
})
|
|
43
47
|
}), /*#__PURE__*/_jsx("g", {}), /*#__PURE__*/_jsx("g", {
|
|
44
|
-
mask: "url(#
|
|
48
|
+
mask: "url(#".concat(_id3, ")"),
|
|
45
49
|
children: /*#__PURE__*/_jsxs("g", {
|
|
46
50
|
transform: "translate(-13.25, 47.0625)",
|
|
47
51
|
children: [/*#__PURE__*/_jsx("path", {
|
package/es/table/index.d.ts
CHANGED
package/es/table/index.js
CHANGED
|
@@ -31,6 +31,8 @@ function Table(props, ref) {
|
|
|
31
31
|
var _enUS$Table, _locale$Table;
|
|
32
32
|
var customLocale = props.locale,
|
|
33
33
|
size = props.size,
|
|
34
|
+
bordered = props.bordered,
|
|
35
|
+
innerBordered = props.innerBordered,
|
|
34
36
|
columns = props.columns,
|
|
35
37
|
footer = props.footer,
|
|
36
38
|
customPagination = props.pagination,
|
|
@@ -65,7 +67,7 @@ function Table(props, ref) {
|
|
|
65
67
|
var prefixCls = getPrefixCls('table', customizePrefixCls);
|
|
66
68
|
var _useStyle = useStyle(prefixCls),
|
|
67
69
|
wrapSSR = _useStyle.wrapSSR;
|
|
68
|
-
var tableCls = classNames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-expandable"), !isEmpty(expandable)), "".concat(prefixCls, "-selectable"), !!rowSelection), "".concat(prefixCls, "-has-footer"), !!footer), className);
|
|
70
|
+
var tableCls = classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-expandable"), !isEmpty(expandable)), "".concat(prefixCls, "-selectable"), !!rowSelection), "".concat(prefixCls, "-has-footer"), !!footer), "".concat(prefixCls, "-inner-bordered"), innerBordered), className);
|
|
69
71
|
var _useState = useState(false),
|
|
70
72
|
_useState2 = _slicedToArray(_useState, 2),
|
|
71
73
|
openPopover = _useState2[0],
|
|
@@ -190,6 +192,7 @@ function Table(props, ref) {
|
|
|
190
192
|
})
|
|
191
193
|
}),
|
|
192
194
|
size: size,
|
|
195
|
+
bordered: bordered || innerBordered,
|
|
193
196
|
columns: newColumns,
|
|
194
197
|
rowClassName: function rowClassName() {
|
|
195
198
|
return classNames(typeof _rowClassName === 'function' ? _rowClassName.apply(void 0, arguments) : _rowClassName, _defineProperty({}, "".concat(prefixCls, "-expand-row-by-click"), expandable === null || expandable === void 0 ? void 0 : expandable.expandRowByClick));
|
package/es/table/style/index.js
CHANGED
|
@@ -77,9 +77,16 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
77
77
|
backgroundColor: colorFillQuaternary
|
|
78
78
|
}), "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row):not(").concat(antCls, "-descriptions-row) > td"), {
|
|
79
79
|
backgroundColor: colorBgBase
|
|
80
|
-
}))), "".concat(componentCls, "-wrapper ").concat(componentCls).concat(componentCls, "-bordered"), _defineProperty({}, "".concat(componentCls, "-
|
|
80
|
+
}))), "".concat(componentCls, "-wrapper ").concat(componentCls).concat(componentCls, "-bordered"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-thead > tr"), _defineProperty({}, 'th', {
|
|
81
|
+
backgroundColor: colorFillQuaternary
|
|
82
|
+
})), "".concat(componentCls, "-footer"), {
|
|
81
83
|
borderRadius: "0px 0px ".concat(token.borderRadiusLG, "px ").concat(token.borderRadiusLG, "px")
|
|
82
|
-
})), "".concat(componentCls, "-wrapper
|
|
84
|
+
})), "".concat(componentCls, "-wrapper").concat(componentCls, "-inner-bordered ").concat(componentCls, "-bordered"), _defineProperty({}, "".concat(componentCls, "-container"), _defineProperty({
|
|
85
|
+
borderInlineStart: 'none',
|
|
86
|
+
borderTop: 'none'
|
|
87
|
+
}, "".concat(componentCls, "-thead > tr > th, ").concat(componentCls, "-tbody > tr > td"), _defineProperty({}, '&:last-child', {
|
|
88
|
+
borderInlineEnd: 'none'
|
|
89
|
+
})))), "".concat(componentCls, "-wrapper ").concat(componentCls, ":not(").concat(componentCls, "-bordered)"), _defineProperty({}, "".concat(componentCls, "-thead, ").concat(componentCls, "-tbody"), _defineProperty({}, 'td, th', _defineProperty(_defineProperty({}, "&".concat(componentCls, "-row-expand-icon-cell"), {
|
|
83
90
|
backgroundColor: colorBgBase,
|
|
84
91
|
// 设置 paddingRight 即可
|
|
85
92
|
paddingRight: token.paddingXS
|
|
@@ -105,7 +112,7 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
105
112
|
marginLeft: token.margin + token.lineWidth * 2
|
|
106
113
|
}))), "".concat(componentCls, "-middle, ").concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
|
|
107
114
|
marginLeft: token.margin + token.lineWidth * 2 + token.margin
|
|
108
|
-
})))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable").concat(componentCls, "-selectable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-expanded-row > td"), _defineProperty(_defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper):not(").concat(componentCls, "-expanded-row-fixed)"), {
|
|
115
|
+
})))), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable").concat(componentCls, "-selectable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-expanded-row > td"), _defineProperty(_defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper):not(").concat(componentCls, "-expanded-row-fixed)"), {
|
|
109
116
|
marginLeft: token.marginXL + token.marginXL + token.lineWidth * 2
|
|
110
117
|
}), "& > *".concat(componentCls, "-expanded-row-fixed"), {
|
|
111
118
|
paddingLeft: token.marginXL + token.marginXL + token.lineWidth * 2 + token.padding
|
|
@@ -113,7 +120,7 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
113
120
|
marginLeft: token.margin + token.marginXL + token.lineWidth * 2
|
|
114
121
|
}))), "".concat(componentCls, "-middle, ").concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
|
|
115
122
|
marginLeft: token.margin + token.marginXL + token.lineWidth * 2 + token.margin
|
|
116
|
-
})))),
|
|
123
|
+
})))), "".concat(componentCls, "-wrapper ").concat(antCls, "-spin-blur"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "".concat(componentCls, "-placeholder"), {
|
|
117
124
|
// hide empty when Table loading
|
|
118
125
|
visibility: 'hidden'
|
|
119
126
|
}))), "".concat(componentCls, "-wrapper"), _defineProperty({}, "".concat(componentCls, "-pagination"), _defineProperty(_defineProperty({}, "&".concat(antCls, "-pagination"), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TreeSelect as AntTreeSelect } from 'antd';
|
|
2
2
|
import type { TreeSelectProps as AntTreeSelectProps } from 'antd/es/tree-select';
|
|
3
|
-
import { TreeNode as AntTreeNode } from 'rc-tree-select';
|
|
3
|
+
import type { TreeNode as AntTreeNode } from 'rc-tree-select';
|
|
4
4
|
import type { BaseSelectRef } from 'rc-select';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
export * from 'antd/es/tree-select';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isHorizontalPaddingZero: (padding?: string | number) => boolean;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/_util/index.ts
|
|
20
|
+
var util_exports = {};
|
|
21
|
+
__export(util_exports, {
|
|
22
|
+
isHorizontalPaddingZero: () => isHorizontalPaddingZero
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(util_exports);
|
|
25
|
+
var isHorizontalPaddingZero = (padding) => {
|
|
26
|
+
if (typeof padding === "number") {
|
|
27
|
+
return padding === 0;
|
|
28
|
+
}
|
|
29
|
+
if (typeof padding === "string") {
|
|
30
|
+
const parts = padding.trim().split(/\s+/);
|
|
31
|
+
switch (parts.length) {
|
|
32
|
+
case 1:
|
|
33
|
+
return parseFloat(parts[0]) === 0;
|
|
34
|
+
case 2:
|
|
35
|
+
return parseFloat(parts[1]) === 0;
|
|
36
|
+
case 3:
|
|
37
|
+
return parseFloat(parts[1]) === 0;
|
|
38
|
+
case 4:
|
|
39
|
+
return parseFloat(parts[1]) === 0 && parseFloat(parts[3]) === 0;
|
|
40
|
+
default:
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
};
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
isHorizontalPaddingZero
|
|
49
|
+
});
|
package/lib/button/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export * from 'antd/es/button';
|
|
4
4
|
export type ButtonProps = AntButtonProps;
|
|
5
|
-
declare const _default: React.ForwardRefExoticComponent<AntButtonProps & React.RefAttributes<
|
|
5
|
+
declare const _default: React.ForwardRefExoticComponent<AntButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>> & {
|
|
6
6
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
7
7
|
__ANT_BUTTON: boolean;
|
|
8
8
|
};
|
package/lib/card/index.js
CHANGED
|
@@ -38,6 +38,7 @@ var import_antd = require("antd");
|
|
|
38
38
|
var import_classnames = __toESM(require("classnames"));
|
|
39
39
|
var import_react = __toESM(require("react"));
|
|
40
40
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
41
|
+
var import_util2 = require("../_util");
|
|
41
42
|
var import_style = __toESM(require("./style"));
|
|
42
43
|
__reExport(card_exports, require("antd/es/card/Card"), module.exports);
|
|
43
44
|
__reExport(card_exports, require("antd/es/card"), module.exports);
|
|
@@ -60,13 +61,12 @@ var Card = import_react.default.forwardRef(
|
|
|
60
61
|
const prefixCls = getPrefixCls("card", customizePrefixCls);
|
|
61
62
|
const tabsPrefixCls = getPrefixCls("tabs", customizePrefixCls);
|
|
62
63
|
const { wrapSSR } = (0, import_style.default)(prefixCls, tabsPrefixCls);
|
|
63
|
-
const
|
|
64
|
-
const noBodyPadding = zeroPaddingList.includes(bodyStyle == null ? void 0 : bodyStyle.padding) || zeroPaddingList.includes((_a = styles == null ? void 0 : styles.body) == null ? void 0 : _a.padding);
|
|
64
|
+
const noBodyHorizontalPadding = (0, import_util2.isHorizontalPaddingZero)(bodyStyle == null ? void 0 : bodyStyle.padding) || (0, import_util2.isHorizontalPaddingZero)((_a = styles == null ? void 0 : styles.body) == null ? void 0 : _a.padding);
|
|
65
65
|
const cardCls = (0, import_classnames.default)(
|
|
66
66
|
{
|
|
67
67
|
[`${prefixCls}-has-title`]: !!title,
|
|
68
68
|
[`${prefixCls}-no-divider`]: !divided,
|
|
69
|
-
[`${prefixCls}-no-body-padding`]:
|
|
69
|
+
[`${prefixCls}-no-body-horizontal-padding`]: noBodyHorizontalPadding
|
|
70
70
|
},
|
|
71
71
|
className
|
|
72
72
|
);
|