@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
package/dist/style.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.6 Wed Feb 08 2023 16:05:15 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.7-beta.0 Mon Feb 13 2023 18:07:23 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -148,6 +148,21 @@ $button-mini-font-size: var(
148
148
  $font-size-1
149
149
  ) !default;
150
150
  $button-mini-line-height: var(--nutui-button-mini-line-height, 1.2) !default;
151
+
152
+ $button-text-icon-width: var(--nutui-button-text-icon-width, 5px) !default;
153
+ $button-text-icon-large-width: var(
154
+ --nutui-button-text-icon--large-width,
155
+ 10px
156
+ ) !default;
157
+ $button-text-icon-small-width: var(
158
+ --nutui-button-text-icon-small-width,
159
+ 2px
160
+ ) !default;
161
+ $button-text-icon-mini-width: var(
162
+ --nutui-button-text-icon-mini-width,
163
+ 1px
164
+ ) !default;
165
+
151
166
  $button-disabled-opacity: var(--nutui-button-disabled-opacity, 0.68) !default;
152
167
  $button-primary-color: var(--nutui-button-primary-color, $white) !default;
153
168
  $button-primary-border-color: var(
@@ -737,6 +752,7 @@ $rate-icon-void-color: var(
737
752
  ) !default;
738
753
 
739
754
  // tabbar(✅)
755
+ $tabbar-height: var(--nutui-tabbar-height, 50px) !default;
740
756
  $tabbar-active-color: var(--nutui-tabbar-active-color, $primary-color) !default;
741
757
  $tabbar-unactive-color: var(
742
758
  --nutui-tabbar-unactive-color,
@@ -754,10 +770,12 @@ $tabbar-item-text-font-size: var(
754
770
  ) !default;
755
771
  $tabbar-item-text-line-height: var(
756
772
  --nutui-tabbar-item-text-line-height,
757
- initial
773
+ 20px
758
774
  ) !default;
759
775
  $tabbar-height: var(--nutui-tabbar-height, 50px) !default;
760
- $tabbar-word-margin-top: var(--nutui-tabbar-word-margin-top, auto) !default;
776
+ $tabbar-word-margin-top: var(--nutui-tabbar-word-margin-top, 3px) !default;
777
+ $tabbar-dot-right: var(--nutui-tabbar-dot-right, 12px) !default;
778
+ $tabbar-dot-top: var(--nutui-tabbar-dot-top, 0) !default;
761
779
 
762
780
  //infiniteloading(✅)
763
781
  $infiniteloading-bottom-color: var(
@@ -24,6 +24,7 @@ interface ButtonProps extends BasicComponent, OmitMiniProgramButtonProps {
24
24
  size: ButtonSize;
25
25
  block: boolean;
26
26
  icon: string;
27
+ iconSize: string | number;
27
28
  children: any;
28
29
  onClick: (e: MouseEvent) => void;
29
30
  }
@@ -359,6 +360,7 @@ interface StickyProps extends BasicComponent {
359
360
  }
360
361
  declare const Sticky: FunctionComponent<StickyProps>;
361
362
 
363
+ declare const elevatorContext: React__default.Context<ElevatorData>;
362
364
  interface ElevatorProps {
363
365
  height: number | string;
364
366
  acceptKey: string;
@@ -377,7 +379,9 @@ interface ElevatorData {
377
379
  id: number | string;
378
380
  [key: string]: string | number;
379
381
  }
380
- declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
382
+ declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React__default.HTMLAttributes<HTMLDivElement>> & {
383
+ Context: typeof elevatorContext;
384
+ };
381
385
 
382
386
  type Direction$1 = 'right' | 'left';
383
387
  type Position$2 = {
@@ -541,6 +545,7 @@ declare const Tabbar: FunctionComponent<Partial<TabbarProps>>;
541
545
  interface TabbarItemProps extends BasicComponent {
542
546
  dot: boolean;
543
547
  size: string | number;
548
+ iconSize: string | number;
544
549
  className: string;
545
550
  tabTitle: string;
546
551
  icon: string;
@@ -912,6 +917,7 @@ interface NumberKeyboardProps {
912
917
  confirmText: string;
913
918
  title: string;
914
919
  visible: boolean;
920
+ overlay: boolean;
915
921
  type: string;
916
922
  customKey: Array<string>;
917
923
  randomKeys: boolean;
@@ -1416,9 +1422,12 @@ interface SwipeProps {
1416
1422
  }) => void;
1417
1423
  /** 点击时触发 */
1418
1424
  onActionClick?: (event: Event, position: SwipePosition) => void;
1425
+ onTouchStart?: (event: Event) => void;
1426
+ onTouchEnd?: (event: Event) => void;
1427
+ onTouchMove?: (event: Event) => void;
1419
1428
  children?: React__default.ReactNode;
1420
1429
  }
1421
- declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<SwipeInstance>>;
1430
+ declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onTouchEnd" | "onTouchMove" | "onTouchStart"> & React__default.RefAttributes<SwipeInstance>>;
1422
1431
 
1423
1432
  interface SwitchProps {
1424
1433
  isAsync: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react-taro",
3
- "version": "1.4.6",
3
+ "version": "1.4.7-beta.0",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",
@@ -114,12 +114,13 @@
114
114
  "@rollup/plugin-node-resolve": "^13.1.1",
115
115
  "@rollup/plugin-typescript": "^8.3.0",
116
116
  "@tarojs/components": "^3.6.0",
117
- "@tarojs/plugin-framework-react": "^3.5.10",
118
- "@tarojs/plugin-platform-weapp": "^3.5.7",
119
- "@tarojs/react": "^3.5.10",
120
- "@tarojs/taro": "^3.5.5",
121
- "@tarojs/taro-h5": "^3.5.10",
122
- "@tarojs/taro-loader": "^3.5.7",
117
+ "@tarojs/plugin-framework-react": "^3.6.0",
118
+ "@tarojs/plugin-platform-h5": "^3.6.0",
119
+ "@tarojs/plugin-platform-weapp": "^3.6.0",
120
+ "@tarojs/react": "^3.6.0",
121
+ "@tarojs/taro": "^3.6.0",
122
+ "@tarojs/taro-h5": "^3.6.0",
123
+ "@tarojs/taro-loader": "^3.6.0",
123
124
  "@testing-library/jest-dom": "^5.16.3",
124
125
  "@testing-library/react": "^13.3.0",
125
126
  "@types/jest": "^27.4.1",