@redocly/theme 0.18.3-patch.8 → 0.18.4
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/I18n/LanguagePicker.d.ts +2 -7
- package/lib/I18n/LanguagePicker.js +12 -27
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -15
- package/lib/components/Breadcrumbs/Breadcrumb.js +5 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -6
- package/lib/components/Breadcrumbs/index.d.ts +0 -1
- package/lib/components/Breadcrumbs/index.js +0 -1
- package/lib/components/Button/Button.d.ts +3 -6
- package/lib/components/Button/Button.js +41 -41
- package/lib/components/Button/index.d.ts +0 -1
- package/lib/components/Button/index.js +0 -1
- package/lib/components/Catalog/Catalog.d.ts +0 -6
- package/lib/components/Catalog/Catalog.js +103 -108
- package/lib/components/Catalog/CatalogCard.js +58 -89
- package/lib/components/Catalog/index.d.ts +3 -4
- package/lib/components/Catalog/index.js +3 -4
- package/lib/components/CodeBlock/CodeBlockContainer.js +10 -38
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +4 -3
- package/lib/components/CodeBlock/CodeBlockControlButton.js +19 -5
- package/lib/components/CodeBlock/CodeBlockControls.js +5 -8
- package/lib/components/CodeBlock/index.d.ts +0 -1
- package/lib/components/CodeBlock/index.js +0 -1
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +1 -0
- package/lib/components/Dropdown/Dropdown.d.ts +3 -9
- package/lib/components/Dropdown/Dropdown.js +4 -7
- package/lib/components/Dropdown/index.d.ts +0 -1
- package/lib/components/Dropdown/index.js +0 -1
- package/lib/components/EditPageButton/EditPageButton.js +1 -5
- package/lib/components/Feedback/Comment.js +0 -5
- package/lib/components/Feedback/Rating.js +1 -5
- package/lib/components/Feedback/Reasons.js +1 -6
- package/lib/components/Feedback/Sentiment.js +0 -5
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.d.ts +1 -3
- package/lib/components/Filter/Filter.js +80 -113
- package/lib/components/Filter/index.d.ts +0 -2
- package/lib/components/Filter/index.js +0 -2
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +3 -4
- package/lib/components/Footer/Footer.js +10 -28
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +63 -55
- package/lib/components/Footer/FooterColumns.js +4 -6
- package/lib/components/Footer/FooterCopyright.js +6 -11
- package/lib/components/Footer/index.d.ts +0 -1
- package/lib/components/Footer/index.js +0 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/LastUpdated/LastUpdated.js +0 -1
- package/lib/components/Markdown/Admonition.js +9 -12
- package/lib/components/Markdown/MarkdownWrapper.js +4 -2
- package/lib/components/Markdown/Mermaid.js +1 -4
- package/lib/components/Markdown/index.d.ts +0 -1
- package/lib/components/Markdown/index.js +0 -1
- package/lib/components/Menu/Menu.js +7 -5
- package/lib/components/Menu/MenuGroup.js +7 -12
- package/lib/components/Menu/MenuItemLabel.js +13 -9
- package/lib/components/Menu/MobileMenu.js +25 -20
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/index.d.ts +0 -1
- package/lib/components/Menu/index.js +0 -1
- package/lib/components/{Profile → Navbar}/MobileUserProfile.js +24 -12
- package/lib/components/Navbar/Navbar.js +11 -10
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +4 -11
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +0 -1
- package/lib/components/Navbar/index.js +0 -1
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +1 -4
- package/lib/components/NavbarLogo/NavbarLogo.js +5 -13
- package/lib/components/NavbarLogo/index.d.ts +0 -1
- package/lib/components/NavbarLogo/index.js +0 -1
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/OperationBadge/OperationBadge.d.ts +6 -0
- package/lib/components/OperationBadge/OperationBadge.js +68 -0
- package/lib/components/OperationBadge/index.d.ts +1 -0
- package/lib/{icons/LanguageIcon → components/OperationBadge}/index.js +1 -1
- package/lib/components/Panel/PanelHeader.js +0 -2
- package/lib/components/Panel/PanelHeaderTitle.js +4 -0
- package/lib/components/Panel/index.d.ts +0 -1
- package/lib/components/Panel/index.js +0 -1
- package/lib/components/Product/ProductPicker.js +5 -17
- package/lib/components/Product/index.d.ts +0 -1
- package/lib/components/Product/index.js +0 -1
- package/lib/components/Profile/LoginLink.js +2 -1
- package/lib/components/Profile/Profile.js +22 -3
- package/lib/components/Profile/UserProfile.js +9 -21
- package/lib/components/Profile/index.d.ts +0 -1
- package/lib/components/Profile/index.js +0 -15
- package/lib/components/Search/CancelSearch.js +14 -2
- package/lib/components/Search/ProductTag.js +8 -8
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +2 -0
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +4 -4
- package/lib/components/Search/SearchTrigger.js +5 -4
- package/lib/components/Search/ShortcutKey.js +5 -1
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +0 -1
- package/lib/components/Search/index.js +0 -1
- package/lib/components/Select/Select.d.ts +9 -21
- package/lib/components/Select/Select.js +17 -28
- package/lib/components/Select/index.d.ts +0 -1
- package/lib/components/Select/index.js +0 -1
- package/lib/components/Separator/Separator.js +3 -11
- package/lib/components/Separator/SeparatorItem.js +9 -6
- package/lib/components/Separator/SeparatorLine.js +3 -7
- package/lib/components/Sidebar/ApiCallItem.d.ts +6 -2
- package/lib/components/Sidebar/ApiCallItem.js +13 -17
- package/lib/components/Sidebar/FooterWrapper.js +4 -3
- package/lib/components/Sidebar/HeaderWrapper.js +3 -3
- package/lib/components/Sidebar/VersionPicker.d.ts +3 -3
- package/lib/components/Sidebar/VersionPicker.js +4 -5
- package/lib/components/Sidebar/index.d.ts +0 -1
- package/lib/components/Sidebar/index.js +0 -1
- package/lib/components/Sidebar/types.d.ts +0 -1
- package/lib/components/SidebarActions/CollapseSidebarButton.js +1 -41
- package/lib/components/SidebarActions/styled.js +21 -29
- package/lib/components/TableOfContent/TableOfContent.js +3 -2
- package/lib/components/TableOfContent/index.d.ts +0 -1
- package/lib/components/TableOfContent/index.js +0 -1
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tags/Tags.d.ts +5 -0
- package/lib/components/Tags/Tags.js +32 -0
- package/lib/components/Tags/index.d.ts +1 -0
- package/lib/components/{Image → Tags}/index.js +1 -1
- package/lib/components/Tiles/ThinTile.js +5 -7
- package/lib/components/Tiles/TileHeader.js +1 -1
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tiles/WideTile.js +8 -10
- package/lib/components/Tooltip/index.d.ts +0 -1
- package/lib/components/Tooltip/index.js +0 -1
- package/lib/components/Typography/SectionHeader.js +2 -2
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +2 -1
- package/lib/config.d.ts +0 -113
- package/lib/config.js +3 -27
- package/lib/globalStyle.js +1983 -602
- package/lib/hooks/useMobileMenu.js +6 -5
- package/lib/icons/AlertIcon/AlertIcon.js +5 -0
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- 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 +2 -1
- 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/ExpandIcon/ExpandIcon.d.ts +2 -1
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/FileIcon/FileIcon.d.ts +2 -1
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/ReportIcon/ReportIcon.d.ts +2 -1
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/SelectIcon/SelectIcon.d.ts +2 -1
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +0 -4
- package/lib/icons/index.js +0 -4
- package/lib/layouts/Forbidden.js +0 -4
- package/lib/layouts/NotFound.js +0 -4
- package/lib/types/portal/src/shared/types/catalog.d.ts +1 -5
- package/lib/types/portal/src/shared/types/nav.d.ts +0 -5
- package/lib/ui/ArrowBack.js +1 -0
- 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 +84 -217
- package/lib/utils/css-variables.js +1 -1
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +0 -1
- package/package.json +1 -1
- package/src/I18n/LanguagePicker.tsx +21 -48
- package/src/I18n/index.ts +0 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +5 -2
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -6
- package/src/components/Breadcrumbs/index.ts +0 -1
- package/src/components/Button/Button.tsx +47 -53
- package/src/components/Button/index.ts +0 -1
- package/src/components/Catalog/Catalog.tsx +120 -135
- package/src/components/Catalog/CatalogCard.tsx +58 -106
- package/src/components/Catalog/index.tsx +3 -0
- package/src/components/CodeBlock/CodeBlockContainer.tsx +9 -17
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +19 -6
- package/src/components/CodeBlock/CodeBlockControls.tsx +5 -8
- package/src/components/CodeBlock/index.ts +0 -1
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -0
- package/src/components/Dropdown/Dropdown.tsx +5 -14
- package/src/components/Dropdown/index.ts +0 -1
- package/src/components/EditPageButton/EditPageButton.tsx +1 -5
- package/src/components/Feedback/Comment.tsx +0 -5
- package/src/components/Feedback/Rating.tsx +1 -5
- package/src/components/Feedback/Reasons.tsx +1 -6
- package/src/components/Feedback/Sentiment.tsx +0 -5
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +94 -150
- package/src/components/Filter/index.ts +0 -2
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +10 -32
- package/src/components/Footer/FooterColumn.tsx +63 -82
- package/src/components/Footer/FooterColumns.tsx +4 -6
- package/src/components/Footer/FooterCopyright.tsx +7 -13
- package/src/components/Footer/index.ts +0 -1
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LastUpdated/LastUpdated.tsx +2 -1
- package/src/components/Markdown/Admonition.tsx +8 -13
- package/src/components/Markdown/MarkdownWrapper.tsx +4 -2
- package/src/components/Markdown/Mermaid.tsx +1 -4
- package/src/components/Markdown/index.ts +0 -1
- package/src/components/Menu/Menu.tsx +7 -5
- package/src/components/Menu/MenuGroup.tsx +7 -15
- package/src/components/Menu/MenuItemLabel.tsx +13 -9
- package/src/components/Menu/MobileMenu.tsx +25 -20
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +0 -1
- package/src/components/{Profile → Navbar}/MobileUserProfile.tsx +29 -12
- package/src/components/Navbar/Navbar.tsx +11 -10
- package/src/components/Navbar/NavbarItem.tsx +4 -13
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +0 -1
- package/src/components/NavbarLogo/NavbarLogo.tsx +11 -24
- package/src/components/NavbarLogo/index.ts +0 -1
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +2 -1
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/OperationBadge/OperationBadge.ts +62 -0
- package/src/components/OperationBadge/index.ts +1 -0
- package/src/components/Panel/PanelHeader.ts +0 -2
- package/src/components/Panel/PanelHeaderTitle.ts +4 -0
- package/src/components/Panel/index.ts +0 -1
- package/src/components/Product/ProductPicker.tsx +13 -18
- package/src/components/Product/index.ts +0 -1
- package/src/components/Profile/LoginLink.tsx +2 -1
- package/src/components/Profile/Profile.tsx +24 -1
- package/src/components/Profile/UserProfile.tsx +8 -20
- package/src/components/Profile/index.ts +0 -1
- package/src/components/Search/CancelSearch.tsx +15 -2
- package/src/components/Search/ProductTag.tsx +8 -8
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +2 -0
- package/src/components/Search/SearchIcon.tsx +5 -10
- package/src/components/Search/SearchItem.tsx +4 -4
- package/src/components/Search/SearchTrigger.tsx +5 -4
- package/src/components/Search/ShortcutKey.tsx +5 -1
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +0 -1
- package/src/components/Select/Select.tsx +31 -66
- package/src/components/Select/index.ts +0 -1
- package/src/components/Separator/Separator.tsx +3 -17
- package/src/components/Separator/SeparatorItem.tsx +9 -6
- package/src/components/Separator/SeparatorLine.tsx +3 -7
- package/src/components/Sidebar/ApiCallItem.tsx +13 -17
- package/src/components/Sidebar/FooterWrapper.tsx +4 -3
- package/src/components/Sidebar/HeaderWrapper.tsx +3 -3
- package/src/components/Sidebar/VersionPicker.tsx +4 -5
- package/src/components/Sidebar/index.ts +0 -1
- package/src/components/Sidebar/types.ts +0 -1
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +2 -22
- package/src/components/SidebarActions/styled.tsx +30 -29
- package/src/components/TableOfContent/TableOfContent.tsx +3 -2
- package/src/components/TableOfContent/index.ts +0 -1
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tags/Tags.tsx +36 -0
- package/src/components/Tags/index.ts +1 -0
- package/src/components/Tiles/ThinTile.tsx +5 -7
- package/src/components/Tiles/TileHeader.ts +1 -1
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tiles/WideTile.tsx +8 -10
- package/src/components/Tooltip/index.ts +0 -1
- package/src/components/Typography/SectionHeader.ts +2 -2
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +2 -1
- package/src/config.ts +1 -30
- package/src/globalStyle.ts +1999 -597
- package/src/hooks/useMobileMenu.ts +4 -3
- package/src/icons/AlertIcon/AlertIcon.tsx +5 -0
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +5 -4
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/ExpandIcon/ExpandIcon.tsx +6 -5
- package/src/icons/FileIcon/FileIcon.tsx +3 -2
- package/src/icons/ReportIcon/ReportIcon.tsx +4 -3
- package/src/icons/SelectIcon/SelectIcon.tsx +6 -5
- package/src/icons/index.ts +0 -4
- package/src/layouts/Forbidden.tsx +0 -4
- package/src/layouts/NotFound.tsx +0 -4
- package/src/types/portal/src/shared/types/catalog.ts +1 -7
- package/src/types/portal/src/shared/types/nav.ts +0 -5
- package/src/ui/ArrowBack.tsx +1 -0
- 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 +84 -217
- package/src/utils/css-variables.ts +2 -4
- package/src/utils/index.ts +0 -1
- package/lib/I18n/styledVariables.d.ts +0 -1
- package/lib/I18n/styledVariables.js +0 -40
- package/lib/components/Breadcrumbs/styledVariables.d.ts +0 -1
- package/lib/components/Breadcrumbs/styledVariables.js +0 -20
- package/lib/components/Button/styledVariables.d.ts +0 -1
- package/lib/components/Button/styledVariables.js +0 -107
- package/lib/components/Catalog/styledVariables.d.ts +0 -1
- package/lib/components/Catalog/styledVariables.js +0 -96
- package/lib/components/CodeBlock/styledVariables.d.ts +0 -1
- package/lib/components/CodeBlock/styledVariables.js +0 -92
- package/lib/components/Dropdown/styledVariables.d.ts +0 -1
- package/lib/components/Dropdown/styledVariables.js +0 -30
- package/lib/components/Filter/FilterContent.d.ts +0 -13
- package/lib/components/Filter/FilterContent.js +0 -60
- package/lib/components/Filter/FilterPopover.d.ts +0 -13
- package/lib/components/Filter/FilterPopover.js +0 -109
- package/lib/components/Filter/FilterTag.d.ts +0 -7
- package/lib/components/Filter/FilterTag.js +0 -33
- package/lib/components/Filter/FilterTags.d.ts +0 -7
- package/lib/components/Filter/FilterTags.js +0 -29
- package/lib/components/Filter/styledVariables.d.ts +0 -1
- package/lib/components/Filter/styledVariables.js +0 -112
- package/lib/components/Footer/styledVariables.d.ts +0 -1
- package/lib/components/Footer/styledVariables.js +0 -61
- package/lib/components/Image/Image.d.ts +0 -9
- package/lib/components/Image/Image.js +0 -31
- package/lib/components/Image/index.d.ts +0 -1
- package/lib/components/LastUpdated/index.d.ts +0 -1
- package/lib/components/LastUpdated/index.js +0 -18
- package/lib/components/LastUpdated/styledVariables.d.ts +0 -1
- package/lib/components/LastUpdated/styledVariables.js +0 -11
- package/lib/components/Markdown/styledVariables.d.ts +0 -3
- package/lib/components/Markdown/styledVariables.js +0 -231
- package/lib/components/Menu/styledVariables.d.ts +0 -2
- package/lib/components/Menu/styledVariables.js +0 -101
- package/lib/components/Navbar/styledVariables.d.ts +0 -1
- package/lib/components/Navbar/styledVariables.js +0 -43
- package/lib/components/NavbarLogo/styledVariables.d.ts +0 -1
- package/lib/components/NavbarLogo/styledVariables.js +0 -18
- package/lib/components/Panel/styledVariables.d.ts +0 -2
- package/lib/components/Panel/styledVariables.js +0 -481
- package/lib/components/Product/styledVariables.d.ts +0 -2
- package/lib/components/Product/styledVariables.js +0 -41
- package/lib/components/Profile/UserProfileData.d.ts +0 -9
- package/lib/components/Profile/UserProfileData.js +0 -35
- package/lib/components/Profile/styledVariables.d.ts +0 -2
- package/lib/components/Profile/styledVariables.js +0 -55
- package/lib/components/Search/styledVariables.d.ts +0 -1
- package/lib/components/Search/styledVariables.js +0 -98
- package/lib/components/Select/styledVariables.d.ts +0 -1
- package/lib/components/Select/styledVariables.js +0 -34
- package/lib/components/Sidebar/styledVariables.d.ts +0 -2
- package/lib/components/Sidebar/styledVariables.js +0 -216
- package/lib/components/TableOfContent/styledVariables.d.ts +0 -1
- package/lib/components/TableOfContent/styledVariables.js +0 -46
- package/lib/components/Tag/Tag.d.ts +0 -18
- package/lib/components/Tag/Tag.js +0 -45
- package/lib/components/Tag/index.d.ts +0 -2
- package/lib/components/Tag/index.js +0 -19
- package/lib/components/Tag/styledVariables.d.ts +0 -1
- package/lib/components/Tag/styledVariables.js +0 -136
- package/lib/components/Tooltip/styledVariables.d.ts +0 -1
- package/lib/components/Tooltip/styledVariables.js +0 -21
- package/lib/hooks/useModalScrollLock.d.ts +0 -1
- package/lib/hooks/useModalScrollLock.js +0 -16
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +0 -6
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +0 -28
- package/lib/icons/CheckboxIcon/index.d.ts +0 -1
- package/lib/icons/CheckboxIcon/index.js +0 -6
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +0 -4
- package/lib/icons/ErrorIcon/ErrorIcon.js +0 -14
- package/lib/icons/ErrorIcon/index.d.ts +0 -1
- package/lib/icons/ErrorIcon/index.js +0 -18
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +0 -4
- package/lib/icons/LanguageIcon/LanguageIcon.js +0 -14
- package/lib/icons/LanguageIcon/index.d.ts +0 -1
- package/lib/icons/PlusIcon/PlusIcon.d.ts +0 -5
- package/lib/icons/PlusIcon/PlusIcon.js +0 -16
- package/lib/icons/PlusIcon/index.d.ts +0 -1
- package/lib/icons/PlusIcon/index.js +0 -18
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +0 -4
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +0 -15
- package/lib/icons/PointingArrowIcon/index.d.ts +0 -1
- package/lib/icons/PointingArrowIcon/index.js +0 -18
- package/lib/utils/tags-parser.d.ts +0 -1
- package/lib/utils/tags-parser.js +0 -10
- package/src/I18n/styledVariables.ts +0 -37
- package/src/components/Breadcrumbs/styledVariables.ts +0 -17
- package/src/components/Button/styledVariables.ts +0 -104
- package/src/components/Catalog/index.ts +0 -4
- package/src/components/Catalog/styledVariables.ts +0 -93
- package/src/components/CodeBlock/styledVariables.ts +0 -89
- package/src/components/Dropdown/styledVariables.ts +0 -27
- package/src/components/Filter/FilterContent.tsx +0 -95
- package/src/components/Filter/FilterPopover.tsx +0 -150
- package/src/components/Filter/FilterTag.tsx +0 -37
- package/src/components/Filter/FilterTags.tsx +0 -39
- package/src/components/Filter/styledVariables.ts +0 -109
- package/src/components/Footer/styledVariables.ts +0 -58
- package/src/components/Image/Image.tsx +0 -47
- package/src/components/Image/index.ts +0 -1
- package/src/components/LastUpdated/index.ts +0 -1
- package/src/components/LastUpdated/styledVariables.ts +0 -8
- package/src/components/Markdown/styledVariables.ts +0 -230
- package/src/components/Menu/styledVariables.ts +0 -99
- package/src/components/Navbar/styledVariables.ts +0 -40
- package/src/components/NavbarLogo/styledVariables.ts +0 -15
- package/src/components/Panel/styledVariables.ts +0 -479
- package/src/components/Product/styledVariables.ts +0 -39
- package/src/components/Profile/UserProfileData.tsx +0 -40
- package/src/components/Profile/styledVariables.ts +0 -53
- package/src/components/Search/styledVariables.ts +0 -95
- package/src/components/Select/styledVariables.ts +0 -31
- package/src/components/Sidebar/styledVariables.ts +0 -214
- package/src/components/TableOfContent/styledVariables.ts +0 -43
- package/src/components/Tag/Tag.tsx +0 -71
- package/src/components/Tag/index.ts +0 -2
- package/src/components/Tag/styledVariables.ts +0 -133
- package/src/components/Tooltip/styledVariables.ts +0 -18
- package/src/hooks/useModalScrollLock.ts +0 -12
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +0 -64
- package/src/icons/CheckboxIcon/index.ts +0 -1
- package/src/icons/ErrorIcon/ErrorIcon.tsx +0 -15
- package/src/icons/ErrorIcon/index.ts +0 -1
- package/src/icons/LanguageIcon/LanguageIcon.tsx +0 -15
- package/src/icons/LanguageIcon/index.ts +0 -1
- package/src/icons/PlusIcon/PlusIcon.tsx +0 -25
- package/src/icons/PlusIcon/index.ts +0 -1
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +0 -16
- package/src/icons/PointingArrowIcon/index.ts +0 -1
- package/src/utils/tags-parser.ts +0 -8
- /package/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { LanguagePicker } from '@theme';
|
|
4
3
|
|
|
5
|
-
import {
|
|
4
|
+
import { useTranslate } from '@portal/hooks';
|
|
6
5
|
|
|
7
6
|
interface FooterCopyrightProps {
|
|
8
7
|
copyrightText: string;
|
|
@@ -14,8 +13,6 @@ export function FooterCopyright({
|
|
|
14
13
|
className,
|
|
15
14
|
}: FooterCopyrightProps): JSX.Element | null {
|
|
16
15
|
const { translate } = useTranslate();
|
|
17
|
-
const { changeLanguage } = useI18n();
|
|
18
|
-
|
|
19
16
|
const translationKeys = {
|
|
20
17
|
copyrightText: 'theme.footer.copyrightText',
|
|
21
18
|
};
|
|
@@ -25,24 +22,21 @@ export function FooterCopyright({
|
|
|
25
22
|
data-component-name="Footer/FooterCopyright"
|
|
26
23
|
data-translation-key={translationKeys.copyrightText}
|
|
27
24
|
>
|
|
28
|
-
|
|
29
|
-
<LanguagePicker onChangeLanguage={changeLanguage} placement="top" alignment="end" />
|
|
25
|
+
{translate(translationKeys.copyrightText, copyrightText)}
|
|
30
26
|
</Wrapper>
|
|
31
27
|
) : null;
|
|
32
28
|
}
|
|
33
29
|
|
|
34
30
|
const Wrapper = styled.section`
|
|
35
31
|
display: flex;
|
|
36
|
-
justify-content:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
justify-content: center;
|
|
33
|
+
font-size: 0.875em;
|
|
34
|
+
padding: 1.5em 3em;
|
|
35
|
+
font-weight: var(--font-weight-bold);
|
|
40
36
|
background-color: var(--footer-background-color);
|
|
41
37
|
color: var(--footer-text-color);
|
|
42
|
-
text-align:
|
|
38
|
+
text-align: center;
|
|
43
39
|
span {
|
|
44
40
|
max-width: var(--footer-container-max-width);
|
|
45
41
|
}
|
|
46
42
|
`;
|
|
47
|
-
|
|
48
|
-
const Label = styled.div``;
|
|
@@ -2,4 +2,3 @@ export * from '@theme/components/Footer/Footer';
|
|
|
2
2
|
export * from '@theme/components/Footer/FooterColumn';
|
|
3
3
|
export * from '@theme/components/Footer/FooterColumns';
|
|
4
4
|
export * from '@theme/components/Footer/FooterCopyright';
|
|
5
|
-
export * from '@theme/components/Footer/styledVariables';
|
|
@@ -108,7 +108,7 @@ export const JsonViewer = styled(Json).attrs(() => ({
|
|
|
108
108
|
}))<JsonProps>`
|
|
109
109
|
.redoc-json code {
|
|
110
110
|
background-color: var(--panel-samples-code-block-background-color);
|
|
111
|
-
color: var(--text-
|
|
111
|
+
color: var(--text-color-inverse);
|
|
112
112
|
padding: inherit;
|
|
113
113
|
border: none;
|
|
114
114
|
}
|
|
@@ -175,7 +175,7 @@ export const JsonViewer = styled(Json).attrs(() => ({
|
|
|
175
175
|
background-color: transparent;
|
|
176
176
|
border: 0;
|
|
177
177
|
padding: 1px;
|
|
178
|
-
color:
|
|
178
|
+
color: #fff;
|
|
179
179
|
width: var(--size);
|
|
180
180
|
height: var(--size);
|
|
181
181
|
margin-left: calc((var(--size) + var(--margin-right)) * -1);
|
|
@@ -51,7 +51,8 @@ export function LastUpdated(props: LastUpdatedProps): JSX.Element | null {
|
|
|
51
51
|
data-print-datetime={isoDate}
|
|
52
52
|
data-translation-key={translationKey}
|
|
53
53
|
>
|
|
54
|
-
{text}
|
|
54
|
+
{text}
|
|
55
|
+
{/* TODO: fix issue with snapshot tests - they should not depend on current date */}
|
|
55
56
|
<time dateTime={isoDate}>{lastUpdatedString}</time>
|
|
56
57
|
</Wrapper>
|
|
57
58
|
);
|
|
@@ -31,20 +31,18 @@ export function Admonition({
|
|
|
31
31
|
data-hash={dataHash}
|
|
32
32
|
>
|
|
33
33
|
<AlertIcon type={type} />
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
<Content>{children}</Content>
|
|
37
|
-
</TextContainer>
|
|
34
|
+
{name ? <Heading type={type}>{name}</Heading> : null}
|
|
35
|
+
<Content>{children}</Content>
|
|
38
36
|
</Wrapper>
|
|
39
37
|
);
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
const Wrapper = styled.div<AdmonitionTypeProps>`
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
gap: var(--spacing-base);
|
|
41
|
+
position: relative;
|
|
42
|
+
align-items: center;
|
|
46
43
|
margin: var(--admonition-margin-vertical) var(--admonition-margin-horizontal);
|
|
47
44
|
padding: var(--admonition-padding-vertical) var(--admonition-padding-horizontal);
|
|
45
|
+
padding-left: calc(var(--admonition-padding-horizontal) * 2 + var(--admonition-icon-size));
|
|
48
46
|
border-radius: var(--admonition-border-radius);
|
|
49
47
|
font-size: var(--admonition-font-size);
|
|
50
48
|
font-weight: var(--admonition-font-weight);
|
|
@@ -60,13 +58,10 @@ const Wrapper = styled.div<AdmonitionTypeProps>`
|
|
|
60
58
|
`}
|
|
61
59
|
`;
|
|
62
60
|
|
|
63
|
-
const
|
|
64
|
-
display:
|
|
65
|
-
|
|
66
|
-
gap: var(--spacing-unit);
|
|
67
|
-
`;
|
|
61
|
+
const Heading = styled.h5<AdmonitionTypeProps>`
|
|
62
|
+
display: block;
|
|
63
|
+
margin: 0 0 10px;
|
|
68
64
|
|
|
69
|
-
const Heading = styled.div<AdmonitionTypeProps>`
|
|
70
65
|
letter-spacing: var(--admonition-heading-letter-spacing);
|
|
71
66
|
color: ${({ type }) => `var(--admonition-${type}-heading-text-color)`};
|
|
72
67
|
|
|
@@ -149,7 +149,7 @@ export const MarkdownWrapper = styled.main.attrs<{
|
|
|
149
149
|
font-weight: var(--font-weight-regular);
|
|
150
150
|
padding: 0;
|
|
151
151
|
|
|
152
|
-
color: var(--text-
|
|
152
|
+
color: var(--text-color);
|
|
153
153
|
font-size: var(--font-size-base);
|
|
154
154
|
font-family: var(--font-family-base);
|
|
155
155
|
line-height: var(--line-height-base);
|
|
@@ -207,7 +207,7 @@ export const MarkdownWrapper = styled.main.attrs<{
|
|
|
207
207
|
margin: 1.125em 0;
|
|
208
208
|
|
|
209
209
|
summary {
|
|
210
|
-
color: var(--text-
|
|
210
|
+
color: var(--text-color);
|
|
211
211
|
font-weight: var(--font-weight-regular);
|
|
212
212
|
outline: 0;
|
|
213
213
|
padding: 0;
|
|
@@ -317,6 +317,8 @@ export const MarkdownWrapper = styled.main.attrs<{
|
|
|
317
317
|
padding: calc(var(--spacing-unit) * 2);
|
|
318
318
|
overflow-x: auto;
|
|
319
319
|
line-height: normal;
|
|
320
|
+
border-radius: var(--code-block-border-radius);
|
|
321
|
+
border: 1px solid var(--code-block-border-color);
|
|
320
322
|
|
|
321
323
|
code {
|
|
322
324
|
background-color: transparent;
|
|
@@ -28,11 +28,8 @@ export function Mermaid({
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
const Wrapper = styled.div`
|
|
31
|
-
background-color: var(--mermaid-background-color);
|
|
32
|
-
border-radius: var(--mermaid-border-radius);
|
|
33
|
-
|
|
34
31
|
.mermaid > svg {
|
|
35
|
-
font-size:
|
|
32
|
+
font-size: 14px !important;
|
|
36
33
|
max-width: 100%;
|
|
37
34
|
}
|
|
38
35
|
`;
|
|
@@ -7,4 +7,3 @@ export * from '@theme/components/Markdown/MarkdownWrapper';
|
|
|
7
7
|
export * from '@theme/components/Markdown/Mermaid';
|
|
8
8
|
export * from '@theme/components/Markdown/PageWrapper';
|
|
9
9
|
export * from '@theme/components/Markdown/Sup';
|
|
10
|
-
export * from '@theme/components/Markdown/styledVariables';
|
|
@@ -39,9 +39,11 @@ export function Menu({ depth = 0, items, className, isMobile }: MenuListProps) {
|
|
|
39
39
|
export const ThemeMenu = styled.ul.attrs(() => ({
|
|
40
40
|
'data-component-name': 'Menu/Menu',
|
|
41
41
|
}))`
|
|
42
|
-
padding:
|
|
43
|
-
margin:
|
|
44
|
-
list-style:
|
|
45
|
-
color: var(--
|
|
46
|
-
|
|
42
|
+
padding: 0;
|
|
43
|
+
margin: 0;
|
|
44
|
+
list-style: none;
|
|
45
|
+
color: var(--sidebar-item-text-color);
|
|
46
|
+
${({ theme }) => theme.mediaQueries.medium} {
|
|
47
|
+
position: relative;
|
|
48
|
+
}
|
|
47
49
|
`;
|
|
@@ -49,13 +49,10 @@ export function MenuGroup({
|
|
|
49
49
|
isAlwaysExpanded={item.expanded === 'always'}
|
|
50
50
|
active={item.active}
|
|
51
51
|
role={!item.link ? 'link' : 'none'}
|
|
52
|
-
expanded={isExpanded}
|
|
53
52
|
>
|
|
53
|
+
{!!item.items.length && <MenuGroupArrow direction={isExpanded ? 'down' : 'right'} />}
|
|
54
54
|
{item.icon ? <SidebarItemIcon src={item.icon} /> : null}
|
|
55
55
|
{translate(item.labelTranslationKey, item.label)}
|
|
56
|
-
{!!item.items.length && (
|
|
57
|
-
<ArrowIcon direction={isExpanded ? 'down' : 'right'} weight="thin" />
|
|
58
|
-
)}
|
|
59
56
|
</MenuGroupLabel>
|
|
60
57
|
</MenuLinkItem>
|
|
61
58
|
|
|
@@ -79,7 +76,7 @@ const MenuWrapper = styled.div<{ isExpanded?: boolean }>`
|
|
|
79
76
|
transition: max-height .8s cubic-bezier(0, 1, 0, 1) -.1s;`};
|
|
80
77
|
`;
|
|
81
78
|
|
|
82
|
-
const MenuGroupLabel = styled(MenuItemLabel)<{ isAlwaysExpanded?: boolean
|
|
79
|
+
const MenuGroupLabel = styled(MenuItemLabel)<{ isAlwaysExpanded?: boolean }>`
|
|
83
80
|
padding-left: var(--sidebar-item-padding-horizontal);
|
|
84
81
|
cursor: ${(props) => (props.isAlwaysExpanded ? 'default' : 'pointer')};
|
|
85
82
|
font-family: var(--sidebar-item-group-font-family);
|
|
@@ -87,18 +84,13 @@ const MenuGroupLabel = styled(MenuItemLabel)<{ isAlwaysExpanded?: boolean; expan
|
|
|
87
84
|
text-transform: var(--sidebar-text-group-transform);
|
|
88
85
|
color: var(--sidebar-item-group-text-color);
|
|
89
86
|
background: var(--sidebar-item-group-background-color);
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
${({ active }) =>
|
|
94
|
-
active
|
|
87
|
+
${(props) =>
|
|
88
|
+
props.active
|
|
95
89
|
? `color: var(--sidebar-item-group-active-text-color);
|
|
96
90
|
background-color: var(--sidebar-item-group-active-background-color);`
|
|
97
91
|
: null};
|
|
92
|
+
`;
|
|
98
93
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
`
|
|
102
|
-
color: var(--sidebar-item-group-active-text-color);
|
|
103
|
-
`}
|
|
94
|
+
const MenuGroupArrow = styled(ArrowIcon)`
|
|
95
|
+
margin-right: calc(var(--sidebar-spacing-unit) / 2);
|
|
104
96
|
`;
|
|
@@ -5,25 +5,29 @@ export const MenuItemLabel = styled.li.attrs<{ className?: string }>(({ classNam
|
|
|
5
5
|
className,
|
|
6
6
|
}))<{ active?: boolean }>`
|
|
7
7
|
display: flex;
|
|
8
|
-
align-items:
|
|
8
|
+
align-items: center;
|
|
9
9
|
cursor: pointer;
|
|
10
|
-
transition:
|
|
11
|
-
word-break:
|
|
10
|
+
transition: background-color 0.3s, color 0.3s;
|
|
11
|
+
word-break: break-word;
|
|
12
|
+
margin-bottom: 1px;
|
|
12
13
|
|
|
13
14
|
background-color: var(--sidebar-item-background-color);
|
|
14
15
|
font-family: var(--sidebar-item-font-family);
|
|
15
16
|
font-size: var(--sidebar-item-font-size);
|
|
16
|
-
font-weight: var(--
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
padding:
|
|
17
|
+
font-weight: var(--font-weight-regular);
|
|
18
|
+
margin-left: var(--sidebar-offset-left);
|
|
19
|
+
padding: var(--sidebar-item-padding-vertical) var(--sidebar-item-padding-horizontal);
|
|
20
|
+
padding-left: calc(
|
|
21
|
+
var(--sidebar-item-padding-horizontal) + var(--sidebar-group-item-chevron-size) +
|
|
22
|
+
var(--sidebar-spacing-unit) * 0.5
|
|
23
|
+
);
|
|
20
24
|
border-radius: var(--sidebar-item-border-radius);
|
|
21
25
|
|
|
22
26
|
${({ active, theme }) =>
|
|
23
27
|
active &&
|
|
24
28
|
`
|
|
25
29
|
color: var(--mobile-menu-item-active-text-color);
|
|
26
|
-
background-color: var(--mobile-menu-item-active-
|
|
30
|
+
background-color: var(--mobile-menu-item-active-color);
|
|
27
31
|
|
|
28
32
|
${theme.mediaQueries.medium} {
|
|
29
33
|
color: var(--sidebar-item-active-color);
|
|
@@ -36,7 +40,7 @@ export const MenuItemLabel = styled.li.attrs<{ className?: string }>(({ classNam
|
|
|
36
40
|
|
|
37
41
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
38
42
|
color: var(--sidebar-item-hover-color);
|
|
39
|
-
background: var(--sidebar-item-hover-background-color);
|
|
43
|
+
background-color: var(--sidebar-item-hover-background-color);
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
|
|
@@ -5,7 +5,7 @@ import styled from 'styled-components';
|
|
|
5
5
|
import type { MobileMenuProps } from '@theme/components/Menu/types';
|
|
6
6
|
import { MenuType } from '@theme/components/Menu/constants';
|
|
7
7
|
import { Menu, MenuItemLabel } from '@theme/components/Menu/index';
|
|
8
|
-
import { MobileUserProfile } from '@theme/components/
|
|
8
|
+
import { MobileUserProfile } from '@theme/components/Navbar/MobileUserProfile';
|
|
9
9
|
import { useCurrentProduct } from '@portal/hooks';
|
|
10
10
|
import { ArrowIcon } from '@theme/icons';
|
|
11
11
|
import { Product } from '@theme/components/Product/Product';
|
|
@@ -71,17 +71,17 @@ export function MobileMenu({ className }: MobileMenuProps): JSX.Element | null {
|
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
const MobileMenuWrapper = styled.div`
|
|
74
|
-
height: var(--
|
|
75
|
-
width:
|
|
74
|
+
height: calc(100vh - var(--navbar-height));
|
|
75
|
+
width: 100%;
|
|
76
76
|
position: fixed;
|
|
77
|
-
z-index: var(--
|
|
78
|
-
left:
|
|
79
|
-
top: var(--
|
|
77
|
+
z-index: var(--z-index-raised);
|
|
78
|
+
left: 0;
|
|
79
|
+
top: var(--navbar-height);
|
|
80
80
|
overflow-x: hidden;
|
|
81
|
-
transition:
|
|
81
|
+
transition: 0.5s;
|
|
82
82
|
display: flex;
|
|
83
83
|
flex-direction: column;
|
|
84
|
-
background: var(--mobile-menu-
|
|
84
|
+
background: var(--mobile-menu-background);
|
|
85
85
|
|
|
86
86
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
87
87
|
display: none;
|
|
@@ -102,23 +102,27 @@ const ScrollableArea = styled.div`
|
|
|
102
102
|
`;
|
|
103
103
|
|
|
104
104
|
const MenuWrapper = styled.div`
|
|
105
|
-
margin: var(--mobile-menu-margin);
|
|
106
|
-
|
|
105
|
+
margin: 0 var(--mobile-menu-horizontal-margin);
|
|
106
|
+
margin-top: var(--mobile-menu-items-margin-top);
|
|
107
|
+
line-height: 22px;
|
|
107
108
|
background: var(--mobile-menu-background);
|
|
108
109
|
|
|
109
110
|
${MenuItemLabel} {
|
|
110
|
-
margin:
|
|
111
|
+
margin: 0;
|
|
111
112
|
border-radius: var(--mobile-menu-item-radius);
|
|
113
|
+
padding-left: var(--sidebar-item-padding-horizontal);
|
|
112
114
|
}
|
|
113
115
|
`;
|
|
114
116
|
|
|
115
117
|
export const ControlButton = styled.li`
|
|
116
118
|
display: inline-block;
|
|
117
|
-
padding: var(--mobile-menu-control-button-padding)
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
padding: var(--mobile-menu-control-button-padding-vertical)
|
|
120
|
+
var(--mobile-menu-control-button-padding-horizontal);
|
|
121
|
+
margin: var(--mobile-menu-control-button-margin-vertical)
|
|
122
|
+
var(--mobile-menu-control-button-margin-horizontal);
|
|
123
|
+
text-align: center;
|
|
120
124
|
font-size: var(--mobile-menu-control-button-font-size);
|
|
121
|
-
line-height:
|
|
125
|
+
line-height: 22px;
|
|
122
126
|
font-weight: var(--mobile-menu-control-button-weight);
|
|
123
127
|
color: var(--mobile-menu-control-button-color);
|
|
124
128
|
cursor: pointer;
|
|
@@ -143,9 +147,10 @@ const ControlButtonLabel = styled.span<{ paddingDirection: 'right' | 'left' }>`
|
|
|
143
147
|
`;
|
|
144
148
|
|
|
145
149
|
const ProductNameWrapper = styled.div`
|
|
146
|
-
color: var(--mobile-menu-
|
|
147
|
-
border-radius: var(--mobile-menu-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
color: var(--mobile-menu-item-text-color);
|
|
151
|
+
border-radius: var(--mobile-menu-item-radius);
|
|
152
|
+
padding-left: var(--sidebar-item-padding-horizontal);
|
|
153
|
+
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
154
|
+
padding: 8px 7px;
|
|
155
|
+
margin: 12px 8px 0 8px;
|
|
151
156
|
`;
|
|
@@ -66,7 +66,7 @@ const MenuGroupLabel = styled(MenuItemLabel)<{ active?: boolean; expanded?: bool
|
|
|
66
66
|
active &&
|
|
67
67
|
`
|
|
68
68
|
color: var(--mobile-menu-item-active-text-color);
|
|
69
|
-
background-color: var(--mobile-menu-item-active-
|
|
69
|
+
background-color: var(--mobile-menu-item-active-color);
|
|
70
70
|
`}
|
|
71
71
|
|
|
72
72
|
${({ expanded }) =>
|
|
@@ -3,9 +3,9 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
import { useProfileProps } from '@portal/Profile/useProfileProps';
|
|
5
5
|
import { LogoutIcon } from '@theme/icons/LogoutIcon';
|
|
6
|
+
import { AvatarWrapper, ProfileWrapper, Profile } from '@theme/components/Profile/Profile';
|
|
6
7
|
import { useThemeConfig } from '@theme/hooks/useThemeConfig';
|
|
7
8
|
import { useTranslate } from '@portal/hooks';
|
|
8
|
-
import { UserProfileData } from '@theme/components/Profile/UserProfileData';
|
|
9
9
|
import { telemetry } from '@portal/telemetry';
|
|
10
10
|
|
|
11
11
|
export function MobileUserProfile() {
|
|
@@ -30,7 +30,12 @@ export function MobileUserProfile() {
|
|
|
30
30
|
</LoginButton>
|
|
31
31
|
) : (
|
|
32
32
|
<>
|
|
33
|
-
<
|
|
33
|
+
<UserDataWrapper>
|
|
34
|
+
<ProfilePicture>
|
|
35
|
+
<Profile name={userData.name} imageUrl={userData.picture} />
|
|
36
|
+
</ProfilePicture>
|
|
37
|
+
<UserName>{userData.name}</UserName>
|
|
38
|
+
</UserDataWrapper>
|
|
34
39
|
<LogoutButton
|
|
35
40
|
onClick={() => {
|
|
36
41
|
handleLogout();
|
|
@@ -46,23 +51,16 @@ export function MobileUserProfile() {
|
|
|
46
51
|
}
|
|
47
52
|
const LoginButton = styled.a`
|
|
48
53
|
background: var(--mobile-menu-login-button-background);
|
|
49
|
-
border-radius:
|
|
54
|
+
border-radius: 6px;
|
|
50
55
|
width: 100%;
|
|
51
56
|
margin: 0;
|
|
52
57
|
padding: 5px 0;
|
|
53
58
|
color: var(--mobile-menu-login-button-color);
|
|
54
|
-
|
|
55
|
-
font-size: var(--mobile-menu-login-button-font-size);
|
|
56
|
-
font-family: var(--mobile-menu-login-button-font-family);
|
|
57
|
-
font-weight: var(--mobile-menu-login-button-font-weight);
|
|
59
|
+
font-size: 14px;
|
|
58
60
|
text-align: center;
|
|
59
|
-
line-height:
|
|
61
|
+
line-height: 22px;
|
|
60
62
|
cursor: pointer;
|
|
61
63
|
text-decoration: none;
|
|
62
|
-
|
|
63
|
-
&:hover {
|
|
64
|
-
color: var(--mobile-menu-login-button-hover-color);
|
|
65
|
-
}
|
|
66
64
|
`;
|
|
67
65
|
|
|
68
66
|
const MobileProfileWrapper = styled.div`
|
|
@@ -76,6 +74,25 @@ const MobileProfileWrapper = styled.div`
|
|
|
76
74
|
background: var(--mobile-menu-profile-background);
|
|
77
75
|
`;
|
|
78
76
|
|
|
77
|
+
const UserDataWrapper = styled.div`
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
`;
|
|
81
|
+
|
|
82
|
+
const ProfilePicture = styled.div`
|
|
83
|
+
margin-right: 16px;
|
|
84
|
+
|
|
85
|
+
${AvatarWrapper} {
|
|
86
|
+
margin: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
${ProfileWrapper} {
|
|
90
|
+
padding: 0;
|
|
91
|
+
}
|
|
92
|
+
`;
|
|
93
|
+
|
|
94
|
+
const UserName = styled.div``;
|
|
95
|
+
|
|
79
96
|
const LogoutButton = styled.div`
|
|
80
97
|
cursor: pointer;
|
|
81
98
|
user-select: none;
|
|
@@ -96,15 +96,15 @@ export function NavbarPresentational(props: NavbarPresentationalProps): JSX.Elem
|
|
|
96
96
|
<ProductPicker />
|
|
97
97
|
<NavbarMenu menuItems={menu as ResolvedConfigLinks} />
|
|
98
98
|
{hideSearch ? null : <Search />}
|
|
99
|
-
<LanguagePicker onChangeLanguage={changeLanguage}
|
|
100
|
-
<ColorModeSwitcherWrapper isVisible={isOpen}>
|
|
101
|
-
<ColorModeSwitcher />
|
|
102
|
-
</ColorModeSwitcherWrapper>
|
|
99
|
+
<LanguagePicker onChangeLanguage={changeLanguage} />
|
|
103
100
|
{hideUserProfile ? null : (
|
|
104
101
|
<AuthUserProfileWrapper>
|
|
105
102
|
<AuthUserProfile />
|
|
106
103
|
</AuthUserProfileWrapper>
|
|
107
104
|
)}
|
|
105
|
+
<ColorModeSwitcherWrapper isVisible={isOpen}>
|
|
106
|
+
<ColorModeSwitcher />
|
|
107
|
+
</ColorModeSwitcherWrapper>
|
|
108
108
|
</NavbarRow>
|
|
109
109
|
</NavbarContainer>
|
|
110
110
|
);
|
|
@@ -127,8 +127,6 @@ const AuthUserProfileWrapper = styled.div`
|
|
|
127
127
|
`;
|
|
128
128
|
|
|
129
129
|
export const NavbarContainer = styled.nav`
|
|
130
|
-
border: var(--navbar-border);
|
|
131
|
-
|
|
132
130
|
--text-color: var(--navbar-text-color);
|
|
133
131
|
|
|
134
132
|
height: var(--navbar-height);
|
|
@@ -137,13 +135,17 @@ export const NavbarContainer = styled.nav`
|
|
|
137
135
|
align-items: center;
|
|
138
136
|
flex-shrink: 0;
|
|
139
137
|
|
|
140
|
-
font-size:
|
|
138
|
+
font-size: 0.875rem;
|
|
141
139
|
position: sticky;
|
|
142
140
|
top: 0;
|
|
143
141
|
z-index: var(--z-index-raised);
|
|
144
|
-
padding: var(--navbar-padding-vertical) var(--navbar-padding-horizontal);
|
|
142
|
+
padding: var(--navbar-item-padding-vertical) var(--navbar-item-padding-horizontal);
|
|
145
143
|
background: var(--navbar-background-color);
|
|
146
|
-
font-family: var(--navbar-font-family);
|
|
144
|
+
font-family: var(--navbar-item-font-family);
|
|
145
|
+
|
|
146
|
+
${({ theme }) => theme.mediaQueries.medium} {
|
|
147
|
+
font-size: 1rem;
|
|
148
|
+
}
|
|
147
149
|
|
|
148
150
|
${({ theme }) => theme.mediaQueries.print} {
|
|
149
151
|
background: transparent;
|
|
@@ -165,6 +167,5 @@ export const NavbarRow = styled.div`
|
|
|
165
167
|
margin: 0 auto;
|
|
166
168
|
width: 100%;
|
|
167
169
|
|
|
168
|
-
gap: var(--navbar-menu-items-gap);
|
|
169
170
|
max-width: var(--navbar-container-max-width);
|
|
170
171
|
`;
|
|
@@ -94,26 +94,17 @@ export const NavbarMenuItem = styled.li<{ active?: boolean }>`
|
|
|
94
94
|
display: inline-block;
|
|
95
95
|
padding: var(--navbar-item-padding-vertical) var(--navbar-item-padding-horizontal);
|
|
96
96
|
text-align: center;
|
|
97
|
-
line-height:
|
|
98
|
-
font-
|
|
99
|
-
|
|
97
|
+
line-height: 1;
|
|
98
|
+
font-size: var(--navbar-item-font-size);
|
|
100
99
|
border-radius: var(--navbar-item-border-radius);
|
|
101
|
-
|
|
102
|
-
active ? 'var(--navbar-item-active-bottom-border)' : 'var(--navbar-item-bottom-border)'};
|
|
103
|
-
|
|
100
|
+
font-weight: var(--navbar-item-font-weight);
|
|
104
101
|
background: ${({ active }) => active && 'var(--navbar-item-active-background-color)'};
|
|
105
102
|
color: ${({ active }) =>
|
|
106
103
|
active ? 'var(--navbar-item-active-text-color)' : 'var(--navbar-text-color)'};
|
|
107
|
-
|
|
108
104
|
&:hover {
|
|
109
105
|
color: var(--navbar-item-hover-text-color);
|
|
110
106
|
text-decoration: var(--navbar-item-hover-text-decoration);
|
|
111
|
-
|
|
112
|
-
background: ${({ active }) =>
|
|
113
|
-
active
|
|
114
|
-
? 'var(--navbar-item-active-background-color)'
|
|
115
|
-
: 'var(--navbar-item-hover-background-color)'};
|
|
116
|
-
|
|
107
|
+
background: var(--navbar-item-hover-background-color);
|
|
117
108
|
${NavbarLink} {
|
|
118
109
|
color: var(--navbar-item-hover-text-color);
|
|
119
110
|
text-decoration: var(--navbar-item-hover-text-decoration);
|
|
@@ -33,9 +33,9 @@ const NavItemsContainer = styled.ul`
|
|
|
33
33
|
display: none;
|
|
34
34
|
flex-wrap: nowrap;
|
|
35
35
|
align-items: center;
|
|
36
|
-
justify-content:
|
|
36
|
+
justify-content: flex-end;
|
|
37
37
|
flex: 1;
|
|
38
|
-
gap: var(--navbar-
|
|
38
|
+
gap: var(--navbar-item-gap);
|
|
39
39
|
|
|
40
40
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
41
41
|
display: flex;
|
|
@@ -3,45 +3,32 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
import { Link } from '@portal/Link';
|
|
5
5
|
import type { LogoConfig } from '@theme/types/portal';
|
|
6
|
-
import { Image } from '@theme/components/Image/Image';
|
|
7
6
|
import { telemetry } from '@portal/telemetry';
|
|
8
7
|
|
|
9
8
|
export type NavbarLogoProps = {
|
|
10
|
-
logo: Pick<LogoConfig, 'image' | 'link' | 'altText'
|
|
9
|
+
logo: Pick<LogoConfig, 'image' | 'link' | 'altText'>;
|
|
11
10
|
className?: string;
|
|
12
11
|
};
|
|
13
12
|
|
|
14
13
|
export function NavbarLogo({ logo, className }: NavbarLogoProps): JSX.Element | null {
|
|
15
|
-
if (!logo.image
|
|
14
|
+
if (!logo.image) {
|
|
16
15
|
return null;
|
|
17
16
|
}
|
|
18
17
|
const img = (
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
{img}
|
|
27
|
-
</Link>
|
|
28
|
-
) : (
|
|
29
|
-
img
|
|
30
|
-
)}
|
|
31
|
-
</LogoContainer>
|
|
18
|
+
<NavLogo
|
|
19
|
+
className={className}
|
|
20
|
+
src={logo.image}
|
|
21
|
+
alt={logo.altText}
|
|
22
|
+
data-component-name="NavbarLogo/NavbarLogo"
|
|
23
|
+
onClick={() => telemetry.send('logo_clicked', {})}
|
|
24
|
+
/>
|
|
32
25
|
);
|
|
26
|
+
return logo.link ? <Link to={logo.link}>{img}</Link> : img;
|
|
33
27
|
}
|
|
34
28
|
|
|
35
|
-
|
|
36
|
-
'data-component-name': 'NavbarLogo/NavbarLogo',
|
|
37
|
-
})`
|
|
29
|
+
const NavLogo = styled.img`
|
|
38
30
|
max-width: var(--navbar-logo-max-width);
|
|
39
31
|
max-height: var(--navbar-logo-max-height);
|
|
40
32
|
height: var(--navbar-logo-height);
|
|
41
33
|
margin: var(--navbar-logo-margin);
|
|
42
|
-
|
|
43
|
-
img {
|
|
44
|
-
max-width: 100%;
|
|
45
|
-
max-height: 100%;
|
|
46
|
-
}
|
|
47
34
|
`;
|
|
@@ -115,6 +115,7 @@ export function DevOnboardingTryItSecurity(props: TryItSecurityAppsProps) {
|
|
|
115
115
|
/>
|
|
116
116
|
<UseKeyButton
|
|
117
117
|
disabled={(!selectedAppSecret && hasApiAccess) || appLoading}
|
|
118
|
+
color="secondary"
|
|
118
119
|
onClick={() => {
|
|
119
120
|
if (selectedAppSecret) {
|
|
120
121
|
props.onChange(selectedAppSecret);
|
|
@@ -163,7 +164,7 @@ const FormLabel = styled.label<{ required?: boolean }>`
|
|
|
163
164
|
display: inline-block;
|
|
164
165
|
content: '*';
|
|
165
166
|
margin-left: 4px;
|
|
166
|
-
color: var(--color-error);
|
|
167
|
+
color: var(--color-error-500);
|
|
167
168
|
}
|
|
168
169
|
`}
|
|
169
170
|
`;
|