@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollapsePanelProps } from './CollapsePanel.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const CollapsePanel: React.ForwardRefExoticComponent<Omit<CollapsePanelProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default CollapsePanel;
|
|
@@ -64,7 +64,7 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
64
64
|
var import_icons = require("@bifrostui/icons");
|
|
65
65
|
var import_utils = require("@bifrostui/utils");
|
|
66
66
|
var import_CollapsePanelItem = __toESM(require("./CollapsePanelItem"));
|
|
67
|
-
var
|
|
67
|
+
var import_index = require("./index.css");
|
|
68
68
|
const prefixCls = "bui-collapse-panel";
|
|
69
69
|
const CollapsePanel = /* @__PURE__ */ import_react.default.forwardRef(
|
|
70
70
|
(props, ref) => {
|
|
@@ -60,53 +60,52 @@ var import_react = __toESM(require("react"));
|
|
|
60
60
|
var import_clsx = __toESM(require("clsx"));
|
|
61
61
|
var import_Collapse = require("../Collapse");
|
|
62
62
|
const prefixCls = "bui-collapse-panel-item";
|
|
63
|
-
const CollapsePanelItem = /* @__PURE__ */ import_react.default.forwardRef(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
label,
|
|
68
|
-
children,
|
|
69
|
-
icon,
|
|
70
|
-
active,
|
|
71
|
-
onClick
|
|
72
|
-
} = _a, others = __objRest(_a, [
|
|
73
|
-
"className",
|
|
74
|
-
"style",
|
|
75
|
-
"label",
|
|
76
|
-
"children",
|
|
77
|
-
"icon",
|
|
78
|
-
"active",
|
|
79
|
-
"onClick"
|
|
80
|
-
]);
|
|
81
|
-
const isControlledIcon = typeof icon === "function";
|
|
82
|
-
const getIcon = () => {
|
|
83
|
-
return typeof icon === "function" ? icon(active) : icon;
|
|
84
|
-
};
|
|
85
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
86
|
-
"div",
|
|
87
|
-
__spreadValues({
|
|
88
|
-
className: (0, import_clsx.default)(prefixCls, active && `${prefixCls}-active`, className),
|
|
63
|
+
const CollapsePanelItem = /* @__PURE__ */ import_react.default.forwardRef(
|
|
64
|
+
(_a, ref) => {
|
|
65
|
+
var _b = _a, {
|
|
66
|
+
className,
|
|
89
67
|
style,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
68
|
+
label,
|
|
69
|
+
children,
|
|
70
|
+
icon,
|
|
71
|
+
active = false,
|
|
72
|
+
onClick
|
|
73
|
+
} = _b, others = __objRest(_b, [
|
|
74
|
+
"className",
|
|
75
|
+
"style",
|
|
76
|
+
"label",
|
|
77
|
+
"children",
|
|
78
|
+
"icon",
|
|
79
|
+
"active",
|
|
80
|
+
"onClick"
|
|
81
|
+
]);
|
|
82
|
+
const isControlledIcon = typeof icon === "function";
|
|
83
|
+
const getIcon = () => {
|
|
84
|
+
return typeof icon === "function" ? icon(active) : icon;
|
|
85
|
+
};
|
|
86
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
93
87
|
"div",
|
|
94
|
-
{
|
|
95
|
-
className: (0, import_clsx.default)(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
88
|
+
__spreadValues({
|
|
89
|
+
className: (0, import_clsx.default)(prefixCls, active && `${prefixCls}-active`, className),
|
|
90
|
+
style,
|
|
91
|
+
ref
|
|
92
|
+
}, others),
|
|
93
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-header`, onClick }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-header-label` }, label), /* @__PURE__ */ import_react.default.createElement(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
className: (0, import_clsx.default)(
|
|
97
|
+
`${prefixCls}-header-icon`,
|
|
98
|
+
`${prefixCls}-header-icon-arrow`,
|
|
99
|
+
{
|
|
100
|
+
[`${prefixCls}-header-icon-arrow-active`]: !isControlledIcon && active
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
},
|
|
104
|
+
getIcon()
|
|
105
|
+
)),
|
|
106
|
+
/* @__PURE__ */ import_react.default.createElement(import_Collapse.Collapse, { in: active, direction: "vertical", timeout: 300 }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-content` }, children))
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
);
|
|
108
110
|
CollapsePanelItem.displayName = "BuiCollapsePanelItem";
|
|
109
|
-
CollapsePanelItem.defaultProps = {
|
|
110
|
-
active: false
|
|
111
|
-
};
|
|
112
111
|
var CollapsePanelItem_default = CollapsePanelItem;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-collapse-panel-width: 100%;
|
|
5
|
+
--bui-collapse-panel-header-padding: var(--bui-spacing-lg) 0;
|
|
6
|
+
--bui-collapse-panel-content-padding: var(--bui-spacing-lg) 0;
|
|
7
|
+
}
|
|
1
8
|
.bui-collapse-panel {
|
|
2
|
-
|
|
3
|
-
--header-padding: var(--bui-collapse-panel-header-padding, var(--bui-spacing-lg) 0);
|
|
4
|
-
--content-padding: var(--bui-collapse-panel-content-padding, var(--bui-spacing-lg) 0);
|
|
5
|
-
--title-font-size: var(--bui-collapse-panel-title-font-size, var(--bui-title-size-3));
|
|
6
|
-
--content-font-size: var(--bui-collapse-panel-content-font-size, var(--bui-text-size-1));
|
|
7
|
-
width: var(--width);
|
|
9
|
+
width: var(--bui-collapse-panel-width);
|
|
8
10
|
background-color: var(--bui-color-bg-view);
|
|
9
11
|
color: var(--bui-color-fg-default);
|
|
10
12
|
}
|
|
@@ -16,8 +18,8 @@
|
|
|
16
18
|
cursor: pointer;
|
|
17
19
|
}
|
|
18
20
|
.bui-collapse-panel-item-header-label {
|
|
19
|
-
padding: var(--header-padding);
|
|
20
|
-
font-size: var(--title-
|
|
21
|
+
padding: var(--bui-collapse-panel-header-padding);
|
|
22
|
+
font-size: var(--bui-title-size-2);
|
|
21
23
|
}
|
|
22
24
|
.bui-collapse-panel-item-header-icon-arrow {
|
|
23
25
|
transform: rotate(0deg);
|
|
@@ -27,8 +29,8 @@
|
|
|
27
29
|
transform: rotate(-180deg);
|
|
28
30
|
}
|
|
29
31
|
.bui-collapse-panel-item-content {
|
|
30
|
-
padding: var(--content-padding);
|
|
31
|
-
font-size: var(--
|
|
32
|
+
padding: var(--bui-collapse-panel-content-padding);
|
|
33
|
+
font-size: var(--bui-text-size-1);
|
|
32
34
|
transition: height 0.5s ease;
|
|
33
35
|
overflow: hidden;
|
|
34
36
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CountdownProps } from './Countdown.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Countdown: React.ForwardRefExoticComponent<Omit<CountdownProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Countdown;
|
|
@@ -61,18 +61,18 @@ var import_react = __toESM(require("react"));
|
|
|
61
61
|
var import_utils = require("@bifrostui/utils");
|
|
62
62
|
var import_useCountdown = __toESM(require("./useCountdown"));
|
|
63
63
|
var import_utils2 = require("./utils");
|
|
64
|
-
var
|
|
64
|
+
var import_index = require("./index.css");
|
|
65
65
|
const prefixCls = "bui-countdown";
|
|
66
66
|
const Countdown = (0, import_react.forwardRef)((props, ref) => {
|
|
67
67
|
const _a = props, {
|
|
68
68
|
className,
|
|
69
69
|
serverTimestamp,
|
|
70
70
|
endTimestamp,
|
|
71
|
-
remainingTime,
|
|
72
|
-
format,
|
|
73
|
-
unitStyle,
|
|
74
|
-
valueStyle,
|
|
75
|
-
timeSliceStyle,
|
|
71
|
+
remainingTime = 0,
|
|
72
|
+
format = "HH:mm:ss",
|
|
73
|
+
unitStyle = {},
|
|
74
|
+
valueStyle = [{}, {}],
|
|
75
|
+
timeSliceStyle = {},
|
|
76
76
|
renderContent,
|
|
77
77
|
onChange,
|
|
78
78
|
onFinish
|
|
@@ -152,11 +152,4 @@ const Countdown = (0, import_react.forwardRef)((props, ref) => {
|
|
|
152
152
|
return /* @__PURE__ */ import_react.default.createElement("div", __spreadValues({ ref, className: (0, import_clsx.default)(prefixCls, className) }, others), renderContent ? renderContent(time) : defaultRender(time));
|
|
153
153
|
});
|
|
154
154
|
Countdown.displayName = "BuiCountdown";
|
|
155
|
-
Countdown.defaultProps = {
|
|
156
|
-
format: "HH:mm:ss",
|
|
157
|
-
remainingTime: 0,
|
|
158
|
-
unitStyle: {},
|
|
159
|
-
valueStyle: [{}, {}],
|
|
160
|
-
timeSliceStyle: {}
|
|
161
|
-
};
|
|
162
155
|
var Countdown_default = Countdown;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-countdown-font-size: var(--bui-text-size-1);
|
|
5
|
+
--bui-countdown-color: var(--bui-color-fg-default);
|
|
6
|
+
--bui-countdown-font-weight: var(--bui-font-weight-normal);
|
|
7
|
+
--bui-countdown-slice-unit-margin: 0 2px;
|
|
8
|
+
}
|
|
1
9
|
.bui-countdown {
|
|
2
|
-
--font-size: var(--bui-countdown-font-size, var(--bui-text-size-1));
|
|
3
|
-
--color: var(--bui-countdown-color, var(--bui-color-fg-default));
|
|
4
|
-
--font-weight: var(--bui-countdown-font-weight, var(--bui-font-weight-normal));
|
|
5
|
-
--slice-unit-margin: var(--bui-countdown-slice-unit-margin, 0 2px);
|
|
6
10
|
display: flex;
|
|
7
11
|
flex-direction: row;
|
|
8
12
|
align-items: center;
|
|
9
|
-
font-size: var(--font-size);
|
|
10
|
-
color: var(--color);
|
|
11
|
-
font-weight: var(--font-weight);
|
|
13
|
+
font-size: var(--bui-countdown-font-size);
|
|
14
|
+
color: var(--bui-countdown-color);
|
|
15
|
+
font-weight: var(--bui-countdown-font-weight);
|
|
12
16
|
font-family: var(--bui-font-family);
|
|
13
17
|
}
|
|
14
18
|
.bui-countdown-slice {
|
|
@@ -35,5 +39,5 @@
|
|
|
35
39
|
sans-serif;
|
|
36
40
|
}
|
|
37
41
|
.bui-countdown-slice-unit {
|
|
38
|
-
margin: var(--slice-unit-margin);
|
|
42
|
+
margin: var(--bui-countdown-slice-unit-margin);
|
|
39
43
|
}
|
|
@@ -91,7 +91,7 @@ const formatProps = (props) => {
|
|
|
91
91
|
};
|
|
92
92
|
const DialogGenerator = (options) => {
|
|
93
93
|
const rootWrapper = document.createElement("div");
|
|
94
|
-
const rootElement = (0, import_utils.
|
|
94
|
+
const rootElement = (0, import_utils.getRootElement)();
|
|
95
95
|
rootElement.appendChild(rootWrapper);
|
|
96
96
|
const DialogComponent = () => {
|
|
97
97
|
const _a = options, { onConfirm, onCancel, ref } = _a, others = __objRest(_a, ["onConfirm", "onCancel", "ref"]);
|
package/dist/Dialog/index.css
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-dialog-max-width: 300px;
|
|
5
|
+
--bui-dialog-border-radius: var(--bui-shape-radius-drawer);
|
|
6
|
+
--bui-dialog-title-padding: 0 40px 9px;
|
|
7
|
+
--bui-dialog-desc-padding: 0 24px;
|
|
8
|
+
--bui-dialog-footer-margin-top: 15px;
|
|
9
|
+
--bui-dialog-button-height: 53px;
|
|
10
|
+
--bui-dialog-button-line-height: 25px;
|
|
11
|
+
--bui-dialog-button-padding: 12px 0 13px;
|
|
12
|
+
--bui-dialog-button-font-size: 17px;
|
|
13
|
+
--bui-dialog-button-border-left: 1px solid rgba(0, 0, 0, 0.05);
|
|
14
|
+
--bui-dialog-button-active-background-color: rgba(54, 57, 64, 0.05);
|
|
15
|
+
}
|
|
1
16
|
.bui-dialog {
|
|
2
|
-
--max-width: var(--bui-dialog-max-width, 300px);
|
|
3
|
-
--border-radius: var(--bui-dialog-border-radius, var(--bui-shape-radius-drawer));
|
|
4
|
-
--title-padding: var(--bui-dialog-title-padding, 0 40px 9px);
|
|
5
|
-
--desc-padding: var(--bui-dialog-desc-padding, 0 24px);
|
|
6
|
-
--footer-margin-top: var(--bui-dialog-footer-margin-top, 15px);
|
|
7
|
-
--button-height: var(--bui-dialog-button-height, 53px);
|
|
8
|
-
--button-line-height: var(--bui-dialog-button-line-height, 25px);
|
|
9
|
-
--button-padding: var(--bui-dialog-button-padding, 12px 0 13px);
|
|
10
|
-
--button-font-size: var(--bui-dialog-button-font-size, 17px);
|
|
11
|
-
--button-border-left: var(--bui-dialog-button-border-left, 1px solid rgba(0, 0, 0, 0.05));
|
|
12
|
-
--button-active-background-color: var(--bui-dialog-button-active-background-color, rgba(54, 57, 64, 0.05));
|
|
13
17
|
display: flex;
|
|
14
18
|
align-items: center;
|
|
15
19
|
justify-content: center;
|
|
16
20
|
}
|
|
17
21
|
.bui-dialog-body {
|
|
18
22
|
padding-top: 21px;
|
|
19
|
-
min-width: var(--max-width);
|
|
23
|
+
min-width: var(--bui-dialog-max-width);
|
|
20
24
|
margin: 0 auto;
|
|
21
|
-
border-radius: var(--border-radius);
|
|
25
|
+
border-radius: var(--bui-dialog-border-radius);
|
|
22
26
|
background-clip: padding-box;
|
|
23
27
|
background-color: var(--bui-color-bg-view);
|
|
24
28
|
line-height: 21px;
|
|
25
29
|
}
|
|
26
30
|
.bui-dialog-body-title {
|
|
27
|
-
padding: var(--title-padding);
|
|
31
|
+
padding: var(--bui-dialog-title-padding);
|
|
28
32
|
font-size: var(--bui-title-size-2);
|
|
29
33
|
text-align: center;
|
|
30
34
|
color: var(--bui-color-fg-default);
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
margin-top: var(--bui-spacing-sm);
|
|
35
39
|
}
|
|
36
40
|
.bui-dialog-body-desc {
|
|
37
|
-
padding: var(--desc-padding);
|
|
41
|
+
padding: var(--bui-dialog-desc-padding);
|
|
38
42
|
color: var(--bui-color-fg-muted);
|
|
39
43
|
font-size: var(--bui-title-size-4);
|
|
40
44
|
text-align: center;
|
|
@@ -43,9 +47,8 @@
|
|
|
43
47
|
padding-top: 0;
|
|
44
48
|
}
|
|
45
49
|
.bui-dialog-body-footer {
|
|
46
|
-
margin-top: var(--footer-margin-top);
|
|
50
|
+
margin-top: var(--bui-dialog-footer-margin-top);
|
|
47
51
|
border-top: 1px solid rgba(0, 0, 0, 0.05);
|
|
48
|
-
display: -webkit-box;
|
|
49
52
|
display: flex;
|
|
50
53
|
}
|
|
51
54
|
.bui-dialog-body-input {
|
|
@@ -56,13 +59,13 @@
|
|
|
56
59
|
flex: 1;
|
|
57
60
|
display: block;
|
|
58
61
|
width: 100%;
|
|
59
|
-
height: var(--button-height);
|
|
60
|
-
line-height: var(--button-line-height);
|
|
61
|
-
padding: var(--button-padding);
|
|
62
|
-
font-size: var(--button-font-size);
|
|
62
|
+
height: var(--bui-dialog-button-height);
|
|
63
|
+
line-height: var(--bui-dialog-button-line-height);
|
|
64
|
+
padding: var(--bui-dialog-button-padding);
|
|
65
|
+
font-size: var(--bui-dialog-button-font-size);
|
|
63
66
|
border: 0;
|
|
64
67
|
outline: 0;
|
|
65
|
-
border-left: var(--button-border-left);
|
|
68
|
+
border-left: var(--bui-dialog-button-border-left);
|
|
66
69
|
border-radius: 0;
|
|
67
70
|
text-align: center;
|
|
68
71
|
box-sizing: border-box;
|
|
@@ -71,5 +74,5 @@
|
|
|
71
74
|
border: none;
|
|
72
75
|
}
|
|
73
76
|
.bui-dialog-body-button:active {
|
|
74
|
-
background-color: var(--button-active-background-color);
|
|
77
|
+
background-color: var(--bui-dialog-button-active-background-color);
|
|
75
78
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DividerProps } from './Divider.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Divider: React.ForwardRefExoticComponent<Omit<DividerProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Divider;
|
package/dist/Divider/Divider.js
CHANGED
|
@@ -46,10 +46,17 @@ __export(Divider_exports, {
|
|
|
46
46
|
module.exports = __toCommonJS(Divider_exports);
|
|
47
47
|
var import_clsx = __toESM(require("clsx"));
|
|
48
48
|
var import_react = __toESM(require("react"));
|
|
49
|
-
var
|
|
49
|
+
var import_index = require("./index.css");
|
|
50
50
|
const prefixCls = "bui-divider";
|
|
51
51
|
const Divider = (0, import_react.forwardRef)((props, ref) => {
|
|
52
|
-
const {
|
|
52
|
+
const {
|
|
53
|
+
className,
|
|
54
|
+
style,
|
|
55
|
+
direction = "vertical",
|
|
56
|
+
dashed = false,
|
|
57
|
+
size,
|
|
58
|
+
children
|
|
59
|
+
} = props;
|
|
53
60
|
const isVertical = direction === "vertical";
|
|
54
61
|
const hasChildren = !!import_react.default.Children.toArray(children).length;
|
|
55
62
|
let propsStyle = {};
|
|
@@ -76,8 +83,4 @@ const Divider = (0, import_react.forwardRef)((props, ref) => {
|
|
|
76
83
|
);
|
|
77
84
|
});
|
|
78
85
|
Divider.displayName = "BuiDivider";
|
|
79
|
-
Divider.defaultProps = {
|
|
80
|
-
direction: "vertical",
|
|
81
|
-
dashed: false
|
|
82
|
-
};
|
|
83
86
|
var Divider_default = Divider;
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-divider-height: 100%;
|
|
5
|
+
--bui-divider-width: 100%;
|
|
6
|
+
--bui-divider-border-width: 1px;
|
|
7
|
+
--bui-divider-line-width: 40px;
|
|
8
|
+
}
|
|
1
9
|
.bui-divider {
|
|
2
|
-
--height: var(--bui-divider-height, 100%);
|
|
3
|
-
--width: var(--bui-divider-width, 100%);
|
|
4
|
-
--border-width: var(--bui-divider-border-width, 1px);
|
|
5
|
-
--line-width: var(--bui-divider-line-width, 40px);
|
|
6
10
|
border-color: var(--bui-color-border-default);
|
|
7
11
|
font-family: var(--bui-font-family);
|
|
8
12
|
}
|
|
9
13
|
.bui-divider-vertical {
|
|
10
|
-
height: var(--height);
|
|
14
|
+
height: var(--bui-divider-height);
|
|
11
15
|
display: inline-block;
|
|
12
|
-
border-right-width: var(--border-width);
|
|
16
|
+
border-right-width: var(--bui-divider-border-width);
|
|
13
17
|
border-right-style: solid;
|
|
14
18
|
}
|
|
15
19
|
.bui-divider-horizontal {
|
|
16
|
-
width: var(--width);
|
|
17
|
-
border-bottom-width: var(--border-width);
|
|
20
|
+
width: var(--bui-divider-width);
|
|
21
|
+
border-bottom-width: var(--bui-divider-border-width);
|
|
18
22
|
border-bottom-style: solid;
|
|
19
23
|
}
|
|
20
24
|
.bui-divider-vertical-dashed {
|
|
@@ -31,8 +35,8 @@
|
|
|
31
35
|
justify-content: center;
|
|
32
36
|
}
|
|
33
37
|
.bui-divider-line {
|
|
34
|
-
width: var(--line-width);
|
|
35
|
-
border-bottom-width: var(--border-width);
|
|
38
|
+
width: var(--bui-divider-line-width);
|
|
39
|
+
border-bottom-width: var(--bui-divider-border-width);
|
|
36
40
|
border-bottom-style: solid;
|
|
37
41
|
border-color: var(--bui-color-border-default);
|
|
38
42
|
}
|
package/dist/Drawer/Drawer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawerProps } from './Drawer.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Drawer: React.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Drawer;
|
package/dist/Drawer/Drawer.js
CHANGED
|
@@ -63,7 +63,7 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
63
63
|
var import_react = __toESM(require("react"));
|
|
64
64
|
var import_Modal = __toESM(require("../Modal"));
|
|
65
65
|
var import_Slide = __toESM(require("../Slide"));
|
|
66
|
-
var
|
|
66
|
+
var import_index = require("./index.css");
|
|
67
67
|
const prefixCls = "bui-drawer";
|
|
68
68
|
const oppositeDirection = {
|
|
69
69
|
left: "right",
|
|
@@ -73,15 +73,15 @@ const oppositeDirection = {
|
|
|
73
73
|
};
|
|
74
74
|
const Drawer = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
75
75
|
const _a = props, {
|
|
76
|
-
anchor: anchorProp,
|
|
76
|
+
anchor: anchorProp = "bottom",
|
|
77
77
|
container,
|
|
78
78
|
children,
|
|
79
79
|
className,
|
|
80
|
-
hideBackdrop,
|
|
80
|
+
hideBackdrop = false,
|
|
81
81
|
onClose,
|
|
82
82
|
SlideProps,
|
|
83
|
-
open,
|
|
84
|
-
disablePortal,
|
|
83
|
+
open = false,
|
|
84
|
+
disablePortal = false,
|
|
85
85
|
contentProps,
|
|
86
86
|
transitionDuration
|
|
87
87
|
} = _a, others = __objRest(_a, [
|
|
@@ -135,10 +135,4 @@ const Drawer = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
135
135
|
);
|
|
136
136
|
});
|
|
137
137
|
Drawer.displayName = "BuiDrawer";
|
|
138
|
-
Drawer.defaultProps = {
|
|
139
|
-
anchor: "bottom",
|
|
140
|
-
hideBackdrop: false,
|
|
141
|
-
open: false,
|
|
142
|
-
disablePortal: false
|
|
143
|
-
};
|
|
144
138
|
var Drawer_default = Drawer;
|
package/dist/Fade/Fade.js
CHANGED
|
@@ -70,62 +70,58 @@ const defaultTimeout = {
|
|
|
70
70
|
enter: import_utils.duration.enteringScreen,
|
|
71
71
|
exit: import_utils.duration.leavingScreen
|
|
72
72
|
};
|
|
73
|
-
const Fade = /* @__PURE__ */ import_react.default.forwardRef(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
easing: easingProp,
|
|
79
|
-
style,
|
|
80
|
-
timeout,
|
|
81
|
-
delay
|
|
82
|
-
} = _a, others = __objRest(_a, [
|
|
83
|
-
"appear",
|
|
84
|
-
"children",
|
|
85
|
-
"in",
|
|
86
|
-
"easing",
|
|
87
|
-
"style",
|
|
88
|
-
"timeout",
|
|
89
|
-
"delay"
|
|
90
|
-
]);
|
|
91
|
-
const transitions = (0, import_utils.createTransitions)();
|
|
92
|
-
const nodeRef = (0, import_utils.useForkRef)(ref, children == null ? void 0 : children.ref);
|
|
93
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
94
|
-
import_Transition.default,
|
|
95
|
-
__spreadProps(__spreadValues({
|
|
96
|
-
appear,
|
|
73
|
+
const Fade = /* @__PURE__ */ import_react.default.forwardRef(
|
|
74
|
+
(_a, ref) => {
|
|
75
|
+
var _b = _a, {
|
|
76
|
+
appear = true,
|
|
77
|
+
children,
|
|
97
78
|
in: inProp,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
79
|
+
easing: easingProp = defaultEasing,
|
|
80
|
+
style,
|
|
81
|
+
timeout = defaultTimeout,
|
|
82
|
+
delay = 0
|
|
83
|
+
} = _b, others = __objRest(_b, [
|
|
84
|
+
"appear",
|
|
85
|
+
"children",
|
|
86
|
+
"in",
|
|
87
|
+
"easing",
|
|
88
|
+
"style",
|
|
89
|
+
"timeout",
|
|
90
|
+
"delay"
|
|
91
|
+
]);
|
|
92
|
+
const transitions = (0, import_utils.createTransitions)();
|
|
93
|
+
const nodeRef = (0, import_utils.useForkRef)(ref, children == null ? void 0 : children.ref);
|
|
94
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
95
|
+
import_Transition.default,
|
|
96
|
+
__spreadProps(__spreadValues({
|
|
97
|
+
appear,
|
|
98
|
+
in: inProp,
|
|
99
|
+
timeout,
|
|
100
|
+
delay
|
|
101
|
+
}, others), {
|
|
102
|
+
ref: nodeRef
|
|
103
|
+
}),
|
|
104
|
+
(state, childProps) => {
|
|
105
|
+
const transition = transitions.create(
|
|
106
|
+
"opacity",
|
|
107
|
+
(0, import_utils.getTransitionProps)(
|
|
108
|
+
{ timeout, style, easing: easingProp, delay },
|
|
109
|
+
{
|
|
110
|
+
mode: state
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
);
|
|
114
|
+
return import_react.default.cloneElement(children, __spreadValues({
|
|
115
|
+
style: __spreadValues(__spreadValues({
|
|
116
|
+
visibility: state === "exited" ? "hidden" : "visible",
|
|
117
|
+
transition,
|
|
118
|
+
WebkitTransition: transition,
|
|
119
|
+
opacity: state === "entering" || state === "entered" ? "1" : "0"
|
|
120
|
+
}, style), children.props.style)
|
|
121
|
+
}, childProps));
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
);
|
|
124
126
|
Fade.displayName = "BuiFade";
|
|
125
|
-
Fade.defaultProps = {
|
|
126
|
-
easing: defaultEasing,
|
|
127
|
-
timeout: defaultTimeout,
|
|
128
|
-
appear: true,
|
|
129
|
-
delay: 0
|
|
130
|
-
};
|
|
131
127
|
var Fade_default = Fade;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconButtonProps } from './IconButton.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps<"button", {}>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export default IconButton;
|
|
@@ -59,7 +59,7 @@ module.exports = __toCommonJS(IconButton_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
|
|
62
|
+
var import_index = require("./index.css");
|
|
63
63
|
const prefixCls = "bui-icon-btn";
|
|
64
64
|
const IconButton = /* @__PURE__ */ import_react.default.forwardRef(
|
|
65
65
|
(props, ref) => {
|
|
@@ -67,11 +67,11 @@ const IconButton = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
67
67
|
const _a = props, {
|
|
68
68
|
className,
|
|
69
69
|
children,
|
|
70
|
-
color,
|
|
71
|
-
disabled,
|
|
72
|
-
size,
|
|
73
|
-
variant,
|
|
74
|
-
shape
|
|
70
|
+
color = "neutral",
|
|
71
|
+
disabled = false,
|
|
72
|
+
size = "medium",
|
|
73
|
+
variant = "default",
|
|
74
|
+
shape = "circular"
|
|
75
75
|
} = _a, others = __objRest(_a, [
|
|
76
76
|
"className",
|
|
77
77
|
"children",
|
|
@@ -102,17 +102,10 @@ const IconButton = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
102
102
|
import_utils.isMini && import_react.default.isValidElement(children) ? import_react.default.cloneElement(children, __spreadValues(__spreadValues({}, !isContainedVariant && {
|
|
103
103
|
color: ((_b = children.props) == null ? void 0 : _b.color) || color
|
|
104
104
|
}), isContainedVariant && {
|
|
105
|
-
htmlColor: ((_c = children.props) == null ? void 0 : _c.htmlColor) || "
|
|
105
|
+
htmlColor: ((_c = children.props) == null ? void 0 : _c.htmlColor) || "var(--bui-color-white)"
|
|
106
106
|
})) : children
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
IconButton.displayName = "BuiIconButton";
|
|
111
|
-
IconButton.defaultProps = {
|
|
112
|
-
size: "medium",
|
|
113
|
-
variant: "default",
|
|
114
|
-
shape: "circular",
|
|
115
|
-
color: "default",
|
|
116
|
-
disabled: false
|
|
117
|
-
};
|
|
118
111
|
var IconButton_default = IconButton;
|