@redocly/theme 0.18.2 → 0.18.3-patch.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/lib/I18n/LanguagePicker.d.ts +7 -2
- package/lib/I18n/LanguagePicker.js +11 -3
- package/lib/I18n/index.d.ts +1 -0
- package/lib/I18n/index.js +15 -0
- package/lib/I18n/styledVariables.d.ts +1 -0
- package/lib/I18n/styledVariables.js +39 -0
- package/lib/components/Breadcrumbs/Breadcrumb.js +2 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/lib/components/Breadcrumbs/index.d.ts +1 -0
- package/lib/components/Breadcrumbs/index.js +1 -0
- package/lib/components/Breadcrumbs/styledVariables.d.ts +1 -0
- package/lib/components/Breadcrumbs/styledVariables.js +19 -0
- package/lib/components/Button/Button.d.ts +6 -3
- package/lib/components/Button/Button.js +40 -42
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Button/styledVariables.d.ts +1 -0
- package/lib/components/Button/styledVariables.js +94 -0
- package/lib/components/Catalog/Catalog.d.ts +1 -0
- package/lib/components/Catalog/Catalog.js +99 -96
- package/lib/components/Catalog/CatalogCard.js +61 -56
- package/lib/components/Catalog/index.d.ts +4 -3
- package/lib/components/Catalog/index.js +4 -3
- package/lib/components/Catalog/styledVariables.d.ts +1 -0
- package/lib/components/Catalog/styledVariables.js +94 -0
- package/lib/components/CodeBlock/CodeBlockContainer.js +35 -8
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +3 -4
- package/lib/components/CodeBlock/CodeBlockControlButton.js +5 -19
- package/lib/components/CodeBlock/CodeBlockControls.js +8 -5
- package/lib/components/CodeBlock/index.d.ts +1 -0
- package/lib/components/CodeBlock/index.js +1 -0
- package/lib/components/CodeBlock/styledVariables.d.ts +1 -0
- package/lib/components/CodeBlock/styledVariables.js +90 -0
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +0 -1
- package/lib/components/Dropdown/Dropdown.d.ts +7 -2
- package/lib/components/Dropdown/Dropdown.js +6 -4
- package/lib/components/Dropdown/index.d.ts +1 -0
- package/lib/components/Dropdown/index.js +1 -0
- package/lib/components/Dropdown/styledVariables.d.ts +1 -0
- package/lib/components/Dropdown/styledVariables.js +30 -0
- package/lib/components/Feedback/Reasons.js +1 -1
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.js +101 -78
- package/lib/components/Filter/FilterContent.d.ts +11 -0
- package/lib/components/Filter/FilterContent.js +50 -0
- package/lib/components/Filter/FilterPopover.d.ts +11 -0
- package/lib/components/Filter/FilterPopover.js +99 -0
- package/lib/components/Filter/FilterTag.d.ts +7 -0
- package/lib/components/Filter/FilterTag.js +33 -0
- package/lib/components/Filter/FilterTags.d.ts +7 -0
- package/lib/components/Filter/FilterTags.js +29 -0
- package/lib/components/Filter/index.d.ts +2 -0
- package/lib/components/Filter/index.js +2 -0
- package/lib/components/Filter/styledVariables.d.ts +1 -0
- package/lib/components/Filter/styledVariables.js +112 -0
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +4 -3
- package/lib/components/Footer/Footer.js +27 -10
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +53 -63
- package/lib/components/Footer/FooterColumns.js +6 -4
- package/lib/components/Footer/FooterCopyright.js +11 -6
- package/lib/components/Footer/index.d.ts +1 -0
- package/lib/components/Footer/index.js +1 -0
- package/lib/components/Footer/styledVariables.d.ts +1 -0
- package/lib/components/Footer/styledVariables.js +61 -0
- package/lib/components/Image/Image.d.ts +9 -0
- package/lib/components/Image/Image.js +31 -0
- package/lib/components/Image/index.d.ts +1 -0
- package/lib/components/{Tags → Image}/index.js +1 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/Markdown/MarkdownWrapper.js +2 -4
- package/lib/components/Markdown/Mermaid.js +1 -1
- package/lib/components/Markdown/index.d.ts +1 -0
- package/lib/components/Markdown/index.js +1 -0
- package/lib/components/Markdown/styledVariables.d.ts +2 -0
- package/lib/components/Markdown/styledVariables.js +221 -0
- package/lib/components/Menu/Menu.js +5 -7
- package/lib/components/Menu/MenuGroup.js +12 -7
- package/lib/components/Menu/MenuItemLabel.js +7 -13
- package/lib/components/Menu/MobileMenu.js +20 -25
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/index.d.ts +1 -0
- package/lib/components/Menu/index.js +1 -0
- package/lib/components/Menu/styledVariables.d.ts +2 -0
- package/lib/components/Menu/styledVariables.js +90 -0
- package/lib/components/Navbar/Navbar.js +10 -11
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +5 -3
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +1 -0
- package/lib/components/Navbar/index.js +1 -0
- package/lib/components/Navbar/styledVariables.d.ts +1 -0
- package/lib/components/Navbar/styledVariables.js +40 -0
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +4 -1
- package/lib/components/NavbarLogo/NavbarLogo.js +13 -5
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/Panel/PanelHeader.js +1 -0
- package/lib/components/Panel/PanelHeaderTitle.js +0 -4
- package/lib/components/Panel/index.d.ts +1 -0
- package/lib/components/Panel/index.js +1 -0
- package/lib/components/Panel/styledVariables.d.ts +2 -0
- package/lib/components/Panel/styledVariables.js +489 -0
- package/lib/components/Product/index.d.ts +1 -0
- package/lib/components/Product/index.js +1 -0
- package/lib/components/Product/styledVariables.d.ts +2 -0
- package/lib/components/Product/styledVariables.js +41 -0
- package/lib/components/Profile/LoginLink.js +1 -2
- package/lib/components/{Navbar → Profile}/MobileUserProfile.js +3 -22
- package/lib/components/Profile/Profile.js +3 -22
- package/lib/components/Profile/UserProfile.js +21 -9
- package/lib/components/Profile/UserProfileData.d.ts +9 -0
- package/lib/components/Profile/UserProfileData.js +35 -0
- package/lib/components/Profile/index.d.ts +1 -0
- package/lib/components/Profile/index.js +15 -0
- package/lib/components/Profile/styledVariables.d.ts +2 -0
- package/lib/components/Profile/styledVariables.js +55 -0
- package/lib/components/Search/CancelSearch.js +2 -14
- package/lib/components/Search/ProductTag.js +7 -7
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +0 -2
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +14 -17
- package/lib/components/Search/SearchTrigger.js +4 -5
- package/lib/components/Search/ShortcutKey.js +1 -5
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +1 -0
- package/lib/components/Search/index.js +1 -0
- package/lib/components/Search/styledVariables.d.ts +1 -0
- package/lib/components/Search/styledVariables.js +98 -0
- package/lib/components/Select/Select.d.ts +10 -3
- package/lib/components/Select/Select.js +9 -6
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Select/index.js +1 -0
- package/lib/components/Select/styledVariables.d.ts +1 -0
- package/lib/components/Select/styledVariables.js +33 -0
- package/lib/components/Separator/SeparatorItem.js +7 -5
- package/lib/components/Sidebar/ApiCallItem.d.ts +2 -6
- package/lib/components/Sidebar/ApiCallItem.js +13 -11
- package/lib/components/Sidebar/FooterWrapper.js +3 -4
- package/lib/components/Sidebar/HeaderWrapper.js +2 -2
- package/lib/components/Sidebar/VersionPicker.d.ts +1 -1
- package/lib/components/Sidebar/index.d.ts +1 -0
- package/lib/components/Sidebar/index.js +1 -0
- package/lib/components/Sidebar/styledVariables.d.ts +2 -0
- package/lib/components/Sidebar/styledVariables.js +210 -0
- package/lib/components/SidebarActions/CollapseSidebarButton.js +37 -1
- package/lib/components/SidebarActions/styled.js +16 -14
- package/lib/components/TableOfContent/TableOfContent.js +2 -3
- package/lib/components/TableOfContent/index.d.ts +1 -0
- package/lib/components/TableOfContent/index.js +1 -0
- package/lib/components/TableOfContent/styledVariables.d.ts +1 -0
- package/lib/components/TableOfContent/styledVariables.js +46 -0
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tag/Tag.d.ts +16 -0
- package/lib/components/Tag/Tag.js +39 -0
- package/lib/components/Tag/index.d.ts +2 -0
- package/lib/components/Tag/index.js +19 -0
- package/lib/components/Tag/styledVariables.d.ts +1 -0
- package/lib/components/Tag/styledVariables.js +130 -0
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/index.js +1 -0
- package/lib/components/Tooltip/styledVariables.d.ts +1 -0
- package/lib/components/Tooltip/styledVariables.js +21 -0
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +1 -2
- package/lib/config.d.ts +8 -2
- package/lib/config.js +2 -1
- package/lib/globalStyle.js +597 -1967
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +6 -0
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +28 -0
- package/lib/icons/CheckboxIcon/index.d.ts +1 -0
- package/lib/icons/CheckboxIcon/index.js +6 -0
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +1 -2
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +4 -0
- package/lib/icons/ErrorIcon/ErrorIcon.js +14 -0
- package/lib/icons/ErrorIcon/index.d.ts +1 -0
- package/lib/{components/OperationBadge → icons/ErrorIcon}/index.js +1 -1
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/FileIcon/FileIcon.d.ts +1 -2
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +4 -0
- package/lib/icons/LanguageIcon/LanguageIcon.js +14 -0
- package/lib/icons/LanguageIcon/index.d.ts +1 -0
- package/lib/icons/LanguageIcon/index.js +18 -0
- package/lib/icons/PlusIcon/PlusIcon.d.ts +5 -0
- package/lib/icons/PlusIcon/PlusIcon.js +16 -0
- package/lib/icons/PlusIcon/index.d.ts +1 -0
- package/lib/icons/PlusIcon/index.js +18 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +4 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +15 -0
- package/lib/icons/PointingArrowIcon/index.d.ts +1 -0
- package/lib/icons/PointingArrowIcon/index.js +18 -0
- package/lib/icons/ReportIcon/ReportIcon.d.ts +1 -2
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/SelectIcon/SelectIcon.d.ts +1 -2
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +4 -0
- package/lib/icons/index.js +4 -0
- package/lib/layouts/Forbidden.js +4 -0
- package/lib/layouts/NotFound.js +4 -0
- package/lib/types/portal/src/shared/types/nav.d.ts +5 -0
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +216 -84
- package/package.json +1 -1
- package/src/I18n/LanguagePicker.tsx +29 -4
- package/src/I18n/index.ts +1 -0
- package/src/I18n/styledVariables.ts +36 -0
- package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -1
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
- package/src/components/Breadcrumbs/index.ts +1 -0
- package/src/components/Breadcrumbs/styledVariables.ts +16 -0
- package/src/components/Button/Button.tsx +52 -48
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/styledVariables.ts +91 -0
- package/src/components/Catalog/Catalog.tsx +127 -115
- package/src/components/Catalog/CatalogCard.tsx +74 -59
- package/src/components/Catalog/index.ts +4 -0
- package/src/components/Catalog/styledVariables.ts +91 -0
- package/src/components/CodeBlock/CodeBlockContainer.tsx +14 -7
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +6 -19
- package/src/components/CodeBlock/CodeBlockControls.tsx +8 -5
- package/src/components/CodeBlock/index.ts +1 -0
- package/src/components/CodeBlock/styledVariables.ts +87 -0
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +0 -1
- package/src/components/Dropdown/Dropdown.tsx +10 -4
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/Dropdown/styledVariables.ts +27 -0
- package/src/components/Feedback/Reasons.tsx +1 -1
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +127 -94
- package/src/components/Filter/FilterContent.tsx +75 -0
- package/src/components/Filter/FilterPopover.tsx +132 -0
- package/src/components/Filter/FilterTag.tsx +37 -0
- package/src/components/Filter/FilterTags.tsx +39 -0
- package/src/components/Filter/index.ts +2 -0
- package/src/components/Filter/styledVariables.ts +109 -0
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +32 -10
- package/src/components/Footer/FooterColumn.tsx +79 -62
- package/src/components/Footer/FooterColumns.tsx +6 -4
- package/src/components/Footer/FooterCopyright.tsx +13 -7
- package/src/components/Footer/index.ts +1 -0
- package/src/components/Footer/styledVariables.ts +58 -0
- package/src/components/Image/Image.tsx +47 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/Markdown/MarkdownWrapper.tsx +2 -4
- package/src/components/Markdown/Mermaid.tsx +1 -1
- package/src/components/Markdown/index.ts +1 -0
- package/src/components/Markdown/styledVariables.ts +219 -0
- package/src/components/Menu/Menu.tsx +5 -7
- package/src/components/Menu/MenuGroup.tsx +15 -7
- package/src/components/Menu/MenuItemLabel.tsx +7 -13
- package/src/components/Menu/MobileMenu.tsx +20 -25
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +1 -0
- package/src/components/Menu/styledVariables.ts +88 -0
- package/src/components/Navbar/Navbar.tsx +10 -11
- package/src/components/Navbar/NavbarItem.tsx +6 -3
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +1 -0
- package/src/components/Navbar/styledVariables.ts +37 -0
- package/src/components/NavbarLogo/NavbarLogo.tsx +14 -10
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +1 -2
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/Panel/PanelHeader.ts +1 -0
- package/src/components/Panel/PanelHeaderTitle.ts +0 -4
- package/src/components/Panel/index.ts +1 -0
- package/src/components/Panel/styledVariables.ts +487 -0
- package/src/components/Product/index.ts +1 -0
- package/src/components/Product/styledVariables.ts +39 -0
- package/src/components/Profile/LoginLink.tsx +1 -2
- package/src/components/{Navbar → Profile}/MobileUserProfile.tsx +3 -27
- package/src/components/Profile/Profile.tsx +1 -24
- package/src/components/Profile/UserProfile.tsx +20 -8
- package/src/components/Profile/UserProfileData.tsx +40 -0
- package/src/components/Profile/index.ts +1 -0
- package/src/components/Profile/styledVariables.ts +53 -0
- package/src/components/Search/CancelSearch.tsx +2 -15
- package/src/components/Search/ProductTag.tsx +7 -7
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +0 -2
- package/src/components/Search/SearchIcon.tsx +10 -5
- package/src/components/Search/SearchItem.tsx +26 -31
- package/src/components/Search/SearchTrigger.tsx +4 -5
- package/src/components/Search/ShortcutKey.tsx +1 -5
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +1 -0
- package/src/components/Search/styledVariables.ts +95 -0
- package/src/components/Select/Select.tsx +20 -7
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/styledVariables.ts +30 -0
- package/src/components/Separator/SeparatorItem.tsx +7 -5
- package/src/components/Sidebar/ApiCallItem.tsx +13 -11
- package/src/components/Sidebar/FooterWrapper.tsx +3 -4
- package/src/components/Sidebar/HeaderWrapper.tsx +2 -2
- package/src/components/Sidebar/index.ts +1 -0
- package/src/components/Sidebar/styledVariables.ts +208 -0
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +18 -2
- package/src/components/SidebarActions/styled.tsx +16 -23
- package/src/components/TableOfContent/TableOfContent.tsx +2 -3
- package/src/components/TableOfContent/index.ts +1 -0
- package/src/components/TableOfContent/styledVariables.ts +43 -0
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tag/Tag.tsx +62 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/Tag/styledVariables.ts +127 -0
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/styledVariables.ts +18 -0
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +1 -2
- package/src/config.ts +2 -1
- package/src/globalStyle.ts +591 -1979
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +64 -0
- package/src/icons/CheckboxIcon/index.ts +1 -0
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +4 -5
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/ErrorIcon/ErrorIcon.tsx +15 -0
- package/src/icons/ErrorIcon/index.ts +1 -0
- package/src/icons/ExpandIcon/ExpandIcon.tsx +5 -6
- package/src/icons/FileIcon/FileIcon.tsx +2 -3
- package/src/icons/LanguageIcon/LanguageIcon.tsx +15 -0
- package/src/icons/LanguageIcon/index.ts +1 -0
- package/src/icons/PlusIcon/PlusIcon.tsx +19 -0
- package/src/icons/PlusIcon/index.ts +1 -0
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +16 -0
- package/src/icons/PointingArrowIcon/index.ts +1 -0
- package/src/icons/ReportIcon/ReportIcon.tsx +3 -4
- package/src/icons/SelectIcon/SelectIcon.tsx +5 -6
- package/src/icons/index.ts +4 -0
- package/src/layouts/Forbidden.tsx +4 -0
- package/src/layouts/NotFound.tsx +4 -0
- package/src/types/portal/src/shared/types/nav.ts +5 -0
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +216 -84
- package/lib/components/OperationBadge/OperationBadge.d.ts +0 -6
- package/lib/components/OperationBadge/OperationBadge.js +0 -68
- package/lib/components/OperationBadge/index.d.ts +0 -1
- package/lib/components/Tags/Tags.d.ts +0 -5
- package/lib/components/Tags/Tags.js +0 -32
- package/lib/components/Tags/index.d.ts +0 -1
- package/src/components/Catalog/index.tsx +0 -3
- package/src/components/OperationBadge/OperationBadge.ts +0 -62
- package/src/components/OperationBadge/index.ts +0 -1
- package/src/components/Tags/Tags.tsx +0 -36
- package/src/components/Tags/index.ts +0 -1
- /package/lib/components/{Navbar → Profile}/MobileUserProfile.d.ts +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.select = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.select = (0, styled_components_1.css) `
|
|
6
|
+
/**
|
|
7
|
+
* @tokens Select
|
|
8
|
+
* */
|
|
9
|
+
--select-font-size: var(--font-size-base); // @presenter FontSize
|
|
10
|
+
--select-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
11
|
+
--select-line-height: var(--line-height-base); // @presenter LineHeight
|
|
12
|
+
--select-text-color: var(--text-secondary); // @presenter Color
|
|
13
|
+
--select-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
14
|
+
|
|
15
|
+
--select-input-padding-horizontal: 16px; // @presenter Spacing
|
|
16
|
+
--select-input-padding-vertical: 6px; // @presenter Spacing
|
|
17
|
+
--select-input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
18
|
+
|
|
19
|
+
--select-list-min-width: 100px;
|
|
20
|
+
--select-list-max-width: 300px;
|
|
21
|
+
--select-list-padding: var(--spacing-xxs); // @presenter Spacing
|
|
22
|
+
--select-list-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
23
|
+
--select-list-background-color: var(--background-color); // @presenter Color
|
|
24
|
+
--select-list-box-shadow: var(--bg-raised-shadow); // @presenter Shadow
|
|
25
|
+
|
|
26
|
+
--select-list-item-horizontal-padding: var(--spacing-base); // @presenter Spacing
|
|
27
|
+
--select-list-item-vertical-padding: var(--spacing-xs); // @presenter Spacing
|
|
28
|
+
--select-list-item-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
29
|
+
--select-list-item-active-background-color: var(--bg-raised); // @presenter Color
|
|
30
|
+
|
|
31
|
+
// @tokens End
|
|
32
|
+
`;
|
|
33
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -11,12 +11,15 @@ exports.SeparatorItem = (0, styled_components_1.default)(MenuItemLabel_1.MenuIte
|
|
|
11
11
|
className,
|
|
12
12
|
})) `
|
|
13
13
|
cursor: default;
|
|
14
|
-
font-weight: var(--font-weight
|
|
15
|
-
color: var(--sidebar-separator-
|
|
16
|
-
font-family: var(--sidebar-item-separator-font-family);
|
|
14
|
+
font-weight: var(--sidebar-item-separator-font-weight);
|
|
15
|
+
color: var(--sidebar-item-separator-text-color);
|
|
17
16
|
font-size: var(--sidebar-item-separator-font-size);
|
|
18
17
|
text-transform: var(--sidebar-item-separator-text-transform);
|
|
19
18
|
background: var(--mobile-menu-background);
|
|
19
|
+
border-radius: 0;
|
|
20
|
+
border-top: var(--sidebar-item-separator-border-width) solid
|
|
21
|
+
var(--sidebar-item-separator-border-color);
|
|
22
|
+
padding-top: var(--sidebar-item-separator-padding-top);
|
|
20
23
|
|
|
21
24
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
22
25
|
background: var(--sidebar-item-separator-background-color);
|
|
@@ -27,8 +30,7 @@ exports.SeparatorItem = (0, styled_components_1.default)(MenuItemLabel_1.MenuIte
|
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
:hover {
|
|
30
|
-
color:
|
|
31
|
-
background-color: inherit;
|
|
33
|
+
color: var(--sidebar-item-separator-text-color);
|
|
32
34
|
}
|
|
33
35
|
`;
|
|
34
36
|
//# sourceMappingURL=SeparatorItem.js.map
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Tag } from '../../components/Tag';
|
|
2
3
|
import type { MenuItemProps } from '../../components/Sidebar/types';
|
|
3
4
|
export declare function ApiCallItem({ item, className }: MenuItemProps): JSX.Element;
|
|
4
|
-
export declare const
|
|
5
|
-
className: `operation-type ${string}`;
|
|
6
|
-
'data-component-name': string;
|
|
7
|
-
} & {
|
|
8
|
-
type: string;
|
|
9
|
-
}, "className" | "data-component-name">;
|
|
5
|
+
export declare const HttpTag: import("styled-components").StyledComponent<typeof Tag, any, {}, never>;
|
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.HttpTag = exports.ApiCallItem = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const
|
|
9
|
+
const Tag_1 = require("../../components/Tag");
|
|
10
10
|
const MenuLinkItem_1 = require("../../components/Menu/MenuLinkItem");
|
|
11
11
|
const SeparatorLine_1 = require("../../components/Separator/SeparatorLine");
|
|
12
12
|
const MenuItemLabel_1 = require("../../components/Menu/MenuItemLabel");
|
|
@@ -14,7 +14,7 @@ function ApiCallItem({ item, className }) {
|
|
|
14
14
|
return (react_1.default.createElement(Wrapper, { "data-component-name": "Sidebar/ApiCallItem", className: className },
|
|
15
15
|
react_1.default.createElement(MenuLinkItem_1.MenuLinkItem, { item: item },
|
|
16
16
|
react_1.default.createElement(Label, { active: item.active },
|
|
17
|
-
react_1.default.createElement(exports.
|
|
17
|
+
react_1.default.createElement(exports.HttpTag, { color: item.httpVerb || '' }, item.httpVerb === 'hook' ? 'event' : item.httpVerb),
|
|
18
18
|
item.label)),
|
|
19
19
|
item.separatorLine ? react_1.default.createElement(SeparatorLine_1.SeparatorLine, null) : null));
|
|
20
20
|
}
|
|
@@ -27,15 +27,17 @@ const Label = (0, styled_components_1.default)(MenuItemLabel_1.MenuItemLabel) `
|
|
|
27
27
|
}
|
|
28
28
|
`;
|
|
29
29
|
const Wrapper = styled_components_1.default.div ``;
|
|
30
|
-
exports.
|
|
30
|
+
exports.HttpTag = (0, styled_components_1.default)(Tag_1.Tag) `
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
margin-top: 0;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
text-transform: uppercase;
|
|
34
|
+
|
|
35
|
+
width: var(--sidebar-item-http-tag-width);
|
|
36
|
+
height: var(--sidebar-item-http-tag-height);
|
|
37
|
+
|
|
38
|
+
font-size: var(--sidebar-item-http-tag-font-size);
|
|
39
|
+
font-family: var(--sidebar-item-http-tag-font-family);
|
|
40
|
+
font-weight: var(--sidebar-item-http-tag-font-weight);
|
|
41
|
+
border-radius: var(--sidebar-item-http-tag-border-radius);
|
|
40
42
|
`;
|
|
41
43
|
//# sourceMappingURL=ApiCallItem.js.map
|
|
@@ -6,15 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.FooterWrapper = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
exports.FooterWrapper = styled_components_1.default.div `
|
|
9
|
+
padding: var(--sidebar-footer-padding-vertical) var(--sidebar-footer-padding-horizontal);
|
|
10
|
+
|
|
9
11
|
${({ collapsed }) => collapsed &&
|
|
10
12
|
`
|
|
11
13
|
position: sticky;
|
|
12
14
|
bottom: 0;
|
|
15
|
+
padding: 0;
|
|
13
16
|
`}
|
|
14
|
-
margin: var(--sidebar-offset-top) 0 var(--sidebar-spacing-unit) var(--sidebar-offset-left);
|
|
15
|
-
padding-top: var(--sidebar-spacing-unit);
|
|
16
|
-
padding-right: var(--sidebar-spacing-unit);
|
|
17
|
-
border-top: solid 1px var(--border-color);
|
|
18
17
|
|
|
19
18
|
button {
|
|
20
19
|
margin: 0;
|
|
@@ -10,7 +10,7 @@ exports.HeaderWrapper = styled_components_1.default.div.attrs(({ className }) =>
|
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
12
|
margin: var(--sidebar-offset-top) 0 0 var(--sidebar-offset-left);
|
|
13
|
-
padding-bottom: var(--sidebar-
|
|
14
|
-
border-bottom: solid 1px var(--border-
|
|
13
|
+
padding-bottom: var(--sidebar-header-padding-bottom);
|
|
14
|
+
border-bottom: solid 1px var(--border-secondary);
|
|
15
15
|
`;
|
|
16
16
|
//# sourceMappingURL=HeaderWrapper.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { SelectProps } from '../Select';
|
|
3
|
-
export declare const VersionPicker: import("styled-components").StyledComponent<({ className, selected, options, dataAttributes, withArrow, triggerEvent, onChange, }: SelectProps) => JSX.Element, any, {
|
|
3
|
+
export declare const VersionPicker: import("styled-components").StyledComponent<({ className, selected, options, dataAttributes, withArrow, triggerEvent, onChange, placement, alignment, icon, onlyIcon, }: SelectProps) => JSX.Element, any, {
|
|
4
4
|
dataAttributes: {
|
|
5
5
|
'data-component-name': string;
|
|
6
6
|
};
|
|
@@ -11,3 +11,4 @@ export * from '../../components/Sidebar/FooterWrapper';
|
|
|
11
11
|
export * from '../../components/Sidebar/HeaderWrapper';
|
|
12
12
|
export * from '../../components/Sidebar/SidebarItemIcon';
|
|
13
13
|
export * from '../../components/Sidebar/VersionPicker';
|
|
14
|
+
export * from '../../components/Sidebar/styledVariables';
|
|
@@ -27,4 +27,5 @@ __exportStar(require("../../components/Sidebar/FooterWrapper"), exports);
|
|
|
27
27
|
__exportStar(require("../../components/Sidebar/HeaderWrapper"), exports);
|
|
28
28
|
__exportStar(require("../../components/Sidebar/SidebarItemIcon"), exports);
|
|
29
29
|
__exportStar(require("../../components/Sidebar/VersionPicker"), exports);
|
|
30
|
+
__exportStar(require("../../components/Sidebar/styledVariables"), exports);
|
|
30
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.versionPicker = exports.sidebar = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.sidebar = (0, styled_components_1.css) `
|
|
6
|
+
/* === Sidebar === */
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @tokens Sidebar logo
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
--sidebar-logo-max-height: 285px; // @presenter Spacing
|
|
13
|
+
--sidebar-logo-max-width: 285px; // @presenter Spacing
|
|
14
|
+
--sidebar-logo-padding: 2px; // @presenter Spacing
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @tokens Sidebar typography
|
|
18
|
+
*/
|
|
19
|
+
--sidebar-word-break: inherit; // @presenter WordBreak
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @tokens Sidebar colors
|
|
23
|
+
* @presenter Color
|
|
24
|
+
*/
|
|
25
|
+
--sidebar-background-color: var(--bg-base); // @presenter Color
|
|
26
|
+
--sidebar-border-color: var(--border-secondary); // @presenter Color
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @tokens Sidebar spacing
|
|
30
|
+
* @presenter Spacing
|
|
31
|
+
*/
|
|
32
|
+
--sidebar-spacing-unit: var(--spacing-base); // @presenter Spacing
|
|
33
|
+
--sidebar-width: 285px; // @presenter Spacing
|
|
34
|
+
|
|
35
|
+
--sidebar-offset-top: var(--sidebar-spacing-unit); // @presenter Spacing
|
|
36
|
+
--sidebar-offset-left: var(--sidebar-spacing-unit); // @presenter Spacing
|
|
37
|
+
|
|
38
|
+
--sidebar-header-padding-bottom: var(--sidebar-spacing-unit); // @presenter Spacing
|
|
39
|
+
|
|
40
|
+
--sidebar-chevron-size: var(--spacing-xs); // @presenter Spacing
|
|
41
|
+
|
|
42
|
+
/* === Sidebar Item === */
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @tokens Sidebar item typography
|
|
46
|
+
*/
|
|
47
|
+
--sidebar-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
48
|
+
--sidebar-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
49
|
+
--sidebar-item-font-weight: var(--font-weight-regular); // @presenter FontSize
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @tokens Sidebar item colors
|
|
53
|
+
* @presenter Color
|
|
54
|
+
*/
|
|
55
|
+
--sidebar-item-text-color: var(--text-secondary); // @presenter Color
|
|
56
|
+
--sidebar-item-background-color: transparent; // @presenter Color
|
|
57
|
+
|
|
58
|
+
--sidebar-item-active-color: var(--text-primary); // @presenter Color
|
|
59
|
+
--sidebar-item-active-background-color: var(--bg-raised); // @presenter Color
|
|
60
|
+
|
|
61
|
+
--sidebar-item-hover-color: var(--text-primary); // @presenter Color
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @tokens Sidebar item spacing
|
|
65
|
+
* @presenter Spacing
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
--sidebar-item-nested-offset: var(--spacing-xs); // @presenter Spacing
|
|
69
|
+
--sidebar-margin-horizontal: var(--spacing-base); // @presenter Spacing
|
|
70
|
+
--sidebar-item-padding-vertical: var(--spacing-xs); // @presenter Spacing
|
|
71
|
+
--sidebar-item-padding-horizontal: var(--spacing-xs); // @presenter Spacing
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @tokens Sidebar item border
|
|
75
|
+
*/
|
|
76
|
+
--sidebar-item-border-radius: 6px; // @presenter BorderRadius
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @tokens Sidebar item icon
|
|
80
|
+
*/
|
|
81
|
+
--sidebar-item-icon-size: var(--spacing-xl);
|
|
82
|
+
--sidebar-item-icon-border-radius: 100%;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @tokens Sidebar item sublabel
|
|
86
|
+
*/
|
|
87
|
+
--sidebar-item-sublabel-font-family: inherit; // sublabel is for drilldown only but I would like to support it in general
|
|
88
|
+
--sidebar-item-sublabel-font-size: var(--font-size-base); // @presenter FontSize
|
|
89
|
+
--sidebar-item-sublabel-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
90
|
+
--sidebar-item-sublabel-text-color: var(--sidebar-item-text-color); // @presenter Color
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @tokens Sidebar item drilldown
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
--sidebar-item-drilldown-font-family: var(--sidebar-item-font-family);
|
|
97
|
+
--sidebar-item-drilldown-font-size: var(--sidebar-item-font-size); // @presenter FontSize
|
|
98
|
+
--sidebar-text-drilldown-transform: inherit; // @presenter TextTransform
|
|
99
|
+
--sidebar-item-drilldown-text-color: var(--sidebar-item-text-color); // @presenter Color
|
|
100
|
+
--sidebar-item-drilldown-background-color: var(--sidebar-background-color); // @presenter Color
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @tokens Sidebar item group
|
|
104
|
+
*/
|
|
105
|
+
--sidebar-item-group-font-family: var(--sidebar-item-font-family);
|
|
106
|
+
--sidebar-item-group-font-size: var(--sidebar-item-font-size); // @presenter FontSize
|
|
107
|
+
--sidebar-text-group-transform: inherit;
|
|
108
|
+
--sidebar-item-group-text-color: var(--sidebar-item-text-color); // @presenter Color
|
|
109
|
+
--sidebar-item-group-background-color: var(--sidebar-background-color); // @presenter Color
|
|
110
|
+
--sidebar-item-group-active-text-color: var(--sidebar-item-active-color); // @presenter Color
|
|
111
|
+
--sidebar-item-group-active-background-color: var(--sidebar-item-active-background-color);
|
|
112
|
+
|
|
113
|
+
// we need a theme config for chevron-location: left (default), right-compact, right, none
|
|
114
|
+
// we need another theme config for chevron-style: up-down, down-up, right-down, down-right
|
|
115
|
+
|
|
116
|
+
--sidebar-group-item-chevron-size: var(--spacing-xs); // @presenter Spacing
|
|
117
|
+
--sidebar-group-item-chevron-color: var(--sidebar-item-text-color); // @presenter Color
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @tokens Sidebar item separator
|
|
121
|
+
*/
|
|
122
|
+
--sidebar-item-separator-font-family: var(--sidebar-item-font-family);
|
|
123
|
+
--sidebar-item-separator-font-size: var(--sidebar-item-font-size); // @presenter FontSize
|
|
124
|
+
--sidebar-item-separator-font-weight: var(--sidebar-item-font-weight); // @presenter FontWeight
|
|
125
|
+
--sidebar-item-separator-text-transform: inherit; // @presenter TextTransform
|
|
126
|
+
--sidebar-item-separator-text-color: var(--text-placeholder); // @presenter Color
|
|
127
|
+
|
|
128
|
+
--sidebar-item-separator-background-color: var(--sidebar-background-color); // @presenter Color
|
|
129
|
+
--sidebar-item-separator-line-color: var(--border-primary); // @presenter Color
|
|
130
|
+
--sidebar-item-separator-offset: var(--spacing-lg); // @presenter Spacing
|
|
131
|
+
--sidebar-item-separator-border-width: 1px; // @presenter Spacing
|
|
132
|
+
--sidebar-item-separator-border-color: var(--border-primary); // @presenter Color
|
|
133
|
+
--sidebar-item-separator-padding-top: var(--spacing-xxs); // @presenter Spacing
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @tokens Sidebar item http tag
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
--sidebar-item-http-tag-width: 36px;
|
|
140
|
+
--sidebar-item-http-tag-height: 14px;
|
|
141
|
+
--sidebar-item-http-tag-font-family: var(--code-font-family); // @presenter FontFamily
|
|
142
|
+
--sidebar-item-http-tag-font-size: 8px; // @presenter FontSize
|
|
143
|
+
--sidebar-item-http-tag-font-weight: normal; //@presenter FontWeight
|
|
144
|
+
--sidebar-item-http-tag-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @tokens Sidebar back button
|
|
148
|
+
*/
|
|
149
|
+
--sidebar-back-button-font-family: var(--sidebar-item-font-family);
|
|
150
|
+
--sidebar-back-button-font-size: var(--sidebar-item-font-size); // @presenter FontSize
|
|
151
|
+
--sidebar-back-button-transform: inherit; // @presenter TextTransform
|
|
152
|
+
--sidebar-back-button-text-color: var(--sidebar-item-text-color); // @presenter Color
|
|
153
|
+
--sidebar-back-button-background-color: transparent; // @presenter Color
|
|
154
|
+
--sidebar-back-button-hover-text-color: var(--sidebar-item-active-color); // @presenter Color
|
|
155
|
+
--sidebar-back-button-hover-background-color: transparent; // @presenter Color
|
|
156
|
+
--sidebar-back-button-icon-color: var(--sidebar-item-text-color); // @presenter Color
|
|
157
|
+
--sidebar-back-button-margin: 0 0 var(--spacing-lg) 0; // @presenter Spacing
|
|
158
|
+
--sidebar-back-padding-left: var(--spacing-xs); // @presenter Spacing
|
|
159
|
+
--sidebar-back-button-icon: none;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @tokens Sidebar footer
|
|
163
|
+
*/
|
|
164
|
+
--sidebar-footer-padding-vertical: var(--spacing-sm); // @presenter Spacing
|
|
165
|
+
--sidebar-footer-padding-horizontal: var(--spacing-lg); // @presenter Spacing
|
|
166
|
+
--sidebar-collapse-button-background-color: var(--bg-overlay); // @presenter Color
|
|
167
|
+
--sidebar-collapse-button-icon-color: var(--text-primary); // @presenter Color
|
|
168
|
+
--sidebar-collapse-button-border-color: var(--border-primary); // @presenter Color
|
|
169
|
+
--sidebar-collapse-button-active-background-color: unset; // @presenter Color
|
|
170
|
+
--sidebar-collapse-button-active-border-color: 0; // @presenter Color
|
|
171
|
+
|
|
172
|
+
--sidebar-controls-collapsed-gap: var(--spacing-xs); // @presenter Spacing
|
|
173
|
+
--sidebar-controls-collapsed-padding-vertical: var(--spacing-xs); // @presenter Spacing
|
|
174
|
+
--sidebar-controls-collapsed-padding-horizontal: var(--spacing-xxs); // @presenter Spacing
|
|
175
|
+
|
|
176
|
+
// @tokens End
|
|
177
|
+
`;
|
|
178
|
+
exports.versionPicker = (0, styled_components_1.css) `
|
|
179
|
+
/**
|
|
180
|
+
* @tokens Version picker
|
|
181
|
+
* */
|
|
182
|
+
|
|
183
|
+
--version-picker-font-size: var(--font-size-base); // @presenter FontSize
|
|
184
|
+
--version-picker-font-weight: var(--select-font-weight); // @presenter FontWeight
|
|
185
|
+
--version-picker-line-height: var(--select-line-height); // @presenter LineHeight
|
|
186
|
+
--version-picker-text-color: var(--select-text-color); // @presenter Color
|
|
187
|
+
--version-picker-border-radius: var(--select-border-radius); // @presenter BorderRadius
|
|
188
|
+
--version-picker-margin-vertical: 10px; // @presenter Spacing
|
|
189
|
+
--version-picker-margin-horizontal: 15px; // @presenter Spacing
|
|
190
|
+
|
|
191
|
+
--version-picker-input-padding-horizontal: var(--select-input-padding-horizontal); // @presenter Spacing
|
|
192
|
+
--version-picker-input-padding-vertical: var(--select-input-padding-vertical); // @presenter Spacing
|
|
193
|
+
--version-picker-input-border: 1px solid var(--border-primary); // @presenter Border
|
|
194
|
+
--version-picker-input-border-radius: var(--select-input-border-radius); // @presenter BorderRadius
|
|
195
|
+
|
|
196
|
+
--version-picker-list-min-width: var(--select-list-min-width);
|
|
197
|
+
--version-picker-list-max-width: var(--select-list-max-width);
|
|
198
|
+
--version-picker-list-padding: var(--select-list-padding); // @presenter Spacing
|
|
199
|
+
--version-picker-list-border-radius: var(--select-list-border-radius); // @presenter BorderRadius
|
|
200
|
+
--version-picker-list-background-color: var(--select-list-background-color); // @presenter Color
|
|
201
|
+
--version-picker-list-box-shadow: var(--select-list-box-shadow); // @presenter Shadow
|
|
202
|
+
|
|
203
|
+
--version-picker-list-item-horizontal-padding: var(--select-list-item-horizontal-padding); // @presenter Spacing
|
|
204
|
+
--version-picker-list-item-vertical-padding: var(--select-list-item-vertical-padding); // @presenter Spacing
|
|
205
|
+
--version-picker-list-item-border-radius: var(--select-list-item-border-radius); // @presenter BorderRadius
|
|
206
|
+
--version-picker-list-item-active-background-color: var(--select-list-item-active-background-color); // @presenter Color
|
|
207
|
+
|
|
208
|
+
// @tokens End
|
|
209
|
+
`;
|
|
210
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -1,13 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
exports.CollapseSidebarButton = void 0;
|
|
7
30
|
const react_1 = __importDefault(require("react"));
|
|
31
|
+
const styled_components_1 = __importStar(require("styled-components"));
|
|
8
32
|
const styled_1 = require("../../components/SidebarActions/styled");
|
|
9
33
|
const CollapseSidebarButton = ({ initialValue, onClick, }) => {
|
|
10
|
-
return (react_1.default.createElement(
|
|
34
|
+
return (react_1.default.createElement(ToggleButton, { title: initialValue ? 'Show sidebar' : 'Hide sidebar', onClick: onClick, collapsed: initialValue }, initialValue ? react_1.default.createElement(styled_1.HideLeftPanelSVG, null) : react_1.default.createElement(styled_1.ShowLeftPanelSVG, null)));
|
|
11
35
|
};
|
|
12
36
|
exports.CollapseSidebarButton = CollapseSidebarButton;
|
|
37
|
+
const ToggleButton = (0, styled_components_1.default)(styled_1.StyledToggleRightPanelButton) `
|
|
38
|
+
background: var(--sidebar-collapse-button-background-color);
|
|
39
|
+
fill: var(--sidebar-collapse-button-icon-color);
|
|
40
|
+
margin-right: ${({ collapsed }) => (collapsed ? 0 : 'calc(var(--spacing-unit) * -9)')};
|
|
41
|
+
border: 1px solid var(--sidebar-collapse-button-border-color);
|
|
42
|
+
|
|
43
|
+
${({ collapsed }) => collapsed &&
|
|
44
|
+
(0, styled_components_1.css) `
|
|
45
|
+
background: var(--sidebar-collapse-button-active-background-color);
|
|
46
|
+
border: var(--sidebar-collapse-button-active-border-color);
|
|
47
|
+
`}
|
|
48
|
+
`;
|
|
13
49
|
//# sourceMappingURL=CollapseSidebarButton.js.map
|
|
@@ -30,11 +30,11 @@ exports.ControlsWrapChangeLayoutButtons = exports.ControlsWrap = exports.ChangeV
|
|
|
30
30
|
const react_1 = __importDefault(require("react"));
|
|
31
31
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
exports.ShowLeftPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
33
|
-
react_1.default.createElement("path", { d: "M4.375 7L8.75 2.625L9.3625 3.2375L5.6 7L9.3625 10.7625L8.75 11.375L4.375 7Z", fill: "var(--
|
|
33
|
+
react_1.default.createElement("path", { d: "M4.375 7L8.75 2.625L9.3625 3.2375L5.6 7L9.3625 10.7625L8.75 11.375L4.375 7Z", fill: "var(--text-secondary)" })))) `
|
|
34
34
|
position: absolute;
|
|
35
35
|
`;
|
|
36
36
|
exports.HideLeftPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
37
|
-
react_1.default.createElement("path", { d: "M9.62495 7L5.24995 11.375L4.63745 10.7625L8.39995 7L4.63745 3.2375L5.24995 2.625L9.62495 7Z", fill: "var(--
|
|
37
|
+
react_1.default.createElement("path", { d: "M9.62495 7L5.24995 11.375L4.63745 10.7625L8.39995 7L4.63745 3.2375L5.24995 2.625L9.62495 7Z", fill: "var(--text-secondary)" })))) `
|
|
38
38
|
position: absolute;
|
|
39
39
|
`;
|
|
40
40
|
exports.StyledToggleRightPanelButton = styled_components_1.default.a `
|
|
@@ -52,11 +52,11 @@ exports.StyledToggleRightPanelButton = styled_components_1.default.a `
|
|
|
52
52
|
}
|
|
53
53
|
`;
|
|
54
54
|
exports.HideRightPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
55
|
-
react_1.default.createElement("path", { d: "M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3Z", fill: "
|
|
55
|
+
react_1.default.createElement("path", { d: "M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3Z", fill: "currentColor" })))) `
|
|
56
56
|
position: absolute;
|
|
57
57
|
`;
|
|
58
58
|
exports.ShowRightPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
59
|
-
react_1.default.createElement("path", { d: "M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3ZM14 13H11V3H14V13Z", fill: "
|
|
59
|
+
react_1.default.createElement("path", { d: "M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3ZM14 13H11V3H14V13Z", fill: "currentColor" })))) `
|
|
60
60
|
position: absolute;
|
|
61
61
|
`;
|
|
62
62
|
exports.StyledChangeViewButton = styled_components_1.default.a `
|
|
@@ -75,15 +75,15 @@ exports.StyledChangeViewButton = styled_components_1.default.a `
|
|
|
75
75
|
}
|
|
76
76
|
`;
|
|
77
77
|
exports.ChangeViewSvgRow = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
78
|
-
react_1.default.createElement("path", { d: "M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z", fill: "
|
|
79
|
-
react_1.default.createElement("path", { d: "M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z", fill: "
|
|
80
|
-
react_1.default.createElement("path", { d: "M2.625 11.375L2.625 8.75L11.375 8.75L11.375 11.375L2.625 11.375ZM2.625 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375L12.25 8.75C12.25 8.51794 12.1578 8.29538 11.9937 8.13128C11.8296 7.96719 11.6071 7.875 11.375 7.875L2.625 7.875C2.39294 7.875 2.17038 7.96719 2.00628 8.13128C1.84219 8.29538 1.75 8.51793 1.75 8.75L1.75 11.375C1.75 11.6071 1.84219 11.8296 2.00628 11.9937C2.17038 12.1578 2.39294 12.25 2.625 12.25Z", fill: "
|
|
78
|
+
react_1.default.createElement("path", { d: "M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z", fill: "currentColor" }),
|
|
79
|
+
react_1.default.createElement("path", { d: "M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z", fill: "currentColor" }),
|
|
80
|
+
react_1.default.createElement("path", { d: "M2.625 11.375L2.625 8.75L11.375 8.75L11.375 11.375L2.625 11.375ZM2.625 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375L12.25 8.75C12.25 8.51794 12.1578 8.29538 11.9937 8.13128C11.8296 7.96719 11.6071 7.875 11.375 7.875L2.625 7.875C2.39294 7.875 2.17038 7.96719 2.00628 8.13128C1.84219 8.29538 1.75 8.51793 1.75 8.75L1.75 11.375C1.75 11.6071 1.84219 11.8296 2.00628 11.9937C2.17038 12.1578 2.39294 12.25 2.625 12.25Z", fill: "currentColor" })))) `
|
|
81
81
|
position: absolute;
|
|
82
82
|
`;
|
|
83
83
|
exports.ChangeViewSvgColumn = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
84
|
-
react_1.default.createElement("path", { d: "M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z", fill: "
|
|
85
|
-
react_1.default.createElement("path", { d: "M5.6875 12.25L5.6875 1.75L4.8125 1.75L4.8125 12.25L5.6875 12.25Z", fill: "
|
|
86
|
-
react_1.default.createElement("path", { d: "M11.375 11.375L8.75 11.375L8.75 2.625L11.375 2.625L11.375 11.375ZM12.25 11.375L12.25 2.625C12.25 2.39294 12.1578 2.17038 11.9937 2.00628C11.8296 1.84219 11.6071 1.75 11.375 1.75L8.75 1.75C8.51794 1.75 8.29538 1.84219 8.13128 2.00628C7.96719 2.17038 7.875 2.39294 7.875 2.625L7.875 11.375C7.875 11.6071 7.96719 11.8296 8.13128 11.9937C8.29538 12.1578 8.51794 12.25 8.75 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375Z", fill: "
|
|
84
|
+
react_1.default.createElement("path", { d: "M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z", fill: "currentColor" }),
|
|
85
|
+
react_1.default.createElement("path", { d: "M5.6875 12.25L5.6875 1.75L4.8125 1.75L4.8125 12.25L5.6875 12.25Z", fill: "currentColor" }),
|
|
86
|
+
react_1.default.createElement("path", { d: "M11.375 11.375L8.75 11.375L8.75 2.625L11.375 2.625L11.375 11.375ZM12.25 11.375L12.25 2.625C12.25 2.39294 12.1578 2.17038 11.9937 2.00628C11.8296 1.84219 11.6071 1.75 11.375 1.75L8.75 1.75C8.51794 1.75 8.29538 1.84219 8.13128 2.00628C7.96719 2.17038 7.875 2.39294 7.875 2.625L7.875 11.375C7.875 11.6071 7.96719 11.8296 8.13128 11.9937C8.29538 12.1578 8.51794 12.25 8.75 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375Z", fill: "currentColor" })))) `
|
|
87
87
|
position: absolute;
|
|
88
88
|
`;
|
|
89
89
|
exports.ControlsWrap = styled_components_1.default.span `
|
|
@@ -91,17 +91,19 @@ exports.ControlsWrap = styled_components_1.default.span `
|
|
|
91
91
|
justify-content: ${({ isOpenapiDocs }) => (isOpenapiDocs ? 'space-between' : 'flex-end')};
|
|
92
92
|
bottom: 0;
|
|
93
93
|
flex-direction: row;
|
|
94
|
-
gap: var(--spacing-
|
|
94
|
+
gap: var(--spacing-xxs);
|
|
95
95
|
align-items: center;
|
|
96
|
-
margin-left:
|
|
96
|
+
margin-left: var(--sidebar-controls-margin-left);
|
|
97
97
|
z-index: 2;
|
|
98
98
|
background: var(--sidebar-background-color);
|
|
99
99
|
|
|
100
100
|
${({ isCollapsed }) => isCollapsed &&
|
|
101
101
|
(0, styled_components_1.css) `
|
|
102
102
|
flex-direction: column;
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
margin-left: 0;
|
|
104
|
+
gap: var(--sidebar-controls-collapsed-gap);
|
|
105
|
+
padding: var(--sidebar-controls-collapsed-padding-vertical)
|
|
106
|
+
var(--sidebar-controls-collapsed-padding-horizontal);
|
|
105
107
|
`}
|
|
106
108
|
|
|
107
109
|
${({ theme }) => (0, styled_components_1.css) `
|
|
@@ -68,11 +68,12 @@ const TocHeader = styled_components_1.default.div `
|
|
|
68
68
|
font-weight: var(--toc-heading-font-weight);
|
|
69
69
|
padding: var(--toc-item-padding-vertical) var(--toc-item-padding-horizontal);
|
|
70
70
|
color: var(--toc-heading-text-color);
|
|
71
|
-
text-transform:
|
|
71
|
+
text-transform: var(--toc-heading-text-transform);
|
|
72
72
|
`;
|
|
73
73
|
const MenuItem = styled_components_1.default.a `
|
|
74
74
|
display: block;
|
|
75
75
|
color: var(--toc-item-text-color);
|
|
76
|
+
font-weight: var(--toc-item-font-weight);
|
|
76
77
|
background-color: var(--toc-item-background-color);
|
|
77
78
|
cursor: pointer;
|
|
78
79
|
font-size: var(--toc-item-font-size);
|
|
@@ -86,7 +87,6 @@ const MenuItem = styled_components_1.default.a `
|
|
|
86
87
|
:hover,
|
|
87
88
|
&.active {
|
|
88
89
|
color: var(--toc-item-active-text-color);
|
|
89
|
-
background-color: var(--toc-item-active-background-color);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
:empty {
|
|
@@ -107,7 +107,6 @@ const TableOfContentItems = styled_components_1.default.div `
|
|
|
107
107
|
position: sticky;
|
|
108
108
|
top: calc(var(--navbar-height) + var(--toc-offset-top));
|
|
109
109
|
max-height: calc(100vh - var(--navbar-height) - var(--toc-offset-top));
|
|
110
|
-
border-left: 1px solid var(--toc-border-color);
|
|
111
110
|
overflow-y: auto;
|
|
112
111
|
width: var(--toc-width);
|
|
113
112
|
`;
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../components/TableOfContent/TableOfContent"), exports);
|
|
18
|
+
__exportStar(require("../../components/TableOfContent/styledVariables"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toc: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toc = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.toc = (0, styled_components_1.css) `
|
|
6
|
+
/**
|
|
7
|
+
* @tokens TOC
|
|
8
|
+
* */
|
|
9
|
+
|
|
10
|
+
--toc-width: 240px;
|
|
11
|
+
--toc-background-color: transparent;
|
|
12
|
+
|
|
13
|
+
--toc-spacing-unit: var(--spacing-xs);
|
|
14
|
+
--toc-offset-top: var(--toc-spacing-unit);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @tokens TOC item typography
|
|
18
|
+
*/
|
|
19
|
+
--toc-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
20
|
+
--toc-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @tokens TOC item
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
--toc-item-text-color: var(--text-description); // @presenter Color
|
|
27
|
+
--toc-item-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
28
|
+
--toc-item-active-text-color: var(--text-primary); // @presenter Color
|
|
29
|
+
--toc-item-background-color: transparent; // @presenter Color
|
|
30
|
+
--toc-item-nested-offset: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
31
|
+
--toc-item-padding-vertical: var(--toc-spacing-unit); // @presenter Spacing
|
|
32
|
+
--toc-item-padding-horizontal: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @tokens TOC header
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
--toc-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
39
|
+
--toc-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
40
|
+
--toc-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
41
|
+
--toc-heading-text-color: var(--text-primary); // @presenter Color
|
|
42
|
+
--toc-heading-text-transform: none; // @presenter TextTransform
|
|
43
|
+
|
|
44
|
+
// @tokens End
|
|
45
|
+
`;
|
|
46
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -22,7 +22,7 @@ const TabItem = styled_components_1.default.li `
|
|
|
22
22
|
background-color: var(--background-color);
|
|
23
23
|
border: solid var(--md-tabs-active-tab-border-color);
|
|
24
24
|
border-width: 0 0 1px 0;
|
|
25
|
-
color: var(--text-
|
|
25
|
+
color: var(--text-primary);
|
|
26
26
|
`
|
|
27
27
|
: `
|
|
28
28
|
&:hover {
|
|
@@ -59,7 +59,7 @@ const TabList = styled_components_1.default.ol `
|
|
|
59
59
|
color: var(--md-tabs-tab-text-color);
|
|
60
60
|
padding: 0;
|
|
61
61
|
margin-block-end: 0;
|
|
62
|
-
border: solid var(--
|
|
62
|
+
border: solid var(--border-primary);
|
|
63
63
|
border-width: 0 0 1px 0;
|
|
64
64
|
|
|
65
65
|
li[class^='Tab__TabItem'] {
|