@redocly/theme 0.64.0-next.2 → 0.64.0-next.4

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.
Files changed (162) hide show
  1. package/lib/components/Admonition/Admonition.d.ts +1 -1
  2. package/lib/components/Admonition/Admonition.js +2 -0
  3. package/lib/components/Admonition/variables.dark.js +3 -0
  4. package/lib/components/Admonition/variables.js +13 -0
  5. package/lib/components/Button/variables.dark.js +2 -2
  6. package/lib/components/Button/variables.js +3 -3
  7. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.js +3 -1
  8. package/lib/components/Catalog/CatalogTags.js +5 -2
  9. package/lib/components/Filter/variables.js +1 -1
  10. package/lib/components/LanguagePicker/LanguagePicker.js +5 -6
  11. package/lib/components/Link/Link.js +2 -2
  12. package/lib/components/Menu/MenuItem.js +1 -0
  13. package/lib/components/Menu/variables.dark.js +2 -0
  14. package/lib/components/Menu/variables.js +4 -3
  15. package/lib/components/Search/SearchAiMessage.js +9 -6
  16. package/lib/components/SvgViewer/SvgViewer.js +0 -3
  17. package/lib/components/SvgViewer/variables.js +1 -1
  18. package/lib/components/Switch/variables.dark.js +2 -2
  19. package/lib/components/Switch/variables.js +1 -1
  20. package/lib/components/TableOfContent/TableOfContent.js +1 -0
  21. package/lib/components/TableOfContent/variables.js +3 -2
  22. package/lib/components/Toast/Toast.d.ts +14 -0
  23. package/lib/components/Toast/Toast.js +239 -0
  24. package/lib/components/Toast/variables.d.ts +1 -0
  25. package/lib/components/Toast/variables.js +64 -0
  26. package/lib/components/Tooltip/JsTooltip.js +1 -1
  27. package/lib/core/constants/search.d.ts +3 -3
  28. package/lib/core/constants/toast.d.ts +1 -0
  29. package/lib/core/constants/toast.js +5 -0
  30. package/lib/core/contexts/MarkdownLinkContext.d.ts +5 -0
  31. package/lib/core/contexts/MarkdownLinkContext.js +6 -0
  32. package/lib/core/contexts/Toast/ToastContext.d.ts +2 -0
  33. package/lib/core/contexts/Toast/ToastContext.js +6 -0
  34. package/lib/core/contexts/Toast/ToastProvider.d.ts +3 -0
  35. package/lib/core/contexts/Toast/ToastProvider.js +156 -0
  36. package/lib/core/contexts/index.d.ts +3 -0
  37. package/lib/core/contexts/index.js +3 -0
  38. package/lib/core/hooks/index.d.ts +2 -0
  39. package/lib/core/hooks/index.js +2 -0
  40. package/lib/core/hooks/use-toast-logic.d.ts +18 -0
  41. package/lib/core/hooks/use-toast-logic.js +141 -0
  42. package/lib/core/hooks/use-toast.d.ts +11 -0
  43. package/lib/core/hooks/use-toast.js +17 -0
  44. package/lib/core/styles/dark.js +33 -40
  45. package/lib/core/styles/global.js +56 -54
  46. package/lib/core/styles/palette.dark.js +15 -30
  47. package/lib/core/styles/palette.js +130 -134
  48. package/lib/core/types/hooks.d.ts +2 -9
  49. package/lib/core/types/index.d.ts +1 -0
  50. package/lib/core/types/l10n.d.ts +1 -1
  51. package/lib/core/types/search.d.ts +2 -1
  52. package/lib/core/types/toast.d.ts +23 -0
  53. package/lib/core/types/toast.js +3 -0
  54. package/lib/core/utils/get-auto-dismiss-duration.d.ts +2 -0
  55. package/lib/core/utils/get-auto-dismiss-duration.js +15 -0
  56. package/lib/core/utils/index.d.ts +1 -0
  57. package/lib/core/utils/index.js +1 -0
  58. package/lib/icons/CheckboxIcon/CheckboxIcon.js +6 -4
  59. package/lib/icons/CheckboxIcon/variables.dark.js +2 -1
  60. package/lib/icons/CheckboxIcon/variables.js +3 -3
  61. package/lib/icons/IdeaIcon/IdeaIcon.d.ts +9 -0
  62. package/lib/icons/IdeaIcon/IdeaIcon.js +24 -0
  63. package/lib/icons/NewChatIcon/NewChatIcon.d.ts +11 -0
  64. package/lib/icons/NewChatIcon/NewChatIcon.js +25 -0
  65. package/lib/index.d.ts +4 -0
  66. package/lib/index.js +4 -0
  67. package/lib/markdoc/attributes/diagram-file.d.ts +5 -0
  68. package/lib/markdoc/attributes/diagram-file.js +16 -0
  69. package/lib/markdoc/components/Diagram/Diagram.d.ts +15 -0
  70. package/lib/markdoc/components/Diagram/Diagram.js +135 -0
  71. package/lib/markdoc/components/Diagram/variables.d.ts +1 -0
  72. package/lib/markdoc/components/Diagram/variables.js +15 -0
  73. package/lib/markdoc/components/MarkdownLink/MarkdownLink.d.ts +7 -0
  74. package/lib/markdoc/components/MarkdownLink/MarkdownLink.js +61 -0
  75. package/lib/markdoc/components/Tabs/variables.js +3 -3
  76. package/lib/markdoc/components/default.d.ts +2 -2
  77. package/lib/markdoc/components/default.js +2 -2
  78. package/lib/markdoc/default.d.ts +7 -0
  79. package/lib/markdoc/default.js +3 -0
  80. package/lib/markdoc/tags/admonition.js +1 -1
  81. package/lib/markdoc/tags/diagram.d.ts +2 -0
  82. package/lib/markdoc/tags/diagram.js +63 -0
  83. package/package.json +3 -3
  84. package/src/components/Admonition/Admonition.tsx +3 -1
  85. package/src/components/Admonition/variables.dark.ts +3 -0
  86. package/src/components/Admonition/variables.ts +13 -0
  87. package/src/components/Button/variables.dark.ts +2 -2
  88. package/src/components/Button/variables.ts +3 -3
  89. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.tsx +3 -1
  90. package/src/components/Catalog/CatalogTags.tsx +6 -1
  91. package/src/components/Filter/variables.ts +1 -1
  92. package/src/components/LanguagePicker/LanguagePicker.tsx +5 -5
  93. package/src/components/Link/Link.tsx +1 -1
  94. package/src/components/Menu/MenuItem.tsx +5 -1
  95. package/src/components/Menu/variables.dark.ts +2 -0
  96. package/src/components/Menu/variables.ts +4 -3
  97. package/src/components/Search/SearchAiMessage.tsx +15 -10
  98. package/src/components/SvgViewer/SvgViewer.tsx +0 -4
  99. package/src/components/SvgViewer/variables.ts +1 -1
  100. package/src/components/Switch/variables.dark.ts +2 -2
  101. package/src/components/Switch/variables.ts +1 -1
  102. package/src/components/TableOfContent/TableOfContent.tsx +1 -0
  103. package/src/components/TableOfContent/variables.ts +3 -2
  104. package/src/components/Toast/Toast.tsx +289 -0
  105. package/src/components/Toast/variables.ts +61 -0
  106. package/src/components/Tooltip/JsTooltip.tsx +1 -1
  107. package/src/core/constants/search.ts +2 -3
  108. package/src/core/constants/toast.ts +1 -0
  109. package/src/core/contexts/MarkdownLinkContext.tsx +9 -0
  110. package/src/core/contexts/Toast/ToastContext.tsx +5 -0
  111. package/src/core/contexts/Toast/ToastProvider.tsx +206 -0
  112. package/src/core/contexts/index.ts +3 -0
  113. package/src/core/hooks/index.ts +2 -0
  114. package/src/core/hooks/use-toast-logic.ts +203 -0
  115. package/src/core/hooks/use-toast.ts +47 -0
  116. package/src/core/styles/dark.ts +5 -12
  117. package/src/core/styles/global.ts +28 -26
  118. package/src/core/styles/palette.dark.ts +15 -30
  119. package/src/core/styles/palette.ts +130 -134
  120. package/src/core/types/hooks.ts +2 -7
  121. package/src/core/types/index.ts +1 -0
  122. package/src/core/types/l10n.ts +9 -9
  123. package/src/core/types/search.ts +2 -1
  124. package/src/core/types/toast.ts +28 -0
  125. package/src/core/utils/get-auto-dismiss-duration.ts +20 -0
  126. package/src/core/utils/index.ts +1 -0
  127. package/src/icons/CheckboxIcon/CheckboxIcon.tsx +26 -17
  128. package/src/icons/CheckboxIcon/variables.dark.ts +2 -1
  129. package/src/icons/CheckboxIcon/variables.ts +3 -3
  130. package/src/icons/IdeaIcon/IdeaIcon.tsx +32 -0
  131. package/src/icons/NewChatIcon/NewChatIcon.tsx +39 -0
  132. package/src/index.ts +4 -0
  133. package/src/markdoc/attributes/diagram-file.ts +9 -0
  134. package/src/markdoc/components/Diagram/Diagram.tsx +173 -0
  135. package/src/markdoc/components/Diagram/variables.ts +12 -0
  136. package/src/markdoc/components/MarkdownLink/MarkdownLink.tsx +21 -0
  137. package/src/markdoc/components/Tabs/variables.ts +3 -3
  138. package/src/markdoc/components/default.ts +2 -2
  139. package/src/markdoc/default.ts +3 -0
  140. package/src/markdoc/tags/admonition.ts +1 -1
  141. package/src/markdoc/tags/diagram.ts +73 -0
  142. package/lib/components/SvgViewer/variables.dark.d.ts +0 -1
  143. package/lib/components/SvgViewer/variables.dark.js +0 -8
  144. package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.d.ts +0 -7
  145. package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.js +0 -95
  146. package/lib/markdoc/components/ExcalidrawDiagram/variables.d.ts +0 -1
  147. package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.d.ts +0 -1
  148. package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.js +0 -8
  149. package/lib/markdoc/components/ExcalidrawDiagram/variables.js +0 -15
  150. package/lib/markdoc/components/Mermaid/Mermaid.d.ts +0 -9
  151. package/lib/markdoc/components/Mermaid/Mermaid.js +0 -96
  152. package/lib/markdoc/components/Mermaid/variables.d.ts +0 -1
  153. package/lib/markdoc/components/Mermaid/variables.dark.d.ts +0 -1
  154. package/lib/markdoc/components/Mermaid/variables.dark.js +0 -8
  155. package/lib/markdoc/components/Mermaid/variables.js +0 -16
  156. package/src/components/SvgViewer/variables.dark.ts +0 -5
  157. package/src/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.tsx +0 -85
  158. package/src/markdoc/components/ExcalidrawDiagram/variables.dark.ts +0 -5
  159. package/src/markdoc/components/ExcalidrawDiagram/variables.ts +0 -12
  160. package/src/markdoc/components/Mermaid/Mermaid.tsx +0 -95
  161. package/src/markdoc/components/Mermaid/variables.dark.ts +0 -5
  162. package/src/markdoc/components/Mermaid/variables.ts +0 -13
@@ -30,22 +30,22 @@ const variables_25 = require("../../components/Product/variables");
30
30
  const variables_26 = require("../../components/Markdown/variables");
31
31
  const variables_27 = require("../../components/Banner/variables");
32
32
  const variables_28 = require("../../markdoc/components/Tabs/variables");
33
- const variables_29 = require("../../markdoc/components/Mermaid/variables");
34
- const variables_30 = require("../../markdoc/components/ExcalidrawDiagram/variables");
35
- const variables_31 = require("../../components/LastUpdated/variables");
36
- const variables_32 = require("../../components/Logo/variables");
37
- const variables_33 = require("../../components/StatusCode/variables");
38
- const variables_34 = require("../../components/Segmented/variables");
39
- const variables_35 = require("../../components/UserMenu/variables");
40
- const variables_36 = require("../../components/Tags/variables");
41
- const variables_37 = require("../../components/VersionPicker/variables");
42
- const variables_38 = require("../../components/DatePicker/variables");
43
- const variables_39 = require("../../components/Switch/variables");
44
- const variables_40 = require("../../markdoc/components/Cards/variables");
45
- const variables_41 = require("../../markdoc/components/CodeWalkthrough/variables");
46
- const variables_42 = require("../../components/SkipContent/variables");
47
- const variables_43 = require("../../components/PageActions/variables");
48
- const variables_44 = require("../../components/SvgViewer/variables");
33
+ const variables_29 = require("../../markdoc/components/Diagram/variables");
34
+ const variables_30 = require("../../components/LastUpdated/variables");
35
+ const variables_31 = require("../../components/Logo/variables");
36
+ const variables_32 = require("../../components/StatusCode/variables");
37
+ const variables_33 = require("../../components/Segmented/variables");
38
+ const variables_34 = require("../../components/UserMenu/variables");
39
+ const variables_35 = require("../../components/Tags/variables");
40
+ const variables_36 = require("../../components/VersionPicker/variables");
41
+ const variables_37 = require("../../components/DatePicker/variables");
42
+ const variables_38 = require("../../components/Switch/variables");
43
+ const variables_39 = require("../../markdoc/components/Cards/variables");
44
+ const variables_40 = require("../../markdoc/components/CodeWalkthrough/variables");
45
+ const variables_41 = require("../../components/SkipContent/variables");
46
+ const variables_42 = require("../../components/PageActions/variables");
47
+ const variables_43 = require("../../components/SvgViewer/variables");
48
+ const variables_44 = require("../../components/Toast/variables");
49
49
  const palette_1 = require("./palette");
50
50
  const dark_1 = require("./dark");
51
51
  const themeColors = (0, styled_components_1.css) `
@@ -227,23 +227,6 @@ const themeColors = (0, styled_components_1.css) `
227
227
  --color-white: #ffffff;
228
228
  --color-static-white: #ffffff;
229
229
 
230
- --color-primary-bg: var(--color-brand-1);
231
- --color-primary-bg-hover: var(--color-brand-2);
232
- --color-primary-border: var(--color-brand-3);
233
- --color-primary-border-hover: var(--color-brand-4);
234
- --color-primary-hover: var(--color-brand-8);
235
- --color-primary-base: var(--color-brand-6);
236
- --color-primary-active: var(--color-brand-7);
237
- --color-primary-text-hover: var(--color-brand-9);
238
- --color-primary-text: var(--color-brand-8);
239
- --color-primary-text-active: var(--color-brand-7);
240
- --color-primary-text-on-color: var(--text-color-on-color);
241
-
242
- --color-brand-pink-subtle-bg: var(--color-brand-1);
243
- --color-brand-pink-subtle-bg-hover: var(--color-brand-2);
244
- --color-brand-pink-subtle-border: var(--color-brand-3);
245
- --color-brand-pink-subtle-border-hover: var(--color-brand-4);
246
-
247
230
  --color-success-bg: var(--color-green-1);
248
231
  --color-success-bg-hover: var(--color-green-2);
249
232
  --color-success-border: var(--color-green-3);
@@ -288,6 +271,18 @@ const themeColors = (0, styled_components_1.css) `
288
271
  --color-info-text: var(--color-blue-9);
289
272
  --color-info-text-active: var(--color-blue-10);
290
273
 
274
+ --color-primary-bg: var(--color-brand-1); // @presenter Color
275
+ --color-primary-bg-hover: var(--color-brand-2); // @presenter Color
276
+ --color-primary-border: var(--color-brand-3); // @presenter Color
277
+ --color-primary-border-hover: var(--color-brand-4); // @presenter Color
278
+ --color-primary-hover: var(--color-brand-8); // @presenter Color
279
+ --color-primary-base: var(--color-brand-6); // @presenter Color
280
+ --color-primary-active: var(--color-brand-7); // @presenter Color
281
+ --color-primary-text-hover: var(--color-brand-9); // @presenter Color
282
+ --color-primary-text: var(--color-brand-8); // @presenter Color
283
+ --color-primary-text-active: var(--color-brand-7); // @presenter Color
284
+ --color-primary-text-on-color: var(--text-color-on-color); // @presenter Color
285
+
291
286
  /**
292
287
  * @tokens Elevation Colors
293
288
  * @presenter Color
@@ -763,24 +758,24 @@ const apiReferenceDocs = (0, styled_components_1.css) `
763
758
  --schema-chevron-color: var(--text-color-secondary); // @presenter Color
764
759
  --schema-chevron-size: 9px;
765
760
 
766
- --schema-property-deep-link-icon-color: var(--color-primary-base); // @presenter Color
761
+ --schema-property-deep-link-icon-color: var(--color-primary-base, var(--color-blueberry-6)); // @presenter Color
767
762
  --schema-property-deep-link-icon: none;
768
763
 
769
764
  /**
770
765
  * @tokens API Reference Other
771
766
  */
772
767
 
773
- --loading-spinner-color: var(--color-primary-base); // @presenter Color
768
+ --loading-spinner-color: var(--color-primary-base, var(--color-blueberry-6)); // @presenter Color
774
769
  --linear-progress-color: var(--color-info-base); // @presenter Color
775
770
  --linear-progress-bg-color: var(--color-info-bg); // @presenter Color
776
771
 
777
- --fab-bg-color: var(--color-primary-base); // @presenter Color
772
+ --fab-bg-color: var(--color-primary-base, var(--color-blueberry-6)); // @presenter Color
778
773
  --fab-box-shadow: var(--bg-raised-shadow); // @presenter Shadow
779
774
 
780
- --fab-bg-color-hover: var(--color-primary-base); // @presenter Color
775
+ --fab-bg-color-hover: var(--color-primary-base, var(--color-blueberry-6)); // @presenter Color
781
776
  --fab-box-shadow-hover: var(--bg-raised-shadow); // @presenter Shadow
782
777
 
783
- --fab-bg-color-active: var(--color-primary-base); // @presenter Color
778
+ --fab-bg-color-active: var(--color-primary-base, var(--color-blueberry-6)); // @presenter Color
784
779
  --fab-box-shadow-active: var(--bg-raised-shadow); // @presenter Shadow
785
780
 
786
781
  --fab-icon-color: var(--navbar-text-color); // @presenter Color
@@ -1243,6 +1238,13 @@ const replay = (0, styled_components_1.css) `
1243
1238
  --replay-ai-user-message-gradient: linear-gradient(73.52deg, rgba(113, 94, 254, 0.08) 10.13%, rgba(255, 92, 220, 0.08) 87.29%);
1244
1239
 
1245
1240
  --replay-ai-send-button-disabled-border: 1px solid #ffffff33;
1241
+
1242
+ --replay-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1243
+ --replay-transition-duration: 300ms;
1244
+
1245
+ @media (prefers-reduced-motion: reduce) {
1246
+ --replay-transition-duration: 0s;
1247
+ }
1246
1248
  // @tokens End
1247
1249
  `;
1248
1250
  exports.styles = (0, styled_components_1.css) `
@@ -1258,28 +1260,27 @@ exports.styles = (0, styled_components_1.css) `
1258
1260
  ${variables_19.button}
1259
1261
  ${variables_20.aiAssistantButton}
1260
1262
  ${variables_20.connectMCPButton}
1261
- ${variables_40.cards}
1263
+ ${variables_39.cards}
1262
1264
  ${variables_8.catalog}
1263
1265
  ${variables_10.catalogClassic}
1264
1266
  ${variables_24.code}
1265
- ${variables_41.codeWalkthrough}
1267
+ ${variables_40.codeWalkthrough}
1266
1268
  ${docsDropdown}
1267
1269
  ${variables_14.dropdown}
1268
1270
  ${error}
1269
1271
  ${variables_9.filter}
1270
1272
  ${variables_18.footer}
1271
1273
  ${headingsTypography}
1272
- ${variables_36.httpTag}
1274
+ ${variables_35.httpTag}
1273
1275
  ${inputs}
1274
1276
  ${variables_1.languagePicker}
1275
- ${variables_31.lastUpdated}
1277
+ ${variables_30.lastUpdated}
1276
1278
  ${links}
1277
1279
  ${loadProgressBar}
1278
- ${variables_32.logo}
1280
+ ${variables_31.logo}
1279
1281
  ${variables_26.markdown}
1280
1282
  ${variables_28.markdownTabs}
1281
- ${variables_29.mermaid}
1282
- ${variables_30.excalidraw}
1283
+ ${variables_29.diagram}
1283
1284
  ${variables_23.menu}
1284
1285
  ${variables_23.mobileMenu}
1285
1286
  ${modal}
@@ -1298,24 +1299,25 @@ exports.styles = (0, styled_components_1.css) `
1298
1299
  ${variables_7.toc}
1299
1300
  ${variables_15.tooltip}
1300
1301
  ${typography}
1301
- ${variables_35.userMenu}
1302
- ${variables_37.versionPicker}
1302
+ ${variables_34.userMenu}
1303
+ ${variables_36.versionPicker}
1303
1304
  ${zIndexDepth}
1304
1305
  ${scorecardColors}
1305
- ${variables_33.statusCode}
1306
+ ${variables_32.statusCode}
1306
1307
  ${tab}
1307
1308
  ${icon}
1308
1309
  ${tree}
1309
- ${variables_34.segmented}
1310
- ${variables_39.switcher}
1310
+ ${variables_33.segmented}
1311
+ ${variables_38.switcher}
1311
1312
  ${variables_16.checkbox}
1312
1313
  ${variables_3.feedback}
1313
1314
  ${variables_2.scorecard}
1314
- ${variables_38.datePicker}
1315
+ ${variables_37.datePicker}
1315
1316
  ${replay}
1316
- ${variables_42.skipContent}
1317
- ${variables_43.pageActions}
1318
- ${variables_44.svgViewer}
1317
+ ${variables_41.skipContent}
1318
+ ${variables_42.pageActions}
1319
+ ${variables_43.svgViewer}
1320
+ ${variables_44.toast}
1319
1321
 
1320
1322
  background-color: var(--bg-color);
1321
1323
  color: var(--text-color-primary);
@@ -4,20 +4,6 @@ exports.activeBrandPaletteDark = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
5
  function brandPaletteDark(palette) {
6
6
  switch (palette) {
7
- case 'default':
8
- return (0, styled_components_1.css) `
9
- --color-brand-1: var(--color-blueberry-1);
10
- --color-brand-2: var(--color-blueberry-2);
11
- --color-brand-3: var(--color-blueberry-3);
12
- --color-brand-4: var(--color-blueberry-4);
13
- --color-brand-5: var(--color-blueberry-5);
14
- --color-brand-6: var(--color-blueberry-6);
15
- --color-brand-7: var(--color-blueberry-7);
16
- --color-brand-8: var(--color-blueberry-8);
17
- --color-brand-9: var(--color-blueberry-9);
18
- --color-brand-10: var(--color-blueberry-10);
19
- --color-brand-11: var(--color-blueberry-11);
20
- `;
21
7
  case 'slate':
22
8
  return (0, styled_components_1.css) `
23
9
  --color-brand-1: #2a2b33;
@@ -191,22 +177,21 @@ function brandPaletteDark(palette) {
191
177
  `;
192
178
  default:
193
179
  return (0, styled_components_1.css) `
194
- --color-brand-1: #232a61;
195
- --color-brand-2: #222d7a;
196
- --color-brand-3: #1e2f93;
197
- --color-brand-4: #2f46b7;
198
- --color-brand-5: #4561db;
199
- --color-brand-6: #5f81ff;
200
- --color-brand-7: #87a3ff;
201
- --color-brand-8: #9fb7ff;
202
- --color-brand-9: #bfd0ff;
203
- --color-brand-10: #dfe8ff;
204
- --color-brand-11: #f0f4ff;
205
- --color-brand-subtle-1: #232a6166;
206
- --color-brand-subtle-2: #222d7a66;
207
- --color-brand-subtle-3: #1e2f9366;
208
- --color-brand-subtle-4: #2f46b766;
209
- --text-color-on-color: #ffffff;
180
+ --button-bg-color-primary-hover-legacy: var(--color-blue-5);
181
+ --button-bg-color-primary-pressed-legacy: var(--color-blue-4);
182
+
183
+ --toc-item-text-color-active-legacy: var(--text-color-primary);
184
+ --toc-item-border-color-active-legacy: var(--border-color-invers);
185
+
186
+ --checkbox-border-color-legacy: var(--border-color-primary);
187
+
188
+ --switch-bg-color-selected-legacy: var(--color-warm-grey-7);
189
+ --switch-border-color-selected-legacy: var(--color-warm-grey-7);
190
+
191
+ --md-tabs-active-tab-bg-color-legacy: var(--bg-color-active);
192
+
193
+ --admonition-default-bg-color-legacy: var(--color-warm-grey-3);
194
+ --admonition-default-border-color-legacy: var(--color-warm-grey-5);
210
195
  `;
211
196
  }
212
197
  }
@@ -4,169 +4,165 @@ exports.activeBrandPaletteLight = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
5
  function brandPaletteLight(palette) {
6
6
  switch (palette) {
7
- case 'default':
8
- return (0, styled_components_1.css) `
9
- --color-brand-1: var(--color-blueberry-1);
10
- --color-brand-2: var(--color-blueberry-2);
11
- --color-brand-3: var(--color-blueberry-3);
12
- --color-brand-4: var(--color-blueberry-4);
13
- --color-brand-5: var(--color-blueberry-5);
14
- --color-brand-6: var(--color-blueberry-6);
15
- --color-brand-7: var(--color-blueberry-7);
16
- --color-brand-8: var(--color-blueberry-8);
17
- --color-brand-9: var(--color-blueberry-9);
18
- --color-brand-10: var(--color-blueberry-10);
19
- --color-brand-11: var(--color-blueberry-11);
20
- `;
21
7
  case 'slate':
22
8
  return (0, styled_components_1.css) `
23
- --color-brand-1: #ededf2;
24
- --color-brand-2: #dcdde5;
25
- --color-brand-3: #c4c6d1;
26
- --color-brand-4: #9b9ca8;
27
- --color-brand-5: #6e6f7a;
28
- --color-brand-6: #1a1c21;
29
- --color-brand-7: #22242b;
30
- --color-brand-8: #2a2b33;
31
- --color-brand-9: #3b3c45;
32
- --color-brand-10: #555761;
33
- --color-brand-11: #6e6f7a;
34
- --text-color-on-color: #ffffff;
9
+ --color-brand-1: #ededf2; // @presenter Color
10
+ --color-brand-2: #dcdde5; // @presenter Color
11
+ --color-brand-3: #c4c6d1; // @presenter Color
12
+ --color-brand-4: #9b9ca8; // @presenter Color
13
+ --color-brand-5: #6e6f7a; // @presenter Color
14
+ --color-brand-6: #1a1c21; // @presenter Color
15
+ --color-brand-7: #22242b; // @presenter Color
16
+ --color-brand-8: #2a2b33; // @presenter Color
17
+ --color-brand-9: #3b3c45; // @presenter Color
18
+ --color-brand-10: #555761; // @presenter Color
19
+ --color-brand-11: #6e6f7a; // @presenter Color
20
+ --text-color-on-color: #ffffff; // @presenter Color
35
21
  `;
36
22
  case 'pink':
37
23
  return (0, styled_components_1.css) `
38
- --color-brand-1: #ffe8f7;
39
- --color-brand-2: #f7bfe2;
40
- --color-brand-3: #ef99cf;
41
- --color-brand-4: #e677bd;
42
- --color-brand-5: #de59ad;
43
- --color-brand-6: #d6409f;
44
- --color-brand-7: #bb3d8d;
45
- --color-brand-8: #a03a7b;
46
- --color-brand-9: #853668;
47
- --color-brand-10: #6a3055;
48
- --color-brand-11: #4f2841;
49
- --text-color-on-color: #ffffff;
24
+ --color-brand-1: #ffe8f7; // @presenter Color
25
+ --color-brand-2: #f7bfe2; // @presenter Color
26
+ --color-brand-3: #ef99cf; // @presenter Color
27
+ --color-brand-4: #e677bd; // @presenter Color
28
+ --color-brand-5: #de59ad; // @presenter Color
29
+ --color-brand-6: #d6409f; // @presenter Color
30
+ --color-brand-7: #bb3d8d; // @presenter Color
31
+ --color-brand-8: #a03a7b; // @presenter Color
32
+ --color-brand-9: #853668; // @presenter Color
33
+ --color-brand-10: #6a3055; // @presenter Color
34
+ --color-brand-11: #4f2841; // @presenter Color
35
+ --text-color-on-color: #ffffff; // @presenter Color
50
36
  `;
51
37
  case 'coral':
52
38
  return (0, styled_components_1.css) `
53
- --color-brand-1: #ffe8ea;
54
- --color-brand-2: #fac5c9;
55
- --color-brand-3: #f5a3aa;
56
- --color-brand-4: #ef858d;
57
- --color-brand-5: #ea6a75;
58
- --color-brand-6: #e5535f;
59
- --color-brand-7: #c74b55;
60
- --color-brand-8: #a9434c;
61
- --color-brand-9: #8b3c42;
62
- --color-brand-10: #6d3338;
63
- --color-brand-11: #4f282b;
64
- --text-color-on-color: #ffffff;
39
+ --color-brand-1: #ffe8ea; // @presenter Color
40
+ --color-brand-2: #fac5c9; // @presenter Color
41
+ --color-brand-3: #f5a3aa; // @presenter Color
42
+ --color-brand-4: #ef858d; // @presenter Color
43
+ --color-brand-5: #ea6a75; // @presenter Color
44
+ --color-brand-6: #e5535f; // @presenter Color
45
+ --color-brand-7: #c74b55; // @presenter Color
46
+ --color-brand-8: #a9434c; // @presenter Color
47
+ --color-brand-9: #8b3c42; // @presenter Color
48
+ --color-brand-10: #6d3338; // @presenter Color
49
+ --color-brand-11: #4f282b; // @presenter Color
50
+ --text-color-on-color: #ffffff; // @presenter Color
65
51
  `;
66
52
  case 'amber':
67
53
  return (0, styled_components_1.css) `
68
- --color-brand-1: #fff4e8;
69
- --color-brand-2: #feddba;
70
- --color-brand-3: #fdc78c;
71
- --color-brand-4: #fcb261;
72
- --color-brand-5: #fb9f3a;
73
- --color-brand-6: #fa8d15;
74
- --color-brand-7: #d88121;
75
- --color-brand-8: #b6732a;
76
- --color-brand-9: #93632f;
77
- --color-brand-10: #71512e;
78
- --color-brand-11: #4f3c28;
79
- --text-color-on-color: #ffffff;
54
+ --color-brand-1: #fff4e8; // @presenter Color
55
+ --color-brand-2: #feddba; // @presenter Color
56
+ --color-brand-3: #fdc78c; // @presenter Color
57
+ --color-brand-4: #fcb261; // @presenter Color
58
+ --color-brand-5: #fb9f3a; // @presenter Color
59
+ --color-brand-6: #fa8d15; // @presenter Color
60
+ --color-brand-7: #d88121; // @presenter Color
61
+ --color-brand-8: #b6732a; // @presenter Color
62
+ --color-brand-9: #93632f; // @presenter Color
63
+ --color-brand-10: #71512e; // @presenter Color
64
+ --color-brand-11: #4f3c28; // @presenter Color
65
+ --text-color-on-color: #ffffff; // @presenter Color
80
66
  `;
81
67
  case 'jade':
82
68
  return (0, styled_components_1.css) `
83
- --color-brand-1: #e8fff9;
84
- --color-brand-2: #b5edde;
85
- --color-brand-3: #88dac4;
86
- --color-brand-4: #61c8ad;
87
- --color-brand-5: #42b597;
88
- --color-brand-6: #29a383;
89
- --color-brand-7: #2a9277;
90
- --color-brand-8: #2b816b;
91
- --color-brand-9: #2b715e;
92
- --color-brand-10: #2a6052;
93
- --color-brand-11: #284f45;
94
- --text-color-on-color: #ffffff;
69
+ --color-brand-1: #e8fff9; // @presenter Color
70
+ --color-brand-2: #b5edde; // @presenter Color
71
+ --color-brand-3: #88dac4; // @presenter Color
72
+ --color-brand-4: #61c8ad; // @presenter Color
73
+ --color-brand-5: #42b597; // @presenter Color
74
+ --color-brand-6: #29a383; // @presenter Color
75
+ --color-brand-7: #2a9277; // @presenter Color
76
+ --color-brand-8: #2b816b; // @presenter Color
77
+ --color-brand-9: #2b715e; // @presenter Color
78
+ --color-brand-10: #2a6052; // @presenter Color
79
+ --color-brand-11: #284f45; // @presenter Color
80
+ --text-color-on-color: #ffffff; // @presenter Color
95
81
  `;
96
82
  case 'cyan':
97
83
  return (0, styled_components_1.css) `
98
- --color-brand-1: #e8fbff;
99
- --color-brand-2: #aee7f4;
100
- --color-brand-3: #79d4e9;
101
- --color-brand-4: #4ac2dd;
102
- --color-brand-5: #22b2d2;
103
- --color-brand-6: #00a2c7;
104
- --color-brand-7: #0f91af;
105
- --color-brand-8: #1b8097;
106
- --color-brand-9: #246e7f;
107
- --color-brand-10: #285c67;
108
- --color-brand-11: #28484f;
109
- --text-color-on-color: #ffffff;
84
+ --color-brand-1: #e8fbff; // @presenter Color
85
+ --color-brand-2: #aee7f4; // @presenter Color
86
+ --color-brand-3: #79d4e9; // @presenter Color
87
+ --color-brand-4: #4ac2dd; // @presenter Color
88
+ --color-brand-5: #22b2d2; // @presenter Color
89
+ --color-brand-6: #00a2c7; // @presenter Color
90
+ --color-brand-7: #0f91af; // @presenter Color
91
+ --color-brand-8: #1b8097; // @presenter Color
92
+ --color-brand-9: #246e7f; // @presenter Color
93
+ --color-brand-10: #285c67; // @presenter Color
94
+ --color-brand-11: #28484f; // @presenter Color
95
+ --text-color-on-color: #ffffff; // @presenter Color
110
96
  `;
111
97
  case 'ocean':
112
98
  return (0, styled_components_1.css) `
113
- --color-brand-1: #e8f5ff;
114
- --color-brand-2: #b6dfff;
115
- --color-brand-3: #85caff;
116
- --color-brand-4: #56b5ff;
117
- --color-brand-5: #29a2ff;
118
- --color-brand-6: #0090ff;
119
- --color-brand-7: #1384dc;
120
- --color-brand-8: #2277b9;
121
- --color-brand-9: #2a6795;
122
- --color-brand-10: #2d5472;
123
- --color-brand-11: #283e4f;
124
- --text-color-on-color: #ffffff;
99
+ --color-brand-1: #e8f5ff; // @presenter Color
100
+ --color-brand-2: #b6dfff; // @presenter Color
101
+ --color-brand-3: #85caff; // @presenter Color
102
+ --color-brand-4: #56b5ff; // @presenter Color
103
+ --color-brand-5: #29a2ff; // @presenter Color
104
+ --color-brand-6: #0090ff; // @presenter Color
105
+ --color-brand-7: #1384dc; // @presenter Color
106
+ --color-brand-8: #2277b9; // @presenter Color
107
+ --color-brand-9: #2a6795; // @presenter Color
108
+ --color-brand-10: #2d5472; // @presenter Color
109
+ --color-brand-11: #283e4f; // @presenter Color
110
+ --text-color-on-color: #ffffff; // @presenter Color
125
111
  `;
126
112
  case 'indigo':
127
113
  return (0, styled_components_1.css) `
128
- --color-brand-1: #e8edff;
129
- --color-brand-2: #b5d7ff;
130
- --color-brand-3: #99aef1;
131
- --color-brand-4: #7691eb;
132
- --color-brand-5: #5879e4;
133
- --color-brand-6: #3e63dd;
134
- --color-brand-7: #3c5bc1;
135
- --color-brand-8: #3952a4;
136
- --color-brand-9: #364988;
137
- --color-brand-10: #303e6b;
138
- --color-brand-11: #28314f;
139
- --text-color-on-color: #ffffff;
114
+ --color-brand-1: #e8edff; // @presenter Color
115
+ --color-brand-2: #b5d7ff; // @presenter Color
116
+ --color-brand-3: #99aef1; // @presenter Color
117
+ --color-brand-4: #7691eb; // @presenter Color
118
+ --color-brand-5: #5879e4; // @presenter Color
119
+ --color-brand-6: #3e63dd; // @presenter Color
120
+ --color-brand-7: #3c5bc1; // @presenter Color
121
+ --color-brand-8: #3952a4; // @presenter Color
122
+ --color-brand-9: #364988; // @presenter Color
123
+ --color-brand-10: #303e6b; // @presenter Color
124
+ --color-brand-11: #28314f; // @presenter Color
125
+ --text-color-on-color: #ffffff; // @presenter Color
140
126
  `;
141
127
  case 'iris':
142
128
  return (0, styled_components_1.css) `
143
- --color-brand-1: #ebebff;
144
- --color-brand-2: #c8c8f7;
145
- --color-brand-3: #a7a7ef;
146
- --color-brand-4: #8a8ae6;
147
- --color-brand-5: #7070de;
148
- --color-brand-6: #5b5bd6;
149
- --color-brand-7: #5353bb;
150
- --color-brand-8: #4c4ca0;
151
- --color-brand-9: #434385;
152
- --color-brand-10: #3a3a6a;
153
- --color-brand-11: #2e2e4f;
154
- --text-color-on-color: #ffffff;
129
+ --color-brand-1: #ebebff; // @presenter Color
130
+ --color-brand-2: #c8c8f7; // @presenter Color
131
+ --color-brand-3: #a7a7ef; // @presenter Color
132
+ --color-brand-4: #8a8ae6; // @presenter Color
133
+ --color-brand-5: #7070de; // @presenter Color
134
+ --color-brand-6: #5b5bd6; // @presenter Color
135
+ --color-brand-7: #5353bb; // @presenter Color
136
+ --color-brand-8: #4c4ca0; // @presenter Color
137
+ --color-brand-9: #434385; // @presenter Color
138
+ --color-brand-10: #3a3a6a; // @presenter Color
139
+ --color-brand-11: #2e2e4f; // @presenter Color
140
+ --text-color-on-color: #ffffff; // @presenter Color
155
141
  `;
156
142
  default:
157
143
  return (0, styled_components_1.css) `
158
- --color-brand-1: #f0f4ff;
159
- --color-brand-2: #dfe8ff;
160
- --color-brand-3: #bfd0ff;
161
- --color-brand-4: #9fb7ff;
162
- --color-brand-5: #87a3ff;
163
- --color-brand-6: #5f81ff;
164
- --color-brand-7: #4561db;
165
- --color-brand-8: #2f46b7;
166
- --color-brand-9: #1e2f93;
167
- --color-brand-10: #222d7a;
168
- --color-brand-11: #232a61;
169
- --text-color-on-color: #ffffff;
144
+ --button-bg-color-primary-legacy: var(--color-blue-6); // @presenter Color
145
+ --button-bg-color-primary-hover-legacy: var(--color-blue-7); // @presenter Color
146
+ --button-bg-color-primary-pressed-legacy: var(--color-blue-8); // @presenter Color
147
+
148
+ --toc-item-text-color-active-legacy: var(--text-color-primary); // @presenter Color
149
+ --toc-item-border-color-active-legacy: var(--border-color-invers); // @presenter Color
150
+
151
+ --checkbox-border-color-legacy: var(--border-color-primary); // @presenter Color
152
+ --checkbox-box-color-active-legacy: var(--color-warm-grey-10); // @presenter Color
153
+
154
+ --switch-bg-color-selected-legacy: var(--color-warm-grey-9); // @presenter Color
155
+
156
+ --md-tabs-active-tab-bg-color-legacy: var(--bg-color-active); // @presenter Color
157
+ --md-tabs-active-tab-text-color-legacy: var(--text-color-primary); // @presenter Color
158
+ --md-tabs-active-tab-border-color-legacy: var(--text-color-primary); // @presenter Color
159
+
160
+ --admonition-default-bg-color-legacy: var(--color-warm-grey-2); // @presenter Color
161
+ --admonition-default-icon-color-legacy: var(--color-warm-grey-11); // @presenter Color
162
+ --admonition-default-border-color-legacy: var(--color-warm-grey-4); // @presenter Color
163
+
164
+ --menu-item-bg-color-active-legacy: var(--tree-bg-color-active); // @presenter Color
165
+ --menu-item-color-active-legacy: var(--tree-content-color-default); // @presenter Color
170
166
  `;
171
167
  }
172
168
  }
@@ -9,7 +9,7 @@ import type { CatalogConfig, ProductUiConfig } from '../../config';
9
9
  import type { UseCatalogResponse, FilteredCatalog, UseCatalogSortResponse, UseCatalogSearchResponse, UseCatalogProps, CatalogApiParams, CatalogApiResults } from './catalog';
10
10
  import type { UserMenuData } from './user-menu';
11
11
  import type { ItemState } from './sidebar';
12
- import type { SearchItemData, SearchFacet, SearchFilterItem, SearchFacetQuery, AiSearchConversationItem, ToolCallName, ContentSegment } from './search';
12
+ import type { SearchItemData, SearchFacet, SearchFilterItem, SearchFacetQuery, AiSearchConversationItem, ContentSegment, ToolCall } from './search';
13
13
  import type { SubmitFeedbackParams } from './feedback';
14
14
  import type { TFunction } from './l10n';
15
15
  import type { BreadcrumbItem } from './breadcrumb';
@@ -101,14 +101,7 @@ export type ThemeHooks = {
101
101
  error: null | AiSearchError;
102
102
  conversation: AiSearchConversationItem[];
103
103
  setConversation: React.Dispatch<React.SetStateAction<AiSearchConversationItem[]>>;
104
- toolCalls: Array<{
105
- name: ToolCallName;
106
- args: unknown;
107
- position: number;
108
- result?: {
109
- documentCount: number;
110
- };
111
- }>;
104
+ toolCalls: Array<ToolCall>;
112
105
  contentSegments: ContentSegment[];
113
106
  };
114
107
  useMarkdownText: (text: string) => React.ReactNode;
@@ -20,3 +20,4 @@ export type * from './page-actions';
20
20
  export type * from './open-api-info';
21
21
  export type * from './segmented';
22
22
  export type * from './tooltip';
23
+ export type * from './toast';