@redocly/theme 0.18.2 → 0.18.3-patch.1
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 +7 -2
- package/lib/I18n/LanguagePicker.js +11 -3
- package/lib/I18n/index.d.ts +1 -0
- package/lib/I18n/index.js +15 -0
- package/lib/I18n/styledVariables.d.ts +1 -0
- package/lib/I18n/styledVariables.js +39 -0
- package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -0
- package/lib/components/Breadcrumbs/Breadcrumb.js +4 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.js +9 -2
- package/lib/components/Breadcrumbs/index.d.ts +1 -0
- package/lib/components/Breadcrumbs/index.js +1 -0
- package/lib/components/Breadcrumbs/styledVariables.d.ts +1 -0
- package/lib/components/Breadcrumbs/styledVariables.js +19 -0
- package/lib/components/Button/Button.d.ts +6 -3
- package/lib/components/Button/Button.js +41 -41
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Button/styledVariables.d.ts +1 -0
- package/lib/components/Button/styledVariables.js +107 -0
- package/lib/components/Catalog/Catalog.d.ts +1 -0
- package/lib/components/Catalog/Catalog.js +100 -97
- package/lib/components/Catalog/CatalogCard.js +73 -58
- package/lib/components/Catalog/index.d.ts +4 -3
- package/lib/components/Catalog/index.js +4 -3
- package/lib/components/Catalog/styledVariables.d.ts +1 -0
- package/lib/components/Catalog/styledVariables.js +96 -0
- package/lib/components/Catalog/useCatalog.js +12 -1
- package/lib/components/CodeBlock/CodeBlockContainer.js +38 -10
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +3 -4
- package/lib/components/CodeBlock/CodeBlockControlButton.js +5 -19
- package/lib/components/CodeBlock/CodeBlockControls.js +14 -7
- package/lib/components/CodeBlock/index.d.ts +1 -0
- package/lib/components/CodeBlock/index.js +1 -0
- package/lib/components/CodeBlock/styledVariables.d.ts +1 -0
- package/lib/components/CodeBlock/styledVariables.js +92 -0
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +2 -1
- package/lib/components/Dropdown/Dropdown.d.ts +9 -3
- package/lib/components/Dropdown/Dropdown.js +7 -4
- package/lib/components/Dropdown/index.d.ts +1 -0
- package/lib/components/Dropdown/index.js +1 -0
- package/lib/components/Dropdown/styledVariables.d.ts +1 -0
- package/lib/components/Dropdown/styledVariables.js +30 -0
- package/lib/components/EditPageButton/EditPageButton.js +7 -2
- package/lib/components/Feedback/Comment.js +5 -0
- package/lib/components/Feedback/Feedback.js +13 -3
- package/lib/components/Feedback/Rating.js +5 -1
- package/lib/components/Feedback/Reasons.js +6 -1
- package/lib/components/Feedback/Sentiment.js +11 -2
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.js +104 -78
- package/lib/components/Filter/FilterContent.d.ts +11 -0
- package/lib/components/Filter/FilterContent.js +59 -0
- package/lib/components/Filter/FilterPopover.d.ts +11 -0
- package/lib/components/Filter/FilterPopover.js +109 -0
- package/lib/components/Filter/FilterTag.d.ts +7 -0
- package/lib/components/Filter/FilterTag.js +33 -0
- package/lib/components/Filter/FilterTags.d.ts +7 -0
- package/lib/components/Filter/FilterTags.js +29 -0
- package/lib/components/Filter/index.d.ts +2 -0
- package/lib/components/Filter/index.js +2 -0
- package/lib/components/Filter/styledVariables.d.ts +1 -0
- package/lib/components/Filter/styledVariables.js +112 -0
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +4 -3
- package/lib/components/Footer/Footer.js +27 -10
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +54 -63
- package/lib/components/Footer/FooterColumns.js +6 -4
- package/lib/components/Footer/FooterCopyright.js +11 -6
- package/lib/components/Footer/index.d.ts +1 -0
- package/lib/components/Footer/index.js +1 -0
- package/lib/components/Footer/styledVariables.d.ts +1 -0
- package/lib/components/Footer/styledVariables.js +61 -0
- package/lib/components/Image/Image.d.ts +9 -0
- package/lib/components/Image/Image.js +31 -0
- package/lib/components/Image/index.d.ts +1 -0
- package/lib/components/{Tags → Image}/index.js +1 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/LastUpdated/index.d.ts +1 -0
- package/lib/components/{OperationBadge → LastUpdated}/index.js +1 -1
- package/lib/components/LastUpdated/styledVariables.d.ts +1 -0
- package/lib/components/LastUpdated/styledVariables.js +11 -0
- package/lib/components/Markdown/MarkdownWrapper.js +2 -4
- package/lib/components/Markdown/Mermaid.js +1 -1
- package/lib/components/Markdown/index.d.ts +1 -0
- package/lib/components/Markdown/index.js +1 -0
- package/lib/components/Markdown/styledVariables.d.ts +2 -0
- package/lib/components/Markdown/styledVariables.js +221 -0
- package/lib/components/Menu/Menu.js +5 -7
- package/lib/components/Menu/MenuGroup.js +12 -7
- package/lib/components/Menu/MenuItemLabel.js +9 -13
- package/lib/components/Menu/MenuLinkItem.js +2 -1
- package/lib/components/Menu/MobileMenu.js +20 -25
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/index.d.ts +1 -0
- package/lib/components/Menu/index.js +1 -0
- package/lib/components/Menu/styledVariables.d.ts +2 -0
- package/lib/components/Menu/styledVariables.js +101 -0
- package/lib/components/Navbar/Navbar.js +10 -11
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +14 -6
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +1 -0
- package/lib/components/Navbar/index.js +1 -0
- package/lib/components/Navbar/styledVariables.d.ts +1 -0
- package/lib/components/Navbar/styledVariables.js +43 -0
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +4 -1
- package/lib/components/NavbarLogo/NavbarLogo.js +14 -5
- package/lib/components/NavbarLogo/index.d.ts +1 -0
- package/lib/components/NavbarLogo/index.js +1 -0
- package/lib/components/NavbarLogo/styledVariables.d.ts +1 -0
- package/lib/components/NavbarLogo/styledVariables.js +18 -0
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/Panel/PanelHeader.js +1 -0
- package/lib/components/Panel/PanelHeaderTitle.js +0 -4
- package/lib/components/Panel/index.d.ts +1 -0
- package/lib/components/Panel/index.js +1 -0
- package/lib/components/Panel/styledVariables.d.ts +2 -0
- package/lib/components/Panel/styledVariables.js +481 -0
- package/lib/components/Product/index.d.ts +1 -0
- package/lib/components/Product/index.js +1 -0
- package/lib/components/Product/styledVariables.d.ts +2 -0
- package/lib/components/Product/styledVariables.js +41 -0
- package/lib/components/Profile/LoginLink.js +5 -3
- package/lib/components/{Navbar → Profile}/MobileUserProfile.js +18 -26
- package/lib/components/Profile/Profile.js +3 -22
- package/lib/components/Profile/UserProfile.js +25 -9
- package/lib/components/Profile/UserProfileData.d.ts +9 -0
- package/lib/components/Profile/UserProfileData.js +35 -0
- package/lib/components/Profile/index.d.ts +1 -0
- package/lib/components/Profile/index.js +15 -0
- package/lib/components/Profile/styledVariables.d.ts +2 -0
- package/lib/components/Profile/styledVariables.js +55 -0
- package/lib/components/Search/CancelSearch.js +2 -14
- package/lib/components/Search/ProductTag.js +8 -8
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +0 -2
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +14 -17
- package/lib/components/Search/SearchTrigger.js +4 -5
- package/lib/components/Search/ShortcutKey.js +1 -5
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +1 -0
- package/lib/components/Search/index.js +1 -0
- package/lib/components/Search/styledVariables.d.ts +1 -0
- package/lib/components/Search/styledVariables.js +98 -0
- package/lib/components/Select/Select.d.ts +10 -3
- package/lib/components/Select/Select.js +9 -6
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Select/index.js +1 -0
- package/lib/components/Select/styledVariables.d.ts +1 -0
- package/lib/components/Select/styledVariables.js +33 -0
- package/lib/components/Separator/Separator.js +11 -3
- package/lib/components/Separator/SeparatorItem.js +5 -9
- package/lib/components/Separator/SeparatorLine.js +7 -3
- package/lib/components/Sidebar/ApiCallItem.d.ts +2 -6
- package/lib/components/Sidebar/ApiCallItem.js +17 -13
- package/lib/components/Sidebar/FooterWrapper.js +3 -4
- 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 +1 -0
- package/lib/components/Sidebar/index.js +1 -0
- package/lib/components/Sidebar/styledVariables.d.ts +2 -0
- package/lib/components/Sidebar/styledVariables.js +215 -0
- package/lib/components/Sidebar/types.d.ts +1 -0
- package/lib/components/SidebarActions/CollapseSidebarButton.js +41 -1
- package/lib/components/SidebarActions/SidebarActions.js +15 -3
- package/lib/components/SidebarActions/styled.js +29 -21
- package/lib/components/TableOfContent/TableOfContent.js +4 -4
- package/lib/components/TableOfContent/index.d.ts +1 -0
- package/lib/components/TableOfContent/index.js +1 -0
- package/lib/components/TableOfContent/styledVariables.d.ts +1 -0
- package/lib/components/TableOfContent/styledVariables.js +46 -0
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tag/Tag.d.ts +17 -0
- package/lib/components/Tag/Tag.js +39 -0
- package/lib/components/Tag/index.d.ts +2 -0
- package/lib/components/Tag/index.js +19 -0
- package/lib/components/Tag/styledVariables.d.ts +1 -0
- package/lib/components/Tag/styledVariables.js +130 -0
- package/lib/components/Tiles/ThinTile.js +7 -5
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tiles/WideTile.js +10 -8
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/index.js +1 -0
- package/lib/components/Tooltip/styledVariables.d.ts +1 -0
- package/lib/components/Tooltip/styledVariables.js +21 -0
- package/lib/components/Typography/SectionHeader.js +2 -2
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +1 -2
- package/lib/config.d.ts +84 -2
- package/lib/config.js +16 -2
- package/lib/globalStyle.js +599 -1982
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +6 -0
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +28 -0
- package/lib/icons/CheckboxIcon/index.d.ts +1 -0
- package/lib/icons/CheckboxIcon/index.js +6 -0
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +1 -2
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +4 -0
- package/lib/icons/ErrorIcon/ErrorIcon.js +14 -0
- package/lib/icons/ErrorIcon/index.d.ts +1 -0
- package/lib/icons/ErrorIcon/index.js +18 -0
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/FileIcon/FileIcon.d.ts +1 -2
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +4 -0
- package/lib/icons/LanguageIcon/LanguageIcon.js +14 -0
- package/lib/icons/LanguageIcon/index.d.ts +1 -0
- package/lib/icons/LanguageIcon/index.js +18 -0
- package/lib/icons/PlusIcon/PlusIcon.d.ts +5 -0
- package/lib/icons/PlusIcon/PlusIcon.js +16 -0
- package/lib/icons/PlusIcon/index.d.ts +1 -0
- package/lib/icons/PlusIcon/index.js +18 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +4 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +15 -0
- package/lib/icons/PointingArrowIcon/index.d.ts +1 -0
- package/lib/icons/PointingArrowIcon/index.js +18 -0
- package/lib/icons/ReportIcon/ReportIcon.d.ts +1 -2
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/SelectIcon/SelectIcon.d.ts +1 -2
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +4 -0
- package/lib/icons/index.js +4 -0
- package/lib/layouts/Forbidden.js +4 -0
- package/lib/layouts/NotFound.js +4 -0
- package/lib/types/portal/src/shared/types/nav.d.ts +5 -0
- package/lib/ui/ArrowBack.js +0 -1
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +217 -84
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/tags-parser.d.ts +1 -0
- package/lib/utils/tags-parser.js +10 -0
- package/package.json +2 -2
- package/src/I18n/LanguagePicker.tsx +29 -4
- package/src/I18n/index.ts +1 -0
- package/src/I18n/styledVariables.ts +36 -0
- package/src/components/Breadcrumbs/Breadcrumb.tsx +10 -3
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +14 -2
- package/src/components/Breadcrumbs/index.ts +1 -0
- package/src/components/Breadcrumbs/styledVariables.ts +16 -0
- package/src/components/Button/Button.tsx +53 -47
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/styledVariables.ts +104 -0
- package/src/components/Catalog/Catalog.tsx +124 -117
- package/src/components/Catalog/CatalogCard.tsx +86 -60
- package/src/components/Catalog/index.ts +4 -0
- package/src/components/Catalog/styledVariables.ts +93 -0
- package/src/components/Catalog/useCatalog.ts +13 -1
- package/src/components/CodeBlock/CodeBlockContainer.tsx +17 -9
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +6 -19
- package/src/components/CodeBlock/CodeBlockControls.tsx +14 -6
- package/src/components/CodeBlock/index.ts +1 -0
- package/src/components/CodeBlock/styledVariables.ts +89 -0
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +3 -1
- package/src/components/Dropdown/Dropdown.tsx +14 -5
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/Dropdown/styledVariables.ts +27 -0
- package/src/components/EditPageButton/EditPageButton.tsx +7 -2
- package/src/components/Feedback/Comment.tsx +5 -0
- package/src/components/Feedback/Feedback.tsx +13 -3
- package/src/components/Feedback/Rating.tsx +5 -1
- package/src/components/Feedback/Reasons.tsx +6 -1
- package/src/components/Feedback/Sentiment.tsx +15 -2
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +130 -94
- package/src/components/Filter/FilterContent.tsx +86 -0
- package/src/components/Filter/FilterPopover.tsx +140 -0
- package/src/components/Filter/FilterTag.tsx +37 -0
- package/src/components/Filter/FilterTags.tsx +39 -0
- package/src/components/Filter/index.ts +2 -0
- package/src/components/Filter/styledVariables.ts +109 -0
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +32 -10
- package/src/components/Footer/FooterColumn.tsx +81 -62
- package/src/components/Footer/FooterColumns.tsx +6 -4
- package/src/components/Footer/FooterCopyright.tsx +13 -7
- package/src/components/Footer/index.ts +1 -0
- package/src/components/Footer/styledVariables.ts +58 -0
- package/src/components/Image/Image.tsx +47 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LastUpdated/index.ts +1 -0
- package/src/components/LastUpdated/styledVariables.ts +8 -0
- package/src/components/Markdown/MarkdownWrapper.tsx +2 -4
- package/src/components/Markdown/Mermaid.tsx +1 -1
- package/src/components/Markdown/index.ts +1 -0
- package/src/components/Markdown/styledVariables.ts +219 -0
- package/src/components/Menu/Menu.tsx +5 -7
- package/src/components/Menu/MenuGroup.tsx +15 -7
- package/src/components/Menu/MenuItemLabel.tsx +9 -13
- package/src/components/Menu/MenuLinkItem.tsx +6 -1
- package/src/components/Menu/MobileMenu.tsx +20 -25
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +1 -0
- package/src/components/Menu/styledVariables.ts +99 -0
- package/src/components/Navbar/Navbar.tsx +10 -11
- package/src/components/Navbar/NavbarItem.tsx +16 -4
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +1 -0
- package/src/components/Navbar/styledVariables.ts +40 -0
- package/src/components/NavbarLogo/NavbarLogo.tsx +25 -10
- package/src/components/NavbarLogo/index.ts +1 -0
- package/src/components/NavbarLogo/styledVariables.ts +15 -0
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +1 -2
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/Panel/PanelHeader.ts +1 -0
- package/src/components/Panel/PanelHeaderTitle.ts +0 -4
- package/src/components/Panel/index.ts +1 -0
- package/src/components/Panel/styledVariables.ts +479 -0
- package/src/components/Product/index.ts +1 -0
- package/src/components/Product/styledVariables.ts +39 -0
- package/src/components/Profile/LoginLink.tsx +9 -3
- package/src/components/{Navbar → Profile}/MobileUserProfile.tsx +24 -31
- package/src/components/Profile/Profile.tsx +1 -24
- package/src/components/Profile/UserProfile.tsx +25 -9
- package/src/components/Profile/UserProfileData.tsx +40 -0
- package/src/components/Profile/index.ts +1 -0
- package/src/components/Profile/styledVariables.ts +53 -0
- package/src/components/Search/CancelSearch.tsx +2 -15
- package/src/components/Search/ProductTag.tsx +8 -8
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +0 -2
- package/src/components/Search/SearchIcon.tsx +10 -5
- package/src/components/Search/SearchItem.tsx +26 -31
- package/src/components/Search/SearchTrigger.tsx +4 -5
- package/src/components/Search/ShortcutKey.tsx +1 -5
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +1 -0
- package/src/components/Search/styledVariables.ts +95 -0
- package/src/components/Select/Select.tsx +20 -7
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/styledVariables.ts +30 -0
- package/src/components/Separator/Separator.tsx +17 -3
- package/src/components/Separator/SeparatorItem.tsx +5 -9
- package/src/components/Separator/SeparatorLine.tsx +7 -3
- package/src/components/Sidebar/ApiCallItem.tsx +17 -13
- package/src/components/Sidebar/FooterWrapper.tsx +3 -4
- package/src/components/Sidebar/HeaderWrapper.tsx +2 -2
- package/src/components/Sidebar/SidebarLayout.tsx +6 -1
- package/src/components/Sidebar/index.ts +1 -0
- package/src/components/Sidebar/styledVariables.ts +213 -0
- package/src/components/Sidebar/types.ts +1 -0
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +22 -2
- package/src/components/SidebarActions/SidebarActions.tsx +18 -3
- package/src/components/SidebarActions/styled.tsx +29 -30
- package/src/components/TableOfContent/TableOfContent.tsx +4 -3
- package/src/components/TableOfContent/index.ts +1 -0
- package/src/components/TableOfContent/styledVariables.ts +43 -0
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tag/Tag.tsx +63 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/Tag/styledVariables.ts +127 -0
- package/src/components/Tiles/ThinTile.tsx +7 -5
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tiles/WideTile.tsx +10 -8
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/styledVariables.ts +18 -0
- package/src/components/Typography/SectionHeader.ts +2 -2
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +1 -2
- package/src/config.ts +20 -2
- package/src/globalStyle.ts +595 -1999
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +64 -0
- package/src/icons/CheckboxIcon/index.ts +1 -0
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +4 -5
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/ErrorIcon/ErrorIcon.tsx +15 -0
- package/src/icons/ErrorIcon/index.ts +1 -0
- package/src/icons/ExpandIcon/ExpandIcon.tsx +5 -6
- package/src/icons/FileIcon/FileIcon.tsx +2 -3
- package/src/icons/LanguageIcon/LanguageIcon.tsx +15 -0
- package/src/icons/LanguageIcon/index.ts +1 -0
- package/src/icons/PlusIcon/PlusIcon.tsx +25 -0
- package/src/icons/PlusIcon/index.ts +1 -0
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +16 -0
- package/src/icons/PointingArrowIcon/index.ts +1 -0
- package/src/icons/ReportIcon/ReportIcon.tsx +3 -4
- package/src/icons/SelectIcon/SelectIcon.tsx +5 -6
- package/src/icons/index.ts +4 -0
- package/src/layouts/Forbidden.tsx +4 -0
- package/src/layouts/NotFound.tsx +4 -0
- package/src/types/portal/src/shared/types/nav.ts +5 -0
- package/src/ui/ArrowBack.tsx +0 -1
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +217 -84
- package/src/utils/index.ts +1 -0
- package/src/utils/tags-parser.ts +8 -0
- package/lib/components/OperationBadge/OperationBadge.d.ts +0 -6
- package/lib/components/OperationBadge/OperationBadge.js +0 -68
- package/lib/components/OperationBadge/index.d.ts +0 -1
- package/lib/components/Tags/Tags.d.ts +0 -5
- package/lib/components/Tags/Tags.js +0 -32
- package/lib/components/Tags/index.d.ts +0 -1
- package/src/components/Catalog/index.tsx +0 -3
- package/src/components/OperationBadge/OperationBadge.ts +0 -62
- package/src/components/OperationBadge/index.ts +0 -1
- package/src/components/Tags/Tags.tsx +0 -36
- package/src/components/Tags/index.ts +0 -1
- /package/lib/components/{Navbar → Profile}/MobileUserProfile.d.ts +0 -0
|
@@ -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(--text-secondary)" })))) `
|
|
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(--text-secondary)" })))) `
|
|
38
38
|
position: absolute;
|
|
39
39
|
`;
|
|
40
40
|
exports.StyledToggleRightPanelButton = styled_components_1.default.a `
|
|
@@ -44,19 +44,22 @@ exports.StyledToggleRightPanelButton = styled_components_1.default.a `
|
|
|
44
44
|
cursor: pointer;
|
|
45
45
|
z-index: 1;
|
|
46
46
|
/* Rectangle 201 */
|
|
47
|
-
border-radius: var(--border-radius);
|
|
48
|
-
padding: var(--spacing-
|
|
47
|
+
border-radius: var(--border-radius-md);
|
|
48
|
+
padding: var(--spacing-xs);
|
|
49
|
+
height: var(--control-height-base);
|
|
50
|
+
width: var(--control-height-base);
|
|
51
|
+
border: 1px solid var(--border-primary);
|
|
49
52
|
|
|
50
53
|
&:hover {
|
|
51
|
-
background-color: var(--sidebar-item-
|
|
54
|
+
background-color: var(--sidebar-item-hover-background-color);
|
|
52
55
|
}
|
|
53
56
|
`;
|
|
54
57
|
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: "
|
|
58
|
+
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: "currentColor" })))) `
|
|
56
59
|
position: absolute;
|
|
57
60
|
`;
|
|
58
61
|
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: "
|
|
62
|
+
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: "currentColor" })))) `
|
|
60
63
|
position: absolute;
|
|
61
64
|
`;
|
|
62
65
|
exports.StyledChangeViewButton = styled_components_1.default.a `
|
|
@@ -65,25 +68,28 @@ exports.StyledChangeViewButton = styled_components_1.default.a `
|
|
|
65
68
|
justify-content: center;
|
|
66
69
|
align-items: center;
|
|
67
70
|
cursor: pointer;
|
|
68
|
-
border-radius: var(--border-radius);
|
|
71
|
+
border-radius: var(--border-radius-md);
|
|
72
|
+
background: var(--bg-overlay);
|
|
69
73
|
z-index: 1;
|
|
70
74
|
/* Rectangle 201 */
|
|
71
|
-
padding: var(--spacing-
|
|
75
|
+
padding: var(--spacing-xs);
|
|
76
|
+
height: var(--control-height-base);
|
|
77
|
+
width: var(--control-height-base);
|
|
72
78
|
|
|
73
79
|
&:hover {
|
|
74
|
-
background-color: var(--sidebar-item-
|
|
80
|
+
background-color: var(--sidebar-item-hover-background-color);
|
|
75
81
|
}
|
|
76
82
|
`;
|
|
77
83
|
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: "
|
|
84
|
+
react_1.default.createElement("path", { d: "M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z", fill: "currentColor" }),
|
|
85
|
+
react_1.default.createElement("path", { d: "M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z", fill: "currentColor" }),
|
|
86
|
+
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: "currentColor" })))) `
|
|
81
87
|
position: absolute;
|
|
82
88
|
`;
|
|
83
89
|
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: "
|
|
90
|
+
react_1.default.createElement("path", { d: "M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z", fill: "currentColor" }),
|
|
91
|
+
react_1.default.createElement("path", { d: "M5.6875 12.25L5.6875 1.75L4.8125 1.75L4.8125 12.25L5.6875 12.25Z", fill: "currentColor" }),
|
|
92
|
+
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: "currentColor" })))) `
|
|
87
93
|
position: absolute;
|
|
88
94
|
`;
|
|
89
95
|
exports.ControlsWrap = styled_components_1.default.span `
|
|
@@ -91,17 +97,19 @@ exports.ControlsWrap = styled_components_1.default.span `
|
|
|
91
97
|
justify-content: ${({ isOpenapiDocs }) => (isOpenapiDocs ? 'space-between' : 'flex-end')};
|
|
92
98
|
bottom: 0;
|
|
93
99
|
flex-direction: row;
|
|
94
|
-
gap: var(--spacing-
|
|
100
|
+
gap: var(--spacing-xs);
|
|
95
101
|
align-items: center;
|
|
96
|
-
margin-left:
|
|
102
|
+
margin-left: var(--sidebar-controls-margin-left);
|
|
97
103
|
z-index: 2;
|
|
98
104
|
background: var(--sidebar-background-color);
|
|
99
105
|
|
|
100
106
|
${({ isCollapsed }) => isCollapsed &&
|
|
101
107
|
(0, styled_components_1.css) `
|
|
102
108
|
flex-direction: column;
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
margin-left: 0;
|
|
110
|
+
gap: var(--sidebar-controls-collapsed-gap);
|
|
111
|
+
padding: var(--sidebar-controls-collapsed-padding-vertical)
|
|
112
|
+
var(--sidebar-controls-collapsed-padding-horizontal);
|
|
105
113
|
`}
|
|
106
114
|
|
|
107
115
|
${({ theme }) => (0, styled_components_1.css) `
|
|
@@ -118,7 +126,7 @@ exports.ControlsWrapChangeLayoutButtons = styled_components_1.default.span `
|
|
|
118
126
|
display: flex;
|
|
119
127
|
bottom: 0;
|
|
120
128
|
flex-direction: ${({ isCollapsed }) => (isCollapsed ? 'column-reverse' : 'row')};
|
|
121
|
-
gap: ${({ isCollapsed }) => (isCollapsed ? '10px' : 'var(--spacing-
|
|
129
|
+
gap: ${({ isCollapsed }) => (isCollapsed ? '10px' : 'var(--spacing-xs)')};
|
|
122
130
|
align-items: center;
|
|
123
131
|
`;
|
|
124
132
|
//# sourceMappingURL=styled.js.map
|
|
@@ -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,11 +69,12 @@ 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: var(--toc-heading-text-transform);
|
|
72
73
|
`;
|
|
73
74
|
const MenuItem = styled_components_1.default.a `
|
|
74
75
|
display: block;
|
|
75
76
|
color: var(--toc-item-text-color);
|
|
77
|
+
font-weight: var(--toc-item-font-weight);
|
|
76
78
|
background-color: var(--toc-item-background-color);
|
|
77
79
|
cursor: pointer;
|
|
78
80
|
font-size: var(--toc-item-font-size);
|
|
@@ -86,7 +88,6 @@ const MenuItem = styled_components_1.default.a `
|
|
|
86
88
|
:hover,
|
|
87
89
|
&.active {
|
|
88
90
|
color: var(--toc-item-active-text-color);
|
|
89
|
-
background-color: var(--toc-item-active-background-color);
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
:empty {
|
|
@@ -107,7 +108,6 @@ 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));
|
|
110
|
-
border-left: 1px solid var(--toc-border-color);
|
|
111
111
|
overflow-y: auto;
|
|
112
112
|
width: var(--toc-width);
|
|
113
113
|
`;
|
|
@@ -15,4 +15,5 @@ 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);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toc: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toc = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.toc = (0, styled_components_1.css) `
|
|
6
|
+
/**
|
|
7
|
+
* @tokens TOC
|
|
8
|
+
* */
|
|
9
|
+
|
|
10
|
+
--toc-width: 240px;
|
|
11
|
+
--toc-background-color: transparent;
|
|
12
|
+
|
|
13
|
+
--toc-spacing-unit: var(--spacing-xs);
|
|
14
|
+
--toc-offset-top: var(--toc-spacing-unit);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @tokens TOC item typography
|
|
18
|
+
*/
|
|
19
|
+
--toc-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
20
|
+
--toc-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @tokens TOC item
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
--toc-item-text-color: var(--text-description); // @presenter Color
|
|
27
|
+
--toc-item-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
28
|
+
--toc-item-active-text-color: var(--text-primary); // @presenter Color
|
|
29
|
+
--toc-item-background-color: transparent; // @presenter Color
|
|
30
|
+
--toc-item-nested-offset: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
31
|
+
--toc-item-padding-vertical: var(--toc-spacing-unit); // @presenter Spacing
|
|
32
|
+
--toc-item-padding-horizontal: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @tokens TOC header
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
--toc-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
39
|
+
--toc-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
40
|
+
--toc-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
41
|
+
--toc-heading-text-color: var(--text-primary); // @presenter Color
|
|
42
|
+
--toc-heading-text-transform: none; // @presenter TextTransform
|
|
43
|
+
|
|
44
|
+
// @tokens End
|
|
45
|
+
`;
|
|
46
|
+
//# sourceMappingURL=styledVariables.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-primary);
|
|
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(--border-primary);
|
|
63
63
|
border-width: 0 0 1px 0;
|
|
64
64
|
|
|
65
65
|
li[class^='Tab__TabItem'] {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type DefaultStatusColor = 'success' | 'processing' | 'error' | 'warning' | 'default';
|
|
3
|
+
type ActionStatusColor = 'approved' | 'declined' | 'pending';
|
|
4
|
+
type SubjectStatusColor = 'active' | 'draft' | 'deprecated';
|
|
5
|
+
type HttpColor = 'get' | 'post' | 'put' | 'delete' | 'option' | 'patch' | 'head' | 'hook' | 'link';
|
|
6
|
+
type StatusColor = DefaultStatusColor | ActionStatusColor | SubjectStatusColor | HttpColor;
|
|
7
|
+
type Color = 'red' | 'green' | 'blue' | 'grey' | 'gold' | 'cyan' | 'magneta' | 'purple' | 'lime' | 'geekblue' | 'yellow';
|
|
8
|
+
interface TagProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
color?: StatusColor | Color | string;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function Tag({ children, className, color, icon, onClick }: TagProps): JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
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.Tag = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
function Tag({ children, className, color, icon, onClick }) {
|
|
10
|
+
return (react_1.default.createElement(TagContainer, { className: className, color: color, onClick: onClick },
|
|
11
|
+
icon ? icon : null,
|
|
12
|
+
children));
|
|
13
|
+
}
|
|
14
|
+
exports.Tag = Tag;
|
|
15
|
+
const TagContainer = styled_components_1.default.div.attrs(({ className, color }) => ({
|
|
16
|
+
'data-component-name': 'Tag/Tag',
|
|
17
|
+
className: (className || '') + ` tag-default ${color ? `tag-${color}` : ''}`,
|
|
18
|
+
})) `
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
text-wrap: nowrap;
|
|
23
|
+
|
|
24
|
+
padding: var(--tag-padding);
|
|
25
|
+
margin: var(--tag-margin);
|
|
26
|
+
gap: var(--tag-gap);
|
|
27
|
+
|
|
28
|
+
font-size: var(--tag-font-size);
|
|
29
|
+
font-family: var(--tag-font-family);
|
|
30
|
+
font-weight: var(--tag-font-weight);
|
|
31
|
+
line-height: var(--tag-line-height);
|
|
32
|
+
box-shadow: var(--tag-box-shadow);
|
|
33
|
+
|
|
34
|
+
color: var(--tag-color);
|
|
35
|
+
background-color: var(--tag-background-color);
|
|
36
|
+
border: var(--tag-border-width) var(--tag-border-style) var(--tag-border-color);
|
|
37
|
+
border-radius: var(--tag-border-radius);
|
|
38
|
+
`;
|
|
39
|
+
//# sourceMappingURL=Tag.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../../components/Tag/Tag"), exports);
|
|
18
|
+
__exportStar(require("../../components/Tag/styledVariables"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tag: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tag = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.tag = (0, styled_components_1.css) `
|
|
6
|
+
/**
|
|
7
|
+
* @tokens Tag borders
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
--tag-border-width: 1px; //@presenter Border
|
|
11
|
+
--tag-border-style: solid; //@presenter Border
|
|
12
|
+
--tag-border-radius: var(--border-radius-xlg); // @presenter BorderRadius
|
|
13
|
+
--tag-box-shadow: none; // @presenter Shadow
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @tokens Tag spacing
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
--tag-padding: 1px 8px; //@presenter Spacing
|
|
20
|
+
--tag-margin: 0 5px 0 0; //@presenter Spacing
|
|
21
|
+
--tag-gap: 5px; //@presenter Spacing
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @tokens Tag typography
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
--tag-font-size: var(--font-size-sm); // @presenter FontSize
|
|
28
|
+
--tag-font-family: inherit; // @presenter FontFamily
|
|
29
|
+
--tag-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
30
|
+
--tag-line-height: var(--line-height-sm);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @tokens Tag icon
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
--tag-icon-width: 1em; // @presenter Spacing
|
|
37
|
+
--tag-icon-height: 1em; // @presenter Spacing
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @tokens Tag colors
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
.tag-grey,
|
|
44
|
+
.tag-draft,
|
|
45
|
+
.tag-schema,
|
|
46
|
+
.tag-default {
|
|
47
|
+
--tag-color: var(--text-primary); // @presenter Color
|
|
48
|
+
--tag-background-color: var(--bg-overlay); // @presenter Color
|
|
49
|
+
--tag-border-color: var(--border-primary); // @presenter Color
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tag-green,
|
|
53
|
+
.tag-success,
|
|
54
|
+
.tag-approved,
|
|
55
|
+
.tag-get {
|
|
56
|
+
--tag-color: var(--color-success-active); // @presenter Color
|
|
57
|
+
--tag-background-color: none; // @presenter Color
|
|
58
|
+
--tag-border-color: var(--color-success-active); // @presenter Color
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tag-red,
|
|
62
|
+
.tag-error,
|
|
63
|
+
.tag-declined,
|
|
64
|
+
.tag-delete {
|
|
65
|
+
--tag-color: var(--color-error-active); // @presenter Color
|
|
66
|
+
--tag-background-color: var(--color-error-bg); // @presenter Color
|
|
67
|
+
--tag-border-color: var(--color-error-active); // @presenter Color
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.tag-gold,
|
|
71
|
+
.tag-warning,
|
|
72
|
+
.tag-deprecated,
|
|
73
|
+
.tag-put {
|
|
74
|
+
--tag-color: var(--color-warning-active); // @presenter Color
|
|
75
|
+
--tag-background-color: none; // @presenter Color
|
|
76
|
+
--tag-border-color: var(--color-warning-active); // @presenter Color
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.tag-blue,
|
|
80
|
+
.tag-processing,
|
|
81
|
+
.tag-post {
|
|
82
|
+
--tag-color: var(--color-info-active); // @presenter Color
|
|
83
|
+
--tag-background-color: none; // @presenter Color
|
|
84
|
+
--tag-border-color: var(--color-info-active); // @presenter Color
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.tag-purple,
|
|
88
|
+
.tag-head {
|
|
89
|
+
--tag-color: var(--color-purple-7); // @presenter Color
|
|
90
|
+
--tag-background-color: none; // @presenter Color
|
|
91
|
+
--tag-border-color: var(--color-purple-7); // @presenter Color
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.tag-cyan,
|
|
95
|
+
.tag-option {
|
|
96
|
+
--tag-color: var(--color-cyan-7); // @presenter Color
|
|
97
|
+
--tag-background-color: none; // @presenter Color
|
|
98
|
+
--tag-border-color: var(--color-cyan-7); // @presenter Color
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.tag-yellow,
|
|
102
|
+
.tag-patch {
|
|
103
|
+
--tag-color: var(--color-yellow-7); // @presenter Color
|
|
104
|
+
--tag-background-color: none; // @presenter Color
|
|
105
|
+
--tag-border-color: var(--color-yellow-7); // @presenter Color
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.tag-geekblue,
|
|
109
|
+
.tag-link {
|
|
110
|
+
--tag-color: var(--color-geekblue-7); // @presenter Color
|
|
111
|
+
--tag-background-color: none; // @presenter Color
|
|
112
|
+
--tag-border-color: var(--color-geekblue-7); // @presenter Color
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.tag-magneta,
|
|
116
|
+
.tag-hook {
|
|
117
|
+
--tag-color: var(--color-magneta-7); // @presenter Color
|
|
118
|
+
--tag-background-color: none; // @presenter Color
|
|
119
|
+
--tag-border-color: var(--color-magneta-7); // @presenter Color
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.tag-lime {
|
|
123
|
+
--tag-color: var(--color-lime-7); // @presenter Color
|
|
124
|
+
--tag-background-color: none; // @presenter Color
|
|
125
|
+
--tag-border-color: var(--color-lime-7); // @presenter Color
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// @tokens End
|
|
129
|
+
`;
|
|
130
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -36,20 +36,20 @@ const TileHeader_1 = require("../../components/Tiles/TileHeader");
|
|
|
36
36
|
const ThinTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
|
-
border-radius:
|
|
40
|
-
box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);
|
|
39
|
+
border-radius: var(--border-radius-lg);
|
|
41
40
|
box-sizing: border-box;
|
|
42
|
-
|
|
43
|
-
padding: 24px;
|
|
41
|
+
padding: var(--spacing-lg);
|
|
44
42
|
margin-bottom: 20px;
|
|
45
43
|
text-decoration: none;
|
|
46
44
|
width: 100%;
|
|
45
|
+
color: var(--text-primary);
|
|
46
|
+
border: 1px solid var(--border-secondary);
|
|
47
47
|
background-color: ${({ bgColor }) => bgColor || 'var(--thin-tile-background-color)'};
|
|
48
48
|
background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
|
|
49
49
|
background-repeat: no-repeat;
|
|
50
50
|
|
|
51
51
|
:hover {
|
|
52
|
-
|
|
52
|
+
border-color: var(--border-primary);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
${({ theme }) => theme.mediaQueries.small} {
|
|
@@ -81,9 +81,11 @@ const ThinTileIcon = styled_components_1.default.img `
|
|
|
81
81
|
`;
|
|
82
82
|
const ThinTileHeader = (0, styled_components_1.default)(TileHeader_1.TileHeader) `
|
|
83
83
|
font-size: 24px;
|
|
84
|
+
font-weight: var(--font-weight-bold);
|
|
84
85
|
text-align: ${({ align }) => align || 'center'};
|
|
85
86
|
`;
|
|
86
87
|
const ThinTileText = (0, styled_components_1.default)(TileText_1.TileText) `
|
|
88
|
+
color: var(--text-secondary);
|
|
87
89
|
font-size: 18px;
|
|
88
90
|
line-height: 1.5;
|
|
89
91
|
flex-shrink: 0;
|
|
@@ -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-base)'};
|
|
16
16
|
line-height: 1.25;
|
|
17
17
|
font-family: var(--font-family-base);
|
|
18
18
|
`;
|
|
@@ -36,21 +36,21 @@ const TileHeader_1 = require("../../components/Tiles/TileHeader");
|
|
|
36
36
|
const WideTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
|
|
37
37
|
display: inline-flex;
|
|
38
38
|
flex-direction: ${({ withIcon }) => (withIcon ? 'column' : 'row')};
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
color: var(--text-primary);
|
|
40
|
+
border: 1px solid var(--border-secondary);
|
|
41
|
+
border-radius: var(--border-radius-lg);
|
|
41
42
|
background-color: ${({ bgColor }) => bgColor || 'var(--wide-tile-background-color)'};
|
|
42
43
|
background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
|
|
43
44
|
background-repeat: no-repeat;
|
|
44
|
-
padding:
|
|
45
|
+
padding: var(--spacing-lg);
|
|
45
46
|
padding-right: ${({ disableArrow }) => (disableArrow ? '24px' : '56px')};
|
|
46
|
-
margin-bottom:
|
|
47
|
+
margin-bottom: var(--spacing-xl);
|
|
47
48
|
box-sizing: border-box;
|
|
48
49
|
position: relative;
|
|
49
50
|
text-decoration: none;
|
|
50
51
|
width: 100%;
|
|
51
|
-
transition: box-shadow 0.25s ease;
|
|
52
52
|
:hover {
|
|
53
|
-
|
|
53
|
+
border-color: var(--border-primary);
|
|
54
54
|
}
|
|
55
55
|
:before {
|
|
56
56
|
content: ${({ disableArrow }) => (disableArrow ? 'none' : '""')};
|
|
@@ -70,17 +70,19 @@ const WideTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
|
|
|
70
70
|
|
|
71
71
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
72
72
|
width: calc(50% - 2em);
|
|
73
|
-
padding:
|
|
74
|
-
padding-right: ${({ disableArrow }) => (disableArrow ? '
|
|
73
|
+
padding: var(--spacing-xl);
|
|
74
|
+
padding-right: ${({ disableArrow }) => (disableArrow ? 'var(--spacing-xl)' : '64px')};
|
|
75
75
|
flex-direction: row;
|
|
76
76
|
max-width: ${({ maxWidth }) => maxWidth};
|
|
77
77
|
}
|
|
78
78
|
`;
|
|
79
79
|
const WideTileHeader = (0, styled_components_1.default)(TileHeader_1.TileHeader) `
|
|
80
80
|
font-size: 24px;
|
|
81
|
+
font-weight: var(--font-weight-bold);
|
|
81
82
|
text-align: ${({ align }) => align || 'left'};
|
|
82
83
|
`;
|
|
83
84
|
const WideTileText = (0, styled_components_1.default)(TileText_1.TileText) `
|
|
85
|
+
color: var(--text-secondary);
|
|
84
86
|
font-size: 18px;
|
|
85
87
|
text-align: ${({ align }) => align || 'left'};
|
|
86
88
|
`;
|
|
@@ -15,4 +15,5 @@ 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);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tooltip: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tooltip = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.tooltip = (0, styled_components_1.css) `
|
|
6
|
+
/**
|
|
7
|
+
* @tokens Tooltip Base
|
|
8
|
+
* @presenter Color
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
--tooltip-text-color: var(--text-secondary);
|
|
12
|
+
--tooltip-background-color: var(--bg-raised);
|
|
13
|
+
|
|
14
|
+
.tooltip-copy-button {
|
|
15
|
+
--tooltip-text-color: var(--text-secondaru);
|
|
16
|
+
--tooltip-background-color: var(--bg-raised);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// @tokens End
|
|
20
|
+
`;
|
|
21
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -9,9 +9,9 @@ exports.SectionHeader = styled_components_1.default.h2.attrs(({ className }) =>
|
|
|
9
9
|
'data-component-name': 'Typography/SectionHeader',
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
|
-
color: var(--h2-color);
|
|
12
|
+
color: var(--h2-text-color);
|
|
13
13
|
font-size: var(--h2-font-size);
|
|
14
|
-
font-weight: var(--
|
|
14
|
+
font-weight: var(--font-weight-regular);
|
|
15
15
|
text-align: center;
|
|
16
16
|
margin: 2.65em 0;
|
|
17
17
|
padding: 0 20px;
|
|
@@ -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-base)'};
|
|
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 './Tag';
|
|
20
20
|
export * from './TableOfContent';
|
|
21
21
|
export * from './Profile';
|
|
22
22
|
export * from './ColorModeSwitcher';
|
|
@@ -25,7 +25,6 @@ export * from './Markdown';
|
|
|
25
25
|
export * from './OpenApiDocs';
|
|
26
26
|
export * from './SidebarActions';
|
|
27
27
|
export * from './Filter';
|
|
28
|
-
export * from './Tags';
|
|
29
28
|
export * from './Tabs';
|
|
30
29
|
export * from './Menu';
|
|
31
30
|
export * from './Separator';
|