@rio-cloud/rio-uikit 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.DS_Store +0 -0
- package/AccentBar.d.ts +2 -0
- package/AccentBar.js +2 -0
- package/Avatar.d.ts +2 -0
- package/Avatar.js +2 -0
- package/AvatarGroup.d.ts +2 -0
- package/AvatarGroup.js +2 -0
- package/Banner.d.ts +2 -0
- package/Banner.js +2 -0
- package/ButtonToolbar.d.ts +2 -0
- package/ButtonToolbar.js +2 -0
- package/Card.d.ts +2 -0
- package/Card.js +2 -0
- package/DateRangePicker.js +2 -3
- package/FormLabel.d.ts +2 -0
- package/FormLabel.js +2 -0
- package/LabeledElement.d.ts +2 -0
- package/LabeledElement.js +2 -0
- package/StepButton.d.ts +2 -0
- package/StepButton.js +2 -0
- package/VirtualList.d.ts +2 -0
- package/VirtualList.js +2 -0
- package/components/accentBar/AccentBar.d.ts +21 -0
- package/components/accentBar/AccentBar.js +12 -0
- package/components/actionBarItem/ActionBarItem.d.ts +2 -6
- package/components/actionBarItem/ActionBarItem.js +6 -7
- package/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
- package/components/actionBarItem/ActionBarItemIcon.js +2 -3
- package/components/actionBarItem/ActionBarItemList.js +2 -6
- package/components/actionBarItem/ActionBarItemListItem.js +2 -5
- package/components/actionBarItem/ActionBarItemListSeparator.js +2 -6
- package/components/actionBarItem/ActionBarItemPopoverContent.js +2 -6
- package/components/actionBarItem/ActionBarOverlay.d.ts +1 -1
- package/components/actionBarItem/ActionBarOverlay.js +3 -4
- package/components/activity/Activity.js +2 -3
- package/components/animatedNumber/AnimatedNumber.d.ts +6 -6
- package/components/animatedNumber/AnimatedNumber.js +2 -3
- package/components/applicationHeader/AppMenu.js +3 -6
- package/components/applicationHeader/AppMenuContent.js +2 -4
- package/components/applicationHeader/AppMenuDropdown.js +4 -4
- package/components/applicationHeader/ApplicationActionBar.js +4 -7
- package/components/applicationHeader/ApplicationHeader.js +4 -5
- package/components/applicationHeader/CollapsedNavItem.js +3 -3
- package/components/applicationHeader/MobileAppMenu.js +2 -2
- package/components/applicationHeader/MobileHeaderModal.js +2 -2
- package/components/applicationHeader/MobileSubmoduleNavigation.js +3 -3
- package/components/applicationHeader/NavItems.js +2 -2
- package/components/applicationLayout/ApplicationLayout.js +2 -4
- package/components/applicationLayout/ApplicationLayoutBody.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutBody.js +9 -9
- package/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyBanner.js +2 -3
- package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +2 -3
- package/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -3
- package/components/applicationLayout/ApplicationLayoutHeader.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutHeader.js +2 -3
- package/components/applicationLayout/ApplicationLayoutSidebar.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutSidebar.js +2 -3
- package/components/applicationLayout/SubNavigation.js +2 -3
- package/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +1 -3
- package/components/assetTree/AssetTree.d.ts +1 -1
- package/components/assetTree/AssetTree.js +4 -5
- package/components/assetTree/Tree.d.ts +2 -2
- package/components/assetTree/Tree.js +9 -12
- package/components/assetTree/TreeLeaf.js +1 -1
- package/components/assetTree/TreeLeafList.js +0 -2
- package/components/assetTree/TreeNode.js +1 -1
- package/components/assetTree/TreeNodeContainer.js +1 -3
- package/components/assetTree/TreeNothingFound.js +2 -2
- package/components/assetTree/TreeOption.js +2 -5
- package/components/assetTree/TreeOptions.js +3 -5
- package/components/assetTree/TreeRoot.js +1 -3
- package/components/assetTree/TreeSearch.js +1 -1
- package/components/assetTree/TreeSelectAll.js +1 -3
- package/components/assetTree/TreeSidebar.js +2 -3
- package/components/assetTree/TreeSidebarCategories.js +2 -4
- package/components/assetTree/TreeSummary.js +1 -1
- package/components/assetTree/TreeSummaryRow.js +1 -3
- package/components/assetTree/TypeCounter.js +2 -3
- package/components/assetTree/treeReducer.js +8 -8
- package/components/assetTree/treeUtils.d.ts +0 -2
- package/components/assetTree/treeUtils.js +14 -11
- package/components/autosuggest/AutoSuggest.js +12 -16
- package/components/autosuggest/AutoSuggestAddons.js +1 -3
- package/components/autosuggest/DropdownSpinner.js +1 -2
- package/components/autosuggest/NoItemMessage.js +1 -3
- package/components/avatar/Avatar.d.ts +54 -0
- package/components/avatar/Avatar.js +27 -0
- package/components/avatar/AvatarContent.d.ts +10 -0
- package/components/avatar/AvatarContent.js +20 -0
- package/components/avatar/AvatarGroup.d.ts +15 -0
- package/components/avatar/AvatarGroup.js +23 -0
- package/components/banner/Banner.d.ts +66 -0
- package/components/banner/Banner.js +49 -0
- package/components/banner/BannerActions.d.ts +9 -0
- package/components/banner/BannerActions.js +5 -0
- package/components/banner/BannerContent.d.ts +25 -0
- package/components/banner/BannerContent.js +16 -0
- package/components/banner/BannerIcon.d.ts +9 -0
- package/components/banner/BannerIcon.js +5 -0
- package/components/banner/BannerPage.d.ts +9 -0
- package/components/banner/BannerPage.js +5 -0
- package/components/bottomSheet/BottomSheet.d.ts +2 -2
- package/components/bottomSheet/BottomSheet.js +5 -6
- package/components/bottomSheet/TimedBottomSheet.js +3 -4
- package/components/button/Button.d.ts +2 -0
- package/components/button/Button.js +4 -5
- package/components/button/ButtonToolbar.d.ts +13 -0
- package/components/button/ButtonToolbar.js +8 -0
- package/components/button/StepButton.d.ts +12 -0
- package/components/button/StepButton.js +8 -0
- package/components/button/ToggleButton.js +1 -3
- package/components/calendarStripe/CalendarStripe.js +1 -1
- package/components/card/Card.d.ts +21 -0
- package/components/card/Card.js +8 -0
- package/components/carousel/Carousel.d.ts +4 -6
- package/components/charts/AreaChart.js +6 -9
- package/components/charts/AreaGradient.js +1 -2
- package/components/charts/BarChart.js +13 -12
- package/components/charts/ChartGrid.js +1 -1
- package/components/charts/ChartLabel.d.ts +0 -1
- package/components/charts/ChartNeedle.js +13 -4
- package/components/charts/ComposedChart.js +13 -16
- package/components/charts/Legend.js +0 -2
- package/components/charts/LineChart.js +7 -10
- package/components/charts/PieChart.js +6 -9
- package/components/charts/RadialBarChart.js +5 -8
- package/components/charts/ReferenceLine.js +3 -6
- package/components/charts/ResponsiveContainer.js +1 -1
- package/components/charts/XAxis.js +2 -2
- package/components/charts/YAxis.d.ts +0 -1
- package/components/charts/chartHelper.d.ts +2 -2
- package/components/charts/chartHelper.js +1 -1
- package/components/checkbox/Checkbox.js +4 -7
- package/components/checkbox/CheckboxIcon.js +1 -1
- package/components/clearableInput/ClearableInput.js +18 -7
- package/components/collapse/Collapse.d.ts +1 -1
- package/components/collapse/Collapse.js +1 -3
- package/components/contentLoader/ContentLoader.js +2 -5
- package/components/dataTabs/DataTab.js +3 -6
- package/components/dataTabs/DataTabHeader.js +1 -1
- package/components/dataTabs/DataTabs.js +7 -9
- package/components/datepicker/DatePicker.d.ts +16 -16
- package/components/datepicker/DatePicker.js +3 -4
- package/components/datepicker/DateRangePicker.d.ts +55 -55
- package/components/datepicker/DateRangePicker.js +28 -14
- package/components/dialog/ConfirmationDialog.js +3 -6
- package/components/dialog/Dialog.d.ts +2 -2
- package/components/dialog/Dialog.js +13 -13
- package/components/dialog/DialogBody.js +2 -6
- package/components/dialog/DialogFooter.js +2 -5
- package/components/dialog/DialogHeader.js +2 -3
- package/components/dialog/FrameDialog.js +2 -2
- package/components/dialog/InfoDialog.js +2 -5
- package/components/dialog/MediaDialog.js +7 -9
- package/components/dialog/OnboardingDialog.js +2 -5
- package/components/dialog/ReleaseNotesDialog.js +1 -3
- package/components/dialog/SaveDialog.js +3 -6
- package/components/dialog/SimpleDialog.js +2 -5
- package/components/dialog/SplitDialog.js +3 -6
- package/components/divider/Divider.js +3 -5
- package/components/dropdown/ButtonDropdown.d.ts +1 -1
- package/components/dropdown/ButtonDropdown.js +11 -11
- package/components/dropdown/Caret.js +0 -2
- package/components/dropdown/DropdownSubmenu.js +2 -3
- package/components/dropdown/DropdownToggleButton.js +2 -3
- package/components/dropdown/SimpleButtonDropdown.js +1 -3
- package/components/dropdown/SingleButtonDropdown.js +1 -3
- package/components/dropdown/SplitButtonDropdown.js +1 -3
- package/components/dropdown/SplitCaretButton.js +2 -3
- package/components/editableContent/EditableContent.js +6 -9
- package/components/expander/ExpanderList.js +5 -5
- package/components/expander/ExpanderPanel.js +2 -3
- package/components/fade/Fade.js +2 -2
- package/components/fade/FadeExpander.js +2 -2
- package/components/fade/FadeUp.js +2 -3
- package/components/feedback/FeedbackInlineButtons.js +2 -5
- package/components/feedback/FeedbackRating.js +4 -6
- package/components/feedback/FeedbackReactions.js +4 -5
- package/components/filepicker/FilePicker.js +5 -6
- package/components/formLabel/FormLabel.d.ts +13 -0
- package/components/formLabel/FormLabel.js +17 -0
- package/components/formLabel/LabeledElement.d.ts +28 -0
- package/components/formLabel/LabeledElement.js +11 -0
- package/components/groupedItemList/GroupedItemList.js +2 -5
- package/components/licensePlate/LicensePlate.js +4 -6
- package/components/listMenu/ListMenu.d.ts +1 -0
- package/components/listMenu/ListMenu.js +11 -11
- package/components/listMenu/ListMenuGroup.d.ts +17 -0
- package/components/listMenu/ListMenuGroup.js +1 -3
- package/components/listMenu/ListMenuHeader.d.ts +3 -1
- package/components/listMenu/ListMenuHeader.js +3 -5
- package/components/loadMore/LoadMoreButton.js +2 -5
- package/components/loadMore/LoadMoreProgress.js +1 -1
- package/components/map/components/Map.js +5 -7
- package/components/map/components/MapContext.d.ts +0 -1
- package/components/map/components/MapElements.js +1 -1
- package/components/map/components/MapPosition.js +3 -5
- package/components/map/components/MapSize.js +3 -3
- package/components/map/components/constants.d.ts +1 -2
- package/components/map/components/features/ContextMenu.d.ts +0 -2
- package/components/map/components/features/ContextMenu.js +3 -4
- package/components/map/components/features/ContextMenuItem.d.ts +0 -1
- package/components/map/components/features/MapSettings.d.ts +0 -1
- package/components/map/components/features/MapSettings.js +6 -7
- package/components/map/components/features/MapZoom.js +6 -9
- package/components/map/components/features/Route.d.ts +1 -1
- package/components/map/components/features/Route.js +23 -4
- package/components/map/components/features/basics/Circle.d.ts +0 -1
- package/components/map/components/features/basics/Circle.js +3 -5
- package/components/map/components/features/basics/InfoBubble.d.ts +0 -1
- package/components/map/components/features/basics/InfoBubble.js +4 -6
- package/components/map/components/features/basics/Marker.d.ts +2 -3
- package/components/map/components/features/basics/Marker.js +2 -4
- package/components/map/components/features/basics/Polygon.d.ts +0 -1
- package/components/map/components/features/basics/Polygon.js +3 -5
- package/components/map/components/features/basics/Polyline.d.ts +0 -1
- package/components/map/components/features/basics/Polyline.js +18 -7
- package/components/map/components/features/basics/TextMarker.js +2 -5
- package/components/map/components/features/layers/MapLayerGroup.js +11 -7
- package/components/map/components/features/layers/MapOverlayLayers.js +0 -1
- package/components/map/components/features/layers/MarkerLayer.js +6 -6
- package/components/map/components/features/layers/clustering/ClusterLayer.d.ts +0 -1
- package/components/map/components/features/layers/clustering/ClusterLayer.js +2 -4
- package/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -4
- package/components/map/components/features/layers/overlayLayers/IncidentsLayer.js +13 -16
- package/components/map/components/features/layers/overlayLayers/Layer.d.ts +0 -1
- package/components/map/components/features/layers/overlayLayers/Layer.js +4 -8
- package/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js +2 -5
- package/components/map/components/features/layers/overlayLayers/TrafficLayer.js +4 -8
- package/components/map/components/features/settings/MapSettingsItem.js +3 -3
- package/components/map/components/features/settings/MapSettingsPanel.js +2 -4
- package/components/map/components/features/settings/MapSettingsTile.js +9 -10
- package/components/map/components/features/settings/ZoomButtons.js +1 -3
- package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +2 -5
- package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +2 -5
- package/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -13
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +3 -4
- package/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -5
- package/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -5
- package/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -5
- package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -4
- package/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapLayerIncidentsItem.js +2 -4
- package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +2 -4
- package/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapLayerTrafficItem.js +2 -4
- package/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +2 -4
- package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -4
- package/components/map/icons/MapIcon.js +35 -35
- package/components/map/utils/clustering.d.ts +0 -1
- package/components/map/utils/eventHandling.d.ts +0 -1
- package/components/map/utils/eventHandling.js +1 -1
- package/components/map/utils/mapTypes.d.ts +0 -2
- package/components/map/utils/mapUi.d.ts +0 -1
- package/components/map/utils/mapUtils.d.ts +0 -1
- package/components/map/utils/mapUtils.js +5 -5
- package/components/map/utils/positions.js +2 -2
- package/components/map/utils/rendering.d.ts +0 -1
- package/components/map/utils/rendering.js +8 -10
- package/components/mapMarker/ClusterMapMarker.js +1 -2
- package/components/mapMarker/SingleMapMarker.js +4 -7
- package/components/menuItems/MenuItem.js +1 -1
- package/components/menuItems/MenuItemList.js +2 -3
- package/components/menuItems/MenuItems.js +1 -5
- package/components/navigation/AppNavigationBar.d.ts +17 -0
- package/components/navigation/AppNavigationBar.js +3 -4
- package/components/noData/NoData.js +3 -6
- package/components/notification/Notification.d.ts +50 -30
- package/components/notification/Notification.js +96 -3
- package/components/notification/NotificationsContainer.d.ts +2 -0
- package/components/notification/NotificationsContainer.js +2 -4
- package/components/numberControl/NumberControl.js +3 -4
- package/components/numberInput/NumberInput.js +4 -5
- package/components/onboarding/OnboardingTip.js +3 -5
- package/components/overlay/OverlayTrigger.js +29 -14
- package/components/page/Page.js +1 -3
- package/components/pager/Pager.js +4 -5
- package/components/popover/Popover.d.ts +5 -5
- package/components/popover/Popover.js +4 -6
- package/components/position/Position.js +1 -2
- package/components/radiobutton/RadioButton.js +3 -4
- package/components/releaseNotes/ReleaseNotes.js +3 -6
- package/components/resizer/Resizer.js +2 -3
- package/components/responsiveColumnStripe/ResponsiveColumnStripe.d.ts +1 -1
- package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +8 -12
- package/components/rules/RuleConnector.js +2 -5
- package/components/rules/RuleContainer.js +4 -6
- package/components/rules/RulesWrapper.js +3 -9
- package/components/saveableInput/SaveableInput.js +4 -6
- package/components/selects/BaseSelectDropdown.js +9 -9
- package/components/selects/ClearButton.js +1 -3
- package/components/selects/DropdownHeader.js +1 -3
- package/components/selects/Multiselect.js +7 -9
- package/components/selects/MultiselectToggleCounter.js +1 -3
- package/components/selects/MultiselectToggleFilter.js +0 -2
- package/components/selects/MultiselectTogglePlaceholder.js +1 -3
- package/components/selects/MultiselectToggleSelection.js +5 -7
- package/components/selects/NoItemMessage.js +1 -3
- package/components/selects/Select.js +5 -7
- package/components/selects/SelectFilter.js +0 -2
- package/components/selects/SelectedOption.js +6 -8
- package/components/selects/WithFeedbackAndAddon.js +1 -3
- package/components/sidebars/Sidebar.js +8 -10
- package/components/sidebars/SidebarBackdrop.js +0 -1
- package/components/sidebars/SidebarCloseButton.js +1 -2
- package/components/sidebars/SidebarFooter.js +1 -3
- package/components/sidebars/SidebarFullscreenToggle.js +2 -3
- package/components/slider/RangeSlider.js +2 -3
- package/components/slider/Slider.js +2 -3
- package/components/smoothScrollbars/SmoothScrollbars.d.ts +1 -1
- package/components/smoothScrollbars/SmoothScrollbars.js +7 -7
- package/components/spinner/Spinner.js +6 -9
- package/components/states/BaseStateProps.js +1 -2
- package/components/states/CustomState.js +12 -15
- package/components/states/EmptyState.js +2 -5
- package/components/states/ErrorState.js +2 -5
- package/components/states/ForbiddenState.js +2 -5
- package/components/states/MaintenanceState.js +2 -5
- package/components/states/NotBookedState.js +4 -7
- package/components/states/NotFoundState.js +2 -5
- package/components/states/StateButton.js +2 -4
- package/components/states/StateIcon.js +0 -1
- package/components/statsWidget/StatsWidget.d.ts +4 -4
- package/components/statsWidget/StatsWidget.js +3 -6
- package/components/statsWidget/StatsWidgetBody.js +2 -5
- package/components/statsWidget/StatsWidgetFooter.js +2 -5
- package/components/statsWidget/StatsWidgetHeader.js +2 -5
- package/components/statsWidget/StatsWidgetNumber.js +2 -5
- package/components/statsWidget/StatsWidgetSpacer.js +2 -4
- package/components/statsWidget/StatsWidgets.js +2 -5
- package/components/statusBar/StatusBar.js +3 -5
- package/components/statusBar/StatusBarIcon.js +2 -5
- package/components/statusBar/StatusBarLabel.js +2 -5
- package/components/statusBar/StatusBarProgressBar.js +2 -3
- package/components/steppedProgressBar/SteppedProgressBar.js +1 -1
- package/components/switch/Switch.d.ts +4 -6
- package/components/switch/Switch.js +2 -3
- package/components/table/SortArrowDown.js +0 -1
- package/components/table/SortArrowUp.js +0 -1
- package/components/table/SortArrows.js +0 -1
- package/components/table/TableCardsSorting.js +1 -1
- package/components/table/TableSearch.js +2 -4
- package/components/table/TableSettingsColumnButtons.js +3 -4
- package/components/table/TableSettingsColumnDetails.js +1 -3
- package/components/table/TableSettingsDialog.js +8 -6
- package/components/table/TableSettingsDialog.types.d.ts +0 -1
- package/components/table/TableSettingsDialogFooter.js +1 -3
- package/components/table/TableSettingsListContainer.js +1 -1
- package/components/table/TableSettingsListItem.js +2 -4
- package/components/table/TableToolbar.js +1 -3
- package/components/table/TableViewToggles.js +4 -5
- package/components/tag/Tag.js +2 -3
- package/components/tag/TagList.js +3 -6
- package/components/tagManager/CustomSuggestionItem.js +1 -3
- package/components/tagManager/TagManager.js +2 -3
- package/components/tagManager/TagManagerItemList.js +3 -4
- package/components/teaser/Teaser.js +11 -15
- package/components/teaser/TeaserContainer.js +3 -3
- package/components/timepicker/TimePicker.js +3 -4
- package/components/tooltip/SimpleTooltip.js +2 -5
- package/components/tooltip/Tooltip.js +2 -3
- package/components/video/ResponsiveVideo.js +1 -2
- package/components/virtualList/VirtualList.d.ts +59 -0
- package/components/virtualList/VirtualList.js +140 -0
- package/components/virtualList/VirtualListItemWrapper.d.ts +10 -0
- package/components/virtualList/VirtualListItemWrapper.js +13 -0
- package/components/virtualList/useVirtualListResizeObserver.d.ts +2 -0
- package/components/virtualList/useVirtualListResizeObserver.js +44 -0
- package/hooks/useClickOutside.d.ts +4 -3
- package/hooks/useClickOutside.js +10 -4
- package/hooks/useClipboard.js +1 -1
- package/hooks/useDebugInfo.js +6 -3
- package/hooks/useFocusTrap.js +7 -7
- package/hooks/useFullscreen.js +8 -9
- package/hooks/useHover.d.ts +2 -2
- package/hooks/useInterval.js +1 -1
- package/hooks/useKey.d.ts +1 -1
- package/hooks/useMutationObserver.js +1 -1
- package/hooks/usePostMessage.d.ts +1 -1
- package/hooks/useResizeObserver.js +3 -4
- package/hooks/useStorage.d.ts +2 -3
- package/hooks/useTimeout.js +2 -2
- package/hooks/useToggle.d.ts +13 -0
- package/hooks/useToggle.js +31 -0
- package/hooks/useUncontrollable.js +7 -4
- package/lib/es/AccentBar.d.ts +2 -0
- package/lib/es/AccentBar.js +7 -0
- package/lib/es/Avatar.d.ts +2 -0
- package/lib/es/Avatar.js +7 -0
- package/lib/es/AvatarGroup.d.ts +2 -0
- package/lib/es/AvatarGroup.js +7 -0
- package/lib/es/Banner.d.ts +2 -0
- package/lib/es/Banner.js +7 -0
- package/lib/es/ButtonToolbar.d.ts +2 -0
- package/lib/es/ButtonToolbar.js +7 -0
- package/lib/es/Card.d.ts +2 -0
- package/lib/es/Card.js +7 -0
- package/lib/es/Colors.js +2 -4
- package/lib/es/DateRangePicker.js +2 -2
- package/lib/es/FormLabel.d.ts +2 -0
- package/lib/es/FormLabel.js +7 -0
- package/lib/es/LabeledElement.d.ts +2 -0
- package/lib/es/LabeledElement.js +7 -0
- package/lib/es/StatsWidgets.js +2 -4
- package/lib/es/StepButton.d.ts +2 -0
- package/lib/es/{Onboarding.js → StepButton.js} +3 -3
- package/lib/es/TagList.js +2 -4
- package/lib/es/VirtualList.d.ts +2 -0
- package/lib/es/VirtualList.js +7 -0
- package/lib/es/components/accentBar/AccentBar.d.ts +21 -0
- package/lib/es/components/accentBar/AccentBar.js +15 -0
- package/lib/es/components/actionBarItem/ActionBarItem.d.ts +2 -6
- package/lib/es/components/actionBarItem/ActionBarItem.js +6 -6
- package/lib/es/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
- package/lib/es/components/actionBarItem/ActionBarItemIcon.js +2 -2
- package/lib/es/components/actionBarItem/ActionBarItemList.js +2 -5
- package/lib/es/components/actionBarItem/ActionBarItemListItem.js +2 -4
- package/lib/es/components/actionBarItem/ActionBarItemListSeparator.js +2 -5
- package/lib/es/components/actionBarItem/ActionBarItemPopoverContent.js +2 -5
- package/lib/es/components/actionBarItem/ActionBarOverlay.d.ts +1 -1
- package/lib/es/components/actionBarItem/ActionBarOverlay.js +3 -3
- package/lib/es/components/activity/Activity.js +2 -2
- package/lib/es/components/animatedNumber/AnimatedNumber.d.ts +6 -6
- package/lib/es/components/animatedNumber/AnimatedNumber.js +2 -2
- package/lib/es/components/applicationHeader/AppMenu.js +3 -5
- package/lib/es/components/applicationHeader/AppMenuContent.js +2 -4
- package/lib/es/components/applicationHeader/AppMenuDropdown.js +4 -4
- package/lib/es/components/applicationHeader/ApplicationActionBar.js +4 -7
- package/lib/es/components/applicationHeader/ApplicationHeader.js +4 -4
- package/lib/es/components/applicationHeader/CollapsedNavItem.js +3 -3
- package/lib/es/components/applicationHeader/MobileAppMenu.js +2 -2
- package/lib/es/components/applicationHeader/MobileHeaderModal.js +2 -2
- package/lib/es/components/applicationHeader/MobileSubmoduleNavigation.js +3 -3
- package/lib/es/components/applicationHeader/NavItems.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayout.js +2 -3
- package/lib/es/components/applicationLayout/ApplicationLayoutBody.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +9 -8
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutHeader.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.js +2 -2
- package/lib/es/components/applicationLayout/SubNavigation.js +2 -2
- package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +1 -3
- package/lib/es/components/assetTree/AssetTree.d.ts +1 -1
- package/lib/es/components/assetTree/AssetTree.js +4 -4
- package/lib/es/components/assetTree/Tree.d.ts +2 -2
- package/lib/es/components/assetTree/Tree.js +9 -11
- package/lib/es/components/assetTree/TreeLeaf.js +1 -1
- package/lib/es/components/assetTree/TreeLeafList.js +0 -2
- package/lib/es/components/assetTree/TreeNode.js +1 -1
- package/lib/es/components/assetTree/TreeNodeContainer.js +1 -3
- package/lib/es/components/assetTree/TreeNothingFound.js +2 -2
- package/lib/es/components/assetTree/TreeOption.js +2 -4
- package/lib/es/components/assetTree/TreeOptions.js +3 -5
- package/lib/es/components/assetTree/TreeRoot.js +1 -3
- package/lib/es/components/assetTree/TreeSearch.js +1 -1
- package/lib/es/components/assetTree/TreeSelectAll.js +1 -3
- package/lib/es/components/assetTree/TreeSidebar.js +2 -2
- package/lib/es/components/assetTree/TreeSidebarCategories.js +2 -4
- package/lib/es/components/assetTree/TreeSummary.js +1 -1
- package/lib/es/components/assetTree/TreeSummaryRow.js +1 -3
- package/lib/es/components/assetTree/TypeCounter.js +2 -2
- package/lib/es/components/assetTree/treeReducer.js +8 -8
- package/lib/es/components/assetTree/treeUtils.d.ts +0 -2
- package/lib/es/components/assetTree/treeUtils.js +14 -11
- package/lib/es/components/autosuggest/AutoSuggest.js +12 -15
- package/lib/es/components/autosuggest/AutoSuggestAddons.js +1 -3
- package/lib/es/components/autosuggest/DropdownSpinner.js +1 -2
- package/lib/es/components/autosuggest/NoItemMessage.js +1 -3
- package/lib/es/components/avatar/Avatar.d.ts +54 -0
- package/lib/es/components/avatar/Avatar.js +30 -0
- package/lib/es/components/avatar/AvatarContent.d.ts +10 -0
- package/lib/es/components/avatar/AvatarContent.js +22 -0
- package/lib/es/components/avatar/AvatarGroup.d.ts +15 -0
- package/lib/es/components/avatar/AvatarGroup.js +26 -0
- package/lib/es/components/banner/Banner.d.ts +66 -0
- package/lib/es/components/banner/Banner.js +52 -0
- package/lib/es/components/banner/BannerActions.d.ts +9 -0
- package/lib/es/components/banner/BannerActions.js +7 -0
- package/lib/es/components/banner/BannerContent.d.ts +25 -0
- package/lib/es/components/banner/BannerContent.js +19 -0
- package/lib/es/components/banner/BannerIcon.d.ts +9 -0
- package/lib/es/components/banner/BannerIcon.js +7 -0
- package/lib/es/components/banner/BannerPage.d.ts +9 -0
- package/lib/es/components/banner/BannerPage.js +7 -0
- package/lib/es/components/bottomSheet/BottomSheet.d.ts +2 -2
- package/lib/es/components/bottomSheet/BottomSheet.js +5 -5
- package/lib/es/components/bottomSheet/TimedBottomSheet.js +3 -3
- package/lib/es/components/button/Button.d.ts +2 -0
- package/lib/es/components/button/Button.js +4 -4
- package/lib/es/components/button/ButtonToolbar.d.ts +13 -0
- package/lib/es/components/button/ButtonToolbar.js +11 -0
- package/lib/es/components/button/StepButton.d.ts +12 -0
- package/lib/es/components/button/StepButton.js +11 -0
- package/lib/es/components/button/ToggleButton.js +1 -3
- package/lib/es/components/calendarStripe/CalendarStripe.js +1 -1
- package/lib/es/components/card/Card.d.ts +21 -0
- package/lib/es/components/card/Card.js +11 -0
- package/lib/es/components/carousel/Carousel.d.ts +4 -6
- package/lib/es/components/charts/AreaChart.js +6 -8
- package/lib/es/components/charts/AreaGradient.js +1 -2
- package/lib/es/components/charts/BarChart.js +13 -11
- package/lib/es/components/charts/ChartGrid.js +0 -1
- package/lib/es/components/charts/ChartLabel.d.ts +0 -1
- package/lib/es/components/charts/ChartNeedle.js +13 -4
- package/lib/es/components/charts/ComposedChart.js +13 -15
- package/lib/es/components/charts/Legend.js +0 -2
- package/lib/es/components/charts/LineChart.js +7 -9
- package/lib/es/components/charts/PieChart.js +6 -8
- package/lib/es/components/charts/RadialBarChart.js +5 -7
- package/lib/es/components/charts/ReferenceLine.js +3 -6
- package/lib/es/components/charts/ResponsiveContainer.js +0 -1
- package/lib/es/components/charts/XAxis.js +2 -2
- package/lib/es/components/charts/YAxis.d.ts +0 -1
- package/lib/es/components/charts/chartHelper.d.ts +2 -2
- package/lib/es/components/charts/chartHelper.js +1 -1
- package/lib/es/components/checkbox/Checkbox.js +4 -6
- package/lib/es/components/checkbox/CheckboxIcon.js +1 -1
- package/lib/es/components/clearableInput/ClearableInput.js +18 -6
- package/lib/es/components/collapse/Collapse.d.ts +1 -1
- package/lib/es/components/collapse/Collapse.js +1 -3
- package/lib/es/components/contentLoader/ContentLoader.js +2 -4
- package/lib/es/components/dataTabs/DataTab.js +3 -6
- package/lib/es/components/dataTabs/DataTabHeader.js +1 -1
- package/lib/es/components/dataTabs/DataTabs.js +7 -8
- package/lib/es/components/datepicker/DatePicker.d.ts +16 -16
- package/lib/es/components/datepicker/DatePicker.js +3 -3
- package/lib/es/components/datepicker/DateRangePicker.d.ts +55 -55
- package/lib/es/components/datepicker/DateRangePicker.js +28 -14
- package/lib/es/components/dialog/ConfirmationDialog.js +3 -5
- package/lib/es/components/dialog/Dialog.d.ts +2 -2
- package/lib/es/components/dialog/Dialog.js +12 -11
- package/lib/es/components/dialog/DialogBody.js +2 -5
- package/lib/es/components/dialog/DialogFooter.js +2 -4
- package/lib/es/components/dialog/DialogHeader.js +2 -2
- package/lib/es/components/dialog/FrameDialog.js +2 -2
- package/lib/es/components/dialog/InfoDialog.js +2 -4
- package/lib/es/components/dialog/MediaDialog.js +6 -7
- package/lib/es/components/dialog/OnboardingDialog.js +2 -4
- package/lib/es/components/dialog/ReleaseNotesDialog.js +1 -3
- package/lib/es/components/dialog/SaveDialog.js +3 -5
- package/lib/es/components/dialog/SimpleDialog.js +2 -4
- package/lib/es/components/dialog/SplitDialog.js +3 -5
- package/lib/es/components/divider/Divider.js +3 -5
- package/lib/es/components/dropdown/ButtonDropdown.d.ts +1 -1
- package/lib/es/components/dropdown/ButtonDropdown.js +11 -10
- package/lib/es/components/dropdown/Caret.js +0 -2
- package/lib/es/components/dropdown/DropdownSubmenu.js +2 -2
- package/lib/es/components/dropdown/DropdownToggleButton.js +2 -2
- package/lib/es/components/dropdown/SimpleButtonDropdown.js +1 -3
- package/lib/es/components/dropdown/SingleButtonDropdown.js +1 -3
- package/lib/es/components/dropdown/SplitButtonDropdown.js +1 -3
- package/lib/es/components/dropdown/SplitCaretButton.js +2 -2
- package/lib/es/components/editableContent/EditableContent.js +6 -8
- package/lib/es/components/expander/ExpanderList.js +5 -5
- package/lib/es/components/expander/ExpanderPanel.js +2 -2
- package/lib/es/components/fade/Fade.js +2 -2
- package/lib/es/components/fade/FadeExpander.js +2 -2
- package/lib/es/components/fade/FadeUp.js +2 -2
- package/lib/es/components/feedback/FeedbackInlineButtons.js +2 -5
- package/lib/es/components/feedback/FeedbackRating.js +4 -5
- package/lib/es/components/feedback/FeedbackReactions.js +4 -4
- package/lib/es/components/filepicker/FilePicker.js +5 -5
- package/lib/es/components/formLabel/FormLabel.d.ts +13 -0
- package/lib/es/components/formLabel/FormLabel.js +20 -0
- package/lib/es/components/formLabel/LabeledElement.d.ts +28 -0
- package/lib/es/components/formLabel/LabeledElement.js +14 -0
- package/lib/es/components/groupedItemList/GroupedItemList.js +2 -5
- package/lib/es/components/licensePlate/LicensePlate.js +4 -6
- package/lib/es/components/listMenu/ListMenu.d.ts +1 -0
- package/lib/es/components/listMenu/ListMenu.js +11 -10
- package/lib/es/components/listMenu/ListMenuGroup.d.ts +17 -0
- package/lib/es/components/listMenu/ListMenuGroup.js +1 -3
- package/lib/es/components/listMenu/ListMenuHeader.d.ts +3 -1
- package/lib/es/components/listMenu/ListMenuHeader.js +2 -4
- package/lib/es/components/loadMore/LoadMoreButton.js +2 -4
- package/lib/es/components/loadMore/LoadMoreProgress.js +1 -1
- package/lib/es/components/map/components/Map.js +5 -7
- package/lib/es/components/map/components/MapContext.d.ts +0 -1
- package/lib/es/components/map/components/MapElements.js +1 -1
- package/lib/es/components/map/components/MapPosition.js +3 -5
- package/lib/es/components/map/components/MapSize.js +3 -3
- package/lib/es/components/map/components/constants.d.ts +1 -2
- package/lib/es/components/map/components/features/ContextMenu.d.ts +0 -2
- package/lib/es/components/map/components/features/ContextMenu.js +3 -4
- package/lib/es/components/map/components/features/ContextMenuItem.d.ts +0 -1
- package/lib/es/components/map/components/features/MapSettings.d.ts +0 -1
- package/lib/es/components/map/components/features/MapSettings.js +6 -7
- package/lib/es/components/map/components/features/MapZoom.js +6 -9
- package/lib/es/components/map/components/features/Route.d.ts +1 -1
- package/lib/es/components/map/components/features/Route.js +24 -5
- package/lib/es/components/map/components/features/basics/Circle.d.ts +0 -1
- package/lib/es/components/map/components/features/basics/Circle.js +3 -5
- package/lib/es/components/map/components/features/basics/InfoBubble.d.ts +0 -1
- package/lib/es/components/map/components/features/basics/InfoBubble.js +4 -6
- package/lib/es/components/map/components/features/basics/Marker.d.ts +2 -3
- package/lib/es/components/map/components/features/basics/Marker.js +2 -4
- package/lib/es/components/map/components/features/basics/Polygon.d.ts +0 -1
- package/lib/es/components/map/components/features/basics/Polygon.js +3 -5
- package/lib/es/components/map/components/features/basics/Polyline.d.ts +0 -1
- package/lib/es/components/map/components/features/basics/Polyline.js +18 -7
- package/lib/es/components/map/components/features/basics/TextMarker.js +2 -4
- package/lib/es/components/map/components/features/layers/MapLayerGroup.js +11 -7
- package/lib/es/components/map/components/features/layers/MapOverlayLayers.js +0 -1
- package/lib/es/components/map/components/features/layers/MarkerLayer.js +6 -5
- package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.d.ts +0 -1
- package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +2 -4
- package/lib/es/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -3
- package/lib/es/components/map/components/features/layers/overlayLayers/IncidentsLayer.js +13 -16
- package/lib/es/components/map/components/features/layers/overlayLayers/Layer.d.ts +0 -1
- package/lib/es/components/map/components/features/layers/overlayLayers/Layer.js +4 -8
- package/lib/es/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js +2 -5
- package/lib/es/components/map/components/features/layers/overlayLayers/TrafficLayer.js +4 -8
- package/lib/es/components/map/components/features/settings/MapSettingsItem.js +3 -3
- package/lib/es/components/map/components/features/settings/MapSettingsPanel.js +2 -4
- package/lib/es/components/map/components/features/settings/MapSettingsTile.js +9 -9
- package/lib/es/components/map/components/features/settings/ZoomButtons.js +1 -3
- package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +2 -4
- package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +2 -4
- package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -12
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +3 -3
- package/lib/es/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -4
- package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -4
- package/lib/es/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -4
- package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -3
- package/lib/es/components/map/icons/MapIcon.js +35 -35
- package/lib/es/components/map/utils/clustering.d.ts +0 -1
- package/lib/es/components/map/utils/eventHandling.d.ts +0 -1
- package/lib/es/components/map/utils/eventHandling.js +1 -1
- package/lib/es/components/map/utils/mapTypes.d.ts +0 -2
- package/lib/es/components/map/utils/mapUi.d.ts +0 -1
- package/lib/es/components/map/utils/mapUtils.d.ts +0 -1
- package/lib/es/components/map/utils/mapUtils.js +5 -5
- package/lib/es/components/map/utils/positions.js +2 -2
- package/lib/es/components/map/utils/rendering.d.ts +0 -1
- package/lib/es/components/map/utils/rendering.js +8 -10
- package/lib/es/components/mapMarker/ClusterMapMarker.js +1 -2
- package/lib/es/components/mapMarker/SingleMapMarker.js +4 -7
- package/lib/es/components/menuItems/MenuItem.js +1 -1
- package/lib/es/components/menuItems/MenuItemList.js +2 -2
- package/lib/es/components/menuItems/MenuItems.js +1 -5
- package/lib/es/components/navigation/AppNavigationBar.d.ts +17 -0
- package/lib/es/components/navigation/AppNavigationBar.js +3 -3
- package/lib/es/components/noData/NoData.js +3 -5
- package/lib/es/components/notification/Notification.d.ts +50 -30
- package/lib/es/components/notification/Notification.js +99 -4
- package/lib/es/components/notification/NotificationsContainer.d.ts +2 -0
- package/lib/es/components/notification/NotificationsContainer.js +2 -4
- package/lib/es/components/numberControl/NumberControl.js +3 -3
- package/lib/es/components/numberInput/NumberInput.js +4 -4
- package/lib/es/components/onboarding/OnboardingTip.js +3 -5
- package/lib/es/components/overlay/OverlayTrigger.js +29 -14
- package/lib/es/components/page/Page.js +1 -3
- package/lib/es/components/pager/Pager.js +4 -4
- package/lib/es/components/popover/Popover.d.ts +5 -5
- package/lib/es/components/popover/Popover.js +4 -5
- package/lib/es/components/position/Position.js +1 -2
- package/lib/es/components/radiobutton/RadioButton.js +3 -3
- package/lib/es/components/releaseNotes/ReleaseNotes.js +3 -5
- package/lib/es/components/resizer/Resizer.js +2 -2
- package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.d.ts +1 -1
- package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +8 -11
- package/lib/es/components/rules/RuleConnector.js +2 -4
- package/lib/es/components/rules/RuleContainer.js +4 -5
- package/lib/es/components/rules/RulesWrapper.js +3 -9
- package/lib/es/components/saveableInput/SaveableInput.js +4 -5
- package/lib/es/components/selects/BaseSelectDropdown.js +8 -8
- package/lib/es/components/selects/ClearButton.js +1 -3
- package/lib/es/components/selects/DropdownHeader.js +1 -3
- package/lib/es/components/selects/Multiselect.js +7 -8
- package/lib/es/components/selects/MultiselectToggleCounter.js +1 -3
- package/lib/es/components/selects/MultiselectToggleFilter.js +0 -2
- package/lib/es/components/selects/MultiselectTogglePlaceholder.js +1 -3
- package/lib/es/components/selects/MultiselectToggleSelection.js +5 -7
- package/lib/es/components/selects/NoItemMessage.js +1 -3
- package/lib/es/components/selects/Select.js +5 -6
- package/lib/es/components/selects/SelectFilter.js +0 -2
- package/lib/es/components/selects/SelectedOption.js +5 -7
- package/lib/es/components/selects/WithFeedbackAndAddon.js +1 -3
- package/lib/es/components/sidebars/Sidebar.js +8 -9
- package/lib/es/components/sidebars/SidebarBackdrop.js +0 -1
- package/lib/es/components/sidebars/SidebarCloseButton.js +1 -2
- package/lib/es/components/sidebars/SidebarFooter.js +1 -3
- package/lib/es/components/sidebars/SidebarFullscreenToggle.js +2 -3
- package/lib/es/components/slider/RangeSlider.js +2 -2
- package/lib/es/components/slider/Slider.js +2 -2
- package/lib/es/components/smoothScrollbars/SmoothScrollbars.d.ts +1 -1
- package/lib/es/components/smoothScrollbars/SmoothScrollbars.js +7 -7
- package/lib/es/components/spinner/Spinner.js +6 -8
- package/lib/es/components/states/BaseStateProps.js +0 -2
- package/lib/es/components/states/CustomState.js +12 -14
- package/lib/es/components/states/EmptyState.js +2 -4
- package/lib/es/components/states/ErrorState.js +2 -4
- package/lib/es/components/states/ForbiddenState.js +2 -4
- package/lib/es/components/states/MaintenanceState.js +2 -4
- package/lib/es/components/states/NotBookedState.js +3 -5
- package/lib/es/components/states/NotFoundState.js +2 -4
- package/lib/es/components/states/StateButton.js +2 -4
- package/lib/es/components/states/StateIcon.js +0 -1
- package/lib/es/components/statsWidget/StatsWidget.d.ts +4 -4
- package/lib/es/components/statsWidget/StatsWidget.js +3 -5
- package/lib/es/components/statsWidget/StatsWidgetBody.js +2 -4
- package/lib/es/components/statsWidget/StatsWidgetFooter.js +2 -4
- package/lib/es/components/statsWidget/StatsWidgetHeader.js +2 -4
- package/lib/es/components/statsWidget/StatsWidgetNumber.js +2 -4
- package/lib/es/components/statsWidget/StatsWidgetSpacer.js +2 -3
- package/lib/es/components/statsWidget/StatsWidgets.js +2 -4
- package/lib/es/components/statusBar/StatusBar.js +3 -5
- package/lib/es/components/statusBar/StatusBarIcon.js +2 -5
- package/lib/es/components/statusBar/StatusBarLabel.js +2 -5
- package/lib/es/components/statusBar/StatusBarProgressBar.js +2 -3
- package/lib/es/components/steppedProgressBar/SteppedProgressBar.js +1 -1
- package/lib/es/components/switch/Switch.d.ts +4 -6
- package/lib/es/components/switch/Switch.js +2 -2
- package/lib/es/components/table/SortArrowDown.js +0 -1
- package/lib/es/components/table/SortArrowUp.js +0 -1
- package/lib/es/components/table/SortArrows.js +0 -1
- package/lib/es/components/table/TableCardsSorting.js +1 -1
- package/lib/es/components/table/TableSearch.js +2 -3
- package/lib/es/components/table/TableSettingsColumnButtons.js +3 -4
- package/lib/es/components/table/TableSettingsColumnDetails.js +1 -3
- package/lib/es/components/table/TableSettingsDialog.js +8 -6
- package/lib/es/components/table/TableSettingsDialog.types.d.ts +0 -1
- package/lib/es/components/table/TableSettingsDialogFooter.js +1 -3
- package/lib/es/components/table/TableSettingsListContainer.js +1 -1
- package/lib/es/components/table/TableSettingsListItem.js +2 -4
- package/lib/es/components/table/TableToolbar.js +1 -3
- package/lib/es/components/table/TableViewToggles.js +4 -4
- package/lib/es/components/tag/Tag.js +2 -2
- package/lib/es/components/tag/TagList.js +3 -5
- package/lib/es/components/tagManager/CustomSuggestionItem.js +1 -3
- package/lib/es/components/tagManager/TagManager.js +2 -2
- package/lib/es/components/tagManager/TagManagerItemList.js +3 -4
- package/lib/es/components/teaser/Teaser.js +11 -15
- package/lib/es/components/teaser/TeaserContainer.js +3 -3
- package/lib/es/components/timepicker/TimePicker.js +3 -3
- package/lib/es/components/tooltip/SimpleTooltip.js +2 -4
- package/lib/es/components/tooltip/Tooltip.js +2 -2
- package/lib/es/components/video/ResponsiveVideo.js +1 -2
- package/lib/es/components/virtualList/VirtualList.d.ts +59 -0
- package/lib/es/components/virtualList/VirtualList.js +145 -0
- package/lib/es/components/virtualList/VirtualListItemWrapper.d.ts +10 -0
- package/lib/es/components/virtualList/VirtualListItemWrapper.js +16 -0
- package/lib/es/components/virtualList/useVirtualListResizeObserver.d.ts +2 -0
- package/lib/es/components/virtualList/useVirtualListResizeObserver.js +46 -0
- package/lib/es/hooks/useClickOutside.d.ts +4 -3
- package/lib/es/hooks/useClickOutside.js +11 -5
- package/lib/es/hooks/useClipboard.js +1 -1
- package/lib/es/hooks/useDebugInfo.js +6 -3
- package/lib/es/hooks/useFocusTrap.js +7 -7
- package/lib/es/hooks/useFullscreen.js +8 -8
- package/lib/es/hooks/useHover.d.ts +2 -2
- package/lib/es/hooks/useInterval.js +1 -1
- package/lib/es/hooks/useKey.d.ts +1 -1
- package/lib/es/hooks/useMutationObserver.js +1 -1
- package/lib/es/hooks/usePostMessage.d.ts +1 -1
- package/lib/es/hooks/useResizeObserver.js +3 -4
- package/lib/es/hooks/useStorage.d.ts +2 -3
- package/lib/es/hooks/useTimeout.js +2 -2
- package/lib/es/hooks/useToggle.d.ts +13 -0
- package/lib/es/hooks/useToggle.js +33 -0
- package/lib/es/hooks/useUncontrollable.js +10 -8
- package/lib/es/styles/variables/colors/colors.json +7 -1
- package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.d.ts +7 -7
- package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +2 -2
- package/lib/es/useAfterMount.js +2 -4
- package/lib/es/useClipboard.js +2 -4
- package/lib/es/useDarkMode.js +2 -4
- package/lib/es/useDebugInfo.js +2 -4
- package/lib/es/useEffectOnce.js +2 -4
- package/lib/es/useElementSize.js +2 -4
- package/lib/es/useEsc.js +2 -4
- package/lib/es/useEvent.js +2 -4
- package/lib/es/useFocusTrap.js +2 -4
- package/lib/es/useFullscreen.js +2 -4
- package/lib/es/useHover.js +2 -4
- package/lib/es/useInterval.js +2 -4
- package/lib/es/useKey.js +2 -4
- package/lib/es/useToggle.d.ts +2 -0
- package/lib/es/useToggle.js +7 -0
- package/lib/es/utils/colorScheme.js +2 -3
- package/lib/es/utils/darkModeCDN.js +1 -1
- package/lib/es/utils/deviceUtils.js +5 -6
- package/lib/es/utils/init/checkForReleaseVersion.d.ts +1 -0
- package/lib/es/utils/init/checkForReleaseVersion.js +21 -0
- package/lib/es/utils/init/doNotUseTailwind.d.ts +1 -0
- package/lib/es/utils/init/doNotUseTailwind.js +57 -0
- package/lib/es/utils/init/initCSS.js +1 -2
- package/lib/es/utils/init/initDocumentBootstrapping.js +23 -27
- package/lib/es/utils/init/styledLogs.d.ts +3 -0
- package/lib/es/utils/init/styledLogs.js +7 -0
- package/lib/es/utils/init/usedUikitVersion.d.ts +1 -0
- package/lib/es/utils/init/usedUikitVersion.js +11 -0
- package/lib/es/utils/init/weAreHiring.d.ts +1 -0
- package/lib/es/utils/init/weAreHiring.js +10 -0
- package/lib/es/utils/mergeRefs.d.ts +2 -2
- package/lib/es/utils/mergeRefs.js +0 -2
- package/lib/es/utils/routeUtils.d.ts +1 -1
- package/lib/es/utils/routeUtils.js +3 -3
- package/lib/es/utils/urlFeatureToggles.d.ts +0 -1
- package/lib/es/utils/urlFeatureToggles.js +1 -2
- package/lib/es/version.json +1 -1
- package/package.json +39 -39
- package/styles/variables/colors/colors.json +7 -1
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.d.ts +7 -7
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +2 -3
- package/useToggle.d.ts +2 -0
- package/useToggle.js +2 -0
- package/utils/colorScheme.js +2 -3
- package/utils/darkModeCDN.js +1 -1
- package/utils/deviceUtils.js +5 -6
- package/utils/init/checkForReleaseVersion.d.ts +1 -0
- package/utils/init/checkForReleaseVersion.js +17 -0
- package/utils/init/doNotUseTailwind.d.ts +1 -0
- package/utils/init/doNotUseTailwind.js +53 -0
- package/utils/init/initCSS.js +1 -2
- package/utils/init/initDocumentBootstrapping.js +24 -28
- package/utils/init/styledLogs.d.ts +3 -0
- package/utils/init/styledLogs.js +3 -0
- package/utils/init/usedUikitVersion.d.ts +1 -0
- package/utils/init/usedUikitVersion.js +7 -0
- package/utils/init/weAreHiring.d.ts +1 -0
- package/utils/init/weAreHiring.js +6 -0
- package/utils/mergeRefs.d.ts +2 -2
- package/utils/mergeRefs.js +0 -2
- package/utils/routeUtils.d.ts +1 -1
- package/utils/routeUtils.js +3 -3
- package/utils/urlFeatureToggles.d.ts +0 -1
- package/utils/urlFeatureToggles.js +1 -2
- package/version.json +1 -1
- package/lib/es/Onboarding.d.ts +0 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type VirtualListItemWrapperProps = {
|
|
3
|
+
translateY: number;
|
|
4
|
+
'data-index': number;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
};
|
|
9
|
+
declare const VirtualListItemWrapper: React.ForwardRefExoticComponent<VirtualListItemWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default VirtualListItemWrapper;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const VirtualListItemWrapper = react_1.default.forwardRef((props, ref) => {
|
|
7
|
+
const { translateY, children, className = '', style = {}, ...remainingProps } = props;
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: `VirtualListItemWrapper ${className}`, style: {
|
|
9
|
+
...style,
|
|
10
|
+
position: 'absolute',
|
|
11
|
+
transform: `translateY(${translateY}px)`,
|
|
12
|
+
width: '100%',
|
|
13
|
+
willChange: 'transform',
|
|
14
|
+
}, ...remainingProps, children: children }));
|
|
15
|
+
});
|
|
16
|
+
exports.default = VirtualListItemWrapper;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const useVirtualListResizeObserver = (itemsRef, measureItem, dependencies = []) => {
|
|
5
|
+
const resizeObserverRef = (0, react_1.useRef)(null);
|
|
6
|
+
const measureItems = (0, react_1.useCallback)(() => {
|
|
7
|
+
if (!itemsRef.current) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const children = Array.from(itemsRef.current.children);
|
|
11
|
+
children.forEach(child => {
|
|
12
|
+
const index = Number.parseInt(child.getAttribute('data-index') || '', 10);
|
|
13
|
+
if (!Number.isNaN(index)) {
|
|
14
|
+
measureItem(index, child);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}, [measureItem]);
|
|
18
|
+
// Setup resize observer
|
|
19
|
+
(0, react_1.useEffect)(() => {
|
|
20
|
+
if (!itemsRef.current) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
resizeObserverRef.current = new ResizeObserver(() => {
|
|
24
|
+
measureItems();
|
|
25
|
+
});
|
|
26
|
+
return () => resizeObserverRef.current?.disconnect();
|
|
27
|
+
}, [measureItems]);
|
|
28
|
+
// Observe children
|
|
29
|
+
(0, react_1.useEffect)(() => {
|
|
30
|
+
if (!itemsRef.current || !resizeObserverRef.current) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const children = Array.from(itemsRef.current.children);
|
|
34
|
+
children.forEach(child => {
|
|
35
|
+
resizeObserverRef.current?.observe(child);
|
|
36
|
+
});
|
|
37
|
+
// Initial measurement
|
|
38
|
+
measureItems();
|
|
39
|
+
return () => {
|
|
40
|
+
children.forEach(child => {
|
|
41
|
+
resizeObserverRef.current?.unobserve(child);
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
}, [...dependencies, measureItems]);
|
|
45
|
+
};
|
|
46
|
+
exports.default = useVirtualListResizeObserver;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type EventListenerType = keyof DocumentEventMap;
|
|
2
|
+
export declare const DEFAULT_EVENT_TYPES: EventListenerType[];
|
|
3
3
|
/**
|
|
4
4
|
* Custom hook to detect clicks outside a specified element.
|
|
5
5
|
*
|
|
6
6
|
* @param callback - The callback function to be called when a click outside the element is detected.
|
|
7
7
|
* @param events - Array of event types to listen for.
|
|
8
|
+
* @param isActive - Flag to only listen for clicks when target element active.
|
|
8
9
|
*
|
|
9
10
|
* @returns A mutable ref object representing the target element.
|
|
10
11
|
*/
|
|
11
|
-
declare const useClickOutside: <T extends HTMLElement = any>(callback: (event: MouseEvent | TouchEvent) => void, events?: EventListenerType[]) =>
|
|
12
|
-
export declare const useClickOutsideWithRef: <T extends HTMLElement = any>(ref: React.MutableRefObject<HTMLElement | null> | HTMLElement | null, callback: (event: MouseEvent | TouchEvent) => void, events?: EventListenerType[]) => void;
|
|
12
|
+
declare const useClickOutside: <T extends HTMLElement = any>(callback: (event: MouseEvent | TouchEvent) => void, events?: EventListenerType[], isActive?: boolean) => React.MutableRefObject<T>;
|
|
13
|
+
export declare const useClickOutsideWithRef: <T extends HTMLElement = any>(ref: React.MutableRefObject<HTMLElement | null> | HTMLElement | null, callback: (event: MouseEvent | TouchEvent) => void, events?: EventListenerType[], isActive?: boolean) => void;
|
|
13
14
|
export default useClickOutside;
|
|
@@ -3,24 +3,30 @@
|
|
|
3
3
|
// eslint-disable-next-line max-len
|
|
4
4
|
// Inspired from https://github.com/mantinedev/mantine/blob/master/src/mantine-hooks/src/use-click-outside/use-click-outside.ts
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useClickOutsideWithRef = void 0;
|
|
6
|
+
exports.useClickOutsideWithRef = exports.DEFAULT_EVENT_TYPES = void 0;
|
|
7
7
|
const react_1 = require("react");
|
|
8
|
+
exports.DEFAULT_EVENT_TYPES = ['mousedown', 'touchstart'];
|
|
8
9
|
/**
|
|
9
10
|
* Custom hook to detect clicks outside a specified element.
|
|
10
11
|
*
|
|
11
12
|
* @param callback - The callback function to be called when a click outside the element is detected.
|
|
12
13
|
* @param events - Array of event types to listen for.
|
|
14
|
+
* @param isActive - Flag to only listen for clicks when target element active.
|
|
13
15
|
*
|
|
14
16
|
* @returns A mutable ref object representing the target element.
|
|
15
17
|
*/
|
|
16
|
-
const useClickOutside = (callback, events =
|
|
18
|
+
const useClickOutside = (callback, events = exports.DEFAULT_EVENT_TYPES, isActive = true // Only listen when active
|
|
19
|
+
) => {
|
|
17
20
|
const targetRef = (0, react_1.useRef)(null);
|
|
18
|
-
(0, exports.useClickOutsideWithRef)(targetRef, callback, events);
|
|
21
|
+
(0, exports.useClickOutsideWithRef)(targetRef, callback, events, isActive);
|
|
19
22
|
return targetRef;
|
|
20
23
|
};
|
|
21
24
|
// Internal use for now - extend it later to be used outside
|
|
22
|
-
const useClickOutsideWithRef = (ref, callback, events =
|
|
25
|
+
const useClickOutsideWithRef = (ref, callback, events = exports.DEFAULT_EVENT_TYPES, isActive = true) => {
|
|
23
26
|
(0, react_1.useEffect)(() => {
|
|
27
|
+
if (!isActive) {
|
|
28
|
+
return; // Simply return early if not active, no cleanup needed
|
|
29
|
+
}
|
|
24
30
|
// In case the ref is actually a state and will be set via the state setter function
|
|
25
31
|
const element = ref && 'current' in ref ? ref.current : ref;
|
|
26
32
|
// Event listener function to check if the click is outside the target element
|
|
@@ -35,7 +41,7 @@ const useClickOutsideWithRef = (ref, callback, events = ['mousedown', 'touchstar
|
|
|
35
41
|
return () => {
|
|
36
42
|
events.forEach(eventType => document.removeEventListener(eventType, listener));
|
|
37
43
|
};
|
|
38
|
-
}, [ref, callback, events]);
|
|
44
|
+
}, [ref, callback, events, isActive]);
|
|
39
45
|
};
|
|
40
46
|
exports.useClickOutsideWithRef = useClickOutsideWithRef;
|
|
41
47
|
exports.default = useClickOutside;
|
|
@@ -11,7 +11,7 @@ const isNil_1 = tslib_1.__importDefault(require("lodash/fp/isNil"));
|
|
|
11
11
|
* @returns An object containing functions and state related to clipboard operations.
|
|
12
12
|
*/
|
|
13
13
|
const useClipboard = (options) => {
|
|
14
|
-
const { timeout = 2000 } = options
|
|
14
|
+
const { timeout = 2000 } = options ?? {};
|
|
15
15
|
const [error, setError] = (0, react_1.useState)(null);
|
|
16
16
|
const [copied, setCopied] = (0, react_1.useState)(false);
|
|
17
17
|
const [copyTimeout, setCopyTimeout] = (0, react_1.useState)(null);
|
|
@@ -19,16 +19,19 @@ const useDebugInfo = (componentName, props) => {
|
|
|
19
19
|
const previousProps = (0, react_1.useRef)(props);
|
|
20
20
|
const lastRenderTimestamp = (0, react_1.useRef)(Date.now());
|
|
21
21
|
// Extract prop keys from the current and previous props
|
|
22
|
-
const propKeys = Object.keys(
|
|
22
|
+
const propKeys = Object.keys({ ...props, ...previousProps.current });
|
|
23
23
|
// Compare current props with previous props to find changed props
|
|
24
24
|
changedProps.current = propKeys.reduce((obj, key) => {
|
|
25
25
|
if (props[key] === previousProps.current[key]) {
|
|
26
26
|
return obj;
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return {
|
|
29
|
+
...obj,
|
|
30
|
+
[key]: {
|
|
29
31
|
previous: previousProps.current[key],
|
|
30
32
|
current: props[key],
|
|
31
|
-
}
|
|
33
|
+
},
|
|
34
|
+
};
|
|
32
35
|
}, {});
|
|
33
36
|
// Build debug information object
|
|
34
37
|
const info = {
|
|
@@ -17,8 +17,8 @@ const react_1 = require("react");
|
|
|
17
17
|
const useFocusTrap = (element) => {
|
|
18
18
|
const ref = (0, react_1.useRef)(null);
|
|
19
19
|
const handleFocus = (event) => {
|
|
20
|
-
const wrapper = element
|
|
21
|
-
const focusableElements = wrapper
|
|
20
|
+
const wrapper = element ?? ref.current;
|
|
21
|
+
const focusableElements = wrapper?.querySelectorAll([
|
|
22
22
|
'a[href]',
|
|
23
23
|
'button',
|
|
24
24
|
'textarea',
|
|
@@ -28,8 +28,8 @@ const useFocusTrap = (element) => {
|
|
|
28
28
|
'input[type="checkbox"]',
|
|
29
29
|
'select',
|
|
30
30
|
].join(', '));
|
|
31
|
-
const firstFocusableEl = focusableElements
|
|
32
|
-
const lastFocusableEl = focusableElements
|
|
31
|
+
const firstFocusableEl = focusableElements?.[0];
|
|
32
|
+
const lastFocusableEl = focusableElements?.[focusableElements.length - 1];
|
|
33
33
|
const isTabPressed = event.key === 'Tab';
|
|
34
34
|
if (!isTabPressed) {
|
|
35
35
|
return;
|
|
@@ -37,19 +37,19 @@ const useFocusTrap = (element) => {
|
|
|
37
37
|
// Handle: shift + tab
|
|
38
38
|
if (event.shiftKey) {
|
|
39
39
|
if (document.activeElement === firstFocusableEl) {
|
|
40
|
-
lastFocusableEl
|
|
40
|
+
lastFocusableEl?.focus();
|
|
41
41
|
event.preventDefault();
|
|
42
42
|
}
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
// Handle: tab
|
|
46
46
|
if (document.activeElement === lastFocusableEl) {
|
|
47
|
-
firstFocusableEl
|
|
47
|
+
firstFocusableEl?.focus();
|
|
48
48
|
event.preventDefault();
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
(0, react_1.useEffect)(() => {
|
|
52
|
-
const wrapper = element
|
|
52
|
+
const wrapper = element ?? ref.current;
|
|
53
53
|
if (wrapper) {
|
|
54
54
|
wrapper.addEventListener('keydown', handleFocus);
|
|
55
55
|
}
|
|
@@ -66,14 +66,14 @@ const useFullscreen = (options = {}) => {
|
|
|
66
66
|
const [isFullscreen, setIsFullscreen] = (0, react_1.useState)(Boolean(initialFullscreenElement));
|
|
67
67
|
const [fullscreenElement, setFullscreenElement] = (0, react_1.useState)(initialFullscreenElement);
|
|
68
68
|
// Request
|
|
69
|
-
const requestFullscreen = (0, react_1.useCallback)((newTargetElement) =>
|
|
69
|
+
const requestFullscreen = (0, react_1.useCallback)(async (newTargetElement) => {
|
|
70
70
|
// check whether the new target element is a real DOM node or just a function
|
|
71
71
|
const isHtmlElement = newTargetElement instanceof HTMLElement;
|
|
72
72
|
try {
|
|
73
73
|
const target = newTargetElement && isHtmlElement ? newTargetElement : defaultFullscreenElement;
|
|
74
74
|
const requestFunctionName = getRequestFunctionName(target);
|
|
75
75
|
if (requestFunctionName) {
|
|
76
|
-
return
|
|
76
|
+
return await target[requestFunctionName](requestFullscreenOptions);
|
|
77
77
|
}
|
|
78
78
|
else {
|
|
79
79
|
throw new Error('Request function not found');
|
|
@@ -82,19 +82,19 @@ const useFullscreen = (options = {}) => {
|
|
|
82
82
|
catch (error) {
|
|
83
83
|
console.log(error);
|
|
84
84
|
}
|
|
85
|
-
}
|
|
85
|
+
}, []);
|
|
86
86
|
// Exit
|
|
87
|
-
const exitFullscreen = (0, react_1.useCallback)(() =>
|
|
87
|
+
const exitFullscreen = (0, react_1.useCallback)(async () => {
|
|
88
88
|
try {
|
|
89
89
|
const exitFunctionName = getExitFunctionName();
|
|
90
90
|
if (fullscreenElement && exitFunctionName) {
|
|
91
|
-
return
|
|
91
|
+
return await document[exitFunctionName]();
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
catch (error) {
|
|
95
95
|
console.warn(error);
|
|
96
96
|
}
|
|
97
|
-
}
|
|
97
|
+
}, [fullscreenElement]);
|
|
98
98
|
// Toggle
|
|
99
99
|
const toggleFullscreen = (0, react_1.useCallback)((newTargetElement) => {
|
|
100
100
|
if (fullscreenElement) {
|
|
@@ -117,9 +117,9 @@ const useFullscreen = (options = {}) => {
|
|
|
117
117
|
setIsFullscreen(false);
|
|
118
118
|
setFullscreenElement(null);
|
|
119
119
|
}
|
|
120
|
-
onChange
|
|
120
|
+
onChange?.call(document, event || new Event('default'), isOpen);
|
|
121
121
|
};
|
|
122
|
-
const handleErrorEvent = () => (event) => onError
|
|
122
|
+
const handleErrorEvent = () => (event) => onError?.call(document, event);
|
|
123
123
|
(0, useEvent_1.default)('fullscreenchange', handleChangeEvent);
|
|
124
124
|
(0, useEvent_1.default)('webkitfullscreenchange', handleChangeEvent);
|
|
125
125
|
(0, useEvent_1.default)('mozfullscreenchange', handleChangeEvent);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Custom hook to detect hover state for a given HTML element.
|
|
4
4
|
*
|
|
5
5
|
* @param elementRef - The reference to the HTML element.
|
|
6
6
|
* @returns A boolean value representing whether the element is being hovered over or not.
|
|
7
7
|
*/
|
|
8
|
-
declare const useHover: <T extends HTMLElement = HTMLElement>(elementRef:
|
|
8
|
+
declare const useHover: <T extends HTMLElement = HTMLElement>(elementRef: RefObject<T>) => boolean;
|
|
9
9
|
export default useHover;
|
|
@@ -20,7 +20,7 @@ const useInterval = (callback, delay) => {
|
|
|
20
20
|
const tick = () => savedCallback.current();
|
|
21
21
|
if (typeof delay === 'number') {
|
|
22
22
|
intervalRef.current = window.setInterval(tick, delay);
|
|
23
|
-
return () =>
|
|
23
|
+
return () => window.clearInterval(intervalRef.current ?? undefined);
|
|
24
24
|
}
|
|
25
25
|
}, [delay]);
|
|
26
26
|
return intervalRef;
|
package/lib/es/hooks/useKey.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ type KeyboardEventType = 'keyup' | 'keydown' | 'keypress';
|
|
|
9
9
|
* If the first argument is a callback, this is the node (defaults to document).
|
|
10
10
|
* @param [node=document] - Optional DOM node to attach the event listener to (defaults to document).
|
|
11
11
|
*/
|
|
12
|
-
declare const useKey: (keyOrCallback: string | ((event: KeyboardEvent) => void), callbackOrEventTypes?: (
|
|
12
|
+
declare const useKey: (keyOrCallback: string | ((event: KeyboardEvent) => void), callbackOrEventTypes?: (event: KeyboardEvent) => void | KeyboardEventType[], eventTypesOrNode?: KeyboardEventType[] | Document, node?: Document | HTMLElement) => void;
|
|
13
13
|
export default useKey;
|
|
@@ -24,7 +24,7 @@ const unRef = (target) => isRef(target) ? target.current : target;
|
|
|
24
24
|
*/
|
|
25
25
|
const useMutationObserver = (target, callback = noop_1.default, options = DEFAULT_OPTIONS) => {
|
|
26
26
|
const observer = (0, react_1.useRef)(null);
|
|
27
|
-
const disconnect = (0, react_1.useCallback)(() =>
|
|
27
|
+
const disconnect = (0, react_1.useCallback)(() => observer.current?.disconnect(), []);
|
|
28
28
|
const observe = (0, react_1.useCallback)(() => {
|
|
29
29
|
const targetElement = unRef(target);
|
|
30
30
|
if (targetElement) {
|
|
@@ -25,7 +25,7 @@ export type RemoteAction = {
|
|
|
25
25
|
* @param onReceiveMessage a callback function triggered when a message is received
|
|
26
26
|
* @returns
|
|
27
27
|
*/
|
|
28
|
-
declare const usePostMessage: (messagePrefix: string, onReceiveMessage?: (
|
|
28
|
+
declare const usePostMessage: (messagePrefix: string, onReceiveMessage?: (eventData: any) => void) => {
|
|
29
29
|
sendMessageToParent: (message: RemoteAction) => void;
|
|
30
30
|
sendMessageToWidget: (message: RemoteAction, targetFrames: HTMLIFrameElement | HTMLIFrameElement[]) => void;
|
|
31
31
|
};
|
|
@@ -7,11 +7,10 @@ const react_1 = require("react");
|
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
9
|
const useResizeObserver = () => {
|
|
10
|
-
var _a, _b, _c, _d;
|
|
11
10
|
const [observerEntry, setObserverEntry] = (0, react_1.useState)(null);
|
|
12
11
|
const nodeRef = (0, react_1.useRef)(null);
|
|
13
12
|
const observer = (0, react_1.useRef)(null);
|
|
14
|
-
const disconnect = (0, react_1.useCallback)(() =>
|
|
13
|
+
const disconnect = (0, react_1.useCallback)(() => observer.current?.disconnect(), []);
|
|
15
14
|
const observe = (0, react_1.useCallback)(() => {
|
|
16
15
|
observer.current = new ResizeObserver(([entry]) => setObserverEntry(entry));
|
|
17
16
|
if (nodeRef.current) {
|
|
@@ -26,8 +25,8 @@ const useResizeObserver = () => {
|
|
|
26
25
|
nodeRef,
|
|
27
26
|
observerEntry,
|
|
28
27
|
{
|
|
29
|
-
blockSize:
|
|
30
|
-
inlineSize:
|
|
28
|
+
blockSize: observerEntry?.borderBoxSize?.at(0)?.blockSize,
|
|
29
|
+
inlineSize: observerEntry?.borderBoxSize?.at(0)?.inlineSize,
|
|
31
30
|
},
|
|
32
31
|
];
|
|
33
32
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type StorageType = 'localStorage' | 'sessionStorage';
|
|
3
2
|
/**
|
|
4
3
|
* A custom hook for managing state stored in localStorage.
|
|
@@ -9,7 +8,7 @@ export type StorageType = 'localStorage' | 'sessionStorage';
|
|
|
9
8
|
* @returns A tuple containing the state value, a function to update the state, and a function
|
|
10
9
|
* to remove the value from localStorage.
|
|
11
10
|
*/
|
|
12
|
-
export declare const useLocalStorage: <T>(key: string, defaultValue: T | (() => T)) => [T | undefined,
|
|
11
|
+
export declare const useLocalStorage: <T>(key: string, defaultValue: T | (() => T)) => [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>, () => void];
|
|
13
12
|
/**
|
|
14
13
|
* A custom hook for managing state stored in sessionStorage.
|
|
15
14
|
*
|
|
@@ -19,4 +18,4 @@ export declare const useLocalStorage: <T>(key: string, defaultValue: T | (() =>
|
|
|
19
18
|
* @returns A tuple containing the state value, a function to update the state,
|
|
20
19
|
* and a function to remove the value from sessionStorage.
|
|
21
20
|
*/
|
|
22
|
-
export declare const useSessionStorage: <T>(key: string, defaultValue: T | (() => T)) => [T | undefined,
|
|
21
|
+
export declare const useSessionStorage: <T>(key: string, defaultValue: T | (() => T)) => [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>, () => void];
|
|
@@ -35,7 +35,7 @@ const useTimeout = (callback, delay) => {
|
|
|
35
35
|
return timeoutRef;
|
|
36
36
|
};
|
|
37
37
|
const useChainedTimeout = () => {
|
|
38
|
-
const MAX_DELAY_MS =
|
|
38
|
+
const MAX_DELAY_MS = 2 ** 31 - 1;
|
|
39
39
|
const setChainedTimeout = (ref, fn, timeoutAtMs) => {
|
|
40
40
|
const delayMs = timeoutAtMs - Date.now();
|
|
41
41
|
ref.current =
|
|
@@ -43,7 +43,7 @@ const useChainedTimeout = () => {
|
|
|
43
43
|
? setTimeout(fn, delayMs)
|
|
44
44
|
: setTimeout(() => setChainedTimeout(ref, fn, timeoutAtMs), MAX_DELAY_MS);
|
|
45
45
|
};
|
|
46
|
-
const handleRef = (0, react_1.useRef)();
|
|
46
|
+
const handleRef = (0, react_1.useRef)(null);
|
|
47
47
|
const { set, clear } = (0, react_1.useMemo)(() => {
|
|
48
48
|
const clear = () => clearTimeout(handleRef.current);
|
|
49
49
|
const set = (fn, delayMs = 0) => {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom hook to handle toggle states.
|
|
3
|
+
*
|
|
4
|
+
* @param initialValue - The initial state of the toggle (default: false)
|
|
5
|
+
* @returns An object with the current value, toggle function, and control functions
|
|
6
|
+
*/
|
|
7
|
+
declare const useToggle: (initialValue?: boolean) => {
|
|
8
|
+
isToggled: boolean;
|
|
9
|
+
toggle: (eventOrCallback?: React.SyntheticEvent | ((newValue: boolean) => void)) => void;
|
|
10
|
+
enable: () => void;
|
|
11
|
+
disable: () => void;
|
|
12
|
+
};
|
|
13
|
+
export default useToggle;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
/**
|
|
5
|
+
* Custom hook to handle toggle states.
|
|
6
|
+
*
|
|
7
|
+
* @param initialValue - The initial state of the toggle (default: false)
|
|
8
|
+
* @returns An object with the current value, toggle function, and control functions
|
|
9
|
+
*/
|
|
10
|
+
const useToggle = (initialValue = false) => {
|
|
11
|
+
const [value, setValue] = (0, react_1.useState)(initialValue);
|
|
12
|
+
// Handle actual custom callbacks functions and
|
|
13
|
+
// events when assigning this function to a button directly
|
|
14
|
+
const toggle = (0, react_1.useCallback)((eventOrCallback) => {
|
|
15
|
+
setValue(prev => {
|
|
16
|
+
const newValue = !prev;
|
|
17
|
+
if (typeof eventOrCallback === 'function') {
|
|
18
|
+
// Call the callback with the new value
|
|
19
|
+
eventOrCallback(newValue);
|
|
20
|
+
}
|
|
21
|
+
return newValue;
|
|
22
|
+
});
|
|
23
|
+
}, []);
|
|
24
|
+
const enable = (0, react_1.useCallback)(() => setValue(true), []);
|
|
25
|
+
const disable = (0, react_1.useCallback)(() => setValue(false), []);
|
|
26
|
+
return {
|
|
27
|
+
isToggled: value,
|
|
28
|
+
toggle,
|
|
29
|
+
enable,
|
|
30
|
+
disable,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
exports.default = useToggle;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.defaultKey = defaultKey;
|
|
4
|
+
exports.useUncontrolledProp = useUncontrolledProp;
|
|
5
|
+
exports.useUncontrolled = useUncontrolled;
|
|
5
6
|
/* eslint-disable prefer-arrow/prefer-arrow-functions */
|
|
6
7
|
// forked from https://github.com/jquense/uncontrollable/blob/master/src/index.ts
|
|
7
8
|
const react_1 = require("react");
|
|
8
9
|
function defaultKey(key) {
|
|
9
10
|
return 'default' + key.charAt(0).toUpperCase() + key.substr(1);
|
|
10
11
|
}
|
|
11
|
-
exports.defaultKey = defaultKey;
|
|
12
12
|
function useUncontrolledProp(propValue, defaultValue, handler) {
|
|
13
13
|
const wasPropRef = (0, react_1.useRef)(propValue !== undefined);
|
|
14
14
|
const [stateValue, setState] = (0, react_1.useState)(defaultValue);
|
|
@@ -26,21 +26,23 @@ function useUncontrolledProp(propValue, defaultValue, handler) {
|
|
|
26
26
|
isProp ? propValue : stateValue,
|
|
27
27
|
(0, react_1.useCallback)((...args) => {
|
|
28
28
|
const [value, ...rest] = args;
|
|
29
|
-
const returnValue = handler
|
|
29
|
+
const returnValue = handler?.(value, ...rest);
|
|
30
30
|
setState(value);
|
|
31
31
|
return returnValue;
|
|
32
32
|
}, [handler]),
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
|
-
exports.useUncontrolledProp = useUncontrolledProp;
|
|
36
35
|
function useUncontrolled(props, config) {
|
|
37
36
|
return Object.keys(config).reduce((result, fieldName) => {
|
|
38
|
-
const
|
|
37
|
+
const { [defaultKey(fieldName)]: defaultValue, [fieldName]: propsValue, ...rest } = result;
|
|
39
38
|
// @ts-ignore-next-line
|
|
40
39
|
const handlerName = config[fieldName];
|
|
41
40
|
// @ts-ignore-next-line
|
|
42
41
|
const [value, handler] = useUncontrolledProp(propsValue, defaultValue, props[handlerName]);
|
|
43
|
-
return
|
|
42
|
+
return {
|
|
43
|
+
...rest,
|
|
44
|
+
[fieldName]: value,
|
|
45
|
+
[handlerName]: handler,
|
|
46
|
+
};
|
|
44
47
|
}, props);
|
|
45
48
|
}
|
|
46
|
-
exports.useUncontrolled = useUncontrolled;
|
|
@@ -69,5 +69,11 @@
|
|
|
69
69
|
"color-warmup-charm": "#C9778D",
|
|
70
70
|
"color-warmup-salmon": "#F19588",
|
|
71
71
|
"color-warmup-cherokee": "#F5BB89",
|
|
72
|
-
"color-warmup-corn": "#FDE082"
|
|
72
|
+
"color-warmup-corn": "#FDE082",
|
|
73
|
+
"color-spectrum-indigo": "#8e96eb",
|
|
74
|
+
"color-spectrum-violet": "#ad91f3",
|
|
75
|
+
"color-spectrum-purple": "#c08eeb",
|
|
76
|
+
"color-spectrum-fuchsia": "#dc82e9",
|
|
77
|
+
"color-spectrum-pink": "#e878b6",
|
|
78
|
+
"color-spectrum-rose": "#ef7186"
|
|
73
79
|
}
|
package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.d.ts
CHANGED
|
@@ -17,13 +17,13 @@ export type VolkswagenApplicationHeaderProps = ApplicationHeaderProps & {
|
|
|
17
17
|
};
|
|
18
18
|
export declare const VolkswagenApplicationHeader: React.ForwardRefExoticComponent<ApplicationHeaderProps & {
|
|
19
19
|
homeRoute?: React.ReactNode;
|
|
20
|
-
appMenuItems?: ModuleProps[]
|
|
20
|
+
appMenuItems?: ModuleProps[];
|
|
21
21
|
appNavigator?: React.ReactNode;
|
|
22
|
-
appNavigatorClassName?: string
|
|
23
|
-
navItems?: ModuleProps[]
|
|
24
|
-
actionBarItems?: React.ReactNode[]
|
|
25
|
-
onMount?: VoidFunction
|
|
26
|
-
onUnmount?: VoidFunction
|
|
27
|
-
className?: string
|
|
22
|
+
appNavigatorClassName?: string;
|
|
23
|
+
navItems?: ModuleProps[];
|
|
24
|
+
actionBarItems?: React.ReactNode[];
|
|
25
|
+
onMount?: VoidFunction;
|
|
26
|
+
onUnmount?: VoidFunction;
|
|
27
|
+
className?: string;
|
|
28
28
|
} & React.RefAttributes<HTMLElement>>;
|
|
29
29
|
export default VolkswagenApplicationHeader;
|
package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js
CHANGED
|
@@ -9,8 +9,8 @@ const isEmpty_1 = tslib_1.__importDefault(require("lodash/fp/isEmpty"));
|
|
|
9
9
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
10
|
const ApplicationActionBar_1 = tslib_1.__importDefault(require("../../../../components/applicationHeader/ApplicationActionBar"));
|
|
11
11
|
exports.VolkswagenApplicationHeader = (0, react_1.forwardRef)((props, ref) => {
|
|
12
|
-
const { homeRoute = '', appNavigator, appNavigatorClassName, appMenuItems, navItems = [], actionBarItems = [], onMount = () => { }, onUnmount = () => { }, className = ''
|
|
12
|
+
const { homeRoute = '', appNavigator, appNavigatorClassName, appMenuItems, navItems = [], actionBarItems = [], onMount = () => { }, onUnmount = () => { }, className = '', ...remainingProps } = props;
|
|
13
13
|
const wrapperClassNames = (0, classnames_1.default)('ApplicationHeader VolkswagenApplicationHeader', 'user-select-none', className && className);
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)("nav",
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)("nav", { ...remainingProps, className: wrapperClassNames, ref: ref, children: (0, jsx_runtime_1.jsxs)("div", { className: 'width-100pct', children: [(0, jsx_runtime_1.jsx)("div", { className: 'brand', children: (0, jsx_runtime_1.jsx)("div", { className: 'logo', children: homeRoute }) }), (0, isEmpty_1.default)(navItems) && (0, jsx_runtime_1.jsx)("ul", { className: 'SubmoduleNavigation nav' }), !(0, isEmpty_1.default)(navItems) && ((0, jsx_runtime_1.jsx)("ul", { className: 'SubmoduleNavigation nav', children: navItems.map(navItem => ((0, jsx_runtime_1.jsx)("li", { className: 'submodule', "data-nav-item-key": navItem.key, children: navItem.route }, navItem.key))) })), (0, jsx_runtime_1.jsx)(ApplicationActionBar_1.default, { items: actionBarItems })] }) }));
|
|
15
15
|
});
|
|
16
16
|
exports.default = exports.VolkswagenApplicationHeader;
|
package/lib/es/useAfterMount.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var useAfterMount_1 = require("./hooks/useAfterMount");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(useAfterMount_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useAfterMount_1).default; } });
|
package/lib/es/useClipboard.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var useClipboard_1 = require("./hooks/useClipboard");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(useClipboard_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useClipboard_1).default; } });
|
package/lib/es/useDarkMode.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var useDarkMode_1 = require("./hooks/useDarkMode");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(useDarkMode_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useDarkMode_1).default; } });
|
package/lib/es/useDebugInfo.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var useDebugInfo_1 = require("./hooks/useDebugInfo");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(useDebugInfo_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useDebugInfo_1).default; } });
|
package/lib/es/useEffectOnce.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var useEffectOnce_1 = require("./hooks/useEffectOnce");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(useEffectOnce_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useEffectOnce_1).default; } });
|
package/lib/es/useElementSize.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var useElementSize_1 = require("./hooks/useElementSize");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(useElementSize_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useElementSize_1).default; } });
|
package/lib/es/useEsc.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var useEsc_1 = require("./hooks/useEsc");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(useEsc_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return tslib_1.__importDefault(useEsc_1).default; } });
|