@redocly/theme 0.4.15 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{REAMDE.md → README.md} +0 -0
- package/lib/ApiOnboarding/AppCustomAttributes.d.ts +5 -0
- package/lib/ApiOnboarding/AppCustomAttributes.js +8 -0
- package/{Button → lib/Button}/Button.d.ts +0 -0
- package/lib/Button/Button.js +156 -0
- package/{Button → lib/Button}/index.d.ts +0 -0
- package/{Button → lib/Button}/index.js +1 -0
- package/{Cards → lib/Cards}/Card.d.ts +0 -0
- package/lib/Cards/Card.js +36 -0
- package/{Cards → lib/Cards}/CardsBlock.d.ts +0 -0
- package/lib/Cards/CardsBlock.js +15 -0
- package/{CodeBlock → lib/CodeBlock}/CodeBlock.d.ts +0 -0
- package/lib/CodeBlock/CodeBlock.js +103 -0
- package/{CodeBlock → lib/CodeBlock}/index.d.ts +0 -0
- package/{CodeBlock → lib/CodeBlock}/index.js +1 -0
- package/{ColorModeSwitcher → lib/ColorModeSwitcher}/ColorModeSwitcher.d.ts +0 -0
- package/{ColorModeSwitcher → lib/ColorModeSwitcher}/ColorModeSwitcher.js +22 -36
- package/{ColorModeSwitcher → lib/ColorModeSwitcher}/index.d.ts +0 -0
- package/{ColorModeSwitcher → lib/ColorModeSwitcher}/index.js +1 -0
- package/{CopyButton → lib/CopyButton}/CopyButton.d.ts +0 -0
- package/lib/CopyButton/CopyButton.js +50 -0
- package/{CopyButton → lib/CopyButton}/CopyButtonWrapper.d.ts +0 -0
- package/{CopyButton → lib/CopyButton}/CopyButtonWrapper.js +14 -15
- package/{CopyButton → lib/CopyButton}/index.d.ts +0 -0
- package/{CopyButton → lib/CopyButton}/index.js +1 -0
- package/{EditPageButton → lib/EditPageButton}/EditPageButton.d.ts +0 -0
- package/lib/EditPageButton/EditPageButton.js +36 -0
- package/{EditPageButton → lib/EditPageButton}/index.d.ts +0 -0
- package/{EditPageButton → lib/EditPageButton}/index.js +1 -0
- package/{Footer → lib/Footer}/CustomFooter.d.ts +0 -0
- package/lib/Footer/CustomFooter.js +35 -0
- package/{Footer → lib/Footer}/CustomFooterNavItem.d.ts +0 -0
- package/lib/Footer/CustomFooterNavItem.js +33 -0
- package/{Footer → lib/Footer}/Footer.d.ts +0 -0
- package/lib/Footer/Footer.js +35 -0
- package/{Footer → lib/Footer}/FooterColumn.d.ts +0 -0
- package/lib/Footer/FooterColumn.js +54 -0
- package/{Footer → lib/Footer}/FooterColumns.d.ts +0 -0
- package/lib/Footer/FooterColumns.js +44 -0
- package/{Footer → lib/Footer}/FooterCopyright.d.ts +0 -0
- package/lib/Footer/FooterCopyright.js +26 -0
- package/{Footer → lib/Footer}/index.d.ts +0 -0
- package/{Footer → lib/Footer}/index.js +1 -0
- package/{JsonViewer → lib/JsonViewer}/JsonViewer.d.ts +0 -0
- package/lib/JsonViewer/JsonViewer.js +240 -0
- package/{JsonViewer → lib/JsonViewer}/index.d.ts +0 -0
- package/{JsonViewer → lib/JsonViewer}/index.js +1 -0
- package/lib/LastUpdated/LastUpdated.d.ts +14 -0
- package/lib/LastUpdated/LastUpdated.js +52 -0
- package/{Layout → lib/Layout}/PageLayout.d.ts +0 -0
- package/lib/Layout/PageLayout.js +29 -0
- package/{Layout → lib/Layout}/RootLayout.d.ts +0 -0
- package/lib/Layout/RootLayout.js +19 -0
- package/{Layout → lib/Layout}/index.d.ts +0 -0
- package/{Layout → lib/Layout}/index.js +1 -0
- package/{Markdown → lib/Markdown}/Admonition.d.ts +0 -0
- package/lib/Markdown/Admonition.js +56 -0
- package/{Markdown → lib/Markdown}/CodeSample/CodeSample.d.ts +0 -0
- package/lib/Markdown/CodeSample/CodeSample.js +219 -0
- package/{Markdown → lib/Markdown}/CodeSample/index.d.ts +0 -0
- package/{Markdown → lib/Markdown}/CodeSample/index.js +1 -0
- package/{Markdown → lib/Markdown}/ContainerWrapper.d.ts +0 -0
- package/lib/Markdown/ContainerWrapper.js +26 -0
- package/{Markdown → lib/Markdown}/Details.d.ts +0 -0
- package/lib/Markdown/Details.js +17 -0
- package/{Markdown → lib/Markdown}/Heading.d.ts +0 -0
- package/{Markdown → lib/Markdown}/Heading.js +9 -9
- package/{Markdown → lib/Markdown}/MarkdownLayout.d.ts +1 -0
- package/lib/Markdown/MarkdownLayout.js +30 -0
- package/{Markdown → lib/Markdown}/MarkdownWrapper.d.ts +0 -0
- package/lib/Markdown/MarkdownWrapper.js +391 -0
- package/{Markdown → lib/Markdown}/Mermaid.d.ts +0 -0
- package/lib/Markdown/Mermaid.js +19 -0
- package/{Markdown → lib/Markdown}/PageWrapper.d.ts +0 -0
- package/lib/Markdown/PageWrapper.js +15 -0
- package/{Markdown → lib/Markdown}/Sup.d.ts +0 -0
- package/lib/Markdown/Sup.js +14 -0
- package/{Markdown → lib/Markdown}/Tabs/Tab.d.ts +0 -0
- package/lib/Markdown/Tabs/Tab.js +28 -0
- package/{Markdown → lib/Markdown}/Tabs/Tabs.d.ts +0 -0
- package/lib/Markdown/Tabs/Tabs.js +62 -0
- package/{Markdown → lib/Markdown}/Tabs/index.d.ts +0 -0
- package/{Markdown → lib/Markdown}/Tabs/index.js +1 -0
- package/{Markdown → lib/Markdown}/index.d.ts +0 -0
- package/{Markdown → lib/Markdown}/index.js +1 -0
- package/{Navbar → lib/Navbar}/MobileNavbarDropdown.d.ts +0 -0
- package/lib/Navbar/MobileNavbarDropdown.js +30 -0
- package/{Navbar → lib/Navbar}/MobileNavbarItem.d.ts +1 -1
- package/lib/Navbar/MobileNavbarItem.js +106 -0
- package/{Navbar → lib/Navbar}/MobileNavbarMenu.d.ts +0 -0
- package/lib/Navbar/MobileNavbarMenu.js +92 -0
- package/{Navbar → lib/Navbar}/MobileNavbarMenuButton.d.ts +0 -0
- package/lib/Navbar/MobileNavbarMenuButton.js +18 -0
- package/{Navbar → lib/Navbar}/Navbar.d.ts +0 -0
- package/lib/Navbar/Navbar.js +75 -0
- package/{Navbar → lib/Navbar}/NavbarDropdown.d.ts +0 -0
- package/lib/Navbar/NavbarDropdown.js +38 -0
- package/{Navbar → lib/Navbar}/NavbarItem.d.ts +1 -1
- package/lib/Navbar/NavbarItem.js +72 -0
- package/{Navbar → lib/Navbar}/NavbarMenu.d.ts +0 -0
- package/lib/Navbar/NavbarMenu.js +34 -0
- package/{Navbar → lib/Navbar}/index.d.ts +0 -0
- package/{Navbar → lib/Navbar}/index.js +1 -0
- package/{NavbarLogo → lib/NavbarLogo}/NavbarLogo.d.ts +0 -0
- package/lib/NavbarLogo/NavbarLogo.js +24 -0
- package/{NavbarLogo → lib/NavbarLogo}/index.d.ts +0 -0
- package/{NavbarLogo → lib/NavbarLogo}/index.js +1 -0
- package/{OperationBadge → lib/OperationBadge}/OperationBadge.d.ts +0 -0
- package/lib/OperationBadge/OperationBadge.js +68 -0
- package/{OperationBadge → lib/OperationBadge}/index.d.ts +0 -0
- package/{OperationBadge → lib/OperationBadge}/index.js +1 -0
- package/{PageNavigation → lib/PageNavigation}/NextPageLink.d.ts +0 -0
- package/lib/PageNavigation/NextPageLink.js +26 -0
- package/{PageNavigation → lib/PageNavigation}/PageNavigation.d.ts +0 -0
- package/lib/PageNavigation/PageNavigation.js +31 -0
- package/{PageNavigation → lib/PageNavigation}/PreviousPageLink.d.ts +0 -0
- package/lib/PageNavigation/PreviousPageLink.js +26 -0
- package/{PageNavigation → lib/PageNavigation}/index.d.ts +0 -0
- package/{PageNavigation → lib/PageNavigation}/index.js +1 -0
- package/{Panel → lib/Panel}/Panel.d.ts +0 -0
- package/lib/Panel/Panel.js +39 -0
- package/{Panel → lib/Panel}/PanelBody.d.ts +0 -0
- package/lib/Panel/PanelBody.js +59 -0
- package/{Panel → lib/Panel}/PanelComponent.d.ts +1 -1
- package/{Panel → lib/Panel}/PanelComponent.js +21 -36
- package/{Panel → lib/Panel}/PanelHeader.d.ts +0 -0
- package/lib/Panel/PanelHeader.js +33 -0
- package/{Panel → lib/Panel}/PanelHeaderTitle.d.ts +0 -0
- package/lib/Panel/PanelHeaderTitle.js +21 -0
- package/{Panel → lib/Panel}/index.d.ts +0 -0
- package/{Panel → lib/Panel}/index.js +1 -0
- package/{Profile → lib/Profile}/Profile.d.ts +0 -0
- package/lib/Profile/Profile.js +87 -0
- package/{Profile → lib/Profile}/index.d.ts +0 -0
- package/{Profile → lib/Profile}/index.js +1 -0
- package/{SamplesPanelControls → lib/SamplesPanelControls}/SamplesPanelControls.d.ts +0 -0
- package/lib/SamplesPanelControls/SamplesPanelControls.js +74 -0
- package/{SamplesPanelControls → lib/SamplesPanelControls}/index.d.ts +0 -0
- package/{SamplesPanelControls → lib/SamplesPanelControls}/index.js +1 -0
- package/{Search → lib/Search}/Autocomplete.d.ts +0 -0
- package/lib/Search/Autocomplete.js +105 -0
- package/{Search → lib/Search}/ClearIcon.d.ts +0 -0
- package/lib/Search/ClearIcon.js +26 -0
- package/{Search → lib/Search}/Input.d.ts +0 -0
- package/lib/Search/Input.js +30 -0
- package/{Search → lib/Search}/Parameters.d.ts +0 -0
- package/lib/Search/Parameters.js +55 -0
- package/{Search → lib/Search}/Popover.d.ts +0 -0
- package/lib/Search/Popover.js +26 -0
- package/{Search → lib/Search}/Search.d.ts +0 -0
- package/lib/Search/Search.js +27 -0
- package/{Search → lib/Search}/SearchIcon.d.ts +0 -0
- package/lib/Search/SearchIcon.js +27 -0
- package/{Search → lib/Search}/SearchItem.d.ts +0 -0
- package/lib/Search/SearchItem.js +98 -0
- package/{Search → lib/Search}/SidebarSearch.d.ts +0 -0
- package/lib/Search/SidebarSearch.js +20 -0
- package/{Search → lib/Search}/index.d.ts +0 -0
- package/{Search → lib/Search}/index.js +1 -0
- package/{Search → lib/Search}/utils.d.ts +0 -0
- package/{Search → lib/Search}/utils.js +8 -26
- package/{Sidebar → lib/Sidebar}/ApiCallItem.d.ts +0 -0
- package/lib/Sidebar/ApiCallItem.js +34 -0
- package/{Sidebar → lib/Sidebar}/ArrowBack.d.ts +0 -0
- package/lib/Sidebar/ArrowBack.js +22 -0
- package/{Sidebar → lib/Sidebar}/BackButton.d.ts +0 -0
- package/lib/Sidebar/BackButton.js +39 -0
- package/{Sidebar → lib/Sidebar}/Drilldown.d.ts +0 -0
- package/lib/Sidebar/Drilldown.js +43 -0
- package/{Sidebar → lib/Sidebar}/DrilldownMenu.d.ts +0 -0
- package/lib/Sidebar/DrilldownMenu.js +71 -0
- package/{Sidebar → lib/Sidebar}/DrilldownMenuItem.d.ts +0 -0
- package/lib/Sidebar/DrilldownMenuItem.js +42 -0
- package/{Sidebar → lib/Sidebar}/ExternalIcon.d.ts +0 -0
- package/lib/Sidebar/ExternalIcon.js +21 -0
- package/{Sidebar → lib/Sidebar}/Menu.d.ts +0 -0
- package/lib/Sidebar/Menu.js +17 -0
- package/{Sidebar → lib/Sidebar}/MenuContainer.d.ts +0 -0
- package/lib/Sidebar/MenuContainer.js +16 -0
- package/{Sidebar → lib/Sidebar}/MenuGroup.d.ts +0 -0
- package/lib/Sidebar/MenuGroup.js +88 -0
- package/{Sidebar → lib/Sidebar}/MenuItem.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/MenuItem.js +9 -14
- package/{Sidebar → lib/Sidebar}/MenuItemLabel.d.ts +0 -0
- package/lib/Sidebar/MenuItemLabel.js +46 -0
- package/lib/Sidebar/MenuLink.d.ts +4 -0
- package/lib/Sidebar/MenuLink.js +15 -0
- package/{Sidebar → lib/Sidebar}/MenuLinkItem.d.ts +0 -0
- package/lib/Sidebar/MenuLinkItem.js +15 -0
- package/{Sidebar → lib/Sidebar}/MobileSidebarButton.d.ts +0 -0
- package/lib/Sidebar/MobileSidebarButton.js +46 -0
- package/{Sidebar → lib/Sidebar}/Separator.d.ts +0 -0
- package/lib/Sidebar/Separator.js +18 -0
- package/{Sidebar → lib/Sidebar}/SeparatorItem.d.ts +0 -0
- package/lib/Sidebar/SeparatorItem.js +25 -0
- package/{Sidebar → lib/Sidebar}/SeparatorLine.d.ts +0 -0
- package/lib/Sidebar/SeparatorLine.js +15 -0
- package/{Sidebar → lib/Sidebar}/Sidebar.d.ts +0 -0
- package/lib/Sidebar/Sidebar.js +55 -0
- package/{Sidebar → lib/Sidebar}/SidebarLayout.d.ts +0 -0
- package/lib/Sidebar/SidebarLayout.js +31 -0
- package/{Sidebar → lib/Sidebar}/index.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/index.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/DrilldownMenuProps.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/DrilldownMenuProps.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/ItemState.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/ItemState.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/MenuItemProps.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/MenuItemProps.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/MenuStyle.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/MenuStyle.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/NavItem.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/NavItem.js +1 -0
- package/{Sidebar → lib/Sidebar}/types/index.d.ts +0 -0
- package/{Sidebar → lib/Sidebar}/types/index.js +1 -0
- package/{SidebarLogo → lib/SidebarLogo}/SidebarLogo.d.ts +0 -0
- package/lib/SidebarLogo/SidebarLogo.js +31 -0
- package/{SidebarLogo → lib/SidebarLogo}/index.d.ts +0 -0
- package/{SidebarLogo → lib/SidebarLogo}/index.js +1 -0
- package/{SourceCode → lib/SourceCode}/SourceCode.d.ts +0 -0
- package/{SourceCode → lib/SourceCode}/SourceCode.js +14 -34
- package/{SourceCode → lib/SourceCode}/index.d.ts +0 -0
- package/{SourceCode → lib/SourceCode}/index.js +1 -0
- package/{TableOfContent → lib/TableOfContent}/TableOfContent.d.ts +0 -0
- package/lib/TableOfContent/TableOfContent.js +116 -0
- package/{TableOfContent → lib/TableOfContent}/index.d.ts +0 -0
- package/{TableOfContent → lib/TableOfContent}/index.js +1 -0
- package/{TableOfContent → lib/TableOfContent}/utils.d.ts +0 -0
- package/lib/TableOfContent/utils.js +41 -0
- package/{Tooltip → lib/Tooltip}/Tooltip.d.ts +0 -0
- package/lib/Tooltip/Tooltip.js +173 -0
- package/{Tooltip → lib/Tooltip}/index.d.ts +0 -0
- package/{Tooltip → lib/Tooltip}/index.js +1 -0
- package/{Typography → lib/Typography}/CompactTypography.d.ts +0 -0
- package/lib/Typography/CompactTypography.js +14 -0
- package/{Typography → lib/Typography}/Emphasis.d.ts +0 -0
- package/lib/Typography/Emphasis.js +13 -0
- package/{Typography → lib/Typography}/H1.d.ts +0 -0
- package/lib/Typography/H1.js +17 -0
- package/{Typography → lib/Typography}/H2.d.ts +0 -0
- package/lib/Typography/H2.js +17 -0
- package/{Typography → lib/Typography}/H3.d.ts +0 -0
- package/lib/Typography/H3.js +17 -0
- package/{Typography → lib/Typography}/SectionHeader.d.ts +0 -0
- package/lib/Typography/SectionHeader.js +19 -0
- package/{Typography → lib/Typography}/Typography.d.ts +0 -0
- package/lib/Typography/Typography.js +22 -0
- package/{Typography → lib/Typography}/index.d.ts +0 -0
- package/{Typography → lib/Typography}/index.js +1 -0
- package/{globalStyle.d.ts → lib/globalStyle.d.ts} +0 -0
- package/lib/globalStyle.js +1924 -0
- package/{hooks → lib/hooks}/__tests__/mocks/MockIntersectionObserver.d.ts +0 -0
- package/lib/hooks/__tests__/mocks/MockIntersectionObserver.js +79 -0
- package/{hooks → lib/hooks}/index.d.ts +0 -0
- package/{hooks → lib/hooks}/index.js +1 -0
- package/{hooks → lib/hooks}/useActiveHeading.d.ts +0 -0
- package/lib/hooks/useActiveHeading.js +85 -0
- package/{hooks → lib/hooks}/useActiveSectionId.d.ts +0 -0
- package/lib/hooks/useActiveSectionId.js +47 -0
- package/{hooks → lib/hooks}/useControl.d.ts +0 -0
- package/lib/hooks/useControl.js +16 -0
- package/{hooks → lib/hooks}/useDefaultThemeSettings.d.ts +0 -0
- package/{hooks → lib/hooks}/useDefaultThemeSettings.js +3 -2
- package/{hooks → lib/hooks}/useFullHeight.d.ts +0 -0
- package/{hooks → lib/hooks}/useFullHeight.js +13 -12
- package/{hooks → lib/hooks}/useMobileMenu.d.ts +0 -0
- package/lib/hooks/useMobileMenu.js +13 -0
- package/{hooks → lib/hooks}/useMount.d.ts +0 -0
- package/{hooks → lib/hooks}/useMount.js +4 -3
- package/{hooks → lib/hooks}/useNavbarHeight.d.ts +0 -0
- package/lib/hooks/useNavbarHeight.js +21 -0
- package/{hooks → lib/hooks}/useOutsideClick.d.ts +0 -0
- package/{hooks → lib/hooks}/useOutsideClick.js +5 -4
- package/{hooks → lib/hooks}/useUnmount.d.ts +0 -0
- package/{hooks → lib/hooks}/useUnmount.js +5 -4
- package/{icons → lib/icons}/AlertIcon/AlertIcon.d.ts +0 -0
- package/{icons → lib/icons}/AlertIcon/AlertIcon.js +22 -17
- package/{icons → lib/icons}/AlertIcon/index.d.ts +0 -0
- package/{icons → lib/icons}/AlertIcon/index.js +1 -0
- package/{icons → lib/icons}/ArrowIcon/ArrowIcon.d.ts +0 -0
- package/lib/icons/ArrowIcon/ArrowIcon.js +32 -0
- package/{icons → lib/icons}/ArrowIcon/index.d.ts +0 -0
- package/{icons → lib/icons}/ArrowIcon/index.js +1 -0
- package/{icons → lib/icons}/ColorModeIcon/ColorModeIcon.d.ts +0 -0
- package/{icons → lib/icons}/ColorModeIcon/ColorModeIcon.js +10 -11
- package/{icons → lib/icons}/ColorModeIcon/index.d.ts +0 -0
- package/{icons → lib/icons}/ColorModeIcon/index.js +1 -0
- package/{icons → lib/icons}/ShelfIcon/ShelfIcon.d.ts +0 -0
- package/lib/icons/ShelfIcon/ShelfIcon.js +52 -0
- package/{icons → lib/icons}/ShelfIcon/index.d.ts +0 -0
- package/{icons → lib/icons}/ShelfIcon/index.js +1 -0
- package/{icons → lib/icons}/index.d.ts +0 -0
- package/{icons → lib/icons}/index.js +1 -0
- package/{index.d.ts → lib/index.d.ts} +0 -0
- package/{index.js → lib/index.js} +1 -0
- package/{mocks → lib/mocks}/Link.d.ts +0 -0
- package/lib/mocks/Link.js +27 -0
- package/{mocks → lib/mocks}/constants/index.d.ts +0 -0
- package/{mocks → lib/mocks}/constants/index.js +1 -0
- package/{mocks → lib/mocks}/hooks/index.d.ts +0 -0
- package/{mocks → lib/mocks}/hooks/index.js +2 -1
- package/{mocks → lib/mocks}/hooks/usePageData.d.ts +0 -0
- package/{mocks → lib/mocks}/hooks/usePageData.js +1 -0
- package/{mocks → lib/mocks}/search.d.ts +0 -0
- package/{mocks → lib/mocks}/search.js +2 -1
- package/{mocks → lib/mocks}/types/index.d.ts +0 -0
- package/{mocks → lib/mocks}/types/index.js +1 -0
- package/lib/mocks/types.d.ts +14 -0
- package/{mocks → lib/mocks}/types.js +1 -0
- package/{mocks → lib/mocks}/usePreloadHistory.d.ts +0 -0
- package/{mocks → lib/mocks}/usePreloadHistory.js +3 -2
- package/{mocks → lib/mocks}/utils.d.ts +0 -0
- package/{mocks → lib/mocks}/utils.js +3 -2
- package/{ui → lib/ui}/Background.d.ts +0 -0
- package/lib/ui/Background.js +21 -0
- package/{ui → lib/ui}/Box.d.ts +0 -0
- package/lib/ui/Box.js +21 -0
- package/{ui → lib/ui}/Burger.d.ts +0 -0
- package/lib/ui/Burger.js +31 -0
- package/{ui → lib/ui}/Dropdown.d.ts +0 -0
- package/lib/ui/Dropdown.js +115 -0
- package/{ui → lib/ui}/Flex.d.ts +0 -0
- package/lib/ui/Flex.js +21 -0
- package/{ui → lib/ui}/Jumbotron.d.ts +0 -0
- package/lib/ui/Jumbotron.js +51 -0
- package/{ui → lib/ui}/Tiles/ThinTile.d.ts +1 -1
- package/lib/ui/Tiles/ThinTile.js +124 -0
- package/{ui → lib/ui}/Tiles/TileHeader.d.ts +0 -0
- package/lib/ui/Tiles/TileHeader.js +19 -0
- package/{ui → lib/ui}/Tiles/TileText.d.ts +0 -0
- package/lib/ui/Tiles/TileText.js +18 -0
- package/{ui → lib/ui}/Tiles/WideTile.d.ts +0 -0
- package/lib/ui/Tiles/WideTile.js +114 -0
- package/{ui → lib/ui}/Tiles/index.d.ts +0 -0
- package/{ui → lib/ui}/Tiles/index.js +1 -0
- package/{ui → lib/ui}/darkColors.d.ts +0 -0
- package/lib/ui/darkColors.js +70 -0
- package/{ui → lib/ui}/index.d.ts +0 -1
- package/{ui → lib/ui}/index.js +2 -5
- package/{utils → lib/utils}/ClipboardService.d.ts +0 -0
- package/{utils → lib/utils}/ClipboardService.js +11 -13
- package/{utils → lib/utils}/args-typecheck.d.ts +0 -0
- package/{utils → lib/utils}/args-typecheck.js +1 -0
- package/{utils → lib/utils}/class-names.d.ts +0 -0
- package/lib/utils/class-names.js +12 -0
- package/{utils → lib/utils}/color.d.ts +0 -0
- package/{utils → lib/utils}/color.js +7 -6
- package/{utils → lib/utils}/css-variables.d.ts +0 -0
- package/lib/utils/css-variables.js +6 -0
- package/{utils → lib/utils}/getNavbarElement.d.ts +0 -0
- package/{utils → lib/utils}/getNavbarElement.js +3 -2
- package/{utils → lib/utils}/highlight.d.ts +0 -0
- package/{utils → lib/utils}/highlight.js +10 -11
- package/{utils → lib/utils}/index.d.ts +0 -0
- package/{utils → lib/utils}/index.js +1 -0
- package/{utils → lib/utils}/isUrl.d.ts +0 -0
- package/{utils → lib/utils}/isUrl.js +6 -5
- package/{utils → lib/utils}/jsonToHtml.d.ts +0 -0
- package/lib/utils/jsonToHtml.js +180 -0
- package/{utils → lib/utils}/media-css.d.ts +0 -0
- package/lib/utils/media-css.js +13 -0
- package/{utils → lib/utils}/replaceHashInColor.d.ts +0 -0
- package/{utils → lib/utils}/replaceHashInColor.js +1 -0
- package/{utils → lib/utils}/theme-helpers.d.ts +0 -0
- package/lib/utils/theme-helpers.js +75 -0
- package/package.json +104 -5
- package/src/ApiOnboarding/AppCustomAttributes.tsx +6 -0
- package/src/Button/Button.tsx +2 -1
- package/src/Cards/Card.tsx +1 -2
- package/src/CopyButton/CopyButtonWrapper.tsx +1 -2
- package/src/EditPageButton/EditPageButton.tsx +4 -0
- package/src/Footer/CustomFooter.tsx +1 -2
- package/src/Footer/CustomFooterNavItem.tsx +1 -2
- package/src/Footer/Footer.tsx +1 -2
- package/src/Footer/FooterColumn.tsx +8 -3
- package/src/Footer/FooterColumns.tsx +1 -2
- package/src/JsonViewer/JsonViewer.tsx +2 -1
- package/src/LastUpdated/LastUpdated.tsx +41 -5
- package/src/Markdown/Admonition.tsx +3 -0
- package/src/Markdown/CodeSample/CodeSample.tsx +8 -0
- package/src/Markdown/Heading.tsx +2 -1
- package/src/Markdown/MarkdownLayout.tsx +2 -1
- package/src/Markdown/MarkdownWrapper.tsx +2 -1
- package/src/Markdown/Sup.tsx +2 -1
- package/src/Markdown/Tabs/Tabs.tsx +2 -1
- package/src/Navbar/MobileNavbarDropdown.tsx +1 -2
- package/src/Navbar/MobileNavbarItem.tsx +3 -4
- package/src/Navbar/MobileNavbarMenu.tsx +1 -2
- package/src/Navbar/Navbar.tsx +1 -2
- package/src/Navbar/NavbarDropdown.tsx +1 -2
- package/src/Navbar/NavbarItem.tsx +4 -5
- package/src/Navbar/NavbarMenu.tsx +1 -2
- package/src/NavbarLogo/NavbarLogo.tsx +1 -2
- package/src/PageNavigation/NextPageLink.tsx +1 -2
- package/src/PageNavigation/PageNavigation.tsx +4 -0
- package/src/PageNavigation/PreviousPageLink.tsx +1 -2
- package/src/Panel/PanelComponent.tsx +2 -2
- package/src/Panel/PanelHeader.ts +2 -1
- package/src/Search/Autocomplete.tsx +2 -2
- package/src/Search/ClearIcon.tsx +2 -1
- package/src/Search/Parameters.tsx +1 -2
- package/src/Search/SearchIcon.tsx +2 -1
- package/src/Search/SearchItem.tsx +1 -2
- package/src/Sidebar/ApiCallItem.tsx +1 -2
- package/src/Sidebar/Drilldown.tsx +1 -2
- package/src/Sidebar/DrilldownMenu.tsx +1 -2
- package/src/Sidebar/MenuGroup.tsx +1 -2
- package/src/Sidebar/MenuItem.tsx +1 -2
- package/src/Sidebar/MenuLink.tsx +3 -9
- package/src/Sidebar/MenuLinkItem.tsx +1 -2
- package/src/Sidebar/Separator.tsx +1 -2
- package/src/TableOfContent/TableOfContent.tsx +3 -4
- package/src/Tooltip/Tooltip.tsx +1 -0
- package/src/globalStyle.ts +28 -28
- package/src/hooks/__tests__/mocks/MockIntersectionObserver.ts +48 -0
- package/src/hooks/useActiveSectionId.ts +1 -0
- package/src/hooks/useDefaultThemeSettings.ts +1 -2
- package/src/hooks/useFullHeight.ts +2 -1
- package/src/hooks/useMobileMenu.ts +2 -1
- package/src/hooks/useNavbarHeight.ts +1 -0
- package/src/hooks/useOutsideClick.ts +2 -1
- package/src/mocks/Link.tsx +1 -2
- package/src/mocks/hooks/index.ts +1 -1
- package/src/mocks/types.ts +8 -1
- package/src/settings.yaml +1 -1
- package/src/types/portal/src/shared/constants.d.ts +33 -33
- package/src/types/portal/src/shared/types/markdown.d.ts +3 -3
- package/src/types/portal/src/shared/types/nav.d.ts +119 -106
- package/src/ui/Box.tsx +3 -2
- package/src/ui/Burger.tsx +2 -1
- package/src/ui/Dropdown.tsx +1 -2
- package/src/ui/Flex.tsx +2 -1
- package/src/ui/Tiles/ThinTile.tsx +2 -1
- package/src/ui/Tiles/WideTile.tsx +1 -2
- package/src/ui/index.tsx +0 -1
- package/src/utils/theme-helpers.ts +1 -0
- package/Button/Button.js +0 -87
- package/Cards/Card.js +0 -25
- package/Cards/CardsBlock.js +0 -15
- package/CodeBlock/CodeBlock.js +0 -16
- package/CopyButton/CopyButton.js +0 -100
- package/EditPageButton/EditPageButton.js +0 -24
- package/Footer/CustomFooter.js +0 -31
- package/Footer/CustomFooterNavItem.js +0 -25
- package/Footer/Footer.js +0 -29
- package/Footer/FooterColumn.js +0 -31
- package/Footer/FooterColumns.js +0 -34
- package/Footer/FooterCopyright.js +0 -19
- package/JsonViewer/JsonViewer.js +0 -147
- package/LastUpdated/LastUpdated.d.ts +0 -5
- package/LastUpdated/LastUpdated.js +0 -27
- package/Layout/PageLayout.js +0 -22
- package/Layout/RootLayout.js +0 -24
- package/Markdown/Admonition.js +0 -31
- package/Markdown/CodeSample/CodeSample.js +0 -93
- package/Markdown/ContainerWrapper.js +0 -21
- package/Markdown/Details.js +0 -22
- package/Markdown/MarkdownLayout.js +0 -31
- package/Markdown/MarkdownWrapper.js +0 -43
- package/Markdown/Mermaid.js +0 -19
- package/Markdown/PageWrapper.js +0 -15
- package/Markdown/Sup.js +0 -19
- package/Markdown/Tabs/Tab.js +0 -24
- package/Markdown/Tabs/Tabs.js +0 -72
- package/Navbar/MobileNavbarDropdown.js +0 -21
- package/Navbar/MobileNavbarItem.js +0 -102
- package/Navbar/MobileNavbarMenu.js +0 -32
- package/Navbar/MobileNavbarMenuButton.js +0 -19
- package/Navbar/Navbar.js +0 -64
- package/Navbar/NavbarDropdown.js +0 -21
- package/Navbar/NavbarItem.js +0 -53
- package/Navbar/NavbarMenu.js +0 -29
- package/NavbarLogo/NavbarLogo.js +0 -24
- package/OperationBadge/OperationBadge.js +0 -16
- package/PageNavigation/NextPageLink.js +0 -28
- package/PageNavigation/PageNavigation.js +0 -27
- package/PageNavigation/PreviousPageLink.js +0 -28
- package/Panel/Panel.js +0 -23
- package/Panel/PanelBody.js +0 -43
- package/Panel/PanelHeader.js +0 -24
- package/Panel/PanelHeaderTitle.js +0 -15
- package/Profile/Profile.js +0 -59
- package/SamplesPanelControls/SamplesPanelControls.js +0 -27
- package/Search/Autocomplete.js +0 -122
- package/Search/ClearIcon.js +0 -32
- package/Search/Input.js +0 -15
- package/Search/Parameters.js +0 -42
- package/Search/Popover.js +0 -15
- package/Search/Search.js +0 -29
- package/Search/SearchIcon.js +0 -32
- package/Search/SearchItem.js +0 -64
- package/Search/SidebarSearch.js +0 -17
- package/Sidebar/ApiCallItem.js +0 -29
- package/Sidebar/ArrowBack.js +0 -21
- package/Sidebar/BackButton.js +0 -22
- package/Sidebar/Drilldown.js +0 -50
- package/Sidebar/DrilldownMenu.js +0 -52
- package/Sidebar/DrilldownMenuItem.js +0 -25
- package/Sidebar/ExternalIcon.js +0 -23
- package/Sidebar/Menu.js +0 -15
- package/Sidebar/MenuContainer.js +0 -15
- package/Sidebar/MenuGroup.js +0 -95
- package/Sidebar/MenuItemLabel.js +0 -19
- package/Sidebar/MenuLink.d.ts +0 -5
- package/Sidebar/MenuLink.js +0 -16
- package/Sidebar/MenuLinkItem.js +0 -31
- package/Sidebar/MobileSidebarButton.js +0 -25
- package/Sidebar/Separator.js +0 -23
- package/Sidebar/SeparatorItem.js +0 -16
- package/Sidebar/SeparatorLine.js +0 -15
- package/Sidebar/Sidebar.js +0 -24
- package/Sidebar/SidebarLayout.js +0 -52
- package/SidebarLogo/SidebarLogo.js +0 -25
- package/TableOfContent/TableOfContent.js +0 -81
- package/TableOfContent/utils.js +0 -62
- package/Tooltip/Tooltip.js +0 -98
- package/Typography/CompactTypography.js +0 -18
- package/Typography/Emphasis.js +0 -15
- package/Typography/H1.js +0 -16
- package/Typography/H2.js +0 -16
- package/Typography/H3.js +0 -16
- package/Typography/SectionHeader.js +0 -15
- package/Typography/Typography.js +0 -45
- package/globalStyle.js +0 -38
- package/hooks/__tests__/mocks/MockIntersectionObserver.js +0 -39
- package/hooks/useActiveHeading.js +0 -100
- package/hooks/useActiveSectionId.js +0 -65
- package/hooks/useControl.js +0 -32
- package/hooks/useMobileMenu.js +0 -29
- package/hooks/useNavbarHeight.js +0 -36
- package/icons/ArrowIcon/ArrowIcon.js +0 -33
- package/icons/ShelfIcon/ShelfIcon.js +0 -52
- package/mocks/Link.js +0 -27
- package/mocks/types.d.ts +0 -7
- package/src/ui/UniversalLink.tsx +0 -96
- package/ui/Background.js +0 -16
- package/ui/Box.js +0 -16
- package/ui/Burger.js +0 -23
- package/ui/Dropdown.js +0 -89
- package/ui/Flex.js +0 -31
- package/ui/Jumbotron.js +0 -44
- package/ui/Tiles/ThinTile.js +0 -114
- package/ui/Tiles/TileHeader.js +0 -15
- package/ui/Tiles/TileText.js +0 -15
- package/ui/Tiles/WideTile.js +0 -109
- package/ui/UniversalLink.d.ts +0 -17
- package/ui/UniversalLink.js +0 -97
- package/ui/darkColors.js +0 -10
- package/utils/class-names.js +0 -15
- package/utils/css-variables.js +0 -8
- package/utils/jsonToHtml.js +0 -324
- package/utils/media-css.js +0 -50
- package/utils/theme-helpers.js +0 -121
|
@@ -0,0 +1,1924 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlobalStyle = exports.styles = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
const darkColors_1 = require("./ui/darkColors");
|
|
6
|
+
const baseColors = (0, styled_components_1.css) `
|
|
7
|
+
/* === Palette === */
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @tokens Base Colors
|
|
11
|
+
* @presenter Color
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
--color-primary-50: #87ceeb;
|
|
15
|
+
--color-primary-100: #62a1ff;
|
|
16
|
+
--color-primary-200: #4892ff;
|
|
17
|
+
--color-primary-300: #2f83ff;
|
|
18
|
+
--color-primary-400: #1573ff;
|
|
19
|
+
--color-primary-500: #0065fb;
|
|
20
|
+
--color-primary-600: #005be2;
|
|
21
|
+
--color-primary-700: #0050c8;
|
|
22
|
+
--color-primary-800: #0046af;
|
|
23
|
+
--color-primary-900: #003c95;
|
|
24
|
+
|
|
25
|
+
--color-secondary-50: #ffffff;
|
|
26
|
+
--color-secondary-100: #f5f7fa;
|
|
27
|
+
--color-secondary-200: #f3f4f6;
|
|
28
|
+
--color-secondary-300: #e4e7eb;
|
|
29
|
+
--color-secondary-400: #d5dae0;
|
|
30
|
+
--color-secondary-500: #c7cdd5;
|
|
31
|
+
--color-secondary-600: #b8c0ca;
|
|
32
|
+
--color-secondary-700: #a9b3c0;
|
|
33
|
+
--color-secondary-800: #9ba6b5;
|
|
34
|
+
--color-secondary-900: #52606d;
|
|
35
|
+
|
|
36
|
+
--color-emphasis-50: #ffffff;
|
|
37
|
+
--color-emphasis-100: #e9eaec;
|
|
38
|
+
--color-emphasis-200: #cdd0d5;
|
|
39
|
+
--color-emphasis-300: #b2b6bd;
|
|
40
|
+
--color-emphasis-400: #969ca6;
|
|
41
|
+
--color-emphasis-500: #7a828f;
|
|
42
|
+
--color-emphasis-600: #626974;
|
|
43
|
+
--color-emphasis-700: #4b5058;
|
|
44
|
+
--color-emphasis-800: #1f2933;
|
|
45
|
+
--color-emphasis-900: #1c1e21;
|
|
46
|
+
|
|
47
|
+
--color-accent-50: #e6eef8;
|
|
48
|
+
--color-accent-100: #b3dcf3;
|
|
49
|
+
--color-accent-200: #a6dfff;
|
|
50
|
+
--color-accent-300: #8cd5ff;
|
|
51
|
+
--color-accent-400: #73ccff;
|
|
52
|
+
--color-accent-500: #59c3ff;
|
|
53
|
+
--color-accent-600: #40baff;
|
|
54
|
+
--color-accent-700: #26b1ff;
|
|
55
|
+
--color-accent-800: #0da7ff;
|
|
56
|
+
--color-accent-900: #009bf2;
|
|
57
|
+
|
|
58
|
+
--color-success-50: #ddffe1;
|
|
59
|
+
--color-success-100: #98eda0;
|
|
60
|
+
--color-success-200: #82e98c;
|
|
61
|
+
--color-success-300: #6ce678;
|
|
62
|
+
--color-success-400: #57e264;
|
|
63
|
+
--color-success-500: #41de50;
|
|
64
|
+
--color-success-600: #2bda3c;
|
|
65
|
+
--color-success-700: #23c933;
|
|
66
|
+
--color-success-800: #1fb32d;
|
|
67
|
+
--color-success-900: #1b9e28;
|
|
68
|
+
|
|
69
|
+
--color-warning-50: #ffeda5;
|
|
70
|
+
--color-warning-100: #ffc966;
|
|
71
|
+
--color-warning-200: #ffc04d;
|
|
72
|
+
--color-warning-300: #ffb733;
|
|
73
|
+
--color-warning-400: #ffae1a;
|
|
74
|
+
--color-warning-500: #ffa500;
|
|
75
|
+
--color-warning-600: #e69400;
|
|
76
|
+
--color-warning-700: #cc8400;
|
|
77
|
+
--color-warning-800: #b37300;
|
|
78
|
+
--color-warning-900: #996300;
|
|
79
|
+
|
|
80
|
+
--color-error-50: #ffeaea;
|
|
81
|
+
--color-error-100: #ffc7c7;
|
|
82
|
+
--color-error-200: #ffaeae;
|
|
83
|
+
--color-error-300: #ff9494;
|
|
84
|
+
--color-error-400: #ff7b7b;
|
|
85
|
+
--color-error-500: #ff6161;
|
|
86
|
+
--color-error-600: #ff4747;
|
|
87
|
+
--color-error-700: #ff2e2e;
|
|
88
|
+
--color-error-800: #ff1414;
|
|
89
|
+
--color-error-900: #ff0000;
|
|
90
|
+
|
|
91
|
+
--colors-translucent: rgb(226 230 236 / 37%);
|
|
92
|
+
|
|
93
|
+
// @tokens End
|
|
94
|
+
`;
|
|
95
|
+
const httpColors = (0, styled_components_1.css) `
|
|
96
|
+
/**
|
|
97
|
+
* @tokens HTTP Colors
|
|
98
|
+
* @presenter Color
|
|
99
|
+
*/
|
|
100
|
+
--color-http-get: #3a9601;
|
|
101
|
+
--color-http-post: #0065fb;
|
|
102
|
+
--color-http-put: #93527b;
|
|
103
|
+
--color-http-options: #947014;
|
|
104
|
+
--color-http-patch: #bf581d;
|
|
105
|
+
--color-http-delete: #c83637;
|
|
106
|
+
--color-http-basic: #707070;
|
|
107
|
+
--color-http-link: #07818f;
|
|
108
|
+
--color-http-head: #a23dad;
|
|
109
|
+
--color-http-hook: #4d5d86;
|
|
110
|
+
|
|
111
|
+
// @tokens End
|
|
112
|
+
`;
|
|
113
|
+
const typography = (0, styled_components_1.css) `
|
|
114
|
+
/* === Typography === */
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @tokens Typography Colors
|
|
118
|
+
* @presenter Color
|
|
119
|
+
*/
|
|
120
|
+
--text-color: var(--color-emphasis-800);
|
|
121
|
+
--text-color-inverse: var(--color-secondary-100);
|
|
122
|
+
--text-color-secondary: var(--color-emphasis-500);
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @tokens Font Sizes
|
|
126
|
+
* @presenter FontSize
|
|
127
|
+
*/
|
|
128
|
+
--font-size-base: 14px;
|
|
129
|
+
--font-size-small: 12px;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @tokens Line Heights
|
|
133
|
+
* @presenter LineHeight
|
|
134
|
+
*/
|
|
135
|
+
--line-height-base: 1.5em;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @tokens Font Weights
|
|
139
|
+
* @presenter FontWeight
|
|
140
|
+
*/
|
|
141
|
+
--font-weight-regular: 400;
|
|
142
|
+
--font-weight-bold: 600;
|
|
143
|
+
--font-weight-bolder: 700;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @tokens Font Families
|
|
147
|
+
* @presenter FontFamily
|
|
148
|
+
*/
|
|
149
|
+
--font-family-base: Source Sans Pro, sans-serif;
|
|
150
|
+
--font-family-monospaced: Source Code Pro, monospace;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @tokens Rendering
|
|
154
|
+
*/
|
|
155
|
+
--text-smoothing: antialiased; // text-smoothing
|
|
156
|
+
--text-rendering: optimizeSpeed; // text-rendering
|
|
157
|
+
|
|
158
|
+
// @tokens End
|
|
159
|
+
`;
|
|
160
|
+
const headingsTypography = (0, styled_components_1.css) `
|
|
161
|
+
* {
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @tokens Headings common styles
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
--heading-font-family: Source Sans Pro, sans-serif; // @presenter FontFamily
|
|
170
|
+
--heading-font-weight: var(--font-weight-bolder); // @presenter FontWeight
|
|
171
|
+
--heading-margin-top: 1.25em; // @presenter Spacing
|
|
172
|
+
--heading-margin-bottom: 0.9em; // @presenter Spacing
|
|
173
|
+
--heading-text-color: var(--text-color); // @presenter Color
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @tokens Typography heading anchor icon
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
--heading-anchor-offset-right: 4px; // @presenter Spacing
|
|
180
|
+
--heading-anchor-color: var(--color-primary-500); // @presenter Color
|
|
181
|
+
--heading-anchor-icon: none;
|
|
182
|
+
|
|
183
|
+
// TODO: implement a theme setting for heading-anchor-location: left right
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @tokens Heading level 1
|
|
187
|
+
*/
|
|
188
|
+
|
|
189
|
+
--h1-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
190
|
+
--h1-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
191
|
+
--h1-font-size: 36px; // @presenter FontSize
|
|
192
|
+
--h1-line-height: 36px; // @presenter LineHeight
|
|
193
|
+
--h1-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
194
|
+
--h1-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
195
|
+
--h1-text-color: var(--heading-text-color); // @presenter Color
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @tokens Heading level 2
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
--h2-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
202
|
+
--h2-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
203
|
+
--h2-font-size: 28px; // @presenter FontSize
|
|
204
|
+
--h2-line-height: 28px; // @presenter LineHeight
|
|
205
|
+
--h2-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
206
|
+
--h2-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
207
|
+
--h2-text-color: var(--heading-text-color); // @presenter Color
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @tokens Heading level 3
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
--h3-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
214
|
+
--h3-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
215
|
+
--h3-font-size: 18px; // @presenter FontSize
|
|
216
|
+
--h3-line-height: 18px; // @presenter LineHeight
|
|
217
|
+
--h3-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
218
|
+
--h3-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
219
|
+
--h3-text-color: var(--heading-text-color); // @presenter Color
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @tokens Heading level 4
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
--h4-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
226
|
+
--h4-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
227
|
+
--h4-font-size: 16px; // @presenter FontSize
|
|
228
|
+
--h4-line-height: 16px; // @presenter LineHeight
|
|
229
|
+
--h4-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
230
|
+
--h4-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
231
|
+
--h4-text-color: var(--heading-text-color); // @presenter Color
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @tokens Heading level 5
|
|
235
|
+
*/
|
|
236
|
+
|
|
237
|
+
--h5-font-family: var(--heading-font-family); /* Token Description Example @presenter FontFamily */
|
|
238
|
+
--h5-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
239
|
+
--h5-font-size: 14px; // @presenter FontSize
|
|
240
|
+
--h5-line-height: 14px; // @presenter LineHeight
|
|
241
|
+
--h5-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
242
|
+
--h5-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
243
|
+
--h5-text-color: var(--heading-text-color); // @presenter Color
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @tokens Heading level 6
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
--h6-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
250
|
+
--h6-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
251
|
+
--h6-font-size: 12px; // @presenter FontSize
|
|
252
|
+
--h6-line-height: 12px; // @presenter LineHeight
|
|
253
|
+
--h6-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
254
|
+
--h6-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
255
|
+
--h6-text-color: var(--heading-text-color); // @presenter Color
|
|
256
|
+
|
|
257
|
+
// @tokens End
|
|
258
|
+
`;
|
|
259
|
+
const common = (0, styled_components_1.css) `
|
|
260
|
+
/**
|
|
261
|
+
* @tokens Borders
|
|
262
|
+
* @presenter Border
|
|
263
|
+
*/
|
|
264
|
+
--border-width: 1px;
|
|
265
|
+
--border-style: solid;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @tokens Border Radius
|
|
269
|
+
* @presenter BorderRadius
|
|
270
|
+
*/
|
|
271
|
+
--border-radius: 4px;
|
|
272
|
+
--border-radius-lg: calc(var(--border-radius) * 2);
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @tokens Border Colors
|
|
276
|
+
* @presenter Color
|
|
277
|
+
*/
|
|
278
|
+
--border-color: var(--color-secondary-300);
|
|
279
|
+
--border-color-secondary: var(--color-emphasis-600);
|
|
280
|
+
--background-color: var(--color-secondary-50);
|
|
281
|
+
--box-shadow: 0px 0px 20px 0px var(--color-secondary-500);
|
|
282
|
+
/**
|
|
283
|
+
* @tokens Spacings
|
|
284
|
+
* @presenter Spacing
|
|
285
|
+
*/
|
|
286
|
+
|
|
287
|
+
--spacing-unit: 5px;
|
|
288
|
+
--spacing-horizontal: calc(var(--spacing-unit) * 8);
|
|
289
|
+
--spacing-vertical: calc(var(--spacing-unit) * 4);
|
|
290
|
+
|
|
291
|
+
// @tokens End
|
|
292
|
+
`;
|
|
293
|
+
const buttons = (0, styled_components_1.css) `
|
|
294
|
+
/*
|
|
295
|
+
* Static classnames that can be used to override styles for components:
|
|
296
|
+
* download-specification-button, next-section-button, button-base
|
|
297
|
+
*/
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @tokens Button default colors
|
|
301
|
+
*/
|
|
302
|
+
|
|
303
|
+
--button-color: var(--color-emphasis-50); // @presenter Color
|
|
304
|
+
--button-background-color: var(--color-emphasis-400); // @presenter Color
|
|
305
|
+
--button-border-color: var(--color-emphasis-400); // @presenter Color
|
|
306
|
+
|
|
307
|
+
--button-hover-color: var(--color-emphasis-700); // @presenter Color
|
|
308
|
+
--button-hover-background-color: var(--color-emphasis-500); // @presenter Color
|
|
309
|
+
--button-hover-border-color: var(--color-emphasis-500); // @presenter Color
|
|
310
|
+
|
|
311
|
+
--button-active-color: var(--color-emphasis-900); // @presenter Color
|
|
312
|
+
--button-active-background-color: var(--color-emphasis-600); // @presenter Color
|
|
313
|
+
--button-active-border-color: var(--color-emphasis-600); // @presenter Color
|
|
314
|
+
|
|
315
|
+
/* TODO more styles for disabled state ??? */
|
|
316
|
+
--button-disabled-color: var(--button-color); // @presenter Color
|
|
317
|
+
--button-disabled-background-color: var(--color-emphasis-200); // @presenter Color
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @tokens Button primary colors
|
|
321
|
+
*/
|
|
322
|
+
.button-color-primary {
|
|
323
|
+
--button-color: var(--color-emphasis-50); // @presenter Color
|
|
324
|
+
--button-background-color: var(--color-primary-500); // @presenter Color
|
|
325
|
+
--button-border-color: var(--color-primary-500); // @presenter Color
|
|
326
|
+
|
|
327
|
+
--button-hover-background-color: var(--color-primary-600); // @presenter Color
|
|
328
|
+
--button-hover-border-color: var(--color-primary-600); // @presenter Color
|
|
329
|
+
|
|
330
|
+
--button-active-background-color: var(--color-primary-700); // @presenter Color
|
|
331
|
+
--button-active-border-color: var(--color-primary-700); // @presenter Color
|
|
332
|
+
|
|
333
|
+
--button-disabled-color: var(--button-color); // @presenter Color
|
|
334
|
+
--button-disabled-background-color: var(--color-primary-100); // @presenter Color
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @tokens Button secondary colors
|
|
339
|
+
*/
|
|
340
|
+
.button-color-secondary {
|
|
341
|
+
--button-color: var(--color-emphasis-700); // @presenter Color
|
|
342
|
+
--button-background-color: var(--color-secondary-400); // @presenter Color
|
|
343
|
+
--button-border-color: var(--color-secondary-400); // @presenter Color
|
|
344
|
+
|
|
345
|
+
--button-hover-background-color: var(--color-secondary-500); // @presenter Color
|
|
346
|
+
--button-hover-border-color: var(--color-secondary-500); // @presenter Color
|
|
347
|
+
|
|
348
|
+
--button-active-background-color: var(--color-secondary-600); // @presenter Color
|
|
349
|
+
--button-active-border-color: var(--color-secondary-600); // @presenter Color
|
|
350
|
+
|
|
351
|
+
--button-disabled-color: var(--button-color); // @presenter Color
|
|
352
|
+
--button-disabled-background-color: var(--color-secondary-200); // @presenter Color
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @tokens Button borders
|
|
357
|
+
*/
|
|
358
|
+
--button-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
359
|
+
--button-margin: 5px; // @presenter Spacing
|
|
360
|
+
--button-box-shadow: none; // @presenter Shadow
|
|
361
|
+
--button-hover-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1); // @presenter Shadow
|
|
362
|
+
--button-active-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1); // @presenter Shadow
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* @tokens Button typography
|
|
366
|
+
*/
|
|
367
|
+
--button-font-family: inherit; // @presenter FontFamily
|
|
368
|
+
--button-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
369
|
+
|
|
370
|
+
--button-small-font-size: 12px; // @presenter FontSize
|
|
371
|
+
--button-small-padding: 8px 10px;
|
|
372
|
+
--button-small-min-width: 90px; // @presenter Spacing
|
|
373
|
+
|
|
374
|
+
--button-medium-font-size: 14px; // @presenter FontSize
|
|
375
|
+
--button-medium-padding: 8px 20px;
|
|
376
|
+
--button-medium-min-width: 120px; // @presenter Spacing
|
|
377
|
+
|
|
378
|
+
--button-large-font-size: 14px; // @presenter FontSize
|
|
379
|
+
--button-large-padding: 12px 24px;
|
|
380
|
+
--button-large-min-width: 150px; // @presenter Spacing
|
|
381
|
+
|
|
382
|
+
--button-xlarge-font-size: 16px; // @presenter FontSize
|
|
383
|
+
--button-xlarge-padding: 20px 24px;
|
|
384
|
+
--button-xlarge-min-width: 200px; // @presenter Spacing
|
|
385
|
+
|
|
386
|
+
// @tokens End
|
|
387
|
+
`;
|
|
388
|
+
const sidebar = (0, styled_components_1.css) `
|
|
389
|
+
/* === Sidebar === */
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @tokens Sidebar logo
|
|
393
|
+
*/
|
|
394
|
+
|
|
395
|
+
--sidebar-logo-max-height: 285px;
|
|
396
|
+
--sidebar-logo-max-width: 285px;
|
|
397
|
+
--sidebar-logo-padding: 2px; // @presenter spacing
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* @tokens Sidebar typography
|
|
401
|
+
*/
|
|
402
|
+
--sidebar-word-break: 'inherit';
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @tokens Sidebar colors
|
|
406
|
+
* @presenter Color
|
|
407
|
+
*/
|
|
408
|
+
--sidebar-background-color: var(--background-color);
|
|
409
|
+
--sidebar-border-color: var(--border-color);
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* @tokens Sidebar spacing
|
|
413
|
+
* @presenter Spacing
|
|
414
|
+
*/
|
|
415
|
+
--sidebar-width: 285px; // @presenter NO
|
|
416
|
+
|
|
417
|
+
--sidebar-spacing-unit: 8px;
|
|
418
|
+
--sidebar-offset-top: calc(var(--sidebar-spacing-unit) * 2);
|
|
419
|
+
--sidebar-offset-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
420
|
+
|
|
421
|
+
--sidebar-chevron-size: var(--sidebar-spacing-unit);
|
|
422
|
+
|
|
423
|
+
/* === Sidebar Item === */
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @tokens Sidebar item typography
|
|
427
|
+
*/
|
|
428
|
+
--sidebar-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
429
|
+
--sidebar-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @tokens Sidebar item colors
|
|
433
|
+
* @presenter Color
|
|
434
|
+
*/
|
|
435
|
+
--sidebar-item-text-color: var(--text-color);
|
|
436
|
+
--sidebar-item-background-color: transparent;
|
|
437
|
+
|
|
438
|
+
--sidebar-item-active-color: var(--text-color);
|
|
439
|
+
--sidebar-item-active-background-color: var(--border-color);
|
|
440
|
+
|
|
441
|
+
--sidebar-item-hover-background-color: var(--border-color);
|
|
442
|
+
--sidebar-item-hover-color: var(--text-color);
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @tokens Sidebar item spacing
|
|
446
|
+
* @presenter Spacing
|
|
447
|
+
*/
|
|
448
|
+
|
|
449
|
+
--sidebar-item-nested-offset: calc(var(--sidebar-spacing-unit) * 2);
|
|
450
|
+
--sidebar-item-padding-vertical: var(--sidebar-spacing-unit);
|
|
451
|
+
--sidebar-item-padding-horizontal: var(--sidebar-spacing-unit);
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @tokens Sidebar item border
|
|
455
|
+
*/
|
|
456
|
+
--sidebar-item-border-radius: var(--border-radius) 0 0 var(--border-radius); // @presenter BorderRadius
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @tokens Sidebar item icon
|
|
460
|
+
*/
|
|
461
|
+
--sidebar-item-icon-size: 32px; // icon is for drilldown only but I would like to support it in general
|
|
462
|
+
--sidebar-item-icon-border-radius: 100%;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @tokens Sidebar item sublabel
|
|
466
|
+
*/
|
|
467
|
+
--sidebar-item-sublabel-font-family: inherit; // sublabel is for drilldown only but I would like to support it in general
|
|
468
|
+
--sidebar-item-sublabel-font-size: 0.85rem;
|
|
469
|
+
--sidebar-item-sublabel-font-weight: var(--font-weight-regular);
|
|
470
|
+
--sidebar-item-sublabel-text-color: var(--sidebar-item-text-color);
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* @tokens Sidebar item drilldown
|
|
474
|
+
*/
|
|
475
|
+
|
|
476
|
+
--sidebar-item-drilldown-font-family: var(--sidebar-item-font-family);
|
|
477
|
+
--sidebar-item-drilldown-font-size: var(--sidebar-item-font-size);
|
|
478
|
+
--sidebar-text-drilldown-transform: inherit;
|
|
479
|
+
--sidebar-item-drilldown-text-color: var(--sidebar-item-text-color);
|
|
480
|
+
--sidebar-item-drilldown-background-color: var(--sidebar-background-color);
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* @tokens Sidebar item group
|
|
484
|
+
*/
|
|
485
|
+
--sidebar-item-group-font-family: var(--sidebar-item-font-family);
|
|
486
|
+
--sidebar-item-group-font-size: var(--sidebar-item-font-size);
|
|
487
|
+
--sidebar-text-group-transform: inherit;
|
|
488
|
+
--sidebar-item-group-text-color: var(--sidebar-item-text-color);
|
|
489
|
+
--sidebar-item-group-background-color: var(--sidebar-background-color);
|
|
490
|
+
--sidebar-item-group-active-text-color: var(--sidebar-item-active-color);
|
|
491
|
+
--sidebar-item-group-active-background-color: var(--sidebar-item-active-background-color);
|
|
492
|
+
|
|
493
|
+
// we need a theme setting for chevron-location: left (default), right-compact, right, none
|
|
494
|
+
// we need another theme setting for chevron-style: up-down, down-up, right-down, down-right
|
|
495
|
+
|
|
496
|
+
--sidebar-group-item-chevron-size: var(--sidebar-spacing-unit);
|
|
497
|
+
--sidebar-group-item-chevron-color: var(--sidebar-item-text-color);
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* @tokens Sidebar item separator
|
|
501
|
+
*/
|
|
502
|
+
// does-separatorn't have active states
|
|
503
|
+
--sidebar-item-separator-font-family: var(--sidebar-item-font-family);
|
|
504
|
+
--sidebar-item-separator-font-size: var(--sidebar-item-font-size);
|
|
505
|
+
--sidebar-item-separator-text-transform: inherit;
|
|
506
|
+
--sidebar-item-separator-text-color: var(--sidebar-item-text-color);
|
|
507
|
+
--sidebar-item-separator-background-color: var(--sidebar-background-color);
|
|
508
|
+
--sidebar-item-separator-line-color: var(--border-color); // but has line color
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* @tokens Sidebar back button
|
|
512
|
+
*/
|
|
513
|
+
--sidebar-back-button-font-family: var(--sidebar-item-font-family);
|
|
514
|
+
--sidebar-back-button-font-size: var(--sidebar-item-font-size);
|
|
515
|
+
--sidebar-back-button-transform: inherit;
|
|
516
|
+
--sidebar-back-button-text-color: var(--sidebar-item-text-color);
|
|
517
|
+
--sidebar-back-button-background-color: transparent;
|
|
518
|
+
--sidebar-back-button-hover-text-color: var(--sidebar-item-active-color);
|
|
519
|
+
--sidebar-back-button-hover-background-color: transparent;
|
|
520
|
+
--sidebar-back-button-icon-color: var(--sidebar-item-text-color);
|
|
521
|
+
--sidebar-back-button-margin: 0 0 calc(var(--sidebar-spacing-unit) * 3) 0;
|
|
522
|
+
--sidebar-back-button-icon: none;
|
|
523
|
+
|
|
524
|
+
//--sidebar-version-dropdown-* (input settings, see below)
|
|
525
|
+
// @tokens End
|
|
526
|
+
`;
|
|
527
|
+
const admonition = (0, styled_components_1.css) `
|
|
528
|
+
/* === Admonitions === */
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @tokens Admonition typography
|
|
532
|
+
*/
|
|
533
|
+
|
|
534
|
+
--admonition-font-size: var(--font-size-base); // @presenter FontSize
|
|
535
|
+
--admonition-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
536
|
+
--admonition-line-height: var(--line-height-base); // @presenter LineHeight
|
|
537
|
+
--admonition-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
538
|
+
--admonition-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
539
|
+
--admonition-heading-letter-spacing: 0.3px; // @presenter LetterSpacing
|
|
540
|
+
--admonition-heading-transform: uppercase;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* @tokens Admonition spacing
|
|
544
|
+
* @presenter Spacing
|
|
545
|
+
*/
|
|
546
|
+
|
|
547
|
+
--admonition-margin-horizontal: 0;
|
|
548
|
+
--admonition-margin-vertical: calc(var(--spacing-unit) * 2);
|
|
549
|
+
--admonition-padding-horizontal: calc(var(--spacing-unit) * 4);
|
|
550
|
+
--admonition-padding-vertical: calc(var(--spacing-unit) * 4);
|
|
551
|
+
--admonition-icon-size: 25px;
|
|
552
|
+
|
|
553
|
+
// TODO this is should be changed to --border-radius-lg
|
|
554
|
+
/**
|
|
555
|
+
* @tokens Admonition border
|
|
556
|
+
*/
|
|
557
|
+
|
|
558
|
+
--admonition-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
559
|
+
--admonition-border-style: var(--border-style);
|
|
560
|
+
--admonition-border-width: var(--border-width);
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* @tokens Admonition type info
|
|
564
|
+
*/
|
|
565
|
+
|
|
566
|
+
--admonition-info-background-color: var(--color-emphasis-200); // @presenter Color
|
|
567
|
+
--admonition-info-heading-text-color: var(--text-color); // @presenter Color
|
|
568
|
+
--admonition-info-text-color: var(--text-color); // @presenter Color
|
|
569
|
+
--admonition-info-icon-color: var(--color-accent-900); // @presenter Color
|
|
570
|
+
--admonition-info-border-color: inherit; // @presenter Color
|
|
571
|
+
--admonition-info-border-style: var(--admonition-border-style);
|
|
572
|
+
--admonition-info-border-width: var(--admonition-border-width);
|
|
573
|
+
--admonition-info-border: var(--admonition-info-border-width) var(--admonition-info-border-style)
|
|
574
|
+
var(--admonition-info-border-color); // @presenter Border
|
|
575
|
+
--admonition-info-icon: none;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* @tokens Admonition type attention
|
|
579
|
+
* @presenter Color
|
|
580
|
+
*/
|
|
581
|
+
|
|
582
|
+
--admonition-attention-background-color: var(--color-accent-50); // @presenter Color
|
|
583
|
+
--admonition-attention-text-color: var(--text-color); // @presenter Color
|
|
584
|
+
--admonition-attention-heading-text-color: var(--text-color); // @presenter Color
|
|
585
|
+
--admonition-attention-icon-color: var(--color-accent-900); // @presenter Color
|
|
586
|
+
--admonition-attention-border-color: inherit; // @presenter Color
|
|
587
|
+
--admonition-attention-border-style: var(--admonition-border-style);
|
|
588
|
+
--admonition-attention-border-width: var(--admonition-border-width);
|
|
589
|
+
--admonition-attention-border: var(--admonition-attention-border-width)
|
|
590
|
+
var(--admonition-attention-border-style) var(--admonition-attention-border-color); // @presenter Border
|
|
591
|
+
--admonition-attention-icon: none;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @tokens Admonition type warning
|
|
595
|
+
*/
|
|
596
|
+
|
|
597
|
+
/* warning */
|
|
598
|
+
--admonition-warning-background-color: var(--color-warning-50); // @presenter Color
|
|
599
|
+
--admonition-warning-text-color: var(--text-color); // @presenter Color
|
|
600
|
+
--admonition-warning-heading-text-color: var(--text-color); // @presenter Color
|
|
601
|
+
--admonition-warning-icon-color: var(--color-warning-700); // @presenter Color
|
|
602
|
+
--admonition-warning-border-color: inherit; // @presenter Color
|
|
603
|
+
--admonition-warning-border-style: var(--admonition-border-style); // @presenter Color
|
|
604
|
+
--admonition-warning-border-width: var(--admonition-border-width); // @presenter Color
|
|
605
|
+
--admonition-warning-border: var(--admonition-warning-border-width)
|
|
606
|
+
var(--admonition-warning-border-style) var(--admonition-warning-border-color); // @presenter Border
|
|
607
|
+
--admonition-warning-icon: none;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* @tokens Admonition type danger
|
|
611
|
+
*/
|
|
612
|
+
|
|
613
|
+
--admonition-danger-background-color: var(--color-error-50); // @presenter Color
|
|
614
|
+
--admonition-danger-text-color: var(--text-color); // @presenter Color
|
|
615
|
+
--admonition-danger-heading-text-color: var(--text-color); // @presenter Color
|
|
616
|
+
--admonition-danger-icon-color: var(--color-error-800); // @presenter Color
|
|
617
|
+
--admonition-danger-border-color: inherit; // @presenter Color
|
|
618
|
+
--admonition-danger-border-style: var(--admonition-border-style); // @presenter Color
|
|
619
|
+
--admonition-danger-border-width: var(--admonition-border-width); // @presenter Color
|
|
620
|
+
--admonition-danger-border: var(--admonition-danger-border-width)
|
|
621
|
+
var(--admonition-danger-border-style) var(--admonition-danger-border-color); // @presenter Border
|
|
622
|
+
--admonition-danger-icon: none;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* @tokens Admonition type success
|
|
626
|
+
*/
|
|
627
|
+
|
|
628
|
+
--admonition-success-background-color: var(--color-success-50); // @presenter Color
|
|
629
|
+
--admonition-success-text-color: var(--text-color); // @presenter Color
|
|
630
|
+
--admonition-success-heading-text-color: var(--text-color); // @presenter Color
|
|
631
|
+
--admonition-success-icon-color: var(--color-success-900); // @presenter Color
|
|
632
|
+
--admonition-success-border-color: inherit; // @presenter Color
|
|
633
|
+
--admonition-success-border-style: var(--admonition-border-style); // @presenter Color
|
|
634
|
+
--admonition-success-border-width: var(--admonition-border-width); // @presenter Color
|
|
635
|
+
--admonition-success-border: var(--admonition-success-border-width)
|
|
636
|
+
var(--admonition-success-border-style) var(--admonition-success-border-color); // @presenter Border
|
|
637
|
+
--admonition-success-icon: none;
|
|
638
|
+
|
|
639
|
+
// @tokens End
|
|
640
|
+
`;
|
|
641
|
+
const responsePanelColors = (0, styled_components_1.css) `
|
|
642
|
+
/**
|
|
643
|
+
* @tokens Response Panel Common
|
|
644
|
+
*/
|
|
645
|
+
|
|
646
|
+
--panel-response-heading-padding: 10px 20px;
|
|
647
|
+
--panel-response-heading-font-size: var(--font-size-base);
|
|
648
|
+
--panel-response-heading-line-height: 20px;
|
|
649
|
+
--panel-response-heading-font-weight: var(--font-weight-bold);
|
|
650
|
+
--panel-response-heading-text-color: var(--text-color);
|
|
651
|
+
|
|
652
|
+
--panel-response-body-text-color: var(--text-color);
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* @tokens Response Panel Success colors
|
|
656
|
+
* @presenter Color
|
|
657
|
+
*/
|
|
658
|
+
|
|
659
|
+
--panel-response-success-border-color: var(--color-success-100);
|
|
660
|
+
--panel-response-success-heading-background-color: var(--color-success-50);
|
|
661
|
+
--panel-response-success-heading-text-color: var(--panel-response-heading-text-color);
|
|
662
|
+
--panel-response-success-body-background-color: transparent;
|
|
663
|
+
--panel-response-success-schema-nested-background-color: var(--color-secondary-200);
|
|
664
|
+
--panel-response-success-body-text-color: var(--panel-response-body-text-color);
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* @tokens Response Panel Error colors
|
|
668
|
+
* @presenter Color
|
|
669
|
+
*/
|
|
670
|
+
|
|
671
|
+
--panel-response-error-border-color: var(--color-error-100);
|
|
672
|
+
--panel-response-error-heading-background-color: var(--color-error-50);
|
|
673
|
+
--panel-response-error-heading-text-color: var(--panel-response-heading-text-color);
|
|
674
|
+
--panel-response-error-body-background-color: transparent;
|
|
675
|
+
--panel-response-error-schema-nested-background-color: var(--color-secondary-200);
|
|
676
|
+
--panel-response-error-body-text-color: var(--panel-response-body-text-color);
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* @tokens Response Panel Redirect colors
|
|
680
|
+
* @presenter Color
|
|
681
|
+
*/
|
|
682
|
+
|
|
683
|
+
--panel-response-redirect-border-color: var(--color-warning-100);
|
|
684
|
+
--panel-response-redirect-heading-background-color: var(--color-warning-50);
|
|
685
|
+
--panel-response-redirect-heading-text-color: var(--panel-response-heading-text-color);
|
|
686
|
+
--panel-response-redirect-body-background-color: transparent;
|
|
687
|
+
--panel-response-redirect-schema-nested-background-color: var(--color-secondary-200);
|
|
688
|
+
--panel-response-redirect-body-text-color: var(--panel-response-body-text-color);
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* @tokens Response Panel Info colors
|
|
692
|
+
* @presenter Color
|
|
693
|
+
*/
|
|
694
|
+
|
|
695
|
+
--panel-response-info-border-color: var(--color-accent-100);
|
|
696
|
+
--panel-response-info-heading-background-color: var(--color-accent-50);
|
|
697
|
+
--panel-response-info-heading-text-color: var(--panel-response-heading-text-color);
|
|
698
|
+
--panel-response-info-body-background-color: transparent;
|
|
699
|
+
--panel-response-info-schema-nested-background-color: var(--color-secondary-200);
|
|
700
|
+
--panel-response-info-body-text-color: var(--panel-response-body-text-color);
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* @tokens Response Panel Callback colors
|
|
704
|
+
* @presenter Color
|
|
705
|
+
*/
|
|
706
|
+
|
|
707
|
+
--panel-response-callback-border-color: var(--color-secondary-300);
|
|
708
|
+
--panel-response-callback-heading-background-color: var(--color-secondary-300);
|
|
709
|
+
--panel-response-callback-heading-text-color: var(--panel-response-heading-text-color);
|
|
710
|
+
--panel-response-callback-body-background-color: transparent;
|
|
711
|
+
--panel-response-callback-schema-nested-background-color: var(--color-secondary-200);
|
|
712
|
+
--panel-response-callback-body-text-color: var(--panel-response-body-text-color);
|
|
713
|
+
|
|
714
|
+
// @tokens End
|
|
715
|
+
`;
|
|
716
|
+
const apiReferencePanels = (0, styled_components_1.css) `
|
|
717
|
+
/**
|
|
718
|
+
* @tokens Panels spacing
|
|
719
|
+
* @presenter Spacing
|
|
720
|
+
*/
|
|
721
|
+
|
|
722
|
+
--panel-gap-horizontal: calc(var(--spacing-unit) * 8);
|
|
723
|
+
--panel-gap-vertical: calc(var(--spacing-unit) * 4);
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* @tokens Panel common
|
|
727
|
+
*/
|
|
728
|
+
|
|
729
|
+
--panel-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
730
|
+
--panel-border: 1px solid var(--border-color); // @presenter Border
|
|
731
|
+
|
|
732
|
+
--panel-line-height: var(--line-height-base); // @presenter LineHeight
|
|
733
|
+
--panel-font-size: var(--font-size-base); // @presenter FontSize
|
|
734
|
+
--panel-font-family: var(--font-family-base); // @presenter FontFamily
|
|
735
|
+
--panel-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* @tokens Panel heading common
|
|
739
|
+
*/
|
|
740
|
+
|
|
741
|
+
--panel-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
742
|
+
--panel-heading-font-size: 18px; // @presenter FontSize
|
|
743
|
+
--panel-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
744
|
+
--panel-heading-padding: calc(var(--spacing-unit) * 4);
|
|
745
|
+
--panel-heading-line-height: 1; // @presenter LineHeight
|
|
746
|
+
--panel-heading-whit-space: 'nowrap';
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* @tokens Panel body common
|
|
750
|
+
*/
|
|
751
|
+
|
|
752
|
+
--panel-body-font-family: var(--font-family-base); // @presenter FontFamily
|
|
753
|
+
--panel-body-font-size: var(--font-size-base); // @presenter FontSize
|
|
754
|
+
--panel-body-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
755
|
+
--panel-body-padding: calc(var(--spacing-unit) * 4);
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* @tokens Panel schemas common
|
|
759
|
+
*/
|
|
760
|
+
|
|
761
|
+
--panel-schemas-text-color: var(--text-color); // @presenter Color
|
|
762
|
+
--panel-schemas-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
763
|
+
--panel-schemas-font-size: var(--panel-font-size); // @presenter FontSize
|
|
764
|
+
--panel-schemas-font-weight: var(--panel-font-weight); // @presenter
|
|
765
|
+
--panel-schemas-background-color: var(--background-color); // @presenter Color
|
|
766
|
+
--panel-schemas-border: var(--panel-border); // @presenter Border
|
|
767
|
+
--panel-schemas-chevron-icon-color: var(--text-color); // @presenter Color
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* @tokens Panel schemas body common
|
|
771
|
+
*/
|
|
772
|
+
|
|
773
|
+
--panel-schemas-body-text-color: var(--text-color); // @presenter Color
|
|
774
|
+
--panel-schemas-body-font-family: var(--panel-body-font-family); // @presenter FontFamily
|
|
775
|
+
--panel-schemas-body-font-size: var(--panel-body-font-size); // @presenter FontSize
|
|
776
|
+
--panel-schemas-body-font-weight: var(--panel-body-font-weight); // @presenter FontWeight
|
|
777
|
+
--panel-schemas-body-padding: 0 var(--panel-body-padding) var(--panel-body-padding)
|
|
778
|
+
var(--panel-body-padding);
|
|
779
|
+
--panel-schemas-body-background-color: var(--background-color); // @presenter Color
|
|
780
|
+
--panel-schemas-body-border: unset; // @presenter Border
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* @tokens Panel schemas heading common
|
|
784
|
+
*/
|
|
785
|
+
|
|
786
|
+
--panel-schemas-heading-text-color: var(--text-color); // @presenter Color
|
|
787
|
+
--panel-schemas-heading-font-family: var(--panel-heading-font-family); // @presenter FontFamily
|
|
788
|
+
--panel-schemas-heading-font-size: var(--panel-heading-font-size); // @presenter FontSize
|
|
789
|
+
--panel-schemas-heading-font-weight: var(--panel-heading-font-weight); // @presenter FontWeight
|
|
790
|
+
--panel-schemas-heading-line-height: var(--panel-heading-line-height); // @presenter LineHeight
|
|
791
|
+
--panel-schemas-heading-padding: var(--panel-heading-padding);
|
|
792
|
+
--panel-schemas-heading-background-color: var(--background-color); // @presenter Color
|
|
793
|
+
--panel-schemas-heading-border: unset; // @presenter Border
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* @tokens Panel default, response, callback, security schemas
|
|
797
|
+
*/
|
|
798
|
+
|
|
799
|
+
.panel-request-schemas,
|
|
800
|
+
.panel-response-schemas,
|
|
801
|
+
.panel-callback-schemas,
|
|
802
|
+
.panel-security-schemas,
|
|
803
|
+
.panel-default {
|
|
804
|
+
--panel-text-color: var(--panel-schemas-text-color); // @presenter Color
|
|
805
|
+
--panel-font-family-local: var(--panel-schemas-font-family);
|
|
806
|
+
--panel-font-size-local: var(--panel-schemas-font-size);
|
|
807
|
+
--panel-font-weight-local: var(--panel-schemas-font-weight);
|
|
808
|
+
--panel-background-color: var(--panel-schemas-background-color); // @presenter Color
|
|
809
|
+
--panel-border-local: var(--panel-schemas-border);
|
|
810
|
+
--panel-border-radius-local: calc(1px + var(--panel-border-radius));
|
|
811
|
+
--panel-chevron-icon-color: var(--panel-schemas-chevron-icon-color); // @presenter Color
|
|
812
|
+
|
|
813
|
+
--panel-body-text-color: var(--panel-schemas-body-text-color); // @presenter Color
|
|
814
|
+
--panel-body-font-family-local: var(--panel-schemas-body-font-family);
|
|
815
|
+
--panel-body-font-size-local: var(--panel-schemas-body-font-size);
|
|
816
|
+
--panel-body-font-weight-local: var(--panel-schemas-body-font-weight);
|
|
817
|
+
--panel-body-padding-local: var(--panel-schemas-body-padding);
|
|
818
|
+
--panel-body-background-color: var(--panel-schemas-body-background-color); // @presenter Color
|
|
819
|
+
--panel-body-border: var(--panel-schemas-body-border); // @presenter Border
|
|
820
|
+
|
|
821
|
+
--panel-heading-text-color: var(--panel-schemas-heading-text-color); // @presenter Color
|
|
822
|
+
--panel-heading-font-family-local: var(--panel-schemas-heading-font-family);
|
|
823
|
+
--panel-heading-font-size-local: var(--panel-schemas-heading-font-size);
|
|
824
|
+
--panel-heading-font-weight-local: var(--panel-schemas-heading-font-weight);
|
|
825
|
+
--panel-heading-line-height-local: var(--panel-schemas-heading-line-height);
|
|
826
|
+
--panel-heading-padding-local: var(--panel-schemas-heading-padding);
|
|
827
|
+
--panel-heading-background-color: var(--panel-schemas-heading-background-color); // @presenter Color
|
|
828
|
+
--panel-heading-border: var(--panel-schemas-heading-border); // @presenter Border
|
|
829
|
+
--panel-heading-white-space-local: var(--panel-heading-whit-space);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* @tokens Panel samples common
|
|
834
|
+
*/
|
|
835
|
+
|
|
836
|
+
--panel-samples-block-background-color: var(--background-color); // @presenter Color
|
|
837
|
+
--panel-samples-width: 50%;
|
|
838
|
+
|
|
839
|
+
--panel-samples-text-color: var(--text-color-inverse); // @presenter Color
|
|
840
|
+
--panel-samples-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
841
|
+
--panel-samples-font-size: var(--panel-font-size); // @presenter FontSize
|
|
842
|
+
--panel-samples-font-weight: var(--panel-font-weight); // @presenter FontWight
|
|
843
|
+
--panel-samples-background-color: #52606d; // @presenter Color
|
|
844
|
+
--panel-samples-border: var(--panel-border); // @presenter Border
|
|
845
|
+
--panel-samples-chevron-icon-color: var(--text-color-inverse); // @presenter Color
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* @tokens Panel samples body common
|
|
849
|
+
*/
|
|
850
|
+
|
|
851
|
+
--panel-samples-body-text-color: var(--text-color-inverse); // @presenter Color
|
|
852
|
+
--panel-samples-body-font-family: var(--panel-body-font-family); // @presenter FontFamily
|
|
853
|
+
--panel-samples-body-font-size: var(--panel-body-font-size); // @presenter FontSize
|
|
854
|
+
--panel-samples-body-font-weight: var(--panel-body-font-weight); // @presenter FontWeight
|
|
855
|
+
--panel-samples-body-padding: var(--panel-body-padding);
|
|
856
|
+
--panel-samples-body-background-color: #52606d; // @presenter Color
|
|
857
|
+
--panel-samples-body-border: unset; // @presenter Border
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* @tokens Panel samples heading common
|
|
861
|
+
*/
|
|
862
|
+
|
|
863
|
+
--panel-samples-heading-text-color: var(--text-color-inverse); // @presenter Color
|
|
864
|
+
--panel-samples-heading-font-family: var(--panel-heading-font-family); // @presenter FontFamily
|
|
865
|
+
--panel-samples-heading-font-size: var(--panel-font-size); // @presenter FontSize
|
|
866
|
+
--panel-samples-heading-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
867
|
+
--panel-samples-heading-line-height: 30px; // @presenter LineHeight
|
|
868
|
+
--panel-samples-heading-padding: 0 20px;
|
|
869
|
+
--panel-samples-heading-background-color: #323f4b; // @presenter Color
|
|
870
|
+
--panel-samples-heading-border: unset; // @presenter Border
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* @tokens Panel try-it, request-samples, response-samples, callback samples
|
|
874
|
+
*/
|
|
875
|
+
|
|
876
|
+
.panel-try-it,
|
|
877
|
+
.panel-request-samples,
|
|
878
|
+
.panel-response-samples,
|
|
879
|
+
.panel-callback-samples {
|
|
880
|
+
--panel-text-color: var(--panel-samples-text-color); // @presenter Color
|
|
881
|
+
--panel-font-family-local: var(--panel-samples-font-family);
|
|
882
|
+
--panel-font-size-local: var(--panel-samples-font-size);
|
|
883
|
+
--panel-font-weight-local: var(--panel-samples-font-weight);
|
|
884
|
+
--panel-background-color: var(--panel-samples-background-color); // @presenter Color
|
|
885
|
+
--panel-border-local: var(--panel-samples-border);
|
|
886
|
+
--panel-border-radius-local: calc(1px + var(--panel-border-radius));
|
|
887
|
+
--panel-chevron-icon-color: var(--panel-samples-chevron-icon-color); // @presenter Color
|
|
888
|
+
|
|
889
|
+
--panel-body-text-color: var(--panel-samples-body-text-color); // @presenter Color
|
|
890
|
+
--panel-body-background-color: var(--panel-samples-body-background-color); // @presenter Color
|
|
891
|
+
|
|
892
|
+
--panel-body-font-family-local: var(--panel-samples-body-font-family);
|
|
893
|
+
--panel-body-font-size-local: var(--panel-samples-body-font-size);
|
|
894
|
+
--panel-body-font-weight-local: var(--panel-samples-body-font-weight);
|
|
895
|
+
--panel-body-padding-local: var(--panel-samples-body-padding);
|
|
896
|
+
--panel-body-border-local: var(--panel-samples-body-border);
|
|
897
|
+
|
|
898
|
+
--panel-heading-text-color: var(--panel-samples-heading-text-color); // @presenter Color
|
|
899
|
+
--panel-heading-background-color: var( --panel-samples-heading-background-color); // @presenter Color
|
|
900
|
+
|
|
901
|
+
--panel-heading-font-family-local: var(--panel-samples-heading-font-family);
|
|
902
|
+
--panel-heading-font-size-local: var(--panel-samples-heading-font-size);
|
|
903
|
+
--panel-heading-font-weight-local: var(--panel-samples-heading-font-weight);
|
|
904
|
+
--panel-heading-line-height-local: var(--panel-samples-heading-line-height);
|
|
905
|
+
--panel-heading-padding-local: var(--panel-samples-heading-padding);
|
|
906
|
+
|
|
907
|
+
--panel-heading-border: var(--panel-samples-heading-border); // @presenter Border
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* @tokens Panel response success, info, error, redirect, callback common
|
|
912
|
+
*/
|
|
913
|
+
|
|
914
|
+
.panel-response-success,
|
|
915
|
+
.panel-response-info,
|
|
916
|
+
.panel-response-error,
|
|
917
|
+
.panel-response-redirect,
|
|
918
|
+
.panel-response-callback {
|
|
919
|
+
--panel-body-text-color: var(--panel-response-body-text-color); // @presenter Color
|
|
920
|
+
--panel-border-radius-local: calc(1px + var(--panel-border-radius));
|
|
921
|
+
|
|
922
|
+
--panel-heading-text-color: var(--panel-response-heading-text-color); // @presenter Color
|
|
923
|
+
--panel-heading-font-size-local: var(--panel-response-heading-font-size);
|
|
924
|
+
--panel-heading-font-weight-local: var(--panel-response-heading-font-weight);
|
|
925
|
+
--panel-heading-line-height-local: var(--panel-response-heading-line-height);
|
|
926
|
+
--panel-heading-padding-local: var(--panel-response-heading-padding);
|
|
927
|
+
|
|
928
|
+
--panel-heading-border: var(--panel-samples-heading-border); // @presenter Border
|
|
929
|
+
--panel-heading-white-space-local: normal;
|
|
930
|
+
--panel-body-padding-local: var(--panel-body-padding);
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* @tokens Panel response success colors
|
|
935
|
+
* @presenter Color
|
|
936
|
+
*/
|
|
937
|
+
|
|
938
|
+
.panel-response-success {
|
|
939
|
+
--panel-border-local: 1px solid var(--panel-response-success-border-color); // @presenter Border
|
|
940
|
+
|
|
941
|
+
--panel-body-text-color: var(--panel-response-success-body-text-color);
|
|
942
|
+
--panel-body-background-color: var(--panel-response-success-body-background-color);
|
|
943
|
+
|
|
944
|
+
--panel-heading-background-color: var(--panel-response-success-heading-background-color);
|
|
945
|
+
--panel-heading-text-color: var(--panel-response-success-heading-text-color);
|
|
946
|
+
|
|
947
|
+
--panel-response-schema-nested-background-color: var( --panel-response-success-schema-nested-background-color);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* @tokens Panel response info colors
|
|
952
|
+
* @presenter Color
|
|
953
|
+
*/
|
|
954
|
+
|
|
955
|
+
.panel-response-info {
|
|
956
|
+
--panel-border-local: 1px solid var(--panel-response-info-border-color); // @presenter Border
|
|
957
|
+
|
|
958
|
+
--panel-body-text-color: var(--panel-response-info-body-text-color);
|
|
959
|
+
--panel-body-background-color: var(--panel-response-info-body-background-color);
|
|
960
|
+
|
|
961
|
+
--panel-heading-background-color: var(--panel-response-info-heading-background-color);
|
|
962
|
+
--panel-heading-text-color: var(--panel-response-info-heading-text-color);
|
|
963
|
+
|
|
964
|
+
--panel-response-schema-nested-background-color: var( --panel-response-info-schema-nested-background-color);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* @tokens Panel response error colors
|
|
969
|
+
* @presenter Color
|
|
970
|
+
*/
|
|
971
|
+
|
|
972
|
+
.panel-response-error {
|
|
973
|
+
--panel-border-local: 1px solid var(--panel-response-error-border-color); // @presenter Border
|
|
974
|
+
|
|
975
|
+
--panel-body-text-color: var(--panel-response-error-body-text-color);
|
|
976
|
+
--panel-body-background-color: var(--panel-response-error-body-background-color);
|
|
977
|
+
|
|
978
|
+
--panel-heading-background-color: var(--panel-response-error-heading-background-color);
|
|
979
|
+
--panel-heading-text-color: var(--panel-response-error-heading-text-color);
|
|
980
|
+
|
|
981
|
+
--panel-response-schema-nested-background-color: var( --panel-response-error-schema-nested-background-color);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* @tokens Panel response redirect colors
|
|
986
|
+
* @presenter Color
|
|
987
|
+
*/
|
|
988
|
+
|
|
989
|
+
.panel-response-redirect {
|
|
990
|
+
--panel-border-local: 1px solid var(--panel-response-redirect-border-color); // @presenter Border
|
|
991
|
+
--panel-body-text-color: var(--panel-response-redirect-body-text-color);
|
|
992
|
+
|
|
993
|
+
--panel-body-background-color: var(--panel-response-redirect-body-background-color);
|
|
994
|
+
--panel-heading-background-color: var(--panel-response-redirect-heading-background-color);
|
|
995
|
+
--panel-heading-text-color: var(--panel-response-redirect-heading-text-color);
|
|
996
|
+
|
|
997
|
+
--panel-response-schema-nested-background-color: var( --panel-response-redirect-schema-nested-background-color);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* @tokens Panel response callback colors
|
|
1002
|
+
* @presenter Color
|
|
1003
|
+
*/
|
|
1004
|
+
|
|
1005
|
+
.panel-response-callback {
|
|
1006
|
+
--panel-border-local: 1px solid var(--panel-response-callback-border-color); // @presenter Border
|
|
1007
|
+
|
|
1008
|
+
--panel-body-text-color: var(--panel-response-callback-body-text-color);
|
|
1009
|
+
--panel-body-background-color: var(--panel-response-callback-body-background-color);
|
|
1010
|
+
|
|
1011
|
+
--panel-heading-background-color: var(--panel-response-callback-heading-background-color);
|
|
1012
|
+
--panel-heading-text-color: var(--panel-response-callback-heading-text-color);
|
|
1013
|
+
|
|
1014
|
+
--panel-response-schema-nested-background-color: var( --panel-response-callback-schema-nested-background-color);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* @tokens Panel try-it nested common
|
|
1019
|
+
* @presenter Color
|
|
1020
|
+
*/
|
|
1021
|
+
|
|
1022
|
+
--panel-try-it-nested-text-color: var(--text-color-inverse);
|
|
1023
|
+
--panel-try-it-nested-chevron-icon-color: var(--text-color-inverse);
|
|
1024
|
+
|
|
1025
|
+
--panel-try-it-nested-body-background-color: #3e4c59;
|
|
1026
|
+
--panel-try-it-nested-body-text-color: var(--text-color-inverse);
|
|
1027
|
+
--panel-try-it-nested-body-padding: var(--panel-body-padding); // @presenter Spacing
|
|
1028
|
+
--panel-try-it-nested-body-border-color: var(--color-secondary-800);
|
|
1029
|
+
|
|
1030
|
+
--panel-try-it-nested-heading-text-color: var(--text-color-inverse);
|
|
1031
|
+
--panel-try-it-nested-heading-background-color: transparent;
|
|
1032
|
+
--panel-try-it-nested-heading-border-color: var(--color-secondary-800);
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* @tokens Panel try-it nested
|
|
1036
|
+
* @presenter Color
|
|
1037
|
+
*/
|
|
1038
|
+
|
|
1039
|
+
.panel-try-it-nested {
|
|
1040
|
+
--panel-text-color: var(--panel-try-it-nested-text-color);
|
|
1041
|
+
--panel-chevron-icon-color: var(--panel-try-it-nested-chevron-icon-color);
|
|
1042
|
+
|
|
1043
|
+
--panel-body-text-color: var(--panel-try-it-nested-body-text-color);
|
|
1044
|
+
--panel-body-background-color: var(--panel-try-it-nested-body-background-color);
|
|
1045
|
+
--panel-body-padding-local: var(--panel-try-it-nested-body-padding); // @presenter Spacing
|
|
1046
|
+
|
|
1047
|
+
--panel-heading-text-color: var(--panel-try-it-nested-heading-text-color);
|
|
1048
|
+
--panel-heading-background-color: var(--panel-try-it-nested-heading-background-color);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* @tokens Panel samples tabs
|
|
1053
|
+
*/
|
|
1054
|
+
|
|
1055
|
+
--panel-samples-tabs-font-size: var(--panel-font-size); // @presenter FontSize
|
|
1056
|
+
--panel-samples-tabs-text-color: var(--text-color-inverse); // @presenter Color
|
|
1057
|
+
--panel-samples-tabs-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1058
|
+
--panel-samples-tabs-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1059
|
+
|
|
1060
|
+
--panel-samples-tabs-background-color: transparent; // @presenter Color
|
|
1061
|
+
--panel-samples-tabs-hover-background-color: #3c4c5a; // @presenter Color
|
|
1062
|
+
--panel-samples-tabs-active-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1063
|
+
|
|
1064
|
+
--panel-samples-tabs-border-color: var(--border-color-secondary); // @presenter Color
|
|
1065
|
+
--panel-samples-tabs-hover-border-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1066
|
+
--panel-samples-tabs-active-border-color: var(--color-accent-500); // @presenter Color
|
|
1067
|
+
|
|
1068
|
+
--panel-samples-code-block-background-color: var(--code-block-background-color); // @presenter Color
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* @tokens Panel try-it tabs
|
|
1072
|
+
*/
|
|
1073
|
+
|
|
1074
|
+
--panel-try-it-tabs-font-size: 12px; // @presenter FontSize
|
|
1075
|
+
--panel-try-it-tabs-text-color: var(--text-color-inverse); // @presenter Color
|
|
1076
|
+
--panel-try-it-tabs-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1077
|
+
--panel-try-it-tabs-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1078
|
+
--panel-try-it-tabs-disabled-text-color: var(--color-secondary-400); // @presenter Color
|
|
1079
|
+
|
|
1080
|
+
--panel-try-it-tabs-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1081
|
+
--panel-try-it-tabs-hover-background-color: var(--panel-samples-tabs-hover-background-color); // @presenter Color
|
|
1082
|
+
--panel-try-it-tabs-active-background-color: #47535e; // @presenter Color
|
|
1083
|
+
--panel-try-it-tabs-disabled-background-color: var(--color-secondary-500); // @presenter Color
|
|
1084
|
+
|
|
1085
|
+
--panel-try-it-tabs-border-color: transparent; // @presenter Color
|
|
1086
|
+
--panel-try-it-tabs-hover-border-color: var(--panel-try-it-tabs-active-border-color); // @presenter Color
|
|
1087
|
+
--panel-try-it-tabs-active-border-color: var(--color-accent-500); // @presenter Color
|
|
1088
|
+
--panel-try-it-tabs-disabled-border-color: transparent; // @presenter Color
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* @tokens Panel try-it action button
|
|
1092
|
+
*/
|
|
1093
|
+
|
|
1094
|
+
--panel-try-it-action-button-width: auto;
|
|
1095
|
+
--panel-try-it-action-button-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1096
|
+
--panel-try-it-action-button-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1097
|
+
--panel-try-it-action-button-font-size: var(--panel-font-size); // @presenter FontSize
|
|
1098
|
+
--panel-try-it-action-button-text-color: var(--text-color-inverse); // @presenter Color
|
|
1099
|
+
--panel-try-it-action-button-background-color: var(--color-primary-500); // @presenter Color
|
|
1100
|
+
--panel-try-it-action-button-border-color: transparent; // @presenter Color
|
|
1101
|
+
|
|
1102
|
+
--panel-try-it-action-button-active-text-color: var(--color-emphasis-900); // @presenter Color
|
|
1103
|
+
--panel-try-it-action-button-active-background-color: var(--color-emphasis-700); // @presenter Color
|
|
1104
|
+
--panel-try-it-action-button-active-border-color: var(--color-emphasis-700); // @presenter Color
|
|
1105
|
+
|
|
1106
|
+
--panel-try-it-action-button-hover-background-color: var(--color-emphasis-600); // @presenter Color
|
|
1107
|
+
--panel-try-it-action-button-hover-text-color: var(--color-emphasis-800); // @presenter Color
|
|
1108
|
+
--panel-try-it-action-button-hover-border-color: var(--color-emphasis-600); // @presenter Color
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* @tokens Panel samples other styles
|
|
1112
|
+
*/
|
|
1113
|
+
|
|
1114
|
+
--panel-samples-controls-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1115
|
+
--panel-samples-controls-hover-background-color: var(--panel-samples-tabs-hover-background-color); // @presenter Color
|
|
1116
|
+
--panel-samples-controls-text-color: var(--text-color-inverse); // @presenter Color
|
|
1117
|
+
|
|
1118
|
+
--panel-samples-dropdown-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1119
|
+
--panel-samples-dropdown-color: var(--text-color-inverse); // @presenter Color
|
|
1120
|
+
--panel-samples-dropdown-border: unset; // @presenter Border
|
|
1121
|
+
|
|
1122
|
+
--panel-samples-input-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* @tokens Panel try-it other styles
|
|
1126
|
+
*/
|
|
1127
|
+
|
|
1128
|
+
--panel-try-it-input-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1129
|
+
--panel-try-it-input-text-color: var(--text-color-inverse); // @presenter Color
|
|
1130
|
+
--panel-try-it-input-border: unset; // @presenter Border
|
|
1131
|
+
|
|
1132
|
+
--panel-try-it-dropdown-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1133
|
+
--panel-try-it-dropdown-color: var(--text-color-inverse); // @presenter Color
|
|
1134
|
+
--panel-try-it-border: unset; // @presenter Border
|
|
1135
|
+
|
|
1136
|
+
// @tokens End
|
|
1137
|
+
|
|
1138
|
+
// TODO PUL RIGHT section - related to pull right - fix later
|
|
1139
|
+
|
|
1140
|
+
--samples-panel-markdown-background-color: #3c4c5a;
|
|
1141
|
+
--samples-panel-markdown-border-color: #46596a;
|
|
1142
|
+
|
|
1143
|
+
--layout-right-rail-width: 50%;
|
|
1144
|
+
--layout-right-rail-background-color: transparent;
|
|
1145
|
+
`;
|
|
1146
|
+
const tooltip = (0, styled_components_1.css) `
|
|
1147
|
+
/**
|
|
1148
|
+
* @tokens Tooltip Base
|
|
1149
|
+
* @presenter Color
|
|
1150
|
+
*/
|
|
1151
|
+
--tooltip-text-color: var(--color-secondary-200);
|
|
1152
|
+
--tooltip-background-color: var(--color-emphasis-600);
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* @tokens Tooltip Copy Button
|
|
1156
|
+
* @presenter Color
|
|
1157
|
+
*/
|
|
1158
|
+
|
|
1159
|
+
--copy-button-tooltip-text-color: #000;
|
|
1160
|
+
--copy-button-tooltip-background-color: var(--background-color);
|
|
1161
|
+
|
|
1162
|
+
.tooltip-copy-button {
|
|
1163
|
+
--tooltip-text-color: var(--copy-button-tooltip-text-color);
|
|
1164
|
+
--tooltip-background-color: var(--copy-button-tooltip-background-color);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
// @tokens End
|
|
1168
|
+
`;
|
|
1169
|
+
const code = (0, styled_components_1.css) `
|
|
1170
|
+
/**
|
|
1171
|
+
* @tokens Code base styles
|
|
1172
|
+
*/
|
|
1173
|
+
--code-font-size: 13px; // @presenter FontSize
|
|
1174
|
+
--code-font-family: var(--font-family-monospaced); // @presenter FontFamily
|
|
1175
|
+
--code-font-weight: 400; // @presenter FontWeight
|
|
1176
|
+
--code-wrap: pre;
|
|
1177
|
+
--code-word-break: break-word;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* @tokens Inline Code
|
|
1181
|
+
*/
|
|
1182
|
+
--inline-code-font-size: var(--code-font-size); // @presenter FontSize
|
|
1183
|
+
--inline-code-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1184
|
+
--inline-code-text-color: #e53935; // @presenter Color
|
|
1185
|
+
--inline-code-background-color: var(--colors-translucent); // @presenter Color
|
|
1186
|
+
--inline-code-border-color: var(--border-color); // @presenter Color
|
|
1187
|
+
--inline-code-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* @tokens Code Block
|
|
1191
|
+
*/
|
|
1192
|
+
--code-block-font-size: var(--code-font-size); // @presenter FontSize
|
|
1193
|
+
--code-block-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1194
|
+
--code-block-text-color: #fff; // @presenter Color
|
|
1195
|
+
--code-block-background-color: #323f4b; // @presenter Color
|
|
1196
|
+
--code-block-border-color: var(--border-color); // @presenter Color
|
|
1197
|
+
--code-block-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
1198
|
+
--code-block-max-height: 600px;
|
|
1199
|
+
--code-block-word-break: initial;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* @tokens Code Block controls
|
|
1203
|
+
*/
|
|
1204
|
+
|
|
1205
|
+
--code-block-controls-text-color: #fff; // @presenter Color
|
|
1206
|
+
--code-block-controls-hover-text-color: #fff; // @presenter Color
|
|
1207
|
+
--code-block-controls-background-color: transparent; // @presenter Color
|
|
1208
|
+
--code-block-controls-hover-background-color: rgba(255, 255, 255, 0.15); // @presenter Color
|
|
1209
|
+
--code-block-controls-opacity: 0.5;
|
|
1210
|
+
--code-block-controls-active-opacity: 1;
|
|
1211
|
+
--code-block-controls-padding: 0 5px; // @presenter Spacing
|
|
1212
|
+
--code-block-controls-font-size: var(--font-size-base); // @presenter FontSize
|
|
1213
|
+
--code-block-controls-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1214
|
+
--code-block-controls-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* @tokens Code Block tokens
|
|
1218
|
+
*/
|
|
1219
|
+
--code-block-tokens-default-color: var(--text-color-inverse); // @presenter Color
|
|
1220
|
+
--code-block-tokens-comment-color: hsl(30, 20%, 50%); // @presenter Color
|
|
1221
|
+
--code-block-tokens-prolog-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
1222
|
+
--code-block-tokens-doctype-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
1223
|
+
--code-block-tokens-cdata-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
1224
|
+
--code-block-tokens-property-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
1225
|
+
--code-block-tokens-tag-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
1226
|
+
--code-block-tokens-number-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
1227
|
+
--code-block-tokens-constant-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
1228
|
+
--code-block-tokens-symbol-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
1229
|
+
--code-block-tokens-boolean-color: var(--color-error-500); // @presenter Color
|
|
1230
|
+
--code-block-tokens-string-color: #fee39e; // @presenter Color
|
|
1231
|
+
--code-block-tokens-property-string-color: #9efaa7; // @presenter Color
|
|
1232
|
+
--code-block-tokens-selector-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1233
|
+
--code-block-tokens-attr-name-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1234
|
+
--code-block-tokens-char-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1235
|
+
--code-block-tokens-builtin-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1236
|
+
--code-block-tokens-inserted-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1237
|
+
--code-block-tokens-link-color: #4ed2ba; // @presenter Color
|
|
1238
|
+
--code-block-tokens-operator-color: #f5b83d; // @presenter Color
|
|
1239
|
+
--code-block-tokens-entity-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
1240
|
+
--code-block-tokens-url-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
1241
|
+
--code-block-tokens-variable-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
1242
|
+
--code-block-tokens-keyword-color: #ffdbf4; // @presenter Color
|
|
1243
|
+
--code-block-tokens-atrule-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
1244
|
+
--code-block-tokens-attr-value-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
1245
|
+
--code-block-tokens-regex-color: #e90; // @presenter Color
|
|
1246
|
+
--code-block-tokens-important-color: var(--code-block-tokens-regex-color); // @presenter Color
|
|
1247
|
+
--code-block-tokens-deleted-color: red; // @presenter Color
|
|
1248
|
+
|
|
1249
|
+
// @tokens End
|
|
1250
|
+
`;
|
|
1251
|
+
const links = (0, styled_components_1.css) `
|
|
1252
|
+
/**
|
|
1253
|
+
* @tokens Links
|
|
1254
|
+
*/
|
|
1255
|
+
--link-text-color: var(--color-primary-500); // @presenter Color
|
|
1256
|
+
--link-decoration: none;
|
|
1257
|
+
--link-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1258
|
+
|
|
1259
|
+
--link-hover-text-color: var(--color-primary-100); // @presenter Color
|
|
1260
|
+
--link-hover-decoration: underline;
|
|
1261
|
+
|
|
1262
|
+
--link-active-decoration: none;
|
|
1263
|
+
--link-active-text-color: var(--color-primary-500); // @presenter Color
|
|
1264
|
+
|
|
1265
|
+
--link-visited-text-color: var(--color-primary-500); // @presenter Color
|
|
1266
|
+
--link-visited-decoration: none;
|
|
1267
|
+
|
|
1268
|
+
// @tokens End
|
|
1269
|
+
`;
|
|
1270
|
+
const apiReferenceDocs = (0, styled_components_1.css) `
|
|
1271
|
+
/* === ref docs and graphql docs specific === */
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* @tokens API Reference Schemas Layout
|
|
1275
|
+
*/
|
|
1276
|
+
|
|
1277
|
+
--layout-controls-top-offset: 20px; // @presenter Spacing
|
|
1278
|
+
--layout-controls-height: 36px; // @presenter Spacing
|
|
1279
|
+
--layout-controls-width: 36px; // @presenter Spacing
|
|
1280
|
+
|
|
1281
|
+
--layout-stacked-small-max-width: 90%;
|
|
1282
|
+
--layout-stacked-medium-max-width: 75%;
|
|
1283
|
+
--layout-stacked-large-max-width: 1200px;
|
|
1284
|
+
|
|
1285
|
+
--layout-three-panel-small-max-width: 100%;
|
|
1286
|
+
--layout-three-panel-medium-max-width: 100%;
|
|
1287
|
+
--layout-three-panel-large-max-width: 1800px;
|
|
1288
|
+
|
|
1289
|
+
--layout-panel-schemas-small-max-width: none;
|
|
1290
|
+
--layout-panel-schemas-medium-max-width: none;
|
|
1291
|
+
--layout-panel-schemas-large-max-width: none;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* @tokens API Reference Schemas MimeType Dropdown
|
|
1295
|
+
*/
|
|
1296
|
+
|
|
1297
|
+
--schemas-mime-type-dropdown-padding: 0px 26px 0px 4px;
|
|
1298
|
+
--schemas-mime-type-dropdown-border: var(--dropdown-border); // @presenter Border
|
|
1299
|
+
--schemas-mime-type-dropdown-font-size: var(--dropdown-font-size); // @presenter FontSize
|
|
1300
|
+
--schemas-mime-type-dropdown-text-color: var(--dropdown-text-color); // @presenter Color
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* @tokens API Reference Schemas Discriminator Dropdown
|
|
1304
|
+
*/
|
|
1305
|
+
|
|
1306
|
+
--schemas-discriminator-dropdown-padding: 2px 24px 2px 8px;
|
|
1307
|
+
--schemas-discriminator-dropdown-border: 1px solid var(--border-color); // @presenter Border
|
|
1308
|
+
--schemas-discriminator-font-size: var(--dropdown-font-size); // @presenter FontSize
|
|
1309
|
+
--schemas-discriminator-dropdown-text-color: var(--dropdown-text-color); // @presenter Color
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* @tokens API Reference Schemas Titles
|
|
1313
|
+
*/
|
|
1314
|
+
|
|
1315
|
+
--schema-type-title-text-color: var(--text-color-secondary); // @presenter Color
|
|
1316
|
+
--schema-type-text-color: var(--text-color-secondary); // @presenter Color
|
|
1317
|
+
--schema-labels-font-size: 1em; // @presenter FontSize
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* @tokens API Reference Schemas Lines Color
|
|
1321
|
+
*/
|
|
1322
|
+
|
|
1323
|
+
--schemas-lines-color: var(--border-color); // @presenter Color
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* @tokens API Reference Schema Inline code typography
|
|
1327
|
+
*/
|
|
1328
|
+
|
|
1329
|
+
--schema-inline-code-font-family: var(--inline-code-font-family); // @presenter FontFamily
|
|
1330
|
+
--schema-inline-code-font-size: var(--inline-code-font-size); // @presenter FontSize
|
|
1331
|
+
--schema-inline-code-text-color: var(--text-color); // @presenter Color
|
|
1332
|
+
--schema-inline-background-color: var(--colors-translucent); // @presenter Color
|
|
1333
|
+
--schema-inline-border-color: var(--border-color); // @presenter Color
|
|
1334
|
+
--schema-inline-border: 1px solid var(--schema-inline-border-color); // @presenter Border
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* @tokens API Reference Schema Example Label colors
|
|
1338
|
+
* @presenter Color
|
|
1339
|
+
*/
|
|
1340
|
+
|
|
1341
|
+
--schema-example-text-color: var(--schema-inline-code-text-color);
|
|
1342
|
+
--schema-example-background-color: var(--schema-inline-background-color);
|
|
1343
|
+
--schema-example-border-color: var(--schema-inline-border-color);
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* @tokens API Reference Schema Constraint Label colors
|
|
1347
|
+
* @presenter Color
|
|
1348
|
+
*/
|
|
1349
|
+
|
|
1350
|
+
--schema-constraint-text-color: var(--schema-inline-code-text-color);
|
|
1351
|
+
--schema-constraint-background-color: var(--schema-inline-background-color);
|
|
1352
|
+
--schema-constraint-border-color: var(--schema-inline-border-color);
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* @tokens API Reference Schema Enum Label colors
|
|
1356
|
+
* @presenter Color
|
|
1357
|
+
*/
|
|
1358
|
+
|
|
1359
|
+
--schema-enum-text-color: var(--schema-inline-code-text-color);
|
|
1360
|
+
--schema-enum-background-color: var(--schema-inline-background-color);
|
|
1361
|
+
--schema-enum-border-color: var(--schema-inline-border-color);
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* @tokens API Reference Schema Default Label colors
|
|
1365
|
+
* @presenter Color
|
|
1366
|
+
*/
|
|
1367
|
+
|
|
1368
|
+
--schema-default-text-color: var(--schema-inline-code-text-color);
|
|
1369
|
+
--schema-default-background-color: var(--schema-inline-background-color);
|
|
1370
|
+
--schema-default-border-color: var(--schema-inline-border-color);
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* @tokens API Reference Schema Recursive Label colors
|
|
1374
|
+
* @presenter Color
|
|
1375
|
+
*/
|
|
1376
|
+
|
|
1377
|
+
--schema-recursive-text-color: var(--color-warning-600);
|
|
1378
|
+
--schema-recursive-background-color: var(--schema-inline-background-color);
|
|
1379
|
+
--schema-recursive-border-color: var(--schema-inline-border-color);
|
|
1380
|
+
|
|
1381
|
+
/**
|
|
1382
|
+
* @tokens GraphQL Docs Reference Schema Non null label
|
|
1383
|
+
* @presenter Color
|
|
1384
|
+
*/
|
|
1385
|
+
|
|
1386
|
+
--schema-non-null-text-color: var(--schema-inline-code-text-color);
|
|
1387
|
+
--schema-non-null-background-color: var(--schema-inline-background-color);
|
|
1388
|
+
--schema-non-null-border-color: var(--schema-inline-border-color);
|
|
1389
|
+
/**
|
|
1390
|
+
* @tokens API Reference Schema Nested styles
|
|
1391
|
+
*/
|
|
1392
|
+
|
|
1393
|
+
--schema-nested-offset: 1em; // @presenter Spacing
|
|
1394
|
+
--schema-nested-background-color: var(--colors-translucent); // @presenter Color
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* @tokens API Reference Schema Buttons
|
|
1398
|
+
*/
|
|
1399
|
+
|
|
1400
|
+
--schema-buttons-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1401
|
+
--schema-buttons-font-weight: var(--code-font-weight); // @presenter FontWeight
|
|
1402
|
+
--schema-buttons-font-size: var(--code-font-size); // @presenter FontSize
|
|
1403
|
+
|
|
1404
|
+
--schema-buttons-text-color: var(--color-emphasis-700); // @presenter Color
|
|
1405
|
+
--schema-buttons-background-color: transparent; // @presenter Color
|
|
1406
|
+
--schema-buttons-border-color: var(--color-secondary-500); // @presenter Color
|
|
1407
|
+
|
|
1408
|
+
--schema-buttons-hover-background-color: var(--color-secondary-300); // @presenter Color
|
|
1409
|
+
--schema-buttons-active-background-color: var(--color-secondary-400); // @presenter Color
|
|
1410
|
+
|
|
1411
|
+
--schema-buttons-selected-text-color: var(--schema-buttons-text-color); // @presenter Color
|
|
1412
|
+
--schema-buttons-selected-background-color: var(--color-secondary-300); // @presenter Color
|
|
1413
|
+
--schema-buttons-selected-border-color: var(--schema-buttons-border-color); // @presenter Color
|
|
1414
|
+
--schema-buttons-selected-hover-background-color: var(--color-secondary-400); // @presenter Color
|
|
1415
|
+
--schema-buttons-selected-active-background-color: var(--color-secondary-400); // @presenter Color
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* @tokens API Reference Schema Properties
|
|
1419
|
+
*/
|
|
1420
|
+
|
|
1421
|
+
--schemas-property-name-text-color: var(--text-color); //@presenter Color
|
|
1422
|
+
--schemas-property-name-font-size: var(--code-font-size); // @presenter FontSize
|
|
1423
|
+
--schemas-property-name-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1424
|
+
|
|
1425
|
+
--schemas-property-deprecated-text-color: var(--text-color); // @presenter Color
|
|
1426
|
+
|
|
1427
|
+
--schema-property-labels-font-size: var(--schema-labels-font-size); // @presenter FontSize
|
|
1428
|
+
--schema-property-required-label-text-color: var(--color-error-900); // @presenter Color
|
|
1429
|
+
--schema-property-additional-label-text-color: var(--text-color-secondary); // @presenter Color
|
|
1430
|
+
--schema-property-access-label-text-color: var(--text-color-secondary); // @presenter Color
|
|
1431
|
+
|
|
1432
|
+
--schema-property-details-width: 70%;
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* @tokens API Reference Schema Icons
|
|
1436
|
+
*/
|
|
1437
|
+
|
|
1438
|
+
--schema-chevron-color: var(--text-color); // @presenter Color
|
|
1439
|
+
--schema-chevron-size: 9px;
|
|
1440
|
+
|
|
1441
|
+
--schema-property-deep-link-icon-color: var(--color-primary-500); // @presenter Color
|
|
1442
|
+
--schema-property-deep-link-icon: none;
|
|
1443
|
+
|
|
1444
|
+
/*
|
|
1445
|
+
* @tokens API Reference Other
|
|
1446
|
+
*/
|
|
1447
|
+
|
|
1448
|
+
--loading-spinner-color: var(--color-primary-500); // @presenter Color
|
|
1449
|
+
--linear-progress-color: var(--color-accent-500); // @presenter Color
|
|
1450
|
+
--linear-progress-background-color: var(--color-accent-100); // @presenter Color
|
|
1451
|
+
|
|
1452
|
+
--fab-background-color: var(--color-primary-500); // @presenter Color
|
|
1453
|
+
--fab-box-shadow: var(--box-shadow); // @presenter Shadow
|
|
1454
|
+
|
|
1455
|
+
--fab-hover-background: var(--color-primary-500); // @presenter Color
|
|
1456
|
+
--fab-hover-box-shadow: var(--box-shadow); // @presenter Shadow
|
|
1457
|
+
|
|
1458
|
+
--fab-active-background: var(--color-primary-500); // @presenter Color
|
|
1459
|
+
--fab-active-box-shadow: var(--box-shadow); // @presenter Shadow
|
|
1460
|
+
|
|
1461
|
+
--fab-icon: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3C!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 294.842 294.842' style='enable-background:new 0 0 294.842 294.842;' xml:space='preserve'%3E%3Cg%3E%3Cpath fill='%23fff' d='M292.128,214.846c-2.342-2.344-6.143-2.344-8.484,0l-59.512,59.511V6c0-3.313-2.687-6-6-6s-6,2.687-6,6v268.356 l-59.513-59.512c-2.342-2.342-6.142-2.343-8.485,0.001c-2.343,2.343-2.343,6.142,0.001,8.485l69.755,69.754 c1.171,1.171,2.707,1.757,4.242,1.757s3.071-0.586,4.242-1.758l69.754-69.754C294.472,220.987,294.472,217.188,292.128,214.846z'/%3E%3Cpath fill='%23fff' d='M6.956,12h180.137c3.313,0,6-2.687,6-6s-2.687-6-6-6H6.956c-3.313,0-6,2.687-6,6S3.643,12,6.956,12z'/%3E%3Cpath fill='%23fff' d='M6.956,82.228h180.137c3.313,0,6-2.687,6-6s-2.687-6-6-6H6.956c-3.313,0-6,2.687-6,6S3.643,82.228,6.956,82.228z'/%3E%3Cpath fill='%23fff' d='M6.956,152.456h180.137c3.313,0,6-2.687,6-6s-2.687-6-6-6H6.956c-3.313,0-6,2.687-6,6S3.643,152.456,6.956,152.456z'/%3E%3Cpath fill='%23fff' d='M124.438,210.685H6.956c-3.313,0-6,2.687-6,6s2.687,6,6,6h117.482c3.313,0,6-2.687,6-6S127.752,210.685,124.438,210.685z' /%3E%3Cpath fill='%23fff' d='M124.438,280.912H6.956c-3.313,0-6,2.687-6,6s2.687,6,6,6h117.482c3.313,0,6-2.687,6-6S127.752,280.912,124.438,280.912z' /%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3C/svg%3E%0A");
|
|
1462
|
+
|
|
1463
|
+
// @tokens End
|
|
1464
|
+
`;
|
|
1465
|
+
const badges = (0, styled_components_1.css) `
|
|
1466
|
+
/**
|
|
1467
|
+
* @tokens Default Badge
|
|
1468
|
+
*/
|
|
1469
|
+
--badge-text-color: var(--color-emphasis-50); // @presenter Color
|
|
1470
|
+
--badge-background-color: var(--color-primary-500); // @presenter Color
|
|
1471
|
+
--badge-border-color: var(--color-primary-700); // @presenter Color
|
|
1472
|
+
--badge-border: 1px solid var(--badge-border-color); // @presenter Border
|
|
1473
|
+
--badge-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* @tokens Deprecated Badge
|
|
1477
|
+
*/
|
|
1478
|
+
|
|
1479
|
+
--badge-deprecated-text-color: var(--color-emphasis-50); // @presenter Color
|
|
1480
|
+
--badge-deprecated-background-color: var(--color-warning-500); // @presenter Color
|
|
1481
|
+
--badge-deprecated-border-color: var(--color-warning-700); // @presenter Color
|
|
1482
|
+
--badge-deprecated-border: 1px solid var(--badge-deprecated-border-color); // @presenter Border
|
|
1483
|
+
--badge-deprecated-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* @tokens Http Badge
|
|
1487
|
+
*/
|
|
1488
|
+
|
|
1489
|
+
--badge-http-font-size: 12px; // @presenter FontSize
|
|
1490
|
+
--badge-http-line-height: 20px; // @presenter LineHeight
|
|
1491
|
+
--badge-http-text-color: var(--badge-text-color); // @presenter Color
|
|
1492
|
+
--badge-http-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1493
|
+
--badge-http-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1494
|
+
--badge-http-border-radius: calc(var(--border-radius-lg) * 2); // @presenter BorderRadius
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* @tokens Sidebar item badge http
|
|
1498
|
+
*/
|
|
1499
|
+
|
|
1500
|
+
--sidebar-item-badge-http-text-color: var(--badge-text-color); // @presenter Color
|
|
1501
|
+
--sidebar-item-badge-http-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1502
|
+
--sidebar-item-badge-http-font-size: 8px; // @presenter FontSize
|
|
1503
|
+
--sidebar-item-badge-http-font-weight: normal; //@presenter FontWeight
|
|
1504
|
+
--sidebar-item-badge-http-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
1505
|
+
|
|
1506
|
+
// @tokens End
|
|
1507
|
+
`;
|
|
1508
|
+
const footer = (0, styled_components_1.css) `
|
|
1509
|
+
/**
|
|
1510
|
+
* @tokens Footer
|
|
1511
|
+
*/
|
|
1512
|
+
--footer-background-color: var(--color-primary-500); // @presenter Color
|
|
1513
|
+
--footer-text-color: #fff; // @presenter Color
|
|
1514
|
+
|
|
1515
|
+
--footer-padding-vertical: 2em; // @presenter Spacing
|
|
1516
|
+
--footer-padding-horizontal: 20px; // @presenter Spacing
|
|
1517
|
+
|
|
1518
|
+
--footer-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1519
|
+
--footer-font-size: 1rem; // @presenter FontSize
|
|
1520
|
+
--footer-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1521
|
+
|
|
1522
|
+
--footer-title-text-color: var(--footer-text-color); // @presenter Color
|
|
1523
|
+
--footer-title-font-size: 24px; // @presenter FontSize
|
|
1524
|
+
--footer-title-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1525
|
+
--footer-title-margin-vertical: 1.5em;
|
|
1526
|
+
|
|
1527
|
+
--footer-link-text-color: var(--footer-text-color); // @presenter Color
|
|
1528
|
+
--footer-link-hover-color: var(--footer-text-color); // @presenter Color
|
|
1529
|
+
|
|
1530
|
+
--footer-item-padding-vertical: 0.5em; // @presenter Spacingv
|
|
1531
|
+
--footer-item-padding-horizontal: 0;
|
|
1532
|
+
|
|
1533
|
+
--footer-column-width: 20%; // @presenter Spacing
|
|
1534
|
+
--footer-column-margin-vertical: 20px; // @presenter Spacing
|
|
1535
|
+
--footer-column-margin-horizontal: 0; // @presenter Spacing
|
|
1536
|
+
|
|
1537
|
+
--footer-container-max-width: 1200px; // @presenter Spacing
|
|
1538
|
+
|
|
1539
|
+
// @tokens End
|
|
1540
|
+
`;
|
|
1541
|
+
const logo = (0, styled_components_1.css) `
|
|
1542
|
+
/**
|
|
1543
|
+
* @tokens Logo
|
|
1544
|
+
*/
|
|
1545
|
+
|
|
1546
|
+
--navbar-logo-height: 2rem; // @presenter Spacing
|
|
1547
|
+
--navbar-logo-width: auto;
|
|
1548
|
+
--navbar-logo-margin: 16px; // @presenter Spacing
|
|
1549
|
+
--navbar-logo-max-width: 285px; // @presenter Spacing
|
|
1550
|
+
--navbar-logo-max-height: 285px; // @presenter Spacing
|
|
1551
|
+
|
|
1552
|
+
// @tokens End
|
|
1553
|
+
`;
|
|
1554
|
+
const navbar = (0, styled_components_1.css) `
|
|
1555
|
+
/**
|
|
1556
|
+
* @tokens Navbar
|
|
1557
|
+
*/
|
|
1558
|
+
--navbar-height: 60px; // @presenter Spacing
|
|
1559
|
+
--navbar-text-color: #fff; // @presenter Color
|
|
1560
|
+
--navbar-background-color: var(--color-primary-500); // @presenter Color
|
|
1561
|
+
--navbar-container-max-width: 100%;
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* @tokens Navbar Item
|
|
1565
|
+
* */
|
|
1566
|
+
--navbar-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1567
|
+
--navbar-item-font-size: 16px; // @presenter FontSize
|
|
1568
|
+
--navbar-item-padding-horizontal: 16px; // @presenter Spacing
|
|
1569
|
+
--navbar-item-paddin-vertical: 8px; // @presenter Spacing
|
|
1570
|
+
--navbar-item-margin-horizontal: 7px;
|
|
1571
|
+
--navbar-item-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1572
|
+
--navbar-item-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1573
|
+
--navbar-item-hover-background-color: var(--color-primary-300);
|
|
1574
|
+
--navbar-item-active-background-color: var(--color-primary-300); // @presenter Color
|
|
1575
|
+
--navbar-item-hover-text-color: var(--navbar-text-color); // @presenter Color
|
|
1576
|
+
--navbar-item-hover-text-decoration: none;
|
|
1577
|
+
--navbar-item-active-text-color: var(--navbar-text-color); // @presenter Color
|
|
1578
|
+
--navbar-item-active-text-decoration: none;
|
|
1579
|
+
--navbar-item-separator-line-color: var(--border-color); // @presenter Color
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* @tokens Navbar dropdown
|
|
1583
|
+
* */
|
|
1584
|
+
|
|
1585
|
+
--navbar-dropdown-shadow: 4px 4px 15px -2px rgba(0, 0, 0, 0.5); //should be variable
|
|
1586
|
+
--navbar-dropdown-background: var(--navbar-item-active-background-color);
|
|
1587
|
+
--navbar-dropdown-border: none;
|
|
1588
|
+
|
|
1589
|
+
// @tokens End
|
|
1590
|
+
`;
|
|
1591
|
+
const toc = (0, styled_components_1.css) `
|
|
1592
|
+
/**
|
|
1593
|
+
* @tokens TOC
|
|
1594
|
+
* */
|
|
1595
|
+
|
|
1596
|
+
--toc-width: 240px;
|
|
1597
|
+
--toc-background-color: transparent;
|
|
1598
|
+
--toc-border-color: var(--border-color);
|
|
1599
|
+
|
|
1600
|
+
--toc-spacing-unit: 8px;
|
|
1601
|
+
--toc-offset-top: calc(var(--toc-spacing-unit) * 2);
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* @tokens TOC item typography
|
|
1605
|
+
*/
|
|
1606
|
+
--toc-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1607
|
+
--toc-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* @tokens TOC item
|
|
1611
|
+
*/
|
|
1612
|
+
|
|
1613
|
+
--toc-item-text-color: var(--text-color); // @presenter Color
|
|
1614
|
+
--toc-item-active-text-color: var(--text-color); // @presenter Color
|
|
1615
|
+
--toc-item-background-color: transparent; // @presenter Color
|
|
1616
|
+
--toc-item-active-background-color: var(--border-color); // @presenter Color
|
|
1617
|
+
--toc-item-nested-offset: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
1618
|
+
--toc-item-padding-vertical: var(--toc-spacing-unit); // @presenter Spacing
|
|
1619
|
+
--toc-item-padding-horizontal: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* @tokens TOC header
|
|
1623
|
+
*/
|
|
1624
|
+
|
|
1625
|
+
--toc-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
1626
|
+
--toc-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1627
|
+
--toc-heading-font-weight: bold; // @presenter FontWeight
|
|
1628
|
+
--toc-heading-text-color: var(--text-color); // @presenter Color
|
|
1629
|
+
|
|
1630
|
+
// @tokens End
|
|
1631
|
+
`;
|
|
1632
|
+
const loadProgressBar = (0, styled_components_1.css) `
|
|
1633
|
+
/**
|
|
1634
|
+
* @tokens Load progress bar
|
|
1635
|
+
*/
|
|
1636
|
+
|
|
1637
|
+
--load-progress-bar-color: var(--color-secondary-500); // @presenter Color
|
|
1638
|
+
--load-progress-bar-shadow: 0 0 10px var(--load-progress-bar-color),
|
|
1639
|
+
0 0 5px var(--load-progress-bar-color); // @presenter BoxShadow
|
|
1640
|
+
--load-progress-bar-height: 2px; // @presenter Height
|
|
1641
|
+
|
|
1642
|
+
// @tokens End
|
|
1643
|
+
|
|
1644
|
+
/* Make clicks pass-through */
|
|
1645
|
+
#nprogress {
|
|
1646
|
+
pointer-events: none;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
#nprogress .bar {
|
|
1650
|
+
background: var(--load-progress-bar-color);
|
|
1651
|
+
|
|
1652
|
+
position: fixed;
|
|
1653
|
+
z-index: 1031;
|
|
1654
|
+
top: 0;
|
|
1655
|
+
left: 0;
|
|
1656
|
+
|
|
1657
|
+
width: 100%;
|
|
1658
|
+
height: var(--load-progress-bar-height);
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
#nprogress .peg {
|
|
1662
|
+
display: block;
|
|
1663
|
+
position: absolute;
|
|
1664
|
+
right: 0px;
|
|
1665
|
+
width: 100px;
|
|
1666
|
+
height: 100%;
|
|
1667
|
+
box-shadow: var(--load-progress-bar-shadow);
|
|
1668
|
+
opacity: 1;
|
|
1669
|
+
|
|
1670
|
+
-webkit-transform: rotate(3deg) translate(0px, -4px);
|
|
1671
|
+
-ms-transform: rotate(3deg) translate(0px, -4px);
|
|
1672
|
+
transform: rotate(3deg) translate(0px, -4px);
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
.nprogress-custom-parent {
|
|
1676
|
+
overflow: hidden;
|
|
1677
|
+
position: relative;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
.nprogress-custom-parent #nprogress .bar {
|
|
1681
|
+
position: absolute;
|
|
1682
|
+
}
|
|
1683
|
+
`;
|
|
1684
|
+
const inputs = (0, styled_components_1.css) `
|
|
1685
|
+
/**
|
|
1686
|
+
* @tokens Inputs
|
|
1687
|
+
*/
|
|
1688
|
+
--input-text-color: var(--text-color-inverse); // @presenter Color
|
|
1689
|
+
--input-border: none; // @presenter Border
|
|
1690
|
+
--input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1691
|
+
--input-font-size: var(--font-size-base); // @presenter FontSize
|
|
1692
|
+
--input-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1693
|
+
--input-line-height: 1.15em; // @presenter LineHeight
|
|
1694
|
+
--input-padding: 8px;
|
|
1695
|
+
|
|
1696
|
+
--input-hover-text-color: var(--text-color-inverse); // @presenter Color
|
|
1697
|
+
--input-hover-border: none; // @presenter Border
|
|
1698
|
+
--input-focus-border: none; // @presenter Border
|
|
1699
|
+
--input-focus-text-color: var(--text-color-inverse); // @presenter Color
|
|
1700
|
+
--input-placeholder-text-color: var(--text-color-inverse); // @presenter Color
|
|
1701
|
+
|
|
1702
|
+
// @tokens End
|
|
1703
|
+
`;
|
|
1704
|
+
const markdown = (0, styled_components_1.css) `
|
|
1705
|
+
/**
|
|
1706
|
+
* @tokens Markdown Container
|
|
1707
|
+
*/
|
|
1708
|
+
|
|
1709
|
+
--md-container-max-width: 910px;
|
|
1710
|
+
--md-container-padding-vertical: 25px; // @presenter Spacing
|
|
1711
|
+
--md-container-padding-horizontal: 0px; // @presenter Spacing
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* @tokens Markdown Blockquote
|
|
1715
|
+
*/
|
|
1716
|
+
|
|
1717
|
+
--md-blockquote-margin-vertical: 1.5em; // @presenter Spacing
|
|
1718
|
+
--md-blockquote-margin-horizontal: 0; // @presenter Spacing
|
|
1719
|
+
--md-blockquote-padding-vertical: 0; // @presenter Spacing
|
|
1720
|
+
--md-blockquote-padding-horizontal: calc(var(--spacing-unit) * 4); // @presenter Spacing
|
|
1721
|
+
--md-blockquote-border-color: var(--border-color); // @presenter Color
|
|
1722
|
+
--md-blockquote-background-color: transparent; // @presenter Color
|
|
1723
|
+
--md-blockquote-border-left: 4px solid var(--md-blockquote-border-color); // @presenter Border
|
|
1724
|
+
--md-blockquote-text-color: var(--text-color); // @presenter Color
|
|
1725
|
+
--md-blockquote-box-shadow: none; // @presenter Shadow
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* @tokens Markdown Paragraph
|
|
1729
|
+
*/
|
|
1730
|
+
|
|
1731
|
+
--md-paragraph-margin-vertical: 10px; // @presenter Spacing
|
|
1732
|
+
--md-paragraph-margin-horizontal: 0px; // @presenter Spacing
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* @tokens Markdown Table
|
|
1736
|
+
*/
|
|
1737
|
+
|
|
1738
|
+
--md-table-font-size: 14px; // @presenter FontSize
|
|
1739
|
+
--md-table-margin-vertical: 20px; // @presenter Spacing
|
|
1740
|
+
--md-table-background-color: transparent; // @presenter Color
|
|
1741
|
+
|
|
1742
|
+
--md-table-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
1743
|
+
--md-table-border-width: 1px;
|
|
1744
|
+
--md-table-border-color: var(--border-color); // @presenter Color
|
|
1745
|
+
|
|
1746
|
+
--md-table-stripe-background-color: var(--md-table-background-color); // @presenter Color
|
|
1747
|
+
|
|
1748
|
+
--md-table-cell-text-color: var(--text-color); // @presenter Color
|
|
1749
|
+
--md-table-cell-padding: 12px; // @presenter Spacing
|
|
1750
|
+
|
|
1751
|
+
--md-table-head-background-color: var(--color-secondary-200); // @presenter Color
|
|
1752
|
+
--md-table-head-text-color: var(--text-color); // @presenter Color
|
|
1753
|
+
--md-table-head-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* @tokens Markdown Horizontal Rule
|
|
1757
|
+
*/
|
|
1758
|
+
|
|
1759
|
+
--md-hr-background-color: transparent; // @presenter Color
|
|
1760
|
+
--md-hr-border-color: var(--border-color); // @presenter Color
|
|
1761
|
+
--md-hr-height: unset;
|
|
1762
|
+
--md-hr-margin-vertical: 20px; // @presenter Spacing
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* @tokens Markdown List
|
|
1766
|
+
*/
|
|
1767
|
+
|
|
1768
|
+
--md-list-left-padding: 2rem; // @presenter Spacing
|
|
1769
|
+
--md-list-margin: 1rem; // @presenter Spacing
|
|
1770
|
+
--md-list-item-margin: 0.25rem; // @presenter Spacing
|
|
1771
|
+
--md-list-item-style: inherit;
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
* @tokens Markdown Numbered List
|
|
1775
|
+
*/
|
|
1776
|
+
|
|
1777
|
+
--md-numbered-list-number-display: none;
|
|
1778
|
+
--md-numbered-list-item-style: var(--md-list-item-style);
|
|
1779
|
+
--md-numbered-list-number-text-color: var(--color-secondary-100); // @presenter Color
|
|
1780
|
+
--md-numbered-list-number-font-size: var(--font-size-base); // @presenter FontSize
|
|
1781
|
+
--md-numbered-list-number-font-family: var(--font-size-base); // @presenter FontFamily
|
|
1782
|
+
--md-numbered-list-number-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1783
|
+
--md-numbered-list-number-background-color: var(--color-secondary-800); // @presenter Color
|
|
1784
|
+
--md-numbered-list-number-border-radius: 10px; // @presenter BorderRadius
|
|
1785
|
+
--md-numbered-list-number-margin-right: 5px; // @presenter Spacing
|
|
1786
|
+
--md-numbered-list-number-padding: 0 5px; // @presenter Spacing
|
|
1787
|
+
|
|
1788
|
+
// @tokens End
|
|
1789
|
+
`;
|
|
1790
|
+
const search = (0, styled_components_1.css) `
|
|
1791
|
+
/**
|
|
1792
|
+
* @tokens Search
|
|
1793
|
+
*/
|
|
1794
|
+
|
|
1795
|
+
--search-highlight-text-color: #ffff03; // @presenter Color
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* @tokens Portal Search
|
|
1799
|
+
*/
|
|
1800
|
+
|
|
1801
|
+
--search-input-background-color: rgba(255, 255, 255, 0.1); // @presenter Color
|
|
1802
|
+
--search-input-text-color: #fff; // @presenter Color
|
|
1803
|
+
|
|
1804
|
+
--search-input-border: none;
|
|
1805
|
+
--search-input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1806
|
+
--search-input-font-size: var(--navbar-item-font-size); // @presenter FontSize
|
|
1807
|
+
--search-input-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1808
|
+
--search-input-line-height: 1.15em; // @presenter LineHeight
|
|
1809
|
+
|
|
1810
|
+
--search-input-hover-background-color: rgba(255, 255, 255, 0.1); // @presenter Color
|
|
1811
|
+
--search-input-hover-border: none; // @presenter Color
|
|
1812
|
+
--search-input-placeholder-color: var(--search-input-text-color);
|
|
1813
|
+
|
|
1814
|
+
--search-popover-background-color: var(--background-color); // @presenter Color
|
|
1815
|
+
--search-popover-border-radius: var(--search-input-border-radius); // @presenter BorderRadius
|
|
1816
|
+
--search-popover-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12),
|
|
1817
|
+
0 8px 10px -5px rgba(0, 0, 0, 0.4); // @presenter BoxShadow
|
|
1818
|
+
--search-popover-border: none;
|
|
1819
|
+
|
|
1820
|
+
--search-item-padding: 8px 24px;
|
|
1821
|
+
--search-item-text-color: var(--text-color-secondary); // @presenter Color
|
|
1822
|
+
--search-item-title-text-color: var(--text-color); // @presenter Color
|
|
1823
|
+
--search-item-background-color: transparent; // @presenter Color
|
|
1824
|
+
--search-item-active-text-color: var(--text-color-secondary); // @presenter Color
|
|
1825
|
+
--search-item-active-title-text-color: var(--text-color); // @presenter Color
|
|
1826
|
+
--search-item-active-background-color: rgba(0, 68, 212, 0.1); // @presenter Color
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* @tokens Sidebar Search
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
--sidebar-search-button-background-color: transparent; // @presenter Color
|
|
1833
|
+
--sidebar-search-button-text-color: var(--text-color); // @presenter Color
|
|
1834
|
+
--sidebar-search-button-border: var(--border-color);
|
|
1835
|
+
--sidebar-search-button-border-radius: none; // @presenter BorderRadius
|
|
1836
|
+
--sidebar-search-button-font-size: var(--font-size-small); // @presenter FontSize
|
|
1837
|
+
--sidebar-search-button-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1838
|
+
--sidebar-search-button-line-height: 1.15em; // @presenter LineHeight
|
|
1839
|
+
--sidebar-search-button-hover-background-color: transparent; // @presenter Color
|
|
1840
|
+
--sidebar-search-button-hover-border: var(--border-color); // @presenter Color
|
|
1841
|
+
--sidebar-search-button-active-background-color: transparent; // @presenter Color
|
|
1842
|
+
--sidebar-search-button-active-border: var(--border-color); // @presenter Color
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* @tokens Search results modal
|
|
1846
|
+
* @presenter Color
|
|
1847
|
+
*/
|
|
1848
|
+
|
|
1849
|
+
--search-modal-background: var(--background-color);
|
|
1850
|
+
--search-modal-text-color: var(--text-color);
|
|
1851
|
+
--search-modal-border: none;
|
|
1852
|
+
--search-modal-box-shadow: none;
|
|
1853
|
+
|
|
1854
|
+
--search-modal-header-border-radius: 8px;
|
|
1855
|
+
--search-modal-header-background-color: var(--color-secondary-100);
|
|
1856
|
+
--search-modal-clear-button-background-color: var(--color-secondary-300);
|
|
1857
|
+
--search-modal-clear-button-hover-background-color: var(--color-secondary-500);
|
|
1858
|
+
|
|
1859
|
+
// @tokens End
|
|
1860
|
+
`;
|
|
1861
|
+
const dropdown = (0, styled_components_1.css) `
|
|
1862
|
+
--dropdown-font-size: 14px;
|
|
1863
|
+
--dropdown-text-color: var(--text-color);
|
|
1864
|
+
|
|
1865
|
+
--dropdown-padding-vertical: 8px;
|
|
1866
|
+
--dropdown-padding-left: 10px;
|
|
1867
|
+
--dropdown-padding-right: 26px;
|
|
1868
|
+
--dropdown-padding: var(--dropdown-padding-vertical) var(--dropdown-padding-right)
|
|
1869
|
+
var(--dropdown-padding-vertical) var(--dropdown-padding-left);
|
|
1870
|
+
|
|
1871
|
+
--dropdown-border: none;
|
|
1872
|
+
`;
|
|
1873
|
+
const lastUpdated = (0, styled_components_1.css) `
|
|
1874
|
+
--last-updated-text-color: var(--text-color);
|
|
1875
|
+
--last-updated-font-size: var(--font-size-small);
|
|
1876
|
+
--last-updated-font-family: var(--font-family-base);
|
|
1877
|
+
--last-updated-line-height: var(--line-height-base);
|
|
1878
|
+
`;
|
|
1879
|
+
const tile = (0, styled_components_1.css) `
|
|
1880
|
+
--wide-tile-background-color: var(--color-secondary-50);
|
|
1881
|
+
--thin-tile-background-color: var(--color-secondary-50);
|
|
1882
|
+
`;
|
|
1883
|
+
exports.styles = (0, styled_components_1.css) `
|
|
1884
|
+
:root {
|
|
1885
|
+
${baseColors}
|
|
1886
|
+
${httpColors}
|
|
1887
|
+
${responsePanelColors}
|
|
1888
|
+
${typography}
|
|
1889
|
+
${headingsTypography}
|
|
1890
|
+
${common}
|
|
1891
|
+
${admonition}
|
|
1892
|
+
${buttons}
|
|
1893
|
+
${sidebar}
|
|
1894
|
+
${navbar}
|
|
1895
|
+
${footer}
|
|
1896
|
+
${logo}
|
|
1897
|
+
${badges}
|
|
1898
|
+
${toc}
|
|
1899
|
+
${inputs}
|
|
1900
|
+
${tooltip}
|
|
1901
|
+
${code}
|
|
1902
|
+
${links}
|
|
1903
|
+
${markdown}
|
|
1904
|
+
${search}
|
|
1905
|
+
${dropdown}
|
|
1906
|
+
${apiReferencePanels}
|
|
1907
|
+
${apiReferenceDocs}
|
|
1908
|
+
${lastUpdated}
|
|
1909
|
+
${tile}
|
|
1910
|
+
${loadProgressBar}
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
:root.dark {
|
|
1914
|
+
${darkColors_1.darkMode};
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
:root.notransition * {
|
|
1918
|
+
transition: none !important;
|
|
1919
|
+
}
|
|
1920
|
+
`;
|
|
1921
|
+
exports.GlobalStyle = (0, styled_components_1.createGlobalStyle) `
|
|
1922
|
+
${exports.styles};
|
|
1923
|
+
`;
|
|
1924
|
+
//# sourceMappingURL=globalStyle.js.map
|