@multiplatform.one/components 6.7.0 → 7.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/dist/cjs/Accordion/index.cjs +213 -70
- package/dist/cjs/Accordion/index.native.js +254 -75
- package/dist/cjs/Accordion/index.native.js.map +1 -1
- package/dist/cjs/Alert/index.cjs +204 -56
- package/dist/cjs/Alert/index.native.js +211 -60
- package/dist/cjs/Alert/index.native.js.map +1 -1
- package/dist/cjs/AnimateHeight/index.cjs +166 -0
- package/dist/cjs/AnimateHeight/index.native.js +176 -0
- package/dist/cjs/AnimateHeight/index.native.js.map +1 -0
- package/dist/cjs/Avatar/getInitials.cjs +34 -0
- package/dist/cjs/Avatar/getInitials.native.js +34 -0
- package/dist/cjs/Avatar/getInitials.native.js.map +1 -1
- package/dist/cjs/Avatar/index.cjs +246 -62
- package/dist/cjs/Avatar/index.native.js +252 -68
- package/dist/cjs/Avatar/index.native.js.map +1 -1
- package/dist/cjs/Badge/index.cjs +109 -75
- package/dist/cjs/Badge/index.native.js +110 -76
- package/dist/cjs/Badge/index.native.js.map +1 -1
- package/dist/cjs/Button.cjs +41 -0
- package/dist/cjs/Button.native.js +45 -0
- package/dist/cjs/Button.native.js.map +1 -0
- package/dist/cjs/Carousel/index.cjs +184 -105
- package/dist/cjs/Carousel/index.native.js +212 -107
- package/dist/cjs/Carousel/index.native.js.map +1 -1
- package/dist/cjs/Chip/index.cjs +360 -5
- package/dist/cjs/Chip/index.native.js +374 -5
- package/dist/cjs/Chip/index.native.js.map +1 -1
- package/dist/cjs/DotIndicator/index.cjs +129 -13
- package/dist/cjs/DotIndicator/index.native.js +133 -13
- package/dist/cjs/DotIndicator/index.native.js.map +1 -1
- package/dist/cjs/DropdownMenu/index.cjs +110 -44
- package/dist/cjs/DropdownMenu/index.native.js +113 -46
- package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
- package/dist/cjs/ErrorBoundary/index.cjs +2 -2
- package/dist/cjs/ErrorBoundary/index.native.js +2 -2
- package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
- package/dist/cjs/Pagination.cjs +40 -11
- package/dist/cjs/Pagination.native.js +44 -11
- package/dist/cjs/Pagination.native.js.map +1 -1
- package/dist/cjs/ProgressSteps/index.cjs +163 -107
- package/dist/cjs/ProgressSteps/index.native.js +171 -115
- package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
- package/dist/cjs/Quote/index.cjs +58 -39
- package/dist/cjs/Quote/index.native.js +69 -45
- package/dist/cjs/Quote/index.native.js.map +1 -1
- package/dist/cjs/SheetModal/index.cjs +141 -4
- package/dist/cjs/SheetModal/index.native.js +42 -29
- package/dist/cjs/SheetModal/index.native.js.map +1 -1
- package/dist/cjs/Skeleton/index.cjs +216 -4
- package/dist/cjs/Skeleton/index.native.js +223 -4
- package/dist/cjs/Skeleton/index.native.js.map +1 -1
- package/dist/cjs/SkipLink/index.cjs +91 -57
- package/dist/cjs/SkipLink/index.native.js +92 -66
- package/dist/cjs/SkipLink/index.native.js.map +1 -1
- package/dist/cjs/Tabs/index.cjs +136 -95
- package/dist/cjs/Tabs/index.native.js +161 -108
- package/dist/cjs/Tabs/index.native.js.map +1 -1
- package/dist/cjs/Toast/index.cjs +229 -67
- package/dist/cjs/Toast/index.native.js +232 -67
- package/dist/cjs/Toast/index.native.js.map +1 -1
- package/dist/cjs/Toast/store.cjs +83 -10
- package/dist/cjs/Toast/store.native.js +108 -10
- package/dist/cjs/Toast/store.native.js.map +1 -1
- package/dist/cjs/Tooltip/index.cjs +159 -42
- package/dist/cjs/Tooltip/index.native.js +195 -43
- package/dist/cjs/Tooltip/index.native.js.map +1 -1
- package/dist/cjs/Video/PlayerChrome.cjs +403 -0
- package/dist/cjs/Video/PlayerChrome.native.js +436 -0
- package/dist/cjs/Video/PlayerChrome.native.js.map +1 -0
- package/dist/cjs/Video/VideoFrame.cjs +14 -5
- package/dist/cjs/Video/VideoFrame.native.js +16 -5
- package/dist/cjs/Video/VideoFrame.native.js.map +1 -1
- package/dist/cjs/Video/index.cjs +227 -11
- package/dist/cjs/Video/index.native.js +28 -13
- package/dist/cjs/Video/index.native.js.map +1 -1
- package/dist/cjs/Wheel/index.cjs +144 -93
- package/dist/cjs/Wheel/index.native.js +149 -96
- package/dist/cjs/Wheel/index.native.js.map +1 -1
- package/dist/cjs/actions/DestructiveAction.cjs +2 -2
- package/dist/cjs/actions/DestructiveAction.native.js +2 -2
- package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
- package/dist/cjs/charts/BarChart.cjs +9 -5
- package/dist/cjs/charts/BarChart.native.js +9 -5
- package/dist/cjs/charts/BarChart.native.js.map +1 -1
- package/dist/cjs/charts/LineChart.cjs +2 -2
- package/dist/cjs/charts/LineChart.native.js +2 -2
- package/dist/cjs/charts/LineChart.native.js.map +1 -1
- package/dist/cjs/charts/PieChart.cjs +2 -2
- package/dist/cjs/charts/PieChart.native.js +2 -2
- package/dist/cjs/charts/PieChart.native.js.map +1 -1
- package/dist/cjs/charts/Sparkline.cjs +2 -2
- package/dist/cjs/charts/Sparkline.native.js +2 -2
- package/dist/cjs/charts/Sparkline.native.js.map +1 -1
- package/dist/cjs/charts/index.cjs +4 -0
- package/dist/cjs/charts/index.native.js +4 -0
- package/dist/cjs/charts/index.native.js.map +1 -1
- package/dist/cjs/code/CodeBlock/index.cjs +34 -7
- package/dist/cjs/code/CodeBlock/index.native.js +36 -9
- package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
- package/dist/cjs/feedback/ConfirmDialog.cjs +92 -5
- package/dist/cjs/feedback/ConfirmDialog.native.js +123 -5
- package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/cjs/feedback/NotifyHost.cjs +2 -2
- package/dist/cjs/feedback/NotifyHost.native.js +2 -2
- package/dist/cjs/feedback/NotifyHost.native.js.map +1 -1
- package/dist/cjs/icons/themed.cjs +4 -1
- package/dist/cjs/icons/themed.native.js +4 -1
- package/dist/cjs/icons/themed.native.js.map +1 -1
- package/dist/cjs/images/Image/ImageFrame.cjs +242 -0
- package/dist/cjs/images/Image/ImageFrame.native.js +248 -0
- package/dist/cjs/images/Image/ImageFrame.native.js.map +1 -0
- package/dist/cjs/images/Image/index.cjs +93 -40
- package/dist/cjs/images/Image/index.native.js +146 -108
- package/dist/cjs/images/Image/index.native.js.map +1 -1
- package/dist/cjs/images/Image/shared.cjs +106 -0
- package/dist/cjs/images/Image/shared.native.js +109 -0
- package/dist/cjs/images/Image/shared.native.js.map +1 -0
- package/dist/cjs/index.cjs +7 -0
- package/dist/cjs/index.native.js +7 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/knobImmuneExports.cjs +95 -0
- package/dist/cjs/knobImmuneExports.native.js +98 -0
- package/dist/cjs/knobImmuneExports.native.js.map +1 -0
- package/dist/cjs/layouts/AsyncBoundary.cjs +163 -36
- package/dist/cjs/layouts/AsyncBoundary.native.js +166 -37
- package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/cjs/layouts/EmptyState.cjs +157 -0
- package/dist/cjs/layouts/EmptyState.native.js +165 -0
- package/dist/cjs/layouts/EmptyState.native.js.map +1 -0
- package/dist/cjs/layouts/PageTemplates.cjs +13 -5
- package/dist/cjs/layouts/PageTemplates.native.js +13 -5
- package/dist/cjs/layouts/PageTemplates.native.js.map +1 -1
- package/dist/cjs/layouts/PaneScaffold.cjs +273 -13
- package/dist/cjs/layouts/PaneScaffold.native.js +294 -13
- package/dist/cjs/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/cjs/layouts/ViewSwitcher.cjs +65 -23
- package/dist/cjs/layouts/ViewSwitcher.native.js +78 -30
- package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/cjs/layouts/attachments.cjs +350 -185
- package/dist/cjs/layouts/attachments.native.js +370 -186
- package/dist/cjs/layouts/attachments.native.js.map +1 -1
- package/dist/cjs/layouts/breadcrumbs.cjs +161 -62
- package/dist/cjs/layouts/breadcrumbs.native.js +184 -65
- package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/cjs/layouts/page.cjs +71 -111
- package/dist/cjs/layouts/page.native.js +82 -130
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/cjs/layouts/pageHeadingScope.cjs +8 -2
- package/dist/cjs/layouts/pageHeadingScope.native.js +10 -2
- package/dist/cjs/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/cjs/layouts/sidebar.cjs +150 -66
- package/dist/cjs/layouts/sidebar.native.js +118 -47
- package/dist/cjs/layouts/sidebar.native.js.map +1 -1
- package/dist/cjs/layouts/tags.cjs +321 -138
- package/dist/cjs/layouts/tags.native.js +355 -158
- package/dist/cjs/layouts/tags.native.js.map +1 -1
- package/dist/cjs/layouts/timeline.cjs +129 -56
- package/dist/cjs/layouts/timeline.native.js +179 -55
- package/dist/cjs/layouts/timeline.native.js.map +1 -1
- package/dist/cjs/layouts/toolbar.cjs +56 -20
- package/dist/cjs/layouts/toolbar.native.js +62 -25
- package/dist/cjs/layouts/toolbar.native.js.map +1 -1
- package/dist/cjs/shared/i18n.cjs +46 -0
- package/dist/cjs/shared/i18n.native.js +52 -0
- package/dist/cjs/shared/i18n.native.js.map +1 -0
- package/dist/cjs/shared/textRidesText.cjs +57 -0
- package/dist/cjs/shared/textRidesText.native.js +81 -0
- package/dist/cjs/shared/textRidesText.native.js.map +1 -0
- package/dist/cjs/shared/useReturnFocusOnClose.cjs +7 -1
- package/dist/cjs/shared/useReturnFocusOnClose.native.js +7 -1
- package/dist/cjs/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/cjs/surfaces.cjs +93 -16
- package/dist/cjs/surfaces.native.js +95 -16
- package/dist/cjs/surfaces.native.js.map +1 -1
- package/dist/cjs/tamagui.cjs +38 -39
- package/dist/cjs/tamagui.native.js +37 -38
- package/dist/cjs/tamagui.native.js.map +1 -1
- package/dist/cjs/views/Calendar.cjs +101 -64
- package/dist/cjs/views/Calendar.native.js +105 -70
- package/dist/cjs/views/Calendar.native.js.map +1 -1
- package/dist/cjs/views/Dashboard.cjs +399 -107
- package/dist/cjs/views/Dashboard.native.js +408 -110
- package/dist/cjs/views/Dashboard.native.js.map +1 -1
- package/dist/cjs/views/Gantt.cjs +256 -59
- package/dist/cjs/views/Gantt.native.js +264 -39
- package/dist/cjs/views/Gantt.native.js.map +1 -1
- package/dist/cjs/views/ImageGrid.cjs +138 -73
- package/dist/cjs/views/ImageGrid.native.js +155 -71
- package/dist/cjs/views/ImageGrid.native.js.map +1 -1
- package/dist/cjs/views/Kanban.cjs +53 -31
- package/dist/cjs/views/Kanban.native.js +55 -41
- package/dist/cjs/views/Kanban.native.js.map +1 -1
- package/dist/cjs/views/List.cjs +280 -93
- package/dist/cjs/views/List.native.js +280 -101
- package/dist/cjs/views/List.native.js.map +1 -1
- package/dist/cjs/views/ReportBuilder.cjs +539 -172
- package/dist/cjs/views/ReportBuilder.native.js +592 -169
- package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
- package/dist/cjs/views/TreeView.cjs +142 -52
- package/dist/cjs/views/TreeView.native.js +170 -55
- package/dist/cjs/views/TreeView.native.js.map +1 -1
- package/dist/esm/Accordion/index.mjs +216 -73
- package/dist/esm/Accordion/index.mjs.map +1 -1
- package/dist/esm/Accordion/index.native.js +257 -78
- package/dist/esm/Accordion/index.native.js.map +1 -1
- package/dist/esm/Alert/index.mjs +206 -58
- package/dist/esm/Alert/index.mjs.map +1 -1
- package/dist/esm/Alert/index.native.js +213 -62
- package/dist/esm/Alert/index.native.js.map +1 -1
- package/dist/esm/AnimateHeight/index.mjs +140 -0
- package/dist/esm/AnimateHeight/index.mjs.map +1 -0
- package/dist/esm/AnimateHeight/index.native.js +147 -0
- package/dist/esm/AnimateHeight/index.native.js.map +1 -0
- package/dist/esm/Avatar/getInitials.mjs +32 -1
- package/dist/esm/Avatar/getInitials.mjs.map +1 -1
- package/dist/esm/Avatar/getInitials.native.js +32 -1
- package/dist/esm/Avatar/getInitials.native.js.map +1 -1
- package/dist/esm/Avatar/index.mjs +249 -68
- package/dist/esm/Avatar/index.mjs.map +1 -1
- package/dist/esm/Avatar/index.native.js +255 -74
- package/dist/esm/Avatar/index.native.js.map +1 -1
- package/dist/esm/Badge/index.mjs +110 -76
- package/dist/esm/Badge/index.mjs.map +1 -1
- package/dist/esm/Badge/index.native.js +111 -77
- package/dist/esm/Badge/index.native.js.map +1 -1
- package/dist/esm/Button.mjs +16 -0
- package/dist/esm/Button.mjs.map +1 -0
- package/dist/esm/Button.native.js +17 -0
- package/dist/esm/Button.native.js.map +1 -0
- package/dist/esm/Carousel/index.mjs +185 -106
- package/dist/esm/Carousel/index.mjs.map +1 -1
- package/dist/esm/Carousel/index.native.js +213 -108
- package/dist/esm/Carousel/index.native.js.map +1 -1
- package/dist/esm/Chip/index.mjs +356 -2
- package/dist/esm/Chip/index.mjs.map +1 -1
- package/dist/esm/Chip/index.native.js +370 -2
- package/dist/esm/Chip/index.native.js.map +1 -1
- package/dist/esm/DotIndicator/index.mjs +130 -14
- package/dist/esm/DotIndicator/index.mjs.map +1 -1
- package/dist/esm/DotIndicator/index.native.js +134 -14
- package/dist/esm/DotIndicator/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.mjs +112 -46
- package/dist/esm/DropdownMenu/index.mjs.map +1 -1
- package/dist/esm/DropdownMenu/index.native.js +115 -48
- package/dist/esm/DropdownMenu/index.native.js.map +1 -1
- package/dist/esm/ErrorBoundary/index.mjs +1 -1
- package/dist/esm/ErrorBoundary/index.native.js +1 -1
- package/dist/esm/Pagination.mjs +41 -12
- package/dist/esm/Pagination.mjs.map +1 -1
- package/dist/esm/Pagination.native.js +45 -12
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/ProgressSteps/index.mjs +165 -109
- package/dist/esm/ProgressSteps/index.mjs.map +1 -1
- package/dist/esm/ProgressSteps/index.native.js +173 -117
- package/dist/esm/ProgressSteps/index.native.js.map +1 -1
- package/dist/esm/Quote/index.mjs +59 -40
- package/dist/esm/Quote/index.mjs.map +1 -1
- package/dist/esm/Quote/index.native.js +70 -46
- package/dist/esm/Quote/index.native.js.map +1 -1
- package/dist/esm/SheetModal/index.mjs +144 -7
- package/dist/esm/SheetModal/index.mjs.map +1 -1
- package/dist/esm/SheetModal/index.native.js +41 -28
- package/dist/esm/SheetModal/index.native.js.map +1 -1
- package/dist/esm/Skeleton/index.mjs +213 -2
- package/dist/esm/Skeleton/index.mjs.map +1 -1
- package/dist/esm/Skeleton/index.native.js +220 -2
- package/dist/esm/Skeleton/index.native.js.map +1 -1
- package/dist/esm/SkipLink/index.mjs +93 -59
- package/dist/esm/SkipLink/index.mjs.map +1 -1
- package/dist/esm/SkipLink/index.native.js +94 -68
- package/dist/esm/SkipLink/index.native.js.map +1 -1
- package/dist/esm/Tabs/index.mjs +137 -96
- package/dist/esm/Tabs/index.mjs.map +1 -1
- package/dist/esm/Tabs/index.native.js +162 -109
- package/dist/esm/Tabs/index.native.js.map +1 -1
- package/dist/esm/Toast/index.mjs +227 -68
- package/dist/esm/Toast/index.mjs.map +1 -1
- package/dist/esm/Toast/index.native.js +230 -68
- package/dist/esm/Toast/index.native.js.map +1 -1
- package/dist/esm/Toast/store.mjs +75 -11
- package/dist/esm/Toast/store.mjs.map +1 -1
- package/dist/esm/Toast/store.native.js +100 -11
- package/dist/esm/Toast/store.native.js.map +1 -1
- package/dist/esm/Tooltip/index.mjs +147 -42
- package/dist/esm/Tooltip/index.mjs.map +1 -1
- package/dist/esm/Tooltip/index.native.js +184 -44
- package/dist/esm/Tooltip/index.native.js.map +1 -1
- package/dist/esm/Video/PlayerChrome.mjs +377 -0
- package/dist/esm/Video/PlayerChrome.mjs.map +1 -0
- package/dist/esm/Video/PlayerChrome.native.js +407 -0
- package/dist/esm/Video/PlayerChrome.native.js.map +1 -0
- package/dist/esm/Video/VideoFrame.mjs +14 -5
- package/dist/esm/Video/VideoFrame.mjs.map +1 -1
- package/dist/esm/Video/VideoFrame.native.js +16 -5
- package/dist/esm/Video/VideoFrame.native.js.map +1 -1
- package/dist/esm/Video/index.mjs +227 -11
- package/dist/esm/Video/index.mjs.map +1 -1
- package/dist/esm/Video/index.native.js +28 -13
- package/dist/esm/Video/index.native.js.map +1 -1
- package/dist/esm/Wheel/index.mjs +143 -92
- package/dist/esm/Wheel/index.mjs.map +1 -1
- package/dist/esm/Wheel/index.native.js +148 -95
- package/dist/esm/Wheel/index.native.js.map +1 -1
- package/dist/esm/actions/DestructiveAction.mjs +1 -1
- package/dist/esm/actions/DestructiveAction.native.js +1 -1
- package/dist/esm/actions/DestructiveAction.native.js.map +1 -1
- package/dist/esm/charts/BarChart.mjs +8 -4
- package/dist/esm/charts/BarChart.mjs.map +1 -1
- package/dist/esm/charts/BarChart.native.js +8 -4
- package/dist/esm/charts/BarChart.native.js.map +1 -1
- package/dist/esm/charts/LineChart.mjs +1 -1
- package/dist/esm/charts/LineChart.native.js +1 -1
- package/dist/esm/charts/PieChart.mjs +1 -1
- package/dist/esm/charts/PieChart.native.js +1 -1
- package/dist/esm/charts/PieChart.native.js.map +1 -1
- package/dist/esm/charts/Sparkline.mjs +1 -1
- package/dist/esm/charts/Sparkline.native.js +1 -1
- package/dist/esm/charts/index.mjs +2 -1
- package/dist/esm/charts/index.mjs.map +1 -1
- package/dist/esm/charts/index.native.js +2 -1
- package/dist/esm/charts/index.native.js.map +1 -1
- package/dist/esm/code/CodeBlock/index.mjs +34 -7
- package/dist/esm/code/CodeBlock/index.mjs.map +1 -1
- package/dist/esm/code/CodeBlock/index.native.js +36 -9
- package/dist/esm/code/CodeBlock/index.native.js.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.mjs +93 -6
- package/dist/esm/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.native.js +124 -6
- package/dist/esm/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/esm/feedback/NotifyHost.mjs +1 -1
- package/dist/esm/feedback/NotifyHost.native.js +1 -1
- package/dist/esm/icons/themed.mjs +5 -2
- package/dist/esm/icons/themed.mjs.map +1 -1
- package/dist/esm/icons/themed.native.js +5 -2
- package/dist/esm/icons/themed.native.js.map +1 -1
- package/dist/esm/images/Image/ImageFrame.mjs +216 -0
- package/dist/esm/images/Image/ImageFrame.mjs.map +1 -0
- package/dist/esm/images/Image/ImageFrame.native.js +219 -0
- package/dist/esm/images/Image/ImageFrame.native.js.map +1 -0
- package/dist/esm/images/Image/index.mjs +94 -41
- package/dist/esm/images/Image/index.mjs.map +1 -1
- package/dist/esm/images/Image/index.native.js +148 -110
- package/dist/esm/images/Image/index.native.js.map +1 -1
- package/dist/esm/images/Image/shared.mjs +76 -0
- package/dist/esm/images/Image/shared.mjs.map +1 -0
- package/dist/esm/images/Image/shared.native.js +76 -0
- package/dist/esm/images/Image/shared.native.js.map +1 -0
- package/dist/esm/index.mjs +4 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +4 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/knobImmuneExports.mjs +70 -0
- package/dist/esm/knobImmuneExports.mjs.map +1 -0
- package/dist/esm/knobImmuneExports.native.js +70 -0
- package/dist/esm/knobImmuneExports.native.js.map +1 -0
- package/dist/esm/layouts/AsyncBoundary.mjs +165 -38
- package/dist/esm/layouts/AsyncBoundary.mjs.map +1 -1
- package/dist/esm/layouts/AsyncBoundary.native.js +168 -39
- package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/esm/layouts/EmptyState.mjs +132 -0
- package/dist/esm/layouts/EmptyState.mjs.map +1 -0
- package/dist/esm/layouts/EmptyState.native.js +137 -0
- package/dist/esm/layouts/EmptyState.native.js.map +1 -0
- package/dist/esm/layouts/PageTemplates.mjs +13 -5
- package/dist/esm/layouts/PageTemplates.mjs.map +1 -1
- package/dist/esm/layouts/PageTemplates.native.js +13 -5
- package/dist/esm/layouts/PageTemplates.native.js.map +1 -1
- package/dist/esm/layouts/PaneScaffold.mjs +277 -17
- package/dist/esm/layouts/PaneScaffold.mjs.map +1 -1
- package/dist/esm/layouts/PaneScaffold.native.js +298 -17
- package/dist/esm/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/esm/layouts/ViewSwitcher.mjs +66 -24
- package/dist/esm/layouts/ViewSwitcher.mjs.map +1 -1
- package/dist/esm/layouts/ViewSwitcher.native.js +79 -31
- package/dist/esm/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/esm/layouts/attachments.mjs +351 -175
- package/dist/esm/layouts/attachments.mjs.map +1 -1
- package/dist/esm/layouts/attachments.native.js +371 -187
- package/dist/esm/layouts/attachments.native.js.map +1 -1
- package/dist/esm/layouts/breadcrumbs.mjs +163 -53
- package/dist/esm/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/esm/layouts/breadcrumbs.native.js +187 -68
- package/dist/esm/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +72 -112
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +83 -131
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/layouts/pageHeadingScope.mjs +8 -3
- package/dist/esm/layouts/pageHeadingScope.mjs.map +1 -1
- package/dist/esm/layouts/pageHeadingScope.native.js +10 -3
- package/dist/esm/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/esm/layouts/sidebar.mjs +152 -68
- package/dist/esm/layouts/sidebar.mjs.map +1 -1
- package/dist/esm/layouts/sidebar.native.js +120 -49
- package/dist/esm/layouts/sidebar.native.js.map +1 -1
- package/dist/esm/layouts/tags.mjs +323 -140
- package/dist/esm/layouts/tags.mjs.map +1 -1
- package/dist/esm/layouts/tags.native.js +357 -160
- package/dist/esm/layouts/tags.native.js.map +1 -1
- package/dist/esm/layouts/timeline.mjs +129 -45
- package/dist/esm/layouts/timeline.mjs.map +1 -1
- package/dist/esm/layouts/timeline.native.js +179 -55
- package/dist/esm/layouts/timeline.native.js.map +1 -1
- package/dist/esm/layouts/toolbar.mjs +57 -21
- package/dist/esm/layouts/toolbar.mjs.map +1 -1
- package/dist/esm/layouts/toolbar.native.js +63 -26
- package/dist/esm/layouts/toolbar.native.js.map +1 -1
- package/dist/esm/shared/i18n.mjs +10 -0
- package/dist/esm/shared/i18n.mjs.map +1 -0
- package/dist/esm/shared/i18n.native.js +13 -0
- package/dist/esm/shared/i18n.native.js.map +1 -0
- package/dist/esm/shared/textRidesText.mjs +31 -0
- package/dist/esm/shared/textRidesText.mjs.map +1 -0
- package/dist/esm/shared/textRidesText.native.js +52 -0
- package/dist/esm/shared/textRidesText.native.js.map +1 -0
- package/dist/esm/shared/useReturnFocusOnClose.mjs +7 -1
- package/dist/esm/shared/useReturnFocusOnClose.mjs.map +1 -1
- package/dist/esm/shared/useReturnFocusOnClose.native.js +7 -1
- package/dist/esm/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/esm/surfaces.mjs +94 -17
- package/dist/esm/surfaces.mjs.map +1 -1
- package/dist/esm/surfaces.native.js +96 -17
- package/dist/esm/surfaces.native.js.map +1 -1
- package/dist/esm/tamagui.mjs +2 -3
- package/dist/esm/tamagui.mjs.map +1 -1
- package/dist/esm/tamagui.native.js +2 -3
- package/dist/esm/tamagui.native.js.map +1 -1
- package/dist/esm/views/Calendar.mjs +101 -64
- package/dist/esm/views/Calendar.mjs.map +1 -1
- package/dist/esm/views/Calendar.native.js +105 -70
- package/dist/esm/views/Calendar.native.js.map +1 -1
- package/dist/esm/views/Dashboard.mjs +396 -107
- package/dist/esm/views/Dashboard.mjs.map +1 -1
- package/dist/esm/views/Dashboard.native.js +405 -110
- package/dist/esm/views/Dashboard.native.js.map +1 -1
- package/dist/esm/views/Gantt.mjs +256 -59
- package/dist/esm/views/Gantt.mjs.map +1 -1
- package/dist/esm/views/Gantt.native.js +264 -39
- package/dist/esm/views/Gantt.native.js.map +1 -1
- package/dist/esm/views/ImageGrid.mjs +138 -73
- package/dist/esm/views/ImageGrid.mjs.map +1 -1
- package/dist/esm/views/ImageGrid.native.js +155 -71
- package/dist/esm/views/ImageGrid.native.js.map +1 -1
- package/dist/esm/views/Kanban.mjs +52 -30
- package/dist/esm/views/Kanban.mjs.map +1 -1
- package/dist/esm/views/Kanban.native.js +54 -40
- package/dist/esm/views/Kanban.native.js.map +1 -1
- package/dist/esm/views/List.mjs +268 -95
- package/dist/esm/views/List.mjs.map +1 -1
- package/dist/esm/views/List.native.js +280 -104
- package/dist/esm/views/List.native.js.map +1 -1
- package/dist/esm/views/ReportBuilder.mjs +533 -166
- package/dist/esm/views/ReportBuilder.mjs.map +1 -1
- package/dist/esm/views/ReportBuilder.native.js +585 -162
- package/dist/esm/views/ReportBuilder.native.js.map +1 -1
- package/dist/esm/views/TreeView.mjs +142 -52
- package/dist/esm/views/TreeView.mjs.map +1 -1
- package/dist/esm/views/TreeView.native.js +170 -55
- package/dist/esm/views/TreeView.native.js.map +1 -1
- package/dist/jsx/Accordion/index.mjs +216 -73
- package/dist/jsx/Accordion/index.mjs.map +1 -1
- package/dist/jsx/Accordion/index.native.js +254 -75
- package/dist/jsx/Accordion/index.native.js.map +1 -1
- package/dist/jsx/Alert/index.mjs +206 -58
- package/dist/jsx/Alert/index.mjs.map +1 -1
- package/dist/jsx/Alert/index.native.js +211 -60
- package/dist/jsx/Alert/index.native.js.map +1 -1
- package/dist/jsx/AnimateHeight/index.mjs +140 -0
- package/dist/jsx/AnimateHeight/index.mjs.map +1 -0
- package/dist/jsx/AnimateHeight/index.native.js +176 -0
- package/dist/jsx/AnimateHeight/index.native.js.map +1 -0
- package/dist/jsx/Avatar/getInitials.mjs +32 -1
- package/dist/jsx/Avatar/getInitials.mjs.map +1 -1
- package/dist/jsx/Avatar/getInitials.native.js +34 -0
- package/dist/jsx/Avatar/getInitials.native.js.map +1 -1
- package/dist/jsx/Avatar/index.mjs +249 -68
- package/dist/jsx/Avatar/index.mjs.map +1 -1
- package/dist/jsx/Avatar/index.native.js +252 -68
- package/dist/jsx/Avatar/index.native.js.map +1 -1
- package/dist/jsx/Badge/index.mjs +110 -76
- package/dist/jsx/Badge/index.mjs.map +1 -1
- package/dist/jsx/Badge/index.native.js +110 -76
- package/dist/jsx/Badge/index.native.js.map +1 -1
- package/dist/jsx/Button.mjs +16 -0
- package/dist/jsx/Button.mjs.map +1 -0
- package/dist/jsx/Button.native.js +45 -0
- package/dist/jsx/Button.native.js.map +1 -0
- package/dist/jsx/Carousel/index.mjs +185 -106
- package/dist/jsx/Carousel/index.mjs.map +1 -1
- package/dist/jsx/Carousel/index.native.js +212 -107
- package/dist/jsx/Carousel/index.native.js.map +1 -1
- package/dist/jsx/Chip/index.mjs +356 -2
- package/dist/jsx/Chip/index.mjs.map +1 -1
- package/dist/jsx/Chip/index.native.js +374 -5
- package/dist/jsx/Chip/index.native.js.map +1 -1
- package/dist/jsx/DotIndicator/index.mjs +130 -14
- package/dist/jsx/DotIndicator/index.mjs.map +1 -1
- package/dist/jsx/DotIndicator/index.native.js +133 -13
- package/dist/jsx/DotIndicator/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.mjs +112 -46
- package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
- package/dist/jsx/DropdownMenu/index.native.js +113 -46
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
- package/dist/jsx/ErrorBoundary/index.mjs +1 -1
- package/dist/jsx/ErrorBoundary/index.native.js +2 -2
- package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
- package/dist/jsx/Pagination.mjs +41 -12
- package/dist/jsx/Pagination.mjs.map +1 -1
- package/dist/jsx/Pagination.native.js +44 -11
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/ProgressSteps/index.mjs +165 -109
- package/dist/jsx/ProgressSteps/index.mjs.map +1 -1
- package/dist/jsx/ProgressSteps/index.native.js +171 -115
- package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
- package/dist/jsx/Quote/index.mjs +59 -40
- package/dist/jsx/Quote/index.mjs.map +1 -1
- package/dist/jsx/Quote/index.native.js +69 -45
- package/dist/jsx/Quote/index.native.js.map +1 -1
- package/dist/jsx/SheetModal/index.mjs +144 -7
- package/dist/jsx/SheetModal/index.mjs.map +1 -1
- package/dist/jsx/SheetModal/index.native.js +42 -29
- package/dist/jsx/SheetModal/index.native.js.map +1 -1
- package/dist/jsx/Skeleton/index.mjs +213 -2
- package/dist/jsx/Skeleton/index.mjs.map +1 -1
- package/dist/jsx/Skeleton/index.native.js +223 -4
- package/dist/jsx/Skeleton/index.native.js.map +1 -1
- package/dist/jsx/SkipLink/index.mjs +93 -59
- package/dist/jsx/SkipLink/index.mjs.map +1 -1
- package/dist/jsx/SkipLink/index.native.js +92 -66
- package/dist/jsx/SkipLink/index.native.js.map +1 -1
- package/dist/jsx/Tabs/index.mjs +137 -96
- package/dist/jsx/Tabs/index.mjs.map +1 -1
- package/dist/jsx/Tabs/index.native.js +161 -108
- package/dist/jsx/Tabs/index.native.js.map +1 -1
- package/dist/jsx/Toast/index.mjs +227 -68
- package/dist/jsx/Toast/index.mjs.map +1 -1
- package/dist/jsx/Toast/index.native.js +232 -67
- package/dist/jsx/Toast/index.native.js.map +1 -1
- package/dist/jsx/Toast/store.mjs +75 -11
- package/dist/jsx/Toast/store.mjs.map +1 -1
- package/dist/jsx/Toast/store.native.js +108 -10
- package/dist/jsx/Toast/store.native.js.map +1 -1
- package/dist/jsx/Tooltip/index.mjs +147 -42
- package/dist/jsx/Tooltip/index.mjs.map +1 -1
- package/dist/jsx/Tooltip/index.native.js +195 -43
- package/dist/jsx/Tooltip/index.native.js.map +1 -1
- package/dist/jsx/Video/PlayerChrome.mjs +377 -0
- package/dist/jsx/Video/PlayerChrome.mjs.map +1 -0
- package/dist/jsx/Video/PlayerChrome.native.js +436 -0
- package/dist/jsx/Video/PlayerChrome.native.js.map +1 -0
- package/dist/jsx/Video/VideoFrame.mjs +14 -5
- package/dist/jsx/Video/VideoFrame.mjs.map +1 -1
- package/dist/jsx/Video/VideoFrame.native.js +16 -5
- package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
- package/dist/jsx/Video/index.mjs +227 -11
- package/dist/jsx/Video/index.mjs.map +1 -1
- package/dist/jsx/Video/index.native.js +28 -13
- package/dist/jsx/Video/index.native.js.map +1 -1
- package/dist/jsx/Wheel/index.mjs +143 -92
- package/dist/jsx/Wheel/index.mjs.map +1 -1
- package/dist/jsx/Wheel/index.native.js +149 -96
- package/dist/jsx/Wheel/index.native.js.map +1 -1
- package/dist/jsx/actions/DestructiveAction.mjs +1 -1
- package/dist/jsx/actions/DestructiveAction.native.js +2 -2
- package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
- package/dist/jsx/charts/BarChart.mjs +8 -4
- package/dist/jsx/charts/BarChart.mjs.map +1 -1
- package/dist/jsx/charts/BarChart.native.js +9 -5
- package/dist/jsx/charts/BarChart.native.js.map +1 -1
- package/dist/jsx/charts/LineChart.mjs +1 -1
- package/dist/jsx/charts/LineChart.native.js +2 -2
- package/dist/jsx/charts/LineChart.native.js.map +1 -1
- package/dist/jsx/charts/PieChart.mjs +1 -1
- package/dist/jsx/charts/PieChart.native.js +2 -2
- package/dist/jsx/charts/PieChart.native.js.map +1 -1
- package/dist/jsx/charts/Sparkline.mjs +1 -1
- package/dist/jsx/charts/Sparkline.native.js +2 -2
- package/dist/jsx/charts/Sparkline.native.js.map +1 -1
- package/dist/jsx/charts/index.mjs +2 -1
- package/dist/jsx/charts/index.mjs.map +1 -1
- package/dist/jsx/charts/index.native.js +4 -0
- package/dist/jsx/charts/index.native.js.map +1 -1
- package/dist/jsx/code/CodeBlock/index.mjs +34 -7
- package/dist/jsx/code/CodeBlock/index.mjs.map +1 -1
- package/dist/jsx/code/CodeBlock/index.native.js +36 -9
- package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.mjs +93 -6
- package/dist/jsx/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js +123 -5
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/jsx/feedback/NotifyHost.mjs +1 -1
- package/dist/jsx/feedback/NotifyHost.native.js +2 -2
- package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
- package/dist/jsx/icons/themed.mjs +5 -2
- package/dist/jsx/icons/themed.mjs.map +1 -1
- package/dist/jsx/icons/themed.native.js +4 -1
- package/dist/jsx/icons/themed.native.js.map +1 -1
- package/dist/jsx/images/Image/ImageFrame.mjs +216 -0
- package/dist/jsx/images/Image/ImageFrame.mjs.map +1 -0
- package/dist/jsx/images/Image/ImageFrame.native.js +248 -0
- package/dist/jsx/images/Image/ImageFrame.native.js.map +1 -0
- package/dist/jsx/images/Image/index.mjs +94 -41
- package/dist/jsx/images/Image/index.mjs.map +1 -1
- package/dist/jsx/images/Image/index.native.js +146 -108
- package/dist/jsx/images/Image/index.native.js.map +1 -1
- package/dist/jsx/images/Image/shared.mjs +76 -0
- package/dist/jsx/images/Image/shared.mjs.map +1 -0
- package/dist/jsx/images/Image/shared.native.js +109 -0
- package/dist/jsx/images/Image/shared.native.js.map +1 -0
- package/dist/jsx/index.js +4 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +4 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +7 -0
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/knobImmuneExports.mjs +70 -0
- package/dist/jsx/knobImmuneExports.mjs.map +1 -0
- package/dist/jsx/knobImmuneExports.native.js +98 -0
- package/dist/jsx/knobImmuneExports.native.js.map +1 -0
- package/dist/jsx/layouts/AsyncBoundary.mjs +165 -38
- package/dist/jsx/layouts/AsyncBoundary.mjs.map +1 -1
- package/dist/jsx/layouts/AsyncBoundary.native.js +166 -37
- package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/jsx/layouts/EmptyState.mjs +132 -0
- package/dist/jsx/layouts/EmptyState.mjs.map +1 -0
- package/dist/jsx/layouts/EmptyState.native.js +165 -0
- package/dist/jsx/layouts/EmptyState.native.js.map +1 -0
- package/dist/jsx/layouts/PageTemplates.mjs +13 -5
- package/dist/jsx/layouts/PageTemplates.mjs.map +1 -1
- package/dist/jsx/layouts/PageTemplates.native.js +13 -5
- package/dist/jsx/layouts/PageTemplates.native.js.map +1 -1
- package/dist/jsx/layouts/PaneScaffold.mjs +277 -17
- package/dist/jsx/layouts/PaneScaffold.mjs.map +1 -1
- package/dist/jsx/layouts/PaneScaffold.native.js +294 -13
- package/dist/jsx/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/jsx/layouts/ViewSwitcher.mjs +66 -24
- package/dist/jsx/layouts/ViewSwitcher.mjs.map +1 -1
- package/dist/jsx/layouts/ViewSwitcher.native.js +78 -30
- package/dist/jsx/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.mjs +351 -175
- package/dist/jsx/layouts/attachments.mjs.map +1 -1
- package/dist/jsx/layouts/attachments.native.js +370 -186
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.mjs +163 -53
- package/dist/jsx/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.native.js +184 -65
- package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +72 -112
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.js +82 -130
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/pageHeadingScope.mjs +8 -3
- package/dist/jsx/layouts/pageHeadingScope.mjs.map +1 -1
- package/dist/jsx/layouts/pageHeadingScope.native.js +10 -2
- package/dist/jsx/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/jsx/layouts/sidebar.mjs +152 -68
- package/dist/jsx/layouts/sidebar.mjs.map +1 -1
- package/dist/jsx/layouts/sidebar.native.js +118 -47
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/tags.mjs +323 -140
- package/dist/jsx/layouts/tags.mjs.map +1 -1
- package/dist/jsx/layouts/tags.native.js +355 -158
- package/dist/jsx/layouts/tags.native.js.map +1 -1
- package/dist/jsx/layouts/timeline.mjs +129 -45
- package/dist/jsx/layouts/timeline.mjs.map +1 -1
- package/dist/jsx/layouts/timeline.native.js +179 -55
- package/dist/jsx/layouts/timeline.native.js.map +1 -1
- package/dist/jsx/layouts/toolbar.mjs +57 -21
- package/dist/jsx/layouts/toolbar.mjs.map +1 -1
- package/dist/jsx/layouts/toolbar.native.js +62 -25
- package/dist/jsx/layouts/toolbar.native.js.map +1 -1
- package/dist/jsx/shared/i18n.mjs +10 -0
- package/dist/jsx/shared/i18n.mjs.map +1 -0
- package/dist/jsx/shared/i18n.native.js +52 -0
- package/dist/jsx/shared/i18n.native.js.map +1 -0
- package/dist/jsx/shared/textRidesText.mjs +31 -0
- package/dist/jsx/shared/textRidesText.mjs.map +1 -0
- package/dist/jsx/shared/textRidesText.native.js +81 -0
- package/dist/jsx/shared/textRidesText.native.js.map +1 -0
- package/dist/jsx/shared/useReturnFocusOnClose.mjs +7 -1
- package/dist/jsx/shared/useReturnFocusOnClose.mjs.map +1 -1
- package/dist/jsx/shared/useReturnFocusOnClose.native.js +7 -1
- package/dist/jsx/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/jsx/surfaces.mjs +94 -17
- package/dist/jsx/surfaces.mjs.map +1 -1
- package/dist/jsx/surfaces.native.js +95 -16
- package/dist/jsx/surfaces.native.js.map +1 -1
- package/dist/jsx/tamagui.mjs +2 -3
- package/dist/jsx/tamagui.mjs.map +1 -1
- package/dist/jsx/tamagui.native.js +37 -38
- package/dist/jsx/tamagui.native.js.map +1 -1
- package/dist/jsx/views/Calendar.mjs +101 -64
- package/dist/jsx/views/Calendar.mjs.map +1 -1
- package/dist/jsx/views/Calendar.native.js +105 -70
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/Dashboard.mjs +396 -107
- package/dist/jsx/views/Dashboard.mjs.map +1 -1
- package/dist/jsx/views/Dashboard.native.js +408 -110
- package/dist/jsx/views/Dashboard.native.js.map +1 -1
- package/dist/jsx/views/Gantt.mjs +256 -59
- package/dist/jsx/views/Gantt.mjs.map +1 -1
- package/dist/jsx/views/Gantt.native.js +264 -39
- package/dist/jsx/views/Gantt.native.js.map +1 -1
- package/dist/jsx/views/ImageGrid.mjs +138 -73
- package/dist/jsx/views/ImageGrid.mjs.map +1 -1
- package/dist/jsx/views/ImageGrid.native.js +155 -71
- package/dist/jsx/views/ImageGrid.native.js.map +1 -1
- package/dist/jsx/views/Kanban.mjs +52 -30
- package/dist/jsx/views/Kanban.mjs.map +1 -1
- package/dist/jsx/views/Kanban.native.js +55 -41
- package/dist/jsx/views/Kanban.native.js.map +1 -1
- package/dist/jsx/views/List.mjs +268 -95
- package/dist/jsx/views/List.mjs.map +1 -1
- package/dist/jsx/views/List.native.js +280 -101
- package/dist/jsx/views/List.native.js.map +1 -1
- package/dist/jsx/views/ReportBuilder.mjs +533 -166
- package/dist/jsx/views/ReportBuilder.mjs.map +1 -1
- package/dist/jsx/views/ReportBuilder.native.js +592 -169
- package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
- package/dist/jsx/views/TreeView.mjs +142 -52
- package/dist/jsx/views/TreeView.mjs.map +1 -1
- package/dist/jsx/views/TreeView.native.js +170 -55
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/package.json +18 -18
- package/src/Accordion/Accordion.lc50.spec.tsx +69 -0
- package/src/Accordion/Accordion.spec.tsx +36 -0
- package/src/Accordion/Accordion.stories.tsx +82 -36
- package/src/Accordion/index.tsx +296 -75
- package/src/Alert/Alert.spec.tsx +137 -1
- package/src/Alert/Alert.stories.tsx +10 -11
- package/src/Alert/index.tsx +244 -62
- package/src/AnimateHeight/AnimateHeight.spec.tsx +152 -0
- package/src/AnimateHeight/index.tsx +237 -0
- package/src/Avatar/Avatar.spec.tsx +73 -2
- package/src/Avatar/Avatar.stories.tsx +106 -4
- package/src/Avatar/getInitials.ts +29 -0
- package/src/Avatar/index.tsx +323 -105
- package/src/Badge/Badge.spec.tsx +83 -0
- package/src/Badge/Badge.stories.tsx +15 -1
- package/src/Badge/index.tsx +138 -84
- package/src/Button.spec.tsx +181 -0
- package/src/Button.stories.tsx +92 -0
- package/src/Button.tsx +43 -0
- package/src/Carousel/Carousel.spec.tsx +152 -0
- package/src/Carousel/index.tsx +239 -102
- package/src/Chip/Chip.spec.tsx +141 -0
- package/src/Chip/Chip.stories.tsx +163 -10
- package/src/Chip/index.tsx +452 -11
- package/src/DialogContent.stories.tsx +8 -6
- package/src/DotIndicator/DotIndicator.stories.tsx +18 -0
- package/src/DotIndicator/dotIndicator.spec.tsx +57 -2
- package/src/DotIndicator/index.tsx +159 -24
- package/src/DropdownMenu/DropdownMenu.spec.tsx +172 -0
- package/src/DropdownMenu/DropdownMenu.stories.tsx +35 -0
- package/src/DropdownMenu/index.tsx +172 -46
- package/src/ErrorBoundary/index.tsx +1 -1
- package/src/Pagination.api.spec.tsx +41 -0
- package/src/Pagination.tsx +49 -8
- package/src/PopoverContent.stories.tsx +4 -2
- package/src/ProgressSteps/ProgressSteps.spec.tsx +48 -1
- package/src/ProgressSteps/ProgressSteps.stories.tsx +48 -0
- package/src/ProgressSteps/index.tsx +224 -133
- package/src/Quote/Quote.lc50.spec.tsx +53 -0
- package/src/Quote/Quote.spec.tsx +9 -2
- package/src/Quote/Quote.stories.tsx +1 -1
- package/src/Quote/index.tsx +77 -60
- package/src/SheetModal/index.native.tsx +41 -39
- package/src/SheetModal/index.tsx +149 -18
- package/src/Skeleton/Skeleton.stories.tsx +109 -93
- package/src/Skeleton/SkeletonText.stories.tsx +11 -0
- package/src/Skeleton/index.tsx +257 -8
- package/src/SkipLink/SkipLink.spec.tsx +35 -0
- package/src/SkipLink/SkipLink.stories.tsx +1 -1
- package/src/SkipLink/index.tsx +120 -71
- package/src/Tabs/Tabs.spec.tsx +65 -0
- package/src/Tabs/Tabs.stories.tsx +32 -0
- package/src/Tabs/index.tsx +188 -133
- package/src/Toast/Toast.spec.tsx +208 -8
- package/src/Toast/Toast.stories.tsx +97 -16
- package/src/Toast/index.tsx +322 -78
- package/src/Toast/store.ts +150 -16
- package/src/Tooltip/Tooltip.lc50.spec.tsx +52 -0
- package/src/Tooltip/Tooltip.spec.tsx +99 -0
- package/src/Tooltip/Tooltip.stories.tsx +23 -0
- package/src/Tooltip/index.tsx +200 -44
- package/src/Video/PlayerChrome.tsx +412 -0
- package/src/Video/Video.spec.tsx +47 -4
- package/src/Video/Video.stories.tsx +2 -1
- package/src/Video/VideoFrame.tsx +15 -3
- package/src/Video/index.native.tsx +20 -12
- package/src/Video/index.tsx +285 -21
- package/src/Video/types.ts +7 -1
- package/src/Wheel/Wheel.spec.tsx +217 -2
- package/src/Wheel/Wheel.stories.tsx +39 -13
- package/src/Wheel/index.tsx +205 -134
- package/src/actions/DestructiveAction.tsx +1 -1
- package/src/charts/BarChart.tsx +14 -3
- package/src/charts/LineChart.tsx +1 -1
- package/src/charts/PieChart.tsx +1 -1
- package/src/charts/Sparkline.tsx +1 -1
- package/src/charts/charts.spec.tsx +25 -0
- package/src/charts/index.ts +9 -0
- package/src/code/CodeBlock/index.tsx +43 -7
- package/src/export-surface.spec.tsx +137 -0
- package/src/feedback/ConfirmDialog.spec.tsx +36 -0
- package/src/feedback/ConfirmDialog.stories.tsx +20 -1
- package/src/feedback/ConfirmDialog.tsx +121 -9
- package/src/feedback/NotifyHost.tsx +1 -1
- package/src/icons/themed.tsx +7 -2
- package/src/images/Image/Image.spec.tsx +136 -73
- package/src/images/Image/Image.stories.tsx +113 -9
- package/src/images/Image/ImageFrame.tsx +288 -0
- package/src/images/Image/index.native.tsx +177 -144
- package/src/images/Image/index.tsx +103 -51
- package/src/images/Image/shared.ts +88 -0
- package/src/images/Image/types.ts +32 -1
- package/src/index.ts +18 -0
- package/src/knobImmuneExports.ts +97 -0
- package/src/layouts/AsyncBoundary.spec.tsx +77 -0
- package/src/layouts/AsyncBoundary.stories.tsx +33 -1
- package/src/layouts/AsyncBoundary.tsx +183 -46
- package/src/layouts/Attachments.stories.tsx +28 -14
- package/src/layouts/Breadcrumbs.stories.tsx +22 -1
- package/src/layouts/EmptyState.stories.tsx +94 -26
- package/src/layouts/EmptyState.tsx +169 -0
- package/src/layouts/PageHeader.stories.tsx +68 -15
- package/src/layouts/PageTemplates.tsx +11 -6
- package/src/layouts/PaneScaffold.stories.tsx +132 -37
- package/src/layouts/PaneScaffold.tsx +354 -18
- package/src/layouts/ScreenToolbar.stories.tsx +36 -11
- package/src/layouts/Sidebar.stories.tsx +30 -7
- package/src/layouts/Tags.stories.tsx +31 -32
- package/src/layouts/Timeline.stories.tsx +2 -2
- package/src/layouts/Toolbar.stories.tsx +19 -0
- package/src/layouts/ViewSwitcher.stories.tsx +11 -3
- package/src/layouts/ViewSwitcher.tsx +101 -48
- package/src/layouts/attachments.tsx +394 -186
- package/src/layouts/breadcrumbs.tsx +213 -75
- package/src/layouts/layouts.spec.tsx +32 -0
- package/src/layouts/page.tsx +103 -164
- package/src/layouts/pageHeadingScope.tsx +28 -2
- package/src/layouts/sidebar.tsx +184 -91
- package/src/layouts/tags-trigger.spec.tsx +8 -8
- package/src/layouts/tags.tsx +356 -159
- package/src/layouts/timeline-comments.spec.tsx +17 -0
- package/src/layouts/timeline.tsx +179 -65
- package/src/layouts/toolbar.tsx +78 -27
- package/src/shared/i18n.ts +26 -0
- package/src/shared/textRidesText.ts +57 -0
- package/src/shared/useReturnFocusOnClose.ts +7 -1
- package/src/surfaces.tsx +83 -22
- package/src/tamagui.spec.ts +19 -4
- package/src/tamagui.ts +14 -6
- package/src/views/Calendar.stories.tsx +2 -1
- package/src/views/Calendar.tsx +129 -81
- package/src/views/Dashboard.stories.tsx +132 -1
- package/src/views/Dashboard.tsx +440 -127
- package/src/views/Gantt.stories.tsx +6 -5
- package/src/views/Gantt.tsx +330 -61
- package/src/views/ImageGrid.stories.tsx +81 -17
- package/src/views/ImageGrid.tsx +176 -96
- package/src/views/Kanban.native.tsx +73 -42
- package/src/views/Kanban.stories.tsx +42 -26
- package/src/views/Kanban.tsx +68 -40
- package/src/views/List.stories.tsx +107 -29
- package/src/views/List.tsx +335 -109
- package/src/views/ReportBuilder.stories.tsx +28 -1
- package/src/views/ReportBuilder.tsx +647 -275
- package/src/views/TreeView.stories.tsx +19 -0
- package/src/views/TreeView.tsx +194 -59
- package/types/Accordion/index.d.ts +10 -2
- package/types/Accordion/index.d.ts.map +1 -1
- package/types/Alert/index.d.ts +8 -2
- package/types/Alert/index.d.ts.map +1 -1
- package/types/AnimateHeight/index.d.ts +48 -0
- package/types/AnimateHeight/index.d.ts.map +1 -0
- package/types/Avatar/getInitials.d.ts +26 -0
- package/types/Avatar/getInitials.d.ts.map +1 -1
- package/types/Avatar/index.d.ts +34 -11
- package/types/Avatar/index.d.ts.map +1 -1
- package/types/Badge/index.d.ts +17 -12
- package/types/Badge/index.d.ts.map +1 -1
- package/types/Button.d.ts +42 -0
- package/types/Button.d.ts.map +1 -0
- package/types/Carousel/index.d.ts.map +1 -1
- package/types/Chip/index.d.ts +41 -1
- package/types/Chip/index.d.ts.map +1 -1
- package/types/DotIndicator/index.d.ts +4 -3
- package/types/DotIndicator/index.d.ts.map +1 -1
- package/types/DropdownMenu/index.d.ts +39 -5
- package/types/DropdownMenu/index.d.ts.map +1 -1
- package/types/ErrorBoundary/index.d.ts +1 -1
- package/types/Pagination.d.ts.map +1 -1
- package/types/ProgressSteps/index.d.ts +20 -5
- package/types/ProgressSteps/index.d.ts.map +1 -1
- package/types/Quote/index.d.ts +4 -3
- package/types/Quote/index.d.ts.map +1 -1
- package/types/SheetModal/index.d.ts +7 -10
- package/types/SheetModal/index.d.ts.map +1 -1
- package/types/SheetModal/index.native.d.ts +6 -13
- package/types/SheetModal/index.native.d.ts.map +1 -1
- package/types/Skeleton/index.d.ts +40 -1
- package/types/Skeleton/index.d.ts.map +1 -1
- package/types/SkipLink/index.d.ts +5 -6
- package/types/SkipLink/index.d.ts.map +1 -1
- package/types/Tabs/index.d.ts +12 -10
- package/types/Tabs/index.d.ts.map +1 -1
- package/types/Toast/index.d.ts +32 -9
- package/types/Toast/index.d.ts.map +1 -1
- package/types/Toast/store.d.ts +59 -4
- package/types/Toast/store.d.ts.map +1 -1
- package/types/Tooltip/index.d.ts +50 -5
- package/types/Tooltip/index.d.ts.map +1 -1
- package/types/Video/PlayerChrome.d.ts +24 -0
- package/types/Video/PlayerChrome.d.ts.map +1 -0
- package/types/Video/VideoFrame.d.ts.map +1 -1
- package/types/Video/index.d.ts +3 -2
- package/types/Video/index.d.ts.map +1 -1
- package/types/Video/index.native.d.ts +3 -2
- package/types/Video/index.native.d.ts.map +1 -1
- package/types/Video/types.d.ts +7 -1
- package/types/Video/types.d.ts.map +1 -1
- package/types/Wheel/index.d.ts +10 -1
- package/types/Wheel/index.d.ts.map +1 -1
- package/types/charts/BarChart.d.ts +7 -1
- package/types/charts/BarChart.d.ts.map +1 -1
- package/types/charts/index.d.ts +1 -0
- package/types/charts/index.d.ts.map +1 -1
- package/types/code/CodeBlock/index.d.ts.map +1 -1
- package/types/feedback/ConfirmDialog.d.ts +6 -0
- package/types/feedback/ConfirmDialog.d.ts.map +1 -1
- package/types/icons/themed.d.ts.map +1 -1
- package/types/images/Image/ImageFrame.d.ts +40 -0
- package/types/images/Image/ImageFrame.d.ts.map +1 -0
- package/types/images/Image/index.d.ts +1 -1
- package/types/images/Image/index.d.ts.map +1 -1
- package/types/images/Image/index.native.d.ts +1 -1
- package/types/images/Image/index.native.d.ts.map +1 -1
- package/types/images/Image/shared.d.ts +13 -0
- package/types/images/Image/shared.d.ts.map +1 -0
- package/types/images/Image/types.d.ts +27 -1
- package/types/images/Image/types.d.ts.map +1 -1
- package/types/index.d.ts +6 -0
- package/types/index.d.ts.map +1 -1
- package/types/knobImmuneExports.d.ts +21 -0
- package/types/knobImmuneExports.d.ts.map +1 -0
- package/types/layouts/AsyncBoundary.d.ts +20 -2
- package/types/layouts/AsyncBoundary.d.ts.map +1 -1
- package/types/layouts/EmptyState.d.ts +26 -0
- package/types/layouts/EmptyState.d.ts.map +1 -0
- package/types/layouts/PageTemplates.d.ts +5 -3
- package/types/layouts/PageTemplates.d.ts.map +1 -1
- package/types/layouts/PaneScaffold.d.ts +27 -5
- package/types/layouts/PaneScaffold.d.ts.map +1 -1
- package/types/layouts/ViewSwitcher.d.ts +7 -4
- package/types/layouts/ViewSwitcher.d.ts.map +1 -1
- package/types/layouts/attachments.d.ts +4 -2
- package/types/layouts/attachments.d.ts.map +1 -1
- package/types/layouts/breadcrumbs.d.ts +13 -5
- package/types/layouts/breadcrumbs.d.ts.map +1 -1
- package/types/layouts/page.d.ts +16 -27
- package/types/layouts/page.d.ts.map +1 -1
- package/types/layouts/pageHeadingScope.d.ts +14 -1
- package/types/layouts/pageHeadingScope.d.ts.map +1 -1
- package/types/layouts/sidebar.d.ts +3 -1
- package/types/layouts/sidebar.d.ts.map +1 -1
- package/types/layouts/tags.d.ts +4 -1
- package/types/layouts/tags.d.ts.map +1 -1
- package/types/layouts/timeline.d.ts +7 -5
- package/types/layouts/timeline.d.ts.map +1 -1
- package/types/layouts/toolbar.d.ts +1 -1
- package/types/layouts/toolbar.d.ts.map +1 -1
- package/types/shared/i18n.d.ts +14 -0
- package/types/shared/i18n.d.ts.map +1 -0
- package/types/shared/textRidesText.d.ts +20 -0
- package/types/shared/textRidesText.d.ts.map +1 -0
- package/types/shared/useReturnFocusOnClose.d.ts.map +1 -1
- package/types/surfaces.d.ts +0 -14
- package/types/surfaces.d.ts.map +1 -1
- package/types/tamagui.d.ts +2 -3
- package/types/tamagui.d.ts.map +1 -1
- package/types/views/Calendar.d.ts.map +1 -1
- package/types/views/Dashboard.d.ts +68 -6
- package/types/views/Dashboard.d.ts.map +1 -1
- package/types/views/Gantt.d.ts +5 -0
- package/types/views/Gantt.d.ts.map +1 -1
- package/types/views/ImageGrid.d.ts +4 -0
- package/types/views/ImageGrid.d.ts.map +1 -1
- package/types/views/Kanban.d.ts.map +1 -1
- package/types/views/Kanban.native.d.ts +12 -1
- package/types/views/Kanban.native.d.ts.map +1 -1
- package/types/views/List.d.ts +45 -6
- package/types/views/List.d.ts.map +1 -1
- package/types/views/ReportBuilder.d.ts +8 -54
- package/types/views/ReportBuilder.d.ts.map +1 -1
- package/types/views/TreeView.d.ts +13 -11
- package/types/views/TreeView.d.ts.map +1 -1
package/src/Badge/index.tsx
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
2
3
|
import { radiusClassProps, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
3
|
-
import type { ColorTokens, GetProps } from "tamagui";
|
|
4
|
-
import { Text, View, styled } from "tamagui";
|
|
4
|
+
import type { ColorTokens, FontSizeTokens, GetProps } from "tamagui";
|
|
5
|
+
import { Text, View, isWeb, styled } from "tamagui";
|
|
5
6
|
import { componentColors } from "../componentColors";
|
|
7
|
+
import { useDirection } from "../hooks/useDirection";
|
|
6
8
|
import { useAsyncBoundary } from "../layouts/AsyncBoundary";
|
|
9
|
+
import { bidiIsolate } from "../shared/t";
|
|
7
10
|
|
|
8
11
|
// ── Types ─────────────────────────────────────────────────────
|
|
9
12
|
|
|
@@ -12,24 +15,31 @@ export type BadgeColor = "red" | "blue" | "green" | "orange" | "gray";
|
|
|
12
15
|
export type BadgePosition = "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
13
16
|
|
|
14
17
|
export interface BadgeProps {
|
|
15
|
-
/**
|
|
16
|
-
children
|
|
17
|
-
/**
|
|
18
|
+
/** Host to overlay. Omit for a Primer CounterLabel-style standalone pill. */
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
/** Count to display. Hidden when 0/undefined unless `showZero` or `dot`. */
|
|
18
21
|
count?: number;
|
|
19
|
-
/**
|
|
22
|
+
/** Overflow cap. Counts above this render as `max+` (Primer/Carbon). */
|
|
20
23
|
max?: number;
|
|
21
|
-
/** Show
|
|
24
|
+
/** Show the pill when `count` is 0. */
|
|
22
25
|
showZero?: boolean;
|
|
23
|
-
/**
|
|
26
|
+
/** Ambient presence mark (Ant/Carbon: low-weight signal, not a precise count). */
|
|
24
27
|
dot?: boolean;
|
|
25
28
|
/** Badge color */
|
|
26
29
|
color?: BadgeColor;
|
|
27
|
-
/**
|
|
30
|
+
/** Corner the overlay hangs from. Logicalized in RTL (end/start). */
|
|
28
31
|
position?: BadgePosition;
|
|
29
|
-
/**
|
|
32
|
+
/** Extra outward offset from the hung corner `[x, y]` in pixels. */
|
|
30
33
|
offset?: [number, number];
|
|
31
34
|
/** Whether the badge is visible */
|
|
32
35
|
visible?: boolean;
|
|
36
|
+
/** Compact density override (wins over the density knob). */
|
|
37
|
+
compact?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Accessible name. Overflowed counts default to the exact number (Carbon
|
|
40
|
+
* tooltip / Primer accessible name), not the visible `max+` string.
|
|
41
|
+
*/
|
|
42
|
+
accessibilityLabel?: string;
|
|
33
43
|
}
|
|
34
44
|
|
|
35
45
|
// ── Color mappings ────────────────────────────────────────────
|
|
@@ -46,68 +56,87 @@ const colorMap: Record<BadgeColor, { bg: ColorTokens; text: ColorTokens }> = {
|
|
|
46
56
|
|
|
47
57
|
// ── Size mappings ─────────────────────────────────────────────
|
|
48
58
|
|
|
49
|
-
// R-PILL
|
|
50
|
-
//
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// ── Position mappings ─────────────────────────────────────────
|
|
58
|
-
|
|
59
|
-
const positionMap: Record<
|
|
60
|
-
BadgePosition,
|
|
61
|
-
{ top?: number; right?: number; bottom?: number; left?: number }
|
|
59
|
+
// R-PILL: size knob moves diameter, padding, and type — never shape.
|
|
60
|
+
// Capsule stays well below the 44px control floor (ornamental overlay, not a
|
|
61
|
+
// press target — same contract as DotIndicator). Compact/density steps
|
|
62
|
+
// `sizeToken` down via useResolvedKnobs, so this table only ever shrinks.
|
|
63
|
+
const badgeGeometryMap: Record<
|
|
64
|
+
string,
|
|
65
|
+
{ capsule: number; font: FontSizeTokens; pad: number; dot: number }
|
|
62
66
|
> = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"bottom-left": { bottom: 0, left: 0 },
|
|
67
|
+
$3: { capsule: 16, font: "$1", pad: 4, dot: 6 },
|
|
68
|
+
$4: { capsule: 18, font: "$1", pad: 5, dot: 8 },
|
|
69
|
+
$5: { capsule: 22, font: "$2", pad: 6, dot: 10 },
|
|
67
70
|
};
|
|
68
71
|
|
|
72
|
+
/** Primer Counter / Carbon notification: canvas hairline so the fill separates from any host. */
|
|
73
|
+
const CONTRAST_RING = 2;
|
|
74
|
+
|
|
69
75
|
// ── Styled components ─────────────────────────────────────────
|
|
70
76
|
|
|
71
77
|
const BadgeWrapper = styled(View, {
|
|
72
78
|
name: "BadgeWrapper",
|
|
73
79
|
position: "relative",
|
|
74
80
|
display: "inline-flex",
|
|
81
|
+
alignSelf: "flex-start",
|
|
82
|
+
overflow: "visible",
|
|
75
83
|
});
|
|
76
84
|
|
|
77
85
|
const BadgeIndicator = styled(View, {
|
|
78
86
|
name: "BadgeIndicator",
|
|
79
|
-
// R-PILL (D-09 / LC-60): the count/dot
|
|
80
|
-
//
|
|
87
|
+
// R-PILL (D-09 / LC-60): the count/dot is a pill at every radius value;
|
|
88
|
+
// the knob moves its size and padding, never its shape.
|
|
81
89
|
...radiusClassProps("R-PILL", "Badge count/dot"),
|
|
82
|
-
position: "absolute",
|
|
83
90
|
alignItems: "center",
|
|
84
91
|
justifyContent: "center",
|
|
85
92
|
borderRadius: 1000,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
borderWidth: CONTRAST_RING,
|
|
94
|
+
borderColor: "$color1",
|
|
95
|
+
borderStyle: "solid",
|
|
89
96
|
zIndex: 1,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
dot: {
|
|
93
|
-
true: {
|
|
94
|
-
minWidth: 8,
|
|
95
|
-
width: 8,
|
|
96
|
-
height: 8,
|
|
97
|
-
paddingHorizontal: 0,
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
} as const,
|
|
97
|
+
// Orbit/Primer: badges are not actionable — clicks hit the host.
|
|
98
|
+
pointerEvents: "none",
|
|
101
99
|
});
|
|
102
100
|
|
|
103
101
|
const BadgeText = styled(Text, {
|
|
104
102
|
name: "BadgeText",
|
|
105
|
-
fontSize: 11,
|
|
106
103
|
fontWeight: "600",
|
|
107
|
-
lineHeight: 18,
|
|
108
104
|
textAlign: "center",
|
|
105
|
+
pointerEvents: "none",
|
|
109
106
|
});
|
|
110
107
|
|
|
108
|
+
// ── Helpers ───────────────────────────────────────────────────
|
|
109
|
+
|
|
110
|
+
function normalizeCount(count: number | undefined): number | undefined {
|
|
111
|
+
if (count === undefined || !Number.isFinite(count)) return undefined;
|
|
112
|
+
return Math.max(0, Math.floor(count));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function normalizeMax(max: number): number {
|
|
116
|
+
if (!Number.isFinite(max) || max < 0) return 99;
|
|
117
|
+
return Math.floor(max);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function indicatorPlacement(
|
|
121
|
+
position: BadgePosition,
|
|
122
|
+
isRTL: boolean,
|
|
123
|
+
overlap: number,
|
|
124
|
+
offset: [number, number],
|
|
125
|
+
) {
|
|
126
|
+
const atEnd = position.includes("right");
|
|
127
|
+
const atTop = position.includes("top");
|
|
128
|
+
const [ox, oy] = offset;
|
|
129
|
+
const inlineProp = atEnd === !isRTL ? "right" : "left";
|
|
130
|
+
const dirX = inlineProp === "right" ? 1 : -1;
|
|
131
|
+
const dirY = atTop ? -1 : 1;
|
|
132
|
+
return {
|
|
133
|
+
position: "absolute" as const,
|
|
134
|
+
[atTop ? "top" : "bottom"]: 0,
|
|
135
|
+
[inlineProp]: 0,
|
|
136
|
+
transform: [{ translateX: dirX * (overlap + ox) }, { translateY: dirY * (overlap + oy) }],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
111
140
|
// ── Badge Component ───────────────────────────────────────────
|
|
112
141
|
|
|
113
142
|
export function Badge({
|
|
@@ -120,59 +149,84 @@ export function Badge({
|
|
|
120
149
|
position = "top-right",
|
|
121
150
|
offset = [0, 0],
|
|
122
151
|
visible = true,
|
|
152
|
+
compact,
|
|
153
|
+
accessibilityLabel,
|
|
123
154
|
}: BadgeProps) {
|
|
124
|
-
const {
|
|
155
|
+
const { t } = useTranslation();
|
|
156
|
+
const isRTL = useDirection() === "rtl";
|
|
157
|
+
const { knobProps } = useResolvedKnobs({ component: "Badge", compact });
|
|
125
158
|
const colors = colorMap[color];
|
|
126
159
|
const geometry = badgeGeometryMap[knobProps.sizeToken] ?? badgeGeometryMap.$4;
|
|
127
|
-
const posStyles = positionMap[position];
|
|
128
160
|
// DG-ST-04: degrade — hide counts/badges when a parent AsyncBoundary failed.
|
|
129
161
|
const asyncCtx = useAsyncBoundary();
|
|
130
162
|
const effectiveVisible = visible && !asyncCtx?.hideBadges;
|
|
131
|
-
const effectiveCount = asyncCtx?.hideBadges ? undefined : count;
|
|
163
|
+
const effectiveCount = asyncCtx?.hideBadges ? undefined : normalizeCount(count);
|
|
164
|
+
const cap = normalizeMax(max);
|
|
165
|
+
const standalone = children == null;
|
|
132
166
|
|
|
133
|
-
// Determine if badge should be shown
|
|
134
167
|
const shouldShow =
|
|
135
168
|
effectiveVisible && (dot || (effectiveCount !== undefined && (effectiveCount > 0 || showZero)));
|
|
136
169
|
|
|
137
|
-
|
|
138
|
-
const displayValue =
|
|
139
|
-
|
|
170
|
+
const overflowed = effectiveCount !== undefined && effectiveCount > cap;
|
|
171
|
+
const displayValue = overflowed ? `${cap}+` : effectiveCount;
|
|
172
|
+
const painted = dot ? geometry.dot : geometry.capsule;
|
|
173
|
+
// Material/Ant overlay: hang 50% off the corner. Standalone CounterLabel sits in flow.
|
|
174
|
+
const overlap = standalone ? 0 : painted / 2;
|
|
175
|
+
|
|
176
|
+
const a11yLabel =
|
|
177
|
+
accessibilityLabel ??
|
|
178
|
+
(dot
|
|
179
|
+
? t("New activity")
|
|
180
|
+
: overflowed && effectiveCount !== undefined
|
|
181
|
+
? String(effectiveCount)
|
|
182
|
+
: undefined);
|
|
183
|
+
|
|
184
|
+
if (!shouldShow) {
|
|
185
|
+
return standalone ? null : <BadgeWrapper>{children}</BadgeWrapper>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
const indicator = (
|
|
189
|
+
<BadgeIndicator
|
|
190
|
+
backgroundColor={colors.bg}
|
|
191
|
+
minWidth={painted}
|
|
192
|
+
height={painted}
|
|
193
|
+
{...(dot ? { width: painted, paddingHorizontal: 0 } : { paddingHorizontal: geometry.pad })}
|
|
194
|
+
{...(standalone ? undefined : indicatorPlacement(position, isRTL, overlap, offset))}
|
|
195
|
+
role="status"
|
|
196
|
+
aria-live="polite"
|
|
197
|
+
aria-atomic="true"
|
|
198
|
+
aria-label={a11yLabel}
|
|
199
|
+
{...(isWeb && overflowed && effectiveCount !== undefined
|
|
200
|
+
? { title: String(effectiveCount) }
|
|
201
|
+
: undefined)}
|
|
202
|
+
{...({
|
|
203
|
+
"data-badge": dot ? "dot" : "count",
|
|
204
|
+
...(overflowed ? { "data-overflow": "true" } : {}),
|
|
205
|
+
} as Record<string, string>)}
|
|
206
|
+
>
|
|
207
|
+
{/* body spread first so the intended 600 weight wins (SB-M-101) */}
|
|
208
|
+
{!dot && effectiveCount !== undefined && (
|
|
209
|
+
<BadgeText
|
|
210
|
+
{...knobProps.body}
|
|
211
|
+
fontWeight="600"
|
|
212
|
+
fontSize={geometry.font}
|
|
213
|
+
lineHeight={Math.max(1, painted - CONTRAST_RING * 2)}
|
|
214
|
+
color={colors.text as ColorTokens}
|
|
215
|
+
>
|
|
216
|
+
{bidiIsolate(String(displayValue))}
|
|
217
|
+
</BadgeText>
|
|
218
|
+
)}
|
|
219
|
+
</BadgeIndicator>
|
|
220
|
+
);
|
|
140
221
|
|
|
141
|
-
|
|
142
|
-
|
|
222
|
+
if (standalone) {
|
|
223
|
+
return indicator;
|
|
224
|
+
}
|
|
143
225
|
|
|
144
226
|
return (
|
|
145
227
|
<BadgeWrapper>
|
|
146
228
|
{children}
|
|
147
|
-
{
|
|
148
|
-
<BadgeIndicator
|
|
149
|
-
dot={dot}
|
|
150
|
-
backgroundColor={colors.bg}
|
|
151
|
-
{...(dot
|
|
152
|
-
? { minWidth: geometry.dot, width: geometry.dot, height: geometry.dot }
|
|
153
|
-
: { minWidth: geometry.capsule, height: geometry.capsule })}
|
|
154
|
-
style={{
|
|
155
|
-
...posStyles,
|
|
156
|
-
transform: [
|
|
157
|
-
{ translateX: position.includes("right") ? offsetX : -offsetX },
|
|
158
|
-
{ translateY: position.includes("top") ? -offsetY : offsetY },
|
|
159
|
-
],
|
|
160
|
-
}}
|
|
161
|
-
>
|
|
162
|
-
{/* body spread first so the intended 600 weight wins (SB-M-101) */}
|
|
163
|
-
{!dot && effectiveCount !== undefined && (
|
|
164
|
-
<BadgeText
|
|
165
|
-
{...knobProps.body}
|
|
166
|
-
fontWeight="600"
|
|
167
|
-
fontSize={geometry.font}
|
|
168
|
-
lineHeight={geometry.capsule}
|
|
169
|
-
color={colors.text as any}
|
|
170
|
-
>
|
|
171
|
-
{displayValue}
|
|
172
|
-
</BadgeText>
|
|
173
|
-
)}
|
|
174
|
-
</BadgeIndicator>
|
|
175
|
-
)}
|
|
229
|
+
{indicator}
|
|
176
230
|
</BadgeWrapper>
|
|
177
231
|
);
|
|
178
232
|
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* House Button shadow (LC-18 KNOB-TOTALITY, curated-surface arm).
|
|
3
|
+
*
|
|
4
|
+
* The curated ./tamagui.ts used to re-export `Button` raw, so every
|
|
5
|
+
* components-imported Button was knob-dead (9px radius survivors at
|
|
6
|
+
* `borderRadius: none` — p-results/fix-button-knob-totality.md). The bare
|
|
7
|
+
* name now rides ./Button.tsx (thin prop-compat shim over the knob-correct
|
|
8
|
+
* forms Button). This spec locks:
|
|
9
|
+
*
|
|
10
|
+
* 1. knob fragments reach the frame through the components export —
|
|
11
|
+
* radius none → 0 token / full → 12 token, elevation none → flat —
|
|
12
|
+
* for default + chromeless, while `circular` stays the consumer SHAPE
|
|
13
|
+
* eject (keeps its 100000px circle at `none`, owner ruling 2026-08-13);
|
|
14
|
+
* 2. raw-tamagui prop-compat: `variant="outlined"` renders identically to
|
|
15
|
+
* the house `outlined` prop (pre-shadow consumers keep their look);
|
|
16
|
+
* 3. pass-through sanity: consumer props still eject last, presses fire,
|
|
17
|
+
* and the Button.Text / Button.Icon statics stay available.
|
|
18
|
+
*
|
|
19
|
+
* happy-dom cannot cascade tamagui's class CSS, so assertions read the
|
|
20
|
+
* atomic classes the knob emits (`_btlr-*` radius, `_bxsh-*` shadow,
|
|
21
|
+
* `_h-t-size-*` height) — the Button.lc18.spec.tsx technique.
|
|
22
|
+
*/
|
|
23
|
+
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
24
|
+
import { Preset } from "@multiplatform.one/theme";
|
|
25
|
+
import { cleanup, fireEvent, screen } from "@testing-library/react";
|
|
26
|
+
import { Button as TamaguiButton } from "tamagui";
|
|
27
|
+
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
28
|
+
import { Button } from "./Button";
|
|
29
|
+
import * as pkg from "./index";
|
|
30
|
+
|
|
31
|
+
afterEach(cleanup);
|
|
32
|
+
|
|
33
|
+
function frameRadiusClasses(): string[] {
|
|
34
|
+
const frame = screen.getByRole("button");
|
|
35
|
+
return String(frame.className || "")
|
|
36
|
+
.split(" ")
|
|
37
|
+
.filter((c) => c.startsWith("_btlr-"));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
describe("components Button export identity", () => {
|
|
41
|
+
it("the barrel serves the house shadow, not the raw tamagui primitive", () => {
|
|
42
|
+
expect(pkg.Button).toBe(Button);
|
|
43
|
+
expect(pkg.Button).not.toBe(TamaguiButton);
|
|
44
|
+
expect(pkg.TamaguiButton).toBe(TamaguiButton);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it("keeps the Button.Text / Button.Icon statics", () => {
|
|
48
|
+
expect(Button.Text).toBeDefined();
|
|
49
|
+
expect(Button.Icon).toBeDefined();
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
describe("components Button — borderRadius knob reaches the frame", () => {
|
|
54
|
+
it("default squares at none and follows the scale to full", () => {
|
|
55
|
+
renderWithProviders(
|
|
56
|
+
<Preset overrides={{ borderRadius: "none" }}>
|
|
57
|
+
<Button>Save</Button>
|
|
58
|
+
</Preset>,
|
|
59
|
+
);
|
|
60
|
+
expect(frameRadiusClasses()).toEqual(["_btlr-t-radius-0"]);
|
|
61
|
+
expect(screen.getByRole("button").getAttribute("data-radius-class")).toBeNull();
|
|
62
|
+
cleanup();
|
|
63
|
+
|
|
64
|
+
renderWithProviders(
|
|
65
|
+
<Preset overrides={{ borderRadius: "full" }}>
|
|
66
|
+
<Button>Save</Button>
|
|
67
|
+
</Preset>,
|
|
68
|
+
);
|
|
69
|
+
expect(frameRadiusClasses()).toEqual(["_btlr-t-radius-12"]);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
it("chromeless squares at none (chrome removed, knobs still tracked)", () => {
|
|
73
|
+
renderWithProviders(
|
|
74
|
+
<Preset overrides={{ borderRadius: "none" }}>
|
|
75
|
+
<Button chromeless>Save</Button>
|
|
76
|
+
</Preset>,
|
|
77
|
+
);
|
|
78
|
+
expect(frameRadiusClasses()).toEqual(["_btlr-t-radius-0"]);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it("circular stays the consumer shape eject: round even at none, no inline override", () => {
|
|
82
|
+
renderWithProviders(
|
|
83
|
+
<Preset overrides={{ borderRadius: "none" }}>
|
|
84
|
+
<Button circular icon={<span>x</span>} aria-label="favorite" />
|
|
85
|
+
</Preset>,
|
|
86
|
+
);
|
|
87
|
+
const frame = screen.getByRole("button");
|
|
88
|
+
expect(frameRadiusClasses()).toEqual(["_btlr-100000px"]);
|
|
89
|
+
expect((frame as HTMLElement).style.borderRadius).toBe("");
|
|
90
|
+
expect(frame.getAttribute("data-radius-class")).toBe("R-IDENTITY");
|
|
91
|
+
expect(frame.getAttribute("data-radius-part")).toBe("circular Button");
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
it("consumer borderRadius prop wins last over the knob fragment", () => {
|
|
95
|
+
renderWithProviders(
|
|
96
|
+
<Preset overrides={{ borderRadius: "none" }}>
|
|
97
|
+
<Button borderRadius="$6">Save</Button>
|
|
98
|
+
</Preset>,
|
|
99
|
+
);
|
|
100
|
+
expect(frameRadiusClasses()).toEqual(["_btlr-t-radius-6"]);
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
describe("components Button — elevation and size knobs reach the frame", () => {
|
|
105
|
+
it("elevation none renders flat; large casts a shadow", () => {
|
|
106
|
+
renderWithProviders(
|
|
107
|
+
<Preset overrides={{ elevation: "none" }}>
|
|
108
|
+
<Button>Save</Button>
|
|
109
|
+
</Preset>,
|
|
110
|
+
);
|
|
111
|
+
expect(screen.getByRole("button").className).not.toMatch(/_bxsh-/);
|
|
112
|
+
cleanup();
|
|
113
|
+
|
|
114
|
+
renderWithProviders(
|
|
115
|
+
<Preset overrides={{ elevation: "large" }}>
|
|
116
|
+
<Button>Save</Button>
|
|
117
|
+
</Preset>,
|
|
118
|
+
);
|
|
119
|
+
expect(screen.getByRole("button").className).toMatch(/_bxsh-/);
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
it("size knob drives the frame height token", () => {
|
|
123
|
+
renderWithProviders(
|
|
124
|
+
<Preset overrides={{ size: "small" }}>
|
|
125
|
+
<Button>Save</Button>
|
|
126
|
+
</Preset>,
|
|
127
|
+
);
|
|
128
|
+
expect(screen.getByRole("button").className).toContain("_h-t-size-3");
|
|
129
|
+
cleanup();
|
|
130
|
+
|
|
131
|
+
renderWithProviders(
|
|
132
|
+
<Preset overrides={{ size: "large" }}>
|
|
133
|
+
<Button>Save</Button>
|
|
134
|
+
</Preset>,
|
|
135
|
+
);
|
|
136
|
+
expect(screen.getByRole("button").className).toContain("_h-t-size-5");
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
describe("components Button — raw-tamagui prop-compat", () => {
|
|
141
|
+
it('variant="outlined" renders the same frame as the house outlined prop', () => {
|
|
142
|
+
renderWithProviders(<Button variant="outlined">Compat</Button>);
|
|
143
|
+
const viaVariant = screen.getByRole("button").className;
|
|
144
|
+
cleanup();
|
|
145
|
+
|
|
146
|
+
renderWithProviders(<Button outlined>Compat</Button>);
|
|
147
|
+
const viaHouse = screen.getByRole("button").className;
|
|
148
|
+
expect(viaVariant).toBe(viaHouse);
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
it("an explicit outlined={false} beats variant (explicit house prop wins)", () => {
|
|
152
|
+
renderWithProviders(
|
|
153
|
+
<Button variant="outlined" outlined={false}>
|
|
154
|
+
Compat
|
|
155
|
+
</Button>,
|
|
156
|
+
);
|
|
157
|
+
const withEject = screen.getByRole("button").className;
|
|
158
|
+
cleanup();
|
|
159
|
+
|
|
160
|
+
renderWithProviders(<Button>Compat</Button>);
|
|
161
|
+
expect(withEject).toBe(screen.getByRole("button").className);
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
it("presses fire through the shim", () => {
|
|
165
|
+
const onPress = vi.fn();
|
|
166
|
+
renderWithProviders(<Button onPress={onPress}>Go</Button>);
|
|
167
|
+
fireEvent.click(screen.getByRole("button"));
|
|
168
|
+
expect(onPress).toHaveBeenCalledTimes(1);
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
it("testID and aria pass through to the frame", () => {
|
|
172
|
+
renderWithProviders(
|
|
173
|
+
<Button testID="shadow-btn" aria-label="shadow">
|
|
174
|
+
Go
|
|
175
|
+
</Button>,
|
|
176
|
+
);
|
|
177
|
+
const frame = screen.getByRole("button");
|
|
178
|
+
expect(frame.getAttribute("data-testid")).toBe("shadow-btn");
|
|
179
|
+
expect(frame.getAttribute("aria-label")).toBe("shadow");
|
|
180
|
+
});
|
|
181
|
+
});
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
2
|
+
import { PlusIcon, TrashIcon } from "@phosphor-icons/react";
|
|
3
|
+
import { XStack } from "tamagui";
|
|
4
|
+
import { Button } from "./Button";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof Button> = {
|
|
7
|
+
title: "Components/Button",
|
|
8
|
+
component: Button,
|
|
9
|
+
parameters: {
|
|
10
|
+
status: { type: "beta" },
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component:
|
|
14
|
+
"House Button served by @multiplatform.one/components — a thin prop-compat shim over the knob-correct forms Button (radius/elevation/size knobs, LC-54 press floor, LC-53 icon slot). Raw tamagui stays reachable as TamaguiButton. `circular` is a consumer shape eject and stays round at borderRadius none (R-IDENTITY).",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
argTypes: {
|
|
19
|
+
children: { control: "text", description: "Button label" },
|
|
20
|
+
outlined: { control: "boolean", description: "House outlined channel" },
|
|
21
|
+
variant: {
|
|
22
|
+
control: "select",
|
|
23
|
+
options: [undefined, "outlined"],
|
|
24
|
+
description: "Raw-tamagui prop-compat; outlined maps onto the house outlined prop",
|
|
25
|
+
},
|
|
26
|
+
circular: {
|
|
27
|
+
control: "boolean",
|
|
28
|
+
description: "Consumer shape eject (stays round at radius none)",
|
|
29
|
+
},
|
|
30
|
+
chromeless: { control: "boolean" },
|
|
31
|
+
accent: { control: "boolean" },
|
|
32
|
+
error: { control: "boolean" },
|
|
33
|
+
warning: { control: "boolean" },
|
|
34
|
+
success: { control: "boolean" },
|
|
35
|
+
disabled: { control: "boolean" },
|
|
36
|
+
loading: { control: "boolean" },
|
|
37
|
+
skeleton: { control: "boolean" },
|
|
38
|
+
},
|
|
39
|
+
args: { children: "Button" },
|
|
40
|
+
};
|
|
41
|
+
export default meta;
|
|
42
|
+
|
|
43
|
+
type Story = StoryObj<typeof Button>;
|
|
44
|
+
|
|
45
|
+
export const Default: Story = {
|
|
46
|
+
name: "Main",
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const Outlined: Story = {
|
|
50
|
+
args: { outlined: true },
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** Pre-shadow consumers pass tamagui's `variant="outlined"`; the shim maps it to `outlined`. */
|
|
54
|
+
export const VariantCompat: Story = {
|
|
55
|
+
args: { variant: "outlined", children: "variant=\u201coutlined\u201d" },
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const Intents: Story = {
|
|
59
|
+
render: () => (
|
|
60
|
+
<XStack gap="$3" flexWrap="wrap">
|
|
61
|
+
<Button accent>Accent</Button>
|
|
62
|
+
<Button error>Error</Button>
|
|
63
|
+
<Button warning>Warning</Button>
|
|
64
|
+
<Button success>Success</Button>
|
|
65
|
+
</XStack>
|
|
66
|
+
),
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const IconSlots: Story = {
|
|
70
|
+
render: () => (
|
|
71
|
+
<XStack gap="$3" alignItems="center" flexWrap="wrap">
|
|
72
|
+
<Button icon={<PlusIcon size={16} />}>Leading</Button>
|
|
73
|
+
<Button iconAfter={<TrashIcon size={16} />} error>
|
|
74
|
+
Trailing
|
|
75
|
+
</Button>
|
|
76
|
+
<Button circular icon={<PlusIcon size={16} />} aria-label="Add" />
|
|
77
|
+
<Button chromeless icon={<PlusIcon size={16} />} aria-label="Add row" />
|
|
78
|
+
</XStack>
|
|
79
|
+
),
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export const States: Story = {
|
|
83
|
+
render: () => (
|
|
84
|
+
<XStack gap="$3" alignItems="center" flexWrap="wrap">
|
|
85
|
+
<Button loading>Loading</Button>
|
|
86
|
+
<Button disabled disabledReason="Select a row first">
|
|
87
|
+
Delete
|
|
88
|
+
</Button>
|
|
89
|
+
<Button skeleton />
|
|
90
|
+
</XStack>
|
|
91
|
+
),
|
|
92
|
+
};
|
package/src/Button.tsx
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* House Button for the components catalog — closes the LC-18 KNOB-TOTALITY
|
|
3
|
+
* hole where `./tamagui.ts` re-exported `Button` STRAIGHT from tamagui, so
|
|
4
|
+
* every `import { Button } from "@multiplatform.one/components"` consumer
|
|
5
|
+
* (pokemon header actions, backoffice DeskShell chrome, wallet/auth CTAs)
|
|
6
|
+
* rendered the raw primitive: no knob fragments (radius stuck at the size
|
|
7
|
+
* variant's 9px/7px under `borderRadius: "none"`), no LC-54 press-floor
|
|
8
|
+
* channel, no LC-53 icon-slot discipline
|
|
9
|
+
* (`p-results/fix-button-knob-totality.md`).
|
|
10
|
+
*
|
|
11
|
+
* ARCHITECTURE (decided from the dependency graph, not copied styling):
|
|
12
|
+
* `@multiplatform.one/components` already depends on `@multiplatform.one/forms`
|
|
13
|
+
* (package.json dependency, consumed by Pagination, toolbar, ConfirmDialog,
|
|
14
|
+
* and the `Fieldset` shadow in index.ts) while forms does NOT depend on
|
|
15
|
+
* components — so re-exporting the knob-correct forms Button is legal and
|
|
16
|
+
* cycle-free. A second local knob-consuming implementation would duplicate
|
|
17
|
+
* the forms Button against LC-16 SINGLE-IMPLEMENTATION; a bare re-export
|
|
18
|
+
* would silently drop the raw-tamagui `variant="outlined"` API that ~10
|
|
19
|
+
* consumer sites pass. This module is therefore the thinnest legal shape: a
|
|
20
|
+
* prop-compat shim that maps tamagui's `variant="outlined"` onto the house
|
|
21
|
+
* `outlined` prop and forwards everything else (STD-EJECT-LAST is the forms
|
|
22
|
+
* Button's own contract; knob fragments land there).
|
|
23
|
+
*
|
|
24
|
+
* Raw tamagui Button stays reachable as `TamaguiButton` (./tamagui.ts escape
|
|
25
|
+
* hatch, same precedent as TamaguiCheckbox/TamaguiToast).
|
|
26
|
+
*/
|
|
27
|
+
import {
|
|
28
|
+
Button as FormsButton,
|
|
29
|
+
type ButtonProps as FormsButtonProps,
|
|
30
|
+
} from "@multiplatform.one/forms";
|
|
31
|
+
|
|
32
|
+
/** House Button API — the forms Button contract (raw `variant` included via TamaguiButtonProps). */
|
|
33
|
+
export type ButtonProps = FormsButtonProps;
|
|
34
|
+
|
|
35
|
+
export function Button({ variant, outlined, ...props }: ButtonProps) {
|
|
36
|
+
// Raw-tamagui prop-compat: `variant="outlined"` is tamagui Button API that
|
|
37
|
+
// pre-shadow consumers pass; the house channel is the `outlined` boolean.
|
|
38
|
+
// An explicit `outlined` wins; with neither, the knob decides downstream.
|
|
39
|
+
return <FormsButton outlined={outlined ?? (variant === "outlined" || undefined)} {...props} />;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Button.Text = FormsButton.Text;
|
|
43
|
+
Button.Icon = FormsButton.Icon;
|