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

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 (63) hide show
  1. package/dist/esm/Address.js +3 -3
  2. package/dist/esm/Audio.js +3 -3
  3. package/dist/esm/Avatar.js +3 -3
  4. package/dist/esm/Button.js +2 -2
  5. package/dist/esm/Dialog.js +3 -3
  6. package/dist/esm/Elevator.js +2 -2
  7. package/dist/esm/ImagePreview.js +3 -3
  8. package/dist/esm/Notify.js +2 -2
  9. package/dist/esm/NumberKeyboard.js +2 -2
  10. package/dist/esm/Signature.js +3 -3
  11. package/dist/esm/Skeleton.js +4 -4
  12. package/dist/esm/Swipe.js +2 -2
  13. package/dist/esm/Swiper.js +2 -2
  14. package/dist/esm/Tabbar.js +2 -2
  15. package/dist/esm/TabbarItem.js +2 -2
  16. package/dist/esm/Uploader.js +3 -3
  17. package/dist/esm/{address.taro-1765a37c.js → address.taro-15ad9509.js} +1 -1
  18. package/dist/esm/{audio.taro-cf530b91.js → audio.taro-c2cdbe18.js} +1 -1
  19. package/dist/esm/{avatar.taro-1d2bf09a.js → avatar.taro-c17c3d15.js} +1 -1
  20. package/dist/esm/{button.taro-b7c5f5a7.js → button.taro-dc4795a3.js} +4 -2
  21. package/dist/esm/{dialog.taro-0f64e21a.js → dialog.taro-54df2e3f.js} +1 -1
  22. package/dist/esm/{elevator.taro-68cfaaee.js → elevator.taro-1d749ab0.js} +1 -0
  23. package/dist/esm/{imagepreview.taro-83481e13.js → imagepreview.taro-e7ae4705.js} +1 -1
  24. package/dist/esm/{notify.taro-308e5892.js → notify.taro-c9ea8d68.js} +1 -1
  25. package/dist/esm/{numberkeyboard.taro-d2ccbce5.js → numberkeyboard.taro-fd9a4c1a.js} +3 -2
  26. package/dist/esm/nutui-react.es.js +16 -16
  27. package/dist/esm/{signature.taro-d7a70ce0.js → signature.taro-45d1dde3.js} +1 -1
  28. package/dist/esm/{skeleton.taro-6821b2c6.js → skeleton.taro-38e2fca2.js} +1 -1
  29. package/dist/esm/{swipe.taro-e6c2b808.js → swipe.taro-1eb95b21.js} +5 -2
  30. package/dist/esm/{swiper.taro-852f6615.js → swiper.taro-8164df5b.js} +4 -0
  31. package/dist/esm/{tabbar.taro-86cece39.js → tabbar.taro-08e48c43.js} +1 -1
  32. package/dist/esm/{tabbaritem.taro-f4a91070.js → tabbaritem.taro-3643f585.js} +7 -7
  33. package/dist/esm/types/src/packages/button/button.d.ts +1 -0
  34. package/dist/esm/types/src/packages/button/button.taro.d.ts +1 -0
  35. package/dist/esm/types/src/packages/elevator/elevator.d.ts +3 -1
  36. package/dist/esm/types/src/packages/elevator/elevator.taro.d.ts +3 -1
  37. package/dist/esm/types/src/packages/notify/notify.d.ts +0 -1
  38. package/dist/esm/types/src/packages/numberkeyboard/numberkeyboard.d.ts +1 -0
  39. package/dist/esm/types/src/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -0
  40. package/dist/esm/types/src/packages/swipe/swipe.d.ts +4 -1
  41. package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +4 -1
  42. package/dist/esm/types/src/packages/tabbar/demo.d.ts +1 -0
  43. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +1 -0
  44. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +1 -0
  45. package/dist/esm/{uploader.taro-1d745f4a.js → uploader.taro-c70d040d.js} +1 -1
  46. package/dist/locales/base.js +1 -1
  47. package/dist/locales/en-US.js +1 -1
  48. package/dist/locales/id-ID.js +1 -1
  49. package/dist/locales/zh-CN.js +1 -1
  50. package/dist/locales/zh-TW.js +1 -1
  51. package/dist/locales/zh-UG.js +1 -1
  52. package/dist/nutui.react.es.js +58 -28
  53. package/dist/nutui.react.umd.js +58 -28
  54. package/dist/packages/button/button.scss +23 -1
  55. package/dist/packages/elevator/elevator.scss +1 -1
  56. package/dist/packages/tabbar/tabbar.scss +17 -3
  57. package/dist/packages/tabbaritem/tabbaritem.scss +23 -14
  58. package/dist/style.css +1 -1
  59. package/dist/style.es.js +1 -1
  60. package/dist/styles/variables.scss +20 -2
  61. package/dist/types/index.d.ts +11 -2
  62. package/package.json +8 -7
  63. package/dist/styles/temp.scss +0 -2340
@@ -1,5 +1,5 @@
1
- import { A as Address } from './address.taro-1765a37c.js';
2
- export { A as default } from './address.taro-1765a37c.js';
1
+ import { A as Address } from './address.taro-15ad9509.js';
2
+ export { A as default } from './address.taro-15ad9509.js';
3
3
  import 'react';
4
4
  import './icon.taro-c9254a81.js';
5
5
  import './bem-893ad28d.js';
@@ -16,5 +16,5 @@ import './configprovider-5eea4f5d.js';
16
16
  import 'lodash.kebabcase';
17
17
  import './zh-CN-dfc384d0.js';
18
18
  import '@tarojs/taro';
19
- import './elevator.taro-68cfaaee.js';
19
+ import './elevator.taro-1d749ab0.js';
20
20
  import './configprovider.taro-26882dd2.js';
package/dist/esm/Audio.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as Audio } from './audio.taro-cf530b91.js';
2
- export { A as default } from './audio.taro-cf530b91.js';
1
+ import { A as Audio } from './audio.taro-c2cdbe18.js';
2
+ export { A as default } from './audio.taro-c2cdbe18.js';
3
3
  import 'react';
4
4
  import '@tarojs/taro';
5
5
  import './icon.taro-c9254a81.js';
@@ -14,5 +14,5 @@ import './icon-2242973e.js';
14
14
  import './configprovider.taro-26882dd2.js';
15
15
  import 'lodash.kebabcase';
16
16
  import './zh-CN-dfc384d0.js';
17
- import './button.taro-b7c5f5a7.js';
17
+ import './button.taro-dc4795a3.js';
18
18
  import './typings-1c5f2628.js';
@@ -1,10 +1,10 @@
1
- import { A as Avatar } from './avatar.taro-1d2bf09a.js';
2
- export { A as default } from './avatar.taro-1d2bf09a.js';
1
+ import { A as Avatar } from './avatar.taro-c17c3d15.js';
2
+ export { A as default } from './avatar.taro-c17c3d15.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
+ import '@tarojs/components';
5
6
  import './AvatarContext-7153ad2b.js';
6
7
  import './bem-893ad28d.js';
7
8
  import '@bem-react/classname';
8
- import '@tarojs/components';
9
9
  import './icon.taro-c9254a81.js';
10
10
  import './typings-1c5f2628.js';
@@ -1,5 +1,5 @@
1
- import { B as Button } from './button.taro-b7c5f5a7.js';
2
- export { B as default } from './button.taro-b7c5f5a7.js';
1
+ import { B as Button } from './button.taro-dc4795a3.js';
2
+ export { B as default } from './button.taro-dc4795a3.js';
3
3
  import 'react';
4
4
  import './icon.taro-c9254a81.js';
5
5
  import './bem-893ad28d.js';
@@ -1,8 +1,8 @@
1
- import { D as Dialog } from './dialog.taro-0f64e21a.js';
2
- export { D as default } from './dialog.taro-0f64e21a.js';
1
+ import { D as Dialog } from './dialog.taro-54df2e3f.js';
2
+ export { D as default } from './dialog.taro-54df2e3f.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
- import './button.taro-b7c5f5a7.js';
5
+ import './button.taro-dc4795a3.js';
6
6
  import './icon.taro-c9254a81.js';
7
7
  import './bem-893ad28d.js';
8
8
  import '@bem-react/classname';
@@ -1,5 +1,5 @@
1
- import { E as Elevator } from './elevator.taro-68cfaaee.js';
2
- export { E as default } from './elevator.taro-68cfaaee.js';
1
+ import { E as Elevator } from './elevator.taro-1d749ab0.js';
2
+ export { E as default } from './elevator.taro-1d749ab0.js';
3
3
  import 'react';
4
4
  import '@tarojs/taro';
5
5
  import '@tarojs/components';
@@ -1,5 +1,5 @@
1
- import { I as ImagePreview } from './imagepreview.taro-83481e13.js';
2
- export { I as default } from './imagepreview.taro-83481e13.js';
1
+ import { I as ImagePreview } from './imagepreview.taro-e7ae4705.js';
2
+ export { I as default } from './imagepreview.taro-e7ae4705.js';
3
3
  import 'react';
4
4
  import './popup.taro-89809b25.js';
5
5
  import 'react-dom';
@@ -11,7 +11,7 @@ import '@bem-react/classname';
11
11
  import '@tarojs/components';
12
12
  import './icon.taro-c9254a81.js';
13
13
  import './typings-1c5f2628.js';
14
- import './swiper.taro-852f6615.js';
14
+ import './swiper.taro-8164df5b.js';
15
15
  import '@tarojs/taro';
16
16
  import './UserContext-b4181162.js';
17
17
  import './swiperitem-86a3578a.js';
@@ -1,5 +1,5 @@
1
- import { N as Notify } from './notify.taro-308e5892.js';
2
- export { N as default } from './notify.taro-308e5892.js';
1
+ import { N as Notify } from './notify.taro-c9ea8d68.js';
2
+ export { N as default } from './notify.taro-c9ea8d68.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import 'react-transition-group';
@@ -1,5 +1,5 @@
1
- import { N as NumberKeyboard } from './numberkeyboard.taro-d2ccbce5.js';
2
- export { N as default } from './numberkeyboard.taro-d2ccbce5.js';
1
+ import { N as NumberKeyboard } from './numberkeyboard.taro-fd9a4c1a.js';
2
+ export { N as default } from './numberkeyboard.taro-fd9a4c1a.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './bem-893ad28d.js';
@@ -1,8 +1,8 @@
1
- import { S as Signature } from './signature.taro-d7a70ce0.js';
2
- export { S as default } from './signature.taro-d7a70ce0.js';
1
+ import { S as Signature } from './signature.taro-45d1dde3.js';
2
+ export { S as default } from './signature.taro-45d1dde3.js';
3
3
  import 'react';
4
4
  import '@tarojs/taro';
5
- import './button.taro-b7c5f5a7.js';
5
+ import './button.taro-dc4795a3.js';
6
6
  import './icon.taro-c9254a81.js';
7
7
  import './bem-893ad28d.js';
8
8
  import '@bem-react/classname';
@@ -1,11 +1,11 @@
1
- import { S as Skeleton } from './skeleton.taro-6821b2c6.js';
2
- export { S as default } from './skeleton.taro-6821b2c6.js';
1
+ import { S as Skeleton } from './skeleton.taro-38e2fca2.js';
2
+ export { S as default } from './skeleton.taro-38e2fca2.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
- import './avatar.taro-1d2bf09a.js';
5
+ import './avatar.taro-c17c3d15.js';
6
+ import '@tarojs/components';
6
7
  import './AvatarContext-7153ad2b.js';
7
8
  import './bem-893ad28d.js';
8
9
  import '@bem-react/classname';
9
- import '@tarojs/components';
10
10
  import './icon.taro-c9254a81.js';
11
11
  import './typings-1c5f2628.js';
package/dist/esm/Swipe.js CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Swipe } from './swipe.taro-e6c2b808.js';
2
- export { S as default } from './swipe.taro-e6c2b808.js';
1
+ import { S as Swipe } from './swipe.taro-1eb95b21.js';
2
+ export { S as default } from './swipe.taro-1eb95b21.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
@@ -1,5 +1,5 @@
1
- import { S as Swiper } from './swiper.taro-852f6615.js';
2
- export { S as default } from './swiper.taro-852f6615.js';
1
+ import { S as Swiper } from './swiper.taro-8164df5b.js';
2
+ export { S as default } from './swiper.taro-8164df5b.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import '@tarojs/taro';
@@ -1,5 +1,5 @@
1
- import { T as Tabbar } from './tabbar.taro-86cece39.js';
2
- export { T as default } from './tabbar.taro-86cece39.js';
1
+ import { T as Tabbar } from './tabbar.taro-08e48c43.js';
2
+ export { T as default } from './tabbar.taro-08e48c43.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
@@ -1,5 +1,5 @@
1
- import { T as TabbarItem } from './tabbaritem.taro-f4a91070.js';
2
- export { T as default } from './tabbaritem.taro-f4a91070.js';
1
+ import { T as TabbarItem } from './tabbaritem.taro-3643f585.js';
2
+ export { T as default } from './tabbaritem.taro-3643f585.js';
3
3
  import 'react';
4
4
  import '@tarojs/taro';
5
5
  import './bem-893ad28d.js';
@@ -1,12 +1,12 @@
1
- import { U as Uploader } from './uploader.taro-1d745f4a.js';
2
- export { U as default } from './uploader.taro-1d745f4a.js';
1
+ import { U as Uploader } from './uploader.taro-c70d040d.js';
2
+ export { U as default } from './uploader.taro-c70d040d.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import '@tarojs/taro';
6
6
  import './icon.taro-c9254a81.js';
7
7
  import './bem-893ad28d.js';
8
8
  import '@bem-react/classname';
9
- import './button.taro-b7c5f5a7.js';
9
+ import './button.taro-dc4795a3.js';
10
10
  import './typings-1c5f2628.js';
11
11
  import './progress.taro-18e015e4.js';
12
12
  import './icon-2242973e.js';
@@ -5,7 +5,7 @@ import { c as cn } from './bem-893ad28d.js';
5
5
  import { I as Icon } from './icon-2242973e.js';
6
6
  import { u as useConfig } from './configprovider-5eea4f5d.js';
7
7
  import { createSelectorQuery } from '@tarojs/taro';
8
- import { E as Elevator } from './elevator.taro-68cfaaee.js';
8
+ import { E as Elevator } from './elevator.taro-1d749ab0.js';
9
9
  import { u as useConfig$1 } from './configprovider.taro-26882dd2.js';
10
10
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
11
11
 
@@ -2,7 +2,7 @@ import React__default, { useState, useRef } from 'react';
2
2
  import { createInnerAudioContext } from '@tarojs/taro';
3
3
  import { I as Icon } from './icon.taro-c9254a81.js';
4
4
  import { R as Range } from './range.taro-b628f1ed.js';
5
- import { B as Button } from './button.taro-b7c5f5a7.js';
5
+ import { B as Button } from './button.taro-dc4795a3.js';
6
6
  import { c as cn } from './bem-893ad28d.js';
7
7
  import { u as useConfig } from './configprovider.taro-26882dd2.js';
8
8
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
@@ -1,8 +1,8 @@
1
1
  import React__default, { useState, useRef, useContext, useEffect } from 'react';
2
2
  import classNames from 'classnames';
3
+ import { Image } from '@tarojs/components';
3
4
  import { A as AvatarContext } from './AvatarContext-7153ad2b.js';
4
5
  import { c as cn } from './bem-893ad28d.js';
5
- import { Image } from '@tarojs/components';
6
6
  import { I as Icon } from './icon.taro-c9254a81.js';
7
7
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
8
8
 
@@ -14,12 +14,13 @@ const defaultProps = {
14
14
  size: 'normal',
15
15
  block: false,
16
16
  icon: '',
17
+ iconSize: '16',
17
18
  style: {},
18
19
  children: undefined,
19
20
  onClick: (e) => { },
20
21
  };
21
22
  const Button = (props) => {
22
- const { color, shape, plain, loading, disabled, type, size, block, icon, children, onClick, className, style, iconClassPrefix, iconFontClassName, ...rest } = {
23
+ const { color, shape, plain, loading, disabled, type, size, block, icon, iconSize, children, onClick, className, style, iconClassPrefix, iconFontClassName, ...rest } = {
23
24
  ...defaultProps,
24
25
  ...props,
25
26
  };
@@ -72,6 +73,7 @@ const Button = (props) => {
72
73
  size,
73
74
  block,
74
75
  icon,
76
+ iconSize,
75
77
  children,
76
78
  onClick,
77
79
  classes,
@@ -89,7 +91,7 @@ const Button = (props) => {
89
91
  React__default.createElement("button", { className: `${btnName} ${className}`, style: { ...btnStyle, ...style }, ...rest, onClick: (e) => handleClick(e) },
90
92
  React__default.createElement("div", { className: "nut-button__warp", style: getStyle() },
91
93
  loading && (React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, name: "loading" })),
92
- !loading && icon ? (React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, name: icon })) : (''),
94
+ !loading && icon ? (React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, name: icon, size: iconSize })) : (''),
93
95
  children && (React__default.createElement("div", { className: icon || loading ? 'text' : '' }, children)))));
94
96
  };
95
97
  Button.defaultProps = defaultProps;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { forwardRef } from 'react';
3
3
  import classNames from 'classnames';
4
- import { B as Button } from './button.taro-b7c5f5a7.js';
4
+ import { B as Button } from './button.taro-dc4795a3.js';
5
5
  import { CSSTransition } from 'react-transition-group';
6
6
  import { u as useConfig } from './configprovider.taro-26882dd2.js';
7
7
 
@@ -192,5 +192,6 @@ const Elevator = (props) => {
192
192
  };
193
193
  Elevator.defaultProps = defaultProps;
194
194
  Elevator.displayName = 'NutElevator';
195
+ Elevator.Context = elevatorContext;
195
196
 
196
197
  export { Elevator as E };
@@ -1,6 +1,6 @@
1
1
  import React__default, { useRef, useState, useEffect } from 'react';
2
2
  import { P as Popup } from './popup.taro-89809b25.js';
3
- import { S as Swiper } from './swiper.taro-852f6615.js';
3
+ import { S as Swiper } from './swiper.taro-8164df5b.js';
4
4
  import { S as SwiperItem } from './swiperitem-86a3578a.js';
5
5
 
6
6
  const defaultProps = {
@@ -63,7 +63,7 @@ const Notify = (props) => {
63
63
  [`nut-notify--${type}`]: true,
64
64
  });
65
65
  return (React__default.createElement(React__default.Fragment, null,
66
- React__default.createElement(CSSTransition, { in: showNotify, timeout: 300, classNames: "fade", unmountOnExit: true, appear: true, position: position, isWrapTeleport: isWrapTeleport, id: id },
66
+ React__default.createElement(CSSTransition, { in: showNotify, timeout: 300, classNames: "fade", unmountOnExit: true, appear: true, position: position, id: id },
67
67
  React__default.createElement("div", { className: `${classes} ${className}`, style: {
68
68
  color: `${color || ''}`,
69
69
  background: `${background || ''}`,
@@ -8,6 +8,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,4 +1,4 @@
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';
@@ -13,7 +13,7 @@ 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';
@@ -23,8 +23,8 @@ export { P as Pagination } from './pagination.taro-bb490de9.js';
23
23
  export { S as SideNavBar } from './sidenavbar.taro-f44d12ac.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
30
  export { C as Calendar } from './calendar.taro-05c40d76.js';
@@ -36,7 +36,7 @@ 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';
39
+ export { N as NumberKeyboard } from './numberkeyboard.taro-fd9a4c1a.js';
40
40
  export { P as Picker } from './picker.taro-6128297f.js';
41
41
  export { R as Radio, a as RadioGroup } from './index.taro-cd52b23f.js';
42
42
  export { R as Range } from './range.taro-b628f1ed.js';
@@ -44,21 +44,21 @@ export { R as Rate } from './rate.taro-17b84a51.js';
44
44
  export { S as SearchBar } from './searchbar.taro-141827e2.js';
45
45
  export { S as ShortPassword } from './shortpassword.taro-e1f53ee7.js';
46
46
  export { T as TextArea } from './textarea.taro-42600f8c.js';
47
- export { U as Uploader } from './uploader.taro-1d745f4a.js';
47
+ export { U as Uploader } from './uploader.taro-c70d040d.js';
48
48
  export { A as ActionSheet } from './actionsheet.taro-27121a38.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,15 +67,15 @@ 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-e7ae4705.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
74
  export { P as Progress } from './progress.taro-18e015e4.js';
75
- export { S as Skeleton } from './skeleton.taro-6821b2c6.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
81
  export { T as Tag } from './tag.taro-213ec444.js';
@@ -83,10 +83,10 @@ 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-15ad9509.js';
87
87
  export { B as Barrage } from './barrage.taro-e4fe81ae.js';
88
88
  export { C as Card } from './card.taro-7e85c3da.js';
89
- export { S as Signature } from './signature.taro-d7a70ce0.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
92
  export { T as TimeSelect } from './timeselect.taro-b04b1538.js';
@@ -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 };
@@ -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,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;
@@ -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>>;