@portnet/ui 6.0.2 → 6.0.3
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/CHANGELOG.md +652 -0
- package/dist/esm/index.js +72 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/v2/__tests__/AppMain.test.js +130 -0
- package/dist/esm/v2/__tests__/AppMain.test.js.map +1 -0
- package/dist/esm/v2/__tests__/ChartFigure.test.js +180 -0
- package/dist/esm/v2/__tests__/ChartFigure.test.js.map +1 -0
- package/dist/esm/v2/__tests__/DataGridRowActionsPropagation.test.js +150 -0
- package/dist/esm/v2/__tests__/DataGridRowActionsPropagation.test.js.map +1 -0
- package/dist/esm/v2/__tests__/DrawerTactileTargets.test.js +93 -0
- package/dist/esm/v2/__tests__/DrawerTactileTargets.test.js.map +1 -0
- package/dist/esm/v2/__tests__/FieldError.test.js +71 -38
- package/dist/esm/v2/__tests__/FieldError.test.js.map +1 -1
- package/dist/esm/v2/__tests__/FieldNaming.test.js +160 -0
- package/dist/esm/v2/__tests__/FieldNaming.test.js.map +1 -0
- package/dist/esm/v2/__tests__/FieldWidth.test.js +11 -11
- package/dist/esm/v2/__tests__/FieldWidth.test.js.map +1 -1
- package/dist/esm/v2/__tests__/FileCard.test.js +18 -17
- package/dist/esm/v2/__tests__/FileCard.test.js.map +1 -1
- package/dist/esm/v2/__tests__/FormikCheckbox.test.js +87 -179
- package/dist/esm/v2/__tests__/FormikCheckbox.test.js.map +1 -1
- package/dist/esm/v2/__tests__/FormikDateTimePicker.test.js +32 -44
- package/dist/esm/v2/__tests__/FormikDateTimePicker.test.js.map +1 -1
- package/dist/esm/v2/__tests__/FormikDisplayWidth.test.js +101 -0
- package/dist/esm/v2/__tests__/FormikDisplayWidth.test.js.map +1 -0
- package/dist/esm/v2/__tests__/FormikRadioGroup.test.js +118 -199
- package/dist/esm/v2/__tests__/FormikRadioGroup.test.js.map +1 -1
- package/dist/esm/v2/__tests__/MobileRowCard.test.js +44 -42
- package/dist/esm/v2/__tests__/MobileRowCard.test.js.map +1 -1
- package/dist/esm/v2/__tests__/PreviewDrawer.test.js +165 -0
- package/dist/esm/v2/__tests__/PreviewDrawer.test.js.map +1 -0
- package/dist/esm/v2/__tests__/ReferentielFieldContainer.test.js +156 -0
- package/dist/esm/v2/__tests__/ReferentielFieldContainer.test.js.map +1 -0
- package/dist/esm/v2/__tests__/SectionErrorBoundary.test.js +37 -52
- package/dist/esm/v2/__tests__/SectionErrorBoundary.test.js.map +1 -1
- package/dist/esm/v2/__tests__/apiError.test.js +50 -69
- package/dist/esm/v2/__tests__/apiError.test.js.map +1 -1
- package/dist/esm/v2/__tests__/banned-patterns.test.js +41 -122
- package/dist/esm/v2/__tests__/banned-patterns.test.js.map +1 -1
- package/dist/esm/v2/__tests__/chart-palette.test.js +204 -0
- package/dist/esm/v2/__tests__/chart-palette.test.js.map +1 -0
- package/dist/esm/v2/__tests__/contrast-palette.test.js +42 -74
- package/dist/esm/v2/__tests__/contrast-palette.test.js.map +1 -1
- package/dist/esm/v2/__tests__/cssVariables.test.js +44 -51
- package/dist/esm/v2/__tests__/cssVariables.test.js.map +1 -1
- package/dist/esm/v2/__tests__/fileValidation.test.js +134 -0
- package/dist/esm/v2/__tests__/fileValidation.test.js.map +1 -0
- package/dist/esm/v2/__tests__/filterCriteria.test.js +321 -0
- package/dist/esm/v2/__tests__/filterCriteria.test.js.map +1 -0
- package/dist/esm/v2/__tests__/fmtDate.test.js +68 -0
- package/dist/esm/v2/__tests__/fmtDate.test.js.map +1 -0
- package/dist/esm/v2/__tests__/gap-leakage-refonte.test.js +218 -0
- package/dist/esm/v2/__tests__/gap-leakage-refonte.test.js.map +1 -0
- package/dist/esm/v2/__tests__/labels-merge.test.js +17 -21
- package/dist/esm/v2/__tests__/labels-merge.test.js.map +1 -1
- package/dist/esm/v2/__tests__/locale-fallback.test.js +35 -40
- package/dist/esm/v2/__tests__/locale-fallback.test.js.map +1 -1
- package/dist/esm/v2/__tests__/reviveSavedCriteria.test.js +143 -0
- package/dist/esm/v2/__tests__/reviveSavedCriteria.test.js.map +1 -0
- package/dist/esm/v2/__tests__/rowActions.test.js +182 -0
- package/dist/esm/v2/__tests__/rowActions.test.js.map +1 -0
- package/dist/esm/v2/__tests__/useFocusOnRouteChange.test.js +155 -0
- package/dist/esm/v2/__tests__/useFocusOnRouteChange.test.js.map +1 -0
- package/dist/esm/v2/__tests__/useFocusTrap.test.js +266 -402
- package/dist/esm/v2/__tests__/useFocusTrap.test.js.map +1 -1
- package/dist/esm/v2/__tests__/usePrefersReducedMotion.test.js +120 -0
- package/dist/esm/v2/__tests__/usePrefersReducedMotion.test.js.map +1 -0
- package/dist/esm/v2/components/Accordion.js +48 -70
- package/dist/esm/v2/components/Accordion.js.map +1 -1
- package/dist/esm/v2/components/ActionStrip.js +31 -43
- package/dist/esm/v2/components/ActionStrip.js.map +1 -1
- package/dist/esm/v2/components/Banner.js +25 -22
- package/dist/esm/v2/components/Banner.js.map +1 -1
- package/dist/esm/v2/components/Busy.js +14 -19
- package/dist/esm/v2/components/Busy.js.map +1 -1
- package/dist/esm/v2/components/Button.js +34 -45
- package/dist/esm/v2/components/Button.js.map +1 -1
- package/dist/esm/v2/components/CategoryTag.js +44 -27
- package/dist/esm/v2/components/CategoryTag.js.map +1 -1
- package/dist/esm/v2/components/Checkbox.js +32 -38
- package/dist/esm/v2/components/Checkbox.js.map +1 -1
- package/dist/esm/v2/components/Chip.js +23 -36
- package/dist/esm/v2/components/Chip.js.map +1 -1
- package/dist/esm/v2/components/Combobox.js +112 -136
- package/dist/esm/v2/components/Combobox.js.map +1 -1
- package/dist/esm/v2/components/CommandPalette.js +113 -198
- package/dist/esm/v2/components/CommandPalette.js.map +1 -1
- package/dist/esm/v2/components/ConfirmDialog.js +36 -45
- package/dist/esm/v2/components/ConfirmDialog.js.map +1 -1
- package/dist/esm/v2/components/DatePicker.js +78 -81
- package/dist/esm/v2/components/DatePicker.js.map +1 -1
- package/dist/esm/v2/components/DateRangePicker.js +63 -74
- package/dist/esm/v2/components/DateRangePicker.js.map +1 -1
- package/dist/esm/v2/components/DateTimePicker.js +81 -86
- package/dist/esm/v2/components/DateTimePicker.js.map +1 -1
- package/dist/esm/v2/components/Drawer.js +71 -65
- package/dist/esm/v2/components/Drawer.js.map +1 -1
- package/dist/esm/v2/components/Dropzone.js +130 -177
- package/dist/esm/v2/components/Dropzone.js.map +1 -1
- package/dist/esm/v2/components/EmptyState.js +9 -9
- package/dist/esm/v2/components/EmptyState.js.map +1 -1
- package/dist/esm/v2/components/FavoriteToggle.js +24 -33
- package/dist/esm/v2/components/FavoriteToggle.js.map +1 -1
- package/dist/esm/v2/components/Field.js +155 -59
- package/dist/esm/v2/components/Field.js.map +1 -1
- package/dist/esm/v2/components/FieldError.js +9 -13
- package/dist/esm/v2/components/FieldError.js.map +1 -1
- package/dist/esm/v2/components/FieldHelp.js +28 -49
- package/dist/esm/v2/components/FieldHelp.js.map +1 -1
- package/dist/esm/v2/components/FileCard.js +14 -19
- package/dist/esm/v2/components/FileCard.js.map +1 -1
- package/dist/esm/v2/components/FilterTab.js +22 -31
- package/dist/esm/v2/components/FilterTab.js.map +1 -1
- package/dist/esm/v2/components/ForbiddenPage.js +28 -8
- package/dist/esm/v2/components/ForbiddenPage.js.map +1 -1
- package/dist/esm/v2/components/FormGrid.js +48 -54
- package/dist/esm/v2/components/FormGrid.js.map +1 -1
- package/dist/esm/v2/components/FormikDisplay.js +98 -24
- package/dist/esm/v2/components/FormikDisplay.js.map +1 -1
- package/dist/esm/v2/components/Input.js +75 -34
- package/dist/esm/v2/components/Input.js.map +1 -1
- package/dist/esm/v2/components/KPICard.js +42 -51
- package/dist/esm/v2/components/KPICard.js.map +1 -1
- package/dist/esm/v2/components/KPIStrip.js +9 -15
- package/dist/esm/v2/components/KPIStrip.js.map +1 -1
- package/dist/esm/v2/components/KV.js +16 -23
- package/dist/esm/v2/components/KV.js.map +1 -1
- package/dist/esm/v2/components/KVGrid.js +15 -23
- package/dist/esm/v2/components/KVGrid.js.map +1 -1
- package/dist/esm/v2/components/Layout.js +81 -117
- package/dist/esm/v2/components/Layout.js.map +1 -1
- package/dist/esm/v2/components/MobileRowCard.js +64 -75
- package/dist/esm/v2/components/MobileRowCard.js.map +1 -1
- package/dist/esm/v2/components/Modal.js +44 -53
- package/dist/esm/v2/components/Modal.js.map +1 -1
- package/dist/esm/v2/components/NetworkErrorPage.js +28 -11
- package/dist/esm/v2/components/NetworkErrorPage.js.map +1 -1
- package/dist/esm/v2/components/NotFoundPage.js +28 -9
- package/dist/esm/v2/components/NotFoundPage.js.map +1 -1
- package/dist/esm/v2/components/NumberInput.js +77 -107
- package/dist/esm/v2/components/NumberInput.js.map +1 -1
- package/dist/esm/v2/components/OverflowMenu.js +24 -42
- package/dist/esm/v2/components/OverflowMenu.js.map +1 -1
- package/dist/esm/v2/components/PdfViewer.js +24 -33
- package/dist/esm/v2/components/PdfViewer.js.map +1 -1
- package/dist/esm/v2/components/ProgressBar.js +28 -36
- package/dist/esm/v2/components/ProgressBar.js.map +1 -1
- package/dist/esm/v2/components/Radio.js +49 -57
- package/dist/esm/v2/components/Radio.js.map +1 -1
- package/dist/esm/v2/components/SectionErrorBoundary.js +84 -130
- package/dist/esm/v2/components/SectionErrorBoundary.js.map +1 -1
- package/dist/esm/v2/components/SectionHeader.js +24 -31
- package/dist/esm/v2/components/SectionHeader.js.map +1 -1
- package/dist/esm/v2/components/Segmented.js +59 -84
- package/dist/esm/v2/components/Segmented.js.map +1 -1
- package/dist/esm/v2/components/Select.js +100 -138
- package/dist/esm/v2/components/Select.js.map +1 -1
- package/dist/esm/v2/components/ServerErrorPage.js +27 -10
- package/dist/esm/v2/components/ServerErrorPage.js.map +1 -1
- package/dist/esm/v2/components/Skeleton.js +81 -96
- package/dist/esm/v2/components/Skeleton.js.map +1 -1
- package/dist/esm/v2/components/SkipLink.js +6 -7
- package/dist/esm/v2/components/SkipLink.js.map +1 -1
- package/dist/esm/v2/components/Spinner.js +13 -22
- package/dist/esm/v2/components/Spinner.js.map +1 -1
- package/dist/esm/v2/components/Status.js +14 -25
- package/dist/esm/v2/components/Status.js.map +1 -1
- package/dist/esm/v2/components/Stepper.js +68 -71
- package/dist/esm/v2/components/Stepper.js.map +1 -1
- package/dist/esm/v2/components/Surface.js +25 -44
- package/dist/esm/v2/components/Surface.js.map +1 -1
- package/dist/esm/v2/components/Switch.js +21 -29
- package/dist/esm/v2/components/Switch.js.map +1 -1
- package/dist/esm/v2/components/TabPanel.js +84 -0
- package/dist/esm/v2/components/TabPanel.js.map +1 -0
- package/dist/esm/v2/components/Tabs.js +43 -19
- package/dist/esm/v2/components/Tabs.js.map +1 -1
- package/dist/esm/v2/components/TelInput.js +75 -108
- package/dist/esm/v2/components/TelInput.js.map +1 -1
- package/dist/esm/v2/components/Textarea.js +21 -30
- package/dist/esm/v2/components/Textarea.js.map +1 -1
- package/dist/esm/v2/components/TimePicker.js +59 -69
- package/dist/esm/v2/components/TimePicker.js.map +1 -1
- package/dist/esm/v2/components/Toast.js +109 -163
- package/dist/esm/v2/components/Toast.js.map +1 -1
- package/dist/esm/v2/components/Tooltip.js +18 -31
- package/dist/esm/v2/components/Tooltip.js.map +1 -1
- package/dist/esm/v2/components/_ErrorPageBody.js +6 -5
- package/dist/esm/v2/components/_ErrorPageBody.js.map +1 -1
- package/dist/esm/v2/components/_pickerShared.js +2 -2
- package/dist/esm/v2/components/_pickerShared.js.map +1 -1
- package/dist/esm/v2/components/index.js +37 -0
- package/dist/esm/v2/components/index.js.map +1 -1
- package/dist/esm/v2/hooks/index.js +62 -0
- package/dist/esm/v2/hooks/index.js.map +1 -1
- package/dist/esm/v2/hooks/useAppliedFilters.js +112 -0
- package/dist/esm/v2/hooks/useAppliedFilters.js.map +1 -0
- package/dist/esm/v2/hooks/useDebouncedCallback.js +82 -0
- package/dist/esm/v2/hooks/useDebouncedCallback.js.map +1 -0
- package/dist/esm/v2/hooks/useDelayedFlag.js +5 -19
- package/dist/esm/v2/hooks/useDelayedFlag.js.map +1 -1
- package/dist/esm/v2/hooks/useDensity.js +13 -17
- package/dist/esm/v2/hooks/useDensity.js.map +1 -1
- package/dist/esm/v2/hooks/useFocusFirstError.js +25 -33
- package/dist/esm/v2/hooks/useFocusFirstError.js.map +1 -1
- package/dist/esm/v2/hooks/useFocusOnRouteChange.js +81 -0
- package/dist/esm/v2/hooks/useFocusOnRouteChange.js.map +1 -0
- package/dist/esm/v2/hooks/useFocusTrap.js +19 -23
- package/dist/esm/v2/hooks/useFocusTrap.js.map +1 -1
- package/dist/esm/v2/hooks/useFormAutoSave.js +38 -53
- package/dist/esm/v2/hooks/useFormAutoSave.js.map +1 -1
- package/dist/esm/v2/hooks/useFormCompletionProgress.js +32 -51
- package/dist/esm/v2/hooks/useFormCompletionProgress.js.map +1 -1
- package/dist/esm/v2/hooks/useKeyboardShortcuts.js +125 -0
- package/dist/esm/v2/hooks/useKeyboardShortcuts.js.map +1 -0
- package/dist/esm/v2/hooks/usePrefersReducedMotion.js +99 -0
- package/dist/esm/v2/hooks/usePrefersReducedMotion.js.map +1 -0
- package/dist/esm/v2/hooks/useResolvedDensity.js +2 -10
- package/dist/esm/v2/hooks/useResolvedDensity.js.map +1 -1
- package/dist/esm/v2/hooks/useSortedRows.js +3 -5
- package/dist/esm/v2/hooks/useSortedRows.js.map +1 -1
- package/dist/esm/v2/hooks/useTabLoading.js +6 -21
- package/dist/esm/v2/hooks/useTabLoading.js.map +1 -1
- package/dist/esm/v2/index.js +2 -3
- package/dist/esm/v2/index.js.map +1 -1
- package/dist/esm/v2/modalContext.js +2 -2
- package/dist/esm/v2/modalContext.js.map +1 -1
- package/dist/esm/v2/models/favorite.js.map +1 -1
- package/dist/esm/v2/models/personalization.js.map +1 -1
- package/dist/esm/v2/models/referentiel.js.map +1 -1
- package/dist/esm/v2/models/savedFilter.js.map +1 -1
- package/dist/esm/v2/patterns/ActionBar.js +115 -159
- package/dist/esm/v2/patterns/ActionBar.js.map +1 -1
- package/dist/esm/v2/patterns/AppMain.js +108 -0
- package/dist/esm/v2/patterns/AppMain.js.map +1 -0
- package/dist/esm/v2/patterns/BulkActionBar.js +31 -34
- package/dist/esm/v2/patterns/BulkActionBar.js.map +1 -1
- package/dist/esm/v2/patterns/ChartFigure.js +151 -0
- package/dist/esm/v2/patterns/ChartFigure.js.map +1 -0
- package/dist/esm/v2/patterns/CollapsibleDataGrid.js +111 -152
- package/dist/esm/v2/patterns/CollapsibleDataGrid.js.map +1 -1
- package/dist/esm/v2/patterns/ColumnsToggle.js +43 -77
- package/dist/esm/v2/patterns/ColumnsToggle.js.map +1 -1
- package/dist/esm/v2/patterns/DataGrid.js +221 -255
- package/dist/esm/v2/patterns/DataGrid.js.map +1 -1
- package/dist/esm/v2/patterns/DataGridSettingsMenu.js +76 -94
- package/dist/esm/v2/patterns/DataGridSettingsMenu.js.map +1 -1
- package/dist/esm/v2/patterns/DataGridToolbar.js +85 -89
- package/dist/esm/v2/patterns/DataGridToolbar.js.map +1 -1
- package/dist/esm/v2/patterns/DataGridVirtualized.js +141 -182
- package/dist/esm/v2/patterns/DataGridVirtualized.js.map +1 -1
- package/dist/esm/v2/patterns/DeleteResourceConfirmDialog.js +26 -30
- package/dist/esm/v2/patterns/DeleteResourceConfirmDialog.js.map +1 -1
- package/dist/esm/v2/patterns/DetailSplit.js +108 -0
- package/dist/esm/v2/patterns/DetailSplit.js.map +1 -0
- package/dist/esm/v2/patterns/FavoriteColumn.js +15 -17
- package/dist/esm/v2/patterns/FavoriteColumn.js.map +1 -1
- package/dist/esm/v2/patterns/FavoritesFilter.js +30 -39
- package/dist/esm/v2/patterns/FavoritesFilter.js.map +1 -1
- package/dist/esm/v2/patterns/FilterTabBar.js +112 -0
- package/dist/esm/v2/patterns/FilterTabBar.js.map +1 -0
- package/dist/esm/v2/patterns/FormErrorSummary.js +12 -13
- package/dist/esm/v2/patterns/FormErrorSummary.js.map +1 -1
- package/dist/esm/v2/patterns/FormPageShell.js +43 -41
- package/dist/esm/v2/patterns/FormPageShell.js.map +1 -1
- package/dist/esm/v2/patterns/FormSection.js +30 -38
- package/dist/esm/v2/patterns/FormSection.js.map +1 -1
- package/dist/esm/v2/patterns/FormikCheckbox.js +29 -39
- package/dist/esm/v2/patterns/FormikCheckbox.js.map +1 -1
- package/dist/esm/v2/patterns/FormikCheckboxGroup.js +56 -60
- package/dist/esm/v2/patterns/FormikCheckboxGroup.js.map +1 -1
- package/dist/esm/v2/patterns/FormikCombobox.js +51 -69
- package/dist/esm/v2/patterns/FormikCombobox.js.map +1 -1
- package/dist/esm/v2/patterns/FormikDatePicker.js +44 -58
- package/dist/esm/v2/patterns/FormikDatePicker.js.map +1 -1
- package/dist/esm/v2/patterns/FormikDateTimePicker.js +44 -58
- package/dist/esm/v2/patterns/FormikDateTimePicker.js.map +1 -1
- package/dist/esm/v2/patterns/FormikErrorFocus.js +22 -23
- package/dist/esm/v2/patterns/FormikErrorFocus.js.map +1 -1
- package/dist/esm/v2/patterns/FormikErrorSummary.js +89 -0
- package/dist/esm/v2/patterns/FormikErrorSummary.js.map +1 -0
- package/dist/esm/v2/patterns/FormikFile.js +94 -78
- package/dist/esm/v2/patterns/FormikFile.js.map +1 -1
- package/dist/esm/v2/patterns/FormikInput.js +40 -53
- package/dist/esm/v2/patterns/FormikInput.js.map +1 -1
- package/dist/esm/v2/patterns/FormikRadioGroup.js +39 -51
- package/dist/esm/v2/patterns/FormikRadioGroup.js.map +1 -1
- package/dist/esm/v2/patterns/FormikReferentielField.js +49 -59
- package/dist/esm/v2/patterns/FormikReferentielField.js.map +1 -1
- package/dist/esm/v2/patterns/FormikSelect.js +64 -87
- package/dist/esm/v2/patterns/FormikSelect.js.map +1 -1
- package/dist/esm/v2/patterns/FormikTextarea.js +30 -46
- package/dist/esm/v2/patterns/FormikTextarea.js.map +1 -1
- package/dist/esm/v2/patterns/KeyboardShortcutsHelp.js +53 -71
- package/dist/esm/v2/patterns/KeyboardShortcutsHelp.js.map +1 -1
- package/dist/esm/v2/patterns/NetworkErrorBanner.js +6 -7
- package/dist/esm/v2/patterns/NetworkErrorBanner.js.map +1 -1
- package/dist/esm/v2/patterns/PageContent.js +10 -14
- package/dist/esm/v2/patterns/PageContent.js.map +1 -1
- package/dist/esm/v2/patterns/PreviewDrawer.js +153 -0
- package/dist/esm/v2/patterns/PreviewDrawer.js.map +1 -0
- package/dist/esm/v2/patterns/ReferentielField.js +327 -312
- package/dist/esm/v2/patterns/ReferentielField.js.map +1 -1
- package/dist/esm/v2/patterns/RowFavoriteToggle.js +27 -22
- package/dist/esm/v2/patterns/RowFavoriteToggle.js.map +1 -1
- package/dist/esm/v2/patterns/SaveFilterDialog.js +38 -66
- package/dist/esm/v2/patterns/SaveFilterDialog.js.map +1 -1
- package/dist/esm/v2/patterns/SavedFiltersMenu.js +62 -81
- package/dist/esm/v2/patterns/SavedFiltersMenu.js.map +1 -1
- package/dist/esm/v2/patterns/SkeletonPageShell.js +106 -129
- package/dist/esm/v2/patterns/SkeletonPageShell.js.map +1 -1
- package/dist/esm/v2/patterns/SortableHeader.js +22 -45
- package/dist/esm/v2/patterns/SortableHeader.js.map +1 -1
- package/dist/esm/v2/patterns/Tour.js +94 -120
- package/dist/esm/v2/patterns/Tour.js.map +1 -1
- package/dist/esm/v2/patterns/_dataGridShared.js +107 -128
- package/dist/esm/v2/patterns/_dataGridShared.js.map +1 -1
- package/dist/esm/v2/patterns/_pickerSerialisation.js +6 -8
- package/dist/esm/v2/patterns/_pickerSerialisation.js.map +1 -1
- package/dist/esm/v2/patterns/_sort.js +17 -33
- package/dist/esm/v2/patterns/_sort.js.map +1 -1
- package/dist/esm/v2/patterns/_useColumnReorder.js +122 -160
- package/dist/esm/v2/patterns/_useColumnReorder.js.map +1 -1
- package/dist/esm/v2/patterns/_useColumnResize.js +78 -96
- package/dist/esm/v2/patterns/_useColumnResize.js.map +1 -1
- package/dist/esm/v2/patterns/filterCriteria.js +102 -0
- package/dist/esm/v2/patterns/filterCriteria.js.map +1 -0
- package/dist/esm/v2/patterns/index.js +152 -0
- package/dist/esm/v2/patterns/index.js.map +1 -1
- package/dist/esm/v2/patterns/rowActions.js +223 -0
- package/dist/esm/v2/patterns/rowActions.js.map +1 -0
- package/dist/esm/v2/personalization/PersonalizationProvider.js +50 -47
- package/dist/esm/v2/personalization/PersonalizationProvider.js.map +1 -1
- package/dist/esm/v2/personalization/adapters/_storageKey.js +5 -5
- package/dist/esm/v2/personalization/adapters/_storageKey.js.map +1 -1
- package/dist/esm/v2/personalization/adapters/createLocalStorageAdapter.js +22 -23
- package/dist/esm/v2/personalization/adapters/createLocalStorageAdapter.js.map +1 -1
- package/dist/esm/v2/personalization/adapters/createMemoryAdapter.js +13 -13
- package/dist/esm/v2/personalization/adapters/createMemoryAdapter.js.map +1 -1
- package/dist/esm/v2/personalization/capabilities/favorites.js +36 -60
- package/dist/esm/v2/personalization/capabilities/favorites.js.map +1 -1
- package/dist/esm/v2/personalization/capabilities/favoritesView.js +22 -34
- package/dist/esm/v2/personalization/capabilities/favoritesView.js.map +1 -1
- package/dist/esm/v2/personalization/capabilities/gridPreferences.js +28 -34
- package/dist/esm/v2/personalization/capabilities/gridPreferences.js.map +1 -1
- package/dist/esm/v2/personalization/capabilities/reviveSavedCriteria.js +119 -0
- package/dist/esm/v2/personalization/capabilities/reviveSavedCriteria.js.map +1 -0
- package/dist/esm/v2/personalization/capabilities/savedFilters.js +90 -98
- package/dist/esm/v2/personalization/capabilities/savedFilters.js.map +1 -1
- package/dist/esm/v2/personalization/createPersonalizationStore.js +78 -181
- package/dist/esm/v2/personalization/createPersonalizationStore.js.map +1 -1
- package/dist/esm/v2/personalization/index.js +17 -0
- package/dist/esm/v2/personalization/index.js.map +1 -1
- package/dist/esm/v2/personalization/personalizationContext.js +9 -9
- package/dist/esm/v2/personalization/personalizationContext.js.map +1 -1
- package/dist/esm/v2/personalization/schema.js +8 -9
- package/dist/esm/v2/personalization/schema.js.map +1 -1
- package/dist/esm/v2/referentiel/ReferentielProvider.js +27 -42
- package/dist/esm/v2/referentiel/ReferentielProvider.js.map +1 -1
- package/dist/esm/v2/referentiel/types.js +2 -0
- package/dist/esm/v2/referentiel/types.js.map +1 -0
- package/dist/esm/v2/referentiel/useReferentielClient.js +10 -11
- package/dist/esm/v2/referentiel/useReferentielClient.js.map +1 -1
- package/dist/esm/v2/referentiel/useReferentielOptions.js +60 -117
- package/dist/esm/v2/referentiel/useReferentielOptions.js.map +1 -1
- package/dist/esm/v2/referentiel/useReferentielSearch.js +37 -91
- package/dist/esm/v2/referentiel/useReferentielSearch.js.map +1 -1
- package/dist/esm/v2/theme/_brand.js +8 -24
- package/dist/esm/v2/theme/_brand.js.map +1 -1
- package/dist/esm/v2/theme/_brandSecondary.js +8 -24
- package/dist/esm/v2/theme/_brandSecondary.js.map +1 -1
- package/dist/esm/v2/theme/createPortnetTheme.js +51 -61
- package/dist/esm/v2/theme/createPortnetTheme.js.map +1 -1
- package/dist/esm/v2/theme/cssVariables.js +62 -69
- package/dist/esm/v2/theme/cssVariables.js.map +1 -1
- package/dist/esm/v2/theme/index.js +5 -5
- package/dist/esm/v2/theme/index.js.map +1 -1
- package/dist/esm/v2/tokens/breakpoints.js +14 -14
- package/dist/esm/v2/tokens/breakpoints.js.map +1 -1
- package/dist/esm/v2/tokens/chart.js +261 -0
- package/dist/esm/v2/tokens/chart.js.map +1 -0
- package/dist/esm/v2/tokens/colors.js +22 -22
- package/dist/esm/v2/tokens/colors.js.map +1 -1
- package/dist/esm/v2/tokens/density.js +62 -7
- package/dist/esm/v2/tokens/density.js.map +1 -1
- package/dist/esm/v2/tokens/index.js +49 -34
- package/dist/esm/v2/tokens/index.js.map +1 -1
- package/dist/esm/v2/tokens/motion.js +12 -20
- package/dist/esm/v2/tokens/motion.js.map +1 -1
- package/dist/esm/v2/tokens/radius.js +1 -1
- package/dist/esm/v2/tokens/radius.js.map +1 -1
- package/dist/esm/v2/tokens/shadows.js +6 -6
- package/dist/esm/v2/tokens/shadows.js.map +1 -1
- package/dist/esm/v2/tokens/spacing.js +2 -2
- package/dist/esm/v2/tokens/spacing.js.map +1 -1
- package/dist/esm/v2/tokens/state.js +1 -1
- package/dist/esm/v2/tokens/state.js.map +1 -1
- package/dist/esm/v2/tokens/statusPalette.js +17 -21
- package/dist/esm/v2/tokens/statusPalette.js.map +1 -1
- package/dist/esm/v2/tokens/tokens.json +6 -1
- package/dist/esm/v2/tokens/typography.js +13 -13
- package/dist/esm/v2/tokens/typography.js.map +1 -1
- package/dist/esm/v2/tokens/zIndex.js +1 -1
- package/dist/esm/v2/tokens/zIndex.js.map +1 -1
- package/dist/esm/v2/types/datagrid.js.map +1 -1
- package/dist/esm/v2/utils/apiError.js +16 -37
- package/dist/esm/v2/utils/apiError.js.map +1 -1
- package/dist/esm/v2/utils/contrast.js +31 -32
- package/dist/esm/v2/utils/contrast.js.map +1 -1
- package/dist/esm/v2/utils/cx.js +5 -25
- package/dist/esm/v2/utils/cx.js.map +1 -1
- package/dist/esm/v2/utils/fileDownload.js +23 -26
- package/dist/esm/v2/utils/fileDownload.js.map +1 -1
- package/dist/esm/v2/utils/fileValidation.js +209 -0
- package/dist/esm/v2/utils/fileValidation.js.map +1 -0
- package/dist/esm/v2/utils/fmtDate.js +111 -0
- package/dist/esm/v2/utils/fmtDate.js.map +1 -0
- package/dist/esm/v2/utils/fmtMoney.js +8 -10
- package/dist/esm/v2/utils/fmtMoney.js.map +1 -1
- package/dist/esm/v2/utils/formikErrors.js +78 -0
- package/dist/esm/v2/utils/formikErrors.js.map +1 -0
- package/dist/esm/v2/utils/index.js +35 -2
- package/dist/esm/v2/utils/index.js.map +1 -1
- package/dist/esm/v2/utils/mergeLabels.js +7 -12
- package/dist/esm/v2/utils/mergeLabels.js.map +1 -1
- package/dist/esm/v2/utils/networkStatus.js +12 -12
- package/dist/esm/v2/utils/networkStatus.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +110 -49
- package/dist/index.js.map +1 -1
- package/dist/v2/__tests__/AppMain.test.js +133 -0
- package/dist/v2/__tests__/AppMain.test.js.map +1 -0
- package/dist/v2/__tests__/ChartFigure.test.js +183 -0
- package/dist/v2/__tests__/ChartFigure.test.js.map +1 -0
- package/dist/v2/__tests__/DataGridRowActionsPropagation.test.js +153 -0
- package/dist/v2/__tests__/DataGridRowActionsPropagation.test.js.map +1 -0
- package/dist/v2/__tests__/DrawerTactileTargets.test.js +94 -0
- package/dist/v2/__tests__/DrawerTactileTargets.test.js.map +1 -0
- package/dist/v2/__tests__/FieldError.test.js +82 -49
- package/dist/v2/__tests__/FieldError.test.js.map +1 -1
- package/dist/v2/__tests__/FieldNaming.test.js +161 -0
- package/dist/v2/__tests__/FieldNaming.test.js.map +1 -0
- package/dist/v2/__tests__/FieldWidth.test.js +23 -25
- package/dist/v2/__tests__/FieldWidth.test.js.map +1 -1
- package/dist/v2/__tests__/FileCard.test.js +29 -28
- package/dist/v2/__tests__/FileCard.test.js.map +1 -1
- package/dist/v2/__tests__/FormikCheckbox.test.js +90 -183
- package/dist/v2/__tests__/FormikCheckbox.test.js.map +1 -1
- package/dist/v2/__tests__/FormikDateTimePicker.test.js +38 -48
- package/dist/v2/__tests__/FormikDateTimePicker.test.js.map +1 -1
- package/dist/v2/__tests__/FormikDisplayWidth.test.js +102 -0
- package/dist/v2/__tests__/FormikDisplayWidth.test.js.map +1 -0
- package/dist/v2/__tests__/FormikRadioGroup.test.js +123 -204
- package/dist/v2/__tests__/FormikRadioGroup.test.js.map +1 -1
- package/dist/v2/__tests__/MobileRowCard.test.js +63 -61
- package/dist/v2/__tests__/MobileRowCard.test.js.map +1 -1
- package/dist/v2/__tests__/PreviewDrawer.test.js +169 -0
- package/dist/v2/__tests__/PreviewDrawer.test.js.map +1 -0
- package/dist/v2/__tests__/ReferentielFieldContainer.test.js +159 -0
- package/dist/v2/__tests__/ReferentielFieldContainer.test.js.map +1 -0
- package/dist/v2/__tests__/SectionErrorBoundary.test.js +53 -68
- package/dist/v2/__tests__/SectionErrorBoundary.test.js.map +1 -1
- package/dist/v2/__tests__/apiError.test.js +50 -69
- package/dist/v2/__tests__/apiError.test.js.map +1 -1
- package/dist/v2/__tests__/banned-patterns.test.js +42 -123
- package/dist/v2/__tests__/banned-patterns.test.js.map +1 -1
- package/dist/v2/__tests__/chart-palette.test.js +205 -0
- package/dist/v2/__tests__/chart-palette.test.js.map +1 -0
- package/dist/v2/__tests__/contrast-palette.test.js +42 -74
- package/dist/v2/__tests__/contrast-palette.test.js.map +1 -1
- package/dist/v2/__tests__/cssVariables.test.js +44 -51
- package/dist/v2/__tests__/cssVariables.test.js.map +1 -1
- package/dist/v2/__tests__/fileValidation.test.js +136 -0
- package/dist/v2/__tests__/fileValidation.test.js.map +1 -0
- package/dist/v2/__tests__/filterCriteria.test.js +324 -0
- package/dist/v2/__tests__/filterCriteria.test.js.map +1 -0
- package/dist/v2/__tests__/fmtDate.test.js +69 -0
- package/dist/v2/__tests__/fmtDate.test.js.map +1 -0
- package/dist/v2/__tests__/gap-leakage-refonte.test.js +221 -0
- package/dist/v2/__tests__/gap-leakage-refonte.test.js.map +1 -0
- package/dist/v2/__tests__/labels-merge.test.js +23 -27
- package/dist/v2/__tests__/labels-merge.test.js.map +1 -1
- package/dist/v2/__tests__/locale-fallback.test.js +47 -52
- package/dist/v2/__tests__/locale-fallback.test.js.map +1 -1
- package/dist/v2/__tests__/reviveSavedCriteria.test.js +144 -0
- package/dist/v2/__tests__/reviveSavedCriteria.test.js.map +1 -0
- package/dist/v2/__tests__/rowActions.test.js +186 -0
- package/dist/v2/__tests__/rowActions.test.js.map +1 -0
- package/dist/v2/__tests__/useFocusOnRouteChange.test.js +156 -0
- package/dist/v2/__tests__/useFocusOnRouteChange.test.js.map +1 -0
- package/dist/v2/__tests__/useFocusTrap.test.js +270 -407
- package/dist/v2/__tests__/useFocusTrap.test.js.map +1 -1
- package/dist/v2/__tests__/usePrefersReducedMotion.test.js +123 -0
- package/dist/v2/__tests__/usePrefersReducedMotion.test.js.map +1 -0
- package/dist/v2/components/Accordion.js +60 -82
- package/dist/v2/components/Accordion.js.map +1 -1
- package/dist/v2/components/ActionStrip.js +40 -52
- package/dist/v2/components/ActionStrip.js.map +1 -1
- package/dist/v2/components/Banner.js +42 -41
- package/dist/v2/components/Banner.js.map +1 -1
- package/dist/v2/components/Busy.js +22 -27
- package/dist/v2/components/Busy.js.map +1 -1
- package/dist/v2/components/Button.js +39 -50
- package/dist/v2/components/Button.js.map +1 -1
- package/dist/v2/components/CategoryTag.d.ts.map +1 -1
- package/dist/v2/components/CategoryTag.js +49 -32
- package/dist/v2/components/CategoryTag.js.map +1 -1
- package/dist/v2/components/Checkbox.js +39 -45
- package/dist/v2/components/Checkbox.js.map +1 -1
- package/dist/v2/components/Chip.js +29 -42
- package/dist/v2/components/Chip.js.map +1 -1
- package/dist/v2/components/Combobox.js +122 -144
- package/dist/v2/components/Combobox.js.map +1 -1
- package/dist/v2/components/CommandPalette.js +138 -225
- package/dist/v2/components/CommandPalette.js.map +1 -1
- package/dist/v2/components/ConfirmDialog.js +46 -56
- package/dist/v2/components/ConfirmDialog.js.map +1 -1
- package/dist/v2/components/DatePicker.js +81 -86
- package/dist/v2/components/DatePicker.js.map +1 -1
- package/dist/v2/components/DateRangePicker.js +77 -87
- package/dist/v2/components/DateRangePicker.js.map +1 -1
- package/dist/v2/components/DateTimePicker.js +84 -91
- package/dist/v2/components/DateTimePicker.js.map +1 -1
- package/dist/v2/components/Drawer.d.ts.map +1 -1
- package/dist/v2/components/Drawer.js +93 -88
- package/dist/v2/components/Drawer.js.map +1 -1
- package/dist/v2/components/Dropzone.js +150 -196
- package/dist/v2/components/Dropzone.js.map +1 -1
- package/dist/v2/components/EmptyState.js +18 -20
- package/dist/v2/components/EmptyState.js.map +1 -1
- package/dist/v2/components/FavoriteToggle.js +28 -39
- package/dist/v2/components/FavoriteToggle.js.map +1 -1
- package/dist/v2/components/Field.d.ts +62 -4
- package/dist/v2/components/Field.d.ts.map +1 -1
- package/dist/v2/components/Field.js +169 -70
- package/dist/v2/components/Field.js.map +1 -1
- package/dist/v2/components/FieldError.js +18 -21
- package/dist/v2/components/FieldError.js.map +1 -1
- package/dist/v2/components/FieldHelp.js +40 -60
- package/dist/v2/components/FieldHelp.js.map +1 -1
- package/dist/v2/components/FileCard.js +27 -31
- package/dist/v2/components/FileCard.js.map +1 -1
- package/dist/v2/components/FilterTab.js +30 -38
- package/dist/v2/components/FilterTab.js.map +1 -1
- package/dist/v2/components/ForbiddenPage.d.ts +25 -1
- package/dist/v2/components/ForbiddenPage.d.ts.map +1 -1
- package/dist/v2/components/ForbiddenPage.js +37 -17
- package/dist/v2/components/ForbiddenPage.js.map +1 -1
- package/dist/v2/components/FormGrid.js +53 -59
- package/dist/v2/components/FormGrid.js.map +1 -1
- package/dist/v2/components/FormikDisplay.d.ts +50 -1
- package/dist/v2/components/FormikDisplay.d.ts.map +1 -1
- package/dist/v2/components/FormikDisplay.js +108 -33
- package/dist/v2/components/FormikDisplay.js.map +1 -1
- package/dist/v2/components/Input.d.ts +40 -0
- package/dist/v2/components/Input.d.ts.map +1 -1
- package/dist/v2/components/Input.js +81 -41
- package/dist/v2/components/Input.js.map +1 -1
- package/dist/v2/components/KPICard.js +57 -67
- package/dist/v2/components/KPICard.js.map +1 -1
- package/dist/v2/components/KPIStrip.js +16 -22
- package/dist/v2/components/KPIStrip.js.map +1 -1
- package/dist/v2/components/KV.js +25 -31
- package/dist/v2/components/KV.js.map +1 -1
- package/dist/v2/components/KVGrid.js +19 -26
- package/dist/v2/components/KVGrid.js.map +1 -1
- package/dist/v2/components/Layout.js +91 -120
- package/dist/v2/components/Layout.js.map +1 -1
- package/dist/v2/components/MobileRowCard.js +79 -91
- package/dist/v2/components/MobileRowCard.js.map +1 -1
- package/dist/v2/components/Modal.js +61 -69
- package/dist/v2/components/Modal.js.map +1 -1
- package/dist/v2/components/NetworkErrorPage.d.ts +19 -1
- package/dist/v2/components/NetworkErrorPage.d.ts.map +1 -1
- package/dist/v2/components/NetworkErrorPage.js +38 -21
- package/dist/v2/components/NetworkErrorPage.js.map +1 -1
- package/dist/v2/components/NotFoundPage.d.ts +17 -1
- package/dist/v2/components/NotFoundPage.d.ts.map +1 -1
- package/dist/v2/components/NotFoundPage.js +37 -18
- package/dist/v2/components/NotFoundPage.js.map +1 -1
- package/dist/v2/components/NumberInput.js +88 -118
- package/dist/v2/components/NumberInput.js.map +1 -1
- package/dist/v2/components/OverflowMenu.js +38 -56
- package/dist/v2/components/OverflowMenu.js.map +1 -1
- package/dist/v2/components/PdfViewer.js +34 -45
- package/dist/v2/components/PdfViewer.js.map +1 -1
- package/dist/v2/components/ProgressBar.js +42 -49
- package/dist/v2/components/ProgressBar.js.map +1 -1
- package/dist/v2/components/Radio.js +59 -67
- package/dist/v2/components/Radio.js.map +1 -1
- package/dist/v2/components/SectionErrorBoundary.js +90 -135
- package/dist/v2/components/SectionErrorBoundary.js.map +1 -1
- package/dist/v2/components/SectionHeader.js +34 -41
- package/dist/v2/components/SectionHeader.js.map +1 -1
- package/dist/v2/components/Segmented.js +69 -93
- package/dist/v2/components/Segmented.js.map +1 -1
- package/dist/v2/components/Select.d.ts +26 -2
- package/dist/v2/components/Select.d.ts.map +1 -1
- package/dist/v2/components/Select.js +120 -155
- package/dist/v2/components/Select.js.map +1 -1
- package/dist/v2/components/ServerErrorPage.d.ts +27 -1
- package/dist/v2/components/ServerErrorPage.d.ts.map +1 -1
- package/dist/v2/components/ServerErrorPage.js +37 -20
- package/dist/v2/components/ServerErrorPage.js.map +1 -1
- package/dist/v2/components/Skeleton.js +86 -100
- package/dist/v2/components/Skeleton.js.map +1 -1
- package/dist/v2/components/SkipLink.js +9 -12
- package/dist/v2/components/SkipLink.js.map +1 -1
- package/dist/v2/components/Spinner.js +16 -25
- package/dist/v2/components/Spinner.js.map +1 -1
- package/dist/v2/components/Status.js +18 -29
- package/dist/v2/components/Status.js.map +1 -1
- package/dist/v2/components/Stepper.js +80 -82
- package/dist/v2/components/Stepper.js.map +1 -1
- package/dist/v2/components/Surface.js +34 -49
- package/dist/v2/components/Surface.js.map +1 -1
- package/dist/v2/components/Switch.js +29 -37
- package/dist/v2/components/Switch.js.map +1 -1
- package/dist/v2/components/TabPanel.d.ts +17 -0
- package/dist/v2/components/TabPanel.d.ts.map +1 -0
- package/dist/v2/components/TabPanel.js +90 -0
- package/dist/v2/components/TabPanel.js.map +1 -0
- package/dist/v2/components/Tabs.d.ts +25 -0
- package/dist/v2/components/Tabs.d.ts.map +1 -1
- package/dist/v2/components/Tabs.js +53 -29
- package/dist/v2/components/Tabs.js.map +1 -1
- package/dist/v2/components/TelInput.js +80 -115
- package/dist/v2/components/TelInput.js.map +1 -1
- package/dist/v2/components/Textarea.js +26 -35
- package/dist/v2/components/Textarea.js.map +1 -1
- package/dist/v2/components/TimePicker.js +62 -74
- package/dist/v2/components/TimePicker.js.map +1 -1
- package/dist/v2/components/Toast.js +119 -174
- package/dist/v2/components/Toast.js.map +1 -1
- package/dist/v2/components/Tooltip.js +23 -38
- package/dist/v2/components/Tooltip.js.map +1 -1
- package/dist/v2/components/_ErrorPageBody.js +15 -16
- package/dist/v2/components/_ErrorPageBody.js.map +1 -1
- package/dist/v2/components/_pickerShared.js +5 -5
- package/dist/v2/components/_pickerShared.js.map +1 -1
- package/dist/v2/components/index.d.ts +40 -1
- package/dist/v2/components/index.d.ts.map +1 -1
- package/dist/v2/components/index.js +153 -136
- package/dist/v2/components/index.js.map +1 -1
- package/dist/v2/hooks/index.d.ts +65 -0
- package/dist/v2/hooks/index.d.ts.map +1 -1
- package/dist/v2/hooks/index.js +63 -24
- package/dist/v2/hooks/index.js.map +1 -1
- package/dist/v2/hooks/useAppliedFilters.d.ts +102 -0
- package/dist/v2/hooks/useAppliedFilters.d.ts.map +1 -0
- package/dist/v2/hooks/useAppliedFilters.js +117 -0
- package/dist/v2/hooks/useAppliedFilters.js.map +1 -0
- package/dist/v2/hooks/useDebouncedCallback.d.ts +64 -0
- package/dist/v2/hooks/useDebouncedCallback.d.ts.map +1 -0
- package/dist/v2/hooks/useDebouncedCallback.js +87 -0
- package/dist/v2/hooks/useDebouncedCallback.js.map +1 -0
- package/dist/v2/hooks/useDelayedFlag.js +6 -20
- package/dist/v2/hooks/useDelayedFlag.js.map +1 -1
- package/dist/v2/hooks/useDensity.d.ts.map +1 -1
- package/dist/v2/hooks/useDensity.js +14 -18
- package/dist/v2/hooks/useDensity.js.map +1 -1
- package/dist/v2/hooks/useFocusFirstError.js +26 -34
- package/dist/v2/hooks/useFocusFirstError.js.map +1 -1
- package/dist/v2/hooks/useFocusOnRouteChange.d.ts +65 -0
- package/dist/v2/hooks/useFocusOnRouteChange.d.ts.map +1 -0
- package/dist/v2/hooks/useFocusOnRouteChange.js +88 -0
- package/dist/v2/hooks/useFocusOnRouteChange.js.map +1 -0
- package/dist/v2/hooks/useFocusTrap.js +20 -24
- package/dist/v2/hooks/useFocusTrap.js.map +1 -1
- package/dist/v2/hooks/useFormAutoSave.d.ts +4 -4
- package/dist/v2/hooks/useFormAutoSave.d.ts.map +1 -1
- package/dist/v2/hooks/useFormAutoSave.js +39 -54
- package/dist/v2/hooks/useFormAutoSave.js.map +1 -1
- package/dist/v2/hooks/useFormCompletionProgress.d.ts +1 -1
- package/dist/v2/hooks/useFormCompletionProgress.d.ts.map +1 -1
- package/dist/v2/hooks/useFormCompletionProgress.js +33 -52
- package/dist/v2/hooks/useFormCompletionProgress.js.map +1 -1
- package/dist/v2/hooks/useKeyboardShortcuts.d.ts +25 -0
- package/dist/v2/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/v2/hooks/useKeyboardShortcuts.js +132 -0
- package/dist/v2/hooks/useKeyboardShortcuts.js.map +1 -0
- package/dist/v2/hooks/usePrefersReducedMotion.d.ts +56 -0
- package/dist/v2/hooks/usePrefersReducedMotion.d.ts.map +1 -0
- package/dist/v2/hooks/usePrefersReducedMotion.js +105 -0
- package/dist/v2/hooks/usePrefersReducedMotion.js.map +1 -0
- package/dist/v2/hooks/useResolvedDensity.js +5 -13
- package/dist/v2/hooks/useResolvedDensity.js.map +1 -1
- package/dist/v2/hooks/useSortedRows.js +4 -6
- package/dist/v2/hooks/useSortedRows.js.map +1 -1
- package/dist/v2/hooks/useTabLoading.js +7 -22
- package/dist/v2/hooks/useTabLoading.js.map +1 -1
- package/dist/v2/index.js +143 -145
- package/dist/v2/index.js.map +1 -1
- package/dist/v2/modalContext.js +2 -2
- package/dist/v2/modalContext.js.map +1 -1
- package/dist/v2/models/favorite.d.ts +8 -9
- package/dist/v2/models/favorite.d.ts.map +1 -1
- package/dist/v2/models/favorite.js.map +1 -1
- package/dist/v2/models/index.js +4 -4
- package/dist/v2/models/index.js.map +1 -1
- package/dist/v2/models/personalization.d.ts +44 -48
- package/dist/v2/models/personalization.d.ts.map +1 -1
- package/dist/v2/models/personalization.js.map +1 -1
- package/dist/v2/models/referentiel.d.ts +32 -50
- package/dist/v2/models/referentiel.d.ts.map +1 -1
- package/dist/v2/models/referentiel.js.map +1 -1
- package/dist/v2/models/savedFilter.d.ts +8 -17
- package/dist/v2/models/savedFilter.d.ts.map +1 -1
- package/dist/v2/models/savedFilter.js.map +1 -1
- package/dist/v2/patterns/ActionBar.js +152 -187
- package/dist/v2/patterns/ActionBar.js.map +1 -1
- package/dist/v2/patterns/AppMain.d.ts +109 -0
- package/dist/v2/patterns/AppMain.d.ts.map +1 -0
- package/dist/v2/patterns/AppMain.js +115 -0
- package/dist/v2/patterns/AppMain.js.map +1 -0
- package/dist/v2/patterns/BulkActionBar.js +40 -42
- package/dist/v2/patterns/BulkActionBar.js.map +1 -1
- package/dist/v2/patterns/ChartFigure.d.ts +124 -0
- package/dist/v2/patterns/ChartFigure.d.ts.map +1 -0
- package/dist/v2/patterns/ChartFigure.js +159 -0
- package/dist/v2/patterns/ChartFigure.js.map +1 -0
- package/dist/v2/patterns/CollapsibleDataGrid.js +138 -174
- package/dist/v2/patterns/CollapsibleDataGrid.js.map +1 -1
- package/dist/v2/patterns/ColumnsToggle.js +60 -94
- package/dist/v2/patterns/ColumnsToggle.js.map +1 -1
- package/dist/v2/patterns/DataGrid.d.ts.map +1 -1
- package/dist/v2/patterns/DataGrid.js +262 -297
- package/dist/v2/patterns/DataGrid.js.map +1 -1
- package/dist/v2/patterns/DataGridSettingsMenu.d.ts +12 -0
- package/dist/v2/patterns/DataGridSettingsMenu.d.ts.map +1 -1
- package/dist/v2/patterns/DataGridSettingsMenu.js +104 -121
- package/dist/v2/patterns/DataGridSettingsMenu.js.map +1 -1
- package/dist/v2/patterns/DataGridToolbar.js +103 -106
- package/dist/v2/patterns/DataGridToolbar.js.map +1 -1
- package/dist/v2/patterns/DataGridVirtualized.js +179 -217
- package/dist/v2/patterns/DataGridVirtualized.js.map +1 -1
- package/dist/v2/patterns/DeleteResourceConfirmDialog.js +32 -35
- package/dist/v2/patterns/DeleteResourceConfirmDialog.js.map +1 -1
- package/dist/v2/patterns/DetailSplit.d.ts +87 -0
- package/dist/v2/patterns/DetailSplit.d.ts.map +1 -0
- package/dist/v2/patterns/DetailSplit.js +116 -0
- package/dist/v2/patterns/DetailSplit.js.map +1 -0
- package/dist/v2/patterns/FavoriteColumn.js +22 -23
- package/dist/v2/patterns/FavoriteColumn.js.map +1 -1
- package/dist/v2/patterns/FavoritesFilter.js +36 -44
- package/dist/v2/patterns/FavoritesFilter.js.map +1 -1
- package/dist/v2/patterns/FilterTabBar.d.ts +28 -0
- package/dist/v2/patterns/FilterTabBar.d.ts.map +1 -0
- package/dist/v2/patterns/FilterTabBar.js +120 -0
- package/dist/v2/patterns/FilterTabBar.js.map +1 -0
- package/dist/v2/patterns/FormErrorSummary.js +20 -23
- package/dist/v2/patterns/FormErrorSummary.js.map +1 -1
- package/dist/v2/patterns/FormPageShell.js +53 -50
- package/dist/v2/patterns/FormPageShell.js.map +1 -1
- package/dist/v2/patterns/FormSection.d.ts +8 -3
- package/dist/v2/patterns/FormSection.d.ts.map +1 -1
- package/dist/v2/patterns/FormSection.js +44 -51
- package/dist/v2/patterns/FormSection.js.map +1 -1
- package/dist/v2/patterns/FormikCheckbox.js +36 -45
- package/dist/v2/patterns/FormikCheckbox.js.map +1 -1
- package/dist/v2/patterns/FormikCheckboxGroup.d.ts +17 -1
- package/dist/v2/patterns/FormikCheckboxGroup.d.ts.map +1 -1
- package/dist/v2/patterns/FormikCheckboxGroup.js +62 -65
- package/dist/v2/patterns/FormikCheckboxGroup.js.map +1 -1
- package/dist/v2/patterns/FormikCombobox.js +55 -72
- package/dist/v2/patterns/FormikCombobox.js.map +1 -1
- package/dist/v2/patterns/FormikDatePicker.js +50 -64
- package/dist/v2/patterns/FormikDatePicker.js.map +1 -1
- package/dist/v2/patterns/FormikDateTimePicker.js +50 -64
- package/dist/v2/patterns/FormikDateTimePicker.js.map +1 -1
- package/dist/v2/patterns/FormikErrorFocus.js +25 -26
- package/dist/v2/patterns/FormikErrorFocus.js.map +1 -1
- package/dist/v2/patterns/FormikErrorSummary.d.ts +74 -0
- package/dist/v2/patterns/FormikErrorSummary.d.ts.map +1 -0
- package/dist/v2/patterns/FormikErrorSummary.js +97 -0
- package/dist/v2/patterns/FormikErrorSummary.js.map +1 -0
- package/dist/v2/patterns/FormikFile.d.ts +14 -1
- package/dist/v2/patterns/FormikFile.d.ts.map +1 -1
- package/dist/v2/patterns/FormikFile.js +99 -83
- package/dist/v2/patterns/FormikFile.js.map +1 -1
- package/dist/v2/patterns/FormikInput.js +45 -58
- package/dist/v2/patterns/FormikInput.js.map +1 -1
- package/dist/v2/patterns/FormikRadioGroup.js +45 -56
- package/dist/v2/patterns/FormikRadioGroup.js.map +1 -1
- package/dist/v2/patterns/FormikReferentielField.d.ts +12 -1
- package/dist/v2/patterns/FormikReferentielField.d.ts.map +1 -1
- package/dist/v2/patterns/FormikReferentielField.js +54 -64
- package/dist/v2/patterns/FormikReferentielField.js.map +1 -1
- package/dist/v2/patterns/FormikSelect.js +70 -92
- package/dist/v2/patterns/FormikSelect.js.map +1 -1
- package/dist/v2/patterns/FormikTextarea.js +35 -51
- package/dist/v2/patterns/FormikTextarea.js.map +1 -1
- package/dist/v2/patterns/KeyboardShortcutsHelp.js +60 -80
- package/dist/v2/patterns/KeyboardShortcutsHelp.js.map +1 -1
- package/dist/v2/patterns/NetworkErrorBanner.js +13 -16
- package/dist/v2/patterns/NetworkErrorBanner.js.map +1 -1
- package/dist/v2/patterns/PageContent.js +17 -20
- package/dist/v2/patterns/PageContent.js.map +1 -1
- package/dist/v2/patterns/PreviewDrawer.d.ts +49 -0
- package/dist/v2/patterns/PreviewDrawer.d.ts.map +1 -0
- package/dist/v2/patterns/PreviewDrawer.js +159 -0
- package/dist/v2/patterns/PreviewDrawer.js.map +1 -0
- package/dist/v2/patterns/ReferentielField.d.ts +86 -2
- package/dist/v2/patterns/ReferentielField.d.ts.map +1 -1
- package/dist/v2/patterns/ReferentielField.js +347 -327
- package/dist/v2/patterns/ReferentielField.js.map +1 -1
- package/dist/v2/patterns/RowFavoriteToggle.d.ts +6 -0
- package/dist/v2/patterns/RowFavoriteToggle.d.ts.map +1 -1
- package/dist/v2/patterns/RowFavoriteToggle.js +38 -30
- package/dist/v2/patterns/RowFavoriteToggle.js.map +1 -1
- package/dist/v2/patterns/SaveFilterDialog.js +50 -77
- package/dist/v2/patterns/SaveFilterDialog.js.map +1 -1
- package/dist/v2/patterns/SavedFiltersMenu.js +89 -107
- package/dist/v2/patterns/SavedFiltersMenu.js.map +1 -1
- package/dist/v2/patterns/SkeletonPageShell.js +122 -143
- package/dist/v2/patterns/SkeletonPageShell.js.map +1 -1
- package/dist/v2/patterns/SortableHeader.js +35 -57
- package/dist/v2/patterns/SortableHeader.js.map +1 -1
- package/dist/v2/patterns/Tour.js +121 -142
- package/dist/v2/patterns/Tour.js.map +1 -1
- package/dist/v2/patterns/_dataGridShared.d.ts.map +1 -1
- package/dist/v2/patterns/_dataGridShared.js +131 -147
- package/dist/v2/patterns/_dataGridShared.js.map +1 -1
- package/dist/v2/patterns/_pickerSerialisation.js +9 -10
- package/dist/v2/patterns/_pickerSerialisation.js.map +1 -1
- package/dist/v2/patterns/_sort.js +17 -33
- package/dist/v2/patterns/_sort.js.map +1 -1
- package/dist/v2/patterns/_useColumnReorder.js +124 -163
- package/dist/v2/patterns/_useColumnReorder.js.map +1 -1
- package/dist/v2/patterns/_useColumnResize.js +80 -99
- package/dist/v2/patterns/_useColumnResize.js.map +1 -1
- package/dist/v2/patterns/filterCriteria.d.ts +78 -0
- package/dist/v2/patterns/filterCriteria.d.ts.map +1 -0
- package/dist/v2/patterns/filterCriteria.js +110 -0
- package/dist/v2/patterns/filterCriteria.js.map +1 -0
- package/dist/v2/patterns/index.d.ts +160 -0
- package/dist/v2/patterns/index.d.ts.map +1 -1
- package/dist/v2/patterns/index.js +157 -79
- package/dist/v2/patterns/index.js.map +1 -1
- package/dist/v2/patterns/rowActions.d.ts +150 -0
- package/dist/v2/patterns/rowActions.d.ts.map +1 -0
- package/dist/v2/patterns/rowActions.js +232 -0
- package/dist/v2/patterns/rowActions.js.map +1 -0
- package/dist/v2/personalization/PersonalizationProvider.d.ts.map +1 -1
- package/dist/v2/personalization/PersonalizationProvider.js +57 -53
- package/dist/v2/personalization/PersonalizationProvider.js.map +1 -1
- package/dist/v2/personalization/adapters/_storageKey.js +5 -5
- package/dist/v2/personalization/adapters/_storageKey.js.map +1 -1
- package/dist/v2/personalization/adapters/createLocalStorageAdapter.js +25 -24
- package/dist/v2/personalization/adapters/createLocalStorageAdapter.js.map +1 -1
- package/dist/v2/personalization/adapters/createMemoryAdapter.js +14 -14
- package/dist/v2/personalization/adapters/createMemoryAdapter.js.map +1 -1
- package/dist/v2/personalization/adapters/index.js +5 -5
- package/dist/v2/personalization/adapters/index.js.map +1 -1
- package/dist/v2/personalization/capabilities/favorites.js +39 -62
- package/dist/v2/personalization/capabilities/favorites.js.map +1 -1
- package/dist/v2/personalization/capabilities/favoritesView.js +25 -37
- package/dist/v2/personalization/capabilities/favoritesView.js.map +1 -1
- package/dist/v2/personalization/capabilities/gridPreferences.js +31 -36
- package/dist/v2/personalization/capabilities/gridPreferences.js.map +1 -1
- package/dist/v2/personalization/capabilities/index.js +12 -12
- package/dist/v2/personalization/capabilities/reviveSavedCriteria.d.ts +88 -0
- package/dist/v2/personalization/capabilities/reviveSavedCriteria.d.ts.map +1 -0
- package/dist/v2/personalization/capabilities/reviveSavedCriteria.js +126 -0
- package/dist/v2/personalization/capabilities/reviveSavedCriteria.js.map +1 -0
- package/dist/v2/personalization/capabilities/savedFilters.js +93 -100
- package/dist/v2/personalization/capabilities/savedFilters.js.map +1 -1
- package/dist/v2/personalization/createPersonalizationStore.d.ts.map +1 -1
- package/dist/v2/personalization/createPersonalizationStore.js +81 -182
- package/dist/v2/personalization/createPersonalizationStore.js.map +1 -1
- package/dist/v2/personalization/index.d.ts +16 -0
- package/dist/v2/personalization/index.d.ts.map +1 -1
- package/dist/v2/personalization/index.js +30 -23
- package/dist/v2/personalization/index.js.map +1 -1
- package/dist/v2/personalization/personalizationContext.js +10 -12
- package/dist/v2/personalization/personalizationContext.js.map +1 -1
- package/dist/v2/personalization/schema.js +8 -9
- package/dist/v2/personalization/schema.js.map +1 -1
- package/dist/v2/referentiel/ReferentielProvider.js +31 -45
- package/dist/v2/referentiel/ReferentielProvider.js.map +1 -1
- package/dist/v2/referentiel/index.js +11 -13
- package/dist/v2/referentiel/index.js.map +1 -1
- package/dist/v2/referentiel/types.d.ts +105 -0
- package/dist/v2/referentiel/types.d.ts.map +1 -0
- package/dist/v2/referentiel/types.js +6 -0
- package/dist/v2/referentiel/types.js.map +1 -0
- package/dist/v2/referentiel/useReferentielClient.js +13 -16
- package/dist/v2/referentiel/useReferentielClient.js.map +1 -1
- package/dist/v2/referentiel/useReferentielOptions.d.ts +7 -17
- package/dist/v2/referentiel/useReferentielOptions.d.ts.map +1 -1
- package/dist/v2/referentiel/useReferentielOptions.js +63 -120
- package/dist/v2/referentiel/useReferentielOptions.js.map +1 -1
- package/dist/v2/referentiel/useReferentielSearch.d.ts +7 -48
- package/dist/v2/referentiel/useReferentielSearch.d.ts.map +1 -1
- package/dist/v2/referentiel/useReferentielSearch.js +40 -95
- package/dist/v2/referentiel/useReferentielSearch.js.map +1 -1
- package/dist/v2/theme/_brand.js +12 -26
- package/dist/v2/theme/_brand.js.map +1 -1
- package/dist/v2/theme/_brandSecondary.js +12 -26
- package/dist/v2/theme/_brandSecondary.js.map +1 -1
- package/dist/v2/theme/createPortnetTheme.js +41 -49
- package/dist/v2/theme/createPortnetTheme.js.map +1 -1
- package/dist/v2/theme/cssVariables.d.ts +3 -3
- package/dist/v2/theme/cssVariables.d.ts.map +1 -1
- package/dist/v2/theme/cssVariables.js +65 -70
- package/dist/v2/theme/cssVariables.js.map +1 -1
- package/dist/v2/theme/index.js +10 -10
- package/dist/v2/theme/index.js.map +1 -1
- package/dist/v2/tokens/breakpoints.js +16 -16
- package/dist/v2/tokens/breakpoints.js.map +1 -1
- package/dist/v2/tokens/chart.d.ts +103 -0
- package/dist/v2/tokens/chart.d.ts.map +1 -0
- package/dist/v2/tokens/chart.js +270 -0
- package/dist/v2/tokens/chart.js.map +1 -0
- package/dist/v2/tokens/colors.js +24 -24
- package/dist/v2/tokens/colors.js.map +1 -1
- package/dist/v2/tokens/density.d.ts +104 -0
- package/dist/v2/tokens/density.d.ts.map +1 -1
- package/dist/v2/tokens/density.js +67 -12
- package/dist/v2/tokens/density.js.map +1 -1
- package/dist/v2/tokens/index.d.ts +50 -1
- package/dist/v2/tokens/index.d.ts.map +1 -1
- package/dist/v2/tokens/index.js +116 -68
- package/dist/v2/tokens/index.js.map +1 -1
- package/dist/v2/tokens/motion.js +16 -22
- package/dist/v2/tokens/motion.js.map +1 -1
- package/dist/v2/tokens/radius.js +3 -3
- package/dist/v2/tokens/radius.js.map +1 -1
- package/dist/v2/tokens/shadows.js +8 -8
- package/dist/v2/tokens/shadows.js.map +1 -1
- package/dist/v2/tokens/spacing.js +4 -4
- package/dist/v2/tokens/spacing.js.map +1 -1
- package/dist/v2/tokens/state.js +3 -3
- package/dist/v2/tokens/state.js.map +1 -1
- package/dist/v2/tokens/statusPalette.js +21 -23
- package/dist/v2/tokens/statusPalette.js.map +1 -1
- package/dist/v2/tokens/tokens.json +6 -1
- package/dist/v2/tokens/typography.js +15 -15
- package/dist/v2/tokens/typography.js.map +1 -1
- package/dist/v2/tokens/zIndex.js +3 -3
- package/dist/v2/tokens/zIndex.js.map +1 -1
- package/dist/v2/types/datagrid.d.ts +9 -1
- package/dist/v2/types/datagrid.d.ts.map +1 -1
- package/dist/v2/types/datagrid.js.map +1 -1
- package/dist/v2/types/index.js +2 -2
- package/dist/v2/types/index.js.map +1 -1
- package/dist/v2/utils/apiError.js +16 -37
- package/dist/v2/utils/apiError.js.map +1 -1
- package/dist/v2/utils/contrast.js +31 -32
- package/dist/v2/utils/contrast.js.map +1 -1
- package/dist/v2/utils/cx.js +7 -27
- package/dist/v2/utils/cx.js.map +1 -1
- package/dist/v2/utils/fileDownload.js +25 -28
- package/dist/v2/utils/fileDownload.js.map +1 -1
- package/dist/v2/utils/fileValidation.d.ts +116 -0
- package/dist/v2/utils/fileValidation.d.ts.map +1 -0
- package/dist/v2/utils/fileValidation.js +220 -0
- package/dist/v2/utils/fileValidation.js.map +1 -0
- package/dist/v2/utils/fmtDate.d.ts +103 -0
- package/dist/v2/utils/fmtDate.d.ts.map +1 -0
- package/dist/v2/utils/fmtDate.js +119 -0
- package/dist/v2/utils/fmtDate.js.map +1 -0
- package/dist/v2/utils/fmtMoney.d.ts +3 -3
- package/dist/v2/utils/fmtMoney.d.ts.map +1 -1
- package/dist/v2/utils/fmtMoney.js +9 -11
- package/dist/v2/utils/fmtMoney.js.map +1 -1
- package/dist/v2/utils/formikErrors.d.ts +67 -0
- package/dist/v2/utils/formikErrors.d.ts.map +1 -0
- package/dist/v2/utils/formikErrors.js +85 -0
- package/dist/v2/utils/formikErrors.js.map +1 -0
- package/dist/v2/utils/index.d.ts +5 -0
- package/dist/v2/utils/index.d.ts.map +1 -1
- package/dist/v2/utils/index.js +67 -18
- package/dist/v2/utils/index.js.map +1 -1
- package/dist/v2/utils/mergeLabels.js +9 -14
- package/dist/v2/utils/mergeLabels.js.map +1 -1
- package/dist/v2/utils/networkStatus.js +14 -14
- package/dist/v2/utils/networkStatus.js.map +1 -1
- package/package.json +26 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBar.js","names":["React","_interopRequireWildcard","require","_Box","_interopRequireDefault","_Typography","_IconButton","_ArrowBack","_ChevronRight","_Home","_useMediaQuery","_styles","_Button","_OverflowMenu","_tokens","_mergeLabels","_jsxRuntime","_excluded","_excluded2","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","i","getOwnPropertySymbols","sourceSymbolKeys","length","indexOf","propertyIsEnumerable","sourceKeys","keys","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","F","s","n","done","value","e","_e2","f","TypeError","normalCompletion","didErr","err","step","next","_e3","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_nonIterableSpread","iter","from","_arrayLikeToArray","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_nonIterableRest","minLen","toString","slice","constructor","name","test","len","arr2","_i","_s","_e","_x","_r","_arr","_n","_d","push","ownKeys","object","enumerableOnly","symbols","filter","sym","enumerable","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","DEFAULT_LABELS","freeze","back","breadcrumb","home","expandCrumbs","CRUMB_LINK_BASE_SX","display","alignItems","gap","textDecoration","cursor","borderRadius","padding","margin","background","outline","outlineOffset","CRUMB_ELLIPSIS_SX","border","font","fontSize","lineHeight","isStructuredCrumb","entry","isValidElement","getCrumbColor","isLast","useAccent","renderCrumbContent","baseColor","baseFontWeight","jsx","component","sx","color","fontWeight","children","label","icon","onClick","href","ariaLabel","computedAria","jsxs","type","ActionBar","_ref","title","subtitle","primary","_ref$secondary","secondary","_ref$overflow","overflow","_ref$maxVisible","maxVisible","meta","_ref$sticky","sticky","_ref$surface","surface","_ref$collapseAfter","collapseAfter","labels","L","mergeLabels","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","_React$useState","useState","_React$useState2","crumbsExpanded","setCrumbsExpanded","effectiveBreadcrumb","useMemo","base","homeItem","concat","shouldCollapse","Math","max","orderedAll","list","_slot","_iterator","_step","_iterator2","_step2","visibleActions","hiddenActions","visiblePrimary","a","visibleOthers","hasNavRow","accentOrFgMuted","accentOrFg","resolveVariant","action","variant","renderButton","actionIcon","iconRight","disabled","loading","_variant","rest","size","lastCrumbIndex","chevron","transform","renderCrumbItems","map","b","first","last","borderBottom","xs","sm","lg","position","top","zIndex","marginBottom","minWidth","listStyle","flexWrap","justifyContent","flex","whiteSpace","textOverflow","width","flexShrink","actions","_ref2","WebkitBoxOrient","WebkitLineClamp","marginTop","_default","exports"],"sources":["../../../src/lib/v2/patterns/ActionBar.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport Box from \"@mui/material/Box\";\r\nimport Typography from \"@mui/material/Typography\";\r\nimport IconButton from \"@mui/material/IconButton\";\r\nimport ArrowBackIcon from \"@mui/icons-material/ArrowBack\";\r\nimport ChevronRightIcon from \"@mui/icons-material/ChevronRight\";\r\nimport HomeIcon from \"@mui/icons-material/Home\";\r\nimport useMediaQuery from \"@mui/material/useMediaQuery\";\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport Button from \"../components/Button\";\r\nimport type { ButtonProps } from \"../components/Button\";\r\nimport OverflowMenu from \"../components/OverflowMenu\";\r\nimport { zIndex } from \"../tokens\";\r\nimport { mergeLabels } from \"../utils/mergeLabels\";\r\n\r\n/**\r\n * ActionBar - Portnet UI v2 (pattern)\r\n *\r\n * Charter §07 — render order (left → right):\r\n *\r\n * [ghost/secondary…] [primary] […overflow]\r\n *\r\n * Slot-based variant resolution:\r\n * slot=\"primary\" → Button variant=\"primary\"\r\n * slot=\"secondary\" → Button variant={action.variant || \"secondary\"}\r\n * slot=\"overflow\" → Button variant={action.variant || \"ghost\"}\r\n *\r\n * maxVisible (default 2):\r\n * orderedAll = [primary, ...secondary, ...overflow]\r\n * first maxVisible → visible buttons / rest → \"…\"\r\n *\r\n * Breadcrumb collapse (R-RS.5):\r\n * Below the `sm` breakpoint TOKEN (< 481px) a long trail used to\r\n * flex-wrap onto several lines, pushing the page title down. When the\r\n * trail has more than `collapseAfter` crumbs (default 3) the middle is\r\n * collapsed to a single \"…\" toggle that shows [first] › … › [last];\r\n * pressing it expands the full trail in place. Desktop always renders\r\n * the full trail. Keeps the nav to one line on phones (WCAG 1.4.10\r\n * Reflow) without hiding navigation from AT — the toggle is a real\r\n * button with an accessible name.\r\n *\r\n * ── `surface` DEFAULTS TO false — A PAGE HEADER IS NOT A CARD ────────\r\n *\r\n * The platform rule is that a page header sits on the page background, never\r\n * on a white card. This default used to be `true`, which meant every call site\r\n * that did not opt out rendered a --surface card with a bottom border — making\r\n * the exception the norm across the GU modules.\r\n *\r\n * Note that `surface` drives TWO things, because `useAccent` is derived from\r\n * it: the background/border AND the colour of the title, icon, back-arrow and\r\n * crumb trail (--accent when non-surface, --fg / --fg-subtle when surfaced).\r\n * They are deliberately coupled — an accent title on a white card reads as a\r\n * link, and a near-black title on the page background loses the visual anchor\r\n * the header needs. Decoupling them would need a separate prop and a design\r\n * decision, not a default change.\r\n *\r\n * Pass surface={true} to opt back in to the card treatment where a header is\r\n * genuinely nested inside a panel rather than heading a page.\r\n *\r\n * ── Subtitle visibility (S-01) ───────────────────────────────────────\r\n *\r\n * The subtitle renders at EVERY breakpoint. It used to be hidden below the `sm`\r\n * token via `display: none`, which made every consuming module fail the\r\n * mandatory \"Never omit subtitles\" pattern on phones — and removed the text from\r\n * the accessibility tree, not just from the layout. On `xs` it is now bounded to\r\n * two lines with a line-clamp instead; `sm` and above are unchanged. See the\r\n * inline note at the render site for the full rationale.\r\n */\r\n\r\n/** Variant union, derived from Button (single source of truth). */\r\ntype ActionVariant = NonNullable<ButtonProps[\"variant\"]>;\r\n\r\n/** Structured breadcrumb entry (as opposed to a plain renderable node). */\r\nexport interface BreadcrumbItem {\r\n label?: React.ReactNode | undefined;\r\n icon?: React.ReactNode | undefined;\r\n onClick?: (() => void) | undefined;\r\n href?: string | undefined;\r\n ariaLabel?: string | undefined;\r\n}\r\n\r\n/** A breadcrumb entry is either a plain node or a structured item. */\r\nexport type CrumbEntry = React.ReactNode | BreadcrumbItem;\r\n\r\n/** Action descriptor for primary / secondary / overflow slots. */\r\nexport interface ActionBarAction {\r\n label?: React.ReactNode | undefined;\r\n icon?: React.ReactNode | undefined;\r\n iconRight?: React.ReactNode | undefined;\r\n onClick?: (() => void) | undefined;\r\n disabled?: boolean | undefined;\r\n loading?: boolean | undefined;\r\n variant?: ActionVariant | undefined;\r\n /** Overflow-only (surfaced when the action falls into the OverflowMenu). */\r\n shortcut?: React.ReactNode | undefined;\r\n danger?: boolean | undefined;\r\n divider?: boolean | undefined;\r\n /**\r\n * ARIA attributes, forwarded verbatim to the rendered `<Button>`.\r\n *\r\n * `renderButton` destructures the known fields above and spreads the\r\n * REMAINDER onto the Button (`{...rest}`), so any `aria-*` key a host supplies\r\n * already reaches the DOM at runtime. This pattern index signature declares\r\n * that contract, which was previously implemented but undeclared — forcing\r\n * strict-mode consumers to either drop the attribute (losing the behaviour) or\r\n * assert their way past the type.\r\n *\r\n * Primary use case: `aria-keyshortcuts` on a page's create CTA, so screen\r\n * reader users discover a keyboard shortcut on focus (WCAG 2.1.4).\r\n */\r\n [ariaAttribute: `aria-${string}`]: string | undefined;\r\n}\r\n\r\ntype SlotName = \"primary\" | \"secondary\" | \"overflow\";\r\ntype SlottedAction = ActionBarAction & { _slot: SlotName };\r\n\r\nexport interface ActionBarLabels {\r\n back?: string | undefined;\r\n breadcrumb?: string | undefined;\r\n home?: string | undefined;\r\n expandCrumbs?: string | undefined;\r\n}\r\n\r\nexport interface ActionBarProps {\r\n /** Home crumb: a callback (onClick) or an href string. */\r\n home?: string | (() => void) | undefined;\r\n /** Back-arrow callback (top-bar). */\r\n back?: (() => void) | undefined;\r\n breadcrumb?: CrumbEntry[] | undefined;\r\n title: React.ReactNode;\r\n subtitle?: React.ReactNode | undefined;\r\n icon?: React.ReactNode | undefined;\r\n primary?: ActionBarAction | undefined;\r\n secondary?: ActionBarAction[] | undefined;\r\n overflow?: ActionBarAction[] | undefined;\r\n /** Number of actions shown before the rest collapse into the menu. @default 2 */\r\n maxVisible?: number | undefined;\r\n meta?: React.ReactNode | undefined;\r\n sticky?: boolean | undefined;\r\n /**\r\n * Render the header as a raised white card instead of on the page\r\n * background.\r\n *\r\n * @default false — a page header sits on the background (platform rule).\r\n *\r\n * Also governs text colour: when false, the title, icon, back-arrow and\r\n * crumbs render in --accent; when true they render in --fg / --fg-subtle.\r\n * See the note in the module docstring for why the two are coupled.\r\n *\r\n * Pass true only where the header genuinely heads a panel rather than a page.\r\n */\r\n surface?: boolean | undefined;\r\n /** Collapse the breadcrumb middle on mobile past this many crumbs. @default 3 */\r\n collapseAfter?: number | undefined;\r\n labels?: ActionBarLabels | undefined;\r\n}\r\n\r\nconst DEFAULT_LABELS = Object.freeze({\r\n back: \"Retour\",\r\n breadcrumb: \"Fil d'Ariane\",\r\n home: \"Accueil\",\r\n expandCrumbs: \"Afficher le chemin complet\",\r\n});\r\n\r\nconst CRUMB_LINK_BASE_SX = Object.freeze({\r\n display: \"inline-flex\",\r\n alignItems: \"center\",\r\n gap: \"var(--s-1)\",\r\n textDecoration: \"none\",\r\n cursor: \"pointer\",\r\n borderRadius: \"var(--r-sm)\",\r\n padding: \"2px 4px\",\r\n margin: \"-2px -4px\",\r\n \"&:hover\": { background: \"var(--bg-hover)\" },\r\n \"&:focus-visible\": { outline: \"2px solid var(--accent)\", outlineOffset: \"var(--pui-outline-offset-inset, 0)\" },\r\n});\r\n\r\nconst CRUMB_ELLIPSIS_SX = Object.freeze({\r\n ...CRUMB_LINK_BASE_SX,\r\n background: \"none\",\r\n border: \"none\",\r\n font: \"inherit\",\r\n fontSize: \"var(--text-xs)\",\r\n lineHeight: 1,\r\n});\r\n\r\nfunction isStructuredCrumb(entry: CrumbEntry): entry is BreadcrumbItem {\r\n return entry != null && typeof entry === \"object\" && !React.isValidElement(entry);\r\n}\r\n\r\nfunction getCrumbColor(isLast: boolean, useAccent: boolean): string {\r\n if (useAccent) return \"var(--accent)\";\r\n return isLast ? \"var(--fg)\" : \"var(--fg-subtle)\";\r\n}\r\n\r\nfunction renderCrumbContent(entry: CrumbEntry, isLast: boolean, useAccent: boolean) {\r\n const baseColor = getCrumbColor(isLast, useAccent);\r\n const baseFontWeight = isLast ? \"var(--fw-semibold)\" : \"var(--fw-regular)\";\r\n\r\n if (!isStructuredCrumb(entry)) {\r\n return (\r\n <Box component=\"span\" aria-current={isLast ? \"page\" : undefined}\r\n sx={{ color: baseColor, fontWeight: baseFontWeight }}>\r\n {entry}\r\n </Box>\r\n );\r\n }\r\n\r\n const { label, icon, onClick, href, ariaLabel } = entry;\r\n const computedAria = ariaLabel || (typeof label === \"string\" ? label : undefined);\r\n\r\n if (isLast) {\r\n return (\r\n <Box component=\"span\" aria-current=\"page\"\r\n sx={{ color: baseColor, fontWeight: baseFontWeight, display: \"inline-flex\", alignItems: \"center\", gap: \"var(--s-1)\" }}>\r\n {icon}{label}\r\n </Box>\r\n );\r\n }\r\n\r\n if (href) {\r\n return (\r\n <Box component=\"a\" href={href} onClick={onClick} aria-label={computedAria}\r\n sx={{ ...CRUMB_LINK_BASE_SX, color: baseColor }}>\r\n {icon}{label}\r\n </Box>\r\n );\r\n }\r\n\r\n if (onClick) {\r\n return (\r\n <Box component=\"button\" type=\"button\" onClick={onClick} aria-label={computedAria}\r\n sx={{ ...CRUMB_LINK_BASE_SX, color: baseColor, background: \"none\", border: \"none\", font: \"inherit\", fontSize: \"var(--text-xs)\" }}>\r\n {icon}{label}\r\n </Box>\r\n );\r\n }\r\n\r\n return (\r\n <Box component=\"span\"\r\n sx={{ color: baseColor, fontWeight: baseFontWeight, display: \"inline-flex\", alignItems: \"center\", gap: \"var(--s-1)\" }}>\r\n {icon}{label}\r\n </Box>\r\n );\r\n}\r\n\r\nfunction ActionBar({\r\n home,\r\n back,\r\n breadcrumb,\r\n title,\r\n subtitle,\r\n icon,\r\n primary,\r\n secondary = [],\r\n overflow = [],\r\n maxVisible = 2,\r\n meta,\r\n sticky = true,\r\n /*\r\n * DEFAULT FLIPPED TO false. A page header sits on the page background, never\r\n * on a white card — see the note in the module docstring. Opt back in with\r\n * surface={true} for a header that heads a panel rather than a page.\r\n */\r\n surface = false,\r\n collapseAfter = 3,\r\n labels,\r\n}: ActionBarProps) {\r\n const L = mergeLabels(DEFAULT_LABELS, labels);\r\n\r\n // R-RS.5 — collapse the middle of a long breadcrumb on mobile (< sm\r\n // token, 481px). Reads the live theme so a host breakpoint override is\r\n // honoured. `crumbsExpanded` lets the user reveal the full trail in place.\r\n const theme = useTheme();\r\n const isMobile = useMediaQuery(theme.breakpoints.down(\"sm\"));\r\n const [crumbsExpanded, setCrumbsExpanded] = React.useState(false);\r\n\r\n const effectiveBreadcrumb = React.useMemo<CrumbEntry[]>(() => {\r\n const base = breadcrumb || [];\r\n if (!home) return base;\r\n const homeItem: BreadcrumbItem = {\r\n icon: <HomeIcon fontSize=\"small\" />,\r\n ariaLabel: L.home,\r\n ...(typeof home === \"function\" ? { onClick: home } : { href: home }),\r\n };\r\n return [homeItem, ...base];\r\n }, [home, breadcrumb, L.home]); // eslint-disable-line react-hooks/exhaustive-deps\r\n\r\n // Decide whether to collapse: only on mobile, only when the trail is\r\n // longer than collapseAfter, and only while not user-expanded.\r\n const shouldCollapse =\r\n isMobile &&\r\n !crumbsExpanded &&\r\n effectiveBreadcrumb.length > Math.max(2, collapseAfter);\r\n\r\n const orderedAll = React.useMemo<SlottedAction[]>(() => {\r\n const list: SlottedAction[] = [];\r\n if (primary) list.push({ ...primary, _slot: \"primary\" });\r\n for (const s of (secondary || [])) list.push({ ...s, _slot: \"secondary\" });\r\n for (const o of (overflow || [])) list.push({ ...o, _slot: \"overflow\" });\r\n return list;\r\n }, [primary, secondary, overflow]);\r\n\r\n const visibleActions = orderedAll.slice(0, maxVisible);\r\n const hiddenActions = orderedAll.slice(maxVisible);\r\n\r\n const visiblePrimary = visibleActions.filter((a) => a._slot === \"primary\");\r\n const visibleOthers = visibleActions.filter((a) => a._slot !== \"primary\");\r\n\r\n const hasNavRow = !!(back || effectiveBreadcrumb.length > 0);\r\n const useAccent = !surface;\r\n const accentOrFgMuted = useAccent ? \"var(--accent)\" : \"var(--fg-muted)\";\r\n const accentOrFg = useAccent ? \"var(--accent)\" : \"var(--fg)\";\r\n\r\n function resolveVariant(action: SlottedAction): ActionVariant {\r\n if (action._slot === \"primary\") return \"primary\";\r\n if (action._slot === \"overflow\") return action.variant || \"ghost\";\r\n return action.variant || \"secondary\";\r\n }\r\n\r\n function renderButton(action: SlottedAction, i: React.Key) {\r\n const { _slot, label, icon: actionIcon, iconRight, onClick, disabled, loading, variant: _variant, ...rest } = action;\r\n return (\r\n <Button key={i} variant={resolveVariant(action)} size=\"sm\"\r\n icon={actionIcon} iconRight={iconRight}\r\n onClick={onClick} disabled={disabled} {...rest}\r\n {...(loading !== undefined ? { loading } : {})}>\r\n {label}\r\n </Button>\r\n );\r\n }\r\n\r\n const lastCrumbIndex = effectiveBreadcrumb.length - 1;\r\n const chevron = (\r\n <ChevronRightIcon aria-hidden=\"true\"\r\n sx={{ fontSize: \"var(--text-xs)\", color: useAccent ? \"var(--accent)\" : \"var(--fg-subtle)\", transform: \"scaleX(var(--pui-rtl-flip, 1))\" }} />\r\n );\r\n\r\n /* Render either the full trail or the collapsed [first] › … › [last].\r\n * Each branch returns an array of <li> rows so the <ol> stays valid. */\r\n function renderCrumbItems() {\r\n if (!shouldCollapse) {\r\n return effectiveBreadcrumb.map((b, i) => {\r\n const isLast = i === lastCrumbIndex;\r\n return (\r\n <Box component=\"li\" key={i} sx={{ display: \"inline-flex\", alignItems: \"center\", gap: 0.5 }}>\r\n {renderCrumbContent(b, isLast, useAccent)}\r\n {!isLast && chevron}\r\n </Box>\r\n );\r\n });\r\n }\r\n\r\n // Collapsed: first crumb, an expand toggle, then the last crumb.\r\n const first = effectiveBreadcrumb[0];\r\n const last = effectiveBreadcrumb[lastCrumbIndex];\r\n return [\r\n <Box component=\"li\" key=\"first\" sx={{ display: \"inline-flex\", alignItems: \"center\", gap: 0.5 }}>\r\n {renderCrumbContent(first, false, useAccent)}\r\n {chevron}\r\n </Box>,\r\n <Box component=\"li\" key=\"ellipsis\" sx={{ display: \"inline-flex\", alignItems: \"center\", gap: 0.5 }}>\r\n <Box component=\"button\" type=\"button\"\r\n onClick={() => setCrumbsExpanded(true)}\r\n aria-label={L.expandCrumbs} aria-expanded=\"false\"\r\n sx={{ ...CRUMB_ELLIPSIS_SX, color: useAccent ? \"var(--accent)\" : \"var(--fg-subtle)\" }}>\r\n …\r\n </Box>\r\n {chevron}\r\n </Box>,\r\n <Box component=\"li\" key=\"last\" sx={{ display: \"inline-flex\", alignItems: \"center\", gap: 0.5 }}>\r\n {renderCrumbContent(last, true, useAccent)}\r\n </Box>,\r\n ];\r\n }\r\n\r\n return (\r\n <Box\r\n sx={{\r\n background: surface ? \"var(--surface)\" : \"var(--bg)\",\r\n borderBottom: surface ? \"1px solid var(--border)\" : \"none\",\r\n padding: { xs: \"var(--s-3)\", sm: \"var(--s-3) var(--s-4)\", lg: \"var(--s-3) var(--s-6)\" },\r\n position: sticky ? \"sticky\" : \"static\",\r\n top: 0,\r\n zIndex: zIndex.sticky,\r\n }}\r\n >\r\n {/* Breadcrumb / back row */}\r\n {hasNavRow && (\r\n <Box sx={{ display: \"flex\", alignItems: \"center\", gap: 1, marginBottom: 1 }}>\r\n {back && (\r\n <IconButton size=\"small\" onClick={back} aria-label={L.back}\r\n sx={{ color: accentOrFgMuted, \"& svg\": { transform: \"scaleX(var(--pui-rtl-flip, 1))\" } }}>\r\n <ArrowBackIcon fontSize=\"small\" />\r\n </IconButton>\r\n )}\r\n {effectiveBreadcrumb.length > 0 && (\r\n <Box component=\"nav\" aria-label={L.breadcrumb} sx={{ minWidth: 0 }}>\r\n <Box component=\"ol\"\r\n sx={{ listStyle: \"none\", margin: 0, padding: 0, display: \"flex\", alignItems: \"center\", flexWrap: { xs: \"nowrap\", sm: \"wrap\" }, gap: 0.5, fontSize: \"var(--text-xs)\", color: useAccent ? \"var(--accent)\" : \"var(--fg-subtle)\", minWidth: 0 }}>\r\n {renderCrumbItems()}\r\n </Box>\r\n </Box>\r\n )}\r\n </Box>\r\n )}\r\n\r\n {/* Main row */}\r\n <Box sx={{ display: \"flex\", alignItems: { xs: \"flex-start\", sm: \"center\" }, justifyContent: \"space-between\", flexWrap: { xs: \"wrap\", sm: \"nowrap\" }, gap: { xs: \"var(--s-2)\", sm: 2 } }}>\r\n <Box sx={{ minWidth: 0, flex: 1, display: \"flex\", alignItems: \"center\", gap: 1, color: accentOrFg, \"& svg\": { color: \"inherit\" } }}>\r\n {icon}\r\n <Typography component=\"h1\"\r\n sx={{ fontSize: { xs: 18, sm: 22 }, fontWeight: \"var(--fw-bold)\", color: accentOrFg, lineHeight: \"var(--lh-tight)\", whiteSpace: { xs: \"normal\", sm: \"nowrap\" }, overflow: { xs: \"visible\", sm: \"hidden\" }, textOverflow: { xs: \"clip\", sm: \"ellipsis\" } }}>\r\n {title}\r\n </Typography>\r\n {meta}\r\n </Box>\r\n\r\n {/* Actions: [secondary/ghost] [primary] [...] */}\r\n <Box sx={{ display: \"flex\", alignItems: \"center\", gap: 1, width: { xs: \"100%\", sm: \"auto\" }, justifyContent: { xs: \"flex-end\", sm: \"flex-start\" }, flexShrink: 0 }}>\r\n {visibleOthers.map((action, i) => renderButton(action, i))}\r\n {visiblePrimary.map((action, i) => renderButton(action, `p${i}`))}\r\n {hiddenActions.length > 0 && (\r\n <OverflowMenu actions={hiddenActions.map(({ _slot: _s, ...a }) => a)} />\r\n )}\r\n </Box>\r\n </Box>\r\n\r\n {subtitle && (\r\n <Typography\r\n sx={{\r\n /* ── S-01 — THE SUBTITLE IS RENDERED AT EVERY BREAKPOINT ──────────\r\n *\r\n * This was `display: { xs: \"none\", sm: \"block\" }`, which removed the\r\n * subtitle below the sm token (481 px) from the layout AND from the\r\n * accessibility tree. On a 320-414 px viewport it did not exist for\r\n * any user, sighted or not.\r\n *\r\n * That conflicted with three normative rules at once:\r\n * - Platform Mandatory UX Patterns / Page Subtitle: \"Mandatory.\r\n * Every page must contain a meaningful subtitle describing the\r\n * purpose of the page. NEVER OMIT SUBTITLES.\"\r\n * - the same document lists `missing subtitle` under Forbidden\r\n * Practices, i.e. a certification failure;\r\n * - Responsive Pattern mandates support from 320 px, so `xs` is the\r\n * primary mobile range, not an edge case.\r\n *\r\n * Charter 7.1 bis also puts \"Page title (H1) + subtitle + CTA\" in the\r\n * canonical vertical order, with no breakpoint exemption.\r\n *\r\n * The original motivation was presumably vertical space on phones.\r\n * That concern is met by BOUNDING the height instead of deleting the\r\n * content -- two lines, mirroring the EmptyState rule already in this\r\n * library (\"description <= 2 lignes\"). Clamped text stays in the\r\n * accessibility tree, so screen-reader users get the full string.\r\n *\r\n * SCOPED TO xs ON PURPOSE. At sm and above `display: block` makes\r\n * line-clamp inert, so the rendering is byte-identical to before this\r\n * fix. Clamping desktop too would be a NEW restriction on existing\r\n * behaviour and could truncate a long subtitle that a module renders\r\n * over three lines today. Zero regression surface for the ~150\r\n * services consuming this component.\r\n *\r\n * Raised from procuration-portnet-fe (Batch 3), fixed here rather\r\n * than worked around locally: a module-side subtitle would duplicate\r\n * a shared component's responsibility (R-2.1 / R-AI.2) and would need\r\n * local breakpoint logic to avoid doubling at >= sm.\r\n * ──────────────────────────────────────────────────────────────── */\r\n display: { xs: \"-webkit-box\", sm: \"block\" },\r\n WebkitBoxOrient: \"vertical\",\r\n WebkitLineClamp: 2,\r\n overflow: { xs: \"hidden\", sm: \"visible\" },\r\n fontSize: \"var(--text-sm)\",\r\n color: \"var(--fg-muted)\",\r\n marginTop: 0.5,\r\n }}\r\n >\r\n {subtitle}\r\n </Typography>\r\n )}\r\n </Box>\r\n );\r\n}\r\n\r\nexport default ActionBar;\r\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,UAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,aAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,KAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,cAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAR,sBAAA,CAAAF,OAAA;AAEA,IAAAW,aAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AACA,IAAAa,YAAA,GAAAb,OAAA;AAAmD,IAAAc,WAAA,GAAAd,OAAA;AAAA,IAAAe,SAAA;EAAAC,UAAA;AAAA,SAAAd,uBAAAe,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAArB,wBAAAkB,GAAA,EAA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,UAAA;YAAA,OAAOoN,CAAC;UAAA;QAAE,CAAE,CACxE;MAAA,CACE,CAAC;IAAA,CACH,CAAC,EAEL/C,QAAQ,iBACP,IAAAvK,WAAA,CAAAsJ,GAAA,EAACjK,WAAA,WAAU;MACTmK,EAAE,EAAE;QACF;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;QACY3B,OAAO,EAAE;UAAEkH,EAAE,EAAE,aAAa;UAAEC,EAAE,EAAE;QAAQ,CAAC;QAC3CiB,eAAe,EAAE,UAAU;QAC3BC,eAAe,EAAE,CAAC;QAClBtF,QAAQ,EAAE;UAAEmE,EAAE,EAAE,QAAQ;UAAEC,EAAE,EAAE;QAAU,CAAC;QACzCrG,QAAQ,EAAE,gBAAgB;QAC1Bc,KAAK,EAAE,iBAAiB;QACxB0G,SAAS,EAAE;MACb,CAAE;MAAAxG,QAAA,EAEDY;IAAQ,CACC,CACb;EAAA,CACE,CAAC;AAEV;AAAC,IAAA6F,QAAA,GAAAC,OAAA,cAEcjG,SAAS","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ActionBar.js","names":["React","_interopRequireWildcard","require","_Box","_interopRequireDefault","_Typography","_IconButton","_ArrowBack","_ChevronRight","_Home","_useMediaQuery","_styles","_Button","_OverflowMenu","_tokens","_mergeLabels","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEFAULT_LABELS","freeze","back","breadcrumb","home","expandCrumbs","CRUMB_LINK_BASE_SX","display","alignItems","gap","textDecoration","cursor","borderRadius","padding","margin","background","outline","outlineOffset","CRUMB_ELLIPSIS_SX","border","font","fontSize","lineHeight","isStructuredCrumb","entry","isValidElement","getCrumbColor","isLast","useAccent","renderCrumbContent","baseColor","baseFontWeight","jsx","component","undefined","sx","color","fontWeight","children","label","icon","onClick","href","ariaLabel","computedAria","jsxs","type","ActionBar","title","subtitle","primary","secondary","overflow","maxVisible","meta","sticky","surface","collapseAfter","labels","L","mergeLabels","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","crumbsExpanded","setCrumbsExpanded","useState","effectiveBreadcrumb","useMemo","base","homeItem","shouldCollapse","length","Math","max","orderedAll","list","push","_slot","s","visibleActions","slice","hiddenActions","visiblePrimary","filter","a","visibleOthers","hasNavRow","accentOrFgMuted","accentOrFg","resolveVariant","action","variant","renderButton","actionIcon","iconRight","disabled","loading","_variant","rest","size","lastCrumbIndex","chevron","transform","renderCrumbItems","map","b","first","last","borderBottom","xs","sm","lg","position","top","zIndex","marginBottom","minWidth","listStyle","flexWrap","justifyContent","flex","whiteSpace","textOverflow","width","flexShrink","actions","_s","WebkitBoxOrient","WebkitLineClamp","marginTop","_default","exports"],"sources":["../../../src/lib/v2/patterns/ActionBar.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport Box from \"@mui/material/Box\";\r\nimport Typography from \"@mui/material/Typography\";\r\nimport IconButton from \"@mui/material/IconButton\";\r\nimport ArrowBackIcon from \"@mui/icons-material/ArrowBack\";\r\nimport ChevronRightIcon from \"@mui/icons-material/ChevronRight\";\r\nimport HomeIcon from \"@mui/icons-material/Home\";\r\nimport useMediaQuery from \"@mui/material/useMediaQuery\";\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport Button from \"../components/Button\";\r\nimport type { ButtonProps } from \"../components/Button\";\r\nimport OverflowMenu from \"../components/OverflowMenu\";\r\nimport { zIndex } from \"../tokens\";\r\nimport { mergeLabels } from \"../utils/mergeLabels\";\r\n\r\n/**\r\n * ActionBar - Portnet UI v2 (pattern)\r\n *\r\n * Charter §07 — render order (left → right):\r\n *\r\n * [ghost/secondary…] [primary] […overflow]\r\n *\r\n * Slot-based variant resolution:\r\n * slot=\"primary\" → Button variant=\"primary\"\r\n * slot=\"secondary\" → Button variant={action.variant || \"secondary\"}\r\n * slot=\"overflow\" → Button variant={action.variant || \"ghost\"}\r\n *\r\n * maxVisible (default 2):\r\n * orderedAll = [primary, ...secondary, ...overflow]\r\n * first maxVisible → visible buttons / rest → \"…\"\r\n *\r\n * Breadcrumb collapse (R-RS.5):\r\n * Below the `sm` breakpoint TOKEN (< 481px) a long trail used to\r\n * flex-wrap onto several lines, pushing the page title down. When the\r\n * trail has more than `collapseAfter` crumbs (default 3) the middle is\r\n * collapsed to a single \"…\" toggle that shows [first] › … › [last];\r\n * pressing it expands the full trail in place. Desktop always renders\r\n * the full trail. Keeps the nav to one line on phones (WCAG 1.4.10\r\n * Reflow) without hiding navigation from AT — the toggle is a real\r\n * button with an accessible name.\r\n *\r\n * ── `surface` DEFAULTS TO false — A PAGE HEADER IS NOT A CARD ────────\r\n *\r\n * The platform rule is that a page header sits on the page background, never\r\n * on a white card. This default used to be `true`, which meant every call site\r\n * that did not opt out rendered a --surface card with a bottom border — making\r\n * the exception the norm across the GU modules.\r\n *\r\n * Note that `surface` drives TWO things, because `useAccent` is derived from\r\n * it: the background/border AND the colour of the title, icon, back-arrow and\r\n * crumb trail (--accent when non-surface, --fg / --fg-subtle when surfaced).\r\n * They are deliberately coupled — an accent title on a white card reads as a\r\n * link, and a near-black title on the page background loses the visual anchor\r\n * the header needs. Decoupling them would need a separate prop and a design\r\n * decision, not a default change.\r\n *\r\n * Pass surface={true} to opt back in to the card treatment where a header is\r\n * genuinely nested inside a panel rather than heading a page.\r\n *\r\n * ── Subtitle visibility (S-01) ───────────────────────────────────────\r\n *\r\n * The subtitle renders at EVERY breakpoint. It used to be hidden below the `sm`\r\n * token via `display: none`, which made every consuming module fail the\r\n * mandatory \"Never omit subtitles\" pattern on phones — and removed the text from\r\n * the accessibility tree, not just from the layout. On `xs` it is now bounded to\r\n * two lines with a line-clamp instead; `sm` and above are unchanged. See the\r\n * inline note at the render site for the full rationale.\r\n */\r\n\r\n/** Variant union, derived from Button (single source of truth). */\r\ntype ActionVariant = NonNullable<ButtonProps[\"variant\"]>;\r\n\r\n/** Structured breadcrumb entry (as opposed to a plain renderable node). */\r\nexport interface BreadcrumbItem {\r\n label?: React.ReactNode | undefined;\r\n icon?: React.ReactNode | undefined;\r\n onClick?: (() => void) | undefined;\r\n href?: string | undefined;\r\n ariaLabel?: string | undefined;\r\n}\r\n\r\n/** A breadcrumb entry is either a plain node or a structured item. */\r\nexport type CrumbEntry = React.ReactNode | BreadcrumbItem;\r\n\r\n/** Action descriptor for primary / secondary / overflow slots. */\r\nexport interface ActionBarAction {\r\n label?: React.ReactNode | undefined;\r\n icon?: React.ReactNode | undefined;\r\n iconRight?: React.ReactNode | undefined;\r\n onClick?: (() => void) | undefined;\r\n disabled?: boolean | undefined;\r\n loading?: boolean | undefined;\r\n variant?: ActionVariant | undefined;\r\n /** Overflow-only (surfaced when the action falls into the OverflowMenu). */\r\n shortcut?: React.ReactNode | undefined;\r\n danger?: boolean | undefined;\r\n divider?: boolean | undefined;\r\n /**\r\n * ARIA attributes, forwarded verbatim to the rendered `<Button>`.\r\n *\r\n * `renderButton` destructures the known fields above and spreads the\r\n * REMAINDER onto the Button (`{...rest}`), so any `aria-*` key a host supplies\r\n * already reaches the DOM at runtime. This pattern index signature declares\r\n * that contract, which was previously implemented but undeclared — forcing\r\n * strict-mode consumers to either drop the attribute (losing the behaviour) or\r\n * assert their way past the type.\r\n *\r\n * Primary use case: `aria-keyshortcuts` on a page's create CTA, so screen\r\n * reader users discover a keyboard shortcut on focus (WCAG 2.1.4).\r\n */\r\n [ariaAttribute: `aria-${string}`]: string | undefined;\r\n}\r\n\r\ntype SlotName = \"primary\" | \"secondary\" | \"overflow\";\r\ntype SlottedAction = ActionBarAction & { _slot: SlotName };\r\n\r\nexport interface ActionBarLabels {\r\n back?: string | undefined;\r\n breadcrumb?: string | undefined;\r\n home?: string | undefined;\r\n expandCrumbs?: string | undefined;\r\n}\r\n\r\nexport interface ActionBarProps {\r\n /** Home crumb: a callback (onClick) or an href string. */\r\n home?: string | (() => void) | undefined;\r\n /** Back-arrow callback (top-bar). */\r\n back?: (() => void) | undefined;\r\n breadcrumb?: CrumbEntry[] | undefined;\r\n title: React.ReactNode;\r\n subtitle?: React.ReactNode | undefined;\r\n icon?: React.ReactNode | undefined;\r\n primary?: ActionBarAction | undefined;\r\n secondary?: ActionBarAction[] | undefined;\r\n overflow?: ActionBarAction[] | undefined;\r\n /** Number of actions shown before the rest collapse into the menu. @default 2 */\r\n maxVisible?: number | undefined;\r\n meta?: React.ReactNode | undefined;\r\n sticky?: boolean | undefined;\r\n /**\r\n * Render the header as a raised white card instead of on the page\r\n * background.\r\n *\r\n * @default false — a page header sits on the background (platform rule).\r\n *\r\n * Also governs text colour: when false, the title, icon, back-arrow and\r\n * crumbs render in --accent; when true they render in --fg / --fg-subtle.\r\n * See the note in the module docstring for why the two are coupled.\r\n *\r\n * Pass true only where the header genuinely heads a panel rather than a page.\r\n */\r\n surface?: boolean | undefined;\r\n /** Collapse the breadcrumb middle on mobile past this many crumbs. @default 3 */\r\n collapseAfter?: number | undefined;\r\n labels?: ActionBarLabels | undefined;\r\n}\r\n\r\nconst DEFAULT_LABELS = Object.freeze({\r\n back: \"Retour\",\r\n breadcrumb: \"Fil d'Ariane\",\r\n home: \"Accueil\",\r\n expandCrumbs: \"Afficher le chemin complet\",\r\n});\r\n\r\nconst CRUMB_LINK_BASE_SX = Object.freeze({\r\n display: \"inline-flex\",\r\n alignItems: \"center\",\r\n gap: \"var(--s-1)\",\r\n textDecoration: \"none\",\r\n cursor: \"pointer\",\r\n borderRadius: \"var(--r-sm)\",\r\n padding: \"2px 4px\",\r\n margin: \"-2px -4px\",\r\n \"&:hover\": { background: \"var(--bg-hover)\" },\r\n \"&:focus-visible\": { outline: \"2px solid var(--accent)\", outlineOffset: \"var(--pui-outline-offset-inset, 0)\" },\r\n});\r\n\r\nconst CRUMB_ELLIPSIS_SX = Object.freeze({\r\n ...CRUMB_LINK_BASE_SX,\r\n background: \"none\",\r\n border: \"none\",\r\n font: \"inherit\",\r\n fontSize: \"var(--text-xs)\",\r\n lineHeight: 1,\r\n});\r\n\r\nfunction isStructuredCrumb(entry: CrumbEntry): entry is BreadcrumbItem {\r\n return entry != null && typeof entry === \"object\" && !React.isValidElement(entry);\r\n}\r\n\r\nfunction getCrumbColor(isLast: boolean, useAccent: boolean): string {\r\n if (useAccent) return \"var(--accent)\";\r\n return isLast ? \"var(--fg)\" : \"var(--fg-subtle)\";\r\n}\r\n\r\nfunction renderCrumbContent(entry: CrumbEntry, isLast: boolean, useAccent: boolean) {\r\n const baseColor = getCrumbColor(isLast, useAccent);\r\n const baseFontWeight = isLast ? \"var(--fw-semibold)\" : \"var(--fw-regular)\";\r\n\r\n if (!isStructuredCrumb(entry)) {\r\n return (\r\n <Box component=\"span\" aria-current={isLast ? \"page\" : undefined}\r\n sx={{ color: baseColor, fontWeight: baseFontWeight }}>\r\n {entry}\r\n </Box>\r\n );\r\n }\r\n\r\n const { label, icon, onClick, href, ariaLabel } = entry;\r\n const computedAria = ariaLabel || (typeof label === \"string\" ? label : undefined);\r\n\r\n if (isLast) {\r\n return (\r\n <Box component=\"span\" aria-current=\"page\"\r\n sx={{ color: baseColor, fontWeight: baseFontWeight, display: \"inline-flex\", alignItems: \"center\", gap: \"var(--s-1)\" }}>\r\n {icon}{label}\r\n </Box>\r\n );\r\n }\r\n\r\n if (href) {\r\n return (\r\n <Box component=\"a\" href={href} onClick={onClick} aria-label={computedAria}\r\n sx={{ ...CRUMB_LINK_BASE_SX, color: baseColor }}>\r\n {icon}{label}\r\n </Box>\r\n );\r\n }\r\n\r\n if (onClick) {\r\n return (\r\n <Box component=\"button\" type=\"button\" onClick={onClick} aria-label={computedAria}\r\n sx={{ ...CRUMB_LINK_BASE_SX, color: baseColor, background: \"none\", border: \"none\", font: \"inherit\", fontSize: \"var(--text-xs)\" }}>\r\n {icon}{label}\r\n </Box>\r\n );\r\n }\r\n\r\n return (\r\n <Box component=\"span\"\r\n sx={{ color: baseColor, fontWeight: baseFontWeight, display: \"inline-flex\", alignItems: \"center\", gap: \"var(--s-1)\" }}>\r\n {icon}{label}\r\n </Box>\r\n );\r\n}\r\n\r\nfunction ActionBar({\r\n home,\r\n back,\r\n breadcrumb,\r\n title,\r\n subtitle,\r\n icon,\r\n primary,\r\n secondary = [],\r\n overflow = [],\r\n maxVisible = 2,\r\n meta,\r\n sticky = true,\r\n /*\r\n * DEFAULT FLIPPED TO false. A page header sits on the page background, never\r\n * on a white card — see the note in the module docstring. Opt back in with\r\n * surface={true} for a header that heads a panel rather than a page.\r\n */\r\n surface = false,\r\n collapseAfter = 3,\r\n labels,\r\n}: ActionBarProps) {\r\n const L = mergeLabels(DEFAULT_LABELS, labels);\r\n\r\n // R-RS.5 — collapse the middle of a long breadcrumb on mobile (< sm\r\n // token, 481px). Reads the live theme so a host breakpoint override is\r\n // honoured. `crumbsExpanded` lets the user reveal the full trail in place.\r\n const theme = useTheme();\r\n const isMobile = useMediaQuery(theme.breakpoints.down(\"sm\"));\r\n const [crumbsExpanded, setCrumbsExpanded] = React.useState(false);\r\n\r\n const effectiveBreadcrumb = React.useMemo<CrumbEntry[]>(() => {\r\n const base = breadcrumb || [];\r\n if (!home) return base;\r\n const homeItem: BreadcrumbItem = {\r\n icon: <HomeIcon fontSize=\"small\" />,\r\n ariaLabel: L.home,\r\n ...(typeof home === \"function\" ? { onClick: home } : { href: home }),\r\n };\r\n return [homeItem, ...base];\r\n }, [home, breadcrumb, L.home]);\r\n\r\n // Decide whether to collapse: only on mobile, only when the trail is\r\n // longer than collapseAfter, and only while not user-expanded.\r\n const shouldCollapse =\r\n isMobile &&\r\n !crumbsExpanded &&\r\n effectiveBreadcrumb.length > Math.max(2, collapseAfter);\r\n\r\n const orderedAll = React.useMemo<SlottedAction[]>(() => {\r\n const list: SlottedAction[] = [];\r\n if (primary) list.push({ ...primary, _slot: \"primary\" });\r\n for (const s of (secondary || [])) list.push({ ...s, _slot: \"secondary\" });\r\n for (const o of (overflow || [])) list.push({ ...o, _slot: \"overflow\" });\r\n return list;\r\n }, [primary, secondary, overflow]);\r\n\r\n const visibleActions = orderedAll.slice(0, maxVisible);\r\n const hiddenActions = orderedAll.slice(maxVisible);\r\n\r\n const visiblePrimary = visibleActions.filter((a) => a._slot === \"primary\");\r\n const visibleOthers = visibleActions.filter((a) => a._slot !== \"primary\");\r\n\r\n const hasNavRow = !!(back || effectiveBreadcrumb.length > 0);\r\n const useAccent = !surface;\r\n const accentOrFgMuted = useAccent ? \"var(--accent)\" : \"var(--fg-muted)\";\r\n const accentOrFg = useAccent ? \"var(--accent)\" : \"var(--fg)\";\r\n\r\n function resolveVariant(action: SlottedAction): ActionVariant {\r\n if (action._slot === \"primary\") return \"primary\";\r\n if (action._slot === \"overflow\") return action.variant || \"ghost\";\r\n return action.variant || \"secondary\";\r\n }\r\n\r\n function renderButton(action: SlottedAction, i: React.Key) {\r\n const { _slot, label, icon: actionIcon, iconRight, onClick, disabled, loading, variant: _variant, ...rest } = action;\r\n return (\r\n <Button key={i} variant={resolveVariant(action)} size=\"sm\"\r\n icon={actionIcon} iconRight={iconRight}\r\n onClick={onClick} disabled={disabled} {...rest}\r\n {...(loading !== undefined ? { loading } : {})}>\r\n {label}\r\n </Button>\r\n );\r\n }\r\n\r\n const lastCrumbIndex = effectiveBreadcrumb.length - 1;\r\n const chevron = (\r\n <ChevronRightIcon aria-hidden=\"true\"\r\n sx={{ fontSize: \"var(--text-xs)\", color: useAccent ? \"var(--accent)\" : \"var(--fg-subtle)\", transform: \"scaleX(var(--pui-rtl-flip, 1))\" }} />\r\n );\r\n\r\n /* Render either the full trail or the collapsed [first] › … › [last].\r\n * Each branch returns an array of <li> rows so the <ol> stays valid. */\r\n function renderCrumbItems() {\r\n if (!shouldCollapse) {\r\n return effectiveBreadcrumb.map((b, i) => {\r\n const isLast = i === lastCrumbIndex;\r\n return (\r\n <Box component=\"li\" key={i} sx={{ display: \"inline-flex\", alignItems: \"center\", gap: 0.5 }}>\r\n {renderCrumbContent(b, isLast, useAccent)}\r\n {!isLast && chevron}\r\n </Box>\r\n );\r\n });\r\n }\r\n\r\n // Collapsed: first crumb, an expand toggle, then the last crumb.\r\n const first = effectiveBreadcrumb[0];\r\n const last = effectiveBreadcrumb[lastCrumbIndex];\r\n return [\r\n <Box component=\"li\" key=\"first\" sx={{ display: \"inline-flex\", alignItems: \"center\", gap: 0.5 }}>\r\n {renderCrumbContent(first, false, useAccent)}\r\n {chevron}\r\n </Box>,\r\n <Box component=\"li\" key=\"ellipsis\" sx={{ display: \"inline-flex\", alignItems: \"center\", gap: 0.5 }}>\r\n <Box component=\"button\" type=\"button\"\r\n onClick={() => setCrumbsExpanded(true)}\r\n aria-label={L.expandCrumbs} aria-expanded=\"false\"\r\n sx={{ ...CRUMB_ELLIPSIS_SX, color: useAccent ? \"var(--accent)\" : \"var(--fg-subtle)\" }}>\r\n …\r\n </Box>\r\n {chevron}\r\n </Box>,\r\n <Box component=\"li\" key=\"last\" sx={{ display: \"inline-flex\", alignItems: \"center\", gap: 0.5 }}>\r\n {renderCrumbContent(last, true, useAccent)}\r\n </Box>,\r\n ];\r\n }\r\n\r\n return (\r\n <Box\r\n sx={{\r\n background: surface ? \"var(--surface)\" : \"var(--bg)\",\r\n borderBottom: surface ? \"1px solid var(--border)\" : \"none\",\r\n padding: { xs: \"var(--s-3)\", sm: \"var(--s-3) var(--s-4)\", lg: \"var(--s-3) var(--s-6)\" },\r\n position: sticky ? \"sticky\" : \"static\",\r\n top: 0,\r\n zIndex: zIndex.sticky,\r\n }}\r\n >\r\n {/* Breadcrumb / back row */}\r\n {hasNavRow && (\r\n <Box sx={{ display: \"flex\", alignItems: \"center\", gap: 1, marginBottom: 1 }}>\r\n {back && (\r\n <IconButton size=\"small\" onClick={back} aria-label={L.back}\r\n sx={{ color: accentOrFgMuted, \"& svg\": { transform: \"scaleX(var(--pui-rtl-flip, 1))\" } }}>\r\n <ArrowBackIcon fontSize=\"small\" />\r\n </IconButton>\r\n )}\r\n {effectiveBreadcrumb.length > 0 && (\r\n <Box component=\"nav\" aria-label={L.breadcrumb} sx={{ minWidth: 0 }}>\r\n <Box component=\"ol\"\r\n sx={{ listStyle: \"none\", margin: 0, padding: 0, display: \"flex\", alignItems: \"center\", flexWrap: { xs: \"nowrap\", sm: \"wrap\" }, gap: 0.5, fontSize: \"var(--text-xs)\", color: useAccent ? \"var(--accent)\" : \"var(--fg-subtle)\", minWidth: 0 }}>\r\n {renderCrumbItems()}\r\n </Box>\r\n </Box>\r\n )}\r\n </Box>\r\n )}\r\n\r\n {/* Main row */}\r\n <Box sx={{ display: \"flex\", alignItems: { xs: \"flex-start\", sm: \"center\" }, justifyContent: \"space-between\", flexWrap: { xs: \"wrap\", sm: \"nowrap\" }, gap: { xs: \"var(--s-2)\", sm: 2 } }}>\r\n <Box sx={{ minWidth: 0, flex: 1, display: \"flex\", alignItems: \"center\", gap: 1, color: accentOrFg, \"& svg\": { color: \"inherit\" } }}>\r\n {icon}\r\n <Typography component=\"h1\"\r\n sx={{ fontSize: { xs: 18, sm: 22 }, fontWeight: \"var(--fw-bold)\", color: accentOrFg, lineHeight: \"var(--lh-tight)\", whiteSpace: { xs: \"normal\", sm: \"nowrap\" }, overflow: { xs: \"visible\", sm: \"hidden\" }, textOverflow: { xs: \"clip\", sm: \"ellipsis\" } }}>\r\n {title}\r\n </Typography>\r\n {meta}\r\n </Box>\r\n\r\n {/* Actions: [secondary/ghost] [primary] [...] */}\r\n <Box sx={{ display: \"flex\", alignItems: \"center\", gap: 1, width: { xs: \"100%\", sm: \"auto\" }, justifyContent: { xs: \"flex-end\", sm: \"flex-start\" }, flexShrink: 0 }}>\r\n {visibleOthers.map((action, i) => renderButton(action, i))}\r\n {visiblePrimary.map((action, i) => renderButton(action, `p${i}`))}\r\n {hiddenActions.length > 0 && (\r\n <OverflowMenu actions={hiddenActions.map(({ _slot: _s, ...a }) => a)} />\r\n )}\r\n </Box>\r\n </Box>\r\n\r\n {subtitle && (\r\n <Typography\r\n sx={{\r\n /* ── S-01 — THE SUBTITLE IS RENDERED AT EVERY BREAKPOINT ──────────\r\n *\r\n * This was `display: { xs: \"none\", sm: \"block\" }`, which removed the\r\n * subtitle below the sm token (481 px) from the layout AND from the\r\n * accessibility tree. On a 320-414 px viewport it did not exist for\r\n * any user, sighted or not.\r\n *\r\n * That conflicted with three normative rules at once:\r\n * - Platform Mandatory UX Patterns / Page Subtitle: \"Mandatory.\r\n * Every page must contain a meaningful subtitle describing the\r\n * purpose of the page. NEVER OMIT SUBTITLES.\"\r\n * - the same document lists `missing subtitle` under Forbidden\r\n * Practices, i.e. a certification failure;\r\n * - Responsive Pattern mandates support from 320 px, so `xs` is the\r\n * primary mobile range, not an edge case.\r\n *\r\n * Charter 7.1 bis also puts \"Page title (H1) + subtitle + CTA\" in the\r\n * canonical vertical order, with no breakpoint exemption.\r\n *\r\n * The original motivation was presumably vertical space on phones.\r\n * That concern is met by BOUNDING the height instead of deleting the\r\n * content -- two lines, mirroring the EmptyState rule already in this\r\n * library (\"description <= 2 lignes\"). Clamped text stays in the\r\n * accessibility tree, so screen-reader users get the full string.\r\n *\r\n * SCOPED TO xs ON PURPOSE. At sm and above `display: block` makes\r\n * line-clamp inert, so the rendering is byte-identical to before this\r\n * fix. Clamping desktop too would be a NEW restriction on existing\r\n * behaviour and could truncate a long subtitle that a module renders\r\n * over three lines today. Zero regression surface for the ~150\r\n * services consuming this component.\r\n *\r\n * Raised from procuration-portnet-fe (Batch 3), fixed here rather\r\n * than worked around locally: a module-side subtitle would duplicate\r\n * a shared component's responsibility (R-2.1 / R-AI.2) and would need\r\n * local breakpoint logic to avoid doubling at >= sm.\r\n * ──────────────────────────────────────────────────────────────── */\r\n display: { xs: \"-webkit-box\", sm: \"block\" },\r\n WebkitBoxOrient: \"vertical\",\r\n WebkitLineClamp: 2,\r\n overflow: { xs: \"hidden\", sm: \"visible\" },\r\n fontSize: \"var(--text-sm)\",\r\n color: \"var(--fg-muted)\",\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D,GAAA,EAACvD,aAAA,CAAAM,OAAY;UAACkJ,OAAO,EAAE5C,aAAa,CAACuB,GAAG,CAAC,CAAC;YAAE3B,KAAK,EAAEiD,EAAE;YAAE,GAAG1C;UAAE,CAAC,KAAKA,CAAC;QAAE,CAAE,CACxE;MAAA,CACE,CAAC;IAAA,CACH,CAAC,EAELvC,QAAQ,iBACP,IAAArE,WAAA,CAAAoD,GAAA,EAAC/D,WAAA,CAAAc,OAAU;MACToD,EAAE,EAAE;QACF;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;QACY5B,OAAO,EAAE;UAAE0G,EAAE,EAAE,aAAa;UAAEC,EAAE,EAAE;QAAQ,CAAC;QAC3CiB,eAAe,EAAE,UAAU;QAC3BC,eAAe,EAAE,CAAC;QAClBhF,QAAQ,EAAE;UAAE6D,EAAE,EAAE,QAAQ;UAAEC,EAAE,EAAE;QAAU,CAAC;QACzC7F,QAAQ,EAAE,gBAAgB;QAC1Be,KAAK,EAAE,iBAAiB;QACxBiG,SAAS,EAAE;MACb,CAAE;MAAA/F,QAAA,EAEDW;IAAQ,CACC,CACb;EAAA,CACE,CAAC;AAEV;AAAC,IAAAqF,QAAA,GAAAC,OAAA,CAAAxJ,OAAA,GAEcgE,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* AppMain — the `<main>` landmark, Portnet UI v2 (pattern)
|
|
4
|
+
*
|
|
5
|
+
* Mount it inside the host shell, with `SkipLink` as the first focusable
|
|
6
|
+
* element of the page:
|
|
7
|
+
*
|
|
8
|
+
* <SkipLink />
|
|
9
|
+
* …
|
|
10
|
+
* <AppMain>
|
|
11
|
+
* <Outlet />
|
|
12
|
+
* </AppMain>
|
|
13
|
+
*
|
|
14
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
15
|
+
* WHY THIS BELONGS IN THE LIBRARY (capability gap G-53)
|
|
16
|
+
*
|
|
17
|
+
* The library shipped HALF of a two-part contract and documented the other half
|
|
18
|
+
* without providing it. `SkipLink`'s own docblock says, in so many words:
|
|
19
|
+
*
|
|
20
|
+
* <SkipLink href="#main-content" />
|
|
21
|
+
* …
|
|
22
|
+
* <main id="main-content">
|
|
23
|
+
*
|
|
24
|
+
* The `<main>` never existed here. So every module wrote it, and it is not a
|
|
25
|
+
* one-liner — it carries three things that are easy to get subtly wrong:
|
|
26
|
+
*
|
|
27
|
+
* 1. `tabIndex={-1}`, without which the skip link SCROLLS but does not move
|
|
28
|
+
* focus in Safari (SkipLink compensates by setting the attribute itself at
|
|
29
|
+
* click time, which is a patch for a landmark that should have been
|
|
30
|
+
* focusable from the start);
|
|
31
|
+
* 2. `outline: none`, because a focus ring drawn around the whole page is not
|
|
32
|
+
* what R-F.1 asks for — the ring belongs on real controls;
|
|
33
|
+
* 3. the CONTENT MEASURE of R-L.5, a MUST the library did not honour
|
|
34
|
+
* anywhere: "Max-width content : 1440 px (wide table) ou 720 px (form
|
|
35
|
+
* mono-colonne)". `PageContent` owns the canonical padding and the section
|
|
36
|
+
* gap, and caps NOTHING — so on a 1920 px display a certified module still
|
|
37
|
+
* stretched its tables edge to edge unless it capped them itself.
|
|
38
|
+
*
|
|
39
|
+
* And the cap has a companion nobody remembers: WITHOUT `margin-inline: auto`
|
|
40
|
+
* the capped content pins to the left and leaves a 480 px gutter on the right
|
|
41
|
+
* of a 1920 px screen, which looks more broken than not capping at all.
|
|
42
|
+
*
|
|
43
|
+
* Raised from `autorisation-admis-pour-conforme-fe` (Area 5). The certified
|
|
44
|
+
* reference module `ms-ti-fe` carries the same local landmark, so this was two
|
|
45
|
+
* copies of the same twenty lines plus an unmet MUST — the definition of a gap.
|
|
46
|
+
*
|
|
47
|
+
* SCOPE, because §07 is explicit about it: the Sidebar and the global Topbar
|
|
48
|
+
* belong to the HOST shell (PMPCE / Guichet Unique), not to a module and not to
|
|
49
|
+
* this component. `AppMain` is the content region INSIDE that shell. It renders
|
|
50
|
+
* no breadcrumb and no page header either — those carry route-specific title,
|
|
51
|
+
* subtitle and actions, so they belong to each page's `ActionBar` (R-L.1 /
|
|
52
|
+
* R-L.2).
|
|
53
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
54
|
+
*/
|
|
55
|
+
/** Which measure of R-L.5 applies to this region. */
|
|
56
|
+
export type AppMainMeasure = "wide" | "form" | "full";
|
|
57
|
+
export interface AppMainProps {
|
|
58
|
+
children?: React.ReactNode | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* The id the skip link targets. Defaults to `"main-content"`, which is
|
|
61
|
+
* `SkipLink`'s own default — change both together or the link goes nowhere.
|
|
62
|
+
*/
|
|
63
|
+
id?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Content measure (R-L.5). Defaults to `"wide"`: it is the value that fits
|
|
66
|
+
* listings, detail and dashboard pages, which is what a module is mostly made
|
|
67
|
+
* of. A genuinely mono-column form should narrow ITSELF rather than have the
|
|
68
|
+
* shared region widened for it.
|
|
69
|
+
*/
|
|
70
|
+
measure?: AppMainMeasure | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Minimum height of the region. Defaults to `100vh` so a short page still
|
|
73
|
+
* paints its background down the viewport instead of ending in a band of
|
|
74
|
+
* whatever sits behind, and so the region reserves its space before content
|
|
75
|
+
* arrives (R-R.4, anti-CLS).
|
|
76
|
+
*/
|
|
77
|
+
minHeight?: string | undefined;
|
|
78
|
+
className?: string | undefined;
|
|
79
|
+
/** Escape hatch. Merged last, so it wins over the computed style. */
|
|
80
|
+
style?: React.CSSProperties | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Accessible name for the landmark.
|
|
83
|
+
*
|
|
84
|
+
* Normally UNNECESSARY, and better left off: a `<main>` is the page's one
|
|
85
|
+
* main region and assistive tech announces it as such. It exists for the
|
|
86
|
+
* PRE-CONTENT case — a host that renders the landmark before its router
|
|
87
|
+
* mounts, as R-Pp.1 requires ("jamais d'écran blanc"), has nothing inside to
|
|
88
|
+
* name it, and "main region" alone tells the user nothing about what is
|
|
89
|
+
* happening.
|
|
90
|
+
*
|
|
91
|
+
* Added for a real consumer and not on speculation: the pre-auth shell of
|
|
92
|
+
* `autorisation-admis-pour-conforme-fe` (Area 10) hand-wrote this entire
|
|
93
|
+
* landmark — id, tabIndex, outline, minHeight — BECAUSE it could not express
|
|
94
|
+
* these two attributes through this component. A pattern that forces a host
|
|
95
|
+
* to reimplement it in order to name it has not finished its job.
|
|
96
|
+
*/
|
|
97
|
+
ariaLabel?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Marks the region busy while its content is being prepared.
|
|
100
|
+
*
|
|
101
|
+
* Goes with `ariaLabel`, and the pairing is the point: `aria-busy` tells
|
|
102
|
+
* assistive tech that what it reads is incomplete. Without it, a landmark
|
|
103
|
+
* that is merely EMPTY is indistinguishable from one that failed.
|
|
104
|
+
*/
|
|
105
|
+
ariaBusy?: boolean | undefined;
|
|
106
|
+
}
|
|
107
|
+
declare function AppMain({ children, id, measure, minHeight, className, style, ariaLabel, ariaBusy, }: AppMainProps): React.JSX.Element;
|
|
108
|
+
export default AppMain;
|
|
109
|
+
//# sourceMappingURL=AppMain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppMain.d.ts","sourceRoot":"","sources":["../../../src/lib/v2/patterns/AppMain.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAEH,qDAAqD;AACrD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAYtD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IACvC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACrC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,qEAAqE;IACrE,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC;IACxC;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC;AAED,iBAAS,OAAO,CAAC,EACf,QAAQ,EACR,EAAmB,EACnB,OAAgB,EAChB,SAAmB,EACnB,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAQ,GACT,EAAE,YAAY,qBA0Bd;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
|
+
/**
|
|
11
|
+
* AppMain — the `<main>` landmark, Portnet UI v2 (pattern)
|
|
12
|
+
*
|
|
13
|
+
* Mount it inside the host shell, with `SkipLink` as the first focusable
|
|
14
|
+
* element of the page:
|
|
15
|
+
*
|
|
16
|
+
* <SkipLink />
|
|
17
|
+
* …
|
|
18
|
+
* <AppMain>
|
|
19
|
+
* <Outlet />
|
|
20
|
+
* </AppMain>
|
|
21
|
+
*
|
|
22
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
23
|
+
* WHY THIS BELONGS IN THE LIBRARY (capability gap G-53)
|
|
24
|
+
*
|
|
25
|
+
* The library shipped HALF of a two-part contract and documented the other half
|
|
26
|
+
* without providing it. `SkipLink`'s own docblock says, in so many words:
|
|
27
|
+
*
|
|
28
|
+
* <SkipLink href="#main-content" />
|
|
29
|
+
* …
|
|
30
|
+
* <main id="main-content">
|
|
31
|
+
*
|
|
32
|
+
* The `<main>` never existed here. So every module wrote it, and it is not a
|
|
33
|
+
* one-liner — it carries three things that are easy to get subtly wrong:
|
|
34
|
+
*
|
|
35
|
+
* 1. `tabIndex={-1}`, without which the skip link SCROLLS but does not move
|
|
36
|
+
* focus in Safari (SkipLink compensates by setting the attribute itself at
|
|
37
|
+
* click time, which is a patch for a landmark that should have been
|
|
38
|
+
* focusable from the start);
|
|
39
|
+
* 2. `outline: none`, because a focus ring drawn around the whole page is not
|
|
40
|
+
* what R-F.1 asks for — the ring belongs on real controls;
|
|
41
|
+
* 3. the CONTENT MEASURE of R-L.5, a MUST the library did not honour
|
|
42
|
+
* anywhere: "Max-width content : 1440 px (wide table) ou 720 px (form
|
|
43
|
+
* mono-colonne)". `PageContent` owns the canonical padding and the section
|
|
44
|
+
* gap, and caps NOTHING — so on a 1920 px display a certified module still
|
|
45
|
+
* stretched its tables edge to edge unless it capped them itself.
|
|
46
|
+
*
|
|
47
|
+
* And the cap has a companion nobody remembers: WITHOUT `margin-inline: auto`
|
|
48
|
+
* the capped content pins to the left and leaves a 480 px gutter on the right
|
|
49
|
+
* of a 1920 px screen, which looks more broken than not capping at all.
|
|
50
|
+
*
|
|
51
|
+
* Raised from `autorisation-admis-pour-conforme-fe` (Area 5). The certified
|
|
52
|
+
* reference module `ms-ti-fe` carries the same local landmark, so this was two
|
|
53
|
+
* copies of the same twenty lines plus an unmet MUST — the definition of a gap.
|
|
54
|
+
*
|
|
55
|
+
* SCOPE, because §07 is explicit about it: the Sidebar and the global Topbar
|
|
56
|
+
* belong to the HOST shell (PMPCE / Guichet Unique), not to a module and not to
|
|
57
|
+
* this component. `AppMain` is the content region INSIDE that shell. It renders
|
|
58
|
+
* no breadcrumb and no page header either — those carry route-specific title,
|
|
59
|
+
* subtitle and actions, so they belong to each page's `ActionBar` (R-L.1 /
|
|
60
|
+
* R-L.2).
|
|
61
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/** Which measure of R-L.5 applies to this region. */
|
|
65
|
+
|
|
66
|
+
const MAX_WIDTH_BY_MEASURE = {
|
|
67
|
+
/** `--content-max` (1440) — listings, dashboards, detail pages. */
|
|
68
|
+
wide: "var(--content-max)",
|
|
69
|
+
/** `--form-max` (720) — a single-column form owning the whole region. */
|
|
70
|
+
form: "var(--form-max)",
|
|
71
|
+
/** No cap. Say why at the call site: R-L.5 is a MUST, not a default. */
|
|
72
|
+
full: undefined
|
|
73
|
+
};
|
|
74
|
+
function AppMain({
|
|
75
|
+
children,
|
|
76
|
+
id = "main-content",
|
|
77
|
+
measure = "wide",
|
|
78
|
+
minHeight = "100vh",
|
|
79
|
+
className,
|
|
80
|
+
style,
|
|
81
|
+
ariaLabel,
|
|
82
|
+
ariaBusy
|
|
83
|
+
}) {
|
|
84
|
+
const maxWidth = MAX_WIDTH_BY_MEASURE[measure];
|
|
85
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("main", {
|
|
86
|
+
id: id
|
|
87
|
+
/* Focusable programmatically, NOT in the tab order — so the skip link can
|
|
88
|
+
land here (WCAG 2.4.1) without adding a stop for every other user. */,
|
|
89
|
+
tabIndex: -1,
|
|
90
|
+
...(ariaLabel !== undefined ? {
|
|
91
|
+
"aria-label": ariaLabel
|
|
92
|
+
} : {}),
|
|
93
|
+
...(ariaBusy !== undefined ? {
|
|
94
|
+
"aria-busy": ariaBusy
|
|
95
|
+
} : {}),
|
|
96
|
+
...(className !== undefined ? {
|
|
97
|
+
className
|
|
98
|
+
} : {}),
|
|
99
|
+
style: {
|
|
100
|
+
outline: "none",
|
|
101
|
+
minHeight,
|
|
102
|
+
...(maxWidth !== undefined ?
|
|
103
|
+
/* `marginInline: auto` is not decoration: without it the cap pins
|
|
104
|
+
the content left and leaves the whole surplus as one gutter. */
|
|
105
|
+
{
|
|
106
|
+
maxWidth,
|
|
107
|
+
marginInline: "auto"
|
|
108
|
+
} : {}),
|
|
109
|
+
...style
|
|
110
|
+
},
|
|
111
|
+
children: children
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
var _default = exports.default = AppMain;
|
|
115
|
+
//# sourceMappingURL=AppMain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppMain.js","names":["React","_interopRequireWildcard","require","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MAX_WIDTH_BY_MEASURE","wide","form","full","undefined","AppMain","children","id","measure","minHeight","className","style","ariaLabel","ariaBusy","maxWidth","jsx","tabIndex","outline","marginInline","_default","exports"],"sources":["../../../src/lib/v2/patterns/AppMain.tsx"],"sourcesContent":["import * as React from \"react\";\r\n\r\n/**\r\n * AppMain — the `<main>` landmark, Portnet UI v2 (pattern)\r\n *\r\n * Mount it inside the host shell, with `SkipLink` as the first focusable\r\n * element of the page:\r\n *\r\n * <SkipLink />\r\n * …\r\n * <AppMain>\r\n * <Outlet />\r\n * </AppMain>\r\n *\r\n * ─────────────────────────────────────────────────────────────────────────────\r\n * WHY THIS BELONGS IN THE LIBRARY (capability gap G-53)\r\n *\r\n * The library shipped HALF of a two-part contract and documented the other half\r\n * without providing it. `SkipLink`'s own docblock says, in so many words:\r\n *\r\n * <SkipLink href=\"#main-content\" />\r\n * …\r\n * <main id=\"main-content\">\r\n *\r\n * The `<main>` never existed here. So every module wrote it, and it is not a\r\n * one-liner — it carries three things that are easy to get subtly wrong:\r\n *\r\n * 1. `tabIndex={-1}`, without which the skip link SCROLLS but does not move\r\n * focus in Safari (SkipLink compensates by setting the attribute itself at\r\n * click time, which is a patch for a landmark that should have been\r\n * focusable from the start);\r\n * 2. `outline: none`, because a focus ring drawn around the whole page is not\r\n * what R-F.1 asks for — the ring belongs on real controls;\r\n * 3. the CONTENT MEASURE of R-L.5, a MUST the library did not honour\r\n * anywhere: \"Max-width content : 1440 px (wide table) ou 720 px (form\r\n * mono-colonne)\". `PageContent` owns the canonical padding and the section\r\n * gap, and caps NOTHING — so on a 1920 px display a certified module still\r\n * stretched its tables edge to edge unless it capped them itself.\r\n *\r\n * And the cap has a companion nobody remembers: WITHOUT `margin-inline: auto`\r\n * the capped content pins to the left and leaves a 480 px gutter on the right\r\n * of a 1920 px screen, which looks more broken than not capping at all.\r\n *\r\n * Raised from `autorisation-admis-pour-conforme-fe` (Area 5). The certified\r\n * reference module `ms-ti-fe` carries the same local landmark, so this was two\r\n * copies of the same twenty lines plus an unmet MUST — the definition of a gap.\r\n *\r\n * SCOPE, because §07 is explicit about it: the Sidebar and the global Topbar\r\n * belong to the HOST shell (PMPCE / Guichet Unique), not to a module and not to\r\n * this component. `AppMain` is the content region INSIDE that shell. It renders\r\n * no breadcrumb and no page header either — those carry route-specific title,\r\n * subtitle and actions, so they belong to each page's `ActionBar` (R-L.1 /\r\n * R-L.2).\r\n * ─────────────────────────────────────────────────────────────────────────────\r\n */\r\n\r\n/** Which measure of R-L.5 applies to this region. */\r\nexport type AppMainMeasure = \"wide\" | \"form\" | \"full\";\r\n\r\nconst MAX_WIDTH_BY_MEASURE: Readonly<Record<AppMainMeasure, string | undefined>> =\r\n {\r\n /** `--content-max` (1440) — listings, dashboards, detail pages. */\r\n wide: \"var(--content-max)\",\r\n /** `--form-max` (720) — a single-column form owning the whole region. */\r\n form: \"var(--form-max)\",\r\n /** No cap. Say why at the call site: R-L.5 is a MUST, not a default. */\r\n full: undefined,\r\n };\r\n\r\nexport interface AppMainProps {\r\n children?: React.ReactNode | undefined;\r\n /**\r\n * The id the skip link targets. Defaults to `\"main-content\"`, which is\r\n * `SkipLink`'s own default — change both together or the link goes nowhere.\r\n */\r\n id?: string | undefined;\r\n /**\r\n * Content measure (R-L.5). Defaults to `\"wide\"`: it is the value that fits\r\n * listings, detail and dashboard pages, which is what a module is mostly made\r\n * of. A genuinely mono-column form should narrow ITSELF rather than have the\r\n * shared region widened for it.\r\n */\r\n measure?: AppMainMeasure | undefined;\r\n /**\r\n * Minimum height of the region. Defaults to `100vh` so a short page still\r\n * paints its background down the viewport instead of ending in a band of\r\n * whatever sits behind, and so the region reserves its space before content\r\n * arrives (R-R.4, anti-CLS).\r\n */\r\n minHeight?: string | undefined;\r\n className?: string | undefined;\r\n /** Escape hatch. Merged last, so it wins over the computed style. */\r\n style?: React.CSSProperties | undefined;\r\n /**\r\n * Accessible name for the landmark.\r\n *\r\n * Normally UNNECESSARY, and better left off: a `<main>` is the page's one\r\n * main region and assistive tech announces it as such. It exists for the\r\n * PRE-CONTENT case — a host that renders the landmark before its router\r\n * mounts, as R-Pp.1 requires (\"jamais d'écran blanc\"), has nothing inside to\r\n * name it, and \"main region\" alone tells the user nothing about what is\r\n * happening.\r\n *\r\n * Added for a real consumer and not on speculation: the pre-auth shell of\r\n * `autorisation-admis-pour-conforme-fe` (Area 10) hand-wrote this entire\r\n * landmark — id, tabIndex, outline, minHeight — BECAUSE it could not express\r\n * these two attributes through this component. A pattern that forces a host\r\n * to reimplement it in order to name it has not finished its job.\r\n */\r\n ariaLabel?: string | undefined;\r\n /**\r\n * Marks the region busy while its content is being prepared.\r\n *\r\n * Goes with `ariaLabel`, and the pairing is the point: `aria-busy` tells\r\n * assistive tech that what it reads is incomplete. Without it, a landmark\r\n * that is merely EMPTY is indistinguishable from one that failed.\r\n */\r\n ariaBusy?: boolean | undefined;\r\n}\r\n\r\nfunction AppMain({\r\n children,\r\n id = \"main-content\",\r\n measure = \"wide\",\r\n minHeight = \"100vh\",\r\n className,\r\n style,\r\n ariaLabel,\r\n ariaBusy,\r\n}: AppMainProps) {\r\n const maxWidth = MAX_WIDTH_BY_MEASURE[measure];\r\n\r\n return (\r\n <main\r\n id={id}\r\n /* Focusable programmatically, NOT in the tab order — so the skip link can\r\n land here (WCAG 2.4.1) without adding a stop for every other user. */\r\n tabIndex={-1}\r\n {...(ariaLabel !== undefined ? { \"aria-label\": ariaLabel } : {})}\r\n {...(ariaBusy !== undefined ? { \"aria-busy\": ariaBusy } : {})}\r\n {...(className !== undefined ? { className } : {})}\r\n style={{\r\n outline: \"none\",\r\n minHeight,\r\n ...(maxWidth !== undefined\r\n ? /* `marginInline: auto` is not decoration: without it the cap pins\r\n the content left and leaves the whole surplus as one gutter. */\r\n { maxWidth, marginInline: \"auto\" }\r\n : {}),\r\n ...style,\r\n }}\r\n >\r\n {children}\r\n </main>\r\n );\r\n}\r\n\r\nexport default AppMain;\r\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,i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AQ,GAAGd,oBAAoB,CAACQ,OAAO,CAAC;EAE9C,oBACE,IAAA5B,WAAA,CAAAmC,GAAA;IACER,EAAE,EAAEA;IACJ;AACN,4EADM;IAEAS,QAAQ,EAAE,CAAC,CAAE;IAAA,IACRJ,SAAS,KAAKR,SAAS,GAAG;MAAE,YAAY,EAAEQ;IAAU,CAAC,GAAG,CAAC,CAAC;IAAA,IAC1DC,QAAQ,KAAKT,SAAS,GAAG;MAAE,WAAW,EAAES;IAAS,CAAC,GAAG,CAAC,CAAC;IAAA,IACvDH,SAAS,KAAKN,SAAS,GAAG;MAAEM;IAAU,CAAC,GAAG,CAAC,CAAC;IACjDC,KAAK,EAAE;MACLM,OAAO,EAAE,MAAM;MACfR,SAAS;MACT,IAAIK,QAAQ,KAAKV,SAAS;MACtB;AACZ;MACY;QAAEU,QAAQ;QAAEI,YAAY,EAAE;MAAO,CAAC,GAClC,CAAC,CAAC,CAAC;MACP,GAAGP;IACL,CAAE;IAAAL,QAAA,EAEDA;EAAQ,CACL,CAAC;AAEX;AAAC,IAAAa,QAAA,GAAAC,OAAA,CAAA7B,OAAA,GAEcc,OAAO","ignoreList":[]}
|
|
@@ -3,21 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
9
9
|
var _Button = _interopRequireDefault(require("../components/Button"));
|
|
10
10
|
var _mergeLabels = require("../utils/mergeLabels");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
/**
|
|
21
15
|
* BulkActionBar - Portnet UI v2 (pattern)
|
|
22
16
|
*
|
|
23
17
|
* Charter R-DG.8 - sélection multiple → bulk bar sticky bottom-center.
|
|
@@ -54,31 +48,29 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
54
48
|
* edges on a phone. maxWidth caps it to the viewport and flexWrap lets
|
|
55
49
|
* surplus actions wrap to a second centred row instead of overflowing.
|
|
56
50
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
},
|
|
51
|
+
|
|
52
|
+
const DEFAULT_LABELS = Object.freeze({
|
|
53
|
+
selection: n => `${n} élément${n > 1 ? "s" : ""} sélectionné${n > 1 ? "s" : ""}`,
|
|
61
54
|
toolbarAria: "Actions sur la sélection",
|
|
62
55
|
clear: "Désélectionner"
|
|
63
56
|
});
|
|
64
|
-
function BulkActionBar(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
labels = _ref.labels;
|
|
57
|
+
function BulkActionBar({
|
|
58
|
+
count = 0,
|
|
59
|
+
onClear,
|
|
60
|
+
actions = [],
|
|
61
|
+
label,
|
|
62
|
+
labels
|
|
63
|
+
}) {
|
|
72
64
|
if (count <= 0) return null;
|
|
73
|
-
|
|
65
|
+
const L = (0, _mergeLabels.mergeLabels)(DEFAULT_LABELS, labels);
|
|
74
66
|
// Legacy `label` prop wins over labels.selection for back-compat.
|
|
75
|
-
|
|
67
|
+
const text = label != null ? label : L.selection(count);
|
|
76
68
|
|
|
77
69
|
// R-AI.1 - currentColor-derived overlays so hover & divider auto-adapt
|
|
78
70
|
// to the bar's fg-inverse value (was hard-coded white rgba).
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box
|
|
71
|
+
const overlayHover = "color-mix(in srgb, currentColor 15%, transparent)";
|
|
72
|
+
const dividerOverlay = "color-mix(in srgb, currentColor 22%, transparent)";
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
82
74
|
role: "toolbar",
|
|
83
75
|
"aria-label": L.toolbarAria,
|
|
84
76
|
sx: {
|
|
@@ -101,7 +93,7 @@ function BulkActionBar(_ref) {
|
|
|
101
93
|
borderRadius: "var(--r-full)",
|
|
102
94
|
boxShadow: "var(--shadow-lg)"
|
|
103
95
|
},
|
|
104
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Box
|
|
96
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default
|
|
105
97
|
// R-A.1 - polite live region so SR users hear each count change
|
|
106
98
|
// without losing context. aria-atomic ensures the full sentence is
|
|
107
99
|
// re-read on update, not just the diff.
|
|
@@ -115,28 +107,34 @@ function BulkActionBar(_ref) {
|
|
|
115
107
|
fontVariantNumeric: "tabular-nums"
|
|
116
108
|
},
|
|
117
109
|
children: text
|
|
118
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box
|
|
110
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
119
111
|
sx: {
|
|
120
112
|
width: 1,
|
|
121
113
|
height: 24,
|
|
122
114
|
background: dividerOverlay
|
|
123
115
|
}
|
|
124
|
-
}), actions.map(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
116
|
+
}), actions.map((a, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
117
|
+
size: "sm",
|
|
118
|
+
variant: a.variant || "ghost",
|
|
119
|
+
icon: a.icon,
|
|
120
|
+
onClick: a.onClick,
|
|
121
|
+
disabled: a.disabled,
|
|
122
|
+
sx: {
|
|
123
|
+
// Danger keeps its own palette; every other variant is forced
|
|
124
|
+
// to the inverse foreground with a currentColor hover overlay.
|
|
125
|
+
// (JS set color/"&:hover" to undefined on danger; under
|
|
126
|
+
// exactOptionalPropertyTypes that's present-with-undefined for
|
|
127
|
+
// the csstype color + selector value, so it's folded into one
|
|
128
|
+
// conditional spread — behaviour-identical.)
|
|
129
|
+
...(a.variant !== "danger" ? {
|
|
132
130
|
color: "var(--fg-inverse) !important",
|
|
133
131
|
"&:hover": {
|
|
134
132
|
background: overlayHover
|
|
135
133
|
}
|
|
136
|
-
} : {})
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}), onClear && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button
|
|
134
|
+
} : {})
|
|
135
|
+
},
|
|
136
|
+
children: a.label
|
|
137
|
+
}, i)), onClear && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
140
138
|
size: "sm",
|
|
141
139
|
variant: "ghost",
|
|
142
140
|
onClick: onClear,
|
|
@@ -150,5 +148,5 @@ function BulkActionBar(_ref) {
|
|
|
150
148
|
})]
|
|
151
149
|
});
|
|
152
150
|
}
|
|
153
|
-
var _default = exports
|
|
151
|
+
var _default = exports.default = BulkActionBar;
|
|
154
152
|
//# sourceMappingURL=BulkActionBar.js.map
|