@redocly/theme 0.18.4-patch.1 → 0.18.5
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 +4 -0
- package/lib/{i18n → I18n}/LanguagePicker.js +12 -27
- package/lib/I18n/index.d.ts +1 -0
- package/lib/I18n/index.js +6 -0
- 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 +102 -112
- package/lib/components/Catalog/CatalogCard.js +58 -91
- 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.d.ts +3 -1
- package/lib/components/EditPageButton/EditPageButton.js +8 -17
- 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 -57
- 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/MarkdownLayout.d.ts +2 -0
- package/lib/components/Markdown/MarkdownLayout.js +6 -1
- 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/MenuItem.js +1 -1
- 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 +13 -20
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +6 -18
- 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/ErrorIcon → components/OperationBadge}/index.js +1 -1
- package/lib/components/PageNavigation/NextButton.js +1 -1
- package/lib/components/PageNavigation/PreviousButton.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 +9 -22
- 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 -27
- 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 -6
- 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 +2 -3
- package/lib/components/TableOfContent/index.d.ts +0 -1
- package/lib/components/TableOfContent/index.js +0 -1
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tags/Tags.d.ts +5 -0
- package/lib/components/Tags/Tags.js +32 -0
- package/lib/components/Tags/index.d.ts +1 -0
- package/lib/components/{Image → Tags}/index.js +1 -1
- package/lib/components/Tiles/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 +14 -113
- package/lib/config.js +4 -28
- 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/ExternalIcon/ExternalIcon.js +3 -3
- 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 -6
- package/lib/icons/index.js +0 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/Forbidden.js +0 -4
- package/lib/layouts/NotFound.js +0 -4
- package/lib/mocks/hooks/index.js +1 -0
- 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 → I18n}/LanguagePicker.tsx +21 -48
- package/src/I18n/index.ts +1 -0
- 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 -140
- package/src/components/Catalog/CatalogCard.tsx +58 -108
- 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 +10 -24
- 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 -84
- 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/MarkdownLayout.tsx +15 -2
- 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/MenuItem.tsx +1 -1
- 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 +13 -20
- package/src/components/Navbar/NavbarItem.tsx +4 -18
- 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/PageNavigation/NextButton.tsx +1 -0
- package/src/components/PageNavigation/PreviousButton.tsx +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 +17 -23
- 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 -65
- 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 -6
- 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 +2 -3
- 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 +3 -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/ExternalIcon/ExternalIcon.tsx +4 -4
- 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 -6
- package/src/index.ts +1 -1
- package/src/layouts/Forbidden.tsx +0 -4
- package/src/layouts/NotFound.tsx +0 -4
- package/src/mocks/hooks/index.ts +1 -0
- 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/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 -95
- 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 -42
- 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 -42
- 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 -47
- 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 -140
- 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/i18n/LanguagePicker.d.ts +0 -9
- package/lib/i18n/index.d.ts +0 -2
- package/lib/i18n/index.js +0 -21
- package/lib/i18n/styledVariables.d.ts +0 -1
- package/lib/i18n/styledVariables.js +0 -40
- 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/EditIcon/EditIcon.d.ts +0 -6
- package/lib/icons/EditIcon/EditIcon.js +0 -18
- package/lib/icons/EditIcon/index.d.ts +0 -1
- package/lib/icons/EditIcon/index.js +0 -18
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +0 -4
- package/lib/icons/ErrorIcon/ErrorIcon.js +0 -14
- package/lib/icons/ErrorIcon/index.d.ts +0 -1
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +0 -4
- package/lib/icons/LanguageIcon/LanguageIcon.js +0 -14
- package/lib/icons/LanguageIcon/index.d.ts +0 -1
- package/lib/icons/LanguageIcon/index.js +0 -18
- package/lib/icons/PlusIcon/PlusIcon.d.ts +0 -5
- package/lib/icons/PlusIcon/PlusIcon.js +0 -16
- package/lib/icons/PlusIcon/index.d.ts +0 -1
- package/lib/icons/PlusIcon/index.js +0 -18
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +0 -4
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +0 -15
- package/lib/icons/PointingArrowIcon/index.d.ts +0 -1
- package/lib/icons/PointingArrowIcon/index.js +0 -18
- package/lib/icons/RocketIcon/RocketIcon.d.ts +0 -7
- package/lib/icons/RocketIcon/RocketIcon.js +0 -15
- package/lib/icons/RocketIcon/index.d.ts +0 -1
- package/lib/icons/RocketIcon/index.js +0 -18
- package/lib/utils/tags-parser.d.ts +0 -1
- package/lib/utils/tags-parser.js +0 -10
- 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 -92
- 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 -39
- package/src/components/NavbarLogo/styledVariables.ts +0 -15
- package/src/components/Panel/styledVariables.ts +0 -479
- package/src/components/Product/styledVariables.ts +0 -40
- 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 -44
- package/src/components/Tag/Tag.tsx +0 -71
- package/src/components/Tag/index.ts +0 -2
- package/src/components/Tag/styledVariables.ts +0 -137
- package/src/components/Tooltip/styledVariables.ts +0 -18
- package/src/hooks/useModalScrollLock.ts +0 -12
- package/src/i18n/index.ts +0 -2
- package/src/i18n/styledVariables.ts +0 -37
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +0 -64
- package/src/icons/CheckboxIcon/index.ts +0 -1
- package/src/icons/EditIcon/EditIcon.tsx +0 -30
- package/src/icons/EditIcon/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/icons/RocketIcon/RocketIcon.tsx +0 -32
- package/src/icons/RocketIcon/index.tsx +0 -1
- package/src/utils/tags-parser.ts +0 -8
- /package/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
|
@@ -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);
|
|
@@ -89,7 +88,6 @@ const MenuItem = styled_components_1.default.a `
|
|
|
89
88
|
&.active {
|
|
90
89
|
color: var(--toc-item-active-text-color);
|
|
91
90
|
background-color: var(--toc-item-active-background-color);
|
|
92
|
-
border-radius: var(--border-radius);
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
:empty {
|
|
@@ -110,6 +108,7 @@ const TableOfContentItems = styled_components_1.default.div `
|
|
|
110
108
|
position: sticky;
|
|
111
109
|
top: calc(var(--navbar-height) + var(--toc-offset-top));
|
|
112
110
|
max-height: calc(100vh - var(--navbar-height) - var(--toc-offset-top));
|
|
111
|
+
border-left: 1px solid var(--toc-border-color);
|
|
113
112
|
overflow-y: auto;
|
|
114
113
|
width: var(--toc-width);
|
|
115
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
|
|
@@ -36,20 +36,20 @@ const TileHeader_1 = require("../../components/Tiles/TileHeader");
|
|
|
36
36
|
const ThinTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
|
-
border-radius:
|
|
39
|
+
border-radius: 10px;
|
|
40
|
+
box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);
|
|
40
41
|
box-sizing: border-box;
|
|
41
|
-
|
|
42
|
+
transition: box-shadow 0.25s ease;
|
|
43
|
+
padding: 24px;
|
|
42
44
|
margin-bottom: 20px;
|
|
43
45
|
text-decoration: none;
|
|
44
46
|
width: 100%;
|
|
45
|
-
color: var(--text-primary);
|
|
46
|
-
border: 1px solid var(--border-secondary);
|
|
47
47
|
background-color: ${({ bgColor }) => bgColor || 'var(--thin-tile-background-color)'};
|
|
48
48
|
background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
|
|
49
49
|
background-repeat: no-repeat;
|
|
50
50
|
|
|
51
51
|
:hover {
|
|
52
|
-
|
|
52
|
+
box-shadow: 0 10px 100px 0 rgba(35, 35, 35, 0.2);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
${({ theme }) => theme.mediaQueries.small} {
|
|
@@ -81,11 +81,9 @@ const ThinTileIcon = styled_components_1.default.img `
|
|
|
81
81
|
`;
|
|
82
82
|
const ThinTileHeader = (0, styled_components_1.default)(TileHeader_1.TileHeader) `
|
|
83
83
|
font-size: 24px;
|
|
84
|
-
font-weight: var(--font-weight-bold);
|
|
85
84
|
text-align: ${({ align }) => align || 'center'};
|
|
86
85
|
`;
|
|
87
86
|
const ThinTileText = (0, styled_components_1.default)(TileText_1.TileText) `
|
|
88
|
-
color: var(--text-secondary);
|
|
89
87
|
font-size: 18px;
|
|
90
88
|
line-height: 1.5;
|
|
91
89
|
flex-shrink: 0;
|
|
@@ -14,7 +14,7 @@ exports.TileHeader = styled_components_1.default.h3.attrs(({ className }) => ({
|
|
|
14
14
|
color: ${(props) => props.color || 'var(--h3-color)'};
|
|
15
15
|
font-family: var(--h3-font-family);
|
|
16
16
|
&& {
|
|
17
|
-
margin:
|
|
17
|
+
margin: var(--h3-margin-top) 0 var(--h3-margin-bottom);
|
|
18
18
|
}
|
|
19
19
|
`;
|
|
20
20
|
//# sourceMappingURL=TileHeader.js.map
|
|
@@ -12,7 +12,7 @@ exports.TileText = styled_components_1.default.span.attrs(({ className }) => ({
|
|
|
12
12
|
display: inline-block;
|
|
13
13
|
font-weight: var(--font-weight-regular);
|
|
14
14
|
overflow: hidden;
|
|
15
|
-
color: ${(props) => props.color || 'var(--text-
|
|
15
|
+
color: ${(props) => props.color || 'var(--text-color)'};
|
|
16
16
|
line-height: 1.25;
|
|
17
17
|
font-family: var(--font-family-base);
|
|
18
18
|
`;
|
|
@@ -36,21 +36,21 @@ const TileHeader_1 = require("../../components/Tiles/TileHeader");
|
|
|
36
36
|
const WideTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
|
|
37
37
|
display: inline-flex;
|
|
38
38
|
flex-direction: ${({ withIcon }) => (withIcon ? 'column' : 'row')};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
border-radius: var(--border-radius-lg);
|
|
39
|
+
border-radius: 10px;
|
|
40
|
+
box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);
|
|
42
41
|
background-color: ${({ bgColor }) => bgColor || 'var(--wide-tile-background-color)'};
|
|
43
42
|
background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
|
|
44
43
|
background-repeat: no-repeat;
|
|
45
|
-
padding:
|
|
44
|
+
padding: 24px;
|
|
46
45
|
padding-right: ${({ disableArrow }) => (disableArrow ? '24px' : '56px')};
|
|
47
|
-
margin-bottom:
|
|
46
|
+
margin-bottom: 32px;
|
|
48
47
|
box-sizing: border-box;
|
|
49
48
|
position: relative;
|
|
50
49
|
text-decoration: none;
|
|
51
50
|
width: 100%;
|
|
51
|
+
transition: box-shadow 0.25s ease;
|
|
52
52
|
:hover {
|
|
53
|
-
|
|
53
|
+
box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.2);
|
|
54
54
|
}
|
|
55
55
|
:before {
|
|
56
56
|
content: ${({ disableArrow }) => (disableArrow ? 'none' : '""')};
|
|
@@ -70,19 +70,17 @@ const WideTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
|
|
|
70
70
|
|
|
71
71
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
72
72
|
width: calc(50% - 2em);
|
|
73
|
-
padding:
|
|
74
|
-
padding-right: ${({ disableArrow }) => (disableArrow ? '
|
|
73
|
+
padding: 32px;
|
|
74
|
+
padding-right: ${({ disableArrow }) => (disableArrow ? '32px' : '64px')};
|
|
75
75
|
flex-direction: row;
|
|
76
76
|
max-width: ${({ maxWidth }) => maxWidth};
|
|
77
77
|
}
|
|
78
78
|
`;
|
|
79
79
|
const WideTileHeader = (0, styled_components_1.default)(TileHeader_1.TileHeader) `
|
|
80
80
|
font-size: 24px;
|
|
81
|
-
font-weight: var(--font-weight-bold);
|
|
82
81
|
text-align: ${({ align }) => align || 'left'};
|
|
83
82
|
`;
|
|
84
83
|
const WideTileText = (0, styled_components_1.default)(TileText_1.TileText) `
|
|
85
|
-
color: var(--text-secondary);
|
|
86
84
|
font-size: 18px;
|
|
87
85
|
text-align: ${({ align }) => align || 'left'};
|
|
88
86
|
`;
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../components/Tooltip/Tooltip"), exports);
|
|
18
|
-
__exportStar(require("../../components/Tooltip/styledVariables"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -9,9 +9,9 @@ exports.SectionHeader = styled_components_1.default.h2.attrs(({ className }) =>
|
|
|
9
9
|
'data-component-name': 'Typography/SectionHeader',
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
|
-
color: var(--h2-
|
|
12
|
+
color: var(--h2-color);
|
|
13
13
|
font-size: var(--h2-font-size);
|
|
14
|
-
font-weight: var(--font-weight
|
|
14
|
+
font-weight: var(--h2-font-weight);
|
|
15
15
|
text-align: center;
|
|
16
16
|
margin: 2.65em 0;
|
|
17
17
|
padding: 0 20px;
|
|
@@ -9,7 +9,7 @@ exports.Typography = styled_components_1.default.div.attrs(({ className }) => ({
|
|
|
9
9
|
'data-component-name': 'Typography/Typography',
|
|
10
10
|
className,
|
|
11
11
|
})) `
|
|
12
|
-
color: ${({ color }) => color || 'var(--text-
|
|
12
|
+
color: ${({ color }) => color || 'var(--text-color)'};
|
|
13
13
|
font-family: ${({ fontFamily }) => fontFamily || 'var(--font-family-base)'};
|
|
14
14
|
font-size: ${({ fontSize }) => fontSize || 'var(--font-size-base)'};
|
|
15
15
|
font-style: ${({ fontStyle }) => fontStyle};
|
|
@@ -16,7 +16,7 @@ export * from './OpenApiDocs/hooks/OpenApiTryItSecurityPanel';
|
|
|
16
16
|
export * from './Tooltip';
|
|
17
17
|
export * from './Panel';
|
|
18
18
|
export * from './Feedback';
|
|
19
|
-
export * from './
|
|
19
|
+
export * from './OperationBadge';
|
|
20
20
|
export * from './TableOfContent';
|
|
21
21
|
export * from './Profile';
|
|
22
22
|
export * from './ColorModeSwitcher';
|
|
@@ -25,6 +25,7 @@ export * from './Markdown';
|
|
|
25
25
|
export * from './OpenApiDocs';
|
|
26
26
|
export * from './SidebarActions';
|
|
27
27
|
export * from './Filter';
|
|
28
|
+
export * from './Tags';
|
|
28
29
|
export * from './Tabs';
|
|
29
30
|
export * from './Menu';
|
|
30
31
|
export * from './Separator';
|
package/lib/components/index.js
CHANGED
|
@@ -32,7 +32,7 @@ __exportStar(require("./OpenApiDocs/hooks/OpenApiTryItSecurityPanel"), exports);
|
|
|
32
32
|
__exportStar(require("./Tooltip"), exports);
|
|
33
33
|
__exportStar(require("./Panel"), exports);
|
|
34
34
|
__exportStar(require("./Feedback"), exports);
|
|
35
|
-
__exportStar(require("./
|
|
35
|
+
__exportStar(require("./OperationBadge"), exports);
|
|
36
36
|
__exportStar(require("./TableOfContent"), exports);
|
|
37
37
|
__exportStar(require("./Profile"), exports);
|
|
38
38
|
__exportStar(require("./ColorModeSwitcher"), exports);
|
|
@@ -41,6 +41,7 @@ __exportStar(require("./Markdown"), exports);
|
|
|
41
41
|
__exportStar(require("./OpenApiDocs"), exports);
|
|
42
42
|
__exportStar(require("./SidebarActions"), exports);
|
|
43
43
|
__exportStar(require("./Filter"), exports);
|
|
44
|
+
__exportStar(require("./Tags"), exports);
|
|
44
45
|
__exportStar(require("./Tabs"), exports);
|
|
45
46
|
__exportStar(require("./Menu"), exports);
|
|
46
47
|
__exportStar(require("./Separator"), exports);
|
package/lib/config.d.ts
CHANGED
|
@@ -58,6 +58,13 @@ declare const markdownConfigSchema: {
|
|
|
58
58
|
readonly baseUrl: {
|
|
59
59
|
readonly type: "string";
|
|
60
60
|
};
|
|
61
|
+
readonly icon: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
};
|
|
64
|
+
readonly text: {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly default: "Edit this page";
|
|
67
|
+
};
|
|
61
68
|
};
|
|
62
69
|
readonly additionalProperties: false;
|
|
63
70
|
readonly default: {};
|
|
@@ -402,10 +409,6 @@ declare const catalogSchema: {
|
|
|
402
409
|
readonly groupByFirstFilter: {
|
|
403
410
|
readonly type: "boolean";
|
|
404
411
|
};
|
|
405
|
-
readonly filterValuesCasing: {
|
|
406
|
-
readonly type: "string";
|
|
407
|
-
readonly enum: readonly ["sentence", "original", "lowercase", "uppercase"];
|
|
408
|
-
};
|
|
409
412
|
readonly items: {
|
|
410
413
|
readonly type: "array";
|
|
411
414
|
readonly items: {
|
|
@@ -433,11 +436,6 @@ declare const catalogSchema: {
|
|
|
433
436
|
readonly separatorLine: {
|
|
434
437
|
readonly type: "boolean";
|
|
435
438
|
};
|
|
436
|
-
readonly linePosition: {
|
|
437
|
-
readonly type: "string";
|
|
438
|
-
readonly enum: readonly ["top", "bottom"];
|
|
439
|
-
readonly default: "top";
|
|
440
|
-
};
|
|
441
439
|
readonly version: {
|
|
442
440
|
readonly type: "string";
|
|
443
441
|
};
|
|
@@ -482,11 +480,6 @@ declare const catalogSchema: {
|
|
|
482
480
|
readonly separatorLine: {
|
|
483
481
|
readonly type: "boolean";
|
|
484
482
|
};
|
|
485
|
-
readonly linePosition: {
|
|
486
|
-
readonly type: "string";
|
|
487
|
-
readonly enum: readonly ["top", "bottom"];
|
|
488
|
-
readonly default: "top";
|
|
489
|
-
};
|
|
490
483
|
readonly version: {
|
|
491
484
|
readonly type: "string";
|
|
492
485
|
};
|
|
@@ -550,9 +543,6 @@ export declare const themeConfigSchema: {
|
|
|
550
543
|
readonly image: {
|
|
551
544
|
readonly type: "string";
|
|
552
545
|
};
|
|
553
|
-
readonly srcSet: {
|
|
554
|
-
readonly type: "string";
|
|
555
|
-
};
|
|
556
546
|
readonly altText: {
|
|
557
547
|
readonly type: "string";
|
|
558
548
|
};
|
|
@@ -598,11 +588,6 @@ export declare const themeConfigSchema: {
|
|
|
598
588
|
readonly separatorLine: {
|
|
599
589
|
readonly type: "boolean";
|
|
600
590
|
};
|
|
601
|
-
readonly linePosition: {
|
|
602
|
-
readonly type: "string";
|
|
603
|
-
readonly enum: readonly ["top", "bottom"];
|
|
604
|
-
readonly default: "top";
|
|
605
|
-
};
|
|
606
591
|
readonly version: {
|
|
607
592
|
readonly type: "string";
|
|
608
593
|
};
|
|
@@ -647,11 +632,6 @@ export declare const themeConfigSchema: {
|
|
|
647
632
|
readonly separatorLine: {
|
|
648
633
|
readonly type: "boolean";
|
|
649
634
|
};
|
|
650
|
-
readonly linePosition: {
|
|
651
|
-
readonly type: "string";
|
|
652
|
-
readonly enum: readonly ["top", "bottom"];
|
|
653
|
-
readonly default: "top";
|
|
654
|
-
};
|
|
655
635
|
readonly version: {
|
|
656
636
|
readonly type: "string";
|
|
657
637
|
};
|
|
@@ -734,11 +714,6 @@ export declare const themeConfigSchema: {
|
|
|
734
714
|
readonly separatorLine: {
|
|
735
715
|
readonly type: "boolean";
|
|
736
716
|
};
|
|
737
|
-
readonly linePosition: {
|
|
738
|
-
readonly type: "string";
|
|
739
|
-
readonly enum: readonly ["top", "bottom"];
|
|
740
|
-
readonly default: "top";
|
|
741
|
-
};
|
|
742
717
|
readonly version: {
|
|
743
718
|
readonly type: "string";
|
|
744
719
|
};
|
|
@@ -783,11 +758,6 @@ export declare const themeConfigSchema: {
|
|
|
783
758
|
readonly separatorLine: {
|
|
784
759
|
readonly type: "boolean";
|
|
785
760
|
};
|
|
786
|
-
readonly linePosition: {
|
|
787
|
-
readonly type: "string";
|
|
788
|
-
readonly enum: readonly ["top", "bottom"];
|
|
789
|
-
readonly default: "top";
|
|
790
|
-
};
|
|
791
761
|
readonly version: {
|
|
792
762
|
readonly type: "string";
|
|
793
763
|
};
|
|
@@ -818,15 +788,6 @@ export declare const themeConfigSchema: {
|
|
|
818
788
|
readonly copyrightText: {
|
|
819
789
|
readonly type: "string";
|
|
820
790
|
};
|
|
821
|
-
readonly logo: {
|
|
822
|
-
readonly type: "object";
|
|
823
|
-
readonly properties: {
|
|
824
|
-
readonly hide: {
|
|
825
|
-
readonly type: "boolean";
|
|
826
|
-
};
|
|
827
|
-
};
|
|
828
|
-
readonly additionalProperties: false;
|
|
829
|
-
};
|
|
830
791
|
};
|
|
831
792
|
readonly additionalProperties: false;
|
|
832
793
|
};
|
|
@@ -836,14 +797,6 @@ export declare const themeConfigSchema: {
|
|
|
836
797
|
readonly hide: {
|
|
837
798
|
readonly type: "boolean";
|
|
838
799
|
};
|
|
839
|
-
readonly separatorLine: {
|
|
840
|
-
readonly type: "boolean";
|
|
841
|
-
};
|
|
842
|
-
readonly linePosition: {
|
|
843
|
-
readonly type: "string";
|
|
844
|
-
readonly enum: readonly ["top", "bottom"];
|
|
845
|
-
readonly default: "bottom";
|
|
846
|
-
};
|
|
847
800
|
};
|
|
848
801
|
readonly additionalProperties: false;
|
|
849
802
|
};
|
|
@@ -1292,6 +1245,13 @@ export declare const themeConfigSchema: {
|
|
|
1292
1245
|
readonly baseUrl: {
|
|
1293
1246
|
readonly type: "string";
|
|
1294
1247
|
};
|
|
1248
|
+
readonly icon: {
|
|
1249
|
+
readonly type: "string";
|
|
1250
|
+
};
|
|
1251
|
+
readonly text: {
|
|
1252
|
+
readonly type: "string";
|
|
1253
|
+
readonly default: "Edit this page";
|
|
1254
|
+
};
|
|
1295
1255
|
};
|
|
1296
1256
|
readonly additionalProperties: false;
|
|
1297
1257
|
readonly default: {};
|
|
@@ -1636,10 +1596,6 @@ export declare const themeConfigSchema: {
|
|
|
1636
1596
|
readonly groupByFirstFilter: {
|
|
1637
1597
|
readonly type: "boolean";
|
|
1638
1598
|
};
|
|
1639
|
-
readonly filterValuesCasing: {
|
|
1640
|
-
readonly type: "string";
|
|
1641
|
-
readonly enum: readonly ["sentence", "original", "lowercase", "uppercase"];
|
|
1642
|
-
};
|
|
1643
1599
|
readonly items: {
|
|
1644
1600
|
readonly type: "array";
|
|
1645
1601
|
readonly items: {
|
|
@@ -1667,11 +1623,6 @@ export declare const themeConfigSchema: {
|
|
|
1667
1623
|
readonly separatorLine: {
|
|
1668
1624
|
readonly type: "boolean";
|
|
1669
1625
|
};
|
|
1670
|
-
readonly linePosition: {
|
|
1671
|
-
readonly type: "string";
|
|
1672
|
-
readonly enum: readonly ["top", "bottom"];
|
|
1673
|
-
readonly default: "top";
|
|
1674
|
-
};
|
|
1675
1626
|
readonly version: {
|
|
1676
1627
|
readonly type: "string";
|
|
1677
1628
|
};
|
|
@@ -1716,11 +1667,6 @@ export declare const themeConfigSchema: {
|
|
|
1716
1667
|
readonly separatorLine: {
|
|
1717
1668
|
readonly type: "boolean";
|
|
1718
1669
|
};
|
|
1719
|
-
readonly linePosition: {
|
|
1720
|
-
readonly type: "string";
|
|
1721
|
-
readonly enum: readonly ["top", "bottom"];
|
|
1722
|
-
readonly default: "top";
|
|
1723
|
-
};
|
|
1724
1670
|
readonly version: {
|
|
1725
1671
|
readonly type: "string";
|
|
1726
1672
|
};
|
|
@@ -1859,9 +1805,6 @@ export declare const productThemeOverrideSchema: {
|
|
|
1859
1805
|
readonly image: {
|
|
1860
1806
|
readonly type: "string";
|
|
1861
1807
|
};
|
|
1862
|
-
readonly srcSet: {
|
|
1863
|
-
readonly type: "string";
|
|
1864
|
-
};
|
|
1865
1808
|
readonly altText: {
|
|
1866
1809
|
readonly type: "string";
|
|
1867
1810
|
};
|
|
@@ -1907,11 +1850,6 @@ export declare const productThemeOverrideSchema: {
|
|
|
1907
1850
|
readonly separatorLine: {
|
|
1908
1851
|
readonly type: "boolean";
|
|
1909
1852
|
};
|
|
1910
|
-
readonly linePosition: {
|
|
1911
|
-
readonly type: "string";
|
|
1912
|
-
readonly enum: readonly ["top", "bottom"];
|
|
1913
|
-
readonly default: "top";
|
|
1914
|
-
};
|
|
1915
1853
|
readonly version: {
|
|
1916
1854
|
readonly type: "string";
|
|
1917
1855
|
};
|
|
@@ -1956,11 +1894,6 @@ export declare const productThemeOverrideSchema: {
|
|
|
1956
1894
|
readonly separatorLine: {
|
|
1957
1895
|
readonly type: "boolean";
|
|
1958
1896
|
};
|
|
1959
|
-
readonly linePosition: {
|
|
1960
|
-
readonly type: "string";
|
|
1961
|
-
readonly enum: readonly ["top", "bottom"];
|
|
1962
|
-
readonly default: "top";
|
|
1963
|
-
};
|
|
1964
1897
|
readonly version: {
|
|
1965
1898
|
readonly type: "string";
|
|
1966
1899
|
};
|
|
@@ -2024,11 +1957,6 @@ export declare const productThemeOverrideSchema: {
|
|
|
2024
1957
|
readonly separatorLine: {
|
|
2025
1958
|
readonly type: "boolean";
|
|
2026
1959
|
};
|
|
2027
|
-
readonly linePosition: {
|
|
2028
|
-
readonly type: "string";
|
|
2029
|
-
readonly enum: readonly ["top", "bottom"];
|
|
2030
|
-
readonly default: "top";
|
|
2031
|
-
};
|
|
2032
1960
|
readonly version: {
|
|
2033
1961
|
readonly type: "string";
|
|
2034
1962
|
};
|
|
@@ -2073,11 +2001,6 @@ export declare const productThemeOverrideSchema: {
|
|
|
2073
2001
|
readonly separatorLine: {
|
|
2074
2002
|
readonly type: "boolean";
|
|
2075
2003
|
};
|
|
2076
|
-
readonly linePosition: {
|
|
2077
|
-
readonly type: "string";
|
|
2078
|
-
readonly enum: readonly ["top", "bottom"];
|
|
2079
|
-
readonly default: "top";
|
|
2080
|
-
};
|
|
2081
2004
|
readonly version: {
|
|
2082
2005
|
readonly type: "string";
|
|
2083
2006
|
};
|
|
@@ -2108,15 +2031,6 @@ export declare const productThemeOverrideSchema: {
|
|
|
2108
2031
|
readonly copyrightText: {
|
|
2109
2032
|
readonly type: "string";
|
|
2110
2033
|
};
|
|
2111
|
-
readonly logo: {
|
|
2112
|
-
readonly type: "object";
|
|
2113
|
-
readonly properties: {
|
|
2114
|
-
readonly hide: {
|
|
2115
|
-
readonly type: "boolean";
|
|
2116
|
-
};
|
|
2117
|
-
};
|
|
2118
|
-
readonly additionalProperties: false;
|
|
2119
|
-
};
|
|
2120
2034
|
};
|
|
2121
2035
|
readonly additionalProperties: false;
|
|
2122
2036
|
};
|
|
@@ -2126,14 +2040,6 @@ export declare const productThemeOverrideSchema: {
|
|
|
2126
2040
|
readonly hide: {
|
|
2127
2041
|
readonly type: "boolean";
|
|
2128
2042
|
};
|
|
2129
|
-
readonly separatorLine: {
|
|
2130
|
-
readonly type: "boolean";
|
|
2131
|
-
};
|
|
2132
|
-
readonly linePosition: {
|
|
2133
|
-
readonly type: "string";
|
|
2134
|
-
readonly enum: readonly ["top", "bottom"];
|
|
2135
|
-
readonly default: "bottom";
|
|
2136
|
-
};
|
|
2137
2043
|
};
|
|
2138
2044
|
readonly additionalProperties: false;
|
|
2139
2045
|
};
|
|
@@ -2308,9 +2214,4 @@ export type GoogleAnalyticsConfig = FromSchema<typeof googleAnalyticsConfigSchem
|
|
|
2308
2214
|
export type CatalogConfig = FromSchema<typeof catalogSchema>;
|
|
2309
2215
|
export type CatalogFilterConfig = FromSchema<typeof catalogFilterSchema>;
|
|
2310
2216
|
export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
|
|
2311
|
-
export declare enum ScorecardStatus {
|
|
2312
|
-
BelowMinimum = "Below minimum",
|
|
2313
|
-
Highest = "Highest",
|
|
2314
|
-
Minimum = "Minimum"
|
|
2315
|
-
}
|
|
2316
2217
|
export {};
|
package/lib/config.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.productThemeOverrideSchema = exports.themeConfigSchema = void 0;
|
|
4
4
|
const logoConfigSchema = {
|
|
5
5
|
type: 'object',
|
|
6
6
|
properties: {
|
|
7
7
|
image: { type: 'string' },
|
|
8
|
-
srcSet: { type: 'string' },
|
|
9
8
|
altText: { type: 'string' },
|
|
10
9
|
link: { type: 'string' },
|
|
11
10
|
favicon: { type: 'string' },
|
|
@@ -85,7 +84,7 @@ const markdownConfigSchema = {
|
|
|
85
84
|
},
|
|
86
85
|
editPage: {
|
|
87
86
|
type: 'object',
|
|
88
|
-
properties: Object.assign({ baseUrl: { type: 'string' } }, hideConfigSchema.properties),
|
|
87
|
+
properties: Object.assign({ baseUrl: { type: 'string' }, icon: { type: 'string' }, text: { type: 'string', default: 'Edit this page' } }, hideConfigSchema.properties),
|
|
89
88
|
additionalProperties: false,
|
|
90
89
|
default: {},
|
|
91
90
|
},
|
|
@@ -204,11 +203,6 @@ const navItemSchema = {
|
|
|
204
203
|
label: { type: 'string' },
|
|
205
204
|
separator: { type: 'string' },
|
|
206
205
|
separatorLine: { type: 'boolean' },
|
|
207
|
-
linePosition: {
|
|
208
|
-
type: 'string',
|
|
209
|
-
enum: ['top', 'bottom'],
|
|
210
|
-
default: 'top',
|
|
211
|
-
},
|
|
212
206
|
version: { type: 'string' },
|
|
213
207
|
menuStyle: { type: 'string', enum: ['drilldown'] },
|
|
214
208
|
expanded: { type: 'string', const: 'always' },
|
|
@@ -319,10 +313,6 @@ const catalogSchema = {
|
|
|
319
313
|
slug: { type: 'string' },
|
|
320
314
|
filters: { type: 'array', items: catalogFilterSchema },
|
|
321
315
|
groupByFirstFilter: { type: 'boolean' },
|
|
322
|
-
filterValuesCasing: {
|
|
323
|
-
type: 'string',
|
|
324
|
-
enum: ['sentence', 'original', 'lowercase', 'uppercase'],
|
|
325
|
-
},
|
|
326
316
|
items: navItemsSchema,
|
|
327
317
|
requiredPermission: { type: 'string' },
|
|
328
318
|
separateVersions: { type: 'boolean' },
|
|
@@ -358,18 +348,10 @@ exports.themeConfigSchema = {
|
|
|
358
348
|
},
|
|
359
349
|
footer: {
|
|
360
350
|
type: 'object',
|
|
361
|
-
properties: Object.assign({ items: navItemsSchema, copyrightText: { type: 'string' }
|
|
362
|
-
additionalProperties: false,
|
|
363
|
-
},
|
|
364
|
-
sidebar: {
|
|
365
|
-
type: 'object',
|
|
366
|
-
properties: Object.assign({ separatorLine: { type: 'boolean' }, linePosition: {
|
|
367
|
-
type: 'string',
|
|
368
|
-
enum: ['top', 'bottom'],
|
|
369
|
-
default: 'bottom',
|
|
370
|
-
} }, hideConfigSchema.properties),
|
|
351
|
+
properties: Object.assign({ items: navItemsSchema, copyrightText: { type: 'string' } }, hideConfigSchema.properties),
|
|
371
352
|
additionalProperties: false,
|
|
372
353
|
},
|
|
354
|
+
sidebar: hideConfigSchema,
|
|
373
355
|
scripts: {
|
|
374
356
|
type: 'object',
|
|
375
357
|
properties: {
|
|
@@ -576,10 +558,4 @@ exports.productThemeOverrideSchema = {
|
|
|
576
558
|
additionalProperties: true,
|
|
577
559
|
default: {},
|
|
578
560
|
};
|
|
579
|
-
var ScorecardStatus;
|
|
580
|
-
(function (ScorecardStatus) {
|
|
581
|
-
ScorecardStatus["BelowMinimum"] = "Below minimum";
|
|
582
|
-
ScorecardStatus["Highest"] = "Highest";
|
|
583
|
-
ScorecardStatus["Minimum"] = "Minimum";
|
|
584
|
-
})(ScorecardStatus = exports.ScorecardStatus || (exports.ScorecardStatus = {}));
|
|
585
561
|
//# sourceMappingURL=config.js.map
|