@bifrostui/react 2.0.0-alpha.0 → 2.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.js +2 -1
- package/dist/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -0
- package/dist/Alert/__tests__/fixtures/A11yDemos.js +143 -0
- package/dist/Alert/index.css +4 -4
- package/dist/Avatar/AvatarGroup.css +8 -8
- package/dist/Avatar/index.css +8 -8
- package/dist/Backdrop/Backdrop.js +3 -2
- package/dist/Backdrop/Backdrop.types.d.ts +4 -0
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.js +51 -0
- package/dist/Backdrop/index.css +2 -2
- package/dist/Badge/Badge.js +38 -11
- package/dist/Badge/Badge.types.d.ts +30 -1
- package/dist/Badge/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/Badge/__tests__/fixtures/A11yDemos.js +110 -0
- package/dist/Badge/hooks/useBadgeA11y.d.ts +23 -0
- package/dist/Badge/hooks/useBadgeA11y.js +76 -0
- package/dist/Badge/hooks/useBadgeDisplay.d.ts +16 -0
- package/dist/Badge/hooks/useBadgeDisplay.js +56 -0
- package/dist/Button/Button.js +2 -1
- package/dist/Button/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/dist/Button/__tests__/fixtures/A11yDemos.js +81 -0
- package/dist/Button/index.css +4 -5
- package/dist/CSSTransition/CSSTransition.d.ts +4 -0
- package/dist/CSSTransition/CSSTransition.js +177 -0
- package/dist/CSSTransition/CSSTransition.types.d.ts +13 -0
- package/dist/CSSTransition/CSSTransition.types.js +15 -0
- package/dist/CSSTransition/demo/CSSTransitionDemo.d.ts +4 -0
- package/dist/CSSTransition/demo/CSSTransitionDemo.js +76 -0
- package/dist/CSSTransition/demo/index.css +25 -0
- package/dist/CSSTransition/index.d.ts +2 -0
- package/dist/CSSTransition/index.js +41 -0
- package/dist/Calendar/Calendar.js +131 -34
- package/dist/Calendar/Calendar.types.d.ts +16 -1
- package/dist/Calendar/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/Calendar/__tests__/fixtures/A11yDemos.js +41 -0
- package/dist/Calendar/index.css +52 -9
- package/dist/Calendar/utils.d.ts +7 -3
- package/dist/Calendar/utils.js +33 -23
- package/dist/Checkbox/Checkbox.js +5 -4
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/CitySelector/CitySelector.types.d.ts +0 -1
- package/dist/Collapse/Collapse.d.ts +1 -1
- package/dist/Collapse/Collapse.js +26 -12
- package/dist/Collapse/Collapse.miniapp.d.ts +10 -0
- package/dist/Collapse/Collapse.miniapp.js +255 -0
- package/dist/Collapse/index.css +40 -1
- package/dist/CollapsePanel/index.css +1 -1
- package/dist/Countdown/Countdown.js +61 -21
- package/dist/Countdown/Countdown.types.d.ts +19 -15
- package/dist/Countdown/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/dist/Countdown/__tests__/fixtures/A11yDemos.js +107 -0
- package/dist/Countdown/index.css +11 -0
- package/dist/DatePicker/DatePicker.d.ts +4 -0
- package/dist/DatePicker/DatePicker.js +335 -0
- package/dist/DatePicker/DatePicker.types.d.ts +36 -0
- package/dist/DatePicker/DatePicker.types.js +15 -0
- package/dist/DatePicker/constants.d.ts +9 -0
- package/dist/DatePicker/constants.js +37 -0
- package/dist/DatePicker/index.d.ts +3 -0
- package/dist/DatePicker/index.js +44 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.js +280 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.types.d.ts +163 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.types.js +15 -0
- package/dist/DesktopDatePicker/deskTopPickerContainer.css +100 -0
- package/dist/DesktopDatePicker/index.css +161 -0
- package/dist/DesktopDatePicker/index.d.ts +2 -0
- package/dist/DesktopDatePicker/index.js +41 -0
- package/dist/DesktopDatePicker/useGetDatePickerContent.d.ts +6 -0
- package/dist/DesktopDatePicker/useGetDatePickerContent.js +343 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +5 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.js +322 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +163 -0
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.js +15 -0
- package/dist/DesktopDateTimePicker/index.css +66 -0
- package/dist/DesktopDateTimePicker/index.d.ts +2 -0
- package/dist/DesktopDateTimePicker/index.js +41 -0
- package/dist/DesktopPicker/DesktopPicker.d.ts +5 -0
- package/dist/DesktopPicker/DesktopPicker.js +243 -0
- package/dist/DesktopPicker/DesktopPicker.types.d.ts +61 -0
- package/dist/DesktopPicker/DesktopPicker.types.js +15 -0
- package/dist/DesktopPicker/index.css +39 -0
- package/dist/DesktopPicker/index.d.ts +2 -0
- package/dist/DesktopPicker/index.js +41 -0
- package/dist/DesktopPicker/utils/calcAfterMounted.d.ts +2 -0
- package/dist/{Tabs/utils/bound.js → DesktopPicker/utils/calcAfterMounted.js} +7 -14
- package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +2 -0
- package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.js +38 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.d.ts +5 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.js +288 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.types.d.ts +182 -0
- package/dist/DesktopTimePicker/DesktopTimePicker.types.js +15 -0
- package/dist/DesktopTimePicker/DesktopTimePickerList.d.ts +4 -0
- package/dist/DesktopTimePicker/DesktopTimePickerList.js +111 -0
- package/dist/DesktopTimePicker/index.css +170 -0
- package/dist/DesktopTimePicker/index.d.ts +2 -0
- package/dist/DesktopTimePicker/index.js +41 -0
- package/dist/DesktopTimePicker/useGetTimePickerContent.d.ts +6 -0
- package/dist/DesktopTimePicker/useGetTimePickerContent.js +249 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.d.ts +2 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.js +27 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +2 -0
- package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.js +51 -0
- package/dist/DesktopTimePicker/utils/utils.d.ts +28 -0
- package/dist/DesktopTimePicker/utils/utils.js +408 -0
- package/dist/Dialog/Dialog.d.ts +5 -2
- package/dist/Dialog/Dialog.js +56 -34
- package/dist/Dialog/Dialog.types.d.ts +50 -22
- package/dist/Dialog/FunctionalDialog.d.ts +10 -3
- package/dist/Dialog/FunctionalDialog.js +102 -80
- package/dist/Dialog/__tests__/fixtures/A11yDemos.d.ts +9 -0
- package/dist/Dialog/__tests__/fixtures/A11yDemos.js +78 -0
- package/dist/Dialog/index.css +19 -19
- package/dist/Dialog/index.d.ts +4 -1
- package/dist/Dialog/index.js +9 -2
- package/dist/Drawer/Drawer.js +7 -7
- package/dist/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Drawer/__tests__/fixtures/A11yDemos.js +148 -0
- package/dist/Fade/Fade.js +2 -2
- package/dist/Fade/Fade.miniapp.d.ts +10 -0
- package/dist/Fade/Fade.miniapp.js +200 -0
- package/dist/Fade/index.css +18 -0
- package/dist/IconButton/IconButton.js +23 -8
- package/dist/IconButton/IconButton.types.d.ts +35 -1
- package/dist/IconButton/index.css +3 -0
- package/dist/Image/Image.js +17 -10
- package/dist/Image/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Image/__tests__/fixtures/A11yDemos.js +130 -0
- package/dist/Image/index.css +3 -8
- package/dist/Input/Input.js +5 -3
- package/dist/Input/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Input/__tests__/fixtures/A11yDemos.js +81 -0
- package/dist/Input/index.css +8 -8
- package/dist/ItemSelector/ItemSelector.types.d.ts +0 -1
- package/dist/Modal/Modal.js +47 -47
- package/dist/Modal/Modal.miniapp.d.ts +2 -2
- package/dist/Modal/Modal.miniapp.js +48 -32
- package/dist/Modal/Modal.types.d.ts +26 -2
- package/dist/Modal/ModalManager.d.ts +21 -0
- package/dist/Modal/ModalManager.js +238 -0
- package/dist/Modal/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/dist/Modal/__tests__/fixtures/A11yDemos.js +52 -0
- package/dist/Modal/index.css +1 -1
- package/dist/Modal/index.d.ts +3 -0
- package/dist/Modal/index.js +9 -1
- package/dist/Modal/useModal.d.ts +24 -0
- package/dist/Modal/useModal.js +190 -0
- package/dist/NavBar/index.css +2 -2
- package/dist/Picker/Picker.css +4 -0
- package/dist/Picker/Picker.js +72 -18
- package/dist/Picker/Picker.types.d.ts +15 -2
- package/dist/Picker/PickerPanel.css +4 -0
- package/dist/Picker/PickerPanel.js +52 -41
- package/dist/Picker/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/Picker/__tests__/fixtures/A11yDemos.js +79 -0
- package/dist/Picker/index.css +8 -0
- package/dist/Picker/utils.d.ts +8 -5
- package/dist/Picker/utils.js +9 -12
- package/dist/Popover/Popover.js +123 -91
- package/dist/Popover/Popover.types.d.ts +44 -7
- package/dist/Popover/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/Popover/__tests__/fixtures/A11yDemos.js +175 -0
- package/dist/Popover/hooks/index.d.ts +8 -0
- package/dist/Popover/hooks/index.js +36 -0
- package/dist/Popover/hooks/usePopoverA11y.d.ts +14 -0
- package/dist/Popover/hooks/usePopoverA11y.js +66 -0
- package/dist/Popover/hooks/usePopoverEvents.d.ts +21 -0
- package/dist/Popover/hooks/usePopoverEvents.js +150 -0
- package/dist/Popover/hooks/usePopoverPosition.d.ts +17 -0
- package/dist/Popover/hooks/usePopoverPosition.js +124 -0
- package/dist/Popover/hooks/usePopoverState.d.ts +16 -0
- package/dist/Popover/hooks/usePopoverState.js +54 -0
- package/dist/Portal/Portal.miniapp.js +20 -11
- package/dist/Portal/Portal.types.d.ts +1 -1
- package/dist/Portal/PortalCore.js +2 -2
- package/dist/Progress/Progress.js +61 -6
- package/dist/Progress/Progress.types.d.ts +44 -0
- package/dist/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Progress/__tests__/fixtures/A11yDemos.js +100 -0
- package/dist/Radio/Radio.js +5 -4
- package/dist/Radio/RadioGroup.js +1 -1
- package/dist/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/Radio/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Rating/index.css +8 -12
- package/dist/ScrollView/ScrollView.js +48 -196
- package/dist/ScrollView/ScrollView.types.d.ts +120 -86
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.d.ts +7 -0
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.js +319 -0
- package/dist/ScrollView/useScrollView.d.ts +10 -0
- package/dist/ScrollView/useScrollView.js +300 -0
- package/dist/Select/Select.js +73 -39
- package/dist/Select/Select.types.d.ts +2 -2
- package/dist/Select/SelectOption.js +5 -1
- package/dist/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Select/__tests__/fixtures/A11yDemos.js +154 -0
- package/dist/Select/index.css +12 -8
- package/dist/Select/selectContext.d.ts +0 -1
- package/dist/Slide/Slide.js +2 -2
- package/dist/Slide/Slide.miniapp.d.ts +14 -0
- package/dist/Slide/Slide.miniapp.js +213 -0
- package/dist/Slide/index.css +72 -0
- package/dist/Slider/Slider.js +13 -5
- package/dist/Stack/demo/index.css +2 -0
- package/dist/SwipeAction/SwipeAction.css +79 -0
- package/dist/SwipeAction/SwipeAction.d.ts +5 -0
- package/dist/SwipeAction/SwipeAction.js +349 -0
- package/dist/SwipeAction/SwipeAction.types.d.ts +75 -0
- package/dist/SwipeAction/SwipeAction.types.js +15 -0
- package/dist/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/dist/SwipeAction/SwipeActionContext.js +30 -0
- package/dist/SwipeAction/SwipeActionItem.css +31 -0
- package/dist/SwipeAction/SwipeActionItem.d.ts +5 -0
- package/dist/SwipeAction/SwipeActionItem.js +105 -0
- package/dist/SwipeAction/constants.d.ts +9 -0
- package/dist/SwipeAction/constants.js +39 -0
- package/dist/SwipeAction/index.css +110 -0
- package/dist/SwipeAction/index.d.ts +5 -0
- package/dist/SwipeAction/index.js +50 -0
- package/dist/Swiper/Swiper.js +18 -4
- package/dist/Switch/Switch.js +5 -4
- package/dist/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/Switch/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Tabs/Tab.js +36 -21
- package/dist/Tabs/Tab.types.d.ts +1 -1
- package/dist/Tabs/TabPanel.d.ts +1 -1
- package/dist/Tabs/TabPanel.js +9 -5
- package/dist/Tabs/Tabs.css +2 -2
- package/dist/Tabs/Tabs.js +87 -64
- package/dist/Tabs/Tabs.types.d.ts +1 -1
- package/dist/Tabs/TabsContext.d.ts +4 -5
- package/dist/Tabs/TabsContext.js +3 -1
- package/dist/Tabs/index.css +2 -2
- package/dist/Tabs/utils/scroll.d.ts +2 -0
- package/dist/Tabs/utils/scroll.js +55 -0
- package/dist/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/Tag/__tests__/fixtures/A11yDemos.js +196 -0
- package/dist/TextArea/TextArea.js +50 -7
- package/dist/TextArea/TextArea.types.d.ts +28 -0
- package/dist/TextArea/__tests__/fixtures/A11yDemos.d.ts +19 -0
- package/dist/TextArea/__tests__/fixtures/A11yDemos.js +91 -0
- package/dist/TextArea/index.css +4 -4
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +2 -2
- package/dist/ThemeProvider/ThemeProvider.types.js +0 -12
- package/dist/Toast/FunctionalToast.d.ts +2 -2
- package/dist/Toast/FunctionalToast.js +180 -85
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/Toast.js +69 -28
- package/dist/Toast/Toast.types.d.ts +13 -10
- package/dist/Toast/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/Toast/__tests__/fixtures/A11yDemos.js +54 -0
- package/dist/Toast/index.css +0 -1
- package/dist/Tooltip/Tooltip.js +63 -107
- package/dist/Tooltip/Tooltip.types.d.ts +94 -43
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.js +100 -0
- package/dist/Tooltip/useTooltip.d.ts +29 -0
- package/dist/Tooltip/useTooltip.js +313 -0
- package/dist/Transition/TransitionCore.js +30 -25
- package/dist/TransitionGroup/TransitionGroup.d.ts +7 -0
- package/dist/TransitionGroup/TransitionGroup.js +132 -0
- package/dist/TransitionGroup/TransitionGroup.types.d.ts +47 -0
- package/dist/TransitionGroup/TransitionGroup.types.js +15 -0
- package/dist/TransitionGroup/demo/TransitionGroupDemo.d.ts +4 -0
- package/dist/TransitionGroup/demo/TransitionGroupDemo.js +68 -0
- package/dist/TransitionGroup/demo/index.css +33 -0
- package/dist/TransitionGroup/index.d.ts +2 -0
- package/dist/TransitionGroup/index.js +41 -0
- package/dist/TransitionGroup/utils/childMapping.d.ts +27 -0
- package/dist/TransitionGroup/utils/childMapping.js +119 -0
- package/dist/_.._/benchmarks/components/Button.js +41 -0
- package/dist/_.._/benchmarks/components/Input.js +45 -0
- package/dist/_.._/benchmarks/components/Tabs.js +50 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +17 -1
- package/dist/locales/base.d.ts +40 -1
- package/dist/locales/en-US.js +54 -2
- package/dist/locales/zh-CN.js +56 -1
- package/dist/locales/zh-TW.js +56 -1
- package/es/Alert/Alert.js +2 -1
- package/es/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -0
- package/es/Alert/__tests__/fixtures/A11yDemos.js +107 -0
- package/es/Alert/index.css +4 -4
- package/es/Avatar/AvatarGroup.css +8 -8
- package/es/Avatar/index.css +8 -8
- package/es/Backdrop/Backdrop.js +3 -2
- package/es/Backdrop/Backdrop.types.d.ts +4 -0
- package/es/Backdrop/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/es/Backdrop/__tests__/fixtures/A11yDemos.js +17 -0
- package/es/Backdrop/index.css +2 -2
- package/es/Badge/Badge.js +38 -11
- package/es/Badge/Badge.types.d.ts +30 -1
- package/es/Badge/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/Badge/__tests__/fixtures/A11yDemos.js +70 -0
- package/es/Badge/hooks/useBadgeA11y.d.ts +23 -0
- package/es/Badge/hooks/useBadgeA11y.js +53 -0
- package/es/Badge/hooks/useBadgeDisplay.d.ts +16 -0
- package/es/Badge/hooks/useBadgeDisplay.js +33 -0
- package/es/Button/Button.js +2 -1
- package/es/Button/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/es/Button/__tests__/fixtures/A11yDemos.js +42 -0
- package/es/Button/index.css +4 -5
- package/es/CSSTransition/CSSTransition.d.ts +4 -0
- package/es/CSSTransition/CSSTransition.js +153 -0
- package/es/CSSTransition/CSSTransition.types.d.ts +13 -0
- package/es/CSSTransition/CSSTransition.types.js +1 -0
- package/es/CSSTransition/demo/CSSTransitionDemo.d.ts +4 -0
- package/es/CSSTransition/demo/CSSTransitionDemo.js +47 -0
- package/es/CSSTransition/demo/index.css +25 -0
- package/es/CSSTransition/index.d.ts +2 -0
- package/es/CSSTransition/index.js +6 -0
- package/es/Calendar/Calendar.js +131 -34
- package/es/Calendar/Calendar.types.d.ts +16 -1
- package/es/Calendar/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/Calendar/__tests__/fixtures/A11yDemos.js +8 -0
- package/es/Calendar/index.css +52 -9
- package/es/Calendar/utils.d.ts +7 -3
- package/es/Calendar/utils.js +29 -20
- package/es/Checkbox/Checkbox.js +5 -4
- package/es/Checkbox/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/Checkbox/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/CitySelector/CitySelector.types.d.ts +0 -1
- package/es/Collapse/Collapse.d.ts +1 -1
- package/es/Collapse/Collapse.js +26 -12
- package/es/Collapse/Collapse.miniapp.d.ts +10 -0
- package/es/Collapse/Collapse.miniapp.js +236 -0
- package/es/Collapse/index.css +40 -1
- package/es/CollapsePanel/index.css +1 -1
- package/es/Countdown/Countdown.js +61 -21
- package/es/Countdown/Countdown.types.d.ts +19 -15
- package/es/Countdown/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/es/Countdown/__tests__/fixtures/A11yDemos.js +68 -0
- package/es/Countdown/index.css +11 -0
- package/es/DatePicker/DatePicker.d.ts +4 -0
- package/es/DatePicker/DatePicker.js +308 -0
- package/es/DatePicker/DatePicker.types.d.ts +36 -0
- package/es/DatePicker/DatePicker.types.js +1 -0
- package/es/DatePicker/constants.d.ts +9 -0
- package/es/DatePicker/constants.js +14 -0
- package/es/DatePicker/index.d.ts +3 -0
- package/es/DatePicker/index.js +8 -0
- package/es/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/es/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/es/DesktopDatePicker/DesktopDatePicker.js +253 -0
- package/es/DesktopDatePicker/DesktopDatePicker.types.d.ts +163 -0
- package/es/DesktopDatePicker/DesktopDatePicker.types.js +1 -0
- package/es/DesktopDatePicker/deskTopPickerContainer.css +100 -0
- package/es/DesktopDatePicker/index.css +161 -0
- package/es/DesktopDatePicker/index.d.ts +2 -0
- package/es/DesktopDatePicker/index.js +6 -0
- package/es/DesktopDatePicker/useGetDatePickerContent.d.ts +6 -0
- package/es/DesktopDatePicker/useGetDatePickerContent.js +316 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +5 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.js +295 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +163 -0
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.js +1 -0
- package/es/DesktopDateTimePicker/index.css +66 -0
- package/es/DesktopDateTimePicker/index.d.ts +2 -0
- package/es/DesktopDateTimePicker/index.js +9 -0
- package/es/DesktopPicker/DesktopPicker.d.ts +5 -0
- package/es/DesktopPicker/DesktopPicker.js +226 -0
- package/es/DesktopPicker/DesktopPicker.types.d.ts +61 -0
- package/es/DesktopPicker/DesktopPicker.types.js +1 -0
- package/es/DesktopPicker/index.css +39 -0
- package/es/DesktopPicker/index.d.ts +2 -0
- package/es/DesktopPicker/index.js +6 -0
- package/es/DesktopPicker/utils/calcAfterMounted.d.ts +2 -0
- package/es/DesktopPicker/utils/calcAfterMounted.js +6 -0
- package/es/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +2 -0
- package/es/DesktopPicker/utils/calcAfterMounted.miniapp.js +9 -0
- package/es/DesktopTimePicker/DesktopTimePicker.d.ts +5 -0
- package/es/DesktopTimePicker/DesktopTimePicker.js +261 -0
- package/es/DesktopTimePicker/DesktopTimePicker.types.d.ts +182 -0
- package/es/DesktopTimePicker/DesktopTimePicker.types.js +1 -0
- package/es/DesktopTimePicker/DesktopTimePickerList.d.ts +4 -0
- package/es/DesktopTimePicker/DesktopTimePickerList.js +84 -0
- package/es/DesktopTimePicker/index.css +170 -0
- package/es/DesktopTimePicker/index.d.ts +2 -0
- package/es/DesktopTimePicker/index.js +6 -0
- package/es/DesktopTimePicker/useGetTimePickerContent.d.ts +6 -0
- package/es/DesktopTimePicker/useGetTimePickerContent.js +226 -0
- package/es/DesktopTimePicker/utils/scrollUtil.d.ts +2 -0
- package/es/DesktopTimePicker/utils/scrollUtil.js +8 -0
- package/es/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +2 -0
- package/es/DesktopTimePicker/utils/scrollUtil.miniapp.js +22 -0
- package/es/DesktopTimePicker/utils/utils.d.ts +28 -0
- package/es/DesktopTimePicker/utils/utils.js +365 -0
- package/es/Dialog/Dialog.d.ts +5 -2
- package/es/Dialog/Dialog.js +57 -35
- package/es/Dialog/Dialog.types.d.ts +50 -22
- package/es/Dialog/FunctionalDialog.d.ts +10 -3
- package/es/Dialog/FunctionalDialog.js +106 -84
- package/es/Dialog/__tests__/fixtures/A11yDemos.d.ts +9 -0
- package/es/Dialog/__tests__/fixtures/A11yDemos.js +43 -0
- package/es/Dialog/index.css +19 -19
- package/es/Dialog/index.d.ts +4 -1
- package/es/Dialog/index.js +10 -3
- package/es/Drawer/Drawer.js +8 -8
- package/es/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Drawer/__tests__/fixtures/A11yDemos.js +112 -0
- package/es/Fade/Fade.js +2 -2
- package/es/Fade/Fade.miniapp.d.ts +10 -0
- package/es/Fade/Fade.miniapp.js +179 -0
- package/es/Fade/index.css +18 -0
- package/es/IconButton/IconButton.js +23 -8
- package/es/IconButton/IconButton.types.d.ts +35 -1
- package/es/IconButton/index.css +3 -0
- package/es/Image/Image.js +17 -10
- package/es/Image/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Image/__tests__/fixtures/A11yDemos.js +92 -0
- package/es/Image/index.css +3 -8
- package/es/Input/Input.js +5 -3
- package/es/Input/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Input/__tests__/fixtures/A11yDemos.js +43 -0
- package/es/Input/index.css +8 -8
- package/es/ItemSelector/ItemSelector.types.d.ts +0 -1
- package/es/Modal/Modal.js +48 -48
- package/es/Modal/Modal.miniapp.d.ts +2 -2
- package/es/Modal/Modal.miniapp.js +49 -33
- package/es/Modal/Modal.types.d.ts +26 -2
- package/es/Modal/ModalManager.d.ts +21 -0
- package/es/Modal/ModalManager.js +214 -0
- package/es/Modal/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/es/Modal/__tests__/fixtures/A11yDemos.js +18 -0
- package/es/Modal/index.css +1 -1
- package/es/Modal/index.d.ts +3 -0
- package/es/Modal/index.js +6 -1
- package/es/Modal/useModal.d.ts +24 -0
- package/es/Modal/useModal.js +169 -0
- package/es/NavBar/index.css +2 -2
- package/es/Picker/Picker.css +4 -0
- package/es/Picker/Picker.js +72 -18
- package/es/Picker/Picker.types.d.ts +15 -2
- package/es/Picker/PickerPanel.css +4 -0
- package/es/Picker/PickerPanel.js +52 -41
- package/es/Picker/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/Picker/__tests__/fixtures/A11yDemos.js +46 -0
- package/es/Picker/index.css +8 -0
- package/es/Picker/utils.d.ts +8 -5
- package/es/Picker/utils.js +9 -12
- package/es/Popover/Popover.js +130 -99
- package/es/Popover/Popover.types.d.ts +44 -7
- package/es/Popover/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/Popover/__tests__/fixtures/A11yDemos.js +135 -0
- package/es/Popover/hooks/index.d.ts +8 -0
- package/es/Popover/hooks/index.js +10 -0
- package/es/Popover/hooks/usePopoverA11y.d.ts +14 -0
- package/es/Popover/hooks/usePopoverA11y.js +43 -0
- package/es/Popover/hooks/usePopoverEvents.d.ts +21 -0
- package/es/Popover/hooks/usePopoverEvents.js +127 -0
- package/es/Popover/hooks/usePopoverPosition.d.ts +17 -0
- package/es/Popover/hooks/usePopoverPosition.js +105 -0
- package/es/Popover/hooks/usePopoverState.d.ts +16 -0
- package/es/Popover/hooks/usePopoverState.js +31 -0
- package/es/Portal/Portal.miniapp.js +21 -12
- package/es/Portal/Portal.types.d.ts +1 -1
- package/es/Portal/PortalCore.js +2 -2
- package/es/Progress/Progress.js +61 -6
- package/es/Progress/Progress.types.d.ts +44 -0
- package/es/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Progress/__tests__/fixtures/A11yDemos.js +62 -0
- package/es/Radio/Radio.js +5 -4
- package/es/Radio/RadioGroup.js +1 -1
- package/es/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/Radio/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Rating/index.css +8 -12
- package/es/ScrollView/ScrollView.js +51 -197
- package/es/ScrollView/ScrollView.types.d.ts +120 -86
- package/es/ScrollView/__tests__/fixtures/A11yDemos.d.ts +7 -0
- package/es/ScrollView/__tests__/fixtures/A11yDemos.js +283 -0
- package/es/ScrollView/useScrollView.d.ts +10 -0
- package/es/ScrollView/useScrollView.js +279 -0
- package/es/Select/Select.js +73 -40
- package/es/Select/Select.types.d.ts +2 -2
- package/es/Select/SelectOption.js +5 -1
- package/es/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Select/__tests__/fixtures/A11yDemos.js +118 -0
- package/es/Select/index.css +12 -8
- package/es/Select/selectContext.d.ts +0 -1
- package/es/Slide/Slide.js +2 -2
- package/es/Slide/Slide.miniapp.d.ts +14 -0
- package/es/Slide/Slide.miniapp.js +192 -0
- package/es/Slide/index.css +72 -0
- package/es/Slider/Slider.js +16 -6
- package/es/Stack/demo/index.css +2 -0
- package/es/SwipeAction/SwipeAction.css +79 -0
- package/es/SwipeAction/SwipeAction.d.ts +5 -0
- package/es/SwipeAction/SwipeAction.js +334 -0
- package/es/SwipeAction/SwipeAction.types.d.ts +75 -0
- package/es/SwipeAction/SwipeAction.types.js +1 -0
- package/es/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/es/SwipeAction/SwipeActionContext.js +11 -0
- package/es/SwipeAction/SwipeActionItem.css +31 -0
- package/es/SwipeAction/SwipeActionItem.d.ts +5 -0
- package/es/SwipeAction/SwipeActionItem.js +78 -0
- package/es/SwipeAction/constants.d.ts +9 -0
- package/es/SwipeAction/constants.js +15 -0
- package/es/SwipeAction/index.css +110 -0
- package/es/SwipeAction/index.d.ts +5 -0
- package/es/SwipeAction/index.js +12 -0
- package/es/Swiper/Swiper.js +18 -4
- package/es/Switch/Switch.js +5 -4
- package/es/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/Switch/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Tabs/Tab.js +36 -21
- package/es/Tabs/Tab.types.d.ts +1 -1
- package/es/Tabs/TabPanel.d.ts +1 -1
- package/es/Tabs/TabPanel.js +8 -4
- package/es/Tabs/Tabs.css +2 -2
- package/es/Tabs/Tabs.js +87 -64
- package/es/Tabs/Tabs.types.d.ts +1 -1
- package/es/Tabs/TabsContext.d.ts +4 -5
- package/es/Tabs/TabsContext.js +3 -1
- package/es/Tabs/index.css +2 -2
- package/es/Tabs/utils/scroll.d.ts +2 -0
- package/es/Tabs/utils/scroll.js +36 -0
- package/es/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/Tag/__tests__/fixtures/A11yDemos.js +160 -0
- package/es/TextArea/TextArea.js +51 -8
- package/es/TextArea/TextArea.types.d.ts +28 -0
- package/es/TextArea/__tests__/fixtures/A11yDemos.d.ts +19 -0
- package/es/TextArea/__tests__/fixtures/A11yDemos.js +54 -0
- package/es/TextArea/index.css +4 -4
- package/es/ThemeProvider/ThemeProvider.types.d.ts +2 -2
- package/es/Toast/FunctionalToast.d.ts +2 -2
- package/es/Toast/FunctionalToast.js +186 -86
- package/es/Toast/Toast.d.ts +2 -2
- package/es/Toast/Toast.js +69 -28
- package/es/Toast/Toast.types.d.ts +13 -10
- package/es/Toast/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/Toast/__tests__/fixtures/A11yDemos.js +21 -0
- package/es/Toast/index.css +0 -1
- package/es/Tooltip/Tooltip.js +64 -114
- package/es/Tooltip/Tooltip.types.d.ts +94 -43
- package/es/Tooltip/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/Tooltip/__tests__/fixtures/A11yDemos.js +60 -0
- package/es/Tooltip/useTooltip.d.ts +29 -0
- package/es/Tooltip/useTooltip.js +290 -0
- package/es/Transition/TransitionCore.js +31 -26
- package/es/TransitionGroup/TransitionGroup.d.ts +7 -0
- package/es/TransitionGroup/TransitionGroup.js +109 -0
- package/es/TransitionGroup/TransitionGroup.types.d.ts +47 -0
- package/es/TransitionGroup/TransitionGroup.types.js +1 -0
- package/es/TransitionGroup/demo/TransitionGroupDemo.d.ts +4 -0
- package/es/TransitionGroup/demo/TransitionGroupDemo.js +39 -0
- package/es/TransitionGroup/demo/index.css +33 -0
- package/es/TransitionGroup/index.d.ts +2 -0
- package/es/TransitionGroup/index.js +6 -0
- package/es/TransitionGroup/utils/childMapping.d.ts +27 -0
- package/es/TransitionGroup/utils/childMapping.js +93 -0
- package/es/_.._/benchmarks/components/Button.js +8 -0
- package/es/_.._/benchmarks/components/Input.js +12 -0
- package/es/_.._/benchmarks/components/Tabs.js +17 -0
- package/es/index.d.ts +8 -0
- package/es/index.js +8 -0
- package/es/locales/base.d.ts +40 -1
- package/es/locales/en-US.js +54 -2
- package/es/locales/zh-CN.js +56 -1
- package/es/locales/zh-TW.js +56 -1
- package/package.json +9 -6
- package/dist/Tabs/utils/bound.d.ts +0 -1
- package/es/Tabs/utils/bound.d.ts +0 -1
- package/es/Tabs/utils/bound.js +0 -13
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
+
var __export = (target, all) => {
|
|
25
|
+
for (var name in all)
|
|
26
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
27
|
+
};
|
|
28
|
+
var __copyProps = (to, from, except, desc) => {
|
|
29
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
30
|
+
for (let key of __getOwnPropNames(from))
|
|
31
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
32
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
33
|
+
}
|
|
34
|
+
return to;
|
|
35
|
+
};
|
|
36
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
37
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
38
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
39
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
40
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
41
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
42
|
+
mod
|
|
43
|
+
));
|
|
44
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
45
|
+
var A11yDemos_exports = {};
|
|
46
|
+
__export(A11yDemos_exports, {
|
|
47
|
+
BasicScrollViewDemo: () => BasicScrollViewDemo,
|
|
48
|
+
BidirectionalScrollDemo: () => BidirectionalScrollDemo,
|
|
49
|
+
ControlledScrollDemo: () => ControlledScrollDemo,
|
|
50
|
+
HorizontalScrollViewDemo: () => HorizontalScrollViewDemo,
|
|
51
|
+
ScrollEventsDemo: () => ScrollEventsDemo,
|
|
52
|
+
ThresholdTestDemo: () => ThresholdTestDemo
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(A11yDemos_exports);
|
|
55
|
+
var import_react = __toESM(require("react"));
|
|
56
|
+
var import_ScrollView = __toESM(require("../../ScrollView"));
|
|
57
|
+
const BasicScrollViewDemo = () => {
|
|
58
|
+
return /* @__PURE__ */ import_react.default.createElement(import_ScrollView.default, { scrollY: true, style: { height: "300px", width: "100%" } }, Array.from({ length: 50 }, (_, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
key: index,
|
|
62
|
+
style: { padding: "10px", borderBottom: "1px solid #eee" }
|
|
63
|
+
},
|
|
64
|
+
"Item ",
|
|
65
|
+
index + 1
|
|
66
|
+
)));
|
|
67
|
+
};
|
|
68
|
+
const HorizontalScrollViewDemo = () => {
|
|
69
|
+
return /* @__PURE__ */ import_react.default.createElement(import_ScrollView.default, { scrollX: true, style: { width: "300px" } }, /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", width: "max-content" } }, Array.from({ length: 20 }, (_, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
key: index,
|
|
73
|
+
style: {
|
|
74
|
+
minWidth: "100px",
|
|
75
|
+
height: "80px",
|
|
76
|
+
margin: "0 5px",
|
|
77
|
+
padding: "10px",
|
|
78
|
+
backgroundColor: "#f0f0f0",
|
|
79
|
+
display: "flex",
|
|
80
|
+
alignItems: "center",
|
|
81
|
+
justifyContent: "center"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"Item ",
|
|
85
|
+
index + 1
|
|
86
|
+
))));
|
|
87
|
+
};
|
|
88
|
+
const ScrollEventsDemo = () => {
|
|
89
|
+
const [scrollInfo, setScrollInfo] = import_react.default.useState({
|
|
90
|
+
scrollTop: 0,
|
|
91
|
+
atTop: false,
|
|
92
|
+
atBottom: false
|
|
93
|
+
});
|
|
94
|
+
const handleScroll = (e) => {
|
|
95
|
+
var _a;
|
|
96
|
+
const event = e;
|
|
97
|
+
const scrollTop = ((_a = event.detail) == null ? void 0 : _a.scrollTop) || 0;
|
|
98
|
+
setScrollInfo((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
99
|
+
scrollTop
|
|
100
|
+
}));
|
|
101
|
+
};
|
|
102
|
+
const handleScrollToUpper = () => {
|
|
103
|
+
setScrollInfo((prev) => __spreadProps(__spreadValues({}, prev), { atTop: true, atBottom: false }));
|
|
104
|
+
};
|
|
105
|
+
const handleScrollToLower = () => {
|
|
106
|
+
setScrollInfo((prev) => __spreadProps(__spreadValues({}, prev), { atTop: false, atBottom: true }));
|
|
107
|
+
};
|
|
108
|
+
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
"data-testid": "scroll-info",
|
|
112
|
+
style: {
|
|
113
|
+
marginBottom: "10px",
|
|
114
|
+
padding: "10px",
|
|
115
|
+
backgroundColor: "#f9f9f9"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
/* @__PURE__ */ import_react.default.createElement("p", null, "Scroll Top: ", scrollInfo.scrollTop),
|
|
119
|
+
/* @__PURE__ */ import_react.default.createElement("p", null, "At Top: ", scrollInfo.atTop ? "Yes" : "No"),
|
|
120
|
+
/* @__PURE__ */ import_react.default.createElement("p", null, "At Bottom: ", scrollInfo.atBottom ? "Yes" : "No")
|
|
121
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
122
|
+
import_ScrollView.default,
|
|
123
|
+
{
|
|
124
|
+
scrollY: true,
|
|
125
|
+
style: { height: "200px", width: "100%" },
|
|
126
|
+
onScroll: handleScroll,
|
|
127
|
+
onScrollToUpper: handleScrollToUpper,
|
|
128
|
+
onScrollToLower: handleScrollToLower,
|
|
129
|
+
upperThreshold: 30,
|
|
130
|
+
lowerThreshold: 30
|
|
131
|
+
},
|
|
132
|
+
Array.from({ length: 30 }, (_, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
133
|
+
"div",
|
|
134
|
+
{
|
|
135
|
+
key: index,
|
|
136
|
+
style: { padding: "15px", borderBottom: "1px solid #ddd" }
|
|
137
|
+
},
|
|
138
|
+
"Scroll Item ",
|
|
139
|
+
index + 1
|
|
140
|
+
))
|
|
141
|
+
));
|
|
142
|
+
};
|
|
143
|
+
const ControlledScrollDemo = () => {
|
|
144
|
+
const [scrollTop, setScrollTop] = import_react.default.useState(0);
|
|
145
|
+
const [scrollIntoView, setScrollIntoView] = import_react.default.useState("");
|
|
146
|
+
const scrollToPosition = (position) => {
|
|
147
|
+
setScrollIntoView("");
|
|
148
|
+
setScrollTop(position);
|
|
149
|
+
};
|
|
150
|
+
const scrollToElement = (elementId) => {
|
|
151
|
+
setScrollTop(0);
|
|
152
|
+
setScrollIntoView(elementId);
|
|
153
|
+
};
|
|
154
|
+
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
|
155
|
+
"div",
|
|
156
|
+
{
|
|
157
|
+
style: {
|
|
158
|
+
marginBottom: "10px",
|
|
159
|
+
padding: "10px",
|
|
160
|
+
backgroundColor: "#f5f5f5"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
164
|
+
"button",
|
|
165
|
+
{
|
|
166
|
+
type: "button",
|
|
167
|
+
onClick: () => scrollToPosition(0),
|
|
168
|
+
style: { marginRight: "5px" }
|
|
169
|
+
},
|
|
170
|
+
"Top"
|
|
171
|
+
),
|
|
172
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
173
|
+
"button",
|
|
174
|
+
{
|
|
175
|
+
type: "button",
|
|
176
|
+
onClick: () => scrollToPosition(200),
|
|
177
|
+
style: { marginRight: "5px" }
|
|
178
|
+
},
|
|
179
|
+
"200px"
|
|
180
|
+
),
|
|
181
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
182
|
+
"button",
|
|
183
|
+
{
|
|
184
|
+
type: "button",
|
|
185
|
+
onClick: () => scrollToElement("item-10"),
|
|
186
|
+
style: { marginRight: "5px" }
|
|
187
|
+
},
|
|
188
|
+
"Item 10"
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ import_react.default.createElement("button", { type: "button", onClick: () => scrollToElement("item-20") }, "Item 20")
|
|
191
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
192
|
+
import_ScrollView.default,
|
|
193
|
+
{
|
|
194
|
+
scrollY: true,
|
|
195
|
+
style: { height: "250px", width: "100%" },
|
|
196
|
+
scrollTop,
|
|
197
|
+
scrollIntoView,
|
|
198
|
+
scrollWithAnimation: true
|
|
199
|
+
},
|
|
200
|
+
Array.from({ length: 30 }, (_, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
key: index,
|
|
204
|
+
id: `item-${index + 1}`,
|
|
205
|
+
style: {
|
|
206
|
+
padding: "20px",
|
|
207
|
+
borderBottom: "1px solid #ccc",
|
|
208
|
+
backgroundColor: (index + 1) % 10 === 0 ? "#e6f3ff" : "white"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"Item ",
|
|
212
|
+
index + 1,
|
|
213
|
+
" ",
|
|
214
|
+
(index + 1) % 10 === 0 && "(Highlighted)"
|
|
215
|
+
))
|
|
216
|
+
));
|
|
217
|
+
};
|
|
218
|
+
const BidirectionalScrollDemo = () => {
|
|
219
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
220
|
+
import_ScrollView.default,
|
|
221
|
+
{
|
|
222
|
+
scrollX: true,
|
|
223
|
+
scrollY: true,
|
|
224
|
+
style: {
|
|
225
|
+
width: "300px",
|
|
226
|
+
height: "200px",
|
|
227
|
+
border: "1px solid #ddd",
|
|
228
|
+
borderRadius: "4px"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
232
|
+
"div",
|
|
233
|
+
{
|
|
234
|
+
style: {
|
|
235
|
+
width: "600px",
|
|
236
|
+
height: "400px",
|
|
237
|
+
backgroundImage: "linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)",
|
|
238
|
+
backgroundSize: "20px 20px",
|
|
239
|
+
backgroundPosition: "0 0, 0 10px, 10px -10px, -10px 0px",
|
|
240
|
+
position: "relative"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
244
|
+
"div",
|
|
245
|
+
{
|
|
246
|
+
style: {
|
|
247
|
+
position: "absolute",
|
|
248
|
+
top: "50%",
|
|
249
|
+
left: "50%",
|
|
250
|
+
transform: "translate(-50%, -50%)",
|
|
251
|
+
padding: "20px",
|
|
252
|
+
backgroundColor: "white",
|
|
253
|
+
border: "2px solid #007acc",
|
|
254
|
+
borderRadius: "8px",
|
|
255
|
+
boxShadow: "0 2px 8px rgba(0,0,0,0.1)"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
/* @__PURE__ */ import_react.default.createElement("h3", { style: { margin: "0 0 10px 0", color: "#007acc" } }, "Scroll in both directions!"),
|
|
259
|
+
/* @__PURE__ */ import_react.default.createElement("p", { style: { margin: 0, color: "#666" } }, "This content area is larger than the viewport")
|
|
260
|
+
)
|
|
261
|
+
)
|
|
262
|
+
);
|
|
263
|
+
};
|
|
264
|
+
const ThresholdTestDemo = () => {
|
|
265
|
+
const [thresholdEvents, setThresholdEvents] = import_react.default.useState([]);
|
|
266
|
+
const addEvent = (event) => {
|
|
267
|
+
setThresholdEvents((prev) => [
|
|
268
|
+
...prev.slice(-4),
|
|
269
|
+
`${(/* @__PURE__ */ new Date()).toLocaleTimeString()}: ${event}`
|
|
270
|
+
]);
|
|
271
|
+
};
|
|
272
|
+
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
|
273
|
+
"div",
|
|
274
|
+
{
|
|
275
|
+
"data-testid": "threshold-events",
|
|
276
|
+
style: {
|
|
277
|
+
marginBottom: "10px",
|
|
278
|
+
padding: "10px",
|
|
279
|
+
backgroundColor: "#f0f8ff",
|
|
280
|
+
minHeight: "80px"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
/* @__PURE__ */ import_react.default.createElement("strong", null, "Threshold Events:"),
|
|
284
|
+
thresholdEvents.map((event, index) => /* @__PURE__ */ import_react.default.createElement("div", { key: index, style: { fontSize: "12px", color: "#666" } }, event))
|
|
285
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
286
|
+
import_ScrollView.default,
|
|
287
|
+
{
|
|
288
|
+
scrollY: true,
|
|
289
|
+
style: { height: "150px", width: "100%" },
|
|
290
|
+
upperThreshold: 20,
|
|
291
|
+
lowerThreshold: 20,
|
|
292
|
+
onScrollToUpper: () => addEvent("Reached upper threshold (20px)"),
|
|
293
|
+
onScrollToLower: () => addEvent("Reached lower threshold (20px)")
|
|
294
|
+
},
|
|
295
|
+
Array.from({ length: 20 }, (_, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
296
|
+
"div",
|
|
297
|
+
{
|
|
298
|
+
key: index,
|
|
299
|
+
style: {
|
|
300
|
+
padding: "12px",
|
|
301
|
+
borderBottom: "1px solid #eee",
|
|
302
|
+
backgroundColor: index === 0 || index === 19 ? "#fff3cd" : "white"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
index === 0 && "First Item (Top Threshold Test)",
|
|
306
|
+
index === 19 && "Last Item (Bottom Threshold Test)",
|
|
307
|
+
index !== 0 && index !== 19 && `Item ${index + 1}`
|
|
308
|
+
))
|
|
309
|
+
));
|
|
310
|
+
};
|
|
311
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
312
|
+
0 && (module.exports = {
|
|
313
|
+
BasicScrollViewDemo,
|
|
314
|
+
BidirectionalScrollDemo,
|
|
315
|
+
ControlledScrollDemo,
|
|
316
|
+
HorizontalScrollViewDemo,
|
|
317
|
+
ScrollEventsDemo,
|
|
318
|
+
ThresholdTestDemo
|
|
319
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ScrollViewProps } from './ScrollView.types';
|
|
3
|
+
export interface UseScrollViewParameters extends ScrollViewProps {
|
|
4
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
5
|
+
}
|
|
6
|
+
export interface UseScrollViewReturnValue {
|
|
7
|
+
getRootProps: (otherHandlers?: Record<string, unknown>) => Record<string, unknown>;
|
|
8
|
+
containerRef: React.RefCallback<HTMLDivElement>;
|
|
9
|
+
}
|
|
10
|
+
export declare function useScrollView(parameters: UseScrollViewParameters): UseScrollViewReturnValue;
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
+
var __objRest = (source, exclude) => {
|
|
23
|
+
var target = {};
|
|
24
|
+
for (var prop in source)
|
|
25
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
26
|
+
target[prop] = source[prop];
|
|
27
|
+
if (source != null && __getOwnPropSymbols)
|
|
28
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
29
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
30
|
+
target[prop] = source[prop];
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
33
|
+
};
|
|
34
|
+
var __export = (target, all) => {
|
|
35
|
+
for (var name in all)
|
|
36
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
|
+
};
|
|
38
|
+
var __copyProps = (to, from, except, desc) => {
|
|
39
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
40
|
+
for (let key of __getOwnPropNames(from))
|
|
41
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
42
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
43
|
+
}
|
|
44
|
+
return to;
|
|
45
|
+
};
|
|
46
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
47
|
+
var useScrollView_exports = {};
|
|
48
|
+
__export(useScrollView_exports, {
|
|
49
|
+
useScrollView: () => useScrollView
|
|
50
|
+
});
|
|
51
|
+
module.exports = __toCommonJS(useScrollView_exports);
|
|
52
|
+
var import_utils = require("@bifrostui/utils");
|
|
53
|
+
var import_react = require("react");
|
|
54
|
+
function easeOutScroll(from, to, callback) {
|
|
55
|
+
if (from === to || typeof from !== "number") {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const change = to - from;
|
|
59
|
+
const dur = 500;
|
|
60
|
+
const sTime = +/* @__PURE__ */ new Date();
|
|
61
|
+
function linear(t, b, c, d) {
|
|
62
|
+
return c * t / d + b;
|
|
63
|
+
}
|
|
64
|
+
const isLarger = to >= from;
|
|
65
|
+
function step() {
|
|
66
|
+
const stepFrom = linear(+/* @__PURE__ */ new Date() - sTime, from, change, dur);
|
|
67
|
+
if (isLarger && stepFrom >= to || !isLarger && to >= stepFrom) {
|
|
68
|
+
callback == null ? void 0 : callback(to);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
callback == null ? void 0 : callback(stepFrom);
|
|
72
|
+
requestAnimationFrame(step);
|
|
73
|
+
}
|
|
74
|
+
step();
|
|
75
|
+
}
|
|
76
|
+
function useScrollView(parameters) {
|
|
77
|
+
const _a = parameters, {
|
|
78
|
+
ref,
|
|
79
|
+
onScroll,
|
|
80
|
+
onScrollToUpper,
|
|
81
|
+
onScrollToLower,
|
|
82
|
+
scrollTop: scrollTopProp,
|
|
83
|
+
scrollLeft: scrollLeftProp,
|
|
84
|
+
scrollX,
|
|
85
|
+
scrollY,
|
|
86
|
+
scrollIntoView,
|
|
87
|
+
onTouchMove: propsOnTouchMove,
|
|
88
|
+
scrollIntoViewAlignment,
|
|
89
|
+
upperThreshold = 50,
|
|
90
|
+
lowerThreshold = 50,
|
|
91
|
+
scrollWithAnimation
|
|
92
|
+
} = _a, otherProps = __objRest(_a, [
|
|
93
|
+
"ref",
|
|
94
|
+
"onScroll",
|
|
95
|
+
"onScrollToUpper",
|
|
96
|
+
"onScrollToLower",
|
|
97
|
+
"scrollTop",
|
|
98
|
+
"scrollLeft",
|
|
99
|
+
"scrollX",
|
|
100
|
+
"scrollY",
|
|
101
|
+
"scrollIntoView",
|
|
102
|
+
"onTouchMove",
|
|
103
|
+
"scrollIntoViewAlignment",
|
|
104
|
+
"upperThreshold",
|
|
105
|
+
"lowerThreshold",
|
|
106
|
+
"scrollWithAnimation"
|
|
107
|
+
]);
|
|
108
|
+
const container = (0, import_react.useRef)(null);
|
|
109
|
+
const handleRef = (0, import_utils.useForkRef)(ref, container);
|
|
110
|
+
const upperLowerStatus = (0, import_react.useRef)(0);
|
|
111
|
+
const onTouchMove = (_e) => {
|
|
112
|
+
};
|
|
113
|
+
const scrollVertical = (0, import_react.useCallback)((top, isAnimation) => {
|
|
114
|
+
if (top === void 0)
|
|
115
|
+
return;
|
|
116
|
+
if (isAnimation) {
|
|
117
|
+
easeOutScroll(container.current.scrollTop, top, (pos) => {
|
|
118
|
+
if (container.current)
|
|
119
|
+
container.current.scrollTop = pos;
|
|
120
|
+
});
|
|
121
|
+
} else if (container.current)
|
|
122
|
+
container.current.scrollTop = top;
|
|
123
|
+
}, []);
|
|
124
|
+
const scrollHorizontal = (0, import_react.useCallback)(
|
|
125
|
+
(left, isAnimation) => {
|
|
126
|
+
if (left === void 0)
|
|
127
|
+
return;
|
|
128
|
+
if (isAnimation) {
|
|
129
|
+
easeOutScroll(container.current.scrollLeft, left, (pos) => {
|
|
130
|
+
if (container.current)
|
|
131
|
+
container.current.scrollLeft = pos;
|
|
132
|
+
});
|
|
133
|
+
} else if (container.current)
|
|
134
|
+
container.current.scrollLeft = left;
|
|
135
|
+
},
|
|
136
|
+
[]
|
|
137
|
+
);
|
|
138
|
+
const handleScroll = (0, import_react.useCallback)(
|
|
139
|
+
(isInit = false) => {
|
|
140
|
+
var _a2, _b;
|
|
141
|
+
const isAnimation = scrollWithAnimation;
|
|
142
|
+
if (scrollIntoView && typeof scrollIntoView === "string" && ((_b = (_a2 = container == null ? void 0 : container.current) == null ? void 0 : _a2.querySelector) == null ? void 0 : _b.call(_a2, `#${scrollIntoView}`))) {
|
|
143
|
+
const doScrollIntoView = (id, alignment = "start", _isAnimation = isAnimation) => {
|
|
144
|
+
const target = container.current.querySelector(
|
|
145
|
+
`#${id}`
|
|
146
|
+
);
|
|
147
|
+
if (scrollY) {
|
|
148
|
+
const start = target.offsetTop;
|
|
149
|
+
const end = target.offsetTop + target.offsetHeight - container.current.clientHeight;
|
|
150
|
+
let nearest;
|
|
151
|
+
if (container.current.scrollTop < end)
|
|
152
|
+
nearest = end;
|
|
153
|
+
else if (container.current.scrollTop > start)
|
|
154
|
+
nearest = start;
|
|
155
|
+
else
|
|
156
|
+
nearest = container.current.scrollTop;
|
|
157
|
+
const center = (start + end) / 2;
|
|
158
|
+
const positions = { start, end, nearest, center };
|
|
159
|
+
scrollVertical(
|
|
160
|
+
positions[alignment],
|
|
161
|
+
_isAnimation
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
if (scrollX) {
|
|
165
|
+
const start = target.offsetLeft;
|
|
166
|
+
const end = target.offsetLeft + target.offsetWidth - container.current.clientWidth;
|
|
167
|
+
let nearest;
|
|
168
|
+
if (container.current.scrollLeft < end)
|
|
169
|
+
nearest = end;
|
|
170
|
+
else if (container.current.scrollLeft > start)
|
|
171
|
+
nearest = start;
|
|
172
|
+
else
|
|
173
|
+
nearest = container.current.scrollLeft;
|
|
174
|
+
const center = (start + end) / 2;
|
|
175
|
+
const positions = { start, end, nearest, center };
|
|
176
|
+
scrollHorizontal(
|
|
177
|
+
positions[alignment],
|
|
178
|
+
_isAnimation
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
if (isInit) {
|
|
183
|
+
setTimeout(
|
|
184
|
+
() => doScrollIntoView(
|
|
185
|
+
scrollIntoView,
|
|
186
|
+
scrollIntoViewAlignment,
|
|
187
|
+
isAnimation
|
|
188
|
+
),
|
|
189
|
+
500
|
|
190
|
+
);
|
|
191
|
+
} else {
|
|
192
|
+
doScrollIntoView(
|
|
193
|
+
scrollIntoView,
|
|
194
|
+
scrollIntoViewAlignment,
|
|
195
|
+
isAnimation
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
} else {
|
|
199
|
+
if (scrollY && typeof scrollTopProp === "number" && scrollTopProp !== container.current.scrollTop) {
|
|
200
|
+
if (isInit) {
|
|
201
|
+
setTimeout(() => scrollVertical(scrollTopProp, isAnimation), 10);
|
|
202
|
+
} else {
|
|
203
|
+
scrollVertical(scrollTopProp, isAnimation);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
if (scrollX && typeof scrollLeftProp === "number" && scrollLeftProp !== container.current.scrollLeft) {
|
|
207
|
+
if (isInit) {
|
|
208
|
+
setTimeout(() => scrollHorizontal(scrollLeftProp, isAnimation), 10);
|
|
209
|
+
} else {
|
|
210
|
+
scrollHorizontal(scrollLeftProp, isAnimation);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
[
|
|
216
|
+
scrollIntoView,
|
|
217
|
+
scrollY,
|
|
218
|
+
scrollTopProp,
|
|
219
|
+
scrollX,
|
|
220
|
+
scrollLeftProp,
|
|
221
|
+
scrollVertical,
|
|
222
|
+
scrollHorizontal,
|
|
223
|
+
scrollWithAnimation,
|
|
224
|
+
scrollIntoViewAlignment
|
|
225
|
+
]
|
|
226
|
+
);
|
|
227
|
+
(0, import_react.useEffect)(() => {
|
|
228
|
+
handleScroll(true);
|
|
229
|
+
}, []);
|
|
230
|
+
(0, import_react.useEffect)(() => {
|
|
231
|
+
handleScroll();
|
|
232
|
+
}, [
|
|
233
|
+
scrollIntoView,
|
|
234
|
+
scrollY,
|
|
235
|
+
scrollTopProp,
|
|
236
|
+
scrollX,
|
|
237
|
+
scrollLeftProp,
|
|
238
|
+
handleScroll
|
|
239
|
+
]);
|
|
240
|
+
const upperAndLower = (e) => {
|
|
241
|
+
if (!container.current)
|
|
242
|
+
return;
|
|
243
|
+
const {
|
|
244
|
+
offsetWidth,
|
|
245
|
+
offsetHeight,
|
|
246
|
+
scrollLeft,
|
|
247
|
+
scrollTop,
|
|
248
|
+
scrollHeight,
|
|
249
|
+
scrollWidth
|
|
250
|
+
} = container.current;
|
|
251
|
+
if (onScrollToLower && (scrollY && offsetHeight + scrollTop + Number(lowerThreshold) >= scrollHeight || scrollX && offsetWidth + scrollLeft + Number(lowerThreshold) >= scrollWidth)) {
|
|
252
|
+
if (upperLowerStatus.current !== -1)
|
|
253
|
+
onScrollToLower(e);
|
|
254
|
+
upperLowerStatus.current = -1;
|
|
255
|
+
} else if (onScrollToUpper && (scrollY && scrollTop <= Number(upperThreshold) || scrollX && scrollLeft <= Number(upperThreshold))) {
|
|
256
|
+
if (upperLowerStatus.current !== 1)
|
|
257
|
+
onScrollToUpper(e);
|
|
258
|
+
upperLowerStatus.current = 1;
|
|
259
|
+
} else {
|
|
260
|
+
upperLowerStatus.current = 0;
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
const onScrollHandler = (e) => {
|
|
264
|
+
const { scrollLeft, scrollTop, scrollHeight, scrollWidth } = container.current;
|
|
265
|
+
Object.defineProperty(e, "detail", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
writable: true,
|
|
268
|
+
value: {
|
|
269
|
+
scrollLeft,
|
|
270
|
+
scrollTop,
|
|
271
|
+
scrollHeight,
|
|
272
|
+
scrollWidth
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
upperAndLower(e);
|
|
276
|
+
onScroll == null ? void 0 : onScroll(e);
|
|
277
|
+
};
|
|
278
|
+
const onTouchMoveHandler = (e) => {
|
|
279
|
+
var _a2;
|
|
280
|
+
(_a2 = propsOnTouchMove || onTouchMove) == null ? void 0 : _a2(e);
|
|
281
|
+
};
|
|
282
|
+
const getRootProps = (0, import_react.useCallback)(
|
|
283
|
+
(rootHandlers) => {
|
|
284
|
+
return __spreadProps(__spreadValues(__spreadValues({}, otherProps), rootHandlers), {
|
|
285
|
+
ref: handleRef,
|
|
286
|
+
onScroll: onScrollHandler,
|
|
287
|
+
onTouchMove: onTouchMoveHandler
|
|
288
|
+
});
|
|
289
|
+
},
|
|
290
|
+
[otherProps, handleRef, onScrollHandler, onTouchMoveHandler]
|
|
291
|
+
);
|
|
292
|
+
return {
|
|
293
|
+
getRootProps,
|
|
294
|
+
containerRef: handleRef
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
298
|
+
0 && (module.exports = {
|
|
299
|
+
useScrollView
|
|
300
|
+
});
|