@nutui/nutui-react-taro 3.1.0-beta.1 → 4.0.0-beta.2

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 (258) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/locales/base.d.ts +6 -0
  3. package/dist/cjs/locales/en-US.js +17 -1
  4. package/dist/cjs/locales/id-ID.js +17 -1
  5. package/dist/cjs/locales/ja-JP.js +16 -2
  6. package/dist/cjs/locales/tr-TR.js +17 -1
  7. package/dist/cjs/locales/vi-VN.js +17 -1
  8. package/dist/cjs/locales/zh-CN.js +15 -1
  9. package/dist/cjs/locales/zh-TW.js +15 -1
  10. package/dist/cjs/locales/zh-UG.js +17 -1
  11. package/dist/cjs/packages/address/existRender.js +1 -1
  12. package/dist/cjs/packages/address/style/style.css +2 -2
  13. package/dist/cjs/packages/address/style/style.harmony.css +6 -6
  14. package/dist/cjs/packages/audio/audio.js +2 -2
  15. package/dist/cjs/packages/audio/style/style.harmony.css +295 -50
  16. package/dist/cjs/packages/button/button.js +38 -9
  17. package/dist/cjs/packages/button/style/button.scss +327 -227
  18. package/dist/cjs/packages/button/style/style.css +292 -47
  19. package/dist/cjs/packages/button/style/style.harmony.css +292 -47
  20. package/dist/cjs/packages/button/style-jmapp/button.scss +327 -227
  21. package/dist/cjs/packages/button/style-jmapp/style.css +268 -23
  22. package/dist/cjs/packages/button/style-jrkf/button.scss +327 -227
  23. package/dist/cjs/packages/button/style-jrkf/style.css +268 -23
  24. package/dist/cjs/packages/calendar/style/style.css +2 -2
  25. package/dist/cjs/packages/calendar/style/style.harmony.css +2 -2
  26. package/dist/cjs/packages/calendarcard/style/style.css +1 -1
  27. package/dist/cjs/packages/calendarcard/style/style.harmony.css +1 -1
  28. package/dist/cjs/packages/card/style/style.harmony.css +2 -2
  29. package/dist/cjs/packages/cascader/cascader.js +1 -1
  30. package/dist/cjs/packages/cascader/style/style.harmony.css +2 -2
  31. package/dist/cjs/packages/checkbox/checkbox.js +4 -3
  32. package/dist/cjs/packages/checkbox/style/checkbox.scss +19 -3
  33. package/dist/cjs/packages/checkbox/style/style.css +21 -6
  34. package/dist/cjs/packages/checkbox/style/style.harmony.css +23 -8
  35. package/dist/cjs/packages/checkbox/style-jmapp/checkbox.scss +19 -3
  36. package/dist/cjs/packages/checkbox/style-jmapp/style.css +18 -3
  37. package/dist/cjs/packages/checkbox/style-jrkf/checkbox.scss +19 -3
  38. package/dist/cjs/packages/checkbox/style-jrkf/style.css +18 -3
  39. package/dist/cjs/packages/checkboxgroup/style/style.css +2 -2
  40. package/dist/cjs/packages/checkboxgroup/style/style.harmony.css +2 -2
  41. package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
  42. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  43. package/dist/cjs/packages/countdown/style/style.css +1 -1
  44. package/dist/cjs/packages/countdown/style/style.harmony.css +1 -1
  45. package/dist/cjs/packages/datepicker/datepicker.js +3 -5
  46. package/dist/cjs/packages/datepicker/utils.js +7 -0
  47. package/dist/cjs/packages/dialog/style/style.harmony.css +292 -47
  48. package/dist/cjs/packages/elevator/style/elevator.scss +6 -2
  49. package/dist/cjs/packages/elevator/style/style.css +2 -2
  50. package/dist/cjs/packages/elevator/style/style.harmony.css +2 -2
  51. package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +6 -2
  52. package/dist/cjs/packages/elevator/style-jmapp/style.css +2 -2
  53. package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +6 -2
  54. package/dist/cjs/packages/elevator/style-jrkf/style.css +2 -2
  55. package/dist/cjs/packages/ellipsis/style/style.css +1 -1
  56. package/dist/cjs/packages/ellipsis/style/style.harmony.css +1 -1
  57. package/dist/cjs/packages/empty/style/style.harmony.css +292 -47
  58. package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +1 -1
  59. package/dist/cjs/packages/inputnumber/inputnumber.js +5 -1
  60. package/dist/cjs/packages/inputnumber/style/inputnumber.scss +11 -5
  61. package/dist/cjs/packages/inputnumber/style/style.css +16 -11
  62. package/dist/cjs/packages/inputnumber/style/style.harmony.css +16 -11
  63. package/dist/cjs/packages/inputnumber/style-jmapp/inputnumber.scss +11 -5
  64. package/dist/cjs/packages/inputnumber/style-jmapp/style.css +10 -5
  65. package/dist/cjs/packages/inputnumber/style-jrkf/inputnumber.scss +11 -5
  66. package/dist/cjs/packages/inputnumber/style-jrkf/style.css +10 -5
  67. package/dist/cjs/packages/pagination/pagination.js +2 -2
  68. package/dist/cjs/packages/price/price.js +15 -4
  69. package/dist/cjs/packages/progress/progress.js +2 -2
  70. package/dist/cjs/packages/radio/radio.js +3 -2
  71. package/dist/cjs/packages/radio/style/radio.scss +9 -3
  72. package/dist/cjs/packages/radio/style/style.css +10 -5
  73. package/dist/cjs/packages/radio/style/style.harmony.css +12 -7
  74. package/dist/cjs/packages/radio/style-jmapp/radio.scss +9 -3
  75. package/dist/cjs/packages/radio/style-jmapp/style.css +8 -3
  76. package/dist/cjs/packages/radio/style-jrkf/radio.scss +9 -3
  77. package/dist/cjs/packages/radio/style-jrkf/style.css +8 -3
  78. package/dist/cjs/packages/radiogroup/style/style.css +2 -2
  79. package/dist/cjs/packages/radiogroup/style/style.harmony.css +2 -2
  80. package/dist/cjs/packages/range/style/style.css +3 -3
  81. package/dist/cjs/packages/range/style/style.harmony.css +3 -3
  82. package/dist/cjs/packages/resultpage/resultpage.js +5 -5
  83. package/dist/cjs/packages/resultpage/style/style.harmony.css +292 -47
  84. package/dist/cjs/packages/searchbar/style/searchbar.scss +5 -5
  85. package/dist/cjs/packages/searchbar/style/style.css +5 -5
  86. package/dist/cjs/packages/searchbar/style/style.harmony.css +5 -5
  87. package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +5 -5
  88. package/dist/cjs/packages/searchbar/style-jmapp/style.css +5 -5
  89. package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +5 -5
  90. package/dist/cjs/packages/searchbar/style-jrkf/style.css +5 -5
  91. package/dist/cjs/packages/signature/signature.js +1 -1
  92. package/dist/cjs/packages/steps/style/style.css +2 -2
  93. package/dist/cjs/packages/steps/style/style.harmony.css +2 -2
  94. package/dist/cjs/packages/swipe/swipe.js +2 -2
  95. package/dist/cjs/packages/switch/style/style.css +2 -2
  96. package/dist/cjs/packages/switch/style/style.harmony.css +2 -2
  97. package/dist/cjs/packages/tabs/style/style.css +2 -2
  98. package/dist/cjs/packages/tabs/style/style.harmony.css +2 -2
  99. package/dist/cjs/packages/tag/style/style.css +2 -2
  100. package/dist/cjs/packages/tag/style/style.harmony.css +2 -2
  101. package/dist/cjs/packages/timedetail/style/style.css +1 -1
  102. package/dist/cjs/packages/timedetail/style/style.harmony.css +1 -1
  103. package/dist/cjs/packages/timeselect/style/style.harmony.css +1 -1
  104. package/dist/cjs/packages/toast/style/style.css +18 -15
  105. package/dist/cjs/packages/toast/style/style.harmony.css +18 -15
  106. package/dist/cjs/packages/toast/style/toast.scss +23 -16
  107. package/dist/cjs/packages/toast/style-jmapp/style.css +17 -14
  108. package/dist/cjs/packages/toast/style-jmapp/toast.scss +23 -16
  109. package/dist/cjs/packages/toast/style-jrkf/style.css +17 -14
  110. package/dist/cjs/packages/toast/style-jrkf/toast.scss +23 -16
  111. package/dist/cjs/packages/toast/toast.js +2 -3
  112. package/dist/cjs/types/base/atoms.d.ts +3 -3
  113. package/dist/cjs/types/spec/button/base.d.ts +1 -0
  114. package/dist/cjs/utils/scale-f.d.ts +0 -17
  115. package/dist/cjs/utils/scale-f.js +14 -105
  116. package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
  117. package/dist/cjs/utils/taro/get-system-info.js +2 -7
  118. package/dist/es/hooks/taro/use-custom-event.js +1 -0
  119. package/dist/es/locales/base.d.ts +6 -0
  120. package/dist/es/locales/en-US.js +17 -1
  121. package/dist/es/locales/id-ID.js +17 -1
  122. package/dist/es/locales/ja-JP.js +16 -2
  123. package/dist/es/locales/tr-TR.js +17 -1
  124. package/dist/es/locales/vi-VN.js +17 -1
  125. package/dist/es/locales/zh-CN.js +15 -1
  126. package/dist/es/locales/zh-TW.js +15 -1
  127. package/dist/es/locales/zh-UG.js +17 -1
  128. package/dist/es/packages/address/existRender.js +1 -1
  129. package/dist/es/packages/address/style/style.css +2 -2
  130. package/dist/es/packages/address/style/style.harmony.css +6 -6
  131. package/dist/es/packages/audio/audio.js +2 -2
  132. package/dist/es/packages/audio/style/style.harmony.css +295 -50
  133. package/dist/es/packages/button/button.js +37 -8
  134. package/dist/es/packages/button/style/button.scss +327 -227
  135. package/dist/es/packages/button/style/style.css +292 -47
  136. package/dist/es/packages/button/style/style.harmony.css +292 -47
  137. package/dist/es/packages/button/style-jmapp/button.scss +327 -227
  138. package/dist/es/packages/button/style-jmapp/style.css +268 -23
  139. package/dist/es/packages/button/style-jrkf/button.scss +327 -227
  140. package/dist/es/packages/button/style-jrkf/style.css +268 -23
  141. package/dist/es/packages/calendar/style/style.css +2 -2
  142. package/dist/es/packages/calendar/style/style.harmony.css +2 -2
  143. package/dist/es/packages/calendarcard/style/style.css +1 -1
  144. package/dist/es/packages/calendarcard/style/style.harmony.css +1 -1
  145. package/dist/es/packages/card/style/style.harmony.css +2 -2
  146. package/dist/es/packages/cascader/cascader.js +1 -1
  147. package/dist/es/packages/cascader/style/style.harmony.css +2 -2
  148. package/dist/es/packages/checkbox/checkbox.js +4 -3
  149. package/dist/es/packages/checkbox/style/checkbox.scss +19 -3
  150. package/dist/es/packages/checkbox/style/style.css +21 -6
  151. package/dist/es/packages/checkbox/style/style.harmony.css +23 -8
  152. package/dist/es/packages/checkbox/style-jmapp/checkbox.scss +19 -3
  153. package/dist/es/packages/checkbox/style-jmapp/style.css +18 -3
  154. package/dist/es/packages/checkbox/style-jrkf/checkbox.scss +19 -3
  155. package/dist/es/packages/checkbox/style-jrkf/style.css +18 -3
  156. package/dist/es/packages/checkboxgroup/style/style.css +2 -2
  157. package/dist/es/packages/checkboxgroup/style/style.harmony.css +2 -2
  158. package/dist/es/packages/circleprogress/circleprogress.js +1 -1
  159. package/dist/es/packages/configprovider/types.d.ts +1 -1
  160. package/dist/es/packages/countdown/style/style.css +1 -1
  161. package/dist/es/packages/countdown/style/style.harmony.css +1 -1
  162. package/dist/es/packages/datepicker/datepicker.js +3 -5
  163. package/dist/es/packages/datepicker/utils.js +7 -0
  164. package/dist/es/packages/dialog/style/style.harmony.css +292 -47
  165. package/dist/es/packages/elevator/style/elevator.scss +6 -2
  166. package/dist/es/packages/elevator/style/style.css +2 -2
  167. package/dist/es/packages/elevator/style/style.harmony.css +2 -2
  168. package/dist/es/packages/elevator/style-jmapp/elevator.scss +6 -2
  169. package/dist/es/packages/elevator/style-jmapp/style.css +2 -2
  170. package/dist/es/packages/elevator/style-jrkf/elevator.scss +6 -2
  171. package/dist/es/packages/elevator/style-jrkf/style.css +2 -2
  172. package/dist/es/packages/ellipsis/style/style.css +1 -1
  173. package/dist/es/packages/ellipsis/style/style.harmony.css +1 -1
  174. package/dist/es/packages/empty/style/style.harmony.css +292 -47
  175. package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +1 -1
  176. package/dist/es/packages/inputnumber/inputnumber.js +5 -1
  177. package/dist/es/packages/inputnumber/style/inputnumber.scss +11 -5
  178. package/dist/es/packages/inputnumber/style/style.css +16 -11
  179. package/dist/es/packages/inputnumber/style/style.harmony.css +16 -11
  180. package/dist/es/packages/inputnumber/style-jmapp/inputnumber.scss +11 -5
  181. package/dist/es/packages/inputnumber/style-jmapp/style.css +10 -5
  182. package/dist/es/packages/inputnumber/style-jrkf/inputnumber.scss +11 -5
  183. package/dist/es/packages/inputnumber/style-jrkf/style.css +10 -5
  184. package/dist/es/packages/pagination/pagination.js +2 -2
  185. package/dist/es/packages/price/price.js +16 -5
  186. package/dist/es/packages/progress/progress.js +2 -2
  187. package/dist/es/packages/radio/radio.js +3 -2
  188. package/dist/es/packages/radio/style/radio.scss +9 -3
  189. package/dist/es/packages/radio/style/style.css +10 -5
  190. package/dist/es/packages/radio/style/style.harmony.css +12 -7
  191. package/dist/es/packages/radio/style-jmapp/radio.scss +9 -3
  192. package/dist/es/packages/radio/style-jmapp/style.css +8 -3
  193. package/dist/es/packages/radio/style-jrkf/radio.scss +9 -3
  194. package/dist/es/packages/radio/style-jrkf/style.css +8 -3
  195. package/dist/es/packages/radiogroup/style/style.css +2 -2
  196. package/dist/es/packages/radiogroup/style/style.harmony.css +2 -2
  197. package/dist/es/packages/range/style/style.css +3 -3
  198. package/dist/es/packages/range/style/style.harmony.css +3 -3
  199. package/dist/es/packages/resultpage/resultpage.js +5 -5
  200. package/dist/es/packages/resultpage/style/style.harmony.css +292 -47
  201. package/dist/es/packages/searchbar/style/searchbar.scss +5 -5
  202. package/dist/es/packages/searchbar/style/style.css +5 -5
  203. package/dist/es/packages/searchbar/style/style.harmony.css +5 -5
  204. package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +5 -5
  205. package/dist/es/packages/searchbar/style-jmapp/style.css +5 -5
  206. package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +5 -5
  207. package/dist/es/packages/searchbar/style-jrkf/style.css +5 -5
  208. package/dist/es/packages/signature/signature.js +1 -1
  209. package/dist/es/packages/steps/style/style.css +2 -2
  210. package/dist/es/packages/steps/style/style.harmony.css +2 -2
  211. package/dist/es/packages/swipe/swipe.js +2 -2
  212. package/dist/es/packages/switch/style/style.css +2 -2
  213. package/dist/es/packages/switch/style/style.harmony.css +2 -2
  214. package/dist/es/packages/tabs/style/style.css +2 -2
  215. package/dist/es/packages/tabs/style/style.harmony.css +2 -2
  216. package/dist/es/packages/tag/style/style.css +2 -2
  217. package/dist/es/packages/tag/style/style.harmony.css +2 -2
  218. package/dist/es/packages/timedetail/style/style.css +1 -1
  219. package/dist/es/packages/timedetail/style/style.harmony.css +1 -1
  220. package/dist/es/packages/timeselect/style/style.harmony.css +1 -1
  221. package/dist/es/packages/toast/style/style.css +18 -15
  222. package/dist/es/packages/toast/style/style.harmony.css +18 -15
  223. package/dist/es/packages/toast/style/toast.scss +23 -16
  224. package/dist/es/packages/toast/style-jmapp/style.css +17 -14
  225. package/dist/es/packages/toast/style-jmapp/toast.scss +23 -16
  226. package/dist/es/packages/toast/style-jrkf/style.css +17 -14
  227. package/dist/es/packages/toast/style-jrkf/toast.scss +23 -16
  228. package/dist/es/packages/toast/toast.js +2 -3
  229. package/dist/es/types/base/atoms.d.ts +3 -3
  230. package/dist/es/types/spec/button/base.d.ts +1 -0
  231. package/dist/es/utils/scale-f.d.ts +0 -17
  232. package/dist/es/utils/scale-f.js +15 -106
  233. package/dist/es/utils/taro/get-system-info.d.ts +0 -5
  234. package/dist/es/utils/taro/get-system-info.js +8 -7
  235. package/dist/nutui.react.umd.js +141 -146
  236. package/dist/style-jmapp.css +1 -1
  237. package/dist/style-jmapp.scss +33 -33
  238. package/dist/style-jrkf.css +1 -1
  239. package/dist/style-jrkf.scss +31 -31
  240. package/dist/style.css +1 -1
  241. package/dist/style.scss +36 -36
  242. package/dist/styles/theme-daojia.scss +55 -48
  243. package/dist/styles/theme-dark-daojia.scss +55 -47
  244. package/dist/styles/theme-dark.scss +108 -109
  245. package/dist/styles/theme-default.scss +110 -111
  246. package/dist/styles/theme-jmapp.scss +1 -1
  247. package/dist/styles/theme-jrkf.scss +1 -1
  248. package/dist/styles/themes/daojia.css +1 -1
  249. package/dist/styles/themes/dark-daojia.css +1 -1
  250. package/dist/styles/themes/dark.css +1 -1
  251. package/dist/styles/themes/default.css +1 -1
  252. package/dist/styles/themes/jmapp.css +1 -1
  253. package/dist/styles/themes/jrkf.css +1 -1
  254. package/dist/styles/variables-daojia.scss +1055 -1976
  255. package/dist/styles/variables-jmapp.scss +96 -5
  256. package/dist/styles/variables-jrkf.scss +96 -5
  257. package/dist/styles/variables.scss +141 -37
  258. package/package.json +1 -1
@@ -1433,7 +1433,7 @@
1433
1433
  var Button = /* @__PURE__ */ React.forwardRef(function(props, ref) {
1434
1434
  var _ref = _object_spread({}, defaultProps$1C, props), color = _ref.color, shape = _ref.shape, fill = _ref.fill, loading = _ref.loading, disabled = _ref.disabled, type2 = _ref.type, size = _ref.size, block = _ref.block, icon = _ref.icon, rightIcon = _ref.rightIcon, children = _ref.children, className = _ref.className, style = _ref.style;
1435
1435
  _ref.nativeType;
1436
- var onClick = _ref.onClick, rest = _object_without_properties(_ref, [
1436
+ var description = _ref.description, onClick = _ref.onClick, rest = _object_without_properties(_ref, [
1437
1437
  "color",
1438
1438
  "shape",
1439
1439
  "fill",
@@ -1448,8 +1448,22 @@
1448
1448
  "className",
1449
1449
  "style",
1450
1450
  "nativeType",
1451
+ "description",
1451
1452
  "onClick"
1452
1453
  ]);
1454
+ var mappedSize = React.useMemo(function() {
1455
+ if (!size) return "normal";
1456
+ var sizeMap = {
1457
+ "48": "xlarge",
1458
+ "40": "large",
1459
+ "32": "normal",
1460
+ "28": "small",
1461
+ "24": "mini"
1462
+ };
1463
+ return sizeMap[size] || size;
1464
+ }, [
1465
+ size
1466
+ ]);
1453
1467
  var getStyle = React.useMemo(function() {
1454
1468
  var style2 = {};
1455
1469
  if (color) {
@@ -1459,7 +1473,7 @@
1459
1473
  style2.borderColor = color;
1460
1474
  }
1461
1475
  } else {
1462
- style2.color = "#fff";
1476
+ style2.color = "var(--nutui-color-primary-text, #fff)";
1463
1477
  if (harmony()) {
1464
1478
  style2.backgroundColor = color;
1465
1479
  }
@@ -1478,7 +1492,7 @@
1478
1492
  if (props.fill === "outline" || props.fill === "dashed") {
1479
1493
  style2.color = color;
1480
1494
  } else {
1481
- style2.color = "#fff";
1495
+ style2.color = "var(--nutui-color-primary-text, #fff)";
1482
1496
  style2.background = "transparent";
1483
1497
  style2.borderColor = "transparent";
1484
1498
  }
@@ -1499,26 +1513,41 @@
1499
1513
  onClick
1500
1514
  ]);
1501
1515
  var _obj;
1502
- var buttonClassNames = classNames(prefixCls$2, "".concat(prefixCls$2, "-").concat(type2), (_obj = {}, _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2, "-solid"), type2 === "primary" && !props.fill), _define_property(_obj, "".concat(prefixCls$2, "-").concat(fill), props.fill), _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2, "-").concat(fill), props.fill), _define_property(_obj, "".concat(prefixCls$2, "-").concat(size), size), _define_property(_obj, "".concat(prefixCls$2, "-").concat(shape), shape), _define_property(_obj, "".concat(prefixCls$2, "-").concat(shape, "-").concat(size), shape && size), _define_property(_obj, "".concat(prefixCls$2, "-block"), block), _define_property(_obj, "".concat(prefixCls$2, "-disabled"), disabled || loading), _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2).concat(props.fill ? "-".concat(fill) : "", "-disabled"), disabled || loading), _define_property(_obj, "".concat(prefixCls$2, "-loading"), loading), _define_property(_obj, "".concat(prefixCls$2, "-icononly"), !children), _obj), className);
1516
+ var buttonClassNames = classNames(prefixCls$2, "".concat(prefixCls$2, "-").concat(type2), (_obj = {}, _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2, "-solid"), type2 === "primary" && !props.fill), _define_property(_obj, "".concat(prefixCls$2, "-").concat(fill), props.fill), _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2, "-").concat(fill), props.fill), _define_property(_obj, "".concat(prefixCls$2, "-").concat(mappedSize), mappedSize), _define_property(_obj, "".concat(prefixCls$2, "-has-desc"), !!description), _define_property(_obj, "".concat(prefixCls$2, "-").concat(shape), shape), _define_property(_obj, "".concat(prefixCls$2, "-block"), block), _define_property(_obj, "".concat(prefixCls$2, "-disabled"), disabled || loading), _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2).concat(props.fill ? "-".concat(fill) : "", "-disabled"), disabled || loading), _define_property(_obj, "".concat(prefixCls$2, "-loading"), loading), _define_property(_obj, "".concat(prefixCls$2, "-icononly"), !children), _obj), className);
1503
1517
  return (
1518
+ // <TaroButton>
1504
1519
  // @ts-ignore
1505
- // <TaroButton
1506
1520
  /* @__PURE__ */ React.createElement(components.View, _object_spread_props(_object_spread({}, rest), {
1507
1521
  ref,
1508
1522
  // formType={formType || nativeType}
1509
1523
  className: buttonClassNames,
1510
1524
  style: _object_spread({}, getStyle, style),
1525
+ ariaRole: "button",
1526
+ role: "button",
1527
+ ariaDisabled: disabled || loading,
1528
+ "aria-disabled": disabled || loading,
1529
+ ariaBusy: loading,
1530
+ "aria-busy": loading,
1511
1531
  onClick: function(e) {
1512
1532
  return handleClick(e);
1513
1533
  }
1514
1534
  }), /* @__PURE__ */ React.createElement(components.View, {
1515
1535
  className: "nut-button-wrap"
1516
1536
  }, loading && /* @__PURE__ */ React.createElement(IconSVG$i, {
1517
- className: "nut-icon-loading"
1537
+ className: "nut-icon-loading",
1538
+ ariaHidden: true,
1539
+ "aria-hidden": true
1518
1540
  }), !loading && icon, children && /* @__PURE__ */ React.createElement(components.View, {
1519
- className: "nut-button-children nut-button-".concat(size, "-children nut-button-").concat(type2, "-children ").concat(!(props.fill || disabled || loading) ? "" : "nut-button-".concat(type2).concat(props.fill ? "-".concat(fill) : "").concat(disabled || loading ? "-disabled" : "")).concat(icon || loading ? " nut-button-text" : "").concat(rightIcon ? " nut-button-text-right" : ""),
1541
+ className: classNames("nut-button-children", "nut-button-".concat(mappedSize, "-children"), "nut-button-".concat(type2, "-children"), {
1542
+ "nut-button-text": icon || loading,
1543
+ "nut-button-text-right": rightIcon
1544
+ }),
1520
1545
  style: harmony() ? getContStyle : {}
1521
- }, children), rightIcon))
1546
+ }, description ? /* @__PURE__ */ React.createElement(components.View, {
1547
+ className: "nut-button-title"
1548
+ }, children) : children, description && /* @__PURE__ */ React.createElement(components.View, {
1549
+ className: "nut-button-desc"
1550
+ }, description)), rightIcon))
1522
1551
  );
1523
1552
  });
1524
1553
  Button.displayName = "NutButton";
@@ -1930,6 +1959,11 @@
1930
1959
  edit: "编辑",
1931
1960
  reset: "重置",
1932
1961
  close: "关闭",
1962
+ back: "返回",
1963
+ clear: "清除",
1964
+ image: {
1965
+ errorTip: "图片加载失败"
1966
+ },
1933
1967
  video: {
1934
1968
  errorTip: "视频加载失败",
1935
1969
  clickRetry: "点击重试"
@@ -1969,7 +2003,16 @@
1969
2003
  },
1970
2004
  today: "今天",
1971
2005
  loadPreviousMonth: "加载上一个月",
1972
- noEarlierMonth: "没有更早月份"
2006
+ noEarlierMonth: "没有更早月份",
2007
+ dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
2008
+ if (isActive) {
2009
+ return today ? "已选定今日".concat(month, "月").concat(day, "号") : "已选定".concat(month, "月").concat(day, "号");
2010
+ }
2011
+ if (isDisable) {
2012
+ return today ? "".concat(month, "月").concat(day, "号今日按钮变暗") : "".concat(month, "月").concat(day, "号按钮变暗");
2013
+ }
2014
+ return today ? "".concat(month, "月").concat(day, "号今日") : "".concat(month, "月").concat(day, "号");
2015
+ }
1973
2016
  },
1974
2017
  shortpassword: {
1975
2018
  title: "请输入密码",
@@ -3130,9 +3173,6 @@
3130
3173
  var getWindowInfo = function() {
3131
3174
  return typeof Taro.getWindowInfo === "function" ? Taro.getWindowInfo() : Taro.getSystemInfoSync();
3132
3175
  };
3133
- var getAppBaseInfo = function() {
3134
- return typeof Taro.getAppBaseInfo === "function" ? Taro.getAppBaseInfo() : Taro.getSystemInfoSync();
3135
- };
3136
3176
  function useWatch$1(dep, callback) {
3137
3177
  var config2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
3138
3178
  immediate: false
@@ -3519,7 +3559,7 @@
3519
3559
  var _useState = _sliced_to_array(React.useState(false), 2), isTouchStart = _useState[0], setTouchStart = _useState[1];
3520
3560
  React.useMemo(function() {
3521
3561
  return isHarmony ? {
3522
- color: isTouchStart ? "#595959" : "#1A1A1A"
3562
+ color: isTouchStart ? "var(--nutui-color-text, #595959)" : "var(--nutui-color-title, #1A1A1A)"
3523
3563
  } : {};
3524
3564
  }, [
3525
3565
  isTouchStart
@@ -4254,81 +4294,8 @@
4254
4294
  }
4255
4295
  return 1;
4256
4296
  }
4257
- function getScaleByNative() {
4258
- return _async_to_generator(function() {
4259
- var _window_jmfe, _res_data, res, parsed;
4260
- return __generator(this, function(_state) {
4261
- switch (_state.label) {
4262
- case 0:
4263
- if (!canUseDom || !((_window_jmfe = window.jmfe) === null || _window_jmfe === void 0 ? void 0 : _window_jmfe.callNative)) return [
4264
- 2,
4265
- null
4266
- ];
4267
- _state.label = 1;
4268
- case 1:
4269
- _state.trys.push([
4270
- 1,
4271
- 3,
4272
- ,
4273
- 4
4274
- ]);
4275
- return [
4276
- 4,
4277
- window.jmfe.callNative("DongScreenAdapterPlugin", "getScale", JSON.stringify({}), "")
4278
- ];
4279
- case 2:
4280
- res = _state.sent();
4281
- if ((res === null || res === void 0 ? void 0 : res.status) === "0" && ((_res_data = res.data) === null || _res_data === void 0 ? void 0 : _res_data.scale) !== void 0) {
4282
- parsed = Number(res.data.scale);
4283
- if (Number.isFinite(parsed) && parsed > 0) {
4284
- return [
4285
- 2,
4286
- parsed
4287
- ];
4288
- }
4289
- }
4290
- return [
4291
- 3,
4292
- 4
4293
- ];
4294
- case 3:
4295
- _state.sent();
4296
- return [
4297
- 3,
4298
- 4
4299
- ];
4300
- case 4:
4301
- return [
4302
- 2,
4303
- null
4304
- ];
4305
- }
4306
- });
4307
- })();
4308
- }
4309
4297
  function getScaleF() {
4310
- return _async_to_generator(function() {
4311
- var nativeScale;
4312
- return __generator(this, function(_state) {
4313
- switch (_state.label) {
4314
- case 0:
4315
- return [
4316
- 4,
4317
- getScaleByNative()
4318
- ];
4319
- case 1:
4320
- nativeScale = _state.sent();
4321
- if (nativeScale) return [
4322
- 2,
4323
- nativeScale
4324
- ];
4325
- return [
4326
- 2,
4327
- getScaleByViewport()
4328
- ];
4329
- }
4330
- });
4331
- })();
4298
+ return getScaleByViewport();
4332
4299
  }
4333
4300
  function setScaleF(nextScale) {
4334
4301
  var validScale = Number.isFinite(nextScale) && nextScale > 0 ? nextScale : 1;
@@ -4337,27 +4304,11 @@
4337
4304
  return scale;
4338
4305
  }
4339
4306
  function refreshScaleF(nextProfile) {
4340
- return _async_to_generator(function() {
4341
- var nextScale;
4342
- return __generator(this, function(_state) {
4343
- switch (_state.label) {
4344
- case 0:
4345
- return [
4346
- 4,
4347
- getScaleF()
4348
- ];
4349
- case 1:
4350
- nextScale = _state.sent();
4351
- if (!scale || nextScale !== scale) {
4352
- setScaleF(nextScale);
4353
- }
4354
- return [
4355
- 2,
4356
- scale
4357
- ];
4358
- }
4359
- });
4360
- })();
4307
+ var nextScale = getScaleF();
4308
+ if (!scale || nextScale !== scale) {
4309
+ setScaleF(nextScale);
4310
+ }
4311
+ return scale;
4361
4312
  }
4362
4313
  function initScaleF(nextProfile) {
4363
4314
  if (!canUseDom) return function() {
@@ -7672,7 +7623,7 @@
7672
7623
  selectedExist(item);
7673
7624
  }
7674
7625
  }, item.selectedAddress ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.isValidElement(selectIcon) ? selectIcon : /* @__PURE__ */ React.createElement(IconSVG$r, {
7675
- color: "#FF0F23"
7626
+ color: "var(--nutui-color-primary, #ff0f23)"
7676
7627
  })) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ React.createElement(IconSVG$g, null)), /* @__PURE__ */ React.createElement(components.View, {
7677
7628
  className: "".concat(classPrefix2, "-exist-item-info")
7678
7629
  }, item.name && item.phone && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(components.View, null, item.name), /* @__PURE__ */ React.createElement(components.View, null, item.phone)), /* @__PURE__ */ React.createElement(components.View, null, item.provinceName + item.cityName + item.countyName + item.townName + item.addressDetail)));
@@ -8392,7 +8343,7 @@
8392
8343
  className: "nut-cascader-item-icon-loading"
8393
8344
  }), active2 && (React.isValidElement(activeIcon) ? activeIcon : /* @__PURE__ */ React.createElement(IconSVG$r, {
8394
8345
  className: "".concat(classPrefix2, "-icon-check"),
8395
- color: activeColor || "#ff0f23"
8346
+ color: activeColor || "var(--nutui-color-primary, #ff0f23)"
8396
8347
  })));
8397
8348
  });
8398
8349
  };
@@ -9989,9 +9940,10 @@
9989
9940
  return cls;
9990
9941
  };
9991
9942
  var renderLabel = function() {
9992
- return /* @__PURE__ */ React.createElement(components.View, {
9943
+ var hasLabel = children || label;
9944
+ return hasLabel ? /* @__PURE__ */ React.createElement(components.View, {
9993
9945
  className: classNames("".concat(classPrefix$j, "-label "), _define_property({}, "".concat(classPrefix$j, "-label-disabled"), innerDisabled))
9994
- }, children || label);
9946
+ }, hasLabel) : null;
9995
9947
  };
9996
9948
  var handleClick = function() {
9997
9949
  if (disabled) return;
@@ -10020,7 +9972,7 @@
10020
9972
  };
10021
9973
  var _obj;
10022
9974
  return /* @__PURE__ */ React.createElement(components.View, _object_spread_props(_object_spread({
10023
- className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx === null || ctx === void 0 ? void 0 : ctx.list), _define_property(_obj, "".concat(classPrefix$j, "-active"), innerChecked), _obj), className)
9975
+ className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx === null || ctx === void 0 ? void 0 : ctx.list), _define_property(_obj, "".concat(classPrefix$j, "-active"), innerChecked), _define_property(_obj, "".concat(classPrefix$j, "-nolabel"), !(children || label)), _obj), className)
10024
9976
  }, rest), {
10025
9977
  onClick: handleClick,
10026
9978
  ariaRole: "checkbox",
@@ -10905,6 +10857,13 @@
10905
10857
  if (rangeType === "year-month" && formattedDate.length < 3) {
10906
10858
  formattedDate.push(new Date(defaultDate).getDate());
10907
10859
  }
10860
+ if ((rangeType === "time" || rangeType === "hour-minutes") && formattedDate.length < 6) {
10861
+ var defaultDateObj = new Date(defaultDate);
10862
+ formattedDate.unshift(defaultDateObj.getFullYear(), defaultDateObj.getMonth() + 1, defaultDateObj.getDate());
10863
+ if (rangeType === "hour-minutes") {
10864
+ formattedDate.push(0);
10865
+ }
10866
+ }
10908
10867
  var year = Number(formattedDate[0]);
10909
10868
  var month = Number(formattedDate[1]) - 1;
10910
10869
  var day = Math.min(Number(formattedDate[2]), getLastDayOfMonth(year, month + 1));
@@ -10997,11 +10956,9 @@
10997
10956
  if (!isEqual((_this = new Date(selectedDate)) === null || _this === void 0 ? void 0 : _this.getTime(), newDate === null || newDate === void 0 ? void 0 : newDate.getTime())) {
10998
10957
  setInnerDate(formatValue(newDate, startDate, endDate));
10999
10958
  }
11000
- onChange === null || onChange === void 0 ? void 0 : onChange(selectedOptions, [
11001
- String(newDate.getFullYear()),
11002
- String(newDate.getMonth() + 1),
11003
- String(newDate.getDate())
11004
- ], index2);
10959
+ onChange === null || onChange === void 0 ? void 0 : onChange(selectedOptions, selectedOptions.map(function(val2) {
10960
+ return val2.value;
10961
+ }), index2);
11005
10962
  }
11006
10963
  };
11007
10964
  var handleConfirmDateComparison = function(newDate) {
@@ -13343,7 +13300,9 @@
13343
13300
  onClick: handleReduce
13344
13301
  }, /* @__PURE__ */ React.createElement(IconSVG$e, {
13345
13302
  className: classNames("".concat(classPrefix$h, "-icon ").concat(classPrefix$h, "-icon-minus"), _define_property({}, "".concat(classPrefix$h, "-icon-disabled"), Number(shadowValue) <= Number(min) || disabled))
13346
- })), /* @__PURE__ */ React.createElement("input", {
13303
+ })), /* @__PURE__ */ React.createElement(components.View, {
13304
+ className: "".concat(classPrefix$h, "-divider")
13305
+ }), /* @__PURE__ */ React.createElement("input", {
13347
13306
  className: classNames("".concat(classPrefix$h, "-input"), _define_property({}, "".concat(classPrefix$h, "-input-disabled"), disabled)),
13348
13307
  type: formatter ? "text" : type2,
13349
13308
  ref: inputRef,
@@ -13354,6 +13313,8 @@
13354
13313
  onInput: handleInputChange,
13355
13314
  onBlur: handleBlur,
13356
13315
  onFocus: handleFocus
13316
+ }), /* @__PURE__ */ React.createElement(components.View, {
13317
+ className: "".concat(classPrefix$h, "-divider")
13357
13318
  }), /* @__PURE__ */ React.createElement(components.View, {
13358
13319
  className: "".concat(classPrefix$h, "-add"),
13359
13320
  onClick: handlePlus
@@ -13959,8 +13920,8 @@
13959
13920
  };
13960
13921
  }
13961
13922
  var color = function() {
13962
- var _obj;
13963
- return _obj = {}, _define_property(_obj, "".concat(classPrefix2, "-icon-disabled"), disabled), _define_property(_obj, "".concat(classPrefix2, "-icon"), !checkedStatement), _define_property(_obj, "".concat(classPrefix2, "-icon-checked"), checkedStatement), _obj;
13923
+ var _obj2;
13924
+ return _obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-icon-disabled"), disabled), _define_property(_obj2, "".concat(classPrefix2, "-icon"), !checkedStatement), _define_property(_obj2, "".concat(classPrefix2, "-icon-checked"), checkedStatement), _obj2;
13964
13925
  };
13965
13926
  var renderIcon = function() {
13966
13927
  var icon = props.icon, activeIcon = props.activeIcon;
@@ -13993,13 +13954,13 @@
13993
13954
  };
13994
13955
  var renderLabel = function() {
13995
13956
  var labelcls = classNames("".concat(classPrefix2, "-label"), _define_property({}, "".concat(classPrefix2, "-label-disabled"), disabled));
13996
- return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), /* @__PURE__ */ React.createElement(components.View, {
13957
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), children && /* @__PURE__ */ React.createElement(components.View, {
13997
13958
  className: labelcls
13998
13959
  }, children));
13999
13960
  };
14000
13961
  var renderButton = function() {
14001
- var _obj;
14002
- var buttoncls = classNames("".concat(classPrefix2, "-button"), (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-button-active"), checkedStatement), _define_property(_obj, "".concat(classPrefix2, "-button-disabled"), disabled), _obj));
13962
+ var _obj2;
13963
+ var buttoncls = classNames("".concat(classPrefix2, "-button"), (_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-button-active"), checkedStatement), _define_property(_obj2, "".concat(classPrefix2, "-button-disabled"), disabled), _obj2));
14003
13964
  return /* @__PURE__ */ React.createElement(components.View, {
14004
13965
  className: buttoncls
14005
13966
  }, children);
@@ -14014,7 +13975,8 @@
14014
13975
  if (disabled || checkedStatement) return;
14015
13976
  setCheckedStatement(!checkedStatement);
14016
13977
  };
14017
- var cls = classNames(classPrefix2, _define_property({}, "".concat(classPrefix2, "-reverse"), labelPosition === "left"), className);
13978
+ var _obj;
13979
+ var cls = classNames(classPrefix2, (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-reverse"), labelPosition === "left"), _define_property(_obj, "".concat(classPrefix2, "-nolabel"), !children), _obj), className);
14018
13980
  return /* @__PURE__ */ React.createElement(components.View, {
14019
13981
  className: cls,
14020
13982
  style,
@@ -15171,7 +15133,7 @@
15171
15133
  canvasId: "spcanvas",
15172
15134
  type: "png",
15173
15135
  lineWidth: 2,
15174
- strokeStyle: "#1A1A1A"
15136
+ strokeStyle: "var(--nutui-color-title, #1a1a1a)"
15175
15137
  });
15176
15138
  var InternalSignature = function(props, ref) {
15177
15139
  var _ref = _object_spread({}, defaultProps$O, props), canvasId = _ref.canvasId, type2 = _ref.type, lineWidth = _ref.lineWidth, strokeStyle = _ref.strokeStyle, className = _ref.className;
@@ -15649,7 +15611,7 @@
15649
15611
  }, baseStyles),
15650
15612
  inner: _object_spread({
15651
15613
  width: "".concat(displayPercent, "%"),
15652
- background: effectiveColor || "#FF0F23"
15614
+ background: effectiveColor || "var(--nutui-color-primary, #ff0f23)"
15653
15615
  }, baseStyles, transitionStyle)
15654
15616
  };
15655
15617
  };
@@ -18194,19 +18156,19 @@
18194
18156
  var cls = classNames(classPrefix2, className);
18195
18157
  var defaultStatus2 = {
18196
18158
  success: /* @__PURE__ */ React.createElement(IconSVG$6, {
18197
- color: "#00D900"
18159
+ color: "var(--nutui-color-success, #0acc2a)"
18198
18160
  }),
18199
18161
  error: /* @__PURE__ */ React.createElement(IconSVG$n, {
18200
- color: "#FF0F23"
18162
+ color: "var(--nutui-color-primary, #ff0f23)"
18201
18163
  }),
18202
18164
  warning: /* @__PURE__ */ React.createElement(IconSVG, {
18203
- color: "#FFBF00"
18165
+ color: "var(--nutui-color-warning, #ffaa00)"
18204
18166
  }),
18205
18167
  info: /* @__PURE__ */ React.createElement(IconSVG$5, {
18206
- color: "#0073FF"
18168
+ color: "var(--nutui-color-info, #0c82f7)"
18207
18169
  }),
18208
18170
  waiting: /* @__PURE__ */ React.createElement(IconSVG$v, {
18209
- color: "#0073FF"
18171
+ color: "var(--nutui-color-info, #0c82f7)"
18210
18172
  })
18211
18173
  };
18212
18174
  return /* @__PURE__ */ React.createElement(components.View, {
@@ -18455,7 +18417,7 @@
18455
18417
  var newState = _object_spread_props(_object_spread({}, state), {
18456
18418
  dragging: true
18457
18419
  });
18458
- var isEdge = !opened || touch.deltaX.current * startOffset.current < 0;
18420
+ var isEdge = !opened.current || touch.deltaX.current * startOffset.current < 0;
18459
18421
  if (isEdge) {
18460
18422
  preventDefault(event);
18461
18423
  }
@@ -18481,7 +18443,7 @@
18481
18443
  var toggle = function(side) {
18482
18444
  var offset = Math.abs(state.offset);
18483
18445
  var base = 0.3;
18484
- var baseNum = opened ? 1 - base : base;
18446
+ var baseNum = opened.current ? 1 - base : base;
18485
18447
  var width2 = side === "left" ? actionWidth.current.left : actionWidth.current.right;
18486
18448
  if (width2 && offset > Number(width2) * baseNum) {
18487
18449
  open2(side);
@@ -18592,7 +18554,7 @@
18592
18554
  Swipe.displayName = "NutSwipe";
18593
18555
  var defaultProps$w = _object_spread_props(_object_spread({}, defaultOverlayProps), {
18594
18556
  id: "",
18595
- duration: 2,
18557
+ duration: 3,
18596
18558
  position: "middle",
18597
18559
  title: "",
18598
18560
  size: "base",
@@ -18709,7 +18671,7 @@
18709
18671
  className: "".concat(classPrefix2, " ").concat(classes),
18710
18672
  id
18711
18673
  }, /* @__PURE__ */ React.createElement(components.View, {
18712
- className: classNames("".concat(classPrefix2, "-inner"), "".concat(classPrefix2, "-").concat(position2), contentClassName, "".concat(classPrefix2, "-inner-").concat(size), "".concat(classPrefix2, "-inner-").concat(wordBreak), _define_property({}, "".concat(classPrefix2, "-inner-descrption"), content2)),
18674
+ className: classNames("".concat(classPrefix2, "-inner"), "".concat(classPrefix2, "-").concat(position2), contentClassName, "".concat(classPrefix2, "-inner-").concat(size), "".concat(classPrefix2, "-inner-").concat(wordBreak)),
18713
18675
  style: _object_spread({}, styles, contentStyle),
18714
18676
  ariaRole: "alert",
18715
18677
  ariaLabel: (title !== null && title !== void 0 ? title : "") + (content2 !== null && content2 !== void 0 ? content2 : "")
@@ -19070,8 +19032,8 @@
19070
19032
  currentDescription: null,
19071
19033
  maxDescription: null,
19072
19034
  minDescription: null,
19073
- "inactive-color": "#cccccc",
19074
- "active-color": "#FF0F23"
19035
+ "inactive-color": "var(--nutui-color-text-disabled, #c2c4cc)",
19036
+ "active-color": "var(--nutui-color-primary, #ff0f23)"
19075
19037
  })), /* @__PURE__ */ React.createElement(components.View, {
19076
19038
  className: "time"
19077
19039
  }, formatSeconds("".concat(totalSeconds)) || "00:00:00")), /* @__PURE__ */ React.createElement(components.View, {
@@ -19251,7 +19213,7 @@
19251
19213
  strokeWidth: 5,
19252
19214
  radius: 50,
19253
19215
  strokeLinecap: "round",
19254
- color: "#FF0F23",
19216
+ color: "var(--nutui-color-primary, #ff0f23)",
19255
19217
  background: "#e5e9f2",
19256
19218
  clockwise: true
19257
19219
  });
@@ -41086,7 +41048,7 @@
41086
41048
  onClick: function() {
41087
41049
  return prevPage();
41088
41050
  }
41089
- }, addColorForHarmony(prev || locale.pagination.prev, current === 1 ? "#c2c4cc" : "#ff0f23")), mode === "multi" && /* @__PURE__ */ React.createElement(components.View, {
41051
+ }, addColorForHarmony(prev || locale.pagination.prev, current === 1 ? "var(--nutui-color-text-disabled, #c2c4cc)" : "var(--nutui-color-primary, #ff0f23)")), mode === "multi" && /* @__PURE__ */ React.createElement(components.View, {
41090
41052
  className: "".concat(classPrefix2, "-contain")
41091
41053
  }, pages.map(function(item, index2) {
41092
41054
  var _obj2;
@@ -41106,7 +41068,7 @@
41106
41068
  onClick: function() {
41107
41069
  return nextPage();
41108
41070
  }
41109
- }, addColorForHarmony(next || locale.pagination.next, current >= pageCount ? "#c2c4cc" : "#ff0f23"))), mode === "lite" && /* @__PURE__ */ React.createElement(components.View, {
41071
+ }, addColorForHarmony(next || locale.pagination.next, current >= pageCount ? "var(--nutui-color-text-disabled, #c2c4cc)" : "var(--nutui-color-primary, #ff0f23)"))), mode === "lite" && /* @__PURE__ */ React.createElement(components.View, {
41110
41072
  className: "".concat(classPrefix2, "-lite")
41111
41073
  }, /* @__PURE__ */ React.createElement(components.Text, {
41112
41074
  className: "".concat(classPrefix2, "-lite-active")
@@ -41124,6 +41086,30 @@
41124
41086
  return PriceColorEnum2;
41125
41087
  }({});
41126
41088
  var destroyList = [];
41089
+ var CJK = /[\u4E00-\u9FFF]/;
41090
+ var RE_NUM = /\d+(?:\.\d+)?/g;
41091
+ function hasNoExtractablePrice(s) {
41092
+ var t = s.trim();
41093
+ if (!t) return true;
41094
+ if (!/\d/.test(t)) return true;
41095
+ if (t.replace(/[^\d.]/g, "") === "") return true;
41096
+ return false;
41097
+ }
41098
+ function shouldRenderPriceAsRaw(s) {
41099
+ if (hasNoExtractablePrice(s)) {
41100
+ return true;
41101
+ }
41102
+ var t = s.trim();
41103
+ if (!CJK.test(t)) return false;
41104
+ var matches = Array.from(t.matchAll(RE_NUM));
41105
+ if (matches.length < 2) return false;
41106
+ var a = matches[0];
41107
+ var b = matches[1];
41108
+ var i0 = a.index;
41109
+ var i1 = b.index;
41110
+ var between = t.slice(i0 + a[0].length, i1);
41111
+ return CJK.test(between);
41112
+ }
41127
41113
  var defaultProps$g = _object_spread_props(_object_spread({}, ComponentDefaults), {
41128
41114
  color: "primary",
41129
41115
  price: 0,
@@ -41138,10 +41124,17 @@
41138
41124
  var _$_object_spread = _object_spread({}, defaultProps$g, props), color = _$_object_spread.color, originalPrice = _$_object_spread.price, symbol = _$_object_spread.symbol, digits = _$_object_spread.digits, thousands = _$_object_spread.thousands, position2 = _$_object_spread.position, size = _$_object_spread.size, line = _$_object_spread.line, className = _$_object_spread.className, style = _$_object_spread.style;
41139
41125
  var classPrefix2 = "nut-price";
41140
41126
  var rtl = useRtl();
41127
+ var isRenderPriceRaw = React.useMemo(function() {
41128
+ return typeof originalPrice === "string" && shouldRenderPriceAsRaw(originalPrice);
41129
+ }, [
41130
+ originalPrice
41131
+ ]);
41141
41132
  var price = React.useMemo(function() {
41133
+ if (isRenderPriceRaw) return "";
41142
41134
  return originalPrice.toString().replace(/[^\d.]/g, "");
41143
41135
  }, [
41144
- originalPrice
41136
+ originalPrice,
41137
+ isRenderPriceRaw
41145
41138
  ]);
41146
41139
  var isCustomPriceColor = React.useMemo(function() {
41147
41140
  var specificPriceColor = Object.values(PriceColorEnum);
@@ -41222,13 +41215,16 @@
41222
41215
  style: priceColorStyle
41223
41216
  }, formatDecimal(price))) : null, symbol && position2 === "after" ? renderSymbol() : null);
41224
41217
  };
41225
- return /* @__PURE__ */ React.createElement(React.Fragment, null, harmony() || td() ? /* @__PURE__ */ React.createElement(components.Text, {
41218
+ var renderRawContent = function() {
41219
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, originalPrice);
41220
+ };
41221
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, harmony() || process.env.TARO_ENV === "dynamic" ? /* @__PURE__ */ React.createElement(components.Text, {
41226
41222
  className: "".concat(classPrefix2, " ").concat(classPrefix2, "-").concat(color, " ").concat(className),
41227
41223
  style
41228
- }, renderInner()) : /* @__PURE__ */ React.createElement(components.View, {
41224
+ }, isRenderPriceRaw ? renderRawContent() : renderInner()) : /* @__PURE__ */ React.createElement(components.View, {
41229
41225
  className: "".concat(classPrefix2, " ").concat(classPrefix2, "-").concat(color, " ").concat(className),
41230
41226
  style
41231
- }, renderInner()));
41227
+ }, isRenderPriceRaw ? renderRawContent() : renderInner()));
41232
41228
  };
41233
41229
  Price.displayName = "NutPrice";
41234
41230
  var defaultProps$f = {
@@ -43635,7 +43631,6 @@
43635
43631
  exports.destroyList = destroyList;
43636
43632
  exports.funcInterceptor = funcInterceptor;
43637
43633
  exports.getAllScrollableParents = getAllScrollableParents;
43638
- exports.getAppBaseInfo = getAppBaseInfo;
43639
43634
  exports.getCurrMonthData = getCurrMonthData;
43640
43635
  exports.getDaysStatus = getDaysStatus;
43641
43636
  exports.getDefaultConfig = getDefaultConfig;