panelui-native 0.116.0 → 1.1.0
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/README.md +3 -1
- package/lib/module/components/accordion/index.js.map +1 -1
- package/lib/module/components/ai-input/index.js.map +1 -1
- package/lib/module/components/alert/index.js.map +1 -1
- package/lib/module/components/animated-badge/index.js +1 -2
- package/lib/module/components/animated-badge/index.js.map +1 -1
- package/lib/module/components/area-chart/index.js +15 -3
- package/lib/module/components/area-chart/index.js.map +1 -1
- package/lib/module/components/attachment/index.js.map +1 -1
- package/lib/module/components/avatar/index.js.map +1 -1
- package/lib/module/components/avatar-cropper/index.js.map +1 -1
- package/lib/module/components/badge/index.js.map +1 -1
- package/lib/module/components/bar-chart/index.js +15 -3
- package/lib/module/components/bar-chart/index.js.map +1 -1
- package/lib/module/components/breadcrumb/index.js.map +1 -1
- package/lib/module/components/bubble-chart/index.js +13 -3
- package/lib/module/components/bubble-chart/index.js.map +1 -1
- package/lib/module/components/bump-chart/index.js +15 -3
- package/lib/module/components/bump-chart/index.js.map +1 -1
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/button-group/index.js.map +1 -1
- package/lib/module/components/calendar/index.js.map +1 -1
- package/lib/module/components/candlestick-chart/index.js +15 -3
- package/lib/module/components/candlestick-chart/index.js.map +1 -1
- package/lib/module/components/card/index.js.map +1 -1
- package/lib/module/components/checkbox/index.js.map +1 -1
- package/lib/module/components/chip/index.js.map +1 -1
- package/lib/module/components/collapsible/index.js.map +1 -1
- package/lib/module/components/color-picker/index.js +13 -5
- package/lib/module/components/color-picker/index.js.map +1 -1
- package/lib/module/components/combobox/index.js +1 -2
- package/lib/module/components/combobox/index.js.map +1 -1
- package/lib/module/components/context-menu/index.js +1 -2
- package/lib/module/components/context-menu/index.js.map +1 -1
- package/lib/module/components/countdown/index.js.map +1 -1
- package/lib/module/components/dialog/index.js.map +1 -1
- package/lib/module/components/empty-state/index.js.map +1 -1
- package/lib/module/components/fab/index.js +2 -1
- package/lib/module/components/fab/index.js.map +1 -1
- package/lib/module/components/feedback/index.js +1 -2
- package/lib/module/components/feedback/index.js.map +1 -1
- package/lib/module/components/field/index.js.map +1 -1
- package/lib/module/components/file-upload/index.js.map +1 -1
- package/lib/module/components/flip-card/index.js +1 -2
- package/lib/module/components/flip-card/index.js.map +1 -1
- package/lib/module/components/frame/index.js +1 -2
- package/lib/module/components/frame/index.js.map +1 -1
- package/lib/module/components/grid-item/index.js.map +1 -1
- package/lib/module/components/heatmap-chart/index.js +1 -2
- package/lib/module/components/heatmap-chart/index.js.map +1 -1
- package/lib/module/components/image-viewer/index.js +1 -2
- package/lib/module/components/image-viewer/index.js.map +1 -1
- package/lib/module/components/input/index.js +1 -2
- package/lib/module/components/input/index.js.map +1 -1
- package/lib/module/components/input-group/index.js.map +1 -1
- package/lib/module/components/item/index.js.map +1 -1
- package/lib/module/components/kpi/index.js +1 -2
- package/lib/module/components/kpi/index.js.map +1 -1
- package/lib/module/components/label/index.js.map +1 -1
- package/lib/module/components/leaderboard/index.js.map +1 -1
- package/lib/module/components/line-chart/index.js +15 -3
- package/lib/module/components/line-chart/index.js.map +1 -1
- package/lib/module/components/live-line-chart/index.js +16 -4
- package/lib/module/components/live-line-chart/index.js.map +1 -1
- package/lib/module/components/map/native-style.js +38 -7
- package/lib/module/components/map/native-style.js.map +1 -1
- package/lib/module/components/markdown-editor/index.js.map +1 -1
- package/lib/module/components/marker/index.js.map +1 -1
- package/lib/module/components/marquee/index.js +2 -1
- package/lib/module/components/marquee/index.js.map +1 -1
- package/lib/module/components/message/index.js.map +1 -1
- package/lib/module/components/message-scroller/index.js +2 -3
- package/lib/module/components/message-scroller/index.js.map +1 -1
- package/lib/module/components/meter/index.js.map +1 -1
- package/lib/module/components/mirror-area-chart/index.js +15 -3
- package/lib/module/components/mirror-area-chart/index.js.map +1 -1
- package/lib/module/components/number-input/index.js +1 -2
- package/lib/module/components/number-input/index.js.map +1 -1
- package/lib/module/components/otp-input/index.js +1 -2
- package/lib/module/components/otp-input/index.js.map +1 -1
- package/lib/module/components/page-header/index.js +1 -2
- package/lib/module/components/page-header/index.js.map +1 -1
- package/lib/module/components/pagination/index.js.map +1 -1
- package/lib/module/components/panelside/index.js +8 -7
- package/lib/module/components/panelside/index.js.map +1 -1
- package/lib/module/components/planner/index.js +1 -2
- package/lib/module/components/planner/index.js.map +1 -1
- package/lib/module/components/plot/index.js +15 -3
- package/lib/module/components/plot/index.js.map +1 -1
- package/lib/module/components/popover/index.js +1 -2
- package/lib/module/components/popover/index.js.map +1 -1
- package/lib/module/components/post/index.js +1 -2
- package/lib/module/components/post/index.js.map +1 -1
- package/lib/module/components/progress/index.js.map +1 -1
- package/lib/module/components/progress-button/index.js +1 -2
- package/lib/module/components/progress-button/index.js.map +1 -1
- package/lib/module/components/pyramid-chart/index.js +15 -3
- package/lib/module/components/pyramid-chart/index.js.map +1 -1
- package/lib/module/components/qr-code/index.js.map +1 -1
- package/lib/module/components/questionnaire/index.js +1 -2
- package/lib/module/components/questionnaire/index.js.map +1 -1
- package/lib/module/components/radio-group/index.js.map +1 -1
- package/lib/module/components/rating/index.js +1 -2
- package/lib/module/components/rating/index.js.map +1 -1
- package/lib/module/components/scatter-chart/index.js +13 -3
- package/lib/module/components/scatter-chart/index.js.map +1 -1
- package/lib/module/components/scroll-header/index.js +5 -4
- package/lib/module/components/scroll-header/index.js.map +1 -1
- package/lib/module/components/search-bar/index.js +1 -2
- package/lib/module/components/search-bar/index.js.map +1 -1
- package/lib/module/components/section-progress/index.js +3 -2
- package/lib/module/components/section-progress/index.js.map +1 -1
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/components/separator/index.js.map +1 -1
- package/lib/module/components/shimmer/index.js +8 -1
- package/lib/module/components/shimmer/index.js.map +1 -1
- package/lib/module/components/signature/index.js.map +1 -1
- package/lib/module/components/sketch/index.js.map +1 -1
- package/lib/module/components/slide-button/index.js +1 -2
- package/lib/module/components/slide-button/index.js.map +1 -1
- package/lib/module/components/slider/index.js +1 -2
- package/lib/module/components/slider/index.js.map +1 -1
- package/lib/module/components/sortable/index.js +6 -7
- package/lib/module/components/sortable/index.js.map +1 -1
- package/lib/module/components/splitter/index.js +3 -2
- package/lib/module/components/splitter/index.js.map +1 -1
- package/lib/module/components/stack-card/index.js +3 -2
- package/lib/module/components/stack-card/index.js.map +1 -1
- package/lib/module/components/steps/index.js.map +1 -1
- package/lib/module/components/support/index.js.map +1 -1
- package/lib/module/components/surface/index.js.map +1 -1
- package/lib/module/components/swipe/index.js.map +1 -1
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/table/index.js +1 -2
- package/lib/module/components/table/index.js.map +1 -1
- package/lib/module/components/tabs/index.js +2 -1
- package/lib/module/components/tabs/index.js.map +1 -1
- package/lib/module/components/tag-input/index.js +1 -2
- package/lib/module/components/tag-input/index.js.map +1 -1
- package/lib/module/components/text-animation/index.js +2 -1
- package/lib/module/components/text-animation/index.js.map +1 -1
- package/lib/module/components/textarea/index.js +1 -2
- package/lib/module/components/textarea/index.js.map +1 -1
- package/lib/module/components/time-picker/index.js.map +1 -1
- package/lib/module/components/timeline/index.js.map +1 -1
- package/lib/module/components/toast/index.js +1 -0
- package/lib/module/components/toast/index.js.map +1 -1
- package/lib/module/components/toggle-button/index.js.map +1 -1
- package/lib/module/components/tooltip/index.js +1 -2
- package/lib/module/components/tooltip/index.js.map +1 -1
- package/lib/module/components/tour/index.js.map +1 -1
- package/lib/module/components/tree/index.js +2 -1
- package/lib/module/components/tree/index.js.map +1 -1
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/components/waterfall-chart/index.js +15 -3
- package/lib/module/components/waterfall-chart/index.js.map +1 -1
- package/lib/module/hooks/use-keyboard-avoidance.js +0 -1
- package/lib/module/hooks/use-keyboard-avoidance.js.map +1 -1
- package/lib/module/hooks/use-reveal-progress.js.map +1 -1
- package/lib/module/hooks/use-scroll-sections.js.map +1 -1
- package/lib/module/icons/index.js +22 -1
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/primitives/animated-pressable.js.map +1 -1
- package/lib/module/primitives/chart-accessibility.js +9 -1
- package/lib/module/primitives/chart-accessibility.js.map +1 -1
- package/lib/module/primitives/glass.js.map +1 -1
- package/lib/module/primitives/refs.js +4 -0
- package/lib/module/primitives/refs.js.map +1 -0
- package/lib/module/primitives/scroll-progress.js.map +1 -1
- package/lib/module/primitives/text.js.map +1 -1
- package/lib/module/primitives/web-deps.js +17 -0
- package/lib/module/primitives/web-deps.js.map +1 -0
- package/lib/module/uniwind-env.d.ts +1 -0
- package/lib/typescript/src/components/accordion/index.d.ts +8 -7
- package/lib/typescript/src/components/accordion/index.d.ts.map +1 -1
- package/lib/typescript/src/components/ai-input/index.d.ts.map +1 -1
- package/lib/typescript/src/components/alert/index.d.ts +9 -8
- package/lib/typescript/src/components/alert/index.d.ts.map +1 -1
- package/lib/typescript/src/components/animated-badge/index.d.ts +5 -4
- package/lib/typescript/src/components/animated-badge/index.d.ts.map +1 -1
- package/lib/typescript/src/components/area-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/area-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/attachment/index.d.ts +10 -9
- package/lib/typescript/src/components/attachment/index.d.ts.map +1 -1
- package/lib/typescript/src/components/avatar/index.d.ts +7 -6
- package/lib/typescript/src/components/avatar/index.d.ts.map +1 -1
- package/lib/typescript/src/components/avatar-cropper/index.d.ts.map +1 -1
- package/lib/typescript/src/components/badge/index.d.ts +5 -4
- package/lib/typescript/src/components/badge/index.d.ts.map +1 -1
- package/lib/typescript/src/components/bar-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/bar-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/bottom-sheet/index.d.ts +1 -1
- package/lib/typescript/src/components/breadcrumb/index.d.ts +9 -8
- package/lib/typescript/src/components/breadcrumb/index.d.ts.map +1 -1
- package/lib/typescript/src/components/bubble-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/bubble-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/bump-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/bump-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button/index.d.ts +4 -4
- package/lib/typescript/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button-group/index.d.ts +5 -4
- package/lib/typescript/src/components/button-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/calendar/index.d.ts.map +1 -1
- package/lib/typescript/src/components/candlestick-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/candlestick-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/card/index.d.ts +16 -15
- package/lib/typescript/src/components/card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/checkbox/index.d.ts +5 -4
- package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -1
- package/lib/typescript/src/components/chip/index.d.ts +4 -4
- package/lib/typescript/src/components/chip/index.d.ts.map +1 -1
- package/lib/typescript/src/components/collapsible/index.d.ts +7 -6
- package/lib/typescript/src/components/collapsible/index.d.ts.map +1 -1
- package/lib/typescript/src/components/color-picker/index.d.ts +13 -13
- package/lib/typescript/src/components/color-picker/index.d.ts.map +1 -1
- package/lib/typescript/src/components/combobox/index.d.ts.map +1 -1
- package/lib/typescript/src/components/context-menu/index.d.ts.map +1 -1
- package/lib/typescript/src/components/countdown/index.d.ts +5 -4
- package/lib/typescript/src/components/countdown/index.d.ts.map +1 -1
- package/lib/typescript/src/components/dialog/index.d.ts +11 -10
- package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
- package/lib/typescript/src/components/empty-state/index.d.ts +12 -11
- package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -1
- package/lib/typescript/src/components/fab/index.d.ts +7 -6
- package/lib/typescript/src/components/fab/index.d.ts.map +1 -1
- package/lib/typescript/src/components/feedback/index.d.ts +6 -5
- package/lib/typescript/src/components/feedback/index.d.ts.map +1 -1
- package/lib/typescript/src/components/field/index.d.ts +12 -11
- package/lib/typescript/src/components/field/index.d.ts.map +1 -1
- package/lib/typescript/src/components/file-upload/index.d.ts +5 -4
- package/lib/typescript/src/components/file-upload/index.d.ts.map +1 -1
- package/lib/typescript/src/components/flip-card/index.d.ts +5 -4
- package/lib/typescript/src/components/flip-card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/frame/index.d.ts +14 -13
- package/lib/typescript/src/components/frame/index.d.ts.map +1 -1
- package/lib/typescript/src/components/grid-item/index.d.ts +30 -29
- package/lib/typescript/src/components/grid-item/index.d.ts.map +1 -1
- package/lib/typescript/src/components/heatmap-chart/index.d.ts +3 -2
- package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/image-viewer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/input/index.d.ts +5 -4
- package/lib/typescript/src/components/input/index.d.ts.map +1 -1
- package/lib/typescript/src/components/input-group/index.d.ts +6 -5
- package/lib/typescript/src/components/input-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/item/index.d.ts +34 -33
- package/lib/typescript/src/components/item/index.d.ts.map +1 -1
- package/lib/typescript/src/components/kpi/index.d.ts +6 -5
- package/lib/typescript/src/components/kpi/index.d.ts.map +1 -1
- package/lib/typescript/src/components/label/index.d.ts +4 -3
- package/lib/typescript/src/components/label/index.d.ts.map +1 -1
- package/lib/typescript/src/components/leaderboard/index.d.ts +3 -2
- package/lib/typescript/src/components/leaderboard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/line-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/live-line-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/live-line-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/map/native-style.d.ts.map +1 -1
- package/lib/typescript/src/components/markdown-editor/index.d.ts +6 -5
- package/lib/typescript/src/components/markdown-editor/index.d.ts.map +1 -1
- package/lib/typescript/src/components/marker/index.d.ts +7 -6
- package/lib/typescript/src/components/marker/index.d.ts.map +1 -1
- package/lib/typescript/src/components/marquee/index.d.ts.map +1 -1
- package/lib/typescript/src/components/message/index.d.ts +13 -12
- package/lib/typescript/src/components/message/index.d.ts.map +1 -1
- package/lib/typescript/src/components/message-scroller/index.d.ts.map +1 -1
- package/lib/typescript/src/components/meter/index.d.ts +5 -4
- package/lib/typescript/src/components/meter/index.d.ts.map +1 -1
- package/lib/typescript/src/components/mirror-area-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/mirror-area-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/number-input/index.d.ts +5 -4
- package/lib/typescript/src/components/number-input/index.d.ts.map +1 -1
- package/lib/typescript/src/components/otp-input/index.d.ts +5 -4
- package/lib/typescript/src/components/otp-input/index.d.ts.map +1 -1
- package/lib/typescript/src/components/page-header/index.d.ts +15 -14
- package/lib/typescript/src/components/page-header/index.d.ts.map +1 -1
- package/lib/typescript/src/components/pagination/index.d.ts +9 -8
- package/lib/typescript/src/components/pagination/index.d.ts.map +1 -1
- package/lib/typescript/src/components/panelside/index.d.ts.map +1 -1
- package/lib/typescript/src/components/planner/index.d.ts +3 -2
- package/lib/typescript/src/components/planner/index.d.ts.map +1 -1
- package/lib/typescript/src/components/plot/index.d.ts +11 -1
- package/lib/typescript/src/components/plot/index.d.ts.map +1 -1
- package/lib/typescript/src/components/popover/index.d.ts.map +1 -1
- package/lib/typescript/src/components/post/index.d.ts +15 -14
- package/lib/typescript/src/components/post/index.d.ts.map +1 -1
- package/lib/typescript/src/components/progress/index.d.ts +5 -4
- package/lib/typescript/src/components/progress/index.d.ts.map +1 -1
- package/lib/typescript/src/components/progress-button/index.d.ts +5 -4
- package/lib/typescript/src/components/progress-button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/pyramid-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/pyramid-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/qr-code/index.d.ts +11 -10
- package/lib/typescript/src/components/qr-code/index.d.ts.map +1 -1
- package/lib/typescript/src/components/questionnaire/index.d.ts +4 -3
- package/lib/typescript/src/components/questionnaire/index.d.ts.map +1 -1
- package/lib/typescript/src/components/radio-group/index.d.ts +6 -5
- package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/rating/index.d.ts +4 -4
- package/lib/typescript/src/components/rating/index.d.ts.map +1 -1
- package/lib/typescript/src/components/scatter-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/scatter-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/scroll-header/index.d.ts +11 -10
- package/lib/typescript/src/components/scroll-header/index.d.ts.map +1 -1
- package/lib/typescript/src/components/search-bar/index.d.ts +5 -4
- package/lib/typescript/src/components/search-bar/index.d.ts.map +1 -1
- package/lib/typescript/src/components/section-progress/index.d.ts.map +1 -1
- package/lib/typescript/src/components/select/index.d.ts.map +1 -1
- package/lib/typescript/src/components/selection-mode/index.d.ts +2 -2
- package/lib/typescript/src/components/selection-mode/index.d.ts.map +1 -1
- package/lib/typescript/src/components/separator/index.d.ts +17 -16
- package/lib/typescript/src/components/separator/index.d.ts.map +1 -1
- package/lib/typescript/src/components/shimmer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/signature/index.d.ts +2 -2
- package/lib/typescript/src/components/signature/index.d.ts.map +1 -1
- package/lib/typescript/src/components/sketch/index.d.ts.map +1 -1
- package/lib/typescript/src/components/slide-button/index.d.ts +5 -4
- package/lib/typescript/src/components/slide-button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/index.d.ts +4 -4
- package/lib/typescript/src/components/slider/index.d.ts.map +1 -1
- package/lib/typescript/src/components/sortable/index.d.ts.map +1 -1
- package/lib/typescript/src/components/spinner/index.d.ts +11 -11
- package/lib/typescript/src/components/spinner/index.d.ts.map +1 -1
- package/lib/typescript/src/components/splitter/index.d.ts.map +1 -1
- package/lib/typescript/src/components/stack-card/index.d.ts +11 -10
- package/lib/typescript/src/components/stack-card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/steps/index.d.ts +9 -8
- package/lib/typescript/src/components/steps/index.d.ts.map +1 -1
- package/lib/typescript/src/components/support/index.d.ts +22 -21
- package/lib/typescript/src/components/support/index.d.ts.map +1 -1
- package/lib/typescript/src/components/surface/index.d.ts +35 -34
- package/lib/typescript/src/components/surface/index.d.ts.map +1 -1
- package/lib/typescript/src/components/swipe/index.d.ts +8 -7
- package/lib/typescript/src/components/swipe/index.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/index.d.ts +5 -4
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/src/components/table/index.d.ts +14 -13
- package/lib/typescript/src/components/table/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tag-input/index.d.ts +5 -4
- package/lib/typescript/src/components/tag-input/index.d.ts.map +1 -1
- package/lib/typescript/src/components/text-animation/index.d.ts.map +1 -1
- package/lib/typescript/src/components/textarea/index.d.ts +5 -4
- package/lib/typescript/src/components/textarea/index.d.ts.map +1 -1
- package/lib/typescript/src/components/time-picker/index.d.ts.map +1 -1
- package/lib/typescript/src/components/timeline/index.d.ts +18 -17
- package/lib/typescript/src/components/timeline/index.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/index.d.ts +2 -2
- package/lib/typescript/src/components/toast/index.d.ts.map +1 -1
- package/lib/typescript/src/components/toggle-button/index.d.ts +6 -5
- package/lib/typescript/src/components/toggle-button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tooltip/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tour/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tree/index.d.ts +10 -9
- package/lib/typescript/src/components/tree/index.d.ts.map +1 -1
- package/lib/typescript/src/components/typography/index.d.ts +101 -100
- package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/src/components/waterfall-chart/index.d.ts +11 -1
- package/lib/typescript/src/components/waterfall-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts +3 -2
- package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-reveal-progress.d.ts +2 -2
- package/lib/typescript/src/hooks/use-reveal-progress.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-scroll-sections.d.ts +3 -2
- package/lib/typescript/src/hooks/use-scroll-sections.d.ts.map +1 -1
- package/lib/typescript/src/icons/index.d.ts +40 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/primitives/animated-pressable.d.ts +3 -2
- package/lib/typescript/src/primitives/animated-pressable.d.ts.map +1 -1
- package/lib/typescript/src/primitives/chart-accessibility.d.ts +5 -6
- package/lib/typescript/src/primitives/chart-accessibility.d.ts.map +1 -1
- package/lib/typescript/src/primitives/glass.d.ts +3 -2
- package/lib/typescript/src/primitives/glass.d.ts.map +1 -1
- package/lib/typescript/src/primitives/refs.d.ts +25 -0
- package/lib/typescript/src/primitives/refs.d.ts.map +1 -0
- package/lib/typescript/src/primitives/scroll-progress.d.ts.map +1 -1
- package/lib/typescript/src/primitives/text.d.ts +41 -40
- package/lib/typescript/src/primitives/text.d.ts.map +1 -1
- package/lib/typescript/src/primitives/web-deps.d.ts +11 -0
- package/lib/typescript/src/primitives/web-deps.d.ts.map +1 -0
- package/package.json +12 -7
- package/src/components/accordion/index.tsx +7 -6
- package/src/components/ai-input/index.tsx +2 -1
- package/src/components/alert/index.tsx +6 -5
- package/src/components/animated-badge/index.tsx +2 -1
- package/src/components/area-chart/index.tsx +31 -3
- package/src/components/attachment/index.tsx +9 -8
- package/src/components/avatar/index.tsx +4 -3
- package/src/components/avatar-cropper/index.tsx +2 -1
- package/src/components/badge/index.tsx +2 -1
- package/src/components/bar-chart/index.tsx +40 -3
- package/src/components/breadcrumb/index.tsx +8 -7
- package/src/components/bubble-chart/index.tsx +23 -2
- package/src/components/bump-chart/index.tsx +31 -3
- package/src/components/button/index.tsx +2 -1
- package/src/components/button-group/index.tsx +2 -1
- package/src/components/calendar/index.tsx +2 -1
- package/src/components/candlestick-chart/index.tsx +25 -2
- package/src/components/card/index.tsx +7 -6
- package/src/components/checkbox/index.tsx +2 -1
- package/src/components/chip/index.tsx +2 -1
- package/src/components/collapsible/index.tsx +6 -5
- package/src/components/color-picker/index.tsx +29 -15
- package/src/components/combobox/index.tsx +3 -2
- package/src/components/context-menu/index.tsx +2 -1
- package/src/components/countdown/index.tsx +2 -1
- package/src/components/dialog/index.tsx +3 -2
- package/src/components/empty-state/index.tsx +7 -6
- package/src/components/fab/index.tsx +6 -4
- package/src/components/feedback/index.tsx +5 -4
- package/src/components/field/index.tsx +11 -10
- package/src/components/file-upload/index.tsx +4 -3
- package/src/components/flip-card/index.tsx +4 -3
- package/src/components/frame/index.tsx +13 -12
- package/src/components/grid-item/index.tsx +10 -9
- package/src/components/heatmap-chart/index.tsx +2 -1
- package/src/components/image-viewer/index.tsx +2 -1
- package/src/components/input/index.tsx +2 -1
- package/src/components/input-group/index.tsx +4 -3
- package/src/components/item/index.tsx +11 -10
- package/src/components/kpi/index.tsx +3 -2
- package/src/components/label/index.tsx +3 -2
- package/src/components/leaderboard/index.tsx +2 -1
- package/src/components/line-chart/index.tsx +31 -3
- package/src/components/live-line-chart/index.tsx +31 -4
- package/src/components/map/native-style.ts +31 -4
- package/src/components/markdown-editor/index.tsx +11 -11
- package/src/components/marker/index.tsx +4 -3
- package/src/components/marquee/index.tsx +2 -1
- package/src/components/message/index.tsx +10 -9
- package/src/components/message-scroller/index.tsx +4 -4
- package/src/components/meter/index.tsx +2 -1
- package/src/components/mirror-area-chart/index.tsx +25 -2
- package/src/components/number-input/index.tsx +2 -1
- package/src/components/otp-input/index.tsx +4 -3
- package/src/components/page-header/index.tsx +12 -11
- package/src/components/pagination/index.tsx +6 -5
- package/src/components/panelside/index.tsx +8 -7
- package/src/components/planner/index.tsx +7 -7
- package/src/components/plot/index.tsx +37 -3
- package/src/components/popover/index.tsx +2 -1
- package/src/components/post/index.tsx +12 -11
- package/src/components/progress/index.tsx +2 -1
- package/src/components/progress-button/index.tsx +2 -1
- package/src/components/pyramid-chart/index.tsx +25 -2
- package/src/components/qr-code/index.tsx +8 -7
- package/src/components/questionnaire/index.tsx +4 -3
- package/src/components/radio-group/index.tsx +3 -2
- package/src/components/rating/index.tsx +2 -1
- package/src/components/scatter-chart/index.tsx +23 -2
- package/src/components/scroll-header/index.tsx +13 -11
- package/src/components/search-bar/index.tsx +7 -8
- package/src/components/section-progress/index.tsx +3 -2
- package/src/components/select/index.tsx +2 -1
- package/src/components/separator/index.tsx +2 -1
- package/src/components/shimmer/index.tsx +11 -2
- package/src/components/signature/index.tsx +2 -1
- package/src/components/sketch/index.tsx +2 -1
- package/src/components/slide-button/index.tsx +2 -1
- package/src/components/slider/index.tsx +2 -1
- package/src/components/sortable/index.tsx +5 -7
- package/src/components/splitter/index.tsx +3 -2
- package/src/components/stack-card/index.tsx +9 -7
- package/src/components/steps/index.tsx +8 -7
- package/src/components/support/index.tsx +17 -16
- package/src/components/surface/index.tsx +2 -1
- package/src/components/swipe/index.tsx +5 -4
- package/src/components/switch/index.tsx +2 -1
- package/src/components/table/index.tsx +11 -10
- package/src/components/tabs/index.tsx +4 -2
- package/src/components/tag-input/index.tsx +5 -5
- package/src/components/text-animation/index.tsx +2 -1
- package/src/components/textarea/index.tsx +3 -3
- package/src/components/time-picker/index.tsx +2 -1
- package/src/components/timeline/index.tsx +17 -16
- package/src/components/toast/index.tsx +2 -2
- package/src/components/toggle-button/index.tsx +3 -2
- package/src/components/tooltip/index.tsx +2 -1
- package/src/components/tour/index.tsx +3 -2
- package/src/components/tree/index.tsx +11 -9
- package/src/components/typography/index.tsx +8 -7
- package/src/components/waterfall-chart/index.tsx +35 -2
- package/src/hooks/use-keyboard-avoidance.ts +3 -2
- package/src/hooks/use-reveal-progress.ts +3 -2
- package/src/hooks/use-scroll-sections.ts +3 -2
- package/src/icons/index.tsx +21 -2
- package/src/index.ts +14 -0
- package/src/primitives/animated-pressable.tsx +2 -1
- package/src/primitives/chart-accessibility.ts +9 -5
- package/src/primitives/glass.tsx +3 -2
- package/src/primitives/refs.ts +45 -0
- package/src/primitives/scroll-progress.tsx +2 -1
- package/src/primitives/text.tsx +2 -1
- package/src/primitives/web-deps.ts +14 -0
- package/lib/module/uniwind-env.d.js +0 -4
- package/lib/module/uniwind-env.d.js.map +0 -1
|
@@ -76,7 +76,6 @@ import {
|
|
|
76
76
|
Platform,
|
|
77
77
|
Pressable,
|
|
78
78
|
View,
|
|
79
|
-
type ViewToken,
|
|
80
79
|
type ViewProps,
|
|
81
80
|
} from 'react-native';
|
|
82
81
|
import { tv } from 'tailwind-variants';
|
|
@@ -119,6 +118,7 @@ import {
|
|
|
119
118
|
usePlannerSelectionLifecycle,
|
|
120
119
|
} from './planner-lifecycle';
|
|
121
120
|
import { millisecondsUntilNextLocalDay } from './planner-today';
|
|
121
|
+
import type { ViewRef, ViewTokenOf } from '../../primitives/refs';
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* How many of a day's entries a cell draws before it stops and counts.
|
|
@@ -474,7 +474,7 @@ export interface PlannerProps extends Omit<ViewProps, 'children'> {
|
|
|
474
474
|
children?: ReactNode;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
const PlannerRoot = forwardRef<
|
|
477
|
+
const PlannerRoot = forwardRef<ViewRef, PlannerProps>(
|
|
478
478
|
(
|
|
479
479
|
{
|
|
480
480
|
className,
|
|
@@ -835,7 +835,7 @@ interface PlannerGridKeyDownEvent {
|
|
|
835
835
|
interface PlannerGridNavigationContextValue {
|
|
836
836
|
activeIndex: number;
|
|
837
837
|
indexByDay: ReadonlyMap<number, number>;
|
|
838
|
-
register: (index: number, node:
|
|
838
|
+
register: (index: number, node: ViewRef | null) => void;
|
|
839
839
|
focus: (index: number, event: PlannerGridKeyDownEvent) => void;
|
|
840
840
|
makeActive: (index: number) => void;
|
|
841
841
|
}
|
|
@@ -893,8 +893,8 @@ function PlannerGrid({ className, renderDay }: PlannerGridProps) {
|
|
|
893
893
|
indexByDay.get(today.getTime()) ??
|
|
894
894
|
dates.findIndex(isInMonth);
|
|
895
895
|
const activeIndex = storedIndex ?? Math.max(0, preferredIndex);
|
|
896
|
-
const refs = useRef(new Map<number,
|
|
897
|
-
const register = useCallback((index: number, node:
|
|
896
|
+
const refs = useRef(new Map<number, ViewRef>());
|
|
897
|
+
const register = useCallback((index: number, node: ViewRef | null) => {
|
|
898
898
|
if (node) refs.current.set(index, node);
|
|
899
899
|
else refs.current.delete(index);
|
|
900
900
|
}, []);
|
|
@@ -1011,7 +1011,7 @@ function PlannerDay({ date, renderDay }: PlannerDayProps) {
|
|
|
1011
1011
|
};
|
|
1012
1012
|
const gridIndex = navigation?.indexByDay.get(date.getTime());
|
|
1013
1013
|
const setRef = useCallback(
|
|
1014
|
-
(node:
|
|
1014
|
+
(node: ViewRef | null) => {
|
|
1015
1015
|
if (gridIndex !== undefined) registerGridCell?.(gridIndex, node);
|
|
1016
1016
|
},
|
|
1017
1017
|
[gridIndex, registerGridCell]
|
|
@@ -1418,7 +1418,7 @@ function PlannerScroller({
|
|
|
1418
1418
|
* month change from reporting that same month straight back.
|
|
1419
1419
|
*/
|
|
1420
1420
|
const reported = useRef(month.getTime());
|
|
1421
|
-
const onViewable = useRef(({ viewableItems }: { viewableItems:
|
|
1421
|
+
const onViewable = useRef(({ viewableItems }: { viewableItems: ViewTokenOf<unknown>[] }) => {
|
|
1422
1422
|
const first = viewableItems[0]?.item as Date | undefined;
|
|
1423
1423
|
if (!first) return;
|
|
1424
1424
|
const next = startOfCalendarMonth(weekAnchor(first), system, locale);
|
|
@@ -1453,10 +1453,29 @@ PlotYAxis.layer = 'overlay' as Layer;
|
|
|
1453
1453
|
// plot out.
|
|
1454
1454
|
PlotYAxis.axis = 'y' as const;
|
|
1455
1455
|
|
|
1456
|
+
/**
|
|
1457
|
+
* How long the cursor waits before claiming the touch, in milliseconds.
|
|
1458
|
+
*
|
|
1459
|
+
* Long enough that a tap reaches a button drawn over the chart and a swipe
|
|
1460
|
+
* scrolls the screen, short enough that a deliberate press does not feel
|
|
1461
|
+
* ignored.
|
|
1462
|
+
*/
|
|
1463
|
+
const DEFAULT_HOLD = 180;
|
|
1464
|
+
|
|
1456
1465
|
export interface PlotCursorProps {
|
|
1457
1466
|
color?: string;
|
|
1458
1467
|
/** Hide the vertical line and keep only the touch handling. */
|
|
1459
1468
|
showLine?: boolean;
|
|
1469
|
+
/**
|
|
1470
|
+
* How long a press has to be held before the cursor takes the touch, in
|
|
1471
|
+
* milliseconds.
|
|
1472
|
+
*
|
|
1473
|
+
* Until then the touch belongs to whatever else wants it: a quick tap still
|
|
1474
|
+
* reaches a button floating over the chart, and a swipe still scrolls the
|
|
1475
|
+
* screen the chart sits in. Set `0` to read on contact, only for a chart with
|
|
1476
|
+
* nothing over it and no scroll view around it.
|
|
1477
|
+
*/
|
|
1478
|
+
activateAfterLongPress?: number;
|
|
1460
1479
|
}
|
|
1461
1480
|
|
|
1462
1481
|
/**
|
|
@@ -1470,7 +1489,11 @@ export interface PlotCursorProps {
|
|
|
1470
1489
|
* The hit area is the whole plot. A cursor you have to land on the line to
|
|
1471
1490
|
* summon is a cursor nobody finds.
|
|
1472
1491
|
*/
|
|
1473
|
-
function PlotCursor({
|
|
1492
|
+
function PlotCursor({
|
|
1493
|
+
color,
|
|
1494
|
+
showLine = true,
|
|
1495
|
+
activateAfterLongPress = DEFAULT_HOLD,
|
|
1496
|
+
}: PlotCursorProps) {
|
|
1474
1497
|
const { data, plot, xScale, activeIndex, setActiveIndexJS, status } =
|
|
1475
1498
|
useChart('Plot.Cursor');
|
|
1476
1499
|
const token = useCSSVariable('--color-foreground');
|
|
@@ -1510,7 +1533,8 @@ function PlotCursor({ color, showLine = true }: PlotCursorProps) {
|
|
|
1510
1533
|
|
|
1511
1534
|
return Gesture.Pan()
|
|
1512
1535
|
.minDistance(0)
|
|
1513
|
-
.
|
|
1536
|
+
.activateAfterLongPress(activateAfterLongPress)
|
|
1537
|
+
.onStart((event) => {
|
|
1514
1538
|
'worklet';
|
|
1515
1539
|
resolve(event.x);
|
|
1516
1540
|
})
|
|
@@ -1520,10 +1544,20 @@ function PlotCursor({ color, showLine = true }: PlotCursorProps) {
|
|
|
1520
1544
|
})
|
|
1521
1545
|
.onFinalize(() => {
|
|
1522
1546
|
'worklet';
|
|
1547
|
+
// Fires whether or not the readout ever took the touch.
|
|
1548
|
+
if (activeIndex.value === -1) return;
|
|
1523
1549
|
activeIndex.value = -1;
|
|
1524
1550
|
runOnJS(setActiveIndexJS)(-1);
|
|
1525
1551
|
});
|
|
1526
|
-
}, [
|
|
1552
|
+
}, [
|
|
1553
|
+
total,
|
|
1554
|
+
left,
|
|
1555
|
+
width,
|
|
1556
|
+
banded,
|
|
1557
|
+
activeIndex,
|
|
1558
|
+
setActiveIndexJS,
|
|
1559
|
+
activateAfterLongPress,
|
|
1560
|
+
]);
|
|
1527
1561
|
|
|
1528
1562
|
const lineStyle = useAnimatedStyle(() => {
|
|
1529
1563
|
const index = activeIndex.value;
|
|
@@ -67,6 +67,7 @@ import { NativeHost, getSwiftUI } from '../../native';
|
|
|
67
67
|
import { BottomSheet } from '../bottom-sheet';
|
|
68
68
|
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
69
69
|
import { cn } from '../../utils/cn';
|
|
70
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
70
71
|
|
|
71
72
|
/** Gap between the trigger and the panel. */
|
|
72
73
|
const DEFAULT_OFFSET = 8;
|
|
@@ -355,7 +356,7 @@ export interface PopoverTriggerProps {
|
|
|
355
356
|
*/
|
|
356
357
|
function PopoverTrigger({ children }: PopoverTriggerProps) {
|
|
357
358
|
const { open, setOpen, setTrigger, native } = usePopover('Popover.Trigger');
|
|
358
|
-
const ref = useRef<
|
|
359
|
+
const ref = useRef<ViewRef>(null);
|
|
359
360
|
|
|
360
361
|
const measureThenToggle = (...args: unknown[]) => {
|
|
361
362
|
if (isValidElement(children)) children.props.onPress?.(...args);
|
|
@@ -84,6 +84,7 @@ import { Text, textChildren } from '../../primitives/text';
|
|
|
84
84
|
import { cn } from '../../utils/cn';
|
|
85
85
|
import { selectionTick } from '../../utils/haptics';
|
|
86
86
|
import { Avatar } from '../avatar';
|
|
87
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
87
88
|
|
|
88
89
|
/** Long enough to see the value move, short enough to keep up with a fast tap. */
|
|
89
90
|
const COUNT_DURATION = 160;
|
|
@@ -187,7 +188,7 @@ export interface PostProps
|
|
|
187
188
|
children?: ReactNode;
|
|
188
189
|
}
|
|
189
190
|
|
|
190
|
-
const PostRoot = forwardRef<
|
|
191
|
+
const PostRoot = forwardRef<ViewRef, PostProps>(
|
|
191
192
|
({ className, variant = 'feed', size = 'default', onPress, children, ...props }, ref) => {
|
|
192
193
|
const { root } = postVariants({ variant, size });
|
|
193
194
|
const context = useMemo(() => ({ variant, size }), [variant, size]);
|
|
@@ -236,7 +237,7 @@ export interface PostHeaderProps extends ViewProps {
|
|
|
236
237
|
* menu stays in the corner as a long display name wraps rather than riding down
|
|
237
238
|
* with it.
|
|
238
239
|
*/
|
|
239
|
-
const PostHeader = forwardRef<
|
|
240
|
+
const PostHeader = forwardRef<ViewRef, PostHeaderProps>(
|
|
240
241
|
({ className, children, ...props }, ref) => {
|
|
241
242
|
const { variant, size } = usePost();
|
|
242
243
|
const { header } = postVariants({ variant, size });
|
|
@@ -290,7 +291,7 @@ export interface PostAuthorProps extends Omit<ViewProps, 'children'> {
|
|
|
290
291
|
* which is the difference between a timeline row and a card: a dense row cannot
|
|
291
292
|
* afford a second line, and a card looks starved without one.
|
|
292
293
|
*/
|
|
293
|
-
const PostAuthor = forwardRef<
|
|
294
|
+
const PostAuthor = forwardRef<ViewRef, PostAuthorProps>(
|
|
294
295
|
(
|
|
295
296
|
{ className, name, handle, avatar, fallback, verified, timestamp, children, ...props },
|
|
296
297
|
ref
|
|
@@ -396,7 +397,7 @@ export interface PostActionProps extends ViewProps {
|
|
|
396
397
|
}
|
|
397
398
|
|
|
398
399
|
/** The header's trailing slot — an overflow menu, a follow button, a badge. */
|
|
399
|
-
const PostAction = forwardRef<
|
|
400
|
+
const PostAction = forwardRef<ViewRef, PostActionProps>(
|
|
400
401
|
({ className, children, ...props }, ref) => {
|
|
401
402
|
const { variant, size } = usePost();
|
|
402
403
|
const { action } = postVariants({ variant, size });
|
|
@@ -426,7 +427,7 @@ export interface PostCommunityProps extends Omit<ViewProps, 'children'> {
|
|
|
426
427
|
* post's subject is the headline — the group is where it came from, not who
|
|
427
428
|
* said it.
|
|
428
429
|
*/
|
|
429
|
-
const PostCommunity = forwardRef<
|
|
430
|
+
const PostCommunity = forwardRef<ViewRef, PostCommunityProps>(
|
|
430
431
|
({ className, name, avatar, meta, children, ...props }, ref) => {
|
|
431
432
|
const { variant, size } = usePost();
|
|
432
433
|
const {
|
|
@@ -471,7 +472,7 @@ export interface PostTitleProps extends ViewProps {
|
|
|
471
472
|
}
|
|
472
473
|
|
|
473
474
|
/** The headline of a post whose subject is a headline rather than a person. */
|
|
474
|
-
const PostTitle = forwardRef<
|
|
475
|
+
const PostTitle = forwardRef<ViewRef, PostTitleProps>(
|
|
475
476
|
({ className, children, ...props }, ref) => {
|
|
476
477
|
const { variant, size } = usePost();
|
|
477
478
|
const { title } = postVariants({ variant, size });
|
|
@@ -506,7 +507,7 @@ export interface PostBodyProps extends Omit<ViewProps, 'children'> {
|
|
|
506
507
|
* A non-string child is left entirely alone: it has already been laid out by
|
|
507
508
|
* someone who knew more than we do.
|
|
508
509
|
*/
|
|
509
|
-
const PostBody = forwardRef<
|
|
510
|
+
const PostBody = forwardRef<ViewRef, PostBodyProps>(
|
|
510
511
|
(
|
|
511
512
|
{ className, numberOfLines, onTagPress, onMentionPress, children, ...props },
|
|
512
513
|
ref
|
|
@@ -621,7 +622,7 @@ const SCRIM_COLOURS: readonly [string, string, string] = [
|
|
|
621
622
|
* whose heights are decided by whatever was uploaded scrolls like a broken
|
|
622
623
|
* staircase. The image covers the box and is cropped by it.
|
|
623
624
|
*/
|
|
624
|
-
const PostMedia = forwardRef<
|
|
625
|
+
const PostMedia = forwardRef<ViewRef, PostMediaProps>(
|
|
625
626
|
(
|
|
626
627
|
{
|
|
627
628
|
className,
|
|
@@ -714,7 +715,7 @@ export interface PostFooterProps extends ViewProps {
|
|
|
714
715
|
}
|
|
715
716
|
|
|
716
717
|
/** The row of counts and controls under the post. */
|
|
717
|
-
const PostFooter = forwardRef<
|
|
718
|
+
const PostFooter = forwardRef<ViewRef, PostFooterProps>(
|
|
718
719
|
({ className, children, ...props }, ref) => {
|
|
719
720
|
const { variant, size } = usePost();
|
|
720
721
|
const { footer } = postVariants({ variant, size });
|
|
@@ -759,7 +760,7 @@ export interface PostStatProps extends Omit<PressableProps, 'children' | 'style'
|
|
|
759
760
|
* Repainting the digits in place is indistinguishable from a re-render, which
|
|
760
761
|
* is the doubt this exists to remove.
|
|
761
762
|
*/
|
|
762
|
-
const PostStat = forwardRef<
|
|
763
|
+
const PostStat = forwardRef<ViewRef, PostStatProps>(
|
|
763
764
|
(
|
|
764
765
|
{
|
|
765
766
|
className,
|
|
@@ -961,7 +962,7 @@ export interface PostVotesProps extends Omit<ViewProps, 'children'> {
|
|
|
961
962
|
* score is a thing people change their minds about, and a vote that cannot be
|
|
962
963
|
* withdrawn is one they think twice before casting.
|
|
963
964
|
*/
|
|
964
|
-
const PostVotes = forwardRef<
|
|
965
|
+
const PostVotes = forwardRef<ViewRef, PostVotesProps>(
|
|
965
966
|
(
|
|
966
967
|
{
|
|
967
968
|
className,
|
|
@@ -15,6 +15,7 @@ import { tv, type VariantProps } from 'tailwind-variants';
|
|
|
15
15
|
import { useDirectionSign } from '../../hooks/use-direction';
|
|
16
16
|
import { Text } from '../../primitives/text';
|
|
17
17
|
import { cn } from '../../utils/cn';
|
|
18
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
18
19
|
|
|
19
20
|
const SPRING = { damping: 20, stiffness: 180, mass: 0.6 } as const;
|
|
20
21
|
/** Fraction of the track covered by the sliding bar in indeterminate mode. */
|
|
@@ -172,7 +173,7 @@ function formatValue(
|
|
|
172
173
|
* than springing to it, and the indeterminate bar pulses in place rather than
|
|
173
174
|
* crossing the track.
|
|
174
175
|
*/
|
|
175
|
-
export const Progress = forwardRef<
|
|
176
|
+
export const Progress = forwardRef<ViewRef, ProgressProps>(
|
|
176
177
|
(
|
|
177
178
|
{
|
|
178
179
|
className,
|
|
@@ -84,6 +84,7 @@ import {
|
|
|
84
84
|
releaseDuration,
|
|
85
85
|
resolveHoldDuration,
|
|
86
86
|
} from './progress-button-hold';
|
|
87
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
87
88
|
|
|
88
89
|
/** How many steps the reduced-motion fill advances in. */
|
|
89
90
|
const REDUCED_STEPS = 5;
|
|
@@ -324,7 +325,7 @@ export interface ProgressButtonProps
|
|
|
324
325
|
children?: ReactNode;
|
|
325
326
|
}
|
|
326
327
|
|
|
327
|
-
const ProgressButtonRoot = forwardRef<
|
|
328
|
+
const ProgressButtonRoot = forwardRef<ViewRef, ProgressButtonProps>(function ProgressButtonRoot(
|
|
328
329
|
{
|
|
329
330
|
className,
|
|
330
331
|
variant = 'primary',
|
|
@@ -1060,12 +1060,31 @@ PyramidChartYAxis.layer = 'overlay' as Layer;
|
|
|
1060
1060
|
// drawn over unreadable too.
|
|
1061
1061
|
PyramidChartYAxis.axis = 'y' as const;
|
|
1062
1062
|
|
|
1063
|
+
/**
|
|
1064
|
+
* How long the readout waits before claiming the touch, in milliseconds.
|
|
1065
|
+
*
|
|
1066
|
+
* Long enough that a tap reaches a button drawn over the chart and a swipe
|
|
1067
|
+
* scrolls the screen, short enough that a deliberate press does not feel
|
|
1068
|
+
* ignored.
|
|
1069
|
+
*/
|
|
1070
|
+
const DEFAULT_HOLD = 180;
|
|
1071
|
+
|
|
1063
1072
|
export interface PyramidChartTooltipProps {
|
|
1064
1073
|
/** Format one series' value. Defaults to a compact number. */
|
|
1065
1074
|
formatValue?: (value: number, key: string) => string;
|
|
1066
1075
|
/** Format the readout's heading from the row. Defaults to the value at xDataKey. */
|
|
1067
1076
|
formatX?: (datum: PyramidChartDatum) => string;
|
|
1068
1077
|
className?: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* How long a press has to be held before the readout takes the touch, in
|
|
1080
|
+
* milliseconds.
|
|
1081
|
+
*
|
|
1082
|
+
* Until then the touch belongs to whatever else wants it: a quick tap still
|
|
1083
|
+
* reaches a button floating over the chart, and a swipe still scrolls the
|
|
1084
|
+
* screen the chart sits in. Set `0` to read on contact, only for a chart with
|
|
1085
|
+
* nothing over it and no scroll view around it.
|
|
1086
|
+
*/
|
|
1087
|
+
activateAfterLongPress?: number;
|
|
1069
1088
|
}
|
|
1070
1089
|
|
|
1071
1090
|
/**
|
|
@@ -1082,6 +1101,7 @@ function PyramidChartTooltip({
|
|
|
1082
1101
|
formatValue,
|
|
1083
1102
|
formatX,
|
|
1084
1103
|
className,
|
|
1104
|
+
activateAfterLongPress = DEFAULT_HOLD,
|
|
1085
1105
|
}: PyramidChartTooltipProps) {
|
|
1086
1106
|
const {
|
|
1087
1107
|
data,
|
|
@@ -1125,7 +1145,8 @@ function PyramidChartTooltip({
|
|
|
1125
1145
|
|
|
1126
1146
|
return Gesture.Pan()
|
|
1127
1147
|
.minDistance(0)
|
|
1128
|
-
.
|
|
1148
|
+
.activateAfterLongPress(activateAfterLongPress)
|
|
1149
|
+
.onStart((event) => {
|
|
1129
1150
|
'worklet';
|
|
1130
1151
|
resolve(event.y);
|
|
1131
1152
|
})
|
|
@@ -1135,10 +1156,12 @@ function PyramidChartTooltip({
|
|
|
1135
1156
|
})
|
|
1136
1157
|
.onFinalize(() => {
|
|
1137
1158
|
'worklet';
|
|
1159
|
+
// Fires whether or not the readout ever took the touch.
|
|
1160
|
+
if (activeIndex.value === -1) return;
|
|
1138
1161
|
activeIndex.value = -1;
|
|
1139
1162
|
runOnJS(setActiveIndexJS)(-1);
|
|
1140
1163
|
});
|
|
1141
|
-
}, [total, top, height, activeIndex, setActiveIndexJS]);
|
|
1164
|
+
}, [total, top, height, activeIndex, setActiveIndexJS, activateAfterLongPress]);
|
|
1142
1165
|
|
|
1143
1166
|
/*
|
|
1144
1167
|
* The readout slides down to the row it is describing and sits centred over
|
|
@@ -78,6 +78,7 @@ import {
|
|
|
78
78
|
type QRCodeEyeFrameShape,
|
|
79
79
|
type QRCodeModuleShape,
|
|
80
80
|
} from './qr-shapes';
|
|
81
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
81
82
|
|
|
82
83
|
export type { ErrorCorrectionLevel };
|
|
83
84
|
export type { QRCodeModuleShape, QRCodeEyeFrameShape, QRCodeEyeBallShape };
|
|
@@ -212,7 +213,7 @@ export interface QRCodeProps extends Omit<ViewProps, 'children'>, QrCodeVariantP
|
|
|
212
213
|
children?: ReactNode;
|
|
213
214
|
}
|
|
214
215
|
|
|
215
|
-
const QRCodeRoot = forwardRef<
|
|
216
|
+
const QRCodeRoot = forwardRef<ViewRef, QRCodeProps>(
|
|
216
217
|
(
|
|
217
218
|
{
|
|
218
219
|
className,
|
|
@@ -329,7 +330,7 @@ export interface QRCodeCanvasProps extends Omit<ViewProps, 'children'> {
|
|
|
329
330
|
const PLATE = '#ffffff';
|
|
330
331
|
const MODULE = '#111111';
|
|
331
332
|
|
|
332
|
-
const QRCodeCanvas = forwardRef<
|
|
333
|
+
const QRCodeCanvas = forwardRef<ViewRef, QRCodeCanvasProps>(
|
|
333
334
|
(
|
|
334
335
|
{
|
|
335
336
|
className,
|
|
@@ -476,7 +477,7 @@ export interface QRCodeFrameProps extends ViewProps {
|
|
|
476
477
|
* The tray the code sits in — the same widget shell the charts use: a titled
|
|
477
478
|
* strip, and a card flush inside it holding the thing itself.
|
|
478
479
|
*/
|
|
479
|
-
const QRCodeFrame = forwardRef<
|
|
480
|
+
const QRCodeFrame = forwardRef<ViewRef, QRCodeFrameProps>(
|
|
480
481
|
({ className, children, ...props }, ref) => {
|
|
481
482
|
const { slots } = useQRCode('QRCode.Frame');
|
|
482
483
|
return (
|
|
@@ -498,7 +499,7 @@ export interface QRCodeHeaderProps extends ViewProps {
|
|
|
498
499
|
* side and `QRCode.Action` the end, so a long title truncates rather than
|
|
499
500
|
* shoving the trailing slot off the edge.
|
|
500
501
|
*/
|
|
501
|
-
const QRCodeHeader = forwardRef<
|
|
502
|
+
const QRCodeHeader = forwardRef<ViewRef, QRCodeHeaderProps>(
|
|
502
503
|
({ className, children, ...props }, ref) => {
|
|
503
504
|
const { slots } = useQRCode('QRCode.Header');
|
|
504
505
|
return (
|
|
@@ -535,7 +536,7 @@ export interface QRCodeActionProps extends ViewProps {
|
|
|
535
536
|
* The trailing slot on the header row — an expiry, a count, a button. A plain
|
|
536
537
|
* string draws as muted text; anything else draws as itself.
|
|
537
538
|
*/
|
|
538
|
-
const QRCodeAction = forwardRef<
|
|
539
|
+
const QRCodeAction = forwardRef<ViewRef, QRCodeActionProps>(
|
|
539
540
|
({ className, children, ...props }, ref) => {
|
|
540
541
|
useQRCode('QRCode.Action');
|
|
541
542
|
return (
|
|
@@ -567,7 +568,7 @@ export interface QRCodePanelProps extends ViewProps {
|
|
|
567
568
|
* logo positions itself against, so a `QRCode.Logo` belongs in here beside the
|
|
568
569
|
* canvas rather than anywhere else.
|
|
569
570
|
*/
|
|
570
|
-
const QRCodePanel = forwardRef<
|
|
571
|
+
const QRCodePanel = forwardRef<ViewRef, QRCodePanelProps>(
|
|
571
572
|
({ className, children, ...props }, ref) => {
|
|
572
573
|
const { slots } = useQRCode('QRCode.Panel');
|
|
573
574
|
return (
|
|
@@ -683,7 +684,7 @@ function hasLogo(children: ReactNode): boolean {
|
|
|
683
684
|
* Its presence is what clears the square, and what raises the error-correction
|
|
684
685
|
* level if the one asked for could not afford it.
|
|
685
686
|
*/
|
|
686
|
-
const QRCodeLogo = forwardRef<
|
|
687
|
+
const QRCodeLogo = forwardRef<ViewRef, QRCodeLogoProps>(
|
|
687
688
|
({ className, children, ...props }, ref) => {
|
|
688
689
|
const { size, matrix } = useQRCode('QRCode.Logo');
|
|
689
690
|
if (!matrix) return null;
|
|
@@ -127,6 +127,7 @@ import { cn } from '../../utils/cn';
|
|
|
127
127
|
import { Button, type ButtonProps } from '../button';
|
|
128
128
|
import { Frame } from '../frame';
|
|
129
129
|
import { Input, type InputProps } from '../input';
|
|
130
|
+
import type { TextInputRef, ViewRef } from '../../primitives/refs';
|
|
130
131
|
|
|
131
132
|
/** How long the body takes to settle into the next question's height. */
|
|
132
133
|
const HEIGHT_DURATION = 240;
|
|
@@ -912,7 +913,7 @@ function QuestionnaireBody({
|
|
|
912
913
|
// height outright instead of growing into it from nothing.
|
|
913
914
|
const height = useSharedValue(-1);
|
|
914
915
|
const drag = useSharedValue(0);
|
|
915
|
-
const paneRef = useRef<
|
|
916
|
+
const paneRef = useRef<ViewRef>(null);
|
|
916
917
|
|
|
917
918
|
/*
|
|
918
919
|
* Until the first question has been measured the pane stays in the flow, so
|
|
@@ -1520,7 +1521,7 @@ export interface QuestionnaireChoiceProps {
|
|
|
1520
1521
|
* One fixed answer — the whole row is the target, with the indicator reading
|
|
1521
1522
|
* as confirmation rather than as the thing to aim at.
|
|
1522
1523
|
*/
|
|
1523
|
-
const QuestionnaireChoice = forwardRef<
|
|
1524
|
+
const QuestionnaireChoice = forwardRef<ViewRef, QuestionnaireChoiceProps>(
|
|
1524
1525
|
({ className, value, label, description, disabled, children }, ref) => {
|
|
1525
1526
|
const { answers, toggleAnswer } = useQuestionnaire('Questionnaire.Choice');
|
|
1526
1527
|
const item = useQuestionnaireItem('Questionnaire.Choice');
|
|
@@ -1609,7 +1610,7 @@ export interface QuestionnaireInputProps
|
|
|
1609
1610
|
* empties it and typing clears the choice — one answer to one question, with
|
|
1610
1611
|
* neither part having to know about the other.
|
|
1611
1612
|
*/
|
|
1612
|
-
const QuestionnaireInput = forwardRef<
|
|
1613
|
+
const QuestionnaireInput = forwardRef<TextInputRef, QuestionnaireInputProps>(
|
|
1613
1614
|
({ className, ...props }, ref) => {
|
|
1614
1615
|
const { answers, setAnswer } = useQuestionnaire('Questionnaire.Input');
|
|
1615
1616
|
const item = useQuestionnaireItem('Questionnaire.Input');
|
|
@@ -37,6 +37,7 @@ import { tv, type VariantProps } from 'tailwind-variants';
|
|
|
37
37
|
import { cn } from '../../utils/cn';
|
|
38
38
|
import { Text, textChildren } from '../../primitives/text';
|
|
39
39
|
import { requestRadioValueChange } from './radio-group-value';
|
|
40
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
40
41
|
|
|
41
42
|
type RadioVariant = 'dot' | 'card';
|
|
42
43
|
type RadioOrientation = 'vertical' | 'horizontal';
|
|
@@ -168,7 +169,7 @@ export interface RadioGroupProps extends ViewProps {
|
|
|
168
169
|
children: ReactNode;
|
|
169
170
|
}
|
|
170
171
|
|
|
171
|
-
const RadioGroupRoot = forwardRef<
|
|
172
|
+
const RadioGroupRoot = forwardRef<ViewRef, RadioGroupProps>(
|
|
172
173
|
(
|
|
173
174
|
{
|
|
174
175
|
className,
|
|
@@ -233,7 +234,7 @@ export interface RadioGroupItemProps {
|
|
|
233
234
|
children?: ReactNode;
|
|
234
235
|
}
|
|
235
236
|
|
|
236
|
-
const RadioGroupItem = forwardRef<
|
|
237
|
+
const RadioGroupItem = forwardRef<ViewRef, RadioGroupItemProps>(
|
|
237
238
|
(
|
|
238
239
|
{
|
|
239
240
|
className,
|
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
normalizeRatingPrecision,
|
|
49
49
|
normalizeRatingValue,
|
|
50
50
|
} from './rating-inputs';
|
|
51
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
51
52
|
|
|
52
53
|
/** Springs the fill onto its resting value after a tap or the end of a drag. */
|
|
53
54
|
const SPRING = { damping: 18, stiffness: 220, mass: 0.6 } as const;
|
|
@@ -194,7 +195,7 @@ function Star({
|
|
|
194
195
|
);
|
|
195
196
|
}
|
|
196
197
|
|
|
197
|
-
export const Rating = forwardRef<
|
|
198
|
+
export const Rating = forwardRef<ViewRef, RatingProps>(
|
|
198
199
|
(
|
|
199
200
|
{
|
|
200
201
|
className,
|
|
@@ -1028,6 +1028,15 @@ ScatterChartYAxis.layer = 'overlay' as Layer;
|
|
|
1028
1028
|
// plot out.
|
|
1029
1029
|
ScatterChartYAxis.axis = 'y' as const;
|
|
1030
1030
|
|
|
1031
|
+
/**
|
|
1032
|
+
* How long the readout waits before claiming the touch, in milliseconds.
|
|
1033
|
+
*
|
|
1034
|
+
* Long enough that a tap reaches a button drawn over the chart and a swipe
|
|
1035
|
+
* scrolls the screen, short enough that a deliberate press does not feel
|
|
1036
|
+
* ignored.
|
|
1037
|
+
*/
|
|
1038
|
+
const DEFAULT_HOLD = 180;
|
|
1039
|
+
|
|
1031
1040
|
export interface ScatterChartTooltipProps {
|
|
1032
1041
|
/** Float a small readout beside the selected point. On by default. */
|
|
1033
1042
|
showLabel?: boolean;
|
|
@@ -1039,6 +1048,16 @@ export interface ScatterChartTooltipProps {
|
|
|
1039
1048
|
formatTitle?: (datum: ScatterChartDatum) => string;
|
|
1040
1049
|
/** How far from a point a touch still counts as being on it, in points. */
|
|
1041
1050
|
hitRadius?: number;
|
|
1051
|
+
/**
|
|
1052
|
+
* How long a press has to be held before the readout takes the touch, in
|
|
1053
|
+
* milliseconds.
|
|
1054
|
+
*
|
|
1055
|
+
* Until then the touch belongs to whatever else wants it: a quick tap still
|
|
1056
|
+
* reaches a button floating over the chart, and a swipe still scrolls the
|
|
1057
|
+
* screen the chart sits in. Set `0` to read on contact, only for a chart with
|
|
1058
|
+
* nothing over it and no scroll view around it.
|
|
1059
|
+
*/
|
|
1060
|
+
activateAfterLongPress?: number;
|
|
1042
1061
|
}
|
|
1043
1062
|
|
|
1044
1063
|
/**
|
|
@@ -1064,6 +1083,7 @@ function ScatterChartTooltip({
|
|
|
1064
1083
|
formatY,
|
|
1065
1084
|
formatTitle,
|
|
1066
1085
|
hitRadius = HIT_RADIUS,
|
|
1086
|
+
activateAfterLongPress = DEFAULT_HOLD,
|
|
1067
1087
|
}: ScatterChartTooltipProps) {
|
|
1068
1088
|
const {
|
|
1069
1089
|
data,
|
|
@@ -1190,7 +1210,8 @@ function ScatterChartTooltip({
|
|
|
1190
1210
|
|
|
1191
1211
|
return Gesture.Pan()
|
|
1192
1212
|
.minDistance(0)
|
|
1193
|
-
.
|
|
1213
|
+
.activateAfterLongPress(activateAfterLongPress)
|
|
1214
|
+
.onStart((event) => {
|
|
1194
1215
|
'worklet';
|
|
1195
1216
|
resolve(event.x, event.y);
|
|
1196
1217
|
})
|
|
@@ -1202,7 +1223,7 @@ function ScatterChartTooltip({
|
|
|
1202
1223
|
'worklet';
|
|
1203
1224
|
clear();
|
|
1204
1225
|
});
|
|
1205
|
-
}, [hit, hitRadius, activeId, select]);
|
|
1226
|
+
}, [hit, hitRadius, activeId, select, activateAfterLongPress]);
|
|
1206
1227
|
|
|
1207
1228
|
// The readout sits above the point and is clamped inside the plot, so it
|
|
1208
1229
|
// never runs off an edge at an extreme value.
|
|
@@ -136,6 +136,8 @@ import {
|
|
|
136
136
|
isCrossing,
|
|
137
137
|
snapTarget,
|
|
138
138
|
} from './scroll-header-math';
|
|
139
|
+
import type { TextRef, ViewRef } from '../../primitives/refs';
|
|
140
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
139
141
|
|
|
140
142
|
/**
|
|
141
143
|
* Height of the pinned bar, in points, before the device's top inset is added.
|
|
@@ -302,7 +304,7 @@ export interface ScrollHeaderProps extends ViewProps {
|
|
|
302
304
|
* The band, and the scroller it sits over. Everything that is not a part is
|
|
303
305
|
* treated as the scrollable child.
|
|
304
306
|
*/
|
|
305
|
-
const ScrollHeaderRoot = forwardRef<
|
|
307
|
+
const ScrollHeaderRoot = forwardRef<ViewRef, ScrollHeaderProps>(
|
|
306
308
|
(
|
|
307
309
|
{
|
|
308
310
|
className,
|
|
@@ -351,7 +353,7 @@ const ScrollHeaderRoot = forwardRef<View, ScrollHeaderProps>(
|
|
|
351
353
|
: withTiming(next, { duration: HANDOVER_DURATION });
|
|
352
354
|
if (externalProgress) externalProgress.value = value;
|
|
353
355
|
return value;
|
|
354
|
-
}, [threshold, externalProgress]);
|
|
356
|
+
}, webDeps([threshold, externalProgress]));
|
|
355
357
|
|
|
356
358
|
// The one thing the transition tells React about. `collapsed` gates the
|
|
357
359
|
// accessibility of the two titles and is what `onCollapsedChange` reports;
|
|
@@ -370,7 +372,7 @@ const ScrollHeaderRoot = forwardRef<View, ScrollHeaderProps>(
|
|
|
370
372
|
if (!isCrossing(isCollapsed, was)) return;
|
|
371
373
|
runOnJS(cross)(isCollapsed);
|
|
372
374
|
},
|
|
373
|
-
[cross]
|
|
375
|
+
webDeps([cross])
|
|
374
376
|
);
|
|
375
377
|
|
|
376
378
|
const settle = useCallback(
|
|
@@ -460,7 +462,7 @@ const ScrollHeaderRoot = forwardRef<View, ScrollHeaderProps>(
|
|
|
460
462
|
settle(0);
|
|
461
463
|
},
|
|
462
464
|
},
|
|
463
|
-
[settle, forwards, forwardScroll]
|
|
465
|
+
webDeps([settle, forwards, forwardScroll])
|
|
464
466
|
);
|
|
465
467
|
|
|
466
468
|
const onScroll = useComposedEventHandler([
|
|
@@ -488,7 +490,7 @@ const ScrollHeaderRoot = forwardRef<View, ScrollHeaderProps>(
|
|
|
488
490
|
() => ({
|
|
489
491
|
height: bandHeight(barBand, largeHeight.value, offset.value, stretch && !reducedMotion),
|
|
490
492
|
}),
|
|
491
|
-
[barBand, stretch, reducedMotion]
|
|
493
|
+
webDeps([barBand, stretch, reducedMotion])
|
|
492
494
|
);
|
|
493
495
|
|
|
494
496
|
const metrics = useMemo<BandMetrics>(
|
|
@@ -594,7 +596,7 @@ export interface ScrollHeaderBarProps extends ViewProps {
|
|
|
594
596
|
* block leaves, which is what makes the change read as one crossfade rather
|
|
595
597
|
* than two things happening at once.
|
|
596
598
|
*/
|
|
597
|
-
const ScrollHeaderBar = forwardRef<
|
|
599
|
+
const ScrollHeaderBar = forwardRef<ViewRef, ScrollHeaderBarProps>(
|
|
598
600
|
(
|
|
599
601
|
{
|
|
600
602
|
className,
|
|
@@ -672,7 +674,7 @@ export interface ScrollHeaderLargeProps extends ViewProps {
|
|
|
672
674
|
* collapses over, so whatever is put in it — a title, a search field, a row of
|
|
673
675
|
* chips — sets the scroll distance rather than a prop having to agree with it.
|
|
674
676
|
*/
|
|
675
|
-
const ScrollHeaderLarge = forwardRef<
|
|
677
|
+
const ScrollHeaderLarge = forwardRef<ViewRef, ScrollHeaderLargeProps>(
|
|
676
678
|
({ className, onLayout, children, ...props }, ref) => {
|
|
677
679
|
const { progress, measureLarge, collapsed } = useScrollHeader('ScrollHeader.Large');
|
|
678
680
|
const { large } = scrollHeaderVariants();
|
|
@@ -717,7 +719,7 @@ ScrollHeaderLarge.displayName = 'ScrollHeader.Large';
|
|
|
717
719
|
* The screen's title. Written in both halves and styled from whichever it is
|
|
718
720
|
* in: large and at rest in the block, compact and fading in on the bar.
|
|
719
721
|
*/
|
|
720
|
-
const ScrollHeaderTitle = forwardRef<
|
|
722
|
+
const ScrollHeaderTitle = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
|
|
721
723
|
const { progress, largeHeight, collapsed, hasLarge } = useScrollHeader('ScrollHeader.Title');
|
|
722
724
|
const slot = useContext(ScrollHeaderSlotContext);
|
|
723
725
|
|
|
@@ -769,7 +771,7 @@ const ScrollHeaderTitle = forwardRef<RNText, TextProps>(({ className, ...props }
|
|
|
769
771
|
ScrollHeaderTitle.displayName = 'ScrollHeader.Title';
|
|
770
772
|
|
|
771
773
|
/** The quiet line under the title — a count, a byline, a date. */
|
|
772
|
-
const ScrollHeaderDescription = forwardRef<
|
|
774
|
+
const ScrollHeaderDescription = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => (
|
|
773
775
|
<Text {...props} ref={ref} size="sm" muted className={className} />
|
|
774
776
|
));
|
|
775
777
|
ScrollHeaderDescription.displayName = 'ScrollHeader.Description';
|
|
@@ -783,7 +785,7 @@ export interface ScrollHeaderActionsProps extends ViewProps {
|
|
|
783
785
|
* The controls at the trailing end of the bar. They stay put and stay
|
|
784
786
|
* reachable — only the bar's surface and title are part of the transition.
|
|
785
787
|
*/
|
|
786
|
-
const ScrollHeaderActions = forwardRef<
|
|
788
|
+
const ScrollHeaderActions = forwardRef<ViewRef, ScrollHeaderActionsProps>(
|
|
787
789
|
({ className, children, ...props }, ref) => {
|
|
788
790
|
const { actions } = scrollHeaderVariants();
|
|
789
791
|
return (
|
|
@@ -815,7 +817,7 @@ export interface ScrollHeaderCoverProps extends ViewProps {
|
|
|
815
817
|
* band's height is its height, which is why it stretches on an over-scroll by
|
|
816
818
|
* being laid out larger rather than by being scaled up and going soft.
|
|
817
819
|
*/
|
|
818
|
-
const ScrollHeaderCover = forwardRef<
|
|
820
|
+
const ScrollHeaderCover = forwardRef<ViewRef, ScrollHeaderCoverProps>(
|
|
819
821
|
(
|
|
820
822
|
{
|
|
821
823
|
className,
|