@12-apps/ui 6.86.1 → 6.87.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/NATIVE.md +1 -1
- package/components-catalog.md +16 -2
- package/dist/_internal/components/data-display/Alert/Alert.js +3 -3
- package/dist/_internal/components/data-display/AlertDialog/AlertDialog.js +3 -3
- package/dist/_internal/components/data-display/AlertDialog/AlertDialog.parts.js +2 -2
- package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +8 -8
- package/dist/_internal/components/data-display/Avatar/Avatar.js +4 -4
- package/dist/_internal/components/data-display/Avatar/Avatar.view.js +2 -2
- package/dist/_internal/components/data-display/Badge/Badge.js +1 -1
- package/dist/_internal/components/data-display/Badge/Badge.styles.js +1 -1
- package/dist/_internal/components/data-display/Badge/BadgeContent.js +1 -1
- package/dist/_internal/components/data-display/CardKit/CardKebab.js +3 -3
- package/dist/_internal/components/data-display/CardKit/card-actions-context.js +4 -4
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +14 -14
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +10 -10
- package/dist/_internal/components/data-display/Carousel/Carousel.chrome.js +1 -1
- package/dist/_internal/components/data-display/Carousel/Carousel.js +5 -5
- package/dist/_internal/components/data-display/Carousel/Carousel.parts.js +1 -1
- package/dist/_internal/components/data-display/Carousel/Carousel.styles.js +1 -1
- package/dist/_internal/components/data-display/Chart/Chart.js +4 -4
- package/dist/_internal/components/data-display/Chart/SpecChart.js +8 -8
- package/dist/_internal/components/data-display/Chart/chart-context.js +1 -1
- package/dist/_internal/components/data-display/Chart/chart-internals.js +1 -1
- package/dist/_internal/components/data-display/Chart/chart-renderers.js +3 -3
- package/dist/_internal/components/data-display/Chart/chart-spec.js +2 -2
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +2 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +59 -59
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +81 -81
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +5 -5
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +11 -11
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +9 -9
- package/dist/_internal/components/data-display/DataViews/base-card.js +3 -3
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +1 -1
- package/dist/_internal/components/data-display/DataViews/base-list-card-layout.js +1 -1
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-card-body.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +16 -16
- package/dist/_internal/components/data-display/DataViews/data-views-columns.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-empty.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-export.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +25 -25
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +54 -54
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +29 -29
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +24 -24
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +27 -27
- package/dist/_internal/components/data-display/DataViews/data-views-pagination.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +15 -15
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +25 -25
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +14 -14
- package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +3 -3
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +6 -6
- package/dist/_internal/components/data-display/DayRuler/DayRuler.js +33 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.keyboard.js +12 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.keyboard.js.map +1 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.metrics.js +8 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.metrics.js.map +1 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.parts.js +30 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.parts.js.map +1 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.styles.js +54 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.styles.js.map +1 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.types.js +1 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.types.js.map +1 -0
- package/dist/_internal/components/data-display/DayRuler/day-ruler-model.js +26 -0
- package/dist/_internal/components/data-display/DayRuler/day-ruler-model.js.map +1 -0
- package/dist/_internal/components/data-display/DayRuler/useRulerDrag.js +11 -0
- package/dist/_internal/components/data-display/DayRuler/useRulerDrag.js.map +1 -0
- package/dist/_internal/components/data-display/DayRuler/useTextFits.js +8 -0
- package/dist/_internal/components/data-display/DayRuler/useTextFits.js.map +1 -0
- package/dist/_internal/components/data-display/EmptyState/EmptyState.js +2 -2
- package/dist/_internal/components/data-display/ErrorState/ErrorState.js +2 -2
- package/dist/_internal/components/data-display/FleetMap/FleetBody.js +15 -15
- package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +9 -9
- package/dist/_internal/components/data-display/FleetMap/FleetMap.js +21 -21
- package/dist/_internal/components/data-display/FleetMap/FleetRoster.js +3 -3
- package/dist/_internal/components/data-display/HoverCard/HoverCard.js +3 -3
- package/dist/_internal/components/data-display/LazyImage/LazyImage.js +4 -4
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +7 -7
- package/dist/_internal/components/data-display/Lightbox/LightboxControls.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/LightboxOverlay.js +3 -3
- package/dist/_internal/components/data-display/Lightbox/LightboxThumbnails.js +2 -2
- package/dist/_internal/components/data-display/LoadingState/LoadingState.js +5 -5
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapMarkers.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +8 -8
- package/dist/_internal/components/data-display/RegionMap/RegionMap.js +5 -5
- package/dist/_internal/components/data-display/RegionMap/RegionMapDrawing.js +2 -2
- package/dist/_internal/components/data-display/RegionMap/RegionMapList.js +1 -1
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.js +30 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.keyboard.js +11 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.keyboard.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.metrics.js +10 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.metrics.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.parts.js +25 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.parts.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.styles.js +59 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.styles.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.types.js +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.types.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleNameCell.js +18 -0
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleNameCell.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/drag-session.js +10 -0
- package/dist/_internal/components/data-display/ScheduleGrid/drag-session.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/schedule-grid-model.js +18 -0
- package/dist/_internal/components/data-display/ScheduleGrid/schedule-grid-model.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/schedule-name.styles.js +25 -0
- package/dist/_internal/components/data-display/ScheduleGrid/schedule-name.styles.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/schedule-tones.js +26 -0
- package/dist/_internal/components/data-display/ScheduleGrid/schedule-tones.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/useAnnouncer.js +8 -0
- package/dist/_internal/components/data-display/ScheduleGrid/useAnnouncer.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/useGridDrag.js +10 -0
- package/dist/_internal/components/data-display/ScheduleGrid/useGridDrag.js.map +1 -0
- package/dist/_internal/components/data-display/ScheduleGrid/useSidewaysScroll.js +9 -0
- package/dist/_internal/components/data-display/ScheduleGrid/useSidewaysScroll.js.map +1 -0
- package/dist/_internal/components/data-display/SectionOnboarding/SectionOnboarding.js +4 -4
- package/dist/_internal/components/data-display/Sheet/Sheet.body.js +4 -4
- package/dist/_internal/components/data-display/Sheet/Sheet.hooks.js +2 -2
- package/dist/_internal/components/data-display/Sheet/Sheet.js +7 -7
- package/dist/_internal/components/data-display/Sheet/Sheet.parts.js +2 -2
- package/dist/_internal/components/data-display/Sheet/Sheet.styles.js +1 -1
- package/dist/_internal/components/data-display/StatCard/StatCard.js +3 -3
- package/dist/_internal/components/data-display/Stepper/Stepper.js +2 -2
- package/dist/_internal/components/data-display/Table/Table.js +4 -4
- package/dist/_internal/components/data-display/Table/TableParts.hooks.js +2 -2
- package/dist/_internal/components/data-display/Table/TableParts.js +2 -2
- package/dist/_internal/components/data-display/Timeline/Timeline.js +2 -2
- package/dist/_internal/components/data-display/index.js +152 -123
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmAction.js +5 -5
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmAction.parts.js +4 -4
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +8 -8
- package/dist/_internal/components/feedback/ConfirmAction/with-confirmation.js +5 -5
- package/dist/_internal/components/feedback/Dialog/Dialog.js +2 -2
- package/dist/_internal/components/feedback/Modal/Modal.js +2 -2
- package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +6 -6
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.header.js +38 -0
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.header.js.map +1 -0
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.header.styles.js +14 -0
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.header.styles.js.map +1 -0
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.js +16 -13
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.metrics.js +1 -1
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.overview.js +40 -0
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.overview.js.map +1 -0
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.parts.js +8 -15
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.styles.js +10 -2
- package/dist/_internal/components/feedback/SequenceResolver/sequence-model.js +7 -1
- package/dist/_internal/components/feedback/SequenceResolver/useSequenceRun.js +2 -2
- package/dist/_internal/components/feedback/Sonner/Sonner.js +2 -2
- package/dist/_internal/components/feedback/StackedModal/StackedModal.js +4 -4
- package/dist/_internal/components/feedback/StackedModal/StackedModal.parts.js +2 -2
- package/dist/_internal/components/feedback/Toast/Toast.js +2 -2
- package/dist/_internal/components/feedback/TutorialOverlay/TutorialOverlay.js +2 -2
- package/dist/_internal/components/feedback/index.js +49 -46
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +5 -5
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +3 -3
- package/dist/_internal/components/form/AddressAutocomplete/AddressSuggestionsPaper.js +1 -1
- package/dist/_internal/components/form/Autocomplete/Autocomplete.js +2 -2
- package/dist/_internal/components/form/Button/Button.js +2 -2
- package/dist/_internal/components/form/Calendar/Calendar.band.js +18 -0
- package/dist/_internal/components/form/Calendar/Calendar.band.js.map +1 -0
- package/dist/_internal/components/form/Calendar/Calendar.js +10 -8
- package/dist/_internal/components/form/Calendar/CalendarDay.js +4 -1
- package/dist/_internal/components/form/Calendar/CalendarDayCell.js +4 -2
- package/dist/_internal/components/form/Calendar/CalendarMonth.js +5 -3
- package/dist/_internal/components/form/Calendar/CalendarSelectorsMonth.js +8 -6
- package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +5 -5
- package/dist/_internal/components/form/CategorySelect/CategoryPanelList.js +3 -3
- package/dist/_internal/components/form/CategorySelect/CategoryRows.js +2 -2
- package/dist/_internal/components/form/CategorySelect/CategorySelect.js +9 -9
- package/dist/_internal/components/form/Command/Command.hooks.js +2 -2
- package/dist/_internal/components/form/Command/Command.js +6 -6
- package/dist/_internal/components/form/Command/Command.parts.js +2 -2
- package/dist/_internal/components/form/Command/Command.styles.js +1 -1
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.hooks.js +3 -3
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +15 -14
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.range.js +2 -2
- package/dist/_internal/components/form/DateRangePicker/DateRangePickerFields.js +3 -3
- package/dist/_internal/components/form/Label/Label.js +1 -1
- package/dist/_internal/components/form/Label/Label.styles.js +1 -1
- package/dist/_internal/components/form/Menubar/Menubar.item.js +1 -1
- package/dist/_internal/components/form/Menubar/Menubar.js +5 -5
- package/dist/_internal/components/form/Menubar/Menubar.styles.js +1 -1
- package/dist/_internal/components/form/Menubar/Menubar.toolbar.js +3 -3
- package/dist/_internal/components/form/PickerSheet/PickerSheet.js +4 -4
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.dom.js +2 -2
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.format.js +3 -3
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.hooks.js +4 -4
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.js +5 -5
- package/dist/_internal/components/form/Switch/Switch.js +4 -4
- package/dist/_internal/components/form/Switch/Switch.parts.js +3 -3
- package/dist/_internal/components/form/Switch/Switch.styles.js +2 -2
- package/dist/_internal/components/form/index.js +89 -88
- package/dist/_internal/components/form/total-form/Fields/CategoryField.js +10 -10
- package/dist/_internal/components/form/total-form/Fields/index.js +17 -17
- package/dist/_internal/components/form/total-form/FormErrorSnackbar.js +3 -3
- package/dist/_internal/components/form/total-form/SubmitButton.js +3 -3
- package/dist/_internal/components/index.js +372 -339
- package/dist/_internal/components/layout/Box/Box.js +1 -1
- package/dist/_internal/components/layout/Card/Card.js +2 -2
- package/dist/_internal/components/layout/ContentToolbar/ColumnsMenu.js +2 -2
- package/dist/_internal/components/layout/ContentToolbar/FilterTrigger.js +3 -3
- package/dist/_internal/components/layout/ContentToolbar/MultiSelectDropdown.js +2 -2
- package/dist/_internal/components/layout/ContentToolbar/ViewSelector.js +2 -2
- package/dist/_internal/components/layout/Dashboard/Dashboard.js +2 -2
- package/dist/_internal/components/layout/Drawer/Drawer.js +2 -2
- package/dist/_internal/components/layout/Screen/Screen.js +1 -1
- package/dist/_internal/components/layout/ScrollArea/ScrollArea.js +3 -3
- package/dist/_internal/components/layout/SettingCard/SettingCard.js +6 -6
- package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js +4 -4
- package/dist/_internal/components/layout/SettingCard/SettingCard.summary.js +5 -5
- package/dist/_internal/components/layout/SettingCard/SettingGrid.js +5 -5
- package/dist/_internal/components/layout/SettingCard/SettingGroup.js +12 -12
- package/dist/_internal/components/layout/SettingCard/SettingSwitch.js +11 -11
- package/dist/_internal/components/layout/SettingCard/SettingToggle.js +12 -12
- package/dist/_internal/components/layout/SettingsLayout/SettingsLayout.js +7 -7
- package/dist/_internal/components/layout/SettingsLayout/SettingsPanel.js +4 -4
- package/dist/_internal/components/layout/SettingsLayout/SettingsSectionChips.js +2 -2
- package/dist/_internal/components/layout/Skeleton/Skeleton.js +2 -2
- package/dist/_internal/components/layout/Stack/Stack.js +1 -1
- package/dist/_internal/components/layout/TableFilter/TableFilter.js +2 -2
- package/dist/_internal/components/layout/index.js +65 -65
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +11 -11
- package/dist/_internal/components/navigation/AppHeader/AppHeader.identity.js +3 -3
- package/dist/_internal/components/navigation/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.helpers.js +2 -2
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.hooks.js +3 -3
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.js +5 -5
- package/dist/_internal/components/navigation/CommandPalette/CommandPaletteResults.js +2 -2
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMegaSection.js +3 -3
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenu.js +6 -6
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenuItem.js +2 -2
- package/dist/_internal/components/navigation/NavigationMenu/NavigationStandardBody.js +4 -4
- package/dist/_internal/components/navigation/Pagination/Pagination.js +2 -2
- package/dist/_internal/components/navigation/SectionNav/SectionNav.bar.js +5 -5
- package/dist/_internal/components/navigation/SectionNav/SectionNav.js +6 -6
- package/dist/_internal/components/navigation/SectionNav/SectionNav.parts.js +1 -1
- package/dist/_internal/components/navigation/SectionNav/SectionNav.primary.js +1 -1
- package/dist/_internal/components/navigation/SectionNav/SectionNav.rail.js +1 -1
- package/dist/_internal/components/navigation/SectionNav/SectionNav.railCreate.js +1 -1
- package/dist/_internal/components/navigation/SectionNav/SectionNav.sheet.js +4 -4
- package/dist/_internal/components/navigation/SectionNav/__stories__/fixtures.js +1 -1
- package/dist/_internal/components/navigation/index.js +43 -43
- package/dist/_internal/components/typography/Code/Code.js +2 -2
- package/dist/_internal/components/typography/index.js +6 -6
- package/dist/_internal/components/utility/AnimatedIcon/AnimatedIcon.js +2 -2
- package/dist/_internal/components/utility/InfiniteScroll/InfiniteScroll.js +3 -3
- package/dist/_internal/components/utility/InfiniteScroll/InfiniteScroll.parts.js +2 -2
- package/dist/_internal/components/utility/InstallPrompt/InstallPrompt.js +2 -2
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStep.helpers.js +3 -3
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStep.js +6 -6
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStep.parts.js +4 -4
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStepRow.js +5 -5
- package/dist/_internal/components/utility/index.js +23 -23
- package/dist/_internal/en-US.labels.js +1 -1
- package/dist/_internal/en-US.navigation.js +1 -1
- package/dist/_internal/icons/Icon.js +1 -1
- package/dist/_internal/provider/UiProvider.js +1 -1
- package/dist/_internal/provider/mui-bridge.js +1 -1
- package/dist/_internal/provider/use-ui-theme.js +1 -1
- package/dist/_internal/pt-BR.labels.js +1 -1
- package/dist/_internal/pt-BR.navigation.js +1 -1
- package/dist/_internal/social-login-button/social-login-button.js +6 -6
- package/dist/_internal/user-avatar/user-avatar.js +9 -9
- package/dist/charts.js +18 -18
- package/dist/{chunk-DYRZRY2T.js → chunk-2CRNOJGL.js} +7 -7
- package/dist/{chunk-L5KPBMMF.js → chunk-2ENMRK3U.js} +2 -2
- package/dist/{chunk-FZEDQNUN.js → chunk-2KBATUOZ.js} +4 -4
- package/dist/{chunk-33AVAYCR.js → chunk-2L6TANRY.js} +5 -5
- package/dist/{chunk-ENJOBJPK.js → chunk-2MT6VSS2.js} +2 -2
- package/dist/{chunk-VKTF3GAP.js → chunk-2MYSXWZQ.js} +9 -9
- package/dist/{chunk-CHP3QIS3.js → chunk-2ORD2FMN.js} +37 -3
- package/dist/{chunk-CHP3QIS3.js.map → chunk-2ORD2FMN.js.map} +1 -1
- package/dist/{chunk-7QKFMMWK.js → chunk-2Q2DUGH7.js} +2 -2
- package/dist/chunk-2SRWPNQ7.js +60 -0
- package/dist/chunk-2SRWPNQ7.js.map +1 -0
- package/dist/{chunk-VQ6V5TO7.js → chunk-2UNZG4JK.js} +3 -3
- package/dist/chunk-35HMJQLO.js +26 -0
- package/dist/chunk-35HMJQLO.js.map +1 -0
- package/dist/{chunk-Q7XLTN2D.js → chunk-3B4NXP4N.js} +4 -4
- package/dist/{chunk-UT545JBQ.js → chunk-3EIRRLCQ.js} +2 -2
- package/dist/{chunk-MSJP2AEN.js → chunk-3EKY63LD.js} +2 -2
- package/dist/{chunk-B32554CQ.js → chunk-3KMP2F4R.js} +18 -18
- package/dist/chunk-3R6BR22L.js +72 -0
- package/dist/chunk-3R6BR22L.js.map +1 -0
- package/dist/{chunk-D3W5A4N6.js → chunk-3STNOYYO.js} +3 -3
- package/dist/{chunk-TVDHA7BT.js → chunk-3Y6NO5XL.js} +8 -8
- package/dist/{chunk-ABQZFK7M.js → chunk-44PBCQ7E.js} +6 -6
- package/dist/chunk-4HK4FVMV.js +106 -0
- package/dist/chunk-4HK4FVMV.js.map +1 -0
- package/dist/{chunk-VYQZ5U3N.js → chunk-4NG3LTRX.js} +2 -2
- package/dist/{chunk-PGHSNG33.js → chunk-4PZZJ2AE.js} +5 -5
- package/dist/{chunk-TRAMTVIO.js → chunk-4QTPERAY.js} +2 -2
- package/dist/{chunk-W2RXXF7K.js → chunk-4XBAEKQQ.js} +4 -4
- package/dist/{chunk-KR4TN3OF.js → chunk-4ZQQUICR.js} +2 -2
- package/dist/{chunk-XCUHGPPZ.js → chunk-55PFFAAY.js} +2 -2
- package/dist/{chunk-LYVTJLCF.js → chunk-56JF5PZK.js} +4 -4
- package/dist/{chunk-XOXXG7Q5.js → chunk-57FIUJJJ.js} +18 -1
- package/dist/chunk-57FIUJJJ.js.map +1 -0
- package/dist/{chunk-IYDXKLCE.js → chunk-5BVAUUWL.js} +5 -5
- package/dist/{chunk-6OISIUZM.js → chunk-5F7HYYGM.js} +2 -2
- package/dist/{chunk-TMUGBHHG.js → chunk-5QUH53HV.js} +6 -6
- package/dist/{chunk-DAFFZED3.js → chunk-5YVMFK7Y.js} +2 -2
- package/dist/{chunk-TI4FGQYV.js → chunk-62PTREG5.js} +2 -2
- package/dist/{chunk-3DPPDGOF.js → chunk-62SXUU5U.js} +5 -5
- package/dist/{chunk-BP3ZKIPE.js → chunk-64UNVW6D.js} +4 -4
- package/dist/{chunk-SSCEX5NY.js → chunk-656DBMWT.js} +3 -2
- package/dist/{chunk-SSCEX5NY.js.map → chunk-656DBMWT.js.map} +1 -1
- package/dist/{chunk-QADTI63U.js → chunk-6ATXOJVQ.js} +4 -4
- package/dist/{chunk-7W5X3KQ2.js → chunk-6BQ3YKLD.js} +2 -2
- package/dist/chunk-6D5AMANO.js +50 -0
- package/dist/chunk-6D5AMANO.js.map +1 -0
- package/dist/{chunk-VPH3TENY.js → chunk-6DGNMASB.js} +2 -2
- package/dist/chunk-6HZYRKOB.js +94 -0
- package/dist/chunk-6HZYRKOB.js.map +1 -0
- package/dist/{chunk-NOF2FF4K.js → chunk-7CPLKAL6.js} +4 -4
- package/dist/{chunk-ABRVOPC2.js → chunk-7FFY4LJY.js} +2 -2
- package/dist/{chunk-DVX4HDNP.js → chunk-7IBFGOLF.js} +3 -3
- package/dist/chunk-7RXL4ONS.js +1 -0
- package/dist/chunk-7RXL4ONS.js.map +1 -0
- package/dist/{chunk-EOQ6EKTS.js → chunk-7XSCEHGA.js} +7 -7
- package/dist/{chunk-QCYQL3ST.js → chunk-7XUQJJPK.js} +2 -2
- package/dist/chunk-7ZQ3KQ7J.js +49 -0
- package/dist/chunk-7ZQ3KQ7J.js.map +1 -0
- package/dist/{chunk-7VUXSNVZ.js → chunk-A4B27HYU.js} +2 -2
- package/dist/chunk-AC7K7IJE.js +28 -0
- package/dist/chunk-AC7K7IJE.js.map +1 -0
- package/dist/{chunk-EOIRU62W.js → chunk-AD6GRJFV.js} +3 -3
- package/dist/{chunk-CAOL4AIB.js → chunk-AEAVVKGY.js} +2 -2
- package/dist/{chunk-HHPFWEJY.js → chunk-ALDS5ISD.js} +14 -2
- package/dist/chunk-ALDS5ISD.js.map +1 -0
- package/dist/{chunk-HI7JPDD6.js → chunk-AMLHEKSV.js} +5 -5
- package/dist/{chunk-UTUYXH72.js → chunk-AN37BIIO.js} +9 -9
- package/dist/{chunk-ABVIMFSD.js → chunk-AWUB3T7C.js} +2 -2
- package/dist/{chunk-ALOEOGQV.js → chunk-AXGQB24R.js} +2 -2
- package/dist/chunk-B3SL5FP2.js +94 -0
- package/dist/chunk-B3SL5FP2.js.map +1 -0
- package/dist/{chunk-ZO2GZRZS.js → chunk-B5SBDLRS.js} +3 -3
- package/dist/{chunk-CARUHKZW.js → chunk-B7GGLFJB.js} +8 -8
- package/dist/{chunk-C347NNZJ.js → chunk-B7ZAEZJW.js} +2 -2
- package/dist/chunk-BK3YLYL6.js +62 -0
- package/dist/chunk-BK3YLYL6.js.map +1 -0
- package/dist/{chunk-WXZCNHBX.js → chunk-BQBEN44R.js} +19 -65
- package/dist/chunk-BQBEN44R.js.map +1 -0
- package/dist/{chunk-GANJRIT3.js → chunk-C3MXURP3.js} +2 -2
- package/dist/{chunk-7YJYIMWP.js → chunk-CTN4BRAH.js} +3 -3
- package/dist/{chunk-ZANWHTXH.js → chunk-CVB26LLB.js} +2 -2
- package/dist/{chunk-PGYYDSNX.js → chunk-CW5Z67NA.js} +2 -2
- package/dist/{chunk-CY4XIZNW.js → chunk-D3B4V44W.js} +2 -2
- package/dist/{chunk-U2DRE36S.js → chunk-D3SIZ2CX.js} +9 -9
- package/dist/chunk-D6JKCCRQ.js +120 -0
- package/dist/chunk-D6JKCCRQ.js.map +1 -0
- package/dist/chunk-DJNKSDQH.js +1 -0
- package/dist/chunk-DJNKSDQH.js.map +1 -0
- package/dist/{chunk-YGLAGY74.js → chunk-DM57YWZH.js} +2 -2
- package/dist/{chunk-NASLJO2R.js → chunk-DRJGHTQU.js} +2 -2
- package/dist/{chunk-BLZDSCIZ.js → chunk-DYHOBKPU.js} +6 -6
- package/dist/{chunk-FCLON3MO.js → chunk-EE6DJPB7.js} +6 -6
- package/dist/chunk-EEK2NK4W.js +281 -0
- package/dist/chunk-EEK2NK4W.js.map +1 -0
- package/dist/{chunk-ANUO67JQ.js → chunk-EIMFA7KP.js} +2 -2
- package/dist/{chunk-C5RQBTRZ.js → chunk-EIOGJBJ5.js} +25 -5
- package/dist/chunk-EIOGJBJ5.js.map +1 -0
- package/dist/{chunk-AKE6KVQG.js → chunk-EVIQUBC6.js} +4 -4
- package/dist/{chunk-A5CKUJP2.js → chunk-EXKEPOL7.js} +7 -7
- package/dist/{chunk-ULAZDF6D.js → chunk-FF22F7FA.js} +2 -2
- package/dist/{chunk-LIN4A2BW.js → chunk-FKS2PNJF.js} +9 -9
- package/dist/{chunk-ZYZPSBNQ.js → chunk-G3G5W4OF.js} +3 -3
- package/dist/{chunk-N5OEDOJT.js → chunk-GBB23QLL.js} +3 -3
- package/dist/{chunk-KTXJQ4YJ.js → chunk-GBVNY2LG.js} +6 -6
- package/dist/{chunk-MW7P2C2C.js → chunk-GCR6VE5S.js} +2 -2
- package/dist/{chunk-KYTFGW4R.js → chunk-GMIMHQ6H.js} +2 -2
- package/dist/chunk-GONPUJIE.js +92 -0
- package/dist/chunk-GONPUJIE.js.map +1 -0
- package/dist/{chunk-KRPDBVUB.js → chunk-GS3QDXDP.js} +4 -4
- package/dist/chunk-H2UUMZQR.js +74 -0
- package/dist/chunk-H2UUMZQR.js.map +1 -0
- package/dist/{chunk-WNNA6YYE.js → chunk-H5R2EZYI.js} +4 -4
- package/dist/{chunk-JZQYVGPV.js → chunk-HED2CZDZ.js} +4 -4
- package/dist/{chunk-JVOEVTCZ.js → chunk-HQCZT6TO.js} +5 -5
- package/dist/{chunk-67ADHGA2.js → chunk-HWJ3FLZY.js} +6 -6
- package/dist/{chunk-Z445LLFN.js → chunk-I44XL4Z4.js} +7 -6
- package/dist/chunk-I44XL4Z4.js.map +1 -0
- package/dist/{chunk-LXIPBHNJ.js → chunk-I5SIHPOG.js} +2 -2
- package/dist/{chunk-NCI74EOS.js → chunk-I62SKY4E.js} +7 -7
- package/dist/{chunk-GOQOVKUZ.js → chunk-I6CP3ZTP.js} +3 -3
- package/dist/chunk-I7CVC2DW.js +229 -0
- package/dist/chunk-I7CVC2DW.js.map +1 -0
- package/dist/{chunk-OKRITX4S.js → chunk-ICHM2LQA.js} +8 -8
- package/dist/{chunk-4LUWZ6UE.js → chunk-IMMPY4Q7.js} +4 -4
- package/dist/{chunk-FZUAB2KS.js → chunk-INFBO356.js} +2 -2
- package/dist/chunk-IP424VZD.js +208 -0
- package/dist/chunk-IP424VZD.js.map +1 -0
- package/dist/{chunk-EXVCVXFX.js → chunk-IQ5MBELJ.js} +7 -7
- package/dist/{chunk-FRUDRDJX.js → chunk-IZ7JTG3Z.js} +4 -4
- package/dist/{chunk-5ZOJLYD2.js → chunk-JE6RZ5L6.js} +4 -4
- package/dist/{chunk-KF3Q3C3P.js → chunk-JJFLCEJJ.js} +2 -2
- package/dist/chunk-JO6D7YGN.js +111 -0
- package/dist/chunk-JO6D7YGN.js.map +1 -0
- package/dist/{chunk-XW44IFYE.js → chunk-K2VDRODL.js} +2 -2
- package/dist/{chunk-CFDWKQZT.js → chunk-KILA7LCC.js} +4 -4
- package/dist/{chunk-IMYKJTVX.js → chunk-KLLHCPA2.js} +2 -2
- package/dist/{chunk-5UBP2DJ4.js → chunk-KZ5F52D6.js} +39 -5
- package/dist/chunk-KZ5F52D6.js.map +1 -0
- package/dist/{chunk-FORQEHRQ.js → chunk-L5GZZUTY.js} +2 -2
- package/dist/{chunk-N557OEZR.js → chunk-L62HC3UB.js} +2 -2
- package/dist/chunk-LE5JYNR7.js +58 -0
- package/dist/chunk-LE5JYNR7.js.map +1 -0
- package/dist/{chunk-OPY2AGAU.js → chunk-LR56OANO.js} +6 -6
- package/dist/{chunk-V6KQ5R4T.js → chunk-LSGZLFKX.js} +6 -6
- package/dist/{chunk-QJLOWBFW.js → chunk-LXTNWQWF.js} +2 -2
- package/dist/{chunk-W5WYTVLS.js → chunk-LY5I3ZSV.js} +4 -4
- package/dist/{chunk-T77OVQEO.js → chunk-LZKS3NER.js} +2 -2
- package/dist/{chunk-ZAPP32GD.js → chunk-M7HYNXCU.js} +2 -2
- package/dist/{chunk-FQMLTCXT.js → chunk-MAHY7PK3.js} +4 -4
- package/dist/chunk-MAYAJXO6.js +104 -0
- package/dist/chunk-MAYAJXO6.js.map +1 -0
- package/dist/{chunk-D34PZJH3.js → chunk-MBMZNSBP.js} +2 -2
- package/dist/{chunk-HUXAIQC5.js → chunk-MJDSXQV7.js} +2 -2
- package/dist/{chunk-NTRWUDP6.js → chunk-MKVDHR3B.js} +2 -2
- package/dist/{chunk-PEVBSNCD.js → chunk-MLAIXRVL.js} +2 -2
- package/dist/chunk-MQVYJVKV.js +32 -0
- package/dist/chunk-MQVYJVKV.js.map +1 -0
- package/dist/{chunk-5U7LBO2V.js → chunk-MUHRPJQT.js} +4 -4
- package/dist/{chunk-COK65GX2.js → chunk-N2KHISGH.js} +2 -2
- package/dist/{chunk-UQ5GJPVZ.js → chunk-N3C4J6Z2.js} +3 -3
- package/dist/{chunk-P4Q7JK4L.js → chunk-NQ6P7O7C.js} +2 -2
- package/dist/{chunk-QVDEGBME.js → chunk-NQCTANF3.js} +7 -7
- package/dist/{chunk-I2LMLQGQ.js → chunk-NQUYBJKJ.js} +2 -2
- package/dist/{chunk-LOHQLARB.js → chunk-NTCWIMIU.js} +4 -4
- package/dist/{chunk-Q4GAPZDA.js → chunk-O2MR6U7Q.js} +5 -5
- package/dist/{chunk-2FQF4CNE.js → chunk-OPP6USJC.js} +2 -2
- package/dist/{chunk-GLR5MSU3.js → chunk-OY437NRJ.js} +2 -2
- package/dist/{chunk-CJUK32UH.js → chunk-OZYUE2BI.js} +4 -4
- package/dist/{chunk-HNEZWVDR.js → chunk-P5C4DTO4.js} +3 -3
- package/dist/{chunk-6EZQLNPK.js → chunk-PGJIWCQR.js} +4 -4
- package/dist/{chunk-TJUWSQYQ.js → chunk-PSIUFPXA.js} +18 -1
- package/dist/{chunk-TJUWSQYQ.js.map → chunk-PSIUFPXA.js.map} +1 -1
- package/dist/{chunk-3LUT2C5M.js → chunk-QMRR35W2.js} +19 -11
- package/dist/chunk-QMRR35W2.js.map +1 -0
- package/dist/chunk-QQFFE3CQ.js +90 -0
- package/dist/chunk-QQFFE3CQ.js.map +1 -0
- package/dist/{chunk-6PTP5NID.js → chunk-R2ODLE6G.js} +2 -2
- package/dist/{chunk-PJNIJIE6.js → chunk-RCTHCXS6.js} +2 -2
- package/dist/{chunk-YBAK2WN5.js → chunk-RFMQBIE6.js} +4 -4
- package/dist/{chunk-EYFDIUVR.js → chunk-RZTUMBRD.js} +2 -2
- package/dist/{chunk-SGFRSRAL.js → chunk-S5VIN3EB.js} +4 -4
- package/dist/{chunk-TIM4PXWN.js → chunk-SB2SEGR6.js} +3 -3
- package/dist/{chunk-5CP6VW5H.js → chunk-SFNVAM7I.js} +6 -6
- package/dist/{chunk-MVNFUIJS.js → chunk-SKIAWOUC.js} +4 -4
- package/dist/{chunk-KES3HNSU.js → chunk-T7NEXLW6.js} +2 -2
- package/dist/{chunk-EWFBDAB7.js → chunk-TOLCZ4XT.js} +2 -2
- package/dist/{chunk-HBH7V3IP.js → chunk-TOOEEQ46.js} +2 -2
- package/dist/{chunk-L7HNQRFS.js → chunk-TSID4257.js} +8 -8
- package/dist/chunk-TTRWOI6Z.js +1 -0
- package/dist/chunk-TTRWOI6Z.js.map +1 -0
- package/dist/{chunk-5CP5Z3YU.js → chunk-TYGVNTUP.js} +2 -2
- package/dist/{chunk-ZVZTQF7E.js → chunk-UBMH5MED.js} +9 -9
- package/dist/chunk-UIHPFELH.js +228 -0
- package/dist/chunk-UIHPFELH.js.map +1 -0
- package/dist/{chunk-WTOA52EQ.js → chunk-UKNMPGEM.js} +2 -2
- package/dist/{chunk-UXOFA3ZP.js → chunk-UNCDOLF5.js} +7 -7
- package/dist/{chunk-UYKIUUWP.js → chunk-V2QTL6VI.js} +2 -2
- package/dist/{chunk-6GICMRDX.js → chunk-VMTOLAZ5.js} +5 -5
- package/dist/{chunk-4QGMUHAU.js → chunk-VQ7YNAK2.js} +2 -2
- package/dist/{chunk-P772HCHI.js → chunk-W676GY42.js} +4 -4
- package/dist/chunk-WCETCAZO.js +140 -0
- package/dist/chunk-WCETCAZO.js.map +1 -0
- package/dist/{chunk-B32XH7NK.js → chunk-WHOD6LVN.js} +3 -3
- package/dist/{chunk-52RHAAIH.js → chunk-WLC56R2I.js} +7 -7
- package/dist/{chunk-T2G4LDU5.js → chunk-WLLUARTC.js} +2 -2
- package/dist/{chunk-X4J576GR.js → chunk-WTACWJSF.js} +2 -2
- package/dist/{chunk-5S5K73I6.js → chunk-WUBMJSBR.js} +2 -2
- package/dist/{chunk-MK6UXAWY.js → chunk-X2GWR75Q.js} +2 -2
- package/dist/{chunk-2VRJ577J.js → chunk-X3EB67O2.js} +4 -4
- package/dist/{chunk-HKGKQKQT.js → chunk-X5OGIT2F.js} +52 -20
- package/dist/chunk-X5OGIT2F.js.map +1 -0
- package/dist/{chunk-56GWNA5V.js → chunk-X6D5JEUV.js} +12 -5
- package/dist/chunk-X6D5JEUV.js.map +1 -0
- package/dist/{chunk-KRYOT3KB.js → chunk-XALFZ25A.js} +4 -4
- package/dist/{chunk-BNBWUXT3.js → chunk-XEKJ7L7I.js} +2 -2
- package/dist/{chunk-D72GD4XC.js → chunk-XHIBFBNP.js} +8 -4
- package/dist/chunk-XHIBFBNP.js.map +1 -0
- package/dist/{chunk-QAH3XILB.js → chunk-XNIHDUOP.js} +3 -3
- package/dist/{chunk-65KJLPF5.js → chunk-XRVXQJNB.js} +3 -3
- package/dist/{chunk-K6WY2CHG.js → chunk-XZFTRGRW.js} +2 -2
- package/dist/{chunk-LLPPIO3K.js → chunk-Y4ZWPOUV.js} +2 -2
- package/dist/{chunk-OQN2FHEL.js → chunk-Y6IIWGZB.js} +3 -3
- package/dist/{chunk-WMAS6DZR.js → chunk-YAQE7QVC.js} +4 -4
- package/dist/{chunk-POUNFTG3.js → chunk-YDIC6LSP.js} +9 -3
- package/dist/chunk-YDIC6LSP.js.map +1 -0
- package/dist/chunk-YE44HUFF.js +72 -0
- package/dist/chunk-YE44HUFF.js.map +1 -0
- package/dist/{chunk-PVIQDBUN.js → chunk-YFG6XXBB.js} +2 -2
- package/dist/{chunk-UBVKMM3V.js → chunk-YGQ2DLIM.js} +2 -2
- package/dist/{chunk-XQJPR57I.js → chunk-YKONJEI4.js} +3 -3
- package/dist/{chunk-COKPPU42.js → chunk-YLZXIR6B.js} +11 -11
- package/dist/chunk-YMYJO2CZ.js +32 -0
- package/dist/chunk-YMYJO2CZ.js.map +1 -0
- package/dist/{chunk-V4CWJ7Q6.js → chunk-YNZUYZ2O.js} +3 -3
- package/dist/{chunk-HJJR2WGL.js → chunk-YOXYSAUI.js} +4 -4
- package/dist/chunk-YSUJCKEE.js +341 -0
- package/dist/chunk-YSUJCKEE.js.map +1 -0
- package/dist/{chunk-CPZGFIFH.js → chunk-YWBPASB2.js} +3 -3
- package/dist/{chunk-2DDCRHJE.js → chunk-Z7CBLQQR.js} +4 -4
- package/dist/{chunk-H7CZRKN7.js → chunk-ZCNR4DN5.js} +6 -6
- package/dist/{chunk-4V37DAMA.js → chunk-ZDAAHCIS.js} +6 -6
- package/dist/{chunk-2SBQ47RI.js → chunk-ZF2LZVDO.js} +7 -7
- package/dist/{chunk-G76PIGF7.js → chunk-ZHQAVW2V.js} +3 -2
- package/dist/chunk-ZHQAVW2V.js.map +1 -0
- package/dist/{chunk-4IG73U2X.js → chunk-ZIA774ZW.js} +2 -2
- package/dist/{chunk-E5OBAS3U.js → chunk-ZLIES3XR.js} +2 -2
- package/dist/data-display/Alert.js +3 -3
- package/dist/data-display/AlertDialog.js +3 -3
- package/dist/data-display/AsyncStateContainer.js +8 -8
- package/dist/data-display/Avatar.js +4 -4
- package/dist/data-display/Badge.js +1 -1
- package/dist/data-display/CardKit.js +21 -21
- package/dist/data-display/Carousel.js +5 -5
- package/dist/data-display/Chart.js +18 -18
- package/dist/data-display/DataGrid.js +2 -2
- package/dist/data-display/DataViews.js +92 -92
- package/dist/data-display/DayRuler.js +33 -0
- package/dist/data-display/DayRuler.js.map +1 -0
- package/dist/data-display/EmptyState.js +2 -2
- package/dist/data-display/ErrorState.js +2 -2
- package/dist/data-display/FleetMap.js +21 -21
- package/dist/data-display/HoverCard.js +3 -3
- package/dist/data-display/LazyImage.js +4 -4
- package/dist/data-display/Lightbox.js +7 -7
- package/dist/data-display/LoadingState.js +5 -5
- package/dist/data-display/MapPreview.js +8 -8
- package/dist/data-display/RegionMap.js +6 -6
- package/dist/data-display/ScheduleGrid.js +30 -0
- package/dist/data-display/ScheduleGrid.js.map +1 -0
- package/dist/data-display/SectionOnboarding.js +4 -4
- package/dist/data-display/Sheet.js +7 -7
- package/dist/data-display/StatCard.js +3 -3
- package/dist/data-display/Stepper.js +2 -2
- package/dist/data-display/Table.js +4 -4
- package/dist/data-display/Timeline.js +2 -2
- package/dist/en-US.js +2 -2
- package/dist/feedback/ConfirmAction.js +11 -11
- package/dist/feedback/Dialog.js +2 -2
- package/dist/feedback/Modal.js +2 -2
- package/dist/feedback/NotificationStatusNotice.js +6 -6
- package/dist/feedback/SequenceResolver.js +16 -13
- package/dist/feedback/Sonner.js +2 -2
- package/dist/feedback/StackedModal.js +4 -4
- package/dist/feedback/Toast.js +2 -2
- package/dist/feedback/TutorialOverlay.js +2 -2
- package/dist/form/AddressAutocomplete.js +5 -5
- package/dist/form/Autocomplete.js +2 -2
- package/dist/form/Button.js +2 -2
- package/dist/form/Calendar.js +10 -8
- package/dist/form/CategorySelect.js +9 -9
- package/dist/form/Command.js +6 -6
- package/dist/form/DateRangePicker.js +15 -14
- package/dist/form/Label.js +1 -1
- package/dist/form/Menubar.js +5 -5
- package/dist/form/PickerSheet.js +4 -4
- package/dist/form/RichTextEditor.js +5 -5
- package/dist/form/Switch.js +4 -4
- package/dist/form/total-form.js +21 -21
- package/dist/icons.js +1 -1
- package/dist/layout/Box.js +1 -1
- package/dist/layout/Card.js +2 -2
- package/dist/layout/ContentToolbar.js +8 -8
- package/dist/layout/Dashboard.js +2 -2
- package/dist/layout/Drawer.js +2 -2
- package/dist/layout/Screen.js +1 -1
- package/dist/layout/ScrollArea.js +3 -3
- package/dist/layout/SettingCard.js +18 -18
- package/dist/layout/SettingsLayout.js +8 -8
- package/dist/layout/Skeleton.js +2 -2
- package/dist/layout/Stack.js +1 -1
- package/dist/layout/TableFilter.js +2 -2
- package/dist/locales.js +28 -28
- package/dist/native/chunks/{chunk-FXA5DLKR.js → chunk-4G634E3Q.js} +3 -3
- package/dist/native/chunks/{chunk-QHW7JEPZ.js → chunk-E5UA5XVN.js} +18 -1
- package/dist/native/chunks/chunk-E5UA5XVN.js.map +1 -0
- package/dist/native/chunks/{chunk-IN3XZ7EK.js → chunk-WLG3KT2V.js} +2 -2
- package/dist/native/data-display/Avatar.js +1 -1
- package/dist/native/data-display/Badge.js +1 -1
- package/dist/native/data-display/Chip.js +1 -1
- package/dist/native/data-display/EmptyState.js +3 -3
- package/dist/native/data-display/ErrorState.js +2 -2
- package/dist/native/data-display/FleetMap.js +3 -3
- package/dist/native/data-display/LoadingState.js +1 -1
- package/dist/native/feedback/Dialog.js +1 -1
- package/dist/native/form/Button.js +2 -2
- package/dist/native/form/Checkbox.js +1 -1
- package/dist/native/form/Input.js +1 -1
- package/dist/native/form/Switch.js +1 -1
- package/dist/navigation/AppHeader.js +15 -15
- package/dist/navigation/Breadcrumbs.js +2 -2
- package/dist/navigation/CommandPalette.js +5 -5
- package/dist/navigation/NavigationMenu.js +6 -6
- package/dist/navigation/Pagination.js +2 -2
- package/dist/navigation/SectionNav.js +6 -6
- package/dist/provider.js +1 -1
- package/dist/pt-BR.js +24 -24
- package/dist/social-login-button.js +6 -6
- package/dist/tokens.js +6 -6
- package/dist/types/components/data-display/DayRuler/DayRuler.d.ts +13 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.keyboard.d.ts +31 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.keyboard.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.metrics.d.ts +86 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.parts.d.ts +37 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.parts.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.styles.d.ts +45 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.styles.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.types.d.ts +105 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.types.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/day-ruler-model.d.ts +26 -0
- package/dist/types/components/data-display/DayRuler/day-ruler-model.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/index.d.ts +4 -0
- package/dist/types/components/data-display/DayRuler/index.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/useRulerDrag.d.ts +45 -0
- package/dist/types/components/data-display/DayRuler/useRulerDrag.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/useTextFits.d.ts +14 -0
- package/dist/types/components/data-display/DayRuler/useTextFits.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.d.ts +15 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.keyboard.d.ts +32 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.keyboard.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.metrics.d.ts +105 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.parts.d.ts +51 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.parts.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.styles.d.ts +75 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.styles.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.types.d.ts +136 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleGrid.types.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleNameCell.d.ts +33 -0
- package/dist/types/components/data-display/ScheduleGrid/ScheduleNameCell.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/drag-session.d.ts +47 -0
- package/dist/types/components/data-display/ScheduleGrid/drag-session.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/index.d.ts +4 -0
- package/dist/types/components/data-display/ScheduleGrid/index.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/schedule-grid-model.d.ts +18 -0
- package/dist/types/components/data-display/ScheduleGrid/schedule-grid-model.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/schedule-name.styles.d.ts +16 -0
- package/dist/types/components/data-display/ScheduleGrid/schedule-name.styles.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/schedule-tones.d.ts +32 -0
- package/dist/types/components/data-display/ScheduleGrid/schedule-tones.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/useAnnouncer.d.ts +13 -0
- package/dist/types/components/data-display/ScheduleGrid/useAnnouncer.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/useGridDrag.d.ts +56 -0
- package/dist/types/components/data-display/ScheduleGrid/useGridDrag.d.ts.map +1 -0
- package/dist/types/components/data-display/ScheduleGrid/useSidewaysScroll.d.ts +26 -0
- package/dist/types/components/data-display/ScheduleGrid/useSidewaysScroll.d.ts.map +1 -0
- package/dist/types/components/data-display/index.d.ts +2 -0
- package/dist/types/components/data-display/index.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.header.d.ts +33 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.header.d.ts.map +1 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.header.styles.d.ts +17 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.header.styles.d.ts.map +1 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.metrics.d.ts +12 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.metrics.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.overview.d.ts +22 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.overview.d.ts.map +1 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.parts.d.ts +6 -18
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.parts.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.styles.d.ts +17 -0
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.styles.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.types.d.ts +56 -1
- package/dist/types/components/feedback/SequenceResolver/SequenceResolver.types.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/index.d.ts +1 -1
- package/dist/types/components/feedback/SequenceResolver/index.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/sequence-model.d.ts +27 -3
- package/dist/types/components/feedback/SequenceResolver/sequence-model.d.ts.map +1 -1
- package/dist/types/components/feedback/SequenceResolver/useSequenceRun.d.ts +9 -0
- package/dist/types/components/feedback/SequenceResolver/useSequenceRun.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressAutocompleteField.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressSuggestionsPaper.d.ts +11 -1
- package/dist/types/components/form/AddressAutocomplete/AddressSuggestionsPaper.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/Calendar.band.d.ts +44 -0
- package/dist/types/components/form/Calendar/Calendar.band.d.ts.map +1 -0
- package/dist/types/components/form/Calendar/CalendarDay.d.ts +2 -0
- package/dist/types/components/form/Calendar/CalendarDay.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/CalendarDayCell.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/CalendarMonth.d.ts +3 -2
- package/dist/types/components/form/Calendar/CalendarMonth.d.ts.map +1 -1
- package/dist/types/components/navigation/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/types/copy/labels.d.ts +34 -0
- package/dist/types/copy/labels.d.ts.map +1 -1
- package/dist/types/copy/navigation.d.ts +2 -0
- package/dist/types/copy/navigation.d.ts.map +1 -1
- package/dist/types/en-US.labels.d.ts.map +1 -1
- package/dist/types/en-US.navigation.d.ts.map +1 -1
- package/dist/types/pt-BR.labels.d.ts.map +1 -1
- package/dist/types/pt-BR.navigation.d.ts.map +1 -1
- package/dist/types-native/copy/labels.d.ts +34 -0
- package/dist/types-native/copy/labels.d.ts.map +1 -1
- package/dist/types-native/en-US.labels.d.ts.map +1 -1
- package/dist/typography/Code.js +2 -2
- package/dist/user-avatar.js +9 -9
- package/dist/utility/AnimatedIcon.js +2 -2
- package/dist/utility/InfiniteScroll.js +3 -3
- package/dist/utility/InstallPrompt.js +2 -2
- package/dist/utility/WorkflowStep.js +6 -6
- package/package.json +9 -1
- package/src/components/data-display/DayRuler/DayRuler.keyboard.ts +94 -0
- package/src/components/data-display/DayRuler/DayRuler.md +84 -0
- package/src/components/data-display/DayRuler/DayRuler.metrics.ts +47 -0
- package/src/components/data-display/DayRuler/DayRuler.parts.tsx +272 -0
- package/src/components/data-display/DayRuler/DayRuler.styles.ts +288 -0
- package/src/components/data-display/DayRuler/DayRuler.tsx +130 -0
- package/src/components/data-display/DayRuler/DayRuler.types.ts +107 -0
- package/src/components/data-display/DayRuler/day-ruler-model.ts +83 -0
- package/src/components/data-display/DayRuler/index.ts +9 -0
- package/src/components/data-display/DayRuler/useRulerDrag.ts +167 -0
- package/src/components/data-display/DayRuler/useTextFits.ts +41 -0
- package/src/components/data-display/ScheduleGrid/ScheduleGrid.keyboard.ts +138 -0
- package/src/components/data-display/ScheduleGrid/ScheduleGrid.md +140 -0
- package/src/components/data-display/ScheduleGrid/ScheduleGrid.metrics.ts +75 -0
- package/src/components/data-display/ScheduleGrid/ScheduleGrid.parts.tsx +357 -0
- package/src/components/data-display/ScheduleGrid/ScheduleGrid.styles.ts +386 -0
- package/src/components/data-display/ScheduleGrid/ScheduleGrid.tsx +142 -0
- package/src/components/data-display/ScheduleGrid/ScheduleGrid.types.ts +144 -0
- package/src/components/data-display/ScheduleGrid/ScheduleNameCell.tsx +66 -0
- package/src/components/data-display/ScheduleGrid/drag-session.ts +120 -0
- package/src/components/data-display/ScheduleGrid/index.ts +12 -0
- package/src/components/data-display/ScheduleGrid/schedule-grid-model.ts +39 -0
- package/src/components/data-display/ScheduleGrid/schedule-name.styles.ts +96 -0
- package/src/components/data-display/ScheduleGrid/schedule-tones.ts +126 -0
- package/src/components/data-display/ScheduleGrid/useAnnouncer.ts +32 -0
- package/src/components/data-display/ScheduleGrid/useGridDrag.ts +137 -0
- package/src/components/data-display/ScheduleGrid/useSidewaysScroll.ts +126 -0
- package/src/components/data-display/index.ts +2 -0
- package/src/components/feedback/SequenceResolver/SequenceResolver.header.styles.ts +65 -0
- package/src/components/feedback/SequenceResolver/SequenceResolver.header.tsx +153 -0
- package/src/components/feedback/SequenceResolver/SequenceResolver.md +43 -2
- package/src/components/feedback/SequenceResolver/SequenceResolver.metrics.ts +12 -0
- package/src/components/feedback/SequenceResolver/SequenceResolver.overview.tsx +74 -0
- package/src/components/feedback/SequenceResolver/SequenceResolver.parts.tsx +37 -83
- package/src/components/feedback/SequenceResolver/SequenceResolver.styles.ts +47 -0
- package/src/components/feedback/SequenceResolver/SequenceResolver.tsx +152 -35
- package/src/components/feedback/SequenceResolver/SequenceResolver.types.ts +58 -1
- package/src/components/feedback/SequenceResolver/index.ts +2 -0
- package/src/components/feedback/SequenceResolver/sequence-model.ts +66 -5
- package/src/components/feedback/SequenceResolver/useSequenceRun.ts +28 -10
- package/src/components/form/AddressAutocomplete/AddressAutocompleteField.tsx +17 -4
- package/src/components/form/AddressAutocomplete/AddressSuggestionsPaper.tsx +32 -3
- package/src/components/form/Calendar/Calendar.band.ts +118 -0
- package/src/components/form/Calendar/CalendarDay.tsx +73 -23
- package/src/components/form/Calendar/CalendarDayCell.tsx +2 -0
- package/src/components/form/Calendar/CalendarMonth.tsx +14 -4
- package/src/components/navigation/CommandPalette/CommandPalette.md +1 -0
- package/src/components/navigation/CommandPalette/CommandPalette.tsx +4 -2
- package/src/copy/labels.ts +36 -0
- package/src/copy/navigation.ts +2 -0
- package/src/en-US.labels.ts +17 -0
- package/src/en-US.navigation.ts +1 -0
- package/src/pt-BR.labels.ts +17 -0
- package/src/pt-BR.navigation.ts +1 -0
- package/dist/chunk-3LUT2C5M.js.map +0 -1
- package/dist/chunk-56GWNA5V.js.map +0 -1
- package/dist/chunk-5UBP2DJ4.js.map +0 -1
- package/dist/chunk-ABRUOINB.js +0 -1
- package/dist/chunk-C5RQBTRZ.js.map +0 -1
- package/dist/chunk-D72GD4XC.js.map +0 -1
- package/dist/chunk-G76PIGF7.js.map +0 -1
- package/dist/chunk-HHPFWEJY.js.map +0 -1
- package/dist/chunk-HKGKQKQT.js.map +0 -1
- package/dist/chunk-POUNFTG3.js.map +0 -1
- package/dist/chunk-WXZCNHBX.js.map +0 -1
- package/dist/chunk-XOXXG7Q5.js.map +0 -1
- package/dist/chunk-Z445LLFN.js.map +0 -1
- package/dist/chunk-ZHYLOB7Q.js +0 -162
- package/dist/chunk-ZHYLOB7Q.js.map +0 -1
- package/dist/native/chunks/chunk-QHW7JEPZ.js.map +0 -1
- /package/dist/{chunk-ABRUOINB.js.map → _internal/components/data-display/DayRuler/DayRuler.js.map} +0 -0
- /package/dist/{chunk-DYRZRY2T.js.map → chunk-2CRNOJGL.js.map} +0 -0
- /package/dist/{chunk-L5KPBMMF.js.map → chunk-2ENMRK3U.js.map} +0 -0
- /package/dist/{chunk-FZEDQNUN.js.map → chunk-2KBATUOZ.js.map} +0 -0
- /package/dist/{chunk-33AVAYCR.js.map → chunk-2L6TANRY.js.map} +0 -0
- /package/dist/{chunk-ENJOBJPK.js.map → chunk-2MT6VSS2.js.map} +0 -0
- /package/dist/{chunk-VKTF3GAP.js.map → chunk-2MYSXWZQ.js.map} +0 -0
- /package/dist/{chunk-7QKFMMWK.js.map → chunk-2Q2DUGH7.js.map} +0 -0
- /package/dist/{chunk-VQ6V5TO7.js.map → chunk-2UNZG4JK.js.map} +0 -0
- /package/dist/{chunk-Q7XLTN2D.js.map → chunk-3B4NXP4N.js.map} +0 -0
- /package/dist/{chunk-UT545JBQ.js.map → chunk-3EIRRLCQ.js.map} +0 -0
- /package/dist/{chunk-MSJP2AEN.js.map → chunk-3EKY63LD.js.map} +0 -0
- /package/dist/{chunk-B32554CQ.js.map → chunk-3KMP2F4R.js.map} +0 -0
- /package/dist/{chunk-D3W5A4N6.js.map → chunk-3STNOYYO.js.map} +0 -0
- /package/dist/{chunk-TVDHA7BT.js.map → chunk-3Y6NO5XL.js.map} +0 -0
- /package/dist/{chunk-ABQZFK7M.js.map → chunk-44PBCQ7E.js.map} +0 -0
- /package/dist/{chunk-VYQZ5U3N.js.map → chunk-4NG3LTRX.js.map} +0 -0
- /package/dist/{chunk-PGHSNG33.js.map → chunk-4PZZJ2AE.js.map} +0 -0
- /package/dist/{chunk-TRAMTVIO.js.map → chunk-4QTPERAY.js.map} +0 -0
- /package/dist/{chunk-W2RXXF7K.js.map → chunk-4XBAEKQQ.js.map} +0 -0
- /package/dist/{chunk-KR4TN3OF.js.map → chunk-4ZQQUICR.js.map} +0 -0
- /package/dist/{chunk-XCUHGPPZ.js.map → chunk-55PFFAAY.js.map} +0 -0
- /package/dist/{chunk-LYVTJLCF.js.map → chunk-56JF5PZK.js.map} +0 -0
- /package/dist/{chunk-IYDXKLCE.js.map → chunk-5BVAUUWL.js.map} +0 -0
- /package/dist/{chunk-6OISIUZM.js.map → chunk-5F7HYYGM.js.map} +0 -0
- /package/dist/{chunk-TMUGBHHG.js.map → chunk-5QUH53HV.js.map} +0 -0
- /package/dist/{chunk-DAFFZED3.js.map → chunk-5YVMFK7Y.js.map} +0 -0
- /package/dist/{chunk-TI4FGQYV.js.map → chunk-62PTREG5.js.map} +0 -0
- /package/dist/{chunk-3DPPDGOF.js.map → chunk-62SXUU5U.js.map} +0 -0
- /package/dist/{chunk-BP3ZKIPE.js.map → chunk-64UNVW6D.js.map} +0 -0
- /package/dist/{chunk-QADTI63U.js.map → chunk-6ATXOJVQ.js.map} +0 -0
- /package/dist/{chunk-7W5X3KQ2.js.map → chunk-6BQ3YKLD.js.map} +0 -0
- /package/dist/{chunk-VPH3TENY.js.map → chunk-6DGNMASB.js.map} +0 -0
- /package/dist/{chunk-NOF2FF4K.js.map → chunk-7CPLKAL6.js.map} +0 -0
- /package/dist/{chunk-ABRVOPC2.js.map → chunk-7FFY4LJY.js.map} +0 -0
- /package/dist/{chunk-DVX4HDNP.js.map → chunk-7IBFGOLF.js.map} +0 -0
- /package/dist/{chunk-EOQ6EKTS.js.map → chunk-7XSCEHGA.js.map} +0 -0
- /package/dist/{chunk-QCYQL3ST.js.map → chunk-7XUQJJPK.js.map} +0 -0
- /package/dist/{chunk-7VUXSNVZ.js.map → chunk-A4B27HYU.js.map} +0 -0
- /package/dist/{chunk-EOIRU62W.js.map → chunk-AD6GRJFV.js.map} +0 -0
- /package/dist/{chunk-CAOL4AIB.js.map → chunk-AEAVVKGY.js.map} +0 -0
- /package/dist/{chunk-HI7JPDD6.js.map → chunk-AMLHEKSV.js.map} +0 -0
- /package/dist/{chunk-UTUYXH72.js.map → chunk-AN37BIIO.js.map} +0 -0
- /package/dist/{chunk-ABVIMFSD.js.map → chunk-AWUB3T7C.js.map} +0 -0
- /package/dist/{chunk-ALOEOGQV.js.map → chunk-AXGQB24R.js.map} +0 -0
- /package/dist/{chunk-ZO2GZRZS.js.map → chunk-B5SBDLRS.js.map} +0 -0
- /package/dist/{chunk-CARUHKZW.js.map → chunk-B7GGLFJB.js.map} +0 -0
- /package/dist/{chunk-C347NNZJ.js.map → chunk-B7ZAEZJW.js.map} +0 -0
- /package/dist/{chunk-GANJRIT3.js.map → chunk-C3MXURP3.js.map} +0 -0
- /package/dist/{chunk-7YJYIMWP.js.map → chunk-CTN4BRAH.js.map} +0 -0
- /package/dist/{chunk-ZANWHTXH.js.map → chunk-CVB26LLB.js.map} +0 -0
- /package/dist/{chunk-PGYYDSNX.js.map → chunk-CW5Z67NA.js.map} +0 -0
- /package/dist/{chunk-CY4XIZNW.js.map → chunk-D3B4V44W.js.map} +0 -0
- /package/dist/{chunk-U2DRE36S.js.map → chunk-D3SIZ2CX.js.map} +0 -0
- /package/dist/{chunk-YGLAGY74.js.map → chunk-DM57YWZH.js.map} +0 -0
- /package/dist/{chunk-NASLJO2R.js.map → chunk-DRJGHTQU.js.map} +0 -0
- /package/dist/{chunk-BLZDSCIZ.js.map → chunk-DYHOBKPU.js.map} +0 -0
- /package/dist/{chunk-FCLON3MO.js.map → chunk-EE6DJPB7.js.map} +0 -0
- /package/dist/{chunk-ANUO67JQ.js.map → chunk-EIMFA7KP.js.map} +0 -0
- /package/dist/{chunk-AKE6KVQG.js.map → chunk-EVIQUBC6.js.map} +0 -0
- /package/dist/{chunk-A5CKUJP2.js.map → chunk-EXKEPOL7.js.map} +0 -0
- /package/dist/{chunk-ULAZDF6D.js.map → chunk-FF22F7FA.js.map} +0 -0
- /package/dist/{chunk-LIN4A2BW.js.map → chunk-FKS2PNJF.js.map} +0 -0
- /package/dist/{chunk-ZYZPSBNQ.js.map → chunk-G3G5W4OF.js.map} +0 -0
- /package/dist/{chunk-N5OEDOJT.js.map → chunk-GBB23QLL.js.map} +0 -0
- /package/dist/{chunk-KTXJQ4YJ.js.map → chunk-GBVNY2LG.js.map} +0 -0
- /package/dist/{chunk-MW7P2C2C.js.map → chunk-GCR6VE5S.js.map} +0 -0
- /package/dist/{chunk-KYTFGW4R.js.map → chunk-GMIMHQ6H.js.map} +0 -0
- /package/dist/{chunk-KRPDBVUB.js.map → chunk-GS3QDXDP.js.map} +0 -0
- /package/dist/{chunk-WNNA6YYE.js.map → chunk-H5R2EZYI.js.map} +0 -0
- /package/dist/{chunk-JZQYVGPV.js.map → chunk-HED2CZDZ.js.map} +0 -0
- /package/dist/{chunk-JVOEVTCZ.js.map → chunk-HQCZT6TO.js.map} +0 -0
- /package/dist/{chunk-67ADHGA2.js.map → chunk-HWJ3FLZY.js.map} +0 -0
- /package/dist/{chunk-LXIPBHNJ.js.map → chunk-I5SIHPOG.js.map} +0 -0
- /package/dist/{chunk-NCI74EOS.js.map → chunk-I62SKY4E.js.map} +0 -0
- /package/dist/{chunk-GOQOVKUZ.js.map → chunk-I6CP3ZTP.js.map} +0 -0
- /package/dist/{chunk-OKRITX4S.js.map → chunk-ICHM2LQA.js.map} +0 -0
- /package/dist/{chunk-4LUWZ6UE.js.map → chunk-IMMPY4Q7.js.map} +0 -0
- /package/dist/{chunk-FZUAB2KS.js.map → chunk-INFBO356.js.map} +0 -0
- /package/dist/{chunk-EXVCVXFX.js.map → chunk-IQ5MBELJ.js.map} +0 -0
- /package/dist/{chunk-FRUDRDJX.js.map → chunk-IZ7JTG3Z.js.map} +0 -0
- /package/dist/{chunk-5ZOJLYD2.js.map → chunk-JE6RZ5L6.js.map} +0 -0
- /package/dist/{chunk-KF3Q3C3P.js.map → chunk-JJFLCEJJ.js.map} +0 -0
- /package/dist/{chunk-XW44IFYE.js.map → chunk-K2VDRODL.js.map} +0 -0
- /package/dist/{chunk-CFDWKQZT.js.map → chunk-KILA7LCC.js.map} +0 -0
- /package/dist/{chunk-IMYKJTVX.js.map → chunk-KLLHCPA2.js.map} +0 -0
- /package/dist/{chunk-FORQEHRQ.js.map → chunk-L5GZZUTY.js.map} +0 -0
- /package/dist/{chunk-N557OEZR.js.map → chunk-L62HC3UB.js.map} +0 -0
- /package/dist/{chunk-OPY2AGAU.js.map → chunk-LR56OANO.js.map} +0 -0
- /package/dist/{chunk-V6KQ5R4T.js.map → chunk-LSGZLFKX.js.map} +0 -0
- /package/dist/{chunk-QJLOWBFW.js.map → chunk-LXTNWQWF.js.map} +0 -0
- /package/dist/{chunk-W5WYTVLS.js.map → chunk-LY5I3ZSV.js.map} +0 -0
- /package/dist/{chunk-T77OVQEO.js.map → chunk-LZKS3NER.js.map} +0 -0
- /package/dist/{chunk-ZAPP32GD.js.map → chunk-M7HYNXCU.js.map} +0 -0
- /package/dist/{chunk-FQMLTCXT.js.map → chunk-MAHY7PK3.js.map} +0 -0
- /package/dist/{chunk-D34PZJH3.js.map → chunk-MBMZNSBP.js.map} +0 -0
- /package/dist/{chunk-HUXAIQC5.js.map → chunk-MJDSXQV7.js.map} +0 -0
- /package/dist/{chunk-NTRWUDP6.js.map → chunk-MKVDHR3B.js.map} +0 -0
- /package/dist/{chunk-PEVBSNCD.js.map → chunk-MLAIXRVL.js.map} +0 -0
- /package/dist/{chunk-5U7LBO2V.js.map → chunk-MUHRPJQT.js.map} +0 -0
- /package/dist/{chunk-COK65GX2.js.map → chunk-N2KHISGH.js.map} +0 -0
- /package/dist/{chunk-UQ5GJPVZ.js.map → chunk-N3C4J6Z2.js.map} +0 -0
- /package/dist/{chunk-P4Q7JK4L.js.map → chunk-NQ6P7O7C.js.map} +0 -0
- /package/dist/{chunk-QVDEGBME.js.map → chunk-NQCTANF3.js.map} +0 -0
- /package/dist/{chunk-I2LMLQGQ.js.map → chunk-NQUYBJKJ.js.map} +0 -0
- /package/dist/{chunk-LOHQLARB.js.map → chunk-NTCWIMIU.js.map} +0 -0
- /package/dist/{chunk-Q4GAPZDA.js.map → chunk-O2MR6U7Q.js.map} +0 -0
- /package/dist/{chunk-2FQF4CNE.js.map → chunk-OPP6USJC.js.map} +0 -0
- /package/dist/{chunk-GLR5MSU3.js.map → chunk-OY437NRJ.js.map} +0 -0
- /package/dist/{chunk-CJUK32UH.js.map → chunk-OZYUE2BI.js.map} +0 -0
- /package/dist/{chunk-HNEZWVDR.js.map → chunk-P5C4DTO4.js.map} +0 -0
- /package/dist/{chunk-6EZQLNPK.js.map → chunk-PGJIWCQR.js.map} +0 -0
- /package/dist/{chunk-6PTP5NID.js.map → chunk-R2ODLE6G.js.map} +0 -0
- /package/dist/{chunk-PJNIJIE6.js.map → chunk-RCTHCXS6.js.map} +0 -0
- /package/dist/{chunk-YBAK2WN5.js.map → chunk-RFMQBIE6.js.map} +0 -0
- /package/dist/{chunk-EYFDIUVR.js.map → chunk-RZTUMBRD.js.map} +0 -0
- /package/dist/{chunk-SGFRSRAL.js.map → chunk-S5VIN3EB.js.map} +0 -0
- /package/dist/{chunk-TIM4PXWN.js.map → chunk-SB2SEGR6.js.map} +0 -0
- /package/dist/{chunk-5CP6VW5H.js.map → chunk-SFNVAM7I.js.map} +0 -0
- /package/dist/{chunk-MVNFUIJS.js.map → chunk-SKIAWOUC.js.map} +0 -0
- /package/dist/{chunk-KES3HNSU.js.map → chunk-T7NEXLW6.js.map} +0 -0
- /package/dist/{chunk-EWFBDAB7.js.map → chunk-TOLCZ4XT.js.map} +0 -0
- /package/dist/{chunk-HBH7V3IP.js.map → chunk-TOOEEQ46.js.map} +0 -0
- /package/dist/{chunk-L7HNQRFS.js.map → chunk-TSID4257.js.map} +0 -0
- /package/dist/{chunk-5CP5Z3YU.js.map → chunk-TYGVNTUP.js.map} +0 -0
- /package/dist/{chunk-ZVZTQF7E.js.map → chunk-UBMH5MED.js.map} +0 -0
- /package/dist/{chunk-WTOA52EQ.js.map → chunk-UKNMPGEM.js.map} +0 -0
- /package/dist/{chunk-UXOFA3ZP.js.map → chunk-UNCDOLF5.js.map} +0 -0
- /package/dist/{chunk-UYKIUUWP.js.map → chunk-V2QTL6VI.js.map} +0 -0
- /package/dist/{chunk-6GICMRDX.js.map → chunk-VMTOLAZ5.js.map} +0 -0
- /package/dist/{chunk-4QGMUHAU.js.map → chunk-VQ7YNAK2.js.map} +0 -0
- /package/dist/{chunk-P772HCHI.js.map → chunk-W676GY42.js.map} +0 -0
- /package/dist/{chunk-B32XH7NK.js.map → chunk-WHOD6LVN.js.map} +0 -0
- /package/dist/{chunk-52RHAAIH.js.map → chunk-WLC56R2I.js.map} +0 -0
- /package/dist/{chunk-T2G4LDU5.js.map → chunk-WLLUARTC.js.map} +0 -0
- /package/dist/{chunk-X4J576GR.js.map → chunk-WTACWJSF.js.map} +0 -0
- /package/dist/{chunk-5S5K73I6.js.map → chunk-WUBMJSBR.js.map} +0 -0
- /package/dist/{chunk-MK6UXAWY.js.map → chunk-X2GWR75Q.js.map} +0 -0
- /package/dist/{chunk-2VRJ577J.js.map → chunk-X3EB67O2.js.map} +0 -0
- /package/dist/{chunk-KRYOT3KB.js.map → chunk-XALFZ25A.js.map} +0 -0
- /package/dist/{chunk-BNBWUXT3.js.map → chunk-XEKJ7L7I.js.map} +0 -0
- /package/dist/{chunk-QAH3XILB.js.map → chunk-XNIHDUOP.js.map} +0 -0
- /package/dist/{chunk-65KJLPF5.js.map → chunk-XRVXQJNB.js.map} +0 -0
- /package/dist/{chunk-K6WY2CHG.js.map → chunk-XZFTRGRW.js.map} +0 -0
- /package/dist/{chunk-LLPPIO3K.js.map → chunk-Y4ZWPOUV.js.map} +0 -0
- /package/dist/{chunk-OQN2FHEL.js.map → chunk-Y6IIWGZB.js.map} +0 -0
- /package/dist/{chunk-WMAS6DZR.js.map → chunk-YAQE7QVC.js.map} +0 -0
- /package/dist/{chunk-PVIQDBUN.js.map → chunk-YFG6XXBB.js.map} +0 -0
- /package/dist/{chunk-UBVKMM3V.js.map → chunk-YGQ2DLIM.js.map} +0 -0
- /package/dist/{chunk-XQJPR57I.js.map → chunk-YKONJEI4.js.map} +0 -0
- /package/dist/{chunk-COKPPU42.js.map → chunk-YLZXIR6B.js.map} +0 -0
- /package/dist/{chunk-V4CWJ7Q6.js.map → chunk-YNZUYZ2O.js.map} +0 -0
- /package/dist/{chunk-HJJR2WGL.js.map → chunk-YOXYSAUI.js.map} +0 -0
- /package/dist/{chunk-CPZGFIFH.js.map → chunk-YWBPASB2.js.map} +0 -0
- /package/dist/{chunk-2DDCRHJE.js.map → chunk-Z7CBLQQR.js.map} +0 -0
- /package/dist/{chunk-H7CZRKN7.js.map → chunk-ZCNR4DN5.js.map} +0 -0
- /package/dist/{chunk-4V37DAMA.js.map → chunk-ZDAAHCIS.js.map} +0 -0
- /package/dist/{chunk-2SBQ47RI.js.map → chunk-ZF2LZVDO.js.map} +0 -0
- /package/dist/{chunk-4IG73U2X.js.map → chunk-ZIA774ZW.js.map} +0 -0
- /package/dist/{chunk-E5OBAS3U.js.map → chunk-ZLIES3XR.js.map} +0 -0
- /package/dist/native/chunks/{chunk-FXA5DLKR.js.map → chunk-4G634E3Q.js.map} +0 -0
- /package/dist/native/chunks/{chunk-IN3XZ7EK.js.map → chunk-WLG3KT2V.js.map} +0 -0
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles/index.js';
|
|
2
|
+
import type { CSSObject } from '@mui/material/styles/index.js';
|
|
3
|
+
|
|
4
|
+
import { rem, sxRem } from '../../../tokens/relative';
|
|
5
|
+
import { SCHEDULE_GRID_METRICS as M } from './ScheduleGrid.metrics';
|
|
6
|
+
import { blockToneStyles, breakHatch } from './schedule-tones';
|
|
7
|
+
import type { ScheduleBlockTone } from './ScheduleGrid.types';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The grid's root: the container the column widths answer to (container
|
|
11
|
+
* queries, never media queries — the grid may sit in a narrow pane).
|
|
12
|
+
*/
|
|
13
|
+
export const rootSx: SxProps<Theme> = { containerType: 'inline-size', minWidth: 0, width: '100%' };
|
|
14
|
+
|
|
15
|
+
/** The columns a row has: the name, the days, the total (when there is one). */
|
|
16
|
+
function trackCount(dayCount: number, hasTotal: boolean): number {
|
|
17
|
+
return 1 + dayCount + (hasTotal ? 1 : 0);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The narrowest container a layout fits in, in px: its name column, its days
|
|
22
|
+
* at their minimum, its total, and the gaps between them — for THIS grid's
|
|
23
|
+
* day count, so a fortnight scrolls where a week still fits.
|
|
24
|
+
*/
|
|
25
|
+
function fitsFrom(dayCount: number, hasTotal: boolean, name: number, day: number, total: number): number {
|
|
26
|
+
return name + dayCount * day + (hasTotal ? total : 0) + (trackCount(dayCount, hasTotal) - 1) * M.gap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** `@container (width < px)`: every bound is "from px up" (ranges are exclusive below, inclusive above). */
|
|
30
|
+
function below(theme: Theme, px: number): string {
|
|
31
|
+
return `@container (width < ${rem(theme, px)})`;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The column widths, as variables every row reads, by the container's width:
|
|
36
|
+
* - from `wide` up: 200px names, days of at least 104px with their grips;
|
|
37
|
+
* - from `compact` up: 140px names, 40px total, days of at least 98px — still
|
|
38
|
+
* unscrolled, grips kept, the header row sticking to the page;
|
|
39
|
+
* - below `compact`: days of at least 152px, grips kept; the body scrolls
|
|
40
|
+
* sideways under the pinned names and the header row follows it sideways
|
|
41
|
+
* while it still sticks to the page (`useSidewaysScroll` sets its scroll);
|
|
42
|
+
* - below 600px: 120px names, 136px days, no grips.
|
|
43
|
+
* The `wide` and `compact` bounds come from this grid's own day count
|
|
44
|
+
* (`fitsFrom`). Container queries, never media queries.
|
|
45
|
+
*/
|
|
46
|
+
export function frameSx(dayCount: number, hasTotal: boolean): SxProps<Theme> {
|
|
47
|
+
return (theme: Theme) => {
|
|
48
|
+
const terms = ['var(--sg-name)', `${dayCount} * var(--sg-day)`, `${trackCount(dayCount, hasTotal) - 1} * ${rem(theme, M.gap)}`];
|
|
49
|
+
if (hasTotal) terms.push('var(--sg-total)');
|
|
50
|
+
const wide = fitsFrom(dayCount, hasTotal, M.nameColumn.wide, M.dayMin.wide, M.totalColumn.wide);
|
|
51
|
+
const compact = fitsFrom(dayCount, hasTotal, M.nameColumn.compact, M.dayMin.compact, M.totalColumn.compact);
|
|
52
|
+
return {
|
|
53
|
+
'--sg-name': rem(theme, M.nameColumn.wide),
|
|
54
|
+
'--sg-total': rem(theme, M.totalColumn.wide),
|
|
55
|
+
'--sg-day': rem(theme, M.dayMin.wide),
|
|
56
|
+
// What every row is at least: its own columns at their minimums.
|
|
57
|
+
'--sg-min': `calc(${terms.join(' + ')})`,
|
|
58
|
+
[below(theme, wide)]: {
|
|
59
|
+
'--sg-name': rem(theme, M.nameColumn.compact),
|
|
60
|
+
'--sg-total': rem(theme, M.totalColumn.compact),
|
|
61
|
+
'--sg-day': rem(theme, M.dayMin.compact),
|
|
62
|
+
'& [data-sg-block]': { paddingLeft: rem(theme, M.blockPadding.tight), paddingRight: rem(theme, M.blockPadding.tight) },
|
|
63
|
+
},
|
|
64
|
+
[below(theme, compact)]: {
|
|
65
|
+
'--sg-day': rem(theme, M.dayMin.scrolled),
|
|
66
|
+
'& [data-sg-block]': {
|
|
67
|
+
paddingLeft: rem(theme, M.blockPadding.start),
|
|
68
|
+
paddingRight: rem(theme, M.blockPadding.end),
|
|
69
|
+
},
|
|
70
|
+
// A cell the keyboard reaches is brought out beside the pinned names, never under them.
|
|
71
|
+
'& > [data-sg-scroll]': {
|
|
72
|
+
overflowX: 'auto',
|
|
73
|
+
overscrollBehaviorX: 'contain',
|
|
74
|
+
scrollPaddingInlineStart: `calc(var(--sg-name) + ${rem(theme, M.gap)})`,
|
|
75
|
+
},
|
|
76
|
+
// The header row follows the days sideways (the grid sets its scroll). It is no scroller of
|
|
77
|
+
// its own: a scroller with nothing focusable inside is a tab stop of its own.
|
|
78
|
+
// `contain` still holds on a hidden overflow: a sideways swipe over the header is never the
|
|
79
|
+
// browser's back / forward gesture.
|
|
80
|
+
'& > [data-sg-head]': { overflowX: 'hidden', overscrollBehaviorX: 'contain' },
|
|
81
|
+
// The pinned column: the names (and the cell above them, and the group
|
|
82
|
+
// titles) stay while the days scroll under them.
|
|
83
|
+
'& [role="rowheader"], & [data-sg-corner]': {
|
|
84
|
+
position: 'sticky',
|
|
85
|
+
left: 0,
|
|
86
|
+
zIndex: 2,
|
|
87
|
+
backgroundColor: theme.palette.background.default,
|
|
88
|
+
// Covers the gap after it too, so nothing scrolling shows between the name and the days.
|
|
89
|
+
boxShadow: `${rem(theme, M.gap)} 0 0 ${theme.palette.background.default}`,
|
|
90
|
+
},
|
|
91
|
+
'& [data-sg-group-title]': { position: 'sticky', left: 0, width: 'fit-content' },
|
|
92
|
+
},
|
|
93
|
+
[below(theme, M.narrowBelow)]: {
|
|
94
|
+
'--sg-name': rem(theme, M.nameColumn.narrow),
|
|
95
|
+
'--sg-day': rem(theme, M.dayMin.narrow),
|
|
96
|
+
// A phone-sized pane is read and tapped, not dragged (a phone renders
|
|
97
|
+
// DayRuler per day): the grips would eat the block (Shift+arrows still copy).
|
|
98
|
+
'& [data-sg-grip]': { display: 'none' },
|
|
99
|
+
'& [data-sg-block]': { paddingLeft: rem(theme, M.cellPadding), paddingRight: rem(theme, M.cellPadding) },
|
|
100
|
+
},
|
|
101
|
+
display: 'flex',
|
|
102
|
+
flexDirection: 'column',
|
|
103
|
+
minWidth: 0,
|
|
104
|
+
userSelect: 'none',
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** The body: scrolls sideways (under the compact bound) when the days' minimums do not fit. */
|
|
110
|
+
export const scrollSx: SxProps<Theme> = { minWidth: 0 };
|
|
111
|
+
|
|
112
|
+
/** One line of the grid — the header or a person — as the shared columns. */
|
|
113
|
+
/** A style that may sit in an `sx` array next to another. */
|
|
114
|
+
type SxPart = (theme: Theme) => CSSObject;
|
|
115
|
+
|
|
116
|
+
export function rowGridSx(dayCount: number, hasTotal: boolean): SxPart {
|
|
117
|
+
return (theme: Theme) => ({
|
|
118
|
+
display: 'grid',
|
|
119
|
+
gridTemplateColumns: `var(--sg-name) repeat(${dayCount}, minmax(var(--sg-day), 1fr))${hasTotal ? ' var(--sg-total)' : ''}`,
|
|
120
|
+
gap: rem(theme, M.gap),
|
|
121
|
+
alignItems: 'stretch',
|
|
122
|
+
minWidth: 'var(--sg-min)',
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Around the header row: opaque, pinned to the top of the PAGE (or whatever
|
|
128
|
+
* scrolls the grid vertically) — it is not inside the sideways scroller, so
|
|
129
|
+
* it sticks at every width; while the days scroll it follows them sideways.
|
|
130
|
+
*/
|
|
131
|
+
export function headerSx(stickyTop: number): SxPart {
|
|
132
|
+
return (theme: Theme) => ({
|
|
133
|
+
position: 'sticky',
|
|
134
|
+
top: rem(theme, stickyTop),
|
|
135
|
+
zIndex: 3,
|
|
136
|
+
backgroundColor: theme.palette.background.default,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** The header row itself, inside its sticky frame. */
|
|
141
|
+
export const headerRowSx: SxPart = (theme: Theme) => ({
|
|
142
|
+
paddingTop: theme.spacing(0.75),
|
|
143
|
+
paddingBottom: theme.spacing(0.75),
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
export function headerCellSx(today: boolean): SxProps<Theme> {
|
|
147
|
+
return {
|
|
148
|
+
fontSize: sxRem(M.headerLabel),
|
|
149
|
+
fontWeight: 500,
|
|
150
|
+
color: today ? 'primary.main' : 'text.primary',
|
|
151
|
+
p: 0.5,
|
|
152
|
+
minWidth: 0,
|
|
153
|
+
// A long label ("Hoje · Seg 19/10") wraps to a second line, as the prototype's: never cut.
|
|
154
|
+
'& > *': { display: 'block', overflowWrap: 'anywhere' },
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export const headerSublabelSx: SxProps<Theme> = {
|
|
159
|
+
fontSize: sxRem(M.headerSublabel),
|
|
160
|
+
fontWeight: 400,
|
|
161
|
+
color: 'text.secondary',
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export const totalHeaderSx: SxProps<Theme> = {
|
|
165
|
+
fontSize: sxRem(M.total),
|
|
166
|
+
color: 'text.secondary',
|
|
167
|
+
textAlign: 'right',
|
|
168
|
+
alignSelf: 'end',
|
|
169
|
+
p: 0.5,
|
|
170
|
+
pr: 0,
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export const groupTitleSx: SxProps<Theme> = {
|
|
174
|
+
fontSize: sxRem(M.groupTitle),
|
|
175
|
+
letterSpacing: '0.05em',
|
|
176
|
+
textTransform: 'uppercase',
|
|
177
|
+
color: 'text.secondary',
|
|
178
|
+
fontWeight: 500,
|
|
179
|
+
pt: 1.5,
|
|
180
|
+
pb: 0.5,
|
|
181
|
+
m: 0,
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/** A person's line: one grid row, then the gap below it. */
|
|
185
|
+
export const personRowSx: SxPart = (theme: Theme) => ({ marginBottom: rem(theme, M.gap) });
|
|
186
|
+
|
|
187
|
+
export const nameCellSx: SxProps<Theme> = {
|
|
188
|
+
display: 'flex',
|
|
189
|
+
flexDirection: 'column',
|
|
190
|
+
justifyContent: 'center',
|
|
191
|
+
pr: 0.5,
|
|
192
|
+
minWidth: 0,
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export const totalCellSx: SxProps<Theme> = {
|
|
196
|
+
fontSize: sxRem(M.total),
|
|
197
|
+
color: 'text.secondary',
|
|
198
|
+
textAlign: 'right',
|
|
199
|
+
alignSelf: 'center',
|
|
200
|
+
whiteSpace: 'nowrap',
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/** What a cell is drawing right now. */
|
|
204
|
+
export interface CellLook {
|
|
205
|
+
today: boolean;
|
|
206
|
+
blocked: boolean;
|
|
207
|
+
/** A create or copy will land here: dashed, with the hours as ghost text. */
|
|
208
|
+
target: boolean;
|
|
209
|
+
/** The pointer is over it while a block moves. */
|
|
210
|
+
over: boolean;
|
|
211
|
+
/** The cell's own "+" button may be pressed. */
|
|
212
|
+
interactive: boolean;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function hatch(theme: Theme): string {
|
|
216
|
+
const a = theme.palette.action.hover;
|
|
217
|
+
const b = theme.palette.action.selected;
|
|
218
|
+
const w = rem(theme, M.hatch);
|
|
219
|
+
const w2 = rem(theme, M.hatch * 2);
|
|
220
|
+
return `repeating-linear-gradient(135deg, ${a} 0, ${a} ${w}, ${b} ${w}, ${b} ${w2})`;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export function cellSx(look: CellLook): SxProps<Theme> {
|
|
224
|
+
return (theme: Theme): CSSObject => {
|
|
225
|
+
const base: CSSObject = {
|
|
226
|
+
position: 'relative',
|
|
227
|
+
minHeight: rem(theme, M.cellMinHeight),
|
|
228
|
+
borderRadius: rem(theme, M.cellRadius),
|
|
229
|
+
backgroundColor: theme.palette.action.hover,
|
|
230
|
+
border: `1px solid ${look.today ? theme.palette.primary.main : theme.palette.divider}`,
|
|
231
|
+
padding: rem(theme, M.cellPadding),
|
|
232
|
+
display: 'flex',
|
|
233
|
+
flexDirection: 'column',
|
|
234
|
+
gap: rem(theme, M.blockGap),
|
|
235
|
+
boxSizing: 'border-box',
|
|
236
|
+
minWidth: 0,
|
|
237
|
+
cursor: look.interactive ? 'cell' : 'default',
|
|
238
|
+
};
|
|
239
|
+
if (look.blocked) {
|
|
240
|
+
return { ...base, background: hatch(theme), borderColor: theme.palette.divider, cursor: 'not-allowed' };
|
|
241
|
+
}
|
|
242
|
+
if (look.target) {
|
|
243
|
+
return {
|
|
244
|
+
...base,
|
|
245
|
+
border: `${rem(theme, M.targetBorder)} dashed ${theme.palette.primary.main}`,
|
|
246
|
+
backgroundColor: theme.palette.action.selected,
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
if (look.over) return { ...base, borderColor: theme.palette.primary.main, backgroundColor: theme.palette.action.selected };
|
|
250
|
+
return base;
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** The empty cell's button: the whole cell, a quiet "+" in its middle. */
|
|
255
|
+
export const plusButtonSx: SxProps<Theme> = (theme: Theme) => ({
|
|
256
|
+
flex: '1 1 auto',
|
|
257
|
+
display: 'flex',
|
|
258
|
+
alignItems: 'center',
|
|
259
|
+
justifyContent: 'center',
|
|
260
|
+
font: 'inherit',
|
|
261
|
+
background: 'transparent',
|
|
262
|
+
border: 0,
|
|
263
|
+
p: 0,
|
|
264
|
+
m: 0,
|
|
265
|
+
color: theme.palette.text.disabled,
|
|
266
|
+
cursor: 'inherit',
|
|
267
|
+
borderRadius: rem(theme, M.cellRadius - M.cellPadding),
|
|
268
|
+
'& svg': { fontSize: rem(theme, M.plusIcon) },
|
|
269
|
+
// The "+" is swapped for the ghost on pointer down: were it the press's
|
|
270
|
+
// target, the browser would drop the click once it left the DOM.
|
|
271
|
+
'& > *': { pointerEvents: 'none' },
|
|
272
|
+
'&:hover': { color: theme.palette.text.secondary },
|
|
273
|
+
'&:focus-visible': { outline: `${rem(theme, M.ring)} solid ${theme.palette.primary.main}`, outlineOffset: 0 },
|
|
274
|
+
// A drag's ghost text sits where the prototype writes it: top left.
|
|
275
|
+
'&[data-ghost]': { justifyContent: 'flex-start', alignItems: 'flex-start' },
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
/** The ghost text of a cell a create or copy will land on. */
|
|
279
|
+
export const ghostSx: SxProps<Theme> = (theme: Theme) => ({
|
|
280
|
+
fontSize: rem(theme, M.blockFont),
|
|
281
|
+
fontWeight: 500,
|
|
282
|
+
color: theme.palette.primary.main,
|
|
283
|
+
px: 0.75,
|
|
284
|
+
py: 0.5,
|
|
285
|
+
overflow: 'hidden',
|
|
286
|
+
textOverflow: 'ellipsis',
|
|
287
|
+
whiteSpace: 'nowrap',
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
/** A closed day's word ("Afastamento"): one line inside its cell, cut with an ellipsis (the full word in `title`). */
|
|
291
|
+
export const blockedLabelSx: SxProps<Theme> = (theme: Theme) => ({
|
|
292
|
+
display: 'block',
|
|
293
|
+
fontSize: rem(theme, M.blockFont),
|
|
294
|
+
color: theme.palette.text.secondary,
|
|
295
|
+
px: 0.75,
|
|
296
|
+
py: 0.5,
|
|
297
|
+
lineHeight: 1.3,
|
|
298
|
+
minWidth: 0,
|
|
299
|
+
maxWidth: '100%',
|
|
300
|
+
boxSizing: 'border-box',
|
|
301
|
+
overflow: 'hidden',
|
|
302
|
+
textOverflow: 'ellipsis',
|
|
303
|
+
whiteSpace: 'nowrap',
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
export function blockSx(tone: ScheduleBlockTone, opts: { selected: boolean; movable: boolean }): SxProps<Theme> {
|
|
307
|
+
return (theme: Theme): CSSObject => ({
|
|
308
|
+
...blockToneStyles(theme, tone),
|
|
309
|
+
position: 'relative',
|
|
310
|
+
display: 'block',
|
|
311
|
+
width: '100%',
|
|
312
|
+
minWidth: 0,
|
|
313
|
+
maxWidth: '100%',
|
|
314
|
+
boxSizing: 'border-box',
|
|
315
|
+
textAlign: 'left',
|
|
316
|
+
font: 'inherit',
|
|
317
|
+
fontSize: rem(theme, M.blockFont),
|
|
318
|
+
fontWeight: 500,
|
|
319
|
+
lineHeight: 1.35,
|
|
320
|
+
borderRadius: rem(theme, M.blockRadius),
|
|
321
|
+
padding: `${rem(theme, M.blockPadding.y)} ${rem(theme, M.blockPadding.end)} ${rem(theme, M.blockPadding.y)} ${rem(theme, M.blockPadding.start)}`,
|
|
322
|
+
cursor: opts.movable ? 'grab' : 'pointer',
|
|
323
|
+
margin: 0,
|
|
324
|
+
boxShadow: opts.selected ? `0 0 0 ${rem(theme, M.ring)} ${theme.palette.primary.main}` : 'none',
|
|
325
|
+
'&:focus-visible': { outline: `${rem(theme, M.ring)} solid ${theme.palette.primary.main}`, outlineOffset: rem(theme, M.ringOffset) },
|
|
326
|
+
// The hours stay on one line; the note wraps (the block grows), as the prototype's
|
|
327
|
+
// "↻ a cada 2 / semanas": a note is never cut, so a break keeps its end.
|
|
328
|
+
'& > [data-sg-line]': { position: 'relative', display: 'block' },
|
|
329
|
+
'& > [data-sg-line="label"]': { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' },
|
|
330
|
+
'& > [data-sg-line="note"]': { fontWeight: 400, overflowWrap: 'anywhere' },
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/** A break inside a block: a hatched band across its height, under its text. */
|
|
335
|
+
export function breakSx(span: { start: number; end: number }): SxProps<Theme> {
|
|
336
|
+
return (theme: Theme) => ({
|
|
337
|
+
position: 'absolute',
|
|
338
|
+
top: 0,
|
|
339
|
+
bottom: 0,
|
|
340
|
+
left: `${span.start * 100}%`,
|
|
341
|
+
width: `${(span.end - span.start) * 100}%`,
|
|
342
|
+
background: breakHatch(theme, rem(theme, M.breakStripe.ink), rem(theme, M.breakStripe.ink + M.breakStripe.gap)),
|
|
343
|
+
pointerEvents: 'none',
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export function gripSx(side: 'l' | 'r'): SxProps<Theme> {
|
|
348
|
+
return (theme: Theme) => ({
|
|
349
|
+
position: 'absolute',
|
|
350
|
+
top: 0,
|
|
351
|
+
bottom: 0,
|
|
352
|
+
[side === 'l' ? 'left' : 'right']: 0,
|
|
353
|
+
width: rem(theme, M.grip.width),
|
|
354
|
+
cursor: 'ew-resize',
|
|
355
|
+
display: 'flex',
|
|
356
|
+
alignItems: 'center',
|
|
357
|
+
justifyContent: 'center',
|
|
358
|
+
'&::before': {
|
|
359
|
+
content: '""',
|
|
360
|
+
display: 'block',
|
|
361
|
+
width: rem(theme, M.grip.barWidth),
|
|
362
|
+
height: rem(theme, M.grip.barHeight),
|
|
363
|
+
borderRadius: rem(theme, M.grip.barRadius),
|
|
364
|
+
backgroundColor: 'currentColor',
|
|
365
|
+
opacity: 0.5,
|
|
366
|
+
},
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export const skeletonCellSx: SxProps<Theme> = (theme: Theme) => ({
|
|
371
|
+
minHeight: rem(theme, M.cellMinHeight),
|
|
372
|
+
borderRadius: rem(theme, M.cellRadius),
|
|
373
|
+
backgroundColor: theme.palette.action.hover,
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
export const SR_ONLY_SX: SxProps<Theme> = {
|
|
377
|
+
position: 'absolute',
|
|
378
|
+
width: sxRem(1),
|
|
379
|
+
height: sxRem(1),
|
|
380
|
+
padding: 0,
|
|
381
|
+
margin: sxRem(-1),
|
|
382
|
+
overflow: 'hidden',
|
|
383
|
+
clip: 'rect(0, 0, 0, 0)',
|
|
384
|
+
whiteSpace: 'nowrap',
|
|
385
|
+
border: 0,
|
|
386
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import Box from '@mui/material/Box/index.js';
|
|
4
|
+
import React, { useEffect, useRef } from 'react';
|
|
5
|
+
|
|
6
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
7
|
+
import { resolveLabels } from '../../../utils/resolve-labels';
|
|
8
|
+
import { focusables, handleGridKey } from './ScheduleGrid.keyboard';
|
|
9
|
+
import { GridBody, GridHeader, type CellAbilities } from './ScheduleGrid.parts';
|
|
10
|
+
import { frameSx, headerSx, rootSx, rowGridSx, scrollSx, SR_ONLY_SX } from './ScheduleGrid.styles';
|
|
11
|
+
import type { ScheduleGridProps } from './ScheduleGrid.types';
|
|
12
|
+
import { useAnnouncer } from './useAnnouncer';
|
|
13
|
+
import { useGridDrag } from './useGridDrag';
|
|
14
|
+
import { useSidewaysScroll } from './useSidewaysScroll';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* After a keyboard move the host re-renders the block in its new cell (a new
|
|
18
|
+
* element): focus follows it there. After a create on an empty day's "+" (Enter,
|
|
19
|
+
* Space or a click) the "+" gives way to the host's new block: focus moves to
|
|
20
|
+
* it, so the arrows go on from there — after a click without scrolling. A host
|
|
21
|
+
* that refused keeps focus where it was; the next key or pointer press forgets
|
|
22
|
+
* the wait.
|
|
23
|
+
*/
|
|
24
|
+
type FollowTarget = { kind: 'move'; id: string; day: number } | { kind: 'create'; row: string; day: number; pointer: boolean };
|
|
25
|
+
|
|
26
|
+
/** The empty day's "+" an event landed on, if any. */
|
|
27
|
+
function plusOf(target: EventTarget): HTMLElement | null {
|
|
28
|
+
if (!(target instanceof HTMLElement)) return null;
|
|
29
|
+
const plus = target.closest<HTMLElement>('button[data-sg-focus]');
|
|
30
|
+
return plus && plus.dataset.sgBlock === undefined && plus.dataset.sgRow !== undefined ? plus : null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function useFollowFocus(rootRef: React.RefObject<HTMLElement | null>) {
|
|
34
|
+
const pending = useRef<FollowTarget | null>(null);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
const follow = pending.current;
|
|
37
|
+
if (!follow || !rootRef.current) return;
|
|
38
|
+
const block = focusables(rootRef.current).find((el) =>
|
|
39
|
+
Number(el.dataset.sgDay) !== follow.day || el.dataset.sgBlock === undefined
|
|
40
|
+
? false
|
|
41
|
+
: follow.kind === 'move'
|
|
42
|
+
? el.dataset.sgBlock === follow.id
|
|
43
|
+
: el.dataset.sgRow === follow.row,
|
|
44
|
+
);
|
|
45
|
+
if (!block) return;
|
|
46
|
+
// After a click the cell stays where the pointer left it: no scroll at all (FUT-3825 R1).
|
|
47
|
+
block.focus(follow.kind === 'create' && follow.pointer ? { preventScroll: true } : undefined);
|
|
48
|
+
pending.current = null;
|
|
49
|
+
});
|
|
50
|
+
return {
|
|
51
|
+
follow: (id: string, day: number): void => {
|
|
52
|
+
pending.current = { kind: 'move', id, day };
|
|
53
|
+
},
|
|
54
|
+
/** A key that presses an empty day's "+" (its click creates there). */
|
|
55
|
+
followCreate: (event: React.KeyboardEvent): void => {
|
|
56
|
+
const plus = plusOf(event.target);
|
|
57
|
+
if ((event.key !== 'Enter' && event.key !== ' ') || !plus?.dataset.sgRow) return;
|
|
58
|
+
pending.current = { kind: 'create', row: plus.dataset.sgRow, day: Number(plus.dataset.sgDay), pointer: false };
|
|
59
|
+
},
|
|
60
|
+
/** A pointer click on an empty day's "+" (a key's click, `detail` 0, is the key's). */
|
|
61
|
+
followClickCreate: (event: React.MouseEvent): void => {
|
|
62
|
+
const plus = plusOf(event.target);
|
|
63
|
+
if (event.detail === 0 || !plus?.dataset.sgRow) return;
|
|
64
|
+
pending.current = { kind: 'create', row: plus.dataset.sgRow, day: Number(plus.dataset.sgDay), pointer: true };
|
|
65
|
+
},
|
|
66
|
+
forget: (): void => {
|
|
67
|
+
pending.current = null;
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function abilitiesOf(props: ScheduleGridProps): CellAbilities {
|
|
73
|
+
const open = !props.readOnly && !props.loading;
|
|
74
|
+
return { create: open && Boolean(props.onCreate), copy: open && Boolean(props.onCopy), move: open && Boolean(props.onMove) };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* People (or resources) as rows, days as columns, and blocks with a start and
|
|
79
|
+
* an end in the cells — the week grid of a staff schedule (FUT-3825).
|
|
80
|
+
*
|
|
81
|
+
* Click an empty cell to create on that day; drag across empty cells of a row
|
|
82
|
+
* to create on each; drag a block's edge grip along its row to copy it; drag
|
|
83
|
+
* its middle to move it to another day or row; click it to open it. Touch
|
|
84
|
+
* scrolls and never drags. Every gesture has a keyboard twin.
|
|
85
|
+
*
|
|
86
|
+
* The grid reports gestures; the hours, limits and refusals are the host's.
|
|
87
|
+
*/
|
|
88
|
+
export function ScheduleGrid(props: ScheduleGridProps): React.JSX.Element {
|
|
89
|
+
const { columns, groups, cell, onCreate, onCopy, onMove } = props;
|
|
90
|
+
const testId = props.dataTestId ?? 'schedule-grid';
|
|
91
|
+
const labels = resolveLabels(EN_US_UI_LABELS.scheduleGrid, props.labels);
|
|
92
|
+
const rootRef = useRef<HTMLDivElement | null>(null);
|
|
93
|
+
const { text: announcement, say } = useAnnouncer();
|
|
94
|
+
const focus = useFollowFocus(rootRef);
|
|
95
|
+
const dragApi = useGridDrag(rootRef, { cell, onCreate, onCopy, onMove });
|
|
96
|
+
const can = abilitiesOf(props);
|
|
97
|
+
const rows = groups.flatMap((group) => group.rows);
|
|
98
|
+
const hasTotal = props.totalLabel !== undefined || rows.some((row) => row.total !== undefined);
|
|
99
|
+
const rowSx = rowGridSx(columns.length, hasTotal);
|
|
100
|
+
|
|
101
|
+
const headRef = useRef<HTMLDivElement | null>(null);
|
|
102
|
+
const bodyRef = useRef<HTMLDivElement | null>(null);
|
|
103
|
+
const sideways = useSidewaysScroll(headRef, bodyRef);
|
|
104
|
+
|
|
105
|
+
const onKeyDown = (event: React.KeyboardEvent): void => {
|
|
106
|
+
sideways.release();
|
|
107
|
+
focus.forget();
|
|
108
|
+
if (!rootRef.current) return;
|
|
109
|
+
if (can.create) focus.followCreate(event);
|
|
110
|
+
handleGridKey(event, { root: rootRef.current, rows, columns, cell, can, onCopy, onMove, labels, say, follow: focus.follow });
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<Box sx={rootSx} data-testid={testId}>
|
|
115
|
+
<Box
|
|
116
|
+
ref={rootRef}
|
|
117
|
+
role="table"
|
|
118
|
+
aria-label={props['aria-label']}
|
|
119
|
+
aria-busy={props.loading || undefined}
|
|
120
|
+
aria-description={props.loading ? labels.loading : undefined}
|
|
121
|
+
sx={frameSx(columns.length, hasTotal)}
|
|
122
|
+
onKeyDown={onKeyDown}
|
|
123
|
+
onPointerDownCapture={focus.forget}
|
|
124
|
+
onClickCapture={can.create ? focus.followClickCreate : undefined}
|
|
125
|
+
>
|
|
126
|
+
{/* The header row sits outside the sideways scroller, so it sticks to the page; it follows the days sideways. */}
|
|
127
|
+
<Box ref={headRef} role="none" sx={headerSx(props.stickyTop ?? 0)} data-sg-head="" data-testid={`${testId}-head`} onWheel={sideways.forwardWheel}>
|
|
128
|
+
<GridHeader columns={columns} totalLabel={hasTotal ? (props.totalLabel ?? '') : undefined} rowSx={rowSx} testId={testId} />
|
|
129
|
+
</Box>
|
|
130
|
+
<Box ref={bodyRef} role="none" sx={scrollSx} data-sg-scroll="" data-testid={`${testId}-scroll`} onScroll={sideways.follow}
|
|
131
|
+
onFocus={sideways.bringOut}
|
|
132
|
+
onPointerDownCapture={sideways.press}
|
|
133
|
+
>
|
|
134
|
+
<GridBody grid={props} rows={rows} rowSx={rowSx} hasTotal={hasTotal} can={can} dragApi={dragApi} labels={labels} testId={testId} />
|
|
135
|
+
</Box>
|
|
136
|
+
</Box>
|
|
137
|
+
<Box sx={SR_ONLY_SX} aria-live="polite" role="status" data-testid={`${testId}-live`}>
|
|
138
|
+
{announcement}
|
|
139
|
+
</Box>
|
|
140
|
+
</Box>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import type { ScheduleGridLabels } from '../../../copy/labels';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* How a block reads. Each tone is drawn differently AND carries its `note`
|
|
7
|
+
* text, so colour is never the only signal:
|
|
8
|
+
* - `plan` — scheduled ("17:00–23:00", note "↻ toda semana");
|
|
9
|
+
* - `late` — scheduled, started, nobody there ("Atrasado");
|
|
10
|
+
* - `away` — the person said they will not come ("Ausente");
|
|
11
|
+
* - `uncovered` — nobody covers it ("Sem ninguém");
|
|
12
|
+
* - `onduty` — running right now ("Em turno", "desde 08:26").
|
|
13
|
+
*/
|
|
14
|
+
export type ScheduleBlockTone = 'plan' | 'late' | 'away' | 'uncovered' | 'onduty';
|
|
15
|
+
|
|
16
|
+
/** One day column of the grid. */
|
|
17
|
+
export interface ScheduleGridColumn {
|
|
18
|
+
/** The day ("Ter 20/10", "Hoje · Seg 19/10"). */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Under the label ("3 turnos", "ninguém"). */
|
|
21
|
+
sublabel?: string;
|
|
22
|
+
/** Today's column: its label in the primary colour and its cells framed. */
|
|
23
|
+
today?: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** A row: one person (or resource) across the days. */
|
|
27
|
+
export interface ScheduleGridRow {
|
|
28
|
+
id: string;
|
|
29
|
+
/** The name in the first column. Wraps; never pushes the day columns. */
|
|
30
|
+
label: string;
|
|
31
|
+
/** A line under the name ("Afastamento · licença maternidade", "70h na semana · acima de 40h"). */
|
|
32
|
+
meta?: string;
|
|
33
|
+
/** `warning` draws `meta` in the warning ink (over a limit). Default `default`. */
|
|
34
|
+
metaTone?: 'default' | 'warning';
|
|
35
|
+
/** The last column ("18h", "—"). */
|
|
36
|
+
total?: string;
|
|
37
|
+
/** Makes the name a button (the person's week, an afastamento). */
|
|
38
|
+
onLabelClick?: () => void;
|
|
39
|
+
/** The name button's accessible name, when it says more than `label` ("Ana: horas e afastamento"). */
|
|
40
|
+
labelAccessible?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Beside the name, on its line (a "Freela" tag). It keeps its size; when the
|
|
43
|
+
* name column has no room for both, it moves under the name.
|
|
44
|
+
*/
|
|
45
|
+
nameAdornment?: React.ReactNode;
|
|
46
|
+
/** Under the meta line: the host's chips ("2 regras ›"). One line; a chip that does not fit shrinks, its label cut. */
|
|
47
|
+
chips?: React.ReactNode;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Rows under one heading ("Cozinha"). */
|
|
51
|
+
export interface ScheduleGridGroup {
|
|
52
|
+
/** Shown upper-case above the rows; also names the row group. Omit for no heading. */
|
|
53
|
+
title?: string;
|
|
54
|
+
rows: ScheduleGridRow[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A stretch inside a block that is not worked (a meal break), drawn hatched
|
|
59
|
+
* across the block's height. Fractions of the block's length, `0 <= start < end <= 1`;
|
|
60
|
+
* the words for it ("pausa 14–15") are the block's `note`.
|
|
61
|
+
*/
|
|
62
|
+
export interface ScheduleBlockBreak {
|
|
63
|
+
start: number;
|
|
64
|
+
end: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** One block inside a cell. */
|
|
68
|
+
export interface ScheduleGridBlock {
|
|
69
|
+
/** Stable identity — what `onMove`, `onCopy` and `onBlockClick` report. */
|
|
70
|
+
id: string;
|
|
71
|
+
/** The first line ("17:00–23:00", "Em turno"). One line, ellipsis. */
|
|
72
|
+
label: string;
|
|
73
|
+
/** The second line ("↻ toda semana", "Atrasado"). Wraps when long; never cut. */
|
|
74
|
+
note?: string;
|
|
75
|
+
tone: ScheduleBlockTone;
|
|
76
|
+
/** Its middle can be dragged to another cell (and Alt+←/→ moves it a day). */
|
|
77
|
+
movable?: boolean;
|
|
78
|
+
/** It has edge grips that copy it along its row (and Shift+←/→ copies it a day). */
|
|
79
|
+
copyable?: boolean;
|
|
80
|
+
/** Drawn with a ring (the block whose window is open). */
|
|
81
|
+
selected?: boolean;
|
|
82
|
+
/** The tooltip and the full text. Default: `label` and `note`. */
|
|
83
|
+
title?: string;
|
|
84
|
+
/** A break inside the block, drawn as a hatched gap. */
|
|
85
|
+
breakSpan?: ScheduleBlockBreak;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** What a cell holds. */
|
|
89
|
+
export interface ScheduleGridCell {
|
|
90
|
+
blocks: readonly ScheduleGridBlock[];
|
|
91
|
+
/**
|
|
92
|
+
* The day is closed to this row (an afastamento): hatched, refuses a
|
|
93
|
+
* create and a drop. Blocks already there still show.
|
|
94
|
+
*/
|
|
95
|
+
blocked?: boolean;
|
|
96
|
+
/** Written in a blocked cell with no blocks ("Afastamento"). */
|
|
97
|
+
blockedLabel?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface ScheduleGridProps {
|
|
101
|
+
/** The day columns, in order (seven for a week). A day is its index here. */
|
|
102
|
+
columns: readonly ScheduleGridColumn[];
|
|
103
|
+
groups: readonly ScheduleGridGroup[];
|
|
104
|
+
/** What a cell holds. Called for every row and day on each render: keep it cheap. */
|
|
105
|
+
cell: (rowId: string, day: number) => ScheduleGridCell;
|
|
106
|
+
/** The last column's header ("horas"). Without it and without row totals, there is no last column. */
|
|
107
|
+
totalLabel?: string;
|
|
108
|
+
/**
|
|
109
|
+
* No create, copy or move: no "+", no grips, empty cells are not focusable.
|
|
110
|
+
* Block clicks still reach `onBlockClick` (a read-only window).
|
|
111
|
+
*/
|
|
112
|
+
readOnly?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* A click on an empty cell (one day), or a drag across empty cells of one
|
|
115
|
+
* row (every crossed day that is empty and not blocked).
|
|
116
|
+
*/
|
|
117
|
+
onCreate?: (rowId: string, days: number[]) => void;
|
|
118
|
+
/** A block's edge grip dragged along its row: the crossed days that are empty and not blocked. */
|
|
119
|
+
onCopy?: (blockId: string, days: number[]) => void;
|
|
120
|
+
/** A block's middle dropped on an empty, open cell of any row. */
|
|
121
|
+
onMove?: (blockId: string, toRowId: string, toDay: number) => void;
|
|
122
|
+
/** A block clicked, tapped or Entered. */
|
|
123
|
+
onBlockClick?: (blockId: string) => void;
|
|
124
|
+
/** The ghost text in the cells a create drag covers — the hours it will get ("08:00–14:00"). */
|
|
125
|
+
createPreview?: (rowId: string) => string;
|
|
126
|
+
/** Skeleton rows instead of the body, `aria-busy`, no interaction. */
|
|
127
|
+
loading?: boolean;
|
|
128
|
+
/** Replaces the body: the host's error (an `ErrorState` with its retry). */
|
|
129
|
+
error?: React.ReactNode;
|
|
130
|
+
/** Shown when there are no rows at all. */
|
|
131
|
+
empty?: React.ReactNode;
|
|
132
|
+
/** The header row sticks this far from the top of the scroll container (a sticky page bar above). Default 0. */
|
|
133
|
+
stickyTop?: number;
|
|
134
|
+
/** The grid's accessible name ("Escala da semana"). */
|
|
135
|
+
'aria-label'?: string;
|
|
136
|
+
/** The component's own words: cell names and the live region's sentences. Default: the English pack. */
|
|
137
|
+
labels?: Partial<ScheduleGridLabels>;
|
|
138
|
+
/**
|
|
139
|
+
* Base test id (default `schedule-grid`). Parts: `-header`, `-row-${rowId}`,
|
|
140
|
+
* `-cell-${rowId}-${day}`, `-block-${blockId}`, `-grip-l-${blockId}`,
|
|
141
|
+
* `-grip-r-${blockId}`, `-break-${blockId}`, `-live`, `-loading`.
|
|
142
|
+
*/
|
|
143
|
+
dataTestId?: string;
|
|
144
|
+
}
|