@nutui/nutui-react-taro 1.3.3 → 1.3.4

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 (168) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +3 -2
  3. package/dist/esm/ActionSheet.js +3 -3
  4. package/dist/esm/Address.js +3 -3
  5. package/dist/esm/Audio.js +6 -7
  6. package/dist/esm/Avatar.js +2 -2
  7. package/dist/esm/BackTop.js +2 -2
  8. package/dist/esm/Badge.js +2 -2
  9. package/dist/esm/Barrage.js +2 -2
  10. package/dist/esm/Button.js +2 -2
  11. package/dist/esm/Calendar.js +3 -3
  12. package/dist/esm/Card.js +3 -3
  13. package/dist/esm/Cascader.js +4 -4
  14. package/dist/esm/Cell.js +2 -2
  15. package/dist/esm/Checkbox.js +2 -2
  16. package/dist/esm/CircleProgress.js +2 -2
  17. package/dist/esm/CollapseItem.js +2 -2
  18. package/dist/esm/DatePicker.js +4 -4
  19. package/dist/esm/Dialog.js +3 -3
  20. package/dist/esm/FixedNav.js +2 -2
  21. package/dist/esm/GridItem.js +2 -2
  22. package/dist/esm/ImagePreview.js +5 -5
  23. package/dist/esm/Infiniteloading.js +4 -2
  24. package/dist/esm/Input.js +2 -2
  25. package/dist/esm/InputNumber.js +2 -2
  26. package/dist/esm/Menu.js +2 -2
  27. package/dist/esm/MenuItem.js +2 -2
  28. package/dist/esm/NavBar.js +2 -2
  29. package/dist/esm/NoticeBar.js +2 -2
  30. package/dist/esm/Notify.js +2 -3
  31. package/dist/esm/NumberKeyboard.js +3 -3
  32. package/dist/esm/Picker.js +3 -3
  33. package/dist/esm/Popover.js +2 -2
  34. package/dist/esm/Popup.js +2 -2
  35. package/dist/esm/Progress.js +2 -2
  36. package/dist/esm/PullToRefresh.js +2 -2
  37. package/dist/esm/Radio.js +2 -2
  38. package/dist/esm/Range.js +3 -5
  39. package/dist/esm/Rate.js +2 -2
  40. package/dist/esm/SearchBar.js +2 -2
  41. package/dist/esm/ShortPassword.js +3 -3
  42. package/dist/esm/SideNavBar.js +3 -3
  43. package/dist/esm/Signature.js +3 -3
  44. package/dist/esm/Skeleton.js +3 -3
  45. package/dist/esm/Step.js +2 -2
  46. package/dist/esm/Sticky/style/index.js +2 -0
  47. package/dist/esm/Sticky.js +5 -0
  48. package/dist/esm/Swiper.js +3 -3
  49. package/dist/esm/TabbarItem.js +2 -2
  50. package/dist/esm/Table.js +2 -2
  51. package/dist/esm/Tabs.js +2 -2
  52. package/dist/esm/Tag.js +2 -2
  53. package/dist/esm/TimeSelect.js +3 -3
  54. package/dist/esm/Toast.js +2 -4
  55. package/dist/esm/Uploader.js +8 -4
  56. package/dist/esm/{actionsheet.taro-08b7eab2.js → actionsheet.taro-360d8d34.js} +1 -1
  57. package/dist/esm/{address.taro-5f8dbfc3.js → address.taro-7540c626.js} +8 -6
  58. package/dist/esm/{audio.taro-327472dc.js → audio.taro-ab2528b2.js} +105 -148
  59. package/dist/esm/{avatar.taro-766690a4.js → avatar.taro-ec620cdd.js} +5 -3
  60. package/dist/esm/{backtop.taro-c414da6c.js → backtop.taro-aa8b2bc5.js} +5 -3
  61. package/dist/esm/{badge.taro-351d0088.js → badge.taro-38684262.js} +5 -3
  62. package/dist/esm/{barrage.taro-efac8422.js → barrage.taro-d86c367a.js} +3 -10
  63. package/dist/esm/{button.taro-7074924f.js → button.taro-a9ebb937.js} +7 -5
  64. package/dist/esm/{calendar.taro-156a74c0.js → calendar.taro-438940bd.js} +1 -1
  65. package/dist/esm/{card.taro-f81f1b5c.js → card.taro-1bc35ebe.js} +1 -1
  66. package/dist/esm/{cascader.taro-39402f43.js → cascader.taro-35387092.js} +2 -2
  67. package/dist/esm/{cell.taro-075998e0.js → cell.taro-a4c3bb7b.js} +7 -5
  68. package/dist/esm/{checkbox.taro-62677b5e.js → checkbox.taro-104557c1.js} +2 -2
  69. package/dist/esm/{circleprogress.taro-1a38e1c6.js → circleprogress.taro-3c89a157.js} +85 -51
  70. package/dist/esm/{collapseitem-246e1699.js → collapseitem-75843a5e.js} +13 -9
  71. package/dist/esm/{datepicker.taro-e0e58f39.js → datepicker.taro-1acec61f.js} +1 -1
  72. package/dist/esm/{dialog.taro-7e9249e7.js → dialog.taro-54c67e08.js} +8 -6
  73. package/dist/esm/{fixednav.taro-9ee2dbea.js → fixednav.taro-582322a1.js} +5 -3
  74. package/dist/esm/{griditem.taro-a2ad1edd.js → griditem.taro-866cd288.js} +5 -3
  75. package/dist/esm/{imagepreview.taro-99659d6a.js → imagepreview.taro-3f1c7638.js} +2 -2
  76. package/dist/esm/{infiniteloading.taro-aa47eb1e.js → infiniteloading.taro-9701755f.js} +84 -113
  77. package/dist/esm/{input.taro-32fac7f7.js → input.taro-2453d7c4.js} +9 -7
  78. package/dist/esm/{inputnumber.taro-83d108b3.js → inputnumber.taro-0cf7c1b7.js} +7 -5
  79. package/dist/esm/{menu.taro-8330048e.js → menu.taro-9345dcfd.js} +5 -3
  80. package/dist/esm/{menuitem.taro-818c9e83.js → menuitem.taro-fc0961b7.js} +31 -14
  81. package/dist/esm/{navbar.taro-05d293bb.js → navbar.taro-c931c078.js} +7 -5
  82. package/dist/esm/{noticebar.taro-6845f9ab.js → noticebar.taro-1fa04a96.js} +9 -7
  83. package/dist/esm/{notify.taro-22b8f4cd.js → notify.taro-0d9cfb07.js} +38 -5
  84. package/dist/esm/{numberkeyboard.taro-6ff18124.js → numberkeyboard.taro-53c350b8.js} +1 -1
  85. package/dist/esm/nutui-react.es.js +54 -53
  86. package/dist/esm/{picker.taro-a3f311a0.js → picker.taro-6a4dad23.js} +1 -1
  87. package/dist/esm/{popover.taro-604c3116.js → popover.taro-eddd0bd2.js} +5 -3
  88. package/dist/esm/{popup.taro-d74c3422.js → popup.taro-33d0bbc8.js} +5 -3
  89. package/dist/esm/{progress.taro-57e1a455.js → progress.taro-623bc807.js} +5 -3
  90. package/dist/esm/{pulltorefresh.taro-8846f019.js → pulltorefresh.taro-e66c78ad.js} +0 -0
  91. package/dist/esm/{radio.taro-64546f70.js → radio.taro-95d43860.js} +5 -3
  92. package/dist/esm/{range.taro-ef3b30f0.js → range.taro-141a0163.js} +35 -12
  93. package/dist/esm/{rate.taro-0119c0e9.js → rate.taro-5077b962.js} +7 -5
  94. package/dist/esm/{searchbar.taro-2fff1f66.js → searchbar.taro-f134fb96.js} +5 -3
  95. package/dist/esm/{shortpassword.taro-d39e038d.js → shortpassword.taro-2e96ca22.js} +6 -4
  96. package/dist/esm/{sidenavbar.taro-48b136b4.js → sidenavbar.taro-87f056cd.js} +1 -1
  97. package/dist/esm/{signature.taro-3dbc7030.js → signature.taro-a9286cd1.js} +1 -1
  98. package/dist/esm/{skeleton.taro-112de52a.js → skeleton.taro-b9ff84b9.js} +1 -1
  99. package/dist/esm/{step.taro-8c2ba0bb.js → step.taro-f1057500.js} +5 -3
  100. package/dist/esm/sticky.taro-30d4e453.js +23 -0
  101. package/dist/esm/{swiper.taro-448cd0ad.js → swiper.taro-58ed323b.js} +4 -4
  102. package/dist/esm/{tabbaritem.taro-8c0a0a3b.js → tabbaritem.taro-94cd62c2.js} +5 -3
  103. package/dist/esm/{table.taro-04f9ec51.js → table.taro-7ac89a6c.js} +5 -3
  104. package/dist/esm/{tabs.taro-7bb22cb5.js → tabs.taro-86186dff.js} +12 -13
  105. package/dist/esm/{tag.taro-81dcc92d.js → tag.taro-95d7f5c2.js} +5 -3
  106. package/dist/esm/{timeselect.taro-5b6ed203.js → timeselect.taro-73796bfc.js} +1 -1
  107. package/dist/esm/toast.taro-cd22a0d7.js +167 -0
  108. package/dist/esm/types/src/packages/audio/audio.taro.d.ts +13 -14
  109. package/dist/esm/types/src/packages/button/demo.d.ts +1 -0
  110. package/dist/esm/types/src/packages/collapseitem/collapseitem.d.ts +1 -0
  111. package/dist/esm/types/src/packages/drag/drag.d.ts +1 -1
  112. package/dist/esm/types/src/packages/drag/drag.taro.d.ts +1 -1
  113. package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +1 -1
  114. package/dist/esm/types/src/packages/fixednav/fixednav.taro.d.ts +1 -1
  115. package/dist/esm/types/src/packages/griditem/griditem.d.ts +1 -1
  116. package/dist/esm/types/src/packages/griditem/griditem.taro.d.ts +1 -1
  117. package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +3 -3
  118. package/dist/esm/types/src/packages/infiniteloading/infiniteloading.taro.d.ts +4 -6
  119. package/dist/esm/types/src/packages/input/input.d.ts +1 -1
  120. package/dist/esm/types/src/packages/input/input.taro.d.ts +1 -1
  121. package/dist/esm/types/src/packages/menuitem/menuitem.d.ts +1 -1
  122. package/dist/esm/types/src/packages/menuitem/menuitem.taro.d.ts +1 -1
  123. package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -1
  124. package/dist/esm/types/src/packages/nutui.react.d.ts +3 -1
  125. package/dist/esm/types/src/packages/nutui.react.scss.d.ts +1 -0
  126. package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
  127. package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -1
  128. package/dist/esm/types/src/packages/popover/popover.d.ts +1 -1
  129. package/dist/esm/types/src/packages/popover/popover.taro.d.ts +1 -1
  130. package/dist/esm/types/src/packages/progress/progress.d.ts +1 -1
  131. package/dist/esm/types/src/packages/progress/progress.taro.d.ts +1 -1
  132. package/dist/esm/types/src/packages/radio/radio.d.ts +1 -1
  133. package/dist/esm/types/src/packages/radio/radio.taro.d.ts +1 -1
  134. package/dist/esm/types/src/packages/sticky/__test__/sticky.spec.d.ts +1 -0
  135. package/dist/esm/types/src/packages/sticky/demo.d.ts +3 -0
  136. package/dist/esm/types/src/packages/sticky/index.d.ts +2 -0
  137. package/dist/esm/types/src/packages/sticky/index.taro.d.ts +2 -0
  138. package/dist/esm/types/src/packages/sticky/sticky.d.ts +13 -0
  139. package/dist/esm/types/src/packages/sticky/sticky.taro.d.ts +4 -0
  140. package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
  141. package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
  142. package/dist/esm/types/src/packages/toast/index.taro.d.ts +1 -1
  143. package/dist/esm/types/src/packages/toast/toast.taro.d.ts +11 -17
  144. package/dist/esm/types/src/packages/uploader/demo.d.ts +1 -0
  145. package/dist/esm/types/src/packages/uploader/upload.d.ts +4 -0
  146. package/dist/esm/types/src/packages/uploader/uploader.d.ts +16 -12
  147. package/dist/esm/types/src/packages/uploader/uploader.taro.d.ts +39 -19
  148. package/dist/esm/types/src/utils/date.d.ts +1 -1
  149. package/dist/esm/types/src/utils/useWatch.d.ts +6 -0
  150. package/dist/esm/{uploader.taro-4fd5dd3c.js → uploader.taro-6184abe7.js} +181 -131
  151. package/dist/locales/base.js +1 -1
  152. package/dist/locales/en-US.js +1 -1
  153. package/dist/locales/id-ID.js +1 -1
  154. package/dist/locales/zh-CN.js +1 -1
  155. package/dist/locales/zh-TW.js +1 -1
  156. package/dist/nutui.react.es.js +1357 -1235
  157. package/dist/nutui.react.umd.js +1356 -1233
  158. package/dist/packages/barrage/barrage.scss +7 -2
  159. package/dist/packages/circleprogress/circleprogress.scss +3 -0
  160. package/dist/packages/sticky/sticky.scss +0 -0
  161. package/dist/style.css +1 -1
  162. package/dist/style.es.js +1 -1
  163. package/dist/styles/themes/default.scss +1 -0
  164. package/dist/types/index.d.ts +75 -64
  165. package/dist/types/nutui.taro.react.build.ts +3 -1
  166. package/package.json +10 -5
  167. package/dist/esm/render-4a3856cb.js +0 -32
  168. package/dist/esm/toast.taro-d4ecd6af.js +0 -300
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
5
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
- var _excluded = ["value", "color", "background", "direction", "type", "titleScroll", "ellipsis", "animatedTime", "titleGutter", "size", "titleNode", "children", "onClick", "onChange", "className", "autoHeight"];
6
+ var _excluded = ["value", "color", "background", "direction", "type", "titleScroll", "ellipsis", "animatedTime", "titleGutter", "size", "titleNode", "children", "onClick", "onChange", "className", "autoHeight", "iconClassPrefix", "iconFontClassName"];
7
7
 
8
8
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
9
 
@@ -66,6 +66,8 @@ var Tabs = function Tabs(props) {
66
66
  onChange = _defaultProps$props.onChange,
67
67
  className = _defaultProps$props.className,
68
68
  autoHeight = _defaultProps$props.autoHeight,
69
+ iconClassPrefix = _defaultProps$props.iconClassPrefix,
70
+ iconFontClassName = _defaultProps$props.iconFontClassName,
69
71
  rest = _objectWithoutProperties(_defaultProps$props, _excluded);
70
72
 
71
73
  var _useState = useState({
@@ -81,20 +83,17 @@ var Tabs = function Tabs(props) {
81
83
  titles.current = []; // eslint-disable-next-line consistent-return
82
84
 
83
85
  React__default.Children.forEach(children, function (child, idx) {
84
- var _child$props, _child$props2;
85
-
86
86
  if (!React__default.isValidElement(child)) {
87
87
  return null;
88
88
  }
89
89
 
90
90
  var title = new Title();
91
+ var childProps = child === null || child === void 0 ? void 0 : child.props;
91
92
 
92
- if (child !== null && child !== void 0 && (_child$props = child.props) !== null && _child$props !== void 0 && _child$props.title || child !== null && child !== void 0 && (_child$props2 = child.props) !== null && _child$props2 !== void 0 && _child$props2.paneKey) {
93
- var _child$props3, _child$props4, _child$props5;
94
-
95
- title.title = (_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.title;
96
- title.paneKey = ((_child$props4 = child.props) === null || _child$props4 === void 0 ? void 0 : _child$props4.paneKey) || idx;
97
- title.disabled = (_child$props5 = child.props) === null || _child$props5 === void 0 ? void 0 : _child$props5.disabled;
93
+ if (childProps !== null && childProps !== void 0 && childProps.title || childProps !== null && childProps !== void 0 && childProps.paneKey) {
94
+ title.title = childProps === null || childProps === void 0 ? void 0 : childProps.title;
95
+ title.paneKey = (childProps === null || childProps === void 0 ? void 0 : childProps.paneKey) || idx;
96
+ title.disabled = childProps === null || childProps === void 0 ? void 0 : childProps.disabled;
98
97
  title.index = idx;
99
98
 
100
99
  if (title.paneKey === value) {
@@ -161,8 +160,8 @@ var Tabs = function Tabs(props) {
161
160
  className: "".concat(b(''), "__titles-item__smile"),
162
161
  style: tabsActiveStyle
163
162
  }, React__default.createElement(Icon, {
164
- classPrefix: props.iconClassPrefix,
165
- fontClassName: props.iconFontClassName,
163
+ classPrefix: iconClassPrefix,
164
+ fontClassName: iconFontClassName,
166
165
  color: color,
167
166
  name: "joy-smile"
168
167
  })), React__default.createElement("div", {
@@ -174,7 +173,7 @@ var Tabs = function Tabs(props) {
174
173
  className: "".concat(b(''), "__content"),
175
174
  style: contentStyle
176
175
  }, React__default.Children.map(children, function (child, idx) {
177
- var _child$props6;
176
+ var _child$props;
178
177
 
179
178
  if (!React__default.isValidElement(child)) {
180
179
  return null;
@@ -184,7 +183,7 @@ var Tabs = function Tabs(props) {
184
183
  activeKey: value
185
184
  });
186
185
 
187
- if (String(value) !== String(((_child$props6 = child.props) === null || _child$props6 === void 0 ? void 0 : _child$props6.paneKey) || idx) && autoHeight) {
186
+ if (String(value) !== String(((_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.paneKey) || idx) && autoHeight) {
188
187
  childProps = _objectSpread(_objectSpread({}, childProps), {}, {
189
188
  autoHeightClassName: 'inactive'
190
189
  });
@@ -34,7 +34,9 @@ var Tag = function Tag(props) {
34
34
  closeable = _defaultProps$props.closeable,
35
35
  textColor = _defaultProps$props.textColor,
36
36
  onClick = _defaultProps$props.onClick,
37
- onClose = _defaultProps$props.onClose;
37
+ onClose = _defaultProps$props.onClose,
38
+ iconClassPrefix = _defaultProps$props.iconClassPrefix,
39
+ iconFontClassName = _defaultProps$props.iconFontClassName;
38
40
 
39
41
  var _useState = useState(''),
40
42
  _useState2 = _slicedToArray(_useState, 2),
@@ -89,8 +91,8 @@ var Tag = function Tag(props) {
89
91
  }, children && React__default.createElement("span", {
90
92
  className: "text"
91
93
  }, children), React__default.createElement(Icon, {
92
- classPrefix: props.iconClassPrefix,
93
- fontClassName: props.iconFontClassName,
94
+ classPrefix: iconClassPrefix,
95
+ fontClassName: iconFontClassName,
94
96
  className: "_icon",
95
97
  name: "close",
96
98
  size: "12",
@@ -7,7 +7,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
7
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
8
 
9
9
  import React__default, { useState, useEffect } from 'react';
10
- import { P as Popup } from './popup.taro-d74c3422.js';
10
+ import { P as Popup } from './popup.taro-33d0bbc8.js';
11
11
  import { T as TimePannel } from './timepannel.taro-9904f6e6.js';
12
12
  import { T as TimeDetail } from './timedetail.taro-519808cf.js';
13
13
  import { c as cn } from './bem-893ad28d.js';
@@ -0,0 +1,167 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["children", "id", "style", "icon", "iconSize", "msg", "bottom", "duration", "center", "type", "title", "customClass", "size", "textAlignCenter", "bgColor", "cover", "coverColor", "closeOnClickOverlay", "visible", "onClose"];
5
+
6
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
+
8
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
+
10
+ import React__default, { useState, useEffect } from 'react';
11
+ import classNames from 'classnames';
12
+ import { c as cn } from './bem-893ad28d.js';
13
+ import { I as Icon } from './icon-8dc4de10.js';
14
+ var defaultProps = {
15
+ id: '',
16
+ style: {},
17
+ icon: null,
18
+ iconSize: '20',
19
+ msg: '',
20
+ bottom: '30px',
21
+ duration: 2,
22
+ center: true,
23
+ type: 'text',
24
+ title: '',
25
+ customClass: '',
26
+ size: 'base',
27
+ textAlignCenter: true,
28
+ bgColor: 'rgba(0, 0, 0, .8)',
29
+ cover: false,
30
+ coverColor: 'rgba(0, 0, 0, 0)',
31
+ closeOnClickOverlay: false,
32
+ visible: false,
33
+ onClose: function onClose() {} // 未实现
34
+
35
+ }; // export default class Notification extends React.PureComponent<NotificationProps> {
36
+
37
+ var Toast = function Toast(props) {
38
+ var _classNames;
39
+
40
+ var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
41
+ children = _defaultProps$props.children,
42
+ id = _defaultProps$props.id,
43
+ style = _defaultProps$props.style,
44
+ icon = _defaultProps$props.icon,
45
+ iconSize = _defaultProps$props.iconSize,
46
+ msg = _defaultProps$props.msg,
47
+ bottom = _defaultProps$props.bottom,
48
+ duration = _defaultProps$props.duration,
49
+ center = _defaultProps$props.center,
50
+ type = _defaultProps$props.type,
51
+ title = _defaultProps$props.title,
52
+ customClass = _defaultProps$props.customClass,
53
+ size = _defaultProps$props.size,
54
+ textAlignCenter = _defaultProps$props.textAlignCenter,
55
+ bgColor = _defaultProps$props.bgColor,
56
+ cover = _defaultProps$props.cover,
57
+ coverColor = _defaultProps$props.coverColor,
58
+ closeOnClickOverlay = _defaultProps$props.closeOnClickOverlay,
59
+ visible = _defaultProps$props.visible,
60
+ onClose = _defaultProps$props.onClose,
61
+ rest = _objectWithoutProperties(_defaultProps$props, _excluded);
62
+
63
+ var timer;
64
+
65
+ var _useState = useState(false),
66
+ _useState2 = _slicedToArray(_useState, 2),
67
+ openState = _useState2[0],
68
+ SetOpenState = _useState2[1];
69
+
70
+ useEffect(function () {
71
+ if (visible) {
72
+ SetOpenState(true);
73
+ show();
74
+ } else {
75
+ hide();
76
+ }
77
+ }, [visible]);
78
+
79
+ var clearTimer = function clearTimer() {
80
+ if (timer) {
81
+ clearTimeout(timer);
82
+ timer = null;
83
+ }
84
+ };
85
+
86
+ var hide = function hide() {
87
+ SetOpenState(false);
88
+ onClose();
89
+ };
90
+
91
+ var show = function show() {
92
+ clearTimer();
93
+
94
+ if (duration) {
95
+ timer = setTimeout(function () {
96
+ hide();
97
+ }, duration * 1000);
98
+ }
99
+ };
100
+
101
+ var clickCover = function clickCover() {
102
+ if (closeOnClickOverlay) {
103
+ hide();
104
+ }
105
+ };
106
+
107
+ var toastBem = cn('toast');
108
+
109
+ var hasIcon = function hasIcon() {
110
+ if (type !== 'text') {
111
+ return true;
112
+ }
113
+
114
+ return !!icon;
115
+ };
116
+
117
+ var iconName = function iconName() {
118
+ if (icon) {
119
+ return icon;
120
+ }
121
+
122
+ return {
123
+ success: 'success',
124
+ fail: 'failure',
125
+ warn: 'tips',
126
+ loading: 'loading'
127
+ }[type];
128
+ };
129
+
130
+ var classes = classNames((_classNames = {
131
+ 'nut-toast-center': center,
132
+ 'nut-toast-has-icon': icon,
133
+ 'nut-toast-cover': cover,
134
+ 'nut-toast-loading': type === 'loading'
135
+ }, _defineProperty(_classNames, "".concat(customClass), true), _defineProperty(_classNames, "nut-toast-".concat(size), true), _classNames));
136
+ return React__default.createElement(React__default.Fragment, null, openState ? React__default.createElement("div", {
137
+ className: "".concat(toastBem(), " ").concat(classes),
138
+ id: id,
139
+ style: _objectSpread({
140
+ bottom: center ? 'auto' : "".concat(bottom),
141
+ backgroundColor: cover ? coverColor : ''
142
+ }, style),
143
+ onClick: function onClick() {
144
+ clickCover();
145
+ }
146
+ }, React__default.createElement("div", {
147
+ className: toastBem('inner'),
148
+ style: {
149
+ textAlign: textAlignCenter ? 'center' : 'left',
150
+ backgroundColor: bgColor
151
+ }
152
+ }, hasIcon() ? React__default.createElement("p", {
153
+ className: toastBem('icon-wrapper')
154
+ }, React__default.createElement(Icon, {
155
+ name: iconName(),
156
+ color: "#ffffff",
157
+ size: iconSize
158
+ })) : null, title ? React__default.createElement("div", {
159
+ className: "nut-toast-title"
160
+ }, title) : null, React__default.createElement("span", {
161
+ className: toastBem('text')
162
+ }, msg))) : null);
163
+ };
164
+
165
+ Toast.defaultProps = defaultProps;
166
+ Toast.displayName = 'NutInput';
167
+ export { Toast as T };
@@ -1,19 +1,18 @@
1
- import React, { CSSProperties, FunctionComponent, ReactEventHandler } from 'react';
1
+ import React, { CSSProperties, FunctionComponent } from 'react';
2
+ import Taro from '@tarojs/taro';
2
3
  import { IComponent } from '@/utils/typings';
3
4
  export interface AudioProps extends IComponent {
4
- className: string;
5
- style: CSSProperties;
5
+ className?: string;
6
+ style?: CSSProperties;
6
7
  url: string;
7
- muted: boolean;
8
- autoplay: boolean;
9
- loop: boolean;
10
- preload: string;
8
+ autoplay?: boolean;
9
+ loop?: boolean;
11
10
  type: string;
12
- onFastBack: (e: HTMLAudioElement) => void;
13
- onForward: (e: HTMLAudioElement) => void;
14
- onPause: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
15
- onPlayEnd: (e: HTMLAudioElement) => void;
16
- onMute: (e: HTMLAudioElement) => void;
17
- onCanPlay: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
11
+ onFastBack?: (ctx: Taro.InnerAudioContext) => void;
12
+ onForward?: (ctx: Taro.InnerAudioContext) => void;
13
+ onPause?: any;
14
+ onPlay?: any;
15
+ onPlayEnd?: (ctx: Taro.InnerAudioContext) => void;
16
+ onCanPlay?: (ctx: Taro.InnerAudioContext) => void;
18
17
  }
19
- export declare const Audio: FunctionComponent<Partial<AudioProps> & React.HTMLAttributes<HTMLElement>>;
18
+ export declare const Audio: FunctionComponent<Partial<AudioProps> & (React.HTMLAttributes<HTMLDivElement> | Taro.InnerAudioContext)>;
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
+ import './demo.scss';
2
3
  declare const ButtonDemo: () => JSX.Element;
3
4
  export default ButtonDemo;
@@ -14,6 +14,7 @@ export interface CollapseItemProps extends IComponent {
14
14
  titleIconColor: string;
15
15
  titleIconPosition: string;
16
16
  titleIconSize: string;
17
+ childnull: boolean;
17
18
  onToggle: (isOpen: boolean, name: string) => void;
18
19
  }
19
20
  export declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  export interface DragProps {
3
3
  attract: boolean;
4
- direction: undefined | string;
4
+ direction: 'x' | 'y' | 'lock' | undefined;
5
5
  boundary: {
6
6
  top: number;
7
7
  left: number;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  export interface DragProps {
3
3
  attract: boolean;
4
- direction: undefined | string;
4
+ direction: 'x' | 'y' | 'lock' | undefined;
5
5
  boundary: {
6
6
  top: number;
7
7
  left: number;
@@ -1,10 +1,10 @@
1
1
  import React, { FunctionComponent, MouseEvent } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  declare type Direction = 'right' | 'left';
3
4
  declare type Position = {
4
5
  top?: string;
5
6
  bottom?: string;
6
7
  };
7
- import { IComponent } from '@/utils/typings';
8
8
  export interface FixedNavProps extends IComponent {
9
9
  fixednavClass: string;
10
10
  visible: boolean;
@@ -1,10 +1,10 @@
1
1
  import React, { FunctionComponent } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  declare type Direction = 'right' | 'left';
3
4
  declare type Position = {
4
5
  top?: string;
5
6
  bottom?: string;
6
7
  };
7
- import { IComponent } from '@/utils/typings';
8
8
  export interface FixedNavProps extends IComponent {
9
9
  fixednavClass: string;
10
10
  visible: boolean;
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
- declare type GridDirection = 'horizontal' | 'vertical';
3
2
  import { IComponent } from '@/utils/typings';
3
+ declare type GridDirection = 'horizontal' | 'vertical';
4
4
  export interface GridItemProps extends IComponent {
5
5
  text: string | ReactNode;
6
6
  icon: string | ReactNode;
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
- declare type GridDirection = 'horizontal' | 'vertical';
3
2
  import { IComponent } from '@/utils/typings';
3
+ declare type GridDirection = 'horizontal' | 'vertical';
4
4
  export interface GridItemProps extends IComponent {
5
5
  text: string | ReactNode;
6
6
  icon: string | ReactNode;
@@ -14,8 +14,8 @@ export interface InfiniteloadingProps extends IComponent {
14
14
  loadMoreTxt: string;
15
15
  className: string;
16
16
  style: React.CSSProperties;
17
- refresh: (param: () => void) => void;
18
- loadMore: (param: () => void) => void;
19
- scrollChange: (param: number) => void;
17
+ onRefresh: (param: () => void) => void;
18
+ onLoadMore: (param: () => void) => void;
19
+ onScrollChange: (param: number) => void;
20
20
  }
21
21
  export declare const Infiniteloading: FunctionComponent<Partial<InfiniteloadingProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -2,10 +2,8 @@ import React, { FunctionComponent } from 'react';
2
2
  import { IComponent } from '@/utils/typings';
3
3
  export interface InfiniteloadingProps extends IComponent {
4
4
  hasMore: boolean;
5
- threshold: number;
5
+ upperThreshold: number;
6
6
  containerId: string;
7
- useWindow: boolean;
8
- useCapture: boolean;
9
7
  isOpenRefresh: boolean;
10
8
  pullIcon: string;
11
9
  pullTxt: string;
@@ -14,8 +12,8 @@ export interface InfiniteloadingProps extends IComponent {
14
12
  loadMoreTxt: string;
15
13
  className: string;
16
14
  style: React.CSSProperties;
17
- refresh: (param: () => void) => void;
18
- loadMore: (param: () => void) => void;
19
- scrollChange: (param: number) => void;
15
+ onRefresh: (param: () => void) => void;
16
+ onLoadMore: (param: () => void) => void;
17
+ onScrollChange: (param: number) => void;
20
18
  }
21
19
  export declare const Infiniteloading: FunctionComponent<Partial<InfiniteloadingProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -1,4 +1,5 @@
1
1
  import React, { CSSProperties, FunctionComponent, HTMLInputTypeAttribute } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  export declare type InputAlignType = 'left' | 'center' | 'right';
3
4
  export declare type InputFormatTrigger = 'onChange' | 'onBlur';
4
5
  export declare type InputType = HTMLInputTypeAttribute;
@@ -8,7 +9,6 @@ export declare type InputRule = {
8
9
  required?: boolean;
9
10
  };
10
11
  export declare type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
11
- import { IComponent } from '@/utils/typings';
12
12
  export interface InputProps extends IComponent {
13
13
  type: InputType;
14
14
  defaultValue: any;
@@ -1,4 +1,5 @@
1
1
  import React, { CSSProperties, FunctionComponent, HTMLInputTypeAttribute } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  export declare type InputAlignType = 'left' | 'center' | 'right';
3
4
  export declare type InputFormatTrigger = 'onChange' | 'onBlur';
4
5
  export declare type InputType = HTMLInputTypeAttribute;
@@ -8,7 +9,6 @@ export declare type InputRule = {
8
9
  required?: boolean;
9
10
  };
10
11
  export declare type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
11
- import { IComponent } from '@/utils/typings';
12
12
  export interface InputProps extends IComponent {
13
13
  type: InputType;
14
14
  defaultValue: any;
@@ -1,9 +1,9 @@
1
1
  import React, { FunctionComponent } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  export interface OptionItem {
3
4
  text: string;
4
5
  value: string | number;
5
6
  }
6
- import { IComponent } from '@/utils/typings';
7
7
  export interface MenuItemProps extends IComponent {
8
8
  className: string;
9
9
  style: React.CSSProperties;
@@ -1,9 +1,9 @@
1
1
  import React, { FunctionComponent } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  export interface OptionItem {
3
4
  text: string;
4
5
  value: string | number;
5
6
  }
6
- import { IComponent } from '@/utils/typings';
7
7
  export interface MenuItemProps extends IComponent {
8
8
  className: string;
9
9
  style: React.CSSProperties;
@@ -11,6 +11,7 @@ import Row from '@/packages/row';
11
11
  import Divider from '@/packages/divider';
12
12
  import Grid from '@/packages/grid';
13
13
  import GridItem from '@/packages/griditem';
14
+ import Sticky from '@/packages/sticky';
14
15
  import NavBar from '@/packages/navbar';
15
16
  import FixedNav from '@/packages/fixednav';
16
17
  import Tabbar from '@/packages/tabbar';
@@ -84,4 +85,4 @@ import Card from '@/packages/card';
84
85
  import TimePannel from '@/packages/timepannel';
85
86
  import TimeDetail from '@/packages/timedetail';
86
87
  import TimeSelect from '@/packages/timeselect';
87
- export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
88
+ export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
@@ -11,6 +11,7 @@ import Row from '@/packages/row';
11
11
  import Divider from '@/packages/divider';
12
12
  import Grid from '@/packages/grid';
13
13
  import GridItem from '@/packages/griditem';
14
+ import Sticky from '@/packages/sticky';
14
15
  import NavBar from '@/packages/navbar';
15
16
  import FixedNav from '@/packages/fixednav';
16
17
  import Tabbar from '@/packages/tabbar';
@@ -97,6 +98,7 @@ import '@/packages/row/row.scss';
97
98
  import '@/packages/divider/divider.scss';
98
99
  import '@/packages/grid/grid.scss';
99
100
  import '@/packages/griditem/griditem.scss';
101
+ import '@/packages/sticky/sticky.scss';
100
102
  import '@/packages/navbar/navbar.scss';
101
103
  import '@/packages/fixednav/fixednav.scss';
102
104
  import '@/packages/tabbar/tabbar.scss';
@@ -170,4 +172,4 @@ import '@/packages/card/card.scss';
170
172
  import '@/packages/timepannel/timepannel.scss';
171
173
  import '@/packages/timedetail/timedetail.scss';
172
174
  import '@/packages/timeselect/timeselect.scss';
173
- export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
175
+ export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
@@ -11,6 +11,7 @@ import '@/packages/row/row.scss';
11
11
  import '@/packages/divider/divider.scss';
12
12
  import '@/packages/grid/grid.scss';
13
13
  import '@/packages/griditem/griditem.scss';
14
+ import '@/packages/sticky/sticky.scss';
14
15
  import '@/packages/navbar/navbar.scss';
15
16
  import '@/packages/fixednav/fixednav.scss';
16
17
  import '@/packages/tabbar/tabbar.scss';
@@ -11,6 +11,7 @@ import Row from '@/packages/row/index.taro';
11
11
  import Divider from '@/packages/divider/index.taro';
12
12
  import Grid from '@/packages/grid/index.taro';
13
13
  import GridItem from '@/packages/griditem/index.taro';
14
+ import Sticky from '@/packages/sticky/index.taro';
14
15
  import NavBar from '@/packages/navbar/index.taro';
15
16
  import FixedNav from '@/packages/fixednav/index.taro';
16
17
  import Tabbar from '@/packages/tabbar/index.taro';
@@ -97,6 +98,7 @@ import '@/packages/row/row.scss';
97
98
  import '@/packages/divider/divider.scss';
98
99
  import '@/packages/grid/grid.scss';
99
100
  import '@/packages/griditem/griditem.scss';
101
+ import '@/packages/sticky/sticky.scss';
100
102
  import '@/packages/navbar/navbar.scss';
101
103
  import '@/packages/fixednav/fixednav.scss';
102
104
  import '@/packages/tabbar/tabbar.scss';
@@ -170,4 +172,4 @@ import '@/packages/card/card.scss';
170
172
  import '@/packages/timepannel/timepannel.scss';
171
173
  import '@/packages/timedetail/timedetail.scss';
172
174
  import '@/packages/timeselect/timeselect.scss';
173
- export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
175
+ export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
@@ -11,6 +11,7 @@ import Row from '@/packages/row/index.taro';
11
11
  import Divider from '@/packages/divider/index.taro';
12
12
  import Grid from '@/packages/grid/index.taro';
13
13
  import GridItem from '@/packages/griditem/index.taro';
14
+ import Sticky from '@/packages/sticky/index.taro';
14
15
  import NavBar from '@/packages/navbar/index.taro';
15
16
  import FixedNav from '@/packages/fixednav/index.taro';
16
17
  import Tabbar from '@/packages/tabbar/index.taro';
@@ -84,4 +85,4 @@ import Card from '@/packages/card/index.taro';
84
85
  import TimePannel from '@/packages/timepannel/index.taro';
85
86
  import TimeDetail from '@/packages/timedetail/index.taro';
86
87
  import TimeSelect from '@/packages/timeselect/index.taro';
87
- export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
88
+ export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
@@ -1,4 +1,5 @@
1
1
  import React, { CSSProperties, FunctionComponent } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  export declare type PopoverTheme = 'light' | 'dark';
3
4
  export declare type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
4
5
  export interface List {
@@ -6,7 +7,6 @@ export interface List {
6
7
  icon?: string;
7
8
  disabled?: boolean;
8
9
  }
9
- import { IComponent } from '@/utils/typings';
10
10
  export interface PopoverProps extends IComponent {
11
11
  list: List[];
12
12
  theme: PopoverTheme;
@@ -1,4 +1,5 @@
1
1
  import React, { CSSProperties, FunctionComponent } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  export declare type PopoverTheme = 'light' | 'dark';
3
4
  export declare type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
4
5
  export interface List {
@@ -6,7 +7,6 @@ export interface List {
6
7
  icon?: string;
7
8
  disabled?: boolean;
8
9
  }
9
- import { IComponent } from '@/utils/typings';
10
10
  export interface PopoverProps extends IComponent {
11
11
  list: List[];
12
12
  theme: PopoverTheme;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent, CSSProperties, ReactNode } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  export declare type ProgressSize = 'small' | 'base' | 'large';
3
4
  export declare type TextType = 'icon' | 'text';
4
- import { IComponent } from '@/utils/typings';
5
5
  export interface ProgressProps extends IComponent {
6
6
  className: string;
7
7
  style: CSSProperties;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent, CSSProperties, ReactNode } from 'react';
2
+ import { IComponent } from '@/utils/typings';
2
3
  export declare type ProgressSize = 'small' | 'base' | 'large';
3
4
  export declare type TextType = 'icon' | 'text';
4
- import { IComponent } from '@/utils/typings';
5
5
  export interface ProgressProps extends IComponent {
6
6
  className: string;
7
7
  style: CSSProperties;
@@ -1,8 +1,8 @@
1
1
  import React, { FunctionComponent, MouseEventHandler } from 'react';
2
2
  import RadioGroup from '@/packages/radiogroup';
3
+ import { IComponent } from '@/utils/typings';
3
4
  declare type Shape = 'button' | 'round';
4
5
  declare type Position = 'right' | 'left';
5
- import { IComponent } from '@/utils/typings';
6
6
  export interface RadioProps extends IComponent {
7
7
  className: string;
8
8
  style: React.CSSProperties;