@redocly/theme 0.67.0-next.0 → 0.67.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Admonition/Admonition.js +9 -9
- package/lib/components/Badge/Badge.d.ts +1 -1
- package/lib/components/Badge/Badge.js +4 -4
- package/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/Button.js +16 -17
- package/lib/components/Buttons/AIAssistantButton.js +2 -0
- package/lib/components/Catalog/CatalogActionsRow.js +3 -1
- package/lib/components/Catalog/CatalogAvatar.d.ts +3 -1
- package/lib/components/Catalog/CatalogAvatar.js +3 -3
- package/lib/components/Catalog/CatalogCardView/CatalogCard.js +4 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNodeContent.js +7 -7
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +6 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.js +4 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +3 -5
- package/lib/components/Catalog/CatalogEntityTypeIcon.js +15 -11
- package/lib/components/Catalog/CatalogEntityTypeTag.js +5 -5
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +5 -3
- package/lib/components/CatalogClassic/CatalogClassic.d.ts +4 -2
- package/lib/components/CatalogClassic/CatalogClassic.js +3 -1
- package/lib/components/CodeBlock/CodeBlockContainer.js +16 -4
- package/lib/components/CodeBlock/CodeBlockControls.d.ts +2 -1
- package/lib/components/CodeBlock/CodeBlockControls.js +9 -7
- package/lib/components/CodeBlock/CodeBlockTabs.js +2 -2
- package/lib/components/Dropdown/Dropdown.js +6 -6
- package/lib/components/Dropdown/DropdownMenuItem.d.ts +1 -1
- package/lib/components/Feedback/Comment.js +3 -3
- package/lib/components/Feedback/Mood.js +3 -3
- package/lib/components/Filter/FilterContent.js +2 -2
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/FooterColumn.js +2 -2
- package/lib/components/Footer/FooterItem.js +5 -5
- package/lib/components/Image/Image.js +2 -2
- package/lib/components/LastUpdated/LastUpdated.js +2 -2
- package/lib/components/Link/Link.d.ts +2 -19
- package/lib/components/Link/Link.js +2 -9
- package/lib/components/Loaders/Loading.js +2 -2
- package/lib/components/Loaders/SpinnerLoader.js +4 -4
- package/lib/components/Markdown/Markdown.d.ts +7 -10
- package/lib/components/Markdown/Markdown.js +6 -3
- package/lib/components/Marker/Marker.js +3 -3
- package/lib/components/Menu/MenuContainer.d.ts +2 -2
- package/lib/components/Menu/MenuContainer.js +9 -11
- package/lib/components/Menu/MenuItem.js +14 -14
- package/lib/components/Menu/MenuMobile.js +8 -8
- package/lib/components/Navbar/NavbarItem.js +7 -7
- package/lib/components/PageNavigation/NavigationButton.js +3 -3
- package/lib/components/Panel/PanelBody.d.ts +5 -5
- package/lib/components/Panel/PanelBody.js +6 -3
- package/lib/components/Panel/PanelHeader.d.ts +2 -5
- package/lib/components/Panel/PanelHeader.js +6 -2
- package/lib/components/Search/SearchAiMessage.js +10 -8
- package/lib/components/Search/SearchDialog.js +6 -0
- package/lib/components/Search/SearchSuggestedPages.js +2 -2
- package/lib/components/Select/Select.js +3 -1
- package/lib/components/Select/SelectInput.d.ts +1 -0
- package/lib/components/Select/SelectInput.js +8 -8
- package/lib/components/Sidebar/Sidebar.d.ts +4 -2
- package/lib/components/Sidebar/Sidebar.js +10 -8
- package/lib/components/SidebarActions/styled.d.ts +6 -6
- package/lib/components/SidebarActions/styled.js +12 -4
- package/lib/components/StatusCode/StatusCode.d.ts +6 -4
- package/lib/components/StatusCode/StatusCode.js +8 -2
- package/lib/components/Switch/Switch.js +13 -13
- package/lib/components/TableOfContent/TableOfContent.js +2 -2
- package/lib/components/Tag/Tag.js +11 -11
- package/lib/components/Tooltip/AnchorTooltip.js +26 -25
- package/lib/components/Tooltip/JsTooltip.js +5 -5
- package/lib/components/Typography/CompactTypography.d.ts +27 -11
- package/lib/components/Typography/CompactTypography.js +2 -2
- package/lib/components/Typography/Typography.d.ts +6 -2
- package/lib/components/Typography/Typography.js +18 -3
- package/lib/components/UserMenu/UserAvatar.js +5 -5
- package/lib/core/contexts/ThemeDataContext.d.ts +1 -1
- package/lib/core/hooks/feedback/use-report-dialog.d.ts +8 -5
- package/lib/core/styles/global.js +1 -0
- package/lib/core/templates/Markdown.js +5 -6
- package/lib/core/types/index.d.ts +1 -0
- package/lib/core/types/link.d.ts +19 -0
- package/lib/core/types/link.js +3 -0
- package/lib/core/utils/details.d.ts +1 -1
- package/lib/core/utils/details.js +3 -0
- package/lib/core/utils/dom.d.ts +0 -1
- package/lib/core/utils/dom.js +0 -9
- package/lib/core/utils/index.d.ts +0 -1
- package/lib/core/utils/index.js +0 -1
- package/lib/icons/AiStarsGradientIcon/AiStarsGradientIcon.d.ts +1 -1
- package/lib/icons/AiStarsGradientIcon/AiStarsGradientIcon.js +6 -1
- package/lib/icons/AiStarsIcon/AiStarsIcon.d.ts +1 -1
- package/lib/icons/AiStarsIcon/AiStarsIcon.js +6 -1
- package/lib/icons/MagicWandIcon/MagicWandIcon.d.ts +23 -0
- package/lib/icons/MagicWandIcon/MagicWandIcon.js +25 -0
- package/lib/icons/ReturnKeyIcon/ReturnKeyIcon.d.ts +25 -5
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/layouts/DocumentationLayout.js +2 -2
- package/lib/layouts/ThreePanelLayout.d.ts +27 -7
- package/lib/layouts/ThreePanelLayout.js +11 -8
- package/lib/markdoc/components/CodeWalkthrough/CodeContainer.js +2 -2
- package/lib/markdoc/components/CodeWalkthrough/CodePanelHeader.js +2 -2
- package/lib/markdoc/components/CodeWalkthrough/CodePanelPreview.js +2 -2
- package/lib/markdoc/components/CodeWalkthrough/CodeStep.d.ts +4 -2
- package/lib/markdoc/components/CodeWalkthrough/CodeStep.js +6 -2
- package/lib/markdoc/components/Image/Image.js +3 -3
- package/lib/markdoc/components/Tabs/TabItemFragment.d.ts +9 -0
- package/lib/markdoc/components/Tabs/TabItemFragment.js +11 -0
- package/lib/markdoc/components/Tabs/TabList.d.ts +7 -4
- package/lib/markdoc/components/Tabs/TabList.js +6 -4
- package/lib/markdoc/components/Tabs/Tabs.d.ts +3 -9
- package/lib/markdoc/components/Tabs/Tabs.js +12 -5
- package/lib/markdoc/components/default.d.ts +1 -0
- package/lib/markdoc/components/default.js +1 -0
- package/lib/markdoc/tags/tab.js +1 -1
- package/lib/markdoc/tags/tabs.js +1 -1
- package/package.json +1 -2
- package/src/components/Admonition/Admonition.tsx +11 -11
- package/src/components/Badge/Badge.tsx +11 -6
- package/src/components/Button/Button.tsx +51 -21
- package/src/components/Buttons/AIAssistantButton.tsx +2 -0
- package/src/components/Catalog/CatalogActionsRow.tsx +3 -1
- package/src/components/Catalog/CatalogAvatar.tsx +6 -10
- package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +6 -6
- package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNodeContent.tsx +14 -14
- package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +11 -11
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +4 -4
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +8 -11
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +10 -9
- package/src/components/Catalog/CatalogEntityTypeIcon.tsx +22 -16
- package/src/components/Catalog/CatalogEntityTypeTag.tsx +8 -8
- package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +8 -6
- package/src/components/CatalogClassic/CatalogClassic.tsx +3 -1
- package/src/components/CodeBlock/CodeBlockContainer.tsx +23 -7
- package/src/components/CodeBlock/CodeBlockControls.tsx +16 -10
- package/src/components/CodeBlock/CodeBlockTabs.tsx +4 -4
- package/src/components/Dropdown/Dropdown.tsx +9 -9
- package/src/components/Dropdown/DropdownMenuItem.tsx +1 -1
- package/src/components/Feedback/Comment.tsx +5 -5
- package/src/components/Feedback/Mood.tsx +5 -5
- package/src/components/Filter/FilterContent.tsx +4 -4
- package/src/components/Filter/FilterPopover.tsx +1 -1
- package/src/components/Footer/Footer.tsx +4 -4
- package/src/components/Footer/FooterColumn.tsx +3 -3
- package/src/components/Footer/FooterItem.tsx +9 -9
- package/src/components/Image/Image.tsx +3 -3
- package/src/components/LastUpdated/LastUpdated.tsx +4 -4
- package/src/components/Link/Link.tsx +6 -51
- package/src/components/Loaders/Loading.tsx +3 -3
- package/src/components/Loaders/SpinnerLoader.tsx +5 -5
- package/src/components/Markdown/Markdown.tsx +7 -7
- package/src/components/Marker/Marker.tsx +4 -4
- package/src/components/Menu/MenuContainer.tsx +32 -16
- package/src/components/Menu/MenuItem.tsx +34 -29
- package/src/components/Menu/MenuMobile.tsx +12 -12
- package/src/components/Navbar/NavbarItem.tsx +13 -13
- package/src/components/PageNavigation/NavigationButton.tsx +4 -4
- package/src/components/Panel/PanelBody.tsx +7 -4
- package/src/components/Panel/PanelHeader.tsx +9 -4
- package/src/components/Search/SearchAiMessage.tsx +17 -15
- package/src/components/Search/SearchDialog.tsx +6 -0
- package/src/components/Search/SearchSuggestedPages.tsx +20 -5
- package/src/components/Select/Select.tsx +3 -1
- package/src/components/Select/SelectInput.tsx +10 -9
- package/src/components/Sidebar/Sidebar.tsx +15 -13
- package/src/components/SidebarActions/styled.ts +12 -4
- package/src/components/StatusCode/StatusCode.tsx +12 -4
- package/src/components/Switch/Switch.tsx +21 -21
- package/src/components/TableOfContent/TableOfContent.tsx +3 -3
- package/src/components/Tag/Tag.tsx +34 -27
- package/src/components/Tooltip/AnchorTooltip.tsx +50 -42
- package/src/components/Tooltip/JsTooltip.tsx +14 -13
- package/src/components/Typography/CompactTypography.tsx +4 -4
- package/src/components/Typography/Typography.tsx +21 -5
- package/src/components/UserMenu/UserAvatar.tsx +7 -7
- package/src/core/contexts/ThemeDataContext.tsx +1 -1
- package/src/core/hooks/feedback/use-report-dialog.ts +1 -5
- package/src/core/styles/dark.ts +1 -1
- package/src/core/styles/global.ts +1 -0
- package/src/core/templates/Markdown.tsx +6 -7
- package/src/core/types/index.ts +1 -0
- package/src/core/types/link.ts +20 -0
- package/src/core/utils/details.ts +4 -0
- package/src/core/utils/dom.ts +0 -8
- package/src/core/utils/index.ts +0 -1
- package/src/icons/AiStarsGradientIcon/AiStarsGradientIcon.tsx +9 -3
- package/src/icons/AiStarsIcon/AiStarsIcon.tsx +9 -3
- package/src/icons/MagicWandIcon/MagicWandIcon.tsx +26 -0
- package/src/icons/ReturnKeyIcon/ReturnKeyIcon.tsx +1 -1
- package/src/index.ts +1 -0
- package/src/layouts/DocumentationLayout.tsx +3 -3
- package/src/layouts/ThreePanelLayout.tsx +27 -14
- package/src/markdoc/components/CodeWalkthrough/CodeContainer.tsx +4 -4
- package/src/markdoc/components/CodeWalkthrough/CodePanelHeader.tsx +4 -4
- package/src/markdoc/components/CodeWalkthrough/CodePanelPreview.tsx +3 -3
- package/src/markdoc/components/CodeWalkthrough/CodeStep.tsx +6 -2
- package/src/markdoc/components/Image/Image.tsx +4 -4
- package/src/markdoc/components/Tabs/TabItemFragment.tsx +15 -0
- package/src/markdoc/components/Tabs/TabList.tsx +9 -6
- package/src/markdoc/components/Tabs/Tabs.tsx +21 -15
- package/src/markdoc/components/default.ts +1 -0
- package/src/markdoc/tags/tab.ts +1 -1
- package/src/markdoc/tags/tabs.ts +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
3
|
import type { CodeBlockItems } from '../../components/CodeBlock/CodeBlock';
|
|
4
|
+
import { ReportButtonProps } from '../../core/hooks';
|
|
4
5
|
export type CodeBlockControlsProps = {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
className?: string;
|
|
@@ -22,7 +23,7 @@ type ControlProps = {
|
|
|
22
23
|
label?: string;
|
|
23
24
|
tooltipText?: string;
|
|
24
25
|
onClick?: () => void;
|
|
25
|
-
props?:
|
|
26
|
+
props?: ReportButtonProps;
|
|
26
27
|
};
|
|
27
28
|
type CopyControlProps = ControlProps & {
|
|
28
29
|
data?: string;
|
|
@@ -18,7 +18,7 @@ const WarningSquareIcon_1 = require("../../icons/WarningSquareIcon/WarningSquare
|
|
|
18
18
|
const Button_1 = require("../../components/Button/Button");
|
|
19
19
|
const CodeBlockDropdown_1 = require("../../components/CodeBlock/CodeBlockDropdown");
|
|
20
20
|
function CodeBlockControls({ children, className, title, controls, tabs, dropdown, }) {
|
|
21
|
-
var _a, _b, _c, _d, _e;
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
22
22
|
const { codeSnippet } = (0, hooks_1.useThemeConfig)();
|
|
23
23
|
const { useTelemetry, useTranslate } = (0, hooks_1.useThemeHooks)();
|
|
24
24
|
const { translate } = useTranslate();
|
|
@@ -38,12 +38,14 @@ function CodeBlockControls({ children, className, title, controls, tabs, dropdow
|
|
|
38
38
|
tabs && react_1.default.createElement(CodeBlockTabs_1.CodeBlockTabs, { tabs: tabs }),
|
|
39
39
|
react_1.default.createElement(ControlsWrapper, null,
|
|
40
40
|
dropdown && react_1.default.createElement(CodeBlockDropdown_1.CodeBlockDropdown, Object.assign({}, dropdown)),
|
|
41
|
-
report && !report.hidden && !((_a = report === null || report === void 0 ? void 0 : report.props) === null || _a === void 0 ? void 0 : _a.hide) ? (react_1.default.createElement(Tooltip_1.Tooltip, { tip:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
report && !report.hidden && !((_a = report === null || report === void 0 ? void 0 : report.props) === null || _a === void 0 ? void 0 : _a.hide) ? (react_1.default.createElement(Tooltip_1.Tooltip, { tip: ((_b = report.props) === null || _b === void 0 ? void 0 : _b.tooltip) ||
|
|
42
|
+
translate('codeSnippet.report.tooltipText', 'Report a problem'), placement: "top", arrowPosition: "right" }, react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "report-button", icon: controlsType === 'icon' ? react_1.default.createElement(WarningSquareIcon_1.WarningSquareIcon, { size: "18px" }) : undefined, "aria-label": "Report a problem", onClick: (_c = report.props) === null || _c === void 0 ? void 0 : _c.onClick }, controlsType !== 'icon' && (((_d = report.props) === null || _d === void 0 ? void 0 : _d.buttonText) || 'Report')))) : null,
|
|
43
|
+
expand && !((_e = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.expand) === null || _e === void 0 ? void 0 : _e.hide) ? (react_1.default.createElement(Tooltip_1.Tooltip, { tip: ((_f = expand.props) === null || _f === void 0 ? void 0 : _f.tooltip) || translate('codeSnippet.expand.tooltipText', 'Expand all'), placement: "top", arrowPosition: "right" }, react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "expand-all", icon: controlsType === 'icon' ? react_1.default.createElement(MaximizeIcon_1.MaximizeIcon, null) : undefined, "aria-label": "Expand all", onClick: expand === null || expand === void 0 ? void 0 : expand.onClick }, controlsType !== 'icon' && ((expand === null || expand === void 0 ? void 0 : expand.label) || 'Expand all')))) : null,
|
|
44
|
+
collapse && !((_g = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.collapse) === null || _g === void 0 ? void 0 : _g.hide) ? (react_1.default.createElement(Tooltip_1.Tooltip, { tip: ((_h = collapse.props) === null || _h === void 0 ? void 0 : _h.tooltip) ||
|
|
45
|
+
translate('codeSnippet.collapse.tooltipText', 'Collapse all'), placement: "top", arrowPosition: "right" }, react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "collapse-all", icon: controlsType === 'icon' ? react_1.default.createElement(MinimizeIcon_1.MinimizeIcon, null) : undefined, onClick: collapse === null || collapse === void 0 ? void 0 : collapse.onClick, "aria-label": "Collapse all" }, controlsType !== 'icon' && ((collapse === null || collapse === void 0 ? void 0 : collapse.label) || 'Collapse all')))) : null,
|
|
46
|
+
select ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "select-all", icon: controlsType === 'icon' ? react_1.default.createElement(SelectIcon_1.SelectIcon, null) : undefined, onClick: select === null || select === void 0 ? void 0 : select.onClick, "aria-label": "Select all" }, controlsType !== 'icon' && (select === null || select === void 0 ? void 0 : select.label) ? select.label : 'Select all')) : null,
|
|
47
|
+
deselect ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "clear-all", icon: controlsType === 'icon' ? react_1.default.createElement(DeselectIcon_1.DeselectIcon, null) : undefined, onClick: deselect === null || deselect === void 0 ? void 0 : deselect.onClick, "aria-label": "Clear all" }, controlsType !== 'icon' && (deselect === null || deselect === void 0 ? void 0 : deselect.label) ? deselect.label : 'Clear all')) : null,
|
|
48
|
+
copy && !((_j = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.copy) === null || _j === void 0 ? void 0 : _j.hide) ? (react_1.default.createElement(Tooltip_1.Tooltip, { tip: translate('codeSnippet.copy.tooltipText', 'Copy to clipboard'), placement: "top", arrowPosition: "right" },
|
|
47
49
|
react_1.default.createElement(StyledCopyButton, { data: copy.data, "data-source": copy.dataSource, "data-hash": copy.dataHash, type: controlsType, toasterPlacement: copy.toasterPlacement, toasterDuration: copy.toasterDuration, buttonText: copy.label, onCopyClick: () => {
|
|
48
50
|
var _a;
|
|
49
51
|
// If there already is a click handler, events should be handled there, cause they pass additional data
|
|
@@ -68,7 +68,7 @@ function CodeBlockTabs({ tabs }) {
|
|
|
68
68
|
: null;
|
|
69
69
|
return (react_1.default.createElement(Tab, { ref: (el) => {
|
|
70
70
|
tabRefs.current[i] = el;
|
|
71
|
-
}, "data-name": name, active: id === tabs.value, key: id, onClick: () => tabs.onChange(id) },
|
|
71
|
+
}, "data-name": name, $active: id === tabs.value, key: id, onClick: () => tabs.onChange(id) },
|
|
72
72
|
fileIcon,
|
|
73
73
|
name));
|
|
74
74
|
}))),
|
|
@@ -129,7 +129,7 @@ const Tab = styled_components_1.default.button `
|
|
|
129
129
|
gap: var(--spacing-xs);
|
|
130
130
|
color: var(--text-color-secondary);
|
|
131
131
|
|
|
132
|
-
${({ active }) => active
|
|
132
|
+
${({ $active }) => $active
|
|
133
133
|
? (0, styled_components_1.css) `
|
|
134
134
|
color: var(--text-color-primary);
|
|
135
135
|
background-color: var(--tab-bg-color-filled);
|
|
@@ -70,7 +70,7 @@ exports.Dropdown = (0, react_1.forwardRef)(({ children, className, active, trigg
|
|
|
70
70
|
const dropdownTrigger = (0, react_1.cloneElement)(triggerChild, Object.assign(Object.assign(Object.assign({ onClick: triggerEvent === 'click' ? handleToggle : undefined, icon: withArrow ? isOpen ? react_1.default.createElement(ChevronUpIcon_1.ChevronUpIcon, null) : react_1.default.createElement(ChevronDownIcon_1.ChevronDownIcon, null) : undefined }, (withArrow ? { iconPosition: 'right' } : {})), triggerChild.props), { onKeyDown: triggerEvent === 'click' ? handleKeyDown : undefined }));
|
|
71
71
|
return (react_1.default.createElement(DropdownWrapper, Object.assign({ "data-component-name": "Dropdown/Dropdown", "data-testid": "dropdown" }, dataAttributes, { className: className, ref: ref || dropdownRef, onPointerEnter: triggerEvent === 'hover' ? handleOpen : undefined, onPointerLeave: triggerEvent === 'hover' ? handleClose : undefined, onClick: onClick }),
|
|
72
72
|
dropdownTrigger,
|
|
73
|
-
react_1.default.createElement(ChildrenWrapper, { placement: placement, alignment: alignment, isOpen: isOpen, onClick: closeOnClick ? handleChildClick : undefined }, children)));
|
|
73
|
+
react_1.default.createElement(ChildrenWrapper, { $placement: placement, $alignment: alignment, $isOpen: isOpen, onClick: closeOnClick ? handleChildClick : undefined }, children)));
|
|
74
74
|
});
|
|
75
75
|
const DropdownWrapper = styled_components_1.default.div `
|
|
76
76
|
--button-gap: var(--spacing-xxs);
|
|
@@ -91,11 +91,11 @@ const DropdownWrapper = styled_components_1.default.div `
|
|
|
91
91
|
const ChildrenWrapper = styled_components_1.default.div `
|
|
92
92
|
padding-top: var(--dropdown-menu-padding-top);
|
|
93
93
|
position: absolute;
|
|
94
|
-
top: ${({ placement }) => (placement === 'top' ? 'auto' : '100%')};
|
|
95
|
-
bottom: ${({ placement }) => (placement === 'top' ? '100%' : 'auto')};
|
|
96
|
-
left: ${({ alignment }) => (alignment === 'start' ? '0' : 'auto')};
|
|
97
|
-
right: ${({ alignment }) => (alignment === 'end' ? '0' : 'auto')};
|
|
98
|
-
display: ${({ isOpen }) => (isOpen ? 'block' : 'none')};
|
|
94
|
+
top: ${({ $placement }) => ($placement === 'top' ? 'auto' : '100%')};
|
|
95
|
+
bottom: ${({ $placement }) => ($placement === 'top' ? '100%' : 'auto')};
|
|
96
|
+
left: ${({ $alignment }) => ($alignment === 'start' ? '0' : 'auto')};
|
|
97
|
+
right: ${({ $alignment }) => ($alignment === 'end' ? '0' : 'auto')};
|
|
98
|
+
display: ${({ $isOpen }) => ($isOpen ? 'block' : 'none')};
|
|
99
99
|
|
|
100
100
|
z-index: var(--dropdown-menu-z-index);
|
|
101
101
|
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode, PropsWithChildren, JSX } from 'react';
|
|
2
|
-
import type { LinkProps } from '../../
|
|
2
|
+
import type { LinkProps } from '../../core/types';
|
|
3
3
|
export type DropdownMenuItemProps = Partial<Pick<LinkProps, 'to' | 'target' | 'external'>> & {
|
|
4
4
|
prefix?: ReactNode;
|
|
5
5
|
suffix?: ReactNode;
|
|
@@ -67,12 +67,12 @@ function Comment({ settings, onSubmit, onCancel, className, standAlone = true, i
|
|
|
67
67
|
if (submitValue) {
|
|
68
68
|
return (react_1.default.createElement(StateWrapper, { "data-component-name": "Feedback/Comment", className: className },
|
|
69
69
|
react_1.default.createElement(StyledFormMandatoryFields, null,
|
|
70
|
-
react_1.default.createElement(Label, { "data-translation-key": "feedback.settings.comment.submitText", standAlone: standAlone }, submitText ||
|
|
70
|
+
react_1.default.createElement(Label, { "data-translation-key": "feedback.settings.comment.submitText", $standAlone: standAlone }, submitText ||
|
|
71
71
|
translate('feedback.settings.comment.submitText', 'Thank you for helping improve our documentation!')),
|
|
72
72
|
react_1.default.createElement(RadioCheckButtonIcon_1.RadioCheckButtonIcon, null))));
|
|
73
73
|
}
|
|
74
74
|
return (react_1.default.createElement(CommentWrapper, { ref: modalRef, "data-component-name": "Feedback/Comment", className: className, style: standAlone ? { width: 'var(--feedback-report-dialog-width)' } : { width: 'auto' } },
|
|
75
|
-
react_1.default.createElement(Label, { "data-translation-key": "feedback.settings.comment.label", standAlone: standAlone }, label ||
|
|
75
|
+
react_1.default.createElement(Label, { "data-translation-key": "feedback.settings.comment.label", $standAlone: standAlone }, label ||
|
|
76
76
|
translate('feedback.settings.comment.label', 'Please share your feedback with us.')),
|
|
77
77
|
react_1.default.createElement(TextArea, { rows: 3, maxLength: constants_1.MAX_CONTEXT_LENGTH, onChange: handleTextAreaChange }),
|
|
78
78
|
isMaxLengthReached && (react_1.default.createElement(MaxLengthMessage, { "data-translation-key": "feedback.settings.comment.maxLength" }, translate('feedback.settings.comment.maxLength', {
|
|
@@ -114,7 +114,7 @@ const Label = styled_components_1.default.h4 `
|
|
|
114
114
|
font-size: var(--feedback-font-size);
|
|
115
115
|
line-height: var(--feedback-line-height);
|
|
116
116
|
|
|
117
|
-
${({ standAlone }) => standAlone &&
|
|
117
|
+
${({ $standAlone }) => $standAlone &&
|
|
118
118
|
(0, styled_components_1.css) `
|
|
119
119
|
font-size: var(--feedback-header-font-size);
|
|
120
120
|
line-height: var(--feedback-header-line-height);
|
|
@@ -145,14 +145,14 @@ function Mood({ settings, onSubmit, className }) {
|
|
|
145
145
|
if (isSubmitted) {
|
|
146
146
|
return (React.createElement(MoodWrapper, { "data-component-name": "Feedback/Mood" },
|
|
147
147
|
React.createElement(StyledFormMandatoryFields, null,
|
|
148
|
-
React.createElement(Label, { standAlone: true, "data-translation-key": "feedback.settings.submitText" }, submitText ||
|
|
148
|
+
React.createElement(Label, { $standAlone: true, "data-translation-key": "feedback.settings.submitText" }, submitText ||
|
|
149
149
|
translate('feedback.settings.submitText', 'Thank you for helping improve our documentation!')),
|
|
150
150
|
React.createElement(RadioCheckButtonIcon_1.RadioCheckButtonIcon, null))));
|
|
151
151
|
}
|
|
152
152
|
return (React.createElement(MoodWrapper, { "data-component-name": "Feedback/Mood", className: className },
|
|
153
153
|
React.createElement(StyledForm, { onSubmit: onSubmitMoodForm },
|
|
154
154
|
React.createElement(StyledFormMandatoryFields, null,
|
|
155
|
-
React.createElement(Label, { standAlone: true, "data-translation-key": "feedback.settings.label" }, label || translate('feedback.settings.label', 'Was this helpful?')),
|
|
155
|
+
React.createElement(Label, { $standAlone: true, "data-translation-key": "feedback.settings.label" }, label || translate('feedback.settings.label', 'Was this helpful?')),
|
|
156
156
|
React.createElement(StyledMandatoryFieldContainer, null,
|
|
157
157
|
React.createElement(Button_1.Button, { "aria-label": MOOD_STATES.DISSATISFIED, type: "button", size: "medium", variant: score === MOOD_STATES.DISSATISFIED ? 'primary' : 'secondary', tone: score === MOOD_STATES.DISSATISFIED ? 'danger' : 'default', onClick: () => {
|
|
158
158
|
setScore(MOOD_STATES.DISSATISFIED);
|
|
@@ -209,7 +209,7 @@ const Label = styled_components_1.default.h4 `
|
|
|
209
209
|
line-height: var(--feedback-line-height);
|
|
210
210
|
color: var(--feedback-text-color);
|
|
211
211
|
|
|
212
|
-
${({ standAlone = false }) => standAlone &&
|
|
212
|
+
${({ $standAlone = false }) => $standAlone &&
|
|
213
213
|
(0, styled_components_1.css) `
|
|
214
214
|
font-size: var(--feedback-header-font-size);
|
|
215
215
|
line-height: var(--feedback-header-line-height);
|
|
@@ -71,7 +71,7 @@ function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing,
|
|
|
71
71
|
react_1.default.createElement(FiltersTitle, { "data-translation-key": "catalog.filters.title" }, translate('catalog.filters.title', 'Filters')),
|
|
72
72
|
hasActiveFilters ? (react_1.default.createElement(Button_1.Button, { size: "medium", tone: "danger", variant: "ghost", onClick: handleClearAll }, translate('catalog.filters.clearAll', 'Clear filters'))) : null),
|
|
73
73
|
!hideSearch && (react_1.default.createElement(FilterInput_1.FilterInput, { value: filterTerm, onChange: (updatedTerm) => setFilterTerm(updatedTerm) })),
|
|
74
|
-
react_1.default.createElement(FilterItems, { hideSearch: hideSearch }, filters.map((filter, idx) => (react_1.default.createElement(Filter_1.Filter, { filter: filter, key: filter.property + '-' + idx, filterValuesCasing: filterValuesCasing, showCounter: showCounter }))))));
|
|
74
|
+
react_1.default.createElement(FilterItems, { $hideSearch: hideSearch }, filters.map((filter, idx) => (react_1.default.createElement(Filter_1.Filter, { filter: filter, key: filter.property + '-' + idx, filterValuesCasing: filterValuesCasing, showCounter: showCounter }))))));
|
|
75
75
|
}
|
|
76
76
|
const FilterContentWrapper = styled_components_1.default.div `
|
|
77
77
|
padding: var(--filter-content-padding-vertical) var(--filter-content-padding-horizontal);
|
|
@@ -97,7 +97,7 @@ const FilterItems = styled_components_1.default.div `
|
|
|
97
97
|
flex-direction: column;
|
|
98
98
|
gap: var(--spacing-base);
|
|
99
99
|
border-top: 1px solid var(--border-color-secondary);
|
|
100
|
-
${({ hideSearch }) => hideSearch &&
|
|
100
|
+
${({ $hideSearch }) => $hideSearch &&
|
|
101
101
|
(0, styled_components_1.css) `
|
|
102
102
|
border-top: none;
|
|
103
103
|
`}
|
|
@@ -18,7 +18,7 @@ function Footer({ className }) {
|
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
20
|
const withColumns = items.some((item) => { var _a; return (((_a = item === null || item === void 0 ? void 0 : item.items) === null || _a === void 0 ? void 0 : _a.length) || 0) > 0; });
|
|
21
|
-
return (react_1.default.createElement(FooterWrapper, { "data-component-name": "Footer/Footer", className: className, withColumns: withColumns },
|
|
21
|
+
return (react_1.default.createElement(FooterWrapper, { "data-component-name": "Footer/Footer", className: className, $withColumns: withColumns },
|
|
22
22
|
!!items.length && (react_1.default.createElement(FooterColumnsSection, null, withColumns
|
|
23
23
|
? items.map((column, index) => (react_1.default.createElement(FooterColumn_1.FooterColumn, { key: `${column.label}_${index}`, column: column })))
|
|
24
24
|
: items.map((item, index) => (react_1.default.createElement(FooterItem_1.FooterItem, { key: index, item: item }))))),
|
|
@@ -74,7 +74,7 @@ const FooterWrapper = styled_components_1.default.footer `
|
|
|
74
74
|
@media screen and (min-width: ${utils_1.breakpoints.small}) {
|
|
75
75
|
padding: var(--footer-padding-vertical) var(--footer-padding-horizontal);
|
|
76
76
|
flex-direction: row;
|
|
77
|
-
${({ withColumns }) => withColumns
|
|
77
|
+
${({ $withColumns }) => $withColumns
|
|
78
78
|
? `
|
|
79
79
|
flex-direction: column;
|
|
80
80
|
align-items: stretch;
|
|
@@ -17,7 +17,7 @@ function FooterColumn({ column, className }) {
|
|
|
17
17
|
const label = translate(column.labelTranslationKey, column.label);
|
|
18
18
|
return (react_1.default.createElement(FooterColumnWrapper, { "data-component-name": "Footer/FooterColumn", className: className },
|
|
19
19
|
!(0, utils_1.isNavLinkItem)(column) && react_1.default.createElement(FooterColumnTitle, null, label),
|
|
20
|
-
react_1.default.createElement(FooterColumnItems, { iconsOnly: (0, utils_1.isNavLinkItem)(column) ? false : iconsOnly }, (0, utils_1.isNavLinkItem)(column) ? (react_1.default.createElement(NonGroupItem, { item: column, iconsOnly: Boolean((column === null || column === void 0 ? void 0 : column.label) === (column === null || column === void 0 ? void 0 : column.link) && ((column === null || column === void 0 ? void 0 : column.icon) || (column === null || column === void 0 ? void 0 : column.srcSet))), key: column.label, className: "nonGroupFooterItem" })) : (items === null || items === void 0 ? void 0 : items.map((columnItem, columnItemIndex) => (react_1.default.createElement(FooterItem_1.FooterItem, { item: columnItem, iconsOnly: iconsOnly, key: columnItemIndex })))))));
|
|
20
|
+
react_1.default.createElement(FooterColumnItems, { $iconsOnly: (0, utils_1.isNavLinkItem)(column) ? false : iconsOnly }, (0, utils_1.isNavLinkItem)(column) ? (react_1.default.createElement(NonGroupItem, { item: column, iconsOnly: Boolean((column === null || column === void 0 ? void 0 : column.label) === (column === null || column === void 0 ? void 0 : column.link) && ((column === null || column === void 0 ? void 0 : column.icon) || (column === null || column === void 0 ? void 0 : column.srcSet))), key: column.label, className: "nonGroupFooterItem" })) : (items === null || items === void 0 ? void 0 : items.map((columnItem, columnItemIndex) => (react_1.default.createElement(FooterItem_1.FooterItem, { item: columnItem, iconsOnly: iconsOnly, key: columnItemIndex })))))));
|
|
21
21
|
}
|
|
22
22
|
const FooterColumnWrapper = styled_components_1.default.div `
|
|
23
23
|
display: flex;
|
|
@@ -67,7 +67,7 @@ const FooterColumnItems = styled_components_1.default.div `
|
|
|
67
67
|
display: flex;
|
|
68
68
|
flex-wrap: wrap;
|
|
69
69
|
justify-content: center;
|
|
70
|
-
flex-direction: ${(props) => (props
|
|
70
|
+
flex-direction: ${(props) => (props.$iconsOnly ? 'row' : 'column')};
|
|
71
71
|
|
|
72
72
|
@media screen and (min-width: ${utils_1.breakpoints.small}) {
|
|
73
73
|
justify-content: flex-start;
|
|
@@ -20,8 +20,8 @@ function FooterItem({ item, iconsOnly, className }) {
|
|
|
20
20
|
}
|
|
21
21
|
const hasIcon = Boolean(item.icon || item.srcSet);
|
|
22
22
|
const iconWithoutLabel = Boolean(item.label === item.link && hasIcon);
|
|
23
|
-
return (react_1.default.createElement(FooterItemWrapper, { className: className, "data-component-name": "Footer/FooterItem", iconsOnly: iconsOnly, item: item }, item.type === 'separator' ? (react_1.default.createElement(FooterSeparator, { "data-translation-key": item.labelTranslationKey }, translate(item.labelTranslationKey, item.label))) : (react_1.default.createElement(FooterLink, { to: item.link, external: item.external, target: item.target, "data-testid": item.label, onClick: () => telemetry.sendFooterItemClickedMessage(), "data-translation-key": item.labelTranslationKey },
|
|
24
|
-
hasIcon ? (react_1.default.createElement(FooterLinkIcon, { iconsOnly: iconsOnly },
|
|
23
|
+
return (react_1.default.createElement(FooterItemWrapper, { className: className, "data-component-name": "Footer/FooterItem", $iconsOnly: iconsOnly, $item: item }, item.type === 'separator' ? (react_1.default.createElement(FooterSeparator, { "data-translation-key": item.labelTranslationKey }, translate(item.labelTranslationKey, item.label))) : (react_1.default.createElement(FooterLink, { to: item.link, external: item.external, target: item.target, "data-testid": item.label, onClick: () => telemetry.sendFooterItemClickedMessage(), "data-translation-key": item.labelTranslationKey },
|
|
24
|
+
hasIcon ? (react_1.default.createElement(FooterLinkIcon, { $iconsOnly: iconsOnly },
|
|
25
25
|
react_1.default.createElement(GenericIcon_1.GenericIcon, { icon: item.icon, srcSet: item.srcSet }))) : null,
|
|
26
26
|
!iconWithoutLabel ? translate(item.labelTranslationKey, item.label) : null,
|
|
27
27
|
item.external ? react_1.default.createElement(LaunchIcon_1.LaunchIcon, { size: "10px" }) : null))));
|
|
@@ -36,7 +36,7 @@ const FooterLinkIcon = styled_components_1.default.div `
|
|
|
36
36
|
--icon-width: var(--footer-item-icon-width);
|
|
37
37
|
--icon-height: var(--footer-item-icon-height);
|
|
38
38
|
display: inline-flex;
|
|
39
|
-
margin-right: ${({ iconsOnly }) => (iconsOnly ? '0' : 'var(--footer-item-icon-margin-right)')};
|
|
39
|
+
margin-right: ${({ $iconsOnly }) => ($iconsOnly ? '0' : 'var(--footer-item-icon-margin-right)')};
|
|
40
40
|
vertical-align: middle;
|
|
41
41
|
border: 1px solid var(--footer-item-icon-border-color);
|
|
42
42
|
border-radius: var(--footer-item-icon-border-radius);
|
|
@@ -55,9 +55,9 @@ const FooterLink = (0, styled_components_1.default)(Link_1.Link) `
|
|
|
55
55
|
}
|
|
56
56
|
`;
|
|
57
57
|
const FooterItemWrapper = styled_components_1.default.div `
|
|
58
|
-
margin: ${({ iconsOnly, item }) => iconsOnly
|
|
58
|
+
margin: ${({ $iconsOnly, $item }) => $iconsOnly
|
|
59
59
|
? '0 var(--footer-item-icon-margin-right) 0 0;'
|
|
60
|
-
: item.type === 'link'
|
|
60
|
+
: $item.type === 'link'
|
|
61
61
|
? 'var(--footer-link-padding-vertical) var(--footer-link-padding-horizontal);'
|
|
62
62
|
: '0'};
|
|
63
63
|
`;
|
|
@@ -76,10 +76,10 @@ function Image(props) {
|
|
|
76
76
|
lightboxImage ? (react_1.default.createElement(LightboxContainer, { ref: lightboxContainerRef, onClick: handleCloseLightbox, onKeyDown: handleLightboxKeyDown, tabIndex: 0 },
|
|
77
77
|
react_1.default.createElement(Overlay, { style: lightboxOverlayStyles }),
|
|
78
78
|
react_1.default.createElement(Image, { src: lightboxImage, alt: alt }))) : null,
|
|
79
|
-
src ? (react_1.default.createElement("img", { src: src, alt: alt, className: className, width: width, height: height, style: combinedStyles, onClick: () => handleImageClick(src) })) : (Array.from(parsedSourceSetMap).map(([key, value]) => (react_1.default.createElement(ColorModeAwareImage, { key: key, colorMode: key, src: value, alt: alt, className: className, width: width, height: height, $withLightbox: withLightbox, style: combinedStyles, onClick: () => handleImageClick(value) }))))));
|
|
79
|
+
src ? (react_1.default.createElement("img", { src: src, alt: alt, className: className, width: width, height: height, style: combinedStyles, onClick: () => handleImageClick(src) })) : (Array.from(parsedSourceSetMap).map(([key, value]) => (react_1.default.createElement(ColorModeAwareImage, { key: key, $colorMode: key, src: value, alt: alt, className: className, width: width, height: height, $withLightbox: withLightbox, style: combinedStyles, onClick: () => handleImageClick(value) }))))));
|
|
80
80
|
}
|
|
81
81
|
const ColorModeAwareImage = styled_components_1.default.img `
|
|
82
|
-
html:not(.${(props) => props
|
|
82
|
+
html:not(.${(props) => props.$colorMode}) && {
|
|
83
83
|
display: none;
|
|
84
84
|
}
|
|
85
85
|
${({ $withLightbox }) => $withLightbox &&
|
|
@@ -67,7 +67,7 @@ function LastUpdated(props) {
|
|
|
67
67
|
const text = format === 'timeago'
|
|
68
68
|
? translate(translationKey, 'Last updated') + ' '
|
|
69
69
|
: translate(translationKey, 'Last updated on');
|
|
70
|
-
return (react_1.default.createElement(LastUpdatedWrapper, { className: props.className, "data-component-name": "LastUpdated/LastUpdated", rawOnPrint: format === 'timeago', "data-print-datetime": isoDate, "data-translation-key": translationKey },
|
|
70
|
+
return (react_1.default.createElement(LastUpdatedWrapper, { className: props.className, "data-component-name": "LastUpdated/LastUpdated", $rawOnPrint: format === 'timeago', "data-print-datetime": isoDate, "data-translation-key": translationKey },
|
|
71
71
|
text,
|
|
72
72
|
" ",
|
|
73
73
|
react_1.default.createElement("time", { dateTime: isoDate }, lastUpdatedString)));
|
|
@@ -79,7 +79,7 @@ const LastUpdatedWrapper = styled_components_1.default.div `
|
|
|
79
79
|
line-height: var(--last-updated-line-height);
|
|
80
80
|
padding-bottom: 30px;
|
|
81
81
|
|
|
82
|
-
${({ rawOnPrint }) => rawOnPrint &&
|
|
82
|
+
${({ $rawOnPrint }) => $rawOnPrint &&
|
|
83
83
|
`@media print {
|
|
84
84
|
time {
|
|
85
85
|
display: none;
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
|
-
import type {
|
|
4
|
-
export type LinkProps
|
|
5
|
-
to: string;
|
|
6
|
-
target?: '_self' | '_blank';
|
|
7
|
-
external?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
innerRef?: React.Ref<HTMLAnchorElement>;
|
|
11
|
-
languageInsensitive?: boolean;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
reloadDocument?: boolean;
|
|
14
|
-
replace?: boolean;
|
|
15
|
-
state?: unknown;
|
|
16
|
-
preventScrollReset?: boolean;
|
|
17
|
-
relative?: RelativeRoutingType;
|
|
18
|
-
viewTransition?: boolean;
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
rel?: string;
|
|
21
|
-
};
|
|
3
|
+
import type { LinkProps } from '../../core/types';
|
|
4
|
+
export type { LinkProps };
|
|
22
5
|
export declare function Link(props: React.PropsWithChildren<LinkProps>): JSX.Element;
|
|
@@ -43,15 +43,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
43
43
|
}
|
|
44
44
|
return t;
|
|
45
45
|
};
|
|
46
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
47
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
48
|
-
};
|
|
49
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
47
|
exports.Link = Link;
|
|
51
48
|
const React = __importStar(require("react"));
|
|
52
49
|
const react_1 = require("react");
|
|
53
50
|
const react_router_dom_1 = require("react-router-dom");
|
|
54
|
-
const is_prop_valid_1 = __importDefault(require("@emotion/is-prop-valid"));
|
|
55
51
|
const ThemeDataContext_1 = require("../../core/contexts/ThemeDataContext");
|
|
56
52
|
function Link(props) {
|
|
57
53
|
const context = (0, react_1.useContext)(ThemeDataContext_1.ThemeDataContext);
|
|
@@ -59,10 +55,7 @@ function Link(props) {
|
|
|
59
55
|
const { LinkComponent } = context.components;
|
|
60
56
|
return React.createElement(LinkComponent, Object.assign({}, props));
|
|
61
57
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const linkProps = Object.fromEntries(Object.entries(restProps).filter(([key, value]) => value !== undefined && (0, is_prop_valid_1.default)(key)));
|
|
65
|
-
return (React.createElement(react_router_dom_1.Link, Object.assign({ ref: innerRef, to: to, reloadDocument: reloadDocument, replace: replace, state: state, preventScrollReset: preventScrollReset, relative: relative, viewTransition: viewTransition }, linkProps)));
|
|
66
|
-
}
|
|
58
|
+
const { external: _1, languageInsensitive: _2, innerRef } = props, filteredProps = __rest(props, ["external", "languageInsensitive", "innerRef"]);
|
|
59
|
+
return React.createElement(react_router_dom_1.Link, Object.assign({ ref: innerRef }, filteredProps));
|
|
67
60
|
}
|
|
68
61
|
//# sourceMappingURL=Link.js.map
|
|
@@ -15,13 +15,13 @@ const LoadingMessage = styled_components_1.default.div `
|
|
|
15
15
|
text-align: center;
|
|
16
16
|
font-size: 25px;
|
|
17
17
|
margin: 30px 0 20px 0;
|
|
18
|
-
color: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
|
|
18
|
+
color: ${({ $color }) => (0, utils_1.getCssColorVariable)($color)};
|
|
19
19
|
`;
|
|
20
20
|
function Loading({ color }) {
|
|
21
21
|
const { useTranslate } = (0, hooks_1.useThemeHooks)();
|
|
22
22
|
const { translate } = useTranslate();
|
|
23
23
|
return (react_1.default.createElement("div", { style: { textAlign: 'center' } },
|
|
24
|
-
react_1.default.createElement(LoadingMessage, { color: color }, translate('loaders.loading', 'Loading...')),
|
|
24
|
+
react_1.default.createElement(LoadingMessage, { $color: color }, translate('loaders.loading', 'Loading...')),
|
|
25
25
|
react_1.default.createElement(Spinner_1.Spinner, { color: color })));
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=Loading.js.map
|
|
@@ -7,12 +7,12 @@ exports.SpinnerLoader = SpinnerLoader;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
function SpinnerLoader({ color, size }) {
|
|
10
|
-
return react_1.default.createElement(Spinner, { color: color, size: size });
|
|
10
|
+
return react_1.default.createElement(Spinner, { $color: color, $size: size });
|
|
11
11
|
}
|
|
12
12
|
const Spinner = styled_components_1.default.div `
|
|
13
|
-
width: ${({ size }) => size};
|
|
14
|
-
height: ${({ size }) => size};
|
|
15
|
-
border: 3px solid ${({ color }) => color};
|
|
13
|
+
width: ${({ $size }) => $size};
|
|
14
|
+
height: ${({ $size }) => $size};
|
|
15
|
+
border: 3px solid ${({ $color }) => $color};
|
|
16
16
|
border-bottom-color: transparent;
|
|
17
17
|
border-radius: 50%;
|
|
18
18
|
display: inline-block;
|
|
@@ -4,26 +4,23 @@ export type MarkdownProps = PropsWithChildren<{
|
|
|
4
4
|
compact?: boolean;
|
|
5
5
|
inline?: boolean;
|
|
6
6
|
base?: boolean;
|
|
7
|
-
ref?: (node: HTMLDivElement) => void;
|
|
8
7
|
}>;
|
|
9
|
-
export declare const Markdown: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof import("react").ClassAttributes<HTMLElement> | keyof import("react").HTMLAttributes<HTMLElement>> & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement>, "
|
|
10
|
-
|
|
11
|
-
}, "base" | "children" | "className" | "compact" | "inline"
|
|
8
|
+
export declare const Markdown: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof import("react").ClassAttributes<HTMLElement> | keyof import("react").HTMLAttributes<HTMLElement>> & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement>, "data-component-name"> & {
|
|
9
|
+
'data-component-name': string;
|
|
10
|
+
}, "base" | "children" | "className" | "compact" | "inline"> & {
|
|
12
11
|
className?: string;
|
|
13
12
|
compact?: boolean;
|
|
14
13
|
inline?: boolean;
|
|
15
14
|
base?: boolean;
|
|
16
|
-
ref?: (node: HTMLDivElement) => void;
|
|
17
15
|
} & {
|
|
18
16
|
children?: import("react").ReactNode | undefined;
|
|
19
|
-
}, "about" | "accessKey" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "autoSave" | "children" | "className" | "color" | "content" | "contentEditable" | "contextMenu" | "dangerouslySetInnerHTML" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "draggable" | "enterKeyHint" | "exportparts" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "lang" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "part" | "popover" | "popoverTarget" | "popoverTargetAction" | "prefix" | "property" | "radioGroup" | "ref" | "rel" | "resource" | "results" | "rev" | "role" | "security" | "slot" | "spellCheck" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "title" | "translate" | "typeof" | "unselectable" | "vocab"> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof import("react").ClassAttributes<HTMLElement> | keyof import("react").HTMLAttributes<HTMLElement>> & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement>, "
|
|
20
|
-
|
|
21
|
-
}, "base" | "children" | "className" | "compact" | "inline"
|
|
17
|
+
}, "about" | "accessKey" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "autoSave" | "children" | "className" | "color" | "content" | "contentEditable" | "contextMenu" | "dangerouslySetInnerHTML" | "data-component-name" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "draggable" | "enterKeyHint" | "exportparts" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "lang" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "part" | "popover" | "popoverTarget" | "popoverTargetAction" | "prefix" | "property" | "radioGroup" | "ref" | "rel" | "resource" | "results" | "rev" | "role" | "security" | "slot" | "spellCheck" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "title" | "translate" | "typeof" | "unselectable" | "vocab"> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof import("react").ClassAttributes<HTMLElement> | keyof import("react").HTMLAttributes<HTMLElement>> & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement>, "data-component-name"> & {
|
|
18
|
+
'data-component-name': string;
|
|
19
|
+
}, "base" | "children" | "className" | "compact" | "inline"> & {
|
|
22
20
|
className?: string;
|
|
23
21
|
compact?: boolean;
|
|
24
22
|
inline?: boolean;
|
|
25
23
|
base?: boolean;
|
|
26
|
-
ref?: (node: HTMLDivElement) => void;
|
|
27
24
|
} & {
|
|
28
25
|
children?: import("react").ReactNode | undefined;
|
|
29
|
-
}, "about" | "accessKey" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "autoSave" | "children" | "className" | "color" | "content" | "contentEditable" | "contextMenu" | "dangerouslySetInnerHTML" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "draggable" | "enterKeyHint" | "exportparts" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "lang" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "part" | "popover" | "popoverTarget" | "popoverTargetAction" | "prefix" | "property" | "radioGroup" | "ref" | "rel" | "resource" | "results" | "rev" | "role" | "security" | "slot" | "spellCheck" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "title" | "translate" | "typeof" | "unselectable" | "vocab">>> & string;
|
|
26
|
+
}, "about" | "accessKey" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "autoSave" | "children" | "className" | "color" | "content" | "contentEditable" | "contextMenu" | "dangerouslySetInnerHTML" | "data-component-name" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "draggable" | "enterKeyHint" | "exportparts" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "lang" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "part" | "popover" | "popoverTarget" | "popoverTargetAction" | "prefix" | "property" | "radioGroup" | "ref" | "rel" | "resource" | "results" | "rev" | "role" | "security" | "slot" | "spellCheck" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "title" | "translate" | "typeof" | "unselectable" | "vocab">>> & string;
|
|
@@ -40,10 +40,13 @@ const base_table_1 = require("../../components/Markdown/styles/base-table");
|
|
|
40
40
|
const links_1 = require("../../components/Markdown/styles/links");
|
|
41
41
|
const heading_anchor_1 = require("../../components/Markdown/styles/heading-anchor");
|
|
42
42
|
const constants_1 = require("../../core/constants");
|
|
43
|
-
exports.Markdown = styled_components_1.default.main
|
|
43
|
+
exports.Markdown = styled_components_1.default.main
|
|
44
|
+
.withConfig({
|
|
45
|
+
shouldForwardProp: (prop) => !['compact', 'inline', 'base'].includes(prop),
|
|
46
|
+
})
|
|
47
|
+
.attrs({
|
|
44
48
|
'data-component-name': 'Markdown/Markdown',
|
|
45
|
-
|
|
46
|
-
})) `
|
|
49
|
+
}) `
|
|
47
50
|
font-size: var(--md-content-font-size);
|
|
48
51
|
font-family: var(--md-content-font-family);
|
|
49
52
|
font-weight: var(--md-content-font-weight);
|
|
@@ -59,13 +59,13 @@ exports.Marker = (0, react_1.forwardRef)(({ marker, dataAttribures, registerMark
|
|
|
59
59
|
registerMarker(currentElement);
|
|
60
60
|
return () => removeMarker(currentElement);
|
|
61
61
|
}, [registerMarker, removeMarker, marker]);
|
|
62
|
-
return (react_1.default.createElement(StyledMarker, Object.assign({ "data-component-name": "Marker/Marker", ref: internalRef, marker: marker }, (dataAttribures !== null && dataAttribures !== void 0 ? dataAttribures : {}))));
|
|
62
|
+
return (react_1.default.createElement(StyledMarker, Object.assign({ "data-component-name": "Marker/Marker", ref: internalRef, $marker: marker }, (dataAttribures !== null && dataAttribures !== void 0 ? dataAttribures : {}))));
|
|
63
63
|
});
|
|
64
64
|
const StyledMarker = styled_components_1.default.div `
|
|
65
65
|
position: absolute;
|
|
66
66
|
z-index: -1;
|
|
67
|
-
top: ${({ marker }) => marker.offset}px;
|
|
68
|
-
height: ${({ marker }) => marker.height}px;
|
|
67
|
+
top: ${({ $marker }) => $marker.offset}px;
|
|
68
|
+
height: ${({ $marker }) => $marker.height}px;
|
|
69
69
|
width: 100%;
|
|
70
70
|
left: 0;
|
|
71
71
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type JSX, type PropsWithChildren } from 'react';
|
|
2
2
|
import type { MenuItemsAnimation } from '../../core/types';
|
|
3
3
|
export type MenuContainerProps = PropsWithChildren<{
|
|
4
4
|
growContent?: boolean;
|
|
@@ -6,4 +6,4 @@ export type MenuContainerProps = PropsWithChildren<{
|
|
|
6
6
|
hidden?: boolean;
|
|
7
7
|
animation?: MenuItemsAnimation;
|
|
8
8
|
}>;
|
|
9
|
-
export declare function MenuContainer(
|
|
9
|
+
export declare function MenuContainer({ growContent, className, hidden, animation, children }: MenuContainerProps): JSX.Element;
|
|
@@ -39,8 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.MenuContainer = MenuContainer;
|
|
40
40
|
const react_1 = __importDefault(require("react"));
|
|
41
41
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
42
|
-
function MenuContainer(
|
|
43
|
-
return react_1.default.createElement(MenuContainerComponent,
|
|
42
|
+
function MenuContainer({ growContent, className, hidden, animation, children, }) {
|
|
43
|
+
return (react_1.default.createElement(MenuContainerComponent, { "data-component-name": "Menu/MenuContainer", $growContent: growContent === undefined ? true : growContent, $animation: animation, $hidden: hidden, className: className }, children));
|
|
44
44
|
}
|
|
45
45
|
const slideInRightAnimation = (0, styled_components_1.keyframes) `
|
|
46
46
|
0% {
|
|
@@ -58,14 +58,12 @@ const slideInLeftAnimation = (0, styled_components_1.keyframes) `
|
|
|
58
58
|
transform: translateX(0%)
|
|
59
59
|
}
|
|
60
60
|
`;
|
|
61
|
-
const MenuContainerComponent = styled_components_1.default.div.attrs(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
})) `
|
|
66
|
-
animation-name: ${({ animation }) => animation === 'slideInRight'
|
|
61
|
+
const MenuContainerComponent = styled_components_1.default.div.attrs({
|
|
62
|
+
'data-component-name': 'Menu/MenuContainer',
|
|
63
|
+
}) `
|
|
64
|
+
animation-name: ${({ $animation }) => $animation === 'slideInRight'
|
|
67
65
|
? slideInRightAnimation
|
|
68
|
-
: animation === 'slideInLeft'
|
|
66
|
+
: $animation === 'slideInLeft'
|
|
69
67
|
? slideInLeftAnimation
|
|
70
68
|
: 'none'};
|
|
71
69
|
animation-fill-mode: forwards;
|
|
@@ -73,9 +71,9 @@ const MenuContainerComponent = styled_components_1.default.div.attrs(({ growCont
|
|
|
73
71
|
animation-timing-function: ease;
|
|
74
72
|
position: relative;
|
|
75
73
|
overflow-y: auto;
|
|
76
|
-
flex-grow: ${({ growContent }) => (growContent ? 1 : 0)};
|
|
74
|
+
flex-grow: ${({ $growContent }) => ($growContent ? 1 : 0)};
|
|
77
75
|
padding-top: var(--menu-container-padding-top);
|
|
78
|
-
display: ${({ hidden }) => (hidden ? 'none' : 'block')};
|
|
76
|
+
display: ${({ $hidden }) => ($hidden ? 'none' : 'block')};
|
|
79
77
|
overscroll-behavior: contain;
|
|
80
78
|
`;
|
|
81
79
|
//# sourceMappingURL=MenuContainer.js.map
|