@bifrostui/react 2.0.0-alpha.0 → 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/Alert/Alert.js +2 -1
- 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/__tests__/fixtures/A11yDemos.js +51 -0
- package/dist/Backdrop/index.css +2 -2
- package/dist/Badge/Badge.js +38 -11
- 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/Button/Button.js +2 -1
- package/dist/Button/__tests__/fixtures/A11yDemos.js +81 -0
- package/dist/Button/index.css +2 -2
- 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 +131 -34
- package/dist/Calendar/__tests__/fixtures/A11yDemos.js +41 -0
- package/dist/Calendar/index.css +52 -9
- package/dist/Calendar/utils.js +33 -23
- package/dist/Checkbox/Checkbox.js +5 -4
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Collapse/Collapse.js +26 -12
- 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/__tests__/fixtures/A11yDemos.js +107 -0
- package/dist/Countdown/index.css +11 -0
- package/dist/DatePicker/DatePicker.js +335 -0
- package/dist/DatePicker/DatePicker.types.js +15 -0
- package/dist/DatePicker/constants.js +37 -0
- package/dist/DatePicker/index.js +44 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.js +280 -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.js +41 -0
- package/dist/DesktopDatePicker/useGetDatePickerContent.js +343 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.js +322 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.js +15 -0
- package/dist/DesktopDateTimePicker/index.css +66 -0
- package/dist/DesktopDateTimePicker/index.js +41 -0
- package/dist/DesktopPicker/DesktopPicker.js +243 -0
- package/dist/DesktopPicker/DesktopPicker.types.js +15 -0
- package/dist/DesktopPicker/index.css +39 -0
- package/dist/DesktopPicker/index.js +41 -0
- package/dist/DesktopPicker/utils/calcAfterMounted.js +25 -0
- package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.js +38 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.js +288 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.types.js +15 -0
- package/dist/DesktopTimePicker/DesktopTimePickerList.js +111 -0
- package/dist/DesktopTimePicker/index.css +170 -0
- package/dist/DesktopTimePicker/index.js +41 -0
- package/dist/DesktopTimePicker/useGetTimePickerContent.js +249 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.js +27 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.js +51 -0
- package/dist/DesktopTimePicker/utils/utils.js +408 -0
- package/dist/Dialog/Dialog.js +56 -34
- package/dist/Dialog/FunctionalDialog.js +102 -80
- package/dist/Dialog/__tests__/fixtures/A11yDemos.js +78 -0
- package/dist/Dialog/index.css +19 -19
- package/dist/Dialog/index.js +9 -2
- package/dist/Drawer/Drawer.js +7 -7
- package/dist/Drawer/__tests__/fixtures/A11yDemos.js +148 -0
- package/dist/Fade/Fade.js +2 -2
- package/dist/Fade/Fade.miniapp.js +197 -0
- package/dist/Fade/index.css +18 -0
- package/dist/IconButton/IconButton.js +23 -8
- package/dist/IconButton/index.css +3 -0
- package/dist/Image/Image.js +17 -10
- 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.js +81 -0
- package/dist/Input/index.css +8 -8
- package/dist/Modal/Modal.js +47 -47
- package/dist/Modal/Modal.miniapp.js +48 -32
- package/dist/Modal/ModalManager.js +238 -0
- package/dist/Modal/__tests__/fixtures/A11yDemos.js +52 -0
- package/dist/Modal/index.css +1 -1
- package/dist/Modal/index.js +9 -1
- 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/PickerPanel.css +4 -0
- package/dist/Picker/PickerPanel.js +52 -41
- package/dist/Picker/__tests__/fixtures/A11yDemos.js +79 -0
- package/dist/Picker/index.css +8 -0
- package/dist/Picker/utils.js +9 -12
- package/dist/Popover/Popover.js +123 -91
- 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/Portal/Portal.miniapp.js +7 -4
- package/dist/Portal/PortalCore.js +2 -2
- package/dist/Progress/Progress.js +61 -6
- 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.js +57 -0
- package/dist/Rating/index.css +8 -12
- package/dist/ScrollView/ScrollView.js +48 -196
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.js +319 -0
- package/dist/ScrollView/useScrollView.js +300 -0
- package/dist/Select/Select.js +73 -39
- package/dist/Select/SelectOption.js +5 -1
- package/dist/Select/__tests__/fixtures/A11yDemos.js +154 -0
- package/dist/Select/index.css +12 -8
- package/dist/Slide/Slide.js +2 -2
- package/dist/Slide/Slide.miniapp.js +210 -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.js +349 -0
- package/dist/SwipeAction/SwipeAction.types.js +15 -0
- package/dist/SwipeAction/SwipeActionContext.js +30 -0
- package/dist/SwipeAction/SwipeActionItem.css +31 -0
- package/dist/SwipeAction/SwipeActionItem.js +105 -0
- package/dist/SwipeAction/constants.js +39 -0
- package/dist/SwipeAction/index.css +110 -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.js +57 -0
- package/dist/Tabs/Tab.js +36 -21
- package/dist/Tabs/TabPanel.js +9 -5
- package/dist/Tabs/Tabs.css +2 -2
- package/dist/Tabs/Tabs.js +87 -64
- package/dist/Tabs/TabsContext.js +3 -1
- package/dist/Tabs/index.css +2 -2
- package/dist/Tabs/utils/scroll.js +55 -0
- package/dist/Tag/__tests__/fixtures/A11yDemos.js +196 -0
- package/dist/TextArea/TextArea.js +50 -7
- package/dist/TextArea/__tests__/fixtures/A11yDemos.js +91 -0
- package/dist/TextArea/index.css +4 -4
- package/dist/ThemeProvider/ThemeProvider.types.js +0 -12
- package/dist/Toast/FunctionalToast.js +180 -85
- package/dist/Toast/Toast.js +69 -28
- 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/__tests__/fixtures/A11yDemos.js +100 -0
- package/dist/Tooltip/useTooltip.js +313 -0
- package/dist/Transition/TransitionCore.js +30 -25
- 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 +17 -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/dist/src/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -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.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/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.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/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/src/CitySelector/CitySelector.types.d.ts +46 -0
- package/dist/src/Collapse/Collapse.d.ts +5 -0
- package/dist/src/Collapse/Collapse.miniapp.d.ts +10 -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/DatePicker/DatePicker.d.ts +4 -0
- package/dist/src/DatePicker/DatePicker.types.d.ts +36 -0
- package/dist/src/DatePicker/constants.d.ts +9 -0
- package/dist/src/DatePicker/index.d.ts +3 -0
- package/dist/src/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/dist/src/DesktopDatePicker/DesktopDatePicker.types.d.ts +163 -0
- package/dist/src/DesktopDatePicker/index.d.ts +2 -0
- package/dist/src/DesktopDatePicker/useGetDatePickerContent.d.ts +6 -0
- package/dist/src/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +5 -0
- package/dist/src/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +163 -0
- package/dist/src/DesktopDateTimePicker/index.d.ts +2 -0
- package/dist/src/DesktopPicker/DesktopPicker.d.ts +5 -0
- package/dist/src/DesktopPicker/DesktopPicker.types.d.ts +61 -0
- package/dist/src/DesktopPicker/index.d.ts +2 -0
- package/dist/src/DesktopPicker/utils/calcAfterMounted.d.ts +2 -0
- package/dist/src/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +2 -0
- package/dist/src/DesktopTimePicker/DesktopTimePicker.d.ts +5 -0
- package/dist/src/DesktopTimePicker/DesktopTimePicker.types.d.ts +182 -0
- package/dist/src/DesktopTimePicker/DesktopTimePickerList.d.ts +4 -0
- package/dist/src/DesktopTimePicker/index.d.ts +2 -0
- package/dist/src/DesktopTimePicker/useGetTimePickerContent.d.ts +6 -0
- package/dist/src/DesktopTimePicker/utils/scrollUtil.d.ts +2 -0
- package/dist/src/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +2 -0
- package/dist/src/DesktopTimePicker/utils/utils.d.ts +28 -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/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/Fade/Fade.miniapp.d.ts +10 -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/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/ItemSelector/ItemSelector.types.d.ts +39 -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/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.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.types.d.ts +72 -0
- package/dist/src/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -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.types.d.ts +104 -0
- package/dist/src/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/Select/selectContext.d.ts +3 -0
- package/dist/src/Slide/Slide.miniapp.d.ts +14 -0
- package/dist/src/SwipeAction/SwipeAction.d.ts +5 -0
- package/dist/src/SwipeAction/SwipeAction.types.d.ts +75 -0
- package/dist/src/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/dist/src/SwipeAction/SwipeActionItem.d.ts +5 -0
- package/dist/src/SwipeAction/constants.d.ts +9 -0
- package/dist/src/SwipeAction/index.d.ts +5 -0
- package/dist/src/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -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/Tabs/utils/scroll.d.ts +2 -0
- package/dist/src/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -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/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.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/Alert/Alert.js +2 -1
- 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/__tests__/fixtures/A11yDemos.js +17 -0
- package/es/Backdrop/index.css +2 -2
- package/es/Badge/Badge.js +38 -11
- 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/Button/Button.js +2 -1
- package/es/Button/__tests__/fixtures/A11yDemos.js +42 -0
- package/es/Button/index.css +2 -2
- 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 +131 -34
- package/es/Calendar/__tests__/fixtures/A11yDemos.js +8 -0
- package/es/Calendar/index.css +52 -9
- package/es/Calendar/utils.js +29 -20
- package/es/Checkbox/Checkbox.js +5 -4
- package/es/Checkbox/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Collapse/Collapse.js +26 -12
- 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/__tests__/fixtures/A11yDemos.js +68 -0
- package/es/Countdown/index.css +11 -0
- package/es/DatePicker/DatePicker.js +308 -0
- package/es/DatePicker/DatePicker.types.js +1 -0
- package/es/DatePicker/constants.js +14 -0
- package/es/DatePicker/index.js +8 -0
- package/es/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/es/DesktopDatePicker/DesktopDatePicker.js +253 -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.js +6 -0
- package/es/DesktopDatePicker/useGetDatePickerContent.js +316 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.js +295 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.js +1 -0
- package/es/DesktopDateTimePicker/index.css +66 -0
- package/es/DesktopDateTimePicker/index.js +9 -0
- package/es/DesktopPicker/DesktopPicker.js +226 -0
- package/es/DesktopPicker/DesktopPicker.types.js +1 -0
- package/es/DesktopPicker/index.css +39 -0
- package/es/DesktopPicker/index.js +6 -0
- package/es/DesktopPicker/utils/calcAfterMounted.js +6 -0
- package/es/DesktopPicker/utils/calcAfterMounted.miniapp.js +9 -0
- package/es/DesktopTimePicker/DesktopTimePicker.js +261 -0
- package/es/DesktopTimePicker/DesktopTimePicker.types.js +1 -0
- package/es/DesktopTimePicker/DesktopTimePickerList.js +84 -0
- package/es/DesktopTimePicker/index.css +170 -0
- package/es/DesktopTimePicker/index.js +6 -0
- package/es/DesktopTimePicker/useGetTimePickerContent.js +226 -0
- package/es/DesktopTimePicker/utils/scrollUtil.js +8 -0
- package/es/DesktopTimePicker/utils/scrollUtil.miniapp.js +22 -0
- package/es/DesktopTimePicker/utils/utils.js +365 -0
- package/es/Dialog/Dialog.js +57 -35
- package/es/Dialog/FunctionalDialog.js +106 -84
- package/es/Dialog/__tests__/fixtures/A11yDemos.js +43 -0
- package/es/Dialog/index.css +19 -19
- package/es/Dialog/index.js +10 -3
- package/es/Drawer/Drawer.js +8 -8
- package/es/Drawer/__tests__/fixtures/A11yDemos.js +112 -0
- package/es/Fade/Fade.js +2 -2
- package/es/Fade/Fade.miniapp.js +176 -0
- package/es/Fade/index.css +18 -0
- package/es/IconButton/IconButton.js +23 -8
- package/es/IconButton/index.css +3 -0
- package/es/Image/Image.js +17 -10
- 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.js +43 -0
- package/es/Input/index.css +8 -8
- package/es/Modal/Modal.js +48 -48
- package/es/Modal/Modal.miniapp.js +49 -33
- package/es/Modal/ModalManager.js +214 -0
- package/es/Modal/__tests__/fixtures/A11yDemos.js +18 -0
- package/es/Modal/index.css +1 -1
- package/es/Modal/index.js +6 -1
- 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/PickerPanel.css +4 -0
- package/es/Picker/PickerPanel.js +52 -41
- package/es/Picker/__tests__/fixtures/A11yDemos.js +46 -0
- package/es/Picker/index.css +8 -0
- package/es/Picker/utils.js +9 -12
- package/es/Popover/Popover.js +130 -99
- 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/Portal/Portal.miniapp.js +8 -5
- package/es/Portal/PortalCore.js +2 -2
- package/es/Progress/Progress.js +61 -6
- 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.js +22 -0
- package/es/Rating/index.css +8 -12
- package/es/ScrollView/ScrollView.js +51 -197
- package/es/ScrollView/__tests__/fixtures/A11yDemos.js +283 -0
- package/es/ScrollView/useScrollView.js +279 -0
- package/es/Select/Select.js +73 -40
- package/es/Select/SelectOption.js +5 -1
- package/es/Select/__tests__/fixtures/A11yDemos.js +118 -0
- package/es/Select/index.css +12 -8
- package/es/Slide/Slide.js +2 -2
- package/es/Slide/Slide.miniapp.js +189 -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.js +334 -0
- package/es/SwipeAction/SwipeAction.types.js +1 -0
- package/es/SwipeAction/SwipeActionContext.js +11 -0
- package/es/SwipeAction/SwipeActionItem.css +31 -0
- package/es/SwipeAction/SwipeActionItem.js +78 -0
- package/es/SwipeAction/constants.js +15 -0
- package/es/SwipeAction/index.css +110 -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.js +22 -0
- package/es/Tabs/Tab.js +36 -21
- package/es/Tabs/TabPanel.js +8 -4
- package/es/Tabs/Tabs.css +2 -2
- package/es/Tabs/Tabs.js +87 -64
- package/es/Tabs/TabsContext.js +3 -1
- package/es/Tabs/index.css +2 -2
- package/es/Tabs/utils/scroll.js +36 -0
- package/es/Tag/__tests__/fixtures/A11yDemos.js +160 -0
- package/es/TextArea/TextArea.js +51 -8
- package/es/TextArea/__tests__/fixtures/A11yDemos.js +54 -0
- package/es/TextArea/index.css +4 -4
- package/es/Toast/FunctionalToast.js +186 -86
- package/es/Toast/Toast.js +69 -28
- 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/__tests__/fixtures/A11yDemos.js +60 -0
- package/es/Tooltip/useTooltip.js +290 -0
- package/es/Transition/TransitionCore.js +31 -26
- 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 +8 -0
- 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/es/src/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -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.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/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.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/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/src/CitySelector/CitySelector.types.d.ts +46 -0
- package/es/src/Collapse/Collapse.d.ts +5 -0
- package/es/src/Collapse/Collapse.miniapp.d.ts +10 -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/DatePicker/DatePicker.d.ts +4 -0
- package/es/src/DatePicker/DatePicker.types.d.ts +36 -0
- package/es/src/DatePicker/constants.d.ts +9 -0
- package/es/src/DatePicker/index.d.ts +3 -0
- package/es/src/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/es/src/DesktopDatePicker/DesktopDatePicker.types.d.ts +163 -0
- package/es/src/DesktopDatePicker/index.d.ts +2 -0
- package/es/src/DesktopDatePicker/useGetDatePickerContent.d.ts +6 -0
- package/es/src/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +5 -0
- package/es/src/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +163 -0
- package/es/src/DesktopDateTimePicker/index.d.ts +2 -0
- package/es/src/DesktopPicker/DesktopPicker.d.ts +5 -0
- package/es/src/DesktopPicker/DesktopPicker.types.d.ts +61 -0
- package/es/src/DesktopPicker/index.d.ts +2 -0
- package/es/src/DesktopPicker/utils/calcAfterMounted.d.ts +2 -0
- package/es/src/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +2 -0
- package/es/src/DesktopTimePicker/DesktopTimePicker.d.ts +5 -0
- package/es/src/DesktopTimePicker/DesktopTimePicker.types.d.ts +182 -0
- package/es/src/DesktopTimePicker/DesktopTimePickerList.d.ts +4 -0
- package/es/src/DesktopTimePicker/index.d.ts +2 -0
- package/es/src/DesktopTimePicker/useGetTimePickerContent.d.ts +6 -0
- package/es/src/DesktopTimePicker/utils/scrollUtil.d.ts +2 -0
- package/es/src/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +2 -0
- package/es/src/DesktopTimePicker/utils/utils.d.ts +28 -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/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/Fade/Fade.miniapp.d.ts +10 -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/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/ItemSelector/ItemSelector.types.d.ts +39 -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/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.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.types.d.ts +72 -0
- package/es/src/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -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.types.d.ts +104 -0
- package/es/src/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/Select/selectContext.d.ts +3 -0
- package/es/src/Slide/Slide.miniapp.d.ts +14 -0
- package/es/src/Stack/demo/StackDemo.d.ts +4 -0
- package/es/src/SwipeAction/SwipeAction.d.ts +5 -0
- package/es/src/SwipeAction/SwipeAction.types.d.ts +75 -0
- package/es/src/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/es/src/SwipeAction/SwipeActionItem.d.ts +5 -0
- package/es/src/SwipeAction/constants.d.ts +9 -0
- package/es/src/SwipeAction/index.d.ts +5 -0
- package/es/src/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -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/Tabs/utils/scroll.d.ts +2 -0
- package/es/src/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -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/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.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 +9 -6
- package/dist/Backdrop/Backdrop.types.d.ts +0 -17
- package/dist/Badge/Badge.types.d.ts +0 -27
- package/dist/Calendar/Calendar.types.d.ts +0 -97
- package/dist/Calendar/utils.d.ts +0 -25
- package/dist/CitySelector/CitySelector.types.d.ts +0 -47
- package/dist/Collapse/Collapse.d.ts +0 -5
- package/dist/Countdown/Countdown.types.d.ts +0 -123
- package/dist/Dialog/Dialog.d.ts +0 -5
- package/dist/Dialog/Dialog.types.d.ts +0 -109
- package/dist/Dialog/FunctionalDialog.d.ts +0 -3
- package/dist/Dialog/index.d.ts +0 -2
- package/dist/IconButton/IconButton.types.d.ts +0 -42
- package/dist/ItemSelector/ItemSelector.types.d.ts +0 -40
- 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/Picker/Picker.types.d.ts +0 -108
- package/dist/Picker/utils.d.ts +0 -29
- package/dist/Popover/Popover.types.d.ts +0 -57
- package/dist/Portal/Portal.types.d.ts +0 -26
- package/dist/Progress/Progress.types.d.ts +0 -28
- package/dist/ScrollView/ScrollView.types.d.ts +0 -258
- package/dist/Select/Select.types.d.ts +0 -104
- package/dist/Select/selectContext.d.ts +0 -4
- 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 -35
- package/dist/Tabs/TabsContext.d.ts +0 -9
- package/dist/Tabs/utils/bound.d.ts +0 -1
- package/dist/Tabs/utils/bound.js +0 -32
- package/dist/TextArea/TextArea.types.d.ts +0 -70
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +0 -122
- package/dist/Toast/FunctionalToast.d.ts +0 -3
- package/dist/Toast/Toast.d.ts +0 -5
- package/dist/Toast/Toast.types.d.ts +0 -101
- package/dist/Tooltip/Tooltip.types.d.ts +0 -48
- package/dist/index.d.ts +0 -50
- package/dist/locales/base.d.ts +0 -40
- package/es/Backdrop/Backdrop.types.d.ts +0 -17
- package/es/Badge/Badge.types.d.ts +0 -27
- package/es/Calendar/Calendar.types.d.ts +0 -97
- package/es/Calendar/utils.d.ts +0 -25
- package/es/CitySelector/CitySelector.types.d.ts +0 -47
- package/es/Collapse/Collapse.d.ts +0 -5
- package/es/Countdown/Countdown.types.d.ts +0 -123
- package/es/Dialog/Dialog.d.ts +0 -5
- package/es/Dialog/Dialog.types.d.ts +0 -109
- package/es/Dialog/FunctionalDialog.d.ts +0 -3
- package/es/Dialog/index.d.ts +0 -2
- package/es/IconButton/IconButton.types.d.ts +0 -42
- package/es/ItemSelector/ItemSelector.types.d.ts +0 -40
- 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/Picker/Picker.types.d.ts +0 -108
- package/es/Picker/utils.d.ts +0 -29
- package/es/Popover/Popover.types.d.ts +0 -57
- package/es/Portal/Portal.types.d.ts +0 -26
- package/es/Progress/Progress.types.d.ts +0 -28
- package/es/ScrollView/ScrollView.types.d.ts +0 -258
- package/es/Select/Select.types.d.ts +0 -104
- package/es/Select/selectContext.d.ts +0 -4
- 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 -35
- package/es/Tabs/TabsContext.d.ts +0 -9
- package/es/Tabs/utils/bound.d.ts +0 -1
- package/es/Tabs/utils/bound.js +0 -13
- package/es/TextArea/TextArea.types.d.ts +0 -70
- package/es/ThemeProvider/ThemeProvider.types.d.ts +0 -122
- package/es/Toast/FunctionalToast.d.ts +0 -3
- package/es/Toast/Toast.d.ts +0 -5
- package/es/Toast/Toast.types.d.ts +0 -101
- package/es/Tooltip/Tooltip.types.d.ts +0 -48
- package/es/index.d.ts +0 -50
- package/es/locales/base.d.ts +0 -40
- /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}/ActionSheetItem.types.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}/Alert.types.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}/Backdrop.d.ts +0 -0
- /package/dist/{Backdrop → src/Backdrop}/index.d.ts +0 -0
- /package/dist/{Badge → src/Badge}/Badge.d.ts +0 -0
- /package/dist/{Badge → src/Badge}/index.d.ts +0 -0
- /package/dist/{Breadcrumb → src/Breadcrumb}/Breadcrumb.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}/Button.d.ts +0 -0
- /package/dist/{Button → src/Button}/Button.types.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}/Calendar.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.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}/CheckboxGroup.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/dist/{CitySelector → src/CitySelector}/CitySelector.miniapp.d.ts +0 -0
- /package/dist/{CitySelector → src/CitySelector}/CitySelectorCore.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.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}/Countdown.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/{Divider → src/Divider}/Divider.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.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.types.d.ts +0 -0
- /package/dist/{Fade → src/Fade}/index.d.ts +0 -0
- /package/dist/{IconButton → src/IconButton}/IconButton.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.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/dist/{ItemSelector → src/ItemSelector}/ItemSelector.miniapp.d.ts +0 -0
- /package/dist/{ItemSelector → src/ItemSelector}/ItemSelectorCore.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.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/{Modal → src/Modal}/Modal.d.ts +0 -0
- /package/dist/{NavBar → src/NavBar}/NavBar.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}/Popover.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}/Progress.d.ts +0 -0
- /package/dist/{Progress → src/Progress}/index.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/Radio.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}/RadioGroup.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/index.d.ts +0 -0
- /package/dist/{Rating → src/Rating}/Rating.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.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}/Select.d.ts +0 -0
- /package/dist/{Select → src/Select}/SelectOption.d.ts +0 -0
- /package/dist/{Select → src/Select}/index.d.ts +0 -0
- /package/dist/{Skeleton → src/Skeleton}/Skeleton.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.types.d.ts +0 -0
- /package/dist/{Slide → src/Slide}/index.d.ts +0 -0
- /package/dist/{Slider → src/Slider}/Slider.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.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.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/{Swiper → src/Swiper}/Swiper.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}/Switch.d.ts +0 -0
- /package/dist/{Switch → src/Switch}/Switch.types.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}/TabBarContext.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/{TabBar → src/TabBar}/index.types.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/{Tag → src/Tag}/Tag.d.ts +0 -0
- /package/dist/{Tag → src/Tag}/Tag.types.d.ts +0 -0
- /package/dist/{Tag → src/Tag}/TagGroup.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}/TextArea.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/constants.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/utils/index.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/utils/mountTokens.d.ts +0 -0
- /package/dist/{Toast → src/Toast}/index.d.ts +0 -0
- /package/dist/{Tooltip → src/Tooltip}/Tooltip.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/{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}/ActionSheetItem.types.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}/Alert.types.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}/Backdrop.d.ts +0 -0
- /package/es/{Backdrop → src/Backdrop}/index.d.ts +0 -0
- /package/es/{Badge → src/Badge}/Badge.d.ts +0 -0
- /package/es/{Badge → src/Badge}/index.d.ts +0 -0
- /package/es/{Breadcrumb → src/Breadcrumb}/Breadcrumb.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}/Button.d.ts +0 -0
- /package/es/{Button → src/Button}/Button.types.d.ts +0 -0
- /package/es/{Button → src/Button}/index.d.ts +0 -0
- /package/es/{Calendar → src/Calendar}/Calendar.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.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}/CheckboxGroup.d.ts +0 -0
- /package/es/{Checkbox → src/Checkbox}/index.d.ts +0 -0
- /package/es/{CitySelector → src/CitySelector}/CitySelector.d.ts +0 -0
- /package/es/{CitySelector → src/CitySelector}/CitySelector.miniapp.d.ts +0 -0
- /package/es/{CitySelector → src/CitySelector}/CitySelectorCore.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.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}/Countdown.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/{Divider → src/Divider}/Divider.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.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.types.d.ts +0 -0
- /package/es/{Fade → src/Fade}/index.d.ts +0 -0
- /package/es/{IconButton → src/IconButton}/IconButton.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.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}/ItemSelector.d.ts +0 -0
- /package/es/{ItemSelector → src/ItemSelector}/ItemSelector.miniapp.d.ts +0 -0
- /package/es/{ItemSelector → src/ItemSelector}/ItemSelectorCore.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.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/{Modal → src/Modal}/Modal.d.ts +0 -0
- /package/es/{NavBar → src/NavBar}/NavBar.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}/Popover.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}/Progress.d.ts +0 -0
- /package/es/{Progress → src/Progress}/index.d.ts +0 -0
- /package/es/{Radio → src/Radio}/Radio.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}/RadioGroup.d.ts +0 -0
- /package/es/{Radio → src/Radio}/index.d.ts +0 -0
- /package/es/{Rating → src/Rating}/Rating.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.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}/Select.d.ts +0 -0
- /package/es/{Select → src/Select}/SelectOption.d.ts +0 -0
- /package/es/{Select → src/Select}/index.d.ts +0 -0
- /package/es/{Skeleton → src/Skeleton}/Skeleton.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.types.d.ts +0 -0
- /package/es/{Slide → src/Slide}/index.d.ts +0 -0
- /package/es/{Slider → src/Slider}/Slider.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.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.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/{Swiper → src/Swiper}/Swiper.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}/Switch.d.ts +0 -0
- /package/es/{Switch → src/Switch}/Switch.types.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}/TabBarContext.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/{TabBar → src/TabBar}/index.types.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/{Tag → src/Tag}/Tag.d.ts +0 -0
- /package/es/{Tag → src/Tag}/Tag.types.d.ts +0 -0
- /package/es/{Tag → src/Tag}/TagGroup.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}/TextArea.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/constants.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/utils/index.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/utils/mountTokens.d.ts +0 -0
- /package/es/{Toast → src/Toast}/index.d.ts +0 -0
- /package/es/{Tooltip → src/Tooltip}/Tooltip.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,39 @@
|
|
|
1
|
+
import { OverrideProps } from '@bifrostui/types';
|
|
2
|
+
export type itemType = {
|
|
3
|
+
/** Item名 */
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export type ItemGroup = {
|
|
7
|
+
/** Item列表 */
|
|
8
|
+
items: itemType[];
|
|
9
|
+
/** 组名 */
|
|
10
|
+
groupName?: string;
|
|
11
|
+
/** 索引字母 */
|
|
12
|
+
indexName?: string;
|
|
13
|
+
/** 索引Code */
|
|
14
|
+
indexCode?: string;
|
|
15
|
+
/** 是否平铺 */
|
|
16
|
+
isFlat?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type ItemSelectorProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
|
|
19
|
+
props: P & {
|
|
20
|
+
/** Item列表 */
|
|
21
|
+
items: ItemGroup[];
|
|
22
|
+
/** 禁用展示索引 默认false 即展示索引 */
|
|
23
|
+
disableIndex?: boolean;
|
|
24
|
+
/** 头部标题 */
|
|
25
|
+
title?: string;
|
|
26
|
+
/** 选择Item回调 */
|
|
27
|
+
onSelect: (e: React.SyntheticEvent, data: {
|
|
28
|
+
item: itemType;
|
|
29
|
+
group: ItemGroup;
|
|
30
|
+
}) => void;
|
|
31
|
+
/** 和title配合使用,头部右侧的关闭回调 */
|
|
32
|
+
onClose?: (e: React.SyntheticEvent) => void;
|
|
33
|
+
};
|
|
34
|
+
defaultComponent: D;
|
|
35
|
+
}, D>;
|
|
36
|
+
export type ItemSelectorCoreProps = ItemSelectorProps & {
|
|
37
|
+
touchHandler: any;
|
|
38
|
+
height?: string;
|
|
39
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewProps } from '@tarojs/components';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
container?: Element | (() => Element);
|
|
7
|
+
hideBackdrop?: boolean;
|
|
8
|
+
BackdropProps?: Partial<import("../Backdrop").BackdropProps<"div", {}>>;
|
|
9
|
+
onClose?: (e: React.SyntheticEvent<Element, Event>, detail?: import("./Modal.types").ModalCloseDetail) => void;
|
|
10
|
+
disableScrollLock?: boolean;
|
|
11
|
+
disablePortal?: boolean;
|
|
12
|
+
keepMounted?: boolean;
|
|
13
|
+
} & import("@bifrostui/types").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
15
|
+
}, "open" | "container" | keyof import("@bifrostui/types").ICommonProps | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export default Modal;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OverrideProps } from '@bifrostui/types';
|
|
2
|
+
import React, { SyntheticEvent } from 'react';
|
|
3
|
+
import { BackdropProps } from '../Backdrop/Backdrop.types';
|
|
4
|
+
import { PortalProps } from '../Portal/Portal.types';
|
|
5
|
+
export type ModalCloseDetail = {
|
|
6
|
+
from?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ModalProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
|
|
9
|
+
props: P & {
|
|
10
|
+
/**
|
|
11
|
+
* 是否打开Modal
|
|
12
|
+
*/
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Portal容器
|
|
16
|
+
*/
|
|
17
|
+
container?: PortalProps['container'];
|
|
18
|
+
/**
|
|
19
|
+
* 是否隐藏背景遮罩
|
|
20
|
+
*/
|
|
21
|
+
hideBackdrop?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 背景遮罩属性
|
|
24
|
+
*/
|
|
25
|
+
BackdropProps?: Partial<BackdropProps>;
|
|
26
|
+
/**
|
|
27
|
+
* 关闭回调
|
|
28
|
+
*/
|
|
29
|
+
onClose?: (e: SyntheticEvent, detail?: ModalCloseDetail) => void;
|
|
30
|
+
/**
|
|
31
|
+
* 是否禁用滚动锁定
|
|
32
|
+
*/
|
|
33
|
+
disableScrollLock?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 是否禁用Portal
|
|
36
|
+
*/
|
|
37
|
+
disablePortal?: PortalProps['disablePortal'];
|
|
38
|
+
/**
|
|
39
|
+
* 是否保持挂载状态
|
|
40
|
+
*/
|
|
41
|
+
keepMounted?: boolean;
|
|
42
|
+
};
|
|
43
|
+
defaultComponent: D;
|
|
44
|
+
}, D>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal管理器,用于管理多个弹窗的状态
|
|
3
|
+
* 参考MUI的ModalManager实现
|
|
4
|
+
*/
|
|
5
|
+
interface ManagedModal {
|
|
6
|
+
modalRef: HTMLElement;
|
|
7
|
+
mount: HTMLElement;
|
|
8
|
+
}
|
|
9
|
+
export declare function ariaHidden(element: Element, show: boolean): void;
|
|
10
|
+
export declare class ModalManager {
|
|
11
|
+
private modals;
|
|
12
|
+
private containers;
|
|
13
|
+
add(modal: ManagedModal, container: Element): number;
|
|
14
|
+
mount(modal: ManagedModal, props: {
|
|
15
|
+
disableScrollLock?: boolean;
|
|
16
|
+
}): void;
|
|
17
|
+
remove(modal: ManagedModal, ariaHiddenState?: boolean): number;
|
|
18
|
+
isTopModal(modal: ManagedModal): boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const modalManager: ModalManager;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Modal 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 customDemoComponent.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicModalDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const keepMountedDemo: () => React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default } from './Modal';
|
|
2
|
+
export { default as Modal } from './Modal';
|
|
3
|
+
export * from './Modal.types';
|
|
4
|
+
export { ModalManager, modalManager } from './ModalManager';
|
|
5
|
+
export { useModal } from './useModal';
|
|
6
|
+
export type { UseModalParameters, UseModalReturnValue } from './useModal';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface UseModalParameters {
|
|
3
|
+
container?: Element | (() => Element | null) | null;
|
|
4
|
+
disableScrollLock?: boolean;
|
|
5
|
+
onClose?: (event: React.SyntheticEvent<Element, Event>, detail?: {
|
|
6
|
+
from: 'backdropClick' | 'escapeKeyDown';
|
|
7
|
+
}) => void;
|
|
8
|
+
open: boolean;
|
|
9
|
+
rootRef?: React.Ref<Element>;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface UseModalReturnValue {
|
|
13
|
+
getRootProps: (otherHandlers?: Record<string, any>) => Record<string, unknown>;
|
|
14
|
+
getBackdropProps: (otherHandlers?: Record<string, any>) => Record<string, unknown>;
|
|
15
|
+
getTransitionProps: () => {
|
|
16
|
+
onEnter: () => void;
|
|
17
|
+
onExited: () => void;
|
|
18
|
+
};
|
|
19
|
+
rootRef: React.RefCallback<Element>;
|
|
20
|
+
portalRef: React.RefCallback<HTMLElement>;
|
|
21
|
+
exited: boolean;
|
|
22
|
+
hasTransition: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function useModal(parameters: UseModalParameters): UseModalReturnValue;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OverrideProps } from '@bifrostui/types';
|
|
3
|
+
import { DrawerProps } from '../Drawer/Drawer.types';
|
|
4
|
+
export interface IPickerOptionItem {
|
|
5
|
+
/**
|
|
6
|
+
* 选项的文字内容
|
|
7
|
+
*/
|
|
8
|
+
label?: string | number;
|
|
9
|
+
/**
|
|
10
|
+
* 选项对应唯一的值
|
|
11
|
+
*/
|
|
12
|
+
value: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* 是否禁用
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type ICascadePickerChildOptionItem = IPickerOptionItem & {
|
|
19
|
+
/**
|
|
20
|
+
* 用于级联选项,子节点可能没有children属性
|
|
21
|
+
*/
|
|
22
|
+
children?: ICascadePickerChildOptionItem[];
|
|
23
|
+
};
|
|
24
|
+
export type ICascadePickerOptionItem = IPickerOptionItem & {
|
|
25
|
+
/**
|
|
26
|
+
* 用于级联选项,根节点必须含有children属性
|
|
27
|
+
*/
|
|
28
|
+
children: ICascadePickerChildOptionItem[];
|
|
29
|
+
};
|
|
30
|
+
export type PickerProps<D extends React.ElementType = 'div', P = DrawerProps> = OverrideProps<{
|
|
31
|
+
props: P & {
|
|
32
|
+
/**
|
|
33
|
+
* 是否展示选择器
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
open?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 标题
|
|
39
|
+
*/
|
|
40
|
+
title?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 确认文本内容
|
|
43
|
+
*/
|
|
44
|
+
confirmText?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 取消文本内容
|
|
47
|
+
*/
|
|
48
|
+
cancelText?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 列表数据
|
|
51
|
+
* @default []
|
|
52
|
+
*/
|
|
53
|
+
options?: IPickerOptionItem[][] | ICascadePickerOptionItem[];
|
|
54
|
+
/**
|
|
55
|
+
* 选中的值
|
|
56
|
+
*/
|
|
57
|
+
value?: (string | number)[];
|
|
58
|
+
/**
|
|
59
|
+
* 内部内容DOM节点上的Props
|
|
60
|
+
*/
|
|
61
|
+
contentProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
62
|
+
/**
|
|
63
|
+
* 点击确认按钮时候回调
|
|
64
|
+
*/
|
|
65
|
+
onConfirm?: (e: React.MouseEvent<HTMLDivElement>, data: {
|
|
66
|
+
value: (string | number)[];
|
|
67
|
+
options: ICascadePickerChildOptionItem[][];
|
|
68
|
+
}) => void;
|
|
69
|
+
/**
|
|
70
|
+
* 选项值变更时的回调
|
|
71
|
+
*/
|
|
72
|
+
onOptionChange?: (e: React.TransitionEvent<HTMLDivElement>, data: {
|
|
73
|
+
value: (string | number)[];
|
|
74
|
+
options: ICascadePickerChildOptionItem[][];
|
|
75
|
+
currentOption: ICascadePickerChildOptionItem;
|
|
76
|
+
columnIndex: number;
|
|
77
|
+
}) => void;
|
|
78
|
+
/**
|
|
79
|
+
* 点击取消按钮时候回调
|
|
80
|
+
*/
|
|
81
|
+
onCancel?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
82
|
+
/**
|
|
83
|
+
* 关闭选择器时执行
|
|
84
|
+
*/
|
|
85
|
+
onClose?: (e: React.MouseEvent<HTMLDivElement>, data: {
|
|
86
|
+
from: string;
|
|
87
|
+
value: (string | number)[];
|
|
88
|
+
options: ICascadePickerChildOptionItem[][];
|
|
89
|
+
}) => void;
|
|
90
|
+
};
|
|
91
|
+
defaultComponent: D;
|
|
92
|
+
}, D>;
|
|
93
|
+
export type PickerPanelProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
|
|
94
|
+
props: P & {
|
|
95
|
+
/**
|
|
96
|
+
* 单列面板的列表数据
|
|
97
|
+
* @default []
|
|
98
|
+
*/
|
|
99
|
+
options?: ICascadePickerChildOptionItem[];
|
|
100
|
+
/**
|
|
101
|
+
* 选中值
|
|
102
|
+
*/
|
|
103
|
+
value?: string | number;
|
|
104
|
+
/**
|
|
105
|
+
* 列索引
|
|
106
|
+
*/
|
|
107
|
+
columnIndex?: number;
|
|
108
|
+
/**
|
|
109
|
+
* 是否展示选择器
|
|
110
|
+
*/
|
|
111
|
+
open?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* 选择选项时的回调
|
|
114
|
+
*/
|
|
115
|
+
onSelect?: (e: React.TransitionEvent<HTMLDivElement>, data: {
|
|
116
|
+
columnOption: ICascadePickerChildOptionItem;
|
|
117
|
+
columnIndex: number;
|
|
118
|
+
}) => void;
|
|
119
|
+
};
|
|
120
|
+
defaultComponent: D;
|
|
121
|
+
}, D>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IPickerOptionItem, ICascadePickerOptionItem, ICascadePickerChildOptionItem } from './Picker.types';
|
|
2
|
+
/**
|
|
3
|
+
* 根据第一列数据判断选择器类型
|
|
4
|
+
*/
|
|
5
|
+
export declare const pickerPanelType: (options?: (IPickerOptionItem[] | ICascadePickerOptionItem)[]) => "multiple" | "single" | "cascade";
|
|
6
|
+
/**
|
|
7
|
+
* 格式化级联模式数据
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatCascade: (columns: ICascadePickerOptionItem[], values?: (number | string)[]) => ICascadePickerChildOptionItem[][];
|
|
10
|
+
/**
|
|
11
|
+
* 统一options数据格式
|
|
12
|
+
*/
|
|
13
|
+
export declare const formatOptions: (internalValue: (number | string)[], options?: any[]) => any[];
|
|
14
|
+
/**
|
|
15
|
+
* 在格式化后的数据源中是否存在等长子项的value
|
|
16
|
+
*/
|
|
17
|
+
export declare const existSameLengthValue: (value: unknown[], formatted: {
|
|
18
|
+
[index: string]: unknown;
|
|
19
|
+
value: string | number;
|
|
20
|
+
}[][]) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 关闭选择器时,纠正value和格式化数据
|
|
23
|
+
* 取决于formatted后的options有几列,若value为格式化后数据源(formatted)的等长子集,则取value,否则执行纠正逻辑
|
|
24
|
+
*/
|
|
25
|
+
export declare const safeData: ({ value, formatted, options }: {
|
|
26
|
+
value: any;
|
|
27
|
+
formatted: any;
|
|
28
|
+
options: any;
|
|
29
|
+
}) => {
|
|
30
|
+
safeValue: any[];
|
|
31
|
+
safeFormattedValue: any[];
|
|
32
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OverrideProps } from '@bifrostui/types';
|
|
3
|
+
type triggerType = 'click' | 'hover' | 'none';
|
|
4
|
+
export interface AnchorOrigin {
|
|
5
|
+
/**
|
|
6
|
+
* 垂直方向位置
|
|
7
|
+
* @default 'top'
|
|
8
|
+
*/
|
|
9
|
+
vertical: 'top' | 'center' | 'bottom';
|
|
10
|
+
/**
|
|
11
|
+
* 水平方向位置
|
|
12
|
+
* @default 'center'
|
|
13
|
+
*/
|
|
14
|
+
horizontal: 'left' | 'center' | 'right';
|
|
15
|
+
}
|
|
16
|
+
export type PopoverProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
|
|
17
|
+
props: P & {
|
|
18
|
+
/**
|
|
19
|
+
* 默认是否显隐
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
defaultOpen?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 用于手动控制浮层显隐
|
|
25
|
+
*/
|
|
26
|
+
open?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 浮层的标题
|
|
29
|
+
*/
|
|
30
|
+
title?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* 浮层的内容
|
|
33
|
+
*/
|
|
34
|
+
content?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* 是否展示箭头
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
hideArrow?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 用于控制浮层和目标元素偏移量
|
|
42
|
+
*/
|
|
43
|
+
offsetSpacing?: number;
|
|
44
|
+
/**
|
|
45
|
+
* 气泡框相对于锚点的位置
|
|
46
|
+
* @default { vertical: 'top', horizontal: 'center' }
|
|
47
|
+
*/
|
|
48
|
+
anchorOrigin?: AnchorOrigin;
|
|
49
|
+
/**
|
|
50
|
+
* 触发行为
|
|
51
|
+
* - click: 点击触发
|
|
52
|
+
* - hover: hover触发
|
|
53
|
+
* - none: 不自动触发,完全通过 open 属性控制
|
|
54
|
+
* - 或者是 click 和 hover 的数组组合
|
|
55
|
+
* @default 'click'
|
|
56
|
+
*/
|
|
57
|
+
trigger?: triggerType | Exclude<triggerType, 'none'>[];
|
|
58
|
+
/**
|
|
59
|
+
* 点击事件回调方法
|
|
60
|
+
* - event 触发事件
|
|
61
|
+
* - data.open 浮层显隐状态
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
onOpenChange?: (event: React.SyntheticEvent | Event, data: {
|
|
65
|
+
open: boolean;
|
|
66
|
+
}) => void;
|
|
67
|
+
/**
|
|
68
|
+
* 无障碍功能:Popover的角色
|
|
69
|
+
* @default 'tooltip'
|
|
70
|
+
*/
|
|
71
|
+
role?: 'tooltip' | 'dialog' | 'menu' | 'listbox';
|
|
72
|
+
/**
|
|
73
|
+
* 无障碍功能:为Popover提供可访问的标签
|
|
74
|
+
*/
|
|
75
|
+
'aria-label'?: string;
|
|
76
|
+
/**
|
|
77
|
+
* 无障碍功能:引用描述此Popover的元素ID
|
|
78
|
+
*/
|
|
79
|
+
'aria-labelledby'?: string;
|
|
80
|
+
/**
|
|
81
|
+
* 无障碍功能:是否自动管理焦点
|
|
82
|
+
* 当为true时,Popover打开时会自动获取焦点,关闭时焦点返回到触发元素
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
autoFocus?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* 无障碍功能:是否支持Escape键关闭
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
closeOnEscape?: boolean;
|
|
91
|
+
};
|
|
92
|
+
defaultComponent: D;
|
|
93
|
+
}, D>;
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Popover 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 A11yDemos.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicPopoverDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const placementPopoverDemo: () => React.JSX.Element;
|
|
9
|
+
export declare const triggerPopoverDemo: () => React.JSX.Element;
|
|
10
|
+
export declare const accessibilityPopoverDemo: () => React.JSX.Element;
|
|
11
|
+
export declare const complexInteractionPopoverDemo: () => React.JSX.Element;
|
|
12
|
+
export declare const complexContentPopoverDemo: () => React.JSX.Element;
|
|
13
|
+
export declare const offsetPopoverDemo: () => React.JSX.Element;
|
|
14
|
+
export declare const edgeCasePopoverDemo: () => React.JSX.Element;
|
|
15
|
+
declare const _default: {
|
|
16
|
+
basicPopoverDemo: () => React.JSX.Element;
|
|
17
|
+
placementPopoverDemo: () => React.JSX.Element;
|
|
18
|
+
triggerPopoverDemo: () => React.JSX.Element;
|
|
19
|
+
accessibilityPopoverDemo: () => React.JSX.Element;
|
|
20
|
+
complexInteractionPopoverDemo: () => React.JSX.Element;
|
|
21
|
+
complexContentPopoverDemo: () => React.JSX.Element;
|
|
22
|
+
offsetPopoverDemo: () => React.JSX.Element;
|
|
23
|
+
edgeCasePopoverDemo: () => React.JSX.Element;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { usePopoverState } from './usePopoverState';
|
|
2
|
+
export { usePopoverPosition } from './usePopoverPosition';
|
|
3
|
+
export { usePopoverA11y } from './usePopoverA11y';
|
|
4
|
+
export { usePopoverEvents } from './usePopoverEvents';
|
|
5
|
+
export type { UsePopoverStateProps, UsePopoverStateReturn, } from './usePopoverState';
|
|
6
|
+
export type { UsePopoverPositionProps, UsePopoverPositionReturn, } from './usePopoverPosition';
|
|
7
|
+
export type { UsePopoverA11yProps, UsePopoverA11yReturn, } from './usePopoverA11y';
|
|
8
|
+
export type { UsePopoverEventsProps, UsePopoverEventsReturn, } from './usePopoverEvents';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface UsePopoverA11yProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
autoFocus: boolean;
|
|
5
|
+
closeOnEscape: boolean;
|
|
6
|
+
onClose: (event: React.SyntheticEvent | Event) => void;
|
|
7
|
+
tipRef: React.RefObject<HTMLDivElement>;
|
|
8
|
+
childrenRef: React.RefObject<Element>;
|
|
9
|
+
}
|
|
10
|
+
export interface UsePopoverA11yReturn {
|
|
11
|
+
popoverId: string;
|
|
12
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const usePopoverA11y: ({ isOpen, autoFocus, closeOnEscape, onClose, tipRef, childrenRef, }: UsePopoverA11yProps) => UsePopoverA11yReturn;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PopoverProps } from '../Popover.types';
|
|
3
|
+
type TriggerType = PopoverProps['trigger'];
|
|
4
|
+
export interface UsePopoverEventsProps {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
controlByUser: boolean;
|
|
7
|
+
trigger: TriggerType;
|
|
8
|
+
onShow: (event: React.SyntheticEvent | Event) => void;
|
|
9
|
+
onHide: (event: React.SyntheticEvent | Event) => void;
|
|
10
|
+
onTriggerClick: (event: React.SyntheticEvent | Event) => void;
|
|
11
|
+
onMounted: () => void;
|
|
12
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
13
|
+
tipRef: React.RefObject<HTMLDivElement>;
|
|
14
|
+
childrenRef: React.RefObject<Element>;
|
|
15
|
+
}
|
|
16
|
+
export interface UsePopoverEventsReturn {
|
|
17
|
+
triggerEventOption?: Record<string, unknown>;
|
|
18
|
+
backdropProps?: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
export declare const usePopoverEvents: ({ isOpen, controlByUser, trigger, onShow, onHide, onTriggerClick, onMounted, handleKeyDown, tipRef, childrenRef, }: UsePopoverEventsProps) => UsePopoverEventsReturn;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AnchorOrigin } from '../Popover.types';
|
|
3
|
+
export interface UsePopoverPositionProps {
|
|
4
|
+
anchorOrigin: AnchorOrigin;
|
|
5
|
+
offsetSpacing: number;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface UsePopoverPositionReturn {
|
|
9
|
+
arrowDirection: string;
|
|
10
|
+
arrowLocation: string;
|
|
11
|
+
toolStyles: React.CSSProperties;
|
|
12
|
+
tipRef: React.RefObject<HTMLDivElement>;
|
|
13
|
+
childrenRef: React.RefObject<Element>;
|
|
14
|
+
onMounted: () => void;
|
|
15
|
+
clearRef: (status: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const usePopoverPosition: ({ anchorOrigin, offsetSpacing, isOpen, }: UsePopoverPositionProps) => UsePopoverPositionReturn;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface UsePopoverStateProps {
|
|
3
|
+
defaultOpen?: boolean;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onOpenChange?: (event: React.SyntheticEvent | Event, data: {
|
|
6
|
+
open: boolean;
|
|
7
|
+
}) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface UsePopoverStateReturn {
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
openStatus: boolean;
|
|
12
|
+
controlByUser: boolean;
|
|
13
|
+
changeOpenStatus: (event: React.SyntheticEvent | Event, status: boolean) => void;
|
|
14
|
+
setOpenStatus: React.Dispatch<React.SetStateAction<boolean>>;
|
|
15
|
+
}
|
|
16
|
+
export declare const usePopoverState: ({ defaultOpen, open, onOpenChange, }: UsePopoverStateProps) => UsePopoverStateReturn;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PortalCoreProps {
|
|
3
|
+
/**
|
|
4
|
+
* container中渲染的元素
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* children内容将会被append到container中
|
|
9
|
+
* 默认是页面的根节点
|
|
10
|
+
*/
|
|
11
|
+
container?: Element | (() => Element | null) | null;
|
|
12
|
+
/**
|
|
13
|
+
* 禁止Portal,children将被渲染在父节点中
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
disablePortal?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 页面根节点
|
|
19
|
+
*/
|
|
20
|
+
rootElement?: Element;
|
|
21
|
+
/**
|
|
22
|
+
* 挂载成功的回调方法
|
|
23
|
+
*/
|
|
24
|
+
onMounted?: (e: Element) => void;
|
|
25
|
+
}
|
|
26
|
+
export type PortalProps = Omit<PortalCoreProps, 'rootElement'>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { OverrideProps } from '@bifrostui/types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type ProgressStringGradients = {
|
|
4
|
+
[percentage: string]: string;
|
|
5
|
+
};
|
|
6
|
+
type ProgressFromToGradients = {
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
9
|
+
};
|
|
10
|
+
export type ProgressGradient = {
|
|
11
|
+
direction?: string;
|
|
12
|
+
} & (ProgressStringGradients | ProgressFromToGradients);
|
|
13
|
+
export type ProgressProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
|
|
14
|
+
props: P & {
|
|
15
|
+
/** 百分比 */
|
|
16
|
+
percent?: number;
|
|
17
|
+
/**
|
|
18
|
+
* - 进度条的色彩,传入 object 时为渐变
|
|
19
|
+
*/
|
|
20
|
+
strokeColor?: string | ProgressGradient;
|
|
21
|
+
/** 未填充进度条的色彩 */
|
|
22
|
+
trailColor?: string;
|
|
23
|
+
/** 进度条线的宽度,单位 */
|
|
24
|
+
strokeWidth?: number | string;
|
|
25
|
+
/**
|
|
26
|
+
* 无障碍功能:ARIA标签
|
|
27
|
+
*/
|
|
28
|
+
'aria-label'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 无障碍功能:描述元素的详细信息
|
|
31
|
+
*/
|
|
32
|
+
'aria-describedby'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 无障碍功能:是否隐藏元素
|
|
35
|
+
*/
|
|
36
|
+
'aria-hidden'?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 无障碍功能:元素在无障碍树中的细节程度
|
|
39
|
+
*/
|
|
40
|
+
'aria-details'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 无障碍功能:当前元素是否处于忙碌状态
|
|
43
|
+
*/
|
|
44
|
+
'aria-busy'?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 无障碍功能:当前元素是否为只读
|
|
47
|
+
*/
|
|
48
|
+
'aria-readonly'?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* 无障碍功能:当前元素是否为必填
|
|
51
|
+
*/
|
|
52
|
+
'aria-required'?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* 无障碍功能:进度条的当前值
|
|
55
|
+
*/
|
|
56
|
+
'aria-valuenow'?: number;
|
|
57
|
+
/**
|
|
58
|
+
* 无障碍功能:进度条的最小值
|
|
59
|
+
*/
|
|
60
|
+
'aria-valuemin'?: number;
|
|
61
|
+
/**
|
|
62
|
+
* 无障碍功能:进度条的最大值
|
|
63
|
+
*/
|
|
64
|
+
'aria-valuemax'?: number;
|
|
65
|
+
/**
|
|
66
|
+
* 无障碍功能:进度条的文本描述
|
|
67
|
+
*/
|
|
68
|
+
'aria-valuetext'?: string;
|
|
69
|
+
};
|
|
70
|
+
defaultComponent: D;
|
|
71
|
+
}, D>;
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Progress 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 customDemoComponent.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicProgressDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const coloredProgressDemo: () => React.JSX.Element;
|
|
9
|
+
export declare const sizedProgressDemo: () => React.JSX.Element;
|
|
10
|
+
export declare const gradientProgressDemo: () => React.JSX.Element;
|
|
11
|
+
export declare const customTrailColorProgressDemo: () => React.JSX.Element;
|
|
12
|
+
export declare const accessibilityProgressDemo: () => React.JSX.Element;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
basicProgressDemo: () => React.JSX.Element;
|
|
15
|
+
coloredProgressDemo: () => React.JSX.Element;
|
|
16
|
+
sizedProgressDemo: () => React.JSX.Element;
|
|
17
|
+
gradientProgressDemo: () => React.JSX.Element;
|
|
18
|
+
customTrailColorProgressDemo: () => React.JSX.Element;
|
|
19
|
+
accessibilityProgressDemo: () => React.JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Radio 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 customDemoComponent.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicRadioDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const disabledRadioDemo: () => React.JSX.Element;
|
|
9
|
+
export declare const ariaLabelRadioDemo: () => React.JSX.Element;
|
|
10
|
+
declare const _default: {
|
|
11
|
+
basicRadioDemo: () => React.JSX.Element;
|
|
12
|
+
disabledRadioDemo: () => React.JSX.Element;
|
|
13
|
+
ariaLabelRadioDemo: () => React.JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|