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
|
@@ -10,6 +10,7 @@ import { tv, type VariantProps } from 'tailwind-variants';
|
|
|
10
10
|
import { useCSSVariable } from 'uniwind';
|
|
11
11
|
import { CheckIcon, MinusIcon } from '../../icons';
|
|
12
12
|
import { Text } from '../../primitives/text';
|
|
13
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
13
14
|
|
|
14
15
|
const checkboxVariants = tv({
|
|
15
16
|
slots: {
|
|
@@ -146,7 +147,7 @@ export interface CheckboxProps
|
|
|
146
147
|
descriptionClassName?: string;
|
|
147
148
|
}
|
|
148
149
|
|
|
149
|
-
export const Checkbox = forwardRef<
|
|
150
|
+
export const Checkbox = forwardRef<ViewRef, CheckboxProps>(
|
|
150
151
|
(
|
|
151
152
|
{
|
|
152
153
|
className,
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
import { Text, textChildren } from '../../primitives/text';
|
|
42
42
|
import { cn } from '../../utils/cn';
|
|
43
43
|
import { selectionTick } from '../../utils/haptics';
|
|
44
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
44
45
|
|
|
45
46
|
const chipVariants = tv({
|
|
46
47
|
slots: {
|
|
@@ -188,7 +189,7 @@ export interface ChipProps
|
|
|
188
189
|
haptics?: boolean;
|
|
189
190
|
}
|
|
190
191
|
|
|
191
|
-
const ChipRoot = forwardRef<
|
|
192
|
+
const ChipRoot = forwardRef<ViewRef, ChipProps>(
|
|
192
193
|
(
|
|
193
194
|
{
|
|
194
195
|
children,
|
|
@@ -66,6 +66,7 @@ import { tv } from 'tailwind-variants';
|
|
|
66
66
|
import { ChevronDownIcon } from '../../icons';
|
|
67
67
|
import { Collapse } from '../../primitives/collapse';
|
|
68
68
|
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
69
|
+
import type { TextRef, ViewRef } from '../../primitives/refs';
|
|
69
70
|
|
|
70
71
|
export type CollapsibleVariant = 'default' | 'surface' | 'ghost';
|
|
71
72
|
|
|
@@ -124,7 +125,7 @@ export interface CollapsibleProps extends ViewProps {
|
|
|
124
125
|
children?: ReactNode;
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
const CollapsibleRoot = forwardRef<
|
|
128
|
+
const CollapsibleRoot = forwardRef<ViewRef, CollapsibleProps>(
|
|
128
129
|
(
|
|
129
130
|
{
|
|
130
131
|
className,
|
|
@@ -172,7 +173,7 @@ export interface CollapsibleTriggerProps extends Omit<PressableProps, 'children'
|
|
|
172
173
|
}
|
|
173
174
|
|
|
174
175
|
/** The pressable header row. Bare strings are wrapped in the title style. */
|
|
175
|
-
const CollapsibleTrigger = forwardRef<
|
|
176
|
+
const CollapsibleTrigger = forwardRef<ViewRef, CollapsibleTriggerProps>(
|
|
176
177
|
({ className, children, onPress, ...props }, ref) => {
|
|
177
178
|
const { open, toggle, isDisabled, variant } = useCollapsible('Collapsible.Trigger');
|
|
178
179
|
const { trigger, title } = collapsibleVariants({ variant });
|
|
@@ -199,7 +200,7 @@ const CollapsibleTrigger = forwardRef<View, CollapsibleTriggerProps>(
|
|
|
199
200
|
);
|
|
200
201
|
CollapsibleTrigger.displayName = 'Collapsible.Trigger';
|
|
201
202
|
|
|
202
|
-
const CollapsibleTitle = forwardRef<
|
|
203
|
+
const CollapsibleTitle = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
|
|
203
204
|
const { variant } = useCollapsible('Collapsible.Title');
|
|
204
205
|
const { title } = collapsibleVariants({ variant });
|
|
205
206
|
return <Text ref={ref} className={title({ className })} {...props} />;
|
|
@@ -213,7 +214,7 @@ export interface CollapsibleIndicatorProps extends ViewProps {
|
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
/** Chevron that rotates 180° while the body is open. */
|
|
216
|
-
const CollapsibleIndicator = forwardRef<
|
|
217
|
+
const CollapsibleIndicator = forwardRef<ViewRef, CollapsibleIndicatorProps>(
|
|
217
218
|
({ className, children, ...props }, ref) => {
|
|
218
219
|
const { open, variant } = useCollapsible('Collapsible.Indicator');
|
|
219
220
|
const { indicator } = collapsibleVariants({ variant });
|
|
@@ -256,7 +257,7 @@ export interface CollapsibleContentProps extends ViewProps {
|
|
|
256
257
|
* tree as well as from the eye, because a screen reader reading out a section
|
|
257
258
|
* that is not on screen is worse than one that skips it.
|
|
258
259
|
*/
|
|
259
|
-
const CollapsibleContent = forwardRef<
|
|
260
|
+
const CollapsibleContent = forwardRef<ViewRef, CollapsibleContentProps>(
|
|
260
261
|
({ className, children, ...props }, ref) => {
|
|
261
262
|
const { open, variant } = useCollapsible('Collapsible.Content');
|
|
262
263
|
const { content, contentText } = collapsibleVariants({ variant });
|
|
@@ -64,6 +64,8 @@ import {
|
|
|
64
64
|
useState,
|
|
65
65
|
type ReactElement,
|
|
66
66
|
type ReactNode,
|
|
67
|
+
type ComponentType as MaskComponentType,
|
|
68
|
+
type ReactElement as MaskReactElement,
|
|
67
69
|
} from 'react';
|
|
68
70
|
import {
|
|
69
71
|
Pressable,
|
|
@@ -72,8 +74,9 @@ import {
|
|
|
72
74
|
type AccessibilityActionEvent,
|
|
73
75
|
type LayoutChangeEvent,
|
|
74
76
|
type ViewStyle,
|
|
77
|
+
type ViewProps,
|
|
75
78
|
} from 'react-native';
|
|
76
|
-
import
|
|
79
|
+
import MaskedViewNative from '@react-native-masked-view/masked-view';
|
|
77
80
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
78
81
|
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
79
82
|
import Animated, {
|
|
@@ -109,6 +112,17 @@ import { cn } from '../../utils/cn';
|
|
|
109
112
|
import { selectionTick } from '../../utils/haptics';
|
|
110
113
|
import { Popover, type PopoverContentProps } from '../popover';
|
|
111
114
|
import { enabledColorPickerAction } from './color-picker-accessibility';
|
|
115
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
116
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
117
|
+
|
|
118
|
+
/*
|
|
119
|
+
* The masked view's own declarations build its class from a React Native type
|
|
120
|
+
* that 0.88 removed, so on 0.88 it cannot be used as JSX at all. It is typed
|
|
121
|
+
* here by its props instead, which is all this file relies on.
|
|
122
|
+
*/
|
|
123
|
+
const MaskedView = MaskedViewNative as unknown as MaskComponentType<
|
|
124
|
+
ViewProps & { maskElement: MaskReactElement; androidRenderingMode?: 'software' | 'hardware' }
|
|
125
|
+
>;
|
|
112
126
|
|
|
113
127
|
/** Settles a thumb that was moved by something other than a finger. */
|
|
114
128
|
const TIMING = { duration: 140 } as const;
|
|
@@ -287,7 +301,7 @@ export interface ColorPickerProps extends Omit<ColorPickerVariantProps, 'disable
|
|
|
287
301
|
children: ReactNode;
|
|
288
302
|
}
|
|
289
303
|
|
|
290
|
-
const ColorPickerRoot = forwardRef<
|
|
304
|
+
const ColorPickerRoot = forwardRef<ViewRef, ColorPickerProps>(
|
|
291
305
|
(
|
|
292
306
|
{
|
|
293
307
|
className,
|
|
@@ -499,7 +513,7 @@ export interface ColorPickerAreaProps {
|
|
|
499
513
|
thumbClassName?: string;
|
|
500
514
|
}
|
|
501
515
|
|
|
502
|
-
const ColorPickerArea = forwardRef<
|
|
516
|
+
const ColorPickerArea = forwardRef<ViewRef, ColorPickerAreaProps>(
|
|
503
517
|
({ className, height, thumbClassName }, ref) => {
|
|
504
518
|
const ctx = useColorPicker('ColorPicker.Area');
|
|
505
519
|
const slots = colorPickerVariants({ size: ctx.size });
|
|
@@ -678,7 +692,7 @@ interface ChannelTrackProps {
|
|
|
678
692
|
disabled: boolean;
|
|
679
693
|
accessibilityValue: { min: number; max: number; now: number; text: string };
|
|
680
694
|
onAccessibilityAction: (event: AccessibilityActionEvent) => void;
|
|
681
|
-
innerRef: React.ForwardedRef<
|
|
695
|
+
innerRef: React.ForwardedRef<ViewRef>;
|
|
682
696
|
}
|
|
683
697
|
|
|
684
698
|
function ChannelTrack({
|
|
@@ -754,7 +768,7 @@ export interface ColorPickerHueProps {
|
|
|
754
768
|
thumbClassName?: string;
|
|
755
769
|
}
|
|
756
770
|
|
|
757
|
-
const ColorPickerHue = forwardRef<
|
|
771
|
+
const ColorPickerHue = forwardRef<ViewRef, ColorPickerHueProps>(
|
|
758
772
|
({ className, thumbClassName }, ref) => {
|
|
759
773
|
const ctx = useColorPicker('ColorPicker.Hue');
|
|
760
774
|
const sign = useDirectionSign();
|
|
@@ -864,7 +878,7 @@ export interface ColorPickerAlphaProps {
|
|
|
864
878
|
thumbClassName?: string;
|
|
865
879
|
}
|
|
866
880
|
|
|
867
|
-
const ColorPickerAlpha = forwardRef<
|
|
881
|
+
const ColorPickerAlpha = forwardRef<ViewRef, ColorPickerAlphaProps>(
|
|
868
882
|
({ className, thumbClassName }, ref) => {
|
|
869
883
|
const ctx = useColorPicker('ColorPicker.Alpha');
|
|
870
884
|
const sign = useDirectionSign();
|
|
@@ -1015,7 +1029,7 @@ export interface ColorPickerPreviewProps {
|
|
|
1015
1029
|
children?: ReactNode;
|
|
1016
1030
|
}
|
|
1017
1031
|
|
|
1018
|
-
const ColorPickerPreview = forwardRef<
|
|
1032
|
+
const ColorPickerPreview = forwardRef<ViewRef, ColorPickerPreviewProps>(
|
|
1019
1033
|
({ className, showValue = false, swatchClassName, valueClassName, children }, ref) => {
|
|
1020
1034
|
const ctx = useColorPicker('ColorPicker.Preview');
|
|
1021
1035
|
const slots = colorPickerVariants({ size: ctx.size });
|
|
@@ -1048,7 +1062,7 @@ const ColorPickerPreview = forwardRef<View, ColorPickerPreviewProps>(
|
|
|
1048
1062
|
(current, previous) => {
|
|
1049
1063
|
if (current !== previous) runOnJS(setPrinted)(current);
|
|
1050
1064
|
},
|
|
1051
|
-
[format]
|
|
1065
|
+
webDeps([format])
|
|
1052
1066
|
);
|
|
1053
1067
|
|
|
1054
1068
|
const fillStyle = useAnimatedStyle(() => ({
|
|
@@ -1096,7 +1110,7 @@ export interface ColorPickerSwatchesProps {
|
|
|
1096
1110
|
swatchClassName?: string;
|
|
1097
1111
|
}
|
|
1098
1112
|
|
|
1099
|
-
const ColorPickerSwatches = forwardRef<
|
|
1113
|
+
const ColorPickerSwatches = forwardRef<ViewRef, ColorPickerSwatchesProps>(
|
|
1100
1114
|
({ className, colors, swatchSize, swatchClassName }, ref) => {
|
|
1101
1115
|
const ctx = useColorPicker('ColorPicker.Swatches');
|
|
1102
1116
|
const slots = colorPickerVariants({ size: ctx.size });
|
|
@@ -1234,7 +1248,7 @@ export interface ColorPickerFieldProps {
|
|
|
1234
1248
|
* JavaScript when the rounded string actually changes, the same as `Preview`.
|
|
1235
1249
|
* A drag through a hundred frames of the same hex costs one render.
|
|
1236
1250
|
*/
|
|
1237
|
-
const ColorPickerField = forwardRef<
|
|
1251
|
+
const ColorPickerField = forwardRef<ViewRef, ColorPickerFieldProps>(
|
|
1238
1252
|
({ className, label, showValue = true, swatchClassName, onPress, children }, ref) => {
|
|
1239
1253
|
const ctx = useColorPicker('ColorPicker.Field');
|
|
1240
1254
|
const slots = colorPickerVariants({ size: ctx.size });
|
|
@@ -1273,7 +1287,7 @@ const ColorPickerField = forwardRef<View, ColorPickerFieldProps>(
|
|
|
1273
1287
|
(current, previous) => {
|
|
1274
1288
|
if (current !== previous) runOnJS(setPrinted)(current);
|
|
1275
1289
|
},
|
|
1276
|
-
[format]
|
|
1290
|
+
webDeps([format])
|
|
1277
1291
|
);
|
|
1278
1292
|
|
|
1279
1293
|
const fillStyle = useAnimatedStyle(() => ({
|
|
@@ -1360,7 +1374,7 @@ export interface ColorPickerChannelProps {
|
|
|
1360
1374
|
* first and only sent when the rounded value changes, so a slow drag across a
|
|
1361
1375
|
* hue track sends 360 updates rather than one per frame.
|
|
1362
1376
|
*/
|
|
1363
|
-
const ColorPickerChannelReadout = forwardRef<
|
|
1377
|
+
const ColorPickerChannelReadout = forwardRef<ViewRef, ColorPickerChannelProps>(
|
|
1364
1378
|
({ className, channel, label, format }, ref) => {
|
|
1365
1379
|
const ctx = useColorPicker('ColorPicker.Channel');
|
|
1366
1380
|
const slots = colorPickerVariants({ size: ctx.size });
|
|
@@ -1383,7 +1397,7 @@ const ColorPickerChannelReadout = forwardRef<View, ColorPickerChannelProps>(
|
|
|
1383
1397
|
(current, previous) => {
|
|
1384
1398
|
if (current !== previous) runOnJS(setValue)(current);
|
|
1385
1399
|
},
|
|
1386
|
-
[channel]
|
|
1400
|
+
webDeps([channel])
|
|
1387
1401
|
);
|
|
1388
1402
|
|
|
1389
1403
|
const text = format
|
|
@@ -1420,7 +1434,7 @@ export interface ColorPickerBrightnessProps {
|
|
|
1420
1434
|
* around it never needs this. A wheel carries hue and saturation instead, and
|
|
1421
1435
|
* leaves brightness with nowhere to live — this is where it goes.
|
|
1422
1436
|
*/
|
|
1423
|
-
const ColorPickerBrightness = forwardRef<
|
|
1437
|
+
const ColorPickerBrightness = forwardRef<ViewRef, ColorPickerBrightnessProps>(
|
|
1424
1438
|
({ className, thumbClassName }, ref) => {
|
|
1425
1439
|
const ctx = useColorPicker('ColorPicker.Brightness');
|
|
1426
1440
|
const sign = useDirectionSign();
|
|
@@ -1593,7 +1607,7 @@ export interface ColorPickerWheelProps {
|
|
|
1593
1607
|
* which way round the spectrum runs would only make the same colour sit
|
|
1594
1608
|
* somewhere else.
|
|
1595
1609
|
*/
|
|
1596
|
-
const ColorPickerWheel = forwardRef<
|
|
1610
|
+
const ColorPickerWheel = forwardRef<ViewRef, ColorPickerWheelProps>(
|
|
1597
1611
|
({ className, size, thumbClassName }, ref) => {
|
|
1598
1612
|
const ctx = useColorPicker('ColorPicker.Wheel');
|
|
1599
1613
|
const slots = colorPickerVariants({ size: ctx.size });
|
|
@@ -83,6 +83,7 @@ import { useKeyboard } from '../../hooks/use-keyboard';
|
|
|
83
83
|
import { cn } from '../../utils/cn';
|
|
84
84
|
import { Chip } from '../chip';
|
|
85
85
|
import { Spinner } from '../spinner';
|
|
86
|
+
import type { TextInputRef, ViewRef } from '../../primitives/refs';
|
|
86
87
|
|
|
87
88
|
/** Matches Input's focus crossfade, so the two read as the same control. */
|
|
88
89
|
const FOCUS_DURATION = 150;
|
|
@@ -465,8 +466,8 @@ function ComboboxRoot<Mode extends ComboboxMode = 'single'>({
|
|
|
465
466
|
* `measureInWindow`. `inline` never reads the anchor, so the list it also
|
|
466
467
|
* wraps cannot skew anything.
|
|
467
468
|
*/
|
|
468
|
-
const fieldRef = useRef<
|
|
469
|
-
const inputRef = useRef<
|
|
469
|
+
const fieldRef = useRef<ViewRef>(null);
|
|
470
|
+
const inputRef = useRef<TextInputRef>(null);
|
|
470
471
|
const { height: screenHeight } = useWindowDimensions();
|
|
471
472
|
/*
|
|
472
473
|
* The keyboard is up whenever this list is open — the field is a text input
|
|
@@ -106,6 +106,7 @@ import {
|
|
|
106
106
|
type ContextMenuInvocation,
|
|
107
107
|
type ContextMenuKeyDownEvent,
|
|
108
108
|
} from './context-menu-invocation';
|
|
109
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
109
110
|
|
|
110
111
|
/**
|
|
111
112
|
* How long the target is held before the menu opens.
|
|
@@ -365,7 +366,7 @@ function ContextMenuTrigger({
|
|
|
365
366
|
}: ContextMenuTriggerProps) {
|
|
366
367
|
const { setOpen, anchorTo } = usePopoverAnchor('ContextMenu.Trigger');
|
|
367
368
|
const { setTarget, setContent, hasPreview } = useContextMenu('ContextMenu.Trigger');
|
|
368
|
-
const ref = useRef<
|
|
369
|
+
const ref = useRef<ViewRef>(null);
|
|
369
370
|
|
|
370
371
|
/*
|
|
371
372
|
* A preview overrules `anchor`, and has to.
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
type CountdownPart,
|
|
44
44
|
type CountdownUnit,
|
|
45
45
|
} from './countdown-time';
|
|
46
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
46
47
|
|
|
47
48
|
export type { CountdownUnit } from './countdown-time';
|
|
48
49
|
|
|
@@ -222,7 +223,7 @@ function Digits({
|
|
|
222
223
|
);
|
|
223
224
|
}
|
|
224
225
|
|
|
225
|
-
const CountdownRoot = forwardRef<
|
|
226
|
+
const CountdownRoot = forwardRef<ViewRef, CountdownProps>(function Countdown(
|
|
226
227
|
{
|
|
227
228
|
className,
|
|
228
229
|
to,
|
|
@@ -18,6 +18,7 @@ import { Scrim } from '../../primitives/scrim';
|
|
|
18
18
|
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
19
19
|
import { useBackHandler } from '../../hooks/use-back-handler';
|
|
20
20
|
import { cn } from '../../utils/cn';
|
|
21
|
+
import type { TextRef } from '../../primitives/refs';
|
|
21
22
|
|
|
22
23
|
interface DialogContextValue {
|
|
23
24
|
open: boolean;
|
|
@@ -149,7 +150,7 @@ function DialogContent({
|
|
|
149
150
|
);
|
|
150
151
|
}
|
|
151
152
|
|
|
152
|
-
const DialogTitle = forwardRef<
|
|
153
|
+
const DialogTitle = forwardRef<TextRef, TextProps>(
|
|
153
154
|
({ className, ...props }, ref) => (
|
|
154
155
|
<Text
|
|
155
156
|
ref={ref}
|
|
@@ -162,7 +163,7 @@ const DialogTitle = forwardRef<React.ElementRef<typeof Text>, TextProps>(
|
|
|
162
163
|
);
|
|
163
164
|
DialogTitle.displayName = 'Dialog.Title';
|
|
164
165
|
|
|
165
|
-
const DialogDescription = forwardRef<
|
|
166
|
+
const DialogDescription = forwardRef<TextRef, TextProps>(
|
|
166
167
|
({ className, ...props }, ref) => (
|
|
167
168
|
<Text ref={ref} size="sm" muted className={className} {...props} />
|
|
168
169
|
)
|
|
@@ -10,6 +10,7 @@ import { createContext, forwardRef, useContext, type ReactNode } from 'react';
|
|
|
10
10
|
import { View, type Text as RNText, type ViewProps } from 'react-native';
|
|
11
11
|
import { tv, type VariantProps } from 'tailwind-variants';
|
|
12
12
|
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
13
|
+
import type { TextRef, ViewRef } from '../../primitives/refs';
|
|
13
14
|
|
|
14
15
|
type EmptyStateSize = 'sm' | 'default' | 'lg';
|
|
15
16
|
|
|
@@ -87,7 +88,7 @@ export interface EmptyStateProps
|
|
|
87
88
|
children?: ReactNode;
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
const EmptyStateRoot = forwardRef<
|
|
91
|
+
const EmptyStateRoot = forwardRef<ViewRef, EmptyStateProps>(
|
|
91
92
|
({ className, variant, size = 'default', ...props }, ref) => {
|
|
92
93
|
const { root } = emptyStateVariants({ variant, size });
|
|
93
94
|
return (
|
|
@@ -100,7 +101,7 @@ const EmptyStateRoot = forwardRef<View, EmptyStateProps>(
|
|
|
100
101
|
EmptyStateRoot.displayName = 'EmptyState';
|
|
101
102
|
|
|
102
103
|
/** Groups Media, Title and Description into one centered column. */
|
|
103
|
-
const EmptyStateHeader = forwardRef<
|
|
104
|
+
const EmptyStateHeader = forwardRef<ViewRef, EmptyStateProps>(
|
|
104
105
|
({ className, ...props }, ref) => {
|
|
105
106
|
const { header } = emptyStateVariants();
|
|
106
107
|
return <View ref={ref} className={header({ className })} {...props} />;
|
|
@@ -119,7 +120,7 @@ export interface EmptyStateMediaProps
|
|
|
119
120
|
* Visual anchor above the title. `variant="icon"` frames the child in a small
|
|
120
121
|
* card with two rotated ghost cards fanned out behind it.
|
|
121
122
|
*/
|
|
122
|
-
const EmptyStateMedia = forwardRef<
|
|
123
|
+
const EmptyStateMedia = forwardRef<ViewRef, EmptyStateMediaProps>(
|
|
123
124
|
({ className, variant = 'default', children, ...props }, ref) => {
|
|
124
125
|
const { size } = useContext(EmptyStateContext);
|
|
125
126
|
const { wrapper, card, ghost } = mediaVariants({ variant, size });
|
|
@@ -147,14 +148,14 @@ const EmptyStateMedia = forwardRef<View, EmptyStateMediaProps>(
|
|
|
147
148
|
);
|
|
148
149
|
EmptyStateMedia.displayName = 'EmptyState.Media';
|
|
149
150
|
|
|
150
|
-
const EmptyStateTitle = forwardRef<
|
|
151
|
+
const EmptyStateTitle = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
|
|
151
152
|
const { size } = useContext(EmptyStateContext);
|
|
152
153
|
const { title } = emptyStateVariants({ size });
|
|
153
154
|
return <Text ref={ref} className={title({ className })} {...props} />;
|
|
154
155
|
});
|
|
155
156
|
EmptyStateTitle.displayName = 'EmptyState.Title';
|
|
156
157
|
|
|
157
|
-
const EmptyStateDescription = forwardRef<
|
|
158
|
+
const EmptyStateDescription = forwardRef<TextRef, TextProps>(
|
|
158
159
|
({ className, ...props }, ref) => {
|
|
159
160
|
const { size } = useContext(EmptyStateContext);
|
|
160
161
|
const { description } = emptyStateVariants({ size });
|
|
@@ -164,7 +165,7 @@ const EmptyStateDescription = forwardRef<RNText, TextProps>(
|
|
|
164
165
|
EmptyStateDescription.displayName = 'EmptyState.Description';
|
|
165
166
|
|
|
166
167
|
/** Slot below the header, for actions such as a primary button. */
|
|
167
|
-
const EmptyStateContent = forwardRef<
|
|
168
|
+
const EmptyStateContent = forwardRef<ViewRef, ViewProps & { className?: string }>(
|
|
168
169
|
({ className, ...props }, ref) => {
|
|
169
170
|
const { content } = emptyStateVariants();
|
|
170
171
|
return <View ref={ref} className={content({ className })} {...props} />;
|
|
@@ -148,6 +148,8 @@ import { Scrim } from '../../primitives/scrim';
|
|
|
148
148
|
import { Text } from '../../primitives/text';
|
|
149
149
|
import { cn } from '../../utils/cn';
|
|
150
150
|
import { selectionTick } from '../../utils/haptics';
|
|
151
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
152
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
151
153
|
|
|
152
154
|
/** Which corner the button sits in. */
|
|
153
155
|
export type FabPlacement = 'bottom-right' | 'bottom-center' | 'bottom-left';
|
|
@@ -415,7 +417,7 @@ export interface FabProps
|
|
|
415
417
|
accessibilityLabel?: string;
|
|
416
418
|
}
|
|
417
419
|
|
|
418
|
-
const FabRoot = forwardRef<
|
|
420
|
+
const FabRoot = forwardRef<ViewRef, FabProps>(
|
|
419
421
|
(
|
|
420
422
|
{
|
|
421
423
|
className,
|
|
@@ -662,7 +664,7 @@ export interface FabGroupProps extends Omit<ViewProps, 'children'> {
|
|
|
662
664
|
* screen's root container: it is what `offset` is measured from and what the
|
|
663
665
|
* scrim covers.
|
|
664
666
|
*/
|
|
665
|
-
const FabGroup = forwardRef<
|
|
667
|
+
const FabGroup = forwardRef<ViewRef, FabGroupProps>(
|
|
666
668
|
(
|
|
667
669
|
{
|
|
668
670
|
className,
|
|
@@ -762,7 +764,7 @@ const FabGroup = forwardRef<View, FabGroupProps>(
|
|
|
762
764
|
withSpring(open ? 1 : 0, OPEN_SPRING, (finished) => {
|
|
763
765
|
if (finished && !open) runOnJS(settle)();
|
|
764
766
|
}),
|
|
765
|
-
[open, settle]
|
|
767
|
+
webDeps([open, settle])
|
|
766
768
|
);
|
|
767
769
|
const present = open || closing;
|
|
768
770
|
|
|
@@ -1351,7 +1353,7 @@ export interface FabActionProps extends Omit<ViewProps, 'children'> {
|
|
|
1351
1353
|
* whatever the action just did is the wrong default: the dial is a menu, and a
|
|
1352
1354
|
* menu that stays up after a choice reads as the choice not having registered.
|
|
1353
1355
|
*/
|
|
1354
|
-
const FabAction = forwardRef<
|
|
1356
|
+
const FabAction = forwardRef<ViewRef, FabActionProps>(
|
|
1355
1357
|
(
|
|
1356
1358
|
{
|
|
1357
1359
|
className,
|
|
@@ -76,6 +76,7 @@ import { Scrim } from '../../primitives/scrim';
|
|
|
76
76
|
import { Text, textChildren, type TextProps } from '../../primitives/text';
|
|
77
77
|
import { useBackHandler } from '../../hooks/use-back-handler';
|
|
78
78
|
import { cn } from '../../utils/cn';
|
|
79
|
+
import type { TextInputRef, TextRef, ViewRef } from '../../primitives/refs';
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* The shell's padding, in points, and the corner it draws.
|
|
@@ -340,7 +341,7 @@ export interface FeedbackPanelProps extends ViewProps {
|
|
|
340
341
|
}
|
|
341
342
|
|
|
342
343
|
/** The well set into the shell: the title, the ✕ and the field. */
|
|
343
|
-
const FeedbackPanel = forwardRef<
|
|
344
|
+
const FeedbackPanel = forwardRef<ViewRef, FeedbackPanelProps>(
|
|
344
345
|
({ className, children, ...props }, ref) => {
|
|
345
346
|
const slots = feedbackVariants();
|
|
346
347
|
return (
|
|
@@ -357,7 +358,7 @@ const FeedbackPanel = forwardRef<View, FeedbackPanelProps>(
|
|
|
357
358
|
);
|
|
358
359
|
FeedbackPanel.displayName = 'Feedback.Panel';
|
|
359
360
|
|
|
360
|
-
const FeedbackTitle = forwardRef<
|
|
361
|
+
const FeedbackTitle = forwardRef<TextRef, TextProps>(
|
|
361
362
|
({ className, ...props }, ref) => {
|
|
362
363
|
const slots = feedbackVariants();
|
|
363
364
|
return <Text ref={ref} className={slots.title({ className })} {...props} />;
|
|
@@ -420,7 +421,7 @@ export interface FeedbackFieldProps
|
|
|
420
421
|
* accent there, and a field that overrides it is a field that looks like it
|
|
421
422
|
* belongs to a different phone.
|
|
422
423
|
*/
|
|
423
|
-
const FeedbackField = forwardRef<
|
|
424
|
+
const FeedbackField = forwardRef<TextInputRef, FeedbackFieldProps>(
|
|
424
425
|
(
|
|
425
426
|
{
|
|
426
427
|
className,
|
|
@@ -463,7 +464,7 @@ export interface FeedbackFooterProps extends ViewProps {
|
|
|
463
464
|
}
|
|
464
465
|
|
|
465
466
|
/** The action row, in the band under the panel. */
|
|
466
|
-
const FeedbackFooter = forwardRef<
|
|
467
|
+
const FeedbackFooter = forwardRef<ViewRef, FeedbackFooterProps>(
|
|
467
468
|
({ className, children, style, ...props }, ref) => {
|
|
468
469
|
const slots = feedbackVariants();
|
|
469
470
|
return (
|
|
@@ -40,6 +40,7 @@ import { tv } from 'tailwind-variants';
|
|
|
40
40
|
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
41
41
|
import { Label, type LabelProps } from '../label';
|
|
42
42
|
import { Separator } from '../separator';
|
|
43
|
+
import type { TextRef, ViewRef } from '../../primitives/refs';
|
|
43
44
|
|
|
44
45
|
const fieldVariants = tv({
|
|
45
46
|
slots: {
|
|
@@ -107,7 +108,7 @@ export interface FieldProps extends ViewProps {
|
|
|
107
108
|
children?: ReactNode;
|
|
108
109
|
}
|
|
109
110
|
|
|
110
|
-
const FieldRoot = forwardRef<
|
|
111
|
+
const FieldRoot = forwardRef<ViewRef, FieldProps>(
|
|
111
112
|
(
|
|
112
113
|
{
|
|
113
114
|
className,
|
|
@@ -158,7 +159,7 @@ export interface FieldContentProps extends ViewProps {
|
|
|
158
159
|
children?: ReactNode;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
|
-
const FieldContent = forwardRef<
|
|
162
|
+
const FieldContent = forwardRef<ViewRef, FieldContentProps>(
|
|
162
163
|
({ className, ...props }, ref) => {
|
|
163
164
|
const { content } = fieldVariants();
|
|
164
165
|
return <View ref={ref} className={content({ className })} {...props} />;
|
|
@@ -168,7 +169,7 @@ FieldContent.displayName = 'Field.Content';
|
|
|
168
169
|
|
|
169
170
|
export interface FieldLabelProps extends LabelProps {}
|
|
170
171
|
|
|
171
|
-
const FieldLabel = forwardRef<
|
|
172
|
+
const FieldLabel = forwardRef<ViewRef, FieldLabelProps>(
|
|
172
173
|
({ isRequired, isInvalid, isDisabled, nativeID, ...props }, ref) => {
|
|
173
174
|
const ctx = useContext(FieldContext);
|
|
174
175
|
return (
|
|
@@ -189,7 +190,7 @@ export interface FieldDescriptionProps extends TextProps {
|
|
|
189
190
|
className?: string;
|
|
190
191
|
}
|
|
191
192
|
|
|
192
|
-
const FieldDescription = forwardRef<
|
|
193
|
+
const FieldDescription = forwardRef<TextRef, FieldDescriptionProps>(
|
|
193
194
|
({ className, nativeID, ...props }, ref) => {
|
|
194
195
|
const { disabled, relationshipIds } = useContext(FieldContext);
|
|
195
196
|
const { description } = fieldVariants({ disabled });
|
|
@@ -217,7 +218,7 @@ export interface FieldErrorProps extends Omit<ViewProps, 'children'> {
|
|
|
217
218
|
children?: ReactNode;
|
|
218
219
|
}
|
|
219
220
|
|
|
220
|
-
const FieldError = forwardRef<
|
|
221
|
+
const FieldError = forwardRef<ViewRef, FieldErrorProps>(
|
|
221
222
|
({ className, errors, children, nativeID, ...props }, ref) => {
|
|
222
223
|
const { relationshipIds } = useContext(FieldContext);
|
|
223
224
|
const messages = useMemo(() => {
|
|
@@ -275,7 +276,7 @@ export interface FieldSetProps extends ViewProps {
|
|
|
275
276
|
children?: ReactNode;
|
|
276
277
|
}
|
|
277
278
|
|
|
278
|
-
const FieldSet = forwardRef<
|
|
279
|
+
const FieldSet = forwardRef<ViewRef, FieldSetProps>(
|
|
279
280
|
({ className, ...props }, ref) => {
|
|
280
281
|
const { set } = fieldVariants();
|
|
281
282
|
return <View ref={ref} {...props} role="group" className={set({ className })} />;
|
|
@@ -289,7 +290,7 @@ export interface FieldLegendProps extends TextProps {
|
|
|
289
290
|
variant?: 'legend' | 'label';
|
|
290
291
|
}
|
|
291
292
|
|
|
292
|
-
const FieldLegend = forwardRef<
|
|
293
|
+
const FieldLegend = forwardRef<TextRef, FieldLegendProps>(
|
|
293
294
|
({ className, variant = 'legend', ...props }, ref) => {
|
|
294
295
|
const { legend } = fieldVariants({ legendVariant: variant });
|
|
295
296
|
return (
|
|
@@ -304,7 +305,7 @@ export interface FieldGroupProps extends ViewProps {
|
|
|
304
305
|
children?: ReactNode;
|
|
305
306
|
}
|
|
306
307
|
|
|
307
|
-
const FieldGroup = forwardRef<
|
|
308
|
+
const FieldGroup = forwardRef<ViewRef, FieldGroupProps>(
|
|
308
309
|
({ className, ...props }, ref) => {
|
|
309
310
|
const { group } = fieldVariants();
|
|
310
311
|
return <View ref={ref} className={group({ className })} {...props} />;
|
|
@@ -318,7 +319,7 @@ export interface FieldSeparatorProps extends ViewProps {
|
|
|
318
319
|
children?: ReactNode;
|
|
319
320
|
}
|
|
320
321
|
|
|
321
|
-
const FieldSeparator = forwardRef<
|
|
322
|
+
const FieldSeparator = forwardRef<ViewRef, FieldSeparatorProps>(
|
|
322
323
|
({ className, children, ...props }, ref) => {
|
|
323
324
|
const { separator, separatorLabel } = fieldVariants();
|
|
324
325
|
return (
|
|
@@ -340,7 +341,7 @@ export interface FieldTitleProps extends TextProps {
|
|
|
340
341
|
className?: string;
|
|
341
342
|
}
|
|
342
343
|
|
|
343
|
-
const FieldTitle = forwardRef<
|
|
344
|
+
const FieldTitle = forwardRef<TextRef, FieldTitleProps>(
|
|
344
345
|
({ className, nativeID, ...props }, ref) => {
|
|
345
346
|
const { title } = fieldVariants();
|
|
346
347
|
const { relationshipIds } = useContext(FieldContext);
|
|
@@ -113,6 +113,7 @@ import {
|
|
|
113
113
|
type FileUploadSource,
|
|
114
114
|
type FileUploadStatus,
|
|
115
115
|
} from './file-upload-core';
|
|
116
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
116
117
|
|
|
117
118
|
export {
|
|
118
119
|
describeRules as describeFileUploadRules,
|
|
@@ -901,7 +902,7 @@ export interface FileUploadDropzoneProps extends Omit<AnimatedPressableProps, 'c
|
|
|
901
902
|
* picks something that is not. When a pick is turned away, the reason replaces
|
|
902
903
|
* that line until the next pick.
|
|
903
904
|
*/
|
|
904
|
-
const FileUploadDropzone = forwardRef<
|
|
905
|
+
const FileUploadDropzone = forwardRef<ViewRef, FileUploadDropzoneProps>(
|
|
905
906
|
({ className, title, description, icon, children, ...props }, ref) => {
|
|
906
907
|
const { accept, maxSize, maxFiles, multiple, disabled, invalid, canAddMore, rejections, files } =
|
|
907
908
|
useFileUpload();
|
|
@@ -1098,7 +1099,7 @@ export interface FileUploadListProps extends ViewProps {
|
|
|
1098
1099
|
}
|
|
1099
1100
|
|
|
1100
1101
|
/** Every file as a row, in the order it was added. */
|
|
1101
|
-
const FileUploadList = forwardRef<
|
|
1102
|
+
const FileUploadList = forwardRef<ViewRef, FileUploadListProps>(
|
|
1102
1103
|
({ className, horizontal = false, size, renderItem, empty, ...props }, ref) => {
|
|
1103
1104
|
const { files } = useFileUpload();
|
|
1104
1105
|
if (files.length === 0) return empty ? <>{empty}</> : null;
|
|
@@ -1299,7 +1300,7 @@ export interface FileUploadGridProps extends ViewProps {
|
|
|
1299
1300
|
* while it uploads. The add tile counts against `maxFiles`, so the limit is
|
|
1300
1301
|
* visible before anybody hits it.
|
|
1301
1302
|
*/
|
|
1302
|
-
const FileUploadGrid = forwardRef<
|
|
1303
|
+
const FileUploadGrid = forwardRef<ViewRef, FileUploadGridProps>(
|
|
1303
1304
|
(
|
|
1304
1305
|
{
|
|
1305
1306
|
className,
|
|
@@ -70,6 +70,7 @@ import Animated, {
|
|
|
70
70
|
} from 'react-native-reanimated';
|
|
71
71
|
import { tv } from 'tailwind-variants';
|
|
72
72
|
import { cn } from '../../utils/cn';
|
|
73
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
76
|
* How the card settles on a face.
|
|
@@ -184,7 +185,7 @@ export interface FlipCardProps extends Omit<ViewProps, 'children'> {
|
|
|
184
185
|
className?: string;
|
|
185
186
|
}
|
|
186
187
|
|
|
187
|
-
const FlipCardRoot = forwardRef<
|
|
188
|
+
const FlipCardRoot = forwardRef<ViewRef, FlipCardProps>(
|
|
188
189
|
(
|
|
189
190
|
{
|
|
190
191
|
children,
|
|
@@ -385,7 +386,7 @@ export interface FlipCardFaceProps extends ViewProps {
|
|
|
385
386
|
}
|
|
386
387
|
|
|
387
388
|
/** The face showing at rest. Its size is the card's size. */
|
|
388
|
-
const FlipCardFront = forwardRef<
|
|
389
|
+
const FlipCardFront = forwardRef<ViewRef, FlipCardFaceProps>(({ className, ...props }, ref) => (
|
|
389
390
|
<View
|
|
390
391
|
ref={ref}
|
|
391
392
|
// The backface is the first of the two mechanisms that hide a face turned
|
|
@@ -400,7 +401,7 @@ const FlipCardFront = forwardRef<View, FlipCardFaceProps>(({ className, ...props
|
|
|
400
401
|
));
|
|
401
402
|
|
|
402
403
|
/** The face revealed by the turn, laid over the front. */
|
|
403
|
-
const FlipCardBack = forwardRef<
|
|
404
|
+
const FlipCardBack = forwardRef<ViewRef, FlipCardFaceProps>(({ className, ...props }, ref) => (
|
|
404
405
|
<View
|
|
405
406
|
ref={ref}
|
|
406
407
|
style={{ backfaceVisibility: 'hidden' }}
|