@bifrostui/react 1.5.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/dist/CollapsePanel/{CollapsePanel.css → 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/Dialog.types.d.ts +0 -5
- package/dist/Dialog/FunctionalDialog.js +2 -13
- package/dist/Dialog/index.css +26 -23
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/Divider.js +9 -6
- package/dist/Divider/{Divider.css → index.css} +14 -10
- package/dist/Drawer/Drawer.d.ts +1 -1
- package/dist/Drawer/Drawer.js +5 -11
- package/{es/Drawer/Drawer.css → dist/Drawer/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 -16
- 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 +2 -13
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/Toast.js +5 -5
- package/dist/Toast/Toast.types.d.ts +0 -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/es/CollapsePanel/{CollapsePanel.css → 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/Dialog.types.d.ts +0 -5
- package/es/Dialog/FunctionalDialog.js +3 -14
- package/es/Dialog/index.css +26 -23
- package/es/Divider/Divider.d.ts +1 -1
- package/es/Divider/Divider.js +9 -6
- package/es/Divider/{Divider.css → index.css} +14 -10
- package/es/Drawer/Drawer.d.ts +1 -1
- package/es/Drawer/Drawer.js +5 -11
- package/{dist/Drawer/Drawer.css → es/Drawer/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 -16
- 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 +3 -14
- package/es/Toast/Toast.d.ts +1 -1
- package/es/Toast/Toast.js +5 -5
- package/es/Toast/Toast.types.d.ts +0 -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 -243
- package/dist/DesktopPicker/DesktopPicker.types.d.ts +0 -61
- package/dist/DesktopPicker/DesktopPicker.types.js +0 -15
- package/dist/DesktopPicker/index.css +0 -39
- 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 -226
- package/es/DesktopPicker/DesktopPicker.types.d.ts +0 -61
- package/es/DesktopPicker/DesktopPicker.types.js +0 -1
- package/es/DesktopPicker/index.css +0 -39
- 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
|
@@ -138,6 +138,7 @@ export type ScrollViewProps<D extends React.ElementType = 'div', P = {}> = Overr
|
|
|
138
138
|
*/
|
|
139
139
|
fastDeceleration?: boolean;
|
|
140
140
|
/** 当 scroll-with-animation设置为 true 时,可以设置 scroll-animation-duration 来控制动画的执行时间,单位 ms。
|
|
141
|
+
* 仅小程序可用
|
|
141
142
|
*/
|
|
142
143
|
scrollAnimationDuration?: number;
|
|
143
144
|
/** 纵向滚动时,当滚动到顶部或底部时,强制禁止触发页面滚动,仍然只触发 scroll-view 自身的滚动。
|
package/es/Select/Select.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SelectProps } from './Select.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Select;
|
package/es/Select/Select.js
CHANGED
|
@@ -29,32 +29,13 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
var __async = (__this, __arguments, generator) => {
|
|
33
|
-
return new Promise((resolve, reject) => {
|
|
34
|
-
var fulfilled = (value) => {
|
|
35
|
-
try {
|
|
36
|
-
step(generator.next(value));
|
|
37
|
-
} catch (e) {
|
|
38
|
-
reject(e);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
var rejected = (value) => {
|
|
42
|
-
try {
|
|
43
|
-
step(generator.throw(value));
|
|
44
|
-
} catch (e) {
|
|
45
|
-
reject(e);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
49
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
32
|
import { CaretDownIcon, CaretUpIcon } from "@bifrostui/icons";
|
|
53
33
|
import {
|
|
54
34
|
getStylesAndLocation,
|
|
55
35
|
isMini,
|
|
56
36
|
throttle,
|
|
57
37
|
useForkRef,
|
|
38
|
+
useUniqueId,
|
|
58
39
|
useValue
|
|
59
40
|
} from "@bifrostui/utils";
|
|
60
41
|
import clsx from "clsx";
|
|
@@ -64,7 +45,7 @@ import Slide from "../Slide";
|
|
|
64
45
|
import BuiSelectContext from "./selectContext";
|
|
65
46
|
import Backdrop from "../Backdrop";
|
|
66
47
|
import Portal from "../Portal";
|
|
67
|
-
import "./
|
|
48
|
+
import "./index.css";
|
|
68
49
|
const prefixCls = "bui-select";
|
|
69
50
|
const defaultPlacement = "bottom";
|
|
70
51
|
const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
@@ -76,12 +57,14 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
76
57
|
inputProps,
|
|
77
58
|
BackdropProps,
|
|
78
59
|
value,
|
|
79
|
-
defaultValue,
|
|
60
|
+
defaultValue = "",
|
|
80
61
|
disabled,
|
|
81
62
|
placeholder,
|
|
82
63
|
icon,
|
|
83
64
|
open,
|
|
84
|
-
scrollContainer
|
|
65
|
+
scrollContainer = () => {
|
|
66
|
+
return isMini ? null : document.body;
|
|
67
|
+
},
|
|
85
68
|
onChange,
|
|
86
69
|
onClose,
|
|
87
70
|
onOpen,
|
|
@@ -117,36 +100,38 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
117
100
|
const isOpen = open !== void 0 ? open : internalOpen;
|
|
118
101
|
const locatorRef = useRef(null);
|
|
119
102
|
const rootRef = useForkRef(ref, locatorRef);
|
|
120
|
-
const
|
|
121
|
-
const
|
|
122
|
-
const updateOptionStyle = () =>
|
|
103
|
+
const ttId = useUniqueId();
|
|
104
|
+
const dataId = `${prefixCls}-tt-${ttId}`;
|
|
105
|
+
const updateOptionStyle = throttle(() => {
|
|
123
106
|
const curScrollRoot = scrollContainer();
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
const changeOpen = (newOpen) =>
|
|
107
|
+
if (!isMini && curScrollRoot) {
|
|
108
|
+
const result = getStylesAndLocation({
|
|
109
|
+
scrollRoot: curScrollRoot,
|
|
110
|
+
childrenRef: locatorRef,
|
|
111
|
+
arrowDirection: defaultPlacement,
|
|
112
|
+
arrowLocation: "none",
|
|
113
|
+
selector: `[data-id="${dataId}"]`,
|
|
114
|
+
offsetSpacing: 0
|
|
115
|
+
});
|
|
116
|
+
if (!result)
|
|
117
|
+
return;
|
|
118
|
+
const { styles, childrenStyle, newArrowDirection } = result;
|
|
119
|
+
setPlacement(newArrowDirection);
|
|
120
|
+
setOptionStyle(__spreadProps(__spreadValues({}, styles), { width: childrenStyle.width }));
|
|
121
|
+
}
|
|
122
|
+
}, 100);
|
|
123
|
+
const changeOpen = (newOpen) => {
|
|
141
124
|
if (newOpen) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
125
|
+
updateOptionStyle();
|
|
126
|
+
setTimeout(() => {
|
|
127
|
+
setInternalOpen(newOpen);
|
|
128
|
+
onOpen == null ? void 0 : onOpen();
|
|
129
|
+
}, 100);
|
|
145
130
|
} else {
|
|
146
131
|
onClose == null ? void 0 : onClose();
|
|
147
132
|
setInternalOpen(newOpen);
|
|
148
133
|
}
|
|
149
|
-
}
|
|
134
|
+
};
|
|
150
135
|
const handleSelectClick = (e) => {
|
|
151
136
|
if (disabled)
|
|
152
137
|
return;
|
|
@@ -171,21 +156,14 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
171
156
|
[selectValue, onChange, setRenderValue]
|
|
172
157
|
);
|
|
173
158
|
useEffect(() => {
|
|
174
|
-
const resizeCb = throttle(updateOptionStyle, 100);
|
|
175
159
|
if (!isMini) {
|
|
176
|
-
window.addEventListener("resize",
|
|
160
|
+
window.addEventListener("resize", updateOptionStyle);
|
|
177
161
|
return () => {
|
|
178
|
-
window.removeEventListener("resize",
|
|
162
|
+
window.removeEventListener("resize", updateOptionStyle);
|
|
179
163
|
};
|
|
180
164
|
}
|
|
181
165
|
}, []);
|
|
182
|
-
const defaultIcon = isOpen ? /* @__PURE__ */ React.createElement(CaretUpIcon, { className: `${prefixCls}-selector-icon`,
|
|
183
|
-
CaretDownIcon,
|
|
184
|
-
{
|
|
185
|
-
className: `${prefixCls}-selector-icon`,
|
|
186
|
-
htmlColor: "#9c9ca5"
|
|
187
|
-
}
|
|
188
|
-
);
|
|
166
|
+
const defaultIcon = isOpen ? /* @__PURE__ */ React.createElement(CaretUpIcon, { className: `${prefixCls}-selector-icon`, color: "neutral" }) : /* @__PURE__ */ React.createElement(CaretDownIcon, { className: `${prefixCls}-selector-icon`, color: "neutral" });
|
|
189
167
|
const renderOptions = () => {
|
|
190
168
|
var _a2;
|
|
191
169
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -193,8 +171,8 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
193
171
|
{
|
|
194
172
|
in: isOpen,
|
|
195
173
|
timeout: {
|
|
196
|
-
enter:
|
|
197
|
-
exit:
|
|
174
|
+
enter: 150,
|
|
175
|
+
exit: 150
|
|
198
176
|
}
|
|
199
177
|
},
|
|
200
178
|
/* @__PURE__ */ React.createElement(
|
|
@@ -208,7 +186,7 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
208
186
|
[`${prefixCls}-option-container-hide`]: !isOpen
|
|
209
187
|
}
|
|
210
188
|
),
|
|
211
|
-
|
|
189
|
+
"data-id": dataId,
|
|
212
190
|
style: optionStyle
|
|
213
191
|
},
|
|
214
192
|
/* @__PURE__ */ React.createElement(
|
|
@@ -217,18 +195,11 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
217
195
|
in: isOpen,
|
|
218
196
|
direction: placement === "bottom" ? "down" : "up",
|
|
219
197
|
timeout: {
|
|
220
|
-
enter:
|
|
221
|
-
exit:
|
|
198
|
+
enter: 150,
|
|
199
|
+
exit: 150
|
|
222
200
|
}
|
|
223
201
|
},
|
|
224
|
-
/* @__PURE__ */ React.createElement(
|
|
225
|
-
"div",
|
|
226
|
-
{
|
|
227
|
-
className: clsx(`${prefixCls}-option-main`),
|
|
228
|
-
ref: optionMainRef
|
|
229
|
-
},
|
|
230
|
-
children
|
|
231
|
-
)
|
|
202
|
+
/* @__PURE__ */ React.createElement("div", { className: clsx(`${prefixCls}-option-main`) }, children)
|
|
232
203
|
)
|
|
233
204
|
)
|
|
234
205
|
);
|
|
@@ -256,8 +227,9 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
256
227
|
[inputProps == null ? void 0 : inputProps.className]: inputProps == null ? void 0 : inputProps.className
|
|
257
228
|
})
|
|
258
229
|
})
|
|
259
|
-
), icon || defaultIcon)
|
|
260
|
-
|
|
230
|
+
), icon || defaultIcon),
|
|
231
|
+
isMini && renderOptions()
|
|
232
|
+
), !isMini && /* @__PURE__ */ React.createElement(Portal, { onRootElementMouted: updateOptionStyle }, renderOptions()), /* @__PURE__ */ React.createElement(
|
|
261
233
|
Backdrop,
|
|
262
234
|
__spreadProps(__spreadValues({
|
|
263
235
|
open: isOpen,
|
|
@@ -272,10 +244,6 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
272
244
|
));
|
|
273
245
|
});
|
|
274
246
|
Select.displayName = "BuiSelect";
|
|
275
|
-
Select.defaultProps = {
|
|
276
|
-
defaultValue: "",
|
|
277
|
-
scrollContainer: () => null
|
|
278
|
-
};
|
|
279
247
|
var Select_default = Select;
|
|
280
248
|
export {
|
|
281
249
|
Select_default as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SelectOptionProps } from './Select.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const SelectOption: React.ForwardRefExoticComponent<Omit<SelectOptionProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default SelectOption;
|
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
import clsx from "clsx";
|
|
33
33
|
import React, { useContext, useEffect } from "react";
|
|
34
34
|
import BuiSelectContext from "./selectContext";
|
|
35
|
-
import "./
|
|
35
|
+
import "./index.css";
|
|
36
36
|
const prefixCls = "bui-select-option";
|
|
37
37
|
const SelectOption = /* @__PURE__ */ React.forwardRef(
|
|
38
38
|
(props, ref) => {
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-select-height: 32px;
|
|
5
|
+
--bui-select-min-width: 100px;
|
|
6
|
+
--bui-select-font-size: var(--bui-text-size-1);
|
|
7
|
+
--bui-select-selector-container-padding: 0 14px;
|
|
8
|
+
--bui-select-option-main-padding: 3px 0;
|
|
9
|
+
--bui-select-option-padding: 0 14px;
|
|
10
|
+
--bui-select-option-border-radius: 5px;
|
|
11
|
+
--bui-select-option-margin: 0 3px;
|
|
12
|
+
--bui-select-option-height: 32px;
|
|
13
|
+
--bui-select-option-active-bg-color: #fff2f0;
|
|
14
|
+
}
|
|
1
15
|
.bui-select {
|
|
2
|
-
--height: var(--bui-select-height, 27px);
|
|
3
|
-
--mini-width: var(--bui-select-min-width, 100px);
|
|
4
|
-
--font-size: var(--bui-select-font-size, var(--bui-title-size-3));
|
|
5
|
-
--padding: var(--bui-select-selector-container, 0 14px);
|
|
6
16
|
position: relative;
|
|
7
17
|
cursor: pointer;
|
|
8
|
-
height: var(--height);
|
|
9
|
-
min-width: var(--
|
|
10
|
-
font-size: var(--font-size);
|
|
18
|
+
height: var(--bui-select-height);
|
|
19
|
+
min-width: var(--bui-select-min-width);
|
|
20
|
+
font-size: var(--bui-select-font-size);
|
|
11
21
|
border-radius: 5px;
|
|
12
22
|
background-color: var(--bui-color-bg-view);
|
|
13
23
|
font-family: var(--bui-font-family);
|
|
@@ -19,7 +29,7 @@
|
|
|
19
29
|
.bui-select-selector-container {
|
|
20
30
|
display: flex;
|
|
21
31
|
align-items: center;
|
|
22
|
-
padding: var(--padding);
|
|
32
|
+
padding: var(--bui-select-selector-container-padding);
|
|
23
33
|
height: 100%;
|
|
24
34
|
}
|
|
25
35
|
.bui-select-input {
|
|
@@ -37,7 +47,7 @@
|
|
|
37
47
|
justify-content: space-between;
|
|
38
48
|
align-items: center;
|
|
39
49
|
flex: 1;
|
|
40
|
-
height: var(--height);
|
|
50
|
+
height: var(--bui-select-height);
|
|
41
51
|
background-color: transparent;
|
|
42
52
|
outline: none;
|
|
43
53
|
border: 0;
|
|
@@ -48,9 +58,13 @@
|
|
|
48
58
|
.bui-select-option-container {
|
|
49
59
|
position: absolute;
|
|
50
60
|
box-sizing: border-box;
|
|
61
|
+
top: 100%;
|
|
62
|
+
left: 0;
|
|
63
|
+
width: 100%;
|
|
51
64
|
font-size: var(--bui-select-font-size, var(--bui-title-size-3));
|
|
52
65
|
z-index: var(--bui-z-index-tooltip);
|
|
53
66
|
border-radius: 3px;
|
|
67
|
+
background-color: var(--bui-color-bg-view);
|
|
54
68
|
padding: 2px;
|
|
55
69
|
overflow: hidden;
|
|
56
70
|
}
|
|
@@ -65,30 +79,26 @@
|
|
|
65
79
|
}
|
|
66
80
|
.bui-select-option-main {
|
|
67
81
|
border-radius: 3px;
|
|
68
|
-
padding: var(--bui-select-option-
|
|
82
|
+
padding: var(--bui-select-option-main-padding);
|
|
69
83
|
box-shadow: 0 0 0 2px var(--bui-color-bg-default);
|
|
70
|
-
background-color: var(--bui-color-bg-view);
|
|
71
84
|
overflow: hidden;
|
|
72
85
|
}
|
|
73
86
|
.bui-select-option {
|
|
74
|
-
--option-padding: var(--bui-select-option-padding, 0 14px);
|
|
75
|
-
--option-margin: var(--bui-select-option-margin, 0 3px);
|
|
76
|
-
--option-height: var(--bui-select-option-height, 27px);
|
|
77
87
|
display: flex;
|
|
78
88
|
align-items: center;
|
|
79
|
-
height: var(--option-height);
|
|
80
|
-
padding: var(--option-padding);
|
|
81
|
-
border-radius:
|
|
82
|
-
margin: var(--option-margin);
|
|
89
|
+
height: var(--bui-select-option-height);
|
|
90
|
+
padding: var(--bui-select-option-padding);
|
|
91
|
+
border-radius: var(--bui-select-option-border-radius);
|
|
92
|
+
margin: var(--bui-select-option-margin);
|
|
83
93
|
}
|
|
84
94
|
.bui-select-option:hover {
|
|
85
|
-
background-color: var(
|
|
95
|
+
background-color: var(--bui-select-option-active-bg-color);
|
|
86
96
|
color: var(--bui-color-primary);
|
|
87
97
|
}
|
|
88
98
|
.bui-select-option-active {
|
|
89
99
|
font-weight: var(--bui-font-weight-medium);
|
|
90
100
|
color: var(--bui-color-primary);
|
|
91
|
-
background-color: var(
|
|
101
|
+
background-color: var(--bui-select-option-active-bg-color);
|
|
92
102
|
}
|
|
93
103
|
.bui-select-option-hide {
|
|
94
104
|
opacity: 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './Skeleton.less';
|
|
3
2
|
import { SkeletonProps } from './Skeleton.types';
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps<"div", {}>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
5
|
export default Skeleton;
|
package/es/Skeleton/Skeleton.js
CHANGED
|
@@ -28,19 +28,19 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
};
|
|
29
29
|
import clsx from "clsx";
|
|
30
30
|
import React from "react";
|
|
31
|
-
import "./
|
|
31
|
+
import "./index.css";
|
|
32
32
|
const prefixCls = "bui-skeleton";
|
|
33
33
|
const Skeleton = /* @__PURE__ */ React.forwardRef(
|
|
34
|
-
(
|
|
35
|
-
|
|
34
|
+
(_a, ref) => {
|
|
35
|
+
var _b = _a, {
|
|
36
36
|
className,
|
|
37
37
|
style,
|
|
38
|
-
animation,
|
|
38
|
+
animation = "wave",
|
|
39
39
|
width,
|
|
40
40
|
height,
|
|
41
|
-
variant,
|
|
41
|
+
variant = "text",
|
|
42
42
|
children
|
|
43
|
-
} =
|
|
43
|
+
} = _b, others = __objRest(_b, [
|
|
44
44
|
"className",
|
|
45
45
|
"style",
|
|
46
46
|
"animation",
|
|
@@ -69,10 +69,6 @@ const Skeleton = /* @__PURE__ */ React.forwardRef(
|
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
71
|
Skeleton.displayName = "BuiSkeleton";
|
|
72
|
-
Skeleton.defaultProps = {
|
|
73
|
-
animation: "wave",
|
|
74
|
-
variant: "text"
|
|
75
|
-
};
|
|
76
72
|
var Skeleton_default = Skeleton;
|
|
77
73
|
export {
|
|
78
74
|
Skeleton_default as default
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-skeleton-height: 1.2em;
|
|
5
|
+
}
|
|
1
6
|
.bui-skeleton {
|
|
2
|
-
--height: var(--bui-skeleton-height, 1.2em);
|
|
3
7
|
display: block;
|
|
4
8
|
}
|
|
5
9
|
.bui-skeleton-animation-wave {
|
|
@@ -26,10 +30,10 @@
|
|
|
26
30
|
content: "\a0";
|
|
27
31
|
}
|
|
28
32
|
.bui-skeleton-rectangular {
|
|
29
|
-
height: var(--height);
|
|
33
|
+
height: var(--bui-skeleton-height);
|
|
30
34
|
}
|
|
31
35
|
.bui-skeleton-rounded {
|
|
32
|
-
height: var(--height);
|
|
36
|
+
height: var(--bui-skeleton-height);
|
|
33
37
|
border-radius: var(--bui-shape-radius-label);
|
|
34
38
|
}
|
|
35
39
|
.bui-skeleton-circular {
|
package/es/Slide/Slide.js
CHANGED
|
@@ -46,82 +46,77 @@ const defaultTimeout = {
|
|
|
46
46
|
enter: duration.enteringScreen,
|
|
47
47
|
exit: duration.leavingScreen
|
|
48
48
|
};
|
|
49
|
-
const Slide = /* @__PURE__ */ React.forwardRef(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
children,
|
|
54
|
-
style,
|
|
55
|
-
easing: easingProp,
|
|
56
|
-
timeout,
|
|
57
|
-
direction,
|
|
58
|
-
delay
|
|
59
|
-
} = _a, others = __objRest(_a, [
|
|
60
|
-
"appear",
|
|
61
|
-
"in",
|
|
62
|
-
"children",
|
|
63
|
-
"style",
|
|
64
|
-
"easing",
|
|
65
|
-
"timeout",
|
|
66
|
-
"direction",
|
|
67
|
-
"delay"
|
|
68
|
-
]);
|
|
69
|
-
const transitions = createTransitions();
|
|
70
|
-
const nodeRef = useForkRef(ref, children == null ? void 0 : children.ref);
|
|
71
|
-
const getTranslateValue = (_direction) => {
|
|
72
|
-
if (_direction === "left") {
|
|
73
|
-
return "translateX(100%)";
|
|
74
|
-
}
|
|
75
|
-
if (_direction === "right") {
|
|
76
|
-
return "translateX(-100%)";
|
|
77
|
-
}
|
|
78
|
-
if (_direction === "up") {
|
|
79
|
-
return "translateY(100%)";
|
|
80
|
-
}
|
|
81
|
-
return "translateY(-100%)";
|
|
82
|
-
};
|
|
83
|
-
if (!children)
|
|
84
|
-
return null;
|
|
85
|
-
return /* @__PURE__ */ React.createElement(
|
|
86
|
-
Transition,
|
|
87
|
-
__spreadProps(__spreadValues({}, others), {
|
|
88
|
-
appear,
|
|
49
|
+
const Slide = /* @__PURE__ */ React.forwardRef(
|
|
50
|
+
(_a, ref) => {
|
|
51
|
+
var _b = _a, {
|
|
52
|
+
appear = true,
|
|
89
53
|
in: inProp,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
54
|
+
children,
|
|
55
|
+
style,
|
|
56
|
+
easing: easingProp = defaultEasing,
|
|
57
|
+
timeout = defaultTimeout,
|
|
58
|
+
direction = "down",
|
|
59
|
+
delay = 0
|
|
60
|
+
} = _b, others = __objRest(_b, [
|
|
61
|
+
"appear",
|
|
62
|
+
"in",
|
|
63
|
+
"children",
|
|
64
|
+
"style",
|
|
65
|
+
"easing",
|
|
66
|
+
"timeout",
|
|
67
|
+
"direction",
|
|
68
|
+
"delay"
|
|
69
|
+
]);
|
|
70
|
+
const transitions = createTransitions();
|
|
71
|
+
const nodeRef = useForkRef(ref, children == null ? void 0 : children.ref);
|
|
72
|
+
const getTranslateValue = (_direction) => {
|
|
73
|
+
if (_direction === "left") {
|
|
74
|
+
return "translateX(100%)";
|
|
75
|
+
}
|
|
76
|
+
if (_direction === "right") {
|
|
77
|
+
return "translateX(-100%)";
|
|
78
|
+
}
|
|
79
|
+
if (_direction === "up") {
|
|
80
|
+
return "translateY(100%)";
|
|
81
|
+
}
|
|
82
|
+
return "translateY(-100%)";
|
|
83
|
+
};
|
|
84
|
+
if (!children)
|
|
85
|
+
return null;
|
|
86
|
+
return /* @__PURE__ */ React.createElement(
|
|
87
|
+
Transition,
|
|
88
|
+
__spreadProps(__spreadValues({}, others), {
|
|
89
|
+
appear,
|
|
90
|
+
in: inProp,
|
|
91
|
+
timeout,
|
|
92
|
+
delay,
|
|
93
|
+
ref: nodeRef
|
|
94
|
+
}),
|
|
95
|
+
(state, childProps) => {
|
|
96
|
+
const transition = transitions.create(
|
|
97
|
+
"transform",
|
|
98
|
+
getTransitionProps(
|
|
99
|
+
{ timeout, style, easing: easingProp, delay },
|
|
100
|
+
{
|
|
101
|
+
mode: state
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
const transform = state === "entering" || state === "entered" ? "none" : getTranslateValue(direction);
|
|
106
|
+
return React.cloneElement(children, __spreadValues({
|
|
107
|
+
style: __spreadValues(__spreadValues({
|
|
108
|
+
visibility: state === "exited" ? "hidden" : "visible",
|
|
109
|
+
transition,
|
|
110
|
+
WebkitTransition: transition,
|
|
111
|
+
transform,
|
|
112
|
+
WebkitTransform: transform
|
|
113
|
+
}, style), children.props.style)
|
|
114
|
+
}, childProps));
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
);
|
|
117
119
|
Slide.displayName = "BuiSlide";
|
|
118
|
-
Slide.defaultProps = {
|
|
119
|
-
appear: true,
|
|
120
|
-
easing: defaultEasing,
|
|
121
|
-
timeout: defaultTimeout,
|
|
122
|
-
direction: "down",
|
|
123
|
-
delay: 0
|
|
124
|
-
};
|
|
125
120
|
var Slide_default = Slide;
|
|
126
121
|
export {
|
|
127
122
|
Slide_default as default
|
package/es/Slider/Slider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './Slider.less';
|
|
3
2
|
import { SliderProps } from './Slider.types';
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Slider;
|