@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,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.menu = exports.mobileMenu = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.mobileMenu = (0, styled_components_1.css) `
|
|
6
|
+
/**
|
|
7
|
+
* @tokens Mobile Menu icons
|
|
8
|
+
*/
|
|
9
|
+
--mobile-menu-icons-size: var(--spacing-md); // @presenter Spacing
|
|
10
|
+
--mobile-menu-search-icon-size: var(--spacing-md); // @presenter Spacing
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @tokens Mobile Menu wrapper
|
|
14
|
+
* */
|
|
15
|
+
--mobile-menu-wrapper-height: calc(100vh - var(--navbar-height));
|
|
16
|
+
--mobile-menu-wrapper-width: 100%;
|
|
17
|
+
--mobile-menu-wrapper-z-index: var(--z-index-raised);
|
|
18
|
+
--mobile-menu-wrapper-left: 0;
|
|
19
|
+
--mobile-menu-wrapper-top: var(--navbar-height);
|
|
20
|
+
--mobile-menu-wrapper-transition: 0.5s;
|
|
21
|
+
--mobile-menu-wrapper-background: var(--bg-base); // @presenter Color
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @tokens Mobile Menu
|
|
25
|
+
* */
|
|
26
|
+
--mobile-menu-margin: var(--mobile-menu-items-margin-top) var(--mobile-menu-horizontal-margin) 0
|
|
27
|
+
var(--mobile-menu-horizontal-margin);
|
|
28
|
+
--mobile-menu-line-height: var(--line-height-base); // @presenter LineHeight
|
|
29
|
+
--mobile-menu-padding-top: var(--spacing-sm); // @presenter Spacing
|
|
30
|
+
--mobile-menu-items-margin-top: var(--spacing-xxs); // @presenter Spacing
|
|
31
|
+
--mobile-menu-burger-button-margin: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) 0; // @presenter Spacing
|
|
32
|
+
--mobile-menu-background: var(--bg-base); // @presenter Color
|
|
33
|
+
--mobile-menu-profile-background: var(--bg-base); // @presenter Color
|
|
34
|
+
--mobile-menu-profile-border-color: var(--border-secondary); // @presenter Color
|
|
35
|
+
--mobile-menu-group-padding-right: var(--spacing-base); // @presenter Spacing
|
|
36
|
+
--mobile-menu-horizontal-margin: var(--spacing-xs); // @presenter Spacing
|
|
37
|
+
--mobile-menu-item-margin: 0; // @presenter Spacing
|
|
38
|
+
--mobile-menu-item-nested-offset: var(--spacing-xs); // @presenter Spacing
|
|
39
|
+
--mobile-menu-item-radius: var(--border-radius-md); // @presenter Spacing
|
|
40
|
+
--mobile-menu-item-text-color: var(--text-secondary); // @presenter Color
|
|
41
|
+
--mobile-menu-item-active-background-color: var(--bg-raised); // @presenter Color
|
|
42
|
+
--mobile-menu-item-active-text-color: var(--text-primary); // @presenter Color
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @tokens Mobile Menu control button
|
|
46
|
+
* */
|
|
47
|
+
--mobile-menu-control-button-padding-vertical: 0; // @presenter Spacing
|
|
48
|
+
--mobile-menu-control-button-padding-horizontal: var(--spacing-xxs); // @presenter Spacing
|
|
49
|
+
--mobile-menu-control-button-padding: var(--mobile-menu-control-button-padding-vertical) var(--mobile-menu-control-button-padding-horizontal); // @presenter Spacing
|
|
50
|
+
--mobile-menu-control-button-margin-vertical: 0; // @presenter Spacing
|
|
51
|
+
--mobile-menu-control-button-margin-horizontal: var(--spacing-xs); // @presenter Spacing
|
|
52
|
+
--mobile-menu-control-button-margin: var(--mobile-menu-control-button-margin-vertical) var(--mobile-menu-control-button-margin-horizontal); // @presenter Spacing
|
|
53
|
+
--mobile-menu-control-button-font-size: var(--font-size-base); // @presenter FontSize
|
|
54
|
+
--mobile-menu-control-button-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
55
|
+
--mobile-menu-control-button-color: var(--mobile-menu-item-text-color); // @presenter Color
|
|
56
|
+
--mobile-menu-control-button-hover-color: var(--text-primary); // @presenter Color
|
|
57
|
+
--mobile-menu-control-button-text-align: center;
|
|
58
|
+
--mobile-menu-control-button-line-height: var(--line-height-base); // @presenter LineHeight
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @tokens Mobile Menu Login button
|
|
62
|
+
* */
|
|
63
|
+
--mobile-menu-login-button-background: var(--color-primary-bg); // @presenter Color
|
|
64
|
+
--mobile-menu-login-button-color: var(--color-primary-text); // @presenter Color
|
|
65
|
+
--mobile-menu-login-button-hover-color: var(--text-primary); // @presenter Color
|
|
66
|
+
--mobile-menu-login-button-border-color: var(--color-primary-border); // @presenter Color
|
|
67
|
+
--mobile-menu-login-button-border-radius: var(--border-radius-md); // @presenter Spacing
|
|
68
|
+
--mobile-menu-login-button-font-size: var(--font-size-base); // @presenter FontSize
|
|
69
|
+
--mobile-menu-login-button-font-family: inherit; // @presenter FontFamily
|
|
70
|
+
--mobile-menu-login-button-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
71
|
+
--mobile-menu-login-button-line-height: var(--line-height-base); // @presenter LineHeight
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @tokens Mobile Menu Product
|
|
75
|
+
* */
|
|
76
|
+
--mobile-menu-product-name-color: var(--mobile-menu-item-text-color);
|
|
77
|
+
--mobile-menu-product-name-border-radius: var(--mobile-menu-item-radius);
|
|
78
|
+
--mobile-menu-product-name-border: 1px solid var(--border-secondary);
|
|
79
|
+
--mobile-menu-product-name-padding: var(--sidebar-item-padding-vertical) var(--sidebar-item-padding-horizontal);
|
|
80
|
+
--mobile-menu-product-name-margin: var(--spacing-sm) var(--spacing-xs) 0 var(--spacing-xs);
|
|
81
|
+
|
|
82
|
+
// @tokens End
|
|
83
|
+
`;
|
|
84
|
+
exports.menu = (0, styled_components_1.css) `
|
|
85
|
+
/**
|
|
86
|
+
* @tokens Menu
|
|
87
|
+
*/
|
|
88
|
+
--menu-padding: 0;
|
|
89
|
+
--menu-margin: 0;
|
|
90
|
+
--menu-list-style: none;
|
|
91
|
+
--menu-text-color: var(--sidebar-item-text-color);
|
|
92
|
+
|
|
93
|
+
--menu-item-label-align-items: center;
|
|
94
|
+
--menu-item-label-transition: background-color 0.3s, color 0.3s;
|
|
95
|
+
--menu-item-label-word-break: break-word;
|
|
96
|
+
--menu-item-label-margin: 0 var(--sidebar-margin-horizontal);
|
|
97
|
+
--menu-item-label-padding: var(--sidebar-item-padding-vertical) var(--sidebar-item-padding-horizontal);
|
|
98
|
+
|
|
99
|
+
// @tokens End
|
|
100
|
+
`;
|
|
101
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -38,7 +38,7 @@ const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
|
38
38
|
const Search_1 = require("../../components/Search/Search");
|
|
39
39
|
const AuthUserProfile_1 = require("../../components/Profile/AuthUserProfile");
|
|
40
40
|
const hooks_1 = require("../../mocks/hooks");
|
|
41
|
-
const LanguagePicker_1 = require("../../
|
|
41
|
+
const LanguagePicker_1 = require("../../i18n/LanguagePicker");
|
|
42
42
|
const Product_1 = require("../../components/Product");
|
|
43
43
|
const BurgerButton_1 = require("../../components/Navbar/BurgerButton");
|
|
44
44
|
const EmptyNavbarHack = (0, styled_components_1.createGlobalStyle) `
|
|
@@ -88,11 +88,11 @@ function NavbarPresentational(props) {
|
|
|
88
88
|
react_1.default.createElement(Product_1.ProductPicker, null),
|
|
89
89
|
react_1.default.createElement(Navbar_1.NavbarMenu, { menuItems: menu }),
|
|
90
90
|
hideSearch ? null : react_1.default.createElement(Search_1.Search, null),
|
|
91
|
-
react_1.default.createElement(LanguagePicker_1.LanguagePicker, { onChangeLanguage: changeLanguage }),
|
|
92
|
-
hideUserProfile ? null : (react_1.default.createElement(AuthUserProfileWrapper, null,
|
|
93
|
-
react_1.default.createElement(AuthUserProfile_1.AuthUserProfile, null))),
|
|
91
|
+
react_1.default.createElement(LanguagePicker_1.LanguagePicker, { onChangeLanguage: changeLanguage, onlyIcon: true }),
|
|
94
92
|
react_1.default.createElement(ColorModeSwitcherWrapper, { isVisible: isOpen },
|
|
95
|
-
react_1.default.createElement(ColorModeSwitcher_1.ColorModeSwitcher, null))
|
|
93
|
+
react_1.default.createElement(ColorModeSwitcher_1.ColorModeSwitcher, null)),
|
|
94
|
+
hideUserProfile ? null : (react_1.default.createElement(AuthUserProfileWrapper, null,
|
|
95
|
+
react_1.default.createElement(AuthUserProfile_1.AuthUserProfile, null))))));
|
|
96
96
|
}
|
|
97
97
|
exports.NavbarPresentational = NavbarPresentational;
|
|
98
98
|
const ColorModeSwitcherWrapper = styled_components_1.default.div `
|
|
@@ -110,6 +110,8 @@ const AuthUserProfileWrapper = styled_components_1.default.div `
|
|
|
110
110
|
}
|
|
111
111
|
`;
|
|
112
112
|
exports.NavbarContainer = styled_components_1.default.nav `
|
|
113
|
+
border: var(--navbar-border);
|
|
114
|
+
|
|
113
115
|
--text-color: var(--navbar-text-color);
|
|
114
116
|
|
|
115
117
|
height: var(--navbar-height);
|
|
@@ -118,17 +120,13 @@ exports.NavbarContainer = styled_components_1.default.nav `
|
|
|
118
120
|
align-items: center;
|
|
119
121
|
flex-shrink: 0;
|
|
120
122
|
|
|
121
|
-
font-size:
|
|
123
|
+
font-size: var(--navbar-font-size);
|
|
122
124
|
position: sticky;
|
|
123
125
|
top: 0;
|
|
124
126
|
z-index: var(--z-index-raised);
|
|
125
|
-
padding:
|
|
127
|
+
padding: 0;
|
|
126
128
|
background: var(--navbar-background-color);
|
|
127
|
-
font-family: var(--navbar-
|
|
128
|
-
|
|
129
|
-
${({ theme }) => theme.mediaQueries.medium} {
|
|
130
|
-
font-size: 1rem;
|
|
131
|
-
}
|
|
129
|
+
font-family: var(--navbar-font-family);
|
|
132
130
|
|
|
133
131
|
${({ theme }) => theme.mediaQueries.print} {
|
|
134
132
|
background: transparent;
|
|
@@ -141,14 +139,23 @@ exports.NavbarContainer = styled_components_1.default.nav `
|
|
|
141
139
|
margin: 0;
|
|
142
140
|
}
|
|
143
141
|
}
|
|
142
|
+
|
|
143
|
+
${({ theme }) => theme.mediaQueries.medium} {
|
|
144
|
+
padding: var(--navbar-padding);
|
|
145
|
+
}
|
|
144
146
|
`;
|
|
145
147
|
exports.NavbarRow = styled_components_1.default.div `
|
|
146
148
|
display: flex;
|
|
147
149
|
align-items: center;
|
|
148
150
|
justify-content: space-between;
|
|
149
151
|
margin: 0 auto;
|
|
150
|
-
width:
|
|
152
|
+
width: 90%;
|
|
153
|
+
|
|
154
|
+
${({ theme }) => theme.mediaQueries.medium} {
|
|
155
|
+
width: 100%;
|
|
156
|
+
}
|
|
151
157
|
|
|
158
|
+
gap: var(--navbar-menu-items-gap);
|
|
152
159
|
max-width: var(--navbar-container-max-width);
|
|
153
160
|
`;
|
|
154
161
|
//# sourceMappingURL=Navbar.js.map
|
|
@@ -6,7 +6,7 @@ export interface NavbarItemProps {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare function NavbarItem({ navItem, className }: NavbarItemProps): JSX.Element | null;
|
|
9
|
-
export declare const NavbarMenuItemDropdown: import("styled-components").StyledComponent<({ children, className, items, withArrow, triggerEvent, onChange, dataAttributes, }: import("../../components/Dropdown").DropdownProps) => JSX.Element, any, {
|
|
9
|
+
export declare const NavbarMenuItemDropdown: import("styled-components").StyledComponent<({ children, className, items, withArrow, triggerEvent, onChange, dataAttributes, placement, alignment, icon, }: import("../../components/Dropdown").DropdownProps) => JSX.Element, any, {
|
|
10
10
|
dataAttributes: {
|
|
11
11
|
'data-component-name': string;
|
|
12
12
|
};
|
|
@@ -36,6 +36,7 @@ const hooks_1 = require("../../mocks/hooks");
|
|
|
36
36
|
const utils_2 = require("../../utils");
|
|
37
37
|
const telemetry_1 = require("../../mocks/telemetry");
|
|
38
38
|
const Dropdown_1 = require("../../components/Dropdown");
|
|
39
|
+
const icons_1 = require("../../icons");
|
|
39
40
|
function NavbarItem({ navItem, className }) {
|
|
40
41
|
const { pathname } = (0, react_router_dom_1.useLocation)();
|
|
41
42
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
@@ -47,7 +48,8 @@ function NavbarItem({ navItem, className }) {
|
|
|
47
48
|
return (react_1.default.createElement(exports.NavbarMenuItem, { active: isActive, "data-component-name": "Navbar/NavbarItem", className: className, onClick: () => telemetry_1.telemetry.send('navbar_menu_item_clicked', { type: 'link' }) },
|
|
48
49
|
react_1.default.createElement(exports.NavbarLink, { to: item.link, external: item.external, target: item.target, active: isActive },
|
|
49
50
|
item.icon ? react_1.default.createElement(exports.NavbarIcon, { url: item.icon }) : null,
|
|
50
|
-
react_1.default.createElement(NavbarLabel, null, translate(item.labelTranslationKey, item.label))
|
|
51
|
+
react_1.default.createElement(NavbarLabel, null, translate(item.labelTranslationKey, item.label)),
|
|
52
|
+
item.external ? react_1.default.createElement(icons_1.ExternalIcon, null) : null)));
|
|
51
53
|
}
|
|
52
54
|
if (navItem.items) {
|
|
53
55
|
const item = navItem;
|
|
@@ -56,7 +58,8 @@ function NavbarItem({ navItem, className }) {
|
|
|
56
58
|
return (react_1.default.createElement(exports.NavbarMenuItemDropdown, { items: groupItemsComponents, triggerEvent: "hover" },
|
|
57
59
|
react_1.default.createElement(exports.NavbarMenuItem, { active: false, "data-component-name": "Navbar/NavbarItem", className: className, onClick: () => telemetry_1.telemetry.send('navbar_menu_item_clicked', { type: 'group' }) },
|
|
58
60
|
react_1.default.createElement(exports.NavbarIcon, { url: item.icon }),
|
|
59
|
-
react_1.default.createElement(NavbarLabel, null, translate(item.labelTranslationKey, item.label))
|
|
61
|
+
react_1.default.createElement(NavbarLabel, null, translate(item.labelTranslationKey, item.label)),
|
|
62
|
+
item.external ? react_1.default.createElement(icons_1.ExternalIcon, null) : null)));
|
|
60
63
|
}
|
|
61
64
|
return null;
|
|
62
65
|
}
|
|
@@ -72,6 +75,8 @@ exports.NavbarMenuItemDropdown = (0, styled_components_1.default)(Dropdown_1.Dro
|
|
|
72
75
|
}
|
|
73
76
|
`;
|
|
74
77
|
exports.NavbarLink = (0, styled_components_1.default)(Link_1.Link) `
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
75
80
|
color: ${({ active }) => active ? 'var(--navbar-item-active-text-color)' : 'var(--navbar-text-color)'};
|
|
76
81
|
text-decoration: ${({ active }) => active ? 'var(--navbar-item-active-text-decoration)' : 'none'};
|
|
77
82
|
`;
|
|
@@ -79,16 +84,23 @@ exports.NavbarMenuItem = styled_components_1.default.li `
|
|
|
79
84
|
display: inline-block;
|
|
80
85
|
padding: var(--navbar-item-padding-vertical) var(--navbar-item-padding-horizontal);
|
|
81
86
|
text-align: center;
|
|
82
|
-
line-height:
|
|
83
|
-
font-size: var(--navbar-item-font-size);
|
|
84
|
-
border-radius: var(--navbar-item-border-radius);
|
|
87
|
+
line-height: var(--navbar-item-line-height);
|
|
85
88
|
font-weight: var(--navbar-item-font-weight);
|
|
89
|
+
|
|
90
|
+
border-radius: var(--navbar-item-border-radius);
|
|
91
|
+
border-bottom: ${({ active }) => active ? 'var(--navbar-item-active-bottom-border)' : 'var(--navbar-item-bottom-border)'};
|
|
92
|
+
|
|
86
93
|
background: ${({ active }) => active && 'var(--navbar-item-active-background-color)'};
|
|
87
94
|
color: ${({ active }) => active ? 'var(--navbar-item-active-text-color)' : 'var(--navbar-text-color)'};
|
|
95
|
+
|
|
88
96
|
&:hover {
|
|
89
97
|
color: var(--navbar-item-hover-text-color);
|
|
90
98
|
text-decoration: var(--navbar-item-hover-text-decoration);
|
|
91
|
-
|
|
99
|
+
border-bottom: ${({ active }) => !active && 'var(--navbar-item-hover-bottom-border)'};
|
|
100
|
+
background: ${({ active }) => active
|
|
101
|
+
? 'var(--navbar-item-active-background-color)'
|
|
102
|
+
: 'var(--navbar-item-hover-background-color)'};
|
|
103
|
+
|
|
92
104
|
${exports.NavbarLink} {
|
|
93
105
|
color: var(--navbar-item-hover-text-color);
|
|
94
106
|
text-decoration: var(--navbar-item-hover-text-decoration);
|
|
@@ -23,9 +23,9 @@ const NavItemsContainer = styled_components_1.default.ul `
|
|
|
23
23
|
display: none;
|
|
24
24
|
flex-wrap: nowrap;
|
|
25
25
|
align-items: center;
|
|
26
|
-
justify-content:
|
|
26
|
+
justify-content: var(--navbar-menu-justify-content);
|
|
27
27
|
flex: 1;
|
|
28
|
-
gap: var(--navbar-
|
|
28
|
+
gap: var(--navbar-menu-items-gap);
|
|
29
29
|
|
|
30
30
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
31
31
|
display: flex;
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("../../components/Navbar/Navbar"), exports);
|
|
18
18
|
__exportStar(require("../../components/Navbar/NavbarItem"), exports);
|
|
19
19
|
__exportStar(require("../../components/Navbar/NavbarMenu"), exports);
|
|
20
|
+
__exportStar(require("../../components/Navbar/styledVariables"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const navbar: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.navbar = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.navbar = (0, styled_components_1.css) `
|
|
6
|
+
--navbar-background-color: var(--bg-base); // @presenter Color
|
|
7
|
+
--navbar-border-color: var(--border-secondary);
|
|
8
|
+
--navbar-border: 1px solid var(--navbar-border-color);
|
|
9
|
+
|
|
10
|
+
--navbar-text-color: var(--text-secondary); // @presenter Color
|
|
11
|
+
--navbar-height: 64px; // @presenter Spacing
|
|
12
|
+
--navbar-font-size: var(--font-size-base);
|
|
13
|
+
--navbar-padding: 0 var(--spacing-xl); // @presenter Spacing
|
|
14
|
+
--navbar-font-family: var(--font-family-base);
|
|
15
|
+
--navbar-container-max-width: 100%;
|
|
16
|
+
|
|
17
|
+
--navbar-menu-items-gap: var(--spacing-base);
|
|
18
|
+
--navbar-menu-justify-content: flex-start;
|
|
19
|
+
|
|
20
|
+
--navbar-item-font-weight: var(--font-weight-regular);
|
|
21
|
+
|
|
22
|
+
--navbar-item-active-text-color: var(--text-primary);
|
|
23
|
+
--navbar-item-active-text-decoration: none;
|
|
24
|
+
--navbar-item-active-bottom-border: 2px solid var(--navbar-item-active-text-color);
|
|
25
|
+
|
|
26
|
+
--navbar-item-padding-vertical: var(--spacing-xxs);
|
|
27
|
+
--navbar-item-padding-horizontal: var(--spacing-sm);
|
|
28
|
+
--navbar-item-line-height: var(--line-height-base);
|
|
29
|
+
--navbar-item-active-background-color: none;
|
|
30
|
+
--navbar-item-border-radius: 0;
|
|
31
|
+
--navbar-item-bottom-border: 2px solid transparent;
|
|
32
|
+
|
|
33
|
+
--navbar-item-hover-text-color: var(--text-primary);
|
|
34
|
+
--navbar-item-hover-text-decoration: none;
|
|
35
|
+
--navbar-item-hover-background-color: none;
|
|
36
|
+
--navbar-item-hover-bottom-border: 2px solid var(--border-primary);
|
|
37
|
+
|
|
38
|
+
--navbar-item-icon-width: 1.5em; // @presenter Spacing
|
|
39
|
+
--navbar-item-icon-height: 1.5em; // @presenter Spacing
|
|
40
|
+
--navbar-item-icon-margin-right: 0.5em; // @presenter Spacing
|
|
41
|
+
`;
|
|
42
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LogoConfig } from '../../types/portal';
|
|
3
3
|
export type NavbarLogoProps = {
|
|
4
|
-
logo: Pick<LogoConfig, 'image' | 'link' | 'altText'>;
|
|
4
|
+
logo: Pick<LogoConfig, 'image' | 'link' | 'altText' | 'srcSet'>;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function NavbarLogo({ logo, className }: NavbarLogoProps): JSX.Element | null;
|
|
8
|
+
export declare const LogoContainer: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
'data-component-name': string;
|
|
10
|
+
}, "data-component-name">;
|
|
@@ -3,23 +3,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NavbarLogo = void 0;
|
|
6
|
+
exports.LogoContainer = exports.NavbarLogo = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const Link_1 = require("../../mocks/Link");
|
|
10
|
+
const Image_1 = require("../../components/Image/Image");
|
|
10
11
|
const telemetry_1 = require("../../mocks/telemetry");
|
|
11
12
|
function NavbarLogo({ logo, className }) {
|
|
12
|
-
if (!logo.image) {
|
|
13
|
+
if (!logo.image && !logo.srcSet) {
|
|
13
14
|
return null;
|
|
14
15
|
}
|
|
15
|
-
const img = (react_1.default.createElement(
|
|
16
|
-
return logo.link ? react_1.default.createElement(Link_1.Link, { to: logo.link }, img) : img;
|
|
16
|
+
const img = (react_1.default.createElement(Image_1.Image, { className: className, src: logo.image, srcSet: logo.srcSet, alt: logo.altText }));
|
|
17
|
+
return (react_1.default.createElement(exports.LogoContainer, null, logo.link ? (react_1.default.createElement(Link_1.Link, { to: logo.link, onClick: () => telemetry_1.telemetry.send('logo_clicked', {}) }, img)) : (img)));
|
|
17
18
|
}
|
|
18
19
|
exports.NavbarLogo = NavbarLogo;
|
|
19
|
-
|
|
20
|
+
exports.LogoContainer = styled_components_1.default.div.attrs({
|
|
21
|
+
'data-component-name': 'NavbarLogo/NavbarLogo',
|
|
22
|
+
}) `
|
|
20
23
|
max-width: var(--navbar-logo-max-width);
|
|
21
24
|
max-height: var(--navbar-logo-max-height);
|
|
22
25
|
height: var(--navbar-logo-height);
|
|
23
26
|
margin: var(--navbar-logo-margin);
|
|
27
|
+
|
|
28
|
+
img {
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
max-height: 100%;
|
|
31
|
+
}
|
|
24
32
|
`;
|
|
25
33
|
//# sourceMappingURL=NavbarLogo.js.map
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../components/NavbarLogo/NavbarLogo"), exports);
|
|
18
|
+
__exportStar(require("../../components/NavbarLogo/styledVariables"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const logo: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logo = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.logo = (0, styled_components_1.css) `
|
|
6
|
+
/**
|
|
7
|
+
* @tokens Logo
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
--navbar-logo-height: 2rem; // @presenter Spacing
|
|
11
|
+
--navbar-logo-width: auto;
|
|
12
|
+
--navbar-logo-margin: 16px; // @presenter Spacing
|
|
13
|
+
--navbar-logo-max-width: 285px; // @presenter Spacing
|
|
14
|
+
--navbar-logo-max-height: 285px; // @presenter Spacing
|
|
15
|
+
|
|
16
|
+
// @tokens End
|
|
17
|
+
`;
|
|
18
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -125,7 +125,7 @@ function DevOnboardingTryItSecurity(props) {
|
|
|
125
125
|
setAppId(value);
|
|
126
126
|
loadAppCredentials(value);
|
|
127
127
|
} }),
|
|
128
|
-
React.createElement(UseKeyButton, { disabled: (!selectedAppSecret && hasApiAccess) || appLoading,
|
|
128
|
+
React.createElement(UseKeyButton, { disabled: (!selectedAppSecret && hasApiAccess) || appLoading, onClick: () => {
|
|
129
129
|
if (selectedAppSecret) {
|
|
130
130
|
props.onChange(selectedAppSecret);
|
|
131
131
|
}
|
|
@@ -165,7 +165,7 @@ const FormLabel = styled_components_1.default.label `
|
|
|
165
165
|
display: inline-block;
|
|
166
166
|
content: '*';
|
|
167
167
|
margin-left: 4px;
|
|
168
|
-
color: var(--color-error
|
|
168
|
+
color: var(--color-error);
|
|
169
169
|
}
|
|
170
170
|
`}
|
|
171
171
|
`;
|
|
@@ -104,7 +104,7 @@ box-sizing: border-box;
|
|
|
104
104
|
&,
|
|
105
105
|
&:hover,
|
|
106
106
|
&:focus-within {
|
|
107
|
-
border: 1px solid var(--border-
|
|
107
|
+
border: 1px solid var(--border-primary);
|
|
108
108
|
box-shadow: none;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -122,9 +122,9 @@ box-sizing: border-box;
|
|
|
122
122
|
appearance: none;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
|
|
125
|
-
color: var(--text-
|
|
125
|
+
color: var(--text-secondary);
|
|
126
126
|
line-height: inherit;
|
|
127
|
-
font-size:
|
|
127
|
+
font-size: var(--font-size-base);
|
|
128
128
|
font-family: inherit;
|
|
129
129
|
padding: var(--docs-dropdown-padding);
|
|
130
130
|
${({ variant }) => (variant === 'dark' ? darkDropdownStyle : '')};
|
|
@@ -43,7 +43,7 @@ function NextButton({ nextPage, className }) {
|
|
|
43
43
|
const defaultText = (((_b = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _b === void 0 ? void 0 : _b.text) || 'Next to {label}').replace('{label}', nextPageText);
|
|
44
44
|
const translationKey = 'theme.page.nextButton';
|
|
45
45
|
const text = translate(translationKey, { label: nextPageText, defaultValue: defaultText });
|
|
46
|
-
return (React.createElement(StyledButton, {
|
|
46
|
+
return (React.createElement(StyledButton, { size: "large", to: nextPage.link, "data-component-name": "PageNavigation/NextPageLink", "data-translation-key": translationKey, extraClass: className }, text));
|
|
47
47
|
}
|
|
48
48
|
exports.NextButton = NextButton;
|
|
49
49
|
const StyledButton = (0, styled_components_1.default)(Button_1.Button) `
|
|
@@ -23,7 +23,7 @@ function PreviousButton({ prevPage, className }) {
|
|
|
23
23
|
label: prevPageText,
|
|
24
24
|
defaultValue: defaultText,
|
|
25
25
|
});
|
|
26
|
-
return (react_1.default.createElement(StyledButton, {
|
|
26
|
+
return (react_1.default.createElement(StyledButton, { size: "large", to: prevPage.link, "data-component-name": "PageNavigation/PreviousPageLink", "data-translation-key": translationKey, extraClass: className }, text));
|
|
27
27
|
}
|
|
28
28
|
exports.PreviousButton = PreviousButton;
|
|
29
29
|
const StyledButton = (0, styled_components_1.default)(Button_1.Button) `
|
|
@@ -13,7 +13,9 @@ exports.PanelHeader = styled_components_1.default.div.attrs(({ className }) => (
|
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: space-between;
|
|
16
|
+
min-height: 40px;
|
|
16
17
|
white-space: var(--panel-heading-white-space-local);
|
|
18
|
+
color: var(--panel-heading-text-color);
|
|
17
19
|
|
|
18
20
|
cursor: pointer;
|
|
19
21
|
|
|
@@ -13,10 +13,6 @@ exports.PanelHeaderTitle = styled_components_1.default.span.attrs(({ className }
|
|
|
13
13
|
font-weight: var(--panel-heading-font-weight-local);
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
text-overflow: ellipsis;
|
|
16
|
-
|
|
17
|
-
/* changed from var(--text-color-inverse) to var(--text-color)
|
|
18
|
-
should change several components in openapi/graphql reference-docs to use inverse color
|
|
19
|
-
*/
|
|
20
16
|
color: var(--panel-heading-text-color);
|
|
21
17
|
`;
|
|
22
18
|
//# sourceMappingURL=PanelHeaderTitle.js.map
|
|
@@ -3,3 +3,4 @@ export * from '../../components/Panel/PanelBody';
|
|
|
3
3
|
export * from '../../components/Panel/PanelComponent';
|
|
4
4
|
export * from '../../components/Panel/PanelHeader';
|
|
5
5
|
export * from '../../components/Panel/PanelHeaderTitle';
|
|
6
|
+
export * from '../../components/Panel/styledVariables';
|
|
@@ -19,4 +19,5 @@ __exportStar(require("../../components/Panel/PanelBody"), exports);
|
|
|
19
19
|
__exportStar(require("../../components/Panel/PanelComponent"), exports);
|
|
20
20
|
__exportStar(require("../../components/Panel/PanelHeader"), exports);
|
|
21
21
|
__exportStar(require("../../components/Panel/PanelHeaderTitle"), exports);
|
|
22
|
+
__exportStar(require("../../components/Panel/styledVariables"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|