@nutui/nutui-react 1.2.0 → 1.2.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/dist/esm/AnimatingNumbers.js +9 -11
- package/dist/esm/BackTop.js +8 -6
- package/dist/esm/Checkbox.js +54 -8
- package/dist/esm/CheckboxGroup.js +26 -4
- package/dist/esm/Elevator.js +129 -36
- package/dist/esm/Icon.js +5 -3
- package/dist/esm/Input.js +252 -57
- package/dist/esm/NavBar/style/index.js +1 -1
- package/dist/esm/NavBar.js +89 -32
- package/dist/esm/Step.js +20 -3
- package/dist/esm/TabPane.js +3 -2
- package/dist/esm/Tabs.js +13 -3
- package/dist/esm/Video/style/index.js +2 -0
- package/dist/esm/Video.js +97 -0
- package/dist/esm/nutui-react.es.js +1 -0
- 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/nutui.react.es.js +770 -321
- package/dist/nutui.react.umd.js +18 -18
- package/dist/packages/animatingnumbers/animatingnumbers.scss +0 -2
- package/dist/packages/animatingnumbers/countup.scss +10 -10
- package/dist/packages/backtop/backtop.scss +8 -0
- package/dist/packages/checkbox/checkbox.scss +21 -3
- package/dist/packages/col/col.scss +1 -1
- package/dist/packages/elevator/elevator.scss +71 -39
- package/dist/packages/input/input.scss +131 -3
- package/dist/packages/navbar/navbar.scss +114 -21
- package/dist/packages/price/price.scss +0 -1
- package/dist/packages/row/row.scss +14 -0
- package/dist/packages/tabpane/tabpane.scss +5 -0
- package/dist/packages/video/video.scss +18 -0
- 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 +94 -4
- package/dist/types/animatingnumbers/__tests__/animatingnumbers.spec.d.ts +1 -0
- package/dist/types/backtop/backtop.d.ts +4 -4
- package/dist/types/checkbox/checkbox.d.ts +4 -0
- package/dist/types/checkbox/demo.d.ts +1 -0
- package/dist/types/checkboxgroup/checkboxgroup.d.ts +1 -0
- package/dist/types/elevator/__tests__/elevator.spec.d.ts +1 -0
- package/dist/types/elevator/elevator.d.ts +6 -1
- package/dist/types/icon/icon.d.ts +1 -0
- package/dist/types/input/input.d.ts +42 -5
- package/dist/types/navbar/navbar.d.ts +9 -4
- package/dist/types/nutui.react.d.ts +2 -1
- package/dist/types/tabpane/tabpane.d.ts +1 -0
- package/dist/types/tabs/__test__/tabs.spec.d.ts +1 -0
- package/dist/types/tabs/tabs.d.ts +1 -0
- package/dist/types/video/__tests__/video.spec.d.ts +1 -0
- package/dist/types/video/demo.d.ts +4 -0
- package/dist/types/video/index.d.ts +2 -0
- package/dist/types/video/video.d.ts +21 -0
- package/package.json +3 -3
package/dist/style.es.js
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
@import '../../packages/animatingnumbers/animatingnumbers.scss';
|
|
62
62
|
@import '../../packages/empty/empty.scss';
|
|
63
63
|
@import '../../packages/virtuallist/virtuallist.scss';
|
|
64
|
+
@import '../../packages/video/video.scss';
|
|
64
65
|
@import '../../packages/address/address.scss';
|
|
65
66
|
@import '../../packages/barrage/barrage.scss';
|
|
66
67
|
@import '../../packages/signature/signature.scss';
|
|
@@ -15,6 +15,13 @@ $text-color: #808080 !default;
|
|
|
15
15
|
$disable-color: #cccccc !default;
|
|
16
16
|
$white: #fff;
|
|
17
17
|
$black: #000;
|
|
18
|
+
$required-color: #fa2c19 !default;
|
|
19
|
+
|
|
20
|
+
$dark-background: #1a1919 !default;
|
|
21
|
+
$dark-background2: #1d1b1c !default;
|
|
22
|
+
$dark-background3: #141414 !default;
|
|
23
|
+
$dark-color: $white !default;
|
|
24
|
+
$dark-color-gray: $text-color !default;
|
|
18
25
|
|
|
19
26
|
// padding
|
|
20
27
|
$padding-xs: 12px;
|
|
@@ -135,8 +142,11 @@ $uploader-picture-height: 100px !default;
|
|
|
135
142
|
$uploader-background: #f7f8fa !default;
|
|
136
143
|
|
|
137
144
|
//input
|
|
138
|
-
$input-border-bottom: #eaf0fb;
|
|
139
|
-
$input-disabled-color: #c8c9cc;
|
|
145
|
+
$input-border-bottom: #eaf0fb !default;
|
|
146
|
+
$input-disabled-color: #c8c9cc !default;
|
|
147
|
+
$input-required-color: $required-color !default;
|
|
148
|
+
$input-font-size: $font-size-2 !default;
|
|
149
|
+
$input-padding: 10px 25px !default;
|
|
140
150
|
|
|
141
151
|
// textarea
|
|
142
152
|
|
|
@@ -305,8 +315,12 @@ $steps-process-icon-text-color: $primary-color !default;
|
|
|
305
315
|
$dialog-width: 296px;
|
|
306
316
|
|
|
307
317
|
// checkbox
|
|
308
|
-
$checkbox-label-color: #1d1e1e;
|
|
309
|
-
$checkbox-label-disable-color: #999;
|
|
318
|
+
$checkbox-label-color: #1d1e1e !default;
|
|
319
|
+
$checkbox-label-disable-color: #999 !default;
|
|
320
|
+
$checkbox-icon-disable-color: #d6d6d6 !default;
|
|
321
|
+
$checkbox-label-margin-left: 15px !default;
|
|
322
|
+
$checkbox-label-font-size: 14px !default;
|
|
323
|
+
$checkbox-icon-font-size: 18px !default;
|
|
310
324
|
|
|
311
325
|
//radio
|
|
312
326
|
$radio-label-font-color: #1d1e1e !default;
|
|
@@ -466,3 +480,79 @@ $divider-vertical-height: 12px !default;
|
|
|
466
480
|
$divider-vertical-top: 2px !default;
|
|
467
481
|
$divider-vertical-border-left: rgba(0, 0, 0, 0.06) !default;
|
|
468
482
|
$divider-vertical-margin: 0 8px !default;
|
|
483
|
+
|
|
484
|
+
// elevator
|
|
485
|
+
$elevator-list-item-highcolor: $primary-color !default;
|
|
486
|
+
$elevator-list-item-font-size: 12px !default;
|
|
487
|
+
$elevator-list-item-font-color: #333333 !default;
|
|
488
|
+
$elevator-list-item-name-padding: 0 20px !default;
|
|
489
|
+
$elevator-list-item-name-height: 30px !default;
|
|
490
|
+
$elevator-list-item-name-line-height: 30px !default;
|
|
491
|
+
$elevator-list-item-code-font-size: 14px !default;
|
|
492
|
+
$elevator-list-item-code-font-color: #1a1a1a !default;
|
|
493
|
+
$elevator-list-item-code-font-weight: 500 !default;
|
|
494
|
+
$elevator-list-item-code-padding: 0 20px !default;
|
|
495
|
+
$elevator-list-item-code-height: 35px !default;
|
|
496
|
+
$elevator-list-item-code-line-height: 35px !default;
|
|
497
|
+
$elevator-list-item-code-after-width: 100% !default;
|
|
498
|
+
$elevator-list-item-code-after-height: 1px !default;
|
|
499
|
+
$elevator-list-item-code-after-bg-color: #f5f5f5 !default;
|
|
500
|
+
$elevator-list-item-code-current-box-shadow: 0 3px 3px 1px
|
|
501
|
+
rgba(240, 240, 240, 1) !default;
|
|
502
|
+
$elevator-list-item-code-current-bg-color: #fff !default;
|
|
503
|
+
$elevator-list-item-code-current-border-radius: 50% !default;
|
|
504
|
+
$elevator-list-item-code-current-width: 45px !default;
|
|
505
|
+
$elevator-list-item-code-current-height: 45px !default;
|
|
506
|
+
$elevator-list-item-code-current-line-height: 45px !default;
|
|
507
|
+
$elevator-list-item-code-current-position: absolute !default;
|
|
508
|
+
$elevator-list-item-code-current-right: 60px !default;
|
|
509
|
+
$elevator-list-item-code-current-top: 50% !default;
|
|
510
|
+
$elevator-list-item-code-current-transform: translateY(-50%) !default;
|
|
511
|
+
$elevator-list-item-code-current-text-align: center !default;
|
|
512
|
+
$elevator-list-item-bars-position: absolute !default;
|
|
513
|
+
$elevator-list-item-bars-right: 8px !default;
|
|
514
|
+
$elevator-list-item-bars-top: 50% !default;
|
|
515
|
+
$elevator-list-item-bars-transform: translateY(-50%) !default;
|
|
516
|
+
$elevator-list-item-bars-padding: 15px 0 !default;
|
|
517
|
+
$elevator-list-item-bars-background-color: #eeeff2 !default;
|
|
518
|
+
$elevator-list-item-bars-border-radius: 6px !default;
|
|
519
|
+
$elevator-list-item-bars-text-align: center !default;
|
|
520
|
+
$elevator-list-item-bars-z-index: 1 !default;
|
|
521
|
+
$elevator-list-item-bars-inner-item-padding: 3px !default;
|
|
522
|
+
$elevator-list-item-bars-inner-item-font-size: 10px !default;
|
|
523
|
+
$elevator-list-fixed-color: $primary-color !default;
|
|
524
|
+
$elevator-list-fixed-bg-color: $white !default;
|
|
525
|
+
$elevator-list-fixed-box-shadow: 0 0 10px #eee !default;
|
|
526
|
+
$elevator-list-item-bars-inner-item-active-color: $primary-color !default;
|
|
527
|
+
|
|
528
|
+
//navbar
|
|
529
|
+
$navbar-height: 44px !default;
|
|
530
|
+
$navbar-margin-bottom: 20px !default;
|
|
531
|
+
$navbar-padding: 13px 16px !default;
|
|
532
|
+
$navbar-background: $white !default;
|
|
533
|
+
$navbar-box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1) !default;
|
|
534
|
+
$navbar-color: $title-color2 !default;
|
|
535
|
+
$navbar-title-base-font: $font-size-2 !default;
|
|
536
|
+
$navbar-title-font: $font-size-2 !default;
|
|
537
|
+
$navbar-title-font-weight: 0 !default;
|
|
538
|
+
$navbar-title-font-color: $navbar-color !default;
|
|
539
|
+
$navbar-title-width: 100px !default;
|
|
540
|
+
$navbar-title-icon-margin: 0 0 0 13px !default;
|
|
541
|
+
|
|
542
|
+
// layout
|
|
543
|
+
$row-content-color: #fff !default;
|
|
544
|
+
$row-content-background-color: #ff8881 !default;
|
|
545
|
+
$row-content-light-background-color: #ffc7c4 !default;
|
|
546
|
+
$row-content-border-radius: 6px !default;
|
|
547
|
+
$row-content-height: 50px !default;
|
|
548
|
+
$row-content-line-height: 40px !default;
|
|
549
|
+
$col-default-margin-bottom: 15px !default;
|
|
550
|
+
|
|
551
|
+
// animatingnumbers
|
|
552
|
+
$countup-height: 32px !default;
|
|
553
|
+
$countup-base-size: 18px !default;
|
|
554
|
+
$countup-border-raduis: 4px !default;
|
|
555
|
+
$countup-lr-margin: 1px !default;
|
|
556
|
+
$countup-bgcolor: #031f63 !default;
|
|
557
|
+
$countup-color: #ffffff !default;
|
|
558
|
+
$countup-width: 24px !default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunctionComponent
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export interface BackTopProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
bottom: number;
|
|
@@ -9,7 +9,7 @@ export interface BackTopProps {
|
|
|
9
9
|
isAnimation: boolean;
|
|
10
10
|
duration: number;
|
|
11
11
|
children?: HTMLElement | any;
|
|
12
|
-
style?: CSSProperties;
|
|
13
|
-
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
onClick?: (event: MouseEvent) => void;
|
|
14
14
|
}
|
|
15
|
-
export declare const BackTop: FunctionComponent<Partial<BackTopProps>>;
|
|
15
|
+
export declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
@@ -7,6 +7,10 @@ export interface CheckBoxProps {
|
|
|
7
7
|
iconSize: string | number;
|
|
8
8
|
iconName: string;
|
|
9
9
|
iconActiveName: string;
|
|
10
|
+
iconIndeterminateName: string;
|
|
11
|
+
iconClassPrefix: string;
|
|
12
|
+
iconFontClassName: string;
|
|
13
|
+
indeterminate: boolean;
|
|
10
14
|
label: string;
|
|
11
15
|
onChange: (state: boolean, label: string) => void;
|
|
12
16
|
}
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export interface CheckBoxGroupProps {
|
|
3
3
|
disabled: boolean;
|
|
4
4
|
checkedValue: string[];
|
|
5
|
+
max: number | undefined;
|
|
5
6
|
onChange: (value: string[]) => void;
|
|
6
7
|
}
|
|
7
8
|
export declare const CheckboxGroup: React.ForwardRefExoticComponent<Partial<CheckBoxGroupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export declare const elevatorContext: React.Context<ElevatorData>;
|
|
2
3
|
export interface ElevatorProps {
|
|
3
4
|
height: number | string;
|
|
4
5
|
acceptKey: string;
|
|
5
|
-
indexList: any;
|
|
6
|
+
indexList: any[];
|
|
7
|
+
isSticky: boolean;
|
|
8
|
+
spaceHeight: number;
|
|
9
|
+
titleHeight: number;
|
|
6
10
|
className: string;
|
|
7
11
|
style: React.CSSProperties;
|
|
12
|
+
children: React.ReactNode;
|
|
8
13
|
clickItem: (key: string, item: ElevatorData) => void;
|
|
9
14
|
clickIndex: (key: string) => void;
|
|
10
15
|
}
|
|
@@ -1,20 +1,57 @@
|
|
|
1
|
-
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
1
|
+
import React, { CSSProperties, FunctionComponent, HTMLProps, HTMLInputTypeAttribute } from 'react';
|
|
2
|
+
export declare type InputAlignType = 'left' | 'center' | 'right';
|
|
3
|
+
export declare type InputFormatTrigger = 'onChange' | 'onBlur';
|
|
4
|
+
export declare type InputType = HTMLInputTypeAttribute;
|
|
5
|
+
export declare type InputRule = {
|
|
6
|
+
pattern?: RegExp;
|
|
7
|
+
message?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
|
|
2
11
|
export interface InputProps {
|
|
3
|
-
type:
|
|
12
|
+
type: InputType;
|
|
4
13
|
defaultValue: any;
|
|
5
14
|
placeholder: string;
|
|
6
15
|
label: string;
|
|
7
|
-
|
|
16
|
+
labelClass: string;
|
|
17
|
+
labelWidth: string | number;
|
|
18
|
+
labelAlign: InputAlignType;
|
|
19
|
+
colon: boolean;
|
|
20
|
+
inputAlign: InputAlignType;
|
|
21
|
+
center: boolean;
|
|
22
|
+
required: boolean;
|
|
8
23
|
disabled: boolean;
|
|
9
24
|
readonly: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
25
|
+
error: boolean;
|
|
26
|
+
maxlength: any;
|
|
27
|
+
leftIcon: string;
|
|
28
|
+
leftIconSize: string | number;
|
|
29
|
+
rightIcon: string;
|
|
30
|
+
rightIconSize: string | number;
|
|
12
31
|
clearable: boolean;
|
|
32
|
+
clearIcon: string;
|
|
33
|
+
clearSize: string | number;
|
|
34
|
+
border: boolean;
|
|
35
|
+
formatTrigger: InputFormatTrigger;
|
|
36
|
+
rules: Array<InputRule>;
|
|
37
|
+
errorMessage: string;
|
|
38
|
+
errorMessageAlign: InputAlignType;
|
|
39
|
+
rows: string | number;
|
|
40
|
+
showWordLimit: boolean;
|
|
41
|
+
autofocus: boolean;
|
|
13
42
|
style?: CSSProperties;
|
|
14
43
|
className?: string;
|
|
44
|
+
slotButton?: HTMLProps<HTMLElement>;
|
|
45
|
+
slotInput?: HTMLProps<HTMLElement>;
|
|
46
|
+
formatter: (value: string) => void;
|
|
15
47
|
change?: (value: any, event: Event) => void;
|
|
16
48
|
blur?: (value: any, event: Event) => void;
|
|
17
49
|
focus?: (value: any, event: Event) => void;
|
|
18
50
|
clear?: (value: any, event: Event) => void;
|
|
51
|
+
keypress?: (value: any, event: Event) => void;
|
|
52
|
+
clickInput?: (value: any) => void;
|
|
53
|
+
clickLeftIcon?: (value: any) => void;
|
|
54
|
+
clickRightIcon?: (value: any) => void;
|
|
55
|
+
click?: (value: any) => void;
|
|
19
56
|
}
|
|
20
57
|
export declare const Input: FunctionComponent<Partial<InputProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export interface NavBarProps {
|
|
3
|
-
title: string;
|
|
4
|
-
desc: string;
|
|
5
3
|
leftShow: boolean;
|
|
6
|
-
|
|
4
|
+
title: string;
|
|
7
5
|
titIcon: string;
|
|
6
|
+
leftText: string;
|
|
7
|
+
desc: string;
|
|
8
8
|
className: string;
|
|
9
|
+
fixed: boolean;
|
|
10
|
+
safeAreaInsetTop: boolean;
|
|
11
|
+
border: boolean;
|
|
12
|
+
placeholder: boolean;
|
|
13
|
+
zIndex: number | string;
|
|
9
14
|
style: React.CSSProperties;
|
|
10
15
|
onClickTitle: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
11
16
|
onClickIcon: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
12
17
|
onClickBack: (e: React.MouseEvent<HTMLElement>) => void;
|
|
13
|
-
|
|
18
|
+
onClickRight: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
14
19
|
}
|
|
15
20
|
export declare const NavBar: FunctionComponent<Partial<NavBarProps>>;
|
|
@@ -60,6 +60,7 @@ import CollapseItem from './collapseitem';
|
|
|
60
60
|
import AnimatingNumbers from './animatingnumbers';
|
|
61
61
|
import Empty from './empty';
|
|
62
62
|
import VirtualList from './virtuallist';
|
|
63
|
+
import Video from './video';
|
|
63
64
|
import Address from './address';
|
|
64
65
|
import Barrage from './barrage';
|
|
65
66
|
import Signature from './signature';
|
|
@@ -67,4 +68,4 @@ import Card from './card';
|
|
|
67
68
|
import TimePannel from './timepannel';
|
|
68
69
|
import TimeDetail from './timedetail';
|
|
69
70
|
import TimeSelect from './timeselect';
|
|
70
|
-
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
71
|
+
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Video, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface VideoProps {
|
|
3
|
+
source: {
|
|
4
|
+
type: string;
|
|
5
|
+
src: string;
|
|
6
|
+
};
|
|
7
|
+
options: {
|
|
8
|
+
controls?: boolean;
|
|
9
|
+
muted?: boolean;
|
|
10
|
+
autoplay?: boolean;
|
|
11
|
+
poster?: string;
|
|
12
|
+
playsinline?: boolean;
|
|
13
|
+
loop?: boolean;
|
|
14
|
+
};
|
|
15
|
+
className: string;
|
|
16
|
+
style: React.CSSProperties;
|
|
17
|
+
play: (e: HTMLVideoElement) => void;
|
|
18
|
+
pause: (e: HTMLVideoElement) => void;
|
|
19
|
+
playend: (e: HTMLVideoElement) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const Video: FunctionComponent<Partial<VideoProps> & React.HTMLAttributes<HTMLDivElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react",
|
|
3
|
-
"version": "1.2.0",
|
|
3
|
+
"version": "1.2.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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"lint:fix": "eslint --fix .",
|
|
57
57
|
"publish:beta": "npm publish --tag beta",
|
|
58
58
|
"prepare": "husky install",
|
|
59
|
-
"test": "jest"
|
|
59
|
+
"test": "jest --updateSnapshot"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": "^14.18.0 || >=15.0.0"
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"inquirer": "^8.0.0",
|
|
125
125
|
"jest": "^27.5.1",
|
|
126
126
|
"lint-staged": "^11.0.0",
|
|
127
|
-
"lzutf8": "
|
|
127
|
+
"lzutf8": "0.6.0",
|
|
128
128
|
"map-stream": "0.0.7",
|
|
129
129
|
"marked": "^2.0.3",
|
|
130
130
|
"postcss-import": "^14.0.2",
|