@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
|
@@ -53,11 +53,11 @@ function Sidebar({ versions, menu, footer, header, growContent, collapsed, class
|
|
|
53
53
|
if (sidebar === null || sidebar === void 0 ? void 0 : sidebar.hide) {
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
|
-
return (react_1.default.createElement(SidebarContent, { "data-component-name": "Sidebar/Sidebar", opened: isOpen, className: className, collapsed: mappedCollapsed },
|
|
56
|
+
return (react_1.default.createElement(SidebarContent, { "data-component-name": "Sidebar/Sidebar", $opened: isOpen, className: className, $collapsed: mappedCollapsed },
|
|
57
57
|
header ? react_1.default.createElement(exports.SidebarHeader, { collapsed: mappedCollapsed }, header) : null,
|
|
58
58
|
!mappedCollapsed && versions ? versions : null,
|
|
59
59
|
react_1.default.createElement(MenuContainer_1.MenuContainer, { hidden: mappedCollapsed, growContent: growContent, animation: menuItemsAnimation }, menu),
|
|
60
|
-
footer && !isOpen ? (react_1.default.createElement(SidebarFooter, { collapsed: mappedCollapsed, "data-component-name": "Sidebar/FooterWrapper" }, footer)) : null));
|
|
60
|
+
footer && !isOpen ? (react_1.default.createElement(SidebarFooter, { $collapsed: mappedCollapsed, "data-component-name": "Sidebar/FooterWrapper" }, footer)) : null));
|
|
61
61
|
}
|
|
62
62
|
const SidebarContent = styled_components_1.default.aside `
|
|
63
63
|
border-right: 1px solid var(--sidebar-border-color);
|
|
@@ -77,8 +77,8 @@ const SidebarContent = styled_components_1.default.aside `
|
|
|
77
77
|
top: calc(var(--navbar-height) + var(--banner-height));
|
|
78
78
|
height: calc(100vh - var(--navbar-height) - var(--banner-height));
|
|
79
79
|
overflow-x: hidden;
|
|
80
|
-
${({ opened }) => `
|
|
81
|
-
display: ${opened ? 'flex' : 'none'}
|
|
80
|
+
${({ $opened }) => `
|
|
81
|
+
display: ${$opened ? 'flex' : 'none'}
|
|
82
82
|
`};
|
|
83
83
|
|
|
84
84
|
@media screen and (min-width: ${utils_1.breakpoints.medium}) {
|
|
@@ -89,7 +89,7 @@ const SidebarContent = styled_components_1.default.aside `
|
|
|
89
89
|
flex-shrink: 0;
|
|
90
90
|
overflow: clip;
|
|
91
91
|
|
|
92
|
-
${({ collapsed }) => collapsed
|
|
92
|
+
${({ $collapsed }) => $collapsed
|
|
93
93
|
? `
|
|
94
94
|
flex-direction: column;
|
|
95
95
|
width: var(--sidebar-collapsed-width);
|
|
@@ -105,7 +105,9 @@ const SidebarContent = styled_components_1.default.aside `
|
|
|
105
105
|
transform: none;
|
|
106
106
|
}
|
|
107
107
|
`;
|
|
108
|
-
exports.SidebarHeader = styled_components_1.default.div
|
|
108
|
+
exports.SidebarHeader = styled_components_1.default.div.withConfig({
|
|
109
|
+
shouldForwardProp: (prop) => prop !== 'collapsed',
|
|
110
|
+
}) `
|
|
109
111
|
margin: var(--sidebar-offset-top) var(--sidebar-margin-horizontal) 0
|
|
110
112
|
var(--sidebar-margin-horizontal);
|
|
111
113
|
padding: 0 0 var(--sidebar-header-padding-bottom) 0;
|
|
@@ -121,10 +123,10 @@ const SidebarFooter = styled_components_1.default.div `
|
|
|
121
123
|
|
|
122
124
|
@media screen and (min-width: ${utils_1.breakpoints.medium}) {
|
|
123
125
|
display: flex;
|
|
124
|
-
justify-content: ${({ collapsed }) => (collapsed ? 'center' : 'flex-end')};
|
|
126
|
+
justify-content: ${({ $collapsed }) => ($collapsed ? 'center' : 'flex-end')};
|
|
125
127
|
}
|
|
126
128
|
|
|
127
|
-
${({ collapsed }) => collapsed &&
|
|
129
|
+
${({ $collapsed }) => $collapsed &&
|
|
128
130
|
`
|
|
129
131
|
position: sticky;
|
|
130
132
|
bottom: 0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const StyledChangeViewButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "collapsedSidebar"> & {
|
|
2
|
-
collapsedSidebar
|
|
2
|
+
collapsedSidebar: boolean;
|
|
3
3
|
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "collapsedSidebar"> & {
|
|
4
|
-
collapsedSidebar
|
|
4
|
+
collapsedSidebar: boolean;
|
|
5
5
|
}, never>>> & string;
|
|
6
6
|
declare const StyledChangeViewButtonWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("../../index.js").TooltipProps, "active"> & {
|
|
7
|
-
active
|
|
7
|
+
active: boolean;
|
|
8
8
|
}, never> & Partial<Pick<import("styled-components").FastOmit<import("../../index.js").TooltipProps, "active"> & {
|
|
9
|
-
active
|
|
9
|
+
active: boolean;
|
|
10
10
|
}, never>>> & string & Omit<import("react").NamedExoticComponent<import("../../index.js").TooltipProps>, keyof import("react").Component<any, {}, any>>;
|
|
11
11
|
declare const ControlsWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "iconCount" | "isCollapsed"> & {
|
|
12
12
|
iconCount?: number;
|
|
@@ -16,8 +16,8 @@ declare const ControlsWrap: import("styled-components/dist/types").IStyledCompon
|
|
|
16
16
|
isCollapsed?: boolean;
|
|
17
17
|
}, never>>> & string;
|
|
18
18
|
declare const ControlsWrapChangeLayoutButtons: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "isCollapsed"> & {
|
|
19
|
-
isCollapsed
|
|
19
|
+
isCollapsed: boolean;
|
|
20
20
|
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "isCollapsed"> & {
|
|
21
|
-
isCollapsed
|
|
21
|
+
isCollapsed: boolean;
|
|
22
22
|
}, never>>> & string;
|
|
23
23
|
export { StyledChangeViewButton, StyledChangeViewButtonWrap, ControlsWrapChangeLayoutButtons, ControlsWrap, };
|
|
@@ -37,7 +37,9 @@ exports.ControlsWrap = exports.ControlsWrapChangeLayoutButtons = exports.StyledC
|
|
|
37
37
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
38
38
|
const utils_1 = require("../../core/utils");
|
|
39
39
|
const Tooltip_1 = require("../../components/Tooltip/Tooltip");
|
|
40
|
-
const StyledChangeViewButton = styled_components_1.default.span
|
|
40
|
+
const StyledChangeViewButton = styled_components_1.default.span.withConfig({
|
|
41
|
+
shouldForwardProp: (prop) => prop !== 'collapsedSidebar',
|
|
42
|
+
}) `
|
|
41
43
|
display: flex;
|
|
42
44
|
position: relative;
|
|
43
45
|
flex-direction: ${({ collapsedSidebar }) => (collapsedSidebar ? 'column' : 'row')};
|
|
@@ -50,7 +52,9 @@ const StyledChangeViewButton = styled_components_1.default.span `
|
|
|
50
52
|
padding: calc(var(--spacing-unit) / 2);
|
|
51
53
|
`;
|
|
52
54
|
exports.StyledChangeViewButton = StyledChangeViewButton;
|
|
53
|
-
const StyledChangeViewButtonWrap = (0, styled_components_1.default)(Tooltip_1.Tooltip)
|
|
55
|
+
const StyledChangeViewButtonWrap = (0, styled_components_1.default)(Tooltip_1.Tooltip).withConfig({
|
|
56
|
+
shouldForwardProp: (prop) => prop !== 'active',
|
|
57
|
+
}) `
|
|
54
58
|
width: 20px;
|
|
55
59
|
height: 20px;
|
|
56
60
|
border-radius: var(--border-radius);
|
|
@@ -60,7 +64,9 @@ const StyledChangeViewButtonWrap = (0, styled_components_1.default)(Tooltip_1.To
|
|
|
60
64
|
background-color: ${({ active }) => active && 'var(--segmented-buttons-bg-color-inner)'};
|
|
61
65
|
`;
|
|
62
66
|
exports.StyledChangeViewButtonWrap = StyledChangeViewButtonWrap;
|
|
63
|
-
const ControlsWrap = styled_components_1.default.span
|
|
67
|
+
const ControlsWrap = styled_components_1.default.span.withConfig({
|
|
68
|
+
shouldForwardProp: (prop) => prop !== 'iconCount' && prop !== 'isCollapsed',
|
|
69
|
+
}) `
|
|
64
70
|
display: none;
|
|
65
71
|
justify-content: flex-end;
|
|
66
72
|
bottom: 0;
|
|
@@ -89,7 +95,9 @@ const ControlsWrap = styled_components_1.default.span `
|
|
|
89
95
|
}
|
|
90
96
|
`;
|
|
91
97
|
exports.ControlsWrap = ControlsWrap;
|
|
92
|
-
const ControlsWrapChangeLayoutButtons = styled_components_1.default.span
|
|
98
|
+
const ControlsWrapChangeLayoutButtons = styled_components_1.default.span.withConfig({
|
|
99
|
+
shouldForwardProp: (prop) => prop !== 'isCollapsed',
|
|
100
|
+
}) `
|
|
93
101
|
display: flex;
|
|
94
102
|
bottom: 0;
|
|
95
103
|
flex-direction: ${({ isCollapsed }) => (isCollapsed ? 'column-reverse' : 'row')};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type StatusCodeProps = {
|
|
2
2
|
status: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const StatusCode: 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").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | keyof import("react").ClassAttributes<HTMLButtonElement>> & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "data-component-name"> & {
|
|
3
6
|
'data-component-name': string;
|
|
4
|
-
}, "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" | "disabled" | "draggable" | "enterKeyHint" | "exportparts" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "lang" | "name" | "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" | "
|
|
5
|
-
status: string;
|
|
7
|
+
}, keyof StatusCodeProps> & StatusCodeProps, "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" | "disabled" | "draggable" | "enterKeyHint" | "exportparts" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "lang" | "name" | "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" | "type" | "typeof" | "unselectable" | "value" | "vocab"> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | keyof import("react").ClassAttributes<HTMLButtonElement>> & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "data-component-name"> & {
|
|
6
8
|
'data-component-name': string;
|
|
7
|
-
}, "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" | "disabled" | "draggable" | "enterKeyHint" | "exportparts" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "lang" | "name" | "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" | "
|
|
9
|
+
}, keyof StatusCodeProps> & StatusCodeProps, "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" | "disabled" | "draggable" | "enterKeyHint" | "exportparts" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "lang" | "name" | "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" | "type" | "typeof" | "unselectable" | "value" | "vocab">>> & string;
|
|
@@ -5,12 +5,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.StatusCode = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
exports.StatusCode = styled_components_1.default.button
|
|
8
|
+
exports.StatusCode = styled_components_1.default.button
|
|
9
|
+
.withConfig({
|
|
10
|
+
shouldForwardProp: (prop) => prop !== 'status',
|
|
11
|
+
})
|
|
12
|
+
.attrs({
|
|
13
|
+
'data-component-name': 'StatusCode/StatusCode',
|
|
14
|
+
}) `
|
|
9
15
|
background: none;
|
|
10
16
|
padding: 0;
|
|
11
17
|
display: flex;
|
|
12
18
|
align-items: center;
|
|
13
|
-
|
|
19
|
+
|
|
14
20
|
&:before {
|
|
15
21
|
display: inline-block;
|
|
16
22
|
content: '';
|
|
@@ -54,34 +54,34 @@ function Switch({ value = false, disabled = false, onChange, onFocus, stopPropag
|
|
|
54
54
|
}
|
|
55
55
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
|
56
56
|
};
|
|
57
|
-
return (react_1.default.createElement(SwitchWrapper, { tabIndex: disabled ? -1 : 0, onFocus: handleFocus, onClick: handleClick, role: "switch", "aria-checked": value, "aria-disabled": disabled, selected: value, disabled: disabled, className: className },
|
|
58
|
-
react_1.default.createElement(Knob, { selected: value, disabled: disabled })));
|
|
57
|
+
return (react_1.default.createElement(SwitchWrapper, { tabIndex: disabled ? -1 : 0, onFocus: handleFocus, onClick: handleClick, role: "switch", "aria-checked": value, "aria-disabled": disabled, $selected: value, $disabled: disabled, className: className },
|
|
58
|
+
react_1.default.createElement(Knob, { $selected: value, $disabled: disabled })));
|
|
59
59
|
}
|
|
60
60
|
const SwitchWrapper = styled_components_1.default.div `
|
|
61
61
|
width: var(--switch-width);
|
|
62
62
|
height: var(--switch-height);
|
|
63
63
|
border-radius: var(--switch-border-radius);
|
|
64
64
|
border: var(--switch-border-width) solid
|
|
65
|
-
${({ selected, disabled }) => disabled
|
|
65
|
+
${({ $selected, $disabled }) => $disabled
|
|
66
66
|
? 'var(--switch-border-color-disabled)'
|
|
67
|
-
: selected
|
|
67
|
+
: $selected
|
|
68
68
|
? 'var(--switch-border-color-selected)'
|
|
69
69
|
: 'var(--switch-border-color)'};
|
|
70
|
-
background-color: ${({ selected, disabled }) => disabled
|
|
71
|
-
? selected
|
|
70
|
+
background-color: ${({ $selected, $disabled }) => $disabled
|
|
71
|
+
? $selected
|
|
72
72
|
? 'var(--switch-bg-color-disabled-selected)'
|
|
73
73
|
: 'var(--switch-bg-color-disabled)'
|
|
74
|
-
: selected
|
|
74
|
+
: $selected
|
|
75
75
|
? 'var(--switch-bg-color-selected)'
|
|
76
76
|
: 'var(--switch-bg-color)'};
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: center;
|
|
79
79
|
padding: var(--switch-padding);
|
|
80
|
-
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
|
|
80
|
+
cursor: ${({ $disabled }) => ($disabled ? 'not-allowed' : 'pointer')};
|
|
81
81
|
transition: var(--switch-bg-transition);
|
|
82
82
|
|
|
83
|
-
${({ selected, disabled }) =>
|
|
84
|
-
|
|
83
|
+
${({ $selected, $disabled }) => !$disabled &&
|
|
84
|
+
!$selected &&
|
|
85
85
|
(0, styled_components_1.css) `
|
|
86
86
|
&:hover {
|
|
87
87
|
background-color: var(--switch-bg-color-hover);
|
|
@@ -97,12 +97,12 @@ const Knob = styled_components_1.default.div `
|
|
|
97
97
|
width: var(--switch-knob-width);
|
|
98
98
|
height: var(--switch-knob-height);
|
|
99
99
|
border-radius: var(--switch-knob-border-radius);
|
|
100
|
-
background-color: ${({ selected, disabled }) => disabled
|
|
100
|
+
background-color: ${({ $selected, $disabled }) => $disabled
|
|
101
101
|
? 'var(--switch-knob-bg-color-disabled)'
|
|
102
|
-
: selected
|
|
102
|
+
: $selected
|
|
103
103
|
? 'var(--switch-knob-bg-color-selected)'
|
|
104
104
|
: 'var(--switch-knob-bg-color)'};
|
|
105
|
-
transform: ${({ selected }) => selected ? 'translateX(var(--switch-knob-width))' : 'translateX(0)'};
|
|
105
|
+
transform: ${({ $selected }) => $selected ? 'translateX(var(--switch-knob-width))' : 'translateX(0)'};
|
|
106
106
|
transition: var(--switch-knob-transition);
|
|
107
107
|
`;
|
|
108
108
|
//# sourceMappingURL=Switch.js.map
|
|
@@ -63,7 +63,7 @@ function TableOfContent(props) {
|
|
|
63
63
|
return null;
|
|
64
64
|
}
|
|
65
65
|
const href = '#' + heading.id;
|
|
66
|
-
return (React.createElement(TableOfContentMenuItem, { key: href + idx, href: href, depth: heading.depth - leastDepth + 1 || 0, className: activeHeading === heading.id ? 'active' : '', dangerouslySetInnerHTML: { __html: heading.value || '' }, "data-testid": `toc-${heading.value}`, onClick: (e) => {
|
|
66
|
+
return (React.createElement(TableOfContentMenuItem, { key: href + idx, href: href, $depth: heading.depth - leastDepth + 1 || 0, className: activeHeading === heading.id ? 'active' : '', dangerouslySetInnerHTML: { __html: heading.value || '' }, "data-testid": `toc-${heading.value}`, onClick: (e) => {
|
|
67
67
|
e.preventDefault();
|
|
68
68
|
telemetry.sendTocItemClickedMessage();
|
|
69
69
|
handleHeadingClick(heading.id);
|
|
@@ -105,7 +105,7 @@ const TableOfContentMenuItem = styled_components_1.default.a `
|
|
|
105
105
|
cursor: pointer;
|
|
106
106
|
font-size: var(--toc-item-font-size);
|
|
107
107
|
padding: var(--toc-item-padding-vertical) var(--toc-item-padding-horizontal);
|
|
108
|
-
padding-left: calc(var(--toc-item-nested-offset) * ${({ depth }) => depth});
|
|
108
|
+
padding-left: calc(var(--toc-item-nested-offset) * ${({ $depth }) => $depth});
|
|
109
109
|
transition:
|
|
110
110
|
background-color 0.3s,
|
|
111
111
|
color 0.3s;
|
|
@@ -107,8 +107,8 @@ function Tag(_a) {
|
|
|
107
107
|
}
|
|
108
108
|
return children;
|
|
109
109
|
};
|
|
110
|
-
return (react_1.default.createElement(TagWrapper, Object.assign({ tabIndex: tabIndex, "data-component-name": "Tag/Tag", borderless: borderless, color: color, size: size, onClick: onClick, onKeyDown: onKeyDown, hasCloseButton: closable, textTransform: textTransform, variant: variant, selectable: selectable }, otherProps),
|
|
111
|
-
withStatusDot ? react_1.default.createElement(StatusDot, { color: statusDotColor }) : icon ? icon : null,
|
|
110
|
+
return (react_1.default.createElement(TagWrapper, Object.assign({ tabIndex: tabIndex, "data-component-name": "Tag/Tag", $borderless: borderless, $color: color, $size: size, onClick: onClick, onKeyDown: onKeyDown, $hasCloseButton: closable, $textTransform: textTransform, $variant: variant, $selectable: selectable }, otherProps),
|
|
111
|
+
withStatusDot ? react_1.default.createElement(StatusDot, { $color: statusDotColor }) : icon ? icon : null,
|
|
112
112
|
react_1.default.createElement(exports.ContentWrapper, null, renderChildren()),
|
|
113
113
|
closable && (react_1.default.createElement(CloseButton, { onClick: (event) => {
|
|
114
114
|
onClose === null || onClose === void 0 ? void 0 : onClose(event);
|
|
@@ -142,13 +142,13 @@ const CloseButton = styled_components_1.default.div `
|
|
|
142
142
|
background: var(--tag-close-button-bg-color-focus);
|
|
143
143
|
}
|
|
144
144
|
`;
|
|
145
|
-
const TagWrapper = styled_components_1.default.div.attrs(({ className, color, size, variant }) => ({
|
|
145
|
+
const TagWrapper = styled_components_1.default.div.attrs(({ className, $color, $size, $variant }) => ({
|
|
146
146
|
className: [
|
|
147
147
|
className,
|
|
148
148
|
'tag-default',
|
|
149
|
-
color && `tag-${color}`,
|
|
150
|
-
size && `tag-size-${size}`,
|
|
151
|
-
`tag-variant-${variant || 'filled'}`,
|
|
149
|
+
$color && `tag-${$color}`,
|
|
150
|
+
$size && `tag-size-${$size}`,
|
|
151
|
+
`tag-variant-${$variant || 'filled'}`,
|
|
152
152
|
]
|
|
153
153
|
.filter(Boolean)
|
|
154
154
|
.join(' '),
|
|
@@ -160,7 +160,7 @@ const TagWrapper = styled_components_1.default.div.attrs(({ className, color, si
|
|
|
160
160
|
position: relative;
|
|
161
161
|
|
|
162
162
|
padding: var(--tag-padding);
|
|
163
|
-
${({ hasCloseButton }) => (hasCloseButton ? 'padding-right: 0;' : '')};
|
|
163
|
+
${({ $hasCloseButton }) => ($hasCloseButton ? 'padding-right: 0;' : '')};
|
|
164
164
|
margin: var(--tag-margin);
|
|
165
165
|
|
|
166
166
|
&:last-child {
|
|
@@ -174,11 +174,11 @@ const TagWrapper = styled_components_1.default.div.attrs(({ className, color, si
|
|
|
174
174
|
font-weight: var(--tag-font-weight);
|
|
175
175
|
line-height: var(--tag-line-height);
|
|
176
176
|
box-shadow: var(--tag-box-shadow);
|
|
177
|
-
${({ textTransform }) => `text-transform: ${textTransform ? `${textTransform}` : 'var(--tag-text-transform)'};`}
|
|
177
|
+
${({ $textTransform }) => `text-transform: ${$textTransform ? `${$textTransform}` : 'var(--tag-text-transform)'};`}
|
|
178
178
|
|
|
179
179
|
color: var(--tag-color);
|
|
180
180
|
background-color: var(--tag-bg-color);
|
|
181
|
-
${({ borderless }) => borderless
|
|
181
|
+
${({ $borderless }) => $borderless
|
|
182
182
|
? ''
|
|
183
183
|
: `border: var(--tag-border-width) var(--tag-border-style) var(--tag-border-color);`}
|
|
184
184
|
border-radius: var(--tag-border-radius);
|
|
@@ -188,7 +188,7 @@ const TagWrapper = styled_components_1.default.div.attrs(({ className, color, si
|
|
|
188
188
|
height: var(--tag-icon-height);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
${({ selectable }) => selectable &&
|
|
191
|
+
${({ $selectable }) => $selectable &&
|
|
192
192
|
(0, styled_components_1.css) `
|
|
193
193
|
&:hover {
|
|
194
194
|
background-color: var(--tag-bg-color-hover);
|
|
@@ -208,7 +208,7 @@ const StatusDot = styled_components_1.default.div `
|
|
|
208
208
|
height: var(--tag-badge-size);
|
|
209
209
|
border: var(--tag-badge-border-width) solid var(--tag-badge-border-color);
|
|
210
210
|
border-radius: 50%;
|
|
211
|
-
background-color: ${({ color }) => color};
|
|
211
|
+
background-color: ${({ $color }) => $color};
|
|
212
212
|
`;
|
|
213
213
|
const ActiveIcon = (0, styled_components_1.default)(CheckmarkFilledIcon_1.CheckmarkFilledIcon) `
|
|
214
214
|
width: 12px;
|
|
@@ -74,23 +74,23 @@ function TooltipComponent({ children, isOpen, tip, withArrow = true, placement =
|
|
|
74
74
|
onBlur: handleClose,
|
|
75
75
|
}
|
|
76
76
|
: {};
|
|
77
|
-
return (react_1.default.createElement(TooltipWrapper, Object.assign({ ref: tooltipWrapperRef }, controllers, { className: `tooltip-${className}`, "data-component-name": "Tooltip/Tooltip", anchorName: anchorName }),
|
|
77
|
+
return (react_1.default.createElement(TooltipWrapper, Object.assign({ ref: tooltipWrapperRef }, controllers, { className: `tooltip-${className}`, "data-component-name": "Tooltip/Tooltip", $anchorName: anchorName }),
|
|
78
78
|
children,
|
|
79
79
|
isOpened && !disabled && (react_1.default.createElement(Portal_1.Portal, null,
|
|
80
|
-
react_1.default.createElement(TooltipBody, { ref: tooltipBodyRef, "data-testid": dataTestId || (typeof tip === 'string' ? tip : ''), placement: activePlacement, width: width, withArrow: withArrow, arrowPosition: activeArrowPosition === 'left' || activeArrowPosition === 'right'
|
|
80
|
+
react_1.default.createElement(TooltipBody, { ref: tooltipBodyRef, "data-testid": dataTestId || (typeof tip === 'string' ? tip : ''), $placement: activePlacement, $width: width, $withArrow: withArrow, $arrowPosition: activeArrowPosition === 'left' || activeArrowPosition === 'right'
|
|
81
81
|
? activeArrowPosition
|
|
82
|
-
: 'center', anchorName: anchorName }, tip)))));
|
|
82
|
+
: 'center', $anchorName: anchorName }, tip)))));
|
|
83
83
|
}
|
|
84
84
|
exports.Tooltip = (0, react_1.memo)(TooltipComponent);
|
|
85
85
|
const PLACEMENTS = {
|
|
86
86
|
top: (0, styled_components_1.css) `
|
|
87
87
|
bottom: anchor(top);
|
|
88
|
-
${({ withArrow, arrowPosition }) => withArrow && arrowPosition === 'left'
|
|
88
|
+
${({ $withArrow, $arrowPosition }) => $withArrow && $arrowPosition === 'left'
|
|
89
89
|
? (0, styled_components_1.css) `
|
|
90
90
|
transform: translate(-32px, -6px);
|
|
91
91
|
left: anchor(center);
|
|
92
92
|
`
|
|
93
|
-
: arrowPosition === 'right'
|
|
93
|
+
: $arrowPosition === 'right'
|
|
94
94
|
? (0, styled_components_1.css) `
|
|
95
95
|
transform: translate(32px, -6px);
|
|
96
96
|
right: anchor(center);
|
|
@@ -100,7 +100,7 @@ const PLACEMENTS = {
|
|
|
100
100
|
left: anchor(center);
|
|
101
101
|
`}
|
|
102
102
|
|
|
103
|
-
${({ withArrow, arrowPosition }) => withArrow &&
|
|
103
|
+
${({ $withArrow, $arrowPosition }) => $withArrow &&
|
|
104
104
|
(0, styled_components_1.css) `
|
|
105
105
|
&::after {
|
|
106
106
|
border-left: 14px solid transparent;
|
|
@@ -109,20 +109,20 @@ const PLACEMENTS = {
|
|
|
109
109
|
border-top-style: solid;
|
|
110
110
|
border-radius: 2px;
|
|
111
111
|
bottom: 0;
|
|
112
|
-
${arrowPosition === 'left' && 'left: 16px; transform: translateY(100%);'}
|
|
113
|
-
${arrowPosition === 'center' && 'left: 50%; transform: translate(-50%, 100%);'}
|
|
114
|
-
${arrowPosition === 'right' && 'right: 16px; transform: translateY(100%);'}
|
|
112
|
+
${$arrowPosition === 'left' && 'left: 16px; transform: translateY(100%);'}
|
|
113
|
+
${$arrowPosition === 'center' && 'left: 50%; transform: translate(-50%, 100%);'}
|
|
114
|
+
${$arrowPosition === 'right' && 'right: 16px; transform: translateY(100%);'}
|
|
115
115
|
}
|
|
116
116
|
`}
|
|
117
117
|
`,
|
|
118
118
|
bottom: (0, styled_components_1.css) `
|
|
119
119
|
top: anchor(bottom);
|
|
120
|
-
${({ withArrow, arrowPosition }) => withArrow && arrowPosition === 'left'
|
|
120
|
+
${({ $withArrow, $arrowPosition }) => $withArrow && $arrowPosition === 'left'
|
|
121
121
|
? (0, styled_components_1.css) `
|
|
122
122
|
transform: translate(-32px, 6px);
|
|
123
123
|
left: anchor(center);
|
|
124
124
|
`
|
|
125
|
-
: arrowPosition === 'right'
|
|
125
|
+
: $arrowPosition === 'right'
|
|
126
126
|
? (0, styled_components_1.css) `
|
|
127
127
|
transform: translate(32px, 6px);
|
|
128
128
|
right: anchor(center);
|
|
@@ -132,7 +132,7 @@ const PLACEMENTS = {
|
|
|
132
132
|
left: anchor(center);
|
|
133
133
|
`}
|
|
134
134
|
|
|
135
|
-
${({ withArrow, arrowPosition }) => withArrow &&
|
|
135
|
+
${({ $withArrow, $arrowPosition }) => $withArrow &&
|
|
136
136
|
(0, styled_components_1.css) `
|
|
137
137
|
&::after {
|
|
138
138
|
border-left: 14px solid transparent;
|
|
@@ -141,9 +141,9 @@ const PLACEMENTS = {
|
|
|
141
141
|
border-bottom-style: solid;
|
|
142
142
|
border-radius: 0 0 2px 2px;
|
|
143
143
|
top: 0;
|
|
144
|
-
${arrowPosition === 'left' && 'left: 16px; transform: translateY(-100%);'}
|
|
145
|
-
${arrowPosition === 'center' && 'left: 50%; transform: translate(-50%, -100%);'}
|
|
146
|
-
${arrowPosition === 'right' && 'right: 16px; transform: translateY(-100%);'}
|
|
144
|
+
${$arrowPosition === 'left' && 'left: 16px; transform: translateY(-100%);'}
|
|
145
|
+
${$arrowPosition === 'center' && 'left: 50%; transform: translate(-50%, -100%);'}
|
|
146
|
+
${$arrowPosition === 'right' && 'right: 16px; transform: translateY(-100%);'}
|
|
147
147
|
}
|
|
148
148
|
`}
|
|
149
149
|
`,
|
|
@@ -153,7 +153,7 @@ const PLACEMENTS = {
|
|
|
153
153
|
top: anchor(center);
|
|
154
154
|
left: anchor(left);
|
|
155
155
|
|
|
156
|
-
${({ withArrow }) => withArrow &&
|
|
156
|
+
${({ $withArrow }) => $withArrow &&
|
|
157
157
|
(0, styled_components_1.css) `
|
|
158
158
|
&::after {
|
|
159
159
|
border-top: 14px solid transparent;
|
|
@@ -173,7 +173,7 @@ const PLACEMENTS = {
|
|
|
173
173
|
top: anchor(center);
|
|
174
174
|
left: anchor(right);
|
|
175
175
|
|
|
176
|
-
${({ withArrow }) => withArrow &&
|
|
176
|
+
${({ $withArrow }) => $withArrow &&
|
|
177
177
|
(0, styled_components_1.css) `
|
|
178
178
|
&::after {
|
|
179
179
|
border-top: 14px solid transparent;
|
|
@@ -188,16 +188,16 @@ const PLACEMENTS = {
|
|
|
188
188
|
`}
|
|
189
189
|
`,
|
|
190
190
|
};
|
|
191
|
-
const TooltipWrapper = styled_components_1.default.div.attrs(({ anchorName }) => ({
|
|
191
|
+
const TooltipWrapper = styled_components_1.default.div.attrs(({ $anchorName }) => ({
|
|
192
192
|
style: {
|
|
193
|
-
anchorName: anchorName,
|
|
193
|
+
anchorName: $anchorName,
|
|
194
194
|
},
|
|
195
195
|
})) `
|
|
196
196
|
display: flex;
|
|
197
197
|
`;
|
|
198
|
-
const TooltipBody = styled_components_1.default.span.attrs(({ anchorName }) => ({
|
|
198
|
+
const TooltipBody = styled_components_1.default.span.attrs(({ $anchorName }) => ({
|
|
199
199
|
style: {
|
|
200
|
-
positionAnchor: anchorName,
|
|
200
|
+
positionAnchor: $anchorName,
|
|
201
201
|
},
|
|
202
202
|
})) `
|
|
203
203
|
position: fixed;
|
|
@@ -233,10 +233,11 @@ const TooltipBody = styled_components_1.default.span.attrs(({ anchorName }) => (
|
|
|
233
233
|
var(--tooltip-border-color, transparent);
|
|
234
234
|
box-shadow: var(--bg-raised-shadow);
|
|
235
235
|
|
|
236
|
-
width: ${({ width }) => width || 'max-content'};
|
|
236
|
+
width: ${({ $width }) => $width || 'max-content'};
|
|
237
237
|
|
|
238
|
-
${({ placement }) =>
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
${({ $placement }) => $placement &&
|
|
239
|
+
(0, styled_components_1.css) `
|
|
240
|
+
${PLACEMENTS[$placement]};
|
|
241
|
+
`}
|
|
241
242
|
`;
|
|
242
243
|
//# sourceMappingURL=AnchorTooltip.js.map
|
|
@@ -103,7 +103,7 @@ function TooltipComponent({ children, isOpen, tip, withArrow = true, placement =
|
|
|
103
103
|
return (react_1.default.createElement(TooltipWrapper, Object.assign({ ref: wrapperRef }, controllers, { className: `tooltip-${className}`, "data-component-name": "Tooltip/Tooltip" }),
|
|
104
104
|
children,
|
|
105
105
|
isOpened && !disabled && (react_1.default.createElement(Portal_1.Portal, null,
|
|
106
|
-
react_1.default.createElement(TooltipBody, { ref: tooltipBodyRef, "data-testid": dataTestId || (typeof tip === 'string' ? tip : ''), placement: activePlacement, width: width, withArrow: withArrow, arrowPosition: activeArrowPosition, style: {
|
|
106
|
+
react_1.default.createElement(TooltipBody, { ref: tooltipBodyRef, "data-testid": dataTestId || (typeof tip === 'string' ? tip : ''), $placement: activePlacement, $width: width, $withArrow: withArrow, $arrowPosition: activeArrowPosition, style: {
|
|
107
107
|
position: 'fixed',
|
|
108
108
|
top: tooltipPosition.top,
|
|
109
109
|
left: tooltipPosition.left,
|
|
@@ -222,7 +222,7 @@ const TooltipBody = styled_components_1.default.span `
|
|
|
222
222
|
display: inline-block;
|
|
223
223
|
|
|
224
224
|
padding: var(--tooltip-padding);
|
|
225
|
-
max-width: ${({ width }) => width || 'var(--tooltip-max-width)'};
|
|
225
|
+
max-width: ${({ $width }) => $width || 'var(--tooltip-max-width)'};
|
|
226
226
|
white-space: normal;
|
|
227
227
|
word-break: normal;
|
|
228
228
|
overflow-wrap: break-word;
|
|
@@ -251,9 +251,9 @@ const TooltipBody = styled_components_1.default.span `
|
|
|
251
251
|
var(--tooltip-border-color, transparent);
|
|
252
252
|
box-shadow: var(--bg-raised-shadow);
|
|
253
253
|
|
|
254
|
-
width: ${({ width }) => width || 'max-content'};
|
|
255
|
-
${({ placement }) => (0, styled_components_1.css) `
|
|
256
|
-
${PLACEMENTS[placement]};
|
|
254
|
+
width: ${({ $width }) => $width || 'max-content'};
|
|
255
|
+
${({ $placement }) => (0, styled_components_1.css) `
|
|
256
|
+
${PLACEMENTS[$placement]};
|
|
257
257
|
`}
|
|
258
258
|
`;
|
|
259
259
|
//# sourceMappingURL=JsTooltip.js.map
|