@nutui/nutui-react 1.4.0-beta.1 → 1.4.1-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.
- package/CHANGELOG.md +13 -0
- package/dist/esm/Icon/style/index.js +1 -2
- package/dist/esm/Input.js +3 -3
- package/dist/esm/MenuItem.js +1 -1
- package/dist/esm/Overlay.js +2 -2
- package/dist/esm/Popup.js +3 -2
- package/dist/esm/Range.js +1 -3
- package/dist/esm/Swiper.js +8 -4
- package/dist/esm/{overlay-ed3eb37d.js → overlay-41da5070.js} +1 -1
- package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/type.d.ts +2 -2
- package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.d.ts +1 -1
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -1
- package/dist/esm/types/src/packages/badge/badge.d.ts +1 -1
- package/dist/esm/types/src/packages/button/button.d.ts +3 -3
- package/dist/esm/types/src/packages/calendar/calendar.d.ts +1 -1
- package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +2 -2
- package/dist/esm/types/src/packages/cascader/types.d.ts +1 -1
- package/dist/esm/types/src/packages/col/col.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/Mask.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +2 -2
- package/dist/esm/types/src/packages/dialog/dialog.d.ts +1 -1
- package/dist/esm/types/src/packages/divider/divider.d.ts +2 -2
- package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +1 -1
- package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +2 -2
- package/dist/esm/types/src/packages/form/types.d.ts +2 -2
- package/dist/esm/types/src/packages/formitem/formitem.d.ts +2 -2
- package/dist/esm/types/src/packages/formitem/types.d.ts +2 -2
- package/dist/esm/types/src/packages/grid/grid.d.ts +1 -1
- package/dist/esm/types/src/packages/griditem/griditem.d.ts +1 -1
- package/dist/esm/types/src/packages/image/image.d.ts +2 -2
- package/dist/esm/types/src/packages/input/input.d.ts +5 -5
- package/dist/esm/types/src/packages/popover/popover.d.ts +2 -2
- package/dist/esm/types/src/packages/popup/popup.d.ts +1 -1
- package/dist/esm/types/src/packages/progress/progress.d.ts +2 -2
- package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
- package/dist/esm/types/src/packages/radio/radio.d.ts +2 -2
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -2
- package/dist/esm/types/src/packages/range/range.d.ts +1 -2
- package/dist/esm/types/src/packages/row/row.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbar/type.d.ts +3 -3
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +1 -1
- package/dist/esm/types/src/packages/skeleton/skeleton.d.ts +1 -1
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +1 -1
- package/dist/esm/types/src/packages/swipe/swipe.d.ts +2 -2
- package/dist/esm/types/src/packages/swiper/swiper.d.ts +2 -1
- package/dist/esm/types/src/packages/table/table.d.ts +1 -1
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
- package/dist/esm/types/src/packages/tag/tag.d.ts +1 -1
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +2 -2
- package/dist/esm/types/src/packages/virtuallist/type.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/esm/types/src/utils/get-scroll-parent.d.ts +1 -1
- package/dist/esm/types/src/utils/render.d.ts +1 -1
- package/dist/esm/types/src/utils/useTouch.d.ts +1 -1
- package/dist/esm/types/src/utils/useWatch.d.ts +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +90 -78
- package/dist/nutui.react.umd.js +90 -78
- package/dist/packages/input/input.scss +15 -0
- package/dist/packages/searchbar/searchbar.scss +6 -13
- package/dist/packages/swiper/swiper.scss +0 -3
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/styles/variables.scss +8 -4
- package/dist/types/index.d.ts +56 -56
- package/package.json +2 -1
package/dist/style.es.js
CHANGED
|
@@ -83,6 +83,10 @@ $divider-color: $gray9 !default;
|
|
|
83
83
|
$font-family: PingFang SC, Microsoft YaHei, Helvetica, Hiragino Sans GB, SimSun,
|
|
84
84
|
sans-serif !default;
|
|
85
85
|
|
|
86
|
+
// --- z-index ----
|
|
87
|
+
$mask-z-index: 1000;
|
|
88
|
+
$mask-content-z-index: 1200;
|
|
89
|
+
|
|
86
90
|
// ---- Animation ----
|
|
87
91
|
$animation-duration: 0.25s !default;
|
|
88
92
|
$animation-timing-fun: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;
|
|
@@ -533,9 +537,9 @@ $dialog-header-height: 20px !default;
|
|
|
533
537
|
$dialog-content-margin: 20px 0 !default;
|
|
534
538
|
$dialog-content-max-height: 268px !default;
|
|
535
539
|
$dialog-content-line-height: 16px !default;
|
|
536
|
-
$dialog-mask-z-index:
|
|
540
|
+
$dialog-mask-z-index: $mask-z-index !default;
|
|
537
541
|
$dialog-mask-background-color: $mask-color !default;
|
|
538
|
-
$dialog-outer-z-index:
|
|
542
|
+
$dialog-outer-z-index: $mask-content-z-index !default;
|
|
539
543
|
$dialog-outer-bordder-radius: 20px !default;
|
|
540
544
|
$dialog-vertical-footer-ok-margin-top: 10px !default;
|
|
541
545
|
$dialog-footer-button-min-width: 100px !default;
|
|
@@ -794,7 +798,7 @@ $menu-item-option-padding-bottom: 12px !default;
|
|
|
794
798
|
$menu-item-option-i-margin-right: 6px !default;
|
|
795
799
|
$menu-bar-box-shadow: 0 2px 12px rgba(89, 89, 89, 0.12) !default;
|
|
796
800
|
$menu-scroll-fixed-top: 0 !default;
|
|
797
|
-
$menu-scroll-fixed-z-index:
|
|
801
|
+
$menu-scroll-fixed-z-index: $mask-z-index !default;
|
|
798
802
|
$menu-active-item-font-weight: 500 !default;
|
|
799
803
|
$menu-item-content-bg-color: $gray6 !default;
|
|
800
804
|
|
|
@@ -1061,7 +1065,7 @@ $comment-shop-color: $primary-color !default;
|
|
|
1061
1065
|
$ellipsis-expand-collapse-color: #3460fa !default;
|
|
1062
1066
|
|
|
1063
1067
|
// WaterMark(✅ todo:react版本该组件暂无,将变量先迁过来)
|
|
1064
|
-
$watermark-z-index:
|
|
1068
|
+
$watermark-z-index: $mask-content-z-index !default;
|
|
1065
1069
|
|
|
1066
1070
|
// invoice(✅ todo:react版本该组件暂无,将变量先迁过来)
|
|
1067
1071
|
$invoice-padding: 10px 10px 20px !default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -24,9 +24,9 @@ interface ButtonProps extends BasicComponent {
|
|
|
24
24
|
children: any;
|
|
25
25
|
onClick: (e: MouseEvent) => void;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
28
|
+
type ButtonSize = 'large' | 'normal' | 'small';
|
|
29
|
+
type ButtonShape = 'square' | 'round';
|
|
30
30
|
declare const Button: FunctionComponent<Partial<ButtonProps>>;
|
|
31
31
|
|
|
32
32
|
interface CellProps extends BasicComponent {
|
|
@@ -87,7 +87,7 @@ interface OverlayProps {
|
|
|
87
87
|
}
|
|
88
88
|
declare const Overlay: FunctionComponent<Partial<OverlayProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
91
91
|
interface PopupProps extends OverlayProps, BasicComponent {
|
|
92
92
|
position: string;
|
|
93
93
|
transition: string;
|
|
@@ -265,15 +265,15 @@ interface ImageProps {
|
|
|
265
265
|
onLoad?: () => void;
|
|
266
266
|
onError?: () => void;
|
|
267
267
|
}
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | string;
|
|
269
|
+
type ImagePosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | string;
|
|
270
270
|
declare const Image: FunctionComponent<Partial<ImageProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onLoad' | 'onError'>>;
|
|
271
271
|
|
|
272
272
|
interface LayoutProps {
|
|
273
273
|
}
|
|
274
274
|
declare const Layout: FunctionComponent<Partial<LayoutProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
type EventType$1 = 'row' | 'col';
|
|
277
277
|
interface ColProps {
|
|
278
278
|
span: string | number;
|
|
279
279
|
offset: string | number;
|
|
@@ -282,7 +282,7 @@ interface ColProps {
|
|
|
282
282
|
}
|
|
283
283
|
declare const Col: FunctionComponent<Partial<ColProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
type EventType = 'row' | 'col';
|
|
286
286
|
interface RowProps {
|
|
287
287
|
type: string;
|
|
288
288
|
justify: string;
|
|
@@ -293,8 +293,8 @@ interface RowProps {
|
|
|
293
293
|
}
|
|
294
294
|
declare const Row: FunctionComponent<Partial<RowProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
295
295
|
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
type ContentPositionType = 'left' | 'center' | 'right';
|
|
297
|
+
type DirectionType = 'horizontal' | 'vertical';
|
|
298
298
|
interface DividerProps {
|
|
299
299
|
contentPosition: ContentPositionType;
|
|
300
300
|
dashed: boolean;
|
|
@@ -305,7 +305,7 @@ interface DividerProps {
|
|
|
305
305
|
}
|
|
306
306
|
declare const Divider: FunctionComponent<Partial<DividerProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
307
307
|
|
|
308
|
-
|
|
308
|
+
type GridDirection$1 = 'horizontal' | 'vertical';
|
|
309
309
|
interface GridItemProps extends BasicComponent {
|
|
310
310
|
text: string | ReactNode;
|
|
311
311
|
icon: string | ReactNode;
|
|
@@ -324,7 +324,7 @@ interface GridItemProps extends BasicComponent {
|
|
|
324
324
|
}
|
|
325
325
|
declare const GridItem: FunctionComponent<Partial<GridItemProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
type GridDirection = 'horizontal' | 'vertical';
|
|
328
328
|
interface GridProps {
|
|
329
329
|
columnNum: string | number;
|
|
330
330
|
border: boolean;
|
|
@@ -374,8 +374,8 @@ interface NavBarProps$1 extends BasicComponent {
|
|
|
374
374
|
}
|
|
375
375
|
declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
|
|
376
376
|
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
type Direction$1 = 'right' | 'left';
|
|
378
|
+
type Position$2 = {
|
|
379
379
|
top?: string;
|
|
380
380
|
bottom?: string;
|
|
381
381
|
};
|
|
@@ -472,7 +472,7 @@ declare class Title {
|
|
|
472
472
|
index: number;
|
|
473
473
|
constructor();
|
|
474
474
|
}
|
|
475
|
-
|
|
475
|
+
type TabsSize = 'large' | 'normal' | 'small';
|
|
476
476
|
interface TabsProps extends BasicComponent {
|
|
477
477
|
className: string;
|
|
478
478
|
style: React__default.CSSProperties;
|
|
@@ -518,7 +518,7 @@ interface IndicatorProps {
|
|
|
518
518
|
}
|
|
519
519
|
declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
520
520
|
|
|
521
|
-
|
|
521
|
+
type NavBarProps = {
|
|
522
522
|
showhead?: boolean;
|
|
523
523
|
};
|
|
524
524
|
interface SideNavBarProps extends React__default.HTMLAttributes<HTMLDivElement>, NavBarProps {
|
|
@@ -532,7 +532,7 @@ interface SideNavBarProps extends React__default.HTMLAttributes<HTMLDivElement>,
|
|
|
532
532
|
}
|
|
533
533
|
declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
534
534
|
|
|
535
|
-
|
|
535
|
+
type SubSideNavBarProps = {
|
|
536
536
|
title: string;
|
|
537
537
|
ikey: string | number;
|
|
538
538
|
open?: boolean;
|
|
@@ -545,7 +545,7 @@ declare type SubSideNavBarProps = {
|
|
|
545
545
|
};
|
|
546
546
|
declare const SubSideNavBar: FunctionComponent<SubSideNavBarProps>;
|
|
547
547
|
|
|
548
|
-
|
|
548
|
+
type SideNavBarItemProps = {
|
|
549
549
|
title: string;
|
|
550
550
|
ikey: string | number;
|
|
551
551
|
onClick?: ({ title, ikey }: {
|
|
@@ -591,7 +591,7 @@ interface MenuItemProps extends BasicComponent {
|
|
|
591
591
|
}
|
|
592
592
|
declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
|
|
593
593
|
|
|
594
|
-
|
|
594
|
+
type SliderValue = number | number[];
|
|
595
595
|
interface RangeProps {
|
|
596
596
|
className: string;
|
|
597
597
|
style: CSSProperties;
|
|
@@ -612,7 +612,6 @@ interface RangeProps {
|
|
|
612
612
|
button: React__default.ReactNode;
|
|
613
613
|
vertical: boolean;
|
|
614
614
|
marks: Record<string, unknown>;
|
|
615
|
-
change?: (value: number) => void;
|
|
616
615
|
dragStart?: () => void;
|
|
617
616
|
dragEnd?: () => void;
|
|
618
617
|
onChange?: (value: number) => void;
|
|
@@ -621,7 +620,7 @@ interface RangeProps {
|
|
|
621
620
|
}
|
|
622
621
|
declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
|
|
623
622
|
|
|
624
|
-
|
|
623
|
+
type CalendarRef$1 = {
|
|
625
624
|
scrollToDate: (date: string) => void;
|
|
626
625
|
};
|
|
627
626
|
interface Day$1 {
|
|
@@ -747,10 +746,10 @@ interface InputNumberProps extends BasicComponent {
|
|
|
747
746
|
}
|
|
748
747
|
declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
749
748
|
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
749
|
+
type InputAlignType = 'left' | 'center' | 'right';
|
|
750
|
+
type InputFormatTrigger = 'onChange' | 'onBlur';
|
|
751
|
+
type InputType = HTMLInputTypeAttribute;
|
|
752
|
+
type InputRule = {
|
|
754
753
|
pattern?: RegExp;
|
|
755
754
|
message?: string;
|
|
756
755
|
required?: boolean;
|
|
@@ -812,8 +811,8 @@ interface InputProps extends BasicComponent {
|
|
|
812
811
|
}
|
|
813
812
|
declare const Input: FunctionComponent<Partial<InputProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur' | 'onFocus' | 'onClick'>>;
|
|
814
813
|
|
|
815
|
-
|
|
816
|
-
|
|
814
|
+
type Position$1 = 'left' | 'right';
|
|
815
|
+
type Direction = 'horizontal' | 'vertical';
|
|
817
816
|
interface RadioGroupProps {
|
|
818
817
|
value: string | number | boolean | null;
|
|
819
818
|
textPosition: Position$1;
|
|
@@ -823,8 +822,8 @@ interface RadioGroupProps {
|
|
|
823
822
|
}
|
|
824
823
|
declare const RadioGroup: React__default.ForwardRefExoticComponent<Partial<RadioGroupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<unknown>>;
|
|
825
824
|
|
|
826
|
-
|
|
827
|
-
|
|
825
|
+
type Shape = 'button' | 'round';
|
|
826
|
+
type Position = 'right' | 'left';
|
|
828
827
|
interface RadioProps extends BasicComponent {
|
|
829
828
|
className: string;
|
|
830
829
|
style: React__default.CSSProperties;
|
|
@@ -859,10 +858,10 @@ interface RateProps extends BasicComponent {
|
|
|
859
858
|
}
|
|
860
859
|
declare const Rate: FunctionComponent<Partial<RateProps>>;
|
|
861
860
|
|
|
862
|
-
|
|
861
|
+
type CalendarRef = {
|
|
863
862
|
scrollToDate: (date: string) => void;
|
|
864
863
|
};
|
|
865
|
-
|
|
864
|
+
type InputDate = string | string[];
|
|
866
865
|
interface Day {
|
|
867
866
|
day: string | number;
|
|
868
867
|
type: string;
|
|
@@ -974,10 +973,10 @@ declare class UploadOptions {
|
|
|
974
973
|
beforeXhrUpload?: Function;
|
|
975
974
|
}
|
|
976
975
|
|
|
977
|
-
|
|
976
|
+
type FileType<T> = {
|
|
978
977
|
[key: string]: T;
|
|
979
978
|
};
|
|
980
|
-
|
|
979
|
+
type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
|
|
981
980
|
|
|
982
981
|
interface UploaderProps extends BasicComponent {
|
|
983
982
|
url: string;
|
|
@@ -1196,7 +1195,7 @@ interface ConfigConsumerProps {
|
|
|
1196
1195
|
}
|
|
1197
1196
|
declare const FormItemContext: React$1.Context<ConfigConsumerProps>;
|
|
1198
1197
|
|
|
1199
|
-
|
|
1198
|
+
type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
1200
1199
|
interface FormItemProps extends BasicComponent, BaseFormField {
|
|
1201
1200
|
labelWidth: string | number;
|
|
1202
1201
|
errorMessageAlign: TextAlign;
|
|
@@ -1204,7 +1203,7 @@ interface FormItemProps extends BasicComponent, BaseFormField {
|
|
|
1204
1203
|
showErrorMessage: boolean;
|
|
1205
1204
|
}
|
|
1206
1205
|
declare const defaultProps: FormItemProps;
|
|
1207
|
-
|
|
1206
|
+
type FieldProps = typeof defaultProps & Partial<BaseFormField>;
|
|
1208
1207
|
declare class FormItem extends React__default.Component<FieldProps> {
|
|
1209
1208
|
static defaultProps: FormItemProps;
|
|
1210
1209
|
static contextType: any;
|
|
@@ -1253,7 +1252,7 @@ declare const Form: FunctionComponent<Partial<FormProps> & React__default.HTMLAt
|
|
|
1253
1252
|
Item: typeof FormItem;
|
|
1254
1253
|
};
|
|
1255
1254
|
|
|
1256
|
-
|
|
1255
|
+
type ItemType<T> = {
|
|
1257
1256
|
[key: string]: T;
|
|
1258
1257
|
};
|
|
1259
1258
|
interface ActionSheetProps {
|
|
@@ -1302,7 +1301,7 @@ interface DragProps {
|
|
|
1302
1301
|
}
|
|
1303
1302
|
declare const Drag: FunctionComponent<Partial<DragProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1304
1303
|
|
|
1305
|
-
|
|
1304
|
+
type DialogConfigType = {
|
|
1306
1305
|
prefixCls?: string;
|
|
1307
1306
|
simple?: boolean;
|
|
1308
1307
|
};
|
|
@@ -1331,7 +1330,7 @@ interface BasicDialogProps {
|
|
|
1331
1330
|
onClickSelf?: () => void;
|
|
1332
1331
|
onConfirm?: (e?: MouseEvent) => Promise<() => void> | void;
|
|
1333
1332
|
}
|
|
1334
|
-
|
|
1333
|
+
type DialogReturnProps = {
|
|
1335
1334
|
update: (newConfig: ConfirmProps) => void;
|
|
1336
1335
|
close: () => void;
|
|
1337
1336
|
};
|
|
@@ -1348,7 +1347,7 @@ interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<Ba
|
|
|
1348
1347
|
destroyAll: () => void;
|
|
1349
1348
|
}
|
|
1350
1349
|
|
|
1351
|
-
|
|
1350
|
+
type DialogProps = BasicDialogProps;
|
|
1352
1351
|
declare const Dialog: DialogComponent;
|
|
1353
1352
|
|
|
1354
1353
|
interface InfiniteloadingProps extends BasicComponent {
|
|
@@ -1438,8 +1437,8 @@ declare const _default: {
|
|
|
1438
1437
|
hide(): void;
|
|
1439
1438
|
};
|
|
1440
1439
|
|
|
1441
|
-
|
|
1442
|
-
|
|
1440
|
+
type SwipeSide = 'left' | 'right';
|
|
1441
|
+
type SwipePosition = SwipeSide | 'cell' | 'outside';
|
|
1443
1442
|
interface SwipeInstance {
|
|
1444
1443
|
open: (side: SwipeSide) => void;
|
|
1445
1444
|
close: () => void;
|
|
@@ -1479,7 +1478,7 @@ interface SwipeProps {
|
|
|
1479
1478
|
}
|
|
1480
1479
|
declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<SwipeInstance>>;
|
|
1481
1480
|
|
|
1482
|
-
|
|
1481
|
+
type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
|
|
1483
1482
|
interface PullToRefreshProps {
|
|
1484
1483
|
className: string;
|
|
1485
1484
|
style: React__default.CSSProperties;
|
|
@@ -1558,7 +1557,7 @@ interface StepProps extends BasicComponent {
|
|
|
1558
1557
|
}
|
|
1559
1558
|
declare const Step: FunctionComponent<Partial<StepProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1560
1559
|
|
|
1561
|
-
|
|
1560
|
+
type SwiperRef = {
|
|
1562
1561
|
to: (index: number) => void;
|
|
1563
1562
|
next: () => void;
|
|
1564
1563
|
prev: () => void;
|
|
@@ -1571,6 +1570,7 @@ interface SwiperProps {
|
|
|
1571
1570
|
autoPlay: number | string;
|
|
1572
1571
|
direction: 'horizontal' | 'vertical';
|
|
1573
1572
|
paginationColor: string;
|
|
1573
|
+
paginationBgColor: string;
|
|
1574
1574
|
paginationVisible: boolean;
|
|
1575
1575
|
loop: boolean;
|
|
1576
1576
|
touchable: boolean;
|
|
@@ -1606,7 +1606,7 @@ interface AvatarProps extends BasicComponent {
|
|
|
1606
1606
|
onActiveAvatar: (e: MouseEvent) => void;
|
|
1607
1607
|
onError: (e: any) => void;
|
|
1608
1608
|
}
|
|
1609
|
-
|
|
1609
|
+
type AvatarShape = 'round' | 'square';
|
|
1610
1610
|
declare const Avatar: FunctionComponent<Partial<AvatarProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1611
1611
|
|
|
1612
1612
|
interface AvatarGroupProps {
|
|
@@ -1662,11 +1662,11 @@ interface TagProps extends BasicComponent {
|
|
|
1662
1662
|
onClose: (e?: any) => void;
|
|
1663
1663
|
children?: React__default.ReactNode;
|
|
1664
1664
|
}
|
|
1665
|
-
|
|
1665
|
+
type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
1666
1666
|
declare const Tag: FunctionComponent<Partial<TagProps>>;
|
|
1667
1667
|
|
|
1668
|
-
|
|
1669
|
-
|
|
1668
|
+
type PopoverTheme = 'light' | 'dark';
|
|
1669
|
+
type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
1670
1670
|
interface List {
|
|
1671
1671
|
name: string;
|
|
1672
1672
|
icon?: string;
|
|
@@ -1686,7 +1686,7 @@ interface PopoverProps extends BasicComponent {
|
|
|
1686
1686
|
}
|
|
1687
1687
|
declare const Popover: FunctionComponent<Partial<PopoverProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1688
1688
|
|
|
1689
|
-
|
|
1689
|
+
type avatarShape = 'round' | 'square';
|
|
1690
1690
|
interface SkeletonProps {
|
|
1691
1691
|
width: string;
|
|
1692
1692
|
height: string;
|
|
@@ -1767,7 +1767,7 @@ interface CountUpProps {
|
|
|
1767
1767
|
|
|
1768
1768
|
interface AnimatingNumbersProps {
|
|
1769
1769
|
}
|
|
1770
|
-
|
|
1770
|
+
type AnimatingNumbersStates = {};
|
|
1771
1771
|
declare class AnimatingNumbers extends Component<AnimatingNumbersProps, AnimatingNumbersStates> {
|
|
1772
1772
|
static defaultProps: AnimatingNumbersProps;
|
|
1773
1773
|
static displayName: string;
|
|
@@ -1784,7 +1784,7 @@ interface EmptyProps {
|
|
|
1784
1784
|
}
|
|
1785
1785
|
declare const Empty: FunctionComponent<Partial<EmptyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1786
1786
|
|
|
1787
|
-
|
|
1787
|
+
type Data = any;
|
|
1788
1788
|
interface BasicVirtualListProps {
|
|
1789
1789
|
className?: string;
|
|
1790
1790
|
style?: React.CSSProperties;
|
|
@@ -1803,7 +1803,7 @@ interface BasicVirtualListProps {
|
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
1805
|
|
|
1806
|
-
|
|
1806
|
+
type VirtualListProps = BasicVirtualListProps;
|
|
1807
1807
|
declare const VirtualList: FunctionComponent<VirtualListProps>;
|
|
1808
1808
|
|
|
1809
1809
|
interface BasicTableProps extends BasicComponent {
|
|
@@ -1825,7 +1825,7 @@ interface TableColumnProps {
|
|
|
1825
1825
|
render?: (rowData?: any, rowIndex?: number) => string | React__default.ReactNode;
|
|
1826
1826
|
}
|
|
1827
1827
|
|
|
1828
|
-
|
|
1828
|
+
type TableProps = BasicTableProps;
|
|
1829
1829
|
declare const Table: FunctionComponent<Partial<TableProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1830
1830
|
|
|
1831
1831
|
interface VideoProps {
|
|
@@ -1852,8 +1852,8 @@ interface VideoProps {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
declare const Video: FunctionComponent<Partial<VideoProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1854
1854
|
|
|
1855
|
-
|
|
1856
|
-
|
|
1855
|
+
type ProgressSize = 'small' | 'base' | 'large';
|
|
1856
|
+
type TextType = 'icon' | 'text';
|
|
1857
1857
|
interface ProgressProps extends BasicComponent {
|
|
1858
1858
|
className: string;
|
|
1859
1859
|
style: CSSProperties;
|
|
@@ -1962,8 +1962,8 @@ interface WaterMarkProps {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
declare const WaterMark: FunctionComponent<Partial<WaterMarkProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1964
1964
|
|
|
1965
|
-
|
|
1966
|
-
|
|
1965
|
+
type AnimateType = 'shake' | 'ripple' | 'breath' | 'float' | 'slide-right' | 'slide-left' | 'slide-top' | 'slide-bottom' | 'jump' | 'twinkle' | 'flicker';
|
|
1966
|
+
type AnimateAction = 'initial' | 'click';
|
|
1967
1967
|
|
|
1968
1968
|
interface AnimateProps {
|
|
1969
1969
|
type: AnimateType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1-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",
|
|
@@ -163,6 +163,7 @@
|
|
|
163
163
|
"react-color": "^2.19.3",
|
|
164
164
|
"react-dom": "^18.2.0",
|
|
165
165
|
"react-markdown": "^7.1.2",
|
|
166
|
+
"react-router-dom": "^5.3.4",
|
|
166
167
|
"react-syntax-highlighter": "^15.4.5",
|
|
167
168
|
"react-test-renderer": "^18.2.0",
|
|
168
169
|
"reactcss": "^1.2.3",
|