@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
|
@@ -22,17 +22,17 @@ export const tagDarkMode = css`
|
|
|
22
22
|
--tag-operation-color-options: #1a1c21; // @presenter Color
|
|
23
23
|
--tag-operation-bg-color-options: #2a2b33; // @presenter Color
|
|
24
24
|
|
|
25
|
-
--tag-action-color-receive: #
|
|
26
|
-
--tag-action-color-sub: #
|
|
27
|
-
--tag-action-color-
|
|
25
|
+
--tag-action-color-receive: #88CF82; // @presenter Color
|
|
26
|
+
--tag-action-color-sub: #88CF82; // @presenter Color
|
|
27
|
+
--tag-action-color-cons: #88CF82; // @presenter Color
|
|
28
28
|
|
|
29
|
-
--tag-action-color-send: #
|
|
30
|
-
--tag-action-color-pub: #
|
|
31
|
-
--tag-action-color-publish: #
|
|
29
|
+
--tag-action-color-send: #7779F8; // @presenter Color
|
|
30
|
+
--tag-action-color-pub: #7779F8; // @presenter Color
|
|
31
|
+
--tag-action-color-publish: #7779F8; // @presenter Color
|
|
32
32
|
|
|
33
|
-
--tag-action-color-channel: #
|
|
34
|
-
--tag-action-color-topic: #
|
|
35
|
-
--tag-action-color-queue: #
|
|
33
|
+
--tag-action-color-channel: #F5AD5B; // @presenter Color
|
|
34
|
+
--tag-action-color-topic: #F5AD5B; // @presenter Color
|
|
35
|
+
--tag-action-color-queue: #F7A7CF; // @presenter Color
|
|
36
36
|
--tag-action-color-exchange: #C79CF2; // @presenter Color
|
|
37
37
|
|
|
38
38
|
.tag-grey,
|
|
@@ -197,7 +197,7 @@ export const tag = css`
|
|
|
197
197
|
|
|
198
198
|
--tag-action-color-receive: #4db144; // @presenter Color
|
|
199
199
|
--tag-action-color-sub: #4db144; // @presenter Color
|
|
200
|
-
--tag-action-color-
|
|
200
|
+
--tag-action-color-cons: #4db144; // @presenter Color
|
|
201
201
|
|
|
202
202
|
--tag-action-color-send: #4144f6; // @presenter Color
|
|
203
203
|
--tag-action-color-pub: #4144f6; // @presenter Color
|
|
@@ -248,8 +248,8 @@ export const tag = css`
|
|
|
248
248
|
--tag-color: var(--tag-action-color-sub); // @presenter Color
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
.tag-
|
|
252
|
-
--tag-color: var(--tag-action-color-
|
|
251
|
+
.tag-cons {
|
|
252
|
+
--tag-color: var(--tag-action-color-cons); // @presenter Color
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
.tag-publish {
|
|
@@ -13,7 +13,7 @@ export const useThemeHooks = jest.fn(() => ({
|
|
|
13
13
|
})),
|
|
14
14
|
useBreadcrumbs: jest.fn().mockReturnValue([]),
|
|
15
15
|
usePageSharedData: jest.fn().mockReturnValue({}),
|
|
16
|
-
|
|
16
|
+
useCatalogLegacy: jest.fn(() => ({
|
|
17
17
|
groups: [],
|
|
18
18
|
filters: [],
|
|
19
19
|
filterTerm: '',
|
|
@@ -8,7 +8,7 @@ import { sidebar } from '@redocly/theme/components/Sidebar/variables';
|
|
|
8
8
|
import { breadcrumbs } from '@redocly/theme/components/Breadcrumbs/variables';
|
|
9
9
|
import { tag } from '@redocly/theme/components/Tag/variables';
|
|
10
10
|
import { toc } from '@redocly/theme/components/TableOfContent/variables';
|
|
11
|
-
import { catalog } from '@redocly/theme/components/
|
|
11
|
+
import { catalog } from '@redocly/theme/components/CatalogLegacy/variables';
|
|
12
12
|
import { filter } from '@redocly/theme/components/Filter/variables';
|
|
13
13
|
import { apiReferencePanels, responsePanelColors } from '@redocly/theme/components/Panel/variables';
|
|
14
14
|
import { select } from '@redocly/theme/components/Select/variables';
|
package/src/core/types/hooks.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type ThemeHooks = {
|
|
|
34
34
|
useI18nConfig: () => L10nConfig;
|
|
35
35
|
useL10n: () => {
|
|
36
36
|
changeLanguage: (lng?: string | undefined, callback?: Callback | undefined) => Promise<TFunc>;
|
|
37
|
+
lang: string;
|
|
37
38
|
};
|
|
38
39
|
useL10nConfig: () => L10nConfig;
|
|
39
40
|
useCurrentProduct: () => ProductUiConfig | undefined;
|
|
@@ -115,7 +116,7 @@ export type ThemeHooks = {
|
|
|
115
116
|
nextPage?: ResolvedNavItemWithLink;
|
|
116
117
|
}
|
|
117
118
|
| undefined;
|
|
118
|
-
|
|
119
|
+
useCatalogLegacy: (config: CatalogConfig) => FilteredCatalog;
|
|
119
120
|
useTelemetry: () => { send(action: TelemetryEvent, data: unknown): void };
|
|
120
121
|
useOtelTelemetry: () => { send(action: OtelTelemetryEvent, data: unknown): void };
|
|
121
122
|
useUserTeams: () => string[];
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
import type { IconProps } from '@redocly/theme/icons/types';
|
|
5
|
+
|
|
6
|
+
import { getCssColorVariable } from '@redocly/theme/core/utils';
|
|
7
|
+
|
|
8
|
+
export interface AiStarsGradientIconProps extends IconProps {
|
|
9
|
+
background?: string;
|
|
10
|
+
borderRadius?: string;
|
|
11
|
+
padding?: string;
|
|
12
|
+
margin?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const Icon = (props: AiStarsGradientIconProps) => {
|
|
16
|
+
const { color = '', background, borderRadius, padding, margin, ...restProps } = props;
|
|
17
|
+
|
|
18
|
+
const resolvedColor = color.startsWith('var(')
|
|
19
|
+
? getComputedStyle(document.documentElement).getPropertyValue(color.slice(4, -1)).trim()
|
|
20
|
+
: color;
|
|
21
|
+
|
|
22
|
+
const isColorOverridden = resolvedColor && resolvedColor !== 'none';
|
|
23
|
+
const fill = isColorOverridden ? resolvedColor : 'url(#gradient)';
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...restProps}>
|
|
27
|
+
{!isColorOverridden && (
|
|
28
|
+
<defs>
|
|
29
|
+
<linearGradient id="gradient" x1="0" y1="0" x2="1" y2="0">
|
|
30
|
+
<stop offset="0%" stopColor="#715efe" />
|
|
31
|
+
<stop offset="100%" stopColor="#ff5cdc" />
|
|
32
|
+
</linearGradient>
|
|
33
|
+
</defs>
|
|
34
|
+
)}
|
|
35
|
+
<path
|
|
36
|
+
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"
|
|
37
|
+
fill={fill}
|
|
38
|
+
/>
|
|
39
|
+
<path
|
|
40
|
+
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"
|
|
41
|
+
fill={fill}
|
|
42
|
+
/>
|
|
43
|
+
</svg>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const AiStarsGradientIcon = styled(Icon).attrs(() => ({
|
|
48
|
+
'data-component-name': 'icons/AiStarsGradientIcon/AiStarsGradientIcon',
|
|
49
|
+
}))<AiStarsGradientIconProps>`
|
|
50
|
+
height: ${({ size }) => size || '16px'};
|
|
51
|
+
width: ${({ size }) => size || '16px'};
|
|
52
|
+
|
|
53
|
+
${({ background, borderRadius, margin }) =>
|
|
54
|
+
background &&
|
|
55
|
+
`
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
|
|
60
|
+
background: ${getCssColorVariable(background)};
|
|
61
|
+
|
|
62
|
+
padding: var(--spacing-xs);
|
|
63
|
+
margin: ${margin || '0'};
|
|
64
|
+
|
|
65
|
+
border-radius: ${background && borderRadius ? borderRadius : 'none'};
|
|
66
|
+
`}
|
|
67
|
+
|
|
68
|
+
color: ${({ color }) => color && getCssColorVariable(color)};
|
|
69
|
+
`;
|
|
@@ -6,7 +6,6 @@ import type { IconProps } from '@redocly/theme/icons/types';
|
|
|
6
6
|
import { getCssColorVariable } from '@redocly/theme/core/utils';
|
|
7
7
|
|
|
8
8
|
export interface AiStarsIconProps extends IconProps {
|
|
9
|
-
gradient?: boolean;
|
|
10
9
|
background?: string;
|
|
11
10
|
borderRadius?: string;
|
|
12
11
|
padding?: string;
|
|
@@ -14,22 +13,17 @@ export interface AiStarsIconProps extends IconProps {
|
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
const Icon = (props: AiStarsIconProps) => {
|
|
17
|
-
const {
|
|
16
|
+
const { color, background, borderRadius, padding, margin, ...restProps } = props;
|
|
17
|
+
|
|
18
18
|
return (
|
|
19
19
|
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...restProps}>
|
|
20
|
-
<defs>
|
|
21
|
-
<linearGradient id="aiStarsGradient" x1="0" y1="0" x2="1" y2="0">
|
|
22
|
-
<stop offset="0%" stopColor="#715efe" />
|
|
23
|
-
<stop offset="100%" stopColor="#ff5cdc" />
|
|
24
|
-
</linearGradient>
|
|
25
|
-
</defs>
|
|
26
20
|
<path
|
|
27
21
|
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"
|
|
28
|
-
fill=
|
|
22
|
+
fill={getCssColorVariable(color)}
|
|
29
23
|
/>
|
|
30
24
|
<path
|
|
31
25
|
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"
|
|
32
|
-
fill=
|
|
26
|
+
fill={getCssColorVariable(color)}
|
|
33
27
|
/>
|
|
34
28
|
</svg>
|
|
35
29
|
);
|
|
@@ -38,27 +32,22 @@ const Icon = (props: AiStarsIconProps) => {
|
|
|
38
32
|
export const AiStarsIcon = styled(Icon).attrs(() => ({
|
|
39
33
|
'data-component-name': 'icons/AiStarsIcon/AiStarsIcon',
|
|
40
34
|
}))<AiStarsIconProps>`
|
|
41
|
-
path {
|
|
42
|
-
fill: ${({ color, gradient }) =>
|
|
43
|
-
gradient ? 'url(#aiStarsGradient)' : getCssColorVariable(color)};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
35
|
height: ${({ size }) => size || '16px'};
|
|
47
36
|
width: ${({ size }) => size || '16px'};
|
|
48
37
|
|
|
49
38
|
${({ background, borderRadius, margin }) =>
|
|
50
39
|
background &&
|
|
51
40
|
`
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
|
|
45
|
+
background: ${getCssColorVariable(background)};
|
|
55
46
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
border-radius: ${background && borderRadius ? borderRadius : 'none'};
|
|
47
|
+
padding: var(--spacing-xs);
|
|
48
|
+
margin: ${margin || '0'};
|
|
49
|
+
|
|
50
|
+
border-radius: ${background && borderRadius ? borderRadius : 'none'};
|
|
62
51
|
`}
|
|
63
52
|
|
|
64
53
|
color: ${({ color }) => color && getCssColorVariable(color)};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
import type { IconProps } from '@redocly/theme/icons/types';
|
|
5
|
+
|
|
6
|
+
import { getCssColorVariable } from '@redocly/theme/core/utils';
|
|
7
|
+
|
|
8
|
+
const Icon = (props: IconProps) => (
|
|
9
|
+
<svg
|
|
10
|
+
width="16"
|
|
11
|
+
height="16"
|
|
12
|
+
viewBox="0 0 16 16"
|
|
13
|
+
fill="none"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
{...props}
|
|
16
|
+
>
|
|
17
|
+
<g clipPath="url(#clip0_15358_36168)">
|
|
18
|
+
<path
|
|
19
|
+
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"
|
|
20
|
+
fill="#1A1C21"
|
|
21
|
+
/>
|
|
22
|
+
</g>
|
|
23
|
+
<defs>
|
|
24
|
+
<clipPath id="clip0_15358_36168">
|
|
25
|
+
<rect width="12" height="12" fill="white" transform="translate(2 2)" />
|
|
26
|
+
</clipPath>
|
|
27
|
+
</defs>
|
|
28
|
+
</svg>
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
export const RabbitMQIcon = styled(Icon).attrs(() => ({
|
|
32
|
+
'data-component-name': 'icons/RabbitMQIcon/RabbitMQIcon',
|
|
33
|
+
}))<IconProps>`
|
|
34
|
+
path {
|
|
35
|
+
fill: ${({ color }) => getCssColorVariable(color)};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
height: ${({ size }) => size || '16px'};
|
|
39
|
+
width: ${({ size }) => size || '16px'};
|
|
40
|
+
`;
|
package/src/index.ts
CHANGED
|
@@ -116,12 +116,12 @@ export * from '@redocly/theme/components/Menu/MenuMobile';
|
|
|
116
116
|
export * from '@redocly/theme/components/Breadcrumbs/Breadcrumb';
|
|
117
117
|
export * from '@redocly/theme/components/Breadcrumbs/Breadcrumbs';
|
|
118
118
|
/* Catalog */
|
|
119
|
-
export * from '@redocly/theme/components/
|
|
120
|
-
export * from '@redocly/theme/components/
|
|
121
|
-
export * from '@redocly/theme/components/
|
|
122
|
-
export * from '@redocly/theme/components/
|
|
123
|
-
export * from '@redocly/theme/components/
|
|
124
|
-
export * from '@redocly/theme/components/
|
|
119
|
+
export * from '@redocly/theme/components/CatalogLegacy/CatalogLegacy';
|
|
120
|
+
export * from '@redocly/theme/components/CatalogLegacy/CatalogLegacyCard';
|
|
121
|
+
export * from '@redocly/theme/components/CatalogLegacy/CatalogLegacyActions';
|
|
122
|
+
export * from '@redocly/theme/components/CatalogLegacy/CatalogLegacyHighlight';
|
|
123
|
+
export * from '@redocly/theme/components/CatalogLegacy/CatalogLegacyInfoBlock';
|
|
124
|
+
export * from '@redocly/theme/components/CatalogLegacy/CatalogLegacyVirtualizedGroups';
|
|
125
125
|
/* Product */
|
|
126
126
|
export * from '@redocly/theme/components/Product/Product';
|
|
127
127
|
export * from '@redocly/theme/components/Product/ProductPicker';
|
|
@@ -249,7 +249,10 @@ export * from '@redocly/theme/icons/CheckboxFilledIcon/CheckboxFilledIcon';
|
|
|
249
249
|
export * from '@redocly/theme/icons/WarningAltFilled/WarningAltFilled';
|
|
250
250
|
export * from '@redocly/theme/icons/SettingsCogIcon/SettingsCogIcon';
|
|
251
251
|
export * from '@redocly/theme/icons/KafkaIcon/KafkaIcon';
|
|
252
|
+
export * from '@redocly/theme/icons/RabbitMQIcon/RabbitMQIcon';
|
|
252
253
|
export * from '@redocly/theme/icons/CurveAutoColonIcon/CurveAutoColonIcon';
|
|
254
|
+
export * from '@redocly/theme/icons/AiStarsIcon/AiStarsIcon';
|
|
255
|
+
export * from '@redocly/theme/icons/AiStarsGradientIcon/AiStarsGradientIcon';
|
|
253
256
|
/* Layouts */
|
|
254
257
|
export * from '@redocly/theme/layouts/RootLayout';
|
|
255
258
|
export * from '@redocly/theme/layouts/PageLayout';
|
|
@@ -91,6 +91,11 @@ const ContentWrapper = styled.div`
|
|
|
91
91
|
& > *:not(.code-step-wrapper) {
|
|
92
92
|
padding-left: var(--spacing-xl);
|
|
93
93
|
}
|
|
94
|
+
& > ul:not(.code-step-wrapper),
|
|
95
|
+
& > ol:not(.code-step-wrapper) {
|
|
96
|
+
padding-left: calc(var(--spacing-xl) + var(--md-list-left-padding));
|
|
97
|
+
}
|
|
98
|
+
|
|
94
99
|
overflow-y: scroll;
|
|
95
100
|
|
|
96
101
|
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
@@ -1,109 +0,0 @@
|
|
|
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-page-padding-vertical: var(--spacing-lg);
|
|
11
|
-
--catalog-page-padding-horizontal: var(--spacing-xl);
|
|
12
|
-
--catalog-page-padding: var(--catalog-page-padding-vertical) var(--catalog-page-padding-horizontal);
|
|
13
|
-
|
|
14
|
-
--catalog-filter-padding-vertical-mobile: 0;
|
|
15
|
-
--catalog-filter-padding-horizontal-mobile: var(--spacing-base);
|
|
16
|
-
|
|
17
|
-
--catalog-heading-margin: 0 0 var(--spacing-xl) 0;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @tokens Catalog page title
|
|
21
|
-
*/
|
|
22
|
-
--catalog-title-text-color: var(--text-color-primary);
|
|
23
|
-
--catalog-title-font-weight: var(--font-weight-bold);
|
|
24
|
-
--catalog-title-font-size: var(--font-size-heading-3);
|
|
25
|
-
--catalog-title-margin: 0 0 var(--spacing-sm) 0;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @tokens Catalog page description
|
|
29
|
-
*/
|
|
30
|
-
--catalog-description-text-color: var(--text-color-secondary);
|
|
31
|
-
--catalog-description-font-weight: var(--font-weight-regular);
|
|
32
|
-
--catalog-description-font-size: var(--font-size-base);
|
|
33
|
-
--catalog-description-margin: 0 0 var(--spacing-sm) 0;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @tokens Catalog page separator
|
|
37
|
-
*/
|
|
38
|
-
--catalog-separator-color: var(--text-color-secondary);
|
|
39
|
-
--catalog-separator-font-size: var(--font-size-base);
|
|
40
|
-
--catalog-separator-font-weight: var(--font-weight-regular);
|
|
41
|
-
--catalog-separator-border-color: var(--border-color-secondary);
|
|
42
|
-
--catalog-separator-margin: 0 0 var(--spacing-base) 0;
|
|
43
|
-
--catalog-separator-padding: var(--spacing-xxs) 0 0 0;
|
|
44
|
-
--catalog-separator-label-margin: 0 var(--spacing-xs);
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @tokens Catalog card
|
|
48
|
-
*/
|
|
49
|
-
--catalog-card-min-height: 194px;
|
|
50
|
-
--catalog-card-min-width: 260px;
|
|
51
|
-
--catalog-card-padding-vertical: var(--spacing-base);
|
|
52
|
-
--catalog-card-padding-horizontal: var(--spacing-md);
|
|
53
|
-
--catalog-card-gap: var(--spacing-sm);
|
|
54
|
-
--catalog-card-text-color: var(--text-color-secondary);
|
|
55
|
-
--catalog-card-font-size: var(--font-size-base);
|
|
56
|
-
--catalog-card-font-weight: var(--font-weight-regular);
|
|
57
|
-
--catalog-card-bg-color: var(--layer-color);
|
|
58
|
-
--catalog-card-border-color: var(--border-color-secondary);
|
|
59
|
-
--catalog-card-border-width: var(--border-width);
|
|
60
|
-
--catalog-card-border-style: var(--border-style);
|
|
61
|
-
--catalog-card-border-color-hover: var(--border-color-primary);
|
|
62
|
-
--catalog-card-border-radius: var(--border-radius-xxl);
|
|
63
|
-
--catalog-cards-group-margin: 0 0 var(--spacing-base) 0;
|
|
64
|
-
--catalog-cards-group-gap: var(--spacing-xl);
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @tokens Catalog card title
|
|
68
|
-
*/
|
|
69
|
-
--catalog-card-title-color: var(--text-color-primary);
|
|
70
|
-
--catalog-card-title-min-height: var(--spacing-xxl);
|
|
71
|
-
--catalog-card-title-font-size: var(--font-size-lg);
|
|
72
|
-
--catalog-card-title-font-weight: var(--font-weight-bold);
|
|
73
|
-
--catalog-card-title-line-height: var(--line-height-lg);
|
|
74
|
-
--catalog-card-title-line-clamp: 2;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @tokens Catalog card description
|
|
78
|
-
*/
|
|
79
|
-
--catalog-card-description-line-clamp: 3;
|
|
80
|
-
--catalog-card-description-color: var(--text-color-secondary);
|
|
81
|
-
--catalog-card-description-font-size: var(--font-size-base);
|
|
82
|
-
--catalog-card-description-line-height: var(--line-height-base);
|
|
83
|
-
--catalog-card-description-font-weight: var(--font-weight-regular);
|
|
84
|
-
--catalog-card-description-height: 62px;
|
|
85
|
-
|
|
86
|
-
--catalog-card-content-gap: var(--spacing-xxs);
|
|
87
|
-
|
|
88
|
-
--catalog-card-tag-bg: transparent;
|
|
89
|
-
|
|
90
|
-
--catalog-highlight-bg-color: none;
|
|
91
|
-
--catalog-highlight-text-color: var(--color-info-base);
|
|
92
|
-
|
|
93
|
-
--catalog-actions-gap: var(--spacing-xs);
|
|
94
|
-
--catalog-actions-padding-vertical: var(--spacing-xs);
|
|
95
|
-
--catalog-actions-padding-horizontal: 5%;
|
|
96
|
-
--catalog-actions-min-height: 40px;
|
|
97
|
-
--catalog-actions-bg-color: var(--bg-color-tonal);
|
|
98
|
-
|
|
99
|
-
--catalog-page-badge-border-radius: var(--border-radius);
|
|
100
|
-
--catalog-page-badge-padding: 0 var(--spacing-xs);
|
|
101
|
-
--catalog-page-badge-font-size: var(--font-size-base);
|
|
102
|
-
--catalog-page-badge-line-height: var(--line-height-base);
|
|
103
|
-
|
|
104
|
-
--catalog-page-badge-dot-size: 6px;
|
|
105
|
-
--catalog-page-badge-dot-border-color: #ffffff;
|
|
106
|
-
|
|
107
|
-
// @tokens End
|
|
108
|
-
`;
|
|
109
|
-
//# sourceMappingURL=variables.js.map
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { css } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const catalog = css`
|
|
4
|
-
/* === Catalog === */
|
|
5
|
-
/**
|
|
6
|
-
* @tokens Catalog page
|
|
7
|
-
*/
|
|
8
|
-
--catalog-page-padding-vertical: var(--spacing-lg);
|
|
9
|
-
--catalog-page-padding-horizontal: var(--spacing-xl);
|
|
10
|
-
--catalog-page-padding: var(--catalog-page-padding-vertical) var(--catalog-page-padding-horizontal);
|
|
11
|
-
|
|
12
|
-
--catalog-filter-padding-vertical-mobile: 0;
|
|
13
|
-
--catalog-filter-padding-horizontal-mobile: var(--spacing-base);
|
|
14
|
-
|
|
15
|
-
--catalog-heading-margin: 0 0 var(--spacing-xl) 0;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @tokens Catalog page title
|
|
19
|
-
*/
|
|
20
|
-
--catalog-title-text-color: var(--text-color-primary);
|
|
21
|
-
--catalog-title-font-weight: var(--font-weight-bold);
|
|
22
|
-
--catalog-title-font-size: var(--font-size-heading-3);
|
|
23
|
-
--catalog-title-margin: 0 0 var(--spacing-sm) 0;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @tokens Catalog page description
|
|
27
|
-
*/
|
|
28
|
-
--catalog-description-text-color: var(--text-color-secondary);
|
|
29
|
-
--catalog-description-font-weight: var(--font-weight-regular);
|
|
30
|
-
--catalog-description-font-size: var(--font-size-base);
|
|
31
|
-
--catalog-description-margin: 0 0 var(--spacing-sm) 0;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @tokens Catalog page separator
|
|
35
|
-
*/
|
|
36
|
-
--catalog-separator-color: var(--text-color-secondary);
|
|
37
|
-
--catalog-separator-font-size: var(--font-size-base);
|
|
38
|
-
--catalog-separator-font-weight: var(--font-weight-regular);
|
|
39
|
-
--catalog-separator-border-color: var(--border-color-secondary);
|
|
40
|
-
--catalog-separator-margin: 0 0 var(--spacing-base) 0;
|
|
41
|
-
--catalog-separator-padding: var(--spacing-xxs) 0 0 0;
|
|
42
|
-
--catalog-separator-label-margin: 0 var(--spacing-xs);
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @tokens Catalog card
|
|
46
|
-
*/
|
|
47
|
-
--catalog-card-min-height: 194px;
|
|
48
|
-
--catalog-card-min-width: 260px;
|
|
49
|
-
--catalog-card-padding-vertical: var(--spacing-base);
|
|
50
|
-
--catalog-card-padding-horizontal: var(--spacing-md);
|
|
51
|
-
--catalog-card-gap: var(--spacing-sm);
|
|
52
|
-
--catalog-card-text-color: var(--text-color-secondary);
|
|
53
|
-
--catalog-card-font-size: var(--font-size-base);
|
|
54
|
-
--catalog-card-font-weight: var(--font-weight-regular);
|
|
55
|
-
--catalog-card-bg-color: var(--layer-color);
|
|
56
|
-
--catalog-card-border-color: var(--border-color-secondary);
|
|
57
|
-
--catalog-card-border-width: var(--border-width);
|
|
58
|
-
--catalog-card-border-style: var(--border-style);
|
|
59
|
-
--catalog-card-border-color-hover: var(--border-color-primary);
|
|
60
|
-
--catalog-card-border-radius: var(--border-radius-xxl);
|
|
61
|
-
--catalog-cards-group-margin: 0 0 var(--spacing-base) 0;
|
|
62
|
-
--catalog-cards-group-gap: var(--spacing-xl);
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @tokens Catalog card title
|
|
66
|
-
*/
|
|
67
|
-
--catalog-card-title-color: var(--text-color-primary);
|
|
68
|
-
--catalog-card-title-min-height: var(--spacing-xxl);
|
|
69
|
-
--catalog-card-title-font-size: var(--font-size-lg);
|
|
70
|
-
--catalog-card-title-font-weight: var(--font-weight-bold);
|
|
71
|
-
--catalog-card-title-line-height: var(--line-height-lg);
|
|
72
|
-
--catalog-card-title-line-clamp: 2;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @tokens Catalog card description
|
|
76
|
-
*/
|
|
77
|
-
--catalog-card-description-line-clamp: 3;
|
|
78
|
-
--catalog-card-description-color: var(--text-color-secondary);
|
|
79
|
-
--catalog-card-description-font-size: var(--font-size-base);
|
|
80
|
-
--catalog-card-description-line-height: var(--line-height-base);
|
|
81
|
-
--catalog-card-description-font-weight: var(--font-weight-regular);
|
|
82
|
-
--catalog-card-description-height: 62px;
|
|
83
|
-
|
|
84
|
-
--catalog-card-content-gap: var(--spacing-xxs);
|
|
85
|
-
|
|
86
|
-
--catalog-card-tag-bg: transparent;
|
|
87
|
-
|
|
88
|
-
--catalog-highlight-bg-color: none;
|
|
89
|
-
--catalog-highlight-text-color: var(--color-info-base);
|
|
90
|
-
|
|
91
|
-
--catalog-actions-gap: var(--spacing-xs);
|
|
92
|
-
--catalog-actions-padding-vertical: var(--spacing-xs);
|
|
93
|
-
--catalog-actions-padding-horizontal: 5%;
|
|
94
|
-
--catalog-actions-min-height: 40px;
|
|
95
|
-
--catalog-actions-bg-color: var(--bg-color-tonal);
|
|
96
|
-
|
|
97
|
-
--catalog-page-badge-border-radius: var(--border-radius);
|
|
98
|
-
--catalog-page-badge-padding: 0 var(--spacing-xs);
|
|
99
|
-
--catalog-page-badge-font-size: var(--font-size-base);
|
|
100
|
-
--catalog-page-badge-line-height: var(--line-height-base);
|
|
101
|
-
|
|
102
|
-
--catalog-page-badge-dot-size: 6px;
|
|
103
|
-
--catalog-page-badge-dot-border-color: #ffffff;
|
|
104
|
-
|
|
105
|
-
// @tokens End
|
|
106
|
-
`;
|
|
File without changes
|