@nutui/nutui-react-taro 2.6.15-beta.0 → 2.6.16

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 (58) hide show
  1. package/CHANGELOG.md +931 -909
  2. package/README.md +21 -28
  3. package/dist/esm/Audio.js +1 -1
  4. package/dist/esm/Checkbox.js +1 -1
  5. package/dist/esm/CheckboxGroup.js +1 -1
  6. package/dist/esm/DatePicker.js +1 -1
  7. package/dist/esm/Form.js +1 -1
  8. package/dist/esm/FormItem.js +1 -1
  9. package/dist/esm/ImagePreview.js +1 -1
  10. package/dist/esm/InputNumber.js +1 -1
  11. package/dist/esm/Menu.js +1 -1
  12. package/dist/esm/MenuItem.js +1 -1
  13. package/dist/esm/NumberKeyboard.js +1 -1
  14. package/dist/esm/PullToRefresh.js +1 -1
  15. package/dist/esm/Radio.js +1 -1
  16. package/dist/esm/RadioGroup.js +1 -1
  17. package/dist/esm/Swipe.js +1 -1
  18. package/dist/esm/Swiper.js +1 -2
  19. package/dist/esm/SwiperItem.js +1 -1
  20. package/dist/esm/Table.js +1 -1
  21. package/dist/esm/Uploader.js +1 -1
  22. package/dist/esm/{audio.taro-DzSc40G9.js → audio.taro-CD-vP_u0.js} +7 -8
  23. package/dist/esm/{checkbox.taro-Dc054oRo.js → checkbox.taro-CgqJyhrh.js} +4 -5
  24. package/dist/esm/{datepicker.taro-DTyJrlhD.js → datepicker.taro-BxaZ3Fjv.js} +3 -4
  25. package/dist/esm/{formitem.taro-Dmt5-wxG.js → formitem.taro-DogVddcs.js} +2 -2
  26. package/dist/esm/{imagepreview.taro-DtgQJEQ_.js → imagepreview.taro-CF-CCJ1Q.js} +1 -1
  27. package/dist/esm/{inputnumber.taro-WN5Drnyz.js → inputnumber.taro-D9mteLSI.js} +26 -9
  28. package/dist/esm/{menu.taro-CrPdDbYM.js → menu.taro-CLbOM_Z4.js} +12 -5
  29. package/dist/esm/{menuitem.taro-DMV3j4DK.js → menuitem.taro-CNaseNcY.js} +1 -1
  30. package/dist/esm/{numberkeyboard.taro-BA0iCeGP.js → numberkeyboard.taro-Cz6rKxk3.js} +38 -27
  31. package/dist/esm/nutui-react.es.js +15 -15
  32. package/dist/esm/{pulltorefresh.taro-CZReoWwU.js → pulltorefresh.taro-BScP6uPx.js} +0 -1
  33. package/dist/esm/{radio.taro-BNSceequ.js → radio.taro-CzOHqD3O.js} +0 -2
  34. package/dist/esm/{swipe.taro-yUhne9XU.js → swipe.taro-Bsk2fnEl.js} +0 -1
  35. package/dist/esm/{swiperitem.taro-DeiNSrJV.js → swiperitem.taro-BleF1EOs.js} +0 -5
  36. package/dist/esm/{table.taro-D2M3D2Vj.js → table.taro-B6WCKTkO.js} +6 -5
  37. package/dist/esm/{uploader.taro-DfO2HWvy.js → uploader.taro-DagHZaNI.js} +4 -2
  38. package/dist/locales/base.js +1 -1
  39. package/dist/locales/en-US.js +1 -1
  40. package/dist/locales/id-ID.js +1 -1
  41. package/dist/locales/tr-TR.js +1 -1
  42. package/dist/locales/zh-CN.js +1 -1
  43. package/dist/locales/zh-TW.js +1 -1
  44. package/dist/locales/zh-UG.js +1 -1
  45. package/dist/nutui.react.es.js +207 -151
  46. package/dist/nutui.react.umd.js +207 -151
  47. package/dist/types/packages/cell/cell.d.ts +1 -1
  48. package/dist/types/packages/cell/cell.taro.d.ts +2 -2
  49. package/dist/types/packages/formitem/formitem.d.ts +1 -0
  50. package/dist/types/packages/formitem/formitem.taro.d.ts +5 -0
  51. package/dist/types/packages/inputnumber/inputnumber.d.ts +1 -1
  52. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +1 -1
  53. package/dist/types/packages/menuitem/menuitem.d.ts +1 -0
  54. package/dist/types/packages/menuitem/menuitem.taro.d.ts +5 -0
  55. package/dist/types/packages/swiper/swiper.taro.d.ts +2 -1
  56. package/dist/types/packages/swiperitem/swiperitem.d.ts +0 -1
  57. package/package.json +2 -2
  58. package/dist/types/packages/griditem/types.d.ts +0 -13
@@ -29,17 +29,17 @@ import { C as C5 } from "./calendar.taro-BXrHr8bg.js";
29
29
  import { C as C6 } from "./calendaritem.taro-CRultyrO.js";
30
30
  import { C as C7 } from "./calendarcard.taro-CbvCWF1k.js";
31
31
  import { C as C8 } from "./cascader.taro-jxe42b68.js";
32
- import { C as C9, a as a2 } from "./checkbox.taro-Dc054oRo.js";
33
- import { D as D2 } from "./datepicker.taro-DTyJrlhD.js";
32
+ import { C as C9, a as a2 } from "./checkbox.taro-CgqJyhrh.js";
33
+ import { D as D2 } from "./datepicker.taro-BxaZ3Fjv.js";
34
34
  import { default as default2 } from "./Form.js";
35
- import { F as F2 } from "./formitem.taro-Dmt5-wxG.js";
35
+ import { F as F2 } from "./formitem.taro-DogVddcs.js";
36
36
  import { I as I2 } from "./input.taro-B_B1lJq2.js";
37
- import { I as I3 } from "./inputnumber.taro-WN5Drnyz.js";
38
- import { M } from "./menu.taro-CrPdDbYM.js";
39
- import { M as M2 } from "./menuitem.taro-DMV3j4DK.js";
40
- import { N as N2 } from "./numberkeyboard.taro-BA0iCeGP.js";
37
+ import { I as I3 } from "./inputnumber.taro-D9mteLSI.js";
38
+ import { M } from "./menu.taro-CLbOM_Z4.js";
39
+ import { M as M2 } from "./menuitem.taro-CNaseNcY.js";
40
+ import { N as N2 } from "./numberkeyboard.taro-Cz6rKxk3.js";
41
41
  import { P } from "./picker.taro-CafNRRO5.js";
42
- import { R as R2, a as a3 } from "./radio.taro-BNSceequ.js";
42
+ import { R as R2, a as a3 } from "./radio.taro-CzOHqD3O.js";
43
43
  import { R as R3 } from "./range.taro-D_qsx_j6.js";
44
44
  import { R as R4 } from "./rate.taro-CPGkjYYu.js";
45
45
  import { S as S7 } from "./searchbar.taro-C8cg7NeJ.js";
@@ -47,7 +47,7 @@ import { S as S8 } from "./shortpassword.taro-DpdtRsQ-.js";
47
47
  import { S as S9 } from "./signature.taro-zgwaJkIE.js";
48
48
  import { S as S10 } from "./switch.taro-CdBmDo18.js";
49
49
  import { T as T5 } from "./textarea.taro-DuceTjAx.js";
50
- import { U } from "./uploader.taro-DfO2HWvy.js";
50
+ import { U } from "./uploader.taro-DagHZaNI.js";
51
51
  import { A as A2 } from "./actionsheet.taro-CJjNsNrH.js";
52
52
  import { B as B3 } from "./badge.taro-BGaxpEYi.js";
53
53
  import { B as B4 } from "./dialog.taro-BW9D2Gsr.js";
@@ -59,13 +59,13 @@ import { N as N3 } from "./noticebar.taro-CGUTg60Q.js";
59
59
  import { N as N4 } from "./notify.taro-jP7y9zMU.js";
60
60
  import { P as P2 } from "./popover.taro-B_FJgU0z.js";
61
61
  import { P as P3 } from "./popup.taro-CR3JyuJV.js";
62
- import { P as P4 } from "./pulltorefresh.taro-CZReoWwU.js";
62
+ import { P as P4 } from "./pulltorefresh.taro-BScP6uPx.js";
63
63
  import { S as S11 } from "./skeleton.taro-bD6fHZop.js";
64
- import { S as S12 } from "./swipe.taro-yUhne9XU.js";
64
+ import { S as S12 } from "./swipe.taro-Bsk2fnEl.js";
65
65
  import { T as T6 } from "./toast.taro-CYk6UERn.js";
66
66
  import { A as A3 } from "./animate.taro-CQVEyDKL.js";
67
67
  import { default as default3 } from "./AnimatingNumbers.js";
68
- import { A as A4 } from "./audio.taro-DzSc40G9.js";
68
+ import { A as A4 } from "./audio.taro-CD-vP_u0.js";
69
69
  import { A as A5 } from "./avatar.taro-DSL3ErmC.js";
70
70
  import { A as A6 } from "./avatargroup.taro-ScakjsY1.js";
71
71
  import { C as C10 } from "./circleprogress.taro-BTRyQG5T.js";
@@ -73,7 +73,7 @@ import { C as C11 } from "./collapse.taro-wqL6MWZr.js";
73
73
  import { C as C12 } from "./collapseitem.taro-DjUx5Nx8.js";
74
74
  import { C as C13 } from "./countdown.taro-mKXeisK0.js";
75
75
  import { E as E3 } from "./ellipsis.taro-cMTr1Wcw.js";
76
- import { I as I5 } from "./imagepreview.taro-DtgQJEQ_.js";
76
+ import { I as I5 } from "./imagepreview.taro-CF-CCJ1Q.js";
77
77
  import { I as I6 } from "./indicator.taro-k8bxJf86.js";
78
78
  import { P as P5 } from "./pagination.taro-DdLO3OTc.js";
79
79
  import { P as P6 } from "./price.taro-DUW-OR83.js";
@@ -81,8 +81,8 @@ import { P as P7 } from "./progress.taro-De9-206U.js";
81
81
  import { S as S13 } from "./step.taro-Cc1dc5Qb.js";
82
82
  import { S as S14 } from "./steps.taro-CUEhZGfy.js";
83
83
  import { default as default4 } from "./Swiper.js";
84
- import { S as S15 } from "./swiperitem.taro-DeiNSrJV.js";
85
- import { T as T7 } from "./table.taro-D2M3D2Vj.js";
84
+ import { S as S15 } from "./swiperitem.taro-BleF1EOs.js";
85
+ import { T as T7 } from "./table.taro-B6WCKTkO.js";
86
86
  import { T as T8 } from "./tag.taro-CFt28RLm.js";
87
87
  import { T as T9 } from "./tour.taro-SPMrhDA9.js";
88
88
  import { V } from "./video.taro-CecLv4sr.js";
@@ -140,7 +140,6 @@ const PullToRefresh = (p) => {
140
140
  React__default.createElement("div", { className: `${classPrefix}-content` }, props.children)
141
141
  );
142
142
  };
143
- PullToRefresh.defaultProps = defaultProps;
144
143
  PullToRefresh.displayName = "NutPullToRefresh";
145
144
  export {
146
145
  PullToRefresh as P
@@ -46,7 +46,6 @@ const RadioGroup = React__default.forwardRef((props, ref) => {
46
46
  }, className) }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptionsChildren() : children)
47
47
  );
48
48
  });
49
- RadioGroup.defaultProps = defaultProps$1;
50
49
  RadioGroup.displayName = "NutRadioGroup";
51
50
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { disabled: false, shape: "round", value: "", labelPosition: "right", icon: null, activeIcon: null, onChange: (checked) => {
52
51
  } });
@@ -128,7 +127,6 @@ const Radio = (props) => {
128
127
  [`${classPrefix2}-reverse`]: labelPosition === "left"
129
128
  }, className), style, onClick: handleClick }, rest), renderRadioItem());
130
129
  };
131
- Radio.defaultProps = defaultProps;
132
130
  Radio.displayName = "NutRadio";
133
131
  Radio.Group = RadioGroup;
134
132
  export {
@@ -178,7 +178,6 @@ const Swipe = forwardRef((props, instanceRef) => {
178
178
  )
179
179
  );
180
180
  });
181
- Swipe.defaultProps = defaultProps;
182
181
  Swipe.displayName = "NutSwipe";
183
182
  export {
184
183
  Swipe as S
@@ -1,15 +1,10 @@
1
1
  import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
2
2
  import React__default from "react";
3
- const defaultProps = {
4
- itemId: "",
5
- skipHiddenItemLayout: false
6
- };
7
3
  const SwiperItem = (props) => {
8
4
  const { children } = props;
9
5
  __rest(props, ["children"]);
10
6
  return React__default.createElement(React__default.Fragment, null, children);
11
7
  };
12
- SwiperItem.defaultProps = defaultProps;
13
8
  SwiperItem.displayName = "NutSwiperItem";
14
9
  export {
15
10
  SwiperItem as S
@@ -130,17 +130,18 @@ const Table = (props) => {
130
130
  });
131
131
  };
132
132
  const renderBodyTds = (item, rowIndex) => {
133
- const { rowRender } = item;
134
- if (rowRender && typeof rowRender === "function") {
135
- return rowRender(item, rowIndex);
136
- }
137
133
  return sortDataItem().map(([value, render]) => {
138
134
  return React__default.createElement("div", { className: classNames(`${bodyClassPrefix}-td`, cellClasses(getColumnItem(value)), getStickyClass(value)), key: value, style: getStickyStyle(value) }, typeof item[value] === "function" || typeof render === "function" ? React__default.createElement("div", null, render ? render(item, rowIndex) : item[value](item)) : item[value]);
139
135
  });
140
136
  };
141
137
  const renderBodyTrs = () => {
142
138
  return innerValue.map((item, index) => {
143
- return React__default.createElement("div", { className: bodyClassPrefix, key: index }, renderBodyTds(item, index));
139
+ const inner = renderBodyTds(item, index);
140
+ const { rowRender } = item;
141
+ if (rowRender && typeof rowRender === "function") {
142
+ return rowRender(item, index, { inner });
143
+ }
144
+ return React__default.createElement("div", { className: bodyClassPrefix, key: index }, inner);
144
145
  });
145
146
  };
146
147
  return React__default.createElement(
@@ -72,10 +72,12 @@ class UploaderTaro extends Upload {
72
72
  uploadTaro(uploadFile2, env) {
73
73
  var _a;
74
74
  const options = this.options;
75
+ if (options.beforeXhrUpload) {
76
+ options.beforeXhrUpload(uploadFile2, options);
77
+ return;
78
+ }
75
79
  if (env === "WEB") {
76
80
  this.upload();
77
- } else if (options.beforeXhrUpload) {
78
- options.beforeXhrUpload(uploadFile2, options);
79
81
  } else {
80
82
  const uploadTask = uploadFile2({
81
83
  url: options.url,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.14 Wed Jul 24 2024 13:30:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.16 Sat Aug 03 2024 09:52:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.14 Wed Jul 24 2024 13:30:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.16 Sat Aug 03 2024 09:52:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.14 Wed Jul 24 2024 13:30:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.16 Sat Aug 03 2024 09:52:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.14 Wed Jul 24 2024 13:30:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.16 Sat Aug 03 2024 09:52:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.14 Wed Jul 24 2024 13:30:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.16 Sat Aug 03 2024 09:52:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.14 Wed Jul 24 2024 13:30:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.16 Sat Aug 03 2024 09:52:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.14 Wed Jul 24 2024 13:30:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.16 Sat Aug 03 2024 09:52:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */