@bifrostui/react 2.0.0-alpha.32 → 2.0.0-alpha.33
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
|
@@ -59,6 +59,7 @@ __export(SelectOption_exports, {
|
|
|
59
59
|
default: () => SelectOption_default
|
|
60
60
|
});
|
|
61
61
|
module.exports = __toCommonJS(SelectOption_exports);
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
62
63
|
var import_clsx = __toESM(require("clsx"));
|
|
63
64
|
var import_react = __toESM(require("react"));
|
|
64
65
|
var import_selectContext = __toESM(require("./selectContext"));
|
|
@@ -76,7 +77,7 @@ const SelectOption = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
76
77
|
setRenderValue("");
|
|
77
78
|
};
|
|
78
79
|
}, [selectValue, label, value]);
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
81
|
"div",
|
|
81
82
|
__spreadProps(__spreadValues({
|
|
82
83
|
className: (0, import_clsx.default)(prefixCls, className, {
|
|
@@ -92,9 +93,9 @@ const SelectOption = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
92
93
|
onClick: (e) => {
|
|
93
94
|
if (!disabled)
|
|
94
95
|
handleOptionClick(e, value, label);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
},
|
|
97
|
+
children: children || label
|
|
98
|
+
})
|
|
98
99
|
);
|
|
99
100
|
}
|
|
100
101
|
);
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
/**
|
|
3
2
|
* 自定义 Select 组件 Demo 集合
|
|
4
3
|
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
4
|
* 文件名必须是 A11yDemos.tsx(固定约定)
|
|
6
5
|
*/
|
|
7
|
-
export declare const basicSelectDemo: () =>
|
|
8
|
-
export declare const ControlledSelectDemo: () =>
|
|
9
|
-
export declare const disabledSelectDemo: () =>
|
|
10
|
-
export declare const selectWithDisabledOptionsDemo: () =>
|
|
11
|
-
export declare const defaultValueSelectDemo: () =>
|
|
12
|
-
export declare const complexInteractionSelectDemo: () =>
|
|
6
|
+
export declare const basicSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const ControlledSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const disabledSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const selectWithDisabledOptionsDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const defaultValueSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const complexInteractionSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
declare const _default: {
|
|
14
|
-
basicSelectDemo: () =>
|
|
15
|
-
ControlledSelectDemo: () =>
|
|
16
|
-
disabledSelectDemo: () =>
|
|
17
|
-
selectWithDisabledOptionsDemo: () =>
|
|
18
|
-
defaultValueSelectDemo: () =>
|
|
19
|
-
complexInteractionSelectDemo: () =>
|
|
13
|
+
basicSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
ControlledSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
disabledSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
selectWithDisabledOptionsDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
defaultValueSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
complexInteractionSelectDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
};
|
|
21
20
|
export default _default;
|
|
@@ -53,48 +53,71 @@ __export(A11yDemos_exports, {
|
|
|
53
53
|
selectWithDisabledOptionsDemo: () => selectWithDisabledOptionsDemo
|
|
54
54
|
});
|
|
55
55
|
module.exports = __toCommonJS(A11yDemos_exports);
|
|
56
|
-
var
|
|
56
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
|
+
var import_react = require("react");
|
|
57
58
|
var import_Select = __toESM(require("../../Select"));
|
|
58
59
|
var import_SelectOption = __toESM(require("../../SelectOption"));
|
|
59
60
|
const basicSelectDemo = () => {
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Select.default, { placeholder: "\u8BF7\u9009\u62E9\u9009\u9879", "aria-label": "\u57FA\u7840\u9009\u62E9\u5668", children: [
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option1", label: "\u9009\u9879\u4E00", children: "\u9009\u9879\u4E00" }),
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option2", label: "\u9009\u9879\u4E8C", children: "\u9009\u9879\u4E8C" }),
|
|
64
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option3", label: "\u9009\u9879\u4E09", children: "\u9009\u9879\u4E09" })
|
|
65
|
+
] }) });
|
|
61
66
|
};
|
|
62
67
|
const ControlledSelectDemo = () => {
|
|
63
68
|
const [value, setValue] = (0, import_react.useState)("option1");
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
71
|
+
import_Select.default,
|
|
72
|
+
{
|
|
73
|
+
value,
|
|
74
|
+
placeholder: "\u53D7\u63A7\u9009\u62E9\u5668",
|
|
75
|
+
"aria-label": "\u53D7\u63A7\u9009\u62E9\u5668",
|
|
76
|
+
onChange: (e, { value: newValue }) => {
|
|
77
|
+
setValue(newValue);
|
|
78
|
+
console.log("\u9009\u4E2D\u503C:", newValue);
|
|
79
|
+
},
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option1", label: "\u9009\u9879\u4E00", children: "\u9009\u9879\u4E00" }),
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option2", label: "\u9009\u9879\u4E8C", children: "\u9009\u9879\u4E8C" }),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option3", label: "\u9009\u9879\u4E09", children: "\u9009\u9879\u4E09" })
|
|
84
|
+
]
|
|
73
85
|
}
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
88
|
+
"\u5F53\u524D\u9009\u4E2D\u503C: ",
|
|
89
|
+
value
|
|
90
|
+
] })
|
|
91
|
+
] });
|
|
79
92
|
};
|
|
80
93
|
const disabledSelectDemo = () => {
|
|
81
|
-
return /* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Select.default, { disabled: true, placeholder: "\u7981\u7528\u7684\u9009\u62E9\u5668", "aria-label": "\u7981\u7528\u9009\u62E9\u5668", children: [
|
|
95
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option1", label: "\u9009\u9879\u4E00", children: "\u9009\u9879\u4E00" }),
|
|
96
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option2", label: "\u9009\u9879\u4E8C", children: "\u9009\u9879\u4E8C" })
|
|
97
|
+
] }) });
|
|
82
98
|
};
|
|
83
99
|
const selectWithDisabledOptionsDemo = () => {
|
|
84
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Select.default, { placeholder: "\u5305\u542B\u7981\u7528\u9009\u9879", "aria-label": "\u5305\u542B\u7981\u7528\u9009\u9879\u7684\u9009\u62E9\u5668", children: [
|
|
101
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option1", label: "\u9009\u9879\u4E00", children: "\u9009\u9879\u4E00" }),
|
|
102
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option2", label: "\u9009\u9879\u4E8C", disabled: true, children: "\u9009\u9879\u4E8C\uFF08\u7981\u7528\uFF09" }),
|
|
103
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option3", label: "\u9009\u9879\u4E09", children: "\u9009\u9879\u4E09" }),
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option4", label: "\u9009\u9879\u56DB", disabled: true, children: "\u9009\u9879\u56DB\uFF08\u7981\u7528\uFF09" })
|
|
105
|
+
] }) });
|
|
85
106
|
};
|
|
86
107
|
const defaultValueSelectDemo = () => {
|
|
87
|
-
return /* @__PURE__ */
|
|
108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
88
109
|
import_Select.default,
|
|
89
110
|
{
|
|
90
111
|
defaultValue: "option2",
|
|
91
112
|
placeholder: "\u6709\u9ED8\u8BA4\u503C\u7684\u9009\u62E9\u5668",
|
|
92
|
-
"aria-label": "\u6709\u9ED8\u8BA4\u503C\u7684\u9009\u62E9\u5668"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
113
|
+
"aria-label": "\u6709\u9ED8\u8BA4\u503C\u7684\u9009\u62E9\u5668",
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option1", label: "\u9009\u9879\u4E00", children: "\u9009\u9879\u4E00" }),
|
|
116
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option2", label: "\u9009\u9879\u4E8C", children: "\u9009\u9879\u4E8C" }),
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectOption.default, { value: "option3", label: "\u9009\u9879\u4E09", children: "\u9009\u9879\u4E09" })
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
) });
|
|
98
121
|
};
|
|
99
122
|
const complexInteractionSelectDemo = () => {
|
|
100
123
|
const ComplexInteractionSelectDemo = () => {
|
|
@@ -111,29 +134,36 @@ const complexInteractionSelectDemo = () => {
|
|
|
111
134
|
)
|
|
112
135
|
);
|
|
113
136
|
};
|
|
114
|
-
return /* @__PURE__ */
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
value,
|
|
118
|
-
placeholder: "\u590D\u6742\u4EA4\u4E92\u9009\u62E9\u5668",
|
|
119
|
-
"aria-label": "\u590D\u6742\u4EA4\u4E92\u9009\u62E9\u5668",
|
|
120
|
-
onChange: (e, { value: newValue }) => {
|
|
121
|
-
setValue(newValue);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
options.map((option) => /* @__PURE__ */ import_react.default.createElement(
|
|
125
|
-
import_SelectOption.default,
|
|
137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
138
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
139
|
+
import_Select.default,
|
|
126
140
|
{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
label:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
141
|
+
value,
|
|
142
|
+
placeholder: "\u590D\u6742\u4EA4\u4E92\u9009\u62E9\u5668",
|
|
143
|
+
"aria-label": "\u590D\u6742\u4EA4\u4E92\u9009\u62E9\u5668",
|
|
144
|
+
onChange: (e, { value: newValue }) => {
|
|
145
|
+
setValue(newValue);
|
|
146
|
+
},
|
|
147
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
148
|
+
import_SelectOption.default,
|
|
149
|
+
{
|
|
150
|
+
value: option.value,
|
|
151
|
+
label: option.label,
|
|
152
|
+
disabled: option.disabled,
|
|
153
|
+
children: option.label
|
|
154
|
+
},
|
|
155
|
+
option.value
|
|
156
|
+
))
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { marginTop: 10 }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type: "button", onClick: () => toggleOptionDisabled("option2"), children: "\u5207\u6362\u9009\u9879\u4E8C\u72B6\u6001" }) }),
|
|
160
|
+
value && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
161
|
+
"\u5F53\u524D\u9009\u4E2D: ",
|
|
162
|
+
value
|
|
163
|
+
] })
|
|
164
|
+
] });
|
|
135
165
|
};
|
|
136
|
-
return /* @__PURE__ */
|
|
166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ComplexInteractionSelectDemo, {});
|
|
137
167
|
};
|
|
138
168
|
var A11yDemos_default = {
|
|
139
169
|
basicSelectDemo,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SkeletonProps } from './Skeleton.types';
|
|
3
3
|
import './index.less';
|
|
4
|
-
declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps
|
|
4
|
+
declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
5
|
export default Skeleton;
|
|
@@ -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(Skeleton_exports, {
|
|
|
56
59
|
default: () => Skeleton_default
|
|
57
60
|
});
|
|
58
61
|
module.exports = __toCommonJS(Skeleton_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_index = require("./index.css");
|
|
@@ -79,9 +83,9 @@ const Skeleton = /* @__PURE__ */ React.forwardRef(
|
|
|
79
83
|
"variant",
|
|
80
84
|
"children"
|
|
81
85
|
]);
|
|
82
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
83
87
|
"span",
|
|
84
|
-
__spreadValues({
|
|
88
|
+
__spreadProps(__spreadValues({
|
|
85
89
|
className: (0, import_clsx.default)(
|
|
86
90
|
prefixCls,
|
|
87
91
|
`${prefixCls}-${variant}`,
|
|
@@ -93,8 +97,9 @@ const Skeleton = /* @__PURE__ */ React.forwardRef(
|
|
|
93
97
|
),
|
|
94
98
|
ref,
|
|
95
99
|
style: __spreadValues({ width, height }, style)
|
|
96
|
-
}, others),
|
|
97
|
-
|
|
100
|
+
}, others), {
|
|
101
|
+
children
|
|
102
|
+
})
|
|
98
103
|
);
|
|
99
104
|
}
|
|
100
105
|
);
|
package/dist/Slide/Slide.js
CHANGED
|
@@ -59,6 +59,7 @@ __export(Slide_exports, {
|
|
|
59
59
|
default: () => Slide_default
|
|
60
60
|
});
|
|
61
61
|
module.exports = __toCommonJS(Slide_exports);
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
62
63
|
var import_utils = require("@bifrostui/utils");
|
|
63
64
|
var React = __toESM(require("react"));
|
|
64
65
|
var import_Transition = __toESM(require("../Transition"));
|
|
@@ -107,36 +108,36 @@ const Slide = /* @__PURE__ */ React.forwardRef(
|
|
|
107
108
|
};
|
|
108
109
|
if (!children)
|
|
109
110
|
return null;
|
|
110
|
-
return /* @__PURE__ */
|
|
111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
111
112
|
import_Transition.default,
|
|
112
113
|
__spreadProps(__spreadValues({}, others), {
|
|
113
114
|
appear,
|
|
114
115
|
in: inProp,
|
|
115
116
|
timeout,
|
|
116
117
|
delay,
|
|
117
|
-
ref: nodeRef
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
)
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
}
|
|
139
|
-
}
|
|
118
|
+
ref: nodeRef,
|
|
119
|
+
children: (state, childProps) => {
|
|
120
|
+
const transition = state === "entering" || state === "exiting" ? transitions.create(
|
|
121
|
+
"transform",
|
|
122
|
+
(0, import_utils.getTransitionProps)(
|
|
123
|
+
{ timeout, style, easing: easingProp, delay },
|
|
124
|
+
{
|
|
125
|
+
mode: state
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
) : "none";
|
|
129
|
+
const transform = state === "entering" || state === "entered" ? "none" : getTranslateValue(direction);
|
|
130
|
+
return React.cloneElement(children, __spreadValues({
|
|
131
|
+
style: __spreadValues(__spreadValues({
|
|
132
|
+
visibility: state === "exited" ? "hidden" : "visible",
|
|
133
|
+
transition,
|
|
134
|
+
WebkitTransition: transition,
|
|
135
|
+
transform,
|
|
136
|
+
WebkitTransform: transform
|
|
137
|
+
}, style), children.props.style)
|
|
138
|
+
}, childProps));
|
|
139
|
+
}
|
|
140
|
+
})
|
|
140
141
|
);
|
|
141
142
|
}
|
|
142
143
|
);
|
package/dist/Slider/Slider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SliderProps } from './Slider.types';
|
|
3
3
|
import './index.less';
|
|
4
|
-
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderProps
|
|
4
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Slider;
|
package/dist/Slider/Slider.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)
|
|
@@ -76,6 +79,7 @@ __export(Slider_exports, {
|
|
|
76
79
|
default: () => Slider_default
|
|
77
80
|
});
|
|
78
81
|
module.exports = __toCommonJS(Slider_exports);
|
|
82
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
79
83
|
var import_icons = require("@bifrostui/icons");
|
|
80
84
|
var import_utils = require("@bifrostui/utils");
|
|
81
85
|
var import_clsx = __toESM(require("clsx"));
|
|
@@ -128,12 +132,12 @@ const Slider = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
128
132
|
const value = shouldProtection ? latestVal.current : valueProp;
|
|
129
133
|
const [rootRef, setRootRef] = (0, import_react.useState)(null);
|
|
130
134
|
const handleRef = (0, import_utils.useForkRef)(ref, setRootRef);
|
|
131
|
-
const sliderRect = (0, import_react.useRef)();
|
|
132
|
-
const touchStartPageX = (0, import_react.useRef)();
|
|
133
|
-
const touchStartLeft = (0, import_react.useRef)();
|
|
135
|
+
const sliderRect = (0, import_react.useRef)(null);
|
|
136
|
+
const touchStartPageX = (0, import_react.useRef)(0);
|
|
137
|
+
const touchStartLeft = (0, import_react.useRef)(0);
|
|
134
138
|
const buttonIndex = (0, import_react.useRef)(0);
|
|
135
139
|
const beforeMoveValue = (0, import_react.useRef)([0, 0]);
|
|
136
|
-
const defaultIcon = /* @__PURE__ */
|
|
140
|
+
const defaultIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.GripperBarVerticalIcon, { htmlColor: "var(--bui-color-fg-default)" });
|
|
137
141
|
const initialRange = (0, import_react.useRef)(
|
|
138
142
|
value !== void 0 && Array.isArray(value) || defaultValue !== void 0 && Array.isArray(defaultValue)
|
|
139
143
|
);
|
|
@@ -269,10 +273,9 @@ const Slider = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
269
273
|
};
|
|
270
274
|
const renderButton = (index) => {
|
|
271
275
|
const valuenow = internalValue[index];
|
|
272
|
-
return /* @__PURE__ */
|
|
276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
273
277
|
"div",
|
|
274
278
|
{
|
|
275
|
-
key: index,
|
|
276
279
|
role: "slider",
|
|
277
280
|
className: (0, import_clsx.default)(classes.button, `${classes.button}-${index}`),
|
|
278
281
|
style: {
|
|
@@ -290,35 +293,39 @@ const Slider = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
290
293
|
onTouchMove,
|
|
291
294
|
onTouchEnd,
|
|
292
295
|
onTouchCancel: onTouchEnd,
|
|
293
|
-
onMouseDown
|
|
296
|
+
onMouseDown,
|
|
297
|
+
children: index === SLIDER_BUTTON.FRONT ? startIcon || defaultIcon : endIcon || defaultIcon
|
|
294
298
|
},
|
|
295
|
-
index
|
|
299
|
+
index
|
|
296
300
|
);
|
|
297
301
|
};
|
|
298
|
-
return /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
299
303
|
"div",
|
|
300
|
-
__spreadValues({
|
|
304
|
+
__spreadProps(__spreadValues({
|
|
301
305
|
className: (0, import_clsx.default)(classes.root, className, {
|
|
302
306
|
[classes.disabled]: disabled
|
|
303
307
|
}),
|
|
304
308
|
ref: handleRef
|
|
305
|
-
}, others),
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
309
|
+
}, others), {
|
|
310
|
+
children: [
|
|
311
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${classes.root}-rail` }),
|
|
312
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${classes.root}-line`, style: lineStyle }),
|
|
313
|
+
renderButton(SLIDER_BUTTON.FRONT),
|
|
314
|
+
range && renderButton(SLIDER_BUTTON.END),
|
|
315
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
316
|
+
"div",
|
|
317
|
+
{
|
|
318
|
+
className: (0, import_clsx.default)(classes.tooltip, {
|
|
319
|
+
[`${classes.tooltip}-hidden`]: !tooltipVisible
|
|
320
|
+
}),
|
|
321
|
+
style: {
|
|
322
|
+
left: `${(tooltipRef.current[buttonIndex.current] - min) / scope * 100}%`
|
|
323
|
+
},
|
|
324
|
+
children: tooltipRender(tooltipRef.current[buttonIndex.current])
|
|
325
|
+
}
|
|
326
|
+
)
|
|
327
|
+
]
|
|
328
|
+
})
|
|
322
329
|
);
|
|
323
330
|
});
|
|
324
331
|
Slider.displayName = "BuiSlider";
|
package/dist/Stack/Stack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StackProps } from './Stack.types';
|
|
3
3
|
import './index.less';
|
|
4
|
-
declare const Stack: React.ForwardRefExoticComponent<Omit<StackProps
|
|
4
|
+
declare const Stack: React.ForwardRefExoticComponent<Omit<StackProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Stack;
|
package/dist/Stack/Stack.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(Stack_exports, {
|
|
|
56
59
|
default: () => Stack_default
|
|
57
60
|
});
|
|
58
61
|
module.exports = __toCommonJS(Stack_exports);
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
63
|
var import_clsx = __toESM(require("clsx"));
|
|
60
64
|
var import_react = __toESM(require("react"));
|
|
61
65
|
var import_index = require("./index.css");
|
|
@@ -89,19 +93,23 @@ const Stack = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
89
93
|
"--spacing": spacing || "0",
|
|
90
94
|
"--flex-wrap": flexWrap || "nowrap"
|
|
91
95
|
};
|
|
92
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
93
97
|
"div",
|
|
94
|
-
__spreadValues({
|
|
98
|
+
__spreadProps(__spreadValues({
|
|
95
99
|
className: (0, import_clsx.default)(prefixCls, className),
|
|
96
100
|
style: __spreadValues(__spreadValues({}, cssProperties), style),
|
|
97
101
|
ref
|
|
98
|
-
}, others),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
}, others), {
|
|
103
|
+
children: divider ? import_react.default.Children.map(children, (child, index) => {
|
|
104
|
+
if (index < import_react.default.Children.toArray(children).length - 1) {
|
|
105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
106
|
+
child,
|
|
107
|
+
divider
|
|
108
|
+
] });
|
|
109
|
+
}
|
|
110
|
+
return child;
|
|
111
|
+
}) : children
|
|
112
|
+
})
|
|
105
113
|
);
|
|
106
114
|
});
|
|
107
115
|
Stack.displayName = "BuiStack";
|