@bifrostui/react 1.1.11-beta.0 → 1.1.11-beta.9
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/README.md +3 -0
- package/dist/ActionSheet/ActionSheet.js +107 -62
- package/dist/ActionSheet/ActionSheet.types.js +15 -5
- package/dist/ActionSheet/ActionSheetContext.js +35 -10
- package/dist/ActionSheet/ActionSheetItem.d.ts +1 -1
- package/dist/ActionSheet/ActionSheetItem.js +113 -52
- package/dist/ActionSheet/ActionSheetItem.types.js +15 -5
- package/dist/ActionSheet/index.js +42 -50
- package/dist/Alert/Alert.d.ts +1 -1
- package/dist/Alert/Alert.js +157 -95
- package/dist/Alert/Alert.types.js +15 -5
- package/dist/Alert/index.js +38 -30
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/Avatar.js +118 -43
- package/dist/Avatar/Avatar.types.js +15 -5
- package/dist/Avatar/AvatarGroup.d.ts +1 -1
- package/dist/Avatar/AvatarGroup.js +122 -64
- package/dist/Avatar/AvatarGroup.types.js +15 -5
- package/dist/Avatar/index.js +43 -50
- package/dist/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Backdrop/Backdrop.js +95 -33
- package/dist/Backdrop/Backdrop.types.js +15 -5
- package/dist/Backdrop/index.js +37 -30
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +102 -31
- package/dist/Badge/Badge.types.js +15 -5
- package/dist/Badge/index.js +37 -30
- package/dist/Button/Button.css +31 -7
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +111 -48
- package/dist/Button/Button.types.js +15 -5
- package/dist/Button/index.js +37 -30
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js +303 -257
- package/dist/Calendar/Calendar.types.js +15 -5
- package/dist/Calendar/index.js +37 -30
- package/dist/Calendar/utils.js +55 -44
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/Card.js +74 -25
- package/dist/Card/Card.types.js +15 -5
- package/dist/Card/CardContent.d.ts +1 -1
- package/dist/Card/CardContent.js +69 -24
- package/dist/Card/CardContent.types.js +15 -5
- package/dist/Card/CardFooter.d.ts +1 -1
- package/dist/Card/CardFooter.js +69 -24
- package/dist/Card/CardFooter.types.js +15 -5
- package/dist/Card/CardHeader.d.ts +1 -1
- package/dist/Card/CardHeader.js +91 -56
- package/dist/Card/CardHeader.types.js +15 -5
- package/dist/Card/index.js +54 -91
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +133 -66
- package/dist/Checkbox/Checkbox.types.js +15 -5
- package/dist/Checkbox/CheckboxContext.js +40 -10
- package/dist/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/Checkbox/CheckboxGroup.js +109 -52
- package/dist/Checkbox/index.js +40 -38
- package/dist/CitySelector/CitySelector.d.ts +1 -1
- package/dist/CitySelector/CitySelector.js +83 -35
- package/dist/CitySelector/CitySelector.miniapp.d.ts +1 -1
- package/dist/CitySelector/CitySelector.miniapp.js +123 -77
- package/dist/CitySelector/CitySelector.types.js +15 -5
- package/dist/CitySelector/CitySelectorCore.js +228 -174
- package/dist/CitySelector/Selector/index.js +46 -20
- package/dist/CitySelector/index.js +37 -30
- package/dist/Countdown/Countdown.css +11 -1
- package/dist/Countdown/Countdown.d.ts +1 -1
- package/dist/Countdown/Countdown.js +126 -70
- package/dist/Countdown/Countdown.types.js +15 -5
- package/dist/Countdown/index.js +39 -42
- package/dist/Countdown/useCountdown.js +37 -27
- package/dist/Countdown/utils.js +73 -74
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/Divider.js +70 -51
- package/dist/Divider/Divider.types.js +15 -5
- package/dist/Divider/index.js +37 -30
- package/dist/Drawer/Drawer.css +0 -1
- package/dist/Drawer/Drawer.js +124 -46
- package/dist/Drawer/Drawer.types.js +15 -5
- package/dist/Drawer/index.js +37 -30
- package/dist/Fade/Fade.js +111 -52
- package/dist/Fade/Fade.types.js +15 -5
- package/dist/Fade/index.js +38 -30
- package/dist/IconButton/IconButton.css +26 -6
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/IconButton.js +114 -46
- package/dist/IconButton/IconButton.types.js +15 -5
- package/dist/IconButton/index.js +37 -30
- package/dist/Image/Image.d.ts +1 -1
- package/dist/Image/Image.js +143 -78
- package/dist/Image/Image.types.js +15 -5
- package/dist/Image/index.js +38 -30
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/Input.js +144 -74
- package/dist/Input/Input.types.js +15 -5
- package/dist/Input/index.js +37 -30
- package/dist/List/List.d.ts +1 -1
- package/dist/List/List.js +89 -28
- package/dist/List/List.types.js +15 -5
- package/dist/List/ListContext.js +34 -9
- package/dist/List/ListItem.d.ts +1 -1
- package/dist/List/ListItem.js +97 -42
- package/dist/List/ListItem.types.js +15 -5
- package/dist/List/ListItemContent.d.ts +1 -1
- package/dist/List/ListItemContent.js +82 -34
- package/dist/List/ListItemContent.types.js +15 -5
- package/dist/List/ListItemExtra.d.ts +1 -1
- package/dist/List/ListItemExtra.js +70 -26
- package/dist/List/ListItemExtra.types.js +15 -5
- package/dist/List/ListItemFooter.d.ts +1 -1
- package/dist/List/ListItemFooter.js +70 -26
- package/dist/List/ListItemFooter.types.js +15 -5
- package/dist/List/ListItemHeader.d.ts +1 -1
- package/dist/List/ListItemHeader.js +70 -26
- package/dist/List/ListItemHeader.types.js +15 -5
- package/dist/List/index.js +62 -130
- package/dist/Loading/Loading.d.ts +1 -1
- package/dist/Loading/Loading.js +82 -33
- package/dist/Loading/Loading.types.js +15 -5
- package/dist/Loading/index.js +37 -30
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +112 -56
- package/dist/Modal/Modal.miniapp.d.ts +3 -3
- package/dist/Modal/Modal.miniapp.js +132 -63
- package/dist/Modal/Modal.types.js +15 -5
- package/dist/Modal/index.js +38 -30
- package/dist/NavBar/NavBar.d.ts +1 -1
- package/dist/NavBar/NavBar.js +109 -59
- package/dist/NavBar/NavBar.types.js +15 -5
- package/dist/NavBar/index.js +37 -30
- package/dist/Picker/Picker.d.ts +1 -1
- package/dist/Picker/Picker.js +155 -97
- package/dist/Picker/Picker.types.js +15 -5
- package/dist/Picker/PickerPanel.css +9 -1
- package/dist/Picker/PickerPanel.d.ts +1 -1
- package/dist/Picker/PickerPanel.js +255 -202
- package/dist/Picker/index.js +37 -30
- package/dist/Picker/utils.js +42 -37
- package/dist/Portal/Portal.js +61 -16
- package/dist/Portal/Portal.miniapp.js +68 -31
- package/dist/Portal/Portal.types.js +15 -5
- package/dist/Portal/PortalCore.js +70 -52
- package/dist/Portal/index.js +38 -30
- package/dist/Progress/Progress.d.ts +1 -1
- package/dist/Progress/Progress.js +102 -61
- package/dist/Progress/Progress.types.js +15 -5
- package/dist/Progress/index.js +38 -30
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/Radio/Radio.js +144 -80
- package/dist/Radio/Radio.types.js +15 -5
- package/dist/Radio/RadioButtonIcon.js +63 -32
- package/dist/Radio/RadioContext.js +40 -10
- package/dist/Radio/RadioGroup.d.ts +1 -1
- package/dist/Radio/RadioGroup.js +89 -34
- package/dist/Radio/index.js +40 -38
- package/dist/Rating/Rating.d.ts +1 -1
- package/dist/Rating/Rating.js +139 -62
- package/dist/Rating/Rating.types.js +15 -5
- package/dist/Rating/index.js +37 -30
- package/dist/ScrollView/ScrollView.d.ts +1 -1
- package/dist/ScrollView/ScrollView.js +226 -178
- package/{es/ScrollView/index.miniapp.js → dist/ScrollView/ScrollView.miniapp.d.ts} +0 -1
- package/dist/ScrollView/ScrollView.miniapp.js +24 -0
- package/dist/ScrollView/ScrollView.types.js +15 -5
- package/dist/ScrollView/index.js +38 -30
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/Select.js +176 -114
- package/dist/Select/Select.types.js +15 -5
- package/dist/Select/SelectOption.d.ts +1 -1
- package/dist/Select/SelectOption.js +92 -48
- package/dist/Select/index.js +40 -38
- package/dist/Select/selectContext.js +24 -8
- package/dist/Skeleton/Skeleton.css +7 -2
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/Skeleton.js +101 -37
- package/dist/Skeleton/Skeleton.types.js +15 -5
- package/dist/Skeleton/index.js +38 -30
- package/dist/Slide/Slide.js +125 -64
- package/dist/Slide/Slide.types.js +15 -5
- package/dist/Slide/index.js +38 -30
- package/dist/Slider/Slider.css +2 -2
- package/dist/Slider/Slider.d.ts +1 -1
- package/dist/Slider/Slider.js +215 -171
- package/dist/Slider/Slider.types.js +15 -5
- package/dist/Slider/index.js +37 -30
- package/dist/Slider/utils.js +35 -24
- package/dist/Stack/Stack.css +0 -1
- package/dist/Stack/Stack.d.ts +1 -1
- package/dist/Stack/Stack.js +96 -41
- package/dist/Stack/Stack.types.js +15 -5
- package/dist/Stack/demo/StackDemo.js +148 -122
- package/dist/Stack/index.js +38 -30
- package/dist/Steps/Step.css +2 -2
- package/dist/Steps/Step.d.ts +1 -1
- package/dist/Steps/Step.js +144 -87
- package/dist/Steps/Step.types.js +15 -5
- package/dist/Steps/Steps.d.ts +1 -1
- package/dist/Steps/Steps.js +107 -46
- package/dist/Steps/Steps.types.js +15 -5
- package/dist/Steps/StepsContext.js +40 -10
- package/dist/Steps/index.js +42 -50
- package/dist/Swiper/Swiper.d.ts +1 -1
- package/dist/Swiper/Swiper.js +149 -82
- package/dist/Swiper/Swiper.miniapp.d.ts +2 -0
- package/dist/Swiper/Swiper.miniapp.js +24 -0
- package/dist/Swiper/Swiper.types.js +15 -5
- package/dist/Swiper/SwiperItem.js +66 -28
- package/dist/Swiper/SwiperItem.miniapp.d.ts +2 -0
- package/dist/Swiper/SwiperItem.miniapp.js +24 -0
- package/dist/Swiper/index.js +40 -38
- package/dist/Switch/Switch.css +1 -1
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/Switch.js +121 -48
- package/dist/Switch/Switch.types.js +15 -5
- package/dist/Switch/index.js +38 -30
- package/dist/TabBar/TabBar.d.ts +1 -1
- package/dist/TabBar/TabBar.js +95 -37
- package/dist/TabBar/TabBarContext.js +24 -8
- package/dist/TabBar/TabBarItem.d.ts +1 -1
- package/dist/TabBar/TabBarItem.js +123 -59
- package/dist/TabBar/index.js +39 -32
- package/dist/TabBar/index.types.js +15 -5
- package/dist/Tabs/Tab.d.ts +1 -1
- package/dist/Tabs/Tab.js +104 -52
- package/dist/Tabs/Tab.types.js +15 -5
- package/dist/Tabs/TabPanel.d.ts +1 -1
- package/dist/Tabs/TabPanel.js +76 -31
- package/dist/Tabs/TabPanel.types.js +15 -5
- package/dist/Tabs/Tabs.css +10 -3
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/Tabs/Tabs.js +177 -127
- package/dist/Tabs/Tabs.types.js +15 -5
- package/dist/Tabs/TabsContext.d.ts +2 -2
- package/dist/Tabs/TabsContext.js +42 -12
- package/dist/Tabs/index.js +48 -71
- package/dist/Tabs/utils/bound.js +24 -8
- package/dist/Tag/Tag.d.ts +1 -1
- package/dist/Tag/Tag.js +102 -47
- package/dist/Tag/Tag.types.js +15 -5
- package/dist/Tag/TagGroup.css +1 -1
- package/dist/Tag/TagGroup.d.ts +1 -1
- package/dist/Tag/TagGroup.js +74 -25
- package/dist/Tag/TagGroup.types.js +15 -5
- package/dist/Tag/index.js +41 -44
- package/dist/TextArea/TextArea.d.ts +1 -1
- package/dist/TextArea/TextArea.js +203 -137
- package/dist/TextArea/TextArea.types.js +15 -5
- package/dist/TextArea/index.js +37 -30
- package/dist/Transition/Transition.js +61 -17
- package/dist/Transition/Transition.miniapp.js +62 -17
- package/dist/Transition/Transition.types.js +15 -5
- package/dist/Transition/TransitionCore.js +243 -161
- package/dist/Transition/index.js +38 -30
- package/dist/index.js +98 -444
- package/es/ActionSheet/ActionSheet.js +79 -54
- package/es/ActionSheet/ActionSheet.types.js +0 -1
- package/es/ActionSheet/ActionSheetContext.js +7 -4
- package/es/ActionSheet/ActionSheetItem.d.ts +1 -1
- package/es/ActionSheet/ActionSheetItem.js +86 -45
- package/es/ActionSheet/ActionSheetItem.types.js +0 -1
- package/es/ActionSheet/index.js +8 -3
- package/es/Alert/Alert.d.ts +1 -1
- package/es/Alert/Alert.js +145 -99
- package/es/Alert/Alert.types.js +0 -1
- package/es/Alert/index.js +5 -2
- package/es/Avatar/Avatar.d.ts +1 -1
- package/es/Avatar/Avatar.js +102 -50
- package/es/Avatar/Avatar.types.js +0 -1
- package/es/Avatar/AvatarGroup.d.ts +1 -1
- package/es/Avatar/AvatarGroup.js +96 -61
- package/es/Avatar/AvatarGroup.types.js +0 -1
- package/es/Avatar/index.js +7 -3
- package/es/Backdrop/Backdrop.d.ts +1 -1
- package/es/Backdrop/Backdrop.js +67 -28
- package/es/Backdrop/Backdrop.types.js +0 -1
- package/es/Backdrop/index.js +6 -2
- package/es/Badge/Badge.d.ts +1 -1
- package/es/Badge/Badge.js +82 -34
- package/es/Badge/Badge.types.js +0 -1
- package/es/Badge/index.js +6 -2
- package/es/Button/Button.css +31 -7
- package/es/Button/Button.d.ts +1 -1
- package/es/Button/Button.js +84 -42
- package/es/Button/Button.types.js +0 -1
- package/es/Button/index.js +6 -2
- package/es/Calendar/Calendar.d.ts +1 -1
- package/es/Calendar/Calendar.js +272 -264
- package/es/Calendar/Calendar.types.js +0 -1
- package/es/Calendar/index.js +6 -2
- package/es/Calendar/utils.js +27 -42
- package/es/Card/Card.d.ts +1 -1
- package/es/Card/Card.js +47 -19
- package/es/Card/Card.types.js +0 -1
- package/es/Card/CardContent.d.ts +1 -1
- package/es/Card/CardContent.js +42 -18
- package/es/Card/CardContent.types.js +0 -1
- package/es/Card/CardFooter.d.ts +1 -1
- package/es/Card/CardFooter.js +42 -18
- package/es/Card/CardFooter.types.js +0 -1
- package/es/Card/CardHeader.d.ts +1 -1
- package/es/Card/CardHeader.js +65 -51
- package/es/Card/CardHeader.types.js +0 -1
- package/es/Card/index.js +9 -3
- package/es/Checkbox/Checkbox.d.ts +1 -1
- package/es/Checkbox/Checkbox.js +123 -90
- package/es/Checkbox/Checkbox.types.js +0 -1
- package/es/Checkbox/CheckboxContext.js +8 -4
- package/es/Checkbox/CheckboxGroup.d.ts +1 -1
- package/es/Checkbox/CheckboxGroup.js +81 -58
- package/es/Checkbox/index.js +7 -2
- package/es/CitySelector/CitySelector.d.ts +1 -1
- package/es/CitySelector/CitySelector.js +56 -35
- package/es/CitySelector/CitySelector.miniapp.d.ts +1 -1
- package/es/CitySelector/CitySelector.miniapp.js +95 -74
- package/es/CitySelector/CitySelector.types.js +0 -1
- package/es/CitySelector/CitySelectorCore.js +203 -187
- package/es/CitySelector/Selector/index.js +17 -11
- package/es/CitySelector/index.js +6 -2
- package/es/Countdown/Countdown.css +11 -1
- package/es/Countdown/Countdown.d.ts +1 -1
- package/es/Countdown/Countdown.js +108 -85
- package/es/Countdown/Countdown.types.js +0 -1
- package/es/Countdown/index.js +6 -2
- package/es/Countdown/useCountdown.js +26 -43
- package/es/Countdown/utils.js +78 -105
- package/es/Divider/Divider.d.ts +1 -1
- package/es/Divider/Divider.js +45 -41
- package/es/Divider/Divider.types.js +0 -1
- package/es/Divider/index.js +6 -2
- package/es/Drawer/Drawer.css +0 -1
- package/es/Drawer/Drawer.js +107 -61
- package/es/Drawer/Drawer.types.js +0 -1
- package/es/Drawer/index.js +6 -2
- package/es/Fade/Fade.js +95 -55
- package/es/Fade/Fade.types.js +0 -1
- package/es/Fade/index.js +7 -3
- package/es/IconButton/IconButton.css +26 -6
- package/es/IconButton/IconButton.d.ts +1 -1
- package/es/IconButton/IconButton.js +87 -41
- package/es/IconButton/IconButton.types.js +0 -1
- package/es/IconButton/index.js +6 -2
- package/es/Image/Image.d.ts +1 -1
- package/es/Image/Image.js +136 -106
- package/es/Image/Image.types.js +0 -1
- package/es/Image/index.js +7 -3
- package/es/Input/Input.d.ts +1 -1
- package/es/Input/Input.js +136 -103
- package/es/Input/Input.types.js +0 -1
- package/es/Input/index.js +6 -2
- package/es/List/List.d.ts +1 -1
- package/es/List/List.js +68 -28
- package/es/List/List.types.js +0 -1
- package/es/List/ListContext.js +6 -3
- package/es/List/ListItem.d.ts +1 -1
- package/es/List/ListItem.js +75 -42
- package/es/List/ListItem.types.js +0 -1
- package/es/List/ListItemContent.d.ts +1 -1
- package/es/List/ListItemContent.js +55 -28
- package/es/List/ListItemContent.types.js +0 -1
- package/es/List/ListItemExtra.d.ts +1 -1
- package/es/List/ListItemExtra.js +43 -20
- package/es/List/ListItemExtra.types.js +0 -1
- package/es/List/ListItemFooter.d.ts +1 -1
- package/es/List/ListItemFooter.js +43 -20
- package/es/List/ListItemFooter.types.js +0 -1
- package/es/List/ListItemHeader.d.ts +1 -1
- package/es/List/ListItemHeader.js +43 -20
- package/es/List/ListItemHeader.types.js +0 -1
- package/es/List/index.js +10 -2
- package/es/Loading/Loading.d.ts +1 -1
- package/es/Loading/Loading.js +56 -28
- package/es/Loading/Loading.types.js +0 -1
- package/es/Loading/index.js +6 -2
- package/es/Modal/Modal.d.ts +1 -1
- package/es/Modal/Modal.js +93 -70
- package/es/Modal/Modal.miniapp.d.ts +3 -3
- package/es/Modal/Modal.miniapp.js +104 -67
- package/es/Modal/Modal.types.js +0 -1
- package/es/Modal/index.js +7 -3
- package/es/NavBar/NavBar.d.ts +1 -1
- package/es/NavBar/NavBar.js +95 -67
- package/es/NavBar/NavBar.types.js +0 -1
- package/es/NavBar/index.js +6 -2
- package/es/Picker/Picker.d.ts +1 -1
- package/es/Picker/Picker.js +139 -124
- package/es/Picker/Picker.types.js +0 -1
- package/es/Picker/PickerPanel.css +9 -1
- package/es/Picker/PickerPanel.d.ts +1 -1
- package/es/Picker/PickerPanel.js +228 -226
- package/es/Picker/index.js +6 -2
- package/es/Picker/utils.js +28 -47
- package/es/Portal/Portal.js +31 -10
- package/es/Portal/Portal.miniapp.js +40 -23
- package/es/Portal/Portal.types.js +0 -1
- package/es/Portal/PortalCore.js +42 -53
- package/es/Portal/index.js +7 -3
- package/es/Progress/Progress.d.ts +1 -1
- package/es/Progress/Progress.js +76 -67
- package/es/Progress/Progress.types.js +0 -1
- package/es/Progress/index.js +7 -3
- package/es/Radio/Radio.d.ts +1 -1
- package/es/Radio/Radio.js +133 -102
- package/es/Radio/Radio.types.js +0 -1
- package/es/Radio/RadioButtonIcon.js +38 -28
- package/es/Radio/RadioContext.js +8 -4
- package/es/Radio/RadioGroup.d.ts +1 -1
- package/es/Radio/RadioGroup.js +71 -44
- package/es/Radio/index.js +7 -2
- package/es/Rating/Rating.d.ts +1 -1
- package/es/Rating/Rating.js +132 -89
- package/es/Rating/Rating.types.js +0 -1
- package/es/Rating/index.js +6 -2
- package/es/ScrollView/ScrollView.d.ts +1 -1
- package/es/ScrollView/ScrollView.js +204 -185
- package/{dist/ScrollView/index.miniapp.d.ts → es/ScrollView/ScrollView.miniapp.d.ts} +0 -1
- package/es/ScrollView/ScrollView.miniapp.js +5 -0
- package/es/ScrollView/ScrollView.types.js +0 -1
- package/es/ScrollView/index.js +7 -3
- package/es/Select/Select.d.ts +1 -1
- package/es/Select/Select.js +167 -138
- package/es/Select/Select.types.js +0 -1
- package/es/Select/SelectOption.d.ts +1 -1
- package/es/Select/SelectOption.js +66 -41
- package/es/Select/index.js +6 -2
- package/es/Select/selectContext.js +6 -3
- package/es/Skeleton/Skeleton.css +7 -2
- package/es/Skeleton/Skeleton.d.ts +1 -1
- package/es/Skeleton/Skeleton.js +76 -35
- package/es/Skeleton/Skeleton.types.js +0 -1
- package/es/Skeleton/index.js +7 -3
- package/es/Slide/Slide.js +110 -67
- package/es/Slide/Slide.types.js +0 -1
- package/es/Slide/index.js +7 -3
- package/es/Slider/Slider.css +2 -2
- package/es/Slider/Slider.d.ts +1 -1
- package/es/Slider/Slider.js +236 -244
- package/es/Slider/Slider.types.js +0 -1
- package/es/Slider/index.js +6 -2
- package/es/Slider/utils.js +13 -22
- package/es/Stack/Stack.css +0 -1
- package/es/Stack/Stack.d.ts +1 -1
- package/es/Stack/Stack.js +78 -47
- package/es/Stack/Stack.types.js +0 -1
- package/es/Stack/demo/StackDemo.js +123 -126
- package/es/Stack/index.js +7 -3
- package/es/Steps/Step.css +2 -2
- package/es/Steps/Step.d.ts +1 -1
- package/es/Steps/Step.js +130 -77
- package/es/Steps/Step.types.js +0 -1
- package/es/Steps/Steps.d.ts +1 -1
- package/es/Steps/Steps.js +83 -44
- package/es/Steps/Steps.types.js +0 -1
- package/es/Steps/StepsContext.js +8 -4
- package/es/Steps/index.js +8 -3
- package/es/Swiper/Swiper.d.ts +1 -1
- package/es/Swiper/Swiper.js +136 -99
- package/es/Swiper/Swiper.miniapp.d.ts +2 -0
- package/es/Swiper/Swiper.miniapp.js +5 -0
- package/es/Swiper/Swiper.types.js +0 -1
- package/es/Swiper/SwiperItem.js +40 -23
- package/es/Swiper/SwiperItem.miniapp.d.ts +2 -0
- package/es/Swiper/SwiperItem.miniapp.js +5 -0
- package/es/Swiper/index.js +8 -3
- package/es/Switch/Switch.css +1 -1
- package/es/Switch/Switch.d.ts +1 -1
- package/es/Switch/Switch.js +110 -67
- package/es/Switch/Switch.types.js +0 -1
- package/es/Switch/index.js +7 -3
- package/es/TabBar/TabBar.d.ts +1 -1
- package/es/TabBar/TabBar.js +72 -36
- package/es/TabBar/TabBarContext.js +6 -3
- package/es/TabBar/TabBarItem.d.ts +1 -1
- package/es/TabBar/TabBarItem.js +97 -52
- package/es/TabBar/index.js +5 -2
- package/es/TabBar/index.types.js +0 -1
- package/es/Tabs/Tab.d.ts +1 -1
- package/es/Tabs/Tab.js +77 -44
- package/es/Tabs/Tab.types.js +0 -1
- package/es/Tabs/TabPanel.d.ts +1 -1
- package/es/Tabs/TabPanel.js +50 -25
- package/es/Tabs/TabPanel.types.js +0 -1
- package/es/Tabs/Tabs.css +10 -3
- package/es/Tabs/Tabs.d.ts +1 -1
- package/es/Tabs/Tabs.js +180 -163
- package/es/Tabs/Tabs.types.js +0 -1
- package/es/Tabs/TabsContext.d.ts +2 -2
- package/es/Tabs/TabsContext.js +10 -6
- package/es/Tabs/index.js +10 -4
- package/es/Tabs/utils/bound.js +8 -5
- package/es/Tag/Tag.d.ts +1 -1
- package/es/Tag/Tag.js +85 -53
- package/es/Tag/Tag.types.js +0 -1
- package/es/Tag/TagGroup.css +1 -1
- package/es/Tag/TagGroup.d.ts +1 -1
- package/es/Tag/TagGroup.js +47 -19
- package/es/Tag/TagGroup.types.js +0 -1
- package/es/Tag/index.js +5 -2
- package/es/TextArea/TextArea.d.ts +1 -1
- package/es/TextArea/TextArea.js +177 -139
- package/es/TextArea/TextArea.types.js +0 -1
- package/es/TextArea/index.js +6 -2
- package/es/Transition/Transition.js +31 -11
- package/es/Transition/Transition.miniapp.js +32 -11
- package/es/Transition/Transition.types.js +0 -1
- package/es/Transition/TransitionCore.js +218 -272
- package/es/Transition/index.js +7 -3
- package/es/index.js +1 -1
- package/package.json +15 -14
- package/dist/ScrollView/index.miniapp.js +0 -14
- package/dist/Swiper/index.miniapp.d.ts +0 -8
- package/dist/Swiper/index.miniapp.js +0 -23
- package/es/ScrollView/index.miniapp.d.ts +0 -3
- package/es/Swiper/index.miniapp.d.ts +0 -8
- package/es/Swiper/index.miniapp.js +0 -6
package/dist/index.js
CHANGED
|
@@ -1,445 +1,99 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var src_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(src_exports);
|
|
17
|
+
__reExport(src_exports, require("./ActionSheet"), module.exports);
|
|
18
|
+
__reExport(src_exports, require("./Alert"), module.exports);
|
|
19
|
+
__reExport(src_exports, require("./Avatar"), module.exports);
|
|
20
|
+
__reExport(src_exports, require("./Backdrop"), module.exports);
|
|
21
|
+
__reExport(src_exports, require("./Badge"), module.exports);
|
|
22
|
+
__reExport(src_exports, require("./Button"), module.exports);
|
|
23
|
+
__reExport(src_exports, require("./Calendar"), module.exports);
|
|
24
|
+
__reExport(src_exports, require("./Card"), module.exports);
|
|
25
|
+
__reExport(src_exports, require("./Checkbox"), module.exports);
|
|
26
|
+
__reExport(src_exports, require("./Divider"), module.exports);
|
|
27
|
+
__reExport(src_exports, require("./Drawer"), module.exports);
|
|
28
|
+
__reExport(src_exports, require("./Fade"), module.exports);
|
|
29
|
+
__reExport(src_exports, require("./IconButton"), module.exports);
|
|
30
|
+
__reExport(src_exports, require("./Image"), module.exports);
|
|
31
|
+
__reExport(src_exports, require("./Input"), module.exports);
|
|
32
|
+
__reExport(src_exports, require("./List"), module.exports);
|
|
33
|
+
__reExport(src_exports, require("./Modal"), module.exports);
|
|
34
|
+
__reExport(src_exports, require("./Portal"), module.exports);
|
|
35
|
+
__reExport(src_exports, require("./Progress"), module.exports);
|
|
36
|
+
__reExport(src_exports, require("./Radio"), module.exports);
|
|
37
|
+
__reExport(src_exports, require("./Rating"), module.exports);
|
|
38
|
+
__reExport(src_exports, require("./ScrollView"), module.exports);
|
|
39
|
+
__reExport(src_exports, require("./Select"), module.exports);
|
|
40
|
+
__reExport(src_exports, require("./Skeleton"), module.exports);
|
|
41
|
+
__reExport(src_exports, require("./Slide"), module.exports);
|
|
42
|
+
__reExport(src_exports, require("./Slider"), module.exports);
|
|
43
|
+
__reExport(src_exports, require("./Stack"), module.exports);
|
|
44
|
+
__reExport(src_exports, require("./Steps"), module.exports);
|
|
45
|
+
__reExport(src_exports, require("./Swiper"), module.exports);
|
|
46
|
+
__reExport(src_exports, require("./Switch"), module.exports);
|
|
47
|
+
__reExport(src_exports, require("./Tabs"), module.exports);
|
|
48
|
+
__reExport(src_exports, require("./Tag"), module.exports);
|
|
49
|
+
__reExport(src_exports, require("./TextArea"), module.exports);
|
|
50
|
+
__reExport(src_exports, require("./Transition"), module.exports);
|
|
51
|
+
__reExport(src_exports, require("./NavBar"), module.exports);
|
|
52
|
+
__reExport(src_exports, require("./Loading"), module.exports);
|
|
53
|
+
__reExport(src_exports, require("./TabBar"), module.exports);
|
|
54
|
+
__reExport(src_exports, require("./Countdown"), module.exports);
|
|
55
|
+
__reExport(src_exports, require("./CitySelector"), module.exports);
|
|
56
|
+
__reExport(src_exports, require("./Picker"), module.exports);
|
|
57
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
+
0 && (module.exports = {
|
|
59
|
+
...require("./ActionSheet"),
|
|
60
|
+
...require("./Alert"),
|
|
61
|
+
...require("./Avatar"),
|
|
62
|
+
...require("./Backdrop"),
|
|
63
|
+
...require("./Badge"),
|
|
64
|
+
...require("./Button"),
|
|
65
|
+
...require("./Calendar"),
|
|
66
|
+
...require("./Card"),
|
|
67
|
+
...require("./Checkbox"),
|
|
68
|
+
...require("./Divider"),
|
|
69
|
+
...require("./Drawer"),
|
|
70
|
+
...require("./Fade"),
|
|
71
|
+
...require("./IconButton"),
|
|
72
|
+
...require("./Image"),
|
|
73
|
+
...require("./Input"),
|
|
74
|
+
...require("./List"),
|
|
75
|
+
...require("./Modal"),
|
|
76
|
+
...require("./Portal"),
|
|
77
|
+
...require("./Progress"),
|
|
78
|
+
...require("./Radio"),
|
|
79
|
+
...require("./Rating"),
|
|
80
|
+
...require("./ScrollView"),
|
|
81
|
+
...require("./Select"),
|
|
82
|
+
...require("./Skeleton"),
|
|
83
|
+
...require("./Slide"),
|
|
84
|
+
...require("./Slider"),
|
|
85
|
+
...require("./Stack"),
|
|
86
|
+
...require("./Steps"),
|
|
87
|
+
...require("./Swiper"),
|
|
88
|
+
...require("./Switch"),
|
|
89
|
+
...require("./Tabs"),
|
|
90
|
+
...require("./Tag"),
|
|
91
|
+
...require("./TextArea"),
|
|
92
|
+
...require("./Transition"),
|
|
93
|
+
...require("./NavBar"),
|
|
94
|
+
...require("./Loading"),
|
|
95
|
+
...require("./TabBar"),
|
|
96
|
+
...require("./Countdown"),
|
|
97
|
+
...require("./CitySelector"),
|
|
98
|
+
...require("./Picker")
|
|
5
99
|
});
|
|
6
|
-
var _ActionSheet = require("./ActionSheet");
|
|
7
|
-
Object.keys(_ActionSheet).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _ActionSheet[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _ActionSheet[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _Alert = require("./Alert");
|
|
18
|
-
Object.keys(_Alert).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _Alert[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _Alert[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
var _Avatar = require("./Avatar");
|
|
29
|
-
Object.keys(_Avatar).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _Avatar[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _Avatar[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
var _Backdrop = require("./Backdrop");
|
|
40
|
-
Object.keys(_Backdrop).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _Backdrop[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _Backdrop[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var _Badge = require("./Badge");
|
|
51
|
-
Object.keys(_Badge).forEach(function (key) {
|
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] === _Badge[key]) return;
|
|
54
|
-
Object.defineProperty(exports, key, {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _Badge[key];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
var _Button = require("./Button");
|
|
62
|
-
Object.keys(_Button).forEach(function (key) {
|
|
63
|
-
if (key === "default" || key === "__esModule") return;
|
|
64
|
-
if (key in exports && exports[key] === _Button[key]) return;
|
|
65
|
-
Object.defineProperty(exports, key, {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () {
|
|
68
|
-
return _Button[key];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
var _Calendar = require("./Calendar");
|
|
73
|
-
Object.keys(_Calendar).forEach(function (key) {
|
|
74
|
-
if (key === "default" || key === "__esModule") return;
|
|
75
|
-
if (key in exports && exports[key] === _Calendar[key]) return;
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _Calendar[key];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
var _Card = require("./Card");
|
|
84
|
-
Object.keys(_Card).forEach(function (key) {
|
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (key in exports && exports[key] === _Card[key]) return;
|
|
87
|
-
Object.defineProperty(exports, key, {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () {
|
|
90
|
-
return _Card[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
var _Checkbox = require("./Checkbox");
|
|
95
|
-
Object.keys(_Checkbox).forEach(function (key) {
|
|
96
|
-
if (key === "default" || key === "__esModule") return;
|
|
97
|
-
if (key in exports && exports[key] === _Checkbox[key]) return;
|
|
98
|
-
Object.defineProperty(exports, key, {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function () {
|
|
101
|
-
return _Checkbox[key];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
var _Divider = require("./Divider");
|
|
106
|
-
Object.keys(_Divider).forEach(function (key) {
|
|
107
|
-
if (key === "default" || key === "__esModule") return;
|
|
108
|
-
if (key in exports && exports[key] === _Divider[key]) return;
|
|
109
|
-
Object.defineProperty(exports, key, {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () {
|
|
112
|
-
return _Divider[key];
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
var _Drawer = require("./Drawer");
|
|
117
|
-
Object.keys(_Drawer).forEach(function (key) {
|
|
118
|
-
if (key === "default" || key === "__esModule") return;
|
|
119
|
-
if (key in exports && exports[key] === _Drawer[key]) return;
|
|
120
|
-
Object.defineProperty(exports, key, {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () {
|
|
123
|
-
return _Drawer[key];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
var _Fade = require("./Fade");
|
|
128
|
-
Object.keys(_Fade).forEach(function (key) {
|
|
129
|
-
if (key === "default" || key === "__esModule") return;
|
|
130
|
-
if (key in exports && exports[key] === _Fade[key]) return;
|
|
131
|
-
Object.defineProperty(exports, key, {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () {
|
|
134
|
-
return _Fade[key];
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
var _IconButton = require("./IconButton");
|
|
139
|
-
Object.keys(_IconButton).forEach(function (key) {
|
|
140
|
-
if (key === "default" || key === "__esModule") return;
|
|
141
|
-
if (key in exports && exports[key] === _IconButton[key]) return;
|
|
142
|
-
Object.defineProperty(exports, key, {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function () {
|
|
145
|
-
return _IconButton[key];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
var _Image = require("./Image");
|
|
150
|
-
Object.keys(_Image).forEach(function (key) {
|
|
151
|
-
if (key === "default" || key === "__esModule") return;
|
|
152
|
-
if (key in exports && exports[key] === _Image[key]) return;
|
|
153
|
-
Object.defineProperty(exports, key, {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () {
|
|
156
|
-
return _Image[key];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
var _Input = require("./Input");
|
|
161
|
-
Object.keys(_Input).forEach(function (key) {
|
|
162
|
-
if (key === "default" || key === "__esModule") return;
|
|
163
|
-
if (key in exports && exports[key] === _Input[key]) return;
|
|
164
|
-
Object.defineProperty(exports, key, {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function () {
|
|
167
|
-
return _Input[key];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
var _List = require("./List");
|
|
172
|
-
Object.keys(_List).forEach(function (key) {
|
|
173
|
-
if (key === "default" || key === "__esModule") return;
|
|
174
|
-
if (key in exports && exports[key] === _List[key]) return;
|
|
175
|
-
Object.defineProperty(exports, key, {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function () {
|
|
178
|
-
return _List[key];
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
var _Modal = require("./Modal");
|
|
183
|
-
Object.keys(_Modal).forEach(function (key) {
|
|
184
|
-
if (key === "default" || key === "__esModule") return;
|
|
185
|
-
if (key in exports && exports[key] === _Modal[key]) return;
|
|
186
|
-
Object.defineProperty(exports, key, {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function () {
|
|
189
|
-
return _Modal[key];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
var _Portal = require("./Portal");
|
|
194
|
-
Object.keys(_Portal).forEach(function (key) {
|
|
195
|
-
if (key === "default" || key === "__esModule") return;
|
|
196
|
-
if (key in exports && exports[key] === _Portal[key]) return;
|
|
197
|
-
Object.defineProperty(exports, key, {
|
|
198
|
-
enumerable: true,
|
|
199
|
-
get: function () {
|
|
200
|
-
return _Portal[key];
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
var _Progress = require("./Progress");
|
|
205
|
-
Object.keys(_Progress).forEach(function (key) {
|
|
206
|
-
if (key === "default" || key === "__esModule") return;
|
|
207
|
-
if (key in exports && exports[key] === _Progress[key]) return;
|
|
208
|
-
Object.defineProperty(exports, key, {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function () {
|
|
211
|
-
return _Progress[key];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
var _Radio = require("./Radio");
|
|
216
|
-
Object.keys(_Radio).forEach(function (key) {
|
|
217
|
-
if (key === "default" || key === "__esModule") return;
|
|
218
|
-
if (key in exports && exports[key] === _Radio[key]) return;
|
|
219
|
-
Object.defineProperty(exports, key, {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get: function () {
|
|
222
|
-
return _Radio[key];
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
});
|
|
226
|
-
var _Rating = require("./Rating");
|
|
227
|
-
Object.keys(_Rating).forEach(function (key) {
|
|
228
|
-
if (key === "default" || key === "__esModule") return;
|
|
229
|
-
if (key in exports && exports[key] === _Rating[key]) return;
|
|
230
|
-
Object.defineProperty(exports, key, {
|
|
231
|
-
enumerable: true,
|
|
232
|
-
get: function () {
|
|
233
|
-
return _Rating[key];
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
var _ScrollView = require("./ScrollView");
|
|
238
|
-
Object.keys(_ScrollView).forEach(function (key) {
|
|
239
|
-
if (key === "default" || key === "__esModule") return;
|
|
240
|
-
if (key in exports && exports[key] === _ScrollView[key]) return;
|
|
241
|
-
Object.defineProperty(exports, key, {
|
|
242
|
-
enumerable: true,
|
|
243
|
-
get: function () {
|
|
244
|
-
return _ScrollView[key];
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
var _Select = require("./Select");
|
|
249
|
-
Object.keys(_Select).forEach(function (key) {
|
|
250
|
-
if (key === "default" || key === "__esModule") return;
|
|
251
|
-
if (key in exports && exports[key] === _Select[key]) return;
|
|
252
|
-
Object.defineProperty(exports, key, {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function () {
|
|
255
|
-
return _Select[key];
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
});
|
|
259
|
-
var _Skeleton = require("./Skeleton");
|
|
260
|
-
Object.keys(_Skeleton).forEach(function (key) {
|
|
261
|
-
if (key === "default" || key === "__esModule") return;
|
|
262
|
-
if (key in exports && exports[key] === _Skeleton[key]) return;
|
|
263
|
-
Object.defineProperty(exports, key, {
|
|
264
|
-
enumerable: true,
|
|
265
|
-
get: function () {
|
|
266
|
-
return _Skeleton[key];
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
});
|
|
270
|
-
var _Slide = require("./Slide");
|
|
271
|
-
Object.keys(_Slide).forEach(function (key) {
|
|
272
|
-
if (key === "default" || key === "__esModule") return;
|
|
273
|
-
if (key in exports && exports[key] === _Slide[key]) return;
|
|
274
|
-
Object.defineProperty(exports, key, {
|
|
275
|
-
enumerable: true,
|
|
276
|
-
get: function () {
|
|
277
|
-
return _Slide[key];
|
|
278
|
-
}
|
|
279
|
-
});
|
|
280
|
-
});
|
|
281
|
-
var _Slider = require("./Slider");
|
|
282
|
-
Object.keys(_Slider).forEach(function (key) {
|
|
283
|
-
if (key === "default" || key === "__esModule") return;
|
|
284
|
-
if (key in exports && exports[key] === _Slider[key]) return;
|
|
285
|
-
Object.defineProperty(exports, key, {
|
|
286
|
-
enumerable: true,
|
|
287
|
-
get: function () {
|
|
288
|
-
return _Slider[key];
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
var _Stack = require("./Stack");
|
|
293
|
-
Object.keys(_Stack).forEach(function (key) {
|
|
294
|
-
if (key === "default" || key === "__esModule") return;
|
|
295
|
-
if (key in exports && exports[key] === _Stack[key]) return;
|
|
296
|
-
Object.defineProperty(exports, key, {
|
|
297
|
-
enumerable: true,
|
|
298
|
-
get: function () {
|
|
299
|
-
return _Stack[key];
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
var _Steps = require("./Steps");
|
|
304
|
-
Object.keys(_Steps).forEach(function (key) {
|
|
305
|
-
if (key === "default" || key === "__esModule") return;
|
|
306
|
-
if (key in exports && exports[key] === _Steps[key]) return;
|
|
307
|
-
Object.defineProperty(exports, key, {
|
|
308
|
-
enumerable: true,
|
|
309
|
-
get: function () {
|
|
310
|
-
return _Steps[key];
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
});
|
|
314
|
-
var _Swiper = require("./Swiper");
|
|
315
|
-
Object.keys(_Swiper).forEach(function (key) {
|
|
316
|
-
if (key === "default" || key === "__esModule") return;
|
|
317
|
-
if (key in exports && exports[key] === _Swiper[key]) return;
|
|
318
|
-
Object.defineProperty(exports, key, {
|
|
319
|
-
enumerable: true,
|
|
320
|
-
get: function () {
|
|
321
|
-
return _Swiper[key];
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
var _Switch = require("./Switch");
|
|
326
|
-
Object.keys(_Switch).forEach(function (key) {
|
|
327
|
-
if (key === "default" || key === "__esModule") return;
|
|
328
|
-
if (key in exports && exports[key] === _Switch[key]) return;
|
|
329
|
-
Object.defineProperty(exports, key, {
|
|
330
|
-
enumerable: true,
|
|
331
|
-
get: function () {
|
|
332
|
-
return _Switch[key];
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
});
|
|
336
|
-
var _Tabs = require("./Tabs");
|
|
337
|
-
Object.keys(_Tabs).forEach(function (key) {
|
|
338
|
-
if (key === "default" || key === "__esModule") return;
|
|
339
|
-
if (key in exports && exports[key] === _Tabs[key]) return;
|
|
340
|
-
Object.defineProperty(exports, key, {
|
|
341
|
-
enumerable: true,
|
|
342
|
-
get: function () {
|
|
343
|
-
return _Tabs[key];
|
|
344
|
-
}
|
|
345
|
-
});
|
|
346
|
-
});
|
|
347
|
-
var _Tag = require("./Tag");
|
|
348
|
-
Object.keys(_Tag).forEach(function (key) {
|
|
349
|
-
if (key === "default" || key === "__esModule") return;
|
|
350
|
-
if (key in exports && exports[key] === _Tag[key]) return;
|
|
351
|
-
Object.defineProperty(exports, key, {
|
|
352
|
-
enumerable: true,
|
|
353
|
-
get: function () {
|
|
354
|
-
return _Tag[key];
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
});
|
|
358
|
-
var _TextArea = require("./TextArea");
|
|
359
|
-
Object.keys(_TextArea).forEach(function (key) {
|
|
360
|
-
if (key === "default" || key === "__esModule") return;
|
|
361
|
-
if (key in exports && exports[key] === _TextArea[key]) return;
|
|
362
|
-
Object.defineProperty(exports, key, {
|
|
363
|
-
enumerable: true,
|
|
364
|
-
get: function () {
|
|
365
|
-
return _TextArea[key];
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
|
-
});
|
|
369
|
-
var _Transition = require("./Transition");
|
|
370
|
-
Object.keys(_Transition).forEach(function (key) {
|
|
371
|
-
if (key === "default" || key === "__esModule") return;
|
|
372
|
-
if (key in exports && exports[key] === _Transition[key]) return;
|
|
373
|
-
Object.defineProperty(exports, key, {
|
|
374
|
-
enumerable: true,
|
|
375
|
-
get: function () {
|
|
376
|
-
return _Transition[key];
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
});
|
|
380
|
-
var _NavBar = require("./NavBar");
|
|
381
|
-
Object.keys(_NavBar).forEach(function (key) {
|
|
382
|
-
if (key === "default" || key === "__esModule") return;
|
|
383
|
-
if (key in exports && exports[key] === _NavBar[key]) return;
|
|
384
|
-
Object.defineProperty(exports, key, {
|
|
385
|
-
enumerable: true,
|
|
386
|
-
get: function () {
|
|
387
|
-
return _NavBar[key];
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
|
-
});
|
|
391
|
-
var _Loading = require("./Loading");
|
|
392
|
-
Object.keys(_Loading).forEach(function (key) {
|
|
393
|
-
if (key === "default" || key === "__esModule") return;
|
|
394
|
-
if (key in exports && exports[key] === _Loading[key]) return;
|
|
395
|
-
Object.defineProperty(exports, key, {
|
|
396
|
-
enumerable: true,
|
|
397
|
-
get: function () {
|
|
398
|
-
return _Loading[key];
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
});
|
|
402
|
-
var _TabBar = require("./TabBar");
|
|
403
|
-
Object.keys(_TabBar).forEach(function (key) {
|
|
404
|
-
if (key === "default" || key === "__esModule") return;
|
|
405
|
-
if (key in exports && exports[key] === _TabBar[key]) return;
|
|
406
|
-
Object.defineProperty(exports, key, {
|
|
407
|
-
enumerable: true,
|
|
408
|
-
get: function () {
|
|
409
|
-
return _TabBar[key];
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
});
|
|
413
|
-
var _Countdown = require("./Countdown");
|
|
414
|
-
Object.keys(_Countdown).forEach(function (key) {
|
|
415
|
-
if (key === "default" || key === "__esModule") return;
|
|
416
|
-
if (key in exports && exports[key] === _Countdown[key]) return;
|
|
417
|
-
Object.defineProperty(exports, key, {
|
|
418
|
-
enumerable: true,
|
|
419
|
-
get: function () {
|
|
420
|
-
return _Countdown[key];
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
var _CitySelector = require("./CitySelector");
|
|
425
|
-
Object.keys(_CitySelector).forEach(function (key) {
|
|
426
|
-
if (key === "default" || key === "__esModule") return;
|
|
427
|
-
if (key in exports && exports[key] === _CitySelector[key]) return;
|
|
428
|
-
Object.defineProperty(exports, key, {
|
|
429
|
-
enumerable: true,
|
|
430
|
-
get: function () {
|
|
431
|
-
return _CitySelector[key];
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
});
|
|
435
|
-
var _Picker = require("./Picker");
|
|
436
|
-
Object.keys(_Picker).forEach(function (key) {
|
|
437
|
-
if (key === "default" || key === "__esModule") return;
|
|
438
|
-
if (key in exports && exports[key] === _Picker[key]) return;
|
|
439
|
-
Object.defineProperty(exports, key, {
|
|
440
|
-
enumerable: true,
|
|
441
|
-
get: function () {
|
|
442
|
-
return _Picker[key];
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
});
|
|
@@ -1,59 +1,84 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import clsx from "clsx";
|
|
30
|
+
import React from "react";
|
|
7
31
|
import Drawer from "../Drawer";
|
|
8
32
|
import ActionSheetContext from "./ActionSheetContext";
|
|
9
33
|
import "./ActionSheet.css";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onClick = _ref.onClick;
|
|
14
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className: "".concat(prefixCls, "-item ").concat(prefixCls, "-cancel"),
|
|
16
|
-
onClick: onClick
|
|
17
|
-
}, children);
|
|
34
|
+
const prefixCls = "bui-action-sheet";
|
|
35
|
+
const ActionSheetCancel = ({ children, onClick }) => {
|
|
36
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item ${prefixCls}-cancel`, onClick }, children);
|
|
18
37
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
const ActionSheet = React.forwardRef(
|
|
39
|
+
(props, ref) => {
|
|
40
|
+
const _a = props, {
|
|
41
|
+
open,
|
|
42
|
+
onClose,
|
|
43
|
+
cancelText,
|
|
44
|
+
className,
|
|
45
|
+
extra,
|
|
46
|
+
children,
|
|
47
|
+
onSelect
|
|
48
|
+
} = _a, others = __objRest(_a, [
|
|
49
|
+
"open",
|
|
50
|
+
"onClose",
|
|
51
|
+
"cancelText",
|
|
52
|
+
"className",
|
|
53
|
+
"extra",
|
|
54
|
+
"children",
|
|
55
|
+
"onSelect"
|
|
56
|
+
]);
|
|
57
|
+
const context = React.useMemo(() => {
|
|
58
|
+
return {
|
|
59
|
+
onSelect
|
|
60
|
+
};
|
|
61
|
+
}, []);
|
|
62
|
+
const onCancelClick = (event) => {
|
|
63
|
+
onClose(event, { from: "cancelText" });
|
|
31
64
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, children), cancelText && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
53
|
-
className: "".concat(prefixCls, "-gap")
|
|
54
|
-
}), /*#__PURE__*/React.createElement(ActionSheetCancel, {
|
|
55
|
-
onClick: onCancelClick
|
|
56
|
-
}, cancelText))));
|
|
57
|
-
});
|
|
58
|
-
ActionSheet.displayName = 'BuiActionSheet';
|
|
59
|
-
export default ActionSheet;
|
|
65
|
+
return /* @__PURE__ */ React.createElement(ActionSheetContext.Provider, { value: context }, /* @__PURE__ */ React.createElement(
|
|
66
|
+
Drawer,
|
|
67
|
+
__spreadValues({
|
|
68
|
+
ref,
|
|
69
|
+
open,
|
|
70
|
+
onClose,
|
|
71
|
+
className: clsx(prefixCls, className),
|
|
72
|
+
contentProps: { className: `${prefixCls}-content` }
|
|
73
|
+
}, others),
|
|
74
|
+
extra && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-extra` }, extra),
|
|
75
|
+
/* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item-wrapper` }, children),
|
|
76
|
+
cancelText && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-gap` }), /* @__PURE__ */ React.createElement(ActionSheetCancel, { onClick: onCancelClick }, cancelText))
|
|
77
|
+
));
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
ActionSheet.displayName = "BuiActionSheet";
|
|
81
|
+
var ActionSheet_default = ActionSheet;
|
|
82
|
+
export {
|
|
83
|
+
ActionSheet_default as default
|
|
84
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|