@reltio/design 0.1.0 → 0.2.0

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 (565) hide show
  1. package/charts/Chart/Chart.d.ts +4 -0
  2. package/charts/Chart/Chart.js +59 -0
  3. package/charts/Chart/Chart.module.css.d.ts +2 -0
  4. package/charts/Chart/Chart.module.css.js +8 -0
  5. package/charts/Chart/Chart.module.css.json +1 -0
  6. package/charts/Chart/Chart.types.d.ts +24 -0
  7. package/charts/Chart/Chart.types.js +1 -0
  8. package/charts/Chart/index.d.ts +2 -0
  9. package/charts/Chart/index.js +1 -0
  10. package/charts/Chart/theme.d.ts +67 -0
  11. package/charts/Chart/theme.js +85 -0
  12. package/charts/LineChart/LineChart.d.ts +2 -0
  13. package/charts/LineChart/LineChart.js +76 -0
  14. package/charts/LineChart/LineChart.module.css.d.ts +2 -0
  15. package/charts/LineChart/LineChart.module.css.js +25 -0
  16. package/charts/LineChart/LineChart.module.css.json +1 -0
  17. package/charts/LineChart/LineChart.types.d.ts +38 -0
  18. package/charts/LineChart/LineChart.types.js +1 -0
  19. package/charts/LineChart/index.d.ts +2 -0
  20. package/charts/LineChart/index.js +1 -0
  21. package/charts/index.d.ts +1 -0
  22. package/charts/index.js +1 -0
  23. package/components/AssistantLoader/AssistantLoader.d.ts +1 -2
  24. package/components/AssistantLoader/AssistantLoader.js +7 -4
  25. package/components/AssistantLoader/AssistantLoader.module.css.js +30 -62
  26. package/components/AssistantLoader/AssistantLoader.module.css.json +1 -1
  27. package/components/AssistantLoader/AssistantLoader.types.d.ts +5 -13
  28. package/components/Button/Button.d.ts +1 -1
  29. package/components/Button/Button.js +3 -44
  30. package/components/Button/Button.module.css.js +54 -103
  31. package/components/Button/Button.module.css.json +1 -1
  32. package/components/Button/Button.types.d.ts +7 -31
  33. package/components/Chat/Chat.js +1 -3
  34. package/components/Chat/Chat.module.css.js +18 -31
  35. package/components/Chat/Chat.module.css.json +1 -1
  36. package/components/Chat/Chat.types.d.ts +3 -11
  37. package/components/Chat/components/AssistantMessage/AssistantMessage.d.ts +1 -2
  38. package/components/Chat/components/AssistantMessage/AssistantMessage.module.css.js +4 -16
  39. package/components/Chat/components/AssistantMessage/AssistantMessage.module.css.json +1 -1
  40. package/components/Chat/components/AssistantMessage/AssistantMessage.types.d.ts +3 -10
  41. package/components/Chat/components/UserMessage/UserMessage.module.css.js +9 -4
  42. package/components/Chat/components/UserMessage/UserMessage.module.css.json +1 -1
  43. package/components/Chat/components/UserMessage/UserMessage.types.d.ts +3 -11
  44. package/components/Details/Details.d.ts +1 -1
  45. package/components/Details/Details.js +2 -7
  46. package/components/Details/Details.module.css.js +57 -44
  47. package/components/Details/Details.module.css.json +1 -1
  48. package/components/Details/Details.types.d.ts +4 -51
  49. package/components/ErrorMessage/ErrorMessage.js +1 -1
  50. package/components/ErrorMessage/ErrorMessage.module.css.js +12 -24
  51. package/components/ErrorMessage/ErrorMessage.module.css.json +1 -1
  52. package/components/ErrorMessage/ErrorMessage.types.d.ts +3 -6
  53. package/components/Markdown/Markdown.d.ts +1 -1
  54. package/components/Markdown/Markdown.js +2 -2
  55. package/components/Markdown/Markdown.module.css.js +87 -109
  56. package/components/Markdown/Markdown.module.css.json +1 -1
  57. package/components/Markdown/Markdown.types.d.ts +1 -51
  58. package/components/Skeleton/Skeleton.d.ts +1 -1
  59. package/components/Skeleton/Skeleton.js +3 -2
  60. package/components/Skeleton/Skeleton.module.css.js +13 -15
  61. package/components/Skeleton/Skeleton.module.css.json +1 -1
  62. package/components/Skeleton/Skeleton.types.d.ts +5 -23
  63. package/components/TextArea/TextArea.d.ts +3 -22
  64. package/components/TextArea/TextArea.js +3 -6
  65. package/components/TextArea/TextArea.module.css.js +65 -79
  66. package/components/TextArea/TextArea.module.css.json +1 -1
  67. package/components/TextArea/TextArea.types.d.ts +2 -21
  68. package/components/TreeList/TreeList.module.css.js +7 -12
  69. package/components/TreeList/TreeList.module.css.json +1 -1
  70. package/components/TreeList/components/TreeLevelLines/TreeLevelLines.module.css.js +12 -15
  71. package/components/TreeList/components/TreeLevelLines/TreeLevelLines.module.css.json +1 -1
  72. package/components/TreeList/components/TreeNode/TreeNode.module.css.js +19 -21
  73. package/components/TreeList/components/TreeNode/TreeNode.module.css.json +1 -1
  74. package/icons/AccessTime.d.ts +2 -0
  75. package/icons/AccessTime.js +6 -0
  76. package/icons/Accessibility.d.ts +2 -0
  77. package/icons/Accessibility.js +6 -0
  78. package/icons/AccountCircle.d.ts +1 -1
  79. package/icons/AccountCircle.js +2 -2
  80. package/icons/AcessConversations.d.ts +2 -0
  81. package/icons/AcessConversations.js +6 -0
  82. package/icons/ActionsMenu.d.ts +2 -0
  83. package/icons/ActionsMenu.js +6 -0
  84. package/icons/ActivateUser.d.ts +2 -0
  85. package/icons/ActivateUser.js +6 -0
  86. package/icons/Add.d.ts +1 -1
  87. package/icons/Add.js +2 -2
  88. package/icons/AddChild.d.ts +2 -0
  89. package/icons/AddChild.js +6 -0
  90. package/icons/AddCircle.d.ts +2 -0
  91. package/icons/AddCircle.js +6 -0
  92. package/icons/AddParent.d.ts +2 -0
  93. package/icons/AddParent.js +6 -0
  94. package/icons/AddSibling.d.ts +2 -0
  95. package/icons/AddSibling.js +6 -0
  96. package/icons/AdvancedProperties.d.ts +2 -0
  97. package/icons/AdvancedProperties.js +6 -0
  98. package/icons/AdvancedPropertiesClear.d.ts +2 -0
  99. package/icons/AdvancedPropertiesClear.js +6 -0
  100. package/icons/Analitycal.d.ts +2 -0
  101. package/icons/Analitycal.js +6 -0
  102. package/icons/ApiMonitor.d.ts +2 -0
  103. package/icons/ApiMonitor.js +6 -0
  104. package/icons/ApiPerformance.d.ts +2 -0
  105. package/icons/ApiPerformance.js +6 -0
  106. package/icons/ApiPerformanceStat.d.ts +2 -0
  107. package/icons/ApiPerformanceStat.js +6 -0
  108. package/icons/Applications.d.ts +2 -0
  109. package/icons/Applications.js +6 -0
  110. package/icons/ArrowBack.d.ts +1 -1
  111. package/icons/ArrowBack.js +2 -2
  112. package/icons/ArrowDownward.d.ts +2 -0
  113. package/icons/ArrowDownward.js +6 -0
  114. package/icons/ArrowDropDown.d.ts +1 -1
  115. package/icons/ArrowDropDown.js +2 -2
  116. package/icons/ArrowDropUp.d.ts +1 -1
  117. package/icons/ArrowDropUp.js +2 -2
  118. package/icons/ArrowForward.d.ts +1 -1
  119. package/icons/ArrowForward.js +2 -2
  120. package/icons/ArrowLeft.d.ts +1 -1
  121. package/icons/ArrowLeft.js +2 -2
  122. package/icons/ArrowRight.d.ts +1 -1
  123. package/icons/ArrowRight.js +2 -2
  124. package/icons/ArrowUpward.d.ts +2 -0
  125. package/icons/ArrowUpward.js +6 -0
  126. package/icons/Attachment.d.ts +1 -1
  127. package/icons/Attachment.js +2 -2
  128. package/icons/Attribute.d.ts +2 -0
  129. package/icons/Attribute.js +6 -0
  130. package/icons/Back.d.ts +2 -0
  131. package/icons/Back.js +6 -0
  132. package/icons/Calendar.d.ts +2 -0
  133. package/icons/Calendar.js +6 -0
  134. package/icons/CalendarRange.d.ts +2 -0
  135. package/icons/CalendarRange.js +6 -0
  136. package/icons/CalendarToday.d.ts +2 -0
  137. package/icons/CalendarToday.js +6 -0
  138. package/icons/Cancel.d.ts +2 -0
  139. package/icons/Cancel.js +6 -0
  140. package/icons/Chat.d.ts +1 -1
  141. package/icons/Chat.js +2 -2
  142. package/icons/Check.d.ts +1 -1
  143. package/icons/Check.js +2 -2
  144. package/icons/CheckCircle.d.ts +1 -1
  145. package/icons/CheckCircle.js +2 -2
  146. package/icons/Checkbox.d.ts +2 -0
  147. package/icons/Checkbox.js +6 -0
  148. package/icons/CheckboxFilled.d.ts +2 -0
  149. package/icons/CheckboxFilled.js +6 -0
  150. package/icons/CheckboxIndeterminate.d.ts +2 -0
  151. package/icons/CheckboxIndeterminate.js +6 -0
  152. package/icons/CheckboxIndeterminateFilled.d.ts +2 -0
  153. package/icons/CheckboxIndeterminateFilled.js +6 -0
  154. package/icons/CheckboxOutlined.d.ts +2 -0
  155. package/icons/CheckboxOutlined.js +6 -0
  156. package/icons/ChevronLeft.d.ts +1 -1
  157. package/icons/ChevronLeft.js +2 -2
  158. package/icons/ChevronRight.d.ts +1 -1
  159. package/icons/ChevronRight.js +2 -2
  160. package/icons/Cleansing.d.ts +2 -0
  161. package/icons/Cleansing.js +6 -0
  162. package/icons/Close.d.ts +1 -1
  163. package/icons/Close.js +2 -2
  164. package/icons/Colapse.d.ts +2 -0
  165. package/icons/Colapse.js +6 -0
  166. package/icons/CollapseDrawer.d.ts +2 -0
  167. package/icons/CollapseDrawer.js +6 -0
  168. package/icons/Comment.d.ts +1 -1
  169. package/icons/Comment.js +2 -2
  170. package/icons/Comments.d.ts +2 -0
  171. package/icons/Comments.js +6 -0
  172. package/icons/ComplexAttribute.d.ts +2 -0
  173. package/icons/ComplexAttribute.js +6 -0
  174. package/icons/Consolidated.d.ts +2 -0
  175. package/icons/Consolidated.js +6 -0
  176. package/icons/ContentCopy.d.ts +1 -1
  177. package/icons/ContentCopy.js +2 -2
  178. package/icons/ContentPaste.d.ts +1 -1
  179. package/icons/ContentPaste.js +2 -2
  180. package/icons/ControlAttriibute.d.ts +2 -0
  181. package/icons/ControlAttriibute.js +6 -0
  182. package/icons/Copy.d.ts +2 -0
  183. package/icons/Copy.js +6 -0
  184. package/icons/CriticalError.d.ts +2 -0
  185. package/icons/CriticalError.js +6 -0
  186. package/icons/DashboardChart.d.ts +2 -0
  187. package/icons/DashboardChart.js +6 -0
  188. package/icons/DashboardGlobal.d.ts +2 -0
  189. package/icons/DashboardGlobal.js +6 -0
  190. package/icons/DataPrep.d.ts +2 -0
  191. package/icons/DataPrep.js +6 -0
  192. package/icons/DataUpload.d.ts +2 -0
  193. package/icons/DataUpload.js +6 -0
  194. package/icons/DcrComment.d.ts +2 -0
  195. package/icons/DcrComment.js +6 -0
  196. package/icons/DeactivateUser.d.ts +2 -0
  197. package/icons/DeactivateUser.js +6 -0
  198. package/icons/Delete.d.ts +1 -1
  199. package/icons/Delete.js +2 -2
  200. package/icons/DerivedAttribute.d.ts +2 -0
  201. package/icons/DerivedAttribute.js +6 -0
  202. package/icons/Description.d.ts +1 -1
  203. package/icons/Description.js +2 -2
  204. package/icons/DesignServices.d.ts +2 -0
  205. package/icons/DesignServices.js +6 -0
  206. package/icons/Dev.d.ts +2 -0
  207. package/icons/Dev.js +6 -0
  208. package/icons/Done.d.ts +2 -0
  209. package/icons/Done.js +6 -0
  210. package/icons/Down.d.ts +2 -0
  211. package/icons/Down.js +6 -0
  212. package/icons/Download.d.ts +1 -1
  213. package/icons/Download.js +2 -2
  214. package/icons/Draft.d.ts +2 -0
  215. package/icons/Draft.js +6 -0
  216. package/icons/Drag.d.ts +2 -0
  217. package/icons/Drag.js +6 -0
  218. package/icons/DragHoriz.d.ts +2 -0
  219. package/icons/DragHoriz.js +6 -0
  220. package/icons/DuplicateGroup.d.ts +2 -0
  221. package/icons/DuplicateGroup.js +6 -0
  222. package/icons/DuplicateJob.d.ts +2 -0
  223. package/icons/DuplicateJob.js +6 -0
  224. package/icons/DuplicateRole.d.ts +2 -0
  225. package/icons/DuplicateRole.js +6 -0
  226. package/icons/Duration.d.ts +2 -0
  227. package/icons/Duration.js +6 -0
  228. package/icons/Edit.d.ts +1 -1
  229. package/icons/Edit.js +2 -2
  230. package/icons/EditSchedule.d.ts +2 -0
  231. package/icons/EditSchedule.js +6 -0
  232. package/icons/Email.d.ts +1 -1
  233. package/icons/Email.js +2 -2
  234. package/icons/EndDate.d.ts +2 -0
  235. package/icons/EndDate.js +6 -0
  236. package/icons/EndDateFlag.d.ts +2 -0
  237. package/icons/EndDateFlag.js +6 -0
  238. package/icons/Error.d.ts +2 -0
  239. package/icons/Error.js +6 -0
  240. package/icons/ErrorCircle.d.ts +1 -1
  241. package/icons/ErrorCircle.js +2 -2
  242. package/icons/Event.d.ts +2 -0
  243. package/icons/Event.js +6 -0
  244. package/icons/Expand.d.ts +2 -0
  245. package/icons/Expand.js +6 -0
  246. package/icons/ExpandLess.d.ts +1 -1
  247. package/icons/ExpandLess.js +2 -2
  248. package/icons/ExpandMore.d.ts +1 -1
  249. package/icons/ExpandMore.js +2 -2
  250. package/icons/Explore.d.ts +2 -0
  251. package/icons/Explore.js +6 -0
  252. package/icons/Favorite.d.ts +2 -0
  253. package/icons/Favorite.js +6 -0
  254. package/icons/File.d.ts +2 -0
  255. package/icons/File.js +6 -0
  256. package/icons/FilterAdd.d.ts +2 -0
  257. package/icons/FilterAdd.js +6 -0
  258. package/icons/FilterClear.d.ts +2 -0
  259. package/icons/FilterClear.js +6 -0
  260. package/icons/FilterList.d.ts +1 -1
  261. package/icons/FilterList.js +2 -2
  262. package/icons/FilterSelect.d.ts +2 -0
  263. package/icons/FilterSelect.js +6 -0
  264. package/icons/FindMatch.d.ts +2 -0
  265. package/icons/FindMatch.js +6 -0
  266. package/icons/Flag.d.ts +2 -0
  267. package/icons/Flag.js +6 -0
  268. package/icons/Folder.d.ts +1 -1
  269. package/icons/Folder.js +2 -2
  270. package/icons/FolderOpen.d.ts +2 -0
  271. package/icons/FolderOpen.js +6 -0
  272. package/icons/FolderSelected.d.ts +2 -0
  273. package/icons/FolderSelected.js +6 -0
  274. package/icons/ForamteListNumbered.d.ts +2 -0
  275. package/icons/ForamteListNumbered.js +6 -0
  276. package/icons/FormatBold.d.ts +2 -0
  277. package/icons/FormatBold.js +6 -0
  278. package/icons/FormatItalics.d.ts +2 -0
  279. package/icons/FormatItalics.js +6 -0
  280. package/icons/FormatUnderline.d.ts +2 -0
  281. package/icons/FormatUnderline.js +6 -0
  282. package/icons/FormateListPoints.d.ts +2 -0
  283. package/icons/FormateListPoints.js +6 -0
  284. package/icons/Fullscreen.d.ts +2 -0
  285. package/icons/Fullscreen.js +6 -0
  286. package/icons/FullscreenExit.d.ts +2 -0
  287. package/icons/FullscreenExit.js +6 -0
  288. package/icons/Group.d.ts +2 -0
  289. package/icons/Group.js +6 -0
  290. package/icons/Help.d.ts +1 -1
  291. package/icons/Help.js +2 -2
  292. package/icons/History.d.ts +2 -0
  293. package/icons/History.js +6 -0
  294. package/icons/Hyperink.d.ts +2 -0
  295. package/icons/Hyperink.js +6 -0
  296. package/icons/Icon.module.css.js +27 -40
  297. package/icons/Icon.module.css.json +1 -1
  298. package/icons/Icon.types.d.ts +3 -9
  299. package/icons/Indicator.d.ts +2 -0
  300. package/icons/Indicator.js +6 -0
  301. package/icons/Info.d.ts +1 -1
  302. package/icons/Info.js +2 -2
  303. package/icons/Inheritance.d.ts +2 -0
  304. package/icons/Inheritance.js +6 -0
  305. package/icons/KeyId.d.ts +2 -0
  306. package/icons/KeyId.js +6 -0
  307. package/icons/KeyboardArrowDown.d.ts +1 -1
  308. package/icons/KeyboardArrowDown.js +2 -2
  309. package/icons/KeyboardArrowLeft.d.ts +2 -0
  310. package/icons/KeyboardArrowLeft.js +6 -0
  311. package/icons/KeyboardArrowRight.d.ts +2 -0
  312. package/icons/KeyboardArrowRight.js +6 -0
  313. package/icons/KeyboardArrowUp.d.ts +1 -1
  314. package/icons/KeyboardArrowUp.js +2 -2
  315. package/icons/Lightbulb.d.ts +2 -0
  316. package/icons/Lightbulb.js +6 -0
  317. package/icons/Link.d.ts +2 -0
  318. package/icons/Link.js +6 -0
  319. package/icons/LocationOn.d.ts +2 -0
  320. package/icons/LocationOn.js +6 -0
  321. package/icons/Lock.d.ts +2 -0
  322. package/icons/Lock.js +6 -0
  323. package/icons/LockOpen.d.ts +2 -0
  324. package/icons/LockOpen.js +6 -0
  325. package/icons/Login.d.ts +2 -0
  326. package/icons/Login.js +6 -0
  327. package/icons/Logout.d.ts +1 -1
  328. package/icons/Logout.js +2 -2
  329. package/icons/LookupType.d.ts +2 -0
  330. package/icons/LookupType.js +6 -0
  331. package/icons/LostMerge.d.ts +2 -0
  332. package/icons/LostMerge.js +6 -0
  333. package/icons/ManageAgent.d.ts +2 -0
  334. package/icons/ManageAgent.js +6 -0
  335. package/icons/MatchRule.d.ts +2 -0
  336. package/icons/MatchRule.js +6 -0
  337. package/icons/Menu.d.ts +1 -1
  338. package/icons/Menu.js +2 -2
  339. package/icons/Merge.d.ts +2 -0
  340. package/icons/Merge.js +6 -0
  341. package/icons/Mic.d.ts +2 -0
  342. package/icons/Mic.js +6 -0
  343. package/icons/MlModel.d.ts +2 -0
  344. package/icons/MlModel.js +6 -0
  345. package/icons/MoreHoriz.d.ts +2 -0
  346. package/icons/MoreHoriz.js +6 -0
  347. package/icons/MoreVert.d.ts +2 -0
  348. package/icons/MoreVert.js +6 -0
  349. package/icons/Move.d.ts +2 -0
  350. package/icons/Move.js +6 -0
  351. package/icons/NestedAttribute.d.ts +2 -0
  352. package/icons/NestedAttribute.js +6 -0
  353. package/icons/NetworkNode.d.ts +2 -0
  354. package/icons/NetworkNode.js +6 -0
  355. package/icons/Next.d.ts +2 -0
  356. package/icons/Next.js +6 -0
  357. package/icons/NotAMatch.d.ts +2 -0
  358. package/icons/NotAMatch.js +6 -0
  359. package/icons/NotMatched.d.ts +2 -0
  360. package/icons/NotMatched.js +6 -0
  361. package/icons/NotMatchesSet.d.ts +2 -0
  362. package/icons/NotMatchesSet.js +6 -0
  363. package/icons/NotificationManagement.d.ts +2 -0
  364. package/icons/NotificationManagement.js +6 -0
  365. package/icons/Notifications.d.ts +1 -1
  366. package/icons/Notifications.js +2 -2
  367. package/icons/NotificationsActive.d.ts +2 -0
  368. package/icons/NotificationsActive.js +6 -0
  369. package/icons/OpenDrawer.d.ts +2 -0
  370. package/icons/OpenDrawer.js +6 -0
  371. package/icons/OvMarker.d.ts +2 -0
  372. package/icons/OvMarker.js +6 -0
  373. package/icons/PasswordExpired.d.ts +2 -0
  374. package/icons/PasswordExpired.js +6 -0
  375. package/icons/Pause.d.ts +2 -0
  376. package/icons/Pause.js +6 -0
  377. package/icons/People.d.ts +1 -1
  378. package/icons/People.js +2 -2
  379. package/icons/PermIdentity.d.ts +2 -0
  380. package/icons/PermIdentity.js +6 -0
  381. package/icons/Person.d.ts +1 -1
  382. package/icons/Person.js +2 -2
  383. package/icons/Pin.d.ts +2 -0
  384. package/icons/Pin.js +6 -0
  385. package/icons/Play.d.ts +2 -0
  386. package/icons/Play.js +6 -0
  387. package/icons/Poll.d.ts +2 -0
  388. package/icons/Poll.js +6 -0
  389. package/icons/PotentialMatches.d.ts +2 -0
  390. package/icons/PotentialMatches.js +6 -0
  391. package/icons/Profile.d.ts +2 -0
  392. package/icons/Profile.js +6 -0
  393. package/icons/Profiles.d.ts +2 -0
  394. package/icons/Profiles.js +6 -0
  395. package/icons/QueryBuilder.d.ts +2 -0
  396. package/icons/QueryBuilder.js +6 -0
  397. package/icons/RadioChecked.d.ts +2 -0
  398. package/icons/RadioChecked.js +6 -0
  399. package/icons/RadioUnchecked.d.ts +2 -0
  400. package/icons/RadioUnchecked.js +6 -0
  401. package/icons/Recommend.d.ts +2 -0
  402. package/icons/Recommend.js +6 -0
  403. package/icons/Recommended.d.ts +2 -0
  404. package/icons/Recommended.js +6 -0
  405. package/icons/ReferenceProfile.d.ts +2 -0
  406. package/icons/ReferenceProfile.js +6 -0
  407. package/icons/Refresh.d.ts +1 -1
  408. package/icons/Refresh.js +2 -2
  409. package/icons/RefreshDate.d.ts +2 -0
  410. package/icons/RefreshDate.js +6 -0
  411. package/icons/RelationsView.d.ts +2 -0
  412. package/icons/RelationsView.js +6 -0
  413. package/icons/Remove.d.ts +1 -1
  414. package/icons/Remove.js +2 -2
  415. package/icons/RemoveCircle.d.ts +2 -0
  416. package/icons/RemoveCircle.js +6 -0
  417. package/icons/Replay.d.ts +2 -0
  418. package/icons/Replay.js +6 -0
  419. package/icons/Required.d.ts +2 -0
  420. package/icons/Required.js +6 -0
  421. package/icons/RequiredOff.d.ts +2 -0
  422. package/icons/RequiredOff.js +6 -0
  423. package/icons/Reset.d.ts +2 -0
  424. package/icons/Reset.js +6 -0
  425. package/icons/ResetPassword.d.ts +2 -0
  426. package/icons/ResetPassword.js +6 -0
  427. package/icons/ResizeFacetSize.d.ts +2 -0
  428. package/icons/ResizeFacetSize.js +6 -0
  429. package/icons/Resume.d.ts +2 -0
  430. package/icons/Resume.js +6 -0
  431. package/icons/Review.d.ts +2 -0
  432. package/icons/Review.js +6 -0
  433. package/icons/Roles.d.ts +2 -0
  434. package/icons/Roles.js +6 -0
  435. package/icons/Save.d.ts +1 -1
  436. package/icons/Save.js +2 -2
  437. package/icons/Scope.d.ts +2 -0
  438. package/icons/Scope.js +6 -0
  439. package/icons/Search.d.ts +1 -1
  440. package/icons/Search.js +2 -2
  441. package/icons/SearchConnections.d.ts +2 -0
  442. package/icons/SearchConnections.js +6 -0
  443. package/icons/SearchGlobal.d.ts +2 -0
  444. package/icons/SearchGlobal.js +6 -0
  445. package/icons/Segments.d.ts +2 -0
  446. package/icons/Segments.js +6 -0
  447. package/icons/SelectedNode.d.ts +2 -0
  448. package/icons/SelectedNode.js +6 -0
  449. package/icons/Send.d.ts +2 -0
  450. package/icons/Send.js +6 -0
  451. package/icons/Settings.d.ts +1 -1
  452. package/icons/Settings.js +2 -2
  453. package/icons/Share.d.ts +1 -1
  454. package/icons/Share.js +2 -2
  455. package/icons/ShoppingCart.d.ts +2 -0
  456. package/icons/ShoppingCart.js +6 -0
  457. package/icons/ShowGraph.d.ts +2 -0
  458. package/icons/ShowGraph.js +6 -0
  459. package/icons/ShowPanel.d.ts +2 -0
  460. package/icons/ShowPanel.js +6 -0
  461. package/icons/ShowhideColumns.d.ts +2 -0
  462. package/icons/ShowhideColumns.js +6 -0
  463. package/icons/SideNav.d.ts +2 -0
  464. package/icons/SideNav.js +6 -0
  465. package/icons/SimpleAttribute.d.ts +2 -0
  466. package/icons/SimpleAttribute.js +6 -0
  467. package/icons/Sort.d.ts +1 -1
  468. package/icons/Sort.js +2 -2
  469. package/icons/Sorting.d.ts +2 -0
  470. package/icons/Sorting.js +6 -0
  471. package/icons/Split.d.ts +2 -0
  472. package/icons/Split.js +6 -0
  473. package/icons/Star.d.ts +2 -0
  474. package/icons/Star.js +6 -0
  475. package/icons/StarSelected.d.ts +2 -0
  476. package/icons/StarSelected.js +6 -0
  477. package/icons/StartDate.d.ts +2 -0
  478. package/icons/StartDate.js +6 -0
  479. package/icons/StopJob.d.ts +2 -0
  480. package/icons/StopJob.js +6 -0
  481. package/icons/Style.d.ts +2 -0
  482. package/icons/Style.js +6 -0
  483. package/icons/Suggest.d.ts +2 -0
  484. package/icons/Suggest.js +6 -0
  485. package/icons/Survivorship.d.ts +2 -0
  486. package/icons/Survivorship.js +6 -0
  487. package/icons/Sync.d.ts +2 -0
  488. package/icons/Sync.js +6 -0
  489. package/icons/TaskList.d.ts +2 -0
  490. package/icons/TaskList.js +6 -0
  491. package/icons/ThumbDown.d.ts +2 -0
  492. package/icons/ThumbDown.js +6 -0
  493. package/icons/ThumbUp.d.ts +2 -0
  494. package/icons/ThumbUp.js +6 -0
  495. package/icons/Today.d.ts +2 -0
  496. package/icons/Today.js +6 -0
  497. package/icons/Training.d.ts +2 -0
  498. package/icons/Training.js +6 -0
  499. package/icons/TrainingBulb.d.ts +2 -0
  500. package/icons/TrainingBulb.js +6 -0
  501. package/icons/TrainingBulbReady.d.ts +2 -0
  502. package/icons/TrainingBulbReady.js +6 -0
  503. package/icons/TrainingContinue.d.ts +2 -0
  504. package/icons/TrainingContinue.js +6 -0
  505. package/icons/TrainingReady.d.ts +2 -0
  506. package/icons/TrainingReady.js +6 -0
  507. package/icons/Transform.d.ts +2 -0
  508. package/icons/Transform.js +6 -0
  509. package/icons/Tune.d.ts +2 -0
  510. package/icons/Tune.js +6 -0
  511. package/icons/Unmerge.d.ts +2 -0
  512. package/icons/Unmerge.js +6 -0
  513. package/icons/Unpublish.d.ts +2 -0
  514. package/icons/Unpublish.js +6 -0
  515. package/icons/Unshare.d.ts +2 -0
  516. package/icons/Unshare.js +6 -0
  517. package/icons/Up.d.ts +2 -0
  518. package/icons/Up.js +6 -0
  519. package/icons/Upload.d.ts +1 -1
  520. package/icons/Upload.js +2 -2
  521. package/icons/UsageApp.d.ts +2 -0
  522. package/icons/UsageApp.js +6 -0
  523. package/icons/Users.d.ts +2 -0
  524. package/icons/Users.js +6 -0
  525. package/icons/VerticalAlign.d.ts +2 -0
  526. package/icons/VerticalAlign.js +6 -0
  527. package/icons/ViewCards.d.ts +2 -0
  528. package/icons/ViewCards.js +6 -0
  529. package/icons/ViewChart.d.ts +2 -0
  530. package/icons/ViewChart.js +6 -0
  531. package/icons/ViewColumn.d.ts +2 -0
  532. package/icons/ViewColumn.js +6 -0
  533. package/icons/ViewHierarchy.d.ts +2 -0
  534. package/icons/ViewHierarchy.js +6 -0
  535. package/icons/ViewList.d.ts +2 -0
  536. package/icons/ViewList.js +6 -0
  537. package/icons/ViewMap.d.ts +2 -0
  538. package/icons/ViewMap.js +6 -0
  539. package/icons/ViewTable.d.ts +2 -0
  540. package/icons/ViewTable.js +6 -0
  541. package/icons/Visibility.d.ts +1 -1
  542. package/icons/Visibility.js +2 -2
  543. package/icons/VisibilityOff.d.ts +1 -1
  544. package/icons/VisibilityOff.js +2 -2
  545. package/icons/Warning.d.ts +1 -1
  546. package/icons/Warning.js +2 -2
  547. package/icons/Working.d.ts +2 -0
  548. package/icons/Working.js +6 -0
  549. package/icons/index.d.ts +189 -2
  550. package/icons/index.js +377 -3
  551. package/package.json +4 -10
  552. package/packages/design/charts.d.ts +1 -0
  553. package/packages/design/charts.js +1 -0
  554. package/packages/design/icons.d.ts +1 -0
  555. package/packages/design/icons.js +1 -0
  556. package/packages/design/utils.d.ts +1 -0
  557. package/packages/design/utils.js +1 -0
  558. package/utils/classNames.d.ts +5 -3
  559. package/utils/classNames.js +6 -6
  560. package/utils/index.d.ts +2 -0
  561. package/utils/index.js +2 -0
  562. package/utils/types.d.ts +11 -0
  563. package/utils/types.js +1 -0
  564. /package/packages/design/{index.d.ts → components.d.ts} +0 -0
  565. /package/packages/design/{index.js → components.js} +0 -0
@@ -9,7 +9,7 @@ import styles from "./Button.module.css";
9
9
  * (filled, outlined, text), color options (primary, secondary, inherited),
10
10
  * sizes, states, and can render as either a button or anchor element.
11
11
  */
12
- export const Button = ({ variant = "filled", color = "inherited", size = "medium", disabled = false, fullWidth = false, children, className, onClick, href, type = "button", "aria-label": ariaLabel, ...rest }) => {
12
+ export const Button = ({ variant = "filled", color = "inherited", size = "medium", disabled = false, fullWidth = false, children, className, href, type = "button", ...rest }) => {
13
13
  const buttonRef = useRef(null);
14
14
  // Remove focus when button becomes disabled
15
15
  useEffect(() => {
@@ -19,53 +19,12 @@ export const Button = ({ variant = "filled", color = "inherited", size = "medium
19
19
  buttonRef.current.blur();
20
20
  }
21
21
  }, [disabled]);
22
- // Determine if button is interactive
23
- const isInteractive = !disabled;
24
- // Handle click events
25
- const handleClick = (event) => {
26
- if (!isInteractive) {
27
- event.preventDefault();
28
- return;
29
- }
30
- // Prevent navigation for disabled anchors
31
- if (href && disabled) {
32
- event.preventDefault();
33
- return;
34
- }
35
- onClick?.(event);
36
- };
37
- // Handle keyboard events (Enter and Space)
38
- const handleKeyDown = (event) => {
39
- if (!isInteractive) {
40
- event.preventDefault();
41
- return;
42
- }
43
- // Enter and Space activate button
44
- if (event.key === "Enter" || event.key === " ") {
45
- if (event.key === " ") {
46
- event.preventDefault(); // Prevent page scroll
47
- }
48
- if (href) {
49
- // For anchors, trigger click
50
- buttonRef.current?.click();
51
- }
52
- else {
53
- // For buttons, trigger onClick
54
- onClick?.(event);
55
- }
56
- }
57
- };
58
22
  // Compose className using classNames utility
59
23
  const composedClassName = classNames(styles.root, styles[variant], styles[color], styles[size], disabled && styles.disabled, fullWidth && styles.fullWidth, className);
60
- // ARIA attributes
61
- const ariaAttributes = {
62
- "aria-label": ariaLabel,
63
- "aria-disabled": disabled ? true : undefined,
64
- };
65
24
  // Render as anchor if href is provided
66
25
  if (href) {
67
- return (_jsx("a", { ref: buttonRef, href: disabled ? undefined : href, className: composedClassName, onClick: handleClick, onKeyDown: handleKeyDown, ...ariaAttributes, ...rest, children: children }));
26
+ return (_jsx("a", { ref: buttonRef, href: disabled ? undefined : href, className: composedClassName, "aria-disabled": disabled ? true : undefined, ...rest, children: children }));
68
27
  }
69
28
  // Render as button
70
- return (_jsx("button", { ref: buttonRef, type: type, disabled: disabled, className: composedClassName, onClick: handleClick, onKeyDown: handleKeyDown, ...ariaAttributes, ...rest, children: children }));
29
+ return (_jsx("button", { ref: buttonRef, type: type, disabled: disabled, className: composedClassName, ...rest, children: children }));
71
30
  };
@@ -1,193 +1,144 @@
1
1
  import styleInject from 'style-inject';
2
2
  import json from './Button.module.css.json';
3
3
  styleInject(`
4
- /* CSS Custom Properties - All defined on .root (Principle IX) */
5
- ._root_1lt78_1 {
6
- /* Font tokens */
7
- --reltio-button-font-family: var(
8
- --reltio-font-family-body,
9
- "Roboto",
10
- sans-serif
11
- );
12
- --reltio-button-font-size: var(--reltio-font-size-body, 16px);
13
- --reltio-button-font-weight: var(--reltio-font-weight-body, 500);
14
- --reltio-button-line-height: var(--reltio-line-height-body, 1.5);
15
- --reltio-button-letter-spacing: var(--reltio-letter-spacing-body, 0.15px);
16
-
17
- /* Color tokens */
18
- --reltio-button-color-background: #f5f5fa;
19
- --reltio-button-color-primary: var(--reltio-color-primary, #0000cc);
20
- --reltio-button-color-primary-text: var(--reltio-color-on-primary, #ffffff);
21
- --reltio-button-color-text: var(--reltio-color-text, #0e0e25);
22
-
23
- /* Spacing tokens */
24
- --reltio-button-padding-x-small: var(--reltio-spacing-sm, 16px);
25
- --reltio-button-padding-y-small: var(--reltio-spacing-xs, 8px);
26
- --reltio-button-padding-x-medium: var(--reltio-spacing-md, 20px);
27
- --reltio-button-padding-y-medium: var(--reltio-spacing-sm, 12px);
28
- --reltio-button-padding-x-large: var(--reltio-spacing-lg, 32px);
29
- --reltio-button-padding-y-large: var(--reltio-spacing-md, 16px);
30
- --reltio-button-gap-x: var(--reltio-spacing-xs, 8px);
31
-
32
- /* Size tokens */
33
- --reltio-button-height-small: var(--reltio-spacing-xl, 32px);
34
- --reltio-button-height-medium: var(--reltio-spacing-2xl, 40px);
35
- --reltio-button-height-large: var(--reltio-spacing-3xl, 48px);
36
-
37
- /* Border and shape */
38
- --reltio-button-border-radius: 9999px; /* Fully rounded corners (pill shape) - Material Design 3 */
39
- --reltio-button-border-width: 0;
40
-
41
- /* Transitions */
42
- --reltio-button-transition-duration: 200ms;
43
- --reltio-button-transition-timing: ease;
44
-
45
- /* Disabled state */
46
- --reltio-button-disabled-opacity: 0.38;
47
- --reltio-button-disabled-cursor: not-allowed;
48
-
49
- /* Base styles */
4
+ .Button_root__L29wd {
50
5
  display: inline-flex;
51
6
  align-items: center;
52
7
  justify-content: center;
53
- gap: var(--reltio-button-gap-x);
54
- border: var(--reltio-button-border-width) solid transparent;
55
- border-radius: var(--reltio-button-border-radius);
8
+ gap: 8px;
9
+ border: 0 solid transparent;
10
+ border-radius: 9999px;
56
11
  cursor: pointer;
57
- font-family: var(--reltio-button-font-family);
58
- font-size: var(--reltio-button-font-size);
59
- font-weight: var(--reltio-button-font-weight);
60
- line-height: var(--reltio-button-line-height);
61
- letter-spacing: var(--reltio-button-letter-spacing);
12
+ font-family: "Roboto", sans-serif;
13
+ font-size: 16px;
14
+ font-weight: 500;
15
+ line-height: 1.5;
16
+ letter-spacing: 0.15px;
62
17
  text-align: center;
63
18
  text-decoration: none;
64
19
  white-space: nowrap;
65
20
  user-select: none;
66
- transition: all var(--reltio-button-transition-duration)
67
- var(--reltio-button-transition-timing);
21
+ transition: all 200ms ease;
68
22
  box-sizing: border-box;
69
- /* Remove default button styles */
70
23
  background: none;
71
24
  margin: 0;
72
25
  padding: 0;
73
26
 
74
- /* Focus visible state */
75
27
  &:focus-visible {
76
- outline: 2px solid var(--reltio-button-color-primary);
28
+ outline: 2px solid var(--reltio-color-primary);
77
29
  outline-offset: 2px;
78
30
  }
79
31
 
80
- /* Disabled state */
81
32
  &:disabled,
82
33
  &[aria-disabled="true"] {
83
- opacity: var(--reltio-button-disabled-opacity);
84
- cursor: var(--reltio-button-disabled-cursor);
34
+ opacity: 0.38;
35
+ cursor: not-allowed;
85
36
  pointer-events: none;
86
37
  }
87
38
  }
88
39
 
89
- /* Style: Filled - base structure */
90
- ._filled_1lt78_87 {
40
+ /* Style: Filled */
41
+ .Button_filled__L29wd {
91
42
  border: none;
92
43
  }
93
44
 
94
- /* Style: Outlined - base structure */
95
- ._outlined_1lt78_92 {
45
+ /* Style: Outlined */
46
+ .Button_outlined__L29wd {
96
47
  background-color: transparent;
97
48
  border: 1px solid;
98
49
  }
99
50
 
100
- /* Style: Text - base structure */
101
- ._text_1lt78_98 {
51
+ /* Style: Text */
52
+ .Button_text__L29wd {
102
53
  background-color: transparent;
103
54
  border: none;
104
55
  }
105
56
 
106
57
  /* Filled + Primary */
107
- ._filled_1lt78_87._primary_1lt78_104 {
108
- background-color: var(--reltio-button-color-primary);
109
- color: #fff;
58
+ .Button_filled__L29wd.Button_primary__L29wd {
59
+ background-color: var(--reltio-color-primary);
60
+ color: var(--reltio-color-text-forced-white);
110
61
 
111
62
  &:hover {
112
- background-color: #006;
63
+ background-color: var(--reltio-color-primary-hover);
113
64
  }
114
65
  }
115
66
 
116
67
  /* Filled + Inherited */
117
- ._filled_1lt78_87._inherited_1lt78_114 {
118
- background-color: var(--reltio-button-color-background);
119
- color: var(--reltio-button-color-text);
68
+ .Button_filled__L29wd.Button_inherited__L29wd {
69
+ background-color: var(--reltio-color-surface-2);
70
+ color: var(--reltio-color-text);
71
+ }
72
+
73
+ [data-theme="dark"] .Button_filled__L29wd.Button_inherited__L29wd {
74
+ border: 1px solid var(--reltio-color-border-2);
120
75
  }
121
76
 
122
77
  /* Outlined + Primary */
123
- ._outlined_1lt78_92._primary_1lt78_104 {
124
- border-color: var(--reltio-button-color-primary);
125
- color: var(--reltio-button-color-primary);
78
+ .Button_outlined__L29wd.Button_primary__L29wd {
79
+ border-color: var(--reltio-color-primary);
80
+ color: var(--reltio-color-primary);
126
81
 
127
82
  &:hover {
128
- background-color: var(--reltio-button-color-background);
83
+ background-color: var(--reltio-color-surface-2);
129
84
  }
130
85
  }
131
86
 
132
87
  /* Outlined + Inherited */
133
- ._outlined_1lt78_92._inherited_1lt78_114 {
134
- /* Border and text color inherit from parent */
88
+ .Button_outlined__L29wd.Button_inherited__L29wd {
135
89
  border-color: currentColor;
136
90
  color: inherit;
137
91
 
138
92
  &:hover {
139
- background-color: var(--reltio-button-color-background);
93
+ background-color: var(--reltio-color-surface-2);
140
94
  }
141
95
  }
142
96
 
143
97
  /* Text + Primary */
144
- ._text_1lt78_98._primary_1lt78_104 {
145
- color: var(--reltio-button-color-primary);
98
+ .Button_text__L29wd.Button_primary__L29wd {
99
+ color: var(--reltio-color-primary);
146
100
 
147
101
  &:hover {
148
- background-color: var(--reltio-button-color-background);
102
+ background-color: var(--reltio-color-surface-2);
149
103
  }
150
104
  }
151
105
 
152
106
  /* Text + Inherited */
153
- ._text_1lt78_98._inherited_1lt78_114 {
107
+ .Button_text__L29wd.Button_inherited__L29wd {
154
108
  color: inherit;
155
109
 
156
110
  &:hover {
157
- background-color: var(--reltio-button-color-background);
111
+ background-color: var(--reltio-color-surface-2);
158
112
  }
159
113
  }
160
114
 
161
115
  /* Size: Small */
162
- ._small_1lt78_159 {
163
- min-height: var(--reltio-button-height-small);
164
- padding: var(--reltio-button-padding-y-small)
165
- var(--reltio-button-padding-x-small);
116
+ .Button_small__L29wd {
117
+ min-height: 32px;
118
+ padding: 8px 16px;
166
119
  font-size: 0.875rem;
167
120
  }
168
121
 
169
122
  /* Size: Medium */
170
- ._medium_1lt78_167 {
171
- min-height: var(--reltio-button-height-medium);
172
- padding: var(--reltio-button-padding-y-medium)
173
- var(--reltio-button-padding-x-medium);
123
+ .Button_medium__L29wd {
124
+ min-height: 40px;
125
+ padding: 12px 20px;
174
126
  }
175
127
 
176
128
  /* Size: Large */
177
- ._large_1lt78_174 {
178
- min-height: var(--reltio-button-height-large);
179
- padding: var(--reltio-button-padding-y-large)
180
- var(--reltio-button-padding-x-large);
129
+ .Button_large__L29wd {
130
+ min-height: 48px;
131
+ padding: 16px 32px;
181
132
  }
182
133
 
183
134
  /* State: Disabled */
184
- ._disabled_1lt78_181 {
185
- opacity: var(--reltio-button-disabled-opacity);
186
- cursor: var(--reltio-button-disabled-cursor);
135
+ .Button_disabled__L29wd {
136
+ opacity: 0.38;
137
+ cursor: not-allowed;
187
138
  }
188
139
 
189
140
  /* Full Width */
190
- ._fullWidth_1lt78_187 {
141
+ .Button_fullWidth__L29wd {
191
142
  width: 100%;
192
143
  }
193
144
  `);
@@ -1 +1 @@
1
- { "root": "_root_1lt78_1", "filled": "_filled_1lt78_87", "outlined": "_outlined_1lt78_92", "text": "_text_1lt78_98", "primary": "_primary_1lt78_104", "inherited": "_inherited_1lt78_114", "small": "_small_1lt78_159", "medium": "_medium_1lt78_167", "large": "_large_1lt78_174", "disabled": "_disabled_1lt78_181", "fullWidth": "_fullWidth_1lt78_187" }
1
+ { "root": "Button_root__L29wd", "filled": "Button_filled__L29wd", "outlined": "Button_outlined__L29wd", "text": "Button_text__L29wd", "primary": "Button_primary__L29wd", "inherited": "Button_inherited__L29wd", "small": "Button_small__L29wd", "medium": "Button_medium__L29wd", "large": "Button_large__L29wd", "disabled": "Button_disabled__L29wd", "fullWidth": "Button_fullWidth__L29wd" }
@@ -1,4 +1,4 @@
1
- import type React from "react";
1
+ import type { HtmlProps } from "../../utils/types";
2
2
  /**
3
3
  * Visual variant for the button
4
4
  */
@@ -12,7 +12,7 @@ export type ButtonColor = "primary" | "inherited";
12
12
  */
13
13
  export type ButtonSize = "small" | "medium" | "large";
14
14
  /**
15
- * Base button props (without element-specific attributes)
15
+ * Base button props shared between button and anchor renderings
16
16
  */
17
17
  type BaseButtonProps = {
18
18
  /**
@@ -40,35 +40,11 @@ type BaseButtonProps = {
40
40
  * @default false
41
41
  */
42
42
  fullWidth?: boolean;
43
- /**
44
- * Button content (text, icons, etc.)
45
- */
46
- children: React.ReactNode;
47
- /**
48
- * Additional CSS class names
49
- */
50
- className?: string;
51
- /**
52
- * Additional CSS variables
53
- */
54
- style?: React.CSSProperties & {
55
- "--reltio-button-color-background"?: string;
56
- "--reltio-button-color-text"?: string;
57
- };
58
- /**
59
- * Click event handler
60
- */
61
- onClick?: React.MouseEventHandler<HTMLElement>;
62
- /**
63
- * Accessible label for screen readers
64
- * Required if button has no visible text
65
- */
66
- "aria-label"?: string;
67
43
  };
68
44
  /**
69
45
  * Button props when rendered as button element (no href)
70
46
  */
71
- type ButtonElementProps = BaseButtonProps & {
47
+ type ButtonElementProps = HtmlProps<"button", BaseButtonProps & {
72
48
  /**
73
49
  * If href is provided, component renders as anchor element
74
50
  * If href is not provided, component renders as button element
@@ -79,11 +55,11 @@ type ButtonElementProps = BaseButtonProps & {
79
55
  * @default "button"
80
56
  */
81
57
  type?: "button" | "submit" | "reset";
82
- };
58
+ }>;
83
59
  /**
84
60
  * Anchor props when rendered as anchor element (with href)
85
61
  */
86
- type AnchorElementProps = BaseButtonProps & {
62
+ type AnchorElementProps = HtmlProps<"a", BaseButtonProps & {
87
63
  /**
88
64
  * URL to navigate to (causes component to render as anchor)
89
65
  */
@@ -100,10 +76,10 @@ type AnchorElementProps = BaseButtonProps & {
100
76
  * Rel attribute for anchor (e.g., "noopener noreferrer")
101
77
  */
102
78
  rel?: string;
103
- };
79
+ }>;
104
80
  /**
105
81
  * Union type for Button component props
106
82
  * Component can be either a button or an anchor based on href prop
107
83
  */
108
- export type ButtonProps = (ButtonElementProps | AnchorElementProps) & Omit<React.ComponentPropsWithoutRef<"button">, keyof ButtonElementProps> & Omit<React.ComponentPropsWithoutRef<"a">, keyof AnchorElementProps>;
84
+ export type ButtonProps = ButtonElementProps | AnchorElementProps;
109
85
  export {};
@@ -70,8 +70,6 @@ export const Chat = ({ messages, thinking = false, initialLoading = false, class
70
70
  }
71
71
  }, [thinking, scrollToBottom]);
72
72
  const [topMessages, lastMessages] = useMemo(() => {
73
- if (messages.length <= 2)
74
- return [messages, []];
75
73
  const lastUserMessageIndex = messages.findLastIndex(isUserMessage);
76
74
  return [
77
75
  messages.slice(0, lastUserMessageIndex),
@@ -80,5 +78,5 @@ export const Chat = ({ messages, thinking = false, initialLoading = false, class
80
78
  }, [messages]);
81
79
  return (_jsxs("div", { ref: containerRef, className: classNames(styles.root, className), role: "log", "aria-live": "polite", "aria-label": "Chat messages",
82
80
  // biome-ignore lint/a11y/noNoninteractiveTabindex: scrollable region must be keyboard-focusable (WCAG 2.1.1)
83
- tabIndex: 0, ...rest, children: [initialLoading ? (_jsx(Skeleton, { rows: 5 })) : (_jsxs(_Fragment, { children: [topMessages.map((msg, i) => (_jsx(ChatMessage, { message: msg }, msg.messageId ?? `${i}-${msg.role}`))), lastMessages.length > 0 && (_jsxs("div", { className: styles.lastMessageWrapper, children: [lastMessages.map((msg, i) => (_jsx(ChatMessage, { message: msg }, msg.messageId ?? `${i}-${msg.role}`))), thinking && _jsx(AssistantLoader, {})] }))] })), showScrollButton && (_jsx("button", { type: "button", className: classNames(styles.scrollToBottom), onClick: () => scrollToBottom("smooth"), "aria-label": "Scroll to bottom", children: _jsx(KeyboardArrowDown, { size: "small" }) }))] }));
81
+ tabIndex: 0, ...rest, children: [initialLoading ? (_jsx(Skeleton, { rows: 5 })) : (_jsxs(_Fragment, { children: [topMessages.map((msg, i) => (_jsx(ChatMessage, { message: msg }, msg.messageId ?? `${i}-${msg.role}`))), lastMessages.length > 0 && (_jsxs("div", { className: classNames(styles.lastMessageWrapper), children: [lastMessages.map((msg, i) => (_jsx(ChatMessage, { message: msg }, msg.messageId ?? `${i}-${msg.role}`))), thinking && _jsx(AssistantLoader, {})] }))] })), showScrollButton && (_jsx("button", { type: "button", className: classNames(styles.scrollToBottom), onClick: () => scrollToBottom("smooth"), "aria-label": "Scroll to bottom", children: _jsx(KeyboardArrowDown, { size: "small" }) }))] }));
84
82
  };
@@ -1,17 +1,7 @@
1
1
  import styleInject from 'style-inject';
2
2
  import json from './Chat.module.css.json';
3
3
  styleInject(`
4
- /* CSS Custom Properties - All defined on .root with --reltio-chat- prefix */
5
- ._root_d5cr4_1 {
6
- --reltio-chat-padding: 16px;
7
- --reltio-chat-message-gap: 16px;
8
- --reltio-chat-scroll-button-size: 36px;
9
- --reltio-chat-scroll-button-bg: #ffffff;
10
- --reltio-chat-scroll-button-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
11
- --reltio-chat-scroll-button-color: #5f6368;
12
- --reltio-chat-scroll-button-hover-bg: #f1f3f4;
13
- --reltio-chat-scroll-button-bottom: 16px;
14
-
4
+ .Chat_root__L29wd {
15
5
  display: flex;
16
6
  flex-direction: column;
17
7
  position: relative;
@@ -20,57 +10,54 @@ styleInject(`
20
10
  box-sizing: border-box;
21
11
  overflow: auto;
22
12
  align-items: start;
23
- padding: var(--reltio-chat-padding);
24
- gap: var(--reltio-chat-message-gap);
13
+ padding: 16px;
14
+ gap: 16px;
25
15
  }
26
16
 
27
- ._userMessage_d5cr4_24 {
17
+ .Chat_userMessage__L29wd {
28
18
  margin-left: auto;
29
19
  max-width: 80%;
30
20
  }
31
21
 
32
- ._userMessageSkeletonWrapper_d5cr4_29 {
22
+ .Chat_userMessageSkeletonWrapper__L29wd {
33
23
  width: 40%;
34
24
  margin-left: auto;
35
25
  }
36
26
 
37
- ._scrollToBottom_d5cr4_34 {
27
+ .Chat_scrollToBottom__L29wd {
38
28
  position: sticky;
39
- bottom: var(--reltio-chat-scroll-button-bottom, 16px);
29
+ bottom: 16px;
40
30
  align-self: center;
41
31
  display: flex;
42
32
  align-items: center;
43
33
  justify-content: center;
44
- width: var(--reltio-chat-scroll-button-size, 36px);
45
- height: var(--reltio-chat-scroll-button-size, 36px);
34
+ width: 36px;
35
+ height: 36px;
46
36
  border-radius: 50%;
47
37
  border: none;
48
- background: var(--reltio-chat-scroll-button-bg, #ffffff);
49
- box-shadow: var(
50
- --reltio-chat-scroll-button-shadow,
51
- 0 2px 8px rgba(0, 0, 0, 0.15)
52
- );
53
- color: var(--reltio-chat-scroll-button-color, #5f6368);
38
+ background: var(--reltio-color-surface-1);
39
+ box-shadow: 0 2px 8px var(--reltio-color-shadow-2);
40
+ color: var(--reltio-color-text-secondary);
54
41
  cursor: pointer;
55
42
  transition: background 0.15s ease;
56
43
  flex-shrink: 0;
57
44
  }
58
45
 
59
- ._scrollToBottom_d5cr4_34:hover {
60
- background: var(--reltio-chat-scroll-button-hover-bg);
46
+ .Chat_scrollToBottom__L29wd:hover {
47
+ background: var(--reltio-color-surface-2);
61
48
  }
62
49
 
63
- ._scrollToBottom_d5cr4_34:focus-visible {
64
- outline: 2px solid #1a73e8;
50
+ .Chat_scrollToBottom__L29wd:focus-visible {
51
+ outline: 2px solid var(--reltio-color-primary-transparent-focus);
65
52
  outline-offset: 2px;
66
53
  }
67
54
 
68
- ._lastMessageWrapper_d5cr4_65 {
55
+ .Chat_lastMessageWrapper__L29wd {
69
56
  display: flex;
70
57
  flex-direction: column;
71
58
  position: relative;
72
59
  align-items: start;
73
- gap: var(--reltio-chat-message-gap);
60
+ gap: 16px;
74
61
  min-height: 100%;
75
62
  width: 100%;
76
63
  }
@@ -1 +1 @@
1
- { "root": "_root_d5cr4_1", "userMessage": "_userMessage_d5cr4_24", "userMessageSkeletonWrapper": "_userMessageSkeletonWrapper_d5cr4_29", "scrollToBottom": "_scrollToBottom_d5cr4_34", "lastMessageWrapper": "_lastMessageWrapper_d5cr4_65" }
1
+ { "root": "Chat_root__L29wd", "userMessage": "Chat_userMessage__L29wd", "userMessageSkeletonWrapper": "Chat_userMessageSkeletonWrapper__L29wd", "scrollToBottom": "Chat_scrollToBottom__L29wd", "lastMessageWrapper": "Chat_lastMessageWrapper__L29wd" }
@@ -1,4 +1,4 @@
1
- import type React from "react";
1
+ import type { HtmlProps } from "../../utils/types";
2
2
  /**
3
3
  * User message payload for Chat. Renders via UserMessage component.
4
4
  */
@@ -31,7 +31,7 @@ export type Message = {
31
31
  /**
32
32
  * Props for the Chat component
33
33
  */
34
- export type ChatProps = {
34
+ export type ChatProps = HtmlProps<"div", {
35
35
  /**
36
36
  * List of messages to display in order. Each message is rendered by type (user → UserMessage, assistant → AssistantMessage).
37
37
  */
@@ -47,12 +47,4 @@ export type ChatProps = {
47
47
  * @default false
48
48
  */
49
49
  initialLoading?: boolean;
50
- /**
51
- * Additional CSS class names
52
- */
53
- className?: string;
54
- /**
55
- * Inline styles (e.g. for CSS variable overrides)
56
- */
57
- style?: React.CSSProperties;
58
- } & Omit<React.ComponentPropsWithoutRef<"div">, "children" | "className" | "style">;
50
+ }>;
@@ -1,7 +1,6 @@
1
- import type React from "react";
2
1
  import type { AssistantMessageProps } from "./AssistantMessage.types";
3
2
  /**
4
3
  * Displays assistant-authored message content with Markdown and MDX support via the Markdown component.
5
4
  * When error is true, shows ErrorMessage and hides content.
6
5
  */
7
- export declare const AssistantMessage: ({ children, errorMessage, className, style, ...rest }: React.PropsWithChildren<AssistantMessageProps>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const AssistantMessage: ({ children, errorMessage, className, style, ...rest }: AssistantMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,26 +1,14 @@
1
1
  import styleInject from 'style-inject';
2
2
  import json from './AssistantMessage.module.css.json';
3
3
  styleInject(`
4
- /* CSS Custom Properties - All defined on .root with --reltio-assistant-message- prefix */
5
- ._assistantMessageRoot_qtch8_2 {
6
- --reltio-assistant-message-background: transparent;
7
- --reltio-assistant-message-padding: 0;
8
- --reltio-assistant-message-border-radius: 8px;
9
- --reltio-assistant-message-content-color: #0e0e25;
10
-
4
+ .AssistantMessage_assistantMessageRoot__L29wd {
11
5
  display: flex;
12
6
  flex-direction: column;
13
- background-color: var(--reltio-assistant-message-background);
14
- padding: var(--reltio-assistant-message-padding);
15
- border-radius: var(--reltio-assistant-message-border-radius);
7
+ background-color: transparent;
8
+ padding: 0;
9
+ border-radius: 8px;
16
10
  box-sizing: border-box;
17
11
  width: 100%;
18
12
  }
19
-
20
- ._content_qtch8_17 {
21
- flex: 1;
22
- min-width: 0;
23
- color: var(--reltio-assistant-message-content-color);
24
- }
25
13
  `);
26
14
  export default json;
@@ -1 +1 @@
1
- { "assistantMessageRoot": "_assistantMessageRoot_qtch8_2", "content": "_content_qtch8_17" }
1
+ { "assistantMessageRoot": "AssistantMessage_assistantMessageRoot__L29wd" }
@@ -1,20 +1,13 @@
1
1
  import type React from "react";
2
+ import type { HtmlProps } from "../../../../utils/types";
2
3
  /**
3
4
  * Props for the AssistantMessage component
4
5
  */
5
- export type AssistantMessageProps = {
6
+ export type AssistantMessageProps = HtmlProps<"div", {
6
7
  /**
7
8
  * Error content: string is passed to ErrorMessage; custom ReactNode is rendered as is.
8
9
  */
9
10
  errorMessage?: React.ReactNode | null;
10
- /**
11
- * Additional CSS class names
12
- */
13
- className?: string;
14
- /**
15
- * Inline styles (e.g. for CSS variable overrides)
16
- */
17
- style?: React.CSSProperties;
18
11
  /** We expect assistant message source as a string */
19
12
  children: string;
20
- };
13
+ }>;
@@ -1,11 +1,16 @@
1
1
  import styleInject from 'style-inject';
2
2
  import json from './UserMessage.module.css.json';
3
3
  styleInject(`
4
- ._userMessageRoot_11l9d_1 {
4
+ .UserMessage_userMessageRoot__L29wd {
5
5
  display: inline-flex;
6
- background-color: var(--reltio-user-message-background, #f5f5fa);
7
- padding: var(--reltio-user-message-padding, 12px 16px);
8
- border-radius: var(--reltio-user-message-border-radius, 12px);
6
+ background-color: var(--reltio-color-surface-2);
7
+ border: 1px solid transparent;
8
+ padding: 12px 16px;
9
+ border-radius: 12px;
10
+ }
11
+
12
+ [data-theme="dark"] .UserMessage_userMessageRoot__L29wd {
13
+ border-color: var(--reltio-color-border-2);
9
14
  }
10
15
  `);
11
16
  export default json;
@@ -1 +1 @@
1
- { "userMessageRoot": "_userMessageRoot_11l9d_1" }
1
+ { "userMessageRoot": "UserMessage_userMessageRoot__L29wd" }
@@ -1,16 +1,8 @@
1
- import type React from "react";
1
+ import type { HtmlProps } from "../../../../utils/types";
2
2
  /**
3
3
  * Props for the UserMessage component
4
4
  */
5
- export type UserMessageProps = {
6
- /**
7
- * Additional CSS class names
8
- */
9
- className?: string;
10
- /**
11
- * Inline styles (e.g. for CSS variable overrides)
12
- */
13
- style?: React.CSSProperties;
5
+ export type UserMessageProps = HtmlProps<"div", {
14
6
  /** We expect user message source as a string */
15
7
  children: string;
16
- };
8
+ }>;
@@ -4,4 +4,4 @@ import type { DetailsProps } from "./Details.types";
4
4
  * with improved visual design, accessibility, and consistent styling
5
5
  * aligned with the design system.
6
6
  */
7
- export declare const Details: ({ open: initialOpen, children, className, style, ...rest }: DetailsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Details: ({ open: initialOpen, children, className, ...rest }: DetailsProps) => import("react/jsx-runtime").JSX.Element;