@coveord/plasma-mantine 47.0.1-next.2

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 (450) hide show
  1. package/.eslintrc.js +27 -0
  2. package/.turbo/turbo-build.log +8 -0
  3. package/.turbo/turbo-test.log +30 -0
  4. package/LICENSE +15 -0
  5. package/dist/.tsbuildinfo +1 -0
  6. package/dist/cjs/__tests__/GlobalSetup.js +17 -0
  7. package/dist/cjs/__tests__/GlobalSetup.js.map +1 -0
  8. package/dist/cjs/__tests__/Setup.js +6 -0
  9. package/dist/cjs/__tests__/Setup.js.map +1 -0
  10. package/dist/cjs/__tests__/SetupAfterEnv.js +19 -0
  11. package/dist/cjs/__tests__/SetupAfterEnv.js.map +1 -0
  12. package/dist/cjs/__tests__/Utils.js +38 -0
  13. package/dist/cjs/__tests__/Utils.js.map +1 -0
  14. package/dist/cjs/components/blank-slate/BlankSlate.js +26 -0
  15. package/dist/cjs/components/blank-slate/BlankSlate.js.map +1 -0
  16. package/dist/cjs/components/blank-slate/index.js +8 -0
  17. package/dist/cjs/components/blank-slate/index.js.map +1 -0
  18. package/dist/cjs/components/code-editor/CodeEditor.example.js +41 -0
  19. package/dist/cjs/components/code-editor/CodeEditor.example.js.map +1 -0
  20. package/dist/cjs/components/code-editor/CodeEditor.js +214 -0
  21. package/dist/cjs/components/code-editor/CodeEditor.js.map +1 -0
  22. package/dist/cjs/components/code-editor/__mocks__/@monaco-editor/react.js +30 -0
  23. package/dist/cjs/components/code-editor/__mocks__/@monaco-editor/react.js.map +1 -0
  24. package/dist/cjs/components/code-editor/__mocks__/monaco-editor.js +24 -0
  25. package/dist/cjs/components/code-editor/__mocks__/monaco-editor.js.map +1 -0
  26. package/dist/cjs/components/code-editor/index.js +8 -0
  27. package/dist/cjs/components/code-editor/index.js.map +1 -0
  28. package/dist/cjs/components/collection/Collection.example.js +64 -0
  29. package/dist/cjs/components/collection/Collection.example.js.map +1 -0
  30. package/dist/cjs/components/collection/Collection.js +129 -0
  31. package/dist/cjs/components/collection/Collection.js.map +1 -0
  32. package/dist/cjs/components/collection/CollectionItem.js +109 -0
  33. package/dist/cjs/components/collection/CollectionItem.js.map +1 -0
  34. package/dist/cjs/components/collection/Colllection.styles.js +25 -0
  35. package/dist/cjs/components/collection/Colllection.styles.js.map +1 -0
  36. package/dist/cjs/components/collection/index.js +8 -0
  37. package/dist/cjs/components/collection/index.js.map +1 -0
  38. package/dist/cjs/components/date-range-picker/DateRangePickerInlineCalendar.js +102 -0
  39. package/dist/cjs/components/date-range-picker/DateRangePickerInlineCalendar.js.map +1 -0
  40. package/dist/cjs/components/date-range-picker/DateRangePickerPopoverCalendar.js +93 -0
  41. package/dist/cjs/components/date-range-picker/DateRangePickerPopoverCalendar.js.map +1 -0
  42. package/dist/cjs/components/date-range-picker/DateRangePickerPresetSelect.js +64 -0
  43. package/dist/cjs/components/date-range-picker/DateRangePickerPresetSelect.js.map +1 -0
  44. package/dist/cjs/components/date-range-picker/EditableDateRangePicker.js +66 -0
  45. package/dist/cjs/components/date-range-picker/EditableDateRangePicker.js.map +1 -0
  46. package/dist/cjs/components/date-range-picker/index.js +9 -0
  47. package/dist/cjs/components/date-range-picker/index.js.map +1 -0
  48. package/dist/cjs/components/header/Header.js +78 -0
  49. package/dist/cjs/components/header/Header.js.map +1 -0
  50. package/dist/cjs/components/header/index.js +8 -0
  51. package/dist/cjs/components/header/index.js.map +1 -0
  52. package/dist/cjs/components/index.js +17 -0
  53. package/dist/cjs/components/index.js.map +1 -0
  54. package/dist/cjs/components/inline-confirm/InlineConfirm.js +39 -0
  55. package/dist/cjs/components/inline-confirm/InlineConfirm.js.map +1 -0
  56. package/dist/cjs/components/inline-confirm/InlineConfirmButton.js +28 -0
  57. package/dist/cjs/components/inline-confirm/InlineConfirmButton.js.map +1 -0
  58. package/dist/cjs/components/inline-confirm/InlineConfirmContext.js +14 -0
  59. package/dist/cjs/components/inline-confirm/InlineConfirmContext.js.map +1 -0
  60. package/dist/cjs/components/inline-confirm/InlineConfirmPrompt.js +48 -0
  61. package/dist/cjs/components/inline-confirm/InlineConfirmPrompt.js.map +1 -0
  62. package/dist/cjs/components/inline-confirm/index.js +10 -0
  63. package/dist/cjs/components/inline-confirm/index.js.map +1 -0
  64. package/dist/cjs/components/inline-confirm/useInlineConfirm.js +21 -0
  65. package/dist/cjs/components/inline-confirm/useInlineConfirm.js.map +1 -0
  66. package/dist/cjs/components/modal-wizard/ModalWizard.js +132 -0
  67. package/dist/cjs/components/modal-wizard/ModalWizard.js.map +1 -0
  68. package/dist/cjs/components/modal-wizard/ModalWizardStep.js +23 -0
  69. package/dist/cjs/components/modal-wizard/ModalWizardStep.js.map +1 -0
  70. package/dist/cjs/components/modal-wizard/index.js +8 -0
  71. package/dist/cjs/components/modal-wizard/index.js.map +1 -0
  72. package/dist/cjs/components/prompt/Prompt.js +100 -0
  73. package/dist/cjs/components/prompt/Prompt.js.map +1 -0
  74. package/dist/cjs/components/prompt/PromptFooter.js +25 -0
  75. package/dist/cjs/components/prompt/PromptFooter.js.map +1 -0
  76. package/dist/cjs/components/prompt/index.js +8 -0
  77. package/dist/cjs/components/prompt/index.js.map +1 -0
  78. package/dist/cjs/components/sticky-footer/StickyFooter.js +50 -0
  79. package/dist/cjs/components/sticky-footer/StickyFooter.js.map +1 -0
  80. package/dist/cjs/components/sticky-footer/index.js +8 -0
  81. package/dist/cjs/components/sticky-footer/index.js.map +1 -0
  82. package/dist/cjs/components/table/Table.js +259 -0
  83. package/dist/cjs/components/table/Table.js.map +1 -0
  84. package/dist/cjs/components/table/TableActions.js +25 -0
  85. package/dist/cjs/components/table/TableActions.js.map +1 -0
  86. package/dist/cjs/components/table/TableCollapsibleColumn.js +33 -0
  87. package/dist/cjs/components/table/TableCollapsibleColumn.js.map +1 -0
  88. package/dist/cjs/components/table/TableContext.js +14 -0
  89. package/dist/cjs/components/table/TableContext.js.map +1 -0
  90. package/dist/cjs/components/table/TableDateRangePicker.js +72 -0
  91. package/dist/cjs/components/table/TableDateRangePicker.js.map +1 -0
  92. package/dist/cjs/components/table/TableFilter.js +53 -0
  93. package/dist/cjs/components/table/TableFilter.js.map +1 -0
  94. package/dist/cjs/components/table/TableFooter.js +23 -0
  95. package/dist/cjs/components/table/TableFooter.js.map +1 -0
  96. package/dist/cjs/components/table/TableHeader.js +37 -0
  97. package/dist/cjs/components/table/TableHeader.js.map +1 -0
  98. package/dist/cjs/components/table/TablePagination.js +47 -0
  99. package/dist/cjs/components/table/TablePagination.js.map +1 -0
  100. package/dist/cjs/components/table/TablePerPage.js +52 -0
  101. package/dist/cjs/components/table/TablePerPage.js.map +1 -0
  102. package/dist/cjs/components/table/TablePredicate.js +45 -0
  103. package/dist/cjs/components/table/TablePredicate.js.map +1 -0
  104. package/dist/cjs/components/table/Th.js +107 -0
  105. package/dist/cjs/components/table/Th.js.map +1 -0
  106. package/dist/cjs/components/table/index.js +9 -0
  107. package/dist/cjs/components/table/index.js.map +1 -0
  108. package/dist/cjs/components/table/useTable.js +21 -0
  109. package/dist/cjs/components/table/useTable.js.map +1 -0
  110. package/dist/cjs/hooks/index.js +9 -0
  111. package/dist/cjs/hooks/index.js.map +1 -0
  112. package/dist/cjs/hooks/useControlledList.js +52 -0
  113. package/dist/cjs/hooks/useControlledList.js.map +1 -0
  114. package/dist/cjs/hooks/useParentHeight.js +36 -0
  115. package/dist/cjs/hooks/useParentHeight.js.map +1 -0
  116. package/dist/cjs/index.js +31 -0
  117. package/dist/cjs/index.js.map +1 -0
  118. package/dist/cjs/theme/PlasmaColors.js +54 -0
  119. package/dist/cjs/theme/PlasmaColors.js.map +1 -0
  120. package/dist/cjs/theme/Plasmantine.js +24 -0
  121. package/dist/cjs/theme/Plasmantine.js.map +1 -0
  122. package/dist/cjs/theme/Theme.js +223 -0
  123. package/dist/cjs/theme/Theme.js.map +1 -0
  124. package/dist/cjs/theme/index.js +8 -0
  125. package/dist/cjs/theme/index.js.map +1 -0
  126. package/dist/definitions/__tests__/GlobalSetup.d.ts +3 -0
  127. package/dist/definitions/__tests__/GlobalSetup.d.ts.map +1 -0
  128. package/dist/definitions/__tests__/Setup.d.ts +5 -0
  129. package/dist/definitions/__tests__/Setup.d.ts.map +1 -0
  130. package/dist/definitions/__tests__/SetupAfterEnv.d.ts +7 -0
  131. package/dist/definitions/__tests__/SetupAfterEnv.d.ts.map +1 -0
  132. package/dist/definitions/__tests__/Utils.d.ts +8 -0
  133. package/dist/definitions/__tests__/Utils.d.ts.map +1 -0
  134. package/dist/definitions/components/blank-slate/BlankSlate.d.ts +12 -0
  135. package/dist/definitions/components/blank-slate/BlankSlate.d.ts.map +1 -0
  136. package/dist/definitions/components/blank-slate/index.d.ts +2 -0
  137. package/dist/definitions/components/blank-slate/index.d.ts.map +1 -0
  138. package/dist/definitions/components/code-editor/CodeEditor.d.ts +50 -0
  139. package/dist/definitions/components/code-editor/CodeEditor.d.ts.map +1 -0
  140. package/dist/definitions/components/code-editor/CodeEditor.example.d.ts +4 -0
  141. package/dist/definitions/components/code-editor/CodeEditor.example.d.ts.map +1 -0
  142. package/dist/definitions/components/code-editor/__mocks__/@monaco-editor/react.d.ts +9 -0
  143. package/dist/definitions/components/code-editor/__mocks__/@monaco-editor/react.d.ts.map +1 -0
  144. package/dist/definitions/components/code-editor/__mocks__/monaco-editor.d.ts +8 -0
  145. package/dist/definitions/components/code-editor/__mocks__/monaco-editor.d.ts.map +1 -0
  146. package/dist/definitions/components/code-editor/index.d.ts +2 -0
  147. package/dist/definitions/components/code-editor/index.d.ts.map +1 -0
  148. package/dist/definitions/components/collection/Collection.d.ts +21 -0
  149. package/dist/definitions/components/collection/Collection.d.ts.map +1 -0
  150. package/dist/definitions/components/collection/Collection.example.d.ts +4 -0
  151. package/dist/definitions/components/collection/Collection.example.d.ts.map +1 -0
  152. package/dist/definitions/components/collection/CollectionItem.d.ts +15 -0
  153. package/dist/definitions/components/collection/CollectionItem.d.ts.map +1 -0
  154. package/dist/definitions/components/collection/Colllection.styles.d.ts +9 -0
  155. package/dist/definitions/components/collection/Colllection.styles.d.ts.map +1 -0
  156. package/dist/definitions/components/collection/index.d.ts +2 -0
  157. package/dist/definitions/components/collection/index.d.ts.map +1 -0
  158. package/dist/definitions/components/date-range-picker/DateRangePickerInlineCalendar.d.ts +37 -0
  159. package/dist/definitions/components/date-range-picker/DateRangePickerInlineCalendar.d.ts.map +1 -0
  160. package/dist/definitions/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts +30 -0
  161. package/dist/definitions/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts.map +1 -0
  162. package/dist/definitions/components/date-range-picker/DateRangePickerPresetSelect.d.ts +16 -0
  163. package/dist/definitions/components/date-range-picker/DateRangePickerPresetSelect.d.ts.map +1 -0
  164. package/dist/definitions/components/date-range-picker/EditableDateRangePicker.d.ts +18 -0
  165. package/dist/definitions/components/date-range-picker/EditableDateRangePicker.d.ts.map +1 -0
  166. package/dist/definitions/components/date-range-picker/index.d.ts +3 -0
  167. package/dist/definitions/components/date-range-picker/index.d.ts.map +1 -0
  168. package/dist/definitions/components/header/Header.d.ts +12 -0
  169. package/dist/definitions/components/header/Header.d.ts.map +1 -0
  170. package/dist/definitions/components/header/index.d.ts +2 -0
  171. package/dist/definitions/components/header/index.d.ts.map +1 -0
  172. package/dist/definitions/components/index.d.ts +11 -0
  173. package/dist/definitions/components/index.d.ts.map +1 -0
  174. package/dist/definitions/components/inline-confirm/InlineConfirm.d.ts +10 -0
  175. package/dist/definitions/components/inline-confirm/InlineConfirm.d.ts.map +1 -0
  176. package/dist/definitions/components/inline-confirm/InlineConfirmButton.d.ts +8 -0
  177. package/dist/definitions/components/inline-confirm/InlineConfirmButton.d.ts.map +1 -0
  178. package/dist/definitions/components/inline-confirm/InlineConfirmContext.d.ts +9 -0
  179. package/dist/definitions/components/inline-confirm/InlineConfirmContext.d.ts.map +1 -0
  180. package/dist/definitions/components/inline-confirm/InlineConfirmPrompt.d.ts +11 -0
  181. package/dist/definitions/components/inline-confirm/InlineConfirmPrompt.d.ts.map +1 -0
  182. package/dist/definitions/components/inline-confirm/index.d.ts +4 -0
  183. package/dist/definitions/components/inline-confirm/index.d.ts.map +1 -0
  184. package/dist/definitions/components/inline-confirm/useInlineConfirm.d.ts +6 -0
  185. package/dist/definitions/components/inline-confirm/useInlineConfirm.d.ts.map +1 -0
  186. package/dist/definitions/components/modal-wizard/ModalWizard.d.ts +73 -0
  187. package/dist/definitions/components/modal-wizard/ModalWizard.d.ts.map +1 -0
  188. package/dist/definitions/components/modal-wizard/ModalWizardStep.d.ts +42 -0
  189. package/dist/definitions/components/modal-wizard/ModalWizardStep.d.ts.map +1 -0
  190. package/dist/definitions/components/modal-wizard/index.d.ts +3 -0
  191. package/dist/definitions/components/modal-wizard/index.d.ts.map +1 -0
  192. package/dist/definitions/components/prompt/Prompt.d.ts +14 -0
  193. package/dist/definitions/components/prompt/Prompt.d.ts.map +1 -0
  194. package/dist/definitions/components/prompt/PromptFooter.d.ts +6 -0
  195. package/dist/definitions/components/prompt/PromptFooter.d.ts.map +1 -0
  196. package/dist/definitions/components/prompt/index.d.ts +2 -0
  197. package/dist/definitions/components/prompt/index.d.ts.map +1 -0
  198. package/dist/definitions/components/sticky-footer/StickyFooter.d.ts +10 -0
  199. package/dist/definitions/components/sticky-footer/StickyFooter.d.ts.map +1 -0
  200. package/dist/definitions/components/sticky-footer/index.d.ts +2 -0
  201. package/dist/definitions/components/sticky-footer/index.d.ts.map +1 -0
  202. package/dist/definitions/components/table/Table.d.ts +84 -0
  203. package/dist/definitions/components/table/Table.d.ts.map +1 -0
  204. package/dist/definitions/components/table/TableActions.d.ts +26 -0
  205. package/dist/definitions/components/table/TableActions.d.ts.map +1 -0
  206. package/dist/definitions/components/table/TableCollapsibleColumn.d.ts +6 -0
  207. package/dist/definitions/components/table/TableCollapsibleColumn.d.ts.map +1 -0
  208. package/dist/definitions/components/table/TableContext.d.ts +54 -0
  209. package/dist/definitions/components/table/TableContext.d.ts.map +1 -0
  210. package/dist/definitions/components/table/TableDateRangePicker.d.ts +20 -0
  211. package/dist/definitions/components/table/TableDateRangePicker.d.ts.map +1 -0
  212. package/dist/definitions/components/table/TableFilter.d.ts +12 -0
  213. package/dist/definitions/components/table/TableFilter.d.ts.map +1 -0
  214. package/dist/definitions/components/table/TableFooter.d.ts +3 -0
  215. package/dist/definitions/components/table/TableFooter.d.ts.map +1 -0
  216. package/dist/definitions/components/table/TableHeader.d.ts +3 -0
  217. package/dist/definitions/components/table/TableHeader.d.ts.map +1 -0
  218. package/dist/definitions/components/table/TablePagination.d.ts +10 -0
  219. package/dist/definitions/components/table/TablePagination.d.ts.map +1 -0
  220. package/dist/definitions/components/table/TablePerPage.d.ts +20 -0
  221. package/dist/definitions/components/table/TablePerPage.d.ts.map +1 -0
  222. package/dist/definitions/components/table/TablePredicate.d.ts +21 -0
  223. package/dist/definitions/components/table/TablePredicate.d.ts.map +1 -0
  224. package/dist/definitions/components/table/Th.d.ts +8 -0
  225. package/dist/definitions/components/table/Th.d.ts.map +1 -0
  226. package/dist/definitions/components/table/index.d.ts +4 -0
  227. package/dist/definitions/components/table/index.d.ts.map +1 -0
  228. package/dist/definitions/components/table/useTable.d.ts +11 -0
  229. package/dist/definitions/components/table/useTable.d.ts.map +1 -0
  230. package/dist/definitions/hooks/index.d.ts +3 -0
  231. package/dist/definitions/hooks/index.d.ts.map +1 -0
  232. package/dist/definitions/hooks/useControlledList.d.ts +25 -0
  233. package/dist/definitions/hooks/useControlledList.d.ts.map +1 -0
  234. package/dist/definitions/hooks/useParentHeight.d.ts +5 -0
  235. package/dist/definitions/hooks/useParentHeight.d.ts.map +1 -0
  236. package/dist/definitions/index.d.ts +17 -0
  237. package/dist/definitions/index.d.ts.map +1 -0
  238. package/dist/definitions/theme/PlasmaColors.d.ts +14 -0
  239. package/dist/definitions/theme/PlasmaColors.d.ts.map +1 -0
  240. package/dist/definitions/theme/Plasmantine.d.ts +3 -0
  241. package/dist/definitions/theme/Plasmantine.d.ts.map +1 -0
  242. package/dist/definitions/theme/Theme.d.ts +3 -0
  243. package/dist/definitions/theme/Theme.d.ts.map +1 -0
  244. package/dist/definitions/theme/index.d.ts +2 -0
  245. package/dist/definitions/theme/index.d.ts.map +1 -0
  246. package/dist/esm/__tests__/GlobalSetup.js +7 -0
  247. package/dist/esm/__tests__/GlobalSetup.js.map +1 -0
  248. package/dist/esm/__tests__/Setup.js +5 -0
  249. package/dist/esm/__tests__/Setup.js.map +1 -0
  250. package/dist/esm/__tests__/SetupAfterEnv.js +15 -0
  251. package/dist/esm/__tests__/SetupAfterEnv.js.map +1 -0
  252. package/dist/esm/__tests__/Utils.js +21 -0
  253. package/dist/esm/__tests__/Utils.js.map +1 -0
  254. package/dist/esm/components/blank-slate/BlankSlate.js +16 -0
  255. package/dist/esm/components/blank-slate/BlankSlate.js.map +1 -0
  256. package/dist/esm/components/blank-slate/index.js +3 -0
  257. package/dist/esm/components/blank-slate/index.js.map +1 -0
  258. package/dist/esm/components/code-editor/CodeEditor.example.js +31 -0
  259. package/dist/esm/components/code-editor/CodeEditor.example.js.map +1 -0
  260. package/dist/esm/components/code-editor/CodeEditor.js +201 -0
  261. package/dist/esm/components/code-editor/CodeEditor.js.map +1 -0
  262. package/dist/esm/components/code-editor/__mocks__/@monaco-editor/react.js +12 -0
  263. package/dist/esm/components/code-editor/__mocks__/@monaco-editor/react.js.map +1 -0
  264. package/dist/esm/components/code-editor/__mocks__/monaco-editor.js +14 -0
  265. package/dist/esm/components/code-editor/__mocks__/monaco-editor.js.map +1 -0
  266. package/dist/esm/components/code-editor/index.js +3 -0
  267. package/dist/esm/components/code-editor/index.js.map +1 -0
  268. package/dist/esm/components/collection/Collection.example.js +54 -0
  269. package/dist/esm/components/collection/Collection.example.js.map +1 -0
  270. package/dist/esm/components/collection/Collection.js +118 -0
  271. package/dist/esm/components/collection/Collection.js.map +1 -0
  272. package/dist/esm/components/collection/CollectionItem.js +98 -0
  273. package/dist/esm/components/collection/CollectionItem.js.map +1 -0
  274. package/dist/esm/components/collection/Colllection.styles.js +15 -0
  275. package/dist/esm/components/collection/Colllection.styles.js.map +1 -0
  276. package/dist/esm/components/collection/index.js +3 -0
  277. package/dist/esm/components/collection/index.js.map +1 -0
  278. package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.js +92 -0
  279. package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.js.map +1 -0
  280. package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.js +83 -0
  281. package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.js.map +1 -0
  282. package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.js +53 -0
  283. package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.js.map +1 -0
  284. package/dist/esm/components/date-range-picker/EditableDateRangePicker.js +55 -0
  285. package/dist/esm/components/date-range-picker/EditableDateRangePicker.js.map +1 -0
  286. package/dist/esm/components/date-range-picker/index.js +4 -0
  287. package/dist/esm/components/date-range-picker/index.js.map +1 -0
  288. package/dist/esm/components/header/Header.js +68 -0
  289. package/dist/esm/components/header/Header.js.map +1 -0
  290. package/dist/esm/components/header/index.js +3 -0
  291. package/dist/esm/components/header/index.js.map +1 -0
  292. package/dist/esm/components/index.js +12 -0
  293. package/dist/esm/components/index.js.map +1 -0
  294. package/dist/esm/components/inline-confirm/InlineConfirm.js +29 -0
  295. package/dist/esm/components/inline-confirm/InlineConfirm.js.map +1 -0
  296. package/dist/esm/components/inline-confirm/InlineConfirmButton.js +18 -0
  297. package/dist/esm/components/inline-confirm/InlineConfirmButton.js.map +1 -0
  298. package/dist/esm/components/inline-confirm/InlineConfirmContext.js +4 -0
  299. package/dist/esm/components/inline-confirm/InlineConfirmContext.js.map +1 -0
  300. package/dist/esm/components/inline-confirm/InlineConfirmPrompt.js +38 -0
  301. package/dist/esm/components/inline-confirm/InlineConfirmPrompt.js.map +1 -0
  302. package/dist/esm/components/inline-confirm/index.js +5 -0
  303. package/dist/esm/components/inline-confirm/index.js.map +1 -0
  304. package/dist/esm/components/inline-confirm/useInlineConfirm.js +11 -0
  305. package/dist/esm/components/inline-confirm/useInlineConfirm.js.map +1 -0
  306. package/dist/esm/components/modal-wizard/ModalWizard.js +122 -0
  307. package/dist/esm/components/modal-wizard/ModalWizard.js.map +1 -0
  308. package/dist/esm/components/modal-wizard/ModalWizardStep.js +14 -0
  309. package/dist/esm/components/modal-wizard/ModalWizardStep.js.map +1 -0
  310. package/dist/esm/components/modal-wizard/index.js +3 -0
  311. package/dist/esm/components/modal-wizard/index.js.map +1 -0
  312. package/dist/esm/components/prompt/Prompt.js +90 -0
  313. package/dist/esm/components/prompt/Prompt.js.map +1 -0
  314. package/dist/esm/components/prompt/PromptFooter.js +15 -0
  315. package/dist/esm/components/prompt/PromptFooter.js.map +1 -0
  316. package/dist/esm/components/prompt/index.js +3 -0
  317. package/dist/esm/components/prompt/index.js.map +1 -0
  318. package/dist/esm/components/sticky-footer/StickyFooter.js +40 -0
  319. package/dist/esm/components/sticky-footer/StickyFooter.js.map +1 -0
  320. package/dist/esm/components/sticky-footer/index.js +3 -0
  321. package/dist/esm/components/sticky-footer/index.js.map +1 -0
  322. package/dist/esm/components/table/Table.js +248 -0
  323. package/dist/esm/components/table/Table.js.map +1 -0
  324. package/dist/esm/components/table/TableActions.js +15 -0
  325. package/dist/esm/components/table/TableActions.js.map +1 -0
  326. package/dist/esm/components/table/TableCollapsibleColumn.js +25 -0
  327. package/dist/esm/components/table/TableCollapsibleColumn.js.map +1 -0
  328. package/dist/esm/components/table/TableContext.js +4 -0
  329. package/dist/esm/components/table/TableContext.js.map +1 -0
  330. package/dist/esm/components/table/TableDateRangePicker.js +61 -0
  331. package/dist/esm/components/table/TableDateRangePicker.js.map +1 -0
  332. package/dist/esm/components/table/TableFilter.js +43 -0
  333. package/dist/esm/components/table/TableFilter.js.map +1 -0
  334. package/dist/esm/components/table/TableFooter.js +13 -0
  335. package/dist/esm/components/table/TableFooter.js.map +1 -0
  336. package/dist/esm/components/table/TableHeader.js +27 -0
  337. package/dist/esm/components/table/TableHeader.js.map +1 -0
  338. package/dist/esm/components/table/TablePagination.js +37 -0
  339. package/dist/esm/components/table/TablePagination.js.map +1 -0
  340. package/dist/esm/components/table/TablePerPage.js +42 -0
  341. package/dist/esm/components/table/TablePerPage.js.map +1 -0
  342. package/dist/esm/components/table/TablePredicate.js +35 -0
  343. package/dist/esm/components/table/TablePredicate.js.map +1 -0
  344. package/dist/esm/components/table/Th.js +97 -0
  345. package/dist/esm/components/table/Th.js.map +1 -0
  346. package/dist/esm/components/table/index.js +4 -0
  347. package/dist/esm/components/table/index.js.map +1 -0
  348. package/dist/esm/components/table/useTable.js +11 -0
  349. package/dist/esm/components/table/useTable.js.map +1 -0
  350. package/dist/esm/hooks/index.js +4 -0
  351. package/dist/esm/hooks/index.js.map +1 -0
  352. package/dist/esm/hooks/useControlledList.js +44 -0
  353. package/dist/esm/hooks/useControlledList.js.map +1 -0
  354. package/dist/esm/hooks/useParentHeight.js +28 -0
  355. package/dist/esm/hooks/useParentHeight.js.map +1 -0
  356. package/dist/esm/index.js +11 -0
  357. package/dist/esm/index.js.map +1 -0
  358. package/dist/esm/theme/PlasmaColors.js +44 -0
  359. package/dist/esm/theme/PlasmaColors.js.map +1 -0
  360. package/dist/esm/theme/Plasmantine.js +14 -0
  361. package/dist/esm/theme/Plasmantine.js.map +1 -0
  362. package/dist/esm/theme/Theme.js +213 -0
  363. package/dist/esm/theme/Theme.js.map +1 -0
  364. package/dist/esm/theme/index.js +3 -0
  365. package/dist/esm/theme/index.js.map +1 -0
  366. package/jest.config.js +25 -0
  367. package/package.json +88 -0
  368. package/src/__tests__/GlobalSetup.ts +5 -0
  369. package/src/__tests__/Setup.ts +4 -0
  370. package/src/__tests__/SetupAfterEnv.ts +16 -0
  371. package/src/__tests__/Utils.tsx +15 -0
  372. package/src/components/blank-slate/BlankSlate.tsx +17 -0
  373. package/src/components/blank-slate/__tests__/BlankSlate.spec.tsx +11 -0
  374. package/src/components/blank-slate/index.ts +1 -0
  375. package/src/components/code-editor/CodeEditor.example.tsx +32 -0
  376. package/src/components/code-editor/CodeEditor.tsx +214 -0
  377. package/src/components/code-editor/__mocks__/@monaco-editor/react.tsx +10 -0
  378. package/src/components/code-editor/__mocks__/monaco-editor.ts +9 -0
  379. package/src/components/code-editor/__tests__/CodeEditor.spec.tsx +56 -0
  380. package/src/components/code-editor/index.ts +1 -0
  381. package/src/components/collection/Collection.example.tsx +37 -0
  382. package/src/components/collection/Collection.tsx +129 -0
  383. package/src/components/collection/CollectionItem.tsx +92 -0
  384. package/src/components/collection/Colllection.styles.ts +14 -0
  385. package/src/components/collection/__tests__/Collection.spec.tsx +247 -0
  386. package/src/components/collection/index.ts +1 -0
  387. package/src/components/date-range-picker/DateRangePickerInlineCalendar.tsx +111 -0
  388. package/src/components/date-range-picker/DateRangePickerPopoverCalendar.tsx +94 -0
  389. package/src/components/date-range-picker/DateRangePickerPresetSelect.tsx +62 -0
  390. package/src/components/date-range-picker/EditableDateRangePicker.tsx +60 -0
  391. package/src/components/date-range-picker/__tests__/DateRangePickerInlineCalendar.spec.tsx +95 -0
  392. package/src/components/date-range-picker/__tests__/DateRangePickerPopoverCalendar.spec.tsx +101 -0
  393. package/src/components/date-range-picker/__tests__/DateRangePickerPresetSelect.spec.tsx +53 -0
  394. package/src/components/date-range-picker/__tests__/EditableDateRangePicker.spec.tsx +47 -0
  395. package/src/components/date-range-picker/index.tsx +2 -0
  396. package/src/components/header/Header.tsx +43 -0
  397. package/src/components/header/__tests__/Header.spec.tsx +79 -0
  398. package/src/components/header/index.ts +1 -0
  399. package/src/components/index.ts +10 -0
  400. package/src/components/inline-confirm/InlineConfirm.tsx +29 -0
  401. package/src/components/inline-confirm/InlineConfirmButton.tsx +17 -0
  402. package/src/components/inline-confirm/InlineConfirmContext.ts +9 -0
  403. package/src/components/inline-confirm/InlineConfirmPrompt.tsx +48 -0
  404. package/src/components/inline-confirm/__tests__/InlineConfirm.spec.tsx +94 -0
  405. package/src/components/inline-confirm/index.ts +3 -0
  406. package/src/components/inline-confirm/useInlineConfirm.ts +12 -0
  407. package/src/components/modal-wizard/ModalWizard.tsx +211 -0
  408. package/src/components/modal-wizard/ModalWizardStep.tsx +55 -0
  409. package/src/components/modal-wizard/__tests__/ModalWizard.spec.tsx +345 -0
  410. package/src/components/modal-wizard/index.ts +2 -0
  411. package/src/components/prompt/Prompt.tsx +66 -0
  412. package/src/components/prompt/PromptFooter.tsx +8 -0
  413. package/src/components/prompt/__tests__/Prompt.spec.tsx +29 -0
  414. package/src/components/prompt/index.ts +1 -0
  415. package/src/components/sticky-footer/StickyFooter.tsx +35 -0
  416. package/src/components/sticky-footer/__tests__/StickyFooter.spec.tsx +20 -0
  417. package/src/components/sticky-footer/index.ts +1 -0
  418. package/src/components/table/Table.tsx +293 -0
  419. package/src/components/table/TableActions.tsx +36 -0
  420. package/src/components/table/TableCollapsibleColumn.tsx +26 -0
  421. package/src/components/table/TableContext.tsx +56 -0
  422. package/src/components/table/TableDateRangePicker.tsx +65 -0
  423. package/src/components/table/TableFilter.tsx +44 -0
  424. package/src/components/table/TableFooter.tsx +8 -0
  425. package/src/components/table/TableHeader.tsx +21 -0
  426. package/src/components/table/TablePagination.tsx +41 -0
  427. package/src/components/table/TablePerPage.tsx +49 -0
  428. package/src/components/table/TablePredicate.tsx +43 -0
  429. package/src/components/table/Th.tsx +84 -0
  430. package/src/components/table/__tests__/Table.spec.tsx +128 -0
  431. package/src/components/table/__tests__/TableActions.spec.tsx +36 -0
  432. package/src/components/table/__tests__/TableDateRangePicker.spec.tsx +87 -0
  433. package/src/components/table/__tests__/TableFilter.spec.tsx +39 -0
  434. package/src/components/table/__tests__/TablePagination.spec.tsx +50 -0
  435. package/src/components/table/__tests__/TablePerPage.spec.tsx +81 -0
  436. package/src/components/table/__tests__/TablePredicate.spec.tsx +120 -0
  437. package/src/components/table/__tests__/Th.spec.tsx +63 -0
  438. package/src/components/table/index.ts +3 -0
  439. package/src/components/table/useTable.tsx +11 -0
  440. package/src/hooks/__tests__/useControlledList.spec.tsx +41 -0
  441. package/src/hooks/index.ts +2 -0
  442. package/src/hooks/useControlledList.ts +53 -0
  443. package/src/hooks/useParentHeight.ts +25 -0
  444. package/src/index.ts +21 -0
  445. package/src/theme/PlasmaColors.ts +44 -0
  446. package/src/theme/Plasmantine.tsx +10 -0
  447. package/src/theme/Theme.tsx +161 -0
  448. package/src/theme/index.ts +1 -0
  449. package/tsconfig.build.json +4 -0
  450. package/tsconfig.json +14 -0
@@ -0,0 +1,15 @@
1
+ import { DefaultProps, Selectors } from '@mantine/core';
2
+ import { FunctionComponent, PropsWithChildren } from 'react';
3
+ import useStyles from './Colllection.styles';
4
+ interface CollectionItemProps extends CollectionItemSharedProps {
5
+ draggable?: boolean;
6
+ disabled: boolean;
7
+ }
8
+ interface CollectionItemSharedProps extends DefaultProps<Selectors<typeof useStyles>> {
9
+ index: number;
10
+ onRemove?: React.MouseEventHandler<HTMLButtonElement>;
11
+ removable?: boolean;
12
+ }
13
+ export declare const CollectionItem: FunctionComponent<PropsWithChildren<CollectionItemProps>>;
14
+ export {};
15
+ //# sourceMappingURL=CollectionItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionItem.d.ts","sourceRoot":"","sources":["../../../../src/components/collection/CollectionItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAG3D,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAE7C,UAAU,mBAAoB,SAAQ,yBAAyB;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,yBAA0B,SAAQ,YAAY,CAAC,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AA+DD,eAAO,MAAM,cAAc,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAYpF,CAAC"}
@@ -0,0 +1,9 @@
1
+ export interface CollectionStylesParams {
2
+ }
3
+ declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<"root" | "item" | "itemDragging">) => {
4
+ classes: Record<"root" | "item" | "itemDragging", string>;
5
+ cx: (...args: any) => string;
6
+ theme: import("@mantine/core").MantineTheme;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=Colllection.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Colllection.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/collection/Colllection.styles.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;CAAG;;;;;;AAE1C,wBASI"}
@@ -0,0 +1,2 @@
1
+ export * from './Collection';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/collection/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ import { DateRangePickerValue, RangeCalendarProps } from '@mantine/dates';
3
+ import { DateRangePickerPreset } from './DateRangePickerPresetSelect';
4
+ import { EditableDateRangePickerProps } from './EditableDateRangePicker';
5
+ export interface DateRangePickerInlineCalendarProps extends Pick<EditableDateRangePickerProps, 'startProps' | 'endProps'> {
6
+ /**
7
+ * Initial selected range
8
+ */
9
+ initialRange: DateRangePickerValue;
10
+ /**
11
+ * Function called when the user applies the new date range
12
+ *
13
+ * @param range the newly selected dates
14
+ */
15
+ onApply: (range: DateRangePickerValue) => void;
16
+ /**
17
+ * Function called when the user click on the cancel button
18
+ */
19
+ onCancel: () => void;
20
+ /**
21
+ * The presets to display
22
+ *
23
+ * @default {}
24
+ * @example
25
+ * {
26
+ * january: {label: 'January', range: [new Date(2022, 0, 1), new Date(2022, 0, 31)]},
27
+ * february: {label: 'February', range: [new Date(2022, 1, 1), new Date(2022, 1, 28)]}
28
+ * }
29
+ */
30
+ presets?: Record<string, DateRangePickerPreset>;
31
+ /**
32
+ * Props for RangeCalendar displayed in the popover
33
+ */
34
+ rangeCalendarProps?: Omit<RangeCalendarProps, 'value' | 'onChange'>;
35
+ }
36
+ export declare const DateRangePickerInlineCalendar: ({ initialRange, onApply, onCancel, presets, startProps, endProps, rangeCalendarProps, }: DateRangePickerInlineCalendarProps) => JSX.Element;
37
+ //# sourceMappingURL=DateRangePickerInlineCalendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateRangePickerInlineCalendar.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/DateRangePickerInlineCalendar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,oBAAoB,EAAiB,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAGvF,OAAO,EAAC,qBAAqB,EAA8B,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAA0B,4BAA4B,EAAC,MAAM,2BAA2B,CAAC;AAEhG,MAAM,WAAW,kCACb,SAAQ,IAAI,CAAC,4BAA4B,EAAE,YAAY,GAAG,UAAU,CAAC;IACrE;;OAEG;IACH,YAAY,EAAE,oBAAoB,CAAC;IACnC;;;;OAIG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAChD;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;CACvE;AAED,eAAO,MAAM,6BAA6B,4FAQvC,kCAAkC,gBA8DpC,CAAC"}
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { DateRangePickerValue, RangeCalendarProps } from '@mantine/dates';
3
+ import { EditableDateRangePickerProps } from './EditableDateRangePicker';
4
+ import { DateRangePickerPreset } from './DateRangePickerPresetSelect';
5
+ interface DateRangePickerPopoverCalendarProps<T> extends Pick<EditableDateRangePickerProps, 'startProps' | 'endProps'> {
6
+ /** Default value for uncontrolled input */
7
+ defaultValue?: DateRangePickerValue;
8
+ /** Value for controlled input */
9
+ value?: DateRangePickerValue;
10
+ /** onChange value for controlled input */
11
+ onChange?(value: DateRangePickerValue): void;
12
+ /**
13
+ * The presets to display
14
+ *
15
+ * @default {}
16
+ * @example
17
+ * {
18
+ * january: {label: 'January', range: [new Date(2022, 0, 1), new Date(2022, 0, 31)]},
19
+ * february: {label: 'February', range: [new Date(2022, 1, 1), new Date(2022, 1, 28)]}
20
+ * }
21
+ */
22
+ presets?: Record<string, DateRangePickerPreset>;
23
+ /**
24
+ * Props for RangeCalendar
25
+ */
26
+ rangeCalendarProps?: Omit<RangeCalendarProps, 'value' | 'onChange'>;
27
+ }
28
+ export declare const DateRangePickerPopoverCalendar: <T extends unknown>({ presets, value, defaultValue, onChange, startProps, endProps, rangeCalendarProps, }: DateRangePickerPopoverCalendarProps<T>) => JSX.Element;
29
+ export {};
30
+ //# sourceMappingURL=DateRangePickerPopoverCalendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateRangePickerPopoverCalendar.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/DateRangePickerPopoverCalendar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAiB,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAKvF,OAAO,EAA0B,4BAA4B,EAAC,MAAM,2BAA2B,CAAC;AAChG,OAAO,EAA8B,qBAAqB,EAAC,MAAM,+BAA+B,CAAC;AAEjG,UAAU,mCAAmC,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,4BAA4B,EAAE,YAAY,GAAG,UAAU,CAAC;IAClH,2CAA2C;IAC3C,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,iCAAiC;IACjC,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC7C;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAEhD;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;CACvE;AAED,eAAO,MAAM,8BAA8B,mKA4D1C,CAAC"}
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { DateRangePickerValue } from '@mantine/dates';
3
+ import { SelectProps } from '@mantine/core';
4
+ export interface DateRangePickerPreset {
5
+ label: string;
6
+ range: DateRangePickerValue;
7
+ }
8
+ interface DateRangePickerPresetsSelectProps<T> {
9
+ presets: Record<string, DateRangePickerPreset>;
10
+ value: DateRangePickerValue;
11
+ onChange?(value: DateRangePickerValue): void;
12
+ selectProps?: Partial<Omit<SelectProps, 'data' | 'value' | 'onChange'>>;
13
+ }
14
+ export declare const DateRangePickerPresetSelect: <T extends unknown>({ presets, value, onChange, selectProps, }: DateRangePickerPresetsSelectProps<T>) => JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=DateRangePickerPresetSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateRangePickerPresetSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/DateRangePickerPresetSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAa,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAqB,WAAW,EAAC,MAAM,eAAe,CAAC;AAI9D,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,oBAAoB,CAAC;CAC/B;AAED,UAAU,iCAAiC,CAAC,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC/C,KAAK,EAAE,oBAAoB,CAAC;IAC5B,QAAQ,CAAC,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC;CAC3E;AAED,eAAO,MAAM,2BAA2B,sHA4CvC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { DatePickerProps, DateRangePickerValue } from '@mantine/dates';
2
+ import { ReactNode } from 'react';
3
+ export interface EditableDateRangePickerProps {
4
+ value: DateRangePickerValue;
5
+ onChange?(value: DateRangePickerValue): void;
6
+ onFocus?: () => void;
7
+ separator?: ReactNode;
8
+ /**
9
+ * Props for the start input
10
+ */
11
+ startProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;
12
+ /**
13
+ * Props for the end input
14
+ */
15
+ endProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;
16
+ }
17
+ export declare const EditableDateRangePicker: ({ value, onChange, onFocus, separator, startProps, endProps, }: EditableDateRangePickerProps) => JSX.Element;
18
+ //# sourceMappingURL=EditableDateRangePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableDateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/EditableDateRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAEjF,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhC,MAAM,WAAW,4BAA4B;IACzC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,QAAQ,CAAC,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;IAC9E;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;CAC/E;AAED,eAAO,MAAM,uBAAuB,mEAOjC,4BAA4B,gBAiC9B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './DateRangePickerInlineCalendar';
2
+ export * from './DateRangePickerPopoverCalendar';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { DefaultProps } from '@mantine/core';
2
+ import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
3
+ interface HeaderProps extends DefaultProps {
4
+ description?: ReactNode;
5
+ actions?: ReactNode;
6
+ borderBottom?: boolean;
7
+ docLink?: string;
8
+ docLinkTooltipLabel?: string;
9
+ }
10
+ export declare const Header: FunctionComponent<PropsWithChildren<HeaderProps>>;
11
+ export {};
12
+ //# sourceMappingURL=Header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,YAAY,EAA8C,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAEtE,UAAU,WAAY,SAAQ,YAAY;IACtC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,WAAW,CAAC,CA8BpE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Header';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/header/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,11 @@
1
+ export * from './blank-slate';
2
+ export * from './code-editor';
3
+ export * from './collection';
4
+ export * from './date-range-picker';
5
+ export * from './sticky-footer';
6
+ export * from './header';
7
+ export * from './inline-confirm';
8
+ export * from './table';
9
+ export * from './prompt';
10
+ export * from './modal-wizard';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FunctionComponent, PropsWithChildren } from 'react';
2
+ import { InlineConfirmButton } from './InlineConfirmButton';
3
+ import { InlineConfirmPrompt } from './InlineConfirmPrompt';
4
+ declare type InlineConfirmType = FunctionComponent<PropsWithChildren> & {
5
+ Prompt: typeof InlineConfirmPrompt;
6
+ Button: typeof InlineConfirmButton;
7
+ };
8
+ export declare const InlineConfirm: InlineConfirmType;
9
+ export {};
10
+ //# sourceMappingURL=InlineConfirm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineConfirm.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,iBAAiB,EAAE,iBAAiB,EAAyB,MAAM,OAAO,CAAC;AAE7F,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,aAAK,iBAAiB,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,GAAG;IAC5D,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,MAAM,EAAE,OAAO,mBAAmB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,iBAc3B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ButtonProps } from '@mantine/core';
2
+ import { HTMLAttributes } from 'react';
3
+ interface InlineConfirmButtonProps extends ButtonProps, Omit<HTMLAttributes<HTMLButtonElement>, 'color'> {
4
+ id: string;
5
+ }
6
+ export declare const InlineConfirmButton: (props: InlineConfirmButtonProps) => JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=InlineConfirmButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineConfirmButton.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,cAAc,EAAoB,MAAM,OAAO,CAAC;AAGxD,UAAU,wBAAyB,SAAQ,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACpG,EAAE,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,mBAAmB,UAAW,wBAAwB,gBAQlE,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare type InlineConfirmContextType = {
3
+ confirmingId: string;
4
+ setConfirmingId: (id: string) => void;
5
+ clearConfirm: () => void;
6
+ };
7
+ export declare const InlineConfirmContext: import("react").Context<InlineConfirmContextType>;
8
+ export {};
9
+ //# sourceMappingURL=InlineConfirmContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineConfirmContext.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmContext.ts"],"names":[],"mappings":";AAEA,aAAK,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,MAAM,oBAAoB,mDAAuD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+ interface InlineConfirmPromptProps {
3
+ id: string;
4
+ label: ReactNode;
5
+ onConfirm: () => void;
6
+ confirmLabel?: ReactNode;
7
+ cancelLabel?: ReactNode;
8
+ }
9
+ export declare const InlineConfirmPrompt: FunctionComponent<InlineConfirmPromptProps>;
10
+ export {};
11
+ //# sourceMappingURL=InlineConfirmPrompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineConfirmPrompt.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmPrompt.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI9D,UAAU,wBAAwB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,CAAC,wBAAwB,CAkC3E,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './InlineConfirm';
2
+ export * from './useInlineConfirm';
3
+ export * from './InlineConfirmContext';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const useInlineConfirm: () => {
2
+ confirmingId: string;
3
+ setConfirmingId: (id: string) => void;
4
+ clearConfirm: () => void;
5
+ };
6
+ //# sourceMappingURL=useInlineConfirm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInlineConfirm.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/useInlineConfirm.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB;;;;CAQ5B,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { ReactElement } from 'react';
2
+ import { ModalWizardStep } from './ModalWizardStep';
3
+ interface ModalWizardProps {
4
+ /**
5
+ * The label of the cancel button
6
+ *
7
+ * @default "Cancel"
8
+ */
9
+ cancelButtonLabel?: string;
10
+ /**
11
+ * The label of the next button
12
+ *
13
+ * @default "Next"
14
+ */
15
+ nextButtonLabel?: string;
16
+ /**
17
+ * The label of the previous button
18
+ *
19
+ * @default "Previous"
20
+ */
21
+ previousButtonLabel?: string;
22
+ /**
23
+ * The label of the finish button
24
+ *
25
+ * @default "Finish"
26
+ */
27
+ finishButtonLabel?: string;
28
+ /**
29
+ * A callback function that is executed when the user clicks on the next button
30
+ */
31
+ onNext?: () => unknown;
32
+ /**
33
+ * A callback function that is executed when the user clicks on the previous button
34
+ */
35
+ onPrevious?: () => unknown;
36
+ /**
37
+ * A callback function that is executed when the user clicks on the cancel button
38
+ */
39
+ onClose?: () => unknown;
40
+ /**
41
+ * A function that is executed when user completes all the steps.
42
+ *
43
+ * @param close A function that closes the modal when called.
44
+ */
45
+ onFinish?: () => unknown;
46
+ /**
47
+ * Determine if user interacted with any steps in the modal wizard
48
+ */
49
+ isDirty?: () => boolean;
50
+ /**
51
+ * A function to confirm close if the state is dirty before closing
52
+ */
53
+ handleDirtyState?: () => boolean;
54
+ /**
55
+ * Props to pass to each modal
56
+ */
57
+ modalProps?: any;
58
+ /**
59
+ * Label for close button
60
+ */
61
+ closeButtonLabel?: string;
62
+ /**
63
+ * Children to display in modal wizard
64
+ * */
65
+ children?: Array<ReturnType<typeof ModalWizardStep>>;
66
+ }
67
+ interface ModalWizardType {
68
+ <T>(props: ModalWizardProps): ReactElement;
69
+ Step: typeof ModalWizardStep;
70
+ }
71
+ export declare const ModalWizard: ModalWizardType;
72
+ export {};
73
+ //# sourceMappingURL=ModalWizard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalWizard.d.ts","sourceRoot":"","sources":["../../../../src/components/modal-wizard/ModalWizard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,YAAY,EAAoB,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAGlD,UAAU,gBAAgB;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IAEH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IAEH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAE3B;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IAExB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC;IAEzB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;SAEK;IACL,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;CACxD;AAUD,UAAU,eAAe;IACrB,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,GAAG,YAAY,CAAC;IAE3C,IAAI,EAAE,OAAO,eAAe,CAAC;CAChC;AAED,eAAO,MAAM,WAAW,EAAE,eA6GzB,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { FunctionComponent, PropsWithChildren, ReactElement } from 'react';
2
+ declare type DependsOnStep<T> = (currentStep: number, numberOfSteps: number) => T;
3
+ export interface ModalWizardStepProps {
4
+ /**
5
+ * The title of the current step. The title can be dependent on the current step if needed
6
+ */
7
+ title?: string | ReactElement | DependsOnStep<string | ReactElement>;
8
+ /**
9
+ * The description of the current step. The description can be dependent on the current step if needed
10
+ */
11
+ description?: string | ReactElement | DependsOnStep<string | ReactElement>;
12
+ /**
13
+ * A link to the documentation for the current step
14
+ */
15
+ docLink: string;
16
+ /**
17
+ * A tooltip label for the docLink
18
+ */
19
+ docLinkTooltipLabel?: string | ReactElement | DependsOnStep<string | ReactElement>;
20
+ /**
21
+ * A function to validate the current step, it determines if the next step should be enabled or not.
22
+ */
23
+ validateStep: (currentStep: any, numberOfSteps: any) => {
24
+ isValid: boolean;
25
+ messsage?: unknown;
26
+ };
27
+ /**
28
+ * Show progress bar at this step
29
+ *
30
+ * @default true
31
+ */
32
+ showProgressBar?: boolean;
33
+ /**
34
+ * Does completion of current step count moves the progress bar
35
+ *
36
+ * @default true
37
+ */
38
+ countsAsProgress?: boolean;
39
+ }
40
+ declare const ModalWizardStep: FunctionComponent<PropsWithChildren<ModalWizardStepProps>>;
41
+ export { ModalWizardStep };
42
+ //# sourceMappingURL=ModalWizardStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalWizardStep.d.ts","sourceRoot":"","sources":["../../../../src/components/modal-wizard/ModalWizardStep.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;AAEzE,aAAK,aAAa,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC,CAAC;AAE1E,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;IAErE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;IAE3E;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;IAEnF;;OAEG;IACH,YAAY,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,KAAK;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAC,CAAC;IAE/F;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,QAAA,MAAM,eAAe,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAE/E,CAAC;AAOF,OAAO,EAAC,eAAe,EAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './ModalWizard';
2
+ export { type ModalWizardStepProps } from './ModalWizardStep';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/modal-wizard/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,KAAK,oBAAoB,EAAC,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { ModalProps } from '@mantine/core';
2
+ import { ReactElement, ReactNode } from 'react';
3
+ import { PromptFooter } from './PromptFooter';
4
+ export interface PromptProps extends ModalProps {
5
+ variant: 'default' | 'success' | 'warning' | 'critical' | 'info';
6
+ children: ReactNode;
7
+ }
8
+ interface PromptType {
9
+ (props: PromptProps): ReactElement;
10
+ Footer: typeof PromptFooter;
11
+ }
12
+ export declare const Prompt: PromptType;
13
+ export {};
14
+ //# sourceMappingURL=Prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../src/components/prompt/Prompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,UAAU,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAW,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AA+B5C,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC3C,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;IACjE,QAAQ,EAAE,SAAS,CAAC;CACvB;AACD,UAAU,UAAU;IAChB,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAAC;IACnC,MAAM,EAAE,OAAO,YAAY,CAAC;CAC/B;AAED,eAAO,MAAM,MAAM,EAAE,UAqBpB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent, PropsWithChildren } from 'react';
2
+ import { StickyFooterProps } from '../sticky-footer';
3
+ export interface PromptFooterProps extends StickyFooterProps {
4
+ }
5
+ export declare const PromptFooter: FunctionComponent<PropsWithChildren<PromptFooterProps>>;
6
+ //# sourceMappingURL=PromptFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PromptFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/prompt/PromptFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAe,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAEjE,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;CAAG;AAE/D,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAEhF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Prompt';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/prompt/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { DefaultProps } from '@mantine/core';
2
+ import { FunctionComponent, PropsWithChildren } from 'react';
3
+ export interface StickyFooterProps extends DefaultProps {
4
+ /**
5
+ * Whether a border is render on top of the footer
6
+ */
7
+ borderTop?: boolean;
8
+ }
9
+ export declare const StickyFooter: FunctionComponent<PropsWithChildren<StickyFooterProps>>;
10
+ //# sourceMappingURL=StickyFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StickyFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,YAAY,EAAwB,MAAM,eAAe,CAAC;AAChF,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACnD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAWD,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAehF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './StickyFooter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sticky-footer/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ import { InitialTableState } from '@tanstack/table-core';
3
+ import { ReactElement, ReactNode } from 'react';
4
+ import { TableActions } from './TableActions';
5
+ import { TableCollapsibleColumn } from './TableCollapsibleColumn';
6
+ import { onTableChangeEvent, TableFormType } from './TableContext';
7
+ import { TableDateRangePicker } from './TableDateRangePicker';
8
+ import { TableFilter } from './TableFilter';
9
+ import { TableFooter } from './TableFooter';
10
+ import { TableHeader } from './TableHeader';
11
+ import { TablePagination } from './TablePagination';
12
+ import { TablePerPage } from './TablePerPage';
13
+ import { TablePredicate } from './TablePredicate';
14
+ interface TableProps<T> {
15
+ /**
16
+ * Data to display in the table
17
+ */
18
+ data: T[];
19
+ /**
20
+ * Columns to display in the table.
21
+ *
22
+ * @see https://tanstack.com/table/v8/docs/guide/column-defs
23
+ */
24
+ columns: Array<ColumnDef<T>>;
25
+ /**
26
+ * Function called when the table mounts
27
+ *
28
+ * @param state the state of the table
29
+ */
30
+ onMount?: onTableChangeEvent;
31
+ /**
32
+ * Function called when the table should update
33
+ *
34
+ * @param state the state of the table
35
+ */
36
+ onChange?: onTableChangeEvent;
37
+ /**
38
+ * Function that generates the expandable content of a row
39
+ * Return null for rows that don't need to be expandable
40
+ *
41
+ * @param datum the row for which the children should be generated.
42
+ */
43
+ getExpandChildren?: (datum: T) => ReactNode;
44
+ /**
45
+ * React children to show when the table has no rows to show. You can leverage useTable to get the state of the table
46
+ */
47
+ noDataChildren?: ReactNode;
48
+ /**
49
+ * Whether the table is loading or not
50
+ *
51
+ * @default false
52
+ */
53
+ loading?: boolean;
54
+ /**
55
+ * Childrens to display in the table. They need to be wrap in either `Table.Header` or `Table.Footer`
56
+ *
57
+ * @example
58
+ * <Table ...>
59
+ * <Table.Header>
60
+ * <div>Hello</div>
61
+ * </Table.Header>
62
+ * </Table>
63
+ */
64
+ children?: ReactNode;
65
+ /**
66
+ * Initial state of the table
67
+ */
68
+ initialState?: InitialTableState & Partial<TableFormType>;
69
+ }
70
+ interface TableType {
71
+ <T>(props: TableProps<T>): ReactElement;
72
+ Actions: typeof TableActions;
73
+ Filter: typeof TableFilter;
74
+ Footer: typeof TableFooter;
75
+ Header: typeof TableHeader;
76
+ Pagination: typeof TablePagination;
77
+ PerPage: typeof TablePerPage;
78
+ Predicate: typeof TablePredicate;
79
+ CollapsibleColumn: typeof TableCollapsibleColumn;
80
+ DateRangePicker: typeof TableDateRangePicker;
81
+ }
82
+ export declare const Table: TableType;
83
+ export {};
84
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/table/Table.tsx"],"names":[],"mappings":"AAGA,OAAO,EACH,SAAS,EAOZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAqB,YAAY,EAAE,SAAS,EAAmC,MAAM,OAAO,CAAC;AAEpG,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,kBAAkB,EAAgB,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAsChD,UAAU,UAAU,CAAC,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,CAAC,EAAE,CAAC;IACV;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7B;;;;OAIG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC;IAC5C;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAC7D;AAED,UAAU,SAAS;IACf,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC;IACxC,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,UAAU,EAAE,OAAO,eAAe,CAAC;IACnC,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B,SAAS,EAAE,OAAO,cAAc,CAAC;IACjC,iBAAiB,EAAE,OAAO,sBAAsB,CAAC;IACjD,eAAe,EAAE,OAAO,oBAAoB,CAAC;CAChD;AAED,eAAO,MAAM,KAAK,EAAE,SAmJnB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface TableActionsProps<T> {
3
+ /**
4
+ * Function that return components for the selected row
5
+ *
6
+ * @param datum the data of the selected row
7
+ * @example
8
+ * <Table.Actions<MyType>>
9
+ * {(datum: MyType) => (
10
+ * <Button
11
+ * component={Link}
12
+ * to={`edit/${datum.id}`}
13
+ * leftIcon={<EditSize24Px />}
14
+ * variant="subtle"
15
+ * color="navyBlue.8"
16
+ * >
17
+ * Edit
18
+ * </Button>
19
+ * )}
20
+ * </Table.Actions>
21
+ */
22
+ children: (datum: T) => ReactNode;
23
+ }
24
+ export declare const TableActions: <T>({ children }: TableActionsProps<T>) => ReactElement;
25
+ export {};
26
+ //# sourceMappingURL=TableActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableActions.d.ts","sourceRoot":"","sources":["../../../../src/components/table/TableActions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAG9C,UAAU,iBAAiB,CAAC,CAAC;IACzB;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC;CACrC;AAED,eAAO,MAAM,YAAY,6CAA2C,YASnE,CAAC"}