@nutui/nutui-react-taro 2.6.19 → 2.6.20

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 (98) hide show
  1. package/CHANGELOG.md +17 -9
  2. package/dist/esm/Address.js +1 -1
  3. package/dist/esm/Audio.js +1 -1
  4. package/dist/esm/AvatarCropper.js +1 -1
  5. package/dist/esm/BackTop.js +1 -1
  6. package/dist/esm/Badge.js +1 -1
  7. package/dist/esm/Calendar.js +1 -1
  8. package/dist/esm/CalendarCard.js +1 -1
  9. package/dist/esm/CalendarItem.js +1 -1
  10. package/dist/esm/Cascader.js +1 -1
  11. package/dist/esm/ConfigProvider.js +2 -2
  12. package/dist/esm/CountDown.js +1 -1
  13. package/dist/esm/DatePicker.js +1 -1
  14. package/dist/esm/Dialog.js +1 -1
  15. package/dist/esm/Ellipsis.js +1 -1
  16. package/dist/esm/Empty.js +1 -1
  17. package/dist/esm/FixedNav.js +1 -1
  18. package/dist/esm/Grid.js +1 -1
  19. package/dist/esm/GridItem.js +1 -1
  20. package/dist/esm/InfiniteLoading.js +1 -1
  21. package/dist/esm/Input.js +1 -1
  22. package/dist/esm/NoticeBar.js +1 -1
  23. package/dist/esm/NumberKeyboard.js +1 -1
  24. package/dist/esm/Pagination.js +1 -1
  25. package/dist/esm/Picker.js +1 -1
  26. package/dist/esm/Popover.js +1 -1
  27. package/dist/esm/Progress.js +1 -1
  28. package/dist/esm/PullToRefresh.js +1 -1
  29. package/dist/esm/Range.js +1 -1
  30. package/dist/esm/SearchBar.js +1 -1
  31. package/dist/esm/ShortPassword.js +1 -1
  32. package/dist/esm/Signature.js +1 -1
  33. package/dist/esm/Tabbar.js +1 -1
  34. package/dist/esm/TabbarItem.js +1 -1
  35. package/dist/esm/Table.js +1 -1
  36. package/dist/esm/Tabs.js +1 -1
  37. package/dist/esm/TextArea.js +1 -1
  38. package/dist/esm/TimeSelect.js +1 -1
  39. package/dist/esm/Tour.js +1 -1
  40. package/dist/esm/Uploader.js +1 -1
  41. package/dist/esm/WaterMark.js +1 -1
  42. package/dist/esm/{address.taro-DErzR2nE.js → address.taro-CWr6jIYg.js} +2 -2
  43. package/dist/esm/{audio.taro-C8UEIiBR.js → audio.taro--yoX2oyx.js} +2 -2
  44. package/dist/esm/{avatarcropper.taro-Bmx6gexj.js → avatarcropper.taro-B0I9uLNp.js} +14 -5
  45. package/dist/esm/{backtop.taro-jWlJ1ZWG.js → backtop.taro-CpzSXDW3.js} +1 -1
  46. package/dist/esm/{badge.taro-BGaxpEYi.js → badge.taro-B42_7q8v.js} +1 -1
  47. package/dist/esm/{calendar.taro-CuPrPO_2.js → calendar.taro-Csq-7imv.js} +2 -2
  48. package/dist/esm/{calendarcard.taro-CbvCWF1k.js → calendarcard.taro-CvWyBqnr.js} +1 -1
  49. package/dist/esm/{calendaritem.taro-DbaK10II.js → calendaritem.taro-BOMJjsx9.js} +1 -1
  50. package/dist/esm/{cascader.taro-Cad_4Sqw.js → cascader.taro-DZ_oBTm0.js} +4 -2
  51. package/dist/esm/{configprovider.taro-DA4GDDFu.js → configprovider.taro-C3WyeHSO.js} +4 -0
  52. package/dist/esm/{countdown.taro-mKXeisK0.js → countdown.taro-Dyryl4pq.js} +0 -3
  53. package/dist/esm/{datepicker.taro-DjTr__43.js → datepicker.taro-DibmSueg.js} +2 -2
  54. package/dist/esm/{dialog.taro-CzGba5-2.js → dialog.taro-Bg730q8d.js} +1 -1
  55. package/dist/esm/{ellipsis.taro-Ba2Kokb7.js → ellipsis.taro-fvcP85Ir.js} +1 -1
  56. package/dist/esm/{empty.taro-CnwDznke.js → empty.taro-Dr4eSaDg.js} +0 -2
  57. package/dist/esm/{fixednav.taro-eCRdeuqJ.js → fixednav.taro-BodErnYy.js} +1 -1
  58. package/dist/esm/{grid.taro-ZJywVaVe.js → grid.taro-Bi-DXjbo.js} +1 -1
  59. package/dist/esm/{griditem.taro-CcWyYchl.js → griditem.taro-DMvds46i.js} +0 -2
  60. package/dist/esm/{infiniteloading.taro-TbcBB0Qr.js → infiniteloading.taro-DzIrZvc0.js} +1 -1
  61. package/dist/esm/{input.taro-DbAbbzIX.js → input.taro-CA9ZpM9a.js} +1 -1
  62. package/dist/esm/{noticebar.taro-CGUTg60Q.js → noticebar.taro-BjKDC7We.js} +1 -1
  63. package/dist/esm/{numberkeyboard.taro-B1LfptyA.js → numberkeyboard.taro-CIlStObb.js} +1 -1
  64. package/dist/esm/nutui-react.es.js +40 -40
  65. package/dist/esm/{pagination.taro-D0HOQwW2.js → pagination.taro-BSwytb0-.js} +1 -1
  66. package/dist/esm/{picker.taro-D9CKPl5K.js → picker.taro-mCnxpFCY.js} +1 -1
  67. package/dist/esm/{popover.taro-BvMcsCRf.js → popover.taro-BHcidbZG.js} +1 -1
  68. package/dist/esm/{progress.taro-De9-206U.js → progress.taro-CaIUT9Uo.js} +1 -1
  69. package/dist/esm/{pulltorefresh.taro-DSr2dBjM.js → pulltorefresh.taro-BiSDwLpA.js} +1 -1
  70. package/dist/esm/{range.taro-D_qsx_j6.js → range.taro-BilM3sMH.js} +1 -1
  71. package/dist/esm/{searchbar.taro-C8cg7NeJ.js → searchbar.taro-LaO2Xr2t.js} +1 -1
  72. package/dist/esm/{shortpassword.taro-DPmvilhN.js → shortpassword.taro-ByEtEDDl.js} +1 -1
  73. package/dist/esm/{signature.taro-zgwaJkIE.js → signature.taro-BW4eiGIR.js} +1 -1
  74. package/dist/esm/{tabbar.taro-CXk0zLdz.js → tabbar.taro-BiQDgZQF.js} +1 -1
  75. package/dist/esm/{tabbaritem.taro-BZNabTBp.js → tabbaritem.taro-BiIVucQz.js} +1 -1
  76. package/dist/esm/{table.taro-B6WCKTkO.js → table.taro-1nFkDxbh.js} +1 -1
  77. package/dist/esm/{tabs.taro-8X51sTol.js → tabs.taro-CJiI4q_-.js} +1 -1
  78. package/dist/esm/{textarea.taro-DuceTjAx.js → textarea.taro-EJQxRHZR.js} +1 -1
  79. package/dist/esm/{timeselect.taro-BqP2APht.js → timeselect.taro-DE_a87DT.js} +1 -1
  80. package/dist/esm/{tour.taro-XysJDnqf.js → tour.taro-BvBZa8nq.js} +1 -1
  81. package/dist/esm/{uploader.taro-Do8LZqUn.js → uploader.taro-C-8Jf7un.js} +4 -8
  82. package/dist/esm/{watermark.taro-CZ6R5FlJ.js → watermark.taro-CbO7mKFD.js} +1 -1
  83. package/dist/locales/base.d.ts +7 -0
  84. package/dist/locales/base.js +1 -1
  85. package/dist/locales/en-US.js +5 -1
  86. package/dist/locales/id-ID.js +5 -1
  87. package/dist/locales/tr-TR.js +5 -1
  88. package/dist/locales/zh-CN.js +5 -1
  89. package/dist/locales/zh-TW.js +5 -1
  90. package/dist/locales/zh-UG.js +5 -1
  91. package/dist/nutui.react.es.js +23 -19
  92. package/dist/nutui.react.umd.js +23 -19
  93. package/dist/types/index.d.ts +196 -196
  94. package/dist/types/locales/base.d.ts +7 -0
  95. package/dist/types/packages/searchbar/searchbar.d.ts +0 -14
  96. package/dist/types/packages/searchbar/searchbar.taro.d.ts +14 -14
  97. package/dist/types/packages/uploader/uploader.taro.d.ts +0 -3
  98. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,15 +1,23 @@
1
- # v2.6.19
2
- `2024-09-13`
1
+ # v2.6.20
2
+ `2024-09-20`
3
+
4
+
5
+ * :bug: fix: i18n (#2597)
6
+ * :bug: fix: 类型构建错误 (#2605)
7
+ * 🏡 chore: replace local prettier plugin with npm package (#2603)
3
8
 
4
9
 
5
- * 🏡 chore(deps): update dependency vite-plugin-dts to v4 (#2533)
6
- * :bug: fix(cascader): 受控状态下 value 变化时同步组件选中状态 (#2591)
7
- * :bug: fix: 移除不必要的 fragment 元素 (#2587)
8
- * :bug: fix(datepicker): show zero on page (#2582)
9
- * :bug: fix: findDomNode from transition (#2525)
10
- * :bug: fix(props): add mergeProps utility to resolve all defaultProps warnings (#2581)
11
- * 🪵 refactor: resolve sass nested rules warning (#2579)
10
+ # v2.6.19
11
+
12
+ `2024-09-13`
12
13
 
14
+ - 🏡 chore(deps): update dependency vite-plugin-dts to v4 (#2533)
15
+ - :bug: fix(cascader): 受控状态下 value 变化时同步组件选中状态 (#2591)
16
+ - :bug: fix: 移除不必要的 fragment 元素 (#2587)
17
+ - :bug: fix(datepicker): show zero on page (#2582)
18
+ - :bug: fix: findDomNode from transition (#2525)
19
+ - :bug: fix(props): add mergeProps utility to resolve all defaultProps warnings (#2581)
20
+ - 🪵 refactor: resolve sass nested rules warning (#2579)
13
21
 
14
22
  # v2.6.18
15
23
 
@@ -1,4 +1,4 @@
1
- import { A as Address } from "./address.taro-DErzR2nE.js";
1
+ import { A as Address } from "./address.taro-CWr6jIYg.js";
2
2
  export {
3
3
  Address as default
4
4
  };
package/dist/esm/Audio.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Audio } from "./audio.taro-C8UEIiBR.js";
1
+ import { A as Audio } from "./audio.taro--yoX2oyx.js";
2
2
  export {
3
3
  Audio as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { A as AvatarCropper } from "./avatarcropper.taro-Bmx6gexj.js";
1
+ import { A as AvatarCropper } from "./avatarcropper.taro-B0I9uLNp.js";
2
2
  export {
3
3
  AvatarCropper as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as BackTop } from "./backtop.taro-jWlJ1ZWG.js";
1
+ import { B as BackTop } from "./backtop.taro-CpzSXDW3.js";
2
2
  export {
3
3
  BackTop as default
4
4
  };
package/dist/esm/Badge.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as Badge } from "./badge.taro-BGaxpEYi.js";
1
+ import { B as Badge } from "./badge.taro-B42_7q8v.js";
2
2
  export {
3
3
  Badge as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as Calendar } from "./calendar.taro-CuPrPO_2.js";
1
+ import { C as Calendar } from "./calendar.taro-Csq-7imv.js";
2
2
  export {
3
3
  Calendar as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as CalendarCard } from "./calendarcard.taro-CbvCWF1k.js";
1
+ import { C as CalendarCard } from "./calendarcard.taro-CvWyBqnr.js";
2
2
  export {
3
3
  CalendarCard as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as CalendarItem } from "./calendaritem.taro-DbaK10II.js";
1
+ import { C as CalendarItem } from "./calendaritem.taro-BOMJjsx9.js";
2
2
  export {
3
3
  CalendarItem as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as Cascader } from "./cascader.taro-Cad_4Sqw.js";
1
+ import { C as Cascader } from "./cascader.taro-DZ_oBTm0.js";
2
2
  export {
3
3
  Cascader as default
4
4
  };
@@ -1,5 +1,5 @@
1
- import { C as ConfigProvider } from "./configprovider.taro-DA4GDDFu.js";
2
- import { g, s, u, a } from "./configprovider.taro-DA4GDDFu.js";
1
+ import { C as ConfigProvider } from "./configprovider.taro-C3WyeHSO.js";
2
+ import { g, s, u, a } from "./configprovider.taro-C3WyeHSO.js";
3
3
  export {
4
4
  ConfigProvider as default,
5
5
  g as getDefaultConfig,
@@ -1,4 +1,4 @@
1
- import { C as CountDown } from "./countdown.taro-mKXeisK0.js";
1
+ import { C as CountDown } from "./countdown.taro-Dyryl4pq.js";
2
2
  export {
3
3
  CountDown as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { D as DatePicker } from "./datepicker.taro-DjTr__43.js";
1
+ import { D as DatePicker } from "./datepicker.taro-DibmSueg.js";
2
2
  export {
3
3
  DatePicker as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDialog } from "./dialog.taro-CzGba5-2.js";
1
+ import { B as BaseDialog } from "./dialog.taro-Bg730q8d.js";
2
2
  export {
3
3
  BaseDialog as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { E as Ellipsis } from "./ellipsis.taro-Ba2Kokb7.js";
1
+ import { E as Ellipsis } from "./ellipsis.taro-fvcP85Ir.js";
2
2
  export {
3
3
  Ellipsis as default
4
4
  };
package/dist/esm/Empty.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as Empty } from "./empty.taro-CnwDznke.js";
1
+ import { E as Empty } from "./empty.taro-Dr4eSaDg.js";
2
2
  export {
3
3
  Empty as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { F as FixedNav } from "./fixednav.taro-eCRdeuqJ.js";
1
+ import { F as FixedNav } from "./fixednav.taro-BodErnYy.js";
2
2
  export {
3
3
  FixedNav as default
4
4
  };
package/dist/esm/Grid.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Grid } from "./grid.taro-ZJywVaVe.js";
1
+ import { G as Grid } from "./grid.taro-Bi-DXjbo.js";
2
2
  export {
3
3
  Grid as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { G as GridItem } from "./griditem.taro-CcWyYchl.js";
1
+ import { G as GridItem } from "./griditem.taro-DMvds46i.js";
2
2
  export {
3
3
  GridItem as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { I as InfiniteLoading } from "./infiniteloading.taro-TbcBB0Qr.js";
1
+ import { I as InfiniteLoading } from "./infiniteloading.taro-DzIrZvc0.js";
2
2
  export {
3
3
  InfiniteLoading as default
4
4
  };
package/dist/esm/Input.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as Input } from "./input.taro-DbAbbzIX.js";
1
+ import { I as Input } from "./input.taro-CA9ZpM9a.js";
2
2
  export {
3
3
  Input as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { N as NoticeBar } from "./noticebar.taro-CGUTg60Q.js";
1
+ import { N as NoticeBar } from "./noticebar.taro-BjKDC7We.js";
2
2
  export {
3
3
  NoticeBar as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { N as NumberKeyboard } from "./numberkeyboard.taro-B1LfptyA.js";
1
+ import { N as NumberKeyboard } from "./numberkeyboard.taro-CIlStObb.js";
2
2
  export {
3
3
  NumberKeyboard as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as Pagination } from "./pagination.taro-D0HOQwW2.js";
1
+ import { P as Pagination } from "./pagination.taro-BSwytb0-.js";
2
2
  export {
3
3
  Pagination as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as Picker } from "./picker.taro-D9CKPl5K.js";
1
+ import { P as Picker } from "./picker.taro-mCnxpFCY.js";
2
2
  export {
3
3
  Picker as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as Popover } from "./popover.taro-BvMcsCRf.js";
1
+ import { P as Popover } from "./popover.taro-BHcidbZG.js";
2
2
  export {
3
3
  Popover as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as Progress } from "./progress.taro-De9-206U.js";
1
+ import { P as Progress } from "./progress.taro-CaIUT9Uo.js";
2
2
  export {
3
3
  Progress as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as PullToRefresh } from "./pulltorefresh.taro-DSr2dBjM.js";
1
+ import { P as PullToRefresh } from "./pulltorefresh.taro-BiSDwLpA.js";
2
2
  export {
3
3
  PullToRefresh as default
4
4
  };
package/dist/esm/Range.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as Range } from "./range.taro-D_qsx_j6.js";
1
+ import { R as Range } from "./range.taro-BilM3sMH.js";
2
2
  export {
3
3
  Range as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as SearchBar } from "./searchbar.taro-C8cg7NeJ.js";
1
+ import { S as SearchBar } from "./searchbar.taro-LaO2Xr2t.js";
2
2
  export {
3
3
  SearchBar as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as ShortPassword } from "./shortpassword.taro-DPmvilhN.js";
1
+ import { S as ShortPassword } from "./shortpassword.taro-ByEtEDDl.js";
2
2
  export {
3
3
  ShortPassword as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as Signature } from "./signature.taro-zgwaJkIE.js";
1
+ import { S as Signature } from "./signature.taro-BW4eiGIR.js";
2
2
  export {
3
3
  Signature as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as Tabbar } from "./tabbar.taro-CXk0zLdz.js";
1
+ import { T as Tabbar } from "./tabbar.taro-BiQDgZQF.js";
2
2
  export {
3
3
  Tabbar as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as TabbarItem } from "./tabbaritem.taro-BZNabTBp.js";
1
+ import { T as TabbarItem } from "./tabbaritem.taro-BiIVucQz.js";
2
2
  export {
3
3
  TabbarItem as default
4
4
  };
package/dist/esm/Table.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as Table } from "./table.taro-B6WCKTkO.js";
1
+ import { T as Table } from "./table.taro-1nFkDxbh.js";
2
2
  export {
3
3
  Table as default
4
4
  };
package/dist/esm/Tabs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as Tabs } from "./tabs.taro-8X51sTol.js";
1
+ import { T as Tabs } from "./tabs.taro-CJiI4q_-.js";
2
2
  export {
3
3
  Tabs as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as TextArea } from "./textarea.taro-DuceTjAx.js";
1
+ import { T as TextArea } from "./textarea.taro-EJQxRHZR.js";
2
2
  export {
3
3
  TextArea as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as TimeSelect } from "./timeselect.taro-BqP2APht.js";
1
+ import { T as TimeSelect } from "./timeselect.taro-DE_a87DT.js";
2
2
  export {
3
3
  TimeSelect as default
4
4
  };
package/dist/esm/Tour.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as Tour } from "./tour.taro-XysJDnqf.js";
1
+ import { T as Tour } from "./tour.taro-BvBZa8nq.js";
2
2
  export {
3
3
  Tour as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { U as Uploader } from "./uploader.taro-Do8LZqUn.js";
1
+ import { U as Uploader } from "./uploader.taro-C-8Jf7un.js";
2
2
  export {
3
3
  Uploader as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { W as WaterMark } from "./watermark.taro-CZ6R5FlJ.js";
1
+ import { W as WaterMark } from "./watermark.taro-CbO7mKFD.js";
2
2
  export {
3
3
  WaterMark as default
4
4
  };
@@ -3,8 +3,8 @@ import React__default, { forwardRef, useState, useImperativeHandle } from "react
3
3
  import { Check, Location, ArrowLeft } from "@nutui/icons-react-taro";
4
4
  import { P as Popup } from "./popup.taro-DV32k5dP.js";
5
5
  import { ScrollView } from "@tarojs/components";
6
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
7
- import { C as Cascader } from "./cascader.taro-Cad_4Sqw.js";
6
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
7
+ import { C as Cascader } from "./cascader.taro-DZ_oBTm0.js";
8
8
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
9
9
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
10
10
  const defaultProps$2 = {
@@ -2,9 +2,9 @@ import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
2
2
  import React__default, { useState, useRef } from "react";
3
3
  import { createInnerAudioContext } from "@tarojs/taro";
4
4
  import { Service } from "@nutui/icons-react-taro";
5
- import { R as Range } from "./range.taro-D_qsx_j6.js";
5
+ import { R as Range } from "./range.taro-BilM3sMH.js";
6
6
  import { B as Button } from "./button.taro-1kEru6r9.js";
7
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
7
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
8
8
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
9
9
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { className: "", url: "", style: {}, autoplay: false, loop: false, type: "progress", onFastBack: (ctx) => {
10
10
  }, onForward: (ctx) => {
@@ -4,17 +4,26 @@ import Taro, { useReady, createSelectorQuery } from "@tarojs/taro";
4
4
  import classNames from "classnames";
5
5
  import { Canvas } from "@tarojs/components";
6
6
  import { B as Button } from "./button.taro-1kEru6r9.js";
7
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
7
8
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
8
9
  import { u as useTouch } from "./use-touch-BeiLHDO9.js";
9
10
  import { p as preventDefault, c as clamp } from "./index-DeNfBlua.js";
10
11
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { maxZoom: 3, space: 10, toolbar: [
11
- React__default.createElement(Button, { type: "danger", key: "cancel" }, "取消"),
12
- React__default.createElement(Button, { key: "reset" }, "重置"),
13
- React__default.createElement(Button, { key: "rotate" }, "旋转"),
14
- React__default.createElement(Button, { type: "success", key: "confirm" }, "确认")
15
- ], toolbarPosition: "bottom", editText: "编辑", sizeType: ["original", "compressed"], sourceType: ["album", "camera"], shape: "square" });
12
+ React__default.createElement(Button, { type: "danger", key: "cancel" }, "Cancel"),
13
+ React__default.createElement(Button, { key: "reset" }, "Reset"),
14
+ React__default.createElement(Button, { key: "rotate" }, "Rotate"),
15
+ React__default.createElement(Button, { type: "success", key: "confirm" }, "Confirm")
16
+ ], toolbarPosition: "bottom", editText: "Edit", sizeType: ["original", "compressed"], sourceType: ["album", "camera"], shape: "square" });
16
17
  const classPrefix = `nut-avatar-cropper`;
17
18
  const AvatarCropper = (props) => {
19
+ const { locale } = useConfig();
20
+ defaultProps.toolbar = [
21
+ React__default.createElement(Button, { type: "danger", key: "cancel" }, locale.cancel),
22
+ React__default.createElement(Button, { key: "reset" }, locale.reset),
23
+ React__default.createElement(Button, { key: "rotate" }, locale.avatarCropper.rotate),
24
+ React__default.createElement(Button, { type: "success", key: "confirm" }, locale.confirm)
25
+ ];
26
+ defaultProps.editText = locale.edit;
18
27
  const _a = Object.assign(Object.assign({}, defaultProps), props), { children, toolbar, maxZoom, space, toolbarPosition, editText, sizeType, sourceType, shape, className, style, onConfirm, onCancel } = _a, rest = __rest(_a, ["children", "toolbar", "maxZoom", "space", "toolbarPosition", "editText", "sizeType", "sourceType", "shape", "className", "style", "onConfirm", "onCancel"]);
19
28
  const cls = classNames(classPrefix, "taro", className, shape === "round" && "round");
20
29
  const toolbarPositionCls = classNames(`${classPrefix}-popup-toolbar`, toolbarPosition);
@@ -3,7 +3,7 @@ import { usePageScroll, pageScrollTo } from "@tarojs/taro";
3
3
  import { Top } from "@nutui/icons-react-taro";
4
4
  import classNames from "classnames";
5
5
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
- import { a as useRtl } from "./configprovider.taro-DA4GDDFu.js";
6
+ import { a as useRtl } from "./configprovider.taro-C3WyeHSO.js";
7
7
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { threshold: 200, zIndex: 900, duration: 1e3 });
8
8
  const BackTop = (props) => {
9
9
  const rtl = useRtl();
@@ -1,7 +1,7 @@
1
1
  import React__default from "react";
2
2
  import classNames from "classnames";
3
3
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
4
- import { a as useRtl } from "./configprovider.taro-DA4GDDFu.js";
4
+ import { a as useRtl } from "./configprovider.taro-C3WyeHSO.js";
5
5
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { value: "", dot: false, max: 99, top: "4", right: "8", color: "", fill: "solid" });
6
6
  const Badge = (props) => {
7
7
  var _a;
@@ -1,8 +1,8 @@
1
1
  import React__default, { useRef } from "react";
2
2
  import { P as Popup } from "./popup.taro-DV32k5dP.js";
3
- import { C as CalendarItem } from "./calendaritem.taro-DbaK10II.js";
3
+ import { C as CalendarItem } from "./calendaritem.taro-BOMJjsx9.js";
4
4
  import { U as Utils } from "./date-CYwRNlGq.js";
5
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
5
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
6
6
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
7
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "single", autoBackfill: false, popup: true, visible: false, title: "", defaultValue: "", startDate: Utils.getDay(0), endDate: Utils.getDay(365), showToday: true, startText: "", endText: "", confirmText: "", showTitle: true, showSubTitle: true, scrollAnimation: true, firstDayOfWeek: 0, disableDate: (date) => false, renderHeaderButtons: void 0, renderDay: void 0, renderDayTop: void 0, renderDayBottom: void 0, onClose: () => {
8
8
  }, onConfirm: (param) => {
@@ -3,7 +3,7 @@ import classNames from "classnames";
3
3
  import { View } from "@tarojs/components";
4
4
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
5
  import { U as Utils } from "./date-CYwRNlGq.js";
6
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
6
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
7
7
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
8
8
  const left = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNNi42MDUgOS40OWEuNzcxLjc3MSAwIDAgMSAwLS45OGwzLjYtNC4zNzJhLjc3MS43NzEgMCAwIDEgMS4xOS45ODFMOC4yIDlsMy4xOTcgMy44ODFhLjc3MS43NzEgMCAxIDEtMS4xOTEuOThsLTMuNi00LjM3eiIvPjwvc3ZnPg==";
9
9
  const right = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTEuMzk2IDkuNDlhLjc3MS43NzEgMCAwIDAgMC0uOThsLTMuNi00LjM3MmEuNzcxLjc3MSAwIDAgMC0xLjE5MS45ODFMOS44IDlsLTMuMTk2IDMuODgxYS43NzEuNzcxIDAgMCAwIDEuMTkuOThsMy42LTQuMzd6Ii8+PC9zdmc+";
@@ -5,7 +5,7 @@ import Taro, { nextTick } from "@tarojs/taro";
5
5
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
6
  import { U as Utils, g as getPreMonthDates, a as getDaysStatus, b as getCurrMonthData } from "./date-CYwRNlGq.js";
7
7
  import { r as requestAniFrame } from "./raf-zwv-SBjP.js";
8
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
8
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
9
9
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
10
10
  const splitDate = (date) => {
11
11
  const split = date.indexOf("-") !== -1 ? "-" : "/";
@@ -4,9 +4,10 @@ import classNames from "classnames";
4
4
  import { Loading, Checklist } from "@nutui/icons-react-taro";
5
5
  import { ScrollView } from "@tarojs/components";
6
6
  import { P as Popup } from "./popup.taro-DV32k5dP.js";
7
- import { T as Tabs } from "./tabs.taro-8X51sTol.js";
7
+ import { T as Tabs } from "./tabs.taro-CJiI4q_-.js";
8
8
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
9
9
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
10
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
10
11
  const formatTree = (tree, parent, config) => tree.map((node) => {
11
12
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
12
13
  const _a = node, _b = valueKey, value = _a[_b], _c = textKey, text = _a[_c], _d = childrenKey, children = _a[_d], others = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", typeof _d === "symbol" ? _d : _d + ""]);
@@ -125,6 +126,7 @@ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activ
125
126
  }, onPathChange: () => {
126
127
  } });
127
128
  const InternalCascader = (props, ref) => {
129
+ const { locale } = useConfig();
128
130
  const { className, style, activeColor, activeIcon, popup, popupProps = {}, visible, options, value, defaultValue, optionKey, format, closeable, closeIconPosition, closeIcon, lazy, title, left, onLoad, onClose, onChange, onPathChange } = Object.assign(Object.assign({}, defaultProps), props);
129
131
  const [tabvalue, setTabvalue] = useState("c1");
130
132
  const [optionsData, setOptionsData] = useState([]);
@@ -380,7 +382,7 @@ const InternalCascader = (props, ref) => {
380
382
  "span",
381
383
  { className: "nut-tabs-titles-item-text" },
382
384
  !state.initLoading && state.panes.length && ((_a = pane === null || pane === void 0 ? void 0 : pane.selectedNode) === null || _a === void 0 ? void 0 : _a.text),
383
- !state.initLoading && state.panes.length && !((_b = pane === null || pane === void 0 ? void 0 : pane.selectedNode) === null || _b === void 0 ? void 0 : _b.text) && "请选择",
385
+ !state.initLoading && state.panes.length && !((_b = pane === null || pane === void 0 ? void 0 : pane.selectedNode) === null || _b === void 0 ? void 0 : _b.text) && `${locale.select}`,
384
386
  !(!state.initLoading && state.panes.length) && "Loading..."
385
387
  ),
386
388
  React__default.createElement("span", { className: "nut-tabs-titles-item-line" })
@@ -20,6 +20,8 @@ const zhCN = {
20
20
  noData: "暂无数据",
21
21
  placeholder: "请输入内容",
22
22
  select: "请选择",
23
+ edit: "编辑",
24
+ reset: "重置",
23
25
  video: {
24
26
  errorTip: "视频加载失败",
25
27
  clickRetry: "点击重试"
@@ -57,6 +59,7 @@ const zhCN = {
57
59
  tips: "忘记密码"
58
60
  },
59
61
  uploader: {
62
+ list: "上传文件",
60
63
  ready: "准备完成",
61
64
  readyUpload: "准备上传",
62
65
  waitingUpload: "等待上传",
@@ -123,6 +126,7 @@ const zhCN = {
123
126
  mute: "静音",
124
127
  tips: "onPlayEnd事件在loop=false时才会触发"
125
128
  },
129
+ avatarCropper: { rotate: "旋转", selectImage: "选择图片" },
126
130
  datepicker: {
127
131
  year: "年",
128
132
  month: "月",
@@ -1,11 +1,9 @@
1
1
  import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
2
2
  import React__default, { useState, useRef, useImperativeHandle, useEffect } from "react";
3
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
4
3
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
4
  import { p as padZero } from "./pad-zero-B2OUQfh7.js";
6
5
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { paused: false, startTime: Date.now(), endTime: Date.now(), remainingTime: 0, millisecond: false, format: "HH:mm:ss", autoStart: true, time: 0, destroy: false });
7
6
  const InternalCountDown = (props, ref) => {
8
- useConfig();
9
7
  const _a = Object.assign(Object.assign({}, defaultProps), props), { paused, startTime, endTime, remainingTime, millisecond, format, autoStart, time, destroy, className, style, onEnd, onPaused, onRestart, onUpdate, children } = _a, rest = __rest(_a, ["paused", "startTime", "endTime", "remainingTime", "millisecond", "format", "autoStart", "time", "destroy", "className", "style", "onEnd", "onPaused", "onRestart", "onUpdate", "children"]);
10
8
  const classPrefix = "nut-countdown";
11
9
  const [restTimeStamp, setRestTime] = useState(0);
@@ -16,7 +14,6 @@ const InternalCountDown = (props, ref) => {
16
14
  isIninted: false,
17
15
  timer: 0,
18
16
  restTime: 0,
19
- // 倒计时剩余时间时间
20
17
  counting: !paused && autoStart,
21
18
  // 是否处于倒计时中
22
19
  handleEndTime: Date.now(),
@@ -1,8 +1,8 @@
1
1
  import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
2
2
  import React__default, { useState, useEffect } from "react";
3
3
  import { View } from "@tarojs/components";
4
- import { P as Picker } from "./picker.taro-D9CKPl5K.js";
5
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
4
+ import { P as Picker } from "./picker.taro-mCnxpFCY.js";
5
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
6
6
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
7
7
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
8
8
  import { p as padZero } from "./pad-zero-B2OUQfh7.js";
@@ -5,7 +5,7 @@ import { CSSTransition } from "react-transition-group";
5
5
  import { View } from "@tarojs/components";
6
6
  import { Close } from "@nutui/icons-react-taro";
7
7
  import { B as Button } from "./button.taro-1kEru6r9.js";
8
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
8
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
9
9
  import { u as useLockScrollTaro, O as Overlay } from "./overlay.taro-C8eXSsJH.js";
10
10
  import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-DuP4onEm.js";
11
11
  import { m as mergeProps } from "./merge-props-2rRqFlJz.js";
@@ -5,7 +5,7 @@ import classNames from "classnames";
5
5
  import { View } from "@tarojs/components";
6
6
  import { g as getRectByTaro } from "./get-rect-by-taro-THaHH07X.js";
7
7
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
8
- import { a as useRtl } from "./configprovider.taro-DA4GDDFu.js";
8
+ import { a as useRtl } from "./configprovider.taro-C3WyeHSO.js";
9
9
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { content: "", direction: "end", rows: 1, expandText: "", collapseText: "", symbol: "...", lineHeight: "20", width: "auto" });
10
10
  const classPrefix = `nut-ellipsis`;
11
11
  const Ellipsis = (props) => {
@@ -1,7 +1,6 @@
1
1
  import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
2
2
  import React__default, { useState, useEffect } from "react";
3
3
  import classNames from "classnames";
4
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
5
4
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
6
5
  import { B as Button } from "./button.taro-1kEru6r9.js";
7
6
  const defaultStatus = {
@@ -12,7 +11,6 @@ const defaultStatus = {
12
11
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { title: "", description: "", imageSize: "", size: "base", status: "empty", actions: [] });
13
12
  const classPrefix = `nut-empty`;
14
13
  const Empty = (props) => {
15
- useConfig();
16
14
  const _a = Object.assign(Object.assign({}, defaultProps), props), { image, imageSize, title, description, children, className, size, status, actions } = _a, rest = __rest(_a, ["image", "imageSize", "title", "description", "children", "className", "size", "status", "actions"]);
17
15
  const [imgStyle, setImgStyle] = useState({});
18
16
  const imageUrl = image || defaultStatus[status];
@@ -3,7 +3,7 @@ import React__default from "react";
3
3
  import classNames from "classnames";
4
4
  import { ArrowLeft } from "@nutui/icons-react-taro";
5
5
  import { O as Overlay } from "./overlay.taro-C8eXSsJH.js";
6
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
6
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
7
7
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
8
8
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activeText: "", inactiveText: "", type: "right", position: {
9
9
  top: "auto",
@@ -1,7 +1,7 @@
1
1
  import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
2
2
  import React__default from "react";
3
3
  import classNames from "classnames";
4
- import { a as GridContext, G as GridItem } from "./griditem.taro-CcWyYchl.js";
4
+ import { a as GridContext, G as GridItem } from "./griditem.taro-DMvds46i.js";
5
5
  import { p as pxCheck } from "./px-check-D1Xbd9pj.js";
6
6
  const defaultProps = {
7
7
  columns: 4,
@@ -1,7 +1,6 @@
1
1
  import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
2
2
  import React__default, { useContext } from "react";
3
3
  import classNames from "classnames";
4
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
5
4
  import { p as pxCheck } from "./px-check-D1Xbd9pj.js";
6
5
  const gridContext = {
7
6
  onClick: (item, index) => {
@@ -18,7 +17,6 @@ const defaultProps = {
18
17
  direction: "vertical"
19
18
  };
20
19
  const GridItem = (props) => {
21
- useConfig();
22
20
  const _a = Object.assign(Object.assign({}, defaultProps), props), { children, style, columns, index, gap, square, text, center, reverse, direction, className, onClick } = _a, rest = __rest(_a, ["children", "style", "columns", "index", "gap", "square", "text", "center", "reverse", "direction", "className", "onClick"]);
23
21
  const classPrefix = "nut-grid-item";
24
22
  const classes = classNames(classPrefix, className);
@@ -3,7 +3,7 @@ import React__default, { useState, useRef, useEffect } from "react";
3
3
  import classNames from "classnames";
4
4
  import { ScrollView } from "@tarojs/components";
5
5
  import { createSelectorQuery } from "@tarojs/taro";
6
- import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
6
+ import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
7
7
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
8
8
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "default", hasMore: true, threshold: 40, target: "", pullRefresh: false });
9
9
  const classPrefix = `nut-infiniteloading`;