@multiplatform.one/components 6.6.0 → 7.0.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 +19 -19
- 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
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all) __defProp(target, name, {
|
|
@@ -19,15 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
17
|
}
|
|
20
18
|
return to;
|
|
21
19
|
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
value: mod,
|
|
29
|
-
enumerable: true
|
|
30
|
-
}) : target, mod));
|
|
31
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
21
|
value: true
|
|
33
22
|
}), mod);
|
|
@@ -39,12 +28,14 @@ module.exports = __toCommonJS(attachments_exports);
|
|
|
39
28
|
var import_react = require("@phosphor-icons/react");
|
|
40
29
|
var import_platform = require("@multiplatform.one/platform");
|
|
41
30
|
var import_theme = require("@multiplatform.one/theme");
|
|
42
|
-
var import_react2 =
|
|
43
|
-
var
|
|
31
|
+
var import_react2 = require("react");
|
|
32
|
+
var import_i18n = require("../shared/i18n.cjs");
|
|
44
33
|
var import_tamagui = require("tamagui");
|
|
34
|
+
var import_Button = require("../Button.cjs");
|
|
45
35
|
var import_surfaces = require("../surfaces.cjs");
|
|
46
36
|
var import_componentColors = require("../componentColors.cjs");
|
|
47
37
|
var import_Skeleton = require("../Skeleton/index.cjs");
|
|
38
|
+
var import_useReturnFocusOnClose = require("../shared/useReturnFocusOnClose.cjs");
|
|
48
39
|
var import_AsyncBoundary = require("./AsyncBoundary.cjs");
|
|
49
40
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
41
|
function formatFileSize(bytes) {
|
|
@@ -63,14 +54,63 @@ function isImageFile(attachment) {
|
|
|
63
54
|
const ext = url.substring(url.lastIndexOf(".")).toLowerCase();
|
|
64
55
|
return imageExtensions.includes(ext);
|
|
65
56
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
57
|
+
function getFileExtension(attachment) {
|
|
58
|
+
const name = attachment.fileName || "";
|
|
59
|
+
const dot = name.lastIndexOf(".");
|
|
60
|
+
if (dot > 0 && dot < name.length - 1) return name.slice(dot + 1).toUpperCase();
|
|
61
|
+
const mime = attachment.fileType?.split("/")[1];
|
|
62
|
+
return mime ? mime.toUpperCase() : "";
|
|
63
|
+
}
|
|
64
|
+
function getFileKind(attachment) {
|
|
65
|
+
if (isImageFile(attachment)) return "image";
|
|
66
|
+
const ext = getFileExtension(attachment).toLowerCase();
|
|
67
|
+
const mime = (attachment.fileType || "").toLowerCase();
|
|
68
|
+
if (ext === "pdf" || mime.includes("pdf")) return "pdf";
|
|
69
|
+
if (["doc", "docx", "odt", "rtf", "txt", "md"].includes(ext) || mime.includes("word") || mime.includes("text")) {
|
|
70
|
+
return "doc";
|
|
71
71
|
}
|
|
72
|
+
if (["xls", "xlsx", "csv", "ods"].includes(ext) || mime.includes("spreadsheet") || mime.includes("excel")) {
|
|
73
|
+
return "sheet";
|
|
74
|
+
}
|
|
75
|
+
if (["zip", "rar", "7z", "tar", "gz"].includes(ext) || mime.includes("zip")) return "archive";
|
|
76
|
+
return "file";
|
|
77
|
+
}
|
|
78
|
+
const FILE_KIND_TONE = {
|
|
79
|
+
image: {
|
|
80
|
+
bg: "$color3",
|
|
81
|
+
fg: "$color11"
|
|
82
|
+
},
|
|
83
|
+
pdf: {
|
|
84
|
+
bg: "$red3",
|
|
85
|
+
fg: "$red11"
|
|
86
|
+
},
|
|
87
|
+
doc: {
|
|
88
|
+
bg: "$blue3",
|
|
89
|
+
fg: "$blue11"
|
|
90
|
+
},
|
|
91
|
+
sheet: {
|
|
92
|
+
bg: "$green3",
|
|
93
|
+
fg: "$green11"
|
|
94
|
+
},
|
|
95
|
+
archive: {
|
|
96
|
+
bg: "$orange3",
|
|
97
|
+
fg: "$orange11"
|
|
98
|
+
},
|
|
99
|
+
file: {
|
|
100
|
+
bg: "$color3",
|
|
101
|
+
fg: "$color11"
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
function getFileIcon(attachment, size) {
|
|
105
|
+
const kind = getFileKind(attachment);
|
|
106
|
+
if (kind === "image") return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.ImageIcon, {
|
|
107
|
+
size
|
|
108
|
+
});
|
|
109
|
+
if (kind === "pdf" || kind === "doc") return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.FileTextIcon, {
|
|
110
|
+
size
|
|
111
|
+
});
|
|
72
112
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.FileIcon, {
|
|
73
|
-
size
|
|
113
|
+
size
|
|
74
114
|
});
|
|
75
115
|
}
|
|
76
116
|
function AttachmentThumbnail({
|
|
@@ -93,38 +133,214 @@ function AttachmentThumbnail({
|
|
|
93
133
|
}
|
|
94
134
|
function AttachmentsSkeleton({
|
|
95
135
|
thumbSize,
|
|
96
|
-
loadingLabel
|
|
136
|
+
loadingLabel,
|
|
137
|
+
rowPad
|
|
97
138
|
}) {
|
|
98
139
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
99
|
-
gap: "$1",
|
|
100
140
|
width: "100%",
|
|
101
141
|
"data-async-skeleton": "attachments",
|
|
102
142
|
"aria-busy": true,
|
|
103
143
|
"aria-label": loadingLabel,
|
|
104
144
|
children: Array.from({
|
|
105
145
|
length: 3
|
|
106
|
-
}).map((_, i) => /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
flex: 1,
|
|
116
|
-
gap: "$1",
|
|
146
|
+
}).map((_, i) => /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
147
|
+
children: [i > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Separator, {
|
|
148
|
+
...import_theme.hairline.line
|
|
149
|
+
}) : null, /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
150
|
+
gap: "$3",
|
|
151
|
+
alignItems: "center",
|
|
152
|
+
paddingVertical: "$2",
|
|
153
|
+
paddingHorizontal: rowPad,
|
|
154
|
+
minHeight: 44,
|
|
117
155
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Skeleton.Skeleton, {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
156
|
+
variant: "rounded",
|
|
157
|
+
width: thumbSize,
|
|
158
|
+
height: thumbSize
|
|
159
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
160
|
+
flex: 1,
|
|
161
|
+
gap: "$1",
|
|
162
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Skeleton.Skeleton, {
|
|
163
|
+
width: "55%",
|
|
164
|
+
height: 14
|
|
165
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Skeleton.Skeleton, {
|
|
166
|
+
width: "25%",
|
|
167
|
+
height: 12
|
|
168
|
+
})]
|
|
123
169
|
})]
|
|
124
170
|
})]
|
|
125
171
|
}, i))
|
|
126
172
|
});
|
|
127
173
|
}
|
|
174
|
+
function AttachmentRow({
|
|
175
|
+
attachment,
|
|
176
|
+
index,
|
|
177
|
+
count,
|
|
178
|
+
compact,
|
|
179
|
+
disabled,
|
|
180
|
+
thumbSize,
|
|
181
|
+
rowPad,
|
|
182
|
+
enablePreview,
|
|
183
|
+
enableDownload,
|
|
184
|
+
enableRemove,
|
|
185
|
+
previewLabel,
|
|
186
|
+
downloadLabel,
|
|
187
|
+
removeLabel,
|
|
188
|
+
onAttachmentClick,
|
|
189
|
+
onPreview,
|
|
190
|
+
onDownload,
|
|
191
|
+
onRemove,
|
|
192
|
+
renderAttachment
|
|
193
|
+
}) {
|
|
194
|
+
const {
|
|
195
|
+
knobProps,
|
|
196
|
+
control
|
|
197
|
+
} = (0, import_theme.useResolvedKnobs)({
|
|
198
|
+
compact
|
|
199
|
+
});
|
|
200
|
+
const [kbFocus, setKbFocus] = (0, import_react2.useState)(false);
|
|
201
|
+
const isImage = isImageFile(attachment);
|
|
202
|
+
const kind = getFileKind(attachment);
|
|
203
|
+
const tone = FILE_KIND_TONE[kind];
|
|
204
|
+
const ext = getFileExtension(attachment);
|
|
205
|
+
const iconSize = compact ? 14 : 16;
|
|
206
|
+
const position = (0, import_theme.getGroupPosition)(index, count);
|
|
207
|
+
const corners = (0, import_theme.stackRadiusProps)(position, knobProps.borderRadius.borderRadius);
|
|
208
|
+
const actions = {
|
|
209
|
+
onPreview: () => onPreview(attachment),
|
|
210
|
+
onDownload: () => onDownload(attachment),
|
|
211
|
+
onRemove: () => onRemove?.(attachment)
|
|
212
|
+
};
|
|
213
|
+
const mediaSlot = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
214
|
+
width: thumbSize,
|
|
215
|
+
height: thumbSize,
|
|
216
|
+
flexShrink: 0,
|
|
217
|
+
overflow: "hidden",
|
|
218
|
+
backgroundColor: tone.bg,
|
|
219
|
+
borderRadius: knobProps.borderRadius.borderRadius,
|
|
220
|
+
alignItems: "center",
|
|
221
|
+
justifyContent: "center",
|
|
222
|
+
...{
|
|
223
|
+
color: tone.fg
|
|
224
|
+
},
|
|
225
|
+
children: isImage ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(AttachmentThumbnail, {
|
|
226
|
+
attachment,
|
|
227
|
+
size: thumbSize,
|
|
228
|
+
fallback: getFileIcon(attachment, iconSize)
|
|
229
|
+
}) : getFileIcon(attachment, iconSize)
|
|
230
|
+
});
|
|
231
|
+
const actionButtons = /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
232
|
+
gap: "$1",
|
|
233
|
+
alignItems: "center",
|
|
234
|
+
children: [enablePreview && isImage && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
235
|
+
size: "$2",
|
|
236
|
+
chromeless: true,
|
|
237
|
+
nested: true,
|
|
238
|
+
icon: import_react.EyeIcon,
|
|
239
|
+
"aria-label": previewLabel,
|
|
240
|
+
onPress: e => {
|
|
241
|
+
e.stopPropagation();
|
|
242
|
+
actions.onPreview();
|
|
243
|
+
}
|
|
244
|
+
}), enableDownload && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
245
|
+
size: "$2",
|
|
246
|
+
chromeless: true,
|
|
247
|
+
nested: true,
|
|
248
|
+
icon: import_react.DownloadSimpleIcon,
|
|
249
|
+
"aria-label": downloadLabel,
|
|
250
|
+
onPress: e => {
|
|
251
|
+
e.stopPropagation();
|
|
252
|
+
actions.onDownload();
|
|
253
|
+
}
|
|
254
|
+
}), enableRemove && !disabled && onRemove && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
255
|
+
size: "$2",
|
|
256
|
+
chromeless: true,
|
|
257
|
+
nested: true,
|
|
258
|
+
icon: import_react.TrashIcon,
|
|
259
|
+
"aria-label": removeLabel,
|
|
260
|
+
onPress: e => {
|
|
261
|
+
e.stopPropagation();
|
|
262
|
+
actions.onRemove();
|
|
263
|
+
}
|
|
264
|
+
})]
|
|
265
|
+
});
|
|
266
|
+
const defaultContent = /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
267
|
+
children: [index > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Separator, {
|
|
268
|
+
...import_theme.hairline.line
|
|
269
|
+
}) : null, /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
270
|
+
role: "listitem",
|
|
271
|
+
"data-stack-position": position,
|
|
272
|
+
alignItems: "center",
|
|
273
|
+
paddingVertical: "$2",
|
|
274
|
+
paddingHorizontal: rowPad,
|
|
275
|
+
minHeight: 44,
|
|
276
|
+
overflow: "hidden",
|
|
277
|
+
cursor: "pointer",
|
|
278
|
+
...corners,
|
|
279
|
+
transition: knobProps.transition,
|
|
280
|
+
hoverStyle: {
|
|
281
|
+
backgroundColor: import_componentColors.componentColors.interactive.background,
|
|
282
|
+
...control.hoverKnobProps,
|
|
283
|
+
...corners
|
|
284
|
+
},
|
|
285
|
+
pressStyle: {
|
|
286
|
+
backgroundColor: import_componentColors.componentColors.interactive.hover,
|
|
287
|
+
...control.pressKnobProps,
|
|
288
|
+
...corners
|
|
289
|
+
},
|
|
290
|
+
...(kbFocus ? (0, import_theme.ensureFocusVisibleRing)({
|
|
291
|
+
outlineOffset: -2
|
|
292
|
+
}) : {
|
|
293
|
+
outlineWidth: 0
|
|
294
|
+
}),
|
|
295
|
+
onPress: () => {
|
|
296
|
+
onAttachmentClick?.(attachment);
|
|
297
|
+
if (enablePreview) onPreview(attachment);
|
|
298
|
+
},
|
|
299
|
+
onFocus: () => {
|
|
300
|
+
if ((0, import_theme.wasKeyboardFocus)()) setKbFocus(true);
|
|
301
|
+
},
|
|
302
|
+
onBlur: () => setKbFocus(false),
|
|
303
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
304
|
+
flex: 1,
|
|
305
|
+
alignItems: "center",
|
|
306
|
+
minWidth: 0,
|
|
307
|
+
gap: "$3",
|
|
308
|
+
children: [mediaSlot, /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
309
|
+
flex: 1,
|
|
310
|
+
minWidth: 0,
|
|
311
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
312
|
+
...knobProps.body,
|
|
313
|
+
fontSize: compact ? "$3" : "$4",
|
|
314
|
+
numberOfLines: 1,
|
|
315
|
+
children: attachment.fileName
|
|
316
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
317
|
+
gap: "$2",
|
|
318
|
+
alignItems: "center",
|
|
319
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
320
|
+
fontSize: "$2",
|
|
321
|
+
color: import_componentColors.componentColors.text.muted,
|
|
322
|
+
children: attachment.formattedSize || formatFileSize(attachment.fileSize)
|
|
323
|
+
}), ext ? /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
324
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
325
|
+
fontSize: "$2",
|
|
326
|
+
color: import_componentColors.componentColors.text.subtle,
|
|
327
|
+
children: "\xB7"
|
|
328
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
329
|
+
fontSize: "$2",
|
|
330
|
+
color: import_componentColors.componentColors.text.subtle,
|
|
331
|
+
children: ext
|
|
332
|
+
})]
|
|
333
|
+
}) : null]
|
|
334
|
+
})]
|
|
335
|
+
}), actionButtons]
|
|
336
|
+
})
|
|
337
|
+
})]
|
|
338
|
+
});
|
|
339
|
+
if (renderAttachment) {
|
|
340
|
+
return renderAttachment(attachment, defaultContent, actions);
|
|
341
|
+
}
|
|
342
|
+
return defaultContent;
|
|
343
|
+
}
|
|
128
344
|
function Attachments({
|
|
129
345
|
items,
|
|
130
346
|
label,
|
|
@@ -151,13 +367,18 @@ function Attachments({
|
|
|
151
367
|
}) {
|
|
152
368
|
const {
|
|
153
369
|
t
|
|
154
|
-
} = (0,
|
|
370
|
+
} = (0, import_i18n.useTranslation)();
|
|
155
371
|
const {
|
|
156
372
|
knobProps
|
|
157
|
-
} = (0, import_theme.useResolvedKnobs)(
|
|
373
|
+
} = (0, import_theme.useResolvedKnobs)({
|
|
374
|
+
compact
|
|
375
|
+
});
|
|
158
376
|
const fileInputRef = (0, import_react2.useRef)(null);
|
|
159
377
|
const [previewFile, setPreviewFile] = (0, import_react2.useState)(null);
|
|
160
378
|
const [uploadError, setUploadError] = (0, import_react2.useState)(null);
|
|
379
|
+
const [dragOver, setDragOver] = (0, import_react2.useState)(false);
|
|
380
|
+
(0, import_useReturnFocusOnClose.useReturnFocusOnClose)(!!previewFile);
|
|
381
|
+
if (import_tamagui.isWeb) (0, import_theme.ensureKeyboardModalityTracking)();
|
|
161
382
|
const {
|
|
162
383
|
upload: uploadLabel = "Upload",
|
|
163
384
|
noAttachments: noAttachmentsLabel = "No attachments",
|
|
@@ -166,7 +387,8 @@ function Attachments({
|
|
|
166
387
|
remove: removeLabel = "Remove",
|
|
167
388
|
close: closeLabel = "Close",
|
|
168
389
|
fileTooLarge: fileTooLargeLabel = "File too large",
|
|
169
|
-
loadFailed: loadFailedLabel = t("Couldn't load attachments")
|
|
390
|
+
loadFailed: loadFailedLabel = t("Couldn't load attachments"),
|
|
391
|
+
previewUnavailable: previewUnavailableLabel = t("Preview not available for this file type.")
|
|
170
392
|
} = labels;
|
|
171
393
|
const hasError = (0, import_AsyncBoundary.resolveAsyncStatus)({
|
|
172
394
|
error
|
|
@@ -177,19 +399,22 @@ function Attachments({
|
|
|
177
399
|
if (maxAttachments > 0 && items.length >= maxAttachments) return false;
|
|
178
400
|
return true;
|
|
179
401
|
}, [disabled, enableAdd, onAdd, maxAttachments, items.length, hasError]);
|
|
180
|
-
const
|
|
181
|
-
const file = event.target.files?.[0];
|
|
182
|
-
if (!file) return;
|
|
402
|
+
const acceptFile = (0, import_react2.useCallback)(file => {
|
|
183
403
|
if (maxFileSize && file.size > maxFileSize) {
|
|
184
404
|
setUploadError(`${fileTooLargeLabel} (${formatFileSize(maxFileSize)})`);
|
|
185
405
|
return;
|
|
186
406
|
}
|
|
187
407
|
setUploadError(null);
|
|
188
408
|
onAdd?.(file);
|
|
409
|
+
}, [maxFileSize, onAdd, fileTooLargeLabel]);
|
|
410
|
+
const handleFileSelect = (0, import_react2.useCallback)(event => {
|
|
411
|
+
const file = event.target.files?.[0];
|
|
412
|
+
if (!file) return;
|
|
413
|
+
acceptFile(file);
|
|
189
414
|
if (fileInputRef.current) {
|
|
190
415
|
fileInputRef.current.value = "";
|
|
191
416
|
}
|
|
192
|
-
}, [
|
|
417
|
+
}, [acceptFile]);
|
|
193
418
|
const handlePreview = (0, import_react2.useCallback)(attachment => {
|
|
194
419
|
setPreviewFile(attachment);
|
|
195
420
|
}, []);
|
|
@@ -203,14 +428,38 @@ function Attachments({
|
|
|
203
428
|
const handleUploadClick = (0, import_react2.useCallback)(() => {
|
|
204
429
|
fileInputRef.current?.click();
|
|
205
430
|
}, []);
|
|
431
|
+
const dropHandlers = canAdd && import_tamagui.isWeb ? {
|
|
432
|
+
onDragOver: event => {
|
|
433
|
+
event.preventDefault();
|
|
434
|
+
setDragOver(true);
|
|
435
|
+
},
|
|
436
|
+
onDragLeave: () => setDragOver(false),
|
|
437
|
+
onDrop: event => {
|
|
438
|
+
event.preventDefault();
|
|
439
|
+
setDragOver(false);
|
|
440
|
+
const file = event.dataTransfer?.files?.[0];
|
|
441
|
+
if (file) acceptFile(file);
|
|
442
|
+
}
|
|
443
|
+
} : void 0;
|
|
206
444
|
const emptyState = renderEmpty ? renderEmpty() : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
207
445
|
...(compact ? {
|
|
208
446
|
padding: "$2"
|
|
209
447
|
} : knobProps.panelPadding),
|
|
210
448
|
alignItems: "center",
|
|
211
|
-
|
|
449
|
+
...knobProps.borderRadius,
|
|
450
|
+
borderWidth: canAdd ? 1 : 0,
|
|
451
|
+
borderStyle: canAdd ? "dashed" : void 0,
|
|
452
|
+
borderColor: dragOver ? import_componentColors.componentColors.interactive.border : import_componentColors.componentColors.surface.border,
|
|
453
|
+
backgroundColor: dragOver ? import_componentColors.componentColors.interactive.background : "transparent",
|
|
454
|
+
cursor: canAdd ? "pointer" : "default",
|
|
455
|
+
opacity: canAdd ? 1 : 0.5,
|
|
456
|
+
hoverStyle: canAdd ? {
|
|
457
|
+
backgroundColor: import_componentColors.componentColors.interactive.background
|
|
458
|
+
} : void 0,
|
|
459
|
+
onPress: canAdd ? handleUploadClick : void 0,
|
|
460
|
+
...dropHandlers,
|
|
212
461
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.PaperclipIcon, {
|
|
213
|
-
size: compact ? 20 :
|
|
462
|
+
size: compact ? 20 : 28
|
|
214
463
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
215
464
|
color: import_componentColors.componentColors.text.muted,
|
|
216
465
|
fontSize: compact ? "$2" : "$3",
|
|
@@ -220,103 +469,13 @@ function Attachments({
|
|
|
220
469
|
});
|
|
221
470
|
const sz = knobProps.sizeToken;
|
|
222
471
|
const thumbSize = compact ? sz === "$3" ? 24 : sz === "$5" ? 40 : 32 : sz === "$3" ? 32 : sz === "$5" ? 48 : 40;
|
|
223
|
-
const
|
|
224
|
-
const isImage = isImageFile(attachment);
|
|
225
|
-
const actions = {
|
|
226
|
-
onPreview: () => handlePreview(attachment),
|
|
227
|
-
onDownload: () => handleDownload(attachment),
|
|
228
|
-
onRemove: () => onRemove?.(attachment)
|
|
229
|
-
};
|
|
230
|
-
const mediaSlot = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
231
|
-
width: thumbSize,
|
|
232
|
-
height: thumbSize,
|
|
233
|
-
flexShrink: 0,
|
|
234
|
-
overflow: "hidden",
|
|
235
|
-
...{
|
|
236
|
-
backgroundColor: import_componentColors.componentColors.surface.background
|
|
237
|
-
},
|
|
238
|
-
...knobProps.borderRadius,
|
|
239
|
-
alignItems: "center",
|
|
240
|
-
justifyContent: "center",
|
|
241
|
-
children: isImage ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(AttachmentThumbnail, {
|
|
242
|
-
attachment,
|
|
243
|
-
size: thumbSize,
|
|
244
|
-
fallback: getFileIcon(attachment)
|
|
245
|
-
}) : getFileIcon(attachment)
|
|
246
|
-
});
|
|
247
|
-
const actionButtons = /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
248
|
-
gap: "$1",
|
|
249
|
-
children: [enablePreview && isImage && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
250
|
-
size: "$2",
|
|
251
|
-
chromeless: true,
|
|
252
|
-
icon: import_react.EyeIcon,
|
|
253
|
-
"aria-label": previewLabel,
|
|
254
|
-
onPress: e => {
|
|
255
|
-
e.stopPropagation();
|
|
256
|
-
actions.onPreview();
|
|
257
|
-
}
|
|
258
|
-
}), enableDownload && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
259
|
-
size: "$2",
|
|
260
|
-
chromeless: true,
|
|
261
|
-
icon: import_react.DownloadSimpleIcon,
|
|
262
|
-
"aria-label": downloadLabel,
|
|
263
|
-
onPress: e => {
|
|
264
|
-
e.stopPropagation();
|
|
265
|
-
actions.onDownload();
|
|
266
|
-
}
|
|
267
|
-
}), enableRemove && !disabled && onRemove && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
268
|
-
size: "$2",
|
|
269
|
-
chromeless: true,
|
|
270
|
-
icon: import_react.TrashIcon,
|
|
271
|
-
"aria-label": removeLabel,
|
|
272
|
-
onPress: e => {
|
|
273
|
-
e.stopPropagation();
|
|
274
|
-
actions.onRemove();
|
|
275
|
-
}
|
|
276
|
-
})]
|
|
277
|
-
});
|
|
278
|
-
const defaultContent = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ListItem, {
|
|
279
|
-
size: compact ? "$3" : knobProps.sizeToken,
|
|
280
|
-
paddingVertical: "$2",
|
|
281
|
-
hoverStyle: {
|
|
282
|
-
backgroundColor: import_componentColors.componentColors.surface.background
|
|
283
|
-
},
|
|
284
|
-
pressStyle: {
|
|
285
|
-
backgroundColor: import_componentColors.componentColors.interactive.background
|
|
286
|
-
},
|
|
287
|
-
onPress: () => onAttachmentClick?.(attachment),
|
|
288
|
-
cursor: "pointer",
|
|
289
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
290
|
-
flex: 1,
|
|
291
|
-
alignItems: "center",
|
|
292
|
-
...knobProps.gap,
|
|
293
|
-
children: [mediaSlot, /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
294
|
-
flex: 1,
|
|
295
|
-
minWidth: 0,
|
|
296
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
297
|
-
...knobProps.body,
|
|
298
|
-
fontSize: compact ? "$3" : knobProps.sizeToken,
|
|
299
|
-
numberOfLines: 1,
|
|
300
|
-
children: attachment.fileName
|
|
301
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
302
|
-
fontSize: "$2",
|
|
303
|
-
color: import_componentColors.componentColors.text.muted,
|
|
304
|
-
children: attachment.formattedSize || formatFileSize(attachment.fileSize)
|
|
305
|
-
})]
|
|
306
|
-
}), actionButtons]
|
|
307
|
-
})
|
|
308
|
-
});
|
|
309
|
-
if (renderAttachment) {
|
|
310
|
-
return renderAttachment(attachment, defaultContent, actions);
|
|
311
|
-
}
|
|
312
|
-
return defaultContent;
|
|
313
|
-
};
|
|
472
|
+
const rowPad = knobProps.panelPadding.padding;
|
|
314
473
|
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
315
474
|
...knobProps.gap,
|
|
316
475
|
...stackProps,
|
|
317
476
|
children: [(label || canAdd) && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
318
477
|
alignItems: "center",
|
|
319
|
-
justifyContent: "space-between",
|
|
478
|
+
justifyContent: label ? "space-between" : "flex-end",
|
|
320
479
|
children: [label && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.Label, {
|
|
321
480
|
...(compact ? {
|
|
322
481
|
fontSize: "$3",
|
|
@@ -327,9 +486,9 @@ function Attachments({
|
|
|
327
486
|
fontSize: "$2",
|
|
328
487
|
children: [" ", "(", items.length, "/", maxAttachments, ")"]
|
|
329
488
|
})]
|
|
330
|
-
}), canAdd && /* @__PURE__ */(0, import_jsx_runtime.jsx)(
|
|
489
|
+
}), canAdd && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
331
490
|
size: compact ? "$2" : "$3",
|
|
332
|
-
icon: import_react.
|
|
491
|
+
icon: import_react.PlusIcon,
|
|
333
492
|
onPress: handleUploadClick,
|
|
334
493
|
children: uploadLabel
|
|
335
494
|
})]
|
|
@@ -353,7 +512,7 @@ function Attachments({
|
|
|
353
512
|
fontSize: "$2",
|
|
354
513
|
flex: 1,
|
|
355
514
|
children: uploadError
|
|
356
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(
|
|
515
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
357
516
|
size: "$1",
|
|
358
517
|
chromeless: true,
|
|
359
518
|
icon: import_react.XIcon,
|
|
@@ -366,13 +525,33 @@ function Attachments({
|
|
|
366
525
|
errorTitle: loadFailedLabel,
|
|
367
526
|
loading: showSkeleton ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(AttachmentsSkeleton, {
|
|
368
527
|
thumbSize,
|
|
369
|
-
loadingLabel: t("Loading")
|
|
528
|
+
loadingLabel: t("Loading"),
|
|
529
|
+
rowPad
|
|
370
530
|
}) : false,
|
|
371
531
|
empty: !hasError && items.length === 0 ? emptyState : false,
|
|
372
532
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
533
|
+
role: "list",
|
|
534
|
+
backgroundColor: dragOver ? import_componentColors.componentColors.interactive.background : "transparent",
|
|
535
|
+
...dropHandlers,
|
|
536
|
+
children: items.map((attachment, index) => /* @__PURE__ */(0, import_jsx_runtime.jsx)(AttachmentRow, {
|
|
537
|
+
attachment,
|
|
538
|
+
index,
|
|
539
|
+
count: items.length,
|
|
540
|
+
compact,
|
|
541
|
+
disabled,
|
|
542
|
+
thumbSize,
|
|
543
|
+
rowPad,
|
|
544
|
+
enablePreview,
|
|
545
|
+
enableDownload,
|
|
546
|
+
enableRemove,
|
|
547
|
+
previewLabel,
|
|
548
|
+
downloadLabel,
|
|
549
|
+
removeLabel,
|
|
550
|
+
onAttachmentClick,
|
|
551
|
+
onPreview: handlePreview,
|
|
552
|
+
onDownload: handleDownload,
|
|
553
|
+
onRemove,
|
|
554
|
+
renderAttachment
|
|
376
555
|
}, attachment.id))
|
|
377
556
|
})
|
|
378
557
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Dialog, {
|
|
@@ -381,52 +560,38 @@ function Attachments({
|
|
|
381
560
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.Dialog.Portal, {
|
|
382
561
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_surfaces.DialogOverlay, {
|
|
383
562
|
opacity: 0.5
|
|
384
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(
|
|
385
|
-
borderWidth: 1,
|
|
386
|
-
borderColor: "$borderColor",
|
|
387
|
-
elevation: knobProps.elevation,
|
|
388
|
-
transition: knobProps.transition,
|
|
389
|
-
enterStyle: {
|
|
390
|
-
x: 0,
|
|
391
|
-
y: -20,
|
|
392
|
-
opacity: 0,
|
|
393
|
-
scale: 0.9
|
|
394
|
-
},
|
|
395
|
-
exitStyle: {
|
|
396
|
-
x: 0,
|
|
397
|
-
y: 10,
|
|
398
|
-
opacity: 0,
|
|
399
|
-
scale: 0.95
|
|
400
|
-
},
|
|
563
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_surfaces.DialogContent, {
|
|
401
564
|
maxWidth: 800,
|
|
402
565
|
maxHeight: "80vh",
|
|
403
566
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Dialog.Title, {
|
|
404
567
|
children: previewFile?.fileName
|
|
405
|
-
}), previewFile && /* @__PURE__ */(0, import_jsx_runtime.
|
|
406
|
-
|
|
568
|
+
}), previewFile && isImageFile(previewFile) ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Image, {
|
|
569
|
+
src: previewFile.fileUrl,
|
|
570
|
+
alt: previewFile.fileName,
|
|
571
|
+
width: "100%",
|
|
572
|
+
height: 320,
|
|
573
|
+
objectFit: "contain"
|
|
574
|
+
}) : previewFile ? /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
407
575
|
alignItems: "center",
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
415
|
-
gap: "$2",
|
|
416
|
-
marginTop: "$4",
|
|
417
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
418
|
-
icon: import_react.DownloadSimpleIcon,
|
|
419
|
-
onPress: () => handleDownload(previewFile),
|
|
420
|
-
children: downloadLabel
|
|
421
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Dialog.Close, {
|
|
422
|
-
asChild: true,
|
|
423
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
424
|
-
variant: "outlined",
|
|
425
|
-
children: closeLabel
|
|
426
|
-
})
|
|
427
|
-
})]
|
|
576
|
+
...knobProps.gap,
|
|
577
|
+
paddingVertical: "$4",
|
|
578
|
+
children: [getFileIcon(previewFile, 40), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
579
|
+
color: import_componentColors.componentColors.text.muted,
|
|
580
|
+
textAlign: "center",
|
|
581
|
+
children: previewUnavailableLabel
|
|
428
582
|
})]
|
|
429
|
-
})
|
|
583
|
+
}) : null, previewFile ? /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
584
|
+
gap: "$2",
|
|
585
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
586
|
+
icon: import_react.DownloadSimpleIcon,
|
|
587
|
+
onPress: () => handleDownload(previewFile),
|
|
588
|
+
children: downloadLabel
|
|
589
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
590
|
+
outlined: true,
|
|
591
|
+
onPress: () => setPreviewFile(null),
|
|
592
|
+
children: closeLabel
|
|
593
|
+
})]
|
|
594
|
+
}) : null]
|
|
430
595
|
})]
|
|
431
596
|
})
|
|
432
597
|
})]
|