@sheinx/base 3.9.0-beta.16 → 3.9.0-beta.17
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/cjs/icons/icons.d.ts.map +1 -1
- package/cjs/icons/icons.js +158 -147
- package/cjs/table/table.d.ts +1 -2
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +10 -9
- package/cjs/table/thead.d.ts.map +1 -1
- package/cjs/table/thead.js +3 -3
- package/esm/icons/icons.d.ts.map +1 -1
- package/esm/icons/icons.js +158 -146
- package/esm/table/table.d.ts +1 -2
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +9 -8
- package/esm/table/thead.d.ts.map +1 -1
- package/esm/table/thead.js +3 -3
- package/package.json +2 -2
package/cjs/icons/icons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"AAubA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/cjs/icons/icons.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = require("react");
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
|
|
9
|
+
var emptyNoDataIdCounter = 0;
|
|
10
10
|
function icon(paths) {
|
|
11
11
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
12
12
|
viewBox: "0 0 24 24",
|
|
@@ -224,154 +224,165 @@ var link = ['M8.83231 20.7322C7.27024 22.2943 4.73759 22.2943 3.17546 20.7322C1.
|
|
|
224
224
|
var filter = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
225
225
|
d: "M19.9653 2.10633C20.5175 2.10633 20.9652 2.55404 20.9652 3.10633C20.9652 3.65861 20.5175 4.10633 19.9653 4.10633H19.6834L14.9666 11.3709V19.8936C14.9666 20.9981 14.0712 21.8936 12.9666 21.8936H10.9666C9.86204 21.8936 8.96662 20.9981 8.96662 19.8936V11.3709L4.35408 4.10632L4.03906 4.10632C3.48677 4.10632 3.03906 3.65861 3.03906 3.10632C3.03906 2.55404 3.48677 2.10632 4.03906 2.10632L19.9653 2.10633ZM6.75776 4.10632L10.8119 10.5206C10.913 10.6804 10.9666 10.8657 10.9666 11.0548V18.8312C10.9666 19.3835 11.4143 19.8312 11.9666 19.8312C12.5189 19.8312 12.9666 19.3835 12.9666 18.8312V11.0609C12.9666 10.868 13.0224 10.6792 13.1273 10.5172L17.2797 4.10633L6.75776 4.10632Z"
|
|
226
226
|
});
|
|
227
|
-
var
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
227
|
+
var EmptyNoData = function EmptyNoData() {
|
|
228
|
+
var uniqueIdRef = (0, _react.useRef)();
|
|
229
|
+
if (!uniqueIdRef.current) {
|
|
230
|
+
uniqueIdRef.current = "empty-".concat(emptyNoDataIdCounter++);
|
|
231
|
+
}
|
|
232
|
+
var uniqueId = uniqueIdRef.current;
|
|
233
|
+
var clip0 = "clip0_".concat(uniqueId);
|
|
234
|
+
var paint0 = "paint0_linear_".concat(uniqueId);
|
|
235
|
+
var filter0 = "filter0_f_".concat(uniqueId);
|
|
236
|
+
var filter1 = "filter1_d_".concat(uniqueId);
|
|
237
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
|
|
238
|
+
width: "100",
|
|
239
|
+
height: "75",
|
|
240
|
+
viewBox: "0 0 100 75",
|
|
241
|
+
fill: "none",
|
|
242
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
243
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
244
|
+
clipPath: "url(#".concat(clip0, ")"),
|
|
245
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
246
|
+
d: "M100 75C100 63.3607 77.6144 53.9257 50 53.9257C22.3857 53.9257 0 63.3607 0 75H100Z",
|
|
247
|
+
fill: "url(#".concat(paint0, ")")
|
|
248
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
249
|
+
opacity: "0.3",
|
|
250
|
+
filter: "url(#".concat(filter0, ")"),
|
|
251
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
252
|
+
d: "M50.3087 70.0413C69.5706 70.0413 85.185 68.2375 85.185 66.0125C85.185 63.7875 69.5706 61.9835 50.3087 61.9835C31.0469 61.9835 15.4321 63.7875 15.4321 66.0125C15.4321 68.2375 31.0469 70.0413 50.3087 70.0413Z",
|
|
253
|
+
fill: "#979EB0"
|
|
254
|
+
})
|
|
255
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
256
|
+
d: "M22.6082 23.6395C22.782 23.2127 23.1957 22.9338 23.6548 22.9338H75.7168C76.1718 22.9338 76.5818 23.2071 76.7593 23.6275L82.9493 38.3482H16.6184L22.6082 23.6395Z",
|
|
257
|
+
fill: "#CCCFD7"
|
|
258
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
259
|
+
d: "M75.9819 23.9172V37.2382H81.2882L75.9819 23.9172Z",
|
|
260
|
+
fill: "#999DA8"
|
|
261
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
262
|
+
d: "M18.877 37.0161H81.0701C82.6314 37.0161 83.897 38.2871 83.897 39.8547V61.7805C83.897 64.2888 81.872 66.3225 79.3739 66.3225H20.5732C18.0752 66.3225 16.05 64.2888 16.05 61.7805V39.8547C16.05 38.2871 17.3157 37.0161 18.877 37.0161Z",
|
|
263
|
+
fill: "#E8EBF0"
|
|
264
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
265
|
+
filter: "url(#".concat(filter1, ")"),
|
|
266
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
267
|
+
d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
|
|
268
|
+
fill: "black"
|
|
269
|
+
})
|
|
270
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
257
271
|
d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
|
|
258
|
-
fill: "
|
|
259
|
-
})
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
fill: "#E8EBF0"
|
|
295
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
296
|
-
d: "M26.0283 27.1925C25.977 26.9505 26.1514 26.7154 26.396 26.6852C27.3291 26.5701 29.6586 26.1971 33.309 25.0577C37.011 23.9021 40.6908 21.2137 41.9723 20.2199C42.1914 20.05 42.5167 20.1675 42.5743 20.4394C42.6023 20.572 42.5585 20.7071 42.454 20.793C41.598 21.497 37.5626 24.6932 33.4811 25.8705C29.5763 26.9969 27.2876 27.3842 26.4592 27.5011C26.2561 27.5298 26.0709 27.394 26.0283 27.1925Z",
|
|
297
|
-
fill: "#E8EBF0"
|
|
298
|
-
})]
|
|
299
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("defs", {
|
|
300
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("filter", {
|
|
301
|
-
id: "filter0_f_4044_10434",
|
|
302
|
-
x: "9.43213",
|
|
303
|
-
y: "55.9835",
|
|
304
|
-
width: "81.7529",
|
|
305
|
-
height: "20.0577",
|
|
306
|
-
filterUnits: "userSpaceOnUse",
|
|
307
|
-
colorInterpolationFilters: "sRGB",
|
|
308
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("feFlood", {
|
|
309
|
-
floodOpacity: "0",
|
|
310
|
-
result: "BackgroundImageFix"
|
|
311
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
|
|
312
|
-
mode: "normal",
|
|
313
|
-
in: "SourceGraphic",
|
|
314
|
-
in2: "BackgroundImageFix",
|
|
315
|
-
result: "shape"
|
|
316
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("feGaussianBlur", {
|
|
317
|
-
stdDeviation: "3",
|
|
318
|
-
result: "effect1_foregroundBlur_4044_10434"
|
|
272
|
+
fill: "#F4F5F8"
|
|
273
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
274
|
+
d: "M23.4412 23.8855V37.0162H18.3242L23.4412 23.8855Z",
|
|
275
|
+
fill: "#999DA8"
|
|
276
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
277
|
+
d: "M60.3971 50.7178H39.5502C38.0849 50.7178 36.897 51.9106 36.897 53.382C36.897 54.8534 38.0849 56.0462 39.5502 56.0462H60.3971C61.8625 56.0462 63.0501 54.8534 63.0501 53.382C63.0501 51.9106 61.8625 50.7178 60.3971 50.7178Z",
|
|
278
|
+
fill: "#666C7C"
|
|
279
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
280
|
+
d: "M60.3971 49.9565H39.5502C38.0849 49.9565 36.897 51.1494 36.897 52.6208C36.897 54.0922 38.0849 55.285 39.5502 55.285H60.3971C61.8625 55.285 63.0501 54.0922 63.0501 52.6208C63.0501 51.1494 61.8625 49.9565 60.3971 49.9565Z",
|
|
281
|
+
fill: "#999DA8"
|
|
282
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
283
|
+
fillRule: "evenodd",
|
|
284
|
+
clipRule: "evenodd",
|
|
285
|
+
d: "M46.041 3.14062C42.6319 3.14062 39.8682 5.91575 39.8682 9.33899V11.4859C39.8682 14.9092 42.6319 17.6842 46.041 17.6842H54.8002C58.2093 17.6842 60.9731 14.9092 60.9731 11.4859V9.33899C60.9731 5.91575 58.2093 3.14062 54.8002 3.14062H46.041ZM47.3169 21.0086L49.386 17.6842H45.2478L47.3169 21.0086Z",
|
|
286
|
+
fill: "#E8EBF0"
|
|
287
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
288
|
+
d: "M45.6834 8.54285L47.4941 11.6922H43.8726L45.6834 8.54285Z",
|
|
289
|
+
fill: "#999DA8"
|
|
290
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
291
|
+
d: "M52.304 8.54285H49.1677V11.6921H52.304V8.54285Z",
|
|
292
|
+
fill: "#999DA8"
|
|
293
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
294
|
+
d: "M55.6802 11.6919C56.5463 11.6919 57.2484 10.9869 57.2484 10.1172C57.2484 9.2476 56.5463 8.5426 55.6802 8.5426C54.8142 8.5426 54.1121 9.2476 54.1121 10.1172C54.1121 10.9869 54.8142 11.6919 55.6802 11.6919Z",
|
|
295
|
+
fill: "#999DA8"
|
|
296
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
297
|
+
d: "M67.7256 5.8507C66.5081 6.69694 63.5181 6.751 62.3457 7.09731L63.5875 5.64293C64.415 4.6041 64.6631 4.10547 65.6562 2.11091C66.6493 0.116362 69.3118 -0.105256 70.415 0.0332553C69.7943 1.27985 70.415 3.98081 67.7256 5.8507Z",
|
|
298
|
+
fill: "#E8EBF0"
|
|
299
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
300
|
+
d: "M46.257 34.8904C45.3444 35.1307 43.5421 34.5087 42.7649 34.4595L43.824 33.8603C44.5451 33.4193 44.802 33.175 45.8298 32.198C46.8574 31.221 48.4998 31.6709 49.1305 31.9953C48.4883 32.606 48.2737 34.3593 46.257 34.8904Z",
|
|
301
|
+
fill: "#E8EBF0"
|
|
302
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
303
|
+
d: "M37.262 32.7723C37.13 32.5427 37.2462 32.2485 37.4982 32.1696C39.7646 31.4593 49.3015 28.2658 55.6537 22.9713C62.0347 17.653 67.6725 11.576 69.1256 9.9791C69.3069 9.77991 69.6263 9.81841 69.76 10.0521C69.845 10.1989 69.8294 10.3803 69.7169 10.507C68.6225 11.7406 62.8044 18.1953 56.0675 23.6911C48.7371 29.6708 39.4667 32.4671 37.7105 32.9602C37.5349 33.0096 37.3532 32.9308 37.262 32.7723Z",
|
|
304
|
+
fill: "#E8EBF0"
|
|
305
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
306
|
+
d: "M26.0283 27.1925C25.977 26.9505 26.1514 26.7154 26.396 26.6852C27.3291 26.5701 29.6586 26.1971 33.309 25.0577C37.011 23.9021 40.6908 21.2137 41.9723 20.2199C42.1914 20.05 42.5167 20.1675 42.5743 20.4394C42.6023 20.572 42.5585 20.7071 42.454 20.793C41.598 21.497 37.5626 24.6932 33.4811 25.8705C29.5763 26.9969 27.2876 27.3842 26.4592 27.5011C26.2561 27.5298 26.0709 27.394 26.0283 27.1925Z",
|
|
307
|
+
fill: "#E8EBF0"
|
|
319
308
|
})]
|
|
320
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
309
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("defs", {
|
|
310
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("filter", {
|
|
311
|
+
id: filter0,
|
|
312
|
+
x: "9.43213",
|
|
313
|
+
y: "55.9835",
|
|
314
|
+
width: "81.7529",
|
|
315
|
+
height: "20.0577",
|
|
316
|
+
filterUnits: "userSpaceOnUse",
|
|
317
|
+
colorInterpolationFilters: "sRGB",
|
|
318
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("feFlood", {
|
|
319
|
+
floodOpacity: "0",
|
|
320
|
+
result: "BackgroundImageFix"
|
|
321
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
|
|
322
|
+
mode: "normal",
|
|
323
|
+
in: "SourceGraphic",
|
|
324
|
+
in2: "BackgroundImageFix",
|
|
325
|
+
result: "shape"
|
|
326
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("feGaussianBlur", {
|
|
327
|
+
stdDeviation: "3",
|
|
328
|
+
result: "effect1_foregroundBlur_4044_10434"
|
|
329
|
+
})]
|
|
330
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("filter", {
|
|
331
|
+
id: filter1,
|
|
332
|
+
x: "16.0493",
|
|
333
|
+
y: "37.776",
|
|
334
|
+
width: "67.8474",
|
|
335
|
+
height: "30.1659",
|
|
336
|
+
filterUnits: "userSpaceOnUse",
|
|
337
|
+
colorInterpolationFilters: "sRGB",
|
|
338
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("feFlood", {
|
|
339
|
+
floodOpacity: "0",
|
|
340
|
+
result: "BackgroundImageFix"
|
|
341
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
|
|
342
|
+
in: "SourceAlpha",
|
|
343
|
+
type: "matrix",
|
|
344
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
345
|
+
result: "hardAlpha"
|
|
346
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("feOffset", {
|
|
347
|
+
dy: "2"
|
|
348
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
|
|
349
|
+
type: "matrix",
|
|
350
|
+
values: "0 0 0 0 0.803922 0 0 0 0 0.811765 0 0 0 0 0.843137 0 0 0 1 0"
|
|
351
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
|
|
352
|
+
mode: "normal",
|
|
353
|
+
in2: "BackgroundImageFix",
|
|
354
|
+
result: "effect1_dropShadow_4044_10434"
|
|
355
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
|
|
356
|
+
mode: "normal",
|
|
357
|
+
in: "SourceGraphic",
|
|
358
|
+
in2: "effect1_dropShadow_4044_10434",
|
|
359
|
+
result: "shape"
|
|
360
|
+
})]
|
|
361
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("linearGradient", {
|
|
362
|
+
id: paint0,
|
|
363
|
+
x1: "50",
|
|
364
|
+
y1: "53.9257",
|
|
365
|
+
x2: "50",
|
|
366
|
+
y2: "75",
|
|
367
|
+
gradientUnits: "userSpaceOnUse",
|
|
368
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
|
|
369
|
+
stopColor: "#E9EBEF"
|
|
370
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
|
|
371
|
+
offset: "1",
|
|
372
|
+
stopColor: "#E9EBEF",
|
|
373
|
+
stopOpacity: "0"
|
|
374
|
+
})]
|
|
375
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
|
|
376
|
+
id: clip0,
|
|
377
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
378
|
+
width: "100",
|
|
379
|
+
height: "75",
|
|
380
|
+
fill: "white"
|
|
381
|
+
})
|
|
350
382
|
})]
|
|
351
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("linearGradient", {
|
|
352
|
-
id: "paint0_linear_4044_10434",
|
|
353
|
-
x1: "50",
|
|
354
|
-
y1: "53.9257",
|
|
355
|
-
x2: "50",
|
|
356
|
-
y2: "75",
|
|
357
|
-
gradientUnits: "userSpaceOnUse",
|
|
358
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
|
|
359
|
-
stopColor: "#E9EBEF"
|
|
360
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
|
|
361
|
-
offset: "1",
|
|
362
|
-
stopColor: "#E9EBEF",
|
|
363
|
-
stopOpacity: "0"
|
|
364
|
-
})]
|
|
365
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
|
|
366
|
-
id: "clip0_4044_10434",
|
|
367
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
368
|
-
width: "100",
|
|
369
|
-
height: "75",
|
|
370
|
-
fill: "white"
|
|
371
|
-
})
|
|
372
383
|
})]
|
|
373
|
-
})
|
|
374
|
-
}
|
|
384
|
+
});
|
|
385
|
+
};
|
|
375
386
|
var Icons = {
|
|
376
387
|
SortAsc: SortAsc,
|
|
377
388
|
SortDesc: SortDesc,
|
|
@@ -413,6 +424,6 @@ var Icons = {
|
|
|
413
424
|
StarFill: icon(pcStarFill),
|
|
414
425
|
Link: icon(link),
|
|
415
426
|
Loading: icon(loading),
|
|
416
|
-
EmptyNoData:
|
|
427
|
+
EmptyNoData: /*#__PURE__*/(0, _jsxRuntime.jsx)(EmptyNoData, {})
|
|
417
428
|
};
|
|
418
429
|
var _default = exports.default = Icons;
|
package/cjs/table/table.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { TableProps } from './table.type';
|
|
2
|
-
|
|
3
|
-
export default _default;
|
|
2
|
+
export default function Table<Item, Value>(props: TableProps<Item, Value>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=table.d.ts.map
|
package/cjs/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;AAexD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,2CAmuBxE"}
|
package/cjs/table/table.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = Table;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _scrollTable = _interopRequireDefault(require("../virtual-scroll/scroll-table"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -44,7 +44,7 @@ var emptyArr = [];
|
|
|
44
44
|
var emptyRef = {
|
|
45
45
|
current: null
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
function Table(props) {
|
|
48
48
|
var _props$jssStyle, _props$jssStyle$table, _columns$find;
|
|
49
49
|
var _props$verticalAlign = props.verticalAlign,
|
|
50
50
|
verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
|
|
@@ -686,6 +686,12 @@ var _default = exports.default = function _default(props) {
|
|
|
686
686
|
props.tableRef(tableFunc);
|
|
687
687
|
}
|
|
688
688
|
}, []);
|
|
689
|
+
var absoluteProviderValue = (0, _react.useMemo)(function () {
|
|
690
|
+
return {
|
|
691
|
+
absolute: true,
|
|
692
|
+
scrollElRef: scrollRef
|
|
693
|
+
};
|
|
694
|
+
}, [scrollRef]);
|
|
689
695
|
var tableWrapperClass = (0, _classnames.default)(props.className, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rootClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.wrapper, props.bordered && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bordered), verticalAlign === 'top' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignTop), verticalAlign === 'middle' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignMiddle), size === 'small' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.small), size === 'large' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.large), size === 'default' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.default));
|
|
690
696
|
if (!props.columns || columns.length === 0) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
691
697
|
className: (0, _classnames.default)(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
|
|
@@ -698,12 +704,6 @@ var _default = exports.default = function _default(props) {
|
|
|
698
704
|
children: props.children
|
|
699
705
|
})
|
|
700
706
|
});
|
|
701
|
-
var absoluteProviderValue = (0, _react.useMemo)(function () {
|
|
702
|
-
return {
|
|
703
|
-
absolute: true,
|
|
704
|
-
scrollElRef: scrollRef
|
|
705
|
-
};
|
|
706
|
-
}, [scrollRef]);
|
|
707
707
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
708
708
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({
|
|
709
709
|
className: (0, _classnames.default)(tableWrapperClass, _defineProperty(_defineProperty(_defineProperty({}, tableClasses.sticky, props.sticky), tableClasses.floatLeft, floatLeft), tableClasses.floatRight, floatRight)),
|
|
@@ -719,4 +719,5 @@ var _default = exports.default = function _default(props) {
|
|
|
719
719
|
})
|
|
720
720
|
})), renderPagination()]
|
|
721
721
|
});
|
|
722
|
-
}
|
|
722
|
+
}
|
|
723
|
+
;
|
package/cjs/table/thead.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thead.d.ts","sourceRoot":"","sources":["thead.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;gCAWnB,UAAU;AAAjC,
|
|
1
|
+
{"version":3,"file":"thead.d.ts","sourceRoot":"","sources":["thead.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;gCAWnB,UAAU;AAAjC,wBAkVE"}
|
package/cjs/table/thead.js
CHANGED
|
@@ -158,7 +158,7 @@ var _default = exports.default = function _default(props) {
|
|
|
158
158
|
dir: config.direction
|
|
159
159
|
});
|
|
160
160
|
};
|
|
161
|
-
var getFixedStyle = function getFixedStyle(fixed, index,
|
|
161
|
+
var getFixedStyle = function getFixedStyle(fixed, index, level) {
|
|
162
162
|
// 累加level 至 0 的所有高度
|
|
163
163
|
var top = context.trHeights.slice(0, level).reduce(function (a, b) {
|
|
164
164
|
return toNum(a) + toNum(b);
|
|
@@ -174,7 +174,7 @@ var _default = exports.default = function _default(props) {
|
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
if (fixed === 'right') {
|
|
177
|
-
var right = colgroup.slice(index +
|
|
177
|
+
var right = colgroup.slice(index + 1).reduce(function (a, b) {
|
|
178
178
|
return toNum(a) + toNum(b);
|
|
179
179
|
}, 0);
|
|
180
180
|
return {
|
|
@@ -192,7 +192,7 @@ var _default = exports.default = function _default(props) {
|
|
|
192
192
|
var _colTemp2$groupProps, _colTemp2$groupProps2;
|
|
193
193
|
var colTemp = col;
|
|
194
194
|
var colTemp2 = col;
|
|
195
|
-
var fixedStyle = getFixedStyle(col.fixed, col.index,
|
|
195
|
+
var fixedStyle = getFixedStyle(col.fixed, col.index, level);
|
|
196
196
|
var cellClassName = (0, _classnames.default)(colTemp.className, colTemp.type === 'checkbox' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellCheckbox), col.fixed === 'left' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLeft), col.fixed === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedRight), colTemp.align === 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignCenter), colTemp.align === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignRight), colTemp.align !== 'right' && colTemp.align !== 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignLeft), (col.lastFixed || col.firstFixed) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLast), isLast && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellIgnoreBorder), colTemp.sorter && props.cellSortable && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellSortable));
|
|
197
197
|
var isExpand = colTemp.type === 'expand' || colTemp.type === 'row-expand';
|
|
198
198
|
if (colTemp.title || isExpand) {
|
package/esm/icons/icons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"AAubA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/esm/icons/icons.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useRef } from 'react';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
var emptyNoDataIdCounter = 0;
|
|
4
5
|
function icon(paths) {
|
|
5
6
|
return /*#__PURE__*/_jsx("svg", {
|
|
6
7
|
viewBox: "0 0 24 24",
|
|
@@ -218,154 +219,165 @@ var link = ['M8.83231 20.7322C7.27024 22.2943 4.73759 22.2943 3.17546 20.7322C1.
|
|
|
218
219
|
var filter = /*#__PURE__*/_jsx("path", {
|
|
219
220
|
d: "M19.9653 2.10633C20.5175 2.10633 20.9652 2.55404 20.9652 3.10633C20.9652 3.65861 20.5175 4.10633 19.9653 4.10633H19.6834L14.9666 11.3709V19.8936C14.9666 20.9981 14.0712 21.8936 12.9666 21.8936H10.9666C9.86204 21.8936 8.96662 20.9981 8.96662 19.8936V11.3709L4.35408 4.10632L4.03906 4.10632C3.48677 4.10632 3.03906 3.65861 3.03906 3.10632C3.03906 2.55404 3.48677 2.10632 4.03906 2.10632L19.9653 2.10633ZM6.75776 4.10632L10.8119 10.5206C10.913 10.6804 10.9666 10.8657 10.9666 11.0548V18.8312C10.9666 19.3835 11.4143 19.8312 11.9666 19.8312C12.5189 19.8312 12.9666 19.3835 12.9666 18.8312V11.0609C12.9666 10.868 13.0224 10.6792 13.1273 10.5172L17.2797 4.10633L6.75776 4.10632Z"
|
|
220
221
|
});
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
222
|
+
var EmptyNoData = function EmptyNoData() {
|
|
223
|
+
var uniqueIdRef = useRef();
|
|
224
|
+
if (!uniqueIdRef.current) {
|
|
225
|
+
uniqueIdRef.current = "empty-".concat(emptyNoDataIdCounter++);
|
|
226
|
+
}
|
|
227
|
+
var uniqueId = uniqueIdRef.current;
|
|
228
|
+
var clip0 = "clip0_".concat(uniqueId);
|
|
229
|
+
var paint0 = "paint0_linear_".concat(uniqueId);
|
|
230
|
+
var filter0 = "filter0_f_".concat(uniqueId);
|
|
231
|
+
var filter1 = "filter1_d_".concat(uniqueId);
|
|
232
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
233
|
+
width: "100",
|
|
234
|
+
height: "75",
|
|
235
|
+
viewBox: "0 0 100 75",
|
|
236
|
+
fill: "none",
|
|
237
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
238
|
+
children: [/*#__PURE__*/_jsxs("g", {
|
|
239
|
+
clipPath: "url(#".concat(clip0, ")"),
|
|
240
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
241
|
+
d: "M100 75C100 63.3607 77.6144 53.9257 50 53.9257C22.3857 53.9257 0 63.3607 0 75H100Z",
|
|
242
|
+
fill: "url(#".concat(paint0, ")")
|
|
243
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
244
|
+
opacity: "0.3",
|
|
245
|
+
filter: "url(#".concat(filter0, ")"),
|
|
246
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
247
|
+
d: "M50.3087 70.0413C69.5706 70.0413 85.185 68.2375 85.185 66.0125C85.185 63.7875 69.5706 61.9835 50.3087 61.9835C31.0469 61.9835 15.4321 63.7875 15.4321 66.0125C15.4321 68.2375 31.0469 70.0413 50.3087 70.0413Z",
|
|
248
|
+
fill: "#979EB0"
|
|
249
|
+
})
|
|
250
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
251
|
+
d: "M22.6082 23.6395C22.782 23.2127 23.1957 22.9338 23.6548 22.9338H75.7168C76.1718 22.9338 76.5818 23.2071 76.7593 23.6275L82.9493 38.3482H16.6184L22.6082 23.6395Z",
|
|
252
|
+
fill: "#CCCFD7"
|
|
253
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
254
|
+
d: "M75.9819 23.9172V37.2382H81.2882L75.9819 23.9172Z",
|
|
255
|
+
fill: "#999DA8"
|
|
256
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
257
|
+
d: "M18.877 37.0161H81.0701C82.6314 37.0161 83.897 38.2871 83.897 39.8547V61.7805C83.897 64.2888 81.872 66.3225 79.3739 66.3225H20.5732C18.0752 66.3225 16.05 64.2888 16.05 61.7805V39.8547C16.05 38.2871 17.3157 37.0161 18.877 37.0161Z",
|
|
258
|
+
fill: "#E8EBF0"
|
|
259
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
260
|
+
filter: "url(#".concat(filter1, ")"),
|
|
261
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
262
|
+
d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
|
|
263
|
+
fill: "black"
|
|
264
|
+
})
|
|
265
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
251
266
|
d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
|
|
252
|
-
fill: "
|
|
253
|
-
})
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
fill: "#E8EBF0"
|
|
289
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
290
|
-
d: "M26.0283 27.1925C25.977 26.9505 26.1514 26.7154 26.396 26.6852C27.3291 26.5701 29.6586 26.1971 33.309 25.0577C37.011 23.9021 40.6908 21.2137 41.9723 20.2199C42.1914 20.05 42.5167 20.1675 42.5743 20.4394C42.6023 20.572 42.5585 20.7071 42.454 20.793C41.598 21.497 37.5626 24.6932 33.4811 25.8705C29.5763 26.9969 27.2876 27.3842 26.4592 27.5011C26.2561 27.5298 26.0709 27.394 26.0283 27.1925Z",
|
|
291
|
-
fill: "#E8EBF0"
|
|
292
|
-
})]
|
|
293
|
-
}), /*#__PURE__*/_jsxs("defs", {
|
|
294
|
-
children: [/*#__PURE__*/_jsxs("filter", {
|
|
295
|
-
id: "filter0_f_4044_10434",
|
|
296
|
-
x: "9.43213",
|
|
297
|
-
y: "55.9835",
|
|
298
|
-
width: "81.7529",
|
|
299
|
-
height: "20.0577",
|
|
300
|
-
filterUnits: "userSpaceOnUse",
|
|
301
|
-
colorInterpolationFilters: "sRGB",
|
|
302
|
-
children: [/*#__PURE__*/_jsx("feFlood", {
|
|
303
|
-
floodOpacity: "0",
|
|
304
|
-
result: "BackgroundImageFix"
|
|
305
|
-
}), /*#__PURE__*/_jsx("feBlend", {
|
|
306
|
-
mode: "normal",
|
|
307
|
-
in: "SourceGraphic",
|
|
308
|
-
in2: "BackgroundImageFix",
|
|
309
|
-
result: "shape"
|
|
310
|
-
}), /*#__PURE__*/_jsx("feGaussianBlur", {
|
|
311
|
-
stdDeviation: "3",
|
|
312
|
-
result: "effect1_foregroundBlur_4044_10434"
|
|
267
|
+
fill: "#F4F5F8"
|
|
268
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
269
|
+
d: "M23.4412 23.8855V37.0162H18.3242L23.4412 23.8855Z",
|
|
270
|
+
fill: "#999DA8"
|
|
271
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
272
|
+
d: "M60.3971 50.7178H39.5502C38.0849 50.7178 36.897 51.9106 36.897 53.382C36.897 54.8534 38.0849 56.0462 39.5502 56.0462H60.3971C61.8625 56.0462 63.0501 54.8534 63.0501 53.382C63.0501 51.9106 61.8625 50.7178 60.3971 50.7178Z",
|
|
273
|
+
fill: "#666C7C"
|
|
274
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
275
|
+
d: "M60.3971 49.9565H39.5502C38.0849 49.9565 36.897 51.1494 36.897 52.6208C36.897 54.0922 38.0849 55.285 39.5502 55.285H60.3971C61.8625 55.285 63.0501 54.0922 63.0501 52.6208C63.0501 51.1494 61.8625 49.9565 60.3971 49.9565Z",
|
|
276
|
+
fill: "#999DA8"
|
|
277
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
278
|
+
fillRule: "evenodd",
|
|
279
|
+
clipRule: "evenodd",
|
|
280
|
+
d: "M46.041 3.14062C42.6319 3.14062 39.8682 5.91575 39.8682 9.33899V11.4859C39.8682 14.9092 42.6319 17.6842 46.041 17.6842H54.8002C58.2093 17.6842 60.9731 14.9092 60.9731 11.4859V9.33899C60.9731 5.91575 58.2093 3.14062 54.8002 3.14062H46.041ZM47.3169 21.0086L49.386 17.6842H45.2478L47.3169 21.0086Z",
|
|
281
|
+
fill: "#E8EBF0"
|
|
282
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
283
|
+
d: "M45.6834 8.54285L47.4941 11.6922H43.8726L45.6834 8.54285Z",
|
|
284
|
+
fill: "#999DA8"
|
|
285
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
286
|
+
d: "M52.304 8.54285H49.1677V11.6921H52.304V8.54285Z",
|
|
287
|
+
fill: "#999DA8"
|
|
288
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
289
|
+
d: "M55.6802 11.6919C56.5463 11.6919 57.2484 10.9869 57.2484 10.1172C57.2484 9.2476 56.5463 8.5426 55.6802 8.5426C54.8142 8.5426 54.1121 9.2476 54.1121 10.1172C54.1121 10.9869 54.8142 11.6919 55.6802 11.6919Z",
|
|
290
|
+
fill: "#999DA8"
|
|
291
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
292
|
+
d: "M67.7256 5.8507C66.5081 6.69694 63.5181 6.751 62.3457 7.09731L63.5875 5.64293C64.415 4.6041 64.6631 4.10547 65.6562 2.11091C66.6493 0.116362 69.3118 -0.105256 70.415 0.0332553C69.7943 1.27985 70.415 3.98081 67.7256 5.8507Z",
|
|
293
|
+
fill: "#E8EBF0"
|
|
294
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
295
|
+
d: "M46.257 34.8904C45.3444 35.1307 43.5421 34.5087 42.7649 34.4595L43.824 33.8603C44.5451 33.4193 44.802 33.175 45.8298 32.198C46.8574 31.221 48.4998 31.6709 49.1305 31.9953C48.4883 32.606 48.2737 34.3593 46.257 34.8904Z",
|
|
296
|
+
fill: "#E8EBF0"
|
|
297
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
298
|
+
d: "M37.262 32.7723C37.13 32.5427 37.2462 32.2485 37.4982 32.1696C39.7646 31.4593 49.3015 28.2658 55.6537 22.9713C62.0347 17.653 67.6725 11.576 69.1256 9.9791C69.3069 9.77991 69.6263 9.81841 69.76 10.0521C69.845 10.1989 69.8294 10.3803 69.7169 10.507C68.6225 11.7406 62.8044 18.1953 56.0675 23.6911C48.7371 29.6708 39.4667 32.4671 37.7105 32.9602C37.5349 33.0096 37.3532 32.9308 37.262 32.7723Z",
|
|
299
|
+
fill: "#E8EBF0"
|
|
300
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
301
|
+
d: "M26.0283 27.1925C25.977 26.9505 26.1514 26.7154 26.396 26.6852C27.3291 26.5701 29.6586 26.1971 33.309 25.0577C37.011 23.9021 40.6908 21.2137 41.9723 20.2199C42.1914 20.05 42.5167 20.1675 42.5743 20.4394C42.6023 20.572 42.5585 20.7071 42.454 20.793C41.598 21.497 37.5626 24.6932 33.4811 25.8705C29.5763 26.9969 27.2876 27.3842 26.4592 27.5011C26.2561 27.5298 26.0709 27.394 26.0283 27.1925Z",
|
|
302
|
+
fill: "#E8EBF0"
|
|
313
303
|
})]
|
|
314
|
-
}), /*#__PURE__*/_jsxs("
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}), /*#__PURE__*/
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
304
|
+
}), /*#__PURE__*/_jsxs("defs", {
|
|
305
|
+
children: [/*#__PURE__*/_jsxs("filter", {
|
|
306
|
+
id: filter0,
|
|
307
|
+
x: "9.43213",
|
|
308
|
+
y: "55.9835",
|
|
309
|
+
width: "81.7529",
|
|
310
|
+
height: "20.0577",
|
|
311
|
+
filterUnits: "userSpaceOnUse",
|
|
312
|
+
colorInterpolationFilters: "sRGB",
|
|
313
|
+
children: [/*#__PURE__*/_jsx("feFlood", {
|
|
314
|
+
floodOpacity: "0",
|
|
315
|
+
result: "BackgroundImageFix"
|
|
316
|
+
}), /*#__PURE__*/_jsx("feBlend", {
|
|
317
|
+
mode: "normal",
|
|
318
|
+
in: "SourceGraphic",
|
|
319
|
+
in2: "BackgroundImageFix",
|
|
320
|
+
result: "shape"
|
|
321
|
+
}), /*#__PURE__*/_jsx("feGaussianBlur", {
|
|
322
|
+
stdDeviation: "3",
|
|
323
|
+
result: "effect1_foregroundBlur_4044_10434"
|
|
324
|
+
})]
|
|
325
|
+
}), /*#__PURE__*/_jsxs("filter", {
|
|
326
|
+
id: filter1,
|
|
327
|
+
x: "16.0493",
|
|
328
|
+
y: "37.776",
|
|
329
|
+
width: "67.8474",
|
|
330
|
+
height: "30.1659",
|
|
331
|
+
filterUnits: "userSpaceOnUse",
|
|
332
|
+
colorInterpolationFilters: "sRGB",
|
|
333
|
+
children: [/*#__PURE__*/_jsx("feFlood", {
|
|
334
|
+
floodOpacity: "0",
|
|
335
|
+
result: "BackgroundImageFix"
|
|
336
|
+
}), /*#__PURE__*/_jsx("feColorMatrix", {
|
|
337
|
+
in: "SourceAlpha",
|
|
338
|
+
type: "matrix",
|
|
339
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
340
|
+
result: "hardAlpha"
|
|
341
|
+
}), /*#__PURE__*/_jsx("feOffset", {
|
|
342
|
+
dy: "2"
|
|
343
|
+
}), /*#__PURE__*/_jsx("feColorMatrix", {
|
|
344
|
+
type: "matrix",
|
|
345
|
+
values: "0 0 0 0 0.803922 0 0 0 0 0.811765 0 0 0 0 0.843137 0 0 0 1 0"
|
|
346
|
+
}), /*#__PURE__*/_jsx("feBlend", {
|
|
347
|
+
mode: "normal",
|
|
348
|
+
in2: "BackgroundImageFix",
|
|
349
|
+
result: "effect1_dropShadow_4044_10434"
|
|
350
|
+
}), /*#__PURE__*/_jsx("feBlend", {
|
|
351
|
+
mode: "normal",
|
|
352
|
+
in: "SourceGraphic",
|
|
353
|
+
in2: "effect1_dropShadow_4044_10434",
|
|
354
|
+
result: "shape"
|
|
355
|
+
})]
|
|
356
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
357
|
+
id: paint0,
|
|
358
|
+
x1: "50",
|
|
359
|
+
y1: "53.9257",
|
|
360
|
+
x2: "50",
|
|
361
|
+
y2: "75",
|
|
362
|
+
gradientUnits: "userSpaceOnUse",
|
|
363
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
364
|
+
stopColor: "#E9EBEF"
|
|
365
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
366
|
+
offset: "1",
|
|
367
|
+
stopColor: "#E9EBEF",
|
|
368
|
+
stopOpacity: "0"
|
|
369
|
+
})]
|
|
370
|
+
}), /*#__PURE__*/_jsx("clipPath", {
|
|
371
|
+
id: clip0,
|
|
372
|
+
children: /*#__PURE__*/_jsx("rect", {
|
|
373
|
+
width: "100",
|
|
374
|
+
height: "75",
|
|
375
|
+
fill: "white"
|
|
376
|
+
})
|
|
344
377
|
})]
|
|
345
|
-
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
346
|
-
id: "paint0_linear_4044_10434",
|
|
347
|
-
x1: "50",
|
|
348
|
-
y1: "53.9257",
|
|
349
|
-
x2: "50",
|
|
350
|
-
y2: "75",
|
|
351
|
-
gradientUnits: "userSpaceOnUse",
|
|
352
|
-
children: [/*#__PURE__*/_jsx("stop", {
|
|
353
|
-
stopColor: "#E9EBEF"
|
|
354
|
-
}), /*#__PURE__*/_jsx("stop", {
|
|
355
|
-
offset: "1",
|
|
356
|
-
stopColor: "#E9EBEF",
|
|
357
|
-
stopOpacity: "0"
|
|
358
|
-
})]
|
|
359
|
-
}), /*#__PURE__*/_jsx("clipPath", {
|
|
360
|
-
id: "clip0_4044_10434",
|
|
361
|
-
children: /*#__PURE__*/_jsx("rect", {
|
|
362
|
-
width: "100",
|
|
363
|
-
height: "75",
|
|
364
|
-
fill: "white"
|
|
365
|
-
})
|
|
366
378
|
})]
|
|
367
|
-
})
|
|
368
|
-
}
|
|
379
|
+
});
|
|
380
|
+
};
|
|
369
381
|
var Icons = {
|
|
370
382
|
SortAsc: SortAsc,
|
|
371
383
|
SortDesc: SortDesc,
|
|
@@ -407,6 +419,6 @@ var Icons = {
|
|
|
407
419
|
StarFill: icon(pcStarFill),
|
|
408
420
|
Link: icon(link),
|
|
409
421
|
Loading: icon(loading),
|
|
410
|
-
EmptyNoData:
|
|
422
|
+
EmptyNoData: /*#__PURE__*/_jsx(EmptyNoData, {})
|
|
411
423
|
};
|
|
412
424
|
export default Icons;
|
package/esm/table/table.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { TableProps } from './table.type';
|
|
2
|
-
|
|
3
|
-
export default _default;
|
|
2
|
+
export default function Table<Item, Value>(props: TableProps<Item, Value>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=table.d.ts.map
|
package/esm/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;AAexD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,2CAmuBxE"}
|
package/esm/table/table.js
CHANGED
|
@@ -37,7 +37,7 @@ var emptyArr = [];
|
|
|
37
37
|
var emptyRef = {
|
|
38
38
|
current: null
|
|
39
39
|
};
|
|
40
|
-
export default
|
|
40
|
+
export default function Table(props) {
|
|
41
41
|
var _props$jssStyle, _props$jssStyle$table, _columns$find;
|
|
42
42
|
var _props$verticalAlign = props.verticalAlign,
|
|
43
43
|
verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
|
|
@@ -679,6 +679,12 @@ export default (function (props) {
|
|
|
679
679
|
props.tableRef(tableFunc);
|
|
680
680
|
}
|
|
681
681
|
}, []);
|
|
682
|
+
var absoluteProviderValue = useMemo(function () {
|
|
683
|
+
return {
|
|
684
|
+
absolute: true,
|
|
685
|
+
scrollElRef: scrollRef
|
|
686
|
+
};
|
|
687
|
+
}, [scrollRef]);
|
|
682
688
|
var tableWrapperClass = classNames(props.className, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rootClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.wrapper, props.bordered && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bordered), verticalAlign === 'top' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignTop), verticalAlign === 'middle' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignMiddle), size === 'small' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.small), size === 'large' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.large), size === 'default' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.default));
|
|
683
689
|
if (!props.columns || columns.length === 0) return /*#__PURE__*/_jsx("div", {
|
|
684
690
|
className: classNames(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
|
|
@@ -691,12 +697,6 @@ export default (function (props) {
|
|
|
691
697
|
children: props.children
|
|
692
698
|
})
|
|
693
699
|
});
|
|
694
|
-
var absoluteProviderValue = useMemo(function () {
|
|
695
|
-
return {
|
|
696
|
-
absolute: true,
|
|
697
|
-
scrollElRef: scrollRef
|
|
698
|
-
};
|
|
699
|
-
}, [scrollRef]);
|
|
700
700
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
701
701
|
children: [/*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
|
702
702
|
className: classNames(tableWrapperClass, _defineProperty(_defineProperty(_defineProperty({}, tableClasses.sticky, props.sticky), tableClasses.floatLeft, floatLeft), tableClasses.floatRight, floatRight)),
|
|
@@ -712,4 +712,5 @@ export default (function (props) {
|
|
|
712
712
|
})
|
|
713
713
|
})), renderPagination()]
|
|
714
714
|
});
|
|
715
|
-
}
|
|
715
|
+
}
|
|
716
|
+
;
|
package/esm/table/thead.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thead.d.ts","sourceRoot":"","sources":["thead.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;gCAWnB,UAAU;AAAjC,
|
|
1
|
+
{"version":3,"file":"thead.d.ts","sourceRoot":"","sources":["thead.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;gCAWnB,UAAU;AAAjC,wBAkVE"}
|
package/esm/table/thead.js
CHANGED
|
@@ -151,7 +151,7 @@ export default (function (props) {
|
|
|
151
151
|
dir: config.direction
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
|
-
var getFixedStyle = function getFixedStyle(fixed, index,
|
|
154
|
+
var getFixedStyle = function getFixedStyle(fixed, index, level) {
|
|
155
155
|
// 累加level 至 0 的所有高度
|
|
156
156
|
var top = context.trHeights.slice(0, level).reduce(function (a, b) {
|
|
157
157
|
return toNum(a) + toNum(b);
|
|
@@ -167,7 +167,7 @@ export default (function (props) {
|
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
if (fixed === 'right') {
|
|
170
|
-
var right = colgroup.slice(index +
|
|
170
|
+
var right = colgroup.slice(index + 1).reduce(function (a, b) {
|
|
171
171
|
return toNum(a) + toNum(b);
|
|
172
172
|
}, 0);
|
|
173
173
|
return {
|
|
@@ -185,7 +185,7 @@ export default (function (props) {
|
|
|
185
185
|
var _colTemp2$groupProps, _colTemp2$groupProps2;
|
|
186
186
|
var colTemp = col;
|
|
187
187
|
var colTemp2 = col;
|
|
188
|
-
var fixedStyle = getFixedStyle(col.fixed, col.index,
|
|
188
|
+
var fixedStyle = getFixedStyle(col.fixed, col.index, level);
|
|
189
189
|
var cellClassName = classNames(colTemp.className, colTemp.type === 'checkbox' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellCheckbox), col.fixed === 'left' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLeft), col.fixed === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedRight), colTemp.align === 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignCenter), colTemp.align === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignRight), colTemp.align !== 'right' && colTemp.align !== 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignLeft), (col.lastFixed || col.firstFixed) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLast), isLast && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellIgnoreBorder), colTemp.sorter && props.cellSortable && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellSortable));
|
|
190
190
|
var isExpand = colTemp.type === 'expand' || colTemp.type === 'row-expand';
|
|
191
191
|
if (colTemp.title || isExpand) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.9.0-beta.
|
|
3
|
+
"version": "3.9.0-beta.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.9.0-beta.
|
|
13
|
+
"@sheinx/hooks": "3.9.0-beta.17",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|