@portnet/ui 6.0.1 → 6.0.3

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 (1011) hide show
  1. package/CHANGELOG.md +737 -0
  2. package/dist/esm/index.js +90 -3
  3. package/dist/esm/index.js.map +1 -1
  4. package/dist/esm/v2/__tests__/AppMain.test.js +130 -0
  5. package/dist/esm/v2/__tests__/AppMain.test.js.map +1 -0
  6. package/dist/esm/v2/__tests__/ChartFigure.test.js +180 -0
  7. package/dist/esm/v2/__tests__/ChartFigure.test.js.map +1 -0
  8. package/dist/esm/v2/__tests__/DataGridRowActionsPropagation.test.js +150 -0
  9. package/dist/esm/v2/__tests__/DataGridRowActionsPropagation.test.js.map +1 -0
  10. package/dist/esm/v2/__tests__/DrawerTactileTargets.test.js +93 -0
  11. package/dist/esm/v2/__tests__/DrawerTactileTargets.test.js.map +1 -0
  12. package/dist/esm/v2/__tests__/FieldError.test.js +71 -39
  13. package/dist/esm/v2/__tests__/FieldError.test.js.map +1 -1
  14. package/dist/esm/v2/__tests__/FieldNaming.test.js +160 -0
  15. package/dist/esm/v2/__tests__/FieldNaming.test.js.map +1 -0
  16. package/dist/esm/v2/__tests__/FieldWidth.test.js +146 -0
  17. package/dist/esm/v2/__tests__/FieldWidth.test.js.map +1 -0
  18. package/dist/esm/v2/__tests__/FileCard.test.js +18 -18
  19. package/dist/esm/v2/__tests__/FileCard.test.js.map +1 -1
  20. package/dist/esm/v2/__tests__/FormikCheckbox.test.js +173 -0
  21. package/dist/esm/v2/__tests__/FormikCheckbox.test.js.map +1 -0
  22. package/dist/esm/v2/__tests__/FormikDateTimePicker.test.js +236 -0
  23. package/dist/esm/v2/__tests__/FormikDateTimePicker.test.js.map +1 -0
  24. package/dist/esm/v2/__tests__/FormikDisplayWidth.test.js +101 -0
  25. package/dist/esm/v2/__tests__/FormikDisplayWidth.test.js.map +1 -0
  26. package/dist/esm/v2/__tests__/FormikRadioGroup.test.js +299 -0
  27. package/dist/esm/v2/__tests__/FormikRadioGroup.test.js.map +1 -0
  28. package/dist/esm/v2/__tests__/MobileRowCard.test.js +44 -43
  29. package/dist/esm/v2/__tests__/MobileRowCard.test.js.map +1 -1
  30. package/dist/esm/v2/__tests__/PreviewDrawer.test.js +165 -0
  31. package/dist/esm/v2/__tests__/PreviewDrawer.test.js.map +1 -0
  32. package/dist/esm/v2/__tests__/ReferentielFieldContainer.test.js +156 -0
  33. package/dist/esm/v2/__tests__/ReferentielFieldContainer.test.js.map +1 -0
  34. package/dist/esm/v2/__tests__/SectionErrorBoundary.test.js +37 -52
  35. package/dist/esm/v2/__tests__/SectionErrorBoundary.test.js.map +1 -1
  36. package/dist/esm/v2/__tests__/apiError.test.js +50 -69
  37. package/dist/esm/v2/__tests__/apiError.test.js.map +1 -1
  38. package/dist/esm/v2/__tests__/banned-patterns.test.js +41 -122
  39. package/dist/esm/v2/__tests__/banned-patterns.test.js.map +1 -1
  40. package/dist/esm/v2/__tests__/chart-palette.test.js +204 -0
  41. package/dist/esm/v2/__tests__/chart-palette.test.js.map +1 -0
  42. package/dist/esm/v2/__tests__/contrast-palette.test.js +42 -74
  43. package/dist/esm/v2/__tests__/contrast-palette.test.js.map +1 -1
  44. package/dist/esm/v2/__tests__/cssVariables.test.js +44 -51
  45. package/dist/esm/v2/__tests__/cssVariables.test.js.map +1 -1
  46. package/dist/esm/v2/__tests__/fileValidation.test.js +134 -0
  47. package/dist/esm/v2/__tests__/fileValidation.test.js.map +1 -0
  48. package/dist/esm/v2/__tests__/filterCriteria.test.js +321 -0
  49. package/dist/esm/v2/__tests__/filterCriteria.test.js.map +1 -0
  50. package/dist/esm/v2/__tests__/fmtDate.test.js +68 -0
  51. package/dist/esm/v2/__tests__/fmtDate.test.js.map +1 -0
  52. package/dist/esm/v2/__tests__/gap-leakage-refonte.test.js +218 -0
  53. package/dist/esm/v2/__tests__/gap-leakage-refonte.test.js.map +1 -0
  54. package/dist/esm/v2/__tests__/labels-merge.test.js +17 -22
  55. package/dist/esm/v2/__tests__/labels-merge.test.js.map +1 -1
  56. package/dist/esm/v2/__tests__/locale-fallback.test.js +35 -40
  57. package/dist/esm/v2/__tests__/locale-fallback.test.js.map +1 -1
  58. package/dist/esm/v2/__tests__/reviveSavedCriteria.test.js +143 -0
  59. package/dist/esm/v2/__tests__/reviveSavedCriteria.test.js.map +1 -0
  60. package/dist/esm/v2/__tests__/rowActions.test.js +182 -0
  61. package/dist/esm/v2/__tests__/rowActions.test.js.map +1 -0
  62. package/dist/esm/v2/__tests__/useFocusOnRouteChange.test.js +155 -0
  63. package/dist/esm/v2/__tests__/useFocusOnRouteChange.test.js.map +1 -0
  64. package/dist/esm/v2/__tests__/useFocusTrap.test.js +266 -402
  65. package/dist/esm/v2/__tests__/useFocusTrap.test.js.map +1 -1
  66. package/dist/esm/v2/__tests__/usePrefersReducedMotion.test.js +120 -0
  67. package/dist/esm/v2/__tests__/usePrefersReducedMotion.test.js.map +1 -0
  68. package/dist/esm/v2/components/Accordion.js +48 -70
  69. package/dist/esm/v2/components/Accordion.js.map +1 -1
  70. package/dist/esm/v2/components/ActionStrip.js +31 -43
  71. package/dist/esm/v2/components/ActionStrip.js.map +1 -1
  72. package/dist/esm/v2/components/Banner.js +25 -22
  73. package/dist/esm/v2/components/Banner.js.map +1 -1
  74. package/dist/esm/v2/components/Busy.js +14 -19
  75. package/dist/esm/v2/components/Busy.js.map +1 -1
  76. package/dist/esm/v2/components/Button.js +34 -45
  77. package/dist/esm/v2/components/Button.js.map +1 -1
  78. package/dist/esm/v2/components/CategoryTag.js +44 -27
  79. package/dist/esm/v2/components/CategoryTag.js.map +1 -1
  80. package/dist/esm/v2/components/Checkbox.js +32 -38
  81. package/dist/esm/v2/components/Checkbox.js.map +1 -1
  82. package/dist/esm/v2/components/Chip.js +23 -36
  83. package/dist/esm/v2/components/Chip.js.map +1 -1
  84. package/dist/esm/v2/components/Combobox.js +112 -136
  85. package/dist/esm/v2/components/Combobox.js.map +1 -1
  86. package/dist/esm/v2/components/CommandPalette.js +113 -198
  87. package/dist/esm/v2/components/CommandPalette.js.map +1 -1
  88. package/dist/esm/v2/components/ConfirmDialog.js +36 -45
  89. package/dist/esm/v2/components/ConfirmDialog.js.map +1 -1
  90. package/dist/esm/v2/components/DatePicker.js +78 -81
  91. package/dist/esm/v2/components/DatePicker.js.map +1 -1
  92. package/dist/esm/v2/components/DateRangePicker.js +63 -74
  93. package/dist/esm/v2/components/DateRangePicker.js.map +1 -1
  94. package/dist/esm/v2/components/DateTimePicker.js +118 -90
  95. package/dist/esm/v2/components/DateTimePicker.js.map +1 -1
  96. package/dist/esm/v2/components/Drawer.js +71 -65
  97. package/dist/esm/v2/components/Drawer.js.map +1 -1
  98. package/dist/esm/v2/components/Dropzone.js +130 -177
  99. package/dist/esm/v2/components/Dropzone.js.map +1 -1
  100. package/dist/esm/v2/components/EmptyState.js +9 -9
  101. package/dist/esm/v2/components/EmptyState.js.map +1 -1
  102. package/dist/esm/v2/components/FavoriteToggle.js +24 -33
  103. package/dist/esm/v2/components/FavoriteToggle.js.map +1 -1
  104. package/dist/esm/v2/components/Field.js +210 -52
  105. package/dist/esm/v2/components/Field.js.map +1 -1
  106. package/dist/esm/v2/components/FieldError.js +9 -13
  107. package/dist/esm/v2/components/FieldError.js.map +1 -1
  108. package/dist/esm/v2/components/FieldHelp.js +28 -49
  109. package/dist/esm/v2/components/FieldHelp.js.map +1 -1
  110. package/dist/esm/v2/components/FileCard.js +14 -19
  111. package/dist/esm/v2/components/FileCard.js.map +1 -1
  112. package/dist/esm/v2/components/FilterTab.js +22 -31
  113. package/dist/esm/v2/components/FilterTab.js.map +1 -1
  114. package/dist/esm/v2/components/ForbiddenPage.js +28 -8
  115. package/dist/esm/v2/components/ForbiddenPage.js.map +1 -1
  116. package/dist/esm/v2/components/FormGrid.js +48 -54
  117. package/dist/esm/v2/components/FormGrid.js.map +1 -1
  118. package/dist/esm/v2/components/FormikDisplay.js +98 -24
  119. package/dist/esm/v2/components/FormikDisplay.js.map +1 -1
  120. package/dist/esm/v2/components/Input.js +75 -34
  121. package/dist/esm/v2/components/Input.js.map +1 -1
  122. package/dist/esm/v2/components/KPICard.js +42 -51
  123. package/dist/esm/v2/components/KPICard.js.map +1 -1
  124. package/dist/esm/v2/components/KPIStrip.js +9 -15
  125. package/dist/esm/v2/components/KPIStrip.js.map +1 -1
  126. package/dist/esm/v2/components/KV.js +16 -23
  127. package/dist/esm/v2/components/KV.js.map +1 -1
  128. package/dist/esm/v2/components/KVGrid.js +15 -23
  129. package/dist/esm/v2/components/KVGrid.js.map +1 -1
  130. package/dist/esm/v2/components/Layout.js +81 -117
  131. package/dist/esm/v2/components/Layout.js.map +1 -1
  132. package/dist/esm/v2/components/MobileRowCard.js +64 -75
  133. package/dist/esm/v2/components/MobileRowCard.js.map +1 -1
  134. package/dist/esm/v2/components/Modal.js +44 -53
  135. package/dist/esm/v2/components/Modal.js.map +1 -1
  136. package/dist/esm/v2/components/NetworkErrorPage.js +28 -11
  137. package/dist/esm/v2/components/NetworkErrorPage.js.map +1 -1
  138. package/dist/esm/v2/components/NotFoundPage.js +28 -9
  139. package/dist/esm/v2/components/NotFoundPage.js.map +1 -1
  140. package/dist/esm/v2/components/NumberInput.js +77 -107
  141. package/dist/esm/v2/components/NumberInput.js.map +1 -1
  142. package/dist/esm/v2/components/OverflowMenu.js +24 -42
  143. package/dist/esm/v2/components/OverflowMenu.js.map +1 -1
  144. package/dist/esm/v2/components/PdfViewer.js +24 -33
  145. package/dist/esm/v2/components/PdfViewer.js.map +1 -1
  146. package/dist/esm/v2/components/ProgressBar.js +28 -36
  147. package/dist/esm/v2/components/ProgressBar.js.map +1 -1
  148. package/dist/esm/v2/components/Radio.js +49 -57
  149. package/dist/esm/v2/components/Radio.js.map +1 -1
  150. package/dist/esm/v2/components/SectionErrorBoundary.js +84 -130
  151. package/dist/esm/v2/components/SectionErrorBoundary.js.map +1 -1
  152. package/dist/esm/v2/components/SectionHeader.js +24 -31
  153. package/dist/esm/v2/components/SectionHeader.js.map +1 -1
  154. package/dist/esm/v2/components/Segmented.js +59 -84
  155. package/dist/esm/v2/components/Segmented.js.map +1 -1
  156. package/dist/esm/v2/components/Select.js +100 -138
  157. package/dist/esm/v2/components/Select.js.map +1 -1
  158. package/dist/esm/v2/components/ServerErrorPage.js +27 -10
  159. package/dist/esm/v2/components/ServerErrorPage.js.map +1 -1
  160. package/dist/esm/v2/components/Skeleton.js +81 -96
  161. package/dist/esm/v2/components/Skeleton.js.map +1 -1
  162. package/dist/esm/v2/components/SkipLink.js +6 -7
  163. package/dist/esm/v2/components/SkipLink.js.map +1 -1
  164. package/dist/esm/v2/components/Spinner.js +13 -22
  165. package/dist/esm/v2/components/Spinner.js.map +1 -1
  166. package/dist/esm/v2/components/Status.js +14 -25
  167. package/dist/esm/v2/components/Status.js.map +1 -1
  168. package/dist/esm/v2/components/Stepper.js +68 -71
  169. package/dist/esm/v2/components/Stepper.js.map +1 -1
  170. package/dist/esm/v2/components/Surface.js +25 -44
  171. package/dist/esm/v2/components/Surface.js.map +1 -1
  172. package/dist/esm/v2/components/Switch.js +21 -29
  173. package/dist/esm/v2/components/Switch.js.map +1 -1
  174. package/dist/esm/v2/components/TabPanel.js +84 -0
  175. package/dist/esm/v2/components/TabPanel.js.map +1 -0
  176. package/dist/esm/v2/components/Tabs.js +43 -19
  177. package/dist/esm/v2/components/Tabs.js.map +1 -1
  178. package/dist/esm/v2/components/TelInput.js +75 -108
  179. package/dist/esm/v2/components/TelInput.js.map +1 -1
  180. package/dist/esm/v2/components/Textarea.js +21 -30
  181. package/dist/esm/v2/components/Textarea.js.map +1 -1
  182. package/dist/esm/v2/components/TimePicker.js +59 -69
  183. package/dist/esm/v2/components/TimePicker.js.map +1 -1
  184. package/dist/esm/v2/components/Toast.js +109 -163
  185. package/dist/esm/v2/components/Toast.js.map +1 -1
  186. package/dist/esm/v2/components/Tooltip.js +18 -31
  187. package/dist/esm/v2/components/Tooltip.js.map +1 -1
  188. package/dist/esm/v2/components/_ErrorPageBody.js +6 -5
  189. package/dist/esm/v2/components/_ErrorPageBody.js.map +1 -1
  190. package/dist/esm/v2/components/_pickerShared.js +2 -2
  191. package/dist/esm/v2/components/_pickerShared.js.map +1 -1
  192. package/dist/esm/v2/components/index.js +64 -0
  193. package/dist/esm/v2/components/index.js.map +1 -1
  194. package/dist/esm/v2/hooks/index.js +62 -0
  195. package/dist/esm/v2/hooks/index.js.map +1 -1
  196. package/dist/esm/v2/hooks/useAppliedFilters.js +112 -0
  197. package/dist/esm/v2/hooks/useAppliedFilters.js.map +1 -0
  198. package/dist/esm/v2/hooks/useDebouncedCallback.js +82 -0
  199. package/dist/esm/v2/hooks/useDebouncedCallback.js.map +1 -0
  200. package/dist/esm/v2/hooks/useDelayedFlag.js +5 -19
  201. package/dist/esm/v2/hooks/useDelayedFlag.js.map +1 -1
  202. package/dist/esm/v2/hooks/useDensity.js +13 -17
  203. package/dist/esm/v2/hooks/useDensity.js.map +1 -1
  204. package/dist/esm/v2/hooks/useFocusFirstError.js +25 -33
  205. package/dist/esm/v2/hooks/useFocusFirstError.js.map +1 -1
  206. package/dist/esm/v2/hooks/useFocusOnRouteChange.js +81 -0
  207. package/dist/esm/v2/hooks/useFocusOnRouteChange.js.map +1 -0
  208. package/dist/esm/v2/hooks/useFocusTrap.js +19 -23
  209. package/dist/esm/v2/hooks/useFocusTrap.js.map +1 -1
  210. package/dist/esm/v2/hooks/useFormAutoSave.js +38 -53
  211. package/dist/esm/v2/hooks/useFormAutoSave.js.map +1 -1
  212. package/dist/esm/v2/hooks/useFormCompletionProgress.js +32 -51
  213. package/dist/esm/v2/hooks/useFormCompletionProgress.js.map +1 -1
  214. package/dist/esm/v2/hooks/useKeyboardShortcuts.js +125 -0
  215. package/dist/esm/v2/hooks/useKeyboardShortcuts.js.map +1 -0
  216. package/dist/esm/v2/hooks/usePrefersReducedMotion.js +99 -0
  217. package/dist/esm/v2/hooks/usePrefersReducedMotion.js.map +1 -0
  218. package/dist/esm/v2/hooks/useResolvedDensity.js +2 -10
  219. package/dist/esm/v2/hooks/useResolvedDensity.js.map +1 -1
  220. package/dist/esm/v2/hooks/useSortedRows.js +3 -5
  221. package/dist/esm/v2/hooks/useSortedRows.js.map +1 -1
  222. package/dist/esm/v2/hooks/useTabLoading.js +6 -21
  223. package/dist/esm/v2/hooks/useTabLoading.js.map +1 -1
  224. package/dist/esm/v2/index.js +14 -4
  225. package/dist/esm/v2/index.js.map +1 -1
  226. package/dist/esm/v2/modalContext.js +2 -2
  227. package/dist/esm/v2/modalContext.js.map +1 -1
  228. package/dist/esm/v2/models/favorite.js.map +1 -1
  229. package/dist/esm/v2/models/personalization.js.map +1 -1
  230. package/dist/esm/v2/models/referentiel.js.map +1 -1
  231. package/dist/esm/v2/models/savedFilter.js.map +1 -1
  232. package/dist/esm/v2/patterns/ActionBar.js +115 -159
  233. package/dist/esm/v2/patterns/ActionBar.js.map +1 -1
  234. package/dist/esm/v2/patterns/AppMain.js +108 -0
  235. package/dist/esm/v2/patterns/AppMain.js.map +1 -0
  236. package/dist/esm/v2/patterns/BulkActionBar.js +31 -34
  237. package/dist/esm/v2/patterns/BulkActionBar.js.map +1 -1
  238. package/dist/esm/v2/patterns/ChartFigure.js +151 -0
  239. package/dist/esm/v2/patterns/ChartFigure.js.map +1 -0
  240. package/dist/esm/v2/patterns/CollapsibleDataGrid.js +111 -152
  241. package/dist/esm/v2/patterns/CollapsibleDataGrid.js.map +1 -1
  242. package/dist/esm/v2/patterns/ColumnsToggle.js +43 -77
  243. package/dist/esm/v2/patterns/ColumnsToggle.js.map +1 -1
  244. package/dist/esm/v2/patterns/DataGrid.js +221 -255
  245. package/dist/esm/v2/patterns/DataGrid.js.map +1 -1
  246. package/dist/esm/v2/patterns/DataGridSettingsMenu.js +76 -94
  247. package/dist/esm/v2/patterns/DataGridSettingsMenu.js.map +1 -1
  248. package/dist/esm/v2/patterns/DataGridToolbar.js +85 -89
  249. package/dist/esm/v2/patterns/DataGridToolbar.js.map +1 -1
  250. package/dist/esm/v2/patterns/DataGridVirtualized.js +141 -182
  251. package/dist/esm/v2/patterns/DataGridVirtualized.js.map +1 -1
  252. package/dist/esm/v2/patterns/DeleteResourceConfirmDialog.js +26 -30
  253. package/dist/esm/v2/patterns/DeleteResourceConfirmDialog.js.map +1 -1
  254. package/dist/esm/v2/patterns/DetailSplit.js +108 -0
  255. package/dist/esm/v2/patterns/DetailSplit.js.map +1 -0
  256. package/dist/esm/v2/patterns/FavoriteColumn.js +26 -75
  257. package/dist/esm/v2/patterns/FavoriteColumn.js.map +1 -1
  258. package/dist/esm/v2/patterns/FavoritesFilter.js +30 -39
  259. package/dist/esm/v2/patterns/FavoritesFilter.js.map +1 -1
  260. package/dist/esm/v2/patterns/FilterTabBar.js +112 -0
  261. package/dist/esm/v2/patterns/FilterTabBar.js.map +1 -0
  262. package/dist/esm/v2/patterns/FormErrorSummary.js +12 -13
  263. package/dist/esm/v2/patterns/FormErrorSummary.js.map +1 -1
  264. package/dist/esm/v2/patterns/FormPageShell.js +43 -41
  265. package/dist/esm/v2/patterns/FormPageShell.js.map +1 -1
  266. package/dist/esm/v2/patterns/FormSection.js +30 -38
  267. package/dist/esm/v2/patterns/FormSection.js.map +1 -1
  268. package/dist/esm/v2/patterns/FormikCheckbox.js +130 -0
  269. package/dist/esm/v2/patterns/FormikCheckbox.js.map +1 -0
  270. package/dist/esm/v2/patterns/FormikCheckboxGroup.js +56 -60
  271. package/dist/esm/v2/patterns/FormikCheckboxGroup.js.map +1 -1
  272. package/dist/esm/v2/patterns/FormikCombobox.js +51 -66
  273. package/dist/esm/v2/patterns/FormikCombobox.js.map +1 -1
  274. package/dist/esm/v2/patterns/FormikDatePicker.js +51 -99
  275. package/dist/esm/v2/patterns/FormikDatePicker.js.map +1 -1
  276. package/dist/esm/v2/patterns/FormikDateTimePicker.js +136 -0
  277. package/dist/esm/v2/patterns/FormikDateTimePicker.js.map +1 -0
  278. package/dist/esm/v2/patterns/FormikErrorFocus.js +22 -23
  279. package/dist/esm/v2/patterns/FormikErrorFocus.js.map +1 -1
  280. package/dist/esm/v2/patterns/FormikErrorSummary.js +89 -0
  281. package/dist/esm/v2/patterns/FormikErrorSummary.js.map +1 -0
  282. package/dist/esm/v2/patterns/FormikFile.js +94 -78
  283. package/dist/esm/v2/patterns/FormikFile.js.map +1 -1
  284. package/dist/esm/v2/patterns/FormikInput.js +40 -50
  285. package/dist/esm/v2/patterns/FormikInput.js.map +1 -1
  286. package/dist/esm/v2/patterns/FormikRadioGroup.js +129 -0
  287. package/dist/esm/v2/patterns/FormikRadioGroup.js.map +1 -0
  288. package/dist/esm/v2/patterns/FormikReferentielField.js +49 -59
  289. package/dist/esm/v2/patterns/FormikReferentielField.js.map +1 -1
  290. package/dist/esm/v2/patterns/FormikSelect.js +64 -84
  291. package/dist/esm/v2/patterns/FormikSelect.js.map +1 -1
  292. package/dist/esm/v2/patterns/FormikTextarea.js +30 -43
  293. package/dist/esm/v2/patterns/FormikTextarea.js.map +1 -1
  294. package/dist/esm/v2/patterns/KeyboardShortcutsHelp.js +64 -65
  295. package/dist/esm/v2/patterns/KeyboardShortcutsHelp.js.map +1 -1
  296. package/dist/esm/v2/patterns/NetworkErrorBanner.js +6 -7
  297. package/dist/esm/v2/patterns/NetworkErrorBanner.js.map +1 -1
  298. package/dist/esm/v2/patterns/PageContent.js +10 -14
  299. package/dist/esm/v2/patterns/PageContent.js.map +1 -1
  300. package/dist/esm/v2/patterns/PreviewDrawer.js +153 -0
  301. package/dist/esm/v2/patterns/PreviewDrawer.js.map +1 -0
  302. package/dist/esm/v2/patterns/ReferentielField.js +327 -312
  303. package/dist/esm/v2/patterns/ReferentielField.js.map +1 -1
  304. package/dist/esm/v2/patterns/RowFavoriteToggle.js +127 -0
  305. package/dist/esm/v2/patterns/RowFavoriteToggle.js.map +1 -0
  306. package/dist/esm/v2/patterns/SaveFilterDialog.js +38 -66
  307. package/dist/esm/v2/patterns/SaveFilterDialog.js.map +1 -1
  308. package/dist/esm/v2/patterns/SavedFiltersMenu.js +62 -81
  309. package/dist/esm/v2/patterns/SavedFiltersMenu.js.map +1 -1
  310. package/dist/esm/v2/patterns/SkeletonPageShell.js +106 -129
  311. package/dist/esm/v2/patterns/SkeletonPageShell.js.map +1 -1
  312. package/dist/esm/v2/patterns/SortableHeader.js +22 -45
  313. package/dist/esm/v2/patterns/SortableHeader.js.map +1 -1
  314. package/dist/esm/v2/patterns/Tour.js +94 -120
  315. package/dist/esm/v2/patterns/Tour.js.map +1 -1
  316. package/dist/esm/v2/patterns/_dataGridShared.js +107 -128
  317. package/dist/esm/v2/patterns/_dataGridShared.js.map +1 -1
  318. package/dist/esm/v2/patterns/_pickerSerialisation.js +72 -0
  319. package/dist/esm/v2/patterns/_pickerSerialisation.js.map +1 -0
  320. package/dist/esm/v2/patterns/_sort.js +17 -33
  321. package/dist/esm/v2/patterns/_sort.js.map +1 -1
  322. package/dist/esm/v2/patterns/_useColumnReorder.js +122 -160
  323. package/dist/esm/v2/patterns/_useColumnReorder.js.map +1 -1
  324. package/dist/esm/v2/patterns/_useColumnResize.js +78 -96
  325. package/dist/esm/v2/patterns/_useColumnResize.js.map +1 -1
  326. package/dist/esm/v2/patterns/filterCriteria.js +102 -0
  327. package/dist/esm/v2/patterns/filterCriteria.js.map +1 -0
  328. package/dist/esm/v2/patterns/index.js +235 -0
  329. package/dist/esm/v2/patterns/index.js.map +1 -1
  330. package/dist/esm/v2/patterns/rowActions.js +223 -0
  331. package/dist/esm/v2/patterns/rowActions.js.map +1 -0
  332. package/dist/esm/v2/personalization/PersonalizationProvider.js +50 -47
  333. package/dist/esm/v2/personalization/PersonalizationProvider.js.map +1 -1
  334. package/dist/esm/v2/personalization/adapters/_storageKey.js +5 -5
  335. package/dist/esm/v2/personalization/adapters/_storageKey.js.map +1 -1
  336. package/dist/esm/v2/personalization/adapters/createLocalStorageAdapter.js +22 -23
  337. package/dist/esm/v2/personalization/adapters/createLocalStorageAdapter.js.map +1 -1
  338. package/dist/esm/v2/personalization/adapters/createMemoryAdapter.js +13 -13
  339. package/dist/esm/v2/personalization/adapters/createMemoryAdapter.js.map +1 -1
  340. package/dist/esm/v2/personalization/capabilities/favorites.js +36 -60
  341. package/dist/esm/v2/personalization/capabilities/favorites.js.map +1 -1
  342. package/dist/esm/v2/personalization/capabilities/favoritesView.js +22 -34
  343. package/dist/esm/v2/personalization/capabilities/favoritesView.js.map +1 -1
  344. package/dist/esm/v2/personalization/capabilities/gridPreferences.js +203 -0
  345. package/dist/esm/v2/personalization/capabilities/gridPreferences.js.map +1 -0
  346. package/dist/esm/v2/personalization/capabilities/index.js +5 -0
  347. package/dist/esm/v2/personalization/capabilities/index.js.map +1 -1
  348. package/dist/esm/v2/personalization/capabilities/reviveSavedCriteria.js +119 -0
  349. package/dist/esm/v2/personalization/capabilities/reviveSavedCriteria.js.map +1 -0
  350. package/dist/esm/v2/personalization/capabilities/savedFilters.js +90 -98
  351. package/dist/esm/v2/personalization/capabilities/savedFilters.js.map +1 -1
  352. package/dist/esm/v2/personalization/createPersonalizationStore.js +78 -181
  353. package/dist/esm/v2/personalization/createPersonalizationStore.js.map +1 -1
  354. package/dist/esm/v2/personalization/index.js +35 -0
  355. package/dist/esm/v2/personalization/index.js.map +1 -1
  356. package/dist/esm/v2/personalization/personalizationContext.js +9 -9
  357. package/dist/esm/v2/personalization/personalizationContext.js.map +1 -1
  358. package/dist/esm/v2/personalization/schema.js +8 -9
  359. package/dist/esm/v2/personalization/schema.js.map +1 -1
  360. package/dist/esm/v2/referentiel/ReferentielProvider.js +27 -42
  361. package/dist/esm/v2/referentiel/ReferentielProvider.js.map +1 -1
  362. package/dist/esm/v2/referentiel/types.js +2 -0
  363. package/dist/esm/v2/referentiel/types.js.map +1 -0
  364. package/dist/esm/v2/referentiel/useReferentielClient.js +10 -11
  365. package/dist/esm/v2/referentiel/useReferentielClient.js.map +1 -1
  366. package/dist/esm/v2/referentiel/useReferentielOptions.js +60 -117
  367. package/dist/esm/v2/referentiel/useReferentielOptions.js.map +1 -1
  368. package/dist/esm/v2/referentiel/useReferentielSearch.js +37 -91
  369. package/dist/esm/v2/referentiel/useReferentielSearch.js.map +1 -1
  370. package/dist/esm/v2/theme/_brand.js +8 -24
  371. package/dist/esm/v2/theme/_brand.js.map +1 -1
  372. package/dist/esm/v2/theme/_brandSecondary.js +8 -24
  373. package/dist/esm/v2/theme/_brandSecondary.js.map +1 -1
  374. package/dist/esm/v2/theme/createPortnetTheme.js +51 -61
  375. package/dist/esm/v2/theme/createPortnetTheme.js.map +1 -1
  376. package/dist/esm/v2/theme/cssVariables.js +62 -69
  377. package/dist/esm/v2/theme/cssVariables.js.map +1 -1
  378. package/dist/esm/v2/theme/index.js +5 -5
  379. package/dist/esm/v2/theme/index.js.map +1 -1
  380. package/dist/esm/v2/tokens/breakpoints.js +14 -14
  381. package/dist/esm/v2/tokens/breakpoints.js.map +1 -1
  382. package/dist/esm/v2/tokens/chart.js +261 -0
  383. package/dist/esm/v2/tokens/chart.js.map +1 -0
  384. package/dist/esm/v2/tokens/colors.js +22 -22
  385. package/dist/esm/v2/tokens/colors.js.map +1 -1
  386. package/dist/esm/v2/tokens/density.js +62 -7
  387. package/dist/esm/v2/tokens/density.js.map +1 -1
  388. package/dist/esm/v2/tokens/index.js +49 -34
  389. package/dist/esm/v2/tokens/index.js.map +1 -1
  390. package/dist/esm/v2/tokens/motion.js +12 -20
  391. package/dist/esm/v2/tokens/motion.js.map +1 -1
  392. package/dist/esm/v2/tokens/radius.js +1 -1
  393. package/dist/esm/v2/tokens/radius.js.map +1 -1
  394. package/dist/esm/v2/tokens/shadows.js +6 -6
  395. package/dist/esm/v2/tokens/shadows.js.map +1 -1
  396. package/dist/esm/v2/tokens/spacing.js +2 -2
  397. package/dist/esm/v2/tokens/spacing.js.map +1 -1
  398. package/dist/esm/v2/tokens/state.js +1 -1
  399. package/dist/esm/v2/tokens/state.js.map +1 -1
  400. package/dist/esm/v2/tokens/statusPalette.js +17 -21
  401. package/dist/esm/v2/tokens/statusPalette.js.map +1 -1
  402. package/dist/esm/v2/tokens/tokens.json +6 -1
  403. package/dist/esm/v2/tokens/typography.js +13 -13
  404. package/dist/esm/v2/tokens/typography.js.map +1 -1
  405. package/dist/esm/v2/tokens/zIndex.js +1 -1
  406. package/dist/esm/v2/tokens/zIndex.js.map +1 -1
  407. package/dist/esm/v2/types/datagrid.js.map +1 -1
  408. package/dist/esm/v2/utils/apiError.js +16 -37
  409. package/dist/esm/v2/utils/apiError.js.map +1 -1
  410. package/dist/esm/v2/utils/contrast.js +31 -32
  411. package/dist/esm/v2/utils/contrast.js.map +1 -1
  412. package/dist/esm/v2/utils/cx.js +5 -25
  413. package/dist/esm/v2/utils/cx.js.map +1 -1
  414. package/dist/esm/v2/utils/fileDownload.js +23 -26
  415. package/dist/esm/v2/utils/fileDownload.js.map +1 -1
  416. package/dist/esm/v2/utils/fileValidation.js +209 -0
  417. package/dist/esm/v2/utils/fileValidation.js.map +1 -0
  418. package/dist/esm/v2/utils/fmtDate.js +111 -0
  419. package/dist/esm/v2/utils/fmtDate.js.map +1 -0
  420. package/dist/esm/v2/utils/fmtMoney.js +8 -10
  421. package/dist/esm/v2/utils/fmtMoney.js.map +1 -1
  422. package/dist/esm/v2/utils/formikErrors.js +78 -0
  423. package/dist/esm/v2/utils/formikErrors.js.map +1 -0
  424. package/dist/esm/v2/utils/index.js +35 -2
  425. package/dist/esm/v2/utils/index.js.map +1 -1
  426. package/dist/esm/v2/utils/mergeLabels.js +7 -12
  427. package/dist/esm/v2/utils/mergeLabels.js.map +1 -1
  428. package/dist/esm/v2/utils/networkStatus.js +12 -12
  429. package/dist/esm/v2/utils/networkStatus.js.map +1 -1
  430. package/dist/index.d.ts +9 -1
  431. package/dist/index.d.ts.map +1 -1
  432. package/dist/index.js +122 -47
  433. package/dist/index.js.map +1 -1
  434. package/dist/v2/__tests__/AppMain.test.js +133 -0
  435. package/dist/v2/__tests__/AppMain.test.js.map +1 -0
  436. package/dist/v2/__tests__/ChartFigure.test.js +183 -0
  437. package/dist/v2/__tests__/ChartFigure.test.js.map +1 -0
  438. package/dist/v2/__tests__/DataGridRowActionsPropagation.test.js +153 -0
  439. package/dist/v2/__tests__/DataGridRowActionsPropagation.test.js.map +1 -0
  440. package/dist/v2/__tests__/DrawerTactileTargets.test.js +94 -0
  441. package/dist/v2/__tests__/DrawerTactileTargets.test.js.map +1 -0
  442. package/dist/v2/__tests__/FieldError.test.js +98 -69
  443. package/dist/v2/__tests__/FieldError.test.js.map +1 -1
  444. package/dist/v2/__tests__/FieldNaming.test.js +161 -0
  445. package/dist/v2/__tests__/FieldNaming.test.js.map +1 -0
  446. package/dist/v2/__tests__/FieldWidth.test.js +148 -0
  447. package/dist/v2/__tests__/FieldWidth.test.js.map +1 -0
  448. package/dist/v2/__tests__/FileCard.test.js +45 -48
  449. package/dist/v2/__tests__/FileCard.test.js.map +1 -1
  450. package/dist/v2/__tests__/FormikCheckbox.test.js +175 -0
  451. package/dist/v2/__tests__/FormikCheckbox.test.js.map +1 -0
  452. package/dist/v2/__tests__/FormikDateTimePicker.test.js +237 -0
  453. package/dist/v2/__tests__/FormikDateTimePicker.test.js.map +1 -0
  454. package/dist/v2/__tests__/FormikDisplayWidth.test.js +102 -0
  455. package/dist/v2/__tests__/FormikDisplayWidth.test.js.map +1 -0
  456. package/dist/v2/__tests__/FormikRadioGroup.test.js +300 -0
  457. package/dist/v2/__tests__/FormikRadioGroup.test.js.map +1 -0
  458. package/dist/v2/__tests__/MobileRowCard.test.js +100 -102
  459. package/dist/v2/__tests__/MobileRowCard.test.js.map +1 -1
  460. package/dist/v2/__tests__/PreviewDrawer.test.js +169 -0
  461. package/dist/v2/__tests__/PreviewDrawer.test.js.map +1 -0
  462. package/dist/v2/__tests__/ReferentielFieldContainer.test.js +159 -0
  463. package/dist/v2/__tests__/ReferentielFieldContainer.test.js.map +1 -0
  464. package/dist/v2/__tests__/SectionErrorBoundary.test.js +53 -68
  465. package/dist/v2/__tests__/SectionErrorBoundary.test.js.map +1 -1
  466. package/dist/v2/__tests__/apiError.test.js +50 -69
  467. package/dist/v2/__tests__/apiError.test.js.map +1 -1
  468. package/dist/v2/__tests__/banned-patterns.test.js +42 -123
  469. package/dist/v2/__tests__/banned-patterns.test.js.map +1 -1
  470. package/dist/v2/__tests__/chart-palette.test.js +205 -0
  471. package/dist/v2/__tests__/chart-palette.test.js.map +1 -0
  472. package/dist/v2/__tests__/contrast-palette.test.js +42 -74
  473. package/dist/v2/__tests__/contrast-palette.test.js.map +1 -1
  474. package/dist/v2/__tests__/cssVariables.test.js +44 -51
  475. package/dist/v2/__tests__/cssVariables.test.js.map +1 -1
  476. package/dist/v2/__tests__/fileValidation.test.js +136 -0
  477. package/dist/v2/__tests__/fileValidation.test.js.map +1 -0
  478. package/dist/v2/__tests__/filterCriteria.test.js +324 -0
  479. package/dist/v2/__tests__/filterCriteria.test.js.map +1 -0
  480. package/dist/v2/__tests__/fmtDate.test.js +69 -0
  481. package/dist/v2/__tests__/fmtDate.test.js.map +1 -0
  482. package/dist/v2/__tests__/gap-leakage-refonte.test.js +221 -0
  483. package/dist/v2/__tests__/gap-leakage-refonte.test.js.map +1 -0
  484. package/dist/v2/__tests__/labels-merge.test.js +38 -46
  485. package/dist/v2/__tests__/labels-merge.test.js.map +1 -1
  486. package/dist/v2/__tests__/locale-fallback.test.js +47 -52
  487. package/dist/v2/__tests__/locale-fallback.test.js.map +1 -1
  488. package/dist/v2/__tests__/reviveSavedCriteria.test.js +144 -0
  489. package/dist/v2/__tests__/reviveSavedCriteria.test.js.map +1 -0
  490. package/dist/v2/__tests__/rowActions.test.js +186 -0
  491. package/dist/v2/__tests__/rowActions.test.js.map +1 -0
  492. package/dist/v2/__tests__/useFocusOnRouteChange.test.js +156 -0
  493. package/dist/v2/__tests__/useFocusOnRouteChange.test.js.map +1 -0
  494. package/dist/v2/__tests__/useFocusTrap.test.js +270 -407
  495. package/dist/v2/__tests__/useFocusTrap.test.js.map +1 -1
  496. package/dist/v2/__tests__/usePrefersReducedMotion.test.js +123 -0
  497. package/dist/v2/__tests__/usePrefersReducedMotion.test.js.map +1 -0
  498. package/dist/v2/components/Accordion.js +60 -82
  499. package/dist/v2/components/Accordion.js.map +1 -1
  500. package/dist/v2/components/ActionStrip.js +40 -52
  501. package/dist/v2/components/ActionStrip.js.map +1 -1
  502. package/dist/v2/components/Banner.js +42 -41
  503. package/dist/v2/components/Banner.js.map +1 -1
  504. package/dist/v2/components/Busy.js +22 -27
  505. package/dist/v2/components/Busy.js.map +1 -1
  506. package/dist/v2/components/Button.js +39 -50
  507. package/dist/v2/components/Button.js.map +1 -1
  508. package/dist/v2/components/CategoryTag.d.ts.map +1 -1
  509. package/dist/v2/components/CategoryTag.js +49 -32
  510. package/dist/v2/components/CategoryTag.js.map +1 -1
  511. package/dist/v2/components/Checkbox.js +39 -45
  512. package/dist/v2/components/Checkbox.js.map +1 -1
  513. package/dist/v2/components/Chip.js +29 -42
  514. package/dist/v2/components/Chip.js.map +1 -1
  515. package/dist/v2/components/Combobox.js +122 -144
  516. package/dist/v2/components/Combobox.js.map +1 -1
  517. package/dist/v2/components/CommandPalette.js +138 -225
  518. package/dist/v2/components/CommandPalette.js.map +1 -1
  519. package/dist/v2/components/ConfirmDialog.js +46 -56
  520. package/dist/v2/components/ConfirmDialog.js.map +1 -1
  521. package/dist/v2/components/DatePicker.js +81 -86
  522. package/dist/v2/components/DatePicker.js.map +1 -1
  523. package/dist/v2/components/DateRangePicker.js +77 -87
  524. package/dist/v2/components/DateRangePicker.js.map +1 -1
  525. package/dist/v2/components/DateTimePicker.d.ts.map +1 -1
  526. package/dist/v2/components/DateTimePicker.js +121 -95
  527. package/dist/v2/components/DateTimePicker.js.map +1 -1
  528. package/dist/v2/components/Drawer.d.ts.map +1 -1
  529. package/dist/v2/components/Drawer.js +93 -88
  530. package/dist/v2/components/Drawer.js.map +1 -1
  531. package/dist/v2/components/Dropzone.js +150 -196
  532. package/dist/v2/components/Dropzone.js.map +1 -1
  533. package/dist/v2/components/EmptyState.js +18 -20
  534. package/dist/v2/components/EmptyState.js.map +1 -1
  535. package/dist/v2/components/FavoriteToggle.js +28 -39
  536. package/dist/v2/components/FavoriteToggle.js.map +1 -1
  537. package/dist/v2/components/Field.d.ts +121 -5
  538. package/dist/v2/components/Field.d.ts.map +1 -1
  539. package/dist/v2/components/Field.js +221 -62
  540. package/dist/v2/components/Field.js.map +1 -1
  541. package/dist/v2/components/FieldError.js +18 -21
  542. package/dist/v2/components/FieldError.js.map +1 -1
  543. package/dist/v2/components/FieldHelp.js +40 -60
  544. package/dist/v2/components/FieldHelp.js.map +1 -1
  545. package/dist/v2/components/FileCard.js +27 -31
  546. package/dist/v2/components/FileCard.js.map +1 -1
  547. package/dist/v2/components/FilterTab.js +30 -38
  548. package/dist/v2/components/FilterTab.js.map +1 -1
  549. package/dist/v2/components/ForbiddenPage.d.ts +25 -1
  550. package/dist/v2/components/ForbiddenPage.d.ts.map +1 -1
  551. package/dist/v2/components/ForbiddenPage.js +37 -17
  552. package/dist/v2/components/ForbiddenPage.js.map +1 -1
  553. package/dist/v2/components/FormGrid.js +53 -59
  554. package/dist/v2/components/FormGrid.js.map +1 -1
  555. package/dist/v2/components/FormikDisplay.d.ts +50 -1
  556. package/dist/v2/components/FormikDisplay.d.ts.map +1 -1
  557. package/dist/v2/components/FormikDisplay.js +108 -33
  558. package/dist/v2/components/FormikDisplay.js.map +1 -1
  559. package/dist/v2/components/Input.d.ts +40 -0
  560. package/dist/v2/components/Input.d.ts.map +1 -1
  561. package/dist/v2/components/Input.js +81 -41
  562. package/dist/v2/components/Input.js.map +1 -1
  563. package/dist/v2/components/KPICard.js +57 -67
  564. package/dist/v2/components/KPICard.js.map +1 -1
  565. package/dist/v2/components/KPIStrip.js +16 -22
  566. package/dist/v2/components/KPIStrip.js.map +1 -1
  567. package/dist/v2/components/KV.js +25 -31
  568. package/dist/v2/components/KV.js.map +1 -1
  569. package/dist/v2/components/KVGrid.js +19 -26
  570. package/dist/v2/components/KVGrid.js.map +1 -1
  571. package/dist/v2/components/Layout.js +91 -120
  572. package/dist/v2/components/Layout.js.map +1 -1
  573. package/dist/v2/components/MobileRowCard.js +79 -91
  574. package/dist/v2/components/MobileRowCard.js.map +1 -1
  575. package/dist/v2/components/Modal.js +61 -69
  576. package/dist/v2/components/Modal.js.map +1 -1
  577. package/dist/v2/components/NetworkErrorPage.d.ts +19 -1
  578. package/dist/v2/components/NetworkErrorPage.d.ts.map +1 -1
  579. package/dist/v2/components/NetworkErrorPage.js +38 -21
  580. package/dist/v2/components/NetworkErrorPage.js.map +1 -1
  581. package/dist/v2/components/NotFoundPage.d.ts +17 -1
  582. package/dist/v2/components/NotFoundPage.d.ts.map +1 -1
  583. package/dist/v2/components/NotFoundPage.js +37 -18
  584. package/dist/v2/components/NotFoundPage.js.map +1 -1
  585. package/dist/v2/components/NumberInput.js +88 -118
  586. package/dist/v2/components/NumberInput.js.map +1 -1
  587. package/dist/v2/components/OverflowMenu.js +38 -56
  588. package/dist/v2/components/OverflowMenu.js.map +1 -1
  589. package/dist/v2/components/PdfViewer.js +34 -45
  590. package/dist/v2/components/PdfViewer.js.map +1 -1
  591. package/dist/v2/components/ProgressBar.js +42 -49
  592. package/dist/v2/components/ProgressBar.js.map +1 -1
  593. package/dist/v2/components/Radio.js +59 -67
  594. package/dist/v2/components/Radio.js.map +1 -1
  595. package/dist/v2/components/SectionErrorBoundary.js +90 -135
  596. package/dist/v2/components/SectionErrorBoundary.js.map +1 -1
  597. package/dist/v2/components/SectionHeader.js +34 -41
  598. package/dist/v2/components/SectionHeader.js.map +1 -1
  599. package/dist/v2/components/Segmented.js +69 -93
  600. package/dist/v2/components/Segmented.js.map +1 -1
  601. package/dist/v2/components/Select.d.ts +26 -2
  602. package/dist/v2/components/Select.d.ts.map +1 -1
  603. package/dist/v2/components/Select.js +120 -155
  604. package/dist/v2/components/Select.js.map +1 -1
  605. package/dist/v2/components/ServerErrorPage.d.ts +27 -1
  606. package/dist/v2/components/ServerErrorPage.d.ts.map +1 -1
  607. package/dist/v2/components/ServerErrorPage.js +37 -20
  608. package/dist/v2/components/ServerErrorPage.js.map +1 -1
  609. package/dist/v2/components/Skeleton.js +86 -100
  610. package/dist/v2/components/Skeleton.js.map +1 -1
  611. package/dist/v2/components/SkipLink.js +9 -12
  612. package/dist/v2/components/SkipLink.js.map +1 -1
  613. package/dist/v2/components/Spinner.js +16 -25
  614. package/dist/v2/components/Spinner.js.map +1 -1
  615. package/dist/v2/components/Status.js +18 -29
  616. package/dist/v2/components/Status.js.map +1 -1
  617. package/dist/v2/components/Stepper.js +80 -82
  618. package/dist/v2/components/Stepper.js.map +1 -1
  619. package/dist/v2/components/Surface.js +34 -49
  620. package/dist/v2/components/Surface.js.map +1 -1
  621. package/dist/v2/components/Switch.js +29 -37
  622. package/dist/v2/components/Switch.js.map +1 -1
  623. package/dist/v2/components/TabPanel.d.ts +17 -0
  624. package/dist/v2/components/TabPanel.d.ts.map +1 -0
  625. package/dist/v2/components/TabPanel.js +90 -0
  626. package/dist/v2/components/TabPanel.js.map +1 -0
  627. package/dist/v2/components/Tabs.d.ts +25 -0
  628. package/dist/v2/components/Tabs.d.ts.map +1 -1
  629. package/dist/v2/components/Tabs.js +53 -29
  630. package/dist/v2/components/Tabs.js.map +1 -1
  631. package/dist/v2/components/TelInput.js +80 -115
  632. package/dist/v2/components/TelInput.js.map +1 -1
  633. package/dist/v2/components/Textarea.js +26 -35
  634. package/dist/v2/components/Textarea.js.map +1 -1
  635. package/dist/v2/components/TimePicker.js +62 -74
  636. package/dist/v2/components/TimePicker.js.map +1 -1
  637. package/dist/v2/components/Toast.js +119 -174
  638. package/dist/v2/components/Toast.js.map +1 -1
  639. package/dist/v2/components/Tooltip.js +23 -38
  640. package/dist/v2/components/Tooltip.js.map +1 -1
  641. package/dist/v2/components/_ErrorPageBody.js +15 -16
  642. package/dist/v2/components/_ErrorPageBody.js.map +1 -1
  643. package/dist/v2/components/_pickerShared.js +5 -5
  644. package/dist/v2/components/_pickerShared.js.map +1 -1
  645. package/dist/v2/components/index.d.ts +67 -1
  646. package/dist/v2/components/index.d.ts.map +1 -1
  647. package/dist/v2/components/index.js +153 -136
  648. package/dist/v2/components/index.js.map +1 -1
  649. package/dist/v2/hooks/index.d.ts +65 -0
  650. package/dist/v2/hooks/index.d.ts.map +1 -1
  651. package/dist/v2/hooks/index.js +63 -24
  652. package/dist/v2/hooks/index.js.map +1 -1
  653. package/dist/v2/hooks/useAppliedFilters.d.ts +102 -0
  654. package/dist/v2/hooks/useAppliedFilters.d.ts.map +1 -0
  655. package/dist/v2/hooks/useAppliedFilters.js +117 -0
  656. package/dist/v2/hooks/useAppliedFilters.js.map +1 -0
  657. package/dist/v2/hooks/useDebouncedCallback.d.ts +64 -0
  658. package/dist/v2/hooks/useDebouncedCallback.d.ts.map +1 -0
  659. package/dist/v2/hooks/useDebouncedCallback.js +87 -0
  660. package/dist/v2/hooks/useDebouncedCallback.js.map +1 -0
  661. package/dist/v2/hooks/useDelayedFlag.js +6 -20
  662. package/dist/v2/hooks/useDelayedFlag.js.map +1 -1
  663. package/dist/v2/hooks/useDensity.d.ts.map +1 -1
  664. package/dist/v2/hooks/useDensity.js +14 -18
  665. package/dist/v2/hooks/useDensity.js.map +1 -1
  666. package/dist/v2/hooks/useFocusFirstError.js +26 -34
  667. package/dist/v2/hooks/useFocusFirstError.js.map +1 -1
  668. package/dist/v2/hooks/useFocusOnRouteChange.d.ts +65 -0
  669. package/dist/v2/hooks/useFocusOnRouteChange.d.ts.map +1 -0
  670. package/dist/v2/hooks/useFocusOnRouteChange.js +88 -0
  671. package/dist/v2/hooks/useFocusOnRouteChange.js.map +1 -0
  672. package/dist/v2/hooks/useFocusTrap.js +20 -24
  673. package/dist/v2/hooks/useFocusTrap.js.map +1 -1
  674. package/dist/v2/hooks/useFormAutoSave.d.ts +4 -4
  675. package/dist/v2/hooks/useFormAutoSave.d.ts.map +1 -1
  676. package/dist/v2/hooks/useFormAutoSave.js +39 -54
  677. package/dist/v2/hooks/useFormAutoSave.js.map +1 -1
  678. package/dist/v2/hooks/useFormCompletionProgress.d.ts +1 -1
  679. package/dist/v2/hooks/useFormCompletionProgress.d.ts.map +1 -1
  680. package/dist/v2/hooks/useFormCompletionProgress.js +33 -52
  681. package/dist/v2/hooks/useFormCompletionProgress.js.map +1 -1
  682. package/dist/v2/hooks/useKeyboardShortcuts.d.ts +25 -0
  683. package/dist/v2/hooks/useKeyboardShortcuts.d.ts.map +1 -0
  684. package/dist/v2/hooks/useKeyboardShortcuts.js +132 -0
  685. package/dist/v2/hooks/useKeyboardShortcuts.js.map +1 -0
  686. package/dist/v2/hooks/usePrefersReducedMotion.d.ts +56 -0
  687. package/dist/v2/hooks/usePrefersReducedMotion.d.ts.map +1 -0
  688. package/dist/v2/hooks/usePrefersReducedMotion.js +105 -0
  689. package/dist/v2/hooks/usePrefersReducedMotion.js.map +1 -0
  690. package/dist/v2/hooks/useResolvedDensity.js +5 -13
  691. package/dist/v2/hooks/useResolvedDensity.js.map +1 -1
  692. package/dist/v2/hooks/useSortedRows.js +4 -6
  693. package/dist/v2/hooks/useSortedRows.js.map +1 -1
  694. package/dist/v2/hooks/useTabLoading.js +7 -22
  695. package/dist/v2/hooks/useTabLoading.js.map +1 -1
  696. package/dist/v2/index.d.ts.map +1 -1
  697. package/dist/v2/index.js +143 -145
  698. package/dist/v2/index.js.map +1 -1
  699. package/dist/v2/modalContext.js +2 -2
  700. package/dist/v2/modalContext.js.map +1 -1
  701. package/dist/v2/models/favorite.d.ts +8 -9
  702. package/dist/v2/models/favorite.d.ts.map +1 -1
  703. package/dist/v2/models/favorite.js.map +1 -1
  704. package/dist/v2/models/index.js +4 -4
  705. package/dist/v2/models/index.js.map +1 -1
  706. package/dist/v2/models/personalization.d.ts +44 -48
  707. package/dist/v2/models/personalization.d.ts.map +1 -1
  708. package/dist/v2/models/personalization.js.map +1 -1
  709. package/dist/v2/models/referentiel.d.ts +32 -50
  710. package/dist/v2/models/referentiel.d.ts.map +1 -1
  711. package/dist/v2/models/referentiel.js.map +1 -1
  712. package/dist/v2/models/savedFilter.d.ts +8 -17
  713. package/dist/v2/models/savedFilter.d.ts.map +1 -1
  714. package/dist/v2/models/savedFilter.js.map +1 -1
  715. package/dist/v2/patterns/ActionBar.js +152 -187
  716. package/dist/v2/patterns/ActionBar.js.map +1 -1
  717. package/dist/v2/patterns/AppMain.d.ts +109 -0
  718. package/dist/v2/patterns/AppMain.d.ts.map +1 -0
  719. package/dist/v2/patterns/AppMain.js +115 -0
  720. package/dist/v2/patterns/AppMain.js.map +1 -0
  721. package/dist/v2/patterns/BulkActionBar.js +40 -42
  722. package/dist/v2/patterns/BulkActionBar.js.map +1 -1
  723. package/dist/v2/patterns/ChartFigure.d.ts +124 -0
  724. package/dist/v2/patterns/ChartFigure.d.ts.map +1 -0
  725. package/dist/v2/patterns/ChartFigure.js +159 -0
  726. package/dist/v2/patterns/ChartFigure.js.map +1 -0
  727. package/dist/v2/patterns/CollapsibleDataGrid.js +138 -174
  728. package/dist/v2/patterns/CollapsibleDataGrid.js.map +1 -1
  729. package/dist/v2/patterns/ColumnsToggle.js +60 -94
  730. package/dist/v2/patterns/ColumnsToggle.js.map +1 -1
  731. package/dist/v2/patterns/DataGrid.d.ts.map +1 -1
  732. package/dist/v2/patterns/DataGrid.js +262 -297
  733. package/dist/v2/patterns/DataGrid.js.map +1 -1
  734. package/dist/v2/patterns/DataGridSettingsMenu.d.ts +12 -0
  735. package/dist/v2/patterns/DataGridSettingsMenu.d.ts.map +1 -1
  736. package/dist/v2/patterns/DataGridSettingsMenu.js +104 -121
  737. package/dist/v2/patterns/DataGridSettingsMenu.js.map +1 -1
  738. package/dist/v2/patterns/DataGridToolbar.js +103 -106
  739. package/dist/v2/patterns/DataGridToolbar.js.map +1 -1
  740. package/dist/v2/patterns/DataGridVirtualized.js +179 -217
  741. package/dist/v2/patterns/DataGridVirtualized.js.map +1 -1
  742. package/dist/v2/patterns/DeleteResourceConfirmDialog.js +32 -35
  743. package/dist/v2/patterns/DeleteResourceConfirmDialog.js.map +1 -1
  744. package/dist/v2/patterns/DetailSplit.d.ts +87 -0
  745. package/dist/v2/patterns/DetailSplit.d.ts.map +1 -0
  746. package/dist/v2/patterns/DetailSplit.js +116 -0
  747. package/dist/v2/patterns/DetailSplit.js.map +1 -0
  748. package/dist/v2/patterns/FavoriteColumn.d.ts +9 -9
  749. package/dist/v2/patterns/FavoriteColumn.d.ts.map +1 -1
  750. package/dist/v2/patterns/FavoriteColumn.js +32 -80
  751. package/dist/v2/patterns/FavoriteColumn.js.map +1 -1
  752. package/dist/v2/patterns/FavoritesFilter.js +36 -44
  753. package/dist/v2/patterns/FavoritesFilter.js.map +1 -1
  754. package/dist/v2/patterns/FilterTabBar.d.ts +28 -0
  755. package/dist/v2/patterns/FilterTabBar.d.ts.map +1 -0
  756. package/dist/v2/patterns/FilterTabBar.js +120 -0
  757. package/dist/v2/patterns/FilterTabBar.js.map +1 -0
  758. package/dist/v2/patterns/FormErrorSummary.js +20 -23
  759. package/dist/v2/patterns/FormErrorSummary.js.map +1 -1
  760. package/dist/v2/patterns/FormPageShell.js +53 -50
  761. package/dist/v2/patterns/FormPageShell.js.map +1 -1
  762. package/dist/v2/patterns/FormSection.d.ts +8 -3
  763. package/dist/v2/patterns/FormSection.d.ts.map +1 -1
  764. package/dist/v2/patterns/FormSection.js +44 -51
  765. package/dist/v2/patterns/FormSection.js.map +1 -1
  766. package/dist/v2/patterns/FormikCheckbox.d.ts +77 -0
  767. package/dist/v2/patterns/FormikCheckbox.d.ts.map +1 -0
  768. package/dist/v2/patterns/FormikCheckbox.js +138 -0
  769. package/dist/v2/patterns/FormikCheckbox.js.map +1 -0
  770. package/dist/v2/patterns/FormikCheckboxGroup.d.ts +17 -1
  771. package/dist/v2/patterns/FormikCheckboxGroup.d.ts.map +1 -1
  772. package/dist/v2/patterns/FormikCheckboxGroup.js +62 -65
  773. package/dist/v2/patterns/FormikCheckboxGroup.js.map +1 -1
  774. package/dist/v2/patterns/FormikCombobox.d.ts +7 -1
  775. package/dist/v2/patterns/FormikCombobox.d.ts.map +1 -1
  776. package/dist/v2/patterns/FormikCombobox.js +55 -69
  777. package/dist/v2/patterns/FormikCombobox.js.map +1 -1
  778. package/dist/v2/patterns/FormikDatePicker.d.ts +13 -1
  779. package/dist/v2/patterns/FormikDatePicker.d.ts.map +1 -1
  780. package/dist/v2/patterns/FormikDatePicker.js +59 -106
  781. package/dist/v2/patterns/FormikDatePicker.js.map +1 -1
  782. package/dist/v2/patterns/FormikDateTimePicker.d.ts +111 -0
  783. package/dist/v2/patterns/FormikDateTimePicker.d.ts.map +1 -0
  784. package/dist/v2/patterns/FormikDateTimePicker.js +144 -0
  785. package/dist/v2/patterns/FormikDateTimePicker.js.map +1 -0
  786. package/dist/v2/patterns/FormikErrorFocus.js +25 -26
  787. package/dist/v2/patterns/FormikErrorFocus.js.map +1 -1
  788. package/dist/v2/patterns/FormikErrorSummary.d.ts +74 -0
  789. package/dist/v2/patterns/FormikErrorSummary.d.ts.map +1 -0
  790. package/dist/v2/patterns/FormikErrorSummary.js +97 -0
  791. package/dist/v2/patterns/FormikErrorSummary.js.map +1 -0
  792. package/dist/v2/patterns/FormikFile.d.ts +14 -1
  793. package/dist/v2/patterns/FormikFile.d.ts.map +1 -1
  794. package/dist/v2/patterns/FormikFile.js +99 -83
  795. package/dist/v2/patterns/FormikFile.js.map +1 -1
  796. package/dist/v2/patterns/FormikInput.d.ts +11 -1
  797. package/dist/v2/patterns/FormikInput.d.ts.map +1 -1
  798. package/dist/v2/patterns/FormikInput.js +45 -55
  799. package/dist/v2/patterns/FormikInput.js.map +1 -1
  800. package/dist/v2/patterns/FormikRadioGroup.d.ts +80 -0
  801. package/dist/v2/patterns/FormikRadioGroup.d.ts.map +1 -0
  802. package/dist/v2/patterns/FormikRadioGroup.js +137 -0
  803. package/dist/v2/patterns/FormikRadioGroup.js.map +1 -0
  804. package/dist/v2/patterns/FormikReferentielField.d.ts +12 -1
  805. package/dist/v2/patterns/FormikReferentielField.d.ts.map +1 -1
  806. package/dist/v2/patterns/FormikReferentielField.js +54 -64
  807. package/dist/v2/patterns/FormikReferentielField.js.map +1 -1
  808. package/dist/v2/patterns/FormikSelect.d.ts +9 -1
  809. package/dist/v2/patterns/FormikSelect.d.ts.map +1 -1
  810. package/dist/v2/patterns/FormikSelect.js +70 -89
  811. package/dist/v2/patterns/FormikSelect.js.map +1 -1
  812. package/dist/v2/patterns/FormikTextarea.d.ts +9 -1
  813. package/dist/v2/patterns/FormikTextarea.d.ts.map +1 -1
  814. package/dist/v2/patterns/FormikTextarea.js +35 -48
  815. package/dist/v2/patterns/FormikTextarea.js.map +1 -1
  816. package/dist/v2/patterns/KeyboardShortcutsHelp.d.ts +14 -1
  817. package/dist/v2/patterns/KeyboardShortcutsHelp.d.ts.map +1 -1
  818. package/dist/v2/patterns/KeyboardShortcutsHelp.js +71 -74
  819. package/dist/v2/patterns/KeyboardShortcutsHelp.js.map +1 -1
  820. package/dist/v2/patterns/NetworkErrorBanner.js +13 -16
  821. package/dist/v2/patterns/NetworkErrorBanner.js.map +1 -1
  822. package/dist/v2/patterns/PageContent.js +17 -20
  823. package/dist/v2/patterns/PageContent.js.map +1 -1
  824. package/dist/v2/patterns/PreviewDrawer.d.ts +49 -0
  825. package/dist/v2/patterns/PreviewDrawer.d.ts.map +1 -0
  826. package/dist/v2/patterns/PreviewDrawer.js +159 -0
  827. package/dist/v2/patterns/PreviewDrawer.js.map +1 -0
  828. package/dist/v2/patterns/ReferentielField.d.ts +86 -2
  829. package/dist/v2/patterns/ReferentielField.d.ts.map +1 -1
  830. package/dist/v2/patterns/ReferentielField.js +347 -327
  831. package/dist/v2/patterns/ReferentielField.js.map +1 -1
  832. package/dist/v2/patterns/RowFavoriteToggle.d.ts +98 -0
  833. package/dist/v2/patterns/RowFavoriteToggle.d.ts.map +1 -0
  834. package/dist/v2/patterns/RowFavoriteToggle.js +135 -0
  835. package/dist/v2/patterns/RowFavoriteToggle.js.map +1 -0
  836. package/dist/v2/patterns/SaveFilterDialog.js +50 -77
  837. package/dist/v2/patterns/SaveFilterDialog.js.map +1 -1
  838. package/dist/v2/patterns/SavedFiltersMenu.js +89 -107
  839. package/dist/v2/patterns/SavedFiltersMenu.js.map +1 -1
  840. package/dist/v2/patterns/SkeletonPageShell.js +122 -143
  841. package/dist/v2/patterns/SkeletonPageShell.js.map +1 -1
  842. package/dist/v2/patterns/SortableHeader.js +35 -57
  843. package/dist/v2/patterns/SortableHeader.js.map +1 -1
  844. package/dist/v2/patterns/Tour.js +121 -142
  845. package/dist/v2/patterns/Tour.js.map +1 -1
  846. package/dist/v2/patterns/_dataGridShared.d.ts.map +1 -1
  847. package/dist/v2/patterns/_dataGridShared.js +131 -147
  848. package/dist/v2/patterns/_dataGridShared.js.map +1 -1
  849. package/dist/v2/patterns/_pickerSerialisation.d.ts +44 -0
  850. package/dist/v2/patterns/_pickerSerialisation.d.ts.map +1 -0
  851. package/dist/v2/patterns/_pickerSerialisation.js +80 -0
  852. package/dist/v2/patterns/_pickerSerialisation.js.map +1 -0
  853. package/dist/v2/patterns/_sort.js +17 -33
  854. package/dist/v2/patterns/_sort.js.map +1 -1
  855. package/dist/v2/patterns/_useColumnReorder.js +124 -163
  856. package/dist/v2/patterns/_useColumnReorder.js.map +1 -1
  857. package/dist/v2/patterns/_useColumnResize.js +80 -99
  858. package/dist/v2/patterns/_useColumnResize.js.map +1 -1
  859. package/dist/v2/patterns/filterCriteria.d.ts +78 -0
  860. package/dist/v2/patterns/filterCriteria.d.ts.map +1 -0
  861. package/dist/v2/patterns/filterCriteria.js +110 -0
  862. package/dist/v2/patterns/filterCriteria.js.map +1 -0
  863. package/dist/v2/patterns/index.d.ts +247 -0
  864. package/dist/v2/patterns/index.d.ts.map +1 -1
  865. package/dist/v2/patterns/index.js +182 -70
  866. package/dist/v2/patterns/index.js.map +1 -1
  867. package/dist/v2/patterns/rowActions.d.ts +150 -0
  868. package/dist/v2/patterns/rowActions.d.ts.map +1 -0
  869. package/dist/v2/patterns/rowActions.js +232 -0
  870. package/dist/v2/patterns/rowActions.js.map +1 -0
  871. package/dist/v2/personalization/PersonalizationProvider.d.ts.map +1 -1
  872. package/dist/v2/personalization/PersonalizationProvider.js +57 -53
  873. package/dist/v2/personalization/PersonalizationProvider.js.map +1 -1
  874. package/dist/v2/personalization/adapters/_storageKey.js +5 -5
  875. package/dist/v2/personalization/adapters/_storageKey.js.map +1 -1
  876. package/dist/v2/personalization/adapters/createLocalStorageAdapter.js +25 -24
  877. package/dist/v2/personalization/adapters/createLocalStorageAdapter.js.map +1 -1
  878. package/dist/v2/personalization/adapters/createMemoryAdapter.js +14 -14
  879. package/dist/v2/personalization/adapters/createMemoryAdapter.js.map +1 -1
  880. package/dist/v2/personalization/adapters/index.js +5 -5
  881. package/dist/v2/personalization/adapters/index.js.map +1 -1
  882. package/dist/v2/personalization/capabilities/favorites.js +39 -62
  883. package/dist/v2/personalization/capabilities/favorites.js.map +1 -1
  884. package/dist/v2/personalization/capabilities/favoritesView.js +25 -37
  885. package/dist/v2/personalization/capabilities/favoritesView.js.map +1 -1
  886. package/dist/v2/personalization/capabilities/gridPreferences.d.ts +100 -0
  887. package/dist/v2/personalization/capabilities/gridPreferences.d.ts.map +1 -0
  888. package/dist/v2/personalization/capabilities/gridPreferences.js +210 -0
  889. package/dist/v2/personalization/capabilities/gridPreferences.js.map +1 -0
  890. package/dist/v2/personalization/capabilities/index.d.ts +6 -0
  891. package/dist/v2/personalization/capabilities/index.d.ts.map +1 -1
  892. package/dist/v2/personalization/capabilities/index.js +23 -10
  893. package/dist/v2/personalization/capabilities/index.js.map +1 -1
  894. package/dist/v2/personalization/capabilities/reviveSavedCriteria.d.ts +88 -0
  895. package/dist/v2/personalization/capabilities/reviveSavedCriteria.d.ts.map +1 -0
  896. package/dist/v2/personalization/capabilities/reviveSavedCriteria.js +126 -0
  897. package/dist/v2/personalization/capabilities/reviveSavedCriteria.js.map +1 -0
  898. package/dist/v2/personalization/capabilities/savedFilters.js +93 -100
  899. package/dist/v2/personalization/capabilities/savedFilters.js.map +1 -1
  900. package/dist/v2/personalization/createPersonalizationStore.d.ts.map +1 -1
  901. package/dist/v2/personalization/createPersonalizationStore.js +81 -182
  902. package/dist/v2/personalization/createPersonalizationStore.js.map +1 -1
  903. package/dist/v2/personalization/index.d.ts +34 -0
  904. package/dist/v2/personalization/index.d.ts.map +1 -1
  905. package/dist/v2/personalization/index.js +41 -21
  906. package/dist/v2/personalization/index.js.map +1 -1
  907. package/dist/v2/personalization/personalizationContext.js +10 -12
  908. package/dist/v2/personalization/personalizationContext.js.map +1 -1
  909. package/dist/v2/personalization/schema.js +8 -9
  910. package/dist/v2/personalization/schema.js.map +1 -1
  911. package/dist/v2/referentiel/ReferentielProvider.js +31 -45
  912. package/dist/v2/referentiel/ReferentielProvider.js.map +1 -1
  913. package/dist/v2/referentiel/index.js +11 -13
  914. package/dist/v2/referentiel/index.js.map +1 -1
  915. package/dist/v2/referentiel/types.d.ts +105 -0
  916. package/dist/v2/referentiel/types.d.ts.map +1 -0
  917. package/dist/v2/referentiel/types.js +6 -0
  918. package/dist/v2/referentiel/types.js.map +1 -0
  919. package/dist/v2/referentiel/useReferentielClient.js +13 -16
  920. package/dist/v2/referentiel/useReferentielClient.js.map +1 -1
  921. package/dist/v2/referentiel/useReferentielOptions.d.ts +7 -17
  922. package/dist/v2/referentiel/useReferentielOptions.d.ts.map +1 -1
  923. package/dist/v2/referentiel/useReferentielOptions.js +63 -120
  924. package/dist/v2/referentiel/useReferentielOptions.js.map +1 -1
  925. package/dist/v2/referentiel/useReferentielSearch.d.ts +7 -48
  926. package/dist/v2/referentiel/useReferentielSearch.d.ts.map +1 -1
  927. package/dist/v2/referentiel/useReferentielSearch.js +40 -95
  928. package/dist/v2/referentiel/useReferentielSearch.js.map +1 -1
  929. package/dist/v2/theme/_brand.js +12 -26
  930. package/dist/v2/theme/_brand.js.map +1 -1
  931. package/dist/v2/theme/_brandSecondary.js +12 -26
  932. package/dist/v2/theme/_brandSecondary.js.map +1 -1
  933. package/dist/v2/theme/createPortnetTheme.js +41 -49
  934. package/dist/v2/theme/createPortnetTheme.js.map +1 -1
  935. package/dist/v2/theme/cssVariables.d.ts +3 -3
  936. package/dist/v2/theme/cssVariables.d.ts.map +1 -1
  937. package/dist/v2/theme/cssVariables.js +65 -70
  938. package/dist/v2/theme/cssVariables.js.map +1 -1
  939. package/dist/v2/theme/index.js +10 -10
  940. package/dist/v2/theme/index.js.map +1 -1
  941. package/dist/v2/tokens/breakpoints.js +16 -16
  942. package/dist/v2/tokens/breakpoints.js.map +1 -1
  943. package/dist/v2/tokens/chart.d.ts +103 -0
  944. package/dist/v2/tokens/chart.d.ts.map +1 -0
  945. package/dist/v2/tokens/chart.js +270 -0
  946. package/dist/v2/tokens/chart.js.map +1 -0
  947. package/dist/v2/tokens/colors.js +24 -24
  948. package/dist/v2/tokens/colors.js.map +1 -1
  949. package/dist/v2/tokens/density.d.ts +104 -0
  950. package/dist/v2/tokens/density.d.ts.map +1 -1
  951. package/dist/v2/tokens/density.js +67 -12
  952. package/dist/v2/tokens/density.js.map +1 -1
  953. package/dist/v2/tokens/index.d.ts +50 -1
  954. package/dist/v2/tokens/index.d.ts.map +1 -1
  955. package/dist/v2/tokens/index.js +116 -68
  956. package/dist/v2/tokens/index.js.map +1 -1
  957. package/dist/v2/tokens/motion.js +16 -22
  958. package/dist/v2/tokens/motion.js.map +1 -1
  959. package/dist/v2/tokens/radius.js +3 -3
  960. package/dist/v2/tokens/radius.js.map +1 -1
  961. package/dist/v2/tokens/shadows.js +8 -8
  962. package/dist/v2/tokens/shadows.js.map +1 -1
  963. package/dist/v2/tokens/spacing.js +4 -4
  964. package/dist/v2/tokens/spacing.js.map +1 -1
  965. package/dist/v2/tokens/state.js +3 -3
  966. package/dist/v2/tokens/state.js.map +1 -1
  967. package/dist/v2/tokens/statusPalette.js +21 -23
  968. package/dist/v2/tokens/statusPalette.js.map +1 -1
  969. package/dist/v2/tokens/tokens.json +6 -1
  970. package/dist/v2/tokens/typography.js +15 -15
  971. package/dist/v2/tokens/typography.js.map +1 -1
  972. package/dist/v2/tokens/zIndex.js +3 -3
  973. package/dist/v2/tokens/zIndex.js.map +1 -1
  974. package/dist/v2/types/datagrid.d.ts +9 -1
  975. package/dist/v2/types/datagrid.d.ts.map +1 -1
  976. package/dist/v2/types/datagrid.js.map +1 -1
  977. package/dist/v2/types/index.js +2 -2
  978. package/dist/v2/types/index.js.map +1 -1
  979. package/dist/v2/utils/apiError.js +16 -37
  980. package/dist/v2/utils/apiError.js.map +1 -1
  981. package/dist/v2/utils/contrast.js +31 -32
  982. package/dist/v2/utils/contrast.js.map +1 -1
  983. package/dist/v2/utils/cx.js +7 -27
  984. package/dist/v2/utils/cx.js.map +1 -1
  985. package/dist/v2/utils/fileDownload.js +25 -28
  986. package/dist/v2/utils/fileDownload.js.map +1 -1
  987. package/dist/v2/utils/fileValidation.d.ts +116 -0
  988. package/dist/v2/utils/fileValidation.d.ts.map +1 -0
  989. package/dist/v2/utils/fileValidation.js +220 -0
  990. package/dist/v2/utils/fileValidation.js.map +1 -0
  991. package/dist/v2/utils/fmtDate.d.ts +103 -0
  992. package/dist/v2/utils/fmtDate.d.ts.map +1 -0
  993. package/dist/v2/utils/fmtDate.js +119 -0
  994. package/dist/v2/utils/fmtDate.js.map +1 -0
  995. package/dist/v2/utils/fmtMoney.d.ts +3 -3
  996. package/dist/v2/utils/fmtMoney.d.ts.map +1 -1
  997. package/dist/v2/utils/fmtMoney.js +9 -11
  998. package/dist/v2/utils/fmtMoney.js.map +1 -1
  999. package/dist/v2/utils/formikErrors.d.ts +67 -0
  1000. package/dist/v2/utils/formikErrors.d.ts.map +1 -0
  1001. package/dist/v2/utils/formikErrors.js +85 -0
  1002. package/dist/v2/utils/formikErrors.js.map +1 -0
  1003. package/dist/v2/utils/index.d.ts +5 -0
  1004. package/dist/v2/utils/index.d.ts.map +1 -1
  1005. package/dist/v2/utils/index.js +67 -18
  1006. package/dist/v2/utils/index.js.map +1 -1
  1007. package/dist/v2/utils/mergeLabels.js +9 -14
  1008. package/dist/v2/utils/mergeLabels.js.map +1 -1
  1009. package/dist/v2/utils/networkStatus.js +14 -14
  1010. package/dist/v2/utils/networkStatus.js.map +1 -1
  1011. package/package.json +26 -9
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "applySort", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _SortableHeader.applySort;
10
10
  }
11
11
  });
12
- exports["default"] = void 0;
12
+ exports.default = void 0;
13
13
  var React = _interopRequireWildcard(require("react"));
14
14
  var _Box = _interopRequireDefault(require("@mui/material/Box"));
15
15
  var _Table = _interopRequireDefault(require("@mui/material/Table"));
@@ -28,18 +28,8 @@ var _dataGridShared = require("./_dataGridShared");
28
28
  var _useColumnResize = _interopRequireDefault(require("./_useColumnResize"));
29
29
  var _useColumnReorder = _interopRequireDefault(require("./_useColumnReorder"));
30
30
  var _jsxRuntime = require("react/jsx-runtime");
31
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
32
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
34
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
35
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
36
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
37
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
38
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
41
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
42
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
32
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
43
33
  /**
44
34
  * DataGrid - Portnet UI v2 (pattern)
45
35
  *
@@ -64,6 +54,8 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
64
54
  * masks the data column(s) it covers.
65
55
  * - The actions column header carries a visually-hidden accessible
66
56
  * name from labels.actionsHeader (default "Actions").
57
+ * - The cell CONTAINS its own click and keydown: an action must not also
58
+ * fire `onRowClick`. See the note at ROW_ACTIONS_CELL_SX.
67
59
  *
68
60
  * Mobile card view (R1 mobile, opt-in):
69
61
  * - When `renderMobileCard` is provided AND viewport is below
@@ -84,10 +76,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
84
76
  * strings are treated as "not provided". Charter R-DG + WCAG 2.2 AA.
85
77
  */
86
78
  function useAriaLabelWarn(ariaLabel, labelsTableAria) {
87
- React.useEffect(function () {
79
+ React.useEffect(() => {
88
80
  if (process.env["NODE_ENV"] === "production") return;
89
- var hasAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0;
90
- var hasLabelsAria = typeof labelsTableAria === "string" && labelsTableAria.trim().length > 0;
81
+ const hasAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0;
82
+ const hasLabelsAria = typeof labelsTableAria === "string" && labelsTableAria.trim().length > 0;
91
83
  if (hasAriaLabel || hasLabelsAria) return;
92
84
 
93
85
  // eslint-disable-next-line no-console
@@ -103,8 +95,36 @@ function useAriaLabelWarn(ariaLabel, labelsTableAria) {
103
95
  * position:sticky right:0 glues the overlay's positioned ancestor to the
104
96
  * visible right edge during horizontal scroll and provides a focus
105
97
  * container. The strict 0 width makes the cell contribute nothing to
106
- * layout; overflow:visible lets the absolute overlay render outside it. */
107
- var ROW_ACTIONS_CELL_SX = Object.freeze({
98
+ * layout; overflow:visible lets the absolute overlay render outside it.
99
+ *
100
+ * ─── THE CELL CONTAINS ITS OWN EVENTS, AND IT MUST ───────────────────
101
+ *
102
+ * The row carries `onClick={() => onRowClick(row)}` and a keydown handler,
103
+ * and this cell is INSIDE it. Without containment, activating a row action
104
+ * also triggers the row click — on a listing that is §Row Interaction's
105
+ * preview drawer, so the user gets the action AND a drawer opening over it.
106
+ *
107
+ * It cannot be fixed at the action level. `buildRowActions` /
108
+ * `buildRowActionMenu` (./rowActions) describe an action as
109
+ * `onClick: (row: T) => void` — the DOM event is deliberately not exposed,
110
+ * because a business descriptor has no business knowing about propagation.
111
+ * `OverflowMenu`'s trigger is in the same position. So the only place that
112
+ * can hold this invariant for EVERY shape — the kebab, the icon row, and any
113
+ * host-written `rowActions` renderer — is the cell.
114
+ *
115
+ * Same treatment as the selection checkbox cell in the body below, which has
116
+ * always stopped both events for exactly this reason. Containing them here
117
+ * makes the two consistent instead of leaving one of the two interactive
118
+ * cells of a row unguarded.
119
+ *
120
+ * `stopPropagation` and NOT `preventDefault`: the buttons' own activation,
121
+ * including Enter/Space on a focused action, is untouched — only the bubble
122
+ * to the row is cut.
123
+ *
124
+ * Surfaced by addm-fe's Area 3 audit: both of its listings had hand-written
125
+ * their icon row specifically to call `e.stopPropagation()` per button, which
126
+ * is what made adopting `buildRowActions` look like a regression. */
127
+ const ROW_ACTIONS_CELL_SX = Object.freeze({
108
128
  position: "sticky",
109
129
  right: 0,
110
130
  zIndex: 1,
@@ -116,7 +136,7 @@ var ROW_ACTIONS_CELL_SX = Object.freeze({
116
136
  borderBottom: "1px solid var(--border)",
117
137
  overflow: "visible"
118
138
  });
119
- var ROW_ACTIONS_HEAD_CELL_SX = Object.freeze({
139
+ const ROW_ACTIONS_HEAD_CELL_SX = Object.freeze({
120
140
  position: "sticky",
121
141
  right: 0,
122
142
  top: 0,
@@ -133,7 +153,7 @@ var ROW_ACTIONS_HEAD_CELL_SX = Object.freeze({
133
153
  * auto-generated actions column header an accessible name without adding
134
154
  * visible text. clip-rect keeps it painted into the a11y tree while
135
155
  * removing it from visual layout. */
136
- var VISUALLY_HIDDEN_SX = Object.freeze({
156
+ const VISUALLY_HIDDEN_SX = Object.freeze({
137
157
  position: "absolute",
138
158
  width: "1px",
139
159
  height: "1px",
@@ -148,7 +168,7 @@ var VISUALLY_HIDDEN_SX = Object.freeze({
148
168
  /* R2 — Overlay floats over the row's right edge. Invisible by default,
149
169
  * visible on hover / focus-within / coarse pointer. The parent
150
170
  * ROW_ACTIONS_CELL_SX (position:sticky) is the containing block. */
151
- var ROW_ACTIONS_OVERLAY_SX = Object.freeze({
171
+ const ROW_ACTIONS_OVERLAY_SX = Object.freeze({
152
172
  position: "absolute",
153
173
  right: "var(--s-3)",
154
174
  top: "50%",
@@ -179,14 +199,14 @@ var ROW_ACTIONS_OVERLAY_SX = Object.freeze({
179
199
  /* R2 — Filler cells stay at width:0 so they don't take any proportional
180
200
  * residual under tableLayout:auto. (Local width:0 variants — distinct
181
201
  * from _dataGridShared's exports, which are not imported here.) */
182
- var FILLER_CELL_SX = Object.freeze({
202
+ const FILLER_CELL_SX = Object.freeze({
183
203
  padding: 0,
184
204
  width: 0,
185
205
  minWidth: 0,
186
206
  maxWidth: 0,
187
207
  borderBottom: "1px solid var(--border)"
188
208
  });
189
- var FILLER_HEAD_CELL_SX = Object.freeze({
209
+ const FILLER_HEAD_CELL_SX = Object.freeze({
190
210
  padding: 0,
191
211
  width: 0,
192
212
  minWidth: 0,
@@ -202,7 +222,7 @@ var FILLER_HEAD_CELL_SX = Object.freeze({
202
222
  * focus-within, and always revealed while itself focus-visible so it stays
203
223
  * Tab-reachable. Absolutely positioned in the header cell's inline-start
204
224
  * padding; background matches the header so it masks the sliver it overlaps. */
205
- var REORDER_GRIP_SX = Object.freeze({
225
+ const REORDER_GRIP_SX = Object.freeze({
206
226
  position: "absolute",
207
227
  insetInlineStart: 2,
208
228
  top: "50%",
@@ -241,13 +261,13 @@ var REORDER_GRIP_SX = Object.freeze({
241
261
 
242
262
  /* ── Mobile card view SX (R1 mobile) ─────────────────────────────── */
243
263
 
244
- var CARD_STACK_SX = Object.freeze({
264
+ const CARD_STACK_SX = Object.freeze({
245
265
  display: "flex",
246
266
  flexDirection: "column",
247
267
  gap: "var(--s-2)",
248
268
  padding: "var(--s-3)"
249
269
  });
250
- var CARD_BASE_SX = Object.freeze({
270
+ const CARD_BASE_SX = Object.freeze({
251
271
  background: "var(--surface)",
252
272
  border: "1px solid var(--border)",
253
273
  borderRadius: "var(--r-md)",
@@ -255,7 +275,8 @@ var CARD_BASE_SX = Object.freeze({
255
275
  transition: "background 60ms ease, border-color 60ms ease",
256
276
  minHeight: 44
257
277
  });
258
- var CARD_CLICKABLE_SX = Object.freeze(_objectSpread(_objectSpread({}, CARD_BASE_SX), {}, {
278
+ const CARD_CLICKABLE_SX = Object.freeze({
279
+ ...CARD_BASE_SX,
259
280
  cursor: "pointer",
260
281
  "&:hover": {
261
282
  background: "var(--bg-hover)"
@@ -274,8 +295,8 @@ var CARD_CLICKABLE_SX = Object.freeze(_objectSpread(_objectSpread({}, CARD_BASE_
274
295
  background: "var(--accent-soft)",
275
296
  borderColor: "var(--accent)"
276
297
  }
277
- }));
278
- var CARD_SKELETON_SX = Object.freeze({
298
+ });
299
+ const CARD_SKELETON_SX = Object.freeze({
279
300
  height: 90,
280
301
  background: "var(--bg-subtle)",
281
302
  borderRadius: "var(--r-md)",
@@ -284,24 +305,24 @@ var CARD_SKELETON_SX = Object.freeze({
284
305
  animation: "none"
285
306
  }
286
307
  });
287
- var CARD_EMPTY_WRAPPER_SX = Object.freeze({
308
+ const CARD_EMPTY_WRAPPER_SX = Object.freeze({
288
309
  padding: "var(--s-6) var(--s-4)"
289
310
  });
290
311
 
291
312
  /* R2 — Default min-width contribution for a column without an explicit
292
313
  * `width`. 120 px is a sensible floor for a typical data cell. */
293
- var UNSIZED_COL_MIN_DEFAULT = 120;
314
+ const UNSIZED_COL_MIN_DEFAULT = 120;
294
315
 
295
316
  /* R2 — Upper bound on how much ANY single column may contribute to the
296
317
  * table's hard min-width. A column may DECLARE a large preferred width and
297
318
  * tableLayout:auto grows it toward that when the container has room, but
298
319
  * its preferred width must not drag the table's min-width past this cap
299
320
  * (below which horizontal scroll kicks in). */
300
- var COL_MINWIDTH_CAP = 220;
321
+ const COL_MINWIDTH_CAP = 220;
301
322
  function widthToNumber(w) {
302
323
  if (typeof w === "number" && Number.isFinite(w)) return w;
303
324
  if (typeof w === "string") {
304
- var parsed = parseFloat(w);
325
+ const parsed = parseFloat(w);
305
326
  if (!Number.isNaN(parsed)) return parsed;
306
327
  }
307
328
  return 0;
@@ -318,158 +339,113 @@ function readCellValue(row, key) {
318
339
  /* Default getRowId (`(r) => r.id`). Typed against `unknown` so the single
319
340
  * assertion is legal; `(unknown) => RowId` is assignable to the declared
320
341
  * `(row: T) => RowId` by parameter contravariance. */
321
- var defaultGetRowId = function defaultGetRowId(row) {
322
- return row.id;
323
- };
324
- function DataGrid(_ref) {
325
- var _ref$rows = _ref.rows,
326
- rows = _ref$rows === void 0 ? [] : _ref$rows,
327
- _ref$columns = _ref.columns,
328
- rawColumns = _ref$columns === void 0 ? [] : _ref$columns,
329
- _ref$loading = _ref.loading,
330
- loading = _ref$loading === void 0 ? false : _ref$loading,
331
- _ref$error = _ref.error,
332
- error = _ref$error === void 0 ? null : _ref$error,
333
- _ref$sort = _ref.sort,
334
- sort = _ref$sort === void 0 ? [] : _ref$sort,
335
- onSortChange = _ref.onSortChange,
336
- selection = _ref.selection,
337
- onSelectionChange = _ref.onSelectionChange,
338
- pagination = _ref.pagination,
339
- emptyState = _ref.emptyState,
340
- filteredEmptyState = _ref.filteredEmptyState,
341
- errorState = _ref.errorState,
342
- _ref$getRowId = _ref.getRowId,
343
- getRowId = _ref$getRowId === void 0 ? defaultGetRowId : _ref$getRowId,
344
- onRowClick = _ref.onRowClick,
345
- rowFlashId = _ref.rowFlashId,
346
- activeRowId = _ref.activeRowId,
347
- rowActions = _ref.rowActions,
348
- hiddenColumns = _ref.hiddenColumns,
349
- _ref$filtered = _ref.filtered,
350
- filtered = _ref$filtered === void 0 ? false : _ref$filtered,
351
- _ref$density = _ref.density,
352
- density = _ref$density === void 0 ? "comfortable" : _ref$density,
353
- ariaLabel = _ref.ariaLabel,
354
- _ref$locale = _ref.locale,
355
- locale = _ref$locale === void 0 ? "fr-FR" : _ref$locale,
356
- labels = _ref.labels,
357
- _ref$maxBodyHeight = _ref.maxBodyHeight,
358
- maxBodyHeight = _ref$maxBodyHeight === void 0 ? _dataGridShared.DEFAULT_MAX_BODY_HEIGHT : _ref$maxBodyHeight,
359
- _ref$resizable = _ref.resizable,
360
- resizable = _ref$resizable === void 0 ? false : _ref$resizable,
361
- columnWidths = _ref.columnWidths,
362
- onColumnWidthsChange = _ref.onColumnWidthsChange,
363
- _ref$reorderable = _ref.reorderable,
364
- reorderable = _ref$reorderable === void 0 ? false : _ref$reorderable,
365
- columnOrder = _ref.columnOrder,
366
- onColumnOrderChange = _ref.onColumnOrderChange,
367
- renderMobileCard = _ref.renderMobileCard,
368
- _ref$mobileBreakpoint = _ref.mobileBreakpoint,
369
- mobileBreakpoint = _ref$mobileBreakpoint === void 0 ? "sm" : _ref$mobileBreakpoint;
342
+ const defaultGetRowId = row => row.id;
343
+ function DataGrid({
344
+ rows = [],
345
+ columns: rawColumns = [],
346
+ loading = false,
347
+ error = null,
348
+ sort = [],
349
+ onSortChange,
350
+ selection,
351
+ onSelectionChange,
352
+ pagination,
353
+ emptyState,
354
+ filteredEmptyState,
355
+ errorState,
356
+ getRowId = defaultGetRowId,
357
+ onRowClick,
358
+ rowFlashId,
359
+ activeRowId,
360
+ rowActions,
361
+ hiddenColumns,
362
+ filtered = false,
363
+ density = "comfortable",
364
+ ariaLabel,
365
+ locale = "fr-FR",
366
+ labels,
367
+ maxBodyHeight = _dataGridShared.DEFAULT_MAX_BODY_HEIGHT,
368
+ resizable = false,
369
+ columnWidths,
370
+ onColumnWidthsChange,
371
+ reorderable = false,
372
+ columnOrder,
373
+ onColumnOrderChange,
374
+ renderMobileCard,
375
+ mobileBreakpoint = "sm"
376
+ }) {
370
377
  // WCAG 1.3.1 / 4.1.2 — dev guard: warn once on mount when no contextual
371
378
  // table name has been provided by the caller.
372
- useAriaLabelWarn(ariaLabel, labels === null || labels === void 0 ? void 0 : labels.tableAria);
373
- var L = React.useMemo(function () {
374
- return (0, _dataGridShared.mergeLabels)(labels);
375
- }, [labels]);
376
- var tableAria = ariaLabel != null ? ariaLabel : L.tableAria;
377
- var showSkeleton = (0, _useDelayedFlag["default"])(loading);
379
+ useAriaLabelWarn(ariaLabel, labels?.tableAria);
380
+ const L = React.useMemo(() => (0, _dataGridShared.mergeLabels)(labels), [labels]);
381
+ const tableAria = ariaLabel != null ? ariaLabel : L.tableAria;
382
+ const showSkeleton = (0, _useDelayedFlag.default)(loading);
378
383
  (0, _dataGridShared.useColumnsStabilityWarn)(rawColumns);
379
384
 
380
385
  // R1 mobile — detect xs viewport. Switch to card view only when the host
381
386
  // opted in by passing renderMobileCard.
382
- var theme = (0, _styles.useTheme)();
383
- var isBelowBreakpoint = (0, _useMediaQuery["default"])(theme.breakpoints.down(mobileBreakpoint));
384
- var useCardView = isBelowBreakpoint && typeof renderMobileCard === "function";
385
- var orderedColumns = React.useMemo(function () {
386
- return (0, _dataGridShared.applyColumnOrder)(rawColumns, columnOrder);
387
- }, [rawColumns, columnOrder]);
388
- var hiddenSet = React.useMemo(function () {
389
- return hiddenColumns instanceof Set ? hiddenColumns : new Set(hiddenColumns || []);
390
- }, [hiddenColumns]);
391
- var columns = React.useMemo(function () {
392
- return orderedColumns.filter(function (c) {
393
- return !hiddenSet.has(c.key);
394
- });
395
- }, [orderedColumns, hiddenSet]);
396
- var resize = (0, _useColumnResize["default"])(columnWidths, onColumnWidthsChange);
397
- var reorder = (0, _useColumnReorder["default"])(columns, columnOrder, onColumnOrderChange, {
387
+ const theme = (0, _styles.useTheme)();
388
+ const isBelowBreakpoint = (0, _useMediaQuery.default)(theme.breakpoints.down(mobileBreakpoint));
389
+ const useCardView = isBelowBreakpoint && typeof renderMobileCard === "function";
390
+ const orderedColumns = React.useMemo(() => (0, _dataGridShared.applyColumnOrder)(rawColumns, columnOrder), [rawColumns, columnOrder]);
391
+ const hiddenSet = React.useMemo(() => hiddenColumns instanceof Set ? hiddenColumns : new Set(hiddenColumns || []), [hiddenColumns]);
392
+ const columns = React.useMemo(() => orderedColumns.filter(c => !hiddenSet.has(c.key)), [orderedColumns, hiddenSet]);
393
+ const resize = (0, _useColumnResize.default)(columnWidths, onColumnWidthsChange);
394
+ const reorder = (0, _useColumnReorder.default)(columns, columnOrder, onColumnOrderChange, {
398
395
  resizeIsActive: resize.isResizing
399
396
  });
400
397
 
401
398
  // DG-R1 — after a keyboard reorder the moved column's grip is re-rendered at
402
399
  // a new position and the browser drops focus; re-focus it so repeated Arrow
403
400
  // presses keep moving the same column. Keyed on the host-controlled order.
404
- var pendingReorderFocusRef = React.useRef(null);
405
- React.useEffect(function () {
406
- var key = pendingReorderFocusRef.current;
401
+ const pendingReorderFocusRef = React.useRef(null);
402
+ React.useEffect(() => {
403
+ const key = pendingReorderFocusRef.current;
407
404
  if (!key || typeof document === "undefined") return;
408
405
  pendingReorderFocusRef.current = null;
409
- var escaped = typeof window !== "undefined" && window.CSS && typeof window.CSS.escape === "function" ? window.CSS.escape(key) : key;
410
- var el = document.querySelector("[data-reorder-grip=\"".concat(escaped, "\"]"));
406
+ const escaped = typeof window !== "undefined" && window.CSS && typeof window.CSS.escape === "function" ? window.CSS.escape(key) : key;
407
+ const el = document.querySelector(`[data-reorder-grip="${escaped}"]`);
411
408
  if (el instanceof HTMLElement) el.focus();
412
409
  }, [columnOrder]);
413
- var showCheckbox = !!onSelectionChange;
414
- var hasRowActions = typeof rowActions === "function";
415
- var colCount = columns.length + (showCheckbox ? 1 : 0) + 1 + (hasRowActions ? 1 : 0);
416
- var sortable = function sortable(col) {
417
- return col.sortable !== false && !!col.key && !!onSortChange;
418
- };
419
- var selectedSet = React.useMemo(function () {
420
- return selection instanceof Set ? selection : new Set(selection || []);
421
- }, [selection]);
422
- var allSelected = rows.length > 0 && rows.every(function (r) {
423
- return selectedSet.has(getRowId(r));
424
- });
425
- var someSelected = !allSelected && rows.some(function (r) {
426
- return selectedSet.has(getRowId(r));
427
- });
428
- var toggleAll = function toggleAll() {
410
+ const showCheckbox = !!onSelectionChange;
411
+ const hasRowActions = typeof rowActions === "function";
412
+ const colCount = columns.length + (showCheckbox ? 1 : 0) + 1 + (hasRowActions ? 1 : 0);
413
+ const sortable = col => col.sortable !== false && !!col.key && !!onSortChange;
414
+ const selectedSet = React.useMemo(() => selection instanceof Set ? selection : new Set(selection || []), [selection]);
415
+ const allSelected = rows.length > 0 && rows.every(r => selectedSet.has(getRowId(r)));
416
+ const someSelected = !allSelected && rows.some(r => selectedSet.has(getRowId(r)));
417
+ const toggleAll = () => {
429
418
  if (!onSelectionChange) return;
430
419
  if (allSelected) onSelectionChange(new Set());else onSelectionChange(new Set(rows.map(getRowId)));
431
420
  };
432
- var toggleRow = function toggleRow(id) {
421
+ const toggleRow = id => {
433
422
  if (!onSelectionChange) return;
434
- var next = new Set(selectedSet);
435
- if (next.has(id)) next["delete"](id);else next.add(id);
423
+ const next = new Set(selectedSet);
424
+ if (next.has(id)) next.delete(id);else next.add(id);
436
425
  onSelectionChange(next);
437
426
  };
438
- var handleRowKeyDown = function handleRowKeyDown(row) {
439
- return function (e) {
440
- if (!onRowClick) return;
441
- if (e.key === "Enter" || e.key === " ") {
442
- e.preventDefault();
443
- onRowClick(row);
444
- }
445
- };
427
+ const handleRowKeyDown = row => e => {
428
+ if (!onRowClick) return;
429
+ if (e.key === "Enter" || e.key === " ") {
430
+ e.preventDefault();
431
+ onRowClick(row);
432
+ }
446
433
  };
447
- var scrollContainerSx = React.useMemo(function () {
448
- return {
449
- overflow: "auto",
450
- maxHeight: maxBodyHeight,
451
- width: "100%"
452
- };
453
- }, [maxBodyHeight]);
434
+ const scrollContainerSx = React.useMemo(() => ({
435
+ overflow: "auto",
436
+ maxHeight: maxBodyHeight,
437
+ width: "100%"
438
+ }), [maxBodyHeight]);
454
439
 
455
440
  /* R2 — Computed table min-width. Each column's contribution is clamped
456
441
  * to COL_MINWIDTH_CAP; unsized columns contribute UNSIZED_COL_MIN_DEFAULT;
457
442
  * the checkbox column adds ~48px. The rowActions cell contributes 0. */
458
- var tableMinWidth = React.useMemo(function () {
459
- var sum = 0;
460
- var _iterator = _createForOfIteratorHelper(columns),
461
- _step;
462
- try {
463
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
464
- var col = _step.value;
465
- var w = widthToNumber(col.width);
466
- var contribution = w > 0 ? Math.min(w, COL_MINWIDTH_CAP) : UNSIZED_COL_MIN_DEFAULT;
467
- sum += contribution;
468
- }
469
- } catch (err) {
470
- _iterator.e(err);
471
- } finally {
472
- _iterator.f();
443
+ const tableMinWidth = React.useMemo(() => {
444
+ let sum = 0;
445
+ for (const col of columns) {
446
+ const w = widthToNumber(col.width);
447
+ const contribution = w > 0 ? Math.min(w, COL_MINWIDTH_CAP) : UNSIZED_COL_MIN_DEFAULT;
448
+ sum += contribution;
473
449
  }
474
450
  if (showCheckbox) sum += 48;
475
451
  return sum;
@@ -478,13 +454,12 @@ function DataGrid(_ref) {
478
454
  // R2 — tableLayout:"auto" + computed minWidth. (SxProps-typed so the
479
455
  // tableLayout literal stays typed; the density base is narrowed to a
480
456
  // SystemStyleObject at the spread to avoid the fn/array arms of SxProps.)
481
- var tableSx = React.useMemo(function () {
482
- return _objectSpread(_objectSpread({}, _dataGridShared.TABLE_BY_DENSITY[density] || _dataGridShared.TABLE_BY_DENSITY.comfortable), {}, {
483
- width: "100%",
484
- minWidth: tableMinWidth,
485
- tableLayout: "auto"
486
- });
487
- }, [density, tableMinWidth]);
457
+ const tableSx = React.useMemo(() => ({
458
+ ...(_dataGridShared.TABLE_BY_DENSITY[density] || _dataGridShared.TABLE_BY_DENSITY.comfortable),
459
+ width: "100%",
460
+ minWidth: tableMinWidth,
461
+ tableLayout: "auto"
462
+ }), [density, tableMinWidth]);
488
463
 
489
464
  /* DG-1 (perf) — the desktop body renders EVERY row (no virtualization), so
490
465
  * building the cell sx inline per row × per column allocated N×M fresh style
@@ -495,37 +470,34 @@ function DataGrid(_ref) {
495
470
  * widths (the latter only changes during an active resize drag).
496
471
  * --text-body (14px) is the explicit inheritance that replaced a dangling
497
472
  * `var(--text-fs)` token typo (no fallback). */
498
- var columnCellSx = React.useMemo(function () {
499
- var byKey = new Map();
500
- var _iterator2 = _createForOfIteratorHelper(columns),
501
- _step2;
502
- try {
503
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
504
- var _ref2;
505
- var col = _step2.value;
506
- var effectiveWidth = (_ref2 = resize.liveWidths && resize.liveWidths[col.key]) !== null && _ref2 !== void 0 ? _ref2 : col.width;
507
- byKey.set(col.key, _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
508
- fontSize: "var(--text-body)",
509
- whiteSpace: col.wrap ? "normal" : "nowrap",
510
- overflow: "hidden",
511
- textOverflow: "ellipsis"
512
- }, col.mono ? {
473
+ const columnCellSx = React.useMemo(() => {
474
+ const byKey = new Map();
475
+ for (const col of columns) {
476
+ const effectiveWidth = (resize.liveWidths && resize.liveWidths[col.key]) ?? col.width;
477
+ byKey.set(col.key, {
478
+ fontSize: "var(--text-body)",
479
+ whiteSpace: col.wrap ? "normal" : "nowrap",
480
+ overflow: "hidden",
481
+ textOverflow: "ellipsis",
482
+ ...(col.mono ? {
513
483
  fontFamily: "var(--font-mono)"
514
- } : {}), col.numeric || col.mono ? {
484
+ } : {}),
485
+ ...(col.numeric || col.mono ? {
515
486
  fontVariantNumeric: "tabular-nums"
516
- } : {}), effectiveWidth != null ? {
487
+ } : {}),
488
+ ...(effectiveWidth != null ? {
517
489
  width: effectiveWidth
518
- } : {}), col.wrap ? {
490
+ } : {}),
491
+ // When a column wraps, allow long unbroken tokens to break.
492
+ ...(col.wrap ? {
519
493
  overflowWrap: "anywhere",
520
494
  wordBreak: "break-word"
521
- } : {}), col.maxWidth != null ? {
495
+ } : {}),
496
+ ...(col.maxWidth != null ? {
522
497
  maxWidth: col.maxWidth
523
- } : {}), col.hoverOnly ? _dataGridShared.HOVER_ONLY_CELL_SX : {}));
524
- }
525
- } catch (err) {
526
- _iterator2.e(err);
527
- } finally {
528
- _iterator2.f();
498
+ } : {}),
499
+ ...(col.hoverOnly ? _dataGridShared.HOVER_ONLY_CELL_SX : {})
500
+ });
529
501
  }
530
502
  return byKey;
531
503
  }, [columns, resize.liveWidths]);
@@ -533,59 +505,55 @@ function DataGrid(_ref) {
533
505
  /* ── Mobile card view body (R1 mobile) ─────────────────────────
534
506
  * Built only when useCardView is true. `renderCard` is the narrowed,
535
507
  * guaranteed-present renderer passed in from the return site. */
536
- var renderCardBody = function renderCardBody(renderCard) {
508
+ const renderCardBody = renderCard => {
537
509
  if (showSkeleton) {
538
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
510
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
539
511
  role: "list",
540
512
  "aria-busy": "true",
541
513
  "aria-label": tableAria,
542
514
  sx: CARD_STACK_SX,
543
515
  children: Array.from({
544
516
  length: 6
545
- }, function (_, i) {
546
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
547
- "aria-hidden": "true",
548
- sx: CARD_SKELETON_SX
549
- }, "sk-".concat(i));
550
- })
517
+ }, (_, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
518
+ "aria-hidden": "true",
519
+ sx: CARD_SKELETON_SX
520
+ }, `sk-${i}`))
551
521
  });
552
522
  }
553
523
  if (error) {
554
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
524
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
555
525
  sx: CARD_EMPTY_WRAPPER_SX,
556
526
  children: errorState
557
527
  });
558
528
  }
559
529
  if (rows.length === 0) {
560
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
530
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
561
531
  sx: CARD_EMPTY_WRAPPER_SX,
562
532
  children: filtered ? filteredEmptyState : emptyState
563
533
  });
564
534
  }
565
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
535
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
566
536
  role: "list",
567
537
  "aria-label": tableAria,
568
538
  "aria-busy": loading || undefined,
569
539
  sx: CARD_STACK_SX,
570
- children: rows.map(function (row) {
571
- var id = getRowId(row);
572
- var isSelected = selectedSet.has(id);
573
- var isActive = activeRowId !== undefined && activeRowId !== null && id === activeRowId;
574
- var flash = rowFlashId === id;
575
- var clickable = !!onRowClick;
576
- var ctx = {
577
- isActive: isActive,
578
- isSelected: isSelected
540
+ children: rows.map(row => {
541
+ const id = getRowId(row);
542
+ const isSelected = selectedSet.has(id);
543
+ const isActive = activeRowId !== undefined && activeRowId !== null && id === activeRowId;
544
+ const flash = rowFlashId === id;
545
+ const clickable = !!onRowClick;
546
+ const ctx = {
547
+ isActive,
548
+ isSelected
579
549
  };
580
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
550
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
581
551
  role: clickable ? "button" : "listitem",
582
552
  tabIndex: clickable ? 0 : undefined,
583
553
  "data-selected": isSelected || undefined,
584
554
  "data-active": isActive || undefined,
585
555
  className: flash ? "pui-row-updated" : undefined,
586
- onClick: clickable ? function () {
587
- return onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(row);
588
- } : undefined,
556
+ onClick: clickable ? () => onRowClick?.(row) : undefined,
589
557
  onKeyDown: clickable ? handleRowKeyDown(row) : undefined,
590
558
  sx: clickable ? CARD_CLICKABLE_SX : CARD_BASE_SX,
591
559
  children: renderCard(row, ctx)
@@ -595,27 +563,25 @@ function DataGrid(_ref) {
595
563
  };
596
564
 
597
565
  /* ── Table body (desktop / no card opt-in) ─────────────────── */
598
- var body;
566
+ let body;
599
567
  if (showSkeleton) {
600
- body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableBody["default"], {
568
+ body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableBody.default, {
601
569
  "aria-busy": "true",
602
570
  children: Array.from({
603
571
  length: 6
604
- }, function (_, i) {
605
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.SkeletonRow, {
606
- cols: columns.length,
607
- withCheckbox: showCheckbox,
608
- withActions: hasRowActions
609
- }, "sk-".concat(i));
610
- })
572
+ }, (_, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.SkeletonRow, {
573
+ cols: columns.length,
574
+ withCheckbox: showCheckbox,
575
+ withActions: hasRowActions
576
+ }, `sk-${i}`))
611
577
  });
612
578
  } else if (error) {
613
- body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableBody["default"], {
614
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableRow["default"], {
615
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell["default"], {
579
+ body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableBody.default, {
580
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableRow.default, {
581
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell.default, {
616
582
  colSpan: colCount,
617
583
  sx: _dataGridShared.ERROR_CELL_SX,
618
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
584
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
619
585
  sx: _dataGridShared.ERROR_INNER_SX,
620
586
  children: errorState
621
587
  })
@@ -623,13 +589,13 @@ function DataGrid(_ref) {
623
589
  })
624
590
  });
625
591
  } else if (rows.length === 0) {
626
- body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableBody["default"], {
592
+ body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableBody.default, {
627
593
  "aria-busy": loading || undefined,
628
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableRow["default"], {
629
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell["default"], {
594
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableRow.default, {
595
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell.default, {
630
596
  colSpan: colCount,
631
597
  sx: _dataGridShared.ERROR_CELL_SX,
632
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
598
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
633
599
  sx: _dataGridShared.ERROR_INNER_SX,
634
600
  children: filtered ? filteredEmptyState : emptyState
635
601
  })
@@ -637,61 +603,58 @@ function DataGrid(_ref) {
637
603
  })
638
604
  });
639
605
  } else {
640
- body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableBody["default"], {
606
+ body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableBody.default, {
641
607
  "aria-busy": loading || undefined,
642
- children: rows.map(function (row) {
643
- var id = getRowId(row);
644
- var isSelected = selectedSet.has(id);
645
- var isActive = activeRowId !== undefined && activeRowId !== null && id === activeRowId;
646
- var flash = rowFlashId === id;
647
- var clickable = !!onRowClick;
648
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableRow["default"], {
608
+ children: rows.map(row => {
609
+ const id = getRowId(row);
610
+ const isSelected = selectedSet.has(id);
611
+ const isActive = activeRowId !== undefined && activeRowId !== null && id === activeRowId;
612
+ const flash = rowFlashId === id;
613
+ const clickable = !!onRowClick;
614
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableRow.default, {
649
615
  hover: true,
650
616
  "data-selected": isSelected || undefined,
651
617
  "data-active": isActive || undefined,
652
618
  className: flash ? "pui-row-updated" : undefined,
653
- onClick: clickable ? function () {
654
- return onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(row);
655
- } : undefined,
619
+ onClick: clickable ? () => onRowClick?.(row) : undefined,
656
620
  onKeyDown: clickable ? handleRowKeyDown(row) : undefined,
657
621
  tabIndex: clickable ? 0 : undefined,
658
622
  sx: clickable ? _dataGridShared.ROW_CLICKABLE_SX : _dataGridShared.ROW_STATIC_SX,
659
- children: [showCheckbox && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell["default"], {
623
+ children: [showCheckbox && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell.default, {
660
624
  padding: "checkbox",
661
625
  sx: _dataGridShared.BODY_CHECKBOX_CELL_SX,
662
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox["default"], {
626
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox.default, {
663
627
  size: "small",
664
628
  checked: isSelected,
665
- onChange: function onChange(e) {
629
+ onChange: e => {
666
630
  e.stopPropagation();
667
631
  toggleRow(id);
668
632
  },
669
- onClick: function onClick(e) {
670
- return e.stopPropagation();
671
- },
672
- onKeyDown: function onKeyDown(e) {
673
- return e.stopPropagation();
674
- },
633
+ onClick: e => e.stopPropagation(),
634
+ onKeyDown: e => e.stopPropagation(),
675
635
  slotProps: {
676
636
  input: {
677
637
  "aria-label": L.selectRow(id)
678
638
  }
679
639
  }
680
640
  })
681
- }), columns.map(function (col) {
682
- var _ref3;
683
- var value = col.getValue ? col.getValue(row) : readCellValue(row, col.key);
684
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell["default"], {
641
+ }), columns.map(col => {
642
+ const value = col.getValue ? col.getValue(row) : readCellValue(row, col.key);
643
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell.default, {
685
644
  align: col.align || (col.numeric ? "right" : "left"),
686
645
  sx: columnCellSx.get(col.key),
687
- children: col.render ? col.render(row) : (_ref3 = value) !== null && _ref3 !== void 0 ? _ref3 : "—"
646
+ children: col.render ? col.render(row) : value ?? "—"
688
647
  }, col.key);
689
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell["default"], {
648
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell.default, {
690
649
  sx: FILLER_CELL_SX,
691
650
  "aria-hidden": "true"
692
- }), hasRowActions && rowActions && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell["default"], {
693
- sx: ROW_ACTIONS_CELL_SX,
694
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
651
+ }), hasRowActions && rowActions && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell.default, {
652
+ sx: ROW_ACTIONS_CELL_SX
653
+ /* See the note at ROW_ACTIONS_CELL_SX: an action must not
654
+ * also fire the row click. Mirrors the checkbox cell. */,
655
+ onClick: e => e.stopPropagation(),
656
+ onKeyDown: e => e.stopPropagation(),
657
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
695
658
  sx: ROW_ACTIONS_OVERLAY_SX,
696
659
  children: rowActions(row)
697
660
  })
@@ -700,21 +663,21 @@ function DataGrid(_ref) {
700
663
  })
701
664
  });
702
665
  }
703
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box["default"], {
666
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
704
667
  sx: _dataGridShared.CONTAINER_SX,
705
- children: [useCardView && renderMobileCard ? renderCardBody(renderMobileCard) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
668
+ children: [useCardView && renderMobileCard ? renderCardBody(renderMobileCard) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
706
669
  sx: scrollContainerSx,
707
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Table["default"], {
670
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Table.default, {
708
671
  "aria-label": tableAria,
709
672
  size: density === "compact" ? "small" : "medium",
710
673
  stickyHeader: true,
711
674
  sx: tableSx,
712
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TableHead["default"], {
713
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableRow["default"], {
714
- children: [showCheckbox && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell["default"], {
675
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TableHead.default, {
676
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableRow.default, {
677
+ children: [showCheckbox && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell.default, {
715
678
  padding: "checkbox",
716
679
  sx: _dataGridShared.HEADER_CHECKBOX_CELL_SX,
717
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox["default"], {
680
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox.default, {
718
681
  size: "small",
719
682
  checked: allSelected,
720
683
  indeterminate: someSelected,
@@ -725,51 +688,52 @@ function DataGrid(_ref) {
725
688
  }
726
689
  }
727
690
  })
728
- }), columns.map(function (col) {
729
- var _ref4;
730
- var isSortable = sortable(col);
731
- var isResizable = resizable && col.resizable !== false;
732
- var isReorderable = reorderable && col.reorderable !== false;
733
- var ariaSort = isSortable ? (0, _SortableHeader.getAriaSort)(sort, col.key) : undefined;
734
- var effectiveWidth = (_ref4 = resize.liveWidths && resize.liveWidths[col.key]) !== null && _ref4 !== void 0 ? _ref4 : col.width;
735
- var reorderHandlers = isReorderable ? reorder.cellHandlers(col.key) : null;
736
- var reorderFeedbackSx = isReorderable ? reorder.cellSx(col.key) : undefined;
737
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableCell["default"], _objectSpread(_objectSpread({
691
+ }), columns.map(col => {
692
+ const isSortable = sortable(col);
693
+ const isResizable = resizable && col.resizable !== false;
694
+ const isReorderable = reorderable && col.reorderable !== false;
695
+ const ariaSort = isSortable ? (0, _SortableHeader.getAriaSort)(sort, col.key) : undefined;
696
+ const effectiveWidth = (resize.liveWidths && resize.liveWidths[col.key]) ?? col.width;
697
+ const reorderHandlers = isReorderable ? reorder.cellHandlers(col.key) : null;
698
+ const reorderFeedbackSx = isReorderable ? reorder.cellSx(col.key) : undefined;
699
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableCell.default, {
738
700
  align: col.align || (col.numeric ? "right" : "left"),
739
- "aria-sort": ariaSort
740
- }, reorderHandlers || {}), {}, {
741
- sx: _objectSpread(_objectSpread({
701
+ "aria-sort": ariaSort,
702
+ ...(reorderHandlers || {}),
703
+ sx: {
742
704
  position: "sticky",
743
705
  top: 0,
744
- zIndex: 1
745
- }, effectiveWidth != null ? {
746
- width: effectiveWidth
747
- } : {}), reorderFeedbackSx ? reorderFeedbackSx : {}),
748
- children: [isSortable && onSortChange ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SortableHeader["default"], {
706
+ zIndex: 1,
707
+ ...(effectiveWidth != null ? {
708
+ width: effectiveWidth
709
+ } : {}),
710
+ ...(reorderFeedbackSx ? reorderFeedbackSx : {})
711
+ },
712
+ children: [isSortable && onSortChange ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SortableHeader.default, {
749
713
  sortKey: col.key,
750
714
  sort: sort,
751
715
  setSort: onSortChange,
752
716
  align: col.align || (col.numeric ? "right" : "left"),
753
717
  children: col.header
754
- }) : col.header, isReorderable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
718
+ }) : col.header, isReorderable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
755
719
  component: "button",
756
720
  type: "button",
757
721
  "data-reorder-grip": col.key,
758
722
  "aria-label": "R\xE9organiser la colonne",
759
723
  "aria-keyshortcuts": "ArrowLeft ArrowRight Home End",
760
- onKeyDown: function onKeyDown(e) {
724
+ onKeyDown: e => {
761
725
  if (e.key === "ArrowLeft" || e.key === "ArrowRight" || e.key === "Home" || e.key === "End") {
762
726
  pendingReorderFocusRef.current = col.key;
763
727
  }
764
728
  reorder.handleKeyDown(col.key)(e);
765
729
  },
766
730
  sx: REORDER_GRIP_SX,
767
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DragIndicator["default"], {
731
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DragIndicator.default, {
768
732
  sx: {
769
733
  fontSize: 14
770
734
  }
771
735
  })
772
- }), isResizable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
736
+ }), isResizable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
773
737
  role: "separator",
774
738
  "aria-orientation": "vertical",
775
739
  "aria-label": "Redimensionner la colonne",
@@ -802,8 +766,8 @@ function DataGrid(_ref) {
802
766
  }
803
767
  }
804
768
  })]
805
- }), col.key);
806
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell["default"], {
769
+ }, col.key);
770
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableCell.default, {
807
771
  sx: FILLER_HEAD_CELL_SX,
808
772
  "aria-hidden": "true"
809
773
  }), hasRowActions &&
@@ -811,10 +775,10 @@ function DataGrid(_ref) {
811
775
  /* WCAG 1.3.1 / axe-core `empty-table-header` — the
812
776
  visually-hidden span names the actions column in the
813
777
  a11y tree. Label from labels.actionsHeader. */
814
- (0, _jsxRuntime.jsx)(_TableCell["default"], {
778
+ (0, _jsxRuntime.jsx)(_TableCell.default, {
815
779
  sx: ROW_ACTIONS_HEAD_CELL_SX,
816
780
  scope: "col",
817
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
781
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
818
782
  component: "span",
819
783
  sx: VISUALLY_HIDDEN_SX,
820
784
  children: L.actionsHeader
@@ -823,12 +787,13 @@ function DataGrid(_ref) {
823
787
  })
824
788
  }), body]
825
789
  })
826
- }), pagination && /*#__PURE__*/(0, _jsxRuntime.jsx)(_dataGridShared.Pagination, _objectSpread(_objectSpread({}, pagination), {}, {
790
+ }), pagination && /*#__PURE__*/(0, _jsxRuntime.jsx)(_dataGridShared.Pagination, {
791
+ ...pagination,
827
792
  loading: loading,
828
793
  locale: locale,
829
794
  labels: L.pagination
830
- }))]
795
+ })]
831
796
  });
832
797
  }
833
- var _default = exports["default"] = DataGrid;
798
+ var _default = exports.default = DataGrid;
834
799
  //# sourceMappingURL=DataGrid.js.map