@redocly/theme 0.18.3 → 0.18.4-patch.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/lib/components/Breadcrumbs/Breadcrumb.js +2 -5
- package/lib/components/Breadcrumbs/Breadcrumbs.js +6 -2
- package/lib/components/Breadcrumbs/index.d.ts +1 -0
- package/lib/components/Breadcrumbs/index.js +1 -0
- package/lib/components/Breadcrumbs/styledVariables.d.ts +1 -0
- package/lib/components/Breadcrumbs/styledVariables.js +20 -0
- package/lib/components/Button/Button.d.ts +6 -3
- package/lib/components/Button/Button.js +41 -41
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Button/styledVariables.d.ts +1 -0
- package/lib/components/Button/styledVariables.js +107 -0
- package/lib/components/Catalog/Catalog.d.ts +6 -0
- package/lib/components/Catalog/Catalog.js +112 -102
- package/lib/components/Catalog/CatalogCard.js +91 -58
- package/lib/components/Catalog/index.d.ts +4 -3
- package/lib/components/Catalog/index.js +4 -3
- package/lib/components/Catalog/styledVariables.d.ts +1 -0
- package/lib/components/Catalog/styledVariables.js +95 -0
- package/lib/components/CodeBlock/CodeBlockContainer.js +38 -10
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +3 -4
- package/lib/components/CodeBlock/CodeBlockControlButton.js +5 -19
- package/lib/components/CodeBlock/CodeBlockControls.js +8 -5
- package/lib/components/CodeBlock/index.d.ts +1 -0
- package/lib/components/CodeBlock/index.js +1 -0
- package/lib/components/CodeBlock/styledVariables.d.ts +1 -0
- package/lib/components/CodeBlock/styledVariables.js +92 -0
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +0 -1
- package/lib/components/Dropdown/Dropdown.d.ts +9 -3
- package/lib/components/Dropdown/Dropdown.js +7 -4
- package/lib/components/Dropdown/index.d.ts +1 -0
- package/lib/components/Dropdown/index.js +1 -0
- package/lib/components/Dropdown/styledVariables.d.ts +1 -0
- package/lib/components/Dropdown/styledVariables.js +30 -0
- package/lib/components/EditPageButton/EditPageButton.d.ts +1 -3
- package/lib/components/EditPageButton/EditPageButton.js +17 -8
- package/lib/components/Feedback/Comment.js +5 -0
- package/lib/components/Feedback/Rating.js +5 -1
- package/lib/components/Feedback/Reasons.js +6 -1
- package/lib/components/Feedback/Sentiment.js +5 -0
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.d.ts +3 -1
- package/lib/components/Filter/Filter.js +113 -80
- package/lib/components/Filter/FilterContent.d.ts +13 -0
- package/lib/components/Filter/FilterContent.js +60 -0
- package/lib/components/Filter/FilterPopover.d.ts +13 -0
- package/lib/components/Filter/FilterPopover.js +109 -0
- package/lib/components/Filter/FilterTag.d.ts +7 -0
- package/lib/components/Filter/FilterTag.js +33 -0
- package/lib/components/Filter/FilterTags.d.ts +7 -0
- package/lib/components/Filter/FilterTags.js +29 -0
- package/lib/components/Filter/index.d.ts +2 -0
- package/lib/components/Filter/index.js +2 -0
- package/lib/components/Filter/styledVariables.d.ts +1 -0
- package/lib/components/Filter/styledVariables.js +112 -0
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +4 -3
- package/lib/components/Footer/Footer.js +28 -10
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +57 -63
- package/lib/components/Footer/FooterColumns.js +6 -4
- package/lib/components/Footer/FooterCopyright.js +11 -6
- package/lib/components/Footer/index.d.ts +1 -0
- package/lib/components/Footer/index.js +1 -0
- package/lib/components/Footer/styledVariables.d.ts +1 -0
- package/lib/components/Footer/styledVariables.js +61 -0
- package/lib/components/Image/Image.d.ts +9 -0
- package/lib/components/Image/Image.js +31 -0
- package/lib/components/Image/index.d.ts +1 -0
- package/lib/components/{Tags → Image}/index.js +1 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/LastUpdated/LastUpdated.js +1 -0
- package/lib/components/LastUpdated/index.d.ts +1 -0
- package/lib/components/{OperationBadge → LastUpdated}/index.js +1 -1
- package/lib/components/LastUpdated/styledVariables.d.ts +1 -0
- package/lib/components/LastUpdated/styledVariables.js +11 -0
- package/lib/components/Markdown/Admonition.js +12 -9
- package/lib/components/Markdown/MarkdownLayout.d.ts +0 -2
- package/lib/components/Markdown/MarkdownLayout.js +1 -6
- package/lib/components/Markdown/MarkdownWrapper.js +2 -4
- package/lib/components/Markdown/Mermaid.js +4 -1
- package/lib/components/Markdown/index.d.ts +1 -0
- package/lib/components/Markdown/index.js +1 -0
- package/lib/components/Markdown/styledVariables.d.ts +3 -0
- package/lib/components/Markdown/styledVariables.js +231 -0
- package/lib/components/Menu/Menu.js +5 -7
- package/lib/components/Menu/MenuGroup.js +12 -7
- package/lib/components/Menu/MenuItem.js +1 -1
- package/lib/components/Menu/MenuItemLabel.js +9 -13
- package/lib/components/Menu/MobileMenu.js +20 -25
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/index.d.ts +1 -0
- package/lib/components/Menu/index.js +1 -0
- package/lib/components/Menu/styledVariables.d.ts +2 -0
- package/lib/components/Menu/styledVariables.js +101 -0
- package/lib/components/Navbar/Navbar.js +20 -13
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +18 -6
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +1 -0
- package/lib/components/Navbar/index.js +1 -0
- package/lib/components/Navbar/styledVariables.d.ts +1 -0
- package/lib/components/Navbar/styledVariables.js +42 -0
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +4 -1
- package/lib/components/NavbarLogo/NavbarLogo.js +13 -5
- package/lib/components/NavbarLogo/index.d.ts +1 -0
- package/lib/components/NavbarLogo/index.js +1 -0
- package/lib/components/NavbarLogo/styledVariables.d.ts +1 -0
- package/lib/components/NavbarLogo/styledVariables.js +18 -0
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/PageNavigation/NextButton.js +1 -1
- package/lib/components/PageNavigation/PreviousButton.js +1 -1
- package/lib/components/Panel/PanelHeader.js +2 -0
- package/lib/components/Panel/PanelHeaderTitle.js +0 -4
- package/lib/components/Panel/index.d.ts +1 -0
- package/lib/components/Panel/index.js +1 -0
- package/lib/components/Panel/styledVariables.d.ts +2 -0
- package/lib/components/Panel/styledVariables.js +481 -0
- package/lib/components/Product/ProductPicker.js +22 -9
- package/lib/components/Product/index.d.ts +1 -0
- package/lib/components/Product/index.js +1 -0
- package/lib/components/Product/styledVariables.d.ts +2 -0
- package/lib/components/Product/styledVariables.js +42 -0
- package/lib/components/Profile/LoginLink.js +1 -2
- package/lib/components/{Navbar → Profile}/MobileUserProfile.js +12 -24
- package/lib/components/Profile/Profile.js +3 -22
- package/lib/components/Profile/UserProfile.js +21 -9
- package/lib/components/Profile/UserProfileData.d.ts +9 -0
- package/lib/components/Profile/UserProfileData.js +35 -0
- package/lib/components/Profile/index.d.ts +1 -0
- package/lib/components/Profile/index.js +15 -0
- package/lib/components/Profile/styledVariables.d.ts +2 -0
- package/lib/components/Profile/styledVariables.js +55 -0
- package/lib/components/Search/CancelSearch.js +2 -14
- package/lib/components/Search/ProductTag.js +8 -8
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +0 -2
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +4 -4
- package/lib/components/Search/SearchTrigger.js +4 -5
- package/lib/components/Search/ShortcutKey.js +1 -5
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +1 -0
- package/lib/components/Search/index.js +1 -0
- package/lib/components/Search/styledVariables.d.ts +1 -0
- package/lib/components/Search/styledVariables.js +98 -0
- package/lib/components/Select/Select.d.ts +21 -9
- package/lib/components/Select/Select.js +27 -17
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Select/index.js +1 -0
- package/lib/components/Select/styledVariables.d.ts +1 -0
- package/lib/components/Select/styledVariables.js +34 -0
- package/lib/components/Separator/Separator.js +11 -3
- package/lib/components/Separator/SeparatorItem.js +6 -9
- package/lib/components/Separator/SeparatorLine.js +7 -3
- package/lib/components/Sidebar/ApiCallItem.d.ts +2 -6
- package/lib/components/Sidebar/ApiCallItem.js +17 -13
- package/lib/components/Sidebar/FooterWrapper.js +3 -4
- package/lib/components/Sidebar/HeaderWrapper.js +3 -3
- package/lib/components/Sidebar/VersionPicker.d.ts +3 -3
- package/lib/components/Sidebar/VersionPicker.js +6 -4
- package/lib/components/Sidebar/index.d.ts +1 -0
- package/lib/components/Sidebar/index.js +1 -0
- package/lib/components/Sidebar/styledVariables.d.ts +2 -0
- package/lib/components/Sidebar/styledVariables.js +216 -0
- package/lib/components/Sidebar/types.d.ts +1 -0
- package/lib/components/SidebarActions/CollapseSidebarButton.js +41 -1
- package/lib/components/SidebarActions/styled.js +29 -21
- package/lib/components/TableOfContent/TableOfContent.js +3 -2
- package/lib/components/TableOfContent/index.d.ts +1 -0
- package/lib/components/TableOfContent/index.js +1 -0
- package/lib/components/TableOfContent/styledVariables.d.ts +1 -0
- package/lib/components/TableOfContent/styledVariables.js +47 -0
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tag/Tag.d.ts +18 -0
- package/lib/components/Tag/Tag.js +45 -0
- package/lib/components/Tag/index.d.ts +2 -0
- package/lib/components/Tag/index.js +19 -0
- package/lib/components/Tag/styledVariables.d.ts +1 -0
- package/lib/components/Tag/styledVariables.js +140 -0
- package/lib/components/Tiles/ThinTile.js +7 -5
- package/lib/components/Tiles/TileHeader.js +1 -1
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tiles/WideTile.js +10 -8
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/index.js +1 -0
- package/lib/components/Tooltip/styledVariables.d.ts +1 -0
- package/lib/components/Tooltip/styledVariables.js +21 -0
- package/lib/components/Typography/SectionHeader.js +2 -2
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +1 -2
- package/lib/config.d.ts +155 -154
- package/lib/config.js +39 -28
- package/lib/globalStyle.js +602 -1983
- package/lib/hooks/useMobileMenu.js +5 -6
- package/lib/hooks/useModalScrollLock.d.ts +1 -0
- package/lib/hooks/useModalScrollLock.js +16 -0
- package/lib/i18n/LanguagePicker.d.ts +9 -0
- package/lib/{I18n → i18n}/LanguagePicker.js +27 -12
- package/lib/i18n/index.d.ts +2 -0
- package/lib/i18n/index.js +21 -0
- package/lib/i18n/styledVariables.d.ts +1 -0
- package/lib/i18n/styledVariables.js +40 -0
- package/lib/icons/AlertIcon/AlertIcon.js +0 -5
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +6 -0
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +28 -0
- package/lib/icons/CheckboxIcon/index.d.ts +1 -0
- package/lib/icons/CheckboxIcon/index.js +6 -0
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +1 -2
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/EditIcon/EditIcon.d.ts +6 -0
- package/lib/icons/EditIcon/EditIcon.js +18 -0
- package/lib/icons/EditIcon/index.d.ts +1 -0
- package/lib/icons/EditIcon/index.js +18 -0
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +4 -0
- package/lib/icons/ErrorIcon/ErrorIcon.js +14 -0
- package/lib/icons/ErrorIcon/index.d.ts +1 -0
- package/lib/icons/ErrorIcon/index.js +18 -0
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/ExternalIcon/ExternalIcon.js +3 -3
- package/lib/icons/FileIcon/FileIcon.d.ts +1 -2
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +4 -0
- package/lib/icons/LanguageIcon/LanguageIcon.js +14 -0
- package/lib/icons/LanguageIcon/index.d.ts +1 -0
- package/lib/icons/LanguageIcon/index.js +18 -0
- package/lib/icons/PlusIcon/PlusIcon.d.ts +5 -0
- package/lib/icons/PlusIcon/PlusIcon.js +16 -0
- package/lib/icons/PlusIcon/index.d.ts +1 -0
- package/lib/icons/PlusIcon/index.js +18 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +4 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +15 -0
- package/lib/icons/PointingArrowIcon/index.d.ts +1 -0
- package/lib/icons/PointingArrowIcon/index.js +18 -0
- package/lib/icons/ReportIcon/ReportIcon.d.ts +1 -2
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/RocketIcon/RocketIcon.d.ts +7 -0
- package/lib/icons/RocketIcon/RocketIcon.js +15 -0
- package/lib/icons/RocketIcon/index.d.ts +1 -0
- package/lib/icons/RocketIcon/index.js +18 -0
- package/lib/icons/SelectIcon/SelectIcon.d.ts +1 -2
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +6 -0
- package/lib/icons/index.js +6 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/Forbidden.js +4 -0
- package/lib/layouts/NotFound.js +4 -0
- package/lib/mocks/hooks/index.js +0 -1
- package/lib/types/portal/src/shared/types/catalog.d.ts +5 -1
- package/lib/types/portal/src/shared/types/nav.d.ts +5 -0
- package/lib/ui/ArrowBack.js +0 -1
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Highlight.d.ts +1 -1
- package/lib/ui/Highlight.js +1 -1
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +217 -84
- package/lib/utils/css-variables.js +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/tags-parser.d.ts +1 -0
- package/lib/utils/tags-parser.js +10 -0
- package/package.json +1 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -5
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +6 -2
- package/src/components/Breadcrumbs/index.ts +1 -0
- package/src/components/Breadcrumbs/styledVariables.ts +17 -0
- package/src/components/Button/Button.tsx +53 -47
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/styledVariables.ts +104 -0
- package/src/components/Catalog/Catalog.tsx +140 -120
- package/src/components/Catalog/CatalogCard.tsx +108 -58
- package/src/components/Catalog/index.ts +4 -0
- package/src/components/Catalog/styledVariables.ts +92 -0
- package/src/components/CodeBlock/CodeBlockContainer.tsx +17 -9
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +6 -19
- package/src/components/CodeBlock/CodeBlockControls.tsx +8 -5
- package/src/components/CodeBlock/index.ts +1 -0
- package/src/components/CodeBlock/styledVariables.ts +89 -0
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +0 -1
- package/src/components/Dropdown/Dropdown.tsx +14 -5
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/Dropdown/styledVariables.ts +27 -0
- package/src/components/EditPageButton/EditPageButton.tsx +24 -10
- package/src/components/Feedback/Comment.tsx +5 -0
- package/src/components/Feedback/Rating.tsx +5 -1
- package/src/components/Feedback/Reasons.tsx +6 -1
- package/src/components/Feedback/Sentiment.tsx +5 -0
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +150 -94
- package/src/components/Filter/FilterContent.tsx +95 -0
- package/src/components/Filter/FilterPopover.tsx +150 -0
- package/src/components/Filter/FilterTag.tsx +37 -0
- package/src/components/Filter/FilterTags.tsx +39 -0
- package/src/components/Filter/index.ts +2 -0
- package/src/components/Filter/styledVariables.ts +109 -0
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +32 -10
- package/src/components/Footer/FooterColumn.tsx +84 -63
- package/src/components/Footer/FooterColumns.tsx +6 -4
- package/src/components/Footer/FooterCopyright.tsx +13 -7
- package/src/components/Footer/index.ts +1 -0
- package/src/components/Footer/styledVariables.ts +58 -0
- package/src/components/Image/Image.tsx +47 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LastUpdated/LastUpdated.tsx +1 -2
- package/src/components/LastUpdated/index.ts +1 -0
- package/src/components/LastUpdated/styledVariables.ts +8 -0
- package/src/components/Markdown/Admonition.tsx +13 -8
- package/src/components/Markdown/MarkdownLayout.tsx +2 -15
- package/src/components/Markdown/MarkdownWrapper.tsx +2 -4
- package/src/components/Markdown/Mermaid.tsx +4 -1
- package/src/components/Markdown/index.ts +1 -0
- package/src/components/Markdown/styledVariables.ts +230 -0
- package/src/components/Menu/Menu.tsx +5 -7
- package/src/components/Menu/MenuGroup.tsx +15 -7
- package/src/components/Menu/MenuItem.tsx +1 -1
- package/src/components/Menu/MenuItemLabel.tsx +9 -13
- package/src/components/Menu/MobileMenu.tsx +20 -25
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +1 -0
- package/src/components/Menu/styledVariables.ts +99 -0
- package/src/components/Navbar/Navbar.tsx +20 -13
- package/src/components/Navbar/NavbarItem.tsx +18 -4
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +1 -0
- package/src/components/Navbar/styledVariables.ts +39 -0
- package/src/components/NavbarLogo/NavbarLogo.tsx +24 -11
- package/src/components/NavbarLogo/index.ts +1 -0
- package/src/components/NavbarLogo/styledVariables.ts +15 -0
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +1 -2
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/PageNavigation/NextButton.tsx +0 -1
- package/src/components/PageNavigation/PreviousButton.tsx +0 -1
- package/src/components/Panel/PanelHeader.ts +2 -0
- package/src/components/Panel/PanelHeaderTitle.ts +0 -4
- package/src/components/Panel/index.ts +1 -0
- package/src/components/Panel/styledVariables.ts +479 -0
- package/src/components/Product/ProductPicker.tsx +23 -17
- package/src/components/Product/index.ts +1 -0
- package/src/components/Product/styledVariables.ts +40 -0
- package/src/components/Profile/LoginLink.tsx +1 -2
- package/src/components/{Navbar → Profile}/MobileUserProfile.tsx +12 -29
- package/src/components/Profile/Profile.tsx +1 -24
- package/src/components/Profile/UserProfile.tsx +20 -8
- package/src/components/Profile/UserProfileData.tsx +40 -0
- package/src/components/Profile/index.ts +1 -0
- package/src/components/Profile/styledVariables.ts +53 -0
- package/src/components/Search/CancelSearch.tsx +2 -15
- package/src/components/Search/ProductTag.tsx +8 -8
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +0 -2
- package/src/components/Search/SearchIcon.tsx +10 -5
- package/src/components/Search/SearchItem.tsx +4 -4
- package/src/components/Search/SearchTrigger.tsx +4 -5
- package/src/components/Search/ShortcutKey.tsx +1 -5
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +1 -0
- package/src/components/Search/styledVariables.ts +95 -0
- package/src/components/Select/Select.tsx +65 -31
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/styledVariables.ts +31 -0
- package/src/components/Separator/Separator.tsx +17 -3
- package/src/components/Separator/SeparatorItem.tsx +6 -9
- package/src/components/Separator/SeparatorLine.tsx +7 -3
- package/src/components/Sidebar/ApiCallItem.tsx +17 -13
- package/src/components/Sidebar/FooterWrapper.tsx +3 -4
- package/src/components/Sidebar/HeaderWrapper.tsx +3 -3
- package/src/components/Sidebar/VersionPicker.tsx +6 -4
- package/src/components/Sidebar/index.ts +1 -0
- package/src/components/Sidebar/styledVariables.ts +214 -0
- package/src/components/Sidebar/types.ts +1 -0
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +22 -2
- package/src/components/SidebarActions/styled.tsx +29 -30
- package/src/components/TableOfContent/TableOfContent.tsx +3 -2
- package/src/components/TableOfContent/index.ts +1 -0
- package/src/components/TableOfContent/styledVariables.ts +44 -0
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tag/Tag.tsx +71 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/Tag/styledVariables.ts +137 -0
- package/src/components/Tiles/ThinTile.tsx +7 -5
- package/src/components/Tiles/TileHeader.ts +1 -1
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tiles/WideTile.tsx +10 -8
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/styledVariables.ts +18 -0
- package/src/components/Typography/SectionHeader.ts +2 -2
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +1 -2
- package/src/config.ts +44 -29
- package/src/globalStyle.ts +597 -1999
- package/src/hooks/useMobileMenu.ts +3 -4
- package/src/hooks/useModalScrollLock.ts +12 -0
- package/src/{I18n → i18n}/LanguagePicker.tsx +48 -21
- package/src/i18n/index.ts +2 -0
- package/src/i18n/styledVariables.ts +37 -0
- package/src/icons/AlertIcon/AlertIcon.tsx +0 -5
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +64 -0
- package/src/icons/CheckboxIcon/index.ts +1 -0
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +4 -5
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/EditIcon/EditIcon.tsx +30 -0
- package/src/icons/EditIcon/index.ts +1 -0
- package/src/icons/ErrorIcon/ErrorIcon.tsx +15 -0
- package/src/icons/ErrorIcon/index.ts +1 -0
- package/src/icons/ExpandIcon/ExpandIcon.tsx +5 -6
- package/src/icons/ExternalIcon/ExternalIcon.tsx +4 -4
- package/src/icons/FileIcon/FileIcon.tsx +2 -3
- package/src/icons/LanguageIcon/LanguageIcon.tsx +15 -0
- package/src/icons/LanguageIcon/index.ts +1 -0
- package/src/icons/PlusIcon/PlusIcon.tsx +25 -0
- package/src/icons/PlusIcon/index.ts +1 -0
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +16 -0
- package/src/icons/PointingArrowIcon/index.ts +1 -0
- package/src/icons/ReportIcon/ReportIcon.tsx +3 -4
- package/src/icons/RocketIcon/RocketIcon.tsx +32 -0
- package/src/icons/RocketIcon/index.tsx +1 -0
- package/src/icons/SelectIcon/SelectIcon.tsx +5 -6
- package/src/icons/index.ts +6 -0
- package/src/index.ts +1 -1
- package/src/layouts/Forbidden.tsx +4 -0
- package/src/layouts/NotFound.tsx +4 -0
- package/src/mocks/hooks/index.ts +0 -1
- package/src/types/portal/src/shared/types/catalog.ts +7 -1
- package/src/types/portal/src/shared/types/nav.ts +5 -0
- package/src/ui/ArrowBack.tsx +0 -1
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Highlight.tsx +2 -2
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +217 -84
- package/src/utils/css-variables.ts +4 -2
- package/src/utils/index.ts +1 -0
- package/src/utils/tags-parser.ts +8 -0
- package/lib/I18n/LanguagePicker.d.ts +0 -4
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -6
- package/lib/components/OperationBadge/OperationBadge.d.ts +0 -6
- package/lib/components/OperationBadge/OperationBadge.js +0 -68
- package/lib/components/OperationBadge/index.d.ts +0 -1
- package/lib/components/Tags/Tags.d.ts +0 -5
- package/lib/components/Tags/Tags.js +0 -32
- package/lib/components/Tags/index.d.ts +0 -1
- package/src/I18n/index.ts +0 -1
- package/src/components/Catalog/index.tsx +0 -3
- package/src/components/OperationBadge/OperationBadge.ts +0 -62
- package/src/components/OperationBadge/index.ts +0 -1
- package/src/components/Tags/Tags.tsx +0 -36
- package/src/components/Tags/index.ts +0 -1
- /package/lib/components/{Navbar → Profile}/MobileUserProfile.d.ts +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filter = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.filter = (0, styled_components_1.css) `
|
|
6
|
+
/* === Filter === */
|
|
7
|
+
/**
|
|
8
|
+
* @tokens Filters
|
|
9
|
+
*/
|
|
10
|
+
--filter-group-padding: var(--spacing-base) 0 0 0;
|
|
11
|
+
|
|
12
|
+
--filter-title-font-weight: var(--font-weight-bold);
|
|
13
|
+
--filter-title-font-size: var(--font-size-base);
|
|
14
|
+
--filter-title-margin: 0 0 var(--spacing-xxs) 0;
|
|
15
|
+
|
|
16
|
+
--filter-option-font-weight: var(--font-weight-regular);
|
|
17
|
+
--filter-option-font-size: var(--font-size-base);
|
|
18
|
+
--filter-option-margin: var(--spacing-xs) 0 0 0;
|
|
19
|
+
|
|
20
|
+
--filter-option-label-font-size: var(--font-size-base);
|
|
21
|
+
--filter-option-label-font-weight: var(--font-weight-regular);
|
|
22
|
+
--filter-option-label-margin: 0 var(--spacing-xs) 0 0;
|
|
23
|
+
--filter-option-label-color: var(--text-secondary);
|
|
24
|
+
|
|
25
|
+
--filter-option-count-height: 17px;
|
|
26
|
+
--filter-option-count-color: var(--text-secondary);
|
|
27
|
+
--filter-option-count-font-size: var(--font-size-sm);
|
|
28
|
+
--filter-option-count-font-weight: var(--font-weight-regular);
|
|
29
|
+
--filter-option-count-padding: 0px var(--spacing-xxs);
|
|
30
|
+
--filter-option-count-border-radius: var(--spacing-sm);
|
|
31
|
+
--filter-option-count-border: 1px solid var(--border-primary);
|
|
32
|
+
--filter-option-count-background-color: var(--bg-overlay);
|
|
33
|
+
|
|
34
|
+
--filter-content-border-color: var(--border-secondary);
|
|
35
|
+
--filter-content-items-padding: 0 var(--spacing-lg);
|
|
36
|
+
--filter-content-clear-button-margin: var(--spacing-base) auto 0 auto;
|
|
37
|
+
--filter-content-clear-button-width: calc(var(--spacing-unit) * 40);
|
|
38
|
+
--filter-controls-background-color: var(--bg-base);
|
|
39
|
+
|
|
40
|
+
--filter-popover-background-color: var(--bg-base);
|
|
41
|
+
--filter-popover-header-padding: var(--mobile-catalog-filter-padding-vertical) var(--mobile-catalog-filter-padding-horizontal);
|
|
42
|
+
--filter-popover-header-border-color: var(--border-secondary);
|
|
43
|
+
--filter-popover-header-background-color: var(--navbar-background-color);
|
|
44
|
+
--filter-popover-header-label-color: var(--navbar-text-color);
|
|
45
|
+
--filter-popover-header-label-font-size: var(--font-size-lg);
|
|
46
|
+
--filter-popover-header-label-font-weight: var(--font-weight-bold);
|
|
47
|
+
--filter-popover-header-button-color: var(--navbar-text-color);
|
|
48
|
+
--filter-popover-header-button-height: var(--control-height-base);
|
|
49
|
+
--filter-popover-header-button-font-size: var(--font-size-base);
|
|
50
|
+
--filter-popover-header-button-font-weight: var(--font-weight-regular);
|
|
51
|
+
|
|
52
|
+
--filter-tags-wrapper-padding: var(--spacing-xs) 0 var(--spacing-base) 0;
|
|
53
|
+
--filter-tag-color: var(--text-primary);
|
|
54
|
+
--filter-tag-border-radius: var(--spacing-sm);
|
|
55
|
+
--filter-tag-border-color: var(--border-primary);
|
|
56
|
+
--filter-tag-background-color: var(--bg-raised);
|
|
57
|
+
--filter-tag-padding: 0 var(--spacing-xs);
|
|
58
|
+
--filter-tag-font-size: var(--font-size-sm);
|
|
59
|
+
--filter-tag-font-weight: var(--font-weight-regular);
|
|
60
|
+
--filter-tag-margin: 0 var(--spacing-xxs) 0 0;
|
|
61
|
+
--filter-tag-label-margin: 0 var(--spacing-xxs) 0 0;
|
|
62
|
+
|
|
63
|
+
--filter-input-border: 1px solid var(--border-primary);
|
|
64
|
+
--filter-input-min-width: 200px;
|
|
65
|
+
--filter-input-padding: var(--input-padding);
|
|
66
|
+
--filter-input-border-radius: var(--input-border-radius);
|
|
67
|
+
--filter-input-background-color: var(--input-background-color);
|
|
68
|
+
--filter-input-color: var(--text-secondary);
|
|
69
|
+
--filter-input-font-family: var(--font-family-base);
|
|
70
|
+
--filter-input-font-size: var(--font-size-base);
|
|
71
|
+
--filter-input-line-height: var(--input-line-height);
|
|
72
|
+
--filter-input-placeholder-opacity: 0.6;
|
|
73
|
+
--filter-input-placeholder-color: var(--text-placeholder);
|
|
74
|
+
--filter-input-hover-color: var(--text-primary);
|
|
75
|
+
--filter-input-hover-border: 1px solid var(--border-primary);
|
|
76
|
+
--filter-input-focus-color: var(--text-primary);
|
|
77
|
+
--filter-input-focus-border: 1px solid var(--border-primary);
|
|
78
|
+
|
|
79
|
+
--filter-add-button-margin: 0 var(--spacing-sm) 0 0;
|
|
80
|
+
--filter-add-button-padding: 0;
|
|
81
|
+
--filter-add-button-font-size: var(--font-size-base);
|
|
82
|
+
--filter-add-button-font-weight: var(--font-weight-regular);
|
|
83
|
+
|
|
84
|
+
--filter-select-min-height: var(--control-height-base);
|
|
85
|
+
--filter-select-color: var(--text-primary);
|
|
86
|
+
--filter-select-border-color: var(--border-primary);
|
|
87
|
+
--filter-select-border-radius: calc(var(--spacing-unit) * 1.5);
|
|
88
|
+
--filter-select-padding: 0;
|
|
89
|
+
--filter-select-hover-border-color: var(--text-primary);
|
|
90
|
+
--filter-select-option-margin: 0;
|
|
91
|
+
|
|
92
|
+
--filter-date-picker-color: var(--text-primary);
|
|
93
|
+
--filter-date-picker-margin: 0 0 var(--spacing-xxs) 0;
|
|
94
|
+
--filter-date-picker-gap: var(--spacing-xs);
|
|
95
|
+
--filter-date-picker-width: 50px;
|
|
96
|
+
--filter-date-picker-tile-background: var(--color-blue-2);
|
|
97
|
+
--filter-date-picker-tile-color: var(--text-primary);
|
|
98
|
+
--filter-date-picker-tile-hover-background: var(--color-blue-3);
|
|
99
|
+
--filter-date-picker-tile-hover-color: var(--text-primary);
|
|
100
|
+
--filter-date-picker-input-width: var(--spacing-md);
|
|
101
|
+
--filter-date-picker-invalid-input-background: var(--bg-raised);
|
|
102
|
+
--filter-date-picker-button-padding: var(--spacing-xxs);
|
|
103
|
+
--filter-date-picker-icon-stroke: var(--text-secondary);
|
|
104
|
+
--filter-date-picker-icon-width: var(--spacing-sm);
|
|
105
|
+
--filter-date-picker-hover-icon-stroke: var(--text-primary);
|
|
106
|
+
--filter-date-picker-wrapper-border-color: var(--border-primary);
|
|
107
|
+
--filter-date-picker-wrapper-radius: calc(var(--spacing-unit) * 1.5);
|
|
108
|
+
--filter-date-picker-wrapper-padding: calc(var(--spacing-xxs) / 2) var(--spacing-xs);
|
|
109
|
+
|
|
110
|
+
// @tokens End
|
|
111
|
+
`;
|
|
112
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -18,7 +18,7 @@ const FooterItem = styled_components_1.default.li `
|
|
|
18
18
|
display: inline-block;
|
|
19
19
|
text-align: center;
|
|
20
20
|
line-height: var(--line-height-base);
|
|
21
|
-
font-size: var(--navbar-
|
|
21
|
+
font-size: var(--navbar-font-size);
|
|
22
22
|
margin: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
|
|
23
23
|
font-weight: var(--font-weight-regular);
|
|
24
24
|
`;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ResolvedNavItem } from '../../types/portal';
|
|
2
|
+
import type { LogoConfig, ResolvedNavItem } from '../../types/portal';
|
|
3
3
|
export declare function Footer(): JSX.Element | null;
|
|
4
4
|
interface FooterPresentationalComponentProps {
|
|
5
5
|
items: ResolvedNavItem[];
|
|
6
|
-
copyrightText
|
|
6
|
+
copyrightText?: string;
|
|
7
|
+
logo?: LogoConfig;
|
|
7
8
|
className?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare function FooterPresentationalComponent({ items, copyrightText, className, }: FooterPresentationalComponentProps): JSX.Element | null;
|
|
10
|
+
export declare function FooterPresentationalComponent({ items, copyrightText, logo, className, }: FooterPresentationalComponentProps): JSX.Element | null;
|
|
10
11
|
export {};
|
|
@@ -10,31 +10,49 @@ const FooterColumns_1 = require("../../components/Footer/FooterColumns");
|
|
|
10
10
|
const FooterCopyright_1 = require("../../components/Footer/FooterCopyright");
|
|
11
11
|
const utils_1 = require("../../utils");
|
|
12
12
|
const hooks_1 = require("../../hooks");
|
|
13
|
+
const ui_1 = require("../../ui");
|
|
14
|
+
const NavbarLogo_1 = require("../../components/NavbarLogo");
|
|
13
15
|
function Footer() {
|
|
14
|
-
|
|
16
|
+
var _a;
|
|
17
|
+
const { footer, logo } = (0, hooks_1.useThemeConfig)() || {};
|
|
15
18
|
const { items, copyrightText } = footer || {};
|
|
16
|
-
if ((0, utils_1.isEmptyArray)(items) ||
|
|
19
|
+
if ((0, utils_1.isEmptyArray)(items) || (footer === null || footer === void 0 ? void 0 : footer.hide)) {
|
|
17
20
|
return null;
|
|
18
21
|
}
|
|
19
|
-
return (react_1.default.createElement(FooterPresentationalComponent, { items: items, copyrightText: copyrightText }));
|
|
22
|
+
return (react_1.default.createElement(FooterPresentationalComponent, { items: items, copyrightText: copyrightText, logo: ((_a = footer === null || footer === void 0 ? void 0 : footer.logo) === null || _a === void 0 ? void 0 : _a.hide) ? undefined : logo }));
|
|
20
23
|
}
|
|
21
24
|
exports.Footer = Footer;
|
|
22
|
-
function FooterPresentationalComponent({ items, copyrightText, className, }) {
|
|
25
|
+
function FooterPresentationalComponent({ items, copyrightText, logo, className, }) {
|
|
23
26
|
return (react_1.default.createElement(FooterContainer, { "data-component-name": "Footer/Footer", className: className },
|
|
24
|
-
react_1.default.createElement(
|
|
25
|
-
|
|
27
|
+
react_1.default.createElement(ColumnsSection, null,
|
|
28
|
+
logo && react_1.default.createElement(NavbarLogo_1.NavbarLogo, { logo: logo }),
|
|
29
|
+
react_1.default.createElement(FooterColumns_1.FooterColumns, { columns: items })),
|
|
30
|
+
copyrightText && react_1.default.createElement(FooterCopyright_1.FooterCopyright, { copyrightText: copyrightText })));
|
|
26
31
|
}
|
|
27
32
|
exports.FooterPresentationalComponent = FooterPresentationalComponent;
|
|
33
|
+
const ColumnsSection = (0, styled_components_1.default)(ui_1.Flex) `
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
|
|
36
|
+
${({ theme }) => theme.mediaQueries.small} {
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
28
40
|
const FooterContainer = styled_components_1.default.footer `
|
|
41
|
+
padding: var(--mobile-footer-padding-vertical) var(--mobile-footer-padding-horizontal);
|
|
42
|
+
border-top: 1px solid var(--footer-border-color);
|
|
29
43
|
font-size: var(--footer-font-size);
|
|
30
44
|
flex-shrink: 0;
|
|
31
45
|
background-color: var(--footer-background-color);
|
|
32
46
|
color: var(--footer-text-color);
|
|
33
|
-
font-family: var(--footer-font-family);
|
|
34
47
|
font-weight: var(--footer-font-weight);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
48
|
+
|
|
49
|
+
${NavbarLogo_1.LogoContainer} {
|
|
50
|
+
display: var(--footer-logo-display);
|
|
51
|
+
margin: 0 var(--footer-logo-margin-right) var(--footer-logo-margin-bottom) 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
${({ theme }) => theme.mediaQueries.small} {
|
|
55
|
+
padding: var(--footer-padding-vertical) var(--footer-padding-horizontal);
|
|
38
56
|
}
|
|
39
57
|
`;
|
|
40
58
|
//# sourceMappingURL=Footer.js.map
|
|
@@ -5,8 +5,8 @@ interface FooterColumnProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare function FooterColumn({ column, className }: FooterColumnProps): JSX.Element;
|
|
8
|
-
export declare const FooterLinkIcon: import("styled-components").StyledComponent<"
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export declare const FooterLinkIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const FooterColumnItems: import("styled-components").StyledComponent<"div", any, {
|
|
10
|
+
iconsOnly: boolean;
|
|
11
11
|
}, never>;
|
|
12
12
|
export {};
|
|
@@ -1,106 +1,100 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.FooterLinkIcon = exports.FooterColumn = void 0;
|
|
6
|
+
exports.FooterColumnItems = exports.FooterLinkIcon = exports.FooterColumn = void 0;
|
|
30
7
|
const react_1 = __importDefault(require("react"));
|
|
31
|
-
const styled_components_1 =
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
9
|
const Link_1 = require("../../mocks/Link");
|
|
33
10
|
const hooks_1 = require("../../mocks/hooks");
|
|
11
|
+
const Image_1 = require("../../components/Image/Image");
|
|
34
12
|
const telemetry_1 = require("../../mocks/telemetry");
|
|
13
|
+
const icons_1 = require("../../icons");
|
|
35
14
|
function FooterColumn({ column, className }) {
|
|
36
|
-
var _a;
|
|
37
15
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
38
|
-
const
|
|
16
|
+
const { items = [] } = column;
|
|
17
|
+
const iconsOnly = items.every((item) => item.label === item.link && (item.icon || item.srcSet));
|
|
39
18
|
return (react_1.default.createElement(FooterColumnContainer, { "data-component-name": "Footer/FooterColumn", className: className },
|
|
40
|
-
react_1.default.createElement(FooterColumnTitle,
|
|
41
|
-
|
|
19
|
+
react_1.default.createElement(FooterColumnTitle, null, translate(column.labelTranslationKey, column.label)),
|
|
20
|
+
react_1.default.createElement(exports.FooterColumnItems, { iconsOnly: iconsOnly }, items === null || items === void 0 ? void 0 : items.map((columnItem, columnItemIndex) => {
|
|
42
21
|
if (columnItem.type === 'error') {
|
|
43
22
|
return null;
|
|
44
23
|
}
|
|
45
|
-
return columnItem.type === 'separator' ? (react_1.default.createElement(FooterSeparator, { key: columnItem.label + '_' + columnItemIndex }, translate(columnItem.labelTranslationKey, columnItem.label))) : (react_1.default.createElement(FooterLink, { key: columnItemIndex, to: columnItem.link, external: columnItem.external, target: columnItem.target, "data-cy": columnItem.label, onClick: () => telemetry_1.telemetry.send('footer_item_clicked', {}) },
|
|
46
|
-
react_1.default.createElement(exports.FooterLinkIcon,
|
|
47
|
-
|
|
48
|
-
|
|
24
|
+
return columnItem.type === 'separator' ? (react_1.default.createElement(FooterSeparator, { key: columnItem.label + '_' + columnItemIndex }, translate(columnItem.labelTranslationKey, columnItem.label))) : (react_1.default.createElement(FooterLink, { key: columnItemIndex, to: columnItem.link, external: columnItem.external, target: columnItem.target, "data-cy": columnItem.label, iconsOnly: iconsOnly, onClick: () => telemetry_1.telemetry.send('footer_item_clicked', {}) },
|
|
25
|
+
columnItem.icon || columnItem.srcSet ? (react_1.default.createElement(exports.FooterLinkIcon, null,
|
|
26
|
+
react_1.default.createElement(Image_1.Image, { src: columnItem.icon, srcSet: columnItem.srcSet }))) : null,
|
|
27
|
+
!iconsOnly && translate(columnItem.labelTranslationKey, columnItem.label),
|
|
28
|
+
columnItem.external ? react_1.default.createElement(icons_1.ExternalIcon, null) : null));
|
|
29
|
+
}))));
|
|
49
30
|
}
|
|
50
31
|
exports.FooterColumn = FooterColumn;
|
|
51
32
|
const FooterColumnTitle = styled_components_1.default.p `
|
|
52
33
|
display: inline-block;
|
|
53
34
|
font-weight: var(--footer-title-font-weight);
|
|
54
35
|
font-size: var(--footer-title-font-size);
|
|
55
|
-
margin-
|
|
56
|
-
|
|
57
|
-
(0, styled_components_1.css) `
|
|
58
|
-
padding-left: calc(var(--footer-item-icon-width) + var(--footer-item-icon-margin-right));
|
|
59
|
-
`}
|
|
60
|
-
font-family: var(--footer-font-family);
|
|
36
|
+
margin-top: 0;
|
|
37
|
+
margin-bottom: var(--mobile-footer-title-margin-bottom);
|
|
61
38
|
color: var(--footer-title-text-color);
|
|
39
|
+
|
|
40
|
+
${({ theme }) => theme.mediaQueries.small} {
|
|
41
|
+
margin-bottom: var(--footer-title-margin-bottom);
|
|
42
|
+
}
|
|
62
43
|
`;
|
|
63
44
|
const FooterSeparator = styled_components_1.default.div `
|
|
64
45
|
opacity: 0.75;
|
|
65
46
|
margin: 10px 0 5px 0;
|
|
66
47
|
font-size: 0.75em;
|
|
67
48
|
text-transform: uppercase;
|
|
68
|
-
font-family: var(--footer-font-family);
|
|
69
49
|
`;
|
|
70
50
|
const FooterColumnContainer = styled_components_1.default.div `
|
|
71
51
|
display: flex;
|
|
72
52
|
flex-direction: column;
|
|
73
|
-
text-align:
|
|
74
|
-
margin: var(--footer-column-margin-horizontal) var(--footer-column-margin-vertical);
|
|
75
|
-
width: var(--footer-column-width);
|
|
53
|
+
text-align: center;
|
|
76
54
|
word-break: break-word;
|
|
55
|
+
flex: 1;
|
|
56
|
+
margin: 0 0 var(--mobile-footer-column-margin-bottom) 0;
|
|
57
|
+
min-width: var(--footer-column-min-width);
|
|
58
|
+
align-content: center;
|
|
59
|
+
flex-wrap: wrap;
|
|
60
|
+
|
|
61
|
+
${({ theme }) => theme.mediaQueries.small} {
|
|
62
|
+
text-align: left;
|
|
63
|
+
margin: 0 var(--footer-column-margin-horizontal);
|
|
64
|
+
border-right: 1px solid var(--footer-dividing-border-color);
|
|
65
|
+
margin-bottom: var(--footer-column-margin-bottom);
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
exports.FooterLinkIcon = styled_components_1.default.div `
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
width: var(--footer-item-icon-width);
|
|
71
|
+
height: var(--footer-item-icon-height);
|
|
72
|
+
margin-right: var(--footer-item-icon-margin-right);
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
border: 1px solid var(--footer-item-icon-border-color);
|
|
75
|
+
border-radius: var(--footer-item-icon-border-radius);
|
|
76
|
+
padding: var(--footer-item-icon-padding);
|
|
77
77
|
`;
|
|
78
78
|
const FooterLink = (0, styled_components_1.default)(Link_1.Link) `
|
|
79
|
-
|
|
80
|
-
padding: var(--footer-item-padding-vertical) var(--footer-item-padding-horizontal);
|
|
79
|
+
padding: var(--footer-link-padding-vertical) var(--footer-link-padding-horizontal);
|
|
81
80
|
color: var(--footer-link-text-color);
|
|
82
81
|
text-decoration: none;
|
|
83
82
|
&:hover {
|
|
84
83
|
color: var(--footer-link-hover-color);
|
|
85
84
|
}
|
|
85
|
+
|
|
86
|
+
&:last-child ${exports.FooterLinkIcon} {
|
|
87
|
+
margin-right: ${({ iconsOnly }) => (iconsOnly ? '0' : 'var(--footer-item-icon-margin-right)')};
|
|
88
|
+
}
|
|
86
89
|
`;
|
|
87
|
-
exports.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
${({
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
background-size: contain;
|
|
97
|
-
background-position: center;
|
|
98
|
-
background-repeat: no-repeat;
|
|
99
|
-
width: var(--footer-item-icon-width);
|
|
100
|
-
height: var(--footer-item-icon-height);
|
|
101
|
-
display: inline-block;
|
|
102
|
-
margin-right: var(--footer-item-icon-margin-right);
|
|
103
|
-
vertical-align: middle;
|
|
104
|
-
`}
|
|
90
|
+
exports.FooterColumnItems = styled_components_1.default.div `
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
flex-direction: ${(props) => (props.iconsOnly ? 'row' : 'column')};
|
|
95
|
+
|
|
96
|
+
${({ theme }) => theme.mediaQueries.small} {
|
|
97
|
+
justify-content: flex-start;
|
|
98
|
+
}
|
|
105
99
|
`;
|
|
106
100
|
//# sourceMappingURL=FooterColumn.js.map
|
|
@@ -16,15 +16,15 @@ function FooterColumns({ columns, className }) {
|
|
|
16
16
|
}
|
|
17
17
|
exports.FooterColumns = FooterColumns;
|
|
18
18
|
exports.FooterColumnsContainer = styled_components_1.default.div `
|
|
19
|
-
padding: var(--footer-padding-vertical) var(--footer-padding-horizontal);
|
|
20
19
|
display: flex;
|
|
21
20
|
flex-direction: column;
|
|
22
21
|
justify-content: center;
|
|
23
22
|
max-width: var(--footer-container-max-width);
|
|
24
|
-
margin: 0
|
|
23
|
+
margin: 0;
|
|
24
|
+
flex: 1;
|
|
25
25
|
|
|
26
26
|
${({ theme }) => theme.mediaQueries.small} {
|
|
27
|
-
|
|
27
|
+
margin: 0 auto;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
${({ theme }) => theme.mediaQueries.print} {
|
|
@@ -36,9 +36,11 @@ exports.FooterRow = styled_components_1.default.div `
|
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-wrap: wrap;
|
|
38
38
|
justify-content: flex-start;
|
|
39
|
+
flex-direction: column;
|
|
39
40
|
|
|
40
41
|
${({ theme }) => theme.mediaQueries.small} {
|
|
41
|
-
justify-content: space-
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
flex-direction: row;
|
|
42
44
|
}
|
|
43
45
|
`;
|
|
44
46
|
//# sourceMappingURL=FooterColumns.js.map
|
|
@@ -6,26 +6,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.FooterCopyright = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const _theme_1 = require("../../index.js");
|
|
9
10
|
const hooks_1 = require("../../mocks/hooks");
|
|
10
11
|
function FooterCopyright({ copyrightText = '', className, }) {
|
|
11
12
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
13
|
+
const { changeLanguage } = (0, hooks_1.useI18n)();
|
|
12
14
|
const translationKeys = {
|
|
13
15
|
copyrightText: 'theme.footer.copyrightText',
|
|
14
16
|
};
|
|
15
|
-
return copyrightText ? (react_1.default.createElement(Wrapper, { className: className, "data-component-name": "Footer/FooterCopyright", "data-translation-key": translationKeys.copyrightText },
|
|
17
|
+
return copyrightText ? (react_1.default.createElement(Wrapper, { className: className, "data-component-name": "Footer/FooterCopyright", "data-translation-key": translationKeys.copyrightText },
|
|
18
|
+
react_1.default.createElement(Label, null, translate(translationKeys.copyrightText, copyrightText)),
|
|
19
|
+
react_1.default.createElement(_theme_1.LanguagePicker, { onChangeLanguage: changeLanguage, placement: "top", alignment: "end" }))) : null;
|
|
16
20
|
}
|
|
17
21
|
exports.FooterCopyright = FooterCopyright;
|
|
18
22
|
const Wrapper = styled_components_1.default.section `
|
|
19
23
|
display: flex;
|
|
20
|
-
justify-content:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
align-items: center;
|
|
26
|
+
font-size: var(--footer-copyright-font-size);
|
|
27
|
+
margin-top: var(--footer-copyright-margin-top);
|
|
24
28
|
background-color: var(--footer-background-color);
|
|
25
29
|
color: var(--footer-text-color);
|
|
26
|
-
text-align:
|
|
30
|
+
text-align: var(--footer-copyright-text-align);
|
|
27
31
|
span {
|
|
28
32
|
max-width: var(--footer-container-max-width);
|
|
29
33
|
}
|
|
30
34
|
`;
|
|
35
|
+
const Label = styled_components_1.default.div ``;
|
|
31
36
|
//# sourceMappingURL=FooterCopyright.js.map
|
|
@@ -2,3 +2,4 @@ export * from '../../components/Footer/Footer';
|
|
|
2
2
|
export * from '../../components/Footer/FooterColumn';
|
|
3
3
|
export * from '../../components/Footer/FooterColumns';
|
|
4
4
|
export * from '../../components/Footer/FooterCopyright';
|
|
5
|
+
export * from '../../components/Footer/styledVariables';
|
|
@@ -18,4 +18,5 @@ __exportStar(require("../../components/Footer/Footer"), exports);
|
|
|
18
18
|
__exportStar(require("../../components/Footer/FooterColumn"), exports);
|
|
19
19
|
__exportStar(require("../../components/Footer/FooterColumns"), exports);
|
|
20
20
|
__exportStar(require("../../components/Footer/FooterCopyright"), exports);
|
|
21
|
+
__exportStar(require("../../components/Footer/styledVariables"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const footer: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.footer = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.footer = (0, styled_components_1.css) `
|
|
6
|
+
/**
|
|
7
|
+
* @tokens Footer
|
|
8
|
+
*/
|
|
9
|
+
--footer-background-color: var(--bg-raised); // @presenter Color
|
|
10
|
+
--footer-text-color: var(--text-secondary); // @presenter Color
|
|
11
|
+
--footer-border-color: var(--border-secondary); // @presenter Color
|
|
12
|
+
|
|
13
|
+
--footer-padding-vertical: calc(var(--spacing-unit) * 20); // @presenter Spacing
|
|
14
|
+
--footer-padding-horizontal: calc(var(--spacing-unit) * 20); // @presenter Spacing
|
|
15
|
+
|
|
16
|
+
--footer-font-size: var(--font-size-base); // @presenter FontSize
|
|
17
|
+
--footer-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
18
|
+
|
|
19
|
+
--footer-dividing-border-color: var(--footer-border-color); // @presenter Color
|
|
20
|
+
|
|
21
|
+
--footer-title-text-color: var(--text-primary); // @presenter Color
|
|
22
|
+
--footer-title-font-size: var(--font-size-xl); // @presenter FontSize
|
|
23
|
+
--footer-title-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
24
|
+
--footer-title-margin-bottom: var(--spacing-lg); // @presenter Spacing
|
|
25
|
+
|
|
26
|
+
--footer-link-text-color: var(--text-secondary); // @presenter Color
|
|
27
|
+
--footer-link-hover-color: var(--text-primary); // @presenter Color
|
|
28
|
+
--footer-link-padding-vertical: var(--spacing-xs); // @presenter Spacing
|
|
29
|
+
--footer-link-padding-horizontal: 0;
|
|
30
|
+
|
|
31
|
+
--footer-item-icon-width: var(--spacing-lg); // @presenter Spacing
|
|
32
|
+
--footer-item-icon-height: var(--spacing-lg); // @presenter Spacing
|
|
33
|
+
--footer-item-icon-margin-right: var(--spacing-sm); // @presenter Spacing
|
|
34
|
+
--footer-item-icon-border-color: var(--border-primary); // @presenter Color
|
|
35
|
+
--footer-item-icon-border-radius: 12px; // @presenter BorderRadius
|
|
36
|
+
--footer-item-icon-padding: var(--spacing-xxs); // @presenter Spacing
|
|
37
|
+
|
|
38
|
+
--footer-column-min-width: calc(var(--spacing-unit) * 30);
|
|
39
|
+
--footer-column-margin-bottom: var(--spacing-lg); // @presenter Spacing
|
|
40
|
+
--footer-column-margin-horizontal: var(--spacing-sm); // @presenter Spacing
|
|
41
|
+
|
|
42
|
+
--footer-copyright-font-size: var(--footer-font-size); // @presenter FontSize
|
|
43
|
+
--footer-copyright-margin-top: var(--spacing-sm); // @presenter Spacing
|
|
44
|
+
--footer-copyright-text-align: start;
|
|
45
|
+
|
|
46
|
+
--footer-logo-display: block;
|
|
47
|
+
--footer-logo-margin-right: 0; // @presenter Spacing
|
|
48
|
+
--footer-logo-margin-bottom: var(--spacing-xl); // @presenter Spacing
|
|
49
|
+
|
|
50
|
+
--footer-language-picker-display: block;
|
|
51
|
+
|
|
52
|
+
--footer-container-max-width: var(--container-width); // @presenter Spacing
|
|
53
|
+
|
|
54
|
+
--mobile-footer-padding-vertical: var(--spacing-base); // @presenter Spacing
|
|
55
|
+
--mobile-footer-padding-horizontal: var(--spacing-base); // @presenter Spacing
|
|
56
|
+
--mobile-footer-column-margin-bottom: var(--spacing-base); // @presenter Spacing
|
|
57
|
+
--mobile-footer-title-margin-bottom: var(--spacing-sm); // @presenter Spacing
|
|
58
|
+
|
|
59
|
+
// @tokens End
|
|
60
|
+
`;
|
|
61
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Image = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
function parseSrcSet(srcSet) {
|
|
10
|
+
const result = new Map();
|
|
11
|
+
const parts = srcSet.split(', ');
|
|
12
|
+
for (const part of parts) {
|
|
13
|
+
const [url, theme] = part.split(' ');
|
|
14
|
+
result.set(theme, url);
|
|
15
|
+
}
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
function Image(props) {
|
|
19
|
+
const { src, srcSet, alt, className } = props;
|
|
20
|
+
const parsedSourceSetMap = react_1.default.useMemo(() => {
|
|
21
|
+
return srcSet ? parseSrcSet(srcSet) : new Map();
|
|
22
|
+
}, [srcSet]);
|
|
23
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, src ? (react_1.default.createElement("img", { src: src, alt: alt, className: className })) : (Array.from(parsedSourceSetMap).map(([key, value]) => (react_1.default.createElement(ColorModeAwareImage, { key: key, colorMode: key, src: value, alt: alt }))))));
|
|
24
|
+
}
|
|
25
|
+
exports.Image = Image;
|
|
26
|
+
const ColorModeAwareImage = styled_components_1.default.img `
|
|
27
|
+
html:not(.${(props) => props.colorMode}) && {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
//# sourceMappingURL=Image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../components/Image/Image';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("
|
|
17
|
+
__exportStar(require("../../components/Image/Image"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -103,7 +103,7 @@ exports.JsonViewer = (0, styled_components_1.default)(exports.Json).attrs(() =>
|
|
|
103
103
|
})) `
|
|
104
104
|
.redoc-json code {
|
|
105
105
|
background-color: var(--panel-samples-code-block-background-color);
|
|
106
|
-
color: var(--text-
|
|
106
|
+
color: var(--text-secondary);
|
|
107
107
|
padding: inherit;
|
|
108
108
|
border: none;
|
|
109
109
|
}
|
|
@@ -170,7 +170,7 @@ exports.JsonViewer = (0, styled_components_1.default)(exports.Json).attrs(() =>
|
|
|
170
170
|
background-color: transparent;
|
|
171
171
|
border: 0;
|
|
172
172
|
padding: 1px;
|
|
173
|
-
color:
|
|
173
|
+
color: var(--text-secondary);
|
|
174
174
|
width: var(--size);
|
|
175
175
|
height: var(--size);
|
|
176
176
|
margin-left: calc((var(--size) + var(--margin-right)) * -1);
|
|
@@ -55,6 +55,7 @@ function LastUpdated(props) {
|
|
|
55
55
|
: translate(translationKey, 'Last updated on');
|
|
56
56
|
return (React.createElement(Wrapper, { className: props.className, "data-component-name": "LastUpdated/LastUpdated", rawOnPrint: format === 'timeago', "data-print-datetime": isoDate, "data-translation-key": translationKey },
|
|
57
57
|
text,
|
|
58
|
+
" ",
|
|
58
59
|
React.createElement("time", { dateTime: isoDate }, lastUpdatedString)));
|
|
59
60
|
}
|
|
60
61
|
exports.LastUpdated = LastUpdated;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../components/LastUpdated/styledVariables';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("../../components/
|
|
17
|
+
__exportStar(require("../../components/LastUpdated/styledVariables"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const lastUpdated: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lastUpdated = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.lastUpdated = (0, styled_components_1.css) `
|
|
6
|
+
--last-updated-text-color: var(--text-secondary);
|
|
7
|
+
--last-updated-font-size: var(--font-size-sm);
|
|
8
|
+
--last-updated-font-family: var(--font-family-base);
|
|
9
|
+
--last-updated-line-height: var(--line-height-base);
|
|
10
|
+
`;
|
|
11
|
+
//# sourceMappingURL=styledVariables.js.map
|