@sheinx/base 3.9.0-beta.8 → 3.9.0

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 (191) hide show
  1. package/cjs/animation-list/animation-list.d.ts +23 -0
  2. package/cjs/animation-list/animation-list.d.ts.map +1 -1
  3. package/cjs/animation-list/animation-list.js +63 -3
  4. package/cjs/breadcrumb/breadcrumb-item.d.ts.map +1 -1
  5. package/cjs/breadcrumb/breadcrumb-item.js +9 -1
  6. package/cjs/breadcrumb/breadcrumb.d.ts.map +1 -1
  7. package/cjs/breadcrumb/breadcrumb.js +3 -2
  8. package/cjs/carousel/carousel.d.ts.map +1 -1
  9. package/cjs/carousel/carousel.js +7 -3
  10. package/cjs/carousel/carousel.type.d.ts +21 -0
  11. package/cjs/carousel/carousel.type.d.ts.map +1 -1
  12. package/cjs/cascader/cascader.d.ts.map +1 -1
  13. package/cjs/cascader/cascader.js +2 -2
  14. package/cjs/cascader/node.d.ts.map +1 -1
  15. package/cjs/cascader/node.js +2 -0
  16. package/cjs/checkbox/simple-checkbox.d.ts.map +1 -1
  17. package/cjs/checkbox/simple-checkbox.js +2 -2
  18. package/cjs/config/index.d.ts +1 -0
  19. package/cjs/config/index.d.ts.map +1 -1
  20. package/cjs/config/index.js +5 -5
  21. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  22. package/cjs/date-picker/date-picker.js +2 -1
  23. package/cjs/date-picker/date-picker.type.d.ts +26 -0
  24. package/cjs/date-picker/date-picker.type.d.ts.map +1 -1
  25. package/cjs/date-picker/day.d.ts.map +1 -1
  26. package/cjs/date-picker/day.js +13 -4
  27. package/cjs/date-picker/day.type.d.ts +2 -1
  28. package/cjs/date-picker/day.type.d.ts.map +1 -1
  29. package/cjs/date-picker/month.js +2 -2
  30. package/cjs/date-picker/picker.d.ts.map +1 -1
  31. package/cjs/date-picker/picker.js +1 -0
  32. package/cjs/date-picker/picker.type.d.ts +1 -13
  33. package/cjs/date-picker/picker.type.d.ts.map +1 -1
  34. package/cjs/date-picker/quarter.js +2 -2
  35. package/cjs/date-picker/year.js +2 -2
  36. package/cjs/descriptions/descriptions.d.ts.map +1 -1
  37. package/cjs/descriptions/descriptions.js +7 -2
  38. package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
  39. package/cjs/dropdown/dropdownIn.js +2 -2
  40. package/cjs/icons/config.js +2 -2
  41. package/cjs/icons/icons.d.ts.map +1 -1
  42. package/cjs/icons/icons.js +158 -147
  43. package/cjs/input/input.d.ts.map +1 -1
  44. package/cjs/input/simple-input.d.ts.map +1 -1
  45. package/cjs/input/simple-input.js +5 -4
  46. package/cjs/list/list.d.ts.map +1 -1
  47. package/cjs/list/list.js +2 -1
  48. package/cjs/modal/modal-content.d.ts.map +1 -1
  49. package/cjs/modal/modal-content.js +20 -26
  50. package/cjs/modal/modal.type.d.ts +16 -2
  51. package/cjs/modal/modal.type.d.ts.map +1 -1
  52. package/cjs/pagination/pagination.js +1 -1
  53. package/cjs/rate/rate.d.ts.map +1 -1
  54. package/cjs/rate/rate.js +9 -3
  55. package/cjs/select/list-option.js +2 -1
  56. package/cjs/select/list-tree.d.ts.map +1 -1
  57. package/cjs/select/list-tree.js +44 -16
  58. package/cjs/select/list-tree.type.d.ts +1 -1
  59. package/cjs/select/list-tree.type.d.ts.map +1 -1
  60. package/cjs/select/list.d.ts +2 -0
  61. package/cjs/select/list.d.ts.map +1 -1
  62. package/cjs/select/list.js +5 -4
  63. package/cjs/select/result.d.ts.map +1 -1
  64. package/cjs/select/result.js +10 -2
  65. package/cjs/select/select.d.ts.map +1 -1
  66. package/cjs/select/select.js +10 -9
  67. package/cjs/select/select.type.d.ts +8 -3
  68. package/cjs/select/select.type.d.ts.map +1 -1
  69. package/cjs/table/table.d.ts +1 -2
  70. package/cjs/table/table.d.ts.map +1 -1
  71. package/cjs/table/table.js +26 -11
  72. package/cjs/table/table.type.d.ts +6 -0
  73. package/cjs/table/table.type.d.ts.map +1 -1
  74. package/cjs/table/thead.js +3 -3
  75. package/cjs/table/thead.type.d.ts +1 -1
  76. package/cjs/table/thead.type.d.ts.map +1 -1
  77. package/cjs/tag/tag.js +1 -1
  78. package/cjs/tag/tag.type.d.ts +2 -1
  79. package/cjs/tag/tag.type.d.ts.map +1 -1
  80. package/cjs/textarea/simple-textarea.d.ts.map +1 -1
  81. package/cjs/textarea/simple-textarea.js +2 -2
  82. package/cjs/transfer/transfer.d.ts.map +1 -1
  83. package/cjs/transfer/transfer.js +6 -3
  84. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  85. package/cjs/tree-select/tree-select.js +2 -2
  86. package/cjs/tree-select/tree-select.type.d.ts +1 -1
  87. package/cjs/upload/upload.d.ts.map +1 -1
  88. package/cjs/upload/upload.js +4 -3
  89. package/cjs/virtual-scroll/scroll-table.d.ts.map +1 -1
  90. package/cjs/virtual-scroll/scroll-table.js +19 -0
  91. package/cjs/virtual-scroll/scroll.d.ts +1 -0
  92. package/cjs/virtual-scroll/scroll.d.ts.map +1 -1
  93. package/cjs/virtual-scroll/scroll.js +6 -2
  94. package/cjs/virtual-scroll/virtual-scroll-list.d.ts.map +1 -1
  95. package/cjs/virtual-scroll/virtual-scroll-list.js +1 -0
  96. package/esm/animation-list/animation-list.d.ts +23 -0
  97. package/esm/animation-list/animation-list.d.ts.map +1 -1
  98. package/esm/animation-list/animation-list.js +63 -3
  99. package/esm/breadcrumb/breadcrumb-item.d.ts.map +1 -1
  100. package/esm/breadcrumb/breadcrumb-item.js +9 -1
  101. package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
  102. package/esm/breadcrumb/breadcrumb.js +3 -2
  103. package/esm/carousel/carousel.d.ts.map +1 -1
  104. package/esm/carousel/carousel.js +8 -4
  105. package/esm/carousel/carousel.type.d.ts +21 -0
  106. package/esm/carousel/carousel.type.d.ts.map +1 -1
  107. package/esm/cascader/cascader.d.ts.map +1 -1
  108. package/esm/cascader/cascader.js +3 -3
  109. package/esm/cascader/node.d.ts.map +1 -1
  110. package/esm/cascader/node.js +2 -0
  111. package/esm/checkbox/simple-checkbox.d.ts.map +1 -1
  112. package/esm/checkbox/simple-checkbox.js +3 -3
  113. package/esm/config/index.d.ts +1 -0
  114. package/esm/config/index.d.ts.map +1 -1
  115. package/esm/config/index.js +5 -5
  116. package/esm/date-picker/date-picker.d.ts.map +1 -1
  117. package/esm/date-picker/date-picker.js +3 -2
  118. package/esm/date-picker/date-picker.type.d.ts +26 -0
  119. package/esm/date-picker/date-picker.type.d.ts.map +1 -1
  120. package/esm/date-picker/day.d.ts.map +1 -1
  121. package/esm/date-picker/day.js +13 -4
  122. package/esm/date-picker/day.type.d.ts +2 -1
  123. package/esm/date-picker/day.type.d.ts.map +1 -1
  124. package/esm/date-picker/month.js +2 -2
  125. package/esm/date-picker/picker.d.ts.map +1 -1
  126. package/esm/date-picker/picker.js +1 -0
  127. package/esm/date-picker/picker.type.d.ts +1 -13
  128. package/esm/date-picker/picker.type.d.ts.map +1 -1
  129. package/esm/date-picker/quarter.js +2 -2
  130. package/esm/date-picker/year.js +2 -2
  131. package/esm/descriptions/descriptions.d.ts.map +1 -1
  132. package/esm/descriptions/descriptions.js +8 -3
  133. package/esm/dropdown/dropdownIn.d.ts.map +1 -1
  134. package/esm/dropdown/dropdownIn.js +3 -3
  135. package/esm/icons/config.js +2 -2
  136. package/esm/icons/icons.d.ts.map +1 -1
  137. package/esm/icons/icons.js +158 -146
  138. package/esm/input/input.d.ts.map +1 -1
  139. package/esm/input/simple-input.d.ts.map +1 -1
  140. package/esm/input/simple-input.js +6 -5
  141. package/esm/list/list.d.ts.map +1 -1
  142. package/esm/list/list.js +2 -1
  143. package/esm/modal/modal-content.d.ts.map +1 -1
  144. package/esm/modal/modal-content.js +20 -26
  145. package/esm/modal/modal.type.d.ts +16 -2
  146. package/esm/modal/modal.type.d.ts.map +1 -1
  147. package/esm/pagination/pagination.js +2 -2
  148. package/esm/rate/rate.d.ts.map +1 -1
  149. package/esm/rate/rate.js +11 -4
  150. package/esm/select/list-option.js +2 -1
  151. package/esm/select/list-tree.d.ts.map +1 -1
  152. package/esm/select/list-tree.js +44 -16
  153. package/esm/select/list-tree.type.d.ts +1 -1
  154. package/esm/select/list-tree.type.d.ts.map +1 -1
  155. package/esm/select/list.d.ts +2 -0
  156. package/esm/select/list.d.ts.map +1 -1
  157. package/esm/select/list.js +4 -3
  158. package/esm/select/result.d.ts.map +1 -1
  159. package/esm/select/result.js +10 -2
  160. package/esm/select/select.d.ts.map +1 -1
  161. package/esm/select/select.js +11 -10
  162. package/esm/select/select.type.d.ts +8 -3
  163. package/esm/select/select.type.d.ts.map +1 -1
  164. package/esm/table/table.d.ts +1 -2
  165. package/esm/table/table.d.ts.map +1 -1
  166. package/esm/table/table.js +25 -10
  167. package/esm/table/table.type.d.ts +6 -0
  168. package/esm/table/table.type.d.ts.map +1 -1
  169. package/esm/table/thead.js +3 -3
  170. package/esm/table/thead.type.d.ts +1 -1
  171. package/esm/table/thead.type.d.ts.map +1 -1
  172. package/esm/tag/tag.js +2 -2
  173. package/esm/tag/tag.type.d.ts +2 -1
  174. package/esm/tag/tag.type.d.ts.map +1 -1
  175. package/esm/textarea/simple-textarea.d.ts.map +1 -1
  176. package/esm/textarea/simple-textarea.js +3 -3
  177. package/esm/transfer/transfer.d.ts.map +1 -1
  178. package/esm/transfer/transfer.js +7 -4
  179. package/esm/tree-select/tree-select.d.ts.map +1 -1
  180. package/esm/tree-select/tree-select.js +3 -3
  181. package/esm/tree-select/tree-select.type.d.ts +1 -1
  182. package/esm/upload/upload.d.ts.map +1 -1
  183. package/esm/upload/upload.js +5 -4
  184. package/esm/virtual-scroll/scroll-table.d.ts.map +1 -1
  185. package/esm/virtual-scroll/scroll-table.js +20 -1
  186. package/esm/virtual-scroll/scroll.d.ts +1 -0
  187. package/esm/virtual-scroll/scroll.d.ts.map +1 -1
  188. package/esm/virtual-scroll/scroll.js +6 -2
  189. package/esm/virtual-scroll/virtual-scroll-list.d.ts.map +1 -1
  190. package/esm/virtual-scroll/virtual-scroll-list.js +1 -0
  191. package/package.json +3 -3
@@ -22,8 +22,8 @@ var Year = function Year(props) {
22
22
  var changeMode = (0, _hooks.usePersistFn)(function () {
23
23
  props.setMode('month');
24
24
  });
25
- var setCurrent = (0, _hooks.usePersistFn)(function (date) {
26
- props.setCurrent(date, 'year');
25
+ var setCurrent = (0, _hooks.usePersistFn)(function (date, type) {
26
+ props.setCurrent(date, type || 'year');
27
27
  });
28
28
  var _useYearPick = (0, _hooks.useYearPick)({
29
29
  current: props.current,
@@ -1 +1 @@
1
- {"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["descriptions.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAuB,MAAM,qBAAqB,CAAC;AAGlF,QAAA,MAAM,YAAY,UAAW,iBAAiB,4CAyI7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["descriptions.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAuB,MAAM,qBAAqB,CAAC;AAGlF,QAAA,MAAM,YAAY,UAAW,iBAAiB,4CA8I7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -18,7 +18,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
19
19
  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); }
20
20
  var Descriptions = function Descriptions(props) {
21
- var _jssStyleProps$descri, _renderItem$;
21
+ var _jssStyleProps$descri;
22
22
  var className = props.className,
23
23
  jssStyleProps = props.jssStyle,
24
24
  style = props.style,
@@ -46,6 +46,11 @@ var Descriptions = function Descriptions(props) {
46
46
  labelStyle: labelStyle
47
47
  }),
48
48
  renderItem = _useDescriptions.renderItem;
49
+ var longestItem = (0, _react.useMemo)(function () {
50
+ return renderItem.reduce(function (prev, curr) {
51
+ return prev.length >= curr.length ? prev : curr;
52
+ }, []);
53
+ }, [renderItem]);
49
54
  var jssStyle = (jssStyleProps === null || jssStyleProps === void 0 || (_jssStyleProps$descri = jssStyleProps.descriptions) === null || _jssStyleProps$descri === void 0 ? void 0 : _jssStyleProps$descri.call(jssStyleProps)) || {};
50
55
  var Header = function Header() {
51
56
  if (!title && !extra) return null;
@@ -142,7 +147,7 @@ var Descriptions = function Descriptions(props) {
142
147
  cellPadding: 0,
143
148
  cellSpacing: 0,
144
149
  children: [layout === 'inlineHorizontal' && typeof column === 'number' && column > 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("colgroup", {
145
- children: (_renderItem$ = renderItem[0]) === null || _renderItem$ === void 0 ? void 0 : _renderItem$.map(function (_, index, arr) {
150
+ children: longestItem === null || longestItem === void 0 ? void 0 : longestItem.map(function (_, index, arr) {
146
151
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("col", {
147
152
  style: {
148
153
  width: "".concat(1 / arr.length * 100, "%")
@@ -1 +1 @@
1
- {"version":3,"file":"dropdownIn.d.ts","sourceRoot":"","sources":["dropdownIn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA8B,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AASlF,QAAA,MAAM,QAAQ,UAAW,mBAAmB,4CA4O3C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"dropdownIn.d.ts","sourceRoot":"","sources":["dropdownIn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA8B,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AASlF,QAAA,MAAM,QAAQ,UAAW,mBAAmB,4CA6O3C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -181,13 +181,13 @@ var Dropdown = function Dropdown(props) {
181
181
  return d.children;
182
182
  });
183
183
  var targetProps = getTargetProps();
184
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({
184
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread(_objectSpread({
185
185
  className: (0, _classnames.default)(className, dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.rootClass, dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.wrapper, !isSub && open && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.open)),
186
186
  style: style,
187
187
  "data-position": position,
188
188
  "data-role": "dropdown",
189
189
  ref: targetRef
190
- }, targetProps), {}, {
190
+ }, targetProps), (0, _hooks.getDataset)(props)), {}, {
191
191
  onClick: isSub ? openPop : targetProps.onClick,
192
192
  children: [renderButton(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_absoluteList.default, {
193
193
  position: position,
@@ -18,9 +18,9 @@ var config = {
18
18
  Info: _icons.default.InfoCircleFill,
19
19
  Success: _icons.default.CheckCircleFill,
20
20
  Warning: _icons.default.WarningCircleFill,
21
- Danger: _icons.default.WarningCircleFill,
21
+ Danger: _icons.default.CloseFill,
22
22
  ConfirmWarning: _icons.default.WarningCircleFill,
23
- Error: _icons.default.WarningCircleFill,
23
+ Error: _icons.default.CloseFill,
24
24
  Confirm: _icons.default.HelpCircleFill
25
25
  },
26
26
  form: {
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"AAyaA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDV,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"AAubA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDV,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -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.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":"list.d.ts","sourceRoot":"","sources":["list.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,QAAA,MAAM,IAAI,+GAiQT,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,QAAA,MAAM,IAAI,+GAkQT,CAAC;AAEF,eAAe,IAAI,CAAC"}
package/cjs/list/list.js CHANGED
@@ -225,7 +225,8 @@ var List = function List(props) {
225
225
  minWidth: 0,
226
226
  overflow: 'auto'
227
227
  },
228
- dynamicVirtual: props.dynamicHeight
228
+ dynamicVirtual: props.dynamicHeight,
229
+ keepScrollTop: !!props.scrollLoading
229
230
  }), renderFooter()]
230
231
  });
231
232
  }
@@ -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;AA0F9D,QAAA,MAAM,KAAK,UAAW,iBAAiB,mDA6ZtC,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); }
@@ -41,20 +41,10 @@ var addModalInstance = function addModalInstance(instanceId) {
41
41
  state.mutate.instanceIds.push(instanceId);
42
42
  };
43
43
  var addModalCascadeConfig = function addModalCascadeConfig(props) {
44
- var width = props.width;
45
- var widthNumber = 0;
46
- // width 是30% 这种格式的,转为number
47
- if (typeof width === 'string' && width.indexOf('%') > -1) {
48
- var parentWidth = document.body.clientWidth;
49
- var percent = parseInt(width, 10);
50
- widthNumber = parentWidth * percent / 100;
51
- } else {
52
- widthNumber = typeof width === 'number' ? width : parseInt(width, 10) || 0;
53
- }
54
44
  state.mutate.cascadeConfigs.push({
55
45
  cascade: props.cascade,
56
- instanceId: props.instanceId,
57
- width: widthNumber
46
+ cascadeWidth: props.cascadeWidth,
47
+ instanceId: props.instanceId
58
48
  });
59
49
  };
60
50
  var removeModalInstance = function removeModalInstance(instanceId) {
@@ -157,8 +147,8 @@ var Modal = function Modal(props) {
157
147
  addModalInstance(context.instanceId);
158
148
  addModalCascadeConfig({
159
149
  instanceId: context.instanceId,
160
- width: props.width,
161
- cascade: !!props.cascade && !!props.width && !!isPositionX
150
+ cascade: !!props.cascade && !!isPositionX,
151
+ cascadeWidth: _typeof(props.cascade) === 'object' ? props.cascade.width || 180 : 180
162
152
  });
163
153
  }
164
154
  if (!visible && index > -1 && !animation) {
@@ -334,6 +324,7 @@ var Modal = function Modal(props) {
334
324
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
335
325
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.header,
336
326
  onMouseDown: props.moveable && !props.fullScreen ? moveInfo.handleMouseDown : undefined,
327
+ style: props.headerStyle,
337
328
  children: [renderIcon(), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
338
329
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerTitle,
339
330
  children: props.title
@@ -358,6 +349,7 @@ var Modal = function Modal(props) {
358
349
  if (!props.footer) return null;
359
350
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
360
351
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.footer,
352
+ style: props.footerStyle,
361
353
  children: props.footer
362
354
  });
363
355
  };
@@ -380,20 +372,22 @@ var Modal = function Modal(props) {
380
372
  };
381
373
  if (!context.renderEd && !visible) return null;
382
374
  context.renderEd = true;
383
- var marginStyle = (0, _react.useMemo)(function () {
375
+ var cascadeStyle = (0, _react.useMemo)(function () {
384
376
  if (!props.cascade) return;
385
377
  var idx = config.instanceIds.findIndex(function (id) {
386
378
  return id === context.instanceId;
387
379
  });
388
- var afterInstances = config.cascadeConfigs.filter(function (_, index) {
389
- return index > idx;
390
- }).filter(function (c) {
391
- return c.cascade;
392
- }).slice(0, 1);
393
- var width = afterInstances.reduce(function (ret, cur) {
394
- return (ret || 0) + cur.width;
395
- }, 0);
396
- return _defineProperty(_defineProperty({}, props.position === 'left' ? 'marginLeft' : 'marginRight', "".concat(width, "px")), "transition", width ? 'margin .3s ease .05s' : 'margin 0.2s ease');
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
+ };
397
391
  }, [config.cascadeConfigs, config.instanceIds]);
398
392
  var panelStyle = _objectSpread(_objectSpread({
399
393
  transformOrigin: origin,
@@ -401,7 +395,7 @@ var Modal = function Modal(props) {
401
395
  }, props.style), {}, {
402
396
  width: props.fullScreen ? undefined : width,
403
397
  height: props.fullScreen ? undefined : height
404
- }, marginStyle);
398
+ }, cascadeStyle);
405
399
  if (props.resizable) {
406
400
  panelStyle.width = resizeInfo.width;
407
401
  panelStyle.height = resizeInfo.height;