@redocly/theme 0.18.3-patch.0 → 0.18.3
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 +3 -11
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -15
- package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -0
- package/lib/components/Breadcrumbs/Breadcrumb.js +3 -4
- package/lib/components/Breadcrumbs/Breadcrumbs.js +9 -2
- 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 +42 -40
- 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 -1
- package/lib/components/Catalog/Catalog.js +96 -99
- package/lib/components/Catalog/CatalogCard.js +58 -62
- package/lib/components/Catalog/index.d.ts +3 -4
- package/lib/components/Catalog/index.js +3 -4
- package/lib/components/Catalog/useCatalog.js +12 -1
- package/lib/components/CodeBlock/CodeBlockContainer.js +8 -35
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +4 -3
- package/lib/components/CodeBlock/CodeBlockControlButton.js +19 -5
- package/lib/components/CodeBlock/CodeBlockControls.js +11 -10
- package/lib/components/CodeBlock/index.d.ts +0 -1
- package/lib/components/CodeBlock/index.js +0 -1
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +3 -0
- package/lib/components/Dropdown/Dropdown.d.ts +2 -7
- package/lib/components/Dropdown/Dropdown.js +4 -6
- package/lib/components/Dropdown/index.d.ts +0 -1
- package/lib/components/Dropdown/index.js +0 -1
- package/lib/components/EditPageButton/EditPageButton.js +2 -1
- package/lib/components/Feedback/Feedback.js +13 -3
- package/lib/components/Feedback/Reasons.js +1 -1
- package/lib/components/Feedback/Sentiment.js +6 -2
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.js +78 -101
- 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 -27
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +64 -53
- 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/Markdown/MarkdownWrapper.js +4 -2
- package/lib/components/Markdown/Mermaid.js +1 -1
- 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 -7
- package/lib/components/Menu/MenuLinkItem.js +2 -1
- 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 +28 -5
- package/lib/components/Navbar/Navbar.js +11 -10
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +6 -7
- 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 +6 -13
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/OperationBadge/OperationBadge.d.ts +6 -0
- package/lib/components/OperationBadge/OperationBadge.js +68 -0
- package/lib/components/OperationBadge/index.d.ts +1 -0
- package/lib/{icons/ErrorIcon → components/OperationBadge}/index.js +1 -1
- package/lib/components/Panel/PanelHeader.js +0 -1
- 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/index.d.ts +0 -1
- package/lib/components/Product/index.js +0 -1
- package/lib/components/Profile/LoginLink.js +6 -2
- package/lib/components/Profile/Profile.js +22 -3
- package/lib/components/Profile/UserProfile.js +13 -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 +7 -7
- 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 +3 -10
- package/lib/components/Select/Select.js +6 -9
- package/lib/components/Select/index.d.ts +0 -1
- package/lib/components/Select/index.js +0 -1
- package/lib/components/Separator/SeparatorItem.js +5 -7
- package/lib/components/Sidebar/ApiCallItem.d.ts +6 -2
- package/lib/components/Sidebar/ApiCallItem.js +11 -13
- package/lib/components/Sidebar/FooterWrapper.js +4 -3
- package/lib/components/Sidebar/HeaderWrapper.js +2 -2
- package/lib/components/Sidebar/SidebarLayout.js +2 -1
- package/lib/components/Sidebar/VersionPicker.d.ts +1 -1
- package/lib/components/Sidebar/index.d.ts +0 -1
- package/lib/components/Sidebar/index.js +0 -1
- package/lib/components/SidebarActions/CollapseSidebarButton.js +1 -37
- package/lib/components/SidebarActions/SidebarActions.js +15 -3
- package/lib/components/SidebarActions/styled.js +14 -16
- package/lib/components/TableOfContent/TableOfContent.js +5 -3
- package/lib/components/TableOfContent/index.d.ts +0 -1
- package/lib/components/TableOfContent/index.js +0 -1
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tags/Tags.d.ts +5 -0
- package/lib/components/Tags/Tags.js +32 -0
- package/lib/components/Tags/index.d.ts +1 -0
- package/lib/components/{Image → Tags}/index.js +1 -1
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tooltip/index.d.ts +0 -1
- package/lib/components/Tooltip/index.js +0 -1
- 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 -6
- package/lib/config.js +0 -1
- package/lib/globalStyle.js +1967 -597
- 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/nav.d.ts +0 -5
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +84 -216
- package/package.json +2 -2
- package/src/I18n/LanguagePicker.tsx +4 -29
- package/src/I18n/index.ts +0 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +9 -4
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +14 -2
- package/src/components/Breadcrumbs/index.ts +0 -1
- package/src/components/Button/Button.tsx +48 -52
- package/src/components/Button/index.ts +0 -1
- package/src/components/Catalog/Catalog.tsx +115 -127
- package/src/components/Catalog/CatalogCard.tsx +61 -75
- package/src/components/Catalog/index.tsx +3 -0
- package/src/components/Catalog/useCatalog.ts +13 -1
- package/src/components/CodeBlock/CodeBlockContainer.tsx +7 -14
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +19 -6
- package/src/components/CodeBlock/CodeBlockControls.tsx +11 -9
- package/src/components/CodeBlock/index.ts +0 -1
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +4 -0
- package/src/components/Dropdown/Dropdown.tsx +4 -10
- package/src/components/Dropdown/index.ts +0 -1
- package/src/components/EditPageButton/EditPageButton.tsx +2 -1
- package/src/components/Feedback/Feedback.tsx +13 -3
- package/src/components/Feedback/Reasons.tsx +1 -1
- package/src/components/Feedback/Sentiment.tsx +10 -2
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +94 -127
- 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 +64 -79
- 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/Markdown/MarkdownWrapper.tsx +4 -2
- package/src/components/Markdown/Mermaid.tsx +1 -1
- 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 -7
- package/src/components/Menu/MenuLinkItem.tsx +6 -1
- 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 +39 -5
- package/src/components/Navbar/Navbar.tsx +11 -10
- package/src/components/Navbar/NavbarItem.tsx +6 -6
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +0 -1
- package/src/components/NavbarLogo/NavbarLogo.tsx +12 -14
- 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 -1
- package/src/components/Panel/PanelHeaderTitle.ts +4 -0
- package/src/components/Panel/index.ts +0 -1
- package/src/components/Product/index.ts +0 -1
- package/src/components/Profile/LoginLink.tsx +10 -2
- package/src/components/Profile/Profile.tsx +24 -1
- package/src/components/Profile/UserProfile.tsx +13 -21
- package/src/components/Profile/index.ts +0 -1
- package/src/components/Search/CancelSearch.tsx +15 -2
- package/src/components/Search/ProductTag.tsx +7 -7
- 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 +7 -20
- package/src/components/Select/index.ts +0 -1
- package/src/components/Separator/SeparatorItem.tsx +5 -7
- package/src/components/Sidebar/ApiCallItem.tsx +11 -13
- package/src/components/Sidebar/FooterWrapper.tsx +4 -3
- package/src/components/Sidebar/HeaderWrapper.tsx +2 -2
- package/src/components/Sidebar/SidebarLayout.tsx +6 -1
- package/src/components/Sidebar/index.ts +0 -1
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +2 -18
- package/src/components/SidebarActions/SidebarActions.tsx +18 -3
- package/src/components/SidebarActions/styled.tsx +23 -16
- package/src/components/TableOfContent/TableOfContent.tsx +5 -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/TileText.tsx +1 -1
- package/src/components/Tooltip/index.ts +0 -1
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +2 -1
- package/src/config.ts +0 -1
- package/src/globalStyle.ts +1976 -588
- 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/nav.ts +0 -5
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +84 -216
- package/lib/I18n/styledVariables.d.ts +0 -1
- package/lib/I18n/styledVariables.js +0 -39
- package/lib/components/Breadcrumbs/styledVariables.d.ts +0 -1
- package/lib/components/Breadcrumbs/styledVariables.js +0 -19
- package/lib/components/Button/styledVariables.d.ts +0 -1
- package/lib/components/Button/styledVariables.js +0 -94
- package/lib/components/Catalog/styledVariables.d.ts +0 -1
- package/lib/components/Catalog/styledVariables.js +0 -94
- package/lib/components/CodeBlock/styledVariables.d.ts +0 -1
- package/lib/components/CodeBlock/styledVariables.js +0 -90
- 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 -11
- package/lib/components/Filter/FilterContent.js +0 -50
- package/lib/components/Filter/FilterPopover.d.ts +0 -11
- package/lib/components/Filter/FilterPopover.js +0 -99
- 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/Markdown/styledVariables.d.ts +0 -2
- package/lib/components/Markdown/styledVariables.js +0 -221
- package/lib/components/Menu/styledVariables.d.ts +0 -2
- package/lib/components/Menu/styledVariables.js +0 -90
- package/lib/components/Navbar/styledVariables.d.ts +0 -1
- package/lib/components/Navbar/styledVariables.js +0 -40
- package/lib/components/Panel/styledVariables.d.ts +0 -2
- package/lib/components/Panel/styledVariables.js +0 -489
- 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 -33
- package/lib/components/Sidebar/styledVariables.d.ts +0 -2
- package/lib/components/Sidebar/styledVariables.js +0 -210
- 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 -16
- package/lib/components/Tag/Tag.js +0 -39
- 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 -130
- package/lib/components/Tooltip/styledVariables.d.ts +0 -1
- package/lib/components/Tooltip/styledVariables.js +0 -21
- 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/LanguageIcon/LanguageIcon.d.ts +0 -4
- package/lib/icons/LanguageIcon/LanguageIcon.js +0 -14
- package/lib/icons/LanguageIcon/index.d.ts +0 -1
- package/lib/icons/LanguageIcon/index.js +0 -18
- package/lib/icons/PlusIcon/PlusIcon.d.ts +0 -5
- package/lib/icons/PlusIcon/PlusIcon.js +0 -16
- package/lib/icons/PlusIcon/index.d.ts +0 -1
- package/lib/icons/PlusIcon/index.js +0 -18
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +0 -4
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +0 -15
- package/lib/icons/PointingArrowIcon/index.d.ts +0 -1
- package/lib/icons/PointingArrowIcon/index.js +0 -18
- package/src/I18n/styledVariables.ts +0 -36
- package/src/components/Breadcrumbs/styledVariables.ts +0 -16
- package/src/components/Button/styledVariables.ts +0 -91
- package/src/components/Catalog/index.ts +0 -4
- package/src/components/Catalog/styledVariables.ts +0 -91
- package/src/components/CodeBlock/styledVariables.ts +0 -87
- package/src/components/Dropdown/styledVariables.ts +0 -27
- package/src/components/Filter/FilterContent.tsx +0 -75
- package/src/components/Filter/FilterPopover.tsx +0 -132
- 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/Markdown/styledVariables.ts +0 -219
- package/src/components/Menu/styledVariables.ts +0 -88
- package/src/components/Navbar/styledVariables.ts +0 -37
- package/src/components/Panel/styledVariables.ts +0 -487
- 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 -30
- package/src/components/Sidebar/styledVariables.ts +0 -208
- package/src/components/TableOfContent/styledVariables.ts +0 -43
- package/src/components/Tag/Tag.tsx +0 -62
- package/src/components/Tag/index.ts +0 -2
- package/src/components/Tag/styledVariables.ts +0 -127
- package/src/components/Tooltip/styledVariables.ts +0 -18
- 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 -19
- 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/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
|
@@ -23,5 +23,9 @@ export function ShortcutKey(props: ShortcutKeyProps): JSX.Element {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export const Wrapper = styled.div`
|
|
26
|
-
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
font-size: 0.75em;
|
|
28
|
+
right: 1em;
|
|
29
|
+
color: var(--search-trigger-shortcut-text-color);
|
|
30
|
+
opacity: 0.5;
|
|
27
31
|
`;
|
|
@@ -47,8 +47,8 @@ const Wrapper = styled.div`
|
|
|
47
47
|
const Title = styled.div`
|
|
48
48
|
color: var(--search-item-title-text-color);
|
|
49
49
|
font-weight: var(--font-weight-bold);
|
|
50
|
-
font-size: var(--font-size-
|
|
51
|
-
line-height:
|
|
50
|
+
font-size: var(--font-size-small);
|
|
51
|
+
line-height: 20px;
|
|
52
52
|
padding: 8px 24px;
|
|
53
53
|
`;
|
|
54
54
|
|
|
@@ -89,7 +89,7 @@ const PageLink = styled(Link)`
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
:focus-visible {
|
|
92
|
-
outline: 2px solid var(--color-primary);
|
|
92
|
+
outline: 2px solid var(--color-primary-200);
|
|
93
93
|
border-radius: 2px;
|
|
94
94
|
}
|
|
95
95
|
`;
|
|
@@ -14,4 +14,3 @@ export * from '@theme/components/Search/MobileSearchTrigger';
|
|
|
14
14
|
export * from '@theme/components/Search/CancelSearch';
|
|
15
15
|
export * from '@theme/components/Search/ProductTag';
|
|
16
16
|
export * from '@theme/components/Search/utils';
|
|
17
|
-
export * from '@theme/components/Search/styledVariables';
|
|
@@ -12,10 +12,6 @@ export interface SelectProps {
|
|
|
12
12
|
withArrow?: boolean;
|
|
13
13
|
triggerEvent?: 'click' | 'hover';
|
|
14
14
|
onChange?: (value: React.ReactNode | string) => void;
|
|
15
|
-
placement?: 'top' | 'bottom';
|
|
16
|
-
alignment?: 'start' | 'end';
|
|
17
|
-
icon?: React.ReactNode;
|
|
18
|
-
onlyIcon?: boolean;
|
|
19
15
|
}
|
|
20
16
|
|
|
21
17
|
export const Select = ({
|
|
@@ -26,10 +22,6 @@ export const Select = ({
|
|
|
26
22
|
withArrow,
|
|
27
23
|
triggerEvent = 'click',
|
|
28
24
|
onChange,
|
|
29
|
-
placement,
|
|
30
|
-
alignment,
|
|
31
|
-
icon,
|
|
32
|
-
onlyIcon,
|
|
33
25
|
}: SelectProps) => {
|
|
34
26
|
const selectRef = useRef<HTMLDivElement | null>(null);
|
|
35
27
|
|
|
@@ -72,14 +64,11 @@ export const Select = ({
|
|
|
72
64
|
onClick={triggerEvent === 'click' ? handleToggle : undefined}
|
|
73
65
|
>
|
|
74
66
|
<SelectInput>
|
|
75
|
-
{
|
|
76
|
-
<SelectInputValue withIcon={withArrow || !!icon}>{_selected}</SelectInputValue>
|
|
77
|
-
)}
|
|
78
|
-
{icon}
|
|
67
|
+
<SelectInputValue withArrow={withArrow}>{_selected}</SelectInputValue>
|
|
79
68
|
{withArrow ? isOpen ? <ArrowIcon direction="up" /> : <ArrowIcon direction="down" /> : null}
|
|
80
69
|
</SelectInput>
|
|
81
70
|
{isOpen && (
|
|
82
|
-
<SelectList
|
|
71
|
+
<SelectList>
|
|
83
72
|
{options.map((option, index) => (
|
|
84
73
|
<SelectListItem key={index} onClick={() => handleSelect(option)}>
|
|
85
74
|
{option}
|
|
@@ -115,17 +104,15 @@ export const SelectInput = styled.div`
|
|
|
115
104
|
cursor: pointer;
|
|
116
105
|
`;
|
|
117
106
|
|
|
118
|
-
export const SelectInputValue = styled.div<{
|
|
107
|
+
export const SelectInputValue = styled.div<{ withArrow?: boolean }>`
|
|
119
108
|
pointer-events: none;
|
|
120
|
-
${({
|
|
109
|
+
${({ withArrow }) => (withArrow ? 'margin-right: 8px;' : '')}
|
|
121
110
|
`;
|
|
122
111
|
|
|
123
|
-
export const SelectList = styled.ul
|
|
112
|
+
export const SelectList = styled.ul`
|
|
124
113
|
position: absolute;
|
|
125
|
-
top:
|
|
126
|
-
|
|
127
|
-
left: ${({ alignment }) => (alignment === 'start' ? '0' : 'auto')};
|
|
128
|
-
right: ${({ alignment }) => (alignment === 'end' ? '0' : 'auto')};
|
|
114
|
+
top: 100%;
|
|
115
|
+
left: 0;
|
|
129
116
|
margin: 0;
|
|
130
117
|
min-width: var(--select-list-min-width);
|
|
131
118
|
max-width: var(--select-list-max-width);
|
|
@@ -9,15 +9,12 @@ export const SeparatorItem = styled(MenuItemLabel).attrs<{ className?: string }>
|
|
|
9
9
|
}),
|
|
10
10
|
)`
|
|
11
11
|
cursor: default;
|
|
12
|
-
font-weight: var(--
|
|
13
|
-
color: var(--sidebar-
|
|
12
|
+
font-weight: var(--font-weight-bold);
|
|
13
|
+
color: var(--sidebar-separator-item-color);
|
|
14
|
+
font-family: var(--sidebar-item-separator-font-family);
|
|
14
15
|
font-size: var(--sidebar-item-separator-font-size);
|
|
15
16
|
text-transform: var(--sidebar-item-separator-text-transform);
|
|
16
17
|
background: var(--mobile-menu-background);
|
|
17
|
-
border-radius: 0;
|
|
18
|
-
border-top: var(--sidebar-item-separator-border-width) solid
|
|
19
|
-
var(--sidebar-item-separator-border-color);
|
|
20
|
-
padding-top: var(--sidebar-item-separator-padding-top);
|
|
21
18
|
|
|
22
19
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
23
20
|
background: var(--sidebar-item-separator-background-color);
|
|
@@ -28,6 +25,7 @@ export const SeparatorItem = styled(MenuItemLabel).attrs<{ className?: string }>
|
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
:hover {
|
|
31
|
-
color:
|
|
28
|
+
color: inherit;
|
|
29
|
+
background-color: inherit;
|
|
32
30
|
}
|
|
33
31
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { OperationBadge } from '@theme/components/OperationBadge';
|
|
5
5
|
import { MenuLinkItem } from '@theme/components/Menu/MenuLinkItem';
|
|
6
6
|
import { SeparatorLine } from '@theme/components/Separator/SeparatorLine';
|
|
7
7
|
import { MenuItemLabel } from '@theme/components/Menu/MenuItemLabel';
|
|
@@ -12,9 +12,9 @@ export function ApiCallItem({ item, className }: MenuItemProps): JSX.Element {
|
|
|
12
12
|
<Wrapper data-component-name="Sidebar/ApiCallItem" className={className}>
|
|
13
13
|
<MenuLinkItem item={item}>
|
|
14
14
|
<Label active={item.active}>
|
|
15
|
-
<
|
|
15
|
+
<Badge type={item.httpVerb || ''}>
|
|
16
16
|
{item.httpVerb === 'hook' ? 'event' : item.httpVerb}
|
|
17
|
-
</
|
|
17
|
+
</Badge>
|
|
18
18
|
{item.label}
|
|
19
19
|
</Label>
|
|
20
20
|
</MenuLinkItem>
|
|
@@ -34,16 +34,14 @@ const Label = styled(MenuItemLabel)`
|
|
|
34
34
|
|
|
35
35
|
const Wrapper = styled.div``;
|
|
36
36
|
|
|
37
|
-
export const
|
|
37
|
+
export const Badge = styled(OperationBadge)`
|
|
38
38
|
flex-shrink: 0;
|
|
39
39
|
margin-top: 0;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
font-weight: var(--sidebar-item-http-tag-font-weight);
|
|
48
|
-
border-radius: var(--sidebar-item-http-tag-border-radius);
|
|
40
|
+
width: 36px;
|
|
41
|
+
height: 14px;
|
|
42
|
+
font-size: var(--sidebar-item-badge-http-font-size);
|
|
43
|
+
font-family: var(--sidebar-item-badge-http-font-family);
|
|
44
|
+
font-weight: var(--sidebar-item-badge-http-font-weight);
|
|
45
|
+
border-radius: var(--sidebar-item-badge-http-border-radius);
|
|
46
|
+
color: var(--sidebar-item-badge-http-text-color);
|
|
49
47
|
`;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
export const FooterWrapper = styled.div<{ collapsed?: boolean }>`
|
|
3
|
-
padding: var(--sidebar-footer-padding-vertical) var(--sidebar-footer-padding-horizontal);
|
|
4
|
-
|
|
5
3
|
${({ collapsed }) =>
|
|
6
4
|
collapsed &&
|
|
7
5
|
`
|
|
8
6
|
position: sticky;
|
|
9
7
|
bottom: 0;
|
|
10
|
-
padding: 0;
|
|
11
8
|
`}
|
|
9
|
+
margin: var(--sidebar-offset-top) 0 var(--sidebar-spacing-unit) var(--sidebar-offset-left);
|
|
10
|
+
padding-top: var(--sidebar-spacing-unit);
|
|
11
|
+
padding-right: var(--sidebar-spacing-unit);
|
|
12
|
+
border-top: solid 1px var(--border-color);
|
|
12
13
|
|
|
13
14
|
button {
|
|
14
15
|
margin: 0;
|
|
@@ -5,6 +5,6 @@ export const HeaderWrapper = styled.div.attrs<{ className?: string }>(({ classNa
|
|
|
5
5
|
className,
|
|
6
6
|
}))`
|
|
7
7
|
margin: var(--sidebar-offset-top) 0 0 var(--sidebar-offset-left);
|
|
8
|
-
padding-bottom: var(--sidebar-
|
|
9
|
-
border-bottom: solid 1px var(--border-
|
|
8
|
+
padding-bottom: var(--sidebar-spacing-unit);
|
|
9
|
+
border-bottom: solid 1px var(--border-color);
|
|
10
10
|
`;
|
|
@@ -9,6 +9,7 @@ import { MobileSidebarButton } from '@theme/components/Sidebar/MobileSidebarButt
|
|
|
9
9
|
import { MenuContainer } from '@theme/components/Menu/MenuContainer';
|
|
10
10
|
import { SidebarSearch } from '@theme/components/Search/SidebarSearch';
|
|
11
11
|
import { useThemeConfig } from '@theme/hooks/useThemeConfig';
|
|
12
|
+
import { telemetry } from '@portal/telemetry';
|
|
12
13
|
|
|
13
14
|
import { MobileSidebarIcon } from './MobileSidebarIcon';
|
|
14
15
|
|
|
@@ -81,7 +82,11 @@ export function SidebarLayout({
|
|
|
81
82
|
<Wrapper data-component-name="Sidebar/SidebarLayout" className={className}>
|
|
82
83
|
{!search?.hide && search?.placement === 'sidebar' ? <SidebarSearch /> : null}
|
|
83
84
|
<Sidebar animate={true} opened={isOpen}>
|
|
84
|
-
{header ?
|
|
85
|
+
{header ? (
|
|
86
|
+
<HeaderWrapper onClick={() => telemetry.send('back_to_catalog_button_clicked', {})}>
|
|
87
|
+
{header}
|
|
88
|
+
</HeaderWrapper>
|
|
89
|
+
) : null}
|
|
85
90
|
{versions ? <>{versions}</> : null}
|
|
86
91
|
<MenuContainer growContent={growContent}>{menu}</MenuContainer>
|
|
87
92
|
{footer && !isOpen ? (
|
|
@@ -11,4 +11,3 @@ export * from '@theme/components/Sidebar/FooterWrapper';
|
|
|
11
11
|
export * from '@theme/components/Sidebar/HeaderWrapper';
|
|
12
12
|
export * from '@theme/components/Sidebar/SidebarItemIcon';
|
|
13
13
|
export * from '@theme/components/Sidebar/VersionPicker';
|
|
14
|
-
export * from '@theme/components/Sidebar/styledVariables';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styled, { css } from 'styled-components';
|
|
3
2
|
|
|
4
3
|
import {
|
|
5
4
|
StyledToggleRightPanelButton,
|
|
@@ -16,26 +15,11 @@ export const CollapseSidebarButton = ({
|
|
|
16
15
|
onClick,
|
|
17
16
|
}: CollapseSidebarButtonProps): JSX.Element => {
|
|
18
17
|
return (
|
|
19
|
-
<
|
|
18
|
+
<StyledToggleRightPanelButton
|
|
20
19
|
title={initialValue ? 'Show sidebar' : 'Hide sidebar'}
|
|
21
20
|
onClick={onClick}
|
|
22
|
-
collapsed={initialValue}
|
|
23
21
|
>
|
|
24
22
|
{initialValue ? <HideLeftPanelSVG /> : <ShowLeftPanelSVG />}
|
|
25
|
-
</
|
|
23
|
+
</StyledToggleRightPanelButton>
|
|
26
24
|
);
|
|
27
25
|
};
|
|
28
|
-
|
|
29
|
-
const ToggleButton = styled(StyledToggleRightPanelButton)<{ collapsed?: boolean }>`
|
|
30
|
-
background: var(--sidebar-collapse-button-background-color);
|
|
31
|
-
fill: var(--sidebar-collapse-button-icon-color);
|
|
32
|
-
margin-right: ${({ collapsed }) => (collapsed ? 0 : 'calc(var(--spacing-unit) * -9)')};
|
|
33
|
-
border: 1px solid var(--sidebar-collapse-button-border-color);
|
|
34
|
-
|
|
35
|
-
${({ collapsed }) =>
|
|
36
|
-
collapsed &&
|
|
37
|
-
css`
|
|
38
|
-
background: var(--sidebar-collapse-button-active-background-color);
|
|
39
|
-
border: var(--sidebar-collapse-button-active-border-color);
|
|
40
|
-
`}
|
|
41
|
-
`;
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
ControlsWrap,
|
|
8
8
|
ControlsWrapChangeLayoutButtons,
|
|
9
9
|
} from '@theme/components/SidebarActions/styled';
|
|
10
|
+
import { telemetry } from '@portal/telemetry';
|
|
10
11
|
|
|
11
12
|
export enum LayoutVariant {
|
|
12
13
|
STACKED = 'stacked',
|
|
@@ -54,11 +55,20 @@ export const SidebarActions = ({
|
|
|
54
55
|
{initialShowRightPanelToggle && (
|
|
55
56
|
<ToggleRightPanelButton
|
|
56
57
|
showRightPanelToggle={showRightPanelToggle}
|
|
57
|
-
onClick={
|
|
58
|
+
onClick={() => {
|
|
59
|
+
onChangeRightPanelViewClick();
|
|
60
|
+
telemetry.send('sidebar_samples_button_clicked', {});
|
|
61
|
+
}}
|
|
58
62
|
/>
|
|
59
63
|
)}
|
|
60
64
|
{showChangeLayoutButton && showRightPanelToggle && (
|
|
61
|
-
<ChangeViewButton
|
|
65
|
+
<ChangeViewButton
|
|
66
|
+
layout={layout}
|
|
67
|
+
onClick={() => {
|
|
68
|
+
onChangeViewClick();
|
|
69
|
+
telemetry.send('change_layout_button_clicked', {});
|
|
70
|
+
}}
|
|
71
|
+
/>
|
|
62
72
|
)}
|
|
63
73
|
</ControlsWrapChangeLayoutButtons>
|
|
64
74
|
)}
|
|
@@ -66,7 +76,12 @@ export const SidebarActions = ({
|
|
|
66
76
|
{!hideCollapseSidebarButton && (
|
|
67
77
|
<CollapseSidebarButton
|
|
68
78
|
initialValue={collapsedSidebar}
|
|
69
|
-
onClick={
|
|
79
|
+
onClick={() => {
|
|
80
|
+
onChangeCollapseSidebarClick();
|
|
81
|
+
collapsedSidebar
|
|
82
|
+
? telemetry.send('sidebar_item_expanded', {})
|
|
83
|
+
: telemetry.send('sidebar_item_collapsed', {});
|
|
84
|
+
}}
|
|
70
85
|
/>
|
|
71
86
|
)}
|
|
72
87
|
</ControlsWrap>
|
|
@@ -5,7 +5,7 @@ export const ShowLeftPanelSVG = styled(() => (
|
|
|
5
5
|
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
6
|
<path
|
|
7
7
|
d="M4.375 7L8.75 2.625L9.3625 3.2375L5.6 7L9.3625 10.7625L8.75 11.375L4.375 7Z"
|
|
8
|
-
fill="var(--
|
|
8
|
+
fill="var(--color-emphasis-400)"
|
|
9
9
|
/>
|
|
10
10
|
</svg>
|
|
11
11
|
))`
|
|
@@ -16,7 +16,7 @@ export const HideLeftPanelSVG = styled(() => (
|
|
|
16
16
|
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
17
|
<path
|
|
18
18
|
d="M9.62495 7L5.24995 11.375L4.63745 10.7625L8.39995 7L4.63745 3.2375L5.24995 2.625L9.62495 7Z"
|
|
19
|
-
fill="var(--
|
|
19
|
+
fill="var(--color-emphasis-400)"
|
|
20
20
|
/>
|
|
21
21
|
</svg>
|
|
22
22
|
))`
|
|
@@ -42,7 +42,7 @@ export const HideRightPanelSVG = styled(() => (
|
|
|
42
42
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
43
43
|
<path
|
|
44
44
|
d="M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3Z"
|
|
45
|
-
fill="
|
|
45
|
+
fill="var(--color-emphasis-400)"
|
|
46
46
|
/>
|
|
47
47
|
</svg>
|
|
48
48
|
))`
|
|
@@ -53,7 +53,7 @@ export const ShowRightPanelSVG = styled(() => (
|
|
|
53
53
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
54
54
|
<path
|
|
55
55
|
d="M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3ZM14 13H11V3H14V13Z"
|
|
56
|
-
fill="
|
|
56
|
+
fill="var(--color-emphasis-400)"
|
|
57
57
|
/>
|
|
58
58
|
</svg>
|
|
59
59
|
))`
|
|
@@ -78,11 +78,17 @@ export const StyledChangeViewButton = styled.a`
|
|
|
78
78
|
|
|
79
79
|
export const ChangeViewSvgRow = styled(() => (
|
|
80
80
|
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
81
|
-
<path
|
|
82
|
-
|
|
81
|
+
<path
|
|
82
|
+
d="M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z"
|
|
83
|
+
fill="var(--color-emphasis-400)"
|
|
84
|
+
/>
|
|
85
|
+
<path
|
|
86
|
+
d="M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z"
|
|
87
|
+
fill="var(--color-emphasis-400)"
|
|
88
|
+
/>
|
|
83
89
|
<path
|
|
84
90
|
d="M2.625 11.375L2.625 8.75L11.375 8.75L11.375 11.375L2.625 11.375ZM2.625 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375L12.25 8.75C12.25 8.51794 12.1578 8.29538 11.9937 8.13128C11.8296 7.96719 11.6071 7.875 11.375 7.875L2.625 7.875C2.39294 7.875 2.17038 7.96719 2.00628 8.13128C1.84219 8.29538 1.75 8.51793 1.75 8.75L1.75 11.375C1.75 11.6071 1.84219 11.8296 2.00628 11.9937C2.17038 12.1578 2.39294 12.25 2.625 12.25Z"
|
|
85
|
-
fill="
|
|
91
|
+
fill="var(--color-emphasis-400)"
|
|
86
92
|
/>
|
|
87
93
|
</svg>
|
|
88
94
|
))`
|
|
@@ -91,14 +97,17 @@ export const ChangeViewSvgRow = styled(() => (
|
|
|
91
97
|
|
|
92
98
|
export const ChangeViewSvgColumn = styled(() => (
|
|
93
99
|
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
94
|
-
<path
|
|
100
|
+
<path
|
|
101
|
+
d="M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z"
|
|
102
|
+
fill="var(--color-emphasis-400)"
|
|
103
|
+
/>
|
|
95
104
|
<path
|
|
96
105
|
d="M5.6875 12.25L5.6875 1.75L4.8125 1.75L4.8125 12.25L5.6875 12.25Z"
|
|
97
|
-
fill="
|
|
106
|
+
fill="var(--color-emphasis-400)"
|
|
98
107
|
/>
|
|
99
108
|
<path
|
|
100
109
|
d="M11.375 11.375L8.75 11.375L8.75 2.625L11.375 2.625L11.375 11.375ZM12.25 11.375L12.25 2.625C12.25 2.39294 12.1578 2.17038 11.9937 2.00628C11.8296 1.84219 11.6071 1.75 11.375 1.75L8.75 1.75C8.51794 1.75 8.29538 1.84219 8.13128 2.00628C7.96719 2.17038 7.875 2.39294 7.875 2.625L7.875 11.375C7.875 11.6071 7.96719 11.8296 8.13128 11.9937C8.29538 12.1578 8.51794 12.25 8.75 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375Z"
|
|
101
|
-
fill="
|
|
110
|
+
fill="var(--color-emphasis-400)"
|
|
102
111
|
/>
|
|
103
112
|
</svg>
|
|
104
113
|
))`
|
|
@@ -114,9 +123,9 @@ export const ControlsWrap = styled.span<{
|
|
|
114
123
|
justify-content: ${({ isOpenapiDocs }) => (isOpenapiDocs ? 'space-between' : 'flex-end')};
|
|
115
124
|
bottom: 0;
|
|
116
125
|
flex-direction: row;
|
|
117
|
-
gap: var(--spacing-
|
|
126
|
+
gap: var(--spacing-unit);
|
|
118
127
|
align-items: center;
|
|
119
|
-
margin-left:
|
|
128
|
+
margin-left: '15px';
|
|
120
129
|
z-index: 2;
|
|
121
130
|
background: var(--sidebar-background-color);
|
|
122
131
|
|
|
@@ -124,10 +133,8 @@ export const ControlsWrap = styled.span<{
|
|
|
124
133
|
isCollapsed &&
|
|
125
134
|
css`
|
|
126
135
|
flex-direction: column;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
padding: var(--sidebar-controls-collapsed-padding-vertical)
|
|
130
|
-
var(--sidebar-controls-collapsed-padding-horizontal);
|
|
136
|
+
gap: 10px;
|
|
137
|
+
padding-bottom: 10px;
|
|
131
138
|
`}
|
|
132
139
|
|
|
133
140
|
${({ theme }) => css`
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
getDisplayedHeadings,
|
|
12
12
|
getLeastDepth,
|
|
13
13
|
} from '@theme/components/TableOfContent/utils';
|
|
14
|
+
import { telemetry } from '@portal/telemetry';
|
|
14
15
|
|
|
15
16
|
interface TableOfContentProps {
|
|
16
17
|
headings?: Array<MdHeading | null> | null | undefined;
|
|
@@ -64,6 +65,7 @@ export function TableOfContent(props: TableOfContentProps): JSX.Element | null {
|
|
|
64
65
|
className={activeHeadingId === heading.id ? 'active' : ''}
|
|
65
66
|
dangerouslySetInnerHTML={{ __html: heading.value || '' }}
|
|
66
67
|
data-cy={`toc-${heading.value}`}
|
|
68
|
+
onClick={() => telemetry.send('toc_item_clicked', {})}
|
|
67
69
|
/>
|
|
68
70
|
);
|
|
69
71
|
})}
|
|
@@ -79,13 +81,12 @@ const TocHeader = styled.div`
|
|
|
79
81
|
font-weight: var(--toc-heading-font-weight);
|
|
80
82
|
padding: var(--toc-item-padding-vertical) var(--toc-item-padding-horizontal);
|
|
81
83
|
color: var(--toc-heading-text-color);
|
|
82
|
-
text-transform:
|
|
84
|
+
text-transform: uppercase;
|
|
83
85
|
`;
|
|
84
86
|
|
|
85
87
|
const MenuItem = styled.a<{ depth: number }>`
|
|
86
88
|
display: block;
|
|
87
89
|
color: var(--toc-item-text-color);
|
|
88
|
-
font-weight: var(--toc-item-font-weight);
|
|
89
90
|
background-color: var(--toc-item-background-color);
|
|
90
91
|
cursor: pointer;
|
|
91
92
|
font-size: var(--toc-item-font-size);
|
|
@@ -99,6 +100,7 @@ const MenuItem = styled.a<{ depth: number }>`
|
|
|
99
100
|
:hover,
|
|
100
101
|
&.active {
|
|
101
102
|
color: var(--toc-item-active-text-color);
|
|
103
|
+
background-color: var(--toc-item-active-background-color);
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
:empty {
|
|
@@ -121,6 +123,7 @@ const TableOfContentItems = styled.div`
|
|
|
121
123
|
position: sticky;
|
|
122
124
|
top: calc(var(--navbar-height) + var(--toc-offset-top));
|
|
123
125
|
max-height: calc(100vh - var(--navbar-height) - var(--toc-offset-top));
|
|
126
|
+
border-left: 1px solid var(--toc-border-color);
|
|
124
127
|
overflow-y: auto;
|
|
125
128
|
width: var(--toc-width);
|
|
126
129
|
`;
|
|
@@ -34,7 +34,7 @@ const TabItem = styled.li<{ active: boolean }>`
|
|
|
34
34
|
background-color: var(--background-color);
|
|
35
35
|
border: solid var(--md-tabs-active-tab-border-color);
|
|
36
36
|
border-width: 0 0 1px 0;
|
|
37
|
-
color: var(--text-
|
|
37
|
+
color: var(--text-color);
|
|
38
38
|
`
|
|
39
39
|
: `
|
|
40
40
|
&:hover {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
import { Highlight } from '@theme/ui/Highlight';
|
|
5
|
+
|
|
6
|
+
export function Tags({ tags, className }: { tags: string[]; className?: string }) {
|
|
7
|
+
return (
|
|
8
|
+
<TagsWrapper className={className}>
|
|
9
|
+
{tags.map((tag) => (
|
|
10
|
+
<Tag key={tag} className={'tag-' + slug(tag)}>
|
|
11
|
+
<Highlight>{tag}</Highlight>
|
|
12
|
+
</Tag>
|
|
13
|
+
))}
|
|
14
|
+
</TagsWrapper>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const TagsWrapper = styled.div`
|
|
19
|
+
margin-top: 16px;
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const Tag = styled.div`
|
|
23
|
+
display: inline-block;
|
|
24
|
+
background-color: #d3f4ef;
|
|
25
|
+
color: #000;
|
|
26
|
+
padding: 2px 5px;
|
|
27
|
+
border-radius: var(--border-radius);
|
|
28
|
+
margin-right: 5px;
|
|
29
|
+
margin-bottom: 5px;
|
|
30
|
+
font-size: 0.8em;
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
// TODO: import from portal
|
|
34
|
+
function slug(str: string): string {
|
|
35
|
+
return str.replace(/\s/g, '-').toLowerCase();
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tags';
|
|
@@ -7,7 +7,7 @@ export const TileText = styled.span.attrs<{ className?: string }>(({ className }
|
|
|
7
7
|
display: inline-block;
|
|
8
8
|
font-weight: var(--font-weight-regular);
|
|
9
9
|
overflow: hidden;
|
|
10
|
-
color: ${(props) => props.color || 'var(--text-
|
|
10
|
+
color: ${(props) => props.color || 'var(--text-color)'};
|
|
11
11
|
line-height: 1.25;
|
|
12
12
|
font-family: var(--font-family-base);
|
|
13
13
|
`;
|
|
@@ -17,7 +17,7 @@ export const Typography = styled.div.attrs<{ className?: string }>(({ className
|
|
|
17
17
|
'data-component-name': 'Typography/Typography',
|
|
18
18
|
className,
|
|
19
19
|
}))<TypographyProps>`
|
|
20
|
-
color: ${({ color }) => color || 'var(--text-
|
|
20
|
+
color: ${({ color }) => color || 'var(--text-color)'};
|
|
21
21
|
font-family: ${({ fontFamily }) => fontFamily || 'var(--font-family-base)'};
|
|
22
22
|
font-size: ${({ fontSize }) => fontSize || 'var(--font-size-base)'};
|
|
23
23
|
font-style: ${({ fontStyle }) => fontStyle};
|
package/src/components/index.ts
CHANGED
|
@@ -16,7 +16,7 @@ export * from './OpenApiDocs/hooks/OpenApiTryItSecurityPanel';
|
|
|
16
16
|
export * from './Tooltip';
|
|
17
17
|
export * from './Panel';
|
|
18
18
|
export * from './Feedback';
|
|
19
|
-
export * from './
|
|
19
|
+
export * from './OperationBadge';
|
|
20
20
|
export * from './TableOfContent';
|
|
21
21
|
export * from './Profile';
|
|
22
22
|
export * from './ColorModeSwitcher';
|
|
@@ -25,6 +25,7 @@ export * from './Markdown';
|
|
|
25
25
|
export * from './OpenApiDocs';
|
|
26
26
|
export * from './SidebarActions';
|
|
27
27
|
export * from './Filter';
|
|
28
|
+
export * from './Tags';
|
|
28
29
|
export * from './Tabs';
|
|
29
30
|
export * from './Menu';
|
|
30
31
|
export * from './Separator';
|