@nutui/nutui-react-taro 2.6.7 → 2.6.9

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 (50) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/Address.js +1 -1
  4. package/dist/esm/Audio.js +1 -1
  5. package/dist/esm/AvatarCropper.js +1 -1
  6. package/dist/esm/Button.js +1 -1
  7. package/dist/esm/Card.js +1 -1
  8. package/dist/esm/Cascader.js +1 -1
  9. package/dist/esm/DatePicker.js +1 -1
  10. package/dist/esm/Dialog.js +1 -1
  11. package/dist/esm/Drag/style/style.css +1 -1
  12. package/dist/esm/Drag.js +1 -1
  13. package/dist/esm/Empty.js +1 -1
  14. package/dist/esm/Form.js +1 -1
  15. package/dist/esm/InputNumber.js +1 -1
  16. package/dist/esm/Picker.js +1 -1
  17. package/dist/esm/SearchBar.js +1 -1
  18. package/dist/esm/Uploader.js +1 -1
  19. package/dist/esm/{address.taro-6VS1YZ0V.js → address.taro-D0tjP5C1.js} +1 -1
  20. package/dist/esm/{audio.taro-4ixA5lb2.js → audio.taro-BlniN99d.js} +1 -1
  21. package/dist/esm/{avatarcropper.taro-C9BoO5Lp.js → avatarcropper.taro-D6yiXZM5.js} +1 -1
  22. package/dist/esm/{button.taro-CjH840d8.js → button.taro-KHyp8jxX.js} +2 -2
  23. package/dist/esm/{card.taro-Co0BZGJI.js → card.taro-CC0SLA0p.js} +5 -5
  24. package/dist/esm/{cascader.taro-CZkUgupN.js → cascader.taro-c6WPcYsc.js} +2 -2
  25. package/dist/esm/{datepicker.taro-B7H4b8TO.js → datepicker.taro-CcP4XLtj.js} +1 -1
  26. package/dist/esm/{dialog.taro-Du4bNKvD.js → dialog.taro-jZ6_EUiF.js} +1 -1
  27. package/dist/esm/{drag.taro-D6xGnWqk.js → drag.taro-CBNVFciU.js} +10 -5
  28. package/dist/esm/{empty.taro-DgmUYpBc.js → empty.taro-ek_1_FoA.js} +1 -1
  29. package/dist/esm/{inputnumber.taro-ByJ9DlU2.js → inputnumber.taro-CzuJKfES.js} +4 -4
  30. package/dist/esm/nutui-react.es.js +14 -14
  31. package/dist/esm/{picker.taro-CHsDIw4C.js → picker.taro-D3G6mJ-I.js} +1 -1
  32. package/dist/esm/{searchbar.taro-B31m8apz.js → searchbar.taro-BptyG-eR.js} +1 -0
  33. package/dist/esm/{uploader.taro-BE4c5x9T.js → uploader.taro-CAKO74Mg.js} +4 -4
  34. package/dist/locales/base.js +1 -1
  35. package/dist/locales/en-US.js +1 -1
  36. package/dist/locales/id-ID.js +1 -1
  37. package/dist/locales/tr-TR.js +1 -1
  38. package/dist/locales/zh-CN.js +1 -1
  39. package/dist/locales/zh-TW.js +1 -1
  40. package/dist/locales/zh-UG.js +1 -1
  41. package/dist/nutui.react.es.js +52 -20
  42. package/dist/nutui.react.umd.js +52 -20
  43. package/dist/packages/actionsheet/actionsheet.scss +0 -3
  44. package/dist/packages/drag/drag.scss +7 -3
  45. package/dist/style.css +1 -1
  46. package/dist/style.mjs +1 -1
  47. package/dist/types/packages/button/button.taro.d.ts +5 -0
  48. package/dist/types/packages/searchbar/searchbar.d.ts +1 -1
  49. package/dist/types/packages/searchbar/searchbar.taro.d.ts +1 -1
  50. package/package.json +1 -1
package/dist/style.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.7 Tue May 28 2024 17:30:14 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.9 Fri Jun 14 2024 17:06:46 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -59,6 +59,11 @@ export interface ButtonProps extends BasicComponent, OmitMiniProgramButtonProps
59
59
  */
60
60
  rightIcon: React.ReactNode
61
61
  /**
62
+ * 按钮原始类型
63
+ * @default button
64
+ */
65
+ nativeType: 'submit' | 'reset' | 'button'
66
+ /**
62
67
  * 点击按钮时触发
63
68
  * @default -
64
69
  */
@@ -26,7 +26,7 @@ export interface SearchBarProps extends BasicComponent {
26
26
  /** 确定搜索时触发 */
27
27
  onSearch?: (val: string) => void;
28
28
  /** 输入框内容变化时触发 */
29
- onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
29
+ onChange?: (value: string, event?: ChangeEvent<HTMLInputElement>) => void;
30
30
  /** 输入框获得焦点时触发 */
31
31
  onFocus?: (value: string, event: FocusEvent<HTMLInputElement>) => void;
32
32
  /** 输入框失去焦点时触发 */
@@ -76,7 +76,7 @@ export interface SearchBarProps extends BasicComponent {
76
76
  * 输入内容时触发
77
77
  * @default -
78
78
  */
79
- onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
79
+ onChange?: (value: string, event?: ChangeEvent<HTMLInputElement>) => void;
80
80
  /**
81
81
  * 聚焦时触发
82
82
  * @default -
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react-taro",
3
- "version": "2.6.7",
3
+ "version": "2.6.9",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",