@nutui/nutui-react-taro 1.3.9 → 1.3.10
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 +36 -0
- package/dist/esm/Address.js +4 -2
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/Button.js +2 -2
- package/dist/esm/Card.js +4 -4
- package/dist/esm/Checkbox.js +2 -3
- package/dist/esm/CheckboxGroup.js +4 -2
- package/dist/esm/Dialog.js +3 -3
- package/dist/esm/Elevator.js +2 -2
- package/dist/esm/Input.js +2 -2
- package/dist/esm/Menu.js +2 -2
- package/dist/esm/MenuItem.js +2 -2
- package/dist/esm/NoticeBar.js +2 -2
- package/dist/esm/Price.js +2 -2
- package/dist/esm/Radio.js +1 -3
- package/dist/esm/RadioGroup.js +4 -2
- package/dist/esm/Signature.js +3 -3
- package/dist/esm/TabbarItem.js +2 -2
- package/dist/esm/Tag.js +2 -2
- package/dist/esm/Uploader.js +3 -3
- package/dist/esm/{address.taro-f16cef31.js → address.taro-8d642b4a.js} +11 -1
- package/dist/esm/{audio.taro-c2f9948a.js → audio.taro-b42a082b.js} +1 -1
- package/dist/esm/{button.taro-a9ebb937.js → button.taro-7e924b72.js} +3 -1
- package/dist/esm/{card.taro-1bc35ebe.js → card.taro-59f65b66.js} +2 -2
- package/dist/esm/checkbox.taro-d8656076.js +249 -0
- package/dist/esm/{dialog.taro-492e2b9a.js → dialog.taro-0c35b35f.js} +1 -1
- package/dist/esm/{elevator.taro-ead49158.js → elevator.taro-d7d65470.js} +1 -1
- package/dist/esm/index.taro-c092d216.js +227 -0
- package/dist/esm/{input.taro-39b99dbc.js → input.taro-cc46bbc3.js} +11 -4
- package/dist/esm/{menu.taro-f8ca86db.js → menu.taro-4abed328.js} +3 -2
- package/dist/esm/{menuitem.taro-7bf564c9.js → menuitem.taro-06a135a5.js} +1 -2
- package/dist/esm/{noticebar.taro-77b5a2c9.js → noticebar.taro-4915fed3.js} +12 -16
- package/dist/esm/nutui-react.es.js +17 -19
- package/dist/esm/{price.taro-97393d8f.js → price.taro-8801462e.js} +28 -22
- package/dist/esm/{signature.taro-0b3abea5.js → signature.taro-57f8de06.js} +1 -1
- package/dist/esm/{tabbaritem.taro-94cd62c2.js → tabbaritem.taro-fb90f659.js} +6 -5
- package/dist/esm/{tag.taro-95d7f5c2.js → tag.taro-84d40117.js} +6 -4
- package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +6 -1
- package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +6 -1
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +2 -0
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/checkboxgroup/type.d.ts +6 -0
- package/dist/esm/types/src/packages/input/input.d.ts +1 -0
- package/dist/esm/types/src/packages/input/input.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +91 -0
- package/dist/esm/types/src/packages/price/price.d.ts +2 -0
- package/dist/esm/types/src/packages/price/price.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -0
- package/dist/esm/types/src/packages/radiogroup/radiogroup.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/radiogroup/type.d.ts +7 -0
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +1 -1
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +1 -1
- package/dist/esm/{uploader.taro-63a36a30.js → uploader.taro-a03bb003.js} +1 -1
- 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 +170 -78
- package/dist/nutui.react.umd.js +169 -77
- package/dist/packages/badge/badge.scss +10 -10
- package/dist/packages/button/button.scss +3 -3
- package/dist/packages/cell/cell.scss +1 -4
- package/dist/packages/cellgroup/cellgroup.scss +8 -0
- package/dist/packages/countdown/countdown.scss +1 -1
- package/dist/packages/infiniteloading/infiniteloading.scss +1 -1
- package/dist/packages/inputnumber/inputnumber.scss +3 -3
- package/dist/packages/noticebar/noticebar.scss +3 -0
- package/dist/packages/price/price.scss +27 -11
- package/dist/packages/radio/radio.scss +8 -7
- package/dist/packages/shortpassword/shortpassword.scss +4 -4
- package/dist/packages/skeleton/skeleton.scss +1 -1
- package/dist/packages/swiper/swiper.scss +4 -4
- package/dist/packages/switch/switch.scss +8 -8
- package/dist/packages/timepannel/timepannel.scss +3 -3
- package/dist/packages/timeselect/timeselect.scss +4 -4
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/variables.scss +573 -248
- package/dist/types/index.d.ts +19 -3
- package/package.json +1 -1
- package/dist/esm/checkbox.taro-104557c1.js +0 -121
- package/dist/esm/checkboxgroup.taro-3d380042.js +0 -110
- package/dist/esm/radio.taro-95d43860.js +0 -112
- package/dist/esm/radiogroup.taro-b5dad516.js +0 -95
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import CheckboxGroup from '@/packages/checkboxgroup';
|
|
3
3
|
import { IComponent } from '@/utils/typings';
|
|
4
|
+
interface InheritParentProps {
|
|
5
|
+
getParentVals?: () => string[] | undefined;
|
|
6
|
+
max?: number | undefined;
|
|
7
|
+
}
|
|
4
8
|
export interface CheckboxProps extends IComponent {
|
|
5
9
|
checked: boolean;
|
|
6
10
|
disabled: boolean;
|
|
@@ -15,6 +19,7 @@ export interface CheckboxProps extends IComponent {
|
|
|
15
19
|
label: string;
|
|
16
20
|
onChange: (state: boolean, label: string) => void;
|
|
17
21
|
}
|
|
18
|
-
export declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
22
|
+
export declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & InheritParentProps> & {
|
|
19
23
|
Group: typeof CheckboxGroup;
|
|
20
24
|
};
|
|
25
|
+
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import CheckboxGroup from '@/packages/checkboxgroup/index.taro';
|
|
3
3
|
import { IComponent } from '@/utils/typings';
|
|
4
|
+
interface InheritParentProps {
|
|
5
|
+
getParentVals?: () => string[] | undefined;
|
|
6
|
+
max?: number | undefined;
|
|
7
|
+
}
|
|
4
8
|
export interface CheckboxProps extends IComponent {
|
|
5
9
|
checked: boolean;
|
|
6
10
|
disabled: boolean;
|
|
@@ -15,6 +19,7 @@ export interface CheckboxProps extends IComponent {
|
|
|
15
19
|
label: string;
|
|
16
20
|
onChange: (state: boolean, label: string) => void;
|
|
17
21
|
}
|
|
18
|
-
export declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
22
|
+
export declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & InheritParentProps> & {
|
|
19
23
|
Group: typeof CheckboxGroup;
|
|
20
24
|
};
|
|
25
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { RadioGroupOptionType } from '@/packages/radiogroup/type';
|
|
2
3
|
export interface CheckboxGroupProps {
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
checkedValue: string[];
|
|
5
6
|
max: number | undefined;
|
|
6
7
|
onChange: (value: string[]) => void;
|
|
8
|
+
options: RadioGroupOptionType[];
|
|
7
9
|
}
|
|
8
10
|
export declare const CheckboxGroup: React.ForwardRefExoticComponent<Partial<CheckboxGroupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<unknown>>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { RadioGroupOptionType } from '@/packages/radiogroup/type';
|
|
2
3
|
export interface CheckboxGroupProps {
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
checkedValue: string[];
|
|
5
6
|
max: number | undefined;
|
|
6
7
|
onChange: (value: string[]) => void;
|
|
8
|
+
options: RadioGroupOptionType[];
|
|
7
9
|
}
|
|
8
10
|
export declare const CheckboxGroup: React.ForwardRefExoticComponent<Partial<CheckboxGroupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<unknown>>;
|
|
@@ -11,6 +11,7 @@ export declare type InputRule = {
|
|
|
11
11
|
export declare type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
|
|
12
12
|
export interface InputProps extends IComponent {
|
|
13
13
|
type: InputType;
|
|
14
|
+
name: string;
|
|
14
15
|
defaultValue: any;
|
|
15
16
|
placeholder: string;
|
|
16
17
|
label: string;
|
|
@@ -11,6 +11,7 @@ export declare type InputRule = {
|
|
|
11
11
|
export declare type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
|
|
12
12
|
export interface InputProps extends IComponent {
|
|
13
13
|
type: InputType;
|
|
14
|
+
name: string;
|
|
14
15
|
defaultValue: any;
|
|
15
16
|
placeholder: string;
|
|
16
17
|
label: string;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import '@/packages/button/button.scss';
|
|
2
|
+
import '@/packages/cell/cell.scss';
|
|
3
|
+
import '@/packages/cellgroup/cellgroup.scss';
|
|
4
|
+
import '@/packages/icon/icon.scss';
|
|
5
|
+
import '@/packages/overlay/overlay.scss';
|
|
6
|
+
import '@/packages/popup/popup.scss';
|
|
7
|
+
import '@/packages/configprovider/configprovider.scss';
|
|
8
|
+
import '@/packages/layout/layout.scss';
|
|
9
|
+
import '@/packages/col/col.scss';
|
|
10
|
+
import '@/packages/row/row.scss';
|
|
11
|
+
import '@/packages/divider/divider.scss';
|
|
12
|
+
import '@/packages/grid/grid.scss';
|
|
13
|
+
import '@/packages/griditem/griditem.scss';
|
|
14
|
+
import '@/packages/sticky/sticky.scss';
|
|
15
|
+
import '@/packages/navbar/navbar.scss';
|
|
16
|
+
import '@/packages/fixednav/fixednav.scss';
|
|
17
|
+
import '@/packages/tabbar/tabbar.scss';
|
|
18
|
+
import '@/packages/tabbaritem/tabbaritem.scss';
|
|
19
|
+
import '@/packages/elevator/elevator.scss';
|
|
20
|
+
import '@/packages/pagination/pagination.scss';
|
|
21
|
+
import '@/packages/tabs/tabs.scss';
|
|
22
|
+
import '@/packages/tabpane/tabpane.scss';
|
|
23
|
+
import '@/packages/indicator/indicator.scss';
|
|
24
|
+
import '@/packages/sidenavbar/sidenavbar.scss';
|
|
25
|
+
import '@/packages/subsidenavbar/subsidenavbar.scss';
|
|
26
|
+
import '@/packages/sidenavbaritem/sidenavbaritem.scss';
|
|
27
|
+
import '@/packages/menu/menu.scss';
|
|
28
|
+
import '@/packages/menuitem/menuitem.scss';
|
|
29
|
+
import '@/packages/range/range.scss';
|
|
30
|
+
import '@/packages/calendar/calendar.scss';
|
|
31
|
+
import '@/packages/checkbox/checkbox.scss';
|
|
32
|
+
import '@/packages/checkboxgroup/checkboxgroup.scss';
|
|
33
|
+
import '@/packages/datepicker/datepicker.scss';
|
|
34
|
+
import '@/packages/inputnumber/inputnumber.scss';
|
|
35
|
+
import '@/packages/input/input.scss';
|
|
36
|
+
import '@/packages/radio/radio.scss';
|
|
37
|
+
import '@/packages/radiogroup/radiogroup.scss';
|
|
38
|
+
import '@/packages/rate/rate.scss';
|
|
39
|
+
import '@/packages/calendaritem/calendaritem.scss';
|
|
40
|
+
import '@/packages/picker/picker.scss';
|
|
41
|
+
import '@/packages/shortpassword/shortpassword.scss';
|
|
42
|
+
import '@/packages/textarea/textarea.scss';
|
|
43
|
+
import '@/packages/uploader/uploader.scss';
|
|
44
|
+
import '@/packages/cascader/cascader.scss';
|
|
45
|
+
import '@/packages/searchbar/searchbar.scss';
|
|
46
|
+
import '@/packages/numberkeyboard/numberkeyboard.scss';
|
|
47
|
+
import '@/packages/actionsheet/actionsheet.scss';
|
|
48
|
+
import '@/packages/backtop/backtop.scss';
|
|
49
|
+
import '@/packages/drag/drag.scss';
|
|
50
|
+
import '@/packages/dialog/dialog.scss';
|
|
51
|
+
import '@/packages/infiniteloading/infiniteloading.scss';
|
|
52
|
+
import '@/packages/notify/notify.scss';
|
|
53
|
+
import '@/packages/switch/switch.scss';
|
|
54
|
+
import '@/packages/toast/toast.scss';
|
|
55
|
+
import '@/packages/swipe/swipe.scss';
|
|
56
|
+
import '@/packages/pulltorefresh/pulltorefresh.scss';
|
|
57
|
+
import '@/packages/circleprogress/circleprogress.scss';
|
|
58
|
+
import '@/packages/noticebar/noticebar.scss';
|
|
59
|
+
import '@/packages/steps/steps.scss';
|
|
60
|
+
import '@/packages/step/step.scss';
|
|
61
|
+
import '@/packages/swiper/swiper.scss';
|
|
62
|
+
import '@/packages/swiperitem/swiperitem.scss';
|
|
63
|
+
import '@/packages/avatar/avatar.scss';
|
|
64
|
+
import '@/packages/avatargroup/avatargroup.scss';
|
|
65
|
+
import '@/packages/price/price.scss';
|
|
66
|
+
import '@/packages/badge/badge.scss';
|
|
67
|
+
import '@/packages/tag/tag.scss';
|
|
68
|
+
import '@/packages/popover/popover.scss';
|
|
69
|
+
import '@/packages/skeleton/skeleton.scss';
|
|
70
|
+
import '@/packages/countdown/countdown.scss';
|
|
71
|
+
import '@/packages/collapse/collapse.scss';
|
|
72
|
+
import '@/packages/collapseitem/collapseitem.scss';
|
|
73
|
+
import '@/packages/animatingnumbers/animatingnumbers.scss';
|
|
74
|
+
import '@/packages/empty/empty.scss';
|
|
75
|
+
import '@/packages/virtuallist/virtuallist.scss';
|
|
76
|
+
import '@/packages/table/table.scss';
|
|
77
|
+
import '@/packages/video/video.scss';
|
|
78
|
+
import '@/packages/progress/progress.scss';
|
|
79
|
+
import '@/packages/audio/audio.scss';
|
|
80
|
+
import '@/packages/imagepreview/imagepreview.scss';
|
|
81
|
+
import '@/packages/address/address.scss';
|
|
82
|
+
import '@/packages/barrage/barrage.scss';
|
|
83
|
+
import '@/packages/signature/signature.scss';
|
|
84
|
+
import '@/packages/card/card.scss';
|
|
85
|
+
import '@/packages/timepannel/timepannel.scss';
|
|
86
|
+
import '@/packages/timedetail/timedetail.scss';
|
|
87
|
+
import '@/packages/timeselect/timeselect.scss';
|
|
88
|
+
declare const _default: {
|
|
89
|
+
NutUI: string;
|
|
90
|
+
};
|
|
91
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { RadioGroupOptionType } from './type';
|
|
2
3
|
declare type Position = 'left' | 'right';
|
|
3
4
|
declare type Direction = 'horizontal' | 'vertical';
|
|
4
5
|
export interface RadioGroupProps {
|
|
@@ -6,6 +7,7 @@ export interface RadioGroupProps {
|
|
|
6
7
|
textPosition: Position;
|
|
7
8
|
direction: Direction;
|
|
8
9
|
onChange: (value: string | number | boolean) => void;
|
|
10
|
+
options: RadioGroupOptionType[];
|
|
9
11
|
}
|
|
10
12
|
export declare const RadioGroup: React.ForwardRefExoticComponent<Partial<RadioGroupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<unknown>>;
|
|
11
13
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { RadioGroupOptionType } from './type';
|
|
2
3
|
declare type Position = 'left' | 'right';
|
|
3
4
|
declare type Direction = 'horizontal' | 'vertical';
|
|
4
5
|
export interface RadioGroupProps {
|
|
@@ -6,6 +7,7 @@ export interface RadioGroupProps {
|
|
|
6
7
|
textPosition: Position;
|
|
7
8
|
direction: Direction;
|
|
8
9
|
onChange: (value: string | number | boolean) => void;
|
|
10
|
+
options: RadioGroupOptionType[];
|
|
9
11
|
}
|
|
10
12
|
export declare const RadioGroup: React.ForwardRefExoticComponent<Partial<RadioGroupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<unknown>>;
|
|
11
13
|
export {};
|
|
@@ -10,7 +10,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
import React__default, { useState, useEffect, useImperativeHandle } from 'react';
|
|
11
11
|
import classNames from 'classnames';
|
|
12
12
|
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
13
|
-
import { B as Button } from './button.taro-
|
|
13
|
+
import { B as Button } from './button.taro-7e924b72.js';
|
|
14
14
|
import { P as Progress } from './progress.taro-623bc807.js';
|
|
15
15
|
import Taro from '@tarojs/taro';
|
|
16
16
|
import { c as cn } from './bem-893ad28d.js';
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED