@nutui/nutui-react-taro 1.5.2-beta.1 → 1.5.2
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/ActionSheet.js +90 -14
- package/dist/esm/Address.js +620 -21
- package/dist/esm/Animate.js +53 -7
- package/dist/esm/AnimatingNumbers.js +125 -7
- package/dist/esm/Audio.js +264 -19
- package/dist/esm/Avatar.js +130 -11
- package/dist/esm/{AvatarContext-c96afdcc.js → AvatarContext-15733596.js} +1 -3
- package/dist/esm/AvatarGroup.js +41 -11
- package/dist/esm/BackTop.js +138 -10
- package/dist/esm/Badge.js +71 -9
- package/dist/esm/Barrage.js +97 -8
- package/dist/esm/Button.js +108 -9
- package/dist/esm/Calendar.js +128 -20
- package/dist/esm/CalendarItem.js +674 -12
- package/dist/esm/Card.js +61 -11
- package/dist/esm/Cascader.js +671 -16
- package/dist/esm/Cell.js +101 -9
- package/dist/esm/CellGroup.js +2 -5
- package/dist/esm/Checkbox.js +5 -7
- package/dist/esm/CheckboxGroup.js +111 -8
- package/dist/esm/CircleProgress.js +114 -8
- package/dist/esm/Col.js +57 -7
- package/dist/esm/Collapse.js +97 -7
- package/dist/esm/CollapseItem.js +146 -8
- package/dist/esm/ConfigProvider.js +187 -8
- package/dist/esm/CountDown.js +247 -9
- package/dist/esm/DatePicker.js +309 -25
- package/dist/esm/Dialog.js +296 -17
- package/dist/esm/Divider.js +34 -7
- package/dist/esm/Drag.js +118 -7
- package/dist/esm/Elevator.js +234 -8
- package/dist/esm/Ellipsis.js +176 -10
- package/dist/esm/Empty.js +79 -8
- package/dist/esm/FixedNav.js +103 -14
- package/dist/esm/Form.js +215 -10
- package/dist/esm/FormItem.js +3 -10
- package/dist/esm/Grid.js +81 -11
- package/dist/esm/GridItem.js +123 -13
- package/dist/esm/Icon.js +2 -5
- package/dist/esm/Image.js +169 -11
- package/dist/esm/ImagePreview.js +225 -19
- package/dist/esm/Indicator.js +50 -7
- package/dist/esm/Infiniteloading.js +215 -14
- package/dist/esm/Input.js +362 -12
- package/dist/esm/InputNumber.js +275 -9
- package/dist/esm/Layout.js +13 -5
- package/dist/esm/Menu.js +153 -10
- package/dist/esm/MenuItem.js +175 -15
- package/dist/esm/NavBar.js +114 -9
- package/dist/esm/NoticeBar.js +568 -10
- package/dist/esm/Notify.js +234 -8
- package/dist/esm/NumberKeyboard.js +247 -17
- package/dist/esm/Overlay.js +2 -6
- package/dist/esm/Pagination.js +168 -9
- package/dist/esm/Picker.js +494 -22
- package/dist/esm/Popover.js +223 -12
- package/dist/esm/Popup.js +193 -13
- package/dist/esm/Price.js +84 -6
- package/dist/esm/Progress.js +122 -9
- package/dist/esm/PullToRefresh.js +276 -13
- package/dist/esm/Radio.js +4 -8
- package/dist/esm/RadioGroup.js +120 -7
- package/dist/esm/Range.js +406 -15
- package/dist/esm/Rate.js +121 -9
- package/dist/esm/Row.js +49 -7
- package/dist/esm/SearchBar.js +235 -12
- package/dist/esm/ShortPassword.js +191 -17
- package/dist/esm/SideNavBar.js +57 -19
- package/dist/esm/SideNavBarItem.js +24 -5
- package/dist/esm/Signature.js +153 -13
- package/dist/esm/Skeleton.js +98 -12
- package/dist/esm/Step.js +87 -10
- package/dist/esm/Steps.js +38 -8
- package/dist/esm/Sticky.js +190 -11
- package/dist/esm/SubSideNavBar.js +78 -6
- package/dist/esm/Swipe.js +230 -10
- package/dist/esm/Swiper.js +490 -9
- package/dist/esm/SwiperItem.js +36 -8
- package/dist/esm/Switch.js +71 -6
- package/dist/esm/TabPane.js +2 -5
- package/dist/esm/Tabbar.js +68 -6
- package/dist/esm/TabbarItem.js +78 -9
- package/dist/esm/Table.js +140 -12
- package/dist/esm/Tabs.js +5 -8
- package/dist/esm/Tag.js +110 -10
- package/dist/esm/TextArea.js +148 -9
- package/dist/esm/TimeDetail.js +67 -9
- package/dist/esm/TimePannel.js +29 -9
- package/dist/esm/TimeSelect.js +171 -19
- package/dist/esm/Toast.js +268 -7
- package/dist/esm/TrendArrow.js +99 -7
- package/dist/esm/Uploader.js +566 -17
- package/dist/esm/{UserContext-0aac9a82.js → UserContext-101ad4a4.js} +1 -3
- package/dist/esm/{UserContext-e402e1a6.js → UserContext-2629d479.js} +1 -3
- package/dist/esm/{UserContext-e8176108.js → UserContext-b33bcf21.js} +1 -3
- package/dist/esm/Video.js +90 -7
- package/dist/esm/VirtualList.js +313 -9
- package/dist/esm/WaterMark.js +111 -11
- package/dist/esm/{bem-350c1702.js → bem-3b438e61.js} +6 -3
- package/dist/esm/cellgroup-fcc72767.js +34 -0
- package/dist/esm/checkbox-44e13cd0.js +137 -0
- package/dist/esm/date-c7aad4c0.js +97 -0
- package/dist/esm/formitem-8a73a5fb.js +157 -0
- package/dist/esm/get-scroll-parent-5f85dee8.js +24 -0
- package/dist/esm/{grid.taro.context-c2bbfb4f.js → grid.context-2ee27d95.js} +2 -4
- package/dist/esm/icon-4ef1581c.js +70 -0
- package/dist/esm/index-030b7245.js +11 -0
- package/dist/esm/nutui-react.es.js +94 -119
- package/dist/esm/offsetContext-3ab00d40.js +16 -0
- package/dist/esm/overlay-de6c79d5.js +83 -0
- package/dist/esm/radio-9f141e6b.js +118 -0
- package/dist/esm/render-bbebb760.js +79 -0
- package/dist/esm/tabpane-01075e6c.js +29 -0
- package/dist/esm/tabs-e1b4e4b1.js +181 -0
- package/dist/esm/typings-f27b58f4.js +8 -0
- package/dist/esm/useClientRect-56bb675b.js +39 -0
- package/dist/esm/useTouch-cf73a407.js +99 -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/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +15025 -13192
- package/dist/nutui.react.umd.js +15004 -13169
- package/dist/style.mjs +1 -1
- package/dist/types/index.d.ts +183 -176
- package/package.json +1 -1
- package/dist/esm/actionsheet.taro-e6a51446.js +0 -53
- package/dist/esm/address.taro-3a9b6396.js +0 -461
- package/dist/esm/animate.taro-fb7986d6.js +0 -40
- package/dist/esm/animatingnumbers.taro-03e5d61d.js +0 -104
- package/dist/esm/audio.taro-87ec8bf2.js +0 -161
- package/dist/esm/avatar.taro-3676f38f.js +0 -103
- package/dist/esm/avatargroup-f3574510.js +0 -34
- package/dist/esm/backtop.taro-66394a36.js +0 -48
- package/dist/esm/badge.taro-a4e59c11.js +0 -52
- package/dist/esm/barrage.taro-0495a1b2.js +0 -94
- package/dist/esm/button.taro-9244d065.js +0 -100
- package/dist/esm/calendar.taro-670842ea.js +0 -65
- package/dist/esm/calendaritem.taro-2a603571.js +0 -787
- package/dist/esm/can-use-dom-3eeb5af4.js +0 -6
- package/dist/esm/card.taro-e4c76dad.js +0 -33
- package/dist/esm/cascader.taro-eb1fb011.js +0 -438
- package/dist/esm/cell.taro-a10a74d3.js +0 -64
- package/dist/esm/cellgroup.taro-abe501bc.js +0 -25
- package/dist/esm/checkbox.taro-6120e3e3.js +0 -171
- package/dist/esm/circleprogress.taro-79854448.js +0 -109
- package/dist/esm/col.taro-53eed3cc.js +0 -41
- package/dist/esm/collapse.taro-1a9e4ba2.js +0 -83
- package/dist/esm/collapseitem-4d0bc55d.js +0 -83
- package/dist/esm/configprovider-67d19d3a.js +0 -19
- package/dist/esm/configprovider.taro-8d71eb49.js +0 -42
- package/dist/esm/countdown.taro-5b17c607.js +0 -226
- package/dist/esm/datepicker.taro-6e9b4b8f.js +0 -275
- package/dist/esm/dialog.taro-a3267d29.js +0 -118
- package/dist/esm/divider.taro-26d1d8b4.js +0 -35
- package/dist/esm/drag.taro-79bb8744.js +0 -110
- package/dist/esm/elevator.taro-6019669e.js +0 -178
- package/dist/esm/ellipsis.taro-f15f26da.js +0 -241
- package/dist/esm/empty.taro-04ae4389.js +0 -62
- package/dist/esm/fixednav.taro-1f05acaf.js +0 -53
- package/dist/esm/form.taro-0c8e7a39.js +0 -179
- package/dist/esm/formitem.taro-190a3326.js +0 -89
- package/dist/esm/get-scroll-parent-b4a07e65.js +0 -25
- package/dist/esm/grid.taro-3503b82c.js +0 -61
- package/dist/esm/griditem.taro-cdb3f119.js +0 -98
- package/dist/esm/icon-296a1bec.js +0 -63
- package/dist/esm/icon.taro-296a1bec.js +0 -63
- package/dist/esm/image.taro-142cf512.js +0 -64
- package/dist/esm/imagepreview.taro-c50bb0a3.js +0 -167
- package/dist/esm/index-5bcb0ff8.js +0 -7
- package/dist/esm/indicator.taro-cba8b010.js +0 -37
- package/dist/esm/infiniteloading.taro-183bccbf.js +0 -144
- package/dist/esm/input.taro-97af6c96.js +0 -240
- package/dist/esm/inputnumber.taro-91f65d17.js +0 -130
- package/dist/esm/layout.taro-9046d093.js +0 -11
- package/dist/esm/menu.taro-7e4038a1.js +0 -99
- package/dist/esm/menuitem.taro-96cc4f15.js +0 -130
- package/dist/esm/navbar.taro-777c4705.js +0 -79
- package/dist/esm/noticebar.taro-4a23cdee.js +0 -448
- package/dist/esm/notify.taro-e17c6f82.js +0 -75
- package/dist/esm/numberkeyboard.taro-1bc24744.js +0 -159
- package/dist/esm/offsetContext-c2a746fa.js +0 -5
- package/dist/esm/overlay.taro-21e87fb1.js +0 -69
- package/dist/esm/pagination.taro-715a173b.js +0 -124
- package/dist/esm/picker.taro-9ad1b7c5.js +0 -473
- package/dist/esm/popover.taro-ad5e76ea.js +0 -156
- package/dist/esm/popup.taro-01676bff.js +0 -137
- package/dist/esm/price.taro-776ed16e.js +0 -83
- package/dist/esm/progress.taro-f0ce38e9.js +0 -90
- package/dist/esm/pulltorefresh.taro-a294f656.js +0 -181
- package/dist/esm/radio.taro-a6eff96c.js +0 -168
- package/dist/esm/range.taro-d8fc7656.js +0 -332
- package/dist/esm/rate.taro-6cdf03bd.js +0 -75
- package/dist/esm/row.taro-f64d4a13.js +0 -46
- package/dist/esm/searchbar.taro-0c25927b.js +0 -152
- package/dist/esm/shortpassword.taro-9ee034f7.js +0 -111
- package/dist/esm/sidenavbar.taro-c307b35e.js +0 -35
- package/dist/esm/sidenavbaritem.taro-5a7965d0.js +0 -12
- package/dist/esm/signature.taro-ec4e713b.js +0 -143
- package/dist/esm/skeleton.taro-76faf63f.js +0 -62
- package/dist/esm/step.taro-b7903e8c.js +0 -59
- package/dist/esm/steps.taro-c82d2252.js +0 -30
- package/dist/esm/sticky.taro-218bda37.js +0 -138
- package/dist/esm/subsidenavbar.taro-69cb9752.js +0 -63
- package/dist/esm/supports-passive-c85ef996.js +0 -18
- package/dist/esm/swipe.taro-ea35f07f.js +0 -177
- package/dist/esm/swiper.taro-7a94e211.js +0 -451
- package/dist/esm/swiperitem-c9e3d0d5.js +0 -29
- package/dist/esm/switch.taro-34ca8228.js +0 -50
- package/dist/esm/tabbar.taro-9acfc2fa.js +0 -59
- package/dist/esm/tabbaritem.taro-bf517487.js +0 -58
- package/dist/esm/table.taro-91fc0c01.js +0 -93
- package/dist/esm/tabpane.taro-4ca340ef.js +0 -23
- package/dist/esm/tabs.taro-6a7524a4.js +0 -140
- package/dist/esm/tag.taro-23ba0834.js +0 -92
- package/dist/esm/textarea.taro-442e7350.js +0 -94
- package/dist/esm/timedetail.taro-5b2f2269.js +0 -44
- package/dist/esm/timepannel.taro-d6e40180.js +0 -22
- package/dist/esm/timeselect.taro-a07036f4.js +0 -133
- package/dist/esm/toast.taro-d6c14811.js +0 -109
- package/dist/esm/trendarrow.taro-b8c5ccd9.js +0 -73
- package/dist/esm/typings-b9828dba.js +0 -9
- package/dist/esm/uploader.taro-587e6bf3.js +0 -492
- package/dist/esm/useClientRect-1f8ed1fe.js +0 -18
- package/dist/esm/useTouch-db24bb5c.js +0 -69
- package/dist/esm/video-f1be8a91.js +0 -67
- package/dist/esm/virtuallist.taro-f0b0270d.js +0 -214
- package/dist/esm/watermark.taro-9ce2ae37.js +0 -114
- package/dist/esm/zh-CN-c779e6c1.js +0 -131
|
@@ -1,119 +1,94 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export {
|
|
78
|
-
export {
|
|
79
|
-
export {
|
|
80
|
-
export {
|
|
81
|
-
export {
|
|
82
|
-
export {
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
85
|
-
export {
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
88
|
-
export {
|
|
89
|
-
export {
|
|
90
|
-
export {
|
|
91
|
-
export {
|
|
92
|
-
export {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
import '@tarojs/taro';
|
|
96
|
-
import './bem-350c1702.js';
|
|
97
|
-
import '@bem-react/classname';
|
|
98
|
-
import 'lodash.kebabcase';
|
|
99
|
-
import './zh-CN-c779e6c1.js';
|
|
100
|
-
import 'classnames';
|
|
101
|
-
import '@tarojs/components';
|
|
102
|
-
import 'react-dom';
|
|
103
|
-
import 'react-transition-group';
|
|
104
|
-
import './UserContext-0aac9a82.js';
|
|
105
|
-
import './grid.taro.context-c2bbfb4f.js';
|
|
106
|
-
import './useClientRect-1f8ed1fe.js';
|
|
107
|
-
import './get-scroll-parent-b4a07e65.js';
|
|
108
|
-
import './can-use-dom-3eeb5af4.js';
|
|
109
|
-
import './offsetContext-c2a746fa.js';
|
|
110
|
-
import './configprovider-67d19d3a.js';
|
|
111
|
-
import './useTouch-db24bb5c.js';
|
|
112
|
-
import './supports-passive-c85ef996.js';
|
|
113
|
-
import './icon-296a1bec.js';
|
|
114
|
-
import './index-5bcb0ff8.js';
|
|
115
|
-
import '@use-gesture/react';
|
|
116
|
-
import '@react-spring/web';
|
|
117
|
-
import './AvatarContext-c96afdcc.js';
|
|
118
|
-
import './UserContext-e402e1a6.js';
|
|
119
|
-
import './UserContext-e8176108.js';
|
|
1
|
+
export { default as Button } from './Button.js';
|
|
2
|
+
export { default as Cell } from './Cell.js';
|
|
3
|
+
export { default as CellGroup } from './CellGroup.js';
|
|
4
|
+
export { default as ConfigProvider } from './ConfigProvider.js';
|
|
5
|
+
export { default as Icon } from './Icon.js';
|
|
6
|
+
export { default as Image } from './Image.js';
|
|
7
|
+
export { default as Overlay } from './Overlay.js';
|
|
8
|
+
export { default as Popup } from './Popup.js';
|
|
9
|
+
export { default as Col } from './Col.js';
|
|
10
|
+
export { default as Divider } from './Divider.js';
|
|
11
|
+
export { default as Grid } from './Grid.js';
|
|
12
|
+
export { default as GridItem } from './GridItem.js';
|
|
13
|
+
export { default as Layout } from './Layout.js';
|
|
14
|
+
export { default as Row } from './Row.js';
|
|
15
|
+
export { default as Sticky } from './Sticky.js';
|
|
16
|
+
export { default as Elevator } from './Elevator.js';
|
|
17
|
+
export { default as FixedNav } from './FixedNav.js';
|
|
18
|
+
export { default as Indicator } from './Indicator.js';
|
|
19
|
+
export { default as Menu } from './Menu.js';
|
|
20
|
+
export { default as MenuItem } from './MenuItem.js';
|
|
21
|
+
export { default as NavBar } from './NavBar.js';
|
|
22
|
+
export { default as Pagination } from './Pagination.js';
|
|
23
|
+
export { default as SideNavBar } from './SideNavBar.js';
|
|
24
|
+
export { default as SideNavBarItem } from './SideNavBarItem.js';
|
|
25
|
+
export { default as SubSideNavBar } from './SubSideNavBar.js';
|
|
26
|
+
export { default as Tabbar } from './Tabbar.js';
|
|
27
|
+
export { default as TabbarItem } from './TabbarItem.js';
|
|
28
|
+
export { default as TabPane } from './TabPane.js';
|
|
29
|
+
export { default as Tabs } from './Tabs.js';
|
|
30
|
+
export { default as Calendar } from './Calendar.js';
|
|
31
|
+
export { default as CalendarItem } from './CalendarItem.js';
|
|
32
|
+
export { default as Cascader } from './Cascader.js';
|
|
33
|
+
export { default as Checkbox } from './Checkbox.js';
|
|
34
|
+
export { default as CheckboxGroup } from './CheckboxGroup.js';
|
|
35
|
+
export { default as DatePicker } from './DatePicker.js';
|
|
36
|
+
export { default as Form } from './Form.js';
|
|
37
|
+
export { default as FormItem } from './FormItem.js';
|
|
38
|
+
export { default as Input } from './Input.js';
|
|
39
|
+
export { default as InputNumber } from './InputNumber.js';
|
|
40
|
+
export { default as NumberKeyboard } from './NumberKeyboard.js';
|
|
41
|
+
export { default as Picker } from './Picker.js';
|
|
42
|
+
export { default as Radio } from './Radio.js';
|
|
43
|
+
export { default as RadioGroup } from './RadioGroup.js';
|
|
44
|
+
export { default as Range } from './Range.js';
|
|
45
|
+
export { default as Rate } from './Rate.js';
|
|
46
|
+
export { default as SearchBar } from './SearchBar.js';
|
|
47
|
+
export { default as ShortPassword } from './ShortPassword.js';
|
|
48
|
+
export { default as TextArea } from './TextArea.js';
|
|
49
|
+
export { default as Uploader } from './Uploader.js';
|
|
50
|
+
export { default as ActionSheet } from './ActionSheet.js';
|
|
51
|
+
export { default as BackTop } from './BackTop.js';
|
|
52
|
+
export { default as Dialog } from './Dialog.js';
|
|
53
|
+
export { default as Drag } from './Drag.js';
|
|
54
|
+
export { default as Infiniteloading } from './Infiniteloading.js';
|
|
55
|
+
export { default as Notify } from './Notify.js';
|
|
56
|
+
export { default as PullToRefresh } from './PullToRefresh.js';
|
|
57
|
+
export { default as Swipe } from './Swipe.js';
|
|
58
|
+
export { default as Switch } from './Switch.js';
|
|
59
|
+
export { default as Toast } from './Toast.js';
|
|
60
|
+
export { default as Animate } from './Animate.js';
|
|
61
|
+
export { default as AnimatingNumbers } from './AnimatingNumbers.js';
|
|
62
|
+
export { default as Audio } from './Audio.js';
|
|
63
|
+
export { default as Avatar } from './Avatar.js';
|
|
64
|
+
export { default as AvatarGroup } from './AvatarGroup.js';
|
|
65
|
+
export { default as Badge } from './Badge.js';
|
|
66
|
+
export { default as CircleProgress } from './CircleProgress.js';
|
|
67
|
+
export { default as Collapse } from './Collapse.js';
|
|
68
|
+
export { default as CollapseItem } from './CollapseItem.js';
|
|
69
|
+
export { default as CountDown } from './CountDown.js';
|
|
70
|
+
export { default as Ellipsis } from './Ellipsis.js';
|
|
71
|
+
export { default as Empty } from './Empty.js';
|
|
72
|
+
export { default as ImagePreview } from './ImagePreview.js';
|
|
73
|
+
export { default as NoticeBar } from './NoticeBar.js';
|
|
74
|
+
export { default as Popover } from './Popover.js';
|
|
75
|
+
export { default as Price } from './Price.js';
|
|
76
|
+
export { default as Progress } from './Progress.js';
|
|
77
|
+
export { default as Skeleton } from './Skeleton.js';
|
|
78
|
+
export { default as Step } from './Step.js';
|
|
79
|
+
export { default as Steps } from './Steps.js';
|
|
80
|
+
export { default as Swiper } from './Swiper.js';
|
|
81
|
+
export { default as SwiperItem } from './SwiperItem.js';
|
|
82
|
+
export { default as Table } from './Table.js';
|
|
83
|
+
export { default as Tag } from './Tag.js';
|
|
84
|
+
export { default as TrendArrow } from './TrendArrow.js';
|
|
85
|
+
export { default as Video } from './Video.js';
|
|
86
|
+
export { default as VirtualList } from './VirtualList.js';
|
|
87
|
+
export { default as WaterMark } from './WaterMark.js';
|
|
88
|
+
export { default as Address } from './Address.js';
|
|
89
|
+
export { default as Barrage } from './Barrage.js';
|
|
90
|
+
export { default as Card } from './Card.js';
|
|
91
|
+
export { default as Signature } from './Signature.js';
|
|
92
|
+
export { default as TimeDetail } from './TimeDetail.js';
|
|
93
|
+
export { default as TimePannel } from './TimePannel.js';
|
|
94
|
+
export { default as TimeSelect } from './TimeSelect.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
var handleClick = function handleClick(e) {
|
|
3
|
+
e.stopPropagation();
|
|
4
|
+
var isIcon = e.target.className.includes('arrow-icon');
|
|
5
|
+
var isTitle = e.target.className.includes('__title') || isIcon;
|
|
6
|
+
var currentClass = e.currentTarget.className;
|
|
7
|
+
var isShow = currentClass.includes('nutShow');
|
|
8
|
+
var arrowIcon = e.currentTarget.querySelector('.arrow-icon');
|
|
9
|
+
var iconClass = arrowIcon.className;
|
|
10
|
+
if (isTitle) {
|
|
11
|
+
e.currentTarget.className = isShow ? currentClass.replace('nutShow', 'nutHide') : currentClass.replace('nutHide', 'nutShow');
|
|
12
|
+
arrowIcon.className = isShow ? iconClass.replace('arrow-down', 'arrow-up') : iconClass.replace('arrow-up', 'arrow-down');
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var OffsetContext = createContext(20);
|
|
16
|
+
export { OffsetContext as O, handleClick as h };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["children", "zIndex", "duration", "overlayClass", "closeOnClickOverlay", "visible", "lockScroll", "overlayStyle"];
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
+
import React__default, { useState, useRef, useEffect } from 'react';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
10
|
+
var defaultOverlayProps = {
|
|
11
|
+
zIndex: 1000,
|
|
12
|
+
duration: 0.3,
|
|
13
|
+
overlayClass: '',
|
|
14
|
+
closeOnClickOverlay: true,
|
|
15
|
+
visible: false,
|
|
16
|
+
lockScroll: true,
|
|
17
|
+
overlayStyle: {}
|
|
18
|
+
};
|
|
19
|
+
var Overlay = function Overlay(props) {
|
|
20
|
+
var _defaultOverlayProps$ = _objectSpread(_objectSpread({}, defaultOverlayProps), props),
|
|
21
|
+
children = _defaultOverlayProps$.children,
|
|
22
|
+
zIndex = _defaultOverlayProps$.zIndex,
|
|
23
|
+
duration = _defaultOverlayProps$.duration,
|
|
24
|
+
overlayClass = _defaultOverlayProps$.overlayClass,
|
|
25
|
+
closeOnClickOverlay = _defaultOverlayProps$.closeOnClickOverlay,
|
|
26
|
+
visible = _defaultOverlayProps$.visible,
|
|
27
|
+
lockScroll = _defaultOverlayProps$.lockScroll,
|
|
28
|
+
overlayStyle = _defaultOverlayProps$.overlayStyle,
|
|
29
|
+
rest = _objectWithoutProperties(_defaultOverlayProps$, _excluded);
|
|
30
|
+
var _useState = useState(visible),
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
show = _useState2[0],
|
|
33
|
+
setShow = _useState2[1];
|
|
34
|
+
var renderRef = useRef(true);
|
|
35
|
+
var intervalRef = useRef(0);
|
|
36
|
+
useEffect(function () {
|
|
37
|
+
visible && setShow(visible);
|
|
38
|
+
lock();
|
|
39
|
+
}, [visible]);
|
|
40
|
+
useEffect(function () {
|
|
41
|
+
return function () {
|
|
42
|
+
clearTimeout(intervalRef.current);
|
|
43
|
+
document.body.classList.remove('nut-overflow-hidden');
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
46
|
+
var b = cn('overlay');
|
|
47
|
+
var classes = classNames({
|
|
48
|
+
'overlay-fade-leave-active': !renderRef.current && !visible,
|
|
49
|
+
'overlay-fade-enter-active': visible,
|
|
50
|
+
'first-render': renderRef.current && !visible,
|
|
51
|
+
'hidden-render': !visible
|
|
52
|
+
}, overlayClass, b(''));
|
|
53
|
+
var styles = _objectSpread({
|
|
54
|
+
zIndex: zIndex,
|
|
55
|
+
animationDuration: "".concat(props.duration, "s")
|
|
56
|
+
}, overlayStyle);
|
|
57
|
+
var lock = function lock() {
|
|
58
|
+
if (lockScroll && visible) {
|
|
59
|
+
document.body.classList.add('nut-overflow-hidden');
|
|
60
|
+
} else {
|
|
61
|
+
document.body.classList.remove('nut-overflow-hidden');
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var handleClick = function handleClick(e) {
|
|
65
|
+
if (closeOnClickOverlay) {
|
|
66
|
+
props.onClick && props.onClick(e);
|
|
67
|
+
renderRef.current = false;
|
|
68
|
+
var id = window.setTimeout(function () {
|
|
69
|
+
setShow(!visible);
|
|
70
|
+
}, duration * 1000 * 0.8);
|
|
71
|
+
intervalRef.current = id;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", _objectSpread(_objectSpread({
|
|
75
|
+
className: classes,
|
|
76
|
+
style: styles
|
|
77
|
+
}, rest), {}, {
|
|
78
|
+
onClick: handleClick
|
|
79
|
+
}), children));
|
|
80
|
+
};
|
|
81
|
+
Overlay.defaultProps = defaultOverlayProps;
|
|
82
|
+
Overlay.displayName = 'NutOverlay';
|
|
83
|
+
export { Overlay as O, defaultOverlayProps as d };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
+
var _excluded = ["className", "disabled", "checked", "shape", "textPosition", "value", "iconName", "iconActiveName", "iconSize", "onChange", "iconClassPrefix", "iconFontClassName"];
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
+
import React__default, { useState, useContext, useEffect } from 'react';
|
|
8
|
+
import Icon from './Icon.js';
|
|
9
|
+
import RadioGroup from './RadioGroup.js';
|
|
10
|
+
import { C as ComponentDefaults } from './typings-f27b58f4.js';
|
|
11
|
+
var radioContext = {
|
|
12
|
+
onChange: function onChange(val) {}
|
|
13
|
+
};
|
|
14
|
+
var RadioContext = React__default.createContext(radioContext);
|
|
15
|
+
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
16
|
+
className: '',
|
|
17
|
+
style: {},
|
|
18
|
+
disabled: false,
|
|
19
|
+
checked: false,
|
|
20
|
+
shape: 'round',
|
|
21
|
+
value: '',
|
|
22
|
+
textPosition: 'right',
|
|
23
|
+
iconName: 'check-normal',
|
|
24
|
+
iconActiveName: 'check-checked',
|
|
25
|
+
iconSize: 18,
|
|
26
|
+
onChange: function onChange(e) {}
|
|
27
|
+
});
|
|
28
|
+
var Radio = function Radio(props) {
|
|
29
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
30
|
+
children = _defaultProps$props.children;
|
|
31
|
+
var className = props.className,
|
|
32
|
+
disabled = props.disabled,
|
|
33
|
+
checked = props.checked,
|
|
34
|
+
shape = props.shape,
|
|
35
|
+
textPosition = props.textPosition,
|
|
36
|
+
value = props.value,
|
|
37
|
+
iconName = props.iconName,
|
|
38
|
+
iconActiveName = props.iconActiveName,
|
|
39
|
+
iconSize = props.iconSize,
|
|
40
|
+
onChange = props.onChange,
|
|
41
|
+
iconClassPrefix = props.iconClassPrefix,
|
|
42
|
+
iconFontClassName = props.iconFontClassName,
|
|
43
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
44
|
+
var componentName = 'nut-radio';
|
|
45
|
+
var _useState = useState(checked),
|
|
46
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47
|
+
checkedStatement = _useState2[0],
|
|
48
|
+
setCheckedStatement = _useState2[1];
|
|
49
|
+
var _useState3 = useState(value),
|
|
50
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
51
|
+
valueStatement = _useState4[0],
|
|
52
|
+
setValueStatement = _useState4[1];
|
|
53
|
+
var _useState5 = useState(disabled),
|
|
54
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
55
|
+
disabledStatement = _useState6[0],
|
|
56
|
+
setDisabledStatement = _useState6[1];
|
|
57
|
+
var context = useContext(RadioContext);
|
|
58
|
+
useEffect(function () {
|
|
59
|
+
setDisabledStatement(disabled);
|
|
60
|
+
setValueStatement(value);
|
|
61
|
+
setCheckedStatement(checked);
|
|
62
|
+
}, [disabled, value, checked]);
|
|
63
|
+
var renderLabel = function renderLabel() {
|
|
64
|
+
return React__default.createElement("div", {
|
|
65
|
+
className: "".concat(componentName, "__label ").concat(disabledStatement ? "".concat(componentName, "__label--disabled") : '')
|
|
66
|
+
}, children);
|
|
67
|
+
};
|
|
68
|
+
var renderButton = function renderButton() {
|
|
69
|
+
return React__default.createElement("div", {
|
|
70
|
+
className: "".concat(componentName, "__button ").concat(!disabledStatement && checkedStatement && "".concat(componentName, "__button--active"), " ").concat(disabledStatement ? "".concat(componentName, "__button--disabled") : '')
|
|
71
|
+
}, children);
|
|
72
|
+
};
|
|
73
|
+
var color = function color() {
|
|
74
|
+
if (disabledStatement) {
|
|
75
|
+
return 'nut-radio__icon--disable';
|
|
76
|
+
}
|
|
77
|
+
if (checkedStatement) {
|
|
78
|
+
return 'nut-radio__icon';
|
|
79
|
+
}
|
|
80
|
+
return 'nut-radio__icon--unchecked';
|
|
81
|
+
};
|
|
82
|
+
var renderIcon = function renderIcon() {
|
|
83
|
+
var iconName = props.iconName,
|
|
84
|
+
iconSize = props.iconSize,
|
|
85
|
+
iconActiveName = props.iconActiveName;
|
|
86
|
+
return React__default.createElement(Icon, {
|
|
87
|
+
classPrefix: iconClassPrefix,
|
|
88
|
+
fontClassName: iconFontClassName,
|
|
89
|
+
name: !disabledStatement && checkedStatement ? iconActiveName : iconName,
|
|
90
|
+
size: iconSize,
|
|
91
|
+
className: color()
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
var reverseState = textPosition === 'left';
|
|
95
|
+
var renderRadioItem = function renderRadioItem() {
|
|
96
|
+
if (shape === 'button') {
|
|
97
|
+
return renderButton();
|
|
98
|
+
}
|
|
99
|
+
if (reverseState) {
|
|
100
|
+
return React__default.createElement(React__default.Fragment, null, renderLabel(), renderIcon());
|
|
101
|
+
}
|
|
102
|
+
return React__default.createElement(React__default.Fragment, null, renderIcon(), renderLabel());
|
|
103
|
+
};
|
|
104
|
+
var handleClick = function handleClick(e) {
|
|
105
|
+
if (disabledStatement || checkedStatement) return;
|
|
106
|
+
setCheckedStatement(!checkedStatement);
|
|
107
|
+
onChange && onChange(e);
|
|
108
|
+
context && context.onChange(valueStatement);
|
|
109
|
+
};
|
|
110
|
+
return React__default.createElement("div", _objectSpread({
|
|
111
|
+
className: "nut-radio ".concat(className, " ").concat(reverseState ? "".concat(componentName, "--reverse") : ''),
|
|
112
|
+
onClick: handleClick
|
|
113
|
+
}, rest), renderRadioItem());
|
|
114
|
+
};
|
|
115
|
+
Radio.defaultProps = defaultProps;
|
|
116
|
+
Radio.displayName = 'NutRadio';
|
|
117
|
+
Radio.RadioGroup = RadioGroup;
|
|
118
|
+
export { Radio as R, RadioContext as a };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
+
import * as ReactDOM from 'react-dom';
|
|
8
|
+
|
|
9
|
+
// Let compiler not to search module usage
|
|
10
|
+
var fullClone = _objectSpread({}, ReactDOM);
|
|
11
|
+
var version = fullClone.version,
|
|
12
|
+
reactRender = fullClone.render,
|
|
13
|
+
unmountComponentAtNode = fullClone.unmountComponentAtNode;
|
|
14
|
+
var createRoot;
|
|
15
|
+
try {
|
|
16
|
+
var mainVersion = Number((version || '').split('.')[0]);
|
|
17
|
+
if (mainVersion >= 18 && fullClone.createRoot) {
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
19
|
+
createRoot = fullClone.createRoot;
|
|
20
|
+
}
|
|
21
|
+
} catch (e) {
|
|
22
|
+
// Do nothing;
|
|
23
|
+
}
|
|
24
|
+
function toggleWarning(skip) {
|
|
25
|
+
var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
26
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && _typeof(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === 'object') {
|
|
27
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
var MARK = '__nutui_react_root__';
|
|
31
|
+
function legacyRender(node, container) {
|
|
32
|
+
reactRender(node, container);
|
|
33
|
+
}
|
|
34
|
+
function concurrentRender(node, container) {
|
|
35
|
+
toggleWarning(true);
|
|
36
|
+
var root = container[MARK] || createRoot(container);
|
|
37
|
+
toggleWarning(false);
|
|
38
|
+
root.render(node);
|
|
39
|
+
container[MARK] = root;
|
|
40
|
+
}
|
|
41
|
+
function render(node, container) {
|
|
42
|
+
if (createRoot) {
|
|
43
|
+
concurrentRender(node, container);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
legacyRender(node, container);
|
|
47
|
+
}
|
|
48
|
+
// ========================== Unmount =========================
|
|
49
|
+
function legacyUnmount(container) {
|
|
50
|
+
return unmountComponentAtNode(container);
|
|
51
|
+
}
|
|
52
|
+
function concurrentUnmount(_x) {
|
|
53
|
+
return _concurrentUnmount.apply(this, arguments);
|
|
54
|
+
}
|
|
55
|
+
function _concurrentUnmount() {
|
|
56
|
+
_concurrentUnmount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(container) {
|
|
57
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
58
|
+
while (1) switch (_context.prev = _context.next) {
|
|
59
|
+
case 0:
|
|
60
|
+
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
61
|
+
var _container$MARK;
|
|
62
|
+
(_container$MARK = container[MARK]) === null || _container$MARK === void 0 ? void 0 : _container$MARK.unmount();
|
|
63
|
+
delete container[MARK];
|
|
64
|
+
}));
|
|
65
|
+
case 1:
|
|
66
|
+
case "end":
|
|
67
|
+
return _context.stop();
|
|
68
|
+
}
|
|
69
|
+
}, _callee);
|
|
70
|
+
}));
|
|
71
|
+
return _concurrentUnmount.apply(this, arguments);
|
|
72
|
+
}
|
|
73
|
+
function unmount(container) {
|
|
74
|
+
if (createRoot) {
|
|
75
|
+
return concurrentUnmount(container);
|
|
76
|
+
}
|
|
77
|
+
return legacyUnmount(container);
|
|
78
|
+
}
|
|
79
|
+
export { render as r, unmount as u };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
7
|
+
var defaultProps = {
|
|
8
|
+
title: '',
|
|
9
|
+
paneKey: '',
|
|
10
|
+
activeKey: '',
|
|
11
|
+
disabled: false
|
|
12
|
+
};
|
|
13
|
+
var TabPane = function TabPane(props) {
|
|
14
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
15
|
+
children = _defaultProps$props.children,
|
|
16
|
+
paneKey = _defaultProps$props.paneKey,
|
|
17
|
+
activeKey = _defaultProps$props.activeKey,
|
|
18
|
+
autoHeightClassName = _defaultProps$props.autoHeightClassName,
|
|
19
|
+
className = _defaultProps$props.className,
|
|
20
|
+
disabled = _defaultProps$props.disabled;
|
|
21
|
+
var b = cn('tabpane');
|
|
22
|
+
var classes = classNames({
|
|
23
|
+
active: !disabled && paneKey === activeKey
|
|
24
|
+
}, b(''), autoHeightClassName, className);
|
|
25
|
+
return React__default.createElement("div", {
|
|
26
|
+
className: classes
|
|
27
|
+
}, !disabled && children);
|
|
28
|
+
};
|
|
29
|
+
export { TabPane as T };
|