@indico-data/design-system 3.18.0 → 3.20.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 (310) hide show
  1. package/.eslintrc.js +87 -2
  2. package/.husky/pre-commit +2 -0
  3. package/.vscode/settings.json +10 -1
  4. package/lib/components/badge/Badge.d.ts +1 -1
  5. package/lib/components/badge/Badge.stories.d.ts +1 -1
  6. package/lib/components/button/Button.d.ts +2 -2
  7. package/lib/components/button/Button.stories.d.ts +1 -1
  8. package/lib/components/button/types.d.ts +1 -1
  9. package/lib/components/card/Card.d.ts +1 -1
  10. package/lib/components/card/Card.stories.d.ts +1 -1
  11. package/lib/components/floatUI/FloatUI.d.ts +1 -1
  12. package/lib/components/floatUI/FloatUI.stories.d.ts +2 -2
  13. package/lib/components/floatUI/types.d.ts +2 -2
  14. package/lib/components/forms/checkbox/Checkbox.stories.d.ts +1 -1
  15. package/lib/components/forms/date/datePicker/DatePicker.d.ts +1 -1
  16. package/lib/components/forms/date/datePicker/DatePicker.stories.d.ts +1 -1
  17. package/lib/components/forms/date/datePicker/contants.d.ts +1 -1
  18. package/lib/components/forms/date/datePicker/types.d.ts +8 -1
  19. package/lib/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.d.ts +7 -4
  20. package/lib/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.stories.d.ts +1 -1
  21. package/lib/components/forms/date/iconTriggerDatePicker/types.d.ts +5 -0
  22. package/lib/components/forms/date/inputDatePicker/SingleInputDatePicker.d.ts +4 -3
  23. package/lib/components/forms/date/inputDatePicker/SingleInputDatePicker.stories.d.ts +1 -1
  24. package/lib/components/forms/date/inputDateRangePicker/InputDateRangePicker.d.ts +7 -4
  25. package/lib/components/forms/date/inputDateRangePicker/InputDateRangePicker.stories.d.ts +1 -1
  26. package/lib/components/forms/date/inputDateRangePicker/types.d.ts +7 -0
  27. package/lib/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.d.ts +4 -3
  28. package/lib/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.stories.d.ts +1 -1
  29. package/lib/components/forms/form/Form.d.ts +1 -1
  30. package/lib/components/forms/form/Form.stories.d.ts +1 -1
  31. package/lib/components/forms/input/Input.d.ts +2 -2
  32. package/lib/components/forms/input/Input.stories.d.ts +1 -1
  33. package/lib/components/forms/numberInput/NumberInput.d.ts +2 -2
  34. package/lib/components/forms/numberInput/NumberInput.stories.d.ts +1 -1
  35. package/lib/components/forms/passwordInput/PasswordInput.d.ts +1 -1
  36. package/lib/components/forms/passwordInput/PasswordInput.stories.d.ts +1 -1
  37. package/lib/components/forms/radio/Radio.stories.d.ts +1 -1
  38. package/lib/components/forms/select/Select.d.ts +4 -2
  39. package/lib/components/forms/select/Select.stories.d.ts +4 -4
  40. package/lib/components/forms/select/types.d.ts +11 -1
  41. package/lib/components/forms/subcomponents/Label.d.ts +5 -1
  42. package/lib/components/forms/subcomponents/types.d.ts +5 -0
  43. package/lib/components/forms/textarea/Textarea.d.ts +1 -1
  44. package/lib/components/forms/textarea/Textarea.stories.d.ts +1 -1
  45. package/lib/components/forms/timePicker/TimePicker.d.ts +4 -1
  46. package/lib/components/forms/timePicker/types.d.ts +5 -0
  47. package/lib/components/forms/toggle/Toggle.stories.d.ts +1 -1
  48. package/lib/components/grid/col/Col.d.ts +1 -1
  49. package/lib/components/grid/col/Col.stories.d.ts +1 -1
  50. package/lib/components/grid/container/Container.d.ts +1 -1
  51. package/lib/components/grid/container/Container.stories.d.ts +1 -1
  52. package/lib/components/grid/row/Row.d.ts +1 -1
  53. package/lib/components/grid/row/Row.stories.d.ts +1 -1
  54. package/lib/components/icons/Icon.d.ts +1 -1
  55. package/lib/components/icons/Icon.stories.d.ts +2 -2
  56. package/lib/components/icons/indicons.d.ts +1 -1
  57. package/lib/components/icons/types.d.ts +4 -4
  58. package/lib/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +1 -1
  59. package/lib/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +1 -1
  60. package/lib/components/menu/Menu.stories.d.ts +2 -2
  61. package/lib/components/modal/ConfirmationModal.d.ts +2 -2
  62. package/lib/components/modal/Modal.d.ts +2 -2
  63. package/lib/components/modal/Modal.stories.d.ts +6 -2
  64. package/lib/components/modal/types.d.ts +21 -7
  65. package/lib/components/pagination/Pagination.d.ts +2 -2
  66. package/lib/components/pagination/Pagination.stories.d.ts +1 -1
  67. package/lib/components/pagination/index.d.ts +1 -0
  68. package/lib/components/pagination/types.d.ts +13 -0
  69. package/lib/components/pill/Pill.d.ts +1 -1
  70. package/lib/components/pill/Pill.stories.d.ts +1 -1
  71. package/lib/components/pill/types.d.ts +2 -2
  72. package/lib/components/skeleton/Skeleton.stories.d.ts +1 -1
  73. package/lib/components/stepper/Stepper.d.ts +2 -2
  74. package/lib/components/stepper/Stepper.stories.d.ts +1 -1
  75. package/lib/components/stepper/components/BackNavigation.d.ts +2 -1
  76. package/lib/components/stepper/components/Legend.d.ts +1 -1
  77. package/lib/components/stepper/components/NextNavigation.d.ts +3 -1
  78. package/lib/components/stepper/types.d.ts +12 -1
  79. package/lib/components/table/LoadingComponent.d.ts +5 -1
  80. package/lib/components/table/Table.d.ts +1 -1
  81. package/lib/components/table/Table.stories.d.ts +2 -2
  82. package/lib/components/table/components/HorizontalStickyHeader.d.ts +4 -1
  83. package/lib/components/table/components/helpers.d.ts +1 -1
  84. package/lib/components/table/hooks/usePinnedColumnsManager.d.ts +2 -2
  85. package/lib/components/table/sampleData.d.ts +1 -1
  86. package/lib/components/table/types.d.ts +20 -2
  87. package/lib/components/table/utils/processColumns.d.ts +2 -2
  88. package/lib/components/tanstackTable/TankstackTable.types.d.ts +20 -3
  89. package/lib/components/tanstackTable/TanstackTable.d.ts +2 -2
  90. package/lib/components/tanstackTable/TanstackTable.stories.d.ts +2 -2
  91. package/lib/components/tanstackTable/__tests__/__mocks__/test-mock-data.d.ts +1 -1
  92. package/lib/components/tanstackTable/components/ActionBar/ActionBar.d.ts +2 -2
  93. package/lib/components/tanstackTable/components/ActionBar/ActionBar.stories.d.ts +1 -1
  94. package/lib/components/tanstackTable/components/NoResults/NoResults.d.ts +2 -1
  95. package/lib/components/tanstackTable/components/TableBody/TableBody.d.ts +1 -1
  96. package/lib/components/tanstackTable/components/TableHeader/TableHeader.d.ts +1 -1
  97. package/lib/components/tanstackTable/components/TableLoading/TableLoading.d.ts +1 -1
  98. package/lib/components/tanstackTable/components/TablePagination/TablePagination.d.ts +3 -1
  99. package/lib/components/tanstackTable/docs/internalSorting/InternalClientSideSorting.stories.d.ts +2 -2
  100. package/lib/components/tanstackTable/docs/pinnedColumns/PinnedColumn.stories.d.ts +2 -2
  101. package/lib/components/tanstackTable/docs/withRowClick/WithRowClick.stories.d.ts +2 -2
  102. package/lib/components/tanstackTable/helpers.d.ts +2 -2
  103. package/lib/components/tanstackTable/mock-data/table-configuration.d.ts +2 -2
  104. package/lib/components/tanstackTable/useTanstackTable.d.ts +1 -1
  105. package/lib/components/toast/Toast.stories.d.ts +1 -1
  106. package/lib/components/tooltip/Tooltip.d.ts +2 -2
  107. package/lib/components/tooltip/Tooltip.stories.d.ts +1 -1
  108. package/lib/components/truncate/Truncate.d.ts +1 -1
  109. package/lib/components/truncate/Truncate.stories.d.ts +2 -2
  110. package/lib/components/truncate/types.d.ts +1 -1
  111. package/lib/docs/BaseColorPalette/BaseColorsPalette.stories.d.ts +1 -1
  112. package/lib/docs/SemanticTokens/ColorSwatch.d.ts +1 -1
  113. package/lib/docs/SemanticTokens/SemanticTokens.stories.d.ts +1 -1
  114. package/lib/index.d.ts +165 -45
  115. package/lib/index.esm.js +253 -170
  116. package/lib/index.esm.js.map +1 -1
  117. package/lib/index.js +253 -170
  118. package/lib/index.js.map +1 -1
  119. package/lib/setup/setupIcons.d.ts +1 -1
  120. package/lib/storybook/formArgTypes.d.ts +1 -1
  121. package/lib/stylesAndAnimations/borders/BorderColor.stories.d.ts +1 -1
  122. package/lib/stylesAndAnimations/borders/BorderRadius.stories.d.ts +1 -1
  123. package/lib/stylesAndAnimations/borders/BorderStyles.stories.d.ts +1 -1
  124. package/lib/stylesAndAnimations/borders/BorderThickness.stories.d.ts +1 -1
  125. package/lib/stylesAndAnimations/colors/UtilityClasses.stories.d.ts +1 -1
  126. package/lib/stylesAndAnimations/sizing/Sizing.stories.d.ts +1 -1
  127. package/lib/stylesAndAnimations/typography/Typography.stories.d.ts +1 -1
  128. package/lib/stylesAndAnimations/utilityClasses/UtilityClassesTable.stories.d.ts +1 -1
  129. package/lib/types.d.ts +4 -4
  130. package/package.json +8 -2
  131. package/src/components/badge/Badge.stories.tsx +4 -3
  132. package/src/components/badge/Badge.tsx +2 -1
  133. package/src/components/badge/__tests__/Badge.test.tsx +1 -0
  134. package/src/components/button/Button.stories.tsx +5 -4
  135. package/src/components/button/Button.tsx +12 -22
  136. package/src/components/button/__tests__/Button.test.tsx +31 -28
  137. package/src/components/button/types.ts +1 -1
  138. package/src/components/card/Card.stories.tsx +2 -1
  139. package/src/components/card/Card.tsx +2 -1
  140. package/src/components/card/__tests__/Card.test.tsx +1 -0
  141. package/src/components/floatUI/FloatUI.stories.tsx +3 -2
  142. package/src/components/floatUI/FloatUI.tsx +6 -7
  143. package/src/components/floatUI/__tests__/FloatUI.test.tsx +5 -3
  144. package/src/components/floatUI/types.ts +2 -2
  145. package/src/components/forms/checkbox/Checkbox.stories.tsx +3 -2
  146. package/src/components/forms/checkbox/Checkbox.tsx +1 -1
  147. package/src/components/forms/checkbox/__tests__/Checkbox.test.tsx +2 -1
  148. package/src/components/forms/date/datePicker/DatePicker.stories.tsx +12 -1
  149. package/src/components/forms/date/datePicker/DatePicker.tsx +35 -25
  150. package/src/components/forms/date/datePicker/__tests__/DatePicker.test.tsx +1 -0
  151. package/src/components/forms/date/datePicker/contants.ts +1 -1
  152. package/src/components/forms/date/datePicker/types.ts +16 -8
  153. package/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.stories.tsx +16 -2
  154. package/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.tsx +21 -8
  155. package/src/components/forms/date/iconTriggerDatePicker/__tests__/IconTriggerDatePicker.test.tsx +2 -1
  156. package/src/components/forms/date/iconTriggerDatePicker/types.ts +5 -0
  157. package/src/components/forms/date/inputDatePicker/SingleInputDatePicker.stories.tsx +4 -2
  158. package/src/components/forms/date/inputDatePicker/SingleInputDatePicker.tsx +18 -13
  159. package/src/components/forms/date/inputDatePicker/__tests__/SingleInputDatePicker.test.tsx +4 -2
  160. package/src/components/forms/date/inputDateRangePicker/InputDateRangePicker.stories.tsx +15 -4
  161. package/src/components/forms/date/inputDateRangePicker/InputDateRangePicker.tsx +29 -23
  162. package/src/components/forms/date/inputDateRangePicker/__tests__/InputDateRangePicker.test.tsx +2 -2
  163. package/src/components/forms/date/inputDateRangePicker/types.ts +7 -0
  164. package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.stories.tsx +9 -5
  165. package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.tsx +18 -13
  166. package/src/components/forms/form/Form.stories.tsx +7 -6
  167. package/src/components/forms/form/Form.tsx +1 -1
  168. package/src/components/forms/form/__tests__/Form.test.tsx +7 -4
  169. package/src/components/forms/input/Input.stories.tsx +6 -3
  170. package/src/components/forms/input/Input.tsx +4 -3
  171. package/src/components/forms/input/__tests__/Input.test.tsx +5 -3
  172. package/src/components/forms/numberInput/NumberInput.stories.tsx +5 -2
  173. package/src/components/forms/numberInput/NumberInput.tsx +6 -3
  174. package/src/components/forms/numberInput/__tests__/NumberInput.test.tsx +2 -1
  175. package/src/components/forms/passwordInput/PasswordInput.stories.tsx +6 -3
  176. package/src/components/forms/passwordInput/PasswordInput.tsx +12 -3
  177. package/src/components/forms/passwordInput/__tests__/PasswordInput.test.tsx +3 -4
  178. package/src/components/forms/radio/Radio.stories.tsx +5 -2
  179. package/src/components/forms/radio/__tests__/Radio.test.tsx +3 -2
  180. package/src/components/forms/select/Select.stories.tsx +11 -9
  181. package/src/components/forms/select/Select.tsx +21 -6
  182. package/src/components/forms/select/__tests__/Select.test.tsx +2 -2
  183. package/src/components/forms/select/types.ts +13 -1
  184. package/src/components/forms/subcomponents/Label.tsx +24 -4
  185. package/src/components/forms/subcomponents/__tests__/Label.test.tsx +1 -0
  186. package/src/components/forms/subcomponents/types.ts +5 -0
  187. package/src/components/forms/textarea/Textarea.stories.tsx +5 -2
  188. package/src/components/forms/textarea/Textarea.tsx +5 -4
  189. package/src/components/forms/textarea/__tests__/Textarea.test.tsx +3 -3
  190. package/src/components/forms/timePicker/TimePicker.stories.tsx +14 -2
  191. package/src/components/forms/timePicker/TimePicker.tsx +15 -5
  192. package/src/components/forms/timePicker/__tests__/TimePicker.test.tsx +2 -1
  193. package/src/components/forms/timePicker/types.ts +5 -0
  194. package/src/components/forms/toggle/Toggle.stories.tsx +3 -2
  195. package/src/components/forms/toggle/__tests__/Toggle.test.tsx +3 -2
  196. package/src/components/grid/col/Col.stories.tsx +2 -1
  197. package/src/components/grid/col/Col.tsx +1 -1
  198. package/src/components/grid/container/Container.stories.tsx +2 -1
  199. package/src/components/grid/container/Container.tsx +1 -1
  200. package/src/components/grid/row/Row.stories.tsx +2 -1
  201. package/src/components/grid/row/Row.tsx +1 -1
  202. package/src/components/icons/Icon.stories.tsx +11 -4
  203. package/src/components/icons/Icon.tsx +4 -3
  204. package/src/components/icons/__tests__/Icon.test.tsx +1 -0
  205. package/src/components/icons/indicons.tsx +3 -3
  206. package/src/components/icons/types.ts +5 -4
  207. package/src/components/loading-indicators/BarSpinner/BarSpinner.stories.tsx +2 -1
  208. package/src/components/loading-indicators/BarSpinner/__tests__/BarSpinner.test.tsx +1 -0
  209. package/src/components/loading-indicators/CirclePulse/CirclePulse.stories.tsx +2 -1
  210. package/src/components/menu/Menu.stories.tsx +3 -2
  211. package/src/components/menu/Menu.test.tsx +1 -1
  212. package/src/components/menu/Menu.tsx +1 -1
  213. package/src/components/modal/ConfirmationModal.tsx +25 -18
  214. package/src/components/modal/Modal.stories.tsx +62 -28
  215. package/src/components/modal/Modal.tsx +9 -2
  216. package/src/components/modal/__tests__/Modal.test.tsx +1 -0
  217. package/src/components/modal/types.ts +23 -7
  218. package/src/components/pagination/Pagination.stories.tsx +14 -2
  219. package/src/components/pagination/Pagination.tsx +18 -8
  220. package/src/components/pagination/__tests__/Pagination.test.tsx +1 -0
  221. package/src/components/pagination/index.ts +1 -0
  222. package/src/components/pagination/types.ts +14 -0
  223. package/src/components/pill/Pill.stories.tsx +10 -6
  224. package/src/components/pill/Pill.tsx +2 -1
  225. package/src/components/pill/__tests__/Pill.test.tsx +4 -1
  226. package/src/components/pill/types.ts +4 -2
  227. package/src/components/skeleton/Skeleton.stories.tsx +2 -1
  228. package/src/components/skeleton/__tests__/Skeleton.test.tsx +1 -0
  229. package/src/components/stepper/Stepper.stories.tsx +20 -7
  230. package/src/components/stepper/Stepper.tsx +18 -3
  231. package/src/components/stepper/__tests__/Stepper.tests.tsx +5 -4
  232. package/src/components/stepper/components/BackNavigation.tsx +5 -3
  233. package/src/components/stepper/components/Legend.tsx +4 -3
  234. package/src/components/stepper/components/NextNavigation.tsx +15 -5
  235. package/src/components/stepper/examples/MixedExample.tsx +4 -3
  236. package/src/components/stepper/examples/OptionalStepsExample.tsx +4 -3
  237. package/src/components/stepper/examples/RequiredStepsExample.tsx +4 -3
  238. package/src/components/stepper/examples/commonExample/CommonExample.tsx +4 -3
  239. package/src/components/stepper/examples/commonExample/steps/StepOne.tsx +1 -0
  240. package/src/components/stepper/examples/commonExample/steps/StepThree.tsx +1 -0
  241. package/src/components/stepper/examples/commonExample/steps/StepTwo.tsx +1 -0
  242. package/src/components/stepper/types.ts +13 -1
  243. package/src/components/table/LoadingComponent.tsx +6 -2
  244. package/src/components/table/Table.stories.tsx +19 -5
  245. package/src/components/table/Table.tsx +16 -5
  246. package/src/components/table/__tests__/Table.test.tsx +2 -1
  247. package/src/components/table/components/HorizontalStickyHeader.tsx +14 -2
  248. package/src/components/table/components/TablePagination.tsx +1 -1
  249. package/src/components/table/components/__tests__/HorizontalStickyHeader.test.tsx +3 -3
  250. package/src/components/table/components/__tests__/TablePagination.test.tsx +1 -0
  251. package/src/components/table/components/helpers.ts +1 -1
  252. package/src/components/table/hooks/usePinnedColumnsManager.ts +7 -2
  253. package/src/components/table/sampleData.tsx +1 -3
  254. package/src/components/table/types.ts +25 -6
  255. package/src/components/table/utils/processColumns.tsx +4 -2
  256. package/src/components/tanstackTable/TankstackTable.types.ts +21 -3
  257. package/src/components/tanstackTable/TanstackTable.stories.tsx +14 -11
  258. package/src/components/tanstackTable/TanstackTable.tsx +28 -18
  259. package/src/components/tanstackTable/__tests__/TanstackTable.test.tsx +2 -1
  260. package/src/components/tanstackTable/__tests__/__mocks__/test-mock-data.tsx +2 -1
  261. package/src/components/tanstackTable/components/ActionBar/ActionBar.stories.tsx +6 -3
  262. package/src/components/tanstackTable/components/ActionBar/ActionBar.tsx +7 -3
  263. package/src/components/tanstackTable/components/ActionBar/__tests__/ActionBar.test.tsx +4 -1
  264. package/src/components/tanstackTable/components/NoResults/NoResults.tsx +9 -3
  265. package/src/components/tanstackTable/components/NoResults/__tests__/NoResult.test.tsx +1 -0
  266. package/src/components/tanstackTable/components/TableBody/TableBody.tsx +2 -1
  267. package/src/components/tanstackTable/components/TableHeader/TableHeader.tsx +3 -2
  268. package/src/components/tanstackTable/components/TableLoading/TableLoading.tsx +2 -1
  269. package/src/components/tanstackTable/components/TablePagination/TablePagination.tsx +4 -1
  270. package/src/components/tanstackTable/components/TablePagination/__tests__/TablePagination.test.tsx +1 -0
  271. package/src/components/tanstackTable/docs/internalSorting/InternalClientSideSorting.stories.tsx +5 -5
  272. package/src/components/tanstackTable/docs/pinnedColumns/PinnedColumn.stories.tsx +5 -4
  273. package/src/components/tanstackTable/docs/withRowClick/WithRowClick.stories.tsx +5 -4
  274. package/src/components/tanstackTable/helpers.ts +2 -2
  275. package/src/components/tanstackTable/mock-data/table-configuration.tsx +7 -4
  276. package/src/components/tanstackTable/useTanstackTable.tsx +1 -2
  277. package/src/components/toast/Toast.stories.tsx +2 -1
  278. package/src/components/tooltip/Tooltip.stories.tsx +3 -2
  279. package/src/components/tooltip/Tooltip.tsx +2 -2
  280. package/src/components/truncate/Truncate.stories.tsx +3 -2
  281. package/src/components/truncate/Truncate.tsx +5 -4
  282. package/src/components/truncate/__tests__/Truncate.test.tsx +1 -0
  283. package/src/components/truncate/types.ts +1 -1
  284. package/src/docs/BaseColorPalette/BaseColorPalette.tsx +1 -0
  285. package/src/docs/BaseColorPalette/BaseColorsPalette.stories.tsx +2 -1
  286. package/src/docs/BaseColorPalette/Swatch.tsx +2 -1
  287. package/src/docs/SemanticTokens/ColorSwatch.tsx +1 -1
  288. package/src/docs/SemanticTokens/SemanticTokens.stories.tsx +2 -2
  289. package/src/index.ts +1 -1
  290. package/src/setup/setupIcons.ts +2 -2
  291. package/src/storybook/formArgTypes.ts +12 -1
  292. package/src/storybook/iconNames.ts +1 -0
  293. package/src/storybookDocs/Permafrost.mdx +8 -0
  294. package/src/stylesAndAnimations/borders/BorderColor.stories.tsx +2 -1
  295. package/src/stylesAndAnimations/borders/BorderColor.tsx +0 -1
  296. package/src/stylesAndAnimations/borders/BorderRadius.stories.tsx +2 -1
  297. package/src/stylesAndAnimations/borders/BorderRadius.tsx +0 -1
  298. package/src/stylesAndAnimations/borders/BorderStyles.stories.tsx +2 -1
  299. package/src/stylesAndAnimations/borders/BorderStyles.tsx +0 -1
  300. package/src/stylesAndAnimations/borders/BorderThickness.stories.tsx +2 -1
  301. package/src/stylesAndAnimations/borders/BorderThickness.tsx +0 -1
  302. package/src/stylesAndAnimations/colors/UtilityClasses.stories.tsx +2 -1
  303. package/src/stylesAndAnimations/colors/UtilityClasses.tsx +1 -2
  304. package/src/stylesAndAnimations/sizing/Sizing.stories.tsx +2 -1
  305. package/src/stylesAndAnimations/sizing/Sizing.tsx +0 -1
  306. package/src/stylesAndAnimations/typography/Typography.stories.tsx +2 -1
  307. package/src/stylesAndAnimations/typography/Typography.tsx +0 -1
  308. package/src/stylesAndAnimations/utilityClasses/UtilityClassesTable.stories.tsx +2 -1
  309. package/src/stylesAndAnimations/utilityClasses/UtilityClassesTable.tsx +6 -3
  310. package/src/types.ts +12 -6
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { Row } from '@/components';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -1,2 +1,2 @@
1
- import { IconProps } from './types';
1
+ import { type IconProps } from './types';
2
2
  export declare const Icon: ({ name, size, className, ariaLabel, faPrefix, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { IconProps } from './types';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
+ import { type IconProps } from './types';
3
3
  declare const meta: Meta;
4
4
  export default meta;
5
5
  type Story = StoryObj<IconProps>;
@@ -1,4 +1,4 @@
1
- import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
1
+ import { type IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
2
  declare const indicons: {
3
3
  'indico-o-white': import("react/jsx-runtime").JSX.Element;
4
4
  account: import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- import { MouseEventHandler, CSSProperties } from 'react';
2
- import { PermafrostComponent } from '../../types';
3
- import { IconName as FAIconName, IconPrefix } from '@fortawesome/fontawesome-svg-core';
4
- import { indicons } from './indicons';
1
+ import { type IconName as FAIconName, type IconPrefix } from '@fortawesome/fontawesome-svg-core';
2
+ import { type MouseEventHandler, type CSSProperties } from 'react';
3
+ import { type indicons } from './indicons';
4
+ import { type PermafrostComponent } from '../../types';
5
5
  export type IconSizes = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
6
6
  export type IndiconName = keyof typeof indicons;
7
7
  export type IconName = IndiconName | `fa-${FAIconName}`;
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { BarSpinner } from './BarSpinner';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { CirclePulse } from './CirclePulse';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Menu, MenuProps } from './Menu';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
+ import { Menu, type MenuProps } from './Menu';
3
3
  declare const meta: Meta<typeof Menu>;
4
4
  export default meta;
5
5
  type Story = StoryObj<MenuProps>;
@@ -1,2 +1,2 @@
1
- import { ConfirmationModalProps } from './types';
2
- export declare const ConfirmationModal: ({ className, overlayClassName, testId, isOpen, onRequestClose, portalClassName, appElement, parentSelector, shouldCloseOnOverlayClick, shouldCloseOnEsc, contentElement, overlayElement, footer, children, onConfirmRequest, onCancelRequest, confirmationButtonText, cancelButtonText, confirmationButtonVariant, icon, title, status, maxWidthInPixels, hasDontShowAgainCheckbox, }: ConfirmationModalProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { type ConfirmationModalProps } from './types';
2
+ export declare const ConfirmationModal: ({ className, overlayClassName, testId, isOpen, onRequestClose, portalClassName, appElement, parentSelector, shouldCloseOnOverlayClick, shouldCloseOnEsc, contentElement, overlayElement, footer, children, onConfirmRequest, onCancelRequest, confirmationButtonVariant, icon, title, status, maxWidthInPixels, hasDontShowAgainCheckbox, text: textProp, }: ConfirmationModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ModalProps } from './types';
2
- export declare const Modal: ({ className, children, isOpen, onRequestClose, portalClassName, overlayClassName, appElement, shouldCloseOnOverlayClick, shouldCloseOnEsc, testId, contentElement, overlayElement, position, parentSelector, title, subtitle, footer, maxWidthInPixels, ...rest }: ModalProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { type ModalProps } from './types';
2
+ export declare const Modal: ({ className, children, isOpen, onRequestClose, portalClassName, overlayClassName, appElement, shouldCloseOnOverlayClick, shouldCloseOnEsc, testId, contentElement, overlayElement, position, parentSelector, title, subtitle, footer, maxWidthInPixels, text: textProp, ...rest }: ModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,13 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Modal } from './Modal';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
3
2
  import { ConfirmationModal } from './ConfirmationModal';
3
+ import { Modal } from './Modal';
4
4
  declare const meta: Meta;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof Modal>;
7
7
  export declare const Default: Story;
8
8
  export declare const ConfirmationModalStory: StoryObj<typeof ConfirmationModal>;
9
9
  export declare const ConfirmationModalStoryWithCheckbox: StoryObj<typeof ConfirmationModal>;
10
+ /**
11
+ * Use the `text` prop to customize displayed text.
12
+ */
13
+ export declare const WithText: StoryObj<typeof ConfirmationModal>;
@@ -1,5 +1,10 @@
1
- import { ButtonVariants } from '../button/types';
2
- import { IconName } from '../icons/types';
1
+ import { type ButtonVariants } from '../button/types';
2
+ import { type IconName } from '../icons/types';
3
+ /** Customizable text for Modal. */
4
+ export interface ModalText {
5
+ /** Aria label for the close button. Default: "Close" */
6
+ closeButton?: string;
7
+ }
3
8
  export interface ModalProps {
4
9
  /** Additional classes for the badge component */
5
10
  className?: string;
@@ -35,8 +40,19 @@ export interface ModalProps {
35
40
  footer?: React.ReactNode;
36
41
  /** The maximum width of the modal in pixels */
37
42
  maxWidthInPixels?: number;
43
+ /** Customizable display text. */
44
+ text?: ModalText;
45
+ }
46
+ /** Customizable text for ConfirmationModal. Extends ModalText. */
47
+ export interface ConfirmationModalText extends ModalText {
48
+ /** Label for the "Don't show again" checkbox. Default: "Don't display this again." */
49
+ dontShowAgain?: string;
50
+ /** Text for the confirm button. Default: "Confirm" */
51
+ confirm?: string;
52
+ /** Text for the cancel button. Default: "Cancel" */
53
+ cancel?: string;
38
54
  }
39
- export interface ConfirmationModalProps extends ModalProps {
55
+ export interface ConfirmationModalProps extends Omit<ModalProps, 'text'> {
40
56
  onConfirmRequest?: ({ dontShowAgain, }: {
41
57
  dontShowAgain?: boolean;
42
58
  }) => void | Promise<void> | Promise<boolean>;
@@ -45,12 +61,10 @@ export interface ConfirmationModalProps extends ModalProps {
45
61
  hasDontShowAgainCheckbox?: boolean;
46
62
  /** The variant of the confirmation button. */
47
63
  confirmationButtonVariant?: ButtonVariants;
48
- /** The text of the confirmation button */
49
- confirmationButtonText?: string;
50
- /** The text of the cancel button */
51
- cancelButtonText?: string;
52
64
  /** The icon of the modal */
53
65
  icon?: IconName;
54
66
  /** The status of the modal. This will determine the color of the icon. */
55
67
  status?: 'info' | 'success' | 'error';
68
+ /** Customizable display text. */
69
+ text?: ConfirmationModalText;
56
70
  }
@@ -1,2 +1,2 @@
1
- import { PaginationProps } from './types';
2
- export declare const Pagination: ({ totalPages, currentPage, onChange, className, ...rest }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { type PaginationProps } from './types';
2
+ export declare const Pagination: ({ totalPages, currentPage, onChange, className, text: textProp, ...rest }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { Pagination } from './Pagination';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -1 +1,2 @@
1
1
  export { Pagination } from './Pagination';
2
+ export type { PaginationText } from './types';
@@ -1,3 +1,14 @@
1
+ /** Customizable text for Pagination. */
2
+ export interface PaginationText {
3
+ /** Aria label for previous page button. Default: "Previous Page" */
4
+ previousPage?: string;
5
+ /** Aria label for next page button. Default: "Next Page" */
6
+ nextPage?: string;
7
+ /** Label for current page input. Default: "Current Page" */
8
+ currentPage?: string;
9
+ /** Text between current page and total (e.g., "of"). Default: "of" */
10
+ of?: string;
11
+ }
1
12
  export interface PaginationProps {
2
13
  /** The total number of pages to be displayed */
3
14
  totalPages: number;
@@ -7,4 +18,6 @@ export interface PaginationProps {
7
18
  className?: string;
8
19
  /** The callback function that is called when the page changes. */
9
20
  onChange?: (value: number) => void;
21
+ /** Customizable display text. */
22
+ text?: PaginationText;
10
23
  }
@@ -1,2 +1,2 @@
1
- import { PillProps } from './types';
1
+ import { type PillProps } from './types';
2
2
  export declare const Pill: ({ children, className, color, size, shade, ...rest }: PillProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { Pill } from './Pill';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -1,5 +1,5 @@
1
- import { ChromaticColor } from '../../types';
2
- import React from 'react';
1
+ import { type ChromaticColor } from '../../types';
2
+ import type React from 'react';
3
3
  export type PillSize = 'sm' | 'md' | 'lg';
4
4
  export type PillColor = ChromaticColor;
5
5
  export type PillShade = 1 | 2 | 3 | 4 | 5;
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { Skeleton } from './Skeleton';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -1,2 +1,2 @@
1
- import { StepperProps } from './types';
2
- export declare const Stepper: ({ currentStep: externalCurrentStep, legendHeader, legendFooter, steps, onBackClick, onNextClick, onFinishClick, children, onStepClick, }: StepperProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { type StepperProps } from './types';
2
+ export declare const Stepper: ({ currentStep: externalCurrentStep, legendHeader, legendFooter, steps, onBackClick, onNextClick, onFinishClick, children, onStepClick, text: textProp, }: StepperProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { Stepper } from './Stepper';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -1,6 +1,7 @@
1
1
  type Props = {
2
2
  isDisabled: boolean;
3
3
  onBackClick: () => void;
4
+ label: string;
4
5
  };
5
- export declare const BackNavigation: ({ isDisabled, onBackClick }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const BackNavigation: ({ isDisabled, onBackClick, label }: Props) => import("react/jsx-runtime").JSX.Element;
6
7
  export {};
@@ -1,2 +1,2 @@
1
- import { StepperLegendProps } from '../types';
1
+ import { type StepperLegendProps } from '../types';
2
2
  export declare const Legend: ({ currentStep, steps, onStepClick }: StepperLegendProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,8 @@ type Props = {
3
3
  onNextClick: () => void;
4
4
  onFinishClick: () => void;
5
5
  isDisabled: boolean;
6
+ nextLabel: string;
7
+ finishLabel: string;
6
8
  };
7
- export declare const NextNavigation: ({ isLastStep, onNextClick, onFinishClick, isDisabled }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const NextNavigation: ({ isLastStep, onNextClick, onFinishClick, isDisabled, nextLabel, finishLabel, }: Props) => import("react/jsx-runtime").JSX.Element;
8
10
  export {};
@@ -1,4 +1,13 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
+ /** Customizable text for Stepper. */
3
+ export interface StepperText {
4
+ /** Label for the "Previous Step" button. Default: "Previous Step" */
5
+ previousStep?: string;
6
+ /** Label for the "Next Step" button. Default: "Next Step" */
7
+ nextStep?: string;
8
+ /** Label for the "Finish" button. Default: "Finish" */
9
+ finish?: string;
10
+ }
2
11
  export interface StepperProps {
3
12
  /** An array of step objects that define the stepper navigation. */
4
13
  steps: Step[];
@@ -17,6 +26,8 @@ export interface StepperProps {
17
26
  children: React.ReactNode;
18
27
  /** The function to call when a step is clicked ont he legend. */
19
28
  onStepClick: (step: number) => void;
29
+ /** Customizable display text. */
30
+ text?: StepperText;
20
31
  }
21
32
  export interface StepperLegendProps {
22
33
  currentStep: number;
@@ -1 +1,5 @@
1
- export declare const LoadingComponent: () => import("react/jsx-runtime").JSX.Element;
1
+ interface LoadingComponentProps {
2
+ loadingText: string;
3
+ }
4
+ export declare const LoadingComponent: ({ loadingText }: LoadingComponentProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -1,2 +1,2 @@
1
- import { TableProps } from './types';
1
+ import { type TableProps } from './types';
2
2
  export declare const Table: <T>(props: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
+ import { type SampleDataRow } from './sampleData';
2
3
  import { Table } from './Table';
3
- import { SampleDataRow } from './sampleData';
4
4
  declare const meta: Meta;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof Table<SampleDataRow>>;
@@ -1,3 +1,4 @@
1
+ import { type HorizontalStickyHeaderText } from '../types';
1
2
  interface HorizontalStickyHeaderProps {
2
3
  children: React.ReactNode;
3
4
  position: number;
@@ -5,6 +6,8 @@ interface HorizontalStickyHeaderProps {
5
6
  isPinned?: boolean;
6
7
  forceUpdate?: number;
7
8
  pinnedColumnIds: string[];
9
+ /** Customizable display text. */
10
+ text?: HorizontalStickyHeaderText;
8
11
  }
9
- declare const HorizontalStickyHeader: ({ children, position, onPinColumn, isPinned, pinnedColumnIds, }: HorizontalStickyHeaderProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const HorizontalStickyHeader: ({ children, position, onPinColumn, isPinned, pinnedColumnIds, text: textProp, }: HorizontalStickyHeaderProps) => import("react/jsx-runtime").JSX.Element;
10
13
  export default HorizontalStickyHeader;
@@ -1,4 +1,4 @@
1
- import { CSSObject } from 'styled-components';
1
+ import { type CSSObject } from 'styled-components';
2
2
  export declare const getPreviousHeadersWidth: (position: number, pinnedColumnIds: string[]) => number;
3
3
  export declare const applyStickyStylesToTableHeader: (position: number, left: number) => Promise<void>;
4
4
  export declare const sortPinnedColumns: <T>(columns: T[], pinnedColumnIds: string[]) => T[];
@@ -1,8 +1,8 @@
1
- import { TableColumn } from '../types';
1
+ import { type TableColumn, type HorizontalStickyHeaderText } from '../types';
2
2
  /**
3
3
  * Hook to manage pinned columns in a table
4
4
  * Handles initialization, toggling, positioning and resizing of pinned columns
5
5
  */
6
- export declare const usePinnedColumnsManager: <T>(columns: TableColumn<T>[], canPinColumns: boolean, onPinnedColumnsChange?: (pinnedColumnIds: string[]) => void) => {
6
+ export declare const usePinnedColumnsManager: <T>(columns: TableColumn<T>[], canPinColumns: boolean, onPinnedColumnsChange?: (pinnedColumnIds: string[]) => void, text?: HorizontalStickyHeaderText) => {
7
7
  columnsWithPinning: TableColumn<T>[];
8
8
  };
@@ -1,4 +1,4 @@
1
- import { TableColumn } from './types';
1
+ import { type TableColumn } from './types';
2
2
  export interface SampleDataRow {
3
3
  name: string;
4
4
  class: string;
@@ -1,5 +1,5 @@
1
- import { Direction as RDTDirection, Alignment as RDTAlignment, TableColumn as RDTTableColumn, IDataTableProps } from 'react-data-table-component';
2
- import { CSSObject } from 'styled-components';
1
+ import { type Direction as RDTDirection, type Alignment as RDTAlignment, type TableColumn as RDTTableColumn, type IDataTableProps } from 'react-data-table-component';
2
+ import { type CSSObject } from 'styled-components';
3
3
  export type Direction = `${RDTDirection}`;
4
4
  export type Alignment = `${RDTAlignment}`;
5
5
  export interface PinnableColumn<T> extends RDTTableColumn<T> {
@@ -9,6 +9,22 @@ export interface PinnableColumn<T> extends RDTTableColumn<T> {
9
9
  position?: number;
10
10
  }
11
11
  export type TableColumn<T> = PinnableColumn<T>;
12
+ /** Customizable text for Table. */
13
+ export interface TableText {
14
+ /** Text to display while loading. Default: "Loading..." */
15
+ loading?: string;
16
+ /** Aria label for unpinning a column. Default: "Unpin column" */
17
+ unpinColumn?: string;
18
+ /** Aria label for pinning a column. Default: "Pin column" */
19
+ pinColumn?: string;
20
+ }
21
+ /** Customizable text for HorizontalStickyHeader. */
22
+ export interface HorizontalStickyHeaderText {
23
+ /** Aria label for unpinning a column. Default: "Unpin column" */
24
+ unpinColumn?: string;
25
+ /** Aria label for pinning a column. Default: "Pin column" */
26
+ pinColumn?: string;
27
+ }
12
28
  export interface TableProps<T> extends Omit<IDataTableProps<T>, 'paginationComponent' | 'direction' | 'subHeaderAlign'> {
13
29
  /** The columns to display in the table. All columns require a unique id property. For pinned columns, please see the pinned example below. */
14
30
  columns: TableColumn<T>[];
@@ -28,4 +44,6 @@ export interface TableProps<T> extends Omit<IDataTableProps<T>, 'paginationCompo
28
44
  canPinColumns?: boolean;
29
45
  /** Callback that receives the IDs of the pinned columns when they change. */
30
46
  onPinnedColumnsChange?: (pinnedColumnIds: any[]) => void;
47
+ /** Customizable display text. */
48
+ text?: TableText;
31
49
  }
@@ -1,2 +1,2 @@
1
- import { TableColumn } from '../types';
2
- export declare const processColumns: <T>(columns: TableColumn<T>[], pinnedColumnIds: string[], togglePinnedColumn: (id: string) => void) => TableColumn<T>[];
1
+ import { type TableColumn, type HorizontalStickyHeaderText } from '../types';
2
+ export declare const processColumns: <T>(columns: TableColumn<T>[], pinnedColumnIds: string[], togglePinnedColumn: (id: string) => void, text?: HorizontalStickyHeaderText) => TableColumn<T>[];
@@ -1,4 +1,21 @@
1
- import { Row, ColumnDef, SortingState } from '@tanstack/react-table';
1
+ import { type Row, type ColumnDef, type SortingState } from '@tanstack/react-table';
2
+ /** Customizable text for TanstackTable. */
3
+ export interface TanstackTableText {
4
+ /** Message while table is loading. Default: "Table is loading..." */
5
+ loading?: string;
6
+ /** Message when no results found. Default: "No results found." */
7
+ noResults?: string;
8
+ /** Message when there's an error loading data. Default: "There was an error loading the data." */
9
+ error?: string;
10
+ /** Text for reset filters button. Default: "Reset filters" */
11
+ resetFilters?: string;
12
+ /** Singular entry text. Default: "entry" */
13
+ entry?: string;
14
+ /** Plural entries text. Default: "entries" */
15
+ entries?: string;
16
+ /** "of" text in pagination (e.g., "5 of 10 entries"). Default: "of" */
17
+ of?: string;
18
+ }
2
19
  export type WithPaginationProps = {
3
20
  /** Number of rows to display per pagination page. */
4
21
  rowsPerPage: number;
@@ -52,8 +69,6 @@ export type Props<T extends object> = {
52
69
  hasFilters?: boolean;
53
70
  /** When this is true, the table is considered to be in a loading state. */
54
71
  isLoading?: boolean;
55
- /** Message to display when the table is loading. */
56
- isLoadingMessage?: string;
57
72
  /** Columns that are pinned by default. */
58
73
  defaultPinnedColumns?: string[];
59
74
  /** Callback when a row is clicked. */
@@ -70,4 +85,6 @@ export type Props<T extends object> = {
70
85
  onSelectAllChange?: (isSelected: boolean) => void;
71
86
  /** You may pass a default sorting state to the table. This will be used to sort the table by default. This is useful if you want to sort the table by a column by default. */
72
87
  defaultSorting?: SortingState;
88
+ /** Customizable display text. */
89
+ text?: TanstackTableText;
73
90
  } & PaginationProps;
@@ -1,4 +1,4 @@
1
- import { Props } from './TankstackTable.types';
2
- export declare function TanstackTable<T extends object>({ columns: defaultColumns, data, className, currentPage, rowCount, rowsPerPage, onChangePage, totalEntriesText, TableActions, error, enableRowSelection, clearFilters, hasFilters, showPagination, isLoading, isLoadingMessage, defaultPinnedColumns, onRowClick, activeRows, isStriped, actionBarClassName, defaultSorting, ...rest }: Props<T & {
1
+ import { type Props } from './TankstackTable.types';
2
+ export declare function TanstackTable<T extends object>({ columns: defaultColumns, data, className, currentPage, rowCount, rowsPerPage, onChangePage, totalEntriesText, TableActions, error, enableRowSelection, clearFilters, hasFilters, showPagination, isLoading, defaultPinnedColumns, onRowClick, activeRows, isStriped, actionBarClassName, defaultSorting, text: textProp, ...rest }: Props<T & {
3
3
  id: string;
4
4
  }>): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
+ import { type Person } from './mock-data/mock-data';
2
3
  import { TanstackTable } from './TanstackTable';
3
- import { Person } from './mock-data/mock-data';
4
4
  declare const meta: Meta;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof TanstackTable<Person>>;
@@ -1,4 +1,4 @@
1
- import { ColumnDef } from "@tanstack/react-table";
1
+ import { type ColumnDef } from "@tanstack/react-table";
2
2
  export interface TestData {
3
3
  id: string;
4
4
  name: string;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { Row, Table } from '@tanstack/react-table';
1
+ import { type Row, type Table } from '@tanstack/react-table';
2
+ import type React from 'react';
3
3
  type Props<T extends object> = {
4
4
  /** Table instance. */
5
5
  table: Table<T & {
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { ActionBar } from './ActionBar';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -2,6 +2,7 @@ type Props = {
2
2
  clearFilters?: () => void;
3
3
  hasFilters?: boolean;
4
4
  message: string;
5
+ resetFiltersText?: string;
5
6
  };
6
- export declare function NoResults({ clearFilters, hasFilters, message }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export declare function NoResults({ clearFilters, hasFilters, message, resetFiltersText, }: Props): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -1,4 +1,4 @@
1
- import { Table } from '@tanstack/react-table';
1
+ import { type Table } from '@tanstack/react-table';
2
2
  export type Props<T> = {
3
3
  table: Table<T>;
4
4
  onRowClick?: ((row: T & {
@@ -1,4 +1,4 @@
1
- import { Table } from '@tanstack/react-table';
1
+ import { type Table } from '@tanstack/react-table';
2
2
  interface Props {
3
3
  table: Table<any>;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { ColumnDef } from '@tanstack/react-table';
1
+ import { type ColumnDef } from '@tanstack/react-table';
2
2
  export type Props<T> = {
3
3
  columns: ColumnDef<T>[];
4
4
  message?: string;
@@ -1,9 +1,11 @@
1
+ import { type PaginationText } from '../../../pagination';
1
2
  interface TablePaginationProps {
2
3
  rowsPerPage: number;
3
4
  rowCount: number;
4
5
  onChangePage: (page: number) => void;
5
6
  currentPage: number;
6
7
  totalEntriesText?: string;
8
+ text?: PaginationText;
7
9
  }
8
- export declare const TablePagination: ({ rowsPerPage, rowCount, onChangePage, currentPage, totalEntriesText, }: TablePaginationProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const TablePagination: ({ rowsPerPage, rowCount, onChangePage, currentPage, totalEntriesText, text, }: TablePaginationProps) => import("react/jsx-runtime").JSX.Element;
9
11
  export {};
@@ -1,6 +1,6 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
+ import { type Person } from '../../mock-data/mock-data';
2
3
  import { TanstackTable } from '../../TanstackTable';
3
- import { Person } from '../../mock-data/mock-data';
4
4
  declare const meta: Meta;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof TanstackTable<Person>>;
@@ -1,6 +1,6 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
+ import { type Person } from '../../mock-data/mock-data';
2
3
  import { TanstackTable } from '../../TanstackTable';
3
- import { Person } from '../../mock-data/mock-data';
4
4
  declare const meta: Meta;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof TanstackTable<Person>>;
@@ -1,6 +1,6 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
+ import { type Person } from '../../mock-data/mock-data';
2
3
  import { TanstackTable } from '../../TanstackTable';
3
- import { Person } from '../../mock-data/mock-data';
4
4
  declare const meta: Meta;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof TanstackTable<Person>>;
@@ -1,5 +1,5 @@
1
- import { Column } from '@tanstack/react-table';
2
- import { CSSProperties } from 'react';
1
+ import { type Column } from '@tanstack/react-table';
2
+ import { type CSSProperties } from 'react';
3
3
  export declare const getThStyles: <T>(column: Column<T>) => {
4
4
  accentColor?: import("csstype").Property.AccentColor | undefined;
5
5
  alignContent?: import("csstype").Property.AlignContent | undefined;
@@ -1,3 +1,3 @@
1
- import { ColumnDef } from '@tanstack/react-table';
2
- import { Person } from './mock-data';
1
+ import { type ColumnDef } from '@tanstack/react-table';
2
+ import { type Person } from './mock-data';
3
3
  export declare const columns: ColumnDef<Person>[];
@@ -1,4 +1,4 @@
1
- import { ColumnDef } from '@tanstack/react-table';
1
+ import { type ColumnDef } from '@tanstack/react-table';
2
2
  type Props<T> = {
3
3
  defaultColumns: ColumnDef<T>[];
4
4
  };
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { ToastContainer } from './index';
3
3
  declare const meta: Meta<typeof ToastContainer>;
4
4
  export default meta;
@@ -1,5 +1,5 @@
1
- import { CSSProperties } from 'react';
2
- import { PlacesType, PositionStrategy } from 'react-tooltip';
1
+ import { type CSSProperties } from 'react';
2
+ import { type PlacesType, type PositionStrategy } from 'react-tooltip';
3
3
  export interface TooltipProps {
4
4
  id: string;
5
5
  /** Whether the tooltip should be shown on click */
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { Tooltip } from './Tooltip';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -1,2 +1,2 @@
1
- import { TruncateProps } from './types';
1
+ import { type TruncateProps } from './types';
2
2
  export declare const Truncate: ({ numLines, tooltipOptions, children, ...rest }: TruncateProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { Meta, StoryObj } from '@storybook/react';
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
2
  import { Truncate } from './Truncate';
3
- import { TruncateProps } from './types';
3
+ import { type TruncateProps } from './types';
4
4
  declare const meta: Meta<typeof Truncate>;
5
5
  export default meta;
6
6
  type Story = StoryObj<TruncateProps>;