@redocly/theme 0.1.16 → 0.1.21
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/Button/Button.d.ts +4 -3
- package/Button/Button.js +28 -1
- package/Footer/CustomFooter.d.ts +7 -0
- package/Footer/CustomFooter.js +31 -0
- package/Footer/CustomFooterNavItem.d.ts +7 -0
- package/Footer/CustomFooterNavItem.js +25 -0
- package/Footer/Footer.d.ts +6 -2
- package/Footer/Footer.js +1 -1
- package/Footer/FooterColumn.d.ts +2 -2
- package/Footer/FooterColumn.js +3 -2
- package/Footer/FooterColumns.d.ts +6 -4
- package/Footer/FooterColumns.js +3 -3
- package/Footer/FooterCopyright.d.ts +6 -4
- package/JsonViewer/JsonViewer.js +1 -2
- package/JsonViewer/index.d.ts +0 -1
- package/JsonViewer/index.js +0 -1
- package/Markdown/Admonition.js +1 -1
- package/Markdown/CodeSample/CodeSample.js +15 -5
- package/Markdown/CodeSample/index.d.ts +0 -1
- package/Markdown/CodeSample/index.js +0 -1
- package/Navbar/Navbar.d.ts +2 -1
- package/Navbar/Navbar.js +9 -2
- package/Navbar/NavbarDropdown.d.ts +8 -0
- package/Navbar/NavbarDropdown.js +21 -0
- package/Navbar/NavbarItem.d.ts +3 -36
- package/Navbar/NavbarItem.js +22 -13
- package/Navbar/NavbarMenu.d.ts +2 -1
- package/Navbar/NavbarMenu.js +1 -1
- package/PageNavigation/NextPageLink.js +8 -5
- package/PageNavigation/PreviousPageLink.js +8 -5
- package/Search/SidebarSearch.d.ts +2 -0
- package/Search/SidebarSearch.js +15 -0
- package/Sidebar/MenuGroup.js +2 -2
- package/Sidebar/SidebarLayout.js +5 -0
- package/TableOfContent/TableOfContent.js +8 -1
- package/Typography/CompactTypography.d.ts +11 -0
- package/Typography/CompactTypography.js +18 -0
- package/Typography/Emphasis.d.ts +3 -0
- package/Typography/Emphasis.js +15 -0
- package/Typography/H1.d.ts +3 -0
- package/Typography/H1.js +16 -0
- package/Typography/H2.d.ts +3 -0
- package/Typography/H2.js +16 -0
- package/Typography/H3.d.ts +3 -0
- package/Typography/H3.js +16 -0
- package/Typography/SectionHeader.d.ts +1 -0
- package/Typography/SectionHeader.js +13 -0
- package/Typography/Typography.d.ts +8 -0
- package/Typography/Typography.js +22 -0
- package/Typography/index.d.ts +7 -0
- package/{Headings → Typography}/index.js +7 -1
- package/globalStyle.js +1 -1
- package/{ui → icons/AlertIcon}/AlertIcon.d.ts +2 -2
- package/{ui → icons/AlertIcon}/AlertIcon.js +1 -1
- package/icons/AlertIcon/index.d.ts +2 -0
- package/icons/AlertIcon/index.js +5 -0
- package/icons/ArrowIcon/ArrowIcon.d.ts +7 -0
- package/{ui/Arrow.js → icons/ArrowIcon/ArrowIcon.js} +3 -3
- package/icons/ArrowIcon/index.d.ts +2 -0
- package/icons/ArrowIcon/index.js +5 -0
- package/icons/index.d.ts +2 -0
- package/icons/index.js +2 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/mocks/constants/index.d.ts +2 -0
- package/mocks/constants/index.js +5 -0
- package/mocks/hooks/index.d.ts +6 -0
- package/mocks/hooks/index.js +16 -0
- package/package.json +1 -1
- package/settings.yaml +9 -0
- package/src/Button/Button.tsx +19 -1
- package/src/Footer/CustomFooter.tsx +45 -0
- package/src/Footer/CustomFooterNavItem.tsx +40 -0
- package/src/Footer/Footer.tsx +6 -2
- package/src/Footer/FooterColumn.tsx +4 -4
- package/src/Footer/FooterColumns.tsx +9 -9
- package/src/Footer/FooterCopyright.tsx +6 -6
- package/src/JsonViewer/JsonViewer.tsx +106 -2
- package/src/JsonViewer/index.ts +0 -1
- package/src/Markdown/Admonition.tsx +1 -1
- package/src/Markdown/CodeSample/CodeSample.tsx +160 -6
- package/src/Markdown/CodeSample/index.ts +0 -1
- package/src/Navbar/Navbar.tsx +13 -3
- package/src/Navbar/NavbarDropdown.tsx +44 -0
- package/src/Navbar/NavbarItem.tsx +44 -51
- package/src/Navbar/NavbarMenu.tsx +6 -3
- package/src/PageNavigation/NextPageLink.tsx +9 -3
- package/src/PageNavigation/PreviousPageLink.tsx +9 -3
- package/src/Search/SidebarSearch.tsx +13 -0
- package/src/Sidebar/MenuGroup.tsx +2 -2
- package/src/Sidebar/SidebarLayout.tsx +5 -0
- package/src/TableOfContent/TableOfContent.tsx +7 -1
- package/src/Typography/CompactTypography.ts +9 -0
- package/src/Typography/Emphasis.ts +7 -0
- package/src/Typography/H1.ts +12 -0
- package/src/Typography/H2.ts +12 -0
- package/src/Typography/H3.ts +11 -0
- package/src/Typography/SectionHeader.ts +11 -0
- package/src/Typography/Typography.ts +21 -0
- package/src/Typography/index.ts +7 -0
- package/src/globalStyle.ts +1 -0
- package/src/{ui → icons/AlertIcon}/AlertIcon.tsx +3 -3
- package/src/icons/AlertIcon/index.ts +2 -0
- package/src/{ui/Arrow.tsx → icons/ArrowIcon/ArrowIcon.tsx} +5 -5
- package/src/icons/ArrowIcon/index.ts +2 -0
- package/src/icons/index.ts +2 -0
- package/src/index.ts +1 -1
- package/src/mocks/constants/index.ts +2 -0
- package/src/mocks/hooks/index.ts +17 -0
- package/src/types/portal/index.d.ts +0 -1
- package/src/types/portal/src/client/app/Sidebar/types.d.ts +1 -1
- package/src/types/portal/src/server/{utils → content}/content-provider.d.ts +9 -9
- package/src/types/portal/src/server/{version-store.d.ts → content/versions-config.d.ts} +7 -7
- package/src/types/portal/src/server/plugins/markdown/types.d.ts +14 -11
- package/src/types/portal/src/server/plugins/portal-config/types.d.ts +16 -19
- package/src/types/portal/src/server/plugins/types.d.ts +23 -15
- package/src/types/portal/src/server/store.d.ts +32 -33
- package/src/types/portal/src/server/utils/fs.d.ts +2 -1
- package/src/types/portal/src/server/utils/index.d.ts +0 -1
- package/src/types/portal/src/server/utils/paths.d.ts +3 -3
- package/src/types/portal/src/server/utils/reporter/formatter.d.ts +2 -1
- package/src/types/portal/src/server/utils/reporter/reporter.d.ts +2 -1
- package/src/types/portal/src/shared/constants.d.ts +2 -0
- package/src/types/portal/src/shared/models/active-item.d.ts +3 -0
- package/src/types/portal/src/shared/models/config.d.ts +28 -0
- package/src/types/portal/src/shared/models/index.d.ts +6 -0
- package/src/types/portal/src/shared/models/json-index.d.ts +5 -0
- package/src/types/portal/src/shared/models/operation-parameter.d.ts +6 -0
- package/src/types/portal/src/shared/models/search-data.d.ts +5 -0
- package/src/types/portal/src/shared/models/search-document.d.ts +11 -0
- package/src/types/portal/src/shared/types.d.ts +8 -2
- package/src/types/portal/src/shared/urls.d.ts +2 -0
- package/src/types/portal/src/shared/utils.d.ts +8 -2
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/index.tsx +0 -4
- package/src/utils/ClipboardService.ts +19 -0
- package/ui/Jumbotron.js +1 -1
- package/ui/index.d.ts +0 -4
- package/ui/index.js +0 -4
- package/utils/ClipboardService.d.ts +1 -0
- package/utils/ClipboardService.js +19 -0
- package/Headings/Headings.d.ts +0 -3
- package/Headings/Headings.js +0 -16
- package/Headings/index.d.ts +0 -1
- package/JsonViewer/styled.d.ts +0 -1
- package/JsonViewer/styled.js +0 -10
- package/Markdown/CodeSample/styled.d.ts +0 -4
- package/Markdown/CodeSample/styled.js +0 -85
- package/src/Headings/Headings.ts +0 -23
- package/src/Headings/index.ts +0 -1
- package/src/JsonViewer/styled.ts +0 -103
- package/src/Markdown/CodeSample/styled.ts +0 -209
- package/src/types/portal/src/client/app/media-css.d.ts +0 -7
- package/src/types/portal/src/client/styling/default.d.ts +0 -601
- package/src/types/portal/src/client/styling/index.d.ts +0 -10
- package/src/types/portal/src/client/styling/resolve.d.ts +0 -1
- package/src/ui/Button.tsx +0 -19
- package/src/ui/Typography.tsx +0 -90
- package/ui/Arrow.d.ts +0 -7
- package/ui/Button.d.ts +0 -7
- package/ui/Button.js +0 -30
- package/ui/Typography.d.ts +0 -41
- package/ui/Typography.js +0 -59
|
@@ -1,601 +0,0 @@
|
|
|
1
|
-
export declare const defaultTheme: {
|
|
2
|
-
spacing: {
|
|
3
|
-
unit: number;
|
|
4
|
-
sectionHorizontal: ({ spacing }: {
|
|
5
|
-
spacing: any;
|
|
6
|
-
}) => number;
|
|
7
|
-
sectionVertical: ({ spacing }: {
|
|
8
|
-
spacing: any;
|
|
9
|
-
}) => number;
|
|
10
|
-
};
|
|
11
|
-
components: {
|
|
12
|
-
buttons: {
|
|
13
|
-
borderRadius: ({ shape }: {
|
|
14
|
-
shape: any;
|
|
15
|
-
}) => any;
|
|
16
|
-
hoverStyle: string;
|
|
17
|
-
fontWeight: ({ typography }: {
|
|
18
|
-
typography: any;
|
|
19
|
-
}) => any;
|
|
20
|
-
boxShadow: string;
|
|
21
|
-
hoverBoxShadow: string;
|
|
22
|
-
fontFamily: string;
|
|
23
|
-
sizes: {
|
|
24
|
-
small: {
|
|
25
|
-
fontSize: string;
|
|
26
|
-
padding: string;
|
|
27
|
-
minWidth: string;
|
|
28
|
-
};
|
|
29
|
-
medium: {
|
|
30
|
-
fontSize: string;
|
|
31
|
-
padding: string;
|
|
32
|
-
minWidth: string;
|
|
33
|
-
};
|
|
34
|
-
large: {
|
|
35
|
-
fontSize: string;
|
|
36
|
-
padding: string;
|
|
37
|
-
minWidth: string;
|
|
38
|
-
};
|
|
39
|
-
xlarge: {
|
|
40
|
-
fontSize: string;
|
|
41
|
-
padding: string;
|
|
42
|
-
minWidth: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
search: {
|
|
47
|
-
icon: string;
|
|
48
|
-
iconColor: ({ colors }: {
|
|
49
|
-
colors: any;
|
|
50
|
-
}) => any;
|
|
51
|
-
};
|
|
52
|
-
alert: {
|
|
53
|
-
marginHorizontal: string;
|
|
54
|
-
marginVertical: ({ spacing }: {
|
|
55
|
-
spacing: any;
|
|
56
|
-
}) => string;
|
|
57
|
-
paddingHorizontal: ({ spacing }: {
|
|
58
|
-
spacing: any;
|
|
59
|
-
}) => string;
|
|
60
|
-
paddingVertical: ({ spacing }: {
|
|
61
|
-
spacing: any;
|
|
62
|
-
}) => string;
|
|
63
|
-
borderRadius: string;
|
|
64
|
-
iconSize: string;
|
|
65
|
-
fontSize: string;
|
|
66
|
-
fontWeight: string;
|
|
67
|
-
lineHeight: string;
|
|
68
|
-
heading: {
|
|
69
|
-
fontSize: string;
|
|
70
|
-
fontWeight: string;
|
|
71
|
-
lineHeight: string;
|
|
72
|
-
letterSpacing: string;
|
|
73
|
-
transform: string;
|
|
74
|
-
};
|
|
75
|
-
variants: {
|
|
76
|
-
info: {
|
|
77
|
-
backgroundColor: string;
|
|
78
|
-
textColor: ({ colors }: {
|
|
79
|
-
colors: any;
|
|
80
|
-
}) => any;
|
|
81
|
-
headingColor: ({ colors }: {
|
|
82
|
-
colors: any;
|
|
83
|
-
}) => any;
|
|
84
|
-
iconColor: ({ colors }: {
|
|
85
|
-
colors: any;
|
|
86
|
-
}) => any;
|
|
87
|
-
icon: string;
|
|
88
|
-
};
|
|
89
|
-
attention: {
|
|
90
|
-
backgroundColor: ({ colors }: {
|
|
91
|
-
colors: any;
|
|
92
|
-
}) => any;
|
|
93
|
-
textColor: ({ colors }: {
|
|
94
|
-
colors: any;
|
|
95
|
-
}) => any;
|
|
96
|
-
headingColor: ({ colors }: {
|
|
97
|
-
colors: any;
|
|
98
|
-
}) => any;
|
|
99
|
-
iconColor: ({ colors }: {
|
|
100
|
-
colors: any;
|
|
101
|
-
}) => any;
|
|
102
|
-
icon: string;
|
|
103
|
-
};
|
|
104
|
-
warning: {
|
|
105
|
-
backgroundColor: ({ colors }: {
|
|
106
|
-
colors: any;
|
|
107
|
-
}) => any;
|
|
108
|
-
textColor: ({ colors }: {
|
|
109
|
-
colors: any;
|
|
110
|
-
}) => any;
|
|
111
|
-
headingColor: ({ colors }: {
|
|
112
|
-
colors: any;
|
|
113
|
-
}) => any;
|
|
114
|
-
iconColor: ({ colors }: {
|
|
115
|
-
colors: any;
|
|
116
|
-
}) => any;
|
|
117
|
-
icon: string;
|
|
118
|
-
};
|
|
119
|
-
danger: {
|
|
120
|
-
backgroundColor: ({ colors }: {
|
|
121
|
-
colors: any;
|
|
122
|
-
}) => any;
|
|
123
|
-
textColor: ({ colors }: {
|
|
124
|
-
colors: any;
|
|
125
|
-
}) => any;
|
|
126
|
-
headingColor: ({ colors }: {
|
|
127
|
-
colors: any;
|
|
128
|
-
}) => any;
|
|
129
|
-
iconColor: ({ colors }: {
|
|
130
|
-
colors: any;
|
|
131
|
-
}) => any;
|
|
132
|
-
icon: string;
|
|
133
|
-
};
|
|
134
|
-
success: {
|
|
135
|
-
backgroundColor: ({ colors }: {
|
|
136
|
-
colors: any;
|
|
137
|
-
}) => any;
|
|
138
|
-
textColor: ({ colors }: {
|
|
139
|
-
colors: any;
|
|
140
|
-
}) => any;
|
|
141
|
-
headingColor: ({ colors }: {
|
|
142
|
-
colors: any;
|
|
143
|
-
}) => any;
|
|
144
|
-
iconColor: ({ colors }: {
|
|
145
|
-
colors: any;
|
|
146
|
-
}) => any;
|
|
147
|
-
icon: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
panels: {
|
|
152
|
-
borderRadius: string;
|
|
153
|
-
};
|
|
154
|
-
shape: {
|
|
155
|
-
borderRadius: string;
|
|
156
|
-
};
|
|
157
|
-
blockquote: {
|
|
158
|
-
marginHorizontal: string;
|
|
159
|
-
marginVertical: string;
|
|
160
|
-
paddingHorizontal: ({ spacing }: {
|
|
161
|
-
spacing: any;
|
|
162
|
-
}) => string;
|
|
163
|
-
paddingVertical: string;
|
|
164
|
-
backgroundColor: string;
|
|
165
|
-
borderRadius: string;
|
|
166
|
-
borderLeft: ({ colors }: {
|
|
167
|
-
colors: any;
|
|
168
|
-
}) => string;
|
|
169
|
-
color: ({ colors }: {
|
|
170
|
-
colors: any;
|
|
171
|
-
}) => any;
|
|
172
|
-
};
|
|
173
|
-
contentWrapper: {
|
|
174
|
-
maxWidth: string;
|
|
175
|
-
paddingHorizontal: string;
|
|
176
|
-
paddingVertical: string;
|
|
177
|
-
};
|
|
178
|
-
login: {
|
|
179
|
-
avatarBorderRadius: ({ navbar }: {
|
|
180
|
-
navbar: any;
|
|
181
|
-
}) => any;
|
|
182
|
-
avatarBgColor: string;
|
|
183
|
-
};
|
|
184
|
-
layoutControls: {
|
|
185
|
-
top: string;
|
|
186
|
-
};
|
|
187
|
-
httpBadges: {
|
|
188
|
-
borderRadius: string;
|
|
189
|
-
fontFamily: ({ typography }: {
|
|
190
|
-
typography: any;
|
|
191
|
-
}) => any;
|
|
192
|
-
fontWeight: ({ typography }: {
|
|
193
|
-
typography: any;
|
|
194
|
-
}) => any;
|
|
195
|
-
color: ({ colors }: {
|
|
196
|
-
colors: any;
|
|
197
|
-
}) => any;
|
|
198
|
-
sizes: {
|
|
199
|
-
medium: {
|
|
200
|
-
fontSize: string;
|
|
201
|
-
lineHeight: string;
|
|
202
|
-
};
|
|
203
|
-
small: {
|
|
204
|
-
fontSize: string;
|
|
205
|
-
lineHeight: string;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
tryItButton: {
|
|
210
|
-
fullWidth: boolean;
|
|
211
|
-
};
|
|
212
|
-
tryItSendButton: {
|
|
213
|
-
fullWidth: boolean;
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
breakpoints: {
|
|
217
|
-
small: string;
|
|
218
|
-
medium: string;
|
|
219
|
-
large: string;
|
|
220
|
-
};
|
|
221
|
-
shape: {
|
|
222
|
-
borderRadius: string;
|
|
223
|
-
};
|
|
224
|
-
colors: {
|
|
225
|
-
background: string;
|
|
226
|
-
tonalOffset: number;
|
|
227
|
-
primary: {
|
|
228
|
-
main: string;
|
|
229
|
-
light: ({ colors }: {
|
|
230
|
-
colors: any;
|
|
231
|
-
}) => string;
|
|
232
|
-
dark: ({ colors }: {
|
|
233
|
-
colors: any;
|
|
234
|
-
}) => string;
|
|
235
|
-
contrastText: ({ colors }: {
|
|
236
|
-
colors: any;
|
|
237
|
-
}) => string;
|
|
238
|
-
};
|
|
239
|
-
secondary: {
|
|
240
|
-
main: string;
|
|
241
|
-
light: string;
|
|
242
|
-
dark: string;
|
|
243
|
-
contrastText: string;
|
|
244
|
-
};
|
|
245
|
-
accent: {
|
|
246
|
-
main: string;
|
|
247
|
-
light: string;
|
|
248
|
-
dark: string;
|
|
249
|
-
contrastText: string;
|
|
250
|
-
};
|
|
251
|
-
success: {
|
|
252
|
-
main: string;
|
|
253
|
-
light: ({ colors }: {
|
|
254
|
-
colors: any;
|
|
255
|
-
}) => string;
|
|
256
|
-
dark: ({ colors }: {
|
|
257
|
-
colors: any;
|
|
258
|
-
}) => string;
|
|
259
|
-
contrastText: ({ colors }: {
|
|
260
|
-
colors: any;
|
|
261
|
-
}) => string;
|
|
262
|
-
};
|
|
263
|
-
error: {
|
|
264
|
-
main: string;
|
|
265
|
-
light: ({ colors }: {
|
|
266
|
-
colors: any;
|
|
267
|
-
}) => string;
|
|
268
|
-
dark: ({ colors }: {
|
|
269
|
-
colors: any;
|
|
270
|
-
}) => string;
|
|
271
|
-
contrastText: ({ colors }: {
|
|
272
|
-
colors: any;
|
|
273
|
-
}) => string;
|
|
274
|
-
};
|
|
275
|
-
warning: {
|
|
276
|
-
main: string;
|
|
277
|
-
light: ({ colors }: {
|
|
278
|
-
colors: any;
|
|
279
|
-
}) => string;
|
|
280
|
-
dark: ({ colors }: {
|
|
281
|
-
colors: any;
|
|
282
|
-
}) => string;
|
|
283
|
-
contrastText: ({ colors }: {
|
|
284
|
-
colors: any;
|
|
285
|
-
}) => string;
|
|
286
|
-
};
|
|
287
|
-
info: {
|
|
288
|
-
main: string;
|
|
289
|
-
light: ({ colors }: {
|
|
290
|
-
colors: any;
|
|
291
|
-
}) => string;
|
|
292
|
-
dark: ({ colors }: {
|
|
293
|
-
colors: any;
|
|
294
|
-
}) => string;
|
|
295
|
-
contrastText: ({ colors }: {
|
|
296
|
-
colors: any;
|
|
297
|
-
}) => string;
|
|
298
|
-
};
|
|
299
|
-
text: {
|
|
300
|
-
primary: string;
|
|
301
|
-
secondary: string;
|
|
302
|
-
light: string;
|
|
303
|
-
};
|
|
304
|
-
border: {
|
|
305
|
-
dark: string;
|
|
306
|
-
light: string;
|
|
307
|
-
};
|
|
308
|
-
responses: {
|
|
309
|
-
success: {
|
|
310
|
-
color: ({ colors }: {
|
|
311
|
-
colors: any;
|
|
312
|
-
}) => any;
|
|
313
|
-
backgroundColor: ({ colors }: {
|
|
314
|
-
colors: any;
|
|
315
|
-
}) => string;
|
|
316
|
-
};
|
|
317
|
-
error: {
|
|
318
|
-
color: ({ colors }: {
|
|
319
|
-
colors: any;
|
|
320
|
-
}) => any;
|
|
321
|
-
backgroundColor: ({ colors }: {
|
|
322
|
-
colors: any;
|
|
323
|
-
}) => string;
|
|
324
|
-
};
|
|
325
|
-
redirect: {
|
|
326
|
-
color: ({ colors }: {
|
|
327
|
-
colors: any;
|
|
328
|
-
}) => any;
|
|
329
|
-
backgroundColor: ({ colors }: {
|
|
330
|
-
colors: any;
|
|
331
|
-
}) => string;
|
|
332
|
-
};
|
|
333
|
-
info: {
|
|
334
|
-
color: ({ colors }: {
|
|
335
|
-
colors: any;
|
|
336
|
-
}) => any;
|
|
337
|
-
backgroundColor: ({ colors }: {
|
|
338
|
-
colors: any;
|
|
339
|
-
}) => string;
|
|
340
|
-
};
|
|
341
|
-
};
|
|
342
|
-
http: {
|
|
343
|
-
get: string;
|
|
344
|
-
post: string;
|
|
345
|
-
put: string;
|
|
346
|
-
options: string;
|
|
347
|
-
patch: string;
|
|
348
|
-
delete: string;
|
|
349
|
-
basic: string;
|
|
350
|
-
link: string;
|
|
351
|
-
head: string;
|
|
352
|
-
};
|
|
353
|
-
navbar: {
|
|
354
|
-
main: ({ colors }: {
|
|
355
|
-
colors: any;
|
|
356
|
-
}) => any;
|
|
357
|
-
gradient: ({ colors }: {
|
|
358
|
-
colors: any;
|
|
359
|
-
}) => string;
|
|
360
|
-
contrastText: ({ colors }: {
|
|
361
|
-
colors: any;
|
|
362
|
-
}) => string;
|
|
363
|
-
};
|
|
364
|
-
footer: {
|
|
365
|
-
main: ({ colors }: {
|
|
366
|
-
colors: any;
|
|
367
|
-
}) => any;
|
|
368
|
-
contrastText: ({ colors }: {
|
|
369
|
-
colors: any;
|
|
370
|
-
}) => any;
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
sidebar: {
|
|
374
|
-
showAtBreakpoint: string;
|
|
375
|
-
backgroundColor: string;
|
|
376
|
-
width: string;
|
|
377
|
-
textColor: string;
|
|
378
|
-
textColorSecondary: string;
|
|
379
|
-
activeTextColor: ({ sidebar }: {
|
|
380
|
-
sidebar: any;
|
|
381
|
-
}) => any;
|
|
382
|
-
activeBgColor: string;
|
|
383
|
-
separatorLineColor: string;
|
|
384
|
-
rightLineColor: string;
|
|
385
|
-
separatorLabelColor: ({ sidebar }: {
|
|
386
|
-
sidebar: any;
|
|
387
|
-
}) => any;
|
|
388
|
-
caretColor: ({ sidebar }: {
|
|
389
|
-
sidebar: any;
|
|
390
|
-
}) => any;
|
|
391
|
-
caretSize: ({ sidebar }: {
|
|
392
|
-
sidebar: any;
|
|
393
|
-
}) => any;
|
|
394
|
-
spacing: {
|
|
395
|
-
unit: number;
|
|
396
|
-
paddingHorizontal: ({ sidebar }: {
|
|
397
|
-
sidebar: any;
|
|
398
|
-
}) => any;
|
|
399
|
-
paddingVertical: ({ sidebar }: {
|
|
400
|
-
sidebar: any;
|
|
401
|
-
}) => any;
|
|
402
|
-
offsetTop: ({ sidebar }: {
|
|
403
|
-
sidebar: any;
|
|
404
|
-
}) => number;
|
|
405
|
-
offsetLeft: ({ sidebar }: {
|
|
406
|
-
sidebar: any;
|
|
407
|
-
}) => number;
|
|
408
|
-
offsetNesting: ({ sidebar }: {
|
|
409
|
-
sidebar: any;
|
|
410
|
-
}) => number;
|
|
411
|
-
};
|
|
412
|
-
borderRadius: string;
|
|
413
|
-
fontFamily: ({ typography }: {
|
|
414
|
-
typography: any;
|
|
415
|
-
}) => any;
|
|
416
|
-
fontSize: ({ typography }: {
|
|
417
|
-
typography: any;
|
|
418
|
-
}) => any;
|
|
419
|
-
};
|
|
420
|
-
navbar: {
|
|
421
|
-
height: string;
|
|
422
|
-
borderRadius: string;
|
|
423
|
-
marginHorizontal: string;
|
|
424
|
-
marginVertical: string;
|
|
425
|
-
activeTextColor: ({ colors }: {
|
|
426
|
-
colors: any;
|
|
427
|
-
}) => any;
|
|
428
|
-
activeBgColor: ({ colors }: {
|
|
429
|
-
colors: any;
|
|
430
|
-
}) => string;
|
|
431
|
-
activeTextDecoration: string;
|
|
432
|
-
fontWeight: number;
|
|
433
|
-
fontSize: string;
|
|
434
|
-
};
|
|
435
|
-
tocPanel: {
|
|
436
|
-
width: string;
|
|
437
|
-
};
|
|
438
|
-
logo: {
|
|
439
|
-
maxWidth: string;
|
|
440
|
-
maxHeight: string;
|
|
441
|
-
height: string;
|
|
442
|
-
margin: ({ sidebar }: {
|
|
443
|
-
sidebar: any;
|
|
444
|
-
}) => string;
|
|
445
|
-
};
|
|
446
|
-
typography: {
|
|
447
|
-
fontSize: string;
|
|
448
|
-
lineHeight: string;
|
|
449
|
-
fontWeightRegular: string;
|
|
450
|
-
fontWeightBold: string;
|
|
451
|
-
fontWeightLight: string;
|
|
452
|
-
fontFamily: string;
|
|
453
|
-
headings: {
|
|
454
|
-
fontFamily: string;
|
|
455
|
-
fontWeight: string;
|
|
456
|
-
};
|
|
457
|
-
fieldName: {
|
|
458
|
-
fontSize: ({ typography }: {
|
|
459
|
-
typography: any;
|
|
460
|
-
}) => any;
|
|
461
|
-
fontFamily: ({ typography }: {
|
|
462
|
-
typography: any;
|
|
463
|
-
}) => any;
|
|
464
|
-
fontWeight: ({ typography }: {
|
|
465
|
-
typography: any;
|
|
466
|
-
}) => any;
|
|
467
|
-
};
|
|
468
|
-
heading1: {
|
|
469
|
-
fontSize: string;
|
|
470
|
-
fontWeight: string;
|
|
471
|
-
fontFamily: ({ typography }: {
|
|
472
|
-
typography: any;
|
|
473
|
-
}) => any;
|
|
474
|
-
lineHeight: ({ typography }: {
|
|
475
|
-
typography: any;
|
|
476
|
-
}) => any;
|
|
477
|
-
color: ({ colors }: {
|
|
478
|
-
colors: any;
|
|
479
|
-
}) => any;
|
|
480
|
-
capitalize: boolean;
|
|
481
|
-
marginTop: string;
|
|
482
|
-
marginBottom: string;
|
|
483
|
-
};
|
|
484
|
-
heading2: {
|
|
485
|
-
fontSize: string;
|
|
486
|
-
fontWeight: string;
|
|
487
|
-
color: ({ colors }: {
|
|
488
|
-
colors: any;
|
|
489
|
-
}) => any;
|
|
490
|
-
fontFamily: ({ typography }: {
|
|
491
|
-
typography: any;
|
|
492
|
-
}) => any;
|
|
493
|
-
lineHeight: ({ typography }: {
|
|
494
|
-
typography: any;
|
|
495
|
-
}) => any;
|
|
496
|
-
capitalize: boolean;
|
|
497
|
-
marginTop: string;
|
|
498
|
-
marginBottom: string;
|
|
499
|
-
};
|
|
500
|
-
heading3: {
|
|
501
|
-
fontSize: string;
|
|
502
|
-
fontWeight: string;
|
|
503
|
-
color: ({ colors }: {
|
|
504
|
-
colors: any;
|
|
505
|
-
}) => any;
|
|
506
|
-
fontFamily: ({ typography }: {
|
|
507
|
-
typography: any;
|
|
508
|
-
}) => any;
|
|
509
|
-
lineHeight: ({ typography }: {
|
|
510
|
-
typography: any;
|
|
511
|
-
}) => any;
|
|
512
|
-
capitalize: boolean;
|
|
513
|
-
marginTop: string;
|
|
514
|
-
marginBottom: string;
|
|
515
|
-
};
|
|
516
|
-
heading4: {};
|
|
517
|
-
heading5: {};
|
|
518
|
-
heading6: {};
|
|
519
|
-
rightPanelHeading: {};
|
|
520
|
-
code: {
|
|
521
|
-
fontSize: string;
|
|
522
|
-
fontFamily: string;
|
|
523
|
-
fontWeight: ({ typography }: {
|
|
524
|
-
typography: any;
|
|
525
|
-
}) => any;
|
|
526
|
-
color: string;
|
|
527
|
-
backgroundColor: string;
|
|
528
|
-
wrap: boolean;
|
|
529
|
-
};
|
|
530
|
-
links: {
|
|
531
|
-
color: ({ colors }: {
|
|
532
|
-
colors: any;
|
|
533
|
-
}) => any;
|
|
534
|
-
visited: ({ typography }: {
|
|
535
|
-
typography: any;
|
|
536
|
-
}) => any;
|
|
537
|
-
hover: ({ typography }: {
|
|
538
|
-
typography: any;
|
|
539
|
-
}) => string;
|
|
540
|
-
textDecoration: string;
|
|
541
|
-
};
|
|
542
|
-
};
|
|
543
|
-
rightPanel: {
|
|
544
|
-
showAtBreakpoint: string;
|
|
545
|
-
backgroundColor: string;
|
|
546
|
-
width: string;
|
|
547
|
-
textColor: string;
|
|
548
|
-
panelBackgroundColor: string;
|
|
549
|
-
panelControlsBackgroundColor: string;
|
|
550
|
-
};
|
|
551
|
-
schema: {
|
|
552
|
-
linesColor: (theme: any) => any;
|
|
553
|
-
defaultDetailsWidth: string;
|
|
554
|
-
typeNameColor: (theme: any) => any;
|
|
555
|
-
typeTitleColor: (theme: any) => any;
|
|
556
|
-
requireLabelColor: string;
|
|
557
|
-
labelsTextSize: string;
|
|
558
|
-
nestingSpacing: string;
|
|
559
|
-
nestedBackground: (theme: any) => any;
|
|
560
|
-
caretColor: ({ colors }: {
|
|
561
|
-
colors: any;
|
|
562
|
-
}) => any;
|
|
563
|
-
caretSize: string;
|
|
564
|
-
};
|
|
565
|
-
codeBlock: {
|
|
566
|
-
backgroundColor: ({ rightPanel }: {
|
|
567
|
-
rightPanel: any;
|
|
568
|
-
}) => any;
|
|
569
|
-
copyButton: {
|
|
570
|
-
visibleText: ({ codeBlock }: {
|
|
571
|
-
codeBlock: any;
|
|
572
|
-
}) => string;
|
|
573
|
-
contrastText: ({ codeBlock }: {
|
|
574
|
-
codeBlock: any;
|
|
575
|
-
}) => string;
|
|
576
|
-
background: ({ codeBlock }: {
|
|
577
|
-
codeBlock: any;
|
|
578
|
-
}) => string;
|
|
579
|
-
};
|
|
580
|
-
tokens: {};
|
|
581
|
-
};
|
|
582
|
-
layout: {
|
|
583
|
-
showDarkRightPanel: boolean;
|
|
584
|
-
stacked: {
|
|
585
|
-
maxWidth: {
|
|
586
|
-
_: string;
|
|
587
|
-
small: string;
|
|
588
|
-
medium: string;
|
|
589
|
-
large: string;
|
|
590
|
-
};
|
|
591
|
-
};
|
|
592
|
-
'three-panel': {
|
|
593
|
-
maxWidth: {
|
|
594
|
-
_: string;
|
|
595
|
-
small: string;
|
|
596
|
-
medium: string;
|
|
597
|
-
large: string;
|
|
598
|
-
};
|
|
599
|
-
};
|
|
600
|
-
};
|
|
601
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MediaQueries } from './../app/media-css';
|
|
2
|
-
import { defaultTheme } from './default.js';
|
|
3
|
-
export declare const theme: AppTheme;
|
|
4
|
-
declare type InferDeep<T extends object> = {
|
|
5
|
-
[k in keyof T]: T[k] extends (...args: any) => any ? ReturnType<T[k]> : T[k] extends object ? InferDeep<T[k]> : T[k];
|
|
6
|
-
};
|
|
7
|
-
export declare type AppTheme = InferDeep<typeof defaultTheme> & {
|
|
8
|
-
mediaQueries: MediaQueries;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function resolveTheme(theme: any): any;
|
package/src/ui/Button.tsx
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LinkProps } from 'react-router-dom';
|
|
3
|
-
|
|
4
|
-
import { Button as RefDocsButton, ButtonProps } from '@theme/Button';
|
|
5
|
-
import { Link } from '@portal/Link';
|
|
6
|
-
|
|
7
|
-
const StyledButtonAsLink = RefDocsButton.withComponent(Link);
|
|
8
|
-
|
|
9
|
-
export function Button(
|
|
10
|
-
props: ButtonProps & Partial<LinkProps<never>> & { ref?: any; external?: boolean },
|
|
11
|
-
): JSX.Element {
|
|
12
|
-
if (props.to) {
|
|
13
|
-
return <StyledButtonAsLink {...props} role="button" data-component-name="ui/Button" />;
|
|
14
|
-
} else {
|
|
15
|
-
return (
|
|
16
|
-
<RefDocsButton {...(props as ButtonProps)} role="button" data-component-name="ui/Button" />
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
}
|