@redocly/theme 0.18.3-patch.0 → 0.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/I18n/LanguagePicker.d.ts +2 -7
- package/lib/I18n/LanguagePicker.js +3 -11
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -15
- package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -0
- package/lib/components/Breadcrumbs/Breadcrumb.js +3 -4
- package/lib/components/Breadcrumbs/Breadcrumbs.js +9 -2
- 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 +42 -40
- 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 -1
- package/lib/components/Catalog/Catalog.js +96 -99
- package/lib/components/Catalog/CatalogCard.js +58 -62
- package/lib/components/Catalog/index.d.ts +3 -4
- package/lib/components/Catalog/index.js +3 -4
- package/lib/components/Catalog/useCatalog.js +12 -1
- package/lib/components/CodeBlock/CodeBlockContainer.js +8 -35
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +4 -3
- package/lib/components/CodeBlock/CodeBlockControlButton.js +19 -5
- package/lib/components/CodeBlock/CodeBlockControls.js +11 -10
- package/lib/components/CodeBlock/index.d.ts +0 -1
- package/lib/components/CodeBlock/index.js +0 -1
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +3 -0
- package/lib/components/Dropdown/Dropdown.d.ts +2 -7
- package/lib/components/Dropdown/Dropdown.js +4 -6
- package/lib/components/Dropdown/index.d.ts +0 -1
- package/lib/components/Dropdown/index.js +0 -1
- package/lib/components/EditPageButton/EditPageButton.js +2 -1
- package/lib/components/Feedback/Feedback.js +13 -3
- package/lib/components/Feedback/Reasons.js +1 -1
- package/lib/components/Feedback/Sentiment.js +6 -2
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.js +78 -101
- 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 -27
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +64 -53
- 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/Markdown/MarkdownWrapper.js +4 -2
- package/lib/components/Markdown/Mermaid.js +1 -1
- package/lib/components/Markdown/index.d.ts +0 -1
- package/lib/components/Markdown/index.js +0 -1
- package/lib/components/Menu/Menu.js +7 -5
- package/lib/components/Menu/MenuGroup.js +7 -12
- package/lib/components/Menu/MenuItemLabel.js +13 -7
- package/lib/components/Menu/MenuLinkItem.js +2 -1
- 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 +28 -5
- package/lib/components/Navbar/Navbar.js +11 -10
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +6 -7
- 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 +6 -13
- 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/Panel/PanelHeader.js +0 -1
- 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/index.d.ts +0 -1
- package/lib/components/Product/index.js +0 -1
- package/lib/components/Profile/LoginLink.js +6 -2
- package/lib/components/Profile/Profile.js +22 -3
- package/lib/components/Profile/UserProfile.js +13 -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 +7 -7
- 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 +3 -10
- package/lib/components/Select/Select.js +6 -9
- package/lib/components/Select/index.d.ts +0 -1
- package/lib/components/Select/index.js +0 -1
- package/lib/components/Separator/SeparatorItem.js +5 -7
- package/lib/components/Sidebar/ApiCallItem.d.ts +6 -2
- package/lib/components/Sidebar/ApiCallItem.js +11 -13
- package/lib/components/Sidebar/FooterWrapper.js +4 -3
- package/lib/components/Sidebar/HeaderWrapper.js +2 -2
- package/lib/components/Sidebar/SidebarLayout.js +2 -1
- package/lib/components/Sidebar/VersionPicker.d.ts +1 -1
- package/lib/components/Sidebar/index.d.ts +0 -1
- package/lib/components/Sidebar/index.js +0 -1
- package/lib/components/SidebarActions/CollapseSidebarButton.js +1 -37
- package/lib/components/SidebarActions/SidebarActions.js +15 -3
- package/lib/components/SidebarActions/styled.js +14 -16
- package/lib/components/TableOfContent/TableOfContent.js +5 -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/TileText.js +1 -1
- package/lib/components/Tooltip/index.d.ts +0 -1
- package/lib/components/Tooltip/index.js +0 -1
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +2 -1
- package/lib/config.d.ts +0 -6
- package/lib/config.js +0 -1
- package/lib/globalStyle.js +1967 -597
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +2 -1
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +2 -1
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/FileIcon/FileIcon.d.ts +2 -1
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/ReportIcon/ReportIcon.d.ts +2 -1
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/SelectIcon/SelectIcon.d.ts +2 -1
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +0 -4
- package/lib/icons/index.js +0 -4
- package/lib/layouts/Forbidden.js +0 -4
- package/lib/layouts/NotFound.js +0 -4
- package/lib/types/portal/src/shared/types/nav.d.ts +0 -5
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +84 -216
- package/package.json +2 -2
- package/src/I18n/LanguagePicker.tsx +4 -29
- package/src/I18n/index.ts +0 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +9 -4
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +14 -2
- package/src/components/Breadcrumbs/index.ts +0 -1
- package/src/components/Button/Button.tsx +48 -52
- package/src/components/Button/index.ts +0 -1
- package/src/components/Catalog/Catalog.tsx +115 -127
- package/src/components/Catalog/CatalogCard.tsx +61 -75
- package/src/components/Catalog/index.tsx +3 -0
- package/src/components/Catalog/useCatalog.ts +13 -1
- package/src/components/CodeBlock/CodeBlockContainer.tsx +7 -14
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +19 -6
- package/src/components/CodeBlock/CodeBlockControls.tsx +11 -9
- package/src/components/CodeBlock/index.ts +0 -1
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +4 -0
- package/src/components/Dropdown/Dropdown.tsx +4 -10
- package/src/components/Dropdown/index.ts +0 -1
- package/src/components/EditPageButton/EditPageButton.tsx +2 -1
- package/src/components/Feedback/Feedback.tsx +13 -3
- package/src/components/Feedback/Reasons.tsx +1 -1
- package/src/components/Feedback/Sentiment.tsx +10 -2
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +94 -127
- 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 +64 -79
- 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/Markdown/MarkdownWrapper.tsx +4 -2
- package/src/components/Markdown/Mermaid.tsx +1 -1
- package/src/components/Markdown/index.ts +0 -1
- package/src/components/Menu/Menu.tsx +7 -5
- package/src/components/Menu/MenuGroup.tsx +7 -15
- package/src/components/Menu/MenuItemLabel.tsx +13 -7
- package/src/components/Menu/MenuLinkItem.tsx +6 -1
- 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 +39 -5
- package/src/components/Navbar/Navbar.tsx +11 -10
- package/src/components/Navbar/NavbarItem.tsx +6 -6
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +0 -1
- package/src/components/NavbarLogo/NavbarLogo.tsx +12 -14
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +2 -1
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/OperationBadge/OperationBadge.ts +62 -0
- package/src/components/OperationBadge/index.ts +1 -0
- package/src/components/Panel/PanelHeader.ts +0 -1
- package/src/components/Panel/PanelHeaderTitle.ts +4 -0
- package/src/components/Panel/index.ts +0 -1
- package/src/components/Product/index.ts +0 -1
- package/src/components/Profile/LoginLink.tsx +10 -2
- package/src/components/Profile/Profile.tsx +24 -1
- package/src/components/Profile/UserProfile.tsx +13 -21
- package/src/components/Profile/index.ts +0 -1
- package/src/components/Search/CancelSearch.tsx +15 -2
- package/src/components/Search/ProductTag.tsx +7 -7
- 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 +7 -20
- package/src/components/Select/index.ts +0 -1
- package/src/components/Separator/SeparatorItem.tsx +5 -7
- package/src/components/Sidebar/ApiCallItem.tsx +11 -13
- package/src/components/Sidebar/FooterWrapper.tsx +4 -3
- package/src/components/Sidebar/HeaderWrapper.tsx +2 -2
- package/src/components/Sidebar/SidebarLayout.tsx +6 -1
- package/src/components/Sidebar/index.ts +0 -1
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +2 -18
- package/src/components/SidebarActions/SidebarActions.tsx +18 -3
- package/src/components/SidebarActions/styled.tsx +23 -16
- package/src/components/TableOfContent/TableOfContent.tsx +5 -2
- package/src/components/TableOfContent/index.ts +0 -1
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tags/Tags.tsx +36 -0
- package/src/components/Tags/index.ts +1 -0
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tooltip/index.ts +0 -1
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +2 -1
- package/src/config.ts +0 -1
- package/src/globalStyle.ts +1976 -588
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +5 -4
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/ExpandIcon/ExpandIcon.tsx +6 -5
- package/src/icons/FileIcon/FileIcon.tsx +3 -2
- package/src/icons/ReportIcon/ReportIcon.tsx +4 -3
- package/src/icons/SelectIcon/SelectIcon.tsx +6 -5
- package/src/icons/index.ts +0 -4
- package/src/layouts/Forbidden.tsx +0 -4
- package/src/layouts/NotFound.tsx +0 -4
- package/src/types/portal/src/shared/types/nav.ts +0 -5
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +84 -216
- package/lib/I18n/styledVariables.d.ts +0 -1
- package/lib/I18n/styledVariables.js +0 -39
- package/lib/components/Breadcrumbs/styledVariables.d.ts +0 -1
- package/lib/components/Breadcrumbs/styledVariables.js +0 -19
- package/lib/components/Button/styledVariables.d.ts +0 -1
- package/lib/components/Button/styledVariables.js +0 -94
- package/lib/components/Catalog/styledVariables.d.ts +0 -1
- package/lib/components/Catalog/styledVariables.js +0 -94
- package/lib/components/CodeBlock/styledVariables.d.ts +0 -1
- package/lib/components/CodeBlock/styledVariables.js +0 -90
- 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 -11
- package/lib/components/Filter/FilterContent.js +0 -50
- package/lib/components/Filter/FilterPopover.d.ts +0 -11
- package/lib/components/Filter/FilterPopover.js +0 -99
- 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/Markdown/styledVariables.d.ts +0 -2
- package/lib/components/Markdown/styledVariables.js +0 -221
- package/lib/components/Menu/styledVariables.d.ts +0 -2
- package/lib/components/Menu/styledVariables.js +0 -90
- package/lib/components/Navbar/styledVariables.d.ts +0 -1
- package/lib/components/Navbar/styledVariables.js +0 -40
- package/lib/components/Panel/styledVariables.d.ts +0 -2
- package/lib/components/Panel/styledVariables.js +0 -489
- package/lib/components/Product/styledVariables.d.ts +0 -2
- package/lib/components/Product/styledVariables.js +0 -41
- package/lib/components/Profile/UserProfileData.d.ts +0 -9
- package/lib/components/Profile/UserProfileData.js +0 -35
- package/lib/components/Profile/styledVariables.d.ts +0 -2
- package/lib/components/Profile/styledVariables.js +0 -55
- package/lib/components/Search/styledVariables.d.ts +0 -1
- package/lib/components/Search/styledVariables.js +0 -98
- package/lib/components/Select/styledVariables.d.ts +0 -1
- package/lib/components/Select/styledVariables.js +0 -33
- package/lib/components/Sidebar/styledVariables.d.ts +0 -2
- package/lib/components/Sidebar/styledVariables.js +0 -210
- package/lib/components/TableOfContent/styledVariables.d.ts +0 -1
- package/lib/components/TableOfContent/styledVariables.js +0 -46
- package/lib/components/Tag/Tag.d.ts +0 -16
- package/lib/components/Tag/Tag.js +0 -39
- 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 -130
- package/lib/components/Tooltip/styledVariables.d.ts +0 -1
- package/lib/components/Tooltip/styledVariables.js +0 -21
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +0 -6
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +0 -28
- package/lib/icons/CheckboxIcon/index.d.ts +0 -1
- package/lib/icons/CheckboxIcon/index.js +0 -6
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +0 -4
- package/lib/icons/ErrorIcon/ErrorIcon.js +0 -14
- package/lib/icons/ErrorIcon/index.d.ts +0 -1
- package/lib/icons/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/src/I18n/styledVariables.ts +0 -36
- package/src/components/Breadcrumbs/styledVariables.ts +0 -16
- package/src/components/Button/styledVariables.ts +0 -91
- package/src/components/Catalog/index.ts +0 -4
- package/src/components/Catalog/styledVariables.ts +0 -91
- package/src/components/CodeBlock/styledVariables.ts +0 -87
- package/src/components/Dropdown/styledVariables.ts +0 -27
- package/src/components/Filter/FilterContent.tsx +0 -75
- package/src/components/Filter/FilterPopover.tsx +0 -132
- 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/Markdown/styledVariables.ts +0 -219
- package/src/components/Menu/styledVariables.ts +0 -88
- package/src/components/Navbar/styledVariables.ts +0 -37
- package/src/components/Panel/styledVariables.ts +0 -487
- package/src/components/Product/styledVariables.ts +0 -39
- package/src/components/Profile/UserProfileData.tsx +0 -40
- package/src/components/Profile/styledVariables.ts +0 -53
- package/src/components/Search/styledVariables.ts +0 -95
- package/src/components/Select/styledVariables.ts +0 -30
- package/src/components/Sidebar/styledVariables.ts +0 -208
- package/src/components/TableOfContent/styledVariables.ts +0 -43
- package/src/components/Tag/Tag.tsx +0 -62
- package/src/components/Tag/index.ts +0 -2
- package/src/components/Tag/styledVariables.ts +0 -127
- package/src/components/Tooltip/styledVariables.ts +0 -18
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +0 -64
- package/src/icons/CheckboxIcon/index.ts +0 -1
- package/src/icons/ErrorIcon/ErrorIcon.tsx +0 -15
- package/src/icons/ErrorIcon/index.ts +0 -1
- package/src/icons/LanguageIcon/LanguageIcon.tsx +0 -15
- package/src/icons/LanguageIcon/index.ts +0 -1
- package/src/icons/PlusIcon/PlusIcon.tsx +0 -19
- 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/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
export declare const LanguagePicker: (props: {
|
|
3
3
|
onChangeLanguage: (newLang: string) => void;
|
|
4
|
-
|
|
5
|
-
placement?: 'top' | 'bottom';
|
|
6
|
-
alignment?: 'start' | 'end';
|
|
7
|
-
}
|
|
8
|
-
export declare const LanguagePicker: (props: LanguagePickerProps) => JSX.Element | null;
|
|
9
|
-
export {};
|
|
4
|
+
}) => JSX.Element | null;
|
|
@@ -10,7 +10,6 @@ const utils_1 = require("../mocks/utils");
|
|
|
10
10
|
const usePreloadHistory_1 = require("../mocks/usePreloadHistory");
|
|
11
11
|
const hooks_1 = require("../mocks/hooks");
|
|
12
12
|
const Select_1 = require("../components/Select");
|
|
13
|
-
const icons_1 = require("../icons");
|
|
14
13
|
const LanguagePicker = (props) => {
|
|
15
14
|
const { currentLocale, locales, defaultLocale } = (0, hooks_1.useI18nConfig)();
|
|
16
15
|
const history = (0, usePreloadHistory_1.usePreloadHistory)();
|
|
@@ -28,7 +27,7 @@ const LanguagePicker = (props) => {
|
|
|
28
27
|
history.push(newUrlWithLanguage);
|
|
29
28
|
props.onChangeLanguage(locale.code);
|
|
30
29
|
}, key: locale.code, role: "link" }, locale.name || locale.code || '')));
|
|
31
|
-
return
|
|
30
|
+
return react_1.default.createElement(LanguageSelect, { selected: selected, options: languageItems, triggerEvent: "hover" });
|
|
32
31
|
};
|
|
33
32
|
exports.LanguagePicker = LanguagePicker;
|
|
34
33
|
const LanguageSelect = (0, styled_components_1.default)(Select_1.Select).attrs(() => ({
|
|
@@ -42,19 +41,12 @@ const LanguageSelect = (0, styled_components_1.default)(Select_1.Select).attrs((
|
|
|
42
41
|
line-height: var(--language-picker-line-height);
|
|
43
42
|
border-radius: var(--language-picker-border-radius);
|
|
44
43
|
color: var(--language-picker-text-color);
|
|
45
|
-
background-color: var(--language-picker-background-color);
|
|
46
44
|
|
|
47
45
|
${Select_1.SelectInput} {
|
|
48
|
-
|
|
49
|
-
color: var(--language-picker-text-color);
|
|
50
|
-
border: 1px solid var(--language-picker-border-color);
|
|
46
|
+
color: var(--navbar-text-color);
|
|
51
47
|
border-radius: var(--language-picker-input-border-radius);
|
|
52
48
|
padding: var(--language-picker-input-padding-vertical)
|
|
53
49
|
var(--language-picker-input-padding-horizontal);
|
|
54
|
-
|
|
55
|
-
:hover {
|
|
56
|
-
border-color: var(--language-picker-hover-border-color);
|
|
57
|
-
}
|
|
58
50
|
}
|
|
59
51
|
|
|
60
52
|
${Select_1.SelectList} {
|
|
@@ -85,7 +77,7 @@ const LanguageSelect = (0, styled_components_1.default)(Select_1.Select).attrs((
|
|
|
85
77
|
|
|
86
78
|
:hover {
|
|
87
79
|
text-decoration: var(--navbar-item-hover-text-decoration);
|
|
88
|
-
background: var(--
|
|
80
|
+
background: var(--navbar-item-hover-background-color);
|
|
89
81
|
}
|
|
90
82
|
`;
|
|
91
83
|
const LanguageItem = styled_components_1.default.div ``;
|
package/lib/I18n/index.d.ts
CHANGED
package/lib/I18n/index.js
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.LanguagePicker = void 0;
|
|
18
4
|
var LanguagePicker_1 = require("../I18n/LanguagePicker");
|
|
19
5
|
Object.defineProperty(exports, "LanguagePicker", { enumerable: true, get: function () { return LanguagePicker_1.LanguagePicker; } });
|
|
20
|
-
__exportStar(require("../I18n/styledVariables"), exports);
|
|
21
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,8 +8,8 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const Link_1 = require("../../mocks/Link");
|
|
10
10
|
const Breadcrumb = (props) => {
|
|
11
|
-
const { label, link, isActive } = props;
|
|
12
|
-
return (react_1.default.createElement(BreadcrumbWrapper, { "data-component-name": "Breadcrumbs/Breadcrumb", isLink: link != null, isActive: isActive }, link ? (react_1.default.createElement(BreadcrumbLink, { to: link }, label)) : (react_1.default.createElement(BreadcrumbText, null, label))));
|
|
11
|
+
const { label, link, isActive, onClick } = props;
|
|
12
|
+
return (react_1.default.createElement(BreadcrumbWrapper, { "data-component-name": "Breadcrumbs/Breadcrumb", isLink: link != null, isActive: isActive, onClick: onClick }, link ? (react_1.default.createElement(BreadcrumbLink, { to: link }, label)) : (react_1.default.createElement(BreadcrumbText, null, label))));
|
|
13
13
|
};
|
|
14
14
|
exports.Breadcrumb = Breadcrumb;
|
|
15
15
|
const BreadcrumbText = styled_components_1.default.div `
|
|
@@ -36,10 +36,9 @@ const BreadcrumbWrapper = styled_components_1.default.div `
|
|
|
36
36
|
`;
|
|
37
37
|
const BreadcrumbLink = (0, styled_components_1.default)(Link_1.Link) `
|
|
38
38
|
text-decoration: none;
|
|
39
|
-
color: var(--breadcrumbs-text-color);
|
|
40
39
|
|
|
41
40
|
&:visited {
|
|
42
|
-
color:
|
|
41
|
+
color: inherit;
|
|
43
42
|
}
|
|
44
43
|
`;
|
|
45
44
|
//# sourceMappingURL=Breadcrumb.js.map
|
|
@@ -7,6 +7,7 @@ exports.Breadcrumbs = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const useBreadcrumbs_1 = require("../../mocks/Sidebar/useBreadcrumbs");
|
|
10
|
+
const telemetry_1 = require("../../mocks/telemetry");
|
|
10
11
|
const Breadcrumb_1 = require("./Breadcrumb");
|
|
11
12
|
const Breadcrumbs = (props) => {
|
|
12
13
|
const breadcrumbs = (0, useBreadcrumbs_1.useBreadcrumbs)();
|
|
@@ -16,7 +17,13 @@ const Breadcrumbs = (props) => {
|
|
|
16
17
|
return (react_1.default.createElement(Container, { "data-component-name": "Breadcrumbs/Breadcrumbs", className: props.className }, breadcrumbs.map((breadcrumb, idx) => {
|
|
17
18
|
const isLast = idx === breadcrumbs.length - 1;
|
|
18
19
|
return (react_1.default.createElement(react_1.default.Fragment, { key: idx },
|
|
19
|
-
react_1.default.createElement(Breadcrumb_1.Breadcrumb, { link: breadcrumb.link, label: breadcrumb.label, isActive: isLast
|
|
20
|
+
react_1.default.createElement(Breadcrumb_1.Breadcrumb, { link: breadcrumb.link, label: breadcrumb.label, isActive: isLast, onClick: () => {
|
|
21
|
+
telemetry_1.telemetry.send('breadcrumb_clicked', {
|
|
22
|
+
link: breadcrumb.link,
|
|
23
|
+
position: idx + 1,
|
|
24
|
+
total_breadcrumbs: breadcrumbs.length,
|
|
25
|
+
});
|
|
26
|
+
} }),
|
|
20
27
|
isLast ? null : react_1.default.createElement("div", null, "/")));
|
|
21
28
|
})));
|
|
22
29
|
};
|
|
@@ -30,7 +37,7 @@ const Container = styled_components_1.default.div `
|
|
|
30
37
|
flex-wrap: wrap;
|
|
31
38
|
|
|
32
39
|
> div {
|
|
33
|
-
padding: var(--breadcrumbs-padding);
|
|
40
|
+
padding-right: var(--breadcrumbs-padding-horizontal);
|
|
34
41
|
}
|
|
35
42
|
|
|
36
43
|
@media print {
|
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../components/Breadcrumbs/Breadcrumbs"), exports);
|
|
18
18
|
__exportStar(require("../../components/Breadcrumbs/Breadcrumb"), exports);
|
|
19
|
-
__exportStar(require("../../components/Breadcrumbs/styledVariables"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FlattenSimpleInterpolation } from 'styled-components';
|
|
3
|
-
export type ButtonSize = '
|
|
4
|
-
export type ButtonColor = '
|
|
5
|
-
export type ButtonVariant = 'outlined' | 'contained'
|
|
3
|
+
export type ButtonSize = 'small' | 'medium' | 'large' | 'xlarge' | string;
|
|
4
|
+
export type ButtonColor = 'primary' | 'secondary' | 'default' | string;
|
|
5
|
+
export type ButtonVariant = 'outlined' | 'contained';
|
|
6
6
|
export interface ButtonProps {
|
|
7
|
-
children?: React.ReactNode;
|
|
8
7
|
color?: ButtonColor;
|
|
9
8
|
disabled?: boolean;
|
|
10
9
|
blinking?: boolean;
|
|
@@ -13,8 +12,6 @@ export interface ButtonProps {
|
|
|
13
12
|
size?: ButtonSize;
|
|
14
13
|
extraClass?: string;
|
|
15
14
|
to?: string;
|
|
16
|
-
icon?: JSX.Element;
|
|
17
|
-
title?: string;
|
|
18
15
|
onClick?: (e?: any) => void;
|
|
19
16
|
}
|
|
20
17
|
export declare const baseButtonStyles: FlattenSimpleInterpolation;
|
|
@@ -45,70 +45,79 @@ const getBlink = () => (0, styled_components_1.keyframes) `
|
|
|
45
45
|
background-color: var(--button-active-background-color);
|
|
46
46
|
}
|
|
47
47
|
`;
|
|
48
|
-
const getSize = (size = '
|
|
48
|
+
const getSize = (size = 'medium') => (0, styled_components_1.css) `
|
|
49
49
|
font-size: var(--button-${size}-font-size);
|
|
50
50
|
padding: var(--button-${size}-padding);
|
|
51
51
|
min-width: var(--button-${size}-min-width);
|
|
52
52
|
`;
|
|
53
53
|
exports.baseButtonStyles = (0, styled_components_1.css) `
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
gap: 5px;
|
|
58
54
|
outline: none;
|
|
55
|
+
border: none;
|
|
56
|
+
border-radius: var(--button-border-radius);
|
|
57
|
+
font-weight: var(--button-font-weight);
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
padding: 2px 20px;
|
|
59
60
|
margin: var(--button-margin);
|
|
60
61
|
cursor: pointer;
|
|
62
|
+
transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
|
|
61
63
|
line-height: 1;
|
|
62
64
|
|
|
63
|
-
color: var(--button-color);
|
|
64
|
-
background-color: var(--button-background-color);
|
|
65
|
-
border: var(--button-border-width) var(--button-border-style) var(--button-border-color);
|
|
66
|
-
border-radius: var(--button-border-radius);
|
|
67
|
-
|
|
68
|
-
font-size: var(--button-font-size);
|
|
69
65
|
font-family: var(--button-font-family);
|
|
70
|
-
font-weight: var(--button-font-weight);
|
|
71
66
|
box-shadow: var(--button-box-shadow);
|
|
72
67
|
|
|
73
68
|
&:hover {
|
|
74
69
|
box-shadow: var(--button-hover-box-shadow);
|
|
75
|
-
background-color: var(--button-hover-background-color);
|
|
76
|
-
border: var(--button-border-width) var(--button-border-style) var(--button-hover-border-color);
|
|
77
70
|
}
|
|
78
71
|
|
|
79
72
|
&:active {
|
|
80
73
|
box-shadow: var(--button-active-box-shadow);
|
|
81
|
-
background-color: var(--button-active-background-color);
|
|
82
|
-
border: var(--button-border-width) var(--button-border-style) var(--button-active-border-color);
|
|
83
74
|
}
|
|
84
75
|
`;
|
|
85
|
-
const StyledButtonLink = (0, styled_components_1.default)(Link_1.Link) `
|
|
86
|
-
text-decoration: none;
|
|
87
|
-
`;
|
|
88
76
|
const StyledButton = styled_components_1.default.button.attrs(({ color = 'default', extraClass, variant }) => ({
|
|
89
|
-
className: `button-${color}${variant ? ` button-${variant}` : ''}${extraClass ? ` ${extraClass}` : ''}`,
|
|
77
|
+
className: `button-color-${color}${variant ? ` button-variant-${variant}` : ''}${extraClass ? ` ${extraClass}` : ''}`,
|
|
90
78
|
'data-component-name': 'Button/Button',
|
|
91
79
|
})) `
|
|
80
|
+
text-decoration: none;
|
|
81
|
+
text-align: center;
|
|
82
|
+
|
|
92
83
|
width: ${({ fullWidth }) => (fullWidth ? '100%' : 'auto')};
|
|
93
84
|
|
|
94
85
|
${exports.baseButtonStyles}
|
|
95
86
|
|
|
96
87
|
${({ variant }) => variant === 'outlined'
|
|
97
88
|
? (0, styled_components_1.css) `
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
: variant === 'text'
|
|
101
|
-
? (0, styled_components_1.css) `
|
|
102
|
-
border-color: transparent;
|
|
89
|
+
color: var(--button-background-color);
|
|
90
|
+
border: 2px solid var(--button-border-color);
|
|
103
91
|
background-color: transparent;
|
|
104
|
-
|
|
105
92
|
&:hover {
|
|
106
|
-
|
|
93
|
+
color: var(--button-hover-background-color);
|
|
94
|
+
border: 2px solid var(--button-hover-border-color);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:active {
|
|
98
|
+
color: var(--button-active-background-color);
|
|
99
|
+
border: 2px solid var(--button-active-border-color);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:disabled {
|
|
103
|
+
color: var(--button-disabled-color);
|
|
107
104
|
background-color: transparent;
|
|
108
|
-
box-shadow: none;
|
|
109
105
|
}
|
|
110
106
|
`
|
|
111
|
-
|
|
107
|
+
: (0, styled_components_1.css) `
|
|
108
|
+
color: var(--button-color);
|
|
109
|
+
border: 2px solid var(--button-background-color);
|
|
110
|
+
background-color: var(--button-background-color);
|
|
111
|
+
&:hover {
|
|
112
|
+
border: 2px solid var(--button-hover-background-color);
|
|
113
|
+
background-color: var(--button-hover-background-color);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:active {
|
|
117
|
+
border: 2px solid var(--button-active-background-color);
|
|
118
|
+
background-color: var(--button-active-background-color);
|
|
119
|
+
}
|
|
120
|
+
`};
|
|
112
121
|
|
|
113
122
|
${({ size }) => getSize(size)}
|
|
114
123
|
|
|
@@ -129,25 +138,18 @@ const StyledButton = styled_components_1.default.button.attrs(({ color = 'defaul
|
|
|
129
138
|
cursor: default;
|
|
130
139
|
color: var(--button-disabled-color);
|
|
131
140
|
background-color: var(--button-disabled-background-color);
|
|
132
|
-
border-color: var(--button-disabled-
|
|
141
|
+
border-color: var(--button-disabled-background-color);
|
|
133
142
|
pointer-events: none;
|
|
134
143
|
}
|
|
135
144
|
`}
|
|
136
145
|
`;
|
|
137
|
-
const StyledIcon = styled_components_1.default.span `
|
|
138
|
-
display: block;
|
|
139
|
-
height: var(--button-icon-height);
|
|
140
|
-
width: var(--button-icon-width);
|
|
141
|
-
`;
|
|
142
146
|
const ButtonComponent = (props) => {
|
|
143
|
-
const button = (react_1.default.createElement(StyledButton, Object.assign({}, props),
|
|
144
|
-
props.icon ? react_1.default.createElement(StyledIcon, null, props.icon) : null,
|
|
145
|
-
props.children));
|
|
146
147
|
if (props.to) {
|
|
147
|
-
return react_1.default.createElement(
|
|
148
|
+
return (react_1.default.createElement(Link_1.Link, { to: props.to },
|
|
149
|
+
react_1.default.createElement(StyledButton, Object.assign({}, props))));
|
|
148
150
|
}
|
|
149
151
|
else {
|
|
150
|
-
return
|
|
152
|
+
return react_1.default.createElement(StyledButton, Object.assign({}, props));
|
|
151
153
|
}
|
|
152
154
|
};
|
|
153
155
|
exports.Button = (0, styled_components_1.default)(ButtonComponent) ``;
|
|
@@ -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/Button/Button"), exports);
|
|
18
|
-
__exportStar(require("../../components/Button/styledVariables"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,121 +3,116 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.FilterControls = void 0;
|
|
7
6
|
const react_1 = __importDefault(require("react"));
|
|
8
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
8
|
const Highlight_1 = require("../../ui/Highlight");
|
|
9
|
+
const Button_1 = require("../../components/Button");
|
|
10
|
+
const Filter_1 = require("../../components/Filter");
|
|
10
11
|
const H2_1 = require("../../components/Typography/H2");
|
|
12
|
+
const H3_1 = require("../../components/Typography/H3");
|
|
11
13
|
const CatalogCard_1 = require("../../components/Catalog/CatalogCard");
|
|
12
14
|
const index_1 = require("../../mocks/hooks/index");
|
|
13
|
-
const FilterTags_1 = require("../../components/Filter/FilterTags");
|
|
14
|
-
const FilterContent_1 = require("../../components/Filter/FilterContent");
|
|
15
|
-
const FilterPopover_1 = require("../../components/Filter/FilterPopover");
|
|
16
|
-
const Button_1 = require("../../components/Button");
|
|
17
|
-
const PlusIcon_1 = require("../../icons/PlusIcon");
|
|
18
15
|
const useCatalog_1 = require("./useCatalog");
|
|
19
16
|
function Catalog(props) {
|
|
20
17
|
const { catalogConfig } = props.pageProps;
|
|
21
18
|
const items = (0, index_1.usePageSharedData)('catalog');
|
|
22
19
|
const { filterTerm, setFilterTerm, groups, filters } = (0, useCatalog_1.useCatalog)(items, catalogConfig);
|
|
23
|
-
const [
|
|
20
|
+
const [isFilterPanelFocused, setIsFilterPanelFocused] = react_1.default.useState(false);
|
|
21
|
+
const { translate } = (0, index_1.useTranslate)();
|
|
24
22
|
const translationKeys = {
|
|
25
|
-
|
|
23
|
+
placeholder: 'theme.catalog.filters.placeholder',
|
|
24
|
+
applyFilter: 'theme.catalog.filters.apply',
|
|
26
25
|
};
|
|
27
|
-
const { translate } = (0, index_1.useTranslate)();
|
|
28
26
|
return (react_1.default.createElement(Highlight_1.HighlightContext.Provider, { value: [filterTerm] },
|
|
29
27
|
react_1.default.createElement(CatalogPageWrapper, null,
|
|
30
|
-
react_1.default.createElement(
|
|
31
|
-
react_1.default.createElement(
|
|
32
|
-
react_1.default.createElement(
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
react_1.default.createElement(CatalogPageSidebar, { isActiveInMobileMode: isFilterPanelFocused },
|
|
29
|
+
react_1.default.createElement(StyledInput, { placeholder: translate(translationKeys.placeholder, 'Filter...'), value: filterTerm, onFocus: () => setIsFilterPanelFocused(true), onChange: (e) => setFilterTerm(e.target.value) }),
|
|
30
|
+
filters.map((filter, idx) => (react_1.default.createElement(Filter_1.Filter, { filter: filter, key: filter.property + '-' + idx }))),
|
|
31
|
+
react_1.default.createElement(MobileStickyApplyFilters, null,
|
|
32
|
+
react_1.default.createElement(Button_1.Button, { "data-translation-key": translationKeys.applyFilter, color: "secondary", onClick: () => setIsFilterPanelFocused(false) }, translate(translationKeys.applyFilter, 'Apply filters')))),
|
|
35
33
|
react_1.default.createElement(CatalogPageContent, null,
|
|
36
|
-
react_1.default.createElement(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
' ')) : null),
|
|
34
|
+
catalogConfig.title ? (react_1.default.createElement(CatalogTitle, null,
|
|
35
|
+
' ',
|
|
36
|
+
translate(catalogConfig.titleTranslationKey, catalogConfig.title),
|
|
37
|
+
' ')) : null,
|
|
38
|
+
catalogConfig.description ? (react_1.default.createElement(CatalogDescription, null,
|
|
39
|
+
' ',
|
|
40
|
+
translate(catalogConfig.descriptionTranslationKey, catalogConfig.description),
|
|
41
|
+
' ')) : null,
|
|
45
42
|
groups.map((group) => (react_1.default.createElement(react_1.default.Fragment, { key: group.title },
|
|
46
|
-
react_1.default.createElement(
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
react_1.default.createElement(H3_1.H3, null,
|
|
44
|
+
group.title,
|
|
45
|
+
" (",
|
|
46
|
+
group.items.length,
|
|
47
|
+
")"),
|
|
49
48
|
react_1.default.createElement(CatalogCards, null, group.items.map((item) => (react_1.default.createElement(CatalogCard_1.CatalogCard, { item: item, key: item.link })))))))))));
|
|
50
49
|
}
|
|
51
50
|
exports.default = Catalog;
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
color: var(--
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
const CatalogSeparatorCount = styled_components_1.default.div `
|
|
66
|
-
display: flex;
|
|
67
|
-
height: var(--catalog-separator-count-height);
|
|
68
|
-
padding: var(--catalog-separator-count-padding);
|
|
69
|
-
flex-direction: column;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
align-items: center;
|
|
72
|
-
border-radius: var(--catalog-separator-count-border-radius);
|
|
73
|
-
border: 1px solid var(--catalog-separator-count-border-color);
|
|
74
|
-
background: var(--catalog-separator-count-background);
|
|
51
|
+
const MobileStickyApplyFilters = styled_components_1.default.div `
|
|
52
|
+
position: fixed;
|
|
53
|
+
display: none;
|
|
54
|
+
background-color: var(--sidebar-background-color);
|
|
55
|
+
bottom: 0;
|
|
56
|
+
padding: 16px 30px;
|
|
57
|
+
left: 0px;
|
|
58
|
+
right: 0px;
|
|
59
|
+
|
|
60
|
+
${Button_1.Button} {
|
|
61
|
+
width: 100%;
|
|
62
|
+
margin: 0;
|
|
63
|
+
}
|
|
75
64
|
`;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
65
|
+
const CatalogPageSidebar = styled_components_1.default.aside `
|
|
66
|
+
width: var(--sidebar-width);
|
|
67
|
+
border-right: 1px solid var(--sidebar-border-color);
|
|
68
|
+
padding: 20px 30px;
|
|
69
|
+
position: sticky;
|
|
70
|
+
top: var(--navbar-height);
|
|
71
|
+
height: calc(100vh - var(--navbar-height));
|
|
72
|
+
overflow: auto;
|
|
73
|
+
|
|
74
|
+
@media screen and (max-width: 767px) {
|
|
75
|
+
transition: height 0.2s ease-in-out;
|
|
76
|
+
width: 100%;
|
|
77
|
+
${({ isActiveInMobileMode }) => isActiveInMobileMode ? 'padding-bottom: 66px;' : 'height: 76px;'};
|
|
78
|
+
background-color: var(--sidebar-background-color);
|
|
79
|
+
border-bottom: 1px solid var(--sidebar-border-color);
|
|
80
|
+
z-index: var(--z-index-surface);
|
|
81
|
+
|
|
82
|
+
${MobileStickyApplyFilters} {
|
|
83
|
+
display: ${({ isActiveInMobileMode }) => (isActiveInMobileMode ? 'block' : 'none')};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
81
86
|
`;
|
|
82
87
|
const CatalogPageContent = styled_components_1.default.main `
|
|
83
88
|
flex: 1;
|
|
84
|
-
padding:
|
|
85
|
-
|
|
86
|
-
${({ theme }) => theme.mediaQueries.small} {
|
|
87
|
-
padding: var(--catalog-page-padding);
|
|
88
|
-
}
|
|
89
|
+
padding: 32px;
|
|
89
90
|
`;
|
|
90
91
|
const CatalogCards = styled_components_1.default.div `
|
|
91
92
|
display: grid;
|
|
92
93
|
grid-template-columns: repeat(auto-fill, minmax(var(--api-catalog-card-min-width), 1fr));
|
|
93
94
|
gap: 32px;
|
|
94
|
-
margin: var(--catalog-cards-group-margin);
|
|
95
95
|
`;
|
|
96
96
|
const CatalogTitle = (0, styled_components_1.default)(H2_1.H2) `
|
|
97
|
-
color: var(--catalog-title-text-color);
|
|
98
|
-
font-weight: var(--catalog-title-font-weight);
|
|
99
|
-
font-size: var(--catalog-title-font-size);
|
|
100
|
-
|
|
101
97
|
&& {
|
|
102
98
|
margin: 0;
|
|
103
99
|
}
|
|
104
100
|
`;
|
|
105
101
|
const CatalogDescription = styled_components_1.default.p `
|
|
106
|
-
|
|
107
|
-
font-
|
|
108
|
-
|
|
109
|
-
margin: var(--catalog-description-margin-top) 0 var(--catalog-description-margin-bottom) 0;
|
|
102
|
+
margin: 16px 0 32px 0;
|
|
103
|
+
font-size: 16px;
|
|
104
|
+
color: var(--text-color-secondary);
|
|
110
105
|
`;
|
|
111
106
|
const CatalogPageWrapper = styled_components_1.default.div `
|
|
112
107
|
--sidebar-width: var(--catalog-sidebar-width, 300px);
|
|
113
108
|
|
|
114
109
|
display: flex;
|
|
115
|
-
flex-direction:
|
|
110
|
+
flex-direction: row;
|
|
116
111
|
|
|
117
112
|
font-weight: var(--font-weight-regular);
|
|
118
113
|
padding: 0;
|
|
119
114
|
|
|
120
|
-
color: var(--text-
|
|
115
|
+
color: var(--text-color);
|
|
121
116
|
font-size: var(--font-size-base);
|
|
122
117
|
font-family: var(--font-family-base);
|
|
123
118
|
line-height: var(--line-height-base);
|
|
@@ -126,7 +121,7 @@ const CatalogPageWrapper = styled_components_1.default.div `
|
|
|
126
121
|
border: 0;
|
|
127
122
|
width: calc(100% + 48px);
|
|
128
123
|
margin: auto -24px 0 -24px;
|
|
129
|
-
border-top: 1px solid var(--border-
|
|
124
|
+
border-top: 1px solid var(--border-color);
|
|
130
125
|
}
|
|
131
126
|
a:not([role='button']) {
|
|
132
127
|
text-decoration: none;
|
|
@@ -134,42 +129,44 @@ const CatalogPageWrapper = styled_components_1.default.div `
|
|
|
134
129
|
font-weight: var(--link-font-weight);
|
|
135
130
|
}
|
|
136
131
|
|
|
137
|
-
|
|
138
|
-
flex-direction:
|
|
132
|
+
@media screen and (max-width: 767px) {
|
|
133
|
+
flex-direction: column;
|
|
139
134
|
}
|
|
140
135
|
`;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
136
|
+
// TODO: merge this input with the input from reference docs
|
|
137
|
+
// the on in ref docs is dark, needs separate variables most likely
|
|
138
|
+
const StyledInput = styled_components_1.default.input `
|
|
139
|
+
border: 1px solid rgba(0, 0, 0, 0.23);
|
|
140
|
+
min-width: 200px;
|
|
141
|
+
outline-color: var(--color-primary-500);
|
|
142
|
+
width: 100%;
|
|
145
143
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
outline: none;
|
|
145
|
+
padding: var(--input-padding);
|
|
146
|
+
border-radius: var(--input-border-radius);
|
|
147
|
+
background-color: var(--input-background-color);
|
|
148
|
+
color: var(--text-color);
|
|
149
|
+
font-family: var(--input-font-family);
|
|
150
|
+
font-size: var(--input-font-size);
|
|
151
|
+
line-height: var(--input-line-height);
|
|
149
152
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
font-weight: var(--filter-add-button-font-weight);
|
|
155
|
-
color: var(--text-secondary);
|
|
156
|
-
display: flex;
|
|
157
|
-
white-space: nowrap;
|
|
153
|
+
&::placeholder {
|
|
154
|
+
opacity: 0.6;
|
|
155
|
+
color: var(--text-color);
|
|
156
|
+
}
|
|
158
157
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
&:hover {
|
|
159
|
+
color: var(--text-color);
|
|
160
|
+
border: 1px solid rgba(0, 0, 0, 0.23);
|
|
161
|
+
}
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
&:focus {
|
|
164
|
+
color: var(--text-color);
|
|
165
|
+
border: 1px solid rgba(0, 0, 0, 0.23);
|
|
166
166
|
}
|
|
167
|
-
`;
|
|
168
|
-
const CatalogPageDescriptionWrapper = styled_components_1.default.div `
|
|
169
|
-
display: none;
|
|
170
167
|
|
|
171
|
-
|
|
172
|
-
|
|
168
|
+
&:-webkit-autofill {
|
|
169
|
+
background-color: var(--input-background-color);
|
|
173
170
|
}
|
|
174
171
|
`;
|
|
175
172
|
//# sourceMappingURL=Catalog.js.map
|