@bifrostui/react 2.0.0-alpha.12 → 2.0.0-alpha.14
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.d.ts +1 -1
- package/dist/ActionSheet/ActionSheet.js +8 -8
- package/dist/ActionSheet/ActionSheet.types.d.ts +1 -1
- package/dist/ActionSheet/ActionSheetContext.d.ts +1 -1
- package/dist/ActionSheet/ActionSheetContext.js +2 -2
- package/dist/ActionSheet/ActionSheetItem.types.d.ts +1 -1
- package/dist/Alert/Alert.d.ts +1 -1
- package/dist/Alert/Alert.js +16 -16
- package/dist/Alert/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Alert/__tests__/fixtures/A11yDemos.js +12 -12
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/Avatar.js +5 -5
- package/dist/Avatar/Avatar.types.d.ts +1 -1
- package/dist/Avatar/AvatarGroup.types.d.ts +1 -1
- package/dist/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Backdrop/Backdrop.js +3 -3
- package/dist/Backdrop/Backdrop.types.d.ts +1 -1
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.js +3 -3
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +4 -4
- package/dist/Badge/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Badge/__tests__/fixtures/A11yDemos.js +13 -13
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +9 -9
- package/dist/Breadcrumb/Breadcrumb.types.d.ts +1 -1
- package/dist/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/Breadcrumb/BreadcrumbItem.js +4 -4
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +6 -6
- package/dist/Button/Button.types.d.ts +1 -1
- package/dist/Button/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Button/__tests__/fixtures/A11yDemos.js +8 -8
- package/dist/Calendar/Calendar.types.d.ts +1 -1
- package/dist/Calendar/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Calendar/__tests__/fixtures/A11yDemos.js +2 -2
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/Card.js +3 -3
- package/dist/Card/Card.types.d.ts +1 -1
- package/dist/Card/CardContent.d.ts +1 -1
- package/dist/Card/CardContent.js +3 -3
- package/dist/Card/CardContent.types.d.ts +1 -1
- package/dist/Card/CardFooter.d.ts +1 -1
- package/dist/Card/CardFooter.js +3 -3
- package/dist/Card/CardFooter.types.d.ts +1 -1
- package/dist/Card/CardHeader.d.ts +1 -1
- package/dist/Card/CardHeader.js +10 -10
- package/dist/Checkbox/CheckboxContext.d.ts +1 -1
- package/dist/Checkbox/CheckboxContext.js +2 -2
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.js +4 -4
- package/dist/CitySelector/CitySelector.types.d.ts +1 -0
- package/dist/CitySelector/Selector/index.d.ts +1 -1
- package/dist/CitySelector/Selector/index.js +2 -2
- package/dist/Collapse/Collapse.types.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanel.js +9 -9
- package/dist/CollapsePanel/CollapsePanel.types.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanelItem.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanelItem.js +5 -5
- package/dist/Countdown/Countdown.types.d.ts +2 -2
- package/dist/Countdown/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Countdown/__tests__/fixtures/A11yDemos.js +10 -10
- package/dist/Countdown/utils.d.ts +2 -2
- package/dist/Countdown/utils.js +4 -4
- package/dist/DatePicker/DatePicker.types.d.ts +1 -1
- package/dist/DesktopPicker/DesktopPicker.types.d.ts +1 -1
- package/dist/DesktopTimePicker/DesktopTimePicker.types.d.ts +11 -11
- package/dist/DesktopTimePicker/useGetTimePickerContent.js +2 -2
- package/dist/DesktopTimePicker/utils/utils.d.ts +1 -1
- package/dist/DesktopTimePicker/utils/utils.js +3 -3
- package/dist/Dialog/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Dialog/__tests__/fixtures/A11yDemos.js +4 -4
- package/dist/Divider/Divider.types.d.ts +1 -1
- package/dist/Drawer/Drawer.d.ts +1 -1
- package/dist/Drawer/Drawer.js +5 -5
- package/dist/Drawer/Drawer.types.d.ts +1 -1
- package/dist/Fade/Fade.d.ts +1 -1
- package/dist/Fade/Fade.js +4 -4
- package/dist/Fade/Fade.types.d.ts +1 -1
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/IconButton.js +6 -6
- package/dist/IconButton/IconButton.types.d.ts +1 -1
- package/dist/Input/Input.types.d.ts +1 -1
- package/dist/Input/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Input/__tests__/fixtures/A11yDemos.js +7 -7
- package/dist/ItemSelector/ItemSelector.miniapp.js +7 -5
- package/dist/ItemSelector/ItemSelector.types.d.ts +1 -0
- package/dist/ItemSelector/Selector/index.d.ts +1 -1
- package/dist/ItemSelector/Selector/index.js +2 -2
- package/dist/List/List.d.ts +1 -1
- package/dist/List/List.js +4 -4
- package/dist/List/ListContext.d.ts +1 -1
- package/dist/List/ListContext.js +2 -2
- package/dist/List/ListItem.d.ts +1 -1
- package/dist/List/ListItem.js +8 -8
- package/dist/List/ListItem.types.d.ts +1 -1
- package/dist/List/ListItemContent.d.ts +1 -1
- package/dist/List/ListItemContent.js +3 -3
- package/dist/List/ListItemContent.types.d.ts +1 -1
- package/dist/List/ListItemExtra.d.ts +1 -1
- package/dist/List/ListItemExtra.js +3 -3
- package/dist/List/ListItemExtra.types.d.ts +1 -1
- package/dist/List/ListItemFooter.d.ts +1 -1
- package/dist/List/ListItemFooter.js +3 -3
- package/dist/List/ListItemFooter.types.d.ts +1 -1
- package/dist/List/ListItemHeader.d.ts +1 -1
- package/dist/List/ListItemHeader.js +3 -3
- package/dist/List/ListItemHeader.types.d.ts +1 -1
- package/dist/Loading/Loading.d.ts +1 -1
- package/dist/Loading/Loading.js +5 -5
- package/dist/Loading/Loading.types.d.ts +1 -1
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +6 -6
- package/dist/Modal/Modal.miniapp.d.ts +1 -1
- package/dist/Modal/Modal.miniapp.js +7 -7
- package/dist/Modal/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Modal/__tests__/fixtures/A11yDemos.js +3 -3
- package/dist/Modal/useModal.js +26 -29
- package/dist/NavBar/NavBar.d.ts +1 -1
- package/dist/NavBar/NavBar.js +10 -10
- package/dist/Picker/Picker.js +0 -1
- package/dist/Picker/Picker.types.d.ts +1 -1
- package/dist/Picker/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Picker/__tests__/fixtures/A11yDemos.js +2 -2
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/Popover.js +8 -8
- package/dist/Popover/Popover.types.d.ts +1 -1
- package/dist/Popover/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Popover/__tests__/fixtures/A11yDemos.js +21 -21
- package/dist/Portal/Portal.d.ts +1 -1
- package/dist/Portal/Portal.js +3 -3
- package/dist/Portal/Portal.types.d.ts +1 -1
- package/dist/Progress/Progress.d.ts +1 -1
- package/dist/Progress/Progress.js +4 -4
- package/dist/Progress/Progress.types.d.ts +1 -1
- package/dist/Progress/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Progress/__tests__/fixtures/A11yDemos.js +9 -9
- package/dist/Radio/RadioButtonIcon.d.ts +1 -1
- package/dist/Radio/RadioButtonIcon.js +4 -4
- package/dist/Radio/RadioContext.d.ts +1 -1
- package/dist/Radio/RadioContext.js +2 -2
- package/dist/Radio/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Radio/__tests__/fixtures/A11yDemos.js +4 -4
- package/dist/Rating/Rating.types.d.ts +1 -1
- package/dist/ScrollView/ScrollView.types.d.ts +1 -1
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.js +30 -30
- package/dist/ScrollView/useScrollView.js +16 -4
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/Skeleton.js +3 -3
- package/dist/Skeleton/Skeleton.types.d.ts +1 -1
- package/dist/Slide/Slide.d.ts +1 -1
- package/dist/Slide/Slide.js +4 -4
- package/dist/Slider/Slider.types.d.ts +1 -1
- package/dist/Steps/Step.types.d.ts +1 -1
- package/dist/Steps/StepsContext.d.ts +1 -1
- package/dist/Steps/StepsContext.js +2 -2
- package/dist/SwipeAction/SwipeAction.js +7 -8
- package/dist/SwipeAction/SwipeAction.types.d.ts +1 -1
- package/dist/Swiper/Swiper.types.d.ts +1 -1
- package/dist/Swiper/SwiperItem.d.ts +1 -1
- package/dist/Swiper/SwiperItem.js +2 -2
- package/dist/Switch/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Switch/__tests__/fixtures/A11yDemos.js +4 -4
- package/dist/TabBar/TabBar.d.ts +1 -1
- package/dist/TabBar/TabBar.js +5 -5
- package/dist/Tabs/Tab.css +1 -24
- package/dist/Tabs/Tab.d.ts +2 -2
- package/dist/Tabs/Tab.js +42 -34
- package/dist/Tabs/Tab.types.d.ts +1 -1
- package/dist/Tabs/TabIndicator.d.ts +13 -0
- package/dist/Tabs/TabIndicator.js +115 -0
- package/dist/Tabs/TabMask.d.ts +9 -0
- package/dist/Tabs/TabMask.js +88 -0
- package/dist/Tabs/TabPanel.types.d.ts +1 -1
- package/dist/Tabs/Tabs.css +15 -5
- package/dist/Tabs/Tabs.js +84 -159
- package/dist/Tabs/Tabs.types.d.ts +5 -6
- package/dist/Tabs/TabsContext.d.ts +15 -6
- package/dist/Tabs/TabsContext.js +6 -14
- package/dist/Tabs/classes.d.ts +10 -0
- package/dist/Tabs/classes.js +54 -0
- package/dist/Tabs/index.css +16 -29
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Tabs/index.js +4 -4
- package/dist/Tabs/index.miniapp.d.ts +5 -0
- package/dist/Tabs/index.miniapp.js +50 -0
- package/dist/Tabs/miniapp/Tab.d.ts +5 -0
- package/dist/Tabs/miniapp/Tab.js +103 -0
- package/dist/Tabs/miniapp/TabIndicator.d.ts +15 -0
- package/dist/Tabs/miniapp/TabIndicator.js +206 -0
- package/dist/Tabs/miniapp/TabMask.d.ts +13 -0
- package/dist/Tabs/miniapp/TabMask.js +66 -0
- package/dist/Tabs/miniapp/Tabs.d.ts +5 -0
- package/dist/Tabs/miniapp/Tabs.js +261 -0
- package/dist/Tabs/miniapp/TabsContext.d.ts +17 -0
- package/dist/Tabs/miniapp/TabsContext.js +39 -0
- package/dist/Tabs/miniapp/index.d.ts +2 -0
- package/dist/Tabs/miniapp/index.js +41 -0
- package/dist/Tabs/miniapp/scroll.d.ts +21 -0
- package/dist/Tabs/miniapp/scroll.js +52 -0
- package/dist/Tabs/miniapp/utils/queryBatch.d.ts +68 -0
- package/dist/Tabs/miniapp/utils/queryBatch.js +100 -0
- package/dist/Tabs/utils/scroll.js +10 -4
- package/dist/Tag/Tag.d.ts +1 -1
- package/dist/Tag/Tag.js +6 -6
- package/dist/Tag/Tag.types.d.ts +1 -1
- package/dist/Tag/TagGroup.d.ts +1 -1
- package/dist/Tag/TagGroup.js +3 -3
- package/dist/Tag/TagGroup.types.d.ts +1 -1
- package/dist/Tag/__tests__/fixtures/A11yDemos.js +3 -3
- package/dist/TextArea/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/TextArea/__tests__/fixtures/A11yDemos.js +6 -6
- package/dist/ThemeProvider/hooks/ThemeContext.d.ts +1 -1
- package/dist/ThemeProvider/hooks/ThemeContext.js +2 -2
- package/dist/ThemeProvider/hooks/useTheme.js +2 -2
- package/dist/ThemeProvider/utils/mountTokens.js +2 -2
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/Toast.js +8 -8
- package/dist/Toast/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Toast/__tests__/fixtures/A11yDemos.js +2 -2
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Tooltip/Tooltip.js +5 -5
- package/dist/Tooltip/Tooltip.types.d.ts +1 -1
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.js +14 -14
- package/dist/Transition/Transition.d.ts +1 -1
- package/dist/Transition/Transition.js +3 -3
- package/dist/Transition/Transition.miniapp.d.ts +1 -1
- package/dist/Transition/Transition.miniapp.js +3 -3
- package/dist/Transition/TransitionCore.js +8 -2
- package/dist/_.._/benchmarks/components/Button.d.js +15 -0
- package/dist/_.._/benchmarks/components/Button.js +2 -2
- package/dist/_.._/benchmarks/components/Input.d.js +15 -0
- package/dist/_.._/benchmarks/components/Tabs.d.js +15 -0
- package/es/ActionSheet/ActionSheet.d.ts +1 -1
- package/es/ActionSheet/ActionSheet.js +1 -1
- package/es/ActionSheet/ActionSheet.types.d.ts +1 -1
- package/es/ActionSheet/ActionSheetContext.d.ts +1 -1
- package/es/ActionSheet/ActionSheetContext.js +1 -1
- package/es/ActionSheet/ActionSheetItem.types.d.ts +1 -1
- package/es/Alert/Alert.d.ts +1 -1
- package/es/Alert/Alert.js +1 -1
- package/es/Alert/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Alert/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Avatar/Avatar.d.ts +1 -1
- package/es/Avatar/Avatar.js +1 -1
- package/es/Avatar/Avatar.types.d.ts +1 -1
- package/es/Avatar/AvatarGroup.types.d.ts +1 -1
- package/es/Backdrop/Backdrop.d.ts +1 -1
- package/es/Backdrop/Backdrop.js +1 -1
- package/es/Backdrop/Backdrop.types.d.ts +1 -1
- package/es/Backdrop/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Backdrop/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Badge/Badge.d.ts +1 -1
- package/es/Badge/Badge.js +1 -1
- package/es/Badge/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Badge/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/es/Breadcrumb/Breadcrumb.js +1 -1
- package/es/Breadcrumb/Breadcrumb.types.d.ts +1 -1
- package/es/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/es/Breadcrumb/BreadcrumbItem.js +1 -1
- package/es/Button/Button.d.ts +1 -1
- package/es/Button/Button.js +1 -1
- package/es/Button/Button.types.d.ts +1 -1
- package/es/Button/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Button/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Calendar/Calendar.types.d.ts +1 -1
- package/es/Calendar/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Calendar/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Card/Card.d.ts +1 -1
- package/es/Card/Card.js +1 -1
- package/es/Card/Card.types.d.ts +1 -1
- package/es/Card/CardContent.d.ts +1 -1
- package/es/Card/CardContent.js +1 -1
- package/es/Card/CardContent.types.d.ts +1 -1
- package/es/Card/CardFooter.d.ts +1 -1
- package/es/Card/CardFooter.js +1 -1
- package/es/Card/CardFooter.types.d.ts +1 -1
- package/es/Card/CardHeader.d.ts +1 -1
- package/es/Card/CardHeader.js +1 -1
- package/es/Checkbox/CheckboxContext.d.ts +1 -1
- package/es/Checkbox/CheckboxContext.js +1 -1
- package/es/Checkbox/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Checkbox/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/CitySelector/CitySelector.types.d.ts +1 -0
- package/es/CitySelector/Selector/index.d.ts +1 -1
- package/es/CitySelector/Selector/index.js +1 -1
- package/es/Collapse/Collapse.types.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanel.js +1 -1
- package/es/CollapsePanel/CollapsePanel.types.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanelItem.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanelItem.js +1 -1
- package/es/Countdown/Countdown.types.d.ts +2 -2
- package/es/Countdown/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Countdown/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Countdown/utils.d.ts +2 -2
- package/es/Countdown/utils.js +4 -4
- package/es/DatePicker/DatePicker.d.ts +1 -1
- package/es/DatePicker/DatePicker.types.d.ts +1 -1
- package/es/DesktopPicker/DesktopPicker.types.d.ts +1 -1
- package/es/DesktopTimePicker/DesktopTimePicker.types.d.ts +11 -11
- package/es/DesktopTimePicker/useGetTimePickerContent.js +3 -3
- package/es/DesktopTimePicker/utils/utils.d.ts +1 -1
- package/es/DesktopTimePicker/utils/utils.js +2 -2
- package/es/Dialog/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Dialog/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Divider/Divider.types.d.ts +1 -1
- package/es/Drawer/Drawer.d.ts +1 -1
- package/es/Drawer/Drawer.js +1 -1
- package/es/Drawer/Drawer.types.d.ts +1 -1
- package/es/Fade/Fade.d.ts +1 -1
- package/es/Fade/Fade.js +1 -1
- package/es/Fade/Fade.types.d.ts +1 -1
- package/es/IconButton/IconButton.d.ts +1 -1
- package/es/IconButton/IconButton.js +1 -1
- package/es/IconButton/IconButton.types.d.ts +1 -1
- package/es/Input/Input.types.d.ts +1 -1
- package/es/Input/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Input/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/ItemSelector/ItemSelector.miniapp.js +7 -5
- package/es/ItemSelector/ItemSelector.types.d.ts +1 -0
- package/es/ItemSelector/Selector/index.d.ts +1 -1
- package/es/ItemSelector/Selector/index.js +1 -1
- package/es/List/List.d.ts +1 -1
- package/es/List/List.js +1 -1
- package/es/List/ListContext.d.ts +1 -1
- package/es/List/ListContext.js +1 -1
- package/es/List/ListItem.d.ts +1 -1
- package/es/List/ListItem.js +1 -1
- package/es/List/ListItem.types.d.ts +1 -1
- package/es/List/ListItemContent.d.ts +1 -1
- package/es/List/ListItemContent.js +1 -1
- package/es/List/ListItemContent.types.d.ts +1 -1
- package/es/List/ListItemExtra.d.ts +1 -1
- package/es/List/ListItemExtra.js +1 -1
- package/es/List/ListItemExtra.types.d.ts +1 -1
- package/es/List/ListItemFooter.d.ts +1 -1
- package/es/List/ListItemFooter.js +1 -1
- package/es/List/ListItemFooter.types.d.ts +1 -1
- package/es/List/ListItemHeader.d.ts +1 -1
- package/es/List/ListItemHeader.js +1 -1
- package/es/List/ListItemHeader.types.d.ts +1 -1
- package/es/Loading/Loading.d.ts +1 -1
- package/es/Loading/Loading.js +1 -1
- package/es/Loading/Loading.types.d.ts +1 -1
- package/es/Modal/Modal.d.ts +1 -1
- package/es/Modal/Modal.js +1 -1
- package/es/Modal/Modal.miniapp.d.ts +1 -1
- package/es/Modal/Modal.miniapp.js +1 -1
- package/es/Modal/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Modal/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Modal/useModal.js +26 -29
- package/es/NavBar/NavBar.d.ts +1 -1
- package/es/NavBar/NavBar.js +1 -1
- package/es/Picker/Picker.js +0 -1
- package/es/Picker/Picker.types.d.ts +1 -1
- package/es/Picker/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Picker/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Popover/Popover.d.ts +1 -1
- package/es/Popover/Popover.js +1 -1
- package/es/Popover/Popover.types.d.ts +1 -1
- package/es/Popover/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Popover/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Portal/Portal.d.ts +1 -1
- package/es/Portal/Portal.js +1 -1
- package/es/Portal/Portal.types.d.ts +1 -1
- package/es/Progress/Progress.d.ts +1 -1
- package/es/Progress/Progress.js +1 -1
- package/es/Progress/Progress.types.d.ts +1 -1
- package/es/Progress/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Progress/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Radio/RadioButtonIcon.d.ts +1 -1
- package/es/Radio/RadioButtonIcon.js +1 -1
- package/es/Radio/RadioContext.d.ts +1 -1
- package/es/Radio/RadioContext.js +1 -1
- package/es/Radio/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Radio/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Rating/Rating.types.d.ts +1 -1
- package/es/ScrollView/ScrollView.types.d.ts +1 -1
- package/es/ScrollView/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/ScrollView/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/ScrollView/useScrollView.js +16 -4
- package/es/Skeleton/Skeleton.d.ts +1 -1
- package/es/Skeleton/Skeleton.js +1 -1
- package/es/Skeleton/Skeleton.types.d.ts +1 -1
- package/es/Slide/Slide.d.ts +1 -1
- package/es/Slide/Slide.js +1 -1
- package/es/Slider/Slider.types.d.ts +1 -1
- package/es/Steps/Step.types.d.ts +1 -1
- package/es/Steps/StepsContext.d.ts +1 -1
- package/es/Steps/StepsContext.js +1 -1
- package/es/SwipeAction/SwipeAction.js +7 -8
- package/es/SwipeAction/SwipeAction.types.d.ts +1 -1
- package/es/Swiper/Swiper.js +5 -1
- package/es/Swiper/Swiper.types.d.ts +1 -1
- package/es/Swiper/SwiperItem.d.ts +1 -1
- package/es/Swiper/SwiperItem.js +1 -1
- package/es/Switch/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Switch/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/TabBar/TabBar.d.ts +1 -1
- package/es/TabBar/TabBar.js +1 -1
- package/es/Tabs/Tab.css +1 -24
- package/es/Tabs/Tab.d.ts +2 -2
- package/es/Tabs/Tab.js +44 -36
- package/es/Tabs/Tab.types.d.ts +1 -1
- package/es/Tabs/TabIndicator.d.ts +13 -0
- package/es/Tabs/TabIndicator.js +86 -0
- package/es/Tabs/TabMask.d.ts +9 -0
- package/es/Tabs/TabMask.js +59 -0
- package/es/Tabs/TabPanel.types.d.ts +1 -1
- package/es/Tabs/Tabs.css +15 -5
- package/es/Tabs/Tabs.js +86 -161
- package/es/Tabs/Tabs.types.d.ts +5 -6
- package/es/Tabs/TabsContext.d.ts +15 -6
- package/es/Tabs/TabsContext.js +6 -4
- package/es/Tabs/classes.d.ts +10 -0
- package/es/Tabs/classes.js +22 -0
- package/es/Tabs/index.css +16 -29
- package/es/Tabs/index.d.ts +2 -2
- package/es/Tabs/index.js +2 -2
- package/es/Tabs/index.miniapp.d.ts +5 -0
- package/es/Tabs/index.miniapp.js +11 -0
- package/es/Tabs/miniapp/Tab.d.ts +5 -0
- package/es/Tabs/miniapp/Tab.js +74 -0
- package/es/Tabs/miniapp/TabIndicator.d.ts +15 -0
- package/es/Tabs/miniapp/TabIndicator.js +177 -0
- package/es/Tabs/miniapp/TabMask.d.ts +13 -0
- package/es/Tabs/miniapp/TabMask.js +37 -0
- package/es/Tabs/miniapp/Tabs.d.ts +5 -0
- package/es/Tabs/miniapp/Tabs.js +239 -0
- package/es/Tabs/miniapp/TabsContext.d.ts +17 -0
- package/es/Tabs/miniapp/TabsContext.js +16 -0
- package/es/Tabs/miniapp/index.d.ts +2 -0
- package/es/Tabs/miniapp/index.js +7 -0
- package/es/Tabs/miniapp/scroll.d.ts +21 -0
- package/es/Tabs/miniapp/scroll.js +29 -0
- package/es/Tabs/miniapp/utils/queryBatch.d.ts +68 -0
- package/es/Tabs/miniapp/utils/queryBatch.js +65 -0
- package/es/Tabs/utils/scroll.js +10 -4
- package/es/Tag/Tag.d.ts +1 -1
- package/es/Tag/Tag.js +4 -4
- package/es/Tag/Tag.types.d.ts +1 -1
- package/es/Tag/TagGroup.d.ts +1 -1
- package/es/Tag/TagGroup.js +1 -1
- package/es/Tag/TagGroup.types.d.ts +1 -1
- package/es/Tag/__tests__/fixtures/A11yDemos.js +3 -3
- package/es/TextArea/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/TextArea/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/ThemeProvider/hooks/ThemeContext.d.ts +1 -1
- package/es/ThemeProvider/hooks/ThemeContext.js +1 -1
- package/es/ThemeProvider/hooks/useTheme.js +1 -1
- package/es/ThemeProvider/utils/mountTokens.js +1 -1
- package/es/Toast/Toast.d.ts +1 -1
- package/es/Toast/Toast.js +1 -1
- package/es/Toast/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Toast/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Tooltip/Tooltip.d.ts +1 -1
- package/es/Tooltip/Tooltip.js +1 -1
- package/es/Tooltip/Tooltip.types.d.ts +1 -1
- package/es/Tooltip/__tests__/fixtures/A11yDemos.d.ts +1 -1
- package/es/Tooltip/__tests__/fixtures/A11yDemos.js +1 -1
- package/es/Transition/Transition.d.ts +1 -1
- package/es/Transition/Transition.js +1 -1
- package/es/Transition/Transition.miniapp.d.ts +1 -1
- package/es/Transition/Transition.miniapp.js +1 -1
- package/es/Transition/TransitionCore.js +8 -2
- package/es/_.._/benchmarks/components/Button.d.js +0 -0
- package/es/_.._/benchmarks/components/Button.js +1 -1
- package/es/_.._/benchmarks/components/Input.d.js +0 -0
- package/es/_.._/benchmarks/components/Tabs.d.js +0 -0
- package/package.json +7 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ActionSheetProps } from './ActionSheet.types';
|
|
3
3
|
import './ActionSheet.less';
|
|
4
4
|
declare const ActionSheet: React.ForwardRefExoticComponent<Omit<ActionSheetProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -57,15 +57,15 @@ __export(ActionSheet_exports, {
|
|
|
57
57
|
});
|
|
58
58
|
module.exports = __toCommonJS(ActionSheet_exports);
|
|
59
59
|
var import_clsx = __toESM(require("clsx"));
|
|
60
|
-
var
|
|
60
|
+
var React = __toESM(require("react"));
|
|
61
61
|
var import_Drawer = __toESM(require("../Drawer"));
|
|
62
62
|
var import_ActionSheetContext = __toESM(require("./ActionSheetContext"));
|
|
63
63
|
var import_ActionSheet2 = require("./ActionSheet.css");
|
|
64
64
|
const prefixCls = "bui-action-sheet";
|
|
65
65
|
const ActionSheetCancel = ({ children, onClick }) => {
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item ${prefixCls}-cancel`, onClick }, children);
|
|
67
67
|
};
|
|
68
|
-
const ActionSheet = /* @__PURE__ */
|
|
68
|
+
const ActionSheet = /* @__PURE__ */ React.forwardRef(
|
|
69
69
|
(props, ref) => {
|
|
70
70
|
const _a = props, {
|
|
71
71
|
open,
|
|
@@ -84,7 +84,7 @@ const ActionSheet = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
84
84
|
"children",
|
|
85
85
|
"onSelect"
|
|
86
86
|
]);
|
|
87
|
-
const context =
|
|
87
|
+
const context = React.useMemo(() => {
|
|
88
88
|
return {
|
|
89
89
|
onSelect
|
|
90
90
|
};
|
|
@@ -92,7 +92,7 @@ const ActionSheet = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
92
92
|
const onCancelClick = (event) => {
|
|
93
93
|
onClose(event, { from: "cancelText" });
|
|
94
94
|
};
|
|
95
|
-
return /* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ React.createElement(import_ActionSheetContext.default.Provider, { value: context }, /* @__PURE__ */ React.createElement(
|
|
96
96
|
import_Drawer.default,
|
|
97
97
|
__spreadValues({
|
|
98
98
|
ref,
|
|
@@ -101,9 +101,9 @@ const ActionSheet = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
101
101
|
className: (0, import_clsx.default)(prefixCls, className),
|
|
102
102
|
contentProps: { className: `${prefixCls}-content` }
|
|
103
103
|
}, others),
|
|
104
|
-
extra && /* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
cancelText && /* @__PURE__ */
|
|
104
|
+
extra && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-extra` }, extra),
|
|
105
|
+
/* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item-wrapper` }, children),
|
|
106
|
+
cancelText && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-gap` }), /* @__PURE__ */ React.createElement(ActionSheetCancel, { onClick: onCancelClick }, cancelText))
|
|
107
107
|
));
|
|
108
108
|
}
|
|
109
109
|
);
|
|
@@ -30,7 +30,7 @@ __export(ActionSheetContext_exports, {
|
|
|
30
30
|
default: () => ActionSheetContext_default
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(ActionSheetContext_exports);
|
|
33
|
-
var
|
|
34
|
-
const ActionSheetContext =
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
const ActionSheetContext = React.createContext(void 0);
|
|
35
35
|
ActionSheetContext.displayName = "BuiActionSheetContext";
|
|
36
36
|
var ActionSheetContext_default = ActionSheetContext;
|
package/dist/Alert/Alert.d.ts
CHANGED
package/dist/Alert/Alert.js
CHANGED
|
@@ -58,41 +58,41 @@ __export(Alert_exports, {
|
|
|
58
58
|
module.exports = __toCommonJS(Alert_exports);
|
|
59
59
|
var import_icons = require("@bifrostui/icons");
|
|
60
60
|
var import_clsx = __toESM(require("clsx"));
|
|
61
|
-
var
|
|
61
|
+
var React = __toESM(require("react"));
|
|
62
62
|
var import_utils = require("@bifrostui/utils");
|
|
63
63
|
var import_IconButton = require("../IconButton");
|
|
64
64
|
var import_index = require("./index.css");
|
|
65
65
|
const prefixCls = "bui-alert";
|
|
66
66
|
const iconMap = {
|
|
67
|
-
danger: /* @__PURE__ */
|
|
67
|
+
danger: /* @__PURE__ */ React.createElement(
|
|
68
68
|
import_icons.ErrorCircleFilledIcon,
|
|
69
69
|
{
|
|
70
70
|
color: "danger",
|
|
71
71
|
className: `${prefixCls}-default-icon`
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
|
-
success: /* @__PURE__ */
|
|
74
|
+
success: /* @__PURE__ */ React.createElement(
|
|
75
75
|
import_icons.SuccessCircleFilledIcon,
|
|
76
76
|
{
|
|
77
77
|
color: "success",
|
|
78
78
|
className: `${prefixCls}-default-icon`
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
|
-
warning: /* @__PURE__ */
|
|
81
|
+
warning: /* @__PURE__ */ React.createElement(
|
|
82
82
|
import_icons.AlertCircleFilledIcon,
|
|
83
83
|
{
|
|
84
84
|
color: "warning",
|
|
85
85
|
className: `${prefixCls}-default-icon`
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
info: /* @__PURE__ */
|
|
88
|
+
info: /* @__PURE__ */ React.createElement(
|
|
89
89
|
import_icons.AlertCircleFilledIcon,
|
|
90
90
|
{
|
|
91
91
|
color: "info",
|
|
92
92
|
className: `${prefixCls}-default-icon`
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
|
-
primary: /* @__PURE__ */
|
|
95
|
+
primary: /* @__PURE__ */ React.createElement(
|
|
96
96
|
import_icons.VolumeUpOutlinedIcon,
|
|
97
97
|
{
|
|
98
98
|
color: "primary",
|
|
@@ -105,16 +105,16 @@ const AlertIcon = (props) => {
|
|
|
105
105
|
const { icon, color } = props;
|
|
106
106
|
if (!icon)
|
|
107
107
|
return null;
|
|
108
|
-
return /* @__PURE__ */
|
|
108
|
+
return /* @__PURE__ */ React.createElement("div", { className: (0, import_clsx.default)(`${prefixCls}-icon`) }, import_utils.isMini && React.isValidElement(icon) ? React.cloneElement(icon, __spreadValues({}, { color: ((_a = icon.props) == null ? void 0 : _a.color) || color })) : icon);
|
|
109
109
|
};
|
|
110
110
|
const AlertAction = (props) => {
|
|
111
111
|
const { color, action, onClose } = props;
|
|
112
112
|
if (!action && !onClose)
|
|
113
113
|
return null;
|
|
114
114
|
if (action) {
|
|
115
|
-
return /* @__PURE__ */
|
|
115
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-action`, onClick: onClose }, action);
|
|
116
116
|
}
|
|
117
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ React.createElement(
|
|
118
118
|
import_IconButton.IconButton,
|
|
119
119
|
{
|
|
120
120
|
className: `${prefixCls}-action`,
|
|
@@ -122,10 +122,10 @@ const AlertAction = (props) => {
|
|
|
122
122
|
onClick: onClose,
|
|
123
123
|
"aria-label": "\u5173\u95ED\u6309\u94AE"
|
|
124
124
|
},
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ React.createElement(import_icons.CloseIcon, null)
|
|
126
126
|
);
|
|
127
127
|
};
|
|
128
|
-
const Alert = /* @__PURE__ */
|
|
128
|
+
const Alert = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
129
129
|
const _a = props, {
|
|
130
130
|
color,
|
|
131
131
|
className,
|
|
@@ -147,7 +147,7 @@ const Alert = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
147
147
|
"onClose",
|
|
148
148
|
"onClick"
|
|
149
149
|
]);
|
|
150
|
-
return /* @__PURE__ */
|
|
150
|
+
return /* @__PURE__ */ React.createElement(
|
|
151
151
|
"div",
|
|
152
152
|
__spreadValues({
|
|
153
153
|
className: (0, import_clsx.default)(prefixCls, className, [
|
|
@@ -156,8 +156,8 @@ const Alert = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
156
156
|
onClick,
|
|
157
157
|
ref
|
|
158
158
|
}, others),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
marquee ? /* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ React.createElement(AlertIcon, { icon: icon === true ? iconMap[color] : icon, color }),
|
|
160
|
+
marquee ? /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-marquee` }, /* @__PURE__ */ React.createElement(
|
|
161
161
|
"div",
|
|
162
162
|
{
|
|
163
163
|
className: (0, import_clsx.default)(`${prefixCls}-content`, [
|
|
@@ -165,8 +165,8 @@ const Alert = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
165
165
|
])
|
|
166
166
|
},
|
|
167
167
|
children
|
|
168
|
-
)) : /* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
168
|
+
)) : /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-content` }, children),
|
|
169
|
+
/* @__PURE__ */ React.createElement(AlertAction, { action, onClose, color })
|
|
170
170
|
);
|
|
171
171
|
});
|
|
172
172
|
Alert.displayName = "BuiAlert";
|
|
@@ -34,10 +34,10 @@ __export(A11yDemos_exports, {
|
|
|
34
34
|
multipleTypeAlertDemo: () => multipleTypeAlertDemo
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(A11yDemos_exports);
|
|
37
|
-
var
|
|
37
|
+
var React = __toESM(require("react"));
|
|
38
38
|
var import_Alert = __toESM(require("../../Alert"));
|
|
39
39
|
const basicAlertDemo = () => {
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
41
41
|
import_Alert.default,
|
|
42
42
|
{
|
|
43
43
|
color: "info",
|
|
@@ -49,7 +49,7 @@ const basicAlertDemo = () => {
|
|
|
49
49
|
));
|
|
50
50
|
};
|
|
51
51
|
const multipleTypeAlertDemo = () => {
|
|
52
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
53
53
|
import_Alert.default,
|
|
54
54
|
{
|
|
55
55
|
color: "info",
|
|
@@ -58,7 +58,7 @@ const multipleTypeAlertDemo = () => {
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"\u4FE1\u606F\u63D0\u793A"
|
|
61
|
-
), /* @__PURE__ */
|
|
61
|
+
), /* @__PURE__ */ React.createElement(
|
|
62
62
|
import_Alert.default,
|
|
63
63
|
{
|
|
64
64
|
color: "success",
|
|
@@ -67,7 +67,7 @@ const multipleTypeAlertDemo = () => {
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"\u6210\u529F\u63D0\u793A"
|
|
70
|
-
), /* @__PURE__ */
|
|
70
|
+
), /* @__PURE__ */ React.createElement(
|
|
71
71
|
import_Alert.default,
|
|
72
72
|
{
|
|
73
73
|
color: "warning",
|
|
@@ -76,7 +76,7 @@ const multipleTypeAlertDemo = () => {
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"\u8B66\u544A\u63D0\u793A"
|
|
79
|
-
), /* @__PURE__ */
|
|
79
|
+
), /* @__PURE__ */ React.createElement(
|
|
80
80
|
import_Alert.default,
|
|
81
81
|
{
|
|
82
82
|
color: "danger",
|
|
@@ -88,11 +88,11 @@ const multipleTypeAlertDemo = () => {
|
|
|
88
88
|
));
|
|
89
89
|
};
|
|
90
90
|
const actionAlertDemo = () => {
|
|
91
|
-
return /* @__PURE__ */
|
|
91
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
92
92
|
import_Alert.default,
|
|
93
93
|
{
|
|
94
94
|
color: "info",
|
|
95
|
-
action: /* @__PURE__ */
|
|
95
|
+
action: /* @__PURE__ */ React.createElement(
|
|
96
96
|
"button",
|
|
97
97
|
{
|
|
98
98
|
type: "button",
|
|
@@ -111,11 +111,11 @@ const actionAlertDemo = () => {
|
|
|
111
111
|
};
|
|
112
112
|
const complexInteractionAlertDemo = () => {
|
|
113
113
|
const ComplexInteractionAlertDemo = () => {
|
|
114
|
-
const [showAlert, setShowAlert] =
|
|
114
|
+
const [showAlert, setShowAlert] = React.useState(true);
|
|
115
115
|
if (!showAlert) {
|
|
116
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ React.createElement("button", { type: "button", onClick: () => setShowAlert(true) }, "\u91CD\u65B0\u663E\u793A Alert");
|
|
117
117
|
}
|
|
118
|
-
return /* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
119
119
|
import_Alert.default,
|
|
120
120
|
{
|
|
121
121
|
color: "warning",
|
|
@@ -126,7 +126,7 @@ const complexInteractionAlertDemo = () => {
|
|
|
126
126
|
"\u8FD9\u662F\u4E00\u4E2A\u53EF\u4EE5\u5173\u95ED\u7684 Alert \u7EC4\u4EF6\uFF0C\u5173\u95ED\u540E\u4F1A\u663E\u793A\u91CD\u65B0\u663E\u793A\u6309\u94AE"
|
|
127
127
|
));
|
|
128
128
|
};
|
|
129
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ React.createElement(ComplexInteractionAlertDemo, null);
|
|
130
130
|
};
|
|
131
131
|
var A11yDemos_default = {
|
|
132
132
|
basicAlertDemo,
|
package/dist/Avatar/Avatar.d.ts
CHANGED
package/dist/Avatar/Avatar.js
CHANGED
|
@@ -60,11 +60,11 @@ __export(Avatar_exports, {
|
|
|
60
60
|
});
|
|
61
61
|
module.exports = __toCommonJS(Avatar_exports);
|
|
62
62
|
var import_clsx = __toESM(require("clsx"));
|
|
63
|
-
var
|
|
63
|
+
var React = __toESM(require("react"));
|
|
64
64
|
var import_Image = __toESM(require("../Image"));
|
|
65
65
|
var import_Avatar2 = require("./Avatar.css");
|
|
66
66
|
const prefixCls = "bui-avatar";
|
|
67
|
-
const Avatar = /* @__PURE__ */
|
|
67
|
+
const Avatar = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
68
68
|
const _a = props, {
|
|
69
69
|
className,
|
|
70
70
|
onClick,
|
|
@@ -94,7 +94,7 @@ const Avatar = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
94
94
|
"placeholder",
|
|
95
95
|
"ImageProps"
|
|
96
96
|
]);
|
|
97
|
-
const AvatarImg = src ? /* @__PURE__ */
|
|
97
|
+
const AvatarImg = src ? /* @__PURE__ */ React.createElement(
|
|
98
98
|
import_Image.default,
|
|
99
99
|
__spreadProps(__spreadValues({
|
|
100
100
|
src,
|
|
@@ -109,8 +109,8 @@ const Avatar = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
109
109
|
}),
|
|
110
110
|
children
|
|
111
111
|
) : null;
|
|
112
|
-
const createElement = (element) => element ? /* @__PURE__ */
|
|
113
|
-
return /* @__PURE__ */
|
|
112
|
+
const createElement = (element) => element ? /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-children` }, element) : null;
|
|
113
|
+
return /* @__PURE__ */ React.createElement(
|
|
114
114
|
"div",
|
|
115
115
|
__spreadValues({
|
|
116
116
|
className: (0, import_clsx.default)(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { BackdropProps } from './Backdrop.types';
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const Backdrop: React.ForwardRefExoticComponent<Omit<BackdropProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -57,11 +57,11 @@ __export(Backdrop_exports, {
|
|
|
57
57
|
});
|
|
58
58
|
module.exports = __toCommonJS(Backdrop_exports);
|
|
59
59
|
var import_clsx = __toESM(require("clsx"));
|
|
60
|
-
var
|
|
60
|
+
var React = __toESM(require("react"));
|
|
61
61
|
var import_Fade = __toESM(require("../Fade"));
|
|
62
62
|
var import_index = require("./index.css");
|
|
63
63
|
const prefixCls = "bui-backdrop";
|
|
64
|
-
const Backdrop = /* @__PURE__ */
|
|
64
|
+
const Backdrop = /* @__PURE__ */ React.forwardRef(
|
|
65
65
|
(props, ref) => {
|
|
66
66
|
const _a = props, {
|
|
67
67
|
children,
|
|
@@ -76,7 +76,7 @@ const Backdrop = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
76
76
|
"open",
|
|
77
77
|
"transitionDuration"
|
|
78
78
|
]);
|
|
79
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ React.createElement(import_Fade.default, __spreadValues({ in: open, timeout: transitionDuration }, others), /* @__PURE__ */ React.createElement(
|
|
80
80
|
"div",
|
|
81
81
|
{
|
|
82
82
|
"aria-hidden": "true",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OverrideProps } from '@bifrostui/types';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import { FadeProps } from '../Fade/Fade.types';
|
|
4
4
|
import { TransitionProps } from '../Transition';
|
|
5
5
|
export interface BackdropTypeMap<D extends React.ElementType = 'div', P = {}> {
|
|
@@ -32,13 +32,13 @@ __export(A11yDemos_exports, {
|
|
|
32
32
|
invisibleBackdropDemo: () => invisibleBackdropDemo
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(A11yDemos_exports);
|
|
35
|
-
var
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
36
|
var import_Backdrop = __toESM(require("../../Backdrop"));
|
|
37
37
|
const basicBackdropDemo = () => {
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ React.createElement(import_Backdrop.default, { open: true });
|
|
39
39
|
};
|
|
40
40
|
const invisibleBackdropDemo = () => {
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ React.createElement(import_Backdrop.default, { open: true, invisible: true });
|
|
42
42
|
};
|
|
43
43
|
var A11yDemos_default = {
|
|
44
44
|
basicBackdropDemo,
|
package/dist/Badge/Badge.d.ts
CHANGED
package/dist/Badge/Badge.js
CHANGED
|
@@ -57,12 +57,12 @@ __export(Badge_exports, {
|
|
|
57
57
|
});
|
|
58
58
|
module.exports = __toCommonJS(Badge_exports);
|
|
59
59
|
var import_clsx = __toESM(require("clsx"));
|
|
60
|
-
var
|
|
60
|
+
var React = __toESM(require("react"));
|
|
61
61
|
var import_useBadgeDisplay = require("./hooks/useBadgeDisplay");
|
|
62
62
|
var import_useBadgeA11y = require("./hooks/useBadgeA11y");
|
|
63
63
|
var import_index = require("./index.css");
|
|
64
64
|
const prefixCls = "bui-badge";
|
|
65
|
-
const Badge = /* @__PURE__ */
|
|
65
|
+
const Badge = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
66
66
|
const _a = props, {
|
|
67
67
|
className,
|
|
68
68
|
children,
|
|
@@ -109,7 +109,7 @@ const Badge = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
109
109
|
});
|
|
110
110
|
if (invisible)
|
|
111
111
|
return null;
|
|
112
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ React.createElement(
|
|
113
113
|
"div",
|
|
114
114
|
__spreadValues({
|
|
115
115
|
className: (0, import_clsx.default)(`${prefixCls}`, className, {
|
|
@@ -117,7 +117,7 @@ const Badge = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
117
117
|
}),
|
|
118
118
|
ref
|
|
119
119
|
}, others),
|
|
120
|
-
shouldShowBadge && /* @__PURE__ */
|
|
120
|
+
shouldShowBadge && /* @__PURE__ */ React.createElement(
|
|
121
121
|
"div",
|
|
122
122
|
__spreadValues({
|
|
123
123
|
className: (0, import_clsx.default)(
|
|
@@ -38,31 +38,31 @@ __export(A11yDemos_exports, {
|
|
|
38
38
|
typeBadgeDemo: () => typeBadgeDemo
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(A11yDemos_exports);
|
|
41
|
-
var
|
|
41
|
+
var React = __toESM(require("react"));
|
|
42
42
|
var import_Badge = __toESM(require("../../Badge"));
|
|
43
43
|
const basicBadgeDemo = () => {
|
|
44
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(import_Badge.default, { content: "12" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "\u5185\u5BB9")));
|
|
45
45
|
};
|
|
46
46
|
const colorBadgeDemo = () => {
|
|
47
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ React.createElement("div", { style: { display: "flex", gap: "10px" } }, /* @__PURE__ */ React.createElement(import_Badge.default, { content: "1", color: "primary" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "Primary")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: "2", color: "success" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "Success")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: "3", color: "warning" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "Warning")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: "4", color: "danger" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "Danger")));
|
|
48
48
|
};
|
|
49
49
|
const typeBadgeDemo = () => {
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ React.createElement("div", { style: { display: "flex", gap: "10px" } }, /* @__PURE__ */ React.createElement(import_Badge.default, { content: "99", type: "standard" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "Standard")), /* @__PURE__ */ React.createElement(import_Badge.default, { type: "dot" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "Dot")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: "NEW", type: "bubble" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "Bubble")));
|
|
51
51
|
};
|
|
52
52
|
const maxBadgeDemo = () => {
|
|
53
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ React.createElement("div", { style: { display: "flex", gap: "10px" } }, /* @__PURE__ */ React.createElement(import_Badge.default, { content: 99, max: 50 }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "50+")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: 150, max: 99 }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "99+")));
|
|
54
54
|
};
|
|
55
55
|
const accessibilityBadgeDemo = () => {
|
|
56
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ React.createElement("div", { style: { display: "flex", gap: "10px", flexDirection: "column" } }, /* @__PURE__ */ React.createElement(import_Badge.default, { content: 5, "aria-label": "\u81EA\u5B9A\u4E49\u6807\u7B7E" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "\u81EA\u5B9A\u4E49\u6807\u7B7E")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: 3, role: "img" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "\u81EA\u5B9A\u4E49\u89D2\u8272")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: 1, "aria-hidden": true }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "\u9690\u85CF\u89D2\u8272")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: 2, "aria-hidden": true }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "\u9690\u85CF")));
|
|
57
57
|
};
|
|
58
58
|
const invisibilityBadgeDemo = () => {
|
|
59
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ React.createElement("div", { style: { display: "flex", gap: "10px" } }, /* @__PURE__ */ React.createElement(import_Badge.default, { content: 0, showZero: true }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "ShowZero")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: 0, showZero: false }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "HideZero")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: 5, invisible: false }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "Visible")));
|
|
60
60
|
};
|
|
61
61
|
const complexInteractionBadgeDemo = () => {
|
|
62
62
|
const ComplexInteractionBadgeDemo = () => {
|
|
63
|
-
const [count, setCount] =
|
|
64
|
-
const [visible, setVisible] =
|
|
65
|
-
return /* @__PURE__ */
|
|
63
|
+
const [count, setCount] = React.useState(1);
|
|
64
|
+
const [visible, setVisible] = React.useState(true);
|
|
65
|
+
return /* @__PURE__ */ React.createElement("div", { style: { display: "flex", gap: "10px", alignItems: "center" } }, /* @__PURE__ */ React.createElement(import_Badge.default, { content: count, invisible: !visible }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "\u5185\u5BB9")), /* @__PURE__ */ React.createElement(
|
|
66
66
|
"button",
|
|
67
67
|
{
|
|
68
68
|
type: "button",
|
|
@@ -72,7 +72,7 @@ const complexInteractionBadgeDemo = () => {
|
|
|
72
72
|
"\u589E\u52A0(",
|
|
73
73
|
count,
|
|
74
74
|
")"
|
|
75
|
-
), /* @__PURE__ */
|
|
75
|
+
), /* @__PURE__ */ React.createElement(
|
|
76
76
|
"button",
|
|
77
77
|
{
|
|
78
78
|
type: "button",
|
|
@@ -82,10 +82,10 @@ const complexInteractionBadgeDemo = () => {
|
|
|
82
82
|
visible ? "\u9690\u85CF" : "\u663E\u793A"
|
|
83
83
|
));
|
|
84
84
|
};
|
|
85
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ React.createElement(ComplexInteractionBadgeDemo, null);
|
|
86
86
|
};
|
|
87
87
|
const specialContentBadgeDemo = () => {
|
|
88
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ React.createElement("div", { style: { display: "flex", gap: "10px", flexWrap: "wrap" } }, /* @__PURE__ */ React.createElement(import_Badge.default, { content: "NEW" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "\u6587\u672C")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: "99+" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "99+")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: 1 }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "\u5355\u6570")), /* @__PURE__ */ React.createElement(import_Badge.default, { content: "" }, /* @__PURE__ */ React.createElement("div", { style: { width: 40, height: 40, background: "#f0f0f0" } }, "\u7A7A\u5185\u5BB9")));
|
|
89
89
|
};
|
|
90
90
|
var A11yDemos_default = {
|
|
91
91
|
basicBadgeDemo,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { BreadcrumbProps } from './Breadcrumb.types';
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<BreadcrumbProps<"nav", {}>, "ref"> & React.RefAttributes<HTMLElement>>;
|