@redocly/theme 0.18.5 → 0.19.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/components/Breadcrumbs/Breadcrumb.js +2 -5
- package/lib/components/Breadcrumbs/Breadcrumbs.js +7 -3
- package/lib/components/Breadcrumbs/index.d.ts +1 -0
- package/lib/components/Breadcrumbs/index.js +1 -0
- package/lib/components/Breadcrumbs/styledVariables.d.ts +1 -0
- package/lib/components/Breadcrumbs/styledVariables.js +20 -0
- package/lib/components/Button/Button.d.ts +6 -3
- package/lib/components/Button/Button.js +41 -41
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Button/styledVariables.d.ts +1 -0
- package/lib/components/Button/styledVariables.js +107 -0
- package/lib/components/Catalog/Catalog.d.ts +6 -0
- package/lib/components/Catalog/Catalog.js +115 -106
- package/lib/components/Catalog/CatalogCard.js +91 -58
- package/lib/components/Catalog/index.d.ts +4 -3
- package/lib/components/Catalog/index.js +4 -3
- package/lib/components/Catalog/styledVariables.d.ts +1 -0
- package/lib/components/Catalog/styledVariables.js +95 -0
- package/lib/components/CodeBlock/CodeBlockContainer.js +38 -10
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +3 -4
- package/lib/components/CodeBlock/CodeBlockControlButton.js +5 -19
- package/lib/components/CodeBlock/CodeBlockControls.js +9 -6
- package/lib/components/CodeBlock/index.d.ts +1 -0
- package/lib/components/CodeBlock/index.js +1 -0
- package/lib/components/CodeBlock/styledVariables.d.ts +1 -0
- package/lib/components/CodeBlock/styledVariables.js +92 -0
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +0 -1
- package/lib/components/Dropdown/Dropdown.d.ts +9 -3
- package/lib/components/Dropdown/Dropdown.js +7 -4
- package/lib/components/Dropdown/index.d.ts +1 -0
- package/lib/components/Dropdown/index.js +1 -0
- package/lib/components/Dropdown/styledVariables.d.ts +1 -0
- package/lib/components/Dropdown/styledVariables.js +30 -0
- package/lib/components/EditPageButton/EditPageButton.d.ts +1 -3
- package/lib/components/EditPageButton/EditPageButton.js +17 -8
- package/lib/components/Feedback/Comment.js +5 -0
- package/lib/components/Feedback/Rating.js +5 -1
- package/lib/components/Feedback/Reasons.js +6 -1
- package/lib/components/Feedback/Sentiment.js +5 -0
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.d.ts +3 -1
- package/lib/components/Filter/Filter.js +113 -80
- package/lib/components/Filter/FilterContent.d.ts +13 -0
- package/lib/components/Filter/FilterContent.js +60 -0
- package/lib/components/Filter/FilterPopover.d.ts +13 -0
- package/lib/components/Filter/FilterPopover.js +110 -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 +5 -0
- package/lib/components/Filter/index.js +5 -0
- package/lib/components/Filter/styledVariables.d.ts +1 -0
- package/lib/components/Filter/styledVariables.js +112 -0
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +4 -3
- package/lib/components/Footer/Footer.js +28 -10
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +57 -63
- package/lib/components/Footer/FooterColumns.js +6 -4
- package/lib/components/Footer/FooterCopyright.js +11 -6
- package/lib/components/Footer/index.d.ts +1 -0
- package/lib/components/Footer/index.js +1 -0
- package/lib/components/Footer/styledVariables.d.ts +1 -0
- package/lib/components/Footer/styledVariables.js +61 -0
- package/lib/components/Image/Image.d.ts +9 -0
- package/lib/components/Image/Image.js +31 -0
- package/lib/components/Image/index.d.ts +1 -0
- package/lib/components/{Tags → Image}/index.js +1 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/LastUpdated/LastUpdated.js +1 -0
- package/lib/components/LastUpdated/index.d.ts +2 -0
- package/lib/components/LastUpdated/index.js +19 -0
- package/lib/components/LastUpdated/styledVariables.d.ts +1 -0
- package/lib/components/LastUpdated/styledVariables.js +11 -0
- package/lib/components/Markdown/Admonition.js +12 -9
- package/lib/components/Markdown/MarkdownLayout.d.ts +0 -2
- package/lib/components/Markdown/MarkdownLayout.js +1 -6
- package/lib/components/Markdown/MarkdownWrapper.js +2 -4
- package/lib/components/Markdown/Mermaid.js +4 -1
- package/lib/components/Markdown/index.d.ts +1 -0
- package/lib/components/Markdown/index.js +1 -0
- package/lib/components/Markdown/styledVariables.d.ts +3 -0
- package/lib/components/Markdown/styledVariables.js +231 -0
- package/lib/components/Menu/Menu.js +6 -8
- package/lib/components/Menu/MenuGroup.js +12 -7
- package/lib/components/Menu/MenuItem.js +1 -1
- package/lib/components/Menu/MenuItemLabel.js +9 -13
- package/lib/components/Menu/MenuItemSwitch.d.ts +1 -1
- package/lib/components/Menu/MenuItemSwitch.js +6 -4
- package/lib/components/Menu/MobileMenu.js +20 -25
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/hooks/use-mobile-menu-items.d.ts +1 -1
- package/lib/components/Menu/index.d.ts +5 -0
- package/lib/components/Menu/index.js +5 -0
- package/lib/components/Menu/styledVariables.d.ts +2 -0
- package/lib/components/Menu/styledVariables.js +101 -0
- package/lib/components/Navbar/Navbar.js +20 -13
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +18 -6
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +2 -0
- package/lib/components/Navbar/index.js +2 -0
- package/lib/components/Navbar/styledVariables.d.ts +1 -0
- package/lib/components/Navbar/styledVariables.js +42 -0
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +4 -1
- package/lib/components/NavbarLogo/NavbarLogo.js +13 -5
- package/lib/components/NavbarLogo/index.d.ts +1 -0
- package/lib/components/NavbarLogo/index.js +1 -0
- package/lib/components/NavbarLogo/styledVariables.d.ts +1 -0
- package/lib/components/NavbarLogo/styledVariables.js +18 -0
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/OpenApiDocs/hooks/AfterOpenApiTitle.js +1 -1
- package/lib/components/OpenApiDocs/index.d.ts +9 -1
- package/lib/components/OpenApiDocs/index.js +9 -1
- package/lib/components/PageNavigation/NextButton.js +1 -1
- package/lib/components/PageNavigation/PreviousButton.js +1 -1
- package/lib/components/Panel/PanelHeader.js +2 -0
- package/lib/components/Panel/PanelHeaderTitle.js +0 -4
- package/lib/components/Panel/index.d.ts +1 -0
- package/lib/components/Panel/index.js +1 -0
- package/lib/components/Panel/styledVariables.d.ts +2 -0
- package/lib/components/Panel/styledVariables.js +481 -0
- package/lib/components/Product/ProductPicker.js +18 -11
- package/lib/components/Product/index.d.ts +1 -0
- package/lib/components/Product/index.js +1 -0
- package/lib/components/Product/styledVariables.d.ts +2 -0
- package/lib/components/Product/styledVariables.js +42 -0
- package/lib/components/Profile/LoginLink.js +1 -2
- package/lib/components/{Navbar → Profile}/MobileUserProfile.js +12 -24
- package/lib/components/Profile/Profile.js +3 -22
- package/lib/components/Profile/UserProfile.d.ts +1 -1
- 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 +10 -6
- package/lib/components/Profile/index.js +21 -3
- package/lib/components/Profile/styledVariables.d.ts +2 -0
- package/lib/components/Profile/styledVariables.js +55 -0
- package/lib/components/Search/CancelSearch.js +2 -14
- package/lib/components/Search/ProductTag.js +8 -8
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +0 -2
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +4 -4
- package/lib/components/Search/SearchTrigger.js +4 -5
- package/lib/components/Search/ShortcutKey.js +1 -5
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +3 -0
- package/lib/components/Search/index.js +3 -0
- package/lib/components/Search/styledVariables.d.ts +1 -0
- package/lib/components/Search/styledVariables.js +98 -0
- package/lib/components/Select/Select.d.ts +21 -9
- package/lib/components/Select/Select.js +27 -17
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Select/index.js +1 -0
- package/lib/components/Select/styledVariables.d.ts +1 -0
- package/lib/components/Select/styledVariables.js +34 -0
- package/lib/components/Separator/Separator.js +11 -3
- package/lib/components/Separator/SeparatorItem.js +6 -9
- package/lib/components/Separator/SeparatorLine.js +7 -3
- package/lib/components/Sidebar/ApiCallItem.d.ts +4 -6
- package/lib/components/Sidebar/ApiCallItem.js +18 -13
- package/lib/components/Sidebar/FooterWrapper.js +3 -4
- package/lib/components/Sidebar/HeaderWrapper.js +3 -3
- package/lib/components/Sidebar/VersionPicker.d.ts +3 -3
- package/lib/components/Sidebar/VersionPicker.js +6 -4
- package/lib/components/Sidebar/index.d.ts +2 -0
- package/lib/components/Sidebar/index.js +2 -0
- package/lib/components/Sidebar/styledVariables.d.ts +2 -0
- package/lib/components/Sidebar/styledVariables.js +216 -0
- package/lib/components/Sidebar/types.d.ts +1 -0
- package/lib/components/SidebarActions/CollapseSidebarButton.js +41 -1
- package/lib/components/SidebarActions/index.d.ts +3 -0
- package/lib/components/SidebarActions/index.js +17 -0
- package/lib/components/SidebarActions/styled.js +29 -21
- package/lib/components/TableOfContent/TableOfContent.js +3 -2
- package/lib/components/TableOfContent/index.d.ts +1 -0
- package/lib/components/TableOfContent/index.js +1 -0
- package/lib/components/TableOfContent/styledVariables.d.ts +1 -0
- package/lib/components/TableOfContent/styledVariables.js +47 -0
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tag/Tag.d.ts +18 -0
- package/lib/components/Tag/Tag.js +46 -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 +148 -0
- package/lib/components/Tiles/ThinTile.js +7 -5
- package/lib/components/Tiles/TileHeader.js +1 -1
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tiles/WideTile.js +10 -8
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/index.js +1 -0
- package/lib/components/Tooltip/styledVariables.d.ts +1 -0
- package/lib/components/Tooltip/styledVariables.js +21 -0
- package/lib/components/Typography/SectionHeader.js +2 -2
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +29 -38
- package/lib/components/index.js +29 -38
- package/lib/config.d.ts +113 -14
- package/lib/config.js +28 -4
- package/lib/globalStyle.js +602 -1983
- package/lib/hooks/useMobileMenu.js +5 -6
- package/lib/hooks/useModalScrollLock.d.ts +1 -0
- package/lib/hooks/useModalScrollLock.js +16 -0
- package/lib/hooks/useThemeConfig.d.ts +1 -1
- package/lib/i18n/LanguagePicker.d.ts +9 -0
- package/lib/{I18n → i18n}/LanguagePicker.js +28 -13
- package/lib/i18n/index.d.ts +2 -0
- package/lib/i18n/index.js +21 -0
- package/lib/i18n/styledVariables.d.ts +1 -0
- package/lib/i18n/styledVariables.js +40 -0
- package/lib/icons/AlertIcon/AlertIcon.js +0 -5
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +6 -0
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +28 -0
- package/lib/icons/CheckboxIcon/index.d.ts +1 -0
- package/lib/icons/CheckboxIcon/index.js +6 -0
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +1 -2
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/EditIcon/EditIcon.d.ts +6 -0
- package/lib/icons/EditIcon/EditIcon.js +18 -0
- package/lib/icons/EditIcon/index.d.ts +1 -0
- package/lib/{components/OperationBadge → icons/EditIcon}/index.js +1 -1
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +4 -0
- package/lib/icons/ErrorIcon/ErrorIcon.js +14 -0
- package/lib/icons/ErrorIcon/index.d.ts +1 -0
- package/lib/icons/ErrorIcon/index.js +18 -0
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/ExternalIcon/ExternalIcon.js +3 -3
- package/lib/icons/FileIcon/FileIcon.d.ts +1 -2
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +4 -0
- package/lib/icons/LanguageIcon/LanguageIcon.js +14 -0
- package/lib/icons/LanguageIcon/index.d.ts +1 -0
- package/lib/icons/LanguageIcon/index.js +18 -0
- package/lib/icons/PlusIcon/PlusIcon.d.ts +5 -0
- package/lib/icons/PlusIcon/PlusIcon.js +16 -0
- package/lib/icons/PlusIcon/index.d.ts +1 -0
- package/lib/icons/PlusIcon/index.js +18 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +4 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +15 -0
- package/lib/icons/PointingArrowIcon/index.d.ts +1 -0
- package/lib/icons/PointingArrowIcon/index.js +18 -0
- package/lib/icons/ReportIcon/ReportIcon.d.ts +1 -2
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/RocketIcon/RocketIcon.d.ts +7 -0
- package/lib/icons/RocketIcon/RocketIcon.js +15 -0
- package/lib/icons/RocketIcon/index.d.ts +1 -0
- package/lib/icons/RocketIcon/index.js +18 -0
- package/lib/icons/SelectIcon/SelectIcon.d.ts +1 -2
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +6 -0
- package/lib/icons/index.js +6 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/Forbidden.js +4 -0
- package/lib/layouts/NotFound.js +4 -0
- package/lib/mocks/hooks/index.js +0 -1
- package/lib/types/portal/src/shared/types/catalog.d.ts +5 -1
- package/lib/types/portal/src/shared/types/nav.d.ts +5 -0
- package/lib/ui/ArrowBack.js +0 -1
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Highlight.d.ts +1 -1
- package/lib/ui/Highlight.js +1 -1
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +217 -84
- package/lib/utils/css-variables.js +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/tags-parser.d.ts +1 -0
- package/lib/utils/tags-parser.js +10 -0
- package/package.json +3 -3
- package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -5
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +7 -4
- package/src/components/Breadcrumbs/index.ts +1 -0
- package/src/components/Breadcrumbs/styledVariables.ts +17 -0
- package/src/components/Button/Button.tsx +53 -47
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/styledVariables.ts +104 -0
- package/src/components/Catalog/Catalog.tsx +141 -123
- package/src/components/Catalog/CatalogCard.tsx +108 -58
- package/src/components/Catalog/index.ts +4 -0
- package/src/components/Catalog/styledVariables.ts +92 -0
- package/src/components/CodeBlock/CodeBlockContainer.tsx +17 -9
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +6 -19
- package/src/components/CodeBlock/CodeBlockControls.tsx +9 -7
- package/src/components/CodeBlock/index.ts +1 -0
- package/src/components/CodeBlock/styledVariables.ts +89 -0
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +0 -1
- package/src/components/Dropdown/Dropdown.tsx +14 -5
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/Dropdown/styledVariables.ts +27 -0
- package/src/components/EditPageButton/EditPageButton.tsx +24 -10
- package/src/components/Feedback/Comment.tsx +5 -0
- package/src/components/Feedback/Rating.tsx +5 -1
- package/src/components/Feedback/Reasons.tsx +6 -1
- package/src/components/Feedback/Sentiment.tsx +5 -0
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +148 -94
- package/src/components/Filter/FilterContent.tsx +94 -0
- package/src/components/Filter/FilterPopover.tsx +150 -0
- package/src/components/Filter/FilterTag.tsx +37 -0
- package/src/components/Filter/FilterTags.tsx +39 -0
- package/src/components/Filter/index.ts +5 -0
- package/src/components/Filter/styledVariables.ts +109 -0
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +32 -10
- package/src/components/Footer/FooterColumn.tsx +84 -63
- package/src/components/Footer/FooterColumns.tsx +6 -4
- package/src/components/Footer/FooterCopyright.tsx +13 -7
- package/src/components/Footer/index.ts +1 -0
- package/src/components/Footer/styledVariables.ts +58 -0
- package/src/components/Image/Image.tsx +47 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LastUpdated/LastUpdated.tsx +1 -2
- package/src/components/LastUpdated/index.ts +2 -0
- package/src/components/LastUpdated/styledVariables.ts +8 -0
- package/src/components/Markdown/Admonition.tsx +13 -8
- package/src/components/Markdown/MarkdownLayout.tsx +2 -15
- package/src/components/Markdown/MarkdownWrapper.tsx +2 -4
- package/src/components/Markdown/Mermaid.tsx +4 -1
- package/src/components/Markdown/index.ts +1 -0
- package/src/components/Markdown/styledVariables.ts +230 -0
- package/src/components/Menu/Menu.tsx +6 -9
- package/src/components/Menu/MenuGroup.tsx +15 -7
- package/src/components/Menu/MenuItem.tsx +1 -1
- package/src/components/Menu/MenuItemLabel.tsx +9 -13
- package/src/components/Menu/MenuItemSwitch.tsx +3 -2
- package/src/components/Menu/MobileMenu.tsx +20 -25
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +5 -0
- package/src/components/Menu/styledVariables.ts +99 -0
- package/src/components/Navbar/Navbar.tsx +20 -13
- package/src/components/Navbar/NavbarItem.tsx +18 -4
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +2 -0
- package/src/components/Navbar/styledVariables.ts +39 -0
- package/src/components/NavbarLogo/NavbarLogo.tsx +24 -11
- package/src/components/NavbarLogo/index.ts +1 -0
- package/src/components/NavbarLogo/styledVariables.ts +15 -0
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +1 -2
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/OpenApiDocs/hooks/AfterOpenApiTitle.tsx +1 -1
- package/src/components/OpenApiDocs/index.ts +9 -1
- package/src/components/PageNavigation/NextButton.tsx +0 -1
- package/src/components/PageNavigation/PreviousButton.tsx +0 -1
- package/src/components/Panel/PanelHeader.ts +2 -0
- package/src/components/Panel/PanelHeaderTitle.ts +0 -4
- package/src/components/Panel/index.ts +1 -0
- package/src/components/Panel/styledVariables.ts +479 -0
- package/src/components/Product/ProductPicker.tsx +21 -22
- package/src/components/Product/index.ts +1 -0
- package/src/components/Product/styledVariables.ts +40 -0
- package/src/components/Profile/LoginLink.tsx +1 -2
- package/src/components/{Navbar → Profile}/MobileUserProfile.tsx +12 -29
- package/src/components/Profile/Profile.tsx +1 -24
- package/src/components/Profile/UserProfile.tsx +21 -10
- package/src/components/Profile/UserProfileData.tsx +40 -0
- package/src/components/Profile/index.ts +10 -6
- package/src/components/Profile/styledVariables.ts +53 -0
- package/src/components/Search/CancelSearch.tsx +2 -15
- package/src/components/Search/ProductTag.tsx +8 -8
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +0 -2
- package/src/components/Search/SearchIcon.tsx +10 -5
- package/src/components/Search/SearchItem.tsx +4 -4
- package/src/components/Search/SearchTrigger.tsx +4 -5
- package/src/components/Search/ShortcutKey.tsx +1 -5
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +3 -0
- package/src/components/Search/styledVariables.ts +95 -0
- package/src/components/Select/Select.tsx +65 -31
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/styledVariables.ts +31 -0
- package/src/components/Separator/Separator.tsx +17 -3
- package/src/components/Separator/SeparatorItem.tsx +6 -9
- package/src/components/Separator/SeparatorLine.tsx +7 -3
- package/src/components/Sidebar/ApiCallItem.tsx +18 -13
- package/src/components/Sidebar/FooterWrapper.tsx +3 -4
- package/src/components/Sidebar/HeaderWrapper.tsx +3 -3
- package/src/components/Sidebar/VersionPicker.tsx +6 -4
- package/src/components/Sidebar/index.ts +2 -0
- package/src/components/Sidebar/styledVariables.ts +214 -0
- package/src/components/Sidebar/types.ts +1 -0
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +22 -2
- package/src/components/SidebarActions/index.tsx +3 -0
- package/src/components/SidebarActions/styled.tsx +29 -30
- package/src/components/TableOfContent/TableOfContent.tsx +3 -2
- package/src/components/TableOfContent/index.ts +1 -0
- package/src/components/TableOfContent/styledVariables.ts +44 -0
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tag/Tag.tsx +72 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/Tag/styledVariables.ts +145 -0
- package/src/components/Tiles/ThinTile.tsx +7 -5
- package/src/components/Tiles/TileHeader.ts +1 -1
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tiles/WideTile.tsx +10 -8
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/styledVariables.ts +18 -0
- package/src/components/Typography/SectionHeader.ts +2 -2
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +29 -38
- package/src/config.ts +30 -3
- package/src/globalStyle.ts +597 -1999
- package/src/hooks/useMobileMenu.ts +3 -4
- package/src/hooks/useModalScrollLock.ts +12 -0
- package/src/hooks/useThemeConfig.ts +1 -2
- package/src/{I18n → i18n}/LanguagePicker.tsx +49 -22
- package/src/i18n/index.ts +2 -0
- package/src/i18n/styledVariables.ts +37 -0
- package/src/icons/AlertIcon/AlertIcon.tsx +0 -5
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +64 -0
- package/src/icons/CheckboxIcon/index.ts +1 -0
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +4 -5
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/EditIcon/EditIcon.tsx +30 -0
- package/src/icons/EditIcon/index.ts +1 -0
- package/src/icons/ErrorIcon/ErrorIcon.tsx +15 -0
- package/src/icons/ErrorIcon/index.ts +1 -0
- package/src/icons/ExpandIcon/ExpandIcon.tsx +5 -6
- package/src/icons/ExternalIcon/ExternalIcon.tsx +4 -4
- package/src/icons/FileIcon/FileIcon.tsx +2 -3
- package/src/icons/LanguageIcon/LanguageIcon.tsx +15 -0
- package/src/icons/LanguageIcon/index.ts +1 -0
- package/src/icons/PlusIcon/PlusIcon.tsx +25 -0
- package/src/icons/PlusIcon/index.ts +1 -0
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +16 -0
- package/src/icons/PointingArrowIcon/index.ts +1 -0
- package/src/icons/ReportIcon/ReportIcon.tsx +3 -4
- package/src/icons/RocketIcon/RocketIcon.tsx +32 -0
- package/src/icons/RocketIcon/index.tsx +1 -0
- package/src/icons/SelectIcon/SelectIcon.tsx +5 -6
- package/src/icons/index.ts +6 -0
- package/src/index.ts +10 -10
- package/src/layouts/Forbidden.tsx +4 -0
- package/src/layouts/NotFound.tsx +4 -0
- package/src/mocks/hooks/index.ts +0 -1
- package/src/types/portal/src/shared/types/catalog.ts +7 -1
- package/src/types/portal/src/shared/types/nav.ts +5 -0
- package/src/ui/ArrowBack.tsx +0 -1
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Highlight.tsx +2 -2
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +217 -84
- package/src/utils/css-variables.ts +4 -2
- package/src/utils/index.ts +1 -0
- package/src/utils/tags-parser.ts +8 -0
- package/lib/I18n/LanguagePicker.d.ts +0 -4
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -6
- package/lib/components/OperationBadge/OperationBadge.d.ts +0 -6
- package/lib/components/OperationBadge/OperationBadge.js +0 -68
- package/lib/components/OperationBadge/index.d.ts +0 -1
- package/lib/components/Tags/Tags.d.ts +0 -5
- package/lib/components/Tags/Tags.js +0 -32
- package/lib/components/Tags/index.d.ts +0 -1
- package/src/I18n/index.ts +0 -1
- package/src/components/Catalog/index.tsx +0 -3
- package/src/components/OperationBadge/OperationBadge.ts +0 -62
- package/src/components/OperationBadge/index.ts +0 -1
- package/src/components/Tags/Tags.tsx +0 -36
- package/src/components/Tags/index.ts +0 -1
- /package/lib/components/{Navbar → Profile}/MobileUserProfile.d.ts +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lastUpdated = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.lastUpdated = (0, styled_components_1.css) `
|
|
6
|
+
--last-updated-text-color: var(--text-secondary);
|
|
7
|
+
--last-updated-font-size: var(--font-size-sm);
|
|
8
|
+
--last-updated-font-family: var(--font-family-base);
|
|
9
|
+
--last-updated-line-height: var(--line-height-base);
|
|
10
|
+
`;
|
|
11
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -10,16 +10,17 @@ 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
|
-
|
|
14
|
-
|
|
13
|
+
react_1.default.createElement(TextContainer, null,
|
|
14
|
+
name ? react_1.default.createElement(Heading, { type: type }, name) : null,
|
|
15
|
+
react_1.default.createElement(Content, null, children))));
|
|
15
16
|
}
|
|
16
17
|
exports.Admonition = Admonition;
|
|
17
18
|
const Wrapper = styled_components_1.default.div `
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
gap: var(--spacing-base);
|
|
20
22
|
margin: var(--admonition-margin-vertical) var(--admonition-margin-horizontal);
|
|
21
23
|
padding: var(--admonition-padding-vertical) var(--admonition-padding-horizontal);
|
|
22
|
-
padding-left: calc(var(--admonition-padding-horizontal) * 2 + var(--admonition-icon-size));
|
|
23
24
|
border-radius: var(--admonition-border-radius);
|
|
24
25
|
font-size: var(--admonition-font-size);
|
|
25
26
|
font-weight: var(--admonition-font-weight);
|
|
@@ -34,10 +35,12 @@ const Wrapper = styled_components_1.default.div `
|
|
|
34
35
|
border: var(--admonition-${type}-border);
|
|
35
36
|
`}
|
|
36
37
|
`;
|
|
37
|
-
const
|
|
38
|
-
display:
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const TextContainer = styled_components_1.default.div `
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: var(--spacing-unit);
|
|
42
|
+
`;
|
|
43
|
+
const Heading = styled_components_1.default.div `
|
|
41
44
|
letter-spacing: var(--admonition-heading-letter-spacing);
|
|
42
45
|
color: ${({ type }) => `var(--admonition-${type}-heading-text-color)`};
|
|
43
46
|
|
|
@@ -12,14 +12,9 @@ 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");
|
|
16
15
|
const Breadcrumbs_1 = require("../../components/Breadcrumbs");
|
|
17
16
|
function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, lastModified, nextPage, prevPage, className, }) {
|
|
18
17
|
const { markdown } = (0, hooks_1.useThemeConfig)();
|
|
19
|
-
const { translate } = (0, hooks_2.useTranslate)();
|
|
20
|
-
const translationKeys = {
|
|
21
|
-
text: 'theme.markdown.editPage.text',
|
|
22
|
-
};
|
|
23
18
|
const { editPage: themeEditPage } = markdown || {};
|
|
24
19
|
const mergedConf = editPage ? Object.assign(Object.assign({}, themeEditPage), editPage) : undefined;
|
|
25
20
|
return (react_1.default.createElement(PageWrapper_1.PageWrapper, { "data-component-name": "Markdown/MarkdownLayout", className: className },
|
|
@@ -27,7 +22,7 @@ function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, l
|
|
|
27
22
|
react_1.default.createElement(Breadcrumbs, null),
|
|
28
23
|
react_1.default.createElement(LayoutTop, null,
|
|
29
24
|
lastModified && react_1.default.createElement(LastUpdated_1.LastUpdated, { lastModified: new Date(lastModified) }),
|
|
30
|
-
mergedConf &&
|
|
25
|
+
mergedConf && react_1.default.createElement(EditPageButton_1.EditPageButton, { to: mergedConf.to })),
|
|
31
26
|
markdownWrapper,
|
|
32
27
|
react_1.default.createElement(LayoutBottom, null, feedback),
|
|
33
28
|
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-secondary);
|
|
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-secondary);
|
|
227
227
|
font-weight: var(--font-weight-regular);
|
|
228
228
|
outline: 0;
|
|
229
229
|
padding: 0;
|
|
@@ -333,8 +333,6 @@ 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);
|
|
338
336
|
|
|
339
337
|
code {
|
|
340
338
|
background-color: transparent;
|
|
@@ -12,8 +12,11 @@ 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
|
+
|
|
15
18
|
.mermaid > svg {
|
|
16
|
-
font-size:
|
|
19
|
+
font-size: var(--font-size-base) !important;
|
|
17
20
|
max-width: 100%;
|
|
18
21
|
}
|
|
19
22
|
`;
|
|
@@ -7,3 +7,4 @@ 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,4 +23,5 @@ __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);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mermaid = exports.markdown = exports.admonition = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.admonition = (0, styled_components_1.css) `
|
|
6
|
+
/* === Admonitions === */
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @tokens Admonition typography
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
--admonition-font-size: var(--font-size-sm); // @presenter FontSize
|
|
13
|
+
--admonition-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
14
|
+
--admonition-line-height: var(--line-height-base); // @presenter LineHeight
|
|
15
|
+
--admonition-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
16
|
+
--admonition-heading-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
17
|
+
--admonition-heading-letter-spacing: 0.3px; // @presenter LetterSpacing
|
|
18
|
+
--admonition-heading-transform: uppercase;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @tokens Admonition spacing
|
|
22
|
+
* @presenter Spacing
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
--admonition-margin-horizontal: 0;
|
|
26
|
+
--admonition-margin-vertical: var(--spacing-lg);
|
|
27
|
+
--admonition-padding-horizontal: var(--spacing-base);
|
|
28
|
+
--admonition-padding-vertical: var(--spacing-md);
|
|
29
|
+
--admonition-icon-size: 25px;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @tokens Admonition border
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
--admonition-border-radius: 0; // @presenter BorderRadius
|
|
36
|
+
--admonition-border-style: var(--border-style);
|
|
37
|
+
--admonition-border-width: var(--border-width);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @tokens Admonition type info
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
--admonition-info-background-color: var(--color-info-bg); // @presenter Color
|
|
44
|
+
--admonition-info-heading-text-color: var(--text-primary); // @presenter Color
|
|
45
|
+
--admonition-info-text-color: var(--text-secondary); // @presenter Color
|
|
46
|
+
--admonition-info-icon-color: var(--color-info-base); // @presenter Color
|
|
47
|
+
--admonition-info-border-color: inherit; // @presenter Color
|
|
48
|
+
--admonition-info-border-style: var(--admonition-border-style);
|
|
49
|
+
--admonition-info-border-width: var(--admonition-border-width);
|
|
50
|
+
--admonition-info-border: var(--admonition-info-border-width) var(--admonition-info-border-style)
|
|
51
|
+
var(--admonition-info-border-color); // @presenter Border
|
|
52
|
+
--admonition-info-icon: none;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @tokens Admonition type attention
|
|
56
|
+
* @presenter Color
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
--admonition-attention-background-color: var(--color-yellow-1); // @presenter Color
|
|
60
|
+
--admonition-attention-text-color: var(--text-secondary); // @presenter Color
|
|
61
|
+
--admonition-attention-heading-text-color: var(--text-primary); // @presenter Color
|
|
62
|
+
--admonition-attention-icon-color: var(--color-yellow-6); // @presenter Color
|
|
63
|
+
--admonition-attention-border-color: inherit; // @presenter Color
|
|
64
|
+
--admonition-attention-border-style: var(--admonition-border-style);
|
|
65
|
+
--admonition-attention-border-width: var(--admonition-border-width);
|
|
66
|
+
--admonition-attention-border: var(--admonition-attention-border-width)
|
|
67
|
+
var(--admonition-attention-border-style) var(--admonition-attention-border-color); // @presenter Border
|
|
68
|
+
--admonition-attention-icon: none;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @tokens Admonition type warning
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/* warning */
|
|
75
|
+
--admonition-warning-background-color: var(--color-warning-bg); // @presenter Color
|
|
76
|
+
--admonition-warning-text-color: var(--text-secondary); // @presenter Color
|
|
77
|
+
--admonition-warning-heading-text-color: var(--text-primary); // @presenter Color
|
|
78
|
+
--admonition-warning-icon-color: var(--color-warning-base); // @presenter Color
|
|
79
|
+
--admonition-warning-border-color: inherit; // @presenter Color
|
|
80
|
+
--admonition-warning-border-style: var(--admonition-border-style); // @presenter Color
|
|
81
|
+
--admonition-warning-border-width: var(--admonition-border-width); // @presenter Color
|
|
82
|
+
--admonition-warning-border: var(--admonition-warning-border-width)
|
|
83
|
+
var(--admonition-warning-border-style) var(--admonition-warning-border-color); // @presenter Border
|
|
84
|
+
--admonition-warning-icon: none;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @tokens Admonition type danger
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
--admonition-danger-background-color: var(--color-error-bg); // @presenter Color
|
|
91
|
+
--admonition-danger-text-color: var(--text-secondary); // @presenter Color
|
|
92
|
+
--admonition-danger-heading-text-color: var(--text-primary); // @presenter Color
|
|
93
|
+
--admonition-danger-icon-color: var(--color-error-base); // @presenter Color
|
|
94
|
+
--admonition-danger-border-color: inherit; // @presenter Color
|
|
95
|
+
--admonition-danger-border-style: var(--admonition-border-style); // @presenter Color
|
|
96
|
+
--admonition-danger-border-width: var(--admonition-border-width); // @presenter Color
|
|
97
|
+
--admonition-danger-border: var(--admonition-danger-border-width)
|
|
98
|
+
var(--admonition-danger-border-style) var(--admonition-danger-border-color); // @presenter Border
|
|
99
|
+
--admonition-danger-icon: none;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @tokens Admonition type success
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
--admonition-success-background-color: var(--color-success-bg); // @presenter Color
|
|
106
|
+
--admonition-success-text-color: var(--text-secondary); // @presenter Color
|
|
107
|
+
--admonition-success-heading-text-color: var(--text-primary); // @presenter Color
|
|
108
|
+
--admonition-success-icon-color: var(--color-success-base); // @presenter Color
|
|
109
|
+
--admonition-success-border-color: inherit; // @presenter Color
|
|
110
|
+
--admonition-success-border-style: var(--admonition-border-style); // @presenter Color
|
|
111
|
+
--admonition-success-border-width: var(--admonition-border-width); // @presenter Color
|
|
112
|
+
--admonition-success-border: var(--admonition-success-border-width)
|
|
113
|
+
var(--admonition-success-border-style) var(--admonition-success-border-color); // @presenter Border
|
|
114
|
+
--admonition-success-icon: none;
|
|
115
|
+
|
|
116
|
+
// @tokens End
|
|
117
|
+
`;
|
|
118
|
+
exports.markdown = (0, styled_components_1.css) `
|
|
119
|
+
/**
|
|
120
|
+
* @tokens Markdown Container
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
--md-container-max-width: 910px;
|
|
124
|
+
--md-container-padding-vertical: 25px; // @presenter Spacing
|
|
125
|
+
--md-container-padding-horizontal: 0px; // @presenter Spacing
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @tokens Markdown Blockquote
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
--md-blockquote-margin-vertical: 1.5em; // @presenter Spacing
|
|
132
|
+
--md-blockquote-margin-horizontal: 0; // @presenter Spacing
|
|
133
|
+
--md-blockquote-padding-vertical: 0; // @presenter Spacing
|
|
134
|
+
--md-blockquote-padding-horizontal: var(--spacing-base); // @presenter Spacing
|
|
135
|
+
--md-blockquote-border-color: var(--border-primary); // @presenter Color
|
|
136
|
+
--md-blockquote-background-color: transparent; // @presenter Color
|
|
137
|
+
--md-blockquote-border-left: 4px solid var(--md-blockquote-border-color); // @presenter Border
|
|
138
|
+
--md-blockquote-text-color: var(--text-secondary); // @presenter Color
|
|
139
|
+
--md-blockquote-box-shadow: none; // @presenter Shadow
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @tokens Markdown Paragraph
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
--md-paragraph-margin-vertical: 10px; // @presenter Spacing
|
|
146
|
+
--md-paragraph-margin-horizontal: 0px; // @presenter Spacing
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @tokens Markdown Table
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
--md-table-font-size: var(--font-size-sm); // @presenter FontSize
|
|
153
|
+
--md-table-margin-vertical: 20px; // @presenter Spacing
|
|
154
|
+
--md-table-background-color: transparent; // @presenter Color
|
|
155
|
+
|
|
156
|
+
--md-table-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
157
|
+
--md-table-border-width: 1px;
|
|
158
|
+
--md-table-border-color: var(--border-primary); // @presenter Color
|
|
159
|
+
|
|
160
|
+
--md-table-stripe-background-color: var(--md-table-background-color); // @presenter Color
|
|
161
|
+
|
|
162
|
+
--md-table-cell-text-color: var(--text-secondary); // @presenter Color
|
|
163
|
+
--md-table-cell-padding: var(--spacing-sm); // @presenter Spacing
|
|
164
|
+
|
|
165
|
+
--md-table-head-background-color: var(--bg-overlay); // @presenter Color
|
|
166
|
+
--md-table-head-text-color: var(--text-primary); // @presenter Color
|
|
167
|
+
--md-table-head-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @tokens Markdown Horizontal Rule
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
--md-hr-background-color: transparent; // @presenter Color
|
|
174
|
+
--md-hr-border-color: var(--border-primary); // @presenter Color
|
|
175
|
+
--md-hr-height: unset;
|
|
176
|
+
--md-hr-margin-vertical: 20px; // @presenter Spacing
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @tokens Markdown List
|
|
180
|
+
*/
|
|
181
|
+
|
|
182
|
+
--md-list-left-padding: 2rem; // @presenter Spacing
|
|
183
|
+
--md-list-margin: 1rem; // @presenter Spacing
|
|
184
|
+
--md-list-item-margin: 0.25rem; // @presenter Spacing
|
|
185
|
+
--md-list-item-style: inherit;
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @tokens Markdown Checkbox List
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
--md-checkbox-list-item-style: none;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @tokens Markdown Numbered List
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
--md-numbered-list-number-display: none;
|
|
199
|
+
--md-numbered-list-item-style: var(--md-list-item-style);
|
|
200
|
+
--md-numbered-list-number-text-color: var(--text-secondary); // @presenter Color
|
|
201
|
+
--md-numbered-list-number-font-size: var(--font-size-base); // @presenter FontSize
|
|
202
|
+
--md-numbered-list-number-font-family: var(--font-size-base); // @presenter FontFamily
|
|
203
|
+
--md-numbered-list-number-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
204
|
+
--md-numbered-list-number-background-color: var(--bg-raised); // @presenter Color
|
|
205
|
+
--md-numbered-list-number-border-radius: 10px; // @presenter BorderRadius
|
|
206
|
+
--md-numbered-list-number-margin-right: 5px; // @presenter Spacing
|
|
207
|
+
--md-numbered-list-number-padding: 0 5px; // @presenter Spacing
|
|
208
|
+
|
|
209
|
+
// @tokens End
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @tokens Markdown Tabs
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
--md-tabs-tab-text-color: var(--text-secondary); // @presenter Color
|
|
216
|
+
--md-tabs-active-tab-border-color: var(--border-primary); // @presenter Color
|
|
217
|
+
--md-tabs-hover-tab-border-color: var(--border-secondary); // @presenter Color
|
|
218
|
+
|
|
219
|
+
// @tokens End
|
|
220
|
+
`;
|
|
221
|
+
exports.mermaid = (0, styled_components_1.css) `
|
|
222
|
+
/**
|
|
223
|
+
* @tokens Mermaid
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
--mermaid-background-color: var(--bg-raised-light); // @presenter Color
|
|
227
|
+
--mermaid-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
228
|
+
|
|
229
|
+
// @tokens End
|
|
230
|
+
`;
|
|
231
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ThemeMenu = exports.Menu = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const MenuItemSwitch_1 = require("
|
|
9
|
+
const MenuItemSwitch_1 = require("../../components/Menu/MenuItemSwitch");
|
|
10
10
|
function Menu({ depth = 0, items, className, isMobile }) {
|
|
11
11
|
// TODO: provide active section via MenuContext
|
|
12
12
|
const activeItem = items.find(({ active }) => active);
|
|
@@ -19,12 +19,10 @@ 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
|
-
|
|
27
|
-
position: relative;
|
|
28
|
-
}
|
|
22
|
+
padding: var(--menu-padding);
|
|
23
|
+
margin: var(--menu-margin);
|
|
24
|
+
list-style: var(--menu-list-style);
|
|
25
|
+
color: var(--menu-text-color);
|
|
26
|
+
position: relative;
|
|
29
27
|
`;
|
|
30
28
|
//# 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' },
|
|
59
|
-
!!item.items.length && react_1.default.createElement(MenuGroupArrow, { direction: isExpanded ? 'down' : 'right' }),
|
|
58
|
+
react_1.default.createElement(MenuGroupLabel, { onClick: toggleExpanded, isAlwaysExpanded: item.expanded === 'always', active: item.active, role: !item.link ? 'link' : 'none', expanded: isExpanded },
|
|
60
59
|
item.icon ? react_1.default.createElement(SidebarItemIcon_1.SidebarItemIcon, { src: item.icon }) : null,
|
|
61
|
-
translate(item.labelTranslationKey, item.label)
|
|
60
|
+
translate(item.labelTranslationKey, item.label),
|
|
61
|
+
!!item.items.length && (react_1.default.createElement(ArrowIcon_1.ArrowIcon, { direction: isExpanded ? 'down' : 'right', weight: "thin" })))),
|
|
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,12 +81,17 @@ 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
|
-
|
|
84
|
+
display: flex;
|
|
85
|
+
justify-content: space-between;
|
|
86
|
+
|
|
87
|
+
${({ active }) => active
|
|
85
88
|
? `color: var(--sidebar-item-group-active-text-color);
|
|
86
89
|
background-color: var(--sidebar-item-group-active-background-color);`
|
|
87
90
|
: null};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
|
|
92
|
+
${({ expanded }) => expanded &&
|
|
93
|
+
`
|
|
94
|
+
color: var(--sidebar-item-group-active-text-color);
|
|
95
|
+
`}
|
|
91
96
|
`;
|
|
92
97
|
//# 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, null) : null)),
|
|
23
23
|
item.separatorLine ? react_1.default.createElement(SeparatorLine_1.SeparatorLine, null) : null));
|
|
24
24
|
}
|
|
25
25
|
exports.MenuItem = MenuItem;
|
|
@@ -10,28 +10,24 @@ exports.MenuItemLabel = styled_components_1.default.li.attrs(({ className }) =>
|
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
12
|
display: flex;
|
|
13
|
-
align-items:
|
|
13
|
+
align-items: var(--menu-item-label-align-items);
|
|
14
14
|
cursor: pointer;
|
|
15
|
-
transition:
|
|
16
|
-
word-break:
|
|
17
|
-
margin-bottom: 1px;
|
|
15
|
+
transition: var(--menu-item-label-transition);
|
|
16
|
+
word-break: var(--menu-item-label-word-break);
|
|
18
17
|
|
|
19
18
|
background-color: var(--sidebar-item-background-color);
|
|
20
19
|
font-family: var(--sidebar-item-font-family);
|
|
21
20
|
font-size: var(--sidebar-item-font-size);
|
|
22
|
-
font-weight: var(--font-weight
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
padding
|
|
26
|
-
var(--sidebar-item-padding-horizontal) + var(--sidebar-group-item-chevron-size) +
|
|
27
|
-
var(--sidebar-spacing-unit) * 0.5
|
|
28
|
-
);
|
|
21
|
+
font-weight: var(--sidebar-item-font-weight);
|
|
22
|
+
line-height: var(--sidebar-item-line-height);
|
|
23
|
+
margin: var(--menu-item-label-margin);
|
|
24
|
+
padding: var(--menu-item-label-padding);
|
|
29
25
|
border-radius: var(--sidebar-item-border-radius);
|
|
30
26
|
|
|
31
27
|
${({ active, theme }) => active &&
|
|
32
28
|
`
|
|
33
29
|
color: var(--mobile-menu-item-active-text-color);
|
|
34
|
-
background-color: var(--mobile-menu-item-active-color);
|
|
30
|
+
background-color: var(--mobile-menu-item-active-background-color);
|
|
35
31
|
|
|
36
32
|
${theme.mediaQueries.medium} {
|
|
37
33
|
color: var(--sidebar-item-active-color);
|
|
@@ -44,7 +40,7 @@ exports.MenuItemLabel = styled_components_1.default.li.attrs(({ className }) =>
|
|
|
44
40
|
|
|
45
41
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
46
42
|
color: var(--sidebar-item-hover-color);
|
|
47
|
-
background
|
|
43
|
+
background: var(--sidebar-item-hover-background-color);
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
|
|
@@ -5,12 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MenuItemSwitch = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const
|
|
8
|
+
const Sidebar_1 = require("../../components/Sidebar");
|
|
9
9
|
const types_1 = require("../../mocks/Sidebar/types");
|
|
10
10
|
const getMenuType_1 = require("../../mocks/Sidebar/getMenuType");
|
|
11
11
|
const useDrilldown_1 = require("../../mocks/Sidebar/useDrilldown");
|
|
12
12
|
const useMenuGroup_1 = require("../../mocks/Sidebar/useMenuGroup");
|
|
13
13
|
const MobileMenuGroup_1 = require("../../components/Menu/MobileMenuGroup");
|
|
14
|
+
const Separator_1 = require("../../components/Separator/Separator");
|
|
15
|
+
const MenuItem_1 = require("../../components/Menu/MenuItem");
|
|
14
16
|
function MenuItemSwitch(props) {
|
|
15
17
|
var _a;
|
|
16
18
|
const type = (0, getMenuType_1.getMenuType)(props.item);
|
|
@@ -21,9 +23,9 @@ function MenuItemSwitch(props) {
|
|
|
21
23
|
const { MenuGroup, handleGroupClick, isExpanded } = (0, useMenuGroup_1.useMenuGroup)(props.item);
|
|
22
24
|
switch (type) {
|
|
23
25
|
case types_1.MenuType.Separator:
|
|
24
|
-
return react_1.default.createElement(
|
|
26
|
+
return react_1.default.createElement(Separator_1.Separator, Object.assign({}, props));
|
|
25
27
|
case types_1.MenuType.Operation:
|
|
26
|
-
return react_1.default.createElement(
|
|
28
|
+
return react_1.default.createElement(Sidebar_1.ApiCallItem, Object.assign({}, props));
|
|
27
29
|
case types_1.MenuType.Group:
|
|
28
30
|
const Group = props.isMobile ? MobileMenuGroup_1.MobileMenuGroup : MenuGroup;
|
|
29
31
|
if (!((_a = props.item.items) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
@@ -34,7 +36,7 @@ function MenuItemSwitch(props) {
|
|
|
34
36
|
case types_1.MenuType.DrillDown:
|
|
35
37
|
return (react_1.default.createElement(Drilldown, { item: props.item, isExpanded: drilldownIsExpanded, back: handleBack, expand: handleExpand, prevActiveItem: prevActiveItem }, props.children));
|
|
36
38
|
default:
|
|
37
|
-
return react_1.default.createElement(
|
|
39
|
+
return react_1.default.createElement(MenuItem_1.MenuItem, Object.assign({}, props));
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
exports.MenuItemSwitch = MenuItemSwitch;
|
|
@@ -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/Profile/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:
|
|
73
|
-
width:
|
|
72
|
+
height: var(--mobile-menu-wrapper-height);
|
|
73
|
+
width: var(--mobile-menu-wrapper-width);
|
|
74
74
|
position: fixed;
|
|
75
|
-
z-index: var(--z-index
|
|
76
|
-
left:
|
|
77
|
-
top: var(--
|
|
75
|
+
z-index: var(--mobile-menu-wrapper-z-index);
|
|
76
|
+
left: var(--mobile-menu-wrapper-left);
|
|
77
|
+
top: var(--mobile-menu-wrapper-top);
|
|
78
78
|
overflow-x: hidden;
|
|
79
|
-
transition:
|
|
79
|
+
transition: var(--mobile-menu-wrapper-transition);
|
|
80
80
|
display: flex;
|
|
81
81
|
flex-direction: column;
|
|
82
|
-
background: var(--mobile-menu-background);
|
|
82
|
+
background: var(--mobile-menu-wrapper-background);
|
|
83
83
|
|
|
84
84
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
85
85
|
display: none;
|
|
@@ -97,26 +97,22 @@ 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:
|
|
101
|
-
|
|
102
|
-
line-height: 22px;
|
|
100
|
+
margin: var(--mobile-menu-margin);
|
|
101
|
+
line-height: var(--mobile-menu-line-height);
|
|
103
102
|
background: var(--mobile-menu-background);
|
|
104
103
|
|
|
105
104
|
${index_1.MenuItemLabel} {
|
|
106
|
-
margin:
|
|
105
|
+
margin: var(--mobile-menu-item-margin);
|
|
107
106
|
border-radius: var(--mobile-menu-item-radius);
|
|
108
|
-
padding-left: var(--sidebar-item-padding-horizontal);
|
|
109
107
|
}
|
|
110
108
|
`;
|
|
111
109
|
exports.ControlButton = styled_components_1.default.li `
|
|
112
110
|
display: inline-block;
|
|
113
|
-
padding: var(--mobile-menu-control-button-padding
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
var(--mobile-menu-control-button-margin-horizontal);
|
|
117
|
-
text-align: center;
|
|
111
|
+
padding: var(--mobile-menu-control-button-padding);
|
|
112
|
+
margin: var(--mobile-menu-control-button-margin);
|
|
113
|
+
text-align: var(--mobile-menu-control-button-text-align);
|
|
118
114
|
font-size: var(--mobile-menu-control-button-font-size);
|
|
119
|
-
line-height:
|
|
115
|
+
line-height: var(--mobile-menu-control-button-line-height);
|
|
120
116
|
font-weight: var(--mobile-menu-control-button-weight);
|
|
121
117
|
color: var(--mobile-menu-control-button-color);
|
|
122
118
|
cursor: pointer;
|
|
@@ -139,11 +135,10 @@ const ControlButtonLabel = styled_components_1.default.span `
|
|
|
139
135
|
${({ paddingDirection }) => paddingDirection === 'right' && 'padding-right: 8px'};
|
|
140
136
|
`;
|
|
141
137
|
const ProductNameWrapper = styled_components_1.default.div `
|
|
142
|
-
color: var(--mobile-menu-
|
|
143
|
-
border-radius: var(--mobile-menu-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
margin: 12px 8px 0 8px;
|
|
138
|
+
color: var(--mobile-menu-product-name-color);
|
|
139
|
+
border-radius: var(--mobile-menu-product-name-border-radius);
|
|
140
|
+
border: var(--mobile-menu-product-name-border);
|
|
141
|
+
padding: var(--mobile-menu-product-name-padding);
|
|
142
|
+
margin: var(--mobile-menu-product-name-margin);
|
|
148
143
|
`;
|
|
149
144
|
//# 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-color);
|
|
47
|
+
background-color: var(--mobile-menu-item-active-background-color);
|
|
48
48
|
`}
|
|
49
49
|
|
|
50
50
|
${({ expanded }) => expanded &&
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MenuType } from '../constants';
|
|
2
|
-
export declare const useMobileMenuItems: (menuType: MenuType) => import("
|
|
2
|
+
export declare const useMobileMenuItems: (menuType: MenuType) => import("../..").ItemState[];
|