@redocly/theme 0.9.13 → 0.9.15
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/Markdown/MarkdownWrapper.js +7 -7
- package/lib/Sidebar/SeparatorItem.js +4 -0
- package/lib/Sidebar/SeparatorLine.js +1 -1
- package/lib/config.d.ts +778 -1814
- package/lib/config.js +275 -213
- package/lib/globalStyle.js +7 -6
- package/lib/ui/Dropdown.js +4 -5
- package/package.json +6 -7
- package/src/Markdown/MarkdownWrapper.tsx +1 -1
- package/src/Sidebar/SeparatorItem.tsx +4 -0
- package/src/Sidebar/SeparatorLine.tsx +1 -1
- package/src/config.ts +338 -222
- package/src/globalStyle.ts +7 -6
- package/src/ui/Dropdown.tsx +4 -5
package/lib/config.js
CHANGED
|
@@ -1,216 +1,278 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
3
|
+
exports.themeConfigSchema = void 0;
|
|
4
|
+
const logoConfigSchema = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
image: { type: 'string' },
|
|
8
|
+
altText: { type: 'string' },
|
|
9
|
+
link: { type: 'string' },
|
|
10
|
+
favicon: { type: 'string' },
|
|
11
|
+
},
|
|
12
|
+
additionalProperties: false,
|
|
13
|
+
};
|
|
14
|
+
const hideConfigSchema = {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
hide: { type: 'boolean' },
|
|
18
|
+
},
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
};
|
|
21
|
+
const scriptConfigSchema = {
|
|
22
|
+
type: 'object',
|
|
23
|
+
properties: {
|
|
24
|
+
src: { type: 'string' },
|
|
25
|
+
async: { type: 'boolean' },
|
|
26
|
+
crossorigin: { type: 'string' },
|
|
27
|
+
defer: { type: 'boolean' },
|
|
28
|
+
fetchpriority: { type: 'string' },
|
|
29
|
+
integrity: { type: 'string' },
|
|
30
|
+
module: { type: 'boolean' },
|
|
31
|
+
nomodule: { type: 'boolean' },
|
|
32
|
+
nonce: { type: 'string' },
|
|
33
|
+
referrerpolicy: { type: 'string' },
|
|
34
|
+
type: { type: 'string' },
|
|
35
|
+
},
|
|
36
|
+
required: ['src'],
|
|
37
|
+
additionalProperties: true,
|
|
38
|
+
};
|
|
39
|
+
const linksConfigSchema = {
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
href: { type: 'string' },
|
|
43
|
+
as: { type: 'string' },
|
|
44
|
+
crossorigin: { type: 'string' },
|
|
45
|
+
fetchpriority: { type: 'string' },
|
|
46
|
+
hreflang: { type: 'string' },
|
|
47
|
+
imagesizes: { type: 'string' },
|
|
48
|
+
imagesrcset: { type: 'string' },
|
|
49
|
+
integrity: { type: 'string' },
|
|
50
|
+
media: { type: 'string' },
|
|
51
|
+
prefetch: { type: 'string' },
|
|
52
|
+
referrerpolicy: { type: 'string' },
|
|
53
|
+
rel: { type: 'string' },
|
|
54
|
+
sizes: { type: 'string' },
|
|
55
|
+
title: { type: 'string' },
|
|
56
|
+
type: { type: 'string' },
|
|
57
|
+
},
|
|
58
|
+
required: ['href'],
|
|
59
|
+
additionalProperties: true,
|
|
60
|
+
};
|
|
61
|
+
const markdownConfigSchema = {
|
|
62
|
+
type: 'object',
|
|
63
|
+
properties: {
|
|
64
|
+
frontMatterKeysToResolve: {
|
|
65
|
+
type: 'array',
|
|
66
|
+
items: { type: 'string' },
|
|
67
|
+
default: ['image', 'links'],
|
|
68
|
+
},
|
|
69
|
+
lastUpdatedBlock: {
|
|
70
|
+
type: 'object',
|
|
71
|
+
properties: Object.assign({ format: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
enum: ['timeago', 'iso', 'long', 'short'],
|
|
74
|
+
default: 'timeago',
|
|
75
|
+
}, locale: { type: 'string', default: 'en-US' } }, hideConfigSchema.properties),
|
|
76
|
+
additionalProperties: false,
|
|
77
|
+
default: {},
|
|
78
|
+
},
|
|
79
|
+
toc: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: Object.assign({ header: { type: 'string', default: 'On this page' }, depth: { type: 'number', default: 3 } }, hideConfigSchema.properties),
|
|
82
|
+
additionalProperties: false,
|
|
83
|
+
default: {},
|
|
84
|
+
},
|
|
85
|
+
editPage: {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: Object.assign({ baseUrl: { type: 'string' }, icon: { type: 'string' }, text: { type: 'string', default: 'Edit this page' } }, hideConfigSchema.properties),
|
|
88
|
+
additionalProperties: false,
|
|
89
|
+
default: {},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
additionalProperties: false,
|
|
93
|
+
default: {},
|
|
94
|
+
};
|
|
95
|
+
const navItemSchema = {
|
|
96
|
+
type: 'object',
|
|
97
|
+
properties: {
|
|
98
|
+
page: { type: 'string' },
|
|
99
|
+
directory: { type: 'string' },
|
|
100
|
+
group: { type: 'string' },
|
|
101
|
+
label: { type: 'string' },
|
|
102
|
+
separator: { type: 'string' },
|
|
103
|
+
separatorLine: { type: 'boolean' },
|
|
104
|
+
version: { type: 'string' },
|
|
105
|
+
menuStyle: { type: 'string', enum: ['drilldown'] },
|
|
106
|
+
expanded: { type: 'string', const: 'always' },
|
|
107
|
+
selectFirstItemOnExpand: { type: 'boolean' },
|
|
108
|
+
flatten: { type: 'boolean' },
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
const navItemsSchema = {
|
|
112
|
+
type: 'array',
|
|
113
|
+
items: Object.assign(Object.assign({}, navItemSchema), { properties: Object.assign(Object.assign({}, navItemSchema.properties), { items: { type: 'array', items: navItemSchema } }) }),
|
|
114
|
+
};
|
|
115
|
+
exports.themeConfigSchema = {
|
|
116
|
+
type: 'object',
|
|
117
|
+
properties: {
|
|
118
|
+
imports: {
|
|
119
|
+
type: 'array',
|
|
120
|
+
items: { type: 'string' },
|
|
121
|
+
default: [],
|
|
122
|
+
},
|
|
123
|
+
logo: logoConfigSchema,
|
|
124
|
+
navbar: {
|
|
125
|
+
type: 'object',
|
|
126
|
+
properties: Object.assign({ items: navItemsSchema }, hideConfigSchema.properties),
|
|
127
|
+
additionalProperties: false,
|
|
128
|
+
},
|
|
129
|
+
footer: {
|
|
130
|
+
type: 'object',
|
|
131
|
+
properties: Object.assign({ items: navItemsSchema, copyrightText: { type: 'string' } }, hideConfigSchema.properties),
|
|
132
|
+
additionalProperties: false,
|
|
133
|
+
},
|
|
134
|
+
sidebar: hideConfigSchema,
|
|
135
|
+
scripts: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
head: { type: 'array', items: scriptConfigSchema },
|
|
139
|
+
body: { type: 'array', items: scriptConfigSchema },
|
|
140
|
+
},
|
|
141
|
+
additionalProperties: false,
|
|
142
|
+
},
|
|
143
|
+
links: { type: 'array', items: linksConfigSchema },
|
|
144
|
+
feedback: {
|
|
145
|
+
type: 'object',
|
|
146
|
+
properties: {
|
|
147
|
+
hide: {
|
|
148
|
+
type: 'boolean',
|
|
149
|
+
default: false,
|
|
150
|
+
},
|
|
151
|
+
type: {
|
|
152
|
+
type: 'string',
|
|
153
|
+
enum: ['rating', 'sentiment', 'comment', 'reasons'],
|
|
154
|
+
default: 'sentiment',
|
|
155
|
+
},
|
|
156
|
+
settings: Object.assign({ type: 'object', properties: {
|
|
157
|
+
label: { type: 'string' },
|
|
158
|
+
submitText: { type: 'string' },
|
|
159
|
+
max: { type: 'number' },
|
|
160
|
+
buttonText: { type: 'string' },
|
|
161
|
+
multi: { type: 'boolean' },
|
|
162
|
+
items: { type: 'array', items: { type: 'string' }, minItems: 1 },
|
|
163
|
+
reasons: {
|
|
164
|
+
type: 'object',
|
|
165
|
+
properties: {
|
|
166
|
+
enable: { type: 'boolean', default: true },
|
|
167
|
+
multi: { type: 'boolean' },
|
|
168
|
+
label: { type: 'string' },
|
|
169
|
+
items: { type: 'array', items: { type: 'string' } },
|
|
170
|
+
},
|
|
171
|
+
additionalProperties: false,
|
|
172
|
+
},
|
|
173
|
+
comment: {
|
|
174
|
+
type: 'object',
|
|
175
|
+
properties: {
|
|
176
|
+
enable: { type: 'boolean', default: true },
|
|
177
|
+
label: { type: 'string' },
|
|
178
|
+
likeLabel: { type: 'string' },
|
|
179
|
+
dislikeLabel: { type: 'string' },
|
|
180
|
+
},
|
|
181
|
+
additionalProperties: false,
|
|
182
|
+
},
|
|
183
|
+
}, additionalProperties: false }, hideConfigSchema.properties),
|
|
184
|
+
},
|
|
185
|
+
additionalProperties: false,
|
|
186
|
+
default: {},
|
|
187
|
+
},
|
|
188
|
+
search: {
|
|
189
|
+
type: 'object',
|
|
190
|
+
properties: Object.assign({ placement: {
|
|
191
|
+
type: 'string',
|
|
192
|
+
default: 'navbar',
|
|
193
|
+
}, shortcuts: {
|
|
194
|
+
type: 'array',
|
|
195
|
+
items: { type: 'string' },
|
|
196
|
+
default: ['/'],
|
|
197
|
+
} }, hideConfigSchema.properties),
|
|
198
|
+
additionalProperties: false,
|
|
199
|
+
default: {},
|
|
200
|
+
},
|
|
201
|
+
colorMode: {
|
|
202
|
+
type: 'object',
|
|
203
|
+
properties: Object.assign({ ignoreDetection: { type: 'boolean' }, modes: {
|
|
204
|
+
type: 'array',
|
|
205
|
+
items: { type: 'string' },
|
|
206
|
+
default: ['light', 'dark'],
|
|
207
|
+
} }, hideConfigSchema.properties),
|
|
208
|
+
additionalProperties: false,
|
|
209
|
+
default: {},
|
|
210
|
+
},
|
|
211
|
+
navigation: {
|
|
212
|
+
type: 'object',
|
|
213
|
+
properties: {
|
|
214
|
+
nextButton: {
|
|
215
|
+
type: 'object',
|
|
216
|
+
properties: Object.assign({ text: { type: 'string', default: 'Next to {label}' } }, hideConfigSchema.properties),
|
|
217
|
+
additionalProperties: false,
|
|
218
|
+
default: {},
|
|
219
|
+
},
|
|
220
|
+
previousButton: {
|
|
221
|
+
type: 'object',
|
|
222
|
+
properties: Object.assign({ text: { type: 'string', default: 'Back to {label}' } }, hideConfigSchema.properties),
|
|
223
|
+
additionalProperties: false,
|
|
224
|
+
default: {},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
additionalProperties: false,
|
|
228
|
+
default: {},
|
|
229
|
+
},
|
|
230
|
+
codeSnippet: {
|
|
231
|
+
type: 'object',
|
|
232
|
+
properties: {
|
|
233
|
+
copy: {
|
|
234
|
+
type: 'object',
|
|
235
|
+
properties: Object.assign({ buttonText: { type: 'string', default: 'Copy' }, tooltipText: { type: 'string', default: 'Copy to clipboard' }, toasterText: { type: 'string', default: 'Copied!' }, toasterDuration: { type: 'number', default: 1500 } }, hideConfigSchema.properties),
|
|
236
|
+
additionalProperties: false,
|
|
237
|
+
default: {},
|
|
238
|
+
},
|
|
239
|
+
report: {
|
|
240
|
+
type: 'object',
|
|
241
|
+
properties: Object.assign({ tooltipText: { type: 'string', default: 'Report a problem' }, label: { type: 'string' } }, hideConfigSchema.properties),
|
|
242
|
+
additionalProperties: false,
|
|
243
|
+
default: { hide: true },
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
additionalProperties: false,
|
|
247
|
+
default: {},
|
|
248
|
+
},
|
|
249
|
+
markdown: markdownConfigSchema,
|
|
250
|
+
openapi: { type: 'object', additionalProperties: true },
|
|
251
|
+
graphql: { type: 'object', additionalProperties: true },
|
|
252
|
+
analytics: {
|
|
253
|
+
type: ['array', 'boolean', 'number', 'object', 'string'],
|
|
254
|
+
},
|
|
255
|
+
userProfile: {
|
|
256
|
+
type: 'object',
|
|
257
|
+
properties: Object.assign({ loginLabel: { type: 'string', default: 'Login' }, logoutLabel: { type: 'string', default: 'Logout' }, menu: {
|
|
258
|
+
type: 'array',
|
|
259
|
+
items: {
|
|
260
|
+
type: 'object',
|
|
261
|
+
properties: {
|
|
262
|
+
label: { type: 'string' },
|
|
263
|
+
external: { type: 'boolean' },
|
|
264
|
+
link: { type: 'string' },
|
|
265
|
+
separatorLine: { type: 'boolean' },
|
|
266
|
+
},
|
|
267
|
+
additionalProperties: true,
|
|
268
|
+
},
|
|
269
|
+
default: [],
|
|
270
|
+
} }, hideConfigSchema.properties),
|
|
271
|
+
additionalProperties: false,
|
|
272
|
+
default: {},
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
additionalProperties: true,
|
|
276
|
+
default: {},
|
|
277
|
+
};
|
|
216
278
|
//# sourceMappingURL=config.js.map
|
package/lib/globalStyle.js
CHANGED
|
@@ -505,6 +505,7 @@ const sidebar = (0, styled_components_1.css) `
|
|
|
505
505
|
--sidebar-item-separator-text-color: var(--sidebar-item-text-color);
|
|
506
506
|
--sidebar-item-separator-background-color: var(--sidebar-background-color);
|
|
507
507
|
--sidebar-item-separator-line-color: var(--border-color); // but has line color
|
|
508
|
+
--sidebar-item-separator-offset: calc(var(--sidebar-spacing-unit) * 2);
|
|
508
509
|
|
|
509
510
|
/**
|
|
510
511
|
* @tokens Sidebar back button
|
|
@@ -561,7 +562,7 @@ const admonition = (0, styled_components_1.css) `
|
|
|
561
562
|
* @tokens Admonition type info
|
|
562
563
|
*/
|
|
563
564
|
|
|
564
|
-
--admonition-info-background-color: var(--color-
|
|
565
|
+
--admonition-info-background-color: var(--color-secondary-200); // @presenter Color
|
|
565
566
|
--admonition-info-heading-text-color: var(--text-color); // @presenter Color
|
|
566
567
|
--admonition-info-text-color: var(--text-color); // @presenter Color
|
|
567
568
|
--admonition-info-icon-color: var(--color-accent-900); // @presenter Color
|
|
@@ -1941,7 +1942,7 @@ const pages = (0, styled_components_1.css) `
|
|
|
1941
1942
|
const userProfile = (0, styled_components_1.css) `
|
|
1942
1943
|
|
|
1943
1944
|
/**
|
|
1944
|
-
* @tokens User Profile
|
|
1945
|
+
* @tokens User Profile
|
|
1945
1946
|
*/
|
|
1946
1947
|
|
|
1947
1948
|
--profile-name-font-family: var(--navbar-item-font-family); // @presenter FontFamily
|
|
@@ -1949,12 +1950,12 @@ const userProfile = (0, styled_components_1.css) `
|
|
|
1949
1950
|
--profile-name-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1950
1951
|
--profile-name-line-height: var(--line-height-base); // @presenter LineHeight
|
|
1951
1952
|
--profile-name-text-color: var(--navbar-text-color); // @presenter Color
|
|
1952
|
-
|
|
1953
|
+
|
|
1953
1954
|
--profile-name-padding-horizontal: 0; // @presenter Spacing
|
|
1954
1955
|
--profile-name-padding-vertical: 0; // @presenter Spacing
|
|
1955
1956
|
--profile-name-margin-horizontal: 0; // @presenter Spacing
|
|
1956
1957
|
|
|
1957
|
-
--profile-avatar-width: 40px;
|
|
1958
|
+
--profile-avatar-width: 40px;
|
|
1958
1959
|
--profile-avatar-height: 40px;
|
|
1959
1960
|
--profile-avatar-border-radius: 50%; // @presenter BorderRadius
|
|
1960
1961
|
|
|
@@ -1982,7 +1983,7 @@ const userProfile = (0, styled_components_1.css) `
|
|
|
1982
1983
|
--profile-menu-item-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1983
1984
|
--profile-menu-item-line-height: var(--line-height-base); // @presenter LineHeight
|
|
1984
1985
|
--profile-menu-item-text-align: left;
|
|
1985
|
-
|
|
1986
|
+
|
|
1986
1987
|
--profile-menu-item-padding-horizontal: 15px; // @presenter Spacing
|
|
1987
1988
|
--profile-menu-item-padding-vertical: 20px; // @presenter Spacing
|
|
1988
1989
|
|
|
@@ -1996,7 +1997,7 @@ const userProfile = (0, styled_components_1.css) `
|
|
|
1996
1997
|
--profile-menu-item-separator-line-color: var(--border-color); // @presenter Color
|
|
1997
1998
|
|
|
1998
1999
|
// @tokens End
|
|
1999
|
-
|
|
2000
|
+
|
|
2000
2001
|
`;
|
|
2001
2002
|
const modal = (0, styled_components_1.css) `
|
|
2002
2003
|
body:has(.modal) {
|
package/lib/ui/Dropdown.js
CHANGED
|
@@ -40,10 +40,9 @@ const DropDownHeader = styled_components_1.default.div `
|
|
|
40
40
|
display: flex;
|
|
41
41
|
justify-content: space-between;
|
|
42
42
|
align-items: center;
|
|
43
|
-
background: #fff;
|
|
44
43
|
padding: 8px 10px;
|
|
45
44
|
border-radius: 4px;
|
|
46
|
-
border: 1px solid
|
|
45
|
+
border: 1px solid var(--border-color);
|
|
47
46
|
font-weight: 600;
|
|
48
47
|
color: var(--text-color);
|
|
49
48
|
background: var(--color-secondary-200);
|
|
@@ -68,16 +67,16 @@ const IconWrapper = styled_components_1.default.span `
|
|
|
68
67
|
}
|
|
69
68
|
`;
|
|
70
69
|
const ListItem = styled_components_1.default.div `
|
|
71
|
-
background-color:
|
|
70
|
+
background-color: var(--color-secondary-200);
|
|
72
71
|
padding: 0.4em 10px;
|
|
73
72
|
font-size: 1em;
|
|
74
73
|
color: var(--text-color);
|
|
75
74
|
cursor: pointer;
|
|
76
75
|
&:hover {
|
|
77
|
-
background-color:
|
|
76
|
+
background-color: var(--color-secondary-300);
|
|
78
77
|
}
|
|
79
78
|
&.active {
|
|
80
|
-
background-color:
|
|
79
|
+
background-color: var(--color-secondary-300);
|
|
81
80
|
}
|
|
82
81
|
`;
|
|
83
82
|
const DropDownLink = (0, styled_components_1.default)(Link_1.Link) `
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/theme",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.15",
|
|
4
4
|
"description": "Shared UI components lib",
|
|
5
|
+
"keywords": [],
|
|
5
6
|
"author": "team@redocly.com",
|
|
6
7
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
8
|
"main": "lib/index.js",
|
|
@@ -12,7 +13,6 @@
|
|
|
12
13
|
"./config": "./lib/config.js",
|
|
13
14
|
".": "./lib/index.js",
|
|
14
15
|
"./Sidebar/*": "./lib/Sidebar/*.js",
|
|
15
|
-
"./*": "./lib/index.js",
|
|
16
16
|
"./src/": "./src/"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"react-dom": "^17.0.2",
|
|
23
23
|
"react-router-dom": "^6.4.4",
|
|
24
24
|
"styled-components": "^5.3.6",
|
|
25
|
-
"styled-system": "^5.1.5"
|
|
26
|
-
"zod": ">=3.19.1"
|
|
25
|
+
"styled-system": "^5.1.5"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"@storybook/addon-actions": "^6.5.9",
|
|
@@ -58,11 +57,11 @@
|
|
|
58
57
|
"@typescript-eslint/parser": "^5.23.0",
|
|
59
58
|
"chromatic": "^6.10.2",
|
|
60
59
|
"concurrently": "^7.4.0",
|
|
61
|
-
"esbuild": "^0.15.11",
|
|
62
60
|
"jest": "^29.2.2",
|
|
63
61
|
"jest-environment-jsdom": "^29.2.2",
|
|
64
62
|
"jest-styled-components": "^7.1.1",
|
|
65
63
|
"jest-when": "^3.5.1",
|
|
64
|
+
"json-schema-to-ts": "^2.7.2",
|
|
66
65
|
"lodash.throttle": "^4.1.1",
|
|
67
66
|
"npm-run-all": "^4.1.5",
|
|
68
67
|
"react-refresh": "^0.14.0",
|
|
@@ -77,10 +76,10 @@
|
|
|
77
76
|
"tsc-alias": "^1.8.2",
|
|
78
77
|
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
79
78
|
"typescript": "^4.8.4",
|
|
80
|
-
"webpack": "^5.72.0"
|
|
81
|
-
"zod": ">=3.19.1"
|
|
79
|
+
"webpack": "^5.72.0"
|
|
82
80
|
},
|
|
83
81
|
"dependencies": {
|
|
82
|
+
"@redocly/ajv": "^8.11.0",
|
|
84
83
|
"copy-to-clipboard": "^3.3.3",
|
|
85
84
|
"highlight-words-core": "^1.2.2",
|
|
86
85
|
"hotkeys-js": "^3.10.1",
|
|
@@ -2,7 +2,7 @@ import styled, { css } from 'styled-components';
|
|
|
2
2
|
|
|
3
3
|
import type { FlattenSimpleInterpolation } from 'styled-components';
|
|
4
4
|
|
|
5
|
-
import { typography } from '@theme/utils';
|
|
5
|
+
import { typography } from '@theme/utils/theme-helpers';
|
|
6
6
|
|
|
7
7
|
export const baseTable = css`
|
|
8
8
|
table.md {
|