@redocly/theme 0.18.3-patch.0 → 0.18.3-patch.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -0
- package/lib/components/Breadcrumbs/Breadcrumb.js +2 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.js +8 -1
- package/lib/components/Button/Button.js +6 -4
- package/lib/components/Button/styledVariables.js +25 -12
- package/lib/components/Catalog/Catalog.js +3 -3
- package/lib/components/Catalog/CatalogCard.js +15 -5
- package/lib/components/Catalog/styledVariables.js +5 -3
- package/lib/components/Catalog/useCatalog.js +12 -1
- package/lib/components/CodeBlock/CodeBlockContainer.js +3 -2
- package/lib/components/CodeBlock/CodeBlockControls.js +6 -2
- package/lib/components/CodeBlock/styledVariables.js +6 -4
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +2 -0
- package/lib/components/Dropdown/Dropdown.d.ts +3 -2
- package/lib/components/Dropdown/Dropdown.js +2 -1
- package/lib/components/EditPageButton/EditPageButton.js +7 -2
- package/lib/components/Feedback/Comment.js +5 -0
- package/lib/components/Feedback/Feedback.js +13 -3
- package/lib/components/Feedback/Rating.js +5 -1
- package/lib/components/Feedback/Reasons.js +5 -0
- package/lib/components/Feedback/Sentiment.js +11 -2
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.js +4 -1
- package/lib/components/Filter/FilterContent.js +10 -1
- package/lib/components/Filter/FilterPopover.d.ts +4 -4
- package/lib/components/Filter/FilterPopover.js +14 -4
- package/lib/components/Filter/FilterTag.js +1 -1
- package/lib/components/Footer/FooterColumn.js +2 -1
- package/lib/components/LastUpdated/index.d.ts +1 -0
- package/lib/components/LastUpdated/index.js +18 -0
- package/lib/components/LastUpdated/styledVariables.d.ts +1 -0
- package/lib/components/LastUpdated/styledVariables.js +11 -0
- package/lib/components/Menu/MenuItemLabel.js +2 -0
- package/lib/components/Menu/MenuLinkItem.js +2 -1
- package/lib/components/Menu/MobileMenu.js +5 -5
- package/lib/components/Menu/styledVariables.js +18 -7
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +9 -3
- package/lib/components/Navbar/styledVariables.js +5 -2
- package/lib/components/NavbarLogo/NavbarLogo.js +2 -1
- package/lib/components/NavbarLogo/index.d.ts +1 -0
- package/lib/components/NavbarLogo/index.js +1 -0
- package/lib/components/NavbarLogo/styledVariables.d.ts +1 -0
- package/lib/components/NavbarLogo/styledVariables.js +18 -0
- package/lib/components/Panel/styledVariables.js +3 -11
- package/lib/components/Profile/LoginLink.js +4 -1
- package/lib/components/Profile/MobileUserProfile.js +16 -5
- package/lib/components/Profile/UserProfile.js +5 -1
- package/lib/components/Search/ProductTag.js +1 -1
- package/lib/components/Separator/Separator.js +11 -3
- package/lib/components/Separator/SeparatorItem.js +1 -7
- package/lib/components/Separator/SeparatorLine.js +7 -3
- package/lib/components/Sidebar/ApiCallItem.js +5 -3
- package/lib/components/Sidebar/SidebarLayout.js +2 -1
- package/lib/components/Sidebar/styledVariables.js +12 -7
- package/lib/components/Sidebar/types.d.ts +1 -0
- package/lib/components/SidebarActions/CollapseSidebarButton.js +4 -0
- package/lib/components/SidebarActions/SidebarActions.js +15 -3
- package/lib/components/SidebarActions/styled.js +14 -8
- package/lib/components/TableOfContent/TableOfContent.js +2 -1
- package/lib/components/Tag/Tag.d.ts +2 -1
- package/lib/components/Tag/Tag.js +3 -3
- package/lib/components/Tag/styledVariables.js +30 -30
- package/lib/components/Tiles/ThinTile.js +7 -5
- package/lib/components/Tiles/WideTile.js +10 -8
- package/lib/components/Typography/SectionHeader.js +2 -2
- package/lib/config.d.ts +76 -0
- package/lib/config.js +14 -1
- package/lib/globalStyle.js +43 -56
- package/lib/icons/PlusIcon/PlusIcon.js +1 -1
- package/lib/ui/ArrowBack.js +0 -1
- package/lib/ui/darkColors.js +5 -4
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/tags-parser.d.ts +1 -0
- package/lib/utils/tags-parser.js +10 -0
- package/package.json +2 -2
- package/src/components/Breadcrumbs/Breadcrumb.tsx +8 -2
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +13 -1
- package/src/components/Button/Button.tsx +6 -4
- package/src/components/Button/styledVariables.ts +25 -12
- package/src/components/Catalog/Catalog.tsx +3 -8
- package/src/components/Catalog/CatalogCard.tsx +17 -6
- package/src/components/Catalog/styledVariables.ts +5 -3
- package/src/components/Catalog/useCatalog.ts +13 -1
- package/src/components/CodeBlock/CodeBlockContainer.tsx +3 -2
- package/src/components/CodeBlock/CodeBlockControls.tsx +6 -1
- package/src/components/CodeBlock/styledVariables.ts +6 -4
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +3 -0
- package/src/components/Dropdown/Dropdown.tsx +4 -1
- package/src/components/EditPageButton/EditPageButton.tsx +7 -2
- package/src/components/Feedback/Comment.tsx +5 -0
- package/src/components/Feedback/Feedback.tsx +13 -3
- package/src/components/Feedback/Rating.tsx +5 -1
- package/src/components/Feedback/Reasons.tsx +5 -0
- package/src/components/Feedback/Sentiment.tsx +15 -2
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +4 -1
- package/src/components/Filter/FilterContent.tsx +14 -3
- package/src/components/Filter/FilterPopover.tsx +19 -11
- package/src/components/Filter/FilterTag.tsx +1 -1
- package/src/components/Footer/FooterColumn.tsx +2 -0
- package/src/components/LastUpdated/index.ts +1 -0
- package/src/components/LastUpdated/styledVariables.ts +8 -0
- package/src/components/Menu/MenuItemLabel.tsx +2 -0
- package/src/components/Menu/MenuLinkItem.tsx +6 -1
- package/src/components/Menu/MobileMenu.tsx +5 -5
- package/src/components/Menu/styledVariables.ts +18 -7
- package/src/components/Navbar/NavbarItem.tsx +10 -1
- package/src/components/Navbar/styledVariables.ts +5 -2
- package/src/components/NavbarLogo/NavbarLogo.tsx +12 -1
- package/src/components/NavbarLogo/index.ts +1 -0
- package/src/components/NavbarLogo/styledVariables.ts +15 -0
- package/src/components/Panel/styledVariables.ts +3 -11
- package/src/components/Profile/LoginLink.tsx +8 -1
- package/src/components/Profile/MobileUserProfile.tsx +22 -5
- package/src/components/Profile/UserProfile.tsx +5 -1
- package/src/components/Search/ProductTag.tsx +1 -1
- package/src/components/Separator/Separator.tsx +17 -3
- package/src/components/Separator/SeparatorItem.tsx +1 -7
- package/src/components/Separator/SeparatorLine.tsx +7 -3
- package/src/components/Sidebar/ApiCallItem.tsx +4 -2
- package/src/components/Sidebar/SidebarLayout.tsx +6 -1
- package/src/components/Sidebar/styledVariables.ts +12 -7
- package/src/components/Sidebar/types.ts +1 -0
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +4 -0
- package/src/components/SidebarActions/SidebarActions.tsx +18 -3
- package/src/components/SidebarActions/styled.tsx +14 -8
- package/src/components/TableOfContent/TableOfContent.tsx +2 -0
- package/src/components/Tag/Tag.tsx +4 -3
- package/src/components/Tag/styledVariables.ts +30 -30
- package/src/components/Tiles/ThinTile.tsx +7 -5
- package/src/components/Tiles/WideTile.tsx +10 -8
- package/src/components/Typography/SectionHeader.ts +2 -2
- package/src/config.ts +18 -1
- package/src/globalStyle.ts +41 -57
- package/src/icons/PlusIcon/PlusIcon.tsx +7 -1
- package/src/ui/ArrowBack.tsx +0 -1
- package/src/ui/darkColors.tsx +5 -4
- package/src/utils/index.ts +1 -0
- package/src/utils/tags-parser.ts +8 -0
|
@@ -43,7 +43,7 @@ export const tag = css`
|
|
|
43
43
|
.tag-schema,
|
|
44
44
|
.tag-default {
|
|
45
45
|
--tag-color: var(--text-primary); // @presenter Color
|
|
46
|
-
--tag-background-color: var(--bg-
|
|
46
|
+
--tag-background-color: var(--bg-overlay); // @presenter Color
|
|
47
47
|
--tag-border-color: var(--border-primary); // @presenter Color
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -51,76 +51,76 @@ export const tag = css`
|
|
|
51
51
|
.tag-success,
|
|
52
52
|
.tag-approved,
|
|
53
53
|
.tag-get {
|
|
54
|
-
--tag-color: var(--color-success-
|
|
55
|
-
--tag-background-color:
|
|
56
|
-
--tag-border-color: var(--color-success-
|
|
54
|
+
--tag-color: var(--color-success-active); // @presenter Color
|
|
55
|
+
--tag-background-color: none; // @presenter Color
|
|
56
|
+
--tag-border-color: var(--color-success-active); // @presenter Color
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.tag-red,
|
|
60
60
|
.tag-error,
|
|
61
61
|
.tag-declined,
|
|
62
62
|
.tag-delete {
|
|
63
|
-
--tag-color: var(--color-error-
|
|
63
|
+
--tag-color: var(--color-error-active); // @presenter Color
|
|
64
64
|
--tag-background-color: var(--color-error-bg); // @presenter Color
|
|
65
|
-
--tag-border-color: var(--color-error-
|
|
65
|
+
--tag-border-color: var(--color-error-active); // @presenter Color
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.tag-gold,
|
|
69
69
|
.tag-warning,
|
|
70
70
|
.tag-deprecated,
|
|
71
71
|
.tag-put {
|
|
72
|
-
--tag-color: var(--color-warning-
|
|
73
|
-
--tag-background-color:
|
|
74
|
-
--tag-border-color: var(--color-warning-
|
|
72
|
+
--tag-color: var(--color-warning-active); // @presenter Color
|
|
73
|
+
--tag-background-color: none; // @presenter Color
|
|
74
|
+
--tag-border-color: var(--color-warning-active); // @presenter Color
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.tag-blue,
|
|
78
78
|
.tag-processing,
|
|
79
79
|
.tag-post {
|
|
80
|
-
--tag-color: var(--color-info-
|
|
81
|
-
--tag-background-color:
|
|
82
|
-
--tag-border-color: var(--color-info-
|
|
80
|
+
--tag-color: var(--color-info-active); // @presenter Color
|
|
81
|
+
--tag-background-color: none; // @presenter Color
|
|
82
|
+
--tag-border-color: var(--color-info-active); // @presenter Color
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.tag-purple,
|
|
86
86
|
.tag-head {
|
|
87
|
-
--tag-color: var(--color-purple-
|
|
88
|
-
--tag-background-color:
|
|
89
|
-
--tag-border-color: var(--color-purple-
|
|
87
|
+
--tag-color: var(--color-purple-7); // @presenter Color
|
|
88
|
+
--tag-background-color: none; // @presenter Color
|
|
89
|
+
--tag-border-color: var(--color-purple-7); // @presenter Color
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.tag-cyan,
|
|
93
93
|
.tag-option {
|
|
94
|
-
--tag-color: var(--color-cyan-
|
|
95
|
-
--tag-background-color:
|
|
96
|
-
--tag-border-color: var(--color-cyan-
|
|
94
|
+
--tag-color: var(--color-cyan-7); // @presenter Color
|
|
95
|
+
--tag-background-color: none; // @presenter Color
|
|
96
|
+
--tag-border-color: var(--color-cyan-7); // @presenter Color
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.tag-yellow,
|
|
100
100
|
.tag-patch {
|
|
101
|
-
--tag-color: var(--color-yellow-
|
|
102
|
-
--tag-background-color:
|
|
103
|
-
--tag-border-color: var(--color-yellow-
|
|
101
|
+
--tag-color: var(--color-yellow-7); // @presenter Color
|
|
102
|
+
--tag-background-color: none; // @presenter Color
|
|
103
|
+
--tag-border-color: var(--color-yellow-7); // @presenter Color
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.tag-geekblue,
|
|
107
107
|
.tag-link {
|
|
108
|
-
--tag-color: var(--color-geekblue-
|
|
109
|
-
--tag-background-color:
|
|
110
|
-
--tag-border-color: var(--color-geekblue-
|
|
108
|
+
--tag-color: var(--color-geekblue-7); // @presenter Color
|
|
109
|
+
--tag-background-color: none; // @presenter Color
|
|
110
|
+
--tag-border-color: var(--color-geekblue-7); // @presenter Color
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.tag-magneta,
|
|
114
114
|
.tag-hook {
|
|
115
|
-
--tag-color: var(--color-magneta-
|
|
116
|
-
--tag-background-color:
|
|
117
|
-
--tag-border-color: var(--color-magneta-
|
|
115
|
+
--tag-color: var(--color-magneta-7); // @presenter Color
|
|
116
|
+
--tag-background-color: none; // @presenter Color
|
|
117
|
+
--tag-border-color: var(--color-magneta-7); // @presenter Color
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.tag-lime {
|
|
121
|
-
--tag-color: var(--color-lime-
|
|
122
|
-
--tag-background-color:
|
|
123
|
-
--tag-border-color: var(--color-lime-
|
|
121
|
+
--tag-color: var(--color-lime-7); // @presenter Color
|
|
122
|
+
--tag-background-color: none; // @presenter Color
|
|
123
|
+
--tag-border-color: var(--color-lime-7); // @presenter Color
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
// @tokens End
|
|
@@ -10,20 +10,20 @@ import type { TextAlign, TileProps } from '@theme/components/Tiles/types';
|
|
|
10
10
|
const ThinTileWrapper = styled(Link)<{ bgColor?: string; bgImage?: string }>`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
|
-
border-radius:
|
|
14
|
-
box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);
|
|
13
|
+
border-radius: var(--border-radius-lg);
|
|
15
14
|
box-sizing: border-box;
|
|
16
|
-
|
|
17
|
-
padding: 24px;
|
|
15
|
+
padding: var(--spacing-lg);
|
|
18
16
|
margin-bottom: 20px;
|
|
19
17
|
text-decoration: none;
|
|
20
18
|
width: 100%;
|
|
19
|
+
color: var(--text-primary);
|
|
20
|
+
border: 1px solid var(--border-secondary);
|
|
21
21
|
background-color: ${({ bgColor }) => bgColor || 'var(--thin-tile-background-color)'};
|
|
22
22
|
background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
|
|
23
23
|
background-repeat: no-repeat;
|
|
24
24
|
|
|
25
25
|
:hover {
|
|
26
|
-
|
|
26
|
+
border-color: var(--border-primary);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
${({ theme }) => theme.mediaQueries.small} {
|
|
@@ -57,10 +57,12 @@ const ThinTileIcon = styled.img`
|
|
|
57
57
|
|
|
58
58
|
const ThinTileHeader = styled(TileHeader)<{ align?: TextAlign }>`
|
|
59
59
|
font-size: 24px;
|
|
60
|
+
font-weight: var(--font-weight-bold);
|
|
60
61
|
text-align: ${({ align }) => align || 'center'};
|
|
61
62
|
`;
|
|
62
63
|
|
|
63
64
|
const ThinTileText = styled(TileText)<{ icon?: string; align?: TextAlign }>`
|
|
65
|
+
color: var(--text-secondary);
|
|
64
66
|
font-size: 18px;
|
|
65
67
|
line-height: 1.5;
|
|
66
68
|
flex-shrink: 0;
|
|
@@ -17,21 +17,21 @@ const WideTileWrapper = styled(Link)<{
|
|
|
17
17
|
}>`
|
|
18
18
|
display: inline-flex;
|
|
19
19
|
flex-direction: ${({ withIcon }) => (withIcon ? 'column' : 'row')};
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
color: var(--text-primary);
|
|
21
|
+
border: 1px solid var(--border-secondary);
|
|
22
|
+
border-radius: var(--border-radius-lg);
|
|
22
23
|
background-color: ${({ bgColor }) => bgColor || 'var(--wide-tile-background-color)'};
|
|
23
24
|
background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
|
|
24
25
|
background-repeat: no-repeat;
|
|
25
|
-
padding:
|
|
26
|
+
padding: var(--spacing-lg);
|
|
26
27
|
padding-right: ${({ disableArrow }) => (disableArrow ? '24px' : '56px')};
|
|
27
|
-
margin-bottom:
|
|
28
|
+
margin-bottom: var(--spacing-xl);
|
|
28
29
|
box-sizing: border-box;
|
|
29
30
|
position: relative;
|
|
30
31
|
text-decoration: none;
|
|
31
32
|
width: 100%;
|
|
32
|
-
transition: box-shadow 0.25s ease;
|
|
33
33
|
:hover {
|
|
34
|
-
|
|
34
|
+
border-color: var(--border-primary);
|
|
35
35
|
}
|
|
36
36
|
:before {
|
|
37
37
|
content: ${({ disableArrow }) => (disableArrow ? 'none' : '""')};
|
|
@@ -51,8 +51,8 @@ const WideTileWrapper = styled(Link)<{
|
|
|
51
51
|
|
|
52
52
|
${({ theme }) => theme.mediaQueries.medium} {
|
|
53
53
|
width: calc(50% - 2em);
|
|
54
|
-
padding:
|
|
55
|
-
padding-right: ${({ disableArrow }) => (disableArrow ? '
|
|
54
|
+
padding: var(--spacing-xl);
|
|
55
|
+
padding-right: ${({ disableArrow }) => (disableArrow ? 'var(--spacing-xl)' : '64px')};
|
|
56
56
|
flex-direction: row;
|
|
57
57
|
max-width: ${({ maxWidth }) => maxWidth};
|
|
58
58
|
}
|
|
@@ -60,9 +60,11 @@ const WideTileWrapper = styled(Link)<{
|
|
|
60
60
|
|
|
61
61
|
const WideTileHeader = styled(TileHeader)<{ align?: string }>`
|
|
62
62
|
font-size: 24px;
|
|
63
|
+
font-weight: var(--font-weight-bold);
|
|
63
64
|
text-align: ${({ align }) => align || 'left'};
|
|
64
65
|
`;
|
|
65
66
|
const WideTileText = styled(TileText)<{ align?: string }>`
|
|
67
|
+
color: var(--text-secondary);
|
|
66
68
|
font-size: 18px;
|
|
67
69
|
text-align: ${({ align }) => align || 'left'};
|
|
68
70
|
`;
|
|
@@ -4,9 +4,9 @@ export const SectionHeader = styled.h2.attrs<{ className?: string }>(({ classNam
|
|
|
4
4
|
'data-component-name': 'Typography/SectionHeader',
|
|
5
5
|
className,
|
|
6
6
|
}))`
|
|
7
|
-
color: var(--h2-color);
|
|
7
|
+
color: var(--h2-text-color);
|
|
8
8
|
font-size: var(--h2-font-size);
|
|
9
|
-
font-weight: var(--
|
|
9
|
+
font-weight: var(--font-weight-regular);
|
|
10
10
|
text-align: center;
|
|
11
11
|
margin: 2.65em 0;
|
|
12
12
|
padding: 0 20px;
|
package/src/config.ts
CHANGED
|
@@ -254,6 +254,11 @@ const navItemSchema = {
|
|
|
254
254
|
label: { type: 'string' },
|
|
255
255
|
separator: { type: 'string' },
|
|
256
256
|
separatorLine: { type: 'boolean' },
|
|
257
|
+
linePosition: {
|
|
258
|
+
type: 'string',
|
|
259
|
+
enum: ['top', 'bottom'],
|
|
260
|
+
default: 'top',
|
|
261
|
+
},
|
|
257
262
|
version: { type: 'string' },
|
|
258
263
|
menuStyle: { type: 'string', enum: ['drilldown' as MenuStyle] },
|
|
259
264
|
expanded: { type: 'string', const: 'always' },
|
|
@@ -415,7 +420,19 @@ export const themeConfigSchema = {
|
|
|
415
420
|
},
|
|
416
421
|
additionalProperties: false,
|
|
417
422
|
},
|
|
418
|
-
sidebar:
|
|
423
|
+
sidebar: {
|
|
424
|
+
type: 'object',
|
|
425
|
+
properties: {
|
|
426
|
+
separatorLine: { type: 'boolean' },
|
|
427
|
+
linePosition: {
|
|
428
|
+
type: 'string',
|
|
429
|
+
enum: ['top', 'bottom'],
|
|
430
|
+
default: 'bottom',
|
|
431
|
+
},
|
|
432
|
+
...hideConfigSchema.properties,
|
|
433
|
+
},
|
|
434
|
+
additionalProperties: false,
|
|
435
|
+
},
|
|
419
436
|
scripts: {
|
|
420
437
|
type: 'object',
|
|
421
438
|
properties: {
|
package/src/globalStyle.ts
CHANGED
|
@@ -22,6 +22,8 @@ import { userProfile, userProfileDropdown } from '@theme/components/Profile';
|
|
|
22
22
|
import { dropdown } from '@theme/components/Dropdown';
|
|
23
23
|
import { admonition, markdown } from '@theme/components/Markdown';
|
|
24
24
|
import { tooltip } from '@theme/components/Tooltip';
|
|
25
|
+
import { lastUpdated } from '@theme/components/LastUpdated';
|
|
26
|
+
import { logo } from '@theme/components/NavbarLogo';
|
|
25
27
|
|
|
26
28
|
const themeColors = css`
|
|
27
29
|
/* === Palette === */
|
|
@@ -205,16 +207,17 @@ const themeColors = css`
|
|
|
205
207
|
--color-warning: var(--color-warning-base);
|
|
206
208
|
--color-success: var(--color-success-base);
|
|
207
209
|
--color-info: var(--color-info-base);
|
|
208
|
-
|
|
210
|
+
|
|
209
211
|
/**
|
|
210
212
|
* @tokens Elevation Colors
|
|
211
213
|
* @presenter Color
|
|
212
214
|
*/
|
|
213
215
|
|
|
214
|
-
--bg-sunken: #F1F1F1; // Sunken is the lowest elevation available.
|
|
215
216
|
--bg-base: #ffffff; // The default elevation is the baseline with respect to all other layers.
|
|
217
|
+
--bg-sunken: #f1f1f1; // Sunken is the lowest elevation available.
|
|
216
218
|
--bg-raised: #fafafa; // Cards, elements, inputs
|
|
217
219
|
--bg-overlay: #f2f2f2; // Overlay is the highest elevation available. Use for hovers
|
|
220
|
+
--bg-modal-overlay: #f2f2f2c2; // Overlay is the highest elevation available. Use for hovers
|
|
218
221
|
|
|
219
222
|
--bg-base-shadow: 0px 3px 5px rgba(51, 51, 51, 0.2), 0px 0px 1px rgba(51, 51, 51, 0.31); // Elements
|
|
220
223
|
--bg-raised-shadow: 0px 8px 12px rgba(51, 51, 51, 0.15), 0px 0px 1px rgba(51, 51, 51, 0.31); // Hovers for base. Menu
|
|
@@ -248,7 +251,7 @@ const typography = css`
|
|
|
248
251
|
--text-description: #8d8d8d; // Caption, Description, Icon
|
|
249
252
|
--text-placeholder: #a8a8a8; // Placeholder text, Disabled text
|
|
250
253
|
--text-link: var(--color-blue-6);
|
|
251
|
-
|
|
254
|
+
|
|
252
255
|
/**
|
|
253
256
|
* @tokens Font Weights
|
|
254
257
|
* @presenter FontWeight
|
|
@@ -258,7 +261,7 @@ const typography = css`
|
|
|
258
261
|
--font-weight-bold: 600; // All strong weights in the entire system.
|
|
259
262
|
--font-weight-bolder: 700;
|
|
260
263
|
--font-weight-italic: 'Regular Italic'; // All italic weights in the entire system.
|
|
261
|
-
|
|
264
|
+
|
|
262
265
|
/**
|
|
263
266
|
* @tokens Line Heights
|
|
264
267
|
* @presenter LineHeight
|
|
@@ -277,15 +280,10 @@ const typography = css`
|
|
|
277
280
|
* @presenter FontSize
|
|
278
281
|
*/
|
|
279
282
|
|
|
280
|
-
--font-size-base:
|
|
281
|
-
--font-size-sm:
|
|
282
|
-
--font-size-lg:
|
|
283
|
-
--font-size-xl:
|
|
284
|
-
--font-size-heading-1: 38px;
|
|
285
|
-
--font-size-heading-2: 30px;
|
|
286
|
-
--font-size-heading-3: 24px;
|
|
287
|
-
--font-size-heading-4: 20px;
|
|
288
|
-
--font-size-heading-5: 16px;
|
|
283
|
+
--font-size-base: 16px; // Base font size of the entire system.
|
|
284
|
+
--font-size-sm: 14px;
|
|
285
|
+
--font-size-lg: 18px;
|
|
286
|
+
--font-size-xl: 22px;
|
|
289
287
|
|
|
290
288
|
/**
|
|
291
289
|
* @tokens Font Rendering
|
|
@@ -299,7 +297,7 @@ const typography = css`
|
|
|
299
297
|
|
|
300
298
|
const sizeAndSpace = css`
|
|
301
299
|
/* === Size & Space === */
|
|
302
|
-
|
|
300
|
+
|
|
303
301
|
/**
|
|
304
302
|
* @tokens Size
|
|
305
303
|
* @presenter Spacing
|
|
@@ -313,7 +311,7 @@ const sizeAndSpace = css`
|
|
|
313
311
|
*/
|
|
314
312
|
|
|
315
313
|
--spacing-unit: 4px;
|
|
316
|
-
|
|
314
|
+
|
|
317
315
|
--spacing-base: calc(var(--spacing-unit) * 4);
|
|
318
316
|
--spacing-xxs: var(--spacing-unit);
|
|
319
317
|
--spacing-xs: calc(var(--spacing-unit) * 2);
|
|
@@ -325,7 +323,7 @@ const sizeAndSpace = css`
|
|
|
325
323
|
|
|
326
324
|
--spacing-horizontal: var(--spacing-xl);
|
|
327
325
|
--spacing-vertical: var(--spacing-base);
|
|
328
|
-
|
|
326
|
+
|
|
329
327
|
/**
|
|
330
328
|
* @tokens Height
|
|
331
329
|
* @presenter Spacing
|
|
@@ -430,31 +428,41 @@ const headingsTypography = css`
|
|
|
430
428
|
* @tokens Heading level 4
|
|
431
429
|
*/
|
|
432
430
|
|
|
431
|
+
--h4-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
433
432
|
--h4-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
434
433
|
--h4-font-size: 16px; // @presenter FontSize
|
|
435
|
-
--h4-
|
|
434
|
+
--h4-line-height: 16px; // @presenter LineHeight
|
|
436
435
|
--h4-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
436
|
+
--h4-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
437
|
+
--h4-text-color: var(--heading-text-color); // @presenter Color
|
|
437
438
|
|
|
438
439
|
/**
|
|
439
440
|
* @tokens Heading level 5
|
|
440
441
|
*/
|
|
441
442
|
|
|
443
|
+
--h5-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
444
|
+
--h5-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
442
445
|
--h5-font-size: 14px; // @presenter FontSize
|
|
443
|
-
--h5-
|
|
446
|
+
--h5-line-height: 14px; // @presenter LineHeight
|
|
444
447
|
--h5-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
448
|
+
--h5-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
449
|
+
--h5-text-color: var(--heading-text-color); // @presenter Color
|
|
445
450
|
|
|
446
451
|
/**
|
|
447
452
|
* @tokens Heading level 6
|
|
448
453
|
*/
|
|
449
454
|
|
|
455
|
+
--h6-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
456
|
+
--h6-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
450
457
|
--h6-font-size: 12px; // @presenter FontSize
|
|
458
|
+
--h6-line-height: 12px; // @presenter LineHeight
|
|
451
459
|
--h6-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
452
460
|
--h6-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
461
|
+
--h6-text-color: var(--heading-text-color); // @presenter Color
|
|
453
462
|
|
|
454
463
|
// @tokens End
|
|
455
464
|
`;
|
|
456
465
|
|
|
457
|
-
|
|
458
466
|
const links = css`
|
|
459
467
|
/**
|
|
460
468
|
* @tokens Links
|
|
@@ -506,7 +514,7 @@ const apiReferenceDocs = css`
|
|
|
506
514
|
--schemas-mime-type-dropdown-padding: 0px 26px 0px 4px;
|
|
507
515
|
--schemas-mime-type-dropdown-border: var(--docs-dropdown-border); // @presenter Border
|
|
508
516
|
--schemas-mime-type-dropdown-font-size: var(--docs-dropdown-font-size); // @presenter FontSize
|
|
509
|
-
--schemas-mime-type-dropdown-text-color: var(--docs-dropdown-
|
|
517
|
+
--schemas-mime-type-dropdown-text-color: var(--docs-dropdown-text-color); // @presenter Color
|
|
510
518
|
|
|
511
519
|
/**
|
|
512
520
|
* @tokens API Reference Schemas Discriminator Dropdown
|
|
@@ -585,9 +593,9 @@ const apiReferenceDocs = css`
|
|
|
585
593
|
* @presenter Color
|
|
586
594
|
*/
|
|
587
595
|
|
|
588
|
-
--schema-recursive-text-color: var(--color-warning);
|
|
589
|
-
--schema-recursive-background-color: var(--
|
|
590
|
-
--schema-recursive-border-color: var(--
|
|
596
|
+
--schema-recursive-text-color: var(--color-warning); // @presenter Color
|
|
597
|
+
--schema-recursive-background-color: var(--color-warning-bg); // @presenter Color
|
|
598
|
+
--schema-recursive-border-color: var(--color-warning-border); // @presenter Color
|
|
591
599
|
|
|
592
600
|
/**
|
|
593
601
|
* @tokens GraphQL Docs Reference Schema Non null label
|
|
@@ -597,7 +605,7 @@ const apiReferenceDocs = css`
|
|
|
597
605
|
--schema-non-null-text-color: var(--schema-inline-code-text-color);
|
|
598
606
|
--schema-non-null-background-color: var(--schema-inline-background-color);
|
|
599
607
|
--schema-non-null-border-color: var(--schema-inline-border-color);
|
|
600
|
-
|
|
608
|
+
|
|
601
609
|
/**
|
|
602
610
|
* @tokens API Reference Schema Nested styles
|
|
603
611
|
*/
|
|
@@ -703,20 +711,6 @@ const badges = css`
|
|
|
703
711
|
// @tokens End
|
|
704
712
|
`;
|
|
705
713
|
|
|
706
|
-
const logo = css`
|
|
707
|
-
/**
|
|
708
|
-
* @tokens Logo
|
|
709
|
-
*/
|
|
710
|
-
|
|
711
|
-
--navbar-logo-height: 2rem; // @presenter Spacing
|
|
712
|
-
--navbar-logo-width: auto;
|
|
713
|
-
--navbar-logo-margin: 16px; // @presenter Spacing
|
|
714
|
-
--navbar-logo-max-width: 285px; // @presenter Spacing
|
|
715
|
-
--navbar-logo-max-height: 285px; // @presenter Spacing
|
|
716
|
-
|
|
717
|
-
// @tokens End
|
|
718
|
-
`;
|
|
719
|
-
|
|
720
714
|
const loadProgressBar = css`
|
|
721
715
|
/**
|
|
722
716
|
* @tokens Load progress bar
|
|
@@ -799,20 +793,13 @@ const docsDropdown = css`
|
|
|
799
793
|
--docs-dropdown-font-size: var(--font-size-base);
|
|
800
794
|
--docs-dropdown-text-color: var(--text-secondary);
|
|
801
795
|
|
|
802
|
-
--docs-dropdown-padding-vertical:
|
|
796
|
+
--docs-dropdown-padding-vertical: 6px;
|
|
803
797
|
--docs-dropdown-padding-left: 10px;
|
|
804
798
|
--docs-dropdown-padding-right: 26px;
|
|
805
799
|
--docs-dropdown-padding: var(--docs-dropdown-padding-vertical) var(--docs-dropdown-padding-right) var(--docs-dropdown-padding-vertical) var(--docs-dropdown-padding-left);
|
|
806
800
|
--docs-dropdown-border: 1px solid var(--border-primary);
|
|
807
801
|
`;
|
|
808
802
|
|
|
809
|
-
const lastUpdated = css`
|
|
810
|
-
--last-updated-text-color: var(--text-secondary);
|
|
811
|
-
--last-updated-font-size: var(--font-size-sm);
|
|
812
|
-
--last-updated-font-family: var(--font-family-base);
|
|
813
|
-
--last-updated-line-height: var(--line-height-base);
|
|
814
|
-
`;
|
|
815
|
-
|
|
816
803
|
const tile = css`
|
|
817
804
|
--wide-tile-background-color: var(--bg-raised);
|
|
818
805
|
--thin-tile-background-color: var(--bg-raised);
|
|
@@ -876,18 +863,18 @@ const error = css`
|
|
|
876
863
|
--error-bubble-gap: var(--spacing-base);
|
|
877
864
|
--error-bubble-font-family: var(--font-family-base);
|
|
878
865
|
--error-bubble-z-index: var(--z-index-popover);
|
|
879
|
-
|
|
866
|
+
|
|
880
867
|
--error-card-border-radius: calc(var(--spacing-xxs) * 1.5);
|
|
881
868
|
--error-card-background: var(--bg-raised);
|
|
882
869
|
--error-card-padding: var(--spacing-xs) var(--spacing-base);
|
|
883
870
|
--error-card-text-color: var(--text-primary);
|
|
884
871
|
--error-card-font-size: var(--font-size-base);
|
|
885
872
|
--error-card-font-style: normal;
|
|
886
|
-
--error-card-font-weight: var(--font-weight-
|
|
873
|
+
--error-card-font-weight: var(--font-weight-regular);
|
|
887
874
|
--error-card-line-height: var(--line-height-base);
|
|
888
875
|
--error-card-box-shadow: var(--bg-raised-shadow);
|
|
889
876
|
--error-card-icon-margin: 0 var(--spacing-xs) 0 0;
|
|
890
|
-
|
|
877
|
+
|
|
891
878
|
--detailed-error-overlay-background: #4f4f4f;
|
|
892
879
|
--detailed-error-overlay-opacity: 0.9;
|
|
893
880
|
--detailed-error-overlay-z-index: var(--z-index-raised);
|
|
@@ -904,13 +891,13 @@ const error = css`
|
|
|
904
891
|
--detailed-error-modal-font-family: var(--font-family-base);
|
|
905
892
|
--detailed-error-modal-padding: var(--spacing-md);
|
|
906
893
|
--detailed-error-modal-wapper-text-align: right;
|
|
907
|
-
|
|
894
|
+
|
|
908
895
|
--detailed-error-content-margin-top: var(--spacing-md);
|
|
909
896
|
--detailed-error-content-height: 100%;
|
|
910
|
-
|
|
897
|
+
|
|
911
898
|
--detailed-error-close-button-color: var(--text-description);
|
|
912
899
|
--detailed-error-close-button-text-transform: uppercase;
|
|
913
|
-
|
|
900
|
+
|
|
914
901
|
--detailed-error-message-margin: var(--spacing-base) auto var(--spacing-lg);
|
|
915
902
|
--detailed-error-message-padding: var(--spacing-base);
|
|
916
903
|
--detailed-error-message-border-radius: var(--border-radius);
|
|
@@ -926,8 +913,8 @@ const modal = css`
|
|
|
926
913
|
overflow: hidden;
|
|
927
914
|
}
|
|
928
915
|
|
|
929
|
-
--modal-box-shadow:
|
|
930
|
-
--modal-overlay-background-color:
|
|
916
|
+
--modal-box-shadow: var(--bg-overlay-shadow);
|
|
917
|
+
--modal-overlay-background-color: var(--bg-modal-overlay);
|
|
931
918
|
--modal-background-color: var(--bg-base);
|
|
932
919
|
`;
|
|
933
920
|
|
|
@@ -985,7 +972,6 @@ export const styles = css`
|
|
|
985
972
|
${versionPicker}
|
|
986
973
|
${zIndexDepth}
|
|
987
974
|
|
|
988
|
-
--api-onboarding-table-text-color: #4e5356;
|
|
989
975
|
--api-catalog-card-min-width: 250px;
|
|
990
976
|
|
|
991
977
|
background-color: var(--bg-base);
|
|
@@ -995,8 +981,6 @@ export const styles = css`
|
|
|
995
981
|
|
|
996
982
|
:root.dark {
|
|
997
983
|
${darkMode};
|
|
998
|
-
|
|
999
|
-
--api-onboarding-table-text-color: #ffffff;
|
|
1000
984
|
}
|
|
1001
985
|
|
|
1002
986
|
:root.notransition * {
|
|
@@ -2,7 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
4
|
export const Icon = () => (
|
|
5
|
-
<svg
|
|
5
|
+
<svg
|
|
6
|
+
width="16"
|
|
7
|
+
height="16"
|
|
8
|
+
viewBox="0 0 16 16"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
>
|
|
6
12
|
<path
|
|
7
13
|
d="M7.53125 2.375H8.46875C8.55208 2.375 8.59375 2.41667 8.59375 2.5V13.5C8.59375 13.5833 8.55208 13.625 8.46875 13.625H7.53125C7.44792 13.625 7.40625 13.5833 7.40625 13.5V2.5C7.40625 2.41667 7.44792 2.375 7.53125 2.375Z"
|
|
8
14
|
fill="inherit"
|
package/src/ui/ArrowBack.tsx
CHANGED
package/src/ui/darkColors.tsx
CHANGED
|
@@ -190,10 +190,10 @@ export const darkMode = css`
|
|
|
190
190
|
*/
|
|
191
191
|
--text-base: #ffffff; // The base color of the typography color tokens.
|
|
192
192
|
--text-light-solid: #ffffff; // The color of the objects that need to be white no matter what theme is enabled.
|
|
193
|
-
--text-primary: #
|
|
194
|
-
--text-secondary: #
|
|
195
|
-
--text-description: #
|
|
196
|
-
--text-placeholder: #
|
|
193
|
+
--text-primary: #ffffffde; // Headers, Icon hover
|
|
194
|
+
--text-secondary: #ffffff99; // Body text
|
|
195
|
+
--text-description: #ffffff61; // Caption, Description, Icon
|
|
196
|
+
--text-placeholder: #ffffff61; // Placeholder text, Disabled text
|
|
197
197
|
--text-link: var(--color-blue-6);
|
|
198
198
|
|
|
199
199
|
/**
|
|
@@ -205,6 +205,7 @@ export const darkMode = css`
|
|
|
205
205
|
--bg-base: #141414; // The default elevation is the baseline with respect to all other layers.
|
|
206
206
|
--bg-raised: #1f1f1f; // Cards, elements, inputs
|
|
207
207
|
--bg-overlay: #282828; // Overlay is the highest elevation available. Use for hovers
|
|
208
|
+
--bg-modal-overlay: #282828c2;
|
|
208
209
|
|
|
209
210
|
--bg-base-shadow: 0px 3px 5px rgba(0, 0, 0, 0.4), 0px 1px 4px rgba(0, 0, 0, 0.5); // Elements
|
|
210
211
|
--bg-raised-shadow: 0px 8px 12px rgba(0, 0, 0, 0.4), 0px 1px 4px rgba(0, 0, 0, 0.5); // Hovers for base. Menu
|
package/src/utils/index.ts
CHANGED