@coveord/plasma-mantine 54.0.2 → 54.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/.turbo/turbo-test.log +41 -41
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/cjs/components/action-icon/ActionIcon.d.ts +5 -5
  5. package/dist/cjs/components/action-icon/ActionIcon.d.ts.map +1 -1
  6. package/dist/cjs/components/action-icon/ActionIcon.js.map +1 -1
  7. package/dist/cjs/components/action-icon/index.js.map +1 -1
  8. package/dist/cjs/components/blank-slate/BlankSlate.js.map +1 -1
  9. package/dist/cjs/components/blank-slate/index.js.map +1 -1
  10. package/dist/cjs/components/browser-preview/BrowserPreview.d.ts.map +1 -1
  11. package/dist/cjs/components/browser-preview/BrowserPreview.js.map +1 -1
  12. package/dist/cjs/components/browser-preview/index.js.map +1 -1
  13. package/dist/cjs/components/button/Button.d.ts +5 -5
  14. package/dist/cjs/components/button/Button.d.ts.map +1 -1
  15. package/dist/cjs/components/button/Button.js.map +1 -1
  16. package/dist/cjs/components/button/ButtonWithDisabledTooltip.d.ts +2 -2
  17. package/dist/cjs/components/button/ButtonWithDisabledTooltip.js.map +1 -1
  18. package/dist/cjs/components/button/index.js.map +1 -1
  19. package/dist/cjs/components/code-editor/CodeEditor.js.map +1 -1
  20. package/dist/cjs/components/code-editor/index.js.map +1 -1
  21. package/dist/cjs/components/code-editor/languages/xml.js.map +1 -1
  22. package/dist/cjs/components/code-editor/search/Search.d.ts +0 -1
  23. package/dist/cjs/components/code-editor/search/Search.d.ts.map +1 -1
  24. package/dist/cjs/components/code-editor/search/Search.js.map +1 -1
  25. package/dist/cjs/components/code-editor/search/index.js.map +1 -1
  26. package/dist/cjs/components/collection/Collection.d.ts.map +1 -1
  27. package/dist/cjs/components/collection/Collection.js.map +1 -1
  28. package/dist/cjs/components/collection/CollectionContext.d.ts +2 -3
  29. package/dist/cjs/components/collection/CollectionContext.d.ts.map +1 -1
  30. package/dist/cjs/components/collection/CollectionContext.js.map +1 -1
  31. package/dist/cjs/components/collection/CollectionItem.js.map +1 -1
  32. package/dist/cjs/components/collection/enhanceWithCollectionProps.d.ts +1 -1
  33. package/dist/cjs/components/collection/enhanceWithCollectionProps.d.ts.map +1 -1
  34. package/dist/cjs/components/collection/enhanceWithCollectionProps.js.map +1 -1
  35. package/dist/cjs/components/collection/index.js.map +1 -1
  36. package/dist/cjs/components/copyToClipboard/CopyToClipboard.d.ts +0 -1
  37. package/dist/cjs/components/copyToClipboard/CopyToClipboard.d.ts.map +1 -1
  38. package/dist/cjs/components/copyToClipboard/CopyToClipboard.js.map +1 -1
  39. package/dist/cjs/components/copyToClipboard/index.js.map +1 -1
  40. package/dist/cjs/components/date-range-picker/DateRangePickerInlineCalendar.js.map +1 -1
  41. package/dist/cjs/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts.map +1 -1
  42. package/dist/cjs/components/date-range-picker/DateRangePickerPopoverCalendar.js.map +1 -1
  43. package/dist/cjs/components/date-range-picker/DateRangePickerPresetSelect.d.ts.map +1 -1
  44. package/dist/cjs/components/date-range-picker/DateRangePickerPresetSelect.js.map +1 -1
  45. package/dist/cjs/components/date-range-picker/EditableDateRangePicker.js.map +1 -1
  46. package/dist/cjs/components/date-range-picker/index.js.map +1 -1
  47. package/dist/cjs/components/header/Header.context.d.ts +2 -3
  48. package/dist/cjs/components/header/Header.context.d.ts.map +1 -1
  49. package/dist/cjs/components/header/Header.context.js.map +1 -1
  50. package/dist/cjs/components/header/Header.d.ts.map +1 -1
  51. package/dist/cjs/components/header/Header.js.map +1 -1
  52. package/dist/cjs/components/header/HeaderActions/HeaderActions.js.map +1 -1
  53. package/dist/cjs/components/header/HeaderBreadcrumbs/HeaderBreadcrumbs.js.map +1 -1
  54. package/dist/cjs/components/header/HeaderDocAnchor/HeaderDocAnchor.js.map +1 -1
  55. package/dist/cjs/components/header/index.js.map +1 -1
  56. package/dist/cjs/components/index.js.map +1 -1
  57. package/dist/cjs/components/inline-confirm/InlineConfirm.d.ts +1 -8
  58. package/dist/cjs/components/inline-confirm/InlineConfirm.d.ts.map +1 -1
  59. package/dist/cjs/components/inline-confirm/InlineConfirm.js.map +1 -1
  60. package/dist/cjs/components/inline-confirm/InlineConfirmContext.d.ts +2 -3
  61. package/dist/cjs/components/inline-confirm/InlineConfirmContext.d.ts.map +1 -1
  62. package/dist/cjs/components/inline-confirm/InlineConfirmContext.js.map +1 -1
  63. package/dist/cjs/components/inline-confirm/InlineConfirmPrompt.js.map +1 -1
  64. package/dist/cjs/components/inline-confirm/InlineConfirmTarget.d.ts +9 -24
  65. package/dist/cjs/components/inline-confirm/InlineConfirmTarget.d.ts.map +1 -1
  66. package/dist/cjs/components/inline-confirm/InlineConfirmTarget.js.map +1 -1
  67. package/dist/cjs/components/inline-confirm/index.js.map +1 -1
  68. package/dist/cjs/components/menu/Menu.d.ts +3 -4
  69. package/dist/cjs/components/menu/Menu.d.ts.map +1 -1
  70. package/dist/cjs/components/menu/Menu.js.map +1 -1
  71. package/dist/cjs/components/menu/index.js.map +1 -1
  72. package/dist/cjs/components/prompt/Prompt.js.map +1 -1
  73. package/dist/cjs/components/prompt/PromptFooter.js.map +1 -1
  74. package/dist/cjs/components/prompt/index.js.map +1 -1
  75. package/dist/cjs/components/sticky-footer/StickyFooter.js.map +1 -1
  76. package/dist/cjs/components/sticky-footer/index.js.map +1 -1
  77. package/dist/cjs/components/table/Table.d.ts +7 -7
  78. package/dist/cjs/components/table/Table.d.ts.map +1 -1
  79. package/dist/cjs/components/table/Table.js +0 -1
  80. package/dist/cjs/components/table/Table.js.map +1 -1
  81. package/dist/cjs/components/table/Table.module.css +1 -0
  82. package/dist/cjs/components/table/Table.types.js.map +1 -1
  83. package/dist/cjs/components/table/TableContext.d.ts.map +1 -1
  84. package/dist/cjs/components/table/TableContext.js.map +1 -1
  85. package/dist/cjs/components/table/index.js.map +1 -1
  86. package/dist/cjs/components/table/layouts/TableLayoutControl.js.map +1 -1
  87. package/dist/cjs/components/table/layouts/TableLayouts.js.map +1 -1
  88. package/dist/cjs/components/table/layouts/row-layout/RowLayout.js.map +1 -1
  89. package/dist/cjs/components/table/layouts/row-layout/RowLayoutBody.d.ts.map +1 -1
  90. package/dist/cjs/components/table/layouts/row-layout/RowLayoutBody.js.map +1 -1
  91. package/dist/cjs/components/table/layouts/row-layout/RowLayoutContext.d.ts +2 -3
  92. package/dist/cjs/components/table/layouts/row-layout/RowLayoutContext.d.ts.map +1 -1
  93. package/dist/cjs/components/table/layouts/row-layout/RowLayoutContext.js.map +1 -1
  94. package/dist/cjs/components/table/layouts/row-layout/RowLayoutHeader.d.ts.map +1 -1
  95. package/dist/cjs/components/table/layouts/row-layout/RowLayoutHeader.js.map +1 -1
  96. package/dist/cjs/components/table/layouts/row-layout/RowLayoutIcon.js.map +1 -1
  97. package/dist/cjs/components/table/table-actions/TableActionContext.d.ts +2 -3
  98. package/dist/cjs/components/table/table-actions/TableActionContext.d.ts.map +1 -1
  99. package/dist/cjs/components/table/table-actions/TableActionContext.js.map +1 -1
  100. package/dist/cjs/components/table/table-actions/TableActionItem.d.ts +5 -5
  101. package/dist/cjs/components/table/table-actions/TableActionItem.d.ts.map +1 -1
  102. package/dist/cjs/components/table/table-actions/TableActionItem.js.map +1 -1
  103. package/dist/cjs/components/table/table-actions/TableActionsList.d.ts +1 -1
  104. package/dist/cjs/components/table/table-actions/TableActionsList.d.ts.map +1 -1
  105. package/dist/cjs/components/table/table-actions/TableActionsList.js.map +1 -1
  106. package/dist/cjs/components/table/table-actions/TableHeaderActions.js.map +1 -1
  107. package/dist/cjs/components/table/table-actions/index.js.map +1 -1
  108. package/dist/cjs/components/table/table-column/TableActionsColumn.js.map +1 -1
  109. package/dist/cjs/components/table/table-column/TableCollapsibleColumn.js.map +1 -1
  110. package/dist/cjs/components/table/table-column/TableSelectableColumn.js.map +1 -1
  111. package/dist/cjs/components/table/table-columns-selector/TableColumnsSelector.js.map +1 -1
  112. package/dist/cjs/components/table/table-date-range-picker/TableDateRangePicker.js.map +1 -1
  113. package/dist/cjs/components/table/table-filter/TableFilter.js.map +1 -1
  114. package/dist/cjs/components/table/table-footer/TableFooter.js.map +1 -1
  115. package/dist/cjs/components/table/table-header/TableHeader.js.map +1 -1
  116. package/dist/cjs/components/table/table-header/Th.d.ts.map +1 -1
  117. package/dist/cjs/components/table/table-header/Th.js.map +1 -1
  118. package/dist/cjs/components/table/table-last-updated/TableLastUpdated.js.map +1 -1
  119. package/dist/cjs/components/table/table-loading/TableLoading.js.map +1 -1
  120. package/dist/cjs/components/table/table-no-data/TableNoData.js.map +1 -1
  121. package/dist/cjs/components/table/table-pagination/TablePagination.js.map +1 -1
  122. package/dist/cjs/components/table/table-pagination/TablePagination.types.js.map +1 -1
  123. package/dist/cjs/components/table/table-per-page/TablePerPage.js.map +1 -1
  124. package/dist/cjs/components/table/table-per-page/TablePerPage.types.js.map +1 -1
  125. package/dist/cjs/components/table/table-predicate/TablePredicate.js.map +1 -1
  126. package/dist/cjs/components/table/use-table.d.ts +0 -1
  127. package/dist/cjs/components/table/use-table.d.ts.map +1 -1
  128. package/dist/cjs/components/table/use-table.js.map +1 -1
  129. package/dist/cjs/hooks/index.js.map +1 -1
  130. package/dist/cjs/hooks/useClickWithLoading.d.ts.map +1 -1
  131. package/dist/cjs/hooks/useClickWithLoading.js.map +1 -1
  132. package/dist/cjs/hooks/useControlledList.d.ts.map +1 -1
  133. package/dist/cjs/hooks/useControlledList.js.map +1 -1
  134. package/dist/cjs/hooks/useParentHeight.d.ts.map +1 -1
  135. package/dist/cjs/hooks/useParentHeight.js.map +1 -1
  136. package/dist/cjs/index.js.map +1 -1
  137. package/dist/cjs/theme/PlasmaColors.d.ts.map +1 -1
  138. package/dist/cjs/theme/PlasmaColors.js.map +1 -1
  139. package/dist/cjs/theme/Plasmantine.js.map +1 -1
  140. package/dist/cjs/theme/Theme.js.map +1 -1
  141. package/dist/cjs/theme/index.js.map +1 -1
  142. package/dist/cjs/theme/mergeCSSVariablesResolvers.js.map +1 -1
  143. package/dist/cjs/theme/plasmaCSSVariablesResolver.js.map +1 -1
  144. package/dist/cjs/types/css/index.d.js.map +1 -1
  145. package/dist/cjs/utils/createFactoryComponent.d.ts.map +1 -1
  146. package/dist/cjs/utils/createFactoryComponent.js.map +1 -1
  147. package/dist/cjs/utils/createPolymorphicComponent.js.map +1 -1
  148. package/dist/cjs/utils/index.js.map +1 -1
  149. package/dist/cjs/utils/overrideComponent.d.ts.map +1 -1
  150. package/dist/cjs/utils/overrideComponent.js.map +1 -1
  151. package/dist/cjs/vars/Notification.vars.js.map +1 -1
  152. package/dist/cjs/vars/Text.vars.js.map +1 -1
  153. package/dist/esm/components/action-icon/ActionIcon.d.ts +5 -5
  154. package/dist/esm/components/action-icon/ActionIcon.d.ts.map +1 -1
  155. package/dist/esm/components/action-icon/ActionIcon.js.map +1 -1
  156. package/dist/esm/components/action-icon/index.js.map +1 -1
  157. package/dist/esm/components/blank-slate/BlankSlate.js.map +1 -1
  158. package/dist/esm/components/blank-slate/index.js.map +1 -1
  159. package/dist/esm/components/browser-preview/BrowserPreview.d.ts.map +1 -1
  160. package/dist/esm/components/browser-preview/BrowserPreview.js.map +1 -1
  161. package/dist/esm/components/browser-preview/index.js.map +1 -1
  162. package/dist/esm/components/button/Button.d.ts +5 -5
  163. package/dist/esm/components/button/Button.d.ts.map +1 -1
  164. package/dist/esm/components/button/Button.js.map +1 -1
  165. package/dist/esm/components/button/ButtonWithDisabledTooltip.d.ts +2 -2
  166. package/dist/esm/components/button/ButtonWithDisabledTooltip.js.map +1 -1
  167. package/dist/esm/components/button/index.js.map +1 -1
  168. package/dist/esm/components/code-editor/CodeEditor.js.map +1 -1
  169. package/dist/esm/components/code-editor/index.js.map +1 -1
  170. package/dist/esm/components/code-editor/languages/xml.js.map +1 -1
  171. package/dist/esm/components/code-editor/search/Search.d.ts +0 -1
  172. package/dist/esm/components/code-editor/search/Search.d.ts.map +1 -1
  173. package/dist/esm/components/code-editor/search/Search.js.map +1 -1
  174. package/dist/esm/components/code-editor/search/index.js.map +1 -1
  175. package/dist/esm/components/collection/Collection.d.ts.map +1 -1
  176. package/dist/esm/components/collection/Collection.js.map +1 -1
  177. package/dist/esm/components/collection/CollectionContext.d.ts +2 -3
  178. package/dist/esm/components/collection/CollectionContext.d.ts.map +1 -1
  179. package/dist/esm/components/collection/CollectionContext.js.map +1 -1
  180. package/dist/esm/components/collection/CollectionItem.js.map +1 -1
  181. package/dist/esm/components/collection/enhanceWithCollectionProps.d.ts +1 -1
  182. package/dist/esm/components/collection/enhanceWithCollectionProps.d.ts.map +1 -1
  183. package/dist/esm/components/collection/enhanceWithCollectionProps.js.map +1 -1
  184. package/dist/esm/components/collection/index.js.map +1 -1
  185. package/dist/esm/components/copyToClipboard/CopyToClipboard.d.ts +0 -1
  186. package/dist/esm/components/copyToClipboard/CopyToClipboard.d.ts.map +1 -1
  187. package/dist/esm/components/copyToClipboard/CopyToClipboard.js.map +1 -1
  188. package/dist/esm/components/copyToClipboard/index.js.map +1 -1
  189. package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.js.map +1 -1
  190. package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts.map +1 -1
  191. package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.js.map +1 -1
  192. package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.d.ts.map +1 -1
  193. package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.js.map +1 -1
  194. package/dist/esm/components/date-range-picker/EditableDateRangePicker.js.map +1 -1
  195. package/dist/esm/components/date-range-picker/index.js.map +1 -1
  196. package/dist/esm/components/header/Header.context.d.ts +2 -3
  197. package/dist/esm/components/header/Header.context.d.ts.map +1 -1
  198. package/dist/esm/components/header/Header.context.js.map +1 -1
  199. package/dist/esm/components/header/Header.d.ts.map +1 -1
  200. package/dist/esm/components/header/Header.js.map +1 -1
  201. package/dist/esm/components/header/HeaderActions/HeaderActions.js.map +1 -1
  202. package/dist/esm/components/header/HeaderBreadcrumbs/HeaderBreadcrumbs.js.map +1 -1
  203. package/dist/esm/components/header/HeaderDocAnchor/HeaderDocAnchor.js.map +1 -1
  204. package/dist/esm/components/header/index.js.map +1 -1
  205. package/dist/esm/components/index.js.map +1 -1
  206. package/dist/esm/components/inline-confirm/InlineConfirm.d.ts +1 -8
  207. package/dist/esm/components/inline-confirm/InlineConfirm.d.ts.map +1 -1
  208. package/dist/esm/components/inline-confirm/InlineConfirm.js.map +1 -1
  209. package/dist/esm/components/inline-confirm/InlineConfirmContext.d.ts +2 -3
  210. package/dist/esm/components/inline-confirm/InlineConfirmContext.d.ts.map +1 -1
  211. package/dist/esm/components/inline-confirm/InlineConfirmContext.js.map +1 -1
  212. package/dist/esm/components/inline-confirm/InlineConfirmPrompt.js.map +1 -1
  213. package/dist/esm/components/inline-confirm/InlineConfirmTarget.d.ts +9 -24
  214. package/dist/esm/components/inline-confirm/InlineConfirmTarget.d.ts.map +1 -1
  215. package/dist/esm/components/inline-confirm/InlineConfirmTarget.js.map +1 -1
  216. package/dist/esm/components/inline-confirm/index.js.map +1 -1
  217. package/dist/esm/components/menu/Menu.d.ts +3 -4
  218. package/dist/esm/components/menu/Menu.d.ts.map +1 -1
  219. package/dist/esm/components/menu/Menu.js.map +1 -1
  220. package/dist/esm/components/menu/index.js.map +1 -1
  221. package/dist/esm/components/prompt/Prompt.js.map +1 -1
  222. package/dist/esm/components/prompt/PromptFooter.js.map +1 -1
  223. package/dist/esm/components/prompt/index.js.map +1 -1
  224. package/dist/esm/components/sticky-footer/StickyFooter.js.map +1 -1
  225. package/dist/esm/components/sticky-footer/index.js.map +1 -1
  226. package/dist/esm/components/table/Table.d.ts +7 -7
  227. package/dist/esm/components/table/Table.d.ts.map +1 -1
  228. package/dist/esm/components/table/Table.js +0 -1
  229. package/dist/esm/components/table/Table.js.map +1 -1
  230. package/dist/esm/components/table/Table.module.css +1 -0
  231. package/dist/esm/components/table/Table.types.js.map +1 -1
  232. package/dist/esm/components/table/TableContext.d.ts.map +1 -1
  233. package/dist/esm/components/table/TableContext.js.map +1 -1
  234. package/dist/esm/components/table/index.js.map +1 -1
  235. package/dist/esm/components/table/layouts/TableLayoutControl.js.map +1 -1
  236. package/dist/esm/components/table/layouts/TableLayouts.js.map +1 -1
  237. package/dist/esm/components/table/layouts/row-layout/RowLayout.js.map +1 -1
  238. package/dist/esm/components/table/layouts/row-layout/RowLayoutBody.d.ts.map +1 -1
  239. package/dist/esm/components/table/layouts/row-layout/RowLayoutBody.js.map +1 -1
  240. package/dist/esm/components/table/layouts/row-layout/RowLayoutContext.d.ts +2 -3
  241. package/dist/esm/components/table/layouts/row-layout/RowLayoutContext.d.ts.map +1 -1
  242. package/dist/esm/components/table/layouts/row-layout/RowLayoutContext.js.map +1 -1
  243. package/dist/esm/components/table/layouts/row-layout/RowLayoutHeader.d.ts.map +1 -1
  244. package/dist/esm/components/table/layouts/row-layout/RowLayoutHeader.js.map +1 -1
  245. package/dist/esm/components/table/layouts/row-layout/RowLayoutIcon.js.map +1 -1
  246. package/dist/esm/components/table/table-actions/TableActionContext.d.ts +2 -3
  247. package/dist/esm/components/table/table-actions/TableActionContext.d.ts.map +1 -1
  248. package/dist/esm/components/table/table-actions/TableActionContext.js.map +1 -1
  249. package/dist/esm/components/table/table-actions/TableActionItem.d.ts +5 -5
  250. package/dist/esm/components/table/table-actions/TableActionItem.d.ts.map +1 -1
  251. package/dist/esm/components/table/table-actions/TableActionItem.js.map +1 -1
  252. package/dist/esm/components/table/table-actions/TableActionsList.d.ts +1 -1
  253. package/dist/esm/components/table/table-actions/TableActionsList.d.ts.map +1 -1
  254. package/dist/esm/components/table/table-actions/TableActionsList.js.map +1 -1
  255. package/dist/esm/components/table/table-actions/TableHeaderActions.js.map +1 -1
  256. package/dist/esm/components/table/table-actions/index.js.map +1 -1
  257. package/dist/esm/components/table/table-column/TableActionsColumn.js.map +1 -1
  258. package/dist/esm/components/table/table-column/TableCollapsibleColumn.js.map +1 -1
  259. package/dist/esm/components/table/table-column/TableSelectableColumn.js.map +1 -1
  260. package/dist/esm/components/table/table-columns-selector/TableColumnsSelector.js.map +1 -1
  261. package/dist/esm/components/table/table-date-range-picker/TableDateRangePicker.js.map +1 -1
  262. package/dist/esm/components/table/table-filter/TableFilter.js.map +1 -1
  263. package/dist/esm/components/table/table-footer/TableFooter.js.map +1 -1
  264. package/dist/esm/components/table/table-header/TableHeader.js.map +1 -1
  265. package/dist/esm/components/table/table-header/Th.d.ts.map +1 -1
  266. package/dist/esm/components/table/table-header/Th.js.map +1 -1
  267. package/dist/esm/components/table/table-last-updated/TableLastUpdated.js.map +1 -1
  268. package/dist/esm/components/table/table-loading/TableLoading.js.map +1 -1
  269. package/dist/esm/components/table/table-no-data/TableNoData.js.map +1 -1
  270. package/dist/esm/components/table/table-pagination/TablePagination.js.map +1 -1
  271. package/dist/esm/components/table/table-pagination/TablePagination.types.js.map +1 -1
  272. package/dist/esm/components/table/table-per-page/TablePerPage.js.map +1 -1
  273. package/dist/esm/components/table/table-per-page/TablePerPage.types.js.map +1 -1
  274. package/dist/esm/components/table/table-predicate/TablePredicate.js.map +1 -1
  275. package/dist/esm/components/table/use-table.d.ts +0 -1
  276. package/dist/esm/components/table/use-table.d.ts.map +1 -1
  277. package/dist/esm/components/table/use-table.js.map +1 -1
  278. package/dist/esm/hooks/index.js.map +1 -1
  279. package/dist/esm/hooks/useClickWithLoading.d.ts.map +1 -1
  280. package/dist/esm/hooks/useClickWithLoading.js.map +1 -1
  281. package/dist/esm/hooks/useControlledList.d.ts.map +1 -1
  282. package/dist/esm/hooks/useControlledList.js.map +1 -1
  283. package/dist/esm/hooks/useParentHeight.d.ts.map +1 -1
  284. package/dist/esm/hooks/useParentHeight.js.map +1 -1
  285. package/dist/esm/index.js.map +1 -1
  286. package/dist/esm/theme/PlasmaColors.d.ts.map +1 -1
  287. package/dist/esm/theme/PlasmaColors.js.map +1 -1
  288. package/dist/esm/theme/Plasmantine.js.map +1 -1
  289. package/dist/esm/theme/Theme.js.map +1 -1
  290. package/dist/esm/theme/index.js.map +1 -1
  291. package/dist/esm/theme/mergeCSSVariablesResolvers.js.map +1 -1
  292. package/dist/esm/theme/plasmaCSSVariablesResolver.js.map +1 -1
  293. package/dist/esm/types/css/index.d.js.map +1 -1
  294. package/dist/esm/utils/createFactoryComponent.d.ts.map +1 -1
  295. package/dist/esm/utils/createFactoryComponent.js.map +1 -1
  296. package/dist/esm/utils/createPolymorphicComponent.js.map +1 -1
  297. package/dist/esm/utils/index.js.map +1 -1
  298. package/dist/esm/utils/overrideComponent.d.ts.map +1 -1
  299. package/dist/esm/utils/overrideComponent.js.map +1 -1
  300. package/dist/esm/vars/Notification.vars.js.map +1 -1
  301. package/dist/esm/vars/Text.vars.js.map +1 -1
  302. package/package.json +19 -19
  303. package/src/components/table/Table.module.css +1 -0
  304. package/src/components/table/Table.tsx +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"InlineConfirmContext.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmContext.ts"],"names":[],"mappings":";AAEA,KAAK,wBAAwB,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAO,qBAAqB;;;+CAAE,gBAAgB,gCAEpD,CAAC"}
1
+ {"version":3,"file":"InlineConfirmContext.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmContext.ts"],"names":[],"mappings":"AAEA,KAAK,wBAAwB,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAO,qBAAqB;;cAJM,MACpC,SAAS;aACd,mBAEc,eAAuB,gBAAgB,mDAEpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/inline-confirm/InlineConfirmContext.ts"],"sourcesContent":["import {createSafeContext} from '@mantine/core';\n\ntype InlineConfirmContextType = {\n confirmingId: string;\n setConfirmingId: (id: string) => void;\n clearConfirm: () => void;\n};\n\nexport const [InlineConfirmProvider, useInlineConfirm] = createSafeContext<InlineConfirmContextType>(\n 'InlineConfirm component was not found in tree',\n);\n"],"names":["createSafeContext","InlineConfirmProvider","useInlineConfirm"],"rangeMappings":";","mappings":"AAAA,SAAQA,iBAAiB,QAAO,gBAAgB;AAQhD,OAAO,MAAM,CAACC,uBAAuBC,iBAAiB,GAAGF,kBACrD,iDACF"}
1
+ {"version":3,"sources":["../../../../src/components/inline-confirm/InlineConfirmContext.ts"],"sourcesContent":["import {createSafeContext} from '@mantine/core';\n\ntype InlineConfirmContextType = {\n confirmingId: string;\n setConfirmingId: (id: string) => void;\n clearConfirm: () => void;\n};\n\nexport const [InlineConfirmProvider, useInlineConfirm] = createSafeContext<InlineConfirmContextType>(\n 'InlineConfirm component was not found in tree',\n);\n"],"names":["createSafeContext","InlineConfirmProvider","useInlineConfirm"],"mappings":"AAAA,SAAQA,iBAAiB,QAAO,gBAAgB;AAQhD,OAAO,MAAM,CAACC,uBAAuBC,iBAAiB,GAAGF,kBACrD,iDACF"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/inline-confirm/InlineConfirmPrompt.tsx"],"sourcesContent":["import {Factory, factory, Group, GroupProps, isElement, useProps} from '@mantine/core';\nimport {cloneElement, ReactElement, ReactNode, useEffect} from 'react';\nimport {Button} from '../button/Button';\nimport {InlineConfirmComponentsProps} from './InlineConfirm';\n\nimport {useInlineConfirm} from './InlineConfirmContext';\n\ninterface InlineConfirmPromptProps extends Omit<GroupProps, 'children'>, InlineConfirmComponentsProps {\n /**\n * Label element\n *\n * @default Are you sure?\n */\n label?: ReactNode;\n /**\n * Confirm button element\n *\n * @default <Button color=\"red\">Delete</Button>\n */\n confirm?: ReactElement;\n /**\n * Cancel button element\n *\n * @default <Button variant=\"outline\">Cancel</Button>\n */\n cancel?: ReactElement;\n /**\n * Function called when the confirm button is clicked\n */\n onConfirm?(): void;\n\n /**\n * Function called when the cancel button is clicked\n */\n onCancel?(): void;\n}\n\nexport type InlineConfirmPromptFactory = Factory<{\n props: InlineConfirmPromptProps;\n ref: HTMLDivElement;\n}>;\n\nconst defaultProps: Partial<InlineConfirmPromptProps> = {\n label: 'Are you sure?',\n confirm: <Button color=\"red\">Delete</Button>,\n cancel: <Button variant=\"outline\">Cancel</Button>,\n gap: 'xs',\n wrap: 'nowrap',\n};\n\nexport const InlineConfirmPrompt = factory<InlineConfirmPromptFactory>((props, ref) => {\n const {inlineConfirmId, label, confirm, cancel, onConfirm, onCancel, ...others} = useProps(\n 'InlineConfirmPrompt',\n defaultProps,\n props,\n );\n const {confirmingId, clearConfirm} = useInlineConfirm();\n\n if (!isElement(cancel) || !isElement(confirm)) {\n throw new Error(\n 'InlineConfirm.Prompt component cancel & confirm props should be elements or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported',\n );\n }\n const cancelEl = cloneElement(cancel, {\n onClick: () => {\n cancel.props.onClick?.();\n onCancel?.();\n clearConfirm();\n },\n });\n const confirmEl = cloneElement(confirm, {\n onClick: () => {\n confirm.props.onClick?.();\n onConfirm?.();\n clearConfirm();\n },\n });\n\n useEffect(() => {\n if (confirmingId !== inlineConfirmId) {\n clearConfirm();\n }\n }, []);\n\n if (confirmingId === inlineConfirmId) {\n return (\n <Group ref={ref} {...others}>\n {label}\n {confirmEl}\n {cancelEl}\n </Group>\n );\n }\n return null;\n});\n"],"names":["factory","Group","isElement","useProps","cloneElement","useEffect","Button","useInlineConfirm","defaultProps","label","confirm","color","cancel","variant","gap","wrap","InlineConfirmPrompt","props","ref","inlineConfirmId","onConfirm","onCancel","others","confirmingId","clearConfirm","Error","cancelEl","onClick","confirmEl"],"range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irmPrompt.tsx"],"sourcesContent":["import {Factory, factory, Group, GroupProps, isElement, useProps} from '@mantine/core';\nimport {cloneElement, ReactElement, ReactNode, useEffect} from 'react';\nimport {Button} from '../button/Button';\nimport {InlineConfirmComponentsProps} from './InlineConfirm';\n\nimport {useInlineConfirm} from './InlineConfirmContext';\n\ninterface InlineConfirmPromptProps extends Omit<GroupProps, 'children'>, InlineConfirmComponentsProps {\n /**\n * Label element\n *\n * @default Are you sure?\n */\n label?: ReactNode;\n /**\n * Confirm button element\n *\n * @default <Button color=\"red\">Delete</Button>\n */\n confirm?: ReactElement;\n /**\n * Cancel button element\n *\n * @default <Button variant=\"outline\">Cancel</Button>\n */\n cancel?: ReactElement;\n /**\n * Function called when the confirm button is clicked\n */\n onConfirm?(): void;\n\n /**\n * Function called when the cancel button is clicked\n */\n onCancel?(): void;\n}\n\nexport type InlineConfirmPromptFactory = Factory<{\n props: InlineConfirmPromptProps;\n ref: HTMLDivElement;\n}>;\n\nconst defaultProps: Partial<InlineConfirmPromptProps> = {\n label: 'Are you sure?',\n confirm: <Button color=\"red\">Delete</Button>,\n cancel: <Button variant=\"outline\">Cancel</Button>,\n gap: 'xs',\n wrap: 'nowrap',\n};\n\nexport const InlineConfirmPrompt = factory<InlineConfirmPromptFactory>((props, ref) => {\n const {inlineConfirmId, label, confirm, cancel, onConfirm, onCancel, ...others} = useProps(\n 'InlineConfirmPrompt',\n defaultProps,\n props,\n );\n const {confirmingId, clearConfirm} = useInlineConfirm();\n\n if (!isElement(cancel) || !isElement(confirm)) {\n throw new Error(\n 'InlineConfirm.Prompt component cancel & confirm props should be elements or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported',\n );\n }\n const cancelEl = cloneElement(cancel, {\n onClick: () => {\n cancel.props.onClick?.();\n onCancel?.();\n clearConfirm();\n },\n });\n const confirmEl = cloneElement(confirm, {\n onClick: () => {\n confirm.props.onClick?.();\n onConfirm?.();\n clearConfirm();\n },\n });\n\n useEffect(() => {\n if (confirmingId !== inlineConfirmId) {\n clearConfirm();\n }\n }, []);\n\n if (confirmingId === inlineConfirmId) {\n return (\n <Group ref={ref} {...others}>\n {label}\n {confirmEl}\n {cancelEl}\n </Group>\n );\n }\n return null;\n});\n"],"names":["factory","Group","isElement","useProps","cloneElement","useEffect","Button","useInlineConfirm","defaultProps","label","confirm","color","cancel","variant","gap","wrap","InlineConfirmPrompt","props","ref","inlineConfirmId","onConfirm","onCancel","others","confirmingId","clearConfirm","Error","cancelEl","onClick","confirmEl"],"mappings":";AAAA,SAAiBA,OAAO,EAAEC,KAAK,EAAcC,SAAS,EAAEC,QAAQ,QAAO,gBAAgB;AACvF,SAAQC,YAAY,EAA2BC,SAAS,QAAO,QAAQ;AACvE,SAAQC,MAAM,QAAO,mBAAmB;AAGxC,SAAQC,gBAAgB,QAAO,yBAAyB;AAqCxD,MAAMC,eAAkD;IACpDC,OAAO;IACPC,uBAAS,KAACJ;QAAOK,OAAM;kBAAM;;IAC7BC,sBAAQ,KAACN;QAAOO,SAAQ;kBAAU;;IAClCC,KAAK;IACLC,MAAM;AACV;AAEA,OAAO,MAAMC,sBAAsBhB,QAAoC,CAACiB,OAAOC;IAC3E,MAAM,EAACC,eAAe,EAAEV,KAAK,EAAEC,OAAO,EAAEE,MAAM,EAAEQ,SAAS,EAAEC,QAAQ,EAAE,GAAGC,QAAO,GAAGnB,SAC9E,uBACAK,cACAS;IAEJ,MAAM,EAACM,YAAY,EAAEC,YAAY,EAAC,GAAGjB;IAErC,IAAI,CAACL,UAAUU,WAAW,CAACV,UAAUQ,UAAU;QAC3C,MAAM,IAAIe,MACN;IAER;IACA,MAAMC,yBAAWtB,aAAaQ,QAAQ;QAClCe,SAAS;YACLf,OAAOK,KAAK,CAACU,OAAO;YACpBN;YACAG;QACJ;IACJ;IACA,MAAMI,0BAAYxB,aAAaM,SAAS;QACpCiB,SAAS;YACLjB,QAAQO,KAAK,CAACU,OAAO;YACrBP;YACAI;QACJ;IACJ;IAEAnB,UAAU;QACN,IAAIkB,iBAAiBJ,iBAAiB;YAClCK;QACJ;IACJ,GAAG,EAAE;IAEL,IAAID,iBAAiBJ,iBAAiB;QAClC,qBACI,MAAClB;YAAMiB,KAAKA;YAAM,GAAGI,MAAM;;gBACtBb;gBACAmB;gBACAF;;;IAGb;IACA,OAAO;AACX,GAAG"}
@@ -4,14 +4,14 @@ import { InlineConfirmComponentsProps } from './InlineConfirm';
4
4
  export interface InlineConfirmTargetProps extends ButtonProps, InlineConfirmComponentsProps {
5
5
  onClick?: MouseEventHandler<HTMLButtonElement>;
6
6
  }
7
- export declare const InlineConfirmTarget: (<C = (<C_1 = "button">(props: import("@mantine/core").PolymorphicComponentProps<C_1, ButtonProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(ButtonProps & {
7
+ export declare const InlineConfirmTarget: (<C = (<C_1 = "button">(props: import("@mantine/core").PolymorphicComponentProps<C_1, ButtonProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(ButtonProps & {
8
8
  component?: any;
9
9
  } & Omit<Omit<any, "ref">, "component" | keyof ButtonProps> & {
10
10
  ref?: any;
11
- renderRoot?: (props: any) => any;
11
+ renderRoot?: ((props: any) => any) | undefined;
12
12
  }) | (ButtonProps & {
13
13
  component: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
14
- renderRoot?: (props: Record<string, any>) => any;
14
+ renderRoot?: ((props: Record<string, any>) => any) | undefined;
15
15
  })>, never> & import("@mantine/core/lib/core/factory/factory").ThemeExtend<{
16
16
  props: ButtonProps;
17
17
  defaultRef: HTMLButtonElement;
@@ -20,12 +20,7 @@ export declare const InlineConfirmTarget: (<C = (<C_1 = "button">(props: import(
20
20
  vars: import("@mantine/core").ButtonCssVariables;
21
21
  variant: import("@mantine/core").ButtonVariant;
22
22
  staticComponents: {
23
- Group: import("@mantine/core").MantineComponent<{
24
- props: import("@mantine/core").ButtonGroupProps;
25
- ref: HTMLDivElement;
26
- stylesNames: "group";
27
- vars: import("@mantine/core").ButtonGroupCssVariables;
28
- }>;
23
+ Group: typeof import("@mantine/core").ButtonGroup;
29
24
  };
30
25
  }> & import("@mantine/core/lib/core/factory/factory").ComponentClasses<{
31
26
  props: ButtonProps;
@@ -35,27 +30,17 @@ export declare const InlineConfirmTarget: (<C = (<C_1 = "button">(props: import(
35
30
  vars: import("@mantine/core").ButtonCssVariables;
36
31
  variant: import("@mantine/core").ButtonVariant;
37
32
  staticComponents: {
38
- Group: import("@mantine/core").MantineComponent<{
39
- props: import("@mantine/core").ButtonGroupProps;
40
- ref: HTMLDivElement;
41
- stylesNames: "group";
42
- vars: import("@mantine/core").ButtonGroupCssVariables;
43
- }>;
33
+ Group: typeof import("@mantine/core").ButtonGroup;
44
34
  };
45
35
  }> & {
46
- Group: import("@mantine/core").MantineComponent<{
47
- props: import("@mantine/core").ButtonGroupProps;
48
- ref: HTMLDivElement;
49
- stylesNames: "group";
50
- vars: import("@mantine/core").ButtonGroupCssVariables;
51
- }>;
52
- }>(props: import("@mantine/core").PolymorphicComponentProps<C, InlineConfirmTargetProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(InlineConfirmTargetProps & {
36
+ Group: typeof import("@mantine/core").ButtonGroup;
37
+ }>(props: import("@mantine/core").PolymorphicComponentProps<C, InlineConfirmTargetProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(InlineConfirmTargetProps & {
53
38
  component?: any;
54
39
  } & Omit<Omit<any, "ref">, "component" | keyof InlineConfirmTargetProps> & {
55
40
  ref?: any;
56
- renderRoot?: (props: any) => any;
41
+ renderRoot?: ((props: any) => any) | undefined;
57
42
  }) | (InlineConfirmTargetProps & {
58
43
  component: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
59
- renderRoot?: (props: Record<string, any>) => any;
44
+ renderRoot?: ((props: Record<string, any>) => any) | undefined;
60
45
  })>, never> & Record<string, never>;
61
46
  //# sourceMappingURL=InlineConfirmTarget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineConfirmTarget.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmTarget.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,iBAAiB,EAAC,MAAM,OAAO,CAAC;AACpD,OAAO,EAAS,WAAW,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAC,4BAA4B,EAAC,MAAM,iBAAiB,CAAC;AAG7D,MAAM,WAAW,wBAAyB,SAAQ,WAAW,EAAE,4BAA4B;IACvF,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAoB/B,CAAC"}
1
+ {"version":3,"file":"InlineConfirmTarget.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmTarget.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,iBAAiB,EAAC,MAAM,OAAO,CAAC;AACpD,OAAO,EAAS,WAAW,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAC,4BAA4B,EAAC,MAAM,iBAAiB,CAAC;AAG7D,MAAM,WAAW,wBAAyB,SAAQ,WAAW,EAAE,4BAA4B;IACvF,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,mBAAmB,yGACpB,MACJ,YACH;;;;;;sBAQiC,OAAO,gCAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;6FAKE,MAAO,YAAY;;;;;;sBAImI,OAAO,gCAAgC,OAAO;;mCAD/N,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/inline-confirm/InlineConfirmTarget.tsx"],"sourcesContent":["import {createPolymorphicComponent} from '@mantine/core';\nimport {forwardRef, MouseEventHandler} from 'react';\nimport {Button, ButtonProps} from '../button';\nimport {InlineConfirmComponentsProps} from './InlineConfirm';\nimport {useInlineConfirm} from './InlineConfirmContext';\n\nexport interface InlineConfirmTargetProps extends ButtonProps, InlineConfirmComponentsProps {\n onClick?: MouseEventHandler<HTMLButtonElement>;\n}\n\nexport const InlineConfirmTarget = createPolymorphicComponent<typeof Button, InlineConfirmTargetProps>(\n forwardRef(\n (\n {\n onClick,\n inlineConfirmId,\n component: Component = Button,\n ...others\n }: InlineConfirmTargetProps & {component?: any},\n ref,\n ) => {\n const {setConfirmingId} = useInlineConfirm();\n const handleOnClick: MouseEventHandler<HTMLButtonElement> = (e) => {\n setConfirmingId(inlineConfirmId);\n onClick?.(e);\n };\n\n return <Component ref={ref} onClick={handleOnClick} {...others} />;\n },\n ),\n);\n"],"names":["createPolymorphicComponent","forwardRef","Button","useInlineConfirm","InlineConfirmTarget","onClick","inlineConfirmId","component","Component","others","ref","setConfirmingId","handleOnClick","e"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":";AAAA,SAAQA,0BAA0B,QAAO,gBAAgB;AACzD,SAAQC,UAAU,QAA0B,QAAQ;AACpD,SAAQC,MAAM,QAAoB,YAAY;AAE9C,SAAQC,gBAAgB,QAAO,yBAAyB;AAMxD,OAAO,MAAMC,sBAAsBJ,yCAC/BC,WACI,CACI,EACII,OAAO,EACPC,eAAe,EACfC,WAAWC,YAAYN,MAAM,EAC7B,GAAGO,QACwC,EAC/CC;IAEA,MAAM,EAACC,eAAe,EAAC,GAAGR;IAC1B,MAAMS,gBAAsD,CAACC;QACzDF,gBAAgBL;QAChBD,UAAUQ;IACd;IAEA,qBAAO,KAACL;QAAUE,KAAKA;QAAKL,SAASO;QAAgB,GAAGH,MAAM;;AAClE,IAEN"}
1
+ {"version":3,"sources":["../../../../src/components/inline-confirm/InlineConfirmTarget.tsx"],"sourcesContent":["import {createPolymorphicComponent} from '@mantine/core';\nimport {forwardRef, MouseEventHandler} from 'react';\nimport {Button, ButtonProps} from '../button';\nimport {InlineConfirmComponentsProps} from './InlineConfirm';\nimport {useInlineConfirm} from './InlineConfirmContext';\n\nexport interface InlineConfirmTargetProps extends ButtonProps, InlineConfirmComponentsProps {\n onClick?: MouseEventHandler<HTMLButtonElement>;\n}\n\nexport const InlineConfirmTarget = createPolymorphicComponent<typeof Button, InlineConfirmTargetProps>(\n forwardRef(\n (\n {\n onClick,\n inlineConfirmId,\n component: Component = Button,\n ...others\n }: InlineConfirmTargetProps & {component?: any},\n ref,\n ) => {\n const {setConfirmingId} = useInlineConfirm();\n const handleOnClick: MouseEventHandler<HTMLButtonElement> = (e) => {\n setConfirmingId(inlineConfirmId);\n onClick?.(e);\n };\n\n return <Component ref={ref} onClick={handleOnClick} {...others} />;\n },\n ),\n);\n"],"names":["createPolymorphicComponent","forwardRef","Button","useInlineConfirm","InlineConfirmTarget","onClick","inlineConfirmId","component","Component","others","ref","setConfirmingId","handleOnClick","e"],"mappings":";AAAA,SAAQA,0BAA0B,QAAO,gBAAgB;AACzD,SAAQC,UAAU,QAA0B,QAAQ;AACpD,SAAQC,MAAM,QAAoB,YAAY;AAE9C,SAAQC,gBAAgB,QAAO,yBAAyB;AAMxD,OAAO,MAAMC,sBAAsBJ,yCAC/BC,WACI,CACI,EACII,OAAO,EACPC,eAAe,EACfC,WAAWC,YAAYN,MAAM,EAC7B,GAAGO,QACwC,EAC/CC;IAEA,MAAM,EAACC,eAAe,EAAC,GAAGR;IAC1B,MAAMS,gBAAsD,CAACC;QACzDF,gBAAgBL;QAChBD,UAAUQ;IACd;IAEA,qBAAO,KAACL;QAAUE,KAAKA;QAAKL,SAASO;QAAgB,GAAGH,MAAM;;AAClE,IAEN"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/inline-confirm/index.ts"],"sourcesContent":["export * from './InlineConfirm';\nexport * from './InlineConfirmContext';\n"],"names":[],"rangeMappings":";","mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,yBAAyB"}
1
+ {"version":3,"sources":["../../../../src/components/inline-confirm/index.ts"],"sourcesContent":["export * from './InlineConfirm';\nexport * from './InlineConfirmContext';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,yBAAyB"}
@@ -1,16 +1,15 @@
1
- /// <reference types="react" />
2
1
  import { Menu as MantineMenu, MenuItemProps as MantineMenuItemProps } from '@mantine/core';
3
2
  import { ButtonWithDisabledTooltipProps } from '../button';
4
3
  export interface MenuItemProps extends MantineMenuItemProps, ButtonWithDisabledTooltipProps {
5
4
  }
6
- export declare const Menu: ((_props: import("@mantine/core").MenuProps) => import("react/jsx-runtime").JSX.Element) & typeof MantineMenu & {
5
+ export declare const Menu: ((_props: import("@mantine/core").MenuProps) => ReturnType<typeof MantineMenu>) & typeof MantineMenu & {
7
6
  displayName: string;
8
- Item: (<C = "button">(props: import("@mantine/utils").PolymorphicComponentProps<C, MenuItemProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(MenuItemProps & {
7
+ Item: (<C = "button">(props: import("@mantine/utils").PolymorphicComponentProps<C, MenuItemProps>) => import("react").ReactElement) & Omit<import("react").FunctionComponent<(MenuItemProps & {
9
8
  component?: any;
10
9
  } & Omit<Pick<any, string | number | symbol>, "component" | keyof MenuItemProps> & {
11
10
  ref?: any;
12
11
  }) | (MenuItemProps & {
13
- component: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
12
+ component: import("react").ElementType<any>;
14
13
  })>, never> & Record<string, never>;
15
14
  };
16
15
  //# sourceMappingURL=Menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/Menu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,IAAI,WAAW,EAAE,aAAa,IAAI,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAIzF,OAAO,EAAC,8BAA8B,EAAC,MAAM,WAAW,CAAC;AAGzD,MAAM,WAAW,aAAc,SAAQ,oBAAoB,EAAE,8BAA8B;CAAG;AAgB9F,eAAO,MAAM,IAAI;;;;;;;;;CAGf,CAAC"}
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,IAAI,WAAW,EAAE,aAAa,IAAI,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAIzF,OAAO,EAAC,8BAA8B,EAAC,MAAM,WAAW,CAAC;AAGzD,MAAM,WAAW,aAAc,SAAQ,oBAAoB,EAAE,8BAA8B;CAAG;AAgB9F,eAAO,MAAM,IAAI;;;;;;;;;CAGf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/menu/Menu.tsx"],"sourcesContent":["import {Menu as MantineMenu, MenuItemProps as MantineMenuItemProps} from '@mantine/core';\nimport {forwardRef} from 'react';\n\nimport {createPolymorphicComponent, overrideComponent} from '../../utils';\nimport {ButtonWithDisabledTooltipProps} from '../button';\nimport {ButtonWithDisabledTooltip} from '../button/ButtonWithDisabledTooltip';\n\nexport interface MenuItemProps extends MantineMenuItemProps, ButtonWithDisabledTooltipProps {}\n\nconst _MenuItem = forwardRef<HTMLButtonElement, MenuItemProps>(\n ({disabledTooltip, disabled, disabledTooltipProps, ...others}, ref) => (\n <ButtonWithDisabledTooltip\n disabled={disabled}\n disabledTooltip={disabledTooltip}\n disabledTooltipProps={disabledTooltipProps}\n >\n <MantineMenu.Item ref={ref} disabled={disabled} {...others} />\n </ButtonWithDisabledTooltip>\n ),\n);\n\nconst MenuItem = createPolymorphicComponent<'button', MenuItemProps>(_MenuItem);\n\nexport const Menu = overrideComponent(MantineMenu, {\n displayName: '@coveord/plasma-mantine/Menu',\n Item: MenuItem,\n});\n"],"names":["Menu","MantineMenu","forwardRef","createPolymorphicComponent","overrideComponent","ButtonWithDisabledTooltip","_MenuItem","disabledTooltip","disabled","disabledTooltipProps","others","ref","Item","MenuItem","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";AAAA,SAAQA,QAAQC,WAAW,QAA8C,gBAAgB;AACzF,SAAQC,UAAU,QAAO,QAAQ;AAEjC,SAAQC,0BAA0B,EAAEC,iBAAiB,QAAO,cAAc;AAE1E,SAAQC,yBAAyB,QAAO,sCAAsC;AAI9E,MAAMC,0BAAYJ,WACd,CAAC,EAACK,eAAe,EAAEC,QAAQ,EAAEC,oBAAoB,EAAE,GAAGC,QAAO,EAAEC,oBAC3D,KAACN;QACGG,UAAUA;QACVD,iBAAiBA;QACjBE,sBAAsBA;kBAEtB,cAAA,KAACR,YAAYW,IAAI;YAACD,KAAKA;YAAKH,UAAUA;YAAW,GAAGE,MAAM;;;AAKtE,MAAMG,WAAWV,2BAAoDG;AAErE,OAAO,MAAMN,OAAOI,kBAAkBH,aAAa;IAC/Ca,aAAa;IACbF,MAAMC;AACV,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/menu/Menu.tsx"],"sourcesContent":["import {Menu as MantineMenu, MenuItemProps as MantineMenuItemProps} from '@mantine/core';\nimport {forwardRef} from 'react';\n\nimport {createPolymorphicComponent, overrideComponent} from '../../utils';\nimport {ButtonWithDisabledTooltipProps} from '../button';\nimport {ButtonWithDisabledTooltip} from '../button/ButtonWithDisabledTooltip';\n\nexport interface MenuItemProps extends MantineMenuItemProps, ButtonWithDisabledTooltipProps {}\n\nconst _MenuItem = forwardRef<HTMLButtonElement, MenuItemProps>(\n ({disabledTooltip, disabled, disabledTooltipProps, ...others}, ref) => (\n <ButtonWithDisabledTooltip\n disabled={disabled}\n disabledTooltip={disabledTooltip}\n disabledTooltipProps={disabledTooltipProps}\n >\n <MantineMenu.Item ref={ref} disabled={disabled} {...others} />\n </ButtonWithDisabledTooltip>\n ),\n);\n\nconst MenuItem = createPolymorphicComponent<'button', MenuItemProps>(_MenuItem);\n\nexport const Menu = overrideComponent(MantineMenu, {\n displayName: '@coveord/plasma-mantine/Menu',\n Item: MenuItem,\n});\n"],"names":["Menu","MantineMenu","forwardRef","createPolymorphicComponent","overrideComponent","ButtonWithDisabledTooltip","_MenuItem","disabledTooltip","disabled","disabledTooltipProps","others","ref","Item","MenuItem","displayName"],"mappings":";AAAA,SAAQA,QAAQC,WAAW,QAA8C,gBAAgB;AACzF,SAAQC,UAAU,QAAO,QAAQ;AAEjC,SAAQC,0BAA0B,EAAEC,iBAAiB,QAAO,cAAc;AAE1E,SAAQC,yBAAyB,QAAO,sCAAsC;AAI9E,MAAMC,0BAAYJ,WACd,CAAC,EAACK,eAAe,EAAEC,QAAQ,EAAEC,oBAAoB,EAAE,GAAGC,QAAO,EAAEC,oBAC3D,KAACN;QACGG,UAAUA;QACVD,iBAAiBA;QACjBE,sBAAsBA;kBAEtB,cAAA,KAACR,YAAYW,IAAI;YAACD,KAAKA;YAAKH,UAAUA;YAAW,GAAGE,MAAM;;;AAKtE,MAAMG,WAAWV,2BAAoDG;AAErE,OAAO,MAAMN,OAAOI,kBAAkBH,aAAa;IAC/Ca,aAAa;IACbF,MAAMC;AACV,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/menu/index.ts"],"sourcesContent":["export * from './Menu';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,SAAS"}
1
+ {"version":3,"sources":["../../../../src/components/menu/index.ts"],"sourcesContent":["export * from './Menu';\n"],"names":[],"mappings":"AAAA,cAAc,SAAS"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/prompt/Prompt.tsx"],"sourcesContent":["import {Box, Modal, ModalProps} from '@mantine/core';\nimport {Children, ReactElement, ReactNode} from 'react';\nimport PromptClasses from './Prompt.module.css';\nimport {PromptFooter} from './PromptFooter';\n\nexport interface PromptProps extends ModalProps {\n /**\n * Controls prompt appearance\n *\n * @default \"info\"\n */\n variant?: 'success' | 'warning' | 'critical' | 'info';\n children: ReactNode;\n}\ninterface PromptType {\n (props: PromptProps): ReactElement;\n Footer: typeof PromptFooter;\n}\n\nexport const Prompt: PromptType = ({children, ...otherProps}) => {\n const {classNames: classesProps, ...otherPropsWithoutClasses} = otherProps;\n const convertedChildren = Children.toArray(children) as ReactElement[];\n\n const otherChildren = convertedChildren.filter((child) => child.type !== PromptFooter);\n const footer = convertedChildren.find((child) => child.type === PromptFooter);\n\n const classNames = {\n root: PromptClasses.root,\n header: PromptClasses.header,\n close: PromptClasses.whiteClose,\n body: PromptClasses.body,\n title: PromptClasses.title,\n };\n\n return (\n <Modal variant=\"prompt\" classNames={{...classNames, ...classesProps}} size=\"sm\" {...otherPropsWithoutClasses}>\n <Box className={PromptClasses.innerBody}>{otherChildren}</Box>\n {footer}\n </Modal>\n );\n};\n\nPrompt.Footer = PromptFooter;\n"],"names":["Box","Modal","Children","PromptClasses","PromptFooter","Prompt","children","otherProps","classNames","classesProps","otherPropsWithoutClasses","convertedChildren","toArray","otherChildren","filter","child","type","footer","find","root","header","close","whiteClose","body","title","variant","size","className","innerBody","Footer"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";AAAA,SAAQA,GAAG,EAAEC,KAAK,QAAmB,gBAAgB;AACrD,SAAQC,QAAQ,QAAgC,QAAQ;AACxD,OAAOC,mBAAmB,sBAAsB;AAChD,SAAQC,YAAY,QAAO,iBAAiB;AAgB5C,OAAO,MAAMC,SAAqB,CAAC,EAACC,QAAQ,EAAE,GAAGC,YAAW;IACxD,MAAM,EAACC,YAAYC,YAAY,EAAE,GAAGC,0BAAyB,GAAGH;IAChE,MAAMI,oBAAoBT,SAASU,OAAO,CAACN;IAE3C,MAAMO,gBAAgBF,kBAAkBG,MAAM,CAAC,CAACC,QAAUA,MAAMC,IAAI,KAAKZ;IACzE,MAAMa,SAASN,kBAAkBO,IAAI,CAAC,CAACH,QAAUA,MAAMC,IAAI,KAAKZ;IAEhE,MAAMI,aAAa;QACfW,MAAMhB,cAAcgB,IAAI;QACxBC,QAAQjB,cAAciB,MAAM;QAC5BC,OAAOlB,cAAcmB,UAAU;QAC/BC,MAAMpB,cAAcoB,IAAI;QACxBC,OAAOrB,cAAcqB,KAAK;IAC9B;IAEA,qBACI,MAACvB;QAAMwB,SAAQ;QAASjB,YAAY;YAAC,GAAGA,UAAU;YAAE,GAAGC,YAAY;QAAA;QAAGiB,MAAK;QAAM,GAAGhB,wBAAwB;;0BACxG,KAACV;gBAAI2B,WAAWxB,cAAcyB,SAAS;0BAAGf;;YACzCI;;;AAGb,EAAE;AAEFZ,OAAOwB,MAAM,GAAGzB"}
1
+ {"version":3,"sources":["../../../../src/components/prompt/Prompt.tsx"],"sourcesContent":["import {Box, Modal, ModalProps} from '@mantine/core';\nimport {Children, ReactElement, ReactNode} from 'react';\nimport PromptClasses from './Prompt.module.css';\nimport {PromptFooter} from './PromptFooter';\n\nexport interface PromptProps extends ModalProps {\n /**\n * Controls prompt appearance\n *\n * @default \"info\"\n */\n variant?: 'success' | 'warning' | 'critical' | 'info';\n children: ReactNode;\n}\ninterface PromptType {\n (props: PromptProps): ReactElement;\n Footer: typeof PromptFooter;\n}\n\nexport const Prompt: PromptType = ({children, ...otherProps}) => {\n const {classNames: classesProps, ...otherPropsWithoutClasses} = otherProps;\n const convertedChildren = Children.toArray(children) as ReactElement[];\n\n const otherChildren = convertedChildren.filter((child) => child.type !== PromptFooter);\n const footer = convertedChildren.find((child) => child.type === PromptFooter);\n\n const classNames = {\n root: PromptClasses.root,\n header: PromptClasses.header,\n close: PromptClasses.whiteClose,\n body: PromptClasses.body,\n title: PromptClasses.title,\n };\n\n return (\n <Modal variant=\"prompt\" classNames={{...classNames, ...classesProps}} size=\"sm\" {...otherPropsWithoutClasses}>\n <Box className={PromptClasses.innerBody}>{otherChildren}</Box>\n {footer}\n </Modal>\n );\n};\n\nPrompt.Footer = PromptFooter;\n"],"names":["Box","Modal","Children","PromptClasses","PromptFooter","Prompt","children","otherProps","classNames","classesProps","otherPropsWithoutClasses","convertedChildren","toArray","otherChildren","filter","child","type","footer","find","root","header","close","whiteClose","body","title","variant","size","className","innerBody","Footer"],"mappings":";AAAA,SAAQA,GAAG,EAAEC,KAAK,QAAmB,gBAAgB;AACrD,SAAQC,QAAQ,QAAgC,QAAQ;AACxD,OAAOC,mBAAmB,sBAAsB;AAChD,SAAQC,YAAY,QAAO,iBAAiB;AAgB5C,OAAO,MAAMC,SAAqB,CAAC,EAACC,QAAQ,EAAE,GAAGC,YAAW;IACxD,MAAM,EAACC,YAAYC,YAAY,EAAE,GAAGC,0BAAyB,GAAGH;IAChE,MAAMI,oBAAoBT,SAASU,OAAO,CAACN;IAE3C,MAAMO,gBAAgBF,kBAAkBG,MAAM,CAAC,CAACC,QAAUA,MAAMC,IAAI,KAAKZ;IACzE,MAAMa,SAASN,kBAAkBO,IAAI,CAAC,CAACH,QAAUA,MAAMC,IAAI,KAAKZ;IAEhE,MAAMI,aAAa;QACfW,MAAMhB,cAAcgB,IAAI;QACxBC,QAAQjB,cAAciB,MAAM;QAC5BC,OAAOlB,cAAcmB,UAAU;QAC/BC,MAAMpB,cAAcoB,IAAI;QACxBC,OAAOrB,cAAcqB,KAAK;IAC9B;IAEA,qBACI,MAACvB;QAAMwB,SAAQ;QAASjB,YAAY;YAAC,GAAGA,UAAU;YAAE,GAAGC,YAAY;QAAA;QAAGiB,MAAK;QAAM,GAAGhB,wBAAwB;;0BACxG,KAACV;gBAAI2B,WAAWxB,cAAcyB,SAAS;0BAAGf;;YACzCI;;;AAGb,EAAE;AAEFZ,OAAOwB,MAAM,GAAGzB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/prompt/PromptFooter.tsx"],"sourcesContent":["import {FunctionComponent, PropsWithChildren} from 'react';\nimport {StickyFooter, StickyFooterProps} from '../sticky-footer';\n\nexport interface PromptFooterProps extends StickyFooterProps {}\n\nexport const PromptFooter: FunctionComponent<PropsWithChildren<PromptFooterProps>> = ({children, ...otherProps}) => (\n <StickyFooter p={0} pt=\"lg\" {...otherProps}>\n {children}\n </StickyFooter>\n);\n"],"names":["StickyFooter","PromptFooter","children","otherProps","p","pt"],"rangeMappings":";;;;;;;","mappings":";AACA,SAAQA,YAAY,QAA0B,mBAAmB;AAIjE,OAAO,MAAMC,eAAwE,CAAC,EAACC,QAAQ,EAAE,GAAGC,YAAW,iBAC3G,KAACH;QAAaI,GAAG;QAAGC,IAAG;QAAM,GAAGF,UAAU;kBACrCD;OAEP"}
1
+ {"version":3,"sources":["../../../../src/components/prompt/PromptFooter.tsx"],"sourcesContent":["import {FunctionComponent, PropsWithChildren} from 'react';\nimport {StickyFooter, StickyFooterProps} from '../sticky-footer';\n\nexport interface PromptFooterProps extends StickyFooterProps {}\n\nexport const PromptFooter: FunctionComponent<PropsWithChildren<PromptFooterProps>> = ({children, ...otherProps}) => (\n <StickyFooter p={0} pt=\"lg\" {...otherProps}>\n {children}\n </StickyFooter>\n);\n"],"names":["StickyFooter","PromptFooter","children","otherProps","p","pt"],"mappings":";AACA,SAAQA,YAAY,QAA0B,mBAAmB;AAIjE,OAAO,MAAMC,eAAwE,CAAC,EAACC,QAAQ,EAAE,GAAGC,YAAW,iBAC3G,KAACH;QAAaI,GAAG;QAAGC,IAAG;QAAM,GAAGF,UAAU;kBACrCD;OAEP"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/prompt/index.ts"],"sourcesContent":["export * from './Prompt';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,WAAW"}
1
+ {"version":3,"sources":["../../../../src/components/prompt/index.ts"],"sourcesContent":["export * from './Prompt';\n"],"names":[],"mappings":"AAAA,cAAc,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"sourcesContent":["import {Factory, Group, GroupProps, StylesApiProps, factory, useProps, useStyles} from '@mantine/core';\nimport clsx from 'clsx';\nimport {ReactNode} from 'react';\nimport classes from './StickyFooter.module.css';\n\nexport interface StickyFooterProps\n extends Omit<GroupProps, 'classNames' | 'styles' | 'vars' | 'variant'>,\n StylesApiProps<StickyFooterFactory> {\n /**\n * Whether a border is render on top of the footer\n */\n borderTop?: boolean;\n /**\n * Footer's children, usually buttons\n */\n children?: ReactNode;\n /**\n * Use variant 'modal-footer' when rendering the `StickyFooter` inside `Modal`.\n *\n * The 'modal-footer' removes the modal's default padding so that the footer properly hugs the bottom of the modal.\n * It also adds a border on top of the footer.\n */\n variant?: 'default' | 'modal-footer';\n}\n\nexport type StickyFooterStylesNames = 'root';\n\nexport type StickyFooterFactory = Factory<{\n props: StickyFooterProps;\n ref: HTMLDivElement;\n stylesNames: StickyFooterStylesNames;\n}>;\n\nconst defaultProps: Partial<StickyFooterProps> = {\n gap: 'sm',\n justify: 'flex-end',\n};\n\nexport const StickyFooter = factory<StickyFooterFactory>((props, ref) => {\n const {borderTop, justify, gap, children, className, classNames, style, styles, unstyled, vars, ...others} =\n useProps('StickyFooter', defaultProps, props);\n const getStyles = useStyles<StickyFooterFactory>({\n name: 'StickyFooter',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n });\n\n const css = getStyles('root');\n\n return (\n <Group\n justify={justify}\n gap={gap}\n className={clsx(css.className, {[classes.border]: !!borderTop})}\n style={css.style}\n ref={ref}\n {...others}\n >\n {children}\n </Group>\n );\n});\n"],"names":["Group","factory","useProps","useStyles","clsx","classes","defaultProps","gap","justify","StickyFooter","props","ref","borderTop","children","className","classNames","style","styles","unstyled","vars","others","getStyles","name","css","border"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";AAAA,SAAiBA,KAAK,EAA8BC,OAAO,EAAEC,QAAQ,EAAEC,SAAS,QAAO,gBAAgB;AACvG,OAAOC,UAAU,OAAO;AAExB,OAAOC,aAAa,4BAA4B;AA8BhD,MAAMC,eAA2C;IAC7CC,KAAK;IACLC,SAAS;AACb;AAEA,OAAO,MAAMC,eAAeR,QAA6B,CAACS,OAAOC;IAC7D,MAAM,EAACC,SAAS,EAAEJ,OAAO,EAAED,GAAG,EAAEM,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,IAAI,EAAE,GAAGC,QAAO,GACtGlB,SAAS,gBAAgBI,cAAcI;IAC3C,MAAMW,YAAYlB,UAA+B;QAC7CmB,MAAM;QACNjB;QACAK;QACAI;QACAE;QACAD;QACAE;QACAC;IACJ;IAEA,MAAMK,MAAMF,UAAU;IAEtB,qBACI,KAACrB;QACGQ,SAASA;QACTD,KAAKA;QACLO,WAAWV,KAAKmB,IAAIT,SAAS,EAAE;YAAC,CAACT,QAAQmB,MAAM,CAAC,EAAE,CAAC,CAACZ;QAAS;QAC7DI,OAAOO,IAAIP,KAAK;QAChBL,KAAKA;QACJ,GAAGS,MAAM;kBAETP;;AAGb,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"sourcesContent":["import {Factory, Group, GroupProps, StylesApiProps, factory, useProps, useStyles} from '@mantine/core';\nimport clsx from 'clsx';\nimport {ReactNode} from 'react';\nimport classes from './StickyFooter.module.css';\n\nexport interface StickyFooterProps\n extends Omit<GroupProps, 'classNames' | 'styles' | 'vars' | 'variant'>,\n StylesApiProps<StickyFooterFactory> {\n /**\n * Whether a border is render on top of the footer\n */\n borderTop?: boolean;\n /**\n * Footer's children, usually buttons\n */\n children?: ReactNode;\n /**\n * Use variant 'modal-footer' when rendering the `StickyFooter` inside `Modal`.\n *\n * The 'modal-footer' removes the modal's default padding so that the footer properly hugs the bottom of the modal.\n * It also adds a border on top of the footer.\n */\n variant?: 'default' | 'modal-footer';\n}\n\nexport type StickyFooterStylesNames = 'root';\n\nexport type StickyFooterFactory = Factory<{\n props: StickyFooterProps;\n ref: HTMLDivElement;\n stylesNames: StickyFooterStylesNames;\n}>;\n\nconst defaultProps: Partial<StickyFooterProps> = {\n gap: 'sm',\n justify: 'flex-end',\n};\n\nexport const StickyFooter = factory<StickyFooterFactory>((props, ref) => {\n const {borderTop, justify, gap, children, className, classNames, style, styles, unstyled, vars, ...others} =\n useProps('StickyFooter', defaultProps, props);\n const getStyles = useStyles<StickyFooterFactory>({\n name: 'StickyFooter',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n });\n\n const css = getStyles('root');\n\n return (\n <Group\n justify={justify}\n gap={gap}\n className={clsx(css.className, {[classes.border]: !!borderTop})}\n style={css.style}\n ref={ref}\n {...others}\n >\n {children}\n </Group>\n );\n});\n"],"names":["Group","factory","useProps","useStyles","clsx","classes","defaultProps","gap","justify","StickyFooter","props","ref","borderTop","children","className","classNames","style","styles","unstyled","vars","others","getStyles","name","css","border"],"mappings":";AAAA,SAAiBA,KAAK,EAA8BC,OAAO,EAAEC,QAAQ,EAAEC,SAAS,QAAO,gBAAgB;AACvG,OAAOC,UAAU,OAAO;AAExB,OAAOC,aAAa,4BAA4B;AA8BhD,MAAMC,eAA2C;IAC7CC,KAAK;IACLC,SAAS;AACb;AAEA,OAAO,MAAMC,eAAeR,QAA6B,CAACS,OAAOC;IAC7D,MAAM,EAACC,SAAS,EAAEJ,OAAO,EAAED,GAAG,EAAEM,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,IAAI,EAAE,GAAGC,QAAO,GACtGlB,SAAS,gBAAgBI,cAAcI;IAC3C,MAAMW,YAAYlB,UAA+B;QAC7CmB,MAAM;QACNjB;QACAK;QACAI;QACAE;QACAD;QACAE;QACAC;IACJ;IAEA,MAAMK,MAAMF,UAAU;IAEtB,qBACI,KAACrB;QACGQ,SAASA;QACTD,KAAKA;QACLO,WAAWV,KAAKmB,IAAIT,SAAS,EAAE;YAAC,CAACT,QAAQmB,MAAM,CAAC,EAAE,CAAC,CAACZ;QAAS;QAC7DI,OAAOO,IAAIP,KAAK;QAChBL,KAAKA;QACJ,GAAGS,MAAM;kBAETP;;AAGb,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/sticky-footer/index.ts"],"sourcesContent":["export * from './StickyFooter';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,iBAAiB"}
1
+ {"version":3,"sources":["../../../../src/components/sticky-footer/index.ts"],"sourcesContent":["export * from './StickyFooter';\n"],"names":[],"mappings":"AAAA,cAAc,iBAAiB"}
@@ -1,6 +1,6 @@
1
1
  import { Factory } from '@mantine/core';
2
2
  import { ColumnDef } from '@tanstack/react-table';
3
- import { ForwardedRef, ReactElement } from 'react';
3
+ import { ForwardedRef } from 'react';
4
4
  import { CustomComponentThemeExtend } from '../../utils';
5
5
  import { TableLayout, TableProps } from './Table.types';
6
6
  import { TableLayouts } from './layouts/TableLayouts';
@@ -50,25 +50,25 @@ export declare const Table: {
50
50
  }): import("react/jsx-runtime").JSX.Element;
51
51
  AccordionColumn: ColumnDef<unknown>;
52
52
  ActionsColumn: ColumnDef<unknown>;
53
- ActionItem: (<C = "button">(props: import("@mantine/core").PolymorphicComponentProps<C, import("./table-actions").TableActionItemProps>) => ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(import("./table-actions").TableActionItemProps & {
53
+ ActionItem: (<C = "button">(props: import("@mantine/core").PolymorphicComponentProps<C, import("./table-actions").TableActionItemProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(import("./table-actions").TableActionItemProps & {
54
54
  component?: any;
55
55
  } & Omit<Omit<any, "ref">, "component" | keyof import("./table-actions").TableActionItemProps> & {
56
56
  ref?: any;
57
- renderRoot?: (props: any) => any;
57
+ renderRoot?: ((props: any) => any) | undefined;
58
58
  }) | (import("./table-actions").TableActionItemProps & {
59
59
  component: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
60
- renderRoot?: (props: Record<string, any>) => any;
60
+ renderRoot?: ((props: Record<string, any>) => any) | undefined;
61
61
  })>, never> & import("@mantine/core/lib/core/factory/factory").ThemeExtend<{
62
62
  props: import("./table-actions").TableActionItemProps;
63
63
  defaultRef: HTMLButtonElement;
64
64
  defaultComponent: "button";
65
- stylesNames: "actionItemRoot";
65
+ stylesNames: TableActionItemStylesNames;
66
66
  compound: true;
67
67
  }> & import("@mantine/core/lib/core/factory/factory").ComponentClasses<{
68
68
  props: import("./table-actions").TableActionItemProps;
69
69
  defaultRef: HTMLButtonElement;
70
70
  defaultComponent: "button";
71
- stylesNames: "actionItemRoot";
71
+ stylesNames: TableActionItemStylesNames;
72
72
  compound: true;
73
73
  }>;
74
74
  CollapsibleColumn: ColumnDef<unknown>;
@@ -81,7 +81,7 @@ export declare const Table: {
81
81
  DateRangePicker: import("@mantine/core").MantineComponent<{
82
82
  props: import("./table-date-range-picker/TableDateRangePicker").TableDateRangePickerProps;
83
83
  ref: HTMLDivElement;
84
- stylesNames: "dateRangeRoot";
84
+ stylesNames: TableDateRangePickerStylesNames;
85
85
  compound: true;
86
86
  }>;
87
87
  Filter: import("@mantine/core").MantineComponent<{
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,OAAO,EAA8B,MAAM,eAAe,CAAC;AAEhF,OAAO,EACH,SAAS,EAMZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAW,YAAY,EAAE,YAAY,EAAoB,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAC,0BAA0B,EAAW,MAAM,aAAa,CAAC;AAEjE,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAC,eAAe,EAAE,0BAA0B,EAAE,6BAA6B,EAAC,MAAM,iBAAiB,CAAC;AAC3G,OAAO,EAAC,2BAA2B,EAAC,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AACrE,OAAO,EACH,oBAAoB,EACpB,sBAAsB,EACtB,iCAAiC,EACpC,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAC,oBAAoB,EAAE,+BAA+B,EAAC,MAAM,+CAA+C,CAAC;AACpH,OAAO,EAAC,oBAAo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,CAAC,CAAC;AAWH,eAAO,MAAM,KAAK;KAAI,CAAC,SAAU,UAAU,CAAC,CAAC,CAAC,GAAG;QAAC,GAAG,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;KAAC;;;gJA5EhE,MAAO,YAAY;;;;;;0BAIS,OAAO,gCAC9C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAuCN,UAAU,CAAC,OAAO,CAAC;aACrB,cAAc;qBACN,gBAAgB;0BACX;YACd,eAAe,EAAE,OAAO,oBAAoB,CAAC;YAC7C,aAAa,EAAE,OAAO,kBAAkB,CAAC;YACzC,UAAU,EAAE,OAAO,eAAe,CAAC;YACnC,iBAAiB,EAAE,OAAO,sBAAsB,CAAC;YACjD,eAAe,EAAE,OAAO,oBAAoB,CAAC;YAC7C,eAAe,EAAE,OAAO,oBAAoB,CAAC;YAC7C,MAAM,EAAE,OAAO,WAAW,CAAC;YAC3B,MAAM,EAAE,OAAO,WAAW,CAAC;YAC3B,MAAM,EAAE,OAAO,WAAW,CAAC;YAC3B,WAAW,EAAE,OAAO,gBAAgB,CAAC;YACrC,OAAO,EAAE,OAAO,YAAY,CAAC;YAC7B,OAAO,EAAE,OAAO,YAAY,CAAC;YAC7B,MAAM,EAAE,OAAO,WAAW,CAAC;YAC3B,UAAU,EAAE,OAAO,eAAe,CAAC;YACnC,OAAO,EAAE,OAAO,YAAY,CAAC;YAC7B,SAAS,EAAE,OAAO,cAAc,CAAC;SACpC;;CAoNJ,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC"}
@@ -165,7 +165,6 @@ export const Table = (props)=>{
165
165
  /*#__PURE__*/ _jsxs(Box, {
166
166
  component: "table",
167
167
  ...getStyles('table'),
168
- pb: "sm",
169
168
  mod: {
170
169
  loading
171
170
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/table/Table.tsx"],"sourcesContent":["import {Box, Center, Factory, Loader, useProps, useStyles} from '@mantine/core';\nimport {useClickOutside, useMergedRef} from '@mantine/hooks';\nimport {\n ColumnDef,\n Row,\n RowSelectionState,\n defaultColumnSizing,\n getCoreRowModel,\n useReactTable,\n} from '@tanstack/react-table';\nimport isEqual from 'fast-deep-equal';\nimport {Children, ForwardedRef, ReactElement, useEffect, useRef} from 'react';\nimport {CustomComponentThemeExtend, identity} from '../../utils';\nimport classes from './Table.module.css';\nimport {TableLayout, TableProps} from './Table.types';\nimport {TableProvider} from './TableContext';\nimport {TableLayouts} from './layouts/TableLayouts';\nimport {TableActionItem, TableActionItemStylesNames, TableHeaderActionsStylesNames} from './table-actions';\nimport {TableActionsListStylesNames} from './table-actions/TableActionsList';\nimport {TableActionsColumn} from './table-column/TableActionsColumn';\nimport {\n TableAccordionColumn,\n TableCollapsibleColumn,\n TableCollapsibleColumnStylesNames,\n} from './table-column/TableCollapsibleColumn';\nimport {TableSelectableColumn} from './table-column/TableSelectableColumn';\nimport {TableColumnsSelector, TableColumnsSelectorStylesNames} from './table-columns-selector/TableColumnsSelector';\nimport {TableDateRangePicker, TableDateRangePickerStylesNames} from './table-date-range-picker/TableDateRangePicker';\nimport {TableFilter, TableFilterStylesNames} from './table-filter/TableFilter';\nimport {TableFooter} from './table-footer/TableFooter';\nimport {TableHeader, TableHeaderStylesNames} from './table-header/TableHeader';\nimport {TableThStylesNames} from './table-header/Th';\nimport {TableLastUpdated, TableLastUpdatedStylesNames} from './table-last-updated/TableLastUpdated';\nimport {TableLoading} from './table-loading/TableLoading';\nimport {TableNoData} from './table-no-data/TableNoData';\nimport {TablePagination} from './table-pagination/TablePagination';\nimport {TablePerPage} from './table-per-page/TablePerPage';\nimport {TablePredicate, TablePredicateStylesNames} from './table-predicate/TablePredicate';\nimport {TableState} from './use-table';\n\ntype TableStylesNames =\n | 'root'\n | 'table'\n | 'header'\n | 'body'\n | TableHeaderActionsStylesNames\n | TableActionsListStylesNames\n | TableActionItemStylesNames\n | TableCollapsibleColumnStylesNames\n | TableDateRangePickerStylesNames\n | TableFilterStylesNames\n | TableHeaderStylesNames\n | TableThStylesNames\n | TableLastUpdatedStylesNames\n | TablePredicateStylesNames\n | TableColumnsSelectorStylesNames;\n\nexport type PlasmaTableFactory = Factory<{\n props: TableProps<unknown>;\n ref: HTMLDivElement;\n stylesNames: TableStylesNames;\n staticComponents: {\n AccordionColumn: typeof TableAccordionColumn;\n ActionsColumn: typeof TableActionsColumn;\n ActionItem: typeof TableActionItem;\n CollapsibleColumn: typeof TableCollapsibleColumn;\n ColumnsSelector: typeof TableColumnsSelector;\n DateRangePicker: typeof TableDateRangePicker;\n Filter: typeof TableFilter;\n Footer: typeof TableFooter;\n Header: typeof TableHeader;\n LastUpdated: typeof TableLastUpdated;\n Layouts: typeof TableLayouts;\n Loading: typeof TableLoading;\n NoData: typeof TableNoData;\n Pagination: typeof TablePagination;\n PerPage: typeof TablePerPage;\n Predicate: typeof TablePredicate;\n };\n}>;\n\nconst defaultProps: Partial<TableProps<unknown>> = {\n layouts: [TableLayouts.Rows as TableLayout],\n layoutProps: {},\n loading: false,\n additionalRootNodes: [],\n options: {},\n getRowActions: () => [],\n};\n\nexport const Table = <T,>(props: TableProps<T> & {ref?: ForwardedRef<HTMLDivElement>}) => {\n const {\n store,\n data,\n getRowId,\n getRowAttributes,\n getRowExpandedContent,\n getRowActions,\n columns,\n layouts,\n layoutProps,\n children,\n loading,\n additionalRootNodes,\n options,\n ref,\n\n // Style props\n style,\n className,\n classNames,\n styles,\n unstyled,\n ...others\n } = useProps('PlasmaTable', defaultProps as TableProps<T>, props);\n\n const getStyles = useStyles<PlasmaTableFactory>({\n name: 'PlasmaTable',\n classes,\n props: props as TableProps<unknown>,\n className,\n style,\n classNames,\n styles,\n unstyled,\n });\n\n const convertedChildren = Children.toArray(children) as ReactElement[];\n const header = convertedChildren.find((child) => child.type === TableHeader);\n const footer = convertedChildren.find((child) => child.type === TableFooter);\n const lastUpdated = convertedChildren.find((child) => child.type === TableLastUpdated);\n const noData = convertedChildren.find((child) => child.type === TableNoData);\n\n const table = useReactTable({\n data,\n state: {\n globalFilter: store.state.globalFilter,\n sorting: store.state.sorting,\n pagination: store.state.pagination,\n columnVisibility: store.state.columnVisibility,\n expanded: store.state.expanded,\n },\n onGlobalFilterChange: store.setGlobalFilter,\n onExpandedChange: store.setExpanded,\n onSortingChange: store.setSorting,\n onPaginationChange: store.setPagination,\n onColumnVisibilityChange: store.setColumnVisibility,\n columns: store.multiRowSelectionEnabled ? [TableSelectableColumn as ColumnDef<T>].concat(columns) : columns,\n getCoreRowModel: getCoreRowModel(),\n manualPagination: options?.getPaginationRowModel === undefined,\n enableMultiRowSelection: !!store.multiRowSelectionEnabled,\n getRowId,\n getRowCanExpand: (row: Row<T>) => !!getRowExpandedContent?.(row.original, row.index, row) ?? false,\n enableRowSelection: !loading,\n defaultColumn: {\n size: undefined,\n minSize: defaultColumnSizing.minSize,\n maxSize: defaultColumnSizing.maxSize,\n },\n rowCount: options?.getFilteredRowModel ? undefined : store.state.totalEntries,\n ...options,\n });\n\n table.setOptions((prev) => ({\n ...prev,\n state: {\n ...prev.state,\n rowSelection: store.state.rowSelection as RowSelectionState,\n },\n onRowSelectionChange: (rowSelectionUpdater) => {\n store.setRowSelection((old) => {\n const newRowSelection = (\n rowSelectionUpdater instanceof Function\n ? rowSelectionUpdater(old as RowSelectionState)\n : rowSelectionUpdater\n ) as TableState<T>['rowSelection'];\n\n if (isEqual(old, newRowSelection)) {\n return old;\n }\n\n const rows = table.getRowModel().rowsById;\n\n Object.keys(newRowSelection).forEach((rowId) => {\n if (newRowSelection[rowId] === true) {\n if (!rows[rowId]) {\n console.error(\n 'The table was not initialized properly, the rowSelection state should contain an object of type Record<string, TData>.',\n );\n }\n newRowSelection[rowId] = rows[rowId]?.original ?? (true as T);\n }\n });\n\n return newRowSelection;\n });\n },\n }));\n\n useEffect(() => {\n // Update the selected rows data when the data prop changes\n if (store.getSelectedRows().length > 0) {\n store.setRowSelection((old) => {\n const rowsById = table.getRowModel().rowsById;\n const newSelection = {...old};\n Object.keys(old).forEach((rowId) => {\n if (rowsById[rowId]) {\n newSelection[rowId] = rowsById[rowId].original;\n }\n });\n return isEqual(newSelection, old) ? old : newSelection;\n });\n }\n }, [data]);\n\n const containerRef = useRef<HTMLDivElement>();\n useClickOutside(\n () => {\n if (!store.multiRowSelectionEnabled) {\n store.clearRowSelection();\n }\n },\n null,\n [containerRef.current, ...additionalRootNodes],\n );\n const mergedRef = useMergedRef(containerRef, ref);\n\n if (!data) {\n return (\n <Center style={{flexGrow: 1}}>\n <Loader />\n </Center>\n );\n }\n\n const Layout =\n store.state.layout === null ? layouts[0] : layouts.find(({displayName}) => displayName === store.state.layout);\n const hasRows = table.getRowModel().rows.length > 0;\n\n return (\n <Box ref={mergedRef} {...others} {...getStyles('root')}>\n <TableProvider<T> value={{getStyles, getRowActions, store, table, layouts, containerRef}}>\n <Layout>\n {store.isVacant && !store.isFiltered ? (\n noData\n ) : (\n <>\n <Box component=\"table\" {...getStyles('table')} pb=\"sm\" mod={{loading}}>\n <thead {...getStyles('header')}>\n {!!header ? (\n <tr>\n <th style={{padding: 0}} colSpan={table.getAllColumns().length}>\n {header}\n </th>\n </tr>\n ) : null}\n <Layout.Header\n getRowExpandedContent={getRowExpandedContent}\n getRowAttributes={getRowAttributes}\n loading={loading}\n {...layoutProps}\n />\n </thead>\n <tbody {...getStyles('body')}>\n {hasRows ? (\n <Layout.Body\n getRowExpandedContent={getRowExpandedContent}\n getRowAttributes={getRowAttributes}\n loading={loading}\n {...layoutProps}\n />\n ) : (\n <tr>\n <td colSpan={table.getAllColumns().length}>\n <TableLoading visible={loading || !store.isFiltered}>\n {noData}\n </TableLoading>\n </td>\n </tr>\n )}\n </tbody>\n </Box>\n {footer}\n {lastUpdated}\n </>\n )}\n </Layout>\n </TableProvider>\n </Box>\n );\n};\n\nexport const TableComponentsOrder = {\n MultiSelectInfo: 7,\n Actions: 6,\n Predicate: 5,\n Filter: 4,\n DateRangePicker: 3,\n ColumnsSelector: 2,\n LayoutControl: 1,\n};\n\nTable.AccordionColumn = TableAccordionColumn;\nTable.ActionsColumn = TableActionsColumn;\nTable.ActionItem = TableActionItem;\nTable.CollapsibleColumn = TableCollapsibleColumn;\nTable.ColumnsSelector = TableColumnsSelector;\nTable.DateRangePicker = TableDateRangePicker;\nTable.Filter = TableFilter;\nTable.Footer = TableFooter;\nTable.Header = TableHeader;\nTable.LastUpdated = TableLastUpdated;\nTable.Layouts = TableLayouts;\nTable.Loading = TableLoading;\nTable.NoData = TableNoData;\nTable.Pagination = TablePagination;\nTable.PerPage = TablePerPage;\nTable.Predicate = TablePredicate;\n\nTable.extend = identity as CustomComponentThemeExtend<PlasmaTableFactory>;\n"],"names":["Box","Center","Loader","useProps","useStyles","useClickOutside","useMergedRef","defaultColumnSizing","getCoreRowModel","useReactTable","isEqual","Children","useEffect","useRef","identity","classes","TableProvider","TableLayouts","TableActionItem","TableActionsColumn","TableAccordionColumn","TableCollapsibleColumn","TableSelectableColumn","TableColumnsSelector","TableDateRangePicker","TableFilter","TableFooter","TableHeader","TableLastUpdated","TableLoading","TableNoData","TablePagination","TablePerPage","TablePredicate","defaultProps","layouts","Rows","layoutProps","loading","additionalRootNodes","options","getRowActions","Table","props","store","data","getRowId","getRowAttributes","getRowExpandedContent","columns","children","ref","style","className","classNames","styles","unstyled","others","getStyles","name","convertedChildren","toArray","header","find","child","type","footer","lastUpdated","noData","table","state","globalFilter","sorting","pagination","columnVisibility","expanded","onGlobalFilterChange","setGlobalFilter","onExpandedChange","setExpanded","onSortingChange","setSorting","onPaginationChange","setPagination","onColumnVisibilityChange","setColumnVisibility","multiRowSelectionEnabled","concat","manualPagination","getPaginationRowModel","undefined","enableMultiRowSelection","getRowCanExpand","row","original","index","enableRowSelection","defaultColumn","size","minSize","maxSize","rowCount","getFilteredRowModel","totalEntries","setOptions","prev","rowSelection","onRowSelectionChange","rowSelectionUpdater","setRowSelection","old","newRowSelection","Function","rows","getRowModel","rowsById","Object","keys","forEach","rowId","console","error","getSelectedRows","length","newSelection","containerRef","clearRowSelection","current","mergedRef","flexGrow","Layout","layout","displayName","hasRows","value","isVacant","isFiltered","component","pb","mod","thead","tr","th","padding","colSpan","getAllColumns","Header","tbody","Body","td","visible","TableComponentsOrder","MultiSelectInfo","Actions","Predicate","Filter","DateRangePicker","ColumnsSelector","LayoutControl","AccordionColumn","ActionsColumn","ActionItem","CollapsibleColumn","Footer","LastUpdated","Layouts","Loading","NoData","Pagination","PerPage","extend"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";AAAA,SAAQA,GAAG,EAAEC,MAAM,EAAWC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,QAAO,gBAAgB;AAChF,SAAQC,eAAe,EAAEC,YAAY,QAAO,iBAAiB;AAC7D,SAIIC,mBAAmB,EACnBC,eAAe,EACfC,aAAa,QACV,wBAAwB;AAC/B,OAAOC,aAAa,kBAAkB;AACtC,SAAQC,QAAQ,EAA8BC,SAAS,EAAEC,MAAM,QAAO,QAAQ;AAC9E,SAAoCC,QAAQ,QAAO,cAAc;AACjE,OAAOC,aAAa,qBAAqB;AAEzC,SAAQC,aAAa,QAAO,iBAAiB;AAC7C,SAAQC,YAAY,QAAO,yBAAyB;AACpD,SAAQC,eAAe,QAAkE,kBAAkB;AAE3G,SAAQC,kBAAkB,QAAO,oCAAoC;AACrE,SACIC,oBAAoB,EACpBC,sBAAsB,QAEnB,wCAAwC;AAC/C,SAAQC,qBAAqB,QAAO,uCAAuC;AAC3E,SAAQC,oBAAoB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,cAAA,KAAC9F;gDAAayH,SAAShH,WAAW,CAACM,MAAM4F,UAAU;0DAC9CpE;;;;;;;wBAOxBF;wBACAC;;;;;;AAO7B,EAAE;AAEF,OAAO,MAAMoF,uBAAuB;IAChCC,iBAAiB;IACjBC,SAAS;IACTC,WAAW;IACXC,QAAQ;IACRC,iBAAiB;IACjBC,iBAAiB;IACjBC,eAAe;AACnB,EAAE;AAEFpH,MAAMqH,eAAe,GAAG3I;AACxBsB,MAAMsH,aAAa,GAAG7I;AACtBuB,MAAMuH,UAAU,GAAG/I;AACnBwB,MAAMwH,iBAAiB,GAAG7I;AAC1BqB,MAAMmH,eAAe,GAAGtI;AACxBmB,MAAMkH,eAAe,GAAGpI;AACxBkB,MAAMiH,MAAM,GAAGlI;AACfiB,MAAMyH,MAAM,GAAGzI;AACfgB,MAAMwG,MAAM,GAAGvH;AACfe,MAAM0H,WAAW,GAAGxI;AACpBc,MAAM2H,OAAO,GAAGpJ;AAChByB,MAAM4H,OAAO,GAAGzI;AAChBa,MAAM6H,MAAM,GAAGzI;AACfY,MAAM8H,UAAU,GAAGzI;AACnBW,MAAM+H,OAAO,GAAGzI;AAChBU,MAAMgH,SAAS,GAAGzH;AAElBS,MAAMgI,MAAM,GAAG5J"}
1
+ {"version":3,"sources":["../../../../src/components/table/Table.tsx"],"sourcesContent":["import {Box, Center, Factory, Loader, useProps, useStyles} from '@mantine/core';\nimport {useClickOutside, useMergedRef} from '@mantine/hooks';\nimport {\n ColumnDef,\n Row,\n RowSelectionState,\n defaultColumnSizing,\n getCoreRowModel,\n useReactTable,\n} from '@tanstack/react-table';\nimport isEqual from 'fast-deep-equal';\nimport {Children, ForwardedRef, ReactElement, useEffect, useRef} from 'react';\nimport {CustomComponentThemeExtend, identity} from '../../utils';\nimport classes from './Table.module.css';\nimport {TableLayout, TableProps} from './Table.types';\nimport {TableProvider} from './TableContext';\nimport {TableLayouts} from './layouts/TableLayouts';\nimport {TableActionItem, TableActionItemStylesNames, TableHeaderActionsStylesNames} from './table-actions';\nimport {TableActionsListStylesNames} from './table-actions/TableActionsList';\nimport {TableActionsColumn} from './table-column/TableActionsColumn';\nimport {\n TableAccordionColumn,\n TableCollapsibleColumn,\n TableCollapsibleColumnStylesNames,\n} from './table-column/TableCollapsibleColumn';\nimport {TableSelectableColumn} from './table-column/TableSelectableColumn';\nimport {TableColumnsSelector, TableColumnsSelectorStylesNames} from './table-columns-selector/TableColumnsSelector';\nimport {TableDateRangePicker, TableDateRangePickerStylesNames} from './table-date-range-picker/TableDateRangePicker';\nimport {TableFilter, TableFilterStylesNames} from './table-filter/TableFilter';\nimport {TableFooter} from './table-footer/TableFooter';\nimport {TableHeader, TableHeaderStylesNames} from './table-header/TableHeader';\nimport {TableThStylesNames} from './table-header/Th';\nimport {TableLastUpdated, TableLastUpdatedStylesNames} from './table-last-updated/TableLastUpdated';\nimport {TableLoading} from './table-loading/TableLoading';\nimport {TableNoData} from './table-no-data/TableNoData';\nimport {TablePagination} from './table-pagination/TablePagination';\nimport {TablePerPage} from './table-per-page/TablePerPage';\nimport {TablePredicate, TablePredicateStylesNames} from './table-predicate/TablePredicate';\nimport {TableState} from './use-table';\n\ntype TableStylesNames =\n | 'root'\n | 'table'\n | 'header'\n | 'body'\n | TableHeaderActionsStylesNames\n | TableActionsListStylesNames\n | TableActionItemStylesNames\n | TableCollapsibleColumnStylesNames\n | TableDateRangePickerStylesNames\n | TableFilterStylesNames\n | TableHeaderStylesNames\n | TableThStylesNames\n | TableLastUpdatedStylesNames\n | TablePredicateStylesNames\n | TableColumnsSelectorStylesNames;\n\nexport type PlasmaTableFactory = Factory<{\n props: TableProps<unknown>;\n ref: HTMLDivElement;\n stylesNames: TableStylesNames;\n staticComponents: {\n AccordionColumn: typeof TableAccordionColumn;\n ActionsColumn: typeof TableActionsColumn;\n ActionItem: typeof TableActionItem;\n CollapsibleColumn: typeof TableCollapsibleColumn;\n ColumnsSelector: typeof TableColumnsSelector;\n DateRangePicker: typeof TableDateRangePicker;\n Filter: typeof TableFilter;\n Footer: typeof TableFooter;\n Header: typeof TableHeader;\n LastUpdated: typeof TableLastUpdated;\n Layouts: typeof TableLayouts;\n Loading: typeof TableLoading;\n NoData: typeof TableNoData;\n Pagination: typeof TablePagination;\n PerPage: typeof TablePerPage;\n Predicate: typeof TablePredicate;\n };\n}>;\n\nconst defaultProps: Partial<TableProps<unknown>> = {\n layouts: [TableLayouts.Rows as TableLayout],\n layoutProps: {},\n loading: false,\n additionalRootNodes: [],\n options: {},\n getRowActions: () => [],\n};\n\nexport const Table = <T,>(props: TableProps<T> & {ref?: ForwardedRef<HTMLDivElement>}) => {\n const {\n store,\n data,\n getRowId,\n getRowAttributes,\n getRowExpandedContent,\n getRowActions,\n columns,\n layouts,\n layoutProps,\n children,\n loading,\n additionalRootNodes,\n options,\n ref,\n\n // Style props\n style,\n className,\n classNames,\n styles,\n unstyled,\n ...others\n } = useProps('PlasmaTable', defaultProps as TableProps<T>, props);\n\n const getStyles = useStyles<PlasmaTableFactory>({\n name: 'PlasmaTable',\n classes,\n props: props as TableProps<unknown>,\n className,\n style,\n classNames,\n styles,\n unstyled,\n });\n\n const convertedChildren = Children.toArray(children) as ReactElement[];\n const header = convertedChildren.find((child) => child.type === TableHeader);\n const footer = convertedChildren.find((child) => child.type === TableFooter);\n const lastUpdated = convertedChildren.find((child) => child.type === TableLastUpdated);\n const noData = convertedChildren.find((child) => child.type === TableNoData);\n\n const table = useReactTable({\n data,\n state: {\n globalFilter: store.state.globalFilter,\n sorting: store.state.sorting,\n pagination: store.state.pagination,\n columnVisibility: store.state.columnVisibility,\n expanded: store.state.expanded,\n },\n onGlobalFilterChange: store.setGlobalFilter,\n onExpandedChange: store.setExpanded,\n onSortingChange: store.setSorting,\n onPaginationChange: store.setPagination,\n onColumnVisibilityChange: store.setColumnVisibility,\n columns: store.multiRowSelectionEnabled ? [TableSelectableColumn as ColumnDef<T>].concat(columns) : columns,\n getCoreRowModel: getCoreRowModel(),\n manualPagination: options?.getPaginationRowModel === undefined,\n enableMultiRowSelection: !!store.multiRowSelectionEnabled,\n getRowId,\n getRowCanExpand: (row: Row<T>) => !!getRowExpandedContent?.(row.original, row.index, row) ?? false,\n enableRowSelection: !loading,\n defaultColumn: {\n size: undefined,\n minSize: defaultColumnSizing.minSize,\n maxSize: defaultColumnSizing.maxSize,\n },\n rowCount: options?.getFilteredRowModel ? undefined : store.state.totalEntries,\n ...options,\n });\n\n table.setOptions((prev) => ({\n ...prev,\n state: {\n ...prev.state,\n rowSelection: store.state.rowSelection as RowSelectionState,\n },\n onRowSelectionChange: (rowSelectionUpdater) => {\n store.setRowSelection((old) => {\n const newRowSelection = (\n rowSelectionUpdater instanceof Function\n ? rowSelectionUpdater(old as RowSelectionState)\n : rowSelectionUpdater\n ) as TableState<T>['rowSelection'];\n\n if (isEqual(old, newRowSelection)) {\n return old;\n }\n\n const rows = table.getRowModel().rowsById;\n\n Object.keys(newRowSelection).forEach((rowId) => {\n if (newRowSelection[rowId] === true) {\n if (!rows[rowId]) {\n console.error(\n 'The table was not initialized properly, the rowSelection state should contain an object of type Record<string, TData>.',\n );\n }\n newRowSelection[rowId] = rows[rowId]?.original ?? (true as T);\n }\n });\n\n return newRowSelection;\n });\n },\n }));\n\n useEffect(() => {\n // Update the selected rows data when the data prop changes\n if (store.getSelectedRows().length > 0) {\n store.setRowSelection((old) => {\n const rowsById = table.getRowModel().rowsById;\n const newSelection = {...old};\n Object.keys(old).forEach((rowId) => {\n if (rowsById[rowId]) {\n newSelection[rowId] = rowsById[rowId].original;\n }\n });\n return isEqual(newSelection, old) ? old : newSelection;\n });\n }\n }, [data]);\n\n const containerRef = useRef<HTMLDivElement>();\n useClickOutside(\n () => {\n if (!store.multiRowSelectionEnabled) {\n store.clearRowSelection();\n }\n },\n null,\n [containerRef.current, ...additionalRootNodes],\n );\n const mergedRef = useMergedRef(containerRef, ref);\n\n if (!data) {\n return (\n <Center style={{flexGrow: 1}}>\n <Loader />\n </Center>\n );\n }\n\n const Layout =\n store.state.layout === null ? layouts[0] : layouts.find(({displayName}) => displayName === store.state.layout);\n const hasRows = table.getRowModel().rows.length > 0;\n\n return (\n <Box ref={mergedRef} {...others} {...getStyles('root')}>\n <TableProvider<T> value={{getStyles, getRowActions, store, table, layouts, containerRef}}>\n <Layout>\n {store.isVacant && !store.isFiltered ? (\n noData\n ) : (\n <>\n <Box component=\"table\" {...getStyles('table')} mod={{loading}}>\n <thead {...getStyles('header')}>\n {!!header ? (\n <tr>\n <th style={{padding: 0}} colSpan={table.getAllColumns().length}>\n {header}\n </th>\n </tr>\n ) : null}\n <Layout.Header\n getRowExpandedContent={getRowExpandedContent}\n getRowAttributes={getRowAttributes}\n loading={loading}\n {...layoutProps}\n />\n </thead>\n <tbody {...getStyles('body')}>\n {hasRows ? (\n <Layout.Body\n getRowExpandedContent={getRowExpandedContent}\n getRowAttributes={getRowAttributes}\n loading={loading}\n {...layoutProps}\n />\n ) : (\n <tr>\n <td colSpan={table.getAllColumns().length}>\n <TableLoading visible={loading || !store.isFiltered}>\n {noData}\n </TableLoading>\n </td>\n </tr>\n )}\n </tbody>\n </Box>\n {footer}\n {lastUpdated}\n </>\n )}\n </Layout>\n </TableProvider>\n </Box>\n );\n};\n\nexport const TableComponentsOrder = {\n MultiSelectInfo: 7,\n Actions: 6,\n Predicate: 5,\n Filter: 4,\n DateRangePicker: 3,\n ColumnsSelector: 2,\n LayoutControl: 1,\n};\n\nTable.AccordionColumn = TableAccordionColumn;\nTable.ActionsColumn = TableActionsColumn;\nTable.ActionItem = TableActionItem;\nTable.CollapsibleColumn = TableCollapsibleColumn;\nTable.ColumnsSelector = TableColumnsSelector;\nTable.DateRangePicker = TableDateRangePicker;\nTable.Filter = TableFilter;\nTable.Footer = TableFooter;\nTable.Header = TableHeader;\nTable.LastUpdated = TableLastUpdated;\nTable.Layouts = TableLayouts;\nTable.Loading = TableLoading;\nTable.NoData = TableNoData;\nTable.Pagination = TablePagination;\nTable.PerPage = TablePerPage;\nTable.Predicate = TablePredicate;\n\nTable.extend = identity as CustomComponentThemeExtend<PlasmaTableFactory>;\n"],"names":["Box","Center","Loader","useProps","useStyles","useClickOutside","useMergedRef","defaultColumnSizing","getCoreRowModel","useReactTable","isEqual","Children","useEffect","useRef","identity","classes","TableProvider","TableLayouts","TableActionItem","TableActionsColumn","TableAccordionColumn","TableCollapsibleColumn","TableSelectableColumn","TableColumnsSelector","TableDateRangePicker","TableFilter","TableFooter","TableHeader","TableLastUpdated","TableLoading","TableNoData","TablePagination","TablePerPage","TablePredicate","defaultProps","layouts","Rows","layoutProps","loading","additionalRootNodes","options","getRowActions","Table","props","store","data","getRowId","getRowAttributes","getRowExpandedContent","columns","children","ref","style","className","classNames","styles","unstyled","others","getStyles","name","convertedChildren","toArray","header","find","child","type","footer","lastUpdated","noData","table","state","globalFilter","sorting","pagination","columnVisibility","expanded","onGlobalFilterChange","setGlobalFilter","onExpandedChange","setExpanded","onSortingChange","setSorting","onPaginationChange","setPagination","onColumnVisibilityChange","setColumnVisibility","multiRowSelectionEnabled","concat","manualPagination","getPaginationRowModel","undefined","enableMultiRowSelection","getRowCanExpand","row","original","index","enableRowSelection","defaultColumn","size","minSize","maxSize","rowCount","getFilteredRowModel","totalEntries","setOptions","prev","rowSelection","onRowSelectionChange","rowSelectionUpdater","setRowSelection","old","newRowSelection","Function","rows","getRowModel","rowsById","Object","keys","forEach","rowId","console","error","getSelectedRows","length","newSelection","containerRef","clearRowSelection","current","mergedRef","flexGrow","Layout","layout","displayName","hasRows","value","isVacant","isFiltered","component","mod","thead","tr","th","padding","colSpan","getAllColumns","Header","tbody","Body","td","visible","TableComponentsOrder","MultiSelectInfo","Actions","Predicate","Filter","DateRangePicker","ColumnsSelector","LayoutControl","AccordionColumn","ActionsColumn","ActionItem","CollapsibleColumn","Footer","LastUpdated","Layouts","Loading","NoData","Pagination","PerPage","extend"],"mappings":";AAAA,SAAQA,GAAG,EAAEC,MAAM,EAAWC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,QAAO,gBAAg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AS,GAAGxH;AAElBS,MAAM+H,MAAM,GAAG3J"}
@@ -1,5 +1,6 @@
1
1
  .table {
2
2
  width: 100%;
3
+ padding-bottom: var(--mantine-spacing-sm);
3
4
  }
4
5
 
5
6
  .header {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/table/Table.types.ts"],"sourcesContent":["import {Icon} from '@coveord/plasma-react-icons';\nimport {BoxProps, StylesApiProps} from '@mantine/core';\nimport {ColumnDef, CoreOptions, Row, TableOptions} from '@tanstack/table-core';\nimport {ReactElement, ReactNode} from 'react';\n\nimport {type PlasmaTableFactory} from './Table';\nimport {TableStore} from './use-table';\n\nexport type TableLayoutProps<TData = unknown> = Pick<\n TableProps<TData>,\n 'getRowExpandedContent' | 'getRowAttributes' | 'loading'\n> &\n TableProps<TData>['layoutProps'];\n\nexport interface TableLayout {\n (props: {children: ReactNode}): ReactElement;\n /**\n * Name of the layout.\n * Will be displayed in the layout control\n */\n displayName: string;\n /**\n * Icon illustrating the layout.\n * Will be displayed in the layout control\n */\n Icon?: Icon;\n /**\n * Header portion of the table.\n * In the standard row layout that is where column headers would be displayed.\n */\n Header: <TData>(props: TableLayoutProps<TData>) => ReactElement;\n /**\n * Body portion of the table.\n * In the standard row layout that is where the rows would be displayed.\n */\n Body: <TData>(props: TableLayoutProps<TData>) => ReactElement;\n}\n\nexport interface TableProps<TData> extends BoxProps, StylesApiProps<PlasmaTableFactory> {\n store: TableStore<TData>;\n /**\n * Data to display in the table. Use `null` when the table is initially loading.\n */\n data: TData[] | null;\n /**\n * Defines how each row is uniquely identified. It is highly recommended that you specify this prop to an ID that makes sense.\n */\n getRowId?: CoreOptions<TData>['getRowId'];\n /**\n * Allows to define html attributes that will be passed down to each row.\n */\n getRowAttributes?: (datum: TData, index: number, row: Row<TData>) => Record<string, unknown>;\n /**\n * Function that generates the expandable content of a row\n * Return null for rows that don't need to be expandable\n *\n * @param datum the row for which the children should be generated.\n */\n getRowExpandedContent?: (datum: TData, index: number, row: Row<TData>) => ReactNode;\n /**\n * Function that generates the actions for the selected rows\n * If the table doesn't support multi selection, access the data[0]\n * Return an empty array for rows that don't have actions\n *\n * @param datum the row for which the children should be generated.\n * @default []\n */\n getRowActions?: (data: TData[]) => TableAction[];\n /**\n * Columns to display in the table.\n *\n * @see https://tanstack.com/table/v8/docs/guide/column-defs\n */\n columns: Array<ColumnDef<TData>>;\n /**\n * Available layouts\n *\n * @default [Table.Layouts.Rows]\n */\n layouts?: TableLayout[];\n /**\n * Props passed down to the active layout Header and Body components\n */\n layoutProps?: {\n /**\n * Called by the table layout when a row is double clicked.\n * @param selectedRow The data of the row that was double clicked\n * @param index The index of the row that was double clicked\n * @param row The row object that was double clicked\n * @returns\n */\n onRowDoubleClick?: (selectedRow: TData, index: number, row: Row<TData>) => void;\n } & Record<string, any>;\n /**\n * Whether the table is loading or not\n *\n * @default false\n */\n loading?: boolean;\n /**\n * Children to display in the table. They need to be wrap in either `Table.Header` or `Table.Footer`\n *\n * @example\n * <Table ...>\n * <Table.Header>\n * <div>Hello</div>\n * </Table.Header>\n * </Table>\n */\n children?: ReactNode;\n /**\n * Nodes that are considered inside the table.\n *\n * Rows normally get unselected when clicking outside the table, but sometimes it has difficulties guessing what is inside or outside, for example when using modals.\n * You can use this prop to force the table to consider some nodes to be inside the table.\n *\n * @see https://mantine.dev/hooks/use-click-outside/#multiple-nodes\n */\n additionalRootNodes?: HTMLElement[];\n /**\n * Additional options that can be passed to the table\n */\n options?: Omit<\n Partial<TableOptions<TData>>,\n | 'initialState'\n | 'data'\n | 'columns'\n | 'manualPagination'\n | 'enableMultiRowSelection'\n | 'getRowId'\n | 'getRowCanExpand'\n | 'enableRowSelection'\n | 'onRowSelectionChange'\n >;\n}\n\nexport interface TableAction {\n /**\n * Group to which the action belongs\n * $$primary is reserved for primary actions\n * $$confirmPrompt is reserved for InlineConfirm.Prompt, it will hide other actions when prompt is opened\n * other string will be considered secondary custom group\n */\n group: '$$primary' | '$$confirmPrompt' | (string & {});\n /**\n * Component to render, should be either `Table.PrimaryAction` or `Table.SecondaryAction`\n */\n component: ReactNode;\n}\n"],"names":[],"rangeMappings":"","mappings":"AAwIA,WAYC"}
1
+ {"version":3,"sources":["../../../../src/components/table/Table.types.ts"],"sourcesContent":["import {Icon} from '@coveord/plasma-react-icons';\nimport {BoxProps, StylesApiProps} from '@mantine/core';\nimport {ColumnDef, CoreOptions, Row, TableOptions} from '@tanstack/table-core';\nimport {ReactElement, ReactNode} from 'react';\n\nimport {type PlasmaTableFactory} from './Table';\nimport {TableStore} from './use-table';\n\nexport type TableLayoutProps<TData = unknown> = Pick<\n TableProps<TData>,\n 'getRowExpandedContent' | 'getRowAttributes' | 'loading'\n> &\n TableProps<TData>['layoutProps'];\n\nexport interface TableLayout {\n (props: {children: ReactNode}): ReactElement;\n /**\n * Name of the layout.\n * Will be displayed in the layout control\n */\n displayName: string;\n /**\n * Icon illustrating the layout.\n * Will be displayed in the layout control\n */\n Icon?: Icon;\n /**\n * Header portion of the table.\n * In the standard row layout that is where column headers would be displayed.\n */\n Header: <TData>(props: TableLayoutProps<TData>) => ReactElement;\n /**\n * Body portion of the table.\n * In the standard row layout that is where the rows would be displayed.\n */\n Body: <TData>(props: TableLayoutProps<TData>) => ReactElement;\n}\n\nexport interface TableProps<TData> extends BoxProps, StylesApiProps<PlasmaTableFactory> {\n store: TableStore<TData>;\n /**\n * Data to display in the table. Use `null` when the table is initially loading.\n */\n data: TData[] | null;\n /**\n * Defines how each row is uniquely identified. It is highly recommended that you specify this prop to an ID that makes sense.\n */\n getRowId?: CoreOptions<TData>['getRowId'];\n /**\n * Allows to define html attributes that will be passed down to each row.\n */\n getRowAttributes?: (datum: TData, index: number, row: Row<TData>) => Record<string, unknown>;\n /**\n * Function that generates the expandable content of a row\n * Return null for rows that don't need to be expandable\n *\n * @param datum the row for which the children should be generated.\n */\n getRowExpandedContent?: (datum: TData, index: number, row: Row<TData>) => ReactNode;\n /**\n * Function that generates the actions for the selected rows\n * If the table doesn't support multi selection, access the data[0]\n * Return an empty array for rows that don't have actions\n *\n * @param datum the row for which the children should be generated.\n * @default []\n */\n getRowActions?: (data: TData[]) => TableAction[];\n /**\n * Columns to display in the table.\n *\n * @see https://tanstack.com/table/v8/docs/guide/column-defs\n */\n columns: Array<ColumnDef<TData>>;\n /**\n * Available layouts\n *\n * @default [Table.Layouts.Rows]\n */\n layouts?: TableLayout[];\n /**\n * Props passed down to the active layout Header and Body components\n */\n layoutProps?: {\n /**\n * Called by the table layout when a row is double clicked.\n * @param selectedRow The data of the row that was double clicked\n * @param index The index of the row that was double clicked\n * @param row The row object that was double clicked\n * @returns\n */\n onRowDoubleClick?: (selectedRow: TData, index: number, row: Row<TData>) => void;\n } & Record<string, any>;\n /**\n * Whether the table is loading or not\n *\n * @default false\n */\n loading?: boolean;\n /**\n * Children to display in the table. They need to be wrap in either `Table.Header` or `Table.Footer`\n *\n * @example\n * <Table ...>\n * <Table.Header>\n * <div>Hello</div>\n * </Table.Header>\n * </Table>\n */\n children?: ReactNode;\n /**\n * Nodes that are considered inside the table.\n *\n * Rows normally get unselected when clicking outside the table, but sometimes it has difficulties guessing what is inside or outside, for example when using modals.\n * You can use this prop to force the table to consider some nodes to be inside the table.\n *\n * @see https://mantine.dev/hooks/use-click-outside/#multiple-nodes\n */\n additionalRootNodes?: HTMLElement[];\n /**\n * Additional options that can be passed to the table\n */\n options?: Omit<\n Partial<TableOptions<TData>>,\n | 'initialState'\n | 'data'\n | 'columns'\n | 'manualPagination'\n | 'enableMultiRowSelection'\n | 'getRowId'\n | 'getRowCanExpand'\n | 'enableRowSelection'\n | 'onRowSelectionChange'\n >;\n}\n\nexport interface TableAction {\n /**\n * Group to which the action belongs\n * $$primary is reserved for primary actions\n * $$confirmPrompt is reserved for InlineConfirm.Prompt, it will hide other actions when prompt is opened\n * other string will be considered secondary custom group\n */\n group: '$$primary' | '$$confirmPrompt' | (string & {});\n /**\n * Component to render, should be either `Table.PrimaryAction` or `Table.SecondaryAction`\n */\n component: ReactNode;\n}\n"],"names":[],"mappings":"AAwIA,WAYC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableContext.d.ts","sourceRoot":"","sources":["../../../../src/components/table/TableContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAC,gBAAgB,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;AACrD,OAAO,EAAC,KAAK,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAChD,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACvD,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAEvC,MAAM,WAAW,iBAAiB,CAAC,KAAK,GAAG,OAAO;IAC9C,SAAS,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAC5C,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACzB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,WAAW,EAAE,CAAC;IACjD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,YAAY,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACjC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAC5B,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;CACzB;AAED,eAAO,MAAO,aAAa,iBAEN,mBAAmB,KAAK,CAAC,KAAK,YAAY,EAFlC,eAAe,eAEkC,kBAAkB,KAAK,CAAE,CAAC"}
1
+ {"version":3,"file":"TableContext.d.ts","sourceRoot":"","sources":["../../../../src/components/table/TableContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAC,gBAAgB,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;AACrD,OAAO,EAAC,KAAK,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAChD,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACvD,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAEvC,MAAM,WAAW,iBAAiB,CAAC,KAAK,GAAG,OAAO;IAC9C,SAAS,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAC5C,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACzB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,WAAW,EAAE,CAAC;IACjD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,YAAY,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACjC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAC5B,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;CACzB;AAED,eAAO,MAAO,aAAa,GAEpB,KAAK,SAAS,kBAAkB,CAAC,KAAK,CAAC,KAAK,YAAY,EAFlC,eAAe,GAEsB,KAAK,OAAO,iBAAiB,CAAC,KAAK,CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/table/TableContext.tsx"],"sourcesContent":["import {createSafeContext, GetStylesApi} from '@mantine/core';\nimport {Table} from '@tanstack/table-core';\nimport {MutableRefObject, ReactElement} from 'react';\nimport {type PlasmaTableFactory} from './Table';\nimport {TableAction, TableLayout} from './Table.types';\nimport {TableStore} from './use-table';\n\nexport interface TableContextValue<TData = unknown> {\n getStyles: GetStylesApi<PlasmaTableFactory>;\n store: TableStore<TData>;\n layouts: TableLayout[];\n getRowActions: (datum: TData[]) => TableAction[];\n table: Table<TData>;\n containerRef: MutableRefObject<HTMLDivElement>;\n}\n\nexport interface TableProviderProps<T> {\n value: TableContextValue<T>;\n children: JSX.Element;\n}\n\nexport const [TableProvider, useTableContext] = createSafeContext<TableContextValue>(\n 'Table component was not found in the tree',\n) as [<TData>(props: TableProviderProps<TData>) => ReactElement, <TData>() => TableContextValue<TData>];\n"],"names":["createSafeContext","TableProvider","useTableContext"],"rangeMappings":";","mappings":"AAAA,SAAQA,iBAAiB,QAAqB,gBAAgB;AAqB9D,OAAO,MAAM,CAACC,eAAeC,gBAAgB,GAAGF,kBAC5C,6CACoG"}
1
+ {"version":3,"sources":["../../../../src/components/table/TableContext.tsx"],"sourcesContent":["import {createSafeContext, GetStylesApi} from '@mantine/core';\nimport {Table} from '@tanstack/table-core';\nimport {MutableRefObject, ReactElement} from 'react';\nimport {type PlasmaTableFactory} from './Table';\nimport {TableAction, TableLayout} from './Table.types';\nimport {TableStore} from './use-table';\n\nexport interface TableContextValue<TData = unknown> {\n getStyles: GetStylesApi<PlasmaTableFactory>;\n store: TableStore<TData>;\n layouts: TableLayout[];\n getRowActions: (datum: TData[]) => TableAction[];\n table: Table<TData>;\n containerRef: MutableRefObject<HTMLDivElement>;\n}\n\nexport interface TableProviderProps<T> {\n value: TableContextValue<T>;\n children: JSX.Element;\n}\n\nexport const [TableProvider, useTableContext] = createSafeContext<TableContextValue>(\n 'Table component was not found in the tree',\n) as [<TData>(props: TableProviderProps<TData>) => ReactElement, <TData>() => TableContextValue<TData>];\n"],"names":["createSafeContext","TableProvider","useTableContext"],"mappings":"AAAA,SAAQA,iBAAiB,QAAqB,gBAAgB;AAqB9D,OAAO,MAAM,CAACC,eAAeC,gBAAgB,GAAGF,kBAC5C,6CACoG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/table/index.ts"],"sourcesContent":["export {flexRender as renderTableCell} from '@tanstack/react-table';\nexport * from './Table';\nexport {type TableLayout, type TableProps, type TableLayoutProps, type TableAction} from './Table.types';\nexport {useTable, type TableState, type TableStore, type UseTableOptions} from './use-table';\nexport {useTableContext} from './TableContext';\n"],"names":["flexRender","renderTableCell","useTable","useTableContext"],"rangeMappings":";;;","mappings":"AAAA,SAAQA,cAAcC,eAAe,QAAO,wBAAwB;AACpE,cAAc,UAAU;AAExB,SAAQC,QAAQ,QAA+D,cAAc;AAC7F,SAAQC,eAAe,QAAO,iBAAiB"}
1
+ {"version":3,"sources":["../../../../src/components/table/index.ts"],"sourcesContent":["export {flexRender as renderTableCell} from '@tanstack/react-table';\nexport * from './Table';\nexport {type TableLayout, type TableProps, type TableLayoutProps, type TableAction} from './Table.types';\nexport {useTable, type TableState, type TableStore, type UseTableOptions} from './use-table';\nexport {useTableContext} from './TableContext';\n"],"names":["flexRender","renderTableCell","useTable","useTableContext"],"mappings":"AAAA,SAAQA,cAAcC,eAAe,QAAO,wBAAwB;AACpE,cAAc,UAAU;AAExB,SAAQC,QAAQ,QAA+D,cAAc;AAC7F,SAAQC,eAAe,QAAO,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/table/layouts/TableLayoutControl.tsx"],"sourcesContent":["import {Box, Center, Grid, SegmentedControl, Space} from '@mantine/core';\nimport {TableComponentsOrder} from '../Table';\nimport {useTableContext} from '../TableContext';\n\nexport const TableLayoutControl = () => {\n const {layouts, store} = useTableContext();\n return layouts.length > 1 ? (\n <Grid.Col order={TableComponentsOrder.LayoutControl} span=\"content\">\n <SegmentedControl\n data={layouts.map(({displayName, Icon}) => ({\n value: displayName,\n label: (\n <Center>\n {Icon ? (\n <>\n <Icon height={16} />\n <Space w=\"xs\" />\n </>\n ) : null}\n <Box>{displayName}</Box>\n </Center>\n ),\n }))}\n value={store.state.layout === null ? layouts[0].displayName : store.state.layout}\n onChange={store.setLayout}\n />\n </Grid.Col>\n ) : null;\n};\n"],"names":["Box","Center","Grid","SegmentedControl","Space","TableComponentsOrder","useTableContext","TableLayoutControl","layouts","store","length","Col","order","LayoutControl","span","data","map","displayName","Icon","value","label","height","w","state","layout","onChange","setLayout"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";AAAA,SAAQA,GAAG,EAAEC,MAAM,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,QAAO,gBAAgB;AACzE,SAAQC,oBAAoB,QAAO,WAAW;AAC9C,SAAQC,eAAe,QAAO,kBAAkB;AAEhD,OAAO,MAAMC,qBAAqB;IAC9B,MAAM,EAACC,OAAO,EAAEC,KAAK,EAAC,GAAGH;IACzB,OAAOE,QAAQE,MAAM,GAAG,kBACpB,KAACR,KAAKS,GAAG;QAACC,OAAOP,qBAAqBQ,aAAa;QAAEC,MAAK;kBACtD,cAAA,KAACX;YACGY,MAAMP,QAAQQ,GAAG,CAAC,CAAC,EAACC,WAAW,EAAEC,IAAI,EAAC,GAAM,CAAA;oBACxCC,OAAOF;oBACPG,qBACI,MAACnB;;4BACIiB,qBACG;;kDACI,KAACA;wCAAKG,QAAQ;;kDACd,KAACjB;wCAAMkB,GAAE;;;iCAEb;0CACJ,KAACtB;0CAAKiB;;;;gBAGlB,CAAA;YACAE,OAAOV,MAAMc,KAAK,CAACC,MAAM,KAAK,OAAOhB,OAAO,CAAC,EAAE,CAACS,WAAW,GAAGR,MAAMc,KAAK,CAACC,MAAM;YAChFC,UAAUhB,MAAMiB,SAAS;;SAGjC;AACR,EAAE"}
1
+ {"version":3,"sources":["../../../../../src/components/table/layouts/TableLayoutControl.tsx"],"sourcesContent":["import {Box, Center, Grid, SegmentedControl, Space} from '@mantine/core';\nimport {TableComponentsOrder} from '../Table';\nimport {useTableContext} from '../TableContext';\n\nexport const TableLayoutControl = () => {\n const {layouts, store} = useTableContext();\n return layouts.length > 1 ? (\n <Grid.Col order={TableComponentsOrder.LayoutControl} span=\"content\">\n <SegmentedControl\n data={layouts.map(({displayName, Icon}) => ({\n value: displayName,\n label: (\n <Center>\n {Icon ? (\n <>\n <Icon height={16} />\n <Space w=\"xs\" />\n </>\n ) : null}\n <Box>{displayName}</Box>\n </Center>\n ),\n }))}\n value={store.state.layout === null ? layouts[0].displayName : store.state.layout}\n onChange={store.setLayout}\n />\n </Grid.Col>\n ) : null;\n};\n"],"names":["Box","Center","Grid","SegmentedControl","Space","TableComponentsOrder","useTableContext","TableLayoutControl","layouts","store","length","Col","order","LayoutControl","span","data","map","displayName","Icon","value","label","height","w","state","layout","onChange","setLayout"],"mappings":";AAAA,SAAQA,GAAG,EAAEC,MAAM,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,QAAO,gBAAgB;AACzE,SAAQC,oBAAoB,QAAO,WAAW;AAC9C,SAAQC,eAAe,QAAO,kBAAkB;AAEhD,OAAO,MAAMC,qBAAqB;IAC9B,MAAM,EAACC,OAAO,EAAEC,KAAK,EAAC,GAAGH;IACzB,OAAOE,QAAQE,MAAM,GAAG,kBACpB,KAACR,KAAKS,GAAG;QAACC,OAAOP,qBAAqBQ,aAAa;QAAEC,MAAK;kBACtD,cAAA,KAACX;YACGY,MAAMP,QAAQQ,GAAG,CAAC,CAAC,EAACC,WAAW,EAAEC,IAAI,EAAC,GAAM,CAAA;oBACxCC,OAAOF;oBACPG,qBACI,MAACnB;;4BACIiB,qBACG;;kDACI,KAACA;wCAAKG,QAAQ;;kDACd,KAACjB;wCAAMkB,GAAE;;;iCAEb;0CACJ,KAACtB;0CAAKiB;;;;gBAGlB,CAAA;YACAE,OAAOV,MAAMc,KAAK,CAACC,MAAM,KAAK,OAAOhB,OAAO,CAAC,EAAE,CAACS,WAAW,GAAGR,MAAMc,KAAK,CAACC,MAAM;YAChFC,UAAUhB,MAAMiB,SAAS;;SAGjC;AACR,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/table/layouts/TableLayouts.tsx"],"sourcesContent":["import {RowLayout} from './row-layout/RowLayout';\n\nexport const TableLayouts = {\n Rows: RowLayout,\n};\n"],"names":["RowLayout","TableLayouts","Rows"],"rangeMappings":";;;","mappings":"AAAA,SAAQA,SAAS,QAAO,yBAAyB;AAEjD,OAAO,MAAMC,eAAe;IACxBC,MAAMF;AACV,EAAE"}
1
+ {"version":3,"sources":["../../../../../src/components/table/layouts/TableLayouts.tsx"],"sourcesContent":["import {RowLayout} from './row-layout/RowLayout';\n\nexport const TableLayouts = {\n Rows: RowLayout,\n};\n"],"names":["RowLayout","TableLayouts","Rows"],"mappings":"AAAA,SAAQA,SAAS,QAAO,yBAAyB;AAEjD,OAAO,MAAMC,eAAe;IACxBC,MAAMF;AACV,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/components/table/layouts/row-layout/RowLayout.tsx"],"sourcesContent":["import {factory, Factory, StylesApiProps, useProps, useStyles} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport classes from './RowLayout.module.css';\nimport {TableLayout} from '../../Table.types';\nimport {RowLayoutBody, RowLayoutBodyStylesNames} from './RowLayoutBody';\nimport {RowLayoutProvider} from './RowLayoutContext';\nimport {RowLayoutHeader, RowLayoutHeaderStyleNames} from './RowLayoutHeader';\nimport {RowLayoutIcon} from './RowLayoutIcon';\n\ntype RowLayoutStylesNames = RowLayoutHeaderStyleNames | RowLayoutBodyStylesNames;\nexport interface RowLayoutProps extends StylesApiProps<RowLayoutFactory> {\n children: ReactNode;\n}\n\nexport type RowLayoutFactory = Factory<{\n props: RowLayoutProps;\n stylesNames: RowLayoutStylesNames;\n staticComponents: TableLayout;\n}>;\nconst defaultProps: Partial<RowLayoutProps> = {};\n\nexport const RowLayout = factory<RowLayoutFactory>((props, ref) => {\n const {children, styles, classNames, unstyled} = useProps('PlasmaRowLayout', defaultProps, props);\n const getStyles = useStyles<RowLayoutFactory>({\n name: 'PlasmaRowLayout',\n classes,\n props,\n styles,\n classNames,\n unstyled,\n });\n\n return <RowLayoutProvider value={{getStyles}}>{children}</RowLayoutProvider>;\n});\n\nRowLayout.Body = RowLayoutBody;\nRowLayout.Header = RowLayoutHeader;\nRowLayout.Icon = RowLayoutIcon;\nRowLayout.displayName = 'Rows';\n"],"names":["factory","useProps","useStyles","classes","RowLayoutBody","RowLayoutProvider","RowLayoutHeader","RowLayoutIcon","defaultProps","RowLayout","props","ref","children","styles","classNames","unstyled","getStyles","name","value","Body","Header","Icon","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";AAAA,SAAQA,OAAO,EAA2BC,QAAQ,EAAEC,SAAS,QAAO,gBAAgB;AAEpF,OAAOC,aAAa,yBAAyB;AAE7C,SAAQC,aAAa,QAAiC,kBAAkB;AACxE,SAAQC,iBAAiB,QAAO,qBAAqB;AACrD,SAAQC,eAAe,QAAkC,oBAAoB;AAC7E,SAAQC,aAAa,QAAO,kBAAkB;AAY9C,MAAMC,eAAwC,CAAC;AAE/C,OAAO,MAAMC,YAAYT,QAA0B,CAACU,OAAOC;IACvD,MAAM,EAACC,QAAQ,EAAEC,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAC,GAAGd,SAAS,mBAAmBO,cAAcE;IAC3F,MAAMM,YAAYd,UAA4B;QAC1Ce,MAAM;QACNd;QACAO;QACAG;QACAC;QACAC;IACJ;IAEA,qBAAO,KAACV;QAAkBa,OAAO;YAACF;QAAS;kBAAIJ;;AACnD,GAAG;AAEHH,UAAUU,IAAI,GAAGf;AACjBK,UAAUW,MAAM,GAAGd;AACnBG,UAAUY,IAAI,GAAGd;AACjBE,UAAUa,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../../../../src/components/table/layouts/row-layout/RowLayout.tsx"],"sourcesContent":["import {factory, Factory, StylesApiProps, useProps, useStyles} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport classes from './RowLayout.module.css';\nimport {TableLayout} from '../../Table.types';\nimport {RowLayoutBody, RowLayoutBodyStylesNames} from './RowLayoutBody';\nimport {RowLayoutProvider} from './RowLayoutContext';\nimport {RowLayoutHeader, RowLayoutHeaderStyleNames} from './RowLayoutHeader';\nimport {RowLayoutIcon} from './RowLayoutIcon';\n\ntype RowLayoutStylesNames = RowLayoutHeaderStyleNames | RowLayoutBodyStylesNames;\nexport interface RowLayoutProps extends StylesApiProps<RowLayoutFactory> {\n children: ReactNode;\n}\n\nexport type RowLayoutFactory = Factory<{\n props: RowLayoutProps;\n stylesNames: RowLayoutStylesNames;\n staticComponents: TableLayout;\n}>;\nconst defaultProps: Partial<RowLayoutProps> = {};\n\nexport const RowLayout = factory<RowLayoutFactory>((props, ref) => {\n const {children, styles, classNames, unstyled} = useProps('PlasmaRowLayout', defaultProps, props);\n const getStyles = useStyles<RowLayoutFactory>({\n name: 'PlasmaRowLayout',\n classes,\n props,\n styles,\n classNames,\n unstyled,\n });\n\n return <RowLayoutProvider value={{getStyles}}>{children}</RowLayoutProvider>;\n});\n\nRowLayout.Body = RowLayoutBody;\nRowLayout.Header = RowLayoutHeader;\nRowLayout.Icon = RowLayoutIcon;\nRowLayout.displayName = 'Rows';\n"],"names":["factory","useProps","useStyles","classes","RowLayoutBody","RowLayoutProvider","RowLayoutHeader","RowLayoutIcon","defaultProps","RowLayout","props","ref","children","styles","classNames","unstyled","getStyles","name","value","Body","Header","Icon","displayName"],"mappings":";AAAA,SAAQA,OAAO,EAA2BC,QAAQ,EAAEC,SAAS,QAAO,gBAAgB;AAEpF,OAAOC,aAAa,yBAAyB;AAE7C,SAAQC,aAAa,QAAiC,kBAAkB;AACxE,SAAQC,iBAAiB,QAAO,qBAAqB;AACrD,SAAQC,eAAe,QAAkC,oBAAoB;AAC7E,SAAQC,aAAa,QAAO,kBAAkB;AAY9C,MAAMC,eAAwC,CAAC;AAE/C,OAAO,MAAMC,YAAYT,QAA0B,CAACU,OAAOC;IACvD,MAAM,EAACC,QAAQ,EAAEC,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAC,GAAGd,SAAS,mBAAmBO,cAAcE;IAC3F,MAAMM,YAAYd,UAA4B;QAC1Ce,MAAM;QACNd;QACAO;QACAG;QACAC;QACAC;IACJ;IAEA,qBAAO,KAACV;QAAkBa,OAAO;YAACF;QAAS;kBAAIJ;;AACnD,GAAG;AAEHH,UAAUU,IAAI,GAAGf;AACjBK,UAAUW,MAAM,GAAGd;AACnBG,UAAUY,IAAI,GAAGd;AACjBE,UAAUa,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"RowLayoutBody.d.ts","sourceRoot":"","sources":["../../../../../../src/components/table/layouts/row-layout/RowLayoutBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,QAAQ,EAAY,sBAAsB,EAAE,OAAO,EAAW,MAAM,eAAe,CAAC;AAGjG,OAAO,EAAC,YAAY,EAA4B,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAC,0BAA0B,EAAW,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAOnD,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,MAAM,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEhG,MAAM,WAAW,kBAAkB,CAAC,CAAC,CACjC,SAAQ,QAAQ,EACZ,gBAAgB,CAAC,CAAC,CAAC,EACnB,sBAAsB,CAAC,oBAAoB,CAAC;CAAG;AAEvD,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;IACvC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACnC,GAAG,EAAE,mBAAmB,CAAC;IACzB,WAAW,EAAE,wBAAwB,CAAC;IACtC,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC,CAAC;AAIH,eAAO,MAAM,aAAa;eAAe,mBAAmB,CAAC,CAAC,GAAG;QAAC,GAAG,CAAC,EAAE,aAAa,mBAAmB,CAAC,CAAA;KAAC;;eAR/F,mBAAmB,OAAO,CAAC;aAC7B,mBAAmB;qBACX,wBAAwB;kBAC3B,IAAI;;CA6GjB,CAAC"}
1
+ {"version":3,"file":"RowLayoutBody.d.ts","sourceRoot":"","sources":["../../../../../../src/components/table/layouts/row-layout/RowLayo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