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
|
@@ -132,8 +132,6 @@ import {
|
|
|
132
132
|
useWindowDimensions,
|
|
133
133
|
type LayoutChangeEvent,
|
|
134
134
|
type NativeSyntheticEvent,
|
|
135
|
-
type TextInputKeyPressEventData,
|
|
136
|
-
type TextInputSubmitEditingEventData,
|
|
137
135
|
type ViewProps,
|
|
138
136
|
type ViewStyle,
|
|
139
137
|
} from 'react-native';
|
|
@@ -161,6 +159,7 @@ import {
|
|
|
161
159
|
scheduleSearchBarDebounce,
|
|
162
160
|
type SearchBarDebounceTimer,
|
|
163
161
|
} from './search-bar-debounce';
|
|
162
|
+
import type { KeyPressEvent, SubmitEditingEvent, TextInputRef, ViewRef } from '../../primitives/refs';
|
|
164
163
|
|
|
165
164
|
/** Matches the field's own focus crossfade, so the row settles as one thing. */
|
|
166
165
|
const CANCEL_DURATION = 180;
|
|
@@ -529,7 +528,7 @@ export interface SearchBarProps
|
|
|
529
528
|
children?: ReactNode;
|
|
530
529
|
}
|
|
531
530
|
|
|
532
|
-
const SearchBarRoot = forwardRef<
|
|
531
|
+
const SearchBarRoot = forwardRef<TextInputRef, SearchBarProps>(
|
|
533
532
|
(
|
|
534
533
|
{
|
|
535
534
|
value: valueProp,
|
|
@@ -572,8 +571,8 @@ const SearchBarRoot = forwardRef<TextInput, SearchBarProps>(
|
|
|
572
571
|
const text = controlled ? valueProp : internal;
|
|
573
572
|
|
|
574
573
|
const [focused, setFocused] = useState(false);
|
|
575
|
-
const inputRef = useRef<
|
|
576
|
-
useImperativeHandle(ref, () => inputRef.current as
|
|
574
|
+
const inputRef = useRef<TextInputRef | null>(null);
|
|
575
|
+
useImperativeHandle(ref, () => inputRef.current as TextInputRef, []);
|
|
577
576
|
|
|
578
577
|
/*
|
|
579
578
|
* Counted rather than tested for truthiness: `{results.map(…)}` over an
|
|
@@ -726,7 +725,7 @@ const SearchBarRoot = forwardRef<TextInput, SearchBarProps>(
|
|
|
726
725
|
);
|
|
727
726
|
|
|
728
727
|
const handleKeyPress = useCallback(
|
|
729
|
-
(event:
|
|
728
|
+
(event: KeyPressEvent) => {
|
|
730
729
|
// Only on an empty field: while there is a query, backspace is editing
|
|
731
730
|
// it, and eating a token instead would delete something nobody aimed at.
|
|
732
731
|
if (event.nativeEvent.key === 'Backspace' && text.length === 0) {
|
|
@@ -738,7 +737,7 @@ const SearchBarRoot = forwardRef<TextInput, SearchBarProps>(
|
|
|
738
737
|
);
|
|
739
738
|
|
|
740
739
|
const handleSubmit = useCallback(
|
|
741
|
-
(event:
|
|
740
|
+
(event: SubmitEditingEvent) => {
|
|
742
741
|
if (disabled) return;
|
|
743
742
|
// A return key is somebody saying they are done waiting, so the
|
|
744
743
|
// pending pause is spent rather than waited out.
|
|
@@ -810,7 +809,7 @@ const SearchBarRoot = forwardRef<TextInput, SearchBarProps>(
|
|
|
810
809
|
useEffect(() => {
|
|
811
810
|
keyboardUp.current = keyboardHeight > 0;
|
|
812
811
|
}, [keyboardHeight]);
|
|
813
|
-
const anchorRef = useRef<
|
|
812
|
+
const anchorRef = useRef<ViewRef | null>(null);
|
|
814
813
|
const [anchorBox, setAnchorBox] = useState<{
|
|
815
814
|
top: number;
|
|
816
815
|
height: number;
|
|
@@ -86,6 +86,7 @@ import { useScrollProgress } from '../../primitives/scroll-progress';
|
|
|
86
86
|
import { Text, textChildren } from '../../primitives/text';
|
|
87
87
|
import { cn } from '../../utils/cn';
|
|
88
88
|
import { selectionTick } from '../../utils/haptics';
|
|
89
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
89
90
|
|
|
90
91
|
const AnimatedCircle = Animated.createAnimatedComponent(Circle);
|
|
91
92
|
|
|
@@ -383,7 +384,7 @@ function SectionProgressRoot({
|
|
|
383
384
|
const clamped = next < 0 ? 0 : next > 1 ? 1 : next;
|
|
384
385
|
filled.value = withTiming(clamped, { duration: PROGRESS_EASE });
|
|
385
386
|
},
|
|
386
|
-
[progress, source]
|
|
387
|
+
webDeps([progress, source])
|
|
387
388
|
);
|
|
388
389
|
|
|
389
390
|
const radius = (RING_SIZE - RING_STROKE) / 2;
|
|
@@ -413,7 +414,7 @@ function SectionProgressRoot({
|
|
|
413
414
|
(next, previous) => {
|
|
414
415
|
if (next !== previous) runOnJS(setRevealed)(next);
|
|
415
416
|
},
|
|
416
|
-
[revealAt, source]
|
|
417
|
+
webDeps([revealAt, source])
|
|
417
418
|
);
|
|
418
419
|
|
|
419
420
|
const shown = useSharedValue(revealAt <= 0 ? 1 : 0);
|
|
@@ -72,6 +72,7 @@ import { cn } from '../../utils/cn';
|
|
|
72
72
|
import { BottomSheet, bottomSheetDetentHeight } from '../bottom-sheet';
|
|
73
73
|
import { InputGroup } from '../input-group';
|
|
74
74
|
import { nativeSelectSupportsOptions } from './native-select-contract';
|
|
75
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
75
76
|
|
|
76
77
|
const selectVariants = tv({
|
|
77
78
|
slots: {
|
|
@@ -553,7 +554,7 @@ function SelectRoot({
|
|
|
553
554
|
const [query, setQuery] = useState('');
|
|
554
555
|
const [anchor, setAnchor] = useState<Anchor | null>(null);
|
|
555
556
|
const [listHeight, setListHeight] = useState(0);
|
|
556
|
-
const triggerRef = useRef<
|
|
557
|
+
const triggerRef = useRef<ViewRef>(null);
|
|
557
558
|
const chevron = useSharedValue(0);
|
|
558
559
|
const { height: screenHeight } = useWindowDimensions();
|
|
559
560
|
const insets = useSafeAreaInsets();
|
|
@@ -27,6 +27,7 @@ import { View, type ViewProps } from 'react-native';
|
|
|
27
27
|
import { tv, type VariantProps } from 'tailwind-variants';
|
|
28
28
|
import { Text } from '../../primitives/text';
|
|
29
29
|
import { cn } from '../../utils/cn';
|
|
30
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
30
31
|
|
|
31
32
|
const separatorVariants = tv({
|
|
32
33
|
base: 'bg-border',
|
|
@@ -81,7 +82,7 @@ export interface SeparatorProps
|
|
|
81
82
|
labelClassName?: string;
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
export const Separator = forwardRef<
|
|
85
|
+
export const Separator = forwardRef<ViewRef, SeparatorProps>(
|
|
85
86
|
(
|
|
86
87
|
{
|
|
87
88
|
className,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Set `as="view"` to shimmer arbitrary children (skeleton blocks, cards) — the
|
|
14
14
|
* mask is then the rendered subtree's alpha instead of a line of text.
|
|
15
15
|
*/
|
|
16
|
-
import { useEffect, useState, type ReactNode } from 'react';
|
|
16
|
+
import { useEffect, useState, type ComponentType, type ReactElement, type ReactNode } from 'react';
|
|
17
17
|
import {
|
|
18
18
|
StyleSheet,
|
|
19
19
|
View,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
type TextStyle,
|
|
23
23
|
type ViewProps,
|
|
24
24
|
} from 'react-native';
|
|
25
|
-
import
|
|
25
|
+
import MaskedViewNative from '@react-native-masked-view/masked-view';
|
|
26
26
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
27
27
|
import Animated, {
|
|
28
28
|
cancelAnimation,
|
|
@@ -38,6 +38,15 @@ import { useDirectionSign } from '../../hooks/use-direction';
|
|
|
38
38
|
import { Text } from '../../primitives/text';
|
|
39
39
|
import { cn } from '../../utils/cn';
|
|
40
40
|
|
|
41
|
+
/*
|
|
42
|
+
* The masked view's own declarations build its class from a React Native type
|
|
43
|
+
* that 0.88 removed, so on 0.88 it cannot be used as JSX at all. It is typed
|
|
44
|
+
* here by its props instead, which is all this file relies on.
|
|
45
|
+
*/
|
|
46
|
+
const MaskedView = MaskedViewNative as unknown as ComponentType<
|
|
47
|
+
ViewProps & { maskElement: ReactElement; androidRenderingMode?: 'software' | 'hardware' }
|
|
48
|
+
>;
|
|
49
|
+
|
|
41
50
|
export interface ShimmerProps extends ViewProps {
|
|
42
51
|
className?: string;
|
|
43
52
|
/**
|
|
@@ -92,6 +92,7 @@ import {
|
|
|
92
92
|
signatureAnnouncement,
|
|
93
93
|
type SignatureChangeKind,
|
|
94
94
|
} from './signature-accessibility';
|
|
95
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
95
96
|
|
|
96
97
|
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
97
98
|
|
|
@@ -333,7 +334,7 @@ function SignatureRoot(
|
|
|
333
334
|
// The live stroke: a flat buffer so the worklet reads numbers rather than
|
|
334
335
|
// objects, which is what keeps the per-frame cost flat.
|
|
335
336
|
const live = useSharedValue<number[]>([]);
|
|
336
|
-
const padRef = useRef<
|
|
337
|
+
const padRef = useRef<ViewRef>(null);
|
|
337
338
|
|
|
338
339
|
const inkToken = useCSSVariable('--color-foreground');
|
|
339
340
|
const ink =
|
|
@@ -82,6 +82,7 @@ import { ColorPicker } from '../color-picker';
|
|
|
82
82
|
import { AnimatedPressable } from '../../primitives/animated-pressable';
|
|
83
83
|
import { cn } from '../../utils/cn';
|
|
84
84
|
import { selectionTick } from '../../utils/haptics';
|
|
85
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
85
86
|
|
|
86
87
|
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
87
88
|
|
|
@@ -580,7 +581,7 @@ function SketchRoot(
|
|
|
580
581
|
const [layout, setLayout] = useState({ width: 0, height: 0 });
|
|
581
582
|
|
|
582
583
|
const ink = color ?? foreground;
|
|
583
|
-
const canvasRef = useRef<
|
|
584
|
+
const canvasRef = useRef<ViewRef>(null);
|
|
584
585
|
|
|
585
586
|
// Mirrors of the state the gesture reads, so it is built once and the live
|
|
586
587
|
// stroke is drawn in the tool and width chosen at the moment it started.
|
|
@@ -76,6 +76,7 @@ import {
|
|
|
76
76
|
VELOCITY_LOOKAHEAD,
|
|
77
77
|
resolveThreshold,
|
|
78
78
|
} from './slide-button-track';
|
|
79
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* How the handle settles when it is let go, in either direction.
|
|
@@ -278,7 +279,7 @@ function SlideButtonRoot(
|
|
|
278
279
|
children,
|
|
279
280
|
...props
|
|
280
281
|
}: SlideButtonProps,
|
|
281
|
-
ref: React.Ref<
|
|
282
|
+
ref: React.Ref<ViewRef>
|
|
282
283
|
) {
|
|
283
284
|
const reducedMotion = useReducedMotion();
|
|
284
285
|
const sign = useDirectionSign();
|
|
@@ -45,6 +45,7 @@ import { useDirectionSign } from '../../hooks/use-direction';
|
|
|
45
45
|
import { NativeHost, getNativeUI } from '../../native';
|
|
46
46
|
import { Text } from '../../primitives/text';
|
|
47
47
|
import { selectionTick } from '../../utils/haptics';
|
|
48
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
48
49
|
|
|
49
50
|
/**
|
|
50
51
|
* Springs the thumb onto its resting step after a drag or a track tap. Drags
|
|
@@ -201,7 +202,7 @@ function recordStep(last: Record<Thumb, number>, thumb: Thumb, next: number) {
|
|
|
201
202
|
return true;
|
|
202
203
|
}
|
|
203
204
|
|
|
204
|
-
export const Slider = forwardRef<
|
|
205
|
+
export const Slider = forwardRef<ViewRef, SliderProps>(
|
|
205
206
|
(
|
|
206
207
|
{
|
|
207
208
|
className,
|
|
@@ -74,7 +74,6 @@ import Animated, {
|
|
|
74
74
|
measure,
|
|
75
75
|
runOnJS,
|
|
76
76
|
scrollTo,
|
|
77
|
-
useAnimatedRef,
|
|
78
77
|
useAnimatedStyle,
|
|
79
78
|
useDerivedValue,
|
|
80
79
|
useFrameCallback,
|
|
@@ -90,6 +89,7 @@ import { GripVerticalIcon, IconColorProvider } from '../../icons';
|
|
|
90
89
|
import { cn } from '../../utils/cn';
|
|
91
90
|
import { impactKnock, selectionTick } from '../../utils/haptics';
|
|
92
91
|
import { moveWithPinned, stepWithPinned } from './reorder';
|
|
92
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Rows getting out of the way of the one being carried. Quick, because they
|
|
@@ -595,19 +595,17 @@ function SortableRoot({
|
|
|
595
595
|
at += (map[id] ?? 0) + gap;
|
|
596
596
|
}
|
|
597
597
|
return result;
|
|
598
|
-
}, [gap]);
|
|
598
|
+
}, webDeps([gap]));
|
|
599
599
|
|
|
600
600
|
/* ---------------------------------------------------------------------- */
|
|
601
601
|
/* Autoscroll */
|
|
602
602
|
/* ---------------------------------------------------------------------- */
|
|
603
603
|
|
|
604
604
|
/*
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
* to nothing — which is exactly the case where there is no scrolling to do.
|
|
605
|
+
* With no scroller there is nothing to follow, so the hook is given no ref
|
|
606
|
+
* rather than one attached to nothing, which Reanimated warns about.
|
|
608
607
|
*/
|
|
609
|
-
const
|
|
610
|
-
const scrollOffset = useScrollViewOffset(scrollRef ?? fallbackRef);
|
|
608
|
+
const scrollOffset = useScrollViewOffset(scrollRef ?? null);
|
|
611
609
|
|
|
612
610
|
/**
|
|
613
611
|
* Where the scroller stood when the drag began. The row follows the finger,
|
|
@@ -63,6 +63,7 @@ import {
|
|
|
63
63
|
resolveLayout,
|
|
64
64
|
type SplitterConstraint,
|
|
65
65
|
} from './splitter-math';
|
|
66
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
66
67
|
|
|
67
68
|
export type SplitterOrientation = 'horizontal' | 'vertical';
|
|
68
69
|
|
|
@@ -346,7 +347,7 @@ function SplitterPanel({ className, children, style, ...props }: SplitterPanelPr
|
|
|
346
347
|
const animatedStyle = useAnimatedStyle(() => {
|
|
347
348
|
const size = (context.available.value * (context.layout.value[index] ?? 0)) / 100;
|
|
348
349
|
return horizontal ? { width: size } : { height: size };
|
|
349
|
-
}, [index, horizontal]);
|
|
350
|
+
}, webDeps([index, horizontal]));
|
|
350
351
|
|
|
351
352
|
// Nothing is measured on the first frame, and a pane sized from a container of
|
|
352
353
|
// zero is a pane nobody can see. Until the measurement lands, a definite flex
|
|
@@ -511,7 +512,7 @@ function SplitterHandle({
|
|
|
511
512
|
opacity: 1,
|
|
512
513
|
transform: horizontal ? [{ translateX: shift * sign }] : [{ translateY: shift }],
|
|
513
514
|
};
|
|
514
|
-
}, [boundary, horizontal, sign]);
|
|
515
|
+
}, webDeps([boundary, horizontal, sign]));
|
|
515
516
|
|
|
516
517
|
// A step moves the seam along the layout, not along the screen, so it is the
|
|
517
518
|
// one piece of this that the reading direction does not touch: incrementing
|
|
@@ -126,6 +126,8 @@ import {
|
|
|
126
126
|
tiltAngle,
|
|
127
127
|
type StackCardDirection,
|
|
128
128
|
} from './stack-card-geometry';
|
|
129
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
130
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
129
131
|
|
|
130
132
|
export type { StackCardDirection } from './stack-card-geometry';
|
|
131
133
|
|
|
@@ -433,7 +435,7 @@ const StackCardRoot = forwardRef<StackCardHandle, StackCardProps>(
|
|
|
433
435
|
|
|
434
436
|
const release = useDerivedValue(
|
|
435
437
|
() => releaseProgress(allowed, x.value, y.value, width.value, height.value, threshold),
|
|
436
|
-
[allowed, threshold]
|
|
438
|
+
webDeps([allowed, threshold])
|
|
437
439
|
);
|
|
438
440
|
|
|
439
441
|
/*
|
|
@@ -691,7 +693,7 @@ const StackCardRoot = forwardRef<StackCardHandle, StackCardProps>(
|
|
|
691
693
|
if (wasPast === null || past === wasPast || !past) return;
|
|
692
694
|
runOnJS(tick)(haptics);
|
|
693
695
|
},
|
|
694
|
-
[haptics]
|
|
696
|
+
webDeps([haptics])
|
|
695
697
|
);
|
|
696
698
|
|
|
697
699
|
/**
|
|
@@ -1097,7 +1099,7 @@ export interface StackCardCardProps extends ViewProps {
|
|
|
1097
1099
|
* content already reads as a deck, and restyled from `className` like anything
|
|
1098
1100
|
* else. It fills the pile on both axes: the pile's box is the card's size.
|
|
1099
1101
|
*/
|
|
1100
|
-
const StackCardCard = forwardRef<
|
|
1102
|
+
const StackCardCard = forwardRef<ViewRef, StackCardCardProps>(({ className, ...props }, ref) => (
|
|
1101
1103
|
<View
|
|
1102
1104
|
ref={ref}
|
|
1103
1105
|
{...props}
|
|
@@ -1186,7 +1188,7 @@ export interface StackCardStampProps
|
|
|
1186
1188
|
* point, since the haptic is off for a lot of people and silent on most
|
|
1187
1189
|
* Android hardware.
|
|
1188
1190
|
*/
|
|
1189
|
-
const StackCardStamp = forwardRef<
|
|
1191
|
+
const StackCardStamp = forwardRef<ViewRef, StackCardStampProps>(
|
|
1190
1192
|
(
|
|
1191
1193
|
{
|
|
1192
1194
|
className,
|
|
@@ -1255,7 +1257,7 @@ export interface StackCardEmptyProps extends ViewProps {
|
|
|
1255
1257
|
* is the right answer when something else on the screen already says the queue
|
|
1256
1258
|
* is finished.
|
|
1257
1259
|
*/
|
|
1258
|
-
const StackCardEmpty = forwardRef<
|
|
1260
|
+
const StackCardEmpty = forwardRef<ViewRef, StackCardEmptyProps>(({ className, ...props }, ref) => (
|
|
1259
1261
|
<View
|
|
1260
1262
|
ref={ref}
|
|
1261
1263
|
{...props}
|
|
@@ -1279,7 +1281,7 @@ export interface StackCardActionsProps extends ViewProps {
|
|
|
1279
1281
|
* The row of buttons under the pile. Laid out after it rather than over it, so
|
|
1280
1282
|
* the buttons are not competing with the card for the same touches.
|
|
1281
1283
|
*/
|
|
1282
|
-
const StackCardActions = forwardRef<
|
|
1284
|
+
const StackCardActions = forwardRef<ViewRef, StackCardActionsProps>(
|
|
1283
1285
|
({ className, ...props }, ref) => (
|
|
1284
1286
|
<View
|
|
1285
1287
|
ref={ref}
|
|
@@ -1346,7 +1348,7 @@ export interface StackCardActionProps
|
|
|
1346
1348
|
* button that still looks pressable over an exhausted deck is the commonest
|
|
1347
1349
|
* way one of these ends up feeling broken.
|
|
1348
1350
|
*/
|
|
1349
|
-
const StackCardAction = forwardRef<
|
|
1351
|
+
const StackCardAction = forwardRef<ViewRef, StackCardActionProps>(
|
|
1350
1352
|
({ className, action, icon, label, color = 'default', size = 'md', onPress, ...props }, ref) => {
|
|
1351
1353
|
const context = useStackCardContext('StackCard.Action');
|
|
1352
1354
|
const slots = actionVariants({ color, size });
|
|
@@ -51,6 +51,7 @@ import { CheckIcon } from '../../icons';
|
|
|
51
51
|
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
52
52
|
import { Spinner } from '../spinner';
|
|
53
53
|
import { stepsTriggerDisabled } from './steps-trigger';
|
|
54
|
+
import type { TextRef, ViewRef } from '../../primitives/refs';
|
|
54
55
|
|
|
55
56
|
export type StepState = 'active' | 'completed' | 'inactive' | 'loading';
|
|
56
57
|
export type StepsOrientation = 'horizontal' | 'vertical';
|
|
@@ -174,7 +175,7 @@ export interface StepsProps extends ViewProps {
|
|
|
174
175
|
children?: ReactNode;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
const StepsRoot = forwardRef<
|
|
178
|
+
const StepsRoot = forwardRef<ViewRef, StepsProps>(
|
|
178
179
|
(
|
|
179
180
|
{
|
|
180
181
|
className,
|
|
@@ -251,7 +252,7 @@ export interface StepsItemProps extends ViewProps {
|
|
|
251
252
|
children?: ReactNode;
|
|
252
253
|
}
|
|
253
254
|
|
|
254
|
-
const StepsItem = forwardRef<
|
|
255
|
+
const StepsItem = forwardRef<ViewRef, StepsItemProps>(
|
|
255
256
|
(
|
|
256
257
|
{ className, step, completed = false, disabled = false, loading = false, children, ...props },
|
|
257
258
|
ref
|
|
@@ -314,7 +315,7 @@ const STATE_WORDS: Record<StepState, string> = {
|
|
|
314
315
|
};
|
|
315
316
|
|
|
316
317
|
/** Makes its item selectable. Omit it for a read-only stepper. */
|
|
317
|
-
const StepsTrigger = forwardRef<
|
|
318
|
+
const StepsTrigger = forwardRef<ViewRef, StepsTriggerProps>(
|
|
318
319
|
(
|
|
319
320
|
{
|
|
320
321
|
className,
|
|
@@ -378,7 +379,7 @@ export interface StepsIndicatorProps extends ViewProps {
|
|
|
378
379
|
* The circle. Shows the step number, a check once completed, or a spinner
|
|
379
380
|
* while loading.
|
|
380
381
|
*/
|
|
381
|
-
const StepsIndicator = forwardRef<
|
|
382
|
+
const StepsIndicator = forwardRef<ViewRef, StepsIndicatorProps>(
|
|
382
383
|
({ className, children, ...props }, ref) => {
|
|
383
384
|
const { orientation } = useSteps('Steps.Indicator');
|
|
384
385
|
const { step, state, isLoading } = useStepItem('Steps.Indicator');
|
|
@@ -408,7 +409,7 @@ const StepsIndicator = forwardRef<View, StepsIndicatorProps>(
|
|
|
408
409
|
);
|
|
409
410
|
StepsIndicator.displayName = 'Steps.Indicator';
|
|
410
411
|
|
|
411
|
-
const StepsTitle = forwardRef<
|
|
412
|
+
const StepsTitle = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
|
|
412
413
|
const { orientation } = useSteps('Steps.Title');
|
|
413
414
|
const { state } = useStepItem('Steps.Title');
|
|
414
415
|
const { title } = stepsVariants({ orientation, state });
|
|
@@ -416,7 +417,7 @@ const StepsTitle = forwardRef<RNText, TextProps>(({ className, ...props }, ref)
|
|
|
416
417
|
});
|
|
417
418
|
StepsTitle.displayName = 'Steps.Title';
|
|
418
419
|
|
|
419
|
-
const StepsDescription = forwardRef<
|
|
420
|
+
const StepsDescription = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
|
|
420
421
|
const { orientation } = useSteps('Steps.Description');
|
|
421
422
|
const { state } = useStepItem('Steps.Description');
|
|
422
423
|
const { description } = stepsVariants({ orientation, state });
|
|
@@ -437,7 +438,7 @@ export interface StepsSeparatorProps extends ViewProps {
|
|
|
437
438
|
* second. It belongs inside a `Steps.Item` either way, so it can read that
|
|
438
439
|
* item's state: the connector after step 1 goes solid when step 1 is done.
|
|
439
440
|
*/
|
|
440
|
-
const StepsSeparator = forwardRef<
|
|
441
|
+
const StepsSeparator = forwardRef<ViewRef, StepsSeparatorProps>(
|
|
441
442
|
({ className, ...props }, ref) => {
|
|
442
443
|
const { orientation } = useSteps('Steps.Separator');
|
|
443
444
|
const { state } = useStepItem('Steps.Separator');
|
|
@@ -41,6 +41,7 @@ import { tv, type VariantProps } from 'tailwind-variants';
|
|
|
41
41
|
import { AnimatedPressable } from '../../primitives/animated-pressable';
|
|
42
42
|
import { Text, textChildren } from '../../primitives/text';
|
|
43
43
|
import { cn } from '../../utils/cn';
|
|
44
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
44
45
|
|
|
45
46
|
/** Whether anyone is at the other end. */
|
|
46
47
|
export type SupportAvailability = 'online' | 'away' | 'offline';
|
|
@@ -142,7 +143,7 @@ export interface SupportProps extends ViewProps {
|
|
|
142
143
|
children?: ReactNode;
|
|
143
144
|
}
|
|
144
145
|
|
|
145
|
-
const SupportRoot = forwardRef<
|
|
146
|
+
const SupportRoot = forwardRef<ViewRef, SupportProps>(function SupportRoot(
|
|
146
147
|
{ className, availability = 'online', children, ...props },
|
|
147
148
|
ref
|
|
148
149
|
) {
|
|
@@ -170,7 +171,7 @@ export interface SupportHeaderProps extends ViewProps {
|
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
/** The screen's title, and room beside it for whoever is answering. */
|
|
173
|
-
const SupportHeader = forwardRef<
|
|
174
|
+
const SupportHeader = forwardRef<ViewRef, SupportHeaderProps>(function SupportHeader(
|
|
174
175
|
{ className, title, description, children, ...props },
|
|
175
176
|
ref
|
|
176
177
|
) {
|
|
@@ -213,7 +214,7 @@ export interface SupportStatusProps extends ViewProps {
|
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
/** Whether anyone is there, and how long an answer takes. */
|
|
216
|
-
const SupportStatus = forwardRef<
|
|
217
|
+
const SupportStatus = forwardRef<ViewRef, SupportStatusProps>(function SupportStatus(
|
|
217
218
|
{ className, availability: availabilityProp, replyTime, children, ...props },
|
|
218
219
|
ref
|
|
219
220
|
) {
|
|
@@ -252,7 +253,7 @@ export interface SupportGroupProps extends ViewProps {
|
|
|
252
253
|
|
|
253
254
|
/** A titled run of rows. Shared by Channels, Conversations and Articles. */
|
|
254
255
|
function group(name: string) {
|
|
255
|
-
const Group = forwardRef<
|
|
256
|
+
const Group = forwardRef<ViewRef, SupportGroupProps>(function Group(
|
|
256
257
|
{ className, title, children, ...props },
|
|
257
258
|
ref
|
|
258
259
|
) {
|
|
@@ -293,7 +294,7 @@ export interface SupportChannelProps extends Omit<ViewProps, 'children'> {
|
|
|
293
294
|
* it costs you in waiting — and a grid of icons with one word under each puts
|
|
294
295
|
* the reader in front of a quiz about which one is right.
|
|
295
296
|
*/
|
|
296
|
-
const SupportChannel = forwardRef<
|
|
297
|
+
const SupportChannel = forwardRef<ViewRef, SupportChannelProps>(function SupportChannel(
|
|
297
298
|
{ className, icon, label, description, detail, disabled = false, onPress, ...props },
|
|
298
299
|
ref
|
|
299
300
|
) {
|
|
@@ -353,7 +354,7 @@ export interface SupportTopicsProps extends ViewProps {
|
|
|
353
354
|
* without one, and the ones that need it are the ones routing to different
|
|
354
355
|
* teams. Single-select: a request goes to one queue.
|
|
355
356
|
*/
|
|
356
|
-
const SupportTopics = forwardRef<
|
|
357
|
+
const SupportTopics = forwardRef<ViewRef, SupportTopicsProps>(function SupportTopics(
|
|
357
358
|
{ className, title, value: valueProp, defaultValue = null, onValueChange, children, ...props },
|
|
358
359
|
ref
|
|
359
360
|
) {
|
|
@@ -402,7 +403,7 @@ export interface SupportTopicProps extends Omit<ViewProps, 'children'> {
|
|
|
402
403
|
}
|
|
403
404
|
|
|
404
405
|
/** One thing the problem could be about. */
|
|
405
|
-
const SupportTopic = forwardRef<
|
|
406
|
+
const SupportTopic = forwardRef<ViewRef, SupportTopicProps>(function SupportTopic(
|
|
406
407
|
{ className, value, icon, label, description, disabled = false, onPress, ...props },
|
|
407
408
|
ref
|
|
408
409
|
) {
|
|
@@ -467,7 +468,7 @@ export interface SupportConversationProps extends Omit<ViewProps, 'children'> {
|
|
|
467
468
|
}
|
|
468
469
|
|
|
469
470
|
/** One request the reader already made, and what has happened to it. */
|
|
470
|
-
const SupportConversation = forwardRef<
|
|
471
|
+
const SupportConversation = forwardRef<ViewRef, SupportConversationProps>(
|
|
471
472
|
function SupportConversation(
|
|
472
473
|
{
|
|
473
474
|
className,
|
|
@@ -561,7 +562,7 @@ export interface SupportArticleProps extends Omit<ViewProps, 'children'> {
|
|
|
561
562
|
}
|
|
562
563
|
|
|
563
564
|
/** A page from the help centre, for the questions that have a written answer. */
|
|
564
|
-
const SupportArticle = forwardRef<
|
|
565
|
+
const SupportArticle = forwardRef<ViewRef, SupportArticleProps>(function SupportArticle(
|
|
565
566
|
{ className, icon, title, collection, onPress, ...props },
|
|
566
567
|
ref
|
|
567
568
|
) {
|
|
@@ -618,7 +619,7 @@ export interface SupportAgentProps extends Omit<ViewProps, 'children' | 'role'>
|
|
|
618
619
|
* sitting beside it, because the two answer the same question and the live one
|
|
619
620
|
* wins.
|
|
620
621
|
*/
|
|
621
|
-
const SupportAgent = forwardRef<
|
|
622
|
+
const SupportAgent = forwardRef<ViewRef, SupportAgentProps>(function SupportAgent(
|
|
622
623
|
{ className, avatar, name, role, availability: availabilityProp, typing = false, ...props },
|
|
623
624
|
ref
|
|
624
625
|
) {
|
|
@@ -664,7 +665,7 @@ export interface SupportTicketProps extends Omit<ViewProps, 'children'> {
|
|
|
664
665
|
}
|
|
665
666
|
|
|
666
667
|
/** The request this thread belongs to, pinned above it. */
|
|
667
|
-
const SupportTicket = forwardRef<
|
|
668
|
+
const SupportTicket = forwardRef<ViewRef, SupportTicketProps>(function SupportTicket(
|
|
668
669
|
{ className, reference, subject, status = 'open', ...props },
|
|
669
670
|
ref
|
|
670
671
|
) {
|
|
@@ -714,7 +715,7 @@ export interface SupportHandoffProps extends ViewProps {
|
|
|
714
715
|
* between them, leaves the reader working out who they are talking to from the
|
|
715
716
|
* writing style.
|
|
716
717
|
*/
|
|
717
|
-
const SupportHandoff = forwardRef<
|
|
718
|
+
const SupportHandoff = forwardRef<ViewRef, SupportHandoffProps>(function SupportHandoff(
|
|
718
719
|
{ className, icon, children, ...props },
|
|
719
720
|
ref
|
|
720
721
|
) {
|
|
@@ -748,7 +749,7 @@ export interface SupportNoteProps extends ViewProps {
|
|
|
748
749
|
* somebody is deciding whether it is worth typing, and an expectation set four
|
|
749
750
|
* screens ago is not one they still have in mind.
|
|
750
751
|
*/
|
|
751
|
-
const SupportNote = forwardRef<
|
|
752
|
+
const SupportNote = forwardRef<ViewRef, SupportNoteProps>(function SupportNote(
|
|
752
753
|
{ className, children, ...props },
|
|
753
754
|
ref
|
|
754
755
|
) {
|
|
@@ -774,7 +775,7 @@ export interface SupportRepliesProps extends ViewProps {
|
|
|
774
775
|
}
|
|
775
776
|
|
|
776
777
|
/** The suggested answers under a turn. */
|
|
777
|
-
const SupportReplies = forwardRef<
|
|
778
|
+
const SupportReplies = forwardRef<ViewRef, SupportRepliesProps>(function SupportReplies(
|
|
778
779
|
{ className, children, ...props },
|
|
779
780
|
ref
|
|
780
781
|
) {
|
|
@@ -804,7 +805,7 @@ export interface SupportReplyProps extends Omit<ViewProps, 'children'> {
|
|
|
804
805
|
* screen from the first turn, and a component that makes it easy to put there
|
|
805
806
|
* is a component that gets it put there.
|
|
806
807
|
*/
|
|
807
|
-
const SupportReply = forwardRef<
|
|
808
|
+
const SupportReply = forwardRef<ViewRef, SupportReplyProps>(function SupportReply(
|
|
808
809
|
{ className, value, label, disabled = false, onPress, ...props },
|
|
809
810
|
ref
|
|
810
811
|
) {
|
|
@@ -838,7 +839,7 @@ export interface SupportResolutionProps extends ViewProps {
|
|
|
838
839
|
}
|
|
839
840
|
|
|
840
841
|
/** Whether it actually helped, asked at the end of a thread. */
|
|
841
|
-
const SupportResolution = forwardRef<
|
|
842
|
+
const SupportResolution = forwardRef<ViewRef, SupportResolutionProps>(
|
|
842
843
|
function SupportResolution({ className, title = 'Did this solve it?', children, ...props }, ref) {
|
|
843
844
|
const { resolution } = supportVariants();
|
|
844
845
|
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
import { forwardRef } from 'react';
|
|
22
22
|
import { StyleSheet, View, type ViewProps } from 'react-native';
|
|
23
23
|
import { tv, type VariantProps } from 'tailwind-variants';
|
|
24
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
24
25
|
|
|
25
26
|
const surfaceVariants = tv({
|
|
26
27
|
base: 'overflow-hidden rounded-3xl',
|
|
@@ -69,7 +70,7 @@ export interface SurfaceProps
|
|
|
69
70
|
padding?: 'none' | 'sm' | 'default' | 'lg';
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
export const Surface = forwardRef<
|
|
73
|
+
export const Surface = forwardRef<ViewRef, SurfaceProps>(
|
|
73
74
|
({ className, variant, padding, bordered, elevated, style, ...props }, ref) => (
|
|
74
75
|
<View
|
|
75
76
|
ref={ref}
|
|
@@ -65,6 +65,7 @@ import { AnimatedPressable } from '../../primitives/animated-pressable';
|
|
|
65
65
|
import { Text } from '../../primitives/text';
|
|
66
66
|
import { cn } from '../../utils/cn';
|
|
67
67
|
import { selectionTick } from '../../utils/haptics';
|
|
68
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
68
69
|
|
|
69
70
|
const SPRING = { damping: 22, stiffness: 220, mass: 0.7 } as const;
|
|
70
71
|
|
|
@@ -164,7 +165,7 @@ export interface SwipeGroupProps extends ViewProps {
|
|
|
164
165
|
* to that row's shared value, so opening a row costs the springs it starts and
|
|
165
166
|
* no React work at all.
|
|
166
167
|
*/
|
|
167
|
-
const SwipeGroup = forwardRef<
|
|
168
|
+
const SwipeGroup = forwardRef<ViewRef, SwipeGroupProps>(
|
|
168
169
|
({ className, children, exclusive = true, ...props }, ref) => {
|
|
169
170
|
/*
|
|
170
171
|
* A ref rather than state: membership changes as rows mount and unmount,
|
|
@@ -321,7 +322,7 @@ export interface SwipeActionProps
|
|
|
321
322
|
* One tile behind the row. Sized by its own content down to a minimum wide
|
|
322
323
|
* enough to hit, so a one-word action and a two-word one still line up.
|
|
323
324
|
*/
|
|
324
|
-
const SwipeAction = forwardRef<
|
|
325
|
+
const SwipeAction = forwardRef<ViewRef, SwipeActionProps>(
|
|
325
326
|
(
|
|
326
327
|
{
|
|
327
328
|
className,
|
|
@@ -417,10 +418,10 @@ export interface SwipePanelProps extends Omit<ViewProps, 'children'> {
|
|
|
417
418
|
* caller says which side an action belongs to, and it keeps both sides
|
|
418
419
|
* readable in source rather than hidden inside two render props.
|
|
419
420
|
*/
|
|
420
|
-
const SwipeStart = forwardRef<
|
|
421
|
+
const SwipeStart = forwardRef<ViewRef, SwipePanelProps>(() => null);
|
|
421
422
|
SwipeStart.displayName = 'Swipe.Start';
|
|
422
423
|
|
|
423
|
-
const SwipeEnd = forwardRef<
|
|
424
|
+
const SwipeEnd = forwardRef<ViewRef, SwipePanelProps>(() => null);
|
|
424
425
|
SwipeEnd.displayName = 'Swipe.End';
|
|
425
426
|
|
|
426
427
|
/* -------------------------------------------------------------------------- */
|
|
@@ -11,6 +11,7 @@ import { useDirectionSign } from '../../hooks/use-direction';
|
|
|
11
11
|
import { NativeHost, getNativeUI } from '../../native';
|
|
12
12
|
import { selectionTick } from '../../utils/haptics';
|
|
13
13
|
import { useFieldLabelledBy } from '../field';
|
|
14
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
14
15
|
|
|
15
16
|
const SPRING = { damping: 18, stiffness: 250, mass: 0.5 } as const;
|
|
16
17
|
|
|
@@ -100,7 +101,7 @@ export interface SwitchProps
|
|
|
100
101
|
*/
|
|
101
102
|
const NATIVE_TOGGLE_HEIGHT = 32;
|
|
102
103
|
|
|
103
|
-
export const Switch = forwardRef<
|
|
104
|
+
export const Switch = forwardRef<ViewRef, SwitchProps>(
|
|
104
105
|
(
|
|
105
106
|
{
|
|
106
107
|
className,
|