@redocly/theme 0.18.4-patch.1 → 0.18.5
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 +4 -0
- package/lib/{i18n → I18n}/LanguagePicker.js +12 -27
- package/lib/I18n/index.d.ts +1 -0
- package/lib/I18n/index.js +6 -0
- 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 +102 -112
- package/lib/components/Catalog/CatalogCard.js +58 -91
- 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.d.ts +3 -1
- package/lib/components/EditPageButton/EditPageButton.js +8 -17
- 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 -57
- 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/MarkdownLayout.d.ts +2 -0
- package/lib/components/Markdown/MarkdownLayout.js +6 -1
- 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/MenuItem.js +1 -1
- 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 +13 -20
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +6 -18
- 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/ErrorIcon → components/OperationBadge}/index.js +1 -1
- package/lib/components/PageNavigation/NextButton.js +1 -1
- package/lib/components/PageNavigation/PreviousButton.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 +9 -22
- 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 -27
- 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 -6
- 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 +2 -3
- 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 +14 -113
- package/lib/config.js +4 -28
- 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/ExternalIcon/ExternalIcon.js +3 -3
- 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 -6
- package/lib/icons/index.js +0 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/Forbidden.js +0 -4
- package/lib/layouts/NotFound.js +0 -4
- package/lib/mocks/hooks/index.js +1 -0
- 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 → I18n}/LanguagePicker.tsx +21 -48
- package/src/I18n/index.ts +1 -0
- 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 -140
- package/src/components/Catalog/CatalogCard.tsx +58 -108
- 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 +10 -24
- 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 -84
- 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/MarkdownLayout.tsx +15 -2
- 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/MenuItem.tsx +1 -1
- 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 +13 -20
- package/src/components/Navbar/NavbarItem.tsx +4 -18
- 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/PageNavigation/NextButton.tsx +1 -0
- package/src/components/PageNavigation/PreviousButton.tsx +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 +17 -23
- 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 -65
- 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 -6
- 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 +2 -3
- 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 +3 -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/ExternalIcon/ExternalIcon.tsx +4 -4
- 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 -6
- package/src/index.ts +1 -1
- package/src/layouts/Forbidden.tsx +0 -4
- package/src/layouts/NotFound.tsx +0 -4
- package/src/mocks/hooks/index.ts +1 -0
- 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/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 -95
- 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 -42
- 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 -42
- 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 -47
- 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 -140
- 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/i18n/LanguagePicker.d.ts +0 -9
- package/lib/i18n/index.d.ts +0 -2
- package/lib/i18n/index.js +0 -21
- package/lib/i18n/styledVariables.d.ts +0 -1
- package/lib/i18n/styledVariables.js +0 -40
- 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/EditIcon/EditIcon.d.ts +0 -6
- package/lib/icons/EditIcon/EditIcon.js +0 -18
- package/lib/icons/EditIcon/index.d.ts +0 -1
- package/lib/icons/EditIcon/index.js +0 -18
- 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/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/LanguageIcon/index.js +0 -18
- 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/icons/RocketIcon/RocketIcon.d.ts +0 -7
- package/lib/icons/RocketIcon/RocketIcon.js +0 -15
- package/lib/icons/RocketIcon/index.d.ts +0 -1
- package/lib/icons/RocketIcon/index.js +0 -18
- package/lib/utils/tags-parser.d.ts +0 -1
- package/lib/utils/tags-parser.js +0 -10
- 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 -92
- 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 -39
- package/src/components/NavbarLogo/styledVariables.ts +0 -15
- package/src/components/Panel/styledVariables.ts +0 -479
- package/src/components/Product/styledVariables.ts +0 -40
- 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 -44
- package/src/components/Tag/Tag.tsx +0 -71
- package/src/components/Tag/index.ts +0 -2
- package/src/components/Tag/styledVariables.ts +0 -137
- package/src/components/Tooltip/styledVariables.ts +0 -18
- package/src/hooks/useModalScrollLock.ts +0 -12
- package/src/i18n/index.ts +0 -2
- package/src/i18n/styledVariables.ts +0 -37
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +0 -64
- package/src/icons/CheckboxIcon/index.ts +0 -1
- package/src/icons/EditIcon/EditIcon.tsx +0 -30
- package/src/icons/EditIcon/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/icons/RocketIcon/RocketIcon.tsx +0 -32
- package/src/icons/RocketIcon/index.tsx +0 -1
- package/src/utils/tags-parser.ts +0 -8
- /package/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
|
@@ -55,7 +55,6 @@ function LastUpdated(props) {
|
|
|
55
55
|
: translate(translationKey, 'Last updated on');
|
|
56
56
|
return (React.createElement(Wrapper, { className: props.className, "data-component-name": "LastUpdated/LastUpdated", rawOnPrint: format === 'timeago', "data-print-datetime": isoDate, "data-translation-key": translationKey },
|
|
57
57
|
text,
|
|
58
|
-
" ",
|
|
59
58
|
React.createElement("time", { dateTime: isoDate }, lastUpdatedString)));
|
|
60
59
|
}
|
|
61
60
|
exports.LastUpdated = LastUpdated;
|
|
@@ -10,17 +10,16 @@ const AlertIcon_1 = require("../../icons/AlertIcon/AlertIcon");
|
|
|
10
10
|
function Admonition({ type = 'info', name, children, className, 'data-source': dataSource, 'data-hash': dataHash, }) {
|
|
11
11
|
return (react_1.default.createElement(Wrapper, { type: type, className: className, "data-component-name": "Markdown/Admonition", "data-source": dataSource, "data-hash": dataHash },
|
|
12
12
|
react_1.default.createElement(AlertIcon_1.AlertIcon, { type: type }),
|
|
13
|
-
react_1.default.createElement(
|
|
14
|
-
|
|
15
|
-
react_1.default.createElement(Content, null, children))));
|
|
13
|
+
name ? react_1.default.createElement(Heading, { type: type }, name) : null,
|
|
14
|
+
react_1.default.createElement(Content, null, children)));
|
|
16
15
|
}
|
|
17
16
|
exports.Admonition = Admonition;
|
|
18
17
|
const Wrapper = styled_components_1.default.div `
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
gap: var(--spacing-base);
|
|
18
|
+
position: relative;
|
|
19
|
+
align-items: center;
|
|
22
20
|
margin: var(--admonition-margin-vertical) var(--admonition-margin-horizontal);
|
|
23
21
|
padding: var(--admonition-padding-vertical) var(--admonition-padding-horizontal);
|
|
22
|
+
padding-left: calc(var(--admonition-padding-horizontal) * 2 + var(--admonition-icon-size));
|
|
24
23
|
border-radius: var(--admonition-border-radius);
|
|
25
24
|
font-size: var(--admonition-font-size);
|
|
26
25
|
font-weight: var(--admonition-font-weight);
|
|
@@ -35,12 +34,10 @@ const Wrapper = styled_components_1.default.div `
|
|
|
35
34
|
border: var(--admonition-${type}-border);
|
|
36
35
|
`}
|
|
37
36
|
`;
|
|
38
|
-
const
|
|
39
|
-
display:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
`;
|
|
43
|
-
const Heading = styled_components_1.default.div `
|
|
37
|
+
const Heading = styled_components_1.default.h5 `
|
|
38
|
+
display: block;
|
|
39
|
+
margin: 0 0 10px;
|
|
40
|
+
|
|
44
41
|
letter-spacing: var(--admonition-heading-letter-spacing);
|
|
45
42
|
color: ${({ type }) => `var(--admonition-${type}-heading-text-color)`};
|
|
46
43
|
|
|
@@ -12,9 +12,14 @@ const PageNavigation_1 = require("../../components/PageNavigation/PageNavigation
|
|
|
12
12
|
const EditPageButton_1 = require("../../components/EditPageButton");
|
|
13
13
|
const LastUpdated_1 = require("../../components/LastUpdated/LastUpdated");
|
|
14
14
|
const hooks_1 = require("../../hooks");
|
|
15
|
+
const hooks_2 = require("../../mocks/hooks");
|
|
15
16
|
const Breadcrumbs_1 = require("../../components/Breadcrumbs");
|
|
16
17
|
function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, lastModified, nextPage, prevPage, className, }) {
|
|
17
18
|
const { markdown } = (0, hooks_1.useThemeConfig)();
|
|
19
|
+
const { translate } = (0, hooks_2.useTranslate)();
|
|
20
|
+
const translationKeys = {
|
|
21
|
+
text: 'theme.markdown.editPage.text',
|
|
22
|
+
};
|
|
18
23
|
const { editPage: themeEditPage } = markdown || {};
|
|
19
24
|
const mergedConf = editPage ? Object.assign(Object.assign({}, themeEditPage), editPage) : undefined;
|
|
20
25
|
return (react_1.default.createElement(PageWrapper_1.PageWrapper, { "data-component-name": "Markdown/MarkdownLayout", className: className },
|
|
@@ -22,7 +27,7 @@ function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, l
|
|
|
22
27
|
react_1.default.createElement(Breadcrumbs, null),
|
|
23
28
|
react_1.default.createElement(LayoutTop, null,
|
|
24
29
|
lastModified && react_1.default.createElement(LastUpdated_1.LastUpdated, { lastModified: new Date(lastModified) }),
|
|
25
|
-
mergedConf && react_1.default.createElement(EditPageButton_1.EditPageButton, { to: mergedConf.to })),
|
|
30
|
+
mergedConf && (react_1.default.createElement(EditPageButton_1.EditPageButton, { text: translate(translationKeys.text, mergedConf.text), to: mergedConf.to, icon: mergedConf.icon, "data-translation-key": translationKeys.text }))),
|
|
26
31
|
markdownWrapper,
|
|
27
32
|
react_1.default.createElement(LayoutBottom, null, feedback),
|
|
28
33
|
react_1.default.createElement(PageNavigation_1.PageNavigation, { nextPage: nextPage, prevPage: prevPage })),
|
|
@@ -167,7 +167,7 @@ exports.MarkdownWrapper = styled_components_1.default.main.attrs(({ className })
|
|
|
167
167
|
font-weight: var(--font-weight-regular);
|
|
168
168
|
padding: 0;
|
|
169
169
|
|
|
170
|
-
color: var(--text-
|
|
170
|
+
color: var(--text-color);
|
|
171
171
|
font-size: var(--font-size-base);
|
|
172
172
|
font-family: var(--font-family-base);
|
|
173
173
|
line-height: var(--line-height-base);
|
|
@@ -223,7 +223,7 @@ exports.MarkdownWrapper = styled_components_1.default.main.attrs(({ className })
|
|
|
223
223
|
margin: 1.125em 0;
|
|
224
224
|
|
|
225
225
|
summary {
|
|
226
|
-
color: var(--text-
|
|
226
|
+
color: var(--text-color);
|
|
227
227
|
font-weight: var(--font-weight-regular);
|
|
228
228
|
outline: 0;
|
|
229
229
|
padding: 0;
|
|
@@ -333,6 +333,8 @@ exports.MarkdownWrapper = styled_components_1.default.main.attrs(({ className })
|
|
|
333
333
|
padding: calc(var(--spacing-unit) * 2);
|
|
334
334
|
overflow-x: auto;
|
|
335
335
|
line-height: normal;
|
|
336
|
+
border-radius: var(--code-block-border-radius);
|
|
337
|
+
border: 1px solid var(--code-block-border-color);
|
|
336
338
|
|
|
337
339
|
code {
|
|
338
340
|
background-color: transparent;
|
|
@@ -12,11 +12,8 @@ function Mermaid({ diagramHtml, 'data-source': dataSource, 'data-hash': dataHash
|
|
|
12
12
|
}
|
|
13
13
|
exports.Mermaid = Mermaid;
|
|
14
14
|
const Wrapper = styled_components_1.default.div `
|
|
15
|
-
background-color: var(--mermaid-background-color);
|
|
16
|
-
border-radius: var(--mermaid-border-radius);
|
|
17
|
-
|
|
18
15
|
.mermaid > svg {
|
|
19
|
-
font-size:
|
|
16
|
+
font-size: 14px !important;
|
|
20
17
|
max-width: 100%;
|
|
21
18
|
}
|
|
22
19
|
`;
|
|
@@ -7,4 +7,3 @@ export * from '../../components/Markdown/MarkdownWrapper';
|
|
|
7
7
|
export * from '../../components/Markdown/Mermaid';
|
|
8
8
|
export * from '../../components/Markdown/PageWrapper';
|
|
9
9
|
export * from '../../components/Markdown/Sup';
|
|
10
|
-
export * from '../../components/Markdown/styledVariables';
|
|
@@ -23,5 +23,4 @@ __exportStar(require("../../components/Markdown/MarkdownWrapper"), exports);
|
|
|
23
23
|
__exportStar(require("../../components/Markdown/Mermaid"), exports);
|
|
24
24
|
__exportStar(require("../../components/Markdown/PageWrapper"), exports);
|
|
25
25
|
__exportStar(require("../../components/Markdown/Sup"), exports);
|
|
26
|
-
__exportStar(require("../../components/Markdown/styledVariables"), exports);
|
|
27
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -19,10 +19,12 @@ exports.Menu = Menu;
|
|
|
19
19
|
exports.ThemeMenu = styled_components_1.default.ul.attrs(() => ({
|
|
20
20
|
'data-component-name': 'Menu/Menu',
|
|
21
21
|
})) `
|
|
22
|
-
padding:
|
|
23
|
-
margin:
|
|
24
|
-
list-style:
|
|
25
|
-
color: var(--
|
|
26
|
-
|
|
22
|
+
padding: 0;
|
|
23
|
+
margin: 0;
|
|
24
|
+
list-style: none;
|
|
25
|
+
color: var(--sidebar-item-text-color);
|
|
26
|
+
${({ theme }) => theme.mediaQueries.medium} {
|
|
27
|
+
position: relative;
|
|
28
|
+
}
|
|
27
29
|
`;
|
|
28
30
|
//# sourceMappingURL=Menu.js.map
|
|
@@ -55,10 +55,10 @@ function MenuGroup({ item, isExpanded, toggleExpanded, children, className, }) {
|
|
|
55
55
|
}, [isExpanded]);
|
|
56
56
|
return (react_1.default.createElement(Wrapper, { "data-component-name": "Menu/MenuGroup", className: className },
|
|
57
57
|
react_1.default.createElement(MenuLinkItem_1.MenuLinkItem, { item: item },
|
|
58
|
-
react_1.default.createElement(MenuGroupLabel, { onClick: toggleExpanded, isAlwaysExpanded: item.expanded === 'always', active: item.active, role: !item.link ? 'link' : 'none'
|
|
58
|
+
react_1.default.createElement(MenuGroupLabel, { onClick: toggleExpanded, isAlwaysExpanded: item.expanded === 'always', active: item.active, role: !item.link ? 'link' : 'none' },
|
|
59
|
+
!!item.items.length && react_1.default.createElement(MenuGroupArrow, { direction: isExpanded ? 'down' : 'right' }),
|
|
59
60
|
item.icon ? react_1.default.createElement(SidebarItemIcon_1.SidebarItemIcon, { src: item.icon }) : null,
|
|
60
|
-
translate(item.labelTranslationKey, item.label),
|
|
61
|
-
!!item.items.length && (react_1.default.createElement(ArrowIcon_1.ArrowIcon, { direction: isExpanded ? 'down' : 'right', weight: "thin" })))),
|
|
61
|
+
translate(item.labelTranslationKey, item.label))),
|
|
62
62
|
react_1.default.createElement(MenuWrapper, { isExpanded: isExpanded }, showChildren ? children : null),
|
|
63
63
|
item.separatorLine ? react_1.default.createElement(SeparatorLine_1.SeparatorLine, null) : null));
|
|
64
64
|
}
|
|
@@ -81,17 +81,12 @@ const MenuGroupLabel = (0, styled_components_1.default)(MenuItemLabel_1.MenuItem
|
|
|
81
81
|
text-transform: var(--sidebar-text-group-transform);
|
|
82
82
|
color: var(--sidebar-item-group-text-color);
|
|
83
83
|
background: var(--sidebar-item-group-background-color);
|
|
84
|
-
|
|
85
|
-
justify-content: space-between;
|
|
86
|
-
|
|
87
|
-
${({ active }) => active
|
|
84
|
+
${(props) => props.active
|
|
88
85
|
? `color: var(--sidebar-item-group-active-text-color);
|
|
89
86
|
background-color: var(--sidebar-item-group-active-background-color);`
|
|
90
87
|
: null};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
color: var(--sidebar-item-group-active-text-color);
|
|
95
|
-
`}
|
|
88
|
+
`;
|
|
89
|
+
const MenuGroupArrow = (0, styled_components_1.default)(ArrowIcon_1.ArrowIcon) `
|
|
90
|
+
margin-right: calc(var(--sidebar-spacing-unit) / 2);
|
|
96
91
|
`;
|
|
97
92
|
//# sourceMappingURL=MenuGroup.js.map
|
|
@@ -19,7 +19,7 @@ function MenuItem({ item, className }) {
|
|
|
19
19
|
react_1.default.createElement(Label, { active: item.active },
|
|
20
20
|
item.icon ? react_1.default.createElement(SidebarItemIcon_1.SidebarItemIcon, { src: item.icon }) : null,
|
|
21
21
|
translate(item.labelTranslationKey, item.label),
|
|
22
|
-
item.external ? react_1.default.createElement(ExternalIcon_1.ExternalIcon,
|
|
22
|
+
item.external ? react_1.default.createElement(ExternalIcon_1.ExternalIcon, { dataComponentName: "Sidebar/ExternalIcon" }) : null)),
|
|
23
23
|
item.separatorLine ? react_1.default.createElement(SeparatorLine_1.SeparatorLine, null) : null));
|
|
24
24
|
}
|
|
25
25
|
exports.MenuItem = MenuItem;
|
|
@@ -10,24 +10,28 @@ exports.MenuItemLabel = styled_components_1.default.li.attrs(({ className }) =>
|
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
12
|
display: flex;
|
|
13
|
-
align-items:
|
|
13
|
+
align-items: center;
|
|
14
14
|
cursor: pointer;
|
|
15
|
-
transition:
|
|
16
|
-
word-break:
|
|
15
|
+
transition: background-color 0.3s, color 0.3s;
|
|
16
|
+
word-break: break-word;
|
|
17
|
+
margin-bottom: 1px;
|
|
17
18
|
|
|
18
19
|
background-color: var(--sidebar-item-background-color);
|
|
19
20
|
font-family: var(--sidebar-item-font-family);
|
|
20
21
|
font-size: var(--sidebar-item-font-size);
|
|
21
|
-
font-weight: var(--
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
padding:
|
|
22
|
+
font-weight: var(--font-weight-regular);
|
|
23
|
+
margin-left: var(--sidebar-offset-left);
|
|
24
|
+
padding: var(--sidebar-item-padding-vertical) var(--sidebar-item-padding-horizontal);
|
|
25
|
+
padding-left: calc(
|
|
26
|
+
var(--sidebar-item-padding-horizontal) + var(--sidebar-group-item-chevron-size) +
|
|
27
|
+
var(--sidebar-spacing-unit) * 0.5
|
|
28
|
+
);
|
|
25
29
|
border-radius: var(--sidebar-item-border-radius);
|
|
26
30
|
|
|
27
31
|
${({ active, theme }) => active &&
|
|
28
32
|
`
|
|
29
33
|
color: var(--mobile-menu-item-active-text-color);
|
|
30
|
-
background-color: var(--mobile-menu-item-active-
|
|
34
|
+
background-color: var(--mobile-menu-item-active-color);
|
|
31
35
|
|
|
32
36
|
${theme.mediaQueries.medium} {
|
|
33
37
|
color: var(--sidebar-item-active-color);
|
|
@@ -40,7 +44,7 @@ exports.MenuItemLabel = styled_components_1.default.li.attrs(({ className }) =>
|
|
|
40
44
|
|
|
41
45
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
42
46
|
color: var(--sidebar-item-hover-color);
|
|
43
|
-
background: var(--sidebar-item-hover-background-color);
|
|
47
|
+
background-color: var(--sidebar-item-hover-background-color);
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
|
|
@@ -32,7 +32,7 @@ const react_router_dom_1 = require("react-router-dom");
|
|
|
32
32
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
33
33
|
const constants_1 = require("../../components/Menu/constants");
|
|
34
34
|
const index_1 = require("../../components/Menu/index");
|
|
35
|
-
const MobileUserProfile_1 = require("../../components/
|
|
35
|
+
const MobileUserProfile_1 = require("../../components/Navbar/MobileUserProfile");
|
|
36
36
|
const hooks_1 = require("../../mocks/hooks");
|
|
37
37
|
const icons_1 = require("../../icons");
|
|
38
38
|
const Product_1 = require("../../components/Product/Product");
|
|
@@ -69,17 +69,17 @@ function MobileMenu({ className }) {
|
|
|
69
69
|
}
|
|
70
70
|
exports.MobileMenu = MobileMenu;
|
|
71
71
|
const MobileMenuWrapper = styled_components_1.default.div `
|
|
72
|
-
height: var(--
|
|
73
|
-
width:
|
|
72
|
+
height: calc(100vh - var(--navbar-height));
|
|
73
|
+
width: 100%;
|
|
74
74
|
position: fixed;
|
|
75
|
-
z-index: var(--
|
|
76
|
-
left:
|
|
77
|
-
top: var(--
|
|
75
|
+
z-index: var(--z-index-raised);
|
|
76
|
+
left: 0;
|
|
77
|
+
top: var(--navbar-height);
|
|
78
78
|
overflow-x: hidden;
|
|
79
|
-
transition:
|
|
79
|
+
transition: 0.5s;
|
|
80
80
|
display: flex;
|
|
81
81
|
flex-direction: column;
|
|
82
|
-
background: var(--mobile-menu-
|
|
82
|
+
background: var(--mobile-menu-background);
|
|
83
83
|
|
|
84
84
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
85
85
|
display: none;
|
|
@@ -97,22 +97,26 @@ const ScrollableArea = styled_components_1.default.div `
|
|
|
97
97
|
flex-grow: 1;
|
|
98
98
|
`;
|
|
99
99
|
const MenuWrapper = styled_components_1.default.div `
|
|
100
|
-
margin: var(--mobile-menu-margin);
|
|
101
|
-
|
|
100
|
+
margin: 0 var(--mobile-menu-horizontal-margin);
|
|
101
|
+
margin-top: var(--mobile-menu-items-margin-top);
|
|
102
|
+
line-height: 22px;
|
|
102
103
|
background: var(--mobile-menu-background);
|
|
103
104
|
|
|
104
105
|
${index_1.MenuItemLabel} {
|
|
105
|
-
margin:
|
|
106
|
+
margin: 0;
|
|
106
107
|
border-radius: var(--mobile-menu-item-radius);
|
|
108
|
+
padding-left: var(--sidebar-item-padding-horizontal);
|
|
107
109
|
}
|
|
108
110
|
`;
|
|
109
111
|
exports.ControlButton = styled_components_1.default.li `
|
|
110
112
|
display: inline-block;
|
|
111
|
-
padding: var(--mobile-menu-control-button-padding)
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
padding: var(--mobile-menu-control-button-padding-vertical)
|
|
114
|
+
var(--mobile-menu-control-button-padding-horizontal);
|
|
115
|
+
margin: var(--mobile-menu-control-button-margin-vertical)
|
|
116
|
+
var(--mobile-menu-control-button-margin-horizontal);
|
|
117
|
+
text-align: center;
|
|
114
118
|
font-size: var(--mobile-menu-control-button-font-size);
|
|
115
|
-
line-height:
|
|
119
|
+
line-height: 22px;
|
|
116
120
|
font-weight: var(--mobile-menu-control-button-weight);
|
|
117
121
|
color: var(--mobile-menu-control-button-color);
|
|
118
122
|
cursor: pointer;
|
|
@@ -135,10 +139,11 @@ const ControlButtonLabel = styled_components_1.default.span `
|
|
|
135
139
|
${({ paddingDirection }) => paddingDirection === 'right' && 'padding-right: 8px'};
|
|
136
140
|
`;
|
|
137
141
|
const ProductNameWrapper = styled_components_1.default.div `
|
|
138
|
-
color: var(--mobile-menu-
|
|
139
|
-
border-radius: var(--mobile-menu-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
color: var(--mobile-menu-item-text-color);
|
|
143
|
+
border-radius: var(--mobile-menu-item-radius);
|
|
144
|
+
padding-left: var(--sidebar-item-padding-horizontal);
|
|
145
|
+
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
146
|
+
padding: 8px 7px;
|
|
147
|
+
margin: 12px 8px 0 8px;
|
|
143
148
|
`;
|
|
144
149
|
//# sourceMappingURL=MobileMenu.js.map
|
|
@@ -44,7 +44,7 @@ const MenuGroupLabel = (0, styled_components_1.default)(MenuItemLabel_1.MenuItem
|
|
|
44
44
|
${({ active }) => active &&
|
|
45
45
|
`
|
|
46
46
|
color: var(--mobile-menu-item-active-text-color);
|
|
47
|
-
background-color: var(--mobile-menu-item-active-
|
|
47
|
+
background-color: var(--mobile-menu-item-active-color);
|
|
48
48
|
`}
|
|
49
49
|
|
|
50
50
|
${({ expanded }) => expanded &&
|
|
@@ -22,5 +22,4 @@ __exportStar(require("../../components/Menu/MenuItemLabel"), exports);
|
|
|
22
22
|
__exportStar(require("../../components/Menu/MenuLink"), exports);
|
|
23
23
|
__exportStar(require("../../components/Menu/MenuLinkItem"), exports);
|
|
24
24
|
__exportStar(require("../../components/Menu/MobileMenuGroup"), exports);
|
|
25
|
-
__exportStar(require("../../components/Menu/styledVariables"), exports);
|
|
26
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,9 +8,9 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const useProfileProps_1 = require("../../mocks/Profile/useProfileProps");
|
|
10
10
|
const LogoutIcon_1 = require("../../icons/LogoutIcon");
|
|
11
|
+
const Profile_1 = require("../../components/Profile/Profile");
|
|
11
12
|
const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
12
13
|
const hooks_1 = require("../../mocks/hooks");
|
|
13
|
-
const UserProfileData_1 = require("../../components/Profile/UserProfileData");
|
|
14
14
|
const telemetry_1 = require("../../mocks/telemetry");
|
|
15
15
|
function MobileUserProfile() {
|
|
16
16
|
const { userProfile } = (0, useThemeConfig_1.useThemeConfig)();
|
|
@@ -22,7 +22,10 @@ function MobileUserProfile() {
|
|
|
22
22
|
if (!(userData === null || userData === void 0 ? void 0 : userData.isAuthenticated) && !loginUrl)
|
|
23
23
|
return null;
|
|
24
24
|
return (react_1.default.createElement(MobileProfileWrapper, { "data-component-name": "Navbar/MobileUserProfile" }, !(userData === null || userData === void 0 ? void 0 : userData.isAuthenticated) ? (react_1.default.createElement(LoginButton, { href: loginUrl, "data-cy": "login-btn", onClick: () => telemetry_1.telemetry.send('login_button_clicked', {}) }, translate(translationKeys.login, (userProfile === null || userProfile === void 0 ? void 0 : userProfile.loginLabel) || 'Login'))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
25
|
-
react_1.default.createElement(
|
|
25
|
+
react_1.default.createElement(UserDataWrapper, null,
|
|
26
|
+
react_1.default.createElement(ProfilePicture, null,
|
|
27
|
+
react_1.default.createElement(Profile_1.Profile, { name: userData.name, imageUrl: userData.picture })),
|
|
28
|
+
react_1.default.createElement(UserName, null, userData.name)),
|
|
26
29
|
react_1.default.createElement(LogoutButton, { onClick: () => {
|
|
27
30
|
handleLogout();
|
|
28
31
|
telemetry_1.telemetry.send('logout_menu_item_clicked', {});
|
|
@@ -32,23 +35,16 @@ function MobileUserProfile() {
|
|
|
32
35
|
exports.MobileUserProfile = MobileUserProfile;
|
|
33
36
|
const LoginButton = styled_components_1.default.a `
|
|
34
37
|
background: var(--mobile-menu-login-button-background);
|
|
35
|
-
border-radius:
|
|
38
|
+
border-radius: 6px;
|
|
36
39
|
width: 100%;
|
|
37
40
|
margin: 0;
|
|
38
41
|
padding: 5px 0;
|
|
39
42
|
color: var(--mobile-menu-login-button-color);
|
|
40
|
-
|
|
41
|
-
font-size: var(--mobile-menu-login-button-font-size);
|
|
42
|
-
font-family: var(--mobile-menu-login-button-font-family);
|
|
43
|
-
font-weight: var(--mobile-menu-login-button-font-weight);
|
|
43
|
+
font-size: 14px;
|
|
44
44
|
text-align: center;
|
|
45
|
-
line-height:
|
|
45
|
+
line-height: 22px;
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
text-decoration: none;
|
|
48
|
-
|
|
49
|
-
&:hover {
|
|
50
|
-
color: var(--mobile-menu-login-button-hover-color);
|
|
51
|
-
}
|
|
52
48
|
`;
|
|
53
49
|
const MobileProfileWrapper = styled_components_1.default.div `
|
|
54
50
|
display: flex;
|
|
@@ -60,6 +56,22 @@ const MobileProfileWrapper = styled_components_1.default.div `
|
|
|
60
56
|
border-top: 1px solid var(--mobile-menu-profile-border-color);
|
|
61
57
|
background: var(--mobile-menu-profile-background);
|
|
62
58
|
`;
|
|
59
|
+
const UserDataWrapper = styled_components_1.default.div `
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
`;
|
|
63
|
+
const ProfilePicture = styled_components_1.default.div `
|
|
64
|
+
margin-right: 16px;
|
|
65
|
+
|
|
66
|
+
${Profile_1.AvatarWrapper} {
|
|
67
|
+
margin: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
${Profile_1.ProfileWrapper} {
|
|
71
|
+
padding: 0;
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
const UserName = styled_components_1.default.div ``;
|
|
63
75
|
const LogoutButton = styled_components_1.default.div `
|
|
64
76
|
cursor: pointer;
|
|
65
77
|
user-select: none;
|
|
@@ -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
|
-
react_1.default.createElement(ColorModeSwitcherWrapper, { isVisible: isOpen },
|
|
93
|
-
react_1.default.createElement(ColorModeSwitcher_1.ColorModeSwitcher, null)),
|
|
91
|
+
react_1.default.createElement(LanguagePicker_1.LanguagePicker, { onChangeLanguage: changeLanguage }),
|
|
94
92
|
hideUserProfile ? null : (react_1.default.createElement(AuthUserProfileWrapper, null,
|
|
95
|
-
react_1.default.createElement(AuthUserProfile_1.AuthUserProfile, null)))
|
|
93
|
+
react_1.default.createElement(AuthUserProfile_1.AuthUserProfile, null))),
|
|
94
|
+
react_1.default.createElement(ColorModeSwitcherWrapper, { isVisible: isOpen },
|
|
95
|
+
react_1.default.createElement(ColorModeSwitcher_1.ColorModeSwitcher, null)))));
|
|
96
96
|
}
|
|
97
97
|
exports.NavbarPresentational = NavbarPresentational;
|
|
98
98
|
const ColorModeSwitcherWrapper = styled_components_1.default.div `
|
|
@@ -110,8 +110,6 @@ 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
|
-
|
|
115
113
|
--text-color: var(--navbar-text-color);
|
|
116
114
|
|
|
117
115
|
height: var(--navbar-height);
|
|
@@ -120,13 +118,17 @@ exports.NavbarContainer = styled_components_1.default.nav `
|
|
|
120
118
|
align-items: center;
|
|
121
119
|
flex-shrink: 0;
|
|
122
120
|
|
|
123
|
-
font-size:
|
|
121
|
+
font-size: 0.875rem;
|
|
124
122
|
position: sticky;
|
|
125
123
|
top: 0;
|
|
126
124
|
z-index: var(--z-index-raised);
|
|
127
|
-
padding:
|
|
125
|
+
padding: var(--navbar-item-padding-vertical) var(--navbar-item-padding-horizontal);
|
|
128
126
|
background: var(--navbar-background-color);
|
|
129
|
-
font-family: var(--navbar-font-family);
|
|
127
|
+
font-family: var(--navbar-item-font-family);
|
|
128
|
+
|
|
129
|
+
${({ theme }) => theme.mediaQueries.medium} {
|
|
130
|
+
font-size: 1rem;
|
|
131
|
+
}
|
|
130
132
|
|
|
131
133
|
${({ theme }) => theme.mediaQueries.print} {
|
|
132
134
|
background: transparent;
|
|
@@ -139,23 +141,14 @@ exports.NavbarContainer = styled_components_1.default.nav `
|
|
|
139
141
|
margin: 0;
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
|
-
|
|
143
|
-
${({ theme }) => theme.mediaQueries.medium} {
|
|
144
|
-
padding: var(--navbar-padding);
|
|
145
|
-
}
|
|
146
144
|
`;
|
|
147
145
|
exports.NavbarRow = styled_components_1.default.div `
|
|
148
146
|
display: flex;
|
|
149
147
|
align-items: center;
|
|
150
148
|
justify-content: space-between;
|
|
151
149
|
margin: 0 auto;
|
|
152
|
-
width:
|
|
153
|
-
|
|
154
|
-
${({ theme }) => theme.mediaQueries.medium} {
|
|
155
|
-
width: 100%;
|
|
156
|
-
}
|
|
150
|
+
width: 100%;
|
|
157
151
|
|
|
158
|
-
gap: var(--navbar-menu-items-gap);
|
|
159
152
|
max-width: var(--navbar-container-max-width);
|
|
160
153
|
`;
|
|
161
154
|
//# 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,
|
|
9
|
+
export declare const NavbarMenuItemDropdown: import("styled-components").StyledComponent<({ children, className, items, withArrow, triggerEvent, onChange, dataAttributes, }: import("../../components/Dropdown").DropdownProps) => JSX.Element, any, {
|
|
10
10
|
dataAttributes: {
|
|
11
11
|
'data-component-name': string;
|
|
12
12
|
};
|
|
@@ -36,7 +36,6 @@ 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");
|
|
40
39
|
function NavbarItem({ navItem, className }) {
|
|
41
40
|
const { pathname } = (0, react_router_dom_1.useLocation)();
|
|
42
41
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
@@ -48,8 +47,7 @@ function NavbarItem({ navItem, className }) {
|
|
|
48
47
|
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' }) },
|
|
49
48
|
react_1.default.createElement(exports.NavbarLink, { to: item.link, external: item.external, target: item.target, active: isActive },
|
|
50
49
|
item.icon ? react_1.default.createElement(exports.NavbarIcon, { url: item.icon }) : null,
|
|
51
|
-
react_1.default.createElement(NavbarLabel, null, translate(item.labelTranslationKey, item.label))
|
|
52
|
-
item.external ? react_1.default.createElement(icons_1.ExternalIcon, null) : null)));
|
|
50
|
+
react_1.default.createElement(NavbarLabel, null, translate(item.labelTranslationKey, item.label)))));
|
|
53
51
|
}
|
|
54
52
|
if (navItem.items) {
|
|
55
53
|
const item = navItem;
|
|
@@ -58,8 +56,7 @@ function NavbarItem({ navItem, className }) {
|
|
|
58
56
|
return (react_1.default.createElement(exports.NavbarMenuItemDropdown, { items: groupItemsComponents, triggerEvent: "hover" },
|
|
59
57
|
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' }) },
|
|
60
58
|
react_1.default.createElement(exports.NavbarIcon, { url: item.icon }),
|
|
61
|
-
react_1.default.createElement(NavbarLabel, null, translate(item.labelTranslationKey, item.label))
|
|
62
|
-
item.external ? react_1.default.createElement(icons_1.ExternalIcon, null) : null)));
|
|
59
|
+
react_1.default.createElement(NavbarLabel, null, translate(item.labelTranslationKey, item.label)))));
|
|
63
60
|
}
|
|
64
61
|
return null;
|
|
65
62
|
}
|
|
@@ -75,8 +72,6 @@ exports.NavbarMenuItemDropdown = (0, styled_components_1.default)(Dropdown_1.Dro
|
|
|
75
72
|
}
|
|
76
73
|
`;
|
|
77
74
|
exports.NavbarLink = (0, styled_components_1.default)(Link_1.Link) `
|
|
78
|
-
display: flex;
|
|
79
|
-
align-items: center;
|
|
80
75
|
color: ${({ active }) => active ? 'var(--navbar-item-active-text-color)' : 'var(--navbar-text-color)'};
|
|
81
76
|
text-decoration: ${({ active }) => active ? 'var(--navbar-item-active-text-decoration)' : 'none'};
|
|
82
77
|
`;
|
|
@@ -84,23 +79,16 @@ exports.NavbarMenuItem = styled_components_1.default.li `
|
|
|
84
79
|
display: inline-block;
|
|
85
80
|
padding: var(--navbar-item-padding-vertical) var(--navbar-item-padding-horizontal);
|
|
86
81
|
text-align: center;
|
|
87
|
-
line-height:
|
|
88
|
-
font-
|
|
89
|
-
|
|
82
|
+
line-height: 1;
|
|
83
|
+
font-size: var(--navbar-item-font-size);
|
|
90
84
|
border-radius: var(--navbar-item-border-radius);
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
font-weight: var(--navbar-item-font-weight);
|
|
93
86
|
background: ${({ active }) => active && 'var(--navbar-item-active-background-color)'};
|
|
94
87
|
color: ${({ active }) => active ? 'var(--navbar-item-active-text-color)' : 'var(--navbar-text-color)'};
|
|
95
|
-
|
|
96
88
|
&:hover {
|
|
97
89
|
color: var(--navbar-item-hover-text-color);
|
|
98
90
|
text-decoration: var(--navbar-item-hover-text-decoration);
|
|
99
|
-
|
|
100
|
-
background: ${({ active }) => active
|
|
101
|
-
? 'var(--navbar-item-active-background-color)'
|
|
102
|
-
: 'var(--navbar-item-hover-background-color)'};
|
|
103
|
-
|
|
91
|
+
background: var(--navbar-item-hover-background-color);
|
|
104
92
|
${exports.NavbarLink} {
|
|
105
93
|
color: var(--navbar-item-hover-text-color);
|
|
106
94
|
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: flex-end;
|
|
27
27
|
flex: 1;
|
|
28
|
-
gap: var(--navbar-
|
|
28
|
+
gap: var(--navbar-item-gap);
|
|
29
29
|
|
|
30
30
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
31
31
|
display: flex;
|
|
@@ -17,5 +17,4 @@ 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);
|
|
21
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
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'>;
|
|
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">;
|