@redocly/theme 0.18.3-patch.8 → 0.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/I18n/LanguagePicker.d.ts +2 -7
- package/lib/I18n/LanguagePicker.js +12 -27
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -15
- package/lib/components/Breadcrumbs/Breadcrumb.js +5 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -6
- package/lib/components/Breadcrumbs/index.d.ts +0 -1
- package/lib/components/Breadcrumbs/index.js +0 -1
- package/lib/components/Button/Button.d.ts +3 -6
- package/lib/components/Button/Button.js +41 -41
- package/lib/components/Button/index.d.ts +0 -1
- package/lib/components/Button/index.js +0 -1
- package/lib/components/Catalog/Catalog.d.ts +0 -6
- package/lib/components/Catalog/Catalog.js +103 -108
- package/lib/components/Catalog/CatalogCard.js +58 -89
- package/lib/components/Catalog/index.d.ts +3 -4
- package/lib/components/Catalog/index.js +3 -4
- package/lib/components/CodeBlock/CodeBlockContainer.js +10 -38
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +4 -3
- package/lib/components/CodeBlock/CodeBlockControlButton.js +19 -5
- package/lib/components/CodeBlock/CodeBlockControls.js +5 -8
- package/lib/components/CodeBlock/index.d.ts +0 -1
- package/lib/components/CodeBlock/index.js +0 -1
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +1 -0
- package/lib/components/Dropdown/Dropdown.d.ts +3 -9
- package/lib/components/Dropdown/Dropdown.js +4 -7
- package/lib/components/Dropdown/index.d.ts +0 -1
- package/lib/components/Dropdown/index.js +0 -1
- package/lib/components/EditPageButton/EditPageButton.js +1 -5
- package/lib/components/Feedback/Comment.js +0 -5
- package/lib/components/Feedback/Rating.js +1 -5
- package/lib/components/Feedback/Reasons.js +1 -6
- package/lib/components/Feedback/Sentiment.js +0 -5
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.d.ts +1 -3
- package/lib/components/Filter/Filter.js +80 -113
- package/lib/components/Filter/index.d.ts +0 -2
- package/lib/components/Filter/index.js +0 -2
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +3 -4
- package/lib/components/Footer/Footer.js +10 -28
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +63 -55
- package/lib/components/Footer/FooterColumns.js +4 -6
- package/lib/components/Footer/FooterCopyright.js +6 -11
- package/lib/components/Footer/index.d.ts +0 -1
- package/lib/components/Footer/index.js +0 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/LastUpdated/LastUpdated.js +0 -1
- package/lib/components/Markdown/Admonition.js +9 -12
- package/lib/components/Markdown/MarkdownWrapper.js +4 -2
- package/lib/components/Markdown/Mermaid.js +1 -4
- package/lib/components/Markdown/index.d.ts +0 -1
- package/lib/components/Markdown/index.js +0 -1
- package/lib/components/Menu/Menu.js +7 -5
- package/lib/components/Menu/MenuGroup.js +7 -12
- package/lib/components/Menu/MenuItemLabel.js +13 -9
- package/lib/components/Menu/MobileMenu.js +25 -20
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/index.d.ts +0 -1
- package/lib/components/Menu/index.js +0 -1
- package/lib/components/{Profile → Navbar}/MobileUserProfile.js +24 -12
- package/lib/components/Navbar/Navbar.js +11 -10
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +4 -11
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +0 -1
- package/lib/components/Navbar/index.js +0 -1
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +1 -4
- package/lib/components/NavbarLogo/NavbarLogo.js +5 -13
- package/lib/components/NavbarLogo/index.d.ts +0 -1
- package/lib/components/NavbarLogo/index.js +0 -1
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/OperationBadge/OperationBadge.d.ts +6 -0
- package/lib/components/OperationBadge/OperationBadge.js +68 -0
- package/lib/components/OperationBadge/index.d.ts +1 -0
- package/lib/{icons/LanguageIcon → components/OperationBadge}/index.js +1 -1
- package/lib/components/Panel/PanelHeader.js +0 -2
- package/lib/components/Panel/PanelHeaderTitle.js +4 -0
- package/lib/components/Panel/index.d.ts +0 -1
- package/lib/components/Panel/index.js +0 -1
- package/lib/components/Product/ProductPicker.js +5 -17
- package/lib/components/Product/index.d.ts +0 -1
- package/lib/components/Product/index.js +0 -1
- package/lib/components/Profile/LoginLink.js +2 -1
- package/lib/components/Profile/Profile.js +22 -3
- package/lib/components/Profile/UserProfile.js +9 -21
- package/lib/components/Profile/index.d.ts +0 -1
- package/lib/components/Profile/index.js +0 -15
- package/lib/components/Search/CancelSearch.js +14 -2
- package/lib/components/Search/ProductTag.js +8 -8
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +2 -0
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +4 -4
- package/lib/components/Search/SearchTrigger.js +5 -4
- package/lib/components/Search/ShortcutKey.js +5 -1
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +0 -1
- package/lib/components/Search/index.js +0 -1
- package/lib/components/Select/Select.d.ts +9 -21
- package/lib/components/Select/Select.js +17 -28
- package/lib/components/Select/index.d.ts +0 -1
- package/lib/components/Select/index.js +0 -1
- package/lib/components/Separator/Separator.js +3 -11
- package/lib/components/Separator/SeparatorItem.js +9 -6
- package/lib/components/Separator/SeparatorLine.js +3 -7
- package/lib/components/Sidebar/ApiCallItem.d.ts +6 -2
- package/lib/components/Sidebar/ApiCallItem.js +13 -17
- package/lib/components/Sidebar/FooterWrapper.js +4 -3
- package/lib/components/Sidebar/HeaderWrapper.js +3 -3
- package/lib/components/Sidebar/VersionPicker.d.ts +3 -3
- package/lib/components/Sidebar/VersionPicker.js +4 -5
- package/lib/components/Sidebar/index.d.ts +0 -1
- package/lib/components/Sidebar/index.js +0 -1
- package/lib/components/Sidebar/types.d.ts +0 -1
- package/lib/components/SidebarActions/CollapseSidebarButton.js +1 -41
- package/lib/components/SidebarActions/styled.js +21 -29
- package/lib/components/TableOfContent/TableOfContent.js +3 -2
- package/lib/components/TableOfContent/index.d.ts +0 -1
- package/lib/components/TableOfContent/index.js +0 -1
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tags/Tags.d.ts +5 -0
- package/lib/components/Tags/Tags.js +32 -0
- package/lib/components/Tags/index.d.ts +1 -0
- package/lib/components/{Image → Tags}/index.js +1 -1
- package/lib/components/Tiles/ThinTile.js +5 -7
- package/lib/components/Tiles/TileHeader.js +1 -1
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tiles/WideTile.js +8 -10
- package/lib/components/Tooltip/index.d.ts +0 -1
- package/lib/components/Tooltip/index.js +0 -1
- package/lib/components/Typography/SectionHeader.js +2 -2
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +2 -1
- package/lib/config.d.ts +0 -113
- package/lib/config.js +3 -27
- package/lib/globalStyle.js +1983 -602
- package/lib/hooks/useMobileMenu.js +6 -5
- package/lib/icons/AlertIcon/AlertIcon.js +5 -0
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +2 -1
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +2 -1
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/FileIcon/FileIcon.d.ts +2 -1
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/ReportIcon/ReportIcon.d.ts +2 -1
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/SelectIcon/SelectIcon.d.ts +2 -1
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +0 -4
- package/lib/icons/index.js +0 -4
- package/lib/layouts/Forbidden.js +0 -4
- package/lib/layouts/NotFound.js +0 -4
- package/lib/types/portal/src/shared/types/catalog.d.ts +1 -5
- package/lib/types/portal/src/shared/types/nav.d.ts +0 -5
- package/lib/ui/ArrowBack.js +1 -0
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Highlight.d.ts +1 -1
- package/lib/ui/Highlight.js +1 -1
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +84 -217
- package/lib/utils/css-variables.js +1 -1
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +0 -1
- package/package.json +1 -1
- package/src/I18n/LanguagePicker.tsx +21 -48
- package/src/I18n/index.ts +0 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +5 -2
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -6
- package/src/components/Breadcrumbs/index.ts +0 -1
- package/src/components/Button/Button.tsx +47 -53
- package/src/components/Button/index.ts +0 -1
- package/src/components/Catalog/Catalog.tsx +120 -135
- package/src/components/Catalog/CatalogCard.tsx +58 -106
- package/src/components/Catalog/index.tsx +3 -0
- package/src/components/CodeBlock/CodeBlockContainer.tsx +9 -17
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +19 -6
- package/src/components/CodeBlock/CodeBlockControls.tsx +5 -8
- package/src/components/CodeBlock/index.ts +0 -1
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -0
- package/src/components/Dropdown/Dropdown.tsx +5 -14
- package/src/components/Dropdown/index.ts +0 -1
- package/src/components/EditPageButton/EditPageButton.tsx +1 -5
- package/src/components/Feedback/Comment.tsx +0 -5
- package/src/components/Feedback/Rating.tsx +1 -5
- package/src/components/Feedback/Reasons.tsx +1 -6
- package/src/components/Feedback/Sentiment.tsx +0 -5
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +94 -150
- package/src/components/Filter/index.ts +0 -2
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +10 -32
- package/src/components/Footer/FooterColumn.tsx +63 -82
- package/src/components/Footer/FooterColumns.tsx +4 -6
- package/src/components/Footer/FooterCopyright.tsx +7 -13
- package/src/components/Footer/index.ts +0 -1
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LastUpdated/LastUpdated.tsx +2 -1
- package/src/components/Markdown/Admonition.tsx +8 -13
- package/src/components/Markdown/MarkdownWrapper.tsx +4 -2
- package/src/components/Markdown/Mermaid.tsx +1 -4
- package/src/components/Markdown/index.ts +0 -1
- package/src/components/Menu/Menu.tsx +7 -5
- package/src/components/Menu/MenuGroup.tsx +7 -15
- package/src/components/Menu/MenuItemLabel.tsx +13 -9
- package/src/components/Menu/MobileMenu.tsx +25 -20
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +0 -1
- package/src/components/{Profile → Navbar}/MobileUserProfile.tsx +29 -12
- package/src/components/Navbar/Navbar.tsx +11 -10
- package/src/components/Navbar/NavbarItem.tsx +4 -13
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +0 -1
- package/src/components/NavbarLogo/NavbarLogo.tsx +11 -24
- package/src/components/NavbarLogo/index.ts +0 -1
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +2 -1
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/OperationBadge/OperationBadge.ts +62 -0
- package/src/components/OperationBadge/index.ts +1 -0
- package/src/components/Panel/PanelHeader.ts +0 -2
- package/src/components/Panel/PanelHeaderTitle.ts +4 -0
- package/src/components/Panel/index.ts +0 -1
- package/src/components/Product/ProductPicker.tsx +13 -18
- package/src/components/Product/index.ts +0 -1
- package/src/components/Profile/LoginLink.tsx +2 -1
- package/src/components/Profile/Profile.tsx +24 -1
- package/src/components/Profile/UserProfile.tsx +8 -20
- package/src/components/Profile/index.ts +0 -1
- package/src/components/Search/CancelSearch.tsx +15 -2
- package/src/components/Search/ProductTag.tsx +8 -8
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +2 -0
- package/src/components/Search/SearchIcon.tsx +5 -10
- package/src/components/Search/SearchItem.tsx +4 -4
- package/src/components/Search/SearchTrigger.tsx +5 -4
- package/src/components/Search/ShortcutKey.tsx +5 -1
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +0 -1
- package/src/components/Select/Select.tsx +31 -66
- package/src/components/Select/index.ts +0 -1
- package/src/components/Separator/Separator.tsx +3 -17
- package/src/components/Separator/SeparatorItem.tsx +9 -6
- package/src/components/Separator/SeparatorLine.tsx +3 -7
- package/src/components/Sidebar/ApiCallItem.tsx +13 -17
- package/src/components/Sidebar/FooterWrapper.tsx +4 -3
- package/src/components/Sidebar/HeaderWrapper.tsx +3 -3
- package/src/components/Sidebar/VersionPicker.tsx +4 -5
- package/src/components/Sidebar/index.ts +0 -1
- package/src/components/Sidebar/types.ts +0 -1
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +2 -22
- package/src/components/SidebarActions/styled.tsx +30 -29
- package/src/components/TableOfContent/TableOfContent.tsx +3 -2
- package/src/components/TableOfContent/index.ts +0 -1
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tags/Tags.tsx +36 -0
- package/src/components/Tags/index.ts +1 -0
- package/src/components/Tiles/ThinTile.tsx +5 -7
- package/src/components/Tiles/TileHeader.ts +1 -1
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tiles/WideTile.tsx +8 -10
- package/src/components/Tooltip/index.ts +0 -1
- package/src/components/Typography/SectionHeader.ts +2 -2
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +2 -1
- package/src/config.ts +1 -30
- package/src/globalStyle.ts +1999 -597
- package/src/hooks/useMobileMenu.ts +4 -3
- package/src/icons/AlertIcon/AlertIcon.tsx +5 -0
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +5 -4
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/ExpandIcon/ExpandIcon.tsx +6 -5
- package/src/icons/FileIcon/FileIcon.tsx +3 -2
- package/src/icons/ReportIcon/ReportIcon.tsx +4 -3
- package/src/icons/SelectIcon/SelectIcon.tsx +6 -5
- package/src/icons/index.ts +0 -4
- package/src/layouts/Forbidden.tsx +0 -4
- package/src/layouts/NotFound.tsx +0 -4
- package/src/types/portal/src/shared/types/catalog.ts +1 -7
- package/src/types/portal/src/shared/types/nav.ts +0 -5
- package/src/ui/ArrowBack.tsx +1 -0
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Highlight.tsx +2 -2
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +84 -217
- package/src/utils/css-variables.ts +2 -4
- package/src/utils/index.ts +0 -1
- package/lib/I18n/styledVariables.d.ts +0 -1
- package/lib/I18n/styledVariables.js +0 -40
- package/lib/components/Breadcrumbs/styledVariables.d.ts +0 -1
- package/lib/components/Breadcrumbs/styledVariables.js +0 -20
- package/lib/components/Button/styledVariables.d.ts +0 -1
- package/lib/components/Button/styledVariables.js +0 -107
- package/lib/components/Catalog/styledVariables.d.ts +0 -1
- package/lib/components/Catalog/styledVariables.js +0 -96
- package/lib/components/CodeBlock/styledVariables.d.ts +0 -1
- package/lib/components/CodeBlock/styledVariables.js +0 -92
- package/lib/components/Dropdown/styledVariables.d.ts +0 -1
- package/lib/components/Dropdown/styledVariables.js +0 -30
- package/lib/components/Filter/FilterContent.d.ts +0 -13
- package/lib/components/Filter/FilterContent.js +0 -60
- package/lib/components/Filter/FilterPopover.d.ts +0 -13
- package/lib/components/Filter/FilterPopover.js +0 -109
- package/lib/components/Filter/FilterTag.d.ts +0 -7
- package/lib/components/Filter/FilterTag.js +0 -33
- package/lib/components/Filter/FilterTags.d.ts +0 -7
- package/lib/components/Filter/FilterTags.js +0 -29
- package/lib/components/Filter/styledVariables.d.ts +0 -1
- package/lib/components/Filter/styledVariables.js +0 -112
- package/lib/components/Footer/styledVariables.d.ts +0 -1
- package/lib/components/Footer/styledVariables.js +0 -61
- package/lib/components/Image/Image.d.ts +0 -9
- package/lib/components/Image/Image.js +0 -31
- package/lib/components/Image/index.d.ts +0 -1
- package/lib/components/LastUpdated/index.d.ts +0 -1
- package/lib/components/LastUpdated/index.js +0 -18
- package/lib/components/LastUpdated/styledVariables.d.ts +0 -1
- package/lib/components/LastUpdated/styledVariables.js +0 -11
- package/lib/components/Markdown/styledVariables.d.ts +0 -3
- package/lib/components/Markdown/styledVariables.js +0 -231
- package/lib/components/Menu/styledVariables.d.ts +0 -2
- package/lib/components/Menu/styledVariables.js +0 -101
- package/lib/components/Navbar/styledVariables.d.ts +0 -1
- package/lib/components/Navbar/styledVariables.js +0 -43
- package/lib/components/NavbarLogo/styledVariables.d.ts +0 -1
- package/lib/components/NavbarLogo/styledVariables.js +0 -18
- package/lib/components/Panel/styledVariables.d.ts +0 -2
- package/lib/components/Panel/styledVariables.js +0 -481
- package/lib/components/Product/styledVariables.d.ts +0 -2
- package/lib/components/Product/styledVariables.js +0 -41
- package/lib/components/Profile/UserProfileData.d.ts +0 -9
- package/lib/components/Profile/UserProfileData.js +0 -35
- package/lib/components/Profile/styledVariables.d.ts +0 -2
- package/lib/components/Profile/styledVariables.js +0 -55
- package/lib/components/Search/styledVariables.d.ts +0 -1
- package/lib/components/Search/styledVariables.js +0 -98
- package/lib/components/Select/styledVariables.d.ts +0 -1
- package/lib/components/Select/styledVariables.js +0 -34
- package/lib/components/Sidebar/styledVariables.d.ts +0 -2
- package/lib/components/Sidebar/styledVariables.js +0 -216
- package/lib/components/TableOfContent/styledVariables.d.ts +0 -1
- package/lib/components/TableOfContent/styledVariables.js +0 -46
- package/lib/components/Tag/Tag.d.ts +0 -18
- package/lib/components/Tag/Tag.js +0 -45
- package/lib/components/Tag/index.d.ts +0 -2
- package/lib/components/Tag/index.js +0 -19
- package/lib/components/Tag/styledVariables.d.ts +0 -1
- package/lib/components/Tag/styledVariables.js +0 -136
- package/lib/components/Tooltip/styledVariables.d.ts +0 -1
- package/lib/components/Tooltip/styledVariables.js +0 -21
- package/lib/hooks/useModalScrollLock.d.ts +0 -1
- package/lib/hooks/useModalScrollLock.js +0 -16
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +0 -6
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +0 -28
- package/lib/icons/CheckboxIcon/index.d.ts +0 -1
- package/lib/icons/CheckboxIcon/index.js +0 -6
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +0 -4
- package/lib/icons/ErrorIcon/ErrorIcon.js +0 -14
- package/lib/icons/ErrorIcon/index.d.ts +0 -1
- package/lib/icons/ErrorIcon/index.js +0 -18
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +0 -4
- package/lib/icons/LanguageIcon/LanguageIcon.js +0 -14
- package/lib/icons/LanguageIcon/index.d.ts +0 -1
- package/lib/icons/PlusIcon/PlusIcon.d.ts +0 -5
- package/lib/icons/PlusIcon/PlusIcon.js +0 -16
- package/lib/icons/PlusIcon/index.d.ts +0 -1
- package/lib/icons/PlusIcon/index.js +0 -18
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +0 -4
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +0 -15
- package/lib/icons/PointingArrowIcon/index.d.ts +0 -1
- package/lib/icons/PointingArrowIcon/index.js +0 -18
- package/lib/utils/tags-parser.d.ts +0 -1
- package/lib/utils/tags-parser.js +0 -10
- package/src/I18n/styledVariables.ts +0 -37
- package/src/components/Breadcrumbs/styledVariables.ts +0 -17
- package/src/components/Button/styledVariables.ts +0 -104
- package/src/components/Catalog/index.ts +0 -4
- package/src/components/Catalog/styledVariables.ts +0 -93
- package/src/components/CodeBlock/styledVariables.ts +0 -89
- package/src/components/Dropdown/styledVariables.ts +0 -27
- package/src/components/Filter/FilterContent.tsx +0 -95
- package/src/components/Filter/FilterPopover.tsx +0 -150
- package/src/components/Filter/FilterTag.tsx +0 -37
- package/src/components/Filter/FilterTags.tsx +0 -39
- package/src/components/Filter/styledVariables.ts +0 -109
- package/src/components/Footer/styledVariables.ts +0 -58
- package/src/components/Image/Image.tsx +0 -47
- package/src/components/Image/index.ts +0 -1
- package/src/components/LastUpdated/index.ts +0 -1
- package/src/components/LastUpdated/styledVariables.ts +0 -8
- package/src/components/Markdown/styledVariables.ts +0 -230
- package/src/components/Menu/styledVariables.ts +0 -99
- package/src/components/Navbar/styledVariables.ts +0 -40
- package/src/components/NavbarLogo/styledVariables.ts +0 -15
- package/src/components/Panel/styledVariables.ts +0 -479
- package/src/components/Product/styledVariables.ts +0 -39
- package/src/components/Profile/UserProfileData.tsx +0 -40
- package/src/components/Profile/styledVariables.ts +0 -53
- package/src/components/Search/styledVariables.ts +0 -95
- package/src/components/Select/styledVariables.ts +0 -31
- package/src/components/Sidebar/styledVariables.ts +0 -214
- package/src/components/TableOfContent/styledVariables.ts +0 -43
- package/src/components/Tag/Tag.tsx +0 -71
- package/src/components/Tag/index.ts +0 -2
- package/src/components/Tag/styledVariables.ts +0 -133
- package/src/components/Tooltip/styledVariables.ts +0 -18
- package/src/hooks/useModalScrollLock.ts +0 -12
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +0 -64
- package/src/icons/CheckboxIcon/index.ts +0 -1
- package/src/icons/ErrorIcon/ErrorIcon.tsx +0 -15
- package/src/icons/ErrorIcon/index.ts +0 -1
- package/src/icons/LanguageIcon/LanguageIcon.tsx +0 -15
- package/src/icons/LanguageIcon/index.ts +0 -1
- package/src/icons/PlusIcon/PlusIcon.tsx +0 -25
- package/src/icons/PlusIcon/index.ts +0 -1
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +0 -16
- package/src/icons/PointingArrowIcon/index.ts +0 -1
- package/src/utils/tags-parser.ts +0 -8
- /package/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
|
@@ -3,14 +3,15 @@ import { useLocation } from 'react-router-dom';
|
|
|
3
3
|
|
|
4
4
|
import type { Dispatch, SetStateAction } from 'react';
|
|
5
5
|
|
|
6
|
-
import useModalScrollLock from '@theme/hooks/useModalScrollLock';
|
|
7
|
-
|
|
8
6
|
export function useMobileMenu(initialState = false): [boolean, Dispatch<SetStateAction<boolean>>] {
|
|
9
7
|
const location = useLocation();
|
|
10
8
|
const [isOpen, setIsOpen] = useState(initialState);
|
|
11
9
|
|
|
12
10
|
useEffect(() => setIsOpen(false), [location.pathname, location.hash]);
|
|
13
|
-
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (isOpen) document.body.classList.add('overflow-hidden');
|
|
13
|
+
else document.body.classList.remove('overflow-hidden');
|
|
14
|
+
}, [isOpen]);
|
|
14
15
|
|
|
15
16
|
return [isOpen, setIsOpen];
|
|
16
17
|
}
|
|
@@ -98,8 +98,13 @@ function Icon({ type, className }: AlertIconProps) {
|
|
|
98
98
|
export const AlertIcon = styled(Icon).attrs(() => ({
|
|
99
99
|
'data-component-name': 'icons/AlertIcon/AlertIcon',
|
|
100
100
|
}))`
|
|
101
|
+
position: absolute;
|
|
102
|
+
left: var(--admonition-padding-horizontal);
|
|
103
|
+
top: 50%;
|
|
104
|
+
transform: translateY(-50%);
|
|
101
105
|
width: var(--admonition-icon-size);
|
|
102
106
|
height: var(--admonition-icon-size);
|
|
107
|
+
margin-right: var(--admonition-padding-horizontal);
|
|
103
108
|
flex-shrink: 0;
|
|
104
109
|
|
|
105
110
|
fill: ${({ type }) => `var(--admonition-${type}-icon-color)`};
|
|
@@ -6,7 +6,7 @@ interface IconProps {
|
|
|
6
6
|
color?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
const Icon = ({ className }: IconProps) => (
|
|
9
|
+
const Icon = ({ className, color = 'white' }: IconProps) => (
|
|
10
10
|
<svg
|
|
11
11
|
data-component-name="icons/CollapseIcon"
|
|
12
12
|
viewBox="0 0 14 14"
|
|
@@ -18,11 +18,11 @@ const Icon = ({ className }: IconProps) => (
|
|
|
18
18
|
<rect width="14" height="14" fill="none" style={{ mixBlendMode: 'multiply' }} />
|
|
19
19
|
<path
|
|
20
20
|
d="M1.75 7.875V8.75H4.63138L0.875 12.5046L1.49363 13.125L5.25 9.36862V12.25H6.125V7.875H1.75Z"
|
|
21
|
-
fill=
|
|
21
|
+
fill={color}
|
|
22
22
|
/>
|
|
23
23
|
<path
|
|
24
24
|
d="M13.125 1.4945L12.509 0.875L8.75 4.63138V1.75H7.875V6.125H12.25V5.25H9.36862L13.125 1.4945Z"
|
|
25
|
-
fill=
|
|
25
|
+
fill={color}
|
|
26
26
|
/>
|
|
27
27
|
</g>
|
|
28
28
|
<defs>
|
|
@@ -34,7 +34,7 @@ const Icon = ({ className }: IconProps) => (
|
|
|
34
34
|
);
|
|
35
35
|
|
|
36
36
|
export const CollapseIcon = styled(Icon)`
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
37
|
+
width: 1.3em;
|
|
38
|
+
height: 1.3em;
|
|
39
39
|
vertical-align: middle;
|
|
40
40
|
`;
|
|
@@ -3,23 +3,24 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
interface IconProps {
|
|
5
5
|
className?: string;
|
|
6
|
+
color?: string;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
|
-
const Icon = ({ className }: IconProps) => (
|
|
9
|
+
const Icon = ({ className, color = 'white' }: IconProps) => (
|
|
9
10
|
<span data-component-name="icons/CopyIcon">
|
|
10
11
|
<svg viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg" className={className}>
|
|
11
12
|
<path
|
|
12
13
|
fillRule="evenodd"
|
|
13
14
|
clipRule="evenodd"
|
|
14
15
|
d="M3.52083 1.33333C3.52083 1.25279 3.58613 1.1875 3.66667 1.1875H9.5C9.58054 1.1875 9.64583 1.25279 9.64583 1.33333V8.33333C9.64583 8.41387 9.58054 8.47917 9.5 8.47917H7.75H3.66667C3.58613 8.47917 3.52083 8.41387 3.52083 8.33333V3.08333V1.33333ZM2.64583 2.64583V1.33333C2.64583 0.769543 3.10288 0.3125 3.66667 0.3125H9.5C10.0638 0.3125 10.5208 0.769543 10.5208 1.33333V8.33333C10.5208 8.89712 10.0638 9.35417 9.5 9.35417H8.1875V10.6667C8.1875 10.9374 8.07995 11.1971 7.8885 11.3885C7.69706 11.5799 7.43741 11.6875 7.16667 11.6875H1.33333C1.06259 11.6875 0.802939 11.5799 0.611495 11.3885C0.420051 11.1971 0.3125 10.9374 0.3125 10.6667V3.66667C0.3125 3.39592 0.420052 3.13627 0.611495 2.94483C0.802938 2.75339 1.06259 2.64583 1.33333 2.64583H2.64583ZM7.3125 9.35417V10.6667C7.3125 10.7053 7.29713 10.7424 7.26979 10.7698C7.24244 10.7971 7.20534 10.8125 7.16667 10.8125H1.33333C1.29466 10.8125 1.25756 10.7971 1.23021 10.7698C1.20286 10.7424 1.1875 10.7053 1.1875 10.6667V3.66667C1.1875 3.62799 1.20286 3.5909 1.23021 3.56355C1.25756 3.5362 1.29466 3.52083 1.33333 3.52083H2.64583V8.33333C2.64583 8.89712 3.10288 9.35417 3.66667 9.35417H7.3125Z"
|
|
15
|
-
fill=
|
|
16
|
+
fill={color}
|
|
16
17
|
/>
|
|
17
18
|
</svg>
|
|
18
19
|
</span>
|
|
19
20
|
);
|
|
20
21
|
|
|
21
22
|
export const CopyIcon = styled(Icon)`
|
|
22
|
-
width:
|
|
23
|
-
height:
|
|
23
|
+
width: 1.3em;
|
|
24
|
+
height: 1.3em;
|
|
24
25
|
vertical-align: middle;
|
|
25
26
|
`;
|
|
@@ -6,7 +6,7 @@ interface IconProps {
|
|
|
6
6
|
color?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
const Icon = ({ className }: IconProps) => (
|
|
9
|
+
const Icon = ({ className, color = 'white' }: IconProps) => (
|
|
10
10
|
<svg
|
|
11
11
|
data-component-name="icons/DeselectIcon"
|
|
12
12
|
viewBox="0 0 16 16"
|
|
@@ -14,10 +14,10 @@ const Icon = ({ className }: IconProps) => (
|
|
|
14
14
|
xmlns="http://www.w3.org/2000/svg"
|
|
15
15
|
className={className}
|
|
16
16
|
>
|
|
17
|
-
<path d="M14.4966 10.5H9.49658V11.5H14.4966V10.5Z" fill=
|
|
18
|
-
<path d="M10.5 3.64746H1.5V4.64746H10.5V3.64746Z" fill=
|
|
19
|
-
<path d="M10.5 6.64746H1.5V7.64746H10.5V6.64746Z" fill=
|
|
20
|
-
<path d="M7.5 9.64746H1.5V10.6475H7.5V9.64746Z" fill=
|
|
17
|
+
<path d="M14.4966 10.5H9.49658V11.5H14.4966V10.5Z" fill={color} />
|
|
18
|
+
<path d="M10.5 3.64746H1.5V4.64746H10.5V3.64746Z" fill={color} />
|
|
19
|
+
<path d="M10.5 6.64746H1.5V7.64746H10.5V6.64746Z" fill={color} />
|
|
20
|
+
<path d="M7.5 9.64746H1.5V10.6475H7.5V9.64746Z" fill={color} />
|
|
21
21
|
</svg>
|
|
22
22
|
);
|
|
23
23
|
|
|
@@ -3,9 +3,10 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
interface IconProps {
|
|
5
5
|
className?: string;
|
|
6
|
+
color?: string;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
|
-
const Icon = ({ className }: IconProps) => (
|
|
9
|
+
const Icon = ({ className, color = 'white' }: IconProps) => (
|
|
9
10
|
<svg
|
|
10
11
|
data-component-name="icons/ExpandIcon"
|
|
11
12
|
viewBox="0 0 14 14"
|
|
@@ -17,11 +18,11 @@ const Icon = ({ className }: IconProps) => (
|
|
|
17
18
|
<rect width="14" height="14" fill="none" style={{ mixBlendMode: 'multiply' }} />
|
|
18
19
|
<path
|
|
19
20
|
d="M8.75 0.875V1.75H11.6314L7.875 5.50462L8.49362 6.125L12.25 2.36863V5.25H13.125V0.875H8.75Z"
|
|
20
|
-
fill=
|
|
21
|
+
fill={color}
|
|
21
22
|
/>
|
|
22
23
|
<path
|
|
23
24
|
d="M6.125 8.4945L5.509 7.875L1.75 11.6314V8.75H0.875V13.125H5.25V12.25H2.36863L6.125 8.4945Z"
|
|
24
|
-
fill=
|
|
25
|
+
fill={color}
|
|
25
26
|
/>
|
|
26
27
|
</g>
|
|
27
28
|
<defs>
|
|
@@ -33,7 +34,7 @@ const Icon = ({ className }: IconProps) => (
|
|
|
33
34
|
);
|
|
34
35
|
|
|
35
36
|
export const ExpandIcon = styled(Icon)`
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
37
|
+
width: 1.3em;
|
|
38
|
+
height: 1.3em;
|
|
38
39
|
vertical-align: middle;
|
|
39
40
|
`;
|
|
@@ -3,9 +3,10 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
interface IconProps {
|
|
5
5
|
className?: string;
|
|
6
|
+
color?: string;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
|
-
const Icon = ({ className }: IconProps) => (
|
|
9
|
+
const Icon = ({ className, color = 'white' }: IconProps) => (
|
|
9
10
|
<svg
|
|
10
11
|
data-component-name="icons/FileIcon"
|
|
11
12
|
viewBox="0 0 16 16"
|
|
@@ -16,7 +17,7 @@ const Icon = ({ className }: IconProps) => (
|
|
|
16
17
|
<rect width="14" height="14" fill="none" style={{ mixBlendMode: 'multiply' }} />
|
|
17
18
|
<path
|
|
18
19
|
d="M12.85 4.65018L9.35 1.15018C9.30601 1.10132 9.25192 1.0626 9.19149 1.0367C9.13106 1.0108 9.06572 0.998339 9 1.00018H4C3.73502 1.00096 3.48112 1.10656 3.29375 1.29393C3.10638 1.4813 3.00078 1.7352 3 2.00018V14.0002C3.00078 14.2652 3.10638 14.5191 3.29375 14.7064C3.48112 14.8938 3.73502 14.9994 4 15.0002H12C12.265 14.9994 12.5189 14.8938 12.7062 14.7064C12.8936 14.5191 12.9992 14.2652 13 14.0002V5.00018C13.0018 4.93446 12.9894 4.86912 12.9635 4.80869C12.9376 4.74826 12.8989 4.69417 12.85 4.65018ZM9 2.20018L11.8 5.00018H9V2.20018ZM12 14.0002H4V2.00018H8V5.00018C8.00078 5.26515 8.10638 5.51906 8.29375 5.70642C8.48112 5.89379 8.73502 5.9994 9 6.00018H12V14.0002Z"
|
|
19
|
-
fill=
|
|
20
|
+
fill={color}
|
|
20
21
|
/>
|
|
21
22
|
</svg>
|
|
22
23
|
);
|
|
@@ -3,9 +3,10 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
interface IconProps {
|
|
5
5
|
className?: string;
|
|
6
|
+
color?: string;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
|
-
const Icon = ({ className }: IconProps) => (
|
|
9
|
+
const Icon = ({ className, color = 'white' }: IconProps) => (
|
|
9
10
|
<svg
|
|
10
11
|
data-component-name="icons/ReportIcon"
|
|
11
12
|
viewBox="0 0 14 14"
|
|
@@ -16,13 +17,13 @@ const Icon = ({ className }: IconProps) => (
|
|
|
16
17
|
<rect width="14" height="14" fill="none" style={{ mixBlendMode: 'multiply' }} />
|
|
17
18
|
<path
|
|
18
19
|
d="M7 8.75C6.87021 8.75 6.74333 8.78849 6.63541 8.8606C6.52749 8.93271 6.44337 9.0352 6.3937 9.15511C6.34403 9.27503 6.33104 9.40698 6.35636 9.53428C6.38168 9.66158 6.44418 9.77851 6.53596 9.87029C6.62774 9.96207 6.74467 10.0246 6.87197 10.0499C6.99927 10.0752 7.13122 10.0622 7.25114 10.0125C7.37105 9.96288 7.47354 9.87876 7.54565 9.77084C7.61776 9.66292 7.65625 9.53604 7.65625 9.40625C7.65625 9.2322 7.58711 9.06528 7.46404 8.94221C7.34097 8.81914 7.17405 8.75 7 8.75Z"
|
|
19
|
-
fill=
|
|
20
|
+
fill={color}
|
|
20
21
|
fillOpacity="1"
|
|
21
22
|
/>
|
|
22
23
|
<path d="M7.4375 3.9375H6.5625V7.875H7.4375V3.9375Z" fill="white" fillOpacity="1" />
|
|
23
24
|
<path
|
|
24
25
|
d="M11.375 12.25H2.625C2.39302 12.2497 2.17061 12.1575 2.00658 11.9934C1.84254 11.8294 1.75027 11.607 1.75 11.375V2.625C1.75027 2.39302 1.84254 2.17061 2.00658 2.00658C2.17061 1.84254 2.39302 1.75027 2.625 1.75H11.375C11.607 1.75027 11.8294 1.84254 11.9934 2.00658C12.1575 2.17061 12.2497 2.39302 12.25 2.625V11.375C12.2497 11.607 12.1575 11.8294 11.9934 11.9934C11.8294 12.1575 11.607 12.2497 11.375 12.25ZM2.625 2.625V11.375H11.3755L11.375 2.625H2.625Z"
|
|
25
|
-
fill=
|
|
26
|
+
fill={color}
|
|
26
27
|
fillOpacity="1"
|
|
27
28
|
/>
|
|
28
29
|
</svg>
|
|
@@ -3,9 +3,10 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
interface IconProps {
|
|
5
5
|
className?: string;
|
|
6
|
+
color?: string;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
|
-
const Icon = ({ className }: IconProps) => (
|
|
9
|
+
const Icon = ({ className, color = 'white' }: IconProps) => (
|
|
9
10
|
<svg
|
|
10
11
|
data-component-name="icons/SelectIcon"
|
|
11
12
|
viewBox="0 0 16 16"
|
|
@@ -13,12 +14,12 @@ const Icon = ({ className }: IconProps) => (
|
|
|
13
14
|
xmlns="http://www.w3.org/2000/svg"
|
|
14
15
|
className={className}
|
|
15
16
|
>
|
|
16
|
-
<path d="M10.5 3.64746H1.5V4.64746H10.5V3.64746Z" fill=
|
|
17
|
-
<path d="M10.5 6.64746H1.5V7.64746H10.5V6.64746Z" fill=
|
|
18
|
-
<path d="M7.5 9.64746H1.5V10.6475H7.5V9.64746Z" fill=
|
|
17
|
+
<path d="M10.5 3.64746H1.5V4.64746H10.5V3.64746Z" fill={color} />
|
|
18
|
+
<path d="M10.5 6.64746H1.5V7.64746H10.5V6.64746Z" fill={color} />
|
|
19
|
+
<path d="M7.5 9.64746H1.5V10.6475H7.5V9.64746Z" fill={color} />
|
|
19
20
|
<path
|
|
20
21
|
d="M10.5 10.9425L9.205 9.64746L8.5 10.3525L10.5 12.3525L14.5 8.35246L13.795 7.64746L10.5 10.9425Z"
|
|
21
|
-
fill=
|
|
22
|
+
fill={color}
|
|
22
23
|
/>
|
|
23
24
|
</svg>
|
|
24
25
|
);
|
package/src/icons/index.ts
CHANGED
|
@@ -15,7 +15,3 @@ export * from '@theme/icons/SelectIcon';
|
|
|
15
15
|
export * from '@theme/icons/BurgerIcon';
|
|
16
16
|
export * from '@theme/icons/CloseIcon';
|
|
17
17
|
export * from '@theme/icons/LogoutIcon';
|
|
18
|
-
export * from '@theme/icons/LanguageIcon';
|
|
19
|
-
export * from '@theme/icons/PointingArrowIcon';
|
|
20
|
-
export * from '@theme/icons/CheckboxIcon';
|
|
21
|
-
export * from '@theme/icons/ErrorIcon';
|
|
@@ -30,10 +30,6 @@ export function Forbidden(): JSX.Element {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
const Wrapper = styled.div`
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
33
|
margin: 25px auto;
|
|
38
34
|
font-family: var(--page-403-font-family);
|
|
39
35
|
text-align: center;
|
package/src/layouts/NotFound.tsx
CHANGED
|
@@ -30,10 +30,6 @@ export function NotFound(): JSX.Element {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
const Wrapper = styled.div`
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
33
|
margin: 25px auto;
|
|
38
34
|
font-family: var(--page-404-font-family);
|
|
39
35
|
text-align: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CatalogFilterConfig
|
|
1
|
+
import { CatalogFilterConfig } from "@theme/config";
|
|
2
2
|
|
|
3
3
|
export type FilteredCatalog = {
|
|
4
4
|
groups: { title: string; items: CatalogItem[] }[];
|
|
@@ -33,11 +33,5 @@ export type CatalogItem = {
|
|
|
33
33
|
description?: string;
|
|
34
34
|
image?: string;
|
|
35
35
|
docsLink?: string;
|
|
36
|
-
|
|
37
|
-
scorecardStatus?: ScorecardStatus;
|
|
38
|
-
scorecardLevel?: string;
|
|
39
|
-
scoreCardSlug?: string;
|
|
40
|
-
tags?: unknown[];
|
|
41
|
-
|
|
42
36
|
[k: string]: unknown;
|
|
43
37
|
};
|
|
@@ -22,7 +22,6 @@ export type ResolvedNavLinkItem = {
|
|
|
22
22
|
routeSlug?: string;
|
|
23
23
|
active?: boolean;
|
|
24
24
|
icon?: string;
|
|
25
|
-
srcSet?: string;
|
|
26
25
|
[REDOCLY_TEAMS_RBAC]?: Rbac;
|
|
27
26
|
};
|
|
28
27
|
|
|
@@ -49,7 +48,6 @@ export type ResolvedNavGroupItem = {
|
|
|
49
48
|
routeSlug?: string;
|
|
50
49
|
active?: boolean;
|
|
51
50
|
icon?: string;
|
|
52
|
-
srcSet?: string;
|
|
53
51
|
[REDOCLY_TEAMS_RBAC]?: Rbac;
|
|
54
52
|
};
|
|
55
53
|
|
|
@@ -72,7 +70,6 @@ export type ResolvedNavItem =
|
|
|
72
70
|
items?: ResolvedNavItem[]; // for typescript
|
|
73
71
|
sidebar?: ResolvedNavItem[]; // for typescript
|
|
74
72
|
icon?: string;
|
|
75
|
-
srcSet?: string;
|
|
76
73
|
languageInsensitive?: boolean;
|
|
77
74
|
[REDOCLY_TEAMS_RBAC]?: Rbac;
|
|
78
75
|
}
|
|
@@ -91,7 +88,6 @@ export type ResolvedNavItem =
|
|
|
91
88
|
items?: ResolvedNavItem[]; // for typescript
|
|
92
89
|
sidebar?: ResolvedNavItem[]; // for typescript
|
|
93
90
|
icon?: string; // for typescript
|
|
94
|
-
srcSet?: string;
|
|
95
91
|
languageInsensitive?: boolean; // for typescript
|
|
96
92
|
[REDOCLY_TEAMS_RBAC]?: Rbac;
|
|
97
93
|
};
|
|
@@ -154,7 +150,6 @@ export type NavItem = {
|
|
|
154
150
|
};
|
|
155
151
|
export interface LogoConfig {
|
|
156
152
|
image?: string;
|
|
157
|
-
srcSet?: string;
|
|
158
153
|
altText?: string;
|
|
159
154
|
link?: string;
|
|
160
155
|
favicon?: string;
|
package/src/ui/ArrowBack.tsx
CHANGED
package/src/ui/Burger.tsx
CHANGED
package/src/ui/Dropdown.tsx
CHANGED
|
@@ -36,9 +36,9 @@ const DropDownHeader = styled.div`
|
|
|
36
36
|
align-items: center;
|
|
37
37
|
padding: 8px 10px;
|
|
38
38
|
border-radius: 4px;
|
|
39
|
-
border: 1px solid var(--border-
|
|
39
|
+
border: 1px solid var(--border-color);
|
|
40
40
|
font-weight: 600;
|
|
41
|
-
color: var(--text-
|
|
41
|
+
color: var(--text-color);
|
|
42
42
|
background: var(--background-color);
|
|
43
43
|
`;
|
|
44
44
|
|
|
@@ -48,7 +48,7 @@ const DropDownList = styled.div`
|
|
|
48
48
|
margin: 2px 20px 0 20px;
|
|
49
49
|
padding: 0;
|
|
50
50
|
border-radius: 4px;
|
|
51
|
-
border: 1px solid var(--border-
|
|
51
|
+
border: 1px solid var(--border-color);
|
|
52
52
|
z-index: var(--z-index-popover);
|
|
53
53
|
left: 0;
|
|
54
54
|
right: 0;
|
|
@@ -67,20 +67,20 @@ const ListItem = styled.div`
|
|
|
67
67
|
background-color: var(--background-color);
|
|
68
68
|
padding: 0.4em 10px;
|
|
69
69
|
font-size: 1em;
|
|
70
|
-
color: var(--text-
|
|
70
|
+
color: var(--text-color);
|
|
71
71
|
cursor: pointer;
|
|
72
72
|
&:hover {
|
|
73
|
-
background-color: var(--
|
|
73
|
+
background-color: var(--color-secondary-300);
|
|
74
74
|
}
|
|
75
75
|
&.active {
|
|
76
|
-
background-color: var(--
|
|
76
|
+
background-color: var(--color-secondary-300);
|
|
77
77
|
}
|
|
78
78
|
`;
|
|
79
79
|
|
|
80
80
|
const DropDownLink = styled(Link)`
|
|
81
81
|
display: block;
|
|
82
82
|
text-decoration: none;
|
|
83
|
-
color: var(--text-
|
|
83
|
+
color: var(--text-color);
|
|
84
84
|
`;
|
|
85
85
|
|
|
86
86
|
export function Dropdown({ items, activeItem }: DropdownProps): JSX.Element {
|
package/src/ui/Highlight.tsx
CHANGED
|
@@ -3,12 +3,12 @@ import { findAll } from 'highlight-words-core';
|
|
|
3
3
|
|
|
4
4
|
export const HighlightContext = React.createContext<string[]>([]);
|
|
5
5
|
|
|
6
|
-
export function Highlight(props: { children: React.ReactChildren | string }): JSX.Element
|
|
6
|
+
export function Highlight(props: { children: React.ReactChildren | string }): JSX.Element {
|
|
7
7
|
const { children } = props;
|
|
8
8
|
const searchWords = React.useContext(HighlightContext);
|
|
9
9
|
|
|
10
10
|
if (!searchWords.length) {
|
|
11
|
-
return
|
|
11
|
+
return <>children</> || null;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
function highlight(str: string, childIdx: number = 0) {
|
package/src/ui/Jumbotron.tsx
CHANGED
|
@@ -25,7 +25,7 @@ export const Jumbotron = styled(Background).attrs(() => ({
|
|
|
25
25
|
${({ bgImage, bgColor }) =>
|
|
26
26
|
bgImage &&
|
|
27
27
|
`
|
|
28
|
-
background: ${bgColor || 'var(--text-
|
|
28
|
+
background: ${bgColor || 'var(--text-color)'} url(${bgImage});
|
|
29
29
|
background-repeat: no-repeat;
|
|
30
30
|
background-size: cover;
|
|
31
31
|
background-position: center;
|