@nutui/nutui-react-taro 1.5.1-beta.0 → 2.0.0-alpha.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 +1 -25
- package/dist/esm/ActionSheet.js +6 -6
- package/dist/esm/Address/style/index.js +0 -1
- package/dist/esm/Address.js +11 -12
- package/dist/esm/Audio/style/index.js +0 -1
- package/dist/esm/Audio.js +11 -12
- package/dist/esm/Avatar.js +2 -3
- package/dist/esm/AvatarGroup.js +3 -3
- package/dist/esm/BackTop/style/index.js +1 -1
- package/dist/esm/BackTop.js +4 -5
- package/dist/esm/Badge.js +2 -3
- package/dist/esm/Button/style/index.js +1 -1
- package/dist/esm/Button.js +4 -5
- package/dist/esm/Calendar.js +10 -10
- package/dist/esm/CalendarItem.js +4 -4
- package/dist/esm/Card.js +4 -4
- package/dist/esm/Cascader.js +7 -7
- package/dist/esm/Cell/style/index.js +1 -1
- package/dist/esm/Cell.js +3 -6
- package/dist/esm/CellGroup.js +3 -3
- package/dist/esm/Checkbox/style/index.js +0 -1
- package/dist/esm/Checkbox.js +3 -3
- package/dist/esm/CheckboxGroup.js +3 -3
- package/dist/esm/Collapse.js +1 -1
- package/dist/esm/CollapseItem/style/index.js +1 -1
- package/dist/esm/CollapseItem.js +1 -3
- package/dist/esm/ConfigProvider.js +3 -2
- package/dist/esm/CountDown.js +3 -3
- package/dist/esm/DatePicker.js +10 -12
- package/dist/esm/Dialog.js +6 -8
- package/dist/esm/Divider.js +1 -3
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Ellipsis.js +4 -4
- package/dist/esm/Empty.js +3 -3
- package/dist/esm/FixedNav/style/index.js +0 -1
- package/dist/esm/FixedNav.js +6 -8
- package/dist/esm/Form.js +6 -9
- package/dist/esm/FormItem.js +4 -7
- package/dist/esm/Grid/style/index.js +1 -1
- package/dist/esm/Grid.js +4 -6
- package/dist/esm/GridItem.js +3 -8
- package/dist/esm/Icon.js +60 -4
- package/dist/esm/Image.js +4 -6
- package/dist/esm/ImagePreview.js +6 -6
- package/dist/esm/Indicator.js +1 -3
- package/dist/esm/Infiniteloading/style/index.js +1 -1
- package/dist/esm/Infiniteloading.js +4 -5
- package/dist/esm/Input/style/index.js +1 -1
- package/dist/esm/Input.js +5 -7
- package/dist/esm/InputNumber/style/index.js +1 -1
- package/dist/esm/InputNumber.js +4 -5
- package/dist/esm/Menu.js +3 -5
- package/dist/esm/MenuItem/style/index.js +0 -1
- package/dist/esm/MenuItem.js +6 -8
- package/dist/esm/NavBar/style/index.js +1 -1
- package/dist/esm/NavBar.js +3 -3
- package/dist/esm/NoticeBar/style/index.js +1 -1
- package/dist/esm/NoticeBar.js +4 -4
- package/dist/esm/NumberKeyboard.js +7 -7
- package/dist/esm/Overlay.js +2 -3
- package/dist/esm/Pagination.js +6 -5
- package/dist/esm/Picker.js +9 -10
- package/dist/esm/Popover/style/index.js +0 -1
- package/dist/esm/Popover.js +4 -7
- package/dist/esm/Popup/style/index.js +0 -1
- package/dist/esm/Popup.js +5 -5
- package/dist/esm/Progress/style/index.js +1 -1
- package/dist/esm/Progress.js +3 -3
- package/dist/esm/PullToRefresh.js +3 -3
- package/dist/esm/Radio/style/index.js +0 -1
- package/dist/esm/Radio.js +3 -3
- package/dist/esm/RadioGroup.js +3 -3
- package/dist/esm/Range.js +7 -7
- package/dist/esm/Rate/style/index.js +1 -1
- package/dist/esm/Rate.js +4 -5
- package/dist/esm/SearchBar/style/index.js +1 -1
- package/dist/esm/SearchBar.js +5 -5
- package/dist/esm/ShortPassword/style/index.js +0 -1
- package/dist/esm/ShortPassword.js +7 -7
- package/dist/esm/SideNavBar.js +8 -8
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature.js +7 -6
- package/dist/esm/Skeleton.js +3 -4
- package/dist/esm/Step/style/index.js +1 -1
- package/dist/esm/Step.js +2 -3
- package/dist/esm/Sticky.js +3 -4
- package/dist/esm/SubSideNavBar.js +1 -1
- package/dist/esm/Swipe.js +3 -3
- package/dist/esm/TabbarItem/style/index.js +1 -1
- package/dist/esm/TabbarItem.js +2 -3
- package/dist/esm/Table/style/index.js +1 -1
- package/dist/esm/Table.js +5 -5
- package/dist/esm/Tabs/style/index.js +1 -2
- package/dist/esm/Tabs.js +3 -3
- package/dist/esm/Tag/style/index.js +1 -1
- package/dist/esm/Tag.js +3 -5
- package/dist/esm/TextArea.js +3 -3
- package/dist/esm/TimeDetail.js +3 -3
- package/dist/esm/TimePannel.js +3 -3
- package/dist/esm/TimeSelect.js +10 -10
- package/dist/esm/Toast/style/index.js +1 -1
- package/dist/esm/Toast.js +2 -2
- package/dist/esm/TrendArrow/style/index.js +1 -1
- package/dist/esm/TrendArrow.js +2 -2
- package/dist/esm/Uploader/style/index.js +0 -1
- package/dist/esm/Uploader.js +8 -8
- package/dist/esm/Video.js +1 -1
- package/dist/esm/VirtualList.js +3 -3
- package/dist/esm/WaterMark.js +3 -3
- package/dist/esm/{actionsheet.taro-e6a51446.js → actionsheet.taro-b76a342e.js} +5 -5
- package/dist/esm/{address.taro-3a9b6396.js → address.taro-1812caeb.js} +24 -24
- package/dist/esm/{audio.taro-87ec8bf2.js → audio.taro-f672a68c.js} +7 -6
- package/dist/esm/{avatar.taro-3676f38f.js → avatar.taro-de157a1f.js} +8 -6
- package/dist/esm/{avatargroup-f3574510.js → avatargroup-b476ac68.js} +1 -1
- package/dist/esm/backtop.taro-ba271b8f.js +52 -0
- package/dist/esm/{badge.taro-a4e59c11.js → badge.taro-ae154f41.js} +4 -6
- package/dist/esm/button.taro-a1c9512f.js +65 -0
- package/dist/esm/{calendar.taro-670842ea.js → calendar.taro-b6b147ca.js} +3 -3
- package/dist/esm/{calendaritem.taro-2a603571.js → calendaritem.taro-ae167e59.js} +3 -3
- package/dist/esm/{card.taro-e4c76dad.js → card.taro-5e9b34c8.js} +1 -1
- package/dist/esm/{cascader.taro-eb1fb011.js → cascader.taro-9c0a1a38.js} +17 -8
- package/dist/esm/cell.taro-26870740.js +43 -0
- package/dist/esm/cellgroup.taro-6e901b54.js +24 -0
- package/dist/esm/{checkbox.taro-6120e3e3.js → checkbox.taro-785c528b.js} +10 -13
- package/dist/esm/{collapse.taro-1a9e4ba2.js → collapse.taro-35a8a0d6.js} +3 -7
- package/dist/esm/{collapseitem-4d0bc55d.js → collapseitem-690eb91c.js} +6 -21
- package/dist/esm/{configprovider-67d19d3a.js → configprovider-9960f0fb.js} +1 -1
- package/dist/esm/{configprovider.taro-8d71eb49.js → configprovider.taro-c8c54556.js} +5 -2
- package/dist/esm/{countdown.taro-dbcb9a4f.js → countdown.taro-0e6bf7a2.js} +1 -1
- package/dist/esm/{datepicker.taro-6e9b4b8f.js → datepicker.taro-439e2080.js} +3 -3
- package/dist/esm/{dialog.taro-a3267d29.js → dialog.taro-00ac41fd.js} +5 -5
- package/dist/esm/divider.taro-6c1657ce.js +31 -0
- package/dist/esm/{elevator.taro-6019669e.js → elevator.taro-81a11ecc.js} +1 -1
- package/dist/esm/{ellipsis.taro-f15f26da.js → ellipsis.taro-b6cda065.js} +2 -2
- package/dist/esm/{empty.taro-04ae4389.js → empty.taro-fde835ca.js} +1 -1
- package/dist/esm/fixednav.taro-39fbd47a.js +54 -0
- package/dist/esm/{form.taro-0c8e7a39.js → form.taro-0d83f1e8.js} +3 -3
- package/dist/esm/{formitem.taro-190a3326.js → formitem.taro-0de07d1e.js} +2 -2
- package/dist/esm/{grid.taro-3503b82c.js → grid.taro-3797169c.js} +12 -24
- package/dist/esm/griditem.taro-04f59ae1.js +80 -0
- package/dist/esm/{image.taro-142cf512.js → image.taro-edb572bb.js} +4 -4
- package/dist/esm/{imagepreview.taro-c50bb0a3.js → imagepreview.taro-867ee24a.js} +1 -1
- package/dist/esm/indicator.taro-c10334e8.js +30 -0
- package/dist/esm/{infiniteloading.taro-e66e3746.js → infiniteloading.taro-73c9b8ca.js} +11 -12
- package/dist/esm/{input.taro-97af6c96.js → input.taro-10ed5500.js} +18 -21
- package/dist/esm/inputnumber.taro-108c4784.js +199 -0
- package/dist/esm/{menu.taro-7e4038a1.js → menu.taro-54951911.js} +6 -7
- package/dist/esm/{menuitem.taro-96cc4f15.js → menuitem.taro-86a6bb6c.js} +8 -10
- package/dist/esm/{navbar.taro-777c4705.js → navbar.taro-69f47d51.js} +8 -10
- package/dist/esm/{noticebar.taro-4a23cdee.js → noticebar.taro-49e7441f.js} +10 -31
- package/dist/esm/{numberkeyboard.taro-1bc24744.js → numberkeyboard.taro-81b36e5e.js} +2 -2
- package/dist/esm/nutui-react.es.js +86 -87
- package/dist/esm/{overlay.taro-21e87fb1.js → overlay.taro-ad0d4775.js} +20 -14
- package/dist/esm/pagination.taro-60b22b27.js +91 -0
- package/dist/esm/{picker.taro-9ad1b7c5.js → picker.taro-5c9030a7.js} +110 -160
- package/dist/esm/{popover.taro-ad5e76ea.js → popover.taro-2a57eae4.js} +12 -15
- package/dist/esm/{popup.taro-01676bff.js → popup.taro-124b9bab.js} +15 -10
- package/dist/esm/{progress.taro-f0ce38e9.js → progress.taro-24392ef3.js} +5 -7
- package/dist/esm/{pulltorefresh.taro-a294f656.js → pulltorefresh.taro-d5fcfcb0.js} +1 -1
- package/dist/esm/{radio.taro-a6eff96c.js → radio.taro-51e10152.js} +16 -7
- package/dist/esm/{range.taro-d8fc7656.js → range.taro-7a2b6ca1.js} +4 -4
- package/dist/esm/rate.taro-57341aa9.js +77 -0
- package/dist/esm/{searchbar.taro-0c25927b.js → searchbar.taro-eef468bb.js} +7 -7
- package/dist/esm/{shortpassword.taro-9ee034f7.js → shortpassword.taro-9a2c98ad.js} +17 -9
- package/dist/esm/{sidenavbar.taro-c307b35e.js → sidenavbar.taro-0265812f.js} +2 -2
- package/dist/esm/{sidenavbaritem.taro-5a7965d0.js → sidenavbaritem.taro-bb80dbf4.js} +2 -2
- package/dist/esm/{signature.taro-ec4e713b.js → signature.taro-f01b2b05.js} +2 -2
- package/dist/esm/{skeleton.taro-76faf63f.js → skeleton.taro-64e858a2.js} +1 -1
- package/dist/esm/{step.taro-b7903e8c.js → step.taro-2ec1f283.js} +5 -6
- package/dist/esm/{sticky.taro-218bda37.js → sticky.taro-b5bde7b1.js} +15 -17
- package/dist/esm/{subsidenavbar.taro-69cb9752.js → subsidenavbar.taro-3cce8442.js} +2 -2
- package/dist/esm/{swipe.taro-ea35f07f.js → swipe.taro-350c9a94.js} +2 -2
- package/dist/esm/{tabbaritem.taro-bf517487.js → tabbaritem.taro-42ba353f.js} +4 -7
- package/dist/esm/{table.taro-91fc0c01.js → table.taro-3946697c.js} +7 -5
- package/dist/esm/{tabs.taro-6a7524a4.js → tabs.taro-be8cacb5.js} +4 -4
- package/dist/esm/{tag.taro-23ba0834.js → tag.taro-0c2567de.js} +10 -10
- package/dist/esm/{textarea.taro-442e7350.js → textarea.taro-a0f79515.js} +1 -1
- package/dist/esm/{timedetail.taro-5b2f2269.js → timedetail.taro-fce4e614.js} +1 -1
- package/dist/esm/{timepannel.taro-d6e40180.js → timepannel.taro-fd3d008d.js} +1 -1
- package/dist/esm/{timeselect.taro-a07036f4.js → timeselect.taro-5b047850.js} +6 -6
- package/dist/esm/{toast.taro-d6c14811.js → toast.taro-e4f44812.js} +6 -7
- package/dist/esm/{trendarrow.taro-b8c5ccd9.js → trendarrow.taro-7cf90def.js} +5 -8
- package/dist/esm/typings-d8491423.js +6 -0
- package/dist/esm/{uploader.taro-c615fd4c.js → uploader.taro-0cca7e97.js} +24 -23
- package/dist/esm/use-props-value-ae7ee726.js +15 -0
- package/dist/esm/{video-f1be8a91.js → video-7ed508cc.js} +4 -4
- package/dist/esm/{virtuallist.taro-f0b0270d.js → virtuallist.taro-35b9bd9a.js} +2 -2
- package/dist/esm/{watermark.taro-9ce2ae37.js → watermark.taro-c780d360.js} +1 -1
- package/dist/esm/{zh-CN-c779e6c1.js → zh-CN-b4f493ba.js} +2 -2
- package/dist/locales/base.d.ts +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +3 -3
- package/dist/locales/id-ID.js +3 -3
- package/dist/locales/zh-CN.js +3 -3
- package/dist/locales/zh-TW.js +3 -3
- package/dist/locales/zh-UG.js +3 -3
- package/dist/nutui.react.mjs +7825 -5006
- package/dist/nutui.react.umd.js +7822 -5003
- package/dist/packages/actionsheet/actionsheet.scss +10 -2
- package/dist/packages/backtop/backtop.scss +0 -8
- package/dist/packages/badge/badge.scss +3 -4
- package/dist/packages/button/button.scss +80 -93
- package/dist/packages/cell/cell.scss +18 -90
- package/dist/packages/cellgroup/cellgroup.scss +26 -20
- package/dist/packages/collapseitem/collapseitem.scss +0 -1
- package/dist/packages/dialog/dialog.scss +1 -1
- package/dist/packages/divider/divider.scss +3 -17
- package/dist/packages/grid/grid.scss +1 -0
- package/dist/packages/griditem/griditem.scss +2 -17
- package/dist/packages/icon/icon.scss +0 -132
- package/dist/packages/image/image.scss +0 -12
- package/dist/packages/indicator/indicator.scss +21 -39
- package/dist/packages/infiniteloading/infiniteloading.scss +4 -12
- package/dist/packages/input/input.scss +4 -0
- package/dist/packages/inputnumber/inputnumber.scss +10 -26
- package/dist/packages/menuitem/menuitem.scss +2 -0
- package/dist/packages/navbar/navbar.scss +4 -5
- package/dist/packages/overlay/overlay.scss +0 -19
- package/dist/packages/picker/picker.scss +97 -103
- package/dist/packages/progress/progress.scss +0 -1
- package/dist/packages/radio/radio.scss +8 -0
- package/dist/packages/rate/rate.scss +29 -6
- package/dist/packages/searchbar/searchbar.scss +0 -1
- package/dist/packages/shortpassword/shortpassword.scss +4 -1
- package/dist/packages/step/step.scss +0 -1
- package/dist/packages/sticky/sticky.scss +1 -1
- package/dist/packages/swiper/swiper.scss +8 -0
- package/dist/packages/tabbaritem/tabbaritem.scss +0 -1
- package/dist/packages/table/table.scss +0 -1
- package/dist/packages/tag/tag.scss +9 -2
- package/dist/packages/timedetail/timedetail.scss +9 -3
- package/dist/packages/timeselect/timeselect.scss +1 -1
- package/dist/packages/toast/toast.scss +0 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/font-jmapp/config.json +175 -0
- package/dist/styles/font-jmapp/demo.css +539 -0
- package/dist/styles/font-jmapp/demo_index.html +1821 -0
- package/dist/styles/font-jmapp/iconfont.css +299 -0
- package/dist/styles/font-jmapp/iconfont.eot +0 -0
- package/dist/styles/font-jmapp/iconfont.js +68 -0
- package/dist/styles/font-jmapp/iconfont.json +506 -0
- package/dist/styles/font-jmapp/iconfont.svg +356 -0
- package/dist/styles/font-jmapp/iconfont.ttf +0 -0
- package/dist/styles/font-jmapp/iconfont.woff +0 -0
- package/dist/styles/font-jmapp/iconfont.woff2 +0 -0
- package/dist/styles/theme-default.scss +1 -0
- package/dist/styles/theme-jmapp.scss +41 -0
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/variables-jmapp.scss +2601 -0
- package/dist/styles/variables.scss +49 -73
- package/dist/types/index.d.ts +146 -243
- package/package.json +23 -154
- package/dist/esm/Icon/style/index.js +0 -4
- package/dist/esm/backtop.taro-66394a36.js +0 -48
- package/dist/esm/button.taro-9244d065.js +0 -100
- package/dist/esm/cell.taro-a10a74d3.js +0 -64
- package/dist/esm/cellgroup.taro-abe501bc.js +0 -25
- package/dist/esm/divider.taro-26d1d8b4.js +0 -35
- package/dist/esm/fixednav.taro-1f05acaf.js +0 -53
- package/dist/esm/grid.taro.context-c2bbfb4f.js +0 -8
- 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/indicator.taro-cba8b010.js +0 -37
- package/dist/esm/inputnumber.taro-91f65d17.js +0 -130
- package/dist/esm/pagination.taro-715a173b.js +0 -124
- package/dist/esm/rate.taro-6cdf03bd.js +0 -75
- package/dist/esm/typings-b9828dba.js +0 -9
- /package/dist/esm/{useClientRect-1f8ed1fe.js → use-client-rect-1f8ed1fe.js} +0 -0
- /package/dist/esm/{useTouch-db24bb5c.js → use-touch-db24bb5c.js} +0 -0
package/dist/esm/Signature.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { S as Signature } from './signature.taro-
|
|
1
|
+
import { S as Signature } from './signature.taro-f01b2b05.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tarojs/taro';
|
|
4
|
-
import './button.taro-
|
|
5
|
-
import '
|
|
4
|
+
import './button.taro-a1c9512f.js';
|
|
5
|
+
import 'classnames';
|
|
6
|
+
import '@nutui/icons-react-taro';
|
|
7
|
+
import './typings-d8491423.js';
|
|
6
8
|
import './bem-350c1702.js';
|
|
7
9
|
import '@bem-react/classname';
|
|
8
|
-
import './
|
|
9
|
-
import './configprovider.taro-8d71eb49.js';
|
|
10
|
+
import './configprovider.taro-c8c54556.js';
|
|
10
11
|
import 'lodash.kebabcase';
|
|
11
|
-
import './zh-CN-
|
|
12
|
+
import './zh-CN-b4f493ba.js';
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
package/dist/esm/Skeleton.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { S as Skeleton } from './skeleton.taro-
|
|
1
|
+
import { S as Skeleton } from './skeleton.taro-64e858a2.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import './avatar.taro-
|
|
4
|
+
import './avatar.taro-de157a1f.js';
|
|
5
5
|
import '@tarojs/components';
|
|
6
6
|
import './AvatarContext-c96afdcc.js';
|
|
7
7
|
import './bem-350c1702.js';
|
|
8
8
|
import '@bem-react/classname';
|
|
9
|
-
import './
|
|
10
|
-
import './typings-b9828dba.js';
|
|
9
|
+
import './typings-d8491423.js';
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import '../../../packages/step/step.scss'
|
package/dist/esm/Step.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { S as Step } from './step.taro-
|
|
1
|
+
import { S as Step } from './step.taro-2ec1f283.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import './UserContext-e402e1a6.js';
|
|
5
5
|
import './bem-350c1702.js';
|
|
6
6
|
import '@bem-react/classname';
|
|
7
|
-
import './
|
|
8
|
-
import './typings-b9828dba.js';
|
|
7
|
+
import './typings-d8491423.js';
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
|
package/dist/esm/Sticky.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { S as Sticky } from './sticky.taro-
|
|
1
|
+
import { S as Sticky } from './sticky.taro-b5bde7b1.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
|
-
import './
|
|
5
|
+
import './typings-d8491423.js';
|
|
6
|
+
import './use-client-rect-1f8ed1fe.js';
|
|
6
7
|
import './get-scroll-parent-b4a07e65.js';
|
|
7
8
|
import './can-use-dom-3eeb5af4.js';
|
|
8
|
-
import './bem-350c1702.js';
|
|
9
|
-
import '@bem-react/classname';
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
|
package/dist/esm/Swipe.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as Swipe } from './swipe.taro-
|
|
1
|
+
import { S as Swipe } from './swipe.taro-350c9a94.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
5
|
import './bem-350c1702.js';
|
|
6
6
|
import '@bem-react/classname';
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
7
|
+
import './use-touch-db24bb5c.js';
|
|
8
|
+
import './use-client-rect-1f8ed1fe.js';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import '../../../packages/tabbaritem/tabbaritem.scss'
|
package/dist/esm/TabbarItem.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { T as TabbarItem } from './tabbaritem.taro-
|
|
1
|
+
import { T as TabbarItem } from './tabbaritem.taro-42ba353f.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tarojs/taro';
|
|
4
4
|
import './bem-350c1702.js';
|
|
5
5
|
import '@bem-react/classname';
|
|
6
|
-
import './
|
|
7
|
-
import './typings-b9828dba.js';
|
|
6
|
+
import './typings-d8491423.js';
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import '../../../packages/table/table.scss'
|
package/dist/esm/Table.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { T as Table } from './table.taro-
|
|
1
|
+
import { T as Table } from './table.taro-3946697c.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
+
import '@nutui/icons-react-taro';
|
|
4
5
|
import './bem-350c1702.js';
|
|
5
6
|
import '@bem-react/classname';
|
|
6
|
-
import './
|
|
7
|
-
import './configprovider.taro-8d71eb49.js';
|
|
7
|
+
import './configprovider.taro-c8c54556.js';
|
|
8
8
|
import 'lodash.kebabcase';
|
|
9
|
-
import './zh-CN-
|
|
10
|
-
import './typings-
|
|
9
|
+
import './zh-CN-b4f493ba.js';
|
|
10
|
+
import './typings-d8491423.js';
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
package/dist/esm/Tabs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as Tabs } from './tabs.taro-
|
|
1
|
+
import { T as Tabs } from './tabs.taro-be8cacb5.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
+
import '@nutui/icons-react-taro';
|
|
4
5
|
import './bem-350c1702.js';
|
|
5
6
|
import '@bem-react/classname';
|
|
6
|
-
import './
|
|
7
|
-
import './typings-b9828dba.js';
|
|
7
|
+
import './typings-d8491423.js';
|
|
8
8
|
import './tabpane.taro-4ca340ef.js';
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import '../../../packages/tag/tag.scss'
|
package/dist/esm/Tag.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { T as Tag } from './tag.taro-
|
|
1
|
+
import { T as Tag } from './tag.taro-0c2567de.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import '@nutui/icons-react-taro';
|
|
3
4
|
import 'classnames';
|
|
4
|
-
import './
|
|
5
|
-
import './bem-350c1702.js';
|
|
6
|
-
import '@bem-react/classname';
|
|
7
|
-
import './typings-b9828dba.js';
|
|
5
|
+
import './typings-d8491423.js';
|
|
8
6
|
|
|
9
7
|
|
|
10
8
|
|
package/dist/esm/TextArea.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as TextArea } from './textarea.taro-
|
|
1
|
+
import { T as TextArea } from './textarea.taro-a0f79515.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './configprovider.taro-
|
|
3
|
+
import './configprovider.taro-c8c54556.js';
|
|
4
4
|
import 'lodash.kebabcase';
|
|
5
|
-
import './zh-CN-
|
|
5
|
+
import './zh-CN-b4f493ba.js';
|
|
6
6
|
import './bem-350c1702.js';
|
|
7
7
|
import '@bem-react/classname';
|
|
8
8
|
|
package/dist/esm/TimeDetail.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as TimeDetail } from './timedetail.taro-
|
|
1
|
+
import { T as TimeDetail } from './timedetail.taro-fce4e614.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './bem-350c1702.js';
|
|
4
4
|
import '@bem-react/classname';
|
|
5
|
-
import './configprovider.taro-
|
|
5
|
+
import './configprovider.taro-c8c54556.js';
|
|
6
6
|
import 'lodash.kebabcase';
|
|
7
|
-
import './zh-CN-
|
|
7
|
+
import './zh-CN-b4f493ba.js';
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
package/dist/esm/TimePannel.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as TimePannel } from './timepannel.taro-
|
|
1
|
+
import { T as TimePannel } from './timepannel.taro-fd3d008d.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './bem-350c1702.js';
|
|
4
4
|
import '@bem-react/classname';
|
|
5
|
-
import './configprovider.taro-
|
|
5
|
+
import './configprovider.taro-c8c54556.js';
|
|
6
6
|
import 'lodash.kebabcase';
|
|
7
|
-
import './zh-CN-
|
|
7
|
+
import './zh-CN-b4f493ba.js';
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
package/dist/esm/TimeSelect.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { T as TimeSelect } from './timeselect.taro-
|
|
1
|
+
import { T as TimeSelect } from './timeselect.taro-5b047850.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './popup.taro-
|
|
3
|
+
import './popup.taro-124b9bab.js';
|
|
4
4
|
import 'react-dom';
|
|
5
5
|
import 'react-transition-group';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import '
|
|
7
|
+
import '@nutui/icons-react-taro';
|
|
8
|
+
import './overlay.taro-ad0d4775.js';
|
|
9
|
+
import '@tarojs/components';
|
|
10
|
+
import './typings-d8491423.js';
|
|
8
11
|
import './bem-350c1702.js';
|
|
9
12
|
import '@bem-react/classname';
|
|
10
|
-
import '
|
|
11
|
-
import './
|
|
12
|
-
import './typings-b9828dba.js';
|
|
13
|
-
import './timepannel.taro-d6e40180.js';
|
|
14
|
-
import './configprovider.taro-8d71eb49.js';
|
|
13
|
+
import './timepannel.taro-fd3d008d.js';
|
|
14
|
+
import './configprovider.taro-c8c54556.js';
|
|
15
15
|
import 'lodash.kebabcase';
|
|
16
|
-
import './zh-CN-
|
|
17
|
-
import './timedetail.taro-
|
|
16
|
+
import './zh-CN-b4f493ba.js';
|
|
17
|
+
import './timedetail.taro-fce4e614.js';
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import '../../../packages/toast/toast.scss'
|
package/dist/esm/Toast.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as Toast } from './toast.taro-
|
|
1
|
+
import { T as Toast } from './toast.taro-e4f44812.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
+
import '@nutui/icons-react-taro';
|
|
4
5
|
import './bem-350c1702.js';
|
|
5
6
|
import '@bem-react/classname';
|
|
6
|
-
import './icon-296a1bec.js';
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import '../../../packages/trendarrow/trendarrow.scss'
|
package/dist/esm/TrendArrow.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as TrendArrow } from './trendarrow.taro-
|
|
1
|
+
import { T as TrendArrow } from './trendarrow.taro-7cf90def.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import '@nutui/icons-react-taro';
|
|
3
4
|
import './bem-350c1702.js';
|
|
4
5
|
import '@bem-react/classname';
|
|
5
|
-
import './icon.taro-296a1bec.js';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
package/dist/esm/Uploader.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { U as Uploader } from './uploader.taro-
|
|
1
|
+
import { U as Uploader } from './uploader.taro-0cca7e97.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
|
-
import '
|
|
5
|
+
import '@nutui/icons-react-taro';
|
|
6
|
+
import '@tarojs/components';
|
|
7
|
+
import './button.taro-a1c9512f.js';
|
|
8
|
+
import './typings-d8491423.js';
|
|
9
|
+
import './progress.taro-24392ef3.js';
|
|
6
10
|
import './bem-350c1702.js';
|
|
7
11
|
import '@bem-react/classname';
|
|
8
|
-
import './
|
|
9
|
-
import './typings-b9828dba.js';
|
|
10
|
-
import './progress.taro-f0ce38e9.js';
|
|
11
|
-
import '@tarojs/components';
|
|
12
|
-
import './configprovider.taro-8d71eb49.js';
|
|
12
|
+
import './configprovider.taro-c8c54556.js';
|
|
13
13
|
import 'lodash.kebabcase';
|
|
14
|
-
import './zh-CN-
|
|
14
|
+
import './zh-CN-b4f493ba.js';
|
|
15
15
|
import './index-5bcb0ff8.js';
|
|
16
16
|
|
|
17
17
|
|
package/dist/esm/Video.js
CHANGED
package/dist/esm/VirtualList.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { V as VirtualList } from './virtuallist.taro-
|
|
1
|
+
import { V as VirtualList } from './virtuallist.taro-35b9bd9a.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tarojs/components';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
|
-
import './configprovider.taro-
|
|
5
|
+
import './configprovider.taro-c8c54556.js';
|
|
6
6
|
import 'lodash.kebabcase';
|
|
7
|
-
import './zh-CN-
|
|
7
|
+
import './zh-CN-b4f493ba.js';
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
package/dist/esm/WaterMark.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { W as WaterMark } from './watermark.taro-
|
|
1
|
+
import { W as WaterMark } from './watermark.taro-c780d360.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tarojs/taro';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import './configprovider-
|
|
5
|
+
import './configprovider.taro-c8c54556.js';
|
|
6
6
|
import 'lodash.kebabcase';
|
|
7
|
-
import './zh-CN-
|
|
7
|
+
import './zh-CN-b4f493ba.js';
|
|
8
8
|
import './bem-350c1702.js';
|
|
9
9
|
import '@bem-react/classname';
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { P as Popup } from './popup.taro-
|
|
2
|
+
import { P as Popup } from './popup.taro-124b9bab.js';
|
|
3
3
|
import { c as cn } from './bem-350c1702.js';
|
|
4
4
|
|
|
5
5
|
const defaultProps = {
|
|
6
|
-
|
|
6
|
+
cancelText: '',
|
|
7
7
|
optionTag: 'name',
|
|
8
8
|
optionSubTag: 'subname',
|
|
9
9
|
chooseTagValue: '',
|
|
@@ -18,7 +18,7 @@ const defaultProps = {
|
|
|
18
18
|
style: {},
|
|
19
19
|
};
|
|
20
20
|
const ActionSheet = (props) => {
|
|
21
|
-
const { children,
|
|
21
|
+
const { children, cancelText, optionTag, optionSubTag, chooseTagValue, title, color, description, menuItems, onCancel, onChoose, visible, className, style, ...rest } = { ...defaultProps, ...props };
|
|
22
22
|
const b = cn('actionsheet');
|
|
23
23
|
const isHighlight = (item) => {
|
|
24
24
|
return props.chooseTagValue &&
|
|
@@ -39,13 +39,13 @@ const ActionSheet = (props) => {
|
|
|
39
39
|
} },
|
|
40
40
|
React__default.createElement("div", { className: `${b()} ${className}`, style: style, ...rest },
|
|
41
41
|
title && React__default.createElement("div", { className: b('title') }, title),
|
|
42
|
-
description && (React__default.createElement("div", { className: `${b('item')}
|
|
42
|
+
description && (React__default.createElement("div", { className: `${b('item')} description` }, description)),
|
|
43
43
|
menuItems.length ? (React__default.createElement("div", { className: b('menu') }, menuItems.map((item, index) => {
|
|
44
44
|
return (React__default.createElement("div", { className: `${b('item')} ${item.disable ? b('item-disabled') : ''}`, style: { color: isHighlight(item) }, key: index, onClick: () => chooseItem(item, index) },
|
|
45
45
|
item[optionTag],
|
|
46
46
|
React__default.createElement("div", { className: "subdesc" }, item[optionSubTag])));
|
|
47
47
|
}))) : (children),
|
|
48
|
-
|
|
48
|
+
cancelText && (React__default.createElement("div", { className: b('cancel'), onClick: () => cancelActionSheet() }, cancelText)))));
|
|
49
49
|
};
|
|
50
50
|
ActionSheet.defaultProps = defaultProps;
|
|
51
51
|
ActionSheet.displayName = 'NutActionSheet';
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import React__default, { useEffect, useState, useRef } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { P as Popup } from './popup.taro-
|
|
2
|
+
import { Check, Location2, Left, CircleClose } from '@nutui/icons-react-taro';
|
|
3
|
+
import { P as Popup } from './popup.taro-124b9bab.js';
|
|
4
4
|
import { c as cn } from './bem-350c1702.js';
|
|
5
|
-
import {
|
|
6
|
-
import { u as useConfig } from './configprovider-67d19d3a.js';
|
|
5
|
+
import { u as useConfig } from './configprovider-9960f0fb.js';
|
|
7
6
|
import { createSelectorQuery } from '@tarojs/taro';
|
|
8
|
-
import { E as Elevator } from './elevator.taro-
|
|
9
|
-
import { u as useConfig$1 } from './configprovider.taro-
|
|
10
|
-
import { C as ComponentDefaults } from './typings-
|
|
7
|
+
import { E as Elevator } from './elevator.taro-81a11ecc.js';
|
|
8
|
+
import { u as useConfig$1 } from './configprovider.taro-c8c54556.js';
|
|
9
|
+
import { C as ComponentDefaults } from './typings-d8491423.js';
|
|
11
10
|
|
|
12
11
|
const defaultProps$2 = {
|
|
13
12
|
type: 'custom',
|
|
14
13
|
existAddress: [],
|
|
15
|
-
defaultIcon:
|
|
16
|
-
selectedIcon:
|
|
14
|
+
defaultIcon: null,
|
|
15
|
+
selectedIcon: null,
|
|
17
16
|
isShowCustomAddress: true,
|
|
18
17
|
customAndExistTitle: '',
|
|
19
18
|
};
|
|
@@ -42,7 +41,7 @@ const ExistRender = (props) => {
|
|
|
42
41
|
onSelected && onSelected(prevExistAdd, item, copyExistAdd);
|
|
43
42
|
};
|
|
44
43
|
// 选择其他地址
|
|
45
|
-
const
|
|
44
|
+
const onSwitch = () => {
|
|
46
45
|
onSwitchModule &&
|
|
47
46
|
onSwitchModule({ type: type === 'exist' ? 'custom' : 'exist' });
|
|
48
47
|
};
|
|
@@ -52,7 +51,7 @@ const ExistRender = (props) => {
|
|
|
52
51
|
React__default.createElement("ul", { className: b('exist-ul') }, existAddress.map((item, index) => {
|
|
53
52
|
return (React__default.createElement("li", { className: b('exist-item'), key: index },
|
|
54
53
|
React__default.createElement("div", { onClick: () => selectedExist(item) },
|
|
55
|
-
|
|
54
|
+
item.selectedAddress ? selectedIcon : defaultIcon,
|
|
56
55
|
React__default.createElement("div", { className: b('exist-item-info') },
|
|
57
56
|
item.name && item.phone && (React__default.createElement("div", { className: "exist-item-info-top" },
|
|
58
57
|
React__default.createElement("div", { className: "exist-item-info-name" }, item.name),
|
|
@@ -64,7 +63,7 @@ const ExistRender = (props) => {
|
|
|
64
63
|
item.townName +
|
|
65
64
|
item.addressDetail))))));
|
|
66
65
|
}))),
|
|
67
|
-
isShowCustomAddress && (React__default.createElement("div", { className: b('choose-other'), onClick:
|
|
66
|
+
isShowCustomAddress && (React__default.createElement("div", { className: b('choose-other'), onClick: onSwitch },
|
|
68
67
|
React__default.createElement("div", { className: b('choose-other-btn') }, customAndExistTitle || locale.address.chooseAnotherAddress)))));
|
|
69
68
|
};
|
|
70
69
|
|
|
@@ -78,7 +77,7 @@ const defaultProps$1 = {
|
|
|
78
77
|
height: '200px',
|
|
79
78
|
};
|
|
80
79
|
const CustomRender = (props) => {
|
|
81
|
-
const { locale } = useConfig();
|
|
80
|
+
const { locale } = useConfig$1();
|
|
82
81
|
const { children, type, modelValue, height, province, city, country, town, onNextArea, onTabClick, onClose, ...rest } = {
|
|
83
82
|
...defaultProps$1,
|
|
84
83
|
...props,
|
|
@@ -299,7 +298,7 @@ const CustomRender = (props) => {
|
|
|
299
298
|
} },
|
|
300
299
|
selectedRegion &&
|
|
301
300
|
selectedRegion[tabName[tabIndex]]
|
|
302
|
-
.id === item.id && (React__default.createElement(
|
|
301
|
+
.id === item.id && (React__default.createElement(Check, { className: b('region-item--icon'), color: "#FA2C19", size: "13px" })),
|
|
303
302
|
item.name)));
|
|
304
303
|
})))),
|
|
305
304
|
privateType === 'custom2' && (React__default.createElement("div", { className: b('elevator-group') },
|
|
@@ -321,14 +320,14 @@ const defaultProps = {
|
|
|
321
320
|
existAddressTitle: '',
|
|
322
321
|
customAndExistTitle: '',
|
|
323
322
|
height: '200px',
|
|
324
|
-
defaultIcon:
|
|
325
|
-
selectedIcon:
|
|
326
|
-
closeBtnIcon:
|
|
327
|
-
backBtnIcon:
|
|
323
|
+
defaultIcon: null,
|
|
324
|
+
selectedIcon: null,
|
|
325
|
+
closeBtnIcon: null,
|
|
326
|
+
backBtnIcon: null,
|
|
328
327
|
};
|
|
329
328
|
const Address = (props) => {
|
|
330
329
|
const { locale } = useConfig$1();
|
|
331
|
-
const { modelValue, modelSelect, children, type, height, customAddressTitle, existAddress, existAddressTitle, province, city, country, town, isShowCustomAddress, customAndExistTitle, selectedIcon, defaultIcon, closeBtnIcon, backBtnIcon, onChange, onSelected, onClose,
|
|
330
|
+
const { modelValue, modelSelect, children, type, height, customAddressTitle, existAddress, existAddressTitle, province, city, country, town, isShowCustomAddress, customAndExistTitle, selectedIcon, defaultIcon, closeBtnIcon, backBtnIcon, onChange, onSelected, onClose, onCancel, onSwitch, onTabChecked, style, className, ...rest } = {
|
|
332
331
|
...defaultProps,
|
|
333
332
|
...props,
|
|
334
333
|
};
|
|
@@ -349,7 +348,7 @@ const Address = (props) => {
|
|
|
349
348
|
};
|
|
350
349
|
// 点击遮罩层关闭
|
|
351
350
|
const clickOverlay = () => {
|
|
352
|
-
|
|
351
|
+
onCancel && onCancel({ closeWay: 'mask' });
|
|
353
352
|
};
|
|
354
353
|
// 切换下一级列表
|
|
355
354
|
const nextAreaList = (item) => {
|
|
@@ -425,15 +424,16 @@ const Address = (props) => {
|
|
|
425
424
|
setPrivateType('exist');
|
|
426
425
|
}
|
|
427
426
|
initAddress();
|
|
428
|
-
|
|
427
|
+
onSwitch && onSwitch({ type: privateType });
|
|
429
428
|
};
|
|
430
429
|
const headerRender = () => {
|
|
431
430
|
return (React__default.createElement("div", { className: b('header') },
|
|
432
|
-
React__default.createElement("div", { className: "arrow-back", onClick: onSwitchModule }, privateType === 'custom' &&
|
|
431
|
+
React__default.createElement("div", { className: "arrow-back", onClick: onSwitchModule }, privateType === 'custom' &&
|
|
432
|
+
(React__default.isValidElement(backBtnIcon) ? (backBtnIcon) : (React__default.createElement(Left, { color: "#cccccc" })))),
|
|
433
433
|
React__default.createElement("div", { className: b('header__title') }, privateType === 'custom'
|
|
434
434
|
? customAddressTitle || locale.address.selectRegion
|
|
435
435
|
: existAddressTitle || locale.address.deliveryTo),
|
|
436
|
-
React__default.createElement("div", { onClick: () => handClose() }, closeBtnIcon
|
|
436
|
+
React__default.createElement("div", { onClick: () => handClose() }, React__default.isValidElement(closeBtnIcon) ? (closeBtnIcon) : (React__default.createElement(CircleClose, { size: 18, color: "#ccc" })))));
|
|
437
437
|
};
|
|
438
438
|
useEffect(() => {
|
|
439
439
|
setShowPopup(modelValue);
|
|
@@ -453,7 +453,7 @@ const Address = (props) => {
|
|
|
453
453
|
}, onTabClick: (type) => {
|
|
454
454
|
onTabChecked && onTabChecked(type);
|
|
455
455
|
}, onClose: handClose })),
|
|
456
|
-
privateType === 'exist' && (React__default.createElement(ExistRender, { type: privateType, existAddress: existAddress, selectedIcon: selectedIcon, defaultIcon: defaultIcon, isShowCustomAddress: isShowCustomAddress, customAndExistTitle: customAndExistTitle || locale.address.chooseAnotherAddress, onSelected: selectedExist, onSwitchModule: onSwitchModule })))))));
|
|
456
|
+
privateType === 'exist' && (React__default.createElement(ExistRender, { type: privateType, existAddress: existAddress, selectedIcon: React__default.isValidElement(selectedIcon) ? (selectedIcon) : (React__default.createElement(Check, { color: "#FA2C19" })), defaultIcon: React__default.isValidElement(defaultIcon) ? (defaultIcon) : (React__default.createElement(Location2, null)), isShowCustomAddress: isShowCustomAddress, customAndExistTitle: customAndExistTitle || locale.address.chooseAnotherAddress, onSelected: selectedExist, onSwitchModule: onSwitchModule })))))));
|
|
457
457
|
};
|
|
458
458
|
Address.defaultProps = defaultProps;
|
|
459
459
|
Address.displayName = 'NutAddress';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React__default, { useState, useRef } from 'react';
|
|
2
2
|
import { createInnerAudioContext } from '@tarojs/taro';
|
|
3
|
-
import {
|
|
4
|
-
import { R as Range } from './range.taro-
|
|
5
|
-
import { B as Button } from './button.taro-
|
|
3
|
+
import { Service } from '@nutui/icons-react-taro';
|
|
4
|
+
import { R as Range } from './range.taro-7a2b6ca1.js';
|
|
5
|
+
import { B as Button } from './button.taro-a1c9512f.js';
|
|
6
6
|
import { c as cn } from './bem-350c1702.js';
|
|
7
|
-
import { u as useConfig } from './configprovider.taro-
|
|
8
|
-
import { C as ComponentDefaults } from './typings-
|
|
7
|
+
import { u as useConfig } from './configprovider.taro-c8c54556.js';
|
|
8
|
+
import { C as ComponentDefaults } from './typings-d8491423.js';
|
|
9
9
|
|
|
10
10
|
const b = cn('audio');
|
|
11
11
|
const warn = console.warn;
|
|
@@ -122,7 +122,8 @@ const Audio = (props) => {
|
|
|
122
122
|
const renderIcon = () => {
|
|
123
123
|
return (React__default.createElement(React__default.Fragment, null,
|
|
124
124
|
React__default.createElement("div", { className: b('icon') },
|
|
125
|
-
React__default.createElement("div", { className: `${b('icon-box')} ${playing ? b('icon-play') : b('icon-stop')}`, onClick: handleStatusChange },
|
|
125
|
+
React__default.createElement("div", { className: `${b('icon-box')} ${playing ? b('icon-play') : b('icon-stop')}`, onClick: handleStatusChange },
|
|
126
|
+
React__default.createElement(Service, { className: playing ? 'nut-icon-loading' : '' })))));
|
|
126
127
|
};
|
|
127
128
|
const renderProgerss = () => {
|
|
128
129
|
return (React__default.createElement(React__default.Fragment, null,
|
|
@@ -3,21 +3,19 @@ import classNames from 'classnames';
|
|
|
3
3
|
import { Image } from '@tarojs/components';
|
|
4
4
|
import { A as AvatarContext } from './AvatarContext-c96afdcc.js';
|
|
5
5
|
import { c as cn } from './bem-350c1702.js';
|
|
6
|
-
import {
|
|
7
|
-
import { C as ComponentDefaults } from './typings-b9828dba.js';
|
|
6
|
+
import { C as ComponentDefaults } from './typings-d8491423.js';
|
|
8
7
|
|
|
9
8
|
const defaultProps = {
|
|
10
9
|
...ComponentDefaults,
|
|
11
10
|
size: '',
|
|
12
11
|
icon: '',
|
|
13
|
-
iconSize: '',
|
|
14
12
|
bgColor: '#eee',
|
|
15
13
|
color: '#666',
|
|
16
14
|
prefixCls: 'nut-avatar',
|
|
17
15
|
url: '',
|
|
18
16
|
};
|
|
19
17
|
const Avatar = (props) => {
|
|
20
|
-
const { children, prefixCls, size, shape, bgColor, color, url, icon,
|
|
18
|
+
const { children, prefixCls, size, shape, bgColor, color, url, icon, className, style, activeAvatar, onActiveAvatar, onError, ...rest } = {
|
|
21
19
|
...defaultProps,
|
|
22
20
|
...props,
|
|
23
21
|
};
|
|
@@ -50,7 +48,6 @@ const Avatar = (props) => {
|
|
|
50
48
|
backgroundColor: `${parent?.propAvatarGroup?.maxBgColor}`,
|
|
51
49
|
color: `${parent?.propAvatarGroup?.maxColor}`,
|
|
52
50
|
};
|
|
53
|
-
const iconStyles = icon || '';
|
|
54
51
|
useEffect(() => {
|
|
55
52
|
const avatarChildren = parent?.avatarGroupRef?.current.children;
|
|
56
53
|
if (avatarChildren) {
|
|
@@ -91,7 +88,12 @@ const Avatar = (props) => {
|
|
|
91
88
|
(!parent?.propAvatarGroup?.maxCount ||
|
|
92
89
|
avatarIndex <= parent?.propAvatarGroup?.maxCount) && (React__default.createElement(React__default.Fragment, null,
|
|
93
90
|
url && (React__default.createElement(Image, { className: "avatar-img", src: url, onError: errorEvent })),
|
|
94
|
-
|
|
91
|
+
React__default.isValidElement(icon)
|
|
92
|
+
? React__default.cloneElement(icon, {
|
|
93
|
+
...icon.props,
|
|
94
|
+
className: `${icon.props.className || ''} icon`,
|
|
95
|
+
})
|
|
96
|
+
: null,
|
|
95
97
|
children && React__default.createElement("span", { className: "text" }, children))),
|
|
96
98
|
showMax && (React__default.createElement("div", { className: "text" }, parent?.propAvatarGroup?.maxContent
|
|
97
99
|
? parent?.propAvatarGroup?.maxContent
|
|
@@ -2,7 +2,7 @@ import React__default, { useRef } from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { A as AvatarContext } from './AvatarContext-c96afdcc.js';
|
|
4
4
|
import { c as cn } from './bem-350c1702.js';
|
|
5
|
-
import { u as useConfig } from './configprovider-
|
|
5
|
+
import { u as useConfig } from './configprovider-9960f0fb.js';
|
|
6
6
|
|
|
7
7
|
const defaultProps = {
|
|
8
8
|
maxContent: '',
|