@nutui/nutui-react 2.0.0-alpha.8 → 2.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/esm/Audio.js +5 -5
  3. package/dist/esm/Elevator.js +6 -5
  4. package/dist/esm/Image.js +2 -5
  5. package/dist/esm/ImagePreview.js +9 -9
  6. package/dist/esm/Indicator.js +4 -4
  7. package/dist/esm/Notify.js +35 -46
  8. package/dist/esm/NumberKeyboard.js +137 -195
  9. package/dist/esm/Price.js +22 -23
  10. package/dist/esm/PullToRefresh.js +8 -8
  11. package/dist/esm/Radio.js +2 -0
  12. package/dist/esm/RadioGroup.js +31 -51
  13. package/dist/esm/Swiper.js +100 -111
  14. package/dist/esm/SwiperItem.js +1 -1
  15. package/dist/esm/radio2.js +52 -54
  16. package/dist/locales/base.js +1 -1
  17. package/dist/locales/en-US.js +1 -1
  18. package/dist/locales/id-ID.js +1 -1
  19. package/dist/locales/zh-CN.js +1 -1
  20. package/dist/locales/zh-TW.js +1 -1
  21. package/dist/locales/zh-UG.js +1 -1
  22. package/dist/nutui.react.mjs +718 -742
  23. package/dist/nutui.react.umd.js +717 -741
  24. package/dist/packages/imagepreview/imagepreview.scss +5 -0
  25. package/dist/packages/notify/notify.scss +1 -1
  26. package/dist/packages/numberkeyboard/numberkeyboard.scss +29 -77
  27. package/dist/packages/price/price.scss +8 -0
  28. package/dist/packages/pulltorefresh/pulltorefresh.scss +0 -8
  29. package/dist/packages/radio/radio.scss +13 -32
  30. package/dist/packages/radiogroup/radiogroup.scss +17 -51
  31. package/dist/packages/swiper/swiper.scss +0 -15
  32. package/dist/style.css +1 -1
  33. package/dist/style.mjs +1 -1
  34. package/dist/styles/variables-jmapp.scss +50 -44
  35. package/dist/styles/variables.scss +50 -46
  36. package/dist/types/index.d.ts +64 -80
  37. package/package.json +1 -1
  38. /package/dist/esm/{UserContext3.js → context2.js} +0 -0
package/dist/style.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.0-alpha.8 Fri May 12 2023 19:08:00 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.0-alpha.9 Wed May 17 2023 18:23:19 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -673,22 +673,18 @@ $numberkeyboard-key-font-color: var(
673
673
  --nutui-numberkeyboard-key-font-color,
674
674
  #333
675
675
  ) !default;
676
- $numberkeyboard-key-finish-font-size: var(
677
- --nutui-numberkeyboard-key-finish-font-size,
676
+ $numberkeyboard-key-confirm-font-size: var(
677
+ --nutui-numberkeyboard-key-confirm-font-size,
678
678
  16px
679
679
  ) !default;
680
- $numberkeyboard-key-finish-font-color: var(
681
- --nutui-numberkeyboard-key-finish-font-color,
680
+ $numberkeyboard-key-confirm-font-color: var(
681
+ --nutui-numberkeyboard-key-confirm-font-color,
682
682
  #fff
683
683
  ) !default;
684
- $numberkeyboard-key-finish-background-color: var(
685
- --nutui-numberkeyboard-key-finish-background-color,
684
+ $numberkeyboard-key-confirm-background-color: var(
685
+ --nutui-numberkeyboard-key-confirm-background-color,
686
686
  #1989fa
687
687
  ) !default;
688
- $numberkeyboard-key-activeFinsh-background-color: var(
689
- --nutui-numberkeyboard-key-activeFinsh-background-color,
690
- #0570db
691
- ) !default;
692
688
 
693
689
  // countdown(✅)
694
690
  $countdown-display: var(--nutui-countdown-display, flex) !default;
@@ -696,11 +692,17 @@ $countdown-color: var(--nutui-countdown-color, inherit) !default;
696
692
  $countdown-font-size: var(--nutui-countdown-font-size, initial) !default;
697
693
 
698
694
  //large price(✅)
695
+ $price-symbol-padding-right: var(
696
+ --nutui-price-symbol-padding-right,
697
+ 1px
698
+ ) !default;
699
699
  $price-symbol-big-size: var(--nutui-price-symbol-big-size, 18px) !default;
700
700
  $price-integer-big-size: var(--nutui-price-integer-big-size, 24px) !default;
701
701
  $price-decimal-big-size: var(--nutui-price-decimal-big-size, 18px) !default;
702
702
 
703
703
  //normal price(✅)
704
+ $price-line-color: var(--nutui-price-line-color, $gray2) !default;
705
+ $price-line-font-size: var(--nutui-price-line-font-size, 12px) !default;
704
706
  $price-symbol-medium-size: var(--nutui-price-symbol-medium-size, 14px) !default;
705
707
  $price-integer-medium-size: var(
706
708
  --nutui-price-integer-medium-size,
@@ -830,31 +832,31 @@ $notify-padding: var(--nutui-notify-padding, 12px 0) !default;
830
832
  $notify-font-size: var(--nutui-notify-font-size, 14px) !default;
831
833
  $notify-height: var(--nutui-notify-height, 44px) !default;
832
834
  $notify-line-height: var(--nutui-notify-line-height, auto) !default;
833
- $notify-base-background-color: linear-gradient(
834
- 135deg,
835
- $primary-color 0%,
836
- $primary-color-end 100%
835
+ $notify-base-background-color: var(
836
+ --nutui-notify-base-background-color,
837
+ linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%)
837
838
  ) !default;
838
- $notify-primary-background-color: linear-gradient(
839
- 315deg,
840
- rgba(73, 143, 242, 1) 0%,
841
- rgba(73, 101, 242, 1) 100%
839
+ $notify-primary-background-color: var(
840
+ --nutui-notify-primary-background-color,
841
+ linear-gradient(315deg, rgba(73, 143, 242, 1) 0%, rgba(73, 101, 242, 1) 100%)
842
842
  ) !default;
843
- $notify-success-background-color: linear-gradient(
844
- 135deg,
845
- rgba(38, 191, 38, 1) 0%,
846
- rgba(39, 197, 48, 1) 45%,
847
- rgba(40, 207, 63, 1) 83%,
848
- rgba(41, 212, 70, 1) 100%
843
+ $notify-success-background-color: var(
844
+ --nutui-notify-success-background-color,
845
+ linear-gradient(
846
+ 135deg,
847
+ rgba(38, 191, 38, 1) 0%,
848
+ rgba(39, 197, 48, 1) 45%,
849
+ rgba(40, 207, 63, 1) 83%,
850
+ rgba(41, 212, 70, 1) 100%
851
+ )
849
852
  ) !default;
850
853
  $notify-danger-background-color: var(
851
854
  --nutui-notify-danger-background-color,
852
855
  rgba(250, 50, 25, 1)
853
856
  ) !default;
854
- $notify-warning-background-color: linear-gradient(
855
- 135deg,
856
- rgba(255, 93, 13, 1) 0%,
857
- rgba(255, 154, 13, 1) 100%
857
+ $notify-warning-background-color: var(
858
+ --nutui-notify-warning-background-color,
859
+ linear-gradient(135deg, rgba(255, 93, 13, 1) 0%, rgba(255, 154, 13, 1) 100%)
858
860
  ) !default;
859
861
 
860
862
  // rate(✅)
@@ -916,22 +918,6 @@ $swiper-pagination-item-background-color: var(
916
918
  --nutui-swiper-pagination-item-background-color,
917
919
  #ddd
918
920
  ) !default;
919
- $swiper-pagination-item-width: var(
920
- --nutui-swiper-pagination-item-width,
921
- 8px
922
- ) !default;
923
- $swiper-pagination-item-height: var(
924
- --nutui-swiper-pagination-item-height,
925
- 3px
926
- ) !default;
927
- $swiper-pagination-item-margin-right: var(
928
- --nutui-swiper-pagination-item-margin-right,
929
- 7px
930
- ) !default;
931
- $swiper-pagination-item-border-radius: var(
932
- --nutui-swiper-pagination-item-border-radius,
933
- 2px
934
- ) !default;
935
921
 
936
922
  //address
937
923
  $address-region-tab-line: linear-gradient(
@@ -1226,6 +1212,26 @@ $radio-icon-disable-color2: var(
1226
1212
  --nutui-radio-icon-disable-color2,
1227
1213
  $gray3
1228
1214
  ) !default;
1215
+ $radiogroup-radio-margin: var(
1216
+ --nutui-radiogroup-radio-margin,
1217
+ 0 20px 5px 0
1218
+ ) !default;
1219
+ $radiogroup-radio-label-margin: var(
1220
+ --nutui-radiogroup-radio-label-margin,
1221
+ 0 5px 0 5px
1222
+ ) !default;
1223
+ $radio-button-disabled-active-background: var(
1224
+ --nutui-radio-button-disabled-active-background,
1225
+ rgba(0, 0, 0, 0.15)
1226
+ ) !default;
1227
+ $radio-button-disabled-active-color: var(
1228
+ --nutui-radio-button-disabled-active-color,
1229
+ rgba(0, 0, 0, 0.25)
1230
+ ) !default;
1231
+ $radio-button-disabled-active-border-color: var(
1232
+ --nutui-radio-button-disabled-active-border-color,
1233
+ rgba(211, 211, 211, 0.15)
1234
+ ) !default;
1229
1235
 
1230
1236
  // signature(✅)
1231
1237
  $signature-border-color: #dadada;
@@ -656,20 +656,16 @@ $numberkeyboard-key-font-color: var(
656
656
  --nutui-numberkeyboard-key-font-color,
657
657
  #333
658
658
  ) !default;
659
- $numberkeyboard-key-finish-font-size: var(
660
- --nutui-numberkeyboard-key-finish-font-size,
659
+ $numberkeyboard-key-confirm-font-size: var(
660
+ --nutui-numberkeyboard-key-confirm-font-size,
661
661
  16px
662
662
  ) !default;
663
- $numberkeyboard-key-finish-font-color: var(
664
- --nutui-numberkeyboard-key-finish-font-color,
663
+ $numberkeyboard-key-confirm-font-color: var(
664
+ --nutui-numberkeyboard-key-confirm-font-color,
665
665
  #fff
666
666
  ) !default;
667
- $numberkeyboard-key-finish-background-color: var(
668
- --nutui-numberkeyboard-key-finish-background-color,
669
- $brand-color
670
- ) !default;
671
- $numberkeyboard-key-activeFinsh-background-color: var(
672
- --nutui-numberkeyboard-key-activeFinsh-background-color,
667
+ $numberkeyboard-key-confirm-background-color: var(
668
+ --nutui-numberkeyboard-key-confirm-background-color,
673
669
  $brand-color
674
670
  ) !default;
675
671
 
@@ -679,11 +675,17 @@ $countdown-color: var(--nutui-countdown-color, inherit) !default;
679
675
  $countdown-font-size: var(--nutui-countdown-font-size, initial) !default;
680
676
 
681
677
  //large price(✅)
678
+ $price-symbol-padding-right: var(
679
+ --nutui-price-symbol-padding-right,
680
+ 1px
681
+ ) !default;
682
682
  $price-symbol-big-size: var(--nutui-price-symbol-big-size, 18px) !default;
683
683
  $price-integer-big-size: var(--nutui-price-integer-big-size, 24px) !default;
684
684
  $price-decimal-big-size: var(--nutui-price-decimal-big-size, 18px) !default;
685
685
 
686
686
  //normal price(✅)
687
+ $price-line-color: var(--nutui-price-line-color, $gray2) !default;
688
+ $price-line-font-size: var(--nutui-price-line-font-size, 12px) !default;
687
689
  $price-symbol-medium-size: var(--nutui-price-symbol-medium-size, 14px) !default;
688
690
  $price-integer-medium-size: var(
689
691
  --nutui-price-integer-medium-size,
@@ -814,33 +816,31 @@ $notify-padding: var(--nutui-notify-padding, 12px 0) !default;
814
816
  $notify-font-size: var(--nutui-notify-font-size, 14px) !default;
815
817
  $notify-height: var(--nutui-notify-height, 44px) !default;
816
818
  $notify-line-height: var(--nutui-notify-line-height, auto) !default;
817
- $notify-base-background-color: linear-gradient(
818
- 135deg,
819
- rgba(250, 44, 25, 1) 0%,
820
- rgba(250, 63, 25, 1) 45%,
821
- rgba(250, 89, 25, 1) 83%,
822
- rgba(250, 100, 25, 1) 100%
819
+ $notify-base-background-color: var(
820
+ --nutui-notify-base-background-color,
821
+ linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%)
823
822
  ) !default;
824
- $notify-primary-background-color: linear-gradient(
825
- 315deg,
826
- rgba(73, 143, 242, 1) 0%,
827
- rgba(73, 101, 242, 1) 100%
823
+ $notify-primary-background-color: var(
824
+ --nutui-notify-primary-background-color,
825
+ linear-gradient(315deg, rgba(73, 143, 242, 1) 0%, rgba(73, 101, 242, 1) 100%)
828
826
  ) !default;
829
- $notify-success-background-color: linear-gradient(
830
- 135deg,
831
- rgba(38, 191, 38, 1) 0%,
832
- rgba(39, 197, 48, 1) 45%,
833
- rgba(40, 207, 63, 1) 83%,
834
- rgba(41, 212, 70, 1) 100%
827
+ $notify-success-background-color: var(
828
+ --nutui-notify-success-background-color,
829
+ linear-gradient(
830
+ 135deg,
831
+ rgba(38, 191, 38, 1) 0%,
832
+ rgba(39, 197, 48, 1) 45%,
833
+ rgba(40, 207, 63, 1) 83%,
834
+ rgba(41, 212, 70, 1) 100%
835
+ )
835
836
  ) !default;
836
837
  $notify-danger-background-color: var(
837
838
  --nutui-notify-danger-background-color,
838
839
  rgba(250, 50, 25, 1)
839
840
  ) !default;
840
- $notify-warning-background-color: linear-gradient(
841
- 135deg,
842
- rgba(255, 93, 13, 1) 0%,
843
- rgba(255, 154, 13, 1) 100%
841
+ $notify-warning-background-color: var(
842
+ --nutui-notify-warning-background-color,
843
+ linear-gradient(135deg, rgba(255, 93, 13, 1) 0%, rgba(255, 154, 13, 1) 100%)
844
844
  ) !default;
845
845
 
846
846
  // rate(✅)
@@ -902,22 +902,6 @@ $swiper-pagination-item-background-color: var(
902
902
  --nutui-swiper-pagination-item-background-color,
903
903
  #ddd
904
904
  ) !default;
905
- $swiper-pagination-item-width: var(
906
- --nutui-swiper-pagination-item-width,
907
- 8px
908
- ) !default;
909
- $swiper-pagination-item-height: var(
910
- --nutui-swiper-pagination-item-height,
911
- 3px
912
- ) !default;
913
- $swiper-pagination-item-margin-right: var(
914
- --nutui-swiper-pagination-item-margin-right,
915
- 7px
916
- ) !default;
917
- $swiper-pagination-item-border-radius: var(
918
- --nutui-swiper-pagination-item-border-radius,
919
- 2px
920
- ) !default;
921
905
 
922
906
  //address
923
907
  $address-region-tab-line: linear-gradient(
@@ -1220,6 +1204,26 @@ $radio-icon-disable-color2: var(
1220
1204
  --nutui-radio-icon-disable-color2,
1221
1205
  $gray3
1222
1206
  ) !default;
1207
+ $radiogroup-radio-margin: var(
1208
+ --nutui-radiogroup-radio-margin,
1209
+ 0 20px 5px 0
1210
+ ) !default;
1211
+ $radiogroup-radio-label-margin: var(
1212
+ --nutui-radiogroup-radio-label-margin,
1213
+ 0 5px 0 5px
1214
+ ) !default;
1215
+ $radio-button-disabled-active-background: var(
1216
+ --nutui-radio-button-disabled-active-background,
1217
+ rgba(0, 0, 0, 0.15)
1218
+ ) !default;
1219
+ $radio-button-disabled-active-color: var(
1220
+ --nutui-radio-button-disabled-active-color,
1221
+ rgba(0, 0, 0, 0.25)
1222
+ ) !default;
1223
+ $radio-button-disabled-active-border-color: var(
1224
+ --nutui-radio-button-disabled-active-border-color,
1225
+ rgba(211, 211, 211, 0.15)
1226
+ ) !default;
1223
1227
 
1224
1228
  // signature(✅)
1225
1229
  $signature-border-color: #dadada;
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { CSSProperties, ReactNode, FunctionComponent, MouseEvent as MouseEvent$1, MouseEventHandler, HTMLInputTypeAttribute, ChangeEvent, FocusEvent, RefObject, ForwardRefExoticComponent, PropsWithChildren, Component, ReactEventHandler } from 'react';
2
+ import React__default, { CSSProperties, ReactNode, FunctionComponent, MouseEvent as MouseEvent$1, HTMLInputTypeAttribute, ChangeEvent, FocusEvent, RefObject, ForwardRefExoticComponent, PropsWithChildren, Component, ReactEventHandler } from 'react';
3
3
 
4
4
  interface BasicComponent {
5
5
  className?: string;
@@ -299,6 +299,7 @@ interface ElevatorProps extends BasicComponent {
299
299
  sticky: boolean;
300
300
  spaceHeight: number;
301
301
  titleHeight: number;
302
+ showKeys: boolean;
302
303
  children: React__default.ReactNode;
303
304
  onClickItem: (key: string, item: ElevatorData) => void;
304
305
  onClickIndex: (key: string) => void;
@@ -630,7 +631,7 @@ interface RadioGroupOptionType {
630
631
  label: string;
631
632
  value: string;
632
633
  disabled?: boolean;
633
- onChange?: MouseEventHandler<HTMLDivElement>;
634
+ onChange?: (checked: boolean) => void;
634
635
  }
635
636
 
636
637
  type CheckboxLabelPosition = 'left' | 'right';
@@ -892,22 +893,39 @@ interface MenuItemProps extends BasicComponent {
892
893
  }
893
894
  declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
894
895
 
895
- interface NumberKeyboardProps {
896
- confirmText: string;
897
- title: string;
898
- visible: boolean;
896
+ type Teleport = HTMLElement | (() => HTMLElement) | null;
897
+ interface PopupProps extends OverlayProps {
898
+ position: string;
899
+ transition: string;
900
+ overlayStyle: React__default.CSSProperties;
901
+ overlayClassName: string;
902
+ closeable: boolean;
903
+ closeIconPosition: string;
904
+ closeIcon: React__default.ReactNode;
905
+ destroyOnClose: boolean;
906
+ portal: Teleport;
899
907
  overlay: boolean;
900
- type: string;
901
- customKey: Array<string>;
902
- randomKeys: boolean;
903
- popClass: string;
904
- className: string;
905
- style?: CSSProperties;
908
+ round: boolean;
909
+ onOpen: () => void;
910
+ onClose: () => void;
911
+ onClickOverlay: (e: MouseEvent$1) => boolean | void;
912
+ onClickCloseIcon: (e: MouseEvent$1) => boolean | void;
913
+ }
914
+ declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
915
+
916
+ interface NumberKeyboardProps extends PopupProps {
917
+ visible: boolean;
918
+ title?: ReactNode;
919
+ confirmText?: string;
920
+ type: 'default' | 'rightColumn';
921
+ custom: Array<string>;
922
+ random: boolean;
906
923
  onChange?: (value: string) => void;
907
924
  onDelete?: () => void;
908
925
  onClose: () => void;
926
+ onConfirm?: () => void;
909
927
  }
910
- declare const NumberKeyboard: FunctionComponent<Partial<NumberKeyboardProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
928
+ declare const NumberKeyboard: FunctionComponent<Partial<NumberKeyboardProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onClick' | 'title'>>;
911
929
 
912
930
  interface PickerOption {
913
931
  text: string | number;
@@ -935,31 +953,31 @@ declare const Picker: React__default.ForwardRefExoticComponent<Partial<PickerPro
935
953
  type Position$1 = 'left' | 'right';
936
954
  type Direction$1 = 'horizontal' | 'vertical';
937
955
  interface RadioGroupProps {
938
- value: string | number | boolean | null;
939
- textPosition: Position$1;
956
+ value?: string | number;
957
+ defaultValue?: string | number;
958
+ labelPosition: Position$1;
940
959
  direction: Direction$1;
941
- onChange: (value: string | number | boolean) => void;
960
+ disabled?: boolean;
942
961
  options: RadioGroupOptionType[];
962
+ onChange: (value: string | number) => void;
943
963
  }
944
964
  declare const RadioGroup: React__default.ForwardRefExoticComponent<Partial<RadioGroupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<unknown>>;
945
965
 
946
966
  type Shape = 'button' | 'round';
947
967
  type Position = 'right' | 'left';
948
968
  interface RadioProps extends BasicComponent {
949
- className: string;
950
- style: React__default.CSSProperties;
951
969
  disabled: boolean;
952
970
  checked: boolean;
971
+ defaultChecked: boolean;
953
972
  shape: Shape;
954
- textPosition: Position;
955
- value: string | number | boolean;
973
+ labelPosition: Position;
956
974
  icon: React__default.ReactNode;
957
- checkedIcon: React__default.ReactNode;
958
- iconSize: string | number;
959
- onChange: MouseEventHandler<HTMLDivElement>;
975
+ activeIcon: React__default.ReactNode;
976
+ value: string | number;
977
+ onChange: (checked: boolean) => void;
960
978
  }
961
- declare const Radio: FunctionComponent<Partial<RadioProps> & React__default.HTMLAttributes<HTMLDivElement>> & {
962
- RadioGroup: typeof RadioGroup;
979
+ declare const Radio: FunctionComponent<Partial<RadioProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
980
+ Group: typeof RadioGroup;
963
981
  };
964
982
 
965
983
  type RangeValue = number | number[];
@@ -1348,24 +1366,20 @@ interface NoticeBarProps extends BasicComponent {
1348
1366
  }
1349
1367
  declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
1350
1368
 
1351
- interface NotifyProps {
1369
+ interface NotifyProps extends BasicComponent {
1352
1370
  id: string;
1353
- color?: string;
1354
- msg: string;
1355
1371
  duration: number;
1356
- className?: string;
1357
- background?: string;
1358
1372
  type: string;
1359
1373
  position: string;
1360
1374
  onClick: () => void;
1361
- onClosed: () => void;
1375
+ onClose: () => void;
1362
1376
  }
1363
1377
  declare const _default$1: {
1364
- text(msg: string | React$1.ReactNode, option?: {}): void;
1365
- success(msg: string | React$1.ReactNode, option?: {}): void;
1366
- primary(msg: string | React$1.ReactNode, option?: {}): void;
1367
- danger(msg: string | React$1.ReactNode, option?: {}): void;
1368
- warn(msg: string | React$1.ReactNode, option?: {}): void;
1378
+ text(message: string | React$1.ReactNode, option?: {}): void;
1379
+ success(message: string | React$1.ReactNode, option?: {}): void;
1380
+ primary(message: string | React$1.ReactNode, option?: {}): void;
1381
+ danger(message: string | React$1.ReactNode, option?: {}): void;
1382
+ warn(message: string | React$1.ReactNode, option?: {}): void;
1369
1383
  hide(): void;
1370
1384
  };
1371
1385
 
@@ -1391,9 +1405,7 @@ interface PopoverProps extends BasicComponent {
1391
1405
  declare const Popover: FunctionComponent<Partial<PopoverProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1392
1406
 
1393
1407
  type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
1394
- interface PullToRefreshProps {
1395
- className: string;
1396
- style: React__default.CSSProperties;
1408
+ interface PullToRefreshProps extends BasicComponent {
1397
1409
  onRefresh: () => Promise<any>;
1398
1410
  pullingText: ReactNode;
1399
1411
  canReleaseText: ReactNode;
@@ -1404,7 +1416,6 @@ interface PullToRefreshProps {
1404
1416
  threshold: number;
1405
1417
  disabled: boolean;
1406
1418
  renderText: (status: PullStatus) => ReactNode;
1407
- children: React__default.ReactNode;
1408
1419
  }
1409
1420
  declare const PullToRefresh: FunctionComponent<Partial<PullToRefreshProps>>;
1410
1421
 
@@ -1465,26 +1476,6 @@ interface SwipeProps {
1465
1476
  }
1466
1477
  declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onTouchEnd" | "onTouchMove" | "onTouchStart"> & React__default.RefAttributes<SwipeInstance>>;
1467
1478
 
1468
- type Teleport = HTMLElement | (() => HTMLElement) | null;
1469
- interface PopupProps extends OverlayProps {
1470
- position: string;
1471
- transition: string;
1472
- overlayStyle: React__default.CSSProperties;
1473
- overlayClassName: string;
1474
- closeable: boolean;
1475
- closeIconPosition: string;
1476
- closeIcon: React__default.ReactNode;
1477
- destroyOnClose: boolean;
1478
- portal: Teleport;
1479
- overlay: boolean;
1480
- round: boolean;
1481
- onOpen: () => void;
1482
- onClose: () => void;
1483
- onClickOverlay: (e: MouseEvent$1) => boolean | void;
1484
- onClickCloseIcon: (e: MouseEvent$1) => boolean | void;
1485
- }
1486
- declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1487
-
1488
1479
  interface ToastProps {
1489
1480
  id?: string;
1490
1481
  msg: string;
@@ -1551,7 +1542,7 @@ declare class AnimatingNumbers extends Component<AnimatingNumbersProps, Animatin
1551
1542
  interface AudioProps extends BasicComponent {
1552
1543
  src: string;
1553
1544
  muted: boolean;
1554
- autoplay: boolean;
1545
+ autoPlay: boolean;
1555
1546
  loop: boolean;
1556
1547
  preload: string;
1557
1548
  type: string;
@@ -1675,10 +1666,10 @@ interface ImagePreviewProps {
1675
1666
  };
1676
1667
  }>;
1677
1668
  show: boolean;
1678
- autoplay: number | string;
1669
+ autoPlay: number | string;
1679
1670
  initNo: number;
1680
1671
  contentClose: boolean;
1681
- paginationVisible: boolean;
1672
+ indicator: boolean;
1682
1673
  style?: CSSProperties;
1683
1674
  paginationColor: string;
1684
1675
  onClose: () => void;
@@ -1729,16 +1720,14 @@ interface PaginationProps extends BasicComponent {
1729
1720
  }
1730
1721
  declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
1731
1722
 
1732
- interface PriceProps {
1723
+ interface PriceProps extends BasicComponent {
1733
1724
  price: number | string;
1734
- needSymbol: boolean;
1735
1725
  symbol: string;
1736
- decimalDigits: number;
1726
+ digits: number;
1737
1727
  thousands: boolean;
1738
1728
  position: string;
1739
1729
  size: string;
1740
- className: string;
1741
- style: React__default.CSSProperties;
1730
+ line: boolean;
1742
1731
  }
1743
1732
  declare const Price: FunctionComponent<Partial<PriceProps>>;
1744
1733
 
@@ -1780,25 +1769,20 @@ type SwiperRef = {
1780
1769
  next: () => void;
1781
1770
  prev: () => void;
1782
1771
  };
1783
- interface SwiperProps {
1772
+ interface SwiperProps extends BasicComponent {
1784
1773
  width: number | string;
1785
1774
  height: number | string;
1786
1775
  duration: number | string;
1787
- initPage: number | string;
1776
+ defaultValue: number | string;
1788
1777
  autoPlay: number | string;
1789
1778
  direction: 'horizontal' | 'vertical';
1790
- paginationColor: string;
1791
- paginationBgColor: string;
1792
- paginationVisible: boolean;
1779
+ indicator: ReactNode;
1793
1780
  loop: boolean;
1794
1781
  touchable: boolean;
1795
- isPreventDefault: boolean;
1796
- isStopPropagation: boolean;
1797
- isCenter: boolean;
1798
- className?: string;
1799
- style?: React__default.CSSProperties;
1800
- pageContent?: React__default.ReactNode;
1801
- onChange?: (currPage: number) => void;
1782
+ preventDefault: boolean;
1783
+ stopPropagation: boolean;
1784
+ center: boolean;
1785
+ onChange?: (current: number) => void;
1802
1786
  }
1803
1787
  declare const Swiper: React__default.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<SwiperRef>>;
1804
1788
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "2.0.0-alpha.8",
3
+ "version": "2.0.0-alpha.9",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",
File without changes