@redocly/theme 0.18.3-patch.8 → 0.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/I18n/LanguagePicker.d.ts +2 -7
- package/lib/I18n/LanguagePicker.js +12 -27
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -15
- package/lib/components/Breadcrumbs/Breadcrumb.js +5 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -6
- package/lib/components/Breadcrumbs/index.d.ts +0 -1
- package/lib/components/Breadcrumbs/index.js +0 -1
- package/lib/components/Button/Button.d.ts +3 -6
- package/lib/components/Button/Button.js +41 -41
- package/lib/components/Button/index.d.ts +0 -1
- package/lib/components/Button/index.js +0 -1
- package/lib/components/Catalog/Catalog.d.ts +0 -6
- package/lib/components/Catalog/Catalog.js +103 -108
- package/lib/components/Catalog/CatalogCard.js +58 -89
- package/lib/components/Catalog/index.d.ts +3 -4
- package/lib/components/Catalog/index.js +3 -4
- package/lib/components/CodeBlock/CodeBlockContainer.js +10 -38
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +4 -3
- package/lib/components/CodeBlock/CodeBlockControlButton.js +19 -5
- package/lib/components/CodeBlock/CodeBlockControls.js +5 -8
- package/lib/components/CodeBlock/index.d.ts +0 -1
- package/lib/components/CodeBlock/index.js +0 -1
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +1 -0
- package/lib/components/Dropdown/Dropdown.d.ts +3 -9
- package/lib/components/Dropdown/Dropdown.js +4 -7
- package/lib/components/Dropdown/index.d.ts +0 -1
- package/lib/components/Dropdown/index.js +0 -1
- package/lib/components/EditPageButton/EditPageButton.js +1 -5
- package/lib/components/Feedback/Comment.js +0 -5
- package/lib/components/Feedback/Rating.js +1 -5
- package/lib/components/Feedback/Reasons.js +1 -6
- package/lib/components/Feedback/Sentiment.js +0 -5
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.d.ts +1 -3
- package/lib/components/Filter/Filter.js +80 -113
- package/lib/components/Filter/index.d.ts +0 -2
- package/lib/components/Filter/index.js +0 -2
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +3 -4
- package/lib/components/Footer/Footer.js +10 -28
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +63 -55
- package/lib/components/Footer/FooterColumns.js +4 -6
- package/lib/components/Footer/FooterCopyright.js +6 -11
- package/lib/components/Footer/index.d.ts +0 -1
- package/lib/components/Footer/index.js +0 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/LastUpdated/LastUpdated.js +0 -1
- package/lib/components/Markdown/Admonition.js +9 -12
- package/lib/components/Markdown/MarkdownWrapper.js +4 -2
- package/lib/components/Markdown/Mermaid.js +1 -4
- package/lib/components/Markdown/index.d.ts +0 -1
- package/lib/components/Markdown/index.js +0 -1
- package/lib/components/Menu/Menu.js +7 -5
- package/lib/components/Menu/MenuGroup.js +7 -12
- package/lib/components/Menu/MenuItemLabel.js +13 -9
- package/lib/components/Menu/MobileMenu.js +25 -20
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/index.d.ts +0 -1
- package/lib/components/Menu/index.js +0 -1
- package/lib/components/{Profile → Navbar}/MobileUserProfile.js +24 -12
- package/lib/components/Navbar/Navbar.js +11 -10
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +4 -11
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +0 -1
- package/lib/components/Navbar/index.js +0 -1
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +1 -4
- package/lib/components/NavbarLogo/NavbarLogo.js +5 -13
- package/lib/components/NavbarLogo/index.d.ts +0 -1
- package/lib/components/NavbarLogo/index.js +0 -1
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/OperationBadge/OperationBadge.d.ts +6 -0
- package/lib/components/OperationBadge/OperationBadge.js +68 -0
- package/lib/components/OperationBadge/index.d.ts +1 -0
- package/lib/{icons/LanguageIcon → components/OperationBadge}/index.js +1 -1
- package/lib/components/Panel/PanelHeader.js +0 -2
- package/lib/components/Panel/PanelHeaderTitle.js +4 -0
- package/lib/components/Panel/index.d.ts +0 -1
- package/lib/components/Panel/index.js +0 -1
- package/lib/components/Product/ProductPicker.js +5 -17
- package/lib/components/Product/index.d.ts +0 -1
- package/lib/components/Product/index.js +0 -1
- package/lib/components/Profile/LoginLink.js +2 -1
- package/lib/components/Profile/Profile.js +22 -3
- package/lib/components/Profile/UserProfile.js +9 -21
- package/lib/components/Profile/index.d.ts +0 -1
- package/lib/components/Profile/index.js +0 -15
- package/lib/components/Search/CancelSearch.js +14 -2
- package/lib/components/Search/ProductTag.js +8 -8
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +2 -0
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +4 -4
- package/lib/components/Search/SearchTrigger.js +5 -4
- package/lib/components/Search/ShortcutKey.js +5 -1
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +0 -1
- package/lib/components/Search/index.js +0 -1
- package/lib/components/Select/Select.d.ts +9 -21
- package/lib/components/Select/Select.js +17 -28
- package/lib/components/Select/index.d.ts +0 -1
- package/lib/components/Select/index.js +0 -1
- package/lib/components/Separator/Separator.js +3 -11
- package/lib/components/Separator/SeparatorItem.js +9 -6
- package/lib/components/Separator/SeparatorLine.js +3 -7
- package/lib/components/Sidebar/ApiCallItem.d.ts +6 -2
- package/lib/components/Sidebar/ApiCallItem.js +13 -17
- package/lib/components/Sidebar/FooterWrapper.js +4 -3
- package/lib/components/Sidebar/HeaderWrapper.js +3 -3
- package/lib/components/Sidebar/VersionPicker.d.ts +3 -3
- package/lib/components/Sidebar/VersionPicker.js +4 -5
- package/lib/components/Sidebar/index.d.ts +0 -1
- package/lib/components/Sidebar/index.js +0 -1
- package/lib/components/Sidebar/types.d.ts +0 -1
- package/lib/components/SidebarActions/CollapseSidebarButton.js +1 -41
- package/lib/components/SidebarActions/styled.js +21 -29
- package/lib/components/TableOfContent/TableOfContent.js +3 -2
- package/lib/components/TableOfContent/index.d.ts +0 -1
- package/lib/components/TableOfContent/index.js +0 -1
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tags/Tags.d.ts +5 -0
- package/lib/components/Tags/Tags.js +32 -0
- package/lib/components/Tags/index.d.ts +1 -0
- package/lib/components/{Image → Tags}/index.js +1 -1
- package/lib/components/Tiles/ThinTile.js +5 -7
- package/lib/components/Tiles/TileHeader.js +1 -1
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tiles/WideTile.js +8 -10
- package/lib/components/Tooltip/index.d.ts +0 -1
- package/lib/components/Tooltip/index.js +0 -1
- package/lib/components/Typography/SectionHeader.js +2 -2
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +2 -1
- package/lib/config.d.ts +0 -113
- package/lib/config.js +3 -27
- package/lib/globalStyle.js +1983 -602
- package/lib/hooks/useMobileMenu.js +6 -5
- package/lib/icons/AlertIcon/AlertIcon.js +5 -0
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +2 -1
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +2 -1
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/FileIcon/FileIcon.d.ts +2 -1
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/ReportIcon/ReportIcon.d.ts +2 -1
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/SelectIcon/SelectIcon.d.ts +2 -1
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +0 -4
- package/lib/icons/index.js +0 -4
- package/lib/layouts/Forbidden.js +0 -4
- package/lib/layouts/NotFound.js +0 -4
- package/lib/types/portal/src/shared/types/catalog.d.ts +1 -5
- package/lib/types/portal/src/shared/types/nav.d.ts +0 -5
- package/lib/ui/ArrowBack.js +1 -0
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Highlight.d.ts +1 -1
- package/lib/ui/Highlight.js +1 -1
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +84 -217
- package/lib/utils/css-variables.js +1 -1
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +0 -1
- package/package.json +1 -1
- package/src/I18n/LanguagePicker.tsx +21 -48
- package/src/I18n/index.ts +0 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +5 -2
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -6
- package/src/components/Breadcrumbs/index.ts +0 -1
- package/src/components/Button/Button.tsx +47 -53
- package/src/components/Button/index.ts +0 -1
- package/src/components/Catalog/Catalog.tsx +120 -135
- package/src/components/Catalog/CatalogCard.tsx +58 -106
- package/src/components/Catalog/index.tsx +3 -0
- package/src/components/CodeBlock/CodeBlockContainer.tsx +9 -17
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +19 -6
- package/src/components/CodeBlock/CodeBlockControls.tsx +5 -8
- package/src/components/CodeBlock/index.ts +0 -1
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -0
- package/src/components/Dropdown/Dropdown.tsx +5 -14
- package/src/components/Dropdown/index.ts +0 -1
- package/src/components/EditPageButton/EditPageButton.tsx +1 -5
- package/src/components/Feedback/Comment.tsx +0 -5
- package/src/components/Feedback/Rating.tsx +1 -5
- package/src/components/Feedback/Reasons.tsx +1 -6
- package/src/components/Feedback/Sentiment.tsx +0 -5
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +94 -150
- package/src/components/Filter/index.ts +0 -2
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +10 -32
- package/src/components/Footer/FooterColumn.tsx +63 -82
- package/src/components/Footer/FooterColumns.tsx +4 -6
- package/src/components/Footer/FooterCopyright.tsx +7 -13
- package/src/components/Footer/index.ts +0 -1
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LastUpdated/LastUpdated.tsx +2 -1
- package/src/components/Markdown/Admonition.tsx +8 -13
- package/src/components/Markdown/MarkdownWrapper.tsx +4 -2
- package/src/components/Markdown/Mermaid.tsx +1 -4
- package/src/components/Markdown/index.ts +0 -1
- package/src/components/Menu/Menu.tsx +7 -5
- package/src/components/Menu/MenuGroup.tsx +7 -15
- package/src/components/Menu/MenuItemLabel.tsx +13 -9
- package/src/components/Menu/MobileMenu.tsx +25 -20
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +0 -1
- package/src/components/{Profile → Navbar}/MobileUserProfile.tsx +29 -12
- package/src/components/Navbar/Navbar.tsx +11 -10
- package/src/components/Navbar/NavbarItem.tsx +4 -13
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +0 -1
- package/src/components/NavbarLogo/NavbarLogo.tsx +11 -24
- package/src/components/NavbarLogo/index.ts +0 -1
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +2 -1
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/OperationBadge/OperationBadge.ts +62 -0
- package/src/components/OperationBadge/index.ts +1 -0
- package/src/components/Panel/PanelHeader.ts +0 -2
- package/src/components/Panel/PanelHeaderTitle.ts +4 -0
- package/src/components/Panel/index.ts +0 -1
- package/src/components/Product/ProductPicker.tsx +13 -18
- package/src/components/Product/index.ts +0 -1
- package/src/components/Profile/LoginLink.tsx +2 -1
- package/src/components/Profile/Profile.tsx +24 -1
- package/src/components/Profile/UserProfile.tsx +8 -20
- package/src/components/Profile/index.ts +0 -1
- package/src/components/Search/CancelSearch.tsx +15 -2
- package/src/components/Search/ProductTag.tsx +8 -8
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +2 -0
- package/src/components/Search/SearchIcon.tsx +5 -10
- package/src/components/Search/SearchItem.tsx +4 -4
- package/src/components/Search/SearchTrigger.tsx +5 -4
- package/src/components/Search/ShortcutKey.tsx +5 -1
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +0 -1
- package/src/components/Select/Select.tsx +31 -66
- package/src/components/Select/index.ts +0 -1
- package/src/components/Separator/Separator.tsx +3 -17
- package/src/components/Separator/SeparatorItem.tsx +9 -6
- package/src/components/Separator/SeparatorLine.tsx +3 -7
- package/src/components/Sidebar/ApiCallItem.tsx +13 -17
- package/src/components/Sidebar/FooterWrapper.tsx +4 -3
- package/src/components/Sidebar/HeaderWrapper.tsx +3 -3
- package/src/components/Sidebar/VersionPicker.tsx +4 -5
- package/src/components/Sidebar/index.ts +0 -1
- package/src/components/Sidebar/types.ts +0 -1
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +2 -22
- package/src/components/SidebarActions/styled.tsx +30 -29
- package/src/components/TableOfContent/TableOfContent.tsx +3 -2
- package/src/components/TableOfContent/index.ts +0 -1
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tags/Tags.tsx +36 -0
- package/src/components/Tags/index.ts +1 -0
- package/src/components/Tiles/ThinTile.tsx +5 -7
- package/src/components/Tiles/TileHeader.ts +1 -1
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tiles/WideTile.tsx +8 -10
- package/src/components/Tooltip/index.ts +0 -1
- package/src/components/Typography/SectionHeader.ts +2 -2
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +2 -1
- package/src/config.ts +1 -30
- package/src/globalStyle.ts +1999 -597
- package/src/hooks/useMobileMenu.ts +4 -3
- package/src/icons/AlertIcon/AlertIcon.tsx +5 -0
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +5 -4
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/ExpandIcon/ExpandIcon.tsx +6 -5
- package/src/icons/FileIcon/FileIcon.tsx +3 -2
- package/src/icons/ReportIcon/ReportIcon.tsx +4 -3
- package/src/icons/SelectIcon/SelectIcon.tsx +6 -5
- package/src/icons/index.ts +0 -4
- package/src/layouts/Forbidden.tsx +0 -4
- package/src/layouts/NotFound.tsx +0 -4
- package/src/types/portal/src/shared/types/catalog.ts +1 -7
- package/src/types/portal/src/shared/types/nav.ts +0 -5
- package/src/ui/ArrowBack.tsx +1 -0
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Highlight.tsx +2 -2
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +84 -217
- package/src/utils/css-variables.ts +2 -4
- package/src/utils/index.ts +0 -1
- package/lib/I18n/styledVariables.d.ts +0 -1
- package/lib/I18n/styledVariables.js +0 -40
- package/lib/components/Breadcrumbs/styledVariables.d.ts +0 -1
- package/lib/components/Breadcrumbs/styledVariables.js +0 -20
- package/lib/components/Button/styledVariables.d.ts +0 -1
- package/lib/components/Button/styledVariables.js +0 -107
- package/lib/components/Catalog/styledVariables.d.ts +0 -1
- package/lib/components/Catalog/styledVariables.js +0 -96
- package/lib/components/CodeBlock/styledVariables.d.ts +0 -1
- package/lib/components/CodeBlock/styledVariables.js +0 -92
- package/lib/components/Dropdown/styledVariables.d.ts +0 -1
- package/lib/components/Dropdown/styledVariables.js +0 -30
- package/lib/components/Filter/FilterContent.d.ts +0 -13
- package/lib/components/Filter/FilterContent.js +0 -60
- package/lib/components/Filter/FilterPopover.d.ts +0 -13
- package/lib/components/Filter/FilterPopover.js +0 -109
- package/lib/components/Filter/FilterTag.d.ts +0 -7
- package/lib/components/Filter/FilterTag.js +0 -33
- package/lib/components/Filter/FilterTags.d.ts +0 -7
- package/lib/components/Filter/FilterTags.js +0 -29
- package/lib/components/Filter/styledVariables.d.ts +0 -1
- package/lib/components/Filter/styledVariables.js +0 -112
- package/lib/components/Footer/styledVariables.d.ts +0 -1
- package/lib/components/Footer/styledVariables.js +0 -61
- package/lib/components/Image/Image.d.ts +0 -9
- package/lib/components/Image/Image.js +0 -31
- package/lib/components/Image/index.d.ts +0 -1
- package/lib/components/LastUpdated/index.d.ts +0 -1
- package/lib/components/LastUpdated/index.js +0 -18
- package/lib/components/LastUpdated/styledVariables.d.ts +0 -1
- package/lib/components/LastUpdated/styledVariables.js +0 -11
- package/lib/components/Markdown/styledVariables.d.ts +0 -3
- package/lib/components/Markdown/styledVariables.js +0 -231
- package/lib/components/Menu/styledVariables.d.ts +0 -2
- package/lib/components/Menu/styledVariables.js +0 -101
- package/lib/components/Navbar/styledVariables.d.ts +0 -1
- package/lib/components/Navbar/styledVariables.js +0 -43
- package/lib/components/NavbarLogo/styledVariables.d.ts +0 -1
- package/lib/components/NavbarLogo/styledVariables.js +0 -18
- package/lib/components/Panel/styledVariables.d.ts +0 -2
- package/lib/components/Panel/styledVariables.js +0 -481
- package/lib/components/Product/styledVariables.d.ts +0 -2
- package/lib/components/Product/styledVariables.js +0 -41
- package/lib/components/Profile/UserProfileData.d.ts +0 -9
- package/lib/components/Profile/UserProfileData.js +0 -35
- package/lib/components/Profile/styledVariables.d.ts +0 -2
- package/lib/components/Profile/styledVariables.js +0 -55
- package/lib/components/Search/styledVariables.d.ts +0 -1
- package/lib/components/Search/styledVariables.js +0 -98
- package/lib/components/Select/styledVariables.d.ts +0 -1
- package/lib/components/Select/styledVariables.js +0 -34
- package/lib/components/Sidebar/styledVariables.d.ts +0 -2
- package/lib/components/Sidebar/styledVariables.js +0 -216
- package/lib/components/TableOfContent/styledVariables.d.ts +0 -1
- package/lib/components/TableOfContent/styledVariables.js +0 -46
- package/lib/components/Tag/Tag.d.ts +0 -18
- package/lib/components/Tag/Tag.js +0 -45
- package/lib/components/Tag/index.d.ts +0 -2
- package/lib/components/Tag/index.js +0 -19
- package/lib/components/Tag/styledVariables.d.ts +0 -1
- package/lib/components/Tag/styledVariables.js +0 -136
- package/lib/components/Tooltip/styledVariables.d.ts +0 -1
- package/lib/components/Tooltip/styledVariables.js +0 -21
- package/lib/hooks/useModalScrollLock.d.ts +0 -1
- package/lib/hooks/useModalScrollLock.js +0 -16
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +0 -6
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +0 -28
- package/lib/icons/CheckboxIcon/index.d.ts +0 -1
- package/lib/icons/CheckboxIcon/index.js +0 -6
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +0 -4
- package/lib/icons/ErrorIcon/ErrorIcon.js +0 -14
- package/lib/icons/ErrorIcon/index.d.ts +0 -1
- package/lib/icons/ErrorIcon/index.js +0 -18
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +0 -4
- package/lib/icons/LanguageIcon/LanguageIcon.js +0 -14
- package/lib/icons/LanguageIcon/index.d.ts +0 -1
- package/lib/icons/PlusIcon/PlusIcon.d.ts +0 -5
- package/lib/icons/PlusIcon/PlusIcon.js +0 -16
- package/lib/icons/PlusIcon/index.d.ts +0 -1
- package/lib/icons/PlusIcon/index.js +0 -18
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +0 -4
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +0 -15
- package/lib/icons/PointingArrowIcon/index.d.ts +0 -1
- package/lib/icons/PointingArrowIcon/index.js +0 -18
- package/lib/utils/tags-parser.d.ts +0 -1
- package/lib/utils/tags-parser.js +0 -10
- package/src/I18n/styledVariables.ts +0 -37
- package/src/components/Breadcrumbs/styledVariables.ts +0 -17
- package/src/components/Button/styledVariables.ts +0 -104
- package/src/components/Catalog/index.ts +0 -4
- package/src/components/Catalog/styledVariables.ts +0 -93
- package/src/components/CodeBlock/styledVariables.ts +0 -89
- package/src/components/Dropdown/styledVariables.ts +0 -27
- package/src/components/Filter/FilterContent.tsx +0 -95
- package/src/components/Filter/FilterPopover.tsx +0 -150
- package/src/components/Filter/FilterTag.tsx +0 -37
- package/src/components/Filter/FilterTags.tsx +0 -39
- package/src/components/Filter/styledVariables.ts +0 -109
- package/src/components/Footer/styledVariables.ts +0 -58
- package/src/components/Image/Image.tsx +0 -47
- package/src/components/Image/index.ts +0 -1
- package/src/components/LastUpdated/index.ts +0 -1
- package/src/components/LastUpdated/styledVariables.ts +0 -8
- package/src/components/Markdown/styledVariables.ts +0 -230
- package/src/components/Menu/styledVariables.ts +0 -99
- package/src/components/Navbar/styledVariables.ts +0 -40
- package/src/components/NavbarLogo/styledVariables.ts +0 -15
- package/src/components/Panel/styledVariables.ts +0 -479
- package/src/components/Product/styledVariables.ts +0 -39
- package/src/components/Profile/UserProfileData.tsx +0 -40
- package/src/components/Profile/styledVariables.ts +0 -53
- package/src/components/Search/styledVariables.ts +0 -95
- package/src/components/Select/styledVariables.ts +0 -31
- package/src/components/Sidebar/styledVariables.ts +0 -214
- package/src/components/TableOfContent/styledVariables.ts +0 -43
- package/src/components/Tag/Tag.tsx +0 -71
- package/src/components/Tag/index.ts +0 -2
- package/src/components/Tag/styledVariables.ts +0 -133
- package/src/components/Tooltip/styledVariables.ts +0 -18
- package/src/hooks/useModalScrollLock.ts +0 -12
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +0 -64
- package/src/icons/CheckboxIcon/index.ts +0 -1
- package/src/icons/ErrorIcon/ErrorIcon.tsx +0 -15
- package/src/icons/ErrorIcon/index.ts +0 -1
- package/src/icons/LanguageIcon/LanguageIcon.tsx +0 -15
- package/src/icons/LanguageIcon/index.ts +0 -1
- package/src/icons/PlusIcon/PlusIcon.tsx +0 -25
- package/src/icons/PlusIcon/index.ts +0 -1
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +0 -16
- package/src/icons/PointingArrowIcon/index.ts +0 -1
- package/src/utils/tags-parser.ts +0 -8
- /package/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
|
@@ -31,10 +31,10 @@ const react_1 = __importStar(require("react"));
|
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const icons_1 = require("../../icons");
|
|
33
33
|
const hooks_1 = require("../../hooks");
|
|
34
|
-
|
|
35
|
-
const
|
|
34
|
+
const Select = ({ className, selected, options, dataAttributes, withArrow, triggerEvent = 'click', onChange, }) => {
|
|
35
|
+
const selectRef = (0, react_1.useRef)(null);
|
|
36
36
|
const [isOpen, setIsOpen] = (0, react_1.useState)(false);
|
|
37
|
-
|
|
37
|
+
const [_selected, setSelected] = (0, react_1.useState)(selected);
|
|
38
38
|
const handleOpen = () => {
|
|
39
39
|
setIsOpen(true);
|
|
40
40
|
};
|
|
@@ -45,23 +45,21 @@ function Select({ className, value, options, dataAttributes, withArrow = true, t
|
|
|
45
45
|
setIsOpen(!isOpen);
|
|
46
46
|
};
|
|
47
47
|
const handleSelect = (value) => {
|
|
48
|
-
|
|
48
|
+
setSelected(value);
|
|
49
49
|
setIsOpen(false);
|
|
50
50
|
onChange === null || onChange === void 0 ? void 0 : onChange(value);
|
|
51
51
|
};
|
|
52
|
-
(0, hooks_1.useOutsideClick)(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return (react_1.default.createElement(exports.SelectContainer, Object.assign({}, dataAttributes, { "data-testid": "select", className: className, ref: containerRef, onPointerEnter: triggerEvent === 'hover' ? handleOpen : undefined, onPointerLeave: triggerEvent === 'hover' ? handleClose : undefined, onClick: triggerEvent === 'click' ? handleToggle : undefined }),
|
|
52
|
+
(0, hooks_1.useOutsideClick)(selectRef, handleClose);
|
|
53
|
+
(0, react_1.useEffect)(() => {
|
|
54
|
+
handleSelect(selected);
|
|
55
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
56
|
+
}, [selected]);
|
|
57
|
+
return (react_1.default.createElement(exports.SelectContainer, Object.assign({}, dataAttributes, { "data-testid": "select", className: className, ref: selectRef, onPointerEnter: triggerEvent === 'hover' ? handleOpen : undefined, onPointerLeave: triggerEvent === 'hover' ? handleClose : undefined, onClick: triggerEvent === 'click' ? handleToggle : undefined }),
|
|
59
58
|
react_1.default.createElement(exports.SelectInput, null,
|
|
60
|
-
|
|
61
|
-
icon,
|
|
59
|
+
react_1.default.createElement(exports.SelectInputValue, { withArrow: withArrow }, _selected),
|
|
62
60
|
withArrow ? isOpen ? react_1.default.createElement(icons_1.ArrowIcon, { direction: "up" }) : react_1.default.createElement(icons_1.ArrowIcon, { direction: "down" }) : null),
|
|
63
|
-
isOpen && (react_1.default.createElement(exports.SelectList,
|
|
64
|
-
}
|
|
61
|
+
isOpen && (react_1.default.createElement(exports.SelectList, null, options.map((option, index) => (react_1.default.createElement(exports.SelectListItem, { key: index, onClick: () => handleSelect(option) }, option)))))));
|
|
62
|
+
};
|
|
65
63
|
exports.Select = Select;
|
|
66
64
|
exports.SelectContainer = styled_components_1.default.div `
|
|
67
65
|
position: relative;
|
|
@@ -84,21 +82,17 @@ exports.SelectInput = styled_components_1.default.div `
|
|
|
84
82
|
border-radius: var(--select-input-border-radius);
|
|
85
83
|
padding: var(--select-input-padding-vertical) var(--select-input-padding-horizontal);
|
|
86
84
|
cursor: pointer;
|
|
87
|
-
gap: 8px;
|
|
88
85
|
`;
|
|
89
86
|
exports.SelectInputValue = styled_components_1.default.div `
|
|
90
87
|
pointer-events: none;
|
|
91
|
-
|
|
88
|
+
${({ withArrow }) => (withArrow ? 'margin-right: 8px;' : '')}
|
|
92
89
|
`;
|
|
93
90
|
exports.SelectList = styled_components_1.default.ul `
|
|
94
91
|
position: absolute;
|
|
95
|
-
top:
|
|
96
|
-
|
|
97
|
-
left: ${({ alignment }) => (alignment === 'start' ? '0' : 'auto')};
|
|
98
|
-
right: ${({ alignment }) => (alignment === 'end' ? '0' : 'auto')};
|
|
92
|
+
top: 100%;
|
|
93
|
+
left: 0;
|
|
99
94
|
margin: 0;
|
|
100
95
|
min-width: var(--select-list-min-width);
|
|
101
|
-
width: 100%;
|
|
102
96
|
max-width: var(--select-list-max-width);
|
|
103
97
|
padding: var(--select-list-padding);
|
|
104
98
|
background-color: var(--select-list-background-color);
|
|
@@ -118,12 +112,7 @@ exports.SelectListItem = styled_components_1.default.li `
|
|
|
118
112
|
}
|
|
119
113
|
|
|
120
114
|
:hover {
|
|
121
|
-
background-color: var(--select-list-item-
|
|
115
|
+
background-color: var(--select-list-item-active-background-color);
|
|
122
116
|
}
|
|
123
|
-
|
|
124
|
-
${({ selected }) => selected &&
|
|
125
|
-
`
|
|
126
|
-
&, &:hover { background-color: var(--select-list-item-active-background-color); }
|
|
127
|
-
`}
|
|
128
117
|
`;
|
|
129
118
|
//# sourceMappingURL=Select.js.map
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../components/Select/Select"), exports);
|
|
18
|
-
__exportStar(require("../../components/Select/styledVariables"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -9,20 +9,12 @@ const styled_components_1 = __importDefault(require("styled-components"));
|
|
|
9
9
|
const SeparatorLine_1 = require("../../components/Separator/SeparatorLine");
|
|
10
10
|
const SeparatorItem_1 = require("../../components/Separator/SeparatorItem");
|
|
11
11
|
const hooks_1 = require("../../mocks/hooks");
|
|
12
|
-
const hooks_2 = require("../../hooks");
|
|
13
12
|
function Separator({ item, className }) {
|
|
14
13
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
15
|
-
|
|
16
|
-
const separatorLine = item.separatorLine || (sidebar === null || sidebar === void 0 ? void 0 : sidebar.separatorLine);
|
|
17
|
-
const linePosition = item.linePosition || (sidebar === null || sidebar === void 0 ? void 0 : sidebar.linePosition) || 'bottom';
|
|
18
|
-
return (react_1.default.createElement(Wrapper, { "data-component-name": "Sidebar/Separator", className: className, linePosition: linePosition, withLabel: !!item.label },
|
|
14
|
+
return (react_1.default.createElement(Wrapper, { "data-component-name": "Sidebar/Separator", className: className },
|
|
19
15
|
react_1.default.createElement(SeparatorItem_1.SeparatorItem, null, translate(item.labelTranslationKey, item.label)),
|
|
20
|
-
separatorLine ? react_1.default.createElement(SeparatorLine_1.SeparatorLine, null) : null));
|
|
16
|
+
item.separatorLine ? react_1.default.createElement(SeparatorLine_1.SeparatorLine, null) : null));
|
|
21
17
|
}
|
|
22
18
|
exports.Separator = Separator;
|
|
23
|
-
const Wrapper = styled_components_1.default.div
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: ${({ linePosition }) => (linePosition === 'top' ? 'column-reverse' : 'column')};
|
|
26
|
-
margin-top: ${({ withLabel }) => (withLabel ? 'var(--sidebar-item-separator-offset)' : '0')};
|
|
27
|
-
`;
|
|
19
|
+
const Wrapper = styled_components_1.default.div ``;
|
|
28
20
|
//# sourceMappingURL=Separator.js.map
|
|
@@ -11,21 +11,24 @@ exports.SeparatorItem = (0, styled_components_1.default)(MenuItemLabel_1.MenuIte
|
|
|
11
11
|
className,
|
|
12
12
|
})) `
|
|
13
13
|
cursor: default;
|
|
14
|
-
font-weight: var(--
|
|
15
|
-
color: var(--sidebar-
|
|
14
|
+
font-weight: var(--font-weight-bold);
|
|
15
|
+
color: var(--sidebar-separator-item-color);
|
|
16
|
+
font-family: var(--sidebar-item-separator-font-family);
|
|
16
17
|
font-size: var(--sidebar-item-separator-font-size);
|
|
17
18
|
text-transform: var(--sidebar-item-separator-text-transform);
|
|
18
19
|
background: var(--mobile-menu-background);
|
|
19
|
-
border-radius: 0;
|
|
20
|
-
padding: var(--sidebar-item-separator-padding);
|
|
21
20
|
|
|
22
21
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
23
22
|
background: var(--sidebar-item-separator-background-color);
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
*:not(:first-child) > & {
|
|
26
|
+
margin-top: var(--sidebar-item-separator-offset);
|
|
27
|
+
}
|
|
28
|
+
|
|
26
29
|
:hover {
|
|
27
|
-
color:
|
|
28
|
-
background:
|
|
30
|
+
color: inherit;
|
|
31
|
+
background-color: inherit;
|
|
29
32
|
}
|
|
30
33
|
`;
|
|
31
34
|
//# sourceMappingURL=SeparatorItem.js.map
|
|
@@ -9,12 +9,8 @@ exports.SeparatorLine = styled_components_1.default.div.attrs(({ className }) =>
|
|
|
9
9
|
'data-component-name': 'Sidebar/SeparatorLine',
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
|
-
height:
|
|
13
|
-
background-color: var(--sidebar-item-separator-
|
|
14
|
-
margin: var(--
|
|
15
|
-
|
|
16
|
-
${({ theme }) => theme.mediaQueries.medium} {
|
|
17
|
-
margin: var(--sidebar-item-separator-line-offset);
|
|
18
|
-
}
|
|
12
|
+
height: 1px;
|
|
13
|
+
background-color: var(--sidebar-item-separator-line-color);
|
|
14
|
+
margin: var(--sidebar-item-separator-offset) 0 var(--sidebar-item-padding-vertical) 0;
|
|
19
15
|
`;
|
|
20
16
|
//# sourceMappingURL=SeparatorLine.js.map
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Tag } from '../../components/Tag';
|
|
3
2
|
import type { MenuItemProps } from '../../components/Sidebar/types';
|
|
4
3
|
export declare function ApiCallItem({ item, className }: MenuItemProps): JSX.Element;
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const Badge: import("styled-components").StyledComponent<"span", any, {
|
|
5
|
+
className: `operation-type ${string}`;
|
|
6
|
+
'data-component-name': string;
|
|
7
|
+
} & {
|
|
8
|
+
type: string;
|
|
9
|
+
}, "className" | "data-component-name">;
|
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.Badge = exports.ApiCallItem = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const
|
|
9
|
+
const OperationBadge_1 = require("../../components/OperationBadge");
|
|
10
10
|
const MenuLinkItem_1 = require("../../components/Menu/MenuLinkItem");
|
|
11
11
|
const SeparatorLine_1 = require("../../components/Separator/SeparatorLine");
|
|
12
12
|
const MenuItemLabel_1 = require("../../components/Menu/MenuItemLabel");
|
|
@@ -14,14 +14,12 @@ 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
|
-
item.
|
|
18
|
-
|
|
17
|
+
react_1.default.createElement(exports.Badge, { type: item.httpVerb || '' }, item.httpVerb === 'hook' ? 'event' : item.httpVerb),
|
|
18
|
+
item.label)),
|
|
19
19
|
item.separatorLine ? react_1.default.createElement(SeparatorLine_1.SeparatorLine, null) : null));
|
|
20
20
|
}
|
|
21
21
|
exports.ApiCallItem = ApiCallItem;
|
|
22
22
|
const Label = (0, styled_components_1.default)(MenuItemLabel_1.MenuItemLabel) `
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: space-between;
|
|
25
23
|
color: var(--mobile-menu-item-text-color);
|
|
26
24
|
|
|
27
25
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
@@ -29,17 +27,15 @@ const Label = (0, styled_components_1.default)(MenuItemLabel_1.MenuItemLabel) `
|
|
|
29
27
|
}
|
|
30
28
|
`;
|
|
31
29
|
const Wrapper = styled_components_1.default.div ``;
|
|
32
|
-
exports.
|
|
30
|
+
exports.Badge = (0, styled_components_1.default)(OperationBadge_1.OperationBadge) `
|
|
33
31
|
flex-shrink: 0;
|
|
34
|
-
margin:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
font-weight: var(--sidebar-item-http-tag-font-weight);
|
|
43
|
-
border-radius: var(--sidebar-item-http-tag-border-radius);
|
|
32
|
+
margin-top: 0;
|
|
33
|
+
width: 36px;
|
|
34
|
+
height: 14px;
|
|
35
|
+
font-size: var(--sidebar-item-badge-http-font-size);
|
|
36
|
+
font-family: var(--sidebar-item-badge-http-font-family);
|
|
37
|
+
font-weight: var(--sidebar-item-badge-http-font-weight);
|
|
38
|
+
border-radius: var(--sidebar-item-badge-http-border-radius);
|
|
39
|
+
color: var(--sidebar-item-badge-http-text-color);
|
|
44
40
|
`;
|
|
45
41
|
//# sourceMappingURL=ApiCallItem.js.map
|
|
@@ -6,14 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.FooterWrapper = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
exports.FooterWrapper = styled_components_1.default.div `
|
|
9
|
-
padding: var(--sidebar-footer-padding-vertical) var(--sidebar-footer-padding-horizontal);
|
|
10
|
-
|
|
11
9
|
${({ collapsed }) => collapsed &&
|
|
12
10
|
`
|
|
13
11
|
position: sticky;
|
|
14
12
|
bottom: 0;
|
|
15
|
-
padding: 0;
|
|
16
13
|
`}
|
|
14
|
+
margin: var(--sidebar-offset-top) 0 var(--sidebar-spacing-unit) var(--sidebar-offset-left);
|
|
15
|
+
padding-top: var(--sidebar-spacing-unit);
|
|
16
|
+
padding-right: var(--sidebar-spacing-unit);
|
|
17
|
+
border-top: solid 1px var(--border-color);
|
|
17
18
|
|
|
18
19
|
button {
|
|
19
20
|
margin: 0;
|
|
@@ -9,8 +9,8 @@ exports.HeaderWrapper = styled_components_1.default.div.attrs(({ className }) =>
|
|
|
9
9
|
'data-component-name': 'Sidebar/HeaderWrapper',
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
|
-
margin: var(--sidebar-offset-top) 0 0
|
|
13
|
-
padding
|
|
14
|
-
border-bottom: solid 1px var(--border-
|
|
12
|
+
margin: var(--sidebar-offset-top) 0 0 var(--sidebar-offset-left);
|
|
13
|
+
padding-bottom: var(--sidebar-spacing-unit);
|
|
14
|
+
border-bottom: solid 1px var(--border-color);
|
|
15
15
|
`;
|
|
16
16
|
//# sourceMappingURL=HeaderWrapper.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { SelectProps } from '../Select';
|
|
2
|
-
import
|
|
3
|
-
export declare const VersionPicker: import("styled-components").StyledComponent<typeof Select, any, {
|
|
3
|
+
export declare const VersionPicker: import("styled-components").StyledComponent<({ className, selected, options, dataAttributes, withArrow, triggerEvent, onChange, }: SelectProps) => JSX.Element, any, {
|
|
4
4
|
dataAttributes: {
|
|
5
5
|
'data-component-name': string;
|
|
6
6
|
};
|
|
7
|
-
} & SelectProps
|
|
7
|
+
} & SelectProps, "dataAttributes">;
|
|
@@ -11,11 +11,6 @@ exports.VersionPicker = (0, styled_components_1.default)(Select_1.Select).attrs(
|
|
|
11
11
|
'data-component-name': 'Sidebar/VersionPicker',
|
|
12
12
|
},
|
|
13
13
|
})) `
|
|
14
|
-
--select-list-item-active-background-color: var(
|
|
15
|
-
--version-picker-list-item-active-background-color
|
|
16
|
-
);
|
|
17
|
-
--select-list-item-hover-background-color: var(--version-picker-list-item-hover-background-color);
|
|
18
|
-
|
|
19
14
|
font-size: var(--version-picker-font-size);
|
|
20
15
|
font-weight: var(--version-picker-font-weight);
|
|
21
16
|
border-radius: var(--version-picker-border-radius);
|
|
@@ -47,6 +42,10 @@ exports.VersionPicker = (0, styled_components_1.default)(Select_1.Select).attrs(
|
|
|
47
42
|
padding: var(--version-picker-list-item-vertical-padding)
|
|
48
43
|
var(--version-picker-list-item-horizontal-padding);
|
|
49
44
|
}
|
|
45
|
+
|
|
46
|
+
:hover {
|
|
47
|
+
background-color: var(--version-picker-list-item-active-background-color);
|
|
48
|
+
}
|
|
50
49
|
}
|
|
51
50
|
`;
|
|
52
51
|
//# sourceMappingURL=VersionPicker.js.map
|
|
@@ -11,4 +11,3 @@ export * from '../../components/Sidebar/FooterWrapper';
|
|
|
11
11
|
export * from '../../components/Sidebar/HeaderWrapper';
|
|
12
12
|
export * from '../../components/Sidebar/SidebarItemIcon';
|
|
13
13
|
export * from '../../components/Sidebar/VersionPicker';
|
|
14
|
-
export * from '../../components/Sidebar/styledVariables';
|
|
@@ -27,5 +27,4 @@ __exportStar(require("../../components/Sidebar/FooterWrapper"), exports);
|
|
|
27
27
|
__exportStar(require("../../components/Sidebar/HeaderWrapper"), exports);
|
|
28
28
|
__exportStar(require("../../components/Sidebar/SidebarItemIcon"), exports);
|
|
29
29
|
__exportStar(require("../../components/Sidebar/VersionPicker"), exports);
|
|
30
|
-
__exportStar(require("../../components/Sidebar/styledVariables"), exports);
|
|
31
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,53 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.CollapseSidebarButton = void 0;
|
|
30
7
|
const react_1 = __importDefault(require("react"));
|
|
31
|
-
const styled_components_1 = __importStar(require("styled-components"));
|
|
32
8
|
const styled_1 = require("../../components/SidebarActions/styled");
|
|
33
9
|
const CollapseSidebarButton = ({ initialValue, onClick, }) => {
|
|
34
|
-
return (react_1.default.createElement(
|
|
10
|
+
return (react_1.default.createElement(styled_1.StyledToggleRightPanelButton, { title: initialValue ? 'Show sidebar' : 'Hide sidebar', onClick: onClick }, initialValue ? react_1.default.createElement(styled_1.HideLeftPanelSVG, null) : react_1.default.createElement(styled_1.ShowLeftPanelSVG, null)));
|
|
35
11
|
};
|
|
36
12
|
exports.CollapseSidebarButton = CollapseSidebarButton;
|
|
37
|
-
const ToggleButton = (0, styled_components_1.default)(styled_1.StyledToggleRightPanelButton) `
|
|
38
|
-
background: var(--sidebar-collapse-button-background-color);
|
|
39
|
-
fill: var(--sidebar-collapse-button-icon-color);
|
|
40
|
-
margin-right: ${({ collapsed }) => (collapsed ? 0 : 'calc(var(--spacing-unit) * -9)')};
|
|
41
|
-
border: 1px solid var(--sidebar-collapse-button-border-color);
|
|
42
|
-
border-radius: var(--border-radius-md);
|
|
43
|
-
padding: var(--spacing-xxs);
|
|
44
|
-
height: var(--control-height-sm);
|
|
45
|
-
width: var(--control-height-sm);
|
|
46
|
-
|
|
47
|
-
${({ collapsed }) => collapsed &&
|
|
48
|
-
(0, styled_components_1.css) `
|
|
49
|
-
background: var(--sidebar-collapse-button-active-background-color);
|
|
50
|
-
border: var(--sidebar-collapse-button-active-border-color);
|
|
51
|
-
`}
|
|
52
|
-
`;
|
|
53
13
|
//# 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(--color-emphasis-400)" })))) `
|
|
34
34
|
position: absolute;
|
|
35
35
|
`;
|
|
36
36
|
exports.HideLeftPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
37
|
-
react_1.default.createElement("path", { d: "M9.62495 7L5.24995 11.375L4.63745 10.7625L8.39995 7L4.63745 3.2375L5.24995 2.625L9.62495 7Z", fill: "var(--
|
|
37
|
+
react_1.default.createElement("path", { d: "M9.62495 7L5.24995 11.375L4.63745 10.7625L8.39995 7L4.63745 3.2375L5.24995 2.625L9.62495 7Z", fill: "var(--color-emphasis-400)" })))) `
|
|
38
38
|
position: absolute;
|
|
39
39
|
`;
|
|
40
40
|
exports.StyledToggleRightPanelButton = styled_components_1.default.a `
|
|
@@ -44,22 +44,19 @@ exports.StyledToggleRightPanelButton = styled_components_1.default.a `
|
|
|
44
44
|
cursor: pointer;
|
|
45
45
|
z-index: 1;
|
|
46
46
|
/* Rectangle 201 */
|
|
47
|
-
border-radius: var(--border-radius
|
|
48
|
-
padding: var(--spacing-
|
|
49
|
-
height: var(--control-height-base);
|
|
50
|
-
width: var(--control-height-base);
|
|
51
|
-
border: 1px solid var(--border-primary);
|
|
47
|
+
border-radius: var(--border-radius);
|
|
48
|
+
padding: var(--spacing-unit);
|
|
52
49
|
|
|
53
50
|
&:hover {
|
|
54
|
-
background-color: var(--sidebar-item-
|
|
51
|
+
background-color: var(--sidebar-item-active-background-color);
|
|
55
52
|
}
|
|
56
53
|
`;
|
|
57
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" },
|
|
58
|
-
react_1.default.createElement("path", { d: "M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3Z", fill: "
|
|
55
|
+
react_1.default.createElement("path", { d: "M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3Z", fill: "var(--color-emphasis-400)" })))) `
|
|
59
56
|
position: absolute;
|
|
60
57
|
`;
|
|
61
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" },
|
|
62
|
-
react_1.default.createElement("path", { d: "M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3ZM14 13H11V3H14V13Z", fill: "
|
|
59
|
+
react_1.default.createElement("path", { d: "M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3ZM14 13H11V3H14V13Z", fill: "var(--color-emphasis-400)" })))) `
|
|
63
60
|
position: absolute;
|
|
64
61
|
`;
|
|
65
62
|
exports.StyledChangeViewButton = styled_components_1.default.a `
|
|
@@ -68,28 +65,25 @@ exports.StyledChangeViewButton = styled_components_1.default.a `
|
|
|
68
65
|
justify-content: center;
|
|
69
66
|
align-items: center;
|
|
70
67
|
cursor: pointer;
|
|
71
|
-
border-radius: var(--border-radius
|
|
72
|
-
background: var(--bg-overlay);
|
|
68
|
+
border-radius: var(--border-radius);
|
|
73
69
|
z-index: 1;
|
|
74
70
|
/* Rectangle 201 */
|
|
75
|
-
padding: var(--spacing-
|
|
76
|
-
height: var(--control-height-base);
|
|
77
|
-
width: var(--control-height-base);
|
|
71
|
+
padding: var(--spacing-unit);
|
|
78
72
|
|
|
79
73
|
&:hover {
|
|
80
|
-
background-color: var(--sidebar-item-
|
|
74
|
+
background-color: var(--sidebar-item-active-background-color);
|
|
81
75
|
}
|
|
82
76
|
`;
|
|
83
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" },
|
|
84
|
-
react_1.default.createElement("path", { d: "M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z", fill: "
|
|
85
|
-
react_1.default.createElement("path", { d: "M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z", fill: "
|
|
86
|
-
react_1.default.createElement("path", { d: "M2.625 11.375L2.625 8.75L11.375 8.75L11.375 11.375L2.625 11.375ZM2.625 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375L12.25 8.75C12.25 8.51794 12.1578 8.29538 11.9937 8.13128C11.8296 7.96719 11.6071 7.875 11.375 7.875L2.625 7.875C2.39294 7.875 2.17038 7.96719 2.00628 8.13128C1.84219 8.29538 1.75 8.51793 1.75 8.75L1.75 11.375C1.75 11.6071 1.84219 11.8296 2.00628 11.9937C2.17038 12.1578 2.39294 12.25 2.625 12.25Z", fill: "
|
|
78
|
+
react_1.default.createElement("path", { d: "M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z", fill: "var(--color-emphasis-400)" }),
|
|
79
|
+
react_1.default.createElement("path", { d: "M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z", fill: "var(--color-emphasis-400)" }),
|
|
80
|
+
react_1.default.createElement("path", { d: "M2.625 11.375L2.625 8.75L11.375 8.75L11.375 11.375L2.625 11.375ZM2.625 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375L12.25 8.75C12.25 8.51794 12.1578 8.29538 11.9937 8.13128C11.8296 7.96719 11.6071 7.875 11.375 7.875L2.625 7.875C2.39294 7.875 2.17038 7.96719 2.00628 8.13128C1.84219 8.29538 1.75 8.51793 1.75 8.75L1.75 11.375C1.75 11.6071 1.84219 11.8296 2.00628 11.9937C2.17038 12.1578 2.39294 12.25 2.625 12.25Z", fill: "var(--color-emphasis-400)" })))) `
|
|
87
81
|
position: absolute;
|
|
88
82
|
`;
|
|
89
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" },
|
|
90
|
-
react_1.default.createElement("path", { d: "M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z", fill: "
|
|
91
|
-
react_1.default.createElement("path", { d: "M5.6875 12.25L5.6875 1.75L4.8125 1.75L4.8125 12.25L5.6875 12.25Z", fill: "
|
|
92
|
-
react_1.default.createElement("path", { d: "M11.375 11.375L8.75 11.375L8.75 2.625L11.375 2.625L11.375 11.375ZM12.25 11.375L12.25 2.625C12.25 2.39294 12.1578 2.17038 11.9937 2.00628C11.8296 1.84219 11.6071 1.75 11.375 1.75L8.75 1.75C8.51794 1.75 8.29538 1.84219 8.13128 2.00628C7.96719 2.17038 7.875 2.39294 7.875 2.625L7.875 11.375C7.875 11.6071 7.96719 11.8296 8.13128 11.9937C8.29538 12.1578 8.51794 12.25 8.75 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375Z", fill: "
|
|
84
|
+
react_1.default.createElement("path", { d: "M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z", fill: "var(--color-emphasis-400)" }),
|
|
85
|
+
react_1.default.createElement("path", { d: "M5.6875 12.25L5.6875 1.75L4.8125 1.75L4.8125 12.25L5.6875 12.25Z", fill: "var(--color-emphasis-400)" }),
|
|
86
|
+
react_1.default.createElement("path", { d: "M11.375 11.375L8.75 11.375L8.75 2.625L11.375 2.625L11.375 11.375ZM12.25 11.375L12.25 2.625C12.25 2.39294 12.1578 2.17038 11.9937 2.00628C11.8296 1.84219 11.6071 1.75 11.375 1.75L8.75 1.75C8.51794 1.75 8.29538 1.84219 8.13128 2.00628C7.96719 2.17038 7.875 2.39294 7.875 2.625L7.875 11.375C7.875 11.6071 7.96719 11.8296 8.13128 11.9937C8.29538 12.1578 8.51794 12.25 8.75 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375Z", fill: "var(--color-emphasis-400)" })))) `
|
|
93
87
|
position: absolute;
|
|
94
88
|
`;
|
|
95
89
|
exports.ControlsWrap = styled_components_1.default.span `
|
|
@@ -97,19 +91,17 @@ exports.ControlsWrap = styled_components_1.default.span `
|
|
|
97
91
|
justify-content: ${({ isOpenapiDocs }) => (isOpenapiDocs ? 'space-between' : 'flex-end')};
|
|
98
92
|
bottom: 0;
|
|
99
93
|
flex-direction: row;
|
|
100
|
-
gap: var(--spacing-
|
|
94
|
+
gap: var(--spacing-unit);
|
|
101
95
|
align-items: center;
|
|
102
|
-
margin-left:
|
|
96
|
+
margin-left: '15px';
|
|
103
97
|
z-index: 2;
|
|
104
98
|
background: var(--sidebar-background-color);
|
|
105
99
|
|
|
106
100
|
${({ isCollapsed }) => isCollapsed &&
|
|
107
101
|
(0, styled_components_1.css) `
|
|
108
102
|
flex-direction: column;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
padding: var(--sidebar-controls-collapsed-padding-vertical)
|
|
112
|
-
var(--sidebar-controls-collapsed-padding-horizontal);
|
|
103
|
+
gap: 10px;
|
|
104
|
+
padding-bottom: 10px;
|
|
113
105
|
`}
|
|
114
106
|
|
|
115
107
|
${({ theme }) => (0, styled_components_1.css) `
|
|
@@ -126,7 +118,7 @@ exports.ControlsWrapChangeLayoutButtons = styled_components_1.default.span `
|
|
|
126
118
|
display: flex;
|
|
127
119
|
bottom: 0;
|
|
128
120
|
flex-direction: ${({ isCollapsed }) => (isCollapsed ? 'column-reverse' : 'row')};
|
|
129
|
-
gap: ${({ isCollapsed }) => (isCollapsed ? '10px' : 'var(--spacing-
|
|
121
|
+
gap: ${({ isCollapsed }) => (isCollapsed ? '10px' : 'var(--spacing-unit)')};
|
|
130
122
|
align-items: center;
|
|
131
123
|
`;
|
|
132
124
|
//# sourceMappingURL=styled.js.map
|
|
@@ -69,12 +69,11 @@ const TocHeader = styled_components_1.default.div `
|
|
|
69
69
|
font-weight: var(--toc-heading-font-weight);
|
|
70
70
|
padding: var(--toc-item-padding-vertical) var(--toc-item-padding-horizontal);
|
|
71
71
|
color: var(--toc-heading-text-color);
|
|
72
|
-
text-transform:
|
|
72
|
+
text-transform: uppercase;
|
|
73
73
|
`;
|
|
74
74
|
const MenuItem = styled_components_1.default.a `
|
|
75
75
|
display: block;
|
|
76
76
|
color: var(--toc-item-text-color);
|
|
77
|
-
font-weight: var(--toc-item-font-weight);
|
|
78
77
|
background-color: var(--toc-item-background-color);
|
|
79
78
|
cursor: pointer;
|
|
80
79
|
font-size: var(--toc-item-font-size);
|
|
@@ -88,6 +87,7 @@ const MenuItem = styled_components_1.default.a `
|
|
|
88
87
|
:hover,
|
|
89
88
|
&.active {
|
|
90
89
|
color: var(--toc-item-active-text-color);
|
|
90
|
+
background-color: var(--toc-item-active-background-color);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
:empty {
|
|
@@ -108,6 +108,7 @@ const TableOfContentItems = styled_components_1.default.div `
|
|
|
108
108
|
position: sticky;
|
|
109
109
|
top: calc(var(--navbar-height) + var(--toc-offset-top));
|
|
110
110
|
max-height: calc(100vh - var(--navbar-height) - var(--toc-offset-top));
|
|
111
|
+
border-left: 1px solid var(--toc-border-color);
|
|
111
112
|
overflow-y: auto;
|
|
112
113
|
width: var(--toc-width);
|
|
113
114
|
`;
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../components/TableOfContent/TableOfContent"), exports);
|
|
18
|
-
__exportStar(require("../../components/TableOfContent/styledVariables"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -22,7 +22,7 @@ const TabItem = styled_components_1.default.li `
|
|
|
22
22
|
background-color: var(--background-color);
|
|
23
23
|
border: solid var(--md-tabs-active-tab-border-color);
|
|
24
24
|
border-width: 0 0 1px 0;
|
|
25
|
-
color: var(--text-
|
|
25
|
+
color: var(--text-color);
|
|
26
26
|
`
|
|
27
27
|
: `
|
|
28
28
|
&:hover {
|
|
@@ -59,7 +59,7 @@ const TabList = styled_components_1.default.ol `
|
|
|
59
59
|
color: var(--md-tabs-tab-text-color);
|
|
60
60
|
padding: 0;
|
|
61
61
|
margin-block-end: 0;
|
|
62
|
-
border: solid var(--
|
|
62
|
+
border: solid var(--color-secondary-400);
|
|
63
63
|
border-width: 0 0 1px 0;
|
|
64
64
|
|
|
65
65
|
li[class^='Tab__TabItem'] {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Tags = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const Highlight_1 = require("../../ui/Highlight");
|
|
10
|
+
function Tags({ tags, className }) {
|
|
11
|
+
return (react_1.default.createElement(TagsWrapper, { className: className }, tags.map((tag) => (react_1.default.createElement(Tag, { key: tag, className: 'tag-' + slug(tag) },
|
|
12
|
+
react_1.default.createElement(Highlight_1.Highlight, null, tag))))));
|
|
13
|
+
}
|
|
14
|
+
exports.Tags = Tags;
|
|
15
|
+
const TagsWrapper = styled_components_1.default.div `
|
|
16
|
+
margin-top: 16px;
|
|
17
|
+
`;
|
|
18
|
+
const Tag = styled_components_1.default.div `
|
|
19
|
+
display: inline-block;
|
|
20
|
+
background-color: #d3f4ef;
|
|
21
|
+
color: #000;
|
|
22
|
+
padding: 2px 5px;
|
|
23
|
+
border-radius: var(--border-radius);
|
|
24
|
+
margin-right: 5px;
|
|
25
|
+
margin-bottom: 5px;
|
|
26
|
+
font-size: 0.8em;
|
|
27
|
+
`;
|
|
28
|
+
// TODO: import from portal
|
|
29
|
+
function slug(str) {
|
|
30
|
+
return str.replace(/\s/g, '-').toLowerCase();
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=Tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tags';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("
|
|
17
|
+
__exportStar(require("./Tags"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|