@bifrostui/react 1.5.3 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionSheet/ActionSheet.css +16 -6
- package/dist/ActionSheet/ActionSheetItem.css +11 -17
- package/dist/ActionSheet/ActionSheetItem.js +3 -8
- package/dist/ActionSheet/index.css +89 -0
- package/dist/Alert/Alert.js +2 -1
- package/dist/Alert/__tests__/fixtures/A11yDemos.js +143 -0
- package/dist/Alert/index.css +18 -14
- package/dist/Avatar/Avatar.css +16 -12
- package/dist/Avatar/Avatar.js +3 -8
- package/dist/Avatar/AvatarGroup.css +19 -15
- package/dist/Avatar/AvatarGroup.js +2 -6
- package/dist/Avatar/index.css +93 -0
- package/dist/Backdrop/Backdrop.js +4 -3
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.js +51 -0
- package/dist/Backdrop/index.css +19 -0
- package/dist/Badge/Badge.js +41 -19
- package/dist/Badge/__tests__/fixtures/A11yDemos.js +110 -0
- package/dist/Badge/hooks/useBadgeA11y.js +76 -0
- package/dist/Badge/hooks/useBadgeDisplay.js +56 -0
- package/dist/Badge/index.css +125 -0
- package/dist/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/Breadcrumb/index.css +38 -0
- package/dist/Button/Button.js +7 -11
- package/dist/Button/__tests__/fixtures/A11yDemos.js +81 -0
- package/dist/Button/index.css +267 -0
- package/dist/CSSTransition/CSSTransition.js +177 -0
- package/dist/CSSTransition/CSSTransition.types.js +15 -0
- package/dist/CSSTransition/demo/CSSTransitionDemo.js +76 -0
- package/dist/CSSTransition/demo/index.css +25 -0
- package/dist/CSSTransition/index.js +41 -0
- package/dist/Calendar/Calendar.js +136 -51
- package/dist/Calendar/__tests__/fixtures/A11yDemos.js +41 -0
- package/dist/Calendar/index.css +167 -0
- package/dist/Calendar/utils.js +33 -23
- package/dist/Card/Card.css +9 -0
- package/dist/Card/CardContent.css +1 -2
- package/dist/Card/CardFooter.css +2 -4
- package/dist/Card/CardHeader.css +5 -5
- package/dist/Card/CardHeader.js +2 -2
- package/dist/Card/index.css +77 -0
- package/dist/Checkbox/Checkbox.js +9 -12
- package/dist/Checkbox/CheckboxGroup.js +5 -8
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Checkbox/index.css +51 -0
- package/dist/CitySelector/CitySelector.miniapp.js +0 -1
- package/dist/CitySelector/CitySelectorCore.js +1 -1
- package/dist/CitySelector/Selector/index.css +4 -4
- package/dist/CitySelector/index.css +120 -0
- package/dist/Collapse/Collapse.js +19 -8
- package/dist/Collapse/Collapse.miniapp.js +152 -74
- package/dist/Collapse/index.css +45 -0
- package/dist/CollapsePanel/CollapsePanel.js +1 -1
- package/dist/CollapsePanel/CollapsePanelItem.js +45 -46
- package/dist/CollapsePanel/index.css +36 -0
- package/dist/Countdown/Countdown.js +64 -31
- package/dist/Countdown/__tests__/fixtures/A11yDemos.js +107 -0
- package/dist/Countdown/index.css +54 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/dist/DesktopDatePicker/index.css +100 -0
- package/dist/Dialog/Dialog.js +56 -34
- package/dist/Dialog/FunctionalDialog.js +101 -90
- package/dist/Dialog/__tests__/fixtures/A11yDemos.js +78 -0
- package/dist/Dialog/index.css +39 -36
- package/dist/Dialog/index.js +9 -2
- package/dist/Divider/Divider.js +9 -6
- package/dist/Divider/index.css +47 -0
- package/dist/Drawer/Drawer.js +12 -18
- package/dist/Drawer/__tests__/fixtures/A11yDemos.js +148 -0
- package/dist/Drawer/index.css +36 -0
- package/dist/Fade/Fade.js +52 -56
- package/dist/IconButton/IconButton.js +26 -18
- package/dist/IconButton/index.css +205 -0
- package/dist/Image/Image.js +119 -119
- package/dist/Image/__tests__/fixtures/A11yDemos.js +130 -0
- package/dist/Image/index.css +7 -8
- package/dist/Input/Input.js +9 -13
- package/dist/Input/__tests__/fixtures/A11yDemos.js +81 -0
- package/dist/Input/index.css +70 -0
- package/dist/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/dist/ItemSelector/ItemSelectorCore.js +1 -1
- package/dist/List/List.css +7 -3
- package/dist/List/List.js +3 -8
- package/dist/List/ListItem.css +3 -3
- package/dist/List/ListItem.js +42 -44
- package/dist/List/ListItemContent.js +1 -4
- package/dist/List/ListItemExtra.js +9 -4
- package/dist/List/ListItemFooter.js +9 -4
- package/dist/List/ListItemHeader.js +9 -4
- package/dist/List/index.css +80 -0
- package/dist/Loading/Loading.js +14 -5
- package/dist/Loading/index.css +37 -0
- package/dist/Modal/Modal.js +48 -54
- package/dist/Modal/Modal.miniapp.js +49 -44
- package/dist/Modal/ModalManager.js +238 -0
- package/dist/Modal/__tests__/fixtures/A11yDemos.js +52 -0
- package/dist/Modal/index.css +15 -0
- package/dist/Modal/index.js +9 -1
- package/dist/Modal/useModal.js +190 -0
- package/dist/NavBar/NavBar.js +1 -2
- package/dist/NavBar/index.css +65 -0
- package/dist/Picker/Picker.css +21 -17
- package/dist/Picker/Picker.js +53 -21
- package/dist/Picker/PickerPanel.css +8 -8
- package/dist/Picker/PickerPanel.js +80 -59
- package/dist/Picker/__tests__/fixtures/A11yDemos.js +79 -0
- package/dist/Picker/index.css +124 -0
- package/dist/Picker/utils.js +9 -12
- package/dist/Popover/Popover.js +120 -131
- package/dist/Popover/__tests__/fixtures/A11yDemos.js +175 -0
- package/dist/Popover/hooks/index.js +36 -0
- package/dist/Popover/hooks/usePopoverA11y.js +66 -0
- package/dist/Popover/hooks/usePopoverEvents.js +150 -0
- package/dist/Popover/hooks/usePopoverPosition.js +124 -0
- package/dist/Popover/hooks/usePopoverState.js +54 -0
- package/dist/Popover/index.css +99 -0
- package/dist/Portal/PortalCore.js +2 -2
- package/dist/Progress/Progress.js +62 -7
- package/dist/Progress/__tests__/fixtures/A11yDemos.js +100 -0
- package/dist/Progress/index.css +28 -0
- package/dist/Radio/Radio.js +8 -11
- package/dist/Radio/RadioButtonIcon.js +6 -1
- package/dist/Radio/RadioGroup.js +2 -5
- package/dist/Radio/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Radio/index.css +69 -0
- package/dist/Rating/Rating.js +9 -19
- package/dist/Rating/index.css +65 -0
- package/dist/ScrollView/ScrollView.js +50 -211
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.js +319 -0
- package/dist/ScrollView/useScrollView.js +300 -0
- package/dist/Select/Select.js +19 -18
- package/dist/Select/SelectOption.js +6 -2
- package/dist/Select/__tests__/fixtures/A11yDemos.js +154 -0
- package/dist/Select/index.css +118 -0
- package/dist/Skeleton/Skeleton.js +6 -10
- package/dist/Skeleton/index.css +63 -0
- package/dist/Slide/Slide.js +69 -74
- package/dist/Slider/Slider.js +8 -16
- package/dist/Slider/index.css +111 -0
- package/dist/Stack/Stack.js +1 -1
- package/dist/Stack/demo/index.css +2 -0
- package/dist/Steps/Step.css +14 -14
- package/dist/Steps/Step.js +81 -82
- package/dist/Steps/Steps.css +18 -14
- package/dist/Steps/Steps.js +57 -60
- package/dist/Steps/index.css +199 -0
- package/dist/SwipeAction/index.css +110 -0
- package/dist/Swiper/Swiper.js +19 -5
- package/dist/Swiper/index.css +25 -0
- package/dist/Switch/Switch.js +77 -79
- package/dist/Switch/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Switch/index.css +153 -0
- package/dist/TabBar/TabBar.css +12 -8
- package/dist/TabBar/TabBar.js +3 -8
- package/dist/TabBar/TabBarItem.css +6 -0
- package/dist/TabBar/TabBarItem.js +3 -3
- package/dist/TabBar/index.css +59 -0
- package/dist/Tabs/Tab.css +10 -16
- package/dist/Tabs/Tab.js +37 -23
- package/dist/Tabs/TabPanel.js +9 -5
- package/dist/Tabs/Tabs.css +32 -21
- package/dist/Tabs/Tabs.js +87 -95
- package/dist/Tabs/TabsContext.js +3 -1
- package/dist/Tabs/index.css +135 -0
- package/dist/Tag/Tag.css +49 -23
- package/dist/Tag/Tag.js +3 -7
- package/dist/Tag/TagGroup.css +15 -11
- package/dist/Tag/TagGroup.js +16 -14
- package/dist/Tag/__tests__/fixtures/A11yDemos.js +196 -0
- package/dist/Tag/index.css +182 -0
- package/dist/TextArea/TextArea.js +54 -18
- package/dist/TextArea/__tests__/fixtures/A11yDemos.js +91 -0
- package/dist/TextArea/index.css +57 -0
- package/dist/ThemeProvider/ThemeProvider.js +1 -4
- package/dist/ThemeProvider/ThemeProvider.types.js +0 -12
- package/dist/ThemeProvider/utils/constants.js +4 -1
- package/dist/Toast/FunctionalToast.js +180 -96
- package/dist/Toast/Toast.js +70 -29
- package/dist/Toast/__tests__/fixtures/A11yDemos.js +54 -0
- package/dist/Toast/index.css +57 -0
- package/dist/Tooltip/Tooltip.js +64 -151
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.js +100 -0
- package/dist/Tooltip/index.css +95 -0
- package/dist/Tooltip/useTooltip.js +313 -0
- package/dist/Transition/TransitionCore.js +27 -27
- package/dist/TransitionGroup/TransitionGroup.js +132 -0
- package/dist/TransitionGroup/TransitionGroup.types.js +15 -0
- package/dist/TransitionGroup/demo/TransitionGroupDemo.js +68 -0
- package/dist/TransitionGroup/demo/index.css +33 -0
- package/dist/TransitionGroup/index.js +41 -0
- package/dist/TransitionGroup/utils/childMapping.js +119 -0
- package/dist/_.._/benchmarks/components/Button.js +41 -0
- package/dist/_.._/benchmarks/components/Input.js +45 -0
- package/dist/_.._/benchmarks/components/Tabs.js +50 -0
- package/dist/benchmarks/components/Button.d.ts +3 -0
- package/dist/benchmarks/components/Input.d.ts +3 -0
- package/dist/benchmarks/components/Tabs.d.ts +3 -0
- package/dist/index.js +5 -1
- package/dist/locales/en-US.js +30 -2
- package/dist/locales/zh-CN.js +32 -1
- package/dist/locales/zh-TW.js +32 -1
- package/dist/src/ActionSheet/ActionSheetItem.types.d.ts +38 -0
- package/dist/src/Alert/Alert.types.d.ts +61 -0
- package/dist/src/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -0
- package/dist/src/Backdrop/Backdrop.d.ts +5 -0
- package/dist/src/Backdrop/Backdrop.types.d.ts +21 -0
- package/dist/src/Backdrop/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/dist/src/Badge/Badge.d.ts +5 -0
- package/dist/src/Badge/Badge.types.d.ts +56 -0
- package/dist/src/Badge/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/src/Badge/hooks/useBadgeA11y.d.ts +23 -0
- package/dist/src/Badge/hooks/useBadgeDisplay.d.ts +16 -0
- package/dist/src/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/dist/src/Button/Button.d.ts +5 -0
- package/dist/src/Button/Button.types.d.ts +53 -0
- package/dist/src/Button/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/dist/src/CSSTransition/CSSTransition.d.ts +4 -0
- package/dist/src/CSSTransition/CSSTransition.types.d.ts +13 -0
- package/dist/src/CSSTransition/index.d.ts +2 -0
- package/dist/src/Calendar/Calendar.d.ts +5 -0
- package/dist/src/Calendar/Calendar.types.d.ts +112 -0
- package/dist/src/Calendar/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/src/Calendar/utils.d.ts +29 -0
- package/dist/src/Checkbox/Checkbox.d.ts +5 -0
- package/dist/src/Checkbox/CheckboxGroup.d.ts +5 -0
- package/dist/src/Checkbox/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/src/CitySelector/CitySelector.types.d.ts +46 -0
- package/dist/src/CitySelector/CitySelectorCore.d.ts +5 -0
- package/dist/src/Collapse/Collapse.d.ts +5 -0
- package/dist/src/Collapse/Collapse.miniapp.d.ts +10 -0
- package/dist/src/CollapsePanel/CollapsePanel.d.ts +5 -0
- package/dist/src/Countdown/Countdown.d.ts +5 -0
- package/dist/src/Countdown/Countdown.types.d.ts +127 -0
- package/dist/src/Countdown/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/dist/src/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/dist/src/Dialog/Dialog.d.ts +8 -0
- package/dist/src/Dialog/Dialog.types.d.ts +137 -0
- package/dist/src/Dialog/FunctionalDialog.d.ts +10 -0
- package/dist/src/Dialog/__tests__/fixtures/A11yDemos.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +5 -0
- package/dist/src/Divider/Divider.d.ts +5 -0
- package/dist/src/Drawer/Drawer.d.ts +5 -0
- package/dist/src/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/IconButton/IconButton.d.ts +5 -0
- package/dist/src/IconButton/IconButton.types.d.ts +76 -0
- package/dist/src/Image/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/Input/Input.d.ts +5 -0
- package/dist/src/Input/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/ItemSelector/ItemSelector.types.d.ts +39 -0
- package/dist/src/ItemSelector/ItemSelectorCore.d.ts +5 -0
- package/dist/src/Loading/Loading.d.ts +5 -0
- package/dist/src/Modal/Modal.d.ts +5 -0
- package/dist/src/Modal/Modal.miniapp.d.ts +16 -0
- package/dist/src/Modal/Modal.types.d.ts +44 -0
- package/dist/src/Modal/ModalManager.d.ts +21 -0
- package/dist/src/Modal/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/dist/src/Modal/index.d.ts +6 -0
- package/dist/src/Modal/useModal.d.ts +24 -0
- package/dist/src/NavBar/NavBar.d.ts +5 -0
- package/dist/src/Picker/Picker.types.d.ts +121 -0
- package/dist/src/Picker/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/src/Picker/utils.d.ts +32 -0
- package/dist/src/Popover/Popover.d.ts +5 -0
- package/dist/src/Popover/Popover.types.d.ts +94 -0
- package/dist/src/Popover/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/src/Popover/hooks/index.d.ts +8 -0
- package/dist/src/Popover/hooks/usePopoverA11y.d.ts +14 -0
- package/dist/src/Popover/hooks/usePopoverEvents.d.ts +21 -0
- package/dist/src/Popover/hooks/usePopoverPosition.d.ts +17 -0
- package/dist/src/Popover/hooks/usePopoverState.d.ts +16 -0
- package/dist/src/Portal/Portal.types.d.ts +26 -0
- package/dist/src/Progress/Progress.d.ts +8 -0
- package/dist/src/Progress/Progress.types.d.ts +72 -0
- package/dist/src/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/Radio/Radio.d.ts +5 -0
- package/dist/src/Radio/RadioGroup.d.ts +5 -0
- package/dist/src/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/src/Rating/Rating.d.ts +5 -0
- package/dist/src/ScrollView/ScrollView.d.ts +5 -0
- package/dist/src/ScrollView/ScrollView.types.d.ts +83 -0
- package/dist/src/ScrollView/__tests__/fixtures/A11yDemos.d.ts +7 -0
- package/dist/src/ScrollView/useScrollView.d.ts +10 -0
- package/dist/src/Select/Select.d.ts +5 -0
- package/dist/src/Select/Select.types.d.ts +104 -0
- package/dist/src/Select/SelectOption.d.ts +5 -0
- package/dist/src/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/Select/selectContext.d.ts +3 -0
- package/dist/src/Skeleton/Skeleton.d.ts +5 -0
- package/dist/src/Slider/Slider.d.ts +5 -0
- package/dist/src/Stack/Stack.d.ts +5 -0
- package/dist/src/Steps/Steps.d.ts +5 -0
- package/dist/src/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/dist/src/Swiper/Swiper.d.ts +10 -0
- package/dist/src/Switch/Switch.d.ts +5 -0
- package/dist/src/Switch/Switch.types.d.ts +56 -0
- package/dist/src/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/src/TabBar/TabBarContext.d.ts +27 -0
- package/dist/src/TabBar/index.types.d.ts +54 -0
- package/dist/src/Tabs/Tab.types.d.ts +12 -0
- package/dist/src/Tabs/TabPanel.d.ts +5 -0
- package/dist/src/Tabs/Tabs.types.d.ts +35 -0
- package/dist/src/Tabs/TabsContext.d.ts +8 -0
- package/dist/src/Tag/Tag.types.d.ts +23 -0
- package/dist/src/Tag/TagGroup.d.ts +5 -0
- package/dist/src/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/TextArea/TextArea.d.ts +5 -0
- package/dist/src/TextArea/TextArea.types.d.ts +98 -0
- package/dist/src/TextArea/__tests__/fixtures/A11yDemos.d.ts +19 -0
- package/dist/src/ThemeProvider/ThemeProvider.types.d.ts +122 -0
- package/dist/src/ThemeProvider/utils/constants.d.ts +38 -0
- package/dist/src/ThemeProvider/utils/mountTokens.d.ts +26 -0
- package/dist/src/Toast/FunctionalToast.d.ts +3 -0
- package/dist/src/Toast/Toast.d.ts +5 -0
- package/dist/src/Toast/Toast.types.d.ts +104 -0
- package/dist/src/Toast/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/src/Tooltip/Tooltip.d.ts +5 -0
- package/dist/src/Tooltip/Tooltip.types.d.ts +99 -0
- package/dist/src/Tooltip/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/src/Tooltip/useTooltip.d.ts +29 -0
- package/dist/src/TransitionGroup/TransitionGroup.d.ts +7 -0
- package/dist/src/TransitionGroup/TransitionGroup.types.d.ts +47 -0
- package/dist/src/TransitionGroup/demo/TransitionGroupDemo.d.ts +4 -0
- package/dist/src/TransitionGroup/index.d.ts +2 -0
- package/dist/src/TransitionGroup/utils/childMapping.d.ts +27 -0
- package/dist/src/index.d.ts +58 -0
- package/dist/src/locales/base.d.ts +79 -0
- package/es/ActionSheet/ActionSheet.css +16 -6
- package/es/ActionSheet/ActionSheetItem.css +11 -17
- package/es/ActionSheet/ActionSheetItem.js +3 -8
- package/es/ActionSheet/index.css +89 -0
- package/es/Alert/Alert.js +2 -1
- package/es/Alert/__tests__/fixtures/A11yDemos.js +107 -0
- package/es/Alert/index.css +18 -14
- package/es/Avatar/Avatar.css +16 -12
- package/es/Avatar/Avatar.js +3 -8
- package/es/Avatar/AvatarGroup.css +19 -15
- package/es/Avatar/AvatarGroup.js +2 -6
- package/es/Avatar/index.css +93 -0
- package/es/Backdrop/Backdrop.js +4 -3
- package/es/Backdrop/__tests__/fixtures/A11yDemos.js +17 -0
- package/es/Backdrop/index.css +19 -0
- package/es/Badge/Badge.js +41 -19
- package/es/Badge/__tests__/fixtures/A11yDemos.js +70 -0
- package/es/Badge/hooks/useBadgeA11y.js +53 -0
- package/es/Badge/hooks/useBadgeDisplay.js +33 -0
- package/es/Badge/index.css +125 -0
- package/es/Breadcrumb/Breadcrumb.js +1 -1
- package/es/Breadcrumb/index.css +38 -0
- package/es/Button/Button.js +7 -11
- package/es/Button/__tests__/fixtures/A11yDemos.js +42 -0
- package/es/Button/index.css +267 -0
- package/es/CSSTransition/CSSTransition.js +153 -0
- package/es/CSSTransition/CSSTransition.types.js +1 -0
- package/es/CSSTransition/demo/CSSTransitionDemo.js +47 -0
- package/es/CSSTransition/demo/index.css +25 -0
- package/es/CSSTransition/index.js +6 -0
- package/es/Calendar/Calendar.js +136 -51
- package/es/Calendar/__tests__/fixtures/A11yDemos.js +8 -0
- package/es/Calendar/index.css +167 -0
- package/es/Calendar/utils.js +29 -20
- package/es/Card/Card.css +9 -0
- package/es/Card/CardContent.css +1 -2
- package/es/Card/CardFooter.css +2 -4
- package/es/Card/CardHeader.css +5 -5
- package/es/Card/CardHeader.js +2 -2
- package/es/Card/index.css +77 -0
- package/es/Checkbox/Checkbox.js +9 -12
- package/es/Checkbox/CheckboxGroup.js +5 -8
- package/es/Checkbox/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Checkbox/index.css +51 -0
- package/es/CitySelector/CitySelector.miniapp.js +0 -1
- package/es/CitySelector/CitySelectorCore.js +1 -1
- package/es/CitySelector/Selector/index.css +4 -4
- package/es/CitySelector/index.css +120 -0
- package/es/Collapse/Collapse.js +19 -8
- package/es/Collapse/Collapse.miniapp.js +154 -75
- package/es/Collapse/index.css +45 -0
- package/es/CollapsePanel/CollapsePanel.js +1 -1
- package/es/CollapsePanel/CollapsePanelItem.js +45 -46
- package/es/CollapsePanel/index.css +36 -0
- package/es/Countdown/Countdown.js +64 -31
- package/es/Countdown/__tests__/fixtures/A11yDemos.js +68 -0
- package/es/Countdown/index.css +54 -0
- package/es/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/es/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/es/DesktopDatePicker/index.css +100 -0
- package/es/Dialog/Dialog.js +57 -35
- package/es/Dialog/FunctionalDialog.js +105 -94
- package/es/Dialog/__tests__/fixtures/A11yDemos.js +43 -0
- package/es/Dialog/index.css +39 -36
- package/es/Dialog/index.js +10 -3
- package/es/Divider/Divider.js +9 -6
- package/es/Divider/index.css +47 -0
- package/es/Drawer/Drawer.js +13 -19
- package/es/Drawer/__tests__/fixtures/A11yDemos.js +112 -0
- package/es/Drawer/index.css +36 -0
- package/es/Fade/Fade.js +52 -56
- package/es/IconButton/IconButton.js +26 -18
- package/es/IconButton/index.css +205 -0
- package/es/Image/Image.js +119 -119
- package/es/Image/__tests__/fixtures/A11yDemos.js +92 -0
- package/es/Image/index.css +7 -8
- package/es/Input/Input.js +9 -13
- package/es/Input/__tests__/fixtures/A11yDemos.js +43 -0
- package/es/Input/index.css +70 -0
- package/es/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/es/ItemSelector/ItemSelectorCore.js +1 -1
- package/es/List/List.css +7 -3
- package/es/List/List.js +3 -8
- package/es/List/ListItem.css +3 -3
- package/es/List/ListItem.js +42 -44
- package/es/List/ListItemContent.js +1 -4
- package/es/List/ListItemExtra.js +9 -4
- package/es/List/ListItemFooter.js +9 -4
- package/es/List/ListItemHeader.js +9 -4
- package/es/List/index.css +80 -0
- package/es/Loading/Loading.js +14 -5
- package/es/Loading/index.css +37 -0
- package/es/Modal/Modal.js +49 -55
- package/es/Modal/Modal.miniapp.js +50 -45
- package/es/Modal/ModalManager.js +214 -0
- package/es/Modal/__tests__/fixtures/A11yDemos.js +18 -0
- package/es/Modal/index.css +15 -0
- package/es/Modal/index.js +6 -1
- package/es/Modal/useModal.js +169 -0
- package/es/NavBar/NavBar.js +1 -2
- package/es/NavBar/index.css +65 -0
- package/es/Picker/Picker.css +21 -17
- package/es/Picker/Picker.js +53 -21
- package/es/Picker/PickerPanel.css +8 -8
- package/es/Picker/PickerPanel.js +92 -60
- package/es/Picker/__tests__/fixtures/A11yDemos.js +46 -0
- package/es/Picker/index.css +124 -0
- package/es/Picker/utils.js +9 -12
- package/es/Popover/Popover.js +127 -140
- package/es/Popover/__tests__/fixtures/A11yDemos.js +135 -0
- package/es/Popover/hooks/index.js +10 -0
- package/es/Popover/hooks/usePopoverA11y.js +43 -0
- package/es/Popover/hooks/usePopoverEvents.js +127 -0
- package/es/Popover/hooks/usePopoverPosition.js +105 -0
- package/es/Popover/hooks/usePopoverState.js +31 -0
- package/es/Popover/index.css +99 -0
- package/es/Portal/PortalCore.js +2 -2
- package/es/Progress/Progress.js +62 -7
- package/es/Progress/__tests__/fixtures/A11yDemos.js +62 -0
- package/es/Progress/index.css +28 -0
- package/es/Radio/Radio.js +8 -11
- package/es/Radio/RadioButtonIcon.js +6 -1
- package/es/Radio/RadioGroup.js +2 -5
- package/es/Radio/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Radio/index.css +69 -0
- package/es/Rating/Rating.js +9 -19
- package/es/Rating/index.css +65 -0
- package/es/ScrollView/ScrollView.js +53 -212
- package/es/ScrollView/__tests__/fixtures/A11yDemos.js +283 -0
- package/es/ScrollView/useScrollView.js +279 -0
- package/es/Select/Select.js +19 -18
- package/es/Select/SelectOption.js +6 -2
- package/es/Select/__tests__/fixtures/A11yDemos.js +118 -0
- package/es/Select/index.css +118 -0
- package/es/Skeleton/Skeleton.js +6 -10
- package/es/Skeleton/index.css +63 -0
- package/es/Slide/Slide.js +69 -74
- package/es/Slider/Slider.js +8 -16
- package/es/Slider/index.css +111 -0
- package/es/Stack/Stack.js +1 -1
- package/es/Stack/demo/index.css +2 -0
- package/es/Steps/Step.css +14 -14
- package/es/Steps/Step.js +81 -82
- package/es/Steps/Steps.css +18 -14
- package/es/Steps/Steps.js +57 -60
- package/es/Steps/index.css +199 -0
- package/es/SwipeAction/index.css +110 -0
- package/es/Swiper/Swiper.js +19 -5
- package/es/Swiper/index.css +25 -0
- package/es/Switch/Switch.js +77 -79
- package/es/Switch/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Switch/index.css +153 -0
- package/es/TabBar/TabBar.css +12 -8
- package/es/TabBar/TabBar.js +3 -8
- package/es/TabBar/TabBarItem.css +6 -0
- package/es/TabBar/TabBarItem.js +2 -2
- package/es/TabBar/index.css +59 -0
- package/es/Tabs/Tab.css +10 -16
- package/es/Tabs/Tab.js +37 -23
- package/es/Tabs/TabPanel.js +8 -4
- package/es/Tabs/Tabs.css +32 -21
- package/es/Tabs/Tabs.js +87 -106
- package/es/Tabs/TabsContext.js +3 -1
- package/es/Tabs/index.css +135 -0
- package/es/Tag/Tag.css +49 -23
- package/es/Tag/Tag.js +3 -7
- package/es/Tag/TagGroup.css +15 -11
- package/es/Tag/TagGroup.js +16 -14
- package/es/Tag/__tests__/fixtures/A11yDemos.js +160 -0
- package/es/Tag/index.css +182 -0
- package/es/TextArea/TextArea.js +55 -19
- package/es/TextArea/__tests__/fixtures/A11yDemos.js +54 -0
- package/es/TextArea/index.css +57 -0
- package/es/ThemeProvider/ThemeProvider.js +1 -4
- package/es/ThemeProvider/utils/constants.js +4 -1
- package/es/Toast/FunctionalToast.js +185 -96
- package/es/Toast/Toast.js +70 -29
- package/es/Toast/__tests__/fixtures/A11yDemos.js +21 -0
- package/es/Toast/index.css +57 -0
- package/es/Tooltip/Tooltip.js +65 -159
- package/es/Tooltip/__tests__/fixtures/A11yDemos.js +60 -0
- package/es/Tooltip/index.css +95 -0
- package/es/Tooltip/useTooltip.js +290 -0
- package/es/Transition/TransitionCore.js +28 -28
- package/es/TransitionGroup/TransitionGroup.js +109 -0
- package/es/TransitionGroup/TransitionGroup.types.js +1 -0
- package/es/TransitionGroup/demo/TransitionGroupDemo.js +39 -0
- package/es/TransitionGroup/demo/index.css +33 -0
- package/es/TransitionGroup/index.js +6 -0
- package/es/TransitionGroup/utils/childMapping.js +93 -0
- package/es/_.._/benchmarks/components/Button.js +8 -0
- package/es/_.._/benchmarks/components/Input.js +12 -0
- package/es/_.._/benchmarks/components/Tabs.js +17 -0
- package/es/benchmarks/components/Button.d.ts +3 -0
- package/es/benchmarks/components/Input.d.ts +3 -0
- package/es/benchmarks/components/Tabs.d.ts +3 -0
- package/es/index.js +2 -0
- package/es/locales/en-US.js +30 -2
- package/es/locales/zh-CN.js +32 -1
- package/es/locales/zh-TW.js +32 -1
- package/es/src/ActionSheet/ActionSheetItem.types.d.ts +38 -0
- package/es/src/Alert/Alert.types.d.ts +61 -0
- package/es/src/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -0
- package/es/src/Backdrop/Backdrop.d.ts +5 -0
- package/es/src/Backdrop/Backdrop.types.d.ts +21 -0
- package/es/src/Backdrop/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/es/src/Badge/Badge.d.ts +5 -0
- package/es/src/Badge/Badge.types.d.ts +56 -0
- package/es/src/Badge/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/src/Badge/hooks/useBadgeA11y.d.ts +23 -0
- package/es/src/Badge/hooks/useBadgeDisplay.d.ts +16 -0
- package/es/src/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/es/src/Button/Button.d.ts +5 -0
- package/es/src/Button/Button.types.d.ts +53 -0
- package/es/src/Button/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/es/src/CSSTransition/CSSTransition.d.ts +4 -0
- package/es/src/CSSTransition/CSSTransition.types.d.ts +13 -0
- package/es/src/CSSTransition/demo/CSSTransitionDemo.d.ts +4 -0
- package/es/src/CSSTransition/index.d.ts +2 -0
- package/es/src/Calendar/Calendar.d.ts +5 -0
- package/es/src/Calendar/Calendar.types.d.ts +112 -0
- package/es/src/Calendar/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/src/Calendar/utils.d.ts +29 -0
- package/es/src/Checkbox/Checkbox.d.ts +5 -0
- package/es/src/Checkbox/CheckboxGroup.d.ts +5 -0
- package/es/src/Checkbox/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/src/CitySelector/CitySelector.d.ts +4 -0
- package/es/src/CitySelector/CitySelector.miniapp.d.ts +4 -0
- package/es/src/CitySelector/CitySelector.types.d.ts +46 -0
- package/es/src/CitySelector/CitySelectorCore.d.ts +5 -0
- package/es/src/Collapse/Collapse.d.ts +5 -0
- package/es/src/Collapse/Collapse.miniapp.d.ts +10 -0
- package/es/src/CollapsePanel/CollapsePanel.d.ts +5 -0
- package/es/src/Countdown/Countdown.d.ts +5 -0
- package/es/src/Countdown/Countdown.types.d.ts +127 -0
- package/es/src/Countdown/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/es/src/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/es/src/Dialog/Dialog.d.ts +8 -0
- package/es/src/Dialog/Dialog.types.d.ts +137 -0
- package/es/src/Dialog/FunctionalDialog.d.ts +10 -0
- package/es/src/Dialog/__tests__/fixtures/A11yDemos.d.ts +9 -0
- package/es/src/Dialog/index.d.ts +5 -0
- package/es/src/Divider/Divider.d.ts +5 -0
- package/es/src/Drawer/Drawer.d.ts +5 -0
- package/es/src/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/IconButton/IconButton.d.ts +5 -0
- package/es/src/IconButton/IconButton.types.d.ts +76 -0
- package/es/src/Image/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/Input/Input.d.ts +5 -0
- package/es/src/Input/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/ItemSelector/ItemSelector.d.ts +4 -0
- package/es/src/ItemSelector/ItemSelector.miniapp.d.ts +4 -0
- package/es/src/ItemSelector/ItemSelector.types.d.ts +39 -0
- package/es/src/ItemSelector/ItemSelectorCore.d.ts +5 -0
- package/es/src/Loading/Loading.d.ts +5 -0
- package/es/src/Modal/Modal.d.ts +5 -0
- package/es/src/Modal/Modal.miniapp.d.ts +16 -0
- package/es/src/Modal/Modal.types.d.ts +44 -0
- package/es/src/Modal/ModalManager.d.ts +21 -0
- package/es/src/Modal/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/es/src/Modal/index.d.ts +6 -0
- package/es/src/Modal/useModal.d.ts +24 -0
- package/es/src/NavBar/NavBar.d.ts +5 -0
- package/es/src/Picker/Picker.types.d.ts +121 -0
- package/es/src/Picker/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/src/Picker/utils.d.ts +32 -0
- package/es/src/Popover/Popover.d.ts +5 -0
- package/es/src/Popover/Popover.types.d.ts +94 -0
- package/es/src/Popover/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/src/Popover/hooks/index.d.ts +8 -0
- package/es/src/Popover/hooks/usePopoverA11y.d.ts +14 -0
- package/es/src/Popover/hooks/usePopoverEvents.d.ts +21 -0
- package/es/src/Popover/hooks/usePopoverPosition.d.ts +17 -0
- package/es/src/Popover/hooks/usePopoverState.d.ts +16 -0
- package/es/src/Portal/Portal.types.d.ts +26 -0
- package/es/src/Progress/Progress.d.ts +8 -0
- package/es/src/Progress/Progress.types.d.ts +72 -0
- package/es/src/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/Radio/Radio.d.ts +5 -0
- package/es/src/Radio/RadioGroup.d.ts +5 -0
- package/es/src/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/src/Rating/Rating.d.ts +5 -0
- package/es/src/ScrollView/ScrollView.d.ts +5 -0
- package/es/src/ScrollView/ScrollView.types.d.ts +83 -0
- package/es/src/ScrollView/__tests__/fixtures/A11yDemos.d.ts +7 -0
- package/es/src/ScrollView/useScrollView.d.ts +10 -0
- package/es/src/Select/Select.d.ts +5 -0
- package/es/src/Select/Select.types.d.ts +104 -0
- package/es/src/Select/SelectOption.d.ts +5 -0
- package/es/src/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/Select/selectContext.d.ts +3 -0
- package/es/src/Skeleton/Skeleton.d.ts +5 -0
- package/es/src/Slider/Slider.d.ts +5 -0
- package/es/src/Stack/Stack.d.ts +5 -0
- package/es/src/Stack/demo/StackDemo.d.ts +4 -0
- package/es/src/Steps/Steps.d.ts +5 -0
- package/es/src/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/es/src/Swiper/Swiper.d.ts +10 -0
- package/es/src/Switch/Switch.d.ts +5 -0
- package/es/src/Switch/Switch.types.d.ts +56 -0
- package/es/src/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/src/TabBar/TabBarContext.d.ts +27 -0
- package/es/src/TabBar/index.types.d.ts +54 -0
- package/es/src/Tabs/Tab.types.d.ts +12 -0
- package/es/src/Tabs/TabPanel.d.ts +5 -0
- package/es/src/Tabs/Tabs.types.d.ts +35 -0
- package/es/src/Tabs/TabsContext.d.ts +8 -0
- package/es/src/Tag/Tag.types.d.ts +23 -0
- package/es/src/Tag/TagGroup.d.ts +5 -0
- package/es/src/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/TextArea/TextArea.d.ts +5 -0
- package/es/src/TextArea/TextArea.types.d.ts +98 -0
- package/es/src/TextArea/__tests__/fixtures/A11yDemos.d.ts +19 -0
- package/es/src/ThemeProvider/ThemeProvider.types.d.ts +122 -0
- package/es/src/ThemeProvider/utils/constants.d.ts +38 -0
- package/es/src/ThemeProvider/utils/mountTokens.d.ts +26 -0
- package/es/src/Toast/FunctionalToast.d.ts +3 -0
- package/es/src/Toast/Toast.d.ts +5 -0
- package/es/src/Toast/Toast.types.d.ts +104 -0
- package/es/src/Toast/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/src/Tooltip/Tooltip.d.ts +5 -0
- package/es/src/Tooltip/Tooltip.types.d.ts +99 -0
- package/es/src/Tooltip/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/src/Tooltip/useTooltip.d.ts +29 -0
- package/es/src/TransitionGroup/TransitionGroup.d.ts +7 -0
- package/es/src/TransitionGroup/TransitionGroup.types.d.ts +47 -0
- package/es/src/TransitionGroup/demo/TransitionGroupDemo.d.ts +4 -0
- package/es/src/TransitionGroup/index.d.ts +2 -0
- package/es/src/TransitionGroup/utils/childMapping.d.ts +27 -0
- package/es/src/index.d.ts +58 -0
- package/es/src/locales/base.d.ts +79 -0
- package/package.json +18 -7
- package/dist/ActionSheet/ActionSheetItem.types.d.ts +0 -38
- package/dist/Alert/Alert.types.d.ts +0 -61
- package/dist/Backdrop/Backdrop.css +0 -15
- package/dist/Backdrop/Backdrop.d.ts +0 -5
- package/dist/Backdrop/Backdrop.types.d.ts +0 -17
- package/dist/Badge/Badge.css +0 -105
- package/dist/Badge/Badge.d.ts +0 -5
- package/dist/Badge/Badge.types.d.ts +0 -27
- package/dist/Breadcrumb/Breadcrumb.css +0 -34
- package/dist/Breadcrumb/Breadcrumb.d.ts +0 -5
- package/dist/Button/Button.css +0 -237
- package/dist/Button/Button.d.ts +0 -5
- package/dist/Button/Button.types.d.ts +0 -52
- package/dist/Calendar/Calendar.css +0 -120
- package/dist/Calendar/Calendar.d.ts +0 -5
- package/dist/Calendar/Calendar.types.d.ts +0 -102
- package/dist/Calendar/utils.d.ts +0 -25
- package/dist/Checkbox/Checkbox.css +0 -47
- package/dist/Checkbox/Checkbox.d.ts +0 -5
- package/dist/Checkbox/CheckboxGroup.d.ts +0 -5
- package/dist/CitySelector/CitySelector.css +0 -116
- package/dist/CitySelector/CitySelector.miniapp.d.ts +0 -5
- package/dist/CitySelector/CitySelector.types.d.ts +0 -47
- package/dist/CitySelector/CitySelectorCore.d.ts +0 -5
- package/dist/CitySelector/miniapp.css +0 -4
- package/dist/Collapse/Collapse.css +0 -5
- package/dist/Collapse/Collapse.d.ts +0 -5
- package/dist/Collapse/Collapse.miniapp.d.ts +0 -5
- package/dist/CollapsePanel/CollapsePanel.css +0 -34
- package/dist/CollapsePanel/CollapsePanel.d.ts +0 -5
- package/dist/Countdown/Countdown.css +0 -39
- package/dist/Countdown/Countdown.d.ts +0 -5
- package/dist/Countdown/Countdown.types.d.ts +0 -123
- package/dist/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
- package/dist/Dialog/Dialog.d.ts +0 -5
- package/dist/Dialog/Dialog.types.d.ts +0 -114
- package/dist/Dialog/FunctionalDialog.d.ts +0 -3
- package/dist/Dialog/index.d.ts +0 -2
- package/dist/Divider/Divider.css +0 -43
- package/dist/Divider/Divider.d.ts +0 -5
- package/dist/Drawer/Drawer.css +0 -34
- package/dist/Drawer/Drawer.d.ts +0 -5
- package/dist/IconButton/IconButton.css +0 -152
- package/dist/IconButton/IconButton.d.ts +0 -5
- package/dist/IconButton/IconButton.types.d.ts +0 -40
- package/dist/Input/Input.css +0 -64
- package/dist/Input/Input.d.ts +0 -5
- package/dist/ItemSelector/ItemSelector.miniapp.d.ts +0 -5
- package/dist/ItemSelector/ItemSelector.types.d.ts +0 -40
- package/dist/ItemSelector/ItemSelectorCore.d.ts +0 -5
- package/dist/ItemSelector/miniapp.css +0 -4
- package/dist/Loading/Loading.css +0 -33
- package/dist/Loading/Loading.d.ts +0 -5
- package/dist/Modal/Modal.css +0 -15
- package/dist/Modal/Modal.d.ts +0 -5
- package/dist/Modal/Modal.miniapp.d.ts +0 -16
- package/dist/Modal/Modal.types.d.ts +0 -20
- package/dist/Modal/index.d.ts +0 -3
- package/dist/NavBar/NavBar.css +0 -61
- package/dist/NavBar/NavBar.d.ts +0 -5
- package/dist/Picker/Picker.types.d.ts +0 -121
- package/dist/Picker/utils.d.ts +0 -29
- package/dist/Popover/Popover.css +0 -95
- package/dist/Popover/Popover.d.ts +0 -5
- package/dist/Popover/Popover.types.d.ts +0 -57
- package/dist/Portal/Portal.types.d.ts +0 -26
- package/dist/Progress/Progress.css +0 -24
- package/dist/Progress/Progress.d.ts +0 -8
- package/dist/Progress/Progress.types.d.ts +0 -28
- package/dist/Radio/Radio.css +0 -66
- package/dist/Radio/Radio.d.ts +0 -5
- package/dist/Radio/RadioGroup.d.ts +0 -5
- package/dist/Rating/Rating.css +0 -56
- package/dist/Rating/Rating.d.ts +0 -5
- package/dist/ScrollView/ScrollView.d.ts +0 -5
- package/dist/ScrollView/ScrollView.types.d.ts +0 -257
- package/dist/Select/Select.css +0 -104
- package/dist/Select/Select.d.ts +0 -5
- package/dist/Select/Select.types.d.ts +0 -104
- package/dist/Select/SelectOption.d.ts +0 -5
- package/dist/Select/selectContext.d.ts +0 -4
- package/dist/Skeleton/Skeleton.css +0 -59
- package/dist/Skeleton/Skeleton.d.ts +0 -5
- package/dist/Slider/Slider.css +0 -106
- package/dist/Slider/Slider.d.ts +0 -5
- package/dist/Stack/Stack.d.ts +0 -5
- package/dist/Steps/Steps.d.ts +0 -5
- package/dist/SwipeAction/SwipeActionContext.d.ts +0 -4
- package/dist/Swiper/Swiper.css +0 -21
- package/dist/Swiper/Swiper.d.ts +0 -10
- package/dist/Switch/Switch.css +0 -142
- package/dist/Switch/Switch.d.ts +0 -5
- package/dist/Switch/Switch.types.d.ts +0 -56
- package/dist/TabBar/TabBarContext.d.ts +0 -27
- package/dist/TabBar/index.types.d.ts +0 -54
- package/dist/Tabs/Tab.types.d.ts +0 -12
- package/dist/Tabs/TabPanel.d.ts +0 -5
- package/dist/Tabs/Tabs.types.d.ts +0 -45
- package/dist/Tabs/TabsContext.d.ts +0 -9
- package/dist/Tag/Tag.types.d.ts +0 -23
- package/dist/Tag/TagGroup.d.ts +0 -5
- package/dist/TextArea/TextArea.css +0 -53
- package/dist/TextArea/TextArea.d.ts +0 -5
- package/dist/TextArea/TextArea.types.d.ts +0 -70
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +0 -127
- package/dist/ThemeProvider/utils/constants.d.ts +0 -38
- package/dist/ThemeProvider/utils/mountTokens.d.ts +0 -26
- package/dist/Toast/FunctionalToast.d.ts +0 -3
- package/dist/Toast/Toast.css +0 -53
- package/dist/Toast/Toast.d.ts +0 -5
- package/dist/Toast/Toast.types.d.ts +0 -106
- package/dist/Tooltip/Tooltip.css +0 -91
- package/dist/Tooltip/Tooltip.d.ts +0 -5
- package/dist/Tooltip/Tooltip.types.d.ts +0 -48
- package/dist/index.d.ts +0 -56
- package/dist/locales/base.d.ts +0 -51
- package/es/ActionSheet/ActionSheetItem.types.d.ts +0 -38
- package/es/Alert/Alert.types.d.ts +0 -61
- package/es/Backdrop/Backdrop.css +0 -15
- package/es/Backdrop/Backdrop.d.ts +0 -5
- package/es/Backdrop/Backdrop.types.d.ts +0 -17
- package/es/Badge/Badge.css +0 -105
- package/es/Badge/Badge.d.ts +0 -5
- package/es/Badge/Badge.types.d.ts +0 -27
- package/es/Breadcrumb/Breadcrumb.css +0 -34
- package/es/Breadcrumb/Breadcrumb.d.ts +0 -5
- package/es/Button/Button.css +0 -237
- package/es/Button/Button.d.ts +0 -5
- package/es/Button/Button.types.d.ts +0 -52
- package/es/Calendar/Calendar.css +0 -120
- package/es/Calendar/Calendar.d.ts +0 -5
- package/es/Calendar/Calendar.types.d.ts +0 -102
- package/es/Calendar/utils.d.ts +0 -25
- package/es/Checkbox/Checkbox.css +0 -47
- package/es/Checkbox/Checkbox.d.ts +0 -5
- package/es/Checkbox/CheckboxGroup.d.ts +0 -5
- package/es/CitySelector/CitySelector.css +0 -116
- package/es/CitySelector/CitySelector.miniapp.d.ts +0 -5
- package/es/CitySelector/CitySelector.types.d.ts +0 -47
- package/es/CitySelector/CitySelectorCore.d.ts +0 -5
- package/es/CitySelector/miniapp.css +0 -4
- package/es/Collapse/Collapse.css +0 -5
- package/es/Collapse/Collapse.d.ts +0 -5
- package/es/Collapse/Collapse.miniapp.d.ts +0 -5
- package/es/CollapsePanel/CollapsePanel.css +0 -34
- package/es/CollapsePanel/CollapsePanel.d.ts +0 -5
- package/es/Countdown/Countdown.css +0 -39
- package/es/Countdown/Countdown.d.ts +0 -5
- package/es/Countdown/Countdown.types.d.ts +0 -123
- package/es/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
- package/es/Dialog/Dialog.d.ts +0 -5
- package/es/Dialog/Dialog.types.d.ts +0 -114
- package/es/Dialog/FunctionalDialog.d.ts +0 -3
- package/es/Dialog/index.d.ts +0 -2
- package/es/Divider/Divider.css +0 -43
- package/es/Divider/Divider.d.ts +0 -5
- package/es/Drawer/Drawer.css +0 -34
- package/es/Drawer/Drawer.d.ts +0 -5
- package/es/IconButton/IconButton.css +0 -152
- package/es/IconButton/IconButton.d.ts +0 -5
- package/es/IconButton/IconButton.types.d.ts +0 -40
- package/es/Input/Input.css +0 -64
- package/es/Input/Input.d.ts +0 -5
- package/es/ItemSelector/ItemSelector.miniapp.d.ts +0 -5
- package/es/ItemSelector/ItemSelector.types.d.ts +0 -40
- package/es/ItemSelector/ItemSelectorCore.d.ts +0 -5
- package/es/ItemSelector/miniapp.css +0 -4
- package/es/Loading/Loading.css +0 -33
- package/es/Loading/Loading.d.ts +0 -5
- package/es/Modal/Modal.css +0 -15
- package/es/Modal/Modal.d.ts +0 -5
- package/es/Modal/Modal.miniapp.d.ts +0 -16
- package/es/Modal/Modal.types.d.ts +0 -20
- package/es/Modal/index.d.ts +0 -3
- package/es/NavBar/NavBar.css +0 -61
- package/es/NavBar/NavBar.d.ts +0 -5
- package/es/Picker/Picker.types.d.ts +0 -121
- package/es/Picker/utils.d.ts +0 -29
- package/es/Popover/Popover.css +0 -95
- package/es/Popover/Popover.d.ts +0 -5
- package/es/Popover/Popover.types.d.ts +0 -57
- package/es/Portal/Portal.types.d.ts +0 -26
- package/es/Progress/Progress.css +0 -24
- package/es/Progress/Progress.d.ts +0 -8
- package/es/Progress/Progress.types.d.ts +0 -28
- package/es/Radio/Radio.css +0 -66
- package/es/Radio/Radio.d.ts +0 -5
- package/es/Radio/RadioGroup.d.ts +0 -5
- package/es/Rating/Rating.css +0 -56
- package/es/Rating/Rating.d.ts +0 -5
- package/es/ScrollView/ScrollView.d.ts +0 -5
- package/es/ScrollView/ScrollView.types.d.ts +0 -257
- package/es/Select/Select.css +0 -104
- package/es/Select/Select.d.ts +0 -5
- package/es/Select/Select.types.d.ts +0 -104
- package/es/Select/SelectOption.d.ts +0 -5
- package/es/Select/selectContext.d.ts +0 -4
- package/es/Skeleton/Skeleton.css +0 -59
- package/es/Skeleton/Skeleton.d.ts +0 -5
- package/es/Slider/Slider.css +0 -106
- package/es/Slider/Slider.d.ts +0 -5
- package/es/Stack/Stack.d.ts +0 -5
- package/es/Steps/Steps.d.ts +0 -5
- package/es/SwipeAction/SwipeActionContext.d.ts +0 -4
- package/es/Swiper/Swiper.css +0 -21
- package/es/Swiper/Swiper.d.ts +0 -10
- package/es/Switch/Switch.css +0 -142
- package/es/Switch/Switch.d.ts +0 -5
- package/es/Switch/Switch.types.d.ts +0 -56
- package/es/TabBar/TabBarContext.d.ts +0 -27
- package/es/TabBar/index.types.d.ts +0 -54
- package/es/Tabs/Tab.types.d.ts +0 -12
- package/es/Tabs/TabPanel.d.ts +0 -5
- package/es/Tabs/Tabs.types.d.ts +0 -45
- package/es/Tabs/TabsContext.d.ts +0 -9
- package/es/Tag/Tag.types.d.ts +0 -23
- package/es/Tag/TagGroup.d.ts +0 -5
- package/es/TextArea/TextArea.css +0 -53
- package/es/TextArea/TextArea.d.ts +0 -5
- package/es/TextArea/TextArea.types.d.ts +0 -70
- package/es/ThemeProvider/ThemeProvider.types.d.ts +0 -127
- package/es/ThemeProvider/utils/constants.d.ts +0 -38
- package/es/ThemeProvider/utils/mountTokens.d.ts +0 -26
- package/es/Toast/FunctionalToast.d.ts +0 -3
- package/es/Toast/Toast.css +0 -53
- package/es/Toast/Toast.d.ts +0 -5
- package/es/Toast/Toast.types.d.ts +0 -106
- package/es/Tooltip/Tooltip.css +0 -91
- package/es/Tooltip/Tooltip.d.ts +0 -5
- package/es/Tooltip/Tooltip.types.d.ts +0 -48
- package/es/index.d.ts +0 -56
- package/es/locales/base.d.ts +0 -51
- /package/dist/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/dist/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/dist/Stack/{Stack.css → index.css} +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/ActionSheet.d.ts +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/ActionSheet.types.d.ts +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/ActionSheetContext.d.ts +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/ActionSheetItem.d.ts +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/index.d.ts +0 -0
- /package/dist/{Alert → src/Alert}/Alert.d.ts +0 -0
- /package/dist/{Alert → src/Alert}/index.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/Avatar.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/Avatar.types.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/AvatarGroup.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/AvatarGroup.types.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/index.d.ts +0 -0
- /package/dist/{Backdrop → src/Backdrop}/index.d.ts +0 -0
- /package/dist/{Badge → src/Badge}/index.d.ts +0 -0
- /package/dist/{Breadcrumb → src/Breadcrumb}/Breadcrumb.types.d.ts +0 -0
- /package/dist/{Breadcrumb → src/Breadcrumb}/BreadcrumbItem.d.ts +0 -0
- /package/dist/{Breadcrumb → src/Breadcrumb}/index.d.ts +0 -0
- /package/dist/{Button → src/Button}/index.d.ts +0 -0
- /package/dist/{Stack/demo/StackDemo.d.ts → src/CSSTransition/demo/CSSTransitionDemo.d.ts} +0 -0
- /package/dist/{Calendar → src/Calendar}/index.d.ts +0 -0
- /package/dist/{Card → src/Card}/Card.d.ts +0 -0
- /package/dist/{Card → src/Card}/Card.types.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardContent.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardContent.types.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardFooter.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardFooter.types.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardHeader.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardHeader.types.d.ts +0 -0
- /package/dist/{Card → src/Card}/index.d.ts +0 -0
- /package/dist/{Checkbox → src/Checkbox}/Checkbox.types.d.ts +0 -0
- /package/dist/{Checkbox → src/Checkbox}/CheckboxContext.d.ts +0 -0
- /package/dist/{Checkbox → src/Checkbox}/index.d.ts +0 -0
- /package/dist/{CitySelector → src/CitySelector}/CitySelector.d.ts +0 -0
- /package/{es/CitySelector/CitySelector.d.ts → dist/src/CitySelector/CitySelector.miniapp.d.ts} +0 -0
- /package/dist/{CitySelector → src/CitySelector}/Selector/index.d.ts +0 -0
- /package/dist/{CitySelector → src/CitySelector}/index.d.ts +0 -0
- /package/dist/{Collapse → src/Collapse}/Collapse.types.d.ts +0 -0
- /package/dist/{Collapse → src/Collapse}/index.d.ts +0 -0
- /package/dist/{CollapsePanel → src/CollapsePanel}/CollapsePanel.types.d.ts +0 -0
- /package/dist/{CollapsePanel → src/CollapsePanel}/CollapsePanelItem.d.ts +0 -0
- /package/dist/{CollapsePanel → src/CollapsePanel}/index.d.ts +0 -0
- /package/dist/{Countdown → src/Countdown}/index.d.ts +0 -0
- /package/dist/{Countdown → src/Countdown}/useCountdown.d.ts +0 -0
- /package/dist/{Countdown → src/Countdown}/utils.d.ts +0 -0
- /package/dist/{DatePicker → src/DatePicker}/DatePicker.d.ts +0 -0
- /package/dist/{DatePicker → src/DatePicker}/DatePicker.types.d.ts +0 -0
- /package/dist/{DatePicker → src/DatePicker}/constants.d.ts +0 -0
- /package/dist/{DatePicker → src/DatePicker}/index.d.ts +0 -0
- /package/dist/{DesktopDatePicker → src/DesktopDatePicker}/DesktopDatePicker.types.d.ts +0 -0
- /package/dist/{DesktopDatePicker → src/DesktopDatePicker}/index.d.ts +0 -0
- /package/dist/{DesktopDatePicker → src/DesktopDatePicker}/useGetDatePickerContent.d.ts +0 -0
- /package/dist/{DesktopDateTimePicker → src/DesktopDateTimePicker}/DesktopDateTimePicker.d.ts +0 -0
- /package/dist/{DesktopDateTimePicker → src/DesktopDateTimePicker}/DesktopDateTimePicker.types.d.ts +0 -0
- /package/dist/{DesktopDateTimePicker → src/DesktopDateTimePicker}/index.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/DesktopPicker.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/DesktopPicker.types.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/index.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/utils/calcAfterMounted.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/utils/calcAfterMounted.miniapp.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePicker.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePicker.types.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePickerList.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/index.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/useGetTimePickerContent.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/utils/scrollUtil.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/utils/scrollUtil.miniapp.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/utils/utils.d.ts +0 -0
- /package/dist/{Divider → src/Divider}/Divider.types.d.ts +0 -0
- /package/dist/{Divider → src/Divider}/index.d.ts +0 -0
- /package/dist/{Drawer → src/Drawer}/Drawer.types.d.ts +0 -0
- /package/dist/{Drawer → src/Drawer}/index.d.ts +0 -0
- /package/dist/{Fade → src/Fade}/Fade.d.ts +0 -0
- /package/dist/{Fade → src/Fade}/Fade.miniapp.d.ts +0 -0
- /package/dist/{Fade → src/Fade}/Fade.types.d.ts +0 -0
- /package/dist/{Fade → src/Fade}/index.d.ts +0 -0
- /package/dist/{IconButton → src/IconButton}/index.d.ts +0 -0
- /package/dist/{Image → src/Image}/Image.d.ts +0 -0
- /package/dist/{Image → src/Image}/Image.types.d.ts +0 -0
- /package/dist/{Image → src/Image}/index.d.ts +0 -0
- /package/dist/{Input → src/Input}/Input.types.d.ts +0 -0
- /package/dist/{Input → src/Input}/index.d.ts +0 -0
- /package/dist/{ItemSelector → src/ItemSelector}/ItemSelector.d.ts +0 -0
- /package/{es/ItemSelector/ItemSelector.d.ts → dist/src/ItemSelector/ItemSelector.miniapp.d.ts} +0 -0
- /package/dist/{ItemSelector → src/ItemSelector}/Selector/index.d.ts +0 -0
- /package/dist/{ItemSelector → src/ItemSelector}/index.d.ts +0 -0
- /package/dist/{List → src/List}/List.d.ts +0 -0
- /package/dist/{List → src/List}/List.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListContext.d.ts +0 -0
- /package/dist/{List → src/List}/ListItem.d.ts +0 -0
- /package/dist/{List → src/List}/ListItem.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemContent.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemContent.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemExtra.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemExtra.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemFooter.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemFooter.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemHeader.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemHeader.types.d.ts +0 -0
- /package/dist/{List → src/List}/index.d.ts +0 -0
- /package/dist/{Loading → src/Loading}/Loading.types.d.ts +0 -0
- /package/dist/{Loading → src/Loading}/index.d.ts +0 -0
- /package/dist/{NavBar → src/NavBar}/NavBar.types.d.ts +0 -0
- /package/dist/{NavBar → src/NavBar}/index.d.ts +0 -0
- /package/dist/{Picker → src/Picker}/Picker.d.ts +0 -0
- /package/dist/{Picker → src/Picker}/PickerPanel.d.ts +0 -0
- /package/dist/{Picker → src/Picker}/index.d.ts +0 -0
- /package/dist/{Popover → src/Popover}/index.d.ts +0 -0
- /package/dist/{Portal → src/Portal}/Portal.d.ts +0 -0
- /package/dist/{Portal → src/Portal}/Portal.miniapp.d.ts +0 -0
- /package/dist/{Portal → src/Portal}/PortalCore.d.ts +0 -0
- /package/dist/{Portal → src/Portal}/index.d.ts +0 -0
- /package/dist/{Progress → src/Progress}/index.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/Radio.types.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/RadioButtonIcon.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/RadioContext.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/index.d.ts +0 -0
- /package/dist/{Rating → src/Rating}/Rating.types.d.ts +0 -0
- /package/dist/{Rating → src/Rating}/index.d.ts +0 -0
- /package/dist/{ScrollView → src/ScrollView}/ScrollView.miniapp.d.ts +0 -0
- /package/dist/{ScrollView → src/ScrollView}/index.d.ts +0 -0
- /package/dist/{Select → src/Select}/index.d.ts +0 -0
- /package/dist/{Skeleton → src/Skeleton}/Skeleton.types.d.ts +0 -0
- /package/dist/{Skeleton → src/Skeleton}/index.d.ts +0 -0
- /package/dist/{Slide → src/Slide}/Slide.d.ts +0 -0
- /package/dist/{Slide → src/Slide}/Slide.miniapp.d.ts +0 -0
- /package/dist/{Slide → src/Slide}/Slide.types.d.ts +0 -0
- /package/dist/{Slide → src/Slide}/index.d.ts +0 -0
- /package/dist/{Slider → src/Slider}/Slider.types.d.ts +0 -0
- /package/dist/{Slider → src/Slider}/index.d.ts +0 -0
- /package/dist/{Slider → src/Slider}/utils.d.ts +0 -0
- /package/dist/{Stack → src/Stack}/Stack.types.d.ts +0 -0
- /package/{es → dist/src}/Stack/demo/StackDemo.d.ts +0 -0
- /package/dist/{Stack → src/Stack}/index.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/Step.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/Step.types.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/Steps.types.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/StepsContext.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/index.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/SwipeAction.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/SwipeAction.types.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/SwipeActionItem.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/constants.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/index.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/Swiper.miniapp.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/Swiper.types.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/SwiperItem.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/SwiperItem.miniapp.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/index.d.ts +0 -0
- /package/dist/{Switch → src/Switch}/index.d.ts +0 -0
- /package/dist/{TabBar → src/TabBar}/TabBar.d.ts +0 -0
- /package/dist/{TabBar → src/TabBar}/TabBarItem.d.ts +0 -0
- /package/dist/{TabBar → src/TabBar}/index.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/Tab.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/TabPanel.types.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/Tabs.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/index.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/utils/scroll.d.ts +0 -0
- /package/dist/{Tag → src/Tag}/Tag.d.ts +0 -0
- /package/dist/{Tag → src/Tag}/TagGroup.types.d.ts +0 -0
- /package/dist/{Tag → src/Tag}/index.d.ts +0 -0
- /package/dist/{TextArea → src/TextArea}/index.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/ThemeProvider.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/hooks/ThemeContext.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/hooks/createTheme.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/hooks/index.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/hooks/useTheme.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/index.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/utils/index.d.ts +0 -0
- /package/dist/{Toast → src/Toast}/index.d.ts +0 -0
- /package/dist/{Tooltip → src/Tooltip}/index.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/Transition.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/Transition.miniapp.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/Transition.types.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/TransitionCore.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/index.d.ts +0 -0
- /package/dist/{locales → src/locales}/en-US.d.ts +0 -0
- /package/dist/{locales → src/locales}/hooks/useLocaleText.d.ts +0 -0
- /package/dist/{locales → src/locales}/index.d.ts +0 -0
- /package/dist/{locales → src/locales}/zh-CN.d.ts +0 -0
- /package/dist/{locales → src/locales}/zh-TW.d.ts +0 -0
- /package/es/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/es/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/es/Stack/{Stack.css → index.css} +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/ActionSheet.d.ts +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/ActionSheet.types.d.ts +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/ActionSheetContext.d.ts +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/ActionSheetItem.d.ts +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/index.d.ts +0 -0
- /package/es/{Alert → src/Alert}/Alert.d.ts +0 -0
- /package/es/{Alert → src/Alert}/index.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/Avatar.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/Avatar.types.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/AvatarGroup.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/AvatarGroup.types.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/index.d.ts +0 -0
- /package/es/{Backdrop → src/Backdrop}/index.d.ts +0 -0
- /package/es/{Badge → src/Badge}/index.d.ts +0 -0
- /package/es/{Breadcrumb → src/Breadcrumb}/Breadcrumb.types.d.ts +0 -0
- /package/es/{Breadcrumb → src/Breadcrumb}/BreadcrumbItem.d.ts +0 -0
- /package/es/{Breadcrumb → src/Breadcrumb}/index.d.ts +0 -0
- /package/es/{Button → src/Button}/index.d.ts +0 -0
- /package/es/{Calendar → src/Calendar}/index.d.ts +0 -0
- /package/es/{Card → src/Card}/Card.d.ts +0 -0
- /package/es/{Card → src/Card}/Card.types.d.ts +0 -0
- /package/es/{Card → src/Card}/CardContent.d.ts +0 -0
- /package/es/{Card → src/Card}/CardContent.types.d.ts +0 -0
- /package/es/{Card → src/Card}/CardFooter.d.ts +0 -0
- /package/es/{Card → src/Card}/CardFooter.types.d.ts +0 -0
- /package/es/{Card → src/Card}/CardHeader.d.ts +0 -0
- /package/es/{Card → src/Card}/CardHeader.types.d.ts +0 -0
- /package/es/{Card → src/Card}/index.d.ts +0 -0
- /package/es/{Checkbox → src/Checkbox}/Checkbox.types.d.ts +0 -0
- /package/es/{Checkbox → src/Checkbox}/CheckboxContext.d.ts +0 -0
- /package/es/{Checkbox → src/Checkbox}/index.d.ts +0 -0
- /package/es/{CitySelector → src/CitySelector}/Selector/index.d.ts +0 -0
- /package/es/{CitySelector → src/CitySelector}/index.d.ts +0 -0
- /package/es/{Collapse → src/Collapse}/Collapse.types.d.ts +0 -0
- /package/es/{Collapse → src/Collapse}/index.d.ts +0 -0
- /package/es/{CollapsePanel → src/CollapsePanel}/CollapsePanel.types.d.ts +0 -0
- /package/es/{CollapsePanel → src/CollapsePanel}/CollapsePanelItem.d.ts +0 -0
- /package/es/{CollapsePanel → src/CollapsePanel}/index.d.ts +0 -0
- /package/es/{Countdown → src/Countdown}/index.d.ts +0 -0
- /package/es/{Countdown → src/Countdown}/useCountdown.d.ts +0 -0
- /package/es/{Countdown → src/Countdown}/utils.d.ts +0 -0
- /package/es/{DatePicker → src/DatePicker}/DatePicker.d.ts +0 -0
- /package/es/{DatePicker → src/DatePicker}/DatePicker.types.d.ts +0 -0
- /package/es/{DatePicker → src/DatePicker}/constants.d.ts +0 -0
- /package/es/{DatePicker → src/DatePicker}/index.d.ts +0 -0
- /package/es/{DesktopDatePicker → src/DesktopDatePicker}/DesktopDatePicker.types.d.ts +0 -0
- /package/es/{DesktopDatePicker → src/DesktopDatePicker}/index.d.ts +0 -0
- /package/es/{DesktopDatePicker → src/DesktopDatePicker}/useGetDatePickerContent.d.ts +0 -0
- /package/es/{DesktopDateTimePicker → src/DesktopDateTimePicker}/DesktopDateTimePicker.d.ts +0 -0
- /package/es/{DesktopDateTimePicker → src/DesktopDateTimePicker}/DesktopDateTimePicker.types.d.ts +0 -0
- /package/es/{DesktopDateTimePicker → src/DesktopDateTimePicker}/index.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/DesktopPicker.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/DesktopPicker.types.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/index.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/utils/calcAfterMounted.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/utils/calcAfterMounted.miniapp.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePicker.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePicker.types.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePickerList.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/index.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/useGetTimePickerContent.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/utils/scrollUtil.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/utils/scrollUtil.miniapp.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/utils/utils.d.ts +0 -0
- /package/es/{Divider → src/Divider}/Divider.types.d.ts +0 -0
- /package/es/{Divider → src/Divider}/index.d.ts +0 -0
- /package/es/{Drawer → src/Drawer}/Drawer.types.d.ts +0 -0
- /package/es/{Drawer → src/Drawer}/index.d.ts +0 -0
- /package/es/{Fade → src/Fade}/Fade.d.ts +0 -0
- /package/es/{Fade → src/Fade}/Fade.miniapp.d.ts +0 -0
- /package/es/{Fade → src/Fade}/Fade.types.d.ts +0 -0
- /package/es/{Fade → src/Fade}/index.d.ts +0 -0
- /package/es/{IconButton → src/IconButton}/index.d.ts +0 -0
- /package/es/{Image → src/Image}/Image.d.ts +0 -0
- /package/es/{Image → src/Image}/Image.types.d.ts +0 -0
- /package/es/{Image → src/Image}/index.d.ts +0 -0
- /package/es/{Input → src/Input}/Input.types.d.ts +0 -0
- /package/es/{Input → src/Input}/index.d.ts +0 -0
- /package/es/{ItemSelector → src/ItemSelector}/Selector/index.d.ts +0 -0
- /package/es/{ItemSelector → src/ItemSelector}/index.d.ts +0 -0
- /package/es/{List → src/List}/List.d.ts +0 -0
- /package/es/{List → src/List}/List.types.d.ts +0 -0
- /package/es/{List → src/List}/ListContext.d.ts +0 -0
- /package/es/{List → src/List}/ListItem.d.ts +0 -0
- /package/es/{List → src/List}/ListItem.types.d.ts +0 -0
- /package/es/{List → src/List}/ListItemContent.d.ts +0 -0
- /package/es/{List → src/List}/ListItemContent.types.d.ts +0 -0
- /package/es/{List → src/List}/ListItemExtra.d.ts +0 -0
- /package/es/{List → src/List}/ListItemExtra.types.d.ts +0 -0
- /package/es/{List → src/List}/ListItemFooter.d.ts +0 -0
- /package/es/{List → src/List}/ListItemFooter.types.d.ts +0 -0
- /package/es/{List → src/List}/ListItemHeader.d.ts +0 -0
- /package/es/{List → src/List}/ListItemHeader.types.d.ts +0 -0
- /package/es/{List → src/List}/index.d.ts +0 -0
- /package/es/{Loading → src/Loading}/Loading.types.d.ts +0 -0
- /package/es/{Loading → src/Loading}/index.d.ts +0 -0
- /package/es/{NavBar → src/NavBar}/NavBar.types.d.ts +0 -0
- /package/es/{NavBar → src/NavBar}/index.d.ts +0 -0
- /package/es/{Picker → src/Picker}/Picker.d.ts +0 -0
- /package/es/{Picker → src/Picker}/PickerPanel.d.ts +0 -0
- /package/es/{Picker → src/Picker}/index.d.ts +0 -0
- /package/es/{Popover → src/Popover}/index.d.ts +0 -0
- /package/es/{Portal → src/Portal}/Portal.d.ts +0 -0
- /package/es/{Portal → src/Portal}/Portal.miniapp.d.ts +0 -0
- /package/es/{Portal → src/Portal}/PortalCore.d.ts +0 -0
- /package/es/{Portal → src/Portal}/index.d.ts +0 -0
- /package/es/{Progress → src/Progress}/index.d.ts +0 -0
- /package/es/{Radio → src/Radio}/Radio.types.d.ts +0 -0
- /package/es/{Radio → src/Radio}/RadioButtonIcon.d.ts +0 -0
- /package/es/{Radio → src/Radio}/RadioContext.d.ts +0 -0
- /package/es/{Radio → src/Radio}/index.d.ts +0 -0
- /package/es/{Rating → src/Rating}/Rating.types.d.ts +0 -0
- /package/es/{Rating → src/Rating}/index.d.ts +0 -0
- /package/es/{ScrollView → src/ScrollView}/ScrollView.miniapp.d.ts +0 -0
- /package/es/{ScrollView → src/ScrollView}/index.d.ts +0 -0
- /package/es/{Select → src/Select}/index.d.ts +0 -0
- /package/es/{Skeleton → src/Skeleton}/Skeleton.types.d.ts +0 -0
- /package/es/{Skeleton → src/Skeleton}/index.d.ts +0 -0
- /package/es/{Slide → src/Slide}/Slide.d.ts +0 -0
- /package/es/{Slide → src/Slide}/Slide.miniapp.d.ts +0 -0
- /package/es/{Slide → src/Slide}/Slide.types.d.ts +0 -0
- /package/es/{Slide → src/Slide}/index.d.ts +0 -0
- /package/es/{Slider → src/Slider}/Slider.types.d.ts +0 -0
- /package/es/{Slider → src/Slider}/index.d.ts +0 -0
- /package/es/{Slider → src/Slider}/utils.d.ts +0 -0
- /package/es/{Stack → src/Stack}/Stack.types.d.ts +0 -0
- /package/es/{Stack → src/Stack}/index.d.ts +0 -0
- /package/es/{Steps → src/Steps}/Step.d.ts +0 -0
- /package/es/{Steps → src/Steps}/Step.types.d.ts +0 -0
- /package/es/{Steps → src/Steps}/Steps.types.d.ts +0 -0
- /package/es/{Steps → src/Steps}/StepsContext.d.ts +0 -0
- /package/es/{Steps → src/Steps}/index.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/SwipeAction.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/SwipeAction.types.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/SwipeActionItem.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/constants.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/index.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/Swiper.miniapp.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/Swiper.types.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/SwiperItem.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/SwiperItem.miniapp.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/index.d.ts +0 -0
- /package/es/{Switch → src/Switch}/index.d.ts +0 -0
- /package/es/{TabBar → src/TabBar}/TabBar.d.ts +0 -0
- /package/es/{TabBar → src/TabBar}/TabBarItem.d.ts +0 -0
- /package/es/{TabBar → src/TabBar}/index.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/Tab.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/TabPanel.types.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/Tabs.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/index.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/utils/scroll.d.ts +0 -0
- /package/es/{Tag → src/Tag}/Tag.d.ts +0 -0
- /package/es/{Tag → src/Tag}/TagGroup.types.d.ts +0 -0
- /package/es/{Tag → src/Tag}/index.d.ts +0 -0
- /package/es/{TextArea → src/TextArea}/index.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/ThemeProvider.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/hooks/ThemeContext.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/hooks/createTheme.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/hooks/index.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/hooks/useTheme.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/index.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/utils/index.d.ts +0 -0
- /package/es/{Toast → src/Toast}/index.d.ts +0 -0
- /package/es/{Tooltip → src/Tooltip}/index.d.ts +0 -0
- /package/es/{Transition → src/Transition}/Transition.d.ts +0 -0
- /package/es/{Transition → src/Transition}/Transition.miniapp.d.ts +0 -0
- /package/es/{Transition → src/Transition}/Transition.types.d.ts +0 -0
- /package/es/{Transition → src/Transition}/TransitionCore.d.ts +0 -0
- /package/es/{Transition → src/Transition}/index.d.ts +0 -0
- /package/es/{locales → src/locales}/en-US.d.ts +0 -0
- /package/es/{locales → src/locales}/hooks/useLocaleText.d.ts +0 -0
- /package/es/{locales → src/locales}/index.d.ts +0 -0
- /package/es/{locales → src/locales}/zh-CN.d.ts +0 -0
- /package/es/{locales → src/locales}/zh-TW.d.ts +0 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
var __async = (__this, __arguments, generator) => {
|
|
2
|
+
return new Promise((resolve, reject) => {
|
|
3
|
+
var fulfilled = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
step(generator.next(value));
|
|
6
|
+
} catch (e) {
|
|
7
|
+
reject(e);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var rejected = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.throw(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
import { useState, useEffect, useRef } from "react";
|
|
22
|
+
import {
|
|
23
|
+
getStylesAndLocation,
|
|
24
|
+
parsePlacement,
|
|
25
|
+
throttle
|
|
26
|
+
} from "@bifrostui/utils";
|
|
27
|
+
const anchorOriginToPlacement = (anchorOrigin) => {
|
|
28
|
+
const { vertical, horizontal } = anchorOrigin;
|
|
29
|
+
if (vertical === "center" && horizontal === "center") {
|
|
30
|
+
return "top";
|
|
31
|
+
}
|
|
32
|
+
if (horizontal === "center") {
|
|
33
|
+
return vertical;
|
|
34
|
+
}
|
|
35
|
+
const horizontalMap = {
|
|
36
|
+
left: "Left",
|
|
37
|
+
right: "Right"
|
|
38
|
+
};
|
|
39
|
+
if (vertical === "center") {
|
|
40
|
+
return horizontal;
|
|
41
|
+
}
|
|
42
|
+
return `${vertical}${horizontalMap[horizontal]}`;
|
|
43
|
+
};
|
|
44
|
+
const usePopoverPosition = ({
|
|
45
|
+
anchorOrigin,
|
|
46
|
+
offsetSpacing,
|
|
47
|
+
isOpen
|
|
48
|
+
}) => {
|
|
49
|
+
const placement = anchorOriginToPlacement(anchorOrigin);
|
|
50
|
+
const { direction, location = "center" } = parsePlacement(placement);
|
|
51
|
+
const childrenRef = useRef();
|
|
52
|
+
const [arrowDirection, setArrowDirection] = useState(direction);
|
|
53
|
+
const [arrowLocation, setArrowLocation] = useState(location);
|
|
54
|
+
const [toolStyles, setToolStyles] = useState({});
|
|
55
|
+
const tipRef = useRef(null);
|
|
56
|
+
const clearRef = (status) => {
|
|
57
|
+
if (status === false) {
|
|
58
|
+
tipRef.current = null;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const onMounted = throttle(() => __async(void 0, null, function* () {
|
|
62
|
+
if (!tipRef.current)
|
|
63
|
+
return;
|
|
64
|
+
const {
|
|
65
|
+
direction: newParsedDirection,
|
|
66
|
+
location: newParsedLocation = "center"
|
|
67
|
+
} = parsePlacement(placement);
|
|
68
|
+
const result = yield getStylesAndLocation({
|
|
69
|
+
childrenRef,
|
|
70
|
+
arrowDirection: newParsedDirection,
|
|
71
|
+
arrowLocation: newParsedLocation,
|
|
72
|
+
offsetSpacing,
|
|
73
|
+
tipRef
|
|
74
|
+
});
|
|
75
|
+
if (!result)
|
|
76
|
+
return;
|
|
77
|
+
const { styles, newArrowDirection, newArrowLocation } = result;
|
|
78
|
+
if (newArrowDirection !== arrowDirection) {
|
|
79
|
+
setArrowDirection(newArrowDirection);
|
|
80
|
+
}
|
|
81
|
+
if (newArrowLocation !== arrowLocation) {
|
|
82
|
+
setArrowLocation(newArrowLocation);
|
|
83
|
+
}
|
|
84
|
+
setToolStyles(styles);
|
|
85
|
+
}), 16);
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
if (!isOpen) {
|
|
88
|
+
setToolStyles({
|
|
89
|
+
visibility: "hidden"
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}, [isOpen]);
|
|
93
|
+
return {
|
|
94
|
+
arrowDirection,
|
|
95
|
+
arrowLocation,
|
|
96
|
+
toolStyles,
|
|
97
|
+
tipRef,
|
|
98
|
+
childrenRef,
|
|
99
|
+
onMounted,
|
|
100
|
+
clearRef
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
usePopoverPosition
|
|
105
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useState, useEffect } from "react";
|
|
2
|
+
const usePopoverState = ({
|
|
3
|
+
defaultOpen = false,
|
|
4
|
+
open,
|
|
5
|
+
onOpenChange
|
|
6
|
+
}) => {
|
|
7
|
+
const controlByUser = typeof open !== "undefined";
|
|
8
|
+
const [openStatus, setOpenStatus] = useState(defaultOpen);
|
|
9
|
+
const isOpen = controlByUser ? open : openStatus;
|
|
10
|
+
const changeOpenStatus = (event, status) => {
|
|
11
|
+
if (controlByUser)
|
|
12
|
+
return;
|
|
13
|
+
setOpenStatus(status);
|
|
14
|
+
onOpenChange == null ? void 0 : onOpenChange(event, { open: status });
|
|
15
|
+
};
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (!controlByUser)
|
|
18
|
+
return;
|
|
19
|
+
setOpenStatus(open);
|
|
20
|
+
}, [open, controlByUser]);
|
|
21
|
+
return {
|
|
22
|
+
isOpen,
|
|
23
|
+
openStatus,
|
|
24
|
+
controlByUser,
|
|
25
|
+
changeOpenStatus,
|
|
26
|
+
setOpenStatus
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
usePopoverState
|
|
31
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-popover-arrow-size: 8PX;
|
|
5
|
+
--bui-popover-location-position: 8PX;
|
|
6
|
+
--bui-popover-max-width: 350px;
|
|
7
|
+
--bui-popover-content-min-width: 30px;
|
|
8
|
+
--bui-popover-content-padding: 6px 8px;
|
|
9
|
+
}
|
|
10
|
+
.bui-popover {
|
|
11
|
+
max-width: var(--bui-popover-max-width);
|
|
12
|
+
font-size: var(--bui-text-size-1);
|
|
13
|
+
position: absolute;
|
|
14
|
+
visibility: hidden;
|
|
15
|
+
z-index: var(--bui-z-index-tooltip);
|
|
16
|
+
}
|
|
17
|
+
.bui-popover .bui-popover-arrow {
|
|
18
|
+
width: 0;
|
|
19
|
+
height: 0;
|
|
20
|
+
position: absolute;
|
|
21
|
+
}
|
|
22
|
+
.bui-popover .bui-popover-arrow.location-left {
|
|
23
|
+
left: var(--bui-popover-location-position);
|
|
24
|
+
}
|
|
25
|
+
.bui-popover .bui-popover-arrow.location-right {
|
|
26
|
+
right: var(--bui-popover-location-position);
|
|
27
|
+
}
|
|
28
|
+
.bui-popover .bui-popover-arrow.location-top {
|
|
29
|
+
top: var(--bui-popover-location-position);
|
|
30
|
+
}
|
|
31
|
+
.bui-popover .bui-popover-arrow.location-bottom {
|
|
32
|
+
bottom: var(--bui-popover-location-position);
|
|
33
|
+
}
|
|
34
|
+
.bui-popover.popover-top .location-center,
|
|
35
|
+
.bui-popover.popover-bottom .location-center {
|
|
36
|
+
left: 50%;
|
|
37
|
+
transform: translateX(-50%);
|
|
38
|
+
}
|
|
39
|
+
.bui-popover.popover-left .location-center,
|
|
40
|
+
.bui-popover.popover-right .location-center {
|
|
41
|
+
top: 50%;
|
|
42
|
+
transform: translateY(-50%);
|
|
43
|
+
}
|
|
44
|
+
.bui-popover.popover-top {
|
|
45
|
+
padding-bottom: var(--bui-popover-arrow-size);
|
|
46
|
+
}
|
|
47
|
+
.bui-popover.popover-top .bui-popover-arrow {
|
|
48
|
+
border-left: var(--bui-popover-arrow-size) solid transparent;
|
|
49
|
+
border-right: var(--bui-popover-arrow-size) solid transparent;
|
|
50
|
+
border-top: var(--bui-popover-arrow-size) solid var(--bui-color-bg-view);
|
|
51
|
+
bottom: 0;
|
|
52
|
+
}
|
|
53
|
+
.bui-popover.popover-bottom {
|
|
54
|
+
padding-top: var(--bui-popover-arrow-size);
|
|
55
|
+
}
|
|
56
|
+
.bui-popover.popover-bottom .bui-popover-arrow {
|
|
57
|
+
border-left: var(--bui-popover-arrow-size) solid transparent;
|
|
58
|
+
border-right: var(--bui-popover-arrow-size) solid transparent;
|
|
59
|
+
border-bottom: var(--bui-popover-arrow-size) solid var(--bui-color-bg-view);
|
|
60
|
+
top: 0;
|
|
61
|
+
}
|
|
62
|
+
.bui-popover.popover-left {
|
|
63
|
+
padding-right: var(--bui-popover-arrow-size);
|
|
64
|
+
}
|
|
65
|
+
.bui-popover.popover-left .bui-popover-arrow {
|
|
66
|
+
border-top: var(--bui-popover-arrow-size) solid transparent;
|
|
67
|
+
border-bottom: var(--bui-popover-arrow-size) solid transparent;
|
|
68
|
+
border-left: var(--bui-popover-arrow-size) solid var(--bui-color-bg-view);
|
|
69
|
+
right: 0;
|
|
70
|
+
}
|
|
71
|
+
.bui-popover.popover-right {
|
|
72
|
+
padding-left: var(--bui-popover-arrow-size);
|
|
73
|
+
}
|
|
74
|
+
.bui-popover.popover-right .bui-popover-arrow {
|
|
75
|
+
border-top: var(--bui-popover-arrow-size) solid transparent;
|
|
76
|
+
border-bottom: var(--bui-popover-arrow-size) solid transparent;
|
|
77
|
+
border-right: var(--bui-popover-arrow-size) solid var(--bui-color-bg-view);
|
|
78
|
+
left: 0;
|
|
79
|
+
}
|
|
80
|
+
.bui-popover .bui-popover-title {
|
|
81
|
+
font-weight: var(--bui-font-weight-bold);
|
|
82
|
+
}
|
|
83
|
+
.bui-popover .bui-popover-content {
|
|
84
|
+
min-width: var(--bui-popover-content-min-width);
|
|
85
|
+
color: var(--bui-color-fg-muted);
|
|
86
|
+
padding: var(--bui-popover-content-padding);
|
|
87
|
+
text-align: left;
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
word-wrap: break-word;
|
|
90
|
+
background-color: var(--bui-color-bg-popover);
|
|
91
|
+
border-radius: var(--bui-shape-radius-poster);
|
|
92
|
+
box-shadow:
|
|
93
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
94
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
95
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
96
|
+
}
|
|
97
|
+
.bui-popover .bui-popover-content .bui-popover-title + .bui-popover-inner-content {
|
|
98
|
+
margin-top: var(--bui-spacing-md);
|
|
99
|
+
}
|
package/es/Portal/PortalCore.js
CHANGED
|
@@ -11,7 +11,7 @@ const PortalCore = /* @__PURE__ */ React.forwardRef(
|
|
|
11
11
|
container,
|
|
12
12
|
disablePortal = false,
|
|
13
13
|
rootElement,
|
|
14
|
-
|
|
14
|
+
onMounted
|
|
15
15
|
} = props;
|
|
16
16
|
const [mountNode, setMountNode] = React.useState(null);
|
|
17
17
|
const handleRef = useForkRef(
|
|
@@ -27,7 +27,7 @@ const PortalCore = /* @__PURE__ */ React.forwardRef(
|
|
|
27
27
|
useLayoutEffect(() => {
|
|
28
28
|
if (mountNode && !disablePortal) {
|
|
29
29
|
setRef(ref, mountNode);
|
|
30
|
-
|
|
30
|
+
onMounted == null ? void 0 : onMounted(mountNode);
|
|
31
31
|
return () => {
|
|
32
32
|
setRef(ref, null);
|
|
33
33
|
};
|
package/es/Progress/Progress.js
CHANGED
|
@@ -28,7 +28,8 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
};
|
|
29
29
|
import clsx from "clsx";
|
|
30
30
|
import React from "react";
|
|
31
|
-
import "
|
|
31
|
+
import { useLocaleText } from "../locales";
|
|
32
|
+
import "./index.css";
|
|
32
33
|
const prefixCls = "bui-progress";
|
|
33
34
|
function validProgress(progress) {
|
|
34
35
|
if (!progress || progress < 0) {
|
|
@@ -63,20 +64,55 @@ const handleGradient = (strokeColor) => {
|
|
|
63
64
|
}
|
|
64
65
|
return { backgroundImage: `linear-gradient(${direction}, ${from}, ${to})` };
|
|
65
66
|
};
|
|
67
|
+
function getAriaValueText(progress, t) {
|
|
68
|
+
const validatedProgress = validProgress(progress);
|
|
69
|
+
if (validatedProgress === 0)
|
|
70
|
+
return t.notStarted;
|
|
71
|
+
if (validatedProgress < 10)
|
|
72
|
+
return t.justBegun;
|
|
73
|
+
if (validatedProgress < 25)
|
|
74
|
+
return t.gettingStarted;
|
|
75
|
+
if (validatedProgress < 50)
|
|
76
|
+
return t.inProgress;
|
|
77
|
+
if (validatedProgress < 75)
|
|
78
|
+
return t.moreThanHalfway;
|
|
79
|
+
if (validatedProgress < 90)
|
|
80
|
+
return t.nearingCompletion;
|
|
81
|
+
if (validatedProgress < 100)
|
|
82
|
+
return t.almostComplete;
|
|
83
|
+
return t.complete;
|
|
84
|
+
}
|
|
66
85
|
const Progress = /* @__PURE__ */ React.forwardRef(
|
|
67
86
|
(props, ref) => {
|
|
87
|
+
const progressText = useLocaleText("progress");
|
|
68
88
|
const _a = props, {
|
|
69
89
|
className,
|
|
70
|
-
percent,
|
|
71
|
-
strokeWidth,
|
|
72
|
-
strokeColor,
|
|
73
|
-
trailColor
|
|
90
|
+
percent = 0,
|
|
91
|
+
strokeWidth: strokeWidth,
|
|
92
|
+
strokeColor: strokeColor,
|
|
93
|
+
trailColor: trailColor,
|
|
94
|
+
// 轨道颜色
|
|
95
|
+
"aria-label": ariaLabel = progressText.labelName,
|
|
96
|
+
"aria-labelledby": ariaLabelledby = "",
|
|
97
|
+
"aria-valuenow": ariaValueNow,
|
|
98
|
+
"aria-valuemin": ariaValueMin = 0,
|
|
99
|
+
"aria-valuemax": ariaValueMax = 100,
|
|
100
|
+
"aria-valuetext": ariaValueText
|
|
74
101
|
} = _a, others = __objRest(_a, [
|
|
75
102
|
"className",
|
|
76
103
|
"percent",
|
|
104
|
+
// 当前进度百分比
|
|
77
105
|
"strokeWidth",
|
|
106
|
+
// 进度条高度
|
|
78
107
|
"strokeColor",
|
|
79
|
-
|
|
108
|
+
// 进度条颜色或渐变
|
|
109
|
+
"trailColor",
|
|
110
|
+
"aria-label",
|
|
111
|
+
"aria-labelledby",
|
|
112
|
+
"aria-valuenow",
|
|
113
|
+
"aria-valuemin",
|
|
114
|
+
"aria-valuemax",
|
|
115
|
+
"aria-valuetext"
|
|
80
116
|
]);
|
|
81
117
|
const backgroundProps = strokeColor && typeof strokeColor !== "string" ? handleGradient(strokeColor) : {
|
|
82
118
|
background: strokeColor
|
|
@@ -88,7 +124,26 @@ const Progress = /* @__PURE__ */ React.forwardRef(
|
|
|
88
124
|
const trailStyle = {
|
|
89
125
|
background: trailColor || void 0
|
|
90
126
|
};
|
|
91
|
-
|
|
127
|
+
const accessibilityProps = {
|
|
128
|
+
"aria-valuenow": typeof ariaValueNow === "number" ? ariaValueNow : validProgress(percent),
|
|
129
|
+
"aria-label": ariaLabel,
|
|
130
|
+
"aria-labelledby": ariaLabelledby,
|
|
131
|
+
"aria-valuemin": ariaValueMin,
|
|
132
|
+
"aria-valuemax": ariaValueMax,
|
|
133
|
+
"aria-valuetext": ariaValueText !== void 0 ? ariaValueText : getAriaValueText(percent, progressText),
|
|
134
|
+
role: "progressbar"
|
|
135
|
+
};
|
|
136
|
+
return (
|
|
137
|
+
// 外层容器
|
|
138
|
+
/* @__PURE__ */ React.createElement(
|
|
139
|
+
"div",
|
|
140
|
+
__spreadValues(__spreadValues({
|
|
141
|
+
className: clsx(prefixCls, className),
|
|
142
|
+
ref
|
|
143
|
+
}, accessibilityProps), others),
|
|
144
|
+
/* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-inner`, style: trailStyle }, /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-bg`, style: percentStyle }))
|
|
145
|
+
)
|
|
146
|
+
);
|
|
92
147
|
}
|
|
93
148
|
);
|
|
94
149
|
Progress.displayName = "BuiProgress";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Progress from "../../Progress";
|
|
3
|
+
const basicProgressDemo = () => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Progress, { percent: 40 }));
|
|
5
|
+
};
|
|
6
|
+
const coloredProgressDemo = () => {
|
|
7
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Progress, { percent: 40, strokeColor: "var(--bui-color-primary)" }), /* @__PURE__ */ React.createElement(Progress, { percent: 50, strokeColor: "var(--bui-color-info)" }), /* @__PURE__ */ React.createElement(Progress, { percent: 30, strokeColor: "var(--bui-color-success)" }), /* @__PURE__ */ React.createElement(Progress, { percent: 80, strokeColor: "var(--bui-color-warning)" }), /* @__PURE__ */ React.createElement(Progress, { percent: 90, strokeColor: "var(--bui-color-vip)" }));
|
|
8
|
+
};
|
|
9
|
+
const sizedProgressDemo = () => {
|
|
10
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Progress, { percent: 60, strokeWidth: 10 }), /* @__PURE__ */ React.createElement(Progress, { percent: 60, strokeWidth: 15 }), /* @__PURE__ */ React.createElement(Progress, { percent: 60, strokeWidth: 20 }));
|
|
11
|
+
};
|
|
12
|
+
const gradientProgressDemo = () => {
|
|
13
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
14
|
+
Progress,
|
|
15
|
+
{
|
|
16
|
+
percent: 60,
|
|
17
|
+
strokeColor: {
|
|
18
|
+
from: "var(--bui-color-primary)",
|
|
19
|
+
to: "var(--bui-color-primary-light)"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
), /* @__PURE__ */ React.createElement(
|
|
23
|
+
Progress,
|
|
24
|
+
{
|
|
25
|
+
percent: 90,
|
|
26
|
+
strokeColor: {
|
|
27
|
+
"0%": "var(--bui-color-orange)",
|
|
28
|
+
"100%": "var(--bui-color-orange-light)"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
));
|
|
32
|
+
};
|
|
33
|
+
const customTrailColorProgressDemo = () => {
|
|
34
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Progress, { percent: 60, trailColor: "var(--bui-color-primary-light)" }), /* @__PURE__ */ React.createElement(Progress, { percent: 80, trailColor: "var(--bui-color-gray-light)" }));
|
|
35
|
+
};
|
|
36
|
+
const accessibilityProgressDemo = () => {
|
|
37
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Progress, { percent: 50, "aria-label": "\u6587\u4EF6\u4E0B\u8F7D\u8FDB\u5EA6" }), /* @__PURE__ */ React.createElement(
|
|
38
|
+
Progress,
|
|
39
|
+
{
|
|
40
|
+
percent: 75,
|
|
41
|
+
"aria-label": "\u6570\u636E\u52A0\u8F7D\u8FDB\u5EA6",
|
|
42
|
+
"aria-valuetext": "\u5DF2\u5B8C\u621075%"
|
|
43
|
+
}
|
|
44
|
+
), /* @__PURE__ */ React.createElement(Progress, { percent: 30, "aria-describedby": "progress-description" }), /* @__PURE__ */ React.createElement("span", { id: "progress-description", style: { display: "none" } }, "\u8FD9\u662F\u8FDB\u5EA6\u6761\u7684\u8BE6\u7EC6\u63CF\u8FF0\u4FE1\u606F"));
|
|
45
|
+
};
|
|
46
|
+
var A11yDemos_default = {
|
|
47
|
+
basicProgressDemo,
|
|
48
|
+
coloredProgressDemo,
|
|
49
|
+
sizedProgressDemo,
|
|
50
|
+
gradientProgressDemo,
|
|
51
|
+
customTrailColorProgressDemo,
|
|
52
|
+
accessibilityProgressDemo
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
accessibilityProgressDemo,
|
|
56
|
+
basicProgressDemo,
|
|
57
|
+
coloredProgressDemo,
|
|
58
|
+
customTrailColorProgressDemo,
|
|
59
|
+
A11yDemos_default as default,
|
|
60
|
+
gradientProgressDemo,
|
|
61
|
+
sizedProgressDemo
|
|
62
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-progress-fill-color: var(--bui-color-primary);
|
|
5
|
+
--bui-progress-trail-color: rgba(156, 156, 165, 0.2);
|
|
6
|
+
--bui-progress-stroke-width: 8px;
|
|
7
|
+
--bui-progress-width: 100%;
|
|
8
|
+
--bui-progress-border-radius: 100px;
|
|
9
|
+
}
|
|
10
|
+
.bui-progress {
|
|
11
|
+
width: var(--bui-progress-width);
|
|
12
|
+
font-family: var(--bui-font-family);
|
|
13
|
+
}
|
|
14
|
+
.bui-progress-inner {
|
|
15
|
+
position: relative;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
width: var(--bui-progress-width);
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
vertical-align: middle;
|
|
20
|
+
background-color: var(--bui-progress-trail-color);
|
|
21
|
+
border-radius: var(--bui-progress-border-radius);
|
|
22
|
+
}
|
|
23
|
+
.bui-progress-bg {
|
|
24
|
+
position: relative;
|
|
25
|
+
border-radius: var(--bui-progress-border-radius);
|
|
26
|
+
background-color: var(--bui-progress-fill-color);
|
|
27
|
+
height: var(--bui-progress-stroke-width);
|
|
28
|
+
}
|
package/es/Radio/Radio.js
CHANGED
|
@@ -34,13 +34,13 @@ import clsx from "clsx";
|
|
|
34
34
|
import React, { forwardRef, useContext } from "react";
|
|
35
35
|
import RadioButtonIcon from "./RadioButtonIcon";
|
|
36
36
|
import RadioContext from "./RadioContext";
|
|
37
|
-
import "./
|
|
37
|
+
import "./index.css";
|
|
38
38
|
const prefixCls = "bui-radio";
|
|
39
39
|
const Radio = forwardRef((props, ref) => {
|
|
40
40
|
const _a = props, {
|
|
41
41
|
className,
|
|
42
|
-
defaultChecked,
|
|
43
|
-
checked,
|
|
42
|
+
defaultChecked = false,
|
|
43
|
+
checked = false,
|
|
44
44
|
inputProps,
|
|
45
45
|
inputRef,
|
|
46
46
|
name,
|
|
@@ -48,7 +48,7 @@ const Radio = forwardRef((props, ref) => {
|
|
|
48
48
|
disabled,
|
|
49
49
|
icon,
|
|
50
50
|
checkedIcon,
|
|
51
|
-
labelPlacement,
|
|
51
|
+
labelPlacement = "right",
|
|
52
52
|
onChange,
|
|
53
53
|
children
|
|
54
54
|
} = _a, others = __objRest(_a, [
|
|
@@ -66,6 +66,7 @@ const Radio = forwardRef((props, ref) => {
|
|
|
66
66
|
"onChange",
|
|
67
67
|
"children"
|
|
68
68
|
]);
|
|
69
|
+
const ariaProps = __spreadValues({}, disabled && { "aria-disabled": disabled });
|
|
69
70
|
const groupContext = useContext(RadioContext);
|
|
70
71
|
let validDefaultChecked = defaultChecked;
|
|
71
72
|
let validChecked = checked;
|
|
@@ -86,7 +87,7 @@ const Radio = forwardRef((props, ref) => {
|
|
|
86
87
|
}
|
|
87
88
|
const radioCheckIcon = checkedIcon || /* @__PURE__ */ React.createElement(RadioButtonIcon, { checked: true });
|
|
88
89
|
const radioUncheckIcon = icon || /* @__PURE__ */ React.createElement(RadioButtonIcon, { checked: false });
|
|
89
|
-
const radioDisabled = disabled !== void 0 ? disabled : groupContext == null ? void 0 : groupContext.disabled;
|
|
90
|
+
const radioDisabled = disabled !== void 0 ? disabled : (groupContext == null ? void 0 : groupContext.disabled) || false;
|
|
90
91
|
const changeAction = (e, isChecked) => {
|
|
91
92
|
var _a2;
|
|
92
93
|
if (!groupContext) {
|
|
@@ -130,14 +131,14 @@ const Radio = forwardRef((props, ref) => {
|
|
|
130
131
|
}),
|
|
131
132
|
/* @__PURE__ */ React.createElement(
|
|
132
133
|
"input",
|
|
133
|
-
__spreadProps(__spreadValues({
|
|
134
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
134
135
|
ref: inputRef,
|
|
135
136
|
type: "radio",
|
|
136
137
|
value,
|
|
137
138
|
name,
|
|
138
139
|
checked: radioChecked,
|
|
139
140
|
disabled: radioDisabled
|
|
140
|
-
}, inputProps), {
|
|
141
|
+
}, ariaProps), inputProps), {
|
|
141
142
|
onChange: handleChange,
|
|
142
143
|
className: clsx(`${prefixCls}-input`, inputProps == null ? void 0 : inputProps.className)
|
|
143
144
|
})
|
|
@@ -147,10 +148,6 @@ const Radio = forwardRef((props, ref) => {
|
|
|
147
148
|
);
|
|
148
149
|
});
|
|
149
150
|
Radio.displayName = "BuiRadio";
|
|
150
|
-
Radio.defaultProps = {
|
|
151
|
-
defaultChecked: false,
|
|
152
|
-
labelPlacement: "right"
|
|
153
|
-
};
|
|
154
151
|
var Radio_default = Radio;
|
|
155
152
|
export {
|
|
156
153
|
Radio_default as default
|
|
@@ -6,7 +6,12 @@ import clsx from "clsx";
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
const prefixCls = "bui-radio-btn-icon";
|
|
8
8
|
function RadioButtonIcon(props) {
|
|
9
|
-
const {
|
|
9
|
+
const {
|
|
10
|
+
checked,
|
|
11
|
+
size = "medium",
|
|
12
|
+
color,
|
|
13
|
+
htmlColor = "var(--bui-color-fg-subtle)"
|
|
14
|
+
} = props;
|
|
10
15
|
return /* @__PURE__ */ React.createElement(
|
|
11
16
|
"span",
|
|
12
17
|
{
|
package/es/Radio/RadioGroup.js
CHANGED
|
@@ -29,8 +29,8 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
import { useValue } from "@bifrostui/utils";
|
|
30
30
|
import clsx from "clsx";
|
|
31
31
|
import React, { forwardRef } from "react";
|
|
32
|
-
import "./Radio.css";
|
|
33
32
|
import { RadioContextProvider } from "./RadioContext";
|
|
33
|
+
import "./index.css";
|
|
34
34
|
const prefixCls = "bui-radio-group";
|
|
35
35
|
const RadioGroup = forwardRef((props, ref) => {
|
|
36
36
|
const _a = props, {
|
|
@@ -38,7 +38,7 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
38
38
|
defaultValue,
|
|
39
39
|
value,
|
|
40
40
|
onChange,
|
|
41
|
-
disabled,
|
|
41
|
+
disabled = false,
|
|
42
42
|
children
|
|
43
43
|
} = _a, others = __objRest(_a, [
|
|
44
44
|
"className",
|
|
@@ -70,9 +70,6 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
70
70
|
);
|
|
71
71
|
});
|
|
72
72
|
RadioGroup.displayName = "BuiRadioGroup";
|
|
73
|
-
RadioGroup.defaultProps = {
|
|
74
|
-
disabled: false
|
|
75
|
-
};
|
|
76
73
|
var RadioGroup_default = RadioGroup;
|
|
77
74
|
export {
|
|
78
75
|
RadioGroup_default as default
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Radio from "../../Radio";
|
|
3
|
+
const basicRadioDemo = () => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, /* @__PURE__ */ React.createElement(Radio, { checked: true }), "Radio"));
|
|
5
|
+
};
|
|
6
|
+
const disabledRadioDemo = () => {
|
|
7
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, /* @__PURE__ */ React.createElement(Radio, { disabled: true }), "Radio"));
|
|
8
|
+
};
|
|
9
|
+
const ariaLabelRadioDemo = () => {
|
|
10
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Radio, { inputProps: { "aria-label": "\u5355\u9009\u6846" } }, "Radio"));
|
|
11
|
+
};
|
|
12
|
+
var A11yDemos_default = {
|
|
13
|
+
basicRadioDemo,
|
|
14
|
+
disabledRadioDemo,
|
|
15
|
+
ariaLabelRadioDemo
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
ariaLabelRadioDemo,
|
|
19
|
+
basicRadioDemo,
|
|
20
|
+
A11yDemos_default as default,
|
|
21
|
+
disabledRadioDemo
|
|
22
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-radio-label-color: var(--bui-color-fg-default);
|
|
5
|
+
--bui-radio-label-font-size: var(--bui-text-size-1);
|
|
6
|
+
--bui-radio-icon-padding: 5px;
|
|
7
|
+
}
|
|
8
|
+
.bui-radio {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
position: relative;
|
|
12
|
+
font-family: var(--bui-font-family);
|
|
13
|
+
}
|
|
14
|
+
.bui-radio-disabled {
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
opacity: 0.5;
|
|
17
|
+
}
|
|
18
|
+
.bui-radio-label-left {
|
|
19
|
+
flex-direction: row-reverse;
|
|
20
|
+
}
|
|
21
|
+
.bui-radio-label-top {
|
|
22
|
+
flex-direction: column-reverse;
|
|
23
|
+
}
|
|
24
|
+
.bui-radio-label-bottom {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
.bui-radio-input {
|
|
28
|
+
opacity: 0;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
}
|
|
37
|
+
.bui-radio-icon {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
padding: var(--bui-radio-icon-padding);
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
}
|
|
45
|
+
.bui-radio-label {
|
|
46
|
+
font-size: var(--bui-radio-label-font-size);
|
|
47
|
+
color: var(--bui-radio-label-color);
|
|
48
|
+
}
|
|
49
|
+
.bui-radio-btn-icon {
|
|
50
|
+
position: relative;
|
|
51
|
+
display: flex;
|
|
52
|
+
}
|
|
53
|
+
.bui-radio-btn-icon .bui-svg-icon {
|
|
54
|
+
font-size: var(--icon-font-size);
|
|
55
|
+
}
|
|
56
|
+
.bui-radio-btn-icon-outline {
|
|
57
|
+
transform: scale(1);
|
|
58
|
+
transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
59
|
+
}
|
|
60
|
+
.bui-radio-btn-icon-contained {
|
|
61
|
+
position: absolute;
|
|
62
|
+
left: 0;
|
|
63
|
+
transform: scale(0);
|
|
64
|
+
transition: transform 150ms cubic-bezier(0.4, 0, 1, 1) 0ms;
|
|
65
|
+
}
|
|
66
|
+
.bui-radio-btn-icon-checked .bui-radio-btn-icon-contained {
|
|
67
|
+
transform: scale(1);
|
|
68
|
+
transition: transform 150ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
69
|
+
}
|