@bifrostui/react 1.4.8-beta.0 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionSheet/ActionSheet.css +16 -6
- package/dist/ActionSheet/ActionSheetItem.css +11 -17
- package/dist/ActionSheet/ActionSheetItem.js +3 -8
- package/dist/ActionSheet/ActionSheetItem.types.d.ts +2 -2
- package/dist/ActionSheet/index.css +89 -0
- package/dist/Alert/Alert.types.d.ts +3 -3
- package/dist/Alert/index.css +18 -14
- package/dist/Avatar/Avatar.css +16 -12
- package/dist/Avatar/Avatar.js +3 -8
- package/dist/Avatar/AvatarGroup.css +19 -15
- package/dist/Avatar/AvatarGroup.js +2 -6
- package/dist/Avatar/index.css +93 -0
- package/dist/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Backdrop/Backdrop.js +1 -1
- package/dist/Backdrop/{Backdrop.css → index.css} +6 -2
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +4 -9
- package/dist/Badge/Badge.types.d.ts +1 -1
- package/dist/Badge/{Badge.css → index.css} +47 -27
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/Breadcrumb/index.css +38 -0
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +6 -11
- package/dist/Button/Button.types.d.ts +8 -7
- package/{es/Button/Button.css → dist/Button/index.css} +93 -63
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js +10 -22
- package/dist/Calendar/Calendar.types.d.ts +0 -5
- package/dist/Calendar/{Calendar.css → index.css} +35 -31
- package/dist/Card/Card.css +9 -0
- package/dist/Card/CardContent.css +1 -2
- package/dist/Card/CardFooter.css +2 -4
- package/dist/Card/CardHeader.css +5 -5
- package/dist/Card/CardHeader.js +2 -2
- package/dist/Card/index.css +77 -0
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +4 -8
- package/dist/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/Checkbox/CheckboxGroup.js +5 -8
- package/dist/Checkbox/{Checkbox.css → index.css} +14 -10
- package/dist/CitySelector/CitySelector.miniapp.d.ts +0 -1
- package/dist/CitySelector/CitySelector.miniapp.js +0 -1
- package/dist/CitySelector/CitySelectorCore.d.ts +1 -1
- package/dist/CitySelector/CitySelectorCore.js +1 -1
- package/dist/CitySelector/Selector/index.css +4 -4
- package/{es/CitySelector/CitySelector.css → dist/CitySelector/index.css} +31 -27
- package/dist/Collapse/Collapse.d.ts +2 -2
- package/dist/Collapse/Collapse.js +9 -12
- package/{es/Collapse/Collapse.css → dist/Collapse/index.css} +1 -0
- package/dist/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanel.js +1 -1
- package/dist/CollapsePanel/CollapsePanelItem.js +45 -46
- package/{es/CollapsePanel/CollapsePanel.css → dist/CollapsePanel/index.css} +12 -10
- package/dist/Countdown/Countdown.d.ts +1 -1
- package/dist/Countdown/Countdown.js +6 -13
- package/{es/Countdown/Countdown.css → dist/Countdown/index.css} +12 -8
- package/dist/Dialog/FunctionalDialog.js +1 -1
- package/dist/Dialog/index.css +26 -23
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/Divider.js +9 -6
- package/{es/Divider/Divider.css → dist/Divider/index.css} +14 -10
- package/dist/Drawer/Drawer.d.ts +1 -1
- package/dist/Drawer/Drawer.js +5 -11
- package/dist/Drawer/{Drawer.css → index.css} +2 -0
- package/dist/Fade/Fade.js +52 -56
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/IconButton.js +7 -14
- package/dist/IconButton/IconButton.types.d.ts +4 -3
- package/{es/IconButton/IconButton.css → dist/IconButton/index.css} +79 -29
- package/dist/Image/Image.js +112 -119
- package/dist/Image/index.css +6 -2
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/Input.js +6 -12
- package/{es/Input/Input.css → dist/Input/index.css} +22 -18
- package/dist/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
- package/dist/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/dist/ItemSelector/ItemSelectorCore.d.ts +1 -1
- package/dist/ItemSelector/ItemSelectorCore.js +1 -1
- package/dist/List/List.css +7 -3
- package/dist/List/List.js +3 -8
- package/dist/List/ListItem.css +3 -3
- package/dist/List/ListItem.js +42 -44
- package/dist/List/ListItemContent.js +1 -4
- package/dist/List/ListItemExtra.js +9 -4
- package/dist/List/ListItemFooter.js +9 -4
- package/dist/List/ListItemHeader.js +9 -4
- package/dist/List/index.css +80 -0
- package/dist/Loading/Loading.d.ts +1 -1
- package/dist/Loading/Loading.js +14 -5
- package/{es/Loading/Loading.css → dist/Loading/index.css} +10 -6
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +1 -7
- package/dist/Modal/Modal.miniapp.d.ts +2 -2
- package/dist/Modal/Modal.miniapp.js +5 -11
- package/dist/NavBar/NavBar.d.ts +1 -1
- package/dist/NavBar/NavBar.js +1 -2
- package/dist/NavBar/index.css +65 -0
- package/dist/Picker/Picker.css +21 -21
- package/dist/Picker/Picker.js +6 -28
- package/dist/Picker/Picker.types.d.ts +4 -17
- package/dist/Picker/PickerPanel.css +8 -12
- package/dist/Picker/PickerPanel.js +39 -29
- package/dist/Picker/index.css +116 -0
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/Popover.js +28 -71
- package/{es/Popover/Popover.css → dist/Popover/index.css} +32 -28
- package/dist/Portal/Portal.miniapp.js +4 -7
- package/dist/Progress/Progress.d.ts +1 -1
- package/dist/Progress/Progress.js +1 -1
- package/dist/Progress/index.css +28 -0
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/Radio/Radio.js +3 -7
- package/dist/Radio/RadioButtonIcon.js +6 -1
- package/dist/Radio/RadioGroup.d.ts +1 -1
- package/dist/Radio/RadioGroup.js +1 -4
- package/dist/Radio/{Radio.css → index.css} +10 -7
- package/dist/Rating/Rating.d.ts +1 -1
- package/dist/Rating/Rating.js +9 -19
- package/{es/Rating/Rating.css → dist/Rating/index.css} +20 -7
- package/dist/ScrollView/ScrollView.d.ts +1 -1
- package/dist/ScrollView/ScrollView.js +12 -25
- package/dist/ScrollView/ScrollView.types.d.ts +1 -0
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/Select.js +43 -76
- package/dist/Select/SelectOption.d.ts +1 -1
- package/dist/Select/SelectOption.js +1 -1
- package/dist/Select/{Select.css → index.css} +30 -20
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/Skeleton.js +6 -10
- package/dist/Skeleton/{Skeleton.css → index.css} +7 -3
- package/dist/Slide/Slide.js +69 -74
- package/dist/Slider/Slider.d.ts +1 -1
- package/dist/Slider/Slider.js +13 -29
- package/dist/Slider/index.css +111 -0
- package/dist/Stack/Stack.d.ts +1 -1
- package/dist/Stack/Stack.js +1 -1
- package/dist/Steps/Step.css +14 -14
- package/dist/Steps/Step.js +81 -82
- package/dist/Steps/Steps.css +18 -14
- package/dist/Steps/Steps.d.ts +1 -1
- package/dist/Steps/Steps.js +57 -60
- package/dist/Steps/index.css +199 -0
- package/dist/Swiper/Swiper.d.ts +1 -1
- package/dist/Swiper/Swiper.js +1 -1
- package/{es/Swiper/Swiper.css → dist/Swiper/index.css} +6 -2
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/Switch.js +76 -79
- package/dist/Switch/Switch.types.d.ts +1 -1
- package/{es/Switch/Switch.css → dist/Switch/index.css} +46 -35
- package/dist/TabBar/TabBar.css +12 -8
- package/dist/TabBar/TabBar.js +3 -8
- package/dist/TabBar/TabBarContext.d.ts +3 -3
- package/dist/TabBar/TabBarItem.css +6 -0
- package/dist/TabBar/TabBarItem.js +3 -3
- package/dist/TabBar/index.css +59 -0
- package/dist/TabBar/index.types.d.ts +3 -3
- package/dist/Tabs/Tab.css +10 -16
- package/dist/Tabs/Tab.js +2 -3
- package/dist/Tabs/Tabs.css +32 -21
- package/dist/Tabs/Tabs.js +39 -70
- package/dist/Tabs/Tabs.types.d.ts +0 -10
- package/dist/Tabs/index.css +135 -0
- package/dist/Tabs/utils/bound.d.ts +1 -0
- package/dist/{DesktopPicker/utils/calcAfterMounted.js → Tabs/utils/bound.js} +14 -7
- package/dist/Tag/Tag.css +49 -23
- package/dist/Tag/Tag.js +3 -7
- package/dist/Tag/Tag.types.d.ts +4 -4
- package/dist/Tag/TagGroup.css +15 -11
- package/dist/Tag/TagGroup.d.ts +2 -2
- package/dist/Tag/TagGroup.js +16 -14
- package/dist/Tag/index.css +182 -0
- package/dist/TextArea/TextArea.d.ts +1 -1
- package/dist/TextArea/TextArea.js +6 -13
- package/dist/TextArea/index.css +57 -0
- package/dist/ThemeProvider/ThemeProvider.js +1 -4
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +5 -10
- package/dist/ThemeProvider/utils/constants.d.ts +1 -1
- package/dist/ThemeProvider/utils/constants.js +4 -1
- package/dist/ThemeProvider/utils/mountTokens.d.ts +4 -4
- package/dist/Toast/FunctionalToast.js +1 -1
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/Toast.js +5 -5
- package/dist/Toast/index.css +58 -0
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Tooltip/Tooltip.js +28 -71
- package/dist/Tooltip/index.css +95 -0
- package/dist/Transition/TransitionCore.js +3 -8
- package/dist/index.d.ts +0 -6
- package/dist/index.js +1 -13
- package/dist/locales/base.d.ts +0 -11
- package/dist/locales/en-US.js +0 -24
- package/dist/locales/zh-CN.js +0 -24
- package/dist/locales/zh-TW.js +0 -24
- package/es/ActionSheet/ActionSheet.css +16 -6
- package/es/ActionSheet/ActionSheetItem.css +11 -17
- package/es/ActionSheet/ActionSheetItem.js +3 -8
- package/es/ActionSheet/ActionSheetItem.types.d.ts +2 -2
- package/es/ActionSheet/index.css +89 -0
- package/es/Alert/Alert.types.d.ts +3 -3
- package/es/Alert/index.css +18 -14
- package/es/Avatar/Avatar.css +16 -12
- package/es/Avatar/Avatar.js +3 -8
- package/es/Avatar/AvatarGroup.css +19 -15
- package/es/Avatar/AvatarGroup.js +2 -6
- package/es/Avatar/index.css +93 -0
- package/es/Backdrop/Backdrop.d.ts +1 -1
- package/es/Backdrop/Backdrop.js +1 -1
- package/es/Backdrop/{Backdrop.css → index.css} +6 -2
- package/es/Badge/Badge.d.ts +1 -1
- package/es/Badge/Badge.js +4 -9
- package/es/Badge/Badge.types.d.ts +1 -1
- package/es/Badge/{Badge.css → index.css} +47 -27
- package/es/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/es/Breadcrumb/Breadcrumb.js +1 -1
- package/es/Breadcrumb/index.css +38 -0
- package/es/Button/Button.d.ts +1 -1
- package/es/Button/Button.js +6 -11
- package/es/Button/Button.types.d.ts +8 -7
- package/{dist/Button/Button.css → es/Button/index.css} +93 -63
- package/es/Calendar/Calendar.d.ts +1 -1
- package/es/Calendar/Calendar.js +10 -22
- package/es/Calendar/Calendar.types.d.ts +0 -5
- package/es/Calendar/{Calendar.css → index.css} +35 -31
- package/es/Card/Card.css +9 -0
- package/es/Card/CardContent.css +1 -2
- package/es/Card/CardFooter.css +2 -4
- package/es/Card/CardHeader.css +5 -5
- package/es/Card/CardHeader.js +2 -2
- package/es/Card/index.css +77 -0
- package/es/Checkbox/Checkbox.d.ts +1 -1
- package/es/Checkbox/Checkbox.js +4 -8
- package/es/Checkbox/CheckboxGroup.d.ts +1 -1
- package/es/Checkbox/CheckboxGroup.js +5 -8
- package/es/Checkbox/{Checkbox.css → index.css} +14 -10
- package/es/CitySelector/CitySelector.miniapp.d.ts +0 -1
- package/es/CitySelector/CitySelector.miniapp.js +0 -1
- package/es/CitySelector/CitySelectorCore.d.ts +1 -1
- package/es/CitySelector/CitySelectorCore.js +1 -1
- package/es/CitySelector/Selector/index.css +4 -4
- package/{dist/CitySelector/CitySelector.css → es/CitySelector/index.css} +31 -27
- package/es/Collapse/Collapse.d.ts +2 -2
- package/es/Collapse/Collapse.js +9 -12
- package/{dist/Collapse/Collapse.css → es/Collapse/index.css} +1 -0
- package/es/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanel.js +1 -1
- package/es/CollapsePanel/CollapsePanelItem.js +45 -46
- package/{dist/CollapsePanel/CollapsePanel.css → es/CollapsePanel/index.css} +12 -10
- package/es/Countdown/Countdown.d.ts +1 -1
- package/es/Countdown/Countdown.js +6 -13
- package/{dist/Countdown/Countdown.css → es/Countdown/index.css} +12 -8
- package/es/Dialog/FunctionalDialog.js +2 -2
- package/es/Dialog/index.css +26 -23
- package/es/Divider/Divider.d.ts +1 -1
- package/es/Divider/Divider.js +9 -6
- package/{dist/Divider/Divider.css → es/Divider/index.css} +14 -10
- package/es/Drawer/Drawer.d.ts +1 -1
- package/es/Drawer/Drawer.js +5 -11
- package/es/Drawer/{Drawer.css → index.css} +2 -0
- package/es/Fade/Fade.js +52 -56
- package/es/IconButton/IconButton.d.ts +1 -1
- package/es/IconButton/IconButton.js +7 -14
- package/es/IconButton/IconButton.types.d.ts +4 -3
- package/{dist/IconButton/IconButton.css → es/IconButton/index.css} +79 -29
- package/es/Image/Image.js +112 -119
- package/es/Image/index.css +6 -2
- package/es/Input/Input.d.ts +1 -1
- package/es/Input/Input.js +6 -12
- package/{dist/Input/Input.css → es/Input/index.css} +22 -18
- package/es/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
- package/es/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/es/ItemSelector/ItemSelectorCore.d.ts +1 -1
- package/es/ItemSelector/ItemSelectorCore.js +1 -1
- package/es/List/List.css +7 -3
- package/es/List/List.js +3 -8
- package/es/List/ListItem.css +3 -3
- package/es/List/ListItem.js +42 -44
- package/es/List/ListItemContent.js +1 -4
- package/es/List/ListItemExtra.js +9 -4
- package/es/List/ListItemFooter.js +9 -4
- package/es/List/ListItemHeader.js +9 -4
- package/es/List/index.css +80 -0
- package/es/Loading/Loading.d.ts +1 -1
- package/es/Loading/Loading.js +14 -5
- package/{dist/Loading/Loading.css → es/Loading/index.css} +10 -6
- package/es/Modal/Modal.d.ts +1 -1
- package/es/Modal/Modal.js +1 -7
- package/es/Modal/Modal.miniapp.d.ts +2 -2
- package/es/Modal/Modal.miniapp.js +5 -11
- package/es/NavBar/NavBar.d.ts +1 -1
- package/es/NavBar/NavBar.js +1 -2
- package/es/NavBar/index.css +65 -0
- package/es/Picker/Picker.css +21 -21
- package/es/Picker/Picker.js +6 -28
- package/es/Picker/Picker.types.d.ts +4 -17
- package/es/Picker/PickerPanel.css +8 -12
- package/es/Picker/PickerPanel.js +52 -31
- package/es/Picker/index.css +116 -0
- package/es/Popover/Popover.d.ts +1 -1
- package/es/Popover/Popover.js +30 -74
- package/{dist/Popover/Popover.css → es/Popover/index.css} +32 -28
- package/es/Portal/Portal.miniapp.js +5 -8
- package/es/Progress/Progress.d.ts +1 -1
- package/es/Progress/Progress.js +1 -1
- package/es/Progress/index.css +28 -0
- package/es/Radio/Radio.d.ts +1 -1
- package/es/Radio/Radio.js +3 -7
- package/es/Radio/RadioButtonIcon.js +6 -1
- package/es/Radio/RadioGroup.d.ts +1 -1
- package/es/Radio/RadioGroup.js +1 -4
- package/es/Radio/{Radio.css → index.css} +10 -7
- package/es/Rating/Rating.d.ts +1 -1
- package/es/Rating/Rating.js +9 -19
- package/{dist/Rating/Rating.css → es/Rating/index.css} +20 -7
- package/es/ScrollView/ScrollView.d.ts +1 -1
- package/es/ScrollView/ScrollView.js +12 -25
- package/es/ScrollView/ScrollView.types.d.ts +1 -0
- package/es/Select/Select.d.ts +1 -1
- package/es/Select/Select.js +44 -76
- package/es/Select/SelectOption.d.ts +1 -1
- package/es/Select/SelectOption.js +1 -1
- package/es/Select/{Select.css → index.css} +30 -20
- package/es/Skeleton/Skeleton.d.ts +1 -1
- package/es/Skeleton/Skeleton.js +6 -10
- package/es/Skeleton/{Skeleton.css → index.css} +7 -3
- package/es/Slide/Slide.js +69 -74
- package/es/Slider/Slider.d.ts +1 -1
- package/es/Slider/Slider.js +14 -32
- package/es/Slider/index.css +111 -0
- package/es/Stack/Stack.d.ts +1 -1
- package/es/Stack/Stack.js +1 -1
- package/es/Steps/Step.css +14 -14
- package/es/Steps/Step.js +81 -82
- package/es/Steps/Steps.css +18 -14
- package/es/Steps/Steps.d.ts +1 -1
- package/es/Steps/Steps.js +57 -60
- package/es/Steps/index.css +199 -0
- package/es/Swiper/Swiper.d.ts +1 -1
- package/es/Swiper/Swiper.js +1 -1
- package/{dist/Swiper/Swiper.css → es/Swiper/index.css} +6 -2
- package/es/Switch/Switch.d.ts +1 -1
- package/es/Switch/Switch.js +76 -79
- package/es/Switch/Switch.types.d.ts +1 -1
- package/{dist/Switch/Switch.css → es/Switch/index.css} +46 -35
- package/es/TabBar/TabBar.css +12 -8
- package/es/TabBar/TabBar.js +3 -8
- package/es/TabBar/TabBarContext.d.ts +3 -3
- package/es/TabBar/TabBarItem.css +6 -0
- package/es/TabBar/TabBarItem.js +2 -2
- package/es/TabBar/index.css +59 -0
- package/es/TabBar/index.types.d.ts +3 -3
- package/es/Tabs/Tab.css +10 -16
- package/es/Tabs/Tab.js +2 -3
- package/es/Tabs/Tabs.css +32 -21
- package/es/Tabs/Tabs.js +41 -83
- package/es/Tabs/Tabs.types.d.ts +0 -10
- package/es/Tabs/index.css +135 -0
- package/es/Tabs/utils/bound.d.ts +1 -0
- package/es/Tabs/utils/bound.js +13 -0
- package/es/Tag/Tag.css +49 -23
- package/es/Tag/Tag.js +3 -7
- package/es/Tag/Tag.types.d.ts +4 -4
- package/es/Tag/TagGroup.css +15 -11
- package/es/Tag/TagGroup.d.ts +2 -2
- package/es/Tag/TagGroup.js +16 -14
- package/es/Tag/index.css +182 -0
- package/es/TextArea/TextArea.d.ts +1 -1
- package/es/TextArea/TextArea.js +6 -13
- package/es/TextArea/index.css +57 -0
- package/es/ThemeProvider/ThemeProvider.js +1 -4
- package/es/ThemeProvider/ThemeProvider.types.d.ts +5 -10
- package/es/ThemeProvider/utils/constants.d.ts +1 -1
- package/es/ThemeProvider/utils/constants.js +4 -1
- package/es/ThemeProvider/utils/mountTokens.d.ts +4 -4
- package/es/Toast/FunctionalToast.js +2 -2
- package/es/Toast/Toast.d.ts +1 -1
- package/es/Toast/Toast.js +5 -5
- package/es/Toast/index.css +58 -0
- package/es/Tooltip/Tooltip.d.ts +1 -1
- package/es/Tooltip/Tooltip.js +30 -74
- package/es/Tooltip/index.css +95 -0
- package/es/Transition/TransitionCore.js +3 -8
- package/es/index.d.ts +0 -6
- package/es/index.js +0 -6
- package/es/locales/base.d.ts +0 -11
- package/es/locales/en-US.js +0 -24
- package/es/locales/zh-CN.js +0 -24
- package/es/locales/zh-TW.js +0 -24
- package/package.json +14 -6
- package/dist/Breadcrumb/Breadcrumb.css +0 -34
- package/dist/CitySelector/miniapp.css +0 -4
- package/dist/Collapse/Collapse.miniapp.d.ts +0 -5
- package/dist/Collapse/Collapse.miniapp.js +0 -177
- package/dist/DatePicker/DatePicker.d.ts +0 -4
- package/dist/DatePicker/DatePicker.js +0 -335
- package/dist/DatePicker/DatePicker.types.d.ts +0 -36
- package/dist/DatePicker/DatePicker.types.js +0 -15
- package/dist/DatePicker/constants.d.ts +0 -9
- package/dist/DatePicker/constants.js +0 -37
- package/dist/DatePicker/index.d.ts +0 -3
- package/dist/DatePicker/index.js +0 -44
- package/dist/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
- package/dist/DesktopDatePicker/DesktopDatePicker.js +0 -280
- package/dist/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -163
- package/dist/DesktopDatePicker/DesktopDatePicker.types.js +0 -15
- package/dist/DesktopDatePicker/deskTopPickerContainer.css +0 -100
- package/dist/DesktopDatePicker/index.css +0 -61
- package/dist/DesktopDatePicker/index.d.ts +0 -2
- package/dist/DesktopDatePicker/index.js +0 -41
- package/dist/DesktopDatePicker/useGetDatePickerContent.d.ts +0 -6
- package/dist/DesktopDatePicker/useGetDatePickerContent.js +0 -343
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -5
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -322
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -163
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -15
- package/dist/DesktopDateTimePicker/index.css +0 -66
- package/dist/DesktopDateTimePicker/index.d.ts +0 -2
- package/dist/DesktopDateTimePicker/index.js +0 -41
- package/dist/DesktopPicker/DesktopPicker.d.ts +0 -5
- package/dist/DesktopPicker/DesktopPicker.js +0 -238
- package/dist/DesktopPicker/DesktopPicker.types.d.ts +0 -57
- package/dist/DesktopPicker/DesktopPicker.types.js +0 -15
- package/dist/DesktopPicker/index.css +0 -37
- package/dist/DesktopPicker/index.d.ts +0 -2
- package/dist/DesktopPicker/index.js +0 -41
- package/dist/DesktopPicker/utils/calcAfterMounted.d.ts +0 -2
- package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +0 -2
- package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.js +0 -38
- package/dist/DesktopTimePicker/DesktopTimePicker.d.ts +0 -5
- package/dist/DesktopTimePicker/DesktopTimePicker.js +0 -288
- package/dist/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -182
- package/dist/DesktopTimePicker/DesktopTimePicker.types.js +0 -15
- package/dist/DesktopTimePicker/DesktopTimePickerList.d.ts +0 -4
- package/dist/DesktopTimePicker/DesktopTimePickerList.js +0 -111
- package/dist/DesktopTimePicker/index.css +0 -170
- package/dist/DesktopTimePicker/index.d.ts +0 -2
- package/dist/DesktopTimePicker/index.js +0 -41
- package/dist/DesktopTimePicker/useGetTimePickerContent.d.ts +0 -6
- package/dist/DesktopTimePicker/useGetTimePickerContent.js +0 -249
- package/dist/DesktopTimePicker/utils/scrollUtil.d.ts +0 -2
- package/dist/DesktopTimePicker/utils/scrollUtil.js +0 -27
- package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +0 -2
- package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.js +0 -51
- package/dist/DesktopTimePicker/utils/utils.d.ts +0 -28
- package/dist/DesktopTimePicker/utils/utils.js +0 -408
- package/dist/ItemSelector/miniapp.css +0 -4
- package/dist/NavBar/NavBar.css +0 -61
- package/dist/Progress/Progress.css +0 -24
- package/dist/Slider/Slider.css +0 -106
- package/dist/SwipeAction/SwipeAction.css +0 -79
- package/dist/SwipeAction/SwipeAction.d.ts +0 -5
- package/dist/SwipeAction/SwipeAction.js +0 -349
- package/dist/SwipeAction/SwipeAction.types.d.ts +0 -75
- package/dist/SwipeAction/SwipeAction.types.js +0 -15
- package/dist/SwipeAction/SwipeActionContext.d.ts +0 -4
- package/dist/SwipeAction/SwipeActionContext.js +0 -30
- package/dist/SwipeAction/SwipeActionItem.css +0 -31
- package/dist/SwipeAction/SwipeActionItem.d.ts +0 -5
- package/dist/SwipeAction/SwipeActionItem.js +0 -105
- package/dist/SwipeAction/constants.d.ts +0 -9
- package/dist/SwipeAction/constants.js +0 -39
- package/dist/SwipeAction/index.d.ts +0 -5
- package/dist/SwipeAction/index.js +0 -50
- package/dist/Tabs/utils/scroll.d.ts +0 -2
- package/dist/Tabs/utils/scroll.js +0 -55
- package/dist/TextArea/TextArea.css +0 -53
- package/dist/Toast/Toast.css +0 -53
- package/dist/Tooltip/Tooltip.css +0 -91
- package/es/Breadcrumb/Breadcrumb.css +0 -34
- package/es/CitySelector/miniapp.css +0 -4
- package/es/Collapse/Collapse.miniapp.d.ts +0 -5
- package/es/Collapse/Collapse.miniapp.js +0 -157
- package/es/DatePicker/DatePicker.d.ts +0 -4
- package/es/DatePicker/DatePicker.js +0 -308
- package/es/DatePicker/DatePicker.types.d.ts +0 -36
- package/es/DatePicker/DatePicker.types.js +0 -1
- package/es/DatePicker/constants.d.ts +0 -9
- package/es/DatePicker/constants.js +0 -14
- package/es/DatePicker/index.d.ts +0 -3
- package/es/DatePicker/index.js +0 -8
- package/es/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
- package/es/DesktopDatePicker/DesktopDatePicker.js +0 -253
- package/es/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -163
- package/es/DesktopDatePicker/DesktopDatePicker.types.js +0 -1
- package/es/DesktopDatePicker/deskTopPickerContainer.css +0 -100
- package/es/DesktopDatePicker/index.css +0 -61
- package/es/DesktopDatePicker/index.d.ts +0 -2
- package/es/DesktopDatePicker/index.js +0 -6
- package/es/DesktopDatePicker/useGetDatePickerContent.d.ts +0 -6
- package/es/DesktopDatePicker/useGetDatePickerContent.js +0 -316
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -5
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -295
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -163
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -1
- package/es/DesktopDateTimePicker/index.css +0 -66
- package/es/DesktopDateTimePicker/index.d.ts +0 -2
- package/es/DesktopDateTimePicker/index.js +0 -9
- package/es/DesktopPicker/DesktopPicker.d.ts +0 -5
- package/es/DesktopPicker/DesktopPicker.js +0 -221
- package/es/DesktopPicker/DesktopPicker.types.d.ts +0 -57
- package/es/DesktopPicker/DesktopPicker.types.js +0 -1
- package/es/DesktopPicker/index.css +0 -37
- package/es/DesktopPicker/index.d.ts +0 -2
- package/es/DesktopPicker/index.js +0 -6
- package/es/DesktopPicker/utils/calcAfterMounted.d.ts +0 -2
- package/es/DesktopPicker/utils/calcAfterMounted.js +0 -6
- package/es/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +0 -2
- package/es/DesktopPicker/utils/calcAfterMounted.miniapp.js +0 -9
- package/es/DesktopTimePicker/DesktopTimePicker.d.ts +0 -5
- package/es/DesktopTimePicker/DesktopTimePicker.js +0 -261
- package/es/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -182
- package/es/DesktopTimePicker/DesktopTimePicker.types.js +0 -1
- package/es/DesktopTimePicker/DesktopTimePickerList.d.ts +0 -4
- package/es/DesktopTimePicker/DesktopTimePickerList.js +0 -84
- package/es/DesktopTimePicker/index.css +0 -170
- package/es/DesktopTimePicker/index.d.ts +0 -2
- package/es/DesktopTimePicker/index.js +0 -6
- package/es/DesktopTimePicker/useGetTimePickerContent.d.ts +0 -6
- package/es/DesktopTimePicker/useGetTimePickerContent.js +0 -226
- package/es/DesktopTimePicker/utils/scrollUtil.d.ts +0 -2
- package/es/DesktopTimePicker/utils/scrollUtil.js +0 -8
- package/es/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +0 -2
- package/es/DesktopTimePicker/utils/scrollUtil.miniapp.js +0 -22
- package/es/DesktopTimePicker/utils/utils.d.ts +0 -28
- package/es/DesktopTimePicker/utils/utils.js +0 -365
- package/es/ItemSelector/miniapp.css +0 -4
- package/es/NavBar/NavBar.css +0 -61
- package/es/Progress/Progress.css +0 -24
- package/es/Slider/Slider.css +0 -106
- package/es/SwipeAction/SwipeAction.css +0 -79
- package/es/SwipeAction/SwipeAction.d.ts +0 -5
- package/es/SwipeAction/SwipeAction.js +0 -334
- package/es/SwipeAction/SwipeAction.types.d.ts +0 -75
- package/es/SwipeAction/SwipeAction.types.js +0 -1
- package/es/SwipeAction/SwipeActionContext.d.ts +0 -4
- package/es/SwipeAction/SwipeActionContext.js +0 -11
- package/es/SwipeAction/SwipeActionItem.css +0 -31
- package/es/SwipeAction/SwipeActionItem.d.ts +0 -5
- package/es/SwipeAction/SwipeActionItem.js +0 -78
- package/es/SwipeAction/constants.d.ts +0 -9
- package/es/SwipeAction/constants.js +0 -15
- package/es/SwipeAction/index.d.ts +0 -5
- package/es/SwipeAction/index.js +0 -12
- package/es/Tabs/utils/scroll.d.ts +0 -2
- package/es/Tabs/utils/scroll.js +0 -36
- package/es/TextArea/TextArea.css +0 -53
- package/es/Toast/Toast.css +0 -53
- package/es/Tooltip/Tooltip.css +0 -91
- /package/dist/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/dist/Modal/{Modal.css → index.css} +0 -0
- /package/dist/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/dist/Stack/{Stack.css → index.css} +0 -0
- /package/es/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/es/Modal/{Modal.css → index.css} +0 -0
- /package/es/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/es/Stack/{Stack.css → index.css} +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-slider-line-color: var(--bui-color-primary);
|
|
5
|
+
--bui-slider-line-bg-color: var(--bui-color-border-default);
|
|
6
|
+
--bui-slider-width: 100%;
|
|
7
|
+
--bui-slider-height: 2px;
|
|
8
|
+
--bui-slider-padding: 19px 0;
|
|
9
|
+
--bui-slider-button-width: 26px;
|
|
10
|
+
--bui-slider-button-height: 26px;
|
|
11
|
+
--bui-slider-button-font-size: var(--bui-title-size-3);
|
|
12
|
+
--bui-slider-button-box-shadow: #ddd 0 0 10px;
|
|
13
|
+
--bui-slider-button-border-radius: 50%;
|
|
14
|
+
--bui-slider-tooltip-width: 46px;
|
|
15
|
+
--bui-slider-tooltip-height: 24px;
|
|
16
|
+
--bui-slider-tooltip-line-height: 24px;
|
|
17
|
+
--bui-slider-tooltip-border-radius: 24px;
|
|
18
|
+
--bui-slider-tooltip-font-size: var(--bui-text-size-3);
|
|
19
|
+
--bui-slider-tooltip-color: var(--bui-color-white);
|
|
20
|
+
--bui-slider-tooltip-bg-color: var(--bui-slider-line-color);
|
|
21
|
+
}
|
|
22
|
+
.bui-slider {
|
|
23
|
+
position: relative;
|
|
24
|
+
width: var(--bui-slider-width);
|
|
25
|
+
height: var(--bui-slider-height);
|
|
26
|
+
padding: var(--bui-slider-padding);
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
font-family: var(--bui-font-family);
|
|
29
|
+
}
|
|
30
|
+
.bui-slider-disabled {
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
opacity: 0.5;
|
|
33
|
+
}
|
|
34
|
+
.bui-slider-line {
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 50%;
|
|
37
|
+
left: 0;
|
|
38
|
+
height: var(--bui-slider-height);
|
|
39
|
+
transform: translateY(-50%);
|
|
40
|
+
background-color: var(--bui-slider-line-color);
|
|
41
|
+
}
|
|
42
|
+
.bui-slider-rail {
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 50%;
|
|
45
|
+
left: 0;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: var(--bui-slider-height);
|
|
48
|
+
transform: translateY(-50%);
|
|
49
|
+
background-color: var(--bui-slider-line-bg-color);
|
|
50
|
+
}
|
|
51
|
+
.bui-slider-button {
|
|
52
|
+
display: flex;
|
|
53
|
+
position: absolute;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
56
|
+
width: var(--bui-slider-button-width);
|
|
57
|
+
height: var(--bui-slider-button-height);
|
|
58
|
+
background-color: var(--bui-color-white);
|
|
59
|
+
box-shadow: var(--bui-slider-button-box-shadow);
|
|
60
|
+
border-radius: var(--bui-slider-button-border-radius);
|
|
61
|
+
transform: translate(-50%, -50%);
|
|
62
|
+
font-size: var(--bui-slider-button-font-size);
|
|
63
|
+
cursor: grab;
|
|
64
|
+
}
|
|
65
|
+
.bui-slider-button::after {
|
|
66
|
+
position: absolute;
|
|
67
|
+
content: "";
|
|
68
|
+
top: -10px;
|
|
69
|
+
bottom: -10px;
|
|
70
|
+
left: -10px;
|
|
71
|
+
right: -10px;
|
|
72
|
+
}
|
|
73
|
+
.bui-slider-button-0 {
|
|
74
|
+
left: 0%;
|
|
75
|
+
top: 50%;
|
|
76
|
+
z-index: var(--bui-z-index-affix);
|
|
77
|
+
}
|
|
78
|
+
.bui-slider-button-1 {
|
|
79
|
+
left: 0%;
|
|
80
|
+
top: 50%;
|
|
81
|
+
z-index: var(--bui-z-index-affix);
|
|
82
|
+
}
|
|
83
|
+
.bui-slider-tooltip {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: -14px;
|
|
86
|
+
width: var(--bui-slider-tooltip-width);
|
|
87
|
+
height: var(--bui-slider-tooltip-height);
|
|
88
|
+
line-height: var(--bui-slider-tooltip-line-height);
|
|
89
|
+
font-size: var(--bui-slider-tooltip-font-size);
|
|
90
|
+
border-radius: var(--bui-slider-tooltip-border-radius);
|
|
91
|
+
color: var(--bui-slider-tooltip-color);
|
|
92
|
+
text-align: center;
|
|
93
|
+
background-color: var(--bui-slider-tooltip-bg-color);
|
|
94
|
+
transform: translate(-50%, -50%);
|
|
95
|
+
z-index: var(--bui-z-index-affix);
|
|
96
|
+
}
|
|
97
|
+
.bui-slider-tooltip::after {
|
|
98
|
+
position: absolute;
|
|
99
|
+
bottom: -10px;
|
|
100
|
+
left: 0;
|
|
101
|
+
right: 0;
|
|
102
|
+
margin: 0 auto;
|
|
103
|
+
content: "";
|
|
104
|
+
width: 0;
|
|
105
|
+
height: 0;
|
|
106
|
+
border: 6px solid transparent;
|
|
107
|
+
border-top: 6px solid var(--bui-slider-tooltip-bg-color);
|
|
108
|
+
}
|
|
109
|
+
.bui-slider-tooltip-hidden {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
package/dist/Stack/Stack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StackProps } from './Stack.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Stack: React.ForwardRefExoticComponent<Omit<StackProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Stack;
|
package/dist/Stack/Stack.js
CHANGED
|
@@ -58,7 +58,7 @@ __export(Stack_exports, {
|
|
|
58
58
|
module.exports = __toCommonJS(Stack_exports);
|
|
59
59
|
var import_clsx = __toESM(require("clsx"));
|
|
60
60
|
var import_react = __toESM(require("react"));
|
|
61
|
-
var
|
|
61
|
+
var import_index = require("./index.css");
|
|
62
62
|
const prefixCls = "bui-stack";
|
|
63
63
|
const Stack = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
64
64
|
const _a = props, {
|
package/dist/Steps/Step.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
font-family: var(--bui-font-family);
|
|
6
6
|
}
|
|
7
7
|
.bui-step-label-horizontal {
|
|
8
|
-
line-height: var(--step-label-horizontal-line-height);
|
|
8
|
+
line-height: var(--bui-step-label-horizontal-line-height);
|
|
9
9
|
}
|
|
10
10
|
.bui-step:last-child .bui-step-line::after {
|
|
11
11
|
display: none;
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
.bui-step-line {
|
|
14
14
|
position: absolute;
|
|
15
15
|
top: 0;
|
|
16
|
-
width: var(--step-line-width);
|
|
17
|
-
height: var(--step-line-height);
|
|
16
|
+
width: var(--bui-step-line-width);
|
|
17
|
+
height: var(--bui-step-line-height);
|
|
18
18
|
box-sizing: border-box;
|
|
19
19
|
left: 13px;
|
|
20
|
-
padding: var(--step-line-padding);
|
|
20
|
+
padding: var(--bui-step-line-padding);
|
|
21
21
|
}
|
|
22
22
|
.bui-step-line::after {
|
|
23
23
|
display: inline-block;
|
|
24
24
|
content: "";
|
|
25
|
-
width: var(--step-line-width);
|
|
26
|
-
border-left-width: var(--step-line-width);
|
|
25
|
+
width: var(--bui-step-line-width);
|
|
26
|
+
border-left-width: var(--bui-step-line-width);
|
|
27
27
|
border-left-style: dotted;
|
|
28
28
|
height: calc(100% + 11px);
|
|
29
29
|
}
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
}
|
|
42
42
|
.bui-step-icon {
|
|
43
43
|
flex-shrink: 0;
|
|
44
|
-
width: var(--step-icon-width);
|
|
44
|
+
width: var(--bui-step-icon-width);
|
|
45
45
|
text-align: center;
|
|
46
|
-
margin: var(--step-icon-margin);
|
|
47
|
-
font-size: var(--step-icon-font-size);
|
|
46
|
+
margin: var(--bui-step-icon-margin);
|
|
47
|
+
font-size: var(--bui-step-icon-font-size);
|
|
48
48
|
}
|
|
49
49
|
.bui-step-icon-active {
|
|
50
|
-
width: var(--step-icon-active-width);
|
|
51
|
-
height: var(--step-icon-active-height);
|
|
50
|
+
width: var(--bui-step-icon-active-width);
|
|
51
|
+
height: var(--bui-step-icon-active-height);
|
|
52
52
|
position: relative;
|
|
53
53
|
background-color: var(--bui-color-primary);
|
|
54
54
|
border-radius: 50%;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
display: inline-block;
|
|
57
57
|
}
|
|
58
58
|
.bui-step-content {
|
|
59
|
-
padding: var(--step-content-padding);
|
|
59
|
+
padding: var(--bui-step-content-padding);
|
|
60
60
|
box-sizing: border-box;
|
|
61
61
|
flex: 1 0 0;
|
|
62
62
|
overflow: hidden;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
width: 100%;
|
|
99
99
|
}
|
|
100
100
|
.bui-step-subtitle {
|
|
101
|
-
font-size: var(--subtitle-font-size);
|
|
101
|
+
font-size: var(--bui-step-subtitle-font-size);
|
|
102
102
|
color: var(--bui-color-fg-subtle);
|
|
103
103
|
width: auto;
|
|
104
104
|
overflow: hidden;
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
}
|
|
129
129
|
.bui-step-horizontal .bui-step-line {
|
|
130
130
|
display: none;
|
|
131
|
-
padding: var(--step-horizontal-line-padding);
|
|
131
|
+
padding: var(--bui-step-horizontal-line-padding);
|
|
132
132
|
}
|
|
133
133
|
.bui-step-horizontal .bui-step-icon {
|
|
134
134
|
margin-right: 0;
|
package/dist/Steps/Step.js
CHANGED
|
@@ -68,97 +68,96 @@ const classes = {
|
|
|
68
68
|
title: "bui-step-title",
|
|
69
69
|
subtitle: "bui-step-subtitle"
|
|
70
70
|
};
|
|
71
|
-
const Step = (0, import_react.forwardRef)(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const renderIcon = () => {
|
|
101
|
-
const icons = {
|
|
102
|
-
active: /* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.icon}-active` }),
|
|
103
|
-
wait: /* @__PURE__ */ import_react.default.createElement(import_icons.CircleOutlinedIcon, { htmlColor: "#ced1d6" }),
|
|
104
|
-
finish: /* @__PURE__ */ import_react.default.createElement(import_icons.SuccessCircleFilledIcon, { color: "primary" }),
|
|
105
|
-
error: /* @__PURE__ */ import_react.default.createElement(import_icons.ErrorCircleFilledIcon, { color: "primary" })
|
|
71
|
+
const Step = (0, import_react.forwardRef)(
|
|
72
|
+
(_a, ref) => {
|
|
73
|
+
var _b = _a, {
|
|
74
|
+
className,
|
|
75
|
+
description,
|
|
76
|
+
icon,
|
|
77
|
+
title,
|
|
78
|
+
subtitle,
|
|
79
|
+
status,
|
|
80
|
+
disabled = false,
|
|
81
|
+
onClick
|
|
82
|
+
} = _b, others = __objRest(_b, [
|
|
83
|
+
"className",
|
|
84
|
+
"description",
|
|
85
|
+
"icon",
|
|
86
|
+
"title",
|
|
87
|
+
"subtitle",
|
|
88
|
+
"status",
|
|
89
|
+
"disabled",
|
|
90
|
+
"onClick"
|
|
91
|
+
]);
|
|
92
|
+
const stepsContext = (0, import_react.useContext)(import_StepsContext.default);
|
|
93
|
+
const { direction, labelPlacement, current, onChange } = stepsContext;
|
|
94
|
+
const isTitleVertical = labelPlacement === "vertical";
|
|
95
|
+
const handleClick = (e) => {
|
|
96
|
+
if (disabled)
|
|
97
|
+
return;
|
|
98
|
+
onClick == null ? void 0 : onClick(e, { current });
|
|
99
|
+
onChange == null ? void 0 : onChange(e, { current });
|
|
106
100
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
ref,
|
|
120
|
-
onClick: handleClick
|
|
121
|
-
}, others),
|
|
122
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
123
|
-
"div",
|
|
124
|
-
{
|
|
125
|
-
className: (0, import_clsx.default)(classes.line, {
|
|
126
|
-
[`${classes.line}-${status}`]: status
|
|
127
|
-
})
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: classes.icon }, renderIcon()),
|
|
131
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.root}-content` }, /* @__PURE__ */ import_react.default.createElement(
|
|
101
|
+
const renderIcon = () => {
|
|
102
|
+
const icons = {
|
|
103
|
+
active: /* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.icon}-active` }),
|
|
104
|
+
wait: /* @__PURE__ */ import_react.default.createElement(import_icons.CircleOutlinedIcon, { color: "disabled" }),
|
|
105
|
+
finish: /* @__PURE__ */ import_react.default.createElement(import_icons.SuccessCircleFilledIcon, { color: "primary" }),
|
|
106
|
+
error: /* @__PURE__ */ import_react.default.createElement(import_icons.ErrorCircleFilledIcon, { color: "primary" })
|
|
107
|
+
};
|
|
108
|
+
if (icon)
|
|
109
|
+
return icon;
|
|
110
|
+
return icons[status];
|
|
111
|
+
};
|
|
112
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
132
113
|
"div",
|
|
133
|
-
{
|
|
134
|
-
className: (0, import_clsx.default)(
|
|
135
|
-
[`${classes.
|
|
136
|
-
[`${classes.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
114
|
+
__spreadValues({
|
|
115
|
+
className: (0, import_clsx.default)(classes.root, className, {
|
|
116
|
+
[`${classes.root}-${direction}`]: direction,
|
|
117
|
+
[`${classes.root}-label-${labelPlacement}`]: labelPlacement,
|
|
118
|
+
[`${classes.root}-disabled`]: disabled
|
|
119
|
+
}),
|
|
120
|
+
ref,
|
|
121
|
+
onClick: handleClick
|
|
122
|
+
}, others),
|
|
123
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
140
124
|
"div",
|
|
141
125
|
{
|
|
142
|
-
className: (0, import_clsx.default)(classes.
|
|
143
|
-
[`${classes.
|
|
126
|
+
className: (0, import_clsx.default)(classes.line, {
|
|
127
|
+
[`${classes.line}-${status}`]: status
|
|
144
128
|
})
|
|
145
|
-
}
|
|
146
|
-
title
|
|
129
|
+
}
|
|
147
130
|
),
|
|
148
|
-
|
|
131
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: classes.icon }, renderIcon()),
|
|
132
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.root}-content` }, /* @__PURE__ */ import_react.default.createElement(
|
|
149
133
|
"div",
|
|
150
134
|
{
|
|
151
|
-
className: (0, import_clsx.default)(classes.
|
|
152
|
-
[`${classes.
|
|
135
|
+
className: (0, import_clsx.default)(`${classes.title}-wrapper`, {
|
|
136
|
+
[`${classes.title}-wrapper-vertical`]: isTitleVertical,
|
|
137
|
+
[`${classes.title}-wrapper-line-${status}`]: status
|
|
153
138
|
})
|
|
154
139
|
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
140
|
+
!!title && /* @__PURE__ */ import_react.default.createElement(
|
|
141
|
+
"div",
|
|
142
|
+
{
|
|
143
|
+
className: (0, import_clsx.default)(classes.title, `${classes.title}-${status}`, {
|
|
144
|
+
[`${classes.title}-${labelPlacement}`]: labelPlacement
|
|
145
|
+
})
|
|
146
|
+
},
|
|
147
|
+
title
|
|
148
|
+
),
|
|
149
|
+
!!subtitle && /* @__PURE__ */ import_react.default.createElement(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
className: (0, import_clsx.default)(classes.subtitle, {
|
|
153
|
+
[`${classes.subtitle}-${labelPlacement}`]: labelPlacement
|
|
154
|
+
})
|
|
155
|
+
},
|
|
156
|
+
subtitle
|
|
157
|
+
)
|
|
158
|
+
), !!description && /* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.root}-desc` }, description))
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
);
|
|
160
162
|
Step.displayName = "Step";
|
|
161
|
-
Step.defaultProps = {
|
|
162
|
-
disabled: false
|
|
163
|
-
};
|
|
164
163
|
var Step_default = Step;
|
package/dist/Steps/Steps.css
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-steps-font-size: var(--bui-title-size-3);
|
|
5
|
+
--bui-step-subtitle-font-size: var(--bui-text-size-2);
|
|
6
|
+
--bui-step-line-padding: 20px 0 3px 0;
|
|
7
|
+
--bui-step-line-width: 1px;
|
|
8
|
+
--bui-step-line-height: 100%;
|
|
9
|
+
--bui-step-label-horizontal-line-height: 1.8;
|
|
10
|
+
--bui-step-icon-width: 28px;
|
|
11
|
+
--bui-step-icon-active-width: 12px;
|
|
12
|
+
--bui-step-icon-active-height: 12px;
|
|
13
|
+
--bui-step-icon-font-size: var(--bui-title-size-4);
|
|
14
|
+
--bui-step-icon-margin: var(--bui-spacing-xs) var(--bui-spacing-xs) 0 0;
|
|
15
|
+
--bui-step-content-padding: 3px 0;
|
|
16
|
+
--bui-step-horizontal-line-padding: 28px 0 6px;
|
|
17
|
+
}
|
|
1
18
|
.bui-steps {
|
|
2
|
-
--font-size: var(--bui-steps-font-size, var(--bui-title-size-3));
|
|
3
|
-
--subtitle-font-size: var(--bui-step-subtitle-font-size, var(--bui-text-size-2));
|
|
4
|
-
--step-line-padding: var(--bui-step-line-padding, 20px 0 3px 0);
|
|
5
|
-
--step-line-width: var(--bui-step-line-width, 1px);
|
|
6
|
-
--step-line-height: var(--bui-step-line-height, 100%);
|
|
7
|
-
--step-label-horizontal-line-height: var(--bui-step-label-horizontal-line-height, 1.8);
|
|
8
|
-
--step-icon-width: var(--bui-step-icon-width, 28px);
|
|
9
|
-
--step-icon-active-width: var(--bui-step-icon-active-width, 12px);
|
|
10
|
-
--step-icon-active-height: var(--bui-step-icon-active-height, 12px);
|
|
11
|
-
--step-icon-font-size: var(--bui-step-icon-font-size, var(--bui-title-size-4));
|
|
12
|
-
--step-icon-margin: var(--bui-step-icon-margin, var(--bui-spacing-xs) var(--bui-spacing-xs) 0 0);
|
|
13
|
-
--step-content-padding: var(--bui-step-content-padding, 3px 0);
|
|
14
|
-
--step-horizontal-line-padding: var(--bui-step-horizontal-line-padding, 28px 0 6px);
|
|
15
19
|
display: flex;
|
|
16
|
-
font-size: var(--font-size);
|
|
20
|
+
font-size: var(--bui-steps-font-size);
|
|
17
21
|
font-family: var(--bui-font-family);
|
|
18
22
|
}
|
|
19
23
|
.bui-steps-vertical {
|
package/dist/Steps/Steps.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './Steps.less';
|
|
3
2
|
import { StepsProps } from './Steps.types';
|
|
3
|
+
import './Steps.less';
|
|
4
4
|
declare const Steps: React.ForwardRefExoticComponent<Omit<StepsProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Steps;
|
package/dist/Steps/Steps.js
CHANGED
|
@@ -59,68 +59,65 @@ module.exports = __toCommonJS(Steps_exports);
|
|
|
59
59
|
var import_utils = require("@bifrostui/utils");
|
|
60
60
|
var import_clsx = __toESM(require("clsx"));
|
|
61
61
|
var import_react = __toESM(require("react"));
|
|
62
|
-
var import_Steps = require("./Steps.css");
|
|
63
62
|
var import_StepsContext = require("./StepsContext");
|
|
63
|
+
var import_Steps2 = require("./Steps.css");
|
|
64
64
|
const prefixCls = "bui-steps";
|
|
65
|
-
const Steps = (0, import_react.forwardRef)(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
65
|
+
const Steps = (0, import_react.forwardRef)(
|
|
66
|
+
(_a, ref) => {
|
|
67
|
+
var _b = _a, {
|
|
68
|
+
className,
|
|
69
|
+
children,
|
|
70
|
+
direction = "vertical",
|
|
71
|
+
current = 0,
|
|
72
|
+
labelPlacement = "horizontal",
|
|
73
|
+
onChange
|
|
74
|
+
} = _b, others = __objRest(_b, [
|
|
75
|
+
"className",
|
|
76
|
+
"children",
|
|
77
|
+
"direction",
|
|
78
|
+
"current",
|
|
79
|
+
"labelPlacement",
|
|
80
|
+
"onChange"
|
|
81
|
+
]);
|
|
82
|
+
const renderStep = () => {
|
|
83
|
+
return (0, import_utils.toArray)(children).map((child, index) => {
|
|
84
|
+
const childProps = __spreadValues({
|
|
85
|
+
key: index
|
|
86
|
+
}, child.props);
|
|
87
|
+
if (!child.props.status) {
|
|
88
|
+
if (index === current) {
|
|
89
|
+
childProps.status = "active";
|
|
90
|
+
} else if (index < current) {
|
|
91
|
+
childProps.status = "finish";
|
|
92
|
+
} else {
|
|
93
|
+
childProps.status = "wait";
|
|
94
|
+
}
|
|
93
95
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
|
|
96
|
+
return (0, import_react.cloneElement)(child, childProps);
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
100
|
+
import_StepsContext.StepsContextProvider,
|
|
101
|
+
{
|
|
102
|
+
value: {
|
|
103
|
+
direction,
|
|
104
|
+
current,
|
|
105
|
+
labelPlacement,
|
|
106
|
+
onChange
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
110
|
+
"div",
|
|
111
|
+
__spreadValues({
|
|
112
|
+
className: (0, import_clsx.default)(prefixCls, className, {
|
|
113
|
+
[`${prefixCls}-${direction}`]: direction
|
|
114
|
+
}),
|
|
115
|
+
ref
|
|
116
|
+
}, others),
|
|
117
|
+
renderStep()
|
|
118
|
+
)
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
);
|
|
120
122
|
Steps.displayName = "Steps";
|
|
121
|
-
Steps.defaultProps = {
|
|
122
|
-
current: 0,
|
|
123
|
-
direction: "vertical",
|
|
124
|
-
labelPlacement: "horizontal"
|
|
125
|
-
};
|
|
126
123
|
var Steps_default = Steps;
|