@redocly/theme 0.18.2 → 0.18.3-patch.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/I18n/LanguagePicker.d.ts +7 -2
- package/lib/I18n/LanguagePicker.js +11 -3
- package/lib/I18n/index.d.ts +1 -0
- package/lib/I18n/index.js +15 -0
- package/lib/I18n/styledVariables.d.ts +1 -0
- package/lib/I18n/styledVariables.js +39 -0
- package/lib/components/Breadcrumbs/Breadcrumb.js +2 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -1
- 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 +19 -0
- package/lib/components/Button/Button.d.ts +6 -3
- package/lib/components/Button/Button.js +40 -42
- 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 +94 -0
- package/lib/components/Catalog/Catalog.d.ts +1 -0
- package/lib/components/Catalog/Catalog.js +99 -96
- package/lib/components/Catalog/CatalogCard.js +61 -56
- 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 +94 -0
- package/lib/components/CodeBlock/CodeBlockContainer.js +35 -8
- 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 +90 -0
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +0 -1
- package/lib/components/Dropdown/Dropdown.d.ts +7 -2
- package/lib/components/Dropdown/Dropdown.js +6 -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/Feedback/Reasons.js +1 -1
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.js +101 -78
- package/lib/components/Filter/FilterContent.d.ts +11 -0
- package/lib/components/Filter/FilterContent.js +50 -0
- package/lib/components/Filter/FilterPopover.d.ts +11 -0
- package/lib/components/Filter/FilterPopover.js +99 -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 +27 -10
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +53 -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/Markdown/MarkdownWrapper.js +2 -4
- package/lib/components/Markdown/Mermaid.js +1 -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 +2 -0
- package/lib/components/Markdown/styledVariables.js +221 -0
- package/lib/components/Menu/Menu.js +5 -7
- package/lib/components/Menu/MenuGroup.js +12 -7
- package/lib/components/Menu/MenuItemLabel.js +7 -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 +90 -0
- package/lib/components/Navbar/Navbar.js +10 -11
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +5 -3
- 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 +40 -0
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +4 -1
- package/lib/components/NavbarLogo/NavbarLogo.js +13 -5
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/Panel/PanelHeader.js +1 -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 +489 -0
- 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 +41 -0
- package/lib/components/Profile/LoginLink.js +1 -2
- package/lib/components/{Navbar → Profile}/MobileUserProfile.js +3 -22
- 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 +7 -7
- 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 +14 -17
- 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 +10 -3
- package/lib/components/Select/Select.js +9 -6
- 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 +33 -0
- package/lib/components/Separator/SeparatorItem.js +7 -5
- package/lib/components/Sidebar/ApiCallItem.d.ts +2 -6
- package/lib/components/Sidebar/ApiCallItem.js +13 -11
- package/lib/components/Sidebar/FooterWrapper.js +3 -4
- package/lib/components/Sidebar/HeaderWrapper.js +2 -2
- package/lib/components/Sidebar/VersionPicker.d.ts +1 -1
- 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 +210 -0
- package/lib/components/SidebarActions/CollapseSidebarButton.js +37 -1
- package/lib/components/SidebarActions/styled.js +16 -14
- package/lib/components/TableOfContent/TableOfContent.js +2 -3
- 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 +46 -0
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tag/Tag.d.ts +16 -0
- package/lib/components/Tag/Tag.js +39 -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 +130 -0
- package/lib/components/Tiles/TileText.js +1 -1
- 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/Typography.js +1 -1
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +1 -2
- package/lib/config.d.ts +8 -2
- package/lib/config.js +2 -1
- package/lib/globalStyle.js +597 -1967
- 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/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/{components/OperationBadge → icons/ErrorIcon}/index.js +1 -1
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- 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/SelectIcon/SelectIcon.d.ts +1 -2
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +4 -0
- package/lib/icons/index.js +4 -0
- package/lib/layouts/Forbidden.js +4 -0
- package/lib/layouts/NotFound.js +4 -0
- package/lib/types/portal/src/shared/types/nav.d.ts +5 -0
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +216 -84
- package/package.json +1 -1
- package/src/I18n/LanguagePicker.tsx +29 -4
- package/src/I18n/index.ts +1 -0
- package/src/I18n/styledVariables.ts +36 -0
- package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -1
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
- package/src/components/Breadcrumbs/index.ts +1 -0
- package/src/components/Breadcrumbs/styledVariables.ts +16 -0
- package/src/components/Button/Button.tsx +52 -48
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/styledVariables.ts +91 -0
- package/src/components/Catalog/Catalog.tsx +127 -115
- package/src/components/Catalog/CatalogCard.tsx +74 -59
- package/src/components/Catalog/index.ts +4 -0
- package/src/components/Catalog/styledVariables.ts +91 -0
- package/src/components/CodeBlock/CodeBlockContainer.tsx +14 -7
- 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 +87 -0
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +0 -1
- package/src/components/Dropdown/Dropdown.tsx +10 -4
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/Dropdown/styledVariables.ts +27 -0
- package/src/components/Feedback/Reasons.tsx +1 -1
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +127 -94
- package/src/components/Filter/FilterContent.tsx +75 -0
- package/src/components/Filter/FilterPopover.tsx +132 -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 +79 -62
- 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/Markdown/MarkdownWrapper.tsx +2 -4
- package/src/components/Markdown/Mermaid.tsx +1 -1
- package/src/components/Markdown/index.ts +1 -0
- package/src/components/Markdown/styledVariables.ts +219 -0
- package/src/components/Menu/Menu.tsx +5 -7
- package/src/components/Menu/MenuGroup.tsx +15 -7
- package/src/components/Menu/MenuItemLabel.tsx +7 -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 +88 -0
- package/src/components/Navbar/Navbar.tsx +10 -11
- package/src/components/Navbar/NavbarItem.tsx +6 -3
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +1 -0
- package/src/components/Navbar/styledVariables.ts +37 -0
- package/src/components/NavbarLogo/NavbarLogo.tsx +14 -10
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +1 -2
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/Panel/PanelHeader.ts +1 -0
- package/src/components/Panel/PanelHeaderTitle.ts +0 -4
- package/src/components/Panel/index.ts +1 -0
- package/src/components/Panel/styledVariables.ts +487 -0
- package/src/components/Product/index.ts +1 -0
- package/src/components/Product/styledVariables.ts +39 -0
- package/src/components/Profile/LoginLink.tsx +1 -2
- package/src/components/{Navbar → Profile}/MobileUserProfile.tsx +3 -27
- 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 +7 -7
- 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 +26 -31
- 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 +20 -7
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/styledVariables.ts +30 -0
- package/src/components/Separator/SeparatorItem.tsx +7 -5
- package/src/components/Sidebar/ApiCallItem.tsx +13 -11
- package/src/components/Sidebar/FooterWrapper.tsx +3 -4
- package/src/components/Sidebar/HeaderWrapper.tsx +2 -2
- package/src/components/Sidebar/index.ts +1 -0
- package/src/components/Sidebar/styledVariables.ts +208 -0
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +18 -2
- package/src/components/SidebarActions/styled.tsx +16 -23
- package/src/components/TableOfContent/TableOfContent.tsx +2 -3
- package/src/components/TableOfContent/index.ts +1 -0
- package/src/components/TableOfContent/styledVariables.ts +43 -0
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tag/Tag.tsx +62 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/Tag/styledVariables.ts +127 -0
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/styledVariables.ts +18 -0
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +1 -2
- package/src/config.ts +2 -1
- package/src/globalStyle.ts +591 -1979
- 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/ErrorIcon/ErrorIcon.tsx +15 -0
- package/src/icons/ErrorIcon/index.ts +1 -0
- package/src/icons/ExpandIcon/ExpandIcon.tsx +5 -6
- 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 +19 -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/SelectIcon/SelectIcon.tsx +5 -6
- package/src/icons/index.ts +4 -0
- package/src/layouts/Forbidden.tsx +4 -0
- package/src/layouts/NotFound.tsx +4 -0
- package/src/types/portal/src/shared/types/nav.ts +5 -0
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +216 -84
- 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/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,90 @@
|
|
|
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: calc(var(--spacing-md) - 2px); // @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); // @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-base); // @presenter Color
|
|
64
|
+
--mobile-menu-login-button-color: var(--color-primary-text); // @presenter Color
|
|
65
|
+
|
|
66
|
+
// @tokens End
|
|
67
|
+
`;
|
|
68
|
+
exports.menu = (0, styled_components_1.css) `
|
|
69
|
+
/**
|
|
70
|
+
* @tokens Menu
|
|
71
|
+
*/
|
|
72
|
+
--menu-padding: 0;
|
|
73
|
+
--menu-margin: 0;
|
|
74
|
+
--menu-list-style: none;
|
|
75
|
+
--menu-text-color: var(--sidebar-item-text-color);
|
|
76
|
+
|
|
77
|
+
--menu-item-label-align-items: center;
|
|
78
|
+
--menu-item-label-transition: background-color 0.3s, color 0.3s;
|
|
79
|
+
--menu-item-label-word-break: break-word;
|
|
80
|
+
--menu-item-label-margin: 0 var(--sidebar-margin-horizontal);
|
|
81
|
+
--menu-item-label-padding: var(--sidebar-item-padding-vertical) var(--sidebar-item-padding-horizontal);
|
|
82
|
+
|
|
83
|
+
--menu-product-name-color: var(--mobile-menu-item-text-color);
|
|
84
|
+
--menu-product-name-border-radius: var(--mobile-menu-item-radius);
|
|
85
|
+
--menu-product-name-border-color: 1px solid rgba(0, 0, 0, 0.06);
|
|
86
|
+
--menu-product-name-padding: var(--sidebar-item-padding-vertical) var(--sidebar-item-padding-horizontal);
|
|
87
|
+
--menu-product-name-margin: var(--spacing-sm) var(--spacing-xs) 0 var(--spacing-xs);
|
|
88
|
+
// @tokens End
|
|
89
|
+
`;
|
|
90
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -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: var(--navbar-
|
|
127
|
+
padding: var(--navbar-padding-vertical) var(--navbar-padding-horizontal);
|
|
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;
|
|
@@ -149,6 +147,7 @@ exports.NavbarRow = styled_components_1.default.div `
|
|
|
149
147
|
margin: 0 auto;
|
|
150
148
|
width: 100%;
|
|
151
149
|
|
|
150
|
+
gap: var(--navbar-menu-items-gap);
|
|
152
151
|
max-width: var(--navbar-container-max-width);
|
|
153
152
|
`;
|
|
154
153
|
//# 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, }: import("../../components/Dropdown").DropdownProps) => JSX.Element, any, {
|
|
10
10
|
dataAttributes: {
|
|
11
11
|
'data-component-name': string;
|
|
12
12
|
};
|
|
@@ -78,16 +78,18 @@ exports.NavbarMenuItem = styled_components_1.default.li `
|
|
|
78
78
|
display: inline-block;
|
|
79
79
|
padding: var(--navbar-item-padding-vertical) var(--navbar-item-padding-horizontal);
|
|
80
80
|
text-align: center;
|
|
81
|
-
line-height:
|
|
82
|
-
font-size: var(--navbar-item-font-size);
|
|
81
|
+
line-height: var(--navbar-item-line-height);
|
|
83
82
|
border-radius: var(--navbar-item-border-radius);
|
|
84
83
|
font-weight: var(--navbar-item-font-weight);
|
|
84
|
+
|
|
85
85
|
background: ${({ active }) => active && 'var(--navbar-item-active-background-color)'};
|
|
86
86
|
color: ${({ active }) => active ? 'var(--navbar-item-active-text-color)' : 'var(--navbar-text-color)'};
|
|
87
87
|
&:hover {
|
|
88
88
|
color: var(--navbar-item-hover-text-color);
|
|
89
89
|
text-decoration: var(--navbar-item-hover-text-decoration);
|
|
90
|
-
background:
|
|
90
|
+
background: ${({ active }) => active
|
|
91
|
+
? 'var(--navbar-item-active-background-color)'
|
|
92
|
+
: 'var(--navbar-item-hover-background-color)'};
|
|
91
93
|
${exports.NavbarLink} {
|
|
92
94
|
color: var(--navbar-item-hover-text-color);
|
|
93
95
|
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,40 @@
|
|
|
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-raised); // @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-horizontal: var(--spacing-xl); // @presenter Spacing
|
|
14
|
+
--navbar-padding-vertical: 0;
|
|
15
|
+
--navbar-font-family: var(--font-family-base);
|
|
16
|
+
--navbar-container-max-width: 100%;
|
|
17
|
+
|
|
18
|
+
--navbar-menu-items-gap: var(--spacing-base);
|
|
19
|
+
--navbar-menu-justify-content: flex-start;
|
|
20
|
+
|
|
21
|
+
--navbar-item-font-weight: var(--font-weight-regular);
|
|
22
|
+
|
|
23
|
+
--navbar-item-active-text-color: var(--text-primary);
|
|
24
|
+
--navbar-item-active-text-decoration: none;
|
|
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-border-radius: 32px;
|
|
30
|
+
--navbar-item-active-background-color: var(--bg-sunken);
|
|
31
|
+
|
|
32
|
+
--navbar-item-hover-text-color: var(--text-primary);
|
|
33
|
+
--navbar-item-hover-text-decoration: none;
|
|
34
|
+
--navbar-item-hover-background-color: none;
|
|
35
|
+
|
|
36
|
+
--navbar-item-icon-width: 1.5em; // @presenter Spacing
|
|
37
|
+
--navbar-item-icon-height: 1.5em; // @presenter Spacing
|
|
38
|
+
--navbar-item-icon-margin-right: 0.5em; // @presenter Spacing
|
|
39
|
+
`;
|
|
40
|
+
//# 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,22 +3,30 @@ 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
|
function NavbarLogo({ logo, className }) {
|
|
11
|
-
if (!logo.image) {
|
|
12
|
+
if (!logo.image && !logo.srcSet) {
|
|
12
13
|
return null;
|
|
13
14
|
}
|
|
14
|
-
const img = (react_1.default.createElement(
|
|
15
|
-
return logo.link ? react_1.default.createElement(Link_1.Link, { to: logo.link }, img) : img;
|
|
15
|
+
const img = (react_1.default.createElement(Image_1.Image, { className: className, src: logo.image, srcSet: logo.srcSet, alt: logo.altText }));
|
|
16
|
+
return react_1.default.createElement(exports.LogoContainer, null, logo.link ? react_1.default.createElement(Link_1.Link, { to: logo.link }, img) : img);
|
|
16
17
|
}
|
|
17
18
|
exports.NavbarLogo = NavbarLogo;
|
|
18
|
-
|
|
19
|
+
exports.LogoContainer = styled_components_1.default.div.attrs({
|
|
20
|
+
'data-component-name': 'NavbarLogo/NavbarLogo',
|
|
21
|
+
}) `
|
|
19
22
|
max-width: var(--navbar-logo-max-width);
|
|
20
23
|
max-height: var(--navbar-logo-max-height);
|
|
21
24
|
height: var(--navbar-logo-height);
|
|
22
25
|
margin: var(--navbar-logo-margin);
|
|
26
|
+
|
|
27
|
+
img {
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
max-height: 100%;
|
|
30
|
+
}
|
|
23
31
|
`;
|
|
24
32
|
//# sourceMappingURL=NavbarLogo.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 : '')};
|
|
@@ -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
|