@redocly/theme 0.18.3 → 0.18.4-patch.1
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/components/Breadcrumbs/Breadcrumb.js +2 -5
- package/lib/components/Breadcrumbs/Breadcrumbs.js +6 -2
- package/lib/components/Breadcrumbs/index.d.ts +1 -0
- package/lib/components/Breadcrumbs/index.js +1 -0
- package/lib/components/Breadcrumbs/styledVariables.d.ts +1 -0
- package/lib/components/Breadcrumbs/styledVariables.js +20 -0
- package/lib/components/Button/Button.d.ts +6 -3
- package/lib/components/Button/Button.js +41 -41
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Button/styledVariables.d.ts +1 -0
- package/lib/components/Button/styledVariables.js +107 -0
- package/lib/components/Catalog/Catalog.d.ts +6 -0
- package/lib/components/Catalog/Catalog.js +112 -102
- package/lib/components/Catalog/CatalogCard.js +91 -58
- package/lib/components/Catalog/index.d.ts +4 -3
- package/lib/components/Catalog/index.js +4 -3
- package/lib/components/Catalog/styledVariables.d.ts +1 -0
- package/lib/components/Catalog/styledVariables.js +95 -0
- package/lib/components/CodeBlock/CodeBlockContainer.js +38 -10
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +3 -4
- package/lib/components/CodeBlock/CodeBlockControlButton.js +5 -19
- package/lib/components/CodeBlock/CodeBlockControls.js +8 -5
- package/lib/components/CodeBlock/index.d.ts +1 -0
- package/lib/components/CodeBlock/index.js +1 -0
- package/lib/components/CodeBlock/styledVariables.d.ts +1 -0
- package/lib/components/CodeBlock/styledVariables.js +92 -0
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +0 -1
- package/lib/components/Dropdown/Dropdown.d.ts +9 -3
- package/lib/components/Dropdown/Dropdown.js +7 -4
- package/lib/components/Dropdown/index.d.ts +1 -0
- package/lib/components/Dropdown/index.js +1 -0
- package/lib/components/Dropdown/styledVariables.d.ts +1 -0
- package/lib/components/Dropdown/styledVariables.js +30 -0
- package/lib/components/EditPageButton/EditPageButton.d.ts +1 -3
- package/lib/components/EditPageButton/EditPageButton.js +17 -8
- package/lib/components/Feedback/Comment.js +5 -0
- package/lib/components/Feedback/Rating.js +5 -1
- package/lib/components/Feedback/Reasons.js +6 -1
- package/lib/components/Feedback/Sentiment.js +5 -0
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.d.ts +3 -1
- package/lib/components/Filter/Filter.js +113 -80
- package/lib/components/Filter/FilterContent.d.ts +13 -0
- package/lib/components/Filter/FilterContent.js +60 -0
- package/lib/components/Filter/FilterPopover.d.ts +13 -0
- package/lib/components/Filter/FilterPopover.js +109 -0
- package/lib/components/Filter/FilterTag.d.ts +7 -0
- package/lib/components/Filter/FilterTag.js +33 -0
- package/lib/components/Filter/FilterTags.d.ts +7 -0
- package/lib/components/Filter/FilterTags.js +29 -0
- package/lib/components/Filter/index.d.ts +2 -0
- package/lib/components/Filter/index.js +2 -0
- package/lib/components/Filter/styledVariables.d.ts +1 -0
- package/lib/components/Filter/styledVariables.js +112 -0
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +4 -3
- package/lib/components/Footer/Footer.js +28 -10
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +57 -63
- package/lib/components/Footer/FooterColumns.js +6 -4
- package/lib/components/Footer/FooterCopyright.js +11 -6
- package/lib/components/Footer/index.d.ts +1 -0
- package/lib/components/Footer/index.js +1 -0
- package/lib/components/Footer/styledVariables.d.ts +1 -0
- package/lib/components/Footer/styledVariables.js +61 -0
- package/lib/components/Image/Image.d.ts +9 -0
- package/lib/components/Image/Image.js +31 -0
- package/lib/components/Image/index.d.ts +1 -0
- package/lib/components/{Tags → Image}/index.js +1 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/LastUpdated/LastUpdated.js +1 -0
- package/lib/components/LastUpdated/index.d.ts +1 -0
- package/lib/components/{OperationBadge → LastUpdated}/index.js +1 -1
- package/lib/components/LastUpdated/styledVariables.d.ts +1 -0
- package/lib/components/LastUpdated/styledVariables.js +11 -0
- package/lib/components/Markdown/Admonition.js +12 -9
- package/lib/components/Markdown/MarkdownLayout.d.ts +0 -2
- package/lib/components/Markdown/MarkdownLayout.js +1 -6
- package/lib/components/Markdown/MarkdownWrapper.js +2 -4
- package/lib/components/Markdown/Mermaid.js +4 -1
- package/lib/components/Markdown/index.d.ts +1 -0
- package/lib/components/Markdown/index.js +1 -0
- package/lib/components/Markdown/styledVariables.d.ts +3 -0
- package/lib/components/Markdown/styledVariables.js +231 -0
- package/lib/components/Menu/Menu.js +5 -7
- package/lib/components/Menu/MenuGroup.js +12 -7
- package/lib/components/Menu/MenuItem.js +1 -1
- package/lib/components/Menu/MenuItemLabel.js +9 -13
- package/lib/components/Menu/MobileMenu.js +20 -25
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/index.d.ts +1 -0
- package/lib/components/Menu/index.js +1 -0
- package/lib/components/Menu/styledVariables.d.ts +2 -0
- package/lib/components/Menu/styledVariables.js +101 -0
- package/lib/components/Navbar/Navbar.js +20 -13
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +18 -6
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +1 -0
- package/lib/components/Navbar/index.js +1 -0
- package/lib/components/Navbar/styledVariables.d.ts +1 -0
- package/lib/components/Navbar/styledVariables.js +42 -0
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +4 -1
- package/lib/components/NavbarLogo/NavbarLogo.js +13 -5
- package/lib/components/NavbarLogo/index.d.ts +1 -0
- package/lib/components/NavbarLogo/index.js +1 -0
- package/lib/components/NavbarLogo/styledVariables.d.ts +1 -0
- package/lib/components/NavbarLogo/styledVariables.js +18 -0
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/PageNavigation/NextButton.js +1 -1
- package/lib/components/PageNavigation/PreviousButton.js +1 -1
- package/lib/components/Panel/PanelHeader.js +2 -0
- package/lib/components/Panel/PanelHeaderTitle.js +0 -4
- package/lib/components/Panel/index.d.ts +1 -0
- package/lib/components/Panel/index.js +1 -0
- package/lib/components/Panel/styledVariables.d.ts +2 -0
- package/lib/components/Panel/styledVariables.js +481 -0
- package/lib/components/Product/ProductPicker.js +22 -9
- package/lib/components/Product/index.d.ts +1 -0
- package/lib/components/Product/index.js +1 -0
- package/lib/components/Product/styledVariables.d.ts +2 -0
- package/lib/components/Product/styledVariables.js +42 -0
- package/lib/components/Profile/LoginLink.js +1 -2
- package/lib/components/{Navbar → Profile}/MobileUserProfile.js +12 -24
- package/lib/components/Profile/Profile.js +3 -22
- package/lib/components/Profile/UserProfile.js +21 -9
- package/lib/components/Profile/UserProfileData.d.ts +9 -0
- package/lib/components/Profile/UserProfileData.js +35 -0
- package/lib/components/Profile/index.d.ts +1 -0
- package/lib/components/Profile/index.js +15 -0
- package/lib/components/Profile/styledVariables.d.ts +2 -0
- package/lib/components/Profile/styledVariables.js +55 -0
- package/lib/components/Search/CancelSearch.js +2 -14
- package/lib/components/Search/ProductTag.js +8 -8
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +0 -2
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +4 -4
- package/lib/components/Search/SearchTrigger.js +4 -5
- package/lib/components/Search/ShortcutKey.js +1 -5
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +1 -0
- package/lib/components/Search/index.js +1 -0
- package/lib/components/Search/styledVariables.d.ts +1 -0
- package/lib/components/Search/styledVariables.js +98 -0
- package/lib/components/Select/Select.d.ts +21 -9
- package/lib/components/Select/Select.js +27 -17
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Select/index.js +1 -0
- package/lib/components/Select/styledVariables.d.ts +1 -0
- package/lib/components/Select/styledVariables.js +34 -0
- package/lib/components/Separator/Separator.js +11 -3
- package/lib/components/Separator/SeparatorItem.js +6 -9
- package/lib/components/Separator/SeparatorLine.js +7 -3
- package/lib/components/Sidebar/ApiCallItem.d.ts +2 -6
- package/lib/components/Sidebar/ApiCallItem.js +17 -13
- package/lib/components/Sidebar/FooterWrapper.js +3 -4
- package/lib/components/Sidebar/HeaderWrapper.js +3 -3
- package/lib/components/Sidebar/VersionPicker.d.ts +3 -3
- package/lib/components/Sidebar/VersionPicker.js +6 -4
- package/lib/components/Sidebar/index.d.ts +1 -0
- package/lib/components/Sidebar/index.js +1 -0
- package/lib/components/Sidebar/styledVariables.d.ts +2 -0
- package/lib/components/Sidebar/styledVariables.js +216 -0
- package/lib/components/Sidebar/types.d.ts +1 -0
- package/lib/components/SidebarActions/CollapseSidebarButton.js +41 -1
- package/lib/components/SidebarActions/styled.js +29 -21
- package/lib/components/TableOfContent/TableOfContent.js +3 -2
- package/lib/components/TableOfContent/index.d.ts +1 -0
- package/lib/components/TableOfContent/index.js +1 -0
- package/lib/components/TableOfContent/styledVariables.d.ts +1 -0
- package/lib/components/TableOfContent/styledVariables.js +47 -0
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tag/Tag.d.ts +18 -0
- package/lib/components/Tag/Tag.js +45 -0
- package/lib/components/Tag/index.d.ts +2 -0
- package/lib/components/Tag/index.js +19 -0
- package/lib/components/Tag/styledVariables.d.ts +1 -0
- package/lib/components/Tag/styledVariables.js +140 -0
- package/lib/components/Tiles/ThinTile.js +7 -5
- package/lib/components/Tiles/TileHeader.js +1 -1
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tiles/WideTile.js +10 -8
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/index.js +1 -0
- package/lib/components/Tooltip/styledVariables.d.ts +1 -0
- package/lib/components/Tooltip/styledVariables.js +21 -0
- package/lib/components/Typography/SectionHeader.js +2 -2
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +1 -2
- package/lib/config.d.ts +155 -154
- package/lib/config.js +39 -28
- package/lib/globalStyle.js +602 -1983
- package/lib/hooks/useMobileMenu.js +5 -6
- package/lib/hooks/useModalScrollLock.d.ts +1 -0
- package/lib/hooks/useModalScrollLock.js +16 -0
- package/lib/i18n/LanguagePicker.d.ts +9 -0
- package/lib/{I18n → i18n}/LanguagePicker.js +27 -12
- package/lib/i18n/index.d.ts +2 -0
- package/lib/i18n/index.js +21 -0
- package/lib/i18n/styledVariables.d.ts +1 -0
- package/lib/i18n/styledVariables.js +40 -0
- package/lib/icons/AlertIcon/AlertIcon.js +0 -5
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +6 -0
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +28 -0
- package/lib/icons/CheckboxIcon/index.d.ts +1 -0
- package/lib/icons/CheckboxIcon/index.js +6 -0
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +1 -2
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/EditIcon/EditIcon.d.ts +6 -0
- package/lib/icons/EditIcon/EditIcon.js +18 -0
- package/lib/icons/EditIcon/index.d.ts +1 -0
- package/lib/icons/EditIcon/index.js +18 -0
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +4 -0
- package/lib/icons/ErrorIcon/ErrorIcon.js +14 -0
- package/lib/icons/ErrorIcon/index.d.ts +1 -0
- package/lib/icons/ErrorIcon/index.js +18 -0
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/ExternalIcon/ExternalIcon.js +3 -3
- package/lib/icons/FileIcon/FileIcon.d.ts +1 -2
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +4 -0
- package/lib/icons/LanguageIcon/LanguageIcon.js +14 -0
- package/lib/icons/LanguageIcon/index.d.ts +1 -0
- package/lib/icons/LanguageIcon/index.js +18 -0
- package/lib/icons/PlusIcon/PlusIcon.d.ts +5 -0
- package/lib/icons/PlusIcon/PlusIcon.js +16 -0
- package/lib/icons/PlusIcon/index.d.ts +1 -0
- package/lib/icons/PlusIcon/index.js +18 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +4 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +15 -0
- package/lib/icons/PointingArrowIcon/index.d.ts +1 -0
- package/lib/icons/PointingArrowIcon/index.js +18 -0
- package/lib/icons/ReportIcon/ReportIcon.d.ts +1 -2
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/RocketIcon/RocketIcon.d.ts +7 -0
- package/lib/icons/RocketIcon/RocketIcon.js +15 -0
- package/lib/icons/RocketIcon/index.d.ts +1 -0
- package/lib/icons/RocketIcon/index.js +18 -0
- package/lib/icons/SelectIcon/SelectIcon.d.ts +1 -2
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +6 -0
- package/lib/icons/index.js +6 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/Forbidden.js +4 -0
- package/lib/layouts/NotFound.js +4 -0
- package/lib/mocks/hooks/index.js +0 -1
- package/lib/types/portal/src/shared/types/catalog.d.ts +5 -1
- package/lib/types/portal/src/shared/types/nav.d.ts +5 -0
- package/lib/ui/ArrowBack.js +0 -1
- 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 +217 -84
- package/lib/utils/css-variables.js +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/tags-parser.d.ts +1 -0
- package/lib/utils/tags-parser.js +10 -0
- package/package.json +1 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -5
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +6 -2
- package/src/components/Breadcrumbs/index.ts +1 -0
- package/src/components/Breadcrumbs/styledVariables.ts +17 -0
- package/src/components/Button/Button.tsx +53 -47
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/styledVariables.ts +104 -0
- package/src/components/Catalog/Catalog.tsx +140 -120
- package/src/components/Catalog/CatalogCard.tsx +108 -58
- package/src/components/Catalog/index.ts +4 -0
- package/src/components/Catalog/styledVariables.ts +92 -0
- package/src/components/CodeBlock/CodeBlockContainer.tsx +17 -9
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +6 -19
- package/src/components/CodeBlock/CodeBlockControls.tsx +8 -5
- package/src/components/CodeBlock/index.ts +1 -0
- package/src/components/CodeBlock/styledVariables.ts +89 -0
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +0 -1
- package/src/components/Dropdown/Dropdown.tsx +14 -5
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/Dropdown/styledVariables.ts +27 -0
- package/src/components/EditPageButton/EditPageButton.tsx +24 -10
- package/src/components/Feedback/Comment.tsx +5 -0
- package/src/components/Feedback/Rating.tsx +5 -1
- package/src/components/Feedback/Reasons.tsx +6 -1
- package/src/components/Feedback/Sentiment.tsx +5 -0
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +150 -94
- package/src/components/Filter/FilterContent.tsx +95 -0
- package/src/components/Filter/FilterPopover.tsx +150 -0
- package/src/components/Filter/FilterTag.tsx +37 -0
- package/src/components/Filter/FilterTags.tsx +39 -0
- package/src/components/Filter/index.ts +2 -0
- package/src/components/Filter/styledVariables.ts +109 -0
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +32 -10
- package/src/components/Footer/FooterColumn.tsx +84 -63
- package/src/components/Footer/FooterColumns.tsx +6 -4
- package/src/components/Footer/FooterCopyright.tsx +13 -7
- package/src/components/Footer/index.ts +1 -0
- package/src/components/Footer/styledVariables.ts +58 -0
- package/src/components/Image/Image.tsx +47 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LastUpdated/LastUpdated.tsx +1 -2
- package/src/components/LastUpdated/index.ts +1 -0
- package/src/components/LastUpdated/styledVariables.ts +8 -0
- package/src/components/Markdown/Admonition.tsx +13 -8
- package/src/components/Markdown/MarkdownLayout.tsx +2 -15
- package/src/components/Markdown/MarkdownWrapper.tsx +2 -4
- package/src/components/Markdown/Mermaid.tsx +4 -1
- package/src/components/Markdown/index.ts +1 -0
- package/src/components/Markdown/styledVariables.ts +230 -0
- package/src/components/Menu/Menu.tsx +5 -7
- package/src/components/Menu/MenuGroup.tsx +15 -7
- package/src/components/Menu/MenuItem.tsx +1 -1
- package/src/components/Menu/MenuItemLabel.tsx +9 -13
- package/src/components/Menu/MobileMenu.tsx +20 -25
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +1 -0
- package/src/components/Menu/styledVariables.ts +99 -0
- package/src/components/Navbar/Navbar.tsx +20 -13
- package/src/components/Navbar/NavbarItem.tsx +18 -4
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +1 -0
- package/src/components/Navbar/styledVariables.ts +39 -0
- package/src/components/NavbarLogo/NavbarLogo.tsx +24 -11
- package/src/components/NavbarLogo/index.ts +1 -0
- package/src/components/NavbarLogo/styledVariables.ts +15 -0
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +1 -2
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/PageNavigation/NextButton.tsx +0 -1
- package/src/components/PageNavigation/PreviousButton.tsx +0 -1
- package/src/components/Panel/PanelHeader.ts +2 -0
- package/src/components/Panel/PanelHeaderTitle.ts +0 -4
- package/src/components/Panel/index.ts +1 -0
- package/src/components/Panel/styledVariables.ts +479 -0
- package/src/components/Product/ProductPicker.tsx +23 -17
- package/src/components/Product/index.ts +1 -0
- package/src/components/Product/styledVariables.ts +40 -0
- package/src/components/Profile/LoginLink.tsx +1 -2
- package/src/components/{Navbar → Profile}/MobileUserProfile.tsx +12 -29
- package/src/components/Profile/Profile.tsx +1 -24
- package/src/components/Profile/UserProfile.tsx +20 -8
- package/src/components/Profile/UserProfileData.tsx +40 -0
- package/src/components/Profile/index.ts +1 -0
- package/src/components/Profile/styledVariables.ts +53 -0
- package/src/components/Search/CancelSearch.tsx +2 -15
- package/src/components/Search/ProductTag.tsx +8 -8
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +0 -2
- package/src/components/Search/SearchIcon.tsx +10 -5
- package/src/components/Search/SearchItem.tsx +4 -4
- package/src/components/Search/SearchTrigger.tsx +4 -5
- package/src/components/Search/ShortcutKey.tsx +1 -5
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +1 -0
- package/src/components/Search/styledVariables.ts +95 -0
- package/src/components/Select/Select.tsx +65 -31
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/styledVariables.ts +31 -0
- package/src/components/Separator/Separator.tsx +17 -3
- package/src/components/Separator/SeparatorItem.tsx +6 -9
- package/src/components/Separator/SeparatorLine.tsx +7 -3
- package/src/components/Sidebar/ApiCallItem.tsx +17 -13
- package/src/components/Sidebar/FooterWrapper.tsx +3 -4
- package/src/components/Sidebar/HeaderWrapper.tsx +3 -3
- package/src/components/Sidebar/VersionPicker.tsx +6 -4
- package/src/components/Sidebar/index.ts +1 -0
- package/src/components/Sidebar/styledVariables.ts +214 -0
- package/src/components/Sidebar/types.ts +1 -0
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +22 -2
- package/src/components/SidebarActions/styled.tsx +29 -30
- package/src/components/TableOfContent/TableOfContent.tsx +3 -2
- package/src/components/TableOfContent/index.ts +1 -0
- package/src/components/TableOfContent/styledVariables.ts +44 -0
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tag/Tag.tsx +71 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/Tag/styledVariables.ts +137 -0
- package/src/components/Tiles/ThinTile.tsx +7 -5
- package/src/components/Tiles/TileHeader.ts +1 -1
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tiles/WideTile.tsx +10 -8
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/styledVariables.ts +18 -0
- package/src/components/Typography/SectionHeader.ts +2 -2
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +1 -2
- package/src/config.ts +44 -29
- package/src/globalStyle.ts +597 -1999
- package/src/hooks/useMobileMenu.ts +3 -4
- package/src/hooks/useModalScrollLock.ts +12 -0
- package/src/{I18n → i18n}/LanguagePicker.tsx +48 -21
- package/src/i18n/index.ts +2 -0
- package/src/i18n/styledVariables.ts +37 -0
- package/src/icons/AlertIcon/AlertIcon.tsx +0 -5
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +64 -0
- package/src/icons/CheckboxIcon/index.ts +1 -0
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +4 -5
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/EditIcon/EditIcon.tsx +30 -0
- package/src/icons/EditIcon/index.ts +1 -0
- package/src/icons/ErrorIcon/ErrorIcon.tsx +15 -0
- package/src/icons/ErrorIcon/index.ts +1 -0
- package/src/icons/ExpandIcon/ExpandIcon.tsx +5 -6
- package/src/icons/ExternalIcon/ExternalIcon.tsx +4 -4
- package/src/icons/FileIcon/FileIcon.tsx +2 -3
- package/src/icons/LanguageIcon/LanguageIcon.tsx +15 -0
- package/src/icons/LanguageIcon/index.ts +1 -0
- package/src/icons/PlusIcon/PlusIcon.tsx +25 -0
- package/src/icons/PlusIcon/index.ts +1 -0
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +16 -0
- package/src/icons/PointingArrowIcon/index.ts +1 -0
- package/src/icons/ReportIcon/ReportIcon.tsx +3 -4
- package/src/icons/RocketIcon/RocketIcon.tsx +32 -0
- package/src/icons/RocketIcon/index.tsx +1 -0
- package/src/icons/SelectIcon/SelectIcon.tsx +5 -6
- package/src/icons/index.ts +6 -0
- package/src/index.ts +1 -1
- package/src/layouts/Forbidden.tsx +4 -0
- package/src/layouts/NotFound.tsx +4 -0
- package/src/mocks/hooks/index.ts +0 -1
- package/src/types/portal/src/shared/types/catalog.ts +7 -1
- package/src/types/portal/src/shared/types/nav.ts +5 -0
- package/src/ui/ArrowBack.tsx +0 -1
- 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 +217 -84
- package/src/utils/css-variables.ts +4 -2
- package/src/utils/index.ts +1 -0
- package/src/utils/tags-parser.ts +8 -0
- package/lib/I18n/LanguagePicker.d.ts +0 -4
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -6
- package/lib/components/OperationBadge/OperationBadge.d.ts +0 -6
- package/lib/components/OperationBadge/OperationBadge.js +0 -68
- package/lib/components/OperationBadge/index.d.ts +0 -1
- package/lib/components/Tags/Tags.d.ts +0 -5
- package/lib/components/Tags/Tags.js +0 -32
- package/lib/components/Tags/index.d.ts +0 -1
- package/src/I18n/index.ts +0 -1
- package/src/components/Catalog/index.tsx +0 -3
- package/src/components/OperationBadge/OperationBadge.ts +0 -62
- package/src/components/OperationBadge/index.ts +0 -1
- package/src/components/Tags/Tags.tsx +0 -36
- package/src/components/Tags/index.ts +0 -1
- /package/lib/components/{Navbar → Profile}/MobileUserProfile.d.ts +0 -0
|
@@ -8,9 +8,9 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const useProfileProps_1 = require("../../mocks/Profile/useProfileProps");
|
|
10
10
|
const LogoutIcon_1 = require("../../icons/LogoutIcon");
|
|
11
|
-
const Profile_1 = require("../../components/Profile/Profile");
|
|
12
11
|
const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
13
12
|
const hooks_1 = require("../../mocks/hooks");
|
|
13
|
+
const UserProfileData_1 = require("../../components/Profile/UserProfileData");
|
|
14
14
|
const telemetry_1 = require("../../mocks/telemetry");
|
|
15
15
|
function MobileUserProfile() {
|
|
16
16
|
const { userProfile } = (0, useThemeConfig_1.useThemeConfig)();
|
|
@@ -22,10 +22,7 @@ function MobileUserProfile() {
|
|
|
22
22
|
if (!(userData === null || userData === void 0 ? void 0 : userData.isAuthenticated) && !loginUrl)
|
|
23
23
|
return null;
|
|
24
24
|
return (react_1.default.createElement(MobileProfileWrapper, { "data-component-name": "Navbar/MobileUserProfile" }, !(userData === null || userData === void 0 ? void 0 : userData.isAuthenticated) ? (react_1.default.createElement(LoginButton, { href: loginUrl, "data-cy": "login-btn", onClick: () => telemetry_1.telemetry.send('login_button_clicked', {}) }, translate(translationKeys.login, (userProfile === null || userProfile === void 0 ? void 0 : userProfile.loginLabel) || 'Login'))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
25
|
-
react_1.default.createElement(
|
|
26
|
-
react_1.default.createElement(ProfilePicture, null,
|
|
27
|
-
react_1.default.createElement(Profile_1.Profile, { name: userData.name, imageUrl: userData.picture })),
|
|
28
|
-
react_1.default.createElement(UserName, null, userData.name)),
|
|
25
|
+
react_1.default.createElement(UserProfileData_1.UserProfileData, { userData: userData }),
|
|
29
26
|
react_1.default.createElement(LogoutButton, { onClick: () => {
|
|
30
27
|
handleLogout();
|
|
31
28
|
telemetry_1.telemetry.send('logout_menu_item_clicked', {});
|
|
@@ -35,16 +32,23 @@ function MobileUserProfile() {
|
|
|
35
32
|
exports.MobileUserProfile = MobileUserProfile;
|
|
36
33
|
const LoginButton = styled_components_1.default.a `
|
|
37
34
|
background: var(--mobile-menu-login-button-background);
|
|
38
|
-
border-radius:
|
|
35
|
+
border-radius: var(--mobile-menu-login-button-border-radius);
|
|
39
36
|
width: 100%;
|
|
40
37
|
margin: 0;
|
|
41
38
|
padding: 5px 0;
|
|
42
39
|
color: var(--mobile-menu-login-button-color);
|
|
43
|
-
|
|
40
|
+
border: 1px solid var(--mobile-menu-login-button-border-color);
|
|
41
|
+
font-size: var(--mobile-menu-login-button-font-size);
|
|
42
|
+
font-family: var(--mobile-menu-login-button-font-family);
|
|
43
|
+
font-weight: var(--mobile-menu-login-button-font-weight);
|
|
44
44
|
text-align: center;
|
|
45
|
-
line-height:
|
|
45
|
+
line-height: var(--mobile-menu-login-button-line-height);
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
text-decoration: none;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
color: var(--mobile-menu-login-button-hover-color);
|
|
51
|
+
}
|
|
48
52
|
`;
|
|
49
53
|
const MobileProfileWrapper = styled_components_1.default.div `
|
|
50
54
|
display: flex;
|
|
@@ -56,22 +60,6 @@ const MobileProfileWrapper = styled_components_1.default.div `
|
|
|
56
60
|
border-top: 1px solid var(--mobile-menu-profile-border-color);
|
|
57
61
|
background: var(--mobile-menu-profile-background);
|
|
58
62
|
`;
|
|
59
|
-
const UserDataWrapper = styled_components_1.default.div `
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
`;
|
|
63
|
-
const ProfilePicture = styled_components_1.default.div `
|
|
64
|
-
margin-right: 16px;
|
|
65
|
-
|
|
66
|
-
${Profile_1.AvatarWrapper} {
|
|
67
|
-
margin: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
${Profile_1.ProfileWrapper} {
|
|
71
|
-
padding: 0;
|
|
72
|
-
}
|
|
73
|
-
`;
|
|
74
|
-
const UserName = styled_components_1.default.div ``;
|
|
75
63
|
const LogoutButton = styled_components_1.default.div `
|
|
76
64
|
cursor: pointer;
|
|
77
65
|
user-select: none;
|
|
@@ -27,17 +27,14 @@ exports.AvatarWrapper = exports.ProfileWrapper = exports.Profile = void 0;
|
|
|
27
27
|
const react_1 = __importStar(require("react"));
|
|
28
28
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
29
29
|
const utils_1 = require("../../utils");
|
|
30
|
-
function ProfileComponent({ name = 'User', imageUrl, onClick
|
|
30
|
+
function ProfileComponent({ name = 'User', imageUrl, onClick }) {
|
|
31
31
|
var _a;
|
|
32
32
|
if (imageUrl) {
|
|
33
|
-
return (react_1.default.createElement(exports.ProfileWrapper, { onClick: onClick, role: "link" },
|
|
34
|
-
react_1.default.createElement(
|
|
35
|
-
imageUrl && (react_1.default.createElement(exports.AvatarWrapper, null,
|
|
36
|
-
react_1.default.createElement("img", { "data-cy": "user-avatar", src: imageUrl, alt: "profile" })))));
|
|
33
|
+
return (react_1.default.createElement(exports.ProfileWrapper, { onClick: onClick, role: "link" }, imageUrl && (react_1.default.createElement(exports.AvatarWrapper, null,
|
|
34
|
+
react_1.default.createElement("img", { "data-cy": "user-avatar", src: imageUrl, alt: "profile" })))));
|
|
37
35
|
}
|
|
38
36
|
const avatarLetters = `${name.charAt(0).toUpperCase()}${((_a = name.split(' ')[1]) === null || _a === void 0 ? void 0 : _a.charAt(0).toUpperCase()) || ''}`;
|
|
39
37
|
return (react_1.default.createElement(exports.ProfileWrapper, { onClick: onClick, role: "link" },
|
|
40
|
-
react_1.default.createElement(StyledUserName, { "data-cy": "user-name", color: color }, name),
|
|
41
38
|
react_1.default.createElement(exports.AvatarWrapper, { background: (0, utils_1.stringToHslColor)(name) },
|
|
42
39
|
react_1.default.createElement("span", null, avatarLetters))));
|
|
43
40
|
}
|
|
@@ -49,21 +46,6 @@ exports.ProfileWrapper = styled_components_1.default.div.attrs(() => ({
|
|
|
49
46
|
align-items: center;
|
|
50
47
|
cursor: pointer;
|
|
51
48
|
width: auto;
|
|
52
|
-
padding: 0 var(--navbar-item-padding-horizontal);
|
|
53
|
-
`;
|
|
54
|
-
const StyledUserName = styled_components_1.default.span `
|
|
55
|
-
font-family: var(--profile-name-font-family);
|
|
56
|
-
font-size: var(--profile-name-font-size);
|
|
57
|
-
font-weight: var(--profile-name-font-weight);
|
|
58
|
-
color: var(--profile-name-text-color);
|
|
59
|
-
padding: var(--profile-name-padding-vertical) var(--profile-name-padding-horizontal);
|
|
60
|
-
margin: 0 var(--profile-name-margin-horizontal);
|
|
61
|
-
|
|
62
|
-
display: none;
|
|
63
|
-
|
|
64
|
-
${({ theme }) => { var _a; return (_a = theme.mediaQueries) === null || _a === void 0 ? void 0 : _a.medium; }} {
|
|
65
|
-
display: block;
|
|
66
|
-
}
|
|
67
49
|
`;
|
|
68
50
|
exports.AvatarWrapper = styled_components_1.default.div `
|
|
69
51
|
width: var(--profile-avatar-width);
|
|
@@ -82,7 +64,6 @@ exports.AvatarWrapper = styled_components_1.default.div `
|
|
|
82
64
|
font-weight: var(--profile-avatar-font-weight);
|
|
83
65
|
|
|
84
66
|
border-radius: var(--profile-avatar-border-radius);
|
|
85
|
-
margin-left: var(--profile-avatar-margin-left);
|
|
86
67
|
|
|
87
68
|
${({ background }) => (0, styled_components_1.css) `
|
|
88
69
|
background-color: ${background};
|
|
@@ -35,6 +35,8 @@ const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
|
35
35
|
const hooks_1 = require("../../mocks/hooks");
|
|
36
36
|
const telemetry_1 = require("../../mocks/telemetry");
|
|
37
37
|
const Dropdown_1 = require("../../components/Dropdown");
|
|
38
|
+
const UserProfileData_1 = require("../../components/Profile/UserProfileData");
|
|
39
|
+
const icons_1 = require("../../icons");
|
|
38
40
|
function UserProfile({ userData, handleLogout, hasDeveloperOnboarding = false, }) {
|
|
39
41
|
const { userProfile } = (0, useThemeConfig_1.useThemeConfig)();
|
|
40
42
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
@@ -43,7 +45,7 @@ function UserProfile({ userData, handleLogout, hasDeveloperOnboarding = false, }
|
|
|
43
45
|
logout: 'theme.profile.logout',
|
|
44
46
|
};
|
|
45
47
|
const [isOpened, setIsOpened] = (0, react_1.useState)(false);
|
|
46
|
-
const menuItems = [];
|
|
48
|
+
const menuItems = [react_1.default.createElement(UserProfileData_1.UserProfileData, { key: userData.name, userData: userData })];
|
|
47
49
|
if (hasDeveloperOnboarding) {
|
|
48
50
|
menuItems.push(react_1.default.createElement(Link_1.Link, { to: "/apps", "data-translation-key": translationKeys.myApps }, translate(translationKeys.myApps, 'My Apps')));
|
|
49
51
|
}
|
|
@@ -55,8 +57,10 @@ function UserProfile({ userData, handleLogout, hasDeveloperOnboarding = false, }
|
|
|
55
57
|
menuItems.push(react_1.default.createElement(Logout, { onClick: () => {
|
|
56
58
|
handleLogout();
|
|
57
59
|
telemetry_1.telemetry.send('logout_menu_item_clicked', {});
|
|
58
|
-
}, "data-translation-key": translationKeys.logout, role: "link" },
|
|
59
|
-
|
|
60
|
+
}, "data-translation-key": translationKeys.logout, role: "link" },
|
|
61
|
+
react_1.default.createElement(icons_1.LogoutIcon, null),
|
|
62
|
+
translate(translationKeys.logout, (userProfile === null || userProfile === void 0 ? void 0 : userProfile.logoutLabel) || 'Log out')));
|
|
63
|
+
return (react_1.default.createElement(ProfileDropdown, { items: menuItems, alignment: "end" },
|
|
60
64
|
react_1.default.createElement(Profile_1.Profile, { name: userData.name, imageUrl: userData.picture, onClick: userData.logoutDisabled ? undefined : () => setIsOpened(!isOpened) })));
|
|
61
65
|
}
|
|
62
66
|
exports.UserProfile = UserProfile;
|
|
@@ -84,15 +88,23 @@ const ProfileDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown).at
|
|
|
84
88
|
${Dropdown_1.DropdownListItem} {
|
|
85
89
|
border-radius: var(--profile-dropdown-list-item-border-radius);
|
|
86
90
|
|
|
87
|
-
& > * {
|
|
88
|
-
padding: var(--profile-dropdown-list-item-vertical-padding)
|
|
89
|
-
var(--profile-dropdown-list-item-horizontal-padding);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
91
|
:hover {
|
|
93
92
|
background-color: var(--profile-dropdown-list-item-active-background-color);
|
|
94
93
|
}
|
|
94
|
+
|
|
95
|
+
:first-child {
|
|
96
|
+
cursor: default;
|
|
97
|
+
background-color: var(--profile-dropdown-list-background-color);
|
|
98
|
+
}
|
|
95
99
|
}
|
|
96
100
|
`;
|
|
97
|
-
const Logout = styled_components_1.default.div
|
|
101
|
+
const Logout = styled_components_1.default.div `
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
color: var(--profile-dropdown-logout-color);
|
|
106
|
+
fill: var(--profile-dropdown-logout-color);
|
|
107
|
+
border-top: 1px solid var(--profile-dropdown-logout-border-color);
|
|
108
|
+
padding: var(--profile-dropdown-logout-padding);
|
|
109
|
+
`;
|
|
98
110
|
//# sourceMappingURL=UserProfile.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UserProfileData = void 0;
|
|
7
|
+
const _theme_1 = require("../../index.js");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
|
+
const Profile_1 = require("../../components/Profile/Profile");
|
|
11
|
+
function UserProfileData(props) {
|
|
12
|
+
const { userData } = props;
|
|
13
|
+
return (react_1.default.createElement(UserProfileDataWrapper, null,
|
|
14
|
+
react_1.default.createElement(ProfilePicture, null,
|
|
15
|
+
react_1.default.createElement(_theme_1.Profile, { name: userData.name, imageUrl: userData.picture })),
|
|
16
|
+
react_1.default.createElement(UserName, null, userData.name)));
|
|
17
|
+
}
|
|
18
|
+
exports.UserProfileData = UserProfileData;
|
|
19
|
+
const UserProfileDataWrapper = styled_components_1.default.div `
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
`;
|
|
23
|
+
const ProfilePicture = styled_components_1.default.div `
|
|
24
|
+
margin-right: 16px;
|
|
25
|
+
|
|
26
|
+
${Profile_1.AvatarWrapper} {
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
${Profile_1.ProfileWrapper} {
|
|
31
|
+
padding: 0;
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
const UserName = styled_components_1.default.div ``;
|
|
35
|
+
//# sourceMappingURL=UserProfileData.js.map
|
|
@@ -1,4 +1,18 @@
|
|
|
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
17
|
exports.UserProfile = exports.LoginLink = exports.Profile = void 0;
|
|
4
18
|
var Profile_1 = require("./Profile");
|
|
@@ -7,4 +21,5 @@ var LoginLink_1 = require("./LoginLink");
|
|
|
7
21
|
Object.defineProperty(exports, "LoginLink", { enumerable: true, get: function () { return LoginLink_1.LoginLink; } });
|
|
8
22
|
var UserProfile_1 = require("./UserProfile");
|
|
9
23
|
Object.defineProperty(exports, "UserProfile", { enumerable: true, get: function () { return UserProfile_1.UserProfile; } });
|
|
24
|
+
__exportStar(require("../../components/Profile/styledVariables"), exports);
|
|
10
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userProfileDropdown = exports.userProfile = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.userProfile = (0, styled_components_1.css) `
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @tokens User Profile
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
--profile-avatar-width: var(--control-height-base); // @presenter Spacing
|
|
12
|
+
--profile-avatar-height: var(--control-height-base); // @presenter Spacing
|
|
13
|
+
--profile-avatar-border-radius: 50%; // @presenter BorderRadius
|
|
14
|
+
|
|
15
|
+
--profile-avatar-font-family: var(--navbar-item-font-family); // @presenter FontFamily
|
|
16
|
+
--profile-avatar-font-size: var(--navbar-item-font-size); // @presenter FontSize
|
|
17
|
+
--profile-avatar-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
18
|
+
--profile-avatar-line-height: var(--line-height-base); // @presenter LineHeight
|
|
19
|
+
|
|
20
|
+
--profile-avatar-padding-vertical: var(--spacing-base); // @presenter Spacing
|
|
21
|
+
--profile-avatar-padding-horizontal: var(--spacing-base); // @presenter Spacing
|
|
22
|
+
|
|
23
|
+
// @tokens End
|
|
24
|
+
`;
|
|
25
|
+
exports.userProfileDropdown = (0, styled_components_1.css) `
|
|
26
|
+
/**
|
|
27
|
+
* @tokens User profile menu dropdown
|
|
28
|
+
* */
|
|
29
|
+
|
|
30
|
+
--profile-dropdown-font-size: var(--dropdown-font-size); // @presenter FontSize
|
|
31
|
+
--profile-dropdown-font-weight: var(--dropdown-font-weight); // @presenter FontWeight
|
|
32
|
+
--profile-dropdown-line-height: var(--dropdown-line-height); // @presenter LineHeight
|
|
33
|
+
--profile-dropdown-text-color: var(--dropdown-text-color); // @presenter Color
|
|
34
|
+
--profile-dropdown-border-radius: var(--dropdown-border-radius); // @presenter BorderRadius
|
|
35
|
+
|
|
36
|
+
--profile-dropdown-list-min-width: var(--dropdown-list-min-width);
|
|
37
|
+
--profile-dropdown-list-max-width: var(--dropdown-list-max-width);
|
|
38
|
+
--profile-dropdown-list-padding: var(--dropdown-list-padding); // @presenter Spacing
|
|
39
|
+
--profile-dropdown-list-border-radius: var(--dropdown-list-border-radius); // @presenter BorderRadius
|
|
40
|
+
--profile-dropdown-list-background-color: var(--dropdown-list-background-color); // @presenter Color
|
|
41
|
+
--profile-dropdown-list-box-shadow: var(--dropdown-list-box-shadow); // @presenter Shadow
|
|
42
|
+
|
|
43
|
+
--profile-dropdown-list-item-horizontal-padding: var(--dropdown-list-item-horizontal-padding); // @presenter Spacing
|
|
44
|
+
--profile-dropdown-list-item-vertical-padding: var(--dropdown-list-item-vertical-padding); // @presenter Spacing
|
|
45
|
+
--profile-dropdown-list-item-border-radius: var(--dropdown-list-item-border-radius); // @presenter BorderRadius
|
|
46
|
+
--profile-dropdown-list-item-active-background-color: var(--dropdown-list-item-active-background-color); // @presenter Color
|
|
47
|
+
--profile-dropdown-list-item-separator-color: var(--dropdown-list-item-separator-color); // @presenter Color
|
|
48
|
+
|
|
49
|
+
--profile-dropdown-logout-color: var(--color-error-base);
|
|
50
|
+
--profile-dropdown-logout-border-color: var(--border-secondary);
|
|
51
|
+
--profile-dropdown-logout-padding: 0 0 0 var(--spacing-xxs);
|
|
52
|
+
|
|
53
|
+
// @tokens End
|
|
54
|
+
`;
|
|
55
|
+
//# sourceMappingURL=styledVariables.js.map
|
|
@@ -30,28 +30,16 @@ exports.CancelSearch = void 0;
|
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const hooks_1 = require("../../mocks/hooks");
|
|
33
|
+
const Button_1 = require("../../components/Button");
|
|
33
34
|
function CancelSearch({ onClick, className, }) {
|
|
34
35
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
35
36
|
const translationKeys = {
|
|
36
37
|
cancel: 'theme.search.cancel',
|
|
37
38
|
};
|
|
38
39
|
return (React.createElement(Wrapper, { "data-component-name": "Search/CancelSearch", onClick: onClick, className: className },
|
|
39
|
-
React.createElement(Button, { "data-translation-keys": translationKeys.cancel }, translate(translationKeys.cancel, 'Cancel'))));
|
|
40
|
+
React.createElement(Button_1.Button, { "data-translation-keys": translationKeys.cancel, fullWidth: true, variant: "outlined" }, translate(translationKeys.cancel, 'Cancel'))));
|
|
40
41
|
}
|
|
41
42
|
exports.CancelSearch = CancelSearch;
|
|
42
|
-
const Button = styled_components_1.default.div `
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
align-items: center;
|
|
47
|
-
flex-grow: 1;
|
|
48
|
-
padding: 4px 16px;
|
|
49
|
-
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
50
|
-
border-radius: 6px;
|
|
51
|
-
font-size: 14px;
|
|
52
|
-
line-height: 22px;
|
|
53
|
-
height: 32px;
|
|
54
|
-
`;
|
|
55
43
|
const Wrapper = styled_components_1.default.div `
|
|
56
44
|
display: flex;
|
|
57
45
|
padding: 12px 16px 16px;
|
|
@@ -42,16 +42,16 @@ const Wrapper = styled_components_1.default.div `
|
|
|
42
42
|
align-items: center;
|
|
43
43
|
padding: 1px 8px;
|
|
44
44
|
gap: 4px;
|
|
45
|
-
background:
|
|
46
|
-
border: 1px solid
|
|
47
|
-
border-radius:
|
|
48
|
-
margin-right:
|
|
45
|
+
background: var(--bg-overlay);
|
|
46
|
+
border: 1px solid var(--border-secondary);
|
|
47
|
+
border-radius: var(--border-radius-xlg);
|
|
48
|
+
margin-right: var(--spacing-base);
|
|
49
49
|
`;
|
|
50
50
|
const Label = styled_components_1.default.span `
|
|
51
|
-
color:
|
|
52
|
-
font-weight:
|
|
53
|
-
font-size:
|
|
54
|
-
line-height:
|
|
51
|
+
color: var(--text-secondary);
|
|
52
|
+
font-weight: var(--font-weight-regular);
|
|
53
|
+
font-size: var(--font-size-sm);
|
|
54
|
+
line-height: var(--line-height-sm);
|
|
55
55
|
`;
|
|
56
56
|
const ClearIcon = (0, styled_components_1.default)(ClearIcon_1.ClearIcon) `
|
|
57
57
|
width: 8px;
|
|
@@ -65,9 +65,9 @@ const Wrapper = styled_components_1.default.div `
|
|
|
65
65
|
`;
|
|
66
66
|
const Title = styled_components_1.default.div `
|
|
67
67
|
color: var(--search-item-title-text-color);
|
|
68
|
-
font-weight:
|
|
69
|
-
font-size: var(--font-size-
|
|
70
|
-
line-height:
|
|
68
|
+
font-weight: var(--font-weight-bold);
|
|
69
|
+
font-size: var(--font-size-sm);
|
|
70
|
+
line-height: var(--line-height-sm);
|
|
71
71
|
padding: 8px 24px;
|
|
72
72
|
`;
|
|
73
73
|
const RecentItems = styled_components_1.default.div `
|
|
@@ -79,7 +79,7 @@ const RecentItems = styled_components_1.default.div `
|
|
|
79
79
|
const ClockBackwardsIcon = (0, styled_components_1.default)(ClockBackwardsIcon_1.ClockBackwardsIcon) `
|
|
80
80
|
width: 16px;
|
|
81
81
|
height: 16px;
|
|
82
|
-
fill:
|
|
82
|
+
fill: var(--text-description);
|
|
83
83
|
`;
|
|
84
84
|
const ClearIcon = (0, styled_components_1.default)(ClearIcon_1.ClearIcon) `
|
|
85
85
|
display: inline;
|
|
@@ -111,7 +111,7 @@ const Item = styled_components_1.default.div `
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
:focus-visible {
|
|
114
|
-
outline: 2px solid var(--color-primary
|
|
114
|
+
outline: 2px solid var(--color-primary);
|
|
115
115
|
border-radius: 2px;
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SearchIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Icon = (props) => (react_1.default.createElement("svg", Object.assign({
|
|
10
|
-
react_1.default.createElement("path", { d: "
|
|
9
|
+
const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-component-name": "Search/SearchIcon" }, props),
|
|
10
|
+
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.66667 2.5C5.84258 2.5 5.037 2.74437 4.35179 3.20221C3.66659 3.66005 3.13254 4.31079 2.81717 5.07215C2.50181 5.83351 2.41929 6.67129 2.58006 7.47954C2.74084 8.2878 3.13767 9.03023 3.72039 9.61295C4.30311 10.1957 5.04554 10.5925 5.85379 10.7533C6.66205 10.914 7.49982 10.8315 8.26118 10.5162C9.02254 10.2008 9.67329 9.66675 10.1311 8.98154C10.589 8.29634 10.8333 7.49076 10.8333 6.66667C10.8333 5.5616 10.3943 4.50179 9.61295 3.72039C8.83155 2.93899 7.77174 2.5 6.66667 2.5ZM3.79622 2.37074C4.64588 1.80302 5.6448 1.5 6.66667 1.5C8.03695 1.5 9.35112 2.04434 10.3201 3.01328C11.289 3.98222 11.8333 5.29638 11.8333 6.66667C11.8333 7.68854 11.5303 8.68746 10.9626 9.53711C10.8672 9.67996 10.7649 9.8175 10.6565 9.94935L14.3536 13.6464C14.5488 13.8417 14.5488 14.1583 14.3536 14.3536C14.1583 14.5488 13.8417 14.5488 13.6464 14.3536L9.94935 10.6565C9.55739 10.979 9.11792 11.2437 8.64387 11.44C7.69978 11.8311 6.66094 11.9334 5.6587 11.7341C4.65647 11.5347 3.73586 11.0426 3.01328 10.3201C2.29071 9.59748 1.79864 8.67687 1.59928 7.67463C1.39992 6.6724 1.50224 5.63355 1.89329 4.68947C2.28434 3.74538 2.94657 2.93846 3.79622 2.37074Z", fill: "#A8A8A8" })));
|
|
11
11
|
exports.SearchIcon = (0, styled_components_1.default)(Icon).attrs(({ className }) => ({
|
|
12
12
|
'data-component-name': 'Search/SearchIcon',
|
|
13
13
|
className,
|
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.SearchItem = void 0;
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
|
-
const
|
|
32
|
+
const Tag_1 = require("../../components/Tag");
|
|
33
33
|
const Link_1 = require("../../mocks/Link");
|
|
34
34
|
const utils_1 = require("../../components/Search/utils");
|
|
35
35
|
const ProductTag_1 = require("../../components/Search/ProductTag");
|
|
@@ -45,7 +45,7 @@ function SearchItem({ item, className, product }) {
|
|
|
45
45
|
const header = (react_1.default.createElement(Wrapper, null,
|
|
46
46
|
product && react_1.default.createElement(ProductTag, { label: product }),
|
|
47
47
|
item.httpVerb ? (react_1.default.createElement(Operation, null,
|
|
48
|
-
react_1.default.createElement(
|
|
48
|
+
react_1.default.createElement(Tag_1.Tag, { color: item.httpVerb }, item.httpVerb.toUpperCase()),
|
|
49
49
|
item.pathName ? (0, utils_1.highlight)(item.pathName) : null)) : null,
|
|
50
50
|
react_1.default.createElement(Title, null, (0, utils_1.highlight)(item.title)),
|
|
51
51
|
Array.isArray(item.text) ? react_1.default.createElement(Description, null, (0, utils_1.highlight)(item.text)) : null));
|
|
@@ -104,7 +104,7 @@ const Description = styled_components_1.default.div `
|
|
|
104
104
|
text-overflow: ellipsis;
|
|
105
105
|
`;
|
|
106
106
|
const Path = styled_components_1.default.div `
|
|
107
|
-
font-size: var(--font-size-
|
|
107
|
+
font-size: var(--font-size-sm);
|
|
108
108
|
overflow: hidden;
|
|
109
109
|
text-overflow: ellipsis;
|
|
110
110
|
line-height: 22px;
|
|
@@ -113,7 +113,7 @@ const Place = styled_components_1.default.div `
|
|
|
113
113
|
display: flex;
|
|
114
114
|
flex-direction: column;
|
|
115
115
|
gap: 5px;
|
|
116
|
-
font-size: var(--font-size-
|
|
116
|
+
font-size: var(--font-size-sm);
|
|
117
117
|
overflow: hidden;
|
|
118
118
|
text-overflow: ellipsis;
|
|
119
119
|
|
|
@@ -52,8 +52,9 @@ const Wrapper = styled_components_1.default.div `
|
|
|
52
52
|
background-color: var(--search-trigger-background-color);
|
|
53
53
|
border: var(--search-trigger-border);
|
|
54
54
|
border-radius: var(--search-trigger-border-radius);
|
|
55
|
-
padding:
|
|
55
|
+
padding: var(--search-trigger-padding);
|
|
56
56
|
user-select: none;
|
|
57
|
+
gap: var(--search-trigger-gap);
|
|
57
58
|
|
|
58
59
|
:hover {
|
|
59
60
|
background-color: var(--search-trigger-hover-background-color);
|
|
@@ -68,13 +69,11 @@ const Wrapper = styled_components_1.default.div `
|
|
|
68
69
|
}}
|
|
69
70
|
`;
|
|
70
71
|
const Label = styled_components_1.default.span `
|
|
71
|
-
padding-left: 10px;
|
|
72
|
-
padding-right: 16px;
|
|
73
72
|
font-size: var(--search-trigger-font-size);
|
|
74
73
|
`;
|
|
75
74
|
const SearchIconSmall = (0, styled_components_1.default)(SearchIcon_1.SearchIcon) `
|
|
76
|
-
width:
|
|
77
|
-
height:
|
|
75
|
+
width: var(--search-trigger-icon-size);
|
|
76
|
+
height: var(--search-trigger-icon-size);
|
|
78
77
|
fill: var(--search-trigger-text-color);
|
|
79
78
|
`;
|
|
80
79
|
//# sourceMappingURL=SearchTrigger.js.map
|
|
@@ -21,10 +21,6 @@ function ShortcutKey(props) {
|
|
|
21
21
|
}
|
|
22
22
|
exports.ShortcutKey = ShortcutKey;
|
|
23
23
|
exports.Wrapper = styled_components_1.default.div `
|
|
24
|
-
|
|
25
|
-
font-size: 0.75em;
|
|
26
|
-
right: 1em;
|
|
27
|
-
color: var(--search-trigger-shortcut-text-color);
|
|
28
|
-
opacity: 0.5;
|
|
24
|
+
font-size: var(--search-trigger-shortcut-font-size);
|
|
29
25
|
`;
|
|
30
26
|
//# sourceMappingURL=ShortcutKey.js.map
|
|
@@ -57,8 +57,8 @@ const Wrapper = styled_components_1.default.div `
|
|
|
57
57
|
const Title = styled_components_1.default.div `
|
|
58
58
|
color: var(--search-item-title-text-color);
|
|
59
59
|
font-weight: var(--font-weight-bold);
|
|
60
|
-
font-size: var(--font-size-
|
|
61
|
-
line-height:
|
|
60
|
+
font-size: var(--font-size-sm);
|
|
61
|
+
line-height: var(--line-height-sm);
|
|
62
62
|
padding: 8px 24px;
|
|
63
63
|
`;
|
|
64
64
|
const SuggestedItems = styled_components_1.default.div `
|
|
@@ -95,7 +95,7 @@ const PageLink = (0, styled_components_1.default)(Link_1.Link) `
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
:focus-visible {
|
|
98
|
-
outline: 2px solid var(--color-primary
|
|
98
|
+
outline: 2px solid var(--color-primary);
|
|
99
99
|
border-radius: 2px;
|
|
100
100
|
}
|
|
101
101
|
`;
|
|
@@ -14,3 +14,4 @@ export * from '../../components/Search/MobileSearchTrigger';
|
|
|
14
14
|
export * from '../../components/Search/CancelSearch';
|
|
15
15
|
export * from '../../components/Search/ProductTag';
|
|
16
16
|
export * from '../../components/Search/utils';
|
|
17
|
+
export * from '../../components/Search/styledVariables';
|
|
@@ -30,4 +30,5 @@ __exportStar(require("../../components/Search/MobileSearchTrigger"), exports);
|
|
|
30
30
|
__exportStar(require("../../components/Search/CancelSearch"), exports);
|
|
31
31
|
__exportStar(require("../../components/Search/ProductTag"), exports);
|
|
32
32
|
__exportStar(require("../../components/Search/utils"), exports);
|
|
33
|
+
__exportStar(require("../../components/Search/styledVariables"), exports);
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const search: import("styled-components").FlattenSimpleInterpolation;
|