@bifrostui/react 2.0.0-alpha.0 → 2.0.0-alpha.10
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/Alert/Alert.js +2 -1
- package/dist/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -0
- package/dist/Alert/__tests__/fixtures/A11yDemos.js +143 -0
- package/dist/Alert/index.css +4 -4
- package/dist/Avatar/AvatarGroup.css +8 -8
- package/dist/Avatar/index.css +8 -8
- package/dist/Backdrop/Backdrop.js +3 -2
- package/dist/Backdrop/Backdrop.types.d.ts +4 -0
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.js +51 -0
- package/dist/Backdrop/index.css +2 -2
- package/dist/Badge/Badge.js +38 -11
- package/dist/Badge/Badge.types.d.ts +30 -1
- package/dist/Badge/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/Badge/__tests__/fixtures/A11yDemos.js +110 -0
- package/dist/Badge/hooks/useBadgeA11y.d.ts +23 -0
- package/dist/Badge/hooks/useBadgeA11y.js +76 -0
- package/dist/Badge/hooks/useBadgeDisplay.d.ts +16 -0
- package/dist/Badge/hooks/useBadgeDisplay.js +56 -0
- package/dist/Button/Button.js +2 -1
- package/dist/Button/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/dist/Button/__tests__/fixtures/A11yDemos.js +81 -0
- package/dist/Button/index.css +4 -5
- package/dist/CSSTransition/CSSTransition.d.ts +4 -0
- package/dist/CSSTransition/CSSTransition.js +177 -0
- package/dist/CSSTransition/CSSTransition.types.d.ts +13 -0
- package/dist/CSSTransition/CSSTransition.types.js +15 -0
- package/dist/CSSTransition/demo/CSSTransitionDemo.d.ts +4 -0
- package/dist/CSSTransition/demo/CSSTransitionDemo.js +76 -0
- package/dist/CSSTransition/demo/index.css +25 -0
- package/dist/CSSTransition/index.d.ts +2 -0
- package/dist/CSSTransition/index.js +41 -0
- package/dist/Calendar/Calendar.js +131 -34
- package/dist/Calendar/Calendar.types.d.ts +16 -1
- package/dist/Calendar/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/Calendar/__tests__/fixtures/A11yDemos.js +41 -0
- package/dist/Calendar/index.css +52 -9
- package/dist/Calendar/utils.d.ts +7 -3
- package/dist/Calendar/utils.js +33 -23
- package/dist/Checkbox/Checkbox.js +5 -4
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/CitySelector/CitySelector.types.d.ts +0 -1
- package/dist/Collapse/Collapse.d.ts +1 -1
- package/dist/Collapse/Collapse.js +26 -12
- package/dist/Collapse/Collapse.miniapp.d.ts +10 -0
- package/dist/Collapse/Collapse.miniapp.js +255 -0
- package/dist/Collapse/index.css +40 -1
- package/dist/CollapsePanel/index.css +1 -1
- package/dist/Countdown/Countdown.js +61 -21
- package/dist/Countdown/Countdown.types.d.ts +19 -15
- package/dist/Countdown/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/dist/Countdown/__tests__/fixtures/A11yDemos.js +107 -0
- package/dist/Countdown/index.css +11 -0
- package/dist/DatePicker/DatePicker.d.ts +4 -0
- package/dist/DatePicker/DatePicker.js +335 -0
- package/dist/DatePicker/DatePicker.types.d.ts +36 -0
- package/dist/DatePicker/DatePicker.types.js +15 -0
- package/dist/DatePicker/constants.d.ts +9 -0
- package/dist/DatePicker/constants.js +37 -0
- package/dist/DatePicker/index.d.ts +3 -0
- package/dist/DatePicker/index.js +44 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.js +280 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.types.d.ts +163 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.types.js +15 -0
- package/dist/DesktopDatePicker/deskTopPickerContainer.css +100 -0
- package/dist/DesktopDatePicker/index.css +161 -0
- package/dist/DesktopDatePicker/index.d.ts +2 -0
- package/dist/DesktopDatePicker/index.js +41 -0
- package/dist/DesktopDatePicker/useGetDatePickerContent.d.ts +6 -0
- package/dist/DesktopDatePicker/useGetDatePickerContent.js +343 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +5 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.js +322 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +163 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.js +15 -0
- package/dist/DesktopDateTimePicker/index.css +66 -0
- package/dist/DesktopDateTimePicker/index.d.ts +2 -0
- package/dist/DesktopDateTimePicker/index.js +41 -0
- package/dist/DesktopPicker/DesktopPicker.d.ts +5 -0
- package/dist/DesktopPicker/DesktopPicker.js +243 -0
- package/dist/DesktopPicker/DesktopPicker.types.d.ts +61 -0
- package/dist/DesktopPicker/DesktopPicker.types.js +15 -0
- package/dist/DesktopPicker/index.css +39 -0
- package/dist/DesktopPicker/index.d.ts +2 -0
- package/dist/DesktopPicker/index.js +41 -0
- package/dist/DesktopPicker/utils/calcAfterMounted.d.ts +2 -0
- package/dist/{Tabs/utils/bound.js → DesktopPicker/utils/calcAfterMounted.js} +7 -14
- package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +2 -0
- package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.js +38 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.d.ts +5 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.js +288 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.types.d.ts +182 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.types.js +15 -0
- package/dist/DesktopTimePicker/DesktopTimePickerList.d.ts +4 -0
- package/dist/DesktopTimePicker/DesktopTimePickerList.js +111 -0
- package/dist/DesktopTimePicker/index.css +170 -0
- package/dist/DesktopTimePicker/index.d.ts +2 -0
- package/dist/DesktopTimePicker/index.js +41 -0
- package/dist/DesktopTimePicker/useGetTimePickerContent.d.ts +6 -0
- package/dist/DesktopTimePicker/useGetTimePickerContent.js +249 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.d.ts +2 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.js +27 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +2 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.js +51 -0
- package/dist/DesktopTimePicker/utils/utils.d.ts +28 -0
- package/dist/DesktopTimePicker/utils/utils.js +408 -0
- package/dist/Dialog/Dialog.d.ts +5 -2
- package/dist/Dialog/Dialog.js +56 -34
- package/dist/Dialog/Dialog.types.d.ts +50 -22
- package/dist/Dialog/FunctionalDialog.d.ts +10 -3
- package/dist/Dialog/FunctionalDialog.js +102 -80
- package/dist/Dialog/__tests__/fixtures/A11yDemos.d.ts +9 -0
- package/dist/Dialog/__tests__/fixtures/A11yDemos.js +78 -0
- package/dist/Dialog/index.css +19 -19
- package/dist/Dialog/index.d.ts +4 -1
- package/dist/Dialog/index.js +9 -2
- package/dist/Drawer/Drawer.js +7 -7
- package/dist/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Drawer/__tests__/fixtures/A11yDemos.js +148 -0
- package/dist/Fade/Fade.js +2 -2
- package/dist/Fade/Fade.miniapp.d.ts +10 -0
- package/dist/Fade/Fade.miniapp.js +200 -0
- package/dist/Fade/index.css +18 -0
- package/dist/IconButton/IconButton.js +23 -8
- package/dist/IconButton/IconButton.types.d.ts +35 -1
- package/dist/IconButton/index.css +3 -0
- package/dist/Image/Image.js +17 -10
- package/dist/Image/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Image/__tests__/fixtures/A11yDemos.js +130 -0
- package/dist/Image/index.css +3 -8
- package/dist/Input/Input.js +5 -3
- package/dist/Input/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Input/__tests__/fixtures/A11yDemos.js +81 -0
- package/dist/Input/index.css +8 -8
- package/dist/ItemSelector/ItemSelector.types.d.ts +0 -1
- package/dist/Modal/Modal.js +47 -47
- package/dist/Modal/Modal.miniapp.d.ts +2 -2
- package/dist/Modal/Modal.miniapp.js +48 -32
- package/dist/Modal/Modal.types.d.ts +26 -2
- package/dist/Modal/ModalManager.d.ts +21 -0
- package/dist/Modal/ModalManager.js +238 -0
- package/dist/Modal/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/dist/Modal/__tests__/fixtures/A11yDemos.js +52 -0
- package/dist/Modal/index.css +1 -1
- package/dist/Modal/index.d.ts +3 -0
- package/dist/Modal/index.js +9 -1
- package/dist/Modal/useModal.d.ts +24 -0
- package/dist/Modal/useModal.js +190 -0
- package/dist/NavBar/index.css +2 -2
- package/dist/Picker/Picker.css +4 -0
- package/dist/Picker/Picker.js +72 -18
- package/dist/Picker/Picker.types.d.ts +15 -2
- package/dist/Picker/PickerPanel.css +4 -0
- package/dist/Picker/PickerPanel.js +52 -41
- package/dist/Picker/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/Picker/__tests__/fixtures/A11yDemos.js +79 -0
- package/dist/Picker/index.css +8 -0
- package/dist/Picker/utils.d.ts +8 -5
- package/dist/Picker/utils.js +9 -12
- package/dist/Popover/Popover.js +123 -91
- package/dist/Popover/Popover.types.d.ts +44 -7
- package/dist/Popover/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/Popover/__tests__/fixtures/A11yDemos.js +175 -0
- package/dist/Popover/hooks/index.d.ts +8 -0
- package/dist/Popover/hooks/index.js +36 -0
- package/dist/Popover/hooks/usePopoverA11y.d.ts +14 -0
- package/dist/Popover/hooks/usePopoverA11y.js +66 -0
- package/dist/Popover/hooks/usePopoverEvents.d.ts +21 -0
- package/dist/Popover/hooks/usePopoverEvents.js +150 -0
- package/dist/Popover/hooks/usePopoverPosition.d.ts +17 -0
- package/dist/Popover/hooks/usePopoverPosition.js +124 -0
- package/dist/Popover/hooks/usePopoverState.d.ts +16 -0
- package/dist/Popover/hooks/usePopoverState.js +54 -0
- package/dist/Portal/Portal.miniapp.js +20 -11
- package/dist/Portal/Portal.types.d.ts +1 -1
- package/dist/Portal/PortalCore.js +2 -2
- package/dist/Progress/Progress.js +61 -6
- package/dist/Progress/Progress.types.d.ts +44 -0
- package/dist/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Progress/__tests__/fixtures/A11yDemos.js +100 -0
- package/dist/Radio/Radio.js +5 -4
- package/dist/Radio/RadioGroup.js +1 -1
- package/dist/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/Radio/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Rating/index.css +8 -12
- package/dist/ScrollView/ScrollView.js +48 -196
- package/dist/ScrollView/ScrollView.types.d.ts +120 -86
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.d.ts +7 -0
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.js +319 -0
- package/dist/ScrollView/useScrollView.d.ts +10 -0
- package/dist/ScrollView/useScrollView.js +300 -0
- package/dist/Select/Select.js +73 -39
- package/dist/Select/Select.types.d.ts +2 -2
- package/dist/Select/SelectOption.js +5 -1
- package/dist/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Select/__tests__/fixtures/A11yDemos.js +154 -0
- package/dist/Select/index.css +12 -8
- package/dist/Select/selectContext.d.ts +0 -1
- package/dist/Slide/Slide.js +2 -2
- package/dist/Slide/Slide.miniapp.d.ts +14 -0
- package/dist/Slide/Slide.miniapp.js +213 -0
- package/dist/Slide/index.css +72 -0
- package/dist/Slider/Slider.js +13 -5
- package/dist/Stack/demo/index.css +2 -0
- package/dist/SwipeAction/SwipeAction.css +79 -0
- package/dist/SwipeAction/SwipeAction.d.ts +5 -0
- package/dist/SwipeAction/SwipeAction.js +349 -0
- package/dist/SwipeAction/SwipeAction.types.d.ts +75 -0
- package/dist/SwipeAction/SwipeAction.types.js +15 -0
- package/dist/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/dist/SwipeAction/SwipeActionContext.js +30 -0
- package/dist/SwipeAction/SwipeActionItem.css +31 -0
- package/dist/SwipeAction/SwipeActionItem.d.ts +5 -0
- package/dist/SwipeAction/SwipeActionItem.js +105 -0
- package/dist/SwipeAction/constants.d.ts +9 -0
- package/dist/SwipeAction/constants.js +39 -0
- package/dist/SwipeAction/index.css +110 -0
- package/dist/SwipeAction/index.d.ts +5 -0
- package/dist/SwipeAction/index.js +50 -0
- package/dist/Swiper/Swiper.js +18 -4
- package/dist/Switch/Switch.js +5 -4
- package/dist/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/Switch/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Tabs/Tab.js +36 -21
- package/dist/Tabs/Tab.types.d.ts +1 -1
- package/dist/Tabs/TabPanel.d.ts +1 -1
- package/dist/Tabs/TabPanel.js +9 -5
- package/dist/Tabs/Tabs.css +2 -2
- package/dist/Tabs/Tabs.js +87 -64
- package/dist/Tabs/Tabs.types.d.ts +1 -1
- package/dist/Tabs/TabsContext.d.ts +4 -5
- package/dist/Tabs/TabsContext.js +3 -1
- package/dist/Tabs/index.css +2 -2
- package/dist/Tabs/utils/scroll.d.ts +2 -0
- package/dist/Tabs/utils/scroll.js +55 -0
- package/dist/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Tag/__tests__/fixtures/A11yDemos.js +196 -0
- package/dist/TextArea/TextArea.js +50 -7
- package/dist/TextArea/TextArea.types.d.ts +28 -0
- package/dist/TextArea/__tests__/fixtures/A11yDemos.d.ts +19 -0
- package/dist/TextArea/__tests__/fixtures/A11yDemos.js +91 -0
- package/dist/TextArea/index.css +4 -4
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +2 -2
- package/dist/ThemeProvider/ThemeProvider.types.js +0 -12
- package/dist/Toast/FunctionalToast.d.ts +2 -2
- package/dist/Toast/FunctionalToast.js +180 -85
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/Toast.js +69 -28
- package/dist/Toast/Toast.types.d.ts +13 -10
- package/dist/Toast/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/Toast/__tests__/fixtures/A11yDemos.js +54 -0
- package/dist/Toast/index.css +0 -1
- package/dist/Tooltip/Tooltip.js +63 -107
- package/dist/Tooltip/Tooltip.types.d.ts +94 -43
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.js +100 -0
- package/dist/Tooltip/useTooltip.d.ts +29 -0
- package/dist/Tooltip/useTooltip.js +313 -0
- package/dist/Transition/TransitionCore.js +30 -25
- package/dist/TransitionGroup/TransitionGroup.d.ts +7 -0
- package/dist/TransitionGroup/TransitionGroup.js +132 -0
- package/dist/TransitionGroup/TransitionGroup.types.d.ts +47 -0
- package/dist/TransitionGroup/TransitionGroup.types.js +15 -0
- package/dist/TransitionGroup/demo/TransitionGroupDemo.d.ts +4 -0
- package/dist/TransitionGroup/demo/TransitionGroupDemo.js +68 -0
- package/dist/TransitionGroup/demo/index.css +33 -0
- package/dist/TransitionGroup/index.d.ts +2 -0
- package/dist/TransitionGroup/index.js +41 -0
- package/dist/TransitionGroup/utils/childMapping.d.ts +27 -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/index.d.ts +8 -0
- package/dist/index.js +17 -1
- package/dist/locales/base.d.ts +40 -1
- package/dist/locales/en-US.js +54 -2
- package/dist/locales/zh-CN.js +56 -1
- package/dist/locales/zh-TW.js +56 -1
- package/es/Alert/Alert.js +2 -1
- package/es/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -0
- package/es/Alert/__tests__/fixtures/A11yDemos.js +107 -0
- package/es/Alert/index.css +4 -4
- package/es/Avatar/AvatarGroup.css +8 -8
- package/es/Avatar/index.css +8 -8
- package/es/Backdrop/Backdrop.js +3 -2
- package/es/Backdrop/Backdrop.types.d.ts +4 -0
- package/es/Backdrop/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/es/Backdrop/__tests__/fixtures/A11yDemos.js +17 -0
- package/es/Backdrop/index.css +2 -2
- package/es/Badge/Badge.js +38 -11
- package/es/Badge/Badge.types.d.ts +30 -1
- package/es/Badge/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/Badge/__tests__/fixtures/A11yDemos.js +70 -0
- package/es/Badge/hooks/useBadgeA11y.d.ts +23 -0
- package/es/Badge/hooks/useBadgeA11y.js +53 -0
- package/es/Badge/hooks/useBadgeDisplay.d.ts +16 -0
- package/es/Badge/hooks/useBadgeDisplay.js +33 -0
- package/es/Button/Button.js +2 -1
- package/es/Button/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/es/Button/__tests__/fixtures/A11yDemos.js +42 -0
- package/es/Button/index.css +4 -5
- package/es/CSSTransition/CSSTransition.d.ts +4 -0
- package/es/CSSTransition/CSSTransition.js +153 -0
- package/es/CSSTransition/CSSTransition.types.d.ts +13 -0
- package/es/CSSTransition/CSSTransition.types.js +1 -0
- package/es/CSSTransition/demo/CSSTransitionDemo.d.ts +4 -0
- package/es/CSSTransition/demo/CSSTransitionDemo.js +47 -0
- package/es/CSSTransition/demo/index.css +25 -0
- package/es/CSSTransition/index.d.ts +2 -0
- package/es/CSSTransition/index.js +6 -0
- package/es/Calendar/Calendar.js +131 -34
- package/es/Calendar/Calendar.types.d.ts +16 -1
- package/es/Calendar/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/Calendar/__tests__/fixtures/A11yDemos.js +8 -0
- package/es/Calendar/index.css +52 -9
- package/es/Calendar/utils.d.ts +7 -3
- package/es/Calendar/utils.js +29 -20
- package/es/Checkbox/Checkbox.js +5 -4
- package/es/Checkbox/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/Checkbox/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/CitySelector/CitySelector.types.d.ts +0 -1
- package/es/Collapse/Collapse.d.ts +1 -1
- package/es/Collapse/Collapse.js +26 -12
- package/es/Collapse/Collapse.miniapp.d.ts +10 -0
- package/es/Collapse/Collapse.miniapp.js +236 -0
- package/es/Collapse/index.css +40 -1
- package/es/CollapsePanel/index.css +1 -1
- package/es/Countdown/Countdown.js +61 -21
- package/es/Countdown/Countdown.types.d.ts +19 -15
- package/es/Countdown/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/es/Countdown/__tests__/fixtures/A11yDemos.js +68 -0
- package/es/Countdown/index.css +11 -0
- package/es/DatePicker/DatePicker.d.ts +4 -0
- package/es/DatePicker/DatePicker.js +308 -0
- package/es/DatePicker/DatePicker.types.d.ts +36 -0
- package/es/DatePicker/DatePicker.types.js +1 -0
- package/es/DatePicker/constants.d.ts +9 -0
- package/es/DatePicker/constants.js +14 -0
- package/es/DatePicker/index.d.ts +3 -0
- package/es/DatePicker/index.js +8 -0
- package/es/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/es/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/es/DesktopDatePicker/DesktopDatePicker.js +253 -0
- package/es/DesktopDatePicker/DesktopDatePicker.types.d.ts +163 -0
- package/es/DesktopDatePicker/DesktopDatePicker.types.js +1 -0
- package/es/DesktopDatePicker/deskTopPickerContainer.css +100 -0
- package/es/DesktopDatePicker/index.css +161 -0
- package/es/DesktopDatePicker/index.d.ts +2 -0
- package/es/DesktopDatePicker/index.js +6 -0
- package/es/DesktopDatePicker/useGetDatePickerContent.d.ts +6 -0
- package/es/DesktopDatePicker/useGetDatePickerContent.js +316 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +5 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.js +295 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +163 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.js +1 -0
- package/es/DesktopDateTimePicker/index.css +66 -0
- package/es/DesktopDateTimePicker/index.d.ts +2 -0
- package/es/DesktopDateTimePicker/index.js +9 -0
- package/es/DesktopPicker/DesktopPicker.d.ts +5 -0
- package/es/DesktopPicker/DesktopPicker.js +226 -0
- package/es/DesktopPicker/DesktopPicker.types.d.ts +61 -0
- package/es/DesktopPicker/DesktopPicker.types.js +1 -0
- package/es/DesktopPicker/index.css +39 -0
- package/es/DesktopPicker/index.d.ts +2 -0
- package/es/DesktopPicker/index.js +6 -0
- package/es/DesktopPicker/utils/calcAfterMounted.d.ts +2 -0
- package/es/DesktopPicker/utils/calcAfterMounted.js +6 -0
- package/es/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +2 -0
- package/es/DesktopPicker/utils/calcAfterMounted.miniapp.js +9 -0
- package/es/DesktopTimePicker/DesktopTimePicker.d.ts +5 -0
- package/es/DesktopTimePicker/DesktopTimePicker.js +261 -0
- package/es/DesktopTimePicker/DesktopTimePicker.types.d.ts +182 -0
- package/es/DesktopTimePicker/DesktopTimePicker.types.js +1 -0
- package/es/DesktopTimePicker/DesktopTimePickerList.d.ts +4 -0
- package/es/DesktopTimePicker/DesktopTimePickerList.js +84 -0
- package/es/DesktopTimePicker/index.css +170 -0
- package/es/DesktopTimePicker/index.d.ts +2 -0
- package/es/DesktopTimePicker/index.js +6 -0
- package/es/DesktopTimePicker/useGetTimePickerContent.d.ts +6 -0
- package/es/DesktopTimePicker/useGetTimePickerContent.js +226 -0
- package/es/DesktopTimePicker/utils/scrollUtil.d.ts +2 -0
- package/es/DesktopTimePicker/utils/scrollUtil.js +8 -0
- package/es/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +2 -0
- package/es/DesktopTimePicker/utils/scrollUtil.miniapp.js +22 -0
- package/es/DesktopTimePicker/utils/utils.d.ts +28 -0
- package/es/DesktopTimePicker/utils/utils.js +365 -0
- package/es/Dialog/Dialog.d.ts +5 -2
- package/es/Dialog/Dialog.js +57 -35
- package/es/Dialog/Dialog.types.d.ts +50 -22
- package/es/Dialog/FunctionalDialog.d.ts +10 -3
- package/es/Dialog/FunctionalDialog.js +106 -84
- package/es/Dialog/__tests__/fixtures/A11yDemos.d.ts +9 -0
- package/es/Dialog/__tests__/fixtures/A11yDemos.js +43 -0
- package/es/Dialog/index.css +19 -19
- package/es/Dialog/index.d.ts +4 -1
- package/es/Dialog/index.js +10 -3
- package/es/Drawer/Drawer.js +8 -8
- package/es/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Drawer/__tests__/fixtures/A11yDemos.js +112 -0
- package/es/Fade/Fade.js +2 -2
- package/es/Fade/Fade.miniapp.d.ts +10 -0
- package/es/Fade/Fade.miniapp.js +179 -0
- package/es/Fade/index.css +18 -0
- package/es/IconButton/IconButton.js +23 -8
- package/es/IconButton/IconButton.types.d.ts +35 -1
- package/es/IconButton/index.css +3 -0
- package/es/Image/Image.js +17 -10
- package/es/Image/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Image/__tests__/fixtures/A11yDemos.js +92 -0
- package/es/Image/index.css +3 -8
- package/es/Input/Input.js +5 -3
- package/es/Input/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Input/__tests__/fixtures/A11yDemos.js +43 -0
- package/es/Input/index.css +8 -8
- package/es/ItemSelector/ItemSelector.types.d.ts +0 -1
- package/es/Modal/Modal.js +48 -48
- package/es/Modal/Modal.miniapp.d.ts +2 -2
- package/es/Modal/Modal.miniapp.js +49 -33
- package/es/Modal/Modal.types.d.ts +26 -2
- package/es/Modal/ModalManager.d.ts +21 -0
- package/es/Modal/ModalManager.js +214 -0
- package/es/Modal/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/es/Modal/__tests__/fixtures/A11yDemos.js +18 -0
- package/es/Modal/index.css +1 -1
- package/es/Modal/index.d.ts +3 -0
- package/es/Modal/index.js +6 -1
- package/es/Modal/useModal.d.ts +24 -0
- package/es/Modal/useModal.js +169 -0
- package/es/NavBar/index.css +2 -2
- package/es/Picker/Picker.css +4 -0
- package/es/Picker/Picker.js +72 -18
- package/es/Picker/Picker.types.d.ts +15 -2
- package/es/Picker/PickerPanel.css +4 -0
- package/es/Picker/PickerPanel.js +52 -41
- package/es/Picker/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/Picker/__tests__/fixtures/A11yDemos.js +46 -0
- package/es/Picker/index.css +8 -0
- package/es/Picker/utils.d.ts +8 -5
- package/es/Picker/utils.js +9 -12
- package/es/Popover/Popover.js +130 -99
- package/es/Popover/Popover.types.d.ts +44 -7
- package/es/Popover/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/Popover/__tests__/fixtures/A11yDemos.js +135 -0
- package/es/Popover/hooks/index.d.ts +8 -0
- package/es/Popover/hooks/index.js +10 -0
- package/es/Popover/hooks/usePopoverA11y.d.ts +14 -0
- package/es/Popover/hooks/usePopoverA11y.js +43 -0
- package/es/Popover/hooks/usePopoverEvents.d.ts +21 -0
- package/es/Popover/hooks/usePopoverEvents.js +127 -0
- package/es/Popover/hooks/usePopoverPosition.d.ts +17 -0
- package/es/Popover/hooks/usePopoverPosition.js +105 -0
- package/es/Popover/hooks/usePopoverState.d.ts +16 -0
- package/es/Popover/hooks/usePopoverState.js +31 -0
- package/es/Portal/Portal.miniapp.js +21 -12
- package/es/Portal/Portal.types.d.ts +1 -1
- package/es/Portal/PortalCore.js +2 -2
- package/es/Progress/Progress.js +61 -6
- package/es/Progress/Progress.types.d.ts +44 -0
- package/es/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Progress/__tests__/fixtures/A11yDemos.js +62 -0
- package/es/Radio/Radio.js +5 -4
- package/es/Radio/RadioGroup.js +1 -1
- package/es/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/Radio/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Rating/index.css +8 -12
- package/es/ScrollView/ScrollView.js +51 -197
- package/es/ScrollView/ScrollView.types.d.ts +120 -86
- package/es/ScrollView/__tests__/fixtures/A11yDemos.d.ts +7 -0
- package/es/ScrollView/__tests__/fixtures/A11yDemos.js +283 -0
- package/es/ScrollView/useScrollView.d.ts +10 -0
- package/es/ScrollView/useScrollView.js +279 -0
- package/es/Select/Select.js +73 -40
- package/es/Select/Select.types.d.ts +2 -2
- package/es/Select/SelectOption.js +5 -1
- package/es/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Select/__tests__/fixtures/A11yDemos.js +118 -0
- package/es/Select/index.css +12 -8
- package/es/Select/selectContext.d.ts +0 -1
- package/es/Slide/Slide.js +2 -2
- package/es/Slide/Slide.miniapp.d.ts +14 -0
- package/es/Slide/Slide.miniapp.js +192 -0
- package/es/Slide/index.css +72 -0
- package/es/Slider/Slider.js +16 -6
- package/es/Stack/demo/index.css +2 -0
- package/es/SwipeAction/SwipeAction.css +79 -0
- package/es/SwipeAction/SwipeAction.d.ts +5 -0
- package/es/SwipeAction/SwipeAction.js +334 -0
- package/es/SwipeAction/SwipeAction.types.d.ts +75 -0
- package/es/SwipeAction/SwipeAction.types.js +1 -0
- package/es/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/es/SwipeAction/SwipeActionContext.js +11 -0
- package/es/SwipeAction/SwipeActionItem.css +31 -0
- package/es/SwipeAction/SwipeActionItem.d.ts +5 -0
- package/es/SwipeAction/SwipeActionItem.js +78 -0
- package/es/SwipeAction/constants.d.ts +9 -0
- package/es/SwipeAction/constants.js +15 -0
- package/es/SwipeAction/index.css +110 -0
- package/es/SwipeAction/index.d.ts +5 -0
- package/es/SwipeAction/index.js +12 -0
- package/es/Swiper/Swiper.js +18 -4
- package/es/Switch/Switch.js +5 -4
- package/es/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/Switch/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Tabs/Tab.js +36 -21
- package/es/Tabs/Tab.types.d.ts +1 -1
- package/es/Tabs/TabPanel.d.ts +1 -1
- package/es/Tabs/TabPanel.js +8 -4
- package/es/Tabs/Tabs.css +2 -2
- package/es/Tabs/Tabs.js +87 -64
- package/es/Tabs/Tabs.types.d.ts +1 -1
- package/es/Tabs/TabsContext.d.ts +4 -5
- package/es/Tabs/TabsContext.js +3 -1
- package/es/Tabs/index.css +2 -2
- package/es/Tabs/utils/scroll.d.ts +2 -0
- package/es/Tabs/utils/scroll.js +36 -0
- package/es/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Tag/__tests__/fixtures/A11yDemos.js +160 -0
- package/es/TextArea/TextArea.js +51 -8
- package/es/TextArea/TextArea.types.d.ts +28 -0
- package/es/TextArea/__tests__/fixtures/A11yDemos.d.ts +19 -0
- package/es/TextArea/__tests__/fixtures/A11yDemos.js +54 -0
- package/es/TextArea/index.css +4 -4
- package/es/ThemeProvider/ThemeProvider.types.d.ts +2 -2
- package/es/Toast/FunctionalToast.d.ts +2 -2
- package/es/Toast/FunctionalToast.js +186 -86
- package/es/Toast/Toast.d.ts +2 -2
- package/es/Toast/Toast.js +69 -28
- package/es/Toast/Toast.types.d.ts +13 -10
- package/es/Toast/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/Toast/__tests__/fixtures/A11yDemos.js +21 -0
- package/es/Toast/index.css +0 -1
- package/es/Tooltip/Tooltip.js +64 -114
- package/es/Tooltip/Tooltip.types.d.ts +94 -43
- package/es/Tooltip/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/Tooltip/__tests__/fixtures/A11yDemos.js +60 -0
- package/es/Tooltip/useTooltip.d.ts +29 -0
- package/es/Tooltip/useTooltip.js +290 -0
- package/es/Transition/TransitionCore.js +31 -26
- package/es/TransitionGroup/TransitionGroup.d.ts +7 -0
- package/es/TransitionGroup/TransitionGroup.js +109 -0
- package/es/TransitionGroup/TransitionGroup.types.d.ts +47 -0
- package/es/TransitionGroup/TransitionGroup.types.js +1 -0
- package/es/TransitionGroup/demo/TransitionGroupDemo.d.ts +4 -0
- package/es/TransitionGroup/demo/TransitionGroupDemo.js +39 -0
- package/es/TransitionGroup/demo/index.css +33 -0
- package/es/TransitionGroup/index.d.ts +2 -0
- package/es/TransitionGroup/index.js +6 -0
- package/es/TransitionGroup/utils/childMapping.d.ts +27 -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/index.d.ts +8 -0
- package/es/index.js +8 -0
- package/es/locales/base.d.ts +40 -1
- package/es/locales/en-US.js +54 -2
- package/es/locales/zh-CN.js +56 -1
- package/es/locales/zh-TW.js +56 -1
- package/package.json +9 -6
- package/dist/Tabs/utils/bound.d.ts +0 -1
- package/es/Tabs/utils/bound.d.ts +0 -1
- package/es/Tabs/utils/bound.js +0 -13
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Checkbox from "../../Checkbox";
|
|
3
|
+
const basicCheckboxDemo = () => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, /* @__PURE__ */ React.createElement(Checkbox, { checked: true }), "Checkbox"));
|
|
5
|
+
};
|
|
6
|
+
const disabledCheckboxDemo = () => {
|
|
7
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, /* @__PURE__ */ React.createElement(Checkbox, { disabled: true }), "Checkbox"));
|
|
8
|
+
};
|
|
9
|
+
const ariaLabelCheckboxDemo = () => {
|
|
10
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Checkbox, { inputProps: { "aria-label": "\u590D\u9009\u6846" } }, "Checkbox"));
|
|
11
|
+
};
|
|
12
|
+
var A11yDemos_default = {
|
|
13
|
+
basicCheckboxDemo,
|
|
14
|
+
disabledCheckboxDemo,
|
|
15
|
+
ariaLabelCheckboxDemo
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
ariaLabelCheckboxDemo,
|
|
19
|
+
basicCheckboxDemo,
|
|
20
|
+
A11yDemos_default as default,
|
|
21
|
+
disabledCheckboxDemo
|
|
22
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollapseProps } from './Collapse.types';
|
|
3
3
|
import './index.less';
|
|
4
|
-
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<
|
|
4
|
+
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
export default Collapse;
|
package/es/Collapse/Collapse.js
CHANGED
|
@@ -37,12 +37,14 @@ import {
|
|
|
37
37
|
getTransitionProps,
|
|
38
38
|
createTransitions
|
|
39
39
|
} from "@bifrostui/utils";
|
|
40
|
+
import clsx from "clsx";
|
|
40
41
|
import { Transition } from "../Transition";
|
|
41
42
|
import "./index.css";
|
|
42
43
|
const defaultEasing = {
|
|
43
44
|
enter: easing.easeOut,
|
|
44
45
|
exit: easing.sharp
|
|
45
46
|
};
|
|
47
|
+
const FIT_CONTENT = "fit-content";
|
|
46
48
|
const defaultTimeout = {
|
|
47
49
|
enter: duration.enteringScreen,
|
|
48
50
|
exit: duration.leavingScreen
|
|
@@ -71,7 +73,6 @@ const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
71
73
|
"className",
|
|
72
74
|
"children"
|
|
73
75
|
]);
|
|
74
|
-
const nodeRef = useForkRef(ref);
|
|
75
76
|
const wrapperRef = useRef(null);
|
|
76
77
|
const collapseRef = useForkRef(wrapperRef, ref);
|
|
77
78
|
const transitions = createTransitions();
|
|
@@ -79,11 +80,11 @@ const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
79
80
|
const collapsedSize = typeof collapsedSizeProp === "number" ? `${collapsedSizeProp}px` : collapsedSizeProp;
|
|
80
81
|
const size = isHorizontal ? "width" : "height";
|
|
81
82
|
const getCollapseWrapperSize = (reactNode) => {
|
|
82
|
-
return reactNode ? `${reactNode[isHorizontal ? "clientWidth" : "clientHeight"]}px` :
|
|
83
|
+
return reactNode ? `${reactNode[isHorizontal ? "clientWidth" : "clientHeight"]}px` : FIT_CONTENT;
|
|
83
84
|
};
|
|
84
85
|
useEffect(() => {
|
|
85
86
|
var _a2, _b, _c, _d;
|
|
86
|
-
if (appear === false && inProp === true && ((_b = (_a2 = wrapperRef.current) == null ? void 0 : _a2.style) == null ? void 0 : _b[size]) ===
|
|
87
|
+
if (appear === false && inProp === true && ((_b = (_a2 = wrapperRef.current) == null ? void 0 : _a2.style) == null ? void 0 : _b[size]) === FIT_CONTENT) {
|
|
87
88
|
wrapperRef.current.style[size] = getCollapseWrapperSize(
|
|
88
89
|
(_d = (_c = wrapperRef.current) == null ? void 0 : _c.children) == null ? void 0 : _d[0]
|
|
89
90
|
);
|
|
@@ -94,7 +95,6 @@ const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
94
95
|
return /* @__PURE__ */ React.createElement(
|
|
95
96
|
Transition,
|
|
96
97
|
__spreadProps(__spreadValues({}, other), {
|
|
97
|
-
ref: nodeRef,
|
|
98
98
|
in: inProp,
|
|
99
99
|
timeout,
|
|
100
100
|
delay,
|
|
@@ -102,16 +102,29 @@ const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
102
102
|
}),
|
|
103
103
|
(state, childProps) => {
|
|
104
104
|
var _a2;
|
|
105
|
-
const transition = transitions.create(
|
|
105
|
+
const transition = state === "entering" || state === "exiting" ? transitions.create(
|
|
106
106
|
size,
|
|
107
107
|
getTransitionProps(
|
|
108
108
|
{ timeout, style, easing: easingProp, delay },
|
|
109
|
-
{
|
|
109
|
+
{
|
|
110
|
+
mode: state
|
|
111
|
+
}
|
|
110
112
|
)
|
|
111
|
-
);
|
|
113
|
+
) : "none";
|
|
112
114
|
const wrapperSize = () => {
|
|
113
115
|
var _a3, _b;
|
|
114
|
-
|
|
116
|
+
let collapseWrapperSize = collapsedSize;
|
|
117
|
+
if (inProp && state === "entered") {
|
|
118
|
+
collapseWrapperSize = "auto";
|
|
119
|
+
} else if (state === "entering" || state === "entered") {
|
|
120
|
+
collapseWrapperSize = getCollapseWrapperSize(
|
|
121
|
+
(_b = (_a3 = wrapperRef.current) == null ? void 0 : _a3.children) == null ? void 0 : _b[0]
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
if (wrapperRef.current && state === "exiting") {
|
|
125
|
+
const _ = wrapperRef.current.offsetHeight;
|
|
126
|
+
console.log(_);
|
|
127
|
+
}
|
|
115
128
|
return isHorizontal ? {
|
|
116
129
|
width: collapseWrapperSize,
|
|
117
130
|
WebKitWidth: collapseWrapperSize
|
|
@@ -122,14 +135,15 @@ const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
122
135
|
};
|
|
123
136
|
return React.createElement(
|
|
124
137
|
"div",
|
|
125
|
-
{
|
|
126
|
-
className:
|
|
138
|
+
__spreadProps(__spreadValues({
|
|
139
|
+
className: clsx("bui-collapse", className),
|
|
127
140
|
style: __spreadValues(__spreadProps(__spreadValues({}, style), {
|
|
128
141
|
transition,
|
|
129
142
|
WebkitTransition: transition
|
|
130
|
-
}), wrapperSize())
|
|
143
|
+
}), wrapperSize())
|
|
144
|
+
}, childProps), {
|
|
131
145
|
ref: collapseRef
|
|
132
|
-
},
|
|
146
|
+
}),
|
|
133
147
|
React.cloneElement(children, __spreadValues({
|
|
134
148
|
style: __spreadValues({}, (_a2 = children.props) == null ? void 0 : _a2.style)
|
|
135
149
|
}, childProps))
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collapse Animation Component
|
|
3
|
+
* @description A component that implements collapse in/out animation effects for elements using CSS animations
|
|
4
|
+
* @component Collapse
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { CollapseProps } from './Collapse.types';
|
|
8
|
+
import './index.less';
|
|
9
|
+
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
export default Collapse;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
33
|
+
import {
|
|
34
|
+
useForkRef,
|
|
35
|
+
duration,
|
|
36
|
+
easing,
|
|
37
|
+
getTransitionProps,
|
|
38
|
+
createTransitions,
|
|
39
|
+
getBoundingClientRect,
|
|
40
|
+
useDidMountEffect
|
|
41
|
+
} from "@bifrostui/utils";
|
|
42
|
+
import Taro from "@tarojs/taro";
|
|
43
|
+
import "./index.css";
|
|
44
|
+
const defaultEasing = {
|
|
45
|
+
enter: easing.easeOut,
|
|
46
|
+
exit: easing.sharp
|
|
47
|
+
};
|
|
48
|
+
const defaultTimeout = {
|
|
49
|
+
enter: duration.enteringScreen,
|
|
50
|
+
exit: duration.leavingScreen
|
|
51
|
+
};
|
|
52
|
+
const FIT_CONTENT = "fit-content";
|
|
53
|
+
const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
54
|
+
var _b;
|
|
55
|
+
const _a = props, {
|
|
56
|
+
children,
|
|
57
|
+
in: inProp,
|
|
58
|
+
style,
|
|
59
|
+
className,
|
|
60
|
+
appear = false,
|
|
61
|
+
enter = true,
|
|
62
|
+
exit = true,
|
|
63
|
+
delay = 0,
|
|
64
|
+
easing: easingProp = defaultEasing,
|
|
65
|
+
timeout = defaultTimeout,
|
|
66
|
+
direction = "vertical",
|
|
67
|
+
collapsedSize: collapsedSizeProp = 0,
|
|
68
|
+
mountOnEnter: mountOnEnter,
|
|
69
|
+
unmountOnExit,
|
|
70
|
+
onEnter,
|
|
71
|
+
onEntering,
|
|
72
|
+
onEntered,
|
|
73
|
+
onExit,
|
|
74
|
+
onExiting,
|
|
75
|
+
onExited
|
|
76
|
+
} = _a, others = __objRest(_a, [
|
|
77
|
+
"children",
|
|
78
|
+
"in",
|
|
79
|
+
"style",
|
|
80
|
+
"className",
|
|
81
|
+
"appear",
|
|
82
|
+
"enter",
|
|
83
|
+
"exit",
|
|
84
|
+
"delay",
|
|
85
|
+
"easing",
|
|
86
|
+
"timeout",
|
|
87
|
+
"direction",
|
|
88
|
+
"collapsedSize",
|
|
89
|
+
// Lifecycle hooks
|
|
90
|
+
"mountOnEnter",
|
|
91
|
+
"unmountOnExit",
|
|
92
|
+
"onEnter",
|
|
93
|
+
"onEntering",
|
|
94
|
+
"onEntered",
|
|
95
|
+
"onExit",
|
|
96
|
+
"onExiting",
|
|
97
|
+
"onExited"
|
|
98
|
+
]);
|
|
99
|
+
const [isMounted, setIsMounted] = useState(inProp || !mountOnEnter);
|
|
100
|
+
const shouldAnimate = inProp && enter || !inProp && exit;
|
|
101
|
+
const [animation, setAnimation] = useState("none");
|
|
102
|
+
const shouldAnimateOnFirstMount = inProp && appear;
|
|
103
|
+
const collapsedSize = typeof collapsedSizeProp === "number" ? `${collapsedSizeProp}px` : collapsedSizeProp;
|
|
104
|
+
const [actualSize, setActualSize] = useState(() => {
|
|
105
|
+
if (!shouldAnimateOnFirstMount) {
|
|
106
|
+
return inProp ? FIT_CONTENT : collapsedSize;
|
|
107
|
+
}
|
|
108
|
+
return collapsedSize;
|
|
109
|
+
});
|
|
110
|
+
const elementRef = useRef(null);
|
|
111
|
+
const handleRef = useForkRef(ref, children == null ? void 0 : children.ref, elementRef);
|
|
112
|
+
const getAnimation = (canAnimate) => {
|
|
113
|
+
const transitions = createTransitions();
|
|
114
|
+
const mode = inProp ? "enter" : "exit";
|
|
115
|
+
const animationName = `bui-collapse-${mode}-${direction}`;
|
|
116
|
+
return transitions.create(
|
|
117
|
+
animationName,
|
|
118
|
+
getTransitionProps(
|
|
119
|
+
{
|
|
120
|
+
timeout: canAnimate ? timeout : 0,
|
|
121
|
+
delay: canAnimate ? delay : 0,
|
|
122
|
+
style,
|
|
123
|
+
easing: easingProp
|
|
124
|
+
},
|
|
125
|
+
{ mode: inProp ? "enter" : "exit" }
|
|
126
|
+
)
|
|
127
|
+
);
|
|
128
|
+
};
|
|
129
|
+
const getCollapseWrapperSize = (reactNode) => {
|
|
130
|
+
return new Promise((resolve) => {
|
|
131
|
+
var _a2;
|
|
132
|
+
const reactNodeChild = (_a2 = reactNode == null ? void 0 : reactNode.children) == null ? void 0 : _a2[0];
|
|
133
|
+
if (!reactNodeChild) {
|
|
134
|
+
resolve(FIT_CONTENT);
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
Taro.nextTick(() => {
|
|
138
|
+
getBoundingClientRect(reactNodeChild).then((res) => {
|
|
139
|
+
if (!res) {
|
|
140
|
+
resolve(FIT_CONTENT);
|
|
141
|
+
} else {
|
|
142
|
+
const isHorizontal = direction === "horizontal";
|
|
143
|
+
const newSize = isHorizontal ? `${res == null ? void 0 : res.width}px` : `${res == null ? void 0 : res.height}px`;
|
|
144
|
+
resolve(newSize);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
useDidMountEffect(() => {
|
|
151
|
+
if (inProp && !isMounted) {
|
|
152
|
+
setActualSize(collapsedSize);
|
|
153
|
+
setIsMounted(true);
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
getCollapseWrapperSize(elementRef.current).then((size) => {
|
|
157
|
+
setActualSize(size);
|
|
158
|
+
setAnimation(getAnimation(shouldAnimate));
|
|
159
|
+
});
|
|
160
|
+
}, [inProp, isMounted]);
|
|
161
|
+
useEffect(() => {
|
|
162
|
+
if (!shouldAnimateOnFirstMount)
|
|
163
|
+
return;
|
|
164
|
+
getCollapseWrapperSize(elementRef.current).then((size) => {
|
|
165
|
+
setActualSize(size);
|
|
166
|
+
setAnimation(getAnimation(true));
|
|
167
|
+
});
|
|
168
|
+
}, []);
|
|
169
|
+
useEffect(() => {
|
|
170
|
+
const shouldTriggerCallback = isMounted && shouldAnimate;
|
|
171
|
+
if (!shouldTriggerCallback)
|
|
172
|
+
return;
|
|
173
|
+
if (inProp) {
|
|
174
|
+
onEnter == null ? void 0 : onEnter(elementRef.current);
|
|
175
|
+
} else {
|
|
176
|
+
onExit == null ? void 0 : onExit(elementRef.current);
|
|
177
|
+
}
|
|
178
|
+
}, [inProp, isMounted]);
|
|
179
|
+
const handleAnimationStart = () => {
|
|
180
|
+
if (!shouldAnimate)
|
|
181
|
+
return;
|
|
182
|
+
if (inProp) {
|
|
183
|
+
onEntering == null ? void 0 : onEntering(elementRef.current);
|
|
184
|
+
} else {
|
|
185
|
+
onExiting == null ? void 0 : onExiting(elementRef.current);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
const handleAnimationEnd = () => {
|
|
189
|
+
if (inProp) {
|
|
190
|
+
Taro.nextTick(() => {
|
|
191
|
+
setActualSize("auto");
|
|
192
|
+
});
|
|
193
|
+
onEntered == null ? void 0 : onEntered(elementRef.current);
|
|
194
|
+
} else {
|
|
195
|
+
onExited == null ? void 0 : onExited(elementRef.current);
|
|
196
|
+
if (unmountOnExit) {
|
|
197
|
+
setIsMounted(false);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
if (!children || !isMounted)
|
|
202
|
+
return null;
|
|
203
|
+
const cssVariables = {
|
|
204
|
+
"--collapse-size": actualSize,
|
|
205
|
+
"--collapse-collapsed-size": collapsedSize
|
|
206
|
+
};
|
|
207
|
+
const getClassName = () => {
|
|
208
|
+
const classes = ["bui-collapse"];
|
|
209
|
+
if (className) {
|
|
210
|
+
classes.push(className);
|
|
211
|
+
}
|
|
212
|
+
classes.push(`bui-collapse-${direction}`);
|
|
213
|
+
return classes.join(" ");
|
|
214
|
+
};
|
|
215
|
+
return React.createElement(
|
|
216
|
+
"div",
|
|
217
|
+
__spreadProps(__spreadValues({}, others), {
|
|
218
|
+
className: getClassName(),
|
|
219
|
+
style: __spreadValues(__spreadValues({
|
|
220
|
+
animation,
|
|
221
|
+
animationFillMode: "both"
|
|
222
|
+
}, cssVariables), style),
|
|
223
|
+
onAnimationStart: handleAnimationStart,
|
|
224
|
+
onAnimationEnd: handleAnimationEnd,
|
|
225
|
+
ref: handleRef
|
|
226
|
+
}),
|
|
227
|
+
React.cloneElement(children, {
|
|
228
|
+
style: __spreadValues({}, (_b = children.props) == null ? void 0 : _b.style)
|
|
229
|
+
})
|
|
230
|
+
);
|
|
231
|
+
});
|
|
232
|
+
Collapse.displayName = "BuiCollapse";
|
|
233
|
+
var Collapse_miniapp_default = Collapse;
|
|
234
|
+
export {
|
|
235
|
+
Collapse_miniapp_default as default
|
|
236
|
+
};
|
package/es/Collapse/index.css
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
.bui-collapse {
|
|
2
2
|
overflow: hidden;
|
|
3
|
-
white-space: nowrap;
|
|
4
3
|
height: fit-content;
|
|
5
4
|
width: fit-content;
|
|
5
|
+
--collapse-size: auto;
|
|
6
|
+
--collapse-collapsed-size: 0px;
|
|
7
|
+
}
|
|
8
|
+
.bui-collapse.bui-collapse-vertical {
|
|
9
|
+
height: var(--collapse-size);
|
|
10
|
+
}
|
|
11
|
+
.bui-collapse.bui-collapse-horizontal {
|
|
12
|
+
width: var(--collapse-size);
|
|
13
|
+
}
|
|
14
|
+
@keyframes bui-collapse-enter-vertical {
|
|
15
|
+
from {
|
|
16
|
+
height: var(--collapse-collapsed-size);
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
height: var(--collapse-size);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
@keyframes bui-collapse-exit-vertical {
|
|
23
|
+
from {
|
|
24
|
+
height: var(--collapse-size);
|
|
25
|
+
}
|
|
26
|
+
to {
|
|
27
|
+
height: var(--collapse-collapsed-size);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@keyframes bui-collapse-enter-horizontal {
|
|
31
|
+
from {
|
|
32
|
+
width: var(--collapse-collapsed-size);
|
|
33
|
+
}
|
|
34
|
+
to {
|
|
35
|
+
width: var(--collapse-size);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
@keyframes bui-collapse-exit-horizontal {
|
|
39
|
+
from {
|
|
40
|
+
width: var(--collapse-size);
|
|
41
|
+
}
|
|
42
|
+
to {
|
|
43
|
+
width: var(--collapse-collapsed-size);
|
|
44
|
+
}
|
|
6
45
|
}
|
|
@@ -19,7 +19,7 @@ xhs-page {
|
|
|
19
19
|
}
|
|
20
20
|
.bui-collapse-panel-item-header-label {
|
|
21
21
|
padding: var(--bui-collapse-panel-header-padding);
|
|
22
|
-
font-size: var(--bui-title-size-
|
|
22
|
+
font-size: var(--bui-title-size-3);
|
|
23
23
|
}
|
|
24
24
|
.bui-collapse-panel-item-header-icon-arrow {
|
|
25
25
|
transform: rotate(0deg);
|
|
@@ -31,6 +31,7 @@ import React, { forwardRef, useEffect, useState } from "react";
|
|
|
31
31
|
import { useDidMountEffect } from "@bifrostui/utils";
|
|
32
32
|
import useCountdown from "./useCountdown";
|
|
33
33
|
import { formatCountdown } from "./utils";
|
|
34
|
+
import { useLocaleText } from "../locales";
|
|
34
35
|
import "./index.css";
|
|
35
36
|
const prefixCls = "bui-countdown";
|
|
36
37
|
const Countdown = forwardRef((props, ref) => {
|
|
@@ -40,25 +41,28 @@ const Countdown = forwardRef((props, ref) => {
|
|
|
40
41
|
endTimestamp,
|
|
41
42
|
remainingTime = 0,
|
|
42
43
|
format = "HH:mm:ss",
|
|
43
|
-
unitStyle = {},
|
|
44
|
-
valueStyle = [{}, {}],
|
|
45
|
-
timeSliceStyle = {},
|
|
46
44
|
renderContent,
|
|
47
45
|
onChange,
|
|
48
|
-
onFinish
|
|
46
|
+
onFinish,
|
|
47
|
+
"aria-label": ariaLabel,
|
|
48
|
+
"aria-labelledby": ariaLabelledby,
|
|
49
|
+
"aria-describedby": ariaDescribedby,
|
|
50
|
+
role = "timer"
|
|
49
51
|
} = _a, others = __objRest(_a, [
|
|
50
52
|
"className",
|
|
51
53
|
"serverTimestamp",
|
|
52
54
|
"endTimestamp",
|
|
53
55
|
"remainingTime",
|
|
54
56
|
"format",
|
|
55
|
-
"unitStyle",
|
|
56
|
-
"valueStyle",
|
|
57
|
-
"timeSliceStyle",
|
|
58
57
|
"renderContent",
|
|
59
58
|
"onChange",
|
|
60
|
-
"onFinish"
|
|
59
|
+
"onFinish",
|
|
60
|
+
"aria-label",
|
|
61
|
+
"aria-labelledby",
|
|
62
|
+
"aria-describedby",
|
|
63
|
+
"role"
|
|
61
64
|
]);
|
|
65
|
+
const { remain, remainTime, willEnd, hasEnd, timer } = useLocaleText("countdown");
|
|
62
66
|
const [startTime, setStartTime] = useState(
|
|
63
67
|
() => serverTimestamp != null ? serverTimestamp : Date.now()
|
|
64
68
|
);
|
|
@@ -87,9 +91,38 @@ const Countdown = forwardRef((props, ref) => {
|
|
|
87
91
|
setEndTime(endTimestamp);
|
|
88
92
|
}
|
|
89
93
|
}, [serverTimestamp, endTimestamp]);
|
|
94
|
+
const getAccessibleTimeDescription = (timeIns) => {
|
|
95
|
+
const { years, months, days, hours, minutes, seconds, total } = timeIns;
|
|
96
|
+
if (total <= 0) {
|
|
97
|
+
return hasEnd;
|
|
98
|
+
}
|
|
99
|
+
const parts = [];
|
|
100
|
+
if (parseInt(years, 10) > 0)
|
|
101
|
+
parts.push(`${parseInt(years, 10)}${remain.year}`);
|
|
102
|
+
if (parseInt(months, 10) > 0)
|
|
103
|
+
parts.push(`${parseInt(months, 10)}${remain.month}`);
|
|
104
|
+
if (parseInt(days, 10) > 0)
|
|
105
|
+
parts.push(`${parseInt(days, 10)}${remain.day}`);
|
|
106
|
+
if (parseInt(hours, 10) > 0)
|
|
107
|
+
parts.push(`${parseInt(hours, 10)}${remain.hour}`);
|
|
108
|
+
if (parseInt(minutes, 10) > 0)
|
|
109
|
+
parts.push(`${parseInt(minutes, 10)}${remain.minute}`);
|
|
110
|
+
if (parseInt(seconds, 10) > 0)
|
|
111
|
+
parts.push(`${parseInt(seconds, 10)}${remain.second}`);
|
|
112
|
+
return parts.length > 0 ? `${remainTime}\uFF1A${parts.join("")}` : willEnd;
|
|
113
|
+
};
|
|
90
114
|
const defaultRender = (timeIns) => {
|
|
91
115
|
const { timeList } = formatCountdown(timeIns.total, format);
|
|
92
|
-
|
|
116
|
+
const accessibleDescription = getAccessibleTimeDescription(timeIns);
|
|
117
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
118
|
+
"span",
|
|
119
|
+
{
|
|
120
|
+
className: clsx(`${prefixCls}-sr-only`),
|
|
121
|
+
"aria-live": "polite",
|
|
122
|
+
"aria-atomic": "true"
|
|
123
|
+
},
|
|
124
|
+
accessibleDescription
|
|
125
|
+
), timeList.map((item, index) => {
|
|
93
126
|
const { unitText, valStr } = item;
|
|
94
127
|
const valueList = valStr.split("");
|
|
95
128
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -97,29 +130,36 @@ const Countdown = forwardRef((props, ref) => {
|
|
|
97
130
|
{
|
|
98
131
|
key: `slice-${index}`,
|
|
99
132
|
className: clsx(`${prefixCls}-slice`),
|
|
100
|
-
|
|
133
|
+
"aria-hidden": "true"
|
|
101
134
|
},
|
|
102
135
|
/* @__PURE__ */ React.createElement("span", { className: clsx(`${prefixCls}-slice-item`) }, valueList.map((val, i) => /* @__PURE__ */ React.createElement(
|
|
103
136
|
"span",
|
|
104
137
|
{
|
|
105
138
|
key: `slice-value-${i}`,
|
|
106
|
-
className: clsx(`${prefixCls}-slice-value`)
|
|
107
|
-
style: valueStyle[i]
|
|
139
|
+
className: clsx(`${prefixCls}-slice-value`)
|
|
108
140
|
},
|
|
109
141
|
val
|
|
110
142
|
))),
|
|
111
|
-
unitText && /* @__PURE__ */ React.createElement(
|
|
112
|
-
"span",
|
|
113
|
-
{
|
|
114
|
-
className: clsx(`${prefixCls}-slice-unit`),
|
|
115
|
-
style: unitStyle
|
|
116
|
-
},
|
|
117
|
-
unitText
|
|
118
|
-
)
|
|
143
|
+
unitText && /* @__PURE__ */ React.createElement("span", { className: clsx(`${prefixCls}-slice-unit`) }, unitText)
|
|
119
144
|
);
|
|
120
145
|
}));
|
|
121
146
|
};
|
|
122
|
-
|
|
147
|
+
const ariaProps = {
|
|
148
|
+
role,
|
|
149
|
+
"aria-label": ariaLabel || `${timer}\uFF0C${getAccessibleTimeDescription(time)}`,
|
|
150
|
+
"aria-labelledby": ariaLabelledby,
|
|
151
|
+
"aria-describedby": ariaDescribedby,
|
|
152
|
+
"aria-live": "polite",
|
|
153
|
+
"aria-atomic": true
|
|
154
|
+
};
|
|
155
|
+
return /* @__PURE__ */ React.createElement(
|
|
156
|
+
"div",
|
|
157
|
+
__spreadValues(__spreadValues({
|
|
158
|
+
ref,
|
|
159
|
+
className: clsx(prefixCls, className)
|
|
160
|
+
}, ariaProps), others),
|
|
161
|
+
renderContent ? renderContent(time) : defaultRender(time)
|
|
162
|
+
);
|
|
123
163
|
});
|
|
124
164
|
Countdown.displayName = "BuiCountdown";
|
|
125
165
|
var Countdown_default = Countdown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OverrideProps } from '@bifrostui/types';
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* 当前时间
|
|
5
5
|
*/
|
|
@@ -57,18 +57,6 @@ export type CountdownProps<D extends React.ElementType = 'div', P = {}> = Overri
|
|
|
57
57
|
* @default HH:mm:ss
|
|
58
58
|
*/
|
|
59
59
|
format?: string;
|
|
60
|
-
/**
|
|
61
|
-
* 时间单位的样式
|
|
62
|
-
*/
|
|
63
|
-
unitStyle?: CSSProperties;
|
|
64
|
-
/**
|
|
65
|
-
* 倒计时位数的样式,用于定制第一、第二位数字的样式
|
|
66
|
-
*/
|
|
67
|
-
valueStyle?: CSSProperties[];
|
|
68
|
-
/**
|
|
69
|
-
* 各时间区块的样式,用于定制各个时间块的样式,若第一、第二位数字的样式相同,则可替代valueStyle
|
|
70
|
-
*/
|
|
71
|
-
timeSliceStyle?: CSSProperties;
|
|
72
60
|
/**
|
|
73
61
|
* 倒计时完成时触发
|
|
74
62
|
*/
|
|
@@ -83,13 +71,30 @@ export type CountdownProps<D extends React.ElementType = 'div', P = {}> = Overri
|
|
|
83
71
|
* 自定义render内容
|
|
84
72
|
*/
|
|
85
73
|
renderContent?: (data: CurrentTime) => React.ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* 无障碍标签,为屏幕阅读器提供组件描述
|
|
76
|
+
*/
|
|
77
|
+
'aria-label'?: string;
|
|
78
|
+
/**
|
|
79
|
+
* 引用其他元素ID作为标签
|
|
80
|
+
*/
|
|
81
|
+
'aria-labelledby'?: string;
|
|
82
|
+
/**
|
|
83
|
+
* 引用其他元素ID作为描述
|
|
84
|
+
*/
|
|
85
|
+
'aria-describedby'?: string;
|
|
86
|
+
/**
|
|
87
|
+
* 组件的语义角色
|
|
88
|
+
* @default 'timer'
|
|
89
|
+
*/
|
|
90
|
+
role?: string;
|
|
86
91
|
};
|
|
87
92
|
defaultComponent: D;
|
|
88
93
|
}, D>;
|
|
89
94
|
/**
|
|
90
95
|
* 倒计时格式化后分割项
|
|
91
96
|
*/
|
|
92
|
-
interface CountdownItem {
|
|
97
|
+
export interface CountdownItem {
|
|
93
98
|
/**
|
|
94
99
|
* 倒计时切片字符串
|
|
95
100
|
*/
|
|
@@ -120,4 +125,3 @@ export type FormatedCountdown = {
|
|
|
120
125
|
*/
|
|
121
126
|
timeList: CountdownItem[];
|
|
122
127
|
};
|
|
123
|
-
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Countdown 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 customDemoComponent.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicCountdownDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const ariaLabelCountdownDemo: () => React.JSX.Element;
|
|
9
|
+
export declare const ariaLabelledbyCountdownDemo: () => React.JSX.Element;
|
|
10
|
+
export declare const ariaDescribedbyCountdownDemo: () => React.JSX.Element;
|
|
11
|
+
export declare const customRenderCountdownDemo: () => React.JSX.Element;
|
|
12
|
+
export declare const endTimestampCountdownDemo: () => React.JSX.Element;
|
|
13
|
+
export declare const serverTimestampCountdownDemo: () => React.JSX.Element;
|
|
14
|
+
declare const _default: {
|
|
15
|
+
basicCountdownDemo: () => React.JSX.Element;
|
|
16
|
+
ariaLabelCountdownDemo: () => React.JSX.Element;
|
|
17
|
+
ariaLabelledbyCountdownDemo: () => React.JSX.Element;
|
|
18
|
+
ariaDescribedbyCountdownDemo: () => React.JSX.Element;
|
|
19
|
+
customRenderCountdownDemo: () => React.JSX.Element;
|
|
20
|
+
endTimestampCountdownDemo: () => React.JSX.Element;
|
|
21
|
+
serverTimestampCountdownDemo: () => React.JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|