@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../components/OperationBadge/OperationBadge';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("../../
|
|
17
|
+
__exportStar(require("../../components/OperationBadge/OperationBadge"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -13,6 +13,10 @@ exports.PanelHeaderTitle = styled_components_1.default.span.attrs(({ className }
|
|
|
13
13
|
font-weight: var(--panel-heading-font-weight-local);
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
text-overflow: ellipsis;
|
|
16
|
+
|
|
17
|
+
/* changed from var(--text-color-inverse) to var(--text-color)
|
|
18
|
+
should change several components in openapi/graphql reference-docs to use inverse color
|
|
19
|
+
*/
|
|
16
20
|
color: var(--panel-heading-text-color);
|
|
17
21
|
`;
|
|
18
22
|
//# sourceMappingURL=PanelHeaderTitle.js.map
|
|
@@ -3,4 +3,3 @@ export * from '../../components/Panel/PanelBody';
|
|
|
3
3
|
export * from '../../components/Panel/PanelComponent';
|
|
4
4
|
export * from '../../components/Panel/PanelHeader';
|
|
5
5
|
export * from '../../components/Panel/PanelHeaderTitle';
|
|
6
|
-
export * from '../../components/Panel/styledVariables';
|
|
@@ -19,5 +19,4 @@ __exportStar(require("../../components/Panel/PanelBody"), exports);
|
|
|
19
19
|
__exportStar(require("../../components/Panel/PanelComponent"), exports);
|
|
20
20
|
__exportStar(require("../../components/Panel/PanelHeader"), exports);
|
|
21
21
|
__exportStar(require("../../components/Panel/PanelHeaderTitle"), exports);
|
|
22
|
-
__exportStar(require("../../components/Panel/styledVariables"), exports);
|
|
23
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -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/Product/ProductPicker"), exports);
|
|
18
18
|
__exportStar(require("../../components/Product/Product"), exports);
|
|
19
|
-
__exportStar(require("../../components/Product/styledVariables"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,13 +8,16 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
10
10
|
const hooks_1 = require("../../mocks/hooks");
|
|
11
|
+
const telemetry_1 = require("../../mocks/telemetry");
|
|
11
12
|
function LoginLink({ href }) {
|
|
12
13
|
const { userProfile } = (0, useThemeConfig_1.useThemeConfig)();
|
|
13
14
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
14
15
|
const translationKeys = {
|
|
15
16
|
login: 'theme.profile.login',
|
|
16
17
|
};
|
|
17
|
-
return (react_1.default.createElement(StyledLink, { href: href, "data-translation-key": translationKeys.login
|
|
18
|
+
return (react_1.default.createElement(StyledLink, { href: href, "data-translation-key": translationKeys.login, onClick: () => {
|
|
19
|
+
telemetry_1.telemetry.send('login_button_clicked', {});
|
|
20
|
+
} }, translate(translationKeys.login, (userProfile === null || userProfile === void 0 ? void 0 : userProfile.loginLabel) || 'Login')));
|
|
18
21
|
}
|
|
19
22
|
exports.LoginLink = LoginLink;
|
|
20
23
|
const StyledLink = styled_components_1.default.a.attrs(() => ({
|
|
@@ -23,9 +26,10 @@ const StyledLink = styled_components_1.default.a.attrs(() => ({
|
|
|
23
26
|
display: inline-block;
|
|
24
27
|
color: var(--navbar-text-color);
|
|
25
28
|
text-decoration: none;
|
|
29
|
+
padding: 0 var(--navbar-item-padding-horizontal);
|
|
26
30
|
text-align: center;
|
|
27
31
|
line-height: 1;
|
|
28
|
-
font-size: var(--navbar-font-size);
|
|
32
|
+
font-size: var(--navbar-item-font-size);
|
|
29
33
|
font-weight: var(--navbar-item-font-weight);
|
|
30
34
|
&:hover {
|
|
31
35
|
color: var(--navbar-item-hover-text-color);
|
|
@@ -27,14 +27,17 @@ 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, color }) {
|
|
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(
|
|
33
|
+
return (react_1.default.createElement(exports.ProfileWrapper, { onClick: onClick, role: "link" },
|
|
34
|
+
react_1.default.createElement(StyledUserName, { "data-cy": "user-name", color: color }, name),
|
|
35
|
+
imageUrl && (react_1.default.createElement(exports.AvatarWrapper, null,
|
|
36
|
+
react_1.default.createElement("img", { "data-cy": "user-avatar", src: imageUrl, alt: "profile" })))));
|
|
35
37
|
}
|
|
36
38
|
const avatarLetters = `${name.charAt(0).toUpperCase()}${((_a = name.split(' ')[1]) === null || _a === void 0 ? void 0 : _a.charAt(0).toUpperCase()) || ''}`;
|
|
37
39
|
return (react_1.default.createElement(exports.ProfileWrapper, { onClick: onClick, role: "link" },
|
|
40
|
+
react_1.default.createElement(StyledUserName, { "data-cy": "user-name", color: color }, name),
|
|
38
41
|
react_1.default.createElement(exports.AvatarWrapper, { background: (0, utils_1.stringToHslColor)(name) },
|
|
39
42
|
react_1.default.createElement("span", null, avatarLetters))));
|
|
40
43
|
}
|
|
@@ -46,6 +49,21 @@ exports.ProfileWrapper = styled_components_1.default.div.attrs(() => ({
|
|
|
46
49
|
align-items: center;
|
|
47
50
|
cursor: pointer;
|
|
48
51
|
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
|
+
}
|
|
49
67
|
`;
|
|
50
68
|
exports.AvatarWrapper = styled_components_1.default.div `
|
|
51
69
|
width: var(--profile-avatar-width);
|
|
@@ -64,6 +82,7 @@ exports.AvatarWrapper = styled_components_1.default.div `
|
|
|
64
82
|
font-weight: var(--profile-avatar-font-weight);
|
|
65
83
|
|
|
66
84
|
border-radius: var(--profile-avatar-border-radius);
|
|
85
|
+
margin-left: var(--profile-avatar-margin-left);
|
|
67
86
|
|
|
68
87
|
${({ background }) => (0, styled_components_1.css) `
|
|
69
88
|
background-color: ${background};
|
|
@@ -33,9 +33,8 @@ const Profile_1 = require("../../components/Profile/Profile");
|
|
|
33
33
|
const Link_1 = require("../../mocks/Link");
|
|
34
34
|
const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
35
35
|
const hooks_1 = require("../../mocks/hooks");
|
|
36
|
+
const telemetry_1 = require("../../mocks/telemetry");
|
|
36
37
|
const Dropdown_1 = require("../../components/Dropdown");
|
|
37
|
-
const UserProfileData_1 = require("../../components/Profile/UserProfileData");
|
|
38
|
-
const icons_1 = require("../../icons");
|
|
39
38
|
function UserProfile({ userData, handleLogout, hasDeveloperOnboarding = false, }) {
|
|
40
39
|
const { userProfile } = (0, useThemeConfig_1.useThemeConfig)();
|
|
41
40
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
@@ -44,7 +43,7 @@ function UserProfile({ userData, handleLogout, hasDeveloperOnboarding = false, }
|
|
|
44
43
|
logout: 'theme.profile.logout',
|
|
45
44
|
};
|
|
46
45
|
const [isOpened, setIsOpened] = (0, react_1.useState)(false);
|
|
47
|
-
const menuItems = [
|
|
46
|
+
const menuItems = [];
|
|
48
47
|
if (hasDeveloperOnboarding) {
|
|
49
48
|
menuItems.push(react_1.default.createElement(Link_1.Link, { to: "/apps", "data-translation-key": translationKeys.myApps }, translate(translationKeys.myApps, 'My Apps')));
|
|
50
49
|
}
|
|
@@ -53,10 +52,11 @@ function UserProfile({ userData, handleLogout, hasDeveloperOnboarding = false, }
|
|
|
53
52
|
menuItems.push(react_1.default.createElement(Link_1.Link, { external: item.external, key: item.label, to: item.link || '', separator: item === null || item === void 0 ? void 0 : item.separatorLine }, item.label));
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
|
-
menuItems.push(react_1.default.createElement(Logout, { onClick: () =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
menuItems.push(react_1.default.createElement(Logout, { onClick: () => {
|
|
56
|
+
handleLogout();
|
|
57
|
+
telemetry_1.telemetry.send('logout_menu_item_clicked', {});
|
|
58
|
+
}, "data-translation-key": translationKeys.logout, role: "link" }, translate(translationKeys.logout, (userProfile === null || userProfile === void 0 ? void 0 : userProfile.logoutLabel) || 'Log out')));
|
|
59
|
+
return (react_1.default.createElement(ProfileDropdown, { items: menuItems },
|
|
60
60
|
react_1.default.createElement(Profile_1.Profile, { name: userData.name, imageUrl: userData.picture, onClick: userData.logoutDisabled ? undefined : () => setIsOpened(!isOpened) })));
|
|
61
61
|
}
|
|
62
62
|
exports.UserProfile = UserProfile;
|
|
@@ -84,23 +84,15 @@ const ProfileDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown).at
|
|
|
84
84
|
${Dropdown_1.DropdownListItem} {
|
|
85
85
|
border-radius: var(--profile-dropdown-list-item-border-radius);
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
& > * {
|
|
88
|
+
padding: var(--profile-dropdown-list-item-vertical-padding)
|
|
89
|
+
var(--profile-dropdown-list-item-horizontal-padding);
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
:
|
|
92
|
-
|
|
93
|
-
background-color: var(--profile-dropdown-list-background-color);
|
|
92
|
+
:hover {
|
|
93
|
+
background-color: var(--profile-dropdown-list-item-active-background-color);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
`;
|
|
97
|
-
const Logout = styled_components_1.default.div
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
display: flex;
|
|
100
|
-
align-items: center;
|
|
101
|
-
color: var(--profile-dropdown-logout-color);
|
|
102
|
-
fill: var(--profile-dropdown-logout-color);
|
|
103
|
-
border-top: 1px solid var(--profile-dropdown-logout-border-color);
|
|
104
|
-
padding: var(--profile-dropdown-logout-padding);
|
|
105
|
-
`;
|
|
97
|
+
const Logout = styled_components_1.default.div ``;
|
|
106
98
|
//# sourceMappingURL=UserProfile.js.map
|
|
@@ -1,18 +1,4 @@
|
|
|
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.UserProfile = exports.LoginLink = exports.Profile = void 0;
|
|
18
4
|
var Profile_1 = require("./Profile");
|
|
@@ -21,5 +7,4 @@ var LoginLink_1 = require("./LoginLink");
|
|
|
21
7
|
Object.defineProperty(exports, "LoginLink", { enumerable: true, get: function () { return LoginLink_1.LoginLink; } });
|
|
22
8
|
var UserProfile_1 = require("./UserProfile");
|
|
23
9
|
Object.defineProperty(exports, "UserProfile", { enumerable: true, get: function () { return UserProfile_1.UserProfile; } });
|
|
24
|
-
__exportStar(require("../../components/Profile/styledVariables"), exports);
|
|
25
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -30,16 +30,28 @@ 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");
|
|
34
33
|
function CancelSearch({ onClick, className, }) {
|
|
35
34
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
36
35
|
const translationKeys = {
|
|
37
36
|
cancel: 'theme.search.cancel',
|
|
38
37
|
};
|
|
39
38
|
return (React.createElement(Wrapper, { "data-component-name": "Search/CancelSearch", onClick: onClick, className: className },
|
|
40
|
-
React.createElement(
|
|
39
|
+
React.createElement(Button, { "data-translation-keys": translationKeys.cancel }, translate(translationKeys.cancel, 'Cancel'))));
|
|
41
40
|
}
|
|
42
41
|
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
|
+
`;
|
|
43
55
|
const Wrapper = styled_components_1.default.div `
|
|
44
56
|
display: flex;
|
|
45
57
|
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:
|
|
45
|
+
background: #f2f2f2;
|
|
46
|
+
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
47
|
+
border-radius: 12px;
|
|
48
48
|
margin-right: 16px;
|
|
49
49
|
`;
|
|
50
50
|
const Label = styled_components_1.default.span `
|
|
51
|
-
color:
|
|
52
|
-
font-weight:
|
|
53
|
-
font-size:
|
|
54
|
-
line-height:
|
|
51
|
+
color: #1f2933;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
line-height: 20px;
|
|
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: 600;
|
|
69
|
+
font-size: var(--font-size-small);
|
|
70
|
+
line-height: 20px;
|
|
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: #8d8d8d;
|
|
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-200);
|
|
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", {
|
|
9
|
+
const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", version: "1.1", x: "0", y: "0", viewBox: "0 0 490 490", "data-component-name": "Search/SearchIcon" }, props),
|
|
10
|
+
react_1.default.createElement("path", { d: "M484 455.2L366.2 337.4c29.2-35.6 46.8-81.2 46.8-130.9C413 92.5 320.5 0 206.5 0 92.4 0 0 92.5 0 206.5S92.4 413 206.5 413c49.7 0 95.2-17.5 130.8-46.7L455.1 484c8 8 20.9 8 28.9 0C492 476.1 492 463.1 484 455.2zM206.5 371.9C115.2 371.9 41 297.7 41 206.5S115.2 41 206.5 41C297.7 41 372 115.3 372 206.5S297.7 371.9 206.5 371.9z" })));
|
|
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 OperationBadge_1 = require("../../components/OperationBadge");
|
|
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(OperationBadge_1.OperationBadge, { type: item.httpVerb }, item.httpVerb),
|
|
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-small);
|
|
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-small);
|
|
117
117
|
overflow: hidden;
|
|
118
118
|
text-overflow: ellipsis;
|
|
119
119
|
|
|
@@ -52,9 +52,8 @@ 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: 5px 10px 5px 14px;
|
|
56
56
|
user-select: none;
|
|
57
|
-
gap: var(--search-trigger-gap);
|
|
58
57
|
|
|
59
58
|
:hover {
|
|
60
59
|
background-color: var(--search-trigger-hover-background-color);
|
|
@@ -69,11 +68,13 @@ const Wrapper = styled_components_1.default.div `
|
|
|
69
68
|
}}
|
|
70
69
|
`;
|
|
71
70
|
const Label = styled_components_1.default.span `
|
|
71
|
+
padding-left: 10px;
|
|
72
|
+
padding-right: 16px;
|
|
72
73
|
font-size: var(--search-trigger-font-size);
|
|
73
74
|
`;
|
|
74
75
|
const SearchIconSmall = (0, styled_components_1.default)(SearchIcon_1.SearchIcon) `
|
|
75
|
-
width:
|
|
76
|
-
height:
|
|
76
|
+
width: 13px;
|
|
77
|
+
height: 13px;
|
|
77
78
|
fill: var(--search-trigger-text-color);
|
|
78
79
|
`;
|
|
79
80
|
//# sourceMappingURL=SearchTrigger.js.map
|
|
@@ -21,6 +21,10 @@ function ShortcutKey(props) {
|
|
|
21
21
|
}
|
|
22
22
|
exports.ShortcutKey = ShortcutKey;
|
|
23
23
|
exports.Wrapper = styled_components_1.default.div `
|
|
24
|
-
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
font-size: 0.75em;
|
|
26
|
+
right: 1em;
|
|
27
|
+
color: var(--search-trigger-shortcut-text-color);
|
|
28
|
+
opacity: 0.5;
|
|
25
29
|
`;
|
|
26
30
|
//# 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-small);
|
|
61
|
+
line-height: 20px;
|
|
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-200);
|
|
99
99
|
border-radius: 2px;
|
|
100
100
|
}
|
|
101
101
|
`;
|
|
@@ -14,4 +14,3 @@ 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,5 +30,4 @@ __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);
|
|
34
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,19 +7,12 @@ export interface SelectProps {
|
|
|
7
7
|
withArrow?: boolean;
|
|
8
8
|
triggerEvent?: 'click' | 'hover';
|
|
9
9
|
onChange?: (value: React.ReactNode | string) => void;
|
|
10
|
-
placement?: 'top' | 'bottom';
|
|
11
|
-
alignment?: 'start' | 'end';
|
|
12
|
-
icon?: React.ReactNode;
|
|
13
|
-
onlyIcon?: boolean;
|
|
14
10
|
}
|
|
15
|
-
export declare const Select: ({ className, selected, options, dataAttributes, withArrow, triggerEvent, onChange,
|
|
11
|
+
export declare const Select: ({ className, selected, options, dataAttributes, withArrow, triggerEvent, onChange, }: SelectProps) => JSX.Element;
|
|
16
12
|
export declare const SelectContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
13
|
export declare const SelectInput: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
14
|
export declare const SelectInputValue: import("styled-components").StyledComponent<"div", any, {
|
|
19
|
-
|
|
20
|
-
}, never>;
|
|
21
|
-
export declare const SelectList: import("styled-components").StyledComponent<"ul", any, {
|
|
22
|
-
placement?: string | undefined;
|
|
23
|
-
alignment?: string | undefined;
|
|
15
|
+
withArrow?: boolean | undefined;
|
|
24
16
|
}, never>;
|
|
17
|
+
export declare const SelectList: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
25
18
|
export declare const SelectListItem: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
@@ -31,7 +31,7 @@ const react_1 = __importStar(require("react"));
|
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const icons_1 = require("../../icons");
|
|
33
33
|
const hooks_1 = require("../../hooks");
|
|
34
|
-
const Select = ({ className, selected, options, dataAttributes, withArrow, triggerEvent = 'click', onChange,
|
|
34
|
+
const Select = ({ className, selected, options, dataAttributes, withArrow, triggerEvent = 'click', onChange, }) => {
|
|
35
35
|
const selectRef = (0, react_1.useRef)(null);
|
|
36
36
|
const [isOpen, setIsOpen] = (0, react_1.useState)(false);
|
|
37
37
|
const [_selected, setSelected] = (0, react_1.useState)(selected);
|
|
@@ -56,10 +56,9 @@ const Select = ({ className, selected, options, dataAttributes, withArrow, trigg
|
|
|
56
56
|
}, [selected]);
|
|
57
57
|
return (react_1.default.createElement(exports.SelectContainer, Object.assign({}, dataAttributes, { "data-testid": "select", className: className, ref: selectRef, onPointerEnter: triggerEvent === 'hover' ? handleOpen : undefined, onPointerLeave: triggerEvent === 'hover' ? handleClose : undefined, onClick: triggerEvent === 'click' ? handleToggle : undefined }),
|
|
58
58
|
react_1.default.createElement(exports.SelectInput, null,
|
|
59
|
-
|
|
60
|
-
icon,
|
|
59
|
+
react_1.default.createElement(exports.SelectInputValue, { withArrow: withArrow }, _selected),
|
|
61
60
|
withArrow ? isOpen ? react_1.default.createElement(icons_1.ArrowIcon, { direction: "up" }) : react_1.default.createElement(icons_1.ArrowIcon, { direction: "down" }) : null),
|
|
62
|
-
isOpen && (react_1.default.createElement(exports.SelectList,
|
|
61
|
+
isOpen && (react_1.default.createElement(exports.SelectList, null, options.map((option, index) => (react_1.default.createElement(exports.SelectListItem, { key: index, onClick: () => handleSelect(option) }, option)))))));
|
|
63
62
|
};
|
|
64
63
|
exports.Select = Select;
|
|
65
64
|
exports.SelectContainer = styled_components_1.default.div `
|
|
@@ -86,14 +85,12 @@ exports.SelectInput = styled_components_1.default.div `
|
|
|
86
85
|
`;
|
|
87
86
|
exports.SelectInputValue = styled_components_1.default.div `
|
|
88
87
|
pointer-events: none;
|
|
89
|
-
${({
|
|
88
|
+
${({ withArrow }) => (withArrow ? 'margin-right: 8px;' : '')}
|
|
90
89
|
`;
|
|
91
90
|
exports.SelectList = styled_components_1.default.ul `
|
|
92
91
|
position: absolute;
|
|
93
|
-
top:
|
|
94
|
-
|
|
95
|
-
left: ${({ alignment }) => (alignment === 'start' ? '0' : 'auto')};
|
|
96
|
-
right: ${({ alignment }) => (alignment === 'end' ? '0' : 'auto')};
|
|
92
|
+
top: 100%;
|
|
93
|
+
left: 0;
|
|
97
94
|
margin: 0;
|
|
98
95
|
min-width: var(--select-list-min-width);
|
|
99
96
|
max-width: var(--select-list-max-width);
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../components/Select/Select"), exports);
|
|
18
|
-
__exportStar(require("../../components/Select/styledVariables"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -11,15 +11,12 @@ exports.SeparatorItem = (0, styled_components_1.default)(MenuItemLabel_1.MenuIte
|
|
|
11
11
|
className,
|
|
12
12
|
})) `
|
|
13
13
|
cursor: default;
|
|
14
|
-
font-weight: var(--
|
|
15
|
-
color: var(--sidebar-
|
|
14
|
+
font-weight: var(--font-weight-bold);
|
|
15
|
+
color: var(--sidebar-separator-item-color);
|
|
16
|
+
font-family: var(--sidebar-item-separator-font-family);
|
|
16
17
|
font-size: var(--sidebar-item-separator-font-size);
|
|
17
18
|
text-transform: var(--sidebar-item-separator-text-transform);
|
|
18
19
|
background: var(--mobile-menu-background);
|
|
19
|
-
border-radius: 0;
|
|
20
|
-
border-top: var(--sidebar-item-separator-border-width) solid
|
|
21
|
-
var(--sidebar-item-separator-border-color);
|
|
22
|
-
padding-top: var(--sidebar-item-separator-padding-top);
|
|
23
20
|
|
|
24
21
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
25
22
|
background: var(--sidebar-item-separator-background-color);
|
|
@@ -30,7 +27,8 @@ exports.SeparatorItem = (0, styled_components_1.default)(MenuItemLabel_1.MenuIte
|
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
:hover {
|
|
33
|
-
color:
|
|
30
|
+
color: inherit;
|
|
31
|
+
background-color: inherit;
|
|
34
32
|
}
|
|
35
33
|
`;
|
|
36
34
|
//# sourceMappingURL=SeparatorItem.js.map
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Tag } from '../../components/Tag';
|
|
3
2
|
import type { MenuItemProps } from '../../components/Sidebar/types';
|
|
4
3
|
export declare function ApiCallItem({ item, className }: MenuItemProps): JSX.Element;
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const Badge: import("styled-components").StyledComponent<"span", any, {
|
|
5
|
+
className: `operation-type ${string}`;
|
|
6
|
+
'data-component-name': string;
|
|
7
|
+
} & {
|
|
8
|
+
type: string;
|
|
9
|
+
}, "className" | "data-component-name">;
|