@redocly/theme 0.59.0-next.0 → 0.59.0-next.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/Accordion/Accordion.d.ts +12 -0
- package/lib/components/Accordion/Accordion.js +75 -0
- package/lib/components/Accordion/AccordionBody.d.ts +8 -0
- package/lib/components/Accordion/AccordionBody.js +63 -0
- package/lib/components/Accordion/AccordionHeader.d.ts +10 -0
- package/lib/components/Accordion/AccordionHeader.js +37 -0
- package/lib/components/Accordion/AccordionTitle.d.ts +6 -0
- package/lib/components/Accordion/AccordionTitle.js +20 -0
- package/lib/components/Accordion/variables.d.ts +1 -0
- package/lib/components/Accordion/variables.js +59 -0
- package/lib/components/Buttons/AIAssistantButton.d.ts +2 -0
- package/lib/components/Buttons/AIAssistantButton.js +125 -0
- package/lib/components/Buttons/variables.d.ts +1 -0
- package/lib/components/Buttons/variables.dark.d.ts +1 -0
- package/lib/components/Buttons/variables.dark.js +10 -0
- package/lib/components/Buttons/variables.js +51 -0
- package/lib/components/Catalog/Catalog.js +3 -3
- package/lib/components/Catalog/CatalogFilter/CatalogFilter.d.ts +6 -0
- package/lib/components/Catalog/CatalogFilter/CatalogFilter.js +35 -0
- package/lib/components/Catalog/CatalogFilter/CatalogFilterCheckboxes.d.ts +6 -0
- package/lib/components/Catalog/CatalogFilter/CatalogFilterCheckboxes.js +142 -0
- package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.d.ts +13 -0
- package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.js +92 -0
- package/lib/components/Catalog/CatalogFilter/CatalogFilterDateRange.d.ts +6 -0
- package/lib/components/Catalog/CatalogFilter/CatalogFilterDateRange.js +111 -0
- package/lib/components/Catalog/CatalogFilter/CatalogFilterSelect.d.ts +6 -0
- package/lib/components/Catalog/CatalogFilter/CatalogFilterSelect.js +116 -0
- package/lib/components/Catalog/CatalogSelector.js +0 -1
- package/lib/components/Catalog/variables.js +0 -1
- package/lib/components/Filter/FilterInput.d.ts +1 -0
- package/lib/components/Filter/FilterInput.js +2 -2
- package/lib/components/Filter/FilterOptions.js +2 -0
- package/lib/components/Filter/variables.js +7 -4
- package/lib/components/Search/SearchAiDialog.js +2 -3
- package/lib/components/Search/SearchAiResponse.js +2 -3
- package/lib/components/Search/SearchDialog.d.ts +2 -1
- package/lib/components/Search/SearchDialog.js +2 -2
- package/lib/components/Tag/variables.dark.js +2 -2
- package/lib/core/styles/dark.js +29 -26
- package/lib/core/styles/global.js +64 -59
- package/lib/core/types/l10n.d.ts +1 -1
- package/lib/icons/RedoclyIcon/RedoclyIcon.d.ts +9 -0
- package/lib/icons/RedoclyIcon/RedoclyIcon.js +27 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/layouts/RootLayout.js +6 -1
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +100 -0
- package/src/components/Accordion/AccordionBody.tsx +65 -0
- package/src/components/Accordion/AccordionHeader.tsx +68 -0
- package/src/components/Accordion/AccordionTitle.tsx +26 -0
- package/src/components/Accordion/variables.ts +56 -0
- package/src/components/Buttons/AIAssistantButton.tsx +141 -0
- package/src/components/Buttons/variables.dark.ts +7 -0
- package/src/components/Buttons/variables.ts +48 -0
- package/src/components/Catalog/Catalog.tsx +3 -2
- package/src/components/Catalog/CatalogFilter/CatalogFilter.tsx +56 -0
- package/src/components/Catalog/CatalogFilter/CatalogFilterCheckboxes.tsx +169 -0
- package/src/components/Catalog/CatalogFilter/CatalogFilterContent.tsx +121 -0
- package/src/components/Catalog/CatalogFilter/CatalogFilterDateRange.tsx +147 -0
- package/src/components/Catalog/CatalogFilter/CatalogFilterSelect.tsx +136 -0
- package/src/components/Catalog/CatalogSelector.tsx +0 -1
- package/src/components/Catalog/variables.ts +0 -1
- package/src/components/Filter/FilterInput.tsx +3 -2
- package/src/components/Filter/FilterOptions.tsx +2 -0
- package/src/components/Filter/variables.ts +7 -4
- package/src/components/Search/SearchAiDialog.tsx +2 -2
- package/src/components/Search/SearchAiResponse.tsx +2 -2
- package/src/components/Search/SearchDialog.tsx +7 -2
- package/src/components/Tag/variables.dark.ts +2 -2
- package/src/core/styles/dark.ts +11 -8
- package/src/core/styles/global.ts +7 -2
- package/src/core/types/l10n.ts +1 -0
- package/src/icons/RedoclyIcon/RedoclyIcon.tsx +44 -0
- package/src/index.ts +2 -0
- package/src/layouts/RootLayout.tsx +6 -0
package/lib/core/styles/dark.js
CHANGED
|
@@ -6,15 +6,16 @@ const variables_dark_1 = require("../../components/Scorecard/variables.dark");
|
|
|
6
6
|
const variables_dark_2 = require("../../markdoc/components/Mermaid/variables.dark");
|
|
7
7
|
const variables_dark_3 = require("../../components/Menu/variables.dark");
|
|
8
8
|
const variables_dark_4 = require("../../components/Button/variables.dark");
|
|
9
|
-
const variables_dark_5 = require("../../components/
|
|
10
|
-
const variables_dark_6 = require("../../
|
|
11
|
-
const variables_dark_7 = require("../../
|
|
12
|
-
const variables_dark_8 = require("../../components/
|
|
13
|
-
const variables_dark_9 = require("../../components/
|
|
14
|
-
const variables_dark_10 = require("../../
|
|
15
|
-
const variables_dark_11 = require("../../components/
|
|
16
|
-
const variables_dark_12 = require("../../components/
|
|
17
|
-
const variables_dark_13 = require("../../components/
|
|
9
|
+
const variables_dark_5 = require("../../components/Buttons/variables.dark");
|
|
10
|
+
const variables_dark_6 = require("../../components/Segmented/variables.dark");
|
|
11
|
+
const variables_dark_7 = require("../../icons/CheckboxIcon/variables.dark");
|
|
12
|
+
const variables_dark_8 = require("../../components/Tag/variables.dark");
|
|
13
|
+
const variables_dark_9 = require("../../components/StatusCode/variables.dark");
|
|
14
|
+
const variables_dark_10 = require("../../components/Switch/variables.dark");
|
|
15
|
+
const variables_dark_11 = require("../../markdoc/components/Cards/variables.dark");
|
|
16
|
+
const variables_dark_12 = require("../../components/Catalog/variables.dark");
|
|
17
|
+
const variables_dark_13 = require("../../components/PageActions/variables.dark");
|
|
18
|
+
const variables_dark_14 = require("../../components/Tooltip/variables.dark");
|
|
18
19
|
const replayDarkMode = (0, styled_components_1.css) `
|
|
19
20
|
/**
|
|
20
21
|
* @tokens Replay Colors
|
|
@@ -136,14 +137,15 @@ exports.darkMode = (0, styled_components_1.css) `
|
|
|
136
137
|
|
|
137
138
|
--color-green-1: #1a4d40;
|
|
138
139
|
--color-green-2: #195848;
|
|
139
|
-
--color-green-3: #
|
|
140
|
-
--color-green-4: #
|
|
141
|
-
--color-green-5: #
|
|
142
|
-
--color-green-6: #
|
|
143
|
-
--color-green-7: #
|
|
144
|
-
--color-green-8: #
|
|
145
|
-
--color-green-9: #
|
|
146
|
-
--color-green-10: #
|
|
140
|
+
--color-green-3: #136a4d;
|
|
141
|
+
--color-green-4: #0e8450;
|
|
142
|
+
--color-green-5: #149e53;
|
|
143
|
+
--color-green-6: #1cb854;
|
|
144
|
+
--color-green-7: #4dd470;
|
|
145
|
+
--color-green-8: #72e985;
|
|
146
|
+
--color-green-9: #a3f7a9;
|
|
147
|
+
--color-green-10: #d2fbd0;
|
|
148
|
+
--color-green-11: #edfbec;
|
|
147
149
|
|
|
148
150
|
--color-grass-1: #1f4d2d;
|
|
149
151
|
--color-grass-2: #164f29;
|
|
@@ -306,20 +308,21 @@ exports.darkMode = (0, styled_components_1.css) `
|
|
|
306
308
|
--plus-square-outlined-icon: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.20312 5.3125H4.6875V6.79687C4.6875 6.83984 4.72266 6.875 4.76562 6.875H5.23438C5.27734 6.875 5.3125 6.83984 5.3125 6.79687V5.3125H6.79688C6.83984 5.3125 6.875 5.27734 6.875 5.23437V4.76562C6.875 4.72266 6.83984 4.6875 6.79688 4.6875H5.3125V3.20312C5.3125 3.16016 5.27734 3.125 5.23438 3.125H4.76562C4.72266 3.125 4.6875 3.16016 4.6875 3.20312V4.6875H3.20312C3.16016 4.6875 3.125 4.72266 3.125 4.76562V5.23437C3.125 5.27734 3.16016 5.3125 3.20312 5.3125Z' fill='%239B9CA8'/%3E%3Cpath d='M8.59375 1.09375H1.40625C1.2334 1.09375 1.09375 1.2334 1.09375 1.40625V8.59375C1.09375 8.7666 1.2334 8.90625 1.40625 8.90625H8.59375C8.7666 8.90625 8.90625 8.7666 8.90625 8.59375V1.40625C8.90625 1.2334 8.7666 1.09375 8.59375 1.09375ZM8.20312 8.20312H1.79688V1.79687H8.20312V8.20312Z' fill='%239B9CA8'/%3E%3C/svg%3E%0A");
|
|
307
309
|
--minus-square-outlined-icon: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.20312 5.3125H6.79688C6.83984 5.3125 6.875 5.27734 6.875 5.23437V4.76562C6.875 4.72266 6.83984 4.6875 6.79688 4.6875H3.20312C3.16016 4.6875 3.125 4.72266 3.125 4.76562V5.23437C3.125 5.27734 3.16016 5.3125 3.20312 5.3125Z' fill='%239B9CA8'/%3E%3Cpath d='M8.59375 1.09375H1.40625C1.2334 1.09375 1.09375 1.2334 1.09375 1.40625V8.59375C1.09375 8.7666 1.2334 8.90625 1.40625 8.90625H8.59375C8.7666 8.90625 8.90625 8.7666 8.90625 8.59375V1.40625C8.90625 1.2334 8.7666 1.09375 8.59375 1.09375ZM8.20312 8.20312H1.79688V1.79687H8.20312V8.20312Z' fill='%239B9CA8'/%3E%3C/svg%3E%0A");
|
|
308
310
|
|
|
309
|
-
${
|
|
311
|
+
${variables_dark_6.segmentedButtonsDarkMode}
|
|
310
312
|
${variables_dark_4.buttonDarkMode}
|
|
311
|
-
${
|
|
312
|
-
${variables_dark_7.
|
|
313
|
-
${variables_dark_8.
|
|
313
|
+
${variables_dark_5.aiAssistantButtonDarkMode}
|
|
314
|
+
${variables_dark_7.checkboxDarkMode}
|
|
315
|
+
${variables_dark_8.tagDarkMode}
|
|
316
|
+
${variables_dark_9.statusCodeDarkMode}
|
|
314
317
|
${variables_dark_3.menuDarkMode}
|
|
315
318
|
${variables_dark_2.mermaidDarkMode}
|
|
316
319
|
${variables_dark_1.scorecardDarkMode}
|
|
317
320
|
${replayDarkMode}
|
|
318
|
-
${
|
|
319
|
-
${
|
|
320
|
-
${
|
|
321
|
-
${
|
|
322
|
-
${
|
|
321
|
+
${variables_dark_10.switcherDarkMode}
|
|
322
|
+
${variables_dark_11.cardsDarkMode}
|
|
323
|
+
${variables_dark_12.catalogDarkMode}
|
|
324
|
+
${variables_dark_13.pageActionsDarkMode}
|
|
325
|
+
${variables_dark_14.tooltipDarkMode}
|
|
323
326
|
|
|
324
327
|
/**
|
|
325
328
|
* @tokens Dark Theme Scrollbar Config
|
|
@@ -13,34 +13,36 @@ const variables_8 = require("../../components/Catalog/variables");
|
|
|
13
13
|
const variables_9 = require("../../components/Filter/variables");
|
|
14
14
|
const variables_10 = require("../../components/CatalogClassic/variables");
|
|
15
15
|
const variables_11 = require("../../components/Panel/variables");
|
|
16
|
-
const variables_12 = require("../../components/
|
|
17
|
-
const variables_13 = require("../../components/
|
|
18
|
-
const variables_14 = require("../../components/
|
|
19
|
-
const variables_15 = require("../../
|
|
20
|
-
const variables_16 = require("../../
|
|
21
|
-
const variables_17 = require("../../components/
|
|
22
|
-
const variables_18 = require("../../components/
|
|
23
|
-
const variables_19 = require("../../components/
|
|
24
|
-
const variables_20 = require("../../components/
|
|
25
|
-
const variables_21 = require("../../components/
|
|
26
|
-
const variables_22 = require("../../components/
|
|
27
|
-
const variables_23 = require("../../components/
|
|
28
|
-
const variables_24 = require("../../components/
|
|
29
|
-
const variables_25 = require("../../
|
|
30
|
-
const variables_26 = require("../../
|
|
31
|
-
const variables_27 = require("../../components/
|
|
32
|
-
const variables_28 = require("../../components/
|
|
33
|
-
const variables_29 = require("../../components/
|
|
34
|
-
const variables_30 = require("../../components/
|
|
35
|
-
const variables_31 = require("../../components/
|
|
36
|
-
const variables_32 = require("../../components/
|
|
37
|
-
const variables_33 = require("../../components/
|
|
38
|
-
const variables_34 = require("../../components/
|
|
39
|
-
const variables_35 = require("../../components/
|
|
40
|
-
const variables_36 = require("../../
|
|
41
|
-
const variables_37 = require("../../
|
|
42
|
-
const variables_38 = require("../../components/
|
|
43
|
-
const variables_39 = require("../../components/
|
|
16
|
+
const variables_12 = require("../../components/Accordion/variables");
|
|
17
|
+
const variables_13 = require("../../components/Select/variables");
|
|
18
|
+
const variables_14 = require("../../components/Dropdown/variables");
|
|
19
|
+
const variables_15 = require("../../components/Tooltip/variables");
|
|
20
|
+
const variables_16 = require("../../icons/CheckboxIcon/variables");
|
|
21
|
+
const variables_17 = require("../../components/Admonition/variables");
|
|
22
|
+
const variables_18 = require("../../components/Footer/variables");
|
|
23
|
+
const variables_19 = require("../../components/Button/variables");
|
|
24
|
+
const variables_20 = require("../../components/Buttons/variables");
|
|
25
|
+
const variables_21 = require("../../components/Navbar/variables");
|
|
26
|
+
const variables_22 = require("../../components/Search/variables");
|
|
27
|
+
const variables_23 = require("../../components/Menu/variables");
|
|
28
|
+
const variables_24 = require("../../components/CodeBlock/variables");
|
|
29
|
+
const variables_25 = require("../../components/Product/variables");
|
|
30
|
+
const variables_26 = require("../../components/Markdown/variables");
|
|
31
|
+
const variables_27 = require("../../markdoc/components/Tabs/variables");
|
|
32
|
+
const variables_28 = require("../../markdoc/components/Mermaid/variables");
|
|
33
|
+
const variables_29 = require("../../components/LastUpdated/variables");
|
|
34
|
+
const variables_30 = require("../../components/Logo/variables");
|
|
35
|
+
const variables_31 = require("../../components/StatusCode/variables");
|
|
36
|
+
const variables_32 = require("../../components/Segmented/variables");
|
|
37
|
+
const variables_33 = require("../../components/UserMenu/variables");
|
|
38
|
+
const variables_34 = require("../../components/Tags/variables");
|
|
39
|
+
const variables_35 = require("../../components/VersionPicker/variables");
|
|
40
|
+
const variables_36 = require("../../components/DatePicker/variables");
|
|
41
|
+
const variables_37 = require("../../components/Switch/variables");
|
|
42
|
+
const variables_38 = require("../../markdoc/components/Cards/variables");
|
|
43
|
+
const variables_39 = require("../../markdoc/components/CodeWalkthrough/variables");
|
|
44
|
+
const variables_40 = require("../../components/SkipContent/variables");
|
|
45
|
+
const variables_41 = require("../../components/PageActions/variables");
|
|
44
46
|
const dark_1 = require("./dark");
|
|
45
47
|
const themeColors = (0, styled_components_1.css) `
|
|
46
48
|
/* === Palette === */
|
|
@@ -141,8 +143,9 @@ const themeColors = (0, styled_components_1.css) `
|
|
|
141
143
|
--color-green-6: #1cb854;
|
|
142
144
|
--color-green-7: #149e53;
|
|
143
145
|
--color-green-8: #0e8450;
|
|
144
|
-
--color-green-9: #
|
|
145
|
-
--color-green-10: #
|
|
146
|
+
--color-green-9: #136a4d;
|
|
147
|
+
--color-green-10: #195848;
|
|
148
|
+
--color-green-11: #1a4d40;
|
|
146
149
|
|
|
147
150
|
--color-grass-1: #f0faeb;
|
|
148
151
|
--color-grass-2: #e3fad6;
|
|
@@ -1204,68 +1207,70 @@ const replay = (0, styled_components_1.css) `
|
|
|
1204
1207
|
`;
|
|
1205
1208
|
exports.styles = (0, styled_components_1.css) `
|
|
1206
1209
|
:root {
|
|
1207
|
-
${
|
|
1210
|
+
${variables_12.accordion}
|
|
1211
|
+
${variables_17.admonition}
|
|
1208
1212
|
${apiReferenceDocs}
|
|
1209
1213
|
${variables_11.apiReferencePanels}
|
|
1210
1214
|
${badges}
|
|
1211
1215
|
${borders}
|
|
1212
1216
|
${variables_5.breadcrumbs}
|
|
1213
|
-
${
|
|
1214
|
-
${
|
|
1217
|
+
${variables_19.button}
|
|
1218
|
+
${variables_20.aiAssistantButton}
|
|
1219
|
+
${variables_38.cards}
|
|
1215
1220
|
${variables_8.catalog}
|
|
1216
1221
|
${variables_10.catalogClassic}
|
|
1217
|
-
${
|
|
1218
|
-
${
|
|
1222
|
+
${variables_24.code}
|
|
1223
|
+
${variables_39.codeWalkthrough}
|
|
1219
1224
|
${docsDropdown}
|
|
1220
|
-
${
|
|
1225
|
+
${variables_14.dropdown}
|
|
1221
1226
|
${error}
|
|
1222
1227
|
${variables_9.filter}
|
|
1223
|
-
${
|
|
1228
|
+
${variables_18.footer}
|
|
1224
1229
|
${headingsTypography}
|
|
1225
|
-
${
|
|
1230
|
+
${variables_34.httpTag}
|
|
1226
1231
|
${inputs}
|
|
1227
1232
|
${variables_1.languagePicker}
|
|
1228
|
-
${
|
|
1233
|
+
${variables_29.lastUpdated}
|
|
1229
1234
|
${links}
|
|
1230
1235
|
${loadProgressBar}
|
|
1231
|
-
${
|
|
1232
|
-
${
|
|
1233
|
-
${
|
|
1234
|
-
${
|
|
1235
|
-
${
|
|
1236
|
-
${
|
|
1236
|
+
${variables_30.logo}
|
|
1237
|
+
${variables_26.markdown}
|
|
1238
|
+
${variables_27.markdownTabs}
|
|
1239
|
+
${variables_28.mermaid}
|
|
1240
|
+
${variables_23.menu}
|
|
1241
|
+
${variables_23.mobileMenu}
|
|
1237
1242
|
${modal}
|
|
1238
|
-
${
|
|
1243
|
+
${variables_21.navbar}
|
|
1239
1244
|
${pages}
|
|
1240
|
-
${
|
|
1245
|
+
${variables_25.productPicker}
|
|
1241
1246
|
${variables_11.responsePanelColors}
|
|
1242
|
-
${
|
|
1243
|
-
${
|
|
1247
|
+
${variables_22.search}
|
|
1248
|
+
${variables_13.select}
|
|
1244
1249
|
${variables_4.sidebar}
|
|
1245
1250
|
${sizeAndSpace}
|
|
1246
1251
|
${variables_6.tag}
|
|
1247
1252
|
${themeColors}
|
|
1248
1253
|
${tile}
|
|
1249
1254
|
${variables_7.toc}
|
|
1250
|
-
${
|
|
1255
|
+
${variables_15.tooltip}
|
|
1251
1256
|
${typography}
|
|
1252
|
-
${
|
|
1253
|
-
${
|
|
1257
|
+
${variables_33.userMenu}
|
|
1258
|
+
${variables_35.versionPicker}
|
|
1254
1259
|
${zIndexDepth}
|
|
1255
1260
|
${scorecardColors}
|
|
1256
|
-
${
|
|
1261
|
+
${variables_31.statusCode}
|
|
1257
1262
|
${tab}
|
|
1258
1263
|
${icon}
|
|
1259
1264
|
${tree}
|
|
1260
|
-
${
|
|
1261
|
-
${
|
|
1262
|
-
${
|
|
1265
|
+
${variables_32.segmented}
|
|
1266
|
+
${variables_37.switcher}
|
|
1267
|
+
${variables_16.checkbox}
|
|
1263
1268
|
${variables_3.feedback}
|
|
1264
1269
|
${variables_2.scorecard}
|
|
1265
|
-
${
|
|
1270
|
+
${variables_36.datePicker}
|
|
1266
1271
|
${replay}
|
|
1267
|
-
${
|
|
1268
|
-
${
|
|
1272
|
+
${variables_40.skipContent}
|
|
1273
|
+
${variables_41.pageActions}
|
|
1269
1274
|
|
|
1270
1275
|
background-color: var(--bg-color);
|
|
1271
1276
|
color: var(--text-color-primary);
|
package/lib/core/types/l10n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TOptions } from 'i18next';
|
|
2
|
-
export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.catalogs.dataSchema.title' | 'catalog.catalogs.dataSchema.description' | 'catalog.catalogs.dataSchema.switcherLabel' | 'catalog.catalogs.apiOperation.title' | 'catalog.catalogs.apiOperation.description' | 'catalog.catalogs.apiOperation.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.schema.title' | 'catalog.entity.properties.apiDescription.title' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeToSingleColumn' | 'sidebar.actions.changeToTwoColumns' | 'sidebar.actions.singleColumn' | 'sidebar.actions.twoColumns' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'codeSnippet.expand.tooltipText' | 'codeSnippet.collapse.tooltipText' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'page.actions.copyButtonText' | 'page.actions.copyTitle' | 'page.actions.copyDescription' | 'page.actions.viewAsMdTitle' | 'page.actions.viewAsMdButtonText' | 'page.actions.viewAsMdDescription' | 'page.actions.chatGptTitle' | 'page.actions.chatGptButtonText' | 'page.actions.chatGptDescription' | 'page.actions.claudeTitle' | 'page.actions.claudeButtonText' | 'page.actions.claudeDescription' | 'page.actions.cursorMcpButtonText' | 'page.actions.cursorMcpTitle' | 'page.actions.cursorMcpDescription' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.discriminator.searchPlaceholder' | 'openapi.discriminator.searchNoResults' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'openapi.schemaCatalogLink.title' | 'openapi.schemaCatalogLink.copyButtonTooltip' | 'openapi.schemaCatalogLink.copiedTooltip' | 'openapi.mcp.title' | 'openapi.mcp.endpoint' | 'openapi.mcp.tools' | 'openapi.mcp.protocolVersion' | 'openapi.mcp.capabilities' | 'openapi.mcp.experimentalCapabilities' | 'openapi.mcp.inputSchema' | 'openapi.mcp.inputExample' | 'openapi.mcp.outputSchema' | 'openapi.mcp.outputExample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.requiredScopes' | 'graphql.viewSecurityDetails' | 'graphql.objectScopes' | 'graphql.fieldScopes' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description' | 'page.skipToContent.label';
|
|
2
|
+
export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'aiAssistant.trigger' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.catalogs.dataSchema.title' | 'catalog.catalogs.dataSchema.description' | 'catalog.catalogs.dataSchema.switcherLabel' | 'catalog.catalogs.apiOperation.title' | 'catalog.catalogs.apiOperation.description' | 'catalog.catalogs.apiOperation.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.schema.title' | 'catalog.entity.properties.apiDescription.title' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeToSingleColumn' | 'sidebar.actions.changeToTwoColumns' | 'sidebar.actions.singleColumn' | 'sidebar.actions.twoColumns' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'codeSnippet.expand.tooltipText' | 'codeSnippet.collapse.tooltipText' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'page.actions.copyButtonText' | 'page.actions.copyTitle' | 'page.actions.copyDescription' | 'page.actions.viewAsMdTitle' | 'page.actions.viewAsMdButtonText' | 'page.actions.viewAsMdDescription' | 'page.actions.chatGptTitle' | 'page.actions.chatGptButtonText' | 'page.actions.chatGptDescription' | 'page.actions.claudeTitle' | 'page.actions.claudeButtonText' | 'page.actions.claudeDescription' | 'page.actions.cursorMcpButtonText' | 'page.actions.cursorMcpTitle' | 'page.actions.cursorMcpDescription' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.discriminator.searchPlaceholder' | 'openapi.discriminator.searchNoResults' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'openapi.schemaCatalogLink.title' | 'openapi.schemaCatalogLink.copyButtonTooltip' | 'openapi.schemaCatalogLink.copiedTooltip' | 'openapi.mcp.title' | 'openapi.mcp.endpoint' | 'openapi.mcp.tools' | 'openapi.mcp.protocolVersion' | 'openapi.mcp.capabilities' | 'openapi.mcp.experimentalCapabilities' | 'openapi.mcp.inputSchema' | 'openapi.mcp.inputExample' | 'openapi.mcp.outputSchema' | 'openapi.mcp.outputExample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.requiredScopes' | 'graphql.viewSecurityDetails' | 'graphql.objectScopes' | 'graphql.fieldScopes' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description' | 'page.skipToContent.label';
|
|
3
3
|
export type Locale = {
|
|
4
4
|
code: string;
|
|
5
5
|
name: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconProps } from '../../icons/types';
|
|
3
|
+
export declare const RedoclyIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
|
|
4
|
+
'data-component-name': string;
|
|
5
|
+
} & {
|
|
6
|
+
color?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.SVGProps<SVGSVGElement>, "data-component-name">;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RedoclyIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const utils_1 = require("../../core/utils");
|
|
10
|
+
const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
11
|
+
react_1.default.createElement("g", { clipPath: "url(#clip0_4053_1165)" },
|
|
12
|
+
react_1.default.createElement("path", { d: "M14.625 6.19973C14.625 8.69176 12.6173 10.712 10.1406 10.712H2.8125V10.2717C5.04753 10.2717 6.85938 8.44864 6.85938 6.19973C6.85938 3.95082 5.04753 2.12772 2.8125 2.12772V1.6875H10.1406C12.6173 1.6875 14.625 3.70769 14.625 6.19973Z", fill: "#2467F2" }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M14.625 16.875C14.625 14.383 12.6173 12.3628 10.1406 12.3628H2.8125V12.803C5.04753 12.803 6.85938 14.6261 6.85938 16.875H14.625Z", fill: "#2467F2" })),
|
|
14
|
+
react_1.default.createElement("defs", null,
|
|
15
|
+
react_1.default.createElement("clipPath", { id: "clip0_4053_1165" },
|
|
16
|
+
react_1.default.createElement("rect", { width: "18", height: "18", fill: "white" })))));
|
|
17
|
+
exports.RedoclyIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
|
|
18
|
+
'data-component-name': 'icons/RedoclyIcon/RedoclyIcon',
|
|
19
|
+
})) `
|
|
20
|
+
path {
|
|
21
|
+
fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
height: ${({ size }) => size || '16px'};
|
|
25
|
+
width: ${({ size }) => size || '16px'};
|
|
26
|
+
`;
|
|
27
|
+
//# sourceMappingURL=RedoclyIcon.js.map
|
package/lib/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './components/Buttons/CopyButton';
|
|
|
29
29
|
export * from './components/Buttons/EditPageButton';
|
|
30
30
|
export * from './components/Buttons/EmailButton';
|
|
31
31
|
export * from './components/Buttons/NewTabButton';
|
|
32
|
+
export * from './components/Buttons/AIAssistantButton';
|
|
32
33
|
export * from './components/Markdown/Markdown';
|
|
33
34
|
export * from './components/Markdown/styles/baseTable';
|
|
34
35
|
export * from './components/Markdown/styles/headingAnchor';
|
|
@@ -256,6 +257,7 @@ export * from './icons/RabbitMQIcon/RabbitMQIcon';
|
|
|
256
257
|
export * from './icons/CurveAutoColonIcon/CurveAutoColonIcon';
|
|
257
258
|
export * from './icons/AiStarsIcon/AiStarsIcon';
|
|
258
259
|
export * from './icons/AiStarsGradientIcon/AiStarsGradientIcon';
|
|
260
|
+
export * from './icons/RedoclyIcon/RedoclyIcon';
|
|
259
261
|
export * from './icons/WorkflowHierarchyIcon/WorkflowHierarchyIcon';
|
|
260
262
|
export * from './icons/GenericIcon/GenericIcon';
|
|
261
263
|
export * from './icons/ShareIcon/ShareIcon';
|
package/lib/index.js
CHANGED
|
@@ -60,6 +60,7 @@ __exportStar(require("./components/Buttons/CopyButton"), exports);
|
|
|
60
60
|
__exportStar(require("./components/Buttons/EditPageButton"), exports);
|
|
61
61
|
__exportStar(require("./components/Buttons/EmailButton"), exports);
|
|
62
62
|
__exportStar(require("./components/Buttons/NewTabButton"), exports);
|
|
63
|
+
__exportStar(require("./components/Buttons/AIAssistantButton"), exports);
|
|
63
64
|
/* Markdown */
|
|
64
65
|
__exportStar(require("./components/Markdown/Markdown"), exports);
|
|
65
66
|
__exportStar(require("./components/Markdown/styles/baseTable"), exports);
|
|
@@ -309,6 +310,7 @@ __exportStar(require("./icons/RabbitMQIcon/RabbitMQIcon"), exports);
|
|
|
309
310
|
__exportStar(require("./icons/CurveAutoColonIcon/CurveAutoColonIcon"), exports);
|
|
310
311
|
__exportStar(require("./icons/AiStarsIcon/AiStarsIcon"), exports);
|
|
311
312
|
__exportStar(require("./icons/AiStarsGradientIcon/AiStarsGradientIcon"), exports);
|
|
313
|
+
__exportStar(require("./icons/RedoclyIcon/RedoclyIcon"), exports);
|
|
312
314
|
__exportStar(require("./icons/WorkflowHierarchyIcon/WorkflowHierarchyIcon"), exports);
|
|
313
315
|
__exportStar(require("./icons/GenericIcon/GenericIcon"), exports);
|
|
314
316
|
__exportStar(require("./icons/ShareIcon/ShareIcon"), exports);
|
|
@@ -8,11 +8,16 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const Navbar_1 = require("../components/Navbar/Navbar");
|
|
9
9
|
const Footer_1 = require("../components/Footer/Footer");
|
|
10
10
|
const SkipContent_1 = require("../components/SkipContent/SkipContent");
|
|
11
|
+
const AIAssistantButton_1 = require("../components/Buttons/AIAssistantButton");
|
|
12
|
+
const hooks_1 = require("../core/hooks");
|
|
11
13
|
function RootLayout({ children }) {
|
|
14
|
+
const { useSearch } = (0, hooks_1.useThemeHooks)();
|
|
15
|
+
const { askAi } = useSearch();
|
|
12
16
|
return (react_1.default.createElement("div", { "data-component-name": "layouts/RootLayout" },
|
|
13
17
|
react_1.default.createElement(SkipContent_1.SkipContent, null),
|
|
14
18
|
react_1.default.createElement(Navbar_1.Navbar, null),
|
|
15
19
|
children,
|
|
16
|
-
react_1.default.createElement(Footer_1.Footer, null)
|
|
20
|
+
react_1.default.createElement(Footer_1.Footer, null),
|
|
21
|
+
askAi && react_1.default.createElement(AIAssistantButton_1.AIAssistantButton, null)));
|
|
17
22
|
}
|
|
18
23
|
//# sourceMappingURL=RootLayout.js.map
|
package/package.json
CHANGED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
import type { BaseSyntheticEvent, PropsWithChildren, ReactNode, JSX } from 'react';
|
|
5
|
+
import type { AccordionHeaderProps } from '@redocly/theme/components/Accordion/AccordionHeader';
|
|
6
|
+
|
|
7
|
+
import { AccordionBody } from '@redocly/theme/components/Accordion/AccordionBody';
|
|
8
|
+
import { AccordionHeader } from '@redocly/theme/components/Accordion/AccordionHeader';
|
|
9
|
+
import { AccordionTitle } from '@redocly/theme/components/Accordion/AccordionTitle';
|
|
10
|
+
import { ChevronDownIcon } from '@redocly/theme/icons/ChevronDownIcon/ChevronDownIcon';
|
|
11
|
+
import { ChevronRightIcon } from '@redocly/theme/icons/ChevronRightIcon/ChevronRightIcon';
|
|
12
|
+
|
|
13
|
+
export type AccordionProps = {
|
|
14
|
+
expanded?: boolean;
|
|
15
|
+
isExpandable?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
renderChildrenHidden?: boolean;
|
|
18
|
+
header?: ReactNode | ((props: AccordionHeaderProps) => ReactNode);
|
|
19
|
+
onToggle?: (expanded: boolean) => void;
|
|
20
|
+
dataTestId?: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export function Accordion({
|
|
24
|
+
expanded = true,
|
|
25
|
+
isExpandable = true,
|
|
26
|
+
renderChildrenHidden = false,
|
|
27
|
+
header,
|
|
28
|
+
className,
|
|
29
|
+
children,
|
|
30
|
+
onToggle,
|
|
31
|
+
dataTestId,
|
|
32
|
+
}: PropsWithChildren<AccordionProps>): JSX.Element {
|
|
33
|
+
const [isExpanded, setExpanded] = useState(expanded);
|
|
34
|
+
const [animate, setAnimate] = useState(false);
|
|
35
|
+
|
|
36
|
+
const toggle = ({ target }: BaseSyntheticEvent): void => {
|
|
37
|
+
if (target instanceof HTMLAnchorElement || !isExpandable) return;
|
|
38
|
+
setAnimate(true);
|
|
39
|
+
setExpanded(!isExpanded);
|
|
40
|
+
onToggle?.(!isExpanded);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
useEffect(() => setExpanded(expanded), [expanded]);
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<AccordionWrapper
|
|
47
|
+
className={className}
|
|
48
|
+
data-testid={dataTestId}
|
|
49
|
+
data-component-name="Accordion/Accordion"
|
|
50
|
+
>
|
|
51
|
+
{header &&
|
|
52
|
+
(typeof header === 'function' ? (
|
|
53
|
+
header({ expanded: isExpanded })
|
|
54
|
+
) : (
|
|
55
|
+
<AccordionHeader
|
|
56
|
+
data-testid="accordion-header"
|
|
57
|
+
onClick={toggle}
|
|
58
|
+
expanded={isExpanded}
|
|
59
|
+
isExpandable={isExpandable}
|
|
60
|
+
>
|
|
61
|
+
<HeaderContent>
|
|
62
|
+
<AccordionTitle data-testid="title">{header}</AccordionTitle>
|
|
63
|
+
{isExpandable &&
|
|
64
|
+
(isExpanded ? (
|
|
65
|
+
<ChevronDownIcon color="--accordion-chevron-icon-color" />
|
|
66
|
+
) : (
|
|
67
|
+
<ChevronRightIcon color="--accordion-chevron-icon-color" />
|
|
68
|
+
))}
|
|
69
|
+
</HeaderContent>
|
|
70
|
+
</AccordionHeader>
|
|
71
|
+
))}
|
|
72
|
+
|
|
73
|
+
{(isExpanded || renderChildrenHidden) && (
|
|
74
|
+
<AccordionBody data-testid="accordion-body" hidden={!isExpanded} animate={animate}>
|
|
75
|
+
{children}
|
|
76
|
+
</AccordionBody>
|
|
77
|
+
)}
|
|
78
|
+
</AccordionWrapper>
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const AccordionWrapper = styled.div`
|
|
83
|
+
background-color: transparent;
|
|
84
|
+
font-family: var(--accordion-font-family);
|
|
85
|
+
font-size: var(--accordion-font-size);
|
|
86
|
+
font-weight: var(--accordion-font-weight);
|
|
87
|
+
border-radius: var(--accordion-border-radius);
|
|
88
|
+
border: var(--accordion-border);
|
|
89
|
+
|
|
90
|
+
&:not(:last-child) {
|
|
91
|
+
margin-bottom: var(--accordion-gap);
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
const HeaderContent = styled.div`
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
width: 100%;
|
|
99
|
+
gap: var(--spacing-xs);
|
|
100
|
+
`;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled, { keyframes, css } from 'styled-components';
|
|
3
|
+
|
|
4
|
+
import type { JSX, ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
type AccordionBodyWrapperProps = {
|
|
7
|
+
$animate?: boolean;
|
|
8
|
+
$hidden?: boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type AccordionBodyProps = {
|
|
12
|
+
animate?: boolean;
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export function AccordionBody({
|
|
19
|
+
animate,
|
|
20
|
+
hidden,
|
|
21
|
+
children,
|
|
22
|
+
className,
|
|
23
|
+
}: AccordionBodyProps): JSX.Element {
|
|
24
|
+
return (
|
|
25
|
+
<AccordionBodyWrapper
|
|
26
|
+
className={className}
|
|
27
|
+
$animate={animate}
|
|
28
|
+
$hidden={hidden}
|
|
29
|
+
data-component-name="Accordion/AccordionBody"
|
|
30
|
+
>
|
|
31
|
+
{children}
|
|
32
|
+
</AccordionBodyWrapper>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const showAccordion = keyframes`
|
|
37
|
+
0% {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
transform: translateY(-5px);
|
|
40
|
+
}
|
|
41
|
+
100% {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
transform: translateY(0);
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
const showAccordionAnimation = css`
|
|
48
|
+
animation: ${showAccordion} 0.15s ease-out;
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
const AccordionBodyWrapper = styled.div<AccordionBodyWrapperProps>`
|
|
52
|
+
${({ $animate }) => $animate && showAccordionAnimation};
|
|
53
|
+
${({ $hidden }) => $hidden && 'visibility: hidden'};
|
|
54
|
+
|
|
55
|
+
background-color: var(--accordion-body-bg-color);
|
|
56
|
+
|
|
57
|
+
font-family: var(--accordion-body-font-family);
|
|
58
|
+
font-size: var(--accordion-body-font-size);
|
|
59
|
+
font-weight: var(--accordion-body-font-weight);
|
|
60
|
+
border: var(--accordion-body-border);
|
|
61
|
+
padding: var(--accordion-body-padding);
|
|
62
|
+
color: var(--accordion-body-text-color);
|
|
63
|
+
|
|
64
|
+
border-radius: var(--accordion-border-radius);
|
|
65
|
+
`;
|