@multiplatform.one/components 7.7.6 → 7.10.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 +3 -3
- package/dist/cjs/Accordion/index.native.js +4 -4
- package/dist/cjs/Accordion/index.native.js.map +1 -1
- package/dist/cjs/Button.native.js.map +1 -1
- package/dist/cjs/Card.cjs +7 -1
- package/dist/cjs/Card.native.js +11 -1
- package/dist/cjs/Card.native.js.map +1 -1
- package/dist/cjs/CardFooter.cjs +1 -0
- package/dist/cjs/CardFooter.native.js +1 -0
- package/dist/cjs/CardFooter.native.js.map +1 -1
- package/dist/cjs/Chip/index.cjs +1 -1
- package/dist/cjs/Chip/index.native.js +1 -1
- package/dist/cjs/Chip/index.native.js.map +1 -1
- package/dist/cjs/ContextMenu/index.cjs +3 -3
- package/dist/cjs/ContextMenu/index.native.js +3 -3
- package/dist/cjs/ContextMenu/index.native.js.map +1 -1
- package/dist/cjs/CopyField/index.cjs +6 -1
- package/dist/cjs/CopyField/index.native.js +6 -1
- package/dist/cjs/CopyField/index.native.js.map +1 -1
- package/dist/cjs/DropdownMenu/index.cjs +34 -4
- package/dist/cjs/DropdownMenu/index.native.js +34 -4
- package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
- package/dist/cjs/Meter/index.cjs +15 -7
- package/dist/cjs/Meter/index.native.js +15 -7
- package/dist/cjs/Meter/index.native.js.map +1 -1
- package/dist/cjs/Meter/meter.cjs +1 -2
- package/dist/cjs/Meter/meter.native.js +1 -2
- package/dist/cjs/Meter/meter.native.js.map +1 -1
- package/dist/cjs/Pagination.cjs +2 -2
- package/dist/cjs/Pagination.native.js +2 -2
- package/dist/cjs/Pagination.native.js.map +1 -1
- package/dist/cjs/ProgressSteps/index.cjs +3 -3
- package/dist/cjs/ProgressSteps/index.native.js +3 -3
- package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
- package/dist/cjs/Quote/index.cjs +1 -2
- package/dist/cjs/Quote/index.native.js +1 -2
- package/dist/cjs/Quote/index.native.js.map +1 -1
- package/dist/cjs/Tabs/index.cjs +8 -7
- package/dist/cjs/Tabs/index.native.js +9 -8
- package/dist/cjs/Tabs/index.native.js.map +1 -1
- package/dist/cjs/Toast/index.cjs +57 -7
- package/dist/cjs/Toast/index.native.js +59 -7
- package/dist/cjs/Toast/index.native.js.map +1 -1
- package/dist/cjs/TreeSelect/index.cjs +46 -7
- package/dist/cjs/TreeSelect/index.native.js +58 -7
- package/dist/cjs/TreeSelect/index.native.js.map +1 -1
- package/dist/cjs/actions/DestructiveAction.cjs +7 -13
- package/dist/cjs/actions/DestructiveAction.native.js +7 -15
- package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
- package/dist/cjs/charts/Axis.cjs +5 -0
- package/dist/cjs/charts/Axis.native.js +5 -0
- package/dist/cjs/charts/Axis.native.js.map +1 -1
- package/dist/cjs/charts/BarChart.cjs +71 -57
- package/dist/cjs/charts/BarChart.native.js +81 -67
- package/dist/cjs/charts/BarChart.native.js.map +1 -1
- package/dist/cjs/charts/ChartDataView.cjs +212 -0
- package/dist/cjs/charts/ChartDataView.native.js +224 -0
- package/dist/cjs/charts/ChartDataView.native.js.map +1 -0
- package/dist/cjs/charts/ChartSurface.cjs +5 -1
- package/dist/cjs/charts/ChartSurface.native.js +5 -1
- package/dist/cjs/charts/ChartSurface.native.js.map +1 -1
- package/dist/cjs/charts/LineChart.cjs +81 -67
- package/dist/cjs/charts/LineChart.native.js +94 -80
- package/dist/cjs/charts/LineChart.native.js.map +1 -1
- package/dist/cjs/charts/PieChart.cjs +98 -74
- package/dist/cjs/charts/PieChart.native.js +109 -85
- package/dist/cjs/charts/PieChart.native.js.map +1 -1
- package/dist/cjs/charts/Sparkline.cjs +10 -1
- package/dist/cjs/charts/Sparkline.native.js +10 -1
- package/dist/cjs/charts/Sparkline.native.js.map +1 -1
- package/dist/cjs/charts/accessibility.cjs +4 -0
- package/dist/cjs/charts/accessibility.native.js +7 -0
- package/dist/cjs/charts/accessibility.native.js.map +1 -1
- package/dist/cjs/charts/index.cjs +3 -1
- package/dist/cjs/charts/index.native.js +2 -0
- package/dist/cjs/charts/index.native.js.map +1 -1
- package/dist/cjs/charts/math.cjs +16 -0
- package/dist/cjs/charts/math.native.js +18 -0
- package/dist/cjs/charts/math.native.js.map +1 -1
- package/dist/cjs/charts/series.cjs +49 -7
- package/dist/cjs/charts/series.native.js +53 -11
- package/dist/cjs/charts/series.native.js.map +1 -1
- package/dist/cjs/charts/svg.cjs +46 -3
- package/dist/cjs/charts/svg.native.js +46 -3
- package/dist/cjs/charts/svg.native.js.map +1 -1
- package/dist/cjs/code/CodeBlock/index.cjs +6 -1
- package/dist/cjs/code/CodeBlock/index.native.js +6 -1
- package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
- package/dist/cjs/code/HighlightedCode/index.cjs +1 -1
- package/dist/cjs/code/HighlightedCode/index.native.js +1 -1
- package/dist/cjs/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/cjs/componentColors.cjs +6 -4
- package/dist/cjs/componentColors.native.js +6 -4
- package/dist/cjs/componentColors.native.js.map +1 -1
- package/dist/cjs/feedback/ConfirmDialog.cjs +7 -21
- package/dist/cjs/feedback/ConfirmDialog.native.js +7 -22
- package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/cjs/feedback/NotifyHost.cjs +2 -1
- package/dist/cjs/feedback/NotifyHost.native.js +3 -2
- package/dist/cjs/feedback/NotifyHost.native.js.map +1 -1
- package/dist/cjs/feedback/copy.cjs +36 -4
- package/dist/cjs/feedback/copy.native.js +38 -4
- package/dist/cjs/feedback/copy.native.js.map +1 -1
- package/dist/cjs/feedback/index.cjs +1 -0
- package/dist/cjs/feedback/index.native.js +1 -0
- package/dist/cjs/feedback/index.native.js.map +1 -1
- package/dist/cjs/feedback/notify.cjs +1 -0
- package/dist/cjs/feedback/notify.native.js +1 -0
- package/dist/cjs/feedback/notify.native.js.map +1 -1
- package/dist/cjs/feedback/route.cjs +3 -0
- package/dist/cjs/feedback/route.native.js +3 -0
- package/dist/cjs/feedback/route.native.js.map +1 -1
- package/dist/cjs/feedback/store.cjs +6 -0
- package/dist/cjs/feedback/store.native.js +8 -0
- package/dist/cjs/feedback/store.native.js.map +1 -1
- package/dist/cjs/icons/lucide.cjs +2 -1
- package/dist/cjs/icons/lucide.native.js +2 -1
- package/dist/cjs/icons/lucide.native.js.map +1 -1
- package/dist/cjs/images/Image/ImageFrame.cjs +4 -2
- package/dist/cjs/images/Image/ImageFrame.native.js +4 -2
- package/dist/cjs/images/Image/ImageFrame.native.js.map +1 -1
- package/dist/cjs/layouts/AsyncBoundary.cjs +1 -2
- package/dist/cjs/layouts/AsyncBoundary.native.js +1 -2
- package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/cjs/layouts/EmptyState.cjs +6 -2
- package/dist/cjs/layouts/EmptyState.native.js +10 -6
- package/dist/cjs/layouts/EmptyState.native.js.map +1 -1
- package/dist/cjs/layouts/PaneScaffold.cjs +96 -41
- package/dist/cjs/layouts/PaneScaffold.native.js +97 -41
- package/dist/cjs/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/cjs/layouts/attachments.cjs +4 -4
- package/dist/cjs/layouts/attachments.native.js +4 -4
- package/dist/cjs/layouts/attachments.native.js.map +1 -1
- package/dist/cjs/layouts/breadcrumbs.cjs +1 -2
- package/dist/cjs/layouts/breadcrumbs.native.js +1 -2
- package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/cjs/layouts/index.cjs +2 -0
- package/dist/cjs/layouts/index.native.js +2 -0
- package/dist/cjs/layouts/index.native.js.map +1 -1
- package/dist/cjs/layouts/page.cjs +50 -9
- package/dist/cjs/layouts/page.native.js +52 -9
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/cjs/layouts/sidebar.cjs +2 -2
- package/dist/cjs/layouts/sidebar.native.js +2 -2
- package/dist/cjs/layouts/sidebar.native.js.map +1 -1
- package/dist/cjs/layouts/tags.cjs +6 -7
- package/dist/cjs/layouts/tags.native.js +6 -9
- package/dist/cjs/layouts/tags.native.js.map +1 -1
- package/dist/cjs/layouts/timeline.cjs +5 -5
- package/dist/cjs/layouts/timeline.native.js +5 -5
- package/dist/cjs/layouts/timeline.native.js.map +1 -1
- package/dist/cjs/shared/useKeyboardInset.cjs +1 -19
- package/dist/cjs/shared/useKeyboardInset.native.js +3 -3
- package/dist/cjs/shared/useKeyboardInset.native.js.map +1 -1
- package/dist/cjs/surfaces.cjs +1 -0
- package/dist/cjs/surfaces.native.js +1 -0
- package/dist/cjs/surfaces.native.js.map +1 -1
- package/dist/cjs/views/Calendar.cjs +11 -8
- package/dist/cjs/views/Calendar.native.js +11 -8
- package/dist/cjs/views/Calendar.native.js.map +1 -1
- package/dist/cjs/views/Dashboard.cjs +116 -23
- package/dist/cjs/views/Dashboard.native.js +158 -52
- package/dist/cjs/views/Dashboard.native.js.map +1 -1
- package/dist/cjs/views/Gantt.cjs +377 -94
- package/dist/cjs/views/Gantt.native.js +446 -97
- package/dist/cjs/views/Gantt.native.js.map +1 -1
- package/dist/cjs/views/Kanban.cjs +2 -2
- package/dist/cjs/views/Kanban.native.js +2 -2
- package/dist/cjs/views/Kanban.native.js.map +1 -1
- package/dist/cjs/views/ReportBuilder.cjs +4 -4
- package/dist/cjs/views/ReportBuilder.native.js +4 -4
- package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
- package/dist/cjs/views/TreeView.cjs +103 -6
- package/dist/cjs/views/TreeView.native.js +115 -6
- package/dist/cjs/views/TreeView.native.js.map +1 -1
- package/dist/cjs/views/ganttMath.cjs +91 -2
- package/dist/cjs/views/ganttMath.native.js +113 -3
- package/dist/cjs/views/ganttMath.native.js.map +1 -1
- package/dist/cjs/views/index.cjs +20 -1
- package/dist/cjs/views/index.native.js +20 -1
- package/dist/cjs/views/index.native.js.map +1 -1
- package/dist/cjs/views/treeViewReveal.cjs +55 -0
- package/dist/cjs/views/treeViewReveal.native.js +80 -0
- package/dist/cjs/views/treeViewReveal.native.js.map +1 -0
- package/dist/esm/Accordion/index.mjs +3 -3
- package/dist/esm/Accordion/index.mjs.map +1 -1
- package/dist/esm/Accordion/index.native.js +4 -4
- package/dist/esm/Accordion/index.native.js.map +1 -1
- package/dist/esm/Button.mjs.map +1 -1
- package/dist/esm/Button.native.js.map +1 -1
- package/dist/esm/Card.mjs +8 -2
- package/dist/esm/Card.mjs.map +1 -1
- package/dist/esm/Card.native.js +12 -2
- package/dist/esm/Card.native.js.map +1 -1
- package/dist/esm/CardFooter.mjs +1 -0
- package/dist/esm/CardFooter.mjs.map +1 -1
- package/dist/esm/CardFooter.native.js +1 -0
- package/dist/esm/CardFooter.native.js.map +1 -1
- package/dist/esm/Chip/index.mjs +1 -1
- package/dist/esm/Chip/index.mjs.map +1 -1
- package/dist/esm/Chip/index.native.js +1 -1
- package/dist/esm/Chip/index.native.js.map +1 -1
- package/dist/esm/ContextMenu/index.mjs +3 -3
- package/dist/esm/ContextMenu/index.mjs.map +1 -1
- package/dist/esm/ContextMenu/index.native.js +3 -3
- package/dist/esm/ContextMenu/index.native.js.map +1 -1
- package/dist/esm/CopyField/index.mjs +7 -2
- package/dist/esm/CopyField/index.mjs.map +1 -1
- package/dist/esm/CopyField/index.native.js +7 -2
- package/dist/esm/CopyField/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.mjs +35 -5
- package/dist/esm/DropdownMenu/index.mjs.map +1 -1
- package/dist/esm/DropdownMenu/index.native.js +35 -5
- package/dist/esm/DropdownMenu/index.native.js.map +1 -1
- package/dist/esm/Meter/index.mjs +15 -7
- package/dist/esm/Meter/index.mjs.map +1 -1
- package/dist/esm/Meter/index.native.js +15 -7
- package/dist/esm/Meter/index.native.js.map +1 -1
- package/dist/esm/Meter/meter.mjs +1 -2
- package/dist/esm/Meter/meter.mjs.map +1 -1
- package/dist/esm/Meter/meter.native.js +1 -2
- package/dist/esm/Meter/meter.native.js.map +1 -1
- package/dist/esm/Pagination.mjs +2 -2
- package/dist/esm/Pagination.mjs.map +1 -1
- package/dist/esm/Pagination.native.js +2 -2
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/ProgressSteps/index.mjs +3 -3
- package/dist/esm/ProgressSteps/index.mjs.map +1 -1
- package/dist/esm/ProgressSteps/index.native.js +3 -3
- package/dist/esm/ProgressSteps/index.native.js.map +1 -1
- package/dist/esm/Quote/index.mjs +1 -2
- package/dist/esm/Quote/index.mjs.map +1 -1
- package/dist/esm/Quote/index.native.js +1 -2
- package/dist/esm/Quote/index.native.js.map +1 -1
- package/dist/esm/Tabs/index.mjs +8 -7
- package/dist/esm/Tabs/index.mjs.map +1 -1
- package/dist/esm/Tabs/index.native.js +9 -8
- package/dist/esm/Tabs/index.native.js.map +1 -1
- package/dist/esm/Toast/index.mjs +56 -8
- package/dist/esm/Toast/index.mjs.map +1 -1
- package/dist/esm/Toast/index.native.js +58 -8
- package/dist/esm/Toast/index.native.js.map +1 -1
- package/dist/esm/TreeSelect/index.mjs +46 -7
- package/dist/esm/TreeSelect/index.mjs.map +1 -1
- package/dist/esm/TreeSelect/index.native.js +58 -7
- package/dist/esm/TreeSelect/index.native.js.map +1 -1
- package/dist/esm/actions/DestructiveAction.mjs +8 -14
- package/dist/esm/actions/DestructiveAction.mjs.map +1 -1
- package/dist/esm/actions/DestructiveAction.native.js +8 -16
- package/dist/esm/actions/DestructiveAction.native.js.map +1 -1
- package/dist/esm/charts/Axis.mjs +6 -1
- package/dist/esm/charts/Axis.mjs.map +1 -1
- package/dist/esm/charts/Axis.native.js +6 -1
- package/dist/esm/charts/Axis.native.js.map +1 -1
- package/dist/esm/charts/BarChart.mjs +72 -58
- package/dist/esm/charts/BarChart.mjs.map +1 -1
- package/dist/esm/charts/BarChart.native.js +82 -68
- package/dist/esm/charts/BarChart.native.js.map +1 -1
- package/dist/esm/charts/ChartDataView.mjs +185 -0
- package/dist/esm/charts/ChartDataView.mjs.map +1 -0
- package/dist/esm/charts/ChartDataView.native.js +194 -0
- package/dist/esm/charts/ChartDataView.native.js.map +1 -0
- package/dist/esm/charts/ChartSurface.mjs +5 -1
- package/dist/esm/charts/ChartSurface.mjs.map +1 -1
- package/dist/esm/charts/ChartSurface.native.js +5 -1
- package/dist/esm/charts/ChartSurface.native.js.map +1 -1
- package/dist/esm/charts/LineChart.mjs +82 -68
- package/dist/esm/charts/LineChart.mjs.map +1 -1
- package/dist/esm/charts/LineChart.native.js +95 -81
- package/dist/esm/charts/LineChart.native.js.map +1 -1
- package/dist/esm/charts/PieChart.mjs +100 -76
- package/dist/esm/charts/PieChart.mjs.map +1 -1
- package/dist/esm/charts/PieChart.native.js +111 -87
- package/dist/esm/charts/PieChart.native.js.map +1 -1
- package/dist/esm/charts/Sparkline.mjs +11 -2
- package/dist/esm/charts/Sparkline.mjs.map +1 -1
- package/dist/esm/charts/Sparkline.native.js +11 -2
- package/dist/esm/charts/Sparkline.native.js.map +1 -1
- package/dist/esm/charts/accessibility.mjs +4 -1
- package/dist/esm/charts/accessibility.mjs.map +1 -1
- package/dist/esm/charts/accessibility.native.js +7 -1
- package/dist/esm/charts/accessibility.native.js.map +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/charts/math.mjs +16 -1
- package/dist/esm/charts/math.mjs.map +1 -1
- package/dist/esm/charts/math.native.js +18 -1
- package/dist/esm/charts/math.native.js.map +1 -1
- package/dist/esm/charts/series.mjs +51 -9
- package/dist/esm/charts/series.mjs.map +1 -1
- package/dist/esm/charts/series.native.js +55 -13
- package/dist/esm/charts/series.native.js.map +1 -1
- package/dist/esm/charts/svg.mjs +40 -4
- package/dist/esm/charts/svg.mjs.map +1 -1
- package/dist/esm/charts/svg.native.js +40 -4
- package/dist/esm/charts/svg.native.js.map +1 -1
- package/dist/esm/code/CodeBlock/index.mjs +7 -2
- package/dist/esm/code/CodeBlock/index.mjs.map +1 -1
- package/dist/esm/code/CodeBlock/index.native.js +7 -2
- package/dist/esm/code/CodeBlock/index.native.js.map +1 -1
- package/dist/esm/code/HighlightedCode/index.mjs +1 -1
- package/dist/esm/code/HighlightedCode/index.mjs.map +1 -1
- package/dist/esm/code/HighlightedCode/index.native.js +1 -1
- package/dist/esm/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/esm/componentColors.mjs +6 -4
- package/dist/esm/componentColors.mjs.map +1 -1
- package/dist/esm/componentColors.native.js +6 -4
- package/dist/esm/componentColors.native.js.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.mjs +8 -22
- package/dist/esm/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.native.js +8 -23
- package/dist/esm/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/esm/feedback/NotifyHost.mjs +2 -1
- package/dist/esm/feedback/NotifyHost.mjs.map +1 -1
- package/dist/esm/feedback/NotifyHost.native.js +3 -2
- package/dist/esm/feedback/NotifyHost.native.js.map +1 -1
- package/dist/esm/feedback/copy.mjs +35 -4
- package/dist/esm/feedback/copy.mjs.map +1 -1
- package/dist/esm/feedback/copy.native.js +37 -4
- package/dist/esm/feedback/copy.native.js.map +1 -1
- package/dist/esm/feedback/index.mjs +2 -2
- package/dist/esm/feedback/index.mjs.map +1 -1
- package/dist/esm/feedback/index.native.js +2 -2
- package/dist/esm/feedback/index.native.js.map +1 -1
- package/dist/esm/feedback/notify.mjs +1 -0
- package/dist/esm/feedback/notify.mjs.map +1 -1
- package/dist/esm/feedback/notify.native.js +1 -0
- package/dist/esm/feedback/notify.native.js.map +1 -1
- package/dist/esm/feedback/route.mjs +3 -0
- package/dist/esm/feedback/route.mjs.map +1 -1
- package/dist/esm/feedback/route.native.js +3 -0
- package/dist/esm/feedback/route.native.js.map +1 -1
- package/dist/esm/feedback/store.mjs +6 -1
- package/dist/esm/feedback/store.mjs.map +1 -1
- package/dist/esm/feedback/store.native.js +8 -1
- package/dist/esm/feedback/store.native.js.map +1 -1
- package/dist/esm/icons/lucide.mjs +2 -2
- package/dist/esm/icons/lucide.mjs.map +1 -1
- package/dist/esm/icons/lucide.native.js +2 -2
- package/dist/esm/icons/lucide.native.js.map +1 -1
- package/dist/esm/images/Image/ImageFrame.mjs +4 -2
- package/dist/esm/images/Image/ImageFrame.mjs.map +1 -1
- package/dist/esm/images/Image/ImageFrame.native.js +4 -2
- package/dist/esm/images/Image/ImageFrame.native.js.map +1 -1
- package/dist/esm/layouts/AsyncBoundary.mjs +1 -2
- package/dist/esm/layouts/AsyncBoundary.mjs.map +1 -1
- package/dist/esm/layouts/AsyncBoundary.native.js +1 -2
- package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/esm/layouts/EmptyState.mjs +7 -3
- package/dist/esm/layouts/EmptyState.mjs.map +1 -1
- package/dist/esm/layouts/EmptyState.native.js +11 -7
- package/dist/esm/layouts/EmptyState.native.js.map +1 -1
- package/dist/esm/layouts/PaneScaffold.mjs +97 -42
- package/dist/esm/layouts/PaneScaffold.mjs.map +1 -1
- package/dist/esm/layouts/PaneScaffold.native.js +98 -42
- package/dist/esm/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/esm/layouts/attachments.mjs +4 -4
- package/dist/esm/layouts/attachments.mjs.map +1 -1
- package/dist/esm/layouts/attachments.native.js +4 -4
- package/dist/esm/layouts/attachments.native.js.map +1 -1
- package/dist/esm/layouts/breadcrumbs.mjs +1 -2
- package/dist/esm/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/esm/layouts/breadcrumbs.native.js +1 -2
- package/dist/esm/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/esm/layouts/index.mjs +2 -1
- package/dist/esm/layouts/index.mjs.map +1 -1
- package/dist/esm/layouts/index.native.js +2 -1
- package/dist/esm/layouts/index.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +51 -10
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +53 -10
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/layouts/sidebar.mjs +2 -2
- package/dist/esm/layouts/sidebar.mjs.map +1 -1
- package/dist/esm/layouts/sidebar.native.js +2 -2
- package/dist/esm/layouts/sidebar.native.js.map +1 -1
- package/dist/esm/layouts/tags.mjs +6 -7
- package/dist/esm/layouts/tags.mjs.map +1 -1
- package/dist/esm/layouts/tags.native.js +6 -9
- package/dist/esm/layouts/tags.native.js.map +1 -1
- package/dist/esm/layouts/timeline.mjs +5 -5
- package/dist/esm/layouts/timeline.mjs.map +1 -1
- package/dist/esm/layouts/timeline.native.js +5 -5
- package/dist/esm/layouts/timeline.native.js.map +1 -1
- package/dist/esm/shared/useKeyboardInset.mjs +1 -19
- package/dist/esm/shared/useKeyboardInset.mjs.map +1 -1
- package/dist/esm/shared/useKeyboardInset.native.js.map +1 -1
- package/dist/esm/surfaces.mjs +1 -0
- package/dist/esm/surfaces.mjs.map +1 -1
- package/dist/esm/surfaces.native.js +1 -0
- package/dist/esm/surfaces.native.js.map +1 -1
- package/dist/esm/views/Calendar.mjs +11 -8
- package/dist/esm/views/Calendar.mjs.map +1 -1
- package/dist/esm/views/Calendar.native.js +11 -8
- package/dist/esm/views/Calendar.native.js.map +1 -1
- package/dist/esm/views/Dashboard.mjs +118 -25
- package/dist/esm/views/Dashboard.mjs.map +1 -1
- package/dist/esm/views/Dashboard.native.js +160 -54
- package/dist/esm/views/Dashboard.native.js.map +1 -1
- package/dist/esm/views/Gantt.mjs +379 -96
- package/dist/esm/views/Gantt.mjs.map +1 -1
- package/dist/esm/views/Gantt.native.js +448 -99
- package/dist/esm/views/Gantt.native.js.map +1 -1
- package/dist/esm/views/Kanban.mjs +2 -2
- package/dist/esm/views/Kanban.mjs.map +1 -1
- package/dist/esm/views/Kanban.native.js +2 -2
- package/dist/esm/views/Kanban.native.js.map +1 -1
- package/dist/esm/views/ReportBuilder.mjs +4 -4
- package/dist/esm/views/ReportBuilder.mjs.map +1 -1
- package/dist/esm/views/ReportBuilder.native.js +4 -4
- package/dist/esm/views/ReportBuilder.native.js.map +1 -1
- package/dist/esm/views/TreeView.mjs +104 -7
- package/dist/esm/views/TreeView.mjs.map +1 -1
- package/dist/esm/views/TreeView.native.js +116 -7
- package/dist/esm/views/TreeView.native.js.map +1 -1
- package/dist/esm/views/ganttMath.mjs +84 -3
- package/dist/esm/views/ganttMath.mjs.map +1 -1
- package/dist/esm/views/ganttMath.native.js +106 -4
- package/dist/esm/views/ganttMath.native.js.map +1 -1
- package/dist/esm/views/index.mjs +2 -2
- package/dist/esm/views/index.mjs.map +1 -1
- package/dist/esm/views/index.native.js +2 -2
- package/dist/esm/views/index.native.js.map +1 -1
- package/dist/esm/views/treeViewReveal.mjs +29 -0
- package/dist/esm/views/treeViewReveal.mjs.map +1 -0
- package/dist/esm/views/treeViewReveal.native.js +51 -0
- package/dist/esm/views/treeViewReveal.native.js.map +1 -0
- package/dist/jsx/Accordion/index.mjs +3 -3
- package/dist/jsx/Accordion/index.mjs.map +1 -1
- package/dist/jsx/Accordion/index.native.js +4 -4
- package/dist/jsx/Accordion/index.native.js.map +1 -1
- package/dist/jsx/Button.mjs.map +1 -1
- package/dist/jsx/Button.native.js.map +1 -1
- package/dist/jsx/Card.mjs +8 -2
- package/dist/jsx/Card.mjs.map +1 -1
- package/dist/jsx/Card.native.js +11 -1
- package/dist/jsx/Card.native.js.map +1 -1
- package/dist/jsx/CardFooter.mjs +1 -0
- package/dist/jsx/CardFooter.mjs.map +1 -1
- package/dist/jsx/CardFooter.native.js +1 -0
- package/dist/jsx/CardFooter.native.js.map +1 -1
- package/dist/jsx/Chip/index.mjs +1 -1
- package/dist/jsx/Chip/index.mjs.map +1 -1
- package/dist/jsx/Chip/index.native.js +1 -1
- package/dist/jsx/Chip/index.native.js.map +1 -1
- package/dist/jsx/ContextMenu/index.mjs +3 -3
- package/dist/jsx/ContextMenu/index.mjs.map +1 -1
- package/dist/jsx/ContextMenu/index.native.js +3 -3
- package/dist/jsx/ContextMenu/index.native.js.map +1 -1
- package/dist/jsx/CopyField/index.mjs +7 -2
- package/dist/jsx/CopyField/index.mjs.map +1 -1
- package/dist/jsx/CopyField/index.native.js +6 -1
- package/dist/jsx/CopyField/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.mjs +35 -5
- package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
- package/dist/jsx/DropdownMenu/index.native.js +34 -4
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
- package/dist/jsx/Meter/index.mjs +15 -7
- package/dist/jsx/Meter/index.mjs.map +1 -1
- package/dist/jsx/Meter/index.native.js +15 -7
- package/dist/jsx/Meter/index.native.js.map +1 -1
- package/dist/jsx/Meter/meter.mjs +1 -2
- package/dist/jsx/Meter/meter.mjs.map +1 -1
- package/dist/jsx/Meter/meter.native.js +1 -2
- package/dist/jsx/Meter/meter.native.js.map +1 -1
- package/dist/jsx/Pagination.mjs +2 -2
- package/dist/jsx/Pagination.mjs.map +1 -1
- package/dist/jsx/Pagination.native.js +2 -2
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/ProgressSteps/index.mjs +3 -3
- package/dist/jsx/ProgressSteps/index.mjs.map +1 -1
- package/dist/jsx/ProgressSteps/index.native.js +3 -3
- package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
- package/dist/jsx/Quote/index.mjs +1 -2
- package/dist/jsx/Quote/index.mjs.map +1 -1
- package/dist/jsx/Quote/index.native.js +1 -2
- package/dist/jsx/Quote/index.native.js.map +1 -1
- package/dist/jsx/Tabs/index.mjs +8 -7
- package/dist/jsx/Tabs/index.mjs.map +1 -1
- package/dist/jsx/Tabs/index.native.js +9 -8
- package/dist/jsx/Tabs/index.native.js.map +1 -1
- package/dist/jsx/Toast/index.mjs +56 -8
- package/dist/jsx/Toast/index.mjs.map +1 -1
- package/dist/jsx/Toast/index.native.js +59 -7
- package/dist/jsx/Toast/index.native.js.map +1 -1
- package/dist/jsx/TreeSelect/index.mjs +46 -7
- package/dist/jsx/TreeSelect/index.mjs.map +1 -1
- package/dist/jsx/TreeSelect/index.native.js +58 -7
- package/dist/jsx/TreeSelect/index.native.js.map +1 -1
- package/dist/jsx/actions/DestructiveAction.mjs +8 -14
- package/dist/jsx/actions/DestructiveAction.mjs.map +1 -1
- package/dist/jsx/actions/DestructiveAction.native.js +7 -15
- package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
- package/dist/jsx/charts/Axis.mjs +6 -1
- package/dist/jsx/charts/Axis.mjs.map +1 -1
- package/dist/jsx/charts/Axis.native.js +5 -0
- package/dist/jsx/charts/Axis.native.js.map +1 -1
- package/dist/jsx/charts/BarChart.mjs +72 -58
- package/dist/jsx/charts/BarChart.mjs.map +1 -1
- package/dist/jsx/charts/BarChart.native.js +81 -67
- package/dist/jsx/charts/BarChart.native.js.map +1 -1
- package/dist/jsx/charts/ChartDataView.mjs +185 -0
- package/dist/jsx/charts/ChartDataView.mjs.map +1 -0
- package/dist/jsx/charts/ChartDataView.native.js +224 -0
- package/dist/jsx/charts/ChartDataView.native.js.map +1 -0
- package/dist/jsx/charts/ChartSurface.mjs +5 -1
- package/dist/jsx/charts/ChartSurface.mjs.map +1 -1
- package/dist/jsx/charts/ChartSurface.native.js +5 -1
- package/dist/jsx/charts/ChartSurface.native.js.map +1 -1
- package/dist/jsx/charts/LineChart.mjs +82 -68
- package/dist/jsx/charts/LineChart.mjs.map +1 -1
- package/dist/jsx/charts/LineChart.native.js +94 -80
- package/dist/jsx/charts/LineChart.native.js.map +1 -1
- package/dist/jsx/charts/PieChart.mjs +100 -76
- package/dist/jsx/charts/PieChart.mjs.map +1 -1
- package/dist/jsx/charts/PieChart.native.js +109 -85
- package/dist/jsx/charts/PieChart.native.js.map +1 -1
- package/dist/jsx/charts/Sparkline.mjs +11 -2
- package/dist/jsx/charts/Sparkline.mjs.map +1 -1
- package/dist/jsx/charts/Sparkline.native.js +10 -1
- package/dist/jsx/charts/Sparkline.native.js.map +1 -1
- package/dist/jsx/charts/accessibility.mjs +4 -1
- package/dist/jsx/charts/accessibility.mjs.map +1 -1
- package/dist/jsx/charts/accessibility.native.js +7 -0
- package/dist/jsx/charts/accessibility.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 +2 -0
- package/dist/jsx/charts/index.native.js.map +1 -1
- package/dist/jsx/charts/math.mjs +16 -1
- package/dist/jsx/charts/math.mjs.map +1 -1
- package/dist/jsx/charts/math.native.js +18 -0
- package/dist/jsx/charts/math.native.js.map +1 -1
- package/dist/jsx/charts/series.mjs +51 -9
- package/dist/jsx/charts/series.mjs.map +1 -1
- package/dist/jsx/charts/series.native.js +53 -11
- package/dist/jsx/charts/series.native.js.map +1 -1
- package/dist/jsx/charts/svg.mjs +40 -4
- package/dist/jsx/charts/svg.mjs.map +1 -1
- package/dist/jsx/charts/svg.native.js +46 -3
- package/dist/jsx/charts/svg.native.js.map +1 -1
- package/dist/jsx/code/CodeBlock/index.mjs +7 -2
- package/dist/jsx/code/CodeBlock/index.mjs.map +1 -1
- package/dist/jsx/code/CodeBlock/index.native.js +6 -1
- package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
- package/dist/jsx/code/HighlightedCode/index.mjs +1 -1
- package/dist/jsx/code/HighlightedCode/index.mjs.map +1 -1
- package/dist/jsx/code/HighlightedCode/index.native.js +1 -1
- package/dist/jsx/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/jsx/componentColors.mjs +6 -4
- package/dist/jsx/componentColors.mjs.map +1 -1
- package/dist/jsx/componentColors.native.js +6 -4
- package/dist/jsx/componentColors.native.js.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.mjs +8 -22
- package/dist/jsx/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js +7 -22
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/jsx/feedback/NotifyHost.mjs +2 -1
- package/dist/jsx/feedback/NotifyHost.mjs.map +1 -1
- package/dist/jsx/feedback/NotifyHost.native.js +3 -2
- package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
- package/dist/jsx/feedback/copy.mjs +35 -4
- package/dist/jsx/feedback/copy.mjs.map +1 -1
- package/dist/jsx/feedback/copy.native.js +38 -4
- package/dist/jsx/feedback/copy.native.js.map +1 -1
- package/dist/jsx/feedback/index.mjs +2 -2
- package/dist/jsx/feedback/index.mjs.map +1 -1
- package/dist/jsx/feedback/index.native.js +1 -0
- package/dist/jsx/feedback/index.native.js.map +1 -1
- package/dist/jsx/feedback/notify.mjs +1 -0
- package/dist/jsx/feedback/notify.mjs.map +1 -1
- package/dist/jsx/feedback/notify.native.js +1 -0
- package/dist/jsx/feedback/notify.native.js.map +1 -1
- package/dist/jsx/feedback/route.mjs +3 -0
- package/dist/jsx/feedback/route.mjs.map +1 -1
- package/dist/jsx/feedback/route.native.js +3 -0
- package/dist/jsx/feedback/route.native.js.map +1 -1
- package/dist/jsx/feedback/store.mjs +6 -1
- package/dist/jsx/feedback/store.mjs.map +1 -1
- package/dist/jsx/feedback/store.native.js +8 -0
- package/dist/jsx/feedback/store.native.js.map +1 -1
- package/dist/jsx/icons/lucide.mjs +2 -2
- package/dist/jsx/icons/lucide.mjs.map +1 -1
- package/dist/jsx/icons/lucide.native.js +2 -1
- package/dist/jsx/images/Image/ImageFrame.mjs +4 -2
- package/dist/jsx/images/Image/ImageFrame.mjs.map +1 -1
- package/dist/jsx/images/Image/ImageFrame.native.js +4 -2
- package/dist/jsx/images/Image/ImageFrame.native.js.map +1 -1
- package/dist/jsx/layouts/AsyncBoundary.mjs +1 -2
- package/dist/jsx/layouts/AsyncBoundary.mjs.map +1 -1
- package/dist/jsx/layouts/AsyncBoundary.native.js +1 -2
- package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/jsx/layouts/EmptyState.mjs +7 -3
- package/dist/jsx/layouts/EmptyState.mjs.map +1 -1
- package/dist/jsx/layouts/EmptyState.native.js +10 -6
- package/dist/jsx/layouts/EmptyState.native.js.map +1 -1
- package/dist/jsx/layouts/PaneScaffold.mjs +97 -42
- package/dist/jsx/layouts/PaneScaffold.mjs.map +1 -1
- package/dist/jsx/layouts/PaneScaffold.native.js +97 -41
- package/dist/jsx/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.mjs +4 -4
- package/dist/jsx/layouts/attachments.mjs.map +1 -1
- package/dist/jsx/layouts/attachments.native.js +4 -4
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.mjs +1 -2
- package/dist/jsx/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.native.js +1 -2
- package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/jsx/layouts/index.mjs +2 -1
- package/dist/jsx/layouts/index.mjs.map +1 -1
- package/dist/jsx/layouts/index.native.js +2 -0
- package/dist/jsx/layouts/index.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +51 -10
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.js +52 -9
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/sidebar.mjs +2 -2
- package/dist/jsx/layouts/sidebar.mjs.map +1 -1
- package/dist/jsx/layouts/sidebar.native.js +2 -2
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/tags.mjs +6 -7
- package/dist/jsx/layouts/tags.mjs.map +1 -1
- package/dist/jsx/layouts/tags.native.js +6 -9
- package/dist/jsx/layouts/tags.native.js.map +1 -1
- package/dist/jsx/layouts/timeline.mjs +5 -5
- package/dist/jsx/layouts/timeline.mjs.map +1 -1
- package/dist/jsx/layouts/timeline.native.js +5 -5
- package/dist/jsx/layouts/timeline.native.js.map +1 -1
- package/dist/jsx/shared/useKeyboardInset.mjs +1 -19
- package/dist/jsx/shared/useKeyboardInset.mjs.map +1 -1
- package/dist/jsx/shared/useKeyboardInset.native.js +3 -3
- package/dist/jsx/shared/useKeyboardInset.native.js.map +1 -1
- package/dist/jsx/surfaces.mjs +1 -0
- package/dist/jsx/surfaces.mjs.map +1 -1
- package/dist/jsx/surfaces.native.js +1 -0
- package/dist/jsx/surfaces.native.js.map +1 -1
- package/dist/jsx/views/Calendar.mjs +11 -8
- package/dist/jsx/views/Calendar.mjs.map +1 -1
- package/dist/jsx/views/Calendar.native.js +11 -8
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/Dashboard.mjs +118 -25
- package/dist/jsx/views/Dashboard.mjs.map +1 -1
- package/dist/jsx/views/Dashboard.native.js +158 -52
- package/dist/jsx/views/Dashboard.native.js.map +1 -1
- package/dist/jsx/views/Gantt.mjs +379 -96
- package/dist/jsx/views/Gantt.mjs.map +1 -1
- package/dist/jsx/views/Gantt.native.js +446 -97
- package/dist/jsx/views/Gantt.native.js.map +1 -1
- package/dist/jsx/views/Kanban.mjs +2 -2
- package/dist/jsx/views/Kanban.mjs.map +1 -1
- package/dist/jsx/views/Kanban.native.js +2 -2
- package/dist/jsx/views/Kanban.native.js.map +1 -1
- package/dist/jsx/views/ReportBuilder.mjs +4 -4
- package/dist/jsx/views/ReportBuilder.mjs.map +1 -1
- package/dist/jsx/views/ReportBuilder.native.js +4 -4
- package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
- package/dist/jsx/views/TreeView.mjs +104 -7
- package/dist/jsx/views/TreeView.mjs.map +1 -1
- package/dist/jsx/views/TreeView.native.js +115 -6
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/dist/jsx/views/ganttMath.mjs +84 -3
- package/dist/jsx/views/ganttMath.mjs.map +1 -1
- package/dist/jsx/views/ganttMath.native.js +113 -3
- package/dist/jsx/views/ganttMath.native.js.map +1 -1
- package/dist/jsx/views/index.mjs +2 -2
- package/dist/jsx/views/index.mjs.map +1 -1
- package/dist/jsx/views/index.native.js +20 -1
- package/dist/jsx/views/index.native.js.map +1 -1
- package/dist/jsx/views/treeViewReveal.mjs +29 -0
- package/dist/jsx/views/treeViewReveal.mjs.map +1 -0
- package/dist/jsx/views/treeViewReveal.native.js +80 -0
- package/dist/jsx/views/treeViewReveal.native.js.map +1 -0
- package/package.json +11 -9
- package/src/Accordion/index.tsx +4 -6
- package/src/Button.tsx +10 -2
- package/src/Card.spec.tsx +76 -3
- package/src/Card.stories.tsx +1 -1
- package/src/Card.tsx +13 -1
- package/src/CardFooter.stories.tsx +3 -7
- package/src/CardFooter.tsx +3 -1
- package/src/CardHeader.stories.tsx +1 -3
- package/src/Chip/index.tsx +1 -1
- package/src/Collapsible.stories.tsx +2 -2
- package/src/ContextMenu/index.tsx +3 -3
- package/src/CopyField/CopyField.spec.tsx +66 -1
- package/src/CopyField/index.tsx +4 -3
- package/src/DropdownMenu/DropdownMenu.spec.tsx +112 -1
- package/src/DropdownMenu/DropdownMenu.stories.tsx +1 -3
- package/src/DropdownMenu/index.tsx +70 -9
- package/src/LinearGradient.stories.tsx +2 -2
- package/src/Meter/Meter.spec.tsx +71 -6
- package/src/Meter/Meter.stories.tsx +38 -0
- package/src/Meter/index.tsx +12 -6
- package/src/Meter/meter.ts +6 -1
- package/src/Pagination.tsx +2 -2
- package/src/Panel.stories.tsx +1 -1
- package/src/ProgressSteps/index.tsx +3 -3
- package/src/Quote/index.tsx +1 -3
- package/src/SortableList/SortableList.spec.tsx +3 -3
- package/src/Tabs/Tabs.spec.tsx +43 -3
- package/src/Tabs/Tabs.stories.tsx +10 -1
- package/src/Tabs/index.tsx +21 -15
- package/src/Toast/Toast.spec.tsx +176 -49
- package/src/Toast/index.tsx +73 -6
- package/src/TreeSelect/index.tsx +61 -1
- package/src/Unspaced.stories.tsx +2 -2
- package/src/VisuallyHidden.stories.tsx +2 -2
- package/src/actions/DestructiveAction.spec.tsx +19 -3
- package/src/actions/DestructiveAction.tsx +9 -14
- package/src/charts/Axis.tsx +6 -1
- package/src/charts/BarChart.tsx +82 -67
- package/src/charts/ChartDataView.spec.tsx +104 -0
- package/src/charts/ChartDataView.tsx +158 -0
- package/src/charts/ChartSurface.tsx +7 -2
- package/src/charts/Charts.stories.tsx +213 -9
- package/src/charts/LineChart.tsx +90 -75
- package/src/charts/PieChart.knobs.spec.tsx +25 -0
- package/src/charts/PieChart.tsx +51 -10
- package/src/charts/Sparkline.tsx +25 -3
- package/src/charts/accessibility.ts +8 -0
- package/src/charts/charts.spec.tsx +77 -3
- package/src/charts/index.ts +2 -0
- package/src/charts/math.spec.ts +19 -0
- package/src/charts/math.ts +36 -0
- package/src/charts/series.tsx +101 -21
- package/src/charts/svg.spec.ts +28 -0
- package/src/charts/svg.ts +56 -2
- package/src/code/CodeBlock/CodeBlock.copy.spec.tsx +23 -0
- package/src/code/CodeBlock/index.tsx +4 -3
- package/src/code/HighlightedCode/index.tsx +1 -1
- package/src/componentColors.ts +6 -4
- package/src/feedback/ConfirmDialog.nativeFocus.spec.tsx +52 -0
- package/src/feedback/ConfirmDialog.spec.tsx +20 -0
- package/src/feedback/ConfirmDialog.tsx +9 -15
- package/src/feedback/NotifyHost.tsx +11 -2
- package/src/feedback/copy.ts +36 -4
- package/src/feedback/index.ts +1 -0
- package/src/feedback/notify.spec.ts +15 -1
- package/src/feedback/notify.ts +1 -0
- package/src/feedback/route.ts +4 -0
- package/src/feedback/store.ts +7 -0
- package/src/icons/lucide.ts +1 -1
- package/src/images/Image/ImageFrame.tsx +2 -2
- package/src/images/SvgUri/index.native.ts +11 -3
- package/src/layouts/AsyncBoundary.tsx +1 -2
- package/src/layouts/EmptyState.spec.tsx +58 -1
- package/src/layouts/EmptyState.stories.tsx +2 -2
- package/src/layouts/EmptyState.tsx +11 -7
- package/src/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.tsx +3 -3
- package/src/layouts/Page.weight.spec.tsx +75 -0
- package/src/layouts/PageHeader.stories.tsx +4 -4
- package/src/layouts/PageTemplates.stories.tsx +2 -2
- package/src/layouts/PaneScaffold.spec.tsx +144 -4
- package/src/layouts/PaneScaffold.stories.tsx +61 -10
- package/src/layouts/PaneScaffold.tsx +156 -58
- package/src/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.tsx +3 -3
- package/src/layouts/ScreenToolbar.stories.tsx +6 -23
- package/src/layouts/attachments.tsx +4 -4
- package/src/layouts/breadcrumbs.tsx +1 -2
- package/src/layouts/index.tsx +11 -0
- package/src/layouts/layouts.spec.tsx +51 -0
- package/src/layouts/page.designLaw.spec.tsx +25 -0
- package/src/layouts/page.tsx +48 -11
- package/src/layouts/sidebar.tsx +2 -2
- package/src/layouts/tags-trigger.spec.tsx +32 -0
- package/src/layouts/tags.tsx +6 -9
- package/src/layouts/timeline.tsx +5 -5
- package/src/shared/useKeyboardInset.native.ts +43 -0
- package/src/shared/useKeyboardInset.ts +2 -41
- package/src/surfaces.spec.tsx +97 -3
- package/src/surfaces.tsx +4 -2
- package/src/tamagui.spec.ts +63 -0
- package/src/textAccentSecondary.spec.tsx +187 -0
- package/src/views/Calendar.tsx +9 -8
- package/src/views/Dashboard.stories.tsx +38 -1
- package/src/views/Dashboard.tsx +132 -29
- package/src/views/Gantt.scroll.spec.tsx +120 -0
- package/src/views/Gantt.spec.tsx +376 -0
- package/src/views/Gantt.stories.tsx +75 -2
- package/src/views/Gantt.tsx +567 -99
- package/src/views/Kanban.native.tsx +2 -2
- package/src/views/Kanban.spec.tsx +11 -0
- package/src/views/Kanban.tsx +2 -2
- package/src/views/ReportBuilder.tsx +4 -4
- package/src/views/TreeView.reveal.spec.tsx +167 -0
- package/src/views/TreeView.reveal.stories.tsx +115 -0
- package/src/views/TreeView.scroll.spec.tsx +196 -0
- package/src/views/TreeView.spec.tsx +1 -1
- package/src/views/TreeView.tsx +159 -16
- package/src/views/ganttMath.ts +142 -4
- package/src/views/index.ts +44 -1
- package/src/views/treeViewReveal.spec.ts +83 -0
- package/src/views/treeViewReveal.ts +45 -0
- package/src/views/views.spec.tsx +52 -12
- package/types/Accordion/index.d.ts.map +1 -1
- package/types/Button.d.ts +12 -2
- package/types/Button.d.ts.map +1 -1
- package/types/Card.d.ts.map +1 -1
- package/types/CardFooter.d.ts +2 -1
- package/types/CardFooter.d.ts.map +1 -1
- package/types/CopyField/index.d.ts.map +1 -1
- package/types/DropdownMenu/index.d.ts +22 -0
- package/types/DropdownMenu/index.d.ts.map +1 -1
- package/types/Meter/index.d.ts.map +1 -1
- package/types/Meter/meter.d.ts +5 -1
- package/types/Meter/meter.d.ts.map +1 -1
- package/types/Quote/index.d.ts.map +1 -1
- package/types/Tabs/index.d.ts +1 -1
- package/types/Tabs/index.d.ts.map +1 -1
- package/types/Toast/index.d.ts +16 -0
- package/types/Toast/index.d.ts.map +1 -1
- package/types/TreeSelect/index.d.ts +9 -1
- package/types/TreeSelect/index.d.ts.map +1 -1
- package/types/actions/DestructiveAction.d.ts.map +1 -1
- package/types/charts/Axis.d.ts.map +1 -1
- package/types/charts/BarChart.d.ts.map +1 -1
- package/types/charts/ChartDataView.d.ts +22 -0
- package/types/charts/ChartDataView.d.ts.map +1 -0
- package/types/charts/ChartSurface.d.ts +4 -1
- package/types/charts/ChartSurface.d.ts.map +1 -1
- package/types/charts/LineChart.d.ts.map +1 -1
- package/types/charts/PieChart.d.ts +1 -1
- package/types/charts/PieChart.d.ts.map +1 -1
- package/types/charts/Sparkline.d.ts +3 -1
- package/types/charts/Sparkline.d.ts.map +1 -1
- package/types/charts/accessibility.d.ts +3 -0
- package/types/charts/accessibility.d.ts.map +1 -1
- package/types/charts/index.d.ts +1 -0
- package/types/charts/index.d.ts.map +1 -1
- package/types/charts/math.d.ts +12 -0
- package/types/charts/math.d.ts.map +1 -1
- package/types/charts/series.d.ts +1 -1
- package/types/charts/series.d.ts.map +1 -1
- package/types/charts/svg.d.ts +18 -2
- package/types/charts/svg.d.ts.map +1 -1
- package/types/code/CodeBlock/index.d.ts.map +1 -1
- package/types/componentColors.d.ts +1 -4
- package/types/componentColors.d.ts.map +1 -1
- package/types/feedback/ConfirmDialog.d.ts.map +1 -1
- package/types/feedback/NotifyHost.d.ts +3 -1
- package/types/feedback/NotifyHost.d.ts.map +1 -1
- package/types/feedback/copy.d.ts +12 -2
- package/types/feedback/copy.d.ts.map +1 -1
- package/types/feedback/index.d.ts +1 -1
- package/types/feedback/index.d.ts.map +1 -1
- package/types/feedback/notify.d.ts.map +1 -1
- package/types/feedback/route.d.ts +3 -0
- package/types/feedback/route.d.ts.map +1 -1
- package/types/feedback/store.d.ts +2 -0
- package/types/feedback/store.d.ts.map +1 -1
- package/types/icons/lucide.d.ts +1 -1
- package/types/icons/lucide.d.ts.map +1 -1
- package/types/images/Image/ImageFrame.d.ts.map +1 -1
- package/types/images/SvgUri/index.native.d.ts +4 -3
- package/types/images/SvgUri/index.native.d.ts.map +1 -1
- package/types/layouts/AsyncBoundary.d.ts.map +1 -1
- package/types/layouts/EmptyState.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/breadcrumbs.d.ts.map +1 -1
- package/types/layouts/index.d.ts +1 -0
- package/types/layouts/index.d.ts.map +1 -1
- package/types/layouts/page.d.ts +10 -5
- package/types/layouts/page.d.ts.map +1 -1
- package/types/layouts/tags.d.ts.map +1 -1
- package/types/shared/useKeyboardInset.d.ts +1 -14
- package/types/shared/useKeyboardInset.d.ts.map +1 -1
- package/types/shared/useKeyboardInset.native.d.ts +16 -0
- package/types/shared/useKeyboardInset.native.d.ts.map +1 -0
- package/types/surfaces.d.ts.map +1 -1
- package/types/views/Calendar.d.ts.map +1 -1
- package/types/views/Dashboard.d.ts +7 -3
- package/types/views/Dashboard.d.ts.map +1 -1
- package/types/views/Gantt.d.ts +132 -13
- package/types/views/Gantt.d.ts.map +1 -1
- package/types/views/TreeView.d.ts +10 -1
- package/types/views/TreeView.d.ts.map +1 -1
- package/types/views/ganttMath.d.ts +73 -0
- package/types/views/ganttMath.d.ts.map +1 -1
- package/types/views/index.d.ts +2 -2
- package/types/views/index.d.ts.map +1 -1
- package/types/views/treeViewReveal.d.ts +11 -0
- package/types/views/treeViewReveal.d.ts.map +1 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
2
|
+
import { cleanup, fireEvent, screen, waitFor } from "@testing-library/react";
|
|
3
|
+
import { afterEach, expect, it, vi } from "vitest";
|
|
4
|
+
import { XStack, YStack } from "tamagui";
|
|
5
|
+
import { ChartDataView } from "./ChartDataView";
|
|
6
|
+
import { Sparkline } from "./Sparkline";
|
|
7
|
+
import { PieChart } from "./PieChart";
|
|
8
|
+
import { ChartCard, KPICard } from "../views/Dashboard";
|
|
9
|
+
|
|
10
|
+
const data = Array.from({ length: 13 }, (_, index) => ({
|
|
11
|
+
label: `Region ${index + 1}`,
|
|
12
|
+
value: index + 1,
|
|
13
|
+
}));
|
|
14
|
+
afterEach(cleanup);
|
|
15
|
+
|
|
16
|
+
it("opens the complete formatted dataset without expanding the concise chart name", async () => {
|
|
17
|
+
renderWithProviders(
|
|
18
|
+
<ChartDataView data={data} title="Revenue" valueFormatter={(value) => `USD ${value}`}>
|
|
19
|
+
{({ action, data: series, valueFormatter }) => (
|
|
20
|
+
<YStack>
|
|
21
|
+
<XStack>{action}</XStack>
|
|
22
|
+
<Sparkline
|
|
23
|
+
data={series}
|
|
24
|
+
label="Revenue trend"
|
|
25
|
+
width={300}
|
|
26
|
+
valueFormatter={valueFormatter}
|
|
27
|
+
/>
|
|
28
|
+
</YStack>
|
|
29
|
+
)}
|
|
30
|
+
</ChartDataView>,
|
|
31
|
+
);
|
|
32
|
+
const image = document.querySelector("svg")!;
|
|
33
|
+
expect(image.getAttribute("aria-label")).toBe("Revenue trend");
|
|
34
|
+
expect(image.getAttribute("height")).toBe("36");
|
|
35
|
+
expect(image.querySelector("button")).toBeNull();
|
|
36
|
+
expect(screen.queryByText("USD 13")).toBeNull();
|
|
37
|
+
fireEvent.click(screen.getByRole("button", { name: "View data for Revenue" }));
|
|
38
|
+
expect(await screen.findByText("USD 13")).toBeInTheDocument();
|
|
39
|
+
expect(document.querySelectorAll("[data-mpo-chart-data-row]")).toHaveLength(13);
|
|
40
|
+
expect(screen.getByText("Region 13")).toBeInTheDocument();
|
|
41
|
+
fireEvent.click(screen.getByRole("button", { name: "Close" }));
|
|
42
|
+
await waitFor(() => expect(screen.queryAllByRole("dialog")).toHaveLength(0));
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it("normalizes bare sparkline values through the same complete channel", async () => {
|
|
46
|
+
renderWithProviders(
|
|
47
|
+
<ChartDataView data={[40, 50, 60]} title="Activity">
|
|
48
|
+
{({ action, data: series, valueFormatter }) => (
|
|
49
|
+
<YStack>
|
|
50
|
+
{action}
|
|
51
|
+
<Sparkline data={series} width={300} />
|
|
52
|
+
</YStack>
|
|
53
|
+
)}
|
|
54
|
+
</ChartDataView>,
|
|
55
|
+
);
|
|
56
|
+
fireEvent.click(screen.getByRole("button", { name: "View data for Activity" }));
|
|
57
|
+
expect(await screen.findByText("60")).toBeInTheDocument();
|
|
58
|
+
expect(document.querySelectorAll("[data-mpo-chart-data-row]")).toHaveLength(3);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it("supplies a complete data action when the pie legend is hidden", async () => {
|
|
62
|
+
renderWithProviders(<PieChart data={data} title="Revenue" showLegend={false} />);
|
|
63
|
+
fireEvent.click(screen.getByRole("button", { name: "View data for Revenue" }));
|
|
64
|
+
expect(await screen.findByText("Region 13")).toBeInTheDocument();
|
|
65
|
+
expect(document.querySelectorAll("[data-mpo-chart-data-row]")).toHaveLength(13);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
it("keeps a visible pie legend complete without a dangling data-action association", () => {
|
|
69
|
+
renderWithProviders(
|
|
70
|
+
<ChartCard config={{ id: "revenue", type: "pie", title: "Revenue", data }} />,
|
|
71
|
+
);
|
|
72
|
+
expect(screen.getByText("Region 13")).toBeInTheDocument();
|
|
73
|
+
expect(screen.queryByRole("button", { name: "View data for Revenue" })).toBeNull();
|
|
74
|
+
expect(document.querySelector("svg")!.getAttribute("aria-describedby")).toBeNull();
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it("keeps a consumer metric press override separate from the data action", async () => {
|
|
78
|
+
const configured = vi.fn();
|
|
79
|
+
const consumer = vi.fn();
|
|
80
|
+
renderWithProviders(
|
|
81
|
+
<KPICard
|
|
82
|
+
config={{
|
|
83
|
+
id: "metric",
|
|
84
|
+
title: "Revenue",
|
|
85
|
+
value: 20,
|
|
86
|
+
sparkline: [10, 20],
|
|
87
|
+
onClick: configured,
|
|
88
|
+
}}
|
|
89
|
+
onPress={consumer}
|
|
90
|
+
/>,
|
|
91
|
+
);
|
|
92
|
+
fireEvent.click(screen.getByRole("button", { name: "View data for Revenue" }));
|
|
93
|
+
expect(consumer).not.toHaveBeenCalled();
|
|
94
|
+
expect(configured).not.toHaveBeenCalled();
|
|
95
|
+
expect(await screen.findByText("Revenue: data")).toBeInTheDocument();
|
|
96
|
+
fireEvent.click(screen.getByRole("button", { name: "Close" }));
|
|
97
|
+
await waitFor(() => expect(screen.queryAllByRole("dialog")).toHaveLength(0));
|
|
98
|
+
const navigation = document.querySelector('[data-mpo-kpi-navigation="metric"]')!;
|
|
99
|
+
fireEvent.click(navigation);
|
|
100
|
+
fireEvent.keyDown(navigation, { key: "Enter" });
|
|
101
|
+
fireEvent.keyDown(navigation, { key: " ", repeat: true });
|
|
102
|
+
expect(consumer).toHaveBeenCalledTimes(2);
|
|
103
|
+
expect(configured).not.toHaveBeenCalled();
|
|
104
|
+
});
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Button } from "@multiplatform.one/forms";
|
|
2
|
+
import { isWeb } from "@multiplatform.one/platform";
|
|
3
|
+
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
4
|
+
import { createContext, useContext, useId, useState, type ReactNode } from "react";
|
|
5
|
+
import { Dialog, Paragraph, ScrollView, XStack, YStack } from "tamagui";
|
|
6
|
+
import { sectionHeading } from "../componentColors";
|
|
7
|
+
import { useTranslation } from "../shared/i18n";
|
|
8
|
+
import { DialogContent, DialogOverlay } from "../surfaces";
|
|
9
|
+
import { describeDatum } from "./accessibility";
|
|
10
|
+
import { formatChartValue } from "./math";
|
|
11
|
+
import { chartWebProps } from "./svg";
|
|
12
|
+
import type { ChartDatum } from "./types";
|
|
13
|
+
|
|
14
|
+
const ChartDataContext = createContext<{ id: string; triggerId: string } | null>(null);
|
|
15
|
+
|
|
16
|
+
export interface ChartDataViewProps {
|
|
17
|
+
data: Array<number | ChartDatum>;
|
|
18
|
+
title?: string;
|
|
19
|
+
valueFormatter?: (value: number) => string;
|
|
20
|
+
/** Place the action in the chart's existing header, outside its drawing. */
|
|
21
|
+
children: (view: {
|
|
22
|
+
action: ReactNode;
|
|
23
|
+
data: ChartDatum[];
|
|
24
|
+
valueFormatter: (value: number) => string;
|
|
25
|
+
}) => ReactNode;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** One complete, reachable data view. The ordinary chart keeps its short name. */
|
|
29
|
+
export function ChartDataView({ data, title, valueFormatter, children }: ChartDataViewProps) {
|
|
30
|
+
const { t } = useTranslation();
|
|
31
|
+
const { knobProps } = useResolvedKnobs();
|
|
32
|
+
const { knobProps: datumKnobs } = useResolvedKnobs({ compact: true });
|
|
33
|
+
const [open, setOpen] = useState(false);
|
|
34
|
+
const id = `mpo-chart-data-${useId().replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
35
|
+
const triggerId = `${id}-trigger`;
|
|
36
|
+
const normalized = data.map((datum, index) =>
|
|
37
|
+
typeof datum === "number" ? { label: String(index + 1), value: datum } : datum,
|
|
38
|
+
);
|
|
39
|
+
const format = valueFormatter ?? formatChartValue;
|
|
40
|
+
const actionLabel = title ? `${t("View data for")} ${title}` : t("View chart data");
|
|
41
|
+
const action = (
|
|
42
|
+
<Dialog.Trigger asChild>
|
|
43
|
+
<Button
|
|
44
|
+
compact
|
|
45
|
+
id={triggerId}
|
|
46
|
+
{...(isWeb ? { "aria-label": actionLabel } : { accessibilityLabel: actionLabel })}
|
|
47
|
+
{...chartWebProps({ "data-mpo-chart-data-trigger": id })}
|
|
48
|
+
>
|
|
49
|
+
{t("View data")}
|
|
50
|
+
</Button>
|
|
51
|
+
</Dialog.Trigger>
|
|
52
|
+
);
|
|
53
|
+
return (
|
|
54
|
+
<ChartDataContext.Provider value={{ id, triggerId }}>
|
|
55
|
+
<Dialog modal open={open} onOpenChange={setOpen}>
|
|
56
|
+
{children({ action, data: normalized, valueFormatter: format })}
|
|
57
|
+
<Dialog.Portal>
|
|
58
|
+
<DialogOverlay key="overlay" />
|
|
59
|
+
<DialogContent
|
|
60
|
+
key="content"
|
|
61
|
+
width="90%"
|
|
62
|
+
maxWidth={480}
|
|
63
|
+
maxHeight="80%"
|
|
64
|
+
{...chartWebProps({ "data-mpo-chart-data-panel": id })}
|
|
65
|
+
>
|
|
66
|
+
<Dialog.Title {...knobProps.heading} {...sectionHeading}>
|
|
67
|
+
{title ? `${title}: ${t("data")}` : t("Chart data")}
|
|
68
|
+
</Dialog.Title>
|
|
69
|
+
<Dialog.Description
|
|
70
|
+
{...knobProps.body}
|
|
71
|
+
>{`${normalized.length} ${t("data points")}`}</Dialog.Description>
|
|
72
|
+
<ScrollView flexShrink={1} minHeight={0}>
|
|
73
|
+
<YStack {...knobProps.gap}>
|
|
74
|
+
{normalized.map((datum, index) => (
|
|
75
|
+
<XStack
|
|
76
|
+
key={index}
|
|
77
|
+
alignItems="flex-start"
|
|
78
|
+
flexWrap="wrap"
|
|
79
|
+
{...datumKnobs.gap}
|
|
80
|
+
{...chartWebProps({ "data-mpo-chart-data-row": String(index) })}
|
|
81
|
+
{...(!isWeb
|
|
82
|
+
? {
|
|
83
|
+
accessible: true,
|
|
84
|
+
accessibilityLabel: describeDatum({ datum, formatValue: format }),
|
|
85
|
+
}
|
|
86
|
+
: {})}
|
|
87
|
+
>
|
|
88
|
+
<Paragraph
|
|
89
|
+
flexBasis="50%"
|
|
90
|
+
flexGrow={1}
|
|
91
|
+
flexShrink={1}
|
|
92
|
+
minWidth={0}
|
|
93
|
+
{...knobProps.body}
|
|
94
|
+
{...chartWebProps({ "data-mpo-chart-data-label": "true" })}
|
|
95
|
+
>
|
|
96
|
+
{datum.label}
|
|
97
|
+
</Paragraph>
|
|
98
|
+
<Paragraph
|
|
99
|
+
flexShrink={1}
|
|
100
|
+
maxWidth="100%"
|
|
101
|
+
{...knobProps.body}
|
|
102
|
+
{...chartWebProps({ "data-mpo-chart-data-value": "true" })}
|
|
103
|
+
>
|
|
104
|
+
{format(datum.value)}
|
|
105
|
+
</Paragraph>
|
|
106
|
+
</XStack>
|
|
107
|
+
))}
|
|
108
|
+
</YStack>
|
|
109
|
+
</ScrollView>
|
|
110
|
+
<XStack justifyContent="flex-end">
|
|
111
|
+
<Dialog.Close asChild aria-label={t("Close")}>
|
|
112
|
+
<Button
|
|
113
|
+
aria-label={t("Close")}
|
|
114
|
+
{...(!isWeb ? { accessibilityLabel: t("Close") } : {})}
|
|
115
|
+
{...chartWebProps({ "data-mpo-chart-data-close": id })}
|
|
116
|
+
>
|
|
117
|
+
{t("Close")}
|
|
118
|
+
</Button>
|
|
119
|
+
</Dialog.Close>
|
|
120
|
+
</XStack>
|
|
121
|
+
</DialogContent>
|
|
122
|
+
</Dialog.Portal>
|
|
123
|
+
</Dialog>
|
|
124
|
+
</ChartDataContext.Provider>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** Shared chart implementations join a composed header instead of adding a second action. */
|
|
129
|
+
export function ChartDataFrame({
|
|
130
|
+
data,
|
|
131
|
+
title,
|
|
132
|
+
valueFormatter,
|
|
133
|
+
width,
|
|
134
|
+
children,
|
|
135
|
+
}: Omit<ChartDataViewProps, "children"> & { children: ReactNode; width?: number }) {
|
|
136
|
+
const inherited = useContext(ChartDataContext);
|
|
137
|
+
const { knobProps } = useResolvedKnobs();
|
|
138
|
+
if (inherited) return children;
|
|
139
|
+
return (
|
|
140
|
+
<ChartDataView data={data} title={title} valueFormatter={valueFormatter}>
|
|
141
|
+
{({ action }) => (
|
|
142
|
+
<YStack minWidth={0} width={width ?? "100%"} maxWidth="100%" {...knobProps.gap}>
|
|
143
|
+
{children}
|
|
144
|
+
<XStack justifyContent="flex-end">{action}</XStack>
|
|
145
|
+
</YStack>
|
|
146
|
+
)}
|
|
147
|
+
</ChartDataView>
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function useChartDataViewProps(): Record<string, unknown> {
|
|
152
|
+
const context = useContext(ChartDataContext);
|
|
153
|
+
if (!context) return {};
|
|
154
|
+
return chartWebProps({
|
|
155
|
+
"data-mpo-chart-data-view": context.id,
|
|
156
|
+
"aria-describedby": context.triggerId,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useCallback, useState, type ReactNode } from "react";
|
|
2
2
|
import type { LayoutChangeEvent } from "react-native";
|
|
3
3
|
import { YStack, type YStackProps } from "tamagui";
|
|
4
|
-
import { Svg, chartRootA11yProps } from "./svg";
|
|
4
|
+
import { Svg, chartRootA11yProps, type ChartProofDeclaration } from "./svg";
|
|
5
|
+
import { useChartDataViewProps } from "./ChartDataView";
|
|
5
6
|
import type { ChartSize } from "./types";
|
|
6
7
|
import { useChartTheme } from "./useChartTheme";
|
|
7
8
|
|
|
@@ -11,6 +12,8 @@ export interface ChartSurfaceProps extends Omit<YStackProps, "children" | "width
|
|
|
11
12
|
* as `role="img"` + label. Build it with `describeChart()`.
|
|
12
13
|
*/
|
|
13
14
|
label: string;
|
|
15
|
+
/** Explicit chart classification; low-level custom surfaces remain unclassified. */
|
|
16
|
+
proof?: ChartProofDeclaration;
|
|
14
17
|
/** Drawing height in px (default 200). */
|
|
15
18
|
height?: number;
|
|
16
19
|
/**
|
|
@@ -37,11 +40,13 @@ export interface ChartSurfaceProps extends Omit<YStackProps, "children" | "width
|
|
|
37
40
|
*/
|
|
38
41
|
export function ChartSurface({
|
|
39
42
|
label,
|
|
43
|
+
proof,
|
|
40
44
|
height = 200,
|
|
41
45
|
width: widthProp,
|
|
42
46
|
children,
|
|
43
47
|
...stackProps
|
|
44
48
|
}: ChartSurfaceProps) {
|
|
49
|
+
const dataViewProps = useChartDataViewProps();
|
|
45
50
|
const { transition, animationEnabled } = useChartTheme();
|
|
46
51
|
const [measuredWidth, setMeasuredWidth] = useState(0);
|
|
47
52
|
const width = widthProp ?? measuredWidth;
|
|
@@ -61,7 +66,7 @@ export function ChartSurface({
|
|
|
61
66
|
{...stackProps}
|
|
62
67
|
>
|
|
63
68
|
{width > 0 ? (
|
|
64
|
-
<Svg width={width} height={height} {...chartRootA11yProps(label)}>
|
|
69
|
+
<Svg width={width} height={height} {...chartRootA11yProps(label, proof)} {...dataViewProps}>
|
|
65
70
|
{children({ width, height })}
|
|
66
71
|
</Svg>
|
|
67
72
|
) : null}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { KPICard } from "../views/Dashboard";
|
|
1
3
|
import { action } from "@multiplatform.one/storybook";
|
|
2
4
|
import { Preset } from "@multiplatform.one/theme";
|
|
3
5
|
import type { Meta } from "@storybook/react-native-web-vite";
|
|
4
6
|
import { Text, Theme, XStack, YStack } from "tamagui";
|
|
5
7
|
import { Card } from "../surfaces";
|
|
6
8
|
import { AreaChart, LineChart } from "./LineChart";
|
|
9
|
+
import { ChartDataView } from "./ChartDataView";
|
|
7
10
|
import { BarChart } from "./BarChart";
|
|
8
11
|
import { PieChart } from "./PieChart";
|
|
12
|
+
import { chartWebProps } from "./svg";
|
|
9
13
|
import { Sparkline } from "./Sparkline";
|
|
10
14
|
import type { ChartDatum } from "./types";
|
|
11
15
|
|
|
@@ -90,18 +94,71 @@ export const Donut = {
|
|
|
90
94
|
),
|
|
91
95
|
};
|
|
92
96
|
|
|
97
|
+
export const GapBoundaries = {
|
|
98
|
+
render: () => (
|
|
99
|
+
<YStack maxWidth={560} gap="$4">
|
|
100
|
+
<PieChart data={categories} height={160} title="Pie boundary gaps" />
|
|
101
|
+
<PieChart data={categories} height={160} donut title="Donut boundary gaps" />
|
|
102
|
+
</YStack>
|
|
103
|
+
),
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const GapThinSlices = {
|
|
107
|
+
render: () => (
|
|
108
|
+
<YStack maxWidth={560} gap="$4">
|
|
109
|
+
<PieChart
|
|
110
|
+
data={[
|
|
111
|
+
{ label: "Large", value: 9999 },
|
|
112
|
+
{ label: "Small", value: 1 },
|
|
113
|
+
]}
|
|
114
|
+
title="Thin positive slice preserved"
|
|
115
|
+
/>
|
|
116
|
+
<PieChart
|
|
117
|
+
data={[
|
|
118
|
+
{ label: "Large", value: 9999 },
|
|
119
|
+
{ label: "Small", value: 1 },
|
|
120
|
+
]}
|
|
121
|
+
donut
|
|
122
|
+
title="Thin positive donut preserved"
|
|
123
|
+
/>
|
|
124
|
+
</YStack>
|
|
125
|
+
),
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const GapSingleDatum = {
|
|
129
|
+
render: () => <PieChart data={[{ label: "Only", value: 100 }]} title="Single full circle" />,
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export const GapExplicitZero = {
|
|
133
|
+
render: () => <PieChart data={categories} padAngle={0} title="Explicit touching slices" />,
|
|
134
|
+
};
|
|
135
|
+
|
|
93
136
|
export const SparklineRow = {
|
|
94
137
|
name: "Sparkline",
|
|
95
138
|
render: () => (
|
|
96
139
|
<XStack maxWidth={560} gap="$4" alignItems="center">
|
|
97
|
-
<
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
140
|
+
<ChartDataView data={trend} title="Weekly active">
|
|
141
|
+
{({ action, data }) => (
|
|
142
|
+
<YStack flex={1} gap="$2">
|
|
143
|
+
<XStack alignItems="center" justifyContent="space-between">
|
|
144
|
+
<Text fontSize="$2">Weekly active</Text>
|
|
145
|
+
{action}
|
|
146
|
+
</XStack>
|
|
147
|
+
<Sparkline data={data} title="Weekly active" />
|
|
148
|
+
</YStack>
|
|
149
|
+
)}
|
|
150
|
+
</ChartDataView>
|
|
151
|
+
<ChartDataView data={trend} title="No area">
|
|
152
|
+
{({ action, data }) => (
|
|
153
|
+
<YStack flex={1} gap="$2">
|
|
154
|
+
<XStack alignItems="center" justifyContent="space-between">
|
|
155
|
+
<Text fontSize="$2">No area</Text>
|
|
156
|
+
{action}
|
|
157
|
+
</XStack>
|
|
158
|
+
<Sparkline data={data} showArea={false} title="Weekly active" />
|
|
159
|
+
</YStack>
|
|
160
|
+
)}
|
|
161
|
+
</ChartDataView>
|
|
105
162
|
</XStack>
|
|
106
163
|
),
|
|
107
164
|
};
|
|
@@ -181,7 +238,154 @@ export const NarrowViewport = {
|
|
|
181
238
|
<BarChart data={monthly} title="Revenue" />
|
|
182
239
|
<LineChart data={monthly} title="Revenue" />
|
|
183
240
|
<PieChart data={categories} donut title="Tickets by status" />
|
|
184
|
-
<
|
|
241
|
+
<ChartDataView data={trend} title="Weekly active">
|
|
242
|
+
{({ action, data }) => (
|
|
243
|
+
<YStack gap="$2">
|
|
244
|
+
<XStack justifyContent="space-between">
|
|
245
|
+
<Text>Weekly active</Text>
|
|
246
|
+
{action}
|
|
247
|
+
</XStack>
|
|
248
|
+
<Sparkline data={data} title="Weekly active" />
|
|
249
|
+
</YStack>
|
|
250
|
+
)}
|
|
251
|
+
</ChartDataView>
|
|
185
252
|
</YStack>
|
|
186
253
|
),
|
|
187
254
|
};
|
|
255
|
+
|
|
256
|
+
export const CompleteDataView = {
|
|
257
|
+
render: () => (
|
|
258
|
+
<YStack width="100%" maxWidth={560} gap="$4">
|
|
259
|
+
<BarChart
|
|
260
|
+
data={Array.from({ length: 13 }, (_, index) => ({
|
|
261
|
+
label: `Region ${index + 1}`,
|
|
262
|
+
value: (index + 1) * 125,
|
|
263
|
+
}))}
|
|
264
|
+
title="Regional revenue"
|
|
265
|
+
label="Regional revenue overview"
|
|
266
|
+
/>
|
|
267
|
+
<ChartDataView
|
|
268
|
+
data={Array.from({ length: 80 }, (_, index) => ({
|
|
269
|
+
label: `Day ${index + 1}`,
|
|
270
|
+
value: index * 3 + 1,
|
|
271
|
+
}))}
|
|
272
|
+
title="Daily activity"
|
|
273
|
+
>
|
|
274
|
+
{({ action, data }) => (
|
|
275
|
+
<YStack gap="$2">
|
|
276
|
+
<XStack alignItems="center" justifyContent="space-between">
|
|
277
|
+
<Text>Daily activity</Text>
|
|
278
|
+
{action}
|
|
279
|
+
</XStack>
|
|
280
|
+
<Sparkline data={data} title="Daily activity" showArea={false} />
|
|
281
|
+
</YStack>
|
|
282
|
+
)}
|
|
283
|
+
</ChartDataView>
|
|
284
|
+
</YStack>
|
|
285
|
+
),
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
function MetricDataHarness({
|
|
289
|
+
longTitle = false,
|
|
290
|
+
consumerPress = false,
|
|
291
|
+
}: {
|
|
292
|
+
longTitle?: boolean;
|
|
293
|
+
consumerPress?: boolean;
|
|
294
|
+
}) {
|
|
295
|
+
const [navigationCount, setNavigationCount] = useState(0);
|
|
296
|
+
const [consumerCount, setConsumerCount] = useState(0);
|
|
297
|
+
return (
|
|
298
|
+
<YStack width="100%" maxWidth={360} gap="$3">
|
|
299
|
+
<KPICard
|
|
300
|
+
config={{
|
|
301
|
+
id: "revenue",
|
|
302
|
+
title: longTitle ? "Revenue from annual enterprise subscriptions" : "Revenue",
|
|
303
|
+
value: 240000,
|
|
304
|
+
format: "currency",
|
|
305
|
+
sparkline: trend,
|
|
306
|
+
onClick: () => setNavigationCount((count) => count + 1),
|
|
307
|
+
}}
|
|
308
|
+
{...(consumerPress ? { onPress: () => setConsumerCount((count) => count + 1) } : {})}
|
|
309
|
+
/>
|
|
310
|
+
<Text>{`Metric navigation count: ${navigationCount}`}</Text>
|
|
311
|
+
{consumerPress ? <Text>{`Consumer navigation count: ${consumerCount}`}</Text> : null}
|
|
312
|
+
</YStack>
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
export const MetricDataActions = { render: () => <MetricDataHarness /> };
|
|
316
|
+
|
|
317
|
+
export const GapPatternBackdrop = {
|
|
318
|
+
render: () => (
|
|
319
|
+
<YStack width="100%" maxWidth={560} gap="$4">
|
|
320
|
+
{[false, true].map((donut) => (
|
|
321
|
+
<YStack
|
|
322
|
+
key={String(donut)}
|
|
323
|
+
position="relative"
|
|
324
|
+
{...chartWebProps({ "data-mpo-chart-backdrop": "patterned" })}
|
|
325
|
+
>
|
|
326
|
+
<YStack
|
|
327
|
+
position="absolute"
|
|
328
|
+
top={0}
|
|
329
|
+
left={0}
|
|
330
|
+
width={160}
|
|
331
|
+
height={160}
|
|
332
|
+
pointerEvents="none"
|
|
333
|
+
>
|
|
334
|
+
{Array.from({ length: 10 }, (_, index) => (
|
|
335
|
+
<YStack key={index} height={16} backgroundColor={index % 2 ? "$color5" : "$color2"} />
|
|
336
|
+
))}
|
|
337
|
+
</YStack>
|
|
338
|
+
<PieChart
|
|
339
|
+
data={categories}
|
|
340
|
+
height={160}
|
|
341
|
+
donut={donut}
|
|
342
|
+
title={donut ? "Donut on striped backdrop" : "Pie on striped backdrop"}
|
|
343
|
+
/>
|
|
344
|
+
</YStack>
|
|
345
|
+
))}
|
|
346
|
+
</YStack>
|
|
347
|
+
),
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
export const MetricDataLongTitle = { render: () => <MetricDataHarness longTitle /> };
|
|
351
|
+
export const MetricDataPressOverride = { render: () => <MetricDataHarness consumerPress /> };
|
|
352
|
+
|
|
353
|
+
export const FixedWidthData = {
|
|
354
|
+
render: () => {
|
|
355
|
+
const data = [
|
|
356
|
+
{
|
|
357
|
+
label: "International enterprise subscriptions for the previous fiscal year",
|
|
358
|
+
value: 12345678901234,
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
label: "Domestic enterprise subscriptions for the current fiscal year",
|
|
362
|
+
value: 23456789012345,
|
|
363
|
+
},
|
|
364
|
+
{ label: "Unbroken formatted value", value: 1 },
|
|
365
|
+
];
|
|
366
|
+
const valueFormatter = (value: number) =>
|
|
367
|
+
value === 1 ? "1".repeat(120) : `${value.toFixed(2)} USD per reporting quarter`;
|
|
368
|
+
return (
|
|
369
|
+
<YStack width="100%" maxWidth={900} gap="$4">
|
|
370
|
+
<BarChart
|
|
371
|
+
width={300}
|
|
372
|
+
data={data}
|
|
373
|
+
title="Fixed width revenue"
|
|
374
|
+
label="Revenue bars"
|
|
375
|
+
valueFormatter={valueFormatter}
|
|
376
|
+
showXAxis={false}
|
|
377
|
+
showYAxis={false}
|
|
378
|
+
/>
|
|
379
|
+
<LineChart
|
|
380
|
+
width={300}
|
|
381
|
+
data={data}
|
|
382
|
+
title="Fixed width trend"
|
|
383
|
+
label="Revenue trend"
|
|
384
|
+
valueFormatter={valueFormatter}
|
|
385
|
+
showXAxis={false}
|
|
386
|
+
showYAxis={false}
|
|
387
|
+
/>
|
|
388
|
+
</YStack>
|
|
389
|
+
);
|
|
390
|
+
},
|
|
391
|
+
};
|