@redocly/theme 0.64.0-next.1 → 0.64.0-next.3

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 (223) 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/Banner/Banner.js +3 -3
  6. package/lib/components/Button/variables.dark.js +2 -2
  7. package/lib/components/Button/variables.js +3 -3
  8. package/lib/components/Catalog/CatalogActionsRow.d.ts +3 -3
  9. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +4 -6
  10. package/lib/components/Catalog/CatalogEntities.d.ts +2 -2
  11. package/lib/components/Catalog/CatalogEntities.js +1 -1
  12. package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +1 -8
  13. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.js +3 -1
  14. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +1 -1
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +1 -1
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +1 -0
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +2 -1
  18. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +2 -6
  19. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +5 -5
  20. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +1 -1
  21. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +15 -7
  22. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +2 -2
  23. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.d.ts +3 -3
  24. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.js +4 -1
  25. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +3 -3
  26. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +14 -2
  27. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +1 -1
  28. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +3 -3
  29. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +1 -1
  30. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +2 -2
  31. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +3 -3
  32. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +13 -3
  33. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +4 -3
  34. package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +3 -2
  35. package/lib/components/Catalog/CatalogEntityTypeIcon.js +9 -9
  36. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.d.ts +2 -3
  37. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.d.ts +2 -3
  38. package/lib/components/Catalog/CatalogPageDescription.js +1 -1
  39. package/lib/components/Catalog/CatalogSortButton.d.ts +4 -5
  40. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +6 -2
  41. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +2 -2
  42. package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.d.ts +5 -0
  43. package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.js +45 -0
  44. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +5 -3
  45. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +2 -3
  46. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +3 -2
  47. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +1 -2
  48. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +15 -5
  49. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +3 -2
  50. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +2 -2
  51. package/lib/components/Catalog/CatalogTags.d.ts +11 -0
  52. package/lib/components/Catalog/CatalogTags.js +62 -0
  53. package/lib/components/Catalog/variables.js +22 -14
  54. package/lib/components/Filter/variables.js +1 -1
  55. package/lib/components/Link/Link.js +2 -2
  56. package/lib/components/Menu/MenuItem.js +1 -0
  57. package/lib/components/Menu/variables.dark.js +2 -0
  58. package/lib/components/Menu/variables.js +4 -3
  59. package/lib/components/Search/SearchDialog.js +118 -116
  60. package/lib/components/SvgViewer/variables.dark.js +1 -1
  61. package/lib/components/Switch/variables.dark.js +2 -2
  62. package/lib/components/Switch/variables.js +1 -1
  63. package/lib/components/TableOfContent/TableOfContent.js +1 -0
  64. package/lib/components/TableOfContent/variables.js +3 -2
  65. package/lib/components/Toast/Toast.d.ts +14 -0
  66. package/lib/components/Toast/Toast.js +239 -0
  67. package/lib/components/Toast/variables.d.ts +1 -0
  68. package/lib/components/Toast/variables.js +64 -0
  69. package/lib/components/Tooltip/JsTooltip.js +1 -1
  70. package/lib/core/constants/catalog.d.ts +1 -1
  71. package/lib/core/constants/catalog.js +1 -1
  72. package/lib/core/constants/toast.d.ts +1 -0
  73. package/lib/core/constants/toast.js +5 -0
  74. package/lib/core/contexts/Toast/ToastContext.d.ts +2 -0
  75. package/lib/core/contexts/Toast/ToastContext.js +6 -0
  76. package/lib/core/contexts/Toast/ToastProvider.d.ts +3 -0
  77. package/lib/core/contexts/Toast/ToastProvider.js +156 -0
  78. package/lib/core/contexts/index.d.ts +2 -0
  79. package/lib/core/contexts/index.js +2 -0
  80. package/lib/core/hooks/catalog/use-catalog-entity-link.d.ts +8 -0
  81. package/lib/core/hooks/catalog/use-catalog-entity-link.js +42 -0
  82. package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.d.ts +2 -1
  83. package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.js +5 -3
  84. package/lib/core/hooks/index.d.ts +3 -0
  85. package/lib/core/hooks/index.js +3 -0
  86. package/lib/core/hooks/use-toast-logic.d.ts +18 -0
  87. package/lib/core/hooks/use-toast-logic.js +141 -0
  88. package/lib/core/hooks/use-toast.d.ts +11 -0
  89. package/lib/core/hooks/use-toast.js +17 -0
  90. package/lib/core/styles/dark.d.ts +3 -1
  91. package/lib/core/styles/dark.js +37 -33
  92. package/lib/core/styles/global.d.ts +6 -2
  93. package/lib/core/styles/global.js +56 -46
  94. package/lib/core/styles/palette.d.ts +6 -0
  95. package/lib/core/styles/palette.dark.d.ts +3 -0
  96. package/lib/core/styles/palette.dark.js +201 -0
  97. package/lib/core/styles/palette.js +175 -0
  98. package/lib/core/types/catalog.d.ts +23 -7
  99. package/lib/core/types/hooks.d.ts +6 -4
  100. package/lib/core/types/index.d.ts +1 -0
  101. package/lib/core/types/search.d.ts +1 -0
  102. package/lib/core/types/toast.d.ts +23 -0
  103. package/lib/core/types/toast.js +3 -0
  104. package/lib/core/utils/get-auto-dismiss-duration.d.ts +2 -0
  105. package/lib/core/utils/get-auto-dismiss-duration.js +15 -0
  106. package/lib/core/utils/index.d.ts +1 -0
  107. package/lib/core/utils/index.js +1 -0
  108. package/lib/icons/CheckboxIcon/CheckboxIcon.js +6 -4
  109. package/lib/icons/CheckboxIcon/variables.dark.js +2 -1
  110. package/lib/icons/CheckboxIcon/variables.js +3 -3
  111. package/lib/icons/IdeaIcon/IdeaIcon.d.ts +9 -0
  112. package/lib/icons/IdeaIcon/IdeaIcon.js +24 -0
  113. package/lib/icons/NewChatIcon/NewChatIcon.d.ts +11 -0
  114. package/lib/icons/NewChatIcon/NewChatIcon.js +25 -0
  115. package/lib/index.d.ts +5 -1
  116. package/lib/index.js +5 -1
  117. package/lib/markdoc/components/Heading/Heading.js +2 -2
  118. package/lib/markdoc/components/Mermaid/Mermaid.js +0 -2
  119. package/lib/markdoc/components/Tabs/variables.js +3 -3
  120. package/lib/markdoc/components/default.d.ts +0 -1
  121. package/lib/markdoc/components/default.js +0 -1
  122. package/lib/markdoc/tags/admonition.js +1 -1
  123. package/package.json +2 -2
  124. package/src/components/Admonition/Admonition.tsx +3 -1
  125. package/src/components/Admonition/variables.dark.ts +3 -0
  126. package/src/components/Admonition/variables.ts +13 -0
  127. package/src/components/Banner/Banner.tsx +7 -7
  128. package/src/components/Button/variables.dark.ts +2 -2
  129. package/src/components/Button/variables.ts +3 -3
  130. package/src/components/Catalog/CatalogActionsRow.tsx +3 -3
  131. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +4 -6
  132. package/src/components/Catalog/CatalogEntities.tsx +3 -3
  133. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +3 -24
  134. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.tsx +3 -1
  135. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +1 -1
  136. package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +1 -1
  137. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +1 -0
  138. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +2 -1
  139. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +8 -10
  140. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +13 -8
  141. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +1 -0
  142. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +27 -15
  143. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +2 -2
  144. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +9 -9
  145. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +17 -9
  146. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +1 -1
  147. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +4 -8
  148. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +2 -2
  149. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +16 -10
  150. package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +4 -3
  151. package/src/components/Catalog/CatalogEntityTypeIcon.tsx +18 -11
  152. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.tsx +3 -3
  153. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.tsx +2 -3
  154. package/src/components/Catalog/CatalogPageDescription.tsx +1 -1
  155. package/src/components/Catalog/CatalogSortButton.tsx +5 -6
  156. package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +6 -2
  157. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +2 -2
  158. package/src/components/Catalog/CatalogTableView/CatalogLastUpdateCell.tsx +54 -0
  159. package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +5 -2
  160. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +4 -3
  161. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +17 -7
  162. package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +3 -2
  163. package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +2 -2
  164. package/src/components/Catalog/CatalogTags.tsx +115 -0
  165. package/src/components/Catalog/variables.ts +22 -14
  166. package/src/components/Filter/variables.ts +1 -1
  167. package/src/components/Link/Link.tsx +1 -1
  168. package/src/components/Menu/MenuItem.tsx +5 -1
  169. package/src/components/Menu/variables.dark.ts +2 -0
  170. package/src/components/Menu/variables.ts +4 -3
  171. package/src/components/Search/SearchDialog.tsx +299 -293
  172. package/src/components/SvgViewer/variables.dark.ts +1 -1
  173. package/src/components/Switch/variables.dark.ts +2 -2
  174. package/src/components/Switch/variables.ts +1 -1
  175. package/src/components/TableOfContent/TableOfContent.tsx +1 -0
  176. package/src/components/TableOfContent/variables.ts +3 -2
  177. package/src/components/Toast/Toast.tsx +289 -0
  178. package/src/components/Toast/variables.ts +61 -0
  179. package/src/components/Tooltip/JsTooltip.tsx +1 -1
  180. package/src/core/constants/catalog.ts +1 -1
  181. package/src/core/constants/toast.ts +1 -0
  182. package/src/core/contexts/Toast/ToastContext.tsx +5 -0
  183. package/src/core/contexts/Toast/ToastProvider.tsx +206 -0
  184. package/src/core/contexts/index.ts +2 -0
  185. package/src/core/hooks/catalog/use-catalog-entity-link.ts +46 -0
  186. package/src/core/hooks/catalog/use-catalog-table-header-cell-actions.ts +10 -2
  187. package/src/core/hooks/index.ts +3 -0
  188. package/src/core/hooks/use-toast-logic.ts +203 -0
  189. package/src/core/hooks/use-toast.ts +47 -0
  190. package/src/core/styles/dark.ts +9 -4
  191. package/src/core/styles/global.ts +30 -20
  192. package/src/core/styles/palette.dark.ts +199 -0
  193. package/src/core/styles/palette.ts +173 -0
  194. package/src/core/types/catalog.ts +24 -8
  195. package/src/core/types/hooks.ts +5 -10
  196. package/src/core/types/index.ts +1 -0
  197. package/src/core/types/search.ts +1 -0
  198. package/src/core/types/toast.ts +28 -0
  199. package/src/core/utils/get-auto-dismiss-duration.ts +20 -0
  200. package/src/core/utils/index.ts +1 -0
  201. package/src/icons/CheckboxIcon/CheckboxIcon.tsx +26 -17
  202. package/src/icons/CheckboxIcon/variables.dark.ts +2 -1
  203. package/src/icons/CheckboxIcon/variables.ts +3 -3
  204. package/src/icons/IdeaIcon/IdeaIcon.tsx +32 -0
  205. package/src/icons/NewChatIcon/NewChatIcon.tsx +39 -0
  206. package/src/index.ts +5 -1
  207. package/src/markdoc/components/Heading/Heading.tsx +2 -1
  208. package/src/markdoc/components/Mermaid/Mermaid.tsx +0 -2
  209. package/src/markdoc/components/Tabs/variables.ts +3 -3
  210. package/src/markdoc/components/default.ts +0 -1
  211. package/src/markdoc/tags/admonition.ts +1 -1
  212. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +0 -10
  213. package/lib/components/Catalog/CatalogTagsWithTooltip.js +0 -57
  214. package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.d.ts +0 -7
  215. package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.js +0 -95
  216. package/lib/markdoc/components/ExcalidrawDiagram/variables.d.ts +0 -1
  217. package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.d.ts +0 -1
  218. package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.js +0 -8
  219. package/lib/markdoc/components/ExcalidrawDiagram/variables.js +0 -15
  220. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +0 -101
  221. package/src/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.tsx +0 -85
  222. package/src/markdoc/components/ExcalidrawDiagram/variables.dark.ts +0 -5
  223. package/src/markdoc/components/ExcalidrawDiagram/variables.ts +0 -12
@@ -0,0 +1,115 @@
1
+ import React, { JSX } from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ import { CATALOG_TAG_MAX_LENGTH } from '@redocly/theme/core/constants';
5
+ import { Tag, TagProps } from '@redocly/theme/components/Tag/Tag';
6
+ import { Tooltip } from '@redocly/theme/components/Tooltip/Tooltip';
7
+ import { CatalogHighlight } from '@redocly/theme/components/Catalog/CatalogHighlight';
8
+ import { useThemeHooks } from '@redocly/theme/core/hooks';
9
+ import { CatalogAvatar } from '@redocly/theme/components/Catalog/CatalogAvatar';
10
+
11
+ export type CatalogTagsProps = {
12
+ items: string[];
13
+ itemsToShow?: number;
14
+ showPlaceholder?: boolean;
15
+ tagProps?: TagProps;
16
+ showAvatars?: boolean;
17
+ maxItemLength?: number;
18
+ };
19
+
20
+ export function CatalogTags({
21
+ items,
22
+ itemsToShow = 1,
23
+ showPlaceholder = false,
24
+ showAvatars,
25
+ tagProps,
26
+ maxItemLength = CATALOG_TAG_MAX_LENGTH,
27
+ }: CatalogTagsProps): JSX.Element | null {
28
+ const { useTranslate } = useThemeHooks();
29
+ const { translate } = useTranslate();
30
+
31
+ if (!items || items.length === 0) {
32
+ if (showPlaceholder) {
33
+ return (
34
+ <CatalogTagsNotConnectedWrapper data-component-name="Catalog/CatalogTags">
35
+ {translate('catalog.notConnected', 'Not connected')}
36
+ </CatalogTagsNotConnectedWrapper>
37
+ );
38
+ }
39
+ return null;
40
+ }
41
+
42
+ const maxLength = showAvatars || tagProps?.icon ? maxItemLength - 3 : maxItemLength;
43
+ const isFirstItemTruncated = items[0]?.length > maxLength;
44
+ const anyItemHidden = items.length > itemsToShow;
45
+
46
+ const shouldUseVariantWithTooltip = anyItemHidden || isFirstItemTruncated;
47
+
48
+ if (shouldUseVariantWithTooltip) {
49
+ const displayedItems = items.slice(0, itemsToShow);
50
+ const remainingCount = items.length - itemsToShow;
51
+
52
+ return (
53
+ <Tooltip tip={items.join(', ')} placement="bottom" className="catalog">
54
+ <CatalogTagsWrapper data-component-name="Catalog/CatalogTags">
55
+ {displayedItems.map((item, index) => (
56
+ <Tag
57
+ key={`${item}-${index}`}
58
+ {...tagProps}
59
+ {...(showAvatars && {
60
+ icon: <CatalogAvatar value={item} size="small" />,
61
+ style: {
62
+ ...tagProps?.style,
63
+ paddingLeft: 'var(--catalog-tags-tag-left-padding)',
64
+ },
65
+ })}
66
+ textTransform="none"
67
+ maxLength={maxLength}
68
+ >
69
+ <CatalogHighlight>{item}</CatalogHighlight>
70
+ </Tag>
71
+ ))}
72
+
73
+ {remainingCount > 0 && <MoreTagsButton>+ {remainingCount}</MoreTagsButton>}
74
+ </CatalogTagsWrapper>
75
+ </Tooltip>
76
+ );
77
+ }
78
+
79
+ return (
80
+ <CatalogTagsWrapper data-component-name="Catalog/CatalogTags">
81
+ {items.map((item, index) => (
82
+ <Tag
83
+ key={`${item}-${index}`}
84
+ {...tagProps}
85
+ {...(showAvatars && {
86
+ icon: <CatalogAvatar value={item} size="small" />,
87
+ style: {
88
+ ...tagProps?.style,
89
+ paddingLeft: 'var(--catalog-tags-tag-left-padding)',
90
+ },
91
+ })}
92
+ maxLength={maxLength}
93
+ >
94
+ <CatalogHighlight>{item}</CatalogHighlight>
95
+ </Tag>
96
+ ))}
97
+ </CatalogTagsWrapper>
98
+ );
99
+ }
100
+
101
+ const CatalogTagsWrapper = styled.div`
102
+ display: flex;
103
+ flex-wrap: wrap;
104
+ `;
105
+
106
+ const MoreTagsButton = styled.span`
107
+ font-size: var(--catalog-tags-more-button-font-size);
108
+ margin-left: var(--catalog-tags-more-button-margin-left);
109
+ `;
110
+
111
+ const CatalogTagsNotConnectedWrapper = styled.span`
112
+ font-size: var(--catalog-tags-not-connected-font-size);
113
+ line-height: var(--catalog-tags-not-connected-line-height);
114
+ color: var(--catalog-tags-not-connected-color);
115
+ `;
@@ -47,7 +47,7 @@ export const catalog = css`
47
47
  --catalog-description-text-color: var(--text-color-secondary);
48
48
  --catalog-description-font-weight: var(--font-weight-regular);
49
49
  --catalog-description-font-size: var(--font-size-lg);
50
- --catalog-description-margin: 0 0 var(--spacing-xl) 0;
50
+ --catalog-description-margin: 0 0 var(--spacing-base) 0;
51
51
  --catalog-description-line-height: var(--line-height-lg);
52
52
 
53
53
  /**
@@ -152,6 +152,7 @@ export const catalog = css`
152
152
  --catalog-tags-not-connected-font-size: var(--font-size-base);
153
153
  --catalog-tags-not-connected-line-height: var(--line-height-base);
154
154
  --catalog-tags-not-connected-color: var(--text-color-disabled);
155
+ --catalog-tags-tag-left-padding: 2px;
155
156
 
156
157
  /**
157
158
  * @tokens Catalog empty state
@@ -206,7 +207,7 @@ export const catalog = css`
206
207
  * @tokens Catalog card
207
208
  */
208
209
  --catalog-card-height: 241px;
209
- --catalog-card-padding-vertical: var(--spacing-base);
210
+ --catalog-card-padding-vertical: var(--spacing-md);
210
211
  --catalog-card-padding-horizontal: var(--spacing-md);
211
212
  --catalog-card-gap: var(--spacing-sm);
212
213
  --catalog-card-text-color: var(--text-color-secondary);
@@ -281,7 +282,7 @@ export const catalog = css`
281
282
  /**
282
283
  * @tokens Catalog card footer
283
284
  */
284
- --catalog-card-footer-height: 72px;
285
+ --catalog-card-footer-height: 68px;
285
286
 
286
287
  /**
287
288
  * @tokens Catalog card description
@@ -313,11 +314,6 @@ export const catalog = css`
313
314
  --catalog-page-badge-dot-size: 6px;
314
315
  --catalog-page-badge-dot-border-color: var(--color-static-white);
315
316
 
316
- /**
317
- * @tokens Catalog card metadata
318
- */
319
- --catalog-card-metadata-owner-tag-left-padding: 2px;
320
-
321
317
 
322
318
  /**
323
319
  * @tokens Catalog table
@@ -325,13 +321,13 @@ export const catalog = css`
325
321
  --catalog-table-border-color: var(--border-color-secondary);
326
322
  --catalog-table-header-bg-color: var(--layer-color);
327
323
  --catalog-table-header-font-weight: var(--font-weight-medium);
328
- --catalog-table-header-cell-padding: 4px 8px;
329
- --catalog-table-cell-padding: 4px 8px;
324
+ --catalog-table-header-cell-padding: 4px 6px 4px 8px;
325
+ --catalog-table-cell-padding: 4px 6px 4px 8px;
330
326
  --catalog-table-row-hover-bg-color: var(--bg-color-hover, rgba(0, 0, 0, 0.04));
331
327
  --catalog-table-empty-state-padding: 32px;
332
328
  --catalog-table-empty-state-color: var(--text-color-secondary);
333
- --catalog-table-title-cell-gap: 12px;
334
- --catalog-table-entity-title-content-offset: 42px;
329
+ --catalog-table-title-cell-gap: var(--spacing-xs);
330
+ --catalog-table-entity-title-content-offset: 40px;
335
331
 
336
332
  /**
337
333
  * @tokens Catalog table header
@@ -501,8 +497,6 @@ export const catalog = css`
501
497
  --catalog-history-pill-line-height: var(--line-height-base);
502
498
  --catalog-history-pill-text-color: var(--text-color-primary);
503
499
  --catalog-history-pill-min-width: calc(100% - 118px - var(--catalog-history-item-gap));
504
-
505
-
506
500
  // @tokens End
507
501
 
508
502
  /**
@@ -581,5 +575,19 @@ export const catalog = css`
581
575
  --catalog-history-sidebar-version-tag-border-radius: var(--border-radius-xl);
582
576
  --catalog-history-sidebar-revision-tag-border-radius: var(--border-radius-xl);
583
577
  // @tokens End
578
+
579
+ /**
580
+ * @tokens Catalog entity type icon
581
+ */
582
+ --catalog-table-icon-width-large: 32px;
583
+ --catalog-table-icon-height-large: 32px;
584
+ --catalog-table-icon-width-medium: 24px;
585
+ --catalog-table-icon-height-medium: 24px;
586
+
587
+ /**
588
+ * @tokens Catalog user entity cell
589
+ */
590
+ --catalog-user-entity-cell-email-font-size: var(--font-size-base);
591
+ --catalog-user-entity-cell-email-line-height: var(--line-height-base);
584
592
  `;
585
593
  /* eslint-enable theme/no-raw-colors-in-styles */
@@ -22,7 +22,7 @@ export const filter = css`
22
22
  --filter-option-margin: 0;
23
23
 
24
24
  --filter-option-label-font-size: var(--font-size-base);
25
- --filter-option-label-color: var(--text-color-secondary);
25
+ --filter-option-label-color: var(--text-color-primary);
26
26
 
27
27
  --filter-option-checkbox-padding-left: var(--spacing-xs);
28
28
 
@@ -4,7 +4,7 @@ import { Link as ReactLink } from 'react-router-dom';
4
4
 
5
5
  import type { JSX } from 'react';
6
6
 
7
- import { ThemeDataContext } from '@redocly/theme/core/contexts';
7
+ import { ThemeDataContext } from '@redocly/theme/core/contexts/ThemeDataContext';
8
8
 
9
9
  export type LinkProps = {
10
10
  to: string;
@@ -291,6 +291,7 @@ const MenuItemLabelWrapper = styled.li<{
291
291
  css`
292
292
  color: ${deprecated ? 'var(--menu-content-color-disabled)' : 'var(--menu-item-color-active)'};
293
293
  background-color: var(--menu-item-bg-color-active);
294
+ font-weight: var(--menu-item-font-weight-active);
294
295
 
295
296
  ${ChevronDownIcon} path {
296
297
  fill: var(--menu-item-color-active);
@@ -369,7 +370,10 @@ const MenuItemLink = styled(Link)`
369
370
  order: 1;
370
371
  `;
371
372
 
372
- const MenuItemSeparatorLine = styled.div<{ depth?: number; linePosition?: string }>`
373
+ const MenuItemSeparatorLine = styled.div<{
374
+ depth?: number;
375
+ linePosition?: string;
376
+ }>`
373
377
  height: var(--menu-item-separator-line-height);
374
378
  background-color: var(--menu-item-separator-line-bg-color);
375
379
  margin: ${({ depth }) => `
@@ -5,4 +5,6 @@ export const menuDarkMode = css`
5
5
  --menu-content-title-color: var(--text-color-secondary); // @presenter Color
6
6
  --menu-content-color-active: var(--text-color-primary); // @presenter Color
7
7
  --menu-content-color-disabled: var(--text-color-disabled); // @presenter Color
8
+
9
+ --menu-item-bg-color-active: var(--color-primary-bg, var(--menu-item-bg-color-active-legacy)); // @presenter Color
8
10
  `;
@@ -19,6 +19,7 @@ export const menu = css`
19
19
  --menu-item-font-family: var(--sidebar-font-family); // @presenter FontFamily
20
20
  --menu-item-font-size: var(--sidebar-font-size); // @presenter FontSize
21
21
  --menu-item-font-weight: var(--font-weight-regular); // @presenter FontSize
22
+ --menu-item-font-weight-active: var(--font-weight-medium); // @presenter FontWeight
22
23
  --menu-item-line-height: var(--line-height-base); // @presenter LineHeight
23
24
 
24
25
  /**
@@ -28,11 +29,11 @@ export const menu = css`
28
29
  --menu-item-text-color: var(--sidebar-text-color); // @presenter Color
29
30
  --menu-item-bg-color: transparent; // @presenter Color
30
31
  --menu-item-bg-color-hover: var(--color-hover-base); // @presenter Color
31
- --menu-item-bg-color-active: var(--tree-bg-color-active); // @presenter Color
32
+ --menu-item-bg-color-active: var(--color-primary-bg, var(--menu-item-bg-color-active-legacy)); // @presenter Color
32
33
 
33
34
  --menu-item-color-hover: var(--tree-content-color-hover); // @presenter Color
34
- --menu-item-color-active: var(--tree-content-color-default); // @presenter Color
35
-
35
+ --menu-item-color-active: var(--color-primary-text, var(--menu-item-color-active-legacy)); // @presenter Color
36
+
36
37
  /**
37
38
  * @tokens Menu item spacing
38
39
  * @presenter Spacing