@redocly/theme 0.44.2 → 0.44.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/components/Admonition/Admonition.js +1 -2
- package/lib/components/ApiOnboarding/AppCustomAttributes.js +1 -2
- package/lib/components/Badge/Badge.js +1 -2
- package/lib/components/Breadcrumbs/Breadcrumb.js +1 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -2
- package/lib/components/Button/Button.js +2 -2
- package/lib/components/Buttons/EditPageButton.js +1 -2
- package/lib/components/Buttons/EmailButton.js +1 -2
- package/lib/components/Buttons/NewTabButton.js +1 -2
- package/lib/components/Catalog/Catalog.d.ts +1 -1
- package/lib/components/Catalog/Catalog.js +1 -1
- package/lib/components/Catalog/CatalogActions.js +1 -2
- package/lib/components/Catalog/CatalogCard.js +1 -2
- package/lib/components/Catalog/CatalogHighlight.js +2 -2
- package/lib/components/Catalog/CatalogInfoBlock.js +1 -2
- package/lib/components/CodeBlock/CodeBlock.js +1 -2
- package/lib/components/CodeBlock/CodeBlockContainer.js +1 -2
- package/lib/components/CodeBlock/CodeBlockControls.js +1 -2
- package/lib/components/CodeBlock/CodeBlockTabs.js +1 -2
- package/lib/components/ColorModeSwitcher/ColorModeIcon.js +1 -2
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +1 -2
- package/lib/components/Dropdown/Dropdown.js +1 -2
- package/lib/components/Dropdown/DropdownMenu.js +1 -2
- package/lib/components/Dropdown/DropdownMenuItem.js +1 -2
- package/lib/components/Feedback/Comment.js +1 -2
- package/lib/components/Feedback/Feedback.js +1 -2
- package/lib/components/Feedback/Mood.js +2 -2
- package/lib/components/Feedback/Rating.js +2 -2
- package/lib/components/Feedback/Reasons.js +1 -2
- package/lib/components/Feedback/ReportDialog.js +1 -2
- package/lib/components/Feedback/Scale.js +2 -2
- package/lib/components/Feedback/Sentiment.js +1 -2
- package/lib/components/Feedback/Stars.js +1 -2
- package/lib/components/Filter/Filter.js +1 -2
- package/lib/components/Filter/FilterCheckboxes.js +1 -2
- package/lib/components/Filter/FilterContent.js +1 -2
- package/lib/components/Filter/FilterDateRange.js +1 -2
- package/lib/components/Filter/FilterInput.js +1 -2
- package/lib/components/Filter/FilterOption.js +1 -2
- package/lib/components/Filter/FilterOptionLabel.js +1 -2
- package/lib/components/Filter/FilterOptions.js +1 -2
- package/lib/components/Filter/FilterPopover.js +1 -2
- package/lib/components/Filter/FilterSelect.js +1 -2
- package/lib/components/Filter/FilterTitle.js +1 -2
- package/lib/components/Footer/Footer.js +1 -2
- package/lib/components/Footer/FooterColumn.js +1 -2
- package/lib/components/Footer/FooterCopyright.js +1 -2
- package/lib/components/Footer/FooterItem.js +1 -2
- package/lib/components/Footer/FooterLogo.js +1 -2
- package/lib/components/Image/Image.js +1 -2
- package/lib/components/JsonViewer/helpers.js +1 -2
- package/lib/components/LanguagePicker/LanguagePicker.js +1 -2
- package/lib/components/LastUpdated/LastUpdated.js +1 -2
- package/lib/components/Link/Link.js +1 -2
- package/lib/components/Loaders/Loading.js +1 -2
- package/lib/components/Loaders/SpinnerLoader.js +1 -2
- package/lib/components/Logo/Logo.js +1 -2
- package/lib/components/Markdown/Markdown.d.ts +1 -9
- package/lib/components/Markdown/styles/headingAnchor.js +1 -2
- package/lib/components/Menu/Menu.js +1 -2
- package/lib/components/Menu/MenuContainer.js +1 -2
- package/lib/components/Menu/MenuItem.js +1 -2
- package/lib/components/Menu/MenuMobile.js +1 -2
- package/lib/components/Navbar/Navbar.js +1 -2
- package/lib/components/Navbar/NavbarItem.js +1 -2
- package/lib/components/Navbar/NavbarLogo.js +1 -2
- package/lib/components/Navbar/NavbarMenu.js +1 -2
- package/lib/components/PageNavigation/NextButton.js +1 -2
- package/lib/components/PageNavigation/PageNavigation.js +1 -2
- package/lib/components/PageNavigation/PreviousButton.js +1 -2
- package/lib/components/Panel/Panel.js +1 -2
- package/lib/components/Portal/Portal.js +1 -2
- package/lib/components/Product/Product.js +1 -2
- package/lib/components/Product/ProductPicker.js +1 -2
- package/lib/components/Search/FilterFields/SearchFilterFieldSelect.js +1 -2
- package/lib/components/Search/FilterFields/SearchFilterFieldTags.js +1 -2
- package/lib/components/Search/Search.js +1 -2
- package/lib/components/Search/SearchDialog.js +1 -2
- package/lib/components/Search/SearchFilter.js +1 -2
- package/lib/components/Search/SearchFilterField.js +1 -2
- package/lib/components/Search/SearchGroups.js +1 -2
- package/lib/components/Search/SearchHighlight.js +1 -2
- package/lib/components/Search/SearchInput.js +1 -2
- package/lib/components/Search/SearchItem.js +1 -2
- package/lib/components/Search/SearchRecent.js +1 -2
- package/lib/components/Search/SearchShortcut.js +1 -2
- package/lib/components/Search/SearchSuggestedPages.js +1 -2
- package/lib/components/Search/SearchTrigger.js +1 -2
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/Select.js +2 -2
- package/lib/components/Select/SelectInput.js +2 -2
- package/lib/components/Sidebar/Sidebar.js +1 -2
- package/lib/components/SidebarActions/styled.d.ts +5 -5
- package/lib/components/SidebarLogo/SidebarLogo.js +1 -2
- package/lib/components/Switch/Switch.js +1 -2
- package/lib/components/TableOfContent/TableOfContent.js +1 -2
- package/lib/components/Tag/Tag.js +1 -2
- package/lib/components/Tooltip/Tooltip.js +2 -2
- package/lib/components/UserMenu/LoginButton.js +1 -2
- package/lib/components/UserMenu/LogoutMenuItem.js +1 -2
- package/lib/components/UserMenu/UserAvatar.js +1 -2
- package/lib/components/UserMenu/UserInfoMenuItem.js +1 -2
- package/lib/components/UserMenu/UserMenu.js +1 -2
- package/lib/components/UserMenu/UserMenuMobile.js +1 -2
- package/lib/components/VersionPicker/VersionPicker.js +2 -2
- package/lib/core/contexts/ThemeDataContext.d.ts +0 -1
- package/lib/core/hooks/__mocks__/search/use-recent-searches.d.ts +0 -1
- package/lib/core/hooks/__mocks__/search/use-search-filter.d.ts +0 -1
- package/lib/core/hooks/__mocks__/search/use-suggested-pages.d.ts +0 -1
- package/lib/core/hooks/__mocks__/use-controlled-state.d.ts +0 -1
- package/lib/core/hooks/__mocks__/use-mobile-menu.d.ts +0 -1
- package/lib/core/hooks/__mocks__/use-theme-config.d.ts +0 -1
- package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +0 -1
- package/lib/core/hooks/feedback/use-report-dialog.js +1 -2
- package/lib/core/hooks/menu/__mocks__/use-mobile-menu-items.d.ts +0 -1
- package/lib/core/hooks/menu/use-collapse.d.ts +1 -1
- package/lib/core/hooks/menu/use-collapse.js +6 -7
- package/lib/core/hooks/menu/use-menu-item-expanded.js +1 -2
- package/lib/core/hooks/menu/use-mobile-menu-items.d.ts +2 -2
- package/lib/core/hooks/menu/use-nested-menu.js +1 -2
- package/lib/core/hooks/search/use-search-dialog.js +1 -2
- package/lib/core/hooks/search/use-search-filter.js +1 -2
- package/lib/core/hooks/use-active-heading.js +1 -2
- package/lib/core/hooks/use-active-section-id.js +1 -2
- package/lib/core/hooks/use-codeblock-tabs-controls.js +1 -2
- package/lib/core/hooks/use-controlled-state.js +1 -2
- package/lib/core/hooks/use-dialog-hotkeys.js +1 -2
- package/lib/core/hooks/use-focus-trap.js +1 -2
- package/lib/core/hooks/use-full-height.js +1 -2
- package/lib/core/hooks/use-language-picker.js +1 -2
- package/lib/core/hooks/use-mobile-menu.js +1 -2
- package/lib/core/hooks/use-modal-scroll-lock.js +1 -2
- package/lib/core/hooks/use-navbar-height.js +1 -2
- package/lib/core/hooks/use-outside-click.js +1 -2
- package/lib/core/hooks/use-product-picker.js +1 -2
- package/lib/core/hooks/use-tabs.d.ts +0 -1
- package/lib/core/hooks/use-tabs.js +1 -2
- package/lib/core/hooks/use-theme-config.js +1 -2
- package/lib/core/templates/Markdown.js +1 -1
- package/lib/core/utils/args-typecheck.js +2 -3
- package/lib/core/utils/attribute-parser.js +1 -2
- package/lib/core/utils/change-text-casing.js +1 -2
- package/lib/core/utils/class-names.js +1 -2
- package/lib/core/utils/color.js +1 -2
- package/lib/core/utils/details.js +1 -2
- package/lib/core/utils/dom.js +2 -2
- package/lib/core/utils/format-date-without-timezone.js +1 -2
- package/lib/core/utils/get-navbar-element.js +1 -2
- package/lib/core/utils/highlight.js +3 -4
- package/lib/core/utils/is-url.js +1 -2
- package/lib/core/utils/js-utils.js +3 -4
- package/lib/core/utils/load-and-navigate.js +4 -5
- package/lib/core/utils/markdoc.js +1 -2
- package/lib/core/utils/menu.js +2 -2
- package/lib/core/utils/replace-hash-in-color.js +1 -2
- package/lib/core/utils/text-transform.js +1 -2
- package/lib/core/utils/text-trimmer.js +1 -2
- package/lib/core/utils/theme-helpers.js +3 -4
- package/lib/core/utils/toc.js +3 -4
- package/lib/core/utils/type-guards.js +5 -5
- package/lib/core/utils/urls.js +14 -15
- package/lib/core/utils/with-load-progress.js +1 -2
- package/lib/icons/AddIcon/AddIcon.d.ts +3 -3
- package/lib/icons/ArrowLeftIcon/ArrowLeftIcon.d.ts +3 -3
- package/lib/icons/ArrowRightIcon/ArrowRightIcon.d.ts +3 -3
- package/lib/icons/ArrowUpRightIcon/ArrowUpRightIcon.d.ts +3 -3
- package/lib/icons/BareMetalServerIcon/BareMetalServerIcon.d.ts +3 -3
- package/lib/icons/BookmarkAddIcon/BookmarkAddIcon.d.ts +3 -3
- package/lib/icons/CharacterIcon/CharacterIcon.d.ts +3 -3
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +3 -3
- package/lib/icons/CheckmarkFilledIcon/CheckmarkFilledIcon.d.ts +3 -3
- package/lib/icons/CheckmarkIcon/CheckmarkIcon.d.ts +3 -3
- package/lib/icons/ChevronDownIcon/ChevronDownIcon.d.ts +3 -3
- package/lib/icons/ChevronLeftIcon/ChevronLeftIcon.d.ts +3 -3
- package/lib/icons/ChevronRightIcon/ChevronRightIcon.d.ts +3 -3
- package/lib/icons/ChevronUpIcon/ChevronUpIcon.d.ts +3 -3
- package/lib/icons/CircleDashIcon/CircleDashIcon.d.ts +3 -3
- package/lib/icons/CleanIcon/CleanIcon.d.ts +3 -3
- package/lib/icons/CloseFilledIcon/CloseFilledIcon.d.ts +3 -3
- package/lib/icons/CloseIcon/CloseIcon.d.ts +3 -3
- package/lib/icons/CloseOutlineIcon/CloseOutlineIcon.d.ts +3 -3
- package/lib/icons/CloudUploadIcon/CloudUploadIcon.d.ts +3 -3
- package/lib/icons/CodeIcon/CodeIcon.d.ts +3 -3
- package/lib/icons/ContrastIcon/ContrastIcon.d.ts +3 -3
- package/lib/icons/CookieIcon/CookieIcon.d.ts +3 -3
- package/lib/icons/CopyIcon/CopyIcon.d.ts +3 -3
- package/lib/icons/CopyLinkIcon/CopyLinkIcon.d.ts +3 -3
- package/lib/icons/DataFormatIcon/DataFormatIcon.d.ts +3 -3
- package/lib/icons/DatabaseIcon/DatabaseIcon.d.ts +3 -3
- package/lib/icons/DocumentAddIcon/DocumentAddIcon.d.ts +3 -3
- package/lib/icons/DocumentBlankIcon/DocumentBlankIcon.d.ts +3 -3
- package/lib/icons/DocumentIcon/DocumentIcon.d.ts +3 -3
- package/lib/icons/DownloadIcon/DownloadIcon.d.ts +3 -3
- package/lib/icons/EditIcon/EditIcon.d.ts +3 -3
- package/lib/icons/EmailIcon/EmailIcon.d.ts +3 -3
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +3 -3
- package/lib/icons/ExportIcon/ExportIcon.d.ts +3 -3
- package/lib/icons/FaceDissatisfiedIcon/FaceDissatisfiedIcon.d.ts +3 -3
- package/lib/icons/FaceNeutralIcon/FaceNeutralIcon.d.ts +3 -3
- package/lib/icons/FaceSatisfiedIcon/FaceSatisfiedIcon.d.ts +3 -3
- package/lib/icons/FileIcon/FileIcon.d.ts +3 -3
- package/lib/icons/FileStorageIcon/FileStorageIcon.d.ts +3 -3
- package/lib/icons/FilterIcon/FilterIcon.d.ts +3 -3
- package/lib/icons/FolderAddIcon/FolderAddIcon.d.ts +3 -3
- package/lib/icons/FolderIcon/FolderIcon.d.ts +3 -3
- package/lib/icons/FolderMoveToIcon/FolderMoveToIcon.d.ts +3 -3
- package/lib/icons/GlobalOutlinedIcon/GlobalOutlinedIcon.d.ts +3 -3
- package/lib/icons/GridIcon/GridIcon.d.ts +3 -3
- package/lib/icons/HorizontalViewIcon/HorizontalViewIcon.d.ts +3 -3
- package/lib/icons/IBMCloudHyperProtectCryptoServicesIcon/IBMCloudHyperProtectCryptoServicesIcon.d.ts +3 -3
- package/lib/icons/InformationFilledIcon/InformationFilledIcon.d.ts +3 -3
- package/lib/icons/InformationIcon/InformationIcon.d.ts +3 -3
- package/lib/icons/JsonIcon/JsonIcon.d.ts +3 -3
- package/lib/icons/LaunchIcon/LaunchIcon.d.ts +3 -3
- package/lib/icons/LinkIcon/LinkIcon.d.ts +3 -3
- package/lib/icons/LogoutIcon/LogoutIcon.d.ts +3 -3
- package/lib/icons/MaximizeIcon/MaximizeIcon.d.ts +3 -3
- package/lib/icons/MenuIcon/MenuIcon.d.ts +3 -3
- package/lib/icons/MinimizeIcon/MinimizeIcon.d.ts +3 -3
- package/lib/icons/MobileSidebarIcon/MobileSidebarIcon.d.ts +3 -3
- package/lib/icons/MoonIcon/MoonIcon.d.ts +3 -3
- package/lib/icons/OverflowMenuHorizontalIcon/OverflowMenuHorizontalIcon.d.ts +3 -3
- package/lib/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon.d.ts +3 -3
- package/lib/icons/PlusCustomIcon/PlusCustomIcon.d.ts +3 -3
- package/lib/icons/RecentlyViewedIcon/RecentlyViewedIcon.d.ts +3 -3
- package/lib/icons/RenewIcon/RenewIcon.d.ts +3 -3
- package/lib/icons/ResetIcon/ResetIcon.d.ts +3 -3
- package/lib/icons/RestartIcon/RestartIcon.d.ts +3 -3
- package/lib/icons/RocketIcon/RocketIcon.d.ts +3 -3
- package/lib/icons/SaveIcon/SaveIcon.d.ts +3 -3
- package/lib/icons/SearchIcon/SearchIcon.d.ts +3 -3
- package/lib/icons/SecurityIcon/SecurityIcon.d.ts +3 -3
- package/lib/icons/SettingsIcon/SettingsIcon.d.ts +3 -3
- package/lib/icons/SidePanelCloseIcon/SidePanelCloseIcon.d.ts +3 -3
- package/lib/icons/SidePanelOpenIcon/SidePanelOpenIcon.d.ts +3 -3
- package/lib/icons/Spinner/Spinner.d.ts +3 -4
- package/lib/icons/StarFilledIcon/StarFilledIcon.d.ts +3 -3
- package/lib/icons/StarIcon/StarIcon.d.ts +3 -3
- package/lib/icons/SubtractIcon/SubtractIcon.d.ts +3 -3
- package/lib/icons/SunIcon/SunIcon.d.ts +3 -3
- package/lib/icons/TableBuiltIcon/TableBuiltIcon.d.ts +3 -3
- package/lib/icons/TimeIcon/TimeIcon.d.ts +3 -3
- package/lib/icons/TrashCanIcon/TrashCanIcon.d.ts +3 -3
- package/lib/icons/UserIcon/UserIcon.d.ts +3 -3
- package/lib/icons/ValueVariableIcon/ValueVariableIcon.d.ts +3 -3
- package/lib/icons/VerticalViewIcon/VerticalViewIcon.d.ts +3 -3
- package/lib/icons/ViewIcon/ViewIcon.d.ts +3 -3
- package/lib/icons/ViewOffIcon/ViewOffIcon.d.ts +3 -3
- package/lib/icons/WarningAltIcon/WarningAltIcon.d.ts +3 -3
- package/lib/icons/WarningFilledIcon/WarningFilledIcon.d.ts +3 -3
- package/lib/icons/WarningSquareIcon/WarningSquareIcon.d.ts +3 -3
- package/lib/layouts/DocumentationLayout.js +1 -2
- package/lib/layouts/Forbidden.js +1 -2
- package/lib/layouts/NotFound.js +1 -2
- package/lib/layouts/OIDCForbidden.js +1 -2
- package/lib/layouts/PageLayout.js +1 -2
- package/lib/layouts/RootLayout.js +1 -2
- package/lib/layouts/ThreePanelLayout.js +1 -2
- package/lib/markdoc/components/Admonition/Admonition.js +1 -2
- package/lib/markdoc/components/Cards/Card.js +1 -2
- package/lib/markdoc/components/Cards/CardIcon.js +1 -2
- package/lib/markdoc/components/Cards/CardImage.js +1 -2
- package/lib/markdoc/components/Cards/Cards.js +1 -2
- package/lib/markdoc/components/CodeBlock/CodeBlock.js +1 -2
- package/lib/markdoc/components/Heading/Heading.js +1 -2
- package/lib/markdoc/components/HtmlBlock/HtmlBlock.js +1 -2
- package/lib/markdoc/components/InlineSvg/InlineSvg.js +1 -2
- package/lib/markdoc/components/MarkdocExample/MarkdocExample.js +1 -2
- package/lib/markdoc/components/Mermaid/Mermaid.js +1 -2
- package/lib/markdoc/components/Tabs/Tab.js +2 -2
- package/lib/markdoc/components/Tabs/Tabs.js +2 -2
- package/lib/markdoc/default.d.ts +2 -2
- package/lib/plugin.js +1 -1
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Product =
|
|
6
|
+
exports.Product = Product;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
function Product({ product, className }) {
|
|
@@ -11,7 +11,6 @@ function Product({ product, className }) {
|
|
|
11
11
|
product.icon && react_1.default.createElement(ProductLogo, { src: product.icon }),
|
|
12
12
|
react_1.default.createElement("span", null, product.name)));
|
|
13
13
|
}
|
|
14
|
-
exports.Product = Product;
|
|
15
14
|
const ProductWrapper = styled_components_1.default.div `
|
|
16
15
|
display: flex;
|
|
17
16
|
align-items: center;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ProductPicker =
|
|
6
|
+
exports.ProductPicker = ProductPicker;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const DropdownMenu_1 = require("../../components/Dropdown/DropdownMenu");
|
|
@@ -28,7 +28,6 @@ function ProductPicker() {
|
|
|
28
28
|
return products.length ? (react_1.default.createElement(ProductDropdown, { withArrow: true, trigger: react_1.default.createElement(Button_1.Button, { variant: "ghost" }, currentProduct ? (react_1.default.createElement(Product_1.Product, { product: currentProduct })) : (react_1.default.createElement("span", { "data-translation-key": "navbar.products" }, translate('navbar.products', 'Products')))), triggerEvent: "hover" },
|
|
29
29
|
react_1.default.createElement(DropdownMenu_1.DropdownMenu, { items: productComponents }))) : null;
|
|
30
30
|
}
|
|
31
|
-
exports.ProductPicker = ProductPicker;
|
|
32
31
|
const ProductDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown).attrs(() => ({
|
|
33
32
|
dataAttributes: {
|
|
34
33
|
'data-component-name': 'Product/ProductPicker',
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SearchFilterFieldSelect =
|
|
29
|
+
exports.SearchFilterFieldSelect = SearchFilterFieldSelect;
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const hooks_1 = require("../../../core/hooks");
|
|
@@ -88,7 +88,6 @@ function SearchFilterFieldSelect({ facet, filter, query, selectedValues, onChang
|
|
|
88
88
|
: facetValueToSelectOption(selectedValues[0])
|
|
89
89
|
: undefined, options: selectOptions, onChange: onChange, placeholder: `${translate('search.filter.field.placeholder', 'Search')} ${facet.name.toLowerCase()}...`, alignment: "start", multiple: isMultiple, searchable: true, footer: selectOptions.length === MAX_SELECT_OPTIONS ? (react_1.default.createElement(FilterSelectFooter, null, "Search to show more items...")) : null, onSearch: onSearch, checkmarkIconPosition: "start" }));
|
|
90
90
|
}
|
|
91
|
-
exports.SearchFilterFieldSelect = SearchFilterFieldSelect;
|
|
92
91
|
const FilterSelectOptionWrapper = styled_components_1.default.div `
|
|
93
92
|
width: 100%;
|
|
94
93
|
display: flex;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SearchFilterFieldTags =
|
|
6
|
+
exports.SearchFilterFieldTags = SearchFilterFieldTags;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const Tag_1 = require("../../../components/Tag/Tag");
|
|
@@ -22,7 +22,6 @@ function SearchFilterFieldTags({ className, facet, selectedValues, onChange, })
|
|
|
22
22
|
isCounterVisible && react_1.default.createElement("span", null, count)));
|
|
23
23
|
})));
|
|
24
24
|
}
|
|
25
|
-
exports.SearchFilterFieldTags = SearchFilterFieldTags;
|
|
26
25
|
const FilterTagsWrapper = styled_components_1.default.div `
|
|
27
26
|
display: flex;
|
|
28
27
|
flex-wrap: wrap;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Search =
|
|
6
|
+
exports.Search = Search;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const SearchTrigger_1 = require("../../components/Search/SearchTrigger");
|
|
@@ -15,7 +15,6 @@ function Search({ className }) {
|
|
|
15
15
|
react_1.default.createElement(SearchTrigger_1.SearchTrigger, { onClick: onOpen }),
|
|
16
16
|
isOpen && react_1.default.createElement(SearchDialog_1.SearchDialog, { onClose: onClose })));
|
|
17
17
|
}
|
|
18
|
-
exports.Search = Search;
|
|
19
18
|
const SearchWrapper = styled_components_1.default.div `
|
|
20
19
|
margin-left: auto;
|
|
21
20
|
`;
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SearchDialog =
|
|
29
|
+
exports.SearchDialog = SearchDialog;
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const SearchInput_1 = require("../../components/Search/SearchInput");
|
|
@@ -125,7 +125,6 @@ function SearchDialog({ onClose, className }) {
|
|
|
125
125
|
translate('search.loading', 'Loading...'))),
|
|
126
126
|
react_1.default.createElement(SearchCancelButton, { "data-translation-key": "search.cancel", variant: "secondary", size: "small", onClick: onClose }, translate('search.cancel', 'Cancel'))))));
|
|
127
127
|
}
|
|
128
|
-
exports.SearchDialog = SearchDialog;
|
|
129
128
|
const SearchOverlay = styled_components_1.default.div `
|
|
130
129
|
position: fixed;
|
|
131
130
|
display: flex;
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SearchFilter =
|
|
29
|
+
exports.SearchFilter = SearchFilter;
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const Button_1 = require("../../components/Button/Button");
|
|
@@ -42,7 +42,6 @@ function SearchFilter({ className, facets, filter, query, onFilterChange, onFilt
|
|
|
42
42
|
React.createElement(Button_1.Button, { "data-translation-key": "search.filter.reset", onClick: onFilterReset, variant: "ghost", icon: React.createElement(CleanIcon_1.CleanIcon, null) }, translate('search.filter.reset', 'Reset filters'))),
|
|
43
43
|
React.createElement(SearchFilterFields, null, facets.map((facet, index) => (React.createElement(SearchFilterField_1.SearchFilterField, { key: `${facet.field}-${index}`, facet: facet, onFilterChange: onFilterChange, onFacetReset: onFacetReset, filter: filter, query: query }))))));
|
|
44
44
|
}
|
|
45
|
-
exports.SearchFilter = SearchFilter;
|
|
46
45
|
const SearchFilterWrapper = styled_components_1.default.div `
|
|
47
46
|
width: var(--search-filter-width);
|
|
48
47
|
display: flex;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SearchFilterField =
|
|
6
|
+
exports.SearchFilterField = SearchFilterField;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const Button_1 = require("../../components/Button/Button");
|
|
@@ -29,7 +29,6 @@ function SearchFilterField({ className, facet, filter, query, onFilterChange, on
|
|
|
29
29
|
['select', 'multi-select'].includes(facet.type) && (react_1.default.createElement(SearchFilterFieldSelect_1.SearchFilterFieldSelect, { facet: facet, filter: filter, query: query, selectedValues: selectedValues, onChange: onChange })),
|
|
30
30
|
facet.type === 'tags' && (react_1.default.createElement(SearchFilterFieldTags_1.SearchFilterFieldTags, { facet: facet, selectedValues: selectedValues, onChange: onChange }))));
|
|
31
31
|
}
|
|
32
|
-
exports.SearchFilterField = SearchFilterField;
|
|
33
32
|
const FilterFieldWrapper = styled_components_1.default.div `
|
|
34
33
|
display: flex;
|
|
35
34
|
flex-direction: column;
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SearchGroups =
|
|
29
|
+
exports.SearchGroups = SearchGroups;
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const Tag_1 = require("../../components/Tag/Tag");
|
|
@@ -52,7 +52,6 @@ function SearchGroups({ facets, searchFilter, onFilterChange, onTopFacetsReset,
|
|
|
52
52
|
isCounterVisible && React.createElement("span", null, count)));
|
|
53
53
|
}))));
|
|
54
54
|
}
|
|
55
|
-
exports.SearchGroups = SearchGroups;
|
|
56
55
|
const SearchGroupsWrapper = styled_components_1.default.div `
|
|
57
56
|
display: flex;
|
|
58
57
|
gap: 4px;
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.searchHighlight =
|
|
29
|
+
exports.searchHighlight = searchHighlight;
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
function slicer(str, arr) {
|
|
@@ -61,7 +61,6 @@ function searchHighlight(text) {
|
|
|
61
61
|
React.createElement(Highlight, null, entry),
|
|
62
62
|
suf));
|
|
63
63
|
}
|
|
64
|
-
exports.searchHighlight = searchHighlight;
|
|
65
64
|
const Highlight = styled_components_1.default.span `
|
|
66
65
|
background-color: var(--search-highlight-bg-color);
|
|
67
66
|
color: var(--search-highlight-text-color);
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SearchInput =
|
|
6
|
+
exports.SearchInput = SearchInput;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const SearchIcon_1 = require("../../icons/SearchIcon/SearchIcon");
|
|
@@ -27,7 +27,6 @@ function SearchInput({ placeholder, value, onChange, isLoading, className, }) {
|
|
|
27
27
|
react_1.default.createElement(SearchInputField, { value: value, placeholder: placeholder, onChange: handleOnChange, onClick: stopPropagation }),
|
|
28
28
|
!!value && (react_1.default.createElement(ResetButton, { variant: "ghost", onClick: handleOnReset, icon: react_1.default.createElement(CloseFilledIcon_1.CloseFilledIcon, null) }))));
|
|
29
29
|
}
|
|
30
|
-
exports.SearchInput = SearchInput;
|
|
31
30
|
const SearchInputWrapper = styled_components_1.default.div `
|
|
32
31
|
display: flex;
|
|
33
32
|
flex-grow: 1;
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SearchItem =
|
|
29
|
+
exports.SearchItem = SearchItem;
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const HttpTag_1 = require("../../components/Tags/HttpTag");
|
|
@@ -72,7 +72,6 @@ function SearchItem({ item, className, product }) {
|
|
|
72
72
|
? (0, SearchHighlight_1.searchHighlight)(highlight.path.join(' → '))
|
|
73
73
|
: (_d = document.path) === null || _d === void 0 ? void 0 : _d.join(' → '))))));
|
|
74
74
|
}
|
|
75
|
-
exports.SearchItem = SearchItem;
|
|
76
75
|
const SearchItemWrapper = (0, styled_components_1.default)(Link_1.Link) `
|
|
77
76
|
display: block;
|
|
78
77
|
padding: var(--search-item-padding);
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SearchRecent =
|
|
29
|
+
exports.SearchRecent = SearchRecent;
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const utils_1 = require("../../core/utils");
|
|
@@ -59,7 +59,6 @@ function SearchRecent({ onSelect, className }) {
|
|
|
59
59
|
item),
|
|
60
60
|
React.createElement(SearchRecentRemoveButton, { variant: "ghost", icon: React.createElement(CloseIcon_1.CloseIcon, null), onClick: (e) => handleOnRemove(e, item), size: "small" })))))));
|
|
61
61
|
}
|
|
62
|
-
exports.SearchRecent = SearchRecent;
|
|
63
62
|
const SearchRecentWrapper = styled_components_1.default.div `
|
|
64
63
|
display: flex;
|
|
65
64
|
flex-direction: column;
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SearchShortcut =
|
|
29
|
+
exports.SearchShortcut = SearchShortcut;
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
function SearchShortcut({ combination, text, className }) {
|
|
@@ -34,7 +34,6 @@ function SearchShortcut({ combination, text, className }) {
|
|
|
34
34
|
React.createElement(ShortcutKey, null, combination),
|
|
35
35
|
text));
|
|
36
36
|
}
|
|
37
|
-
exports.SearchShortcut = SearchShortcut;
|
|
38
37
|
const ShortcutWrapper = styled_components_1.default.div `
|
|
39
38
|
display: flex;
|
|
40
39
|
font-size: var(--font-size-sm);
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SearchSuggestedPages =
|
|
29
|
+
exports.SearchSuggestedPages = SearchSuggestedPages;
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const hooks_1 = require("../../core/hooks");
|
|
@@ -45,7 +45,6 @@ function SearchSuggestedPages({ className }) {
|
|
|
45
45
|
React.createElement(RecentlyViewedIcon_1.RecentlyViewedIcon, { color: "--search-item-text-color" }),
|
|
46
46
|
page.label))) : null))));
|
|
47
47
|
}
|
|
48
|
-
exports.SearchSuggestedPages = SearchSuggestedPages;
|
|
49
48
|
const SearchSuggestedWrapper = styled_components_1.default.div `
|
|
50
49
|
display: flex;
|
|
51
50
|
flex-direction: column;
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SearchTrigger =
|
|
29
|
+
exports.SearchTrigger = SearchTrigger;
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const hooks_1 = require("../../core/hooks");
|
|
@@ -56,7 +56,6 @@ function SearchTrigger({ onClick, className }) {
|
|
|
56
56
|
translate('search.navbar.label', 'Search'),
|
|
57
57
|
mainShortcutKey && React.createElement("span", null, mainShortcutKey))));
|
|
58
58
|
}
|
|
59
|
-
exports.SearchTrigger = SearchTrigger;
|
|
60
59
|
const SearchTriggerWrapper = styled_components_1.default.div `
|
|
61
60
|
color: var(--search-trigger-color);
|
|
62
61
|
line-height: var(--search-trigger-line-height);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SelectProps } from '../../core/types/select';
|
|
2
2
|
export declare function Select<T>(props: SelectProps<T>): JSX.Element;
|
|
3
3
|
export declare const SelectWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
4
|
-
disabled?: boolean
|
|
4
|
+
disabled?: boolean;
|
|
5
5
|
}, never>;
|
|
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SelectWrapper =
|
|
29
|
+
exports.SelectWrapper = void 0;
|
|
30
|
+
exports.Select = Select;
|
|
30
31
|
const react_1 = __importStar(require("react"));
|
|
31
32
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
33
|
const CheckmarkIcon_1 = require("../../icons/CheckmarkIcon/CheckmarkIcon");
|
|
@@ -161,7 +162,6 @@ function Select(props) {
|
|
|
161
162
|
renderDivider && index !== options.length - 1 ? renderDivider() : null));
|
|
162
163
|
}) || 'No results')))));
|
|
163
164
|
}
|
|
164
|
-
exports.Select = Select;
|
|
165
165
|
exports.SelectWrapper = styled_components_1.default.div `
|
|
166
166
|
display: flex;
|
|
167
167
|
position: relative;
|
|
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SelectInputWrapper =
|
|
29
|
+
exports.SelectInputWrapper = void 0;
|
|
30
|
+
exports.SelectInput = SelectInput;
|
|
30
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
31
32
|
const react_1 = __importStar(require("react"));
|
|
32
33
|
const Tag_1 = require("../../components/Tag/Tag");
|
|
@@ -82,7 +83,6 @@ function SelectInput(props) {
|
|
|
82
83
|
!!(clearable && selectedOptions.length) && (react_1.default.createElement(Button_1.Button, { size: "small", variant: "text", icon: react_1.default.createElement(CloseIcon_1.CloseIcon, null), onClick: onClearAllHandler })))),
|
|
83
84
|
customIcon || icon));
|
|
84
85
|
}
|
|
85
|
-
exports.SelectInput = SelectInput;
|
|
86
86
|
exports.SelectInputWrapper = styled_components_1.default.div `
|
|
87
87
|
width: 100%;
|
|
88
88
|
display: flex;
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Sidebar =
|
|
29
|
+
exports.Sidebar = Sidebar;
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const utils_1 = require("../../core/utils");
|
|
@@ -48,7 +48,6 @@ function Sidebar({ versions, menu, footer, header, growContent, collapsed, class
|
|
|
48
48
|
react_1.default.createElement(MenuContainer_1.MenuContainer, { hidden: mappedCollapsed, growContent: growContent, animation: menuItemsAnimation }, menu),
|
|
49
49
|
footer && !isOpen ? (react_1.default.createElement(SidebarFooter, { collapsed: mappedCollapsed, "data-component-name": "Sidebar/FooterWrapper" }, footer)) : null));
|
|
50
50
|
}
|
|
51
|
-
exports.Sidebar = Sidebar;
|
|
52
51
|
const SidebarContent = styled_components_1.default.aside `
|
|
53
52
|
border-right: 1px solid var(--sidebar-border-color);
|
|
54
53
|
position: fixed;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const StyledChangeViewButton: import("styled-components").StyledComponent<"span", any, {
|
|
2
|
-
collapsedSidebar?: boolean
|
|
2
|
+
collapsedSidebar?: boolean;
|
|
3
3
|
}, never>;
|
|
4
4
|
export declare const StyledChangeViewButtonWrap: import("styled-components").StyledComponent<"span", any, {
|
|
5
|
-
active?: boolean
|
|
5
|
+
active?: boolean;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const ControlsWrap: import("styled-components").StyledComponent<"span", any, {
|
|
8
|
-
iconCount?: number
|
|
9
|
-
isCollapsed?: boolean
|
|
8
|
+
iconCount?: number;
|
|
9
|
+
isCollapsed?: boolean;
|
|
10
10
|
}, never>;
|
|
11
11
|
export declare const ControlsWrapChangeLayoutButtons: import("styled-components").StyledComponent<"span", any, {
|
|
12
|
-
isCollapsed?: boolean
|
|
12
|
+
isCollapsed?: boolean;
|
|
13
13
|
}, never>;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SidebarLogo =
|
|
6
|
+
exports.SidebarLogo = SidebarLogo;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
function SidebarLogo({ imageUrl, href, altText, backgroundColor, dataTestId, className, } = {}) {
|
|
@@ -13,7 +13,6 @@ function SidebarLogo({ imageUrl, href, altText, backgroundColor, dataTestId, cla
|
|
|
13
13
|
const logo = react_1.default.createElement(LogoImgEl, { src: imageUrl, alt: altText || 'logo' });
|
|
14
14
|
return (react_1.default.createElement(LogoWrap, { "data-testid": dataTestId, style: { backgroundColor }, "data-component-name": "SidebarLogo/SidebarLogo", className: className }, href ? react_1.default.createElement(Link, { href: href }, logo) : logo));
|
|
15
15
|
}
|
|
16
|
-
exports.SidebarLogo = SidebarLogo;
|
|
17
16
|
const LogoImgEl = styled_components_1.default.img `
|
|
18
17
|
max-height: var(--sidebar-logo-max-height);
|
|
19
18
|
max-width: var(--sidebar-logo-max-width);
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Switch =
|
|
29
|
+
exports.Switch = Switch;
|
|
30
30
|
const react_1 = __importDefault(require("react"));
|
|
31
31
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
function Switch({ value = false, disabled = false, onChange }) {
|
|
@@ -38,7 +38,6 @@ function Switch({ value = false, disabled = false, onChange }) {
|
|
|
38
38
|
return (react_1.default.createElement(SwitchWrapper, { onClick: handleClick, role: "switch", selected: value, disabled: disabled },
|
|
39
39
|
react_1.default.createElement(Knob, { selected: value })));
|
|
40
40
|
}
|
|
41
|
-
exports.Switch = Switch;
|
|
42
41
|
const SwitchWrapper = styled_components_1.default.div `
|
|
43
42
|
width: var(--switch-width);
|
|
44
43
|
height: var(--switch-height);
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.TableOfContent =
|
|
29
|
+
exports.TableOfContent = TableOfContent;
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const hooks_1 = require("../../core/hooks");
|
|
@@ -57,7 +57,6 @@ function TableOfContent(props) {
|
|
|
57
57
|
return (React.createElement(TableOfContentMenuItem, { key: href + idx, href: href, depth: heading.depth - leastDepth + 1 || 0, className: activeHeadingId === heading.id ? 'active' : '', dangerouslySetInnerHTML: { __html: heading.value || '' }, "data-testid": `toc-${heading.value}`, onClick: () => telemetry.send('toc_item_clicked', {}) }));
|
|
58
58
|
})))));
|
|
59
59
|
}
|
|
60
|
-
exports.TableOfContent = TableOfContent;
|
|
61
60
|
const TableOfContentMenu = styled_components_1.default.aside `
|
|
62
61
|
background-color: var(--toc-bg-color);
|
|
63
62
|
flex-shrink: 0;
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Tag =
|
|
17
|
+
exports.Tag = Tag;
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
|
19
19
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
20
20
|
const CloseIcon_1 = require("../../icons/CloseIcon/CloseIcon");
|
|
@@ -30,7 +30,6 @@ function Tag(_a) {
|
|
|
30
30
|
react_1.default.createElement(CloseIcon_1.CloseIcon, null))),
|
|
31
31
|
active && react_1.default.createElement(ActiveIcon, null)));
|
|
32
32
|
}
|
|
33
|
-
exports.Tag = Tag;
|
|
34
33
|
const ContentWrapper = styled_components_1.default.div `
|
|
35
34
|
display: inline-flex;
|
|
36
35
|
align-items: center;
|
|
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Tooltip =
|
|
26
|
+
exports.Tooltip = void 0;
|
|
27
|
+
exports.TooltipComponent = TooltipComponent;
|
|
27
28
|
const react_1 = __importStar(require("react"));
|
|
28
29
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
29
30
|
const hooks_1 = require("../../core/hooks");
|
|
@@ -51,7 +52,6 @@ function TooltipComponent({ children, isOpen, tip, withArrow = true, placement =
|
|
|
51
52
|
children,
|
|
52
53
|
isOpened && (react_1.default.createElement(TooltipBody, { "data-testid": dataTestId || (typeof tip === 'string' ? tip : ''), placement: placement, width: width, withArrow: withArrow }, tip))));
|
|
53
54
|
}
|
|
54
|
-
exports.TooltipComponent = TooltipComponent;
|
|
55
55
|
exports.Tooltip = (0, react_1.memo)(TooltipComponent);
|
|
56
56
|
const PLACEMENTS = {
|
|
57
57
|
top: (0, styled_components_1.css) `
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LoginButton =
|
|
6
|
+
exports.LoginButton = LoginButton;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const hooks_1 = require("../../core/hooks");
|
|
9
9
|
const Button_1 = require("../../components/Button/Button");
|
|
@@ -14,5 +14,4 @@ function LoginButton({ href, className }) {
|
|
|
14
14
|
return (react_1.default.createElement("div", { "data-component-name": "UserMenu/LoginButton", className: className },
|
|
15
15
|
react_1.default.createElement(Button_1.Button, { "data-translation-key": "userMenu.login", to: href, onClick: () => telemetry.send('login_button_clicked', {}), "data-testid": "login-btn", extraClass: className, variant: "primary", size: "medium" }, translate('userMenu.login', 'Login'))));
|
|
16
16
|
}
|
|
17
|
-
exports.LoginButton = LoginButton;
|
|
18
17
|
//# sourceMappingURL=LoginButton.js.map
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LogoutMenuItem =
|
|
6
|
+
exports.LogoutMenuItem = LogoutMenuItem;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const hooks_1 = require("../../core/hooks");
|
|
9
9
|
const LogoutIcon_1 = require("../../icons/LogoutIcon/LogoutIcon");
|
|
@@ -19,5 +19,4 @@ function LogoutMenuItem({ iconOnly, className }) {
|
|
|
19
19
|
};
|
|
20
20
|
return (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { className: className, dangerous: true, "data-component-name": "UserMenu/LogoutMenuItem", onAction: handleClick, "data-translation-key": "userMenu.logout", prefix: react_1.default.createElement(LogoutIcon_1.LogoutIcon, null), style: { width: iconOnly ? 'fit-content' : '100%' } }, iconOnly ? null : translate('userMenu.logout', 'Log out')));
|
|
21
21
|
}
|
|
22
|
-
exports.LogoutMenuItem = LogoutMenuItem;
|
|
23
22
|
//# sourceMappingURL=LogoutMenuItem.js.map
|
|
@@ -3,14 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UserAvatar =
|
|
6
|
+
exports.UserAvatar = UserAvatar;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const UserIcon_1 = require("../../icons/UserIcon/UserIcon");
|
|
10
10
|
function UserAvatar({ picture, className, height = 'var(--user-menu-navbar-button-height)', width = 'var(--user-menu-navbar-button-width)', }) {
|
|
11
11
|
return (react_1.default.createElement(UserAvatarWrapper, { "data-component-name": "UserMenu/UserAvatar", className: className, height: height, width: width }, picture ? react_1.default.createElement("img", { src: picture, alt: "profile" }) : react_1.default.createElement(UserIcon_1.UserIcon, null)));
|
|
12
12
|
}
|
|
13
|
-
exports.UserAvatar = UserAvatar;
|
|
14
13
|
const UserAvatarWrapper = styled_components_1.default.div `
|
|
15
14
|
width: ${({ width }) => width};
|
|
16
15
|
height: ${({ height }) => height};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UserInfoMenuItem =
|
|
6
|
+
exports.UserInfoMenuItem = UserInfoMenuItem;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const DropdownMenuItem_1 = require("../../components/Dropdown/DropdownMenuItem");
|
|
@@ -16,7 +16,6 @@ function UserInfoMenuItem({ name, picture, email, className, }) {
|
|
|
16
16
|
name !== email ? react_1.default.createElement(UserName, null, name) : null,
|
|
17
17
|
email ? react_1.default.createElement(Email, { title: email }, email) : null))));
|
|
18
18
|
}
|
|
19
|
-
exports.UserInfoMenuItem = UserInfoMenuItem;
|
|
20
19
|
const UserInfoMenuItemWrapper = (0, styled_components_1.default)(DropdownMenuItem_1.DropdownMenuItem).attrs({
|
|
21
20
|
'data-component-name': 'UserMenu/UserInfoMenuItem',
|
|
22
21
|
}) `
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UserMenu =
|
|
6
|
+
exports.UserMenu = UserMenu;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const DropdownMenu_1 = require("../../components/Dropdown/DropdownMenu");
|
|
@@ -49,7 +49,6 @@ function UserMenu({ className }) {
|
|
|
49
49
|
react_1.default.createElement(UserAvatar_1.UserAvatar, { picture: userData.picture })) },
|
|
50
50
|
react_1.default.createElement(DropdownMenu_1.DropdownMenu, null, items))));
|
|
51
51
|
}
|
|
52
|
-
exports.UserMenu = UserMenu;
|
|
53
52
|
const UserMenuWrapper = styled_components_1.default.div `
|
|
54
53
|
display: none;
|
|
55
54
|
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UserMenuMobile =
|
|
6
|
+
exports.UserMenuMobile = UserMenuMobile;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const hooks_1 = require("../../core/hooks");
|
|
@@ -29,7 +29,6 @@ function UserMenuMobile({ className }) {
|
|
|
29
29
|
react_1.default.createElement("div", null, userData.name)),
|
|
30
30
|
react_1.default.createElement(LogoutMenuItem_1.LogoutMenuItem, { iconOnly: true })));
|
|
31
31
|
}
|
|
32
|
-
exports.UserMenuMobile = UserMenuMobile;
|
|
33
32
|
const UserMenuMobileWrapper = styled_components_1.default.div `
|
|
34
33
|
display: flex;
|
|
35
34
|
justify-content: space-between;
|
|
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.VersionPickerSelect =
|
|
29
|
+
exports.VersionPickerSelect = void 0;
|
|
30
|
+
exports.VersionPicker = VersionPicker;
|
|
30
31
|
const React = __importStar(require("react"));
|
|
31
32
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
33
|
const hooks_1 = require("../../core/hooks");
|
|
@@ -58,7 +59,6 @@ function VersionPicker(props) {
|
|
|
58
59
|
React.createElement(VersionPickerLabel, { "data-translation-key": "versionPicker.label" }, translate('versionPicker.label', 'Version:')),
|
|
59
60
|
React.createElement(exports.VersionPickerSelect, { placeholder: translate('versionPicker.unversioned', 'All versions'), disabled: !options.length, options: options, value: value, onChange: handleOnChange })));
|
|
60
61
|
}
|
|
61
|
-
exports.VersionPicker = VersionPicker;
|
|
62
62
|
const VersionPickerLabel = styled_components_1.default.label `
|
|
63
63
|
font-size: var(--version-picker-label-font-size);
|
|
64
64
|
font-weight: var(--version-picker-label-font-weight);
|