@nutui/nutui-react-taro 2.0.12 → 2.0.13

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 (112) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/esm/Address.js +7 -5
  3. package/dist/esm/Audio.js +6 -4
  4. package/dist/esm/Calendar.js +6 -4
  5. package/dist/esm/CalendarItem.js +5 -3
  6. package/dist/esm/Cascader.js +4 -3
  7. package/dist/esm/Checkbox.js +3 -2
  8. package/dist/esm/CheckboxGroup.js +3 -2
  9. package/dist/esm/Collapse.js +3 -2
  10. package/dist/esm/ConfigProvider.js +3 -2
  11. package/dist/esm/CountDown.js +3 -2
  12. package/dist/esm/DatePicker.js +6 -4
  13. package/dist/esm/Dialog.js +6 -3
  14. package/dist/esm/Empty.js +3 -2
  15. package/dist/esm/FixedNav.js +3 -2
  16. package/dist/esm/Form.js +2 -2
  17. package/dist/esm/FormItem.js +1 -1
  18. package/dist/esm/Grid.js +4 -3
  19. package/dist/esm/GridItem.js +3 -2
  20. package/dist/esm/ImagePreview.js +3 -2
  21. package/dist/esm/InfiniteLoading.js +3 -2
  22. package/dist/esm/Input.js +5 -3
  23. package/dist/esm/InputNumber.js +3 -2
  24. package/dist/esm/Notify.js +4 -1
  25. package/dist/esm/NumberKeyboard.js +3 -2
  26. package/dist/esm/Pagination.js +5 -3
  27. package/dist/esm/Picker.js +5 -3
  28. package/dist/esm/PullToRefresh.js +3 -2
  29. package/dist/esm/Radio.js +3 -2
  30. package/dist/esm/RadioGroup.js +3 -2
  31. package/dist/esm/Range.js +3 -2
  32. package/dist/esm/Rate.js +3 -2
  33. package/dist/esm/SearchBar.js +3 -2
  34. package/dist/esm/ShortPassword.js +5 -3
  35. package/dist/esm/Switch.js +3 -2
  36. package/dist/esm/Tabbar.js +3 -2
  37. package/dist/esm/Table.js +3 -2
  38. package/dist/esm/Tabs.js +3 -2
  39. package/dist/esm/TextArea.js +5 -3
  40. package/dist/esm/TimeSelect.js +3 -2
  41. package/dist/esm/Toast.js +5 -1
  42. package/dist/esm/Uploader.js +3 -2
  43. package/dist/esm/WaterMark.js +3 -2
  44. package/dist/esm/{address.taro-fe8a0601.js → address.taro-b58603a5.js} +3 -3
  45. package/dist/esm/{audio.taro-e85bb3b8.js → audio.taro-ef39c1d9.js} +2 -2
  46. package/dist/esm/{calendar.taro-29726d55.js → calendar.taro-c8ddf452.js} +2 -2
  47. package/dist/esm/{calendaritem.taro-9b37d00c.js → calendaritem.taro-0bd17638.js} +2 -2
  48. package/dist/esm/{cascader.taro-e05fd966.js → cascader.taro-ec5179d6.js} +2 -2
  49. package/dist/esm/{checkbox.taro-07d5c9d5.js → checkbox.taro-22cd35c4.js} +1 -1
  50. package/dist/esm/{collapse.taro-bd6b2bb3.js → collapse.taro-4a3e417c.js} +1 -1
  51. package/dist/esm/configprovider.taro-c5ff4877.js +483 -0
  52. package/dist/esm/{countdown.taro-80f2110b.js → countdown.taro-7caa9578.js} +1 -1
  53. package/dist/esm/{datepicker.taro-b894c285.js → datepicker.taro-288d64bb.js} +3 -3
  54. package/dist/esm/{dialog.taro-51697911.js → dialog.taro-519e45af.js} +50 -46
  55. package/dist/esm/{empty.taro-cef66b01.js → empty.taro-05f15f93.js} +1 -1
  56. package/dist/esm/{fixednav.taro-04cf5ffb.js → fixednav.taro-0d998d65.js} +1 -1
  57. package/dist/esm/{form.taro-16cb71e2.js → form.taro-6166be06.js} +1 -1
  58. package/dist/esm/{formitem.taro-34af0204.js → formitem.taro-9e2d3898.js} +1 -1
  59. package/dist/esm/{grid.taro-6f1b764c.js → grid.taro-f72acab8.js} +1 -1
  60. package/dist/esm/{griditem.taro-0d03a061.js → griditem.taro-b7abc653.js} +1 -1
  61. package/dist/esm/{imagepreview.taro-167d1380.js → imagepreview.taro-bc96904b.js} +1 -1
  62. package/dist/esm/{configprovider.taro-3a23ea84.js → index-21e61675.js} +26 -504
  63. package/dist/esm/{infiniteloading.taro-590cfd4f.js → infiniteloading.taro-cb3b949e.js} +1 -1
  64. package/dist/esm/{input.taro-abe6d65e.js → input.taro-fbcb7090.js} +2 -2
  65. package/dist/esm/{inputnumber.taro-9c74cc1c.js → inputnumber.taro-2f6f30d7.js} +1 -1
  66. package/dist/esm/{notify.taro-687d6f8c.js → notify.taro-07e9ead7.js} +2 -24
  67. package/dist/esm/{numberkeyboard.taro-42950800.js → numberkeyboard.taro-f19c44a8.js} +1 -1
  68. package/dist/esm/nutui-react.es.js +44 -41
  69. package/dist/esm/{pagination.taro-c2521fdf.js → pagination.taro-47fad28d.js} +2 -2
  70. package/dist/esm/{picker.taro-bd10e4e7.js → picker.taro-0770a67f.js} +2 -2
  71. package/dist/esm/{pulltorefresh.taro-2b4a48be.js → pulltorefresh.taro-f3ab76c2.js} +1 -1
  72. package/dist/esm/{radio.taro-802db0e9.js → radio.taro-d1d370be.js} +1 -1
  73. package/dist/esm/{range.taro-70101605.js → range.taro-fbbf5522.js} +1 -1
  74. package/dist/esm/{rate.taro-f090e140.js → rate.taro-61bbf5a7.js} +1 -1
  75. package/dist/esm/{searchbar.taro-75cf9937.js → searchbar.taro-7daf43fc.js} +1 -1
  76. package/dist/esm/{shortpassword.taro-d400cd45.js → shortpassword.taro-86563915.js} +2 -2
  77. package/dist/esm/{switch.taro-9c344336.js → switch.taro-74b2bd0a.js} +1 -1
  78. package/dist/esm/{tabbar.taro-ac4f72b9.js → tabbar.taro-4397646a.js} +1 -1
  79. package/dist/esm/{table.taro-48e8265e.js → table.taro-072907bf.js} +1 -1
  80. package/dist/esm/{tabs.taro-eceaf324.js → tabs.taro-3ece2221.js} +2 -1
  81. package/dist/esm/{textarea.taro-115dc986.js → textarea.taro-6ebe789c.js} +2 -2
  82. package/dist/esm/{timeselect.taro-e115bfd7.js → timeselect.taro-6e9fc4d4.js} +1 -1
  83. package/dist/esm/{toast.taro-b6ecbca7.js → toast.taro-a907b5f5.js} +28 -9
  84. package/dist/esm/types/src/packages/dialog/config.d.ts +1 -0
  85. package/dist/esm/types/src/packages/dialog/content.taro.d.ts +1 -1
  86. package/dist/esm/types/src/packages/dialog/dialog.taro.d.ts +11 -3
  87. package/dist/esm/types/src/packages/toast/index.taro.d.ts +1 -1
  88. package/dist/esm/types/src/packages/toast/toast.taro.d.ts +12 -1
  89. package/dist/esm/types/src/utils/use-custom-event.d.ts +4 -0
  90. package/dist/esm/{uploader.taro-cdb38c18.js → uploader.taro-c0bcca89.js} +1 -1
  91. package/dist/esm/use-custom-event-e1689884.js +49 -0
  92. package/dist/esm/use-force-update-9cd7c164.js +8 -0
  93. package/dist/esm/{use-props-value-e8331e19.js → use-props-value-c78cbf9b.js} +2 -6
  94. package/dist/esm/{watermark.taro-cea2fceb.js → watermark.taro-311b59d2.js} +1 -1
  95. package/dist/locales/base.js +1 -1
  96. package/dist/locales/en-US.js +1 -1
  97. package/dist/locales/id-ID.js +1 -1
  98. package/dist/locales/tr-TR.js +1 -1
  99. package/dist/locales/zh-CN.js +1 -1
  100. package/dist/locales/zh-TW.js +1 -1
  101. package/dist/locales/zh-UG.js +1 -1
  102. package/dist/nutui.react.es.js +216 -179
  103. package/dist/nutui.react.umd.js +216 -179
  104. package/dist/style.mjs +1 -1
  105. package/dist/types/packages/dialog/config.d.ts +1 -0
  106. package/dist/types/packages/dialog/content.taro.d.ts +1 -1
  107. package/dist/types/packages/dialog/dialog.taro.d.ts +11 -3
  108. package/dist/types/packages/toast/index.taro.d.ts +1 -1
  109. package/dist/types/packages/toast/toast.taro.d.ts +12 -1
  110. package/dist/types/utils/use-custom-event.d.ts +4 -0
  111. package/package.json +5 -4
  112. package/dist/types/packages/dialog/dialogwrap.taro.d.ts +0 -14
package/dist/esm/Toast.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as Toast } from "./toast.taro-b6ecbca7.js";
1
+ import { T as Toast } from "./toast.taro-a907b5f5.js";
2
2
  import "react";
3
3
  import "classnames";
4
4
  import "@nutui/icons-react-taro";
@@ -6,6 +6,10 @@ import "./overlay.taro-626840fc.js";
6
6
  import "react-transition-group";
7
7
  import "@tarojs/components";
8
8
  import "./typings-11d83a22.js";
9
+ import "./use-custom-event-e1689884.js";
10
+ import "./index-21e61675.js";
11
+ import "@tarojs/taro";
12
+ import "./use-force-update-9cd7c164.js";
9
13
  export {
10
14
  Toast as default
11
15
  };
@@ -1,4 +1,4 @@
1
- import { U as Uploader } from "./uploader.taro-cdb38c18.js";
1
+ import { U as Uploader } from "./uploader.taro-c0bcca89.js";
2
2
  import "react";
3
3
  import "classnames";
4
4
  import "@tarojs/taro";
@@ -7,7 +7,8 @@ import "@tarojs/components";
7
7
  import "./button.taro-25f559e1.js";
8
8
  import "./typings-11d83a22.js";
9
9
  import "./progress.taro-421575b9.js";
10
- import "./configprovider.taro-3a23ea84.js";
10
+ import "./configprovider.taro-c5ff4877.js";
11
+ import "./index-21e61675.js";
11
12
  import "./index-e3184f19.js";
12
13
  export {
13
14
  Uploader as default
@@ -1,8 +1,9 @@
1
- import { W as WaterMark } from "./watermark.taro-cea2fceb.js";
1
+ import { W as WaterMark } from "./watermark.taro-311b59d2.js";
2
2
  import "react";
3
3
  import "@tarojs/taro";
4
4
  import "classnames";
5
- import "./configprovider.taro-3a23ea84.js";
5
+ import "./configprovider.taro-c5ff4877.js";
6
+ import "./index-21e61675.js";
6
7
  import "./typings-11d83a22.js";
7
8
  export {
8
9
  WaterMark as default
@@ -1,10 +1,10 @@
1
1
  import React__default, { forwardRef, useState, useImperativeHandle } from "react";
2
2
  import { Check, Location2, Left } from "@nutui/icons-react-taro";
3
3
  import { P as Popup } from "./popup.taro-487eb86e.js";
4
- import { u as useConfig } from "./configprovider.taro-3a23ea84.js";
5
- import { C as Cascader } from "./cascader.taro-e05fd966.js";
4
+ import { u as useConfig } from "./configprovider.taro-c5ff4877.js";
5
+ import { C as Cascader } from "./cascader.taro-ec5179d6.js";
6
6
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
7
- import { u as usePropsValue } from "./use-props-value-e8331e19.js";
7
+ import { u as usePropsValue } from "./use-props-value-c78cbf9b.js";
8
8
  const defaultProps$2 = {
9
9
  type: "custom",
10
10
  existList: [],
@@ -1,9 +1,9 @@
1
1
  import React__default, { useState, useRef } from "react";
2
2
  import { createInnerAudioContext } from "@tarojs/taro";
3
3
  import { Service } from "@nutui/icons-react-taro";
4
- import { R as Range } from "./range.taro-70101605.js";
4
+ import { R as Range } from "./range.taro-fbbf5522.js";
5
5
  import { B as Button } from "./button.taro-25f559e1.js";
6
- import { u as useConfig } from "./configprovider.taro-3a23ea84.js";
6
+ import { u as useConfig } from "./configprovider.taro-c5ff4877.js";
7
7
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
8
8
  const warn = console.warn;
9
9
  const defaultProps = {
@@ -1,7 +1,7 @@
1
1
  import React__default, { useRef } from "react";
2
2
  import { P as Popup } from "./popup.taro-487eb86e.js";
3
- import { U as Utils, C as CalendarItem } from "./calendaritem.taro-9b37d00c.js";
4
- import { u as useConfig } from "./configprovider.taro-3a23ea84.js";
3
+ import { U as Utils, C as CalendarItem } from "./calendaritem.taro-0bd17638.js";
4
+ import { u as useConfig } from "./configprovider.taro-c5ff4877.js";
5
5
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
@@ -4,8 +4,8 @@ import { ScrollView } from "@tarojs/components";
4
4
  import Taro, { nextTick } from "@tarojs/taro";
5
5
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
6
6
  import { r as requestAniFrame } from "./raf-a9ff50ad.js";
7
- import { u as useConfig } from "./configprovider.taro-3a23ea84.js";
8
- import { u as usePropsValue } from "./use-props-value-e8331e19.js";
7
+ import { u as useConfig } from "./configprovider.taro-c5ff4877.js";
8
+ import { u as usePropsValue } from "./use-props-value-c78cbf9b.js";
9
9
  const Utils = {
10
10
  /**
11
11
  * 是否为闫年
@@ -8,9 +8,9 @@ import React__default, { useState, useEffect, isValidElement } from "react";
8
8
  import classNames from "classnames";
9
9
  import { Loading, Checklist } from "@nutui/icons-react-taro";
10
10
  import { P as Popup } from "./popup.taro-487eb86e.js";
11
- import { T as Tabs } from "./tabs.taro-eceaf324.js";
11
+ import { T as Tabs } from "./tabs.taro-3ece2221.js";
12
12
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
13
- import { u as usePropsValue } from "./use-props-value-e8331e19.js";
13
+ import { u as usePropsValue } from "./use-props-value-c78cbf9b.js";
14
14
  const formatTree = (tree, parent, config) => tree.map((node) => {
15
15
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
16
16
  const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
@@ -2,7 +2,7 @@ import React__default, { createContext, useImperativeHandle, useCallback, useCon
2
2
  import { CheckNormal, CheckDisabled, Checked } from "@nutui/icons-react-taro";
3
3
  import classNames from "classnames";
4
4
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
5
- import { u as usePropsValue } from "./use-props-value-e8331e19.js";
5
+ import { u as usePropsValue } from "./use-props-value-c78cbf9b.js";
6
6
  const CheckboxGroupContext = createContext(null);
7
7
  const Context = CheckboxGroupContext;
8
8
  const defaultProps$1 = {
@@ -2,7 +2,7 @@ import React__default, { useCallback } from "react";
2
2
  import classNames from "classnames";
3
3
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
4
4
  import { a as CollapseContext, C as CollapseItem } from "./collapseitem.taro-e99fb1a2.js";
5
- import { u as usePropsValue } from "./use-props-value-e8331e19.js";
5
+ import { u as usePropsValue } from "./use-props-value-c78cbf9b.js";
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
8
8
  defaultActiveName: [],
@@ -0,0 +1,483 @@
1
+ import * as React from "react";
2
+ import React__default, { createContext, useContext } from "react";
3
+ import classNames from "classnames";
4
+ import { c as commonjsGlobal, i as isEqual } from "./index-21e61675.js";
5
+ var INFINITY = 1 / 0;
6
+ var symbolTag = "[object Symbol]";
7
+ var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
8
+ var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
9
+ var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f\\ufe20-\\ufe23", rsComboSymbolsRange = "\\u20d0-\\u20f0", rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
10
+ var rsApos = "['’]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboMarksRange + rsComboSymbolsRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d";
11
+ var rsLowerMisc = "(?:" + rsLower + "|" + rsMisc + ")", rsUpperMisc = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptLowerContr = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptUpperContr = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq;
12
+ var reApos = RegExp(rsApos, "g");
13
+ var reComboMark = RegExp(rsCombo, "g");
14
+ var reUnicodeWord = RegExp([
15
+ rsUpper + "?" + rsLower + "+" + rsOptLowerContr + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")",
16
+ rsUpperMisc + "+" + rsOptUpperContr + "(?=" + [rsBreak, rsUpper + rsLowerMisc, "$"].join("|") + ")",
17
+ rsUpper + "?" + rsLowerMisc + "+" + rsOptLowerContr,
18
+ rsUpper + "+" + rsOptUpperContr,
19
+ rsDigits,
20
+ rsEmoji
21
+ ].join("|"), "g");
22
+ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
23
+ var deburredLetters = {
24
+ // Latin-1 Supplement block.
25
+ "À": "A",
26
+ "Á": "A",
27
+ "Â": "A",
28
+ "Ã": "A",
29
+ "Ä": "A",
30
+ "Å": "A",
31
+ "à": "a",
32
+ "á": "a",
33
+ "â": "a",
34
+ "ã": "a",
35
+ "ä": "a",
36
+ "å": "a",
37
+ "Ç": "C",
38
+ "ç": "c",
39
+ "Ð": "D",
40
+ "ð": "d",
41
+ "È": "E",
42
+ "É": "E",
43
+ "Ê": "E",
44
+ "Ë": "E",
45
+ "è": "e",
46
+ "é": "e",
47
+ "ê": "e",
48
+ "ë": "e",
49
+ "Ì": "I",
50
+ "Í": "I",
51
+ "Î": "I",
52
+ "Ï": "I",
53
+ "ì": "i",
54
+ "í": "i",
55
+ "î": "i",
56
+ "ï": "i",
57
+ "Ñ": "N",
58
+ "ñ": "n",
59
+ "Ò": "O",
60
+ "Ó": "O",
61
+ "Ô": "O",
62
+ "Õ": "O",
63
+ "Ö": "O",
64
+ "Ø": "O",
65
+ "ò": "o",
66
+ "ó": "o",
67
+ "ô": "o",
68
+ "õ": "o",
69
+ "ö": "o",
70
+ "ø": "o",
71
+ "Ù": "U",
72
+ "Ú": "U",
73
+ "Û": "U",
74
+ "Ü": "U",
75
+ "ù": "u",
76
+ "ú": "u",
77
+ "û": "u",
78
+ "ü": "u",
79
+ "Ý": "Y",
80
+ "ý": "y",
81
+ "ÿ": "y",
82
+ "Æ": "Ae",
83
+ "æ": "ae",
84
+ "Þ": "Th",
85
+ "þ": "th",
86
+ "ß": "ss",
87
+ // Latin Extended-A block.
88
+ "Ā": "A",
89
+ "Ă": "A",
90
+ "Ą": "A",
91
+ "ā": "a",
92
+ "ă": "a",
93
+ "ą": "a",
94
+ "Ć": "C",
95
+ "Ĉ": "C",
96
+ "Ċ": "C",
97
+ "Č": "C",
98
+ "ć": "c",
99
+ "ĉ": "c",
100
+ "ċ": "c",
101
+ "č": "c",
102
+ "Ď": "D",
103
+ "Đ": "D",
104
+ "ď": "d",
105
+ "đ": "d",
106
+ "Ē": "E",
107
+ "Ĕ": "E",
108
+ "Ė": "E",
109
+ "Ę": "E",
110
+ "Ě": "E",
111
+ "ē": "e",
112
+ "ĕ": "e",
113
+ "ė": "e",
114
+ "ę": "e",
115
+ "ě": "e",
116
+ "Ĝ": "G",
117
+ "Ğ": "G",
118
+ "Ġ": "G",
119
+ "Ģ": "G",
120
+ "ĝ": "g",
121
+ "ğ": "g",
122
+ "ġ": "g",
123
+ "ģ": "g",
124
+ "Ĥ": "H",
125
+ "Ħ": "H",
126
+ "ĥ": "h",
127
+ "ħ": "h",
128
+ "Ĩ": "I",
129
+ "Ī": "I",
130
+ "Ĭ": "I",
131
+ "Į": "I",
132
+ "İ": "I",
133
+ "ĩ": "i",
134
+ "ī": "i",
135
+ "ĭ": "i",
136
+ "į": "i",
137
+ "ı": "i",
138
+ "Ĵ": "J",
139
+ "ĵ": "j",
140
+ "Ķ": "K",
141
+ "ķ": "k",
142
+ "ĸ": "k",
143
+ "Ĺ": "L",
144
+ "Ļ": "L",
145
+ "Ľ": "L",
146
+ "Ŀ": "L",
147
+ "Ł": "L",
148
+ "ĺ": "l",
149
+ "ļ": "l",
150
+ "ľ": "l",
151
+ "ŀ": "l",
152
+ "ł": "l",
153
+ "Ń": "N",
154
+ "Ņ": "N",
155
+ "Ň": "N",
156
+ "Ŋ": "N",
157
+ "ń": "n",
158
+ "ņ": "n",
159
+ "ň": "n",
160
+ "ŋ": "n",
161
+ "Ō": "O",
162
+ "Ŏ": "O",
163
+ "Ő": "O",
164
+ "ō": "o",
165
+ "ŏ": "o",
166
+ "ő": "o",
167
+ "Ŕ": "R",
168
+ "Ŗ": "R",
169
+ "Ř": "R",
170
+ "ŕ": "r",
171
+ "ŗ": "r",
172
+ "ř": "r",
173
+ "Ś": "S",
174
+ "Ŝ": "S",
175
+ "Ş": "S",
176
+ "Š": "S",
177
+ "ś": "s",
178
+ "ŝ": "s",
179
+ "ş": "s",
180
+ "š": "s",
181
+ "Ţ": "T",
182
+ "Ť": "T",
183
+ "Ŧ": "T",
184
+ "ţ": "t",
185
+ "ť": "t",
186
+ "ŧ": "t",
187
+ "Ũ": "U",
188
+ "Ū": "U",
189
+ "Ŭ": "U",
190
+ "Ů": "U",
191
+ "Ű": "U",
192
+ "Ų": "U",
193
+ "ũ": "u",
194
+ "ū": "u",
195
+ "ŭ": "u",
196
+ "ů": "u",
197
+ "ű": "u",
198
+ "ų": "u",
199
+ "Ŵ": "W",
200
+ "ŵ": "w",
201
+ "Ŷ": "Y",
202
+ "ŷ": "y",
203
+ "Ÿ": "Y",
204
+ "Ź": "Z",
205
+ "Ż": "Z",
206
+ "Ž": "Z",
207
+ "ź": "z",
208
+ "ż": "z",
209
+ "ž": "z",
210
+ "IJ": "IJ",
211
+ "ij": "ij",
212
+ "Œ": "Oe",
213
+ "œ": "oe",
214
+ "ʼn": "'n",
215
+ "ſ": "ss"
216
+ };
217
+ var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
218
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
219
+ var root = freeGlobal || freeSelf || Function("return this")();
220
+ function arrayReduce(array, iteratee, accumulator, initAccum) {
221
+ var index = -1, length = array ? array.length : 0;
222
+ if (initAccum && length) {
223
+ accumulator = array[++index];
224
+ }
225
+ while (++index < length) {
226
+ accumulator = iteratee(accumulator, array[index], index, array);
227
+ }
228
+ return accumulator;
229
+ }
230
+ function asciiWords(string) {
231
+ return string.match(reAsciiWord) || [];
232
+ }
233
+ function basePropertyOf(object) {
234
+ return function(key) {
235
+ return object == null ? void 0 : object[key];
236
+ };
237
+ }
238
+ var deburrLetter = basePropertyOf(deburredLetters);
239
+ function hasUnicodeWord(string) {
240
+ return reHasUnicodeWord.test(string);
241
+ }
242
+ function unicodeWords(string) {
243
+ return string.match(reUnicodeWord) || [];
244
+ }
245
+ var objectProto = Object.prototype;
246
+ var objectToString = objectProto.toString;
247
+ var Symbol$1 = root.Symbol;
248
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
249
+ function baseToString(value) {
250
+ if (typeof value == "string") {
251
+ return value;
252
+ }
253
+ if (isSymbol(value)) {
254
+ return symbolToString ? symbolToString.call(value) : "";
255
+ }
256
+ var result = value + "";
257
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
258
+ }
259
+ function createCompounder(callback) {
260
+ return function(string) {
261
+ return arrayReduce(words(deburr(string).replace(reApos, "")), callback, "");
262
+ };
263
+ }
264
+ function isObjectLike(value) {
265
+ return !!value && typeof value == "object";
266
+ }
267
+ function isSymbol(value) {
268
+ return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
269
+ }
270
+ function toString(value) {
271
+ return value == null ? "" : baseToString(value);
272
+ }
273
+ function deburr(string) {
274
+ string = toString(string);
275
+ return string && string.replace(reLatin, deburrLetter).replace(reComboMark, "");
276
+ }
277
+ var kebabCase = createCompounder(function(result, word, index) {
278
+ return result + (index ? "-" : "") + word.toLowerCase();
279
+ });
280
+ function words(string, pattern, guard) {
281
+ string = toString(string);
282
+ pattern = guard ? void 0 : pattern;
283
+ if (pattern === void 0) {
284
+ return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
285
+ }
286
+ return string.match(pattern) || [];
287
+ }
288
+ var lodash_kebabcase = kebabCase;
289
+ function useMemo(getValue, condition, shouldUpdate) {
290
+ const cacheRef = React.useRef({});
291
+ if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
292
+ cacheRef.current.value = getValue();
293
+ cacheRef.current.condition = condition;
294
+ }
295
+ return cacheRef.current.value;
296
+ }
297
+ const zhCN = {
298
+ save: "保存",
299
+ confirm: "确认",
300
+ cancel: "取消",
301
+ done: "完成",
302
+ noData: "暂无数据",
303
+ placeholder: "请输入内容",
304
+ select: "请选择",
305
+ video: {
306
+ errorTip: "视频加载失败",
307
+ clickRetry: "点击重试"
308
+ },
309
+ fixednav: {
310
+ activeText: "收起导航",
311
+ inactiveText: "快速导航"
312
+ },
313
+ infiniteloading: {
314
+ pullRefreshText: "松开刷新",
315
+ loadText: "加载中……",
316
+ loadMoreText: "哎呀,这里是底部了啦"
317
+ },
318
+ pagination: {
319
+ prev: "上一页",
320
+ next: "下一页"
321
+ },
322
+ range: {
323
+ rangeText: "不在该区间内"
324
+ },
325
+ calendaritem: {
326
+ weekdays: ["日", "一", "二", "三", "四", "五", "六"],
327
+ end: "结束",
328
+ start: "开始",
329
+ confirm: "确认",
330
+ title: "日历选择",
331
+ monthTitle: (year, month) => `${year}年${Number(month) < 10 ? `0${Number(month)}` : month}月`,
332
+ today: "今天",
333
+ loadPreviousMonth: "加载上一个月",
334
+ noEarlierMonth: "没有更早月份"
335
+ },
336
+ shortpassword: {
337
+ title: "请输入密码",
338
+ description: "您使用了虚拟资产,请进行验证",
339
+ tips: "忘记密码"
340
+ },
341
+ uploader: {
342
+ ready: "准备完成",
343
+ readyUpload: "准备上传",
344
+ waitingUpload: "等待上传",
345
+ uploading: "上传中...",
346
+ success: "上传成功",
347
+ error: "上传失败",
348
+ deleteWord: "用户阻止了删除!"
349
+ },
350
+ countdown: {
351
+ day: "天",
352
+ hour: "时",
353
+ minute: "分",
354
+ second: "秒"
355
+ },
356
+ address: {
357
+ selectRegion: "请选择地址",
358
+ deliveryTo: "配送至",
359
+ chooseAnotherAddress: "选择其他地址"
360
+ },
361
+ signature: {
362
+ reSign: "重签",
363
+ unsupported: "对不起,当前浏览器不支持Canvas,无法使用本控件!"
364
+ },
365
+ ecard: {
366
+ chooseText: "请选择电子卡面值",
367
+ otherValueText: "其他面值",
368
+ placeholder: "请输入1-5000整数"
369
+ },
370
+ timeselect: {
371
+ pickupTime: "取件时间"
372
+ },
373
+ sku: {
374
+ buyNow: "立即购买",
375
+ buyNumber: "购买数量",
376
+ addToCard: "加入购物车"
377
+ },
378
+ skuheader: {
379
+ skuId: "商品编号"
380
+ },
381
+ addresslist: {
382
+ addAddress: "新建地址"
383
+ },
384
+ comment: {
385
+ complaintsText: "我要投诉",
386
+ additionalReview: (day) => `购买${day}天后追评`,
387
+ additionalImages: (length) => `${length}张追评图片`
388
+ },
389
+ searchbar: {
390
+ basePlaceholder: "上京东,购好物",
391
+ text: "文本",
392
+ test: "测试",
393
+ title1: "基础用法",
394
+ title2: "搜索框形状及最大长度",
395
+ title3: "搜索框内外背景设置",
396
+ title4: "搜索框文本设置",
397
+ title5: "自定义图标设置",
398
+ title6: "数据改变监听"
399
+ },
400
+ audio: {
401
+ back: "快退",
402
+ forward: "快进",
403
+ pause: "暂停",
404
+ start: "开始",
405
+ mute: "静音",
406
+ tips: "onPlayEnd事件在loop=false时才会触发"
407
+ },
408
+ datepicker: {
409
+ year: "年",
410
+ month: "月",
411
+ day: "日",
412
+ hour: "时",
413
+ min: "分",
414
+ seconds: "秒"
415
+ },
416
+ pullToRefresh: {
417
+ pullingText: "下拉刷新",
418
+ canReleaseText: "松开刷新",
419
+ refreshingText: "加载中...",
420
+ completeText: "刷新成功"
421
+ },
422
+ tour: {
423
+ prevStepText: "上一步",
424
+ completeText: "完成",
425
+ nextStepText: "下一步"
426
+ },
427
+ watermark: {
428
+ errorCanvasTips: "当前环境不支持Canvas"
429
+ }
430
+ };
431
+ const classPrefix = "nut-configprovider";
432
+ const defaultConfigRef = {
433
+ current: {
434
+ locale: zhCN
435
+ }
436
+ };
437
+ const setDefaultConfig = (config) => {
438
+ defaultConfigRef.current = config;
439
+ };
440
+ const getDefaultConfig = () => {
441
+ return defaultConfigRef.current;
442
+ };
443
+ const ConfigContext = createContext(null);
444
+ const useConfig = () => {
445
+ return useContext(ConfigContext) ?? getDefaultConfig();
446
+ };
447
+ function convertThemeVarsToCSSVars(themeVars) {
448
+ const cssVars = {};
449
+ Object.keys(themeVars).forEach((key) => {
450
+ cssVars[`--${lodash_kebabcase(key)}`] = themeVars[key];
451
+ });
452
+ return cssVars;
453
+ }
454
+ const ConfigProvider = (props) => {
455
+ const { style, className, children, ...config } = props;
456
+ const mergedConfig = useMemo(() => {
457
+ return {
458
+ ...getDefaultConfig(),
459
+ ...config
460
+ };
461
+ }, [config], (prev, next) => prev.some((prevTheme, index) => {
462
+ const nextTheme = next[index];
463
+ return !isEqual(prevTheme, nextTheme);
464
+ }));
465
+ const cssVarStyle = React__default.useMemo(() => {
466
+ return convertThemeVarsToCSSVars(mergedConfig.theme || {});
467
+ }, [mergedConfig.theme]);
468
+ return React__default.createElement(
469
+ ConfigContext.Provider,
470
+ { value: mergedConfig },
471
+ React__default.createElement("div", { className: classNames(classPrefix, className), style: {
472
+ ...cssVarStyle,
473
+ ...style
474
+ } }, children)
475
+ );
476
+ };
477
+ ConfigProvider.displayName = "NutConfigProvider";
478
+ export {
479
+ ConfigProvider as C,
480
+ getDefaultConfig as g,
481
+ setDefaultConfig as s,
482
+ useConfig as u
483
+ };
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useRef, useImperativeHandle, useEffect } from "react";
2
- import { u as useConfig } from "./configprovider.taro-3a23ea84.js";
2
+ import { u as useConfig } from "./configprovider.taro-c5ff4877.js";
3
3
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
4
4
  const defaultProps = {
5
5
  ...ComponentDefaults,
@@ -1,8 +1,8 @@
1
1
  import React__default, { useState, useEffect } from "react";
2
2
  import { View } from "@tarojs/components";
3
- import { P as Picker } from "./picker.taro-bd10e4e7.js";
4
- import { u as useConfig } from "./configprovider.taro-3a23ea84.js";
5
- import { u as usePropsValue } from "./use-props-value-e8331e19.js";
3
+ import { P as Picker } from "./picker.taro-0770a67f.js";
4
+ import { u as useConfig } from "./configprovider.taro-c5ff4877.js";
5
+ import { u as usePropsValue } from "./use-props-value-c78cbf9b.js";
6
6
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
7
7
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
8
8
  const defaultProps = {