@bifrostui/react 2.0.0-alpha.32 → 2.0.0-alpha.34
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.js +18 -8
- package/dist/ActionSheet/ActionSheetItem.d.ts +1 -1
- package/dist/ActionSheet/ActionSheetItem.js +12 -5
- package/dist/Alert/Alert.d.ts +1 -1
- package/dist/Alert/Alert.js +36 -34
- package/dist/Alert/__tests__/fixtures/A11yDemos.d.ts +8 -9
- package/dist/Alert/__tests__/fixtures/A11yDemos.js +60 -54
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/Avatar.js +11 -9
- package/dist/Avatar/AvatarGroup.d.ts +1 -1
- package/dist/Avatar/AvatarGroup.js +10 -6
- package/dist/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Backdrop/Backdrop.js +9 -5
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.d.ts +4 -5
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.js +3 -3
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +23 -15
- package/dist/Badge/__tests__/fixtures/A11yDemos.d.ts +16 -17
- package/dist/Badge/__tests__/fixtures/A11yDemos.js +60 -27
- package/dist/Badge/index.css +3 -3
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +19 -10
- package/dist/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/Breadcrumb/BreadcrumbItem.js +18 -10
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +14 -7
- package/dist/Button/__tests__/fixtures/A11yDemos.d.ts +14 -15
- package/dist/Button/__tests__/fixtures/A11yDemos.js +32 -8
- package/dist/CSSTransition/CSSTransition.js +2 -1
- package/dist/CSSTransition/demo/CSSTransitionDemo.d.ts +1 -2
- package/dist/CSSTransition/demo/CSSTransitionDemo.js +28 -35
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js +74 -66
- package/dist/Calendar/__tests__/fixtures/A11yDemos.d.ts +1 -2
- package/dist/Calendar/__tests__/fixtures/A11yDemos.js +2 -2
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/Card.js +9 -4
- package/dist/Card/CardContent.d.ts +1 -1
- package/dist/Card/CardContent.js +5 -1
- package/dist/Card/CardFooter.d.ts +1 -1
- package/dist/Card/CardFooter.js +5 -1
- package/dist/Card/CardHeader.d.ts +1 -1
- package/dist/Card/CardHeader.js +16 -9
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +27 -23
- package/dist/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/Checkbox/CheckboxGroup.js +9 -5
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.d.ts +6 -7
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.js +10 -4
- package/dist/Checkbox/index.css +4 -4
- package/dist/CitySelector/CitySelector.d.ts +1 -1
- package/dist/CitySelector/CitySelector.js +2 -1
- package/dist/CitySelector/CitySelector.miniapp.d.ts +1 -1
- package/dist/CitySelector/CitySelector.miniapp.js +2 -1
- package/dist/CitySelector/CitySelectorCore.js +83 -61
- package/dist/CitySelector/Selector/index.d.ts +1 -1
- package/dist/CitySelector/Selector/index.js +5 -15
- package/dist/Collapse/Collapse.js +51 -50
- package/dist/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanel.js +10 -8
- package/dist/CollapsePanel/CollapsePanelItem.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanelItem.js +27 -17
- package/dist/Countdown/Countdown.d.ts +1 -1
- package/dist/Countdown/Countdown.js +39 -29
- package/dist/Countdown/__tests__/fixtures/A11yDemos.d.ts +14 -15
- package/dist/Countdown/__tests__/fixtures/A11yDemos.js +37 -23
- package/dist/DatePicker/DatePicker.d.ts +1 -1
- package/dist/DatePicker/DatePicker.js +3 -2
- package/dist/DesktopDatePicker/DesktopDatePicker.d.ts +1 -1
- package/dist/DesktopDatePicker/DesktopDatePicker.js +45 -40
- package/dist/DesktopDatePicker/useGetDatePickerContent.d.ts +1 -2
- package/dist/DesktopDatePicker/useGetDatePickerContent.js +48 -41
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +1 -1
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.js +57 -51
- package/dist/DesktopPicker/DesktopPicker.d.ts +1 -1
- package/dist/DesktopPicker/DesktopPicker.js +36 -25
- package/dist/DesktopTimePicker/DesktopTimePicker.d.ts +1 -1
- package/dist/DesktopTimePicker/DesktopTimePicker.js +46 -41
- package/dist/DesktopTimePicker/DesktopTimePickerList.js +21 -20
- package/dist/DesktopTimePicker/useGetTimePickerContent.d.ts +1 -2
- package/dist/DesktopTimePicker/useGetTimePickerContent.js +9 -8
- package/dist/Dialog/Dialog.js +48 -39
- package/dist/Dialog/FunctionalDialog.js +8 -8
- package/dist/Dialog/__tests__/fixtures/A11yDemos.d.ts +3 -4
- package/dist/Dialog/__tests__/fixtures/A11yDemos.js +4 -4
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/Divider.js +9 -4
- package/dist/Drawer/Drawer.js +28 -25
- package/dist/Drawer/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/dist/Drawer/__tests__/fixtures/A11yDemos.js +88 -35
- package/dist/Fade/Fade.js +23 -22
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/IconButton.js +14 -9
- package/dist/Image/Image.d.ts +1 -1
- package/dist/Image/Image.js +15 -10
- package/dist/Image/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/dist/Image/__tests__/fixtures/A11yDemos.js +29 -25
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/Input.js +28 -24
- package/dist/Input/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/dist/Input/__tests__/fixtures/A11yDemos.js +31 -13
- package/dist/ItemSelector/ItemSelector.d.ts +1 -1
- package/dist/ItemSelector/ItemSelector.js +2 -1
- package/dist/ItemSelector/ItemSelector.miniapp.d.ts +1 -1
- package/dist/ItemSelector/ItemSelector.miniapp.js +2 -1
- package/dist/ItemSelector/ItemSelectorCore.js +82 -68
- package/dist/ItemSelector/Selector/index.d.ts +1 -1
- package/dist/ItemSelector/Selector/index.js +5 -15
- package/dist/List/List.d.ts +1 -1
- package/dist/List/List.js +14 -7
- package/dist/List/ListItem.d.ts +1 -1
- package/dist/List/ListItem.js +14 -7
- package/dist/List/ListItemContent.d.ts +1 -1
- package/dist/List/ListItemContent.js +8 -1
- package/dist/List/ListItemExtra.d.ts +1 -1
- package/dist/List/ListItemExtra.js +5 -1
- package/dist/List/ListItemFooter.d.ts +1 -1
- package/dist/List/ListItemFooter.js +5 -1
- package/dist/List/ListItemHeader.d.ts +1 -1
- package/dist/List/ListItemHeader.js +5 -1
- package/dist/Loading/Loading.d.ts +1 -1
- package/dist/Loading/Loading.js +13 -6
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +5 -1
- package/dist/Modal/Modal.miniapp.d.ts +2 -4
- package/dist/Modal/Modal.miniapp.js +9 -6
- package/dist/Modal/__tests__/fixtures/A11yDemos.d.ts +2 -3
- package/dist/Modal/__tests__/fixtures/A11yDemos.js +7 -7
- package/dist/NavBar/NavBar.d.ts +1 -1
- package/dist/NavBar/NavBar.js +24 -11
- package/dist/Picker/Picker.d.ts +1 -1
- package/dist/Picker/Picker.js +63 -57
- package/dist/Picker/PickerPanel.d.ts +1 -1
- package/dist/Picker/PickerPanel.js +44 -37
- package/dist/Picker/__tests__/fixtures/A11yDemos.d.ts +1 -2
- package/dist/Picker/__tests__/fixtures/A11yDemos.js +2 -2
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/Popover.js +65 -52
- package/dist/Popover/__tests__/fixtures/A11yDemos.d.ts +16 -17
- package/dist/Popover/__tests__/fixtures/A11yDemos.js +62 -50
- package/dist/Popover/hooks/usePopoverPosition.js +1 -1
- package/dist/Portal/Portal.js +2 -1
- package/dist/Portal/Portal.miniapp.js +3 -2
- package/dist/Progress/Progress.d.ts +1 -1
- package/dist/Progress/Progress.js +9 -4
- package/dist/Progress/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/dist/Progress/__tests__/fixtures/A11yDemos.js +51 -30
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/Radio/Radio.js +25 -22
- package/dist/Radio/RadioButtonIcon.d.ts +1 -2
- package/dist/Radio/RadioButtonIcon.js +24 -22
- package/dist/Radio/RadioGroup.d.ts +1 -1
- package/dist/Radio/RadioGroup.js +9 -5
- package/dist/Radio/__tests__/fixtures/A11yDemos.d.ts +6 -7
- package/dist/Radio/__tests__/fixtures/A11yDemos.js +10 -4
- package/dist/Rating/Rating.d.ts +1 -1
- package/dist/Rating/Rating.js +42 -33
- package/dist/ScrollView/ScrollView.d.ts +1 -1
- package/dist/ScrollView/ScrollView.js +3 -2
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.js +205 -168
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/Select.js +87 -78
- package/dist/Select/SelectOption.d.ts +1 -1
- package/dist/Select/SelectOption.js +5 -4
- package/dist/Select/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/dist/Select/__tests__/fixtures/A11yDemos.js +76 -46
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/Skeleton.js +9 -4
- package/dist/Slide/Slide.js +25 -24
- package/dist/Slider/Slider.d.ts +1 -1
- package/dist/Slider/Slider.js +34 -27
- package/dist/Stack/Stack.d.ts +1 -1
- package/dist/Stack/Stack.js +17 -9
- package/dist/Stack/demo/StackDemo.d.ts +1 -2
- package/dist/Stack/demo/StackDemo.js +114 -101
- package/dist/Steps/Step.d.ts +1 -1
- package/dist/Steps/Step.js +56 -44
- package/dist/Steps/Steps.d.ts +1 -1
- package/dist/Steps/Steps.js +23 -17
- package/dist/SwipeAction/SwipeAction.d.ts +1 -1
- package/dist/SwipeAction/SwipeAction.js +55 -46
- package/dist/SwipeAction/SwipeActionItem.d.ts +1 -1
- package/dist/SwipeAction/SwipeActionItem.js +9 -4
- package/dist/Swiper/Swiper.d.ts +1 -1
- package/dist/Swiper/Swiper.js +7 -6
- package/dist/Swiper/SwiperItem.d.ts +1 -2
- package/dist/Swiper/SwiperItem.js +5 -2
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/Switch.js +22 -18
- package/dist/Switch/__tests__/fixtures/A11yDemos.d.ts +6 -7
- package/dist/Switch/__tests__/fixtures/A11yDemos.js +10 -4
- package/dist/Switch/index.css +11 -11
- package/dist/TabBar/TabBar.d.ts +1 -1
- package/dist/TabBar/TabBar.js +14 -10
- package/dist/TabBar/TabBarItem.d.ts +1 -1
- package/dist/TabBar/TabBarItem.js +31 -20
- package/dist/Tabs/Tab.d.ts +1 -1
- package/dist/Tabs/Tab.js +5 -4
- package/dist/Tabs/TabIndicator.js +3 -2
- package/dist/Tabs/TabMask.js +2 -1
- package/dist/Tabs/TabPanel.d.ts +1 -1
- package/dist/Tabs/TabPanel.js +10 -5
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/Tabs/Tabs.js +26 -17
- package/dist/Tabs/miniapp/Tab.d.ts +1 -1
- package/dist/Tabs/miniapp/Tab.js +5 -4
- package/dist/Tabs/miniapp/TabIndicator.js +3 -2
- package/dist/Tabs/miniapp/Tabs.d.ts +1 -1
- package/dist/Tabs/miniapp/Tabs.js +33 -23
- package/dist/Tag/Tag.d.ts +1 -1
- package/dist/Tag/Tag.js +9 -4
- package/dist/Tag/TagGroup.d.ts +1 -1
- package/dist/Tag/TagGroup.js +9 -4
- package/dist/Tag/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/dist/Tag/__tests__/fixtures/A11yDemos.js +121 -83
- package/dist/TextArea/TextArea.d.ts +1 -1
- package/dist/TextArea/TextArea.js +40 -36
- package/dist/TextArea/__tests__/fixtures/A11yDemos.d.ts +10 -11
- package/dist/TextArea/__tests__/fixtures/A11yDemos.js +18 -15
- package/dist/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/ThemeProvider/ThemeProvider.js +3 -2
- package/dist/Toast/FunctionalToast.js +11 -11
- package/dist/Toast/Toast.js +38 -32
- package/dist/Toast/__tests__/fixtures/A11yDemos.d.ts +1 -2
- package/dist/Toast/__tests__/fixtures/A11yDemos.js +5 -5
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Tooltip/Tooltip.js +13 -6
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.d.ts +16 -17
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.js +51 -18
- package/dist/Tooltip/useTooltip.js +1 -1
- package/dist/Transition/Transition.js +2 -1
- package/dist/Transition/Transition.miniapp.js +2 -1
- package/dist/Transition/TransitionCore.js +8 -2
- package/dist/TransitionGroup/TransitionGroup.d.ts +1 -2
- package/dist/TransitionGroup/TransitionGroup.js +3 -2
- package/dist/TransitionGroup/demo/TransitionGroupDemo.d.ts +1 -2
- package/dist/TransitionGroup/demo/TransitionGroupDemo.js +24 -27
- package/dist/_.._/benchmarks/components/Button.js +2 -12
- package/dist/_.._/benchmarks/components/Input.js +3 -12
- package/dist/_.._/benchmarks/components/Tabs.js +8 -12
- package/es/ActionSheet/ActionSheet.js +18 -8
- package/es/ActionSheet/ActionSheetItem.d.ts +1 -1
- package/es/ActionSheet/ActionSheetItem.js +12 -5
- package/es/Alert/Alert.d.ts +1 -1
- package/es/Alert/Alert.js +36 -34
- package/es/Alert/__tests__/fixtures/A11yDemos.d.ts +8 -9
- package/es/Alert/__tests__/fixtures/A11yDemos.js +60 -54
- package/es/Avatar/Avatar.d.ts +1 -1
- package/es/Avatar/Avatar.js +11 -9
- package/es/Avatar/AvatarGroup.d.ts +1 -1
- package/es/Avatar/AvatarGroup.js +10 -6
- package/es/Backdrop/Backdrop.d.ts +1 -1
- package/es/Backdrop/Backdrop.js +9 -5
- package/es/Backdrop/__tests__/fixtures/A11yDemos.d.ts +4 -5
- package/es/Backdrop/__tests__/fixtures/A11yDemos.js +3 -3
- package/es/Badge/Badge.d.ts +1 -1
- package/es/Badge/Badge.js +23 -15
- package/es/Badge/__tests__/fixtures/A11yDemos.d.ts +16 -17
- package/es/Badge/__tests__/fixtures/A11yDemos.js +60 -27
- package/es/Badge/index.css +3 -3
- package/es/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/es/Breadcrumb/Breadcrumb.js +19 -10
- package/es/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/es/Breadcrumb/BreadcrumbItem.js +18 -10
- package/es/Button/Button.d.ts +1 -1
- package/es/Button/Button.js +14 -7
- package/es/Button/__tests__/fixtures/A11yDemos.d.ts +14 -15
- package/es/Button/__tests__/fixtures/A11yDemos.js +32 -8
- package/es/CSSTransition/CSSTransition.js +2 -1
- package/es/CSSTransition/demo/CSSTransitionDemo.d.ts +1 -2
- package/es/CSSTransition/demo/CSSTransitionDemo.js +28 -25
- package/es/Calendar/Calendar.d.ts +1 -1
- package/es/Calendar/Calendar.js +67 -59
- package/es/Calendar/__tests__/fixtures/A11yDemos.d.ts +1 -2
- package/es/Calendar/__tests__/fixtures/A11yDemos.js +2 -2
- package/es/Card/Card.d.ts +1 -1
- package/es/Card/Card.js +9 -4
- package/es/Card/CardContent.d.ts +1 -1
- package/es/Card/CardContent.js +5 -1
- package/es/Card/CardFooter.d.ts +1 -1
- package/es/Card/CardFooter.js +5 -1
- package/es/Card/CardHeader.d.ts +1 -1
- package/es/Card/CardHeader.js +16 -9
- package/es/Checkbox/Checkbox.d.ts +1 -1
- package/es/Checkbox/Checkbox.js +30 -23
- package/es/Checkbox/CheckboxGroup.d.ts +1 -1
- package/es/Checkbox/CheckboxGroup.js +9 -5
- package/es/Checkbox/__tests__/fixtures/A11yDemos.d.ts +6 -7
- package/es/Checkbox/__tests__/fixtures/A11yDemos.js +10 -4
- package/es/Checkbox/index.css +4 -4
- package/es/CitySelector/CitySelector.d.ts +1 -1
- package/es/CitySelector/CitySelector.js +2 -1
- package/es/CitySelector/CitySelector.miniapp.d.ts +1 -1
- package/es/CitySelector/CitySelector.miniapp.js +2 -1
- package/es/CitySelector/CitySelectorCore.js +83 -61
- package/es/CitySelector/Selector/index.d.ts +1 -1
- package/es/CitySelector/Selector/index.js +5 -5
- package/es/Collapse/Collapse.js +51 -50
- package/es/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanel.js +10 -8
- package/es/CollapsePanel/CollapsePanelItem.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanelItem.js +27 -17
- package/es/Countdown/Countdown.d.ts +1 -1
- package/es/Countdown/Countdown.js +39 -29
- package/es/Countdown/__tests__/fixtures/A11yDemos.d.ts +14 -15
- package/es/Countdown/__tests__/fixtures/A11yDemos.js +37 -23
- package/es/DatePicker/DatePicker.d.ts +1 -1
- package/es/DatePicker/DatePicker.js +3 -2
- package/es/DesktopDatePicker/DesktopDatePicker.d.ts +1 -1
- package/es/DesktopDatePicker/DesktopDatePicker.js +45 -40
- package/es/DesktopDatePicker/useGetDatePickerContent.d.ts +1 -2
- package/es/DesktopDatePicker/useGetDatePickerContent.js +48 -41
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +1 -1
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.js +57 -51
- package/es/DesktopPicker/DesktopPicker.d.ts +1 -1
- package/es/DesktopPicker/DesktopPicker.js +36 -25
- package/es/DesktopTimePicker/DesktopTimePicker.d.ts +1 -1
- package/es/DesktopTimePicker/DesktopTimePicker.js +46 -41
- package/es/DesktopTimePicker/DesktopTimePickerList.js +21 -20
- package/es/DesktopTimePicker/useGetTimePickerContent.d.ts +1 -2
- package/es/DesktopTimePicker/useGetTimePickerContent.js +9 -8
- package/es/Dialog/Dialog.js +48 -39
- package/es/Dialog/FunctionalDialog.js +8 -8
- package/es/Dialog/__tests__/fixtures/A11yDemos.d.ts +3 -4
- package/es/Dialog/__tests__/fixtures/A11yDemos.js +4 -4
- package/es/Divider/Divider.d.ts +1 -1
- package/es/Divider/Divider.js +9 -4
- package/es/Drawer/Drawer.js +28 -25
- package/es/Drawer/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/es/Drawer/__tests__/fixtures/A11yDemos.js +88 -35
- package/es/Fade/Fade.js +23 -22
- package/es/IconButton/IconButton.d.ts +1 -1
- package/es/IconButton/IconButton.js +14 -9
- package/es/Image/Image.d.ts +1 -1
- package/es/Image/Image.js +15 -10
- package/es/Image/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/es/Image/__tests__/fixtures/A11yDemos.js +29 -25
- package/es/Input/Input.d.ts +1 -1
- package/es/Input/Input.js +28 -24
- package/es/Input/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/es/Input/__tests__/fixtures/A11yDemos.js +31 -13
- package/es/ItemSelector/ItemSelector.d.ts +1 -1
- package/es/ItemSelector/ItemSelector.js +2 -1
- package/es/ItemSelector/ItemSelector.miniapp.d.ts +1 -1
- package/es/ItemSelector/ItemSelector.miniapp.js +2 -1
- package/es/ItemSelector/ItemSelectorCore.js +82 -68
- package/es/ItemSelector/Selector/index.d.ts +1 -1
- package/es/ItemSelector/Selector/index.js +5 -5
- package/es/List/List.d.ts +1 -1
- package/es/List/List.js +14 -7
- package/es/List/ListItem.d.ts +1 -1
- package/es/List/ListItem.js +14 -7
- package/es/List/ListItemContent.d.ts +1 -1
- package/es/List/ListItemContent.js +8 -1
- package/es/List/ListItemExtra.d.ts +1 -1
- package/es/List/ListItemExtra.js +5 -1
- package/es/List/ListItemFooter.d.ts +1 -1
- package/es/List/ListItemFooter.js +5 -1
- package/es/List/ListItemHeader.d.ts +1 -1
- package/es/List/ListItemHeader.js +5 -1
- package/es/Loading/Loading.d.ts +1 -1
- package/es/Loading/Loading.js +13 -6
- package/es/Modal/Modal.d.ts +1 -1
- package/es/Modal/Modal.js +5 -1
- package/es/Modal/Modal.miniapp.d.ts +2 -4
- package/es/Modal/Modal.miniapp.js +9 -6
- package/es/Modal/__tests__/fixtures/A11yDemos.d.ts +2 -3
- package/es/Modal/__tests__/fixtures/A11yDemos.js +7 -7
- package/es/NavBar/NavBar.d.ts +1 -1
- package/es/NavBar/NavBar.js +24 -11
- package/es/Picker/Picker.d.ts +1 -1
- package/es/Picker/Picker.js +63 -57
- package/es/Picker/PickerPanel.d.ts +1 -1
- package/es/Picker/PickerPanel.js +44 -37
- package/es/Picker/__tests__/fixtures/A11yDemos.d.ts +1 -2
- package/es/Picker/__tests__/fixtures/A11yDemos.js +2 -2
- package/es/Popover/Popover.d.ts +1 -1
- package/es/Popover/Popover.js +65 -52
- package/es/Popover/__tests__/fixtures/A11yDemos.d.ts +16 -17
- package/es/Popover/__tests__/fixtures/A11yDemos.js +62 -50
- package/es/Popover/hooks/usePopoverPosition.js +1 -1
- package/es/Portal/Portal.js +2 -1
- package/es/Portal/Portal.miniapp.js +3 -2
- package/es/Progress/Progress.d.ts +1 -1
- package/es/Progress/Progress.js +9 -4
- package/es/Progress/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/es/Progress/__tests__/fixtures/A11yDemos.js +51 -30
- package/es/Radio/Radio.d.ts +1 -1
- package/es/Radio/Radio.js +25 -22
- package/es/Radio/RadioButtonIcon.d.ts +1 -2
- package/es/Radio/RadioButtonIcon.js +24 -22
- package/es/Radio/RadioGroup.d.ts +1 -1
- package/es/Radio/RadioGroup.js +9 -5
- package/es/Radio/__tests__/fixtures/A11yDemos.d.ts +6 -7
- package/es/Radio/__tests__/fixtures/A11yDemos.js +10 -4
- package/es/Rating/Rating.d.ts +1 -1
- package/es/Rating/Rating.js +42 -33
- package/es/ScrollView/ScrollView.d.ts +1 -1
- package/es/ScrollView/ScrollView.js +3 -2
- package/es/ScrollView/__tests__/fixtures/A11yDemos.js +205 -168
- package/es/Select/Select.d.ts +1 -1
- package/es/Select/Select.js +87 -78
- package/es/Select/SelectOption.d.ts +1 -1
- package/es/Select/SelectOption.js +5 -4
- package/es/Select/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/es/Select/__tests__/fixtures/A11yDemos.js +76 -46
- package/es/Skeleton/Skeleton.d.ts +1 -1
- package/es/Skeleton/Skeleton.js +9 -4
- package/es/Slide/Slide.js +25 -24
- package/es/Slider/Slider.d.ts +1 -1
- package/es/Slider/Slider.js +34 -27
- package/es/Stack/Stack.d.ts +1 -1
- package/es/Stack/Stack.js +17 -9
- package/es/Stack/demo/StackDemo.d.ts +1 -2
- package/es/Stack/demo/StackDemo.js +114 -91
- package/es/Steps/Step.d.ts +1 -1
- package/es/Steps/Step.js +56 -44
- package/es/Steps/Steps.d.ts +1 -1
- package/es/Steps/Steps.js +23 -17
- package/es/SwipeAction/SwipeAction.d.ts +1 -1
- package/es/SwipeAction/SwipeAction.js +55 -46
- package/es/SwipeAction/SwipeActionItem.d.ts +1 -1
- package/es/SwipeAction/SwipeActionItem.js +9 -4
- package/es/Swiper/Swiper.d.ts +1 -1
- package/es/Swiper/Swiper.js +7 -6
- package/es/Swiper/SwiperItem.d.ts +1 -2
- package/es/Swiper/SwiperItem.js +5 -2
- package/es/Switch/Switch.d.ts +1 -1
- package/es/Switch/Switch.js +22 -18
- package/es/Switch/__tests__/fixtures/A11yDemos.d.ts +6 -7
- package/es/Switch/__tests__/fixtures/A11yDemos.js +10 -4
- package/es/Switch/index.css +11 -11
- package/es/TabBar/TabBar.d.ts +1 -1
- package/es/TabBar/TabBar.js +14 -10
- package/es/TabBar/TabBarItem.d.ts +1 -1
- package/es/TabBar/TabBarItem.js +31 -20
- package/es/Tabs/Tab.d.ts +1 -1
- package/es/Tabs/Tab.js +5 -4
- package/es/Tabs/TabIndicator.js +3 -2
- package/es/Tabs/TabMask.js +2 -1
- package/es/Tabs/TabPanel.d.ts +1 -1
- package/es/Tabs/TabPanel.js +10 -5
- package/es/Tabs/Tabs.d.ts +1 -1
- package/es/Tabs/Tabs.js +26 -17
- package/es/Tabs/miniapp/Tab.d.ts +1 -1
- package/es/Tabs/miniapp/Tab.js +5 -4
- package/es/Tabs/miniapp/TabIndicator.js +3 -2
- package/es/Tabs/miniapp/Tabs.d.ts +1 -1
- package/es/Tabs/miniapp/Tabs.js +33 -23
- package/es/Tag/Tag.d.ts +1 -1
- package/es/Tag/Tag.js +9 -4
- package/es/Tag/TagGroup.d.ts +1 -1
- package/es/Tag/TagGroup.js +9 -4
- package/es/Tag/__tests__/fixtures/A11yDemos.d.ts +12 -13
- package/es/Tag/__tests__/fixtures/A11yDemos.js +121 -83
- package/es/TextArea/TextArea.d.ts +1 -1
- package/es/TextArea/TextArea.js +40 -36
- package/es/TextArea/__tests__/fixtures/A11yDemos.d.ts +10 -11
- package/es/TextArea/__tests__/fixtures/A11yDemos.js +18 -15
- package/es/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/es/ThemeProvider/ThemeProvider.js +3 -2
- package/es/Toast/FunctionalToast.js +11 -11
- package/es/Toast/Toast.js +38 -32
- package/es/Toast/__tests__/fixtures/A11yDemos.d.ts +1 -2
- package/es/Toast/__tests__/fixtures/A11yDemos.js +5 -5
- package/es/Tooltip/Tooltip.d.ts +1 -1
- package/es/Tooltip/Tooltip.js +13 -6
- package/es/Tooltip/__tests__/fixtures/A11yDemos.d.ts +16 -17
- package/es/Tooltip/__tests__/fixtures/A11yDemos.js +51 -18
- package/es/Tooltip/useTooltip.js +1 -1
- package/es/Transition/Transition.js +2 -1
- package/es/Transition/Transition.miniapp.js +2 -1
- package/es/Transition/TransitionCore.js +8 -2
- package/es/TransitionGroup/TransitionGroup.d.ts +1 -2
- package/es/TransitionGroup/TransitionGroup.js +3 -2
- package/es/TransitionGroup/demo/TransitionGroupDemo.d.ts +1 -2
- package/es/TransitionGroup/demo/TransitionGroupDemo.js +24 -17
- package/es/_.._/benchmarks/components/Button.js +2 -2
- package/es/_.._/benchmarks/components/Input.js +3 -2
- package/es/_.._/benchmarks/components/Tabs.js +8 -2
- package/package.json +17 -11
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
/**
|
|
3
2
|
* 自定义 Input 组件 Demo 集合
|
|
4
3
|
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
4
|
* 文件名必须是 customDemoComponent.tsx(固定约定)
|
|
6
5
|
*/
|
|
7
|
-
export declare const basicInputDemo: () =>
|
|
8
|
-
export declare const disabledInputDemo: () =>
|
|
9
|
-
export declare const requiredInputDemo: () =>
|
|
10
|
-
export declare const readOnlyInputDemo: () =>
|
|
11
|
-
export declare const placeholderInputDemo: () =>
|
|
12
|
-
export declare const ariaLabelInputDemo: () =>
|
|
6
|
+
export declare const basicInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const disabledInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const requiredInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const readOnlyInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const placeholderInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ariaLabelInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
declare const _default: {
|
|
14
|
-
basicInputDemo: () =>
|
|
15
|
-
disabledInputDemo: () =>
|
|
16
|
-
requiredInputDemo: () =>
|
|
17
|
-
readOnlyInputDemo: () =>
|
|
18
|
-
placeholderInputDemo: () =>
|
|
19
|
-
ariaLabelInputDemo: () =>
|
|
13
|
+
basicInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
disabledInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
requiredInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
readOnlyInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
placeholderInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
ariaLabelInputDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
};
|
|
21
20
|
export default _default;
|
|
@@ -36,31 +36,49 @@ __export(A11yDemos_exports, {
|
|
|
36
36
|
requiredInputDemo: () => requiredInputDemo
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(A11yDemos_exports);
|
|
39
|
-
var
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
40
|
var import_Input = __toESM(require("../../Input"));
|
|
41
41
|
const basicInputDemo = () => {
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { children: [
|
|
43
|
+
"First name: ",
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Input.default, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9" })
|
|
45
|
+
] }) });
|
|
43
46
|
};
|
|
44
47
|
const disabledInputDemo = () => {
|
|
45
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { children: [
|
|
49
|
+
"First name:",
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Input.default, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9", disabled: true })
|
|
51
|
+
] }) });
|
|
46
52
|
};
|
|
47
53
|
const requiredInputDemo = () => {
|
|
48
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { children: [
|
|
55
|
+
"First name:",
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Input.default, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9", inputProps: { required: true } })
|
|
57
|
+
] }) });
|
|
49
58
|
};
|
|
50
59
|
const readOnlyInputDemo = () => {
|
|
51
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { children: [
|
|
61
|
+
"First name:",
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Input.default, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9", inputProps: { readOnly: true } })
|
|
63
|
+
] }) });
|
|
52
64
|
};
|
|
53
65
|
const placeholderInputDemo = () => {
|
|
54
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { children: [
|
|
67
|
+
"First name:",
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Input.default, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9" })
|
|
69
|
+
] }) });
|
|
55
70
|
};
|
|
56
71
|
const ariaLabelInputDemo = () => {
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { children: [
|
|
73
|
+
"First name:",
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
75
|
+
import_Input.default,
|
|
76
|
+
{
|
|
77
|
+
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9",
|
|
78
|
+
inputProps: { "aria-label": "\u8F93\u5165\u6846" }
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] }) });
|
|
64
82
|
};
|
|
65
83
|
var A11yDemos_default = {
|
|
66
84
|
basicInputDemo,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ItemSelectorProps } from './ItemSelector.types';
|
|
3
|
-
declare const ItemSelector: React.ForwardRefExoticComponent<Omit<ItemSelectorProps
|
|
3
|
+
declare const ItemSelector: React.ForwardRefExoticComponent<Omit<ItemSelectorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default ItemSelector;
|
|
@@ -47,6 +47,7 @@ __export(ItemSelector_exports, {
|
|
|
47
47
|
default: () => ItemSelector_default
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(ItemSelector_exports);
|
|
50
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
51
|
var import_react = __toESM(require("react"));
|
|
51
52
|
var import_ItemSelectorCore = __toESM(require("./ItemSelectorCore"));
|
|
52
53
|
const ItemSelector = /* @__PURE__ */ import_react.default.forwardRef(
|
|
@@ -70,7 +71,7 @@ const ItemSelector = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
70
71
|
const domHeight = (_a = document.querySelector(".bui-item-selector-scroll-view-container")) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
71
72
|
setHeight(`${domHeight / screenHeight * 100}vh`);
|
|
72
73
|
}, [items]);
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
75
|
import_ItemSelectorCore.default,
|
|
75
76
|
__spreadProps(__spreadValues({}, props), {
|
|
76
77
|
ref,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ItemSelectorProps } from './ItemSelector.types';
|
|
3
|
-
declare const ItemSelector: React.ForwardRefExoticComponent<Omit<ItemSelectorProps
|
|
3
|
+
declare const ItemSelector: React.ForwardRefExoticComponent<Omit<ItemSelectorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default ItemSelector;
|
|
@@ -47,6 +47,7 @@ __export(ItemSelector_miniapp_exports, {
|
|
|
47
47
|
default: () => ItemSelector_miniapp_default
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(ItemSelector_miniapp_exports);
|
|
50
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
51
|
var import_react = __toESM(require("react"));
|
|
51
52
|
var import_taro = __toESM(require("@tarojs/taro"));
|
|
52
53
|
var import_ItemSelectorCore = __toESM(require("./ItemSelectorCore"));
|
|
@@ -112,7 +113,7 @@ const ItemSelector = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
112
113
|
pxToCode(clientY, scrollToCode, codeGroup);
|
|
113
114
|
});
|
|
114
115
|
};
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
116
117
|
import_ItemSelectorCore.default,
|
|
117
118
|
__spreadProps(__spreadValues({}, props), {
|
|
118
119
|
ref,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
20
|
}
|
|
19
21
|
return a;
|
|
20
22
|
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
24
|
var __objRest = (source, exclude) => {
|
|
22
25
|
var target = {};
|
|
23
26
|
for (var prop in source)
|
|
@@ -56,6 +59,7 @@ __export(ItemSelectorCore_exports, {
|
|
|
56
59
|
default: () => ItemSelectorCore_default
|
|
57
60
|
});
|
|
58
61
|
module.exports = __toCommonJS(ItemSelectorCore_exports);
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
63
|
var import_react = __toESM(require("react"));
|
|
60
64
|
var import_clsx = __toESM(require("clsx"));
|
|
61
65
|
var import_utils = require("@bifrostui/utils");
|
|
@@ -96,13 +100,13 @@ const ItemSelector = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
96
100
|
const getIdxCode = (item) => typeof item.indexCode === "string" ? item.indexCode : getIdxName(item);
|
|
97
101
|
const renderTitle = (item) => {
|
|
98
102
|
const title = getGroupName(item);
|
|
99
|
-
return title ? /* @__PURE__ */
|
|
103
|
+
return title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
100
104
|
"div",
|
|
101
105
|
{
|
|
102
106
|
className: "select-item-title",
|
|
103
|
-
id: disableIndex ? "" : getIdxCode(item)
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
id: disableIndex ? "" : getIdxCode(item),
|
|
108
|
+
children: title
|
|
109
|
+
}
|
|
106
110
|
) : null;
|
|
107
111
|
};
|
|
108
112
|
(0, import_react.useEffect)(() => {
|
|
@@ -147,70 +151,80 @@ const ItemSelector = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
147
151
|
const closeHandler = (e) => {
|
|
148
152
|
onClose == null ? void 0 : onClose(e);
|
|
149
153
|
};
|
|
150
|
-
return /* @__PURE__ */
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
item
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", __spreadProps(__spreadValues({ className: (0, import_clsx.default)(prefixCls, className), ref: nodeRef }, others), { children: [
|
|
155
|
+
pageTitle ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefixCls}-title`, children: [
|
|
156
|
+
pageTitle,
|
|
157
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-btn-close`, onClick: closeHandler, children: "\u2715" })
|
|
158
|
+
] }) : null,
|
|
159
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
160
|
+
import_ScrollView.default,
|
|
161
|
+
{
|
|
162
|
+
scrollIntoView: targetId,
|
|
163
|
+
scrollY: true,
|
|
164
|
+
className: (0, import_clsx.default)(`${prefixCls}-scroll-view-container tph`, {
|
|
165
|
+
"container-has-title": pageTitle
|
|
166
|
+
}),
|
|
167
|
+
onScroll: scrollHandler,
|
|
168
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-all-item`, children: (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-list-container`, children: items.map((item, itemGroupIndex) => {
|
|
169
|
+
if (!(item == null ? void 0 : item.groupName))
|
|
170
|
+
return null;
|
|
171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
172
|
+
renderTitle(item),
|
|
173
|
+
item.isFlat ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "select-item-buttons", children: item.items.map((it, index) => {
|
|
174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
175
|
+
import_Selector.default,
|
|
176
|
+
{
|
|
177
|
+
item: it,
|
|
178
|
+
onSelect: (e) => {
|
|
179
|
+
onSelect(e, { item: it, group: item });
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
index
|
|
183
|
+
);
|
|
184
|
+
}) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: `${prefixCls}-list`, children: item.items.map((it, itemIndex) => {
|
|
185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
186
|
+
"li",
|
|
187
|
+
{
|
|
188
|
+
className: `${prefixCls}-list-item`,
|
|
189
|
+
onClick: (e) => {
|
|
190
|
+
onSelect(e, { item: it, group: item });
|
|
191
|
+
},
|
|
192
|
+
children: it.name
|
|
193
|
+
},
|
|
194
|
+
itemIndex
|
|
195
|
+
);
|
|
196
|
+
}) })
|
|
197
|
+
] }, itemGroupIndex);
|
|
198
|
+
}) }) : null })
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
(codeGroup == null ? void 0 : codeGroup.length) > 0 && height ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
202
|
+
"div",
|
|
203
|
+
{
|
|
204
|
+
className: (0, import_clsx.default)(`${prefixCls}-index-container`, {
|
|
205
|
+
"left-in": codeShow,
|
|
206
|
+
"item-index-has-title": pageTitle
|
|
207
|
+
}),
|
|
208
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { onTouchMove: touchCbk, className: `${prefixCls}-index-list`, children: codeGroup.map((item, idx) => {
|
|
209
|
+
return item.name ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
210
|
+
"li",
|
|
211
|
+
{
|
|
212
|
+
className: `${prefixCls}-index-item`,
|
|
213
|
+
"data-code": item.code,
|
|
214
|
+
onClick: () => {
|
|
215
|
+
codeClickHandler(item.code);
|
|
216
|
+
},
|
|
217
|
+
style: {
|
|
218
|
+
maxHeight: `calc((${height} - ${DEVIATION_HEIGHT}) / ${codeGroup.length})`
|
|
219
|
+
},
|
|
220
|
+
children: item.name
|
|
221
|
+
},
|
|
222
|
+
idx
|
|
223
|
+
) : null;
|
|
224
|
+
}) })
|
|
225
|
+
}
|
|
226
|
+
) : null
|
|
227
|
+
] }));
|
|
214
228
|
}
|
|
215
229
|
);
|
|
216
230
|
ItemSelector.displayName = "BuiItemSelector";
|
|
@@ -5,5 +5,5 @@ type propsType = {
|
|
|
5
5
|
item: itemType;
|
|
6
6
|
onSelect: (e: React.SyntheticEvent, item: itemType) => void;
|
|
7
7
|
};
|
|
8
|
-
declare const Selector: (props: propsType) =>
|
|
8
|
+
declare const Selector: (props: propsType) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default Selector;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all)
|
|
@@ -16,33 +14,25 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
14
|
}
|
|
17
15
|
return to;
|
|
18
16
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
18
|
var Selector_exports = {};
|
|
29
19
|
__export(Selector_exports, {
|
|
30
20
|
default: () => Selector_default
|
|
31
21
|
});
|
|
32
22
|
module.exports = __toCommonJS(Selector_exports);
|
|
33
|
-
var
|
|
23
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
24
|
var import_index = require("./index.css");
|
|
35
25
|
const Selector = (props) => {
|
|
36
26
|
const { item, onSelect } = props;
|
|
37
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
38
28
|
"span",
|
|
39
29
|
{
|
|
40
30
|
className: "bui-item-selector-item",
|
|
41
31
|
onClick: (e) => {
|
|
42
32
|
onSelect == null ? void 0 : onSelect(e, item);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
},
|
|
34
|
+
children: item.name
|
|
35
|
+
}
|
|
46
36
|
);
|
|
47
37
|
};
|
|
48
38
|
var Selector_default = Selector;
|
package/dist/List/List.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ListProps } from './List.types';
|
|
3
3
|
import './List.less';
|
|
4
|
-
declare const List: React.ForwardRefExoticComponent<Omit<ListProps
|
|
4
|
+
declare const List: React.ForwardRefExoticComponent<Omit<ListProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
export default List;
|
package/dist/List/List.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
20
|
}
|
|
19
21
|
return a;
|
|
20
22
|
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
24
|
var __objRest = (source, exclude) => {
|
|
22
25
|
var target = {};
|
|
23
26
|
for (var prop in source)
|
|
@@ -56,6 +59,7 @@ __export(List_exports, {
|
|
|
56
59
|
default: () => List_default
|
|
57
60
|
});
|
|
58
61
|
module.exports = __toCommonJS(List_exports);
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
63
|
var import_clsx = __toESM(require("clsx"));
|
|
60
64
|
var React = __toESM(require("react"));
|
|
61
65
|
var import_ListContext = __toESM(require("./ListContext"));
|
|
@@ -84,16 +88,19 @@ const List = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
84
88
|
hideDivider
|
|
85
89
|
};
|
|
86
90
|
}, [hideDivider]);
|
|
87
|
-
return /* @__PURE__ */
|
|
91
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ListContext.default.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
88
92
|
Component,
|
|
89
|
-
__spreadValues({
|
|
93
|
+
__spreadProps(__spreadValues({
|
|
90
94
|
className: (0, import_clsx.default)(prefixCls, className, `${prefixCls}-${size}`),
|
|
91
95
|
ref
|
|
92
|
-
}, others),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
}, others), {
|
|
97
|
+
children: [
|
|
98
|
+
header,
|
|
99
|
+
subheader,
|
|
100
|
+
children
|
|
101
|
+
]
|
|
102
|
+
})
|
|
103
|
+
) });
|
|
97
104
|
});
|
|
98
105
|
List.displayName = "BuiList";
|
|
99
106
|
var List_default = List;
|
package/dist/List/ListItem.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ListItemProps } from './ListItem.types';
|
|
3
3
|
import './ListItem.less';
|
|
4
|
-
declare const ListItem: React.ForwardRefExoticComponent<Omit<ListItemProps
|
|
4
|
+
declare const ListItem: React.ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
export default ListItem;
|
package/dist/List/ListItem.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
20
|
}
|
|
19
21
|
return a;
|
|
20
22
|
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
24
|
var __objRest = (source, exclude) => {
|
|
22
25
|
var target = {};
|
|
23
26
|
for (var prop in source)
|
|
@@ -56,6 +59,7 @@ __export(ListItem_exports, {
|
|
|
56
59
|
default: () => ListItem_default
|
|
57
60
|
});
|
|
58
61
|
module.exports = __toCommonJS(ListItem_exports);
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
63
|
var import_icons = require("@bifrostui/icons");
|
|
60
64
|
var import_clsx = __toESM(require("clsx"));
|
|
61
65
|
var React = __toESM(require("react"));
|
|
@@ -84,25 +88,28 @@ const ListItem = /* @__PURE__ */ React.forwardRef(
|
|
|
84
88
|
]);
|
|
85
89
|
let chevron;
|
|
86
90
|
if (typeof endIcon === "boolean") {
|
|
87
|
-
chevron = endIcon && /* @__PURE__ */
|
|
91
|
+
chevron = endIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ArrowForwardIcon, { size: "small" });
|
|
88
92
|
} else if (React.isValidElement(endIcon)) {
|
|
89
93
|
chevron = endIcon;
|
|
90
94
|
} else {
|
|
91
|
-
chevron = onClick && /* @__PURE__ */
|
|
95
|
+
chevron = onClick && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ArrowForwardIcon, { size: "small" });
|
|
92
96
|
}
|
|
93
97
|
const context = React.useContext(import_ListContext.default);
|
|
94
|
-
return /* @__PURE__ */
|
|
98
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
95
99
|
Component,
|
|
96
|
-
__spreadValues({
|
|
100
|
+
__spreadProps(__spreadValues({
|
|
97
101
|
className: (0, import_clsx.default)(prefixCls, className, {
|
|
98
102
|
[`${prefixCls}-divider`]: !(hideDivider || context.hideDivider),
|
|
99
103
|
[`${prefixCls}-disabled`]: disabled
|
|
100
104
|
}),
|
|
101
105
|
onClick,
|
|
102
106
|
ref
|
|
103
|
-
}, others),
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
}, others), {
|
|
108
|
+
children: [
|
|
109
|
+
children,
|
|
110
|
+
chevron && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ListItemFooter.default, { children: chevron })
|
|
111
|
+
]
|
|
112
|
+
})
|
|
106
113
|
);
|
|
107
114
|
}
|
|
108
115
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ListItemContentProps } from './ListItemContent.types';
|
|
3
3
|
import './ListItemContent.less';
|
|
4
|
-
declare const ListItemContent: React.ForwardRefExoticComponent<Omit<ListItemContentProps
|
|
4
|
+
declare const ListItemContent: React.ForwardRefExoticComponent<Omit<ListItemContentProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
export default ListItemContent;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
20
|
}
|
|
19
21
|
return a;
|
|
20
22
|
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
24
|
var __objRest = (source, exclude) => {
|
|
22
25
|
var target = {};
|
|
23
26
|
for (var prop in source)
|
|
@@ -56,6 +59,7 @@ __export(ListItemContent_exports, {
|
|
|
56
59
|
default: () => ListItemContent_default
|
|
57
60
|
});
|
|
58
61
|
module.exports = __toCommonJS(ListItemContent_exports);
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
63
|
var import_clsx = __toESM(require("clsx"));
|
|
60
64
|
var React = __toESM(require("react"));
|
|
61
65
|
var import_ListItemContent2 = require("./ListItemContent.css");
|
|
@@ -75,7 +79,10 @@ const ListItemContent = /* @__PURE__ */ React.forwardRef(
|
|
|
75
79
|
"primary",
|
|
76
80
|
"secondary"
|
|
77
81
|
]);
|
|
78
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_clsx.default)(prefixCls, className), ref }, others), { children: children || /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
83
|
+
primary && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-primary`, children: primary }),
|
|
84
|
+
secondary && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-secondary`, children: secondary })
|
|
85
|
+
] }) }));
|
|
79
86
|
}
|
|
80
87
|
);
|
|
81
88
|
ListItemContent.displayName = "BuiListItemContent";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ListItemExtraProps } from './ListItemExtra.types';
|
|
3
3
|
import './ListItemExtra.less';
|
|
4
|
-
declare const ListItemExtra: React.ForwardRefExoticComponent<Omit<ListItemExtraProps
|
|
4
|
+
declare const ListItemExtra: React.ForwardRefExoticComponent<Omit<ListItemExtraProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
export default ListItemExtra;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
20
|
}
|
|
19
21
|
return a;
|
|
20
22
|
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
24
|
var __objRest = (source, exclude) => {
|
|
22
25
|
var target = {};
|
|
23
26
|
for (var prop in source)
|
|
@@ -56,6 +59,7 @@ __export(ListItemExtra_exports, {
|
|
|
56
59
|
default: () => ListItemExtra_default
|
|
57
60
|
});
|
|
58
61
|
module.exports = __toCommonJS(ListItemExtra_exports);
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
63
|
var import_clsx = __toESM(require("clsx"));
|
|
60
64
|
var React = __toESM(require("react"));
|
|
61
65
|
var import_ListItemExtra2 = require("./ListItemExtra.css");
|
|
@@ -71,7 +75,7 @@ const ListItemExtra = /* @__PURE__ */ React.forwardRef(
|
|
|
71
75
|
"className",
|
|
72
76
|
"component"
|
|
73
77
|
]);
|
|
74
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_clsx.default)(prefixCls, className), ref }, others), { children }));
|
|
75
79
|
}
|
|
76
80
|
);
|
|
77
81
|
ListItemExtra.displayName = "BuiListItemExtra";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ListItemFooterProps } from './ListItemFooter.types';
|
|
3
3
|
import './ListItemFooter.less';
|
|
4
|
-
declare const ListItemFooter: React.ForwardRefExoticComponent<Omit<ListItemFooterProps
|
|
4
|
+
declare const ListItemFooter: React.ForwardRefExoticComponent<Omit<ListItemFooterProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
export default ListItemFooter;
|