@redocly/theme 0.55.0-next.7 → 0.55.0-next.8

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 (273) hide show
  1. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -0
  2. package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -1
  3. package/lib/components/Catalog/Catalog.d.ts +11 -0
  4. package/lib/components/Catalog/Catalog.js +138 -0
  5. package/lib/components/Catalog/CatalogActionsRow.d.ts +15 -0
  6. package/lib/components/Catalog/CatalogActionsRow.js +34 -0
  7. package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +8 -0
  8. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +179 -0
  9. package/lib/components/Catalog/CatalogCardView/CatalogCardView.d.ts +8 -0
  10. package/lib/components/Catalog/CatalogCardView/CatalogCardView.js +20 -0
  11. package/lib/components/Catalog/CatalogEntities.d.ts +18 -0
  12. package/lib/components/Catalog/CatalogEntities.js +63 -0
  13. package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +2 -0
  14. package/lib/components/Catalog/CatalogEntitiesEmptyState.js +38 -0
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +12 -0
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +133 -0
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +7 -0
  18. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +49 -0
  19. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.d.ts +6 -0
  20. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.js +48 -0
  21. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.d.ts +6 -0
  22. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +111 -0
  23. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.d.ts +6 -0
  24. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.js +25 -0
  25. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.d.ts +6 -0
  26. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +69 -0
  27. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +7 -0
  28. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +48 -0
  29. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.d.ts +6 -0
  30. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +19 -0
  31. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.d.ts +6 -0
  32. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +20 -0
  33. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.d.ts +6 -0
  34. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +20 -0
  35. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.d.ts +6 -0
  36. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.js +23 -0
  37. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.d.ts +6 -0
  38. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +21 -0
  39. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.d.ts +6 -0
  40. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +24 -0
  41. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.d.ts +6 -0
  42. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.js +21 -0
  43. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +21 -0
  44. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +37 -0
  45. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +10 -0
  46. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +31 -0
  47. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +25 -0
  48. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +27 -0
  49. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +22 -0
  50. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +60 -0
  51. package/lib/components/Catalog/CatalogEntityIcon.d.ts +5 -0
  52. package/lib/components/Catalog/CatalogEntityIcon.js +38 -0
  53. package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +5 -0
  54. package/lib/components/Catalog/CatalogEntityTypeIcon.js +42 -0
  55. package/lib/components/Catalog/CatalogHighlight.d.ts +4 -0
  56. package/lib/components/Catalog/CatalogHighlight.js +48 -0
  57. package/lib/components/Catalog/CatalogPageDescription.d.ts +9 -0
  58. package/lib/components/Catalog/CatalogPageDescription.js +52 -0
  59. package/lib/components/Catalog/CatalogSelector.d.ts +12 -0
  60. package/lib/components/Catalog/CatalogSelector.js +48 -0
  61. package/lib/components/Catalog/CatalogSortButton.d.ts +10 -0
  62. package/lib/components/Catalog/CatalogSortButton.js +71 -0
  63. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.d.ts +5 -0
  64. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +19 -0
  65. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +6 -0
  66. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +63 -0
  67. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.d.ts +5 -0
  68. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +19 -0
  69. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +11 -0
  70. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +101 -0
  71. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +31 -0
  72. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +106 -0
  73. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +27 -0
  74. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +127 -0
  75. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.d.ts +6 -0
  76. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +20 -0
  77. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.d.ts +7 -0
  78. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +66 -0
  79. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +9 -0
  80. package/lib/components/Catalog/CatalogTagsWithTooltip.js +46 -0
  81. package/lib/components/Catalog/CatalogViewModeToggle.d.ts +7 -0
  82. package/lib/components/Catalog/CatalogViewModeToggle.js +67 -0
  83. package/lib/components/Catalog/variables.d.ts +1 -0
  84. package/lib/components/Catalog/variables.dark.d.ts +1 -0
  85. package/lib/components/Catalog/variables.dark.js +8 -0
  86. package/lib/components/Catalog/variables.js +354 -0
  87. package/lib/components/CatalogClassic/CatalogClassicHighlight.js +1 -1
  88. package/lib/components/Filter/Filter.d.ts +1 -1
  89. package/lib/components/Filter/Filter.js +2 -2
  90. package/lib/components/Filter/FilterCheckboxes.d.ts +1 -1
  91. package/lib/components/Filter/FilterCheckboxes.js +4 -4
  92. package/lib/components/Filter/FilterContent.d.ts +3 -1
  93. package/lib/components/Filter/FilterContent.js +34 -4
  94. package/lib/components/Filter/FilterInput.js +35 -3
  95. package/lib/components/Filter/FilterSelect.d.ts +1 -1
  96. package/lib/components/Filter/FilterSelect.js +4 -4
  97. package/lib/components/LoadMore/LoadMore.d.ts +8 -0
  98. package/lib/components/LoadMore/LoadMore.js +18 -0
  99. package/lib/components/Markdown/Markdown.js +1 -1
  100. package/lib/components/PageNavigation/NavigationButton.d.ts +13 -0
  101. package/lib/components/PageNavigation/NavigationButton.js +32 -0
  102. package/lib/components/PageNavigation/NextButton.js +10 -29
  103. package/lib/components/PageNavigation/PageNavigation.js +1 -1
  104. package/lib/components/PageNavigation/PreviousButton.js +11 -27
  105. package/lib/components/Search/SearchAiConversationInput.js +2 -1
  106. package/lib/components/Select/Select.js +3 -3
  107. package/lib/components/Sidebar/Sidebar.d.ts +3 -0
  108. package/lib/components/Sidebar/Sidebar.js +3 -2
  109. package/lib/components/Tag/Tag.d.ts +3 -1
  110. package/lib/components/Tag/Tag.js +54 -2
  111. package/lib/components/Tag/variables.js +21 -0
  112. package/lib/components/Tooltip/Tooltip.d.ts +2 -1
  113. package/lib/components/Tooltip/Tooltip.js +26 -19
  114. package/lib/components/Tooltip/variables.js +17 -0
  115. package/lib/core/constants/catalog.d.ts +1 -0
  116. package/lib/core/constants/catalog.js +5 -0
  117. package/lib/core/constants/index.d.ts +1 -0
  118. package/lib/core/constants/index.js +1 -0
  119. package/lib/core/constants/search.d.ts +1 -0
  120. package/lib/core/constants/search.js +2 -1
  121. package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +1 -0
  122. package/lib/core/hooks/__mocks__/use-theme-hooks.js +1 -0
  123. package/lib/core/hooks/catalog/useCatalogEntities.d.ts +4 -0
  124. package/lib/core/hooks/catalog/useCatalogEntities.js +17 -0
  125. package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.d.ts +15 -0
  126. package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.js +23 -0
  127. package/lib/core/hooks/catalog/useCatalogTableViewRow.d.ts +11 -0
  128. package/lib/core/hooks/catalog/useCatalogTableViewRow.js +26 -0
  129. package/lib/core/hooks/index.d.ts +2 -0
  130. package/lib/core/hooks/index.js +2 -0
  131. package/lib/core/hooks/use-user-teams.d.ts +1 -0
  132. package/lib/core/hooks/use-user-teams.js +10 -0
  133. package/lib/core/styles/dark.js +2 -0
  134. package/lib/core/styles/global.js +63 -60
  135. package/lib/core/types/catalog.d.ts +118 -5
  136. package/lib/core/types/filter.d.ts +1 -0
  137. package/lib/core/types/hooks.d.ts +11 -4
  138. package/lib/core/types/index.d.ts +1 -0
  139. package/lib/core/types/index.js +1 -0
  140. package/lib/core/types/l10n.d.ts +1 -1
  141. package/lib/core/types/telemetry.d.ts +32 -0
  142. package/lib/core/types/telemetry.js +3 -0
  143. package/lib/icons/AscSortIcon/AscSortIcon.d.ts +9 -0
  144. package/lib/icons/AscSortIcon/AscSortIcon.js +25 -0
  145. package/lib/icons/CardsIcon/CardsIcon.d.ts +9 -0
  146. package/lib/icons/CardsIcon/CardsIcon.js +25 -0
  147. package/lib/icons/CaretDownIcon/CaretDownIcon.d.ts +9 -0
  148. package/lib/icons/CaretDownIcon/CaretDownIcon.js +22 -0
  149. package/lib/icons/CaretUpIcon/CaretUpIcon.d.ts +9 -0
  150. package/lib/icons/CaretUpIcon/CaretUpIcon.js +22 -0
  151. package/lib/icons/DescSortIcon/DescSortIcon.d.ts +9 -0
  152. package/lib/icons/DescSortIcon/DescSortIcon.js +25 -0
  153. package/lib/icons/EntityTypeIcon/EntityTypeIcon.d.ts +9 -0
  154. package/lib/icons/EntityTypeIcon/EntityTypeIcon.js +26 -0
  155. package/lib/icons/GithubIcon/GithubIcon.d.ts +9 -0
  156. package/lib/icons/GithubIcon/GithubIcon.js +22 -0
  157. package/lib/icons/GraphIcon/GraphIcon.d.ts +9 -0
  158. package/lib/icons/GraphIcon/GraphIcon.js +22 -0
  159. package/lib/icons/PeopleIcon/PeopleIcon.d.ts +9 -0
  160. package/lib/icons/PeopleIcon/PeopleIcon.js +27 -0
  161. package/lib/icons/SlackIcon/SlackIcon.d.ts +9 -0
  162. package/lib/icons/SlackIcon/SlackIcon.js +29 -0
  163. package/lib/icons/SortIcon/SortIcon.d.ts +9 -0
  164. package/lib/icons/SortIcon/SortIcon.js +25 -0
  165. package/lib/icons/TableIcon/TableIcon.d.ts +9 -0
  166. package/lib/icons/TableIcon/TableIcon.js +22 -0
  167. package/lib/icons/TagsIcon/TagsIcon.d.ts +9 -0
  168. package/lib/icons/TagsIcon/TagsIcon.js +24 -0
  169. package/lib/index.d.ts +18 -0
  170. package/lib/index.js +19 -0
  171. package/lib/markdoc/components/Tabs/Tab.d.ts +2 -1
  172. package/lib/markdoc/components/Tabs/Tab.js +10 -2
  173. package/lib/markdoc/components/Tabs/TabList.js +2 -2
  174. package/lib/markdoc/components/Tabs/Tabs.d.ts +3 -1
  175. package/lib/markdoc/components/Tabs/Tabs.js +2 -2
  176. package/package.json +2 -1
  177. package/src/components/Breadcrumbs/Breadcrumbs.tsx +7 -2
  178. package/src/components/Catalog/Catalog.tsx +235 -0
  179. package/src/components/Catalog/CatalogActionsRow.tsx +58 -0
  180. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +227 -0
  181. package/src/components/Catalog/CatalogCardView/CatalogCardView.tsx +29 -0
  182. package/src/components/Catalog/CatalogEntities.tsx +107 -0
  183. package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +38 -0
  184. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +207 -0
  185. package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +60 -0
  186. package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +67 -0
  187. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +93 -0
  188. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.tsx +35 -0
  189. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +83 -0
  190. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +62 -0
  191. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +36 -0
  192. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +38 -0
  193. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +33 -0
  194. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +41 -0
  195. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +42 -0
  196. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +39 -0
  197. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.tsx +31 -0
  198. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +97 -0
  199. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +80 -0
  200. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +92 -0
  201. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +127 -0
  202. package/src/components/Catalog/CatalogEntityIcon.tsx +41 -0
  203. package/src/components/Catalog/CatalogEntityTypeIcon.tsx +48 -0
  204. package/src/components/Catalog/CatalogHighlight.tsx +56 -0
  205. package/src/components/Catalog/CatalogPageDescription.tsx +72 -0
  206. package/src/components/Catalog/CatalogSelector.tsx +67 -0
  207. package/src/components/Catalog/CatalogSortButton.tsx +78 -0
  208. package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +26 -0
  209. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +77 -0
  210. package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +26 -0
  211. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +120 -0
  212. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +176 -0
  213. package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +180 -0
  214. package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +28 -0
  215. package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +77 -0
  216. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +83 -0
  217. package/src/components/Catalog/CatalogViewModeToggle.tsx +65 -0
  218. package/src/components/Catalog/variables.dark.ts +5 -0
  219. package/src/components/Catalog/variables.ts +351 -0
  220. package/src/components/CatalogClassic/CatalogClassicHighlight.tsx +1 -1
  221. package/src/components/Filter/Filter.tsx +10 -2
  222. package/src/components/Filter/FilterCheckboxes.tsx +8 -4
  223. package/src/components/Filter/FilterContent.tsx +21 -5
  224. package/src/components/Filter/FilterInput.tsx +16 -4
  225. package/src/components/Filter/FilterSelect.tsx +8 -4
  226. package/src/components/LoadMore/LoadMore.tsx +38 -0
  227. package/src/components/Markdown/Markdown.tsx +1 -1
  228. package/src/components/PageNavigation/NavigationButton.tsx +68 -0
  229. package/src/components/PageNavigation/NextButton.tsx +20 -43
  230. package/src/components/PageNavigation/PageNavigation.tsx +1 -1
  231. package/src/components/PageNavigation/PreviousButton.tsx +20 -43
  232. package/src/components/Search/SearchAiConversationInput.tsx +3 -0
  233. package/src/components/Select/Select.tsx +5 -3
  234. package/src/components/Sidebar/Sidebar.tsx +1 -1
  235. package/src/components/Tag/Tag.tsx +67 -1
  236. package/src/components/Tag/variables.ts +21 -0
  237. package/src/components/Tooltip/Tooltip.tsx +31 -22
  238. package/src/components/Tooltip/variables.ts +17 -0
  239. package/src/core/constants/catalog.ts +1 -0
  240. package/src/core/constants/index.ts +1 -0
  241. package/src/core/constants/search.ts +2 -0
  242. package/src/core/hooks/__mocks__/use-theme-hooks.ts +1 -0
  243. package/src/core/hooks/catalog/useCatalogEntities.ts +16 -0
  244. package/src/core/hooks/catalog/useCatalogTableHeaderCellActions.ts +38 -0
  245. package/src/core/hooks/catalog/useCatalogTableViewRow.ts +40 -0
  246. package/src/core/hooks/index.ts +2 -0
  247. package/src/core/hooks/use-user-teams.ts +8 -0
  248. package/src/core/styles/dark.ts +2 -0
  249. package/src/core/styles/global.ts +3 -0
  250. package/src/core/types/catalog.ts +143 -5
  251. package/src/core/types/filter.ts +1 -0
  252. package/src/core/types/hooks.ts +32 -5
  253. package/src/core/types/index.ts +1 -0
  254. package/src/core/types/l10n.ts +20 -0
  255. package/src/core/types/telemetry.ts +36 -0
  256. package/src/core/utils/load-and-navigate.ts +5 -4
  257. package/src/icons/AscSortIcon/AscSortIcon.tsx +29 -0
  258. package/src/icons/CardsIcon/CardsIcon.tsx +38 -0
  259. package/src/icons/CaretDownIcon/CaretDownIcon.tsx +26 -0
  260. package/src/icons/CaretUpIcon/CaretUpIcon.tsx +26 -0
  261. package/src/icons/DescSortIcon/DescSortIcon.tsx +29 -0
  262. package/src/icons/EntityTypeIcon/EntityTypeIcon.tsx +49 -0
  263. package/src/icons/GithubIcon/GithubIcon.tsx +35 -0
  264. package/src/icons/GraphIcon/GraphIcon.tsx +26 -0
  265. package/src/icons/PeopleIcon/PeopleIcon.tsx +46 -0
  266. package/src/icons/SlackIcon/SlackIcon.tsx +61 -0
  267. package/src/icons/SortIcon/SortIcon.tsx +29 -0
  268. package/src/icons/TableIcon/TableIcon.tsx +26 -0
  269. package/src/icons/TagsIcon/TagsIcon.tsx +41 -0
  270. package/src/index.ts +20 -0
  271. package/src/markdoc/components/Tabs/Tab.tsx +12 -1
  272. package/src/markdoc/components/Tabs/TabList.tsx +2 -1
  273. package/src/markdoc/components/Tabs/Tabs.tsx +8 -3
@@ -0,0 +1,32 @@
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.NavigationButton = NavigationButton;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const ArrowRightIcon_1 = require("../../icons/ArrowRightIcon/ArrowRightIcon");
10
+ const Button_1 = require("../../components/Button/Button");
11
+ const ArrowLeftIcon_1 = require("../../icons/ArrowLeftIcon/ArrowLeftIcon");
12
+ function NavigationButton({ label, link, text, translationKey, position, icon = position === 'left' ? react_1.default.createElement(ArrowLeftIcon_1.ArrowLeftIcon, null) : react_1.default.createElement(ArrowRightIcon_1.ArrowRightIcon, null), className, }) {
13
+ return (react_1.default.createElement(NavigationButtonWrapper, { "data-component-name": "PageNavigation/NavigationButton", "data-translation-key": translationKey, position: position },
14
+ react_1.default.createElement(NavigationButtonLabel, null, text),
15
+ react_1.default.createElement(StyledNavigationButton, { size: "large", to: link, extraClass: className, variant: "link", icon: icon, iconPosition: position }, label)));
16
+ }
17
+ const NavigationButtonWrapper = styled_components_1.default.div `
18
+ display: flex;
19
+ flex-direction: column;
20
+ text-align: ${({ position }) => position};
21
+ `;
22
+ const StyledNavigationButton = (0, styled_components_1.default)(Button_1.Button) `
23
+ text-wrap: wrap;
24
+ padding-left: 0;
25
+ padding-right: 0;
26
+ `;
27
+ const NavigationButtonLabel = styled_components_1.default.span `
28
+ font-size: var(--font-size-sm);
29
+ line-height: var(--line-height-sm);
30
+ font-weight: var(--font-weight-regular);
31
+ `;
32
+ //# sourceMappingURL=NavigationButton.js.map
@@ -22,44 +22,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
25
  Object.defineProperty(exports, "__esModule", { value: true });
29
26
  exports.NextButton = NextButton;
30
27
  const React = __importStar(require("react"));
31
- const styled_components_1 = __importDefault(require("styled-components"));
28
+ const NavigationButton_1 = require("../../components/PageNavigation/NavigationButton");
32
29
  const hooks_1 = require("../../core/hooks");
33
- const Button_1 = require("../../components/Button/Button");
34
30
  const ArrowRightIcon_1 = require("../../icons/ArrowRightIcon/ArrowRightIcon");
35
31
  function NextButton({ nextPage, className }) {
36
- var _a, _b;
32
+ var _a, _b, _c, _d, _e, _f;
37
33
  const { navigation } = (0, hooks_1.useThemeConfig)();
38
- const { useTranslate } = (0, hooks_1.useThemeHooks)();
34
+ const { useTranslate, usePageProps } = (0, hooks_1.useThemeHooks)();
35
+ const { frontmatter } = usePageProps();
39
36
  const { translate } = useTranslate();
40
- if (!nextPage || ((_a = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _a === void 0 ? void 0 : _a.hide)) {
37
+ const translationKey = 'page.nextButton';
38
+ const label = ((_b = (_a = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _a === void 0 ? void 0 : _a.nextButton) === null || _b === void 0 ? void 0 : _b.label) || (nextPage === null || nextPage === void 0 ? void 0 : nextPage.label) || (nextPage === null || nextPage === void 0 ? void 0 : nextPage.routeSlug) || '';
39
+ const link = ((_d = (_c = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _c === void 0 ? void 0 : _c.nextButton) === null || _d === void 0 ? void 0 : _d.link) || (nextPage === null || nextPage === void 0 ? void 0 : nextPage.link);
40
+ const text = ((_e = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _e === void 0 ? void 0 : _e.text) || translate(translationKey, { defaultValue: 'Next page' });
41
+ if (((_f = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _f === void 0 ? void 0 : _f.hide) || !link || !label) {
41
42
  return React.createElement("div", null, "\u00A0");
42
43
  }
43
- const nextPageText = nextPage.label || nextPage.routeSlug || '';
44
- const translationKey = 'page.nextButton';
45
- const label = ((_b = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _b === void 0 ? void 0 : _b.text) || translate(translationKey, { defaultValue: 'Next page' });
46
- return (React.createElement(NextButtonWrapper, { "data-component-name": "PageNavigation/NextButton", "data-translation-key": translationKey },
47
- React.createElement(NextPageLabel, null, label),
48
- React.createElement(NextPageButton, { size: "large", to: nextPage.link, extraClass: className, variant: "link", icon: React.createElement(ArrowRightIcon_1.ArrowRightIcon, null), iconPosition: "right" }, nextPageText)));
44
+ return (React.createElement(NavigationButton_1.NavigationButton, { label: label, link: link, text: text, translationKey: translationKey, position: "right", className: className, icon: React.createElement(ArrowRightIcon_1.ArrowRightIcon, null) }));
49
45
  }
50
- const NextButtonWrapper = styled_components_1.default.div `
51
- display: flex;
52
- flex-direction: column;
53
- text-align: right;
54
- `;
55
- const NextPageButton = (0, styled_components_1.default)(Button_1.Button) `
56
- text-wrap: wrap;
57
- padding-left: 0;
58
- padding-right: 0;
59
- `;
60
- const NextPageLabel = styled_components_1.default.span `
61
- font-size: var(--font-size-sm);
62
- line-height: var(--line-height-sm);
63
- font-weight: var(--font-weight-regular);
64
- `;
65
46
  //# sourceMappingURL=NextButton.js.map
@@ -7,8 +7,8 @@ exports.PageNavigation = PageNavigation;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const hooks_1 = require("../../core/hooks");
10
- const PreviousButton_1 = require("../../components/PageNavigation/PreviousButton");
11
10
  const NextButton_1 = require("../../components/PageNavigation/NextButton");
11
+ const PreviousButton_1 = require("../../components/PageNavigation/PreviousButton");
12
12
  function PageNavigation({ nextPage, prevPage, className, }) {
13
13
  var _a, _b;
14
14
  const { navigation } = (0, hooks_1.useThemeConfig)();
@@ -5,39 +5,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PreviousButton = PreviousButton;
7
7
  const react_1 = __importDefault(require("react"));
8
- const styled_components_1 = __importDefault(require("styled-components"));
8
+ const NavigationButton_1 = require("../../components/PageNavigation/NavigationButton");
9
9
  const hooks_1 = require("../../core/hooks");
10
- const Button_1 = require("../../components/Button/Button");
11
10
  const ArrowLeftIcon_1 = require("../../icons/ArrowLeftIcon/ArrowLeftIcon");
12
11
  function PreviousButton({ prevPage, className }) {
13
- var _a, _b;
12
+ var _a, _b, _c, _d, _e, _f;
14
13
  const { navigation } = (0, hooks_1.useThemeConfig)();
15
- const { useTranslate } = (0, hooks_1.useThemeHooks)();
14
+ const { useTranslate, usePageProps } = (0, hooks_1.useThemeHooks)();
15
+ const { frontmatter } = usePageProps();
16
16
  const { translate } = useTranslate();
17
- if (!prevPage || ((_a = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _a === void 0 ? void 0 : _a.hide)) {
18
- return react_1.default.createElement("div", null, "\u00A0");
19
- }
20
- const prevPageText = prevPage.label || prevPage.routeSlug || '';
21
17
  const translationKey = 'page.previousButton';
22
- const label = ((_b = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _b === void 0 ? void 0 : _b.text) ||
18
+ const label = ((_b = (_a = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _a === void 0 ? void 0 : _a.previousButton) === null || _b === void 0 ? void 0 : _b.label) || (prevPage === null || prevPage === void 0 ? void 0 : prevPage.label) || (prevPage === null || prevPage === void 0 ? void 0 : prevPage.routeSlug) || '';
19
+ const link = ((_d = (_c = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _c === void 0 ? void 0 : _c.previousButton) === null || _d === void 0 ? void 0 : _d.link) || (prevPage === null || prevPage === void 0 ? void 0 : prevPage.link);
20
+ const text = ((_e = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _e === void 0 ? void 0 : _e.text) ||
23
21
  translate(translationKey, { defaultValue: 'Previous page' });
24
- return (react_1.default.createElement(PreviousButtonWrapper, { "data-component-name": "PageNavigation/PreviousButton", "data-translation-key": translationKey },
25
- react_1.default.createElement(PreviousPageLabel, null, label),
26
- react_1.default.createElement(PreviousPageButton, { size: "large", to: prevPage.link, extraClass: className, variant: "link", icon: react_1.default.createElement(ArrowLeftIcon_1.ArrowLeftIcon, null), iconPosition: "left" }, prevPageText)));
22
+ if (((_f = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _f === void 0 ? void 0 : _f.hide) || !link || !label) {
23
+ return react_1.default.createElement("div", null, "\u00A0");
24
+ }
25
+ return (react_1.default.createElement(NavigationButton_1.NavigationButton, { label: label, link: link, text: text, translationKey: translationKey, position: "left", className: className, icon: react_1.default.createElement(ArrowLeftIcon_1.ArrowLeftIcon, null) }));
27
26
  }
28
- const PreviousButtonWrapper = styled_components_1.default.div `
29
- display: flex;
30
- flex-direction: column;
31
- text-align: left;
32
- `;
33
- const PreviousPageButton = (0, styled_components_1.default)(Button_1.Button) `
34
- text-wrap: wrap;
35
- padding-left: 0;
36
- padding-right: 0;
37
- `;
38
- const PreviousPageLabel = styled_components_1.default.span `
39
- font-size: var(--font-size-sm);
40
- line-height: var(--line-height-sm);
41
- font-weight: var(--font-weight-regular);
42
- `;
43
27
  //# sourceMappingURL=PreviousButton.js.map
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SearchAiConversationInput = SearchAiConversationInput;
30
30
  const react_1 = __importStar(require("react"));
31
31
  const styled_components_1 = __importDefault(require("styled-components"));
32
+ const constants_1 = require("../../core/constants");
32
33
  const Button_1 = require("../../components/Button/Button");
33
34
  const SendIcon_1 = require("../../icons/SendIcon/SendIcon");
34
35
  const hooks_1 = require("../../core/hooks");
@@ -56,7 +57,7 @@ function SearchAiConversationInput({ isGeneratingResponse, onMessageSent, classN
56
57
  };
57
58
  const isDisabled = isGeneratingResponse || query.trim().length === 0;
58
59
  return (react_1.default.createElement(SearchAiConversationInputWrapper, { "data-component-name": "Search/SearchAiConversationInput", className: className },
59
- react_1.default.createElement(ConversationInput, { ref: inputRef, type: "text", placeholder: placeholder || translate('search.ai.followUpQuestion', 'Ask a follow up question?'), onChange: (e) => setQuery(e.target.value), onKeyUp: handleOnKeyUp, value: query, disabled: isGeneratingResponse }),
60
+ react_1.default.createElement(ConversationInput, { ref: inputRef, type: "text", placeholder: placeholder || translate('search.ai.followUpQuestion', 'Ask a follow up question?'), onChange: (e) => setQuery(e.target.value), onKeyUp: handleOnKeyUp, value: query, disabled: isGeneratingResponse, maxLength: constants_1.AI_SEARCH_MAX_MESSAGE_LENGTH }),
60
61
  react_1.default.createElement(SendButton, { disabled: isDisabled, size: "small", icon: react_1.default.createElement(SendIcon_1.SendIcon, { color: isDisabled
61
62
  ? '--button-content-color-disabled'
62
63
  : 'var(--search-ai-conversation-input-send-button-icon-color)' }), onClick: handleSendMessage })));
@@ -43,9 +43,8 @@ function Select(props) {
43
43
  return values
44
44
  .map((value) => {
45
45
  const selectedOption = options.find((option) => option.value === value);
46
- return selectedOption || typeof value === 'string'
47
- ? { value }
48
- : value;
46
+ return (selectedOption ||
47
+ (typeof value === 'string' ? { value } : value));
49
48
  })
50
49
  .filter((option) => !!option);
51
50
  };
@@ -207,5 +206,6 @@ const SelectDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown) `
207
206
  `;
208
207
  const SelectDropdownMenu = (0, styled_components_1.default)(DropdownMenu_1.DropdownMenu) `
209
208
  width: 100%;
209
+ margin-top: var(--spacing-unit);
210
210
  `;
211
211
  //# sourceMappingURL=Select.js.map
@@ -18,3 +18,6 @@ export type SidebarProps = {
18
18
  menuItemsAnimation?: MenuItemsAnimation;
19
19
  };
20
20
  export declare function Sidebar({ versions, menu, footer, header, growContent, collapsed, className, menuItemsAnimation, }: SidebarProps): JSX.Element | null;
21
+ export declare const SidebarHeader: import("styled-components").StyledComponent<"div", any, {
22
+ collapsed?: boolean;
23
+ }, never>;
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SidebarHeader = void 0;
29
30
  exports.Sidebar = Sidebar;
30
31
  const react_1 = __importStar(require("react"));
31
32
  const styled_components_1 = __importDefault(require("styled-components"));
@@ -43,7 +44,7 @@ function Sidebar({ versions, menu, footer, header, growContent, collapsed, class
43
44
  return null;
44
45
  }
45
46
  return (react_1.default.createElement(SidebarContent, { "data-component-name": "Sidebar/Sidebar", opened: isOpen, className: className, collapsed: mappedCollapsed },
46
- header ? react_1.default.createElement(SidebarHeader, { collapsed: mappedCollapsed }, header) : null,
47
+ header ? react_1.default.createElement(exports.SidebarHeader, { collapsed: mappedCollapsed }, header) : null,
47
48
  !mappedCollapsed && versions ? versions : null,
48
49
  react_1.default.createElement(MenuContainer_1.MenuContainer, { hidden: mappedCollapsed, growContent: growContent, animation: menuItemsAnimation }, menu),
49
50
  footer && !isOpen ? (react_1.default.createElement(SidebarFooter, { collapsed: mappedCollapsed, "data-component-name": "Sidebar/FooterWrapper" }, footer)) : null));
@@ -94,7 +95,7 @@ const SidebarContent = styled_components_1.default.aside `
94
95
  transform: none;
95
96
  }
96
97
  `;
97
- const SidebarHeader = styled_components_1.default.div `
98
+ exports.SidebarHeader = styled_components_1.default.div `
98
99
  margin: var(--sidebar-offset-top) var(--sidebar-margin-horizontal) 0
99
100
  var(--sidebar-margin-horizontal);
100
101
  padding: 0 0 var(--sidebar-header-padding-bottom) 0;
@@ -21,10 +21,12 @@ export type TagProps = {
21
21
  icon?: React.ReactNode;
22
22
  active?: boolean;
23
23
  tabIndex?: number;
24
+ style?: React.CSSProperties;
24
25
  onClick?: (event: React.MouseEvent) => void;
25
26
  onKeyDown?: (event: React.KeyboardEvent) => void;
26
27
  onClose?: (event: React.MouseEvent) => void;
28
+ maxLength?: number;
27
29
  };
28
- export declare function Tag({ children, color, icon, active, closable, tabIndex, onClick, onKeyDown, onClose, size, borderless, withStatusDot, statusDotColor, ...otherProps }: TagProps): JSX.Element;
30
+ export declare function Tag({ children, color, icon, active, closable, tabIndex, onClick, onKeyDown, onClose, size, borderless, withStatusDot, statusDotColor, maxLength, ...otherProps }: TagProps): JSX.Element;
29
31
  export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
30
32
  export {};
@@ -21,10 +21,62 @@ const styled_components_1 = __importDefault(require("styled-components"));
21
21
  const CloseIcon_1 = require("../../icons/CloseIcon/CloseIcon");
22
22
  const CheckmarkFilledIcon_1 = require("../../icons/CheckmarkFilledIcon/CheckmarkFilledIcon");
23
23
  function Tag(_a) {
24
- var { children, color, icon, active, closable, tabIndex, onClick, onKeyDown, onClose, size, borderless, withStatusDot, statusDotColor = 'var(--tag-status-dot-color-default)' } = _a, otherProps = __rest(_a, ["children", "color", "icon", "active", "closable", "tabIndex", "onClick", "onKeyDown", "onClose", "size", "borderless", "withStatusDot", "statusDotColor"]);
24
+ var { children, color, icon, active, closable, tabIndex, onClick, onKeyDown, onClose, size, borderless, withStatusDot, statusDotColor = 'var(--tag-status-dot-color-default)', maxLength } = _a, otherProps = __rest(_a, ["children", "color", "icon", "active", "closable", "tabIndex", "onClick", "onKeyDown", "onClose", "size", "borderless", "withStatusDot", "statusDotColor", "maxLength"]);
25
+ const truncateText = (text, maxLen) => {
26
+ if (text.length <= maxLen)
27
+ return text;
28
+ return text.slice(0, maxLen) + '...';
29
+ };
30
+ const extractTextFromElement = (element) => {
31
+ if (typeof element === 'string') {
32
+ return element;
33
+ }
34
+ if (typeof element === 'number') {
35
+ return element.toString();
36
+ }
37
+ if (react_1.default.isValidElement(element)) {
38
+ const props = element.props;
39
+ if (typeof props.children === 'string') {
40
+ return props.children;
41
+ }
42
+ }
43
+ return '';
44
+ };
45
+ const truncateJSXElement = (element, maxLen) => {
46
+ if (typeof element === 'string') {
47
+ return truncateText(element, maxLen);
48
+ }
49
+ if (typeof element === 'number') {
50
+ const numStr = element.toString();
51
+ return numStr.length > maxLen ? truncateText(numStr, maxLen) : element;
52
+ }
53
+ if (react_1.default.isValidElement(element)) {
54
+ const textContent = extractTextFromElement(element);
55
+ if (textContent.length <= maxLen) {
56
+ return element;
57
+ }
58
+ const props = element.props;
59
+ if (typeof props.children === 'string') {
60
+ return react_1.default.cloneElement(element, Object.assign(Object.assign({}, props), { children: truncateText(props.children, maxLen) }));
61
+ }
62
+ }
63
+ return element;
64
+ };
65
+ const renderChildren = () => {
66
+ if (!maxLength) {
67
+ return children;
68
+ }
69
+ if (typeof children === 'string') {
70
+ return truncateText(children, maxLength);
71
+ }
72
+ if (react_1.default.isValidElement(children)) {
73
+ return truncateJSXElement(children, maxLength);
74
+ }
75
+ return children;
76
+ };
25
77
  return (react_1.default.createElement(TagWrapper, Object.assign({ tabIndex: tabIndex, "data-component-name": "Tag/Tag", borderless: borderless, color: color, size: size, onClick: onClick, onKeyDown: onKeyDown, hasCloseButton: closable }, otherProps),
26
78
  withStatusDot ? react_1.default.createElement(StatusDot, { color: statusDotColor }) : icon ? icon : null,
27
- react_1.default.createElement(exports.ContentWrapper, null, children),
79
+ react_1.default.createElement(exports.ContentWrapper, null, renderChildren()),
28
80
  closable && (react_1.default.createElement(CloseButton, { onClick: (event) => {
29
81
  onClose === null || onClose === void 0 ? void 0 : onClose(event);
30
82
  } },
@@ -162,6 +162,27 @@ exports.tag = (0, styled_components_1.css) `
162
162
  --tag-close-button-bg-color-hover: var(--color-warm-grey-3); // @presenter Color
163
163
  }
164
164
 
165
+ .tag-grass {
166
+ --tag-color: var(--color-grass-8); // @presenter Color
167
+ --tag-bg-color: transparent; // @presenter Color
168
+ --tag-border-color: var(--color-grass-4); // @presenter Color
169
+ --tag-close-button-bg-color-hover: var(--color-grass-1); // @presenter Color
170
+ }
171
+
172
+ .tag-purple {
173
+ --tag-color: var(--color-purple-7); // @presenter Color
174
+ --tag-bg-color: transparent; // @presenter Color
175
+ --tag-border-color: var(--color-purple-4); // @presenter Color
176
+ --tag-close-button-bg-color-hover: var(--color-purple-1); // @presenter Color
177
+ }
178
+
179
+ .tag-sky {
180
+ --tag-color: var(--color-sky-9); // @presenter Color
181
+ --tag-bg-color: transparent; // @presenter Color
182
+ --tag-border-color: var(--color-sky-5); // @presenter Color
183
+ --tag-close-button-bg-color-hover: var(--color-sky-2); // @presenter Color
184
+ }
185
+
165
186
  /**
166
187
  * @tokens Tag http
167
188
  */
@@ -8,6 +8,7 @@ export type TooltipProps = {
8
8
  className?: string;
9
9
  width?: string;
10
10
  dataTestId?: string;
11
+ disabled?: boolean;
11
12
  };
12
- export declare function TooltipComponent({ children, isOpen, tip, withArrow, placement, className, width, dataTestId, }: PropsWithChildren<TooltipProps>): JSX.Element;
13
+ export declare function TooltipComponent({ children, isOpen, tip, withArrow, placement, className, width, dataTestId, disabled, }: PropsWithChildren<TooltipProps>): JSX.Element;
13
14
  export declare const Tooltip: React.NamedExoticComponent<React.PropsWithChildren<TooltipProps>>;
@@ -28,13 +28,13 @@ exports.TooltipComponent = TooltipComponent;
28
28
  const react_1 = __importStar(require("react"));
29
29
  const styled_components_1 = __importStar(require("styled-components"));
30
30
  const hooks_1 = require("../../core/hooks");
31
- function TooltipComponent({ children, isOpen, tip, withArrow = true, placement = 'top', className = 'default', width, dataTestId, }) {
31
+ function TooltipComponent({ children, isOpen, tip, withArrow = true, placement = 'top', className = 'default', width, dataTestId, disabled = false, }) {
32
32
  const ref = (0, react_1.useRef)(null);
33
33
  const { isOpened, handleOpen, handleClose } = (0, hooks_1.useControl)(isOpen);
34
34
  (0, hooks_1.useOutsideClick)(ref, handleClose);
35
35
  const isControlled = isOpen !== undefined;
36
36
  (0, react_1.useEffect)(() => {
37
- if (isControlled) {
37
+ if (isControlled && !disabled) {
38
38
  if (isOpen) {
39
39
  handleOpen();
40
40
  }
@@ -42,15 +42,16 @@ function TooltipComponent({ children, isOpen, tip, withArrow = true, placement =
42
42
  handleClose();
43
43
  }
44
44
  }
45
- }, [isOpen, isControlled, handleOpen, handleClose]);
46
- const controllers = !isControlled && {
45
+ }, [isOpen, isControlled, handleOpen, handleClose, disabled]);
46
+ const controllers = !isControlled &&
47
+ !disabled && {
47
48
  onMouseEnter: handleOpen,
48
49
  onMouseLeave: handleClose,
49
50
  onClick: handleClose,
50
51
  };
51
52
  return (react_1.default.createElement(TooltipWrapper, Object.assign({ ref: ref }, controllers, { className: `tooltip-${className}`, "data-component-name": "Tooltip/Tooltip" }),
52
53
  children,
53
- isOpened && (react_1.default.createElement(TooltipBody, { "data-testid": dataTestId || (typeof tip === 'string' ? tip : ''), placement: placement, width: width, withArrow: withArrow }, tip))));
54
+ isOpened && !disabled && (react_1.default.createElement(TooltipBody, { "data-testid": dataTestId || (typeof tip === 'string' ? tip : ''), placement: placement, width: width, withArrow: withArrow }, tip))));
54
55
  }
55
56
  exports.Tooltip = (0, react_1.memo)(TooltipComponent);
56
57
  const PLACEMENTS = {
@@ -63,10 +64,11 @@ const PLACEMENTS = {
63
64
  ${({ withArrow }) => withArrow &&
64
65
  (0, styled_components_1.css) `
65
66
  &::after {
66
- border-left: 5px solid transparent;
67
- border-right: 5px solid transparent;
68
- border-top-width: 6px;
67
+ border-left: 6px solid transparent;
68
+ border-right: 6px solid transparent;
69
+ border-top-width: 8px;
69
70
  border-top-style: solid;
71
+ border-radius: 2px 2px 0 0;
70
72
  bottom: 0;
71
73
  left: 50%;
72
74
  transform: translate(-50%, 99%);
@@ -82,10 +84,11 @@ const PLACEMENTS = {
82
84
  ${({ withArrow }) => withArrow &&
83
85
  (0, styled_components_1.css) `
84
86
  &::after {
85
- border-left: 5px solid transparent;
86
- border-right: 5px solid transparent;
87
- border-bottom-width: 6px;
87
+ border-left: 6px solid transparent;
88
+ border-right: 6px solid transparent;
89
+ border-bottom-width: 8px;
88
90
  border-bottom-style: solid;
91
+ border-radius: 0 0 2px 2px;
89
92
  top: 0;
90
93
  left: 50%;
91
94
  transform: translate(-50%, -99%);
@@ -101,10 +104,11 @@ const PLACEMENTS = {
101
104
  ${({ withArrow }) => withArrow &&
102
105
  (0, styled_components_1.css) `
103
106
  &::after {
104
- border-top: 5px solid transparent;
105
- border-bottom: 5px solid transparent;
106
- border-left-width: 6px;
107
+ border-top: 6px solid transparent;
108
+ border-bottom: 6px solid transparent;
109
+ border-left-width: 8px;
107
110
  border-left-style: solid;
111
+ border-radius: 2px 0 0 2px;
108
112
  top: 50%;
109
113
  right: 0;
110
114
  transform: translate(99%, -50%);
@@ -120,10 +124,11 @@ const PLACEMENTS = {
120
124
  ${({ withArrow }) => withArrow &&
121
125
  (0, styled_components_1.css) `
122
126
  &::after {
123
- border-top: 5px solid transparent;
124
- border-bottom: 5px solid transparent;
125
- border-right-width: 6px;
127
+ border-top: 6px solid transparent;
128
+ border-bottom: 6px solid transparent;
129
+ border-right-width: 8px;
126
130
  border-right-style: solid;
131
+ border-radius: 0 2px 2px 0;
127
132
  top: 50%;
128
133
  left: 0;
129
134
  transform: translate(-99%, -50%);
@@ -146,7 +151,7 @@ const TooltipBody = styled_components_1.default.span `
146
151
  white-space: normal;
147
152
  overflow-wrap: break-word;
148
153
 
149
- border-radius: var(--border-radius);
154
+ border-radius: var(--border-radius-md);
150
155
  transition: opacity 0.3s ease-out;
151
156
 
152
157
  font-size: 13px;
@@ -160,11 +165,13 @@ const TooltipBody = styled_components_1.default.span `
160
165
  display: inline-block;
161
166
  width: 0;
162
167
  height: 0;
163
- border-color: var(--tooltip-bg-color);
168
+ border-color: var(--tooltip-arrow-color, var(--tooltip-bg-color));
164
169
  }
165
170
 
166
171
  background: var(--tooltip-bg-color);
167
172
  color: var(--tooltip-text-color);
173
+ border: var(--tooltip-border-width, 0) var(--tooltip-border-style, solid)
174
+ var(--tooltip-border-color, transparent);
168
175
  box-shadow: rgb(0 0 0 / 25%) 0 2px 4px;
169
176
 
170
177
  width: ${({ width }) => width || '120px'};
@@ -10,6 +10,10 @@ exports.tooltip = (0, styled_components_1.css) `
10
10
 
11
11
  --tooltip-text-color: var(--text-color-secondary);
12
12
  --tooltip-bg-color: var(--bg-color-raised);
13
+ --tooltip-arrow-color: var(--tooltip-bg-color);
14
+ --tooltip-border-width: 0;
15
+ --tooltip-border-style: solid;
16
+ --tooltip-border-color: transparent;
13
17
  --tooltip-padding-vertical: var(--spacing-xs);
14
18
  --tooltip-padding-horizontal: var(--spacing-sm);
15
19
  --tooltip-padding: var(--tooltip-padding-vertical) var(--tooltip-padding-horizontal);
@@ -18,6 +22,19 @@ exports.tooltip = (0, styled_components_1.css) `
18
22
  .tooltip-copy-button {
19
23
  --tooltip-text-color: var(--text-color-secondary);
20
24
  --tooltip-bg-color: var(--bg-color-raised);
25
+ --tooltip-arrow-color: var(--tooltip-bg-color);
26
+ }
27
+
28
+ .tooltip-catalog {
29
+ --tooltip-text-color: var(--text-color-primary);
30
+ --tooltip-bg-color: var(--layer-color);
31
+ --tooltip-arrow-color: var(--border-color-secondary);
32
+ --tooltip-border-width: 2px;
33
+ --tooltip-border-color: var(--border-color-secondary);
34
+ --tooltip-padding-vertical: var(--spacing-xs);
35
+ --tooltip-padding-horizontal: var(--spacing-sm);
36
+ --tooltip-padding: var(--tooltip-padding-vertical) var(--tooltip-padding-horizontal);
37
+ --tooltip-max-width: 300px;
21
38
  }
22
39
 
23
40
  // @tokens End
@@ -0,0 +1 @@
1
+ export declare const CATALOG_TAG_MAX_LENGTH = 15;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CATALOG_TAG_MAX_LENGTH = void 0;
4
+ exports.CATALOG_TAG_MAX_LENGTH = 15;
5
+ //# sourceMappingURL=catalog.js.map
@@ -2,3 +2,4 @@ export * from '../../core/constants/common';
2
2
  export * from '../../core/constants/environments';
3
3
  export * from '../../core/constants/code-walkthrough';
4
4
  export * from '../../core/constants/search';
5
+ export * from '../../core/constants/catalog';
@@ -18,4 +18,5 @@ __exportStar(require("../../core/constants/common"), exports);
18
18
  __exportStar(require("../../core/constants/environments"), exports);
19
19
  __exportStar(require("../../core/constants/code-walkthrough"), exports);
20
20
  __exportStar(require("../../core/constants/search"), exports);
21
+ __exportStar(require("../../core/constants/catalog"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -11,4 +11,5 @@ export declare const enum AiSearchConversationRole {
11
11
  ASSISTANT = "assistant"
12
12
  }
13
13
  export declare const AI_SEARCH_ERROR_CONFIG: Record<AiSearchError, AiSearchErrorConfig>;
14
+ export declare const AI_SEARCH_MAX_MESSAGE_LENGTH = 45000;
14
15
  export declare const SEARCH_DEBOUNCE_TIME_MS = 300;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SEARCH_DEBOUNCE_TIME_MS = exports.AI_SEARCH_ERROR_CONFIG = exports.AiSearchConversationRole = exports.AiSearchError = void 0;
3
+ exports.SEARCH_DEBOUNCE_TIME_MS = exports.AI_SEARCH_MAX_MESSAGE_LENGTH = exports.AI_SEARCH_ERROR_CONFIG = exports.AiSearchConversationRole = exports.AiSearchError = void 0;
4
4
  var AiSearchError;
5
5
  (function (AiSearchError) {
6
6
  AiSearchError["Unauthorized"] = "ai_search_unauthorized";
@@ -37,5 +37,6 @@ exports.AI_SEARCH_ERROR_CONFIG = {
37
37
  [AiSearchError.EmptyResponse]: defaultErrorConfig,
38
38
  [AiSearchError.ErrorProcessingResponse]: defaultErrorConfig,
39
39
  };
40
+ exports.AI_SEARCH_MAX_MESSAGE_LENGTH = 45000;
40
41
  exports.SEARCH_DEBOUNCE_TIME_MS = 300;
41
42
  //# sourceMappingURL=search.js.map
@@ -63,4 +63,5 @@ export declare const useThemeHooks: jest.Mock<{
63
63
  submitFeedback: jest.Mock<any, any, any>;
64
64
  }, [], any>;
65
65
  useLoadAndNavigate: jest.Mock<any, any, any>;
66
+ usePageProps: jest.Mock<any, any, any>;
66
67
  }, [], any>;
@@ -86,5 +86,6 @@ exports.useThemeHooks = jest.fn(() => ({
86
86
  submitFeedback: jest.fn(),
87
87
  })),
88
88
  useLoadAndNavigate: jest.fn(),
89
+ usePageProps: jest.fn().mockReturnValue({}),
89
90
  }));
90
91
  //# sourceMappingURL=use-theme-hooks.js.map
@@ -0,0 +1,4 @@
1
+ import type { UseCatalogEntitiesProps } from '../../../index.js';
2
+ export declare function useCatalogEntities({ entitiesTypes, excludedEntities }: UseCatalogEntitiesProps): {
3
+ initialFilter: string;
4
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCatalogEntities = useCatalogEntities;
4
+ function useCatalogEntities({ entitiesTypes, excludedEntities }) {
5
+ const initialTypesWithoutAll = entitiesTypes.filter((type) => type !== 'all');
6
+ const initialTypesFilter = entitiesTypes.length ? `type:${initialTypesWithoutAll.join(',')}` : '';
7
+ const initialExcludedEntitiesFilter = (excludedEntities === null || excludedEntities === void 0 ? void 0 : excludedEntities.length)
8
+ ? `-key:${excludedEntities.map((entity) => entity.key).join(',')}`
9
+ : '';
10
+ const initialFilter = initialTypesFilter
11
+ ? `${initialTypesFilter} AND ${initialExcludedEntitiesFilter}`
12
+ : initialExcludedEntitiesFilter;
13
+ return {
14
+ initialFilter,
15
+ };
16
+ }
17
+ //# sourceMappingURL=useCatalogEntities.js.map
@@ -0,0 +1,15 @@
1
+ import { BaseEntity, CatalogColumn } from '../../../components/Catalog/CatalogTableView/CatalogTableView';
2
+ import { SortOption } from '../../types';
3
+ type CatalogTableHeaderCellActionsProps<T extends BaseEntity> = {
4
+ column: CatalogColumn<T>;
5
+ handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
6
+ setSortOption: (sortOption: SortOption | null) => void;
7
+ isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
8
+ };
9
+ export declare function useCatalogTableHeaderCellActions<T extends BaseEntity>({ column, handleSortClick, setSortOption, isColumnSorted, }: CatalogTableHeaderCellActionsProps<T>): {
10
+ handleCellClick: () => void;
11
+ sortKey: string | undefined;
12
+ isUpActive: boolean;
13
+ isDownActive: boolean;
14
+ };
15
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCatalogTableHeaderCellActions = useCatalogTableHeaderCellActions;
4
+ function useCatalogTableHeaderCellActions({ column, handleSortClick, setSortOption, isColumnSorted, }) {
5
+ const sortKey = column.sortKey;
6
+ const isUpActive = sortKey ? isColumnSorted(sortKey, 'desc') : false;
7
+ const isDownActive = sortKey ? isColumnSorted(sortKey, 'asc') : false;
8
+ const handleCellClick = () => {
9
+ if (!column.sortable || !sortKey)
10
+ return;
11
+ if (isDownActive) {
12
+ handleSortClick(sortKey, 'desc');
13
+ }
14
+ else if (isUpActive) {
15
+ setSortOption(null);
16
+ }
17
+ else {
18
+ handleSortClick(sortKey, 'asc');
19
+ }
20
+ };
21
+ return { handleCellClick, sortKey, isUpActive, isDownActive };
22
+ }
23
+ //# sourceMappingURL=useCatalogTableHeaderCellActions.js.map
@@ -0,0 +1,11 @@
1
+ import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
2
+ type CatalogTableViewRowProps = {
3
+ entityKey: string;
4
+ entityType: string;
5
+ catalogConfig: CatalogEntityConfig;
6
+ entitiesCatalogConfig?: EntitiesCatalogConfig;
7
+ };
8
+ export declare function useCatalogTableViewRow({ entityKey, entityType, catalogConfig, entitiesCatalogConfig, }: CatalogTableViewRowProps): {
9
+ getEntityDetailsLink: () => string;
10
+ };
11
+ export {};