@multiplatform.one/components 9.12.1 → 9.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Lightbox/index.native.js +13 -6
- package/dist/cjs/Lightbox/index.native.js.map +1 -1
- package/dist/cjs/Lightbox/shared.cjs +20 -0
- package/dist/cjs/Lightbox/shared.native.js +22 -0
- package/dist/cjs/Lightbox/shared.native.js.map +1 -1
- package/dist/cjs/canvas/index.cjs +20 -0
- package/dist/cjs/canvas/index.native.js +23 -0
- package/dist/cjs/canvas/index.native.js.map +1 -0
- package/dist/cjs/canvas/panBounds.cjs +76 -0
- package/dist/cjs/canvas/panBounds.native.js +83 -0
- package/dist/cjs/canvas/panBounds.native.js.map +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/index.native.js +1 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/views/Calendar.cjs +281 -40
- package/dist/cjs/views/Calendar.native.js +291 -40
- package/dist/cjs/views/Calendar.native.js.map +1 -1
- package/dist/cjs/views/calendarMath.cjs +14 -0
- package/dist/cjs/views/calendarMath.native.js +14 -0
- package/dist/cjs/views/calendarMath.native.js.map +1 -1
- package/dist/esm/Lightbox/index.native.js +14 -7
- package/dist/esm/Lightbox/index.native.js.map +1 -1
- package/dist/esm/Lightbox/shared.mjs +20 -1
- package/dist/esm/Lightbox/shared.mjs.map +1 -1
- package/dist/esm/Lightbox/shared.native.js +22 -1
- package/dist/esm/Lightbox/shared.native.js.map +1 -1
- package/dist/esm/canvas/index.mjs +2 -0
- package/dist/esm/canvas/index.mjs.map +1 -0
- package/dist/esm/canvas/index.native.js +2 -0
- package/dist/esm/canvas/index.native.js.map +1 -0
- package/dist/esm/canvas/panBounds.mjs +46 -0
- package/dist/esm/canvas/panBounds.mjs.map +1 -0
- package/dist/esm/canvas/panBounds.native.js +50 -0
- package/dist/esm/canvas/panBounds.native.js.map +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +1 -0
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/views/Calendar.mjs +283 -42
- package/dist/esm/views/Calendar.mjs.map +1 -1
- package/dist/esm/views/Calendar.native.js +293 -42
- package/dist/esm/views/Calendar.native.js.map +1 -1
- package/dist/esm/views/calendarMath.mjs +14 -1
- package/dist/esm/views/calendarMath.mjs.map +1 -1
- package/dist/esm/views/calendarMath.native.js +14 -1
- package/dist/esm/views/calendarMath.native.js.map +1 -1
- package/dist/jsx/Accordion/index.native.js +1 -1
- package/dist/jsx/Accordion/index.native.js.map +1 -1
- package/dist/jsx/Alert/index.native.js.map +1 -1
- package/dist/jsx/AnimateHeight/index.native.js.map +1 -1
- package/dist/jsx/Avatar/getInitials.native.js.map +1 -1
- package/dist/jsx/Avatar/index.native.js.map +1 -1
- package/dist/jsx/Badge/index.native.js.map +1 -1
- package/dist/jsx/Button.native.js.map +1 -1
- package/dist/jsx/Card.native.js.map +1 -1
- package/dist/jsx/CardFooter.native.js.map +1 -1
- package/dist/jsx/CardHeader.native.js.map +1 -1
- package/dist/jsx/Carousel/geometry.native.js.map +1 -1
- package/dist/jsx/Carousel/index.native.js +2 -2
- package/dist/jsx/Carousel/index.native.js.map +1 -1
- package/dist/jsx/ChatTurn/index.native.js.map +1 -1
- package/dist/jsx/CheckGlyph/MenuCheckColumn.native.js.map +1 -1
- package/dist/jsx/CheckGlyph/index.native.js.map +1 -1
- package/dist/jsx/Chip/index.native.js.map +1 -1
- package/dist/jsx/ChoiceChips/index.native.js +1 -1
- package/dist/jsx/ChoiceChips/index.native.js.map +1 -1
- package/dist/jsx/Collapsible.native.js.map +1 -1
- package/dist/jsx/ContextMenu/index.native.js.map +1 -1
- package/dist/jsx/CopyField/CopyMenuButton.native.js +1 -1
- package/dist/jsx/CopyField/CopyMenuButton.native.js.map +1 -1
- package/dist/jsx/CopyField/index.native.js.map +1 -1
- package/dist/jsx/Dialog.native.js +1 -1
- package/dist/jsx/Dialog.native.js.map +1 -1
- package/dist/jsx/Diff/diff.native.js.map +1 -1
- package/dist/jsx/Diff/index.native.js.map +1 -1
- package/dist/jsx/DotIndicator/index.native.js.map +1 -1
- package/dist/jsx/DrillStack/DrillBar.native.js.map +1 -1
- package/dist/jsx/DrillStack/context.native.js.map +1 -1
- package/dist/jsx/DrillStack/drillMotion.native.js.map +1 -1
- package/dist/jsx/DropDownPanel/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/menuSettle.native.js.map +1 -1
- package/dist/jsx/ElapsedProgress/index.native.js.map +1 -1
- package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
- package/dist/jsx/Heading.native.js.map +1 -1
- package/dist/jsx/Kbd/index.native.js.map +1 -1
- package/dist/jsx/Kbd/keys.native.js.map +1 -1
- package/dist/jsx/Lightbox/MediaControl.native.js.map +1 -1
- package/dist/jsx/Lightbox/index.gnome.native.js.map +1 -1
- package/dist/jsx/Lightbox/index.native.js +14 -7
- package/dist/jsx/Lightbox/index.native.js.map +1 -1
- package/dist/jsx/Lightbox/shared.mjs +20 -1
- package/dist/jsx/Lightbox/shared.mjs.map +1 -1
- package/dist/jsx/Lightbox/shared.native.js +22 -0
- package/dist/jsx/Lightbox/shared.native.js.map +1 -1
- package/dist/jsx/Lightbox/useLightbox.native.js.map +1 -1
- package/dist/jsx/MachineLiteral/index.native.js.map +1 -1
- package/dist/jsx/Material/index.native.js.map +1 -1
- package/dist/jsx/Meter/index.native.js +1 -1
- package/dist/jsx/Meter/index.native.js.map +1 -1
- package/dist/jsx/Meter/meter.native.js.map +1 -1
- package/dist/jsx/MiddleEllipsisText/middleSplit.native.js.map +1 -1
- package/dist/jsx/MiddleEllipsisText/types.native.js.map +1 -1
- package/dist/jsx/Pagination.native.js +1 -1
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/Popover.native.js +1 -1
- package/dist/jsx/Popover.native.js.map +1 -1
- package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
- package/dist/jsx/Quote/index.native.js.map +1 -1
- package/dist/jsx/SchemeToggle/index.native.js +1 -1
- package/dist/jsx/SchemeToggle/index.native.js.map +1 -1
- package/dist/jsx/ScrollView.native.js.map +1 -1
- package/dist/jsx/Separator/index.native.js.map +1 -1
- package/dist/jsx/Sheet.native.js.map +1 -1
- package/dist/jsx/SheetModal/SheetBodyRegion.native.js.map +1 -1
- package/dist/jsx/SheetModal/SheetHeader.native.js.map +1 -1
- package/dist/jsx/SheetModal/SheetNavigation.native.js.map +1 -1
- package/dist/jsx/SheetModal/detents.native.js.map +1 -1
- package/dist/jsx/SheetModal/useSheetFrameFocus.native.js.map +1 -1
- package/dist/jsx/SheetScrollView/index.native.js.map +1 -1
- package/dist/jsx/SheetScrollView/sheetHandoff.native.js.map +1 -1
- package/dist/jsx/Skeleton/index.native.js.map +1 -1
- package/dist/jsx/SkipLink/index.native.js.map +1 -1
- package/dist/jsx/SortableList/SortableHandle.native.js.map +1 -1
- package/dist/jsx/SortableList/index.native.js.map +1 -1
- package/dist/jsx/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/jsx/SortableList/useUserOrder.native.js.map +1 -1
- package/dist/jsx/SwipeDismissRow/index.native.js.map +1 -1
- package/dist/jsx/Tabs/index.native.js.map +1 -1
- package/dist/jsx/Text.native.js.map +1 -1
- package/dist/jsx/ThemePresetPicker/index.native.js +1 -1
- package/dist/jsx/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/jsx/Toast/index.native.js.map +1 -1
- package/dist/jsx/Toast/store.native.js.map +1 -1
- package/dist/jsx/Tooltip/nativePress.native.js.map +1 -1
- package/dist/jsx/Tooltip/tooltipShared.native.js.map +1 -1
- package/dist/jsx/TreeSelect/index.native.js +2 -2
- package/dist/jsx/TreeSelect/index.native.js.map +1 -1
- package/dist/jsx/TreeSelect/treeSelectModel.native.js.map +1 -1
- package/dist/jsx/Video/PlayerChrome.native.js.map +1 -1
- package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
- package/dist/jsx/Video/types.native.js.map +1 -1
- package/dist/jsx/Wheel/index.native.js.map +1 -1
- package/dist/jsx/Wizard/index.native.js +2 -2
- package/dist/jsx/Wizard/index.native.js.map +1 -1
- package/dist/jsx/actions/ActionBar.native.js.map +1 -1
- package/dist/jsx/actions/DangerSection.native.js.map +1 -1
- package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
- package/dist/jsx/actions/HeaderActions.native.js +2 -2
- package/dist/jsx/actions/HeaderActions.native.js.map +1 -1
- package/dist/jsx/actions/StandardAction.native.js +1 -1
- package/dist/jsx/actions/StandardAction.native.js.map +1 -1
- package/dist/jsx/actions/devWarn.native.js.map +1 -1
- package/dist/jsx/actions/index.native.js.map +1 -1
- package/dist/jsx/actions/severity.native.js.map +1 -1
- package/dist/jsx/appShell/AppShell.native.js +1 -1
- package/dist/jsx/appShell/AppShell.native.js.map +1 -1
- package/dist/jsx/appShell/BottomChromeClearance.native.js.map +1 -1
- package/dist/jsx/appShell/Dock.native.js.map +1 -1
- package/dist/jsx/appShell/MpoTabHost.native.js.map +1 -1
- package/dist/jsx/appShell/ScopeMenu.native.js +1 -1
- package/dist/jsx/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/jsx/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/jsx/appShell/Springboard.native.js +1 -1
- package/dist/jsx/appShell/Springboard.native.js.map +1 -1
- package/dist/jsx/appShell/SystemBar.native.js +1 -1
- package/dist/jsx/appShell/SystemBar.native.js.map +1 -1
- package/dist/jsx/appShell/TabBar.native.js +1 -1
- package/dist/jsx/appShell/TabBar.native.js.map +1 -1
- package/dist/jsx/appShell/appTile.native.js +1 -1
- package/dist/jsx/appShell/appTile.native.js.map +1 -1
- package/dist/jsx/appShell/bottomChrome.native.js.map +1 -1
- package/dist/jsx/appShell/index.native.js.map +1 -1
- package/dist/jsx/appShell/stackBack.native.js.map +1 -1
- package/dist/jsx/appShell/systemBarFit.native.js.map +1 -1
- package/dist/jsx/canvas/index.mjs +2 -0
- package/dist/jsx/canvas/index.mjs.map +1 -0
- package/dist/jsx/canvas/index.native.js +23 -0
- package/dist/jsx/canvas/index.native.js.map +1 -0
- package/dist/jsx/canvas/panBounds.mjs +46 -0
- package/dist/jsx/canvas/panBounds.mjs.map +1 -0
- package/dist/jsx/canvas/panBounds.native.js +83 -0
- package/dist/jsx/canvas/panBounds.native.js.map +1 -0
- package/dist/jsx/charts/Axis.native.js.map +1 -1
- package/dist/jsx/charts/BarChart.native.js.map +1 -1
- package/dist/jsx/charts/ChartDataView.native.js +1 -1
- package/dist/jsx/charts/ChartDataView.native.js.map +1 -1
- package/dist/jsx/charts/ChartSurface.native.js.map +1 -1
- package/dist/jsx/charts/LineChart.native.js.map +1 -1
- package/dist/jsx/charts/PieChart.native.js.map +1 -1
- package/dist/jsx/charts/SeriesLegend.native.js.map +1 -1
- package/dist/jsx/charts/Sparkline.native.js.map +1 -1
- package/dist/jsx/charts/accessibility.native.js.map +1 -1
- package/dist/jsx/charts/chartHeight.native.js.map +1 -1
- package/dist/jsx/charts/composeChart.native.js.map +1 -1
- package/dist/jsx/charts/index.native.js.map +1 -1
- package/dist/jsx/charts/math.native.js.map +1 -1
- package/dist/jsx/charts/series.native.js.map +1 -1
- package/dist/jsx/charts/svg.native.js.map +1 -1
- package/dist/jsx/charts/types.native.js.map +1 -1
- package/dist/jsx/charts/useChartTheme.native.js.map +1 -1
- package/dist/jsx/code/Code/index.native.js.map +1 -1
- package/dist/jsx/code/CodeBlock/index.native.js +7 -7
- package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
- package/dist/jsx/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/index.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
- package/dist/jsx/code/HoldSelect/tapGate.native.js.map +1 -1
- package/dist/jsx/code/LogView.native.js.map +1 -1
- package/dist/jsx/code/PayloadView/index.native.js +4 -4
- package/dist/jsx/code/PayloadView/index.native.js.map +1 -1
- package/dist/jsx/code/PayloadView/payloadModel.native.js.map +1 -1
- package/dist/jsx/code/Pre/index.native.js.map +1 -1
- package/dist/jsx/code/index.native.js +7 -7
- package/dist/jsx/code/index.native.js.map +1 -1
- package/dist/jsx/componentColors.native.js.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/jsx/feedback/NotifyHost.native.js +2 -2
- package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
- package/dist/jsx/feedback/copy.native.js.map +1 -1
- package/dist/jsx/feedback/index.native.js.map +1 -1
- package/dist/jsx/feedback/notify.native.js.map +1 -1
- package/dist/jsx/feedback/route.native.js.map +1 -1
- package/dist/jsx/feedback/store.native.js.map +1 -1
- package/dist/jsx/formLayouts/FormLayouts.native.js +1 -1
- package/dist/jsx/formLayouts/FormLayouts.native.js.map +1 -1
- package/dist/jsx/formLayouts/PreferencePanel.native.js +2 -2
- package/dist/jsx/formLayouts/PreferencePanel.native.js.map +1 -1
- package/dist/jsx/formLayouts/SingleTaskColumn.native.js.map +1 -1
- package/dist/jsx/formLayouts/index.native.js.map +1 -1
- package/dist/jsx/hooks/index.native.js +1 -1
- package/dist/jsx/hooks/index.native.js.map +1 -1
- package/dist/jsx/hooks/useClipboard.native.js.map +1 -1
- package/dist/jsx/hooks/useDirection.native.js.map +1 -1
- package/dist/jsx/hooks/useDocumentTitle.native.js.map +1 -1
- package/dist/jsx/icons/CheckRegular.native.js.map +1 -1
- package/dist/jsx/icons/MinusRegular.native.js.map +1 -1
- package/dist/jsx/icons/index.native.js.map +1 -1
- package/dist/jsx/icons/lucide.native.js.map +1 -1
- package/dist/jsx/icons/themed.native.js.map +1 -1
- package/dist/jsx/images/Image/ImageFrame.native.js +1 -1
- package/dist/jsx/images/Image/ImageFrame.native.js.map +1 -1
- package/dist/jsx/images/Image/framing.native.js.map +1 -1
- package/dist/jsx/images/Image/index.native.js +1 -1
- package/dist/jsx/images/Image/mediaRadius.native.js.map +1 -1
- package/dist/jsx/images/Image/shared.native.js +1 -1
- package/dist/jsx/images/Image/shared.native.js.map +1 -1
- package/dist/jsx/images/Image/types.native.js.map +1 -1
- package/dist/jsx/images/RemoteArt/index.native.js +1 -1
- package/dist/jsx/images/RemoteArt/remoteArtCache.native.js.map +1 -1
- package/dist/jsx/images/RemoteArt/svgMarkup.native.js.map +1 -1
- package/dist/jsx/images/RemoteArt/types.native.js.map +1 -1
- package/dist/jsx/images/index.native.js.map +1 -1
- package/dist/jsx/index.gnome.native.js +22 -22
- package/dist/jsx/index.gnome.native.js.map +1 -1
- package/dist/jsx/index.js +1 -0
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +1 -0
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +46 -45
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/knobImmuneExports.native.js.map +1 -1
- package/dist/jsx/layouts/AsyncBoundary.native.js +2 -2
- package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/jsx/layouts/Debug/index.native.js.map +1 -1
- package/dist/jsx/layouts/EmptyState.native.js +1 -1
- package/dist/jsx/layouts/EmptyState.native.js.map +1 -1
- package/dist/jsx/layouts/IdentityPlate.native.js.map +1 -1
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
- package/dist/jsx/layouts/PageTemplates.native.js.map +1 -1
- package/dist/jsx/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/jsx/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
- package/dist/jsx/layouts/StatusDot.native.js.map +1 -1
- package/dist/jsx/layouts/StatusGlyphStrip.native.js +1 -1
- package/dist/jsx/layouts/StatusGlyphStrip.native.js.map +1 -1
- package/dist/jsx/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/jsx/layouts/asyncFailure.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.native.js +2 -2
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/layouts/barTitleSpan.native.js.map +1 -1
- package/dist/jsx/layouts/bottomAccessory.native.js.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/jsx/layouts/index.native.js +3 -3
- package/dist/jsx/layouts/index.native.js.map +1 -1
- package/dist/jsx/layouts/page.native.js +1 -1
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/jsx/layouts/screenScroll.native.js.map +1 -1
- package/dist/jsx/layouts/shellSidebarSlot.native.js.map +1 -1
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/tags.native.js +1 -1
- package/dist/jsx/layouts/tags.native.js.map +1 -1
- package/dist/jsx/layouts/timeline.native.js +2 -2
- package/dist/jsx/layouts/timeline.native.js.map +1 -1
- package/dist/jsx/layouts/toolbar.native.js.map +1 -1
- package/dist/jsx/shared/actionScan.native.js.map +1 -1
- package/dist/jsx/shared/i18n.native.js.map +1 -1
- package/dist/jsx/shared/restoreRetries.native.js.map +1 -1
- package/dist/jsx/shared/t.native.js.map +1 -1
- package/dist/jsx/shared/textRidesText.native.js.map +1 -1
- package/dist/jsx/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/jsx/surfaces.native.js +1 -1
- package/dist/jsx/surfaces.native.js.map +1 -1
- package/dist/jsx/tamagui.native.js.map +1 -1
- package/dist/jsx/testSetup.native.js.map +1 -1
- package/dist/jsx/utils/unwrapText.native.js.map +1 -1
- package/dist/jsx/views/Calendar.mjs +283 -42
- package/dist/jsx/views/Calendar.mjs.map +1 -1
- package/dist/jsx/views/Calendar.native.js +291 -40
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/CardGrid.native.js.map +1 -1
- package/dist/jsx/views/Dashboard.native.js +1 -1
- package/dist/jsx/views/Dashboard.native.js.map +1 -1
- package/dist/jsx/views/FilePreview.native.js +2 -2
- package/dist/jsx/views/FilePreview.native.js.map +1 -1
- package/dist/jsx/views/Gantt.native.js +1 -1
- package/dist/jsx/views/Gantt.native.js.map +1 -1
- package/dist/jsx/views/GanttDateGrip.native.js.map +1 -1
- package/dist/jsx/views/ImageGrid.native.js +2 -2
- package/dist/jsx/views/ImageGrid.native.js.map +1 -1
- package/dist/jsx/views/List.native.js.map +1 -1
- package/dist/jsx/views/ListGroup.native.js +1 -1
- package/dist/jsx/views/ListGroup.native.js.map +1 -1
- package/dist/jsx/views/ListRow.native.js.map +1 -1
- package/dist/jsx/views/Matrix.native.js +1 -1
- package/dist/jsx/views/Matrix.native.js.map +1 -1
- package/dist/jsx/views/ReportBuilder.native.js +1 -1
- package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
- package/dist/jsx/views/ShortcutCard.native.js.map +1 -1
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/dist/jsx/views/calendarMath.mjs +14 -1
- package/dist/jsx/views/calendarMath.mjs.map +1 -1
- package/dist/jsx/views/calendarMath.native.js +14 -0
- package/dist/jsx/views/calendarMath.native.js.map +1 -1
- package/dist/jsx/views/ganttIntervals.native.js.map +1 -1
- package/dist/jsx/views/ganttMath.native.js.map +1 -1
- package/dist/jsx/views/index.native.js +1 -1
- package/dist/jsx/views/index.native.js.map +1 -1
- package/dist/jsx/views/kanbanDnd.native.js.map +1 -1
- package/dist/jsx/views/matrixMath.native.js.map +1 -1
- package/dist/jsx/views/sameNameScope.native.js.map +1 -1
- package/dist/jsx/views/treeViewDnd.native.js.map +1 -1
- package/dist/jsx/views/treeViewLayout.native.js.map +1 -1
- package/dist/jsx/views/treeViewMotion.native.js.map +1 -1
- package/dist/jsx/views/treeViewReveal.native.js.map +1 -1
- package/dist/jsx/views/usePageFlowLoadMore.native.js.map +1 -1
- package/dist/jsx/views/widgetChrome.native.js.map +1 -1
- package/package.json +7 -7
- package/src/Lightbox/index.native.tsx +16 -5
- package/src/Lightbox/shared.spec.ts +39 -0
- package/src/Lightbox/shared.ts +23 -0
- package/src/canvas/index.ts +1 -0
- package/src/canvas/panBounds.spec.ts +95 -0
- package/src/canvas/panBounds.ts +84 -0
- package/src/index.ts +1 -0
- package/src/views/Calendar.eventFill.spec.tsx +118 -0
- package/src/views/Calendar.nativeResize.spec.tsx +233 -0
- package/src/views/Calendar.stories.tsx +3 -0
- package/src/views/Calendar.tsx +295 -33
- package/src/views/calendarMath.ts +21 -0
- package/src/views/dataIdentity.spec.tsx +4 -3
- package/types/Lightbox/index.native.d.ts.map +1 -1
- package/types/Lightbox/shared.d.ts +12 -0
- package/types/Lightbox/shared.d.ts.map +1 -1
- package/types/canvas/index.d.ts +2 -0
- package/types/canvas/index.d.ts.map +1 -0
- package/types/canvas/panBounds.d.ts +23 -0
- package/types/canvas/panBounds.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/views/Calendar.d.ts +7 -2
- package/types/views/Calendar.d.ts.map +1 -1
- package/types/views/calendarMath.d.ts +13 -0
- package/types/views/calendarMath.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__reExport","mod","secondTarget","__toCommonJS","value","index_exports","Accordion","import_Accordion","AlertDialogContent","import_surfaces","AlertDialogOverlay","Anchor","import_Text","AnimateHeight","import_AnimateHeight","Avatar","import_Avatar","Button","import_Button","Card","import_Card","CardFooter","CardHeader","ChatTurn","import_ChatTurn","Composer","import_forms6","ContextualSaveBar","import_forms3","DialogContent","DialogOverlay","DraggableSheetContext","import_SheetScrollView","Fieldset","import_forms2","H1","import_Heading","H2","H3","H4","H5","H6","Heading","IconButton","import_forms5","Image","import_Image","Lightbox","import_Lightbox","Menu","import_lucide","MenuIcon","MiddleEllipsisText","import_MiddleEllipsisText","OverflowRow","import_forms","Pagination","import_Pagination","Panel","Paragraph","PopoverContent","Separator","import_Separator","SheetFrame","SheetScrollView","SheetTouchGuard","SizableText","SortableHandle","import_SortableList","SortableHandleWell","SortableList","SortableSessionProvider","Spinner","import_forms4","Tabs","import_Tabs","TamaguiToast","import_toast","Toast","Text","import_Toast","ToastViewport","Tooltip","import_Tooltip","Wizard","import_Wizard","applyUserOrder","clientKnownIdentity","commitImmediateField","componentColors","import_componentColors","getInitials","getPaginationItems","middleSplit","sectionHeading","settleMs","unwrapText","import_unwrapText","useAccordionTriggerInk","useKeyboardInset","import_useKeyboardInset","useLightbox","useSortableRows","useToast","useToastController","useToastState","useUserOrder","module","exports","require"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n Accordion: () => import_Accordion.Accordion,\n AlertDialogContent: () => import_surfaces.AlertDialogContent,\n AlertDialogOverlay: () => import_surfaces.AlertDialogOverlay,\n Anchor: () => import_Text.Anchor,\n AnimateHeight: () => import_AnimateHeight.AnimateHeight,\n Avatar: () => import_Avatar.Avatar,\n Button: () => import_Button.Button,\n Card: () => import_Card.Card,\n CardFooter: () => import_Card.CardFooter,\n CardHeader: () => import_Card.CardHeader,\n ChatTurn: () => import_ChatTurn.ChatTurn,\n Composer: () => import_forms6.Composer,\n ContextualSaveBar: () => import_forms3.ContextualSaveBar,\n DialogContent: () => import_surfaces.DialogContent,\n DialogOverlay: () => import_surfaces.DialogOverlay,\n DraggableSheetContext: () => import_SheetScrollView.DraggableSheetContext,\n Fieldset: () => import_forms2.Fieldset,\n H1: () => import_Heading.H1,\n H2: () => import_Heading.H2,\n H3: () => import_Heading.H3,\n H4: () => import_Heading.H4,\n H5: () => import_Heading.H5,\n H6: () => import_Heading.H6,\n Heading: () => import_Heading.Heading,\n IconButton: () => import_forms5.IconButton,\n Image: () => import_Image.Image,\n Lightbox: () => import_Lightbox.Lightbox,\n Menu: () => import_lucide.MenuIcon,\n MenuIcon: () => import_lucide.MenuIcon,\n MiddleEllipsisText: () => import_MiddleEllipsisText.MiddleEllipsisText,\n OverflowRow: () => import_forms.OverflowRow,\n Pagination: () => import_Pagination.Pagination,\n Panel: () => import_surfaces.Panel,\n Paragraph: () => import_Text.Paragraph,\n PopoverContent: () => import_surfaces.PopoverContent,\n Separator: () => import_Separator.Separator,\n SheetFrame: () => import_surfaces.SheetFrame,\n SheetScrollView: () => import_SheetScrollView.SheetScrollView,\n SheetTouchGuard: () => import_SheetScrollView.SheetTouchGuard,\n SizableText: () => import_Text.SizableText,\n SortableHandle: () => import_SortableList.SortableHandle,\n SortableHandleWell: () => import_SortableList.SortableHandleWell,\n SortableList: () => import_SortableList.SortableList,\n SortableSessionProvider: () => import_SortableList.SortableSessionProvider,\n Spinner: () => import_forms4.Spinner,\n Tabs: () => import_Tabs.Tabs,\n TamaguiToast: () => import_toast.Toast,\n Text: () => import_Text.Text,\n Toast: () => import_Toast.Toast,\n ToastViewport: () => import_Toast.ToastViewport,\n Tooltip: () => import_Tooltip.Tooltip,\n Wizard: () => import_Wizard.Wizard,\n applyUserOrder: () => import_SortableList.applyUserOrder,\n clientKnownIdentity: () => import_forms3.clientKnownIdentity,\n commitImmediateField: () => import_forms3.commitImmediateField,\n componentColors: () => import_componentColors.componentColors,\n getInitials: () => import_Avatar.getInitials,\n getPaginationItems: () => import_Pagination.getPaginationItems,\n middleSplit: () => import_MiddleEllipsisText.middleSplit,\n sectionHeading: () => import_componentColors.sectionHeading,\n settleMs: () => import_AnimateHeight.settleMs,\n unwrapText: () => import_unwrapText.unwrapText,\n useAccordionTriggerInk: () => import_Accordion.useAccordionTriggerInk,\n useKeyboardInset: () => import_useKeyboardInset.useKeyboardInset,\n useLightbox: () => import_Lightbox.useLightbox,\n useSortableRows: () => import_SortableList.useSortableRows,\n useToast: () => import_Toast.useToast,\n useToastController: () => import_toast.useToastController,\n useToastState: () => import_toast.useToastState,\n useUserOrder: () => import_SortableList.useUserOrder\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_forms = require(\"@multiplatform.one/forms\");\n__reExport(index_exports, require(\"./Alert\"), module.exports);\nvar import_SortableList = require(\"./SortableList\");\n__reExport(index_exports, require(\"./Badge\"), module.exports);\n__reExport(index_exports, require(\"./Carousel\"), module.exports);\n__reExport(index_exports, require(\"./Chip\"), module.exports);\n__reExport(index_exports, require(\"./SwipeDismissRow\"), module.exports);\n__reExport(index_exports, require(\"./DropDownPanel\"), module.exports);\nvar import_ChatTurn = require(\"./ChatTurn\");\n__reExport(index_exports, require(\"./ChoiceChips\"), module.exports);\n__reExport(index_exports, require(\"./Kbd\"), module.exports);\n__reExport(index_exports, require(\"./CopyField\"), module.exports);\n__reExport(index_exports, require(\"./Diff\"), module.exports);\n__reExport(index_exports, require(\"./ElapsedProgress\"), module.exports);\n__reExport(index_exports, require(\"./DotIndicator\"), module.exports);\n__reExport(index_exports, require(\"./DrillStack\"), module.exports);\n__reExport(index_exports, require(\"./DropdownMenu\"), module.exports);\n__reExport(index_exports, require(\"./ContextMenu\"), module.exports);\n__reExport(index_exports, require(\"./MachineLiteral\"), module.exports);\n__reExport(index_exports, require(\"./Material\"), module.exports);\n__reExport(index_exports, require(\"./Meter\"), module.exports);\nvar import_Lightbox = require(\"./Lightbox\");\n__reExport(index_exports, require(\"./ProgressSteps\"), module.exports);\n__reExport(index_exports, require(\"./TreeSelect\"), module.exports);\n__reExport(index_exports, require(\"./Quote\"), module.exports);\n__reExport(index_exports, require(\"./ThemePlayground\"), module.exports);\n__reExport(index_exports, require(\"./Skeleton\"), module.exports);\n__reExport(index_exports, require(\"./SkipLink\"), module.exports);\n__reExport(index_exports, require(\"./Toast\"), module.exports);\n__reExport(index_exports, require(\"./Video\"), module.exports);\n__reExport(index_exports, require(\"./feedback\"), module.exports);\n__reExport(index_exports, require(\"./actions\"), module.exports);\n__reExport(index_exports, require(\"./Wheel\"), module.exports);\nvar import_SheetScrollView = require(\"./SheetScrollView\");\n__reExport(index_exports, require(\"./ErrorBoundary/index\"), module.exports);\n__reExport(index_exports, require(\"./code/index\"), module.exports);\n__reExport(index_exports, require(\"./hooks/index\"), module.exports);\n__reExport(index_exports, require(\"./icons/index\"), module.exports);\n__reExport(index_exports, require(\"./images/index\"), module.exports);\n__reExport(index_exports, require(\"./layouts/index\"), module.exports);\n__reExport(index_exports, require(\"./formLayouts/index\"), module.exports);\n__reExport(index_exports, require(\"./appShell/index\"), module.exports);\n__reExport(index_exports, require(\"./surfaces\"), module.exports);\n__reExport(index_exports, require(\"./views/index\"), module.exports);\nvar import_Wizard = require(\"./Wizard\");\nvar import_unwrapText = require(\"./utils/unwrapText\");\nvar import_useKeyboardInset = require(\"./shared/useKeyboardInset\");\nvar import_Pagination = require(\"./Pagination\");\nvar import_Accordion = require(\"./Accordion\");\nvar import_AnimateHeight = require(\"./AnimateHeight\");\nvar import_Tabs = require(\"./Tabs\");\nvar import_Tooltip = require(\"./Tooltip\");\nvar import_Card = require(\"./Card\");\nvar import_surfaces = require(\"./surfaces\");\n__reExport(index_exports, require(\"./tamagui\"), module.exports);\nvar import_Toast = require(\"./Toast\");\nvar import_lucide = require(\"./icons/lucide\");\nvar import_toast = require(\"@tamagui/toast\");\nvar import_Avatar = require(\"./Avatar\");\nvar import_forms2 = require(\"@multiplatform.one/forms\");\nvar import_forms3 = require(\"@multiplatform.one/forms\");\nvar import_forms4 = require(\"@multiplatform.one/forms\");\nvar import_Button = require(\"./Button\");\nvar import_forms5 = require(\"@multiplatform.one/forms\");\nvar import_forms6 = require(\"@multiplatform.one/forms\");\nvar import_MiddleEllipsisText = require(\"./MiddleEllipsisText\");\nvar import_Text = require(\"./Text\");\nvar import_Heading = require(\"./Heading\");\nvar import_Separator = require(\"./Separator\");\nvar import_Image = require(\"./images/Image\");\nvar import_componentColors = require(\"./componentColors\");\n__reExport(index_exports, require(\"./SchemeToggle\"), module.exports);\n__reExport(index_exports, require(\"./ThemePresetPicker\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa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GAAGiG,OAAO,CAAC,kBAAQ,CAAC;AACnC,IAAIzE,cAAc,GAAGyE,OAAO,CAAC,qBAAW,CAAC;AACzC,IAAI/C,gBAAgB,GAAG+C,OAAO,CAAC,aAAa,CAAC;AAC7C,IAAI/D,YAAY,GAAG+D,OAAO,CAAC,gBAAgB,CAAC;AAC5C,IAAInB,sBAAsB,GAAGmB,OAAO,CAAC,6BAAmB,CAAC;AACzD7G,UAAU,CAACK,aAAa,EAAEwG,OAAO,CAAC,gBAAgB,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC;AACpE5G,UAAU,CAACK,aAAa,EAAEwG,OAAO,CAAC,qBAAqB,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__reExport","mod","secondTarget","__toCommonJS","value","index_exports","Accordion","import_Accordion","AlertDialogContent","import_surfaces","AlertDialogOverlay","Anchor","import_Text","AnimateHeight","import_AnimateHeight","Avatar","import_Avatar","Button","import_Button","Card","import_Card","CardFooter","CardHeader","ChatTurn","import_ChatTurn","Composer","import_forms6","ContextualSaveBar","import_forms3","DialogContent","DialogOverlay","DraggableSheetContext","import_SheetScrollView","Fieldset","import_forms2","H1","import_Heading","H2","H3","H4","H5","H6","Heading","IconButton","import_forms5","Image","import_Image","Lightbox","import_Lightbox","Menu","import_lucide","MenuIcon","MiddleEllipsisText","import_MiddleEllipsisText","OverflowRow","import_forms","Pagination","import_Pagination","Panel","Paragraph","PopoverContent","Separator","import_Separator","SheetFrame","SheetScrollView","SheetTouchGuard","SizableText","SortableHandle","import_SortableList","SortableHandleWell","SortableList","SortableSessionProvider","Spinner","import_forms4","Tabs","import_Tabs","TamaguiToast","import_toast","Toast","Text","import_Toast","ToastViewport","Tooltip","import_Tooltip","Wizard","import_Wizard","applyUserOrder","clientKnownIdentity","commitImmediateField","componentColors","import_componentColors","getInitials","getPaginationItems","middleSplit","sectionHeading","settleMs","unwrapText","import_unwrapText","useAccordionTriggerInk","useKeyboardInset","import_useKeyboardInset","useLightbox","useSortableRows","useToast","useToastController","useToastState","useUserOrder","module","exports","require"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n Accordion: () => import_Accordion.Accordion,\n AlertDialogContent: () => import_surfaces.AlertDialogContent,\n AlertDialogOverlay: () => import_surfaces.AlertDialogOverlay,\n Anchor: () => import_Text.Anchor,\n AnimateHeight: () => import_AnimateHeight.AnimateHeight,\n Avatar: () => import_Avatar.Avatar,\n Button: () => import_Button.Button,\n Card: () => import_Card.Card,\n CardFooter: () => import_Card.CardFooter,\n CardHeader: () => import_Card.CardHeader,\n ChatTurn: () => import_ChatTurn.ChatTurn,\n Composer: () => import_forms6.Composer,\n ContextualSaveBar: () => import_forms3.ContextualSaveBar,\n DialogContent: () => import_surfaces.DialogContent,\n DialogOverlay: () => import_surfaces.DialogOverlay,\n DraggableSheetContext: () => import_SheetScrollView.DraggableSheetContext,\n Fieldset: () => import_forms2.Fieldset,\n H1: () => import_Heading.H1,\n H2: () => import_Heading.H2,\n H3: () => import_Heading.H3,\n H4: () => import_Heading.H4,\n H5: () => import_Heading.H5,\n H6: () => import_Heading.H6,\n Heading: () => import_Heading.Heading,\n IconButton: () => import_forms5.IconButton,\n Image: () => import_Image.Image,\n Lightbox: () => import_Lightbox.Lightbox,\n Menu: () => import_lucide.MenuIcon,\n MenuIcon: () => import_lucide.MenuIcon,\n MiddleEllipsisText: () => import_MiddleEllipsisText.MiddleEllipsisText,\n OverflowRow: () => import_forms.OverflowRow,\n Pagination: () => import_Pagination.Pagination,\n Panel: () => import_surfaces.Panel,\n Paragraph: () => import_Text.Paragraph,\n PopoverContent: () => import_surfaces.PopoverContent,\n Separator: () => import_Separator.Separator,\n SheetFrame: () => import_surfaces.SheetFrame,\n SheetScrollView: () => import_SheetScrollView.SheetScrollView,\n SheetTouchGuard: () => import_SheetScrollView.SheetTouchGuard,\n SizableText: () => import_Text.SizableText,\n SortableHandle: () => import_SortableList.SortableHandle,\n SortableHandleWell: () => import_SortableList.SortableHandleWell,\n SortableList: () => import_SortableList.SortableList,\n SortableSessionProvider: () => import_SortableList.SortableSessionProvider,\n Spinner: () => import_forms4.Spinner,\n Tabs: () => import_Tabs.Tabs,\n TamaguiToast: () => import_toast.Toast,\n Text: () => import_Text.Text,\n Toast: () => import_Toast.Toast,\n ToastViewport: () => import_Toast.ToastViewport,\n Tooltip: () => import_Tooltip.Tooltip,\n Wizard: () => import_Wizard.Wizard,\n applyUserOrder: () => import_SortableList.applyUserOrder,\n clientKnownIdentity: () => import_forms3.clientKnownIdentity,\n commitImmediateField: () => import_forms3.commitImmediateField,\n componentColors: () => import_componentColors.componentColors,\n getInitials: () => import_Avatar.getInitials,\n getPaginationItems: () => import_Pagination.getPaginationItems,\n middleSplit: () => import_MiddleEllipsisText.middleSplit,\n sectionHeading: () => import_componentColors.sectionHeading,\n settleMs: () => import_AnimateHeight.settleMs,\n unwrapText: () => import_unwrapText.unwrapText,\n useAccordionTriggerInk: () => import_Accordion.useAccordionTriggerInk,\n useKeyboardInset: () => import_useKeyboardInset.useKeyboardInset,\n useLightbox: () => import_Lightbox.useLightbox,\n useSortableRows: () => import_SortableList.useSortableRows,\n useToast: () => import_Toast.useToast,\n useToastController: () => import_toast.useToastController,\n useToastState: () => import_toast.useToastState,\n useUserOrder: () => import_SortableList.useUserOrder\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_forms = require(\"@multiplatform.one/forms\");\n__reExport(index_exports, require(\"./Alert\"), module.exports);\nvar import_SortableList = require(\"./SortableList\");\n__reExport(index_exports, require(\"./Badge\"), module.exports);\n__reExport(index_exports, require(\"./Carousel\"), module.exports);\n__reExport(index_exports, require(\"./canvas\"), module.exports);\n__reExport(index_exports, require(\"./Chip\"), module.exports);\n__reExport(index_exports, require(\"./SwipeDismissRow\"), module.exports);\n__reExport(index_exports, require(\"./DropDownPanel\"), module.exports);\nvar import_ChatTurn = require(\"./ChatTurn\");\n__reExport(index_exports, require(\"./ChoiceChips\"), module.exports);\n__reExport(index_exports, require(\"./Kbd\"), module.exports);\n__reExport(index_exports, require(\"./CopyField\"), module.exports);\n__reExport(index_exports, require(\"./Diff\"), module.exports);\n__reExport(index_exports, require(\"./ElapsedProgress\"), module.exports);\n__reExport(index_exports, require(\"./DotIndicator\"), module.exports);\n__reExport(index_exports, require(\"./DrillStack\"), module.exports);\n__reExport(index_exports, require(\"./DropdownMenu\"), module.exports);\n__reExport(index_exports, require(\"./ContextMenu\"), module.exports);\n__reExport(index_exports, require(\"./MachineLiteral\"), module.exports);\n__reExport(index_exports, require(\"./Material\"), module.exports);\n__reExport(index_exports, require(\"./Meter\"), module.exports);\nvar import_Lightbox = require(\"./Lightbox\");\n__reExport(index_exports, require(\"./ProgressSteps\"), module.exports);\n__reExport(index_exports, require(\"./TreeSelect\"), module.exports);\n__reExport(index_exports, require(\"./Quote\"), module.exports);\n__reExport(index_exports, require(\"./ThemePlayground\"), module.exports);\n__reExport(index_exports, require(\"./Skeleton\"), module.exports);\n__reExport(index_exports, require(\"./SkipLink\"), module.exports);\n__reExport(index_exports, require(\"./Toast\"), module.exports);\n__reExport(index_exports, require(\"./Video\"), module.exports);\n__reExport(index_exports, require(\"./feedback\"), module.exports);\n__reExport(index_exports, require(\"./actions\"), module.exports);\n__reExport(index_exports, require(\"./Wheel\"), module.exports);\nvar import_SheetScrollView = require(\"./SheetScrollView\");\n__reExport(index_exports, require(\"./ErrorBoundary/index\"), module.exports);\n__reExport(index_exports, require(\"./code/index\"), module.exports);\n__reExport(index_exports, require(\"./hooks/index\"), module.exports);\n__reExport(index_exports, require(\"./icons/index\"), module.exports);\n__reExport(index_exports, require(\"./images/index\"), module.exports);\n__reExport(index_exports, require(\"./layouts/index\"), module.exports);\n__reExport(index_exports, require(\"./formLayouts/index\"), module.exports);\n__reExport(index_exports, require(\"./appShell/index\"), module.exports);\n__reExport(index_exports, require(\"./surfaces\"), module.exports);\n__reExport(index_exports, require(\"./views/index\"), module.exports);\nvar import_Wizard = require(\"./Wizard\");\nvar import_unwrapText = require(\"./utils/unwrapText\");\nvar import_useKeyboardInset = require(\"./shared/useKeyboardInset\");\nvar import_Pagination = require(\"./Pagination\");\nvar import_Accordion = require(\"./Accordion\");\nvar import_AnimateHeight = require(\"./AnimateHeight\");\nvar import_Tabs = require(\"./Tabs\");\nvar import_Tooltip = require(\"./Tooltip\");\nvar import_Card = require(\"./Card\");\nvar import_surfaces = require(\"./surfaces\");\n__reExport(index_exports, require(\"./tamagui\"), module.exports);\nvar import_Toast = require(\"./Toast\");\nvar import_lucide = require(\"./icons/lucide\");\nvar import_toast = require(\"@tamagui/toast\");\nvar import_Avatar = require(\"./Avatar\");\nvar import_forms2 = require(\"@multiplatform.one/forms\");\nvar import_forms3 = require(\"@multiplatform.one/forms\");\nvar import_forms4 = require(\"@multiplatform.one/forms\");\nvar import_Button = require(\"./Button\");\nvar import_forms5 = require(\"@multiplatform.one/forms\");\nvar import_forms6 = require(\"@multiplatform.one/forms\");\nvar import_MiddleEllipsisText = require(\"./MiddleEllipsisText\");\nvar import_Text = require(\"./Text\");\nvar import_Heading = require(\"./Heading\");\nvar import_Separator = require(\"./Separator\");\nvar import_Image = require(\"./images/Image\");\nvar import_componentColors = require(\"./componentColors\");\n__reExport(index_exports, require(\"./SchemeToggle\"), module.exports);\n__reExport(index_exports, require(\"./ThemePresetPicker\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,I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C,IAAI/D,YAAY,GAAG+D,OAAO,CAAC,gBAAgB,CAAC;AAC5C,IAAInB,sBAAsB,GAAGmB,OAAO,CAAC,6BAAmB,CAAC;AACzD7G,UAAU,CAACK,aAAa,EAAEwG,OAAO,CAAC,gBAAgB,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC;AACpE5G,UAAU,CAACK,aAAa,EAAEwG,OAAO,CAAC,qBAAqB,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC","ignoreList":[]}
|
|
@@ -190,6 +190,11 @@ const TOUCH_LONG_PRESS_MS = 300;
|
|
|
190
190
|
const TOUCH_SLOP_PX = 8;
|
|
191
191
|
const MIN_BLOCK_PX = 18;
|
|
192
192
|
const RESIZE_ZONE_PX = import_theme.MIN_PRESS_TARGET;
|
|
193
|
+
const GRIP_DOT_PX = 10;
|
|
194
|
+
const EVENT_TINT_OPACITY = 0.22;
|
|
195
|
+
const EVENT_SELECTED_TINT_OPACITY = 0.38;
|
|
196
|
+
const EVENT_BAR_PX = 3;
|
|
197
|
+
const GRIP_DOT_INSET_PX = 6;
|
|
193
198
|
const MONTH_CHIP_MIN_PX = 24;
|
|
194
199
|
function DayNumberDisc({
|
|
195
200
|
date,
|
|
@@ -449,6 +454,8 @@ function Calendar({
|
|
|
449
454
|
onEventClick,
|
|
450
455
|
onEventMove,
|
|
451
456
|
onEventResize,
|
|
457
|
+
selectedEventId,
|
|
458
|
+
onEventSelect,
|
|
452
459
|
onEventCreate,
|
|
453
460
|
enableEventDrag,
|
|
454
461
|
viewType: initialViewType = "month",
|
|
@@ -507,6 +514,7 @@ function Calendar({
|
|
|
507
514
|
const webDragEnabled = dragEnabled && hasDom;
|
|
508
515
|
const nativeDragEnabled = dragEnabled && !import_tamagui.isWeb;
|
|
509
516
|
const webResizeEnabled = onEventResize !== void 0 && hasDom;
|
|
517
|
+
const nativeResizeEnabled = onEventResize !== void 0 && !import_tamagui.isWeb;
|
|
510
518
|
const webCreateEnabled = onEventCreate !== void 0 && hasDom;
|
|
511
519
|
const [dragGhost, setDragGhost] = (0, import_react.useState)(null);
|
|
512
520
|
const [dropTargetKey, setDropTargetKey] = (0, import_react.useState)(null);
|
|
@@ -532,6 +540,31 @@ function Calendar({
|
|
|
532
540
|
y: 0
|
|
533
541
|
});
|
|
534
542
|
const nativeSessionRef = (0, import_react.useRef)(null);
|
|
543
|
+
const nativeResizeRef = (0, import_react.useRef)(null);
|
|
544
|
+
const [innerSelectedId, setInnerSelectedId] = (0, import_react.useState)(null);
|
|
545
|
+
const [focusedEventId, setFocusedEventId] = (0, import_react.useState)(null);
|
|
546
|
+
const selectedId = selectedEventId !== void 0 ? selectedEventId : innerSelectedId;
|
|
547
|
+
const selectedIdRef = (0, import_react.useRef)(selectedId);
|
|
548
|
+
selectedIdRef.current = selectedId;
|
|
549
|
+
const holdTimerRef = (0, import_react.useRef)(null);
|
|
550
|
+
const heldRef = (0, import_react.useRef)(false);
|
|
551
|
+
const hold = (0, import_forms.useHoldCue)();
|
|
552
|
+
const [holdCueId, setHoldCueId] = (0, import_react.useState)(null);
|
|
553
|
+
const selectEvent = (0, import_react.useCallback)(event => {
|
|
554
|
+
if ((event?.id ?? null) === selectedIdRef.current) return;
|
|
555
|
+
setInnerSelectedId(event?.id ?? null);
|
|
556
|
+
onEventSelect?.(event);
|
|
557
|
+
}, [onEventSelect]);
|
|
558
|
+
const clearHoldTimer = (0, import_react.useCallback)(() => {
|
|
559
|
+
if (holdTimerRef.current) clearTimeout(holdTimerRef.current);
|
|
560
|
+
holdTimerRef.current = null;
|
|
561
|
+
hold.stop();
|
|
562
|
+
}, [hold.stop]);
|
|
563
|
+
const startHoldCue = (0, import_react.useCallback)(event => {
|
|
564
|
+
setHoldCueId(event.id);
|
|
565
|
+
hold.start();
|
|
566
|
+
}, [hold.start]);
|
|
567
|
+
(0, import_react.useEffect)(() => clearHoldTimer, [clearHoldTimer]);
|
|
535
568
|
slotTargetRef.current = slotTarget;
|
|
536
569
|
resizePreviewRef.current = resizePreview;
|
|
537
570
|
editorStateRef.current = editorState;
|
|
@@ -650,6 +683,7 @@ function Calendar({
|
|
|
650
683
|
onCommit: pt => {
|
|
651
684
|
endVisuals();
|
|
652
685
|
suppressNextClick();
|
|
686
|
+
if (onEventResize) selectEvent(event);
|
|
653
687
|
const ghostFrom = {
|
|
654
688
|
x: pt.x + 12,
|
|
655
689
|
y: pt.y + 12
|
|
@@ -711,7 +745,7 @@ function Calendar({
|
|
|
711
745
|
}
|
|
712
746
|
});
|
|
713
747
|
dragSessionCleanupRef.current = cleanup;
|
|
714
|
-
}, [webDragEnabled, slotMinutes, hourHeight, onEventMove, commitMoveToKey, beginSettle, suppressNextClick]);
|
|
748
|
+
}, [webDragEnabled, slotMinutes, hourHeight, onEventMove, commitMoveToKey, beginSettle, suppressNextClick, onEventResize, selectEvent]);
|
|
715
749
|
const handleResizePointerDown = (0, import_react.useCallback)((event, edge, e) => {
|
|
716
750
|
if (!webResizeEnabled) return;
|
|
717
751
|
if (e.button !== void 0 && e.button !== 0) return;
|
|
@@ -776,6 +810,73 @@ function Calendar({
|
|
|
776
810
|
});
|
|
777
811
|
dragSessionCleanupRef.current = cleanup;
|
|
778
812
|
}, [webResizeEnabled, hourHeight, slotMinutes, onEventResize, suppressNextClick]);
|
|
813
|
+
const endNativeResize = (0, import_react.useCallback)(() => {
|
|
814
|
+
nativeResizeRef.current = null;
|
|
815
|
+
setResizePreview(null);
|
|
816
|
+
setScrollLocked(false);
|
|
817
|
+
}, []);
|
|
818
|
+
const handleNativeResizeGrant = (0, import_react.useCallback)((event, edge, e) => {
|
|
819
|
+
if (!nativeResizeEnabled) return;
|
|
820
|
+
const startMin = (0, import_calendarMath.minutesOfDay)(event.start);
|
|
821
|
+
const endMin = event.end ? startMin + (event.end.getTime() - event.start.getTime()) / 6e4 : startMin + slotMinutes;
|
|
822
|
+
nativeResizeRef.current = {
|
|
823
|
+
event,
|
|
824
|
+
edge,
|
|
825
|
+
startY: e.nativeEvent?.pageY ?? 0,
|
|
826
|
+
edgeMin: edge === "start" ? startMin : endMin,
|
|
827
|
+
active: false,
|
|
828
|
+
range: null
|
|
829
|
+
};
|
|
830
|
+
}, [nativeResizeEnabled, slotMinutes]);
|
|
831
|
+
const handleNativeResizeMove = (0, import_react.useCallback)(e => {
|
|
832
|
+
const session = nativeResizeRef.current;
|
|
833
|
+
if (!session) return;
|
|
834
|
+
const dy = (e.nativeEvent?.pageY ?? 0) - session.startY;
|
|
835
|
+
if (!session.active) {
|
|
836
|
+
if (Math.abs(dy) < DRAG_THRESHOLD_PX) return;
|
|
837
|
+
session.active = true;
|
|
838
|
+
setScrollLocked(true);
|
|
839
|
+
}
|
|
840
|
+
const raw = session.edgeMin + dy / hourHeight * 60;
|
|
841
|
+
const range = (0, import_calendarMath.computeResizeRange)(session.event, session.edge, raw, slotMinutes);
|
|
842
|
+
session.range = range;
|
|
843
|
+
setResizePreview({
|
|
844
|
+
id: session.event.id,
|
|
845
|
+
start: range.start,
|
|
846
|
+
end: range.end
|
|
847
|
+
});
|
|
848
|
+
}, [hourHeight, slotMinutes]);
|
|
849
|
+
const handleNativeResizeRelease = (0, import_react.useCallback)(() => {
|
|
850
|
+
const session = nativeResizeRef.current;
|
|
851
|
+
if (!session) return;
|
|
852
|
+
endNativeResize();
|
|
853
|
+
if (!session.active) {
|
|
854
|
+
onEventClick?.(session.event);
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
suppressNextClick();
|
|
858
|
+
const {
|
|
859
|
+
event,
|
|
860
|
+
range
|
|
861
|
+
} = session;
|
|
862
|
+
if (!range) return;
|
|
863
|
+
const prevEnd = event.end ?? event.start;
|
|
864
|
+
if (range.start.getTime() !== event.start.getTime() || range.end.getTime() !== prevEnd.getTime()) {
|
|
865
|
+
onEventResize?.(event, {
|
|
866
|
+
start: range.start,
|
|
867
|
+
end: range.end
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
}, [endNativeResize, onEventClick, onEventResize, suppressNextClick]);
|
|
871
|
+
const getNativeResizeProps = (event, edge) => ({
|
|
872
|
+
onStartShouldSetResponder: () => true,
|
|
873
|
+
onMoveShouldSetResponder: () => true,
|
|
874
|
+
onResponderTerminationRequest: () => !nativeResizeRef.current?.active,
|
|
875
|
+
onResponderGrant: e => handleNativeResizeGrant(event, edge, e),
|
|
876
|
+
onResponderMove: handleNativeResizeMove,
|
|
877
|
+
onResponderRelease: handleNativeResizeRelease,
|
|
878
|
+
onResponderTerminate: endNativeResize
|
|
879
|
+
});
|
|
779
880
|
const openEditor = (0, import_react.useCallback)((dayKey, range) => {
|
|
780
881
|
setCreateDraft(null);
|
|
781
882
|
setDraftTitle("");
|
|
@@ -870,6 +971,7 @@ function Calendar({
|
|
|
870
971
|
setDropTargetKey(null);
|
|
871
972
|
setDraggingEventId(null);
|
|
872
973
|
if (!session?.dragging) return;
|
|
974
|
+
if (opts.commit) selectEvent(session.event);
|
|
873
975
|
suppressClickRef.current = true;
|
|
874
976
|
setTimeout(() => {
|
|
875
977
|
suppressClickRef.current = false;
|
|
@@ -879,7 +981,7 @@ function Calendar({
|
|
|
879
981
|
const key = findDayKeyAtPoint(opts.pageX, opts.pageY, layouts) ?? findDayKeyAtPoint(opts.pageX, opts.pageY, session.layouts);
|
|
880
982
|
commitMoveToKey(session.event, key);
|
|
881
983
|
});
|
|
882
|
-
}, [commitMoveToKey]);
|
|
984
|
+
}, [commitMoveToKey, selectEvent]);
|
|
883
985
|
const handleNativeGrant = (0, import_react.useCallback)((event, e) => {
|
|
884
986
|
if (!nativeDragEnabled) return;
|
|
885
987
|
const pageX = e.nativeEvent?.pageX ?? 0;
|
|
@@ -891,7 +993,19 @@ function Calendar({
|
|
|
891
993
|
dragging: false,
|
|
892
994
|
layouts: []
|
|
893
995
|
};
|
|
894
|
-
|
|
996
|
+
heldRef.current = false;
|
|
997
|
+
clearHoldTimer();
|
|
998
|
+
if (nativeResizeEnabled) {
|
|
999
|
+
startHoldCue(event);
|
|
1000
|
+
holdTimerRef.current = setTimeout(() => {
|
|
1001
|
+
holdTimerRef.current = null;
|
|
1002
|
+
hold.stop();
|
|
1003
|
+
if (nativeSessionRef.current?.event !== event || nativeSessionRef.current.dragging) return;
|
|
1004
|
+
heldRef.current = true;
|
|
1005
|
+
selectEvent(event);
|
|
1006
|
+
}, TOUCH_LONG_PRESS_MS);
|
|
1007
|
+
}
|
|
1008
|
+
}, [nativeDragEnabled, nativeResizeEnabled, clearHoldTimer, selectEvent, startHoldCue, hold.stop]);
|
|
895
1009
|
const handleNativeMove = (0, import_react.useCallback)(e => {
|
|
896
1010
|
const session = nativeSessionRef.current;
|
|
897
1011
|
if (!session) return;
|
|
@@ -900,6 +1014,7 @@ function Calendar({
|
|
|
900
1014
|
if (!session.dragging) {
|
|
901
1015
|
if (Math.hypot(pageX - session.startX, pageY - session.startY) < DRAG_THRESHOLD_PX) return;
|
|
902
1016
|
session.dragging = true;
|
|
1017
|
+
clearHoldTimer();
|
|
903
1018
|
setScrollLocked(true);
|
|
904
1019
|
setDraggingEventId(session.event.id);
|
|
905
1020
|
refreshContainerOffset();
|
|
@@ -913,12 +1028,15 @@ function Calendar({
|
|
|
913
1028
|
y: pageY - containerOffsetRef.current.y + 12
|
|
914
1029
|
});
|
|
915
1030
|
setDropTargetKey(findDayKeyAtPoint(pageX, pageY, session.layouts));
|
|
916
|
-
}, [refreshContainerOffset]);
|
|
1031
|
+
}, [refreshContainerOffset, clearHoldTimer]);
|
|
917
1032
|
const handleNativeRelease = (0, import_react.useCallback)(e => {
|
|
918
1033
|
const session = nativeSessionRef.current;
|
|
919
1034
|
if (!session) return;
|
|
1035
|
+
clearHoldTimer();
|
|
920
1036
|
if (!session.dragging) {
|
|
921
1037
|
nativeSessionRef.current = null;
|
|
1038
|
+
if (heldRef.current) return;
|
|
1039
|
+
selectEvent(null);
|
|
922
1040
|
onEventClick?.(session.event);
|
|
923
1041
|
return;
|
|
924
1042
|
}
|
|
@@ -927,12 +1045,13 @@ function Calendar({
|
|
|
927
1045
|
pageX: e.nativeEvent?.pageX,
|
|
928
1046
|
pageY: e.nativeEvent?.pageY
|
|
929
1047
|
});
|
|
930
|
-
}, [endNativeSession, onEventClick]);
|
|
1048
|
+
}, [endNativeSession, onEventClick, clearHoldTimer, selectEvent]);
|
|
931
1049
|
const handleNativeTerminate = (0, import_react.useCallback)(() => {
|
|
1050
|
+
clearHoldTimer();
|
|
932
1051
|
endNativeSession({
|
|
933
1052
|
commit: false
|
|
934
1053
|
});
|
|
935
|
-
}, [endNativeSession]);
|
|
1054
|
+
}, [endNativeSession, clearHoldTimer]);
|
|
936
1055
|
const getEventDragProps = (0, import_react.useCallback)((event, mode = "day") => {
|
|
937
1056
|
const base = {
|
|
938
1057
|
"data-calendar-event": event.id
|
|
@@ -1118,10 +1237,13 @@ function Calendar({
|
|
|
1118
1237
|
children: renderEvent(event)
|
|
1119
1238
|
}, event.id);
|
|
1120
1239
|
}
|
|
1121
|
-
return /* @__PURE__ */(0, import_jsx_runtime.
|
|
1240
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
1122
1241
|
...knobProps.borderRadius,
|
|
1123
|
-
|
|
1242
|
+
position: "relative",
|
|
1243
|
+
backgroundColor: "$background",
|
|
1244
|
+
overflow: "hidden",
|
|
1124
1245
|
padding: compact ? "$1" : "$2",
|
|
1246
|
+
paddingInlineStart: EVENT_BAR_PX + 4,
|
|
1125
1247
|
minHeight: MONTH_CHIP_MIN_PX,
|
|
1126
1248
|
justifyContent: "center",
|
|
1127
1249
|
hitSlop: (0, import_theme.pressTargetHitSlop)(compact ? MONTH_CHIP_MIN_PX : 32),
|
|
@@ -1140,15 +1262,42 @@ function Calendar({
|
|
|
1140
1262
|
if (suppressClickRef.current) return;
|
|
1141
1263
|
onEventClick?.(event);
|
|
1142
1264
|
},
|
|
1143
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.
|
|
1265
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1266
|
+
position: "absolute",
|
|
1267
|
+
top: 0,
|
|
1268
|
+
bottom: 0,
|
|
1269
|
+
left: 0,
|
|
1270
|
+
right: 0,
|
|
1271
|
+
backgroundColor: event.color || identity,
|
|
1272
|
+
opacity: EVENT_TINT_OPACITY,
|
|
1273
|
+
pointerEvents: "none",
|
|
1274
|
+
...{
|
|
1275
|
+
"data-calendar-event-tint": "true"
|
|
1276
|
+
}
|
|
1277
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1278
|
+
position: "absolute",
|
|
1279
|
+
top: 0,
|
|
1280
|
+
bottom: 0,
|
|
1281
|
+
...(isRTL ? {
|
|
1282
|
+
right: 0
|
|
1283
|
+
} : {
|
|
1284
|
+
left: 0
|
|
1285
|
+
}),
|
|
1286
|
+
width: EVENT_BAR_PX,
|
|
1287
|
+
backgroundColor: event.color || identity,
|
|
1288
|
+
pointerEvents: "none",
|
|
1289
|
+
...{
|
|
1290
|
+
"data-calendar-event-bar": "true"
|
|
1291
|
+
}
|
|
1292
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
1144
1293
|
...knobProps.body,
|
|
1145
1294
|
fontSize: compact ? "$1" : "$2",
|
|
1146
1295
|
numberOfLines: compact ? 1 : 2,
|
|
1147
|
-
color:
|
|
1296
|
+
color: "$color12",
|
|
1148
1297
|
children: event.title
|
|
1149
|
-
})
|
|
1298
|
+
})]
|
|
1150
1299
|
}, event.id);
|
|
1151
|
-
}, [renderEvent, onEventClick, knobProps.borderRadius, dragEnabled, webDragEnabled, nativeDragEnabled, getEventDragProps, eventA11yProps, draggingEventId,
|
|
1300
|
+
}, [renderEvent, onEventClick, knobProps.borderRadius, dragEnabled, webDragEnabled, nativeDragEnabled, getEventDragProps, eventA11yProps, draggingEventId, identity, isRTL]);
|
|
1152
1301
|
const MONTH_VISIBLE_EVENTS = 3;
|
|
1153
1302
|
const renderMonthView = () => {
|
|
1154
1303
|
const monthDays = getMonthDays(currentDate, firstDayOfWeek);
|
|
@@ -1339,7 +1488,24 @@ function Calendar({
|
|
|
1339
1488
|
const leftPct = (isRTL ? layout.columns - 1 - layout.column : layout.column) * widthPct;
|
|
1340
1489
|
const lifted = draggingEventId === event.id;
|
|
1341
1490
|
const zoneInner = Math.min(RESIZE_ZONE_PX / 2, blockHeight / 2);
|
|
1491
|
+
const gripZones = (0, import_calendarMath.resizeGripZones)(blockHeight, RESIZE_ZONE_PX);
|
|
1342
1492
|
const dragProps = getEventDragProps(event, "slot");
|
|
1493
|
+
const selected = selectedId === event.id;
|
|
1494
|
+
const gripsShown = selected || focusedEventId === event.id;
|
|
1495
|
+
const fill = event.color || identity;
|
|
1496
|
+
const titleInk = "$color12";
|
|
1497
|
+
const timeInk = "$color11";
|
|
1498
|
+
const gripDot = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1499
|
+
width: GRIP_DOT_PX,
|
|
1500
|
+
height: GRIP_DOT_PX,
|
|
1501
|
+
borderRadius: GRIP_DOT_PX / 2,
|
|
1502
|
+
borderWidth: 2,
|
|
1503
|
+
borderColor: event.color || identity,
|
|
1504
|
+
backgroundColor: "$background",
|
|
1505
|
+
...{
|
|
1506
|
+
"data-calendar-grip-dot": "true"
|
|
1507
|
+
}
|
|
1508
|
+
});
|
|
1343
1509
|
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
1344
1510
|
position: "absolute",
|
|
1345
1511
|
top,
|
|
@@ -1352,36 +1518,94 @@ function Calendar({
|
|
|
1352
1518
|
...knobProps.motion.slide,
|
|
1353
1519
|
transition: webLayoutTransition
|
|
1354
1520
|
}, ["top", "height", "left", "width"]),
|
|
1355
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.
|
|
1521
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
1356
1522
|
flex: 1,
|
|
1357
1523
|
...knobProps.borderRadius,
|
|
1358
|
-
|
|
1524
|
+
position: "relative",
|
|
1525
|
+
backgroundColor: "$background",
|
|
1359
1526
|
padding: "$1",
|
|
1527
|
+
paddingInlineStart: EVENT_BAR_PX + 4,
|
|
1360
1528
|
overflow: "hidden",
|
|
1361
1529
|
opacity: lifted ? 0.4 : 1,
|
|
1362
|
-
borderWidth: 1,
|
|
1363
|
-
borderColor: "$background",
|
|
1530
|
+
borderWidth: selected ? 2 : 1,
|
|
1531
|
+
borderColor: selected ? fill : "$background",
|
|
1364
1532
|
cursor: webDragEnabled ? "grab" : "pointer",
|
|
1365
1533
|
...eventA11yProps(event),
|
|
1366
1534
|
...dragProps,
|
|
1535
|
+
onFocus: () => setFocusedEventId(event.id),
|
|
1536
|
+
onBlur: () => setFocusedEventId(id => id === event.id ? null : id),
|
|
1367
1537
|
onPress: nativeDragEnabled ? void 0 : e => {
|
|
1368
1538
|
e?.stopPropagation?.();
|
|
1369
1539
|
if (suppressClickRef.current) return;
|
|
1540
|
+
if (heldRef.current) {
|
|
1541
|
+
heldRef.current = false;
|
|
1542
|
+
return;
|
|
1543
|
+
}
|
|
1544
|
+
if (onEventResize) selectEvent(null);
|
|
1370
1545
|
onEventClick?.(event);
|
|
1371
1546
|
},
|
|
1372
|
-
|
|
1547
|
+
...(onEventResize && !nativeDragEnabled ? {
|
|
1548
|
+
onPressIn: () => {
|
|
1549
|
+
heldRef.current = false;
|
|
1550
|
+
startHoldCue(event);
|
|
1551
|
+
},
|
|
1552
|
+
onPressOut: hold.stop,
|
|
1553
|
+
onLongPress: () => {
|
|
1554
|
+
hold.stop();
|
|
1555
|
+
heldRef.current = true;
|
|
1556
|
+
selectEvent(event);
|
|
1557
|
+
}
|
|
1558
|
+
} : {}),
|
|
1559
|
+
...(hold.holding && holdCueId === event.id ? {
|
|
1560
|
+
scale: 0.97
|
|
1561
|
+
} : {}),
|
|
1562
|
+
...{
|
|
1563
|
+
"data-hold": hold.holding && holdCueId === event.id ? "progress" : void 0
|
|
1564
|
+
},
|
|
1565
|
+
...{
|
|
1566
|
+
"data-calendar-selected": selected ? "true" : void 0
|
|
1567
|
+
},
|
|
1568
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1569
|
+
position: "absolute",
|
|
1570
|
+
top: 0,
|
|
1571
|
+
bottom: 0,
|
|
1572
|
+
left: 0,
|
|
1573
|
+
right: 0,
|
|
1574
|
+
backgroundColor: fill,
|
|
1575
|
+
opacity: selected ? EVENT_SELECTED_TINT_OPACITY : EVENT_TINT_OPACITY,
|
|
1576
|
+
pointerEvents: "none",
|
|
1577
|
+
...{
|
|
1578
|
+
"data-calendar-event-tint": "true"
|
|
1579
|
+
}
|
|
1580
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1581
|
+
position: "absolute",
|
|
1582
|
+
top: 0,
|
|
1583
|
+
bottom: 0,
|
|
1584
|
+
...(isRTL ? {
|
|
1585
|
+
right: 0
|
|
1586
|
+
} : {
|
|
1587
|
+
left: 0
|
|
1588
|
+
}),
|
|
1589
|
+
width: EVENT_BAR_PX,
|
|
1590
|
+
backgroundColor: fill,
|
|
1591
|
+
pointerEvents: "none",
|
|
1592
|
+
...{
|
|
1593
|
+
"data-calendar-event-bar": "true"
|
|
1594
|
+
}
|
|
1595
|
+
}), renderEvent ? renderEvent(event) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
1373
1596
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Text.Text, {
|
|
1374
1597
|
fontSize: "$1",
|
|
1598
|
+
fontWeight: "600",
|
|
1375
1599
|
numberOfLines: 1,
|
|
1376
|
-
color:
|
|
1600
|
+
color: titleInk,
|
|
1377
1601
|
children: event.title
|
|
1378
1602
|
}), blockHeight >= 34 && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Text.Text, {
|
|
1379
1603
|
fontSize: "$1",
|
|
1380
1604
|
numberOfLines: 1,
|
|
1381
|
-
color:
|
|
1605
|
+
color: timeInk,
|
|
1382
1606
|
children: (0, import_calendarMath.formatTimeRangeLabel)(start, end)
|
|
1383
1607
|
})]
|
|
1384
|
-
})
|
|
1608
|
+
})]
|
|
1385
1609
|
}), webResizeEnabled && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
1386
1610
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1387
1611
|
position: "absolute",
|
|
@@ -1390,10 +1614,11 @@ function Calendar({
|
|
|
1390
1614
|
height: RESIZE_ZONE_PX / 2 + zoneInner,
|
|
1391
1615
|
cursor: "ns-resize",
|
|
1392
1616
|
zIndex: 3,
|
|
1393
|
-
justifyContent: "flex-
|
|
1394
|
-
alignItems: "
|
|
1395
|
-
|
|
1396
|
-
|
|
1617
|
+
justifyContent: "flex-start",
|
|
1618
|
+
alignItems: "flex-end",
|
|
1619
|
+
paddingTop: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
|
|
1620
|
+
paddingInlineEnd: GRIP_DOT_INSET_PX,
|
|
1621
|
+
opacity: gripsShown ? 1 : 0,
|
|
1397
1622
|
hoverStyle: {
|
|
1398
1623
|
opacity: 1
|
|
1399
1624
|
},
|
|
@@ -1401,12 +1626,7 @@ function Calendar({
|
|
|
1401
1626
|
...{
|
|
1402
1627
|
"data-calendar-resize": `start:${event.id}`
|
|
1403
1628
|
},
|
|
1404
|
-
children:
|
|
1405
|
-
width: 28,
|
|
1406
|
-
height: 3,
|
|
1407
|
-
borderRadius: 2,
|
|
1408
|
-
backgroundColor: "$accentColor"
|
|
1409
|
-
})
|
|
1629
|
+
children: gripDot
|
|
1410
1630
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1411
1631
|
position: "absolute",
|
|
1412
1632
|
...overlayInset,
|
|
@@ -1414,10 +1634,11 @@ function Calendar({
|
|
|
1414
1634
|
height: RESIZE_ZONE_PX / 2 + zoneInner,
|
|
1415
1635
|
cursor: "ns-resize",
|
|
1416
1636
|
zIndex: 3,
|
|
1417
|
-
justifyContent: "flex-
|
|
1418
|
-
alignItems: "
|
|
1419
|
-
|
|
1420
|
-
|
|
1637
|
+
justifyContent: "flex-end",
|
|
1638
|
+
alignItems: "flex-start",
|
|
1639
|
+
paddingBottom: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
|
|
1640
|
+
paddingInlineStart: GRIP_DOT_INSET_PX,
|
|
1641
|
+
opacity: gripsShown ? 1 : 0,
|
|
1421
1642
|
hoverStyle: {
|
|
1422
1643
|
opacity: 1
|
|
1423
1644
|
},
|
|
@@ -1425,13 +1646,33 @@ function Calendar({
|
|
|
1425
1646
|
...{
|
|
1426
1647
|
"data-calendar-resize": `end:${event.id}`
|
|
1427
1648
|
},
|
|
1428
|
-
children:
|
|
1429
|
-
width: 28,
|
|
1430
|
-
height: 3,
|
|
1431
|
-
borderRadius: 2,
|
|
1432
|
-
backgroundColor: "$accentColor"
|
|
1433
|
-
})
|
|
1649
|
+
children: gripDot
|
|
1434
1650
|
})]
|
|
1651
|
+
}), nativeResizeEnabled && selected && ["start", "end"].map(edge => {
|
|
1652
|
+
const zone = gripZones[edge];
|
|
1653
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1654
|
+
position: "absolute",
|
|
1655
|
+
...overlayInset,
|
|
1656
|
+
top: zone.top,
|
|
1657
|
+
height: zone.height,
|
|
1658
|
+
justifyContent: edge === "start" ? "flex-start" : "flex-end",
|
|
1659
|
+
...(edge === "start" ? {
|
|
1660
|
+
paddingTop: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
|
|
1661
|
+
alignItems: "flex-end",
|
|
1662
|
+
paddingInlineEnd: GRIP_DOT_INSET_PX
|
|
1663
|
+
} : {
|
|
1664
|
+
paddingBottom: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
|
|
1665
|
+
alignItems: "flex-start",
|
|
1666
|
+
paddingInlineStart: GRIP_DOT_INSET_PX
|
|
1667
|
+
}),
|
|
1668
|
+
zIndex: 3,
|
|
1669
|
+
"aria-label": edge === "start" ? t("Resize start") : t("Resize end"),
|
|
1670
|
+
...getNativeResizeProps(event, edge),
|
|
1671
|
+
...{
|
|
1672
|
+
"data-calendar-resize": `${edge}:${event.id}`
|
|
1673
|
+
},
|
|
1674
|
+
children: gripDot
|
|
1675
|
+
}, edge);
|
|
1435
1676
|
}), preview && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
1436
1677
|
position: "absolute",
|
|
1437
1678
|
top: -26,
|