@arco-design/mobile-react 2.19.1-7cada34.0 → 2.19.2-ee92494.5

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 (157) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +4 -4
  4. package/cjs/_helpers/type.d.ts +1 -1
  5. package/cjs/button/demo/style/mobile.less +4 -0
  6. package/cjs/button/index.d.ts +12 -0
  7. package/cjs/button/index.js +15 -3
  8. package/cjs/circle-progress/index.js +5 -3
  9. package/cjs/collapse/collapse.js +2 -2
  10. package/cjs/count-down/demo/style/mobile.less +1 -1
  11. package/cjs/grid/index.js +13 -12
  12. package/cjs/image/index.d.ts +0 -1
  13. package/cjs/image/index.js +9 -7
  14. package/cjs/image-picker/add-icon.d.ts +2 -0
  15. package/cjs/image-picker/add-icon.js +22 -0
  16. package/cjs/image-picker/demo/style/css/mobile.css +40 -0
  17. package/cjs/image-picker/demo/style/mobile.less +42 -0
  18. package/cjs/image-picker/index.d.ts +184 -0
  19. package/cjs/image-picker/index.js +307 -0
  20. package/cjs/image-picker/style/css/index.css +147 -0
  21. package/cjs/image-picker/style/css/index.d.ts +2 -0
  22. package/cjs/image-picker/style/css/index.js +5 -0
  23. package/cjs/image-picker/style/index.d.ts +2 -0
  24. package/cjs/image-picker/style/index.js +5 -0
  25. package/cjs/image-picker/style/index.less +116 -0
  26. package/cjs/image-preview/index.d.ts +2 -2
  27. package/cjs/index.d.ts +1 -0
  28. package/cjs/index.js +5 -1
  29. package/cjs/nav-bar/back-icon.d.ts +2 -2
  30. package/cjs/nav-bar/back-icon.js +2 -2
  31. package/cjs/notify/index.d.ts +1 -0
  32. package/cjs/notify/index.js +12 -0
  33. package/cjs/notify/type.d.ts +1 -0
  34. package/cjs/progress/index.js +3 -1
  35. package/cjs/slider/hooks/index.d.ts +1 -1
  36. package/cjs/slider/marks.d.ts +5 -5
  37. package/cjs/slider/marks.js +4 -4
  38. package/cjs/slider/popover.d.ts +2 -2
  39. package/cjs/slider/popover.js +3 -5
  40. package/cjs/steps/demo/style/css/mobile.css +1 -1
  41. package/cjs/steps/demo/style/mobile.less +1 -1
  42. package/cjs/steps/step.js +3 -1
  43. package/cjs/steps/style/css/index.css +19 -20
  44. package/cjs/steps/style/index.less +11 -16
  45. package/cjs/style.d.ts +1 -0
  46. package/cjs/style.js +2 -0
  47. package/cjs/swipe-load/index.js +2 -2
  48. package/cjs/switch/index.js +1 -1
  49. package/cjs/tab-bar/item.js +2 -2
  50. package/cjs/tab-bar/tab-bar.js +2 -2
  51. package/cjs/transition/index.js +4 -2
  52. package/dist/index.js +577 -251
  53. package/dist/index.min.js +3 -4
  54. package/dist/style.css +126 -16
  55. package/dist/style.min.css +1 -1
  56. package/esm/_helpers/type.d.ts +1 -1
  57. package/esm/button/demo/style/mobile.less +4 -0
  58. package/esm/button/index.d.ts +12 -0
  59. package/esm/button/index.js +15 -3
  60. package/esm/circle-progress/index.js +5 -3
  61. package/esm/collapse/collapse.js +1 -1
  62. package/esm/count-down/demo/style/mobile.less +1 -1
  63. package/esm/grid/index.js +13 -12
  64. package/esm/image/index.d.ts +0 -1
  65. package/esm/image/index.js +10 -8
  66. package/esm/image-picker/add-icon.d.ts +2 -0
  67. package/esm/image-picker/add-icon.js +14 -0
  68. package/esm/image-picker/demo/style/css/mobile.css +40 -0
  69. package/esm/image-picker/demo/style/mobile.less +42 -0
  70. package/esm/image-picker/index.d.ts +184 -0
  71. package/esm/image-picker/index.js +288 -0
  72. package/esm/image-picker/style/css/index.css +147 -0
  73. package/esm/image-picker/style/css/index.d.ts +2 -0
  74. package/esm/image-picker/style/css/index.js +2 -0
  75. package/esm/image-picker/style/index.d.ts +2 -0
  76. package/esm/image-picker/style/index.js +2 -0
  77. package/esm/image-picker/style/index.less +116 -0
  78. package/esm/image-preview/index.d.ts +2 -2
  79. package/esm/index.d.ts +1 -0
  80. package/esm/index.js +1 -0
  81. package/esm/nav-bar/back-icon.d.ts +2 -2
  82. package/esm/nav-bar/back-icon.js +2 -2
  83. package/esm/notify/index.d.ts +1 -0
  84. package/esm/notify/index.js +1 -0
  85. package/esm/notify/type.d.ts +1 -0
  86. package/esm/progress/index.js +3 -1
  87. package/esm/slider/hooks/index.d.ts +1 -1
  88. package/esm/slider/marks.d.ts +5 -5
  89. package/esm/slider/marks.js +3 -3
  90. package/esm/slider/popover.d.ts +2 -2
  91. package/esm/slider/popover.js +2 -2
  92. package/esm/steps/demo/style/css/mobile.css +1 -1
  93. package/esm/steps/demo/style/mobile.less +1 -1
  94. package/esm/steps/step.js +3 -1
  95. package/esm/steps/style/css/index.css +19 -20
  96. package/esm/steps/style/index.less +11 -16
  97. package/esm/style.d.ts +1 -0
  98. package/esm/style.js +1 -0
  99. package/esm/swipe-load/index.js +1 -1
  100. package/esm/switch/index.js +1 -1
  101. package/esm/tab-bar/item.js +1 -1
  102. package/esm/tab-bar/tab-bar.js +1 -1
  103. package/esm/transition/index.js +4 -2
  104. package/package.json +5 -5
  105. package/tokens/app/arcodesign/default/css-variables.less +17 -2
  106. package/tokens/app/arcodesign/default/index.d.ts +17 -2
  107. package/tokens/app/arcodesign/default/index.js +18 -3
  108. package/tokens/app/arcodesign/default/index.json +204 -24
  109. package/tokens/app/arcodesign/default/index.less +17 -2
  110. package/umd/_helpers/type.d.ts +1 -1
  111. package/umd/button/demo/style/mobile.less +4 -0
  112. package/umd/button/index.d.ts +12 -0
  113. package/umd/button/index.js +15 -3
  114. package/umd/circle-progress/index.js +5 -3
  115. package/umd/collapse/collapse.js +4 -4
  116. package/umd/count-down/demo/style/mobile.less +1 -1
  117. package/umd/grid/index.js +13 -12
  118. package/umd/image/index.d.ts +0 -1
  119. package/umd/image/index.js +9 -7
  120. package/umd/image-picker/add-icon.d.ts +2 -0
  121. package/umd/image-picker/add-icon.js +35 -0
  122. package/umd/image-picker/demo/style/css/mobile.css +40 -0
  123. package/umd/image-picker/demo/style/mobile.less +42 -0
  124. package/umd/image-picker/index.d.ts +184 -0
  125. package/umd/image-picker/index.js +310 -0
  126. package/umd/image-picker/style/css/index.css +147 -0
  127. package/umd/image-picker/style/css/index.d.ts +2 -0
  128. package/umd/image-picker/style/css/index.js +15 -0
  129. package/umd/image-picker/style/index.d.ts +2 -0
  130. package/umd/image-picker/style/index.js +15 -0
  131. package/umd/image-picker/style/index.less +116 -0
  132. package/umd/image-preview/index.d.ts +2 -2
  133. package/umd/index.d.ts +1 -0
  134. package/umd/index.js +7 -5
  135. package/umd/nav-bar/back-icon.d.ts +2 -2
  136. package/umd/nav-bar/back-icon.js +2 -2
  137. package/umd/notify/index.d.ts +1 -0
  138. package/umd/notify/index.js +13 -4
  139. package/umd/notify/type.d.ts +1 -0
  140. package/umd/progress/index.js +3 -1
  141. package/umd/slider/hooks/index.d.ts +1 -1
  142. package/umd/slider/marks.d.ts +5 -5
  143. package/umd/slider/marks.js +6 -6
  144. package/umd/slider/popover.d.ts +2 -2
  145. package/umd/slider/popover.js +3 -5
  146. package/umd/steps/demo/style/css/mobile.css +1 -1
  147. package/umd/steps/demo/style/mobile.less +1 -1
  148. package/umd/steps/step.js +3 -1
  149. package/umd/steps/style/css/index.css +19 -20
  150. package/umd/steps/style/index.less +11 -16
  151. package/umd/style.d.ts +1 -0
  152. package/umd/style.js +4 -4
  153. package/umd/swipe-load/index.js +4 -4
  154. package/umd/switch/index.js +1 -1
  155. package/umd/tab-bar/item.js +4 -4
  156. package/umd/tab-bar/tab-bar.js +4 -4
  157. package/umd/transition/index.js +4 -2
package/dist/index.js CHANGED
@@ -888,6 +888,12 @@
888
888
  Pagination: {
889
889
  previousPage: '上一页',
890
890
  nextPage: '下一页'
891
+ },
892
+ Image: {
893
+ loadError: '重试'
894
+ },
895
+ ImagePicker: {
896
+ loadError: '加载失败'
891
897
  }
892
898
  };
893
899
 
@@ -1977,14 +1983,16 @@
1977
1983
  */
1978
1984
 
1979
1985
  function Transition(props) {
1980
- var children = props.children,
1986
+ var _a = props.children,
1987
+ children = _a === void 0 ? /*#__PURE__*/React__default["default"].createElement("div", null) : _a,
1981
1988
  type = props.type,
1982
1989
  transIn = props.in,
1983
- timeout = props.timeout,
1984
- _a = props.mountOnEnter,
1985
- mountOnEnter = _a === void 0 ? true : _a,
1986
- _b = props.unmountOnExit,
1987
- unmountOnExit = _b === void 0 ? true : _b,
1990
+ _b = props.timeout,
1991
+ timeout = _b === void 0 ? 300 : _b,
1992
+ _c = props.mountOnEnter,
1993
+ mountOnEnter = _c === void 0 ? true : _c,
1994
+ _d = props.unmountOnExit,
1995
+ unmountOnExit = _d === void 0 ? true : _d,
1988
1996
  restProps = __rest(props, ["children", "type", "in", "timeout", "mountOnEnter", "unmountOnExit"]);
1989
1997
 
1990
1998
  return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
@@ -3428,39 +3436,38 @@
3428
3436
  var loadingImageRef = React.useRef(null);
3429
3437
  var style = props.style,
3430
3438
  className = props.className,
3431
- _e = props.status,
3432
- status = _e === void 0 ? 'init' : _e,
3439
+ status = props.status,
3433
3440
  src = props.src,
3434
3441
  width = props.width,
3435
3442
  height = props.height,
3436
- _f = props.alt,
3437
- alt = _f === void 0 ? '' : _f,
3438
- _g = props.fit,
3439
- fit = _g === void 0 ? 'cover' : _g,
3440
- _h = props.position,
3441
- position = _h === void 0 ? 'center' : _h,
3443
+ _e = props.alt,
3444
+ alt = _e === void 0 ? '' : _e,
3445
+ _f = props.fit,
3446
+ fit = _f === void 0 ? 'cover' : _f,
3447
+ _g = props.position,
3448
+ position = _g === void 0 ? 'center' : _g,
3442
3449
  radius = props.radius,
3443
3450
  bordered = props.bordered,
3444
3451
  loadingArea = props.loadingArea,
3445
3452
  errorArea = props.errorArea,
3446
3453
  showLoading = props.showLoading,
3447
3454
  showError = props.showError,
3448
- _j = props.animateDuration,
3449
- animateDuration = _j === void 0 ? 200 : _j,
3450
- _k = props.retryTime,
3451
- retryTime = _k === void 0 ? 0 : _k,
3455
+ _h = props.animateDuration,
3456
+ animateDuration = _h === void 0 ? 200 : _h,
3457
+ _j = props.retryTime,
3458
+ retryTime = _j === void 0 ? 0 : _j,
3452
3459
  forceHttps = props.forceHttps,
3453
- _l = props.boxWidth,
3454
- boxWidth = _l === void 0 ? 0 : _l,
3455
- _m = props.boxHeight,
3456
- boxHeight = _m === void 0 ? 0 : _m,
3460
+ _k = props.boxWidth,
3461
+ boxWidth = _k === void 0 ? 0 : _k,
3462
+ _l = props.boxHeight,
3463
+ boxHeight = _l === void 0 ? 0 : _l,
3457
3464
  topOverlap = props.topOverlap,
3458
3465
  bottomOverlap = props.bottomOverlap,
3459
- _o = props.showImage,
3460
- showImage = _o === void 0 ? true : _o,
3466
+ _m = props.showImage,
3467
+ showImage = _m === void 0 ? true : _m,
3461
3468
  staticLabel = props.staticLabel,
3462
- _p = props.nativeProps,
3463
- nativeProps = _p === void 0 ? {} : _p,
3469
+ _o = props.nativeProps,
3470
+ nativeProps = _o === void 0 ? {} : _o,
3464
3471
  onChange = props.onChange,
3465
3472
  onClick = props.onClick,
3466
3473
  _onLoad = props.onLoad,
@@ -3469,6 +3476,7 @@
3469
3476
  var isPreview = Boolean(fit.indexOf('preview') >= 0);
3470
3477
  var actualBoxWidth = boxWidth || windowWidth;
3471
3478
  var actualBoxHeight = boxHeight || windowHeight;
3479
+ var validStatus = status === undefined ? imageStatus : status;
3472
3480
  var attrs = React.useMemo(function () {
3473
3481
  var imageStyle = {};
3474
3482
 
@@ -3644,7 +3652,9 @@
3644
3652
  }
3645
3653
 
3646
3654
  return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
3647
- var prefixCls = _a.prefixCls;
3655
+ var prefixCls = _a.prefixCls,
3656
+ _b = _a.locale,
3657
+ locale = _b === void 0 ? defaultLocale : _b;
3648
3658
  return /*#__PURE__*/React__default["default"].createElement("div", {
3649
3659
  className: cls(prefixCls + "-image all-border-box", {
3650
3660
  preview: isPreview
@@ -3659,7 +3669,7 @@
3659
3669
  }, bottomOverlap || /*#__PURE__*/React__default["default"].createElement("div", {
3660
3670
  className: "image-placeholder"
3661
3671
  })) : null, /*#__PURE__*/React__default["default"].createElement("div", {
3662
- className: cls('image-container', imageStatus, {
3672
+ className: cls('image-container', validStatus, {
3663
3673
  animate: Boolean(animateDuration),
3664
3674
  'static-label': staticLabel
3665
3675
  }),
@@ -3674,7 +3684,7 @@
3674
3684
  return _onLoad && _onLoad(e.nativeEvent, imageDomRef.current);
3675
3685
  },
3676
3686
  onError: handleStaticImageError
3677
- })) : null), showLoading && (status === 'loading' || imageStatus === 'loading') ? /*#__PURE__*/React__default["default"].createElement("div", {
3687
+ })) : null), showLoading && validStatus === 'loading' ? /*#__PURE__*/React__default["default"].createElement("div", {
3678
3688
  className: "image-content image-loading-container",
3679
3689
  style: {
3680
3690
  borderRadius: radius
@@ -3686,7 +3696,7 @@
3686
3696
  className: "loading-icon",
3687
3697
  radius: 8.5,
3688
3698
  stroke: 3
3689
- }))) : null, showError && (status === 'error' || imageStatus === 'error') ? /*#__PURE__*/React__default["default"].createElement("div", {
3699
+ }))) : null, showError && validStatus === 'error' ? /*#__PURE__*/React__default["default"].createElement("div", {
3690
3700
  className: "image-content image-error-container",
3691
3701
  onClick: function onClick(e) {
3692
3702
  e.stopPropagation();
@@ -3697,7 +3707,7 @@
3697
3707
  }
3698
3708
  }, errorArea || /*#__PURE__*/React__default["default"].createElement("div", {
3699
3709
  className: "image-retry-load"
3700
- }, "\u91CD\u8BD5")) : null, topOverlap ? /*#__PURE__*/React__default["default"].createElement("div", {
3710
+ }, locale.Image.loadError)) : null, topOverlap ? /*#__PURE__*/React__default["default"].createElement("div", {
3701
3711
  className: "image-content image-top-overlap",
3702
3712
  style: {
3703
3713
  borderRadius: radius
@@ -4018,27 +4028,31 @@
4018
4028
  loading = _e === void 0 ? false : _e,
4019
4029
  _f = props.disabled,
4020
4030
  disabled = _f === void 0 ? false : _f,
4021
- _g = props.shape,
4022
- shape = _g === void 0 ? 'semi' : _g,
4023
- _h = props.halfBorder,
4024
- halfBorder = _h === void 0 ? false : _h,
4031
+ _g = props.disableWhenLoading,
4032
+ disableWhenLoading = _g === void 0 ? true : _g,
4033
+ _h = props.shape,
4034
+ shape = _h === void 0 ? 'semi' : _h,
4035
+ _j = props.halfBorder,
4036
+ halfBorder = _j === void 0 ? false : _j,
4025
4037
  icon = props.icon,
4026
- _j = props.showTextWhenLoading,
4027
- showTextWhenLoading = _j === void 0 ? true : _j,
4028
- _k = props.needActive,
4029
- needActive = _k === void 0 ? true : _k,
4030
- _l = props.style,
4031
- style = _l === void 0 ? {} : _l,
4038
+ _k = props.showTextWhenLoading,
4039
+ showTextWhenLoading = _k === void 0 ? true : _k,
4040
+ _l = props.needActive,
4041
+ needActive = _l === void 0 ? true : _l,
4042
+ _m = props.style,
4043
+ style = _m === void 0 ? {} : _m,
4032
4044
  color = props.color,
4033
4045
  bgColor = props.bgColor,
4034
4046
  borderColor = props.borderColor,
4035
- _m = props.className,
4036
- className = _m === void 0 ? '' : _m,
4037
- _o = props.children,
4038
- children = _o === void 0 ? null : _o,
4047
+ _o = props.className,
4048
+ className = _o === void 0 ? '' : _o,
4049
+ _p = props.children,
4050
+ children = _p === void 0 ? null : _p,
4039
4051
  loadingIcon = props.loadingIcon,
4040
4052
  onClick = props.onClick,
4041
- onClickDisabled = props.onClickDisabled;
4053
+ onClickDisabled = props.onClickDisabled,
4054
+ _q = props.coverIconWhenLoading,
4055
+ coverIconWhenLoading = _q === void 0 ? false : _q;
4042
4056
  var domRef = React.useRef(null);
4043
4057
  React.useImperativeHandle(ref, function () {
4044
4058
  return {
@@ -4046,15 +4060,15 @@
4046
4060
  };
4047
4061
  });
4048
4062
 
4049
- var _p = useCustomColor({
4063
+ var _r = useCustomColor({
4050
4064
  color: color,
4051
4065
  bgColor: bgColor,
4052
4066
  borderColor: borderColor,
4053
4067
  isActive: isActive,
4054
4068
  disabled: disabled
4055
4069
  }),
4056
- customColorClass = _p.customColorClass,
4057
- customColorStyle = _p.customColorStyle;
4070
+ customColorClass = _r.customColorClass,
4071
+ customColorStyle = _r.customColorStyle;
4058
4072
 
4059
4073
  var handleTouchStart = function handleTouchStart() {
4060
4074
  if (needActive && !disabled && !loading) {
@@ -4066,6 +4080,14 @@
4066
4080
  setActive(false);
4067
4081
  };
4068
4082
 
4083
+ var renderIcon = function renderIcon() {
4084
+ if (coverIconWhenLoading) {
4085
+ return loading ? null : icon;
4086
+ }
4087
+
4088
+ return icon;
4089
+ };
4090
+
4069
4091
  return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
4070
4092
  var prefixCls = _a.prefixCls;
4071
4093
  return /*#__PURE__*/React__default["default"].createElement("button", {
@@ -4084,10 +4106,10 @@
4084
4106
  onTouchCancel: handleTouchEnd,
4085
4107
  onMouseDown: handleTouchStart,
4086
4108
  onMouseUp: handleTouchEnd,
4087
- onClick: disabled ? onClickDisabled : onClick
4109
+ onClick: disabled || loading && disableWhenLoading ? onClickDisabled : onClick
4088
4110
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4089
4111
  className: "btn-icon"
4090
- }, icon, loading && (loadingIcon === void 0 ? /*#__PURE__*/React__default["default"].createElement(Loading, {
4112
+ }, renderIcon(), loading && (loadingIcon === void 0 ? /*#__PURE__*/React__default["default"].createElement(Loading, {
4091
4113
  className: "loading-icon",
4092
4114
  radius: 6,
4093
4115
  type: "circle"
@@ -5542,7 +5564,7 @@
5542
5564
  className: prefixCls + "-switch-text"
5543
5565
  }, switchChecked ? text.off || '' : text.on || '') : null, /*#__PURE__*/React__default["default"].createElement("div", {
5544
5566
  className: prefixCls + "-switch-inner"
5545
- }, innerArea ? innerArea : null));
5567
+ }, innerArea || null));
5546
5568
  });
5547
5569
  });
5548
5570
 
@@ -6064,11 +6086,13 @@
6064
6086
  if (isRenderNormal) {
6065
6087
  if (progressColorStart) {
6066
6088
  return progressColorStart;
6067
- } else if (progressColorEnd) {
6089
+ }
6090
+
6091
+ if (progressColorEnd) {
6068
6092
  return progressColorEnd;
6069
- } else {
6070
- return progressColor;
6071
6093
  }
6094
+
6095
+ return progressColor;
6072
6096
  }
6073
6097
  }, [progressColorStart, progressColorEnd, progressColor]);
6074
6098
 
@@ -12264,14 +12288,21 @@
12264
12288
  });
12265
12289
 
12266
12290
  var getRows = function getRows(prefix, rowsData, rows, row) {
12267
- var fakeGrids = new Array(!isSliding && columns && rowsData.length % columns ? columns - rowsData.length % columns : 0).fill('');
12268
- var widthStyle = {
12269
- minWidth: 1 / columns * 100 + "%"
12270
- };
12291
+ var placeholders = !isSliding && rowsData.length % columns;
12292
+ var renderData = rowsData;
12293
+
12294
+ if (placeholders) {
12295
+ var fakeGrids = new Array(columns - placeholders).fill({
12296
+ img: null,
12297
+ title: ''
12298
+ });
12299
+ renderData = rowsData.concat(fakeGrids);
12300
+ }
12301
+
12271
12302
  return /*#__PURE__*/React__default["default"].createElement("div", {
12272
12303
  className: prefix + "-rows",
12273
12304
  key: row
12274
- }, rowsData.map(function (item, index) {
12305
+ }, renderData.map(function (item, index) {
12275
12306
  var img = item.img,
12276
12307
  title = item.title,
12277
12308
  content = item.content,
@@ -12285,7 +12316,7 @@
12285
12316
  }
12286
12317
 
12287
12318
  var marginBottom = row + 1 === rows ? 0 : typeof gutter === 'number' ? gutter : (gutter === null || gutter === void 0 ? void 0 : gutter.y) || 0;
12288
- var rowLen = rowsData.length;
12319
+ var rowLen = renderData.length;
12289
12320
  var marginRight = index + 1 === rowLen ? 0 : typeof gutter === 'number' ? gutter : (gutter === null || gutter === void 0 ? void 0 : gutter.x) || 0;
12290
12321
  return /*#__PURE__*/React__default["default"].createElement("div", {
12291
12322
  key: index,
@@ -12314,12 +12345,6 @@
12314
12345
  }) : null, (row + 1) % rows !== 0 ? /*#__PURE__*/React__default["default"].createElement("i", {
12315
12346
  className: "horizontal-border"
12316
12347
  }) : null);
12317
- }), fakeGrids.map(function (_, i) {
12318
- return /*#__PURE__*/React__default["default"].createElement("div", {
12319
- className: cls(prefix + "-rows-item fake-col"),
12320
- key: i,
12321
- style: widthStyle
12322
- });
12323
12348
  }));
12324
12349
  };
12325
12350
 
@@ -12762,6 +12787,478 @@
12762
12787
  });
12763
12788
  });
12764
12789
 
12790
+ function IconStarFill(props) {
12791
+ var _a = props.className,
12792
+ className = _a === void 0 ? '' : _a,
12793
+ _b = props.useCurrentColor,
12794
+ useCurrentColor = _b === void 0 ? true : _b,
12795
+ style = props.style,
12796
+ other = __rest(props, ["className", "useCurrentColor", "style"]);
12797
+
12798
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
12799
+ var prefixCls = _a.prefixCls;
12800
+ return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
12801
+ className: prefixCls + "-icon " + prefixCls + "-icon-star-fill " + className,
12802
+ width: "1em",
12803
+ height: "1em",
12804
+ style: style,
12805
+ fill: useCurrentColor ? 'currentColor' : '#000',
12806
+ viewBox: "0 0 1024 1024",
12807
+ xmlns: "http://www.w3.org/2000/svg"
12808
+ }, other), /*#__PURE__*/React__default["default"].createElement("defs", null, /*#__PURE__*/React__default["default"].createElement("style", null)), /*#__PURE__*/React__default["default"].createElement("path", {
12809
+ d: "M497.371 826.514L270.63 936.23c-18.286 7.314-40.229 0-47.543-18.286-3.657-3.657-7.315-10.972-3.657-18.286l25.6-248.686c0-10.971-3.658-18.285-7.315-29.257L69.486 435.2c-14.629-14.629-10.972-36.571 3.657-51.2 3.657-3.657 10.971-7.314 14.628-7.314l245.029-51.2c10.971-3.657 18.286-7.315 21.943-18.286l128-219.429C490.057 73.143 512 65.83 530.286 76.8c3.657 3.657 10.971 7.314 14.628 14.629l128 219.428c3.657 7.314 14.629 14.629 21.943 18.286l245.029 51.2c18.285 3.657 32.914 21.943 25.6 43.886 0 7.314-3.657 10.971-7.315 14.628L789.943 621.714c-7.314 7.315-10.972 18.286-7.314 29.257l25.6 248.686c3.657 18.286-10.972 36.572-32.915 40.229-7.314 0-14.628 0-18.285-3.657L530.286 826.514c-10.972-7.314-25.6-7.314-32.915 0z"
12810
+ }));
12811
+ });
12812
+ }
12813
+
12814
+ function IconClose(props) {
12815
+ var _a = props.className,
12816
+ className = _a === void 0 ? '' : _a,
12817
+ _b = props.useCurrentColor,
12818
+ useCurrentColor = _b === void 0 ? true : _b,
12819
+ style = props.style,
12820
+ other = __rest(props, ["className", "useCurrentColor", "style"]);
12821
+
12822
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
12823
+ var prefixCls = _a.prefixCls;
12824
+ return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
12825
+ className: prefixCls + "-icon " + prefixCls + "-icon-close " + className,
12826
+ width: "1em",
12827
+ height: "1em",
12828
+ style: style,
12829
+ viewBox: "0 0 1024 1024",
12830
+ xmlns: "http://www.w3.org/2000/svg"
12831
+ }, other), /*#__PURE__*/React__default["default"].createElement("path", {
12832
+ fill: useCurrentColor ? 'currentColor' : '#000',
12833
+ d: "M509.568 447.083L796.16 160.469a21.333 21.333 0 0130.165 0l30.166 30.166a21.333 21.333 0 010 30.186L569.899 507.435l286.613 286.592a21.333 21.333 0 010 30.165l-30.165 30.165a21.333 21.333 0 01-30.166 0L509.568 567.765 222.933 854.38a21.333 21.333 0 01-30.186 0l-30.166-30.166a21.333 21.333 0 010-30.165l286.614-286.613L162.603 220.8a21.333 21.333 0 010-30.187l30.165-30.165a21.333 21.333 0 0130.187 0l286.613 286.613z"
12834
+ }));
12835
+ });
12836
+ }
12837
+
12838
+ function IconAdd(props) {
12839
+ var _a = props.className,
12840
+ className = _a === void 0 ? '' : _a,
12841
+ _b = props.useCurrentColor,
12842
+ useCurrentColor = _b === void 0 ? true : _b,
12843
+ style = props.style,
12844
+ other = __rest(props, ["className", "useCurrentColor", "style"]);
12845
+
12846
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
12847
+ var prefixCls = _a.prefixCls;
12848
+ return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
12849
+ className: prefixCls + "-icon " + prefixCls + "-icon-add " + className,
12850
+ width: "1em",
12851
+ height: "1em",
12852
+ style: style,
12853
+ viewBox: "0 0 1024 1024",
12854
+ xmlns: "http://www.w3.org/2000/svg"
12855
+ }, other), /*#__PURE__*/React__default["default"].createElement("path", {
12856
+ fill: useCurrentColor ? 'currentColor' : '#000',
12857
+ d: "M527.317 85.333c9.515 0 12.95.982 16.427 2.859a19.337 19.337 0 018.064 8.064c1.877 3.477 2.859 6.912 2.859 16.427v356.65h356.65c9.515 0 12.95.982 16.427 2.859a19.337 19.337 0 018.064 8.064c1.877 3.477 2.859 6.912 2.859 16.427v30.634c0 9.515-.982 12.95-2.859 16.427a19.392 19.392 0 01-8.064 8.064c-3.477 1.877-6.912 2.859-16.427 2.859h-356.65v356.65c0 9.515-.982 12.95-2.859 16.427a19.392 19.392 0 01-8.064 8.064c-3.477 1.877-6.912 2.859-16.427 2.859h-30.634c-9.515 0-12.95-.982-16.427-2.859a19.392 19.392 0 01-8.064-8.064c-1.877-3.477-2.859-6.912-2.859-16.427l-.021-356.65h-356.63c-9.514 0-12.949-.982-16.426-2.859a19.392 19.392 0 01-8.064-8.064c-1.877-3.477-2.859-6.912-2.859-16.427v-30.634c0-9.515.982-12.95 2.859-16.427a19.392 19.392 0 018.064-8.064c3.477-1.877 6.912-2.859 16.427-2.859l356.65-.021v-356.63c0-9.514.982-12.949 2.859-16.426a19.392 19.392 0 018.064-8.064c3.477-1.877 6.912-2.859 16.427-2.859h30.634z"
12858
+ }));
12859
+ });
12860
+ }
12861
+
12862
+ function IconClear(props) {
12863
+ var _a = props.className,
12864
+ className = _a === void 0 ? '' : _a,
12865
+ _b = props.useCurrentColor,
12866
+ useCurrentColor = _b === void 0 ? true : _b,
12867
+ style = props.style,
12868
+ other = __rest(props, ["className", "useCurrentColor", "style"]);
12869
+
12870
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
12871
+ var prefixCls = _a.prefixCls;
12872
+ return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
12873
+ className: prefixCls + "-icon " + prefixCls + "-icon-clear " + className,
12874
+ width: "1em",
12875
+ height: "1em",
12876
+ style: style,
12877
+ xmlns: "http://www.w3.org/2000/svg",
12878
+ viewBox: "0 0 18 18"
12879
+ }, other), /*#__PURE__*/React__default["default"].createElement("path", {
12880
+ d: "M9 1.1C4.7 1.1 1.1 4.7 1.1 9s3.5 7.9 7.9 7.9 7.9-3.5 7.9-7.9S13.3 1.1 9 1.1zm3.4 10.2c.2.2.2.5 0 .7l-.5.5c-.2.2-.5.2-.7 0L9 10.3l-2.2 2.2c-.2.2-.5.2-.7 0l-.6-.5c-.2-.2-.2-.5 0-.7l2.2-2.2-2.2-2.3c-.2-.2-.2-.5 0-.7l.5-.5c.2-.2.5-.2.7 0l2.2 2.2 2.2-2.2c.2-.2.5-.2.7 0l.5.5c.2.2.2.5 0 .7L10.1 9l2.3 2.3z",
12881
+ fill: useCurrentColor ? 'currentColor' : '#000'
12882
+ }));
12883
+ });
12884
+ }
12885
+
12886
+ function IconCheckBold(props) {
12887
+ var _a = props.className,
12888
+ className = _a === void 0 ? '' : _a,
12889
+ _b = props.useCurrentColor,
12890
+ useCurrentColor = _b === void 0 ? true : _b,
12891
+ style = props.style,
12892
+ other = __rest(props, ["className", "useCurrentColor", "style"]);
12893
+
12894
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
12895
+ var prefixCls = _a.prefixCls;
12896
+ return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
12897
+ className: prefixCls + "-icon " + prefixCls + "-icon-check-bold " + className,
12898
+ width: "1em",
12899
+ height: "1em",
12900
+ style: style,
12901
+ xmlns: "http://www.w3.org/2000/svg",
12902
+ viewBox: "0 -0.97 10.07 10.07"
12903
+ }, other), /*#__PURE__*/React__default["default"].createElement("g", {
12904
+ "data-name": "\u56FE\u5C42 2"
12905
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
12906
+ d: "M9.22.12a.49.49 0 00-.7.06L3.86 5.69 1.4 3.57a.51.51 0 00-.71.06l-.57.66A.49.49 0 00.17 5L3 7.38v.07l.69.55a.53.53 0 00.71 0l.6-.71a.22.22 0 000-.08l5-5.82a.51.51 0 00-.11-.71z",
12907
+ fill: useCurrentColor ? 'currentColor' : '#000',
12908
+ fillRule: "evenodd",
12909
+ "data-name": "\u56FE\u5C42 1"
12910
+ })));
12911
+ });
12912
+ }
12913
+
12914
+ function IconCloseBold(props) {
12915
+ var _a = props.className,
12916
+ className = _a === void 0 ? '' : _a,
12917
+ _b = props.useCurrentColor,
12918
+ useCurrentColor = _b === void 0 ? true : _b,
12919
+ style = props.style,
12920
+ other = __rest(props, ["className", "useCurrentColor", "style"]);
12921
+
12922
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
12923
+ var prefixCls = _a.prefixCls;
12924
+ return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
12925
+ className: prefixCls + "-icon " + prefixCls + "-icon-close-bold " + className,
12926
+ width: "1em",
12927
+ height: "1em",
12928
+ style: style,
12929
+ xmlns: "http://www.w3.org/2000/svg",
12930
+ viewBox: "0 0 6.92 6.92"
12931
+ }, other), /*#__PURE__*/React__default["default"].createElement("g", {
12932
+ "data-name": "\u56FE\u5C42 2"
12933
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
12934
+ d: "M6.16.15l.62.62a.5.5 0 010 .7l-2 2 2 2a.51.51 0 010 .71l-.62.62a.51.51 0 01-.71 0l-2-2-2 2a.5.5 0 01-.7 0l-.6-.64a.5.5 0 010-.71l2-2-2-2a.48.48 0 010-.7l.62-.6a.48.48 0 01.7 0l2 2 2-2a.5.5 0 01.69 0z",
12935
+ fill: useCurrentColor ? 'currentColor' : '#000',
12936
+ fillRule: "evenodd",
12937
+ "data-name": "\u56FE\u5C42 1"
12938
+ })));
12939
+ });
12940
+ }
12941
+
12942
+ function IconStarHalf(props) {
12943
+ var _a = props.className,
12944
+ className = _a === void 0 ? '' : _a,
12945
+ _b = props.useCurrentColor,
12946
+ useCurrentColor = _b === void 0 ? true : _b,
12947
+ style = props.style,
12948
+ other = __rest(props, ["className", "useCurrentColor", "style"]);
12949
+
12950
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
12951
+ var prefixCls = _a.prefixCls;
12952
+ return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
12953
+ className: prefixCls + "-icon " + prefixCls + "-icon-star-half " + className,
12954
+ width: "1em",
12955
+ height: "1em",
12956
+ style: style,
12957
+ fill: useCurrentColor ? 'currentColor' : '#000',
12958
+ xmlns: "http://www.w3.org/2000/svg",
12959
+ viewBox: "0 0 1024 1024"
12960
+ }, other), /*#__PURE__*/React__default["default"].createElement("path", {
12961
+ d: "M513.8 71.6c-13.4-.9-25.9 5.8-31 16.2l-128 219.4c-3.7 11-11 14.6-21.9 18.3l-245 51.2c-3.7 0-11 3.7-14.6 7.3-14.6 14.6-18.3 36.6-3.7 51.2l168.2 186.5c3.7 11 7.3 18.3 7.3 29.3l-25.6 248.7c-3.7 7.3 0 14.6 3.7 18.3 7.3 18.3 29.3 25.6 47.5 18.3l226.7-109.7c3.9-3.9 10-5.7 16.4-5.4V71.6z"
12962
+ }));
12963
+ });
12964
+ }
12965
+
12966
+ function AddIcon() {
12967
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
12968
+ width: "30",
12969
+ height: "30",
12970
+ viewBox: "0 0 30 30",
12971
+ fill: "none"
12972
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
12973
+ fillRule: "evenodd",
12974
+ clipRule: "evenodd",
12975
+ d: "M14.5 0C14.2239 0 14 0.223857 14 0.5V14H0.5C0.223858 14 0 14.2239 0 14.5V15.5C0 15.7761 0.223857 16 0.5 16H14V29.5C14 29.7761 14.2239 30 14.5 30H15.5C15.7761 30 16 29.7761 16 29.5V16H29.5C29.7761 16 30 15.7761 30 15.5V14.5C30 14.2239 29.7761 14 29.5 14H16V0.5C16 0.223858 15.7761 0 15.5 0H14.5Z",
12976
+ fill: "#C9CDD4"
12977
+ }));
12978
+ }
12979
+
12980
+ /**
12981
+ * 图片选择器组件
12982
+ * @en ImagePicker Component
12983
+ * @type 数据输入
12984
+ * @type_en Data Entry
12985
+ * @name 图片选择器
12986
+ * @name_en ImagePicker
12987
+ */
12988
+
12989
+ var ImagePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
12990
+ var _a = props.className,
12991
+ className = _a === void 0 ? '' : _a,
12992
+ style = props.style,
12993
+ _b = props.accept,
12994
+ accept = _b === void 0 ? 'image/*' : _b,
12995
+ _c = props.multiple,
12996
+ multiple = _c === void 0 ? false : _c,
12997
+ capture = props.capture,
12998
+ _d = props.columns,
12999
+ columns = _d === void 0 ? 3 : _d,
13000
+ _e = props.gutter,
13001
+ gutter = _e === void 0 ? 8 : _e,
13002
+ _f = props.limit,
13003
+ limit = _f === void 0 ? 0 : _f,
13004
+ _g = props.images,
13005
+ images = _g === void 0 ? [] : _g,
13006
+ maxSize = props.maxSize,
13007
+ disabled = props.disabled,
13008
+ deleteIcon = props.deleteIcon,
13009
+ selectIcon = props.selectIcon,
13010
+ _h = props.hideDelete,
13011
+ hideDelete = _h === void 0 ? false : _h,
13012
+ _j = props.hideSelect,
13013
+ hideSelect = _j === void 0 ? false : _j,
13014
+ _k = props.alwaysShowSelect,
13015
+ alwaysShowSelect = _k === void 0 ? false : _k,
13016
+ imageProps = props.imageProps,
13017
+ renderLoading = props.renderLoading,
13018
+ renderError = props.renderError,
13019
+ onLongPress = props.onLongPress,
13020
+ onClick = props.onClick,
13021
+ _l = props.onChange,
13022
+ onChange = _l === void 0 ? function () {
13023
+ return null;
13024
+ } : _l,
13025
+ onMaxSizeExceed = props.onMaxSizeExceed,
13026
+ onLimitExceed = props.onLimitExceed,
13027
+ upload = props.upload,
13028
+ selectAdapter = props.selectAdapter;
13029
+ var domRef = React.useRef(null);
13030
+ var fileRef = React.useRef(null);
13031
+ React.useImperativeHandle(ref, function () {
13032
+ return {
13033
+ dom: domRef.current
13034
+ };
13035
+ });
13036
+
13037
+ var parseFile = function parseFile(file) {
13038
+ return new Promise(function (resolve, reject) {
13039
+ if (file.url) {
13040
+ resolve(file.url);
13041
+ } else {
13042
+ var reader = new FileReader();
13043
+
13044
+ reader.onload = function (e) {
13045
+ var _a;
13046
+
13047
+ var dataURL = (_a = e.target) === null || _a === void 0 ? void 0 : _a.result;
13048
+
13049
+ if (!dataURL) {
13050
+ reject(new Error('file parse error'));
13051
+ }
13052
+
13053
+ resolve(dataURL);
13054
+ };
13055
+
13056
+ reader.onerror = function () {
13057
+ reject(new Error('file parse error'));
13058
+ };
13059
+
13060
+ reader.readAsDataURL(file);
13061
+ }
13062
+ });
13063
+ };
13064
+
13065
+ var handleChange = function handleChange(event, fromAdapter) {
13066
+ var files = __spreadArrays(event.target.files || []).filter(function (file) {
13067
+ // 过滤maxSize
13068
+ if (maxSize && file.size > maxSize * 1024) {
13069
+ onMaxSizeExceed && onMaxSizeExceed(file);
13070
+ return false;
13071
+ }
13072
+
13073
+ return true;
13074
+ }) || [];
13075
+
13076
+ if (!fromAdapter) {
13077
+ event.target.value = '';
13078
+ } // 截断limit
13079
+
13080
+
13081
+ if (limit !== 0 && files.length + images.length > limit) {
13082
+ onLimitExceed && onLimitExceed(files);
13083
+ files.length = limit - images.length;
13084
+ } // 解析文件生成预览
13085
+
13086
+
13087
+ Promise.all(files.map(function (file) {
13088
+ return parseFile(file);
13089
+ })).then(function (parseFiles) {
13090
+ var res = parseFiles.map(function (url, index) {
13091
+ return {
13092
+ url: url,
13093
+ status: upload ? 'loading' : 'loaded',
13094
+ file: files[index]
13095
+ };
13096
+ });
13097
+
13098
+ var cacheRes = __spreadArrays(images, res);
13099
+
13100
+ onChange(cacheRes); // 执行upload
13101
+
13102
+ if (typeof upload === 'function') {
13103
+ var propsImageLength_1 = images.length;
13104
+ files.forEach(function (_file, index) {
13105
+ upload(cacheRes[propsImageLength_1 + index]).then(function (data) {
13106
+ cacheRes[propsImageLength_1 + index] = __assign(__assign({}, cacheRes[propsImageLength_1 + index]), data);
13107
+ }).catch(function () {
13108
+ cacheRes[propsImageLength_1 + index].status = 'error';
13109
+ }).finally(function () {
13110
+ cacheRes[propsImageLength_1 + index].status = 'loaded';
13111
+ onChange(__spreadArrays(cacheRes));
13112
+ });
13113
+ });
13114
+ }
13115
+ });
13116
+ };
13117
+
13118
+ var handleDelete = function handleDelete(index) {
13119
+ onChange(images.filter(function (_i, j) {
13120
+ return j !== index;
13121
+ }));
13122
+ }; // click && longPress
13123
+
13124
+
13125
+ var timeOutEvent;
13126
+
13127
+ var handleTouchStart = function handleTouchStart(e, image, index) {
13128
+ e.preventDefault();
13129
+ timeOutEvent = setTimeout(function () {
13130
+ timeOutEvent = 0;
13131
+ onLongPress === null || onLongPress === void 0 ? void 0 : onLongPress(e, image, index);
13132
+ }, 750);
13133
+ };
13134
+
13135
+ var handleClick = function handleClick(e, image, index) {
13136
+ clearTimeout(timeOutEvent);
13137
+
13138
+ if (timeOutEvent !== 0) {
13139
+ onClick === null || onClick === void 0 ? void 0 : onClick(e, image, index);
13140
+ }
13141
+ };
13142
+
13143
+ var handleSelect = function handleSelect() {
13144
+ var _a;
13145
+
13146
+ selectAdapter ? selectAdapter().then(function (_a) {
13147
+ var files = _a.files;
13148
+ return handleChange({
13149
+ target: {
13150
+ files: files
13151
+ }
13152
+ }, true);
13153
+ }) : (_a = fileRef.current) === null || _a === void 0 ? void 0 : _a.click();
13154
+ };
13155
+
13156
+ var getGridData = function getGridData(prefixCls, locale) {
13157
+ var _a;
13158
+
13159
+ var errorNode = function errorNode(index) {
13160
+ if (renderError) {
13161
+ return typeof renderError === 'function' ? renderError(index) : renderError;
13162
+ }
13163
+
13164
+ return /*#__PURE__*/React__default["default"].createElement("div", {
13165
+ className: prefixCls + "-image-picker-error"
13166
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, locale.ImagePicker.loadError));
13167
+ };
13168
+
13169
+ var loadingNode = function loadingNode(index) {
13170
+ if (renderLoading) {
13171
+ return typeof renderLoading === 'function' ? renderLoading(index) : renderLoading;
13172
+ }
13173
+
13174
+ return null;
13175
+ };
13176
+
13177
+ var data = (limit && limit < images.length ? images.slice(0, limit) : images).map(function (image, index) {
13178
+ var url = image.url,
13179
+ status = image.status;
13180
+ return {
13181
+ img: /*#__PURE__*/React__default["default"].createElement("div", {
13182
+ key: index + "-" + url,
13183
+ className: prefixCls + "-image-picker-image"
13184
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
13185
+ onTouchStart: function onTouchStart(e) {
13186
+ return handleTouchStart(e, image, index);
13187
+ },
13188
+ onClick: function onClick(e) {
13189
+ return handleClick(e, image, index);
13190
+ },
13191
+ className: prefixCls + "-image-picker-image-container"
13192
+ }, /*#__PURE__*/React__default["default"].createElement(BaseImage, __assign({
13193
+ showLoading: true,
13194
+ showError: true
13195
+ }, imageProps || {}, {
13196
+ src: url,
13197
+ errorArea: errorNode(index),
13198
+ loadingArea: loadingNode(index),
13199
+ status: status || (imageProps === null || imageProps === void 0 ? void 0 : imageProps.status)
13200
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
13201
+ className: prefixCls + "-image-picker-image-mask"
13202
+ })), !hideDelete && /*#__PURE__*/React__default["default"].createElement("div", {
13203
+ className: prefixCls + "-image-picker-close",
13204
+ onClick: function onClick() {
13205
+ return handleDelete(index);
13206
+ }
13207
+ }, deleteIcon || /*#__PURE__*/React__default["default"].createElement("div", {
13208
+ className: prefixCls + "-image-picker-close-icon"
13209
+ }, /*#__PURE__*/React__default["default"].createElement(IconClose, null)))),
13210
+ title: ''
13211
+ };
13212
+ });
13213
+ var showSelect = !hideSelect && images.length < (limit || Infinity);
13214
+ var disableSelect = disabled || alwaysShowSelect && !showSelect;
13215
+
13216
+ if (showSelect || alwaysShowSelect) {
13217
+ data.push({
13218
+ img: /*#__PURE__*/React__default["default"].createElement("div", {
13219
+ className: cls(prefixCls + "-image-picker-add", (_a = {}, _a[prefixCls + "-image-picker-add-disabled"] = disableSelect, _a)),
13220
+ onClick: handleSelect
13221
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
13222
+ className: prefixCls + "-image-picker-add-container"
13223
+ }, selectIcon || /*#__PURE__*/React__default["default"].createElement("div", {
13224
+ className: prefixCls + "-image-picker-add-icon"
13225
+ }, /*#__PURE__*/React__default["default"].createElement(AddIcon, null)), !selectAdapter ? /*#__PURE__*/React__default["default"].createElement("input", {
13226
+ capture: capture,
13227
+ accept: accept,
13228
+ multiple: multiple,
13229
+ type: "file",
13230
+ onChange: function onChange(e) {
13231
+ return handleChange(e);
13232
+ },
13233
+ ref: fileRef
13234
+ }) : null)),
13235
+ title: ''
13236
+ });
13237
+ }
13238
+
13239
+ return data;
13240
+ };
13241
+
13242
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
13243
+ var _b;
13244
+
13245
+ var prefixCls = _a.prefixCls,
13246
+ _c = _a.locale,
13247
+ locale = _c === void 0 ? defaultLocale : _c;
13248
+ return /*#__PURE__*/React__default["default"].createElement("div", {
13249
+ className: cls(prefixCls + "-image-picker", className, (_b = {}, _b[prefixCls + "-image-picker-disabled"] = disabled, _b)),
13250
+ style: style,
13251
+ ref: domRef
13252
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
13253
+ className: prefixCls + "-image-picker-container"
13254
+ }, /*#__PURE__*/React__default["default"].createElement(Grid, {
13255
+ data: getGridData(prefixCls, locale),
13256
+ gutter: gutter,
13257
+ columns: columns
13258
+ })));
13259
+ });
13260
+ });
13261
+
12765
13262
  /*!
12766
13263
  * @arco-design/transformable v1.0.1
12767
13264
  * (c) 2022 ludan.kibbon
@@ -15957,30 +16454,6 @@
15957
16454
 
15958
16455
  var index$7 = componentWrapper(ImagePreview, methodsGenerator$2(ImagePreview));
15959
16456
 
15960
- function IconClear(props) {
15961
- var _a = props.className,
15962
- className = _a === void 0 ? '' : _a,
15963
- _b = props.useCurrentColor,
15964
- useCurrentColor = _b === void 0 ? true : _b,
15965
- style = props.style,
15966
- other = __rest(props, ["className", "useCurrentColor", "style"]);
15967
-
15968
- return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
15969
- var prefixCls = _a.prefixCls;
15970
- return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
15971
- className: prefixCls + "-icon " + prefixCls + "-icon-clear " + className,
15972
- width: "1em",
15973
- height: "1em",
15974
- style: style,
15975
- xmlns: "http://www.w3.org/2000/svg",
15976
- viewBox: "0 0 18 18"
15977
- }, other), /*#__PURE__*/React__default["default"].createElement("path", {
15978
- d: "M9 1.1C4.7 1.1 1.1 4.7 1.1 9s3.5 7.9 7.9 7.9 7.9-3.5 7.9-7.9S13.3 1.1 9 1.1zm3.4 10.2c.2.2.2.5 0 .7l-.5.5c-.2.2-.5.2-.7 0L9 10.3l-2.2 2.2c-.2.2-.5.2-.7 0l-.6-.5c-.2-.2-.2-.5 0-.7l2.2-2.2-2.2-2.3c-.2-.2-.2-.5 0-.7l.5-.5c.2-.2.5-.2.7 0l2.2 2.2 2.2-2.2c.2-.2.5-.2.7 0l.5.5c.2.2.2.5 0 .7L10.1 9l2.3 2.3z",
15979
- fill: useCurrentColor ? 'currentColor' : '#000'
15980
- }));
15981
- });
15982
- }
15983
-
15984
16457
  function useInputLogic(props, inputRef) {
15985
16458
  var value = props.value,
15986
16459
  defaultValue = props.defaultValue,
@@ -16428,7 +16901,7 @@
16428
16901
  });
16429
16902
  });
16430
16903
 
16431
- var BackArrow = function BackArrow(_a) {
16904
+ function BackArrow(_a) {
16432
16905
  var _b = _a.color,
16433
16906
  color = _b === void 0 ? 'currentColor' : _b;
16434
16907
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -16441,7 +16914,7 @@
16441
16914
  d: "M2.1,8l5.4,5.4c0.1,0.1,0.1,0.3,0,0.5L7,14.4c-0.1,0.1-0.3,0.1-0.5,0L0.7,8.5c-0.3-0.3-0.3-0.7,0-0.9\n l5.9-5.9c0.1-0.1,0.3-0.1,0.5,0l0.5,0.5c0.1,0.1,0.1,0.3,0,0.5L2.1,8z",
16442
16915
  fill: color
16443
16916
  })));
16444
- };
16917
+ }
16445
16918
 
16446
16919
  /**
16447
16920
  * 导航栏组件,支持吸顶和沉浸式,支持在指定滚动位置展示,支持根据滚动位置实时更新style。
@@ -16585,30 +17058,6 @@
16585
17058
  });
16586
17059
  });
16587
17060
 
16588
- function IconClose(props) {
16589
- var _a = props.className,
16590
- className = _a === void 0 ? '' : _a,
16591
- _b = props.useCurrentColor,
16592
- useCurrentColor = _b === void 0 ? true : _b,
16593
- style = props.style,
16594
- other = __rest(props, ["className", "useCurrentColor", "style"]);
16595
-
16596
- return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
16597
- var prefixCls = _a.prefixCls;
16598
- return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
16599
- className: prefixCls + "-icon " + prefixCls + "-icon-close " + className,
16600
- width: "1em",
16601
- height: "1em",
16602
- style: style,
16603
- viewBox: "0 0 1024 1024",
16604
- xmlns: "http://www.w3.org/2000/svg"
16605
- }, other), /*#__PURE__*/React__default["default"].createElement("path", {
16606
- fill: useCurrentColor ? 'currentColor' : '#000',
16607
- d: "M509.568 447.083L796.16 160.469a21.333 21.333 0 0130.165 0l30.166 30.166a21.333 21.333 0 010 30.186L569.899 507.435l286.613 286.592a21.333 21.333 0 010 30.165l-30.165 30.165a21.333 21.333 0 01-30.166 0L509.568 567.765 222.933 854.38a21.333 21.333 0 01-30.186 0l-30.166-30.166a21.333 21.333 0 010-30.165l286.614-286.613L162.603 220.8a21.333 21.333 0 010-30.187l30.165-30.165a21.333 21.333 0 0130.187 0l286.613 286.613z"
16608
- }));
16609
- });
16610
- }
16611
-
16612
17061
  /**
16613
17062
  * 可自定义换行或滚动效果,支持循环滚动。
16614
17063
  * @en Line wrapping or scrolling effects can be customized, and circular scrolling is supported.
@@ -18739,7 +19188,9 @@
18739
19188
  background: progressColor
18740
19189
  }
18741
19190
  }, currentPercentage, "%");
18742
- } else if (position === percentPosition) {
19191
+ }
19192
+
19193
+ if (position === percentPosition) {
18743
19194
  return /*#__PURE__*/React__default["default"].createElement("div", {
18744
19195
  style: {
18745
19196
  color: progressColor
@@ -20688,54 +21139,6 @@
20688
21139
  Group: Group
20689
21140
  });
20690
21141
 
20691
- function IconStarFill(props) {
20692
- var _a = props.className,
20693
- className = _a === void 0 ? '' : _a,
20694
- _b = props.useCurrentColor,
20695
- useCurrentColor = _b === void 0 ? true : _b,
20696
- style = props.style,
20697
- other = __rest(props, ["className", "useCurrentColor", "style"]);
20698
-
20699
- return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
20700
- var prefixCls = _a.prefixCls;
20701
- return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
20702
- className: prefixCls + "-icon " + prefixCls + "-icon-star-fill " + className,
20703
- width: "1em",
20704
- height: "1em",
20705
- style: style,
20706
- fill: useCurrentColor ? 'currentColor' : '#000',
20707
- viewBox: "0 0 1024 1024",
20708
- xmlns: "http://www.w3.org/2000/svg"
20709
- }, other), /*#__PURE__*/React__default["default"].createElement("defs", null, /*#__PURE__*/React__default["default"].createElement("style", null)), /*#__PURE__*/React__default["default"].createElement("path", {
20710
- d: "M497.371 826.514L270.63 936.23c-18.286 7.314-40.229 0-47.543-18.286-3.657-3.657-7.315-10.972-3.657-18.286l25.6-248.686c0-10.971-3.658-18.285-7.315-29.257L69.486 435.2c-14.629-14.629-10.972-36.571 3.657-51.2 3.657-3.657 10.971-7.314 14.628-7.314l245.029-51.2c10.971-3.657 18.286-7.315 21.943-18.286l128-219.429C490.057 73.143 512 65.83 530.286 76.8c3.657 3.657 10.971 7.314 14.628 14.629l128 219.428c3.657 7.314 14.629 14.629 21.943 18.286l245.029 51.2c18.285 3.657 32.914 21.943 25.6 43.886 0 7.314-3.657 10.971-7.315 14.628L789.943 621.714c-7.314 7.315-10.972 18.286-7.314 29.257l25.6 248.686c3.657 18.286-10.972 36.572-32.915 40.229-7.314 0-14.628 0-18.285-3.657L530.286 826.514c-10.972-7.314-25.6-7.314-32.915 0z"
20711
- }));
20712
- });
20713
- }
20714
-
20715
- function IconStarHalf(props) {
20716
- var _a = props.className,
20717
- className = _a === void 0 ? '' : _a,
20718
- _b = props.useCurrentColor,
20719
- useCurrentColor = _b === void 0 ? true : _b,
20720
- style = props.style,
20721
- other = __rest(props, ["className", "useCurrentColor", "style"]);
20722
-
20723
- return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
20724
- var prefixCls = _a.prefixCls;
20725
- return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
20726
- className: prefixCls + "-icon " + prefixCls + "-icon-star-half " + className,
20727
- width: "1em",
20728
- height: "1em",
20729
- style: style,
20730
- fill: useCurrentColor ? 'currentColor' : '#000',
20731
- xmlns: "http://www.w3.org/2000/svg",
20732
- viewBox: "0 0 1024 1024"
20733
- }, other), /*#__PURE__*/React__default["default"].createElement("path", {
20734
- d: "M513.8 71.6c-13.4-.9-25.9 5.8-31 16.2l-128 219.4c-3.7 11-11 14.6-21.9 18.3l-245 51.2c-3.7 0-11 3.7-14.6 7.3-14.6 14.6-18.3 36.6-3.7 51.2l168.2 186.5c3.7 11 7.3 18.3 7.3 29.3l-25.6 248.7c-3.7 7.3 0 14.6 3.7 18.3 7.3 18.3 29.3 25.6 47.5 18.3l226.7-109.7c3.9-3.9 10-5.7 16.4-5.4V71.6z"
20735
- }));
20736
- });
20737
- }
20738
-
20739
21142
  /**
20740
21143
  * 评分组件,支持受控模式
20741
21144
  * @en Rate component, supports controlled mode
@@ -21398,7 +21801,7 @@
21398
21801
  renderThumb: baseRenderThumb('')
21399
21802
  });
21400
21803
 
21401
- var Popover = function Popover(_a) {
21804
+ function Popover(_a) {
21402
21805
  var visible = _a.visible,
21403
21806
  content = _a.content,
21404
21807
  children = _a.children;
@@ -21418,7 +21821,7 @@
21418
21821
  }, content), /*#__PURE__*/React__default["default"].createElement("div", {
21419
21822
  className: prefixCls + "-slider-popover-arrow"
21420
21823
  }))), children);
21421
- };
21824
+ }
21422
21825
 
21423
21826
  var Thumb = function Thumb(_a) {
21424
21827
  var className = _a.className,
@@ -21458,7 +21861,7 @@
21458
21861
  }, thumbEl));
21459
21862
  };
21460
21863
 
21461
- var Marks = function Marks(_a) {
21864
+ function Marks(_a) {
21462
21865
  var runTimeConfig = _a.runTimeConfig,
21463
21866
  _b = _a.className,
21464
21867
  className = _b === void 0 ? '' : _b,
@@ -21495,7 +21898,7 @@
21495
21898
  className: prefixCls + "-slider-marks-item-label"
21496
21899
  }, label));
21497
21900
  }));
21498
- };
21901
+ }
21499
21902
 
21500
21903
  var Slider = /*#__PURE__*/React.forwardRef(function (_, ref) {
21501
21904
  var _a = React.useContext(GlobalContext).prefixCls,
@@ -21666,86 +22069,6 @@
21666
22069
  }));
21667
22070
  });
21668
22071
 
21669
- function IconAdd(props) {
21670
- var _a = props.className,
21671
- className = _a === void 0 ? '' : _a,
21672
- _b = props.useCurrentColor,
21673
- useCurrentColor = _b === void 0 ? true : _b,
21674
- style = props.style,
21675
- other = __rest(props, ["className", "useCurrentColor", "style"]);
21676
-
21677
- return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
21678
- var prefixCls = _a.prefixCls;
21679
- return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
21680
- className: prefixCls + "-icon " + prefixCls + "-icon-add " + className,
21681
- width: "1em",
21682
- height: "1em",
21683
- style: style,
21684
- viewBox: "0 0 1024 1024",
21685
- xmlns: "http://www.w3.org/2000/svg"
21686
- }, other), /*#__PURE__*/React__default["default"].createElement("path", {
21687
- fill: useCurrentColor ? 'currentColor' : '#000',
21688
- d: "M527.317 85.333c9.515 0 12.95.982 16.427 2.859a19.337 19.337 0 018.064 8.064c1.877 3.477 2.859 6.912 2.859 16.427v356.65h356.65c9.515 0 12.95.982 16.427 2.859a19.337 19.337 0 018.064 8.064c1.877 3.477 2.859 6.912 2.859 16.427v30.634c0 9.515-.982 12.95-2.859 16.427a19.392 19.392 0 01-8.064 8.064c-3.477 1.877-6.912 2.859-16.427 2.859h-356.65v356.65c0 9.515-.982 12.95-2.859 16.427a19.392 19.392 0 01-8.064 8.064c-3.477 1.877-6.912 2.859-16.427 2.859h-30.634c-9.515 0-12.95-.982-16.427-2.859a19.392 19.392 0 01-8.064-8.064c-1.877-3.477-2.859-6.912-2.859-16.427l-.021-356.65h-356.63c-9.514 0-12.949-.982-16.426-2.859a19.392 19.392 0 01-8.064-8.064c-1.877-3.477-2.859-6.912-2.859-16.427v-30.634c0-9.515.982-12.95 2.859-16.427a19.392 19.392 0 018.064-8.064c3.477-1.877 6.912-2.859 16.427-2.859l356.65-.021v-356.63c0-9.514.982-12.949 2.859-16.426a19.392 19.392 0 018.064-8.064c3.477-1.877 6.912-2.859 16.427-2.859h30.634z"
21689
- }));
21690
- });
21691
- }
21692
-
21693
- function IconCheckBold(props) {
21694
- var _a = props.className,
21695
- className = _a === void 0 ? '' : _a,
21696
- _b = props.useCurrentColor,
21697
- useCurrentColor = _b === void 0 ? true : _b,
21698
- style = props.style,
21699
- other = __rest(props, ["className", "useCurrentColor", "style"]);
21700
-
21701
- return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
21702
- var prefixCls = _a.prefixCls;
21703
- return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
21704
- className: prefixCls + "-icon " + prefixCls + "-icon-check-bold " + className,
21705
- width: "1em",
21706
- height: "1em",
21707
- style: style,
21708
- xmlns: "http://www.w3.org/2000/svg",
21709
- viewBox: "0 -0.97 10.07 10.07"
21710
- }, other), /*#__PURE__*/React__default["default"].createElement("g", {
21711
- "data-name": "\u56FE\u5C42 2"
21712
- }, /*#__PURE__*/React__default["default"].createElement("path", {
21713
- d: "M9.22.12a.49.49 0 00-.7.06L3.86 5.69 1.4 3.57a.51.51 0 00-.71.06l-.57.66A.49.49 0 00.17 5L3 7.38v.07l.69.55a.53.53 0 00.71 0l.6-.71a.22.22 0 000-.08l5-5.82a.51.51 0 00-.11-.71z",
21714
- fill: useCurrentColor ? 'currentColor' : '#000',
21715
- fillRule: "evenodd",
21716
- "data-name": "\u56FE\u5C42 1"
21717
- })));
21718
- });
21719
- }
21720
-
21721
- function IconCloseBold(props) {
21722
- var _a = props.className,
21723
- className = _a === void 0 ? '' : _a,
21724
- _b = props.useCurrentColor,
21725
- useCurrentColor = _b === void 0 ? true : _b,
21726
- style = props.style,
21727
- other = __rest(props, ["className", "useCurrentColor", "style"]);
21728
-
21729
- return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
21730
- var prefixCls = _a.prefixCls;
21731
- return /*#__PURE__*/React__default["default"].createElement("svg", __assign({
21732
- className: prefixCls + "-icon " + prefixCls + "-icon-close-bold " + className,
21733
- width: "1em",
21734
- height: "1em",
21735
- style: style,
21736
- xmlns: "http://www.w3.org/2000/svg",
21737
- viewBox: "0 0 6.92 6.92"
21738
- }, other), /*#__PURE__*/React__default["default"].createElement("g", {
21739
- "data-name": "\u56FE\u5C42 2"
21740
- }, /*#__PURE__*/React__default["default"].createElement("path", {
21741
- d: "M6.16.15l.62.62a.5.5 0 010 .7l-2 2 2 2a.51.51 0 010 .71l-.62.62a.51.51 0 01-.71 0l-2-2-2 2a.5.5 0 01-.7 0l-.6-.64a.5.5 0 010-.71l2-2-2-2a.48.48 0 010-.7l.62-.6a.48.48 0 01.7 0l2 2 2-2a.5.5 0 01.69 0z",
21742
- fill: useCurrentColor ? 'currentColor' : '#000',
21743
- fillRule: "evenodd",
21744
- "data-name": "\u56FE\u5C42 1"
21745
- })));
21746
- });
21747
- }
21748
-
21749
22072
  var Step = /*#__PURE__*/React.forwardRef(function (props, ref) {
21750
22073
  var title = props.title,
21751
22074
  description = props.description,
@@ -21772,7 +22095,9 @@
21772
22095
 
21773
22096
  if (current < index) {
21774
22097
  return 'wait';
21775
- } else if (current === index) {
22098
+ }
22099
+
22100
+ if (current === index) {
21776
22101
  return 'process';
21777
22102
  }
21778
22103
 
@@ -22824,6 +23149,7 @@
22824
23149
  exports.Ellipsis = Ellipsis;
22825
23150
  exports.Grid = Grid;
22826
23151
  exports.Image = BaseImage;
23152
+ exports.ImagePicker = ImagePicker;
22827
23153
  exports.ImagePreview = index$7;
22828
23154
  exports.Input = Input;
22829
23155
  exports.LoadMore = LoadMore;