@sheinx/base 3.9.0-beta.2 → 3.9.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/cjs/breadcrumb/breadcrumb-item.d.ts.map +1 -1
  2. package/cjs/breadcrumb/breadcrumb-item.js +9 -1
  3. package/cjs/breadcrumb/breadcrumb.d.ts.map +1 -1
  4. package/cjs/breadcrumb/breadcrumb.js +3 -2
  5. package/cjs/carousel/carousel.d.ts.map +1 -1
  6. package/cjs/carousel/carousel.js +7 -3
  7. package/cjs/carousel/carousel.type.d.ts +21 -0
  8. package/cjs/carousel/carousel.type.d.ts.map +1 -1
  9. package/cjs/cascader/cascader.d.ts.map +1 -1
  10. package/cjs/cascader/cascader.js +5 -4
  11. package/cjs/cascader/cascader.type.d.ts +7 -0
  12. package/cjs/cascader/cascader.type.d.ts.map +1 -1
  13. package/cjs/checkbox/simple-checkbox.d.ts.map +1 -1
  14. package/cjs/checkbox/simple-checkbox.js +2 -2
  15. package/cjs/config/index.d.ts +1 -0
  16. package/cjs/config/index.d.ts.map +1 -1
  17. package/cjs/config/index.js +5 -5
  18. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  19. package/cjs/date-picker/date-picker.js +1 -1
  20. package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
  21. package/cjs/dropdown/dropdownIn.js +2 -2
  22. package/cjs/icons/icons.d.ts.map +1 -1
  23. package/cjs/icons/icons.js +158 -147
  24. package/cjs/input/input-group.d.ts.map +1 -1
  25. package/cjs/input/input-group.js +3 -3
  26. package/cjs/input/input-number.d.ts.map +1 -1
  27. package/cjs/input/input-number.js +2 -1
  28. package/cjs/input/input.d.ts.map +1 -1
  29. package/cjs/input/simple-input.d.ts.map +1 -1
  30. package/cjs/input/simple-input.js +5 -4
  31. package/cjs/modal/modal-content.d.ts.map +1 -1
  32. package/cjs/modal/modal-content.js +43 -2
  33. package/cjs/modal/modal.type.d.ts +21 -0
  34. package/cjs/modal/modal.type.d.ts.map +1 -1
  35. package/cjs/pagination/pagination.js +1 -1
  36. package/cjs/rate/rate.d.ts.map +1 -1
  37. package/cjs/rate/rate.js +9 -3
  38. package/cjs/select/list-tree.d.ts.map +1 -1
  39. package/cjs/select/list-tree.js +44 -16
  40. package/cjs/select/list-tree.type.d.ts +1 -1
  41. package/cjs/select/list-tree.type.d.ts.map +1 -1
  42. package/cjs/select/result.d.ts.map +1 -1
  43. package/cjs/select/result.js +7 -1
  44. package/cjs/select/select.d.ts.map +1 -1
  45. package/cjs/select/select.js +6 -4
  46. package/cjs/select/select.type.d.ts +8 -3
  47. package/cjs/select/select.type.d.ts.map +1 -1
  48. package/cjs/table/table.d.ts +1 -2
  49. package/cjs/table/table.d.ts.map +1 -1
  50. package/cjs/table/table.js +26 -11
  51. package/cjs/table/table.type.d.ts +13 -0
  52. package/cjs/table/table.type.d.ts.map +1 -1
  53. package/cjs/table/tbody.d.ts.map +1 -1
  54. package/cjs/table/tbody.js +15 -11
  55. package/cjs/table/tbody.type.d.ts +1 -1
  56. package/cjs/table/tbody.type.d.ts.map +1 -1
  57. package/cjs/table/td.d.ts.map +1 -1
  58. package/cjs/table/td.js +25 -23
  59. package/cjs/table/thead.d.ts.map +1 -1
  60. package/cjs/table/thead.js +3 -3
  61. package/cjs/table/tr.d.ts +1 -1
  62. package/cjs/table/tr.d.ts.map +1 -1
  63. package/cjs/table/tr.js +16 -13
  64. package/cjs/tag/tag.js +1 -1
  65. package/cjs/textarea/simple-textarea.d.ts.map +1 -1
  66. package/cjs/textarea/simple-textarea.js +2 -2
  67. package/cjs/transfer/transfer.d.ts.map +1 -1
  68. package/cjs/transfer/transfer.js +6 -3
  69. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  70. package/cjs/tree-select/tree-select.js +5 -4
  71. package/cjs/tree-select/tree-select.type.d.ts +8 -1
  72. package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
  73. package/cjs/upload/upload.d.ts.map +1 -1
  74. package/cjs/upload/upload.js +4 -3
  75. package/cjs/virtual-scroll/scroll-table.d.ts.map +1 -1
  76. package/cjs/virtual-scroll/scroll-table.js +1 -0
  77. package/esm/breadcrumb/breadcrumb-item.d.ts.map +1 -1
  78. package/esm/breadcrumb/breadcrumb-item.js +9 -1
  79. package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
  80. package/esm/breadcrumb/breadcrumb.js +3 -2
  81. package/esm/carousel/carousel.d.ts.map +1 -1
  82. package/esm/carousel/carousel.js +8 -4
  83. package/esm/carousel/carousel.type.d.ts +21 -0
  84. package/esm/carousel/carousel.type.d.ts.map +1 -1
  85. package/esm/cascader/cascader.d.ts.map +1 -1
  86. package/esm/cascader/cascader.js +6 -5
  87. package/esm/cascader/cascader.type.d.ts +7 -0
  88. package/esm/cascader/cascader.type.d.ts.map +1 -1
  89. package/esm/checkbox/simple-checkbox.d.ts.map +1 -1
  90. package/esm/checkbox/simple-checkbox.js +3 -3
  91. package/esm/config/index.d.ts +1 -0
  92. package/esm/config/index.d.ts.map +1 -1
  93. package/esm/config/index.js +5 -5
  94. package/esm/date-picker/date-picker.d.ts.map +1 -1
  95. package/esm/date-picker/date-picker.js +2 -2
  96. package/esm/dropdown/dropdownIn.d.ts.map +1 -1
  97. package/esm/dropdown/dropdownIn.js +3 -3
  98. package/esm/icons/icons.d.ts.map +1 -1
  99. package/esm/icons/icons.js +158 -146
  100. package/esm/input/input-group.d.ts.map +1 -1
  101. package/esm/input/input-group.js +3 -3
  102. package/esm/input/input-number.d.ts.map +1 -1
  103. package/esm/input/input-number.js +2 -1
  104. package/esm/input/input.d.ts.map +1 -1
  105. package/esm/input/simple-input.d.ts.map +1 -1
  106. package/esm/input/simple-input.js +6 -5
  107. package/esm/modal/modal-content.d.ts.map +1 -1
  108. package/esm/modal/modal-content.js +43 -2
  109. package/esm/modal/modal.type.d.ts +21 -0
  110. package/esm/modal/modal.type.d.ts.map +1 -1
  111. package/esm/pagination/pagination.js +2 -2
  112. package/esm/rate/rate.d.ts.map +1 -1
  113. package/esm/rate/rate.js +11 -4
  114. package/esm/select/list-tree.d.ts.map +1 -1
  115. package/esm/select/list-tree.js +44 -16
  116. package/esm/select/list-tree.type.d.ts +1 -1
  117. package/esm/select/list-tree.type.d.ts.map +1 -1
  118. package/esm/select/result.d.ts.map +1 -1
  119. package/esm/select/result.js +7 -1
  120. package/esm/select/select.d.ts.map +1 -1
  121. package/esm/select/select.js +7 -5
  122. package/esm/select/select.type.d.ts +8 -3
  123. package/esm/select/select.type.d.ts.map +1 -1
  124. package/esm/table/table.d.ts +1 -2
  125. package/esm/table/table.d.ts.map +1 -1
  126. package/esm/table/table.js +25 -10
  127. package/esm/table/table.type.d.ts +13 -0
  128. package/esm/table/table.type.d.ts.map +1 -1
  129. package/esm/table/tbody.d.ts.map +1 -1
  130. package/esm/table/tbody.js +15 -11
  131. package/esm/table/tbody.type.d.ts +1 -1
  132. package/esm/table/tbody.type.d.ts.map +1 -1
  133. package/esm/table/td.d.ts.map +1 -1
  134. package/esm/table/td.js +25 -23
  135. package/esm/table/thead.d.ts.map +1 -1
  136. package/esm/table/thead.js +3 -3
  137. package/esm/table/tr.d.ts +1 -1
  138. package/esm/table/tr.d.ts.map +1 -1
  139. package/esm/table/tr.js +16 -13
  140. package/esm/tag/tag.js +2 -2
  141. package/esm/textarea/simple-textarea.d.ts.map +1 -1
  142. package/esm/textarea/simple-textarea.js +3 -3
  143. package/esm/transfer/transfer.d.ts.map +1 -1
  144. package/esm/transfer/transfer.js +7 -4
  145. package/esm/tree-select/tree-select.d.ts.map +1 -1
  146. package/esm/tree-select/tree-select.js +6 -5
  147. package/esm/tree-select/tree-select.type.d.ts +8 -1
  148. package/esm/tree-select/tree-select.type.d.ts.map +1 -1
  149. package/esm/upload/upload.d.ts.map +1 -1
  150. package/esm/upload/upload.js +5 -4
  151. package/esm/virtual-scroll/scroll-table.d.ts.map +1 -1
  152. package/esm/virtual-scroll/scroll-table.js +1 -0
  153. package/package.json +3 -3
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
7
+ var _react = require("react");
8
8
  var _jsxRuntime = require("react/jsx-runtime");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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 emptyNoData = /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
228
- width: "100",
229
- height: "75",
230
- viewBox: "0 0 100 75",
231
- fill: "none",
232
- xmlns: "http://www.w3.org/2000/svg",
233
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
234
- clipPath: "url(#clip0_4044_10434)",
235
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
236
- d: "M100 75C100 63.3607 77.6144 53.9257 50 53.9257C22.3857 53.9257 0 63.3607 0 75H100Z",
237
- fill: "url(#paint0_linear_4044_10434)"
238
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
239
- opacity: "0.3",
240
- filter: "url(#filter0_f_4044_10434)",
241
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
242
- 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",
243
- fill: "#979EB0"
244
- })
245
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
246
- 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",
247
- fill: "#CCCFD7"
248
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
249
- d: "M75.9819 23.9172V37.2382H81.2882L75.9819 23.9172Z",
250
- fill: "#999DA8"
251
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
252
- 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",
253
- fill: "#E8EBF0"
254
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
255
- filter: "url(#filter1_d_4044_10434)",
256
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
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: "black"
259
- })
260
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
261
- 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",
262
- fill: "#F4F5F8"
263
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
264
- d: "M23.4412 23.8855V37.0162H18.3242L23.4412 23.8855Z",
265
- fill: "#999DA8"
266
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
267
- 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",
268
- fill: "#666C7C"
269
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
270
- 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",
271
- fill: "#999DA8"
272
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
273
- fillRule: "evenodd",
274
- clipRule: "evenodd",
275
- 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",
276
- fill: "#E8EBF0"
277
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
278
- d: "M45.6834 8.54285L47.4941 11.6922H43.8726L45.6834 8.54285Z",
279
- fill: "#999DA8"
280
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
281
- d: "M52.304 8.54285H49.1677V11.6921H52.304V8.54285Z",
282
- fill: "#999DA8"
283
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
284
- 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",
285
- fill: "#999DA8"
286
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
287
- 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",
288
- fill: "#E8EBF0"
289
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
290
- 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",
291
- fill: "#E8EBF0"
292
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
293
- 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",
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)("filter", {
321
- id: "filter1_d_4044_10434",
322
- x: "16.0493",
323
- y: "37.776",
324
- width: "67.8474",
325
- height: "30.1659",
326
- filterUnits: "userSpaceOnUse",
327
- colorInterpolationFilters: "sRGB",
328
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("feFlood", {
329
- floodOpacity: "0",
330
- result: "BackgroundImageFix"
331
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
332
- in: "SourceAlpha",
333
- type: "matrix",
334
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
335
- result: "hardAlpha"
336
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feOffset", {
337
- dy: "2"
338
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
339
- type: "matrix",
340
- values: "0 0 0 0 0.803922 0 0 0 0 0.811765 0 0 0 0 0.843137 0 0 0 1 0"
341
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
342
- mode: "normal",
343
- in2: "BackgroundImageFix",
344
- result: "effect1_dropShadow_4044_10434"
345
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
346
- mode: "normal",
347
- in: "SourceGraphic",
348
- in2: "effect1_dropShadow_4044_10434",
349
- result: "shape"
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: emptyNoData
427
+ EmptyNoData: /*#__PURE__*/(0, _jsxRuntime.jsx)(EmptyNoData, {})
417
428
  };
418
429
  var _default = exports.default = Icons;
@@ -1 +1 @@
1
- {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAK9B,eAAe;AAAtC,wBA0EE"}
1
+ {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAK9B,eAAe;AAAtC,wBAyEE"}
@@ -88,7 +88,8 @@ var _default = exports.default = function _default(props) {
88
88
  var shouldSeparate = separate !== null && separate !== void 0 ? separate : seperate;
89
89
  var rootClass = (0, _classnames.default)(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.group, shouldSeparate && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSeparate), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupLarge), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupDisabled), !!focus && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupFocus), (status === 'error' || error) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupError));
90
90
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, _hooks.util.getDataAttribute({
91
- role: shouldSeparate ? 'input-group-separate' : 'input-group'
91
+ role: shouldSeparate ? 'input-group-separate' : 'input-group',
92
+ border: props.seamless ? 'false' : undefined
92
93
  })), {}, {
93
94
  className: rootClass,
94
95
  style: _objectSpread({
@@ -104,8 +105,7 @@ var _default = exports.default = function _default(props) {
104
105
  if ( /*#__PURE__*/React.isValidElement(child)) {
105
106
  return /*#__PURE__*/(0, _react.cloneElement)(child, _objectSpread(_objectSpread({}, getProps(child)), {}, {
106
107
  disabled: child.props.disabled || disabled,
107
- size: child.props.size || size,
108
- border: props.seamless ? false : child.props.border
108
+ size: child.props.size || size
109
109
  }));
110
110
  }
111
111
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -1 +1 @@
1
- {"version":3,"file":"input-number.d.ts","sourceRoot":"","sources":["input-number.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;;AA8FvD,wBAAuC"}
1
+ {"version":3,"file":"input-number.d.ts","sourceRoot":"","sources":["input-number.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;;AA+FvD,wBAAuC"}
@@ -97,7 +97,8 @@ var InputNumber = function InputNumber(props) {
97
97
  value: numberFormatProps.value || '',
98
98
  className: (0, _classnames.default)(forwardProps.className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperNumber),
99
99
  onKeyDown: onKeyDown,
100
- addEnd: addEnd
100
+ addEnd: addEnd,
101
+ showClear: props.showClear
101
102
  }));
102
103
  };
103
104
  var _default = exports.default = /*#__PURE__*/_react.default.memo(InputNumber);
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,KAAK,MAAM,OAAO,CAAC;;AA6C1B,wBAAiC"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,KAAK,MAAM,OAAO,CAAC;;AA8C1B,wBAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"simple-input.d.ts","sourceRoot":"","sources":["simple-input.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,QAAA,MAAM,KAAK;YAAW,gBAAgB;;CA0HrC,CAAC;AAGF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"simple-input.d.ts","sourceRoot":"","sources":["simple-input.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,QAAA,MAAM,KAAK;YAAW,gBAAgB;;CA4HrC,CAAC;AAGF,eAAe,KAAK,CAAC"}
@@ -95,9 +95,10 @@ var Input = function Input(props) {
95
95
  className: (0, _classnames.default)(inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.input),
96
96
  onKeyUp: onKeyUp
97
97
  });
98
- var inputElProps = _hooks.util.removeProps(inputProps, {
98
+ var datasetProps = (0, _hooks.getDataset)(props);
99
+ var inputElProps = _hooks.util.removeProps(inputProps, _objectSpread({
99
100
  formName: undefined
100
- });
101
+ }, datasetProps));
101
102
  var inputEl = /*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread({
102
103
  type: "text"
103
104
  }, inputElProps));
@@ -105,9 +106,9 @@ var Input = function Input(props) {
105
106
  inputEl = renderInput(inputEl);
106
107
  }
107
108
  var rootClass = (0, _classnames.default)(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.rootClass, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapper, !!focused && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperFocus), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperDisabled), status === 'error' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperError), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperLarge), !!underline && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperUnderline), !border && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperNoBorder), hasSuffix && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.password), showClearFromProp && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperShowClear), showClearFromProp && !_hooks.util.isEmpty(inputElProps.value) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperHasValue));
108
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread(_objectSpread({
109
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread(_objectSpread(_objectSpread({
109
110
  id: fieldId
110
- }, _hooks.util.getDataAttribute(_defineProperty({}, 'input-border', 'true'))), getRootProps({
111
+ }, _hooks.util.getDataAttribute(_defineProperty({}, 'input-border', 'true'))), datasetProps), getRootProps({
111
112
  className: rootClass,
112
113
  style: style
113
114
  })), {}, {
@@ -1 +1 @@
1
- {"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["modal-content.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AA2D9D,QAAA,MAAM,KAAK,UAAW,iBAAiB,mDAwYtC,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["modal-content.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAgF9D,QAAA,MAAM,KAAK,UAAW,iBAAiB,mDAiatC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -21,6 +20,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
21
20
  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; }
22
21
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
23
22
  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); }
23
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
24
24
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
25
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
26
26
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -30,6 +30,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
30
30
  var hasMask = false;
31
31
  var config = {
32
32
  instanceIds: [],
33
+ cascadeConfigs: [],
33
34
  originDocumentStyle: null
34
35
  };
35
36
  var state = (0, _reactive.create)(config);
@@ -39,11 +40,24 @@ var useModalConfig = function useModalConfig() {
39
40
  var addModalInstance = function addModalInstance(instanceId) {
40
41
  state.mutate.instanceIds.push(instanceId);
41
42
  };
43
+ var addModalCascadeConfig = function addModalCascadeConfig(props) {
44
+ state.mutate.cascadeConfigs.push({
45
+ cascade: props.cascade,
46
+ cascadeWidth: props.cascadeWidth,
47
+ instanceId: props.instanceId
48
+ });
49
+ };
42
50
  var removeModalInstance = function removeModalInstance(instanceId) {
43
51
  state.mutate.instanceIds = state.mutate.instanceIds.filter(function (id) {
44
52
  return id !== instanceId;
45
53
  });
46
54
  };
55
+ var removeModalCascadeConfig = function removeModalCascadeConfig(instanceId) {
56
+ if (!state.mutate.cascadeConfigs.length) return;
57
+ state.mutate.cascadeConfigs = state.mutate.cascadeConfigs.filter(function (config) {
58
+ return config.instanceId !== instanceId;
59
+ });
60
+ };
47
61
  var getInstanceIds = function getInstanceIds() {
48
62
  return state.mutate.instanceIds;
49
63
  };
@@ -131,9 +145,15 @@ var Modal = function Modal(props) {
131
145
  var index = config.instanceIds.indexOf(context.instanceId);
132
146
  if (visible && index === -1) {
133
147
  addModalInstance(context.instanceId);
148
+ addModalCascadeConfig({
149
+ instanceId: context.instanceId,
150
+ cascade: !!props.cascade && !!isPositionX,
151
+ cascadeWidth: _typeof(props.cascade) === 'object' ? props.cascade.width || 180 : 180
152
+ });
134
153
  }
135
154
  if (!visible && index > -1 && !animation) {
136
155
  removeModalInstance(context.instanceId);
156
+ removeModalCascadeConfig(context.instanceId);
137
157
  }
138
158
  }, [visible, animation, config.instanceIds]);
139
159
  (0, _react.useEffect)(handleMaskVisible, [visible]);
@@ -166,6 +186,7 @@ var Modal = function Modal(props) {
166
186
  });
167
187
  var handleClose = (0, _hooks.usePersistFn)(function () {
168
188
  var _props$onClose;
189
+ removeModalCascadeConfig(context.instanceId);
169
190
  if (!visible) return;
170
191
  if (props.autoShow) {
171
192
  setVisible(false);
@@ -255,6 +276,7 @@ var Modal = function Modal(props) {
255
276
  return function () {
256
277
  var _props$shouldDestroy2;
257
278
  removeModalInstance(context.instanceId);
279
+ removeModalCascadeConfig(context.instanceId);
258
280
  var instanceIds = getInstanceIds();
259
281
  if (instanceIds.length === 0) {
260
282
  resetDocumentOverflow();
@@ -302,6 +324,7 @@ var Modal = function Modal(props) {
302
324
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
303
325
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.header,
304
326
  onMouseDown: props.moveable && !props.fullScreen ? moveInfo.handleMouseDown : undefined,
327
+ style: props.headerStyle,
305
328
  children: [renderIcon(), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
306
329
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerTitle,
307
330
  children: props.title
@@ -326,6 +349,7 @@ var Modal = function Modal(props) {
326
349
  if (!props.footer) return null;
327
350
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
328
351
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.footer,
352
+ style: props.footerStyle,
329
353
  children: props.footer
330
354
  });
331
355
  };
@@ -348,13 +372,30 @@ var Modal = function Modal(props) {
348
372
  };
349
373
  if (!context.renderEd && !visible) return null;
350
374
  context.renderEd = true;
375
+ var cascadeStyle = (0, _react.useMemo)(function () {
376
+ if (!props.cascade) return;
377
+ var idx = config.instanceIds.findIndex(function (id) {
378
+ return id === context.instanceId;
379
+ });
380
+ var instance = 0;
381
+ var curCascadeConfig = config.cascadeConfigs.find(function (c) {
382
+ return c.instanceId === context.instanceId;
383
+ });
384
+ if (curCascadeConfig && idx < config.cascadeConfigs.length - 1) {
385
+ instance = curCascadeConfig.cascadeWidth;
386
+ }
387
+ return {
388
+ transform: props.position === 'left' ? "translateX(".concat(instance, "px)") : "translateX(-".concat(instance, "px)"),
389
+ transition: instance ? 'transform 0.3s ease 0.05s' : 'transform 0.2s ease'
390
+ };
391
+ }, [config.cascadeConfigs, config.instanceIds]);
351
392
  var panelStyle = _objectSpread(_objectSpread({
352
393
  transformOrigin: origin,
353
394
  top: props.fullScreen ? undefined : top
354
395
  }, props.style), {}, {
355
396
  width: props.fullScreen ? undefined : width,
356
397
  height: props.fullScreen ? undefined : height
357
- });
398
+ }, cascadeStyle);
358
399
  if (props.resizable) {
359
400
  panelStyle.width = resizeInfo.width;
360
401
  panelStyle.height = resizeInfo.height;
@@ -69,6 +69,18 @@ export interface ModalProps extends Pick<CommonType, 'className' | 'style'> {
69
69
  * @cn 扩展弹出层 body 的样式
70
70
  */
71
71
  bodyStyle?: React.CSSProperties;
72
+ /**
73
+ * @en Extend pop-up header style
74
+ * @cn 扩展弹出层 header 的样式
75
+ * @version 3.9.0
76
+ */
77
+ headerStyle?: React.CSSProperties;
78
+ /**
79
+ * @en Extend pop-up footer style
80
+ * @cn 扩展弹出层 footer 的样式
81
+ * @version 3.9.0
82
+ */
83
+ footerStyle?: React.CSSProperties;
72
84
  /**
73
85
  * @en The content at the bottom
74
86
  * @cn 底部内容
@@ -200,5 +212,14 @@ export interface ModalProps extends Pick<CommonType, 'className' | 'style'> {
200
212
  * @cn 弹出层内容
201
213
  */
202
214
  children?: React.ReactNode;
215
+ /**
216
+ * @en In multi-layer nesting, the parent automatically offsets to avoid being blocked (only left/right positions take effect)
217
+ * @cn 多层嵌套时,父级自动偏移避免被遮挡(仅 left/right 位置生效);设置cascade为true时偏移量为180px,也可设置cascade.width自定义偏移量
218
+ * @default false
219
+ * @version 3.9.0
220
+ */
221
+ cascade?: boolean | {
222
+ width?: number;
223
+ };
203
224
  }
204
225
  //# sourceMappingURL=modal.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal.type.d.ts","sourceRoot":"","sources":["modal.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEtF,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAE5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACn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IAE3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAEhD;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxC"}
@@ -87,7 +87,7 @@ var Pagination = function Pagination(props) {
87
87
  })
88
88
  }));
89
89
  }
90
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, getRootProps()), {}, {
90
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread(_objectSpread({}, getRootProps()), (0, _hooks.getDataset)(props)), {}, {
91
91
  className: rootClasses,
92
92
  children: layout.map(function (section, i) {
93
93
  switch (section) {
@@ -1 +1 @@
1
- {"version":3,"file":"rate.d.ts","sourceRoot":"","sources":["rate.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOxC,QAAA,MAAM,IAAI,WAAY,SAAS,4CA+H9B,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"rate.d.ts","sourceRoot":"","sources":["rate.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOxC,QAAA,MAAM,IAAI,WAAY,SAAS,4CAgI9B,CAAC;AAEF,eAAe,IAAI,CAAC"}