@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,28 @@
|
|
|
1
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
2
|
+
import { DisabledTimeView, ViewTypeWithMeridiem, ITimeInstance, ITimeItemNumberInstance, TimeSteps } from '../DesktopTimePicker.types';
|
|
3
|
+
/**
|
|
4
|
+
* 判断时间是否在可选日期区间内
|
|
5
|
+
*/
|
|
6
|
+
export declare const getIsRangeDate: (time: Dayjs, start?: Dayjs, end?: Dayjs) => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* 判断时间是否在 disabledView 时间区间内
|
|
9
|
+
*/
|
|
10
|
+
export declare const isDisabledViewTime: (time: Dayjs, disabledTimeView: DisabledTimeView) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 判断时间是否在 minTime & maxTime 时间区间内
|
|
13
|
+
*/
|
|
14
|
+
export declare const getIsRangeTime: (time: Dayjs, start?: Dayjs, end?: Dayjs) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 判断时间是否在disabledView || outOf minTime-maxTime 时间区间内
|
|
17
|
+
*/
|
|
18
|
+
export declare const isDisabledTime: (time: Dayjs, start?: Dayjs, end?: Dayjs, disabledTimeView?: DisabledTimeView) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 获取分钟时间面板 是否小于minTime分钟
|
|
21
|
+
*/
|
|
22
|
+
export declare const getOutOfMinRangeMinutes: (hourValue: number, minTime: Dayjs, dataList: ITimeItemNumberInstance[]) => number[];
|
|
23
|
+
export declare const getOutOfMaxRangeMinutes: (hourValue: number, maxTime: Dayjs, dataList: ITimeItemNumberInstance[]) => number[];
|
|
24
|
+
export declare const getOutOfMinRangeSeconds: (hourValue: number, minuteValue: number, minTime: Dayjs, dataList: ITimeItemNumberInstance[]) => number[];
|
|
25
|
+
export declare const getOutOfMaxRangeSeconds: (hourValue: number, minuteValue: number, maxTime: Dayjs, dataList: ITimeItemNumberInstance[]) => number[];
|
|
26
|
+
export declare const getdisabledTime: (type: ViewTypeWithMeridiem, timeValue: Dayjs, minTime: Dayjs, maxTime: Dayjs, dataList: ITimeInstance[], disabledTimeView: DisabledTimeView, timeSteps: TimeSteps, ampm?: boolean) => (string | number)[];
|
|
27
|
+
export declare const calculateValidMinTime: (disabledTimeView: DisabledTimeView, minTime?: Dayjs) => dayjs.Dayjs;
|
|
28
|
+
export declare const dateToDayjs: (date: Date) => dayjs.Dayjs;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DialogProps } from './Dialog.types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
/**
|
|
5
|
+
* Dialog组件 - 既可以作为组件使用,也可以函数式调用
|
|
6
|
+
*/
|
|
7
|
+
declare const Dialog: React.ForwardRefExoticComponent<Omit<DialogProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default Dialog;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ModalProps } from '../Modal/Modal.types';
|
|
3
|
+
import { InputProps } from '../Input/Input.types';
|
|
4
|
+
import { ThemeProps } from '../ThemeProvider/ThemeProvider.types';
|
|
5
|
+
/**
|
|
6
|
+
* 对话框类型
|
|
7
|
+
*/
|
|
8
|
+
export type DialogType = 'confirm' | 'prompt' | 'alert';
|
|
9
|
+
export type Dispatch = (action: boolean, e: React.SyntheticEvent, val?: string) => void;
|
|
10
|
+
export interface DialogProps extends Omit<ModalProps, 'title' | 'content'> {
|
|
11
|
+
/**
|
|
12
|
+
* 对话框类型
|
|
13
|
+
* @default confirm
|
|
14
|
+
*/
|
|
15
|
+
type?: DialogType;
|
|
16
|
+
/**
|
|
17
|
+
* 自定义标题
|
|
18
|
+
*/
|
|
19
|
+
title?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* 自定义内容
|
|
22
|
+
*/
|
|
23
|
+
content?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* 输入框占位文本
|
|
26
|
+
*/
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
/**
|
|
29
|
+
* 透传给内部Input组件的属性
|
|
30
|
+
*/
|
|
31
|
+
InputProps?: Partial<InputProps>;
|
|
32
|
+
/**
|
|
33
|
+
* 确认按钮文本内容
|
|
34
|
+
*/
|
|
35
|
+
okText?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* 取消文本内容
|
|
38
|
+
*/
|
|
39
|
+
cancelText?: ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* theme 主题定制
|
|
42
|
+
*/
|
|
43
|
+
theme?: ThemeProps;
|
|
44
|
+
/**
|
|
45
|
+
* 渲染Dialog的根容器
|
|
46
|
+
* @default document.body
|
|
47
|
+
*/
|
|
48
|
+
container?: HTMLElement | (() => HTMLElement);
|
|
49
|
+
/**
|
|
50
|
+
* 确认回调
|
|
51
|
+
*/
|
|
52
|
+
onOk?: (e: React.SyntheticEvent, data: {
|
|
53
|
+
value: string;
|
|
54
|
+
}) => void;
|
|
55
|
+
/**
|
|
56
|
+
* 取消回调
|
|
57
|
+
*/
|
|
58
|
+
onCancel?: (e: React.SyntheticEvent) => void;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 函数式调用配置参数
|
|
62
|
+
*/
|
|
63
|
+
export type DialogOptions = Omit<DialogProps, 'placeholder' | 'inputProps' | 'onOk' | 'onCancel'> & {
|
|
64
|
+
/**
|
|
65
|
+
* 确认回调
|
|
66
|
+
*/
|
|
67
|
+
onOk?: (e: React.SyntheticEvent, data: {
|
|
68
|
+
value: string;
|
|
69
|
+
}) => void;
|
|
70
|
+
/**
|
|
71
|
+
* 取消回调
|
|
72
|
+
*/
|
|
73
|
+
onCancel?: (e: React.SyntheticEvent) => void;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* prompt函数式调用配置参数
|
|
77
|
+
*/
|
|
78
|
+
export type PromptOptions = (DialogOptions & {
|
|
79
|
+
/**
|
|
80
|
+
* 输入框占位文本
|
|
81
|
+
*/
|
|
82
|
+
placeholder?: string;
|
|
83
|
+
/**
|
|
84
|
+
* 内部<input>标签的标准属性
|
|
85
|
+
*/
|
|
86
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
87
|
+
}) | string;
|
|
88
|
+
/**
|
|
89
|
+
* confirm函数式调用配置参数
|
|
90
|
+
*/
|
|
91
|
+
export type ConfirmOptions = DialogOptions | string;
|
|
92
|
+
/**
|
|
93
|
+
* alert函数式调用配置参数
|
|
94
|
+
*/
|
|
95
|
+
export type AlertOptions = DialogOptions | string;
|
|
96
|
+
/**
|
|
97
|
+
* Dialog函数式调用返回值类型
|
|
98
|
+
*/
|
|
99
|
+
export type DialogPromise = Promise<boolean | string>;
|
|
100
|
+
/**
|
|
101
|
+
* Dialog Instance
|
|
102
|
+
*/
|
|
103
|
+
export interface DialogFunction {
|
|
104
|
+
/**
|
|
105
|
+
* 显示确认框 Dialog.confirm
|
|
106
|
+
*/
|
|
107
|
+
confirm?: (options: ConfirmOptions) => Promise<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* 显示提示对话框 Dialog.prompt
|
|
110
|
+
*/
|
|
111
|
+
prompt?: (options: PromptOptions, val?: string) => Promise<string | null>;
|
|
112
|
+
/**
|
|
113
|
+
* 显示警告对话框 Dialog.alert
|
|
114
|
+
*/
|
|
115
|
+
alert?: (options: AlertOptions) => Promise<boolean>;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Dialog组件类型,支持组件式调用和函数式调用
|
|
119
|
+
*/
|
|
120
|
+
export interface DialogComponent extends React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLDivElement>> {
|
|
121
|
+
/**
|
|
122
|
+
* 显示确认框
|
|
123
|
+
*/
|
|
124
|
+
confirm: (options: ConfirmOptions) => Promise<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* 显示提示对话框
|
|
127
|
+
*/
|
|
128
|
+
prompt: (options: PromptOptions) => Promise<string | null>;
|
|
129
|
+
/**
|
|
130
|
+
* 显示警告对话框
|
|
131
|
+
*/
|
|
132
|
+
alert: (options: AlertOptions) => Promise<boolean>;
|
|
133
|
+
/**
|
|
134
|
+
* 使用Dialog Hook
|
|
135
|
+
*/
|
|
136
|
+
useDialog: () => [DialogFunction, React.JSX.Element];
|
|
137
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DialogPromise, PromptOptions, ConfirmOptions, AlertOptions, DialogOptions, DialogFunction } from './Dialog.types';
|
|
3
|
+
declare const FunctionalDialog: {
|
|
4
|
+
(props: DialogOptions | string): DialogPromise;
|
|
5
|
+
confirm: (options: ConfirmOptions) => Promise<boolean>;
|
|
6
|
+
prompt: (options: PromptOptions) => Promise<string>;
|
|
7
|
+
alert: (options: AlertOptions) => Promise<boolean>;
|
|
8
|
+
useDialog: () => [DialogFunction, React.JSX.Element];
|
|
9
|
+
};
|
|
10
|
+
export default FunctionalDialog;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Dialog 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 A11yDemos.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicDialogDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const promptDialogDemo: () => React.JSX.Element;
|
|
9
|
+
export declare const alertDialogDemo: () => React.JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Drawer 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 A11yDemos.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicDrawerDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const leftDrawerDemo: () => React.JSX.Element;
|
|
9
|
+
export declare const rightDrawerDemo: () => React.JSX.Element;
|
|
10
|
+
export declare const topDrawerDemo: () => React.JSX.Element;
|
|
11
|
+
export declare const noBackdropDrawerDemo: () => React.JSX.Element;
|
|
12
|
+
export declare const interactiveDrawerDemo: () => React.JSX.Element;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
basicDrawerDemo: () => React.JSX.Element;
|
|
15
|
+
leftDrawerDemo: () => React.JSX.Element;
|
|
16
|
+
rightDrawerDemo: () => React.JSX.Element;
|
|
17
|
+
topDrawerDemo: () => React.JSX.Element;
|
|
18
|
+
noBackdropDrawerDemo: () => React.JSX.Element;
|
|
19
|
+
interactiveDrawerDemo: () => React.JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fade Animation Component
|
|
3
|
+
* @description A component that implements fade in/out animation effects for elements
|
|
4
|
+
* @component Fade
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import type { FadeProps } from './Fade.types';
|
|
8
|
+
import './index.less';
|
|
9
|
+
declare const Fade: React.ForwardRefExoticComponent<FadeProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
export default Fade;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { OverrideProps, ThemeColor, ButtonOpenType } from '@bifrostui/types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type IconButtonProps<D extends React.ElementType = 'button', P = {}> = OverrideProps<{
|
|
4
|
+
props: P & {
|
|
5
|
+
/**
|
|
6
|
+
* - small: 小按钮
|
|
7
|
+
* - medium: 中号按钮,默认按钮
|
|
8
|
+
* - large: 大按钮
|
|
9
|
+
* @default 'medium'
|
|
10
|
+
*/
|
|
11
|
+
size?: 'small' | 'medium' | 'large';
|
|
12
|
+
/** 按钮颜色
|
|
13
|
+
*/
|
|
14
|
+
color?: ThemeColor;
|
|
15
|
+
/**
|
|
16
|
+
* - default: 图标按钮
|
|
17
|
+
* - contained: 实心填充按钮
|
|
18
|
+
* - outlined: 描边按钮
|
|
19
|
+
* - subtle: 柔和按钮
|
|
20
|
+
* @default 'default'
|
|
21
|
+
*/
|
|
22
|
+
variant?: 'default' | 'contained' | 'outlined' | 'subtle';
|
|
23
|
+
/**
|
|
24
|
+
* - circular: 圆形
|
|
25
|
+
* - square: 正方形
|
|
26
|
+
* - rounded: 圆角
|
|
27
|
+
* @default 'circular'
|
|
28
|
+
*/
|
|
29
|
+
shape?: 'circular' | 'square' | 'rounded';
|
|
30
|
+
/**
|
|
31
|
+
* 是否禁用
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 仅微信小程序支持的button开放能力
|
|
37
|
+
*/
|
|
38
|
+
openType?: ButtonOpenType;
|
|
39
|
+
/**
|
|
40
|
+
* 提供可访问的名称
|
|
41
|
+
* 图标按钮必须设置此属性,因为没有可见文本
|
|
42
|
+
* @example "搜索", "关闭", "菜单", "收藏"
|
|
43
|
+
*/
|
|
44
|
+
'aria-label'?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 禁用状态
|
|
47
|
+
* @example true - 禁用, false - 开启
|
|
48
|
+
*/
|
|
49
|
+
'aria-disabled'?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* 切换按钮的按下状态
|
|
52
|
+
* 用于切换类型的按钮(如收藏、点赞、静音等)
|
|
53
|
+
* @example true - 已激活, false - 未激活
|
|
54
|
+
*/
|
|
55
|
+
'aria-pressed'?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* 展开/折叠状态
|
|
58
|
+
* 用于控制下拉菜单、面板等可展开内容的按钮
|
|
59
|
+
* @example true - 已展开, false - 已折叠
|
|
60
|
+
*/
|
|
61
|
+
'aria-expanded'?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* 弹出内容类型
|
|
64
|
+
* 指示点击按钮后会弹出什么类型的内容
|
|
65
|
+
* @example "menu" - 弹出菜单, "dialog" - 弹出对话框
|
|
66
|
+
*/
|
|
67
|
+
'aria-haspopup'?: boolean | 'menu' | 'dialog' | 'listbox';
|
|
68
|
+
/**
|
|
69
|
+
* 关联描述该按钮的元素ID
|
|
70
|
+
* 用于提供额外的说明信息
|
|
71
|
+
* @example aria-describedby="help-text"
|
|
72
|
+
*/
|
|
73
|
+
'aria-describedby'?: string;
|
|
74
|
+
};
|
|
75
|
+
defaultComponent: D;
|
|
76
|
+
}, D>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Image 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 A11yDemos.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicImageDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const ClickableImageDemo: () => React.JSX.Element;
|
|
9
|
+
export declare const placeholderImageDemo: () => React.JSX.Element;
|
|
10
|
+
export declare const errorImageDemo: () => React.JSX.Element;
|
|
11
|
+
export declare const lazyImageDemo: () => React.JSX.Element;
|
|
12
|
+
export declare const noAltImageDemo: () => React.JSX.Element;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
basicImageDemo: () => React.JSX.Element;
|
|
15
|
+
ClickableImageDemo: () => React.JSX.Element;
|
|
16
|
+
placeholderImageDemo: () => React.JSX.Element;
|
|
17
|
+
errorImageDemo: () => React.JSX.Element;
|
|
18
|
+
lazyImageDemo: () => React.JSX.Element;
|
|
19
|
+
noAltImageDemo: () => React.JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 自定义 Input 组件 Demo 集合
|
|
4
|
+
* 这个文件包含多个测试 demo,展示如何使用 getCustomDemoCodesFromFile 进行无障碍测试
|
|
5
|
+
* 文件名必须是 customDemoComponent.tsx(固定约定)
|
|
6
|
+
*/
|
|
7
|
+
export declare const basicInputDemo: () => React.JSX.Element;
|
|
8
|
+
export declare const disabledInputDemo: () => React.JSX.Element;
|
|
9
|
+
export declare const requiredInputDemo: () => React.JSX.Element;
|
|
10
|
+
export declare const readOnlyInputDemo: () => React.JSX.Element;
|
|
11
|
+
export declare const placeholderInputDemo: () => React.JSX.Element;
|
|
12
|
+
export declare const ariaLabelInputDemo: () => React.JSX.Element;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
basicInputDemo: () => React.JSX.Element;
|
|
15
|
+
disabledInputDemo: () => React.JSX.Element;
|
|
16
|
+
requiredInputDemo: () => React.JSX.Element;
|
|
17
|
+
readOnlyInputDemo: () => React.JSX.Element;
|
|
18
|
+
placeholderInputDemo: () => React.JSX.Element;
|
|
19
|
+
ariaLabelInputDemo: () => React.JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -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
|
+
}, keyof import("@bifrostui/types").ICommonProps | "container" | "open" | "onClose" | "disablePortal" | "BackdropProps" | "keepMounted" | "hideBackdrop" | "disableScrollLock">, "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>;
|