@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
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.useMobileMenu = void 0;
|
|
7
4
|
const react_1 = require("react");
|
|
8
5
|
const react_router_dom_1 = require("react-router-dom");
|
|
9
|
-
const useModalScrollLock_1 = __importDefault(require("../hooks/useModalScrollLock"));
|
|
10
6
|
function useMobileMenu(initialState = false) {
|
|
11
7
|
const location = (0, react_router_dom_1.useLocation)();
|
|
12
8
|
const [isOpen, setIsOpen] = (0, react_1.useState)(initialState);
|
|
13
9
|
(0, react_1.useEffect)(() => setIsOpen(false), [location.pathname, location.hash]);
|
|
14
|
-
(0,
|
|
10
|
+
(0, react_1.useEffect)(() => {
|
|
11
|
+
if (isOpen)
|
|
12
|
+
document.body.classList.add('overflow-hidden');
|
|
13
|
+
else
|
|
14
|
+
document.body.classList.remove('overflow-hidden');
|
|
15
|
+
}, [isOpen]);
|
|
15
16
|
return [isOpen, setIsOpen];
|
|
16
17
|
}
|
|
17
18
|
exports.useMobileMenu = useMobileMenu;
|
|
@@ -37,8 +37,13 @@ function Icon({ type, className }) {
|
|
|
37
37
|
exports.AlertIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
|
|
38
38
|
'data-component-name': 'icons/AlertIcon/AlertIcon',
|
|
39
39
|
})) `
|
|
40
|
+
position: absolute;
|
|
41
|
+
left: var(--admonition-padding-horizontal);
|
|
42
|
+
top: 50%;
|
|
43
|
+
transform: translateY(-50%);
|
|
40
44
|
width: var(--admonition-icon-size);
|
|
41
45
|
height: var(--admonition-icon-size);
|
|
46
|
+
margin-right: var(--admonition-padding-horizontal);
|
|
42
47
|
flex-shrink: 0;
|
|
43
48
|
|
|
44
49
|
fill: ${({ type }) => `var(--admonition-${type}-icon-color)`};
|
|
@@ -42,7 +42,7 @@ function directionToTransform({ direction }) {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
const Icon = ({ className, weight }) => (react_1.default.createElement("span", { "data-component-name": "icons/ArrowIcon/ArrowIcon" }, weight === 'thin' ? (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
45
|
-
react_1.default.createElement("path", { d: "M8 11L3 5.99999L3.7 5.29999L8 9.59999L12.3 5.29999L13 5.99999L8 11Z", fill: "
|
|
45
|
+
react_1.default.createElement("path", { d: "M8 11L3 5.99999L3.7 5.29999L8 9.59999L12.3 5.29999L13 5.99999L8 11Z", fill: "inherit" }))) : (react_1.default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 7 5", className: className },
|
|
46
46
|
react_1.default.createElement("path", { d: "M3.5 2.51L5.806.205a.7.7 0 01.99.99l-2.8 2.8a.698.698 0 01-.99 0l-2.8-2.8a.7.7 0 11.99-.99L3.5 2.51z" })))));
|
|
47
47
|
exports.ArrowIcon = (0, styled_components_1.default)(Icon) `
|
|
48
48
|
${({ weight }) => weight !== 'thin' &&
|
|
@@ -3,5 +3,5 @@ interface IconProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
color?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const CollapseIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const CollapseIcon: import("styled-components").StyledComponent<({ className, color }: IconProps) => JSX.Element, any, {}, never>;
|
|
7
7
|
export {};
|
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CollapseIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Icon = ({ className }) => (react_1.default.createElement("svg", { "data-component-name": "icons/CollapseIcon", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
9
|
+
const Icon = ({ className, color = 'white' }) => (react_1.default.createElement("svg", { "data-component-name": "icons/CollapseIcon", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
10
10
|
react_1.default.createElement("g", { clipPath: "url(#clip0_906_12165)" },
|
|
11
11
|
react_1.default.createElement("rect", { width: "14", height: "14", fill: "none", style: { mixBlendMode: 'multiply' } }),
|
|
12
|
-
react_1.default.createElement("path", { d: "M1.75 7.875V8.75H4.63138L0.875 12.5046L1.49363 13.125L5.25 9.36862V12.25H6.125V7.875H1.75Z", fill:
|
|
13
|
-
react_1.default.createElement("path", { d: "M13.125 1.4945L12.509 0.875L8.75 4.63138V1.75H7.875V6.125H12.25V5.25H9.36862L13.125 1.4945Z", fill:
|
|
12
|
+
react_1.default.createElement("path", { d: "M1.75 7.875V8.75H4.63138L0.875 12.5046L1.49363 13.125L5.25 9.36862V12.25H6.125V7.875H1.75Z", fill: color }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M13.125 1.4945L12.509 0.875L8.75 4.63138V1.75H7.875V6.125H12.25V5.25H9.36862L13.125 1.4945Z", fill: color })),
|
|
14
14
|
react_1.default.createElement("defs", null,
|
|
15
15
|
react_1.default.createElement("clipPath", { id: "clip0_906_12165" },
|
|
16
16
|
react_1.default.createElement("rect", { width: "14", height: "14", fill: "white" })))));
|
|
17
17
|
exports.CollapseIcon = (0, styled_components_1.default)(Icon) `
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
18
|
+
width: 1.3em;
|
|
19
|
+
height: 1.3em;
|
|
20
20
|
vertical-align: middle;
|
|
21
21
|
`;
|
|
22
22
|
//# sourceMappingURL=CollapseIcon.js.map
|
|
@@ -27,7 +27,7 @@ exports.ColorModeIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
|
|
|
27
27
|
fill: var(--navbar-text-color);
|
|
28
28
|
|
|
29
29
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
30
|
-
width: var(--navbar-font-size);
|
|
30
|
+
width: var(--navbar-item-font-size);
|
|
31
31
|
}
|
|
32
32
|
`;
|
|
33
33
|
//# sourceMappingURL=ColorModeIcon.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
|
+
color?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const CopyIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const CopyIcon: import("styled-components").StyledComponent<({ className, color }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
7
|
export {};
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CopyIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Icon = ({ className }) => (react_1.default.createElement("span", { "data-component-name": "icons/CopyIcon" },
|
|
9
|
+
const Icon = ({ className, color = 'white' }) => (react_1.default.createElement("span", { "data-component-name": "icons/CopyIcon" },
|
|
10
10
|
react_1.default.createElement("svg", { viewBox: "0 0 11 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
11
|
-
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.52083 1.33333C3.52083 1.25279 3.58613 1.1875 3.66667 1.1875H9.5C9.58054 1.1875 9.64583 1.25279 9.64583 1.33333V8.33333C9.64583 8.41387 9.58054 8.47917 9.5 8.47917H7.75H3.66667C3.58613 8.47917 3.52083 8.41387 3.52083 8.33333V3.08333V1.33333ZM2.64583 2.64583V1.33333C2.64583 0.769543 3.10288 0.3125 3.66667 0.3125H9.5C10.0638 0.3125 10.5208 0.769543 10.5208 1.33333V8.33333C10.5208 8.89712 10.0638 9.35417 9.5 9.35417H8.1875V10.6667C8.1875 10.9374 8.07995 11.1971 7.8885 11.3885C7.69706 11.5799 7.43741 11.6875 7.16667 11.6875H1.33333C1.06259 11.6875 0.802939 11.5799 0.611495 11.3885C0.420051 11.1971 0.3125 10.9374 0.3125 10.6667V3.66667C0.3125 3.39592 0.420052 3.13627 0.611495 2.94483C0.802938 2.75339 1.06259 2.64583 1.33333 2.64583H2.64583ZM7.3125 9.35417V10.6667C7.3125 10.7053 7.29713 10.7424 7.26979 10.7698C7.24244 10.7971 7.20534 10.8125 7.16667 10.8125H1.33333C1.29466 10.8125 1.25756 10.7971 1.23021 10.7698C1.20286 10.7424 1.1875 10.7053 1.1875 10.6667V3.66667C1.1875 3.62799 1.20286 3.5909 1.23021 3.56355C1.25756 3.5362 1.29466 3.52083 1.33333 3.52083H2.64583V8.33333C2.64583 8.89712 3.10288 9.35417 3.66667 9.35417H7.3125Z", fill:
|
|
11
|
+
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.52083 1.33333C3.52083 1.25279 3.58613 1.1875 3.66667 1.1875H9.5C9.58054 1.1875 9.64583 1.25279 9.64583 1.33333V8.33333C9.64583 8.41387 9.58054 8.47917 9.5 8.47917H7.75H3.66667C3.58613 8.47917 3.52083 8.41387 3.52083 8.33333V3.08333V1.33333ZM2.64583 2.64583V1.33333C2.64583 0.769543 3.10288 0.3125 3.66667 0.3125H9.5C10.0638 0.3125 10.5208 0.769543 10.5208 1.33333V8.33333C10.5208 8.89712 10.0638 9.35417 9.5 9.35417H8.1875V10.6667C8.1875 10.9374 8.07995 11.1971 7.8885 11.3885C7.69706 11.5799 7.43741 11.6875 7.16667 11.6875H1.33333C1.06259 11.6875 0.802939 11.5799 0.611495 11.3885C0.420051 11.1971 0.3125 10.9374 0.3125 10.6667V3.66667C0.3125 3.39592 0.420052 3.13627 0.611495 2.94483C0.802938 2.75339 1.06259 2.64583 1.33333 2.64583H2.64583ZM7.3125 9.35417V10.6667C7.3125 10.7053 7.29713 10.7424 7.26979 10.7698C7.24244 10.7971 7.20534 10.8125 7.16667 10.8125H1.33333C1.29466 10.8125 1.25756 10.7971 1.23021 10.7698C1.20286 10.7424 1.1875 10.7053 1.1875 10.6667V3.66667C1.1875 3.62799 1.20286 3.5909 1.23021 3.56355C1.25756 3.5362 1.29466 3.52083 1.33333 3.52083H2.64583V8.33333C2.64583 8.89712 3.10288 9.35417 3.66667 9.35417H7.3125Z", fill: color }))));
|
|
12
12
|
exports.CopyIcon = (0, styled_components_1.default)(Icon) `
|
|
13
|
-
width:
|
|
14
|
-
height:
|
|
13
|
+
width: 1.3em;
|
|
14
|
+
height: 1.3em;
|
|
15
15
|
vertical-align: middle;
|
|
16
16
|
`;
|
|
17
17
|
//# sourceMappingURL=CopyIcon.js.map
|
|
@@ -3,5 +3,5 @@ interface IconProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
color?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const DeselectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const DeselectIcon: import("styled-components").StyledComponent<({ className, color }: IconProps) => JSX.Element, any, {}, never>;
|
|
7
7
|
export {};
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.DeselectIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Icon = ({ className }) => (react_1.default.createElement("svg", { "data-component-name": "icons/DeselectIcon", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
10
|
-
react_1.default.createElement("path", { d: "M14.4966 10.5H9.49658V11.5H14.4966V10.5Z", fill:
|
|
11
|
-
react_1.default.createElement("path", { d: "M10.5 3.64746H1.5V4.64746H10.5V3.64746Z", fill:
|
|
12
|
-
react_1.default.createElement("path", { d: "M10.5 6.64746H1.5V7.64746H10.5V6.64746Z", fill:
|
|
13
|
-
react_1.default.createElement("path", { d: "M7.5 9.64746H1.5V10.6475H7.5V9.64746Z", fill:
|
|
9
|
+
const Icon = ({ className, color = 'white' }) => (react_1.default.createElement("svg", { "data-component-name": "icons/DeselectIcon", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
10
|
+
react_1.default.createElement("path", { d: "M14.4966 10.5H9.49658V11.5H14.4966V10.5Z", fill: color }),
|
|
11
|
+
react_1.default.createElement("path", { d: "M10.5 3.64746H1.5V4.64746H10.5V3.64746Z", fill: color }),
|
|
12
|
+
react_1.default.createElement("path", { d: "M10.5 6.64746H1.5V7.64746H10.5V6.64746Z", fill: color }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M7.5 9.64746H1.5V10.6475H7.5V9.64746Z", fill: color })));
|
|
14
14
|
exports.DeselectIcon = (0, styled_components_1.default)(Icon) `
|
|
15
15
|
width: 1.3em;
|
|
16
16
|
height: 1.3em;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
|
+
color?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const ExpandIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const ExpandIcon: import("styled-components").StyledComponent<({ className, color }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
7
|
export {};
|
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ExpandIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Icon = ({ className }) => (react_1.default.createElement("svg", { "data-component-name": "icons/ExpandIcon", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
9
|
+
const Icon = ({ className, color = 'white' }) => (react_1.default.createElement("svg", { "data-component-name": "icons/ExpandIcon", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
10
10
|
react_1.default.createElement("g", { clipPath: "url(#clip0_906_12129)" },
|
|
11
11
|
react_1.default.createElement("rect", { width: "14", height: "14", fill: "none", style: { mixBlendMode: 'multiply' } }),
|
|
12
|
-
react_1.default.createElement("path", { d: "M8.75 0.875V1.75H11.6314L7.875 5.50462L8.49362 6.125L12.25 2.36863V5.25H13.125V0.875H8.75Z", fill:
|
|
13
|
-
react_1.default.createElement("path", { d: "M6.125 8.4945L5.509 7.875L1.75 11.6314V8.75H0.875V13.125H5.25V12.25H2.36863L6.125 8.4945Z", fill:
|
|
12
|
+
react_1.default.createElement("path", { d: "M8.75 0.875V1.75H11.6314L7.875 5.50462L8.49362 6.125L12.25 2.36863V5.25H13.125V0.875H8.75Z", fill: color }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M6.125 8.4945L5.509 7.875L1.75 11.6314V8.75H0.875V13.125H5.25V12.25H2.36863L6.125 8.4945Z", fill: color })),
|
|
14
14
|
react_1.default.createElement("defs", null,
|
|
15
15
|
react_1.default.createElement("clipPath", { id: "clip0_906_12129" },
|
|
16
16
|
react_1.default.createElement("rect", { width: "14", height: "14", fill: "white" })))));
|
|
17
17
|
exports.ExpandIcon = (0, styled_components_1.default)(Icon) `
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
18
|
+
width: 1.3em;
|
|
19
|
+
height: 1.3em;
|
|
20
20
|
vertical-align: middle;
|
|
21
21
|
`;
|
|
22
22
|
//# sourceMappingURL=ExpandIcon.js.map
|
|
@@ -7,8 +7,8 @@ exports.ExternalIcon = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
// TODO use with "Sidebar/ExternalIcon"
|
|
10
|
-
const Icon = ({ className, dataComponentName, }) => (react_1.default.createElement("span", { "data-component-name": dataComponentName
|
|
11
|
-
react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", x: "0px", y: "0px", viewBox: "0 0
|
|
10
|
+
const Icon = ({ className, dataComponentName, }) => (react_1.default.createElement("span", { "data-component-name": dataComponentName },
|
|
11
|
+
react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", x: "0px", y: "0px", viewBox: "0 0 100 125", enableBackground: "new 0 0 100 100", className: className },
|
|
12
12
|
react_1.default.createElement("path", { d: "M-408.167-318.5" }),
|
|
13
13
|
react_1.default.createElement("line", { fill: "none", stroke: "#ffffff", strokeWidth: "0.25", strokeMiterlimit: "10", x1: "57.5", y1: "11.75", x2: "57.5", y2: "17.5" }),
|
|
14
14
|
react_1.default.createElement("path", { d: "M98.57,4.784c-0.024-0.113-0.047-0.223-0.074-0.334c-0.035-0.117-0.075-0.231-0.117-0.346 c-0.023-0.062-0.037-0.125-0.064-0.187c-0.016-0.032-0.03-0.06-0.049-0.092c-0.048-0.119-0.107-0.227-0.17-0.336 c-0.05-0.089-0.095-0.179-0.152-0.265c-0.062-0.1-0.139-0.195-0.209-0.292C97.67,2.85,97.611,2.77,97.545,2.69 c-0.081-0.092-0.172-0.178-0.258-0.262c-0.07-0.068-0.139-0.139-0.212-0.202c-0.093-0.083-0.196-0.158-0.3-0.232 c-0.08-0.058-0.152-0.114-0.236-0.163c-0.104-0.069-0.219-0.128-0.329-0.186c-0.091-0.046-0.175-0.093-0.262-0.132 c-0.044-0.019-0.081-0.043-0.121-0.061c-0.074-0.03-0.154-0.046-0.234-0.072c-0.095-0.033-0.19-0.065-0.288-0.092 c-0.123-0.034-0.246-0.059-0.369-0.083c-0.096-0.019-0.188-0.036-0.289-0.046c-0.131-0.018-0.263-0.022-0.393-0.028 c-0.064-0.002-0.12-0.012-0.186-0.012L63.77,1.305c-2.535,0.017-4.566,2.078-4.554,4.605c0.019,2.525,2.084,4.563,4.604,4.546 l19.258-0.121l-29.79,30.162c-1.112,1.126-1.526,2.678-1.233,4.118c0.174,0.863,0.596,1.691,1.272,2.357 c0.897,0.888,2.073,1.325,3.245,1.32c1.17-0.007,2.337-0.459,3.227-1.361l0.002-0.001l29.787-30.158l0.121,19.255 c0.014,2.523,2.07,4.564,4.602,4.545c1.268-0.005,2.408-0.526,3.233-1.357c0.817-0.834,1.325-1.98,1.317-3.242L98.675,5.665 c0-0.063-0.016-0.124-0.016-0.189c-0.009-0.123-0.015-0.25-0.032-0.375C98.616,4.992,98.592,4.89,98.57,4.784z" }),
|
|
@@ -17,6 +17,6 @@ exports.ExternalIcon = (0, styled_components_1.default)(Icon) `
|
|
|
17
17
|
width: 10px;
|
|
18
18
|
height: 10px;
|
|
19
19
|
margin-left: 5px;
|
|
20
|
-
fill:
|
|
20
|
+
fill: var(--sidebar-group-item-chevron-color);
|
|
21
21
|
`;
|
|
22
22
|
//# sourceMappingURL=ExternalIcon.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
|
+
color?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const FileIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const FileIcon: import("styled-components").StyledComponent<({ className, color }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
7
|
export {};
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.FileIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Icon = ({ className }) => (react_1.default.createElement("svg", { "data-component-name": "icons/FileIcon", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
9
|
+
const Icon = ({ className, color = 'white' }) => (react_1.default.createElement("svg", { "data-component-name": "icons/FileIcon", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
10
10
|
react_1.default.createElement("rect", { width: "14", height: "14", fill: "none", style: { mixBlendMode: 'multiply' } }),
|
|
11
|
-
react_1.default.createElement("path", { d: "M12.85 4.65018L9.35 1.15018C9.30601 1.10132 9.25192 1.0626 9.19149 1.0367C9.13106 1.0108 9.06572 0.998339 9 1.00018H4C3.73502 1.00096 3.48112 1.10656 3.29375 1.29393C3.10638 1.4813 3.00078 1.7352 3 2.00018V14.0002C3.00078 14.2652 3.10638 14.5191 3.29375 14.7064C3.48112 14.8938 3.73502 14.9994 4 15.0002H12C12.265 14.9994 12.5189 14.8938 12.7062 14.7064C12.8936 14.5191 12.9992 14.2652 13 14.0002V5.00018C13.0018 4.93446 12.9894 4.86912 12.9635 4.80869C12.9376 4.74826 12.8989 4.69417 12.85 4.65018ZM9 2.20018L11.8 5.00018H9V2.20018ZM12 14.0002H4V2.00018H8V5.00018C8.00078 5.26515 8.10638 5.51906 8.29375 5.70642C8.48112 5.89379 8.73502 5.9994 9 6.00018H12V14.0002Z", fill:
|
|
11
|
+
react_1.default.createElement("path", { d: "M12.85 4.65018L9.35 1.15018C9.30601 1.10132 9.25192 1.0626 9.19149 1.0367C9.13106 1.0108 9.06572 0.998339 9 1.00018H4C3.73502 1.00096 3.48112 1.10656 3.29375 1.29393C3.10638 1.4813 3.00078 1.7352 3 2.00018V14.0002C3.00078 14.2652 3.10638 14.5191 3.29375 14.7064C3.48112 14.8938 3.73502 14.9994 4 15.0002H12C12.265 14.9994 12.5189 14.8938 12.7062 14.7064C12.8936 14.5191 12.9992 14.2652 13 14.0002V5.00018C13.0018 4.93446 12.9894 4.86912 12.9635 4.80869C12.9376 4.74826 12.8989 4.69417 12.85 4.65018ZM9 2.20018L11.8 5.00018H9V2.20018ZM12 14.0002H4V2.00018H8V5.00018C8.00078 5.26515 8.10638 5.51906 8.29375 5.70642C8.48112 5.89379 8.73502 5.9994 9 6.00018H12V14.0002Z", fill: color })));
|
|
12
12
|
exports.FileIcon = (0, styled_components_1.default)(Icon) `
|
|
13
13
|
width: 1.3em;
|
|
14
14
|
height: 1.3em;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
|
+
color?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const ReportIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const ReportIcon: import("styled-components").StyledComponent<({ className, color }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
7
|
export {};
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ReportIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Icon = ({ className }) => (react_1.default.createElement("svg", { "data-component-name": "icons/ReportIcon", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
9
|
+
const Icon = ({ className, color = 'white' }) => (react_1.default.createElement("svg", { "data-component-name": "icons/ReportIcon", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
10
10
|
react_1.default.createElement("rect", { width: "14", height: "14", fill: "none", style: { mixBlendMode: 'multiply' } }),
|
|
11
|
-
react_1.default.createElement("path", { d: "M7 8.75C6.87021 8.75 6.74333 8.78849 6.63541 8.8606C6.52749 8.93271 6.44337 9.0352 6.3937 9.15511C6.34403 9.27503 6.33104 9.40698 6.35636 9.53428C6.38168 9.66158 6.44418 9.77851 6.53596 9.87029C6.62774 9.96207 6.74467 10.0246 6.87197 10.0499C6.99927 10.0752 7.13122 10.0622 7.25114 10.0125C7.37105 9.96288 7.47354 9.87876 7.54565 9.77084C7.61776 9.66292 7.65625 9.53604 7.65625 9.40625C7.65625 9.2322 7.58711 9.06528 7.46404 8.94221C7.34097 8.81914 7.17405 8.75 7 8.75Z", fill:
|
|
11
|
+
react_1.default.createElement("path", { d: "M7 8.75C6.87021 8.75 6.74333 8.78849 6.63541 8.8606C6.52749 8.93271 6.44337 9.0352 6.3937 9.15511C6.34403 9.27503 6.33104 9.40698 6.35636 9.53428C6.38168 9.66158 6.44418 9.77851 6.53596 9.87029C6.62774 9.96207 6.74467 10.0246 6.87197 10.0499C6.99927 10.0752 7.13122 10.0622 7.25114 10.0125C7.37105 9.96288 7.47354 9.87876 7.54565 9.77084C7.61776 9.66292 7.65625 9.53604 7.65625 9.40625C7.65625 9.2322 7.58711 9.06528 7.46404 8.94221C7.34097 8.81914 7.17405 8.75 7 8.75Z", fill: color, fillOpacity: "1" }),
|
|
12
12
|
react_1.default.createElement("path", { d: "M7.4375 3.9375H6.5625V7.875H7.4375V3.9375Z", fill: "white", fillOpacity: "1" }),
|
|
13
|
-
react_1.default.createElement("path", { d: "M11.375 12.25H2.625C2.39302 12.2497 2.17061 12.1575 2.00658 11.9934C1.84254 11.8294 1.75027 11.607 1.75 11.375V2.625C1.75027 2.39302 1.84254 2.17061 2.00658 2.00658C2.17061 1.84254 2.39302 1.75027 2.625 1.75H11.375C11.607 1.75027 11.8294 1.84254 11.9934 2.00658C12.1575 2.17061 12.2497 2.39302 12.25 2.625V11.375C12.2497 11.607 12.1575 11.8294 11.9934 11.9934C11.8294 12.1575 11.607 12.2497 11.375 12.25ZM2.625 2.625V11.375H11.3755L11.375 2.625H2.625Z", fill:
|
|
13
|
+
react_1.default.createElement("path", { d: "M11.375 12.25H2.625C2.39302 12.2497 2.17061 12.1575 2.00658 11.9934C1.84254 11.8294 1.75027 11.607 1.75 11.375V2.625C1.75027 2.39302 1.84254 2.17061 2.00658 2.00658C2.17061 1.84254 2.39302 1.75027 2.625 1.75H11.375C11.607 1.75027 11.8294 1.84254 11.9934 2.00658C12.1575 2.17061 12.2497 2.39302 12.25 2.625V11.375C12.2497 11.607 12.1575 11.8294 11.9934 11.9934C11.8294 12.1575 11.607 12.2497 11.375 12.25ZM2.625 2.625V11.375H11.3755L11.375 2.625H2.625Z", fill: color, fillOpacity: "1" })));
|
|
14
14
|
exports.ReportIcon = (0, styled_components_1.default)(Icon) `
|
|
15
15
|
width: 1.3em;
|
|
16
16
|
height: 1.3em;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
|
+
color?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const SelectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const SelectIcon: import("styled-components").StyledComponent<({ className, color }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
7
|
export {};
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SelectIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Icon = ({ className }) => (react_1.default.createElement("svg", { "data-component-name": "icons/SelectIcon", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
10
|
-
react_1.default.createElement("path", { d: "M10.5 3.64746H1.5V4.64746H10.5V3.64746Z", fill:
|
|
11
|
-
react_1.default.createElement("path", { d: "M10.5 6.64746H1.5V7.64746H10.5V6.64746Z", fill:
|
|
12
|
-
react_1.default.createElement("path", { d: "M7.5 9.64746H1.5V10.6475H7.5V9.64746Z", fill:
|
|
13
|
-
react_1.default.createElement("path", { d: "M10.5 10.9425L9.205 9.64746L8.5 10.3525L10.5 12.3525L14.5 8.35246L13.795 7.64746L10.5 10.9425Z", fill:
|
|
9
|
+
const Icon = ({ className, color = 'white' }) => (react_1.default.createElement("svg", { "data-component-name": "icons/SelectIcon", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
10
|
+
react_1.default.createElement("path", { d: "M10.5 3.64746H1.5V4.64746H10.5V3.64746Z", fill: color }),
|
|
11
|
+
react_1.default.createElement("path", { d: "M10.5 6.64746H1.5V7.64746H10.5V6.64746Z", fill: color }),
|
|
12
|
+
react_1.default.createElement("path", { d: "M7.5 9.64746H1.5V10.6475H7.5V9.64746Z", fill: color }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M10.5 10.9425L9.205 9.64746L8.5 10.3525L10.5 12.3525L14.5 8.35246L13.795 7.64746L10.5 10.9425Z", fill: color })));
|
|
14
14
|
exports.SelectIcon = (0, styled_components_1.default)(Icon) `
|
|
15
15
|
width: 1.3em;
|
|
16
16
|
height: 1.3em;
|
package/lib/icons/index.d.ts
CHANGED
|
@@ -15,9 +15,3 @@ export * from '../icons/SelectIcon';
|
|
|
15
15
|
export * from '../icons/BurgerIcon';
|
|
16
16
|
export * from '../icons/CloseIcon';
|
|
17
17
|
export * from '../icons/LogoutIcon';
|
|
18
|
-
export * from '../icons/LanguageIcon';
|
|
19
|
-
export * from '../icons/PointingArrowIcon';
|
|
20
|
-
export * from '../icons/CheckboxIcon';
|
|
21
|
-
export * from '../icons/ErrorIcon';
|
|
22
|
-
export * from '../icons/EditIcon';
|
|
23
|
-
export * from '../icons/RocketIcon';
|
package/lib/icons/index.js
CHANGED
|
@@ -31,10 +31,4 @@ __exportStar(require("../icons/SelectIcon"), exports);
|
|
|
31
31
|
__exportStar(require("../icons/BurgerIcon"), exports);
|
|
32
32
|
__exportStar(require("../icons/CloseIcon"), exports);
|
|
33
33
|
__exportStar(require("../icons/LogoutIcon"), exports);
|
|
34
|
-
__exportStar(require("../icons/LanguageIcon"), exports);
|
|
35
|
-
__exportStar(require("../icons/PointingArrowIcon"), exports);
|
|
36
|
-
__exportStar(require("../icons/CheckboxIcon"), exports);
|
|
37
|
-
__exportStar(require("../icons/ErrorIcon"), exports);
|
|
38
|
-
__exportStar(require("../icons/EditIcon"), exports);
|
|
39
|
-
__exportStar(require("../icons/RocketIcon"), exports);
|
|
40
34
|
//# sourceMappingURL=index.js.map
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -23,5 +23,5 @@ __exportStar(require("./globalStyle"), exports);
|
|
|
23
23
|
__exportStar(require("./types/config"), exports);
|
|
24
24
|
__exportStar(require("./config"), exports);
|
|
25
25
|
__exportStar(require("./ui"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./I18n"), exports);
|
|
27
27
|
//# sourceMappingURL=index.js.map
|
package/lib/layouts/Forbidden.js
CHANGED
|
@@ -21,10 +21,6 @@ function Forbidden() {
|
|
|
21
21
|
}
|
|
22
22
|
exports.Forbidden = Forbidden;
|
|
23
23
|
const Wrapper = styled_components_1.default.div `
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
24
|
margin: 25px auto;
|
|
29
25
|
font-family: var(--page-403-font-family);
|
|
30
26
|
text-align: center;
|
package/lib/layouts/NotFound.js
CHANGED
|
@@ -21,10 +21,6 @@ function NotFound() {
|
|
|
21
21
|
}
|
|
22
22
|
exports.NotFound = NotFound;
|
|
23
23
|
const Wrapper = styled_components_1.default.div `
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
24
|
margin: 25px auto;
|
|
29
25
|
font-family: var(--page-404-font-family);
|
|
30
26
|
text-align: center;
|
package/lib/mocks/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CatalogFilterConfig
|
|
1
|
+
import { CatalogFilterConfig } from "../../../../../config";
|
|
2
2
|
export type FilteredCatalog = {
|
|
3
3
|
groups: {
|
|
4
4
|
title: string;
|
|
@@ -31,9 +31,5 @@ export type CatalogItem = {
|
|
|
31
31
|
description?: string;
|
|
32
32
|
image?: string;
|
|
33
33
|
docsLink?: string;
|
|
34
|
-
scorecardStatus?: ScorecardStatus;
|
|
35
|
-
scorecardLevel?: string;
|
|
36
|
-
scoreCardSlug?: string;
|
|
37
|
-
tags?: unknown[];
|
|
38
34
|
[k: string]: unknown;
|
|
39
35
|
};
|
|
@@ -19,7 +19,6 @@ export type ResolvedNavLinkItem = {
|
|
|
19
19
|
routeSlug?: string;
|
|
20
20
|
active?: boolean;
|
|
21
21
|
icon?: string;
|
|
22
|
-
srcSet?: string;
|
|
23
22
|
[REDOCLY_TEAMS_RBAC]?: Rbac;
|
|
24
23
|
};
|
|
25
24
|
export type ResolvedNavGroupItem = {
|
|
@@ -43,7 +42,6 @@ export type ResolvedNavGroupItem = {
|
|
|
43
42
|
routeSlug?: string;
|
|
44
43
|
active?: boolean;
|
|
45
44
|
icon?: string;
|
|
46
|
-
srcSet?: string;
|
|
47
45
|
[REDOCLY_TEAMS_RBAC]?: Rbac;
|
|
48
46
|
};
|
|
49
47
|
export type ResolvedNavItem = ResolvedNavLinkItem | ResolvedNavGroupItem | {
|
|
@@ -60,7 +58,6 @@ export type ResolvedNavItem = ResolvedNavLinkItem | ResolvedNavGroupItem | {
|
|
|
60
58
|
items?: ResolvedNavItem[];
|
|
61
59
|
sidebar?: ResolvedNavItem[];
|
|
62
60
|
icon?: string;
|
|
63
|
-
srcSet?: string;
|
|
64
61
|
languageInsensitive?: boolean;
|
|
65
62
|
[REDOCLY_TEAMS_RBAC]?: Rbac;
|
|
66
63
|
} | {
|
|
@@ -76,7 +73,6 @@ export type ResolvedNavItem = ResolvedNavLinkItem | ResolvedNavGroupItem | {
|
|
|
76
73
|
items?: ResolvedNavItem[];
|
|
77
74
|
sidebar?: ResolvedNavItem[];
|
|
78
75
|
icon?: string;
|
|
79
|
-
srcSet?: string;
|
|
80
76
|
languageInsensitive?: boolean;
|
|
81
77
|
[REDOCLY_TEAMS_RBAC]?: Rbac;
|
|
82
78
|
};
|
|
@@ -135,7 +131,6 @@ export type NavItem = {
|
|
|
135
131
|
};
|
|
136
132
|
export interface LogoConfig {
|
|
137
133
|
image?: string;
|
|
138
|
-
srcSet?: string;
|
|
139
134
|
altText?: string;
|
|
140
135
|
link?: string;
|
|
141
136
|
favicon?: string;
|
package/lib/ui/ArrowBack.js
CHANGED
|
@@ -12,6 +12,7 @@ const Arrow = ({ className, dataComponentName, }) => (react_1.default.createElem
|
|
|
12
12
|
react_1.default.createElement("path", { d: "M2 5a1 1 0 011-1h8a1 1 0 110 2H3a1 1 0 01-1-1z" }))));
|
|
13
13
|
exports.ArrowBack = (0, styled_components_1.default)(Arrow) `
|
|
14
14
|
fill: var(--sidebar-back-button-icon-color);
|
|
15
|
+
margin-right: calc(var(--sidebar-spacing-unit));
|
|
15
16
|
|
|
16
17
|
background-image: var(--sidebar-back-button-icon);
|
|
17
18
|
background-repeat: no-repeat;
|
package/lib/ui/Burger.js
CHANGED
|
@@ -25,7 +25,7 @@ const Line = styled_components_1.default.div `
|
|
|
25
25
|
margin: 4px 0;
|
|
26
26
|
width: 100%;
|
|
27
27
|
height: 2px;
|
|
28
|
-
background: var(--
|
|
28
|
+
background: var(--text-color);
|
|
29
29
|
border-radius: 1px;
|
|
30
30
|
`;
|
|
31
31
|
exports.Burger = (0, styled_components_1.default)(BurgerComponent) ``;
|
package/lib/ui/Dropdown.js
CHANGED
|
@@ -42,9 +42,9 @@ const DropDownHeader = styled_components_1.default.div `
|
|
|
42
42
|
align-items: center;
|
|
43
43
|
padding: 8px 10px;
|
|
44
44
|
border-radius: 4px;
|
|
45
|
-
border: 1px solid var(--border-
|
|
45
|
+
border: 1px solid var(--border-color);
|
|
46
46
|
font-weight: 600;
|
|
47
|
-
color: var(--text-
|
|
47
|
+
color: var(--text-color);
|
|
48
48
|
background: var(--background-color);
|
|
49
49
|
`;
|
|
50
50
|
const DropDownList = styled_components_1.default.div `
|
|
@@ -53,7 +53,7 @@ const DropDownList = styled_components_1.default.div `
|
|
|
53
53
|
margin: 2px 20px 0 20px;
|
|
54
54
|
padding: 0;
|
|
55
55
|
border-radius: 4px;
|
|
56
|
-
border: 1px solid var(--border-
|
|
56
|
+
border: 1px solid var(--border-color);
|
|
57
57
|
z-index: var(--z-index-popover);
|
|
58
58
|
left: 0;
|
|
59
59
|
right: 0;
|
|
@@ -70,19 +70,19 @@ const ListItem = styled_components_1.default.div `
|
|
|
70
70
|
background-color: var(--background-color);
|
|
71
71
|
padding: 0.4em 10px;
|
|
72
72
|
font-size: 1em;
|
|
73
|
-
color: var(--text-
|
|
73
|
+
color: var(--text-color);
|
|
74
74
|
cursor: pointer;
|
|
75
75
|
&:hover {
|
|
76
|
-
background-color: var(--
|
|
76
|
+
background-color: var(--color-secondary-300);
|
|
77
77
|
}
|
|
78
78
|
&.active {
|
|
79
|
-
background-color: var(--
|
|
79
|
+
background-color: var(--color-secondary-300);
|
|
80
80
|
}
|
|
81
81
|
`;
|
|
82
82
|
const DropDownLink = (0, styled_components_1.default)(Link_1.Link) `
|
|
83
83
|
display: block;
|
|
84
84
|
text-decoration: none;
|
|
85
|
-
color: var(--text-
|
|
85
|
+
color: var(--text-color);
|
|
86
86
|
`;
|
|
87
87
|
function Dropdown({ items, activeItem }) {
|
|
88
88
|
const ref = (0, react_1.useRef)(null);
|
package/lib/ui/Highlight.d.ts
CHANGED
package/lib/ui/Highlight.js
CHANGED
|
@@ -31,7 +31,7 @@ function Highlight(props) {
|
|
|
31
31
|
const { children } = props;
|
|
32
32
|
const searchWords = React.useContext(exports.HighlightContext);
|
|
33
33
|
if (!searchWords.length) {
|
|
34
|
-
return
|
|
34
|
+
return React.createElement(React.Fragment, null, "children") || null;
|
|
35
35
|
}
|
|
36
36
|
function highlight(str, childIdx = 0) {
|
|
37
37
|
const chunks = (0, highlight_words_core_1.findAll)({
|
package/lib/ui/Jumbotron.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.Jumbotron = (0, styled_components_1.default)(Background_1.Background).at
|
|
|
19
19
|
${({ bgColor }) => bgColor && `background: ${bgColor}`};
|
|
20
20
|
${({ bgImage, bgColor }) => bgImage &&
|
|
21
21
|
`
|
|
22
|
-
background: ${bgColor || 'var(--text-
|
|
22
|
+
background: ${bgColor || 'var(--text-color)'} url(${bgImage});
|
|
23
23
|
background-repeat: no-repeat;
|
|
24
24
|
background-size: cover;
|
|
25
25
|
background-position: center;
|