@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,18 +1,24 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-input-height: 32px;
|
|
5
|
+
--bui-input-padding: 4px 10px;
|
|
6
|
+
--bui-input-border-radius: var(--bui-shape-radius-default);
|
|
7
|
+
--bui-input-icon-start-margin-right: 3px;
|
|
8
|
+
--bui-input-icon-end-margin-left: 3px;
|
|
9
|
+
--bui-input-background-color: transparent;
|
|
10
|
+
--bui-input-disabled-background-color: rgba(0, 0, 0, 0.04);
|
|
11
|
+
--bui-input-clear-color: #ced1d6;
|
|
12
|
+
--bui-input-clear-font-size: var(--bui-title-size-3);
|
|
13
|
+
}
|
|
1
14
|
.bui-input {
|
|
2
|
-
--height: var(--bui-input-height, 32px);
|
|
3
|
-
--padding: var(--bui-input-padding, 4px 10px);
|
|
4
|
-
--border-radius: var(--bui-input-border-radius, var(--bui-shape-radius-default));
|
|
5
|
-
--icon-start-margin-right: var(--bui-input-icon-start-margin-right, 3px);
|
|
6
|
-
--icon-end-margin-left: var(--bui-input-icon-end-margin-left, 3px);
|
|
7
|
-
--background-color: var(--bui-input-background-color, transparent);
|
|
8
|
-
--disabled-background-color: var(--bui-input-disabled-background-color, rgba(0, 0, 0, 0.04));
|
|
9
15
|
position: relative;
|
|
10
16
|
display: flex;
|
|
11
17
|
align-items: center;
|
|
12
|
-
height: var(--height);
|
|
13
|
-
padding: var(--padding);
|
|
18
|
+
height: var(--bui-input-height);
|
|
19
|
+
padding: var(--bui-input-padding);
|
|
14
20
|
box-sizing: border-box;
|
|
15
|
-
border-radius: var(--border-radius);
|
|
21
|
+
border-radius: var(--bui-input-border-radius);
|
|
16
22
|
border: 1px solid var(--bui-color-border-default);
|
|
17
23
|
font-family: var(--bui-font-family);
|
|
18
24
|
}
|
|
@@ -23,29 +29,27 @@
|
|
|
23
29
|
font-size: var(--bui-title-size-3);
|
|
24
30
|
}
|
|
25
31
|
.bui-input-icon-start {
|
|
26
|
-
margin-right: var(--icon-start-margin-right);
|
|
32
|
+
margin-right: var(--bui-input-icon-start-margin-right);
|
|
27
33
|
}
|
|
28
34
|
.bui-input-icon-end {
|
|
29
|
-
margin-left: var(--icon-end-margin-left);
|
|
35
|
+
margin-left: var(--bui-input-icon-end-margin-left);
|
|
30
36
|
}
|
|
31
37
|
.bui-input-input {
|
|
32
38
|
flex: 1;
|
|
33
39
|
min-width: 0;
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
40
|
padding: 0;
|
|
37
41
|
height: 100%;
|
|
38
42
|
color: var(--bui-color-fg-default);
|
|
39
43
|
border: none;
|
|
40
44
|
outline: none;
|
|
41
|
-
background-color: var(--background-color);
|
|
45
|
+
background-color: var(--bui-input-background-color);
|
|
42
46
|
font-size: var(--bui-text-size-2);
|
|
43
47
|
}
|
|
44
48
|
.bui-input-input::placeholder {
|
|
45
49
|
color: var(--bui-color-fg-subtle);
|
|
46
50
|
}
|
|
47
51
|
.bui-input-disabled {
|
|
48
|
-
background-color: var(--disabled-background-color);
|
|
52
|
+
background-color: var(--bui-input-disabled-background-color);
|
|
49
53
|
}
|
|
50
54
|
.bui-input-disabled .bui-input-input {
|
|
51
55
|
color: var(--bui-color-fg-disabled);
|
|
@@ -57,9 +61,9 @@
|
|
|
57
61
|
display: flex;
|
|
58
62
|
align-items: center;
|
|
59
63
|
cursor: pointer;
|
|
60
|
-
color: var(--bui-
|
|
64
|
+
color: var(--bui-input-clear-color);
|
|
61
65
|
height: 100%;
|
|
62
|
-
font-size: var(--bui-
|
|
66
|
+
font-size: var(--bui-input-clear-font-size);
|
|
63
67
|
}
|
|
64
68
|
.bui-input .bui-mini-placeholder {
|
|
65
69
|
width: auto;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ItemSelectorProps } from './ItemSelector.types';
|
|
3
|
-
import './miniapp.less';
|
|
4
3
|
declare const ItemSelector: React.ForwardRefExoticComponent<Omit<ItemSelectorProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
export default ItemSelector;
|
|
@@ -20,7 +20,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import React, { useEffect, useRef, useState } from "react";
|
|
21
21
|
import Taro from "@tarojs/taro";
|
|
22
22
|
import ItemSelectorCore from "./ItemSelectorCore";
|
|
23
|
-
import "./miniapp.css";
|
|
24
23
|
const ItemSelector = /* @__PURE__ */ React.forwardRef(
|
|
25
24
|
(props, ref) => {
|
|
26
25
|
const { items } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ItemSelectorCoreProps } from './ItemSelector.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const ItemSelector: React.ForwardRefExoticComponent<Omit<ItemSelectorCoreProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default ItemSelector;
|
|
@@ -31,7 +31,7 @@ import clsx from "clsx";
|
|
|
31
31
|
import { throttle, useForkRef, useTouchEmulator } from "@bifrostui/utils";
|
|
32
32
|
import ScrollView from "../ScrollView";
|
|
33
33
|
import Selector from "./Selector";
|
|
34
|
-
import "./
|
|
34
|
+
import "./index.css";
|
|
35
35
|
const DEVIATION_HEIGHT = "6vmin";
|
|
36
36
|
const prefixCls = "bui-item-selector";
|
|
37
37
|
const ItemSelector = /* @__PURE__ */ React.forwardRef(
|
package/es/List/List.css
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-list-small-item-padding: 5px 12px;
|
|
5
|
+
--bui-list-medium-item-padding: 18px 12px;
|
|
6
|
+
--bui-list-large-item-padding: 20px 12px;
|
|
7
|
+
}
|
|
1
8
|
.bui-list {
|
|
2
|
-
--small-item-padding: var(--bui-list-small-item-padding, 5px 12px);
|
|
3
|
-
--medium-item-padding: var(--bui-list-medium-item-padding, 18px 12px);
|
|
4
|
-
--large-item-padding: var(--bui-list-large-item-padding, 20px 12px);
|
|
5
9
|
background: var(--bui-color-bg-view);
|
|
6
10
|
font-size: var(--bui-title-size-3);
|
|
7
11
|
font-family: var(--bui-font-family);
|
package/es/List/List.js
CHANGED
|
@@ -33,11 +33,11 @@ import "./List.css";
|
|
|
33
33
|
const prefixCls = "bui-list";
|
|
34
34
|
const List = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
35
35
|
const _a = props, {
|
|
36
|
-
hideDivider,
|
|
36
|
+
hideDivider = false,
|
|
37
37
|
children,
|
|
38
38
|
className,
|
|
39
|
-
size,
|
|
40
|
-
component: Component,
|
|
39
|
+
size = "medium",
|
|
40
|
+
component: Component = "div",
|
|
41
41
|
header,
|
|
42
42
|
subheader
|
|
43
43
|
} = _a, others = __objRest(_a, [
|
|
@@ -66,11 +66,6 @@ const List = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
66
66
|
));
|
|
67
67
|
});
|
|
68
68
|
List.displayName = "BuiList";
|
|
69
|
-
List.defaultProps = {
|
|
70
|
-
hideDivider: false,
|
|
71
|
-
size: "medium",
|
|
72
|
-
component: "div"
|
|
73
|
-
};
|
|
74
69
|
var List_default = List;
|
|
75
70
|
export {
|
|
76
71
|
List_default as default
|
package/es/List/ListItem.css
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
color: var(--bui-color-fg-subtle);
|
|
11
11
|
}
|
|
12
12
|
.bui-list-small .bui-list-item {
|
|
13
|
-
padding: var(--small-item-padding);
|
|
13
|
+
padding: var(--bui-list-small-item-padding);
|
|
14
14
|
}
|
|
15
15
|
.bui-list-medium .bui-list-item {
|
|
16
|
-
padding: var(--medium-item-padding);
|
|
16
|
+
padding: var(--bui-list-medium-item-padding);
|
|
17
17
|
}
|
|
18
18
|
.bui-list-large .bui-list-item {
|
|
19
|
-
padding: var(--large-item-padding);
|
|
19
|
+
padding: var(--bui-list-large-item-padding);
|
|
20
20
|
}
|
|
21
21
|
.bui-list-item-divider:not(:last-child) {
|
|
22
22
|
border-bottom: 1px solid var(--bui-color-border-default);
|
package/es/List/ListItem.js
CHANGED
|
@@ -33,52 +33,50 @@ import ListContext from "./ListContext";
|
|
|
33
33
|
import ListItemFooter from "./ListItemFooter";
|
|
34
34
|
import "./ListItem.css";
|
|
35
35
|
const prefixCls = "bui-list-item";
|
|
36
|
-
const ListItem = /* @__PURE__ */ React.forwardRef(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
endIcon,
|
|
44
|
-
component: Component
|
|
45
|
-
} = _a, others = __objRest(_a, [
|
|
46
|
-
"children",
|
|
47
|
-
"className",
|
|
48
|
-
"hideDivider",
|
|
49
|
-
"disabled",
|
|
50
|
-
"onClick",
|
|
51
|
-
"endIcon",
|
|
52
|
-
"component"
|
|
53
|
-
]);
|
|
54
|
-
let chevron;
|
|
55
|
-
if (typeof endIcon === "boolean") {
|
|
56
|
-
chevron = endIcon && /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small" });
|
|
57
|
-
} else if (React.isValidElement(endIcon)) {
|
|
58
|
-
chevron = endIcon;
|
|
59
|
-
} else {
|
|
60
|
-
chevron = onClick && /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small" });
|
|
61
|
-
}
|
|
62
|
-
const context = React.useContext(ListContext);
|
|
63
|
-
return /* @__PURE__ */ React.createElement(
|
|
64
|
-
Component,
|
|
65
|
-
__spreadValues({
|
|
66
|
-
className: clsx(prefixCls, className, {
|
|
67
|
-
[`${prefixCls}-divider`]: !(hideDivider || context.hideDivider),
|
|
68
|
-
[`${prefixCls}-disabled`]: disabled
|
|
69
|
-
}),
|
|
36
|
+
const ListItem = /* @__PURE__ */ React.forwardRef(
|
|
37
|
+
(_a, ref) => {
|
|
38
|
+
var _b = _a, {
|
|
39
|
+
children,
|
|
40
|
+
className,
|
|
41
|
+
hideDivider = false,
|
|
42
|
+
disabled,
|
|
70
43
|
onClick,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
44
|
+
endIcon,
|
|
45
|
+
component: Component = "div"
|
|
46
|
+
} = _b, others = __objRest(_b, [
|
|
47
|
+
"children",
|
|
48
|
+
"className",
|
|
49
|
+
"hideDivider",
|
|
50
|
+
"disabled",
|
|
51
|
+
"onClick",
|
|
52
|
+
"endIcon",
|
|
53
|
+
"component"
|
|
54
|
+
]);
|
|
55
|
+
let chevron;
|
|
56
|
+
if (typeof endIcon === "boolean") {
|
|
57
|
+
chevron = endIcon && /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small" });
|
|
58
|
+
} else if (React.isValidElement(endIcon)) {
|
|
59
|
+
chevron = endIcon;
|
|
60
|
+
} else {
|
|
61
|
+
chevron = onClick && /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small" });
|
|
62
|
+
}
|
|
63
|
+
const context = React.useContext(ListContext);
|
|
64
|
+
return /* @__PURE__ */ React.createElement(
|
|
65
|
+
Component,
|
|
66
|
+
__spreadValues({
|
|
67
|
+
className: clsx(prefixCls, className, {
|
|
68
|
+
[`${prefixCls}-divider`]: !(hideDivider || context.hideDivider),
|
|
69
|
+
[`${prefixCls}-disabled`]: disabled
|
|
70
|
+
}),
|
|
71
|
+
onClick,
|
|
72
|
+
ref
|
|
73
|
+
}, others),
|
|
74
|
+
children,
|
|
75
|
+
chevron && /* @__PURE__ */ React.createElement(ListItemFooter, null, chevron)
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
);
|
|
77
79
|
ListItem.displayName = "BuiListItem";
|
|
78
|
-
ListItem.defaultProps = {
|
|
79
|
-
component: "div",
|
|
80
|
-
hideDivider: false
|
|
81
|
-
};
|
|
82
80
|
var ListItem_default = ListItem;
|
|
83
81
|
export {
|
|
84
82
|
ListItem_default as default
|
|
@@ -35,7 +35,7 @@ const ListItemContent = /* @__PURE__ */ React.forwardRef(
|
|
|
35
35
|
const _a = props, {
|
|
36
36
|
children,
|
|
37
37
|
className,
|
|
38
|
-
component: Component,
|
|
38
|
+
component: Component = "div",
|
|
39
39
|
primary,
|
|
40
40
|
secondary
|
|
41
41
|
} = _a, others = __objRest(_a, [
|
|
@@ -49,9 +49,6 @@ const ListItemContent = /* @__PURE__ */ React.forwardRef(
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
ListItemContent.displayName = "BuiListItemContent";
|
|
52
|
-
ListItemContent.defaultProps = {
|
|
53
|
-
component: "div"
|
|
54
|
-
};
|
|
55
52
|
var ListItemContent_default = ListItemContent;
|
|
56
53
|
export {
|
|
57
54
|
ListItemContent_default as default
|
package/es/List/ListItemExtra.js
CHANGED
|
@@ -32,14 +32,19 @@ import "./ListItemExtra.css";
|
|
|
32
32
|
const prefixCls = "bui-list-item-extra";
|
|
33
33
|
const ListItemExtra = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
|
-
const _a = props, {
|
|
35
|
+
const _a = props, {
|
|
36
|
+
children,
|
|
37
|
+
className,
|
|
38
|
+
component: Component = "div"
|
|
39
|
+
} = _a, others = __objRest(_a, [
|
|
40
|
+
"children",
|
|
41
|
+
"className",
|
|
42
|
+
"component"
|
|
43
|
+
]);
|
|
36
44
|
return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
37
45
|
}
|
|
38
46
|
);
|
|
39
47
|
ListItemExtra.displayName = "BuiListItemExtra";
|
|
40
|
-
ListItemExtra.defaultProps = {
|
|
41
|
-
component: "div"
|
|
42
|
-
};
|
|
43
48
|
var ListItemExtra_default = ListItemExtra;
|
|
44
49
|
export {
|
|
45
50
|
ListItemExtra_default as default
|
|
@@ -32,14 +32,19 @@ import "./ListItemFooter.css";
|
|
|
32
32
|
const prefixCls = "bui-list-item-footer";
|
|
33
33
|
const ListItemFooter = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
|
-
const _a = props, {
|
|
35
|
+
const _a = props, {
|
|
36
|
+
children,
|
|
37
|
+
className,
|
|
38
|
+
component: Component = "div"
|
|
39
|
+
} = _a, others = __objRest(_a, [
|
|
40
|
+
"children",
|
|
41
|
+
"className",
|
|
42
|
+
"component"
|
|
43
|
+
]);
|
|
36
44
|
return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
37
45
|
}
|
|
38
46
|
);
|
|
39
47
|
ListItemFooter.displayName = "BuiListItemFooter";
|
|
40
|
-
ListItemFooter.defaultProps = {
|
|
41
|
-
component: "div"
|
|
42
|
-
};
|
|
43
48
|
var ListItemFooter_default = ListItemFooter;
|
|
44
49
|
export {
|
|
45
50
|
ListItemFooter_default as default
|
|
@@ -32,14 +32,19 @@ import "./ListItemHeader.css";
|
|
|
32
32
|
const prefixCls = "bui-list-item-header";
|
|
33
33
|
const ListItemHeader = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
|
-
const _a = props, {
|
|
35
|
+
const _a = props, {
|
|
36
|
+
children,
|
|
37
|
+
className,
|
|
38
|
+
component: Component = "div"
|
|
39
|
+
} = _a, others = __objRest(_a, [
|
|
40
|
+
"children",
|
|
41
|
+
"className",
|
|
42
|
+
"component"
|
|
43
|
+
]);
|
|
36
44
|
return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
37
45
|
}
|
|
38
46
|
);
|
|
39
47
|
ListItemHeader.displayName = "BuiListItemHeader";
|
|
40
|
-
ListItemHeader.defaultProps = {
|
|
41
|
-
component: "div"
|
|
42
|
-
};
|
|
43
48
|
var ListItemHeader_default = ListItemHeader;
|
|
44
49
|
export {
|
|
45
50
|
ListItemHeader_default as default
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-list-small-item-padding: 5px 12px;
|
|
5
|
+
--bui-list-medium-item-padding: 18px 12px;
|
|
6
|
+
--bui-list-large-item-padding: 20px 12px;
|
|
7
|
+
}
|
|
8
|
+
.bui-list {
|
|
9
|
+
background: var(--bui-color-bg-view);
|
|
10
|
+
font-size: var(--bui-title-size-3);
|
|
11
|
+
font-family: var(--bui-font-family);
|
|
12
|
+
list-style: none;
|
|
13
|
+
}
|
|
14
|
+
.bui-list .bui-divider:last-of-type {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
.bui-list-item,
|
|
18
|
+
.bui-list-item-contained {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
font-family: var(--bui-font-family);
|
|
22
|
+
}
|
|
23
|
+
.bui-list-item-disabled {
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
background-color: var(--bui-color-bg-default);
|
|
26
|
+
color: var(--bui-color-fg-subtle);
|
|
27
|
+
}
|
|
28
|
+
.bui-list-small .bui-list-item {
|
|
29
|
+
padding: var(--bui-list-small-item-padding);
|
|
30
|
+
}
|
|
31
|
+
.bui-list-medium .bui-list-item {
|
|
32
|
+
padding: var(--bui-list-medium-item-padding);
|
|
33
|
+
}
|
|
34
|
+
.bui-list-large .bui-list-item {
|
|
35
|
+
padding: var(--bui-list-large-item-padding);
|
|
36
|
+
}
|
|
37
|
+
.bui-list-item-divider:not(:last-child) {
|
|
38
|
+
border-bottom: 1px solid var(--bui-color-border-default);
|
|
39
|
+
}
|
|
40
|
+
.bui-list-item-content {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
flex: 1 1 auto;
|
|
45
|
+
width: 100%;
|
|
46
|
+
font-family: var(--bui-font-family);
|
|
47
|
+
}
|
|
48
|
+
.bui-list-small .bui-list-item-content {
|
|
49
|
+
font-size: var(--bui-text-size-2);
|
|
50
|
+
}
|
|
51
|
+
.bui-list-item-content-primary {
|
|
52
|
+
flex: 1 1 auto;
|
|
53
|
+
}
|
|
54
|
+
.bui-list-item-content-secondary {
|
|
55
|
+
font-size: var(--bui-text-size-2);
|
|
56
|
+
color: var(--bui-color-fg-muted);
|
|
57
|
+
}
|
|
58
|
+
.bui-list-item-extra {
|
|
59
|
+
flex: 0 0 auto;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
color: var(--bui-color-fg-subtle);
|
|
63
|
+
font-family: var(--bui-font-family);
|
|
64
|
+
}
|
|
65
|
+
.bui-list-item-footer {
|
|
66
|
+
flex: 0 0 auto;
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
font-family: var(--bui-font-family);
|
|
70
|
+
}
|
|
71
|
+
.bui-list-item-footer .bui-svg-icon {
|
|
72
|
+
color: var(--bui-color-fg-subtle);
|
|
73
|
+
}
|
|
74
|
+
.bui-list-item-header {
|
|
75
|
+
flex: 0 0 auto;
|
|
76
|
+
margin-right: var(--bui-spacing-sm);
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
font-family: var(--bui-font-family);
|
|
80
|
+
}
|
package/es/Loading/Loading.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LoadingProps } from './Loading.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Loading: React.ForwardRefExoticComponent<Omit<LoadingProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Loading;
|
package/es/Loading/Loading.js
CHANGED
|
@@ -29,10 +29,22 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
import React from "react";
|
|
30
30
|
import clsx from "clsx";
|
|
31
31
|
import { LoadingThreeQuartersOutlinedIcon } from "@bifrostui/icons";
|
|
32
|
-
import "./
|
|
32
|
+
import "./index.css";
|
|
33
33
|
const prefixCls = "bui-loading";
|
|
34
34
|
const Loading = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
35
|
-
const _a = props, {
|
|
35
|
+
const _a = props, {
|
|
36
|
+
className,
|
|
37
|
+
icon,
|
|
38
|
+
IconProps,
|
|
39
|
+
children,
|
|
40
|
+
direction = "vertical"
|
|
41
|
+
} = _a, otherProps = __objRest(_a, [
|
|
42
|
+
"className",
|
|
43
|
+
"icon",
|
|
44
|
+
"IconProps",
|
|
45
|
+
"children",
|
|
46
|
+
"direction"
|
|
47
|
+
]);
|
|
36
48
|
const renderIcon = () => {
|
|
37
49
|
return icon != null ? icon : /* @__PURE__ */ React.createElement(
|
|
38
50
|
LoadingThreeQuartersOutlinedIcon,
|
|
@@ -52,9 +64,6 @@ const Loading = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
52
64
|
);
|
|
53
65
|
});
|
|
54
66
|
Loading.displayName = "BuiLoading";
|
|
55
|
-
Loading.defaultProps = {
|
|
56
|
-
direction: "vertical"
|
|
57
|
-
};
|
|
58
67
|
var Loading_default = Loading;
|
|
59
68
|
export {
|
|
60
69
|
Loading_default as default
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-loading-icon-font-size: 30px;
|
|
5
|
+
--bui-loading-text-padding: 10px;
|
|
6
|
+
--bui-loading-animation-duration: 1.6s;
|
|
7
|
+
}
|
|
1
8
|
.bui-loading {
|
|
2
|
-
--icon-font-size: var(--bui-loading-icon-font-size, 30px);
|
|
3
|
-
--text-padding: var(--bui-loading-text-padding, 10px);
|
|
4
|
-
--animation-duration: var(--bui-loading-animation-duration, 1.6s);
|
|
5
9
|
width: fit-content;
|
|
6
10
|
display: flex;
|
|
7
11
|
justify-content: center;
|
|
@@ -10,11 +14,11 @@
|
|
|
10
14
|
font-family: var(--bui-font-family);
|
|
11
15
|
}
|
|
12
16
|
.bui-loading-icon {
|
|
13
|
-
font-size: var(--icon-font-size);
|
|
14
|
-
animation: loading var(--animation-duration) linear infinite;
|
|
17
|
+
font-size: var(--bui-loading-icon-font-size);
|
|
18
|
+
animation: loading var(--bui-loading-animation-duration) linear infinite;
|
|
15
19
|
}
|
|
16
20
|
.bui-loading-text {
|
|
17
|
-
padding: var(--text-padding);
|
|
21
|
+
padding: var(--bui-loading-text-padding);
|
|
18
22
|
font-size: var(--bui-title-size-3);
|
|
19
23
|
}
|
|
20
24
|
.bui-loading-vertical {
|
package/es/Modal/Modal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './Modal.less';
|
|
3
2
|
import { ModalProps } from './Modal.types';
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Modal: React.ForwardRefExoticComponent<Omit<ModalProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Modal;
|
package/es/Modal/Modal.js
CHANGED
|
@@ -34,7 +34,7 @@ import clsx from "clsx";
|
|
|
34
34
|
import React, { useEffect, useState } from "react";
|
|
35
35
|
import Backdrop from "../Backdrop";
|
|
36
36
|
import Portal from "../Portal";
|
|
37
|
-
import "./
|
|
37
|
+
import "./index.css";
|
|
38
38
|
const prefixCls = "bui-modal";
|
|
39
39
|
const Modal = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
40
40
|
const _a = props, {
|
|
@@ -106,12 +106,6 @@ const Modal = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
106
106
|
) : null, (open || keepMounted) && children));
|
|
107
107
|
});
|
|
108
108
|
Modal.displayName = "BuiModal";
|
|
109
|
-
Modal.defaultProps = {
|
|
110
|
-
open: false,
|
|
111
|
-
disablePortal: false,
|
|
112
|
-
disableScrollLock: false,
|
|
113
|
-
hideBackdrop: false
|
|
114
|
-
};
|
|
115
109
|
var Modal_default = Modal;
|
|
116
110
|
export {
|
|
117
111
|
Modal_default as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ViewProps } from '@tarojs/components';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
|
|
5
5
|
open?: boolean;
|
|
6
6
|
container?: Element | (() => Element);
|
|
@@ -12,5 +12,5 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
|
|
|
12
12
|
keepMounted?: boolean;
|
|
13
13
|
} & import("@bifrostui/types").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
14
|
ref?: React.Ref<HTMLDivElement>;
|
|
15
|
-
}, "open" | keyof import("@bifrostui/types").ICommonProps | "
|
|
15
|
+
}, "open" | "container" | keyof import("@bifrostui/types").ICommonProps | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export default Modal;
|
|
@@ -35,19 +35,19 @@ import React, { useState } from "react";
|
|
|
35
35
|
import { View } from "@tarojs/components";
|
|
36
36
|
import Backdrop from "../Backdrop";
|
|
37
37
|
import Portal from "../Portal";
|
|
38
|
-
import "./
|
|
38
|
+
import "./index.css";
|
|
39
39
|
const prefixCls = "bui-modal";
|
|
40
40
|
const Modal = /* @__PURE__ */ React.forwardRef(
|
|
41
41
|
(props, ref) => {
|
|
42
42
|
const _a = props, {
|
|
43
43
|
className,
|
|
44
|
-
open,
|
|
44
|
+
open = false,
|
|
45
45
|
BackdropProps,
|
|
46
46
|
children,
|
|
47
47
|
container,
|
|
48
|
-
disablePortal,
|
|
49
|
-
disableScrollLock,
|
|
50
|
-
hideBackdrop,
|
|
48
|
+
disablePortal = false,
|
|
49
|
+
disableScrollLock = false,
|
|
50
|
+
hideBackdrop = false,
|
|
51
51
|
onClose,
|
|
52
52
|
keepMounted
|
|
53
53
|
} = _a, others = __objRest(_a, [
|
|
@@ -103,12 +103,6 @@ const Modal = /* @__PURE__ */ React.forwardRef(
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
Modal.displayName = "BuiModal";
|
|
106
|
-
Modal.defaultProps = {
|
|
107
|
-
open: false,
|
|
108
|
-
disablePortal: false,
|
|
109
|
-
disableScrollLock: false,
|
|
110
|
-
hideBackdrop: false
|
|
111
|
-
};
|
|
112
106
|
var Modal_miniapp_default = Modal;
|
|
113
107
|
export {
|
|
114
108
|
Modal_miniapp_default as default
|
package/es/NavBar/NavBar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NavBarProps } from './NavBar.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const NavBar: React.ForwardRefExoticComponent<Omit<NavBarProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default NavBar;
|
package/es/NavBar/NavBar.js
CHANGED
|
@@ -30,7 +30,7 @@ import React from "react";
|
|
|
30
30
|
import clsx from "clsx";
|
|
31
31
|
import { useForkRef, useSize } from "@bifrostui/utils";
|
|
32
32
|
import { ArrowBackwardLargeIcon } from "@bifrostui/icons";
|
|
33
|
-
import "./
|
|
33
|
+
import "./index.css";
|
|
34
34
|
const prefixCls = "bui-navbar";
|
|
35
35
|
const NavBar = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
36
36
|
const _a = props, {
|
|
@@ -103,7 +103,6 @@ const NavBar = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
103
103
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderNavBar(), renderPlaceholder());
|
|
104
104
|
});
|
|
105
105
|
NavBar.displayName = "BuiNavBar";
|
|
106
|
-
NavBar.defaultProps = {};
|
|
107
106
|
var NavBar_default = NavBar;
|
|
108
107
|
export {
|
|
109
108
|
NavBar_default as default
|