@redocly/theme 0.54.0-next.2 → 0.54.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/{Catalog/Catalog.d.ts → CatalogLegacy/CatalogLegacy.d.ts} +2 -2
- package/lib/components/{Catalog/Catalog.js → CatalogLegacy/CatalogLegacy.js} +23 -23
- package/lib/components/{Catalog/CatalogActions.d.ts → CatalogLegacy/CatalogLegacyActions.d.ts} +2 -2
- package/lib/components/{Catalog/CatalogActions.js → CatalogLegacy/CatalogLegacyActions.js} +9 -8
- package/lib/components/CatalogLegacy/CatalogLegacyCard.d.ts +5 -0
- package/lib/components/{Catalog/CatalogCard.js → CatalogLegacy/CatalogLegacyCard.js} +33 -33
- package/lib/components/CatalogLegacy/CatalogLegacyHighlight.d.ts +4 -0
- package/lib/components/{Catalog/CatalogHighlight.js → CatalogLegacy/CatalogLegacyHighlight.js} +4 -4
- package/lib/components/{Catalog/CatalogInfoBlock.d.ts → CatalogLegacy/CatalogLegacyInfoBlock.d.ts} +2 -2
- package/lib/components/{Catalog/CatalogInfoBlock.js → CatalogLegacy/CatalogLegacyInfoBlock.js} +10 -10
- package/lib/components/{Catalog/CatalogVirtualizedGroups.d.ts → CatalogLegacy/CatalogLegacyVirtualizedGroups.d.ts} +2 -2
- package/lib/components/{Catalog/CatalogVirtualizedGroups.js → CatalogLegacy/CatalogLegacyVirtualizedGroups.js} +23 -23
- package/lib/components/CatalogLegacy/variables.js +109 -0
- package/lib/components/Menu/MenuItem.js +4 -1
- package/lib/components/Search/SearchDialog.js +2 -1
- package/lib/components/Search/variables.js +2 -0
- package/lib/components/Tag/variables.dark.js +9 -9
- package/lib/components/Tag/variables.js +3 -3
- package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +1 -1
- package/lib/core/hooks/__mocks__/use-theme-hooks.js +1 -1
- package/lib/core/styles/global.js +1 -1
- package/lib/core/types/hooks.d.ts +2 -1
- package/lib/icons/AiStarsGradientIcon/AiStarsGradientIcon.d.ts +11 -0
- package/lib/icons/AiStarsGradientIcon/AiStarsGradientIcon.js +58 -0
- package/lib/icons/AiStarsIcon/AiStarsIcon.d.ts +0 -1
- package/lib/icons/AiStarsIcon/AiStarsIcon.js +12 -20
- package/lib/icons/RabbitMQIcon/RabbitMQIcon.d.ts +9 -0
- package/lib/icons/RabbitMQIcon/RabbitMQIcon.js +26 -0
- package/lib/index.d.ts +9 -6
- package/lib/index.js +9 -6
- package/lib/markdoc/components/CodeWalkthrough/CodeWalkthrough.js +5 -0
- package/package.json +3 -3
- package/src/components/{Catalog/Catalog.tsx → CatalogLegacy/CatalogLegacy.tsx} +28 -21
- package/src/components/{Catalog/CatalogActions.tsx → CatalogLegacy/CatalogLegacyActions.tsx} +8 -7
- package/src/components/{Catalog/CatalogCard.tsx → CatalogLegacy/CatalogLegacyCard.tsx} +34 -32
- package/src/components/{Catalog/CatalogHighlight.tsx → CatalogLegacy/CatalogLegacyHighlight.tsx} +3 -3
- package/src/components/{Catalog/CatalogInfoBlock.tsx → CatalogLegacy/CatalogLegacyInfoBlock.tsx} +9 -9
- package/src/components/{Catalog/CatalogVirtualizedGroups.tsx → CatalogLegacy/CatalogLegacyVirtualizedGroups.tsx} +23 -23
- package/src/components/CatalogLegacy/variables.ts +106 -0
- package/src/components/Menu/MenuItem.tsx +5 -1
- package/src/components/Search/SearchDialog.tsx +2 -1
- package/src/components/Search/variables.ts +2 -0
- package/src/components/Tag/variables.dark.ts +9 -9
- package/src/components/Tag/variables.ts +3 -3
- package/src/core/hooks/__mocks__/use-theme-hooks.ts +1 -1
- package/src/core/styles/global.ts +1 -1
- package/src/core/types/hooks.ts +2 -1
- package/src/icons/AiStarsGradientIcon/AiStarsGradientIcon.tsx +69 -0
- package/src/icons/AiStarsIcon/AiStarsIcon.tsx +13 -24
- package/src/icons/RabbitMQIcon/RabbitMQIcon.tsx +40 -0
- package/src/index.ts +9 -6
- package/src/markdoc/components/CodeWalkthrough/CodeWalkthrough.tsx +5 -0
- package/lib/components/Catalog/CatalogCard.d.ts +0 -5
- package/lib/components/Catalog/CatalogHighlight.d.ts +0 -4
- package/lib/components/Catalog/variables.js +0 -109
- package/src/components/Catalog/variables.ts +0 -106
- /package/lib/components/{Catalog → CatalogLegacy}/variables.d.ts +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.catalog = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.catalog = (0, styled_components_1.css) `
|
|
6
|
+
/* === Catalog === */
|
|
7
|
+
/**
|
|
8
|
+
* @tokens Catalog page
|
|
9
|
+
*/
|
|
10
|
+
--catalog-legacy-page-padding-vertical: var(--spacing-lg);
|
|
11
|
+
--catalog-legacy-page-padding-horizontal: var(--spacing-xl);
|
|
12
|
+
--catalog-legacy-page-padding: var(--catalog-legacy-page-padding-vertical) var(--catalog-legacy-page-padding-horizontal);
|
|
13
|
+
|
|
14
|
+
--catalog-legacy-filter-padding-vertical-mobile: 0;
|
|
15
|
+
--catalog-legacy-filter-padding-horizontal-mobile: var(--spacing-base);
|
|
16
|
+
|
|
17
|
+
--catalog-legacy-heading-margin: 0 0 var(--spacing-xl) 0;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @tokens Catalog page title
|
|
21
|
+
*/
|
|
22
|
+
--catalog-legacy-title-text-color: var(--text-color-primary);
|
|
23
|
+
--catalog-legacy-title-font-weight: var(--font-weight-bold);
|
|
24
|
+
--catalog-legacy-title-font-size: var(--font-size-heading-3);
|
|
25
|
+
--catalog-legacy-title-margin: 0 0 var(--spacing-sm) 0;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @tokens Catalog page description
|
|
29
|
+
*/
|
|
30
|
+
--catalog-legacy-description-text-color: var(--text-color-secondary);
|
|
31
|
+
--catalog-legacy-description-font-weight: var(--font-weight-regular);
|
|
32
|
+
--catalog-legacy-description-font-size: var(--font-size-base);
|
|
33
|
+
--catalog-legacy-description-margin: 0 0 var(--spacing-sm) 0;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @tokens Catalog page separator
|
|
37
|
+
*/
|
|
38
|
+
--catalog-legacy-separator-color: var(--text-color-secondary);
|
|
39
|
+
--catalog-legacy-separator-font-size: var(--font-size-base);
|
|
40
|
+
--catalog-legacy-separator-font-weight: var(--font-weight-regular);
|
|
41
|
+
--catalog-legacy-separator-border-color: var(--border-color-secondary);
|
|
42
|
+
--catalog-legacy-separator-margin: 0 0 var(--spacing-base) 0;
|
|
43
|
+
--catalog-legacy-separator-padding: var(--spacing-xxs) 0 0 0;
|
|
44
|
+
--catalog-legacy-separator-label-margin: 0 var(--spacing-xs);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @tokens Catalog card
|
|
48
|
+
*/
|
|
49
|
+
--catalog-legacy-card-min-height: 194px;
|
|
50
|
+
--catalog-legacy-card-min-width: 260px;
|
|
51
|
+
--catalog-legacy-card-padding-vertical: var(--spacing-base);
|
|
52
|
+
--catalog-legacy-card-padding-horizontal: var(--spacing-md);
|
|
53
|
+
--catalog-legacy-card-gap: var(--spacing-sm);
|
|
54
|
+
--catalog-legacy-card-text-color: var(--text-color-secondary);
|
|
55
|
+
--catalog-legacy-card-font-size: var(--font-size-base);
|
|
56
|
+
--catalog-legacy-card-font-weight: var(--font-weight-regular);
|
|
57
|
+
--catalog-legacy-card-bg-color: var(--layer-color);
|
|
58
|
+
--catalog-legacy-card-border-color: var(--border-color-secondary);
|
|
59
|
+
--catalog-legacy-card-border-width: var(--border-width);
|
|
60
|
+
--catalog-legacy-card-border-style: var(--border-style);
|
|
61
|
+
--catalog-legacy-card-border-color-hover: var(--border-color-primary);
|
|
62
|
+
--catalog-legacy-card-border-radius: var(--border-radius-xxl);
|
|
63
|
+
--catalog-legacy-cards-group-margin: 0 0 var(--spacing-base) 0;
|
|
64
|
+
--catalog-legacy-cards-group-gap: var(--spacing-xl);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @tokens Catalog card title
|
|
68
|
+
*/
|
|
69
|
+
--catalog-legacy-card-title-color: var(--text-color-primary);
|
|
70
|
+
--catalog-legacy-card-title-min-height: var(--spacing-xxl);
|
|
71
|
+
--catalog-legacy-card-title-font-size: var(--font-size-lg);
|
|
72
|
+
--catalog-legacy-card-title-font-weight: var(--font-weight-bold);
|
|
73
|
+
--catalog-legacy-card-title-line-height: var(--line-height-lg);
|
|
74
|
+
--catalog-legacy-card-title-line-clamp: 2;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @tokens Catalog card description
|
|
78
|
+
*/
|
|
79
|
+
--catalog-legacy-card-description-line-clamp: 3;
|
|
80
|
+
--catalog-legacy-card-description-color: var(--text-color-secondary);
|
|
81
|
+
--catalog-legacy-card-description-font-size: var(--font-size-base);
|
|
82
|
+
--catalog-legacy-card-description-line-height: var(--line-height-base);
|
|
83
|
+
--catalog-legacy-card-description-font-weight: var(--font-weight-regular);
|
|
84
|
+
--catalog-legacy-card-description-height: 62px;
|
|
85
|
+
|
|
86
|
+
--catalog-legacy-card-content-gap: var(--spacing-xxs);
|
|
87
|
+
|
|
88
|
+
--catalog-legacy-card-tag-bg: transparent;
|
|
89
|
+
|
|
90
|
+
--catalog-legacy-highlight-bg-color: none;
|
|
91
|
+
--catalog-legacy-highlight-text-color: var(--color-info-base);
|
|
92
|
+
|
|
93
|
+
--catalog-legacy-actions-gap: var(--spacing-xs);
|
|
94
|
+
--catalog-legacy-actions-padding-vertical: var(--spacing-xs);
|
|
95
|
+
--catalog-legacy-actions-padding-horizontal: 5%;
|
|
96
|
+
--catalog-legacy-actions-min-height: 40px;
|
|
97
|
+
--catalog-legacy-actions-bg-color: var(--bg-color-tonal);
|
|
98
|
+
|
|
99
|
+
--catalog-legacy-page-badge-border-radius: var(--border-radius);
|
|
100
|
+
--catalog-legacy-page-badge-padding: 0 var(--spacing-xs);
|
|
101
|
+
--catalog-legacy-page-badge-font-size: var(--font-size-base);
|
|
102
|
+
--catalog-legacy-page-badge-line-height: var(--line-height-base);
|
|
103
|
+
|
|
104
|
+
--catalog-legacy-page-badge-dot-size: 6px;
|
|
105
|
+
--catalog-legacy-page-badge-dot-border-color: #ffffff;
|
|
106
|
+
|
|
107
|
+
// @tokens End
|
|
108
|
+
`;
|
|
109
|
+
//# sourceMappingURL=variables.js.map
|
|
@@ -63,7 +63,7 @@ function MenuItem(props) {
|
|
|
63
63
|
const chevron = hasChevron ? (isExpanded ? (react_1.default.createElement(ChevronDownIcon_1.ChevronDownIcon, { size: "var(--menu-item-label-chevron-size)", color: "--tree-content-color-default" })) : (react_1.default.createElement(ChevronRightIcon_1.ChevronRightIcon, { size: "var(--menu-item-label-chevron-size)", color: "--tree-content-color-default" }))) : null;
|
|
64
64
|
const httpColor = item.deprecated ? 'http-deprecated' : item.httpVerb;
|
|
65
65
|
const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { active: item.active, deprecated: item.deprecated, depth: depth, withChevron: hasChevron, onClick: handleOnClick, ref: labelRef, role: item.link ? 'none' : 'link', "data-testid": "menu-item-label" },
|
|
66
|
-
chevron,
|
|
66
|
+
react_1.default.createElement(ChevronWrapper, null, chevron),
|
|
67
67
|
item.icon ? react_1.default.createElement(MenuItemIcon, { src: item.icon }) : null,
|
|
68
68
|
react_1.default.createElement(MenuItemLabelTextWrapper, null,
|
|
69
69
|
react_1.default.createElement(MenuItemLabel, null,
|
|
@@ -94,6 +94,9 @@ function generateClassName({ type, item, className, }) {
|
|
|
94
94
|
.join(' ')
|
|
95
95
|
.trim();
|
|
96
96
|
}
|
|
97
|
+
const ChevronWrapper = styled_components_1.default.div `
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
`;
|
|
97
100
|
const MenuItemWrapper = styled_components_1.default.div `
|
|
98
101
|
display: flex;
|
|
99
102
|
flex-direction: column;
|
|
@@ -49,6 +49,7 @@ const AiStarsIcon_1 = require("../../icons/AiStarsIcon/AiStarsIcon");
|
|
|
49
49
|
const ReturnKeyIcon_1 = require("../../icons/ReturnKeyIcon/ReturnKeyIcon");
|
|
50
50
|
const ChevronLeftIcon_1 = require("../../icons/ChevronLeftIcon/ChevronLeftIcon");
|
|
51
51
|
const EditIcon_1 = require("../../icons/EditIcon/EditIcon");
|
|
52
|
+
const AiStarsGradientIcon_1 = require("../../icons/AiStarsGradientIcon/AiStarsGradientIcon");
|
|
52
53
|
function SearchDialog({ onClose, className }) {
|
|
53
54
|
const { useTranslate, useCurrentProduct, useSearch, useProducts, useAiSearch, useOtelTelemetry } = (0, hooks_1.useThemeHooks)();
|
|
54
55
|
const otelTelemetry = useOtelTelemetry();
|
|
@@ -157,7 +158,7 @@ function SearchDialog({ onClose, className }) {
|
|
|
157
158
|
}
|
|
158
159
|
}, "data-translation-key": "search.label" }),
|
|
159
160
|
showHeaderButtons && (react_1.default.createElement(SearchHeaderButtons, null,
|
|
160
|
-
showAiSearchButton ? (react_1.default.createElement(SearchAiButton, { icon: react_1.default.createElement(
|
|
161
|
+
showAiSearchButton ? (react_1.default.createElement(SearchAiButton, { icon: react_1.default.createElement(AiStarsGradientIcon_1.AiStarsGradientIcon, { color: "var(--search-ai-button-icon-color)" }), onClick: () => {
|
|
161
162
|
setMode('ai-dialog');
|
|
162
163
|
if (query.trim()) {
|
|
163
164
|
aiSearch.askQuestion(query);
|
|
@@ -188,6 +188,8 @@ exports.search = (0, styled_components_1.css) `
|
|
|
188
188
|
--search-ai-icon-bg-color: var(--search-ai-gradient);
|
|
189
189
|
--search-ai-icon-color: var(--color-static-white);
|
|
190
190
|
|
|
191
|
+
--search-ai-button-icon-color: none;
|
|
192
|
+
|
|
191
193
|
--search-ai-thinking-dots-gap: 4px;
|
|
192
194
|
--search-ai-thinking-dots-padding: 4px 0;
|
|
193
195
|
--search-ai-thinking-dot-size: 6px;
|
|
@@ -24,17 +24,17 @@ exports.tagDarkMode = (0, styled_components_1.css) `
|
|
|
24
24
|
--tag-operation-color-options: #1a1c21; // @presenter Color
|
|
25
25
|
--tag-operation-bg-color-options: #2a2b33; // @presenter Color
|
|
26
26
|
|
|
27
|
-
--tag-action-color-receive: #
|
|
28
|
-
--tag-action-color-sub: #
|
|
29
|
-
--tag-action-color-
|
|
27
|
+
--tag-action-color-receive: #88CF82; // @presenter Color
|
|
28
|
+
--tag-action-color-sub: #88CF82; // @presenter Color
|
|
29
|
+
--tag-action-color-cons: #88CF82; // @presenter Color
|
|
30
30
|
|
|
31
|
-
--tag-action-color-send: #
|
|
32
|
-
--tag-action-color-pub: #
|
|
33
|
-
--tag-action-color-publish: #
|
|
31
|
+
--tag-action-color-send: #7779F8; // @presenter Color
|
|
32
|
+
--tag-action-color-pub: #7779F8; // @presenter Color
|
|
33
|
+
--tag-action-color-publish: #7779F8; // @presenter Color
|
|
34
34
|
|
|
35
|
-
--tag-action-color-channel: #
|
|
36
|
-
--tag-action-color-topic: #
|
|
37
|
-
--tag-action-color-queue: #
|
|
35
|
+
--tag-action-color-channel: #F5AD5B; // @presenter Color
|
|
36
|
+
--tag-action-color-topic: #F5AD5B; // @presenter Color
|
|
37
|
+
--tag-action-color-queue: #F7A7CF; // @presenter Color
|
|
38
38
|
--tag-action-color-exchange: #C79CF2; // @presenter Color
|
|
39
39
|
|
|
40
40
|
.tag-grey,
|
|
@@ -199,7 +199,7 @@ exports.tag = (0, styled_components_1.css) `
|
|
|
199
199
|
|
|
200
200
|
--tag-action-color-receive: #4db144; // @presenter Color
|
|
201
201
|
--tag-action-color-sub: #4db144; // @presenter Color
|
|
202
|
-
--tag-action-color-
|
|
202
|
+
--tag-action-color-cons: #4db144; // @presenter Color
|
|
203
203
|
|
|
204
204
|
--tag-action-color-send: #4144f6; // @presenter Color
|
|
205
205
|
--tag-action-color-pub: #4144f6; // @presenter Color
|
|
@@ -250,8 +250,8 @@ exports.tag = (0, styled_components_1.css) `
|
|
|
250
250
|
--tag-color: var(--tag-action-color-sub); // @presenter Color
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
.tag-
|
|
254
|
-
--tag-color: var(--tag-action-color-
|
|
253
|
+
.tag-cons {
|
|
254
|
+
--tag-color: var(--tag-action-color-cons); // @presenter Color
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
.tag-publish {
|
|
@@ -7,7 +7,7 @@ export declare const useThemeHooks: jest.Mock<{
|
|
|
7
7
|
}, [], any>;
|
|
8
8
|
useBreadcrumbs: jest.Mock<any, any, any>;
|
|
9
9
|
usePageSharedData: jest.Mock<any, any, any>;
|
|
10
|
-
|
|
10
|
+
useCatalogLegacy: jest.Mock<{
|
|
11
11
|
groups: never[];
|
|
12
12
|
filters: never[];
|
|
13
13
|
filterTerm: string;
|
|
@@ -14,7 +14,7 @@ exports.useThemeHooks = jest.fn(() => ({
|
|
|
14
14
|
})),
|
|
15
15
|
useBreadcrumbs: jest.fn().mockReturnValue([]),
|
|
16
16
|
usePageSharedData: jest.fn().mockReturnValue({}),
|
|
17
|
-
|
|
17
|
+
useCatalogLegacy: jest.fn(() => ({
|
|
18
18
|
groups: [],
|
|
19
19
|
filters: [],
|
|
20
20
|
filterTerm: '',
|
|
@@ -10,7 +10,7 @@ const variables_4 = require("../../components/Sidebar/variables");
|
|
|
10
10
|
const variables_5 = require("../../components/Breadcrumbs/variables");
|
|
11
11
|
const variables_6 = require("../../components/Tag/variables");
|
|
12
12
|
const variables_7 = require("../../components/TableOfContent/variables");
|
|
13
|
-
const variables_8 = require("../../components/
|
|
13
|
+
const variables_8 = require("../../components/CatalogLegacy/variables");
|
|
14
14
|
const variables_9 = require("../../components/Filter/variables");
|
|
15
15
|
const variables_10 = require("../../components/Panel/variables");
|
|
16
16
|
const variables_11 = require("../../components/Select/variables");
|
|
@@ -21,6 +21,7 @@ export type ThemeHooks = {
|
|
|
21
21
|
useI18nConfig: () => L10nConfig;
|
|
22
22
|
useL10n: () => {
|
|
23
23
|
changeLanguage: (lng?: string | undefined, callback?: Callback | undefined) => Promise<TFunc>;
|
|
24
|
+
lang: string;
|
|
24
25
|
};
|
|
25
26
|
useL10nConfig: () => L10nConfig;
|
|
26
27
|
useCurrentProduct: () => ProductUiConfig | undefined;
|
|
@@ -99,7 +100,7 @@ export type ThemeHooks = {
|
|
|
99
100
|
prevPage?: ResolvedNavItemWithLink;
|
|
100
101
|
nextPage?: ResolvedNavItemWithLink;
|
|
101
102
|
} | undefined;
|
|
102
|
-
|
|
103
|
+
useCatalogLegacy: (config: CatalogConfig) => FilteredCatalog;
|
|
103
104
|
useTelemetry: () => {
|
|
104
105
|
send(action: TelemetryEvent, data: unknown): void;
|
|
105
106
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconProps } from '../../icons/types';
|
|
3
|
+
export interface AiStarsGradientIconProps extends IconProps {
|
|
4
|
+
background?: string;
|
|
5
|
+
borderRadius?: string;
|
|
6
|
+
padding?: string;
|
|
7
|
+
margin?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const AiStarsGradientIcon: import("styled-components").StyledComponent<(props: AiStarsGradientIconProps) => React.JSX.Element, any, {
|
|
10
|
+
'data-component-name': string;
|
|
11
|
+
} & AiStarsGradientIconProps, "data-component-name">;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.AiStarsGradientIcon = void 0;
|
|
18
|
+
const react_1 = __importDefault(require("react"));
|
|
19
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
20
|
+
const utils_1 = require("../../core/utils");
|
|
21
|
+
const Icon = (props) => {
|
|
22
|
+
const { color = '', background, borderRadius, padding, margin } = props, restProps = __rest(props, ["color", "background", "borderRadius", "padding", "margin"]);
|
|
23
|
+
const resolvedColor = color.startsWith('var(')
|
|
24
|
+
? getComputedStyle(document.documentElement).getPropertyValue(color.slice(4, -1)).trim()
|
|
25
|
+
: color;
|
|
26
|
+
const isColorOverridden = resolvedColor && resolvedColor !== 'none';
|
|
27
|
+
const fill = isColorOverridden ? resolvedColor : 'url(#gradient)';
|
|
28
|
+
return (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, restProps),
|
|
29
|
+
!isColorOverridden && (react_1.default.createElement("defs", null,
|
|
30
|
+
react_1.default.createElement("linearGradient", { id: "gradient", x1: "0", y1: "0", x2: "1", y2: "0" },
|
|
31
|
+
react_1.default.createElement("stop", { offset: "0%", stopColor: "#715efe" }),
|
|
32
|
+
react_1.default.createElement("stop", { offset: "100%", stopColor: "#ff5cdc" })))),
|
|
33
|
+
react_1.default.createElement("path", { d: "M11.2597 9.12114C8.08498 8.40423 7.59322 7.91247 6.87631 4.73772C6.84346 4.59262 6.7143 4.48929 6.56505 4.48929C6.4158 4.48929 6.28664 4.59262 6.2538 4.73772C5.53657 7.91247 5.04513 8.40423 1.87038 9.12114C1.72495 9.1543 1.62163 9.28314 1.62163 9.43239C1.62163 9.58164 1.72495 9.71048 1.87038 9.74365C5.04513 10.4609 5.53657 10.9526 6.2538 14.1271C6.28664 14.2722 6.4158 14.3755 6.56505 14.3755C6.7143 14.3755 6.84346 14.2722 6.87631 14.1271C7.59354 10.9526 8.08498 10.4609 11.2597 9.74365C11.4052 9.71048 11.5082 9.58164 11.5082 9.43239C11.5082 9.28314 11.4048 9.1543 11.2597 9.12114Z", fill: fill }),
|
|
34
|
+
react_1.default.createElement("path", { d: "M14.1299 4.17834C12.4423 3.79725 12.2053 3.5603 11.8242 1.87294C11.7911 1.72752 11.6622 1.62451 11.513 1.62451C11.3637 1.62451 11.2349 1.72752 11.2017 1.87294C10.8206 3.5603 10.5837 3.79725 8.8963 4.17834C8.75088 4.21151 8.64787 4.34035 8.64787 4.4896C8.64787 4.63885 8.75088 4.76769 8.8963 4.80086C10.5837 5.18195 10.8206 5.4189 11.2017 7.10658C11.2349 7.25168 11.3637 7.35501 11.513 7.35501C11.6622 7.35501 11.7911 7.25168 11.8242 7.10658C12.2053 5.4189 12.4423 5.18195 14.1299 4.80086C14.275 4.76769 14.3784 4.63885 14.3784 4.4896C14.3784 4.34035 14.275 4.21151 14.1299 4.17834Z", fill: fill })));
|
|
35
|
+
};
|
|
36
|
+
exports.AiStarsGradientIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
|
|
37
|
+
'data-component-name': 'icons/AiStarsGradientIcon/AiStarsGradientIcon',
|
|
38
|
+
})) `
|
|
39
|
+
height: ${({ size }) => size || '16px'};
|
|
40
|
+
width: ${({ size }) => size || '16px'};
|
|
41
|
+
|
|
42
|
+
${({ background, borderRadius, margin }) => background &&
|
|
43
|
+
`
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
|
|
48
|
+
background: ${(0, utils_1.getCssColorVariable)(background)};
|
|
49
|
+
|
|
50
|
+
padding: var(--spacing-xs);
|
|
51
|
+
margin: ${margin || '0'};
|
|
52
|
+
|
|
53
|
+
border-radius: ${background && borderRadius ? borderRadius : 'none'};
|
|
54
|
+
`}
|
|
55
|
+
|
|
56
|
+
color: ${({ color }) => color && (0, utils_1.getCssColorVariable)(color)};
|
|
57
|
+
`;
|
|
58
|
+
//# sourceMappingURL=AiStarsGradientIcon.js.map
|
|
@@ -19,37 +19,29 @@ const react_1 = __importDefault(require("react"));
|
|
|
19
19
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
20
20
|
const utils_1 = require("../../core/utils");
|
|
21
21
|
const Icon = (props) => {
|
|
22
|
-
const {
|
|
22
|
+
const { color, background, borderRadius, padding, margin } = props, restProps = __rest(props, ["color", "background", "borderRadius", "padding", "margin"]);
|
|
23
23
|
return (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, restProps),
|
|
24
|
-
react_1.default.createElement("
|
|
25
|
-
|
|
26
|
-
react_1.default.createElement("stop", { offset: "0%", stopColor: "#715efe" }),
|
|
27
|
-
react_1.default.createElement("stop", { offset: "100%", stopColor: "#ff5cdc" }))),
|
|
28
|
-
react_1.default.createElement("path", { d: "M11.2597 9.12114C8.08498 8.40423 7.59322 7.91247 6.87631 4.73772C6.84346 4.59262 6.7143 4.48929 6.56505 4.48929C6.4158 4.48929 6.28664 4.59262 6.2538 4.73772C5.53657 7.91247 5.04513 8.40423 1.87038 9.12114C1.72495 9.1543 1.62163 9.28314 1.62163 9.43239C1.62163 9.58164 1.72495 9.71048 1.87038 9.74365C5.04513 10.4609 5.53657 10.9526 6.2538 14.1271C6.28664 14.2722 6.4158 14.3755 6.56505 14.3755C6.7143 14.3755 6.84346 14.2722 6.87631 14.1271C7.59354 10.9526 8.08498 10.4609 11.2597 9.74365C11.4052 9.71048 11.5082 9.58164 11.5082 9.43239C11.5082 9.28314 11.4048 9.1543 11.2597 9.12114Z", fill: "#1A1C21" }),
|
|
29
|
-
react_1.default.createElement("path", { d: "M14.1299 4.17834C12.4423 3.79725 12.2053 3.5603 11.8242 1.87294C11.7911 1.72752 11.6622 1.62451 11.513 1.62451C11.3637 1.62451 11.2349 1.72752 11.2017 1.87294C10.8206 3.5603 10.5837 3.79725 8.8963 4.17834C8.75088 4.21151 8.64787 4.34035 8.64787 4.4896C8.64787 4.63885 8.75088 4.76769 8.8963 4.80086C10.5837 5.18195 10.8206 5.4189 11.2017 7.10658C11.2349 7.25168 11.3637 7.35501 11.513 7.35501C11.6622 7.35501 11.7911 7.25168 11.8242 7.10658C12.2053 5.4189 12.4423 5.18195 14.1299 4.80086C14.275 4.76769 14.3784 4.63885 14.3784 4.4896C14.3784 4.34035 14.275 4.21151 14.1299 4.17834Z", fill: "#1A1C21" })));
|
|
24
|
+
react_1.default.createElement("path", { d: "M11.2597 9.12114C8.08498 8.40423 7.59322 7.91247 6.87631 4.73772C6.84346 4.59262 6.7143 4.48929 6.56505 4.48929C6.4158 4.48929 6.28664 4.59262 6.2538 4.73772C5.53657 7.91247 5.04513 8.40423 1.87038 9.12114C1.72495 9.1543 1.62163 9.28314 1.62163 9.43239C1.62163 9.58164 1.72495 9.71048 1.87038 9.74365C5.04513 10.4609 5.53657 10.9526 6.2538 14.1271C6.28664 14.2722 6.4158 14.3755 6.56505 14.3755C6.7143 14.3755 6.84346 14.2722 6.87631 14.1271C7.59354 10.9526 8.08498 10.4609 11.2597 9.74365C11.4052 9.71048 11.5082 9.58164 11.5082 9.43239C11.5082 9.28314 11.4048 9.1543 11.2597 9.12114Z", fill: (0, utils_1.getCssColorVariable)(color) }),
|
|
25
|
+
react_1.default.createElement("path", { d: "M14.1299 4.17834C12.4423 3.79725 12.2053 3.5603 11.8242 1.87294C11.7911 1.72752 11.6622 1.62451 11.513 1.62451C11.3637 1.62451 11.2349 1.72752 11.2017 1.87294C10.8206 3.5603 10.5837 3.79725 8.8963 4.17834C8.75088 4.21151 8.64787 4.34035 8.64787 4.4896C8.64787 4.63885 8.75088 4.76769 8.8963 4.80086C10.5837 5.18195 10.8206 5.4189 11.2017 7.10658C11.2349 7.25168 11.3637 7.35501 11.513 7.35501C11.6622 7.35501 11.7911 7.25168 11.8242 7.10658C12.2053 5.4189 12.4423 5.18195 14.1299 4.80086C14.275 4.76769 14.3784 4.63885 14.3784 4.4896C14.3784 4.34035 14.275 4.21151 14.1299 4.17834Z", fill: (0, utils_1.getCssColorVariable)(color) })));
|
|
30
26
|
};
|
|
31
27
|
exports.AiStarsIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
|
|
32
28
|
'data-component-name': 'icons/AiStarsIcon/AiStarsIcon',
|
|
33
29
|
})) `
|
|
34
|
-
path {
|
|
35
|
-
fill: ${({ color, gradient }) => gradient ? 'url(#aiStarsGradient)' : (0, utils_1.getCssColorVariable)(color)};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
30
|
height: ${({ size }) => size || '16px'};
|
|
39
31
|
width: ${({ size }) => size || '16px'};
|
|
40
32
|
|
|
41
33
|
${({ background, borderRadius, margin }) => background &&
|
|
42
34
|
`
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
|
|
39
|
+
background: ${(0, utils_1.getCssColorVariable)(background)};
|
|
46
40
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
border-radius: ${background && borderRadius ? borderRadius : 'none'};
|
|
41
|
+
padding: var(--spacing-xs);
|
|
42
|
+
margin: ${margin || '0'};
|
|
43
|
+
|
|
44
|
+
border-radius: ${background && borderRadius ? borderRadius : 'none'};
|
|
53
45
|
`}
|
|
54
46
|
|
|
55
47
|
color: ${({ color }) => color && (0, utils_1.getCssColorVariable)(color)};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconProps } from '../../icons/types';
|
|
3
|
+
export declare const RabbitMQIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
|
|
4
|
+
'data-component-name': string;
|
|
5
|
+
} & {
|
|
6
|
+
color?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.SVGProps<SVGSVGElement>, "data-component-name">;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RabbitMQIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const utils_1 = require("../../core/utils");
|
|
10
|
+
const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
11
|
+
react_1.default.createElement("g", { clipPath: "url(#clip0_15358_36168)" },
|
|
12
|
+
react_1.default.createElement("path", { d: "M13.1 6.8695H9.555C9.2715 6.8355 9.0555 6.586 9.0555 6.292V2.572C9.056 2.255 8.7985 2 8.484 2H7.2435C6.926 2 6.671 2.2575 6.671 2.5725V6.3315C6.6555 6.6155 6.4215 6.8435 6.1405 6.8695H5.212C4.939 6.836 4.728 6.607 4.71 6.33V2.5725C4.71 2.255 4.4525 2 4.138 2H2.897C2.58 2 2.325 2.2575 2.325 2.5725V7.442V13.4275C2.325 13.745 2.5825 14 2.897 14H4.1375H7.2425H8.483H13.1025C13.42 14 13.675 13.7425 13.675 13.4275V7.442C13.673 7.125 13.4175 6.8695 13.1 6.8695ZM11.4665 10.9745C11.4665 11.292 11.209 11.5495 10.8945 11.5495H9.6545C9.3365 11.5495 9.081 11.292 9.081 10.9745V9.804C9.081 9.486 9.3385 9.2295 9.6545 9.2295H10.8945C11.2125 9.2295 11.4665 9.487 11.4665 9.804V10.9745Z", fill: "#1A1C21" })),
|
|
13
|
+
react_1.default.createElement("defs", null,
|
|
14
|
+
react_1.default.createElement("clipPath", { id: "clip0_15358_36168" },
|
|
15
|
+
react_1.default.createElement("rect", { width: "12", height: "12", fill: "white", transform: "translate(2 2)" })))));
|
|
16
|
+
exports.RabbitMQIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
|
|
17
|
+
'data-component-name': 'icons/RabbitMQIcon/RabbitMQIcon',
|
|
18
|
+
})) `
|
|
19
|
+
path {
|
|
20
|
+
fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
height: ${({ size }) => size || '16px'};
|
|
24
|
+
width: ${({ size }) => size || '16px'};
|
|
25
|
+
`;
|
|
26
|
+
//# sourceMappingURL=RabbitMQIcon.js.map
|
package/lib/index.d.ts
CHANGED
|
@@ -96,12 +96,12 @@ export * from './components/Menu/MenuItem';
|
|
|
96
96
|
export * from './components/Menu/MenuMobile';
|
|
97
97
|
export * from './components/Breadcrumbs/Breadcrumb';
|
|
98
98
|
export * from './components/Breadcrumbs/Breadcrumbs';
|
|
99
|
-
export * from './components/
|
|
100
|
-
export * from './components/
|
|
101
|
-
export * from './components/
|
|
102
|
-
export * from './components/
|
|
103
|
-
export * from './components/
|
|
104
|
-
export * from './components/
|
|
99
|
+
export * from './components/CatalogLegacy/CatalogLegacy';
|
|
100
|
+
export * from './components/CatalogLegacy/CatalogLegacyCard';
|
|
101
|
+
export * from './components/CatalogLegacy/CatalogLegacyActions';
|
|
102
|
+
export * from './components/CatalogLegacy/CatalogLegacyHighlight';
|
|
103
|
+
export * from './components/CatalogLegacy/CatalogLegacyInfoBlock';
|
|
104
|
+
export * from './components/CatalogLegacy/CatalogLegacyVirtualizedGroups';
|
|
105
105
|
export * from './components/Product/Product';
|
|
106
106
|
export * from './components/Product/ProductPicker';
|
|
107
107
|
export * from './components/StatusCode/StatusCode';
|
|
@@ -225,7 +225,10 @@ export * from './icons/CheckboxFilledIcon/CheckboxFilledIcon';
|
|
|
225
225
|
export * from './icons/WarningAltFilled/WarningAltFilled';
|
|
226
226
|
export * from './icons/SettingsCogIcon/SettingsCogIcon';
|
|
227
227
|
export * from './icons/KafkaIcon/KafkaIcon';
|
|
228
|
+
export * from './icons/RabbitMQIcon/RabbitMQIcon';
|
|
228
229
|
export * from './icons/CurveAutoColonIcon/CurveAutoColonIcon';
|
|
230
|
+
export * from './icons/AiStarsIcon/AiStarsIcon';
|
|
231
|
+
export * from './icons/AiStarsGradientIcon/AiStarsGradientIcon';
|
|
229
232
|
export * from './layouts/RootLayout';
|
|
230
233
|
export * from './layouts/PageLayout';
|
|
231
234
|
export * from './layouts/NotFound';
|
package/lib/index.js
CHANGED
|
@@ -144,12 +144,12 @@ __exportStar(require("./components/Menu/MenuMobile"), exports);
|
|
|
144
144
|
__exportStar(require("./components/Breadcrumbs/Breadcrumb"), exports);
|
|
145
145
|
__exportStar(require("./components/Breadcrumbs/Breadcrumbs"), exports);
|
|
146
146
|
/* Catalog */
|
|
147
|
-
__exportStar(require("./components/
|
|
148
|
-
__exportStar(require("./components/
|
|
149
|
-
__exportStar(require("./components/
|
|
150
|
-
__exportStar(require("./components/
|
|
151
|
-
__exportStar(require("./components/
|
|
152
|
-
__exportStar(require("./components/
|
|
147
|
+
__exportStar(require("./components/CatalogLegacy/CatalogLegacy"), exports);
|
|
148
|
+
__exportStar(require("./components/CatalogLegacy/CatalogLegacyCard"), exports);
|
|
149
|
+
__exportStar(require("./components/CatalogLegacy/CatalogLegacyActions"), exports);
|
|
150
|
+
__exportStar(require("./components/CatalogLegacy/CatalogLegacyHighlight"), exports);
|
|
151
|
+
__exportStar(require("./components/CatalogLegacy/CatalogLegacyInfoBlock"), exports);
|
|
152
|
+
__exportStar(require("./components/CatalogLegacy/CatalogLegacyVirtualizedGroups"), exports);
|
|
153
153
|
/* Product */
|
|
154
154
|
__exportStar(require("./components/Product/Product"), exports);
|
|
155
155
|
__exportStar(require("./components/Product/ProductPicker"), exports);
|
|
@@ -277,7 +277,10 @@ __exportStar(require("./icons/CheckboxFilledIcon/CheckboxFilledIcon"), exports);
|
|
|
277
277
|
__exportStar(require("./icons/WarningAltFilled/WarningAltFilled"), exports);
|
|
278
278
|
__exportStar(require("./icons/SettingsCogIcon/SettingsCogIcon"), exports);
|
|
279
279
|
__exportStar(require("./icons/KafkaIcon/KafkaIcon"), exports);
|
|
280
|
+
__exportStar(require("./icons/RabbitMQIcon/RabbitMQIcon"), exports);
|
|
280
281
|
__exportStar(require("./icons/CurveAutoColonIcon/CurveAutoColonIcon"), exports);
|
|
282
|
+
__exportStar(require("./icons/AiStarsIcon/AiStarsIcon"), exports);
|
|
283
|
+
__exportStar(require("./icons/AiStarsGradientIcon/AiStarsGradientIcon"), exports);
|
|
281
284
|
/* Layouts */
|
|
282
285
|
__exportStar(require("./layouts/RootLayout"), exports);
|
|
283
286
|
__exportStar(require("./layouts/PageLayout"), exports);
|
|
@@ -71,6 +71,11 @@ const ContentWrapper = styled_components_1.default.div `
|
|
|
71
71
|
& > *:not(.code-step-wrapper) {
|
|
72
72
|
padding-left: var(--spacing-xl);
|
|
73
73
|
}
|
|
74
|
+
& > ul:not(.code-step-wrapper),
|
|
75
|
+
& > ol:not(.code-step-wrapper) {
|
|
76
|
+
padding-left: calc(var(--spacing-xl) + var(--md-list-left-padding));
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
overflow-y: scroll;
|
|
75
80
|
|
|
76
81
|
/* Hide scrollbar for Chrome, Safari and Opera */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/theme",
|
|
3
|
-
"version": "0.54.0-next.
|
|
3
|
+
"version": "0.54.0-next.3",
|
|
4
4
|
"description": "Shared UI components lib",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"json-schema-to-ts": "2.7.2",
|
|
62
62
|
"npm-run-all2": "5.0.2",
|
|
63
63
|
"react-refresh": "0.14.2",
|
|
64
|
-
"react-router-dom": "6.21.1",
|
|
64
|
+
"react-router-dom": "^6.21.1",
|
|
65
65
|
"resize-observer-polyfill": "1.5.1",
|
|
66
66
|
"rimraf": "5.0.7",
|
|
67
67
|
"styled-components": "5.3.11",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"hotkeys-js": "3.10.1",
|
|
84
84
|
"i18next": "22.4.15",
|
|
85
85
|
"jszip": "3.10.1",
|
|
86
|
-
"lodash.debounce": "4.0.8",
|
|
86
|
+
"lodash.debounce": "^4.0.8",
|
|
87
87
|
"lodash.throttle": "4.1.1",
|
|
88
88
|
"nprogress": "0.2.0",
|
|
89
89
|
"react-calendar": "4.2.1",
|