@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
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.Badge = exports.ApiCallItem = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const
|
|
9
|
+
const OperationBadge_1 = require("../../components/OperationBadge");
|
|
10
10
|
const MenuLinkItem_1 = require("../../components/Menu/MenuLinkItem");
|
|
11
11
|
const SeparatorLine_1 = require("../../components/Separator/SeparatorLine");
|
|
12
12
|
const MenuItemLabel_1 = require("../../components/Menu/MenuItemLabel");
|
|
@@ -14,7 +14,7 @@ function ApiCallItem({ item, className }) {
|
|
|
14
14
|
return (react_1.default.createElement(Wrapper, { "data-component-name": "Sidebar/ApiCallItem", className: className },
|
|
15
15
|
react_1.default.createElement(MenuLinkItem_1.MenuLinkItem, { item: item },
|
|
16
16
|
react_1.default.createElement(Label, { active: item.active },
|
|
17
|
-
react_1.default.createElement(exports.
|
|
17
|
+
react_1.default.createElement(exports.Badge, { type: item.httpVerb || '' }, item.httpVerb === 'hook' ? 'event' : item.httpVerb),
|
|
18
18
|
item.label)),
|
|
19
19
|
item.separatorLine ? react_1.default.createElement(SeparatorLine_1.SeparatorLine, null) : null));
|
|
20
20
|
}
|
|
@@ -27,17 +27,15 @@ const Label = (0, styled_components_1.default)(MenuItemLabel_1.MenuItemLabel) `
|
|
|
27
27
|
}
|
|
28
28
|
`;
|
|
29
29
|
const Wrapper = styled_components_1.default.div ``;
|
|
30
|
-
exports.
|
|
30
|
+
exports.Badge = (0, styled_components_1.default)(OperationBadge_1.OperationBadge) `
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
margin-top: 0;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
font-weight: var(--sidebar-item-http-tag-font-weight);
|
|
41
|
-
border-radius: var(--sidebar-item-http-tag-border-radius);
|
|
33
|
+
width: 36px;
|
|
34
|
+
height: 14px;
|
|
35
|
+
font-size: var(--sidebar-item-badge-http-font-size);
|
|
36
|
+
font-family: var(--sidebar-item-badge-http-font-family);
|
|
37
|
+
font-weight: var(--sidebar-item-badge-http-font-weight);
|
|
38
|
+
border-radius: var(--sidebar-item-badge-http-border-radius);
|
|
39
|
+
color: var(--sidebar-item-badge-http-text-color);
|
|
42
40
|
`;
|
|
43
41
|
//# sourceMappingURL=ApiCallItem.js.map
|
|
@@ -6,14 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.FooterWrapper = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
exports.FooterWrapper = styled_components_1.default.div `
|
|
9
|
-
padding: var(--sidebar-footer-padding-vertical) var(--sidebar-footer-padding-horizontal);
|
|
10
|
-
|
|
11
9
|
${({ collapsed }) => collapsed &&
|
|
12
10
|
`
|
|
13
11
|
position: sticky;
|
|
14
12
|
bottom: 0;
|
|
15
|
-
padding: 0;
|
|
16
13
|
`}
|
|
14
|
+
margin: var(--sidebar-offset-top) 0 var(--sidebar-spacing-unit) var(--sidebar-offset-left);
|
|
15
|
+
padding-top: var(--sidebar-spacing-unit);
|
|
16
|
+
padding-right: var(--sidebar-spacing-unit);
|
|
17
|
+
border-top: solid 1px var(--border-color);
|
|
17
18
|
|
|
18
19
|
button {
|
|
19
20
|
margin: 0;
|
|
@@ -10,7 +10,7 @@ exports.HeaderWrapper = styled_components_1.default.div.attrs(({ className }) =>
|
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
12
|
margin: var(--sidebar-offset-top) 0 0 var(--sidebar-offset-left);
|
|
13
|
-
padding-bottom: var(--sidebar-
|
|
14
|
-
border-bottom: solid 1px var(--border-
|
|
13
|
+
padding-bottom: var(--sidebar-spacing-unit);
|
|
14
|
+
border-bottom: solid 1px var(--border-color);
|
|
15
15
|
`;
|
|
16
16
|
//# sourceMappingURL=HeaderWrapper.js.map
|
|
@@ -37,6 +37,7 @@ const MobileSidebarButton_1 = require("../../components/Sidebar/MobileSidebarBut
|
|
|
37
37
|
const MenuContainer_1 = require("../../components/Menu/MenuContainer");
|
|
38
38
|
const SidebarSearch_1 = require("../../components/Search/SidebarSearch");
|
|
39
39
|
const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
40
|
+
const telemetry_1 = require("../../mocks/telemetry");
|
|
40
41
|
const MobileSidebarIcon_1 = require("./MobileSidebarIcon");
|
|
41
42
|
const StyledFooterWrapper = (0, styled_components_1.default)(FooterWrapper_1.FooterWrapper) `
|
|
42
43
|
display: none;
|
|
@@ -65,7 +66,7 @@ function SidebarLayout({ versions, menu, footer, header, growContent, collapsed,
|
|
|
65
66
|
react_1.default.createElement(MobileSidebarIcon_1.MobileSidebarIcon, null)))) : null) : (react_1.default.createElement(Wrapper, { "data-component-name": "Sidebar/SidebarLayout", className: className },
|
|
66
67
|
!(search === null || search === void 0 ? void 0 : search.hide) && (search === null || search === void 0 ? void 0 : search.placement) === 'sidebar' ? react_1.default.createElement(SidebarSearch_1.SidebarSearch, null) : null,
|
|
67
68
|
react_1.default.createElement(Sidebar_1.Sidebar, { animate: true, opened: isOpen },
|
|
68
|
-
header ? react_1.default.createElement(HeaderWrapper_1.HeaderWrapper,
|
|
69
|
+
header ? (react_1.default.createElement(HeaderWrapper_1.HeaderWrapper, { onClick: () => telemetry_1.telemetry.send('back_to_catalog_button_clicked', {}) }, header)) : null,
|
|
69
70
|
versions ? react_1.default.createElement(react_1.default.Fragment, null, versions) : null,
|
|
70
71
|
react_1.default.createElement(MenuContainer_1.MenuContainer, { growContent: growContent }, menu),
|
|
71
72
|
footer && !isOpen ? (react_1.default.createElement(FooterWrapper_1.FooterWrapper, { "data-component-name": "Sidebar/FooterWrapper" }, footer)) : null)))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { SelectProps } from '../Select';
|
|
3
|
-
export declare const VersionPicker: import("styled-components").StyledComponent<({ className, selected, options, dataAttributes, withArrow, triggerEvent, onChange,
|
|
3
|
+
export declare const VersionPicker: import("styled-components").StyledComponent<({ className, selected, options, dataAttributes, withArrow, triggerEvent, onChange, }: SelectProps) => JSX.Element, any, {
|
|
4
4
|
dataAttributes: {
|
|
5
5
|
'data-component-name': string;
|
|
6
6
|
};
|
|
@@ -11,4 +11,3 @@ export * from '../../components/Sidebar/FooterWrapper';
|
|
|
11
11
|
export * from '../../components/Sidebar/HeaderWrapper';
|
|
12
12
|
export * from '../../components/Sidebar/SidebarItemIcon';
|
|
13
13
|
export * from '../../components/Sidebar/VersionPicker';
|
|
14
|
-
export * from '../../components/Sidebar/styledVariables';
|
|
@@ -27,5 +27,4 @@ __exportStar(require("../../components/Sidebar/FooterWrapper"), exports);
|
|
|
27
27
|
__exportStar(require("../../components/Sidebar/HeaderWrapper"), exports);
|
|
28
28
|
__exportStar(require("../../components/Sidebar/SidebarItemIcon"), exports);
|
|
29
29
|
__exportStar(require("../../components/Sidebar/VersionPicker"), exports);
|
|
30
|
-
__exportStar(require("../../components/Sidebar/styledVariables"), exports);
|
|
31
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,49 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.CollapseSidebarButton = void 0;
|
|
30
7
|
const react_1 = __importDefault(require("react"));
|
|
31
|
-
const styled_components_1 = __importStar(require("styled-components"));
|
|
32
8
|
const styled_1 = require("../../components/SidebarActions/styled");
|
|
33
9
|
const CollapseSidebarButton = ({ initialValue, onClick, }) => {
|
|
34
|
-
return (react_1.default.createElement(
|
|
10
|
+
return (react_1.default.createElement(styled_1.StyledToggleRightPanelButton, { title: initialValue ? 'Show sidebar' : 'Hide sidebar', onClick: onClick }, initialValue ? react_1.default.createElement(styled_1.HideLeftPanelSVG, null) : react_1.default.createElement(styled_1.ShowLeftPanelSVG, null)));
|
|
35
11
|
};
|
|
36
12
|
exports.CollapseSidebarButton = CollapseSidebarButton;
|
|
37
|
-
const ToggleButton = (0, styled_components_1.default)(styled_1.StyledToggleRightPanelButton) `
|
|
38
|
-
background: var(--sidebar-collapse-button-background-color);
|
|
39
|
-
fill: var(--sidebar-collapse-button-icon-color);
|
|
40
|
-
margin-right: ${({ collapsed }) => (collapsed ? 0 : 'calc(var(--spacing-unit) * -9)')};
|
|
41
|
-
border: 1px solid var(--sidebar-collapse-button-border-color);
|
|
42
|
-
|
|
43
|
-
${({ collapsed }) => collapsed &&
|
|
44
|
-
(0, styled_components_1.css) `
|
|
45
|
-
background: var(--sidebar-collapse-button-active-background-color);
|
|
46
|
-
border: var(--sidebar-collapse-button-active-border-color);
|
|
47
|
-
`}
|
|
48
|
-
`;
|
|
49
13
|
//# sourceMappingURL=CollapseSidebarButton.js.map
|
|
@@ -9,6 +9,7 @@ const ChangeViewButton_1 = require("../../components/SidebarActions/ChangeViewBu
|
|
|
9
9
|
const ToggleRightPanelButton_1 = require("../../components/SidebarActions/ToggleRightPanelButton");
|
|
10
10
|
const CollapseSidebarButton_1 = require("../../components/SidebarActions/CollapseSidebarButton");
|
|
11
11
|
const styled_1 = require("../../components/SidebarActions/styled");
|
|
12
|
+
const telemetry_1 = require("../../mocks/telemetry");
|
|
12
13
|
var LayoutVariant;
|
|
13
14
|
(function (LayoutVariant) {
|
|
14
15
|
LayoutVariant["STACKED"] = "stacked";
|
|
@@ -17,10 +18,21 @@ var LayoutVariant;
|
|
|
17
18
|
const SidebarActions = ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton = false, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }) => {
|
|
18
19
|
return (react_1.default.createElement(styled_1.ControlsWrap, { className: className, isOpenapiDocs: isOpenapiDocs, isCollapsed: collapsedSidebar, "data-component-name": "Sidebar/Actions" },
|
|
19
20
|
isOpenapiDocs && (react_1.default.createElement(styled_1.ControlsWrapChangeLayoutButtons, { isCollapsed: collapsedSidebar },
|
|
20
|
-
initialShowRightPanelToggle && (react_1.default.createElement(ToggleRightPanelButton_1.ToggleRightPanelButton, { showRightPanelToggle: showRightPanelToggle, onClick:
|
|
21
|
-
|
|
21
|
+
initialShowRightPanelToggle && (react_1.default.createElement(ToggleRightPanelButton_1.ToggleRightPanelButton, { showRightPanelToggle: showRightPanelToggle, onClick: () => {
|
|
22
|
+
onChangeRightPanelViewClick();
|
|
23
|
+
telemetry_1.telemetry.send('sidebar_samples_button_clicked', {});
|
|
24
|
+
} })),
|
|
25
|
+
showChangeLayoutButton && showRightPanelToggle && (react_1.default.createElement(ChangeViewButton_1.ChangeViewButton, { layout: layout, onClick: () => {
|
|
26
|
+
onChangeViewClick();
|
|
27
|
+
telemetry_1.telemetry.send('change_layout_button_clicked', {});
|
|
28
|
+
} })))),
|
|
22
29
|
!collapsedSidebar && requestAccessButton,
|
|
23
|
-
!hideCollapseSidebarButton && (react_1.default.createElement(CollapseSidebarButton_1.CollapseSidebarButton, { initialValue: collapsedSidebar, onClick:
|
|
30
|
+
!hideCollapseSidebarButton && (react_1.default.createElement(CollapseSidebarButton_1.CollapseSidebarButton, { initialValue: collapsedSidebar, onClick: () => {
|
|
31
|
+
onChangeCollapseSidebarClick();
|
|
32
|
+
collapsedSidebar
|
|
33
|
+
? telemetry_1.telemetry.send('sidebar_item_expanded', {})
|
|
34
|
+
: telemetry_1.telemetry.send('sidebar_item_collapsed', {});
|
|
35
|
+
} }))));
|
|
24
36
|
};
|
|
25
37
|
exports.SidebarActions = SidebarActions;
|
|
26
38
|
//# sourceMappingURL=SidebarActions.js.map
|
|
@@ -30,11 +30,11 @@ exports.ControlsWrapChangeLayoutButtons = exports.ControlsWrap = exports.ChangeV
|
|
|
30
30
|
const react_1 = __importDefault(require("react"));
|
|
31
31
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
exports.ShowLeftPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
33
|
-
react_1.default.createElement("path", { d: "M4.375 7L8.75 2.625L9.3625 3.2375L5.6 7L9.3625 10.7625L8.75 11.375L4.375 7Z", fill: "var(--
|
|
33
|
+
react_1.default.createElement("path", { d: "M4.375 7L8.75 2.625L9.3625 3.2375L5.6 7L9.3625 10.7625L8.75 11.375L4.375 7Z", fill: "var(--color-emphasis-400)" })))) `
|
|
34
34
|
position: absolute;
|
|
35
35
|
`;
|
|
36
36
|
exports.HideLeftPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
37
|
-
react_1.default.createElement("path", { d: "M9.62495 7L5.24995 11.375L4.63745 10.7625L8.39995 7L4.63745 3.2375L5.24995 2.625L9.62495 7Z", fill: "var(--
|
|
37
|
+
react_1.default.createElement("path", { d: "M9.62495 7L5.24995 11.375L4.63745 10.7625L8.39995 7L4.63745 3.2375L5.24995 2.625L9.62495 7Z", fill: "var(--color-emphasis-400)" })))) `
|
|
38
38
|
position: absolute;
|
|
39
39
|
`;
|
|
40
40
|
exports.StyledToggleRightPanelButton = styled_components_1.default.a `
|
|
@@ -52,11 +52,11 @@ exports.StyledToggleRightPanelButton = styled_components_1.default.a `
|
|
|
52
52
|
}
|
|
53
53
|
`;
|
|
54
54
|
exports.HideRightPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
55
|
-
react_1.default.createElement("path", { 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", fill: "
|
|
55
|
+
react_1.default.createElement("path", { 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", fill: "var(--color-emphasis-400)" })))) `
|
|
56
56
|
position: absolute;
|
|
57
57
|
`;
|
|
58
58
|
exports.ShowRightPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
59
|
-
react_1.default.createElement("path", { 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", fill: "
|
|
59
|
+
react_1.default.createElement("path", { 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", fill: "var(--color-emphasis-400)" })))) `
|
|
60
60
|
position: absolute;
|
|
61
61
|
`;
|
|
62
62
|
exports.StyledChangeViewButton = styled_components_1.default.a `
|
|
@@ -75,15 +75,15 @@ exports.StyledChangeViewButton = styled_components_1.default.a `
|
|
|
75
75
|
}
|
|
76
76
|
`;
|
|
77
77
|
exports.ChangeViewSvgRow = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
78
|
-
react_1.default.createElement("path", { d: "M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z", fill: "
|
|
79
|
-
react_1.default.createElement("path", { d: "M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z", fill: "
|
|
80
|
-
react_1.default.createElement("path", { 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", fill: "
|
|
78
|
+
react_1.default.createElement("path", { d: "M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z", fill: "var(--color-emphasis-400)" }),
|
|
79
|
+
react_1.default.createElement("path", { d: "M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z", fill: "var(--color-emphasis-400)" }),
|
|
80
|
+
react_1.default.createElement("path", { 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", fill: "var(--color-emphasis-400)" })))) `
|
|
81
81
|
position: absolute;
|
|
82
82
|
`;
|
|
83
83
|
exports.ChangeViewSvgColumn = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
84
|
-
react_1.default.createElement("path", { d: "M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z", fill: "
|
|
85
|
-
react_1.default.createElement("path", { d: "M5.6875 12.25L5.6875 1.75L4.8125 1.75L4.8125 12.25L5.6875 12.25Z", fill: "
|
|
86
|
-
react_1.default.createElement("path", { 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", fill: "
|
|
84
|
+
react_1.default.createElement("path", { d: "M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z", fill: "var(--color-emphasis-400)" }),
|
|
85
|
+
react_1.default.createElement("path", { d: "M5.6875 12.25L5.6875 1.75L4.8125 1.75L4.8125 12.25L5.6875 12.25Z", fill: "var(--color-emphasis-400)" }),
|
|
86
|
+
react_1.default.createElement("path", { 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", fill: "var(--color-emphasis-400)" })))) `
|
|
87
87
|
position: absolute;
|
|
88
88
|
`;
|
|
89
89
|
exports.ControlsWrap = styled_components_1.default.span `
|
|
@@ -91,19 +91,17 @@ exports.ControlsWrap = styled_components_1.default.span `
|
|
|
91
91
|
justify-content: ${({ isOpenapiDocs }) => (isOpenapiDocs ? 'space-between' : 'flex-end')};
|
|
92
92
|
bottom: 0;
|
|
93
93
|
flex-direction: row;
|
|
94
|
-
gap: var(--spacing-
|
|
94
|
+
gap: var(--spacing-unit);
|
|
95
95
|
align-items: center;
|
|
96
|
-
margin-left:
|
|
96
|
+
margin-left: '15px';
|
|
97
97
|
z-index: 2;
|
|
98
98
|
background: var(--sidebar-background-color);
|
|
99
99
|
|
|
100
100
|
${({ isCollapsed }) => isCollapsed &&
|
|
101
101
|
(0, styled_components_1.css) `
|
|
102
102
|
flex-direction: column;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
padding: var(--sidebar-controls-collapsed-padding-vertical)
|
|
106
|
-
var(--sidebar-controls-collapsed-padding-horizontal);
|
|
103
|
+
gap: 10px;
|
|
104
|
+
padding-bottom: 10px;
|
|
107
105
|
`}
|
|
108
106
|
|
|
109
107
|
${({ theme }) => (0, styled_components_1.css) `
|
|
@@ -34,6 +34,7 @@ const useActiveHeading_1 = require("../../hooks/useActiveHeading");
|
|
|
34
34
|
const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
35
35
|
const hooks_1 = require("../../mocks/hooks");
|
|
36
36
|
const utils_1 = require("../../components/TableOfContent/utils");
|
|
37
|
+
const telemetry_1 = require("../../mocks/telemetry");
|
|
37
38
|
function TableOfContent(props) {
|
|
38
39
|
const { headings, contentWrapper, className } = props;
|
|
39
40
|
const sidebar = React.useRef(null);
|
|
@@ -58,7 +59,7 @@ function TableOfContent(props) {
|
|
|
58
59
|
return null;
|
|
59
60
|
}
|
|
60
61
|
const href = '#' + heading.id;
|
|
61
|
-
return (React.createElement(MenuItem, { key: href + idx, href: href, depth: heading.depth - leastDepth + 1 || 0, className: activeHeadingId === heading.id ? 'active' : '', dangerouslySetInnerHTML: { __html: heading.value || '' }, "data-cy": `toc-${heading.value}
|
|
62
|
+
return (React.createElement(MenuItem, { key: href + idx, href: href, depth: heading.depth - leastDepth + 1 || 0, className: activeHeadingId === heading.id ? 'active' : '', dangerouslySetInnerHTML: { __html: heading.value || '' }, "data-cy": `toc-${heading.value}`, onClick: () => telemetry_1.telemetry.send('toc_item_clicked', {}) }));
|
|
62
63
|
})))));
|
|
63
64
|
}
|
|
64
65
|
exports.TableOfContent = TableOfContent;
|
|
@@ -68,12 +69,11 @@ const TocHeader = styled_components_1.default.div `
|
|
|
68
69
|
font-weight: var(--toc-heading-font-weight);
|
|
69
70
|
padding: var(--toc-item-padding-vertical) var(--toc-item-padding-horizontal);
|
|
70
71
|
color: var(--toc-heading-text-color);
|
|
71
|
-
text-transform:
|
|
72
|
+
text-transform: uppercase;
|
|
72
73
|
`;
|
|
73
74
|
const MenuItem = styled_components_1.default.a `
|
|
74
75
|
display: block;
|
|
75
76
|
color: var(--toc-item-text-color);
|
|
76
|
-
font-weight: var(--toc-item-font-weight);
|
|
77
77
|
background-color: var(--toc-item-background-color);
|
|
78
78
|
cursor: pointer;
|
|
79
79
|
font-size: var(--toc-item-font-size);
|
|
@@ -87,6 +87,7 @@ const MenuItem = styled_components_1.default.a `
|
|
|
87
87
|
:hover,
|
|
88
88
|
&.active {
|
|
89
89
|
color: var(--toc-item-active-text-color);
|
|
90
|
+
background-color: var(--toc-item-active-background-color);
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
:empty {
|
|
@@ -107,6 +108,7 @@ const TableOfContentItems = styled_components_1.default.div `
|
|
|
107
108
|
position: sticky;
|
|
108
109
|
top: calc(var(--navbar-height) + var(--toc-offset-top));
|
|
109
110
|
max-height: calc(100vh - var(--navbar-height) - var(--toc-offset-top));
|
|
111
|
+
border-left: 1px solid var(--toc-border-color);
|
|
110
112
|
overflow-y: auto;
|
|
111
113
|
width: var(--toc-width);
|
|
112
114
|
`;
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../components/TableOfContent/TableOfContent"), exports);
|
|
18
|
-
__exportStar(require("../../components/TableOfContent/styledVariables"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -22,7 +22,7 @@ const TabItem = styled_components_1.default.li `
|
|
|
22
22
|
background-color: var(--background-color);
|
|
23
23
|
border: solid var(--md-tabs-active-tab-border-color);
|
|
24
24
|
border-width: 0 0 1px 0;
|
|
25
|
-
color: var(--text-
|
|
25
|
+
color: var(--text-color);
|
|
26
26
|
`
|
|
27
27
|
: `
|
|
28
28
|
&:hover {
|
|
@@ -59,7 +59,7 @@ const TabList = styled_components_1.default.ol `
|
|
|
59
59
|
color: var(--md-tabs-tab-text-color);
|
|
60
60
|
padding: 0;
|
|
61
61
|
margin-block-end: 0;
|
|
62
|
-
border: solid var(--
|
|
62
|
+
border: solid var(--color-secondary-400);
|
|
63
63
|
border-width: 0 0 1px 0;
|
|
64
64
|
|
|
65
65
|
li[class^='Tab__TabItem'] {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Tags = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const Highlight_1 = require("../../ui/Highlight");
|
|
10
|
+
function Tags({ tags, className }) {
|
|
11
|
+
return (react_1.default.createElement(TagsWrapper, { className: className }, tags.map((tag) => (react_1.default.createElement(Tag, { key: tag, className: 'tag-' + slug(tag) },
|
|
12
|
+
react_1.default.createElement(Highlight_1.Highlight, null, tag))))));
|
|
13
|
+
}
|
|
14
|
+
exports.Tags = Tags;
|
|
15
|
+
const TagsWrapper = styled_components_1.default.div `
|
|
16
|
+
margin-top: 16px;
|
|
17
|
+
`;
|
|
18
|
+
const Tag = styled_components_1.default.div `
|
|
19
|
+
display: inline-block;
|
|
20
|
+
background-color: #d3f4ef;
|
|
21
|
+
color: #000;
|
|
22
|
+
padding: 2px 5px;
|
|
23
|
+
border-radius: var(--border-radius);
|
|
24
|
+
margin-right: 5px;
|
|
25
|
+
margin-bottom: 5px;
|
|
26
|
+
font-size: 0.8em;
|
|
27
|
+
`;
|
|
28
|
+
// TODO: import from portal
|
|
29
|
+
function slug(str) {
|
|
30
|
+
return str.replace(/\s/g, '-').toLowerCase();
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=Tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tags';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("
|
|
17
|
+
__exportStar(require("./Tags"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -12,7 +12,7 @@ exports.TileText = styled_components_1.default.span.attrs(({ className }) => ({
|
|
|
12
12
|
display: inline-block;
|
|
13
13
|
font-weight: var(--font-weight-regular);
|
|
14
14
|
overflow: hidden;
|
|
15
|
-
color: ${(props) => props.color || 'var(--text-
|
|
15
|
+
color: ${(props) => props.color || 'var(--text-color)'};
|
|
16
16
|
line-height: 1.25;
|
|
17
17
|
font-family: var(--font-family-base);
|
|
18
18
|
`;
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../components/Tooltip/Tooltip"), exports);
|
|
18
|
-
__exportStar(require("../../components/Tooltip/styledVariables"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -9,7 +9,7 @@ exports.Typography = styled_components_1.default.div.attrs(({ className }) => ({
|
|
|
9
9
|
'data-component-name': 'Typography/Typography',
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
|
-
color: ${({ color }) => color || 'var(--text-
|
|
12
|
+
color: ${({ color }) => color || 'var(--text-color)'};
|
|
13
13
|
font-family: ${({ fontFamily }) => fontFamily || 'var(--font-family-base)'};
|
|
14
14
|
font-size: ${({ fontSize }) => fontSize || 'var(--font-size-base)'};
|
|
15
15
|
font-style: ${({ fontStyle }) => fontStyle};
|
|
@@ -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';
|
package/lib/components/index.js
CHANGED
|
@@ -32,7 +32,7 @@ __exportStar(require("./OpenApiDocs/hooks/OpenApiTryItSecurityPanel"), exports);
|
|
|
32
32
|
__exportStar(require("./Tooltip"), exports);
|
|
33
33
|
__exportStar(require("./Panel"), exports);
|
|
34
34
|
__exportStar(require("./Feedback"), exports);
|
|
35
|
-
__exportStar(require("./
|
|
35
|
+
__exportStar(require("./OperationBadge"), exports);
|
|
36
36
|
__exportStar(require("./TableOfContent"), exports);
|
|
37
37
|
__exportStar(require("./Profile"), exports);
|
|
38
38
|
__exportStar(require("./ColorModeSwitcher"), exports);
|
|
@@ -41,6 +41,7 @@ __exportStar(require("./Markdown"), exports);
|
|
|
41
41
|
__exportStar(require("./OpenApiDocs"), exports);
|
|
42
42
|
__exportStar(require("./SidebarActions"), exports);
|
|
43
43
|
__exportStar(require("./Filter"), exports);
|
|
44
|
+
__exportStar(require("./Tags"), exports);
|
|
44
45
|
__exportStar(require("./Tabs"), exports);
|
|
45
46
|
__exportStar(require("./Menu"), exports);
|
|
46
47
|
__exportStar(require("./Separator"), exports);
|
package/lib/config.d.ts
CHANGED
|
@@ -592,9 +592,6 @@ export declare const themeConfigSchema: {
|
|
|
592
592
|
readonly image: {
|
|
593
593
|
readonly type: "string";
|
|
594
594
|
};
|
|
595
|
-
readonly srcSet: {
|
|
596
|
-
readonly type: "string";
|
|
597
|
-
};
|
|
598
595
|
readonly altText: {
|
|
599
596
|
readonly type: "string";
|
|
600
597
|
};
|
|
@@ -1906,9 +1903,6 @@ export declare const productThemeOverrideSchema: {
|
|
|
1906
1903
|
readonly image: {
|
|
1907
1904
|
readonly type: "string";
|
|
1908
1905
|
};
|
|
1909
|
-
readonly srcSet: {
|
|
1910
|
-
readonly type: "string";
|
|
1911
|
-
};
|
|
1912
1906
|
readonly altText: {
|
|
1913
1907
|
readonly type: "string";
|
|
1914
1908
|
};
|