@redocly/theme 0.30.5 → 0.30.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Breadcrumbs/Breadcrumb.d.ts +2 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/lib/components/Catalog/Catalog.d.ts +2 -2
- package/lib/components/CodeBlock/CodeBlockControls.js +8 -8
- package/lib/components/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/Feedback/Emotions.d.ts +4 -4
- package/lib/components/Feedback/Feedback.d.ts +2 -2
- package/lib/components/Feedback/Thumbs.d.ts +3 -3
- package/lib/components/Filter/Filter.d.ts +2 -2
- package/lib/components/Filter/FilterContent.d.ts +2 -2
- package/lib/components/Filter/FilterPopover.d.ts +2 -2
- package/lib/components/Filter/FilterTag.d.ts +2 -2
- package/lib/components/Filter/FilterTags.d.ts +2 -2
- package/lib/components/Footer/FooterColumn.js +12 -1
- package/lib/components/Image/Image.d.ts +2 -2
- package/lib/components/Menu/Menu.d.ts +2 -2
- package/lib/components/Menu/MenuItemSwitch.d.ts +2 -1
- package/lib/components/Navbar/NavbarItem.d.ts +2 -2
- package/lib/components/NavbarLogo/NavbarLogo.js +1 -1
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.d.ts +2 -2
- package/lib/components/OpenApiDocs/ScorecardBadges.d.ts +2 -2
- package/lib/components/OpenApiDocs/TryItSecurityApps.d.ts +2 -2
- package/lib/components/Product/ProductPicker.d.ts +2 -2
- package/lib/components/Profile/AuthUserProfile.d.ts +2 -2
- package/lib/components/Profile/MobileUserProfile.d.ts +2 -2
- package/lib/components/Profile/UserProfileData.d.ts +2 -2
- package/lib/components/Scorecard/Gauge.d.ts +2 -2
- package/lib/components/Scorecard/StatusByLevelWidget.d.ts +2 -2
- package/lib/components/Search/ClearIcon.d.ts +2 -1
- package/lib/components/Search/ClockBackwardsIcon.d.ts +2 -1
- package/lib/components/Search/RecentSearches.d.ts +2 -2
- package/lib/components/Search/SearchIcon.d.ts +2 -1
- package/lib/components/Search/SuggestedPages.d.ts +2 -2
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Sidebar/VersionPicker.d.ts +2 -2
- package/lib/components/SidebarActions/SidebarActions.d.ts +1 -1
- package/lib/components/SidebarActions/styled.d.ts +7 -7
- package/lib/components/Tabs/Tabs.d.ts +0 -1
- package/lib/components/Tabs/Tabs.js +2 -2
- package/lib/config.d.ts +16 -2
- package/lib/config.js +6 -1
- package/lib/i18n/LanguagePicker.d.ts +2 -2
- package/lib/icons/AlertIcon/AlertIcon.d.ts +2 -2
- package/lib/icons/AnchorIcon/AnchorIcon.d.ts +2 -2
- package/lib/icons/ArrowIcon/ArrowIcon.d.ts +2 -2
- package/lib/icons/BurgerIcon/BurgerIcon.d.ts +3 -3
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +2 -2
- package/lib/icons/CloseIcon/CloseIcon.d.ts +3 -3
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +2 -2
- package/lib/icons/ColorModeIcon/ColorModeIcon.d.ts +2 -2
- package/lib/icons/CopyIcon/CopyIcon.d.ts +2 -2
- package/lib/icons/CopyIcon/CopyIcon.js +4 -5
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +2 -2
- package/lib/icons/DissatisfiedIcon/DissatisfiedIcon.d.ts +2 -2
- package/lib/icons/EditIcon/EditIcon.d.ts +2 -2
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +2 -2
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +2 -2
- package/lib/icons/FileIcon/FileIcon.d.ts +2 -2
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +2 -2
- package/lib/icons/LogoutIcon/LogoutIcon.d.ts +3 -3
- package/lib/icons/NeutralIcon/NeutralIcon.d.ts +2 -2
- package/lib/icons/PlusIcon/PlusIcon.d.ts +3 -3
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +2 -2
- package/lib/icons/RadioCheckButtonIcon/RadioCheckButtonIcon.d.ts +2 -2
- package/lib/icons/ReportIcon/ReportIcon.d.ts +2 -2
- package/lib/icons/ReportIcon/ReportIcon.js +2 -2
- package/lib/icons/RocketIcon/RocketIcon.d.ts +2 -2
- package/lib/icons/SatisfiedIcon/SatisfiedIcon.d.ts +2 -2
- package/lib/icons/SelectIcon/SelectIcon.d.ts +2 -2
- package/lib/icons/SpinnerIcon/SpinnerIcon.d.ts +3 -3
- package/lib/icons/ThumbDownIcon/ThumbDownIcon.d.ts +2 -2
- package/lib/icons/ThumbUpIcon/ThumbUpIcon.d.ts +2 -2
- package/lib/mocks/Sidebar/useDrilldown.d.ts +2 -2
- package/lib/mocks/Sidebar/useMenuGroup.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/CodeBlock/CodeBlockControls.tsx +26 -26
- package/src/components/Footer/FooterColumn.tsx +20 -1
- package/src/components/NavbarLogo/NavbarLogo.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +3 -3
- package/src/config.ts +6 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +19 -13
- package/src/icons/ReportIcon/ReportIcon.tsx +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const CheckboxIcon: import("styled-components").StyledComponent<({ className, checked, onClick, }: {
|
|
3
3
|
className?: string | undefined;
|
|
4
4
|
checked?: boolean | undefined;
|
|
5
5
|
onClick?: (() => void) | undefined;
|
|
6
|
-
}) => JSX.Element, any, {}, never>;
|
|
6
|
+
}) => React.JSX.Element, any, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Icon: () => JSX.Element;
|
|
3
|
-
export declare const CloseIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Icon: () => React.JSX.Element;
|
|
3
|
+
export declare const CloseIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
4
4
|
'data-component-name': string;
|
|
5
5
|
}, "data-component-name">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
color?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const CollapseIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const CollapseIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
|
|
7
7
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface ColorModeIconProps {
|
|
3
3
|
mode?: 'dark' | 'light' | string;
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
declare function Icon({ mode, className }: ColorModeIconProps): JSX.Element;
|
|
6
|
+
declare function Icon({ mode, className }: ColorModeIconProps): React.JSX.Element;
|
|
7
7
|
export declare const ColorModeIcon: import("styled-components").StyledComponent<typeof Icon, any, {
|
|
8
8
|
'data-component-name': string;
|
|
9
9
|
}, "data-component-name">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const CopyIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
5
|
+
export declare const CopyIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
|
|
6
6
|
export {};
|
|
@@ -6,12 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CopyIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Icon = ({ className }) => (react_1.default.createElement("
|
|
10
|
-
react_1.default.createElement("
|
|
11
|
-
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.16667 2.66667C5.16667 2.57462 5.24129 2.5 5.33333 2.5H12C12.092 2.5 12.1667 2.57462 12.1667 2.66667V10.6667C12.1667 10.7587 12.092 10.8333 12 10.8333H10H5.33333C5.24129 10.8333 5.16667 10.7587 5.16667 10.6667V4.66667V2.66667ZM4.16667 4.16667V2.66667C4.16667 2.02233 4.689 1.5 5.33333 1.5H12C12.6443 1.5 13.1667 2.02233 13.1667 2.66667V10.6667C13.1667 11.311 12.6443 11.8333 12 11.8333H10.5V13.3333C10.5 13.6428 10.3771 13.9395 10.1583 14.1583C9.9395 14.3771 9.64275 14.5 9.33333 14.5H2.66667C2.35725 14.5 2.0605 14.3771 1.84171 14.1583C1.62292 13.9395 1.5 13.6428 1.5 13.3333V5.33333C1.5 5.02391 1.62292 4.72717 1.84171 4.50838C2.0605 4.28958 2.35725 4.16667 2.66667 4.16667H4.16667ZM9.5 11.8333V13.3333C9.5 13.3775 9.48244 13.4199 9.45118 13.4512C9.41993 13.4824 9.37754 13.5 9.33333 13.5H2.66667C2.62246 13.5 2.58007 13.4824 2.54882 13.4512C2.51756 13.4199 2.5 13.3775 2.5 13.3333V5.33333C2.5 5.28913 2.51756 5.24674 2.54882 5.21548C2.58007 5.18423 2.62246 5.16667 2.66667 5.16667H4.16667V10.6667C4.16667 11.311 4.689 11.8333 5.33333 11.8333H9.5Z", fill: "currentColor", fillOpacity: "1" }))));
|
|
9
|
+
const Icon = ({ className }) => (react_1.default.createElement("svg", { "data-component-name": "icons/CopyIcon", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: className },
|
|
10
|
+
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.16667 2.66667C5.16667 2.57462 5.24129 2.5 5.33333 2.5H12C12.092 2.5 12.1667 2.57462 12.1667 2.66667V10.6667C12.1667 10.7587 12.092 10.8333 12 10.8333H10H5.33333C5.24129 10.8333 5.16667 10.7587 5.16667 10.6667V4.66667V2.66667ZM4.16667 4.16667V2.66667C4.16667 2.02233 4.689 1.5 5.33333 1.5H12C12.6443 1.5 13.1667 2.02233 13.1667 2.66667V10.6667C13.1667 11.311 12.6443 11.8333 12 11.8333H10.5V13.3333C10.5 13.6428 10.3771 13.9395 10.1583 14.1583C9.9395 14.3771 9.64275 14.5 9.33333 14.5H2.66667C2.35725 14.5 2.0605 14.3771 1.84171 14.1583C1.62292 13.9395 1.5 13.6428 1.5 13.3333V5.33333C1.5 5.02391 1.62292 4.72717 1.84171 4.50838C2.0605 4.28958 2.35725 4.16667 2.66667 4.16667H4.16667ZM9.5 11.8333V13.3333C9.5 13.3775 9.48244 13.4199 9.45118 13.4512C9.41993 13.4824 9.37754 13.5 9.33333 13.5H2.66667C2.62246 13.5 2.58007 13.4824 2.54882 13.4512C2.51756 13.4199 2.5 13.3775 2.5 13.3333V5.33333C2.5 5.28913 2.51756 5.24674 2.54882 5.21548C2.58007 5.18423 2.62246 5.16667 2.66667 5.16667H4.16667V10.6667C4.16667 11.311 4.689 11.8333 5.33333 11.8333H9.5Z", fill: "currentColor", fillOpacity: "1" })));
|
|
12
11
|
exports.CopyIcon = (0, styled_components_1.default)(Icon) `
|
|
13
|
-
width: 1em;
|
|
14
|
-
height: 1em;
|
|
12
|
+
width: 1.1em;
|
|
13
|
+
height: 1.1em;
|
|
15
14
|
vertical-align: middle;
|
|
16
15
|
`;
|
|
17
16
|
//# sourceMappingURL=CopyIcon.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
color?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const DeselectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const DeselectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
|
|
7
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const DissatisfiedIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DissatisfiedIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
}, "data-component-name">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const EditIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
5
|
+
export declare const EditIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ErrorIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ErrorIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
}, "data-component-name">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const ExpandIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
5
|
+
export declare const ExpandIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const FileIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
5
|
+
export declare const FileIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LanguageIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const LanguageIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
}, "data-component-name">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Icon: () => JSX.Element;
|
|
3
|
-
export declare const LogoutIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Icon: () => React.JSX.Element;
|
|
3
|
+
export declare const LogoutIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
4
4
|
'data-component-name': string;
|
|
5
5
|
}, "data-component-name">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const NeutralIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const NeutralIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
}, "data-component-name">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Icon: () => JSX.Element;
|
|
3
|
-
export declare const PlusIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Icon: () => React.JSX.Element;
|
|
3
|
+
export declare const PlusIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
4
4
|
'data-component-name': string;
|
|
5
5
|
}, "data-component-name">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PointingArrowIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const PointingArrowIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
}, "data-component-name">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const RadioCheckButtonIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const RadioCheckButtonIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
}, "data-component-name">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const ReportIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
5
|
+
export declare const ReportIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
|
|
6
6
|
export {};
|
|
@@ -12,8 +12,8 @@ const Icon = ({ className }) => (react_1.default.createElement("svg", { xmlns: "
|
|
|
12
12
|
react_1.default.createElement("path", { d: "M8.5 4.5H7.5V9H8.5V4.5Z", fill: "currentColor", fillOpacity: "1" }),
|
|
13
13
|
react_1.default.createElement("path", { d: "M13 14H3C2.73488 13.9997 2.4807 13.8942 2.29323 13.7068C2.10576 13.5193 2.0003 13.2651 2 13V3C2.0003 2.73488 2.10576 2.4807 2.29323 2.29323C2.4807 2.10576 2.73488 2.0003 3 2H13C13.2651 2.0003 13.5193 2.10576 13.7068 2.29323C13.8942 2.4807 13.9997 2.73488 14 3V13C13.9997 13.2651 13.8942 13.5193 13.7068 13.7068C13.5193 13.8942 13.2651 13.9997 13 14ZM3 3V13H13.0006L13 3H3Z", fill: "currentColor", fillOpacity: "1" })));
|
|
14
14
|
exports.ReportIcon = (0, styled_components_1.default)(Icon) `
|
|
15
|
-
width: 1.
|
|
16
|
-
height: 1.
|
|
15
|
+
width: 1.2em;
|
|
16
|
+
height: 1.2em;
|
|
17
17
|
vertical-align: middle;
|
|
18
18
|
`;
|
|
19
19
|
//# sourceMappingURL=ReportIcon.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
color?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const RocketIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const RocketIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
|
|
7
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SatisfiedIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SatisfiedIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
}, "data-component-name">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const SelectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
|
|
5
|
+
export declare const SelectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
|
|
6
6
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface SpinnerIconProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const Icon: ({ className }: SpinnerIconProps) => JSX.Element;
|
|
6
|
-
export declare const SpinnerIcon: import("styled-components").StyledComponent<({ className }: SpinnerIconProps) => JSX.Element, any, {
|
|
5
|
+
export declare const Icon: ({ className }: SpinnerIconProps) => React.JSX.Element;
|
|
6
|
+
export declare const SpinnerIcon: import("styled-components").StyledComponent<({ className }: SpinnerIconProps) => React.JSX.Element, any, {
|
|
7
7
|
'data-component-name': string;
|
|
8
8
|
}, "data-component-name">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ThumbDownIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ThumbDownIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
}, "data-component-name">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ThumbUpIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ThumbUpIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
}, "data-component-name">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare function useDrilldown(_props: any): {
|
|
3
|
-
Drilldown: ({ children }: any) => JSX.Element;
|
|
3
|
+
Drilldown: ({ children }: any) => React.JSX.Element;
|
|
4
4
|
handleBack: () => void;
|
|
5
5
|
handleExpand: () => void;
|
|
6
6
|
isExpanded: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare function useMenuGroup(_item: any): {
|
|
3
|
-
MenuGroup: ({ children }: any) => JSX.Element;
|
|
3
|
+
MenuGroup: ({ children }: any) => React.JSX.Element;
|
|
4
4
|
handleGroupClick: () => void;
|
|
5
5
|
isExpanded: boolean;
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@ export function CodeBlockControls({
|
|
|
49
49
|
controls,
|
|
50
50
|
}: CodeBlockControlsProps): JSX.Element | null {
|
|
51
51
|
const { codeSnippet } = useThemeConfig();
|
|
52
|
-
const controlsType = (codeSnippet?.
|
|
52
|
+
const controlsType = (codeSnippet?.elementFormat as ControlItemType) || 'icon';
|
|
53
53
|
const { copy, expand, collapse, select, deselect, report } = controls
|
|
54
54
|
? controls
|
|
55
55
|
: { copy: null, expand: null, collapse: null, select: null, deselect: null, report: null };
|
|
@@ -58,21 +58,16 @@ export function CodeBlockControls({
|
|
|
58
58
|
<>
|
|
59
59
|
<Title>{title}</Title>
|
|
60
60
|
<ControlsWrapper>
|
|
61
|
-
{
|
|
62
|
-
<
|
|
63
|
-
data=
|
|
64
|
-
data-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
onCopyClick={() => {
|
|
72
|
-
copy?.onClick;
|
|
73
|
-
telemetry.send('code_snippet_copied', {});
|
|
74
|
-
}}
|
|
75
|
-
/>
|
|
61
|
+
{report && report?.props?.visible ? (
|
|
62
|
+
<CodeBlockControlButton
|
|
63
|
+
data-cy="report-button"
|
|
64
|
+
data-testid="report-button"
|
|
65
|
+
asIcon={controlsType === 'icon'}
|
|
66
|
+
title={report.props?.tooltip}
|
|
67
|
+
{...report.props}
|
|
68
|
+
>
|
|
69
|
+
{controlsType === 'icon' ? <ReportIcon /> : report.props?.buttonText || 'Report'}
|
|
70
|
+
</CodeBlockControlButton>
|
|
76
71
|
) : null}
|
|
77
72
|
|
|
78
73
|
{expand && !codeSnippet?.expand?.hide ? (
|
|
@@ -135,16 +130,21 @@ export function CodeBlockControls({
|
|
|
135
130
|
</CodeBlockControlButton>
|
|
136
131
|
) : null}
|
|
137
132
|
|
|
138
|
-
{
|
|
139
|
-
<
|
|
140
|
-
data
|
|
141
|
-
data-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
{
|
|
145
|
-
|
|
146
|
-
{
|
|
147
|
-
|
|
133
|
+
{copy && !codeSnippet?.copy?.hide ? (
|
|
134
|
+
<CopyButton
|
|
135
|
+
data={copy.data}
|
|
136
|
+
data-source={copy.dataSource}
|
|
137
|
+
data-hash={copy.dataHash}
|
|
138
|
+
type={controlsType}
|
|
139
|
+
toasterPlacement={copy.toasterPlacement}
|
|
140
|
+
toasterDuration={copy.toasterDuration}
|
|
141
|
+
buttonText={copy.label}
|
|
142
|
+
tooltipText={copy.tooltipText}
|
|
143
|
+
onCopyClick={() => {
|
|
144
|
+
copy?.onClick;
|
|
145
|
+
telemetry.send('code_snippet_copied', {});
|
|
146
|
+
}}
|
|
147
|
+
/>
|
|
148
148
|
) : null}
|
|
149
149
|
</ControlsWrapper>
|
|
150
150
|
</>
|
|
@@ -19,9 +19,19 @@ export function FooterColumn({ column, className }: FooterColumnProps): JSX.Elem
|
|
|
19
19
|
|
|
20
20
|
const iconsOnly = items.every((item) => item.label === item.link && (item.icon || item.srcSet));
|
|
21
21
|
|
|
22
|
+
const label = translate(column.labelTranslationKey, column.label);
|
|
23
|
+
const labelOrLink =
|
|
24
|
+
column.type === 'link' ? (
|
|
25
|
+
<Link to={column.link} external={column.external} target={column.target}>
|
|
26
|
+
{label}
|
|
27
|
+
</Link>
|
|
28
|
+
) : (
|
|
29
|
+
label
|
|
30
|
+
);
|
|
31
|
+
|
|
22
32
|
return (
|
|
23
33
|
<FooterColumnContainer data-component-name="Footer/FooterColumn" className={className}>
|
|
24
|
-
<FooterColumnTitle>{
|
|
34
|
+
<FooterColumnTitle>{labelOrLink}</FooterColumnTitle>
|
|
25
35
|
<FooterColumnItems iconsOnly={iconsOnly}>
|
|
26
36
|
{items?.map((columnItem, columnItemIndex) => {
|
|
27
37
|
if (columnItem.type === 'error') {
|
|
@@ -68,6 +78,15 @@ const FooterColumnTitle = styled.p`
|
|
|
68
78
|
${({ theme }) => theme.mediaQueries.small} {
|
|
69
79
|
margin-bottom: var(--footer-title-margin-bottom);
|
|
70
80
|
}
|
|
81
|
+
|
|
82
|
+
a {
|
|
83
|
+
text-decoration: none;
|
|
84
|
+
color: var(--footer-title-text-color);
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
color: var(--footer-title-hover-color);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
71
90
|
`;
|
|
72
91
|
|
|
73
92
|
const FooterSeparator = styled.div`
|
|
@@ -5,7 +5,7 @@ import type { PropsWithChildren } from 'react';
|
|
|
5
5
|
|
|
6
6
|
import { Tab } from '@theme/components/Tabs';
|
|
7
7
|
|
|
8
|
-
type Child = { props: { label: string
|
|
8
|
+
type Child = { props: { label: string } & TabsProps };
|
|
9
9
|
type TabsProps = PropsWithChildren<{ children: Child[]; className?: string }>;
|
|
10
10
|
|
|
11
11
|
export function Tabs(props: TabsProps): JSX.Element {
|
|
@@ -17,11 +17,11 @@ export function Tabs(props: TabsProps): JSX.Element {
|
|
|
17
17
|
<TabsContainer data-component-name="Markdown/Tabs/Tabs" className={props.className}>
|
|
18
18
|
<TabList>
|
|
19
19
|
{children.map((child, idx) => {
|
|
20
|
-
const { label
|
|
20
|
+
const { label } = child.props;
|
|
21
21
|
return (
|
|
22
22
|
<Tab
|
|
23
23
|
activeTab={activeTab}
|
|
24
|
-
key={`${
|
|
24
|
+
key={`${label}-${idx}`}
|
|
25
25
|
label={label}
|
|
26
26
|
onClick={onTabSelect}
|
|
27
27
|
/>
|
package/src/config.ts
CHANGED
|
@@ -72,6 +72,11 @@ const markdownConfigSchema = {
|
|
|
72
72
|
items: { type: 'string' },
|
|
73
73
|
default: ['image', 'links'],
|
|
74
74
|
},
|
|
75
|
+
partialsFolders: {
|
|
76
|
+
type: 'array',
|
|
77
|
+
items: { type: 'string' },
|
|
78
|
+
default: ['_partials'],
|
|
79
|
+
},
|
|
75
80
|
lastUpdatedBlock: {
|
|
76
81
|
type: 'object',
|
|
77
82
|
properties: {
|
|
@@ -564,7 +569,7 @@ export const themeConfigSchema = {
|
|
|
564
569
|
codeSnippet: {
|
|
565
570
|
type: 'object',
|
|
566
571
|
properties: {
|
|
567
|
-
|
|
572
|
+
elementFormat: { type: 'string', default: 'icon' },
|
|
568
573
|
copy: {
|
|
569
574
|
type: 'object',
|
|
570
575
|
properties: {
|
|
@@ -6,21 +6,27 @@ interface IconProps {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
const Icon = ({ className }: IconProps) => (
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
<svg
|
|
10
|
+
data-component-name="icons/CopyIcon"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
width="16"
|
|
13
|
+
height="16"
|
|
14
|
+
viewBox="0 0 16 16"
|
|
15
|
+
fill="none"
|
|
16
|
+
className={className}
|
|
17
|
+
>
|
|
18
|
+
<path
|
|
19
|
+
fillRule="evenodd"
|
|
20
|
+
clipRule="evenodd"
|
|
21
|
+
d="M5.16667 2.66667C5.16667 2.57462 5.24129 2.5 5.33333 2.5H12C12.092 2.5 12.1667 2.57462 12.1667 2.66667V10.6667C12.1667 10.7587 12.092 10.8333 12 10.8333H10H5.33333C5.24129 10.8333 5.16667 10.7587 5.16667 10.6667V4.66667V2.66667ZM4.16667 4.16667V2.66667C4.16667 2.02233 4.689 1.5 5.33333 1.5H12C12.6443 1.5 13.1667 2.02233 13.1667 2.66667V10.6667C13.1667 11.311 12.6443 11.8333 12 11.8333H10.5V13.3333C10.5 13.6428 10.3771 13.9395 10.1583 14.1583C9.9395 14.3771 9.64275 14.5 9.33333 14.5H2.66667C2.35725 14.5 2.0605 14.3771 1.84171 14.1583C1.62292 13.9395 1.5 13.6428 1.5 13.3333V5.33333C1.5 5.02391 1.62292 4.72717 1.84171 4.50838C2.0605 4.28958 2.35725 4.16667 2.66667 4.16667H4.16667ZM9.5 11.8333V13.3333C9.5 13.3775 9.48244 13.4199 9.45118 13.4512C9.41993 13.4824 9.37754 13.5 9.33333 13.5H2.66667C2.62246 13.5 2.58007 13.4824 2.54882 13.4512C2.51756 13.4199 2.5 13.3775 2.5 13.3333V5.33333C2.5 5.28913 2.51756 5.24674 2.54882 5.21548C2.58007 5.18423 2.62246 5.16667 2.66667 5.16667H4.16667V10.6667C4.16667 11.311 4.689 11.8333 5.33333 11.8333H9.5Z"
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
fillOpacity="1"
|
|
24
|
+
/>
|
|
25
|
+
</svg>
|
|
20
26
|
);
|
|
21
27
|
|
|
22
28
|
export const CopyIcon = styled(Icon)`
|
|
23
|
-
width: 1em;
|
|
24
|
-
height: 1em;
|
|
29
|
+
width: 1.1em;
|
|
30
|
+
height: 1.1em;
|
|
25
31
|
vertical-align: middle;
|
|
26
32
|
`;
|