aristid-ds 14.0.0-e56c945 → 14.0.0-e7e4173

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 (335) hide show
  1. package/CHANGELOG.md +66 -2
  2. package/README.md +26 -26
  3. package/dist/Kit/App/index.js +8 -9
  4. package/dist/Kit/App/types.d.ts +2 -3
  5. package/dist/Kit/DataDisplay/Avatar/index.js +14 -14
  6. package/dist/Kit/DataDisplay/Avatar/types.d.ts +5 -6
  7. package/dist/Kit/DataDisplay/Badge/index.js +8 -9
  8. package/dist/Kit/DataDisplay/Badge/types.d.ts +3 -4
  9. package/dist/Kit/DataDisplay/Collapse/index.js +25 -26
  10. package/dist/Kit/DataDisplay/Collapse/types.d.ts +5 -6
  11. package/dist/Kit/DataDisplay/Comment/Comment.d.ts +3 -0
  12. package/dist/Kit/DataDisplay/Comment/Thread.d.ts +3 -0
  13. package/dist/Kit/DataDisplay/Comment/index.d.ts +2 -0
  14. package/dist/Kit/DataDisplay/Comment/index.js +5 -0
  15. package/dist/Kit/DataDisplay/Comment/types.d.ts +10 -0
  16. package/dist/Kit/DataDisplay/Empty/index.js +18 -18
  17. package/dist/Kit/DataDisplay/Empty/types.d.ts +4 -4
  18. package/dist/Kit/DataDisplay/Error/index.js +20 -21
  19. package/dist/Kit/DataDisplay/Error/types.d.ts +3 -4
  20. package/dist/Kit/DataDisplay/IdCard/index.d.ts +2 -2
  21. package/dist/Kit/DataDisplay/IdCard/index.js +25 -26
  22. package/dist/Kit/DataDisplay/IdCard/types.d.ts +5 -4
  23. package/dist/Kit/DataDisplay/Image/index.js +6 -7
  24. package/dist/Kit/DataDisplay/Image/types.d.ts +3 -5
  25. package/dist/Kit/DataDisplay/ItemCard/index.d.ts +1 -2
  26. package/dist/Kit/DataDisplay/ItemCard/index.js +5 -6
  27. package/dist/Kit/DataDisplay/ItemCard/types.d.ts +6 -7
  28. package/dist/Kit/DataDisplay/ItemList/index.d.ts +1 -2
  29. package/dist/Kit/DataDisplay/ItemList/index.js +17 -18
  30. package/dist/Kit/DataDisplay/ItemList/types.d.ts +4 -5
  31. package/dist/Kit/DataDisplay/RedirectCard/index.d.ts +1 -2
  32. package/dist/Kit/DataDisplay/RedirectCard/index.js +4 -5
  33. package/dist/Kit/DataDisplay/RedirectCard/types.d.ts +2 -3
  34. package/dist/Kit/DataDisplay/Table/DragHandle.d.ts +1 -2
  35. package/dist/Kit/DataDisplay/Table/Table.d.ts +2 -2
  36. package/dist/Kit/DataDisplay/Table/getRowClassName.d.ts +1 -0
  37. package/dist/Kit/DataDisplay/Table/index.js +89 -88
  38. package/dist/Kit/DataDisplay/Table/internalComponents.d.ts +1 -1
  39. package/dist/Kit/DataDisplay/Table/types.d.ts +15 -17
  40. package/dist/Kit/DataDisplay/Tabs/index.js +23 -24
  41. package/dist/Kit/DataDisplay/Tabs/types.d.ts +2 -2
  42. package/dist/Kit/DataDisplay/Tag/Tag.d.ts +1 -2
  43. package/dist/Kit/DataDisplay/Tag/index.js +61 -59
  44. package/dist/Kit/DataDisplay/Tag/types.d.ts +6 -6
  45. package/dist/Kit/DataDisplay/Tooltip/types.d.ts +2 -3
  46. package/dist/Kit/DataDisplay/Tour/index.js +1 -1
  47. package/dist/Kit/DataDisplay/Tour/types.d.ts +1 -2
  48. package/dist/Kit/DataDisplay/Tree/index.js +8 -9
  49. package/dist/Kit/DataDisplay/Tree/types.d.ts +4 -5
  50. package/dist/Kit/DataDisplay/types.d.ts +1 -2
  51. package/dist/Kit/DataEntry/AutoComplete/index.d.ts +2 -3
  52. package/dist/Kit/DataEntry/AutoComplete/index.js +7 -8
  53. package/dist/Kit/DataEntry/AutoComplete/types.d.ts +3 -4
  54. package/dist/Kit/DataEntry/Checkbox/Checkbox.d.ts +1 -2
  55. package/dist/Kit/DataEntry/Checkbox/Group.d.ts +2 -2
  56. package/dist/Kit/DataEntry/Checkbox/index.js +14 -15
  57. package/dist/Kit/DataEntry/Checkbox/types.d.ts +5 -6
  58. package/dist/Kit/DataEntry/ColorPicker/index.d.ts +1 -2
  59. package/dist/Kit/DataEntry/ColorPicker/index.js +38 -39
  60. package/dist/Kit/DataEntry/ColorPicker/types.d.ts +5 -5
  61. package/dist/Kit/DataEntry/DatePicker/DatePicker.d.ts +1 -2
  62. package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +1 -2
  63. package/dist/Kit/DataEntry/DatePicker/index.js +15 -16
  64. package/dist/Kit/DataEntry/DatePicker/types.d.ts +2 -3
  65. package/dist/Kit/DataEntry/Filter/index.d.ts +1 -2
  66. package/dist/Kit/DataEntry/Filter/index.js +21 -20
  67. package/dist/Kit/DataEntry/Filter/types.d.ts +4 -3
  68. package/dist/Kit/DataEntry/Input/Input.d.ts +1 -2
  69. package/dist/Kit/DataEntry/Input/Password.d.ts +1 -2
  70. package/dist/Kit/DataEntry/Input/TextArea.d.ts +1 -2
  71. package/dist/Kit/DataEntry/Input/index.d.ts +1 -1
  72. package/dist/Kit/DataEntry/Input/index.js +29 -28
  73. package/dist/Kit/DataEntry/Input/types.d.ts +5 -5
  74. package/dist/Kit/DataEntry/InputNumber/index.d.ts +1 -2
  75. package/dist/Kit/DataEntry/InputNumber/index.js +8 -9
  76. package/dist/Kit/DataEntry/InputNumber/types.d.ts +3 -4
  77. package/dist/Kit/DataEntry/InputWrapper/InputWrapper.d.ts +1 -2
  78. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  79. package/dist/Kit/DataEntry/InputWrapper/types.d.ts +2 -3
  80. package/dist/Kit/DataEntry/Radio/Group.d.ts +1 -2
  81. package/dist/Kit/DataEntry/Radio/Radio.d.ts +1 -2
  82. package/dist/Kit/DataEntry/Radio/context.d.ts +3 -4
  83. package/dist/Kit/DataEntry/Radio/index.d.ts +4 -4
  84. package/dist/Kit/DataEntry/Radio/index.js +18 -19
  85. package/dist/Kit/DataEntry/Radio/types.d.ts +4 -6
  86. package/dist/Kit/DataEntry/Rate/index.d.ts +2 -3
  87. package/dist/Kit/DataEntry/Rate/index.js +5 -6
  88. package/dist/Kit/DataEntry/Rate/types.d.ts +4 -5
  89. package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +5 -6
  90. package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/types.d.ts +2 -3
  91. package/dist/Kit/DataEntry/RichText/Mention/MentionList.d.ts +5 -0
  92. package/dist/Kit/DataEntry/RichText/Mention/renderSuggestion.d.ts +7 -0
  93. package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +4 -5
  94. package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/types.d.ts +2 -3
  95. package/dist/Kit/DataEntry/RichText/MenuBar/FontStylesButtons/index.js +2 -2
  96. package/dist/Kit/DataEntry/RichText/MenuBar/FontStylesButtons/types.d.ts +1 -2
  97. package/dist/Kit/DataEntry/RichText/MenuBar/IndentListButtons/index.js +1 -1
  98. package/dist/Kit/DataEntry/RichText/MenuBar/IndentListButtons/types.d.ts +1 -2
  99. package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/getLinkMarkAtCursor.d.ts +1 -1
  100. package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +18 -19
  101. package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/types.d.ts +1 -2
  102. package/dist/Kit/DataEntry/RichText/MenuBar/ListButtons/index.js +2 -2
  103. package/dist/Kit/DataEntry/RichText/MenuBar/ListButtons/types.d.ts +1 -2
  104. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/types.d.ts +1 -2
  105. package/dist/Kit/DataEntry/RichText/MenuBar/TextAlignButtons/index.js +2 -2
  106. package/dist/Kit/DataEntry/RichText/MenuBar/TextAlignButtons/types.d.ts +1 -2
  107. package/dist/Kit/DataEntry/RichText/MenuBar/UndoRedoButtons/index.js +1 -1
  108. package/dist/Kit/DataEntry/RichText/MenuBar/UndoRedoButtons/types.d.ts +1 -2
  109. package/dist/Kit/DataEntry/RichText/MenuBar/getButtonActiveClass.d.ts +1 -1
  110. package/dist/Kit/DataEntry/RichText/MenuBar/index.js +24 -27
  111. package/dist/Kit/DataEntry/RichText/MenuBar/types.d.ts +1 -2
  112. package/dist/Kit/DataEntry/RichText/index.d.ts +2 -3
  113. package/dist/Kit/DataEntry/RichText/index.js +130 -59
  114. package/dist/Kit/DataEntry/RichText/types.d.ts +9 -5
  115. package/dist/Kit/DataEntry/SearchInput/index.d.ts +2 -0
  116. package/dist/Kit/DataEntry/SearchInput/index.js +17 -0
  117. package/dist/Kit/DataEntry/SearchInput/types.d.ts +4 -0
  118. package/dist/Kit/DataEntry/Select/index.d.ts +2 -3
  119. package/dist/Kit/DataEntry/Select/index.js +97 -97
  120. package/dist/Kit/DataEntry/Select/renders.d.ts +2 -2
  121. package/dist/Kit/DataEntry/Select/types.d.ts +5 -5
  122. package/dist/Kit/DataEntry/Select/useIcons.d.ts +4 -5
  123. package/dist/Kit/DataEntry/Slider/index.d.ts +2 -3
  124. package/dist/Kit/DataEntry/Slider/index.js +9 -10
  125. package/dist/Kit/DataEntry/Slider/types.d.ts +3 -4
  126. package/dist/Kit/DataEntry/Switch/index.d.ts +1 -2
  127. package/dist/Kit/DataEntry/Switch/index.js +5 -6
  128. package/dist/Kit/DataEntry/Switch/types.d.ts +2 -3
  129. package/dist/Kit/DataEntry/TreeSelect/index.d.ts +2 -3
  130. package/dist/Kit/DataEntry/TreeSelect/index.js +67 -66
  131. package/dist/Kit/DataEntry/TreeSelect/renders.d.ts +2 -2
  132. package/dist/Kit/DataEntry/TreeSelect/types.d.ts +20 -9
  133. package/dist/Kit/DataEntry/TreeSelect/useIcons.d.ts +4 -5
  134. package/dist/Kit/DataEntry/Upload/Upload.d.ts +1 -2
  135. package/dist/Kit/DataEntry/Upload/index.js +25 -26
  136. package/dist/Kit/DataEntry/Upload/types.d.ts +5 -6
  137. package/dist/Kit/Feedback/Alert/index.js +8 -9
  138. package/dist/Kit/Feedback/Alert/types.d.ts +4 -5
  139. package/dist/Kit/Feedback/Loader/index.js +9 -10
  140. package/dist/Kit/Feedback/Modal/index.d.ts +1 -1
  141. package/dist/Kit/Feedback/Modal/index.js +98 -95
  142. package/dist/Kit/Feedback/Modal/types.d.ts +3 -4
  143. package/dist/Kit/Feedback/Notification/index.js +1 -1
  144. package/dist/Kit/Feedback/Notification/notification-provider.d.ts +1 -2
  145. package/dist/Kit/Feedback/Notification/types.d.ts +1 -2
  146. package/dist/Kit/Feedback/Notification/useKitNotification.d.ts +1 -1
  147. package/dist/Kit/Feedback/Progress/index.js +3 -4
  148. package/dist/Kit/Feedback/Progress/types.d.ts +2 -3
  149. package/dist/Kit/Feedback/Skeleton/KitAvatarSkeleton.d.ts +1 -1
  150. package/dist/Kit/Feedback/Skeleton/KitCustomSkeleton.d.ts +1 -1
  151. package/dist/Kit/Feedback/Skeleton/KitInputSkeleton.d.ts +1 -1
  152. package/dist/Kit/Feedback/Skeleton/KitItemCard.d.ts +1 -1
  153. package/dist/Kit/Feedback/Skeleton/KitItemListSkeleton.d.ts +1 -1
  154. package/dist/Kit/Feedback/Skeleton/index.js +3 -4
  155. package/dist/Kit/Feedback/Skeleton/types.d.ts +1 -2
  156. package/dist/Kit/Feedback/SnackBar/index.d.ts +2 -2
  157. package/dist/Kit/Feedback/SnackBar/index.js +10 -11
  158. package/dist/Kit/Feedback/SnackBar/types.d.ts +3 -4
  159. package/dist/Kit/General/Button/Button.d.ts +1 -1
  160. package/dist/Kit/General/Button/SplitButton.d.ts +1 -1
  161. package/dist/Kit/General/Button/index.d.ts +1 -1
  162. package/dist/Kit/General/Button/index.js +53 -55
  163. package/dist/Kit/General/Button/types.d.ts +4 -5
  164. package/dist/Kit/General/DynamicActions/index.js +2 -2
  165. package/dist/Kit/General/DynamicActions/types.d.ts +3 -4
  166. package/dist/Kit/General/Icon/index.js +5 -6
  167. package/dist/Kit/General/Icon/types.d.ts +4 -5
  168. package/dist/Kit/General/Typography/AdvancedLink.d.ts +1 -2
  169. package/dist/Kit/General/Typography/AdvancedParagraph.d.ts +1 -2
  170. package/dist/Kit/General/Typography/AdvancedText.d.ts +1 -2
  171. package/dist/Kit/General/Typography/AdvancedTitle.d.ts +1 -1
  172. package/dist/Kit/General/Typography/Link.d.ts +2 -2
  173. package/dist/Kit/General/Typography/Paragraph.d.ts +2 -2
  174. package/dist/Kit/General/Typography/Text.d.ts +2 -2
  175. package/dist/Kit/General/Typography/Title.d.ts +2 -2
  176. package/dist/Kit/General/Typography/index.js +66 -66
  177. package/dist/Kit/General/Typography/types.d.ts +3 -5
  178. package/dist/Kit/Layout/Divider/index.js +10 -11
  179. package/dist/Kit/Layout/Divider/types.d.ts +2 -3
  180. package/dist/Kit/Layout/Grid/types.d.ts +2 -3
  181. package/dist/Kit/Layout/PageLayout/index.d.ts +1 -1
  182. package/dist/Kit/Layout/PageLayout/index.js +5 -6
  183. package/dist/Kit/Layout/PageLayout/types.d.ts +2 -3
  184. package/dist/Kit/Layout/Section/index.d.ts +1 -2
  185. package/dist/Kit/Layout/Section/index.js +10 -12
  186. package/dist/Kit/Layout/Section/types.d.ts +2 -3
  187. package/dist/Kit/Layout/Space/index.d.ts +1 -1
  188. package/dist/Kit/Layout/Space/index.js +1 -1
  189. package/dist/Kit/Layout/Space/types.d.ts +4 -5
  190. package/dist/Kit/Navigation/Breadcrumb/index.js +8 -9
  191. package/dist/Kit/Navigation/Breadcrumb/types.d.ts +4 -5
  192. package/dist/Kit/Navigation/DropDown/index.js +5 -6
  193. package/dist/Kit/Navigation/DropDown/types.d.ts +2 -3
  194. package/dist/Kit/Navigation/Header/index.d.ts +2 -1
  195. package/dist/Kit/Navigation/Header/index.js +50 -50
  196. package/dist/Kit/Navigation/Header/types.d.ts +7 -7
  197. package/dist/Kit/Navigation/PageHeader/index.js +8 -9
  198. package/dist/Kit/Navigation/PageHeader/types.d.ts +3 -4
  199. package/dist/Kit/Navigation/Pagination/index.d.ts +0 -1
  200. package/dist/Kit/Navigation/Pagination/index.js +8 -9
  201. package/dist/Kit/Navigation/Pagination/types.d.ts +2 -3
  202. package/dist/Kit/Navigation/SideMenu/index.d.ts +1 -1
  203. package/dist/Kit/Navigation/SideMenu/index.js +12 -13
  204. package/dist/Kit/Navigation/SideMenu/types.d.ts +3 -4
  205. package/dist/Kit/Navigation/SidePanel/SidePanel.d.ts +2 -3
  206. package/dist/Kit/Navigation/SidePanel/SidePanelContent.d.ts +1 -1
  207. package/dist/Kit/Navigation/SidePanel/SidePanelHeader.d.ts +1 -1
  208. package/dist/Kit/Navigation/SidePanel/index.d.ts +3 -3
  209. package/dist/Kit/Navigation/SidePanel/index.js +67 -60
  210. package/dist/Kit/Navigation/SidePanel/types.d.ts +5 -5
  211. package/dist/Kit/Navigation/Steps/index.js +2 -3
  212. package/dist/Kit/Navigation/Steps/types.d.ts +2 -3
  213. package/dist/Kit/index.d.ts +3 -0
  214. package/dist/Kit/index.js +185 -180
  215. package/dist/assets/Avatar.css +1 -1
  216. package/dist/assets/InputWrapper.css +1 -1
  217. package/dist/assets/KitNotification.css +1 -1
  218. package/dist/assets/Thread.css +1 -0
  219. package/dist/assets/empty/empty-no-comment.d.ts +1 -0
  220. package/dist/assets/index.css +1 -1
  221. package/dist/assets/index10.css +1 -1
  222. package/dist/assets/index11.css +1 -1
  223. package/dist/assets/index12.css +1 -1
  224. package/dist/assets/index13.css +1 -1
  225. package/dist/assets/index14.css +1 -1
  226. package/dist/assets/index15.css +1 -1
  227. package/dist/assets/index16.css +1 -1
  228. package/dist/assets/index18.css +1 -1
  229. package/dist/assets/index2.css +1 -1
  230. package/dist/assets/index20.css +1 -1
  231. package/dist/assets/index21.css +1 -1
  232. package/dist/assets/index22.css +1 -1
  233. package/dist/assets/index23.css +1 -1
  234. package/dist/assets/index24.css +1 -1
  235. package/dist/assets/index25.css +1 -1
  236. package/dist/assets/index26.css +1 -1
  237. package/dist/assets/index27.css +1 -1
  238. package/dist/assets/index28.css +1 -1
  239. package/dist/assets/index29.css +1 -1
  240. package/dist/assets/index3.css +1 -1
  241. package/dist/assets/index30.css +1 -1
  242. package/dist/assets/index31.css +1 -1
  243. package/dist/assets/index32.css +1 -1
  244. package/dist/assets/index33.css +1 -1
  245. package/dist/assets/index34.css +1 -1
  246. package/dist/assets/index35.css +1 -1
  247. package/dist/assets/index36.css +1 -1
  248. package/dist/assets/index37.css +1 -1
  249. package/dist/assets/index38.css +1 -1
  250. package/dist/assets/index39.css +1 -1
  251. package/dist/assets/index4.css +1 -1
  252. package/dist/assets/index40.css +1 -1
  253. package/dist/assets/index41.css +1 -1
  254. package/dist/assets/index42.css +1 -1
  255. package/dist/assets/index43.css +1 -1
  256. package/dist/assets/index44.css +1 -1
  257. package/dist/assets/index45.css +1 -1
  258. package/dist/assets/index46.css +1 -1
  259. package/dist/assets/index47.css +1 -1
  260. package/dist/assets/index48.css +1 -1
  261. package/dist/assets/index49.css +1 -1
  262. package/dist/assets/index5.css +1 -1
  263. package/dist/assets/index50.css +1 -0
  264. package/dist/assets/index6.css +1 -1
  265. package/dist/assets/index7.css +1 -1
  266. package/dist/assets/index8.css +1 -1
  267. package/dist/assets/index9.css +1 -1
  268. package/dist/assets/logo/aristid.d.ts +1 -0
  269. package/dist/assets/styles.css +1 -1
  270. package/dist/assets/styles2.css +1 -1
  271. package/dist/assets/useGetPopupContainer.css +1 -1
  272. package/dist/chunks/{Avatar.BvI60jet.js → Avatar.B2Q0k3WU.js} +10 -11
  273. package/dist/chunks/{InputWrapper.hIFFr5AB.js → InputWrapper.D7QArlvo.js} +13 -15
  274. package/dist/chunks/{KitNotification.DzpYf5_j.js → KitNotification.B0GerQWf.js} +9 -10
  275. package/dist/chunks/Thread.Cb7BFNKI.js +25 -0
  276. package/dist/chunks/{notification-provider.9msrEKBe.js → notification-provider.C9v3n-Rg.js} +6 -6
  277. package/dist/chunks/{styles.module.shsViPAW.js → styles.module.BiErj37W.js} +2 -3
  278. package/dist/chunks/styles.module.Ck2msTF3.js +6 -0
  279. package/dist/chunks/useGetPopupContainer.bCZKSUsz.js +17 -0
  280. package/dist/chunks/{useKitLocale.96CdK3og.js → useKitLocale.C5F-tmnC.js} +3 -3
  281. package/dist/chunks/{useKitTheme.KSAU-Pdv.js → useKitTheme.BdeSOGoj.js} +3 -3
  282. package/dist/index.es.js +189 -184
  283. package/dist/index.umd.js +4 -4
  284. package/dist/theme/aristid/components/DataDisplay/Avatar/index.js +1 -1
  285. package/dist/theme/aristid/components/DataDisplay/Badge/index.js +1 -1
  286. package/dist/theme/aristid/components/DataDisplay/Collapse/index.js +1 -1
  287. package/dist/theme/aristid/components/DataDisplay/Image/index.js +1 -1
  288. package/dist/theme/aristid/components/DataDisplay/ItemList/index.js +1 -1
  289. package/dist/theme/aristid/components/DataDisplay/Tabs/index.js +1 -1
  290. package/dist/theme/aristid/components/DataDisplay/Tag/index.js +1 -1
  291. package/dist/theme/aristid/components/DataDisplay/Tooltip/index.js +1 -1
  292. package/dist/theme/aristid/components/DataDisplay/Tree/index.js +1 -1
  293. package/dist/theme/aristid/components/DataEntry/Checkbox/index.js +1 -1
  294. package/dist/theme/aristid/components/DataEntry/ColorPicker/index.js +1 -1
  295. package/dist/theme/aristid/components/DataEntry/DatePicker/index.js +1 -1
  296. package/dist/theme/aristid/components/DataEntry/Filter/index.js +1 -1
  297. package/dist/theme/aristid/components/DataEntry/Input/index.js +1 -1
  298. package/dist/theme/aristid/components/DataEntry/InputNumber/index.js +1 -1
  299. package/dist/theme/aristid/components/DataEntry/InputWrapper/index.js +1 -1
  300. package/dist/theme/aristid/components/DataEntry/Radio/index.js +1 -1
  301. package/dist/theme/aristid/components/DataEntry/Rate/index.js +1 -1
  302. package/dist/theme/aristid/components/DataEntry/Select/index.js +1 -1
  303. package/dist/theme/aristid/components/DataEntry/Slider/index.js +1 -1
  304. package/dist/theme/aristid/components/DataEntry/Switch/index.js +1 -1
  305. package/dist/theme/aristid/components/Feedback/Alert/index.js +1 -1
  306. package/dist/theme/aristid/components/Feedback/Modal/index.js +3 -4
  307. package/dist/theme/aristid/components/Feedback/Notification/index.js +1 -1
  308. package/dist/theme/aristid/components/Feedback/SnackBar/index.js +1 -1
  309. package/dist/theme/aristid/components/General/Icon/index.js +1 -1
  310. package/dist/theme/aristid/components/General/Typography/index.js +1 -1
  311. package/dist/theme/aristid/components/Layout/Divider/index.js +1 -1
  312. package/dist/theme/aristid/components/Navigation/Breadcrumb/index.js +1 -1
  313. package/dist/theme/aristid/components/Navigation/DropDown/index.js +1 -1
  314. package/dist/theme/aristid/components/Navigation/Header/index.js +1 -1
  315. package/dist/theme/aristid/components/Navigation/Pagination/index.js +1 -1
  316. package/dist/theme/aristid/components/Navigation/Steps/index.js +1 -1
  317. package/dist/theme/types/components/Feedback/Modal/index.d.ts +0 -1
  318. package/dist/theme/types/index.d.ts +45 -46
  319. package/dist/theme/useKitTheme.d.ts +1 -2
  320. package/dist/translation/types/index.d.ts +12 -13
  321. package/dist/translation/useKitLocale.d.ts +1 -2
  322. package/dist/translation/utils/index.d.ts +1 -1
  323. package/dist/translation/utils/index.js +1 -1
  324. package/dist/types.d.ts +1 -2
  325. package/dist/utils/functions/colors.d.ts +2 -0
  326. package/dist/utils/functions/index.js +103 -63
  327. package/dist/utils/functions/types.d.ts +1 -2
  328. package/dist/utils/hooks/useGetPopupContainer.d.ts +1 -1
  329. package/package.json +41 -44
  330. package/dist/chunks/styles.module.V-A2OGgm.js +0 -7
  331. package/dist/chunks/useGetPopupContainer.efPkxYe1.js +0 -18
  332. /package/dist/chunks/{SnackBarProvider.wBpPNyLk.js → SnackBarProvider.D44OffUd.js} +0 -0
  333. /package/dist/chunks/{constants.DINGxt3I.js → constants.CctH0M4n.js} +0 -0
  334. /package/dist/chunks/{css-tokens-generator.q48Dpxx7.js → css-tokens-generator.BlwCHwrh.js} +0 -0
  335. /package/dist/chunks/{getButtonActiveClass.SjojTAbN.js → getButtonActiveClass.CdKy9gg4.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -4,13 +4,15 @@
4
4
 
5
5
  ### ✨ Features
6
6
 
7
+ - **RichText**:
8
+ - Add `autoLayout` RichText adapt layout dynamically (@Lebonnois-Steven)
7
9
  - **⚠️ Breaking change - Button**:
8
10
  - Remove `checked` prop from segmented button (@evoiron)
9
11
  - **⚠️ Breaking change - IdCard**:
10
12
  - Replacing `size` options (@fatb38)
11
13
  - removing `medium` and `large`
12
14
  - adding `xxs-medium`, `xs-medium`, `xs-bold`, `s`, `m`, `l`, `xl`
13
- - **⚠️ Breaking change - Input**:
15
+ - **⚠️ Breaking change - Input (Input,TextArea,Password)**:
14
16
  - Rename `readonly` property to `readonlyLight` (@philippechevieux)
15
17
  - Add `readonly` property whith a render similar to disabled state (@philippechevieux)
16
18
  - **⚠️ Breaking change - DatePicker/RangePicker**:
@@ -26,8 +28,12 @@
26
28
  - Add `size` property to enable `small`, `middle` and `large` sizes (@fatb38)
27
29
  - **⚠️ Breaking change - Avatar**:
28
30
  - Replace `size` option by : `xs`, `s`, `m`, `l`, `xl` (@fatb38)
29
- - **Header**:
31
+ - **⚠️ Breaking change - Header**:
32
+ - Rename `profile` property to `extraRight` to display extra right content (@philippechevieux)
33
+ - Add `brandLogo` property to display brand logo (@evoiron)
30
34
  - Change 'height' to 48px instead of 64px
35
+ - **Comment**:
36
+ - Add components Commment and Thread (@baloche)
31
37
  - **SideMenu**:
32
38
  - Change 'width' to 48px instead of 64px
33
39
  - **AutoComplete**:
@@ -38,18 +44,31 @@
38
44
  - **InputNumber**:
39
45
  - Add `size` property to enable `small`, `middle` and `large` sizes (@fatb38)
40
46
  - Add `readonly` property whith a render similar to disabled state (@philippechevieux)
47
+ - **SearchInput**:
48
+ - Add component SearchInput (@baloche)
41
49
  - **SidePanel**:
42
50
  - Add opening and closing animations (@philippechevieux)
43
51
  - Add `l` size (@7Remy)
44
52
  - Add `useChildrenOnly` property to display the side panel as a container for other components or not. Also export two new components `KitSidePanelHeader` and `KitSidePanelContent` for layout purpose (@philippechevieux)
45
53
  - Add `headerExtraButtons` property to display buttons or any components on the right side of the header next to the close button (@philippechevieux)
46
54
  - Add `showSeparator` property to display a separator between header and content (@philippechevieux)
55
+ - Add `onCloseAfterAnimation` callback that triggers after the closing animation completes instead of immediately on close (@philippechevieux)
47
56
  - Allow user to use `size` property when using `idCardProps` (@philippechevieux)
48
57
  - Reduce internal paddings to save space (@philippechevieux)
58
+ - Improve alignments of `KitSidePanelHeader` (@philippechevieux)
49
59
  - **IdCard:**
50
60
  - Add support for ReactNode in `title` and `descriptions` props to allow custom rendering (@philippechevieux)
61
+ - Add support for prop `avatar` as a ReactNode as an alternative for `avatarProps` (@baloche)
62
+ - Add `color` for left border color (@sberthier)
51
63
  - **Tabs:**
52
64
  - Add `xsmall` size (@florianSimonAristid)
65
+ - Add `badgeOverflowCount` prop to display a badge with an overflow count (@philippechevieux)
66
+ - **Tag:**
67
+ - Add `small` size (@florianSimonAristid)
68
+ - **Table:**
69
+ - Add `expandable` props to config custom expandable content (@florianSimonAristid)
70
+ - Add `header` props with `wrapper`, `row` and `cell` variable in `KitTableComponents` type, same props as AntDesign (@florianSimonAristid)
71
+ - Add `getRowClassName` function to manage indentation in Table (@florianSimonAristid)
53
72
  - **All components with a DropDown:**
54
73
  - All components using a dropdown inside a `SidePanel` component, will render the dropdown inside the `SidePanel`, to avoid issues with the `closeOnOutsideClick` property of `SidePanel` (@evoiron)
55
74
  - **Snackbar**
@@ -58,11 +77,42 @@
58
77
  - Add size `m`and `s` to segmented button (@evoiron)
59
78
  - **InputWrapper**:
60
79
  - Add forwardRef support to enable ref forwarding to the wrapper element (@philippechevieux)
80
+ - **KitPagination:**
81
+ - Reduce size (@florianSimonAristid)
82
+ - **KitTreeSelect:**
83
+ - New TreeSelect component (@evoiron)
84
+ - **Filter:**
85
+ - Add `showSingleValue` to show value, if there is only 1 value selected (@florianSimonAristid)
86
+ - Add `readonly` prop to activate readonly state (@renaudamsellem)
87
+ - **Button:**
88
+ - Reduce padding of link button (@philippechevieux)
89
+ - Extend active state to `primary`, `secondary`, `tertiary` in addition to `segmented` type (@philippechevieux)
90
+ - **SidePanel:**
91
+ - Display a border left to the side panel when it is not floating (@philippechevieux)
92
+ - Display a shadow when the side panel is floating (@philippechevieux)
93
+ - **Breadcrumb:**
94
+ - Fix line height to 1 (@philippechevieux)
95
+ - **Modal:**
96
+ - Change default size of buttons to `m` (@philippechevieux)
97
+ - Add tooltip hover on close button (@philippechevieux)
98
+ - Add border bottom to modal header in fullscreen mode (@philippechevieux)
99
+ - **RichText**:
100
+ - Add Mentions support (@baloche)
101
+ - **Empty**:
102
+ - Add `no comment` image to the options (@alechapelain)
103
+ - **⚠️ Breaking change - RichText**:
104
+ - Remove `autlayout` prop (@alechapelain)
105
+ - Remove `mini` prop (@alechapelain)
106
+ - Adapt component to use style attribute on component to override default width and height (@alechapelain)
107
+ - Add showMenubar prop option to choose the menubar visibility, either on `focus` or `always` (@alechapelain)
61
108
 
62
109
  ### 🐛 Bug Fixes
63
110
 
64
111
  - **Modal:**
65
112
  - Fix double execution of close function when clicking the close button due to duplicate onClick handlers on button and icon (@philippechevieux)
113
+ - Fix event propagation on close Modal (@evoiron)
114
+ - Fix title display. If `title` props is a ReactNode, it's now not encapsulated in a `KitTypography` Element (@evoiron)
115
+ - Fix padding of modal header, content and footer (@philippechevieux)
66
116
  - **DropDown:**
67
117
  - Clicking outside the `DropDown` now closes it even when inside an iframe (@philippechevieux)
68
118
  - Keep the `DropDown` open when selecting items (@philippechevieux)
@@ -71,6 +121,20 @@
71
121
  - Fix upload dragger height unexpectedly growing in some cases (@evoiron)
72
122
  - **SidePanel**:
73
123
  - Export `KitSidePanelHeader` and `KitSidePanelContent` components from the main package entry point (@philippechevieux)
124
+ - Fix CSS structure by extracting nested header and content styles into separate classes for proper component isolation (@philippechevieux)
125
+ - **TagGroup:**
126
+ - Fix event Propagation on click to sidplay hidden tags (@evoiron)
127
+ - **ColorPicker:**
128
+ - Fix clear button displaying when component is disabled or readonly (@philippechevieux)
129
+ - **Breadcrumb:**
130
+ - Fix `KitBreadcrumb` css is broken when displayed a `KitTypography` (@evoiron)
131
+ - Fix `KitBreadcrumb` css is broken when displayed a `KitModal` header (@evoiron)
132
+ - **Table**:
133
+ - Fix header and row borders issue when using `KitTable` with only one column (@philippechevieux)
134
+ - **Tabs:**
135
+ - Fix badge count issue when using `xsmall` size (@philippechevieux)
136
+ - **Filter:**
137
+ - Cursor should be `not-allowed` if filter has props disabled and expandable (@renaudamsellem)
74
138
 
75
139
  ### 📚 Documentation
76
140
 
package/README.md CHANGED
@@ -245,35 +245,35 @@ export {KitTooltip};
245
245
 
246
246
  Every components **style** of the design system can be **override** by tokens.
247
247
 
248
- 1. **Create a token file type**
249
- The `theme`folder is structure as same as the Kit folder.
250
- <br/>
248
+ 1. **Create a token file type**
249
+ The `theme`folder is structure as same as the Kit folder.
250
+ <br/>
251
251
 
252
252
  ```sh dark
253
253
  mkdir DESIGN-SYSTEM/src/theme/type/components/DataDisplay/tooltip
254
254
  ```
255
255
 
256
- <br/>
257
- In this file, you have all the tokens type definition. The tokens follow some rules you can find here [TODO]
256
+ <br/>
257
+ In this file, you have all the tokens type definition. The tokens follow some rules you can find here [TODO]
258
258
 
259
- 2. **Create a token file**
260
- The token file is the definition of all tokens with their value. It exports a function that create the theme for the cmponent. You define this file in the `aristid` that is the default theme of the design system.
259
+ 2. **Create a token file**
260
+ The token file is the definition of all tokens with their value. It exports a function that create the theme for the cmponent. You define this file in the `aristid` that is the default theme of the design system.
261
261
 
262
262
  ```sh dark
263
263
  mkdir DESIGN-SYSTEM/src/theme/aristid/components/DataDisplay/tooltip
264
264
  ```
265
265
 
266
- 3. **Global theme type**
267
- After that, go to file `src/theme/type/index.tsx`to add your component type. This files contains all components that can be override.
266
+ 3. **Global theme type**
267
+ After that, go to file `src/theme/type/index.tsx`to add your component type. This files contains all components that can be override.
268
268
 
269
- 4. **Global theme**
270
- You can now add your component in the `src/theme/aristid/index.tsx` and you add your component and the function that creates tokens defined in point 2.
269
+ 4. **Global theme**
270
+ You can now add your component in the `src/theme/aristid/index.tsx` and you add your component and the function that creates tokens defined in point 2.
271
271
 
272
- 5. **Component Antd mapper**
273
- As we use both `antd` and `design system` tokens, we normalize all token to follow a same model. If your component uses antd tokens, you have to add a mapper in the `src/theme/utils/tokens-mapper` folder. This folder as the same folder structure as the rest of the application.
272
+ 5. **Component Antd mapper**
273
+ As we use both `antd` and `design system` tokens, we normalize all token to follow a same model. If your component uses antd tokens, you have to add a mapper in the `src/theme/utils/tokens-mapper` folder. This folder as the same folder structure as the rest of the application.
274
274
 
275
- <br/>
276
- Example of component mapper :
275
+ <br/>
276
+ Example of component mapper :
277
277
 
278
278
  ```tsx
279
279
  // utils/tokens-mapper/DataDisplay/Tag
@@ -286,18 +286,18 @@ Every components **style** of the design system can be **override** by tokens.
286
286
  return {
287
287
  defaultBg: colors.default.background.default,
288
288
  defaultColor: colors.default.typography.default,
289
- borderRadiusSM: border.radius
289
+ borderRadiusSM: border.radius,
290
290
  };
291
291
  };
292
292
  ```
293
293
 
294
- 6. **Global theme mapper**
295
- After that, you have to add your component mapper to the global mapper in the file `src/theme/utils/tokens-mapper/index.tsx`.
294
+ 6. **Global theme mapper**
295
+ After that, you have to add your component mapper to the global mapper in the file `src/theme/utils/tokens-mapper/index.tsx`.
296
296
 
297
- 7. **Theme consumption**
298
- You can use the theme in your styled component by calling the hook `useKitTheme`. You can get the component theme by calling `theme.components.Tooltip`.
297
+ 7. **Theme consumption**
298
+ You can use the theme in your styled component by calling the hook `useKitTheme`. You can get the component theme by calling `theme.components.Tooltip`.
299
299
 
300
- </br>
300
+ </br>
301
301
 
302
302
  ```tsx
303
303
  const {theme} = useKitTheme();
@@ -349,10 +349,10 @@ Every components **style** of the design system can be **override** by tokens.
349
349
  import BasicSource from './basic?raw';
350
350
 
351
351
  export const Sources = {
352
- Basic: BasicSource
352
+ Basic: BasicSource,
353
353
  };
354
354
  export default {
355
- Basic
355
+ Basic,
356
356
  };
357
357
  ```
358
358
 
@@ -418,14 +418,14 @@ Every components **style** of the design system can be **override** by tokens.
418
418
  const meta: Meta<typeof KitTooltip> = {
419
419
  component: KitTooltip,
420
420
  title: 'Design System/DataDisplay/Tooltip',
421
- argTypes: argTypes
421
+ argTypes: argTypes,
422
422
  };
423
423
 
424
424
  export default meta;
425
425
  type Story = StoryObj<typeof KitTooltip>;
426
426
 
427
427
  export const Api: Story = {
428
- render: Template
428
+ render: Template,
429
429
  };
430
430
  ```
431
431
 
@@ -473,7 +473,7 @@ A nightly version of the package is published on daily basis on branch develop (
473
473
  To access the test files used by Chromatic locally, replace `docs` with `chromatic-test` in the Storybook URL. For example:
474
474
 
475
475
  ```
476
- http://localhost:6006/?path=/chromatic-test/design-system-datadisplay-idcard--chromatic-test
476
+ http://localhost:6006/?path=/docs/design-system-datadisplay-idcard--chromatic-test
477
477
  ```
478
478
 
479
479
  This will allow you to view and test components in the same context that Chromatic uses for automated testing.
@@ -1,21 +1,20 @@
1
- import "../../assets/index29.css";
2
1
  import { jsx as n, jsxs as f, Fragment as h } from "react/jsx-runtime";
3
2
  import { useState as u, useLayoutEffect as L, useRef as S, useEffect as P } from "react";
4
3
  import { ConfigProvider as C } from "antd";
5
- import { K as b } from "../../chunks/SnackBarProvider.wBpPNyLk.js";
4
+ import { K as b } from "../../chunks/SnackBarProvider.D44OffUd.js";
6
5
  import { toCssVariables as g, uuid as y } from "../../utils/functions/index.js";
7
6
  import a from "lodash/merge";
8
7
  import { Style as m } from "react-style-tag";
9
- import { K as E } from "../../chunks/useKitTheme.KSAU-Pdv.js";
8
+ import { K as E } from "../../chunks/useKitTheme.BdeSOGoj.js";
10
9
  import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
11
10
  import { antdThemeConfig as T } from "../../theme/utils/tokens-mapper/index.js";
12
11
  import { frFR as d } from "../../translation/fr-FR/index.js";
13
12
  import { enUS as $ } from "../../translation/en-US/index.js";
14
- import { K as j, u as k } from "../../chunks/useKitLocale.96CdK3og.js";
13
+ import { K as j, u as k } from "../../chunks/useKitLocale.C5F-tmnC.js";
15
14
  import { mapKitLocaleToAntdLocale as x } from "../../translation/utils/index.js";
16
- import { d as A } from "../../chunks/notification-provider.9msrEKBe.js";
15
+ import { d as A } from "../../chunks/notification-provider.C9v3n-Rg.js";
17
16
  import { KitEmpty as p } from "../DataDisplay/Empty/index.js";
18
- const F = "aristid-ds-global", I = (t, e) => {
17
+ import '../../assets/index29.css';const F = "aristid-ds-global", I = (t, e) => {
19
18
  const o = g(t);
20
19
  return `
21
20
  .${e} {
@@ -34,7 +33,7 @@ const F = "aristid-ds-global", I = (t, e) => {
34
33
  ` }), e && n(m, { hasSourceMap: !1, children: I(a({ general: { utilities: l.utilities } }, e), c) }), t] }) });
35
34
  }, _ = (t, e) => {
36
35
  var o;
37
- const r = S(t || "ds-" + y().substring(0, 8)), i = a(l.spacing, (o = e == null ? void 0 : e.general) === null || o === void 0 ? void 0 : o.spacing);
36
+ const r = S(t || "ds-" + y().substring(0, 8)), i = a(l.spacing, (o = e?.general) === null || o === void 0 ? void 0 : o.spacing);
38
37
  return {
39
38
  theme: l,
40
39
  appId: r.current,
@@ -54,7 +53,7 @@ const F = "aristid-ds-global", I = (t, e) => {
54
53
  e(i);
55
54
  }
56
55
  } };
57
- }, te = ({ children: t, locale: e, customTheme: o, id: r }) => n(R, { customTheme: o, id: r, children: n(M, { children: n(O, { locale: e, children: t }) }) }), O = ({ children: t, locale: e }) => {
56
+ }, re = ({ children: t, locale: e, customTheme: o, id: r }) => n(R, { customTheme: o, id: r, children: n(M, { children: n(O, { locale: e, children: t }) }) }), O = ({ children: t, locale: e }) => {
58
57
  const { locale: o, setKitLocale: r } = k();
59
58
  return P(() => {
60
59
  e !== void 0 && r(e);
@@ -64,5 +63,5 @@ const F = "aristid-ds-global", I = (t, e) => {
64
63
  }, children: f(A, { children: [n(b, {}), t] }) });
65
64
  };
66
65
  export {
67
- te as KitApp
66
+ re as KitApp
68
67
  };
@@ -1,6 +1,5 @@
1
- import {KitHTMLAttributes} from '../../types';
2
- import {ReactNode} from 'react';
3
-
1
+ import { KitHTMLAttributes } from '../../types';
2
+ import { ReactNode } from 'react';
4
3
  export interface KitAppProps extends KitHTMLAttributes {
5
4
  children?: ReactNode;
6
5
  }
@@ -1,22 +1,22 @@
1
- import { s as t, K as n } from "../../../chunks/Avatar.BvI60jet.js";
2
- import { jsx as u } from "react/jsx-runtime";
3
- import { Avatar as c } from "antd";
4
- import { u as d } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
- import A from "classnames";
6
- const K = ({ className: a, disabled: s, max: r, ...v }) => {
7
- var o;
8
- const { appId: l } = d(), p = A(l, t["kit-avatar-group"], a, {
9
- "override-last": !!(r != null && r.count),
1
+ import { s as t, K as u } from "../../../chunks/Avatar.B2Q0k3WU.js";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { Avatar as d } from "antd";
4
+ import { u as c } from "../../../chunks/useKitTheme.BdeSOGoj.js";
5
+ import K from "classnames";
6
+ const f = ({ className: a, disabled: s, max: o, ...v }) => {
7
+ var r;
8
+ const { appId: l } = c(), p = K(l, t["kit-avatar-group"], a, {
9
+ "override-last": !!o?.count,
10
10
  [t["kit-avatar-group-disabled"]]: s
11
11
  }), e = {
12
- ...r,
12
+ ...o,
13
13
  style: {
14
- ...r == null ? void 0 : r.style,
15
- cursor: ((o = r == null ? void 0 : r.popover) === null || o === void 0 ? void 0 : o.trigger) === "click" ? "pointer" : "initial"
14
+ ...o?.style,
15
+ cursor: ((r = o?.popover) === null || r === void 0 ? void 0 : r.trigger) === "click" ? "pointer" : "initial"
16
16
  }
17
17
  };
18
- return u(c.Group, { ...v, max: e, className: p });
19
- }, f = K, i = n;
18
+ return n(d.Group, { ...v, max: e, className: p });
19
+ }, i = u;
20
20
  i.displayName = "KitAvatar";
21
21
  i.Group = f;
22
22
  export {
@@ -1,9 +1,8 @@
1
- import {AvatarProps} from 'antd';
2
- import {GroupProps} from 'antd/es/avatar';
3
- import {KitHTMLAttributes} from '../../../types';
4
- import {FunctionComponent} from 'react';
5
- import {KitColorProp} from '../../../utils/functions/types';
6
-
1
+ import { AvatarProps } from 'antd';
2
+ import { GroupProps } from 'antd/es/avatar';
3
+ import { KitHTMLAttributes } from '../../../types';
4
+ import { FunctionComponent } from 'react';
5
+ import { KitColorProp } from '../../../utils/functions/types';
7
6
  type AntdAvatarTypesToOmit = '';
8
7
  type AntdAvatarGroupTypesToOmit = '';
9
8
 
@@ -1,19 +1,18 @@
1
- import "../../../assets/index.css";
2
- import { jsx as g } from "react/jsx-runtime";
1
+ import { jsx as p } from "react/jsx-runtime";
3
2
  import { useMemo as l } from "react";
4
3
  import { Badge as u } from "antd";
5
- import { u as d } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
6
- import { isValidColor as f, getColor as n, getLighterColor as c } from "../../../utils/functions/index.js";
4
+ import { u as d } from "../../../chunks/useKitTheme.BdeSOGoj.js";
5
+ import { isValidColor as f, getLighterColor as n, getColor as c } from "../../../utils/functions/index.js";
7
6
  import { kitBadgeCssTokens as s } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
8
7
  import k from "classnames";
9
- const b = {
8
+ import '../../../assets/index.css';const b = {
10
9
  "kit-badge": "_kit-badge_8zlso_2"
11
10
  }, B = (t, o) => !t || !f(t) ? null : {
12
- [s.colors.background.default]: n(t, o),
13
- [s.colors.typography.default]: c(t, o)
11
+ [s.colors.background.default]: c(t, o),
12
+ [s.colors.typography.default]: n(t, o)
14
13
  }, C = ({ color: t, style: o, secondaryColorInvert: e = !1, className: m, ...r }) => {
15
- const { appId: i } = d(), a = l(() => ({ ...o, ...B(t, e) }), [t, e, o]), p = k(i, b["kit-badge"], m);
16
- return g(u, { style: a, ...r, className: p });
14
+ const { appId: i } = d(), a = l(() => ({ ...o, ...B(t, e) }), [t, e, o]), g = k(i, b["kit-badge"], m);
15
+ return p(u, { style: a, ...r, className: g });
17
16
  };
18
17
  C.displayName = "KitBadge";
19
18
  export {
@@ -1,7 +1,6 @@
1
- import {BadgeProps} from 'antd';
2
- import {KitHTMLAttributes} from '../../../types';
3
- import {KitColorProp} from '../../../utils/functions/types';
4
-
1
+ import { BadgeProps } from 'antd';
2
+ import { KitHTMLAttributes } from '../../../types';
3
+ import { KitColorProp } from '../../../utils/functions/types';
5
4
  type AntdBadgeTypesToOmit = 'color' | 'size' | 'offset' | 'text';
6
5
 
7
6
  export interface IKitBadge extends KitHTMLAttributes<HTMLDivElement>, Omit<BadgeProps, AntdBadgeTypesToOmit> {
@@ -1,26 +1,25 @@
1
- import "../../../assets/index37.css";
2
1
  import { jsx as t, jsxs as f } from "react/jsx-runtime";
3
- import { cloneElement as C, useState as N } from "react";
2
+ import { cloneElement as C, useState as y } from "react";
4
3
  import { Collapse as E } from "antd";
5
- import { u as y } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
4
+ import { u as H } from "../../../chunks/useKitTheme.BdeSOGoj.js";
6
5
  import { FontAwesomeIcon as k } from "@fortawesome/react-fontawesome";
7
6
  import { faChevronDown as _, faEye as T, faEllipsisVertical as A } from "@fortawesome/free-solid-svg-icons";
8
- import I from "classnames";
7
+ import D from "classnames";
9
8
  import { KitTypography as g } from "../../General/Typography/index.js";
10
- import { KitTag as D } from "../Tag/index.js";
11
- import { KitImage as z } from "../Image/index.js";
9
+ import { KitTag as z } from "../Tag/index.js";
10
+ import { KitImage as I } from "../Image/index.js";
12
11
  import { KitSwitch as S } from "../../DataEntry/Switch/index.js";
13
12
  import { KitTooltip as h } from "../Tooltip/index.js";
14
13
  import { KitButton as v } from "../../General/Button/index.js";
15
14
  import { KitDropDown as b } from "../../Navigation/DropDown/index.js";
16
- import { u as P } from "../../../chunks/useKitLocale.96CdK3og.js";
17
- const u = {
15
+ import { u as P } from "../../../chunks/useKitLocale.C5F-tmnC.js";
16
+ import '../../../assets/index36.css';const u = {
18
17
  "kit-collapse": "_kit-collapse_h05zd_2",
19
18
  "kit-collapse-header": "_kit-collapse-header_h05zd_78",
20
19
  "kit-collapse-header-extra": "_kit-collapse-header-extra_h05zd_113"
21
20
  }, M = () => t(k, { icon: _ }), w = ({ className: o, expandIcon: e, items: i, collapsible: l, ...a }) => {
22
- const { appId: n } = y();
23
- l === "disabled" && (i == null || i.forEach((r) => {
21
+ const { appId: n } = H();
22
+ l === "disabled" && i?.forEach((r) => {
24
23
  var s, d;
25
24
  if (r.label !== void 0) {
26
25
  const p = r.label, m = r.extra;
@@ -30,30 +29,30 @@ const u = {
30
29
  disabled: !0
31
30
  }));
32
31
  }
33
- }));
34
- const c = I(n, u["kit-collapse"], o);
32
+ });
33
+ const c = D(n, u["kit-collapse"], o);
35
34
  return t(E, { ...a, className: c, expandIcon: e ?? M, expandIconPosition: "end", collapsible: l, items: i });
36
35
  };
37
36
  w.displayName = "KitCollapse";
38
37
  const $ = ({ onSwitchChange: o, disabled: e }) => t("div", { className: "kit-collapse-header-switch", onClick: (
39
38
  // We don't want to collapse/extand item when clicking
40
- (i) => i.stopPropagation()
39
+ ((i) => i.stopPropagation())
41
40
  ), children: t(S, { onChange: (i, l) => {
42
41
  const n = l.target.closest(".ant-collapse-item");
43
- n == null || n.setAttribute("data-item-selected", i.toString()), o(i, l);
42
+ n?.setAttribute("data-item-selected", i.toString()), o(i, l);
44
43
  }, disabled: e }) }), j = ({ imageSrc: o }) => t("div", { className: "kit-collapse-header-image", onClick: (
45
44
  // We don't want to collapse/extand item when clicking
46
- (e) => e.stopPropagation()
47
- ), children: t(z, { src: o, style: { height: "auto", width: "auto", maxHeight: "90px", maxWidth: "50px" }, preview: {
45
+ ((e) => e.stopPropagation())
46
+ ), children: t(I, { src: o, style: { height: "auto", width: "auto", maxHeight: "90px", maxWidth: "50px" }, preview: {
48
47
  mask: t(k, { icon: T })
49
48
  } }) }), O = ({ title: o, description: e, tagProps: i, disabled: l }) => {
50
49
  let a = "kit-collapse-header-content";
51
- return a += o !== void 0 && e !== void 0 ? " kit-collapse-header-content-rows" : "", f("div", { className: a, children: [i !== void 0 && t("div", { className: "kit-collapse-header-tag", children: t(D, { ...i, disabled: l ?? i.disabled }) }), o !== void 0 && t(g.Text, { className: "kit-collapse-header-content-title", size: "fontSize5", weight: "bold", ellipsis: !0, withTooltip: !0, disabled: l, children: o }), e !== void 0 && t(g.Text, { className: "kit-collapse-header-content-description", size: "fontSize5", ellipsis: !0, withTooltip: !0, disabled: l, children: e })] });
50
+ return a += o !== void 0 && e !== void 0 ? " kit-collapse-header-content-rows" : "", f("div", { className: a, children: [i !== void 0 && t("div", { className: "kit-collapse-header-tag", children: t(z, { ...i, disabled: l ?? i.disabled }) }), o !== void 0 && t(g.Text, { className: "kit-collapse-header-content-title", size: "fontSize5", weight: "bold", ellipsis: !0, withTooltip: !0, disabled: l, children: o }), e !== void 0 && t(g.Text, { className: "kit-collapse-header-content-description", size: "fontSize5", ellipsis: !0, withTooltip: !0, disabled: l, children: e })] });
52
51
  }, K = ({ onSwitchChange: o, imageSrc: e, title: i, description: l, tagProps: a, disabled: n = !1 }) => f("div", { className: `${u["kit-collapse-header"]}`, children: [o !== void 0 && t($, { onSwitchChange: o, disabled: n }), e !== void 0 && t(j, { imageSrc: e }), t(O, { title: i, description: l, tagProps: a, disabled: n })] });
53
52
  K.displayName = "KitHeader";
54
- const B = K, F = ({ actions: o, disabled: e }) => {
53
+ const B = ({ actions: o, disabled: e }) => {
55
54
  var i;
56
- const [l, a] = N(!1), { locale: n } = P(), c = o[0] ? o[0] : null, r = o.length <= 2 && o[1] ? o[1] : null;
55
+ const [l, a] = y(!1), { locale: n } = P(), c = o[0] ? o[0] : null, r = o.length <= 2 && o[1] ? o[1] : null;
57
56
  return f("div", { className: "kit-collapse-header-extra-actions", children: [c && t(h, { title: c.label, open: e ? !1 : void 0, children: t(v, { icon: c.icon, disabled: e, onClick: (s) => {
58
57
  s.stopPropagation(), c.onClick && c.onClick(s);
59
58
  } }) }), r && t(h, { title: r.label, open: e ? !1 : void 0, children: t(v, { icon: r.icon, disabled: e, onClick: (s) => {
@@ -61,9 +60,9 @@ const B = K, F = ({ actions: o, disabled: e }) => {
61
60
  } }) }), o.length > 2 && t("div", { onClick: (s) => {
62
61
  s.stopPropagation();
63
62
  }, children: t(b, { menu: {
64
- items: L({ actions: o })
63
+ items: F({ actions: o })
65
64
  }, trigger: ["click"], onOpenChange: () => a(!1), children: t(h, { title: (i = n.Collapse) === null || i === void 0 ? void 0 : i.more, open: e ? !1 : l, onOpenChange: a, children: t(v, { icon: t(k, { icon: A }), disabled: e }) }) }) })] });
66
- }, L = ({ actions: o }) => {
65
+ }, F = ({ actions: o }) => {
67
66
  const e = [...o];
68
67
  return e.splice(0, 1), e.map((l, a) => ({
69
68
  key: a,
@@ -71,12 +70,12 @@ const B = K, F = ({ actions: o, disabled: e }) => {
71
70
  label: l.label,
72
71
  onClick: (n) => l.onClick && l.onClick(n)
73
72
  }));
74
- }, H = ({ actions: o, disabled: e = !1 }) => t("div", { className: `${u["kit-collapse-header-extra"]}`, children: o !== void 0 && t(F, { actions: o, disabled: e }) });
75
- H.displayName = "KitHeaderExtra";
76
- const V = H, x = w;
73
+ }, N = ({ actions: o, disabled: e = !1 }) => t("div", { className: `${u["kit-collapse-header-extra"]}`, children: o !== void 0 && t(B, { actions: o, disabled: e }) });
74
+ N.displayName = "KitHeaderExtra";
75
+ const x = w;
77
76
  x.displayName = "KitCollapse";
78
- x.Header = B;
79
- x.HeaderExtra = V;
77
+ x.Header = K;
78
+ x.HeaderExtra = N;
80
79
  export {
81
80
  x as KitCollapse
82
81
  };
@@ -1,9 +1,8 @@
1
- import {CollapseProps} from 'antd';
2
- import {ReactNode, MouseEvent, ReactInstance, KeyboardEvent, FunctionComponent} from 'react';
3
- import {KitHTMLAttributes} from '../../../types';
4
- import {SwitchChangeEventHandler} from 'antd/es/switch';
5
- import {IKitTag} from '../Tag/types';
6
-
1
+ import { CollapseProps } from 'antd';
2
+ import { ReactNode, MouseEvent, ReactInstance, KeyboardEvent, FunctionComponent } from 'react';
3
+ import { KitHTMLAttributes } from '../../../types';
4
+ import { SwitchChangeEventHandler } from 'antd/es/switch';
5
+ import { IKitTag } from '../Tag/types';
7
6
  type AntdCollapseTypesToOmit = 'bordered' | 'expandIconPosition' | 'ghost';
8
7
 
9
8
  export interface IKitCollapse extends Omit<CollapseProps, AntdCollapseTypesToOmit>, KitHTMLAttributes<HTMLDivElement> {}
@@ -0,0 +1,3 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IKitComment } from './types';
3
+ export declare const KitComment: FunctionComponent<IKitComment>;
@@ -0,0 +1,3 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IKitThread } from './types';
3
+ export declare const KitThread: FunctionComponent<IKitThread>;
@@ -0,0 +1,2 @@
1
+ export { KitComment } from './Comment';
2
+ export { KitThread } from './Thread';
@@ -0,0 +1,5 @@
1
+ import { K as e, a as m } from "../../../chunks/Thread.Cb7BFNKI.js";
2
+ export {
3
+ e as KitComment,
4
+ m as KitThread
5
+ };
@@ -0,0 +1,10 @@
1
+ import { KitHTMLAttributes } from '../../../types';
2
+ export interface IKitComment extends KitHTMLAttributes<HTMLDivElement> {
3
+ avatar: React.ReactNode;
4
+ name: string;
5
+ date: Date;
6
+ content: string;
7
+ isCurrentUser?: boolean;
8
+ }
9
+
10
+ export interface IKitThread extends KitHTMLAttributes<HTMLDivElement> {}