@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
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-calendar-padding: 6px 12px 7px;
|
|
5
|
+
--bui-calendar-week-height: 30px;
|
|
6
|
+
--bui-calendar-handler-height: 28px;
|
|
7
|
+
--bui-calendar-handler-margin-bottom: 7px;
|
|
8
|
+
--bui-calendar-handler-text-width: 80px;
|
|
9
|
+
--bui-calendar-handler-btn-width: 46px;
|
|
10
|
+
--bui-calendar-handler-btn-height: 100%;
|
|
11
|
+
--bui-calendar-handler-btn-icon-font-size: 28px;
|
|
12
|
+
--bui-calendar-day-box-height: 30px;
|
|
13
|
+
--bui-calendar-day-box-margin-bottom: 7px;
|
|
14
|
+
--bui-calendar-day-disabled-color: #9c9ca5;
|
|
15
|
+
--bui-calendar-middle-color: #000;
|
|
16
|
+
--bui-calendar-middle-background-color: #ffeaf1;
|
|
17
|
+
--bui-calendar-range-both-ends-color: #000;
|
|
18
|
+
--bui-calendar-range-both-ends-background-color: #ffc7da;
|
|
19
|
+
}
|
|
1
20
|
.bui-calendar {
|
|
2
|
-
--padding: var(--bui-calendar-padding, 6px 12px 7px);
|
|
3
|
-
--week-height: var(--bui-calendar-week-height, 30px);
|
|
4
|
-
--handler-height: var(--bui-calendar-handler-height, 28px);
|
|
5
|
-
--handler-margin-bottom: var(--bui-calendar-handler-margin-bottom, 7px);
|
|
6
|
-
--handler-text-width: var(--bui-calendar-handler-text-width, 80px);
|
|
7
|
-
--handler-btn-width: var(--bui-calendar-handler-btn-width, 46px);
|
|
8
|
-
--handler-btn-height: var(--bui-calendar-handler-btn-height, 100%);
|
|
9
|
-
--handler-btn-icon-font-size: var(--bui-calendar-handler-btn-icon-font-size, 28px);
|
|
10
|
-
--day-box-height: var(--bui-calendar-day-box-height, 30px);
|
|
11
|
-
--day-box-margin-bottom: var(--bui-calendar-day-box-margin-bottom, 7px);
|
|
12
|
-
--day-disabled-color: var(--bui-calendar-day-disabled-color, #9c9ca5);
|
|
13
|
-
--middle-color: var(--bui-calendar-middle-color, #000);
|
|
14
|
-
--middle-background-color: var(--bui-calendar-middle-background-color, #ffeaf1);
|
|
15
|
-
--range-both-ends-color: var(--bui-calendar-range-both-ends-color, #000);
|
|
16
|
-
--range-both-ends-background-color: var(--bui-calendar-range-both-ends-background-color, #ffc7da);
|
|
17
21
|
overflow: hidden;
|
|
18
22
|
display: flex;
|
|
19
23
|
flex-direction: column;
|
|
@@ -21,11 +25,11 @@
|
|
|
21
25
|
position: relative;
|
|
22
26
|
width: 100%;
|
|
23
27
|
box-sizing: border-box;
|
|
24
|
-
padding: var(--padding);
|
|
28
|
+
padding: var(--bui-calendar-padding);
|
|
25
29
|
font-family: var(--bui-font-family);
|
|
26
30
|
}
|
|
27
31
|
.bui-calendar-week {
|
|
28
|
-
height: var(--week-height);
|
|
32
|
+
height: var(--bui-calendar-week-height);
|
|
29
33
|
font-size: var(--bui-text-size-2);
|
|
30
34
|
font-weight: var(--bui-font-weight-medium);
|
|
31
35
|
color: var(--bui-color-fg-default);
|
|
@@ -44,21 +48,21 @@
|
|
|
44
48
|
color: var(--bui-color-primary);
|
|
45
49
|
}
|
|
46
50
|
.bui-calendar-handler {
|
|
47
|
-
height: var(--handler-height);
|
|
51
|
+
height: var(--bui-calendar-handler-height);
|
|
48
52
|
display: flex;
|
|
49
53
|
align-items: center;
|
|
50
54
|
justify-content: center;
|
|
51
|
-
margin-bottom: var(--handler-margin-bottom);
|
|
55
|
+
margin-bottom: var(--bui-calendar-handler-margin-bottom);
|
|
52
56
|
}
|
|
53
57
|
.bui-calendar-handler-text {
|
|
54
|
-
width: var(--handler-text-width);
|
|
58
|
+
width: var(--bui-calendar-handler-text-width);
|
|
55
59
|
font-size: var(--bui-title-size-3);
|
|
56
60
|
font-weight: var(--bui-font-weight-medium);
|
|
57
61
|
text-align: center;
|
|
58
62
|
}
|
|
59
63
|
.bui-calendar-handler-btn {
|
|
60
64
|
font-size: 16px;
|
|
61
|
-
height: var(--handler-btn-
|
|
65
|
+
height: var(--bui-calendar-handler-btn-width);
|
|
62
66
|
width: var(--handler-btn-width);
|
|
63
67
|
cursor: pointer;
|
|
64
68
|
display: flex;
|
|
@@ -66,7 +70,7 @@
|
|
|
66
70
|
justify-content: center;
|
|
67
71
|
}
|
|
68
72
|
.bui-calendar-handler-btn-icon {
|
|
69
|
-
font-size: var(--handler-btn-icon-font-size);
|
|
73
|
+
font-size: var(--bui-calendar-handler-btn-icon-font-size);
|
|
70
74
|
}
|
|
71
75
|
.bui-calendar-month {
|
|
72
76
|
display: flex;
|
|
@@ -75,8 +79,8 @@
|
|
|
75
79
|
}
|
|
76
80
|
.bui-calendar-day-box {
|
|
77
81
|
width: 14.28%;
|
|
78
|
-
height: var(--day-box-height);
|
|
79
|
-
margin-bottom: var(--day-box-margin-bottom);
|
|
82
|
+
height: var(--bui-calendar-day-box-height);
|
|
83
|
+
margin-bottom: var(--bui-calendar-day-box-margin-bottom);
|
|
80
84
|
}
|
|
81
85
|
.bui-calendar-highlight-day .bui-calendar-day {
|
|
82
86
|
color: var(--bui-color-primary);
|
|
@@ -94,27 +98,27 @@
|
|
|
94
98
|
cursor: pointer;
|
|
95
99
|
}
|
|
96
100
|
.bui-calendar-day.bui-calendar-disabled {
|
|
97
|
-
color: var(--day-disabled-color);
|
|
101
|
+
color: var(--bui-calendar-day-disabled-color);
|
|
98
102
|
}
|
|
99
103
|
.bui-calendar-today {
|
|
100
104
|
color: var(--bui-color-primary);
|
|
101
105
|
}
|
|
102
106
|
.bui-calendar-middle {
|
|
103
|
-
color: var(--middle-color);
|
|
107
|
+
color: var(--bui-calendar-middle-color);
|
|
104
108
|
border-radius: 0;
|
|
105
|
-
background-color: var(--middle-background-color);
|
|
109
|
+
background-color: var(--bui-calendar-middle-background-color);
|
|
106
110
|
}
|
|
107
111
|
.bui-calendar-start {
|
|
108
|
-
color: var(--range-both-ends-color);
|
|
109
|
-
background-color: var(--range-both-ends-background-color);
|
|
112
|
+
color: var(--bui-calendar-range-both-ends-color);
|
|
113
|
+
background-color: var(--bui-calendar-range-both-ends-background-color);
|
|
110
114
|
}
|
|
111
115
|
.bui-calendar-range {
|
|
112
116
|
border-top-right-radius: 0;
|
|
113
117
|
border-bottom-right-radius: 0;
|
|
114
118
|
}
|
|
115
119
|
.bui-calendar-end {
|
|
116
|
-
color: var(--range-both-ends-color);
|
|
117
|
-
background-color: var(--range-both-ends-background-color);
|
|
120
|
+
color: var(--bui-calendar-range-both-ends-color);
|
|
121
|
+
background-color: var(--bui-calendar-range-both-ends-background-color);
|
|
118
122
|
border-top-left-radius: 0;
|
|
119
123
|
border-bottom-left-radius: 0;
|
|
120
124
|
}
|
package/es/Card/Card.css
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-card-header-padding: var(--bui-spacing-md) var(--bui-spacing-lg);
|
|
5
|
+
--bui-card-footer-padding: var(--bui-spacing-md) var(--bui-spacing-lg);
|
|
6
|
+
--bui-card-header-title-font-size: var(--bui-title-size-4);
|
|
7
|
+
--bui-card-content-font-size: var(--bui-text-size-2);
|
|
8
|
+
--bui-card-footer-font-size: var(--bui-text-size-2);
|
|
9
|
+
}
|
|
1
10
|
.bui-card {
|
|
2
11
|
background-color: var(--bui-color-bg-view);
|
|
3
12
|
border-radius: var(--bui-shape-radius-card);
|
package/es/Card/CardContent.css
CHANGED
package/es/Card/CardFooter.css
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
.bui-card-footer {
|
|
2
|
-
--padding: var(--bui-card-footer-padding, var(--bui-spacing-md) var(--bui-spacing-lg));
|
|
3
2
|
color: var(--bui-color-fg-muted);
|
|
4
|
-
font-size: var(--bui-text-size-1);
|
|
5
3
|
display: flex;
|
|
6
4
|
align-items: center;
|
|
7
|
-
padding: var(--padding);
|
|
8
|
-
font-
|
|
5
|
+
padding: var(--bui-card-footer-padding);
|
|
6
|
+
font-size: var(--bui-card-footer-font-size);
|
|
9
7
|
}
|
package/es/Card/CardHeader.css
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
.bui-card-header {
|
|
2
|
-
--padding: var(--bui-card-header-padding, var(--bui-spacing-md) var(--bui-spacing-lg));
|
|
3
|
-
--end-icon-margin-left: var(--bui-card-header-end-icon-margin-left, 2px);
|
|
4
2
|
display: flex;
|
|
5
3
|
align-items: center;
|
|
6
4
|
flex-direction: row;
|
|
7
5
|
position: relative;
|
|
8
|
-
padding: var(--bui-
|
|
6
|
+
padding: var(--bui-card-header-padding);
|
|
9
7
|
font-size: var(--bui-title-size-4);
|
|
10
|
-
font-weight: var(--bui-font-weight-
|
|
11
|
-
color: var(--bui-color-fg-default);
|
|
8
|
+
font-weight: var(--bui-font-weight-bold);
|
|
12
9
|
font-family: var(--bui-font-family);
|
|
10
|
+
color: var(--bui-color-fg-default);
|
|
13
11
|
}
|
|
14
12
|
.bui-card-header-title {
|
|
15
13
|
white-space: nowrap;
|
|
@@ -17,6 +15,8 @@
|
|
|
17
15
|
text-overflow: ellipsis;
|
|
18
16
|
max-width: 100%;
|
|
19
17
|
flex-shrink: 0;
|
|
18
|
+
font-size: var(--bui-card-header-title-font-size);
|
|
19
|
+
font-family: var(--bui-font-family-accent, inherit);
|
|
20
20
|
}
|
|
21
21
|
.bui-card-header-subtitle {
|
|
22
22
|
font-size: var(--bui-text-size-3);
|
package/es/Card/CardHeader.js
CHANGED
|
@@ -36,13 +36,13 @@ const CardHeader = /* @__PURE__ */ React.forwardRef(
|
|
|
36
36
|
const _a = props, { title, subtitle, className, extra, endIcon, onClick } = _a, others = __objRest(_a, ["title", "subtitle", "className", "extra", "endIcon", "onClick"]);
|
|
37
37
|
const chevron = (() => {
|
|
38
38
|
if (typeof endIcon === "boolean") {
|
|
39
|
-
return endIcon ? /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small",
|
|
39
|
+
return endIcon ? /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small", color: "disabled" }) : null;
|
|
40
40
|
}
|
|
41
41
|
if (React.isValidElement(endIcon)) {
|
|
42
42
|
return endIcon;
|
|
43
43
|
}
|
|
44
44
|
if (onClick) {
|
|
45
|
-
return /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small",
|
|
45
|
+
return /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small", color: "disabled" });
|
|
46
46
|
}
|
|
47
47
|
return null;
|
|
48
48
|
})();
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-card-header-padding: var(--bui-spacing-md) var(--bui-spacing-lg);
|
|
5
|
+
--bui-card-footer-padding: var(--bui-spacing-md) var(--bui-spacing-lg);
|
|
6
|
+
--bui-card-header-title-font-size: var(--bui-title-size-4);
|
|
7
|
+
--bui-card-content-font-size: var(--bui-text-size-2);
|
|
8
|
+
--bui-card-footer-font-size: var(--bui-text-size-2);
|
|
9
|
+
}
|
|
10
|
+
.bui-card {
|
|
11
|
+
background-color: var(--bui-color-bg-view);
|
|
12
|
+
border-radius: var(--bui-shape-radius-card);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
font-family: var(--bui-font-family);
|
|
15
|
+
}
|
|
16
|
+
.bui-card-header + .bui-card-content {
|
|
17
|
+
padding-top: 0;
|
|
18
|
+
}
|
|
19
|
+
.bui-card-content {
|
|
20
|
+
padding: var(--bui-spacing-lg);
|
|
21
|
+
color: var(--bui-color-fg-muted);
|
|
22
|
+
font-size: var(--bui-card-content-font-size);
|
|
23
|
+
}
|
|
24
|
+
.bui-card-footer {
|
|
25
|
+
color: var(--bui-color-fg-muted);
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
padding: var(--bui-card-footer-padding);
|
|
29
|
+
font-size: var(--bui-card-footer-font-size);
|
|
30
|
+
}
|
|
31
|
+
.bui-card-header {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
position: relative;
|
|
36
|
+
padding: var(--bui-card-header-padding);
|
|
37
|
+
font-size: var(--bui-title-size-4);
|
|
38
|
+
font-weight: var(--bui-font-weight-bold);
|
|
39
|
+
font-family: var(--bui-font-family);
|
|
40
|
+
color: var(--bui-color-fg-default);
|
|
41
|
+
}
|
|
42
|
+
.bui-card-header-title {
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
max-width: 100%;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
font-size: var(--bui-card-header-title-font-size);
|
|
49
|
+
font-family: var(--bui-font-family-accent, inherit);
|
|
50
|
+
}
|
|
51
|
+
.bui-card-header-subtitle {
|
|
52
|
+
font-size: var(--bui-text-size-3);
|
|
53
|
+
font-weight: normal;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
color: var(--bui-color-fg-subtle);
|
|
58
|
+
padding: 0 var(--bui-spacing-xs);
|
|
59
|
+
}
|
|
60
|
+
.bui-card-header-extra {
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
}
|
|
63
|
+
.bui-card-header-end-icon {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
}
|
|
68
|
+
.bui-card-header-extra,
|
|
69
|
+
.bui-card-header-end-icon {
|
|
70
|
+
font-size: var(--bui-text-size-3);
|
|
71
|
+
font-weight: normal;
|
|
72
|
+
color: var(--bui-color-fg-subtle);
|
|
73
|
+
margin-left: auto;
|
|
74
|
+
}
|
|
75
|
+
.bui-card-header-extra + .bui-card-header-end-icon {
|
|
76
|
+
margin-left: 2px;
|
|
77
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CheckboxProps } from './Checkbox.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Checkbox;
|
package/es/Checkbox/Checkbox.js
CHANGED
|
@@ -34,13 +34,13 @@ import { useValue } from "@bifrostui/utils";
|
|
|
34
34
|
import clsx from "clsx";
|
|
35
35
|
import React, { forwardRef, useContext } from "react";
|
|
36
36
|
import CheckboxContext from "./CheckboxContext";
|
|
37
|
-
import "./
|
|
37
|
+
import "./index.css";
|
|
38
38
|
const prefixCls = "bui-checkbox";
|
|
39
39
|
const Checkbox = forwardRef((props, ref) => {
|
|
40
40
|
var _b, _c;
|
|
41
41
|
const _a = props, {
|
|
42
42
|
className,
|
|
43
|
-
defaultChecked,
|
|
43
|
+
defaultChecked = false,
|
|
44
44
|
checked,
|
|
45
45
|
inputProps,
|
|
46
46
|
inputRef,
|
|
@@ -49,7 +49,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
49
49
|
disabled,
|
|
50
50
|
icon,
|
|
51
51
|
checkedIcon,
|
|
52
|
-
labelPlacement,
|
|
52
|
+
labelPlacement = "right",
|
|
53
53
|
onChange,
|
|
54
54
|
children
|
|
55
55
|
} = _a, others = __objRest(_a, [
|
|
@@ -82,7 +82,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
82
82
|
console.error("CheckboxGroup\u6A21\u5F0F\u4E0BCheckbox\u987B\u4F20\u5165value\u5C5E\u6027");
|
|
83
83
|
}
|
|
84
84
|
const checkboxCheckIcon = checkedIcon || /* @__PURE__ */ React.createElement(SuccessCircleFilledIcon, { color: "primary" });
|
|
85
|
-
const checkboxUncheckIcon = icon || /* @__PURE__ */ React.createElement(CircleOutlinedIcon, {
|
|
85
|
+
const checkboxUncheckIcon = icon || /* @__PURE__ */ React.createElement(CircleOutlinedIcon, { color: "neutral" });
|
|
86
86
|
const checkboxDisabled = disabled !== void 0 ? disabled : groupContext == null ? void 0 : groupContext.disabled;
|
|
87
87
|
const handleChange = (e) => {
|
|
88
88
|
var _a2, _b2, _c2;
|
|
@@ -131,10 +131,6 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
131
131
|
);
|
|
132
132
|
});
|
|
133
133
|
Checkbox.displayName = "BuiCheckbox";
|
|
134
|
-
Checkbox.defaultProps = {
|
|
135
|
-
defaultChecked: false,
|
|
136
|
-
labelPlacement: "right"
|
|
137
|
-
};
|
|
138
134
|
var Checkbox_default = Checkbox;
|
|
139
135
|
export {
|
|
140
136
|
Checkbox_default as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CheckboxGroupProps } from './Checkbox.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default CheckboxGroup;
|
|
@@ -30,18 +30,18 @@ import { useValue } from "@bifrostui/utils";
|
|
|
30
30
|
import clsx from "clsx";
|
|
31
31
|
import React, { forwardRef } from "react";
|
|
32
32
|
import { CheckboxContextProvider } from "./CheckboxContext";
|
|
33
|
-
import "./
|
|
33
|
+
import "./index.css";
|
|
34
34
|
const prefixCls = "bui-checkbox-group";
|
|
35
35
|
const CheckboxGroup = forwardRef(
|
|
36
|
-
(
|
|
37
|
-
|
|
36
|
+
(_a, ref) => {
|
|
37
|
+
var _b = _a, {
|
|
38
38
|
className,
|
|
39
39
|
children,
|
|
40
40
|
defaultValue,
|
|
41
41
|
value,
|
|
42
|
-
disabled,
|
|
42
|
+
disabled = false,
|
|
43
43
|
onChange
|
|
44
|
-
} =
|
|
44
|
+
} = _b, others = __objRest(_b, [
|
|
45
45
|
"className",
|
|
46
46
|
"children",
|
|
47
47
|
"defaultValue",
|
|
@@ -78,9 +78,6 @@ const CheckboxGroup = forwardRef(
|
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
80
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
81
|
-
CheckboxGroup.defaultProps = {
|
|
82
|
-
disabled: false
|
|
83
|
-
};
|
|
84
81
|
var CheckboxGroup_default = CheckboxGroup;
|
|
85
82
|
export {
|
|
86
83
|
CheckboxGroup_default as default
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-checkbox-label-color: var(--bui-color-fg-default);
|
|
5
|
+
--bui-checkbox-label-font-size: var(--bui-text-size-1);
|
|
6
|
+
--bui-checkbox-icon-font-size: var(--bui-title-size-2);
|
|
7
|
+
--bui-checkbox-disabled-opacity: 0.5;
|
|
8
|
+
--bui-checkbox-icon-padding: 5px;
|
|
9
|
+
}
|
|
1
10
|
.bui-checkbox {
|
|
2
|
-
--label-color: var(--bui-checkbox-label-color, var(--bui-color-fg-default));
|
|
3
|
-
--label-font-size: var(--bui-checkbox-label-font-size, var(--bui-text-size-1));
|
|
4
|
-
--icon-font-size: var(--bui-checkbox-icon-font-size, var(--bui-title-size-2));
|
|
5
|
-
--disabled-opacity: var(--bui-checkbox-disabled-opacity, 0.5);
|
|
6
|
-
--icon-padding: var(--bui-checkbox-icon-padding, 5px);
|
|
7
11
|
display: inline-flex;
|
|
8
12
|
align-items: center;
|
|
9
13
|
position: relative;
|
|
@@ -11,7 +15,7 @@
|
|
|
11
15
|
}
|
|
12
16
|
.bui-checkbox.bui-checkbox-disabled {
|
|
13
17
|
pointer-events: none;
|
|
14
|
-
opacity: var(--disabled-opacity);
|
|
18
|
+
opacity: var(--bui-checkbox-disabled-opacity);
|
|
15
19
|
}
|
|
16
20
|
.bui-checkbox-label-left {
|
|
17
21
|
flex-direction: row-reverse;
|
|
@@ -37,11 +41,11 @@
|
|
|
37
41
|
align-items: center;
|
|
38
42
|
justify-content: center;
|
|
39
43
|
flex-shrink: 0;
|
|
40
|
-
padding: var(--icon-padding);
|
|
44
|
+
padding: var(--bui-checkbox-icon-padding);
|
|
41
45
|
box-sizing: border-box;
|
|
42
|
-
font-size: var(--icon-font-size);
|
|
46
|
+
font-size: var(--bui-checkbox-icon-font-size);
|
|
43
47
|
}
|
|
44
48
|
.bui-checkbox-label {
|
|
45
|
-
font-size: var(--label-font-size);
|
|
46
|
-
color: var(--label-color);
|
|
49
|
+
font-size: var(--bui-checkbox-label-font-size);
|
|
50
|
+
color: var(--bui-checkbox-label-color);
|
|
47
51
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CitySelectorProps } from './CitySelector.types';
|
|
3
|
-
import './miniapp.less';
|
|
4
3
|
declare const CitySelector: React.ForwardRefExoticComponent<Omit<CitySelectorProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
export default CitySelector;
|
|
@@ -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 CitySelectorCore from "./CitySelectorCore";
|
|
23
|
-
import "./miniapp.css";
|
|
24
23
|
const CitySelector = /* @__PURE__ */ React.forwardRef(
|
|
25
24
|
(props, ref) => {
|
|
26
25
|
const { cities } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CitySelectorCoreProps } from './CitySelector.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const CitySelector: React.ForwardRefExoticComponent<Omit<CitySelectorCoreProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default CitySelector;
|
|
@@ -32,7 +32,7 @@ import { throttle, useForkRef, useTouchEmulator } from "@bifrostui/utils";
|
|
|
32
32
|
import { useLocaleText } from "../locales";
|
|
33
33
|
import ScrollView from "../ScrollView";
|
|
34
34
|
import Selector from "./Selector";
|
|
35
|
-
import "./
|
|
35
|
+
import "./index.css";
|
|
36
36
|
const DEVIATION_HEIGHT = "6vmin";
|
|
37
37
|
const prefixCls = "bui-city-selector";
|
|
38
38
|
const CitySelector = /* @__PURE__ */ React.forwardRef(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.bui-city-selector-item {
|
|
2
|
-
width: var(--
|
|
3
|
-
height: var(--
|
|
2
|
+
width: var(--bui-city-selector-item-width);
|
|
3
|
+
height: var(--bui-city-selector-item-height);
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
align-items: center;
|
|
7
|
-
border-radius: var(--
|
|
8
|
-
margin: var(--
|
|
7
|
+
border-radius: var(--bui-city-selector-item-border-radius);
|
|
8
|
+
margin: var(--bui-city-selector-item-margin);
|
|
9
9
|
background-color: var(--bui-color-bg-default);
|
|
10
10
|
font-size: var(--bui-text-size-2);
|
|
11
11
|
}
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-city-selector-item-width: 111px;
|
|
5
|
+
--bui-city-selector-item-height: 36px;
|
|
6
|
+
--bui-city-selector-item-border-radius: 20px;
|
|
7
|
+
--bui-city-selector-item-margin: 4.5px 0 4.5px 9px;
|
|
8
|
+
--bui-city-selector-title-height: 45px;
|
|
9
|
+
--bui-city-selector-title-line-height: 45px;
|
|
10
|
+
--bui-city-selector-btn-close-size: 45px;
|
|
11
|
+
--bui-city-selector-btn-close-font-size: 20px;
|
|
12
|
+
--bui-city-selector-container-with-title-height: calc(100% - var(--bui-city-selector-title-height));
|
|
13
|
+
--bui-city-selector-city-container-min-height: 500px;
|
|
14
|
+
--bui-city-selector-select-city-buttons-padding: 7.5px 0 0 3px;
|
|
15
|
+
--bui-city-selector-select-city-title-line-height: 15px;
|
|
16
|
+
--bui-city-selector-list-item-height: 45px;
|
|
17
|
+
--bui-city-selector-city-index-has-title-top: calc(50% + var(--bui-city-selector-title-height) / 2);
|
|
18
|
+
--bui-city-selector-index-item-height: 20px;
|
|
19
|
+
}
|
|
1
20
|
.bui-city-selector {
|
|
2
|
-
--select-item-width: var(--bui-city-selector-item-width, 111px);
|
|
3
|
-
--select-item-height: var(--bui-city-selector-item-height, 36px);
|
|
4
|
-
--select-item-border-radius: var(--bui-city-selector-item-border-radius, 20px);
|
|
5
|
-
--select-item-margin: var(--bui-city-selector-item-margin, 4.5px 0 4.5px 9px);
|
|
6
|
-
--title-height: var(--bui-city-selector-title-height, 45px);
|
|
7
|
-
--title-line-height: var(--bui-city-selector-title-line-height, 45px);
|
|
8
|
-
--btn-close-size: var(--bui-city-selector-btn-close-size, 45px);
|
|
9
|
-
--btn-close-font-size: var(--bui-city-selector-btn-close-font-size, 20px);
|
|
10
|
-
--container-with-title-height: var(--bui-city-selector-container-with-title-height, calc(100% - var(--title-height)));
|
|
11
|
-
--city-container-min-height: var(--bui-city-selector-city-container-min-height, 500px);
|
|
12
|
-
--select-city-buttons-padding: var(--bui-city-selector-select-city-buttons-padding, 7.5px 0 0 3px);
|
|
13
|
-
--select-city-title-line-height: var(--bui-city-selector-select-city-title-line-height, 15px);
|
|
14
|
-
--list-item-height: var(--bui-city-selector-list-item-height, 45px);
|
|
15
|
-
--city-index-has-title-top: var(--bui-city-selector-city-index-has-title-top, calc(50% + var(--title-height) / 2));
|
|
16
|
-
--index-item-height: var(--bui-city-selector-index-item-height, 20px);
|
|
17
21
|
font-family: var(--bui-font-family);
|
|
18
22
|
height: 100%;
|
|
19
23
|
position: relative;
|
|
20
24
|
}
|
|
21
25
|
.bui-city-selector-title {
|
|
22
26
|
width: 100%;
|
|
23
|
-
height: var(--title-height);
|
|
27
|
+
height: var(--bui-city-selector-title-height);
|
|
24
28
|
color: var(--bui-color-fg-default);
|
|
25
29
|
font-size: var(--bui-title-size-3);
|
|
26
|
-
line-height: var(--title-line-height);
|
|
30
|
+
line-height: var(--bui-city-selector-title-line-height);
|
|
27
31
|
text-align: center;
|
|
28
32
|
position: sticky;
|
|
29
33
|
top: 0;
|
|
@@ -35,20 +39,20 @@
|
|
|
35
39
|
position: absolute;
|
|
36
40
|
top: 0;
|
|
37
41
|
right: 0;
|
|
38
|
-
width: var(--btn-close-size);
|
|
39
|
-
height: var(--btn-close-size);
|
|
42
|
+
width: var(--bui-city-selector-btn-close-size);
|
|
43
|
+
height: var(--bui-city-selector-btn-close-size);
|
|
40
44
|
color: var(--bui-color-fg-muted);
|
|
41
45
|
text-align: center;
|
|
42
|
-
font-size: var(--btn-close-font-size);
|
|
46
|
+
font-size: var(--bui-city-selector-btn-close-font-size);
|
|
43
47
|
}
|
|
44
48
|
.bui-city-selector-scroll-view-container {
|
|
45
49
|
height: 100%;
|
|
46
50
|
}
|
|
47
51
|
.bui-city-selector-scroll-view-container.container-has-title {
|
|
48
|
-
height: var(--container-with-title-height);
|
|
52
|
+
height: var(--bui-city-selector-container-with-title-height);
|
|
49
53
|
}
|
|
50
54
|
.bui-city-selector-all-city {
|
|
51
|
-
min-height: var(--city-container-min-height);
|
|
55
|
+
min-height: var(--bui-city-selector-city-container-min-height);
|
|
52
56
|
font-size: var(--bui-text-size-2);
|
|
53
57
|
width: 100%;
|
|
54
58
|
background: var(--bui-color-bg-view);
|
|
@@ -57,11 +61,11 @@
|
|
|
57
61
|
.bui-city-selector-all-city .select-city-buttons {
|
|
58
62
|
display: flex;
|
|
59
63
|
flex-flow: wrap;
|
|
60
|
-
padding: var(--select-city-buttons-padding);
|
|
64
|
+
padding: var(--bui-city-selector-select-city-buttons-padding);
|
|
61
65
|
}
|
|
62
66
|
.bui-city-selector-all-city .select-city-title {
|
|
63
67
|
font-size: var(--bui-title-size-4);
|
|
64
|
-
line-height: var(--select-city-title-line-height);
|
|
68
|
+
line-height: var(--bui-city-selector-select-city-title-line-height);
|
|
65
69
|
font-weight: var(--bui-font-weight-bold);
|
|
66
70
|
padding-left: var(--bui-spacing-lg);
|
|
67
71
|
padding-top: var(--bui-spacing-md);
|
|
@@ -71,7 +75,7 @@
|
|
|
71
75
|
list-style-type: none;
|
|
72
76
|
}
|
|
73
77
|
.bui-city-selector-list-item {
|
|
74
|
-
height: var(--list-item-height);
|
|
78
|
+
height: var(--bui-city-selector-list-item-height);
|
|
75
79
|
font-size: var(--bui-title-size-4);
|
|
76
80
|
display: flex;
|
|
77
81
|
align-items: center;
|
|
@@ -95,7 +99,7 @@
|
|
|
95
99
|
transform: translate(0, -50%);
|
|
96
100
|
}
|
|
97
101
|
.bui-city-selector-index-container.city-index-has-title {
|
|
98
|
-
top: var(--city-index-has-title-top);
|
|
102
|
+
top: var(--bui-city-selector-city-index-has-title-top);
|
|
99
103
|
}
|
|
100
104
|
.bui-city-selector-index-container ul {
|
|
101
105
|
margin: 0;
|
|
@@ -106,7 +110,7 @@
|
|
|
106
110
|
}
|
|
107
111
|
.bui-city-selector-index-container li {
|
|
108
112
|
list-style: none;
|
|
109
|
-
height: var(--index-item-height);
|
|
113
|
+
height: var(--bui-city-selector-index-item-height);
|
|
110
114
|
text-align: center;
|
|
111
115
|
font-size: var(--bui-text-size-3);
|
|
112
116
|
color: var(--bui-color-info, --bui-color-info);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollapseProps } from './Collapse.types';
|
|
3
|
-
import './
|
|
4
|
-
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<unknown>>;
|
|
5
5
|
export default Collapse;
|