hrm_ui_lib 2.1.0-alpha.20 → 2.1.0-alpha.21

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 (879) hide show
  1. package/assets/styles/styles.css +1 -1
  2. package/components/Alert/Alert.js +6 -5
  3. package/components/Alert/types.d.ts +1 -0
  4. package/components/Avatar/Avatar.d.ts +1 -1
  5. package/components/Avatar/Avatar.js +1 -1
  6. package/components/Avatar/AvatarGroup.d.ts +1 -1
  7. package/components/Avatar/AvatarGroup.js +3 -2
  8. package/components/Avatar/types.d.ts +2 -3
  9. package/components/Badge/Badge.js +2 -1
  10. package/components/Badge/types.d.ts +1 -0
  11. package/components/BadgeV2/BadgeV2.js +1 -1
  12. package/components/BadgeV2/types.d.ts +1 -1
  13. package/components/Breadcrumb/Breadcrumb.js +2 -1
  14. package/components/Breadcrumb/types.d.ts +1 -0
  15. package/components/Button/Button.js +2 -1
  16. package/components/Button/types.d.ts +2 -3
  17. package/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  18. package/components/ButtonGroup/ButtonGroup.js +2 -1
  19. package/components/ButtonGroup/ButtonGroupItem.d.ts +1 -1
  20. package/components/ButtonGroup/ButtonGroupItem.js +3 -2
  21. package/components/ButtonGroup/types.d.ts +2 -2
  22. package/components/Card/CardComponent/Card.js +3 -2
  23. package/components/Card/CardComponent/CardBody.js +2 -1
  24. package/components/Card/CardComponent/CardHead.js +2 -1
  25. package/components/Card/types.d.ts +2 -2
  26. package/components/CardGroup/CardGroupComponent/CardBody.js +2 -1
  27. package/components/CardGroup/CardGroupComponent/CardGroup.js +2 -1
  28. package/components/CardGroup/CardGroupComponent/CardHead.js +2 -1
  29. package/components/CardGroup/types.d.ts +2 -2
  30. package/components/Checkbox/Checkbox.js +6 -5
  31. package/components/Checkbox/types.d.ts +1 -0
  32. package/components/Chips/Chips.js +2 -1
  33. package/components/Chips/types.d.ts +1 -2
  34. package/components/Collapse/Collapse/Collapse.js +4 -3
  35. package/components/Collapse/Collapse/Title.d.ts +2 -2
  36. package/components/Collapse/Collapse/Title.js +2 -1
  37. package/components/Collapse/CollapseGroup/CollapseGroup.js +3 -1
  38. package/components/Collapse/CollapseItem/CollapseItem.js +3 -2
  39. package/components/Collapse/types.d.ts +4 -6
  40. package/components/Container/Container.js +2 -1
  41. package/components/Container/types.d.ts +2 -1
  42. package/components/Copy/Copy.d.ts +1 -1
  43. package/components/Copy/Copy.js +3 -2
  44. package/components/Copy/types.d.ts +2 -2
  45. package/components/Counter/Counter.js +2 -1
  46. package/components/Counter/types.d.ts +1 -0
  47. package/components/DarkModeSwitcher/DarkModeSwitcher.d.ts +3 -4
  48. package/components/DarkModeSwitcher/DarkModeSwitcher.js +5 -5
  49. package/components/DarkModeSwitcher/types.d.ts +1 -0
  50. package/components/DatePicker/CustomHeader/CustomHeader.js +6 -5
  51. package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +3 -2
  52. package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +6 -5
  53. package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +3 -2
  54. package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +4 -3
  55. package/components/DatePicker/TimePicker/MobileModalContent.js +2 -1
  56. package/components/DatePicker/TimePicker/TimePickerDesktop.js +4 -3
  57. package/components/DatePicker/TimePicker/TimePickerMobile.js +4 -3
  58. package/components/DatePicker/types.d.ts +3 -3
  59. package/components/Divider/Divider.js +2 -1
  60. package/components/Divider/types.d.ts +2 -1
  61. package/components/Empty/Empty.js +4 -3
  62. package/components/Empty/types.d.ts +2 -1
  63. package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +7 -6
  64. package/components/FileUpload/DropzoneFileUpload/ErrorItem.d.ts +2 -1
  65. package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +1 -1
  66. package/components/FileUpload/DropzoneFileUpload/PreviewItem.d.ts +2 -1
  67. package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +7 -6
  68. package/components/FileUpload/FileUpload.js +6 -5
  69. package/components/FileUpload/UploadItems.js +5 -3
  70. package/components/FileUpload/types.d.ts +5 -2
  71. package/components/FormContainer/FormContainer.js +1 -1
  72. package/components/FormContainer/types.d.ts +2 -1
  73. package/components/FormField/FormField.js +3 -1
  74. package/components/FormField/types.d.ts +2 -2
  75. package/components/Heading/Heading.js +2 -1
  76. package/components/Heading/types.d.ts +2 -2
  77. package/components/Image/Image.js +1 -1
  78. package/components/Image/types.d.ts +2 -1
  79. package/components/Input/Input.js +8 -7
  80. package/components/Input/types.d.ts +2 -1
  81. package/components/LineChart/LineChart.d.ts +1 -1
  82. package/components/LineChart/LineChart.js +9 -8
  83. package/components/LineChart/types.d.ts +2 -1
  84. package/components/Link/Link.js +2 -2
  85. package/components/Link/types.d.ts +2 -2
  86. package/components/Menu/Menu.js +1 -1
  87. package/components/Menu/NestedMenu.js +2 -1
  88. package/components/Menu/types.d.ts +2 -2
  89. package/components/Modal/ModalConfirmation.d.ts +1 -1
  90. package/components/Modal/ModalConfirmation.js +4 -4
  91. package/components/Modal/ModalContent.d.ts +7 -4
  92. package/components/Modal/ModalContent.js +7 -5
  93. package/components/Modal/types.d.ts +5 -2
  94. package/components/More/More.js +3 -1
  95. package/components/More/types.d.ts +2 -1
  96. package/components/MultiSelectV2/MultiSelectV2.d.ts +3 -0
  97. package/components/MultiSelectV2/MultiSelectV2.js +11 -0
  98. package/components/MultiSelectV2/index.d.ts +1 -0
  99. package/components/MultiSelectV2/index.js +1 -0
  100. package/components/MultiSelectV2/types.d.ts +30 -0
  101. package/components/MultiSelectV2/types.js +0 -0
  102. package/components/Pagination/Pagination.js +2 -1
  103. package/components/Pagination/types.d.ts +2 -1
  104. package/components/Popover/PopoverDesktop.js +1 -1
  105. package/components/Popover/PopoverMobile.js +3 -2
  106. package/components/Popover/types.d.ts +1 -0
  107. package/components/Progress/Progress.js +4 -3
  108. package/components/Progress/types.d.ts +2 -1
  109. package/components/ProgressStep/ProgressStep.js +2 -1
  110. package/components/ProgressStep/Step.js +9 -8
  111. package/components/ProgressStep/types.d.ts +3 -2
  112. package/components/Radio/Radio.js +4 -3
  113. package/components/Radio/RadioGroup.js +3 -2
  114. package/components/Radio/types.d.ts +3 -3
  115. package/components/SVGIcons/IconAdd.d.ts +1 -1
  116. package/components/SVGIcons/IconAdd.js +1 -1
  117. package/components/SVGIcons/IconAddCircle.d.ts +1 -1
  118. package/components/SVGIcons/IconAddCircle.js +1 -1
  119. package/components/SVGIcons/IconAddCircleFilled.d.ts +1 -1
  120. package/components/SVGIcons/IconAddCircleFilled.js +1 -1
  121. package/components/SVGIcons/IconAddFilled.d.ts +1 -1
  122. package/components/SVGIcons/IconAddFilled.js +1 -1
  123. package/components/SVGIcons/IconAirplaneTakeOff.d.ts +1 -1
  124. package/components/SVGIcons/IconAirplaneTakeOff.js +1 -1
  125. package/components/SVGIcons/IconAirplaneTakeOffFilled.d.ts +1 -1
  126. package/components/SVGIcons/IconAirplaneTakeOffFilled.js +1 -1
  127. package/components/SVGIcons/IconAlert.d.ts +1 -1
  128. package/components/SVGIcons/IconAlert.js +1 -1
  129. package/components/SVGIcons/IconAlertBadge.d.ts +1 -1
  130. package/components/SVGIcons/IconAlertBadge.js +1 -1
  131. package/components/SVGIcons/IconAlertBadgeFilled.d.ts +1 -1
  132. package/components/SVGIcons/IconAlertBadgeFilled.js +1 -1
  133. package/components/SVGIcons/IconAlertFilled.d.ts +1 -1
  134. package/components/SVGIcons/IconAlertFilled.js +1 -1
  135. package/components/SVGIcons/IconAm.d.ts +1 -1
  136. package/components/SVGIcons/IconAm.js +1 -1
  137. package/components/SVGIcons/IconAmd.d.ts +1 -1
  138. package/components/SVGIcons/IconAmd.js +1 -1
  139. package/components/SVGIcons/IconAmdFilled.d.ts +1 -1
  140. package/components/SVGIcons/IconAmdFilled.js +1 -1
  141. package/components/SVGIcons/IconApple.d.ts +1 -1
  142. package/components/SVGIcons/IconApple.js +1 -1
  143. package/components/SVGIcons/IconArrowDown.d.ts +1 -1
  144. package/components/SVGIcons/IconArrowDown.js +1 -1
  145. package/components/SVGIcons/IconArrowDownFilled.d.ts +1 -1
  146. package/components/SVGIcons/IconArrowDownFilled.js +1 -1
  147. package/components/SVGIcons/IconArrowDownLeft.d.ts +1 -1
  148. package/components/SVGIcons/IconArrowDownLeft.js +1 -1
  149. package/components/SVGIcons/IconArrowDownLeftFilled.d.ts +1 -1
  150. package/components/SVGIcons/IconArrowDownLeftFilled.js +1 -1
  151. package/components/SVGIcons/IconArrowDownload.d.ts +1 -1
  152. package/components/SVGIcons/IconArrowDownload.js +1 -1
  153. package/components/SVGIcons/IconArrowDownloadFilled.d.ts +1 -1
  154. package/components/SVGIcons/IconArrowDownloadFilled.js +1 -1
  155. package/components/SVGIcons/IconArrowEnter.d.ts +1 -1
  156. package/components/SVGIcons/IconArrowEnter.js +1 -1
  157. package/components/SVGIcons/IconArrowEnterFilled.d.ts +1 -1
  158. package/components/SVGIcons/IconArrowEnterFilled.js +1 -1
  159. package/components/SVGIcons/IconArrowExit.d.ts +1 -1
  160. package/components/SVGIcons/IconArrowExit.js +1 -1
  161. package/components/SVGIcons/IconArrowExitFilled.d.ts +1 -1
  162. package/components/SVGIcons/IconArrowExitFilled.js +1 -1
  163. package/components/SVGIcons/IconArrowExportLeftToRight.d.ts +1 -1
  164. package/components/SVGIcons/IconArrowExportLeftToRight.js +1 -1
  165. package/components/SVGIcons/IconArrowExportLeftToRightFilled.d.ts +1 -1
  166. package/components/SVGIcons/IconArrowExportLeftToRightFilled.js +1 -1
  167. package/components/SVGIcons/IconArrowExportRightToLeft.d.ts +1 -1
  168. package/components/SVGIcons/IconArrowExportRightToLeft.js +1 -1
  169. package/components/SVGIcons/IconArrowExportRightToLeftFilled.d.ts +1 -1
  170. package/components/SVGIcons/IconArrowExportRightToLeftFilled.js +1 -1
  171. package/components/SVGIcons/IconArrowExportUp.d.ts +1 -1
  172. package/components/SVGIcons/IconArrowExportUp.js +1 -1
  173. package/components/SVGIcons/IconArrowExportUpFilled.d.ts +1 -1
  174. package/components/SVGIcons/IconArrowExportUpFilled.js +1 -1
  175. package/components/SVGIcons/IconArrowImport.d.ts +1 -1
  176. package/components/SVGIcons/IconArrowImport.js +1 -1
  177. package/components/SVGIcons/IconArrowImportFilled.d.ts +1 -1
  178. package/components/SVGIcons/IconArrowImportFilled.js +1 -1
  179. package/components/SVGIcons/IconArrowLeft.d.ts +1 -1
  180. package/components/SVGIcons/IconArrowLeft.js +1 -1
  181. package/components/SVGIcons/IconArrowLeftFilled.d.ts +1 -1
  182. package/components/SVGIcons/IconArrowLeftFilled.js +1 -1
  183. package/components/SVGIcons/IconArrowRepeatAll.d.ts +1 -1
  184. package/components/SVGIcons/IconArrowRepeatAll.js +1 -1
  185. package/components/SVGIcons/IconArrowRepeatAllFilled.d.ts +1 -1
  186. package/components/SVGIcons/IconArrowRepeatAllFilled.js +1 -1
  187. package/components/SVGIcons/IconArrowReset.d.ts +1 -1
  188. package/components/SVGIcons/IconArrowReset.js +1 -1
  189. package/components/SVGIcons/IconArrowResetFilled.d.ts +1 -1
  190. package/components/SVGIcons/IconArrowResetFilled.js +1 -1
  191. package/components/SVGIcons/IconArrowRight.d.ts +1 -1
  192. package/components/SVGIcons/IconArrowRight.js +1 -1
  193. package/components/SVGIcons/IconArrowRightFilled.d.ts +1 -1
  194. package/components/SVGIcons/IconArrowRightFilled.js +1 -1
  195. package/components/SVGIcons/IconArrowSort.d.ts +1 -1
  196. package/components/SVGIcons/IconArrowSort.js +1 -1
  197. package/components/SVGIcons/IconArrowSortFilled.d.ts +1 -1
  198. package/components/SVGIcons/IconArrowSortFilled.js +1 -1
  199. package/components/SVGIcons/IconArrowSync.d.ts +1 -1
  200. package/components/SVGIcons/IconArrowSync.js +1 -1
  201. package/components/SVGIcons/IconArrowSyncFilled.d.ts +1 -1
  202. package/components/SVGIcons/IconArrowSyncFilled.js +1 -1
  203. package/components/SVGIcons/IconArrowUp.d.ts +1 -1
  204. package/components/SVGIcons/IconArrowUp.js +1 -1
  205. package/components/SVGIcons/IconArrowUpFilled.d.ts +1 -1
  206. package/components/SVGIcons/IconArrowUpFilled.js +1 -1
  207. package/components/SVGIcons/IconArrowUpLeft.d.ts +1 -1
  208. package/components/SVGIcons/IconArrowUpLeft.js +1 -1
  209. package/components/SVGIcons/IconArrowUpLeftFilled.d.ts +1 -1
  210. package/components/SVGIcons/IconArrowUpLeftFilled.js +1 -1
  211. package/components/SVGIcons/IconArrowUpRight.d.ts +1 -1
  212. package/components/SVGIcons/IconArrowUpRight.js +1 -1
  213. package/components/SVGIcons/IconArrowUpRightFilled.d.ts +1 -1
  214. package/components/SVGIcons/IconArrowUpRightFilled.js +1 -1
  215. package/components/SVGIcons/IconAttach.d.ts +1 -1
  216. package/components/SVGIcons/IconAttach.js +1 -1
  217. package/components/SVGIcons/IconAttachFilled.d.ts +1 -1
  218. package/components/SVGIcons/IconAttachFilled.js +1 -1
  219. package/components/SVGIcons/IconBeach.d.ts +1 -1
  220. package/components/SVGIcons/IconBeach.js +1 -1
  221. package/components/SVGIcons/IconBeachFilled.d.ts +1 -1
  222. package/components/SVGIcons/IconBeachFilled.js +1 -1
  223. package/components/SVGIcons/IconBedDouble.d.ts +4 -0
  224. package/components/SVGIcons/IconBedDouble.js +5 -0
  225. package/components/SVGIcons/IconBook.d.ts +1 -1
  226. package/components/SVGIcons/IconBook.js +1 -1
  227. package/components/SVGIcons/IconBookFilled.d.ts +1 -1
  228. package/components/SVGIcons/IconBookFilled.js +1 -1
  229. package/components/SVGIcons/IconBookmark.d.ts +1 -1
  230. package/components/SVGIcons/IconBookmark.js +1 -1
  231. package/components/SVGIcons/IconBookmarkFilled.d.ts +1 -1
  232. package/components/SVGIcons/IconBookmarkFilled.js +1 -1
  233. package/components/SVGIcons/IconBriefcase.d.ts +1 -1
  234. package/components/SVGIcons/IconBriefcase.js +1 -1
  235. package/components/SVGIcons/IconBriefcaseFilled.d.ts +1 -1
  236. package/components/SVGIcons/IconBriefcaseFilled.js +1 -1
  237. package/components/SVGIcons/IconBudgetTransfer.d.ts +1 -1
  238. package/components/SVGIcons/IconBudgetTransfer.js +1 -1
  239. package/components/SVGIcons/IconBuilding.d.ts +1 -1
  240. package/components/SVGIcons/IconBuilding.js +1 -1
  241. package/components/SVGIcons/IconBuildingBank.d.ts +1 -1
  242. package/components/SVGIcons/IconBuildingBank.js +1 -1
  243. package/components/SVGIcons/IconBuildingBankFilled.d.ts +1 -1
  244. package/components/SVGIcons/IconBuildingBankFilled.js +1 -1
  245. package/components/SVGIcons/IconBuildingFilled.d.ts +1 -1
  246. package/components/SVGIcons/IconBuildingFilled.js +1 -1
  247. package/components/SVGIcons/IconBulletListAdd.d.ts +1 -1
  248. package/components/SVGIcons/IconBulletListAdd.js +1 -1
  249. package/components/SVGIcons/IconBulletListAddFilled.d.ts +1 -1
  250. package/components/SVGIcons/IconBulletListAddFilled.js +1 -1
  251. package/components/SVGIcons/IconCalculator.d.ts +1 -1
  252. package/components/SVGIcons/IconCalculator.js +1 -1
  253. package/components/SVGIcons/IconCalculatorFilled.d.ts +1 -1
  254. package/components/SVGIcons/IconCalculatorFilled.js +1 -1
  255. package/components/SVGIcons/IconCalendarClock.d.ts +1 -1
  256. package/components/SVGIcons/IconCalendarClock.js +1 -1
  257. package/components/SVGIcons/IconCalendarClockFilled.d.ts +1 -1
  258. package/components/SVGIcons/IconCalendarClockFilled.js +1 -1
  259. package/components/SVGIcons/IconCalendarDay.d.ts +1 -1
  260. package/components/SVGIcons/IconCalendarDay.js +1 -1
  261. package/components/SVGIcons/IconCalendarDayFilled.d.ts +1 -1
  262. package/components/SVGIcons/IconCalendarDayFilled.js +1 -1
  263. package/components/SVGIcons/IconCalendarDays.d.ts +4 -0
  264. package/components/SVGIcons/IconCalendarDays.js +11 -0
  265. package/components/SVGIcons/IconCalendarEmpty.d.ts +1 -1
  266. package/components/SVGIcons/IconCalendarEmpty.js +1 -1
  267. package/components/SVGIcons/IconCalendarLeft.d.ts +1 -1
  268. package/components/SVGIcons/IconCalendarLeft.js +1 -1
  269. package/components/SVGIcons/IconCalendarLeftFilled.d.ts +1 -1
  270. package/components/SVGIcons/IconCalendarLeftFilled.js +1 -1
  271. package/components/SVGIcons/IconCalendarRight.d.ts +1 -1
  272. package/components/SVGIcons/IconCalendarRight.js +1 -1
  273. package/components/SVGIcons/IconCalendarRightFilled.d.ts +1 -1
  274. package/components/SVGIcons/IconCalendarRightFilled.js +1 -1
  275. package/components/SVGIcons/IconCall.d.ts +1 -1
  276. package/components/SVGIcons/IconCall.js +1 -1
  277. package/components/SVGIcons/IconCallFilled.d.ts +1 -1
  278. package/components/SVGIcons/IconCallFilled.js +1 -1
  279. package/components/SVGIcons/IconCar.d.ts +4 -0
  280. package/components/SVGIcons/IconCar.js +5 -0
  281. package/components/SVGIcons/IconCard.d.ts +1 -1
  282. package/components/SVGIcons/IconCard.js +1 -1
  283. package/components/SVGIcons/IconCardFilled.d.ts +1 -1
  284. package/components/SVGIcons/IconCardFilled.js +1 -1
  285. package/components/SVGIcons/IconCaretDown.d.ts +1 -1
  286. package/components/SVGIcons/IconCaretDown.js +1 -1
  287. package/components/SVGIcons/IconCaretDownFilled.d.ts +1 -1
  288. package/components/SVGIcons/IconCaretDownFilled.js +1 -1
  289. package/components/SVGIcons/IconCaretDownRight.d.ts +1 -1
  290. package/components/SVGIcons/IconCaretDownRight.js +1 -1
  291. package/components/SVGIcons/IconCaretDownRightFilled.d.ts +1 -1
  292. package/components/SVGIcons/IconCaretDownRightFilled.js +1 -1
  293. package/components/SVGIcons/IconCaretLeft.d.ts +1 -1
  294. package/components/SVGIcons/IconCaretLeft.js +1 -1
  295. package/components/SVGIcons/IconCaretLeftFilled.d.ts +1 -1
  296. package/components/SVGIcons/IconCaretLeftFilled.js +1 -1
  297. package/components/SVGIcons/IconCaretRight.d.ts +1 -1
  298. package/components/SVGIcons/IconCaretRight.js +1 -1
  299. package/components/SVGIcons/IconCaretRightFilled.d.ts +1 -1
  300. package/components/SVGIcons/IconCaretRightFilled.js +1 -1
  301. package/components/SVGIcons/IconCaretUp.d.ts +1 -1
  302. package/components/SVGIcons/IconCaretUp.js +1 -1
  303. package/components/SVGIcons/IconCaretUpFilled.d.ts +1 -1
  304. package/components/SVGIcons/IconCaretUpFilled.js +1 -1
  305. package/components/SVGIcons/IconChartPerson.d.ts +1 -1
  306. package/components/SVGIcons/IconChartPerson.js +1 -1
  307. package/components/SVGIcons/IconChartPersonFilled.d.ts +1 -1
  308. package/components/SVGIcons/IconChartPersonFilled.js +1 -1
  309. package/components/SVGIcons/IconChat.d.ts +1 -1
  310. package/components/SVGIcons/IconChat.js +1 -1
  311. package/components/SVGIcons/IconChatFilled.d.ts +1 -1
  312. package/components/SVGIcons/IconChatFilled.js +1 -1
  313. package/components/SVGIcons/IconChatMultiple.d.ts +1 -1
  314. package/components/SVGIcons/IconChatMultiple.js +1 -1
  315. package/components/SVGIcons/IconChatMultipleFilled.d.ts +1 -1
  316. package/components/SVGIcons/IconChatMultipleFilled.js +1 -1
  317. package/components/SVGIcons/IconCheckboxArrowRight.d.ts +1 -1
  318. package/components/SVGIcons/IconCheckboxArrowRight.js +1 -1
  319. package/components/SVGIcons/IconCheckboxArrowRightFilled.d.ts +1 -1
  320. package/components/SVGIcons/IconCheckboxArrowRightFilled.js +1 -1
  321. package/components/SVGIcons/IconCheckmark.d.ts +1 -1
  322. package/components/SVGIcons/IconCheckmark.js +1 -1
  323. package/components/SVGIcons/IconCheckmarkCircle.d.ts +1 -1
  324. package/components/SVGIcons/IconCheckmarkCircle.js +1 -1
  325. package/components/SVGIcons/IconCheckmarkCircleFilled.d.ts +1 -1
  326. package/components/SVGIcons/IconCheckmarkCircleFilled.js +1 -1
  327. package/components/SVGIcons/IconCheckmarkFilled.d.ts +1 -1
  328. package/components/SVGIcons/IconCheckmarkFilled.js +1 -1
  329. package/components/SVGIcons/IconChevronDoubleLeft.d.ts +1 -1
  330. package/components/SVGIcons/IconChevronDoubleLeft.js +1 -1
  331. package/components/SVGIcons/IconChevronDoubleRight.d.ts +1 -1
  332. package/components/SVGIcons/IconChevronDoubleRight.js +1 -1
  333. package/components/SVGIcons/IconChevronDown.d.ts +1 -1
  334. package/components/SVGIcons/IconChevronDown.js +1 -1
  335. package/components/SVGIcons/IconChevronDownFilled.d.ts +1 -1
  336. package/components/SVGIcons/IconChevronDownFilled.js +1 -1
  337. package/components/SVGIcons/IconChevronLeft.d.ts +1 -1
  338. package/components/SVGIcons/IconChevronLeft.js +1 -1
  339. package/components/SVGIcons/IconChevronLeftFilled.d.ts +1 -1
  340. package/components/SVGIcons/IconChevronLeftFilled.js +1 -1
  341. package/components/SVGIcons/IconChevronRight.d.ts +1 -1
  342. package/components/SVGIcons/IconChevronRight.js +1 -1
  343. package/components/SVGIcons/IconChevronRightFilled.d.ts +1 -1
  344. package/components/SVGIcons/IconChevronRightFilled.js +1 -1
  345. package/components/SVGIcons/IconChevronUp.d.ts +1 -1
  346. package/components/SVGIcons/IconChevronUp.js +1 -1
  347. package/components/SVGIcons/IconChevronUpDown.d.ts +1 -1
  348. package/components/SVGIcons/IconChevronUpDown.js +1 -1
  349. package/components/SVGIcons/IconChevronUpDownFilled.d.ts +1 -1
  350. package/components/SVGIcons/IconChevronUpDownFilled.js +1 -1
  351. package/components/SVGIcons/IconChevronUpFilled.d.ts +1 -1
  352. package/components/SVGIcons/IconChevronUpFilled.js +1 -1
  353. package/components/SVGIcons/IconClipboardDay.d.ts +1 -1
  354. package/components/SVGIcons/IconClipboardDay.js +1 -1
  355. package/components/SVGIcons/IconClock.d.ts +1 -1
  356. package/components/SVGIcons/IconClock.js +1 -1
  357. package/components/SVGIcons/IconClockDismiss.d.ts +1 -1
  358. package/components/SVGIcons/IconClockDismiss.js +1 -1
  359. package/components/SVGIcons/IconClockDismissFilled.d.ts +1 -1
  360. package/components/SVGIcons/IconClockDismissFilled.js +1 -1
  361. package/components/SVGIcons/IconClockFilled.d.ts +1 -1
  362. package/components/SVGIcons/IconClockFilled.js +1 -1
  363. package/components/SVGIcons/IconCode.d.ts +4 -0
  364. package/components/SVGIcons/IconCode.js +4 -0
  365. package/components/SVGIcons/IconCoins.d.ts +4 -0
  366. package/components/SVGIcons/IconCoins.js +5 -0
  367. package/components/SVGIcons/IconComment.d.ts +1 -1
  368. package/components/SVGIcons/IconComment.js +1 -1
  369. package/components/SVGIcons/IconCommentFilled.d.ts +1 -1
  370. package/components/SVGIcons/IconCommentFilled.js +1 -1
  371. package/components/SVGIcons/IconContractCard.d.ts +1 -1
  372. package/components/SVGIcons/IconContractCard.js +1 -1
  373. package/components/SVGIcons/IconContractCardFilled.d.ts +1 -1
  374. package/components/SVGIcons/IconContractCardFilled.js +1 -1
  375. package/components/SVGIcons/IconCopy.d.ts +1 -1
  376. package/components/SVGIcons/IconCopy.js +1 -1
  377. package/components/SVGIcons/IconCopyFilled.d.ts +1 -1
  378. package/components/SVGIcons/IconCopyFilled.js +1 -1
  379. package/components/SVGIcons/IconCubeTree.d.ts +1 -1
  380. package/components/SVGIcons/IconCubeTree.js +1 -1
  381. package/components/SVGIcons/IconCubeTreeFilled.d.ts +1 -1
  382. package/components/SVGIcons/IconCubeTreeFilled.js +1 -1
  383. package/components/SVGIcons/IconDatabase.d.ts +1 -1
  384. package/components/SVGIcons/IconDatabase.js +1 -1
  385. package/components/SVGIcons/IconDatabaseFilled.d.ts +1 -1
  386. package/components/SVGIcons/IconDatabaseFilled.js +1 -1
  387. package/components/SVGIcons/IconDelete.d.ts +1 -1
  388. package/components/SVGIcons/IconDelete.js +1 -1
  389. package/components/SVGIcons/IconDeleteFilled.d.ts +1 -1
  390. package/components/SVGIcons/IconDeleteFilled.js +1 -1
  391. package/components/SVGIcons/IconDeviceMeetingRoom.d.ts +1 -1
  392. package/components/SVGIcons/IconDeviceMeetingRoom.js +1 -1
  393. package/components/SVGIcons/IconDeviceMeetingRoomFilled.d.ts +1 -1
  394. package/components/SVGIcons/IconDeviceMeetingRoomFilled.js +1 -1
  395. package/components/SVGIcons/IconDismiss.d.ts +1 -1
  396. package/components/SVGIcons/IconDismiss.js +1 -1
  397. package/components/SVGIcons/IconDismissCircle.d.ts +1 -1
  398. package/components/SVGIcons/IconDismissCircle.js +1 -1
  399. package/components/SVGIcons/IconDismissCircleFilled.d.ts +1 -1
  400. package/components/SVGIcons/IconDismissCircleFilled.js +1 -1
  401. package/components/SVGIcons/IconDismissFilled.d.ts +1 -1
  402. package/components/SVGIcons/IconDismissFilled.js +1 -1
  403. package/components/SVGIcons/IconDocument.d.ts +1 -1
  404. package/components/SVGIcons/IconDocument.js +1 -1
  405. package/components/SVGIcons/IconDocumentBulletList.d.ts +1 -1
  406. package/components/SVGIcons/IconDocumentBulletList.js +1 -1
  407. package/components/SVGIcons/IconDocumentBulletListFilled.d.ts +1 -1
  408. package/components/SVGIcons/IconDocumentBulletListFilled.js +1 -1
  409. package/components/SVGIcons/IconDocumentEdit.d.ts +1 -1
  410. package/components/SVGIcons/IconDocumentEdit.js +1 -1
  411. package/components/SVGIcons/IconDocumentEditFilled.d.ts +1 -1
  412. package/components/SVGIcons/IconDocumentEditFilled.js +1 -1
  413. package/components/SVGIcons/IconDocumentFilled.d.ts +1 -1
  414. package/components/SVGIcons/IconDocumentFilled.js +1 -1
  415. package/components/SVGIcons/IconDocumentPerson.d.ts +1 -1
  416. package/components/SVGIcons/IconDocumentPerson.js +1 -1
  417. package/components/SVGIcons/IconDownload.d.ts +4 -0
  418. package/components/SVGIcons/IconDownload.js +4 -0
  419. package/components/SVGIcons/IconEdit.d.ts +1 -1
  420. package/components/SVGIcons/IconEdit.js +1 -1
  421. package/components/SVGIcons/IconEditFilled.d.ts +1 -1
  422. package/components/SVGIcons/IconEditFilled.js +1 -1
  423. package/components/SVGIcons/IconErrorCircle.d.ts +1 -1
  424. package/components/SVGIcons/IconErrorCircle.js +1 -1
  425. package/components/SVGIcons/IconErrorCircleFilled.d.ts +1 -1
  426. package/components/SVGIcons/IconErrorCircleFilled.js +1 -1
  427. package/components/SVGIcons/IconEur.d.ts +1 -1
  428. package/components/SVGIcons/IconEur.js +1 -1
  429. package/components/SVGIcons/IconEurFilled.d.ts +1 -1
  430. package/components/SVGIcons/IconEurFilled.js +1 -1
  431. package/components/SVGIcons/IconExpandUpLeft.d.ts +1 -1
  432. package/components/SVGIcons/IconExpandUpLeft.js +1 -1
  433. package/components/SVGIcons/IconExpandUpLeftFilled.d.ts +1 -1
  434. package/components/SVGIcons/IconExpandUpLeftFilled.js +1 -1
  435. package/components/SVGIcons/IconExpandUpRight.d.ts +1 -1
  436. package/components/SVGIcons/IconExpandUpRight.js +1 -1
  437. package/components/SVGIcons/IconExpandUpRightFilled.d.ts +1 -1
  438. package/components/SVGIcons/IconExpandUpRightFilled.js +1 -1
  439. package/components/SVGIcons/IconEyeOff.d.ts +1 -1
  440. package/components/SVGIcons/IconEyeOff.js +1 -1
  441. package/components/SVGIcons/IconEyeOffFilled.d.ts +1 -1
  442. package/components/SVGIcons/IconEyeOffFilled.js +1 -1
  443. package/components/SVGIcons/IconEyeOn.d.ts +1 -1
  444. package/components/SVGIcons/IconEyeOn.js +1 -1
  445. package/components/SVGIcons/IconEyeOnFilled.d.ts +1 -1
  446. package/components/SVGIcons/IconEyeOnFilled.js +1 -1
  447. package/components/SVGIcons/IconFacebook.d.ts +1 -1
  448. package/components/SVGIcons/IconFacebook.js +1 -1
  449. package/components/SVGIcons/IconFastAcceleration.d.ts +1 -1
  450. package/components/SVGIcons/IconFastAcceleration.js +1 -1
  451. package/components/SVGIcons/IconFastAccelerationFilled.d.ts +1 -1
  452. package/components/SVGIcons/IconFastAccelerationFilled.js +1 -1
  453. package/components/SVGIcons/IconFeed.d.ts +1 -1
  454. package/components/SVGIcons/IconFeed.js +1 -1
  455. package/components/SVGIcons/IconFeedFilled.d.ts +1 -1
  456. package/components/SVGIcons/IconFeedFilled.js +1 -1
  457. package/components/SVGIcons/IconFilter.d.ts +1 -1
  458. package/components/SVGIcons/IconFilter.js +1 -1
  459. package/components/SVGIcons/IconFilterFilled.d.ts +1 -1
  460. package/components/SVGIcons/IconFilterFilled.js +1 -1
  461. package/components/SVGIcons/IconFlag.d.ts +1 -1
  462. package/components/SVGIcons/IconFlag.js +1 -1
  463. package/components/SVGIcons/IconFlagFilled.d.ts +1 -1
  464. package/components/SVGIcons/IconFlagFilled.js +1 -1
  465. package/components/SVGIcons/IconFolderLink.d.ts +1 -1
  466. package/components/SVGIcons/IconFolderLink.js +1 -1
  467. package/components/SVGIcons/IconFolderLinkFilled.d.ts +1 -1
  468. package/components/SVGIcons/IconFolderLinkFilled.js +1 -1
  469. package/components/SVGIcons/IconFood.d.ts +1 -1
  470. package/components/SVGIcons/IconFood.js +1 -1
  471. package/components/SVGIcons/IconFoodFilled.d.ts +1 -1
  472. package/components/SVGIcons/IconFoodFilled.js +1 -1
  473. package/components/SVGIcons/IconGb.d.ts +1 -1
  474. package/components/SVGIcons/IconGb.js +1 -1
  475. package/components/SVGIcons/IconGlobe.d.ts +1 -1
  476. package/components/SVGIcons/IconGlobe.js +1 -1
  477. package/components/SVGIcons/IconGlobeFilled.d.ts +1 -1
  478. package/components/SVGIcons/IconGlobeFilled.js +1 -1
  479. package/components/SVGIcons/IconGoogle.d.ts +1 -1
  480. package/components/SVGIcons/IconGoogle.js +1 -1
  481. package/components/SVGIcons/IconHandOpenHeart.d.ts +1 -1
  482. package/components/SVGIcons/IconHandOpenHeart.js +1 -1
  483. package/components/SVGIcons/IconHandOpenHeartFilled.d.ts +1 -1
  484. package/components/SVGIcons/IconHandOpenHeartFilled.js +1 -1
  485. package/components/SVGIcons/IconHeart.d.ts +1 -1
  486. package/components/SVGIcons/IconHeart.js +1 -1
  487. package/components/SVGIcons/IconHeartFilled.d.ts +1 -1
  488. package/components/SVGIcons/IconHeartFilled.js +1 -1
  489. package/components/SVGIcons/IconHistory.d.ts +1 -1
  490. package/components/SVGIcons/IconHistory.js +1 -1
  491. package/components/SVGIcons/IconHistoryFilled.d.ts +1 -1
  492. package/components/SVGIcons/IconHistoryFilled.js +1 -1
  493. package/components/SVGIcons/IconHome.d.ts +1 -1
  494. package/components/SVGIcons/IconHome.js +1 -1
  495. package/components/SVGIcons/IconHomeFilled.d.ts +1 -1
  496. package/components/SVGIcons/IconHomeFilled.js +1 -1
  497. package/components/SVGIcons/IconImage.d.ts +1 -1
  498. package/components/SVGIcons/IconImage.js +1 -1
  499. package/components/SVGIcons/IconImageFilled.d.ts +1 -1
  500. package/components/SVGIcons/IconImageFilled.js +1 -1
  501. package/components/SVGIcons/IconInfo.d.ts +1 -1
  502. package/components/SVGIcons/IconInfo.js +1 -1
  503. package/components/SVGIcons/IconInfoFilled.d.ts +1 -1
  504. package/components/SVGIcons/IconInfoFilled.js +1 -1
  505. package/components/SVGIcons/IconInstagram.d.ts +1 -1
  506. package/components/SVGIcons/IconInstagram.js +1 -1
  507. package/components/SVGIcons/IconKeyReset.d.ts +1 -1
  508. package/components/SVGIcons/IconKeyReset.js +1 -1
  509. package/components/SVGIcons/IconKeyResetFilled.d.ts +1 -1
  510. package/components/SVGIcons/IconKeyResetFilled.js +1 -1
  511. package/components/SVGIcons/IconLayers.d.ts +4 -0
  512. package/components/SVGIcons/IconLayers.js +4 -0
  513. package/components/SVGIcons/IconLayoutGrid.d.ts +4 -0
  514. package/components/SVGIcons/IconLayoutGrid.js +5 -0
  515. package/components/SVGIcons/IconLayoutList.d.ts +4 -0
  516. package/components/SVGIcons/IconLayoutList.js +3 -0
  517. package/components/SVGIcons/IconLibrary.d.ts +1 -1
  518. package/components/SVGIcons/IconLibrary.js +1 -1
  519. package/components/SVGIcons/IconLibraryFilled.d.ts +1 -1
  520. package/components/SVGIcons/IconLibraryFilled.js +1 -1
  521. package/components/SVGIcons/IconLink.d.ts +1 -1
  522. package/components/SVGIcons/IconLink.js +1 -1
  523. package/components/SVGIcons/IconLinkFilled.d.ts +1 -1
  524. package/components/SVGIcons/IconLinkFilled.js +1 -1
  525. package/components/SVGIcons/IconLinkedin.d.ts +1 -1
  526. package/components/SVGIcons/IconLinkedin.js +1 -1
  527. package/components/SVGIcons/IconList.d.ts +1 -1
  528. package/components/SVGIcons/IconList.js +1 -1
  529. package/components/SVGIcons/IconListFilled.d.ts +1 -1
  530. package/components/SVGIcons/IconListFilled.js +1 -1
  531. package/components/SVGIcons/IconLocation.d.ts +1 -1
  532. package/components/SVGIcons/IconLocation.js +1 -1
  533. package/components/SVGIcons/IconLocationFilled.d.ts +1 -1
  534. package/components/SVGIcons/IconLocationFilled.js +1 -1
  535. package/components/SVGIcons/IconLockClosed.d.ts +1 -1
  536. package/components/SVGIcons/IconLockClosed.js +1 -1
  537. package/components/SVGIcons/IconLockClosedFilled.d.ts +1 -1
  538. package/components/SVGIcons/IconLockClosedFilled.js +1 -1
  539. package/components/SVGIcons/IconLockOpen.d.ts +1 -1
  540. package/components/SVGIcons/IconLockOpen.js +1 -1
  541. package/components/SVGIcons/IconLockOpenFilled.d.ts +1 -1
  542. package/components/SVGIcons/IconLockOpenFilled.js +1 -1
  543. package/components/SVGIcons/IconMail.d.ts +1 -1
  544. package/components/SVGIcons/IconMail.js +1 -1
  545. package/components/SVGIcons/IconMailAdd.d.ts +1 -1
  546. package/components/SVGIcons/IconMailAdd.js +1 -1
  547. package/components/SVGIcons/IconMailAddFilled.d.ts +1 -1
  548. package/components/SVGIcons/IconMailAddFilled.js +1 -1
  549. package/components/SVGIcons/IconMailArrowForward.d.ts +1 -1
  550. package/components/SVGIcons/IconMailArrowForward.js +1 -1
  551. package/components/SVGIcons/IconMailArrowForwardFilled.d.ts +1 -1
  552. package/components/SVGIcons/IconMailArrowForwardFilled.js +1 -1
  553. package/components/SVGIcons/IconMailFilled.d.ts +1 -1
  554. package/components/SVGIcons/IconMailFilled.js +1 -1
  555. package/components/SVGIcons/IconMailLink.d.ts +1 -1
  556. package/components/SVGIcons/IconMailLink.js +1 -1
  557. package/components/SVGIcons/IconMailLinkFilled.d.ts +1 -1
  558. package/components/SVGIcons/IconMailLinkFilled.js +1 -1
  559. package/components/SVGIcons/IconMedium.d.ts +1 -1
  560. package/components/SVGIcons/IconMedium.js +1 -1
  561. package/components/SVGIcons/IconMoon.d.ts +1 -1
  562. package/components/SVGIcons/IconMoon.js +1 -1
  563. package/components/SVGIcons/IconMore.d.ts +1 -1
  564. package/components/SVGIcons/IconMore.js +1 -1
  565. package/components/SVGIcons/IconMoreFilled.d.ts +1 -1
  566. package/components/SVGIcons/IconMoreFilled.js +1 -1
  567. package/components/SVGIcons/IconMoreVertical.d.ts +1 -1
  568. package/components/SVGIcons/IconMoreVertical.js +1 -1
  569. package/components/SVGIcons/IconMoreVerticalFilled.d.ts +1 -1
  570. package/components/SVGIcons/IconMoreVerticalFilled.js +1 -1
  571. package/components/SVGIcons/IconNavigation.d.ts +1 -1
  572. package/components/SVGIcons/IconNavigation.js +1 -1
  573. package/components/SVGIcons/IconNavigationFilled.d.ts +1 -1
  574. package/components/SVGIcons/IconNavigationFilled.js +1 -1
  575. package/components/SVGIcons/IconNotebook.d.ts +1 -1
  576. package/components/SVGIcons/IconNotebook.js +1 -1
  577. package/components/SVGIcons/IconNotebookAdd.d.ts +1 -1
  578. package/components/SVGIcons/IconNotebookAdd.js +1 -1
  579. package/components/SVGIcons/IconNotebookAddFilled.d.ts +1 -1
  580. package/components/SVGIcons/IconNotebookAddFilled.js +1 -1
  581. package/components/SVGIcons/IconNotebookFilled.d.ts +1 -1
  582. package/components/SVGIcons/IconNotebookFilled.js +1 -1
  583. package/components/SVGIcons/IconOnlyEmployee.d.ts +1 -1
  584. package/components/SVGIcons/IconOnlyEmployee.js +1 -1
  585. package/components/SVGIcons/IconOpen.d.ts +1 -1
  586. package/components/SVGIcons/IconOpen.js +1 -1
  587. package/components/SVGIcons/IconOpenFilled.d.ts +1 -1
  588. package/components/SVGIcons/IconOpenFilled.js +1 -1
  589. package/components/SVGIcons/IconPatient.d.ts +1 -1
  590. package/components/SVGIcons/IconPatient.js +1 -1
  591. package/components/SVGIcons/IconPatientFilled.d.ts +1 -1
  592. package/components/SVGIcons/IconPatientFilled.js +1 -1
  593. package/components/SVGIcons/IconPeople.d.ts +1 -1
  594. package/components/SVGIcons/IconPeople.js +1 -1
  595. package/components/SVGIcons/IconPeopleAdd.d.ts +1 -1
  596. package/components/SVGIcons/IconPeopleAdd.js +1 -1
  597. package/components/SVGIcons/IconPeopleAddFilled.d.ts +1 -1
  598. package/components/SVGIcons/IconPeopleAddFilled.js +1 -1
  599. package/components/SVGIcons/IconPeopleFilled.d.ts +1 -1
  600. package/components/SVGIcons/IconPeopleFilled.js +1 -1
  601. package/components/SVGIcons/IconPeopleList.d.ts +1 -1
  602. package/components/SVGIcons/IconPeopleList.js +1 -1
  603. package/components/SVGIcons/IconPeopleListFilled.d.ts +1 -1
  604. package/components/SVGIcons/IconPeopleListFilled.js +1 -1
  605. package/components/SVGIcons/IconPeopleTeam.d.ts +1 -1
  606. package/components/SVGIcons/IconPeopleTeam.js +1 -1
  607. package/components/SVGIcons/IconPeopleTeamFilled.d.ts +1 -1
  608. package/components/SVGIcons/IconPeopleTeamFilled.js +1 -1
  609. package/components/SVGIcons/IconPercent.d.ts +1 -1
  610. package/components/SVGIcons/IconPercent.js +1 -1
  611. package/components/SVGIcons/IconPerson.d.ts +1 -1
  612. package/components/SVGIcons/IconPerson.js +1 -1
  613. package/components/SVGIcons/IconPersonAccount.d.ts +1 -1
  614. package/components/SVGIcons/IconPersonAccount.js +1 -1
  615. package/components/SVGIcons/IconPersonAccountFilled.d.ts +1 -1
  616. package/components/SVGIcons/IconPersonAccountFilled.js +1 -1
  617. package/components/SVGIcons/IconPersonAdd.d.ts +1 -1
  618. package/components/SVGIcons/IconPersonAdd.js +1 -1
  619. package/components/SVGIcons/IconPersonAddFilled.d.ts +1 -1
  620. package/components/SVGIcons/IconPersonAddFilled.js +1 -1
  621. package/components/SVGIcons/IconPersonArrowLeft.d.ts +1 -1
  622. package/components/SVGIcons/IconPersonArrowLeft.js +1 -1
  623. package/components/SVGIcons/IconPersonArrowLeftFilled.d.ts +1 -1
  624. package/components/SVGIcons/IconPersonArrowLeftFilled.js +1 -1
  625. package/components/SVGIcons/IconPersonArrowRight.d.ts +1 -1
  626. package/components/SVGIcons/IconPersonArrowRight.js +1 -1
  627. package/components/SVGIcons/IconPersonArrowRightFilled.d.ts +1 -1
  628. package/components/SVGIcons/IconPersonArrowRightFilled.js +1 -1
  629. package/components/SVGIcons/IconPersonBoard.d.ts +1 -1
  630. package/components/SVGIcons/IconPersonBoard.js +1 -1
  631. package/components/SVGIcons/IconPersonFilled.d.ts +1 -1
  632. package/components/SVGIcons/IconPersonFilled.js +1 -1
  633. package/components/SVGIcons/IconPersonMinus.d.ts +1 -1
  634. package/components/SVGIcons/IconPersonMinus.js +1 -1
  635. package/components/SVGIcons/IconPersonStar.d.ts +1 -1
  636. package/components/SVGIcons/IconPersonStar.js +1 -1
  637. package/components/SVGIcons/IconPersonStarFilled.d.ts +1 -1
  638. package/components/SVGIcons/IconPersonStarFilled.js +1 -1
  639. package/components/SVGIcons/IconPersonSubtract.d.ts +1 -1
  640. package/components/SVGIcons/IconPersonSubtract.js +1 -1
  641. package/components/SVGIcons/IconPersonSubtractFilled.d.ts +1 -1
  642. package/components/SVGIcons/IconPersonSubtractFilled.js +1 -1
  643. package/components/SVGIcons/IconPhone.d.ts +1 -1
  644. package/components/SVGIcons/IconPhone.js +1 -1
  645. package/components/SVGIcons/IconPhoneFilled.d.ts +1 -1
  646. package/components/SVGIcons/IconPhoneFilled.js +1 -1
  647. package/components/SVGIcons/IconPlane.d.ts +4 -0
  648. package/components/SVGIcons/IconPlane.js +1 -0
  649. package/components/SVGIcons/IconPlugConnected.d.ts +1 -1
  650. package/components/SVGIcons/IconPlugConnected.js +1 -1
  651. package/components/SVGIcons/IconPos.d.ts +1 -1
  652. package/components/SVGIcons/IconPos.js +1 -1
  653. package/components/SVGIcons/IconPosFilled.d.ts +1 -1
  654. package/components/SVGIcons/IconPosFilled.js +1 -1
  655. package/components/SVGIcons/IconProhibited.d.ts +1 -1
  656. package/components/SVGIcons/IconProhibited.js +1 -1
  657. package/components/SVGIcons/IconProhibitedFilled.d.ts +1 -1
  658. package/components/SVGIcons/IconProhibitedFilled.js +1 -1
  659. package/components/SVGIcons/IconProjectProduct.d.ts +1 -1
  660. package/components/SVGIcons/IconProjectProduct.js +1 -1
  661. package/components/SVGIcons/IconQuestion.d.ts +1 -1
  662. package/components/SVGIcons/IconQuestion.js +1 -1
  663. package/components/SVGIcons/IconQuestionFilled.d.ts +1 -1
  664. package/components/SVGIcons/IconQuestionFilled.js +1 -1
  665. package/components/SVGIcons/IconRedo.d.ts +1 -1
  666. package/components/SVGIcons/IconRedo.js +1 -1
  667. package/components/SVGIcons/IconRedoFilled.d.ts +1 -1
  668. package/components/SVGIcons/IconRedoFilled.js +1 -1
  669. package/components/SVGIcons/IconRibbon.d.ts +1 -1
  670. package/components/SVGIcons/IconRibbon.js +1 -1
  671. package/components/SVGIcons/IconRu.d.ts +1 -1
  672. package/components/SVGIcons/IconRu.js +1 -1
  673. package/components/SVGIcons/IconRub.d.ts +1 -1
  674. package/components/SVGIcons/IconRub.js +1 -1
  675. package/components/SVGIcons/IconRubFilled.d.ts +1 -1
  676. package/components/SVGIcons/IconRubFilled.js +1 -1
  677. package/components/SVGIcons/IconSave.d.ts +1 -1
  678. package/components/SVGIcons/IconSave.js +1 -1
  679. package/components/SVGIcons/IconSaveFilled.d.ts +1 -1
  680. package/components/SVGIcons/IconSaveFilled.js +1 -1
  681. package/components/SVGIcons/IconSavings.d.ts +1 -1
  682. package/components/SVGIcons/IconSavings.js +1 -1
  683. package/components/SVGIcons/IconSavingsFilled.d.ts +1 -1
  684. package/components/SVGIcons/IconSavingsFilled.js +1 -1
  685. package/components/SVGIcons/IconSearch.d.ts +1 -1
  686. package/components/SVGIcons/IconSearch.js +1 -1
  687. package/components/SVGIcons/IconSearchFilled.d.ts +1 -1
  688. package/components/SVGIcons/IconSearchFilled.js +1 -1
  689. package/components/SVGIcons/IconSelectAllOff.d.ts +1 -1
  690. package/components/SVGIcons/IconSelectAllOff.js +1 -1
  691. package/components/SVGIcons/IconSelectAllOffFilled.d.ts +1 -1
  692. package/components/SVGIcons/IconSelectAllOffFilled.js +1 -1
  693. package/components/SVGIcons/IconSelectAllOn.d.ts +1 -1
  694. package/components/SVGIcons/IconSelectAllOn.js +1 -1
  695. package/components/SVGIcons/IconSelectAllOnFilled.d.ts +1 -1
  696. package/components/SVGIcons/IconSelectAllOnFilled.js +1 -1
  697. package/components/SVGIcons/IconSend.d.ts +1 -1
  698. package/components/SVGIcons/IconSend.js +1 -1
  699. package/components/SVGIcons/IconSendFilled.d.ts +1 -1
  700. package/components/SVGIcons/IconSendFilled.js +1 -1
  701. package/components/SVGIcons/IconSettings.d.ts +1 -1
  702. package/components/SVGIcons/IconSettings.js +1 -1
  703. package/components/SVGIcons/IconSettingsFilled.d.ts +1 -1
  704. package/components/SVGIcons/IconSettingsFilled.js +1 -1
  705. package/components/SVGIcons/IconShare.d.ts +1 -1
  706. package/components/SVGIcons/IconShare.js +1 -1
  707. package/components/SVGIcons/IconShareAndroid.d.ts +1 -1
  708. package/components/SVGIcons/IconShareAndroid.js +1 -1
  709. package/components/SVGIcons/IconShareAndroidFilled.d.ts +1 -1
  710. package/components/SVGIcons/IconShareAndroidFilled.js +1 -1
  711. package/components/SVGIcons/IconShareFilled.d.ts +1 -1
  712. package/components/SVGIcons/IconShareFilled.js +1 -1
  713. package/components/SVGIcons/IconSignOut.d.ts +1 -1
  714. package/components/SVGIcons/IconSignOut.js +1 -1
  715. package/components/SVGIcons/IconSignOutFilled.d.ts +1 -1
  716. package/components/SVGIcons/IconSignOutFilled.js +1 -1
  717. package/components/SVGIcons/IconSpinner.d.ts +1 -1
  718. package/components/SVGIcons/IconSpinner.js +1 -1
  719. package/components/SVGIcons/IconSpinnerFilled.d.ts +1 -1
  720. package/components/SVGIcons/IconSpinnerFilled.js +1 -1
  721. package/components/SVGIcons/IconStatus.d.ts +1 -1
  722. package/components/SVGIcons/IconStatus.js +1 -1
  723. package/components/SVGIcons/IconStatusFilled.d.ts +1 -1
  724. package/components/SVGIcons/IconStatusFilled.js +1 -1
  725. package/components/SVGIcons/IconSubtract.d.ts +1 -1
  726. package/components/SVGIcons/IconSubtract.js +1 -1
  727. package/components/SVGIcons/IconSubtractCircle.d.ts +1 -1
  728. package/components/SVGIcons/IconSubtractCircle.js +1 -1
  729. package/components/SVGIcons/IconSubtractCircleFilled.d.ts +1 -1
  730. package/components/SVGIcons/IconSubtractCircleFilled.js +1 -1
  731. package/components/SVGIcons/IconSubtractFilled.d.ts +1 -1
  732. package/components/SVGIcons/IconSubtractFilled.js +1 -1
  733. package/components/SVGIcons/IconSun.d.ts +1 -1
  734. package/components/SVGIcons/IconSun.js +10 -10
  735. package/components/SVGIcons/IconTableCellEdit.d.ts +1 -1
  736. package/components/SVGIcons/IconTableCellEdit.js +1 -1
  737. package/components/SVGIcons/IconTableCellEditFilled.d.ts +1 -1
  738. package/components/SVGIcons/IconTableCellEditFilled.js +1 -1
  739. package/components/SVGIcons/IconTelegram.d.ts +1 -1
  740. package/components/SVGIcons/IconTelegram.js +1 -1
  741. package/components/SVGIcons/IconTimer.d.ts +1 -1
  742. package/components/SVGIcons/IconTimer.js +1 -1
  743. package/components/SVGIcons/IconTimerFilled.d.ts +1 -1
  744. package/components/SVGIcons/IconTimerFilled.js +1 -1
  745. package/components/SVGIcons/IconTrophy.d.ts +1 -1
  746. package/components/SVGIcons/IconTrophy.js +1 -1
  747. package/components/SVGIcons/IconTrophyFilled.d.ts +1 -1
  748. package/components/SVGIcons/IconTrophyFilled.js +1 -1
  749. package/components/SVGIcons/IconTwitter.d.ts +1 -1
  750. package/components/SVGIcons/IconTwitter.js +1 -1
  751. package/components/SVGIcons/IconUndo.d.ts +1 -1
  752. package/components/SVGIcons/IconUndo.js +1 -1
  753. package/components/SVGIcons/IconUndoFilled.d.ts +1 -1
  754. package/components/SVGIcons/IconUndoFilled.js +1 -1
  755. package/components/SVGIcons/IconUnitsEmployee.d.ts +1 -1
  756. package/components/SVGIcons/IconUnitsEmployee.js +1 -1
  757. package/components/SVGIcons/IconUpload.d.ts +1 -1
  758. package/components/SVGIcons/IconUpload.js +1 -1
  759. package/components/SVGIcons/IconUpload2.d.ts +4 -0
  760. package/components/SVGIcons/IconUpload2.js +4 -0
  761. package/components/SVGIcons/IconUs.d.ts +1 -1
  762. package/components/SVGIcons/IconUs.js +1 -1
  763. package/components/SVGIcons/IconUsd.d.ts +1 -1
  764. package/components/SVGIcons/IconUsd.js +1 -1
  765. package/components/SVGIcons/IconUsdFilled.d.ts +1 -1
  766. package/components/SVGIcons/IconUsdFilled.js +1 -1
  767. package/components/SVGIcons/IconUserMinus.d.ts +1 -1
  768. package/components/SVGIcons/IconUserMinus.js +1 -1
  769. package/components/SVGIcons/IconUsers.d.ts +4 -0
  770. package/components/SVGIcons/IconUsers.js +4 -0
  771. package/components/SVGIcons/IconVacation.d.ts +1 -1
  772. package/components/SVGIcons/IconVacation.js +1 -1
  773. package/components/SVGIcons/IconVideo.d.ts +1 -1
  774. package/components/SVGIcons/IconVideo.js +1 -1
  775. package/components/SVGIcons/IconVideoFilled.d.ts +1 -1
  776. package/components/SVGIcons/IconVideoFilled.js +1 -1
  777. package/components/SVGIcons/IconWallet.d.ts +1 -1
  778. package/components/SVGIcons/IconWallet.js +1 -1
  779. package/components/SVGIcons/IconWalletFilled.d.ts +1 -1
  780. package/components/SVGIcons/IconWalletFilled.js +1 -1
  781. package/components/SVGIcons/IconWarning.d.ts +1 -1
  782. package/components/SVGIcons/IconWarning.js +1 -1
  783. package/components/SVGIcons/IconWarningFilled.d.ts +1 -1
  784. package/components/SVGIcons/IconWarningFilled.js +1 -1
  785. package/components/SVGIcons/IconYoutube.d.ts +1 -1
  786. package/components/SVGIcons/IconYoutube.js +1 -1
  787. package/components/Select/ButtonSelect/ButtonSelect.js +3 -1
  788. package/components/Select/FilterSelect/FilterDropdown.js +3 -1
  789. package/components/Select/FilterSelect/FilterGroupDropdown.js +2 -1
  790. package/components/Select/FilterSelect/FilterSelect.js +4 -4
  791. package/components/Select/MultiSelect/DesktopWrapper.d.ts +1 -0
  792. package/components/Select/MultiSelect/DesktopWrapper.js +1 -1
  793. package/components/Select/MultiSelect/MobileWrapper.d.ts +1 -0
  794. package/components/Select/MultiSelect/MobileWrapper.js +2 -1
  795. package/components/Select/MultiSelect/MultiBase/MultiBase.js +5 -3
  796. package/components/Select/MultiSelect/MultiSelect.js +3 -2
  797. package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +7 -4
  798. package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +7 -5
  799. package/components/Select/MultiSelect/OptionsWrapper.d.ts +1 -0
  800. package/components/Select/NestedSelect/NestedSelect.js +4 -3
  801. package/components/Select/ProfileDropdown/index.js +10 -10
  802. package/components/Select/Select/Select.js +1 -1
  803. package/components/Select/Select/SelectDesktop/index.js +2 -1
  804. package/components/Select/Select/SelectMobile/MobileTopContent.d.ts +2 -1
  805. package/components/Select/Select/SelectMobile/MobileTopContent.js +2 -2
  806. package/components/Select/Select/SelectMobile/index.js +5 -3
  807. package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.d.ts +1 -1
  808. package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js +2 -1
  809. package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +3 -3
  810. package/components/Select/SharedComponents/ContentTop.d.ts +2 -1
  811. package/components/Select/SharedComponents/ContentTop.js +3 -3
  812. package/components/Select/SharedComponents/Footer.js +6 -5
  813. package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +3 -3
  814. package/components/Select/SharedComponents/Loading.js +2 -1
  815. package/components/Select/helper.d.ts +1 -0
  816. package/components/Select/helper.js +1 -0
  817. package/components/Select/types.d.ts +7 -6
  818. package/components/SideSheet/Footer/Footer.d.ts +2 -1
  819. package/components/SideSheet/Footer/Footer.js +5 -4
  820. package/components/SideSheet/SideSheet.js +8 -7
  821. package/components/SideSheet/types.d.ts +2 -1
  822. package/components/Skeleton/Skeleton.js +5 -4
  823. package/components/Skeleton/types.d.ts +2 -2
  824. package/components/Snackbar/Snackbar.js +3 -2
  825. package/components/Snackbar/types.d.ts +1 -0
  826. package/components/Status/Status.js +4 -3
  827. package/components/Status/types.d.ts +1 -2
  828. package/components/Stepper/Stepper.js +2 -1
  829. package/components/Stepper/types.d.ts +3 -2
  830. package/components/Switcher/Switcher.js +3 -2
  831. package/components/Switcher/types.d.ts +1 -0
  832. package/components/Tab/Tab.js +2 -1
  833. package/components/Tab/TabItem.js +3 -2
  834. package/components/Tab/types.d.ts +3 -4
  835. package/components/Table/Header.d.ts +3 -2
  836. package/components/Table/Header.js +4 -2
  837. package/components/Table/IndeterminateCheckbox.d.ts +3 -4
  838. package/components/Table/IndeterminateCheckbox.js +1 -1
  839. package/components/Table/Row.d.ts +3 -2
  840. package/components/Table/Row.js +3 -1
  841. package/components/Table/Table.d.ts +1 -1
  842. package/components/Table/Table.js +6 -5
  843. package/components/Table/types.d.ts +2 -1
  844. package/components/Table/utils.d.ts +1 -1
  845. package/components/Table/utils.js +3 -1
  846. package/components/TableV2/AdvancedPagination.d.ts +3 -2
  847. package/components/TableV2/AdvancedPagination.js +12 -12
  848. package/components/TableV2/ColumnHeader.d.ts +3 -2
  849. package/components/TableV2/ColumnHeader.js +6 -5
  850. package/components/TableV2/ColumnSettings.js +4 -2
  851. package/components/TableV2/IndeterminateCheckbox.d.ts +3 -4
  852. package/components/TableV2/IndeterminateCheckbox.js +2 -2
  853. package/components/TableV2/Table.d.ts +1 -1
  854. package/components/TableV2/Table.js +8 -7
  855. package/components/TableV2/hooks/useTableControl.d.ts +1 -1
  856. package/components/TableV2/hooks/useTableControl.js +1 -1
  857. package/components/TableV2/types.d.ts +3 -2
  858. package/components/Text/Text.js +2 -1
  859. package/components/Text/types.d.ts +2 -2
  860. package/components/Textarea/Textarea.js +4 -3
  861. package/components/Textarea/types.d.ts +1 -0
  862. package/components/Tooltip/Tooltip.js +2 -2
  863. package/components/Tooltip/types.d.ts +1 -0
  864. package/components/UnderConstruction/UnderConstruction.js +6 -5
  865. package/components/UnderConstruction/types.d.ts +2 -1
  866. package/context/types.d.ts +1 -0
  867. package/helperComponents/ErrorMessage/ErrorMessage.d.ts +1 -1
  868. package/helperComponents/ErrorMessage/ErrorMessage.js +3 -3
  869. package/helperComponents/ErrorMessage/types.d.ts +1 -1
  870. package/helperComponents/Label/types.d.ts +1 -1
  871. package/helperComponents/Loader/Loader.js +2 -1
  872. package/helperComponents/OptionItem/OptionItem.js +2 -2
  873. package/helperComponents/OptionItem/types.d.ts +1 -1
  874. package/package.json +1 -1
  875. package/type/base.d.ts +14 -0
  876. package/type/base.js +0 -0
  877. package/type/index.d.ts +1 -0
  878. package/type/svg-icons.d.ts +1 -1
  879. package/utils/helpers.d.ts +1 -1
@@ -1,4 +1,5 @@
1
- import{jsx as s}from"react/jsx-runtime";import v from"classnames";import{DEFAULT_VARIANT as g,DEFAULT_ANIMATION as y}from"./consts.js";const u=s=>{if(null!=s)return"number"==typeof s?`${s}px`:s},C=e=>{const{variant:a=g,animation:t=y,width:n,height:i,count:l=1,children:o,style:r,className:d="",dataId:c=""}=e,h=null!=o,m=l>1?l:1,p={...void 0!==n?{width:u(n)}:null,...void 0!==i?{height:u(i)}:null,...r},k=v("skeleton",`skeleton--${a}`,`skeleton--anim-${t}`,{"skeleton--has-children":h,"skeleton--auto-height":h&&void 0===i,"skeleton--auto-width":h&&void 0===n},d);if(h)/* @__PURE__ */
2
- return s("span",{className:k,style:p,"data-id":c,children:/* @__PURE__ */s("span",{className:"skeleton__children","aria-hidden":"true",children:o})});if(1===m)/* @__PURE__ */
3
- return s("span",{className:k,style:p,"data-id":c,role:"status","aria-label":"Loading"});const N=[];for(let e=0;e<m;e+=1)N.push(
4
- /* @__PURE__ */s("span",{className:k,style:p,"data-id":c?`${c}-${e}`:"","aria-hidden":0!==e||void 0,role:0===e?"status":void 0,"aria-label":0===e?"Loading":void 0},e));/* @__PURE__ */return s("span",{className:"skeleton-group",children:N})};export{C as Skeleton};
1
+ import{jsx as s}from"react/jsx-runtime";import v from"classnames";import{DEFAULT_VARIANT as g,DEFAULT_ANIMATION as y}from"./consts.js";const u=s=>{if(null!=s)return"number"==typeof s?`${s}px`:s},$=e=>{const{variant:t=g,animation:a=y,width:n,height:i,count:l=1,children:o,style:r,className:d="",dataTestId:c=""}=e,h=null!=o,m=l>1?l:1,p={...void 0!==n?{width:u(n)}:null,...void 0!==i?{height:u(i)}:null,...r},k=v("skeleton",`skeleton--${t}`,`skeleton--anim-${a}`,{"skeleton--has-children":h,"skeleton--auto-height":h&&void 0===i,"skeleton--auto-width":h&&void 0===n},d);if(h)/* @__PURE__ */
2
+ return s("span",{className:k,style:p,"data-test-id":c,children:/* @__PURE__ */s("span",{className:"skeleton__children","aria-hidden":"true",children:o})});if(1===m)/* @__PURE__ */
3
+ return s("span",{className:k,style:p,"data-test-id":c,role:"status","aria-label":"Loading"});const N=[];for(let e=0;e<m;e+=1)N.push(
4
+ /* @__PURE__ */s("span",{className:k,style:p,"data-test-id":c?`${c}-${e}`:"","aria-hidden":0!==e||void 0,role:0===e?"status":void 0,"aria-label":0===e?"Loading":void 0},e));/* @__PURE__ */
5
+ return s("span",{className:"skeleton-group",children:N})};export{$ as Skeleton};
@@ -1,7 +1,8 @@
1
+ import { IBaseProps } from '../../type';
1
2
  import { CSSProperties, ReactNode } from 'react';
2
3
  export type TSkeletonVariant = 'text' | 'circular' | 'rectangular' | 'rounded';
3
4
  export type TSkeletonAnimation = 'pulse' | 'wave' | 'none';
4
- export interface TSkeletonPropTypes {
5
+ export interface TSkeletonPropTypes extends IBaseProps {
5
6
  /** Visual shape of the placeholder. */
6
7
  variant?: TSkeletonVariant;
7
8
  /** Animation style. Pass `'none'` to disable. */
@@ -20,5 +21,4 @@ export interface TSkeletonPropTypes {
20
21
  /** Inline style overrides applied to every rendered skeleton element. */
21
22
  style?: CSSProperties;
22
23
  className?: string;
23
- dataId?: string;
24
24
  }
@@ -1,4 +1,5 @@
1
- import{jsx as s,jsxs as o}from"react/jsx-runtime";import{toast as m,ToastContainer as l,Slide as d}from"react-toastify";import{Text as c}from"../Text/Text.js";import{Button as u}from"../Button/Button.js";import{DEFAULT_DURATION as f,TYPE_MAPPING as C,ICONS_MAPPING as h}from"./consts.js";import{IconDynamicComponent as N}from"../../helperComponents/IconDynamicComponent/IconDynamicComponent.js";const g=({actionProps:t,toastId:a,type:n="information",text:e})=>/* @__PURE__ */o("div",{"data-id":`${n}-toast-message`,className:"snackbar",children:[
1
+ import{jsx as s,jsxs as o}from"react/jsx-runtime";import{toast as m,ToastContainer as l,Slide as d}from"react-toastify";import{Text as c}from"../Text/Text.js";import{Button as u}from"../Button/Button.js";import{DEFAULT_DURATION as f,TYPE_MAPPING as C,ICONS_MAPPING as h}from"./consts.js";import{IconDynamicComponent as N}from"../../helperComponents/IconDynamicComponent/IconDynamicComponent.js";const g=({actionProps:t,toastId:a,type:n="information",text:e})=>/* @__PURE__ */o("div",{"data-test-id":`${n}-toast-message`,className:"snackbar",children:[
2
2
  /* @__PURE__ */o("div",{className:"snackbar__content",children:[
3
3
  /* @__PURE__ */s(N,{Component:h[n],type:C[n],size:"medium"}),
4
- /* @__PURE__ */s(c,{className:"snackbar__text pl-16 pr-8",type:"primary",size:"standard",weight:"regular",lineHeight:"large",children:e})]}),t?/* @__PURE__ */s(u,{size:"small",type:"tertiary",...t,onClick:s=>{var o;m.dismiss(a),null==(o=null==t?void 0:t.onClick)||o.call(t,s)}}):null]},a),I=t=>{const{toastId:s,closeSnackbar:o,actionProps:a,duration:n=f}=t;m(g(t),{className:"_container",toastId:s,autoClose:!a&&n}),m.onChange(t=>{"removed"===t.status&&(null==o||o(t.id))})},y=t=>{const{duration:o=1e3,position:a="bottom-center"}=t;/* @__PURE__ */return s(l,{className:"snackbar-wrapper",theme:"light",hideProgressBar:!0,transition:d,position:a,autoClose:o,closeButton:()=>null})};export{y as Snackbar,I as notify};
4
+ /* @__PURE__ */s(c,{className:"snackbar__text pl-16 pr-8",type:"primary",size:"standard",weight:"regular",lineHeight:"large",children:e})]}),t?/* @__PURE__ */s(u,{size:"small",type:"tertiary",...t,onClick:s=>{var o;m.dismiss(a),null==(o=null==t?void 0:t.onClick)||o.call(t,s)}}):null]},a),I=t=>{const{toastId:s,closeSnackbar:o,actionProps:a,duration:n=f}=t;m(g(t),{className:"_container",toastId:s,autoClose:!a&&n}),m.onChange(t=>{"removed"===t.status&&(null==o||o(t.id))})},y=t=>{const{duration:o=1e3,position:a="bottom-center"}=t;/* @__PURE__ */
5
+ return s(l,{className:"snackbar-wrapper",theme:"light",hideProgressBar:!0,transition:d,position:a,autoClose:o,closeButton:()=>null})};export{y as Snackbar,I as notify};
@@ -1,3 +1,4 @@
1
+ import { IFormCompProps } from '../../type';
1
2
  import { TButtonPropTypes } from '../Button/types';
2
3
  export type TSnackbarTypes = 'success' | 'error' | 'warning' | 'information';
3
4
  export interface TToastProps {
@@ -1,3 +1,4 @@
1
- import{jsxs as i,jsx as e}from"react/jsx-runtime";import{Text as h}from"../Text/Text.js";import c from"classnames";var n=/* @__PURE__ */(s=>(s.large="standard",s.medium="small",s.small="xsmall",s))(n||{});const w=s=>{const{type:t="primary",size:a="large",text:l="",children:r,className:m="",leftIconProps:o,rightIconProps:u,withCircle:d=!0,withBackground:p=!1,dataId:x}=s;/* @__PURE__ */return i("div",{className:c(`status status--${a}`,m,{status__withBackground:p,[`status__withBackground--${t}`]:p}),children:[d?/* @__PURE__ */e("span",{className:c("status__circle","mr-6",{[`status__circle--${t}`]:!0})}):null,null!=o&&o.Component?/* @__PURE__ */e(o.Component,{size:"xsmall",type:t,className:"mr-6",...o}):null,
2
- /* @__PURE__ */i("div",{className:"status__label",children:[
3
- /* @__PURE__ */e(h,{className:"status__label-text",dataId:`${x}-text`,weight:p?"semibold":"regular",type:!d||p?t:"primary",size:n[a],children:l}),r]}),u]})};export{w as Status};
1
+ import{jsxs as c,jsx as l}from"react/jsx-runtime";import{Text as h}from"../Text/Text.js";import d from"classnames";var n=/* @__PURE__ */(s=>(s.large="standard",s.medium="small",s.small="xsmall",s))(n||{});const w=s=>{const{type:t="primary",size:a="large",text:e="",children:r,className:i="",leftIconProps:m,rightIconProps:o,withCircle:u=!0,withBackground:p=!1,dataTestId:x=""}=s;/* @__PURE__ */
2
+ return c("div",{"data-test-id":x,className:d(`status status--${a}`,i,{status__withBackground:p,[`status__withBackground--${t}`]:p}),children:[u?/* @__PURE__ */l("span",{className:d("status__circle","mr-6",{[`status__circle--${t}`]:!0})}):null,null!=m&&m.Component?/* @__PURE__ */l(m.Component,{size:"xsmall",type:t,className:"mr-6",...m}):null,
3
+ /* @__PURE__ */c("div",{className:"status__label",children:[
4
+ /* @__PURE__ */l(h,{className:"status__label-text",dataTestId:x?`${x}-text`:"",weight:p?"semibold":"regular",type:!u||p?t:"primary",size:n[a],children:e}),r]}),o]})};export{w as Status};
@@ -1,5 +1,5 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
- import { ISVGIconProps } from '../../type';
2
+ import { ISVGIconProps, IFormCompProps } from '../../type';
3
3
  export type TStatusTypes = 'primary' | 'disabled' | 'brand' | 'danger' | 'warning' | 'success' | 'information' | 'discovery';
4
4
  export interface TStatusProps extends IFormCompProps {
5
5
  text?: string;
@@ -11,5 +11,4 @@ export interface TStatusProps extends IFormCompProps {
11
11
  className?: string;
12
12
  withCircle?: boolean;
13
13
  withBackground?: boolean;
14
- dataId?: string;
15
14
  }
@@ -1 +1,2 @@
1
- import{jsx as x}from"react/jsx-runtime";import{useState as a,useEffect as l}from"react";const v=e=>{const{list:t,activeStep:s=0,setActiveStep:r}=e,[n,i]=a(s);l(()=>{s&&s!==n&&i(s)},[s,n]);const p=t[n];/* @__PURE__ */return x(p,{activeStepIndex:n,isNextDisabled:n===t.length-1,isPrevDisabled:0===n,prevHandler:()=>{let e=n;--e,i(e),r&&r(e)},nextHandler:()=>{let e=n;++e,i(e),r&&r(e)},stepCount:t.length})};export{v as Stepper};
1
+ import{jsx as x}from"react/jsx-runtime";import{useState as l,useEffect as I}from"react";const v=e=>{const{list:t,activeStep:s=0,setActiveStep:a,dataTestId:r=""}=e,[n,i]=l(s);I(()=>{s&&s!==n&&i(s)},[s,n]);const p=t[n];/* @__PURE__ */
2
+ return x(p,{activeStepIndex:n,isNextDisabled:n===t.length-1,isPrevDisabled:0===n,prevHandler:()=>{let e=n;--e,i(e),a&&a(e)},nextHandler:()=>{let e=n;++e,i(e),a&&a(e)},stepCount:t.length,dataTestId:r?`${r}-step-${n}`:""})};export{v as Stepper};
@@ -1,4 +1,5 @@
1
- export interface TStepperContentWrapperProps {
1
+ import { IBaseProps } from '../../type';
2
+ export interface TStepperContentWrapperProps extends IBaseProps {
2
3
  isPrevDisabled: boolean;
3
4
  isNextDisabled: boolean;
4
5
  prevHandler: () => void;
@@ -7,7 +8,7 @@ export interface TStepperContentWrapperProps {
7
8
  stepCount: number;
8
9
  }
9
10
  declare type TComp = (props: TStepperContentWrapperProps) => React.ReactElement;
10
- export interface TStepperProps {
11
+ export interface TStepperProps extends IBaseProps {
11
12
  list: TComp[];
12
13
  activeStep?: number;
13
14
  setActiveStep?: (step: number) => void;
@@ -1,4 +1,5 @@
1
- import{jsx as e,jsxs as h}from"react/jsx-runtime";import{forwardRef as k,useMemo as C}from"react";import p from"classnames";import{Label as y}from"../../helperComponents/Label/Label.js";const S=k((a,l)=>{const{onClick:s,id:r="",name:t,value:i,disabled:n,label:c,inlineType:o=!1,dataId:d,size:m="large",setFieldValue:b,selectedValue:w,className:_="",labelAddons:N,orientation:f="right",hasSpaceBetween:u=!0}=a,x=!!i||!!w,k=C(()=>/* @__PURE__ */e(y,{text:c,disabled:n,labelAddons:N,size:o?"standard":m,className:"switcher__label"}),[c,n,N,o,m]);/* @__PURE__ */return h("div",{className:p("switcher",{"switcher--inline":o,"switcher--space-between":u}),children:[c&&"right"===f&&k,
1
+ import{jsx as e,jsxs as h}from"react/jsx-runtime";import{forwardRef as k,useMemo as C}from"react";import p from"classnames";import{Label as y}from"../../helperComponents/Label/Label.js";const S=k((a,s)=>{const{onClick:l,id:r="",name:t,value:i,disabled:n,label:c,inlineType:o=!1,dataTestId:d,size:m="large",setFieldValue:b,selectedValue:w,className:_="",labelAddons:N,orientation:f="right",hasSpaceBetween:u=!0}=a,x=!!i||!!w,k=C(()=>/* @__PURE__ */e(y,{text:c,disabled:n,labelAddons:N,size:o?"standard":m,className:"switcher__label"}),[c,n,N,o,m]);/* @__PURE__ */
2
+ return h("div",{className:p("switcher",{"switcher--inline":o,"switcher--space-between":u}),children:[c&&"right"===f&&k,
2
3
  /* @__PURE__ */h("label",{id:r,className:p("controller","controller--switch",`controller--switch-${m}`,_,{"controller--disabled":n}),children:[
3
- /* @__PURE__ */e("input",{"data-id":d,type:"checkbox",tabIndex:0,onChange:()=>{t&&b&&b(t,!x),s&&s(!x)},checked:x,disabled:n}),
4
+ /* @__PURE__ */e("input",{"data-test-id":d,type:"checkbox",tabIndex:0,onChange:()=>{t&&b&&b(t,!x),l&&l(!x)},checked:x,disabled:n}),
4
5
  /* @__PURE__ */e("span",{className:"controller__icon",children:/* @__PURE__ */e("span",{className:"controller__icon__inner",children:/* @__PURE__ */e("span",{className:"controller__mark"})})})]}),c&&"left"===f&&k]})});S.displayName="Switcher";export{S as Switcher};
@@ -1,3 +1,4 @@
1
+ import { IFormCompProps } from '../../type';
1
2
  export interface TSwitcherProps extends IFormCompProps {
2
3
  onClick?: (isChecked: boolean) => void;
3
4
  className?: string;
@@ -1 +1,2 @@
1
- import{jsx as a}from"react/jsx-runtime";import{TabItem as m}from"./TabItem.js";import t from"classnames";const o=e=>{const{selectedValue:s,tabItems:l,onSelect:d,className:o,...r}=e;/* @__PURE__ */return a("div",{className:"tabs-container",children:/* @__PURE__ */a("div",{className:t("tabs-header-container",o),children:l.map(e=>/* @__PURE__ */a(m,{label:e.label,badgeProps:e.badgeProps,onClick:()=>d(e.value),val:e.value,isSelected:s===e.value,dataId:(null==e?void 0:e.dataId)||"",disabled:e.disabled,...r},e.value))})})};export{o as Tab};
1
+ import{jsx as s}from"react/jsx-runtime";import{TabItem as p}from"./TabItem.js";import u from"classnames";const N=a=>{const{selectedValue:e,tabItems:t,onSelect:l,className:d,dataTestId:r="",...i}=a;/* @__PURE__ */
2
+ return s("div",{className:"tabs-container","data-test-id":r,children:/* @__PURE__ */s("div",{className:u("tabs-header-container",d),children:t.map((a,t)=>/* @__PURE__ */s(p,{label:a.label,badgeProps:a.badgeProps,onClick:()=>l(a.value),val:a.value,isSelected:e===a.value,dataTestId:(null==a?void 0:a.dataTestId)||(r?`${r}-item-${t}`:""),disabled:a.disabled,...i},a.value))})})};export{N as Tab};
@@ -1,2 +1,3 @@
1
- import{jsxs as C,jsx as m}from"react/jsx-runtime";import{Badge as N}from"../Badge/Badge.js";import{noop as f}from"../../utils/helpers.js";import x from"classnames";const $=a=>{const{size:l="large",iconProps:s,badgeProps:e,label:o,className:n="",disabled:t=!1,isSelected:i,rightIconProps:c,val:r,onClick:d,dataId:p}=a;/* @__PURE__ */return C("div",{onClick:t?f:d,className:x("tab",{[`tab--${l}`]:l},{"tab--disabled":t},{"tab--selected":i},n),children:[null!=s&&s.Component?/* @__PURE__ */m(s.Component,{className:"tab__icon mr-8",size:"small"==l?"xsmall":"small",...s}):null,
2
- /* @__PURE__ */m("span",{className:"tab__label","data-id":p,children:o}),null!=c&&c.Component?/* @__PURE__ */m(c.Component,{onClick:a=>{null!=c&&c.action&&(a.stopPropagation(),null==c||c.action(r))},className:"tab__icon ml-8",size:"small"==l?"xsmall":"small",...c}):null,null!=e&&e.text?/* @__PURE__ */m(N,{className:"tab__badge ml-8",size:"small",type:"secondary",...e}):null]})};export{$ as TabItem};
1
+ import{jsxs as C,jsx as t}from"react/jsx-runtime";import{Badge as N}from"../Badge/Badge.js";import{noop as f}from"../../utils/helpers.js";import x from"classnames";const k=a=>{const{size:l="large",iconProps:s,badgeProps:e,label:o,className:n="",disabled:m=!1,isSelected:i,rightIconProps:c,val:r,onClick:d,dataTestId:p}=a;/* @__PURE__ */
2
+ return C("div",{"data-test-id":p,onClick:m?f:d,className:x("tab",{[`tab--${l}`]:l},{"tab--disabled":m},{"tab--selected":i},n),children:[null!=s&&s.Component?/* @__PURE__ */t(s.Component,{className:"tab__icon mr-8",size:""+("small"==l?"xsmall":"small"),...s}):null,
3
+ /* @__PURE__ */t("span",{className:"tab__label","data-test-id":p?`${p}-label`:"",children:o}),null!=c&&c.Component?/* @__PURE__ */t(c.Component,{onClick:a=>{null!=c&&c.action&&(a.stopPropagation(),null==c||c.action(r))},className:"tab__icon ml-8",size:""+("small"==l?"xsmall":"small"),...c}):null,null!=e&&e.text?/* @__PURE__ */t(N,{className:"tab__badge ml-8",size:"small",type:"secondary",...e}):null]})};export{k as TabItem};
@@ -1,8 +1,8 @@
1
+ import { IBaseProps, IFormCompProps } from '../../type';
1
2
  import { TBadgeProps } from '../Badge/types';
2
- export type TTabItem = {
3
+ export type TTabItem = IBaseProps & {
3
4
  value: number | string;
4
5
  label: string | React.ReactElement;
5
- dataId?: string;
6
6
  disabled?: boolean;
7
7
  badgeProps?: TBadgeProps;
8
8
  iconProps?: {
@@ -25,8 +25,7 @@ export interface TTabProps extends IFormCompProps {
25
25
  selectedValue: number | string;
26
26
  onSelect: (value: string | number) => void;
27
27
  }
28
- export type TTabItemProps = {
29
- dataId?: string;
28
+ export type TTabItemProps = IBaseProps & {
30
29
  label?: string | React.ReactElement;
31
30
  size?: 'large' | 'medium' | 'small';
32
31
  className?: string;
@@ -1,11 +1,12 @@
1
+ import { IBaseProps } from '../../type';
1
2
  import { ReactElement } from 'react';
2
3
  import { HeaderGroup } from 'react-table';
3
- type Props = {
4
+ type Props = IBaseProps & {
4
5
  fixedHeader?: boolean;
5
6
  withSelect: boolean;
6
7
  tableWidth: number;
7
8
  headerGroup: HeaderGroup;
8
9
  uniqueKey: string;
9
10
  };
10
- export declare function Header({ headerGroup, tableWidth, withSelect, uniqueKey, fixedHeader }: Props): ReactElement;
11
+ export declare function Header({ headerGroup, tableWidth, withSelect, uniqueKey, fixedHeader, dataTestId }: Props): ReactElement;
11
12
  export {};
@@ -1,2 +1,4 @@
1
- import{jsx as t,jsxs as z}from"react/jsx-runtime";import c from"classnames";import{CHECKBOX_DEFAULT_WIDTH as x,calcColumnWidth as T,CHECKBOX_HEADER_ID as j}from"./utils.js";import{Text as v}from"../Text/Text.js";import o from"../SVGIcons/IconArrowDown.js";import B from"../SVGIcons/IconArrowUp.js";function L({headerGroup:e,tableWidth:r,withSelect:s,uniqueKey:i,fixedHeader:l=!1}){const{key:a,...d}=e.getHeaderGroupProps();/* @__PURE__ */return t("tr",{...d,className:c({fixed_header:l}),children:e.headers.map(({id:e,minWidth:l,maxWidth:a,width:d,widthInPercent:m,getHeaderProps:n,fixed:h,columnProps:f,render:u,isSorted:p,isSortedDesc:_,getSortByToggleProps:b},g,w)=>{var H;const I=e===j,N={width:I?x:T(m,r),left:!I&&s&&"left"===h?x:0,...!I&&l?{minWidth:l}:{},...!I&&a?{maxWidth:a}:{},...!I&&d?{width:d}:{}},{key:W,...D}=n(null!=f&&f.sortable?b():void 0);/* @__PURE__ */return t("th",{...D,className:c({fixed_column_left:"left"===h,fixed_column_right:"right"===h,fixed_checkbox:I&&"left"===(null==(H=w[g+1])?void 0:H.fixed),pointer:null==f?void 0:f.sortable}),style:N,children:/* @__PURE__ */z("div",{className:"flexbox align-items--center",children:[
2
- /* @__PURE__ */t(v,{weight:"bold",className:"table-header-title",children:u("Header")}),p&&_&&/* @__PURE__ */t(o,{size:"xsmall",className:"ml-4"}),p&&!_&&/* @__PURE__ */t(B,{size:"xsmall",className:"ml-4"}),!p&&(null==f?void 0:f.sortable)&&/* @__PURE__ */t(o,{size:"xsmall",className:"ml-4 unsorted__icon"})]})},`table_head_${i}_${g}`)})})}export{L as Header};
1
+ import{jsx as t,jsxs as I}from"react/jsx-runtime";import o from"classnames";import{CHECKBOX_DEFAULT_WIDTH as n,calcColumnWidth as j,CHECKBOX_HEADER_ID as v}from"./utils.js";import{Text as B}from"../Text/Text.js";import b from"../SVGIcons/IconArrowDown.js";import G from"../SVGIcons/IconArrowUp.js";function R({headerGroup:e,tableWidth:r,withSelect:s,uniqueKey:a,fixedHeader:i=!1,dataTestId:l=""}){const{key:d,...m}=e.getHeaderGroupProps();/* @__PURE__ */
2
+ return t("tr",{...m,className:o({fixed_header:i}),children:e.headers.map(({id:e,minWidth:i,maxWidth:d,width:m,widthInPercent:c,getHeaderProps:h,fixed:x,columnProps:f,render:u,isSorted:p,isSortedDesc:_,getSortByToggleProps:g},w,H)=>{var N;const T=e===v,W={width:T?n:j(c,r),left:!T&&s&&"left"===x?n:0,...!T&&i?{minWidth:i}:{},...!T&&d?{maxWidth:d}:{},...!T&&m?{width:m}:{}},{key:D,...S}=h(null!=f&&f.sortable?g():void 0);/* @__PURE__ */
3
+ return t("th",{...S,"data-test-id":l?`${l}-header-${e??w}`:"",className:o({fixed_column_left:"left"===x,fixed_column_right:"right"===x,fixed_checkbox:T&&"left"===(null==(N=H[w+1])?void 0:N.fixed),pointer:null==f?void 0:f.sortable}),style:W,children:/* @__PURE__ */I("div",{className:"flexbox align-items--center",children:[
4
+ /* @__PURE__ */t(B,{weight:"bold",className:"table-header-title",children:u("Header")}),p&&_&&/* @__PURE__ */t(b,{size:"xsmall",className:"ml-4"}),p&&!_&&/* @__PURE__ */t(G,{size:"xsmall",className:"ml-4"}),!p&&(null==f?void 0:f.sortable)&&/* @__PURE__ */t(b,{size:"xsmall",className:"ml-4 unsorted__icon"})]})},`table_head_${a}_${w}`)})})}export{R as Header};
@@ -1,5 +1,6 @@
1
+ import { IBaseProps } from '../../type';
1
2
  import React from 'react';
2
- type IndeterminateCheckboxProps = {
3
+ export declare const IndeterminateCheckbox: React.ForwardRefExoticComponent<IBaseProps & {
3
4
  indeterminate: boolean;
4
5
  checked: boolean;
5
6
  disabled: boolean;
@@ -8,6 +9,4 @@ type IndeterminateCheckboxProps = {
8
9
  checked: boolean;
9
10
  };
10
11
  }) => void;
11
- };
12
- export declare const IndeterminateCheckbox: React.ForwardRefExoticComponent<IndeterminateCheckboxProps & React.RefAttributes<HTMLInputElement>>;
13
- export {};
12
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import{forwardRef as l,useRef as d,useEffect as m}from"react";import{Checkbox as h}from"../Checkbox/Checkbox.js";const i=l(({indeterminate:e,checked:t,onChange:r,disabled:a=!1},o)=>{const i=d(null),n=o||i;return m(()=>{n.current.indeterminate=e},[n,e]),/* @__PURE__ */s(h,{disabled:a,value:t,onClick:e=>{r({target:{checked:e}})},ref:n,stopPropagation:!0})});i.displayName="IndeterminateCheckbox";export{i as IndeterminateCheckbox};
1
+ import{jsx as l}from"react/jsx-runtime";import{forwardRef as d,useRef as m,useEffect as h}from"react";import{Checkbox as i}from"../Checkbox/Checkbox.js";const u=d(({indeterminate:e,checked:t,onChange:a,disabled:r=!1,dataTestId:o=""},s)=>{const d=m(null),n=s||d;return h(()=>{n.current.indeterminate=e},[n,e]),/* @__PURE__ */l(i,{disabled:r,value:t,onClick:e=>{a({target:{checked:e}})},ref:n,dataTestId:o,stopPropagation:!0})});u.displayName="IndeterminateCheckbox";export{u as IndeterminateCheckbox};
@@ -1,11 +1,12 @@
1
+ import { IBaseProps } from '../../type';
1
2
  import { ReactElement } from 'react';
2
3
  import { Row as RowType } from 'react-table';
3
- type Props = {
4
+ type Props = IBaseProps & {
4
5
  row: RowType;
5
6
  handleRowClick?: (row: any) => void;
6
7
  withSelect: boolean;
7
8
  selectedFlatRows: RowType[];
8
9
  uniqueKey: string;
9
10
  };
10
- export declare function Row({ row, selectedFlatRows, withSelect, uniqueKey, handleRowClick }: Props): ReactElement;
11
+ export declare function Row({ row, selectedFlatRows, withSelect, uniqueKey, handleRowClick, dataTestId }: Props): ReactElement;
11
12
  export {};
@@ -1 +1,3 @@
1
- import{jsx as x}from"react/jsx-runtime";import{useMemo as E}from"react";import l from"classnames";import{CHECKBOX_HEADER_ID as D,CHECKBOX_DEFAULT_WIDTH as H}from"./utils.js";function I({row:e,selectedFlatRows:o,withSelect:i,uniqueKey:t,handleRowClick:n}){const r=E(()=>o.find(l=>l.id===e.id),[o]),{key:s,...c}=e.getRowProps();/* @__PURE__ */return x("tr",{...c,className:l({selected:!!r}),onClick:()=>null==n?void 0:n(e.original),children:e.cells.map(({getCellProps:e,column:o,render:n},r,s)=>{var c;const d=o.id===D,{key:a,...f}=e();/* @__PURE__ */return x("td",{...f,style:{left:!d&&i&&"left"===(null==o?void 0:o.fixed)?H:0},className:l({fixed_column_left:"left"===(null==o?void 0:o.fixed),fixed_column_right:"right"===(null==o?void 0:o.fixed),fixed_checkbox:d&&"left"===(null==(c=s[r+1].column)?void 0:c.fixed)}),onClick:e=>{d&&e.stopPropagation(),f.onClick&&f.onClick(e)},children:n("Cell")},`table_cell_${t}_${r}`)})})}export{I as Row};
1
+ import{jsx as l}from"react/jsx-runtime";import{useMemo as E}from"react";import $ from"classnames";import{CHECKBOX_HEADER_ID as D,CHECKBOX_DEFAULT_WIDTH as H}from"./utils.js";function K({row:e,selectedFlatRows:i,withSelect:t,uniqueKey:o,handleRowClick:d,dataTestId:n=""}){const r=E(()=>i.find(l=>l.id===e.id),[i]),{key:s,...a}=e.getRowProps();/* @__PURE__ */
2
+ return l("tr",{...a,"data-test-id":n?`${n}-row-${e.index}`:"",className:$({selected:!!r}),onClick:()=>null==d?void 0:d(e.original),children:e.cells.map(({getCellProps:i,column:d,render:r},s,a)=>{var c;const f=d.id===D,{key:m,...u}=i();/* @__PURE__ */
3
+ return l("td",{...u,"data-test-id":n?`${n}-row-${e.index}-cell-${d.id??s}`:"",style:{left:!f&&t&&"left"===(null==d?void 0:d.fixed)?H:0},className:$({fixed_column_left:"left"===(null==d?void 0:d.fixed),fixed_column_right:"right"===(null==d?void 0:d.fixed),fixed_checkbox:f&&"left"===(null==(c=a[s+1].column)?void 0:c.fixed)}),onClick:e=>{f&&e.stopPropagation(),u.onClick&&u.onClick(e)},children:r("Cell")},`table_cell_${o}_${s}`)})})}export{K as Row};
@@ -1,3 +1,3 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { TTableProps } from './types';
3
- export declare function Table({ columns, data, onChange, fixedHeader, withSelect, handleRowClick, className, language, containerRefHandler, submitButtons }: TTableProps): ReactElement;
3
+ export declare function Table({ columns, data, onChange, fixedHeader, withSelect, handleRowClick, className, language, containerRefHandler, submitButtons, dataTestId }: TTableProps): ReactElement;
@@ -1,5 +1,6 @@
1
- import{jsxs as u,jsx as s}from"react/jsx-runtime";import{useRef as W,useState as $,useId as j,useMemo as D,useCallback as T,useEffect as _}from"react";import{useTable as q,useSortBy as B,useRowSelect as F}from"react-table";import{setSelectedRows as G}from"./utils.js";import{Row as J}from"./Row.js";import{Header as K}from"./Header.js";import M from"classnames";import{useDispatchEventOnScroll as V}from"../../hooks/useDispatchEventOnScroll.js";import{Button as v}from"../Button/Button.js";import{TABLE_LOCALIZATION as Z}from"./localization.js";import{setTranslationValue as Q}from"../../utils/helpers.js";import U from"../SVGIcons/IconCheckmark.js";import X from"../SVGIcons/IconDismiss.js";function fe({columns:e,data:t,onChange:r,fixedHeader:o,withSelect:a=!1,handleRowClick:l,className:n,language:i="en",containerRefHandler:c,submitButtons:m}){const d=W(null),[p,f]=$(400),h=j(),w=V(),b=D(()=>{const t=e=>"left"===e.fixed,s=e=>"right"===e.fixed;return e.sort((e,r)=>t(e)&&!t(r)?-1:!t(e)&&t(r)||s(e)&&!s(r)?1:!s(e)&&s(r)?-1:0),[...e]},[e]),{getTableProps:g,getTableBodyProps:S,selectedFlatRows:x,headerGroups:y,rows:R,prepareRow:C,toggleAllRowsSelected:k,state:I}=q({columns:b,data:t},B,F,e=>G(e,a)),L=T(()=>{var e;d.current&&f(null==(e=d.current)?void 0:e.offsetWidth)},[d.current]);_(()=>{null==r||r(I)},[JSON.stringify(I)]),_(()=>{var e;return window.addEventListener("resize",L),d.current&&f(null==(e=d.current)?void 0:e.offsetWidth),()=>{window.removeEventListener("resize",L)}},[d.current]);const z=T(()=>{k(!1)},[]);/* @__PURE__ */return u("div",{ref:c,children:[a&&x.length>0&&/* @__PURE__ */u("div",{className:"table-wrapper__selected-rows",children:[
2
- /* @__PURE__ */s(v,{buttonText:Q(Z[i].n_selected||"",x.length),onClick:z,type:"tertiary",size:"medium",iconProps:{alignment:"left",Component:X}}),null==m?void 0:m.map(({buttonText:e,isLoading:t,onClick:r,iconProps:o})=>/* @__PURE__ */s(v,{iconProps:o||{alignment:"left",Component:U},onClick:e=>{r(e,I,z)},buttonText:e||"Submit",type:"secondary",size:"medium",className:"mr-8",isLoading:t}))]}),
3
- /* @__PURE__ */s("div",{onScroll:w,className:M("table-wrapper scrollbar scrollbar--horizontal scrollbar--vertical",n,{"table-row-clickable":!!l}),style:{maxHeight:null==o?void 0:o.y},children:/* @__PURE__ */u("table",{...g(),ref:d,children:[
4
- /* @__PURE__ */s("thead",{children:y.map((e,t)=>/* @__PURE__ */s(K,{withSelect:a,fixedHeader:!!o,headerGroup:e,tableWidth:p,uniqueKey:h},`table_head_${h}_${t}`))}),
5
- /* @__PURE__ */s("tbody",{...S(),children:R.map(e=>(C(e),/* @__PURE__ */s(J,{handleRowClick:l,withSelect:a,selectedFlatRows:x,row:e,uniqueKey:h},`table_row_${h}_${e.id}`)))})]})})]})}export{fe as Table};
1
+ import{jsxs as b,jsx as s}from"react/jsx-runtime";import{useRef as D,useState as q,useId as B,useMemo as F,useCallback as v,useEffect as R}from"react";import{useTable as G,useSortBy as J,useRowSelect as K}from"react-table";import{setSelectedRows as M}from"./utils.js";import{Row as V}from"./Row.js";import{Header as Z}from"./Header.js";import I from"classnames";import{useDispatchEventOnScroll as Q}from"../../hooks/useDispatchEventOnScroll.js";import{Button as S}from"../Button/Button.js";import{TABLE_LOCALIZATION as U}from"./localization.js";import{setTranslationValue as X}from"../../utils/helpers.js";import Y from"../SVGIcons/IconCheckmark.js";import H from"../SVGIcons/IconDismiss.js";function ue({columns:e,data:t,onChange:r,fixedHeader:a,withSelect:o=!1,handleRowClick:l,className:n,language:i="en",containerRefHandler:c,submitButtons:d,dataTestId:m=""}){const u=D(null),[p,f]=q(400),h=B(),w=Q(),g=F(()=>{const t=e=>"left"===e.fixed,s=e=>"right"===e.fixed;return e.sort((e,r)=>t(e)&&!t(r)?-1:!t(e)&&t(r)||s(e)&&!s(r)?1:!s(e)&&s(r)?-1:0),[...e]},[e]),{getTableProps:T,getTableBodyProps:j,selectedFlatRows:x,headerGroups:y,rows:C,prepareRow:k,toggleAllRowsSelected:_,state:L}=G({columns:g,data:t},J,K,e=>M(e,o,m)),$=v(()=>{var e;u.current&&f(null==(e=u.current)?void 0:e.offsetWidth)},[u.current]);R(()=>{null==r||r(L)},[JSON.stringify(L)]),R(()=>{var e;return window.addEventListener("resize",$),u.current&&f(null==(e=u.current)?void 0:e.offsetWidth),()=>{window.removeEventListener("resize",$)}},[u.current]);const z=v(()=>{_(!1)},[]);/* @__PURE__ */
2
+ return b("div",{ref:c,"data-test-id":m,children:[o&&x.length>0&&/* @__PURE__ */b("div",{className:"table-wrapper__selected-rows",children:[
3
+ /* @__PURE__ */s(S,{buttonText:X(U[i].n_selected||"",x.length),onClick:z,type:"tertiary",size:"medium",iconProps:{alignment:"left",Component:H},dataTestId:m?`${m}-clear-selected`:""}),null==d?void 0:d.map(({buttonText:e,isLoading:t,onClick:r,iconProps:a},o)=>/* @__PURE__ */s(S,{iconProps:a||{alignment:"left",Component:Y},onClick:e=>{r(e,L,z)},buttonText:e||"Submit",type:"secondary",size:"medium",className:"mr-8",isLoading:t,dataTestId:m?`${m}-submit-${o}`:""}))]}),
4
+ /* @__PURE__ */s("div",{onScroll:w,className:I("table-wrapper scrollbar scrollbar--horizontal scrollbar--vertical",n,{"table-row-clickable":!!l}),style:{maxHeight:null==a?void 0:a.y},children:/* @__PURE__ */b("table",{...T(),ref:u,children:[
5
+ /* @__PURE__ */s("thead",{children:y.map((e,t)=>/* @__PURE__ */s(Z,{withSelect:o,fixedHeader:!!a,headerGroup:e,tableWidth:p,uniqueKey:h,dataTestId:m},`table_head_${h}_${t}`))}),
6
+ /* @__PURE__ */s("tbody",{...j(),children:C.map(e=>(k(e),/* @__PURE__ */s(V,{handleRowClick:l,withSelect:o,selectedFlatRows:x,row:e,uniqueKey:h,dataTestId:m},`table_row_${h}_${e.id}`)))})]})})]})}export{ue as Table};
@@ -1,3 +1,4 @@
1
+ import { IBaseProps } from '../../type';
1
2
  import { Column, TableState } from 'react-table';
2
3
  import { TButtonPropTypes } from '../Button/types';
3
4
  type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
@@ -15,7 +16,7 @@ export type TColumn = Column & TColumnFields;
15
16
  export interface IButtonPropTypes extends Omit<TButtonPropTypes, 'onClick'> {
16
17
  onClick: (event: TClickEventType, data: any, clearRowSelection?: () => void) => void;
17
18
  }
18
- export type TTableProps = {
19
+ export type TTableProps = IBaseProps & {
19
20
  className?: string;
20
21
  columns: TColumn[];
21
22
  data: any[];
@@ -1,5 +1,5 @@
1
1
  import { Hooks } from 'react-table';
2
2
  export declare const CHECKBOX_HEADER_ID = "selection";
3
3
  export declare const CHECKBOX_DEFAULT_WIDTH = 48;
4
- export declare function setSelectedRows(hooks: Hooks, withSelect: boolean): void;
4
+ export declare function setSelectedRows(hooks: Hooks, withSelect: boolean, dataTestId?: string): void;
5
5
  export declare function calcColumnWidth(percent: number, tableWidth: number): number;
@@ -1 +1,3 @@
1
- import{jsx as s}from"react/jsx-runtime";import{IndeterminateCheckbox as r}from"./IndeterminateCheckbox.js";const u="selection",S=48;function E(e,t){t&&e.visibleColumns.push(e=>[{id:u,Header:({getToggleAllRowsSelectedProps:e,rows:t,state:o,toggleRowSelected:n})=>{const i=t.filter(e=>!("enableSelection"in e.original)||e.original.enableSelection),l=i.every(e=>o.selectedRowIds[e.id]),c=i.some(e=>o.selectedRowIds[e.id]);/* @__PURE__ */return s(r,{...e({checked:l,indeterminate:!l&&c,disabled:0===i.length}),onChange:e=>{const t=e.target.checked;i.forEach(e=>{n(e.id,t)})}})},Cell:({row:e})=>{const t="enableSelection"in e.original&&!e.original.enableSelection;/* @__PURE__ */return s(r,{...e.getToggleRowSelectedProps({disabled:t})})}},...e])}function R(e,t){return e*t/100}export{S as CHECKBOX_DEFAULT_WIDTH,u as CHECKBOX_HEADER_ID,R as calcColumnWidth,E as setSelectedRows};
1
+ import{jsx as r}from"react/jsx-runtime";import{IndeterminateCheckbox as a}from"./IndeterminateCheckbox.js";const C="selection",E=48;function R(e,t,o=""){t&&e.visibleColumns.push(e=>[{id:C,Header:({getToggleAllRowsSelectedProps:e,rows:t,state:n,toggleRowSelected:l})=>{const i=t.filter(e=>!("enableSelection"in e.original)||e.original.enableSelection),s=i.every(e=>n.selectedRowIds[e.id]),c=i.some(e=>n.selectedRowIds[e.id]);/* @__PURE__ */
2
+ return r(a,{...e({checked:s,indeterminate:!s&&c,disabled:0===i.length}),dataTestId:o?`${o}-select-all`:"",onChange:e=>{const t=e.target.checked;i.forEach(e=>{l(e.id,t)})}})},Cell:({row:e})=>{const t="enableSelection"in e.original&&!e.original.enableSelection;/* @__PURE__ */
3
+ return r(a,{...e.getToggleRowSelectedProps({disabled:t}),dataTestId:o?`${o}-row-${e.index}-select`:""})}},...e])}function p(e,t){return e*t/100}export{E as CHECKBOX_DEFAULT_WIDTH,C as CHECKBOX_HEADER_ID,p as calcColumnWidth,R as setSelectedRows};
@@ -1,8 +1,9 @@
1
+ import { IBaseProps } from '../../type';
1
2
  import type { Table } from '@tanstack/react-table';
2
- interface PaginationProps<T> {
3
+ interface PaginationProps<T> extends IBaseProps {
3
4
  table: Table<T>;
4
5
  totalCount: number;
5
6
  buttonText?: string;
6
7
  }
7
- export declare function AdvancedPagination<TData>({ table, totalCount, buttonText }: PaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
8
+ export declare function AdvancedPagination<TData>({ table, totalCount, buttonText, dataTestId }: PaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -1,12 +1,12 @@
1
- import{jsxs as r,jsx as i}from"react/jsx-runtime";import{useState as v,useEffect as C}from"react";import{Input as x}from"../Input/Input.js";import{Button as N}from"../Button/Button.js";import{Select as _}from"../Select/Select/Select.js";import"../Select/MultiSelect/MultiSelect.js";import I from"classnames";import{Text as z}from"../Text/Text.js";import"../../consts/index.js";import"../../context/types.js";import"../../hooks/useScreenSize.js";import"react-hook-form";import"dayjs";import"../../helperComponents/ErrorMessage/consts.js";import"../FileUpload/DropzoneFileUpload/DropzoneFileUpload.js";import"react-dom";import"../Checkbox/Checkbox.js";import"motion/react";import S from"../SVGIcons/IconChevronRight.js";import"../Collapse/CollapseGroup/CollapseGroup.js";import m from"../SVGIcons/IconMore.js";import"../Select/SharedComponents/ContentTop.js";import{OPTIONS as k}from"./constants/index.js";import $ from"../SVGIcons/IconChevronLeft.js";import y from"../SVGIcons/IconChevronDoubleLeft.js";import T from"../SVGIcons/IconChevronDoubleRight.js";function oe({table:e,totalCount:t,buttonText:o}){const[a,n]=v("1"),s=e.getState().pagination.pageIndex,l=e.getState().pagination.pageSize;return C(()=>{e.getPageCount()<Number(a)&&n("1")},[e.getPageCount(),e.getState().pagination]),/* @__PURE__ */r("div",{className:"advanced-table__pagination",children:[
2
- /* @__PURE__ */i(_,{setSelectedItem:t=>(t=>{t&&e.setPagination({pageIndex:0,pageSize:Number(t)})})(t),selectedItem:`${l}`,className:"no-border",options:k}),
3
- /* @__PURE__ */r("div",{className:"advanced-table__pagination__right",children:[
4
- /* @__PURE__ */r(z,{type:"tertiary",children:[s*l+1," - ",(s+1)*l," / ",t]}),
5
- /* @__PURE__ */r("div",{className:"flexbox align-items--center",children:[
6
- /* @__PURE__ */i(x,{currentValue:a,size:"small",onChange:t=>(t=>{(!t||/^[1-9]\d*$/.test(t)&&e.getPageCount()>=Number(t))&&n(t)})(t.target.value),className:"advanced-table__pagination__right__input mr-8"}),
7
- /* @__PURE__ */i(N,{onClick:()=>{const t=a?Number(a)-1:0;e.setPageIndex(t)},type:"secondary",size:"medium",buttonText:o??"Go to page"})]}),
8
- /* @__PURE__ */r("ul",{className:"pagination",children:[
9
- /* @__PURE__ */i("li",{className:"previous "+(e.getCanPreviousPage()?"":"disabled"),children:/* @__PURE__ */i("a",{rel:"prev",role:"button",onClick:()=>e.firstPage(),children:/* @__PURE__ */i(y,{size:"small"})})}),
10
- /* @__PURE__ */i("li",{className:"previous "+(e.getCanPreviousPage()?"":"disabled"),children:/* @__PURE__ */i("a",{rel:"prev",role:"button",onClick:()=>e.previousPage(),children:/* @__PURE__ */i($,{size:"small"})})}),(()=>{const t=s,o=e.getPageCount(),i=[];return o<=7?Array.from({length:o},(e,t)=>t+1):(i.push(1),t<=3?i.push(2,3,4,5,"+++",o):t>o-5?i.push("---",o-4,o-3,o-2,o-1,o):i.push("---",t,t+1,t+2,"+++",o),i)})().map((t,o)=>"---"===t?/* @__PURE__ */i("li",{className:"pagination__more",children:/* @__PURE__ */i("a",{role:"button",onClick:()=>e.setPageIndex(+s-3),children:/* @__PURE__ */i(m,{size:"small"})})},`ellipsis-${o}`):"+++"===t?/* @__PURE__ */i("li",{className:"pagination__more",children:/* @__PURE__ */i("a",{role:"button",onClick:()=>e.setPageIndex(+s+3),children:/* @__PURE__ */i(m,{size:"small"})})},`ellipsis-${o}`):/* @__PURE__ */i("li",{className:I({active:t===s+1}),children:/* @__PURE__ */i("a",{role:"button",onClick:()=>e.setPageIndex(+t-1),children:t})},t)),
11
- /* @__PURE__ */i("li",{className:"next "+(e.getCanNextPage()?"":"disabled"),children:/* @__PURE__ */i("a",{rel:"next",role:"button",onClick:()=>e.nextPage(),children:/* @__PURE__ */i(S,{size:"small"})})}),
12
- /* @__PURE__ */i("li",{className:"next "+(e.getCanNextPage()?"":"disabled"),children:/* @__PURE__ */i("a",{rel:"next",role:"button",onClick:()=>e.lastPage(),children:/* @__PURE__ */i(T,{size:"small"})})})]})]})]})}export{oe as AdvancedPagination};
1
+ import{jsxs as a,jsx as o}from"react/jsx-runtime";import{useState as C,useEffect as x}from"react";import{Input as $}from"../Input/Input.js";import{Button as N}from"../Button/Button.js";import{Select as _}from"../Select/Select/Select.js";import"../Select/MultiSelect/MultiSelect.js";import z from"classnames";import{Text as S}from"../Text/Text.js";import"../../consts/index.js";import"../../context/types.js";import"../../hooks/useScreenSize.js";import"react-hook-form";import"dayjs";import"../../helperComponents/ErrorMessage/consts.js";import"../FileUpload/DropzoneFileUpload/DropzoneFileUpload.js";import"react-dom";import"../Checkbox/Checkbox.js";import"motion/react";import k from"../SVGIcons/IconChevronRight.js";import"../Collapse/CollapseGroup/CollapseGroup.js";import g from"../SVGIcons/IconMore.js";import"../Select/SharedComponents/ContentTop.js";import{OPTIONS as y}from"./constants/index.js";import R from"../SVGIcons/IconChevronLeft.js";import j from"../SVGIcons/IconChevronDoubleLeft.js";import A from"../SVGIcons/IconChevronDoubleRight.js";function te({table:e,totalCount:t,buttonText:s,dataTestId:i=""}){const[n,r]=C("1"),l=e.getState().pagination.pageIndex,c=e.getState().pagination.pageSize;return x(()=>{e.getPageCount()<Number(n)&&r("1")},[e.getPageCount(),e.getState().pagination]),/* @__PURE__ */a("div",{className:"advanced-table__pagination","data-test-id":i,children:[
2
+ /* @__PURE__ */o(_,{setSelectedItem:t=>(t=>{t&&e.setPagination({pageIndex:0,pageSize:Number(t)})})(t),selectedItem:`${c}`,className:"no-border",options:y,dataTestId:i?`${i}-page-size`:""}),
3
+ /* @__PURE__ */a("div",{className:"advanced-table__pagination__right",children:[
4
+ /* @__PURE__ */a(S,{type:"tertiary",children:[l*c+1," - ",(l+1)*c," / ",t]}),
5
+ /* @__PURE__ */a("div",{className:"flexbox align-items--center",children:[
6
+ /* @__PURE__ */o($,{currentValue:n,size:"small",onChange:t=>(t=>{(!t||/^[1-9]\d*$/.test(t)&&e.getPageCount()>=Number(t))&&r(t)})(t.target.value),className:"advanced-table__pagination__right__input mr-8",dataTestId:i?`${i}-page-input`:""}),
7
+ /* @__PURE__ */o(N,{onClick:()=>{const t=n?Number(n)-1:0;e.setPageIndex(t)},type:"secondary",size:"medium",buttonText:s??"Go to page",dataTestId:i?`${i}-goto`:""})]}),
8
+ /* @__PURE__ */a("ul",{className:"pagination","data-test-id":i?`${i}-pagination`:"",children:[
9
+ /* @__PURE__ */o("li",{className:"previous "+(e.getCanPreviousPage()?"":"disabled"),children:/* @__PURE__ */o("a",{rel:"prev",role:"button",onClick:()=>e.firstPage(),"data-test-id":i?`${i}-first`:"",children:/* @__PURE__ */o(j,{size:"small"})})}),
10
+ /* @__PURE__ */o("li",{className:"previous "+(e.getCanPreviousPage()?"":"disabled"),children:/* @__PURE__ */o("a",{rel:"prev",role:"button",onClick:()=>e.previousPage(),"data-test-id":i?`${i}-prev`:"",children:/* @__PURE__ */o(R,{size:"small"})})}),(()=>{const t=l,a=e.getPageCount(),o=[];return a<=7?Array.from({length:a},(e,t)=>t+1):(o.push(1),t<=3?o.push(2,3,4,5,"+++",a):t>a-5?o.push("---",a-4,a-3,a-2,a-1,a):o.push("---",t,t+1,t+2,"+++",a),o)})().map((t,a)=>"---"===t?/* @__PURE__ */o("li",{className:"pagination__more",children:/* @__PURE__ */o("a",{role:"button",onClick:()=>e.setPageIndex(+l-3),"data-test-id":i?`${i}-ellipsis-prev`:"",children:/* @__PURE__ */o(g,{size:"small"})})},`ellipsis-${a}`):"+++"===t?/* @__PURE__ */o("li",{className:"pagination__more",children:/* @__PURE__ */o("a",{role:"button",onClick:()=>e.setPageIndex(+l+3),"data-test-id":i?`${i}-ellipsis-next`:"",children:/* @__PURE__ */o(g,{size:"small"})})},`ellipsis-${a}`):/* @__PURE__ */o("li",{className:z({active:t===l+1}),children:/* @__PURE__ */o("a",{role:"button",onClick:()=>e.setPageIndex(+t-1),"data-test-id":i?`${i}-page-${t}`:"",children:t})},t)),
11
+ /* @__PURE__ */o("li",{className:"next "+(e.getCanNextPage()?"":"disabled"),children:/* @__PURE__ */o("a",{rel:"next",role:"button",onClick:()=>e.nextPage(),"data-test-id":i?`${i}-next`:"",children:/* @__PURE__ */o(k,{size:"small"})})}),
12
+ /* @__PURE__ */o("li",{className:"next "+(e.getCanNextPage()?"":"disabled"),children:/* @__PURE__ */o("a",{rel:"next",role:"button",onClick:()=>e.lastPage(),"data-test-id":i?`${i}-last`:"",children:/* @__PURE__ */o(A,{size:"small"})})})]})]})]})}export{te as AdvancedPagination};
@@ -1,9 +1,10 @@
1
+ import { IBaseProps } from '../../type';
1
2
  import type { CSSProperties } from 'react';
2
3
  import type { Header } from '@tanstack/react-table';
3
- interface DraggableColumnHeaderProps<TData> {
4
+ interface DraggableColumnHeaderProps<TData> extends IBaseProps {
4
5
  header: Header<TData, unknown>;
5
6
  isPinned?: boolean;
6
7
  pinnedStyles: CSSProperties;
7
8
  }
8
- export declare function ColumnHeader<TData>({ header, pinnedStyles }: DraggableColumnHeaderProps<TData>): import("react/jsx-runtime").JSX.Element;
9
+ export declare function ColumnHeader<TData>({ header, pinnedStyles, dataTestId }: DraggableColumnHeaderProps<TData>): import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -1,5 +1,6 @@
1
- import{jsxs as i,jsx as t}from"react/jsx-runtime";import{flexRender as g}from"@tanstack/react-table";import{useSortable as u}from"@dnd-kit/sortable";import x from"../SVGIcons/IconArrowDown.js";import f from"../SVGIcons/IconArrowSort.js";import d from"../SVGIcons/IconArrowUp.js";import{Text as p}from"../Text/Text.js";import z from"classnames";function H({header:e,pinnedStyles:o}){const{attributes:n,listeners:s,setNodeRef:r,transform:a,transition:l,isDragging:c}=u({id:e.id}),m=a?{transform:`translate3d(${a.x}px, ${a.y}px, 0)`,transition:l,minWidth:e.getSize(),position:"relative",zIndex:c?1:0}:{minWidth:e.getSize(),position:"relative",zIndex:c?1:0};/* @__PURE__ */return i("th",{ref:r,style:{...m,...o},className:z("select-none",{"with-checkbox":"select"===e.column.id,"actions-header":"actions"===e.column.id,"cursor-pointer":e.column.getCanSort()}),...n,children:[
2
- /* @__PURE__ */i("div",{onClick:e.column.getToggleSortingHandler(),className:"flexbox align-items--center",children:[
3
- /* @__PURE__ */t("div",{...s,children:/* @__PURE__ */t(p,{className:"text-left",weight:"bold",children:g(e.column.columnDef.header,e.getContext())})}),
4
- /* @__PURE__ */t("span",{className:"ml-4",children:e.column.getCanSort()&&("asc"===e.column.getIsSorted()?/* @__PURE__ */t(d,{size:"xsmall"}):"desc"===e.column.getIsSorted()?/* @__PURE__ */t(x,{size:"xsmall"}):/* @__PURE__ */t(f,{size:"xsmall"}))})]}),
5
- /* @__PURE__ */t("div",{onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:"resize-icon select-none touch-none"})]})}export{H as ColumnHeader};
1
+ import{jsxs as s,jsx as t}from"react/jsx-runtime";import{flexRender as g}from"@tanstack/react-table";import{useSortable as x}from"@dnd-kit/sortable";import f from"../SVGIcons/IconArrowDown.js";import p from"../SVGIcons/IconArrowSort.js";import d from"../SVGIcons/IconArrowUp.js";import{Text as z}from"../Text/Text.js";import S from"classnames";function I({header:e,pinnedStyles:o,dataTestId:n=""}){const{attributes:r,listeners:i,setNodeRef:a,transform:l,transition:c,isDragging:m}=x({id:e.id}),u=l?{transform:`translate3d(${l.x}px, ${l.y}px, 0)`,transition:c,minWidth:e.getSize(),position:"relative",zIndex:m?1:0}:{minWidth:e.getSize(),position:"relative",zIndex:m?1:0};/* @__PURE__ */
2
+ return s("th",{ref:a,"data-test-id":n?`${n}-header-${e.column.id}`:"",style:{...u,...o},className:S("select-none",{"with-checkbox":"select"===e.column.id,"actions-header":"actions"===e.column.id,"cursor-pointer":e.column.getCanSort()}),...r,children:[
3
+ /* @__PURE__ */s("div",{onClick:e.column.getToggleSortingHandler(),"data-test-id":n?`${n}-sort-${e.column.id}`:"",className:"flexbox align-items--center",children:[
4
+ /* @__PURE__ */t("div",{...i,children:/* @__PURE__ */t(z,{className:"text-left",weight:"bold",children:g(e.column.columnDef.header,e.getContext())})}),
5
+ /* @__PURE__ */t("span",{className:"ml-4",children:e.column.getCanSort()&&("asc"===e.column.getIsSorted()?/* @__PURE__ */t(d,{size:"xsmall"}):"desc"===e.column.getIsSorted()?/* @__PURE__ */t(f,{size:"xsmall"}):/* @__PURE__ */t(p,{size:"xsmall"}))})]}),
6
+ /* @__PURE__ */t("div",{onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:"resize-icon select-none touch-none"})]})}export{I as ColumnHeader};
@@ -1,6 +1,8 @@
1
- import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useState as d}from"react";import{Button as h}from"../Button/Button.js";import _ from"../SVGIcons/IconSettings.js";import{Switcher as a}from"../Switcher/Switcher.js";import{Menu as b}from"../Menu/Menu.js";import"react-dom";import{Positions as v}from"../Tooltip/types.js";import"../../consts/index.js";import"../../context/types.js";import"../../hooks/useScreenSize.js";import"react-hook-form";import"classnames";import"motion/react";import"dayjs";import"../Collapse/CollapseGroup/CollapseGroup.js";import"../../helperComponents/ErrorMessage/consts.js";import"../FileUpload/DropzoneFileUpload/DropzoneFileUpload.js";import{Tooltip as y}from"../Tooltip/Tooltip.js";import"../Checkbox/Checkbox.js";const N=["select","actions","expand"];function q({table:e,tooltipText:o,hiddenColumns:t=[],allToggleText:s="All"}){const[l,r]=d(null),[c,m]=d(!1),p=N.concat(t);/* @__PURE__ */return n("div",{ref:r,children:[
1
+ import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useState as d}from"react";import{Button as h}from"../Button/Button.js";import _ from"../SVGIcons/IconSettings.js";import{Switcher as a}from"../Switcher/Switcher.js";import{Menu as b}from"../Menu/Menu.js";import"react-dom";import{Positions as v}from"../Tooltip/types.js";import"../../consts/index.js";import"../../context/types.js";import"../../hooks/useScreenSize.js";import"react-hook-form";import"classnames";import"motion/react";import"dayjs";import"../Collapse/CollapseGroup/CollapseGroup.js";import"../../helperComponents/ErrorMessage/consts.js";import"../FileUpload/DropzoneFileUpload/DropzoneFileUpload.js";import{Tooltip as y}from"../Tooltip/Tooltip.js";import"../Checkbox/Checkbox.js";const N=["select","actions","expand"];function q({table:e,tooltipText:o,hiddenColumns:t=[],allToggleText:s="All"}){const[l,r]=d(null),[c,m]=d(!1),p=N.concat(t);/* @__PURE__ */
2
+ return n("div",{ref:r,children:[
2
3
  /* @__PURE__ */i(h,{type:"secondary",iconProps:{Component:_},onClick:()=>m(e=>!e)}),
3
4
  /* @__PURE__ */i(b,{className:"settings-menu",position:"top-left",onClose:()=>{m(!1)},isOpen:c,parentRef:l,children:/* @__PURE__ */n("div",{className:"settings-menu__dropdown",children:[
4
5
  /* @__PURE__ */i("div",{className:"relative",children:/* @__PURE__ */i("div",{className:"settings-menu__dropdown__option sticky",children:/* @__PURE__ */i(a,{label:s,selectedValue:e.getIsAllColumnsVisible(),onClick:()=>e.toggleAllColumnsVisible(),inlineType:!0,size:"small"})})}),
5
- /* @__PURE__ */i("div",{className:"scrollbar--content scrollbar scrollbar--vertical",children:e.getAllLeafColumns().map(e=>{if(null==p||!p.includes(e.id)){const t="string"==typeof e.columnDef.header?e.columnDef.header:e.columnDef.id;/* @__PURE__ */return n("div",{className:"settings-menu__dropdown__option",children:[o&&!e.getCanHide()&&/* @__PURE__ */i(y,{position:v.TOP_CENTER,text:o,id:e.columnDef.id}),
6
+ /* @__PURE__ */i("div",{className:"scrollbar--content scrollbar scrollbar--vertical",children:e.getAllLeafColumns().map(e=>{if(null==p||!p.includes(e.id)){const t="string"==typeof e.columnDef.header?e.columnDef.header:e.columnDef.id;/* @__PURE__ */
7
+ return n("div",{className:"settings-menu__dropdown__option",children:[o&&!e.getCanHide()&&/* @__PURE__ */i(y,{position:v.TOP_CENTER,text:o,id:e.columnDef.id}),
6
8
  /* @__PURE__ */i(a,{label:t,id:e.columnDef.id,selectedValue:e.getIsVisible(),onClick:()=>(e=>{const o=e.getToggleVisibilityHandler();o&&o({target:{checked:!e.getIsVisible()}})})(e),disabled:!e.getCanHide(),inlineType:!0,size:"small"})]},e.id)}})})]})})]})}export{q as ColumnSettings};
@@ -1,5 +1,6 @@
1
+ import { IBaseProps } from '../../type';
1
2
  import React from 'react';
2
- type IndeterminateCheckboxProps = {
3
+ export declare const IndeterminateCheckbox: React.ForwardRefExoticComponent<IBaseProps & {
3
4
  indeterminate: boolean;
4
5
  checked: boolean;
5
6
  onChange: (e: {
@@ -8,6 +9,4 @@ type IndeterminateCheckboxProps = {
8
9
  };
9
10
  }) => void;
10
11
  disabled?: boolean;
11
- };
12
- export declare const IndeterminateCheckbox: React.ForwardRefExoticComponent<IndeterminateCheckboxProps & React.RefAttributes<HTMLInputElement>>;
13
- export {};
12
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -1,2 +1,2 @@
1
- import{jsx as c}from"react/jsx-runtime";import{forwardRef as m,useRef as f,useEffect as d}from"react";import{Checkbox as h}from"../Checkbox/Checkbox.js";import u from"classnames";const x=m(({indeterminate:e,checked:a,onChange:t,disabled:s},r)=>{const o=f(null),i=r??o;/* @__PURE__ */
2
- return d(()=>{i.current.indeterminate=e},[i,e]),c("div",{className:"actions-list",children:/* @__PURE__ */c(h,{className:u("actions-list__checkbox",{"active-checkbox":a}),value:a,disabled:s,onClick:e=>{t({target:{checked:e}})},ref:i})})});x.displayName="IndeterminateCheckbox";export{x as IndeterminateCheckbox};
1
+ import{jsx as c}from"react/jsx-runtime";import{forwardRef as f,useRef as d,useEffect as h}from"react";import{Checkbox as u}from"../Checkbox/Checkbox.js";import x from"classnames";const k=f(({indeterminate:e,checked:a,onChange:t,disabled:s,dataTestId:r=""},o)=>{const i=d(null),n=o??i;h(()=>{n.current.indeterminate=e},[n,e]);/* @__PURE__ */
2
+ return c("div",{className:"actions-list",children:/* @__PURE__ */c(u,{className:x("actions-list__checkbox",{"active-checkbox":a}),value:a,disabled:s,onClick:e=>{t({target:{checked:e}})},ref:n,dataTestId:r})})});k.displayName="IndeterminateCheckbox";export{k as IndeterminateCheckbox};
@@ -1,3 +1,3 @@
1
1
  import type { TTableProps } from './types';
2
2
  import 'react-loading-skeleton/dist/skeleton.css';
3
- export declare function Table<TData>({ data, columns, isLoading, hasError, isActionsVisible, totalCount, emptyTitle, emptySubTitle, emptyIllustration, withSelect, withBorder, defaultPageIndex, defaultPageSize, defaultHiddenColumns, collapsibleRows, renderExpandedContent, renderHeader, renderFooter, onSortChange, onRowClick, tableSettings, onRowSelection, onColumnSizing, onPaginationChange }: TTableProps<TData>): import("react/jsx-runtime").JSX.Element;
3
+ export declare function Table<TData>({ data, dataTestId, columns, isLoading, hasError, isActionsVisible, totalCount, emptyTitle, emptySubTitle, emptyIllustration, withSelect, withBorder, defaultPageIndex, defaultPageSize, defaultHiddenColumns, collapsibleRows, renderExpandedContent, renderHeader, renderFooter, onSortChange, onRowClick, tableSettings, onRowSelection, onColumnSizing, onPaginationChange }: TTableProps<TData>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,8 @@
1
- import{jsx as t,jsxs as h,Fragment as Q}from"react/jsx-runtime";import X,{useState as Y,useCallback as Z,useMemo as C}from"react";import{flexRender as y}from"@tanstack/react-table";import{DndContext as F,closestCenter as G,DragOverlay as ee}from"@dnd-kit/core";import{SortableContext as ne,horizontalListSortingStrategy as te}from"@dnd-kit/sortable";import{ColumnHeader as ie}from"./ColumnHeader.js";import le from"react-loading-skeleton";import{useTableControl as oe}from"./hooks/useTableControl.js";import{Text as ae}from"../Text/Text.js";import o from"classnames";import{Empty as se}from"../Empty/Empty.js";import{Button as re}from"../Button/Button.js";import ce from"../SVGIcons/IconChevronDown.js";import de from"../SVGIcons/IconChevronUp.js";import"react-loading-skeleton/dist/skeleton.css";const me=({row:e,expandedRows:n,onToggle:a})=>{var l,i,r;return(null==(l=e.original)?void 0:l.subRows)&&(null==(r=null==(i=e.original)?void 0:i.subRows)?void 0:r.length)>0?/* @__PURE__ */t(re,{type:"tertiary",size:"medium",className:o("advanced-table__expand-button"),iconProps:{Component:n.has(e.id)?de:ce},onClick:t=>{t.stopPropagation(),a(e.id)}}):null};function _e({data:e,columns:n,isLoading:a,hasError:l,isActionsVisible:i=!1,totalCount:r=0,emptyTitle:d,emptySubTitle:s,emptyIllustration:c,withSelect:m=!1,withBorder:g=!0,defaultPageIndex:u,defaultPageSize:p,defaultHiddenColumns:b,collapsibleRows:S=!1,renderExpandedContent:x,renderHeader:f,renderFooter:w,onSortChange:v,onRowClick:z,tableSettings:k,onRowSelection:D,onColumnSizing:I,onPaginationChange:P}){const[_,R]=Y(/* @__PURE__ */new Set),T=Z(e=>{R(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),j=C(()=>({id:"expand",accessorKey:"expand",header:()=>/* @__PURE__ */t("span",{style:{display:"none"},children:"Expand"}),size:50,minSize:50,maxSize:50,cell:({row:e})=>/* @__PURE__ */t(me,{row:e,expandedRows:_,onToggle:T}),meta:{enableHiding:!1,enableColumnDragging:!1,enablePinning:!0,enableResizing:!1,headerVisible:!1,enableSorting:!1}}),[_,T]),{table:N,sensors:E,handleDragStart:H,handleDragEnd:V,handleDragCancel:A,activeHeader:B}=oe({data:e,tableSettings:k,columns:S?[j,...n]:n,withSelect:m,totalCount:r,defaultPageIndex:u,defaultPageSize:p,defaultHiddenColumns:b,onSortChange:v,onRowSelection:D,onColumnSizing:I,onPaginationChange:P}),M=null==f?void 0:f(N),$=null==w?void 0:w(N),L=e=>{const t=e.getIsPinned();return{left:"left"===t?`${e.getStart("left")}px`:void 0,right:"right"===t?`${e.getAfter("right")}px`:void 0,position:t?"sticky":"relative",backgroundColor:t?"white":void 0,minWidth:e.getSize(),zIndex:t?1:0}},W=C(()=>({minWidth:null!=e&&e.length?N.getCenterTotalSize():void 0}),[null==e?void 0:e.length,N]),K=C(()=>Array.from({length:N.getState().pagination.pageSize}),[N.getState().pagination.pageSize]);/* @__PURE__ */return h("div",{className:o("advanced-table",{"with-border":g}),children:[M,
2
- /* @__PURE__ */t("div",{className:o("advanced-table__inner scrollbar scrollbar--horizontal scrollbar--vertical"),children:/* @__PURE__ */h(F,{sensors:E,collisionDetection:G,onDragStart:H,onDragEnd:V,onDragCancel:A,children:[
3
- /* @__PURE__ */t("div",{children:/* @__PURE__ */t("table",{style:W,children:a||null!=e&&e.length&&!l?/* @__PURE__ */h(Q,{children:[
4
- /* @__PURE__ */t("thead",{className:o("advanced-table__thead"),children:N.getHeaderGroups().map(e=>/* @__PURE__ */t("tr",{children:/* @__PURE__ */t(ne,{items:e.headers.map(e=>e.id),strategy:te,children:e.headers.map(e=>"actions"!==e.id||i?/* @__PURE__ */t(ie,{pinnedStyles:{...L(e.column)},header:e},e.id):null)})},e.id))}),
5
- /* @__PURE__ */t("tbody",{children:a?K.map((e,n)=>/* @__PURE__ */t("tr",{children:N.getVisibleFlatColumns().map(e=>/* @__PURE__ */t("td",{className:o({"with-checkbox":"select"===e.id,"pinned-cell":e.getIsPinned(),"action-column":"actions"===e.id&&!i}),style:{...L(e)},children:/* @__PURE__ */t(le,{})},e.id))},`skeleton-row-${n}`)):N.getRowModel().rows.map(e=>/* @__PURE__ */h(X.Fragment,{children:[
6
- /* @__PURE__ */t("tr",{className:o({selected:e.getIsSelected()}),children:e.getVisibleCells().map(n=>/* @__PURE__ */t("td",{className:o({"with-checkbox":"select"===n.column.id,"pinned-cell":n.column.getIsPinned(),"action-column":"actions"===n.column.id&&!i,"expand-column":"expand"===n.column.id}),id:n.id,onClick:()=>((e,t)=>{"actions"!==e.id&&"select"!==e.id&&z&&z(t)})(n.column,e),style:{...L(n.column)},children:"actions"!==n.column.id||i?y(n.column.columnDef.cell,n.getContext()):/* @__PURE__ */t("div",{className:o("actions-list__right"),children:y(n.column.columnDef.cell,n.getContext())})},n.id))}),S&&_.has(e.id)&&x&&/* @__PURE__ */t("tr",{className:o("advanced-table__expanded-row"),children:/* @__PURE__ */t("td",{colSpan:e.getVisibleCells().length,children:x(e)})})]},e.id))})]}):/* @__PURE__ */t(se,{mainMessage:d,paragraphMessage:s,illustration:c})})}),
7
- /* @__PURE__ */t(ee,{dropAnimation:null,children:B&&/* @__PURE__ */t("table",{style:{width:B.getSize()},children:/* @__PURE__ */t("thead",{children:/* @__PURE__ */t("tr",{children:/* @__PURE__ */t("th",{className:o("draggable-col"),style:{width:B.getSize()},children:/* @__PURE__ */t(ae,{weight:"bold",children:y(B.column.columnDef.header,B.getContext())})})})})})})]})}),!!e.length&&!l&&$]})}export{_e as Table};
1
+ import{jsx as t,jsxs as p,Fragment as Z}from"react/jsx-runtime";import F,{useState as G,useCallback as T,useMemo as y}from"react";import{flexRender as v}from"@tanstack/react-table";import{DndContext as I,closestCenter as ee,DragOverlay as ne}from"@dnd-kit/core";import{SortableContext as te,horizontalListSortingStrategy as ie}from"@dnd-kit/sortable";import{ColumnHeader as le}from"./ColumnHeader.js";import oe from"react-loading-skeleton";import{useTableControl as ae}from"./hooks/useTableControl.js";import{Text as se}from"../Text/Text.js";import a from"classnames";import{Empty as re}from"../Empty/Empty.js";import{Button as ce}from"../Button/Button.js";import de from"../SVGIcons/IconChevronDown.js";import me from"../SVGIcons/IconChevronUp.js";import"react-loading-skeleton/dist/skeleton.css";const ge=({row:e,expandedRows:n,onToggle:l,dataTestId:o=""})=>{var i,d,r;return(null==(i=e.original)?void 0:i.subRows)&&(null==(r=null==(d=e.original)?void 0:d.subRows)?void 0:r.length)>0?/* @__PURE__ */t(ce,{type:"tertiary",size:"medium",className:a("advanced-table__expand-button"),iconProps:{Component:n.has(e.id)?me:de},dataTestId:o?`${o}-expand-${e.index}`:"",onClick:t=>{t.stopPropagation(),l(e.id)}}):null};function _e({data:e,dataTestId:n="",columns:l,isLoading:o,hasError:i,isActionsVisible:d=!1,totalCount:r=0,emptyTitle:s,emptySubTitle:c,emptyIllustration:m,withSelect:g=!1,withBorder:h=!0,defaultPageIndex:u,defaultPageSize:b,defaultHiddenColumns:S,collapsibleRows:x=!1,renderExpandedContent:C,renderHeader:w,renderFooter:f,onSortChange:z,onRowClick:k,tableSettings:$,onRowSelection:D,onColumnSizing:P,onPaginationChange:_}){const[R,j]=G(/* @__PURE__ */new Set),N=T(e=>{j(t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})},[]),E=y(()=>({id:"expand",accessorKey:"expand",header:()=>/* @__PURE__ */t("span",{style:{display:"none"},children:"Expand"}),size:50,minSize:50,maxSize:50,cell:({row:e})=>/* @__PURE__ */t(ge,{row:e,expandedRows:R,onToggle:N,dataTestId:n}),meta:{enableHiding:!1,enableColumnDragging:!1,enablePinning:!0,enableResizing:!1,headerVisible:!1,enableSorting:!1}}),[R,N,n]),{table:H,sensors:V,handleDragStart:A,handleDragEnd:B,handleDragCancel:M,activeHeader:L}=ae({data:e,dataTestId:n,tableSettings:$,columns:x?[E,...l]:l,withSelect:g,totalCount:r,defaultPageIndex:u,defaultPageSize:b,defaultHiddenColumns:S,onSortChange:z,onRowSelection:D,onColumnSizing:P,onPaginationChange:_}),W=null==w?void 0:w(H),K=null==f?void 0:f(H),O=e=>{const t=e.getIsPinned();return{left:"left"===t?`${e.getStart("left")}px`:void 0,right:"right"===t?`${e.getAfter("right")}px`:void 0,position:t?"sticky":"relative",backgroundColor:t?"white":void 0,minWidth:e.getSize(),zIndex:t?1:0}},U=y(()=>({minWidth:null!=e&&e.length?H.getCenterTotalSize():void 0}),[null==e?void 0:e.length,H]),q=y(()=>Array.from({length:H.getState().pagination.pageSize}),[H.getState().pagination.pageSize]);/* @__PURE__ */
2
+ return p("div",{"data-test-id":n,className:a("advanced-table",{"with-border":h}),children:[W,
3
+ /* @__PURE__ */t("div",{className:a("advanced-table__inner scrollbar scrollbar--horizontal scrollbar--vertical"),children:/* @__PURE__ */p(I,{sensors:V,collisionDetection:ee,onDragStart:A,onDragEnd:B,onDragCancel:M,children:[
4
+ /* @__PURE__ */t("div",{children:/* @__PURE__ */t("table",{style:U,children:o||null!=e&&e.length&&!i?/* @__PURE__ */p(Z,{children:[
5
+ /* @__PURE__ */t("thead",{className:a("advanced-table__thead"),children:H.getHeaderGroups().map(e=>/* @__PURE__ */t("tr",{children:/* @__PURE__ */t(te,{items:e.headers.map(e=>e.id),strategy:ie,children:e.headers.map(e=>"actions"!==e.id||d?/* @__PURE__ */t(le,{pinnedStyles:{...O(e.column)},header:e,dataTestId:n},e.id):null)})},e.id))}),
6
+ /* @__PURE__ */t("tbody",{children:o?q.map((e,l)=>/* @__PURE__ */t("tr",{"data-test-id":n?`${n}-loader-row-${l}`:"",children:H.getVisibleFlatColumns().map(e=>/* @__PURE__ */t("td",{className:a({"with-checkbox":"select"===e.id,"pinned-cell":e.getIsPinned(),"action-column":"actions"===e.id&&!d}),style:{...O(e)},children:/* @__PURE__ */t(oe,{})},e.id))},`skeleton-row-${l}`)):H.getRowModel().rows.map(e=>/* @__PURE__ */p(F.Fragment,{children:[
7
+ /* @__PURE__ */t("tr",{className:a({selected:e.getIsSelected()}),"data-test-id":n?`${n}-row-${e.index}`:"",children:e.getVisibleCells().map(l=>/* @__PURE__ */t("td",{className:a({"with-checkbox":"select"===l.column.id,"pinned-cell":l.column.getIsPinned(),"action-column":"actions"===l.column.id&&!d,"expand-column":"expand"===l.column.id}),id:l.id,"data-test-id":n?`${n}-row-${e.index}-cell-${l.column.id}`:"",onClick:()=>((e,t)=>{"actions"!==e.id&&"select"!==e.id&&k&&k(t)})(l.column,e),style:{...O(l.column)},children:"actions"!==l.column.id||d?v(l.column.columnDef.cell,l.getContext()):/* @__PURE__ */t("div",{className:a("actions-list__right"),children:v(l.column.columnDef.cell,l.getContext())})},l.id))}),x&&R.has(e.id)&&C&&/* @__PURE__ */t("tr",{className:a("advanced-table__expanded-row"),"data-test-id":n?`${n}-row-${e.index}-expanded`:"",children:/* @__PURE__ */t("td",{colSpan:e.getVisibleCells().length,children:C(e)})})]},e.id))})]}):/* @__PURE__ */t(re,{mainMessage:s,paragraphMessage:c,illustration:m,dataTestId:n?`${n}-empty`:""})})}),
8
+ /* @__PURE__ */t(ne,{dropAnimation:null,children:L&&/* @__PURE__ */t("table",{style:{width:L.getSize()},children:/* @__PURE__ */t("thead",{children:/* @__PURE__ */t("tr",{children:/* @__PURE__ */t("th",{className:a("draggable-col"),style:{width:L.getSize()},children:/* @__PURE__ */t(se,{weight:"bold",children:v(L.column.columnDef.header,L.getContext())})})})})})})]})}),!!e.length&&!i&&K]})}export{_e as Table};
@@ -1,6 +1,6 @@
1
1
  import type { DragEndEvent, DragStartEvent } from '@dnd-kit/core';
2
2
  import type { Column, TTableProps } from '../types';
3
- export declare function useTableControl<TData>({ withSelect, columns, data, tableSettings, totalCount, defaultPageSize, defaultPageIndex, defaultHiddenColumns, onSortChange, onRowSelection, onColumnSizing, onPaginationChange }: TTableProps<TData>): {
3
+ export declare function useTableControl<TData>({ withSelect, columns, data, dataTestId, tableSettings, totalCount, defaultPageSize, defaultPageIndex, defaultHiddenColumns, onSortChange, onRowSelection, onColumnSizing, onPaginationChange }: TTableProps<TData>): {
4
4
  table: import("@tanstack/react-table").Table<TData>;
5
5
  activeHeader: import("@tanstack/react-table").Header<TData, unknown> | null | undefined;
6
6
  sensors: import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
@@ -1 +1 @@
1
- import{jsx as A}from"react/jsx-runtime";import{useReactTable as se,getPaginationRowModel as te,getSortedRowModel as ce,getCoreRowModel as re}from"@tanstack/react-table";import{useSensors as le,useSensor as L,MouseSensor as de,TouchSensor as me}from"@dnd-kit/core";import{useState as t,useMemo as P,useEffect as ae}from"react";import{IndeterminateCheckbox as D}from"../IndeterminateCheckbox.js";import{arrayMove as ue}from"@dnd-kit/sortable";import{loadTableSettings as ge}from"../loadTableSettings.js";import{useTableColumnSettings as fe}from"./useTableColumnSettings.js";import{STORAGE_TYPE as N,TABLE_NAME_PREFIX as he}from"../constants/index.js";function Se({withSelect:e,columns:n,data:o,tableSettings:i,totalCount:l=0,defaultPageSize:a=10,defaultPageIndex:s=0,defaultHiddenColumns:r=[],onSortChange:d,onRowSelection:c,onColumnSizing:u,onPaginationChange:g}){var m;const S=(null==i?void 0:i.persistColumnSettings)===N.LOCAL,C=(null==i?void 0:i.persistColumnSettings)===N.EXTERNAL,f=`${he}-${null==i?void 0:i.tableName}`,b=S&&f?ge(f):{columnVisibility:{},columnSizing:{},columnOrder:[]},[h,p]=t(null),[R,v]=t([]),[w,y]=t({}),[z,M]=t(b.columnSizing??{}),[T,E]=t({...r.reduce((e,n)=>(e[n]=!1,e),{}),...b.columnVisibility}),[O,x]=t({pageIndex:s,pageSize:a}),I=P(()=>{const t=[...n].map(e=>"actions"===e.id?{...e,enableColumnDragging:!1,enableSorting:!1,enableResizing:!1,enableHiding:!1}:e);return e&&t.unshift({id:"select",enableHiding:!1,enableColumnDragging:!1,enablePinning:!0,header:({table:e})=>/* @__PURE__ */A(D,{checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler()}),cell:({row:e})=>/* @__PURE__ */A(D,{checked:e.getIsSelected(),disabled:!e.getCanSelect(),indeterminate:e.getIsSomeSelected(),onChange:e.getToggleSelectedHandler()})}),t},[n]),[k,H]=t(null!=(m=b.columnOrder)&&m.length&&b.columnOrder.length===I.length?b.columnOrder:I.map(e=>e.id)),j=k.map(e=>I.find(n=>n.id===e)),V=null==r?void 0:r.reduce((e,n)=>(e[n]=!1,e),{}),_=P(()=>{const e=[];return I.forEach(n=>{n.enablePinning&&n.id&&e.push(n.id)}),{left:e,right:["actions"]}},[I]),G=se({data:o,columns:j,pageCount:Math.ceil(l/O.pageSize),state:{sorting:R,pagination:O,columnOrder:k,columnSizing:z,rowSelection:w,columnVisibility:{...V,...T},columnPinning:_},onPaginationChange:e=>{const n="function"==typeof e?e(O):e;x(n),null==g||g(n)},onColumnSizingChange:e=>{const n="function"==typeof e?e(z):e;M(n),null==u||u(n)},onSortingChange:e=>{const n="function"==typeof e?e(R):e;v(n);const t=n.map(e=>({column:e.id??"",direction:e.desc?"desc":!!e.id&&"asc",timestamp:Date.now()}));null==d||d(t)},onRowSelectionChange:e=>{const n="function"==typeof e?e(w):e;y(n),null==c||c(n)},onColumnVisibilityChange:E,getCoreRowModel:re(),getSortedRowModel:ce(),getPaginationRowModel:te(),columnResizeMode:"onChange",manualSorting:!!d,manualPagination:!!g,enableRowSelection:!0,enableColumnResizing:!0,isMultiSortEvent:()=>!0});fe(G,f,S);const X=le(L(de,{activationConstraint:{distance:8}}),L(me,{activationConstraint:{delay:200,tolerance:5}})),$=h?G.getHeaderGroups()[0].headers.find(e=>e.id===h):null;return ae(()=>{var e;const n={columnVisibility:T,columnOrder:k,columnSizing:z};if(S&&i.tableName){const e=JSON.stringify(n);localStorage.setItem(f,e)}C&&(null==(e=null==i?void 0:i.onColumnSettingsChange)||e.call(i,n))},[T,k,z]),{table:G,activeHeader:$,sensors:X,memoizedColumns:I,handleDragCancel:()=>{p(null),document.body.classList.remove("select-none")},handleDragEnd:e=>{const{active:n,over:t}=e;if(t&&n.id!==t.id){const e=k.indexOf(n.id),o=k.indexOf(t.id),i=j[o];if(!1===(null==i?void 0:i.enableColumnDragging))return;const l=ue(k,e,o);H(l)}p(null),document.body.classList.remove("select-none")},handleDragStart:e=>{p(e.active.id),document.body.classList.add("select-none")}}}export{Se as useTableControl};
1
+ import{jsx as L}from"react/jsx-runtime";import{useReactTable as te,getPaginationRowModel as ce,getSortedRowModel as le,getCoreRowModel as re}from"@tanstack/react-table";import{useSensors as me,useSensor as P,MouseSensor as de,TouchSensor as ae}from"@dnd-kit/core";import{useState as t,useMemo as D,useEffect as ue}from"react";import{IndeterminateCheckbox as N}from"../IndeterminateCheckbox.js";import{arrayMove as ge}from"@dnd-kit/sortable";import{loadTableSettings as fe}from"../loadTableSettings.js";import{useTableColumnSettings as he}from"./useTableColumnSettings.js";import{STORAGE_TYPE as b,TABLE_NAME_PREFIX as Ce}from"../constants/index.js";function ze({withSelect:e,columns:n,data:o,dataTestId:i="",tableSettings:a,totalCount:l=0,defaultPageSize:s=10,defaultPageIndex:d=0,defaultHiddenColumns:r=[],onSortChange:c,onRowSelection:u,onColumnSizing:g,onPaginationChange:m}){var S;const C=(null==a?void 0:a.persistColumnSettings)===b.LOCAL,f=(null==a?void 0:a.persistColumnSettings)===b.EXTERNAL,h=`${Ce}-${null==a?void 0:a.tableName}`,p=C&&h?fe(h):{columnVisibility:{},columnSizing:{},columnOrder:[]},[R,v]=t(null),[w,T]=t([]),[y,z]=t({}),[I,M]=t(p.columnSizing??{}),[x,E]=t({...r.reduce((e,n)=>(e[n]=!1,e),{}),...p.columnVisibility}),[O,k]=t({pageIndex:d,pageSize:s}),A=D(()=>{const t=[...n].map(e=>"actions"===e.id?{...e,enableColumnDragging:!1,enableSorting:!1,enableResizing:!1,enableHiding:!1}:e);return e&&t.unshift({id:"select",enableHiding:!1,enableColumnDragging:!1,enablePinning:!0,header:({table:e})=>/* @__PURE__ */L(N,{checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler(),dataTestId:i?`${i}-select-all`:""}),cell:({row:e})=>/* @__PURE__ */L(N,{checked:e.getIsSelected(),disabled:!e.getCanSelect(),indeterminate:e.getIsSomeSelected(),onChange:e.getToggleSelectedHandler(),dataTestId:i?`${i}-row-${e.index}-select`:""})}),t},[n,i]),[H,j]=t(null!=(S=p.columnOrder)&&S.length&&p.columnOrder.length===A.length?p.columnOrder:A.map(e=>e.id)),V=H.map(e=>A.find(n=>n.id===e)),$=null==r?void 0:r.reduce((e,n)=>(e[n]=!1,e),{}),_=D(()=>{const e=[];return A.forEach(n=>{n.enablePinning&&n.id&&e.push(n.id)}),{left:e,right:["actions"]}},[A]),G=te({data:o,columns:V,pageCount:Math.ceil(l/O.pageSize),state:{sorting:w,pagination:O,columnOrder:H,columnSizing:I,rowSelection:y,columnVisibility:{...$,...x},columnPinning:_},onPaginationChange:e=>{const n="function"==typeof e?e(O):e;k(n),null==m||m(n)},onColumnSizingChange:e=>{const n="function"==typeof e?e(I):e;M(n),null==g||g(n)},onSortingChange:e=>{const n="function"==typeof e?e(w):e;T(n);const t=n.map(e=>({column:e.id??"",direction:e.desc?"desc":!!e.id&&"asc",timestamp:Date.now()}));null==c||c(t)},onRowSelectionChange:e=>{const n="function"==typeof e?e(y):e;z(n),null==u||u(n)},onColumnVisibilityChange:E,getCoreRowModel:re(),getSortedRowModel:le(),getPaginationRowModel:ce(),columnResizeMode:"onChange",manualSorting:!!c,manualPagination:!!m,enableRowSelection:!0,enableColumnResizing:!0,isMultiSortEvent:()=>!0});he(G,h,C);const X=me(P(de,{activationConstraint:{distance:8}}),P(ae,{activationConstraint:{delay:200,tolerance:5}})),B=R?G.getHeaderGroups()[0].headers.find(e=>e.id===R):null;return ue(()=>{var e;const n={columnVisibility:x,columnOrder:H,columnSizing:I};if(C&&a.tableName){const e=JSON.stringify(n);localStorage.setItem(h,e)}f&&(null==(e=null==a?void 0:a.onColumnSettingsChange)||e.call(a,n))},[x,H,I]),{table:G,activeHeader:B,sensors:X,memoizedColumns:A,handleDragCancel:()=>{v(null),document.body.classList.remove("select-none")},handleDragEnd:e=>{const{active:n,over:t}=e;if(t&&n.id!==t.id){const e=H.indexOf(n.id),o=H.indexOf(t.id),i=V[o];if(!1===(null==i?void 0:i.enableColumnDragging))return;const a=ge(H,e,o);j(a)}v(null),document.body.classList.remove("select-none")},handleDragStart:e=>{v(e.active.id),document.body.classList.add("select-none")}}}export{ze as useTableControl};