@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,104 @@
|
|
|
1
|
+
import React, { MutableRefObject } from 'react';
|
|
2
|
+
import { FadeProps } from '../Fade/Fade.types';
|
|
3
|
+
import { TransitionProps } from '../Transition';
|
|
4
|
+
/**
|
|
5
|
+
* 提示类型
|
|
6
|
+
*/
|
|
7
|
+
export type ToastType = 'loading' | 'success' | 'fail' | 'warning';
|
|
8
|
+
export interface ToastProps extends FadeProps {
|
|
9
|
+
/**
|
|
10
|
+
* 是否展示
|
|
11
|
+
*/
|
|
12
|
+
open?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 提示类型
|
|
15
|
+
*/
|
|
16
|
+
type?: ToastType;
|
|
17
|
+
/**
|
|
18
|
+
* toast内容,支持使用`\n`换行
|
|
19
|
+
*/
|
|
20
|
+
message?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 展示时长(ms),值为 0 时,toast 不会消失
|
|
23
|
+
* @default 2000
|
|
24
|
+
*/
|
|
25
|
+
duration?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 展示位置
|
|
28
|
+
* @default center
|
|
29
|
+
*/
|
|
30
|
+
position?: 'top' | 'center' | 'bottom';
|
|
31
|
+
/**
|
|
32
|
+
* 是否允许同时存在多个Toast
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
multiple?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 自定义图标
|
|
38
|
+
*/
|
|
39
|
+
icon?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* 展示Toast时,页面内容是否可以点击
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
disableClick?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 渲染Toast的根容器
|
|
47
|
+
* @default document.body
|
|
48
|
+
*/
|
|
49
|
+
container?: HTMLElement | (() => HTMLElement);
|
|
50
|
+
/**
|
|
51
|
+
* 关闭时的回调函数
|
|
52
|
+
*/
|
|
53
|
+
onClose?: () => void;
|
|
54
|
+
/**
|
|
55
|
+
* Toast动画时长(ms)
|
|
56
|
+
*/
|
|
57
|
+
transitionDuration?: TransitionProps['timeout'];
|
|
58
|
+
ref?: MutableRefObject<HTMLDivElement>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 函数式调用配置参数
|
|
62
|
+
*/
|
|
63
|
+
export type ToastOptions = Omit<ToastProps, 'type' | 'open'> | string;
|
|
64
|
+
/**
|
|
65
|
+
* 函数式调用返回值类型
|
|
66
|
+
*/
|
|
67
|
+
export type ToastReturnType = {
|
|
68
|
+
/**
|
|
69
|
+
* 关闭当前提示
|
|
70
|
+
*/
|
|
71
|
+
close: () => void;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Toast Instance
|
|
75
|
+
*/
|
|
76
|
+
export interface ToastFunction {
|
|
77
|
+
(options: ToastOptions): ToastReturnType;
|
|
78
|
+
/**
|
|
79
|
+
* 警告提示
|
|
80
|
+
*/
|
|
81
|
+
warning: (options: ToastOptions) => ToastReturnType;
|
|
82
|
+
/**
|
|
83
|
+
* 加载提示
|
|
84
|
+
*/
|
|
85
|
+
loading: (options: ToastOptions) => ToastReturnType;
|
|
86
|
+
/**
|
|
87
|
+
* 成功提示
|
|
88
|
+
*/
|
|
89
|
+
success: (options: ToastOptions) => ToastReturnType;
|
|
90
|
+
/**
|
|
91
|
+
* 失败提示
|
|
92
|
+
*/
|
|
93
|
+
fail: (options: ToastOptions) => ToastReturnType;
|
|
94
|
+
/**
|
|
95
|
+
* 清空提示
|
|
96
|
+
*/
|
|
97
|
+
clear: () => void;
|
|
98
|
+
}
|
|
99
|
+
export interface ToastInstance extends ToastFunction {
|
|
100
|
+
/**
|
|
101
|
+
* 获取toast静态方法 & contextHolder
|
|
102
|
+
*/
|
|
103
|
+
useToast: () => [ToastFunction, React.JSX.Element];
|
|
104
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OverrideProps } from '@bifrostui/types';
|
|
3
|
+
/**
|
|
4
|
+
* 触发 Tooltip 显示的事件类型
|
|
5
|
+
*/
|
|
6
|
+
export type TooltipTriggerType = 'click' | 'hover';
|
|
7
|
+
/**
|
|
8
|
+
* Tooltip 的位置选项
|
|
9
|
+
*/
|
|
10
|
+
export type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
11
|
+
/**
|
|
12
|
+
* onOpenChange 回调函数的数据参数
|
|
13
|
+
*/
|
|
14
|
+
export interface TooltipOpenChangeData {
|
|
15
|
+
/** 浮层显隐状态 */
|
|
16
|
+
open: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Tooltip 组件的属性接口
|
|
20
|
+
*/
|
|
21
|
+
export interface TooltipBaseProps {
|
|
22
|
+
/**
|
|
23
|
+
* 气泡浮层显示内容
|
|
24
|
+
* 支持文本、React 节点等
|
|
25
|
+
*/
|
|
26
|
+
title?: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* 默认是否显隐
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
defaultOpen?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 用于手动控制气泡浮层显隐
|
|
34
|
+
* 当提供此属性时,组件变为受控模式
|
|
35
|
+
*/
|
|
36
|
+
open?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 浮层与目标元素的偏移距离(像素)
|
|
39
|
+
* @default 0
|
|
40
|
+
*/
|
|
41
|
+
offset?: number;
|
|
42
|
+
/**
|
|
43
|
+
* 气泡框相对于目标元素的位置
|
|
44
|
+
* @default 'top'
|
|
45
|
+
*/
|
|
46
|
+
placement?: TooltipPlacement;
|
|
47
|
+
/**
|
|
48
|
+
* 触发 Tooltip 显示的事件类型
|
|
49
|
+
* - 'click': 点击触发
|
|
50
|
+
* - 'hover': 悬停触发
|
|
51
|
+
* - 可以传递数组来组合多种触发方式
|
|
52
|
+
* @default 'click'
|
|
53
|
+
*/
|
|
54
|
+
trigger?: TooltipTriggerType | TooltipTriggerType[];
|
|
55
|
+
/**
|
|
56
|
+
* 显隐状态变化时的回调函数
|
|
57
|
+
* @param event - 触发事件
|
|
58
|
+
* @param data - 回调数据,包含当前的显隐状态
|
|
59
|
+
*/
|
|
60
|
+
onOpenChange?: (event: React.SyntheticEvent, data: TooltipOpenChangeData) => void;
|
|
61
|
+
/**
|
|
62
|
+
* 子元素,必须是可以接收 ref 的 React 元素
|
|
63
|
+
*/
|
|
64
|
+
children?: React.ReactElement;
|
|
65
|
+
/**
|
|
66
|
+
* 无障碍功能:Tooltip的角色
|
|
67
|
+
* @default 'tooltip'
|
|
68
|
+
*/
|
|
69
|
+
role?: 'tooltip' | 'dialog' | 'status' | 'alert';
|
|
70
|
+
/**
|
|
71
|
+
* 无障碍功能:为Tooltip提供可访问的标签
|
|
72
|
+
*/
|
|
73
|
+
'aria-label'?: string;
|
|
74
|
+
/**
|
|
75
|
+
* 无障碍功能:引用描述此Tooltip的元素ID
|
|
76
|
+
*/
|
|
77
|
+
'aria-labelledby'?: string;
|
|
78
|
+
/**
|
|
79
|
+
* 无障碍功能:是否自动管理焦点
|
|
80
|
+
* 当为true时,Tooltip显示时会自动获取焦点,关闭时焦点返回到触发元素
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
autoFocus?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* 无障碍功能:是否支持Escape键关闭
|
|
86
|
+
* @default false
|
|
87
|
+
*/
|
|
88
|
+
closeOnEscape?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* 无障碍功能:是否对屏幕阅读器隐藏Tooltip
|
|
91
|
+
* 当为true时,Tooltip将被屏幕阅读器忽略
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
'aria-hidden'?: boolean;
|
|
95
|
+
}
|
|
96
|
+
export type TooltipProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
|
|
97
|
+
props: P & TooltipBaseProps;
|
|
98
|
+
defaultComponent: D;
|
|
99
|
+
}, D>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Tooltip 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 A11yDemos.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicTooltipDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const placementTooltipDemo: () => React.JSX.Element;
|
|
9
|
+
export declare const triggerTooltipDemo: () => React.JSX.Element;
|
|
10
|
+
export declare const accessibilityTooltipDemo: () => React.JSX.Element;
|
|
11
|
+
export declare const complexInteractionTooltipDemo: () => React.JSX.Element;
|
|
12
|
+
export declare const complexContentTooltipDemo: () => React.JSX.Element;
|
|
13
|
+
export declare const offsetTooltipDemo: () => React.JSX.Element;
|
|
14
|
+
export declare const edgeCaseTooltipDemo: () => React.JSX.Element;
|
|
15
|
+
declare const _default: {
|
|
16
|
+
basicTooltipDemo: () => React.JSX.Element;
|
|
17
|
+
placementTooltipDemo: () => React.JSX.Element;
|
|
18
|
+
triggerTooltipDemo: () => React.JSX.Element;
|
|
19
|
+
accessibilityTooltipDemo: () => React.JSX.Element;
|
|
20
|
+
complexInteractionTooltipDemo: () => React.JSX.Element;
|
|
21
|
+
complexContentTooltipDemo: () => React.JSX.Element;
|
|
22
|
+
offsetTooltipDemo: () => React.JSX.Element;
|
|
23
|
+
edgeCaseTooltipDemo: () => React.JSX.Element;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TooltipProps } from './Tooltip.types';
|
|
3
|
+
export interface UseTooltipParameters {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
offset?: number;
|
|
8
|
+
placement?: TooltipProps['placement'];
|
|
9
|
+
trigger?: TooltipProps['trigger'];
|
|
10
|
+
onOpenChange?: TooltipProps['onOpenChange'];
|
|
11
|
+
autoFocus?: boolean;
|
|
12
|
+
closeOnEscape?: boolean;
|
|
13
|
+
children: React.ReactElement;
|
|
14
|
+
rootRef?: React.Ref<HTMLElement>;
|
|
15
|
+
}
|
|
16
|
+
export interface UseTooltipReturnValue {
|
|
17
|
+
getTooltipProps: (otherProps?: Record<string, unknown>) => Record<string, unknown>;
|
|
18
|
+
getChildProps: () => Record<string, unknown>;
|
|
19
|
+
getPortalProps: () => {
|
|
20
|
+
onMounted: () => void;
|
|
21
|
+
};
|
|
22
|
+
tooltipRef: React.RefCallback<HTMLElement>;
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
toolStyles: React.CSSProperties;
|
|
25
|
+
arrowDirection: string;
|
|
26
|
+
arrowLocation: string;
|
|
27
|
+
tooltipId: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function useTooltip(parameters: UseTooltipParameters): UseTooltipReturnValue;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { OverrideProps } from '@bifrostui/types';
|
|
2
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
3
|
+
export interface TransitionGroupBaseProps {
|
|
4
|
+
/**
|
|
5
|
+
* 一组 `<Transition>` 组件,它们在离开时会切换为 `in` 和 `out`。`<TransitionGroup>` 会注入特定的过渡属性,因此,
|
|
6
|
+
* 如果您像我们的 `<Fade>` 示例一样包装 `<Transition>`,请记住将它们分散开来。
|
|
7
|
+
* 虽然此组件适用于多个 `Transition` 或 `CSSTransition`子组件,但有时您可能希望只有一个过渡子组件,
|
|
8
|
+
* 其中包含您希望在更改其内容时过渡出和入的内容(例如,路由、图像等)。在这种情况下,您可以在更改过渡子组件的内容时更改其 `key` 属性,
|
|
9
|
+
* 这将导致`TransitionGroup` 将该子组件过渡出和入。
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* 启用或禁用所有子元素的出现动画
|
|
14
|
+
* 请注意,指定此项将覆盖单个子组件 Transitions 上设置的任何默认设置
|
|
15
|
+
*/
|
|
16
|
+
appear?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 用于启用或禁用所有子级的进入动画
|
|
19
|
+
* 请注意,指定此项将覆盖单个子组件 Transitions 上设置的任何默认设置
|
|
20
|
+
*/
|
|
21
|
+
enter?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 用于启用或禁用所有子组件的退出动画。
|
|
24
|
+
* 请注意,指定此项将覆盖单个子组件 Transitions 上设置的任何默认设置
|
|
25
|
+
*/
|
|
26
|
+
exit?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 您可能需要在子组件退出时对其进行响应式更新。
|
|
29
|
+
* 这通常通过使用 `cloneElement` 来实现,但是,如果子组件退出,该元素已被移除,消费者无法访问。
|
|
30
|
+
* 如果您确实需要在子组件退出时对其进行更新,则可以提供一个 `childFactory`
|
|
31
|
+
* 来包装每个子组件,即使是即将退出的子组件。
|
|
32
|
+
* @default (child) => child
|
|
33
|
+
*/
|
|
34
|
+
childFactory?: (child: ReactElement) => ReactElement;
|
|
35
|
+
}
|
|
36
|
+
export type TransitionGroupProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
|
|
37
|
+
props: P & TransitionGroupBaseProps & {
|
|
38
|
+
/**
|
|
39
|
+
* `<TransitionGroup>` 默认渲染一个 `<div>`。您可以通过提供 `component` 属性来更改此行为。
|
|
40
|
+
* 如果您使用的是 React v16+,并且希望避免使用包裹的 `<div>` 元素,
|
|
41
|
+
* 您可以传入 `component={null}`。如果包裹的 div 破坏了您的 CSS 样式,这将非常有用。
|
|
42
|
+
* @default div
|
|
43
|
+
*/
|
|
44
|
+
component?: D | null;
|
|
45
|
+
};
|
|
46
|
+
defaultComponent: D;
|
|
47
|
+
}, D>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Given `this.props.children`, return an object mapping key to child.
|
|
3
|
+
*
|
|
4
|
+
* @param {*} children `this.props.children`
|
|
5
|
+
* @return {object} Mapping of key to child
|
|
6
|
+
*/
|
|
7
|
+
export declare const getChildMapping: (children: any, mapFn?: any) => any;
|
|
8
|
+
/**
|
|
9
|
+
* When you're adding or removing children some may be added or removed in the
|
|
10
|
+
* same render pass. We want to show *both* since we want to simultaneously
|
|
11
|
+
* animate elements in and out. This function takes a previous set of keys
|
|
12
|
+
* and a new set of keys and merges them with its best guess of the correct
|
|
13
|
+
* ordering. In the future we may expose some of the utilities in
|
|
14
|
+
* ReactMultiChild to make this easy, but for now React itself does not
|
|
15
|
+
* directly have this concept of the union of prevChildren and nextChildren
|
|
16
|
+
* so we implement it here.
|
|
17
|
+
*
|
|
18
|
+
* @param {object} prev prev children as returned from
|
|
19
|
+
* `ReactTransitionChildMapping.getChildMapping()`.
|
|
20
|
+
* @param {object} next next children as returned from
|
|
21
|
+
* `ReactTransitionChildMapping.getChildMapping()`.
|
|
22
|
+
* @return {object} a key set that contains all keys in `prev` and all keys
|
|
23
|
+
* in `next` in a reasonable order.
|
|
24
|
+
*/
|
|
25
|
+
export declare const mergeChildMappings: (prev: any, next: any) => {};
|
|
26
|
+
export declare const getInitialChildMapping: (props: any, onExited: any) => any;
|
|
27
|
+
export declare const getNextChildMapping: (nextProps: any, prevChildMapping: any, onExited: any) => {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export * from './ActionSheet';
|
|
2
|
+
export * from './Alert';
|
|
3
|
+
export * from './Avatar';
|
|
4
|
+
export * from './Backdrop';
|
|
5
|
+
export * from './Badge';
|
|
6
|
+
export * from './Button';
|
|
7
|
+
export * from './Calendar';
|
|
8
|
+
export * from './Card';
|
|
9
|
+
export * from './Checkbox';
|
|
10
|
+
export * from './Collapse';
|
|
11
|
+
export * from './DatePicker';
|
|
12
|
+
export * from './DesktopDatePicker';
|
|
13
|
+
export * from './DesktopTimePicker';
|
|
14
|
+
export * from './DesktopDateTimePicker';
|
|
15
|
+
export * from './DesktopPicker';
|
|
16
|
+
export * from './Divider';
|
|
17
|
+
export * from './Drawer';
|
|
18
|
+
export * from './Fade';
|
|
19
|
+
export * from './IconButton';
|
|
20
|
+
export * from './Image';
|
|
21
|
+
export * from './Input';
|
|
22
|
+
export * from './List';
|
|
23
|
+
export * from './Modal';
|
|
24
|
+
export * from './Popover';
|
|
25
|
+
export * from './Portal';
|
|
26
|
+
export * from './Progress';
|
|
27
|
+
export * from './Radio';
|
|
28
|
+
export * from './Rating';
|
|
29
|
+
export * from './ScrollView';
|
|
30
|
+
export * from './Select';
|
|
31
|
+
export * from './Skeleton';
|
|
32
|
+
export * from './Slide';
|
|
33
|
+
export * from './Slider';
|
|
34
|
+
export * from './Stack';
|
|
35
|
+
export * from './Steps';
|
|
36
|
+
export * from './Swiper';
|
|
37
|
+
export * from './Switch';
|
|
38
|
+
export * from './Tabs';
|
|
39
|
+
export * from './Tag';
|
|
40
|
+
export * from './TextArea';
|
|
41
|
+
export * from './Transition';
|
|
42
|
+
export * from './Tooltip';
|
|
43
|
+
export * from './NavBar';
|
|
44
|
+
export * from './Loading';
|
|
45
|
+
export * from './TabBar';
|
|
46
|
+
export * from './Countdown';
|
|
47
|
+
export * from './CitySelector';
|
|
48
|
+
export * from './ItemSelector';
|
|
49
|
+
export * from './Picker';
|
|
50
|
+
export * from './CollapsePanel';
|
|
51
|
+
export * from './Breadcrumb';
|
|
52
|
+
export * from './Toast';
|
|
53
|
+
export * from './Dialog';
|
|
54
|
+
export * from './ThemeProvider';
|
|
55
|
+
export * from './locales';
|
|
56
|
+
export * from './SwipeAction';
|
|
57
|
+
export * from './CSSTransition';
|
|
58
|
+
export * from './TransitionGroup';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export interface BaseLang {
|
|
2
|
+
dialog?: {
|
|
3
|
+
cancel?: string;
|
|
4
|
+
ok?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
};
|
|
7
|
+
picker?: {
|
|
8
|
+
cancel?: string;
|
|
9
|
+
confirm?: string;
|
|
10
|
+
};
|
|
11
|
+
calendar?: {
|
|
12
|
+
Monday?: string;
|
|
13
|
+
Tuesday?: string;
|
|
14
|
+
Wednesday?: string;
|
|
15
|
+
Thursday?: string;
|
|
16
|
+
Friday?: string;
|
|
17
|
+
Saturday?: string;
|
|
18
|
+
Sunday?: string;
|
|
19
|
+
};
|
|
20
|
+
input?: {
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
};
|
|
23
|
+
textarea?: {
|
|
24
|
+
labelName?: string;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
remaining?: string;
|
|
27
|
+
characters?: string;
|
|
28
|
+
};
|
|
29
|
+
selector?: {
|
|
30
|
+
select?: string;
|
|
31
|
+
};
|
|
32
|
+
citySelector?: {
|
|
33
|
+
selectedCityGroupName?: string;
|
|
34
|
+
currentCityGroupName?: string;
|
|
35
|
+
hotCitiesGroupName?: string;
|
|
36
|
+
located?: string;
|
|
37
|
+
current?: string;
|
|
38
|
+
hot?: string;
|
|
39
|
+
gpsType?: Record<string, string>;
|
|
40
|
+
currentType?: Record<string, string>;
|
|
41
|
+
hotCityType?: Record<string, string>;
|
|
42
|
+
};
|
|
43
|
+
desktopDatePicker?: {
|
|
44
|
+
month?: Record<number, string>;
|
|
45
|
+
};
|
|
46
|
+
datePicker?: {
|
|
47
|
+
year: string;
|
|
48
|
+
month: string;
|
|
49
|
+
day: string;
|
|
50
|
+
hour: string;
|
|
51
|
+
minute: string;
|
|
52
|
+
second: string;
|
|
53
|
+
};
|
|
54
|
+
countdown?: {
|
|
55
|
+
remain?: {
|
|
56
|
+
year?: string;
|
|
57
|
+
month?: string;
|
|
58
|
+
day?: string;
|
|
59
|
+
hour?: string;
|
|
60
|
+
minute?: string;
|
|
61
|
+
second?: string;
|
|
62
|
+
};
|
|
63
|
+
remainTime?: string;
|
|
64
|
+
hasEnd?: string;
|
|
65
|
+
willEnd?: string;
|
|
66
|
+
timer?: string;
|
|
67
|
+
};
|
|
68
|
+
progress?: {
|
|
69
|
+
labelName?: string;
|
|
70
|
+
notStarted?: string;
|
|
71
|
+
justBegun?: string;
|
|
72
|
+
gettingStarted?: string;
|
|
73
|
+
inProgress?: string;
|
|
74
|
+
moreThanHalfway?: string;
|
|
75
|
+
almostComplete?: string;
|
|
76
|
+
complete?: string;
|
|
77
|
+
nearingCompletion?: string;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-action-sheet-extra-line-height: 23px;
|
|
5
|
+
--bui-action-sheet-extra-padding: var(--bui-spacing-xl);
|
|
6
|
+
--bui-action-sheet-extra-margin: 0 var(--bui-spacing-xl);
|
|
7
|
+
--bui-action-sheet-item-padding: var(--bui-spacing-xl);
|
|
8
|
+
--bui-action-sheet-item-font-size: var(--bui-title-size-2);
|
|
9
|
+
--bui-action-sheet-item-line-height: 24px;
|
|
10
|
+
--bui-action-sheet-item-color: var(--bui-color-fg-default);
|
|
11
|
+
--bui-action-sheet-item-margin: 0 var(--bui-spacing-xl);
|
|
12
|
+
--bui-action-sheet-item-description-line-height: 19px;
|
|
13
|
+
}
|
|
1
14
|
.bui-action-sheet {
|
|
2
|
-
--extra-line-height: var(--bui-action-sheet-extra-line-height, 23px);
|
|
3
|
-
--extra-padding: var(--bui-action-sheet-extra-padding, var(--bui-spacing-xl));
|
|
4
|
-
--extra-magin: var(--bui-action-sheet-extra-magin, 0 var(--bui-spacing-xl));
|
|
5
15
|
font-family: var(--bui-font-family);
|
|
6
16
|
}
|
|
7
17
|
.bui-action-sheet-content {
|
|
@@ -20,11 +30,11 @@
|
|
|
20
30
|
}
|
|
21
31
|
.bui-action-sheet-extra {
|
|
22
32
|
font-size: var(--bui-text-size-1);
|
|
23
|
-
line-height: var(--extra-line-height);
|
|
24
|
-
padding: var(--extra-padding);
|
|
33
|
+
line-height: var(--bui-action-sheet-extra-line-height);
|
|
34
|
+
padding: var(--bui-action-sheet-extra-padding);
|
|
25
35
|
color: var(--bui-color-fg-muted);
|
|
26
36
|
background: var(--bui-color-bg-view);
|
|
27
37
|
text-align: center;
|
|
28
38
|
border-bottom: 1px solid var(--bui-color-border-default);
|
|
29
|
-
margin: var(--extra-
|
|
39
|
+
margin: var(--bui-action-sheet-extra-margin);
|
|
30
40
|
}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
.bui-action-sheet-item {
|
|
2
|
-
--padding: var(--bui-action-sheet-item-padding, var(--bui-spacing-xl));
|
|
3
|
-
--font-size: var(--bui-action-sheet-item-font-size, var(--bui-title-size-2));
|
|
4
|
-
--line-height: var(--bui-action-sheet-item-line-height, 24px);
|
|
5
|
-
--color: var(--bui-action-sheet-item-color, var(--bui-color-fg-default));
|
|
6
|
-
--margin: var(--bui-action-sheet-item-margin, 0 var(--bui-spacing-xl));
|
|
7
|
-
--description-line-height: var(--bui-action-sheet-item-description-line-height, 19px);
|
|
8
2
|
font-family: var(--bui-font-family);
|
|
9
3
|
position: relative;
|
|
10
|
-
padding: var(--padding);
|
|
4
|
+
padding: var(--bui-action-sheet-item-padding);
|
|
11
5
|
cursor: pointer;
|
|
12
6
|
background: var(--bui-color-bg-view);
|
|
13
|
-
font-size: var(--font-size);
|
|
7
|
+
font-size: var(--bui-action-sheet-item-font-size);
|
|
14
8
|
text-align: center;
|
|
15
|
-
line-height: var(--line-height);
|
|
16
|
-
color: var(--color);
|
|
9
|
+
line-height: var(--bui-action-sheet-item-line-height);
|
|
10
|
+
color: var(--bui-action-sheet-item-color);
|
|
17
11
|
border-top: 1px solid var(--bui-color-border-default);
|
|
18
|
-
margin: var(--margin);
|
|
12
|
+
margin: var(--bui-action-sheet-item-margin);
|
|
19
13
|
}
|
|
20
14
|
.bui-action-sheet-item:first-child {
|
|
21
15
|
border-top: none;
|
|
@@ -24,19 +18,19 @@
|
|
|
24
18
|
background-color: var(--bui-color-bg-default);
|
|
25
19
|
}
|
|
26
20
|
.bui-action-sheet-item-primary {
|
|
27
|
-
|
|
21
|
+
color: var(--bui-color-primary);
|
|
28
22
|
}
|
|
29
23
|
.bui-action-sheet-item-info {
|
|
30
|
-
|
|
24
|
+
color: var(--bui-color-info);
|
|
31
25
|
}
|
|
32
26
|
.bui-action-sheet-item-success {
|
|
33
|
-
|
|
27
|
+
color: var(--bui-color-success);
|
|
34
28
|
}
|
|
35
29
|
.bui-action-sheet-item-warning {
|
|
36
|
-
|
|
30
|
+
color: var(--bui-color-warning);
|
|
37
31
|
}
|
|
38
32
|
.bui-action-sheet-item-danger {
|
|
39
|
-
|
|
33
|
+
color: var(--bui-color-danger);
|
|
40
34
|
}
|
|
41
35
|
.bui-action-sheet-item-disabled {
|
|
42
36
|
pointer-events: none;
|
|
@@ -50,6 +44,6 @@
|
|
|
50
44
|
}
|
|
51
45
|
.bui-action-sheet-item-description {
|
|
52
46
|
font-size: var(--bui-text-size-2);
|
|
53
|
-
line-height: var(--description-line-height);
|
|
47
|
+
line-height: var(--bui-action-sheet-item-description-line-height);
|
|
54
48
|
color: var(--bui-color-fg-subtle);
|
|
55
49
|
}
|
|
@@ -36,9 +36,9 @@ const ActionSheetItem = /* @__PURE__ */ React.forwardRef(
|
|
|
36
36
|
const _a = props, {
|
|
37
37
|
className,
|
|
38
38
|
children,
|
|
39
|
-
disabled,
|
|
40
|
-
bold,
|
|
41
|
-
color,
|
|
39
|
+
disabled = false,
|
|
40
|
+
bold = false,
|
|
41
|
+
color = "neutral",
|
|
42
42
|
description,
|
|
43
43
|
onClick,
|
|
44
44
|
index
|
|
@@ -81,11 +81,6 @@ const ActionSheetItem = /* @__PURE__ */ React.forwardRef(
|
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
83
|
ActionSheetItem.displayName = "BuiActionSheetItem";
|
|
84
|
-
ActionSheetItem.defaultProps = {
|
|
85
|
-
color: "default",
|
|
86
|
-
disabled: false,
|
|
87
|
-
bold: false
|
|
88
|
-
};
|
|
89
84
|
var ActionSheetItem_default = ActionSheetItem;
|
|
90
85
|
export {
|
|
91
86
|
ActionSheetItem_default as default
|