@rio-cloud/rio-uikit 2.1.0 → 2.2.1
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/CircularProgress.d.ts +2 -0
- package/CircularProgress.js +5 -0
- package/CircularProgress.js.map +1 -0
- package/RadioCardGroup.d.ts +2 -0
- package/RadioCardGroup.js +7 -0
- package/RadioCardGroup.js.map +1 -0
- package/SearchHighlightText.d.ts +2 -0
- package/SearchHighlightText.js +5 -0
- package/SearchHighlightText.js.map +1 -0
- package/TextTruncateMiddle.d.ts +2 -0
- package/TextTruncateMiddle.js +5 -0
- package/TextTruncateMiddle.js.map +1 -0
- package/Tracker.d.ts +2 -0
- package/Tracker.js +5 -0
- package/Tracker.js.map +1 -0
- package/classNames.d.ts +2 -0
- package/classNames.js +5 -0
- package/classNames.js.map +1 -0
- package/components/accentBar/AccentBar.js +1 -1
- package/components/accentBar/AccentBar.js.map +1 -1
- package/components/actionBarItem/ActionBarItem.js +7 -7
- package/components/actionBarItem/ActionBarItem.js.map +1 -1
- package/components/actionBarItem/ActionBarItemIcon.js +1 -1
- package/components/actionBarItem/ActionBarItemIcon.js.map +1 -1
- package/components/actionBarItem/ActionBarItemList.js +1 -1
- package/components/actionBarItem/ActionBarItemList.js.map +1 -1
- package/components/actionBarItem/ActionBarItemListItem.js +1 -1
- package/components/actionBarItem/ActionBarItemListItem.js.map +1 -1
- package/components/actionBarItem/ActionBarItemListSeparator.js +1 -1
- package/components/actionBarItem/ActionBarItemListSeparator.js.map +1 -1
- package/components/actionBarItem/ActionBarItemPopoverContent.js +3 -3
- package/components/actionBarItem/ActionBarItemPopoverContent.js.map +1 -1
- package/components/actionBarItem/ActionBarOverlay.js +1 -1
- package/components/actionBarItem/ActionBarOverlay.js.map +1 -1
- package/components/activity/Activity.js +1 -1
- package/components/activity/Activity.js.map +1 -1
- package/components/animatedTextReveal/AnimatedTextReveal.js +1 -1
- package/components/animatedTextReveal/AnimatedTextReveal.js.map +1 -1
- package/components/applicationHeader/AppMenu.js +2 -2
- package/components/applicationHeader/AppMenu.js.map +1 -1
- package/components/applicationHeader/AppMenuDropdown.js +13 -11
- package/components/applicationHeader/AppMenuDropdown.js.map +1 -1
- package/components/applicationHeader/ApplicationHeader.js +1 -1
- package/components/applicationHeader/ApplicationHeader.js.map +1 -1
- package/components/applicationHeader/MobileHeaderModal.js +8 -8
- package/components/applicationHeader/MobileHeaderModal.js.map +1 -1
- package/components/applicationHeader/MobileSubmoduleNavigation.js +1 -1
- package/components/applicationHeader/MobileSubmoduleNavigation.js.map +1 -1
- package/components/applicationHeader/NavItems.js +4 -4
- package/components/applicationHeader/NavItems.js.map +1 -1
- package/components/applicationLayout/ApplicationLayout.js +10 -10
- package/components/applicationLayout/ApplicationLayout.js.map +1 -1
- package/components/applicationLayout/ApplicationLayoutBody.js +2 -2
- package/components/applicationLayout/ApplicationLayoutBody.js.map +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyBanner.js +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyBanner.js.map +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js.map +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyNavigation.js.map +1 -1
- package/components/applicationLayout/ApplicationLayoutHeader.js +1 -1
- package/components/applicationLayout/ApplicationLayoutHeader.js.map +1 -1
- package/components/applicationLayout/ApplicationLayoutSidebar.js +1 -1
- package/components/applicationLayout/ApplicationLayoutSidebar.js.map +1 -1
- package/components/applicationLayout/SubNavigation.js +1 -1
- package/components/applicationLayout/SubNavigation.js.map +1 -1
- package/components/assetTree/AssetTree.js +1 -1
- package/components/assetTree/AssetTree.js.map +1 -1
- package/components/assetTree/Tree.js +1 -1
- package/components/assetTree/Tree.js.map +1 -1
- package/components/assetTree/TreeIcon.js +3 -3
- package/components/assetTree/TreeIcon.js.map +1 -1
- package/components/assetTree/TreeLeaf.js +4 -4
- package/components/assetTree/TreeLeaf.js.map +1 -1
- package/components/assetTree/TreeNode.js +1 -1
- package/components/assetTree/TreeNode.js.map +1 -1
- package/components/assetTree/TreeNodeContainer.js +1 -1
- package/components/assetTree/TreeNodeContainer.js.map +1 -1
- package/components/assetTree/TreeOption.js +3 -3
- package/components/assetTree/TreeOption.js.map +1 -1
- package/components/assetTree/TreeOptions.js +4 -4
- package/components/assetTree/TreeOptions.js.map +1 -1
- package/components/assetTree/TreeRoot.js +3 -3
- package/components/assetTree/TreeRoot.js.map +1 -1
- package/components/assetTree/TreeSearch.js +3 -3
- package/components/assetTree/TreeSearch.js.map +1 -1
- package/components/assetTree/TreeSidebar.js +1 -1
- package/components/assetTree/TreeSidebar.js.map +1 -1
- package/components/assetTree/TreeSidebarCategories.js +4 -4
- package/components/assetTree/TreeSidebarCategories.js.map +1 -1
- package/components/assetTree/TreeSummary.js +1 -1
- package/components/assetTree/TreeSummary.js.map +1 -1
- package/components/assetTree/TypeCounter.js +1 -1
- package/components/assetTree/TypeCounter.js.map +1 -1
- package/components/autosuggest/AutoSuggest.js +1 -1
- package/components/autosuggest/AutoSuggest.js.map +1 -1
- package/components/avatar/Avatar.js +1 -1
- package/components/avatar/Avatar.js.map +1 -1
- package/components/banner/Banner.js +1 -1
- package/components/banner/Banner.js.map +1 -1
- package/components/banner/BannerContent.js +1 -1
- package/components/banner/BannerContent.js.map +1 -1
- package/components/barList/BarList.js +1 -1
- package/components/barList/BarList.js.map +1 -1
- package/components/bottomSheet/BottomSheet.js +1 -1
- package/components/bottomSheet/BottomSheet.js.map +1 -1
- package/components/button/Button.d.ts +53 -7
- package/components/button/Button.js +87 -64
- package/components/button/Button.js.map +1 -1
- package/components/button/ButtonToolbar.js +1 -1
- package/components/button/ButtonToolbar.js.map +1 -1
- package/components/button/ToggleButton.d.ts +4 -1
- package/components/button/ToggleButton.js.map +1 -1
- package/components/calendarStripe/CalendarStripe.js +16 -16
- package/components/calendarStripe/CalendarStripe.js.map +1 -1
- package/components/card/Card.js +1 -1
- package/components/card/Card.js.map +1 -1
- package/components/charts/RadialBarChart.js +106 -103
- package/components/charts/RadialBarChart.js.map +1 -1
- package/components/checkbox/Checkbox.js +6 -6
- package/components/checkbox/Checkbox.js.map +1 -1
- package/components/circularProgress/CircularProgress.d.ts +139 -0
- package/components/circularProgress/CircularProgress.js +197 -0
- package/components/circularProgress/CircularProgress.js.map +1 -0
- package/components/clearableInput/ClearableInput.js +9 -9
- package/components/clearableInput/ClearableInput.js.map +1 -1
- package/components/dataTabs/DataTabHeader.js +1 -1
- package/components/dataTabs/DataTabHeader.js.map +1 -1
- package/components/dataTabs/DataTabs.js +4 -4
- package/components/dataTabs/DataTabs.js.map +1 -1
- package/components/datepicker/DatePicker.js +6 -6
- package/components/datepicker/DatePicker.js.map +1 -1
- package/components/datepicker/DateRangePicker.js +1 -1
- package/components/datepicker/DateRangePicker.js.map +1 -1
- package/components/datepicker/DayPicker.js +1 -1
- package/components/datepicker/DayPicker.js.map +1 -1
- package/components/dialog/Dialog.js +55 -55
- package/components/dialog/Dialog.js.map +1 -1
- package/components/dialog/DialogBody.js +1 -1
- package/components/dialog/DialogBody.js.map +1 -1
- package/components/dialog/DialogFooter.js +1 -1
- package/components/dialog/DialogFooter.js.map +1 -1
- package/components/dialog/DialogHeader.js +1 -1
- package/components/dialog/DialogHeader.js.map +1 -1
- package/components/dialog/MediaDialog.js +1 -1
- package/components/dialog/MediaDialog.js.map +1 -1
- package/components/dialog/SplitDialog.js +1 -1
- package/components/dialog/SplitDialog.js.map +1 -1
- package/components/divider/Divider.js +1 -1
- package/components/divider/Divider.js.map +1 -1
- package/components/dropdown/ButtonDropdown.js +1 -1
- package/components/dropdown/ButtonDropdown.js.map +1 -1
- package/components/dropdown/DropdownSubmenu.js +3 -3
- package/components/dropdown/DropdownSubmenu.js.map +1 -1
- package/components/dropdown/DropdownToggleButton.d.ts +1 -1
- package/components/dropdown/DropdownToggleButton.js +4 -3
- package/components/dropdown/DropdownToggleButton.js.map +1 -1
- package/components/dropdown/SplitCaretButton.js +6 -6
- package/components/dropdown/SplitCaretButton.js.map +1 -1
- package/components/editableContent/EditableContent.js +1 -1
- package/components/editableContent/EditableContent.js.map +1 -1
- package/components/ellipsis/TextTruncateMiddle.d.ts +23 -0
- package/components/ellipsis/TextTruncateMiddle.js +21 -0
- package/components/ellipsis/TextTruncateMiddle.js.map +1 -0
- package/components/expander/ExpanderList.js +5 -5
- package/components/expander/ExpanderList.js.map +1 -1
- package/components/expander/ExpanderPanel.js +1 -1
- package/components/expander/ExpanderPanel.js.map +1 -1
- package/components/feedback/FeedbackRating.js +1 -1
- package/components/feedback/FeedbackRating.js.map +1 -1
- package/components/feedback/FeedbackReactions.js +1 -1
- package/components/feedback/FeedbackReactions.js.map +1 -1
- package/components/formLabel/FormLabel.js +6 -9
- package/components/formLabel/FormLabel.js.map +1 -1
- package/components/formLabel/LabeledElement.js +1 -1
- package/components/formLabel/LabeledElement.js.map +1 -1
- package/components/listMenu/ListMenu.js +2 -5
- package/components/listMenu/ListMenu.js.map +1 -1
- package/components/listMenu/ListMenuGroup.js +2 -2
- package/components/listMenu/ListMenuGroup.js.map +1 -1
- package/components/loadMore/LoadMoreButton.js +1 -1
- package/components/loadMore/LoadMoreButton.js.map +1 -1
- package/components/loadMore/LoadMoreProgress.js +1 -1
- package/components/loadMore/LoadMoreProgress.js.map +1 -1
- package/components/map/components/features/MapSettings.js +4 -4
- package/components/map/components/features/MapSettings.js.map +1 -1
- package/components/map/components/features/settings/MapSettingsItem.js +1 -1
- package/components/map/components/features/settings/MapSettingsItem.js.map +1 -1
- package/components/map/components/features/settings/MapSettingsPanel.js +6 -20
- package/components/map/components/features/settings/MapSettingsPanel.js.map +1 -1
- package/components/map/components/features/settings/MapSettingsTile.js +87 -61
- package/components/map/components/features/settings/MapSettingsTile.js.map +1 -1
- package/components/map/components/features/settings/ZoomButtons.js +1 -1
- package/components/map/components/features/settings/ZoomButtons.js.map +1 -1
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +38 -1
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +128 -92
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js.map +1 -1
- package/components/map/utils/eventHandling.js +9 -9
- package/components/map/utils/eventHandling.js.map +1 -1
- package/components/map/utils/mapUtils.d.ts +6 -6
- package/components/map/utils/mapUtils.js +14 -19
- package/components/map/utils/mapUtils.js.map +1 -1
- package/components/mapMarker/ClusterMapMarker.js +1 -1
- package/components/mapMarker/ClusterMapMarker.js.map +1 -1
- package/components/mapMarker/SingleMapMarker.js +1 -1
- package/components/mapMarker/SingleMapMarker.js.map +1 -1
- package/components/menuItems/MenuItem.js +1 -1
- package/components/menuItems/MenuItem.js.map +1 -1
- package/components/menuItems/MenuItemList.js +1 -1
- package/components/menuItems/MenuItemList.js.map +1 -1
- package/components/navigation/AppNavigationBar.js +4 -4
- package/components/navigation/AppNavigationBar.js.map +1 -1
- package/components/noData/NoData.js +1 -1
- package/components/noData/NoData.js.map +1 -1
- package/components/numberControl/NumberControl.js +4 -4
- package/components/numberControl/NumberControl.js.map +1 -1
- package/components/numberInput/NumberInput.js +1 -1
- package/components/numberInput/NumberInput.js.map +1 -1
- package/components/onboarding/OnboardingTip.js +4 -4
- package/components/onboarding/OnboardingTip.js.map +1 -1
- package/components/page/Page.js +1 -1
- package/components/page/Page.js.map +1 -1
- package/components/pager/Pager.js +1 -1
- package/components/pager/Pager.js.map +1 -1
- package/components/radiobutton/RadioButton.d.ts +1 -1
- package/components/radiobutton/RadioButton.js +5 -5
- package/components/radiobutton/RadioButton.js.map +1 -1
- package/components/radiobutton/RadioCardGroup.d.ts +86 -0
- package/components/radiobutton/RadioCardGroup.js +110 -0
- package/components/radiobutton/RadioCardGroup.js.map +1 -0
- package/components/resizer/Resizer.js +1 -1
- package/components/resizer/Resizer.js.map +1 -1
- package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +1 -1
- package/components/responsiveColumnStripe/ResponsiveColumnStripe.js.map +1 -1
- package/components/rioglyph/Rioglyph.js +1 -1
- package/components/rioglyph/Rioglyph.js.map +1 -1
- package/components/rioglyph/RioglyphIconType.d.ts +1 -1
- package/components/rules/RuleConnector.js +1 -1
- package/components/rules/RuleConnector.js.map +1 -1
- package/components/rules/RuleContainer.js +27 -27
- package/components/rules/RuleContainer.js.map +1 -1
- package/components/saveableInput/SaveableDateInput.js +1 -1
- package/components/saveableInput/SaveableDateInput.js.map +1 -1
- package/components/saveableInput/SaveableInput.js +49 -49
- package/components/saveableInput/SaveableInput.js.map +1 -1
- package/components/searchHighlight/SearchHighlightText.d.ts +28 -0
- package/components/searchHighlight/SearchHighlightText.js +15 -0
- package/components/searchHighlight/SearchHighlightText.js.map +1 -0
- package/components/selects/BaseSelectDropdown.js +1 -1
- package/components/selects/BaseSelectDropdown.js.map +1 -1
- package/components/selects/ClearButton.js +4 -4
- package/components/selects/ClearButton.js.map +1 -1
- package/components/selects/Multiselect.js +6 -6
- package/components/selects/Multiselect.js.map +1 -1
- package/components/selects/MultiselectToggleFilter.js +4 -4
- package/components/selects/MultiselectToggleFilter.js.map +1 -1
- package/components/selects/MultiselectToggleSelection.js +1 -1
- package/components/selects/MultiselectToggleSelection.js.map +1 -1
- package/components/selects/Select.js +6 -6
- package/components/selects/Select.js.map +1 -1
- package/components/selects/SelectFilter.js +1 -1
- package/components/selects/SelectFilter.js.map +1 -1
- package/components/selects/WithFeedbackAndAddon.js +1 -1
- package/components/selects/WithFeedbackAndAddon.js.map +1 -1
- package/components/sidebars/Sidebar.js +54 -54
- package/components/sidebars/Sidebar.js.map +1 -1
- package/components/sidebars/SidebarBackdrop.js +4 -4
- package/components/sidebars/SidebarBackdrop.js.map +1 -1
- package/components/sidebars/SidebarFooter.js +1 -1
- package/components/sidebars/SidebarFooter.js.map +1 -1
- package/components/sidebars/SidebarFullscreenToggle.js +4 -4
- package/components/sidebars/SidebarFullscreenToggle.js.map +1 -1
- package/components/slider/RangeSlider.js +1 -1
- package/components/slider/RangeSlider.js.map +1 -1
- package/components/slider/Slider.js +1 -1
- package/components/slider/Slider.js.map +1 -1
- package/components/smoothScrollbars/SmoothScrollbars.js +1 -1
- package/components/smoothScrollbars/SmoothScrollbars.js.map +1 -1
- package/components/spinner/Spinner.js +5 -4
- package/components/spinner/Spinner.js.map +1 -1
- package/components/states/CustomState.d.ts +69 -1
- package/components/states/CustomState.js +1 -1
- package/components/states/CustomState.js.map +1 -1
- package/components/states/EmptyState.d.ts +1 -1
- package/components/states/EmptyState.js.map +1 -1
- package/components/states/ErrorState.d.ts +1 -1
- package/components/states/ErrorState.js.map +1 -1
- package/components/states/ForbiddenState.d.ts +1 -1
- package/components/states/ForbiddenState.js.map +1 -1
- package/components/states/MaintenanceState.d.ts +1 -1
- package/components/states/MaintenanceState.js.map +1 -1
- package/components/states/NotBookedState.d.ts +1 -1
- package/components/states/NotBookedState.js.map +1 -1
- package/components/states/NotFoundState.d.ts +1 -1
- package/components/states/NotFoundState.js.map +1 -1
- package/components/states/StateButton.js +1 -1
- package/components/states/StateButton.js.map +1 -1
- package/components/statsWidget/StatsWidget.js +1 -1
- package/components/statsWidget/StatsWidget.js.map +1 -1
- package/components/statsWidget/StatsWidgetBody.js +1 -1
- package/components/statsWidget/StatsWidgetBody.js.map +1 -1
- package/components/statsWidget/StatsWidgetFooter.js +1 -1
- package/components/statsWidget/StatsWidgetFooter.js.map +1 -1
- package/components/statsWidget/StatsWidgetHeader.js +1 -1
- package/components/statsWidget/StatsWidgetHeader.js.map +1 -1
- package/components/statsWidget/StatsWidgetNumber.js +2 -2
- package/components/statsWidget/StatsWidgetNumber.js.map +1 -1
- package/components/statsWidget/StatsWidgetSpacer.js +1 -1
- package/components/statsWidget/StatsWidgetSpacer.js.map +1 -1
- package/components/statsWidget/StatsWidgets.js +1 -1
- package/components/statsWidget/StatsWidgets.js.map +1 -1
- package/components/statusBar/StatusBar.d.ts +126 -2
- package/components/statusBar/StatusBar.js +24 -17
- package/components/statusBar/StatusBar.js.map +1 -1
- package/components/statusBar/StatusBarIcon.d.ts +1 -1
- package/components/statusBar/StatusBarIcon.js +4 -4
- package/components/statusBar/StatusBarIcon.js.map +1 -1
- package/components/statusBar/StatusBarLabel.d.ts +1 -1
- package/components/statusBar/StatusBarLabel.js +5 -7
- package/components/statusBar/StatusBarLabel.js.map +1 -1
- package/components/statusBar/StatusBarProgressBar.d.ts +1 -1
- package/components/statusBar/StatusBarProgressBar.js +1 -1
- package/components/statusBar/StatusBarProgressBar.js.map +1 -1
- package/components/steppedProgressBar/SteppedProgressBar.js +1 -1
- package/components/steppedProgressBar/SteppedProgressBar.js.map +1 -1
- package/components/switch/Switch.d.ts +16 -1
- package/components/switch/Switch.js +77 -35
- package/components/switch/Switch.js.map +1 -1
- package/components/table/TableCardsSorting.js +4 -4
- package/components/table/TableCardsSorting.js.map +1 -1
- package/components/table/TableHead.js +1 -1
- package/components/table/TableHead.js.map +1 -1
- package/components/table/TableSearch.js +1 -1
- package/components/table/TableSearch.js.map +1 -1
- package/components/table/TableSettingsColumnButtons.d.ts +1 -1
- package/components/table/TableSettingsColumnButtons.js +1 -1
- package/components/table/TableSettingsColumnButtons.js.map +1 -1
- package/components/table/TableSettingsColumnDetails.d.ts +1 -1
- package/components/table/TableSettingsColumnDetails.js +1 -1
- package/components/table/TableSettingsColumnDetails.js.map +1 -1
- package/components/table/TableSettingsDialog.d.ts +51 -1
- package/components/table/TableSettingsDialog.js +170 -154
- package/components/table/TableSettingsDialog.js.map +1 -1
- package/components/table/TableSettingsDialogFooter.js +1 -1
- package/components/table/TableSettingsDialogFooter.js.map +1 -1
- package/components/table/TableSettingsListContainer.d.ts +1 -1
- package/components/table/TableSettingsListContainer.js +8 -8
- package/components/table/TableSettingsListContainer.js.map +1 -1
- package/components/table/TableSettingsListItem.d.ts +1 -1
- package/components/table/TableSettingsListItem.js +26 -26
- package/components/table/TableSettingsListItem.js.map +1 -1
- package/components/table/TableToolbar.js +1 -1
- package/components/table/TableToolbar.js.map +1 -1
- package/components/table/TableViewToggles.js +1 -1
- package/components/table/TableViewToggles.js.map +1 -1
- package/components/tag/Tag.js +1 -1
- package/components/tag/Tag.js.map +1 -1
- package/components/tag/TagList.js +1 -1
- package/components/tag/TagList.js.map +1 -1
- package/components/tagManager/CustomSuggestionItem.js +1 -1
- package/components/tagManager/CustomSuggestionItem.js.map +1 -1
- package/components/tagManager/TagManager.d.ts +14 -2
- package/components/tagManager/TagManager.js +6 -6
- package/components/tagManager/TagManager.js.map +1 -1
- package/components/tagManager/TagManagerItemList.d.ts +1 -1
- package/components/tagManager/TagManagerItemList.js +1 -1
- package/components/tagManager/TagManagerItemList.js.map +1 -1
- package/components/teaser/Teaser.js +1 -1
- package/components/teaser/Teaser.js.map +1 -1
- package/components/teaser/TeaserContainer.js +1 -1
- package/components/teaser/TeaserContainer.js.map +1 -1
- package/components/timepicker/TimePicker.d.ts +20 -0
- package/components/timepicker/TimePicker.js +153 -99
- package/components/timepicker/TimePicker.js.map +1 -1
- package/components/tooltip/Tooltip.js +1 -1
- package/components/tooltip/Tooltip.js.map +1 -1
- package/components/tracker/Tracker.d.ts +85 -0
- package/components/tracker/Tracker.js +54 -0
- package/components/tracker/Tracker.js.map +1 -0
- package/components/tracker/TrackerBlock.d.ts +11 -0
- package/components/tracker/TrackerBlock.js +34 -0
- package/components/tracker/TrackerBlock.js.map +1 -0
- package/components/video/ResponsiveVideo.js +1 -1
- package/components/video/ResponsiveVideo.js.map +1 -1
- package/hooks/useCookies.d.ts +79 -0
- package/hooks/useCookies.js +33 -0
- package/hooks/useCookies.js.map +1 -0
- package/hooks/useInterval.js +5 -5
- package/hooks/useInterval.js.map +1 -1
- package/hooks/useIsFocusWithin.js +3 -3
- package/hooks/useIsFocusWithin.js.map +1 -1
- package/hooks/useLatest.d.ts +16 -0
- package/hooks/useLatest.js +11 -0
- package/hooks/useLatest.js.map +1 -0
- package/hooks/usePostMessage.d.ts +2 -1
- package/hooks/usePostMessage.js.map +1 -1
- package/hooks/useRioCookieConsent.d.ts +49 -0
- package/hooks/useRioCookieConsent.js +44 -0
- package/hooks/useRioCookieConsent.js.map +1 -0
- package/hooks/useSearch.d.ts +1 -1
- package/hooks/useSearch.js +28 -17
- package/hooks/useSearch.js.map +1 -1
- package/hooks/useSearchHighlight.d.ts +60 -0
- package/hooks/useSearchHighlight.js +54 -0
- package/hooks/useSearchHighlight.js.map +1 -0
- package/hooks/useTimeout.js +11 -11
- package/hooks/useTimeout.js.map +1 -1
- package/hooks/useUrlState.d.ts +62 -0
- package/hooks/useUrlState.js +137 -0
- package/hooks/useUrlState.js.map +1 -0
- package/mergeClassNameOverrides.d.ts +1 -0
- package/mergeClassNameOverrides.js +5 -0
- package/mergeClassNameOverrides.js.map +1 -0
- package/package.json +17 -18
- package/routeUtils.js +11 -5
- package/routeUtils.js.map +1 -1
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +1 -1
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js.map +1 -1
- package/useCookies.d.ts +2 -0
- package/useCookies.js +5 -0
- package/useCookies.js.map +1 -0
- package/useRioCookieConsent.d.ts +2 -0
- package/useRioCookieConsent.js +5 -0
- package/useRioCookieConsent.js.map +1 -0
- package/useSearchHighlight.d.ts +2 -0
- package/useSearchHighlight.js +6 -0
- package/useSearchHighlight.js.map +1 -0
- package/useUrlState.d.ts +2 -0
- package/useUrlState.js +5 -0
- package/useUrlState.js.map +1 -0
- package/utils/classNames.d.ts +3 -0
- package/utils/classNames.js +5 -0
- package/utils/classNames.js.map +1 -0
- package/utils/mergeClassNameOverrides.d.ts +1 -0
- package/utils/mergeClassNameOverrides.js +55 -0
- package/utils/mergeClassNameOverrides.js.map +1 -0
- package/utils/routeUtils.d.ts +122 -13
- package/utils/routeUtils.js +89 -31
- package/utils/routeUtils.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/components/states/BaseStateProps.d.ts +0 -70
- package/components/statusBar/StatusBarProps.d.ts +0 -127
- package/components/table/TableSettingsDialog.types.d.ts +0 -39
- package/components/tagManager/TagManagerTag.d.ts +0 -14
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import d from "
|
|
2
|
+
import d from "../../utils/classNames.js";
|
|
3
3
|
import v from "../fade/Fade.js";
|
|
4
4
|
const S = (i) => {
|
|
5
|
-
const { isInverse: r, isDoubleSized: s, ...n } = i, l = d("spinner",
|
|
5
|
+
const { isInverse: r, isDoubleSized: s, ...n } = i, l = d("spinner", r && "inverse", s && "double");
|
|
6
6
|
return /* @__PURE__ */ c("div", { ...n, className: l, children: [
|
|
7
7
|
/* @__PURE__ */ e("div", {}),
|
|
8
8
|
/* @__PURE__ */ e("div", {}),
|
|
@@ -23,8 +23,9 @@ const S = (i) => {
|
|
|
23
23
|
if (f)
|
|
24
24
|
return a;
|
|
25
25
|
const m = d(
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
"spinnerInfoBox display-flex justify-content-center align-items-center height-100pct",
|
|
27
|
+
s && "fullsized",
|
|
28
|
+
n && "fullscreen"
|
|
28
29
|
), o = /* @__PURE__ */ c("div", { className: m, children: [
|
|
29
30
|
a,
|
|
30
31
|
t && /* @__PURE__ */ e("div", { className: "spinnerText", children: t })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.js","sources":["../../../src/components/spinner/Spinner.tsx"],"sourcesContent":["import type React from 'react';\nimport classNames from '
|
|
1
|
+
{"version":3,"file":"Spinner.js","sources":["../../../src/components/spinner/Spinner.tsx"],"sourcesContent":["import type React from 'react';\n\nimport classNames from '../../utils/classNames';\nimport Fade from '../fade/Fade';\n\ntype BaseSpinnerProps = {\n isInverse?: boolean;\n isDoubleSized?: boolean;\n};\n\nconst BaseSpinner = (props: BaseSpinnerProps) => {\n const { isInverse, isDoubleSized, ...remainingProps } = props;\n const className = classNames('spinner', isInverse && 'inverse', isDoubleSized && 'double');\n return (\n <div {...remainingProps} className={className}>\n <div />\n <div />\n <div />\n <div />\n </div>\n );\n};\n\nexport type SpinnerProps = {\n /**\n * Defines whether the spinner is shown on bright or dark background.\n *\n * @default false\n */\n isInverse?: boolean;\n\n /**\n * If set to \"true\" the spinner will be rendered twice as big.\n *\n * @default false\n */\n isDoubleSized?: boolean;\n\n /**\n * Renders the spinner as overlay in full-size mode.\n *\n * This will be relative to the parent container. Set the parent element to \"position-relative\" in this case.\n *\n * @default false\n */\n isFullSized?: boolean;\n\n /**\n * Renders the spinner in fullscreen mode, relative to the body.\n *\n * @default false\n */\n isFullScreen?: boolean;\n\n /**\n * Renders the spinner without centered wrapper.\n *\n * @default false\n */\n isInline?: boolean;\n\n /**\n * Flag to control the visibility of the spinner.\n *\n * Only relevant in combination with `isFullSized` or `isFullScreen`.\n *\n * @default false\n */\n show?: boolean;\n\n /**\n * The text shown next to the spinner icon.\n */\n text?: string | React.ReactNode;\n};\n\nconst Spinner = (props: SpinnerProps) => {\n const {\n isInverse = false,\n isFullSized = false,\n isFullScreen = false,\n isDoubleSized = false,\n isInline = false,\n show = false,\n text,\n ...remainingProps\n } = props;\n\n const baseSpinner = <BaseSpinner isDoubleSized={isDoubleSized} isInverse={isInverse} {...remainingProps} />;\n\n if (isInline) {\n return baseSpinner;\n }\n\n const classes = classNames(\n 'spinnerInfoBox display-flex justify-content-center align-items-center height-100pct',\n isFullSized && 'fullsized',\n isFullScreen && 'fullscreen'\n );\n\n const wrappedSpinner = (\n <div className={classes}>\n {baseSpinner}\n {text && <div className='spinnerText'>{text}</div>}\n </div>\n );\n\n if (isFullScreen || isFullSized) {\n return (\n <Fade show={show} duration={0.1}>\n {wrappedSpinner}\n </Fade>\n );\n }\n\n return wrappedSpinner;\n};\n\nexport default Spinner;\n"],"names":["BaseSpinner","props","isInverse","isDoubleSized","remainingProps","className","classNames","jsxs","jsx","Spinner","isFullSized","isFullScreen","isInline","show","text","baseSpinner","classes","wrappedSpinner","Fade"],"mappings":";;;AAUA,MAAMA,IAAc,CAACC,MAA4B;AAC7C,QAAM,EAAE,WAAAC,GAAW,eAAAC,GAAe,GAAGC,MAAmBH,GAClDI,IAAYC,EAAW,WAAWJ,KAAa,WAAWC,KAAiB,QAAQ;AACzF,SACI,gBAAAI,EAAC,OAAA,EAAK,GAAGH,GAAgB,WAAAC,GACrB,UAAA;AAAA,IAAA,gBAAAG,EAAC,OAAA,EAAI;AAAA,sBACJ,OAAA,EAAI;AAAA,sBACJ,OAAA,EAAI;AAAA,sBACJ,OAAA,CAAA,CAAI;AAAA,EAAA,GACT;AAER,GAuDMC,IAAU,CAACR,MAAwB;AACrC,QAAM;AAAA,IACF,WAAAC,IAAY;AAAA,IACZ,aAAAQ,IAAc;AAAA,IACd,cAAAC,IAAe;AAAA,IACf,eAAAR,IAAgB;AAAA,IAChB,UAAAS,IAAW;AAAA,IACX,MAAAC,IAAO;AAAA,IACP,MAAAC;AAAA,IACA,GAAGV;AAAA,EAAA,IACHH,GAEEc,IAAc,gBAAAP,EAACR,GAAA,EAAY,eAAAG,GAA8B,WAAAD,GAAuB,GAAGE,GAAgB;AAEzG,MAAIQ;AACA,WAAOG;AAGX,QAAMC,IAAUV;AAAA,IACZ;AAAA,IACAI,KAAe;AAAA,IACfC,KAAgB;AAAA,EAAA,GAGdM,IACF,gBAAAV,EAAC,OAAA,EAAI,WAAWS,GACX,UAAA;AAAA,IAAAD;AAAA,IACAD,KAAQ,gBAAAN,EAAC,OAAA,EAAI,WAAU,eAAe,UAAAM,EAAA,CAAK;AAAA,EAAA,GAChD;AAGJ,SAAIH,KAAgBD,IAEZ,gBAAAF,EAACU,GAAA,EAAK,MAAAL,GAAY,UAAU,KACvB,UAAAI,GACL,IAIDA;AACX;"}
|
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StateButtonProps } from './StateButton';
|
|
3
|
+
import { TextAlignment } from '../../values/TextAlignment';
|
|
4
|
+
import { StateIconProps } from './StateIcon';
|
|
5
|
+
export type BaseStateProps = {
|
|
6
|
+
/**
|
|
7
|
+
* The icon to be shown.
|
|
8
|
+
*
|
|
9
|
+
* Default icons are defined for all states.
|
|
10
|
+
*/
|
|
11
|
+
icon?: string;
|
|
12
|
+
/**
|
|
13
|
+
* List of icons to show instead a single icon.
|
|
14
|
+
*
|
|
15
|
+
* @default []
|
|
16
|
+
*/
|
|
17
|
+
icons?: StateIconProps[];
|
|
18
|
+
/**
|
|
19
|
+
* Custom Image if needed.
|
|
20
|
+
*/
|
|
21
|
+
image?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* The headline to be shown.
|
|
24
|
+
*/
|
|
25
|
+
headline?: string | React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* The text to display.
|
|
28
|
+
*/
|
|
29
|
+
message?: string | React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Definitions for the buttons to show.
|
|
32
|
+
*
|
|
33
|
+
* @default []
|
|
34
|
+
*/
|
|
35
|
+
buttons?: StateButtonProps[];
|
|
36
|
+
/**
|
|
37
|
+
* Defines whether to use 100% width or default width.
|
|
38
|
+
*
|
|
39
|
+
* __Note:__ Only to be used for special cases on the CustomState component.
|
|
40
|
+
*
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
fullWidth?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Smaller icon and headline size.
|
|
46
|
+
*
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
condensed?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Defines where the panel is aligned.
|
|
52
|
+
*
|
|
53
|
+
* Possible values are:
|
|
54
|
+
*
|
|
55
|
+
* - `'left'`
|
|
56
|
+
* - `'center'`
|
|
57
|
+
* - `'right'`
|
|
58
|
+
*
|
|
59
|
+
* @default 'center'
|
|
60
|
+
*/
|
|
61
|
+
alignment?: TextAlignment;
|
|
62
|
+
/**
|
|
63
|
+
* Optional class names for the wrapper.
|
|
64
|
+
*/
|
|
65
|
+
outerClassName?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Optional class names for the content.
|
|
68
|
+
*/
|
|
69
|
+
innerClassName?: string;
|
|
70
|
+
};
|
|
3
71
|
export type CustomStateProps = BaseStateProps;
|
|
4
72
|
declare const CustomState: (props: PropsWithChildren<CustomStateProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
73
|
export default CustomState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import s from "classnames";
|
|
3
2
|
import { isEmpty as N } from "es-toolkit/compat";
|
|
3
|
+
import s from "../../utils/classNames.js";
|
|
4
4
|
import r from "./StateButton.js";
|
|
5
5
|
import g from "./StateIcon.js";
|
|
6
6
|
import { hasPaddingClass as x } from "../../utils/hasUtilityClass.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomState.js","sources":["../../../src/components/states/CustomState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"CustomState.js","sources":["../../../src/components/states/CustomState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport { isEmpty } from 'es-toolkit/compat';\n\nimport classNames from '../../utils/classNames';\nimport StateButton, { type StateButtonProps } from './StateButton';\nimport StateIcon from './StateIcon';\nimport type { TextAlignment } from '../../values/TextAlignment';\nimport type { StateIconProps } from './StateIcon';\nimport { hasPaddingClass } from '../../utils/hasUtilityClass';\n\nexport type BaseStateProps = {\n /**\n * The icon to be shown.\n *\n * Default icons are defined for all states.\n */\n icon?: string;\n\n /**\n * List of icons to show instead a single icon.\n *\n * @default []\n */\n icons?: StateIconProps[];\n\n /**\n * Custom Image if needed.\n */\n image?: React.ReactNode;\n\n /**\n * The headline to be shown.\n */\n headline?: string | React.ReactNode;\n\n /**\n * The text to display.\n */\n message?: string | React.ReactNode;\n\n /**\n * Definitions for the buttons to show.\n *\n * @default []\n */\n buttons?: StateButtonProps[];\n\n /**\n * Defines whether to use 100% width or default width.\n *\n * __Note:__ Only to be used for special cases on the CustomState component.\n *\n * @default false\n */\n fullWidth?: boolean;\n\n /**\n * Smaller icon and headline size.\n *\n * @default false\n */\n condensed?: boolean;\n\n /**\n * Defines where the panel is aligned.\n *\n * Possible values are:\n *\n * - `'left'`\n * - `'center'`\n * - `'right'`\n *\n * @default 'center'\n */\n alignment?: TextAlignment;\n\n /**\n * Optional class names for the wrapper.\n */\n outerClassName?: string;\n\n /**\n * Optional class names for the content.\n */\n innerClassName?: string;\n};\n\nconst justify: Record<TextAlignment, string> = {\n left: 'justify-content-start',\n center: 'justify-content-center',\n right: 'justify-content-end',\n};\n\nconst renderButtons = (buttons: StateButtonProps[]) => {\n if (isEmpty(buttons)) {\n return;\n }\n\n if (buttons.length === 1) {\n return (\n <div className='btn-toolbar margin-top-20'>\n <StateButton {...buttons[0]} />\n </div>\n );\n }\n\n if (buttons.length === 2) {\n return (\n <div className='btn-toolbar margin-top-20 justify-content-center-xs'>\n {buttons.map((buttonProps, index) => (\n <StateButton key={index} {...buttonProps} />\n ))}\n </div>\n );\n }\n\n return (\n <>\n <div className='btn-toolbar margin-top-20 justify-content-center-xs'>\n <StateButton key='1' {...buttons[0]} />\n <StateButton key='2' {...buttons[1]} />\n </div>\n <div className='btn-toolbar'>\n {buttons.map((buttonProps, index) => {\n return index > 1 && <StateButton key={index} {...buttonProps} />;\n })}\n </div>\n </>\n );\n};\n\nexport type CustomStateProps = BaseStateProps;\n\nconst CustomState = (props: PropsWithChildren<CustomStateProps>) => {\n const {\n icon,\n icons = [],\n image,\n headline,\n message,\n buttons = [],\n alignment = 'center',\n fullWidth = false,\n condensed = false,\n outerClassName = '',\n innerClassName = '',\n children,\n ...remainingProps\n } = props;\n\n const wrapperClasses = classNames(\n 'margin-0',\n 'width-100pct',\n !fullWidth && 'max-width-600',\n 'panel-default',\n 'panel',\n !hasPaddingClass(outerClassName) ? (condensed ? 'padding-10' : 'padding-15') : '',\n outerClassName\n );\n\n const innerClassNames = classNames(\n 'display-flex',\n 'flex-column',\n 'align-items-center',\n 'text-center',\n !hasPaddingClass(innerClassName) ? (condensed ? 'padding-15' : 'padding-25') : '',\n innerClassName\n );\n\n const iconClasses = classNames(condensed ? 'text-size-16 margin-bottom-10' : 'text-size-h2 margin-bottom-20');\n\n const iconsClasses = classNames(\n condensed ? 'text-size-16 margin-bottom-10' : 'text-size-h2 margin-bottom-20',\n 'display-flex',\n 'align-items-center',\n 'max-width-100pct'\n );\n\n const headlineClassNames = classNames(\n condensed ? 'text-size-h4' : 'text-size-h3 text-size-h2-xl',\n 'line-height-125rel',\n 'text-color-dark',\n 'text-medium',\n 'width-500',\n 'max-width-100pct',\n 'text-wrap-balance'\n );\n\n const renderIcon = (\n <>\n {icon && (\n <div className={iconClasses}>\n <StateIcon name={icon} />\n </div>\n )}\n </>\n );\n\n const renderIcons = (\n <div className={iconsClasses}>\n {icons.map((iconProps, index) => (\n <StateIcon key={index} {...iconProps} />\n ))}\n </div>\n );\n\n const renderChildren = <div className='width-500 max-width-100pct margin-top-25'>{children}</div>;\n\n const renderHeadline = <div className={headlineClassNames}>{headline}</div>;\n\n const renderMessage = (\n <div className='text-color-dark margin-top-15 width-500 max-width-100pct text-wrap-balance'>{message}</div>\n );\n\n const singleOrMultiIcon = isEmpty(icons) ? renderIcon : renderIcons;\n\n const imageOrIcon = image ? image : singleOrMultiIcon;\n\n return (\n <div className={`display-flex ${justify[alignment]} max-width-100pct`} {...remainingProps}>\n <div className={wrapperClasses}>\n <div className={innerClassNames}>\n {imageOrIcon}\n {headline && renderHeadline}\n {message && renderMessage}\n {renderButtons(buttons)}\n {children && renderChildren}\n </div>\n </div>\n </div>\n );\n};\n\nexport default CustomState;\n"],"names":["justify","renderButtons","buttons","isEmpty","jsx","StateButton","buttonProps","index","jsxs","Fragment","CustomState","props","icon","icons","image","headline","message","alignment","fullWidth","condensed","outerClassName","innerClassName","children","remainingProps","wrapperClasses","classNames","hasPaddingClass","innerClassNames","iconClasses","iconsClasses","headlineClassNames","renderIcon","StateIcon","renderIcons","iconProps","renderChildren","renderHeadline","renderMessage","singleOrMultiIcon","imageOrIcon"],"mappings":";;;;;;AAuFA,MAAMA,IAAyC;AAAA,EAC3C,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACX,GAEMC,IAAgB,CAACC,MAAgC;AACnD,MAAI,CAAAC,EAAQD,CAAO;AAInB,WAAIA,EAAQ,WAAW,IAEf,gBAAAE,EAAC,OAAA,EAAI,WAAU,6BACX,UAAA,gBAAAA,EAACC,KAAa,GAAGH,EAAQ,CAAC,EAAA,CAAG,EAAA,CACjC,IAIJA,EAAQ,WAAW,IAEf,gBAAAE,EAAC,OAAA,EAAI,WAAU,uDACV,YAAQ,IAAI,CAACE,GAAaC,wBACtBF,GAAA,EAAyB,GAAGC,KAAXC,CAAwB,CAC7C,GACL,IAKJ,gBAAAC,EAAAC,GAAA,EACI,UAAA;AAAA,MAAA,gBAAAD,EAAC,OAAA,EAAI,WAAU,uDACX,UAAA;AAAA,QAAA,gBAAAJ,EAACC,GAAA,EAAqB,GAAGH,EAAQ,CAAC,KAAjB,GAAoB;AAAA,0BACpCG,GAAA,EAAqB,GAAGH,EAAQ,CAAC,KAAjB,GAAoB;AAAA,MAAA,GACzC;AAAA,MACA,gBAAAE,EAAC,SAAI,WAAU,eACV,YAAQ,IAAI,CAACE,GAAaC,MAChBA,IAAQ,KAAK,gBAAAH,EAACC,GAAA,EAAyB,GAAGC,KAAXC,CAAwB,CACjE,EAAA,CACL;AAAA,IAAA,GACJ;AAER,GAIMG,IAAc,CAACC,MAA+C;AAChE,QAAM;AAAA,IACF,MAAAC;AAAA,IACA,OAAAC,IAAQ,CAAA;AAAA,IACR,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAd,IAAU,CAAA;AAAA,IACV,WAAAe,IAAY;AAAA,IACZ,WAAAC,IAAY;AAAA,IACZ,WAAAC,IAAY;AAAA,IACZ,gBAAAC,IAAiB;AAAA,IACjB,gBAAAC,IAAiB;AAAA,IACjB,UAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACHZ,GAEEa,IAAiBC;AAAA,IACnB;AAAA,IACA;AAAA,IACA,CAACP,KAAa;AAAA,IACd;AAAA,IACA;AAAA,IACCQ,EAAgBN,CAAc,IAAgD,KAA3CD,IAAY,eAAe;AAAA,IAC/DC;AAAA,EAAA,GAGEO,IAAkBF;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACCC,EAAgBL,CAAc,IAAgD,KAA3CF,IAAY,eAAe;AAAA,IAC/DE;AAAA,EAAA,GAGEO,IAAcH,EAAWN,IAAY,kCAAkC,+BAA+B,GAEtGU,IAAeJ;AAAA,IACjBN,IAAY,kCAAkC;AAAA,IAC9C;AAAA,IACA;AAAA,IACA;AAAA,EAAA,GAGEW,IAAqBL;AAAA,IACvBN,IAAY,iBAAiB;AAAA,IAC7B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,GAGEY,IACF,gBAAA3B,EAAAK,GAAA,EACK,UAAAG,KACG,gBAAAR,EAAC,OAAA,EAAI,WAAWwB,GACZ,UAAA,gBAAAxB,EAAC4B,GAAA,EAAU,MAAMpB,EAAA,CAAM,EAAA,CAC3B,GAER,GAGEqB,IACF,gBAAA7B,EAAC,OAAA,EAAI,WAAWyB,GACX,YAAM,IAAI,CAACK,GAAW3B,wBAClByB,GAAA,EAAuB,GAAGE,KAAX3B,CAAsB,CACzC,GACL,GAGE4B,IAAiB,gBAAA/B,EAAC,OAAA,EAAI,WAAU,4CAA4C,UAAAkB,GAAS,GAErFc,IAAiB,gBAAAhC,EAAC,OAAA,EAAI,WAAW0B,GAAqB,UAAAf,GAAS,GAE/DsB,IACF,gBAAAjC,EAAC,OAAA,EAAI,WAAU,8EAA8E,UAAAY,GAAQ,GAGnGsB,IAAoBnC,EAAQU,CAAK,IAAIkB,IAAaE,GAElDM,IAAczB,KAAgBwB;AAEpC,2BACK,OAAA,EAAI,WAAW,gBAAgBtC,EAAQiB,CAAS,CAAC,qBAAsB,GAAGM,GACvE,4BAAC,OAAA,EAAI,WAAWC,GACZ,UAAA,gBAAAhB,EAAC,OAAA,EAAI,WAAWmB,GACX,UAAA;AAAA,IAAAY;AAAA,IACAxB,KAAYqB;AAAA,IACZpB,KAAWqB;AAAA,IACXpC,EAAcC,CAAO;AAAA,IACrBoB,KAAYa;AAAA,EAAA,EAAA,CACjB,GACJ,GACJ;AAER;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BaseStateProps } from './
|
|
2
|
+
import { BaseStateProps } from './CustomState';
|
|
3
3
|
export type EmptyStateProps = BaseStateProps;
|
|
4
4
|
declare const EmptyState: (props: PropsWithChildren<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default EmptyState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.js","sources":["../../../src/components/states/EmptyState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState
|
|
1
|
+
{"version":3,"file":"EmptyState.js","sources":["../../../src/components/states/EmptyState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState, { type BaseStateProps } from './CustomState';\n\nexport type EmptyStateProps = BaseStateProps;\n\nconst EmptyState = (props: PropsWithChildren<EmptyStateProps>) => {\n const { icon = 'rioglyph-empty', ...remainingProps } = props;\n return <CustomState icon={icon} {...remainingProps} />;\n};\n\nexport default EmptyState;\n"],"names":["EmptyState","props","icon","remainingProps","jsx","CustomState"],"mappings":";;AAMA,MAAMA,IAAa,CAACC,MAA8C;AAC9D,QAAM,EAAE,MAAAC,IAAO,kBAAkB,GAAGC,MAAmBF;AACvD,SAAO,gBAAAG,EAACC,GAAA,EAAY,MAAAH,GAAa,GAAGC,EAAA,CAAgB;AACxD;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BaseStateProps } from './
|
|
2
|
+
import { BaseStateProps } from './CustomState';
|
|
3
3
|
export type ErrorStateProps = BaseStateProps;
|
|
4
4
|
declare const ErrorState: (props: PropsWithChildren<ErrorStateProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default ErrorState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorState.js","sources":["../../../src/components/states/ErrorState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState
|
|
1
|
+
{"version":3,"file":"ErrorState.js","sources":["../../../src/components/states/ErrorState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState, { type BaseStateProps } from './CustomState';\n\nexport type ErrorStateProps = BaseStateProps;\n\nconst ErrorState = (props: PropsWithChildren<ErrorStateProps>) => {\n const { icon = 'rioglyph-truck-breakdown', ...remainingProps } = props;\n return <CustomState icon={icon} {...remainingProps} />;\n};\n\nexport default ErrorState;\n"],"names":["ErrorState","props","icon","remainingProps","jsx","CustomState"],"mappings":";;AAMA,MAAMA,IAAa,CAACC,MAA8C;AAC9D,QAAM,EAAE,MAAAC,IAAO,4BAA4B,GAAGC,MAAmBF;AACjE,SAAO,gBAAAG,EAACC,GAAA,EAAY,MAAAH,GAAa,GAAGC,EAAA,CAAgB;AACxD;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BaseStateProps } from './
|
|
2
|
+
import { BaseStateProps } from './CustomState';
|
|
3
3
|
export type ForbiddenStateProps = BaseStateProps;
|
|
4
4
|
declare const ForbiddenState: (props: PropsWithChildren<ForbiddenStateProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default ForbiddenState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForbiddenState.js","sources":["../../../src/components/states/ForbiddenState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState
|
|
1
|
+
{"version":3,"file":"ForbiddenState.js","sources":["../../../src/components/states/ForbiddenState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState, { type BaseStateProps } from './CustomState';\n\nexport type ForbiddenStateProps = BaseStateProps;\n\nconst ForbiddenState = (props: PropsWithChildren<ForbiddenStateProps>) => {\n const { icon = 'rioglyph-ban-circle', ...remainingProps } = props;\n return <CustomState icon={icon} {...remainingProps} />;\n};\n\nexport default ForbiddenState;\n"],"names":["ForbiddenState","props","icon","remainingProps","jsx","CustomState"],"mappings":";;AAMA,MAAMA,IAAiB,CAACC,MAAkD;AACtE,QAAM,EAAE,MAAAC,IAAO,uBAAuB,GAAGC,MAAmBF;AAC5D,SAAO,gBAAAG,EAACC,GAAA,EAAY,MAAAH,GAAa,GAAGC,EAAA,CAAgB;AACxD;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BaseStateProps } from './
|
|
2
|
+
import { BaseStateProps } from './CustomState';
|
|
3
3
|
export type MaintenanceStateProps = BaseStateProps;
|
|
4
4
|
declare const MaintenanceState: (props: PropsWithChildren<MaintenanceStateProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default MaintenanceState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaintenanceState.js","sources":["../../../src/components/states/MaintenanceState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState
|
|
1
|
+
{"version":3,"file":"MaintenanceState.js","sources":["../../../src/components/states/MaintenanceState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState, { type BaseStateProps } from './CustomState';\n\nexport type MaintenanceStateProps = BaseStateProps;\n\nconst MaintenanceState = (props: PropsWithChildren<MaintenanceStateProps>) => {\n const { icon = 'rioglyph-wrench', ...remainingProps } = props;\n return <CustomState icon={icon} {...remainingProps} />;\n};\n\nexport default MaintenanceState;\n"],"names":["MaintenanceState","props","icon","remainingProps","jsx","CustomState"],"mappings":";;AAMA,MAAMA,IAAmB,CAACC,MAAoD;AAC1E,QAAM,EAAE,MAAAC,IAAO,mBAAmB,GAAGC,MAAmBF;AACxD,SAAO,gBAAAG,EAACC,GAAA,EAAY,MAAAH,GAAa,GAAGC,EAAA,CAAgB;AACxD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotBookedState.js","sources":["../../../src/components/states/NotBookedState.tsx"],"sourcesContent":["import type React from 'react';\nimport type { PropsWithChildren } from 'react';\nimport { isArray, isEmpty } from 'es-toolkit/compat';\n\nimport CustomState
|
|
1
|
+
{"version":3,"file":"NotBookedState.js","sources":["../../../src/components/states/NotBookedState.tsx"],"sourcesContent":["import type React from 'react';\nimport type { PropsWithChildren } from 'react';\nimport { isArray, isEmpty } from 'es-toolkit/compat';\n\nimport CustomState, { type BaseStateProps } from './CustomState';\n\nexport type NotBookedStateProps = BaseStateProps & {\n /**\n * List of features.\n */\n features?: string | React.ReactNode[];\n};\n\nconst NotBookedState = (props: PropsWithChildren<NotBookedStateProps>) => {\n const { message, features, icon = 'rioglyph-stars', ...remainingProps } = props;\n\n const combinedMessages = (\n <>\n {message && <div className='text-medium margin-bottom-20'>{message}</div>}\n {features && isArray(features) && !isEmpty(features) && (\n <ul\n className='feature-list icon-list margin-x-10pct-ls margin-y-10 text-size-12 text-size-14-sm'\n id='features'\n >\n {features.map((feature, index) => (\n <li\n key={index}\n className='padding-x-15 bg-lightest rounded rounded-large border-none display-flex align-items-center gap-2 text-left'\n >\n <span className='rioglyph rioglyph-ok text-color-primary' />\n <span className='text-color-darker'>{feature}</span>\n </li>\n ))}\n </ul>\n )}\n </>\n );\n\n return (\n <CustomState\n message={combinedMessages}\n icons={[{ name: icon, color: 'text-color-primary' }]}\n {...remainingProps}\n />\n );\n};\n\nexport default NotBookedState;\n"],"names":["NotBookedState","props","message","features","icon","remainingProps","combinedMessages","jsxs","Fragment","jsx","isArray","isEmpty","feature","index","CustomState"],"mappings":";;;AAaA,MAAMA,IAAiB,CAACC,MAAkD;AACtE,QAAM,EAAE,SAAAC,GAAS,UAAAC,GAAU,MAAAC,IAAO,kBAAkB,GAAGC,MAAmBJ,GAEpEK,IACF,gBAAAC,EAAAC,GAAA,EACK,UAAA;AAAA,IAAAN,KAAW,gBAAAO,EAAC,OAAA,EAAI,WAAU,gCAAgC,UAAAP,GAAQ;AAAA,IAClEC,KAAYO,EAAQP,CAAQ,KAAK,CAACQ,EAAQR,CAAQ,KAC/C,gBAAAM;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,WAAU;AAAA,QACV,IAAG;AAAA,QAEF,UAAAN,EAAS,IAAI,CAACS,GAASC,MACpB,gBAAAN;AAAA,UAAC;AAAA,UAAA;AAAA,YAEG,WAAU;AAAA,YAEV,UAAA;AAAA,cAAA,gBAAAE,EAAC,QAAA,EAAK,WAAU,0CAAA,CAA0C;AAAA,cAC1D,gBAAAA,EAAC,QAAA,EAAK,WAAU,qBAAqB,UAAAG,EAAA,CAAQ;AAAA,YAAA;AAAA,UAAA;AAAA,UAJxCC;AAAA,QAAA,CAMZ;AAAA,MAAA;AAAA,IAAA;AAAA,EACL,GAER;AAGJ,SACI,gBAAAJ;AAAA,IAACK;AAAA,IAAA;AAAA,MACG,SAASR;AAAA,MACT,OAAO,CAAC,EAAE,MAAMF,GAAM,OAAO,sBAAsB;AAAA,MAClD,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGhB;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BaseStateProps } from './
|
|
2
|
+
import { BaseStateProps } from './CustomState';
|
|
3
3
|
export type NotFoundStateProps = BaseStateProps;
|
|
4
4
|
declare const NotFoundState: (props: PropsWithChildren<NotFoundStateProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default NotFoundState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotFoundState.js","sources":["../../../src/components/states/NotFoundState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState
|
|
1
|
+
{"version":3,"file":"NotFoundState.js","sources":["../../../src/components/states/NotFoundState.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport CustomState, { type BaseStateProps } from './CustomState';\n\nexport type NotFoundStateProps = BaseStateProps;\n\nconst NotFoundState = (props: PropsWithChildren<NotFoundStateProps>) => {\n const { icon = 'rioglyph-looking-glass-man', ...remainingProps } = props;\n return <CustomState icon={icon} {...remainingProps} />;\n};\n\nexport default NotFoundState;\n"],"names":["NotFoundState","props","icon","remainingProps","jsx","CustomState"],"mappings":";;AAMA,MAAMA,IAAgB,CAACC,MAAiD;AACpE,QAAM,EAAE,MAAAC,IAAO,8BAA8B,GAAGC,MAAmBF;AACnE,SAAO,gBAAAG,EAACC,GAAA,EAAY,MAAAH,GAAa,GAAGC,EAAA,CAAgB;AACxD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StateButton.js","sources":["../../../src/components/states/StateButton.tsx"],"sourcesContent":["import type React from 'react';\nimport classNames from '
|
|
1
|
+
{"version":3,"file":"StateButton.js","sources":["../../../src/components/states/StateButton.tsx"],"sourcesContent":["import type React from 'react';\n\nimport classNames from '../../utils/classNames';\nimport type { BUTTON_STYLE } from '../../Button';\n\nexport type StateButtonProps = {\n /**\n * The button text.\n *\n * This can also be a node with an icon to be shown on the button.\n */\n text: string | React.ReactNode;\n\n /**\n * Callback fired after the component starts to collapse.\n *\n * @default () => {}\n */\n onClick?: VoidFunction;\n\n /**\n * Instead of a callback for the button you can specify a \"href\".\n *\n * This way it will render a link button instead.\n */\n href?: string;\n\n /**\n * The style of the button.\n *\n * @default 'primary'\n */\n bsStyle?: BUTTON_STYLE;\n\n /**\n * Additional classes assigned to the button.\n */\n className?: string;\n};\n\nconst StateButton = (props: StateButtonProps) => {\n const { text, bsStyle = 'primary', className, onClick = () => {}, href } = props;\n\n // In case a href is given, render a link instead\n if (href) {\n return (\n <a className={classNames('margin-top-15', className)} href={href} onClick={onClick}>\n {text}\n </a>\n );\n }\n\n const buttonClassNames = classNames('btn', 'margin-top-10', `btn-${bsStyle}`, className);\n\n return (\n <button className={buttonClassNames} type='button' onClick={onClick}>\n {text}\n </button>\n );\n};\n\nexport default StateButton;\n"],"names":["StateButton","props","text","bsStyle","className","onClick","href","jsx","classNames","buttonClassNames"],"mappings":";;AAwCA,MAAMA,IAAc,CAACC,MAA4B;AAC7C,QAAM,EAAE,MAAAC,GAAM,SAAAC,IAAU,WAAW,WAAAC,GAAW,SAAAC,IAAU,MAAM;AAAA,EAAC,GAAG,MAAAC,MAASL;AAG3E,MAAIK;AACA,WACI,gBAAAC,EAAC,OAAE,WAAWC,EAAW,iBAAiBJ,CAAS,GAAG,MAAAE,GAAY,SAAAD,GAC7D,UAAAH,EAAA,CACL;AAIR,QAAMO,IAAmBD,EAAW,OAAO,iBAAiB,OAAOL,CAAO,IAAIC,CAAS;AAEvF,2BACK,UAAA,EAAO,WAAWK,GAAkB,MAAK,UAAS,SAAAJ,GAC9C,UAAAH,GACL;AAER;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsWidget.js","sources":["../../../src/components/statsWidget/StatsWidget.tsx"],"sourcesContent":["import type { ComponentProps, MouseEventHandler, PropsWithChildren } from 'react';\nimport classNames from '
|
|
1
|
+
{"version":3,"file":"StatsWidget.js","sources":["../../../src/components/statsWidget/StatsWidget.tsx"],"sourcesContent":["import type { ComponentProps, MouseEventHandler, PropsWithChildren } from 'react';\n\nimport classNames from '../../utils/classNames';\nimport StatsWidgetHeader, { type StatsWidgetHeaderProps } from './StatsWidgetHeader';\nimport StatsWidgetBody, { type StatsWidgetBodyProps } from './StatsWidgetBody';\nimport StatsWidgetFooter, { type StatsWidgetFooterProps } from './StatsWidgetFooter';\n\nexport type StatsWidgetProps = ComponentProps<'div'> & {\n /**\n * Callback to reset the filter.\n */\n onFilterReset?: MouseEventHandler;\n\n /**\n * Defines whether a filter is active for this widget.\n *\n * @default false\n */\n hasFilter?: boolean;\n\n /**\n * Additional class names to be added to the element.\n */\n className?: string;\n};\n\n// re-export these because they're not exposed on root directly\nexport type { StatsWidgetHeaderProps, StatsWidgetBodyProps, StatsWidgetFooterProps };\n\nconst StatsWidget = (props: PropsWithChildren<StatsWidgetProps>) => {\n const { children, hasFilter = false, onFilterReset = () => {}, className, ...remainingProps } = props;\n\n const wrapperClasses = classNames('StatsWidget', className);\n\n return (\n <div {...remainingProps} className={wrapperClasses}>\n {hasFilter && (\n <span\n className={\n 'bg-light hover-bg-highlight display-flex justify-content-center align-items-center padding-2' +\n ' rounded-circle position-absolute top-15 right-15 display-block height-20 width-20' +\n ' cursor-pointer'\n }\n onClick={onFilterReset}\n >\n <span className='rioglyph rioglyph-revert text-color-white text-size-12' />\n </span>\n )}\n {children}\n </div>\n );\n};\n\nStatsWidget.Header = StatsWidgetHeader;\nStatsWidget.Body = StatsWidgetBody;\nStatsWidget.Footer = StatsWidgetFooter;\n\nexport default StatsWidget;\n"],"names":["StatsWidget","props","children","hasFilter","onFilterReset","className","remainingProps","wrapperClasses","classNames","jsxs","jsx","StatsWidgetHeader","StatsWidgetBody","StatsWidgetFooter"],"mappings":";;;;;AA6BA,MAAMA,IAAc,CAACC,MAA+C;AAChE,QAAM,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAO,eAAAC,IAAgB,MAAM;AAAA,EAAC,GAAG,WAAAC,GAAW,GAAGC,EAAA,IAAmBL,GAE1FM,IAAiBC,EAAW,eAAeH,CAAS;AAE1D,SACI,gBAAAI,EAAC,OAAA,EAAK,GAAGH,GAAgB,WAAWC,GAC/B,UAAA;AAAA,IAAAJ,KACG,gBAAAO;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,WACI;AAAA,QAIJ,SAASN;AAAA,QAET,UAAA,gBAAAM,EAAC,QAAA,EAAK,WAAU,yDAAA,CAAyD;AAAA,MAAA;AAAA,IAAA;AAAA,IAGhFR;AAAA,EAAA,GACL;AAER;AAEAF,EAAY,SAASW;AACrBX,EAAY,OAAOY;AACnBZ,EAAY,SAASa;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import r from "
|
|
2
|
+
import r from "../../utils/classNames.js";
|
|
3
3
|
const n = (e) => {
|
|
4
4
|
const { children: t, fullWidth: s = !1, className: i, ...l } = e, d = r("StatsWidget-body", s && "full-width", i);
|
|
5
5
|
return /* @__PURE__ */ o("div", { ...l, className: d, children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsWidgetBody.js","sources":["../../../src/components/statsWidget/StatsWidgetBody.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport classNames from '
|
|
1
|
+
{"version":3,"file":"StatsWidgetBody.js","sources":["../../../src/components/statsWidget/StatsWidgetBody.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport classNames from '../../utils/classNames';\n\nexport type StatsWidgetBodyProps = {\n /**\n * Whether to use flex space-between for StatsWidgetNumbers.\n *\n * @default false\n */\n fullWidth?: boolean;\n\n /**\n * Additional class names to be added to the element.\n */\n className?: string;\n};\n\nconst StatsWidgetBody = (props: PropsWithChildren<StatsWidgetBodyProps>) => {\n const { children, fullWidth = false, className, ...remainingProps } = props;\n\n const wrapperClasses = classNames('StatsWidget-body', fullWidth && 'full-width', className);\n\n return (\n <div {...remainingProps} className={wrapperClasses}>\n {fullWidth && <div className='StatsWidget-body-column-spacer invisible' />}\n {children}\n {fullWidth && <div className='StatsWidget-body-column-spacer invisible' />}\n </div>\n );\n};\n\nexport default StatsWidgetBody;\n"],"names":["StatsWidgetBody","props","children","fullWidth","className","remainingProps","wrapperClasses","classNames","jsxs","jsx"],"mappings":";;AAkBA,MAAMA,IAAkB,CAACC,MAAmD;AACxE,QAAM,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAO,WAAAC,GAAW,GAAGC,MAAmBJ,GAEhEK,IAAiBC,EAAW,oBAAoBJ,KAAa,cAAcC,CAAS;AAE1F,SACI,gBAAAI,EAAC,OAAA,EAAK,GAAGH,GAAgB,WAAWC,GAC/B,UAAA;AAAA,IAAAH,KAAa,gBAAAM,EAAC,OAAA,EAAI,WAAU,2CAAA,CAA2C;AAAA,IACvEP;AAAA,IACAC,KAAa,gBAAAM,EAAC,OAAA,EAAI,WAAU,2CAAA,CAA2C;AAAA,EAAA,GAC5E;AAER;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import i from "
|
|
2
|
+
import i from "../../utils/classNames.js";
|
|
3
3
|
const n = (s) => {
|
|
4
4
|
const { children: t, className: e, ...r } = s, a = i("StatsWidget-footer", e);
|
|
5
5
|
return /* @__PURE__ */ o("div", { ...r, className: a, children: t });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsWidgetFooter.js","sources":["../../../src/components/statsWidget/StatsWidgetFooter.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport classNames from '
|
|
1
|
+
{"version":3,"file":"StatsWidgetFooter.js","sources":["../../../src/components/statsWidget/StatsWidgetFooter.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport classNames from '../../utils/classNames';\n\nexport type StatsWidgetFooterProps = {\n /**\n * Additional class names to be added to the element.\n */\n className?: string;\n};\n\nconst StatsWidgetFooter = (props: PropsWithChildren<StatsWidgetFooterProps>) => {\n const { children, className, ...remainingProps } = props;\n\n const wrapperClasses = classNames('StatsWidget-footer', className);\n\n return (\n <div {...remainingProps} className={wrapperClasses}>\n {children}\n </div>\n );\n};\n\nexport default StatsWidgetFooter;\n"],"names":["StatsWidgetFooter","props","children","className","remainingProps","wrapperClasses","classNames"],"mappings":";;AAWA,MAAMA,IAAoB,CAACC,MAAqD;AAC5E,QAAM,EAAE,UAAAC,GAAU,WAAAC,GAAW,GAAGC,MAAmBH,GAE7CI,IAAiBC,EAAW,sBAAsBH,CAAS;AAEjE,2BACK,OAAA,EAAK,GAAGC,GAAgB,WAAWC,GAC/B,UAAAH,GACL;AAER;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import i from "
|
|
2
|
+
import i from "../../utils/classNames.js";
|
|
3
3
|
const d = (s) => {
|
|
4
4
|
const { children: e, className: a, ...r } = s, t = i("StatsWidget-header", a);
|
|
5
5
|
return /* @__PURE__ */ o("div", { ...r, className: t, children: e });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsWidgetHeader.js","sources":["../../../src/components/statsWidget/StatsWidgetHeader.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport classNames from '
|
|
1
|
+
{"version":3,"file":"StatsWidgetHeader.js","sources":["../../../src/components/statsWidget/StatsWidgetHeader.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport classNames from '../../utils/classNames';\n\nexport type StatsWidgetHeaderProps = {\n /**\n * Additional class names to be added to the element.\n */\n className?: string;\n};\n\nconst StatsWidgetHeader = (props: PropsWithChildren<StatsWidgetHeaderProps>) => {\n const { children, className, ...remainingProps } = props;\n\n const wrapperClasses = classNames('StatsWidget-header', className);\n\n return (\n <div {...remainingProps} className={wrapperClasses}>\n {children}\n </div>\n );\n};\n\nexport default StatsWidgetHeader;\n"],"names":["StatsWidgetHeader","props","children","className","remainingProps","wrapperClasses","classNames"],"mappings":";;AAWA,MAAMA,IAAoB,CAACC,MAAqD;AAC5E,QAAM,EAAE,UAAAC,GAAU,WAAAC,GAAW,GAAGC,MAAmBH,GAE7CI,IAAiBC,EAAW,sBAAsBH,CAAS;AAEjE,2BACK,OAAA,EAAK,GAAGC,GAAgB,WAAWC,GAC/B,UAAAH,GACL;AAER;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import n from "
|
|
2
|
+
import n from "../../utils/classNames.js";
|
|
3
3
|
const b = (l) => {
|
|
4
4
|
const { value: r = 0, total: e, label: a, className: i, clickable: c = !1, onClick: m = () => {
|
|
5
|
-
}, ...d } = l, o = n("StatsWidgetNumber",
|
|
5
|
+
}, ...d } = l, o = n("StatsWidgetNumber", c && "cursor-pointer", i);
|
|
6
6
|
return /* @__PURE__ */ t("div", { ...d, onClick: m, className: o, children: [
|
|
7
7
|
/* @__PURE__ */ t("div", { className: "StatsWidgetNumber-counter", children: [
|
|
8
8
|
/* @__PURE__ */ s("div", { className: "StatsWidgetNumber-value", children: r }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsWidgetNumber.js","sources":["../../../src/components/statsWidget/StatsWidgetNumber.tsx"],"sourcesContent":["import type { ReactNode, MouseEventHandler } from 'react';\nimport classNames from '
|
|
1
|
+
{"version":3,"file":"StatsWidgetNumber.js","sources":["../../../src/components/statsWidget/StatsWidgetNumber.tsx"],"sourcesContent":["import type { ReactNode, MouseEventHandler } from 'react';\n\nimport classNames from '../../utils/classNames';\n\nexport type StatsWidgetNumberProps = {\n /**\n * The value to be shown.\n *\n * @default 0\n */\n value: string | number | ReactNode;\n\n /**\n * The total value to be shown i.e. in combination with an active filter.\n */\n total?: string | number | ReactNode;\n\n /**\n * The label shown below the number.\n */\n label?: string | ReactNode;\n\n /**\n * Defines whether the number is clickable i.e. in combination with a filter.\n *\n * @default false\n */\n clickable?: boolean;\n\n /**\n * Callback for when the user clicks the number widget.\n */\n onClick?: MouseEventHandler;\n\n /**\n * Additional class names to be added to the element.\n */\n className?: string;\n};\n\nconst StatsWidgetNumber = (props: StatsWidgetNumberProps) => {\n const { value = 0, total, label, className, clickable = false, onClick = () => {}, ...remainingProps } = props;\n\n const wrapperClasses = classNames('StatsWidgetNumber', clickable && 'cursor-pointer', className);\n\n return (\n <div {...remainingProps} onClick={onClick} className={wrapperClasses}>\n <div className='StatsWidgetNumber-counter'>\n <div className='StatsWidgetNumber-value'>{value}</div>\n {(total || total === 0) && <div className='StatsWidgetNumber-total'>{total}</div>}\n </div>\n {label && <div className='StatsWidgetNumber-label'>{label}</div>}\n </div>\n );\n};\n\nexport default StatsWidgetNumber;\n"],"names":["StatsWidgetNumber","props","value","total","label","className","clickable","onClick","remainingProps","wrapperClasses","classNames","jsxs","jsx"],"mappings":";;AAwCA,MAAMA,IAAoB,CAACC,MAAkC;AACzD,QAAM,EAAE,OAAAC,IAAQ,GAAG,OAAAC,GAAO,OAAAC,GAAO,WAAAC,GAAW,WAAAC,IAAY,IAAO,SAAAC,IAAU,MAAM;AAAA,EAAC,GAAG,GAAGC,EAAA,IAAmBP,GAEnGQ,IAAiBC,EAAW,qBAAqBJ,KAAa,kBAAkBD,CAAS;AAE/F,2BACK,OAAA,EAAK,GAAGG,GAAgB,SAAAD,GAAkB,WAAWE,GAClD,UAAA;AAAA,IAAA,gBAAAE,EAAC,OAAA,EAAI,WAAU,6BACX,UAAA;AAAA,MAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,2BAA2B,UAAAV,GAAM;AAAA,OAC9CC,KAASA,MAAU,wBAAO,OAAA,EAAI,WAAU,2BAA2B,UAAAA,EAAA,CAAM;AAAA,IAAA,GAC/E;AAAA,IACCC,KAAS,gBAAAQ,EAAC,OAAA,EAAI,WAAU,2BAA2B,UAAAR,EAAA,CAAM;AAAA,EAAA,GAC9D;AAER;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import o from "
|
|
2
|
+
import o from "../../utils/classNames.js";
|
|
3
3
|
const p = (s) => {
|
|
4
4
|
const { className: a, ...t } = s, e = o("StatsWidget-body-column-spacer", a);
|
|
5
5
|
return /* @__PURE__ */ r("div", { ...t, className: e });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsWidgetSpacer.js","sources":["../../../src/components/statsWidget/StatsWidgetSpacer.tsx"],"sourcesContent":["import classNames from '
|
|
1
|
+
{"version":3,"file":"StatsWidgetSpacer.js","sources":["../../../src/components/statsWidget/StatsWidgetSpacer.tsx"],"sourcesContent":["import classNames from '../../utils/classNames';\n\nexport type StatsWidgetSpacerProps = {\n /**\n * Additional class names to be added to the element.\n */\n className?: string;\n};\n\nconst StatsWidgetSpacer = (props: StatsWidgetSpacerProps) => {\n const { className, ...remainingProps } = props;\n\n const wrapperClasses = classNames('StatsWidget-body-column-spacer', className);\n\n return <div {...remainingProps} className={wrapperClasses} />;\n};\n\nexport default StatsWidgetSpacer;\n"],"names":["StatsWidgetSpacer","props","className","remainingProps","wrapperClasses","classNames","jsx"],"mappings":";;AASA,MAAMA,IAAoB,CAACC,MAAkC;AACzD,QAAM,EAAE,WAAAC,GAAW,GAAGC,EAAA,IAAmBF,GAEnCG,IAAiBC,EAAW,kCAAkCH,CAAS;AAE7E,SAAO,gBAAAI,EAAC,OAAA,EAAK,GAAGH,GAAgB,WAAWC,GAAgB;AAC/D;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import i from "
|
|
2
|
+
import i from "../../utils/classNames.js";
|
|
3
3
|
const c = (s) => {
|
|
4
4
|
const { children: a, className: r, ...t } = s, e = i("StatsWidget-wrapper", r);
|
|
5
5
|
return /* @__PURE__ */ o("div", { ...t, className: e, children: a });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsWidgets.js","sources":["../../../src/components/statsWidget/StatsWidgets.tsx"],"sourcesContent":["import type { ComponentProps, PropsWithChildren } from 'react';\nimport classNames from '
|
|
1
|
+
{"version":3,"file":"StatsWidgets.js","sources":["../../../src/components/statsWidget/StatsWidgets.tsx"],"sourcesContent":["import type { ComponentProps, PropsWithChildren } from 'react';\n\nimport classNames from '../../utils/classNames';\n\nexport type StatsWidgetsProps = ComponentProps<'div'> & {\n /**\n * Additional class names to be added to the element.\n */\n className?: string;\n};\n\nconst StatsWidgets = (props: PropsWithChildren<StatsWidgetsProps>) => {\n const { children, className, ...remainingProps } = props;\n\n const wrapperClasses = classNames('StatsWidget-wrapper', className);\n\n return (\n <div {...remainingProps} className={wrapperClasses}>\n {children}\n </div>\n );\n};\n\nexport default StatsWidgets;\n"],"names":["StatsWidgets","props","children","className","remainingProps","wrapperClasses","classNames"],"mappings":";;AAWA,MAAMA,IAAe,CAACC,MAAgD;AAClE,QAAM,EAAE,UAAAC,GAAU,WAAAC,GAAW,GAAGC,MAAmBH,GAE7CI,IAAiBC,EAAW,uBAAuBH,CAAS;AAElE,2BACK,OAAA,EAAK,GAAGC,GAAgB,WAAWC,GAC/B,UAAAH,GACL;AAER;"}
|
|
@@ -1,4 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export type StatusBarIcon = {
|
|
2
|
+
/**
|
|
3
|
+
* The class name of the icon i.e. "rioglyph-cruise-control".
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* The position of the icon.
|
|
8
|
+
*
|
|
9
|
+
* @default 'left'
|
|
10
|
+
*/
|
|
11
|
+
alignment?: 'left' | 'right';
|
|
12
|
+
/**
|
|
13
|
+
* The text color class name for the icon.
|
|
14
|
+
*
|
|
15
|
+
* @default 'text-color-gray'
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional class names for the icon.
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
export type StatusBarLabel = {
|
|
24
|
+
/**
|
|
25
|
+
* The label content.
|
|
26
|
+
*/
|
|
27
|
+
value: string | React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* The position of the icon.
|
|
30
|
+
*
|
|
31
|
+
* @default 'right'
|
|
32
|
+
*/
|
|
33
|
+
alignment?: 'left' | 'top' | 'right';
|
|
34
|
+
/**
|
|
35
|
+
* The text weight of the label.
|
|
36
|
+
*
|
|
37
|
+
* @default 'bold'
|
|
38
|
+
*/
|
|
39
|
+
weight?: 'light' | 'bold';
|
|
40
|
+
/**
|
|
41
|
+
* The text color class name for the label.
|
|
42
|
+
*
|
|
43
|
+
* @default 'text-color-gray'
|
|
44
|
+
*/
|
|
45
|
+
color?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Optional class names for the label.
|
|
48
|
+
*/
|
|
49
|
+
className?: string;
|
|
50
|
+
};
|
|
51
|
+
export type StatusBarProgress = {
|
|
52
|
+
/**
|
|
53
|
+
* The percentage of the progress.
|
|
54
|
+
*
|
|
55
|
+
* @default 0
|
|
56
|
+
*/
|
|
57
|
+
percentage?: number;
|
|
58
|
+
/**
|
|
59
|
+
* The color class name for the label.
|
|
60
|
+
*
|
|
61
|
+
* @default 'progress-bar-info'
|
|
62
|
+
*/
|
|
63
|
+
color?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Optional tooltip content to be shown for the progress bar.
|
|
66
|
+
*/
|
|
67
|
+
tooltip?: string | React.ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* The position of the tooltip for the progress bar.
|
|
70
|
+
*
|
|
71
|
+
* @default 'top'
|
|
72
|
+
*/
|
|
73
|
+
tooltipPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
74
|
+
/**
|
|
75
|
+
* The delay in milliseconds for when the tooltip is shown when hovering the progress bar.
|
|
76
|
+
*
|
|
77
|
+
* @default 50
|
|
78
|
+
*/
|
|
79
|
+
tooltipDelay?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Optional class names for the progress bar.
|
|
82
|
+
*/
|
|
83
|
+
className?: string;
|
|
84
|
+
};
|
|
85
|
+
export type StatusBarProps = {
|
|
86
|
+
/**
|
|
87
|
+
* The icon to be shown next to the progress bar.
|
|
88
|
+
*/
|
|
89
|
+
icon?: StatusBarIcon;
|
|
90
|
+
/**
|
|
91
|
+
* The label to be shown for the progress bar.
|
|
92
|
+
*/
|
|
93
|
+
label?: StatusBarLabel;
|
|
94
|
+
/**
|
|
95
|
+
* List of progress bars which will be stacked in given order if there are multiple.
|
|
96
|
+
*/
|
|
97
|
+
progress?: StatusBarProgress[];
|
|
98
|
+
/**
|
|
99
|
+
* The size of the icon and progress bar.
|
|
100
|
+
*
|
|
101
|
+
* Possible values are:
|
|
102
|
+
*
|
|
103
|
+
* - `'small'`
|
|
104
|
+
* - `'large'`
|
|
105
|
+
*
|
|
106
|
+
* @default 'small'
|
|
107
|
+
*/
|
|
108
|
+
size?: 'small' | 'large';
|
|
109
|
+
/**
|
|
110
|
+
* Uses a divider for multiple progress bars when defined.
|
|
111
|
+
*
|
|
112
|
+
* @default true
|
|
113
|
+
*/
|
|
114
|
+
useProgressDivider?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Optional class names for the wrapper element.
|
|
117
|
+
*/
|
|
118
|
+
className?: string;
|
|
119
|
+
};
|
|
120
|
+
export type IconWithDefaults = StatusBarIcon & {
|
|
121
|
+
alignment: 'left' | 'right';
|
|
122
|
+
};
|
|
123
|
+
export type LabelWithDefaults = StatusBarLabel & {
|
|
124
|
+
alignment: 'left' | 'top' | 'right';
|
|
125
|
+
weight: 'light' | 'bold';
|
|
126
|
+
};
|
|
3
127
|
declare const StatusBar: (props: StatusBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
128
|
export default StatusBar;
|