@nutui/nutui-react-taro 2.1.0 → 2.1.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -20
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +3 -3
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +7 -7
- package/dist/esm/AnimatingNumbers/style/style.css +1 -1
- package/dist/esm/AnimatingNumbers.js +4 -4
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/Avatar/style/style.css +1 -1
- package/dist/esm/Avatar.js +2 -2
- package/dist/esm/AvatarCropper/style/style.css +1 -1
- package/dist/esm/AvatarCropper.js +2 -2
- package/dist/esm/BackTop/style/style.css +1 -1
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Badge.js +1 -1
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Button/style/style.css +1 -1
- package/dist/esm/Button.js +1 -1
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +6 -6
- package/dist/esm/CalendarCard/style/style.css +1 -1
- package/dist/esm/CalendarCard.js +2 -2
- package/dist/esm/CalendarItem.js +3 -3
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Card.js +3 -3
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cascader.js +5 -5
- package/dist/esm/Cell/style/style.css +1 -1
- package/dist/esm/Cell.js +2 -2
- package/dist/esm/CellGroup/style/style.css +1 -1
- package/dist/esm/CellGroup.js +1 -1
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/Checkbox.js +1 -1
- package/dist/esm/CheckboxGroup/style/style.css +1 -1
- package/dist/esm/CheckboxGroup.js +1 -1
- package/dist/esm/CircleProgress/style/style.css +1 -1
- package/dist/esm/CircleProgress.js +1 -1
- package/dist/esm/Col/style/style.css +1 -1
- package/dist/esm/Collapse/style/style.css +1 -1
- package/dist/esm/Collapse.js +2 -2
- package/dist/esm/CollapseItem/style/style.css +1 -1
- package/dist/esm/CollapseItem.js +1 -1
- package/dist/esm/ConfigProvider.js +2 -2
- package/dist/esm/CountDown/style/style.css +1 -1
- package/dist/esm/CountDown.js +2 -2
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/DatePicker.js +5 -5
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +4 -4
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/Divider.js +1 -1
- package/dist/esm/Elevator/style/style.css +1 -1
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Ellipsis/style/style.css +1 -1
- package/dist/esm/Empty/style/style.css +1 -1
- package/dist/esm/Empty.js +2 -2
- package/dist/esm/FixedNav/style/style.css +1 -1
- package/dist/esm/FixedNav.js +3 -3
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/Form.js +3 -3
- package/dist/esm/FormItem/style/style.css +1 -1
- package/dist/esm/FormItem.js +3 -3
- package/dist/esm/Grid/style/style.css +1 -1
- package/dist/esm/Grid.js +3 -3
- package/dist/esm/GridItem/style/style.css +1 -1
- package/dist/esm/GridItem.js +2 -2
- package/dist/esm/Image/style/style.css +1 -1
- package/dist/esm/Image.js +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/ImagePreview.js +5 -5
- package/dist/esm/Indicator/style/style.css +1 -1
- package/dist/esm/Indicator.js +1 -1
- package/dist/esm/InfiniteLoading/style/style.css +1 -1
- package/dist/esm/InfiniteLoading.js +2 -2
- package/dist/esm/Input/style/style.css +1 -1
- package/dist/esm/Input.js +2 -2
- package/dist/esm/InputNumber/style/style.css +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/Loading/style/style.css +1 -1
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/Menu.js +3 -3
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/MenuItem.js +2 -2
- package/dist/esm/NavBar/style/style.css +1 -1
- package/dist/esm/NavBar.js +1 -1
- package/dist/esm/NoticeBar/style/style.css +1 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/Notify/style/style.css +1 -1
- package/dist/esm/Notify.js +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/NumberKeyboard.js +4 -4
- package/dist/esm/Overlay/style/style.css +1 -1
- package/dist/esm/Overlay.js +1 -1
- package/dist/esm/Pagination/style/style.css +1 -1
- package/dist/esm/Pagination.js +2 -2
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +4 -4
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +3 -3
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Popup.js +2 -2
- package/dist/esm/Price/style/style.css +1 -1
- package/dist/esm/Price.js +1 -1
- package/dist/esm/Progress/style/style.css +1 -1
- package/dist/esm/Progress.js +1 -1
- package/dist/esm/PullToRefresh/style/style.css +1 -1
- package/dist/esm/PullToRefresh.js +2 -2
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/Radio.js +1 -1
- package/dist/esm/RadioGroup/style/style.css +1 -1
- package/dist/esm/RadioGroup.js +1 -1
- package/dist/esm/Range/style/style.css +1 -1
- package/dist/esm/Rate/style/style.css +1 -1
- package/dist/esm/Rate.js +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +2 -2
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +4 -4
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +3 -3
- package/dist/esm/SideNavBarItem/style/style.css +1 -1
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature/style/style.css +1 -1
- package/dist/esm/Signature.js +1 -1
- package/dist/esm/Skeleton/style/style.css +1 -1
- package/dist/esm/Skeleton.js +3 -3
- package/dist/esm/Step/style/style.css +1 -1
- package/dist/esm/Steps/style/style.css +1 -1
- package/dist/esm/Sticky/style/style.css +1 -1
- package/dist/esm/Sticky.js +1 -1
- package/dist/esm/SubSideNavBar/style/style.css +1 -1
- package/dist/esm/SubSideNavBar.js +1 -1
- package/dist/esm/Swipe/style/style.css +1 -1
- package/dist/esm/Swipe.js +1 -1
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Swiper.js +4 -4
- package/dist/esm/Switch/style/style.css +1 -1
- package/dist/esm/Switch.js +1 -1
- package/dist/esm/TabPane/style/style.css +1 -1
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/Tabbar.js +3 -3
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/TabbarItem.js +2 -2
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Table.js +2 -2
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tabs.js +2 -2
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TextArea.js +2 -2
- package/dist/esm/TimeDetail/style/style.css +1 -1
- package/dist/esm/TimeDetail.js +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TimeSelect.js +5 -5
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Toast.js +2 -2
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/Tour.js +4 -4
- package/dist/esm/TrendArrow/style/style.css +1 -1
- package/dist/esm/TrendArrow.js +1 -1
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +4 -4
- package/dist/esm/VirtualList/style/style.css +1 -1
- package/dist/esm/WaterMark.js +2 -2
- package/dist/esm/{actionsheet.taro-24a40570.js → actionsheet.taro-b4b3e4a6.js} +6 -7
- package/dist/esm/{address.taro-ee6e048a.js → address.taro-71c98c46.js} +6 -6
- package/dist/esm/{audio.taro-aa47d7e7.js → audio.taro-a42eebb5.js} +7 -7
- package/dist/esm/{avatar.taro-21ad648c.js → avatar.taro-814a4b85.js} +5 -5
- package/dist/esm/{avatarcropper.taro-499d9550.js → avatarcropper.taro-215ee89e.js} +1 -1
- package/dist/esm/{badge.taro-ffca952e.js → badge.taro-004f2eb0.js} +22 -7
- package/dist/esm/{barrage.taro-0258ca14.js → barrage.taro-53b33990.js} +4 -4
- package/dist/esm/{button.taro-7ae62bc3.js → button.taro-e8d84b29.js} +13 -11
- package/dist/esm/{calendar.taro-8302ddc2.js → calendar.taro-5ee74a65.js} +3 -3
- package/dist/esm/{calendarcard.taro-783109a7.js → calendarcard.taro-73e67095.js} +1 -1
- package/dist/esm/{calendaritem.taro-835ddb04.js → calendaritem.taro-b30ef756.js} +2 -2
- package/dist/esm/{card.taro-99868a10.js → card.taro-80ba74c4.js} +5 -5
- package/dist/esm/{cascader.taro-61269a77.js → cascader.taro-24e4ece7.js} +8 -8
- package/dist/esm/{cell.taro-010b73ed.js → cell.taro-3bb24d44.js} +6 -6
- package/dist/esm/{cellgroup.taro-9dc59f11.js → cellgroup.taro-f998a42f.js} +3 -3
- package/dist/esm/{checkbox.taro-1a7fd5c7.js → checkbox.taro-fa5d9680.js} +48 -17
- package/dist/esm/{circleprogress.taro-6054482f.js → circleprogress.taro-cbbc333a.js} +2 -2
- package/dist/esm/{collapse.taro-341f8941.js → collapse.taro-8b61fb79.js} +1 -1
- package/dist/esm/{collapseitem.taro-e99fb1a2.js → collapseitem.taro-a1e96f50.js} +8 -8
- package/dist/esm/{configprovider.taro-03d376af.js → configprovider.taro-e890dac3.js} +1 -1
- package/dist/esm/{countdown.taro-4a905523.js → countdown.taro-04aa98cf.js} +2 -2
- package/dist/esm/css.js +1 -0
- package/dist/esm/{datepicker.taro-8b8bb2fb.js → datepicker.taro-e80d9271.js} +2 -2
- package/dist/esm/{dialog.taro-c4969c97.js → dialog.taro-d1d66f17.js} +14 -12
- package/dist/esm/{divider.taro-c61ab869.js → divider.taro-a92925b7.js} +5 -5
- package/dist/esm/{elevator.taro-cdf3dba7.js → elevator.taro-1607d0b4.js} +16 -16
- package/dist/esm/empty.taro-e9dd38e7.js +811 -0
- package/dist/esm/{fixednav.taro-e18530bb.js → fixednav.taro-ec8c4526.js} +8 -8
- package/dist/esm/{formitem.taro-17dac26c.js → formitem.taro-2b8003f8.js} +5 -5
- package/dist/esm/{grid.taro-a1837c49.js → grid.taro-389996b2.js} +2 -2
- package/dist/esm/{griditem.taro-c0265282.js → griditem.taro-483246bf.js} +9 -9
- package/dist/esm/{image.taro-c2441b71.js → image.taro-8d73a60d.js} +1 -1
- package/dist/esm/{imagepreview.taro-a5e8b8fa.js → imagepreview.taro-e660bf28.js} +2 -2
- package/dist/esm/{indicator.taro-092f9f4e.js → indicator.taro-7bec8fb9.js} +2 -2
- package/dist/esm/{infiniteloading.taro-b149475d.js → infiniteloading.taro-e6068990.js} +1 -1
- package/dist/esm/{input.taro-ffd35ab1.js → input.taro-d98c3cef.js} +1 -1
- package/dist/esm/{inputnumber.taro-5f60d969.js → inputnumber.taro-07b246ee.js} +5 -5
- package/dist/esm/{menu.taro-df22141a.js → menu.taro-c2dc8fdb.js} +8 -19
- package/dist/esm/{menuitem.taro-7b5d50fc.js → menuitem.taro-9cd511f4.js} +8 -8
- package/dist/esm/{navbar.taro-23394f73.js → navbar.taro-00b0b1fd.js} +10 -8
- package/dist/esm/{noticebar.taro-11fe07b1.js → noticebar.taro-512a92a0.js} +4 -4
- package/dist/esm/{notify.taro-b7f10692.js → notify.taro-3063c438.js} +3 -3
- package/dist/esm/{numberkeyboard.taro-74f9a790.js → numberkeyboard.taro-d01cb097.js} +12 -12
- package/dist/esm/nutui-react.es.js +76 -76
- package/dist/esm/{pagination.taro-7ef7ab28.js → pagination.taro-a8969bcf.js} +32 -18
- package/dist/esm/{picker.taro-00fb321a.js → picker.taro-d40a4e27.js} +8 -8
- package/dist/esm/{popover.taro-2ca996c8.js → popover.taro-d1837cca.js} +10 -7
- package/dist/esm/{popup.taro-376be9fe.js → popup.taro-85284489.js} +23 -18
- package/dist/esm/{price.taro-710cab3b.js → price.taro-ce8f3249.js} +5 -5
- package/dist/esm/{progress.taro-421575b9.js → progress.taro-129abe65.js} +1 -1
- package/dist/esm/{pulltorefresh.taro-1741fda8.js → pulltorefresh.taro-e8258b3c.js} +30 -3
- package/dist/esm/{radio.taro-9e049135.js → radio.taro-b0f9fd8e.js} +14 -11
- package/dist/esm/{raf-a9ff50ad.js → raf-12d6371d.js} +1 -1
- package/dist/esm/{rate.taro-2f08de25.js → rate.taro-3da117db.js} +6 -6
- package/dist/esm/{searchbar.taro-9ffce381.js → searchbar.taro-ab39a108.js} +17 -16
- package/dist/esm/{shortpassword.taro-8647cd4d.js → shortpassword.taro-cd9e234e.js} +14 -14
- package/dist/esm/{sidenavbar.taro-53ac5b88.js → sidenavbar.taro-5a5b4178.js} +5 -5
- package/dist/esm/{sidenavbaritem.taro-69b0784d.js → sidenavbaritem.taro-f2650b21.js} +1 -1
- package/dist/esm/{signature.taro-3e0c2694.js → signature.taro-7ada09ae.js} +2 -2
- package/dist/esm/{skeleton.taro-67715cd4.js → skeleton.taro-9504ad22.js} +8 -8
- package/dist/esm/{sticky.taro-bee7a130.js → sticky.taro-560c98a8.js} +2 -2
- package/dist/esm/style.css +1 -0
- package/dist/esm/{subsidenavbar.taro-797ce379.js → subsidenavbar.taro-cf175ac5.js} +6 -6
- package/dist/esm/{swipe.taro-a108baac.js → swipe.taro-adfd35e2.js} +2 -2
- package/dist/esm/{switch.taro-1c7715e8.js → switch.taro-e46db0c3.js} +2 -2
- package/dist/esm/{tabbar.taro-8fe42366.js → tabbar.taro-e74e904e.js} +4 -4
- package/dist/esm/{tabbaritem.taro-c75682f5.js → tabbaritem.taro-fa0e2bfa.js} +2 -2
- package/dist/esm/{table.taro-d2c266e1.js → table.taro-4edde60b.js} +14 -14
- package/dist/esm/{tabs.taro-ba8788c1.js → tabs.taro-99fba9f1.js} +19 -19
- package/dist/esm/{tag.taro-94e17649.js → tag.taro-9fbc6a5e.js} +6 -6
- package/dist/esm/{textarea.taro-6ce0d027.js → textarea.taro-74da302f.js} +4 -4
- package/dist/esm/{timedetail.taro-958b8c07.js → timedetail.taro-130291a2.js} +1 -1
- package/dist/esm/{timeselect.taro-a2130557.js → timeselect.taro-ea27c6d5.js} +6 -7
- package/dist/esm/{toast.taro-b847d537.js → toast.taro-e5290709.js} +4 -4
- package/dist/esm/{tour.taro-10b657d8.js → tour.taro-c7d2320b.js} +1 -1
- package/dist/esm/{trendarrow.taro-e6b635ae.js → trendarrow.taro-ac0a3403.js} +3 -3
- package/dist/esm/types/src/packages/button/button.d.ts +3 -2
- package/dist/esm/types/src/packages/button/button.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +2 -0
- package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/empty/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/empty/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/empty/empty.d.ts +5 -1
- package/dist/esm/types/src/packages/empty/empty.taro.d.ts +5 -1
- package/dist/esm/types/src/packages/empty/index.d.ts +1 -0
- package/dist/esm/types/src/packages/empty/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/empty/types.d.ts +3 -0
- package/dist/esm/types/src/packages/indicator/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/indicator/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/inputnumber/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/inputnumber/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/navbar/navbar.d.ts +1 -0
- package/dist/esm/types/src/packages/navbar/navbar.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/pagination/pagination.d.ts +1 -1
- package/dist/esm/types/src/packages/pagination/pagination.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/popover/popover.d.ts +4 -0
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +4 -0
- package/dist/esm/types/src/packages/popup/popup.d.ts +1 -0
- package/dist/esm/types/src/packages/popup/popup.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/swipe/swipe.d.ts +0 -6
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
- package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
- package/dist/esm/{uploader.taro-9e6aa0df.js → uploader.taro-be3f843f.js} +21 -21
- package/dist/esm/{watermark.taro-3ea4550f.js → watermark.taro-3971822c.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/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +2 -2
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +6907 -5057
- package/dist/nutui.react.umd.js +6916 -5066
- package/dist/packages/actionsheet/actionsheet.scss +15 -15
- package/dist/packages/address/address.scss +6 -6
- package/dist/packages/animatingnumbers/countup.scss +19 -6
- package/dist/packages/audio/audio.scss +17 -9
- package/dist/packages/avatar/avatar.scss +1 -1
- package/dist/packages/avatarcropper/avatarcropper.scss +4 -0
- package/dist/packages/backtop/backtop.scss +6 -3
- package/dist/packages/badge/badge.scss +25 -6
- package/dist/packages/barrage/barrage.scss +16 -6
- package/dist/packages/button/button.scss +163 -93
- package/dist/packages/calendar/calendar.scss +17 -16
- package/dist/packages/calendarcard/calendarcard.scss +8 -8
- package/dist/packages/card/card.scss +28 -14
- package/dist/packages/cascader/cascader.scss +6 -6
- package/dist/packages/cell/cell.scss +3 -3
- package/dist/packages/cellgroup/cellgroup.scss +6 -6
- package/dist/packages/checkbox/checkbox.scss +82 -22
- package/dist/packages/checkboxgroup/checkboxgroup.scss +17 -7
- package/dist/packages/collapseitem/collapseitem.scss +32 -10
- package/dist/packages/dialog/dialog.scss +22 -37
- package/dist/packages/divider/divider.scss +13 -13
- package/dist/packages/elevator/elevator.scss +51 -37
- package/dist/packages/empty/empty.scss +36 -6
- package/dist/packages/fixednav/fixednav.scss +27 -14
- package/dist/packages/form/form.scss +4 -4
- package/dist/packages/formitem/formitem.scss +6 -6
- package/dist/packages/grid/grid.scss +1 -1
- package/dist/packages/griditem/griditem.scss +16 -15
- package/dist/packages/image/image.scss +4 -2
- package/dist/packages/imagepreview/imagepreview.scss +1 -11
- package/dist/packages/indicator/indicator.scss +9 -9
- package/dist/packages/infiniteloading/infiniteloading.scss +23 -8
- package/dist/packages/input/input.scss +4 -2
- package/dist/packages/inputnumber/inputnumber.scss +21 -18
- package/dist/packages/loading/loading.scss +3 -3
- package/dist/packages/menu/menu.scss +22 -30
- package/dist/packages/menuitem/menuitem.scss +55 -56
- package/dist/packages/navbar/navbar.scss +52 -16
- package/dist/packages/noticebar/noticebar.scss +12 -11
- package/dist/packages/notify/notify.scss +10 -18
- package/dist/packages/numberkeyboard/numberkeyboard.scss +19 -17
- package/dist/packages/pagination/pagination.scss +32 -9
- package/dist/packages/picker/picker.scss +19 -19
- package/dist/packages/popover/popover.scss +51 -35
- package/dist/packages/popup/popup.scss +225 -213
- package/dist/packages/price/price.scss +20 -9
- package/dist/packages/progress/progress.scss +1 -1
- package/dist/packages/pulltorefresh/pulltorefresh.scss +9 -2
- package/dist/packages/radio/radio.scss +45 -40
- package/dist/packages/radiogroup/radiogroup.scss +18 -18
- package/dist/packages/range/range.scss +15 -4
- package/dist/packages/rate/rate.scss +8 -9
- package/dist/packages/searchbar/searchbar.scss +67 -42
- package/dist/packages/shortpassword/shortpassword.scss +24 -24
- package/dist/packages/sidenavbar/sidenavbar.scss +8 -8
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +3 -3
- package/dist/packages/signature/signature.scss +5 -2
- package/dist/packages/skeleton/skeleton.scss +8 -8
- package/dist/packages/step/step.scss +27 -32
- package/dist/packages/sticky/sticky.scss +1 -1
- package/dist/packages/subsidenavbar/subsidenavbar.scss +5 -5
- package/dist/packages/swipe/swipe.scss +8 -5
- package/dist/packages/swiper/swiper.scss +4 -4
- package/dist/packages/switch/switch.scss +39 -28
- package/dist/packages/tabbar/tabbar.scss +4 -4
- package/dist/packages/tabbaritem/tabbaritem.scss +8 -1
- package/dist/packages/table/table.scss +28 -28
- package/dist/packages/tabpane/tabpane.scss +2 -2
- package/dist/packages/tabs/tabs.scss +181 -137
- package/dist/packages/tag/tag.scss +12 -12
- package/dist/packages/textarea/textarea.scss +6 -6
- package/dist/packages/timedetail/timedetail.scss +8 -9
- package/dist/packages/timeselect/timeselect.scss +12 -21
- package/dist/packages/toast/toast.scss +37 -22
- package/dist/packages/tour/tour.scss +9 -4
- package/dist/packages/trendarrow/trendarrow.scss +8 -3
- package/dist/packages/uploader/uploader.scss +41 -37
- package/dist/packages/virtuallist/virtuallist.scss +13 -3
- package/dist/packages/watermark/watermark.scss +1 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/theme-dark.scss +118 -23
- package/dist/styles/theme-default.scss +114 -32
- package/dist/styles/theme-jmapp.scss +158 -32
- package/dist/styles/variables-jmapp.scss +1120 -1258
- package/dist/styles/variables.scss +953 -1174
- package/dist/types/packages/animate/animate.taro.d.ts +1 -1
- package/dist/types/packages/button/button.d.ts +23 -0
- package/dist/types/packages/button/button.taro.d.ts +3 -2
- package/dist/types/packages/button/index.d.ts +3 -0
- package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/config.d.ts +1 -0
- package/dist/types/packages/dialog/content.taro.d.ts +1 -0
- package/dist/types/packages/empty/empty.d.ts +5 -1
- package/dist/types/packages/empty/empty.taro.d.ts +5 -1
- package/dist/types/packages/empty/index.d.ts +4 -0
- package/dist/types/packages/empty/index.taro.d.ts +1 -0
- package/dist/types/packages/empty/types.d.ts +3 -0
- package/dist/types/packages/navbar/navbar.taro.d.ts +1 -0
- package/dist/types/packages/pagination/pagination.taro.d.ts +2 -2
- package/dist/types/packages/popover/popover.taro.d.ts +4 -0
- package/dist/types/packages/popup/popup.taro.d.ts +15 -2
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +5 -0
- package/dist/types/packages/tabs/tabs.taro.d.ts +2 -2
- package/package.json +2 -2
- package/dist/esm/empty.taro-610d8e5c.js +0 -59
- package/dist/esm/{overlay.taro-2a34cbbf.js → overlay.taro-8514660f.js} +1 -1
|
@@ -0,0 +1,811 @@
|
|
|
1
|
+
import React__default, { useCallback, useState, useEffect } from "react";
|
|
2
|
+
import { u as useConfig } from "./configprovider.taro-e890dac3.js";
|
|
3
|
+
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
var D = {}, ir = {
|
|
6
|
+
get exports() {
|
|
7
|
+
return D;
|
|
8
|
+
},
|
|
9
|
+
set exports(h) {
|
|
10
|
+
D = h;
|
|
11
|
+
}
|
|
12
|
+
}, k = {};
|
|
13
|
+
/**
|
|
14
|
+
* @license React
|
|
15
|
+
* react-jsx-runtime.production.min.js
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
var Re;
|
|
23
|
+
function ur() {
|
|
24
|
+
if (Re)
|
|
25
|
+
return k;
|
|
26
|
+
Re = 1;
|
|
27
|
+
var h = React__default, S = Symbol.for("react.element"), M = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, A = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: true, ref: true, __self: true, __source: true };
|
|
28
|
+
function w(m, l, T) {
|
|
29
|
+
var d, g = {}, _ = null, $ = null;
|
|
30
|
+
T !== void 0 && (_ = "" + T), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && ($ = l.ref);
|
|
31
|
+
for (d in l)
|
|
32
|
+
R.call(l, d) && !I.hasOwnProperty(d) && (g[d] = l[d]);
|
|
33
|
+
if (m && m.defaultProps)
|
|
34
|
+
for (d in l = m.defaultProps, l)
|
|
35
|
+
g[d] === void 0 && (g[d] = l[d]);
|
|
36
|
+
return { $$typeof: S, type: m, key: _, ref: $, props: g, _owner: A.current };
|
|
37
|
+
}
|
|
38
|
+
return k.Fragment = M, k.jsx = w, k.jsxs = w, k;
|
|
39
|
+
}
|
|
40
|
+
var F = {};
|
|
41
|
+
/**
|
|
42
|
+
* @license React
|
|
43
|
+
* react-jsx-runtime.development.js
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the MIT license found in the
|
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/
|
|
50
|
+
var Te;
|
|
51
|
+
function sr() {
|
|
52
|
+
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
53
|
+
var h = React__default, S = Symbol.for("react.element"), M = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), m = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), X = Symbol.iterator, Ce = "@@iterator";
|
|
54
|
+
function Pe(e) {
|
|
55
|
+
if (e === null || typeof e != "object")
|
|
56
|
+
return null;
|
|
57
|
+
var r = X && e[X] || e[Ce];
|
|
58
|
+
return typeof r == "function" ? r : null;
|
|
59
|
+
}
|
|
60
|
+
var O = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
61
|
+
function c2(e) {
|
|
62
|
+
{
|
|
63
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
64
|
+
t[n - 1] = arguments[n];
|
|
65
|
+
Se("error", e, t);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function Se(e, r, t) {
|
|
69
|
+
{
|
|
70
|
+
var n = O.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
71
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
72
|
+
var u = t.map(function(o) {
|
|
73
|
+
return String(o);
|
|
74
|
+
});
|
|
75
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
var we = false, xe = false, je = false, ke = false, Fe = false, Z;
|
|
79
|
+
Z = Symbol.for("react.module.reference");
|
|
80
|
+
function De(e) {
|
|
81
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === I || Fe || e === A || e === T || e === d || ke || e === $ || we || xe || je || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === g || e.$$typeof === w || e.$$typeof === m || e.$$typeof === l || // This needs to include all possible module reference object
|
|
82
|
+
// types supported by any Flight configuration anywhere since
|
|
83
|
+
// we don't know which Flight build this will end up being used
|
|
84
|
+
// with.
|
|
85
|
+
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
86
|
+
}
|
|
87
|
+
function Ae(e, r, t) {
|
|
88
|
+
var n = e.displayName;
|
|
89
|
+
if (n)
|
|
90
|
+
return n;
|
|
91
|
+
var i = r.displayName || r.name || "";
|
|
92
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
93
|
+
}
|
|
94
|
+
function Q(e) {
|
|
95
|
+
return e.displayName || "Context";
|
|
96
|
+
}
|
|
97
|
+
function E(e) {
|
|
98
|
+
if (e == null)
|
|
99
|
+
return null;
|
|
100
|
+
if (typeof e.tag == "number" && c2("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
101
|
+
return e.displayName || e.name || null;
|
|
102
|
+
if (typeof e == "string")
|
|
103
|
+
return e;
|
|
104
|
+
switch (e) {
|
|
105
|
+
case R:
|
|
106
|
+
return "Fragment";
|
|
107
|
+
case M:
|
|
108
|
+
return "Portal";
|
|
109
|
+
case I:
|
|
110
|
+
return "Profiler";
|
|
111
|
+
case A:
|
|
112
|
+
return "StrictMode";
|
|
113
|
+
case T:
|
|
114
|
+
return "Suspense";
|
|
115
|
+
case d:
|
|
116
|
+
return "SuspenseList";
|
|
117
|
+
}
|
|
118
|
+
if (typeof e == "object")
|
|
119
|
+
switch (e.$$typeof) {
|
|
120
|
+
case m:
|
|
121
|
+
var r = e;
|
|
122
|
+
return Q(r) + ".Consumer";
|
|
123
|
+
case w:
|
|
124
|
+
var t = e;
|
|
125
|
+
return Q(t._context) + ".Provider";
|
|
126
|
+
case l:
|
|
127
|
+
return Ae(e, e.render, "ForwardRef");
|
|
128
|
+
case g:
|
|
129
|
+
var n = e.displayName || null;
|
|
130
|
+
return n !== null ? n : E(e.type) || "Memo";
|
|
131
|
+
case _: {
|
|
132
|
+
var i = e, u = i._payload, o = i._init;
|
|
133
|
+
try {
|
|
134
|
+
return E(o(u));
|
|
135
|
+
} catch {
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
var y = Object.assign, x2 = 0, ee, re, te, ne, ae, oe, ie;
|
|
143
|
+
function ue() {
|
|
144
|
+
}
|
|
145
|
+
ue.__reactDisabledLog = true;
|
|
146
|
+
function Ie() {
|
|
147
|
+
{
|
|
148
|
+
if (x2 === 0) {
|
|
149
|
+
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
150
|
+
var e = {
|
|
151
|
+
configurable: true,
|
|
152
|
+
enumerable: true,
|
|
153
|
+
value: ue,
|
|
154
|
+
writable: true
|
|
155
|
+
};
|
|
156
|
+
Object.defineProperties(console, {
|
|
157
|
+
info: e,
|
|
158
|
+
log: e,
|
|
159
|
+
warn: e,
|
|
160
|
+
error: e,
|
|
161
|
+
group: e,
|
|
162
|
+
groupCollapsed: e,
|
|
163
|
+
groupEnd: e
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
x2++;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function $e() {
|
|
170
|
+
{
|
|
171
|
+
if (x2--, x2 === 0) {
|
|
172
|
+
var e = {
|
|
173
|
+
configurable: true,
|
|
174
|
+
enumerable: true,
|
|
175
|
+
writable: true
|
|
176
|
+
};
|
|
177
|
+
Object.defineProperties(console, {
|
|
178
|
+
log: y({}, e, {
|
|
179
|
+
value: ee
|
|
180
|
+
}),
|
|
181
|
+
info: y({}, e, {
|
|
182
|
+
value: re
|
|
183
|
+
}),
|
|
184
|
+
warn: y({}, e, {
|
|
185
|
+
value: te
|
|
186
|
+
}),
|
|
187
|
+
error: y({}, e, {
|
|
188
|
+
value: ne
|
|
189
|
+
}),
|
|
190
|
+
group: y({}, e, {
|
|
191
|
+
value: ae
|
|
192
|
+
}),
|
|
193
|
+
groupCollapsed: y({}, e, {
|
|
194
|
+
value: oe
|
|
195
|
+
}),
|
|
196
|
+
groupEnd: y({}, e, {
|
|
197
|
+
value: ie
|
|
198
|
+
})
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
x2 < 0 && c2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
var U = O.ReactCurrentDispatcher, B;
|
|
205
|
+
function W(e, r, t) {
|
|
206
|
+
{
|
|
207
|
+
if (B === void 0)
|
|
208
|
+
try {
|
|
209
|
+
throw Error();
|
|
210
|
+
} catch (i) {
|
|
211
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
212
|
+
B = n && n[1] || "";
|
|
213
|
+
}
|
|
214
|
+
return `
|
|
215
|
+
` + B + e;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
var q = false, Y;
|
|
219
|
+
{
|
|
220
|
+
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
221
|
+
Y = new We();
|
|
222
|
+
}
|
|
223
|
+
function se(e, r) {
|
|
224
|
+
if (!e || q)
|
|
225
|
+
return "";
|
|
226
|
+
{
|
|
227
|
+
var t = Y.get(e);
|
|
228
|
+
if (t !== void 0)
|
|
229
|
+
return t;
|
|
230
|
+
}
|
|
231
|
+
var n;
|
|
232
|
+
q = true;
|
|
233
|
+
var i = Error.prepareStackTrace;
|
|
234
|
+
Error.prepareStackTrace = void 0;
|
|
235
|
+
var u;
|
|
236
|
+
u = U.current, U.current = null, Ie();
|
|
237
|
+
try {
|
|
238
|
+
if (r) {
|
|
239
|
+
var o = function() {
|
|
240
|
+
throw Error();
|
|
241
|
+
};
|
|
242
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
243
|
+
set: function() {
|
|
244
|
+
throw Error();
|
|
245
|
+
}
|
|
246
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
|
+
try {
|
|
248
|
+
Reflect.construct(o, []);
|
|
249
|
+
} catch (b) {
|
|
250
|
+
n = b;
|
|
251
|
+
}
|
|
252
|
+
Reflect.construct(e, [], o);
|
|
253
|
+
} else {
|
|
254
|
+
try {
|
|
255
|
+
o.call();
|
|
256
|
+
} catch (b) {
|
|
257
|
+
n = b;
|
|
258
|
+
}
|
|
259
|
+
e.call(o.prototype);
|
|
260
|
+
}
|
|
261
|
+
} else {
|
|
262
|
+
try {
|
|
263
|
+
throw Error();
|
|
264
|
+
} catch (b) {
|
|
265
|
+
n = b;
|
|
266
|
+
}
|
|
267
|
+
e();
|
|
268
|
+
}
|
|
269
|
+
} catch (b) {
|
|
270
|
+
if (b && n && typeof b.stack == "string") {
|
|
271
|
+
for (var a = b.stack.split(`
|
|
272
|
+
`), v = n.stack.split(`
|
|
273
|
+
`), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; )
|
|
274
|
+
f--;
|
|
275
|
+
for (; s >= 1 && f >= 0; s--, f--)
|
|
276
|
+
if (a[s] !== v[f]) {
|
|
277
|
+
if (s !== 1 || f !== 1)
|
|
278
|
+
do
|
|
279
|
+
if (s--, f--, f < 0 || a[s] !== v[f]) {
|
|
280
|
+
var p = `
|
|
281
|
+
` + a[s].replace(" at new ", " at ");
|
|
282
|
+
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, p), p;
|
|
283
|
+
}
|
|
284
|
+
while (s >= 1 && f >= 0);
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
} finally {
|
|
289
|
+
q = false, U.current = u, $e(), Error.prepareStackTrace = i;
|
|
290
|
+
}
|
|
291
|
+
var P = e ? e.displayName || e.name : "", ye = P ? W(P) : "";
|
|
292
|
+
return typeof e == "function" && Y.set(e, ye), ye;
|
|
293
|
+
}
|
|
294
|
+
function Ye(e, r, t) {
|
|
295
|
+
return se(e, false);
|
|
296
|
+
}
|
|
297
|
+
function Le(e) {
|
|
298
|
+
var r = e.prototype;
|
|
299
|
+
return !!(r && r.isReactComponent);
|
|
300
|
+
}
|
|
301
|
+
function L(e, r, t) {
|
|
302
|
+
if (e == null)
|
|
303
|
+
return "";
|
|
304
|
+
if (typeof e == "function")
|
|
305
|
+
return se(e, Le(e));
|
|
306
|
+
if (typeof e == "string")
|
|
307
|
+
return W(e);
|
|
308
|
+
switch (e) {
|
|
309
|
+
case T:
|
|
310
|
+
return W("Suspense");
|
|
311
|
+
case d:
|
|
312
|
+
return W("SuspenseList");
|
|
313
|
+
}
|
|
314
|
+
if (typeof e == "object")
|
|
315
|
+
switch (e.$$typeof) {
|
|
316
|
+
case l:
|
|
317
|
+
return Ye(e.render);
|
|
318
|
+
case g:
|
|
319
|
+
return L(e.type, r, t);
|
|
320
|
+
case _: {
|
|
321
|
+
var n = e, i = n._payload, u = n._init;
|
|
322
|
+
try {
|
|
323
|
+
return L(u(i), r, t);
|
|
324
|
+
} catch {
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
return "";
|
|
329
|
+
}
|
|
330
|
+
var N = Object.prototype.hasOwnProperty, fe = {}, le = O.ReactDebugCurrentFrame;
|
|
331
|
+
function V(e) {
|
|
332
|
+
if (e) {
|
|
333
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
334
|
+
le.setExtraStackFrame(t);
|
|
335
|
+
} else
|
|
336
|
+
le.setExtraStackFrame(null);
|
|
337
|
+
}
|
|
338
|
+
function Ne(e, r, t, n, i) {
|
|
339
|
+
{
|
|
340
|
+
var u = Function.call.bind(N);
|
|
341
|
+
for (var o in e)
|
|
342
|
+
if (u(e, o)) {
|
|
343
|
+
var a = void 0;
|
|
344
|
+
try {
|
|
345
|
+
if (typeof e[o] != "function") {
|
|
346
|
+
var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
347
|
+
throw v.name = "Invariant Violation", v;
|
|
348
|
+
}
|
|
349
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
350
|
+
} catch (s) {
|
|
351
|
+
a = s;
|
|
352
|
+
}
|
|
353
|
+
a && !(a instanceof Error) && (V(i), c2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = true, V(i), c2("Failed %s type: %s", t, a.message), V(null));
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
var Ve = Array.isArray;
|
|
358
|
+
function J(e) {
|
|
359
|
+
return Ve(e);
|
|
360
|
+
}
|
|
361
|
+
function Me(e) {
|
|
362
|
+
{
|
|
363
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
364
|
+
return t;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
function Ue(e) {
|
|
368
|
+
try {
|
|
369
|
+
return ce(e), false;
|
|
370
|
+
} catch {
|
|
371
|
+
return true;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
function ce(e) {
|
|
375
|
+
return "" + e;
|
|
376
|
+
}
|
|
377
|
+
function ve(e) {
|
|
378
|
+
if (Ue(e))
|
|
379
|
+
return c2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(e)), ce(e);
|
|
380
|
+
}
|
|
381
|
+
var j = O.ReactCurrentOwner, Be = {
|
|
382
|
+
key: true,
|
|
383
|
+
ref: true,
|
|
384
|
+
__self: true,
|
|
385
|
+
__source: true
|
|
386
|
+
}, de, pe, G;
|
|
387
|
+
G = {};
|
|
388
|
+
function qe(e) {
|
|
389
|
+
if (N.call(e, "ref")) {
|
|
390
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
391
|
+
if (r && r.isReactWarning)
|
|
392
|
+
return false;
|
|
393
|
+
}
|
|
394
|
+
return e.ref !== void 0;
|
|
395
|
+
}
|
|
396
|
+
function Je(e) {
|
|
397
|
+
if (N.call(e, "key")) {
|
|
398
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
399
|
+
if (r && r.isReactWarning)
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
return e.key !== void 0;
|
|
403
|
+
}
|
|
404
|
+
function Ge(e, r) {
|
|
405
|
+
if (typeof e.ref == "string" && j.current && r && j.current.stateNode !== r) {
|
|
406
|
+
var t = E(j.current.type);
|
|
407
|
+
G[t] || (c2('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(j.current.type), e.ref), G[t] = true);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
function ze(e, r) {
|
|
411
|
+
{
|
|
412
|
+
var t = function() {
|
|
413
|
+
de || (de = true, c2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
414
|
+
};
|
|
415
|
+
t.isReactWarning = true, Object.defineProperty(e, "key", {
|
|
416
|
+
get: t,
|
|
417
|
+
configurable: true
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function Ke(e, r) {
|
|
422
|
+
{
|
|
423
|
+
var t = function() {
|
|
424
|
+
pe || (pe = true, c2("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
425
|
+
};
|
|
426
|
+
t.isReactWarning = true, Object.defineProperty(e, "ref", {
|
|
427
|
+
get: t,
|
|
428
|
+
configurable: true
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
var He = function(e, r, t, n, i, u, o) {
|
|
433
|
+
var a = {
|
|
434
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
435
|
+
$$typeof: S,
|
|
436
|
+
// Built-in properties that belong on the element
|
|
437
|
+
type: e,
|
|
438
|
+
key: r,
|
|
439
|
+
ref: t,
|
|
440
|
+
props: o,
|
|
441
|
+
// Record the component responsible for creating this element.
|
|
442
|
+
_owner: u
|
|
443
|
+
};
|
|
444
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
445
|
+
configurable: false,
|
|
446
|
+
enumerable: false,
|
|
447
|
+
writable: true,
|
|
448
|
+
value: false
|
|
449
|
+
}), Object.defineProperty(a, "_self", {
|
|
450
|
+
configurable: false,
|
|
451
|
+
enumerable: false,
|
|
452
|
+
writable: false,
|
|
453
|
+
value: n
|
|
454
|
+
}), Object.defineProperty(a, "_source", {
|
|
455
|
+
configurable: false,
|
|
456
|
+
enumerable: false,
|
|
457
|
+
writable: false,
|
|
458
|
+
value: i
|
|
459
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
460
|
+
};
|
|
461
|
+
function Xe(e, r, t, n, i) {
|
|
462
|
+
{
|
|
463
|
+
var u, o = {}, a = null, v = null;
|
|
464
|
+
t !== void 0 && (ve(t), a = "" + t), Je(r) && (ve(r.key), a = "" + r.key), qe(r) && (v = r.ref, Ge(r, i));
|
|
465
|
+
for (u in r)
|
|
466
|
+
N.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
|
|
467
|
+
if (e && e.defaultProps) {
|
|
468
|
+
var s = e.defaultProps;
|
|
469
|
+
for (u in s)
|
|
470
|
+
o[u] === void 0 && (o[u] = s[u]);
|
|
471
|
+
}
|
|
472
|
+
if (a || v) {
|
|
473
|
+
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
474
|
+
a && ze(o, f), v && Ke(o, f);
|
|
475
|
+
}
|
|
476
|
+
return He(e, a, v, i, n, j.current, o);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
var z = O.ReactCurrentOwner, ge = O.ReactDebugCurrentFrame;
|
|
480
|
+
function C(e) {
|
|
481
|
+
if (e) {
|
|
482
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
483
|
+
ge.setExtraStackFrame(t);
|
|
484
|
+
} else
|
|
485
|
+
ge.setExtraStackFrame(null);
|
|
486
|
+
}
|
|
487
|
+
var K;
|
|
488
|
+
K = false;
|
|
489
|
+
function H(e) {
|
|
490
|
+
return typeof e == "object" && e !== null && e.$$typeof === S;
|
|
491
|
+
}
|
|
492
|
+
function Ee() {
|
|
493
|
+
{
|
|
494
|
+
if (z.current) {
|
|
495
|
+
var e = E(z.current.type);
|
|
496
|
+
if (e)
|
|
497
|
+
return `
|
|
498
|
+
|
|
499
|
+
Check the render method of \`` + e + "`.";
|
|
500
|
+
}
|
|
501
|
+
return "";
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
function Ze(e) {
|
|
505
|
+
{
|
|
506
|
+
if (e !== void 0) {
|
|
507
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
508
|
+
return `
|
|
509
|
+
|
|
510
|
+
Check your code at ` + r + ":" + t + ".";
|
|
511
|
+
}
|
|
512
|
+
return "";
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
var be = {};
|
|
516
|
+
function Qe(e) {
|
|
517
|
+
{
|
|
518
|
+
var r = Ee();
|
|
519
|
+
if (!r) {
|
|
520
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
521
|
+
t && (r = `
|
|
522
|
+
|
|
523
|
+
Check the top-level render call using <` + t + ">.");
|
|
524
|
+
}
|
|
525
|
+
return r;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
function he(e, r) {
|
|
529
|
+
{
|
|
530
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
531
|
+
return;
|
|
532
|
+
e._store.validated = true;
|
|
533
|
+
var t = Qe(r);
|
|
534
|
+
if (be[t])
|
|
535
|
+
return;
|
|
536
|
+
be[t] = true;
|
|
537
|
+
var n = "";
|
|
538
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + E(e._owner.type) + "."), C(e), c2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), C(null);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
function me(e, r) {
|
|
542
|
+
{
|
|
543
|
+
if (typeof e != "object")
|
|
544
|
+
return;
|
|
545
|
+
if (J(e))
|
|
546
|
+
for (var t = 0; t < e.length; t++) {
|
|
547
|
+
var n = e[t];
|
|
548
|
+
H(n) && he(n, r);
|
|
549
|
+
}
|
|
550
|
+
else if (H(e))
|
|
551
|
+
e._store && (e._store.validated = true);
|
|
552
|
+
else if (e) {
|
|
553
|
+
var i = Pe(e);
|
|
554
|
+
if (typeof i == "function" && i !== e.entries)
|
|
555
|
+
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
556
|
+
H(o.value) && he(o.value, r);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
function er(e) {
|
|
561
|
+
{
|
|
562
|
+
var r = e.type;
|
|
563
|
+
if (r == null || typeof r == "string")
|
|
564
|
+
return;
|
|
565
|
+
var t;
|
|
566
|
+
if (typeof r == "function")
|
|
567
|
+
t = r.propTypes;
|
|
568
|
+
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
|
|
569
|
+
// Inner props are checked in the reconciler.
|
|
570
|
+
r.$$typeof === g))
|
|
571
|
+
t = r.propTypes;
|
|
572
|
+
else
|
|
573
|
+
return;
|
|
574
|
+
if (t) {
|
|
575
|
+
var n = E(r);
|
|
576
|
+
Ne(t, e.props, "prop", n, e);
|
|
577
|
+
} else if (r.PropTypes !== void 0 && !K) {
|
|
578
|
+
K = true;
|
|
579
|
+
var i = E(r);
|
|
580
|
+
c2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
581
|
+
}
|
|
582
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
function rr(e) {
|
|
586
|
+
{
|
|
587
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
588
|
+
var n = r[t];
|
|
589
|
+
if (n !== "children" && n !== "key") {
|
|
590
|
+
C(e), c2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), C(null);
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
e.ref !== null && (C(e), c2("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
function _e(e, r, t, n, i, u) {
|
|
598
|
+
{
|
|
599
|
+
var o = De(e);
|
|
600
|
+
if (!o) {
|
|
601
|
+
var a = "";
|
|
602
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
603
|
+
var v = Ze(i);
|
|
604
|
+
v ? a += v : a += Ee();
|
|
605
|
+
var s;
|
|
606
|
+
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === S ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
607
|
+
}
|
|
608
|
+
var f = Xe(e, r, t, i, u);
|
|
609
|
+
if (f == null)
|
|
610
|
+
return f;
|
|
611
|
+
if (o) {
|
|
612
|
+
var p = r.children;
|
|
613
|
+
if (p !== void 0)
|
|
614
|
+
if (n)
|
|
615
|
+
if (J(p)) {
|
|
616
|
+
for (var P = 0; P < p.length; P++)
|
|
617
|
+
me(p[P], e);
|
|
618
|
+
Object.freeze && Object.freeze(p);
|
|
619
|
+
} else
|
|
620
|
+
c2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
621
|
+
else
|
|
622
|
+
me(p, e);
|
|
623
|
+
}
|
|
624
|
+
return e === R ? rr(f) : er(f), f;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
function tr(e, r, t) {
|
|
628
|
+
return _e(e, r, t, true);
|
|
629
|
+
}
|
|
630
|
+
function nr(e, r, t) {
|
|
631
|
+
return _e(e, r, t, false);
|
|
632
|
+
}
|
|
633
|
+
var ar = nr, or = tr;
|
|
634
|
+
F.Fragment = R, F.jsx = ar, F.jsxs = or;
|
|
635
|
+
}()), F;
|
|
636
|
+
}
|
|
637
|
+
(function(h) {
|
|
638
|
+
process.env.NODE_ENV === "production" ? h.exports = ur() : h.exports = sr();
|
|
639
|
+
})(ir);
|
|
640
|
+
const lr = D.Fragment, cr = D.jsx;
|
|
641
|
+
D.jsxs;
|
|
642
|
+
const c = {
|
|
643
|
+
className: "",
|
|
644
|
+
style: void 0,
|
|
645
|
+
name: "Loading",
|
|
646
|
+
width: "",
|
|
647
|
+
height: "",
|
|
648
|
+
onClick: () => {
|
|
649
|
+
}
|
|
650
|
+
}, x = (h) => {
|
|
651
|
+
const { className: l, style: d, name: a, color: m, width: p, height: g, onClick: o } = { ...c, ...h }, f = (t) => {
|
|
652
|
+
o && o(t);
|
|
653
|
+
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
654
|
+
const t = "nut-icon";
|
|
655
|
+
return classNames({
|
|
656
|
+
[`${l}`]: l,
|
|
657
|
+
[t]: true,
|
|
658
|
+
[t + "-" + a]: a
|
|
659
|
+
});
|
|
660
|
+
}, e = {}, i = n(p || ""), r = n(g || "");
|
|
661
|
+
i && (e.width = i), r && (e.height = r);
|
|
662
|
+
const w = () => ({
|
|
663
|
+
...d,
|
|
664
|
+
...e
|
|
665
|
+
});
|
|
666
|
+
return /* @__PURE__ */ cr(lr, { children: /* @__PURE__ */ cr(
|
|
667
|
+
"svg",
|
|
668
|
+
{
|
|
669
|
+
className: u(),
|
|
670
|
+
style: w(),
|
|
671
|
+
onClick: f,
|
|
672
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
673
|
+
color: m,
|
|
674
|
+
viewBox: "0 0 1024 1024",
|
|
675
|
+
"aria-labelledby": a,
|
|
676
|
+
role: "presentation",
|
|
677
|
+
children: /* @__PURE__ */ cr(
|
|
678
|
+
"path",
|
|
679
|
+
{
|
|
680
|
+
d: "M512 73.14a43.89 43.89 0 0 1 43.89 43.89v118.49a43.89 43.89 0 0 1-87.78 0V117.03A43.89 43.89 0 0 1 512 73.14zM201.65 201.65a43.89 43.89 0 0 1 62.1 0l83.68 83.83a43.89 43.89 0 1 1-62.03 62.02l-83.75-83.75a43.89 43.89 0 0 1 0-62.1zm620.7 0a43.89 43.89 0 0 1 0 62.1l-83.83 83.68a43.89 43.89 0 1 1-62.02-62.03l83.75-83.82a43.89 43.89 0 0 1 62.1 0zM73.14 512a43.89 43.89 0 0 1 43.89-43.89h118.49a43.89 43.89 0 0 1 0 87.78H117.03A43.89 43.89 0 0 1 73.14 512zm671.45 0a43.89 43.89 0 0 1 43.89-43.89h118.49a43.89 43.89 0 1 1 0 87.78H788.48A43.89 43.89 0 0 1 744.59 512zM347.5 676.5a43.89 43.89 0 0 1 0 62.02l-83.75 83.83a43.89 43.89 0 1 1-62.1-62.1l83.83-83.68a43.89 43.89 0 0 1 62.02 0zm329 0a43.89 43.89 0 0 1 62.02 0l83.83 83.75a43.89 43.89 0 1 1-62.1 62.1l-83.68-83.83a43.89 43.89 0 0 1 0-62.02zM512 744.59a43.89 43.89 0 0 1 43.89 43.89v118.49a43.89 43.89 0 1 1-87.78 0V788.48A43.89 43.89 0 0 1 512 744.59z",
|
|
681
|
+
fill: "currentColor",
|
|
682
|
+
fillOpacity: "0.9"
|
|
683
|
+
}
|
|
684
|
+
)
|
|
685
|
+
}
|
|
686
|
+
) });
|
|
687
|
+
};
|
|
688
|
+
x.defaultProps = c;
|
|
689
|
+
const style_icon = "";
|
|
690
|
+
const prefixCls = "nut-button";
|
|
691
|
+
const defaultProps$1 = {
|
|
692
|
+
...ComponentDefaults,
|
|
693
|
+
color: "",
|
|
694
|
+
type: "default",
|
|
695
|
+
size: "normal",
|
|
696
|
+
shape: "round",
|
|
697
|
+
fill: "outline",
|
|
698
|
+
loading: false,
|
|
699
|
+
disabled: false,
|
|
700
|
+
block: false,
|
|
701
|
+
icon: null,
|
|
702
|
+
rightIcon: null,
|
|
703
|
+
nativeType: "button",
|
|
704
|
+
onClick: (e) => {
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
const Button = React__default.forwardRef((props, ref) => {
|
|
708
|
+
const { color, shape, fill, loading, disabled, type, size, block, icon, rightIcon, children, className, style, nativeType, onClick, ...rest } = {
|
|
709
|
+
...defaultProps$1,
|
|
710
|
+
...props
|
|
711
|
+
};
|
|
712
|
+
const getStyle = useCallback(() => {
|
|
713
|
+
const style2 = {};
|
|
714
|
+
if (props.color) {
|
|
715
|
+
if (props.fill && (props.fill === "outline" || props.fill === "dashed")) {
|
|
716
|
+
style2.color = color;
|
|
717
|
+
style2.background = "#fff";
|
|
718
|
+
if (!(color == null ? void 0 : color.includes("gradient"))) {
|
|
719
|
+
style2.borderColor = color;
|
|
720
|
+
}
|
|
721
|
+
} else {
|
|
722
|
+
style2.color = "#fff";
|
|
723
|
+
style2.background = color;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
return style2;
|
|
727
|
+
}, [color]);
|
|
728
|
+
const handleClick = (e) => {
|
|
729
|
+
if (!loading && !disabled && onClick) {
|
|
730
|
+
onClick(e);
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
return React__default.createElement(
|
|
734
|
+
"button",
|
|
735
|
+
{ ...rest, ref, type: nativeType, className: classNames(prefixCls, `${prefixCls}-${type}`, props.fill ? `${prefixCls}-${fill}` : null, children ? "" : `${prefixCls}-icononly`, {
|
|
736
|
+
[`${prefixCls}-${size}`]: size,
|
|
737
|
+
[`${prefixCls}-${shape}`]: shape,
|
|
738
|
+
[`${prefixCls}-block`]: block,
|
|
739
|
+
[`${prefixCls}-disabled`]: disabled,
|
|
740
|
+
[`${prefixCls}-loading`]: loading
|
|
741
|
+
}, className), style: { ...getStyle(), ...style }, onClick: (e) => handleClick(e) },
|
|
742
|
+
React__default.createElement(
|
|
743
|
+
"div",
|
|
744
|
+
{ className: "nut-button-warp" },
|
|
745
|
+
loading ? React__default.createElement(x, { className: "nut-icon-loading" }) : null,
|
|
746
|
+
!loading && icon ? icon : null,
|
|
747
|
+
children && React__default.createElement("div", { className: `${icon || loading ? "nut-button-text" : ""}${rightIcon ? " nut-button-text right" : ""}` }, children),
|
|
748
|
+
rightIcon || null
|
|
749
|
+
)
|
|
750
|
+
);
|
|
751
|
+
});
|
|
752
|
+
Button.displayName = "NutButton";
|
|
753
|
+
const defaultStatus = {
|
|
754
|
+
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
755
|
+
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
756
|
+
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
757
|
+
};
|
|
758
|
+
const defaultProps = {
|
|
759
|
+
...ComponentDefaults,
|
|
760
|
+
title: "",
|
|
761
|
+
description: "",
|
|
762
|
+
imageSize: "",
|
|
763
|
+
size: "base",
|
|
764
|
+
status: "empty",
|
|
765
|
+
actions: []
|
|
766
|
+
};
|
|
767
|
+
const classPrefix = `nut-empty`;
|
|
768
|
+
const Empty = (props) => {
|
|
769
|
+
useConfig();
|
|
770
|
+
const { image, imageSize, title, description, children, className, size, status, actions, ...rest } = {
|
|
771
|
+
...defaultProps,
|
|
772
|
+
...props
|
|
773
|
+
};
|
|
774
|
+
const [imgStyle, setImgStyle] = useState({});
|
|
775
|
+
const imageUrl = image || defaultStatus[status];
|
|
776
|
+
const imageNode = typeof imageUrl === "string" ? React__default.createElement("img", { className: "img", src: imageUrl, alt: "empty" }) : imageUrl;
|
|
777
|
+
useEffect(() => {
|
|
778
|
+
setImgStyle(() => {
|
|
779
|
+
if (!imageSize) {
|
|
780
|
+
return {};
|
|
781
|
+
}
|
|
782
|
+
if (typeof imageSize === "number") {
|
|
783
|
+
return {
|
|
784
|
+
width: `${imageSize}px`,
|
|
785
|
+
height: `${imageSize}px`
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
return {
|
|
789
|
+
width: imageSize,
|
|
790
|
+
height: imageSize
|
|
791
|
+
};
|
|
792
|
+
});
|
|
793
|
+
}, [imageSize]);
|
|
794
|
+
return React__default.createElement(
|
|
795
|
+
"div",
|
|
796
|
+
{ className: `${classPrefix} ${className}${size === "base" ? "" : ` ${classPrefix}-${size}`}`, ...rest },
|
|
797
|
+
React__default.createElement("div", { className: `${classPrefix}-image`, style: imgStyle }, imageNode),
|
|
798
|
+
typeof title === "string" && title ? React__default.createElement("div", { className: `${classPrefix}-title` }, title) : title,
|
|
799
|
+
typeof description === "string" ? React__default.createElement("div", { className: `${classPrefix}-description` }, description) : description,
|
|
800
|
+
actions.length > 0 && React__default.createElement("div", { className: `${classPrefix}-actions` }, actions.map((item, index) => {
|
|
801
|
+
return React__default.createElement(Button, { className: `${// eslint-disable-next-line no-nested-ternary
|
|
802
|
+
actions.length > 1 ? index === 0 ? `${classPrefix}-actions-left` : `${classPrefix}-actions-right` : ""}`, type: `${actions.length > 1 && index === 0 ? "default" : "primary"}`, size: "small", fill: "outline", key: `action-${index}` }, item == null ? void 0 : item.text);
|
|
803
|
+
})),
|
|
804
|
+
children
|
|
805
|
+
);
|
|
806
|
+
};
|
|
807
|
+
Empty.defaultProps = defaultProps;
|
|
808
|
+
Empty.displayName = "NutEmpty";
|
|
809
|
+
export {
|
|
810
|
+
Empty as E
|
|
811
|
+
};
|