@multiplatform.one/components 6.1.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/dist/cjs/Accordion/index.cjs +332 -0
- package/dist/cjs/Accordion/index.native.js +353 -0
- package/dist/cjs/Accordion/index.native.js.map +1 -0
- package/dist/cjs/Alert/index.cjs +207 -0
- package/dist/cjs/Alert/index.native.js +223 -0
- package/dist/cjs/Alert/index.native.js.map +1 -0
- package/dist/cjs/Avatar/getInitials.cjs +38 -0
- package/dist/cjs/Avatar/getInitials.native.js +42 -0
- package/dist/cjs/Avatar/getInitials.native.js.map +1 -0
- package/dist/cjs/Avatar/index.cjs +119 -0
- package/dist/cjs/Avatar/index.native.js +129 -0
- package/dist/cjs/Avatar/index.native.js.map +1 -0
- package/dist/cjs/Badge/index.cjs +42 -9
- package/dist/cjs/Badge/index.native.js +45 -10
- package/dist/cjs/Badge/index.native.js.map +1 -1
- package/dist/cjs/Carousel/index.cjs +61 -13
- package/dist/cjs/Carousel/index.native.js +65 -13
- package/dist/cjs/Carousel/index.native.js.map +1 -1
- package/dist/cjs/Chip/index.cjs +4 -1
- package/dist/cjs/Chip/index.native.js +4 -1
- package/dist/cjs/Chip/index.native.js.map +1 -1
- package/dist/cjs/DotIndicator/index.cjs +61 -6
- package/dist/cjs/DotIndicator/index.native.js +64 -8
- package/dist/cjs/DotIndicator/index.native.js.map +1 -1
- package/dist/cjs/DropdownMenu/index.cjs +507 -0
- package/dist/cjs/DropdownMenu/index.native.js +537 -0
- package/dist/cjs/DropdownMenu/index.native.js.map +1 -0
- package/dist/cjs/ErrorBoundary/index.cjs +20 -9
- package/dist/cjs/ErrorBoundary/index.native.js +23 -11
- package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
- package/dist/cjs/Pagination.cjs +198 -18
- package/dist/cjs/Pagination.native.js +220 -18
- package/dist/cjs/Pagination.native.js.map +1 -1
- package/dist/cjs/ProgressSteps/index.cjs +239 -0
- package/dist/cjs/ProgressSteps/index.native.js +249 -0
- package/dist/cjs/ProgressSteps/index.native.js.map +1 -0
- package/dist/cjs/Quote/index.cjs +90 -0
- package/dist/cjs/Quote/index.native.js +100 -0
- package/dist/cjs/Quote/index.native.js.map +1 -0
- package/dist/cjs/SheetModal/index.cjs +67 -0
- package/dist/cjs/SheetModal/index.native.js +143 -0
- package/dist/cjs/SheetModal/index.native.js.map +1 -0
- package/dist/cjs/SkipLink/index.cjs +134 -0
- package/dist/cjs/SkipLink/index.native.js +156 -0
- package/dist/cjs/SkipLink/index.native.js.map +1 -0
- package/dist/cjs/Tabs/index.cjs +401 -0
- package/dist/cjs/Tabs/index.native.js +432 -0
- package/dist/cjs/Tabs/index.native.js.map +1 -0
- package/dist/cjs/Toast/index.cjs +422 -0
- package/dist/cjs/Toast/index.native.js +447 -0
- package/dist/cjs/Toast/index.native.js.map +1 -0
- package/dist/cjs/Toast/store.cjs +106 -0
- package/dist/cjs/Toast/store.native.js +179 -0
- package/dist/cjs/Toast/store.native.js.map +1 -0
- package/dist/cjs/Tooltip/index.cjs +58 -1
- package/dist/cjs/Tooltip/index.native.js +51 -2
- package/dist/cjs/Tooltip/index.native.js.map +1 -1
- package/dist/cjs/Video/VideoFrame.cjs +46 -0
- package/dist/cjs/Video/VideoFrame.native.js +50 -0
- package/dist/cjs/Video/VideoFrame.native.js.map +1 -0
- package/dist/cjs/Video/index.cjs +72 -0
- package/dist/cjs/Video/index.native.js +172 -0
- package/dist/cjs/Video/index.native.js.map +1 -0
- package/dist/cjs/Video/types.cjs +18 -0
- package/dist/cjs/Video/types.native.js +21 -0
- package/dist/cjs/Video/types.native.js.map +1 -0
- package/dist/cjs/Wheel/index.cjs +603 -2
- package/dist/cjs/Wheel/index.native.js +626 -2
- package/dist/cjs/Wheel/index.native.js.map +1 -1
- package/dist/cjs/actions/ActionBar.cjs +148 -0
- package/dist/cjs/actions/ActionBar.native.js +154 -0
- package/dist/cjs/actions/ActionBar.native.js.map +1 -0
- package/dist/cjs/actions/DestructiveAction.cjs +216 -0
- package/dist/cjs/actions/DestructiveAction.native.js +227 -0
- package/dist/cjs/actions/DestructiveAction.native.js.map +1 -0
- package/dist/cjs/actions/devWarn.cjs +38 -0
- package/dist/cjs/actions/devWarn.native.js +42 -0
- package/dist/cjs/actions/devWarn.native.js.map +1 -0
- package/dist/cjs/actions/index.cjs +39 -0
- package/dist/cjs/actions/index.native.js +42 -0
- package/dist/cjs/actions/index.native.js.map +1 -0
- package/dist/cjs/actions/severity.cjs +42 -0
- package/dist/cjs/actions/severity.native.js +46 -0
- package/dist/cjs/actions/severity.native.js.map +1 -0
- package/dist/cjs/charts/Axis.cjs +152 -0
- package/dist/cjs/charts/Axis.native.js +159 -0
- package/dist/cjs/charts/Axis.native.js.map +1 -0
- package/dist/cjs/charts/BarChart.cjs +132 -0
- package/dist/cjs/charts/BarChart.native.js +150 -0
- package/dist/cjs/charts/BarChart.native.js.map +1 -0
- package/dist/cjs/charts/ChartSurface.cjs +73 -0
- package/dist/cjs/charts/ChartSurface.native.js +79 -0
- package/dist/cjs/charts/ChartSurface.native.js.map +1 -0
- package/dist/cjs/charts/LineChart.cjs +152 -0
- package/dist/cjs/charts/LineChart.native.js +173 -0
- package/dist/cjs/charts/LineChart.native.js.map +1 -0
- package/dist/cjs/charts/PieChart.cjs +152 -0
- package/dist/cjs/charts/PieChart.native.js +166 -0
- package/dist/cjs/charts/PieChart.native.js.map +1 -0
- package/dist/cjs/charts/Sparkline.cjs +103 -0
- package/dist/cjs/charts/Sparkline.native.js +116 -0
- package/dist/cjs/charts/Sparkline.native.js.map +1 -0
- package/dist/cjs/charts/accessibility.cjs +62 -0
- package/dist/cjs/charts/accessibility.native.js +86 -0
- package/dist/cjs/charts/accessibility.native.js.map +1 -0
- package/dist/cjs/charts/composeChart.cjs +69 -0
- package/dist/cjs/charts/composeChart.native.js +79 -0
- package/dist/cjs/charts/composeChart.native.js.map +1 -0
- package/dist/cjs/charts/index.cjs +66 -0
- package/dist/cjs/charts/index.native.js +69 -0
- package/dist/cjs/charts/index.native.js.map +1 -0
- package/dist/cjs/charts/math.cjs +145 -0
- package/dist/cjs/charts/math.native.js +170 -0
- package/dist/cjs/charts/math.native.js.map +1 -0
- package/dist/cjs/charts/series.cjs +180 -0
- package/dist/cjs/charts/series.native.js +199 -0
- package/dist/cjs/charts/series.native.js.map +1 -0
- package/dist/cjs/charts/svg.cjs +94 -0
- package/dist/cjs/charts/svg.native.js +97 -0
- package/dist/cjs/charts/svg.native.js.map +1 -0
- package/dist/cjs/charts/types.cjs +18 -0
- package/dist/cjs/charts/types.native.js +21 -0
- package/dist/cjs/charts/types.native.js.map +1 -0
- package/dist/cjs/charts/useChartTheme.cjs +97 -0
- package/dist/cjs/charts/useChartTheme.native.js +106 -0
- package/dist/cjs/charts/useChartTheme.native.js.map +1 -0
- package/dist/cjs/code/Code/index.cjs +22 -4
- package/dist/cjs/code/Code/index.native.js +22 -4
- package/dist/cjs/code/Code/index.native.js.map +1 -1
- package/dist/cjs/code/CodeBlock/index.cjs +14 -7
- package/dist/cjs/code/CodeBlock/index.native.js +14 -7
- package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
- package/dist/cjs/code/HighlightedCode/index.cjs +9 -8
- package/dist/cjs/code/HighlightedCode/index.native.js +12 -8
- package/dist/cjs/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/cjs/code/Highlighter/index.cjs +24 -7
- package/dist/cjs/code/Highlighter/index.native.js +27 -7
- package/dist/cjs/code/Highlighter/index.native.js.map +1 -1
- package/dist/cjs/componentColors.cjs +25 -13
- package/dist/cjs/componentColors.native.js +25 -13
- package/dist/cjs/componentColors.native.js.map +1 -1
- package/dist/cjs/feedback/ConfirmDialog.cjs +140 -0
- package/dist/cjs/feedback/ConfirmDialog.native.js +154 -0
- package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -0
- package/dist/cjs/feedback/NotifyHost.cjs +134 -0
- package/dist/cjs/feedback/NotifyHost.native.js +166 -0
- package/dist/cjs/feedback/NotifyHost.native.js.map +1 -0
- package/dist/cjs/feedback/index.cjs +42 -0
- package/dist/cjs/feedback/index.native.js +45 -0
- package/dist/cjs/feedback/index.native.js.map +1 -0
- package/dist/cjs/feedback/notify.cjs +69 -0
- package/dist/cjs/feedback/notify.native.js +72 -0
- package/dist/cjs/feedback/notify.native.js.map +1 -0
- package/dist/cjs/feedback/route.cjs +92 -0
- package/dist/cjs/feedback/route.native.js +97 -0
- package/dist/cjs/feedback/route.native.js.map +1 -0
- package/dist/cjs/feedback/store.cjs +76 -0
- package/dist/cjs/feedback/store.native.js +107 -0
- package/dist/cjs/feedback/store.native.js.map +1 -0
- package/dist/cjs/hooks/index.cjs +3 -1
- package/dist/cjs/hooks/index.native.js +2 -0
- package/dist/cjs/hooks/index.native.js.map +1 -1
- package/dist/cjs/hooks/useClipboard.cjs +10 -5
- package/dist/cjs/hooks/useClipboard.native.js +12 -5
- package/dist/cjs/hooks/useClipboard.native.js.map +1 -1
- package/dist/cjs/hooks/useDirection.cjs +53 -0
- package/dist/cjs/hooks/useDirection.native.js +34 -0
- package/dist/cjs/hooks/useDirection.native.js.map +1 -0
- package/dist/cjs/hooks/useDocumentTitle.cjs +49 -0
- package/dist/cjs/hooks/useDocumentTitle.native.js +61 -0
- package/dist/cjs/hooks/useDocumentTitle.native.js.map +1 -0
- package/dist/cjs/icons/index.cjs +2 -1
- package/dist/cjs/icons/index.native.js +1 -0
- package/dist/cjs/icons/index.native.js.map +1 -1
- package/dist/cjs/icons/lucide.cjs +34 -0
- package/dist/cjs/icons/lucide.native.js +37 -0
- package/dist/cjs/icons/lucide.native.js.map +1 -0
- package/dist/cjs/images/Image/index.cjs +10 -0
- package/dist/cjs/index.cjs +40 -2
- package/dist/cjs/index.native.js +40 -2
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/layouts/AsyncBoundary.cjs +347 -0
- package/dist/cjs/layouts/AsyncBoundary.native.js +374 -0
- package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -0
- package/dist/cjs/layouts/PageTemplates.cjs +141 -0
- package/dist/cjs/layouts/PageTemplates.native.js +148 -0
- package/dist/cjs/layouts/PageTemplates.native.js.map +1 -0
- package/dist/cjs/layouts/PaneScaffold.cjs +157 -0
- package/dist/cjs/layouts/PaneScaffold.native.js +167 -0
- package/dist/cjs/layouts/PaneScaffold.native.js.map +1 -0
- package/dist/cjs/layouts/ViewSwitcher.cjs +68 -11
- package/dist/cjs/layouts/ViewSwitcher.native.js +81 -11
- package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/cjs/layouts/attachments.cjs +130 -33
- package/dist/cjs/layouts/attachments.native.js +147 -34
- package/dist/cjs/layouts/attachments.native.js.map +1 -1
- package/dist/cjs/layouts/breadcrumbs.cjs +62 -29
- package/dist/cjs/layouts/breadcrumbs.native.js +70 -32
- package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/cjs/layouts/index.cjs +19 -1
- package/dist/cjs/layouts/index.native.js +18 -0
- package/dist/cjs/layouts/index.native.js.map +1 -1
- package/dist/cjs/layouts/page.cjs +132 -27
- package/dist/cjs/layouts/page.native.js +150 -28
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/cjs/layouts/pageHeadingScope.cjs +74 -0
- package/dist/cjs/layouts/pageHeadingScope.native.js +80 -0
- package/dist/cjs/layouts/pageHeadingScope.native.js.map +1 -0
- package/dist/cjs/layouts/sidebar.cjs +48 -10
- package/dist/cjs/layouts/sidebar.native.js +70 -10
- package/dist/cjs/layouts/sidebar.native.js.map +1 -1
- package/dist/cjs/layouts/tags.cjs +77 -87
- package/dist/cjs/layouts/tags.native.js +90 -89
- package/dist/cjs/layouts/tags.native.js.map +1 -1
- package/dist/cjs/layouts/timeline.cjs +500 -183
- package/dist/cjs/layouts/timeline.native.js +602 -186
- package/dist/cjs/layouts/timeline.native.js.map +1 -1
- package/dist/cjs/layouts/toolbar.cjs +111 -35
- package/dist/cjs/layouts/toolbar.native.js +172 -38
- package/dist/cjs/layouts/toolbar.native.js.map +1 -1
- package/dist/cjs/shared/actionScan.cjs +53 -0
- package/dist/cjs/shared/actionScan.native.js +56 -0
- package/dist/cjs/shared/actionScan.native.js.map +1 -0
- package/dist/cjs/shared/t.cjs +36 -0
- package/dist/cjs/shared/t.native.js +41 -0
- package/dist/cjs/shared/t.native.js.map +1 -0
- package/dist/cjs/shared/useReturnFocusOnClose.cjs +56 -0
- package/dist/cjs/shared/useReturnFocusOnClose.native.js +63 -0
- package/dist/cjs/shared/useReturnFocusOnClose.native.js.map +1 -0
- package/dist/cjs/surfaces.cjs +68 -27
- package/dist/cjs/surfaces.native.js +67 -26
- package/dist/cjs/surfaces.native.js.map +1 -1
- package/dist/cjs/tamagui.cjs +94 -0
- package/dist/cjs/tamagui.native.js +97 -0
- package/dist/cjs/tamagui.native.js.map +1 -0
- package/dist/cjs/views/Calendar.cjs +1547 -155
- package/dist/cjs/views/Calendar.native.js +1713 -180
- package/dist/cjs/views/Calendar.native.js.map +1 -1
- package/dist/cjs/views/Dashboard.cjs +108 -303
- package/dist/cjs/views/Dashboard.native.js +113 -327
- package/dist/cjs/views/Dashboard.native.js.map +1 -1
- package/dist/cjs/views/Gantt.cjs +876 -0
- package/dist/cjs/views/Gantt.native.js +970 -0
- package/dist/cjs/views/Gantt.native.js.map +1 -0
- package/dist/cjs/views/ImageGrid.cjs +131 -64
- package/dist/cjs/views/ImageGrid.native.js +143 -65
- package/dist/cjs/views/ImageGrid.native.js.map +1 -1
- package/dist/cjs/views/Kanban.cjs +840 -41
- package/dist/cjs/views/Kanban.native.js +688 -58
- package/dist/cjs/views/Kanban.native.js.map +1 -1
- package/dist/cjs/views/List.cjs +33 -26
- package/dist/cjs/views/List.native.js +39 -26
- package/dist/cjs/views/List.native.js.map +1 -1
- package/dist/cjs/views/ReportBuilder.cjs +60 -59
- package/dist/cjs/views/ReportBuilder.native.js +66 -63
- package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
- package/dist/cjs/views/TreeView.cjs +830 -80
- package/dist/cjs/views/TreeView.native.js +912 -91
- package/dist/cjs/views/TreeView.native.js.map +1 -1
- package/dist/cjs/views/calendarMath.cjs +154 -0
- package/dist/cjs/views/calendarMath.native.js +203 -0
- package/dist/cjs/views/calendarMath.native.js.map +1 -0
- package/dist/cjs/views/ganttMath.cjs +239 -0
- package/dist/cjs/views/ganttMath.native.js +266 -0
- package/dist/cjs/views/ganttMath.native.js.map +1 -0
- package/dist/cjs/views/index.cjs +30 -2
- package/dist/cjs/views/index.native.js +29 -1
- package/dist/cjs/views/index.native.js.map +1 -1
- package/dist/cjs/views/kanbanDnd.cjs +200 -0
- package/dist/cjs/views/kanbanDnd.native.js +242 -0
- package/dist/cjs/views/kanbanDnd.native.js.map +1 -0
- package/dist/cjs/views/treeViewDnd.cjs +376 -0
- package/dist/cjs/views/treeViewDnd.native.js +453 -0
- package/dist/cjs/views/treeViewDnd.native.js.map +1 -0
- package/dist/cjs/views/treeViewMotion.cjs +70 -0
- package/dist/cjs/views/treeViewMotion.native.js +130 -0
- package/dist/cjs/views/treeViewMotion.native.js.map +1 -0
- package/dist/esm/Accordion/index.mjs +307 -0
- package/dist/esm/Accordion/index.mjs.map +1 -0
- package/dist/esm/Accordion/index.native.js +325 -0
- package/dist/esm/Accordion/index.native.js.map +1 -0
- package/dist/esm/Alert/index.mjs +182 -0
- package/dist/esm/Alert/index.mjs.map +1 -0
- package/dist/esm/Alert/index.native.js +195 -0
- package/dist/esm/Alert/index.native.js.map +1 -0
- package/dist/esm/Avatar/getInitials.mjs +13 -0
- package/dist/esm/Avatar/getInitials.mjs.map +1 -0
- package/dist/esm/Avatar/getInitials.native.js +14 -0
- package/dist/esm/Avatar/getInitials.native.js.map +1 -0
- package/dist/esm/Avatar/index.mjs +93 -0
- package/dist/esm/Avatar/index.mjs.map +1 -0
- package/dist/esm/Avatar/index.native.js +100 -0
- package/dist/esm/Avatar/index.native.js.map +1 -0
- package/dist/esm/Badge/index.mjs +42 -9
- package/dist/esm/Badge/index.mjs.map +1 -1
- package/dist/esm/Badge/index.native.js +45 -10
- package/dist/esm/Badge/index.native.js.map +1 -1
- package/dist/esm/Carousel/index.mjs +62 -14
- package/dist/esm/Carousel/index.mjs.map +1 -1
- package/dist/esm/Carousel/index.native.js +66 -14
- package/dist/esm/Carousel/index.native.js.map +1 -1
- package/dist/esm/Chip/index.mjs +2 -2
- package/dist/esm/Chip/index.mjs.map +1 -1
- package/dist/esm/Chip/index.native.js +2 -2
- package/dist/esm/Chip/index.native.js.map +1 -1
- package/dist/esm/DotIndicator/index.mjs +61 -6
- package/dist/esm/DotIndicator/index.mjs.map +1 -1
- package/dist/esm/DotIndicator/index.native.js +64 -8
- package/dist/esm/DotIndicator/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.mjs +482 -0
- package/dist/esm/DropdownMenu/index.mjs.map +1 -0
- package/dist/esm/DropdownMenu/index.native.js +509 -0
- package/dist/esm/DropdownMenu/index.native.js.map +1 -0
- package/dist/esm/ErrorBoundary/index.mjs +20 -9
- package/dist/esm/ErrorBoundary/index.mjs.map +1 -1
- package/dist/esm/ErrorBoundary/index.native.js +23 -11
- package/dist/esm/ErrorBoundary/index.native.js.map +1 -1
- package/dist/esm/Pagination.mjs +200 -21
- package/dist/esm/Pagination.mjs.map +1 -1
- package/dist/esm/Pagination.native.js +222 -21
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/ProgressSteps/index.mjs +214 -0
- package/dist/esm/ProgressSteps/index.mjs.map +1 -0
- package/dist/esm/ProgressSteps/index.native.js +221 -0
- package/dist/esm/ProgressSteps/index.native.js.map +1 -0
- package/dist/esm/Quote/index.mjs +65 -0
- package/dist/esm/Quote/index.mjs.map +1 -0
- package/dist/esm/Quote/index.native.js +72 -0
- package/dist/esm/Quote/index.native.js.map +1 -0
- package/dist/esm/SheetModal/index.mjs +42 -0
- package/dist/esm/SheetModal/index.mjs.map +1 -0
- package/dist/esm/SheetModal/index.native.js +115 -0
- package/dist/esm/SheetModal/index.native.js.map +1 -0
- package/dist/esm/SkipLink/index.mjs +109 -0
- package/dist/esm/SkipLink/index.mjs.map +1 -0
- package/dist/esm/SkipLink/index.native.js +128 -0
- package/dist/esm/SkipLink/index.native.js.map +1 -0
- package/dist/esm/Tabs/index.mjs +365 -0
- package/dist/esm/Tabs/index.mjs.map +1 -0
- package/dist/esm/Tabs/index.native.js +393 -0
- package/dist/esm/Tabs/index.native.js.map +1 -0
- package/dist/esm/Toast/index.mjs +391 -0
- package/dist/esm/Toast/index.mjs.map +1 -0
- package/dist/esm/Toast/index.native.js +413 -0
- package/dist/esm/Toast/index.native.js.map +1 -0
- package/dist/esm/Toast/store.mjs +74 -0
- package/dist/esm/Toast/store.mjs.map +1 -0
- package/dist/esm/Toast/store.native.js +144 -0
- package/dist/esm/Toast/store.native.js.map +1 -0
- package/dist/esm/Tooltip/index.mjs +48 -2
- package/dist/esm/Tooltip/index.mjs.map +1 -1
- package/dist/esm/Tooltip/index.native.js +52 -3
- package/dist/esm/Tooltip/index.native.js.map +1 -1
- package/dist/esm/Video/VideoFrame.mjs +20 -0
- package/dist/esm/Video/VideoFrame.mjs.map +1 -0
- package/dist/esm/Video/VideoFrame.native.js +21 -0
- package/dist/esm/Video/VideoFrame.native.js.map +1 -0
- package/dist/esm/Video/index.mjs +47 -0
- package/dist/esm/Video/index.mjs.map +1 -0
- package/dist/esm/Video/index.native.js +144 -0
- package/dist/esm/Video/index.native.js.map +1 -0
- package/dist/esm/Video/types.mjs +2 -0
- package/dist/esm/Video/types.mjs.map +1 -0
- package/dist/esm/Video/types.native.js +2 -0
- package/dist/esm/Video/types.native.js.map +1 -0
- package/dist/esm/Wheel/index.mjs +602 -1
- package/dist/esm/Wheel/index.mjs.map +1 -1
- package/dist/esm/Wheel/index.native.js +625 -1
- package/dist/esm/Wheel/index.native.js.map +1 -1
- package/dist/esm/actions/ActionBar.mjs +123 -0
- package/dist/esm/actions/ActionBar.mjs.map +1 -0
- package/dist/esm/actions/ActionBar.native.js +126 -0
- package/dist/esm/actions/ActionBar.native.js.map +1 -0
- package/dist/esm/actions/DestructiveAction.mjs +191 -0
- package/dist/esm/actions/DestructiveAction.mjs.map +1 -0
- package/dist/esm/actions/DestructiveAction.native.js +199 -0
- package/dist/esm/actions/DestructiveAction.native.js.map +1 -0
- package/dist/esm/actions/devWarn.mjs +10 -0
- package/dist/esm/actions/devWarn.mjs.map +1 -0
- package/dist/esm/actions/devWarn.native.js +11 -0
- package/dist/esm/actions/devWarn.native.js.map +1 -0
- package/dist/esm/actions/index.mjs +7 -0
- package/dist/esm/actions/index.mjs.map +1 -0
- package/dist/esm/actions/index.native.js +7 -0
- package/dist/esm/actions/index.native.js.map +1 -0
- package/dist/esm/actions/severity.mjs +15 -0
- package/dist/esm/actions/severity.mjs.map +1 -0
- package/dist/esm/actions/severity.native.js +16 -0
- package/dist/esm/actions/severity.native.js.map +1 -0
- package/dist/esm/charts/Axis.mjs +124 -0
- package/dist/esm/charts/Axis.mjs.map +1 -0
- package/dist/esm/charts/Axis.native.js +128 -0
- package/dist/esm/charts/Axis.native.js.map +1 -0
- package/dist/esm/charts/BarChart.mjs +107 -0
- package/dist/esm/charts/BarChart.mjs.map +1 -0
- package/dist/esm/charts/BarChart.native.js +122 -0
- package/dist/esm/charts/BarChart.native.js.map +1 -0
- package/dist/esm/charts/ChartSurface.mjs +48 -0
- package/dist/esm/charts/ChartSurface.mjs.map +1 -0
- package/dist/esm/charts/ChartSurface.native.js +51 -0
- package/dist/esm/charts/ChartSurface.native.js.map +1 -0
- package/dist/esm/charts/LineChart.mjs +126 -0
- package/dist/esm/charts/LineChart.mjs.map +1 -0
- package/dist/esm/charts/LineChart.native.js +144 -0
- package/dist/esm/charts/LineChart.native.js.map +1 -0
- package/dist/esm/charts/PieChart.mjs +127 -0
- package/dist/esm/charts/PieChart.mjs.map +1 -0
- package/dist/esm/charts/PieChart.native.js +138 -0
- package/dist/esm/charts/PieChart.native.js.map +1 -0
- package/dist/esm/charts/Sparkline.mjs +78 -0
- package/dist/esm/charts/Sparkline.mjs.map +1 -0
- package/dist/esm/charts/Sparkline.native.js +88 -0
- package/dist/esm/charts/Sparkline.native.js.map +1 -0
- package/dist/esm/charts/accessibility.mjs +36 -0
- package/dist/esm/charts/accessibility.mjs.map +1 -0
- package/dist/esm/charts/accessibility.native.js +57 -0
- package/dist/esm/charts/accessibility.native.js.map +1 -0
- package/dist/esm/charts/composeChart.mjs +42 -0
- package/dist/esm/charts/composeChart.mjs.map +1 -0
- package/dist/esm/charts/composeChart.native.js +49 -0
- package/dist/esm/charts/composeChart.native.js.map +1 -0
- package/dist/esm/charts/index.mjs +12 -0
- package/dist/esm/charts/index.mjs.map +1 -0
- package/dist/esm/charts/index.native.js +12 -0
- package/dist/esm/charts/index.native.js.map +1 -0
- package/dist/esm/charts/math.mjs +106 -0
- package/dist/esm/charts/math.mjs.map +1 -0
- package/dist/esm/charts/math.native.js +128 -0
- package/dist/esm/charts/math.native.js.map +1 -0
- package/dist/esm/charts/series.mjs +152 -0
- package/dist/esm/charts/series.mjs.map +1 -0
- package/dist/esm/charts/series.native.js +168 -0
- package/dist/esm/charts/series.native.js.map +1 -0
- package/dist/esm/charts/svg.mjs +61 -0
- package/dist/esm/charts/svg.mjs.map +1 -0
- package/dist/esm/charts/svg.native.js +61 -0
- package/dist/esm/charts/svg.native.js.map +1 -0
- package/dist/esm/charts/types.mjs +2 -0
- package/dist/esm/charts/types.mjs.map +1 -0
- package/dist/esm/charts/types.native.js +2 -0
- package/dist/esm/charts/types.native.js.map +1 -0
- package/dist/esm/charts/useChartTheme.mjs +61 -0
- package/dist/esm/charts/useChartTheme.mjs.map +1 -0
- package/dist/esm/charts/useChartTheme.native.js +67 -0
- package/dist/esm/charts/useChartTheme.native.js.map +1 -0
- package/dist/esm/code/Code/index.mjs +22 -4
- package/dist/esm/code/Code/index.mjs.map +1 -1
- package/dist/esm/code/Code/index.native.js +22 -4
- package/dist/esm/code/Code/index.native.js.map +1 -1
- package/dist/esm/code/CodeBlock/index.mjs +15 -8
- package/dist/esm/code/CodeBlock/index.mjs.map +1 -1
- package/dist/esm/code/CodeBlock/index.native.js +15 -8
- package/dist/esm/code/CodeBlock/index.native.js.map +1 -1
- package/dist/esm/code/HighlightedCode/index.mjs +10 -9
- package/dist/esm/code/HighlightedCode/index.mjs.map +1 -1
- package/dist/esm/code/HighlightedCode/index.native.js +13 -9
- package/dist/esm/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/esm/code/Highlighter/index.mjs +24 -7
- package/dist/esm/code/Highlighter/index.mjs.map +1 -1
- package/dist/esm/code/Highlighter/index.native.js +27 -7
- package/dist/esm/code/Highlighter/index.native.js.map +1 -1
- package/dist/esm/componentColors.mjs +24 -13
- package/dist/esm/componentColors.mjs.map +1 -1
- package/dist/esm/componentColors.native.js +24 -13
- package/dist/esm/componentColors.native.js.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.mjs +115 -0
- package/dist/esm/feedback/ConfirmDialog.mjs.map +1 -0
- package/dist/esm/feedback/ConfirmDialog.native.js +126 -0
- package/dist/esm/feedback/ConfirmDialog.native.js.map +1 -0
- package/dist/esm/feedback/NotifyHost.mjs +108 -0
- package/dist/esm/feedback/NotifyHost.mjs.map +1 -0
- package/dist/esm/feedback/NotifyHost.native.js +137 -0
- package/dist/esm/feedback/NotifyHost.native.js.map +1 -0
- package/dist/esm/feedback/index.mjs +7 -0
- package/dist/esm/feedback/index.mjs.map +1 -0
- package/dist/esm/feedback/index.native.js +7 -0
- package/dist/esm/feedback/index.native.js.map +1 -0
- package/dist/esm/feedback/notify.mjs +44 -0
- package/dist/esm/feedback/notify.mjs.map +1 -0
- package/dist/esm/feedback/notify.native.js +44 -0
- package/dist/esm/feedback/notify.native.js.map +1 -0
- package/dist/esm/feedback/route.mjs +67 -0
- package/dist/esm/feedback/route.mjs.map +1 -0
- package/dist/esm/feedback/route.native.js +69 -0
- package/dist/esm/feedback/route.native.js.map +1 -0
- package/dist/esm/feedback/store.mjs +46 -0
- package/dist/esm/feedback/store.mjs.map +1 -0
- package/dist/esm/feedback/store.native.js +74 -0
- package/dist/esm/feedback/store.native.js.map +1 -0
- package/dist/esm/hooks/index.mjs +2 -0
- package/dist/esm/hooks/index.mjs.map +1 -1
- package/dist/esm/hooks/index.native.js +2 -0
- package/dist/esm/hooks/index.native.js.map +1 -1
- package/dist/esm/hooks/useClipboard.mjs +10 -5
- package/dist/esm/hooks/useClipboard.mjs.map +1 -1
- package/dist/esm/hooks/useClipboard.native.js +12 -5
- package/dist/esm/hooks/useClipboard.native.js.map +1 -1
- package/dist/esm/hooks/useDirection.mjs +28 -0
- package/dist/esm/hooks/useDirection.mjs.map +1 -0
- package/dist/esm/hooks/useDirection.native.js +6 -0
- package/dist/esm/hooks/useDirection.native.js.map +1 -0
- package/dist/esm/hooks/useDocumentTitle.mjs +22 -0
- package/dist/esm/hooks/useDocumentTitle.mjs.map +1 -0
- package/dist/esm/hooks/useDocumentTitle.native.js +31 -0
- package/dist/esm/hooks/useDocumentTitle.native.js.map +1 -0
- package/dist/esm/icons/index.mjs +1 -0
- package/dist/esm/icons/index.mjs.map +1 -1
- package/dist/esm/icons/index.native.js +1 -0
- package/dist/esm/icons/index.native.js.map +1 -1
- package/dist/esm/icons/lucide.mjs +4 -0
- package/dist/esm/icons/lucide.mjs.map +1 -0
- package/dist/esm/icons/lucide.native.js +4 -0
- package/dist/esm/icons/lucide.native.js.map +1 -0
- package/dist/esm/images/Image/index.mjs +10 -0
- package/dist/esm/images/Image/index.mjs.map +1 -1
- package/dist/esm/index.mjs +20 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +20 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/layouts/AsyncBoundary.mjs +317 -0
- package/dist/esm/layouts/AsyncBoundary.mjs.map +1 -0
- package/dist/esm/layouts/AsyncBoundary.native.js +341 -0
- package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -0
- package/dist/esm/layouts/PageTemplates.mjs +114 -0
- package/dist/esm/layouts/PageTemplates.mjs.map +1 -0
- package/dist/esm/layouts/PageTemplates.native.js +118 -0
- package/dist/esm/layouts/PageTemplates.native.js.map +1 -0
- package/dist/esm/layouts/PaneScaffold.mjs +128 -0
- package/dist/esm/layouts/PaneScaffold.mjs.map +1 -0
- package/dist/esm/layouts/PaneScaffold.native.js +135 -0
- package/dist/esm/layouts/PaneScaffold.native.js.map +1 -0
- package/dist/esm/layouts/ViewSwitcher.mjs +70 -13
- package/dist/esm/layouts/ViewSwitcher.mjs.map +1 -1
- package/dist/esm/layouts/ViewSwitcher.native.js +83 -13
- package/dist/esm/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/esm/layouts/attachments.mjs +133 -36
- package/dist/esm/layouts/attachments.mjs.map +1 -1
- package/dist/esm/layouts/attachments.native.js +150 -37
- package/dist/esm/layouts/attachments.native.js.map +1 -1
- package/dist/esm/layouts/breadcrumbs.mjs +64 -31
- package/dist/esm/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/esm/layouts/breadcrumbs.native.js +72 -34
- package/dist/esm/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/esm/layouts/index.mjs +5 -0
- package/dist/esm/layouts/index.mjs.map +1 -1
- package/dist/esm/layouts/index.native.js +5 -0
- package/dist/esm/layouts/index.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +135 -31
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +153 -32
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/layouts/pageHeadingScope.mjs +48 -0
- package/dist/esm/layouts/pageHeadingScope.mjs.map +1 -0
- package/dist/esm/layouts/pageHeadingScope.native.js +51 -0
- package/dist/esm/layouts/pageHeadingScope.native.js.map +1 -0
- package/dist/esm/layouts/sidebar.mjs +50 -12
- package/dist/esm/layouts/sidebar.mjs.map +1 -1
- package/dist/esm/layouts/sidebar.native.js +72 -12
- package/dist/esm/layouts/sidebar.native.js.map +1 -1
- package/dist/esm/layouts/tags.mjs +78 -88
- package/dist/esm/layouts/tags.mjs.map +1 -1
- package/dist/esm/layouts/tags.native.js +91 -90
- package/dist/esm/layouts/tags.native.js.map +1 -1
- package/dist/esm/layouts/timeline.mjs +500 -187
- package/dist/esm/layouts/timeline.mjs.map +1 -1
- package/dist/esm/layouts/timeline.native.js +603 -191
- package/dist/esm/layouts/timeline.native.js.map +1 -1
- package/dist/esm/layouts/toolbar.mjs +114 -38
- package/dist/esm/layouts/toolbar.mjs.map +1 -1
- package/dist/esm/layouts/toolbar.native.js +175 -41
- package/dist/esm/layouts/toolbar.native.js.map +1 -1
- package/dist/esm/shared/actionScan.mjs +27 -0
- package/dist/esm/shared/actionScan.mjs.map +1 -0
- package/dist/esm/shared/actionScan.native.js +27 -0
- package/dist/esm/shared/actionScan.native.js.map +1 -0
- package/dist/esm/shared/t.mjs +10 -0
- package/dist/esm/shared/t.mjs.map +1 -0
- package/dist/esm/shared/t.native.js +12 -0
- package/dist/esm/shared/t.native.js.map +1 -0
- package/dist/esm/shared/useReturnFocusOnClose.mjs +31 -0
- package/dist/esm/shared/useReturnFocusOnClose.mjs.map +1 -0
- package/dist/esm/shared/useReturnFocusOnClose.native.js +35 -0
- package/dist/esm/shared/useReturnFocusOnClose.native.js.map +1 -0
- package/dist/esm/surfaces.mjs +61 -31
- package/dist/esm/surfaces.mjs.map +1 -1
- package/dist/esm/surfaces.native.js +61 -31
- package/dist/esm/surfaces.native.js.map +1 -1
- package/dist/esm/tamagui.mjs +10 -0
- package/dist/esm/tamagui.mjs.map +1 -0
- package/dist/esm/tamagui.native.js +10 -0
- package/dist/esm/tamagui.native.js.map +1 -0
- package/dist/esm/views/Calendar.mjs +1538 -160
- package/dist/esm/views/Calendar.mjs.map +1 -1
- package/dist/esm/views/Calendar.native.js +1716 -186
- package/dist/esm/views/Calendar.native.js.map +1 -1
- package/dist/esm/views/Dashboard.mjs +110 -306
- package/dist/esm/views/Dashboard.mjs.map +1 -1
- package/dist/esm/views/Dashboard.native.js +115 -330
- package/dist/esm/views/Dashboard.native.js.map +1 -1
- package/dist/esm/views/Gantt.mjs +851 -0
- package/dist/esm/views/Gantt.mjs.map +1 -0
- package/dist/esm/views/Gantt.native.js +931 -0
- package/dist/esm/views/Gantt.native.js.map +1 -0
- package/dist/esm/views/ImageGrid.mjs +134 -67
- package/dist/esm/views/ImageGrid.mjs.map +1 -1
- package/dist/esm/views/ImageGrid.native.js +146 -68
- package/dist/esm/views/ImageGrid.native.js.map +1 -1
- package/dist/esm/views/Kanban.mjs +841 -42
- package/dist/esm/views/Kanban.mjs.map +1 -1
- package/dist/esm/views/Kanban.native.js +690 -60
- package/dist/esm/views/Kanban.native.js.map +1 -1
- package/dist/esm/views/List.mjs +33 -26
- package/dist/esm/views/List.mjs.map +1 -1
- package/dist/esm/views/List.native.js +39 -26
- package/dist/esm/views/List.native.js.map +1 -1
- package/dist/esm/views/ReportBuilder.mjs +60 -59
- package/dist/esm/views/ReportBuilder.mjs.map +1 -1
- package/dist/esm/views/ReportBuilder.native.js +66 -63
- package/dist/esm/views/ReportBuilder.native.js.map +1 -1
- package/dist/esm/views/TreeView.mjs +834 -84
- package/dist/esm/views/TreeView.mjs.map +1 -1
- package/dist/esm/views/TreeView.native.js +916 -95
- package/dist/esm/views/TreeView.native.js.map +1 -1
- package/dist/esm/views/calendarMath.mjs +116 -0
- package/dist/esm/views/calendarMath.mjs.map +1 -0
- package/dist/esm/views/calendarMath.native.js +162 -0
- package/dist/esm/views/calendarMath.native.js.map +1 -0
- package/dist/esm/views/ganttMath.mjs +195 -0
- package/dist/esm/views/ganttMath.mjs.map +1 -0
- package/dist/esm/views/ganttMath.native.js +219 -0
- package/dist/esm/views/ganttMath.native.js.map +1 -0
- package/dist/esm/views/index.mjs +7 -3
- package/dist/esm/views/index.mjs.map +1 -1
- package/dist/esm/views/index.native.js +7 -3
- package/dist/esm/views/index.native.js.map +1 -1
- package/dist/esm/views/kanbanDnd.mjs +165 -0
- package/dist/esm/views/kanbanDnd.mjs.map +1 -0
- package/dist/esm/views/kanbanDnd.native.js +204 -0
- package/dist/esm/views/kanbanDnd.native.js.map +1 -0
- package/dist/esm/views/treeViewDnd.mjs +336 -0
- package/dist/esm/views/treeViewDnd.mjs.map +1 -0
- package/dist/esm/views/treeViewDnd.native.js +410 -0
- package/dist/esm/views/treeViewDnd.native.js.map +1 -0
- package/dist/esm/views/treeViewMotion.mjs +43 -0
- package/dist/esm/views/treeViewMotion.mjs.map +1 -0
- package/dist/esm/views/treeViewMotion.native.js +100 -0
- package/dist/esm/views/treeViewMotion.native.js.map +1 -0
- package/dist/jsx/Accordion/index.mjs +307 -0
- package/dist/jsx/Accordion/index.mjs.map +1 -0
- package/dist/jsx/Accordion/index.native.js +353 -0
- package/dist/jsx/Accordion/index.native.js.map +1 -0
- package/dist/jsx/Alert/index.mjs +182 -0
- package/dist/jsx/Alert/index.mjs.map +1 -0
- package/dist/jsx/Alert/index.native.js +223 -0
- package/dist/jsx/Alert/index.native.js.map +1 -0
- package/dist/jsx/Avatar/getInitials.mjs +13 -0
- package/dist/jsx/Avatar/getInitials.mjs.map +1 -0
- package/dist/jsx/Avatar/getInitials.native.js +42 -0
- package/dist/jsx/Avatar/getInitials.native.js.map +1 -0
- package/dist/jsx/Avatar/index.mjs +93 -0
- package/dist/jsx/Avatar/index.mjs.map +1 -0
- package/dist/jsx/Avatar/index.native.js +129 -0
- package/dist/jsx/Avatar/index.native.js.map +1 -0
- package/dist/jsx/Badge/index.mjs +42 -9
- package/dist/jsx/Badge/index.mjs.map +1 -1
- package/dist/jsx/Badge/index.native.js +45 -10
- package/dist/jsx/Badge/index.native.js.map +1 -1
- package/dist/jsx/Carousel/index.mjs +62 -14
- package/dist/jsx/Carousel/index.mjs.map +1 -1
- package/dist/jsx/Carousel/index.native.js +65 -13
- package/dist/jsx/Carousel/index.native.js.map +1 -1
- package/dist/jsx/Chip/index.mjs +2 -2
- package/dist/jsx/Chip/index.mjs.map +1 -1
- package/dist/jsx/Chip/index.native.js +4 -1
- package/dist/jsx/Chip/index.native.js.map +1 -1
- package/dist/jsx/DotIndicator/index.mjs +61 -6
- package/dist/jsx/DotIndicator/index.mjs.map +1 -1
- package/dist/jsx/DotIndicator/index.native.js +64 -8
- package/dist/jsx/DotIndicator/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.mjs +482 -0
- package/dist/jsx/DropdownMenu/index.mjs.map +1 -0
- package/dist/jsx/DropdownMenu/index.native.js +537 -0
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -0
- package/dist/jsx/ErrorBoundary/index.mjs +20 -9
- package/dist/jsx/ErrorBoundary/index.mjs.map +1 -1
- package/dist/jsx/ErrorBoundary/index.native.js +23 -11
- package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
- package/dist/jsx/Pagination.mjs +200 -21
- package/dist/jsx/Pagination.mjs.map +1 -1
- package/dist/jsx/Pagination.native.js +220 -18
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/ProgressSteps/index.mjs +214 -0
- package/dist/jsx/ProgressSteps/index.mjs.map +1 -0
- package/dist/jsx/ProgressSteps/index.native.js +249 -0
- package/dist/jsx/ProgressSteps/index.native.js.map +1 -0
- package/dist/jsx/Quote/index.mjs +65 -0
- package/dist/jsx/Quote/index.mjs.map +1 -0
- package/dist/jsx/Quote/index.native.js +100 -0
- package/dist/jsx/Quote/index.native.js.map +1 -0
- package/dist/jsx/SheetModal/index.mjs +42 -0
- package/dist/jsx/SheetModal/index.mjs.map +1 -0
- package/dist/jsx/SheetModal/index.native.js +143 -0
- package/dist/jsx/SheetModal/index.native.js.map +1 -0
- package/dist/jsx/SkipLink/index.mjs +109 -0
- package/dist/jsx/SkipLink/index.mjs.map +1 -0
- package/dist/jsx/SkipLink/index.native.js +156 -0
- package/dist/jsx/SkipLink/index.native.js.map +1 -0
- package/dist/jsx/Tabs/index.mjs +365 -0
- package/dist/jsx/Tabs/index.mjs.map +1 -0
- package/dist/jsx/Tabs/index.native.js +432 -0
- package/dist/jsx/Tabs/index.native.js.map +1 -0
- package/dist/jsx/Toast/index.mjs +391 -0
- package/dist/jsx/Toast/index.mjs.map +1 -0
- package/dist/jsx/Toast/index.native.js +447 -0
- package/dist/jsx/Toast/index.native.js.map +1 -0
- package/dist/jsx/Toast/store.mjs +74 -0
- package/dist/jsx/Toast/store.mjs.map +1 -0
- package/dist/jsx/Toast/store.native.js +179 -0
- package/dist/jsx/Toast/store.native.js.map +1 -0
- package/dist/jsx/Tooltip/index.mjs +48 -2
- package/dist/jsx/Tooltip/index.mjs.map +1 -1
- package/dist/jsx/Tooltip/index.native.js +51 -2
- package/dist/jsx/Tooltip/index.native.js.map +1 -1
- package/dist/jsx/Video/VideoFrame.mjs +20 -0
- package/dist/jsx/Video/VideoFrame.mjs.map +1 -0
- package/dist/jsx/Video/VideoFrame.native.js +50 -0
- package/dist/jsx/Video/VideoFrame.native.js.map +1 -0
- package/dist/jsx/Video/index.mjs +47 -0
- package/dist/jsx/Video/index.mjs.map +1 -0
- package/dist/jsx/Video/index.native.js +172 -0
- package/dist/jsx/Video/index.native.js.map +1 -0
- package/dist/jsx/Video/types.mjs +2 -0
- package/dist/jsx/Video/types.mjs.map +1 -0
- package/dist/jsx/Video/types.native.js +21 -0
- package/dist/jsx/Video/types.native.js.map +1 -0
- package/dist/jsx/Wheel/index.mjs +602 -1
- package/dist/jsx/Wheel/index.mjs.map +1 -1
- package/dist/jsx/Wheel/index.native.js +626 -2
- package/dist/jsx/Wheel/index.native.js.map +1 -1
- package/dist/jsx/actions/ActionBar.mjs +123 -0
- package/dist/jsx/actions/ActionBar.mjs.map +1 -0
- package/dist/jsx/actions/ActionBar.native.js +154 -0
- package/dist/jsx/actions/ActionBar.native.js.map +1 -0
- package/dist/jsx/actions/DestructiveAction.mjs +191 -0
- package/dist/jsx/actions/DestructiveAction.mjs.map +1 -0
- package/dist/jsx/actions/DestructiveAction.native.js +227 -0
- package/dist/jsx/actions/DestructiveAction.native.js.map +1 -0
- package/dist/jsx/actions/devWarn.mjs +10 -0
- package/dist/jsx/actions/devWarn.mjs.map +1 -0
- package/dist/jsx/actions/devWarn.native.js +42 -0
- package/dist/jsx/actions/devWarn.native.js.map +1 -0
- package/dist/jsx/actions/index.mjs +7 -0
- package/dist/jsx/actions/index.mjs.map +1 -0
- package/dist/jsx/actions/index.native.js +42 -0
- package/dist/jsx/actions/index.native.js.map +1 -0
- package/dist/jsx/actions/severity.mjs +15 -0
- package/dist/jsx/actions/severity.mjs.map +1 -0
- package/dist/jsx/actions/severity.native.js +46 -0
- package/dist/jsx/actions/severity.native.js.map +1 -0
- package/dist/jsx/charts/Axis.mjs +124 -0
- package/dist/jsx/charts/Axis.mjs.map +1 -0
- package/dist/jsx/charts/Axis.native.js +159 -0
- package/dist/jsx/charts/Axis.native.js.map +1 -0
- package/dist/jsx/charts/BarChart.mjs +107 -0
- package/dist/jsx/charts/BarChart.mjs.map +1 -0
- package/dist/jsx/charts/BarChart.native.js +150 -0
- package/dist/jsx/charts/BarChart.native.js.map +1 -0
- package/dist/jsx/charts/ChartSurface.mjs +48 -0
- package/dist/jsx/charts/ChartSurface.mjs.map +1 -0
- package/dist/jsx/charts/ChartSurface.native.js +79 -0
- package/dist/jsx/charts/ChartSurface.native.js.map +1 -0
- package/dist/jsx/charts/LineChart.mjs +126 -0
- package/dist/jsx/charts/LineChart.mjs.map +1 -0
- package/dist/jsx/charts/LineChart.native.js +173 -0
- package/dist/jsx/charts/LineChart.native.js.map +1 -0
- package/dist/jsx/charts/PieChart.mjs +127 -0
- package/dist/jsx/charts/PieChart.mjs.map +1 -0
- package/dist/jsx/charts/PieChart.native.js +166 -0
- package/dist/jsx/charts/PieChart.native.js.map +1 -0
- package/dist/jsx/charts/Sparkline.mjs +78 -0
- package/dist/jsx/charts/Sparkline.mjs.map +1 -0
- package/dist/jsx/charts/Sparkline.native.js +116 -0
- package/dist/jsx/charts/Sparkline.native.js.map +1 -0
- package/dist/jsx/charts/accessibility.mjs +36 -0
- package/dist/jsx/charts/accessibility.mjs.map +1 -0
- package/dist/jsx/charts/accessibility.native.js +86 -0
- package/dist/jsx/charts/accessibility.native.js.map +1 -0
- package/dist/jsx/charts/composeChart.mjs +42 -0
- package/dist/jsx/charts/composeChart.mjs.map +1 -0
- package/dist/jsx/charts/composeChart.native.js +79 -0
- package/dist/jsx/charts/composeChart.native.js.map +1 -0
- package/dist/jsx/charts/index.mjs +12 -0
- package/dist/jsx/charts/index.mjs.map +1 -0
- package/dist/jsx/charts/index.native.js +69 -0
- package/dist/jsx/charts/index.native.js.map +1 -0
- package/dist/jsx/charts/math.mjs +106 -0
- package/dist/jsx/charts/math.mjs.map +1 -0
- package/dist/jsx/charts/math.native.js +170 -0
- package/dist/jsx/charts/math.native.js.map +1 -0
- package/dist/jsx/charts/series.mjs +152 -0
- package/dist/jsx/charts/series.mjs.map +1 -0
- package/dist/jsx/charts/series.native.js +199 -0
- package/dist/jsx/charts/series.native.js.map +1 -0
- package/dist/jsx/charts/svg.mjs +61 -0
- package/dist/jsx/charts/svg.mjs.map +1 -0
- package/dist/jsx/charts/svg.native.js +97 -0
- package/dist/jsx/charts/svg.native.js.map +1 -0
- package/dist/jsx/charts/types.mjs +2 -0
- package/dist/jsx/charts/types.mjs.map +1 -0
- package/dist/jsx/charts/types.native.js +21 -0
- package/dist/jsx/charts/types.native.js.map +1 -0
- package/dist/jsx/charts/useChartTheme.mjs +61 -0
- package/dist/jsx/charts/useChartTheme.mjs.map +1 -0
- package/dist/jsx/charts/useChartTheme.native.js +106 -0
- package/dist/jsx/charts/useChartTheme.native.js.map +1 -0
- package/dist/jsx/code/Code/index.mjs +22 -4
- package/dist/jsx/code/Code/index.mjs.map +1 -1
- package/dist/jsx/code/Code/index.native.js +22 -4
- package/dist/jsx/code/Code/index.native.js.map +1 -1
- package/dist/jsx/code/CodeBlock/index.mjs +15 -8
- package/dist/jsx/code/CodeBlock/index.mjs.map +1 -1
- package/dist/jsx/code/CodeBlock/index.native.js +14 -7
- package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
- package/dist/jsx/code/HighlightedCode/index.mjs +10 -9
- package/dist/jsx/code/HighlightedCode/index.mjs.map +1 -1
- package/dist/jsx/code/HighlightedCode/index.native.js +12 -8
- package/dist/jsx/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/index.mjs +24 -7
- package/dist/jsx/code/Highlighter/index.mjs.map +1 -1
- package/dist/jsx/code/Highlighter/index.native.js +27 -7
- package/dist/jsx/code/Highlighter/index.native.js.map +1 -1
- package/dist/jsx/componentColors.mjs +24 -13
- package/dist/jsx/componentColors.mjs.map +1 -1
- package/dist/jsx/componentColors.native.js +25 -13
- package/dist/jsx/componentColors.native.js.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.mjs +115 -0
- package/dist/jsx/feedback/ConfirmDialog.mjs.map +1 -0
- package/dist/jsx/feedback/ConfirmDialog.native.js +154 -0
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -0
- package/dist/jsx/feedback/NotifyHost.mjs +108 -0
- package/dist/jsx/feedback/NotifyHost.mjs.map +1 -0
- package/dist/jsx/feedback/NotifyHost.native.js +166 -0
- package/dist/jsx/feedback/NotifyHost.native.js.map +1 -0
- package/dist/jsx/feedback/index.mjs +7 -0
- package/dist/jsx/feedback/index.mjs.map +1 -0
- package/dist/jsx/feedback/index.native.js +45 -0
- package/dist/jsx/feedback/index.native.js.map +1 -0
- package/dist/jsx/feedback/notify.mjs +44 -0
- package/dist/jsx/feedback/notify.mjs.map +1 -0
- package/dist/jsx/feedback/notify.native.js +72 -0
- package/dist/jsx/feedback/notify.native.js.map +1 -0
- package/dist/jsx/feedback/route.mjs +67 -0
- package/dist/jsx/feedback/route.mjs.map +1 -0
- package/dist/jsx/feedback/route.native.js +97 -0
- package/dist/jsx/feedback/route.native.js.map +1 -0
- package/dist/jsx/feedback/store.mjs +46 -0
- package/dist/jsx/feedback/store.mjs.map +1 -0
- package/dist/jsx/feedback/store.native.js +107 -0
- package/dist/jsx/feedback/store.native.js.map +1 -0
- package/dist/jsx/hooks/index.mjs +2 -0
- package/dist/jsx/hooks/index.mjs.map +1 -1
- package/dist/jsx/hooks/index.native.js +2 -0
- package/dist/jsx/hooks/index.native.js.map +1 -1
- package/dist/jsx/hooks/useClipboard.mjs +10 -5
- package/dist/jsx/hooks/useClipboard.mjs.map +1 -1
- package/dist/jsx/hooks/useClipboard.native.js +12 -5
- package/dist/jsx/hooks/useClipboard.native.js.map +1 -1
- package/dist/jsx/hooks/useDirection.mjs +28 -0
- package/dist/jsx/hooks/useDirection.mjs.map +1 -0
- package/dist/jsx/hooks/useDirection.native.js +34 -0
- package/dist/jsx/hooks/useDirection.native.js.map +1 -0
- package/dist/jsx/hooks/useDocumentTitle.mjs +22 -0
- package/dist/jsx/hooks/useDocumentTitle.mjs.map +1 -0
- package/dist/jsx/hooks/useDocumentTitle.native.js +61 -0
- package/dist/jsx/hooks/useDocumentTitle.native.js.map +1 -0
- package/dist/jsx/icons/index.mjs +1 -0
- package/dist/jsx/icons/index.mjs.map +1 -1
- package/dist/jsx/icons/index.native.js +1 -0
- package/dist/jsx/icons/index.native.js.map +1 -1
- package/dist/jsx/icons/lucide.mjs +4 -0
- package/dist/jsx/icons/lucide.mjs.map +1 -0
- package/dist/jsx/icons/lucide.native.js +37 -0
- package/dist/jsx/icons/lucide.native.js.map +1 -0
- package/dist/jsx/images/Image/index.mjs +10 -0
- package/dist/jsx/images/Image/index.mjs.map +1 -1
- package/dist/jsx/index.js +20 -3
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +20 -3
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +40 -2
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/layouts/AsyncBoundary.mjs +317 -0
- package/dist/jsx/layouts/AsyncBoundary.mjs.map +1 -0
- package/dist/jsx/layouts/AsyncBoundary.native.js +374 -0
- package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -0
- package/dist/jsx/layouts/PageTemplates.mjs +114 -0
- package/dist/jsx/layouts/PageTemplates.mjs.map +1 -0
- package/dist/jsx/layouts/PageTemplates.native.js +148 -0
- package/dist/jsx/layouts/PageTemplates.native.js.map +1 -0
- package/dist/jsx/layouts/PaneScaffold.mjs +128 -0
- package/dist/jsx/layouts/PaneScaffold.mjs.map +1 -0
- package/dist/jsx/layouts/PaneScaffold.native.js +167 -0
- package/dist/jsx/layouts/PaneScaffold.native.js.map +1 -0
- package/dist/jsx/layouts/ViewSwitcher.mjs +70 -13
- package/dist/jsx/layouts/ViewSwitcher.mjs.map +1 -1
- package/dist/jsx/layouts/ViewSwitcher.native.js +81 -11
- package/dist/jsx/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.mjs +133 -36
- package/dist/jsx/layouts/attachments.mjs.map +1 -1
- package/dist/jsx/layouts/attachments.native.js +147 -34
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.mjs +64 -31
- package/dist/jsx/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.native.js +70 -32
- package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/jsx/layouts/index.mjs +5 -0
- package/dist/jsx/layouts/index.mjs.map +1 -1
- package/dist/jsx/layouts/index.native.js +18 -0
- package/dist/jsx/layouts/index.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +135 -31
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.js +150 -28
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/pageHeadingScope.mjs +48 -0
- package/dist/jsx/layouts/pageHeadingScope.mjs.map +1 -0
- package/dist/jsx/layouts/pageHeadingScope.native.js +80 -0
- package/dist/jsx/layouts/pageHeadingScope.native.js.map +1 -0
- package/dist/jsx/layouts/sidebar.mjs +50 -12
- package/dist/jsx/layouts/sidebar.mjs.map +1 -1
- package/dist/jsx/layouts/sidebar.native.js +70 -10
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/tags.mjs +78 -88
- package/dist/jsx/layouts/tags.mjs.map +1 -1
- package/dist/jsx/layouts/tags.native.js +90 -89
- package/dist/jsx/layouts/tags.native.js.map +1 -1
- package/dist/jsx/layouts/timeline.mjs +500 -187
- package/dist/jsx/layouts/timeline.mjs.map +1 -1
- package/dist/jsx/layouts/timeline.native.js +602 -186
- package/dist/jsx/layouts/timeline.native.js.map +1 -1
- package/dist/jsx/layouts/toolbar.mjs +114 -38
- package/dist/jsx/layouts/toolbar.mjs.map +1 -1
- package/dist/jsx/layouts/toolbar.native.js +172 -38
- package/dist/jsx/layouts/toolbar.native.js.map +1 -1
- package/dist/jsx/shared/actionScan.mjs +27 -0
- package/dist/jsx/shared/actionScan.mjs.map +1 -0
- package/dist/jsx/shared/actionScan.native.js +56 -0
- package/dist/jsx/shared/actionScan.native.js.map +1 -0
- package/dist/jsx/shared/t.mjs +10 -0
- package/dist/jsx/shared/t.mjs.map +1 -0
- package/dist/jsx/shared/t.native.js +41 -0
- package/dist/jsx/shared/t.native.js.map +1 -0
- package/dist/jsx/shared/useReturnFocusOnClose.mjs +31 -0
- package/dist/jsx/shared/useReturnFocusOnClose.mjs.map +1 -0
- package/dist/jsx/shared/useReturnFocusOnClose.native.js +63 -0
- package/dist/jsx/shared/useReturnFocusOnClose.native.js.map +1 -0
- package/dist/jsx/surfaces.mjs +61 -31
- package/dist/jsx/surfaces.mjs.map +1 -1
- package/dist/jsx/surfaces.native.js +67 -26
- package/dist/jsx/surfaces.native.js.map +1 -1
- package/dist/jsx/tamagui.mjs +10 -0
- package/dist/jsx/tamagui.mjs.map +1 -0
- package/dist/jsx/tamagui.native.js +97 -0
- package/dist/jsx/tamagui.native.js.map +1 -0
- package/dist/jsx/views/Calendar.mjs +1538 -160
- package/dist/jsx/views/Calendar.mjs.map +1 -1
- package/dist/jsx/views/Calendar.native.js +1713 -180
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/Dashboard.mjs +110 -306
- package/dist/jsx/views/Dashboard.mjs.map +1 -1
- package/dist/jsx/views/Dashboard.native.js +113 -327
- package/dist/jsx/views/Dashboard.native.js.map +1 -1
- package/dist/jsx/views/Gantt.mjs +851 -0
- package/dist/jsx/views/Gantt.mjs.map +1 -0
- package/dist/jsx/views/Gantt.native.js +970 -0
- package/dist/jsx/views/Gantt.native.js.map +1 -0
- package/dist/jsx/views/ImageGrid.mjs +134 -67
- package/dist/jsx/views/ImageGrid.mjs.map +1 -1
- package/dist/jsx/views/ImageGrid.native.js +143 -65
- package/dist/jsx/views/ImageGrid.native.js.map +1 -1
- package/dist/jsx/views/Kanban.mjs +841 -42
- package/dist/jsx/views/Kanban.mjs.map +1 -1
- package/dist/jsx/views/Kanban.native.js +688 -58
- package/dist/jsx/views/Kanban.native.js.map +1 -1
- package/dist/jsx/views/List.mjs +33 -26
- package/dist/jsx/views/List.mjs.map +1 -1
- package/dist/jsx/views/List.native.js +39 -26
- package/dist/jsx/views/List.native.js.map +1 -1
- package/dist/jsx/views/ReportBuilder.mjs +60 -59
- package/dist/jsx/views/ReportBuilder.mjs.map +1 -1
- package/dist/jsx/views/ReportBuilder.native.js +66 -63
- package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
- package/dist/jsx/views/TreeView.mjs +834 -84
- package/dist/jsx/views/TreeView.mjs.map +1 -1
- package/dist/jsx/views/TreeView.native.js +912 -91
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/dist/jsx/views/calendarMath.mjs +116 -0
- package/dist/jsx/views/calendarMath.mjs.map +1 -0
- package/dist/jsx/views/calendarMath.native.js +203 -0
- package/dist/jsx/views/calendarMath.native.js.map +1 -0
- package/dist/jsx/views/ganttMath.mjs +195 -0
- package/dist/jsx/views/ganttMath.mjs.map +1 -0
- package/dist/jsx/views/ganttMath.native.js +266 -0
- package/dist/jsx/views/ganttMath.native.js.map +1 -0
- package/dist/jsx/views/index.mjs +7 -3
- package/dist/jsx/views/index.mjs.map +1 -1
- package/dist/jsx/views/index.native.js +29 -1
- package/dist/jsx/views/index.native.js.map +1 -1
- package/dist/jsx/views/kanbanDnd.mjs +165 -0
- package/dist/jsx/views/kanbanDnd.mjs.map +1 -0
- package/dist/jsx/views/kanbanDnd.native.js +242 -0
- package/dist/jsx/views/kanbanDnd.native.js.map +1 -0
- package/dist/jsx/views/treeViewDnd.mjs +336 -0
- package/dist/jsx/views/treeViewDnd.mjs.map +1 -0
- package/dist/jsx/views/treeViewDnd.native.js +453 -0
- package/dist/jsx/views/treeViewDnd.native.js.map +1 -0
- package/dist/jsx/views/treeViewMotion.mjs +43 -0
- package/dist/jsx/views/treeViewMotion.mjs.map +1 -0
- package/dist/jsx/views/treeViewMotion.native.js +130 -0
- package/dist/jsx/views/treeViewMotion.native.js.map +1 -0
- package/package.json +51 -15
- package/src/Accordion/Accordion.spec.tsx +114 -0
- package/src/Accordion/Accordion.stories.tsx +187 -0
- package/src/Accordion/index.tsx +419 -0
- package/src/Alert/Alert.spec.tsx +83 -0
- package/src/Alert/Alert.stories.tsx +207 -0
- package/src/Alert/index.tsx +256 -0
- package/src/Avatar/Avatar.spec.tsx +45 -0
- package/src/Avatar/Avatar.stories.tsx +79 -0
- package/src/Avatar/getInitials.ts +15 -0
- package/src/Avatar/index.tsx +158 -0
- package/src/Badge/Badge.stories.tsx +37 -2
- package/src/Badge/index.tsx +39 -9
- package/src/Card.stories.tsx +96 -0
- package/src/CardFooter.stories.tsx +69 -0
- package/src/CardHeader.stories.tsx +67 -0
- package/src/Carousel/Carousel.stories.tsx +15 -16
- package/src/Carousel/index.tsx +65 -12
- package/src/Chip/index.tsx +3 -0
- package/src/DialogContent.stories.tsx +76 -0
- package/src/DotIndicator/DotIndicator.stories.tsx +12 -0
- package/src/DotIndicator/dotIndicator.spec.tsx +75 -0
- package/src/DotIndicator/index.tsx +59 -6
- package/src/DropdownMenu/DropdownMenu.spec.tsx +222 -0
- package/src/DropdownMenu/DropdownMenu.stories.tsx +198 -0
- package/src/DropdownMenu/index.tsx +696 -0
- package/src/ErrorBoundary/index.tsx +12 -6
- package/src/Pagination.spec.tsx +158 -0
- package/src/Pagination.stories.tsx +120 -4
- package/src/Pagination.tsx +309 -29
- package/src/Panel.stories.tsx +72 -0
- package/src/PopoverContent.stories.tsx +67 -0
- package/src/ProgressSteps/ProgressSteps.spec.tsx +31 -0
- package/src/ProgressSteps/ProgressSteps.stories.tsx +87 -0
- package/src/ProgressSteps/index.tsx +291 -0
- package/src/Quote/Quote.spec.tsx +17 -0
- package/src/Quote/Quote.stories.tsx +50 -0
- package/src/Quote/index.tsx +100 -0
- package/src/SheetFrame.stories.tsx +78 -0
- package/src/SheetModal/index.native.tsx +140 -0
- package/src/SheetModal/index.tsx +66 -0
- package/src/Skeleton/SkeletonCircle.stories.tsx +55 -0
- package/src/Skeleton/SkeletonText.stories.tsx +107 -0
- package/src/SkipLink/SkipLink.spec.tsx +45 -0
- package/src/SkipLink/SkipLink.stories.tsx +89 -0
- package/src/SkipLink/index.tsx +147 -0
- package/src/Tabs/Tabs.spec.tsx +70 -0
- package/src/Tabs/Tabs.stories.tsx +249 -0
- package/src/Tabs/index.tsx +524 -0
- package/src/Toast/Toast.spec.tsx +223 -0
- package/src/Toast/Toast.stories.tsx +210 -0
- package/src/Toast/index.tsx +478 -0
- package/src/Toast/store.ts +142 -0
- package/src/Tooltip/Tooltip.devWarn.spec.tsx +43 -0
- package/src/Tooltip/index.tsx +68 -6
- package/src/Video/Video.spec.tsx +78 -0
- package/src/Video/Video.stories.tsx +75 -0
- package/src/Video/VideoFrame.tsx +15 -0
- package/src/Video/index.native.tsx +181 -0
- package/src/Video/index.tsx +50 -0
- package/src/Video/types.ts +17 -0
- package/src/Wheel/Wheel.spec.tsx +30 -0
- package/src/Wheel/Wheel.stories.tsx +1 -1
- package/src/Wheel/index.tsx +862 -7
- package/src/actions/ActionBar.spec.tsx +166 -0
- package/src/actions/ActionBar.tsx +207 -0
- package/src/actions/DestructiveAction.spec.tsx +254 -0
- package/src/actions/DestructiveAction.stories.tsx +113 -0
- package/src/actions/DestructiveAction.tsx +281 -0
- package/src/actions/devWarn.ts +33 -0
- package/src/actions/index.ts +24 -0
- package/src/actions/severity.ts +40 -0
- package/src/charts/Axis.tsx +180 -0
- package/src/charts/BarChart.tsx +138 -0
- package/src/charts/ChartSurface.tsx +70 -0
- package/src/charts/Charts.stories.tsx +187 -0
- package/src/charts/LineChart.tsx +172 -0
- package/src/charts/PieChart.tsx +153 -0
- package/src/charts/Sparkline.tsx +98 -0
- package/src/charts/accessibility.ts +75 -0
- package/src/charts/charts.spec.tsx +321 -0
- package/src/charts/composeChart.ts +86 -0
- package/src/charts/index.ts +69 -0
- package/src/charts/math.spec.ts +184 -0
- package/src/charts/math.ts +275 -0
- package/src/charts/series.tsx +245 -0
- package/src/charts/svg.ts +84 -0
- package/src/charts/types.ts +54 -0
- package/src/charts/useChartTheme.ts +128 -0
- package/src/code/Code/index.tsx +38 -4
- package/src/code/CodeBlock/index.tsx +25 -9
- package/src/code/CodeInline.stories.tsx +74 -0
- package/src/code/HighlightedCode/HighlightedCode.stories.tsx +36 -5
- package/src/code/HighlightedCode/index.tsx +15 -10
- package/src/code/Highlighter/Highlighter.spec.ts +35 -0
- package/src/code/Highlighter/index.ts +40 -11
- package/src/code/highlightedCode.spec.tsx +97 -0
- package/src/componentColors.ts +40 -12
- package/src/feedback/ConfirmDialog.spec.tsx +331 -0
- package/src/feedback/ConfirmDialog.stories.tsx +160 -0
- package/src/feedback/ConfirmDialog.tsx +186 -0
- package/src/feedback/Notify.stories.tsx +175 -0
- package/src/feedback/NotifyHost.tsx +139 -0
- package/src/feedback/index.ts +22 -0
- package/src/feedback/notify.spec.ts +180 -0
- package/src/feedback/notify.ts +54 -0
- package/src/feedback/route.ts +118 -0
- package/src/feedback/store.ts +71 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useClipboard.spec.tsx +26 -0
- package/src/hooks/useClipboard.ts +16 -9
- package/src/hooks/useDirection.native.ts +16 -0
- package/src/hooks/useDirection.spec.tsx +89 -0
- package/src/hooks/useDirection.ts +67 -0
- package/src/hooks/useDocumentTitle.spec.tsx +88 -0
- package/src/hooks/useDocumentTitle.ts +76 -0
- package/src/icons/CheckRegular.stories.tsx +75 -0
- package/src/icons/MinusRegular.stories.tsx +84 -0
- package/src/icons/index.ts +1 -0
- package/src/icons/lucide.ts +5 -0
- package/src/images/Image/index.tsx +15 -0
- package/src/images/SvgUri/SvgUri.stories.tsx +22 -7
- package/src/index.ts +65 -3
- package/src/layouts/AsyncBoundary.spec.tsx +142 -0
- package/src/layouts/AsyncBoundary.stories.tsx +147 -0
- package/src/layouts/AsyncBoundary.tsx +400 -0
- package/src/layouts/Attachments.stories.tsx +29 -0
- package/src/layouts/Debug/debug.spec.tsx +58 -3
- package/src/layouts/EmptyState.stories.tsx +96 -0
- package/src/layouts/PageHeader.stories.tsx +90 -0
- package/src/layouts/PageSection.stories.tsx +85 -0
- package/src/layouts/PageTemplates.spec.tsx +136 -0
- package/src/layouts/PageTemplates.stories.tsx +107 -0
- package/src/layouts/PageTemplates.tsx +203 -0
- package/src/layouts/PaneScaffold.spec.tsx +139 -0
- package/src/layouts/PaneScaffold.stories.tsx +132 -0
- package/src/layouts/PaneScaffold.tsx +249 -0
- package/src/layouts/Screen.stories.tsx +104 -0
- package/src/layouts/ScreenToolbar.stories.tsx +81 -0
- package/src/layouts/Sidebar.stories.tsx +40 -34
- package/src/layouts/Timeline.stories.tsx +123 -0
- package/src/layouts/Toolbar.stories.tsx +31 -2
- package/src/layouts/ViewSwitcher.stories.tsx +42 -4
- package/src/layouts/ViewSwitcher.tsx +98 -6
- package/src/layouts/attachments.tsx +186 -48
- package/src/layouts/breadcrumbs.tsx +64 -13
- package/src/layouts/index.tsx +15 -0
- package/src/layouts/layouts.spec.tsx +164 -1
- package/src/layouts/page.tsx +257 -41
- package/src/layouts/pageHeadingScope.tsx +87 -0
- package/src/layouts/pageHeadings.spec.tsx +151 -0
- package/src/layouts/sidebar.tsx +95 -20
- package/src/layouts/tags-trigger.spec.tsx +73 -0
- package/src/layouts/tags.tsx +132 -89
- package/src/layouts/timeline-comments.spec.tsx +243 -0
- package/src/layouts/timeline-radius.spec.tsx +57 -0
- package/src/layouts/timeline.tsx +661 -232
- package/src/layouts/toolbar.tsx +161 -38
- package/src/shared/actionScan.ts +40 -0
- package/src/shared/t.ts +29 -0
- package/src/shared/useReturnFocusOnClose.ts +51 -0
- package/src/surfaces.spec.tsx +51 -0
- package/src/surfaces.tsx +152 -58
- package/src/tamagui.spec.ts +182 -0
- package/src/tamagui.ts +126 -0
- package/src/views/Calendar.motion.spec.tsx +204 -0
- package/src/views/Calendar.stories.tsx +252 -4
- package/src/views/Calendar.tsx +2156 -156
- package/src/views/Dashboard.stories.tsx +52 -3
- package/src/views/Dashboard.tsx +200 -359
- package/src/views/Gantt.spec.tsx +611 -0
- package/src/views/Gantt.stories.tsx +209 -0
- package/src/views/Gantt.tsx +1183 -0
- package/src/views/ImageGrid.stories.tsx +56 -2
- package/src/views/ImageGrid.tsx +172 -43
- package/src/views/Kanban.native.tsx +801 -72
- package/src/views/Kanban.stories.tsx +187 -1
- package/src/views/Kanban.tsx +1188 -69
- package/src/views/List.stories.tsx +54 -2
- package/src/views/List.tsx +118 -78
- package/src/views/ReportBuilder.stories.tsx +38 -2
- package/src/views/ReportBuilder.tsx +98 -80
- package/src/views/TreeView.stories.tsx +98 -5
- package/src/views/TreeView.tsx +1099 -93
- package/src/views/calendarMath.spec.ts +197 -0
- package/src/views/calendarMath.ts +229 -0
- package/src/views/ganttMath.ts +333 -0
- package/src/views/index.ts +48 -1
- package/src/views/kanbanDnd.spec.ts +259 -0
- package/src/views/kanbanDnd.ts +323 -0
- package/src/views/treeViewDnd.spec.ts +353 -0
- package/src/views/treeViewDnd.ts +503 -0
- package/src/views/treeViewMotion.spec.ts +108 -0
- package/src/views/treeViewMotion.ts +100 -0
- package/src/views/tz-verify.spec.tsx +81 -0
- package/src/views/views.spec.tsx +602 -25
- package/types/Accordion/index.d.ts +59 -0
- package/types/Accordion/index.d.ts.map +1 -0
- package/types/Alert/index.d.ts +43 -0
- package/types/Alert/index.d.ts.map +1 -0
- package/types/Avatar/getInitials.d.ts +6 -0
- package/types/Avatar/getInitials.d.ts.map +1 -0
- package/types/Avatar/index.d.ts +55 -0
- package/types/Avatar/index.d.ts.map +1 -0
- package/types/Badge/index.d.ts +34 -0
- package/types/Badge/index.d.ts.map +1 -0
- package/types/Carousel/index.d.ts +29 -0
- package/types/Carousel/index.d.ts.map +1 -0
- package/types/Chip/index.d.ts +2 -0
- package/types/Chip/index.d.ts.map +1 -0
- package/types/DotIndicator/index.d.ts +31 -0
- package/types/DotIndicator/index.d.ts.map +1 -0
- package/types/DropdownMenu/index.d.ts +115 -0
- package/types/DropdownMenu/index.d.ts.map +1 -0
- package/types/ErrorBoundary/index.d.ts +18 -0
- package/types/ErrorBoundary/index.d.ts.map +1 -0
- package/types/Pagination.d.ts +48 -0
- package/types/Pagination.d.ts.map +1 -0
- package/types/ProgressSteps/index.d.ts +40 -0
- package/types/ProgressSteps/index.d.ts.map +1 -0
- package/types/Quote/index.d.ts +21 -0
- package/types/Quote/index.d.ts.map +1 -0
- package/types/SheetModal/index.d.ts +27 -0
- package/types/SheetModal/index.d.ts.map +1 -0
- package/types/SheetModal/index.native.d.ts +22 -0
- package/types/SheetModal/index.native.d.ts.map +1 -0
- package/types/Skeleton/index.d.ts +2 -0
- package/types/Skeleton/index.d.ts.map +1 -0
- package/types/SkipLink/index.d.ts +30 -0
- package/types/SkipLink/index.d.ts.map +1 -0
- package/types/Tabs/index.d.ts +394 -0
- package/types/Tabs/index.d.ts.map +1 -0
- package/types/Toast/index.d.ts +75 -0
- package/types/Toast/index.d.ts.map +1 -0
- package/types/Toast/store.d.ts +61 -0
- package/types/Toast/store.d.ts.map +1 -0
- package/types/Tooltip/index.d.ts +62 -0
- package/types/Tooltip/index.d.ts.map +1 -0
- package/types/Video/VideoFrame.d.ts +9 -0
- package/types/Video/VideoFrame.d.ts.map +1 -0
- package/types/Video/index.d.ts +9 -0
- package/types/Video/index.d.ts.map +1 -0
- package/types/Video/index.native.d.ts +8 -0
- package/types/Video/index.native.d.ts.map +1 -0
- package/types/Video/types.d.ts +17 -0
- package/types/Video/types.d.ts.map +1 -0
- package/types/Wheel/index.d.ts +41 -0
- package/types/Wheel/index.d.ts.map +1 -0
- package/types/actions/ActionBar.d.ts +34 -0
- package/types/actions/ActionBar.d.ts.map +1 -0
- package/types/actions/DestructiveAction.d.ts +49 -0
- package/types/actions/DestructiveAction.d.ts.map +1 -0
- package/types/actions/devWarn.d.ts +12 -0
- package/types/actions/devWarn.d.ts.map +1 -0
- package/types/actions/index.d.ts +6 -0
- package/types/actions/index.d.ts.map +1 -0
- package/types/actions/severity.d.ts +24 -0
- package/types/actions/severity.d.ts.map +1 -0
- package/types/charts/Axis.d.ts +43 -0
- package/types/charts/Axis.d.ts.map +1 -0
- package/types/charts/BarChart.d.ts +35 -0
- package/types/charts/BarChart.d.ts.map +1 -0
- package/types/charts/ChartSurface.d.ts +34 -0
- package/types/charts/ChartSurface.d.ts.map +1 -0
- package/types/charts/LineChart.d.ts +39 -0
- package/types/charts/LineChart.d.ts.map +1 -0
- package/types/charts/PieChart.d.ts +37 -0
- package/types/charts/PieChart.d.ts.map +1 -0
- package/types/charts/Sparkline.d.ts +27 -0
- package/types/charts/Sparkline.d.ts.map +1 -0
- package/types/charts/accessibility.d.ts +39 -0
- package/types/charts/accessibility.d.ts.map +1 -0
- package/types/charts/composeChart.d.ts +41 -0
- package/types/charts/composeChart.d.ts.map +1 -0
- package/types/charts/index.d.ts +12 -0
- package/types/charts/index.d.ts.map +1 -0
- package/types/charts/math.d.ts +115 -0
- package/types/charts/math.d.ts.map +1 -0
- package/types/charts/series.d.ts +85 -0
- package/types/charts/series.d.ts.map +1 -0
- package/types/charts/svg.d.ts +42 -0
- package/types/charts/svg.d.ts.map +1 -0
- package/types/charts/types.d.ts +49 -0
- package/types/charts/types.d.ts.map +1 -0
- package/types/charts/useChartTheme.d.ts +44 -0
- package/types/charts/useChartTheme.d.ts.map +1 -0
- package/types/code/Code/index.d.ts +30 -0
- package/types/code/Code/index.d.ts.map +1 -0
- package/types/code/CodeBlock/index.d.ts +25 -0
- package/types/code/CodeBlock/index.d.ts.map +1 -0
- package/types/code/HighlightedCode/index.d.ts +24 -0
- package/types/code/HighlightedCode/index.d.ts.map +1 -0
- package/types/code/Highlighter/index.d.ts +33 -0
- package/types/code/Highlighter/index.d.ts.map +1 -0
- package/types/code/Pre/index.d.ts +8 -0
- package/types/code/Pre/index.d.ts.map +1 -0
- package/types/code/index.d.ts +6 -0
- package/types/code/index.d.ts.map +1 -0
- package/types/componentColors.d.ts +98 -0
- package/types/componentColors.d.ts.map +1 -0
- package/types/feedback/ConfirmDialog.d.ts +62 -0
- package/types/feedback/ConfirmDialog.d.ts.map +1 -0
- package/types/feedback/NotifyHost.d.ts +26 -0
- package/types/feedback/NotifyHost.d.ts.map +1 -0
- package/types/feedback/index.d.ts +6 -0
- package/types/feedback/index.d.ts.map +1 -0
- package/types/feedback/notify.d.ts +16 -0
- package/types/feedback/notify.d.ts.map +1 -0
- package/types/feedback/route.d.ts +67 -0
- package/types/feedback/route.d.ts.map +1 -0
- package/types/feedback/store.d.ts +25 -0
- package/types/feedback/store.d.ts.map +1 -0
- package/types/hooks/index.d.ts +5 -0
- package/types/hooks/index.d.ts.map +1 -0
- package/types/hooks/useAssets/index.d.ts +3 -0
- package/types/hooks/useAssets/index.d.ts.map +1 -0
- package/types/hooks/useAssets/index.native.d.ts +4 -0
- package/types/hooks/useAssets/index.native.d.ts.map +1 -0
- package/types/hooks/useClipboard.d.ts +23 -0
- package/types/hooks/useClipboard.d.ts.map +1 -0
- package/types/hooks/useDirection.d.ts +29 -0
- package/types/hooks/useDirection.d.ts.map +1 -0
- package/types/hooks/useDirection.native.d.ts +11 -0
- package/types/hooks/useDirection.native.d.ts.map +1 -0
- package/types/hooks/useDocumentTitle.d.ts +41 -0
- package/types/hooks/useDocumentTitle.d.ts.map +1 -0
- package/types/icons/CheckRegular.d.ts +11 -0
- package/types/icons/CheckRegular.d.ts.map +1 -0
- package/types/icons/MinusRegular.d.ts +11 -0
- package/types/icons/MinusRegular.d.ts.map +1 -0
- package/types/icons/index.d.ts +4 -0
- package/types/icons/index.d.ts.map +1 -0
- package/types/icons/lucide.d.ts +4 -0
- package/types/icons/lucide.d.ts.map +1 -0
- package/types/icons/themed.d.ts +3 -0
- package/types/icons/themed.d.ts.map +1 -0
- package/types/images/Image/index.d.ts +4 -0
- package/types/images/Image/index.d.ts.map +1 -0
- package/types/images/Image/index.native.d.ts +4 -0
- package/types/images/Image/index.native.d.ts.map +1 -0
- package/types/images/Image/types.d.ts +8 -0
- package/types/images/Image/types.d.ts.map +1 -0
- package/types/images/Svg/index.d.ts +5 -0
- package/types/images/Svg/index.d.ts.map +1 -0
- package/types/images/Svg/index.native.d.ts +4 -0
- package/types/images/Svg/index.native.d.ts.map +1 -0
- package/types/images/SvgUri/index.d.ts +12 -0
- package/types/images/SvgUri/index.d.ts.map +1 -0
- package/types/images/SvgUri/index.native.d.ts +5 -0
- package/types/images/SvgUri/index.native.d.ts.map +1 -0
- package/types/images/index.d.ts +4 -0
- package/types/images/index.d.ts.map +1 -0
- package/types/index.d.ts +52 -0
- package/types/index.d.ts.map +1 -0
- package/types/layouts/AsyncBoundary.d.ts +94 -0
- package/types/layouts/AsyncBoundary.d.ts.map +1 -0
- package/types/layouts/Debug/index.d.ts +17 -0
- package/types/layouts/Debug/index.d.ts.map +1 -0
- package/types/layouts/KeyboardAvoidingWrapper/index.d.ts +29 -0
- package/types/layouts/KeyboardAvoidingWrapper/index.d.ts.map +1 -0
- package/types/layouts/KeyboardAvoidingWrapper/index.native.d.ts +29 -0
- package/types/layouts/KeyboardAvoidingWrapper/index.native.d.ts.map +1 -0
- package/types/layouts/PageTemplates.d.ts +94 -0
- package/types/layouts/PageTemplates.d.ts.map +1 -0
- package/types/layouts/PaneScaffold.d.ts +83 -0
- package/types/layouts/PaneScaffold.d.ts.map +1 -0
- package/types/layouts/SafeAreaWrapper/index.d.ts +24 -0
- package/types/layouts/SafeAreaWrapper/index.d.ts.map +1 -0
- package/types/layouts/SafeAreaWrapper/index.native.d.ts +25 -0
- package/types/layouts/SafeAreaWrapper/index.native.d.ts.map +1 -0
- package/types/layouts/ViewSwitcher.d.ts +27 -0
- package/types/layouts/ViewSwitcher.d.ts.map +1 -0
- package/types/layouts/attachments.d.ts +91 -0
- package/types/layouts/attachments.d.ts.map +1 -0
- package/types/layouts/breadcrumbs.d.ts +17 -0
- package/types/layouts/breadcrumbs.d.ts.map +1 -0
- package/types/layouts/index.d.ts +16 -0
- package/types/layouts/index.d.ts.map +1 -0
- package/types/layouts/page.d.ts +138 -0
- package/types/layouts/page.d.ts.map +1 -0
- package/types/layouts/pageHeadingScope.d.ts +43 -0
- package/types/layouts/pageHeadingScope.d.ts.map +1 -0
- package/types/layouts/sidebar.d.ts +25 -0
- package/types/layouts/sidebar.d.ts.map +1 -0
- package/types/layouts/tags.d.ts +72 -0
- package/types/layouts/tags.d.ts.map +1 -0
- package/types/layouts/timeline.d.ts +148 -0
- package/types/layouts/timeline.d.ts.map +1 -0
- package/types/layouts/toolbar.d.ts +33 -0
- package/types/layouts/toolbar.d.ts.map +1 -0
- package/types/shared/actionScan.d.ts +16 -0
- package/types/shared/actionScan.d.ts.map +1 -0
- package/types/shared/t.d.ts +18 -0
- package/types/shared/t.d.ts.map +1 -0
- package/types/shared/useReturnFocusOnClose.d.ts +18 -0
- package/types/shared/useReturnFocusOnClose.d.ts.map +1 -0
- package/types/surfaces.d.ts +294 -0
- package/types/surfaces.d.ts.map +1 -0
- package/types/tamagui.d.ts +10 -0
- package/types/tamagui.d.ts.map +1 -0
- package/types/testSetup.d.ts +2 -0
- package/types/testSetup.d.ts.map +1 -0
- package/types/utils/setTinted.d.ts +5 -0
- package/types/utils/setTinted.d.ts.map +1 -0
- package/types/utils/unwrapText.d.ts +3 -0
- package/types/utils/unwrapText.d.ts.map +1 -0
- package/types/views/Calendar.d.ts +135 -0
- package/types/views/Calendar.d.ts.map +1 -0
- package/types/views/Dashboard.d.ts +175 -0
- package/types/views/Dashboard.d.ts.map +1 -0
- package/types/views/Gantt.d.ts +121 -0
- package/types/views/Gantt.d.ts.map +1 -0
- package/types/views/ImageGrid.d.ts +82 -0
- package/types/views/ImageGrid.d.ts.map +1 -0
- package/types/views/Kanban.d.ts +123 -0
- package/types/views/Kanban.d.ts.map +1 -0
- package/types/views/Kanban.native.d.ts +102 -0
- package/types/views/Kanban.native.d.ts.map +1 -0
- package/types/views/List.d.ts +82 -0
- package/types/views/List.d.ts.map +1 -0
- package/types/views/ReportBuilder.d.ts +83 -0
- package/types/views/ReportBuilder.d.ts.map +1 -0
- package/types/views/TreeView.d.ts +110 -0
- package/types/views/TreeView.d.ts.map +1 -0
- package/types/views/calendarMath.d.ts +95 -0
- package/types/views/calendarMath.d.ts.map +1 -0
- package/types/views/ganttMath.d.ts +122 -0
- package/types/views/ganttMath.d.ts.map +1 -0
- package/types/views/index.d.ts +12 -0
- package/types/views/index.d.ts.map +1 -0
- package/types/views/kanbanDnd.d.ts +170 -0
- package/types/views/kanbanDnd.d.ts.map +1 -0
- package/types/views/treeViewDnd.d.ts +164 -0
- package/types/views/treeViewDnd.d.ts.map +1 -0
- package/types/views/treeViewMotion.d.ts +51 -0
- package/types/views/treeViewMotion.d.ts.map +1 -0
- package/dist/cjs/Badge/Badge.stories.cjs +0 -495
- package/dist/cjs/Badge/Badge.stories.native.js +0 -525
- package/dist/cjs/Badge/Badge.stories.native.js.map +0 -1
- package/dist/cjs/Carousel/Carousel.stories.cjs +0 -336
- package/dist/cjs/Carousel/Carousel.stories.native.js +0 -396
- package/dist/cjs/Carousel/Carousel.stories.native.js.map +0 -1
- package/dist/cjs/Chip/Chip.stories.cjs +0 -257
- package/dist/cjs/Chip/Chip.stories.native.js +0 -286
- package/dist/cjs/Chip/Chip.stories.native.js.map +0 -1
- package/dist/cjs/DotIndicator/DotIndicator.stories.cjs +0 -284
- package/dist/cjs/DotIndicator/DotIndicator.stories.native.js +0 -308
- package/dist/cjs/DotIndicator/DotIndicator.stories.native.js.map +0 -1
- package/dist/cjs/ErrorBoundary/ErrorBoundary.spec.cjs +0 -48
- package/dist/cjs/ErrorBoundary/ErrorBoundary.spec.native.js +0 -51
- package/dist/cjs/ErrorBoundary/ErrorBoundary.spec.native.js.map +0 -1
- package/dist/cjs/ErrorBoundary/ErrorBoundary.stories.cjs +0 -164
- package/dist/cjs/ErrorBoundary/ErrorBoundary.stories.native.js +0 -181
- package/dist/cjs/ErrorBoundary/ErrorBoundary.stories.native.js.map +0 -1
- package/dist/cjs/Pagination.stories.cjs +0 -178
- package/dist/cjs/Pagination.stories.native.js +0 -197
- package/dist/cjs/Pagination.stories.native.js.map +0 -1
- package/dist/cjs/Skeleton/Skeleton.stories.cjs +0 -434
- package/dist/cjs/Skeleton/Skeleton.stories.native.js +0 -465
- package/dist/cjs/Skeleton/Skeleton.stories.native.js.map +0 -1
- package/dist/cjs/Tooltip/Tooltip.stories.cjs +0 -105
- package/dist/cjs/Tooltip/Tooltip.stories.native.js +0 -114
- package/dist/cjs/Tooltip/Tooltip.stories.native.js.map +0 -1
- package/dist/cjs/Wheel/Wheel.stories.cjs +0 -353
- package/dist/cjs/Wheel/Wheel.stories.native.js +0 -382
- package/dist/cjs/Wheel/Wheel.stories.native.js.map +0 -1
- package/dist/cjs/code/Code/Code.stories.cjs +0 -46
- package/dist/cjs/code/Code/Code.stories.native.js +0 -49
- package/dist/cjs/code/Code/Code.stories.native.js.map +0 -1
- package/dist/cjs/code/Code/code.spec.cjs +0 -65
- package/dist/cjs/code/Code/code.spec.native.js +0 -68
- package/dist/cjs/code/Code/code.spec.native.js.map +0 -1
- package/dist/cjs/code/CodeBlock/CodeBlock.spec.cjs +0 -73
- package/dist/cjs/code/CodeBlock/CodeBlock.spec.native.js +0 -76
- package/dist/cjs/code/CodeBlock/CodeBlock.spec.native.js.map +0 -1
- package/dist/cjs/code/CodeBlock/codeBlock.stories.cjs +0 -57
- package/dist/cjs/code/CodeBlock/codeBlock.stories.native.js +0 -60
- package/dist/cjs/code/CodeBlock/codeBlock.stories.native.js.map +0 -1
- package/dist/cjs/code/HighlightedCode/HighlightedCode.stories.cjs +0 -123
- package/dist/cjs/code/HighlightedCode/HighlightedCode.stories.native.js +0 -134
- package/dist/cjs/code/HighlightedCode/HighlightedCode.stories.native.js.map +0 -1
- package/dist/cjs/code/Pre/Pre.stories.cjs +0 -135
- package/dist/cjs/code/Pre/Pre.stories.native.js +0 -148
- package/dist/cjs/code/Pre/Pre.stories.native.js.map +0 -1
- package/dist/cjs/code/Pre/pre.spec.cjs +0 -139
- package/dist/cjs/code/Pre/pre.spec.native.js +0 -145
- package/dist/cjs/code/Pre/pre.spec.native.js.map +0 -1
- package/dist/cjs/code/code.spec.cjs +0 -46
- package/dist/cjs/code/code.spec.native.js +0 -49
- package/dist/cjs/code/code.spec.native.js.map +0 -1
- package/dist/cjs/hooks/useAssets/useAssets.spec.cjs +0 -200
- package/dist/cjs/hooks/useAssets/useAssets.spec.native.js +0 -249
- package/dist/cjs/hooks/useAssets/useAssets.spec.native.js.map +0 -1
- package/dist/cjs/hooks/useClipboard.spec.cjs +0 -165
- package/dist/cjs/hooks/useClipboard.spec.native.js +0 -184
- package/dist/cjs/hooks/useClipboard.spec.native.js.map +0 -1
- package/dist/cjs/icons/icons.spec.cjs +0 -33
- package/dist/cjs/icons/icons.spec.native.js +0 -36
- package/dist/cjs/icons/icons.spec.native.js.map +0 -1
- package/dist/cjs/images/Image/Image.spec.cjs +0 -238
- package/dist/cjs/images/Image/Image.spec.native.js +0 -241
- package/dist/cjs/images/Image/Image.spec.native.js.map +0 -1
- package/dist/cjs/images/Image/Image.stories.cjs +0 -184
- package/dist/cjs/images/Image/Image.stories.native.js +0 -191
- package/dist/cjs/images/Image/Image.stories.native.js.map +0 -1
- package/dist/cjs/images/Svg/Svg.stories.cjs +0 -54
- package/dist/cjs/images/Svg/Svg.stories.native.js +0 -59
- package/dist/cjs/images/Svg/Svg.stories.native.js.map +0 -1
- package/dist/cjs/images/Svg/svg.spec.cjs +0 -186
- package/dist/cjs/images/Svg/svg.spec.native.js +0 -189
- package/dist/cjs/images/Svg/svg.spec.native.js.map +0 -1
- package/dist/cjs/images/SvgUri/SvgUri.spec.cjs +0 -160
- package/dist/cjs/images/SvgUri/SvgUri.spec.native.js +0 -168
- package/dist/cjs/images/SvgUri/SvgUri.spec.native.js.map +0 -1
- package/dist/cjs/images/SvgUri/SvgUri.stories.cjs +0 -123
- package/dist/cjs/images/SvgUri/SvgUri.stories.native.js +0 -136
- package/dist/cjs/images/SvgUri/SvgUri.stories.native.js.map +0 -1
- package/dist/cjs/images/images.spec.cjs +0 -104
- package/dist/cjs/images/images.spec.native.js +0 -107
- package/dist/cjs/images/images.spec.native.js.map +0 -1
- package/dist/cjs/layouts/Attachments.stories.cjs +0 -192
- package/dist/cjs/layouts/Attachments.stories.native.js +0 -217
- package/dist/cjs/layouts/Attachments.stories.native.js.map +0 -1
- package/dist/cjs/layouts/Breadcrumbs.stories.cjs +0 -67
- package/dist/cjs/layouts/Breadcrumbs.stories.native.js +0 -76
- package/dist/cjs/layouts/Breadcrumbs.stories.native.js.map +0 -1
- package/dist/cjs/layouts/Debug/DebugLayout.stories.cjs +0 -48
- package/dist/cjs/layouts/Debug/DebugLayout.stories.native.js +0 -55
- package/dist/cjs/layouts/Debug/DebugLayout.stories.native.js.map +0 -1
- package/dist/cjs/layouts/Debug/debug.spec.cjs +0 -198
- package/dist/cjs/layouts/Debug/debug.spec.native.js +0 -233
- package/dist/cjs/layouts/Debug/debug.spec.native.js.map +0 -1
- package/dist/cjs/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.cjs +0 -62
- package/dist/cjs/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.native.js +0 -67
- package/dist/cjs/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.native.js.map +0 -1
- package/dist/cjs/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.cjs +0 -58
- package/dist/cjs/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.native.js +0 -63
- package/dist/cjs/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.native.js.map +0 -1
- package/dist/cjs/layouts/Sidebar.stories.cjs +0 -98
- package/dist/cjs/layouts/Sidebar.stories.native.js +0 -103
- package/dist/cjs/layouts/Sidebar.stories.native.js.map +0 -1
- package/dist/cjs/layouts/Tags.stories.cjs +0 -205
- package/dist/cjs/layouts/Tags.stories.native.js +0 -232
- package/dist/cjs/layouts/Tags.stories.native.js.map +0 -1
- package/dist/cjs/layouts/Timeline.stories.cjs +0 -212
- package/dist/cjs/layouts/Timeline.stories.native.js +0 -241
- package/dist/cjs/layouts/Timeline.stories.native.js.map +0 -1
- package/dist/cjs/layouts/Toolbar.stories.cjs +0 -90
- package/dist/cjs/layouts/Toolbar.stories.native.js +0 -97
- package/dist/cjs/layouts/Toolbar.stories.native.js.map +0 -1
- package/dist/cjs/layouts/ViewSwitcher.stories.cjs +0 -70
- package/dist/cjs/layouts/ViewSwitcher.stories.native.js +0 -75
- package/dist/cjs/layouts/ViewSwitcher.stories.native.js.map +0 -1
- package/dist/cjs/layouts/layouts.spec.cjs +0 -249
- package/dist/cjs/layouts/layouts.spec.native.js +0 -272
- package/dist/cjs/layouts/layouts.spec.native.js.map +0 -1
- package/dist/cjs/src.spec.cjs +0 -6
- package/dist/cjs/src.spec.native.js +0 -9
- package/dist/cjs/src.spec.native.js.map +0 -1
- package/dist/cjs/utils/utils.spec.cjs +0 -58
- package/dist/cjs/utils/utils.spec.native.js +0 -61
- package/dist/cjs/utils/utils.spec.native.js.map +0 -1
- package/dist/cjs/views/Calendar.stories.cjs +0 -66
- package/dist/cjs/views/Calendar.stories.native.js +0 -73
- package/dist/cjs/views/Calendar.stories.native.js.map +0 -1
- package/dist/cjs/views/Dashboard.stories.cjs +0 -95
- package/dist/cjs/views/Dashboard.stories.native.js +0 -100
- package/dist/cjs/views/Dashboard.stories.native.js.map +0 -1
- package/dist/cjs/views/ImageGrid.stories.cjs +0 -68
- package/dist/cjs/views/ImageGrid.stories.native.js +0 -79
- package/dist/cjs/views/ImageGrid.stories.native.js.map +0 -1
- package/dist/cjs/views/Kanban.stories.cjs +0 -82
- package/dist/cjs/views/Kanban.stories.native.js +0 -91
- package/dist/cjs/views/Kanban.stories.native.js.map +0 -1
- package/dist/cjs/views/List.stories.cjs +0 -74
- package/dist/cjs/views/List.stories.native.js +0 -85
- package/dist/cjs/views/List.stories.native.js.map +0 -1
- package/dist/cjs/views/ReportBuilder.stories.cjs +0 -89
- package/dist/cjs/views/ReportBuilder.stories.native.js +0 -96
- package/dist/cjs/views/ReportBuilder.stories.native.js.map +0 -1
- package/dist/cjs/views/TreeView.stories.cjs +0 -94
- package/dist/cjs/views/TreeView.stories.native.js +0 -101
- package/dist/cjs/views/TreeView.stories.native.js.map +0 -1
- package/dist/cjs/views/hotkeys.spec.cjs +0 -210
- package/dist/cjs/views/hotkeys.spec.native.js +0 -253
- package/dist/cjs/views/hotkeys.spec.native.js.map +0 -1
- package/dist/cjs/views/views.spec.cjs +0 -313
- package/dist/cjs/views/views.spec.native.js +0 -344
- package/dist/cjs/views/views.spec.native.js.map +0 -1
- package/dist/esm/Badge/Badge.stories.mjs +0 -459
- package/dist/esm/Badge/Badge.stories.mjs.map +0 -1
- package/dist/esm/Badge/Badge.stories.native.js +0 -486
- package/dist/esm/Badge/Badge.stories.native.js.map +0 -1
- package/dist/esm/Carousel/Carousel.stories.mjs +0 -299
- package/dist/esm/Carousel/Carousel.stories.mjs.map +0 -1
- package/dist/esm/Carousel/Carousel.stories.native.js +0 -356
- package/dist/esm/Carousel/Carousel.stories.native.js.map +0 -1
- package/dist/esm/Chip/Chip.stories.mjs +0 -225
- package/dist/esm/Chip/Chip.stories.mjs.map +0 -1
- package/dist/esm/Chip/Chip.stories.native.js +0 -251
- package/dist/esm/Chip/Chip.stories.native.js.map +0 -1
- package/dist/esm/DotIndicator/DotIndicator.stories.mjs +0 -252
- package/dist/esm/DotIndicator/DotIndicator.stories.mjs.map +0 -1
- package/dist/esm/DotIndicator/DotIndicator.stories.native.js +0 -273
- package/dist/esm/DotIndicator/DotIndicator.stories.native.js.map +0 -1
- package/dist/esm/ErrorBoundary/ErrorBoundary.spec.mjs +0 -49
- package/dist/esm/ErrorBoundary/ErrorBoundary.spec.mjs.map +0 -1
- package/dist/esm/ErrorBoundary/ErrorBoundary.spec.native.js +0 -49
- package/dist/esm/ErrorBoundary/ErrorBoundary.spec.native.js.map +0 -1
- package/dist/esm/ErrorBoundary/ErrorBoundary.stories.mjs +0 -134
- package/dist/esm/ErrorBoundary/ErrorBoundary.stories.mjs.map +0 -1
- package/dist/esm/ErrorBoundary/ErrorBoundary.stories.native.js +0 -148
- package/dist/esm/ErrorBoundary/ErrorBoundary.stories.native.js.map +0 -1
- package/dist/esm/Pagination.stories.mjs +0 -145
- package/dist/esm/Pagination.stories.mjs.map +0 -1
- package/dist/esm/Pagination.stories.native.js +0 -161
- package/dist/esm/Pagination.stories.native.js.map +0 -1
- package/dist/esm/Skeleton/Skeleton.stories.mjs +0 -398
- package/dist/esm/Skeleton/Skeleton.stories.mjs.map +0 -1
- package/dist/esm/Skeleton/Skeleton.stories.native.js +0 -426
- package/dist/esm/Skeleton/Skeleton.stories.native.js.map +0 -1
- package/dist/esm/Tooltip/Tooltip.stories.mjs +0 -77
- package/dist/esm/Tooltip/Tooltip.stories.mjs.map +0 -1
- package/dist/esm/Tooltip/Tooltip.stories.native.js +0 -83
- package/dist/esm/Tooltip/Tooltip.stories.native.js.map +0 -1
- package/dist/esm/Wheel/Wheel.stories.mjs +0 -319
- package/dist/esm/Wheel/Wheel.stories.mjs.map +0 -1
- package/dist/esm/Wheel/Wheel.stories.native.js +0 -345
- package/dist/esm/Wheel/Wheel.stories.native.js.map +0 -1
- package/dist/esm/code/Code/Code.stories.mjs +0 -20
- package/dist/esm/code/Code/Code.stories.mjs.map +0 -1
- package/dist/esm/code/Code/Code.stories.native.js +0 -20
- package/dist/esm/code/Code/Code.stories.native.js.map +0 -1
- package/dist/esm/code/Code/code.spec.mjs +0 -66
- package/dist/esm/code/Code/code.spec.mjs.map +0 -1
- package/dist/esm/code/Code/code.spec.native.js +0 -66
- package/dist/esm/code/Code/code.spec.native.js.map +0 -1
- package/dist/esm/code/CodeBlock/CodeBlock.spec.mjs +0 -74
- package/dist/esm/code/CodeBlock/CodeBlock.spec.mjs.map +0 -1
- package/dist/esm/code/CodeBlock/CodeBlock.spec.native.js +0 -74
- package/dist/esm/code/CodeBlock/CodeBlock.spec.native.js.map +0 -1
- package/dist/esm/code/CodeBlock/codeBlock.stories.mjs +0 -31
- package/dist/esm/code/CodeBlock/codeBlock.stories.mjs.map +0 -1
- package/dist/esm/code/CodeBlock/codeBlock.stories.native.js +0 -31
- package/dist/esm/code/CodeBlock/codeBlock.stories.native.js.map +0 -1
- package/dist/esm/code/HighlightedCode/HighlightedCode.stories.mjs +0 -94
- package/dist/esm/code/HighlightedCode/HighlightedCode.stories.mjs.map +0 -1
- package/dist/esm/code/HighlightedCode/HighlightedCode.stories.native.js +0 -102
- package/dist/esm/code/HighlightedCode/HighlightedCode.stories.native.js.map +0 -1
- package/dist/esm/code/Pre/Pre.stories.mjs +0 -105
- package/dist/esm/code/Pre/Pre.stories.mjs.map +0 -1
- package/dist/esm/code/Pre/Pre.stories.native.js +0 -115
- package/dist/esm/code/Pre/Pre.stories.native.js.map +0 -1
- package/dist/esm/code/Pre/pre.spec.mjs +0 -140
- package/dist/esm/code/Pre/pre.spec.mjs.map +0 -1
- package/dist/esm/code/Pre/pre.spec.native.js +0 -143
- package/dist/esm/code/Pre/pre.spec.native.js.map +0 -1
- package/dist/esm/code/code.spec.mjs +0 -47
- package/dist/esm/code/code.spec.mjs.map +0 -1
- package/dist/esm/code/code.spec.native.js +0 -47
- package/dist/esm/code/code.spec.native.js.map +0 -1
- package/dist/esm/hooks/useAssets/useAssets.spec.mjs +0 -177
- package/dist/esm/hooks/useAssets/useAssets.spec.mjs.map +0 -1
- package/dist/esm/hooks/useAssets/useAssets.spec.native.js +0 -223
- package/dist/esm/hooks/useAssets/useAssets.spec.native.js.map +0 -1
- package/dist/esm/hooks/useClipboard.spec.mjs +0 -166
- package/dist/esm/hooks/useClipboard.spec.mjs.map +0 -1
- package/dist/esm/hooks/useClipboard.spec.native.js +0 -182
- package/dist/esm/hooks/useClipboard.spec.native.js.map +0 -1
- package/dist/esm/icons/icons.spec.mjs +0 -34
- package/dist/esm/icons/icons.spec.mjs.map +0 -1
- package/dist/esm/icons/icons.spec.native.js +0 -34
- package/dist/esm/icons/icons.spec.native.js.map +0 -1
- package/dist/esm/images/Image/Image.spec.mjs +0 -239
- package/dist/esm/images/Image/Image.spec.mjs.map +0 -1
- package/dist/esm/images/Image/Image.spec.native.js +0 -239
- package/dist/esm/images/Image/Image.spec.native.js.map +0 -1
- package/dist/esm/images/Image/Image.stories.mjs +0 -147
- package/dist/esm/images/Image/Image.stories.mjs.map +0 -1
- package/dist/esm/images/Image/Image.stories.native.js +0 -151
- package/dist/esm/images/Image/Image.stories.native.js.map +0 -1
- package/dist/esm/images/Svg/Svg.stories.mjs +0 -28
- package/dist/esm/images/Svg/Svg.stories.mjs.map +0 -1
- package/dist/esm/images/Svg/Svg.stories.native.js +0 -30
- package/dist/esm/images/Svg/Svg.stories.native.js.map +0 -1
- package/dist/esm/images/Svg/svg.spec.mjs +0 -187
- package/dist/esm/images/Svg/svg.spec.mjs.map +0 -1
- package/dist/esm/images/Svg/svg.spec.native.js +0 -187
- package/dist/esm/images/Svg/svg.spec.native.js.map +0 -1
- package/dist/esm/images/SvgUri/SvgUri.spec.mjs +0 -161
- package/dist/esm/images/SvgUri/SvgUri.spec.mjs.map +0 -1
- package/dist/esm/images/SvgUri/SvgUri.spec.native.js +0 -166
- package/dist/esm/images/SvgUri/SvgUri.spec.native.js.map +0 -1
- package/dist/esm/images/SvgUri/SvgUri.stories.mjs +0 -93
- package/dist/esm/images/SvgUri/SvgUri.stories.mjs.map +0 -1
- package/dist/esm/images/SvgUri/SvgUri.stories.native.js +0 -103
- package/dist/esm/images/SvgUri/SvgUri.stories.native.js.map +0 -1
- package/dist/esm/images/images.spec.mjs +0 -81
- package/dist/esm/images/images.spec.mjs.map +0 -1
- package/dist/esm/images/images.spec.native.js +0 -81
- package/dist/esm/images/images.spec.native.js.map +0 -1
- package/dist/esm/layouts/Attachments.stories.mjs +0 -162
- package/dist/esm/layouts/Attachments.stories.mjs.map +0 -1
- package/dist/esm/layouts/Attachments.stories.native.js +0 -184
- package/dist/esm/layouts/Attachments.stories.native.js.map +0 -1
- package/dist/esm/layouts/Breadcrumbs.stories.mjs +0 -41
- package/dist/esm/layouts/Breadcrumbs.stories.mjs.map +0 -1
- package/dist/esm/layouts/Breadcrumbs.stories.native.js +0 -47
- package/dist/esm/layouts/Breadcrumbs.stories.native.js.map +0 -1
- package/dist/esm/layouts/Debug/DebugLayout.stories.mjs +0 -22
- package/dist/esm/layouts/Debug/DebugLayout.stories.mjs.map +0 -1
- package/dist/esm/layouts/Debug/DebugLayout.stories.native.js +0 -26
- package/dist/esm/layouts/Debug/DebugLayout.stories.native.js.map +0 -1
- package/dist/esm/layouts/Debug/debug.spec.mjs +0 -199
- package/dist/esm/layouts/Debug/debug.spec.mjs.map +0 -1
- package/dist/esm/layouts/Debug/debug.spec.native.js +0 -231
- package/dist/esm/layouts/Debug/debug.spec.native.js.map +0 -1
- package/dist/esm/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.mjs +0 -36
- package/dist/esm/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.mjs.map +0 -1
- package/dist/esm/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.native.js +0 -38
- package/dist/esm/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.native.js.map +0 -1
- package/dist/esm/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.mjs +0 -32
- package/dist/esm/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.mjs.map +0 -1
- package/dist/esm/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.native.js +0 -34
- package/dist/esm/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.native.js.map +0 -1
- package/dist/esm/layouts/Sidebar.stories.mjs +0 -72
- package/dist/esm/layouts/Sidebar.stories.mjs.map +0 -1
- package/dist/esm/layouts/Sidebar.stories.native.js +0 -74
- package/dist/esm/layouts/Sidebar.stories.native.js.map +0 -1
- package/dist/esm/layouts/Tags.stories.mjs +0 -175
- package/dist/esm/layouts/Tags.stories.mjs.map +0 -1
- package/dist/esm/layouts/Tags.stories.native.js +0 -199
- package/dist/esm/layouts/Tags.stories.native.js.map +0 -1
- package/dist/esm/layouts/Timeline.stories.mjs +0 -181
- package/dist/esm/layouts/Timeline.stories.mjs.map +0 -1
- package/dist/esm/layouts/Timeline.stories.native.js +0 -207
- package/dist/esm/layouts/Timeline.stories.native.js.map +0 -1
- package/dist/esm/layouts/Toolbar.stories.mjs +0 -63
- package/dist/esm/layouts/Toolbar.stories.mjs.map +0 -1
- package/dist/esm/layouts/Toolbar.stories.native.js +0 -67
- package/dist/esm/layouts/Toolbar.stories.native.js.map +0 -1
- package/dist/esm/layouts/ViewSwitcher.stories.mjs +0 -44
- package/dist/esm/layouts/ViewSwitcher.stories.mjs.map +0 -1
- package/dist/esm/layouts/ViewSwitcher.stories.native.js +0 -46
- package/dist/esm/layouts/ViewSwitcher.stories.native.js.map +0 -1
- package/dist/esm/layouts/layouts.spec.mjs +0 -226
- package/dist/esm/layouts/layouts.spec.mjs.map +0 -1
- package/dist/esm/layouts/layouts.spec.native.js +0 -246
- package/dist/esm/layouts/layouts.spec.native.js.map +0 -1
- package/dist/esm/src.spec.mjs +0 -7
- package/dist/esm/src.spec.mjs.map +0 -1
- package/dist/esm/src.spec.native.js +0 -7
- package/dist/esm/src.spec.native.js.map +0 -1
- package/dist/esm/utils/utils.spec.mjs +0 -59
- package/dist/esm/utils/utils.spec.mjs.map +0 -1
- package/dist/esm/utils/utils.spec.native.js +0 -59
- package/dist/esm/utils/utils.spec.native.js.map +0 -1
- package/dist/esm/views/Calendar.stories.mjs +0 -40
- package/dist/esm/views/Calendar.stories.mjs.map +0 -1
- package/dist/esm/views/Calendar.stories.native.js +0 -44
- package/dist/esm/views/Calendar.stories.native.js.map +0 -1
- package/dist/esm/views/Dashboard.stories.mjs +0 -69
- package/dist/esm/views/Dashboard.stories.mjs.map +0 -1
- package/dist/esm/views/Dashboard.stories.native.js +0 -71
- package/dist/esm/views/Dashboard.stories.native.js.map +0 -1
- package/dist/esm/views/ImageGrid.stories.mjs +0 -42
- package/dist/esm/views/ImageGrid.stories.mjs.map +0 -1
- package/dist/esm/views/ImageGrid.stories.native.js +0 -50
- package/dist/esm/views/ImageGrid.stories.native.js.map +0 -1
- package/dist/esm/views/Kanban.stories.mjs +0 -56
- package/dist/esm/views/Kanban.stories.mjs.map +0 -1
- package/dist/esm/views/Kanban.stories.native.js +0 -62
- package/dist/esm/views/Kanban.stories.native.js.map +0 -1
- package/dist/esm/views/List.stories.mjs +0 -48
- package/dist/esm/views/List.stories.mjs.map +0 -1
- package/dist/esm/views/List.stories.native.js +0 -56
- package/dist/esm/views/List.stories.native.js.map +0 -1
- package/dist/esm/views/ReportBuilder.stories.mjs +0 -63
- package/dist/esm/views/ReportBuilder.stories.mjs.map +0 -1
- package/dist/esm/views/ReportBuilder.stories.native.js +0 -67
- package/dist/esm/views/ReportBuilder.stories.native.js.map +0 -1
- package/dist/esm/views/TreeView.stories.mjs +0 -68
- package/dist/esm/views/TreeView.stories.mjs.map +0 -1
- package/dist/esm/views/TreeView.stories.native.js +0 -72
- package/dist/esm/views/TreeView.stories.native.js.map +0 -1
- package/dist/esm/views/hotkeys.spec.mjs +0 -211
- package/dist/esm/views/hotkeys.spec.mjs.map +0 -1
- package/dist/esm/views/hotkeys.spec.native.js +0 -227
- package/dist/esm/views/hotkeys.spec.native.js.map +0 -1
- package/dist/esm/views/views.spec.mjs +0 -290
- package/dist/esm/views/views.spec.mjs.map +0 -1
- package/dist/esm/views/views.spec.native.js +0 -318
- package/dist/esm/views/views.spec.native.js.map +0 -1
- package/dist/jsx/Badge/Badge.stories.mjs +0 -459
- package/dist/jsx/Badge/Badge.stories.mjs.map +0 -1
- package/dist/jsx/Badge/Badge.stories.native.js +0 -525
- package/dist/jsx/Badge/Badge.stories.native.js.map +0 -1
- package/dist/jsx/Carousel/Carousel.stories.mjs +0 -299
- package/dist/jsx/Carousel/Carousel.stories.mjs.map +0 -1
- package/dist/jsx/Carousel/Carousel.stories.native.js +0 -396
- package/dist/jsx/Carousel/Carousel.stories.native.js.map +0 -1
- package/dist/jsx/Chip/Chip.stories.mjs +0 -225
- package/dist/jsx/Chip/Chip.stories.mjs.map +0 -1
- package/dist/jsx/Chip/Chip.stories.native.js +0 -286
- package/dist/jsx/Chip/Chip.stories.native.js.map +0 -1
- package/dist/jsx/DotIndicator/DotIndicator.stories.mjs +0 -252
- package/dist/jsx/DotIndicator/DotIndicator.stories.mjs.map +0 -1
- package/dist/jsx/DotIndicator/DotIndicator.stories.native.js +0 -308
- package/dist/jsx/DotIndicator/DotIndicator.stories.native.js.map +0 -1
- package/dist/jsx/ErrorBoundary/ErrorBoundary.spec.mjs +0 -49
- package/dist/jsx/ErrorBoundary/ErrorBoundary.spec.mjs.map +0 -1
- package/dist/jsx/ErrorBoundary/ErrorBoundary.spec.native.js +0 -51
- package/dist/jsx/ErrorBoundary/ErrorBoundary.spec.native.js.map +0 -1
- package/dist/jsx/ErrorBoundary/ErrorBoundary.stories.mjs +0 -134
- package/dist/jsx/ErrorBoundary/ErrorBoundary.stories.mjs.map +0 -1
- package/dist/jsx/ErrorBoundary/ErrorBoundary.stories.native.js +0 -181
- package/dist/jsx/ErrorBoundary/ErrorBoundary.stories.native.js.map +0 -1
- package/dist/jsx/Pagination.stories.mjs +0 -145
- package/dist/jsx/Pagination.stories.mjs.map +0 -1
- package/dist/jsx/Pagination.stories.native.js +0 -197
- package/dist/jsx/Pagination.stories.native.js.map +0 -1
- package/dist/jsx/Skeleton/Skeleton.stories.mjs +0 -398
- package/dist/jsx/Skeleton/Skeleton.stories.mjs.map +0 -1
- package/dist/jsx/Skeleton/Skeleton.stories.native.js +0 -465
- package/dist/jsx/Skeleton/Skeleton.stories.native.js.map +0 -1
- package/dist/jsx/Tooltip/Tooltip.stories.mjs +0 -77
- package/dist/jsx/Tooltip/Tooltip.stories.mjs.map +0 -1
- package/dist/jsx/Tooltip/Tooltip.stories.native.js +0 -114
- package/dist/jsx/Tooltip/Tooltip.stories.native.js.map +0 -1
- package/dist/jsx/Wheel/Wheel.stories.mjs +0 -319
- package/dist/jsx/Wheel/Wheel.stories.mjs.map +0 -1
- package/dist/jsx/Wheel/Wheel.stories.native.js +0 -382
- package/dist/jsx/Wheel/Wheel.stories.native.js.map +0 -1
- package/dist/jsx/code/Code/Code.stories.mjs +0 -20
- package/dist/jsx/code/Code/Code.stories.mjs.map +0 -1
- package/dist/jsx/code/Code/Code.stories.native.js +0 -49
- package/dist/jsx/code/Code/Code.stories.native.js.map +0 -1
- package/dist/jsx/code/Code/code.spec.mjs +0 -66
- package/dist/jsx/code/Code/code.spec.mjs.map +0 -1
- package/dist/jsx/code/Code/code.spec.native.js +0 -68
- package/dist/jsx/code/Code/code.spec.native.js.map +0 -1
- package/dist/jsx/code/CodeBlock/CodeBlock.spec.mjs +0 -74
- package/dist/jsx/code/CodeBlock/CodeBlock.spec.mjs.map +0 -1
- package/dist/jsx/code/CodeBlock/CodeBlock.spec.native.js +0 -76
- package/dist/jsx/code/CodeBlock/CodeBlock.spec.native.js.map +0 -1
- package/dist/jsx/code/CodeBlock/codeBlock.stories.mjs +0 -31
- package/dist/jsx/code/CodeBlock/codeBlock.stories.mjs.map +0 -1
- package/dist/jsx/code/CodeBlock/codeBlock.stories.native.js +0 -60
- package/dist/jsx/code/CodeBlock/codeBlock.stories.native.js.map +0 -1
- package/dist/jsx/code/HighlightedCode/HighlightedCode.stories.mjs +0 -94
- package/dist/jsx/code/HighlightedCode/HighlightedCode.stories.mjs.map +0 -1
- package/dist/jsx/code/HighlightedCode/HighlightedCode.stories.native.js +0 -134
- package/dist/jsx/code/HighlightedCode/HighlightedCode.stories.native.js.map +0 -1
- package/dist/jsx/code/Pre/Pre.stories.mjs +0 -105
- package/dist/jsx/code/Pre/Pre.stories.mjs.map +0 -1
- package/dist/jsx/code/Pre/Pre.stories.native.js +0 -148
- package/dist/jsx/code/Pre/Pre.stories.native.js.map +0 -1
- package/dist/jsx/code/Pre/pre.spec.mjs +0 -140
- package/dist/jsx/code/Pre/pre.spec.mjs.map +0 -1
- package/dist/jsx/code/Pre/pre.spec.native.js +0 -145
- package/dist/jsx/code/Pre/pre.spec.native.js.map +0 -1
- package/dist/jsx/code/code.spec.mjs +0 -47
- package/dist/jsx/code/code.spec.mjs.map +0 -1
- package/dist/jsx/code/code.spec.native.js +0 -49
- package/dist/jsx/code/code.spec.native.js.map +0 -1
- package/dist/jsx/hooks/useAssets/useAssets.spec.mjs +0 -177
- package/dist/jsx/hooks/useAssets/useAssets.spec.mjs.map +0 -1
- package/dist/jsx/hooks/useAssets/useAssets.spec.native.js +0 -249
- package/dist/jsx/hooks/useAssets/useAssets.spec.native.js.map +0 -1
- package/dist/jsx/hooks/useClipboard.spec.mjs +0 -166
- package/dist/jsx/hooks/useClipboard.spec.mjs.map +0 -1
- package/dist/jsx/hooks/useClipboard.spec.native.js +0 -184
- package/dist/jsx/hooks/useClipboard.spec.native.js.map +0 -1
- package/dist/jsx/icons/icons.spec.mjs +0 -34
- package/dist/jsx/icons/icons.spec.mjs.map +0 -1
- package/dist/jsx/icons/icons.spec.native.js +0 -36
- package/dist/jsx/icons/icons.spec.native.js.map +0 -1
- package/dist/jsx/images/Image/Image.spec.mjs +0 -239
- package/dist/jsx/images/Image/Image.spec.mjs.map +0 -1
- package/dist/jsx/images/Image/Image.spec.native.js +0 -241
- package/dist/jsx/images/Image/Image.spec.native.js.map +0 -1
- package/dist/jsx/images/Image/Image.stories.mjs +0 -147
- package/dist/jsx/images/Image/Image.stories.mjs.map +0 -1
- package/dist/jsx/images/Image/Image.stories.native.js +0 -191
- package/dist/jsx/images/Image/Image.stories.native.js.map +0 -1
- package/dist/jsx/images/Svg/Svg.stories.mjs +0 -28
- package/dist/jsx/images/Svg/Svg.stories.mjs.map +0 -1
- package/dist/jsx/images/Svg/Svg.stories.native.js +0 -59
- package/dist/jsx/images/Svg/Svg.stories.native.js.map +0 -1
- package/dist/jsx/images/Svg/svg.spec.mjs +0 -187
- package/dist/jsx/images/Svg/svg.spec.mjs.map +0 -1
- package/dist/jsx/images/Svg/svg.spec.native.js +0 -189
- package/dist/jsx/images/Svg/svg.spec.native.js.map +0 -1
- package/dist/jsx/images/SvgUri/SvgUri.spec.mjs +0 -161
- package/dist/jsx/images/SvgUri/SvgUri.spec.mjs.map +0 -1
- package/dist/jsx/images/SvgUri/SvgUri.spec.native.js +0 -168
- package/dist/jsx/images/SvgUri/SvgUri.spec.native.js.map +0 -1
- package/dist/jsx/images/SvgUri/SvgUri.stories.mjs +0 -93
- package/dist/jsx/images/SvgUri/SvgUri.stories.mjs.map +0 -1
- package/dist/jsx/images/SvgUri/SvgUri.stories.native.js +0 -136
- package/dist/jsx/images/SvgUri/SvgUri.stories.native.js.map +0 -1
- package/dist/jsx/images/images.spec.mjs +0 -81
- package/dist/jsx/images/images.spec.mjs.map +0 -1
- package/dist/jsx/images/images.spec.native.js +0 -107
- package/dist/jsx/images/images.spec.native.js.map +0 -1
- package/dist/jsx/layouts/Attachments.stories.mjs +0 -162
- package/dist/jsx/layouts/Attachments.stories.mjs.map +0 -1
- package/dist/jsx/layouts/Attachments.stories.native.js +0 -217
- package/dist/jsx/layouts/Attachments.stories.native.js.map +0 -1
- package/dist/jsx/layouts/Breadcrumbs.stories.mjs +0 -41
- package/dist/jsx/layouts/Breadcrumbs.stories.mjs.map +0 -1
- package/dist/jsx/layouts/Breadcrumbs.stories.native.js +0 -76
- package/dist/jsx/layouts/Breadcrumbs.stories.native.js.map +0 -1
- package/dist/jsx/layouts/Debug/DebugLayout.stories.mjs +0 -22
- package/dist/jsx/layouts/Debug/DebugLayout.stories.mjs.map +0 -1
- package/dist/jsx/layouts/Debug/DebugLayout.stories.native.js +0 -55
- package/dist/jsx/layouts/Debug/DebugLayout.stories.native.js.map +0 -1
- package/dist/jsx/layouts/Debug/debug.spec.mjs +0 -199
- package/dist/jsx/layouts/Debug/debug.spec.mjs.map +0 -1
- package/dist/jsx/layouts/Debug/debug.spec.native.js +0 -233
- package/dist/jsx/layouts/Debug/debug.spec.native.js.map +0 -1
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.mjs +0 -36
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.mjs.map +0 -1
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.native.js +0 -67
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.native.js.map +0 -1
- package/dist/jsx/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.mjs +0 -32
- package/dist/jsx/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.mjs.map +0 -1
- package/dist/jsx/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.native.js +0 -63
- package/dist/jsx/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.native.js.map +0 -1
- package/dist/jsx/layouts/Sidebar.stories.mjs +0 -72
- package/dist/jsx/layouts/Sidebar.stories.mjs.map +0 -1
- package/dist/jsx/layouts/Sidebar.stories.native.js +0 -103
- package/dist/jsx/layouts/Sidebar.stories.native.js.map +0 -1
- package/dist/jsx/layouts/Tags.stories.mjs +0 -175
- package/dist/jsx/layouts/Tags.stories.mjs.map +0 -1
- package/dist/jsx/layouts/Tags.stories.native.js +0 -232
- package/dist/jsx/layouts/Tags.stories.native.js.map +0 -1
- package/dist/jsx/layouts/Timeline.stories.mjs +0 -181
- package/dist/jsx/layouts/Timeline.stories.mjs.map +0 -1
- package/dist/jsx/layouts/Timeline.stories.native.js +0 -241
- package/dist/jsx/layouts/Timeline.stories.native.js.map +0 -1
- package/dist/jsx/layouts/Toolbar.stories.mjs +0 -63
- package/dist/jsx/layouts/Toolbar.stories.mjs.map +0 -1
- package/dist/jsx/layouts/Toolbar.stories.native.js +0 -97
- package/dist/jsx/layouts/Toolbar.stories.native.js.map +0 -1
- package/dist/jsx/layouts/ViewSwitcher.stories.mjs +0 -44
- package/dist/jsx/layouts/ViewSwitcher.stories.mjs.map +0 -1
- package/dist/jsx/layouts/ViewSwitcher.stories.native.js +0 -75
- package/dist/jsx/layouts/ViewSwitcher.stories.native.js.map +0 -1
- package/dist/jsx/layouts/layouts.spec.mjs +0 -226
- package/dist/jsx/layouts/layouts.spec.mjs.map +0 -1
- package/dist/jsx/layouts/layouts.spec.native.js +0 -272
- package/dist/jsx/layouts/layouts.spec.native.js.map +0 -1
- package/dist/jsx/src.spec.mjs +0 -7
- package/dist/jsx/src.spec.mjs.map +0 -1
- package/dist/jsx/src.spec.native.js +0 -9
- package/dist/jsx/src.spec.native.js.map +0 -1
- package/dist/jsx/utils/utils.spec.mjs +0 -59
- package/dist/jsx/utils/utils.spec.mjs.map +0 -1
- package/dist/jsx/utils/utils.spec.native.js +0 -61
- package/dist/jsx/utils/utils.spec.native.js.map +0 -1
- package/dist/jsx/views/Calendar.stories.mjs +0 -40
- package/dist/jsx/views/Calendar.stories.mjs.map +0 -1
- package/dist/jsx/views/Calendar.stories.native.js +0 -73
- package/dist/jsx/views/Calendar.stories.native.js.map +0 -1
- package/dist/jsx/views/Dashboard.stories.mjs +0 -69
- package/dist/jsx/views/Dashboard.stories.mjs.map +0 -1
- package/dist/jsx/views/Dashboard.stories.native.js +0 -100
- package/dist/jsx/views/Dashboard.stories.native.js.map +0 -1
- package/dist/jsx/views/ImageGrid.stories.mjs +0 -42
- package/dist/jsx/views/ImageGrid.stories.mjs.map +0 -1
- package/dist/jsx/views/ImageGrid.stories.native.js +0 -79
- package/dist/jsx/views/ImageGrid.stories.native.js.map +0 -1
- package/dist/jsx/views/Kanban.stories.mjs +0 -56
- package/dist/jsx/views/Kanban.stories.mjs.map +0 -1
- package/dist/jsx/views/Kanban.stories.native.js +0 -91
- package/dist/jsx/views/Kanban.stories.native.js.map +0 -1
- package/dist/jsx/views/List.stories.mjs +0 -48
- package/dist/jsx/views/List.stories.mjs.map +0 -1
- package/dist/jsx/views/List.stories.native.js +0 -85
- package/dist/jsx/views/List.stories.native.js.map +0 -1
- package/dist/jsx/views/ReportBuilder.stories.mjs +0 -63
- package/dist/jsx/views/ReportBuilder.stories.mjs.map +0 -1
- package/dist/jsx/views/ReportBuilder.stories.native.js +0 -96
- package/dist/jsx/views/ReportBuilder.stories.native.js.map +0 -1
- package/dist/jsx/views/TreeView.stories.mjs +0 -68
- package/dist/jsx/views/TreeView.stories.mjs.map +0 -1
- package/dist/jsx/views/TreeView.stories.native.js +0 -101
- package/dist/jsx/views/TreeView.stories.native.js.map +0 -1
- package/dist/jsx/views/hotkeys.spec.mjs +0 -211
- package/dist/jsx/views/hotkeys.spec.mjs.map +0 -1
- package/dist/jsx/views/hotkeys.spec.native.js +0 -253
- package/dist/jsx/views/hotkeys.spec.native.js.map +0 -1
- package/dist/jsx/views/views.spec.mjs +0 -290
- package/dist/jsx/views/views.spec.mjs.map +0 -1
- package/dist/jsx/views/views.spec.native.js +0 -344
- package/dist/jsx/views/views.spec.native.js.map +0 -1
|
@@ -35,15 +35,55 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
35
35
|
}), mod);
|
|
36
36
|
var Calendar_exports = {};
|
|
37
37
|
__export(Calendar_exports, {
|
|
38
|
-
Calendar: () => Calendar
|
|
38
|
+
Calendar: () => Calendar,
|
|
39
|
+
computeEventMoveRange: () => computeEventMoveRange,
|
|
40
|
+
eventChipTextColor: () => eventChipTextColor,
|
|
41
|
+
findDayKeyAtPoint: () => findDayKeyAtPoint
|
|
39
42
|
});
|
|
40
43
|
module.exports = __toCommonJS(Calendar_exports);
|
|
41
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
45
|
var import_componentColors = require("../componentColors.native.js");
|
|
46
|
+
var import_ViewSwitcher = require("../layouts/ViewSwitcher.native.js");
|
|
47
|
+
var import_t = require("../shared/t.native.js");
|
|
48
|
+
var import_calendarMath = require("./calendarMath.native.js");
|
|
43
49
|
var import_theme = require("@multiplatform.one/theme");
|
|
44
50
|
var import_react = __toESM(require("react"));
|
|
51
|
+
var import_react_i18next = require("react-i18next");
|
|
45
52
|
var import_forms = require("@multiplatform.one/forms");
|
|
46
53
|
var import_tamagui = require("tamagui");
|
|
54
|
+
var import_useDirection = require("../hooks/useDirection.native.js");
|
|
55
|
+
var hairlineEnd = import_tamagui.isWeb ? {
|
|
56
|
+
borderInlineEndWidth: import_theme.hairlineWidth,
|
|
57
|
+
borderInlineEndStyle: "solid",
|
|
58
|
+
className: "mp-hairline-ie"
|
|
59
|
+
} : {
|
|
60
|
+
borderEndWidth: import_theme.hairlineWidth
|
|
61
|
+
};
|
|
62
|
+
function gridCellEdges(end, bottom) {
|
|
63
|
+
var className = [end && "mp-hairline-ie", bottom && "mp-hairline-b"].filter(Boolean).join(" ") || void 0;
|
|
64
|
+
return {
|
|
65
|
+
...(end ? hairlineEnd : null),
|
|
66
|
+
borderBottomWidth: bottom ? import_theme.hairlineWidth : 0,
|
|
67
|
+
...(import_tamagui.isWeb && className ? {
|
|
68
|
+
className
|
|
69
|
+
} : null)
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function eventChipTextColor(bg) {
|
|
73
|
+
if (!bg || !bg.startsWith("#")) return "$accentColor";
|
|
74
|
+
var hex = bg.slice(1);
|
|
75
|
+
var full = hex.length === 3 ? hex.split("").map(function (c) {
|
|
76
|
+
return c + c;
|
|
77
|
+
}).join("") : hex.slice(0, 6);
|
|
78
|
+
var [r, g, b] = [0, 2, 4].map(function (i) {
|
|
79
|
+
var c = Number.parseInt(full.slice(i, i + 2), 16) / 255;
|
|
80
|
+
return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
|
|
81
|
+
});
|
|
82
|
+
var luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
83
|
+
var contrastWhite = 1.05 / (luminance + 0.05);
|
|
84
|
+
var contrastBlack = (luminance + 0.05) / 0.05;
|
|
85
|
+
return contrastWhite >= contrastBlack ? "#ffffff" : "#000000";
|
|
86
|
+
}
|
|
47
87
|
function getMonthDays(date, firstDayOfWeek) {
|
|
48
88
|
var year = date.getFullYear();
|
|
49
89
|
var month = date.getMonth();
|
|
@@ -75,7 +115,18 @@ function getWeekDays(date, firstDayOfWeek) {
|
|
|
75
115
|
return days;
|
|
76
116
|
}
|
|
77
117
|
function formatDateKey(date) {
|
|
78
|
-
|
|
118
|
+
var year = date.getFullYear();
|
|
119
|
+
var month = String(date.getMonth() + 1).padStart(2, "0");
|
|
120
|
+
var day = String(date.getDate()).padStart(2, "0");
|
|
121
|
+
return `${year}-${month}-${day}`;
|
|
122
|
+
}
|
|
123
|
+
function addMonths(date, delta) {
|
|
124
|
+
var next = new Date(date);
|
|
125
|
+
next.setDate(1);
|
|
126
|
+
next.setMonth(next.getMonth() + delta);
|
|
127
|
+
var lastDay = new Date(next.getFullYear(), next.getMonth() + 1, 0).getDate();
|
|
128
|
+
next.setDate(Math.min(date.getDate(), lastDay));
|
|
129
|
+
return next;
|
|
79
130
|
}
|
|
80
131
|
function isSameDay(d1, d2) {
|
|
81
132
|
return d1.getFullYear() === d2.getFullYear() && d1.getMonth() === d2.getMonth() && d1.getDate() === d2.getDate();
|
|
@@ -83,6 +134,112 @@ function isSameDay(d1, d2) {
|
|
|
83
134
|
function isToday(date) {
|
|
84
135
|
return isSameDay(date, /* @__PURE__ */new Date());
|
|
85
136
|
}
|
|
137
|
+
var MS_PER_DAY = 864e5;
|
|
138
|
+
function computeEventMoveRange(event, targetDay) {
|
|
139
|
+
var startOfDay = function startOfDay2(d) {
|
|
140
|
+
return new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
141
|
+
};
|
|
142
|
+
var dayDelta = Math.round((startOfDay(targetDay).getTime() - startOfDay(event.start).getTime()) / MS_PER_DAY);
|
|
143
|
+
var shiftDays = function shiftDays2(d) {
|
|
144
|
+
return new Date(d.getFullYear(), d.getMonth(), d.getDate() + dayDelta, d.getHours(), d.getMinutes(), d.getSeconds(), d.getMilliseconds());
|
|
145
|
+
};
|
|
146
|
+
var start = shiftDays(event.start);
|
|
147
|
+
var end = event.end ? shiftDays(event.end) : new Date(start.getTime());
|
|
148
|
+
return {
|
|
149
|
+
start,
|
|
150
|
+
end
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function findDayKeyAtPoint(pageX, pageY, layouts) {
|
|
154
|
+
var _iteratorNormalCompletion = true,
|
|
155
|
+
_didIteratorError = false,
|
|
156
|
+
_iteratorError = void 0;
|
|
157
|
+
try {
|
|
158
|
+
for (var _iterator = layouts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
159
|
+
var layout = _step.value;
|
|
160
|
+
if (pageX >= layout.x && pageX < layout.x + layout.width && pageY >= layout.y && pageY < layout.y + layout.height) {
|
|
161
|
+
return layout.key;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
} catch (err) {
|
|
165
|
+
_didIteratorError = true;
|
|
166
|
+
_iteratorError = err;
|
|
167
|
+
} finally {
|
|
168
|
+
try {
|
|
169
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
170
|
+
_iterator.return();
|
|
171
|
+
}
|
|
172
|
+
} finally {
|
|
173
|
+
if (_didIteratorError) {
|
|
174
|
+
throw _iteratorError;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
function measureDayLayouts(refs, cb) {
|
|
181
|
+
var entries = [...refs.entries()];
|
|
182
|
+
if (entries.length === 0) {
|
|
183
|
+
cb([]);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
var layouts = [];
|
|
187
|
+
var remaining = entries.length;
|
|
188
|
+
var _iteratorNormalCompletion = true,
|
|
189
|
+
_didIteratorError = false,
|
|
190
|
+
_iteratorError = void 0;
|
|
191
|
+
try {
|
|
192
|
+
var _loop = function () {
|
|
193
|
+
var [key, node] = _step.value;
|
|
194
|
+
if (typeof node.measureInWindow !== "function") {
|
|
195
|
+
if (--remaining === 0) cb(layouts);
|
|
196
|
+
return "continue";
|
|
197
|
+
}
|
|
198
|
+
node.measureInWindow(function (x, y, width, height) {
|
|
199
|
+
layouts.push({
|
|
200
|
+
key,
|
|
201
|
+
x,
|
|
202
|
+
y,
|
|
203
|
+
width,
|
|
204
|
+
height
|
|
205
|
+
});
|
|
206
|
+
if (--remaining === 0) cb(layouts);
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
for (var _iterator = entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _loop();
|
|
210
|
+
} catch (err) {
|
|
211
|
+
_didIteratorError = true;
|
|
212
|
+
_iteratorError = err;
|
|
213
|
+
} finally {
|
|
214
|
+
try {
|
|
215
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
216
|
+
_iterator.return();
|
|
217
|
+
}
|
|
218
|
+
} finally {
|
|
219
|
+
if (_didIteratorError) {
|
|
220
|
+
throw _iteratorError;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
function dayKeyToDate(key) {
|
|
226
|
+
var [ty, tm, td] = key.split("-").map(Number);
|
|
227
|
+
return new Date(ty, tm - 1, td);
|
|
228
|
+
}
|
|
229
|
+
function dateAtMinutes(day, minutes) {
|
|
230
|
+
return new Date(day.getFullYear(), day.getMonth(), day.getDate(), 0, minutes);
|
|
231
|
+
}
|
|
232
|
+
function isTimedEvent(event) {
|
|
233
|
+
return event.end !== void 0 && event.end.getTime() > event.start.getTime() && isSameDay(event.start, event.end) && event.allDay !== true;
|
|
234
|
+
}
|
|
235
|
+
var DRAG_THRESHOLD_PX = 4;
|
|
236
|
+
var TOUCH_LONG_PRESS_MS = 300;
|
|
237
|
+
var TOUCH_SLOP_PX = 8;
|
|
238
|
+
var LIFT_SHADOW = "0px 8px 28px rgba(0,0,0,0.18), 0px 2px 6px rgba(0,0,0,0.08)";
|
|
239
|
+
var MIN_BLOCK_PX = 18;
|
|
240
|
+
var RESIZE_ZONE_PX = 44;
|
|
241
|
+
var DAY_DISC_PX = 22;
|
|
242
|
+
var MONTH_CHIP_MIN_PX = 24;
|
|
86
243
|
function getWeekdayNames() {
|
|
87
244
|
var formatter = new Intl.DateTimeFormat(void 0, {
|
|
88
245
|
weekday: "short"
|
|
@@ -117,27 +274,762 @@ function formatHour(hour) {
|
|
|
117
274
|
hour12: true
|
|
118
275
|
}).format(date);
|
|
119
276
|
}
|
|
277
|
+
function formatDayLong(date) {
|
|
278
|
+
return new Intl.DateTimeFormat(void 0, {
|
|
279
|
+
weekday: "long",
|
|
280
|
+
month: "long",
|
|
281
|
+
day: "numeric"
|
|
282
|
+
}).format(date);
|
|
283
|
+
}
|
|
120
284
|
var weekdayNames = getWeekdayNames();
|
|
121
285
|
var monthNames = getMonthNames();
|
|
286
|
+
var hours = getHours();
|
|
287
|
+
function startWebPointerSession(options) {
|
|
288
|
+
var _options_thresholdPx;
|
|
289
|
+
var threshold = (_options_thresholdPx = options.thresholdPx) !== null && _options_thresholdPx !== void 0 ? _options_thresholdPx : DRAG_THRESHOLD_PX;
|
|
290
|
+
var isTouch = options.pointerType === "touch";
|
|
291
|
+
var active = false;
|
|
292
|
+
var ended = false;
|
|
293
|
+
var escaped = false;
|
|
294
|
+
var liftArmed = !isTouch;
|
|
295
|
+
var last = {
|
|
296
|
+
x: options.startX,
|
|
297
|
+
y: options.startY
|
|
298
|
+
};
|
|
299
|
+
var prevUserSelect = "";
|
|
300
|
+
var longPressTimer = null;
|
|
301
|
+
var preventTouchScroll = function preventTouchScroll2(te) {
|
|
302
|
+
if (active) te.preventDefault();
|
|
303
|
+
};
|
|
304
|
+
var activate = function activate2(pt) {
|
|
305
|
+
if (active) return;
|
|
306
|
+
active = true;
|
|
307
|
+
prevUserSelect = document.body.style.userSelect;
|
|
308
|
+
document.body.style.userSelect = "none";
|
|
309
|
+
options.onActivate(pt);
|
|
310
|
+
};
|
|
311
|
+
var teardown = function teardown2() {
|
|
312
|
+
var _options_onSettled;
|
|
313
|
+
if (ended) return;
|
|
314
|
+
ended = true;
|
|
315
|
+
if (longPressTimer) clearTimeout(longPressTimer);
|
|
316
|
+
window.removeEventListener("pointermove", onMove);
|
|
317
|
+
window.removeEventListener("pointerup", onUp);
|
|
318
|
+
window.removeEventListener("keydown", onKey, true);
|
|
319
|
+
window.removeEventListener("touchmove", preventTouchScroll);
|
|
320
|
+
if (active) document.body.style.userSelect = prevUserSelect;
|
|
321
|
+
(_options_onSettled = options.onSettled) === null || _options_onSettled === void 0 ? void 0 : _options_onSettled.call(options, active, escaped);
|
|
322
|
+
};
|
|
323
|
+
var onMove = function onMove2(me) {
|
|
324
|
+
last = {
|
|
325
|
+
x: me.clientX,
|
|
326
|
+
y: me.clientY
|
|
327
|
+
};
|
|
328
|
+
if (!active) {
|
|
329
|
+
var travel = Math.hypot(me.clientX - options.startX, me.clientY - options.startY);
|
|
330
|
+
if (isTouch && !liftArmed) {
|
|
331
|
+
if (travel > TOUCH_SLOP_PX) teardown();
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
if (travel < threshold) return;
|
|
335
|
+
activate(last);
|
|
336
|
+
}
|
|
337
|
+
options.onMove(last);
|
|
338
|
+
};
|
|
339
|
+
var onUp = function onUp2(ue) {
|
|
340
|
+
var _options_onTapInstead;
|
|
341
|
+
last = {
|
|
342
|
+
x: ue.clientX,
|
|
343
|
+
y: ue.clientY
|
|
344
|
+
};
|
|
345
|
+
var wasActive = active;
|
|
346
|
+
teardown();
|
|
347
|
+
if (wasActive) options.onCommit(last);else (_options_onTapInstead = options.onTapInstead) === null || _options_onTapInstead === void 0 ? void 0 : _options_onTapInstead.call(options);
|
|
348
|
+
};
|
|
349
|
+
var onKey = function onKey2(ke) {
|
|
350
|
+
if (ke.key !== "Escape" || !active) return;
|
|
351
|
+
ke.stopPropagation();
|
|
352
|
+
escaped = true;
|
|
353
|
+
var cancel = options.onCancel;
|
|
354
|
+
teardown();
|
|
355
|
+
cancel();
|
|
356
|
+
};
|
|
357
|
+
if (isTouch) {
|
|
358
|
+
longPressTimer = setTimeout(function () {
|
|
359
|
+
liftArmed = true;
|
|
360
|
+
activate(last);
|
|
361
|
+
}, TOUCH_LONG_PRESS_MS);
|
|
362
|
+
window.addEventListener("touchmove", preventTouchScroll, {
|
|
363
|
+
passive: false
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
window.addEventListener("pointermove", onMove);
|
|
367
|
+
window.addEventListener("pointerup", onUp);
|
|
368
|
+
window.addEventListener("keydown", onKey, true);
|
|
369
|
+
return teardown;
|
|
370
|
+
}
|
|
371
|
+
function NowIndicator(param) {
|
|
372
|
+
var {
|
|
373
|
+
hourHeight
|
|
374
|
+
} = param;
|
|
375
|
+
var [now, setNow] = (0, import_react.useState)(function () {
|
|
376
|
+
return /* @__PURE__ */new Date();
|
|
377
|
+
});
|
|
378
|
+
var isRTL = (0, import_useDirection.useDirection)() === "rtl";
|
|
379
|
+
(0, import_react.useEffect)(function () {
|
|
380
|
+
var id = setInterval(function () {
|
|
381
|
+
return setNow(/* @__PURE__ */new Date());
|
|
382
|
+
}, 6e4);
|
|
383
|
+
return function () {
|
|
384
|
+
return clearInterval(id);
|
|
385
|
+
};
|
|
386
|
+
}, []);
|
|
387
|
+
var y = (0, import_calendarMath.minutesToY)((0, import_calendarMath.minutesOfDay)(now), hourHeight);
|
|
388
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
389
|
+
position: "absolute",
|
|
390
|
+
left: 0,
|
|
391
|
+
right: 0,
|
|
392
|
+
top: y - 1,
|
|
393
|
+
height: 2,
|
|
394
|
+
backgroundColor: "$accentBackground",
|
|
395
|
+
pointerEvents: "none",
|
|
396
|
+
zIndex: 3,
|
|
397
|
+
"data-calendar-now": "true",
|
|
398
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
399
|
+
position: "absolute",
|
|
400
|
+
...(isRTL ? {
|
|
401
|
+
right: -3
|
|
402
|
+
} : {
|
|
403
|
+
left: -3
|
|
404
|
+
}),
|
|
405
|
+
top: -3,
|
|
406
|
+
width: 8,
|
|
407
|
+
height: 8,
|
|
408
|
+
borderRadius: 4,
|
|
409
|
+
backgroundColor: "$accentBackground"
|
|
410
|
+
})
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
function SettleGhost(param) {
|
|
414
|
+
var {
|
|
415
|
+
settle,
|
|
416
|
+
transition,
|
|
417
|
+
borderRadius,
|
|
418
|
+
onDone
|
|
419
|
+
} = param;
|
|
420
|
+
var [moved, setMoved] = (0, import_react.useState)(false);
|
|
421
|
+
(0, import_react.useEffect)(function () {
|
|
422
|
+
var raf2 = 0;
|
|
423
|
+
var raf1 = requestAnimationFrame(function () {
|
|
424
|
+
raf2 = requestAnimationFrame(function () {
|
|
425
|
+
return setMoved(true);
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
var timer = setTimeout(onDone, 480);
|
|
429
|
+
return function () {
|
|
430
|
+
cancelAnimationFrame(raf1);
|
|
431
|
+
cancelAnimationFrame(raf2);
|
|
432
|
+
clearTimeout(timer);
|
|
433
|
+
};
|
|
434
|
+
}, [onDone]);
|
|
435
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
436
|
+
pointerEvents: "none",
|
|
437
|
+
...borderRadius,
|
|
438
|
+
backgroundColor: settle.color || "$accentBackground",
|
|
439
|
+
padding: "$1",
|
|
440
|
+
transition,
|
|
441
|
+
x: moved ? settle.to.x - settle.from.x : 0,
|
|
442
|
+
y: moved ? settle.to.y - settle.from.y : 0,
|
|
443
|
+
scale: moved ? 1 : 1.03,
|
|
444
|
+
opacity: moved ? 0.6 : 0.95,
|
|
445
|
+
...{
|
|
446
|
+
"data-calendar-settle-ghost": "true",
|
|
447
|
+
style: {
|
|
448
|
+
position: "fixed",
|
|
449
|
+
left: settle.from.x,
|
|
450
|
+
top: settle.from.y,
|
|
451
|
+
zIndex: import_forms.zIndex.sheet,
|
|
452
|
+
maxWidth: 220,
|
|
453
|
+
boxShadow: LIFT_SHADOW
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
457
|
+
fontSize: "$2",
|
|
458
|
+
numberOfLines: 1,
|
|
459
|
+
color: eventChipTextColor(settle.color),
|
|
460
|
+
children: settle.title
|
|
461
|
+
})
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
var CalendarSlide = (0, import_tamagui.styled)(import_tamagui.YStack, {
|
|
465
|
+
variants: {
|
|
466
|
+
fromStart: {
|
|
467
|
+
true: {
|
|
468
|
+
x: -24,
|
|
469
|
+
opacity: 0
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
fromEnd: {
|
|
473
|
+
true: {
|
|
474
|
+
x: 24,
|
|
475
|
+
opacity: 0
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
fade: {
|
|
479
|
+
true: {
|
|
480
|
+
opacity: 0
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
});
|
|
122
485
|
function Calendar(param) {
|
|
123
486
|
var {
|
|
124
487
|
events,
|
|
125
488
|
renderEvent,
|
|
126
489
|
onDateSelect,
|
|
127
490
|
onEventClick,
|
|
491
|
+
onEventMove,
|
|
492
|
+
onEventResize,
|
|
493
|
+
onEventCreate,
|
|
494
|
+
enableEventDrag,
|
|
128
495
|
viewType: initialViewType = "month",
|
|
129
496
|
initialDate,
|
|
130
497
|
height = 600,
|
|
131
498
|
showNavigation = true,
|
|
132
499
|
showViewSwitcher = true,
|
|
133
500
|
firstDayOfWeek = 0,
|
|
501
|
+
slotMinutes = 30,
|
|
134
502
|
...stackProps
|
|
135
503
|
} = param;
|
|
504
|
+
var {
|
|
505
|
+
t
|
|
506
|
+
} = (0, import_react_i18next.useTranslation)();
|
|
136
507
|
var {
|
|
137
508
|
knobProps
|
|
138
509
|
} = (0, import_theme.useResolvedKnobs)();
|
|
510
|
+
var onAccent = (0, import_theme.useReadableTextOn)("$accentBackground");
|
|
511
|
+
var calendarId = (0, import_react.useId)();
|
|
512
|
+
var isRTL = (0, import_useDirection.useDirection)() === "rtl";
|
|
139
513
|
var [currentDate, setCurrentDate] = (0, import_react.useState)(initialDate !== null && initialDate !== void 0 ? initialDate : /* @__PURE__ */new Date());
|
|
140
514
|
var [view, setView] = (0, import_react.useState)(initialViewType);
|
|
515
|
+
var sz = knobProps.sizeToken;
|
|
516
|
+
var hourHeight = sz === "$3" ? 48 : sz === "$5" ? 80 : 64;
|
|
517
|
+
var monthCellMinHeight = sz === "$3" ? 64 : sz === "$5" ? 96 : 76;
|
|
518
|
+
var space = knobProps.space;
|
|
519
|
+
var cellPad = space === "small" ? 2 : space === "large" ? 7 : 4;
|
|
520
|
+
var chipGap = space === "small" ? 2 : space === "large" ? 5 : 3;
|
|
521
|
+
var monthRowHardFloor = cellPad * 2 + DAY_DISC_PX + chipGap + MONTH_CHIP_MIN_PX;
|
|
522
|
+
var [monthBodyHeight, setMonthBodyHeight] = (0, import_react.useState)(0);
|
|
523
|
+
var overlayInset = isRTL ? {
|
|
524
|
+
left: 2,
|
|
525
|
+
right: 0
|
|
526
|
+
} : {
|
|
527
|
+
left: 0,
|
|
528
|
+
right: 2
|
|
529
|
+
};
|
|
530
|
+
var transition = knobProps.transition;
|
|
531
|
+
var webLayoutTransition = import_tamagui.isWeb ? transition : void 0;
|
|
532
|
+
var navDirectionRef = (0, import_react.useRef)(0);
|
|
533
|
+
var hasNavigatedRef = (0, import_react.useRef)(false);
|
|
534
|
+
var periodKey = view === "month" ? `${currentDate.getFullYear()}-${currentDate.getMonth()}` : view === "week" ? formatDateKey(getWeekDays(currentDate, firstDayOfWeek)[0]) : formatDateKey(currentDate);
|
|
535
|
+
var motionKey = `${view}:${periodKey}`;
|
|
536
|
+
var dragEnabled = enableEventDrag !== null && enableEventDrag !== void 0 ? enableEventDrag : onEventMove !== void 0;
|
|
537
|
+
var hasDom = import_tamagui.isWeb && typeof window !== "undefined" && typeof document !== "undefined";
|
|
538
|
+
var webDragEnabled = dragEnabled && hasDom;
|
|
539
|
+
var nativeDragEnabled = dragEnabled && !import_tamagui.isWeb;
|
|
540
|
+
var webResizeEnabled = onEventResize !== void 0 && hasDom;
|
|
541
|
+
var webCreateEnabled = onEventCreate !== void 0 && hasDom;
|
|
542
|
+
var [dragGhost, setDragGhost] = (0, import_react.useState)(null);
|
|
543
|
+
var [dropTargetKey, setDropTargetKey] = (0, import_react.useState)(null);
|
|
544
|
+
var [slotTarget, setSlotTarget] = (0, import_react.useState)(null);
|
|
545
|
+
var [settle, setSettle] = (0, import_react.useState)(null);
|
|
546
|
+
var [resizePreview, setResizePreview] = (0, import_react.useState)(null);
|
|
547
|
+
var [createDraft, setCreateDraft] = (0, import_react.useState)(null);
|
|
548
|
+
var [editorState, setEditorState] = (0, import_react.useState)(null);
|
|
549
|
+
var [draftTitle, setDraftTitle] = (0, import_react.useState)("");
|
|
550
|
+
var [overflowDayKey, setOverflowDayKey] = (0, import_react.useState)(null);
|
|
551
|
+
var [scrollLocked, setScrollLocked] = (0, import_react.useState)(false);
|
|
552
|
+
var [draggingEventId, setDraggingEventId] = (0, import_react.useState)(null);
|
|
553
|
+
var suppressClickRef = (0, import_react.useRef)(false);
|
|
554
|
+
var dragSessionCleanupRef = (0, import_react.useRef)(null);
|
|
555
|
+
var slotTargetRef = (0, import_react.useRef)(null);
|
|
556
|
+
var resizePreviewRef = (0, import_react.useRef)(null);
|
|
557
|
+
var editorStateRef = (0, import_react.useRef)(null);
|
|
558
|
+
var draftTitleRef = (0, import_react.useRef)("");
|
|
559
|
+
var dayRefs = (0, import_react.useRef)(/* @__PURE__ */new Map());
|
|
560
|
+
var containerNodeRef = (0, import_react.useRef)(null);
|
|
561
|
+
var containerOffsetRef = (0, import_react.useRef)({
|
|
562
|
+
x: 0,
|
|
563
|
+
y: 0
|
|
564
|
+
});
|
|
565
|
+
var nativeSessionRef = (0, import_react.useRef)(null);
|
|
566
|
+
slotTargetRef.current = slotTarget;
|
|
567
|
+
resizePreviewRef.current = resizePreview;
|
|
568
|
+
editorStateRef.current = editorState;
|
|
569
|
+
draftTitleRef.current = draftTitle;
|
|
570
|
+
var registerDayRef = (0, import_react.useCallback)(function (key, node) {
|
|
571
|
+
if (node) dayRefs.current.set(key, node);else dayRefs.current.delete(key);
|
|
572
|
+
}, []);
|
|
573
|
+
var refreshContainerOffset = (0, import_react.useCallback)(function () {
|
|
574
|
+
var _containerNodeRef_current_measureInWindow, _containerNodeRef_current;
|
|
575
|
+
(_containerNodeRef_current = containerNodeRef.current) === null || _containerNodeRef_current === void 0 ? void 0 : (_containerNodeRef_current_measureInWindow = _containerNodeRef_current.measureInWindow) === null || _containerNodeRef_current_measureInWindow === void 0 ? void 0 : _containerNodeRef_current_measureInWindow.call(_containerNodeRef_current, function (x, y) {
|
|
576
|
+
containerOffsetRef.current = {
|
|
577
|
+
x,
|
|
578
|
+
y
|
|
579
|
+
};
|
|
580
|
+
});
|
|
581
|
+
}, []);
|
|
582
|
+
(0, import_react.useEffect)(function () {
|
|
583
|
+
return function () {
|
|
584
|
+
var _dragSessionCleanupRef_current;
|
|
585
|
+
return (_dragSessionCleanupRef_current = dragSessionCleanupRef.current) === null || _dragSessionCleanupRef_current === void 0 ? void 0 : _dragSessionCleanupRef_current.call(dragSessionCleanupRef);
|
|
586
|
+
};
|
|
587
|
+
}, []);
|
|
588
|
+
var clearSettle = (0, import_react.useCallback)(function () {
|
|
589
|
+
return setSettle(null);
|
|
590
|
+
}, []);
|
|
591
|
+
var suppressNextClick = (0, import_react.useCallback)(function () {
|
|
592
|
+
suppressClickRef.current = true;
|
|
593
|
+
setTimeout(function () {
|
|
594
|
+
suppressClickRef.current = false;
|
|
595
|
+
}, 0);
|
|
596
|
+
}, []);
|
|
597
|
+
var beginSettle = (0, import_react.useCallback)(function (event, from, to) {
|
|
598
|
+
if (!transition || !hasDom) return;
|
|
599
|
+
setSettle({
|
|
600
|
+
key: Date.now(),
|
|
601
|
+
title: event.title,
|
|
602
|
+
color: event.color,
|
|
603
|
+
from,
|
|
604
|
+
to
|
|
605
|
+
});
|
|
606
|
+
}, [transition, hasDom]);
|
|
607
|
+
var commitMoveToKey = (0, import_react.useCallback)(function (event, key) {
|
|
608
|
+
if (!key) return;
|
|
609
|
+
var targetDay = dayKeyToDate(key);
|
|
610
|
+
if (!isSameDay(targetDay, event.start)) {
|
|
611
|
+
onEventMove === null || onEventMove === void 0 ? void 0 : onEventMove(event, computeEventMoveRange(event, targetDay));
|
|
612
|
+
}
|
|
613
|
+
}, [onEventMove]);
|
|
614
|
+
var handleEventPointerDown = (0, import_react.useCallback)(function (event, e, mode) {
|
|
615
|
+
var _ref;
|
|
616
|
+
var _e_stopPropagation, _dragSessionCleanupRef_current, _chipEl_getBoundingClientRect;
|
|
617
|
+
if (!webDragEnabled) return;
|
|
618
|
+
if (e.button !== void 0 && e.button !== 0) return;
|
|
619
|
+
(_e_stopPropagation = e.stopPropagation) === null || _e_stopPropagation === void 0 ? void 0 : _e_stopPropagation.call(e);
|
|
620
|
+
(_dragSessionCleanupRef_current = dragSessionCleanupRef.current) === null || _dragSessionCleanupRef_current === void 0 ? void 0 : _dragSessionCleanupRef_current.call(dragSessionCleanupRef);
|
|
621
|
+
var chipEl = e.currentTarget;
|
|
622
|
+
var originRect = (_ref = chipEl === null || chipEl === void 0 ? void 0 : (_chipEl_getBoundingClientRect = chipEl.getBoundingClientRect) === null || _chipEl_getBoundingClientRect === void 0 ? void 0 : _chipEl_getBoundingClientRect.call(chipEl)) !== null && _ref !== void 0 ? _ref : null;
|
|
623
|
+
var durationMin = event.end ? Math.max(slotMinutes, (event.end.getTime() - event.start.getTime()) / 6e4) : slotMinutes;
|
|
624
|
+
var grabOffsetMin = mode === "slot" && originRect ? (0, import_calendarMath.yToMinutes)(e.clientY - originRect.top, hourHeight) : 0;
|
|
625
|
+
var findDayKey = function findDayKey2(x, y) {
|
|
626
|
+
var _ref2;
|
|
627
|
+
var _document_elementFromPoint, _document, _el_closest;
|
|
628
|
+
var el = (_document_elementFromPoint = (_document = document).elementFromPoint) === null || _document_elementFromPoint === void 0 ? void 0 : _document_elementFromPoint.call(_document, x, y);
|
|
629
|
+
var dayEl = el === null || el === void 0 ? void 0 : (_el_closest = el.closest) === null || _el_closest === void 0 ? void 0 : _el_closest.call(el, "[data-calendar-day]");
|
|
630
|
+
return (_ref2 = dayEl === null || dayEl === void 0 ? void 0 : dayEl.getAttribute("data-calendar-day")) !== null && _ref2 !== void 0 ? _ref2 : null;
|
|
631
|
+
};
|
|
632
|
+
var findSlotTarget = function findSlotTarget2(x, y) {
|
|
633
|
+
var _document_elementFromPoint, _document, _el_closest;
|
|
634
|
+
var el = (_document_elementFromPoint = (_document = document).elementFromPoint) === null || _document_elementFromPoint === void 0 ? void 0 : _document_elementFromPoint.call(_document, x, y);
|
|
635
|
+
var colEl = el === null || el === void 0 ? void 0 : (_el_closest = el.closest) === null || _el_closest === void 0 ? void 0 : _el_closest.call(el, "[data-calendar-timecol]");
|
|
636
|
+
if (!colEl) return null;
|
|
637
|
+
var dayKey = colEl.getAttribute("data-calendar-timecol");
|
|
638
|
+
if (!dayKey) return null;
|
|
639
|
+
var rect = colEl.getBoundingClientRect();
|
|
640
|
+
var raw = (0, import_calendarMath.yToMinutes)(y - rect.top, hourHeight) - grabOffsetMin;
|
|
641
|
+
var startMin = Math.max(0, Math.min(import_calendarMath.MINUTES_PER_DAY - durationMin, (0, import_calendarMath.snapMinutes)(raw, slotMinutes, "round")));
|
|
642
|
+
return {
|
|
643
|
+
dayKey,
|
|
644
|
+
startMin,
|
|
645
|
+
durationMin,
|
|
646
|
+
rect
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
var endVisuals = function endVisuals2() {
|
|
650
|
+
setDragGhost(null);
|
|
651
|
+
setDropTargetKey(null);
|
|
652
|
+
setSlotTarget(null);
|
|
653
|
+
setDraggingEventId(null);
|
|
654
|
+
setScrollLocked(false);
|
|
655
|
+
dragSessionCleanupRef.current = null;
|
|
656
|
+
};
|
|
657
|
+
var lastPoint = {
|
|
658
|
+
x: e.clientX,
|
|
659
|
+
y: e.clientY
|
|
660
|
+
};
|
|
661
|
+
var cleanup = startWebPointerSession({
|
|
662
|
+
pointerType: e.pointerType,
|
|
663
|
+
startX: e.clientX,
|
|
664
|
+
startY: e.clientY,
|
|
665
|
+
onActivate: function onActivate(pt) {
|
|
666
|
+
lastPoint = pt;
|
|
667
|
+
setDraggingEventId(event.id);
|
|
668
|
+
setScrollLocked(true);
|
|
669
|
+
setDragGhost({
|
|
670
|
+
event,
|
|
671
|
+
x: pt.x,
|
|
672
|
+
y: pt.y
|
|
673
|
+
});
|
|
674
|
+
},
|
|
675
|
+
onMove: function onMove(pt) {
|
|
676
|
+
lastPoint = pt;
|
|
677
|
+
setDragGhost({
|
|
678
|
+
event,
|
|
679
|
+
x: pt.x,
|
|
680
|
+
y: pt.y
|
|
681
|
+
});
|
|
682
|
+
if (mode === "slot") {
|
|
683
|
+
var target = findSlotTarget(pt.x, pt.y);
|
|
684
|
+
setSlotTarget(target ? {
|
|
685
|
+
dayKey: target.dayKey,
|
|
686
|
+
startMin: target.startMin,
|
|
687
|
+
durationMin
|
|
688
|
+
} : null);
|
|
689
|
+
setDropTargetKey(target ? null : findDayKey(pt.x, pt.y));
|
|
690
|
+
} else {
|
|
691
|
+
setDropTargetKey(findDayKey(pt.x, pt.y));
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
onCommit: function onCommit(pt) {
|
|
695
|
+
endVisuals();
|
|
696
|
+
suppressNextClick();
|
|
697
|
+
var ghostFrom = {
|
|
698
|
+
x: pt.x + 12,
|
|
699
|
+
y: pt.y + 12
|
|
700
|
+
};
|
|
701
|
+
if (mode === "slot") {
|
|
702
|
+
var target = findSlotTarget(pt.x, pt.y);
|
|
703
|
+
if (target) {
|
|
704
|
+
var targetDay = dayKeyToDate(target.dayKey);
|
|
705
|
+
var range = (0, import_calendarMath.moveRangeToSlot)(event, targetDay, target.startMin);
|
|
706
|
+
if (range.start.getTime() !== event.start.getTime()) {
|
|
707
|
+
onEventMove === null || onEventMove === void 0 ? void 0 : onEventMove(event, range);
|
|
708
|
+
}
|
|
709
|
+
beginSettle(event, ghostFrom, {
|
|
710
|
+
x: target.rect.left + 2,
|
|
711
|
+
y: target.rect.top + (0, import_calendarMath.minutesToY)(target.startMin, hourHeight)
|
|
712
|
+
});
|
|
713
|
+
return;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
var dayKey = findDayKey(pt.x, pt.y);
|
|
717
|
+
if (dayKey) {
|
|
718
|
+
var _cellEl_getBoundingClientRect;
|
|
719
|
+
commitMoveToKey(event, dayKey);
|
|
720
|
+
var cellEl = document.querySelector(`[data-calendar-day="${dayKey}"]`);
|
|
721
|
+
var rect = cellEl === null || cellEl === void 0 ? void 0 : (_cellEl_getBoundingClientRect = cellEl.getBoundingClientRect) === null || _cellEl_getBoundingClientRect === void 0 ? void 0 : _cellEl_getBoundingClientRect.call(cellEl);
|
|
722
|
+
if (rect) beginSettle(event, ghostFrom, {
|
|
723
|
+
x: rect.left + 4,
|
|
724
|
+
y: rect.top + 24
|
|
725
|
+
});
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
if (originRect) beginSettle(event, ghostFrom, {
|
|
729
|
+
x: originRect.left,
|
|
730
|
+
y: originRect.top
|
|
731
|
+
});
|
|
732
|
+
},
|
|
733
|
+
onCancel: function onCancel() {
|
|
734
|
+
var ghost = {
|
|
735
|
+
x: lastPoint.x + 12,
|
|
736
|
+
y: lastPoint.y + 12
|
|
737
|
+
};
|
|
738
|
+
endVisuals();
|
|
739
|
+
suppressClickRef.current = true;
|
|
740
|
+
window.addEventListener("pointerup", function () {
|
|
741
|
+
return setTimeout(function () {
|
|
742
|
+
suppressClickRef.current = false;
|
|
743
|
+
}, 0);
|
|
744
|
+
}, {
|
|
745
|
+
once: true
|
|
746
|
+
});
|
|
747
|
+
if (originRect) {
|
|
748
|
+
beginSettle(event, ghost, {
|
|
749
|
+
x: originRect.left,
|
|
750
|
+
y: originRect.top
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
onSettled: function onSettled(activated) {
|
|
755
|
+
if (!activated) {
|
|
756
|
+
endVisuals();
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
dragSessionCleanupRef.current = cleanup;
|
|
761
|
+
}, [webDragEnabled, slotMinutes, hourHeight, onEventMove, commitMoveToKey, beginSettle, suppressNextClick]);
|
|
762
|
+
var handleResizePointerDown = (0, import_react.useCallback)(function (event, edge, e) {
|
|
763
|
+
var _e_stopPropagation, _dragSessionCleanupRef_current, _handleEl_closest, _colEl_getBoundingClientRect;
|
|
764
|
+
if (!webResizeEnabled) return;
|
|
765
|
+
if (e.button !== void 0 && e.button !== 0) return;
|
|
766
|
+
(_e_stopPropagation = e.stopPropagation) === null || _e_stopPropagation === void 0 ? void 0 : _e_stopPropagation.call(e);
|
|
767
|
+
(_dragSessionCleanupRef_current = dragSessionCleanupRef.current) === null || _dragSessionCleanupRef_current === void 0 ? void 0 : _dragSessionCleanupRef_current.call(dragSessionCleanupRef);
|
|
768
|
+
var handleEl = e.currentTarget;
|
|
769
|
+
var colEl = handleEl === null || handleEl === void 0 ? void 0 : (_handleEl_closest = handleEl.closest) === null || _handleEl_closest === void 0 ? void 0 : _handleEl_closest.call(handleEl, "[data-calendar-timecol]");
|
|
770
|
+
var colRect = colEl === null || colEl === void 0 ? void 0 : (_colEl_getBoundingClientRect = colEl.getBoundingClientRect) === null || _colEl_getBoundingClientRect === void 0 ? void 0 : _colEl_getBoundingClientRect.call(colEl);
|
|
771
|
+
if (!colRect) return;
|
|
772
|
+
var applyPreview = function applyPreview2(pt) {
|
|
773
|
+
var raw = (0, import_calendarMath.yToMinutes)(pt.y - colRect.top, hourHeight);
|
|
774
|
+
var range = (0, import_calendarMath.computeResizeRange)(event, edge, raw, slotMinutes);
|
|
775
|
+
setResizePreview({
|
|
776
|
+
id: event.id,
|
|
777
|
+
start: range.start,
|
|
778
|
+
end: range.end
|
|
779
|
+
});
|
|
780
|
+
};
|
|
781
|
+
var cleanup = startWebPointerSession({
|
|
782
|
+
pointerType: e.pointerType,
|
|
783
|
+
startX: e.clientX,
|
|
784
|
+
startY: e.clientY,
|
|
785
|
+
thresholdPx: 1,
|
|
786
|
+
onActivate: function onActivate(pt) {
|
|
787
|
+
setScrollLocked(true);
|
|
788
|
+
applyPreview(pt);
|
|
789
|
+
},
|
|
790
|
+
onMove: applyPreview,
|
|
791
|
+
onCommit: function onCommit() {
|
|
792
|
+
var _event_end;
|
|
793
|
+
var preview = resizePreviewRef.current;
|
|
794
|
+
setResizePreview(null);
|
|
795
|
+
setScrollLocked(false);
|
|
796
|
+
dragSessionCleanupRef.current = null;
|
|
797
|
+
suppressNextClick();
|
|
798
|
+
if (!preview) return;
|
|
799
|
+
var prevEnd = (_event_end = event.end) !== null && _event_end !== void 0 ? _event_end : event.start;
|
|
800
|
+
if (preview.start.getTime() !== event.start.getTime() || preview.end.getTime() !== prevEnd.getTime()) {
|
|
801
|
+
onEventResize === null || onEventResize === void 0 ? void 0 : onEventResize(event, {
|
|
802
|
+
start: preview.start,
|
|
803
|
+
end: preview.end
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
onCancel: function onCancel() {
|
|
808
|
+
setResizePreview(null);
|
|
809
|
+
setScrollLocked(false);
|
|
810
|
+
dragSessionCleanupRef.current = null;
|
|
811
|
+
suppressClickRef.current = true;
|
|
812
|
+
window.addEventListener("pointerup", function () {
|
|
813
|
+
return setTimeout(function () {
|
|
814
|
+
suppressClickRef.current = false;
|
|
815
|
+
}, 0);
|
|
816
|
+
}, {
|
|
817
|
+
once: true
|
|
818
|
+
});
|
|
819
|
+
},
|
|
820
|
+
onSettled: function onSettled(activated) {
|
|
821
|
+
if (!activated) {
|
|
822
|
+
setResizePreview(null);
|
|
823
|
+
setScrollLocked(false);
|
|
824
|
+
dragSessionCleanupRef.current = null;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
dragSessionCleanupRef.current = cleanup;
|
|
829
|
+
}, [webResizeEnabled, hourHeight, slotMinutes, onEventResize, suppressNextClick]);
|
|
830
|
+
var openEditor = (0, import_react.useCallback)(function (dayKey, range) {
|
|
831
|
+
setCreateDraft(null);
|
|
832
|
+
setDraftTitle("");
|
|
833
|
+
setEditorState({
|
|
834
|
+
dayKey,
|
|
835
|
+
start: range.start,
|
|
836
|
+
end: range.end
|
|
837
|
+
});
|
|
838
|
+
}, []);
|
|
839
|
+
var commitEditor = (0, import_react.useCallback)(function () {
|
|
840
|
+
var state = editorStateRef.current;
|
|
841
|
+
if (!state) return;
|
|
842
|
+
setEditorState(null);
|
|
843
|
+
setCreateDraft(null);
|
|
844
|
+
setDraftTitle("");
|
|
845
|
+
onEventCreate === null || onEventCreate === void 0 ? void 0 : onEventCreate({
|
|
846
|
+
title: draftTitleRef.current.trim() || t("New event"),
|
|
847
|
+
start: state.start,
|
|
848
|
+
end: state.end
|
|
849
|
+
});
|
|
850
|
+
}, [onEventCreate, t]);
|
|
851
|
+
var handleGridPointerDown = (0, import_react.useCallback)(function (day, e) {
|
|
852
|
+
var _dragSessionCleanupRef_current, _colEl_getBoundingClientRect;
|
|
853
|
+
if (!hasDom) return;
|
|
854
|
+
if (e.button !== void 0 && e.button !== 0) return;
|
|
855
|
+
if (editorStateRef.current) return;
|
|
856
|
+
(_dragSessionCleanupRef_current = dragSessionCleanupRef.current) === null || _dragSessionCleanupRef_current === void 0 ? void 0 : _dragSessionCleanupRef_current.call(dragSessionCleanupRef);
|
|
857
|
+
var colEl = e.currentTarget;
|
|
858
|
+
var colRect = colEl === null || colEl === void 0 ? void 0 : (_colEl_getBoundingClientRect = colEl.getBoundingClientRect) === null || _colEl_getBoundingClientRect === void 0 ? void 0 : _colEl_getBoundingClientRect.call(colEl);
|
|
859
|
+
if (!colRect) return;
|
|
860
|
+
var dayKey = formatDateKey(day);
|
|
861
|
+
var anchorRaw = (0, import_calendarMath.yToMinutes)(e.clientY - colRect.top, hourHeight);
|
|
862
|
+
var created = false;
|
|
863
|
+
var lastRange = null;
|
|
864
|
+
var cleanup = startWebPointerSession({
|
|
865
|
+
pointerType: e.pointerType,
|
|
866
|
+
startX: e.clientX,
|
|
867
|
+
startY: e.clientY,
|
|
868
|
+
onActivate: function onActivate(pt) {
|
|
869
|
+
if (!webCreateEnabled) return;
|
|
870
|
+
created = true;
|
|
871
|
+
setScrollLocked(true);
|
|
872
|
+
var raw = (0, import_calendarMath.yToMinutes)(pt.y - colRect.top, hourHeight);
|
|
873
|
+
var range = (0, import_calendarMath.createRangeFromDrag)(day, anchorRaw, raw, slotMinutes);
|
|
874
|
+
lastRange = range;
|
|
875
|
+
setCreateDraft({
|
|
876
|
+
dayKey,
|
|
877
|
+
start: range.start,
|
|
878
|
+
end: range.end
|
|
879
|
+
});
|
|
880
|
+
},
|
|
881
|
+
onMove: function onMove(pt) {
|
|
882
|
+
if (!webCreateEnabled) return;
|
|
883
|
+
var raw = (0, import_calendarMath.yToMinutes)(pt.y - colRect.top, hourHeight);
|
|
884
|
+
var range = (0, import_calendarMath.createRangeFromDrag)(day, anchorRaw, raw, slotMinutes);
|
|
885
|
+
lastRange = range;
|
|
886
|
+
setCreateDraft({
|
|
887
|
+
dayKey,
|
|
888
|
+
start: range.start,
|
|
889
|
+
end: range.end
|
|
890
|
+
});
|
|
891
|
+
},
|
|
892
|
+
onCommit: function onCommit() {
|
|
893
|
+
setScrollLocked(false);
|
|
894
|
+
dragSessionCleanupRef.current = null;
|
|
895
|
+
suppressNextClick();
|
|
896
|
+
if (!created) return;
|
|
897
|
+
var range = lastRange !== null && lastRange !== void 0 ? lastRange : (0, import_calendarMath.createRangeFromDrag)(day, anchorRaw, anchorRaw, slotMinutes);
|
|
898
|
+
setTimeout(function () {
|
|
899
|
+
return openEditor(dayKey, range);
|
|
900
|
+
}, 0);
|
|
901
|
+
},
|
|
902
|
+
onCancel: function onCancel() {
|
|
903
|
+
setCreateDraft(null);
|
|
904
|
+
setScrollLocked(false);
|
|
905
|
+
dragSessionCleanupRef.current = null;
|
|
906
|
+
},
|
|
907
|
+
onTapInstead: function onTapInstead() {
|
|
908
|
+
dragSessionCleanupRef.current = null;
|
|
909
|
+
if (suppressClickRef.current) return;
|
|
910
|
+
var startMin = (0, import_calendarMath.snapMinutes)(anchorRaw, slotMinutes, "floor");
|
|
911
|
+
onDateSelect === null || onDateSelect === void 0 ? void 0 : onDateSelect(dateAtMinutes(day, startMin));
|
|
912
|
+
},
|
|
913
|
+
onSettled: function onSettled(activated) {
|
|
914
|
+
if (!activated) dragSessionCleanupRef.current = null;
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
dragSessionCleanupRef.current = cleanup;
|
|
918
|
+
}, [hasDom, webCreateEnabled, hourHeight, slotMinutes, onDateSelect, openEditor, suppressNextClick]);
|
|
919
|
+
var endNativeSession = (0, import_react.useCallback)(function (opts) {
|
|
920
|
+
var session = nativeSessionRef.current;
|
|
921
|
+
nativeSessionRef.current = null;
|
|
922
|
+
setScrollLocked(false);
|
|
923
|
+
setDragGhost(null);
|
|
924
|
+
setDropTargetKey(null);
|
|
925
|
+
setDraggingEventId(null);
|
|
926
|
+
if (!(session === null || session === void 0 ? void 0 : session.dragging)) return;
|
|
927
|
+
suppressClickRef.current = true;
|
|
928
|
+
setTimeout(function () {
|
|
929
|
+
suppressClickRef.current = false;
|
|
930
|
+
}, 0);
|
|
931
|
+
if (!opts.commit || opts.pageX === void 0 || opts.pageY === void 0) return;
|
|
932
|
+
measureDayLayouts(dayRefs.current, function (layouts) {
|
|
933
|
+
var _findDayKeyAtPoint;
|
|
934
|
+
var key = (_findDayKeyAtPoint = findDayKeyAtPoint(opts.pageX, opts.pageY, layouts)) !== null && _findDayKeyAtPoint !== void 0 ? _findDayKeyAtPoint : findDayKeyAtPoint(opts.pageX, opts.pageY, session.layouts);
|
|
935
|
+
commitMoveToKey(session.event, key);
|
|
936
|
+
});
|
|
937
|
+
}, [commitMoveToKey]);
|
|
938
|
+
var handleNativeGrant = (0, import_react.useCallback)(function (event, e) {
|
|
939
|
+
var _ref, _ref1;
|
|
940
|
+
var _e_nativeEvent, _e_nativeEvent1;
|
|
941
|
+
if (!nativeDragEnabled) return;
|
|
942
|
+
var pageX = (_ref = (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pageX) !== null && _ref !== void 0 ? _ref : 0;
|
|
943
|
+
var pageY = (_ref1 = (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.pageY) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
944
|
+
nativeSessionRef.current = {
|
|
945
|
+
event,
|
|
946
|
+
startX: pageX,
|
|
947
|
+
startY: pageY,
|
|
948
|
+
dragging: false,
|
|
949
|
+
layouts: []
|
|
950
|
+
};
|
|
951
|
+
}, [nativeDragEnabled]);
|
|
952
|
+
var handleNativeMove = (0, import_react.useCallback)(function (e) {
|
|
953
|
+
var _ref, _ref1;
|
|
954
|
+
var _e_nativeEvent, _e_nativeEvent1;
|
|
955
|
+
var session = nativeSessionRef.current;
|
|
956
|
+
if (!session) return;
|
|
957
|
+
var pageX = (_ref = (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pageX) !== null && _ref !== void 0 ? _ref : 0;
|
|
958
|
+
var pageY = (_ref1 = (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.pageY) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
959
|
+
if (!session.dragging) {
|
|
960
|
+
if (Math.hypot(pageX - session.startX, pageY - session.startY) < DRAG_THRESHOLD_PX) return;
|
|
961
|
+
session.dragging = true;
|
|
962
|
+
setScrollLocked(true);
|
|
963
|
+
setDraggingEventId(session.event.id);
|
|
964
|
+
refreshContainerOffset();
|
|
965
|
+
measureDayLayouts(dayRefs.current, function (layouts) {
|
|
966
|
+
if (nativeSessionRef.current) nativeSessionRef.current.layouts = layouts;
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
setDragGhost({
|
|
970
|
+
event: session.event,
|
|
971
|
+
x: pageX - containerOffsetRef.current.x + 12,
|
|
972
|
+
y: pageY - containerOffsetRef.current.y + 12
|
|
973
|
+
});
|
|
974
|
+
setDropTargetKey(findDayKeyAtPoint(pageX, pageY, session.layouts));
|
|
975
|
+
}, [refreshContainerOffset]);
|
|
976
|
+
var handleNativeRelease = (0, import_react.useCallback)(function (e) {
|
|
977
|
+
var _e_nativeEvent, _e_nativeEvent1;
|
|
978
|
+
var session = nativeSessionRef.current;
|
|
979
|
+
if (!session) return;
|
|
980
|
+
if (!session.dragging) {
|
|
981
|
+
nativeSessionRef.current = null;
|
|
982
|
+
onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(session.event);
|
|
983
|
+
return;
|
|
984
|
+
}
|
|
985
|
+
endNativeSession({
|
|
986
|
+
commit: true,
|
|
987
|
+
pageX: (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pageX,
|
|
988
|
+
pageY: (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.pageY
|
|
989
|
+
});
|
|
990
|
+
}, [endNativeSession, onEventClick]);
|
|
991
|
+
var handleNativeTerminate = (0, import_react.useCallback)(function () {
|
|
992
|
+
endNativeSession({
|
|
993
|
+
commit: false
|
|
994
|
+
});
|
|
995
|
+
}, [endNativeSession]);
|
|
996
|
+
var getEventDragProps = (0, import_react.useCallback)(function (event) {
|
|
997
|
+
var mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "day";
|
|
998
|
+
var base = {
|
|
999
|
+
"data-calendar-event": event.id
|
|
1000
|
+
};
|
|
1001
|
+
if (webDragEnabled) {
|
|
1002
|
+
return {
|
|
1003
|
+
...base,
|
|
1004
|
+
onPointerDown: function onPointerDown(e) {
|
|
1005
|
+
return handleEventPointerDown(event, e, mode);
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
if (nativeDragEnabled) {
|
|
1010
|
+
return {
|
|
1011
|
+
...base,
|
|
1012
|
+
// Claim the touch so moves continue outside the chip (ScrollView-safe once dragging).
|
|
1013
|
+
onStartShouldSetResponder: function onStartShouldSetResponder() {
|
|
1014
|
+
return true;
|
|
1015
|
+
},
|
|
1016
|
+
onMoveShouldSetResponder: function onMoveShouldSetResponder() {
|
|
1017
|
+
return true;
|
|
1018
|
+
},
|
|
1019
|
+
onResponderTerminationRequest: function onResponderTerminationRequest() {
|
|
1020
|
+
var _nativeSessionRef_current;
|
|
1021
|
+
return !((_nativeSessionRef_current = nativeSessionRef.current) === null || _nativeSessionRef_current === void 0 ? void 0 : _nativeSessionRef_current.dragging);
|
|
1022
|
+
},
|
|
1023
|
+
onResponderGrant: function onResponderGrant(e) {
|
|
1024
|
+
return handleNativeGrant(event, e);
|
|
1025
|
+
},
|
|
1026
|
+
onResponderMove: handleNativeMove,
|
|
1027
|
+
onResponderRelease: handleNativeRelease,
|
|
1028
|
+
onResponderTerminate: handleNativeTerminate
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
return base;
|
|
1032
|
+
}, [webDragEnabled, nativeDragEnabled, handleEventPointerDown, handleNativeGrant, handleNativeMove, handleNativeRelease, handleNativeTerminate]);
|
|
141
1033
|
var eventsByDate = (0, import_react.useMemo)(function () {
|
|
142
1034
|
var grouped = {};
|
|
143
1035
|
var _iteratorNormalCompletion = true,
|
|
@@ -167,22 +1059,35 @@ function Calendar(param) {
|
|
|
167
1059
|
return grouped;
|
|
168
1060
|
}, [events]);
|
|
169
1061
|
var goToPrevious = (0, import_react.useCallback)(function () {
|
|
1062
|
+
navDirectionRef.current = -1;
|
|
1063
|
+
hasNavigatedRef.current = true;
|
|
170
1064
|
setCurrentDate(function (prev) {
|
|
1065
|
+
if (view === "month") return addMonths(prev, -1);
|
|
171
1066
|
var next = new Date(prev);
|
|
172
|
-
if (view === "
|
|
1067
|
+
if (view === "week") next.setDate(prev.getDate() - 7);else next.setDate(prev.getDate() - 1);
|
|
173
1068
|
return next;
|
|
174
1069
|
});
|
|
175
1070
|
}, [view]);
|
|
176
1071
|
var goToNext = (0, import_react.useCallback)(function () {
|
|
1072
|
+
navDirectionRef.current = 1;
|
|
1073
|
+
hasNavigatedRef.current = true;
|
|
177
1074
|
setCurrentDate(function (prev) {
|
|
1075
|
+
if (view === "month") return addMonths(prev, 1);
|
|
178
1076
|
var next = new Date(prev);
|
|
179
|
-
if (view === "
|
|
1077
|
+
if (view === "week") next.setDate(prev.getDate() + 7);else next.setDate(prev.getDate() + 1);
|
|
180
1078
|
return next;
|
|
181
1079
|
});
|
|
182
1080
|
}, [view]);
|
|
183
1081
|
var goToToday = (0, import_react.useCallback)(function () {
|
|
1082
|
+
navDirectionRef.current = 0;
|
|
1083
|
+
hasNavigatedRef.current = true;
|
|
184
1084
|
setCurrentDate(/* @__PURE__ */new Date());
|
|
185
1085
|
}, []);
|
|
1086
|
+
var changeView = (0, import_react.useCallback)(function (next) {
|
|
1087
|
+
navDirectionRef.current = 0;
|
|
1088
|
+
hasNavigatedRef.current = true;
|
|
1089
|
+
setView(next);
|
|
1090
|
+
}, []);
|
|
186
1091
|
var displayTitle = (0, import_react.useMemo)(function () {
|
|
187
1092
|
if (view === "month") {
|
|
188
1093
|
return `${monthNames[currentDate.getMonth()]} ${currentDate.getFullYear()}`;
|
|
@@ -198,51 +1103,181 @@ function Calendar(param) {
|
|
|
198
1103
|
}
|
|
199
1104
|
return `${weekdayNames[currentDate.getDay()]}, ${monthNames[currentDate.getMonth()]} ${currentDate.getDate()}, ${currentDate.getFullYear()}`;
|
|
200
1105
|
}, [currentDate, view, firstDayOfWeek]);
|
|
1106
|
+
var [focusedDate, setFocusedDate] = (0, import_react.useState)(null);
|
|
1107
|
+
var [focusedSlotMin, setFocusedSlotMin] = (0, import_react.useState)(9 * 60);
|
|
1108
|
+
var [announcement, setAnnouncement] = (0, import_react.useState)("");
|
|
1109
|
+
(0, import_react.useEffect)(function () {
|
|
1110
|
+
if (hasNavigatedRef.current) setAnnouncement(displayTitle);
|
|
1111
|
+
}, [displayTitle]);
|
|
1112
|
+
var focusedDayKey = focusedDate ? formatDateKey(focusedDate) : null;
|
|
1113
|
+
var focusCellId = focusedDayKey ? view === "month" ? `${calendarId}-day-${focusedDayKey}` : `${calendarId}-slot-cursor` : void 0;
|
|
1114
|
+
var handleBodyKeyDown = (0, import_react.useCallback)(function (e) {
|
|
1115
|
+
if (editorStateRef.current) return;
|
|
1116
|
+
var key = e.key;
|
|
1117
|
+
var arrows = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"];
|
|
1118
|
+
if (arrows.includes(key)) {
|
|
1119
|
+
var _e_preventDefault;
|
|
1120
|
+
(_e_preventDefault = e.preventDefault) === null || _e_preventDefault === void 0 ? void 0 : _e_preventDefault.call(e);
|
|
1121
|
+
var base = focusedDate !== null && focusedDate !== void 0 ? focusedDate : currentDate;
|
|
1122
|
+
if (!focusedDate) {
|
|
1123
|
+
setFocusedDate(base);
|
|
1124
|
+
setAnnouncement(formatDayLong(base));
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1127
|
+
if (view !== "month" && (key === "ArrowUp" || key === "ArrowDown")) {
|
|
1128
|
+
var nextMin = (0, import_calendarMath.moveFocusSlot)(focusedSlotMin, key, slotMinutes);
|
|
1129
|
+
setFocusedSlotMin(nextMin);
|
|
1130
|
+
setAnnouncement(`${formatDayLong(base)}, ${(0, import_calendarMath.formatTimeRangeLabel)(dateAtMinutes(base, nextMin), dateAtMinutes(base, nextMin + slotMinutes))}`);
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
var logicalKey = isRTL && key === "ArrowLeft" ? "ArrowRight" : isRTL && key === "ArrowRight" ? "ArrowLeft" : key;
|
|
1134
|
+
var next = (0, import_calendarMath.moveFocusDate)(base, logicalKey, view);
|
|
1135
|
+
setFocusedDate(next);
|
|
1136
|
+
setAnnouncement(formatDayLong(next));
|
|
1137
|
+
var delta = next.getTime() - base.getTime();
|
|
1138
|
+
if (view === "month" && next.getMonth() !== currentDate.getMonth()) {
|
|
1139
|
+
navDirectionRef.current = delta > 0 ? 1 : -1;
|
|
1140
|
+
hasNavigatedRef.current = true;
|
|
1141
|
+
setCurrentDate(next);
|
|
1142
|
+
} else if (view === "week") {
|
|
1143
|
+
var visible = getWeekDays(currentDate, firstDayOfWeek).map(formatDateKey);
|
|
1144
|
+
if (!visible.includes(formatDateKey(next))) {
|
|
1145
|
+
navDirectionRef.current = delta > 0 ? 1 : -1;
|
|
1146
|
+
hasNavigatedRef.current = true;
|
|
1147
|
+
setCurrentDate(next);
|
|
1148
|
+
}
|
|
1149
|
+
} else if (view === "day" && !isSameDay(next, currentDate)) {
|
|
1150
|
+
navDirectionRef.current = delta > 0 ? 1 : -1;
|
|
1151
|
+
hasNavigatedRef.current = true;
|
|
1152
|
+
setCurrentDate(next);
|
|
1153
|
+
}
|
|
1154
|
+
return;
|
|
1155
|
+
}
|
|
1156
|
+
if (key === "Enter" && focusedDate) {
|
|
1157
|
+
var _e_preventDefault1;
|
|
1158
|
+
(_e_preventDefault1 = e.preventDefault) === null || _e_preventDefault1 === void 0 ? void 0 : _e_preventDefault1.call(e);
|
|
1159
|
+
if (view === "month") {
|
|
1160
|
+
onDateSelect === null || onDateSelect === void 0 ? void 0 : onDateSelect(focusedDate);
|
|
1161
|
+
return;
|
|
1162
|
+
}
|
|
1163
|
+
var start = dateAtMinutes(focusedDate, focusedSlotMin);
|
|
1164
|
+
if (onEventCreate) {
|
|
1165
|
+
openEditor(formatDateKey(focusedDate), {
|
|
1166
|
+
start,
|
|
1167
|
+
end: dateAtMinutes(focusedDate, focusedSlotMin + slotMinutes)
|
|
1168
|
+
});
|
|
1169
|
+
} else {
|
|
1170
|
+
onDateSelect === null || onDateSelect === void 0 ? void 0 : onDateSelect(start);
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}, [focusedDate, currentDate, view, focusedSlotMin, slotMinutes, firstDayOfWeek, isRTL, onDateSelect, onEventCreate, openEditor]);
|
|
1174
|
+
var eventA11yProps = (0, import_react.useCallback)(function (event) {
|
|
1175
|
+
return {
|
|
1176
|
+
role: "button",
|
|
1177
|
+
tabIndex: 0,
|
|
1178
|
+
"aria-label": (0, import_calendarMath.eventAccessibleLabel)(event),
|
|
1179
|
+
onKeyDown: function onKeyDown(ke) {
|
|
1180
|
+
if (ke.key === "Enter" || ke.key === " ") {
|
|
1181
|
+
var _ke_preventDefault, _ke_stopPropagation;
|
|
1182
|
+
(_ke_preventDefault = ke.preventDefault) === null || _ke_preventDefault === void 0 ? void 0 : _ke_preventDefault.call(ke);
|
|
1183
|
+
(_ke_stopPropagation = ke.stopPropagation) === null || _ke_stopPropagation === void 0 ? void 0 : _ke_stopPropagation.call(ke);
|
|
1184
|
+
onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(event);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
};
|
|
1188
|
+
}, [onEventClick]);
|
|
201
1189
|
var renderEventBadge = (0, import_react.useCallback)(function (event) {
|
|
202
1190
|
var compact = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
203
|
-
|
|
1191
|
+
var dragProps = getEventDragProps(event, "day");
|
|
1192
|
+
var lifted = draggingEventId === event.id;
|
|
1193
|
+
if (renderEvent) {
|
|
1194
|
+
if (!dragEnabled) {
|
|
1195
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.default.Fragment, {
|
|
1196
|
+
children: renderEvent(event)
|
|
1197
|
+
}, event.id);
|
|
1198
|
+
}
|
|
1199
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1200
|
+
cursor: webDragEnabled ? "grab" : void 0,
|
|
1201
|
+
opacity: lifted ? 0.4 : 1,
|
|
1202
|
+
...dragProps,
|
|
1203
|
+
children: renderEvent(event)
|
|
1204
|
+
}, event.id);
|
|
1205
|
+
}
|
|
204
1206
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
205
1207
|
...knobProps.borderRadius,
|
|
206
1208
|
backgroundColor: event.color || "$accentBackground",
|
|
207
1209
|
padding: compact ? "$1" : "$2",
|
|
1210
|
+
// DG-LAY-04: month-view chips measured 23px tall — floor the visual
|
|
1211
|
+
// box at 24 and fill the rest of the 44 target with hit slop (real
|
|
1212
|
+
// 44 chips would break stacked chips inside month cells).
|
|
1213
|
+
minHeight: MONTH_CHIP_MIN_PX,
|
|
1214
|
+
justifyContent: "center",
|
|
1215
|
+
hitSlop: (0, import_theme.pressTargetHitSlop)(compact ? MONTH_CHIP_MIN_PX : 32),
|
|
1216
|
+
opacity: lifted ? 0.4 : 1,
|
|
208
1217
|
hoverStyle: {
|
|
209
|
-
opacity: 0.9
|
|
1218
|
+
opacity: lifted ? 0.4 : 0.9
|
|
210
1219
|
},
|
|
211
1220
|
pressStyle: {
|
|
212
1221
|
opacity: 0.8
|
|
213
1222
|
},
|
|
214
|
-
cursor: "pointer",
|
|
215
|
-
|
|
1223
|
+
cursor: webDragEnabled ? "grab" : "pointer",
|
|
1224
|
+
...eventA11yProps(event),
|
|
1225
|
+
...dragProps,
|
|
1226
|
+
// Native drag responders own the tap → click is handled on release.
|
|
1227
|
+
onPress: nativeDragEnabled ? void 0 : function (e) {
|
|
216
1228
|
var _e_stopPropagation;
|
|
217
1229
|
e === null || e === void 0 ? void 0 : (_e_stopPropagation = e.stopPropagation) === null || _e_stopPropagation === void 0 ? void 0 : _e_stopPropagation.call(e);
|
|
1230
|
+
if (suppressClickRef.current) return;
|
|
218
1231
|
onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(event);
|
|
219
1232
|
},
|
|
220
1233
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1234
|
+
...knobProps.body,
|
|
221
1235
|
fontSize: compact ? "$1" : "$2",
|
|
222
1236
|
numberOfLines: compact ? 1 : 2,
|
|
223
|
-
color:
|
|
1237
|
+
color: eventChipTextColor(event.color),
|
|
224
1238
|
children: event.title
|
|
225
1239
|
})
|
|
226
1240
|
}, event.id);
|
|
227
|
-
}, [renderEvent, onEventClick, knobProps.borderRadius]);
|
|
1241
|
+
}, [renderEvent, onEventClick, knobProps.borderRadius, dragEnabled, webDragEnabled, nativeDragEnabled, getEventDragProps, eventA11yProps, draggingEventId]);
|
|
1242
|
+
var MONTH_VISIBLE_EVENTS = 3;
|
|
228
1243
|
var renderMonthView = function renderMonthView2() {
|
|
229
1244
|
var monthDays = getMonthDays(currentDate, firstDayOfWeek);
|
|
1245
|
+
var totalWeeks = Math.ceil(monthDays.length / 7);
|
|
1246
|
+
var monthRowMinHeight = monthCellMinHeight;
|
|
1247
|
+
if (monthBodyHeight > 0 && totalWeeks * monthCellMinHeight > monthBodyHeight) {
|
|
1248
|
+
monthRowMinHeight = totalWeeks * monthRowHardFloor <= monthBodyHeight ? monthRowHardFloor : monthBodyHeight / Math.max(1, Math.floor(monthBodyHeight / monthRowHardFloor));
|
|
1249
|
+
}
|
|
230
1250
|
var weekdayHeaders = [];
|
|
231
1251
|
for (var i = 0; i < 7; i++) {
|
|
232
1252
|
weekdayHeaders.push(weekdayNames[(firstDayOfWeek + i) % 7]);
|
|
233
1253
|
}
|
|
234
1254
|
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
235
1255
|
flex: 1,
|
|
1256
|
+
role: "grid",
|
|
1257
|
+
"aria-label": t("Calendar"),
|
|
1258
|
+
tabIndex: 0,
|
|
1259
|
+
"aria-activedescendant": focusCellId,
|
|
1260
|
+
onKeyDown: handleBodyKeyDown,
|
|
1261
|
+
outlineWidth: 0,
|
|
1262
|
+
focusVisibleStyle: {
|
|
1263
|
+
outlineWidth: 2,
|
|
1264
|
+
outlineColor: "$accentBackground",
|
|
1265
|
+
outlineStyle: "solid"
|
|
1266
|
+
},
|
|
1267
|
+
"data-calendar-body": view,
|
|
236
1268
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
237
|
-
|
|
1269
|
+
...import_theme.hairline.bottom,
|
|
238
1270
|
borderColor: "$borderColor",
|
|
1271
|
+
role: "row",
|
|
239
1272
|
children: weekdayHeaders.map(function (day) {
|
|
240
1273
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
241
1274
|
flex: 1,
|
|
242
1275
|
padding: "$2",
|
|
243
1276
|
alignItems: "center",
|
|
1277
|
+
role: "columnheader",
|
|
244
1278
|
backgroundColor: import_componentColors.componentColors.surface.background,
|
|
245
1279
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1280
|
+
...knobProps.body,
|
|
246
1281
|
fontWeight: "500",
|
|
247
1282
|
fontSize: "$2",
|
|
248
1283
|
color: import_componentColors.componentColors.text.muted,
|
|
@@ -250,67 +1285,330 @@ function Calendar(param) {
|
|
|
250
1285
|
})
|
|
251
1286
|
}, day);
|
|
252
1287
|
})
|
|
253
|
-
}),
|
|
1288
|
+
}),
|
|
1289
|
+
/* flexGrow content: week rows stretch to share the panel height so a
|
|
1290
|
+
5/6-week month fits without slicing the last row; scroll engages
|
|
1291
|
+
only below the per-row hard floor. */
|
|
1292
|
+
/* @__PURE__ */
|
|
1293
|
+
(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
|
|
254
1294
|
flex: 1,
|
|
1295
|
+
scrollEnabled: !scrollLocked,
|
|
1296
|
+
contentContainerStyle: {
|
|
1297
|
+
flexGrow: 1
|
|
1298
|
+
},
|
|
1299
|
+
onLayout: function onLayout(e) {
|
|
1300
|
+
var next = e.nativeEvent.layout.height;
|
|
1301
|
+
setMonthBodyHeight(function (prev) {
|
|
1302
|
+
return prev === next ? prev : next;
|
|
1303
|
+
});
|
|
1304
|
+
},
|
|
255
1305
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1306
|
+
flex: 1,
|
|
256
1307
|
children: Array.from({
|
|
257
|
-
length:
|
|
258
|
-
}).map(function (_, weekIndex) {
|
|
259
|
-
return
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
1308
|
+
length: totalWeeks
|
|
1309
|
+
}).map(function (_, weekIndex, weeks) {
|
|
1310
|
+
return (
|
|
1311
|
+
// basis:auto (not flex={1}): rows grow from their content and
|
|
1312
|
+
// share only the EXTRA space, so a crowded cell can never be
|
|
1313
|
+
// sliced by a fixed row share; scroll engages past the floor.
|
|
1314
|
+
/* @__PURE__ */
|
|
1315
|
+
(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
1316
|
+
flexGrow: 1,
|
|
1317
|
+
flexShrink: 0,
|
|
1318
|
+
flexBasis: "auto",
|
|
1319
|
+
minHeight: monthRowMinHeight,
|
|
1320
|
+
role: "row",
|
|
1321
|
+
children: monthDays.slice(weekIndex * 7, (weekIndex + 1) * 7).map(function (day, dayIndex) {
|
|
1322
|
+
var isCurrentMonth = day.getMonth() === currentDate.getMonth();
|
|
1323
|
+
var dayKey = formatDateKey(day);
|
|
1324
|
+
var dayEvents = eventsByDate[dayKey] || [];
|
|
1325
|
+
var isDropTarget = dragGhost !== null && dropTargetKey === dayKey;
|
|
1326
|
+
var isFocused = focusedDayKey === dayKey;
|
|
1327
|
+
var hiddenCount = dayEvents.length - MONTH_VISIBLE_EVENTS;
|
|
1328
|
+
var today = isToday(day);
|
|
1329
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
1330
|
+
id: `${calendarId}-day-${dayKey}`,
|
|
1331
|
+
...{
|
|
1332
|
+
role: "gridcell"
|
|
1333
|
+
},
|
|
1334
|
+
"aria-selected": isFocused || void 0,
|
|
1335
|
+
"aria-label": dayEvents.length > 0 ? `${formatDayLong(day)}, ${(0, import_t.withInterp)(t("{{count}} events"), {
|
|
1336
|
+
count: dayEvents.length
|
|
1337
|
+
})}` : formatDayLong(day),
|
|
1338
|
+
ref: nativeDragEnabled ? function (node) {
|
|
1339
|
+
return registerDayRef(dayKey, node);
|
|
1340
|
+
} : void 0,
|
|
1341
|
+
flex: 1,
|
|
1342
|
+
minHeight: monthRowMinHeight,
|
|
1343
|
+
// Interior hairline separators only — the panel frame
|
|
1344
|
+
// owns the outer edge (OPTICS: one device pixel, no
|
|
1345
|
+
// doubled rules at the last column/row).
|
|
1346
|
+
...gridCellEdges(dayIndex < 6, weekIndex < weeks.length - 1),
|
|
1347
|
+
borderColor: "$borderColor",
|
|
1348
|
+
backgroundColor: isDropTarget ? "$accentBackground" : isCurrentMonth ? "$background" : import_componentColors.componentColors.surface.background,
|
|
1349
|
+
padding: cellPad,
|
|
1350
|
+
...(isFocused && {
|
|
1351
|
+
outlineWidth: 2,
|
|
1352
|
+
outlineColor: "$accentBackground",
|
|
1353
|
+
outlineStyle: "solid",
|
|
1354
|
+
outlineOffset: -2
|
|
1355
|
+
}),
|
|
1356
|
+
"data-calendar-day": dayKey,
|
|
1357
|
+
onPress: function onPress() {
|
|
1358
|
+
if (suppressClickRef.current) return;
|
|
1359
|
+
onDateSelect === null || onDateSelect === void 0 ? void 0 : onDateSelect(day);
|
|
1360
|
+
},
|
|
1361
|
+
cursor: "pointer",
|
|
1362
|
+
hoverStyle: {
|
|
1363
|
+
backgroundColor: import_componentColors.componentColors.surface.background
|
|
1364
|
+
},
|
|
1365
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
1366
|
+
justifyContent: "flex-end",
|
|
1367
|
+
paddingInlineEnd: "$1",
|
|
1368
|
+
children: (/* Today marker: accent disc (pill-by-anatomy, like Badge). */
|
|
1369
|
+
/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1370
|
+
width: DAY_DISC_PX,
|
|
1371
|
+
height: DAY_DISC_PX,
|
|
1372
|
+
borderRadius: DAY_DISC_PX / 2,
|
|
1373
|
+
alignItems: "center",
|
|
1374
|
+
justifyContent: "center",
|
|
1375
|
+
backgroundColor: today ? "$accentBackground" : "transparent",
|
|
1376
|
+
...(today && {
|
|
1377
|
+
"data-calendar-today": "true"
|
|
1378
|
+
}),
|
|
1379
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1380
|
+
...knobProps.body,
|
|
1381
|
+
fontSize: "$2",
|
|
1382
|
+
fontWeight: today ? "700" : "400",
|
|
1383
|
+
color: today ? onAccent !== null && onAccent !== void 0 ? onAccent : "$accentColor" : isCurrentMonth ? "$color" :
|
|
1384
|
+
// muted, not subtle: adjacent-month days are
|
|
1385
|
+
// clickable text — $color8 measured 1.79:1
|
|
1386
|
+
import_componentColors.componentColors.text.muted,
|
|
1387
|
+
textAlign: "center",
|
|
1388
|
+
children: day.getDate()
|
|
1389
|
+
})
|
|
1390
|
+
}))
|
|
1391
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
1392
|
+
gap: chipGap,
|
|
1393
|
+
marginTop: chipGap,
|
|
1394
|
+
children: [dayEvents.slice(0, MONTH_VISIBLE_EVENTS).map(function (event) {
|
|
1395
|
+
return renderEventBadge(event, true);
|
|
1396
|
+
}), hiddenCount > 0 && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.FloatingPanel, {
|
|
1397
|
+
open: overflowDayKey === dayKey,
|
|
1398
|
+
onOpenChange: function onOpenChange(open) {
|
|
1399
|
+
return setOverflowDayKey(open ? dayKey : null);
|
|
1400
|
+
},
|
|
1401
|
+
fitContent: true,
|
|
1402
|
+
trigger: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
1403
|
+
role: "button",
|
|
1404
|
+
"aria-label": (0, import_t.withInterp)(t("Show all {{count}} events"), {
|
|
1405
|
+
count: dayEvents.length
|
|
1406
|
+
}),
|
|
1407
|
+
cursor: "pointer",
|
|
1408
|
+
paddingInlineStart: "$1",
|
|
1409
|
+
// Web: keep the "+N more" press from also selecting
|
|
1410
|
+
// the day cell. Native must not stop propagation —
|
|
1411
|
+
// the sheet trigger's own press lives on a parent.
|
|
1412
|
+
onPress: import_tamagui.isWeb ? function (e) {
|
|
1413
|
+
var _e_stopPropagation;
|
|
1414
|
+
return e === null || e === void 0 ? void 0 : (_e_stopPropagation = e.stopPropagation) === null || _e_stopPropagation === void 0 ? void 0 : _e_stopPropagation.call(e);
|
|
1415
|
+
} : void 0,
|
|
1416
|
+
hoverStyle: {
|
|
1417
|
+
opacity: 0.7
|
|
1418
|
+
},
|
|
1419
|
+
"data-calendar-overflow": String(hiddenCount),
|
|
1420
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1421
|
+
fontSize: "$1",
|
|
1422
|
+
color: import_componentColors.componentColors.text.muted,
|
|
1423
|
+
children: (0, import_t.withInterp)(t("+{{count}} more"), {
|
|
1424
|
+
count: hiddenCount
|
|
1425
|
+
})
|
|
1426
|
+
})
|
|
1427
|
+
}),
|
|
1428
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
1429
|
+
gap: "$1",
|
|
1430
|
+
minWidth: 220,
|
|
1431
|
+
"data-calendar-overflow-panel": dayKey,
|
|
1432
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1433
|
+
...knobProps.heading,
|
|
1434
|
+
fontSize: "$3",
|
|
1435
|
+
children: formatDayLong(day)
|
|
1436
|
+
}), dayEvents.map(function (event) {
|
|
1437
|
+
return renderEventBadge(event, false);
|
|
1438
|
+
})]
|
|
1439
|
+
})
|
|
1440
|
+
})]
|
|
296
1441
|
})]
|
|
297
|
-
})
|
|
298
|
-
}
|
|
299
|
-
})
|
|
300
|
-
|
|
1442
|
+
}, day.toISOString());
|
|
1443
|
+
})
|
|
1444
|
+
}, weekIndex)
|
|
1445
|
+
);
|
|
301
1446
|
})
|
|
302
1447
|
})
|
|
303
1448
|
})]
|
|
304
1449
|
});
|
|
305
1450
|
};
|
|
306
|
-
var
|
|
307
|
-
|
|
1451
|
+
var timeGridScrollRef = (0, import_react.useRef)(null);
|
|
1452
|
+
var gridHeight = 24 * hourHeight;
|
|
1453
|
+
(0, import_react.useEffect)(function () {
|
|
1454
|
+
var _timeGridScrollRef_current_scrollTo, _timeGridScrollRef_current;
|
|
1455
|
+
if (view === "month") return;
|
|
1456
|
+
var target = Math.max(0, (0, import_calendarMath.minutesToY)(7 * 60, hourHeight) - 8);
|
|
1457
|
+
(_timeGridScrollRef_current = timeGridScrollRef.current) === null || _timeGridScrollRef_current === void 0 ? void 0 : (_timeGridScrollRef_current_scrollTo = _timeGridScrollRef_current.scrollTo) === null || _timeGridScrollRef_current_scrollTo === void 0 ? void 0 : _timeGridScrollRef_current_scrollTo.call(_timeGridScrollRef_current, {
|
|
1458
|
+
y: target,
|
|
1459
|
+
animated: false
|
|
1460
|
+
});
|
|
1461
|
+
}, [view, hourHeight]);
|
|
1462
|
+
var renderTimedBlock = function renderTimedBlock2(event, layout) {
|
|
1463
|
+
var _event_end;
|
|
1464
|
+
var preview = (resizePreview === null || resizePreview === void 0 ? void 0 : resizePreview.id) === event.id ? resizePreview : null;
|
|
1465
|
+
var start = preview ? preview.start : event.start;
|
|
1466
|
+
var end = preview ? preview.end : (_event_end = event.end) !== null && _event_end !== void 0 ? _event_end : event.start;
|
|
1467
|
+
var startMin = (0, import_calendarMath.minutesOfDay)(start);
|
|
1468
|
+
var endMin = Math.max(startMin + slotMinutes, startMin + (end.getTime() - start.getTime()) / 6e4);
|
|
1469
|
+
var top = (0, import_calendarMath.minutesToY)(startMin, hourHeight);
|
|
1470
|
+
var blockHeight = Math.max(MIN_BLOCK_PX, (0, import_calendarMath.minutesToY)(endMin - startMin, hourHeight));
|
|
1471
|
+
var widthPct = 100 / layout.columns;
|
|
1472
|
+
var leftPct = (isRTL ? layout.columns - 1 - layout.column : layout.column) * widthPct;
|
|
1473
|
+
var lifted = draggingEventId === event.id;
|
|
1474
|
+
var zoneInner = Math.min(RESIZE_ZONE_PX / 2, blockHeight / 2);
|
|
1475
|
+
var dragProps = getEventDragProps(event, "slot");
|
|
1476
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
1477
|
+
position: "absolute",
|
|
1478
|
+
top,
|
|
1479
|
+
height: blockHeight,
|
|
1480
|
+
left: `${leftPct}%`,
|
|
1481
|
+
width: `${widthPct}%`,
|
|
1482
|
+
paddingInlineEnd: 2,
|
|
1483
|
+
zIndex: preview ? 4 : 2,
|
|
1484
|
+
// LC-25: committed/reverted/snapped geometry jumps tween on web.
|
|
1485
|
+
transition: webLayoutTransition,
|
|
1486
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1487
|
+
flex: 1,
|
|
1488
|
+
...knobProps.borderRadius,
|
|
1489
|
+
backgroundColor: event.color || "$accentBackground",
|
|
1490
|
+
padding: "$1",
|
|
1491
|
+
overflow: "hidden",
|
|
1492
|
+
opacity: lifted ? 0.4 : 1,
|
|
1493
|
+
borderWidth: 1,
|
|
1494
|
+
borderColor: "$background",
|
|
1495
|
+
cursor: webDragEnabled ? "grab" : "pointer",
|
|
1496
|
+
...eventA11yProps(event),
|
|
1497
|
+
...dragProps,
|
|
1498
|
+
onPress: nativeDragEnabled ? void 0 : function (e) {
|
|
1499
|
+
var _e_stopPropagation;
|
|
1500
|
+
e === null || e === void 0 ? void 0 : (_e_stopPropagation = e.stopPropagation) === null || _e_stopPropagation === void 0 ? void 0 : _e_stopPropagation.call(e);
|
|
1501
|
+
if (suppressClickRef.current) return;
|
|
1502
|
+
onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(event);
|
|
1503
|
+
},
|
|
1504
|
+
children: renderEvent ? renderEvent(event) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
1505
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1506
|
+
fontSize: "$1",
|
|
1507
|
+
fontWeight: "600",
|
|
1508
|
+
numberOfLines: 1,
|
|
1509
|
+
color: eventChipTextColor(event.color),
|
|
1510
|
+
children: event.title
|
|
1511
|
+
}), blockHeight >= 34 && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1512
|
+
fontSize: "$1",
|
|
1513
|
+
numberOfLines: 1,
|
|
1514
|
+
color: eventChipTextColor(event.color),
|
|
1515
|
+
children: (0, import_calendarMath.formatTimeRangeLabel)(start, end)
|
|
1516
|
+
})]
|
|
1517
|
+
})
|
|
1518
|
+
}), /* Resize handles: 44px hit zones straddling each edge (Axiom 12). */
|
|
1519
|
+
webResizeEnabled && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
1520
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1521
|
+
position: "absolute",
|
|
1522
|
+
...overlayInset,
|
|
1523
|
+
top: -RESIZE_ZONE_PX / 2,
|
|
1524
|
+
height: RESIZE_ZONE_PX / 2 + zoneInner,
|
|
1525
|
+
cursor: "ns-resize",
|
|
1526
|
+
zIndex: 3,
|
|
1527
|
+
justifyContent: "flex-end",
|
|
1528
|
+
alignItems: "center",
|
|
1529
|
+
opacity: 0,
|
|
1530
|
+
hoverStyle: {
|
|
1531
|
+
opacity: 1
|
|
1532
|
+
},
|
|
1533
|
+
onPointerDown: function onPointerDown(e) {
|
|
1534
|
+
return handleResizePointerDown(event, "start", e);
|
|
1535
|
+
},
|
|
1536
|
+
"data-calendar-resize": `start:${event.id}`,
|
|
1537
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1538
|
+
width: 28,
|
|
1539
|
+
height: 3,
|
|
1540
|
+
borderRadius: 2,
|
|
1541
|
+
backgroundColor: "$accentColor",
|
|
1542
|
+
marginBottom: 2
|
|
1543
|
+
})
|
|
1544
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1545
|
+
position: "absolute",
|
|
1546
|
+
...overlayInset,
|
|
1547
|
+
bottom: -RESIZE_ZONE_PX / 2,
|
|
1548
|
+
height: RESIZE_ZONE_PX / 2 + zoneInner,
|
|
1549
|
+
cursor: "ns-resize",
|
|
1550
|
+
zIndex: 3,
|
|
1551
|
+
justifyContent: "flex-start",
|
|
1552
|
+
alignItems: "center",
|
|
1553
|
+
opacity: 0,
|
|
1554
|
+
hoverStyle: {
|
|
1555
|
+
opacity: 1
|
|
1556
|
+
},
|
|
1557
|
+
onPointerDown: function onPointerDown(e) {
|
|
1558
|
+
return handleResizePointerDown(event, "end", e);
|
|
1559
|
+
},
|
|
1560
|
+
"data-calendar-resize": `end:${event.id}`,
|
|
1561
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1562
|
+
width: 28,
|
|
1563
|
+
height: 3,
|
|
1564
|
+
borderRadius: 2,
|
|
1565
|
+
backgroundColor: "$accentColor",
|
|
1566
|
+
marginTop: 2
|
|
1567
|
+
})
|
|
1568
|
+
})]
|
|
1569
|
+
}), /* Live duration label while resizing. */
|
|
1570
|
+
preview && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1571
|
+
position: "absolute",
|
|
1572
|
+
top: -26,
|
|
1573
|
+
alignSelf: "center",
|
|
1574
|
+
backgroundColor: "$background",
|
|
1575
|
+
...knobProps.borderRadius,
|
|
1576
|
+
borderWidth: 1,
|
|
1577
|
+
borderColor: "$borderColor",
|
|
1578
|
+
paddingHorizontal: "$2",
|
|
1579
|
+
zIndex: 5,
|
|
1580
|
+
pointerEvents: "none",
|
|
1581
|
+
"data-calendar-resize-label": "true",
|
|
1582
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1583
|
+
fontSize: "$1",
|
|
1584
|
+
color: "$color",
|
|
1585
|
+
children: (0, import_calendarMath.formatTimeRangeLabel)(preview.start, preview.end)
|
|
1586
|
+
})
|
|
1587
|
+
})]
|
|
1588
|
+
}, event.id);
|
|
1589
|
+
};
|
|
1590
|
+
var renderTimeGrid = function renderTimeGrid2(days) {
|
|
308
1591
|
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
309
1592
|
flex: 1,
|
|
310
|
-
|
|
311
|
-
|
|
1593
|
+
role: "grid",
|
|
1594
|
+
"aria-label": t("Calendar"),
|
|
1595
|
+
tabIndex: 0,
|
|
1596
|
+
"aria-activedescendant": focusCellId,
|
|
1597
|
+
onKeyDown: handleBodyKeyDown,
|
|
1598
|
+
outlineWidth: 0,
|
|
1599
|
+
focusVisibleStyle: {
|
|
1600
|
+
outlineWidth: 2,
|
|
1601
|
+
outlineColor: "$accentBackground",
|
|
1602
|
+
outlineStyle: "solid"
|
|
1603
|
+
},
|
|
1604
|
+
"data-calendar-body": view,
|
|
1605
|
+
children: [/* Day headers */
|
|
1606
|
+
/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
1607
|
+
...import_theme.hairline.bottom,
|
|
312
1608
|
borderColor: "$borderColor",
|
|
313
|
-
children:
|
|
1609
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1610
|
+
width: 56
|
|
1611
|
+
}), days.map(function (day) {
|
|
314
1612
|
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
315
1613
|
flex: 1,
|
|
316
1614
|
padding: "$2",
|
|
@@ -320,115 +1618,274 @@ function Calendar(param) {
|
|
|
320
1618
|
backgroundColor: import_componentColors.componentColors.interactive.background
|
|
321
1619
|
}),
|
|
322
1620
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1621
|
+
...knobProps.body,
|
|
323
1622
|
fontWeight: "500",
|
|
324
1623
|
fontSize: "$2",
|
|
325
1624
|
color: import_componentColors.componentColors.text.muted,
|
|
326
1625
|
children: weekdayNames[day.getDay()]
|
|
327
1626
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1627
|
+
...knobProps.body,
|
|
328
1628
|
fontWeight: isToday(day) ? "700" : "400",
|
|
329
1629
|
fontSize: knobProps.sizeToken,
|
|
330
1630
|
color: isToday(day) ? "$accentColor" : "$color",
|
|
331
1631
|
children: day.getDate()
|
|
332
1632
|
})]
|
|
333
1633
|
}, day.toISOString());
|
|
334
|
-
})
|
|
335
|
-
}), /*
|
|
1634
|
+
})]
|
|
1635
|
+
}), /* All-day / untimed strip (also the day-granularity drop row) */
|
|
1636
|
+
/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
1637
|
+
...import_theme.hairline.bottom,
|
|
1638
|
+
borderColor: "$borderColor",
|
|
1639
|
+
minHeight: 30,
|
|
1640
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1641
|
+
width: 56,
|
|
1642
|
+
justifyContent: "center",
|
|
1643
|
+
alignItems: "flex-end",
|
|
1644
|
+
paddingInlineEnd: "$2",
|
|
1645
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1646
|
+
fontSize: "$1",
|
|
1647
|
+
color: import_componentColors.componentColors.text.muted,
|
|
1648
|
+
children: t("All day")
|
|
1649
|
+
})
|
|
1650
|
+
}), days.map(function (day) {
|
|
1651
|
+
var dayKey = formatDateKey(day);
|
|
1652
|
+
var dayEvents = (eventsByDate[dayKey] || []).filter(function (ev) {
|
|
1653
|
+
return !isTimedEvent(ev);
|
|
1654
|
+
});
|
|
1655
|
+
var isDropTarget = dragGhost !== null && dropTargetKey === dayKey;
|
|
1656
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1657
|
+
flex: 1,
|
|
1658
|
+
...hairlineEnd,
|
|
1659
|
+
borderColor: "$borderColor",
|
|
1660
|
+
padding: "$1",
|
|
1661
|
+
gap: "$1",
|
|
1662
|
+
backgroundColor: isDropTarget ? "$accentBackground" : void 0,
|
|
1663
|
+
"data-calendar-day": dayKey,
|
|
1664
|
+
ref: nativeDragEnabled ? function (node) {
|
|
1665
|
+
return registerDayRef(`allday:${dayKey}`, node);
|
|
1666
|
+
} : void 0,
|
|
1667
|
+
onPress: function onPress() {
|
|
1668
|
+
if (suppressClickRef.current) return;
|
|
1669
|
+
onDateSelect === null || onDateSelect === void 0 ? void 0 : onDateSelect(day);
|
|
1670
|
+
},
|
|
1671
|
+
children: dayEvents.map(function (event) {
|
|
1672
|
+
return renderEventBadge(event, true);
|
|
1673
|
+
})
|
|
1674
|
+
}, day.toISOString());
|
|
1675
|
+
})]
|
|
1676
|
+
}), /* Time grid body */
|
|
1677
|
+
/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
|
|
1678
|
+
ref: timeGridScrollRef,
|
|
336
1679
|
flex: 1,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
1680
|
+
scrollEnabled: !scrollLocked,
|
|
1681
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
1682
|
+
children: [/* Hour gutter */
|
|
1683
|
+
/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1684
|
+
width: 56,
|
|
1685
|
+
children: hours.map(function (hour) {
|
|
1686
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1687
|
+
height: hourHeight,
|
|
1688
|
+
alignItems: "flex-end",
|
|
1689
|
+
paddingInlineEnd: "$2",
|
|
1690
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1691
|
+
fontSize: "$1",
|
|
1692
|
+
color: import_componentColors.componentColors.text.muted,
|
|
1693
|
+
children: formatHour(hour)
|
|
1694
|
+
})
|
|
1695
|
+
}, hour);
|
|
1696
|
+
})
|
|
1697
|
+
}), days.map(function (day) {
|
|
1698
|
+
var dayKey = formatDateKey(day);
|
|
1699
|
+
var dayEvents = (eventsByDate[dayKey] || []).filter(isTimedEvent);
|
|
1700
|
+
var blocks = (0, import_calendarMath.layoutDayBlocks)(dayEvents.map(function (ev) {
|
|
1701
|
+
var _ref;
|
|
1702
|
+
var _ev_end;
|
|
1703
|
+
return {
|
|
1704
|
+
id: ev.id,
|
|
1705
|
+
startMin: (0, import_calendarMath.minutesOfDay)(ev.start),
|
|
1706
|
+
endMin: Math.min(import_calendarMath.MINUTES_PER_DAY, Math.max((0, import_calendarMath.minutesOfDay)(ev.start) + slotMinutes, (0, import_calendarMath.minutesOfDay)(ev.start) + (((_ref = (_ev_end = ev.end) === null || _ev_end === void 0 ? void 0 : _ev_end.getTime()) !== null && _ref !== void 0 ? _ref : ev.start.getTime()) - ev.start.getTime()) / 6e4))
|
|
1707
|
+
};
|
|
1708
|
+
}));
|
|
1709
|
+
var byId = new Map(dayEvents.map(function (ev) {
|
|
1710
|
+
return [ev.id, ev];
|
|
1711
|
+
}));
|
|
1712
|
+
var isSlotTargetDay = (slotTarget === null || slotTarget === void 0 ? void 0 : slotTarget.dayKey) === dayKey;
|
|
1713
|
+
var draftHere = (createDraft === null || createDraft === void 0 ? void 0 : createDraft.dayKey) === dayKey ? createDraft : null;
|
|
1714
|
+
var editorHere = (editorState === null || editorState === void 0 ? void 0 : editorState.dayKey) === dayKey ? editorState : null;
|
|
1715
|
+
var focusHere = view !== "month" && focusedDayKey === dayKey;
|
|
1716
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
343
1717
|
flex: 1,
|
|
344
|
-
|
|
1718
|
+
height: gridHeight,
|
|
1719
|
+
position: "relative",
|
|
1720
|
+
...hairlineEnd,
|
|
345
1721
|
borderColor: "$borderColor",
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
return
|
|
349
|
-
},
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
1722
|
+
"data-calendar-timecol": dayKey,
|
|
1723
|
+
ref: nativeDragEnabled ? function (node) {
|
|
1724
|
+
return registerDayRef(dayKey, node);
|
|
1725
|
+
} : void 0,
|
|
1726
|
+
onPointerDown: hasDom ? function (e) {
|
|
1727
|
+
return handleGridPointerDown(day, e);
|
|
1728
|
+
} : void 0,
|
|
1729
|
+
children: [/* Hour lines */
|
|
1730
|
+
hours.map(function (hour) {
|
|
1731
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1732
|
+
height: hourHeight,
|
|
1733
|
+
...import_theme.hairline.bottom,
|
|
1734
|
+
borderColor: import_componentColors.componentColors.divider,
|
|
1735
|
+
pointerEvents: "none"
|
|
1736
|
+
}, hour);
|
|
1737
|
+
}), /* Timed events */
|
|
1738
|
+
blocks.map(function (block) {
|
|
1739
|
+
var event = byId.get(block.id);
|
|
1740
|
+
if (!event) return null;
|
|
1741
|
+
return renderTimedBlock(event, block);
|
|
1742
|
+
}), /* Drop-target slot highlight (ramp tint) */
|
|
1743
|
+
isSlotTargetDay && slotTarget && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1744
|
+
position: "absolute",
|
|
1745
|
+
...overlayInset,
|
|
1746
|
+
top: (0, import_calendarMath.minutesToY)(slotTarget.startMin, hourHeight),
|
|
1747
|
+
height: Math.max(MIN_BLOCK_PX, (0, import_calendarMath.minutesToY)(slotTarget.durationMin, hourHeight)),
|
|
1748
|
+
backgroundColor: "$accentBackground",
|
|
1749
|
+
opacity: 0.25,
|
|
1750
|
+
...knobProps.borderRadius,
|
|
1751
|
+
borderWidth: 1,
|
|
1752
|
+
borderColor: "$accentColor",
|
|
1753
|
+
pointerEvents: "none",
|
|
1754
|
+
zIndex: 1,
|
|
1755
|
+
"data-calendar-slot-target": "true"
|
|
1756
|
+
}), /* Drag-to-create sketch */
|
|
1757
|
+
draftHere && !editorHere && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1758
|
+
position: "absolute",
|
|
1759
|
+
...overlayInset,
|
|
1760
|
+
top: (0, import_calendarMath.minutesToY)((0, import_calendarMath.minutesOfDay)(draftHere.start), hourHeight),
|
|
1761
|
+
height: Math.max(MIN_BLOCK_PX, (0, import_calendarMath.minutesToY)((draftHere.end.getTime() - draftHere.start.getTime()) / 6e4, hourHeight)),
|
|
1762
|
+
backgroundColor: "$accentBackground",
|
|
1763
|
+
opacity: 0.45,
|
|
1764
|
+
...knobProps.borderRadius,
|
|
1765
|
+
borderWidth: 1,
|
|
1766
|
+
borderColor: "$accentColor",
|
|
1767
|
+
pointerEvents: "none",
|
|
1768
|
+
zIndex: 4,
|
|
1769
|
+
transition: webLayoutTransition,
|
|
1770
|
+
"data-calendar-create-draft": "true",
|
|
1771
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1772
|
+
fontSize: "$1",
|
|
1773
|
+
color: "$accentColor",
|
|
1774
|
+
padding: "$1",
|
|
1775
|
+
numberOfLines: 1,
|
|
1776
|
+
children: (0, import_calendarMath.formatTimeRangeLabel)(draftHere.start, draftHere.end)
|
|
1777
|
+
})
|
|
1778
|
+
}), /* Draft block + live-commit editor (LC-06 / LC-21) */
|
|
1779
|
+
editorHere && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1780
|
+
position: "absolute",
|
|
1781
|
+
...overlayInset,
|
|
1782
|
+
top: (0, import_calendarMath.minutesToY)((0, import_calendarMath.minutesOfDay)(editorHere.start), hourHeight),
|
|
1783
|
+
height: Math.max(MIN_BLOCK_PX + 6, (0, import_calendarMath.minutesToY)((editorHere.end.getTime() - editorHere.start.getTime()) / 6e4, hourHeight)),
|
|
1784
|
+
zIndex: 5,
|
|
1785
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.FloatingPanel, {
|
|
1786
|
+
open: true,
|
|
1787
|
+
onOpenChange: function onOpenChange(open) {
|
|
1788
|
+
if (!open) commitEditor();
|
|
1789
|
+
},
|
|
1790
|
+
fitContent: true,
|
|
1791
|
+
trigger: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1792
|
+
...knobProps.borderRadius,
|
|
1793
|
+
height: "100%",
|
|
1794
|
+
backgroundColor: "$accentBackground",
|
|
1795
|
+
opacity: 0.9,
|
|
1796
|
+
borderWidth: 1,
|
|
1797
|
+
borderColor: "$accentColor",
|
|
1798
|
+
padding: "$1",
|
|
1799
|
+
overflow: "hidden",
|
|
1800
|
+
"data-calendar-editor-block": "true",
|
|
1801
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1802
|
+
fontSize: "$1",
|
|
1803
|
+
fontWeight: "600",
|
|
1804
|
+
color: "$accentColor",
|
|
1805
|
+
numberOfLines: 1,
|
|
1806
|
+
children: draftTitle || t("New event")
|
|
1807
|
+
})
|
|
1808
|
+
}),
|
|
1809
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
1810
|
+
gap: "$2",
|
|
1811
|
+
minWidth: 240,
|
|
1812
|
+
"data-calendar-create-editor": "true",
|
|
1813
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Input, {
|
|
1814
|
+
label: t("Title"),
|
|
1815
|
+
placeholder: t("New event"),
|
|
1816
|
+
value: draftTitle,
|
|
1817
|
+
onChangeText: setDraftTitle,
|
|
1818
|
+
inputProps: {
|
|
1819
|
+
autoFocus: true
|
|
1820
|
+
}
|
|
1821
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1822
|
+
fontSize: "$2",
|
|
1823
|
+
color: import_componentColors.componentColors.text.muted,
|
|
1824
|
+
children: `${formatDayLong(editorHere.start)}, ${(0, import_calendarMath.formatTimeRangeLabel)(editorHere.start, editorHere.end)}`
|
|
1825
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1826
|
+
fontSize: "$1",
|
|
1827
|
+
color: import_componentColors.componentColors.text.muted,
|
|
1828
|
+
children: t("Changes apply when the editor closes")
|
|
1829
|
+
})]
|
|
1830
|
+
})
|
|
358
1831
|
})
|
|
359
|
-
})
|
|
1832
|
+
}), /* Keyboard slot cursor (discrete moves tween — Axiom 4) */
|
|
1833
|
+
focusHere && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1834
|
+
id: `${calendarId}-slot-cursor`,
|
|
1835
|
+
...{
|
|
1836
|
+
role: "gridcell"
|
|
1837
|
+
},
|
|
1838
|
+
"aria-label": `${formatDayLong(day)}, ${(0, import_calendarMath.formatTimeRangeLabel)(dateAtMinutes(day, focusedSlotMin), dateAtMinutes(day, focusedSlotMin + slotMinutes))}`,
|
|
1839
|
+
position: "absolute",
|
|
1840
|
+
...overlayInset,
|
|
1841
|
+
top: (0, import_calendarMath.minutesToY)(focusedSlotMin, hourHeight),
|
|
1842
|
+
height: (0, import_calendarMath.minutesToY)(slotMinutes, hourHeight),
|
|
1843
|
+
...knobProps.borderRadius,
|
|
1844
|
+
borderWidth: 2,
|
|
1845
|
+
borderColor: "$accentBackground",
|
|
1846
|
+
pointerEvents: "none",
|
|
1847
|
+
zIndex: 3,
|
|
1848
|
+
transition: webLayoutTransition,
|
|
1849
|
+
"data-calendar-slot-cursor": "true"
|
|
1850
|
+
}), /* Now indicator */
|
|
1851
|
+
isToday(day) && /* @__PURE__ */(0, import_jsx_runtime.jsx)(NowIndicator, {
|
|
1852
|
+
hourHeight
|
|
1853
|
+
})]
|
|
360
1854
|
}, day.toISOString());
|
|
361
|
-
})
|
|
1855
|
+
})]
|
|
362
1856
|
})
|
|
363
1857
|
})]
|
|
364
1858
|
});
|
|
365
1859
|
};
|
|
1860
|
+
var renderWeekView = function renderWeekView2() {
|
|
1861
|
+
return renderTimeGrid(getWeekDays(currentDate, firstDayOfWeek));
|
|
1862
|
+
};
|
|
366
1863
|
var renderDayView = function renderDayView2() {
|
|
367
|
-
|
|
368
|
-
var dayEvents = eventsByDate[formatDateKey(currentDate)] || [];
|
|
369
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
|
|
370
|
-
flex: 1,
|
|
371
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
372
|
-
children: [dayEvents.length > 0 && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
373
|
-
padding: "$2",
|
|
374
|
-
borderBottomWidth: 1,
|
|
375
|
-
borderColor: "$borderColor",
|
|
376
|
-
backgroundColor: import_componentColors.componentColors.surface.background,
|
|
377
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
378
|
-
fontSize: "$2",
|
|
379
|
-
color: import_componentColors.componentColors.text.muted,
|
|
380
|
-
marginBottom: "$2",
|
|
381
|
-
children: "Events"
|
|
382
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
383
|
-
gap: "$1",
|
|
384
|
-
children: dayEvents.map(function (event) {
|
|
385
|
-
return renderEventBadge(event, false);
|
|
386
|
-
})
|
|
387
|
-
})]
|
|
388
|
-
}), hours.map(function (hour) {
|
|
389
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
390
|
-
minHeight: 60,
|
|
391
|
-
borderBottomWidth: 1,
|
|
392
|
-
borderColor: "$borderColor",
|
|
393
|
-
onPress: function onPress() {
|
|
394
|
-
var date = new Date(currentDate);
|
|
395
|
-
date.setHours(hour, 0, 0, 0);
|
|
396
|
-
onDateSelect === null || onDateSelect === void 0 ? void 0 : onDateSelect(date);
|
|
397
|
-
},
|
|
398
|
-
hoverStyle: {
|
|
399
|
-
backgroundColor: import_componentColors.componentColors.surface.background
|
|
400
|
-
},
|
|
401
|
-
cursor: "pointer",
|
|
402
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
403
|
-
width: 60,
|
|
404
|
-
paddingRight: "$2",
|
|
405
|
-
alignItems: "flex-end",
|
|
406
|
-
paddingTop: "$1",
|
|
407
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
408
|
-
fontSize: "$2",
|
|
409
|
-
color: import_componentColors.componentColors.text.muted,
|
|
410
|
-
children: formatHour(hour)
|
|
411
|
-
})
|
|
412
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
413
|
-
flex: 1,
|
|
414
|
-
borderLeftWidth: 1,
|
|
415
|
-
borderColor: "$borderColor",
|
|
416
|
-
padding: "$2"
|
|
417
|
-
})]
|
|
418
|
-
}, hour);
|
|
419
|
-
})]
|
|
420
|
-
})
|
|
421
|
-
});
|
|
1864
|
+
return renderTimeGrid([currentDate]);
|
|
422
1865
|
};
|
|
1866
|
+
var physicalDir = navDirectionRef.current * (isRTL ? -1 : 1);
|
|
1867
|
+
var bodyEnterVariant = !transition ? void 0 : physicalDir > 0 ? "fromEnd" : physicalDir < 0 ? "fromStart" : "fade";
|
|
1868
|
+
var bodyExitVariant = !transition ? void 0 : physicalDir > 0 ? "fromStart" : physicalDir < 0 ? "fromEnd" : "fade";
|
|
423
1869
|
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
424
1870
|
height,
|
|
1871
|
+
position: "relative",
|
|
1872
|
+
overflow: "hidden",
|
|
1873
|
+
backgroundColor: "$background",
|
|
1874
|
+
// Panel-tier lift follows the elevation knob (LC-18: the calendar frame
|
|
1875
|
+
// is a themed surface, same as Dashboard cards / Kanban columns).
|
|
1876
|
+
elevation: knobProps.elevation,
|
|
1877
|
+
ref: nativeDragEnabled ? function (node) {
|
|
1878
|
+
containerNodeRef.current = node;
|
|
1879
|
+
refreshContainerOffset();
|
|
1880
|
+
} : void 0,
|
|
1881
|
+
onLayout: nativeDragEnabled ? refreshContainerOffset : void 0,
|
|
425
1882
|
...stackProps,
|
|
426
1883
|
children: [/* Header */
|
|
427
1884
|
(showNavigation || showViewSwitcher) && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
428
1885
|
...knobProps.panelPadding,
|
|
429
1886
|
alignItems: "center",
|
|
430
1887
|
justifyContent: "space-between",
|
|
431
|
-
|
|
1888
|
+
...import_theme.hairline.bottom,
|
|
432
1889
|
borderColor: "$borderColor",
|
|
433
1890
|
children: [showNavigation && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
434
1891
|
gap: "$2",
|
|
@@ -436,60 +1893,136 @@ function Calendar(param) {
|
|
|
436
1893
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
437
1894
|
size: knobProps.sizeToken,
|
|
438
1895
|
onPress: goToPrevious,
|
|
439
|
-
"aria-label": "Previous",
|
|
1896
|
+
"aria-label": t("Previous"),
|
|
440
1897
|
children: "<"
|
|
441
1898
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
442
1899
|
size: knobProps.sizeToken,
|
|
443
1900
|
onPress: goToToday,
|
|
444
|
-
children: "Today"
|
|
1901
|
+
children: t("Today")
|
|
445
1902
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
446
1903
|
size: knobProps.sizeToken,
|
|
447
1904
|
onPress: goToNext,
|
|
448
|
-
"aria-label": "Next",
|
|
1905
|
+
"aria-label": t("Next"),
|
|
449
1906
|
children: ">"
|
|
450
1907
|
})]
|
|
451
|
-
}),
|
|
1908
|
+
}),
|
|
1909
|
+
/* Period title is the panel's section heading — shared scale
|
|
1910
|
+
(LC-17), family still follows the heading font knob. */
|
|
1911
|
+
/* @__PURE__ */
|
|
1912
|
+
(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
452
1913
|
...knobProps.heading,
|
|
453
|
-
|
|
1914
|
+
...import_componentColors.sectionHeading,
|
|
454
1915
|
children: displayTitle
|
|
455
|
-
}), showViewSwitcher &&
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
476
|
-
fontSize: knobProps.sizeToken,
|
|
477
|
-
children: "Week"
|
|
478
|
-
})
|
|
479
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ToggleGroup.Item, {
|
|
480
|
-
value: "day",
|
|
481
|
-
size: knobProps.sizeToken,
|
|
482
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
483
|
-
fontSize: knobProps.sizeToken,
|
|
484
|
-
children: "Day"
|
|
485
|
-
})
|
|
486
|
-
})]
|
|
1916
|
+
}), showViewSwitcher &&
|
|
1917
|
+
/* Canonical fused view picker (LC-16 ONE-IMPLEMENTATION): brings
|
|
1918
|
+
the 44px press-target floor + hitSlop (SP-FIXED) and the
|
|
1919
|
+
keyboard focus ring the hand-rolled ToggleGroup lacked. */
|
|
1920
|
+
/* @__PURE__ */
|
|
1921
|
+
(0, import_jsx_runtime.jsx)(import_ViewSwitcher.ViewSwitcher, {
|
|
1922
|
+
views: [{
|
|
1923
|
+
type: "month",
|
|
1924
|
+
label: t("Month")
|
|
1925
|
+
}, {
|
|
1926
|
+
type: "week",
|
|
1927
|
+
label: t("Week")
|
|
1928
|
+
}, {
|
|
1929
|
+
type: "day",
|
|
1930
|
+
label: t("Day")
|
|
1931
|
+
}],
|
|
1932
|
+
currentView: view,
|
|
1933
|
+
onViewChange: function onViewChange(val) {
|
|
1934
|
+
return changeView(val);
|
|
1935
|
+
}
|
|
487
1936
|
})]
|
|
488
|
-
}), /*
|
|
489
|
-
/* @__PURE__ */(0, import_jsx_runtime.
|
|
1937
|
+
}), /* aria-live region: period + focus announcements (visually hidden) */
|
|
1938
|
+
/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1939
|
+
position: "absolute",
|
|
1940
|
+
width: 1,
|
|
1941
|
+
height: 1,
|
|
1942
|
+
overflow: "hidden",
|
|
1943
|
+
opacity: 0,
|
|
1944
|
+
pointerEvents: "none",
|
|
1945
|
+
"aria-live": "polite",
|
|
1946
|
+
"data-calendar-live": "true",
|
|
1947
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1948
|
+
children: announcement
|
|
1949
|
+
})
|
|
1950
|
+
}),
|
|
1951
|
+
/* Calendar Body — view/period switches slide+fade with PAIRED
|
|
1952
|
+
enter/exit (LC-24): the leaving period exits toward where it came
|
|
1953
|
+
from while the new one slides in from the reading-direction end.
|
|
1954
|
+
Children are keyed per period inside one persistent AnimatePresence
|
|
1955
|
+
(keying the presence itself would drop the exit — the old wrapper
|
|
1956
|
+
unmounts before it can animate). `fullscreen` keeps both periods
|
|
1957
|
+
overlaid during the crossfade instead of stacking in flow. */
|
|
1958
|
+
/* @__PURE__ */
|
|
1959
|
+
(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
490
1960
|
flex: 1,
|
|
491
|
-
|
|
492
|
-
|
|
1961
|
+
overflow: "hidden",
|
|
1962
|
+
position: "relative",
|
|
1963
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, {
|
|
1964
|
+
initial: false,
|
|
1965
|
+
enterVariant: bodyEnterVariant,
|
|
1966
|
+
exitVariant: bodyExitVariant,
|
|
1967
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(CalendarSlide, {
|
|
1968
|
+
fullscreen: true,
|
|
1969
|
+
x: 0,
|
|
1970
|
+
opacity: 1,
|
|
1971
|
+
transition,
|
|
1972
|
+
"data-calendar-motion": motionKey,
|
|
1973
|
+
children: [view === "month" && renderMonthView(), view === "week" && renderWeekView(), view === "day" && renderDayView()]
|
|
1974
|
+
}, motionKey)
|
|
1975
|
+
})
|
|
1976
|
+
}), /* Drag ghost following the pointer / finger (lifted: shadow + scale) */
|
|
1977
|
+
dragGhost && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1978
|
+
pointerEvents: "none",
|
|
1979
|
+
...knobProps.borderRadius,
|
|
1980
|
+
backgroundColor: dragGhost.event.color || "$accentBackground",
|
|
1981
|
+
padding: "$1",
|
|
1982
|
+
opacity: 0.95,
|
|
1983
|
+
scale: 1.03,
|
|
1984
|
+
...{
|
|
1985
|
+
"data-calendar-drag-ghost": true,
|
|
1986
|
+
...(import_tamagui.isWeb ? {
|
|
1987
|
+
style: {
|
|
1988
|
+
position: "fixed",
|
|
1989
|
+
left: dragGhost.x + 12,
|
|
1990
|
+
top: dragGhost.y + 12,
|
|
1991
|
+
// Sheet tier (Axiom 14): the ghost tracks the pointer
|
|
1992
|
+
// above page content and sticky chrome.
|
|
1993
|
+
zIndex: import_forms.zIndex.sheet,
|
|
1994
|
+
maxWidth: 220,
|
|
1995
|
+
boxShadow: LIFT_SHADOW
|
|
1996
|
+
}
|
|
1997
|
+
} : {
|
|
1998
|
+
position: "absolute",
|
|
1999
|
+
left: dragGhost.x,
|
|
2000
|
+
top: dragGhost.y,
|
|
2001
|
+
zIndex: import_forms.zIndex.sheet,
|
|
2002
|
+
maxWidth: 220,
|
|
2003
|
+
shadowColor: "$shadowColor",
|
|
2004
|
+
shadowOffset: {
|
|
2005
|
+
width: 0,
|
|
2006
|
+
height: 6
|
|
2007
|
+
},
|
|
2008
|
+
shadowRadius: 12,
|
|
2009
|
+
shadowOpacity: 0.3,
|
|
2010
|
+
elevation: 8
|
|
2011
|
+
})
|
|
2012
|
+
},
|
|
2013
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
2014
|
+
fontSize: "$2",
|
|
2015
|
+
numberOfLines: 1,
|
|
2016
|
+
color: eventChipTextColor(dragGhost.event.color),
|
|
2017
|
+
children: dragGhost.event.title
|
|
2018
|
+
})
|
|
2019
|
+
}), /* FLIP settle: drop/cancel tweens the ghost into its final slot (LC-25) */
|
|
2020
|
+
settle && import_tamagui.isWeb && /* @__PURE__ */(0, import_jsx_runtime.jsx)(SettleGhost, {
|
|
2021
|
+
settle,
|
|
2022
|
+
transition,
|
|
2023
|
+
borderRadius: knobProps.borderRadius,
|
|
2024
|
+
onDone: clearSettle
|
|
2025
|
+
}, settle.key)]
|
|
493
2026
|
});
|
|
494
2027
|
}
|
|
495
2028
|
//# sourceMappingURL=Calendar.native.js.map
|