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
|
@@ -81,6 +81,7 @@ import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
|
81
81
|
import { cn } from '../../utils/cn';
|
|
82
82
|
import { selectionTick } from '../../utils/haptics';
|
|
83
83
|
import { Frame } from '../frame';
|
|
84
|
+
import type { TextRef, ViewRef } from '../../primitives/refs';
|
|
84
85
|
|
|
85
86
|
/** Long enough to read as the arrow turning over, short enough not to lag a tap. */
|
|
86
87
|
const SORT_DURATION = 160;
|
|
@@ -250,7 +251,7 @@ export interface TableProps extends ViewProps, VariantProps<typeof tableVariants
|
|
|
250
251
|
children?: ReactNode;
|
|
251
252
|
}
|
|
252
253
|
|
|
253
|
-
const TableRoot = forwardRef<
|
|
254
|
+
const TableRoot = forwardRef<ViewRef, TableProps>(
|
|
254
255
|
(
|
|
255
256
|
{ className, variant, size = 'default', striped = false, columns, children, ...props },
|
|
256
257
|
ref
|
|
@@ -297,7 +298,7 @@ export interface TableHeaderProps extends ViewProps {
|
|
|
297
298
|
}
|
|
298
299
|
|
|
299
300
|
/** The band of column headers. Draws the rule that separates it from the body. */
|
|
300
|
-
const TableHeader = forwardRef<
|
|
301
|
+
const TableHeader = forwardRef<ViewRef, TableHeaderProps>(
|
|
301
302
|
({ className, children, ...props }, ref) => {
|
|
302
303
|
const rows = useSectionRows(children, 'header');
|
|
303
304
|
|
|
@@ -321,7 +322,7 @@ export interface TableBodyProps extends ViewProps {
|
|
|
321
322
|
}
|
|
322
323
|
|
|
323
324
|
/** The data rows. Renders every child it is given — see `FlatList` for long tables. */
|
|
324
|
-
const TableBody = forwardRef<
|
|
325
|
+
const TableBody = forwardRef<ViewRef, TableBodyProps>(
|
|
325
326
|
({ className, children, ...props }, ref) => {
|
|
326
327
|
const rows = useSectionRows(children, 'body');
|
|
327
328
|
|
|
@@ -340,7 +341,7 @@ export interface TableFooterProps extends ViewProps {
|
|
|
340
341
|
}
|
|
341
342
|
|
|
342
343
|
/** Totals band. Tinted and ruled off, because a sum is not another row of data. */
|
|
343
|
-
const TableFooter = forwardRef<
|
|
344
|
+
const TableFooter = forwardRef<ViewRef, TableFooterProps>(
|
|
344
345
|
({ className, children, ...props }, ref) => {
|
|
345
346
|
const rows = useSectionRows(children, 'footer');
|
|
346
347
|
|
|
@@ -382,7 +383,7 @@ export interface TableRowProps
|
|
|
382
383
|
* Renders as a pressable when given `onPress`, and as a plain view otherwise,
|
|
383
384
|
* so a table you only read does not announce every row as a button.
|
|
384
385
|
*/
|
|
385
|
-
const TableRow = forwardRef<
|
|
386
|
+
const TableRow = forwardRef<ViewRef, TableRowProps>(
|
|
386
387
|
({ className, selected, disabled, index, last, children, onPress, ...props }, ref) => {
|
|
387
388
|
const { size, striped, columns } = useContext(TableContext);
|
|
388
389
|
const row = useContext(TableRowContext);
|
|
@@ -500,7 +501,7 @@ export interface TableHeadProps extends Omit<ViewProps, 'children'> {
|
|
|
500
501
|
* the press; which column, which way and in what order stay with the caller,
|
|
501
502
|
* because the data being sorted is theirs.
|
|
502
503
|
*/
|
|
503
|
-
const TableHead = forwardRef<
|
|
504
|
+
const TableHead = forwardRef<ViewRef, TableHeadProps>(
|
|
504
505
|
(
|
|
505
506
|
{
|
|
506
507
|
className,
|
|
@@ -647,7 +648,7 @@ export interface TableCellProps extends ViewProps {
|
|
|
647
648
|
* row of strings needs no `Text` around each one; anything else — a Badge, an
|
|
648
649
|
* Avatar, a Button — is rendered as given.
|
|
649
650
|
*/
|
|
650
|
-
const TableCell = forwardRef<
|
|
651
|
+
const TableCell = forwardRef<ViewRef, TableCellProps>(
|
|
651
652
|
(
|
|
652
653
|
{
|
|
653
654
|
className,
|
|
@@ -695,7 +696,7 @@ export interface TableCaptionProps extends TextProps {
|
|
|
695
696
|
* Place it after the body: a caption read before the columns is a heading, and
|
|
696
697
|
* a heading is not this component's job.
|
|
697
698
|
*/
|
|
698
|
-
const TableCaption = forwardRef<
|
|
699
|
+
const TableCaption = forwardRef<TextRef, TableCaptionProps>(
|
|
699
700
|
({ className, ...props }, ref) => {
|
|
700
701
|
const { size } = useContext(TableContext);
|
|
701
702
|
const { caption } = tableVariants({ size });
|
|
@@ -715,7 +716,7 @@ export interface TableEmptyProps extends ViewProps {
|
|
|
715
716
|
* and no rows under it looks broken rather than empty, and the header is worth
|
|
716
717
|
* keeping: it says what would be there.
|
|
717
718
|
*/
|
|
718
|
-
const TableEmpty = forwardRef<
|
|
719
|
+
const TableEmpty = forwardRef<ViewRef, TableEmptyProps>(
|
|
719
720
|
({ className, children, ...props }, ref) => {
|
|
720
721
|
const { size } = useContext(TableContext);
|
|
721
722
|
const { caption } = tableVariants({ size });
|
|
@@ -780,7 +781,7 @@ export interface TableFrameProps extends Omit<ViewProps, 'children'> {
|
|
|
780
781
|
* </Table.Frame>
|
|
781
782
|
* ```
|
|
782
783
|
*/
|
|
783
|
-
const TableFrame = forwardRef<
|
|
784
|
+
const TableFrame = forwardRef<ViewRef, TableFrameProps>(
|
|
784
785
|
(
|
|
785
786
|
{
|
|
786
787
|
className,
|
|
@@ -71,6 +71,8 @@ import { tv } from 'tailwind-variants';
|
|
|
71
71
|
import { useDirectionSign } from '../../hooks/use-direction';
|
|
72
72
|
import { Text, textChildren } from '../../primitives/text';
|
|
73
73
|
import { cn } from '../../utils/cn';
|
|
74
|
+
import type { ScrollViewRef } from '../../primitives/refs';
|
|
75
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
74
76
|
|
|
75
77
|
const SPRING = { damping: 24, stiffness: 300, mass: 0.7 } as const;
|
|
76
78
|
|
|
@@ -736,7 +738,7 @@ function TabsPager({
|
|
|
736
738
|
*/
|
|
737
739
|
const strip = useAnimatedStyle(
|
|
738
740
|
() => ({ transform: [{ translateX: -position.value * width * sign }] }),
|
|
739
|
-
[width, sign]
|
|
741
|
+
webDeps([width, sign])
|
|
740
742
|
);
|
|
741
743
|
|
|
742
744
|
const onLayout = useCallback((event: LayoutChangeEvent) => {
|
|
@@ -880,7 +882,7 @@ function TabsList({
|
|
|
880
882
|
}: TabsListProps) {
|
|
881
883
|
const { variant, value, layouts } = useTabs('Tabs.List');
|
|
882
884
|
const { list } = tabsVariants({ variant });
|
|
883
|
-
const scroller = useRef<
|
|
885
|
+
const scroller = useRef<ScrollViewRef>(null);
|
|
884
886
|
|
|
885
887
|
/*
|
|
886
888
|
* Where the row should be, kept as a ref rather than only applied once.
|
|
@@ -45,7 +45,6 @@ import {
|
|
|
45
45
|
TextInput,
|
|
46
46
|
View,
|
|
47
47
|
type NativeSyntheticEvent,
|
|
48
|
-
type TextInputKeyPressEventData,
|
|
49
48
|
type TextInputProps,
|
|
50
49
|
} from 'react-native';
|
|
51
50
|
import Animated, {
|
|
@@ -65,6 +64,7 @@ import { selectionTick } from '../../utils/haptics';
|
|
|
65
64
|
import { Chip, type ChipSize, type ChipVariant } from '../chip';
|
|
66
65
|
import { Label } from '../label';
|
|
67
66
|
import { reconcileMarkedTag, type MarkedTag } from './tag-input-state';
|
|
67
|
+
import type { KeyPressEvent, TextInputRef } from '../../primitives/refs';
|
|
68
68
|
|
|
69
69
|
/** Matches Input and Combobox, so the three read as the same control focused. */
|
|
70
70
|
const FOCUS_DURATION = 150;
|
|
@@ -244,7 +244,7 @@ export interface TagInputProps
|
|
|
244
244
|
haptics?: boolean;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
export const TagInput = forwardRef<
|
|
247
|
+
export const TagInput = forwardRef<TextInputRef, TagInputProps>(
|
|
248
248
|
(
|
|
249
249
|
{
|
|
250
250
|
className,
|
|
@@ -284,8 +284,8 @@ export const TagInput = forwardRef<TextInput, TagInputProps>(
|
|
|
284
284
|
},
|
|
285
285
|
ref
|
|
286
286
|
) => {
|
|
287
|
-
const inputRef = useRef<
|
|
288
|
-
useImperativeHandle(ref, () => inputRef.current as
|
|
287
|
+
const inputRef = useRef<TextInputRef>(null);
|
|
288
|
+
useImperativeHandle(ref, () => inputRef.current as TextInputRef);
|
|
289
289
|
|
|
290
290
|
const [ownTags, setOwnTags] = useState<string[]>(defaultValue ?? []);
|
|
291
291
|
const tags = value ?? ownTags;
|
|
@@ -409,7 +409,7 @@ export const TagInput = forwardRef<TextInput, TagInputProps>(
|
|
|
409
409
|
);
|
|
410
410
|
|
|
411
411
|
const handleKeyPress = useCallback(
|
|
412
|
-
(event:
|
|
412
|
+
(event: KeyPressEvent) => {
|
|
413
413
|
onKeyPress?.(event);
|
|
414
414
|
if (event.nativeEvent.key !== 'Backspace') {
|
|
415
415
|
setMarked(null);
|
|
@@ -63,6 +63,7 @@ import { tv } from 'tailwind-variants';
|
|
|
63
63
|
import { useCSSVariable } from 'uniwind';
|
|
64
64
|
import { cn } from '../../utils/cn';
|
|
65
65
|
import { Text, type TextProps } from '../../primitives/text';
|
|
66
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
66
67
|
|
|
67
68
|
const AnimatedText = Animated.createAnimatedComponent(RNText);
|
|
68
69
|
|
|
@@ -651,7 +652,7 @@ function TextAnimationCounting({
|
|
|
651
652
|
(current, previous) => {
|
|
652
653
|
if (current !== previous) runOnJS(setShown)(current);
|
|
653
654
|
},
|
|
654
|
-
[factor]
|
|
655
|
+
webDeps([factor])
|
|
655
656
|
);
|
|
656
657
|
|
|
657
658
|
return (
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
TextInput,
|
|
25
25
|
View,
|
|
26
26
|
type NativeSyntheticEvent,
|
|
27
|
-
type TextInputContentSizeChangeEventData,
|
|
28
27
|
type TextInputProps,
|
|
29
28
|
} from 'react-native';
|
|
30
29
|
import Animated, {
|
|
@@ -40,6 +39,7 @@ import { KeyboardAvoider } from '../../primitives/keyboard-avoider';
|
|
|
40
39
|
import { Text } from '../../primitives/text';
|
|
41
40
|
import { Label } from '../label';
|
|
42
41
|
import { textareaIsDisabled } from './textarea-disabled';
|
|
42
|
+
import type { ContentSizeChangeEvent, TextInputRef } from '../../primitives/refs';
|
|
43
43
|
|
|
44
44
|
/** Long enough to read as a transition, short enough not to lag a fast tab. */
|
|
45
45
|
const FOCUS_DURATION = 150;
|
|
@@ -167,7 +167,7 @@ export interface TextareaProps
|
|
|
167
167
|
|
|
168
168
|
const AnimatedTextInput = Animated.createAnimatedComponent(TextInput);
|
|
169
169
|
|
|
170
|
-
export const Textarea = forwardRef<
|
|
170
|
+
export const Textarea = forwardRef<TextInputRef, TextareaProps>(
|
|
171
171
|
(
|
|
172
172
|
{
|
|
173
173
|
className,
|
|
@@ -283,7 +283,7 @@ export const Textarea = forwardRef<TextInput, TextareaProps>(
|
|
|
283
283
|
);
|
|
284
284
|
|
|
285
285
|
const handleContentSizeChange = useCallback(
|
|
286
|
-
(event:
|
|
286
|
+
(event: ContentSizeChangeEvent) => {
|
|
287
287
|
if (autoGrow) {
|
|
288
288
|
setContentHeight(event.nativeEvent.contentSize.height);
|
|
289
289
|
}
|
|
@@ -97,6 +97,7 @@ import {
|
|
|
97
97
|
import { Button } from '../button';
|
|
98
98
|
import { Dialog } from '../dialog';
|
|
99
99
|
import { Popover } from '../popover';
|
|
100
|
+
import type { ScrollViewRef } from '../../primitives/refs';
|
|
100
101
|
|
|
101
102
|
export type { HourCycle, TimeValue };
|
|
102
103
|
|
|
@@ -833,7 +834,7 @@ function RulerFace({
|
|
|
833
834
|
readout = 'default',
|
|
834
835
|
}: FaceProps) {
|
|
835
836
|
const slots = timePickerVariants({ readout });
|
|
836
|
-
const ref = useRef<
|
|
837
|
+
const ref = useRef<ScrollViewRef>(null);
|
|
837
838
|
const { times, index } = useBoundedTimes(minuteStep, minTime, maxTime, value);
|
|
838
839
|
const resting = useRef(index);
|
|
839
840
|
/*
|
|
@@ -80,6 +80,7 @@ import { IconColorProvider } from '../../icons';
|
|
|
80
80
|
import { selectionTick } from '../../utils/haptics';
|
|
81
81
|
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
82
82
|
import { TIMELINE_WIDE_COLUMN, timelineColumnOffsets, timelineColumnWidth } from './timeline-geometry';
|
|
83
|
+
import type { TextRef, ViewRef } from '../../primitives/refs';
|
|
83
84
|
|
|
84
85
|
const AnimatedText = Animated.createAnimatedComponent(Text);
|
|
85
86
|
|
|
@@ -498,7 +499,7 @@ export interface TimelineProps extends ViewProps {
|
|
|
498
499
|
children?: ReactNode;
|
|
499
500
|
}
|
|
500
501
|
|
|
501
|
-
const TimelineRoot = forwardRef<
|
|
502
|
+
const TimelineRoot = forwardRef<ViewRef, TimelineProps>(
|
|
502
503
|
(
|
|
503
504
|
{
|
|
504
505
|
className,
|
|
@@ -765,7 +766,7 @@ export interface TimelineItemProps extends ViewProps {
|
|
|
765
766
|
children?: ReactNode;
|
|
766
767
|
}
|
|
767
768
|
|
|
768
|
-
const TimelineItem = forwardRef<
|
|
769
|
+
const TimelineItem = forwardRef<ViewRef, TimelineItemProps>(
|
|
769
770
|
(
|
|
770
771
|
{
|
|
771
772
|
className,
|
|
@@ -893,7 +894,7 @@ TimelineItem.displayName = 'Timeline.Item';
|
|
|
893
894
|
* Right-aligned meta column to the left of the rail — a time, a category, a
|
|
894
895
|
* person. Place it before `Timeline.Indicator`.
|
|
895
896
|
*/
|
|
896
|
-
const TimelineAside = forwardRef<
|
|
897
|
+
const TimelineAside = forwardRef<ViewRef, ViewProps & { className?: string }>(
|
|
897
898
|
({ className, style, ...props }, ref) => {
|
|
898
899
|
const { variant, orientation } = useTimeline('Timeline.Aside');
|
|
899
900
|
const { aside } = timelineVariants({ variant, orientation });
|
|
@@ -934,7 +935,7 @@ export interface TimelineIndicatorProps extends ViewProps {
|
|
|
934
935
|
* reads against this node, so an icon inside follows the theme instead of
|
|
935
936
|
* disappearing when the fill inverts.
|
|
936
937
|
*/
|
|
937
|
-
const TimelineIndicator = forwardRef<
|
|
938
|
+
const TimelineIndicator = forwardRef<ViewRef, TimelineIndicatorProps>(
|
|
938
939
|
({ className, children, ...props }, ref) => {
|
|
939
940
|
const { variant, orientation } = useTimeline('Timeline.Indicator');
|
|
940
941
|
const { step, completed, tone, showSeparator } =
|
|
@@ -1030,7 +1031,7 @@ TimelineIndicator.displayName = 'Timeline.Indicator';
|
|
|
1030
1031
|
* wrapped in the card panel, while the spacing between items stays outside it
|
|
1031
1032
|
* so the connector runs unbroken.
|
|
1032
1033
|
*/
|
|
1033
|
-
const TimelineContent = forwardRef<
|
|
1034
|
+
const TimelineContent = forwardRef<ViewRef, ViewProps & { className?: string }>(
|
|
1034
1035
|
({ className, children, style, ...props }, ref) => {
|
|
1035
1036
|
const { variant, orientation } = useTimeline('Timeline.Content');
|
|
1036
1037
|
const { completed, tone } = useTimelineItem('Timeline.Content');
|
|
@@ -1069,7 +1070,7 @@ const TimelineContent = forwardRef<View, ViewProps & { className?: string }>(
|
|
|
1069
1070
|
TimelineContent.displayName = 'Timeline.Content';
|
|
1070
1071
|
|
|
1071
1072
|
/** Title row: heading on the left, `Timeline.Trailing` on the right. */
|
|
1072
|
-
const TimelineHeader = forwardRef<
|
|
1073
|
+
const TimelineHeader = forwardRef<ViewRef, ViewProps & { className?: string }>(
|
|
1073
1074
|
({ className, ...props }, ref) => {
|
|
1074
1075
|
const { variant, orientation } = useTimeline('Timeline.Header');
|
|
1075
1076
|
const { header } = timelineVariants({ variant, orientation });
|
|
@@ -1079,7 +1080,7 @@ const TimelineHeader = forwardRef<View, ViewProps & { className?: string }>(
|
|
|
1079
1080
|
TimelineHeader.displayName = 'Timeline.Header';
|
|
1080
1081
|
|
|
1081
1082
|
/** Wraps a title and anything stacked under it inside the header row. */
|
|
1082
|
-
const TimelineHeading = forwardRef<
|
|
1083
|
+
const TimelineHeading = forwardRef<ViewRef, ViewProps & { className?: string }>(
|
|
1083
1084
|
({ className, ...props }, ref) => {
|
|
1084
1085
|
const { variant, orientation } = useTimeline('Timeline.Heading');
|
|
1085
1086
|
const { heading } = timelineVariants({ variant, orientation });
|
|
@@ -1088,7 +1089,7 @@ const TimelineHeading = forwardRef<View, ViewProps & { className?: string }>(
|
|
|
1088
1089
|
);
|
|
1089
1090
|
TimelineHeading.displayName = 'Timeline.Heading';
|
|
1090
1091
|
|
|
1091
|
-
const TimelineDate = forwardRef<
|
|
1092
|
+
const TimelineDate = forwardRef<TextRef, TextProps>(({ className, style, ...props }, ref) => {
|
|
1092
1093
|
const { variant, orientation } = useTimeline('Timeline.Date');
|
|
1093
1094
|
const { date } = timelineVariants({ variant, orientation });
|
|
1094
1095
|
const ink = useColumnInk('Timeline.Date');
|
|
@@ -1102,7 +1103,7 @@ const TimelineDate = forwardRef<RNText, TextProps>(({ className, style, ...props
|
|
|
1102
1103
|
TimelineDate.displayName = 'Timeline.Date';
|
|
1103
1104
|
|
|
1104
1105
|
/** Category line in the aside, coloured by the item's tone. */
|
|
1105
|
-
const TimelineLabel = forwardRef<
|
|
1106
|
+
const TimelineLabel = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
|
|
1106
1107
|
const { variant, orientation } = useTimeline('Timeline.Label');
|
|
1107
1108
|
const { tone } = useTimelineItem('Timeline.Label');
|
|
1108
1109
|
const { label } = timelineVariants({ variant, tone, orientation });
|
|
@@ -1111,7 +1112,7 @@ const TimelineLabel = forwardRef<RNText, TextProps>(({ className, ...props }, re
|
|
|
1111
1112
|
TimelineLabel.displayName = 'Timeline.Label';
|
|
1112
1113
|
|
|
1113
1114
|
/** Muted supporting line — a person's name, a source. */
|
|
1114
|
-
const TimelineMeta = forwardRef<
|
|
1115
|
+
const TimelineMeta = forwardRef<TextRef, TextProps>(({ className, style, ...props }, ref) => {
|
|
1115
1116
|
const { variant, orientation } = useTimeline('Timeline.Meta');
|
|
1116
1117
|
const { meta } = timelineVariants({ variant, orientation });
|
|
1117
1118
|
const ink = useColumnInk('Timeline.Meta');
|
|
@@ -1124,7 +1125,7 @@ const TimelineMeta = forwardRef<RNText, TextProps>(({ className, style, ...props
|
|
|
1124
1125
|
});
|
|
1125
1126
|
TimelineMeta.displayName = 'Timeline.Meta';
|
|
1126
1127
|
|
|
1127
|
-
const TimelineTitle = forwardRef<
|
|
1128
|
+
const TimelineTitle = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
|
|
1128
1129
|
const { variant, orientation } = useTimeline('Timeline.Title');
|
|
1129
1130
|
const { title } = timelineVariants({ variant, orientation });
|
|
1130
1131
|
return <Text ref={ref} className={title({ className })} {...props} />;
|
|
@@ -1132,7 +1133,7 @@ const TimelineTitle = forwardRef<RNText, TextProps>(({ className, ...props }, re
|
|
|
1132
1133
|
TimelineTitle.displayName = 'Timeline.Title';
|
|
1133
1134
|
|
|
1134
1135
|
/** Right-hand slot in the header row — a timestamp, usually. */
|
|
1135
|
-
const TimelineTrailing = forwardRef<
|
|
1136
|
+
const TimelineTrailing = forwardRef<TextRef, TextProps>(
|
|
1136
1137
|
({ className, ...props }, ref) => {
|
|
1137
1138
|
const { variant, orientation } = useTimeline('Timeline.Trailing');
|
|
1138
1139
|
const { trailing } = timelineVariants({ variant, orientation });
|
|
@@ -1141,7 +1142,7 @@ const TimelineTrailing = forwardRef<RNText, TextProps>(
|
|
|
1141
1142
|
);
|
|
1142
1143
|
TimelineTrailing.displayName = 'Timeline.Trailing';
|
|
1143
1144
|
|
|
1144
|
-
const TimelineDescription = forwardRef<
|
|
1145
|
+
const TimelineDescription = forwardRef<TextRef, TextProps>(
|
|
1145
1146
|
({ className, style, ...props }, ref) => {
|
|
1146
1147
|
const { variant, orientation } = useTimeline('Timeline.Description');
|
|
1147
1148
|
const { content } = timelineVariants({ variant, orientation });
|
|
@@ -1162,7 +1163,7 @@ const TimelineDescription = forwardRef<RNText, TextProps>(
|
|
|
1162
1163
|
TimelineDescription.displayName = 'Timeline.Description';
|
|
1163
1164
|
|
|
1164
1165
|
/** Bordered strip of label/value pairs under a title. */
|
|
1165
|
-
const TimelineStats = forwardRef<
|
|
1166
|
+
const TimelineStats = forwardRef<ViewRef, ViewProps & { className?: string }>(
|
|
1166
1167
|
({ className, ...props }, ref) => {
|
|
1167
1168
|
const { variant, orientation } = useTimeline('Timeline.Stats');
|
|
1168
1169
|
const { stats } = timelineVariants({ variant, orientation });
|
|
@@ -1177,7 +1178,7 @@ export interface TimelineStatProps extends ViewProps {
|
|
|
1177
1178
|
value: string;
|
|
1178
1179
|
}
|
|
1179
1180
|
|
|
1180
|
-
const TimelineStat = forwardRef<
|
|
1181
|
+
const TimelineStat = forwardRef<ViewRef, TimelineStatProps>(
|
|
1181
1182
|
({ className, label, value, ...props }, ref) => {
|
|
1182
1183
|
const { variant, orientation } = useTimeline('Timeline.Stat');
|
|
1183
1184
|
const { statLabel, statValue } = timelineVariants({ variant, orientation });
|
|
@@ -1232,7 +1233,7 @@ export interface TimelineMastheadProps extends ViewProps {
|
|
|
1232
1233
|
* run rather than to any column in it — and a column is the only thing a
|
|
1233
1234
|
* horizontal `Timeline` lays out.
|
|
1234
1235
|
*/
|
|
1235
|
-
const TimelineMasthead = forwardRef<
|
|
1236
|
+
const TimelineMasthead = forwardRef<ViewRef, TimelineMastheadProps>(
|
|
1236
1237
|
({ className, media, label, title, children, ...props }, ref) => {
|
|
1237
1238
|
const { masthead, mastheadMedia, mastheadLabel, mastheadTitle } = timelineVariants({
|
|
1238
1239
|
orientation: 'horizontal',
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AppState,
|
|
23
23
|
View,
|
|
24
|
-
type AppStateStatus,
|
|
25
24
|
type ViewProps,
|
|
26
25
|
} from 'react-native';
|
|
27
26
|
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
@@ -604,7 +603,8 @@ export function ToastViewport() {
|
|
|
604
603
|
* has decided, and a toast raised in that window would otherwise have its
|
|
605
604
|
* countdown parked with nothing coming to restart it.
|
|
606
605
|
*/
|
|
607
|
-
|
|
606
|
+
// `string`, not AppStateStatus: React Native 0.88 types `currentState` as a plain string.
|
|
607
|
+
const syncTimers = (state: string | null | undefined) => {
|
|
608
608
|
if (state === 'background' || state === 'inactive') toastStore.pauseTimers();
|
|
609
609
|
else toastStore.resumeTimers();
|
|
610
610
|
};
|
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
import { Text, textChildren } from '../../primitives/text';
|
|
46
46
|
import { cn } from '../../utils/cn';
|
|
47
47
|
import { selectionTick } from '../../utils/haptics';
|
|
48
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
48
49
|
|
|
49
50
|
const toggleVariants = tv({
|
|
50
51
|
slots: {
|
|
@@ -141,7 +142,7 @@ export interface ToggleButtonGroupProps extends ViewProps {
|
|
|
141
142
|
children: ReactNode;
|
|
142
143
|
}
|
|
143
144
|
|
|
144
|
-
const ToggleButtonGroup = forwardRef<
|
|
145
|
+
const ToggleButtonGroup = forwardRef<ViewRef, ToggleButtonGroupProps>(
|
|
145
146
|
(
|
|
146
147
|
{
|
|
147
148
|
className,
|
|
@@ -265,7 +266,7 @@ export interface ToggleButtonProps
|
|
|
265
266
|
unselectedClassName?: string;
|
|
266
267
|
}
|
|
267
268
|
|
|
268
|
-
const ToggleButtonRoot = forwardRef<
|
|
269
|
+
const ToggleButtonRoot = forwardRef<ViewRef, ToggleButtonProps>(
|
|
269
270
|
(
|
|
270
271
|
{
|
|
271
272
|
children,
|
|
@@ -69,6 +69,7 @@ import { tv } from 'tailwind-variants';
|
|
|
69
69
|
import { Portal } from '../../primitives/portal';
|
|
70
70
|
import { Text, type TextProps } from '../../primitives/text';
|
|
71
71
|
import { cn } from '../../utils/cn';
|
|
72
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
72
73
|
|
|
73
74
|
/** Gap between the trigger and the label. */
|
|
74
75
|
const DEFAULT_OFFSET = 6;
|
|
@@ -294,7 +295,7 @@ export interface TooltipTriggerProps {
|
|
|
294
295
|
*/
|
|
295
296
|
function TooltipTrigger({ className, children }: TooltipTriggerProps) {
|
|
296
297
|
const { open, show, hide, setTrigger, openOn, label } = useTooltip('Tooltip.Trigger');
|
|
297
|
-
const ref = useRef<
|
|
298
|
+
const ref = useRef<ViewRef>(null);
|
|
298
299
|
|
|
299
300
|
const measureThenShow = () => {
|
|
300
301
|
// Measured on every open rather than on layout: the trigger may have
|
|
@@ -79,6 +79,7 @@ import {
|
|
|
79
79
|
nextTourCardMeasurement,
|
|
80
80
|
type TourCardMeasurement,
|
|
81
81
|
} from './tour-card-measurement';
|
|
82
|
+
import type { ViewRef } from '../../primitives/refs';
|
|
82
83
|
|
|
83
84
|
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
84
85
|
|
|
@@ -137,7 +138,7 @@ interface TourStepEntry {
|
|
|
137
138
|
padding?: number;
|
|
138
139
|
radius?: number;
|
|
139
140
|
placement?: TourPlacement;
|
|
140
|
-
target: RefObject<
|
|
141
|
+
target: RefObject<ViewRef | null>;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
interface TourContextValue {
|
|
@@ -905,7 +906,7 @@ function TourStep({
|
|
|
905
906
|
...props
|
|
906
907
|
}: TourStepProps) {
|
|
907
908
|
const { register, unregister } = useTour('Tour.Step');
|
|
908
|
-
const target = useRef<
|
|
909
|
+
const target = useRef<ViewRef>(null);
|
|
909
910
|
|
|
910
911
|
const entry = useMemo<TourStepEntry>(
|
|
911
912
|
() => ({
|
|
@@ -72,6 +72,8 @@ import { useCSSVariable } from 'uniwind';
|
|
|
72
72
|
import { ChevronRightIcon, IconColorProvider } from '../../icons';
|
|
73
73
|
import { useDirection } from '../../hooks/use-direction';
|
|
74
74
|
import { Text, type TextProps } from '../../primitives/text';
|
|
75
|
+
import type { TextRef, ViewRef } from '../../primitives/refs';
|
|
76
|
+
import { webDeps } from '../../primitives/web-deps';
|
|
75
77
|
|
|
76
78
|
export type TreeSize = 'sm' | 'default';
|
|
77
79
|
|
|
@@ -193,7 +195,7 @@ export interface TreeProps extends ViewProps {
|
|
|
193
195
|
children?: ReactNode;
|
|
194
196
|
}
|
|
195
197
|
|
|
196
|
-
const TreeRoot = forwardRef<
|
|
198
|
+
const TreeRoot = forwardRef<ViewRef, TreeProps>(
|
|
197
199
|
(
|
|
198
200
|
{
|
|
199
201
|
className,
|
|
@@ -319,7 +321,7 @@ export interface TreeItemProps extends ViewProps {
|
|
|
319
321
|
* is a leaf that renders a chevron-sized gap in place of the chevron so its
|
|
320
322
|
* label still lines up with its siblings'.
|
|
321
323
|
*/
|
|
322
|
-
const TreeItem = forwardRef<
|
|
324
|
+
const TreeItem = forwardRef<ViewRef, TreeItemProps>(
|
|
323
325
|
({ className, value, isDisabled = false, hasChildren, children, ...props }, ref) => {
|
|
324
326
|
const { expanded, selected } = useTree('Tree.Item');
|
|
325
327
|
const parent = useContext(TreeItemContext);
|
|
@@ -374,7 +376,7 @@ export interface TreeTriggerProps extends Omit<PressableProps, 'children'> {
|
|
|
374
376
|
* with its expanded and selected state attached — is the description that
|
|
375
377
|
* actually survives to the user.
|
|
376
378
|
*/
|
|
377
|
-
const TreeTrigger = forwardRef<
|
|
379
|
+
const TreeTrigger = forwardRef<ViewRef, TreeTriggerProps>(
|
|
378
380
|
({ className, onPress, disabled = false, children, ...props }, ref) => {
|
|
379
381
|
const { toggleExpanded, select, selectionMode, expandOnPress, size } =
|
|
380
382
|
useTree('Tree.Trigger');
|
|
@@ -432,7 +434,7 @@ export interface TreeIndicatorProps extends ViewProps {
|
|
|
432
434
|
* On a leaf it becomes an empty box of the same size rather than disappearing,
|
|
433
435
|
* so a leaf's label starts where its siblings' labels do.
|
|
434
436
|
*/
|
|
435
|
-
const TreeIndicator = forwardRef<
|
|
437
|
+
const TreeIndicator = forwardRef<ViewRef, TreeIndicatorProps>(
|
|
436
438
|
({ className, children, ...props }, ref) => {
|
|
437
439
|
const { toggleExpanded, size } = useTree('Tree.Indicator');
|
|
438
440
|
const { value, isExpanded, isDisabled, isBranch } = useTreeItem('Tree.Indicator');
|
|
@@ -448,7 +450,7 @@ const TreeIndicator = forwardRef<View, TreeIndicatorProps>(
|
|
|
448
450
|
const openRotation = direction === 'rtl' ? -90 : 90;
|
|
449
451
|
const rotation = useDerivedValue(
|
|
450
452
|
() => withTiming(isExpanded ? openRotation : 0, { duration: TRANSITION_DURATION }),
|
|
451
|
-
[isExpanded, openRotation]
|
|
453
|
+
webDeps([isExpanded, openRotation])
|
|
452
454
|
);
|
|
453
455
|
const rotationStyle = useAnimatedStyle(() => ({
|
|
454
456
|
transform: [{ rotate: `${rotation.value}deg` }],
|
|
@@ -484,7 +486,7 @@ export interface TreeIconProps extends ViewProps {
|
|
|
484
486
|
}
|
|
485
487
|
|
|
486
488
|
/** The leading glyph, between the chevron and the label. */
|
|
487
|
-
const TreeIcon = forwardRef<
|
|
489
|
+
const TreeIcon = forwardRef<ViewRef, TreeIconProps>(({ className, ...props }, ref) => {
|
|
488
490
|
const { size } = useTree('Tree.Icon');
|
|
489
491
|
const { icon } = treeVariants({ size });
|
|
490
492
|
return <View ref={ref} className={icon({ className })} {...props} />;
|
|
@@ -492,7 +494,7 @@ const TreeIcon = forwardRef<View, TreeIconProps>(({ className, ...props }, ref)
|
|
|
492
494
|
TreeIcon.displayName = 'Tree.Icon';
|
|
493
495
|
|
|
494
496
|
/** The row's text. Takes the selected colour with the rest of the row. */
|
|
495
|
-
const TreeLabel = forwardRef<
|
|
497
|
+
const TreeLabel = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
|
|
496
498
|
const { size } = useTree('Tree.Label');
|
|
497
499
|
const { isSelected } = useTreeItem('Tree.Label');
|
|
498
500
|
const { label } = treeVariants({ size, isSelected });
|
|
@@ -506,7 +508,7 @@ export interface TreeActionsProps extends ViewProps {
|
|
|
506
508
|
}
|
|
507
509
|
|
|
508
510
|
/** The trailing slot: a count, a badge, a menu button for the node. */
|
|
509
|
-
const TreeActions = forwardRef<
|
|
511
|
+
const TreeActions = forwardRef<ViewRef, TreeActionsProps>(({ className, ...props }, ref) => {
|
|
510
512
|
const { actions } = treeVariants();
|
|
511
513
|
return <View ref={ref} className={actions({ className })} {...props} />;
|
|
512
514
|
});
|
|
@@ -529,7 +531,7 @@ export interface TreeGroupProps extends ViewProps {
|
|
|
529
531
|
* start-edge border: an indent that always fell on the left would run the wrong
|
|
530
532
|
* way in a right-to-left subtree and put every level further from its parent.
|
|
531
533
|
*/
|
|
532
|
-
const TreeGroup = forwardRef<
|
|
534
|
+
const TreeGroup = forwardRef<ViewRef, TreeGroupProps>(
|
|
533
535
|
({ className, children, ...props }, ref) => {
|
|
534
536
|
const { showLines, indent } = useTree('Tree.Group');
|
|
535
537
|
const { isExpanded } = useTreeItem('Tree.Group');
|
|
@@ -27,6 +27,7 @@ import { View, type Text as RNText, type ViewProps } from 'react-native';
|
|
|
27
27
|
import { tv, type VariantProps } from 'tailwind-variants';
|
|
28
28
|
import { Text, type TextProps, textChildren } from '../../primitives/text';
|
|
29
29
|
import { cn } from '../../utils/cn';
|
|
30
|
+
import type { TextRef, ViewRef } from '../../primitives/refs';
|
|
30
31
|
|
|
31
32
|
const typographyVariants = tv({
|
|
32
33
|
base: 'text-foreground',
|
|
@@ -144,7 +145,7 @@ const HEADING_LEVEL: Record<HeadingType, number> = {
|
|
|
144
145
|
h6: 6,
|
|
145
146
|
};
|
|
146
147
|
|
|
147
|
-
const TypographyRoot = forwardRef<
|
|
148
|
+
const TypographyRoot = forwardRef<TextRef, TypographyProps>(
|
|
148
149
|
(
|
|
149
150
|
{ className, type, muted, weight, align, transform, underline, italic, strike, ...props },
|
|
150
151
|
ref
|
|
@@ -173,7 +174,7 @@ export interface TypographyHeadingProps extends Omit<TypographyProps, 'type'> {
|
|
|
173
174
|
}
|
|
174
175
|
|
|
175
176
|
/** Heading text, wired up with the matching accessibility heading level. */
|
|
176
|
-
const TypographyHeading = forwardRef<
|
|
177
|
+
const TypographyHeading = forwardRef<TextRef, TypographyHeadingProps>(
|
|
177
178
|
(
|
|
178
179
|
{ className, type = 'h2', muted, weight, align, transform, underline, italic, strike, ...props },
|
|
179
180
|
ref
|
|
@@ -203,7 +204,7 @@ export interface TypographyParagraphProps extends Omit<TypographyProps, 'type'>
|
|
|
203
204
|
type?: ParagraphType;
|
|
204
205
|
}
|
|
205
206
|
|
|
206
|
-
const TypographyParagraph = forwardRef<
|
|
207
|
+
const TypographyParagraph = forwardRef<TextRef, TypographyParagraphProps>(
|
|
207
208
|
(
|
|
208
209
|
{ className, type = 'body', muted, weight, align, transform, underline, italic, strike, ...props },
|
|
209
210
|
ref
|
|
@@ -233,7 +234,7 @@ export interface TypographyCodeProps extends Omit<TypographyProps, 'type'> {
|
|
|
233
234
|
}
|
|
234
235
|
|
|
235
236
|
/** Inline code on a muted surface. */
|
|
236
|
-
const TypographyCode = forwardRef<
|
|
237
|
+
const TypographyCode = forwardRef<ViewRef, TypographyCodeProps & Pick<ViewProps, 'testID'>>(
|
|
237
238
|
({ className, containerClassName, muted, testID, ...props }, ref) => (
|
|
238
239
|
<View
|
|
239
240
|
ref={ref}
|
|
@@ -257,7 +258,7 @@ export interface TypographyBlockquoteProps extends Omit<TypographyProps, 'type'>
|
|
|
257
258
|
* The rule uses `border-s`, so it moves to the right-hand side under a
|
|
258
259
|
* right-to-left `Direction` without the quote having to know.
|
|
259
260
|
*/
|
|
260
|
-
const TypographyBlockquote = forwardRef<
|
|
261
|
+
const TypographyBlockquote = forwardRef<ViewRef, TypographyBlockquoteProps>(
|
|
261
262
|
({ className, containerClassName, muted, weight, align, transform, underline, italic = true, strike, children, ...props }, ref) => (
|
|
262
263
|
<View ref={ref} className={cn('border-s-2 border-border ps-4', containerClassName)}>
|
|
263
264
|
<Text
|
|
@@ -296,7 +297,7 @@ export interface TypographyListProps extends ViewProps {
|
|
|
296
297
|
* only the list knows whether it is a bullet or a number — and only the list
|
|
297
298
|
* knows which number.
|
|
298
299
|
*/
|
|
299
|
-
const TypographyList = forwardRef<
|
|
300
|
+
const TypographyList = forwardRef<ViewRef, TypographyListProps>(
|
|
300
301
|
({ className, ordered = false, children, ...props }, ref) => (
|
|
301
302
|
<View ref={ref} {...props} accessibilityRole="list" className={cn('gap-2', className)}>
|
|
302
303
|
{Children.map(children, (child, index) => (
|
|
@@ -321,7 +322,7 @@ export interface TypographyListItemProps extends Omit<TypographyProps, 'type'> {
|
|
|
321
322
|
}
|
|
322
323
|
|
|
323
324
|
/** One line of a list. The marker beside it belongs to the list. */
|
|
324
|
-
const TypographyListItem = forwardRef<
|
|
325
|
+
const TypographyListItem = forwardRef<TextRef, TypographyListItemProps>(
|
|
325
326
|
(
|
|
326
327
|
{ className, type = 'body', muted, weight, align, transform, underline, italic, strike, ...props },
|
|
327
328
|
ref
|