@reltio/design 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (593) 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/AppSelector/AppSelector.d.ts +5 -0
  24. package/components/AppSelector/AppSelector.js +20 -0
  25. package/components/AppSelector/AppSelector.module.css.d.ts +2 -0
  26. package/components/AppSelector/AppSelector.module.css.js +61 -0
  27. package/components/AppSelector/AppSelector.module.css.json +1 -0
  28. package/components/AppSelector/AppSelector.types.d.ts +29 -0
  29. package/components/AppSelector/AppSelector.types.js +1 -0
  30. package/components/AppSelector/index.d.ts +2 -0
  31. package/components/AppSelector/index.js +1 -0
  32. package/components/AssistantLoader/AssistantLoader.d.ts +1 -2
  33. package/components/AssistantLoader/AssistantLoader.js +7 -4
  34. package/components/AssistantLoader/AssistantLoader.module.css.js +30 -62
  35. package/components/AssistantLoader/AssistantLoader.module.css.json +1 -1
  36. package/components/AssistantLoader/AssistantLoader.types.d.ts +5 -13
  37. package/components/Button/Button.d.ts +4 -1
  38. package/components/Button/Button.js +12 -47
  39. package/components/Button/Button.module.css.js +60 -103
  40. package/components/Button/Button.module.css.json +1 -1
  41. package/components/Button/Button.types.d.ts +7 -31
  42. package/components/Chat/Chat.js +1 -3
  43. package/components/Chat/Chat.module.css.js +18 -31
  44. package/components/Chat/Chat.module.css.json +1 -1
  45. package/components/Chat/Chat.types.d.ts +3 -11
  46. package/components/Chat/components/AssistantMessage/AssistantMessage.d.ts +1 -2
  47. package/components/Chat/components/AssistantMessage/AssistantMessage.module.css.js +4 -16
  48. package/components/Chat/components/AssistantMessage/AssistantMessage.module.css.json +1 -1
  49. package/components/Chat/components/AssistantMessage/AssistantMessage.types.d.ts +3 -10
  50. package/components/Chat/components/UserMessage/UserMessage.module.css.js +9 -4
  51. package/components/Chat/components/UserMessage/UserMessage.module.css.json +1 -1
  52. package/components/Chat/components/UserMessage/UserMessage.types.d.ts +3 -11
  53. package/components/Details/Details.d.ts +1 -1
  54. package/components/Details/Details.js +2 -7
  55. package/components/Details/Details.module.css.js +57 -44
  56. package/components/Details/Details.module.css.json +1 -1
  57. package/components/Details/Details.types.d.ts +4 -51
  58. package/components/Divider/Divider.d.ts +2 -0
  59. package/components/Divider/Divider.js +6 -0
  60. package/components/Divider/Divider.module.css.d.ts +2 -0
  61. package/components/Divider/Divider.module.css.js +40 -0
  62. package/components/Divider/Divider.module.css.json +1 -0
  63. package/components/Divider/Divider.types.d.ts +11 -0
  64. package/components/Divider/Divider.types.js +1 -0
  65. package/components/Divider/index.d.ts +2 -0
  66. package/components/Divider/index.js +1 -0
  67. package/components/ErrorMessage/ErrorMessage.js +1 -1
  68. package/components/ErrorMessage/ErrorMessage.module.css.js +12 -24
  69. package/components/ErrorMessage/ErrorMessage.module.css.json +1 -1
  70. package/components/ErrorMessage/ErrorMessage.types.d.ts +3 -6
  71. package/components/Markdown/Markdown.d.ts +1 -1
  72. package/components/Markdown/Markdown.js +2 -2
  73. package/components/Markdown/Markdown.module.css.js +87 -109
  74. package/components/Markdown/Markdown.module.css.json +1 -1
  75. package/components/Markdown/Markdown.types.d.ts +1 -51
  76. package/components/Popover/Popover.d.ts +36 -0
  77. package/components/Popover/Popover.js +62 -0
  78. package/components/Popover/Popover.module.css.d.ts +2 -0
  79. package/components/Popover/Popover.module.css.js +62 -0
  80. package/components/Popover/Popover.module.css.json +1 -0
  81. package/components/Popover/Popover.types.d.ts +18 -0
  82. package/components/Popover/Popover.types.js +1 -0
  83. package/components/Popover/index.d.ts +2 -0
  84. package/components/Popover/index.js +1 -0
  85. package/components/Skeleton/Skeleton.d.ts +1 -1
  86. package/components/Skeleton/Skeleton.js +3 -2
  87. package/components/Skeleton/Skeleton.module.css.js +13 -15
  88. package/components/Skeleton/Skeleton.module.css.json +1 -1
  89. package/components/Skeleton/Skeleton.types.d.ts +5 -23
  90. package/components/TextArea/TextArea.d.ts +3 -24
  91. package/components/TextArea/TextArea.module.css.js +65 -74
  92. package/components/TextArea/TextArea.module.css.json +1 -1
  93. package/components/TextArea/TextArea.types.d.ts +2 -23
  94. package/components/TreeList/TreeList.module.css.js +7 -12
  95. package/components/TreeList/TreeList.module.css.json +1 -1
  96. package/components/TreeList/components/TreeLevelLines/TreeLevelLines.module.css.js +12 -15
  97. package/components/TreeList/components/TreeLevelLines/TreeLevelLines.module.css.json +1 -1
  98. package/components/TreeList/components/TreeNode/TreeNode.module.css.js +19 -21
  99. package/components/TreeList/components/TreeNode/TreeNode.module.css.json +1 -1
  100. package/components/index.d.ts +1 -0
  101. package/components/index.js +1 -0
  102. package/icons/AccessTime.d.ts +2 -0
  103. package/icons/AccessTime.js +6 -0
  104. package/icons/Accessibility.d.ts +2 -0
  105. package/icons/Accessibility.js +6 -0
  106. package/icons/AccountCircle.d.ts +1 -1
  107. package/icons/AccountCircle.js +2 -2
  108. package/icons/AcessConversations.d.ts +2 -0
  109. package/icons/AcessConversations.js +6 -0
  110. package/icons/ActionsMenu.d.ts +2 -0
  111. package/icons/ActionsMenu.js +6 -0
  112. package/icons/ActivateUser.d.ts +2 -0
  113. package/icons/ActivateUser.js +6 -0
  114. package/icons/Add.d.ts +1 -1
  115. package/icons/Add.js +2 -2
  116. package/icons/AddChild.d.ts +2 -0
  117. package/icons/AddChild.js +6 -0
  118. package/icons/AddCircle.d.ts +2 -0
  119. package/icons/AddCircle.js +6 -0
  120. package/icons/AddParent.d.ts +2 -0
  121. package/icons/AddParent.js +6 -0
  122. package/icons/AddSibling.d.ts +2 -0
  123. package/icons/AddSibling.js +6 -0
  124. package/icons/AdvancedProperties.d.ts +2 -0
  125. package/icons/AdvancedProperties.js +6 -0
  126. package/icons/AdvancedPropertiesClear.d.ts +2 -0
  127. package/icons/AdvancedPropertiesClear.js +6 -0
  128. package/icons/Analitycal.d.ts +2 -0
  129. package/icons/Analitycal.js +6 -0
  130. package/icons/ApiMonitor.d.ts +2 -0
  131. package/icons/ApiMonitor.js +6 -0
  132. package/icons/ApiPerformance.d.ts +2 -0
  133. package/icons/ApiPerformance.js +6 -0
  134. package/icons/ApiPerformanceStat.d.ts +2 -0
  135. package/icons/ApiPerformanceStat.js +6 -0
  136. package/icons/Applications.d.ts +2 -0
  137. package/icons/Applications.js +6 -0
  138. package/icons/ArrowBack.d.ts +1 -1
  139. package/icons/ArrowBack.js +2 -2
  140. package/icons/ArrowDownward.d.ts +2 -0
  141. package/icons/ArrowDownward.js +6 -0
  142. package/icons/ArrowDropDown.d.ts +1 -1
  143. package/icons/ArrowDropDown.js +2 -2
  144. package/icons/ArrowDropUp.d.ts +1 -1
  145. package/icons/ArrowDropUp.js +2 -2
  146. package/icons/ArrowForward.d.ts +1 -1
  147. package/icons/ArrowForward.js +2 -2
  148. package/icons/ArrowLeft.d.ts +1 -1
  149. package/icons/ArrowLeft.js +2 -2
  150. package/icons/ArrowRight.d.ts +1 -1
  151. package/icons/ArrowRight.js +2 -2
  152. package/icons/ArrowUpward.d.ts +2 -0
  153. package/icons/ArrowUpward.js +6 -0
  154. package/icons/Attachment.d.ts +1 -1
  155. package/icons/Attachment.js +2 -2
  156. package/icons/Attribute.d.ts +2 -0
  157. package/icons/Attribute.js +6 -0
  158. package/icons/Back.d.ts +2 -0
  159. package/icons/Back.js +6 -0
  160. package/icons/Calendar.d.ts +2 -0
  161. package/icons/Calendar.js +6 -0
  162. package/icons/CalendarRange.d.ts +2 -0
  163. package/icons/CalendarRange.js +6 -0
  164. package/icons/CalendarToday.d.ts +2 -0
  165. package/icons/CalendarToday.js +6 -0
  166. package/icons/Cancel.d.ts +2 -0
  167. package/icons/Cancel.js +6 -0
  168. package/icons/Chat.d.ts +1 -1
  169. package/icons/Chat.js +2 -2
  170. package/icons/Check.d.ts +1 -1
  171. package/icons/Check.js +2 -2
  172. package/icons/CheckCircle.d.ts +1 -1
  173. package/icons/CheckCircle.js +2 -2
  174. package/icons/Checkbox.d.ts +2 -0
  175. package/icons/Checkbox.js +6 -0
  176. package/icons/CheckboxFilled.d.ts +2 -0
  177. package/icons/CheckboxFilled.js +6 -0
  178. package/icons/CheckboxIndeterminate.d.ts +2 -0
  179. package/icons/CheckboxIndeterminate.js +6 -0
  180. package/icons/CheckboxIndeterminateFilled.d.ts +2 -0
  181. package/icons/CheckboxIndeterminateFilled.js +6 -0
  182. package/icons/CheckboxOutlined.d.ts +2 -0
  183. package/icons/CheckboxOutlined.js +6 -0
  184. package/icons/ChevronLeft.d.ts +1 -1
  185. package/icons/ChevronLeft.js +2 -2
  186. package/icons/ChevronRight.d.ts +1 -1
  187. package/icons/ChevronRight.js +2 -2
  188. package/icons/Cleansing.d.ts +2 -0
  189. package/icons/Cleansing.js +6 -0
  190. package/icons/Close.d.ts +1 -1
  191. package/icons/Close.js +2 -2
  192. package/icons/Colapse.d.ts +2 -0
  193. package/icons/Colapse.js +6 -0
  194. package/icons/CollapseDrawer.d.ts +2 -0
  195. package/icons/CollapseDrawer.js +6 -0
  196. package/icons/Comment.d.ts +1 -1
  197. package/icons/Comment.js +2 -2
  198. package/icons/Comments.d.ts +2 -0
  199. package/icons/Comments.js +6 -0
  200. package/icons/ComplexAttribute.d.ts +2 -0
  201. package/icons/ComplexAttribute.js +6 -0
  202. package/icons/Consolidated.d.ts +2 -0
  203. package/icons/Consolidated.js +6 -0
  204. package/icons/ContentCopy.d.ts +1 -1
  205. package/icons/ContentCopy.js +2 -2
  206. package/icons/ContentPaste.d.ts +1 -1
  207. package/icons/ContentPaste.js +2 -2
  208. package/icons/ControlAttriibute.d.ts +2 -0
  209. package/icons/ControlAttriibute.js +6 -0
  210. package/icons/Copy.d.ts +2 -0
  211. package/icons/Copy.js +6 -0
  212. package/icons/CriticalError.d.ts +2 -0
  213. package/icons/CriticalError.js +6 -0
  214. package/icons/DashboardChart.d.ts +2 -0
  215. package/icons/DashboardChart.js +6 -0
  216. package/icons/DashboardGlobal.d.ts +2 -0
  217. package/icons/DashboardGlobal.js +6 -0
  218. package/icons/DataPrep.d.ts +2 -0
  219. package/icons/DataPrep.js +6 -0
  220. package/icons/DataUpload.d.ts +2 -0
  221. package/icons/DataUpload.js +6 -0
  222. package/icons/DcrComment.d.ts +2 -0
  223. package/icons/DcrComment.js +6 -0
  224. package/icons/DeactivateUser.d.ts +2 -0
  225. package/icons/DeactivateUser.js +6 -0
  226. package/icons/Delete.d.ts +1 -1
  227. package/icons/Delete.js +2 -2
  228. package/icons/DerivedAttribute.d.ts +2 -0
  229. package/icons/DerivedAttribute.js +6 -0
  230. package/icons/Description.d.ts +1 -1
  231. package/icons/Description.js +2 -2
  232. package/icons/DesignServices.d.ts +2 -0
  233. package/icons/DesignServices.js +6 -0
  234. package/icons/Dev.d.ts +2 -0
  235. package/icons/Dev.js +6 -0
  236. package/icons/Done.d.ts +2 -0
  237. package/icons/Done.js +6 -0
  238. package/icons/Down.d.ts +2 -0
  239. package/icons/Down.js +6 -0
  240. package/icons/Download.d.ts +1 -1
  241. package/icons/Download.js +2 -2
  242. package/icons/Draft.d.ts +2 -0
  243. package/icons/Draft.js +6 -0
  244. package/icons/Drag.d.ts +2 -0
  245. package/icons/Drag.js +6 -0
  246. package/icons/DragHoriz.d.ts +2 -0
  247. package/icons/DragHoriz.js +6 -0
  248. package/icons/DuplicateGroup.d.ts +2 -0
  249. package/icons/DuplicateGroup.js +6 -0
  250. package/icons/DuplicateJob.d.ts +2 -0
  251. package/icons/DuplicateJob.js +6 -0
  252. package/icons/DuplicateRole.d.ts +2 -0
  253. package/icons/DuplicateRole.js +6 -0
  254. package/icons/Duration.d.ts +2 -0
  255. package/icons/Duration.js +6 -0
  256. package/icons/Edit.d.ts +1 -1
  257. package/icons/Edit.js +2 -2
  258. package/icons/EditSchedule.d.ts +2 -0
  259. package/icons/EditSchedule.js +6 -0
  260. package/icons/Email.d.ts +1 -1
  261. package/icons/Email.js +2 -2
  262. package/icons/EndDate.d.ts +2 -0
  263. package/icons/EndDate.js +6 -0
  264. package/icons/EndDateFlag.d.ts +2 -0
  265. package/icons/EndDateFlag.js +6 -0
  266. package/icons/Error.d.ts +2 -0
  267. package/icons/Error.js +6 -0
  268. package/icons/ErrorCircle.d.ts +1 -1
  269. package/icons/ErrorCircle.js +2 -2
  270. package/icons/Event.d.ts +2 -0
  271. package/icons/Event.js +6 -0
  272. package/icons/Expand.d.ts +2 -0
  273. package/icons/Expand.js +6 -0
  274. package/icons/ExpandLess.d.ts +1 -1
  275. package/icons/ExpandLess.js +2 -2
  276. package/icons/ExpandMore.d.ts +1 -1
  277. package/icons/ExpandMore.js +2 -2
  278. package/icons/Explore.d.ts +2 -0
  279. package/icons/Explore.js +6 -0
  280. package/icons/Favorite.d.ts +2 -0
  281. package/icons/Favorite.js +6 -0
  282. package/icons/File.d.ts +2 -0
  283. package/icons/File.js +6 -0
  284. package/icons/FilterAdd.d.ts +2 -0
  285. package/icons/FilterAdd.js +6 -0
  286. package/icons/FilterClear.d.ts +2 -0
  287. package/icons/FilterClear.js +6 -0
  288. package/icons/FilterList.d.ts +1 -1
  289. package/icons/FilterList.js +2 -2
  290. package/icons/FilterSelect.d.ts +2 -0
  291. package/icons/FilterSelect.js +6 -0
  292. package/icons/FindMatch.d.ts +2 -0
  293. package/icons/FindMatch.js +6 -0
  294. package/icons/Flag.d.ts +2 -0
  295. package/icons/Flag.js +6 -0
  296. package/icons/Folder.d.ts +1 -1
  297. package/icons/Folder.js +2 -2
  298. package/icons/FolderOpen.d.ts +2 -0
  299. package/icons/FolderOpen.js +6 -0
  300. package/icons/FolderSelected.d.ts +2 -0
  301. package/icons/FolderSelected.js +6 -0
  302. package/icons/ForamteListNumbered.d.ts +2 -0
  303. package/icons/ForamteListNumbered.js +6 -0
  304. package/icons/FormatBold.d.ts +2 -0
  305. package/icons/FormatBold.js +6 -0
  306. package/icons/FormatItalics.d.ts +2 -0
  307. package/icons/FormatItalics.js +6 -0
  308. package/icons/FormatUnderline.d.ts +2 -0
  309. package/icons/FormatUnderline.js +6 -0
  310. package/icons/FormateListPoints.d.ts +2 -0
  311. package/icons/FormateListPoints.js +6 -0
  312. package/icons/Fullscreen.d.ts +2 -0
  313. package/icons/Fullscreen.js +6 -0
  314. package/icons/FullscreenExit.d.ts +2 -0
  315. package/icons/FullscreenExit.js +6 -0
  316. package/icons/Group.d.ts +2 -0
  317. package/icons/Group.js +6 -0
  318. package/icons/Help.d.ts +1 -1
  319. package/icons/Help.js +2 -2
  320. package/icons/History.d.ts +2 -0
  321. package/icons/History.js +6 -0
  322. package/icons/Hyperink.d.ts +2 -0
  323. package/icons/Hyperink.js +6 -0
  324. package/icons/Icon.module.css.js +27 -40
  325. package/icons/Icon.module.css.json +1 -1
  326. package/icons/Icon.types.d.ts +3 -9
  327. package/icons/Indicator.d.ts +2 -0
  328. package/icons/Indicator.js +6 -0
  329. package/icons/Info.d.ts +1 -1
  330. package/icons/Info.js +2 -2
  331. package/icons/Inheritance.d.ts +2 -0
  332. package/icons/Inheritance.js +6 -0
  333. package/icons/KeyId.d.ts +2 -0
  334. package/icons/KeyId.js +6 -0
  335. package/icons/KeyboardArrowDown.d.ts +1 -1
  336. package/icons/KeyboardArrowDown.js +2 -2
  337. package/icons/KeyboardArrowLeft.d.ts +2 -0
  338. package/icons/KeyboardArrowLeft.js +6 -0
  339. package/icons/KeyboardArrowRight.d.ts +2 -0
  340. package/icons/KeyboardArrowRight.js +6 -0
  341. package/icons/KeyboardArrowUp.d.ts +1 -1
  342. package/icons/KeyboardArrowUp.js +2 -2
  343. package/icons/Lightbulb.d.ts +2 -0
  344. package/icons/Lightbulb.js +6 -0
  345. package/icons/Link.d.ts +2 -0
  346. package/icons/Link.js +6 -0
  347. package/icons/LocationOn.d.ts +2 -0
  348. package/icons/LocationOn.js +6 -0
  349. package/icons/Lock.d.ts +2 -0
  350. package/icons/Lock.js +6 -0
  351. package/icons/LockOpen.d.ts +2 -0
  352. package/icons/LockOpen.js +6 -0
  353. package/icons/Login.d.ts +2 -0
  354. package/icons/Login.js +6 -0
  355. package/icons/Logout.d.ts +1 -1
  356. package/icons/Logout.js +2 -2
  357. package/icons/LookupType.d.ts +2 -0
  358. package/icons/LookupType.js +6 -0
  359. package/icons/LostMerge.d.ts +2 -0
  360. package/icons/LostMerge.js +6 -0
  361. package/icons/ManageAgent.d.ts +2 -0
  362. package/icons/ManageAgent.js +6 -0
  363. package/icons/MatchRule.d.ts +2 -0
  364. package/icons/MatchRule.js +6 -0
  365. package/icons/Menu.d.ts +1 -1
  366. package/icons/Menu.js +2 -2
  367. package/icons/Merge.d.ts +2 -0
  368. package/icons/Merge.js +6 -0
  369. package/icons/Mic.d.ts +2 -0
  370. package/icons/Mic.js +6 -0
  371. package/icons/MlModel.d.ts +2 -0
  372. package/icons/MlModel.js +6 -0
  373. package/icons/MoreHoriz.d.ts +2 -0
  374. package/icons/MoreHoriz.js +6 -0
  375. package/icons/MoreVert.d.ts +2 -0
  376. package/icons/MoreVert.js +6 -0
  377. package/icons/Move.d.ts +2 -0
  378. package/icons/Move.js +6 -0
  379. package/icons/NestedAttribute.d.ts +2 -0
  380. package/icons/NestedAttribute.js +6 -0
  381. package/icons/NetworkNode.d.ts +2 -0
  382. package/icons/NetworkNode.js +6 -0
  383. package/icons/Next.d.ts +2 -0
  384. package/icons/Next.js +6 -0
  385. package/icons/NotAMatch.d.ts +2 -0
  386. package/icons/NotAMatch.js +6 -0
  387. package/icons/NotMatched.d.ts +2 -0
  388. package/icons/NotMatched.js +6 -0
  389. package/icons/NotMatchesSet.d.ts +2 -0
  390. package/icons/NotMatchesSet.js +6 -0
  391. package/icons/NotificationManagement.d.ts +2 -0
  392. package/icons/NotificationManagement.js +6 -0
  393. package/icons/Notifications.d.ts +1 -1
  394. package/icons/Notifications.js +2 -2
  395. package/icons/NotificationsActive.d.ts +2 -0
  396. package/icons/NotificationsActive.js +6 -0
  397. package/icons/OpenDrawer.d.ts +2 -0
  398. package/icons/OpenDrawer.js +6 -0
  399. package/icons/OvMarker.d.ts +2 -0
  400. package/icons/OvMarker.js +6 -0
  401. package/icons/PasswordExpired.d.ts +2 -0
  402. package/icons/PasswordExpired.js +6 -0
  403. package/icons/Pause.d.ts +2 -0
  404. package/icons/Pause.js +6 -0
  405. package/icons/People.d.ts +1 -1
  406. package/icons/People.js +2 -2
  407. package/icons/PermIdentity.d.ts +2 -0
  408. package/icons/PermIdentity.js +6 -0
  409. package/icons/Person.d.ts +1 -1
  410. package/icons/Person.js +2 -2
  411. package/icons/Pin.d.ts +2 -0
  412. package/icons/Pin.js +6 -0
  413. package/icons/Play.d.ts +2 -0
  414. package/icons/Play.js +6 -0
  415. package/icons/Poll.d.ts +2 -0
  416. package/icons/Poll.js +6 -0
  417. package/icons/PotentialMatches.d.ts +2 -0
  418. package/icons/PotentialMatches.js +6 -0
  419. package/icons/Profile.d.ts +2 -0
  420. package/icons/Profile.js +6 -0
  421. package/icons/Profiles.d.ts +2 -0
  422. package/icons/Profiles.js +6 -0
  423. package/icons/QueryBuilder.d.ts +2 -0
  424. package/icons/QueryBuilder.js +6 -0
  425. package/icons/RadioChecked.d.ts +2 -0
  426. package/icons/RadioChecked.js +6 -0
  427. package/icons/RadioUnchecked.d.ts +2 -0
  428. package/icons/RadioUnchecked.js +6 -0
  429. package/icons/Recommend.d.ts +2 -0
  430. package/icons/Recommend.js +6 -0
  431. package/icons/Recommended.d.ts +2 -0
  432. package/icons/Recommended.js +6 -0
  433. package/icons/ReferenceProfile.d.ts +2 -0
  434. package/icons/ReferenceProfile.js +6 -0
  435. package/icons/Refresh.d.ts +1 -1
  436. package/icons/Refresh.js +2 -2
  437. package/icons/RefreshDate.d.ts +2 -0
  438. package/icons/RefreshDate.js +6 -0
  439. package/icons/RelationsView.d.ts +2 -0
  440. package/icons/RelationsView.js +6 -0
  441. package/icons/Remove.d.ts +1 -1
  442. package/icons/Remove.js +2 -2
  443. package/icons/RemoveCircle.d.ts +2 -0
  444. package/icons/RemoveCircle.js +6 -0
  445. package/icons/Replay.d.ts +2 -0
  446. package/icons/Replay.js +6 -0
  447. package/icons/Required.d.ts +2 -0
  448. package/icons/Required.js +6 -0
  449. package/icons/RequiredOff.d.ts +2 -0
  450. package/icons/RequiredOff.js +6 -0
  451. package/icons/Reset.d.ts +2 -0
  452. package/icons/Reset.js +6 -0
  453. package/icons/ResetPassword.d.ts +2 -0
  454. package/icons/ResetPassword.js +6 -0
  455. package/icons/ResizeFacetSize.d.ts +2 -0
  456. package/icons/ResizeFacetSize.js +6 -0
  457. package/icons/Resume.d.ts +2 -0
  458. package/icons/Resume.js +6 -0
  459. package/icons/Review.d.ts +2 -0
  460. package/icons/Review.js +6 -0
  461. package/icons/Roles.d.ts +2 -0
  462. package/icons/Roles.js +6 -0
  463. package/icons/Save.d.ts +1 -1
  464. package/icons/Save.js +2 -2
  465. package/icons/Scope.d.ts +2 -0
  466. package/icons/Scope.js +6 -0
  467. package/icons/Search.d.ts +1 -1
  468. package/icons/Search.js +2 -2
  469. package/icons/SearchConnections.d.ts +2 -0
  470. package/icons/SearchConnections.js +6 -0
  471. package/icons/SearchGlobal.d.ts +2 -0
  472. package/icons/SearchGlobal.js +6 -0
  473. package/icons/Segments.d.ts +2 -0
  474. package/icons/Segments.js +6 -0
  475. package/icons/SelectedNode.d.ts +2 -0
  476. package/icons/SelectedNode.js +6 -0
  477. package/icons/Send.d.ts +2 -0
  478. package/icons/Send.js +6 -0
  479. package/icons/Settings.d.ts +1 -1
  480. package/icons/Settings.js +2 -2
  481. package/icons/Share.d.ts +1 -1
  482. package/icons/Share.js +2 -2
  483. package/icons/ShoppingCart.d.ts +2 -0
  484. package/icons/ShoppingCart.js +6 -0
  485. package/icons/ShowGraph.d.ts +2 -0
  486. package/icons/ShowGraph.js +6 -0
  487. package/icons/ShowPanel.d.ts +2 -0
  488. package/icons/ShowPanel.js +6 -0
  489. package/icons/ShowhideColumns.d.ts +2 -0
  490. package/icons/ShowhideColumns.js +6 -0
  491. package/icons/SideNav.d.ts +2 -0
  492. package/icons/SideNav.js +6 -0
  493. package/icons/SimpleAttribute.d.ts +2 -0
  494. package/icons/SimpleAttribute.js +6 -0
  495. package/icons/Sort.d.ts +1 -1
  496. package/icons/Sort.js +2 -2
  497. package/icons/Sorting.d.ts +2 -0
  498. package/icons/Sorting.js +6 -0
  499. package/icons/Split.d.ts +2 -0
  500. package/icons/Split.js +6 -0
  501. package/icons/Star.d.ts +2 -0
  502. package/icons/Star.js +6 -0
  503. package/icons/StarSelected.d.ts +2 -0
  504. package/icons/StarSelected.js +6 -0
  505. package/icons/StartDate.d.ts +2 -0
  506. package/icons/StartDate.js +6 -0
  507. package/icons/StopJob.d.ts +2 -0
  508. package/icons/StopJob.js +6 -0
  509. package/icons/Style.d.ts +2 -0
  510. package/icons/Style.js +6 -0
  511. package/icons/Suggest.d.ts +2 -0
  512. package/icons/Suggest.js +6 -0
  513. package/icons/Survivorship.d.ts +2 -0
  514. package/icons/Survivorship.js +6 -0
  515. package/icons/Sync.d.ts +2 -0
  516. package/icons/Sync.js +6 -0
  517. package/icons/TaskList.d.ts +2 -0
  518. package/icons/TaskList.js +6 -0
  519. package/icons/ThumbDown.d.ts +2 -0
  520. package/icons/ThumbDown.js +6 -0
  521. package/icons/ThumbUp.d.ts +2 -0
  522. package/icons/ThumbUp.js +6 -0
  523. package/icons/Today.d.ts +2 -0
  524. package/icons/Today.js +6 -0
  525. package/icons/Training.d.ts +2 -0
  526. package/icons/Training.js +6 -0
  527. package/icons/TrainingBulb.d.ts +2 -0
  528. package/icons/TrainingBulb.js +6 -0
  529. package/icons/TrainingBulbReady.d.ts +2 -0
  530. package/icons/TrainingBulbReady.js +6 -0
  531. package/icons/TrainingContinue.d.ts +2 -0
  532. package/icons/TrainingContinue.js +6 -0
  533. package/icons/TrainingReady.d.ts +2 -0
  534. package/icons/TrainingReady.js +6 -0
  535. package/icons/Transform.d.ts +2 -0
  536. package/icons/Transform.js +6 -0
  537. package/icons/Tune.d.ts +2 -0
  538. package/icons/Tune.js +6 -0
  539. package/icons/Unmerge.d.ts +2 -0
  540. package/icons/Unmerge.js +6 -0
  541. package/icons/Unpublish.d.ts +2 -0
  542. package/icons/Unpublish.js +6 -0
  543. package/icons/Unshare.d.ts +2 -0
  544. package/icons/Unshare.js +6 -0
  545. package/icons/Up.d.ts +2 -0
  546. package/icons/Up.js +6 -0
  547. package/icons/Upload.d.ts +1 -1
  548. package/icons/Upload.js +2 -2
  549. package/icons/UsageApp.d.ts +2 -0
  550. package/icons/UsageApp.js +6 -0
  551. package/icons/Users.d.ts +2 -0
  552. package/icons/Users.js +6 -0
  553. package/icons/VerticalAlign.d.ts +2 -0
  554. package/icons/VerticalAlign.js +6 -0
  555. package/icons/ViewCards.d.ts +2 -0
  556. package/icons/ViewCards.js +6 -0
  557. package/icons/ViewChart.d.ts +2 -0
  558. package/icons/ViewChart.js +6 -0
  559. package/icons/ViewColumn.d.ts +2 -0
  560. package/icons/ViewColumn.js +6 -0
  561. package/icons/ViewHierarchy.d.ts +2 -0
  562. package/icons/ViewHierarchy.js +6 -0
  563. package/icons/ViewList.d.ts +2 -0
  564. package/icons/ViewList.js +6 -0
  565. package/icons/ViewMap.d.ts +2 -0
  566. package/icons/ViewMap.js +6 -0
  567. package/icons/ViewTable.d.ts +2 -0
  568. package/icons/ViewTable.js +6 -0
  569. package/icons/Visibility.d.ts +1 -1
  570. package/icons/Visibility.js +2 -2
  571. package/icons/VisibilityOff.d.ts +1 -1
  572. package/icons/VisibilityOff.js +2 -2
  573. package/icons/Warning.d.ts +1 -1
  574. package/icons/Warning.js +2 -2
  575. package/icons/Working.d.ts +2 -0
  576. package/icons/Working.js +6 -0
  577. package/icons/index.d.ts +189 -2
  578. package/icons/index.js +377 -3
  579. package/package.json +2 -8
  580. package/packages/design/charts.d.ts +1 -0
  581. package/packages/design/charts.js +1 -0
  582. package/packages/design/icons.d.ts +1 -0
  583. package/packages/design/icons.js +1 -0
  584. package/packages/design/utils.d.ts +1 -0
  585. package/packages/design/utils.js +1 -0
  586. package/utils/classNames.d.ts +5 -3
  587. package/utils/classNames.js +6 -6
  588. package/utils/index.d.ts +2 -0
  589. package/utils/index.js +2 -0
  590. package/utils/types.d.ts +11 -0
  591. package/utils/types.js +1 -0
  592. /package/packages/design/{index.d.ts → components.d.ts} +0 -0
  593. /package/packages/design/{index.js → components.js} +0 -0
@@ -1,33 +1,7 @@
1
1
  import styleInject from 'style-inject';
2
2
  import json from './AssistantLoader.module.css.json';
3
3
  styleInject(`
4
- /* CSS Custom Properties - All defined on .root with --reltio-assistant-loader- prefix */
5
- ._root_lj6wo_1 {
6
- --reltio-assistant-loader-size: 32px;
7
-
8
- /* Dot dimensions scale with size */
9
- --reltio-assistant-loader-dot-size: calc(
10
- var(--reltio-assistant-loader-size, 32px) *
11
- 0.25
12
- );
13
- --reltio-assistant-loader-dot-radius: calc(
14
- var(--reltio-assistant-loader-size, 32px) *
15
- 0.15625
16
- );
17
- --reltio-assistant-loader-dot-color: #8d8dc8;
18
- --reltio-assistant-loader-dot-color-dimmed: rgba(152, 128, 255, 0.2);
19
- --reltio-assistant-loader-dot-gap: calc(
20
- var(--reltio-assistant-loader-size, 32px) *
21
- 0.375
22
- );
23
- --reltio-assistant-loader-dot-margin-left: calc(
24
- var(--reltio-assistant-loader-size, 32px) *
25
- 0.625
26
- );
27
- --reltio-assistant-loader-dot-duration: 1s;
28
- --reltio-assistant-loader-dot-delay-middle: 0.5s;
29
- --reltio-assistant-loader-dot-delay-last: 1s;
30
-
4
+ .AssistantLoader_root__L29wd {
31
5
  position: relative;
32
6
  display: inline-flex;
33
7
  align-items: center;
@@ -35,65 +9,59 @@ styleInject(`
35
9
  box-sizing: border-box;
36
10
  }
37
11
 
38
- /* GIF container - uses CSS variable for size with fallback */
39
- ._indicator_lj6wo_36 {
40
- width: var(--reltio-assistant-loader-size, 32px);
41
- height: var(--reltio-assistant-loader-size, 32px);
12
+ .AssistantLoader_indicator__L29wd {
13
+ width: var(--size);
14
+ height: var(--size);
42
15
  display: block;
43
16
  object-fit: contain;
44
17
  }
45
18
 
46
- /* Dot flashing indicator - uses CSS variables from .root */
47
- ._dotFlashing_lj6wo_44 {
19
+ .AssistantLoader_dotFlashing__L29wd {
48
20
  position: absolute;
49
- left: calc(
50
- var(--reltio-assistant-loader-size, 32px) +
51
- var(--reltio-assistant-loader-dot-margin-left, 20px)
52
- );
21
+ left: calc(var(--size) * 1.625);
53
22
  bottom: 20%;
54
23
  transform: translateY(50%);
55
- width: var(--reltio-assistant-loader-dot-size, 8px);
56
- height: var(--reltio-assistant-loader-dot-size, 8px);
57
- border-radius: var(--reltio-assistant-loader-dot-radius, 5px);
58
- background-color: var(--reltio-assistant-loader-dot-color, #8d8dc8);
59
- animation: _dotFlashing_lj6wo_44 var(--reltio-assistant-loader-dot-duration, 1s)
60
- infinite linear alternate;
61
- animation-delay: var(--reltio-assistant-loader-dot-delay-middle, 0.5s);
24
+ width: calc(var(--size) * 0.25);
25
+ height: calc(var(--size) * 0.25);
26
+ border-radius: calc(var(--size) * 0.15625);
27
+ background-color: var(--reltio-color-primary-soft);
28
+ animation: AssistantLoader_dotFlashing__L29wd 1s infinite linear alternate;
29
+ animation-delay: 0.5s;
62
30
  }
63
31
 
64
- ._dotFlashing_lj6wo_44::before,
65
- ._dotFlashing_lj6wo_44::after {
32
+ .AssistantLoader_dotFlashing__L29wd::before,
33
+ .AssistantLoader_dotFlashing__L29wd::after {
66
34
  content: "";
67
35
  position: absolute;
68
36
  top: 0;
69
37
  display: block;
70
- width: var(--reltio-assistant-loader-dot-size, 8px);
71
- height: var(--reltio-assistant-loader-dot-size, 8px);
72
- border-radius: var(--reltio-assistant-loader-dot-radius, 5px);
73
- background-color: var(--reltio-assistant-loader-dot-color, #8d8dc8);
74
- animation: _dotFlashing_lj6wo_44 var(--reltio-assistant-loader-dot-duration, 1s)
75
- infinite alternate;
38
+ width: calc(var(--size) * 0.25);
39
+ height: calc(var(--size) * 0.25);
40
+ border-radius: calc(var(--size) * 0.15625);
41
+ background-color: var(--reltio-color-primary-soft);
42
+ animation: AssistantLoader_dotFlashing__L29wd 1s infinite alternate;
76
43
  }
77
44
 
78
- ._dotFlashing_lj6wo_44::before {
79
- left: calc(-1 * var(--reltio-assistant-loader-dot-gap, 12px));
45
+ .AssistantLoader_dotFlashing__L29wd::before {
46
+ left: calc(var(--size) * -0.375);
80
47
  animation-delay: 0s;
81
48
  }
82
49
 
83
- ._dotFlashing_lj6wo_44::after {
84
- left: var(--reltio-assistant-loader-dot-gap, 12px);
85
- animation-delay: var(--reltio-assistant-loader-dot-delay-last, 1s);
50
+ .AssistantLoader_dotFlashing__L29wd::after {
51
+ left: calc(var(--size) * 0.375);
52
+ animation-delay: 1s;
86
53
  }
87
54
 
88
- @keyframes _dotFlashing_lj6wo_44 {
55
+ @keyframes AssistantLoader_dotFlashing__L29wd {
89
56
  0% {
90
- background-color: var(--reltio-assistant-loader-dot-color, #8d8dc8);
57
+ background-color: var(--reltio-color-primary-soft);
91
58
  }
92
59
  50%,
93
60
  100% {
94
- background-color: var(
95
- --reltio-assistant-loader-dot-color-dimmed,
96
- rgba(152, 128, 255, 0.2)
61
+ background-color: color-mix(
62
+ in srgb,
63
+ var(--reltio-color-primary-soft) 20%,
64
+ transparent
97
65
  );
98
66
  }
99
67
  }
@@ -1 +1 @@
1
- { "root": "_root_lj6wo_1", "indicator": "_indicator_lj6wo_36", "dotFlashing": "_dotFlashing_lj6wo_44" }
1
+ { "root": "AssistantLoader_root__L29wd", "indicator": "AssistantLoader_indicator__L29wd", "dotFlashing": "AssistantLoader_dotFlashing__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 AssistantLoader component
4
4
  */
5
- export type AssistantLoaderProps = {
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 & {
14
- "--reltio-assistant-loader-size"?: string;
15
- };
16
- } & Omit<React.ComponentPropsWithoutRef<"div">, "children" | "className" | "style">;
5
+ export type AssistantLoaderProps = HtmlProps<"div", {
6
+ /** Overall size of the loader (e.g. "32px", "2rem", "100%"). Defaults to 32px. */
7
+ size?: string;
8
+ }>;
@@ -5,5 +5,8 @@ import type { ButtonProps } from "./Button.types";
5
5
  * A flexible, accessible button component that supports multiple variants
6
6
  * (filled, outlined, text), color options (primary, secondary, inherited),
7
7
  * sizes, states, and can render as either a button or anchor element.
8
+ *
9
+ * Automatically switches to circular icon-only layout when children
10
+ * is a single React component element.
8
11
  */
9
- export declare const Button: ({ variant, color, size, disabled, fullWidth, children, className, onClick, href, type, "aria-label": ariaLabel, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Button: ({ variant, color, size, disabled, fullWidth, children, className, href, type, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useEffect, useRef } from "react";
2
+ import React, { useEffect, useRef } from "react";
3
3
  import { classNames } from "../../utils/classNames";
4
4
  import styles from "./Button.module.css";
5
5
  /**
@@ -8,8 +8,11 @@ import styles from "./Button.module.css";
8
8
  * A flexible, accessible button component that supports multiple variants
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
+ *
12
+ * Automatically switches to circular icon-only layout when children
13
+ * is a single React component element.
11
14
  */
12
- export const Button = ({ variant = "filled", color = "inherited", size = "medium", disabled = false, fullWidth = false, children, className, onClick, href, type = "button", "aria-label": ariaLabel, ...rest }) => {
15
+ export const Button = ({ variant = "filled", color = "inherited", size = "medium", disabled = false, fullWidth = false, children, className, href, type = "button", ...rest }) => {
13
16
  const buttonRef = useRef(null);
14
17
  // Remove focus when button becomes disabled
15
18
  useEffect(() => {
@@ -19,53 +22,15 @@ export const Button = ({ variant = "filled", color = "inherited", size = "medium
19
22
  buttonRef.current.blur();
20
23
  }
21
24
  }, [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
- // Compose className using classNames utility
59
- 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
- };
25
+ const isIconOnly = React.Children.count(children) === 1 &&
26
+ React.isValidElement(children) &&
27
+ typeof children.type !== "string" &&
28
+ children.type !== React.Fragment;
29
+ const composedClassName = classNames(styles.root, styles[variant], styles[color], styles[size], disabled && styles.disabled, fullWidth && styles.fullWidth, isIconOnly && styles.iconOnly, className);
65
30
  // Render as anchor if href is provided
66
31
  if (href) {
67
- return (_jsx("a", { ref: buttonRef, href: disabled ? undefined : href, className: composedClassName, onClick: handleClick, onKeyDown: handleKeyDown, ...ariaAttributes, ...rest, children: children }));
32
+ return (_jsx("a", { ref: buttonRef, href: disabled ? undefined : href, className: composedClassName, "aria-disabled": disabled ? true : undefined, ...rest, children: children }));
68
33
  }
69
34
  // Render as button
70
- return (_jsx("button", { ref: buttonRef, type: type, disabled: disabled, className: composedClassName, onClick: handleClick, onKeyDown: handleKeyDown, ...ariaAttributes, ...rest, children: children }));
35
+ return (_jsx("button", { ref: buttonRef, type: type, disabled: disabled, className: composedClassName, ...rest, children: children }));
71
36
  };
@@ -1,193 +1,150 @@
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 12px;
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 18px;
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 24px;
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;
138
+ }
139
+
140
+ /* Icon Only */
141
+ .Button_iconOnly__L29wd {
142
+ aspect-ratio: 1;
143
+ padding: 0;
187
144
  }
188
145
 
189
146
  /* Full Width */
190
- ._fullWidth_1lt78_187 {
147
+ .Button_fullWidth__L29wd {
191
148
  width: 100%;
192
149
  }
193
150
  `);
@@ -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", "iconOnly": "Button_iconOnly__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
  };