@nutui/nutui-react 1.3.11 → 1.3.12-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/Cell.js +7 -108
- package/dist/esm/CellGroup.js +4 -34
- package/dist/esm/Form/style/index.js +2 -0
- package/dist/esm/Form.js +188 -0
- package/dist/esm/FormItem/style/index.js +2 -0
- package/dist/esm/FormItem.js +9 -0
- package/dist/esm/Range.js +8 -5
- package/dist/esm/TextArea.js +7 -8
- package/dist/esm/cell-c8781626.js +108 -0
- package/dist/esm/cellgroup-3402f96c.js +34 -0
- package/dist/esm/formitem-46d4aca3.js +136 -0
- package/dist/esm/nutui-react.es.js +2 -0
- package/dist/esm/types/src/packages/form/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/form/form.d.ts +9 -0
- package/dist/esm/types/src/packages/form/index.d.ts +2 -0
- package/dist/esm/types/src/packages/form/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/form/types.d.ts +82 -0
- package/dist/esm/types/src/packages/form/useForm.d.ts +2 -0
- package/dist/esm/types/src/packages/formitem/formitem.d.ts +30 -0
- package/dist/esm/types/src/packages/formitem/formitemcontext.d.ts +6 -0
- package/dist/esm/types/src/packages/formitem/index.d.ts +2 -0
- package/dist/esm/types/src/packages/formitem/types.d.ts +82 -0
- package/dist/esm/types/src/packages/formitem/useForm.d.ts +2 -0
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +5 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +2 -0
- package/dist/esm/types/src/packages/range/range.d.ts +3 -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 +1785 -480
- package/dist/nutui.react.umd.js +1821 -514
- package/dist/packages/checkbox/checkbox.scss +1 -1
- package/dist/packages/form/form.scss +27 -0
- package/dist/packages/formitem/formitem.scss +87 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +2 -0
- package/dist/styles/variables.scss +77 -26
- package/dist/types/index.d.ts +94 -1
- package/dist/types/nutui.react.build.ts +5 -1
- package/package.json +6 -4
package/dist/style.es.js
CHANGED
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
@import '../../packages/cascader/cascader.scss';
|
|
46
46
|
@import '../../packages/searchbar/searchbar.scss';
|
|
47
47
|
@import '../../packages/numberkeyboard/numberkeyboard.scss';
|
|
48
|
+
@import '../../packages/form/form.scss';
|
|
49
|
+
@import '../../packages/formitem/formitem.scss';
|
|
48
50
|
@import '../../packages/actionsheet/actionsheet.scss';
|
|
49
51
|
@import '../../packages/backtop/backtop.scss';
|
|
50
52
|
@import '../../packages/drag/drag.scss';
|
|
@@ -1,34 +1,85 @@
|
|
|
1
|
+
// 品牌色
|
|
2
|
+
// 纯色
|
|
3
|
+
$brand-color: #fa2c19 !default;
|
|
4
|
+
// 渐变色
|
|
5
|
+
$brand-color-start: #ff404f !default;
|
|
6
|
+
$brand-color-end: #fa2c19 !default;
|
|
7
|
+
|
|
8
|
+
$gray0: #000000 !default;
|
|
9
|
+
// 灰阶
|
|
10
|
+
// 主要内容用色,常用语常规标题内容、细文浏览、常规按钮文字以及图表引导。
|
|
11
|
+
$gray1: #1a1a1a !default;
|
|
12
|
+
|
|
13
|
+
// 次要文字色,用于次级标题、属性标示、非主要信息引导等。
|
|
14
|
+
$gray2: #757575 !default;
|
|
15
|
+
|
|
16
|
+
// 不可操作内容色,用于预置内容、无效内容、特殊不可点击按钮、组件边框线等。
|
|
17
|
+
$gray3: #bfbfbf !default;
|
|
18
|
+
|
|
19
|
+
// 页面基底色,用于卡片式页面的兜底,永远置于页面最底层。
|
|
20
|
+
$gray4: #f4f4f4 !default;
|
|
21
|
+
|
|
22
|
+
// 卡片内嵌背景色,用于卡片内部的信息包裹,感知较弱。
|
|
23
|
+
$gray5: #f8f8f8 !default;
|
|
24
|
+
|
|
25
|
+
// 卡片背景色
|
|
26
|
+
$gray6: #ffffff !default;
|
|
27
|
+
|
|
28
|
+
// 页面全局蒙层,用于弹出层、弹窗、新功能引导出现的整页遮罩
|
|
29
|
+
$gray7: rgba(0, 0, 0, 0.7) !default;
|
|
30
|
+
|
|
31
|
+
// 局部蒙层,用于非整页遮罩
|
|
32
|
+
$gray8: rgba(0, 0, 0, 0.4) !default;
|
|
33
|
+
|
|
34
|
+
// 间隔线/容错线,用于结构或信息分割
|
|
35
|
+
$gray9: rgba(0, 0, 0, 0.08) !default;
|
|
36
|
+
|
|
37
|
+
// 图片容错蒙层
|
|
38
|
+
$gray10: rgba(0, 0, 0, 0.02) !default;
|
|
39
|
+
|
|
40
|
+
// 暗黑映射
|
|
41
|
+
$dark1: #e6e6e6 !default;
|
|
42
|
+
$dark2: #828282 !default;
|
|
43
|
+
$dark3: #404040 !default;
|
|
44
|
+
$dark4: #0a0a0a !default;
|
|
45
|
+
$dark5: #141414 !default;
|
|
46
|
+
$dark6: #1f1f1f !default;
|
|
47
|
+
$dark7: rgba(0, 0, 0, 0.7) !default;
|
|
48
|
+
$dark8: rgba(0, 0, 0, 0.4) !default;
|
|
49
|
+
$dark9: rgba(0, 0, 0, 0.08) !default;
|
|
50
|
+
$dark10: rgba(0, 0, 0, 0.02) !default;
|
|
51
|
+
|
|
1
52
|
// color
|
|
2
53
|
|
|
3
54
|
// 主色调
|
|
4
|
-
$primary-color:
|
|
5
|
-
$primary-color-end:
|
|
55
|
+
$primary-color: $brand-color !default;
|
|
56
|
+
$primary-color-end: $brand-color-end !default;
|
|
6
57
|
// 辅助色
|
|
7
|
-
$help-color:
|
|
58
|
+
$help-color: $gray5 !default;
|
|
8
59
|
// 标题常规文字
|
|
9
|
-
$title-color:
|
|
60
|
+
$title-color: $gray1 !default;
|
|
10
61
|
// 副标题
|
|
11
|
-
$title-color2:
|
|
62
|
+
$title-color2: $gray2 !default;
|
|
12
63
|
// 次内容
|
|
13
|
-
$text-color:
|
|
64
|
+
$text-color: $gray2 !default;
|
|
14
65
|
// 特殊禁用色
|
|
15
|
-
$disable-color:
|
|
16
|
-
$white:
|
|
17
|
-
$black:
|
|
66
|
+
$disable-color: $gray3 !default;
|
|
67
|
+
$white: $gray6 !default;
|
|
68
|
+
$black: $gray0 !default;
|
|
18
69
|
$required-color: #fa2c19 !default;
|
|
19
70
|
|
|
20
|
-
$dark-background:
|
|
21
|
-
$dark-background2:
|
|
22
|
-
$dark-background3:
|
|
23
|
-
$dark-background4:
|
|
24
|
-
$dark-background5:
|
|
25
|
-
$dark-background6:
|
|
26
|
-
$dark-background7:
|
|
27
|
-
$dark-color: $
|
|
28
|
-
$dark-color2:
|
|
29
|
-
$dark-color3:
|
|
30
|
-
$dark-color-gray: $
|
|
31
|
-
$dark-calendar-choose-color:
|
|
71
|
+
$dark-background: $dark1 !default;
|
|
72
|
+
$dark-background2: $dark2 !default;
|
|
73
|
+
$dark-background3: $dark3 !default;
|
|
74
|
+
$dark-background4: $dark4 !default;
|
|
75
|
+
$dark-background5: $dark5 !default;
|
|
76
|
+
$dark-background6: $dark6 !default;
|
|
77
|
+
$dark-background7: $dark7 !default;
|
|
78
|
+
$dark-color: $dark1 !default;
|
|
79
|
+
$dark-color2: $dark2 !default;
|
|
80
|
+
$dark-color3: $dark3 !default;
|
|
81
|
+
$dark-color-gray: $dark2 !default;
|
|
82
|
+
$dark-calendar-choose-color: $dark1 !default;
|
|
32
83
|
|
|
33
84
|
// padding
|
|
34
85
|
$padding-xs: 12px;
|
|
@@ -311,9 +362,9 @@ $toast-title-font-size: 16px !default;
|
|
|
311
362
|
$toast-text-font-size: 14px !default;
|
|
312
363
|
$toast-font-color: $white !default;
|
|
313
364
|
$toast-inner-padding: 24px 30px !default;
|
|
314
|
-
$toast-inner-bg-color:
|
|
365
|
+
$toast-inner-bg-color: $gray7 !default;
|
|
315
366
|
$toast-inner-border-radius: 12px !default;
|
|
316
|
-
$toast-cover-bg-color:
|
|
367
|
+
$toast-cover-bg-color: $gray7 !default;
|
|
317
368
|
|
|
318
369
|
//backtop(✅)
|
|
319
370
|
$backtop-border-color: #e0e0e0 !default;
|
|
@@ -497,10 +548,10 @@ $checkbox-icon-font-size: 18px !default;
|
|
|
497
548
|
$checkbox-icon-disable-color2: $help-color !default;
|
|
498
549
|
|
|
499
550
|
//radio(✅)
|
|
500
|
-
$radio-label-font-color:
|
|
551
|
+
$radio-label-font-color: $gray1 !default;
|
|
501
552
|
$radio-label-font-active-color: $primary-color !default;
|
|
502
|
-
$radio-label-disable-color:
|
|
503
|
-
$radio-icon-disable-color:
|
|
553
|
+
$radio-label-disable-color: $gray3 !default;
|
|
554
|
+
$radio-icon-disable-color: $gray3 !default;
|
|
504
555
|
$radio-label-button-border-color: $primary-color !default;
|
|
505
556
|
$radio-label-button-background: rgba($primary-color, 0.05) !default;
|
|
506
557
|
$radio-label-margin-left: 15px !default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -578,6 +578,9 @@ interface RangeProps {
|
|
|
578
578
|
hiddenTag: boolean;
|
|
579
579
|
min: number | string;
|
|
580
580
|
max: number | string;
|
|
581
|
+
minDesc: number | string;
|
|
582
|
+
maxDesc: number | string;
|
|
583
|
+
curValueDesc: number | string;
|
|
581
584
|
step: number | string;
|
|
582
585
|
modelValue: SliderValue;
|
|
583
586
|
button: React__default.ReactNode;
|
|
@@ -1132,6 +1135,96 @@ interface NumberKeyboardProps {
|
|
|
1132
1135
|
}
|
|
1133
1136
|
declare const NumberKeyboard: FunctionComponent<Partial<NumberKeyboardProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
1134
1137
|
|
|
1138
|
+
interface FormItemRuleWithoutValidator {
|
|
1139
|
+
[key: string]: any;
|
|
1140
|
+
regex?: RegExp;
|
|
1141
|
+
required?: boolean;
|
|
1142
|
+
message?: string;
|
|
1143
|
+
}
|
|
1144
|
+
interface FormItemRule extends FormItemRuleWithoutValidator {
|
|
1145
|
+
validator?: (value: any, ruleCfg: FormItemRuleWithoutValidator) => boolean | string | Promise<boolean | string>;
|
|
1146
|
+
}
|
|
1147
|
+
interface BaseFormField {
|
|
1148
|
+
/**
|
|
1149
|
+
* 字段名
|
|
1150
|
+
*/
|
|
1151
|
+
name: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* label 标签的文本
|
|
1154
|
+
*/
|
|
1155
|
+
label: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* 校验规则,设置字段的校验逻辑
|
|
1158
|
+
*/
|
|
1159
|
+
rules: FormItemRule[];
|
|
1160
|
+
/**
|
|
1161
|
+
* 是否禁用表单项
|
|
1162
|
+
*/
|
|
1163
|
+
disabled: boolean;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
interface ConfigConsumerProps {
|
|
1167
|
+
[propName: string]: any;
|
|
1168
|
+
}
|
|
1169
|
+
declare const FormItemContext: React$1.Context<ConfigConsumerProps>;
|
|
1170
|
+
|
|
1171
|
+
declare type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
1172
|
+
interface FormItemProps extends IComponent, BaseFormField {
|
|
1173
|
+
labelWidth: string | number;
|
|
1174
|
+
errorMessageAlign: TextAlign;
|
|
1175
|
+
showErrorLine: boolean;
|
|
1176
|
+
showErrorMessage: boolean;
|
|
1177
|
+
}
|
|
1178
|
+
declare const defaultProps: FormItemProps;
|
|
1179
|
+
declare type FieldProps = typeof defaultProps & Partial<BaseFormField>;
|
|
1180
|
+
declare class FormItem extends React__default.Component<FieldProps> {
|
|
1181
|
+
static defaultProps: FormItemProps;
|
|
1182
|
+
static contextType: any;
|
|
1183
|
+
context: React__default.ContextType<typeof FormItemContext>;
|
|
1184
|
+
private cancelRegister;
|
|
1185
|
+
componentDidMount(): void;
|
|
1186
|
+
componentWillUnmount(): void;
|
|
1187
|
+
getControlled: (children: React__default.ReactElement) => {
|
|
1188
|
+
value: any;
|
|
1189
|
+
onChange: (event: React__default.ChangeEvent<HTMLInputElement> | number | string | string[]) => void;
|
|
1190
|
+
};
|
|
1191
|
+
onStoreChange: () => void;
|
|
1192
|
+
renderLayout: (childNode: React__default.ReactNode) => JSX.Element;
|
|
1193
|
+
pxCheck: (value: string | number) => string;
|
|
1194
|
+
render(): JSX.Element;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
interface BaseForm {
|
|
1198
|
+
/**
|
|
1199
|
+
* 经 Form.useForm() 创建的 form 控制实例,不提供时会自动创建
|
|
1200
|
+
*/
|
|
1201
|
+
form: any;
|
|
1202
|
+
/**
|
|
1203
|
+
* label的位置
|
|
1204
|
+
* 可选值 top/left/right
|
|
1205
|
+
*/
|
|
1206
|
+
labelPosition: string | number;
|
|
1207
|
+
/**
|
|
1208
|
+
* 表单分组名称
|
|
1209
|
+
*/
|
|
1210
|
+
formGroupTitle: string;
|
|
1211
|
+
starPositon: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* 表单校验成功回调
|
|
1214
|
+
*/
|
|
1215
|
+
onFinish: (obj: object) => void;
|
|
1216
|
+
/**
|
|
1217
|
+
* 表单校验失败回调
|
|
1218
|
+
*/
|
|
1219
|
+
onFinishFailed: (value: []) => void;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
interface FormProps extends IComponent, BaseForm {
|
|
1223
|
+
}
|
|
1224
|
+
declare const Form: FunctionComponent<Partial<FormProps> & React__default.HTMLAttributes<HTMLFormElement>> & {
|
|
1225
|
+
Item: typeof FormItem;
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1135
1228
|
declare type ItemType<T> = {
|
|
1136
1229
|
[key: string]: T;
|
|
1137
1230
|
};
|
|
@@ -1956,4 +2049,4 @@ interface TimeSelectProps {
|
|
|
1956
2049
|
}
|
|
1957
2050
|
declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
|
|
1958
2051
|
|
|
1959
|
-
export { ActionSheet, ActionSheetProps, Address, AddressProps, AnimatingNumbers, AnimatingNumbersProps, Audio, AudioProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, Barrage, BarrageProps, Button, ButtonProps, Calendar, CalendarItem, CalendarItemProps, CalendarProps, Card, CardProps, Cascader, CascaderProps, Cell, CellGroup, CellGroupProps, CellProps, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CircleProgress, CircleProgressProps, Col, ColProps, Collapse, CollapseItem, CollapseItemProps, CollapseProps, ConfigProvider, ConfigProviderProps, CountDown, CountDownProps, DatePicker, DatePickerProps, Dialog, DialogProps, Divider, DividerProps, Drag, DragProps, Elevator, ElevatorProps, Empty, EmptyProps, FixedNav, FixedNavProps, Grid, GridItem, GridItemProps, GridProps, Icon, IconProps, ImagePreview, ImagePreviewProps, Indicator, IndicatorProps, Infiniteloading, InfiniteloadingProps, Input, InputNumber, InputNumberProps, InputProps, Layout, LayoutProps, Menu, MenuItem, MenuItemProps, MenuProps, NavBar, NavBarProps$1 as NavBarProps, NoticeBar, NoticeBarProps, _default$1 as Notify, NotifyProps, NumberKeyboard, NumberKeyboardProps, Overlay, OverlayProps, Pagination, PaginationProps, Picker, PickerProps, Popover, PopoverProps, Popup, PopupProps, Price, PriceProps, Progress, ProgressProps, PullToRefresh, PullToRefreshProps, Radio, RadioGroup, RadioGroupProps, RadioProps, Range, RangeProps, Rate, RateProps, Row, RowProps, SearchBar, SearchBarProps, ShortPassword, ShortPasswordProps, SideNavBar, SideNavBarItem, SideNavBarItemProps, SideNavBarProps, Signature, SignatureProps, Skeleton, SkeletonProps, Step, StepProps, Steps, StepsProps, Sticky, StickyProps, SubSideNavBar, SubSideNavBarProps, Swipe, SwipeProps, Swiper, SwiperItem, SwiperItemProps, SwiperProps, Switch, SwitchProps, TabPane, TabPaneProps, Tabbar, TabbarItem, TabbarItemProps, TabbarProps, Table, TableProps, Tabs, TabsProps, Tag, TagProps, TextArea, TextAreaProps, TimeDetail, TimeDetailProps, TimePannel, TimePannelProps, TimeSelect, TimeSelectProps, _default as Toast, ToastProps, Uploader, UploaderProps, Video, VideoProps, VirtualList, VirtualListProps };
|
|
2052
|
+
export { ActionSheet, ActionSheetProps, Address, AddressProps, AnimatingNumbers, AnimatingNumbersProps, Audio, AudioProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, Barrage, BarrageProps, Button, ButtonProps, Calendar, CalendarItem, CalendarItemProps, CalendarProps, Card, CardProps, Cascader, CascaderProps, Cell, CellGroup, CellGroupProps, CellProps, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CircleProgress, CircleProgressProps, Col, ColProps, Collapse, CollapseItem, CollapseItemProps, CollapseProps, ConfigProvider, ConfigProviderProps, CountDown, CountDownProps, DatePicker, DatePickerProps, Dialog, DialogProps, Divider, DividerProps, Drag, DragProps, Elevator, ElevatorProps, Empty, EmptyProps, FixedNav, FixedNavProps, Form, FormItem, FormItemProps, FormProps, Grid, GridItem, GridItemProps, GridProps, Icon, IconProps, ImagePreview, ImagePreviewProps, Indicator, IndicatorProps, Infiniteloading, InfiniteloadingProps, Input, InputNumber, InputNumberProps, InputProps, Layout, LayoutProps, Menu, MenuItem, MenuItemProps, MenuProps, NavBar, NavBarProps$1 as NavBarProps, NoticeBar, NoticeBarProps, _default$1 as Notify, NotifyProps, NumberKeyboard, NumberKeyboardProps, Overlay, OverlayProps, Pagination, PaginationProps, Picker, PickerProps, Popover, PopoverProps, Popup, PopupProps, Price, PriceProps, Progress, ProgressProps, PullToRefresh, PullToRefreshProps, Radio, RadioGroup, RadioGroupProps, RadioProps, Range, RangeProps, Rate, RateProps, Row, RowProps, SearchBar, SearchBarProps, ShortPassword, ShortPasswordProps, SideNavBar, SideNavBarItem, SideNavBarItemProps, SideNavBarProps, Signature, SignatureProps, Skeleton, SkeletonProps, Step, StepProps, Steps, StepsProps, Sticky, StickyProps, SubSideNavBar, SubSideNavBarProps, Swipe, SwipeProps, Swiper, SwiperItem, SwiperItemProps, SwiperProps, Switch, SwitchProps, TabPane, TabPaneProps, Tabbar, TabbarItem, TabbarItemProps, TabbarProps, Table, TableProps, Tabs, TabsProps, Tag, TagProps, TextArea, TextAreaProps, TimeDetail, TimeDetailProps, TimePannel, TimePannelProps, TimeSelect, TimeSelectProps, _default as Toast, ToastProps, Uploader, UploaderProps, Video, VideoProps, VirtualList, VirtualListProps };
|
|
@@ -44,6 +44,8 @@ import Uploader from '@/packages/uploader';
|
|
|
44
44
|
import Cascader from '@/packages/cascader';
|
|
45
45
|
import SearchBar from '@/packages/searchbar';
|
|
46
46
|
import NumberKeyboard from '@/packages/numberkeyboard';
|
|
47
|
+
import Form from '@/packages/form';
|
|
48
|
+
import FormItem from '@/packages/formitem';
|
|
47
49
|
import ActionSheet from '@/packages/actionsheet';
|
|
48
50
|
import BackTop from '@/packages/backtop';
|
|
49
51
|
import Drag from '@/packages/drag';
|
|
@@ -86,7 +88,7 @@ import TimePannel from '@/packages/timepannel';
|
|
|
86
88
|
import TimeDetail from '@/packages/timedetail';
|
|
87
89
|
import TimeSelect from '@/packages/timeselect';
|
|
88
90
|
|
|
89
|
-
export { Button,Cell,CellGroup,Icon,Overlay,Popup,ConfigProvider,Layout,Col,Row,Divider,Grid,GridItem,Sticky,NavBar,FixedNav,Tabbar,TabbarItem,Elevator,Pagination,Tabs,TabPane,Indicator,SideNavBar,SubSideNavBar,SideNavBarItem,Menu,MenuItem,Range,Calendar,Checkbox,CheckboxGroup,DatePicker,InputNumber,Input,Radio,RadioGroup,Rate,CalendarItem,Picker,ShortPassword,TextArea,Uploader,Cascader,SearchBar,NumberKeyboard,ActionSheet,BackTop,Drag,Dialog,Infiniteloading,Notify,Switch,Toast,Swipe,PullToRefresh,CircleProgress,NoticeBar,Steps,Step,Swiper,SwiperItem,Avatar,AvatarGroup,Price,Badge,Tag,Popover,Skeleton,CountDown,Collapse,CollapseItem,AnimatingNumbers,Empty,VirtualList,Table,Video,Progress,Audio,ImagePreview,Address,Barrage,Signature,Card,TimePannel,TimeDetail,TimeSelect };
|
|
91
|
+
export { Button,Cell,CellGroup,Icon,Overlay,Popup,ConfigProvider,Layout,Col,Row,Divider,Grid,GridItem,Sticky,NavBar,FixedNav,Tabbar,TabbarItem,Elevator,Pagination,Tabs,TabPane,Indicator,SideNavBar,SubSideNavBar,SideNavBarItem,Menu,MenuItem,Range,Calendar,Checkbox,CheckboxGroup,DatePicker,InputNumber,Input,Radio,RadioGroup,Rate,CalendarItem,Picker,ShortPassword,TextArea,Uploader,Cascader,SearchBar,NumberKeyboard,Form,FormItem,ActionSheet,BackTop,Drag,Dialog,Infiniteloading,Notify,Switch,Toast,Swipe,PullToRefresh,CircleProgress,NoticeBar,Steps,Step,Swiper,SwiperItem,Avatar,AvatarGroup,Price,Badge,Tag,Popover,Skeleton,CountDown,Collapse,CollapseItem,AnimatingNumbers,Empty,VirtualList,Table,Video,Progress,Audio,ImagePreview,Address,Barrage,Signature,Card,TimePannel,TimeDetail,TimeSelect };
|
|
90
92
|
export type { ButtonProps } from '@/packages/button/button';
|
|
91
93
|
export type { CellProps } from '@/packages/cell/cell';
|
|
92
94
|
export type { CellGroupProps } from '@/packages/cellgroup/cellgroup';
|
|
@@ -133,6 +135,8 @@ export type { UploaderProps } from '@/packages/uploader/uploader';
|
|
|
133
135
|
export type { CascaderProps } from '@/packages/cascader/cascader';
|
|
134
136
|
export type { SearchBarProps } from '@/packages/searchbar/searchbar';
|
|
135
137
|
export type { NumberKeyboardProps } from '@/packages/numberkeyboard/numberkeyboard';
|
|
138
|
+
export type { FormProps } from '@/packages/form/form';
|
|
139
|
+
export type { FormItemProps } from '@/packages/formitem/formitem';
|
|
136
140
|
export type { ActionSheetProps } from '@/packages/actionsheet/actionsheet';
|
|
137
141
|
export type { BackTopProps } from '@/packages/backtop/backtop';
|
|
138
142
|
export type { DragProps } from '@/packages/drag/drag';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.12-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",
|
|
@@ -64,6 +64,8 @@
|
|
|
64
64
|
"lint": "eslint ./src/packages/calendar",
|
|
65
65
|
"lint:fix": "eslint --fix ./src/packages/calendar",
|
|
66
66
|
"publish:beta": "npm publish --tag beta",
|
|
67
|
+
"prepublishOnly": "node scripts/taro/prepublish.js",
|
|
68
|
+
"postpublish": "node scripts/taro/postpublish.js",
|
|
67
69
|
"prepare": "husky install",
|
|
68
70
|
"test": "jest",
|
|
69
71
|
"test:demo": "jest --testNamePattern=^should match snapshot$ --runTestsByPath ./src/packages/collapse/__test__/collapse.spec.tsx",
|
|
@@ -92,8 +94,6 @@
|
|
|
92
94
|
"@react-spring/web": "^9.3.2",
|
|
93
95
|
"@use-gesture/react": "^10.2.9",
|
|
94
96
|
"classnames": "^2.3.1",
|
|
95
|
-
"mobx-react-lite": "^3.4.0",
|
|
96
|
-
"react-router-dom": "^5.2.0",
|
|
97
97
|
"react-transition-group": "^4.4.2"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"@rollup/plugin-node-resolve": "^13.1.1",
|
|
113
113
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
114
114
|
"@tarojs/components": "^3.5.5",
|
|
115
|
-
"@tarojs/taro": "^3.5.5",
|
|
116
115
|
"@tarojs/plugin-platform-weapp": "^3.5.7",
|
|
116
|
+
"@tarojs/taro": "^3.5.5",
|
|
117
117
|
"@tarojs/taro-loader": "^3.5.7",
|
|
118
118
|
"@testing-library/jest-dom": "^5.16.3",
|
|
119
119
|
"@testing-library/react": "^13.3.0",
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
"@typescript-eslint/parser": "^4.24.0",
|
|
131
131
|
"@vitejs/plugin-react": "^1.1.3",
|
|
132
132
|
"@vitejs/plugin-react-refresh": "^1.3.1",
|
|
133
|
+
"async-validator": "^4.2.5",
|
|
133
134
|
"autoprefixer": "^10.4.0",
|
|
134
135
|
"axios": "^0.21.1",
|
|
135
136
|
"babel-plugin-react-scoped-css": "^1.1.1",
|
|
@@ -154,6 +155,7 @@
|
|
|
154
155
|
"map-stream": "0.0.7",
|
|
155
156
|
"marked": "^2.0.3",
|
|
156
157
|
"mobx": "^6.6.2",
|
|
158
|
+
"mobx-react-lite": "^3.4.0",
|
|
157
159
|
"postcss-import": "^14.0.2",
|
|
158
160
|
"postcss-modules": "^4.2.2",
|
|
159
161
|
"prettier": "2.3.0",
|