@nutui/nutui-react-taro 1.4.6 → 1.4.7-beta.1

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 (116) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/esm/ActionSheet.js +3 -3
  3. package/dist/esm/Address.js +4 -4
  4. package/dist/esm/Audio.js +3 -3
  5. package/dist/esm/Avatar.js +3 -3
  6. package/dist/esm/Button.js +2 -2
  7. package/dist/esm/Calendar.js +3 -3
  8. package/dist/esm/Card.js +4 -4
  9. package/dist/esm/Cascader.js +3 -3
  10. package/dist/esm/DatePicker.js +4 -4
  11. package/dist/esm/Dialog.js +3 -3
  12. package/dist/esm/Elevator.js +2 -2
  13. package/dist/esm/ImagePreview.js +4 -4
  14. package/dist/esm/Notify.js +2 -2
  15. package/dist/esm/NumberKeyboard.js +3 -3
  16. package/dist/esm/Picker.js +3 -3
  17. package/dist/esm/Popup.js +2 -2
  18. package/dist/esm/Progress.js +3 -3
  19. package/dist/esm/Radio.js +1 -1
  20. package/dist/esm/RadioGroup.js +2 -2
  21. package/dist/esm/SearchBar.js +2 -2
  22. package/dist/esm/ShortPassword.js +3 -3
  23. package/dist/esm/SideNavBar.js +3 -3
  24. package/dist/esm/Signature.js +3 -3
  25. package/dist/esm/Skeleton.js +4 -4
  26. package/dist/esm/Swipe.js +2 -2
  27. package/dist/esm/Swiper.js +2 -2
  28. package/dist/esm/Tabbar.js +2 -2
  29. package/dist/esm/TabbarItem.js +2 -2
  30. package/dist/esm/Tag.js +3 -3
  31. package/dist/esm/TimeSelect.js +3 -3
  32. package/dist/esm/Uploader.js +4 -5
  33. package/dist/esm/{actionsheet.taro-27121a38.js → actionsheet.taro-166ce936.js} +1 -1
  34. package/dist/esm/{address.taro-1765a37c.js → address.taro-55f308f1.js} +2 -2
  35. package/dist/esm/{audio.taro-cf530b91.js → audio.taro-c2cdbe18.js} +1 -1
  36. package/dist/esm/{avatar.taro-1d2bf09a.js → avatar.taro-c17c3d15.js} +1 -1
  37. package/dist/esm/{button.taro-b7c5f5a7.js → button.taro-dc4795a3.js} +4 -2
  38. package/dist/esm/{calendar.taro-05c40d76.js → calendar.taro-02479e8b.js} +1 -1
  39. package/dist/esm/{card.taro-7e85c3da.js → card.taro-a03f0dfc.js} +1 -1
  40. package/dist/esm/{cascader.taro-66462c03.js → cascader.taro-e6610dd1.js} +1 -1
  41. package/dist/esm/{datepicker.taro-8507d826.js → datepicker.taro-c61c6586.js} +1 -1
  42. package/dist/esm/{dialog.taro-0f64e21a.js → dialog.taro-54df2e3f.js} +1 -1
  43. package/dist/esm/{elevator.taro-68cfaaee.js → elevator.taro-1d749ab0.js} +1 -0
  44. package/dist/esm/{imagepreview.taro-83481e13.js → imagepreview.taro-2d23d0ae.js} +2 -2
  45. package/dist/esm/{index.taro-cd52b23f.js → index.taro-84346556.js} +8 -4
  46. package/dist/esm/{notify.taro-308e5892.js → notify.taro-c9ea8d68.js} +1 -1
  47. package/dist/esm/{numberkeyboard.taro-d2ccbce5.js → numberkeyboard.taro-c6b5b0e1.js} +4 -3
  48. package/dist/esm/nutui-react.es.js +30 -30
  49. package/dist/esm/{picker.taro-6128297f.js → picker.taro-fa937ea1.js} +1 -1
  50. package/dist/esm/{popup.taro-89809b25.js → popup.taro-4c18f46c.js} +3 -2
  51. package/dist/esm/{progress.taro-18e015e4.js → progress.taro-773482ed.js} +4 -7
  52. package/dist/esm/{searchbar.taro-141827e2.js → searchbar.taro-6864f7bc.js} +3 -2
  53. package/dist/esm/{shortpassword.taro-e1f53ee7.js → shortpassword.taro-02ea4499.js} +1 -1
  54. package/dist/esm/{sidenavbar.taro-f44d12ac.js → sidenavbar.taro-51a133e6.js} +1 -1
  55. package/dist/esm/{signature.taro-d7a70ce0.js → signature.taro-45d1dde3.js} +1 -1
  56. package/dist/esm/{skeleton.taro-6821b2c6.js → skeleton.taro-38e2fca2.js} +1 -1
  57. package/dist/esm/{swipe.taro-e6c2b808.js → swipe.taro-1eb95b21.js} +5 -2
  58. package/dist/esm/{swiper.taro-852f6615.js → swiper.taro-8164df5b.js} +4 -0
  59. package/dist/esm/{tabbar.taro-86cece39.js → tabbar.taro-08e48c43.js} +1 -1
  60. package/dist/esm/{tabbaritem.taro-f4a91070.js → tabbaritem.taro-3643f585.js} +7 -7
  61. package/dist/esm/{tag.taro-213ec444.js → tag.taro-64f37bd9.js} +5 -3
  62. package/dist/esm/{timeselect.taro-b04b1538.js → timeselect.taro-4fb46162.js} +1 -1
  63. package/dist/esm/types/src/packages/button/button.d.ts +1 -0
  64. package/dist/esm/types/src/packages/button/button.taro.d.ts +1 -0
  65. package/dist/esm/types/src/packages/elevator/elevator.d.ts +3 -1
  66. package/dist/esm/types/src/packages/elevator/elevator.taro.d.ts +3 -1
  67. package/dist/esm/types/src/packages/formitem/formitem.d.ts +1 -0
  68. package/dist/esm/types/src/packages/notify/notify.d.ts +0 -1
  69. package/dist/esm/types/src/packages/numberkeyboard/numberkeyboard.d.ts +1 -0
  70. package/dist/esm/types/src/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -0
  71. package/dist/esm/types/src/packages/popup/popup.d.ts +1 -0
  72. package/dist/esm/types/src/packages/popup/popup.taro.d.ts +1 -0
  73. package/dist/esm/types/src/packages/progress/progress.d.ts +0 -1
  74. package/dist/esm/types/src/packages/progress/progress.taro.d.ts +0 -1
  75. package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +1 -0
  76. package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +1 -0
  77. package/dist/esm/types/src/packages/swipe/swipe.d.ts +4 -1
  78. package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +4 -1
  79. package/dist/esm/types/src/packages/tabbar/demo.d.ts +1 -0
  80. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +1 -0
  81. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +1 -0
  82. package/dist/esm/types/src/packages/tag/tag.d.ts +1 -0
  83. package/dist/esm/types/src/packages/tag/tag.taro.d.ts +1 -0
  84. package/dist/esm/{uploader.taro-1d745f4a.js → uploader.taro-b7b770e6.js} +2 -2
  85. package/dist/locales/base.js +1 -1
  86. package/dist/locales/en-US.js +1 -1
  87. package/dist/locales/id-ID.js +1 -1
  88. package/dist/locales/zh-CN.js +1 -1
  89. package/dist/locales/zh-TW.js +1 -1
  90. package/dist/locales/zh-UG.js +1 -1
  91. package/dist/nutui.react.es.js +78 -43
  92. package/dist/nutui.react.umd.js +78 -43
  93. package/dist/packages/address/address.scss +23 -2
  94. package/dist/packages/button/button.scss +23 -1
  95. package/dist/packages/calendar/calendar.scss +3 -3
  96. package/dist/packages/elevator/elevator.scss +1 -1
  97. package/dist/packages/numberkeyboard/numberkeyboard.scss +10 -2
  98. package/dist/packages/popup/popup.scss +4 -4
  99. package/dist/packages/progress/progress.scss +26 -3
  100. package/dist/packages/radio/radio.scss +1 -1
  101. package/dist/packages/radiogroup/radiogroup.scss +15 -2
  102. package/dist/packages/searchbar/searchbar.scss +35 -7
  103. package/dist/packages/shortpassword/shortpassword.scss +12 -1
  104. package/dist/packages/swiper/swiper.scss +1 -1
  105. package/dist/packages/switch/switch.scss +15 -2
  106. package/dist/packages/tabbar/tabbar.scss +17 -3
  107. package/dist/packages/tabbaritem/tabbaritem.scss +26 -17
  108. package/dist/packages/tag/tag.scss +3 -1
  109. package/dist/style.css +1 -1
  110. package/dist/style.es.js +1 -1
  111. package/dist/styles/theme-dark.scss +1 -0
  112. package/dist/styles/theme-default.scss +1 -0
  113. package/dist/styles/variables.scss +100 -19
  114. package/dist/types/index.d.ts +14 -3
  115. package/package.json +8 -7
  116. package/dist/styles/temp.scss +0 -2340
@@ -1,13 +1,14 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import { c as cn } from './bem-893ad28d.js';
4
- import { P as Popup } from './popup.taro-89809b25.js';
4
+ import { P as Popup } from './popup.taro-4c18f46c.js';
5
5
  import { u as useConfig } from './configprovider.taro-26882dd2.js';
6
6
 
7
7
  const defaultProps = {
8
8
  confirmText: '',
9
9
  title: '',
10
10
  visible: false,
11
+ overlay: false,
11
12
  type: 'default',
12
13
  customKey: [],
13
14
  className: '',
@@ -17,7 +18,7 @@ const defaultProps = {
17
18
  };
18
19
  const NumberKeyboard = (props) => {
19
20
  const { locale } = useConfig();
20
- const { title, confirmText, visible, type, customKey, randomKeys, popClass, style, className, onChange, onDelete, onClose, } = props;
21
+ const { title, confirmText, visible, overlay, type, customKey, randomKeys, popClass, style, className, onChange, onDelete, onClose, } = props;
21
22
  const b = cn('numberkeyboard');
22
23
  const [show, setShow] = useState(visible);
23
24
  const [clickKeyIndex, setClickKeyIndex] = useState(undefined);
@@ -114,7 +115,7 @@ const NumberKeyboard = (props) => {
114
115
  setClickKeyIndex(undefined);
115
116
  };
116
117
  return (React__default.createElement("div", null,
117
- React__default.createElement(Popup, { visible: show, position: "bottom", popClass: popClass, onClickOverlay: onClose, onClickCloseIcon: onClose, overlayStyle: { backgroundColor: 'rgba(0, 0, 0, 0)' } },
118
+ React__default.createElement(Popup, { visible: show, overlay: overlay, position: "bottom", popClass: popClass, onClickOverlay: onClose, onClickCloseIcon: onClose, overlayStyle: { backgroundColor: 'rgba(0, 0, 0, 0)' } },
118
119
  React__default.createElement("div", { className: `${b()} ${className}`, style: { ...style } },
119
120
  title ? (React__default.createElement("div", { className: b('header') },
120
121
  React__default.createElement("h3", { className: b('header__tit') }, title),
@@ -1,11 +1,11 @@
1
- export { B as Button } from './button.taro-b7c5f5a7.js';
1
+ export { B as Button } from './button.taro-dc4795a3.js';
2
2
  export { C as Cell } from './cell.taro-e877cf12.js';
3
3
  export { C as CellGroup } from './cellgroup.taro-e094471c.js';
4
4
  export { C as ConfigProvider } from './configprovider.taro-26882dd2.js';
5
5
  export { I as Icon } from './icon.taro-c9254a81.js';
6
6
  export { I as Image } from './image.taro-1d867416.js';
7
7
  export { O as Overlay } from './overlay.taro-1e74a71d.js';
8
- export { P as Popup } from './popup.taro-89809b25.js';
8
+ export { P as Popup } from './popup.taro-4c18f46c.js';
9
9
  export { C as Col } from './col.taro-b61c7cba.js';
10
10
  export { D as Divider } from './divider.taro-5236fe6a.js';
11
11
  export { G as Grid } from './grid.taro-e6decfce.js';
@@ -13,52 +13,52 @@ export { G as GridItem } from './griditem.taro-5406bd2c.js';
13
13
  export { L as Layout } from './layout.taro-358f014f.js';
14
14
  export { R as Row } from './row.taro-37a895de.js';
15
15
  export { S as Sticky } from './sticky.taro-2d9b2804.js';
16
- export { E as Elevator } from './elevator.taro-68cfaaee.js';
16
+ export { E as Elevator } from './elevator.taro-1d749ab0.js';
17
17
  export { F as FixedNav } from './fixednav.taro-84930e08.js';
18
18
  export { I as Indicator } from './indicator.taro-183ea169.js';
19
19
  export { M as Menu } from './menu.taro-e5b84501.js';
20
20
  export { M as MenuItem } from './menuitem.taro-f2129be6.js';
21
21
  export { N as NavBar } from './navbar.taro-70514adf.js';
22
22
  export { P as Pagination } from './pagination.taro-bb490de9.js';
23
- export { S as SideNavBar } from './sidenavbar.taro-f44d12ac.js';
23
+ export { S as SideNavBar } from './sidenavbar.taro-51a133e6.js';
24
24
  export { S as SideNavBarItem } from './sidenavbaritem.taro-fee11d26.js';
25
25
  export { S as SubSideNavBar } from './subsidenavbar.taro-f46b4c73.js';
26
- export { T as Tabbar } from './tabbar.taro-86cece39.js';
27
- export { T as TabbarItem } from './tabbaritem.taro-f4a91070.js';
26
+ export { T as Tabbar } from './tabbar.taro-08e48c43.js';
27
+ export { T as TabbarItem } from './tabbaritem.taro-3643f585.js';
28
28
  export { T as TabPane } from './tabpane.taro-91cd6cf4.js';
29
29
  export { T as Tabs } from './tabs.taro-5030ce68.js';
30
- export { C as Calendar } from './calendar.taro-05c40d76.js';
30
+ export { C as Calendar } from './calendar.taro-02479e8b.js';
31
31
  export { C as CalendarItem } from './calendaritem.taro-3cfd4186.js';
32
- export { C as Cascader } from './cascader.taro-66462c03.js';
32
+ export { C as Cascader } from './cascader.taro-e6610dd1.js';
33
33
  export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-04da7151.js';
34
- export { D as DatePicker } from './datepicker.taro-8507d826.js';
34
+ export { D as DatePicker } from './datepicker.taro-c61c6586.js';
35
35
  export { F as Form } from './form.taro-ce791a58.js';
36
36
  export { F as FormItem } from './formitem.taro-f2ed02d4.js';
37
37
  export { I as Input } from './input.taro-991945d1.js';
38
38
  export { I as InputNumber } from './inputnumber.taro-e909d932.js';
39
- export { N as NumberKeyboard } from './numberkeyboard.taro-d2ccbce5.js';
40
- export { P as Picker } from './picker.taro-6128297f.js';
41
- export { R as Radio, a as RadioGroup } from './index.taro-cd52b23f.js';
39
+ export { N as NumberKeyboard } from './numberkeyboard.taro-c6b5b0e1.js';
40
+ export { P as Picker } from './picker.taro-fa937ea1.js';
41
+ export { R as Radio, a as RadioGroup } from './index.taro-84346556.js';
42
42
  export { R as Range } from './range.taro-b628f1ed.js';
43
43
  export { R as Rate } from './rate.taro-17b84a51.js';
44
- export { S as SearchBar } from './searchbar.taro-141827e2.js';
45
- export { S as ShortPassword } from './shortpassword.taro-e1f53ee7.js';
44
+ export { S as SearchBar } from './searchbar.taro-6864f7bc.js';
45
+ export { S as ShortPassword } from './shortpassword.taro-02ea4499.js';
46
46
  export { T as TextArea } from './textarea.taro-42600f8c.js';
47
- export { U as Uploader } from './uploader.taro-1d745f4a.js';
48
- export { A as ActionSheet } from './actionsheet.taro-27121a38.js';
47
+ export { U as Uploader } from './uploader.taro-b7b770e6.js';
48
+ export { A as ActionSheet } from './actionsheet.taro-166ce936.js';
49
49
  export { B as BackTop } from './backtop.taro-e53236c7.js';
50
- export { D as Dialog } from './dialog.taro-0f64e21a.js';
50
+ export { D as Dialog } from './dialog.taro-54df2e3f.js';
51
51
  export { D as Drag } from './drag.taro-703560c4.js';
52
52
  export { I as Infiniteloading } from './infiniteloading.taro-8ead43b0.js';
53
- export { N as Notify } from './notify.taro-308e5892.js';
53
+ export { N as Notify } from './notify.taro-c9ea8d68.js';
54
54
  export { P as PullToRefresh } from './pulltorefresh.taro-2b50fdf3.js';
55
- export { S as Swipe } from './swipe.taro-e6c2b808.js';
55
+ export { S as Swipe } from './swipe.taro-1eb95b21.js';
56
56
  export { S as Switch } from './switch.taro-bae2dca0.js';
57
57
  export { T as Toast } from './toast.taro-0f972a92.js';
58
58
  export { A as Animate } from './animate.taro-b0e83dd5.js';
59
59
  export { A as AnimatingNumbers } from './animatingnumbers.taro-6307a3a5.js';
60
- export { A as Audio } from './audio.taro-cf530b91.js';
61
- export { A as Avatar } from './avatar.taro-1d2bf09a.js';
60
+ export { A as Audio } from './audio.taro-c2cdbe18.js';
61
+ export { A as Avatar } from './avatar.taro-c17c3d15.js';
62
62
  export { A as AvatarGroup } from './avatargroup-1d900174.js';
63
63
  export { B as Badge } from './badge.taro-11e2ec95.js';
64
64
  export { C as CircleProgress } from './circleprogress.taro-47db537c.js';
@@ -67,29 +67,29 @@ export { C as CollapseItem } from './collapseitem-2e864527.js';
67
67
  export { C as CountDown } from './countdown.taro-9e40de9c.js';
68
68
  export { E as Ellipsis } from './ellipsis.taro-aa39faf7.js';
69
69
  export { E as Empty } from './empty.taro-7bd813f9.js';
70
- export { I as ImagePreview } from './imagepreview.taro-83481e13.js';
70
+ export { I as ImagePreview } from './imagepreview.taro-2d23d0ae.js';
71
71
  export { N as NoticeBar } from './noticebar.taro-22486646.js';
72
72
  export { P as Popover } from './popover.taro-fc7b9a73.js';
73
73
  export { P as Price } from './price.taro-8801462e.js';
74
- export { P as Progress } from './progress.taro-18e015e4.js';
75
- export { S as Skeleton } from './skeleton.taro-6821b2c6.js';
74
+ export { P as Progress } from './progress.taro-773482ed.js';
75
+ export { S as Skeleton } from './skeleton.taro-38e2fca2.js';
76
76
  export { S as Step } from './step.taro-891c020b.js';
77
77
  export { S as Steps } from './steps.taro-acf205a0.js';
78
- export { S as Swiper } from './swiper.taro-852f6615.js';
78
+ export { S as Swiper } from './swiper.taro-8164df5b.js';
79
79
  export { S as SwiperItem } from './swiperitem-86a3578a.js';
80
80
  export { T as Table } from './table.taro-d9b2794b.js';
81
- export { T as Tag } from './tag.taro-213ec444.js';
81
+ export { T as Tag } from './tag.taro-64f37bd9.js';
82
82
  export { T as TrendArrow } from './trendarrow.taro-d79fc8e2.js';
83
83
  export { V as Video } from './video-8a3518c5.js';
84
84
  export { V as VirtualList } from './virtuallist.taro-1688484f.js';
85
85
  export { W as WaterMark } from './watermark.taro-a948c735.js';
86
- export { A as Address } from './address.taro-1765a37c.js';
86
+ export { A as Address } from './address.taro-55f308f1.js';
87
87
  export { B as Barrage } from './barrage.taro-e4fe81ae.js';
88
- export { C as Card } from './card.taro-7e85c3da.js';
89
- export { S as Signature } from './signature.taro-d7a70ce0.js';
88
+ export { C as Card } from './card.taro-a03f0dfc.js';
89
+ export { S as Signature } from './signature.taro-45d1dde3.js';
90
90
  export { T as TimeDetail } from './timedetail.taro-c5f564fd.js';
91
91
  export { T as TimePannel } from './timepannel.taro-29f9dd86.js';
92
- export { T as TimeSelect } from './timeselect.taro-b04b1538.js';
92
+ export { T as TimeSelect } from './timeselect.taro-4fb46162.js';
93
93
  import 'react';
94
94
  import './typings-1c5f2628.js';
95
95
  import '@tarojs/taro';
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useRef, useEffect, useImperativeHandle } from 'react';
2
- import { P as Popup } from './popup.taro-89809b25.js';
2
+ import { P as Popup } from './popup.taro-4c18f46c.js';
3
3
  import { u as useTouch } from './useTouch-a2ea68c6.js';
4
4
  import { g as getRectByTaro } from './useClientRect-4506e52f.js';
5
5
  import { u as useConfig } from './configprovider.taro-26882dd2.js';
@@ -16,6 +16,7 @@ const defaultProps = {
16
16
  closeable: false,
17
17
  closeIconPosition: 'top-right',
18
18
  closeIcon: 'close',
19
+ closeIconSize: '12px',
19
20
  destroyOnClose: true,
20
21
  teleport: null,
21
22
  overlay: true,
@@ -30,7 +31,7 @@ const defaultProps = {
30
31
  };
31
32
  let _zIndex = 2000;
32
33
  const Popup = (props) => {
33
- const { children, visible, overlay, closeOnClickOverlay, overlayStyle, overlayClass, zIndex, lockScroll, duration, closeable, closeIconPosition, closeIcon, style, transition, round, position, popClass, className, destroyOnClose, teleport, onOpen, onClose, onClickOverlay, onClickCloseIcon, onOpened, onClosed, onClick, iconClassPrefix, iconFontClassName, } = props;
34
+ const { children, visible, overlay, closeOnClickOverlay, overlayStyle, overlayClass, zIndex, lockScroll, duration, closeable, closeIconPosition, closeIcon, style, transition, round, position, popClass, className, destroyOnClose, teleport, onOpen, onClose, onClickOverlay, onClickCloseIcon, onOpened, onClosed, onClick, iconClassPrefix, iconFontClassName, closeIconSize, } = props;
34
35
  const [index, setIndex] = useState(zIndex || _zIndex);
35
36
  const [innerVisible, setInnerVisible] = useState(visible);
36
37
  const [showChildren, setShowChildren] = useState(true);
@@ -114,7 +115,7 @@ const Popup = (props) => {
114
115
  React__default.createElement("div", { style: popStyles, className: classes, onClick: onHandleClick },
115
116
  showChildren ? children : '',
116
117
  closeable ? (React__default.createElement("div", { className: closeClasses, onClick: onHandleClickCloseIcon },
117
- React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, name: closeIcon, size: "12px" }))) : (''))));
118
+ React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, name: closeIcon, size: closeIconSize }))) : (''))));
118
119
  };
119
120
  const renderNode = () => {
120
121
  return (React__default.createElement(React__default.Fragment, null, overlay ? (React__default.createElement(React__default.Fragment, null,
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import classNames from 'classnames';
3
- import { I as Icon } from './icon-2242973e.js';
3
+ import { I as Icon } from './icon.taro-c9254a81.js';
4
4
  import { c as cn } from './bem-893ad28d.js';
5
5
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
6
6
 
@@ -23,11 +23,10 @@ const defaultProps = {
23
23
  iconName: 'checked',
24
24
  iconColor: '#439422',
25
25
  iconSize: '16px',
26
- rounded: true,
27
26
  children: undefined,
28
27
  };
29
28
  const Progress = (props) => {
30
- const { className, style, isShowPercentage, percentage, fillColor, strokeColor, strokeWidth, size, textColor, textWidth, showText, textInside, textBackground, textType, status, iconName, iconColor, iconSize, rounded, children, iconClassPrefix, iconFontClassName, ...rest } = {
29
+ const { className, style, isShowPercentage, percentage, fillColor, strokeColor, strokeWidth, size, textColor, textWidth, showText, textInside, textBackground, textType, status, iconName, iconColor, iconSize, children, iconClassPrefix, iconFontClassName, ...rest } = {
31
30
  ...defaultProps,
32
31
  ...props,
33
32
  };
@@ -54,13 +53,11 @@ const Progress = (props) => {
54
53
  const stylesOuter = {
55
54
  height: `${strokeWidth}px`,
56
55
  // eslint-disable-next-line no-nested-ternary
57
- borderRadius: `${rounded ? (rounded === true ? '12px' : rounded) : 0}`,
58
56
  background: `${fillColor}`,
59
57
  };
60
58
  const stylesInner = {
61
59
  width: `${percentage}%`,
62
60
  // eslint-disable-next-line no-nested-ternary
63
- borderRadius: `${rounded ? (rounded === true ? '12px' : rounded) : 0}`,
64
61
  background: `${strokeColor}`,
65
62
  };
66
63
  const stylesInsideText = {
@@ -78,11 +75,11 @@ const Progress = (props) => {
78
75
  return (React__default.createElement("div", { className: `${classes} ${className}`, style: style, ...rest },
79
76
  React__default.createElement("div", { className: classesOuter, style: stylesOuter },
80
77
  React__default.createElement("div", { className: classesInner, style: stylesInner }, showText && textInside && (React__default.createElement(React__default.Fragment, null, children ? (React__default.createElement("div", { className: classesInsideText, style: stylesInsideIcon }, children)) : (React__default.createElement("div", { className: classesInsideText, style: stylesInsideText },
81
- React__default.createElement("span", { className: classesTextInner, style: { color: textColor || '#fff' } },
78
+ React__default.createElement("span", { className: classesTextInner, style: { color: textColor } },
82
79
  percentage,
83
80
  isShowPercentage ? '%' : ''))))))),
84
81
  showText && !textInside && (React__default.createElement("div", { className: classesText, style: stylesText },
85
- textType === 'text' && (React__default.createElement("span", { className: classesTextInner, style: { color: textColor || '#333' } },
82
+ textType === 'text' && (React__default.createElement("span", { className: classesTextInner, style: { color: textColor } },
86
83
  percentage,
87
84
  isShowPercentage ? '%' : '')),
88
85
  textType === 'icon' && (React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, size: iconSize, name: iconName, color: iconColor }))))));
@@ -12,6 +12,7 @@ const defaultProps = {
12
12
  disabled: false,
13
13
  maxLength: 9999,
14
14
  clearable: true,
15
+ clearIconSize: '12px',
15
16
  align: 'left',
16
17
  readonly: true,
17
18
  autoFocus: false,
@@ -23,7 +24,7 @@ const SearchBar = (props) => {
23
24
  const { locale } = useConfig();
24
25
  const searchRef = useRef(null);
25
26
  const [value, setValue] = useState(() => props.value);
26
- const { placeholder, shape, className, disabled, maxLength, clearable, align, readOnly, autoFocus, label, actionText, leftinIcon, rightinIcon, leftoutIcon, rightoutIcon, onChange, onFocus, onBlur, onClear, onCancel, onSearch, onClickInput, onClickLeftinIcon, onClickLeftoutIcon, onClickRightinIcon, onClickRightoutIcon, iconClassPrefix, iconFontClassName, } = {
27
+ const { placeholder, shape, className, disabled, maxLength, clearable, clearIconSize, align, readOnly, autoFocus, label, actionText, leftinIcon, rightinIcon, leftoutIcon, rightoutIcon, onChange, onFocus, onBlur, onClear, onCancel, onSearch, onClickInput, onClickLeftinIcon, onClickLeftoutIcon, onClickRightinIcon, onClickRightoutIcon, iconClassPrefix, iconFontClassName, } = {
27
28
  ...defaultProps,
28
29
  ...props,
29
30
  };
@@ -96,7 +97,7 @@ const SearchBar = (props) => {
96
97
  };
97
98
  const handleClear = () => {
98
99
  return (React__default.createElement("div", { className: `${searchbarBem('clear')} ${rightinIcon ? 'pos-right' : ''}`, onClick: (e) => clearaVal(e) },
99
- React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, name: "circle-close", size: "12", color: "#555" })));
100
+ React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, name: "circle-close", size: clearIconSize, color: "#555" })));
100
101
  };
101
102
  const clearaVal = (event) => {
102
103
  if (disabled || readOnly) {
@@ -1,6 +1,6 @@
1
1
  import React__default, { useRef, useState, useEffect } from 'react';
2
2
  import { c as cn } from './bem-893ad28d.js';
3
- import { P as Popup } from './popup.taro-89809b25.js';
3
+ import { P as Popup } from './popup.taro-4c18f46c.js';
4
4
  import { I as Icon } from './icon.taro-c9254a81.js';
5
5
  import { u as useConfig } from './configprovider.taro-26882dd2.js';
6
6
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
@@ -1,6 +1,6 @@
1
1
  import React__default, { useState } from 'react';
2
2
  import { u as useConfig } from './configprovider.taro-26882dd2.js';
3
- import { P as Popup } from './popup.taro-89809b25.js';
3
+ import { P as Popup } from './popup.taro-4c18f46c.js';
4
4
  import { O as OffsetContext } from './offsetContext-bfb02c25.js';
5
5
 
6
6
  const defaultProps = {
@@ -1,6 +1,6 @@
1
1
  import React__default, { useRef, useState, useEffect } from 'react';
2
2
  import { getEnv, nextTick, createSelectorQuery, canvasToTempFilePath } from '@tarojs/taro';
3
- import { B as Button } from './button.taro-b7c5f5a7.js';
3
+ import { B as Button } from './button.taro-dc4795a3.js';
4
4
  import { c as cn } from './bem-893ad28d.js';
5
5
  import { u as useConfig } from './configprovider.taro-26882dd2.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import classNames from 'classnames';
3
- import { A as Avatar } from './avatar.taro-1d2bf09a.js';
3
+ import { A as Avatar } from './avatar.taro-c17c3d15.js';
4
4
  import { c as cn } from './bem-893ad28d.js';
5
5
 
6
6
  const defaultProps = {
@@ -50,6 +50,7 @@ const Swipe = forwardRef((props, instanceRef) => {
50
50
  if (!props.disabled) {
51
51
  startOffset.current = state.offset;
52
52
  touch.start(event);
53
+ props.onTouchStart && props.onTouchStart(event);
53
54
  }
54
55
  };
55
56
  const onTouchMove = (event) => {
@@ -57,6 +58,7 @@ const Swipe = forwardRef((props, instanceRef) => {
57
58
  return;
58
59
  }
59
60
  touch.move(event);
61
+ props.onTouchMove && props.onTouchMove(event);
60
62
  if (touch.isHorizontal()) {
61
63
  lockClick.current = true;
62
64
  const newState = { ...state, dragging: true };
@@ -68,13 +70,14 @@ const Swipe = forwardRef((props, instanceRef) => {
68
70
  setState(newState);
69
71
  }
70
72
  };
71
- const onTouchEnd = () => {
73
+ const onTouchEnd = (event) => {
72
74
  if (state.dragging) {
73
75
  setState((v) => ({ ...v, dragging: false }));
74
76
  toggle(state.offset > 0 ? 'left' : 'right');
75
77
  setTimeout(() => {
76
78
  lockClick.current = false;
77
79
  }, 0);
80
+ props.onTouchEnd && props.onTouchEnd(event);
78
81
  }
79
82
  };
80
83
  const toggle = (side) => {
@@ -169,7 +172,7 @@ const Swipe = forwardRef((props, instanceRef) => {
169
172
  document.removeEventListener('touchstart', handler);
170
173
  };
171
174
  }, []);
172
- return (React__default.createElement("div", { ref: root, className: `${swipeBem()} ${className}`, onTouchStart: (e) => onTouchStart(e), onTouchMove: (e) => onTouchMove(e), onTouchEnd: onTouchEnd, style: style },
175
+ return (React__default.createElement("div", { ref: root, className: `${swipeBem()} ${className}`, onTouchStart: (e) => onTouchStart(e), onTouchMove: (e) => onTouchMove(e), onTouchEnd: (e) => onTouchEnd(e), style: style },
173
176
  React__default.createElement("div", { className: `${swipeBem('wrapper')}`, style: wrapperStyle },
174
177
  renderActionContent('left'),
175
178
  children,
@@ -157,6 +157,9 @@ const Swiper = React__default.forwardRef((props, ref) => {
157
157
  });
158
158
  });
159
159
  };
160
+ const resize = () => {
161
+ init(active);
162
+ };
160
163
  // 切换方法
161
164
  const move = ({ pace = 0, offset = 0, isEmit = false, movingStatus = false, }) => {
162
165
  if (childCount <= 1)
@@ -418,6 +421,7 @@ const Swiper = React__default.forwardRef((props, ref) => {
418
421
  to,
419
422
  next,
420
423
  prev,
424
+ resize,
421
425
  }));
422
426
  return (React__default.createElement(DataContext.Provider, { value: parent },
423
427
  React__default.createElement("div", { className: `${classes} ${className}`, ref: container, ...rest, id: `container-${refRandomId}`, onTouchStart: onTouchStart, onTouchMove: onTouchMove, onTouchEnd: onTouchEnd,
@@ -26,7 +26,7 @@ const Tabbar = (props) => {
26
26
  return (React__default.createElement("div", { className: [
27
27
  `${b()}`,
28
28
  bottom ? `${b('bottom')}` : '',
29
- safeAreaInsetBottom ? `${b('safebottom')}` : '',
29
+ safeAreaInsetBottom ? `${b('bottom')} ${b('safebottom')}` : '',
30
30
  className,
31
31
  ].join(' '), style: style }, React__default.Children.map(children, (child, idx) => {
32
32
  if (!React__default.isValidElement(child)) {
@@ -8,6 +8,7 @@ const defaultProps = {
8
8
  ...ComponentDefaults,
9
9
  dot: false,
10
10
  size: '',
11
+ iconSize: '',
11
12
  className: '',
12
13
  tabTitle: '',
13
14
  icon: '',
@@ -21,7 +22,7 @@ const defaultProps = {
21
22
  handleClick: (idx) => { },
22
23
  };
23
24
  const TabbarItem = (props) => {
24
- const { dot, size, className, style, tabTitle, icon, href, to, num, active, activeColor, unactiveColor, index, handleClick, iconClassPrefix, iconFontClassName, } = {
25
+ const { dot, size, iconSize, className, style, tabTitle, icon, href, to, num, active, activeColor, unactiveColor, index, handleClick, iconClassPrefix, iconFontClassName, } = {
25
26
  ...defaultProps,
26
27
  ...props,
27
28
  };
@@ -47,12 +48,11 @@ const TabbarItem = (props) => {
47
48
  React__default.createElement("div", { className: `${bIcon()}` },
48
49
  !dot ? (React__default.createElement(React__default.Fragment, null,
49
50
  num && num <= 99 && (React__default.createElement("div", { className: `${bIcon('tips', [bIcon('num')])}` }, num)),
50
- num && num >= 100 && (React__default.createElement("div", { className: `${bIcon('tips', [bIcon('nums')])}` }, "99+")))) : (React__default.createElement("div", { className: `${bIcon('dot')}` })),
51
- icon && (React__default.createElement("div", null,
52
- React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, size: size, name: icon }))),
53
- React__default.createElement("div", { className: bIcon({ 'nav-word': true }, [
54
- bIcon({ 'big-word': !icon }),
55
- ]) }, tabTitle))));
51
+ num && num >= 100 && (React__default.createElement("div", { className: `${bIcon('tips', [bIcon('nums')])}` }, "99+")))) : (React__default.createElement("div", { className: `${bIcon('tips', [bIcon('dot')])}` })),
52
+ icon && (React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, size: iconSize || size, name: icon }))),
53
+ tabTitle && (React__default.createElement("div", { className: bIcon({ 'nav-word': true }, [
54
+ bIcon({ 'big-word': !icon }),
55
+ ]) }, tabTitle))));
56
56
  };
57
57
 
58
58
  export { TabbarItem as T };
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
+ import classNames from 'classnames';
2
3
  import { I as Icon } from './icon.taro-c9254a81.js';
3
4
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
4
- import classNames from 'classnames';
5
5
 
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
@@ -12,12 +12,13 @@ const defaultProps = {
12
12
  round: false,
13
13
  mark: false,
14
14
  closeable: false,
15
+ iconSize: '12px',
15
16
  prefixCls: 'nut-tag',
16
17
  onClose: (e) => { },
17
18
  onClick: (e) => { },
18
19
  };
19
20
  const Tag = (props) => {
20
- const { className, style, color, plain, type, round, prefixCls, children, mark, closeable, textColor, onClick, onClose, iconClassPrefix, iconFontClassName, } = {
21
+ const { className, style, color, plain, type, round, prefixCls, children, mark, closeable, iconSize, textColor, onClick, onClose, iconClassPrefix, iconFontClassName, } = {
21
22
  ...defaultProps,
22
23
  ...props,
23
24
  };
@@ -33,6 +34,7 @@ const Tag = (props) => {
33
34
  round,
34
35
  mark,
35
36
  closeable,
37
+ iconSize,
36
38
  prefixCls,
37
39
  onClick,
38
40
  onClose,
@@ -76,7 +78,7 @@ const Tag = (props) => {
76
78
  };
77
79
  return (React__default.createElement(React__default.Fragment, null, closeable ? (isTagShow && (React__default.createElement("div", { className: btnName, style: { ...style, ...getStyle() }, onClick: (e) => handleClick(e) },
78
80
  children && React__default.createElement("span", { className: "nut-tag-text" }, children),
79
- React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, className: "_icon", name: "close", size: "12", onClick: (e) => {
81
+ React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, className: "_icon", name: "close", size: iconSize, onClick: (e) => {
80
82
  setIsTagShow(false);
81
83
  if (props.onClose) {
82
84
  props.onClose(e);
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
- import { P as Popup } from './popup.taro-89809b25.js';
2
+ import { P as Popup } from './popup.taro-4c18f46c.js';
3
3
  import { T as TimePannel } from './timepannel.taro-29f9dd86.js';
4
4
  import { T as TimeDetail } from './timedetail.taro-c5f564fd.js';
5
5
  import { c as cn } from './bem-893ad28d.js';
@@ -12,6 +12,7 @@ export interface ButtonProps extends BasicComponent {
12
12
  size: ButtonSize;
13
13
  block: boolean;
14
14
  icon: string;
15
+ iconSize: string | number;
15
16
  children: any;
16
17
  onClick: (e: MouseEvent) => void;
17
18
  }
@@ -14,6 +14,7 @@ export interface ButtonProps extends BasicComponent, OmitMiniProgramButtonProps
14
14
  size: ButtonSize;
15
15
  block: boolean;
16
16
  icon: string;
17
+ iconSize: string | number;
17
18
  children: any;
18
19
  onClick: (e: MouseEvent) => void;
19
20
  }
@@ -18,5 +18,7 @@ interface ElevatorData {
18
18
  id: number | string;
19
19
  [key: string]: string | number;
20
20
  }
21
- export declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React.HTMLAttributes<HTMLDivElement>>;
21
+ export declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React.HTMLAttributes<HTMLDivElement>> & {
22
+ Context: typeof elevatorContext;
23
+ };
22
24
  export {};
@@ -18,5 +18,7 @@ interface ElevatorData {
18
18
  id: number | string;
19
19
  [key: string]: string | number;
20
20
  }
21
- export declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React.HTMLAttributes<HTMLDivElement>>;
21
+ export declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React.HTMLAttributes<HTMLDivElement>> & {
22
+ Context: typeof elevatorContext;
23
+ };
22
24
  export {};
@@ -8,6 +8,7 @@ export interface FormItemProps extends BasicComponent, BaseFormField {
8
8
  errorMessageAlign: TextAlign;
9
9
  showErrorLine: boolean;
10
10
  showErrorMessage: boolean;
11
+ initialValue: string;
11
12
  }
12
13
  declare const defaultProps: FormItemProps;
13
14
  export type FieldProps = typeof defaultProps & Partial<BaseFormField>;
@@ -8,7 +8,6 @@ export interface NotifyProps {
8
8
  background?: string;
9
9
  type: string;
10
10
  position: string;
11
- isWrapTeleport: boolean;
12
11
  onClick: () => void;
13
12
  onClosed: () => void;
14
13
  }
@@ -7,6 +7,7 @@ export interface NumberKeyboardProps {
7
7
  confirmText: string;
8
8
  title: string;
9
9
  visible: boolean;
10
+ overlay: boolean;
10
11
  type: string;
11
12
  customKey: Array<string>;
12
13
  randomKeys: boolean;
@@ -7,6 +7,7 @@ export interface NumberKeyboardProps {
7
7
  confirmText: string;
8
8
  title: string;
9
9
  visible: boolean;
10
+ overlay: boolean;
10
11
  type: string;
11
12
  customKey: Array<string>;
12
13
  randomKeys: boolean;
@@ -10,6 +10,7 @@ export interface PopupProps extends OverlayProps, BasicComponent {
10
10
  closeable: boolean;
11
11
  closeIconPosition: string;
12
12
  closeIcon: string;
13
+ closeIconSize?: string | number;
13
14
  destroyOnClose: boolean;
14
15
  teleport: Teleport;
15
16
  overlay: boolean;
@@ -11,6 +11,7 @@ export interface PopupProps extends OverlayProps, BasicComponent {
11
11
  closeable: boolean;
12
12
  closeIconPosition: string;
13
13
  closeIcon: string;
14
+ closeIconSize?: string | number;
14
15
  destroyOnClose: boolean;
15
16
  teleport: Teleport;
16
17
  overlay: boolean;
@@ -21,7 +21,6 @@ export interface ProgressProps extends BasicComponent {
21
21
  iconName: string;
22
22
  iconColor: string;
23
23
  iconSize: string;
24
- rounded: boolean | string;
25
24
  children: ReactNode;
26
25
  }
27
26
  export declare const Progress: FunctionComponent<Partial<ProgressProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -21,7 +21,6 @@ export interface ProgressProps extends BasicComponent {
21
21
  iconName: string;
22
22
  iconColor: string;
23
23
  iconSize: string;
24
- rounded: boolean | string;
25
24
  children: ReactNode;
26
25
  }
27
26
  export declare const Progress: FunctionComponent<Partial<ProgressProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -15,6 +15,7 @@ export interface SearchBarProps extends BasicComponent {
15
15
  maxLength?: number;
16
16
  /** 是否启用清除图标,点击清除图标后会清空输入框 */
17
17
  clearable?: boolean;
18
+ clearIconSize?: string | number;
18
19
  /** 搜索框外部背景色 */
19
20
  background?: string;
20
21
  /** 搜索框背景色 */
@@ -15,6 +15,7 @@ export interface SearchBarProps extends BasicComponent {
15
15
  maxLength?: number;
16
16
  /** 是否启用清除图标,点击清除图标后会清空输入框 */
17
17
  clearable?: boolean;
18
+ clearIconSize?: string | number;
18
19
  /** 搜索框外部背景色 */
19
20
  background?: string;
20
21
  /** 搜索框背景色 */
@@ -36,6 +36,9 @@ export interface SwipeProps {
36
36
  }) => void;
37
37
  /** 点击时触发 */
38
38
  onActionClick?: (event: Event, position: SwipePosition) => void;
39
+ onTouchStart?: (event: Event) => void;
40
+ onTouchEnd?: (event: Event) => void;
41
+ onTouchMove?: (event: Event) => void;
39
42
  children?: React.ReactNode;
40
43
  }
41
- export declare const Swipe: React.ForwardRefExoticComponent<Partial<SwipeProps> & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SwipeInstance>>;
44
+ export declare const Swipe: React.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onTouchEnd" | "onTouchMove" | "onTouchStart"> & React.RefAttributes<SwipeInstance>>;
@@ -36,6 +36,9 @@ export interface SwipeProps {
36
36
  }) => void;
37
37
  /** 点击时触发 */
38
38
  onActionClick?: (event: Event, position: SwipePosition) => void;
39
+ onTouchStart?: (event: Event) => void;
40
+ onTouchEnd?: (event: Event) => void;
41
+ onTouchMove?: (event: Event) => void;
39
42
  children?: React.ReactNode;
40
43
  }
41
- export declare const Swipe: React.ForwardRefExoticComponent<Partial<SwipeProps> & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SwipeInstance>>;
44
+ export declare const Swipe: React.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onTouchEnd" | "onTouchMove" | "onTouchStart"> & React.RefAttributes<SwipeInstance>>;
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
+ import './demo.scss';
2
3
  declare const TabbarDemo: () => JSX.Element;
3
4
  export default TabbarDemo;