@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
|
@@ -49,136 +49,158 @@ var __async = (__this, __arguments, generator) => {
|
|
|
49
49
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
import React, { useCallback,
|
|
53
|
-
import {
|
|
54
|
-
import
|
|
55
|
-
const { isValidElement
|
|
52
|
+
import React, { useCallback, useState } from "react";
|
|
53
|
+
import { getRootContainer, render, unmount, isMini } from "@bifrostui/utils";
|
|
54
|
+
import Dialog from "./Dialog";
|
|
55
|
+
const { isValidElement } = React;
|
|
56
56
|
const formatProps = (props) => {
|
|
57
57
|
if (typeof props === "string" || isValidElement(props)) {
|
|
58
|
-
return {
|
|
58
|
+
return { content: props };
|
|
59
59
|
}
|
|
60
60
|
return props;
|
|
61
61
|
};
|
|
62
62
|
const DialogGenerator = (options) => {
|
|
63
|
-
const
|
|
64
|
-
const rootElement =
|
|
65
|
-
rootElement.appendChild(
|
|
66
|
-
const
|
|
67
|
-
const _a = options, {
|
|
68
|
-
const [visible, setVisible] = useState(false);
|
|
63
|
+
const dialogFragment = isMini ? document.createElement("div") : document.createDocumentFragment();
|
|
64
|
+
const rootElement = getRootContainer(options == null ? void 0 : options.container);
|
|
65
|
+
rootElement.appendChild(dialogFragment);
|
|
66
|
+
const DialogWrapper = () => {
|
|
67
|
+
const _a = options, { onOk, onCancel } = _a, rest = __objRest(_a, ["onOk", "onCancel"]);
|
|
69
68
|
const close = useCallback(() => {
|
|
70
|
-
setVisible(false);
|
|
71
69
|
setTimeout(() => {
|
|
72
|
-
const unmountRes = unmount(
|
|
73
|
-
if (unmountRes &&
|
|
74
|
-
|
|
70
|
+
const unmountRes = unmount(dialogFragment);
|
|
71
|
+
if (unmountRes && dialogFragment.parentNode) {
|
|
72
|
+
dialogFragment.parentNode.removeChild(dialogFragment);
|
|
75
73
|
}
|
|
76
74
|
}, 150);
|
|
77
|
-
}, [
|
|
78
|
-
|
|
79
|
-
setVisible(true);
|
|
80
|
-
}, []);
|
|
81
|
-
const dispatch = (action, val) => __async(void 0, null, function* () {
|
|
75
|
+
}, [dialogFragment]);
|
|
76
|
+
const dispatch = (action, e, val = "") => __async(void 0, null, function* () {
|
|
82
77
|
if (action === true) {
|
|
83
|
-
|
|
84
|
-
yield onConfirm == null ? void 0 : onConfirm(val);
|
|
85
|
-
} catch (error) {
|
|
86
|
-
}
|
|
78
|
+
yield onOk == null ? void 0 : onOk(e, { value: val });
|
|
87
79
|
} else if (action === false) {
|
|
88
|
-
|
|
89
|
-
yield onCancel == null ? void 0 : onCancel();
|
|
90
|
-
} catch (error) {
|
|
91
|
-
}
|
|
80
|
+
yield onCancel == null ? void 0 : onCancel(e);
|
|
92
81
|
}
|
|
93
82
|
close();
|
|
94
83
|
});
|
|
95
84
|
return /* @__PURE__ */ React.createElement(
|
|
96
|
-
|
|
97
|
-
__spreadProps(__spreadValues({
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
onOk: (val) => dispatch(true, val),
|
|
102
|
-
onClose: () => dispatch(false)
|
|
85
|
+
Dialog,
|
|
86
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
87
|
+
open: true,
|
|
88
|
+
onOk: (e, { value }) => dispatch(true, e, value),
|
|
89
|
+
onCancel: (e) => dispatch(false, e)
|
|
103
90
|
})
|
|
104
91
|
);
|
|
105
92
|
};
|
|
106
|
-
return render(/* @__PURE__ */ React.createElement(
|
|
93
|
+
return render(/* @__PURE__ */ React.createElement(DialogWrapper, null), dialogFragment);
|
|
107
94
|
};
|
|
108
|
-
const
|
|
95
|
+
const FunctionalDialog = (props) => {
|
|
109
96
|
const options = formatProps(props);
|
|
110
|
-
const _a = options, {
|
|
97
|
+
const _a = options, { onOk, onCancel } = _a, rest = __objRest(_a, ["onOk", "onCancel"]);
|
|
111
98
|
return new Promise((resolve) => {
|
|
112
99
|
DialogGenerator(__spreadProps(__spreadValues({}, rest), {
|
|
113
|
-
|
|
114
|
-
yield
|
|
100
|
+
onOk: (_0, _1) => __async(void 0, [_0, _1], function* (e, { value: val }) {
|
|
101
|
+
yield onOk == null ? void 0 : onOk(e, { value: val });
|
|
115
102
|
if (rest.type === "prompt")
|
|
116
103
|
resolve(val);
|
|
117
104
|
else
|
|
118
105
|
resolve(true);
|
|
119
106
|
}),
|
|
120
|
-
onCancel: () => __async(void 0, null, function* () {
|
|
121
|
-
yield onCancel == null ? void 0 : onCancel();
|
|
122
|
-
|
|
107
|
+
onCancel: (e) => __async(void 0, null, function* () {
|
|
108
|
+
yield onCancel == null ? void 0 : onCancel(e);
|
|
109
|
+
if (rest.type === "prompt")
|
|
110
|
+
resolve(null);
|
|
111
|
+
else
|
|
112
|
+
resolve(false);
|
|
123
113
|
})
|
|
124
114
|
}));
|
|
125
115
|
});
|
|
126
116
|
};
|
|
127
|
-
Dialog.prototype = Component.prototype;
|
|
128
117
|
const confirm = (options) => {
|
|
129
|
-
return
|
|
118
|
+
return FunctionalDialog(__spreadValues({
|
|
130
119
|
type: "confirm"
|
|
131
120
|
}, formatProps(options)));
|
|
132
121
|
};
|
|
133
122
|
const prompt = (options) => {
|
|
134
|
-
return
|
|
123
|
+
return FunctionalDialog(__spreadValues({
|
|
135
124
|
type: "prompt"
|
|
136
125
|
}, formatProps(options)));
|
|
137
126
|
};
|
|
127
|
+
const alert = (options) => {
|
|
128
|
+
return FunctionalDialog(__spreadValues({
|
|
129
|
+
type: "alert"
|
|
130
|
+
}, formatProps(options)));
|
|
131
|
+
};
|
|
138
132
|
const useDialog = () => {
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
var _a;
|
|
142
|
-
const options = __spreadValues({ theme: (_a = holderRef.current) == null ? void 0 : _a.theme }, formatProps(props));
|
|
143
|
-
const _b = options, { onConfirm, onCancel } = _b, rest = __objRest(_b, ["onConfirm", "onCancel"]);
|
|
133
|
+
const [elements, setElements] = useState([]);
|
|
134
|
+
const createDialog = useCallback((config) => {
|
|
144
135
|
return new Promise((resolve) => {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
136
|
+
const key = `dialog-${Date.now()}-${Math.random()}`;
|
|
137
|
+
const destroy = () => {
|
|
138
|
+
setElements((prev) => prev.filter((el) => el.key !== key));
|
|
139
|
+
};
|
|
140
|
+
const onInternalOk = (e, data) => __async(void 0, null, function* () {
|
|
141
|
+
var _a;
|
|
142
|
+
yield (_a = config.onOk) == null ? void 0 : _a.call(config, e, data);
|
|
143
|
+
if (config.type === "prompt")
|
|
144
|
+
resolve(data.value);
|
|
145
|
+
else
|
|
146
|
+
resolve(true);
|
|
147
|
+
destroy();
|
|
148
|
+
});
|
|
149
|
+
const onInternalCancel = (e) => __async(void 0, null, function* () {
|
|
150
|
+
var _a;
|
|
151
|
+
yield (_a = config.onCancel) == null ? void 0 : _a.call(config, e);
|
|
152
|
+
if (config.type === "prompt")
|
|
153
|
+
resolve(null);
|
|
154
|
+
else
|
|
155
155
|
resolve(false);
|
|
156
|
+
destroy();
|
|
157
|
+
});
|
|
158
|
+
const dialogElement = /* @__PURE__ */ React.createElement(
|
|
159
|
+
Dialog,
|
|
160
|
+
__spreadProps(__spreadValues({
|
|
161
|
+
key
|
|
162
|
+
}, config), {
|
|
163
|
+
open: true,
|
|
164
|
+
onOk: onInternalOk,
|
|
165
|
+
onCancel: onInternalCancel
|
|
156
166
|
})
|
|
157
|
-
|
|
167
|
+
);
|
|
168
|
+
setElements((prev) => [...prev, dialogElement]);
|
|
158
169
|
});
|
|
159
|
-
};
|
|
160
|
-
wrapAPI
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
170
|
+
}, []);
|
|
171
|
+
const wrapAPI = {};
|
|
172
|
+
wrapAPI.confirm = useCallback(
|
|
173
|
+
(options) => {
|
|
174
|
+
return createDialog(__spreadValues({
|
|
175
|
+
type: "confirm"
|
|
176
|
+
}, formatProps(options)));
|
|
177
|
+
},
|
|
178
|
+
[createDialog]
|
|
179
|
+
);
|
|
180
|
+
wrapAPI.prompt = useCallback(
|
|
181
|
+
(options) => {
|
|
182
|
+
return createDialog(__spreadValues({
|
|
183
|
+
type: "prompt"
|
|
184
|
+
}, formatProps(options)));
|
|
185
|
+
},
|
|
186
|
+
[createDialog]
|
|
187
|
+
);
|
|
188
|
+
wrapAPI.alert = useCallback(
|
|
189
|
+
(options) => {
|
|
190
|
+
return createDialog(__spreadValues({
|
|
191
|
+
type: "alert"
|
|
192
|
+
}, formatProps(options)));
|
|
193
|
+
},
|
|
194
|
+
[createDialog]
|
|
195
|
+
);
|
|
196
|
+
const contextHolder = /* @__PURE__ */ React.createElement(React.Fragment, null, elements);
|
|
197
|
+
return [wrapAPI, contextHolder];
|
|
177
198
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
199
|
+
FunctionalDialog.confirm = confirm;
|
|
200
|
+
FunctionalDialog.prompt = prompt;
|
|
201
|
+
FunctionalDialog.alert = alert;
|
|
202
|
+
FunctionalDialog.useDialog = useDialog;
|
|
203
|
+
var FunctionalDialog_default = FunctionalDialog;
|
|
182
204
|
export {
|
|
183
205
|
FunctionalDialog_default as default
|
|
184
206
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Dialog from "../../Dialog";
|
|
3
|
+
const basicDialogDemo = () => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(
|
|
5
|
+
Dialog,
|
|
6
|
+
{
|
|
7
|
+
open: true,
|
|
8
|
+
disablePortal: true,
|
|
9
|
+
title: "\u57FA\u7840\u5BF9\u8BDD\u6846",
|
|
10
|
+
content: "\u8FD9\u662F\u4E00\u4E2A\u57FA\u7840\u7684 Dialog \u7EC4\u4EF6\u793A\u4F8B"
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
};
|
|
14
|
+
const promptDialogDemo = () => {
|
|
15
|
+
return /* @__PURE__ */ React.createElement(
|
|
16
|
+
Dialog,
|
|
17
|
+
{
|
|
18
|
+
open: true,
|
|
19
|
+
disablePortal: true,
|
|
20
|
+
type: "prompt",
|
|
21
|
+
title: "\u8F93\u5165\u5BF9\u8BDD\u6846",
|
|
22
|
+
content: "\u8BF7\u8F93\u5165\u60A8\u7684\u59D3\u540D\uFF1A",
|
|
23
|
+
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D"
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
const alertDialogDemo = () => {
|
|
28
|
+
return /* @__PURE__ */ React.createElement(
|
|
29
|
+
Dialog,
|
|
30
|
+
{
|
|
31
|
+
open: true,
|
|
32
|
+
disablePortal: true,
|
|
33
|
+
title: "\u8B66\u544A",
|
|
34
|
+
content: "\u8FD9\u662F\u4E00\u4E2A\u8B66\u544A\u5BF9\u8BDD\u6846\uFF0C\u8BF7\u6CE8\u610F\uFF01",
|
|
35
|
+
type: "alert"
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
alertDialogDemo,
|
|
41
|
+
basicDialogDemo,
|
|
42
|
+
promptDialogDemo
|
|
43
|
+
};
|
package/es/Dialog/index.css
CHANGED
|
@@ -4,21 +4,21 @@ xhs-page {
|
|
|
4
4
|
--bui-dialog-max-width: 300px;
|
|
5
5
|
--bui-dialog-border-radius: var(--bui-shape-radius-drawer);
|
|
6
6
|
--bui-dialog-title-padding: 0 40px 9px;
|
|
7
|
-
--bui-dialog-
|
|
8
|
-
--bui-dialog-
|
|
7
|
+
--bui-dialog-content-padding: 0 24px;
|
|
8
|
+
--bui-dialog-actions-margin: 15px 0 0 0;
|
|
9
9
|
--bui-dialog-button-height: 53px;
|
|
10
10
|
--bui-dialog-button-line-height: 25px;
|
|
11
11
|
--bui-dialog-button-padding: 12px 0 13px;
|
|
12
12
|
--bui-dialog-button-font-size: 17px;
|
|
13
13
|
--bui-dialog-button-border-left: 1px solid rgba(0, 0, 0, 0.05);
|
|
14
|
-
--bui-dialog-button-active-
|
|
14
|
+
--bui-dialog-button-active-bg-color: rgba(54, 57, 64, 0.05);
|
|
15
15
|
}
|
|
16
16
|
.bui-dialog {
|
|
17
17
|
display: flex;
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: center;
|
|
20
20
|
}
|
|
21
|
-
.bui-dialog-
|
|
21
|
+
.bui-dialog-container {
|
|
22
22
|
padding-top: 21px;
|
|
23
23
|
min-width: var(--bui-dialog-max-width);
|
|
24
24
|
margin: 0 auto;
|
|
@@ -27,35 +27,31 @@ xhs-page {
|
|
|
27
27
|
background-color: var(--bui-color-bg-view);
|
|
28
28
|
line-height: 21px;
|
|
29
29
|
}
|
|
30
|
-
.bui-dialog-
|
|
30
|
+
.bui-dialog-title {
|
|
31
31
|
padding: var(--bui-dialog-title-padding);
|
|
32
32
|
font-size: var(--bui-title-size-2);
|
|
33
33
|
text-align: center;
|
|
34
34
|
color: var(--bui-color-fg-default);
|
|
35
35
|
font-weight: var(--bui-font-weight-medium);
|
|
36
36
|
}
|
|
37
|
-
.bui-dialog-
|
|
37
|
+
.bui-dialog-title + .bui-dialog-actions {
|
|
38
38
|
margin-top: var(--bui-spacing-sm);
|
|
39
39
|
}
|
|
40
|
-
.bui-dialog-
|
|
41
|
-
padding: var(--bui-dialog-
|
|
40
|
+
.bui-dialog-content {
|
|
41
|
+
padding: var(--bui-dialog-content-padding);
|
|
42
42
|
color: var(--bui-color-fg-muted);
|
|
43
43
|
font-size: var(--bui-title-size-4);
|
|
44
44
|
text-align: center;
|
|
45
45
|
}
|
|
46
|
-
.bui-dialog-
|
|
46
|
+
.bui-dialog-content:first-child {
|
|
47
47
|
padding-top: 0;
|
|
48
48
|
}
|
|
49
|
-
.bui-dialog-
|
|
50
|
-
margin
|
|
49
|
+
.bui-dialog-actions {
|
|
50
|
+
margin: var(--bui-dialog-actions-margin);
|
|
51
51
|
border-top: 1px solid rgba(0, 0, 0, 0.05);
|
|
52
52
|
display: flex;
|
|
53
53
|
}
|
|
54
|
-
.bui-dialog-
|
|
55
|
-
width: calc(100% - 48px);
|
|
56
|
-
margin: 14px 24px 0;
|
|
57
|
-
}
|
|
58
|
-
.bui-dialog-body-button {
|
|
54
|
+
.bui-dialog-actions-btn {
|
|
59
55
|
flex: 1;
|
|
60
56
|
display: block;
|
|
61
57
|
width: 100%;
|
|
@@ -70,9 +66,13 @@ xhs-page {
|
|
|
70
66
|
text-align: center;
|
|
71
67
|
box-sizing: border-box;
|
|
72
68
|
}
|
|
73
|
-
.bui-dialog-
|
|
69
|
+
.bui-dialog-actions-btn:first-child {
|
|
74
70
|
border: none;
|
|
75
71
|
}
|
|
76
|
-
.bui-dialog-
|
|
77
|
-
background-color: var(--bui-dialog-button-active-
|
|
72
|
+
.bui-dialog-actions-btn:active {
|
|
73
|
+
background-color: var(--bui-dialog-button-active-bg-color);
|
|
74
|
+
}
|
|
75
|
+
.bui-dialog-input {
|
|
76
|
+
width: calc(100% - 48px);
|
|
77
|
+
margin: 14px 24px 0;
|
|
78
78
|
}
|
package/es/Dialog/index.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Dialog from "./Dialog";
|
|
2
|
+
import FunctionalDialog from "./FunctionalDialog";
|
|
3
|
+
const DialogWithMethods = Dialog;
|
|
4
|
+
DialogWithMethods.confirm = FunctionalDialog.confirm;
|
|
5
|
+
DialogWithMethods.prompt = FunctionalDialog.prompt;
|
|
6
|
+
DialogWithMethods.alert = FunctionalDialog.alert;
|
|
7
|
+
DialogWithMethods.useDialog = FunctionalDialog.useDialog;
|
|
8
|
+
var Dialog_default = DialogWithMethods;
|
|
2
9
|
export * from "./Dialog.types";
|
|
3
10
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
11
|
+
DialogWithMethods as Dialog,
|
|
12
|
+
Dialog_default as default
|
|
6
13
|
};
|
package/es/Drawer/Drawer.js
CHANGED
|
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
import clsx from "clsx";
|
|
33
|
-
import React
|
|
33
|
+
import React from "react";
|
|
34
34
|
import Modal from "../Modal";
|
|
35
35
|
import Slide from "../Slide";
|
|
36
36
|
import "./index.css";
|
|
@@ -68,7 +68,6 @@ const Drawer = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
68
68
|
"transitionDuration"
|
|
69
69
|
]);
|
|
70
70
|
const anchorInvariant = oppositeDirection[anchorProp];
|
|
71
|
-
const [keepMounted, setKeepMounted] = useState(open);
|
|
72
71
|
return /* @__PURE__ */ React.createElement(
|
|
73
72
|
Modal,
|
|
74
73
|
__spreadValues({
|
|
@@ -78,17 +77,14 @@ const Drawer = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
78
77
|
hideBackdrop,
|
|
79
78
|
ref,
|
|
80
79
|
className: clsx(prefixCls, className),
|
|
81
|
-
disablePortal
|
|
82
|
-
keepMounted
|
|
80
|
+
disablePortal
|
|
83
81
|
}, others),
|
|
84
82
|
/* @__PURE__ */ React.createElement(
|
|
85
83
|
Slide,
|
|
86
84
|
__spreadValues({
|
|
87
85
|
in: open,
|
|
88
86
|
direction: anchorInvariant,
|
|
89
|
-
timeout: transitionDuration
|
|
90
|
-
onEnter: () => setKeepMounted(true),
|
|
91
|
-
onExited: () => setKeepMounted(false)
|
|
87
|
+
timeout: transitionDuration
|
|
92
88
|
}, SlideProps),
|
|
93
89
|
/* @__PURE__ */ React.createElement(
|
|
94
90
|
"div",
|
|
@@ -97,7 +93,11 @@ const Drawer = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
97
93
|
`${prefixCls}-content`,
|
|
98
94
|
`${prefixCls}-content-${anchorProp}`,
|
|
99
95
|
contentProps == null ? void 0 : contentProps.className
|
|
100
|
-
)
|
|
96
|
+
),
|
|
97
|
+
role: "dialog",
|
|
98
|
+
"aria-modal": "true",
|
|
99
|
+
"aria-label": (contentProps == null ? void 0 : contentProps["aria-label"]) || "Drawer",
|
|
100
|
+
tabIndex: -1
|
|
101
101
|
}),
|
|
102
102
|
children
|
|
103
103
|
)
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import React, { useState } from "react";
|
|
21
|
+
import Drawer from "../../Drawer";
|
|
22
|
+
const basicDrawerDemo = () => {
|
|
23
|
+
return /* @__PURE__ */ React.createElement(Drawer, { open: true, anchor: "bottom", "aria-label": "\u57FA\u7840\u62BD\u5C49", disablePortal: true }, /* @__PURE__ */ React.createElement("div", { style: { padding: "20px", minHeight: "200px" } }, /* @__PURE__ */ React.createElement("h3", null, "\u57FA\u7840\u62BD\u5C49\u5185\u5BB9"), /* @__PURE__ */ React.createElement("p", null, "\u8FD9\u662F\u4E00\u4E2A\u4ECE\u5E95\u90E8\u5F39\u51FA\u7684\u62BD\u5C49"), /* @__PURE__ */ React.createElement("button", { type: "button" }, "\u786E\u8BA4"), /* @__PURE__ */ React.createElement("button", { type: "button" }, "\u53D6\u6D88")));
|
|
24
|
+
};
|
|
25
|
+
const leftDrawerDemo = () => {
|
|
26
|
+
return /* @__PURE__ */ React.createElement(Drawer, { open: true, anchor: "left", "aria-label": "\u5DE6\u4FA7\u62BD\u5C49", disablePortal: true }, /* @__PURE__ */ React.createElement("div", { style: { padding: "20px", width: "300px", minHeight: "100vh" } }, /* @__PURE__ */ React.createElement("h3", null, "\u5DE6\u4FA7\u62BD\u5C49"), /* @__PURE__ */ React.createElement("ul", null, /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("a", { href: "#item1" }, "\u83DC\u5355\u9879 1")), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("a", { href: "#item2" }, "\u83DC\u5355\u9879 2")), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("a", { href: "#item3" }, "\u83DC\u5355\u9879 3")))));
|
|
27
|
+
};
|
|
28
|
+
const rightDrawerDemo = () => {
|
|
29
|
+
return /* @__PURE__ */ React.createElement(Drawer, { open: true, anchor: "right", "aria-label": "\u53F3\u4FA7\u62BD\u5C49", disablePortal: true }, /* @__PURE__ */ React.createElement("div", { style: { padding: "20px", width: "300px", minHeight: "100vh" } }, /* @__PURE__ */ React.createElement("h3", null, "\u53F3\u4FA7\u62BD\u5C49"), /* @__PURE__ */ React.createElement("form", null, /* @__PURE__ */ React.createElement("div", { style: { marginBottom: "10px" } }, /* @__PURE__ */ React.createElement("label", { htmlFor: "name" }, "\u59D3\u540D:"), /* @__PURE__ */ React.createElement("input", { id: "name", type: "text" })), /* @__PURE__ */ React.createElement("div", { style: { marginBottom: "10px" } }, /* @__PURE__ */ React.createElement("label", { htmlFor: "email" }, "\u90AE\u7BB1:"), /* @__PURE__ */ React.createElement("input", { id: "email", type: "email" })), /* @__PURE__ */ React.createElement("button", { type: "submit" }, "\u63D0\u4EA4"))));
|
|
30
|
+
};
|
|
31
|
+
const topDrawerDemo = () => {
|
|
32
|
+
return /* @__PURE__ */ React.createElement(Drawer, { open: true, anchor: "top", "aria-label": "\u9876\u90E8\u62BD\u5C49", disablePortal: true }, /* @__PURE__ */ React.createElement("div", { style: { padding: "20px", minHeight: "200px" } }, /* @__PURE__ */ React.createElement("h3", null, "\u9876\u90E8\u62BD\u5C49"), /* @__PURE__ */ React.createElement("p", null, "\u8FD9\u662F\u4E00\u4E2A\u4ECE\u9876\u90E8\u5F39\u51FA\u7684\u62BD\u5C49"), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("button", { type: "button" }, "\u64CD\u4F5C\u6309\u94AE 1"), /* @__PURE__ */ React.createElement("button", { type: "button" }, "\u64CD\u4F5C\u6309\u94AE 2"))));
|
|
33
|
+
};
|
|
34
|
+
const noBackdropDrawerDemo = () => {
|
|
35
|
+
return /* @__PURE__ */ React.createElement(
|
|
36
|
+
Drawer,
|
|
37
|
+
{
|
|
38
|
+
open: true,
|
|
39
|
+
anchor: "bottom",
|
|
40
|
+
hideBackdrop: true,
|
|
41
|
+
"aria-label": "\u65E0\u80CC\u666F\u906E\u7F69\u62BD\u5C49",
|
|
42
|
+
disablePortal: true
|
|
43
|
+
},
|
|
44
|
+
/* @__PURE__ */ React.createElement("div", { style: { padding: "20px", minHeight: "150px" } }, /* @__PURE__ */ React.createElement("h3", null, "\u65E0\u80CC\u666F\u906E\u7F69"), /* @__PURE__ */ React.createElement("p", null, "\u8FD9\u4E2A\u62BD\u5C49\u6CA1\u6709\u80CC\u666F\u906E\u7F69"), /* @__PURE__ */ React.createElement("button", { type: "button" }, "\u5173\u95ED"))
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
const interactiveDrawerDemo = () => {
|
|
48
|
+
const InteractiveDrawerDemo = () => {
|
|
49
|
+
const [open, setOpen] = useState(true);
|
|
50
|
+
const [formData, setFormData] = useState({ name: "", message: "" });
|
|
51
|
+
const handleClose = () => {
|
|
52
|
+
setOpen(false);
|
|
53
|
+
};
|
|
54
|
+
const handleSubmit = (e) => {
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
console.log("\u63D0\u4EA4\u8868\u5355:", formData);
|
|
57
|
+
handleClose();
|
|
58
|
+
};
|
|
59
|
+
if (!open) {
|
|
60
|
+
return /* @__PURE__ */ React.createElement("button", { type: "button", onClick: () => setOpen(true) }, "\u91CD\u65B0\u6253\u5F00\u62BD\u5C49");
|
|
61
|
+
}
|
|
62
|
+
return /* @__PURE__ */ React.createElement(
|
|
63
|
+
Drawer,
|
|
64
|
+
{
|
|
65
|
+
open,
|
|
66
|
+
anchor: "right",
|
|
67
|
+
onClose: handleClose,
|
|
68
|
+
"aria-label": "\u53EF\u4EA4\u4E92\u62BD\u5C49",
|
|
69
|
+
disablePortal: true
|
|
70
|
+
},
|
|
71
|
+
/* @__PURE__ */ React.createElement("div", { style: { padding: "20px", width: "350px" } }, /* @__PURE__ */ React.createElement("h3", null, "\u53CD\u9988\u8868\u5355"), /* @__PURE__ */ React.createElement("form", { onSubmit: handleSubmit }, /* @__PURE__ */ React.createElement("div", { style: { marginBottom: "15px" } }, /* @__PURE__ */ React.createElement("label", { htmlFor: "feedback-name" }, "\u59D3\u540D:"), /* @__PURE__ */ React.createElement(
|
|
72
|
+
"input",
|
|
73
|
+
{
|
|
74
|
+
id: "feedback-name",
|
|
75
|
+
type: "text",
|
|
76
|
+
value: formData.name,
|
|
77
|
+
onChange: (e) => setFormData(__spreadProps(__spreadValues({}, formData), { name: e.target.value })),
|
|
78
|
+
required: true,
|
|
79
|
+
"aria-required": "true"
|
|
80
|
+
}
|
|
81
|
+
)), /* @__PURE__ */ React.createElement("div", { style: { marginBottom: "15px" } }, /* @__PURE__ */ React.createElement("label", { htmlFor: "feedback-message" }, "\u53CD\u9988\u5185\u5BB9:"), /* @__PURE__ */ React.createElement(
|
|
82
|
+
"textarea",
|
|
83
|
+
{
|
|
84
|
+
id: "feedback-message",
|
|
85
|
+
value: formData.message,
|
|
86
|
+
onChange: (e) => setFormData(__spreadProps(__spreadValues({}, formData), { message: e.target.value })),
|
|
87
|
+
required: true,
|
|
88
|
+
"aria-required": "true",
|
|
89
|
+
rows: 4
|
|
90
|
+
}
|
|
91
|
+
)), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("button", { type: "submit" }, "\u63D0\u4EA4\u53CD\u9988"), /* @__PURE__ */ React.createElement("button", { type: "button", onClick: handleClose }, "\u53D6\u6D88"))))
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
return /* @__PURE__ */ React.createElement(InteractiveDrawerDemo, null);
|
|
95
|
+
};
|
|
96
|
+
var A11yDemos_default = {
|
|
97
|
+
basicDrawerDemo,
|
|
98
|
+
leftDrawerDemo,
|
|
99
|
+
rightDrawerDemo,
|
|
100
|
+
topDrawerDemo,
|
|
101
|
+
noBackdropDrawerDemo,
|
|
102
|
+
interactiveDrawerDemo
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
basicDrawerDemo,
|
|
106
|
+
A11yDemos_default as default,
|
|
107
|
+
interactiveDrawerDemo,
|
|
108
|
+
leftDrawerDemo,
|
|
109
|
+
noBackdropDrawerDemo,
|
|
110
|
+
rightDrawerDemo,
|
|
111
|
+
topDrawerDemo
|
|
112
|
+
};
|
package/es/Fade/Fade.js
CHANGED
|
@@ -78,7 +78,7 @@ const Fade = /* @__PURE__ */ React.forwardRef(
|
|
|
78
78
|
ref: nodeRef
|
|
79
79
|
}),
|
|
80
80
|
(state, childProps) => {
|
|
81
|
-
const transition = transitions.create(
|
|
81
|
+
const transition = state === "entering" || state === "exiting" ? transitions.create(
|
|
82
82
|
"opacity",
|
|
83
83
|
getTransitionProps(
|
|
84
84
|
{ timeout, style, easing: easingProp, delay },
|
|
@@ -86,7 +86,7 @@ const Fade = /* @__PURE__ */ React.forwardRef(
|
|
|
86
86
|
mode: state
|
|
87
87
|
}
|
|
88
88
|
)
|
|
89
|
-
);
|
|
89
|
+
) : "none";
|
|
90
90
|
return React.cloneElement(children, __spreadValues({
|
|
91
91
|
style: __spreadValues(__spreadValues({
|
|
92
92
|
visibility: state === "exited" ? "hidden" : "visible",
|