@centreon/ui 24.8.6 → 24.8.7
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/package.json +4 -3
- package/src/@types/globals.d.ts +4 -4
- package/src/ActionsList/ActionsList.styles.ts +1 -1
- package/src/ActionsList/index.stories.tsx +1 -1
- package/src/ActionsList/index.tsx +6 -6
- package/src/Button/Icon/index.stories.tsx +1 -1
- package/src/Button/Icon/index.tsx +1 -1
- package/src/Button/Save/StartIcon.tsx +1 -1
- package/src/Checkbox/Checkbox.tsx +2 -2
- package/src/Colors/index.stories.tsx +0 -2
- package/src/Colors/index.tsx +7 -3
- package/src/ContentWithCircularProgress/index.stories.tsx +1 -1
- package/src/Dashboard/Dashboard.styles.ts +111 -111
- package/src/Dashboard/Grid.tsx +2 -2
- package/src/Dashboard/Item.tsx +3 -3
- package/src/Dashboard/Layout.tsx +3 -3
- package/src/Dashboard/index.tsx +9 -9
- package/src/Dialog/Duplicate/index.test.tsx +1 -1
- package/src/Dialog/Duplicate/index.tsx +5 -2
- package/src/Dialog/UnsavedChanges/index.tsx +2 -2
- package/src/Dialog/index.stories.tsx +1 -1
- package/src/Dialog/index.tsx +5 -5
- package/src/FallbackPage/FallbackPage.tsx +4 -4
- package/src/FileDropZone/index.stories.tsx +1 -1
- package/src/FileDropZone/index.tsx +5 -5
- package/src/FileDropZone/useDropzone.test.ts +1 -1
- package/src/FileDropZone/useDropzone.ts +1 -1
- package/src/Form/CollapsibleGroup.tsx +6 -6
- package/src/Form/Form.cypress.spec.tsx +1 -1
- package/src/Form/Form.stories.tsx +3 -3
- package/src/Form/Form.tsx +5 -4
- package/src/Form/FormButtons.tsx +2 -2
- package/src/Form/Inputs/Autocomplete.tsx +3 -3
- package/src/Form/Inputs/Checkbox.tsx +1 -1
- package/src/Form/Inputs/CheckboxGroup.tsx +2 -2
- package/src/Form/Inputs/ConnectedAutocomplete.tsx +1 -1
- package/src/Form/Inputs/FieldsTable/FieldsTable.tsx +15 -15
- package/src/Form/Inputs/FieldsTable/Row.tsx +2 -2
- package/src/Form/Inputs/List/Content.tsx +1 -1
- package/src/Form/Inputs/List/List.tsx +3 -3
- package/src/Form/Inputs/PasswordEndAdornment.tsx +1 -1
- package/src/Form/Inputs/Radio.tsx +3 -3
- package/src/Form/Inputs/Switch.tsx +1 -1
- package/src/Form/Inputs/Text.tsx +4 -4
- package/src/Form/Inputs/index.tsx +81 -72
- package/src/Form/Inputs/models.ts +14 -14
- package/src/Form/storiesData.tsx +26 -30
- package/src/Form/storiesData.tsx-E +481 -0
- package/src/Graph/BarChart/BarChart.stories.tsx +1 -1
- package/src/Graph/BarChart/BarChart.tsx +3 -3
- package/src/Graph/BarChart/BarGroup.tsx +6 -4
- package/src/Graph/BarChart/BarStack.tsx +4 -4
- package/src/Graph/BarChart/ResponsiveBarChart.tsx +10 -10
- package/src/Graph/BarChart/Tooltip/BarChartTooltip.tsx +5 -5
- package/src/Graph/BarChart/useBarStack.ts +2 -2
- package/src/Graph/BarStack/BarStack.cypress.spec.tsx +1 -1
- package/src/Graph/BarStack/BarStack.stories.tsx +1 -1
- package/src/Graph/BarStack/ResponsiveBarStack.tsx +10 -6
- package/src/Graph/BarStack/useResponsiveBarStack.ts +4 -4
- package/src/Graph/Chart/BasicComponents/Lines/RegularLines/index.tsx +1 -1
- package/src/Graph/Chart/BasicComponents/Lines/RegularLines/useRegularLines.ts +1 -1
- package/src/Graph/Chart/BasicComponents/Lines/StackedLines/index.tsx +4 -4
- package/src/Graph/Chart/BasicComponents/Lines/Threshold/ThresholdWithPatternLines.tsx +1 -1
- package/src/Graph/Chart/BasicComponents/Lines/Threshold/index.tsx +1 -1
- package/src/Graph/Chart/BasicComponents/Lines/Threshold/models.ts +1 -1
- package/src/Graph/Chart/BasicComponents/Lines/Threshold/useScaleThreshold.ts +2 -2
- package/src/Graph/Chart/BasicComponents/Lines/index.tsx +7 -7
- package/src/Graph/Chart/BasicComponents/Lines/models.ts +1 -1
- package/src/Graph/Chart/Chart.cypress.spec.tsx +4 -4
- package/src/Graph/Chart/Chart.stories.tsx +6 -6
- package/src/Graph/Chart/Chart.tsx +11 -11
- package/src/Graph/Chart/InteractiveComponents/AnchorPoint/RegularAnchorPoint.tsx +1 -1
- package/src/Graph/Chart/InteractiveComponents/AnchorPoint/useTickGraph.ts +1 -1
- package/src/Graph/Chart/InteractiveComponents/Annotations/Annotation/Area.tsx +1 -1
- package/src/Graph/Chart/InteractiveComponents/Annotations/Annotation/Line.tsx +1 -1
- package/src/Graph/Chart/InteractiveComponents/Annotations/Annotation/index.tsx +3 -3
- package/src/Graph/Chart/InteractiveComponents/Annotations/Area/Downtime.tsx +1 -1
- package/src/Graph/Chart/InteractiveComponents/Annotations/EventAnnotations.tsx +3 -3
- package/src/Graph/Chart/InteractiveComponents/Annotations/Line/Comments.tsx +1 -1
- package/src/Graph/Chart/InteractiveComponents/Annotations/annotationsAtoms.ts +4 -4
- package/src/Graph/Chart/InteractiveComponents/Bar.tsx +1 -1
- package/src/Graph/Chart/InteractiveComponents/GraphValueTooltip/GraphValueTooltip.tsx +1 -1
- package/src/Graph/Chart/InteractiveComponents/GraphValueTooltip/GraphValueTooltipContent.tsx +1 -1
- package/src/Graph/Chart/InteractiveComponents/GraphValueTooltip/useGraphValueTooltip.ts +3 -3
- package/src/Graph/Chart/InteractiveComponents/TimeShiftZones/index.tsx +1 -1
- package/src/Graph/Chart/InteractiveComponents/TimeShiftZones/models.ts +2 -2
- package/src/Graph/Chart/InteractiveComponents/Tooltip/useGraphTooltip.ts +1 -1
- package/src/Graph/Chart/InteractiveComponents/index.tsx +7 -7
- package/src/Graph/Chart/Legend/LegendHeader.tsx +2 -2
- package/src/Graph/Chart/Legend/index.tsx +3 -3
- package/src/Graph/Chart/common/index.ts +5 -5
- package/src/Graph/Chart/helpers/index.ts +5 -5
- package/src/Graph/Chart/index.tsx +2 -2
- package/src/Graph/Chart/models.ts +4 -4
- package/src/Graph/Gauge/AnimatedPie.tsx +1 -1
- package/src/Graph/Gauge/Gauge.cypress.spec.tsx +2 -2
- package/src/Graph/Gauge/PieData.tsx +1 -1
- package/src/Graph/Gauge/ResponsiveGauge.tsx +5 -5
- package/src/Graph/Gauge/models.ts +3 -3
- package/src/Graph/HeatMap/HeatMap.cypress.spec.tsx +3 -3
- package/src/Graph/HeatMap/HeatMapData.json +1 -1
- package/src/Graph/HeatMap/ResponsiveHeatMap.tsx +1 -1
- package/src/Graph/PieChart/PieChart.stories.tsx +1 -1
- package/src/Graph/PieChart/ResponsivePie.tsx +7 -3
- package/src/Graph/SingleBar/ResponsiveSingleBar.tsx +8 -8
- package/src/Graph/SingleBar/SingleBar.cypress.spec.tsx +1 -1
- package/src/Graph/SingleBar/SingleBar.tsx +1 -1
- package/src/Graph/Text/Text.cypress.spec.tsx +2 -2
- package/src/Graph/Tree/DescendantNodes.tsx +1 -1
- package/src/Graph/Tree/Links.tsx +5 -5
- package/src/Graph/Tree/StandaloneTree.tsx +1 -1
- package/src/Graph/Tree/Tree.cypress.spec.tsx +2 -2
- package/src/Graph/Tree/Tree.stories.tsx +2 -2
- package/src/Graph/Tree/Tree.tsx +3 -3
- package/src/Graph/Tree/stories/contents.tsx +2 -2
- package/src/Graph/common/Axes/index.tsx +1 -1
- package/src/Graph/common/Axes/models.ts +1 -1
- package/src/Graph/common/Axes/useAxisY.ts +1 -1
- package/src/Graph/common/BaseChart/BaseChart.tsx +1 -1
- package/src/Graph/common/BaseChart/Header/index.tsx +1 -1
- package/src/Graph/common/Thresholds/Thresholds.tsx +2 -2
- package/src/Graph/common/timeSeries/index.test.ts +57 -45
- package/src/Graph/common/timeSeries/index.test.ts-E +622 -0
- package/src/Graph/common/timeSeries/index.ts +30 -30
- package/src/Graph/common/utils.ts +2 -2
- package/src/Graph/mockedData/annotationData.json +318 -320
- package/src/Graph/mockedData/curvesWithSameColor.json +1 -1
- package/src/Graph/mockedData/exclusionPeriodFirstPeriod.json +366 -586
- package/src/Graph/mockedData/exclusionPeriodSecondPeriod.json +370 -586
- package/src/Graph/mockedData/exclusionPeriodThirdPeriod.json +365 -579
- package/src/Graph/mockedData/lastDay.json +1290 -1324
- package/src/Graph/mockedData/lastDayAreaStack.json +3048 -3104
- package/src/Graph/mockedData/lastDayForward.json +1303 -1336
- package/src/Graph/mockedData/lastDayThreshold.json +2318 -2350
- package/src/Graph/mockedData/lastDayWithIncompleteValues.json +7 -41
- package/src/Graph/mockedData/lastDayWithLotOfUnits.json +1618 -1665
- package/src/Graph/mockedData/lastDayWithNullValues.json +7 -41
- package/src/Graph/mockedData/lastMonth.json +1639 -1672
- package/src/Graph/mockedData/lastWeek.json +2167 -2200
- package/src/Graph/mockedData/pingService.json +4 -12
- package/src/Graph/mockedData/pingServiceLinesBars.json +242 -250
- package/src/Graph/mockedData/pingServiceLinesBarsMixed.json +242 -250
- package/src/Graph/mockedData/pingServiceLinesBarsStacked.json +242 -250
- package/src/Graph/mockedData/pingServiceMixedStacked.json +4 -12
- package/src/Graph/mockedData/pingServiceStacked.json +4 -12
- package/src/Graph/mockedData/zoomPreview.json +370 -740
- package/src/Icon/IconAttach/index.tsx +1 -6
- package/src/Image/Image.tsx +75 -75
- package/src/Image/atoms.ts +3 -3
- package/src/Image/index.stories.tsx +1 -1
- package/src/Image/index.test.tsx +53 -53
- package/src/Image/models.ts +3 -3
- package/src/Image/useLoadImage.ts +49 -49
- package/src/InputField/Number/Number.tsx +2 -2
- package/src/InputField/Search/PersistentTooltip.tsx +2 -2
- package/src/InputField/Search/RegexpHelpTooltip.tsx +1 -1
- package/src/InputField/Search/index.stories.tsx +1 -1
- package/src/InputField/Select/Autocomplete/Connected/Multi/index.test.tsx +1 -1
- package/src/InputField/Select/Autocomplete/Connected/Multi/index.tsx +1 -1
- package/src/InputField/Select/Autocomplete/Connected/index.stories.tsx +4 -4
- package/src/InputField/Select/Autocomplete/Connected/index.test.tsx +6 -6
- package/src/InputField/Select/Autocomplete/Connected/index.tsx +12 -12
- package/src/InputField/Select/Autocomplete/Draggable/MultiConnected.tsx +1 -1
- package/src/InputField/Select/Autocomplete/Draggable/SortableList.tsx +1 -1
- package/src/InputField/Select/Autocomplete/Draggable/SortableListContent.tsx +5 -6
- package/src/InputField/Select/Autocomplete/Draggable/index.stories.tsx +6 -6
- package/src/InputField/Select/Autocomplete/Draggable/index.tsx +15 -16
- package/src/InputField/Select/Autocomplete/Multi/index.tsx +1 -1
- package/src/InputField/Select/Autocomplete/Popover/index.tsx +1 -1
- package/src/InputField/Select/Autocomplete/index.stories.tsx +2 -3
- package/src/InputField/Select/Autocomplete/index.tsx +10 -11
- package/src/InputField/Select/IconPopover/index.tsx +3 -3
- package/src/InputField/Select/Option.tsx +1 -1
- package/src/InputField/Select/index.tsx +6 -6
- package/src/InputField/Text/index.stories.tsx +3 -4
- package/src/InputField/Text/index.tsx +3 -3
- package/src/InputField/Text/useAutoSize.ts +62 -62
- package/src/LicenseMessage/index.tsx +1 -1
- package/src/Listing/ActionBar/ColumnMultiSelect.tsx +4 -4
- package/src/Listing/ActionBar/PaginationActions.tsx +1 -1
- package/src/Listing/ActionBar/index.tsx +6 -6
- package/src/Listing/Cell/DataCell.tsx +2 -2
- package/src/Listing/Cell/EllipsisTypography.tsx +0 -2
- package/src/Listing/Cell/index.tsx +7 -8
- package/src/Listing/Checkbox.tsx +1 -1
- package/src/Listing/EmptyResult/EmptyResult.tsx +0 -2
- package/src/Listing/Header/Cell/ListingHeaderCell.styles.ts +1 -1
- package/src/Listing/Header/Cell/ListingHeaderCell.tsx +1 -3
- package/src/Listing/Header/Cell/SelectActionListingHeaderCell.tsx +3 -5
- package/src/Listing/Header/ListingHeader.tsx +6 -7
- package/src/Listing/Header/_internals/DraggableIconButton.tsx +1 -3
- package/src/Listing/Header/_internals/Label.tsx +2 -3
- package/src/Listing/Listing.cypress.spec.tsx +307 -307
- package/src/Listing/Row/Row.tsx +4 -5
- package/src/Listing/Row/SkeletonLoaderRows.tsx +7 -9
- package/src/Listing/index.stories.tsx +1 -1
- package/src/Listing/index.tsx +32 -27
- package/src/Listing/useResizeObserver.ts +1 -1
- package/src/ListingPage/Filter.tsx +15 -18
- package/src/ListingPage/index.tsx +2 -2
- package/src/Logo/CentreonLogo.tsx +2 -2
- package/src/MenuSkeleton/index.tsx +1 -1
- package/src/Module/LicensedModule/LicenseCheck/index.tsx +1 -1
- package/src/Module/index.tsx +3 -3
- package/src/MultiSelectEntries/index.tsx +1 -1
- package/src/MultiSelectEntries/useHover.ts +1 -1
- package/src/Panel/Section/ExpandableSection.tsx +6 -6
- package/src/Panel/Section/index.test.tsx +1 -1
- package/src/Panel/Section/index.tsx +1 -1
- package/src/Panel/index.tsx +15 -13
- package/src/RichTextEditor/ContentEditable.tsx +195 -195
- package/src/RichTextEditor/RichTextEditor.tsx +244 -244
- package/src/RichTextEditor/index.ts +2 -2
- package/src/RichTextEditor/initialEditorState.json +113 -113
- package/src/RichTextEditor/plugins/AutoLinkPlugin/index.tsx +4 -4
- package/src/RichTextEditor/plugins/FloatingLinkEditorPlugin.tsx +10 -10
- package/src/RichTextEditor/plugins/ToolbarPlugin/AlignPicker.tsx +4 -4
- package/src/RichTextEditor/plugins/ToolbarPlugin/BlockButtons.tsx +7 -7
- package/src/RichTextEditor/plugins/ToolbarPlugin/FormatButtons.tsx +124 -124
- package/src/RichTextEditor/plugins/ToolbarPlugin/LinkButton.tsx +5 -5
- package/src/RichTextEditor/plugins/ToolbarPlugin/ListButton.tsx +2 -2
- package/src/RichTextEditor/plugins/ToolbarPlugin/MacrosButton.tsx +4 -4
- package/src/RichTextEditor/plugins/ToolbarPlugin/UndoRedoButtons.tsx +97 -97
- package/src/RichTextEditor/plugins/ToolbarPlugin/index.tsx +62 -62
- package/src/RichTextEditor/translatedLabels.ts +8 -8
- package/src/Snackbar/SnackbarProvider.tsx +3 -4
- package/src/Snackbar/Transition.tsx +5 -6
- package/src/Snackbar/index.tsx +7 -8
- package/src/SortableItems/Item.tsx +3 -3
- package/src/SortableItems/SortableItem.tsx +1 -1
- package/src/SortableItems/index.stories.tsx +5 -6
- package/src/SortableItems/index.tsx +18 -19
- package/src/StatusChip/index.tsx +1 -1
- package/src/StoryBookThemeProvider/index.tsx +35 -36
- package/src/ThemeProvider/index.tsx +8 -10
- package/src/ThemeProvider/palettes.ts +42 -27
- package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/PickersStartEndDate.tsx +1 -1
- package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/index.tsx +1 -1
- package/src/TimePeriods/SelectedTimePeriod.tsx +1 -1
- package/src/TimePeriods/TimePeriods.cypress.spec.tsx +3 -3
- package/src/TimePeriods/TimePeriods.tsx +1 -1
- package/src/TimePeriods/helpers/index.ts +1 -1
- package/src/TimePeriods/index.stories.tsx +1 -1
- package/src/TimePeriods/index.tsx +1 -1
- package/src/TimePeriods/models.ts +2 -2
- package/src/TimePeriods/timePeriodsAtoms.ts +1 -1
- package/src/TimePeriods/useTimePeriod.ts +4 -4
- package/src/TopCounterElements/ResourceSubMenu.tsx +1 -4
- package/src/TopCounterElements/StatusCounter.tsx +2 -2
- package/src/Typography/FluidTypography/index.tsx +46 -46
- package/src/Typography/Subtitle.tsx +2 -2
- package/src/Typography/story.utils.tsx +6 -6
- package/src/WallpaperPage/index.tsx +1 -1
- package/src/Wizard/ActionsBar.test.tsx +1 -1
- package/src/Wizard/ActionsBar.tsx +1 -1
- package/src/Wizard/StepIcon.tsx +1 -1
- package/src/Wizard/Stepper.tsx +2 -2
- package/src/Wizard/WizardContent.tsx +1 -1
- package/src/Wizard/index.stories.tsx +2 -2
- package/src/Wizard/index.test.tsx +3 -3
- package/src/Wizard/index.tsx +2 -2
- package/src/Wizard/models.ts +1 -1
- package/src/api/TestQueryProvider.tsx +24 -24
- package/src/api/buildListingDecoder.ts +1 -1
- package/src/api/buildListingEndpoint/getSearchQueryParameterValue.ts +11 -11
- package/src/api/buildListingEndpoint/index.ts +1 -1
- package/src/api/useFetchQuery/index.test.ts +1 -1
- package/src/api/useFetchQuery/index.ts +8 -8
- package/src/api/useGraphQuery/index.ts +1 -1
- package/src/api/useMutationQuery/index.test.ts +1 -1
- package/src/api/useMutationQuery/index.ts +4 -4
- package/src/api/useRequest/index.test.ts +1 -1
- package/src/api/useRequest/index.ts +3 -3
- package/src/base/tokens/source/$metadata.json +2 -4
- package/src/base/tokens/source/base.json +1 -1
- package/src/base/tokens/themes/base.tokens.json +34 -166
- package/src/base/tokens/themes/ui-dark.tokens.json +34 -166
- package/src/base/tokens/themes/ui-light.tokens.json +34 -166
- package/src/components/Button/Icon/IconButton.tsx +1 -1
- package/src/components/CollapsibleItem/CollapsibleItem.tsx +2 -2
- package/src/components/DataTable/DataListing.tsx +1 -1
- package/src/components/DataTable/DataTable.cypress.spec.tsx +1 -1
- package/src/components/DataTable/DataTable.stories.tsx +4 -1
- package/src/components/DataTable/EmptyState/DataTableEmptyState.tsx +1 -1
- package/src/components/DataTable/index.ts +2 -2
- package/src/components/Form/AccessRights/AccessRights.cypress.spec.tsx +11 -11
- package/src/components/Form/AccessRights/Actions/Actions.tsx +1 -1
- package/src/components/Form/AccessRights/List/Item.tsx +5 -5
- package/src/components/Form/AccessRights/List/List.tsx +4 -4
- package/src/components/Form/AccessRights/ShareInput/ContactSwitch.tsx +2 -2
- package/src/components/Form/AccessRights/ShareInput/ShareInput.styles.ts +1 -1
- package/src/components/Form/AccessRights/ShareInput/ShareInput.tsx +3 -3
- package/src/components/Form/AccessRights/ShareInput/useShareInput.tsx +2 -2
- package/src/components/Form/AccessRights/Stats/Stats.tsx +2 -2
- package/src/components/Form/AccessRights/atoms.ts +1 -1
- package/src/components/Form/AccessRights/storiesData.ts +1 -1
- package/src/components/Form/AccessRights/useAccessRightsChange.ts +1 -1
- package/src/components/Form/Dashboard/DashboardDuplicationForm.tsx +3 -3
- package/src/components/Form/Dashboard/DashboardForm.tsx +5 -5
- package/src/components/Form/Dashboard/GlobalRefreshFieldOption.tsx +4 -4
- package/src/components/Header/PageHeader/PageHeader.tsx +1 -1
- package/src/components/Header/PageHeader/PageHeaderActions.tsx +1 -1
- package/src/components/Header/PageHeader/PageHeaderMain.tsx +1 -1
- package/src/components/Header/PageHeader/PageHeaderMenu.tsx +1 -1
- package/src/components/Header/PageHeader/PageHeaderTitle.tsx +1 -1
- package/src/components/Header/PageHeader/index.ts +2 -2
- package/src/components/Inputs/Switch/Switch.tsx +1 -1
- package/src/components/ItemComposition/ItemComposition.stories.tsx +6 -4
- package/src/components/ItemComposition/index.ts +1 -1
- package/src/components/Layout/PageLayout/PageLayout.stories.tsx +1 -1
- package/src/components/Layout/PageLayout/PageQuickAccess.tsx +12 -13
- package/src/components/Layout/PageLayout/index.ts +2 -2
- package/src/components/List/Item/ListItem.tsx +3 -3
- package/src/components/List/Item/index.ts +2 -2
- package/src/components/List/List.stories.tsx +16 -14
- package/src/components/List/List.tsx +2 -2
- package/src/components/List/index.ts +1 -1
- package/src/components/Menu/Button/MenuButton.tsx +1 -1
- package/src/components/Menu/index.ts +2 -2
- package/src/components/Menu/useMenu.tsx +3 -3
- package/src/components/Modal/ConfirmationModal/ConfirmationModal.cypress.spec.tsx +1 -1
- package/src/components/Modal/ConfirmationModal/ConfirmationModal.stories.tsx +1 -1
- package/src/components/Modal/ConfirmationModal/ConfirmationModal.tsx +1 -1
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/Modal/ModalBody.tsx +1 -1
- package/src/components/Modal/ModalHeader.tsx +1 -1
- package/src/components/Modal/index.ts +2 -2
- package/src/components/Tooltip/ConfirmationTooltip/ConfirmationTooltip.tsx +2 -2
- package/src/components/Tooltip/ConfirmationTooltip/TooltipContent.tsx +1 -1
- package/src/components/Tooltip/TextOverflowTooltip/TextOverflowTooltip.tsx +1 -1
- package/src/components/Zoom/Minimap.tsx +1 -1
- package/src/components/Zoom/Zoom.stories.tsx +1 -1
- package/src/components/Zoom/ZoomContent.tsx +3 -3
- package/src/components/Zoom/localPoint.ts +4 -4
- package/src/components/Zoom/useMinimap.ts +1 -1
- package/src/queryParameters/index.ts +1 -1
- package/src/styles/tokens/themes/_ui-dark.tokens.json +34 -166
- package/src/styles/tokens/themes/_ui-light.tokens.json +34 -166
- package/src/utils/index.ts +29 -29
- package/src/utils/resourcesStatusURL.ts +2 -2
- package/src/utils/sanitizedHTML.ts +1 -1
- package/src/utils/useCopyToClipboard.ts +1 -1
- package/src/utils/useDebounce.ts +1 -1
- package/src/utils/useFullscreen/useFullscreen.ts +2 -2
- package/src/utils/useInfiniteScrollListing.ts +129 -129
- package/src/utils/useIntersectionObserver.ts +1 -1
- package/src/utils/useKeyObserver.tsx +1 -1
- package/src/utils/useLicenseExpirationWarning.test.tsx +1 -1
- package/src/utils/useLicenseExpirationWarning.ts +1 -1
- package/src/utils/useLocaleDateTimeFormat/index.test.tsx +3 -3
- package/src/utils/useLocaleDateTimeFormat/index.ts +1 -1
- package/src/utils/useLocaleDateTimeFormat/localeFallback.test.tsx +4 -4
- package/src/utils/useLocaleTimezoneDate/LocaleTimezoneDate.cypress.spec.tsx +2 -2
- package/src/utils/useMemoComponent.ts +1 -1
- package/src/utils/usePluralizedTranslation.ts +2 -2
- package/src/utils/useViewportIntersection.ts +1 -1
|
@@ -14,11 +14,7 @@
|
|
|
14
14
|
"type": "blue",
|
|
15
15
|
"item": "50"
|
|
16
16
|
},
|
|
17
|
-
"path": [
|
|
18
|
-
"color",
|
|
19
|
-
"blue",
|
|
20
|
-
"50"
|
|
21
|
-
]
|
|
17
|
+
"path": ["color", "blue", "50"]
|
|
22
18
|
},
|
|
23
19
|
{
|
|
24
20
|
"value": "#c8dff8",
|
|
@@ -35,11 +31,7 @@
|
|
|
35
31
|
"type": "blue",
|
|
36
32
|
"item": "100"
|
|
37
33
|
},
|
|
38
|
-
"path": [
|
|
39
|
-
"color",
|
|
40
|
-
"blue",
|
|
41
|
-
"100"
|
|
42
|
-
]
|
|
34
|
+
"path": ["color", "blue", "100"]
|
|
43
35
|
},
|
|
44
36
|
{
|
|
45
37
|
"value": "#99c1ef",
|
|
@@ -56,11 +48,7 @@
|
|
|
56
48
|
"type": "blue",
|
|
57
49
|
"item": "200"
|
|
58
50
|
},
|
|
59
|
-
"path": [
|
|
60
|
-
"color",
|
|
61
|
-
"blue",
|
|
62
|
-
"200"
|
|
63
|
-
]
|
|
51
|
+
"path": ["color", "blue", "200"]
|
|
64
52
|
},
|
|
65
53
|
{
|
|
66
54
|
"value": "#69a2e3",
|
|
@@ -77,11 +65,7 @@
|
|
|
77
65
|
"type": "blue",
|
|
78
66
|
"item": "300"
|
|
79
67
|
},
|
|
80
|
-
"path": [
|
|
81
|
-
"color",
|
|
82
|
-
"blue",
|
|
83
|
-
"300"
|
|
84
|
-
]
|
|
68
|
+
"path": ["color", "blue", "300"]
|
|
85
69
|
},
|
|
86
70
|
{
|
|
87
71
|
"value": "#3e85d5",
|
|
@@ -98,11 +82,7 @@
|
|
|
98
82
|
"type": "blue",
|
|
99
83
|
"item": "400"
|
|
100
84
|
},
|
|
101
|
-
"path": [
|
|
102
|
-
"color",
|
|
103
|
-
"blue",
|
|
104
|
-
"400"
|
|
105
|
-
]
|
|
85
|
+
"path": ["color", "blue", "400"]
|
|
106
86
|
},
|
|
107
87
|
{
|
|
108
88
|
"value": "#2e68aa",
|
|
@@ -119,11 +99,7 @@
|
|
|
119
99
|
"type": "blue",
|
|
120
100
|
"item": "500"
|
|
121
101
|
},
|
|
122
|
-
"path": [
|
|
123
|
-
"color",
|
|
124
|
-
"blue",
|
|
125
|
-
"500"
|
|
126
|
-
]
|
|
102
|
+
"path": ["color", "blue", "500"]
|
|
127
103
|
},
|
|
128
104
|
{
|
|
129
105
|
"value": "#205593",
|
|
@@ -140,11 +116,7 @@
|
|
|
140
116
|
"type": "blue",
|
|
141
117
|
"item": "600"
|
|
142
118
|
},
|
|
143
|
-
"path": [
|
|
144
|
-
"color",
|
|
145
|
-
"blue",
|
|
146
|
-
"600"
|
|
147
|
-
]
|
|
119
|
+
"path": ["color", "blue", "600"]
|
|
148
120
|
},
|
|
149
121
|
{
|
|
150
122
|
"value": "#164274",
|
|
@@ -161,11 +133,7 @@
|
|
|
161
133
|
"type": "blue",
|
|
162
134
|
"item": "700"
|
|
163
135
|
},
|
|
164
|
-
"path": [
|
|
165
|
-
"color",
|
|
166
|
-
"blue",
|
|
167
|
-
"700"
|
|
168
|
-
]
|
|
136
|
+
"path": ["color", "blue", "700"]
|
|
169
137
|
},
|
|
170
138
|
{
|
|
171
139
|
"value": "#0d2e54",
|
|
@@ -182,11 +150,7 @@
|
|
|
182
150
|
"type": "blue",
|
|
183
151
|
"item": "800"
|
|
184
152
|
},
|
|
185
|
-
"path": [
|
|
186
|
-
"color",
|
|
187
|
-
"blue",
|
|
188
|
-
"800"
|
|
189
|
-
]
|
|
153
|
+
"path": ["color", "blue", "800"]
|
|
190
154
|
},
|
|
191
155
|
{
|
|
192
156
|
"value": "#071d37",
|
|
@@ -203,11 +167,7 @@
|
|
|
203
167
|
"type": "blue",
|
|
204
168
|
"item": "900"
|
|
205
169
|
},
|
|
206
|
-
"path": [
|
|
207
|
-
"color",
|
|
208
|
-
"blue",
|
|
209
|
-
"900"
|
|
210
|
-
]
|
|
170
|
+
"path": ["color", "blue", "900"]
|
|
211
171
|
},
|
|
212
172
|
{
|
|
213
173
|
"value": "#031326",
|
|
@@ -224,11 +184,7 @@
|
|
|
224
184
|
"type": "blue",
|
|
225
185
|
"item": "950"
|
|
226
186
|
},
|
|
227
|
-
"path": [
|
|
228
|
-
"color",
|
|
229
|
-
"blue",
|
|
230
|
-
"950"
|
|
231
|
-
]
|
|
187
|
+
"path": ["color", "blue", "950"]
|
|
232
188
|
},
|
|
233
189
|
{
|
|
234
190
|
"value": "#f6edf7",
|
|
@@ -245,11 +201,7 @@
|
|
|
245
201
|
"type": "purple",
|
|
246
202
|
"item": "50"
|
|
247
203
|
},
|
|
248
|
-
"path": [
|
|
249
|
-
"color",
|
|
250
|
-
"purple",
|
|
251
|
-
"50"
|
|
252
|
-
]
|
|
204
|
+
"path": ["color", "purple", "50"]
|
|
253
205
|
},
|
|
254
206
|
{
|
|
255
207
|
"value": "#ecd6ef",
|
|
@@ -266,11 +218,7 @@
|
|
|
266
218
|
"type": "purple",
|
|
267
219
|
"item": "100"
|
|
268
220
|
},
|
|
269
|
-
"path": [
|
|
270
|
-
"color",
|
|
271
|
-
"purple",
|
|
272
|
-
"100"
|
|
273
|
-
]
|
|
221
|
+
"path": ["color", "purple", "100"]
|
|
274
222
|
},
|
|
275
223
|
{
|
|
276
224
|
"value": "#dbabe3",
|
|
@@ -287,11 +235,7 @@
|
|
|
287
235
|
"type": "purple",
|
|
288
236
|
"item": "200"
|
|
289
237
|
},
|
|
290
|
-
"path": [
|
|
291
|
-
"color",
|
|
292
|
-
"purple",
|
|
293
|
-
"200"
|
|
294
|
-
]
|
|
238
|
+
"path": ["color", "purple", "200"]
|
|
295
239
|
},
|
|
296
240
|
{
|
|
297
241
|
"value": "#cd7dd9",
|
|
@@ -308,11 +252,7 @@
|
|
|
308
252
|
"type": "purple",
|
|
309
253
|
"item": "300"
|
|
310
254
|
},
|
|
311
|
-
"path": [
|
|
312
|
-
"color",
|
|
313
|
-
"purple",
|
|
314
|
-
"300"
|
|
315
|
-
]
|
|
255
|
+
"path": ["color", "purple", "300"]
|
|
316
256
|
},
|
|
317
257
|
{
|
|
318
258
|
"value": "#c151d2",
|
|
@@ -329,11 +269,7 @@
|
|
|
329
269
|
"type": "purple",
|
|
330
270
|
"item": "400"
|
|
331
271
|
},
|
|
332
|
-
"path": [
|
|
333
|
-
"color",
|
|
334
|
-
"purple",
|
|
335
|
-
"400"
|
|
336
|
-
]
|
|
272
|
+
"path": ["color", "purple", "400"]
|
|
337
273
|
},
|
|
338
274
|
{
|
|
339
275
|
"value": "#ac28c1",
|
|
@@ -350,11 +286,7 @@
|
|
|
350
286
|
"type": "purple",
|
|
351
287
|
"item": "500"
|
|
352
288
|
},
|
|
353
|
-
"path": [
|
|
354
|
-
"color",
|
|
355
|
-
"purple",
|
|
356
|
-
"500"
|
|
357
|
-
]
|
|
289
|
+
"path": ["color", "purple", "500"]
|
|
358
290
|
},
|
|
359
291
|
{
|
|
360
292
|
"value": "#872796",
|
|
@@ -371,11 +303,7 @@
|
|
|
371
303
|
"type": "purple",
|
|
372
304
|
"item": "600"
|
|
373
305
|
},
|
|
374
|
-
"path": [
|
|
375
|
-
"color",
|
|
376
|
-
"purple",
|
|
377
|
-
"600"
|
|
378
|
-
]
|
|
306
|
+
"path": ["color", "purple", "600"]
|
|
379
307
|
},
|
|
380
308
|
{
|
|
381
309
|
"value": "#682172",
|
|
@@ -392,11 +320,7 @@
|
|
|
392
320
|
"type": "purple",
|
|
393
321
|
"item": "700"
|
|
394
322
|
},
|
|
395
|
-
"path": [
|
|
396
|
-
"color",
|
|
397
|
-
"purple",
|
|
398
|
-
"700"
|
|
399
|
-
]
|
|
323
|
+
"path": ["color", "purple", "700"]
|
|
400
324
|
},
|
|
401
325
|
{
|
|
402
326
|
"value": "#491b50",
|
|
@@ -413,11 +337,7 @@
|
|
|
413
337
|
"type": "purple",
|
|
414
338
|
"item": "800"
|
|
415
339
|
},
|
|
416
|
-
"path": [
|
|
417
|
-
"color",
|
|
418
|
-
"purple",
|
|
419
|
-
"800"
|
|
420
|
-
]
|
|
340
|
+
"path": ["color", "purple", "800"]
|
|
421
341
|
},
|
|
422
342
|
{
|
|
423
343
|
"value": "#29112c",
|
|
@@ -434,11 +354,7 @@
|
|
|
434
354
|
"type": "purple",
|
|
435
355
|
"item": "900"
|
|
436
356
|
},
|
|
437
|
-
"path": [
|
|
438
|
-
"color",
|
|
439
|
-
"purple",
|
|
440
|
-
"900"
|
|
441
|
-
]
|
|
357
|
+
"path": ["color", "purple", "900"]
|
|
442
358
|
},
|
|
443
359
|
{
|
|
444
360
|
"value": "#1a0d1c",
|
|
@@ -455,11 +371,7 @@
|
|
|
455
371
|
"type": "purple",
|
|
456
372
|
"item": "950"
|
|
457
373
|
},
|
|
458
|
-
"path": [
|
|
459
|
-
"color",
|
|
460
|
-
"purple",
|
|
461
|
-
"950"
|
|
462
|
-
]
|
|
374
|
+
"path": ["color", "purple", "950"]
|
|
463
375
|
},
|
|
464
376
|
{
|
|
465
377
|
"value": "#f9fafb",
|
|
@@ -476,11 +388,7 @@
|
|
|
476
388
|
"type": "grey",
|
|
477
389
|
"item": "50"
|
|
478
390
|
},
|
|
479
|
-
"path": [
|
|
480
|
-
"color",
|
|
481
|
-
"grey",
|
|
482
|
-
"50"
|
|
483
|
-
]
|
|
391
|
+
"path": ["color", "grey", "50"]
|
|
484
392
|
},
|
|
485
393
|
{
|
|
486
394
|
"value": "#eaedf0",
|
|
@@ -497,11 +405,7 @@
|
|
|
497
405
|
"type": "grey",
|
|
498
406
|
"item": "100"
|
|
499
407
|
},
|
|
500
|
-
"path": [
|
|
501
|
-
"color",
|
|
502
|
-
"grey",
|
|
503
|
-
"100"
|
|
504
|
-
]
|
|
408
|
+
"path": ["color", "grey", "100"]
|
|
505
409
|
},
|
|
506
410
|
{
|
|
507
411
|
"value": "#cad0d8",
|
|
@@ -518,11 +422,7 @@
|
|
|
518
422
|
"type": "grey",
|
|
519
423
|
"item": "200"
|
|
520
424
|
},
|
|
521
|
-
"path": [
|
|
522
|
-
"color",
|
|
523
|
-
"grey",
|
|
524
|
-
"200"
|
|
525
|
-
]
|
|
425
|
+
"path": ["color", "grey", "200"]
|
|
526
426
|
},
|
|
527
427
|
{
|
|
528
428
|
"value": "#aab4c0",
|
|
@@ -539,11 +439,7 @@
|
|
|
539
439
|
"type": "grey",
|
|
540
440
|
"item": "300"
|
|
541
441
|
},
|
|
542
|
-
"path": [
|
|
543
|
-
"color",
|
|
544
|
-
"grey",
|
|
545
|
-
"300"
|
|
546
|
-
]
|
|
442
|
+
"path": ["color", "grey", "300"]
|
|
547
443
|
},
|
|
548
444
|
{
|
|
549
445
|
"value": "#8c98a6",
|
|
@@ -560,11 +456,7 @@
|
|
|
560
456
|
"type": "grey",
|
|
561
457
|
"item": "400"
|
|
562
458
|
},
|
|
563
|
-
"path": [
|
|
564
|
-
"color",
|
|
565
|
-
"grey",
|
|
566
|
-
"400"
|
|
567
|
-
]
|
|
459
|
+
"path": ["color", "grey", "400"]
|
|
568
460
|
},
|
|
569
461
|
{
|
|
570
462
|
"value": "#6f7b8a",
|
|
@@ -581,11 +473,7 @@
|
|
|
581
473
|
"type": "grey",
|
|
582
474
|
"item": "500"
|
|
583
475
|
},
|
|
584
|
-
"path": [
|
|
585
|
-
"color",
|
|
586
|
-
"grey",
|
|
587
|
-
"500"
|
|
588
|
-
]
|
|
476
|
+
"path": ["color", "grey", "500"]
|
|
589
477
|
},
|
|
590
478
|
{
|
|
591
479
|
"value": "#596573",
|
|
@@ -602,11 +490,7 @@
|
|
|
602
490
|
"type": "grey",
|
|
603
491
|
"item": "600"
|
|
604
492
|
},
|
|
605
|
-
"path": [
|
|
606
|
-
"color",
|
|
607
|
-
"grey",
|
|
608
|
-
"600"
|
|
609
|
-
]
|
|
493
|
+
"path": ["color", "grey", "600"]
|
|
610
494
|
},
|
|
611
495
|
{
|
|
612
496
|
"value": "#434e5b",
|
|
@@ -623,11 +507,7 @@
|
|
|
623
507
|
"type": "grey",
|
|
624
508
|
"item": "700"
|
|
625
509
|
},
|
|
626
|
-
"path": [
|
|
627
|
-
"color",
|
|
628
|
-
"grey",
|
|
629
|
-
"700"
|
|
630
|
-
]
|
|
510
|
+
"path": ["color", "grey", "700"]
|
|
631
511
|
},
|
|
632
512
|
{
|
|
633
513
|
"value": "#2f3741",
|
|
@@ -644,11 +524,7 @@
|
|
|
644
524
|
"type": "grey",
|
|
645
525
|
"item": "800"
|
|
646
526
|
},
|
|
647
|
-
"path": [
|
|
648
|
-
"color",
|
|
649
|
-
"grey",
|
|
650
|
-
"800"
|
|
651
|
-
]
|
|
527
|
+
"path": ["color", "grey", "800"]
|
|
652
528
|
},
|
|
653
529
|
{
|
|
654
530
|
"value": "#1b2127",
|
|
@@ -665,11 +541,7 @@
|
|
|
665
541
|
"type": "grey",
|
|
666
542
|
"item": "900"
|
|
667
543
|
},
|
|
668
|
-
"path": [
|
|
669
|
-
"color",
|
|
670
|
-
"grey",
|
|
671
|
-
"900"
|
|
672
|
-
]
|
|
544
|
+
"path": ["color", "grey", "900"]
|
|
673
545
|
},
|
|
674
546
|
{
|
|
675
547
|
"value": "#101418",
|
|
@@ -686,10 +558,6 @@
|
|
|
686
558
|
"type": "grey",
|
|
687
559
|
"item": "950"
|
|
688
560
|
},
|
|
689
|
-
"path": [
|
|
690
|
-
"color",
|
|
691
|
-
"grey",
|
|
692
|
-
"950"
|
|
693
|
-
]
|
|
561
|
+
"path": ["color", "grey", "950"]
|
|
694
562
|
}
|
|
695
|
-
]
|
|
563
|
+
]
|
package/src/utils/index.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export * from './useLocaleDateTimeFormat';
|
|
2
|
-
export * from './getNormalizedId';
|
|
3
|
-
export * from './statuses';
|
|
4
|
-
export * from './typedMemo';
|
|
5
|
-
export * from './useCopyToClipboard';
|
|
6
|
-
export * from './useDebounce';
|
|
7
|
-
export * from './useDeepCallback';
|
|
8
|
-
export * from './useDeepMemo';
|
|
9
|
-
export * from './useIntersectionObserver';
|
|
10
|
-
export * from './useKeyObserver';
|
|
11
|
-
export * from './useLoadImage';
|
|
12
|
-
export * from './useMemoComponent';
|
|
13
|
-
export * from './useThemeMode';
|
|
14
|
-
export * from './useViewportIntersection';
|
|
15
|
-
export * from './panelSize';
|
|
16
|
-
export * from './sanitizedHTML';
|
|
17
|
-
export * from './docsURL';
|
|
18
|
-
export * from './useInfiniteScrollListing';
|
|
19
|
-
export * from './useLicenseExpirationWarning';
|
|
20
|
-
export * from './useRefreshInterval';
|
|
21
|
-
export * from './centreonBaseURL';
|
|
22
|
-
export * from './usePluralizedTranslation';
|
|
23
|
-
export * from './useResizeObserver';
|
|
24
|
-
export * from './useFullscreen';
|
|
25
|
-
export * from './resourcesStatusURL';
|
|
26
|
-
export * from '../Graph/Chart/helpers';
|
|
27
|
-
export * from '../Graph/Chart/InteractiveComponents/TimeShiftZones/useTimeShiftZones';
|
|
28
|
-
export * from '../TimePeriods/helpers';
|
|
29
|
-
export * from './useLocaleTimezoneDate/useLocaleTimezoneDate';
|
|
1
|
+
export * from './useLocaleDateTimeFormat';
|
|
2
|
+
export * from './getNormalizedId';
|
|
3
|
+
export * from './statuses';
|
|
4
|
+
export * from './typedMemo';
|
|
5
|
+
export * from './useCopyToClipboard';
|
|
6
|
+
export * from './useDebounce';
|
|
7
|
+
export * from './useDeepCallback';
|
|
8
|
+
export * from './useDeepMemo';
|
|
9
|
+
export * from './useIntersectionObserver';
|
|
10
|
+
export * from './useKeyObserver';
|
|
11
|
+
export * from './useLoadImage';
|
|
12
|
+
export * from './useMemoComponent';
|
|
13
|
+
export * from './useThemeMode';
|
|
14
|
+
export * from './useViewportIntersection';
|
|
15
|
+
export * from './panelSize';
|
|
16
|
+
export * from './sanitizedHTML';
|
|
17
|
+
export * from './docsURL';
|
|
18
|
+
export * from './useInfiniteScrollListing';
|
|
19
|
+
export * from './useLicenseExpirationWarning';
|
|
20
|
+
export * from './useRefreshInterval';
|
|
21
|
+
export * from './centreonBaseURL';
|
|
22
|
+
export * from './usePluralizedTranslation';
|
|
23
|
+
export * from './useResizeObserver';
|
|
24
|
+
export * from './useFullscreen';
|
|
25
|
+
export * from './resourcesStatusURL';
|
|
26
|
+
export * from '../Graph/Chart/helpers';
|
|
27
|
+
export * from '../Graph/Chart/InteractiveComponents/TimeShiftZones/useTimeShiftZones';
|
|
28
|
+
export * from '../TimePeriods/helpers';
|
|
29
|
+
export * from './useLocaleTimezoneDate/useLocaleTimezoneDate';
|
package/src/utils/useDebounce.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useTranslation } from 'react-i18next';
|
|
2
1
|
import { useAtom } from 'jotai';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
3
|
|
|
4
4
|
import { useSnackbar } from '../..';
|
|
5
5
|
|
|
6
|
-
import { labelCannotEnterInFullscreen } from './translatedLabels';
|
|
7
6
|
import { isFullscreenActivatedAtom } from './atoms';
|
|
7
|
+
import { labelCannotEnterInFullscreen } from './translatedLabels';
|
|
8
8
|
|
|
9
9
|
interface UseFullscreenState {
|
|
10
10
|
enterInFullscreen: (element: HTMLElement | null) => void;
|