@fluentui/react-table 9.2.0 → 9.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (757) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +145 -1
  3. package/CHANGELOG.md +39 -2
  4. package/lib/DataGrid.js.map +1 -1
  5. package/lib/DataGridBody.js.map +1 -1
  6. package/lib/DataGridCell.js.map +1 -1
  7. package/lib/DataGridHeader.js.map +1 -1
  8. package/lib/DataGridHeaderCell.js.map +1 -1
  9. package/lib/DataGridRow.js.map +1 -1
  10. package/lib/DataGridSelectionCell.js.map +1 -1
  11. package/lib/Table.js.map +1 -1
  12. package/lib/TableBody.js.map +1 -1
  13. package/lib/TableCell.js.map +1 -1
  14. package/lib/TableCellActions.js.map +1 -1
  15. package/lib/TableCellLayout.js.map +1 -1
  16. package/lib/TableCellPrimaryLayout.js.map +1 -1
  17. package/lib/TableHeader.js.map +1 -1
  18. package/lib/TableHeaderCell.js.map +1 -1
  19. package/lib/TableResizeHandle.js.map +1 -1
  20. package/lib/TableRow.js.map +1 -1
  21. package/lib/TableSelectionCell.js.map +1 -1
  22. package/lib/components/DataGrid/DataGrid.js.map +1 -1
  23. package/lib/components/DataGrid/DataGrid.types.js +1 -1
  24. package/lib/components/DataGrid/DataGrid.types.js.map +1 -1
  25. package/lib/components/DataGrid/index.js.map +1 -1
  26. package/lib/components/DataGrid/renderDataGrid.js.map +1 -1
  27. package/lib/components/DataGrid/useDataGrid.js +6 -4
  28. package/lib/components/DataGrid/useDataGrid.js.map +1 -1
  29. package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -1
  30. package/lib/components/DataGrid/useDataGridStyles.js.map +1 -1
  31. package/lib/components/DataGridBody/DataGridBody.js.map +1 -1
  32. package/lib/components/DataGridBody/DataGridBody.types.js +1 -1
  33. package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -1
  34. package/lib/components/DataGridBody/index.js.map +1 -1
  35. package/lib/components/DataGridBody/renderDataGridBody.js +1 -3
  36. package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -1
  37. package/lib/components/DataGridBody/useDataGridBody.js +1 -0
  38. package/lib/components/DataGridBody/useDataGridBody.js.map +1 -1
  39. package/lib/components/DataGridBody/useDataGridBodyStyles.js.map +1 -1
  40. package/lib/components/DataGridCell/DataGridCell.js.map +1 -1
  41. package/lib/components/DataGridCell/DataGridCell.types.js.map +1 -1
  42. package/lib/components/DataGridCell/index.js.map +1 -1
  43. package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -1
  44. package/lib/components/DataGridCell/useDataGridCell.js +1 -0
  45. package/lib/components/DataGridCell/useDataGridCell.js.map +1 -1
  46. package/lib/components/DataGridCell/useDataGridCellStyles.js.map +1 -1
  47. package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -1
  48. package/lib/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
  49. package/lib/components/DataGridHeader/index.js.map +1 -1
  50. package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  51. package/lib/components/DataGridHeader/useDataGridHeader.js +1 -0
  52. package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  53. package/lib/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -1
  54. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  55. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
  56. package/lib/components/DataGridHeaderCell/index.js.map +1 -1
  57. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  58. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js +3 -2
  59. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  60. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -1
  61. package/lib/components/DataGridRow/DataGridRow.js.map +1 -1
  62. package/lib/components/DataGridRow/DataGridRow.types.js +1 -1
  63. package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -1
  64. package/lib/components/DataGridRow/index.js.map +1 -1
  65. package/lib/components/DataGridRow/renderDataGridRow.js +1 -5
  66. package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -1
  67. package/lib/components/DataGridRow/useDataGridRow.js +5 -4
  68. package/lib/components/DataGridRow/useDataGridRow.js.map +1 -1
  69. package/lib/components/DataGridRow/useDataGridRowStyles.js.map +1 -1
  70. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  71. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
  72. package/lib/components/DataGridSelectionCell/index.js.map +1 -1
  73. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  74. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js +3 -2
  75. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  76. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -1
  77. package/lib/components/Table/Table.js.map +1 -1
  78. package/lib/components/Table/Table.types.js.map +1 -1
  79. package/lib/components/Table/index.js.map +1 -1
  80. package/lib/components/Table/renderTable.js +1 -3
  81. package/lib/components/Table/renderTable.js.map +1 -1
  82. package/lib/components/Table/useTable.js +7 -5
  83. package/lib/components/Table/useTable.js.map +1 -1
  84. package/lib/components/Table/useTableContextValues.js.map +1 -1
  85. package/lib/components/Table/useTableStyles.js.map +1 -1
  86. package/lib/components/TableBody/TableBody.js.map +1 -1
  87. package/lib/components/TableBody/TableBody.types.js.map +1 -1
  88. package/lib/components/TableBody/index.js.map +1 -1
  89. package/lib/components/TableBody/renderTableBody.js +1 -3
  90. package/lib/components/TableBody/renderTableBody.js.map +1 -1
  91. package/lib/components/TableBody/useTableBody.js +3 -2
  92. package/lib/components/TableBody/useTableBody.js.map +1 -1
  93. package/lib/components/TableBody/useTableBodyStyles.js.map +1 -1
  94. package/lib/components/TableCell/TableCell.js.map +1 -1
  95. package/lib/components/TableCell/TableCell.types.js.map +1 -1
  96. package/lib/components/TableCell/index.js.map +1 -1
  97. package/lib/components/TableCell/renderTableCell.js +1 -3
  98. package/lib/components/TableCell/renderTableCell.js.map +1 -1
  99. package/lib/components/TableCell/useTableCell.js +3 -2
  100. package/lib/components/TableCell/useTableCell.js.map +1 -1
  101. package/lib/components/TableCell/useTableCellStyles.js.map +1 -1
  102. package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
  103. package/lib/components/TableCellActions/TableCellActions.types.js.map +1 -1
  104. package/lib/components/TableCellActions/index.js.map +1 -1
  105. package/lib/components/TableCellActions/renderTableCellActions.js +1 -3
  106. package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
  107. package/lib/components/TableCellActions/useTableCellActions.js +3 -2
  108. package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
  109. package/lib/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
  110. package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
  111. package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  112. package/lib/components/TableCellLayout/index.js.map +1 -1
  113. package/lib/components/TableCellLayout/renderTableCellLayout.js +2 -12
  114. package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  115. package/lib/components/TableCellLayout/useTableCellLayout.js +1 -0
  116. package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  117. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  118. package/lib/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
  119. package/lib/components/TableHeader/TableHeader.js.map +1 -1
  120. package/lib/components/TableHeader/TableHeader.types.js.map +1 -1
  121. package/lib/components/TableHeader/index.js.map +1 -1
  122. package/lib/components/TableHeader/renderTableHeader.js +1 -3
  123. package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
  124. package/lib/components/TableHeader/useTableHeader.js +3 -2
  125. package/lib/components/TableHeader/useTableHeader.js.map +1 -1
  126. package/lib/components/TableHeader/useTableHeaderStyles.js.map +1 -1
  127. package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  128. package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  129. package/lib/components/TableHeaderCell/index.js.map +1 -1
  130. package/lib/components/TableHeaderCell/renderTableHeaderCell.js +1 -9
  131. package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  132. package/lib/components/TableHeaderCell/useTableHeaderCell.js +4 -3
  133. package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  134. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
  135. package/lib/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  136. package/lib/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
  137. package/lib/components/TableResizeHandle/index.js.map +1 -1
  138. package/lib/components/TableResizeHandle/renderTableResizeHandle.js +1 -3
  139. package/lib/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  140. package/lib/components/TableResizeHandle/useTableResizeHandle.js +3 -2
  141. package/lib/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  142. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.js +0 -2
  143. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.js.map +1 -1
  144. package/lib/components/TableRow/TableRow.js.map +1 -1
  145. package/lib/components/TableRow/TableRow.types.js.map +1 -1
  146. package/lib/components/TableRow/index.js.map +1 -1
  147. package/lib/components/TableRow/renderTableRow.js +1 -3
  148. package/lib/components/TableRow/renderTableRow.js.map +1 -1
  149. package/lib/components/TableRow/useTableRow.js +5 -3
  150. package/lib/components/TableRow/useTableRow.js.map +1 -1
  151. package/lib/components/TableRow/useTableRowStyles.js.map +1 -1
  152. package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  153. package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  154. package/lib/components/TableSelectionCell/index.js.map +1 -1
  155. package/lib/components/TableSelectionCell/renderTableSelectionCell.js +1 -7
  156. package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  157. package/lib/components/TableSelectionCell/useTableSelectionCell.js +1 -0
  158. package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  159. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
  160. package/lib/contexts/columnIdContext.js +2 -4
  161. package/lib/contexts/columnIdContext.js.map +1 -1
  162. package/lib/contexts/dataGridContext.js.map +1 -1
  163. package/lib/contexts/rowIdContext.js +2 -4
  164. package/lib/contexts/rowIdContext.js.map +1 -1
  165. package/lib/contexts/tableContext.js +2 -4
  166. package/lib/contexts/tableContext.js.map +1 -1
  167. package/lib/contexts/tableHeaderContext.js.map +1 -1
  168. package/lib/hooks/createColumn.js.map +1 -1
  169. package/lib/hooks/index.js.map +1 -1
  170. package/lib/hooks/selectionManager.js +1 -0
  171. package/lib/hooks/selectionManager.js.map +1 -1
  172. package/lib/hooks/types.js +1 -1
  173. package/lib/hooks/types.js.map +1 -1
  174. package/lib/hooks/useKeyboardResizing.js +15 -12
  175. package/lib/hooks/useKeyboardResizing.js.map +1 -1
  176. package/lib/hooks/useMeasureElement.js +5 -3
  177. package/lib/hooks/useMeasureElement.js.map +1 -1
  178. package/lib/hooks/useTableColumnResizeMouseHandler.js +19 -17
  179. package/lib/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  180. package/lib/hooks/useTableColumnResizeState.js.map +1 -1
  181. package/lib/hooks/useTableColumnSizing.js.map +1 -1
  182. package/lib/hooks/useTableFeatures.js +8 -6
  183. package/lib/hooks/useTableFeatures.js.map +1 -1
  184. package/lib/hooks/useTableSelection.js +2 -2
  185. package/lib/hooks/useTableSelection.js.map +1 -1
  186. package/lib/hooks/useTableSort.js +1 -0
  187. package/lib/hooks/useTableSort.js.map +1 -1
  188. package/lib/index.js.map +1 -1
  189. package/lib/utils/columnResizeUtils.js +7 -8
  190. package/lib/utils/columnResizeUtils.js.map +1 -1
  191. package/lib-commonjs/DataGrid.js +5 -4
  192. package/lib-commonjs/DataGrid.js.map +1 -1
  193. package/lib-commonjs/DataGridBody.js +5 -4
  194. package/lib-commonjs/DataGridBody.js.map +1 -1
  195. package/lib-commonjs/DataGridCell.js +5 -4
  196. package/lib-commonjs/DataGridCell.js.map +1 -1
  197. package/lib-commonjs/DataGridHeader.js +5 -4
  198. package/lib-commonjs/DataGridHeader.js.map +1 -1
  199. package/lib-commonjs/DataGridHeaderCell.js +5 -4
  200. package/lib-commonjs/DataGridHeaderCell.js.map +1 -1
  201. package/lib-commonjs/DataGridRow.js +5 -4
  202. package/lib-commonjs/DataGridRow.js.map +1 -1
  203. package/lib-commonjs/DataGridSelectionCell.js +5 -4
  204. package/lib-commonjs/DataGridSelectionCell.js.map +1 -1
  205. package/lib-commonjs/Table.js +5 -4
  206. package/lib-commonjs/Table.js.map +1 -1
  207. package/lib-commonjs/TableBody.js +5 -4
  208. package/lib-commonjs/TableBody.js.map +1 -1
  209. package/lib-commonjs/TableCell.js +5 -4
  210. package/lib-commonjs/TableCell.js.map +1 -1
  211. package/lib-commonjs/TableCellActions.js +5 -4
  212. package/lib-commonjs/TableCellActions.js.map +1 -1
  213. package/lib-commonjs/TableCellLayout.js +5 -4
  214. package/lib-commonjs/TableCellLayout.js.map +1 -1
  215. package/lib-commonjs/TableCellPrimaryLayout.js +5 -4
  216. package/lib-commonjs/TableCellPrimaryLayout.js.map +1 -1
  217. package/lib-commonjs/TableHeader.js +5 -4
  218. package/lib-commonjs/TableHeader.js.map +1 -1
  219. package/lib-commonjs/TableHeaderCell.js +5 -4
  220. package/lib-commonjs/TableHeaderCell.js.map +1 -1
  221. package/lib-commonjs/TableResizeHandle.js +5 -4
  222. package/lib-commonjs/TableResizeHandle.js.map +1 -1
  223. package/lib-commonjs/TableRow.js +5 -4
  224. package/lib-commonjs/TableRow.js.map +1 -1
  225. package/lib-commonjs/TableSelectionCell.js +5 -4
  226. package/lib-commonjs/TableSelectionCell.js.map +1 -1
  227. package/lib-commonjs/components/DataGrid/DataGrid.js +20 -21
  228. package/lib-commonjs/components/DataGrid/DataGrid.js.map +1 -1
  229. package/lib-commonjs/components/DataGrid/DataGrid.types.js +5 -2
  230. package/lib-commonjs/components/DataGrid/DataGrid.types.js.map +1 -1
  231. package/lib-commonjs/components/DataGrid/index.js +10 -9
  232. package/lib-commonjs/components/DataGrid/index.js.map +1 -1
  233. package/lib-commonjs/components/DataGrid/renderDataGrid.js +15 -15
  234. package/lib-commonjs/components/DataGrid/renderDataGrid.js.map +1 -1
  235. package/lib-commonjs/components/DataGrid/useDataGrid.js +86 -106
  236. package/lib-commonjs/components/DataGrid/useDataGrid.js.map +1 -1
  237. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js +20 -18
  238. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js.map +1 -1
  239. package/lib-commonjs/components/DataGrid/useDataGridStyles.js +21 -16
  240. package/lib-commonjs/components/DataGrid/useDataGridStyles.js.map +1 -1
  241. package/lib-commonjs/components/DataGridBody/DataGridBody.js +19 -20
  242. package/lib-commonjs/components/DataGridBody/DataGridBody.js.map +1 -1
  243. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js +5 -2
  244. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js.map +1 -1
  245. package/lib-commonjs/components/DataGridBody/index.js +9 -8
  246. package/lib-commonjs/components/DataGridBody/index.js.map +1 -1
  247. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js +17 -22
  248. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js.map +1 -1
  249. package/lib-commonjs/components/DataGridBody/useDataGridBody.js +27 -34
  250. package/lib-commonjs/components/DataGridBody/useDataGridBody.js.map +1 -1
  251. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js +21 -16
  252. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js.map +1 -1
  253. package/lib-commonjs/components/DataGridCell/DataGridCell.js +19 -20
  254. package/lib-commonjs/components/DataGridCell/DataGridCell.js.map +1 -1
  255. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js +3 -2
  256. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js.map +1 -1
  257. package/lib-commonjs/components/DataGridCell/index.js +9 -8
  258. package/lib-commonjs/components/DataGridCell/index.js.map +1 -1
  259. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js +10 -11
  260. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js.map +1 -1
  261. package/lib-commonjs/components/DataGridCell/useDataGridCell.js +24 -29
  262. package/lib-commonjs/components/DataGridCell/useDataGridCell.js.map +1 -1
  263. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js +21 -16
  264. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js.map +1 -1
  265. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js +19 -20
  266. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js.map +1 -1
  267. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js +3 -2
  268. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
  269. package/lib-commonjs/components/DataGridHeader/index.js +9 -8
  270. package/lib-commonjs/components/DataGridHeader/index.js.map +1 -1
  271. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js +10 -11
  272. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  273. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js +15 -20
  274. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  275. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js +21 -16
  276. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -1
  277. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js +19 -20
  278. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  279. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js +3 -2
  280. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
  281. package/lib-commonjs/components/DataGridHeaderCell/index.js +9 -8
  282. package/lib-commonjs/components/DataGridHeaderCell/index.js.map +1 -1
  283. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js +10 -11
  284. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  285. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js +36 -43
  286. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  287. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +33 -28
  288. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -1
  289. package/lib-commonjs/components/DataGridRow/DataGridRow.js +19 -20
  290. package/lib-commonjs/components/DataGridRow/DataGridRow.js.map +1 -1
  291. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js +5 -2
  292. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js.map +1 -1
  293. package/lib-commonjs/components/DataGridRow/index.js +9 -8
  294. package/lib-commonjs/components/DataGridRow/index.js.map +1 -1
  295. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js +17 -24
  296. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js.map +1 -1
  297. package/lib-commonjs/components/DataGridRow/useDataGridRow.js +70 -75
  298. package/lib-commonjs/components/DataGridRow/useDataGridRow.js.map +1 -1
  299. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js +25 -20
  300. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js.map +1 -1
  301. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js +19 -20
  302. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  303. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js +3 -2
  304. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
  305. package/lib-commonjs/components/DataGridSelectionCell/index.js +9 -8
  306. package/lib-commonjs/components/DataGridSelectionCell/index.js.map +1 -1
  307. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js +10 -11
  308. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  309. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js +45 -50
  310. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  311. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +29 -24
  312. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -1
  313. package/lib-commonjs/components/Table/Table.js +20 -21
  314. package/lib-commonjs/components/Table/Table.js.map +1 -1
  315. package/lib-commonjs/components/Table/Table.types.js +3 -2
  316. package/lib-commonjs/components/Table/Table.types.js.map +1 -1
  317. package/lib-commonjs/components/Table/index.js +9 -8
  318. package/lib-commonjs/components/Table/index.js.map +1 -1
  319. package/lib-commonjs/components/Table/renderTable.js +16 -21
  320. package/lib-commonjs/components/Table/renderTable.js.map +1 -1
  321. package/lib-commonjs/components/Table/useTable.js +27 -31
  322. package/lib-commonjs/components/Table/useTable.js.map +1 -1
  323. package/lib-commonjs/components/Table/useTableContextValues.js +22 -19
  324. package/lib-commonjs/components/Table/useTableContextValues.js.map +1 -1
  325. package/lib-commonjs/components/Table/useTableStyles.js +55 -41
  326. package/lib-commonjs/components/Table/useTableStyles.js.map +1 -1
  327. package/lib-commonjs/components/TableBody/TableBody.js +19 -20
  328. package/lib-commonjs/components/TableBody/TableBody.js.map +1 -1
  329. package/lib-commonjs/components/TableBody/TableBody.types.js +3 -2
  330. package/lib-commonjs/components/TableBody/TableBody.types.js.map +1 -1
  331. package/lib-commonjs/components/TableBody/index.js +9 -8
  332. package/lib-commonjs/components/TableBody/index.js.map +1 -1
  333. package/lib-commonjs/components/TableBody/renderTableBody.js +13 -18
  334. package/lib-commonjs/components/TableBody/renderTableBody.js.map +1 -1
  335. package/lib-commonjs/components/TableBody/useTableBody.js +26 -33
  336. package/lib-commonjs/components/TableBody/useTableBody.js.map +1 -1
  337. package/lib-commonjs/components/TableBody/useTableBodyStyles.js +39 -29
  338. package/lib-commonjs/components/TableBody/useTableBodyStyles.js.map +1 -1
  339. package/lib-commonjs/components/TableCell/TableCell.js +19 -20
  340. package/lib-commonjs/components/TableCell/TableCell.js.map +1 -1
  341. package/lib-commonjs/components/TableCell/TableCell.types.js +3 -2
  342. package/lib-commonjs/components/TableCell/TableCell.types.js.map +1 -1
  343. package/lib-commonjs/components/TableCell/index.js +9 -8
  344. package/lib-commonjs/components/TableCell/index.js.map +1 -1
  345. package/lib-commonjs/components/TableCell/renderTableCell.js +13 -18
  346. package/lib-commonjs/components/TableCell/renderTableCell.js.map +1 -1
  347. package/lib-commonjs/components/TableCell/useTableCell.js +27 -35
  348. package/lib-commonjs/components/TableCell/useTableCell.js.map +1 -1
  349. package/lib-commonjs/components/TableCell/useTableCellStyles.js +125 -74
  350. package/lib-commonjs/components/TableCell/useTableCellStyles.js.map +1 -1
  351. package/lib-commonjs/components/TableCellActions/TableCellActions.js +19 -20
  352. package/lib-commonjs/components/TableCellActions/TableCellActions.js.map +1 -1
  353. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js +3 -2
  354. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js.map +1 -1
  355. package/lib-commonjs/components/TableCellActions/index.js +9 -8
  356. package/lib-commonjs/components/TableCellActions/index.js.map +1 -1
  357. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js +13 -18
  358. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js.map +1 -1
  359. package/lib-commonjs/components/TableCellActions/useTableCellActions.js +22 -27
  360. package/lib-commonjs/components/TableCellActions/useTableCellActions.js.map +1 -1
  361. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js +51 -30
  362. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
  363. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js +20 -21
  364. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js.map +1 -1
  365. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js +3 -2
  366. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  367. package/lib-commonjs/components/TableCellLayout/index.js +9 -8
  368. package/lib-commonjs/components/TableCellLayout/index.js.map +1 -1
  369. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js +16 -29
  370. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  371. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js +41 -48
  372. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  373. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js +18 -15
  374. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  375. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js +113 -92
  376. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
  377. package/lib-commonjs/components/TableHeader/TableHeader.js +19 -20
  378. package/lib-commonjs/components/TableHeader/TableHeader.js.map +1 -1
  379. package/lib-commonjs/components/TableHeader/TableHeader.types.js +3 -2
  380. package/lib-commonjs/components/TableHeader/TableHeader.types.js.map +1 -1
  381. package/lib-commonjs/components/TableHeader/index.js +9 -8
  382. package/lib-commonjs/components/TableHeader/index.js.map +1 -1
  383. package/lib-commonjs/components/TableHeader/renderTableHeader.js +16 -21
  384. package/lib-commonjs/components/TableHeader/renderTableHeader.js.map +1 -1
  385. package/lib-commonjs/components/TableHeader/useTableHeader.js +26 -33
  386. package/lib-commonjs/components/TableHeader/useTableHeader.js.map +1 -1
  387. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js +39 -29
  388. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js.map +1 -1
  389. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js +19 -20
  390. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  391. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js +3 -2
  392. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  393. package/lib-commonjs/components/TableHeaderCell/index.js +9 -8
  394. package/lib-commonjs/components/TableHeaderCell/index.js.map +1 -1
  395. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js +13 -24
  396. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  397. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js +59 -67
  398. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  399. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js +205 -114
  400. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
  401. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js +19 -20
  402. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  403. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.js +3 -2
  404. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
  405. package/lib-commonjs/components/TableResizeHandle/index.js +9 -8
  406. package/lib-commonjs/components/TableResizeHandle/index.js.map +1 -1
  407. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js +13 -18
  408. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  409. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js +26 -31
  410. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  411. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.js +87 -47
  412. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.js.map +1 -1
  413. package/lib-commonjs/components/TableRow/TableRow.js +19 -20
  414. package/lib-commonjs/components/TableRow/TableRow.js.map +1 -1
  415. package/lib-commonjs/components/TableRow/TableRow.types.js +3 -2
  416. package/lib-commonjs/components/TableRow/TableRow.types.js.map +1 -1
  417. package/lib-commonjs/components/TableRow/index.js +9 -8
  418. package/lib-commonjs/components/TableRow/index.js.map +1 -1
  419. package/lib-commonjs/components/TableRow/renderTableRow.js +13 -18
  420. package/lib-commonjs/components/TableRow/renderTableRow.js.map +1 -1
  421. package/lib-commonjs/components/TableRow/useTableRow.js +35 -42
  422. package/lib-commonjs/components/TableRow/useTableRow.js.map +1 -1
  423. package/lib-commonjs/components/TableRow/useTableRowStyles.js +482 -209
  424. package/lib-commonjs/components/TableRow/useTableRowStyles.js.map +1 -1
  425. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js +19 -20
  426. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  427. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js +3 -2
  428. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  429. package/lib-commonjs/components/TableSelectionCell/index.js +9 -8
  430. package/lib-commonjs/components/TableSelectionCell/index.js.map +1 -1
  431. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js +13 -22
  432. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  433. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js +46 -58
  434. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  435. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js +139 -82
  436. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
  437. package/lib-commonjs/contexts/columnIdContext.js +20 -12
  438. package/lib-commonjs/contexts/columnIdContext.js.map +1 -1
  439. package/lib-commonjs/contexts/dataGridContext.js +22 -14
  440. package/lib-commonjs/contexts/dataGridContext.js.map +1 -1
  441. package/lib-commonjs/contexts/rowIdContext.js +20 -12
  442. package/lib-commonjs/contexts/rowIdContext.js.map +1 -1
  443. package/lib-commonjs/contexts/tableContext.js +23 -15
  444. package/lib-commonjs/contexts/tableContext.js.map +1 -1
  445. package/lib-commonjs/contexts/tableHeaderContext.js +17 -8
  446. package/lib-commonjs/contexts/tableHeaderContext.js.map +1 -1
  447. package/lib-commonjs/hooks/createColumn.js +27 -35
  448. package/lib-commonjs/hooks/createColumn.js.map +1 -1
  449. package/lib-commonjs/hooks/index.js +10 -9
  450. package/lib-commonjs/hooks/index.js.map +1 -1
  451. package/lib-commonjs/hooks/selectionManager.js +80 -72
  452. package/lib-commonjs/hooks/selectionManager.js.map +1 -1
  453. package/lib-commonjs/hooks/types.js +5 -2
  454. package/lib-commonjs/hooks/types.js.map +1 -1
  455. package/lib-commonjs/hooks/useKeyboardResizing.js +109 -94
  456. package/lib-commonjs/hooks/useKeyboardResizing.js.map +1 -1
  457. package/lib-commonjs/hooks/useMeasureElement.js +53 -50
  458. package/lib-commonjs/hooks/useMeasureElement.js.map +1 -1
  459. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js +77 -68
  460. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  461. package/lib-commonjs/hooks/useTableColumnResizeState.js +111 -112
  462. package/lib-commonjs/hooks/useTableColumnResizeState.js.map +1 -1
  463. package/lib-commonjs/hooks/useTableColumnSizing.js +91 -85
  464. package/lib-commonjs/hooks/useTableColumnSizing.js.map +1 -1
  465. package/lib-commonjs/hooks/useTableFeatures.js +51 -44
  466. package/lib-commonjs/hooks/useTableFeatures.js.map +1 -1
  467. package/lib-commonjs/hooks/useTableSelection.js +83 -75
  468. package/lib-commonjs/hooks/useTableSelection.js.map +1 -1
  469. package/lib-commonjs/hooks/useTableSort.js +86 -83
  470. package/lib-commonjs/hooks/useTableSort.js.map +1 -1
  471. package/lib-commonjs/index.js +133 -632
  472. package/lib-commonjs/index.js.map +1 -1
  473. package/lib-commonjs/utils/columnResizeUtils.js +120 -145
  474. package/lib-commonjs/utils/columnResizeUtils.js.map +1 -1
  475. package/package.json +16 -15
  476. package/lib-amd/DataGrid.js +0 -6
  477. package/lib-amd/DataGrid.js.map +0 -1
  478. package/lib-amd/DataGridBody.js +0 -6
  479. package/lib-amd/DataGridBody.js.map +0 -1
  480. package/lib-amd/DataGridCell.js +0 -6
  481. package/lib-amd/DataGridCell.js.map +0 -1
  482. package/lib-amd/DataGridHeader.js +0 -6
  483. package/lib-amd/DataGridHeader.js.map +0 -1
  484. package/lib-amd/DataGridHeaderCell.js +0 -6
  485. package/lib-amd/DataGridHeaderCell.js.map +0 -1
  486. package/lib-amd/DataGridRow.js +0 -6
  487. package/lib-amd/DataGridRow.js.map +0 -1
  488. package/lib-amd/DataGridSelectionCell.js +0 -6
  489. package/lib-amd/DataGridSelectionCell.js.map +0 -1
  490. package/lib-amd/Table.js +0 -6
  491. package/lib-amd/Table.js.map +0 -1
  492. package/lib-amd/TableBody.js +0 -6
  493. package/lib-amd/TableBody.js.map +0 -1
  494. package/lib-amd/TableCell.js +0 -6
  495. package/lib-amd/TableCell.js.map +0 -1
  496. package/lib-amd/TableCellActions.js +0 -6
  497. package/lib-amd/TableCellActions.js.map +0 -1
  498. package/lib-amd/TableCellLayout.js +0 -6
  499. package/lib-amd/TableCellLayout.js.map +0 -1
  500. package/lib-amd/TableHeader.js +0 -6
  501. package/lib-amd/TableHeader.js.map +0 -1
  502. package/lib-amd/TableHeaderCell.js +0 -6
  503. package/lib-amd/TableHeaderCell.js.map +0 -1
  504. package/lib-amd/TableResizeHandle.js +0 -6
  505. package/lib-amd/TableResizeHandle.js.map +0 -1
  506. package/lib-amd/TableRow.js +0 -6
  507. package/lib-amd/TableRow.js.map +0 -1
  508. package/lib-amd/TableSelectionCell.js +0 -6
  509. package/lib-amd/TableSelectionCell.js.map +0 -1
  510. package/lib-amd/components/DataGrid/DataGrid.js +0 -17
  511. package/lib-amd/components/DataGrid/DataGrid.js.map +0 -1
  512. package/lib-amd/components/DataGrid/DataGrid.types.js +0 -5
  513. package/lib-amd/components/DataGrid/DataGrid.types.js.map +0 -1
  514. package/lib-amd/components/DataGrid/index.js +0 -11
  515. package/lib-amd/components/DataGrid/index.js.map +0 -1
  516. package/lib-amd/components/DataGrid/renderDataGrid.js +0 -13
  517. package/lib-amd/components/DataGrid/renderDataGrid.js.map +0 -1
  518. package/lib-amd/components/DataGrid/useDataGrid.js +0 -67
  519. package/lib-amd/components/DataGrid/useDataGrid.js.map +0 -1
  520. package/lib-amd/components/DataGrid/useDataGridContextValues.js +0 -11
  521. package/lib-amd/components/DataGrid/useDataGridContextValues.js.map +0 -1
  522. package/lib-amd/components/DataGrid/useDataGridStyles.js +0 -18
  523. package/lib-amd/components/DataGrid/useDataGridStyles.js.map +0 -1
  524. package/lib-amd/components/DataGridBody/DataGridBody.js +0 -17
  525. package/lib-amd/components/DataGridBody/DataGridBody.js.map +0 -1
  526. package/lib-amd/components/DataGridBody/DataGridBody.types.js +0 -5
  527. package/lib-amd/components/DataGridBody/DataGridBody.types.js.map +0 -1
  528. package/lib-amd/components/DataGridBody/index.js +0 -10
  529. package/lib-amd/components/DataGridBody/index.js.map +0 -1
  530. package/lib-amd/components/DataGridBody/renderDataGridBody.js +0 -14
  531. package/lib-amd/components/DataGridBody/renderDataGridBody.js.map +0 -1
  532. package/lib-amd/components/DataGridBody/useDataGridBody.js +0 -24
  533. package/lib-amd/components/DataGridBody/useDataGridBody.js.map +0 -1
  534. package/lib-amd/components/DataGridBody/useDataGridBodyStyles.js +0 -18
  535. package/lib-amd/components/DataGridBody/useDataGridBodyStyles.js.map +0 -1
  536. package/lib-amd/components/DataGridCell/DataGridCell.js +0 -17
  537. package/lib-amd/components/DataGridCell/DataGridCell.js.map +0 -1
  538. package/lib-amd/components/DataGridCell/DataGridCell.types.js +0 -5
  539. package/lib-amd/components/DataGridCell/DataGridCell.types.js.map +0 -1
  540. package/lib-amd/components/DataGridCell/index.js +0 -10
  541. package/lib-amd/components/DataGridCell/index.js.map +0 -1
  542. package/lib-amd/components/DataGridCell/renderDataGridCell.js +0 -13
  543. package/lib-amd/components/DataGridCell/renderDataGridCell.js.map +0 -1
  544. package/lib-amd/components/DataGridCell/useDataGridCell.js +0 -23
  545. package/lib-amd/components/DataGridCell/useDataGridCell.js.map +0 -1
  546. package/lib-amd/components/DataGridCell/useDataGridCellStyles.js +0 -18
  547. package/lib-amd/components/DataGridCell/useDataGridCellStyles.js.map +0 -1
  548. package/lib-amd/components/DataGridHeader/DataGridHeader.js +0 -17
  549. package/lib-amd/components/DataGridHeader/DataGridHeader.js.map +0 -1
  550. package/lib-amd/components/DataGridHeader/DataGridHeader.types.js +0 -5
  551. package/lib-amd/components/DataGridHeader/DataGridHeader.types.js.map +0 -1
  552. package/lib-amd/components/DataGridHeader/index.js +0 -10
  553. package/lib-amd/components/DataGridHeader/index.js.map +0 -1
  554. package/lib-amd/components/DataGridHeader/renderDataGridHeader.js +0 -13
  555. package/lib-amd/components/DataGridHeader/renderDataGridHeader.js.map +0 -1
  556. package/lib-amd/components/DataGridHeader/useDataGridHeader.js +0 -19
  557. package/lib-amd/components/DataGridHeader/useDataGridHeader.js.map +0 -1
  558. package/lib-amd/components/DataGridHeader/useDataGridHeaderStyles.js +0 -18
  559. package/lib-amd/components/DataGridHeader/useDataGridHeaderStyles.js.map +0 -1
  560. package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.js +0 -17
  561. package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.js.map +0 -1
  562. package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.types.js +0 -5
  563. package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +0 -1
  564. package/lib-amd/components/DataGridHeaderCell/index.js +0 -10
  565. package/lib-amd/components/DataGridHeaderCell/index.js.map +0 -1
  566. package/lib-amd/components/DataGridHeaderCell/renderDataGridHeaderCell.js +0 -13
  567. package/lib-amd/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +0 -1
  568. package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCell.js +0 -34
  569. package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +0 -1
  570. package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +0 -30
  571. package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +0 -1
  572. package/lib-amd/components/DataGridRow/DataGridRow.js +0 -17
  573. package/lib-amd/components/DataGridRow/DataGridRow.js.map +0 -1
  574. package/lib-amd/components/DataGridRow/DataGridRow.types.js +0 -5
  575. package/lib-amd/components/DataGridRow/DataGridRow.types.js.map +0 -1
  576. package/lib-amd/components/DataGridRow/index.js +0 -10
  577. package/lib-amd/components/DataGridRow/index.js.map +0 -1
  578. package/lib-amd/components/DataGridRow/renderDataGridRow.js +0 -16
  579. package/lib-amd/components/DataGridRow/renderDataGridRow.js.map +0 -1
  580. package/lib-amd/components/DataGridRow/useDataGridRow.js +0 -50
  581. package/lib-amd/components/DataGridRow/useDataGridRow.js.map +0 -1
  582. package/lib-amd/components/DataGridRow/useDataGridRowStyles.js +0 -22
  583. package/lib-amd/components/DataGridRow/useDataGridRowStyles.js.map +0 -1
  584. package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.js +0 -17
  585. package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.js.map +0 -1
  586. package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.types.js +0 -5
  587. package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +0 -1
  588. package/lib-amd/components/DataGridSelectionCell/index.js +0 -10
  589. package/lib-amd/components/DataGridSelectionCell/index.js.map +0 -1
  590. package/lib-amd/components/DataGridSelectionCell/renderDataGridSelectionCell.js +0 -13
  591. package/lib-amd/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +0 -1
  592. package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCell.js +0 -39
  593. package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +0 -1
  594. package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +0 -26
  595. package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +0 -1
  596. package/lib-amd/components/Table/Table.js +0 -17
  597. package/lib-amd/components/Table/Table.js.map +0 -1
  598. package/lib-amd/components/Table/Table.types.js +0 -5
  599. package/lib-amd/components/Table/Table.types.js.map +0 -1
  600. package/lib-amd/components/Table/index.js +0 -10
  601. package/lib-amd/components/Table/index.js.map +0 -1
  602. package/lib-amd/components/Table/renderTable.js +0 -15
  603. package/lib-amd/components/Table/renderTable.js.map +0 -1
  604. package/lib-amd/components/Table/useTable.js +0 -29
  605. package/lib-amd/components/Table/useTable.js.map +0 -1
  606. package/lib-amd/components/Table/useTableContextValues.js +0 -18
  607. package/lib-amd/components/Table/useTableContextValues.js.map +0 -1
  608. package/lib-amd/components/Table/useTableStyles.js +0 -45
  609. package/lib-amd/components/Table/useTableStyles.js.map +0 -1
  610. package/lib-amd/components/TableBody/TableBody.js +0 -17
  611. package/lib-amd/components/TableBody/TableBody.js.map +0 -1
  612. package/lib-amd/components/TableBody/TableBody.types.js +0 -5
  613. package/lib-amd/components/TableBody/TableBody.types.js.map +0 -1
  614. package/lib-amd/components/TableBody/index.js +0 -10
  615. package/lib-amd/components/TableBody/index.js.map +0 -1
  616. package/lib-amd/components/TableBody/renderTableBody.js +0 -14
  617. package/lib-amd/components/TableBody/renderTableBody.js.map +0 -1
  618. package/lib-amd/components/TableBody/useTableBody.js +0 -28
  619. package/lib-amd/components/TableBody/useTableBody.js.map +0 -1
  620. package/lib-amd/components/TableBody/useTableBodyStyles.js +0 -32
  621. package/lib-amd/components/TableBody/useTableBodyStyles.js.map +0 -1
  622. package/lib-amd/components/TableCell/TableCell.js +0 -17
  623. package/lib-amd/components/TableCell/TableCell.js.map +0 -1
  624. package/lib-amd/components/TableCell/TableCell.types.js +0 -5
  625. package/lib-amd/components/TableCell/TableCell.types.js.map +0 -1
  626. package/lib-amd/components/TableCell/index.js +0 -10
  627. package/lib-amd/components/TableCell/index.js.map +0 -1
  628. package/lib-amd/components/TableCell/renderTableCell.js +0 -14
  629. package/lib-amd/components/TableCell/renderTableCell.js.map +0 -1
  630. package/lib-amd/components/TableCell/useTableCell.js +0 -29
  631. package/lib-amd/components/TableCell/useTableCell.js.map +0 -1
  632. package/lib-amd/components/TableCell/useTableCellStyles.js +0 -56
  633. package/lib-amd/components/TableCell/useTableCellStyles.js.map +0 -1
  634. package/lib-amd/components/TableCellActions/TableCellActions.js +0 -17
  635. package/lib-amd/components/TableCellActions/TableCellActions.js.map +0 -1
  636. package/lib-amd/components/TableCellActions/TableCellActions.types.js +0 -5
  637. package/lib-amd/components/TableCellActions/TableCellActions.types.js.map +0 -1
  638. package/lib-amd/components/TableCellActions/index.js +0 -10
  639. package/lib-amd/components/TableCellActions/index.js.map +0 -1
  640. package/lib-amd/components/TableCellActions/renderTableCellActions.js +0 -14
  641. package/lib-amd/components/TableCellActions/renderTableCellActions.js.map +0 -1
  642. package/lib-amd/components/TableCellActions/useTableCellActions.js +0 -26
  643. package/lib-amd/components/TableCellActions/useTableCellActions.js.map +0 -1
  644. package/lib-amd/components/TableCellActions/useTableCellActionsStyles.js +0 -35
  645. package/lib-amd/components/TableCellActions/useTableCellActionsStyles.js.map +0 -1
  646. package/lib-amd/components/TableCellLayout/TableCellLayout.js +0 -17
  647. package/lib-amd/components/TableCellLayout/TableCellLayout.js.map +0 -1
  648. package/lib-amd/components/TableCellLayout/TableCellLayout.types.js +0 -5
  649. package/lib-amd/components/TableCellLayout/TableCellLayout.types.js.map +0 -1
  650. package/lib-amd/components/TableCellLayout/index.js +0 -10
  651. package/lib-amd/components/TableCellLayout/index.js.map +0 -1
  652. package/lib-amd/components/TableCellLayout/renderTableCellLayout.js +0 -19
  653. package/lib-amd/components/TableCellLayout/renderTableCellLayout.js.map +0 -1
  654. package/lib-amd/components/TableCellLayout/useTableCellLayout.js +0 -42
  655. package/lib-amd/components/TableCellLayout/useTableCellLayout.js.map +0 -1
  656. package/lib-amd/components/TableCellLayout/useTableCellLayoutContextValues.js +0 -16
  657. package/lib-amd/components/TableCellLayout/useTableCellLayoutContextValues.js.map +0 -1
  658. package/lib-amd/components/TableCellLayout/useTableCellLayoutStyles.js +0 -79
  659. package/lib-amd/components/TableCellLayout/useTableCellLayoutStyles.js.map +0 -1
  660. package/lib-amd/components/TableHeader/TableHeader.js +0 -17
  661. package/lib-amd/components/TableHeader/TableHeader.js.map +0 -1
  662. package/lib-amd/components/TableHeader/TableHeader.types.js +0 -5
  663. package/lib-amd/components/TableHeader/TableHeader.types.js.map +0 -1
  664. package/lib-amd/components/TableHeader/index.js +0 -10
  665. package/lib-amd/components/TableHeader/index.js.map +0 -1
  666. package/lib-amd/components/TableHeader/renderTableHeader.js +0 -15
  667. package/lib-amd/components/TableHeader/renderTableHeader.js.map +0 -1
  668. package/lib-amd/components/TableHeader/useTableHeader.js +0 -28
  669. package/lib-amd/components/TableHeader/useTableHeader.js.map +0 -1
  670. package/lib-amd/components/TableHeader/useTableHeaderStyles.js +0 -32
  671. package/lib-amd/components/TableHeader/useTableHeaderStyles.js.map +0 -1
  672. package/lib-amd/components/TableHeaderCell/TableHeaderCell.js +0 -17
  673. package/lib-amd/components/TableHeaderCell/TableHeaderCell.js.map +0 -1
  674. package/lib-amd/components/TableHeaderCell/TableHeaderCell.types.js +0 -5
  675. package/lib-amd/components/TableHeaderCell/TableHeaderCell.types.js.map +0 -1
  676. package/lib-amd/components/TableHeaderCell/index.js +0 -10
  677. package/lib-amd/components/TableHeaderCell/index.js.map +0 -1
  678. package/lib-amd/components/TableHeaderCell/renderTableHeaderCell.js +0 -18
  679. package/lib-amd/components/TableHeaderCell/renderTableHeaderCell.js.map +0 -1
  680. package/lib-amd/components/TableHeaderCell/useTableHeaderCell.js +0 -48
  681. package/lib-amd/components/TableHeaderCell/useTableHeaderCell.js.map +0 -1
  682. package/lib-amd/components/TableHeaderCell/useTableHeaderCellStyles.js +0 -67
  683. package/lib-amd/components/TableHeaderCell/useTableHeaderCellStyles.js.map +0 -1
  684. package/lib-amd/components/TableResizeHandle/TableResizeHandle.js +0 -17
  685. package/lib-amd/components/TableResizeHandle/TableResizeHandle.js.map +0 -1
  686. package/lib-amd/components/TableResizeHandle/TableResizeHandle.types.js +0 -5
  687. package/lib-amd/components/TableResizeHandle/TableResizeHandle.types.js.map +0 -1
  688. package/lib-amd/components/TableResizeHandle/index.js +0 -10
  689. package/lib-amd/components/TableResizeHandle/index.js.map +0 -1
  690. package/lib-amd/components/TableResizeHandle/renderTableResizeHandle.js +0 -14
  691. package/lib-amd/components/TableResizeHandle/renderTableResizeHandle.js.map +0 -1
  692. package/lib-amd/components/TableResizeHandle/useTableResizeHandle.js +0 -29
  693. package/lib-amd/components/TableResizeHandle/useTableResizeHandle.js.map +0 -1
  694. package/lib-amd/components/TableResizeHandle/useTableResizeHandleStyles.js +0 -37
  695. package/lib-amd/components/TableResizeHandle/useTableResizeHandleStyles.js.map +0 -1
  696. package/lib-amd/components/TableRow/TableRow.js +0 -17
  697. package/lib-amd/components/TableRow/TableRow.js.map +0 -1
  698. package/lib-amd/components/TableRow/TableRow.types.js +0 -5
  699. package/lib-amd/components/TableRow/TableRow.types.js.map +0 -1
  700. package/lib-amd/components/TableRow/index.js +0 -10
  701. package/lib-amd/components/TableRow/index.js.map +0 -1
  702. package/lib-amd/components/TableRow/renderTableRow.js +0 -14
  703. package/lib-amd/components/TableRow/renderTableRow.js.map +0 -1
  704. package/lib-amd/components/TableRow/useTableRow.js +0 -34
  705. package/lib-amd/components/TableRow/useTableRow.js.map +0 -1
  706. package/lib-amd/components/TableRow/useTableRowStyles.js +0 -98
  707. package/lib-amd/components/TableRow/useTableRowStyles.js.map +0 -1
  708. package/lib-amd/components/TableSelectionCell/TableSelectionCell.js +0 -17
  709. package/lib-amd/components/TableSelectionCell/TableSelectionCell.js.map +0 -1
  710. package/lib-amd/components/TableSelectionCell/TableSelectionCell.types.js +0 -5
  711. package/lib-amd/components/TableSelectionCell/TableSelectionCell.types.js.map +0 -1
  712. package/lib-amd/components/TableSelectionCell/index.js +0 -10
  713. package/lib-amd/components/TableSelectionCell/index.js.map +0 -1
  714. package/lib-amd/components/TableSelectionCell/renderTableSelectionCell.js +0 -16
  715. package/lib-amd/components/TableSelectionCell/renderTableSelectionCell.js.map +0 -1
  716. package/lib-amd/components/TableSelectionCell/useTableSelectionCell.js +0 -28
  717. package/lib-amd/components/TableSelectionCell/useTableSelectionCell.js.map +0 -1
  718. package/lib-amd/components/TableSelectionCell/useTableSelectionCellStyles.js +0 -58
  719. package/lib-amd/components/TableSelectionCell/useTableSelectionCellStyles.js.map +0 -1
  720. package/lib-amd/contexts/columnIdContext.js +0 -11
  721. package/lib-amd/contexts/columnIdContext.js.map +0 -1
  722. package/lib-amd/contexts/dataGridContext.js +0 -16
  723. package/lib-amd/contexts/dataGridContext.js.map +0 -1
  724. package/lib-amd/contexts/rowIdContext.js +0 -11
  725. package/lib-amd/contexts/rowIdContext.js.map +0 -1
  726. package/lib-amd/contexts/tableContext.js +0 -15
  727. package/lib-amd/contexts/tableContext.js.map +0 -1
  728. package/lib-amd/contexts/tableHeaderContext.js +0 -11
  729. package/lib-amd/contexts/tableHeaderContext.js.map +0 -1
  730. package/lib-amd/hooks/createColumn.js +0 -36
  731. package/lib-amd/hooks/createColumn.js.map +0 -1
  732. package/lib-amd/hooks/index.js +0 -11
  733. package/lib-amd/hooks/index.js.map +0 -1
  734. package/lib-amd/hooks/selectionManager.js +0 -82
  735. package/lib-amd/hooks/selectionManager.js.map +0 -1
  736. package/lib-amd/hooks/types.js +0 -5
  737. package/lib-amd/hooks/types.js.map +0 -1
  738. package/lib-amd/hooks/useKeyboardResizing.js +0 -97
  739. package/lib-amd/hooks/useKeyboardResizing.js.map +0 -1
  740. package/lib-amd/hooks/useMeasureElement.js +0 -46
  741. package/lib-amd/hooks/useMeasureElement.js.map +0 -1
  742. package/lib-amd/hooks/useTableColumnResizeMouseHandler.js +0 -63
  743. package/lib-amd/hooks/useTableColumnResizeMouseHandler.js.map +0 -1
  744. package/lib-amd/hooks/useTableColumnResizeState.js +0 -75
  745. package/lib-amd/hooks/useTableColumnResizeState.js.map +0 -1
  746. package/lib-amd/hooks/useTableColumnSizing.js +0 -67
  747. package/lib-amd/hooks/useTableColumnSizing.js.map +0 -1
  748. package/lib-amd/hooks/useTableFeatures.js +0 -39
  749. package/lib-amd/hooks/useTableFeatures.js.map +0 -1
  750. package/lib-amd/hooks/useTableSelection.js +0 -76
  751. package/lib-amd/hooks/useTableSelection.js.map +0 -1
  752. package/lib-amd/hooks/useTableSort.js +0 -74
  753. package/lib-amd/hooks/useTableSort.js.map +0 -1
  754. package/lib-amd/index.js +0 -107
  755. package/lib-amd/index.js.map +0 -1
  756. package/lib-amd/utils/columnResizeUtils.js +0 -158
  757. package/lib-amd/utils/columnResizeUtils.js.map +0 -1
@@ -11,8 +11,6 @@ export const renderTable_unstable = (state, contextValues) => {
11
11
  } = getSlots(state);
12
12
  return /*#__PURE__*/React.createElement(TableContextProvider, {
13
13
  value: contextValues.table
14
- }, /*#__PURE__*/React.createElement(slots.root, {
15
- ...slotProps.root
16
- }));
14
+ }, /*#__PURE__*/React.createElement(slots.root, slotProps.root));
17
15
  };
18
16
  //# sourceMappingURL=renderTable.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","TableContextProvider","renderTable_unstable","state","contextValues","slots","slotProps","createElement","value","table","root"],"sources":["../src/packages/react-components/react-table/src/components/Table/renderTable.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableState, TableSlots, TableContextValues } from './Table.types';\nimport { TableContextProvider } from '../../contexts/tableContext';\n\n/**\n * Render the final JSX of Table\n */\nexport const renderTable_unstable = (state: TableState, contextValues: TableContextValues) => {\n const { slots, slotProps } = getSlots<TableSlots>(state);\n\n return (\n <TableContextProvider value={contextValues.table}>\n <slots.root {...slotProps.root} />\n </TableContextProvider>\n );\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAEpD,SAASC,oBAAoB,QAAQ,6BAA6B;AAElE;;;AAGA,OAAO,MAAMC,oBAAoB,GAAGA,CAACC,KAAiB,EAAEC,aAAiC,KAAI;EAC3F,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGN,QAAQ,CAAaG,KAAK,CAAC;EAExD,oBACEJ,KAAA,CAAAQ,aAAA,CAACN,oBAAoB;IAACO,KAAK,EAAEJ,aAAa,CAACK;EAAK,gBAC9CV,KAAA,CAAAQ,aAAA,CAACF,KAAK,CAACK,IAAI;IAAA,GAAKJ,SAAS,CAACI;EAAI,EAAI,CACb;AAE3B,CAAC"}
1
+ {"version":3,"names":["React","getSlots","TableContextProvider","renderTable_unstable","state","contextValues","slots","slotProps","createElement","value","table","root"],"sources":["../../../src/components/Table/renderTable.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableState, TableSlots, TableContextValues } from './Table.types';\nimport { TableContextProvider } from '../../contexts/tableContext';\n\n/**\n * Render the final JSX of Table\n */\nexport const renderTable_unstable = (state: TableState, contextValues: TableContextValues) => {\n const { slots, slotProps } = getSlots<TableSlots>(state);\n\n return (\n <TableContextProvider value={contextValues.table}>\n <slots.root {...slotProps.root} />\n </TableContextProvider>\n );\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,QAAQ,QAAQ;AAEzB,SAASC,oBAAoB,QAAQ;AAErC;;;AAGA,OAAO,MAAMC,oBAAA,GAAuBA,CAACC,KAAA,EAAmBC,aAAA,KAAsC;EAC5F,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGN,QAAA,CAAqBG,KAAA;EAElD,oBACEJ,KAAA,CAAAQ,aAAA,CAACN,oBAAA;IAAqBO,KAAA,EAAOJ,aAAA,CAAcK;kBACzCV,KAAA,CAAAQ,aAAA,CAACF,KAAA,CAAMK,IAAI,EAAKJ,SAAA,CAAUI,IAAI;AAGpC"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { getNativeElementProps } from '@fluentui/react-utilities';
2
3
  /**
3
4
  * Create the state required to render Table.
@@ -9,8 +10,9 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
9
10
  * @param ref - reference to root HTMLElement of Table
10
11
  */
11
12
  export const useTable_unstable = (props, ref) => {
12
- var _a, _b, _c, _d;
13
- const rootComponent = ((_a = props.as) !== null && _a !== void 0 ? _a : props.noNativeElements) ? 'div' : 'table';
13
+ var _props_as;
14
+ const rootComponent = ((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : props.noNativeElements) ? 'div' : 'table';
15
+ var _props_size, _props_noNativeElements, _props_sortable;
14
16
  return {
15
17
  components: {
16
18
  root: rootComponent
@@ -20,9 +22,9 @@ export const useTable_unstable = (props, ref) => {
20
22
  role: rootComponent === 'div' ? 'table' : undefined,
21
23
  ...props
22
24
  }),
23
- size: (_b = props.size) !== null && _b !== void 0 ? _b : 'medium',
24
- noNativeElements: (_c = props.noNativeElements) !== null && _c !== void 0 ? _c : false,
25
- sortable: (_d = props.sortable) !== null && _d !== void 0 ? _d : false
25
+ size: (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : 'medium',
26
+ noNativeElements: (_props_noNativeElements = props.noNativeElements) !== null && _props_noNativeElements !== void 0 ? _props_noNativeElements : false,
27
+ sortable: (_props_sortable = props.sortable) !== null && _props_sortable !== void 0 ? _props_sortable : false
26
28
  };
27
29
  };
28
30
  //# sourceMappingURL=useTable.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getNativeElementProps","useTable_unstable","props","ref","rootComponent","_a","as","noNativeElements","components","root","role","undefined","size","_b","_c","sortable","_d"],"sources":["../src/packages/react-components/react-table/src/components/Table/useTable.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableProps, TableState } from './Table.types';\n\n/**\n * Create the state required to render Table.\n *\n * The returned state can be modified with hooks such as useTableStyles_unstable,\n * before being passed to renderTable_unstable.\n *\n * @param props - props from this instance of Table\n * @param ref - reference to root HTMLElement of Table\n */\nexport const useTable_unstable = (props: TableProps, ref: React.Ref<HTMLElement>): TableState => {\n const rootComponent = props.as ?? props.noNativeElements ? 'div' : 'table';\n\n return {\n components: {\n root: rootComponent,\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'table' : undefined,\n ...props,\n }),\n size: props.size ?? 'medium',\n noNativeElements: props.noNativeElements ?? false,\n sortable: props.sortable ?? false,\n };\n};\n"],"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AAGjE;;;;;;;;;AASA,OAAO,MAAMC,iBAAiB,GAAGA,CAACC,KAAiB,EAAEC,GAA2B,KAAgB;;EAC9F,MAAMC,aAAa,GAAG,EAAAC,EAAA,GAAAH,KAAK,CAACI,EAAE,cAAAD,EAAA,cAAAA,EAAA,GAAIH,KAAK,CAACK,gBAAgB,IAAG,KAAK,GAAG,OAAO;EAE1E,OAAO;IACLC,UAAU,EAAE;MACVC,IAAI,EAAEL;KACP;IACDK,IAAI,EAAET,qBAAqB,CAACI,aAAa,EAAE;MACzCD,GAAG;MACHO,IAAI,EAAEN,aAAa,KAAK,KAAK,GAAG,OAAO,GAAGO,SAAS;MACnD,GAAGT;KACJ,CAAC;IACFU,IAAI,EAAE,CAAAC,EAAA,GAAAX,KAAK,CAACU,IAAI,cAAAC,EAAA,cAAAA,EAAA,GAAI,QAAQ;IAC5BN,gBAAgB,EAAE,CAAAO,EAAA,GAAAZ,KAAK,CAACK,gBAAgB,cAAAO,EAAA,cAAAA,EAAA,GAAI,KAAK;IACjDC,QAAQ,EAAE,CAAAC,EAAA,GAAAd,KAAK,CAACa,QAAQ,cAAAC,EAAA,cAAAA,EAAA,GAAI;GAC7B;AACH,CAAC"}
1
+ {"version":3,"names":["React","getNativeElementProps","useTable_unstable","props","ref","_props_as","rootComponent","as","noNativeElements","_props_size","_props_noNativeElements","_props_sortable","components","root","role","undefined","size","sortable"],"sources":["../../../src/components/Table/useTable.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableProps, TableState } from './Table.types';\n\n/**\n * Create the state required to render Table.\n *\n * The returned state can be modified with hooks such as useTableStyles_unstable,\n * before being passed to renderTable_unstable.\n *\n * @param props - props from this instance of Table\n * @param ref - reference to root HTMLElement of Table\n */\nexport const useTable_unstable = (props: TableProps, ref: React.Ref<HTMLElement>): TableState => {\n const rootComponent = props.as ?? props.noNativeElements ? 'div' : 'table';\n\n return {\n components: {\n root: rootComponent,\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'table' : undefined,\n ...props,\n }),\n size: props.size ?? 'medium',\n noNativeElements: props.noNativeElements ?? false,\n sortable: props.sortable ?? false,\n };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AAGtC;;;;;;;;;AASA,OAAO,MAAMC,iBAAA,GAAoBA,CAACC,KAAA,EAAmBC,GAAA,KAA4C;MACzEC,SAAA;EAAtB,MAAMC,aAAA,GAAgB,EAAAD,SAAA,GAAAF,KAAA,CAAMI,EAAE,cAARF,SAAA,cAAAA,SAAA,GAAYF,KAAA,CAAMK,gBAAgB,IAAG,QAAQ,OAAO;MAWlEC,WAAA,EACYC,uBAAA,EACRC,eAAA;EAXZ,OAAO;IACLC,UAAA,EAAY;MACVC,IAAA,EAAMP;IACR;IACAO,IAAA,EAAMZ,qBAAA,CAAsBK,aAAA,EAAe;MACzCF,GAAA;MACAU,IAAA,EAAMR,aAAA,KAAkB,QAAQ,UAAUS,SAAS;MACnD,GAAGZ;IACL;IACAa,IAAA,EAAM,CAAAP,WAAA,GAAAN,KAAA,CAAMa,IAAI,cAAVP,WAAA,cAAAA,WAAA,GAAc,QAAQ;IAC5BD,gBAAA,EAAkB,CAAAE,uBAAA,GAAAP,KAAA,CAAMK,gBAAgB,cAAtBE,uBAAA,cAAAA,uBAAA,GAA0B,KAAK;IACjDO,QAAA,EAAU,CAAAN,eAAA,GAAAR,KAAA,CAAMc,QAAQ,cAAdN,eAAA,cAAAA,eAAA,GAAkB;EAC9B;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useTableContextValues_unstable","state","size","noNativeElements","sortable","tableContext","useMemo","table"],"sources":["../src/packages/react-components/react-table/src/components/Table/useTableContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport { TableContextValues, TableState } from './Table.types';\n\nexport function useTableContextValues_unstable(state: TableState): TableContextValues {\n const { size, noNativeElements, sortable } = state;\n\n const tableContext = React.useMemo(\n () => ({\n noNativeElements,\n size,\n sortable,\n }),\n [noNativeElements, size, sortable],\n );\n\n return {\n table: tableContext,\n };\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,OAAM,SAAUC,8BAA8BA,CAACC,KAAiB;EAC9D,MAAM;IAAEC,IAAI;IAAEC,gBAAgB;IAAEC;EAAQ,CAAE,GAAGH,KAAK;EAElD,MAAMI,YAAY,GAAGN,KAAK,CAACO,OAAO,CAChC,OAAO;IACLH,gBAAgB;IAChBD,IAAI;IACJE;GACD,CAAC,EACF,CAACD,gBAAgB,EAAED,IAAI,EAAEE,QAAQ,CAAC,CACnC;EAED,OAAO;IACLG,KAAK,EAAEF;GACR;AACH"}
1
+ {"version":3,"names":["React","useTableContextValues_unstable","state","size","noNativeElements","sortable","tableContext","useMemo","table"],"sources":["../../../src/components/Table/useTableContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport { TableContextValues, TableState } from './Table.types';\n\nexport function useTableContextValues_unstable(state: TableState): TableContextValues {\n const { size, noNativeElements, sortable } = state;\n\n const tableContext = React.useMemo(\n () => ({\n noNativeElements,\n size,\n sortable,\n }),\n [noNativeElements, size, sortable],\n );\n\n return {\n table: tableContext,\n };\n}\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGvB,OAAO,SAASC,+BAA+BC,KAAiB,EAAsB;EACpF,MAAM;IAAEC,IAAA;IAAMC,gBAAA;IAAkBC;EAAQ,CAAE,GAAGH,KAAA;EAE7C,MAAMI,YAAA,GAAeN,KAAA,CAAMO,OAAO,CAChC,OAAO;IACLH,gBAAA;IACAD,IAAA;IACAE;EACF,IACA,CAACD,gBAAA,EAAkBD,IAAA,EAAME,QAAA,CAAS;EAGpC,OAAO;IACLG,KAAA,EAAOF;EACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["__styles","mergeClasses","tokens","tableClassName","tableClassNames","root","useTableLayoutStyles","mc9l5x","ha4doy","a9b677","B73mfa3","d","useFlexLayoutStyles","useStyles","po53p8","De3pzq","useTableStyles_unstable","state","styles","layoutStyles","table","flex","className","noNativeElements"],"sources":["../src/packages/react-components/react-table/src/components/Table/useTableStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TableSlots, TableState } from './Table.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const tableClassName = 'fui-Table';\nexport const tableClassNames: SlotClassNames<TableSlots> = {\n root: 'fui-Table',\n};\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table',\n verticalAlign: 'middle',\n width: '100%',\n tableLayout: 'fixed',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'block',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n borderCollapse: 'collapse',\n backgroundColor: tokens.colorSubtleBackground,\n },\n});\n\n/**\n * Apply styling to the Table slots based on the state\n */\nexport const useTableStyles_unstable = (state: TableState): TableState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n state.root.className = mergeClasses(\n tableClassName,\n styles.root,\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.root.className,\n );\n\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,QAAQ,uBAAuB;AAI9C,OAAO,MAAMC,cAAc,GAAG,WAAW;AACzC,OAAO,MAAMC,eAAe,GAA+B;EACzDC,IAAI,EAAE;CACP;AAED,MAAMC,oBAAoB,gBAAGN,QAAA;EAAAK,IAAA;IAAAE,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAO3B;AAEF,MAAMC,mBAAmB,gBAAGZ,QAAA;EAAAK,IAAA;IAAAE,MAAA;EAAA;AAAA;EAAAI,CAAA;AAAA,EAI1B;AAEF;;;AAGA,MAAME,SAAS,gBAAGb,QAAA;EAAAK,IAAA;IAAAS,MAAA;IAAAC,MAAA;EAAA;AAAA;EAAAJ,CAAA;AAAA,EAKhB;AAEF;;;AAGA,OAAO,MAAMK,uBAAuB,GAAIC,KAAiB,IAAgB;EACvE,MAAMC,MAAM,GAAGL,SAAS,EAAE;EAC1B,MAAMM,YAAY,GAAG;IACnBC,KAAK,EAAEd,oBAAoB,EAAE;IAC7Be,IAAI,EAAET,mBAAmB;GAC1B;EACDK,KAAK,CAACZ,IAAI,CAACiB,SAAS,GAAGrB,YAAY,CACjCE,cAAc,EACde,MAAM,CAACb,IAAI,EACXY,KAAK,CAACM,gBAAgB,GAAGJ,YAAY,CAACE,IAAI,CAAChB,IAAI,GAAGc,YAAY,CAACC,KAAK,CAACf,IAAI,EACzEY,KAAK,CAACZ,IAAI,CAACiB,SAAS,CACrB;EAED,OAAOL,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["__styles","mergeClasses","tokens","tableClassName","tableClassNames","root","useTableLayoutStyles","mc9l5x","ha4doy","a9b677","B73mfa3","d","useFlexLayoutStyles","useStyles","po53p8","De3pzq","useTableStyles_unstable","state","styles","layoutStyles","table","flex","className","noNativeElements"],"sources":["../../../src/components/Table/useTableStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TableSlots, TableState } from './Table.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const tableClassName = 'fui-Table';\nexport const tableClassNames: SlotClassNames<TableSlots> = {\n root: 'fui-Table',\n};\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table',\n verticalAlign: 'middle',\n width: '100%',\n tableLayout: 'fixed',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'block',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n borderCollapse: 'collapse',\n backgroundColor: tokens.colorSubtleBackground,\n },\n});\n\n/**\n * Apply styling to the Table slots based on the state\n */\nexport const useTableStyles_unstable = (state: TableState): TableState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n state.root.className = mergeClasses(\n tableClassName,\n styles.root,\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.root.className,\n );\n\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ;AACzC,SAASC,MAAM,QAAQ;AAIvB,OAAO,MAAMC,cAAA,GAAiB;AAC9B,OAAO,MAAMC,eAAA,GAA8C;EACzDC,IAAA,EAAM;AACR;AAEA,MAAMC,oBAAA,gBAAuBN,QAAA;EAAAK,IAAA;IAAAE,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAO7B;AAEA,MAAMC,mBAAA,gBAAsBZ,QAAA;EAAAK,IAAA;IAAAE,MAAA;EAAA;AAAA;EAAAI,CAAA;AAAA,EAI5B;AAEA;;;AAGA,MAAME,SAAA,gBAAYb,QAAA;EAAAK,IAAA;IAAAS,MAAA;IAAAC,MAAA;EAAA;AAAA;EAAAJ,CAAA;AAAA,EAKlB;AAEA;;;AAGA,OAAO,MAAMK,uBAAA,GAA2BC,KAAA,IAAkC;EACxE,MAAMC,MAAA,GAASL,SAAA;EACf,MAAMM,YAAA,GAAe;IACnBC,KAAA,EAAOd,oBAAA;IACPe,IAAA,EAAMT,mBAAA;EACR;EACAK,KAAA,CAAMZ,IAAI,CAACiB,SAAS,GAAGrB,YAAA,CACrBE,cAAA,EACAe,MAAA,CAAOb,IAAI,EACXY,KAAA,CAAMM,gBAAgB,GAAGJ,YAAA,CAAaE,IAAI,CAAChB,IAAI,GAAGc,YAAA,CAAaC,KAAK,CAACf,IAAI,EACzEY,KAAA,CAAMZ,IAAI,CAACiB,SAAS;EAGtB,OAAOL,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useTableBody_unstable","renderTableBody_unstable","useTableBodyStyles_unstable","useCustomStyleHooks_unstable","TableBody","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-table/src/components/TableBody/TableBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTableBody_unstable } from './useTableBody';\nimport { renderTableBody_unstable } from './renderTableBody';\nimport { useTableBodyStyles_unstable } from './useTableBodyStyles';\nimport type { TableBodyProps } from './TableBody.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableBody component\n */\nexport const TableBody: ForwardRefComponent<TableBodyProps> = React.forwardRef((props, ref) => {\n const state = useTableBody_unstable(props, ref);\n\n useTableBodyStyles_unstable(state);\n\n const { useTableBodyStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTableBody_unstable(state);\n});\n\nTableBody.displayName = 'TableBody';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,qBAAqB,QAAQ,gBAAgB;AACtD,SAASC,wBAAwB,QAAQ,mBAAmB;AAC5D,SAASC,2BAA2B,QAAQ,sBAAsB;AAGlE,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,SAAS,gBAAwCL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC5F,MAAMC,KAAK,GAAGR,qBAAqB,CAACM,KAAK,EAAEC,GAAG,CAAC;EAE/CL,2BAA2B,CAACM,KAAK,CAAC;EAElC,MAAM;IAAEN,2BAA2B,EAAEO;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EACvFM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOP,wBAAwB,CAACO,KAAK,CAAC;AACxC,CAAC,CAAC;AAEFJ,SAAS,CAACM,WAAW,GAAG,WAAW"}
1
+ {"version":3,"names":["React","useTableBody_unstable","renderTableBody_unstable","useTableBodyStyles_unstable","useCustomStyleHooks_unstable","TableBody","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../src/components/TableBody/TableBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTableBody_unstable } from './useTableBody';\nimport { renderTableBody_unstable } from './renderTableBody';\nimport { useTableBodyStyles_unstable } from './useTableBodyStyles';\nimport type { TableBodyProps } from './TableBody.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableBody component\n */\nexport const TableBody: ForwardRefComponent<TableBodyProps> = React.forwardRef((props, ref) => {\n const state = useTableBody_unstable(props, ref);\n\n useTableBodyStyles_unstable(state);\n\n const { useTableBodyStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTableBody_unstable(state);\n});\n\nTableBody.displayName = 'TableBody';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AACtC,SAASC,wBAAwB,QAAQ;AACzC,SAASC,2BAA2B,QAAQ;AAG5C,SAASC,4BAA4B,QAAQ;AAE7C;;;AAGA,OAAO,MAAMC,SAAA,gBAAiDL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EAC7F,MAAMC,KAAA,GAAQR,qBAAA,CAAsBM,KAAA,EAAOC,GAAA;EAE3CL,2BAAA,CAA4BM,KAAA;EAE5B,MAAM;IAAEN,2BAAA,EAA6BO;EAAe,CAAE,GAAGN,4BAAA;EACzDM,eAAA,CAAgBD,KAAA;EAEhB,OAAOP,wBAAA,CAAyBO,KAAA;AAClC;AAEAJ,SAAA,CAAUM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableBody/TableBody.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { TableContextValue } from '../Table/Table.types';\n\nexport type TableBodySlots = {\n root: Slot<'tbody', 'div'>;\n};\n\n/**\n * TableBody Props\n */\nexport type TableBodyProps = ComponentProps<TableBodySlots>;\n\n/**\n * State used in rendering TableBody\n */\nexport type TableBodyState = ComponentState<TableBodySlots> & Pick<TableContextValue, 'noNativeElements'>;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/TableBody/TableBody.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { TableContextValue } from '../Table/Table.types';\n\nexport type TableBodySlots = {\n root: Slot<'tbody', 'div'>;\n};\n\n/**\n * TableBody Props\n */\nexport type TableBodyProps = ComponentProps<TableBodySlots>;\n\n/**\n * State used in rendering TableBody\n */\nexport type TableBodyState = ComponentState<TableBodySlots> & Pick<TableContextValue, 'noNativeElements'>;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableBody/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC","sourcesContent":["export * from './TableBody';\nexport * from './TableBody.types';\nexport * from './renderTableBody';\nexport * from './useTableBody';\nexport * from './useTableBodyStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/TableBody/index.ts"],"sourcesContent":["export * from './TableBody';\nexport * from './TableBody.types';\nexport * from './renderTableBody';\nexport * from './useTableBody';\nexport * from './useTableBodyStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -8,8 +8,6 @@ export const renderTableBody_unstable = state => {
8
8
  slots,
9
9
  slotProps
10
10
  } = getSlots(state);
11
- return /*#__PURE__*/React.createElement(slots.root, {
12
- ...slotProps.root
13
- });
11
+ return /*#__PURE__*/React.createElement(slots.root, slotProps.root);
14
12
  };
15
13
  //# sourceMappingURL=renderTableBody.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","renderTableBody_unstable","state","slots","slotProps","createElement","root"],"sources":["../src/packages/react-components/react-table/src/components/TableBody/renderTableBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableBodyState, TableBodySlots } from './TableBody.types';\n\n/**\n * Render the final JSX of TableBody\n */\nexport const renderTableBody_unstable = (state: TableBodyState) => {\n const { slots, slotProps } = getSlots<TableBodySlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAGpD;;;AAGA,OAAO,MAAMC,wBAAwB,GAAIC,KAAqB,IAAI;EAChE,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,QAAQ,CAAiBE,KAAK,CAAC;EAE5D,oBAAOH,KAAA,CAAAM,aAAA,CAACF,KAAK,CAACG,IAAI;IAAA,GAAKF,SAAS,CAACE;EAAI,EAAI;AAC3C,CAAC"}
1
+ {"version":3,"names":["React","getSlots","renderTableBody_unstable","state","slots","slotProps","createElement","root"],"sources":["../../../src/components/TableBody/renderTableBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableBodyState, TableBodySlots } from './TableBody.types';\n\n/**\n * Render the final JSX of TableBody\n */\nexport const renderTableBody_unstable = (state: TableBodyState) => {\n const { slots, slotProps } = getSlots<TableBodySlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,QAAQ,QAAQ;AAGzB;;;AAGA,OAAO,MAAMC,wBAAA,GAA4BC,KAAA,IAA0B;EACjE,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGJ,QAAA,CAAyBE,KAAA;EAEtD,oBAAOH,KAAA,CAAAM,aAAA,CAACF,KAAA,CAAMG,IAAI,EAAKF,SAAA,CAAUE,IAAI;AACvC"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { getNativeElementProps } from '@fluentui/react-utilities';
2
3
  import { useTableContext } from '../../contexts/tableContext';
3
4
  /**
@@ -10,11 +11,11 @@ import { useTableContext } from '../../contexts/tableContext';
10
11
  * @param ref - reference to root HTMLElement of TableBody
11
12
  */
12
13
  export const useTableBody_unstable = (props, ref) => {
13
- var _a;
14
14
  const {
15
15
  noNativeElements
16
16
  } = useTableContext();
17
- const rootComponent = ((_a = props.as) !== null && _a !== void 0 ? _a : noNativeElements) ? 'div' : 'tbody';
17
+ var _props_as;
18
+ const rootComponent = ((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : noNativeElements) ? 'div' : 'tbody';
18
19
  return {
19
20
  components: {
20
21
  root: rootComponent
@@ -1 +1 @@
1
- {"version":3,"names":["getNativeElementProps","useTableContext","useTableBody_unstable","props","ref","noNativeElements","rootComponent","_a","as","components","root","role","undefined"],"sources":["../src/packages/react-components/react-table/src/components/TableBody/useTableBody.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableBodyProps, TableBodyState } from './TableBody.types';\nimport { useTableContext } from '../../contexts/tableContext';\n\n/**\n * Create the state required to render TableBody.\n *\n * The returned state can be modified with hooks such as useTableBodyStyles_unstable,\n * before being passed to renderTableBody_unstable.\n *\n * @param props - props from this instance of TableBody\n * @param ref - reference to root HTMLElement of TableBody\n */\nexport const useTableBody_unstable = (props: TableBodyProps, ref: React.Ref<HTMLElement>): TableBodyState => {\n const { noNativeElements } = useTableContext();\n const rootComponent = props.as ?? noNativeElements ? 'div' : 'tbody';\n\n return {\n components: {\n root: rootComponent,\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'rowgroup' : undefined,\n ...props,\n }),\n noNativeElements,\n };\n};\n"],"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AAEjE,SAASC,eAAe,QAAQ,6BAA6B;AAE7D;;;;;;;;;AASA,OAAO,MAAMC,qBAAqB,GAAGA,CAACC,KAAqB,EAAEC,GAA2B,KAAoB;;EAC1G,MAAM;IAAEC;EAAgB,CAAE,GAAGJ,eAAe,EAAE;EAC9C,MAAMK,aAAa,GAAG,EAAAC,EAAA,GAAAJ,KAAK,CAACK,EAAE,cAAAD,EAAA,cAAAA,EAAA,GAAIF,gBAAgB,IAAG,KAAK,GAAG,OAAO;EAEpE,OAAO;IACLI,UAAU,EAAE;MACVC,IAAI,EAAEJ;KACP;IACDI,IAAI,EAAEV,qBAAqB,CAACM,aAAa,EAAE;MACzCF,GAAG;MACHO,IAAI,EAAEL,aAAa,KAAK,KAAK,GAAG,UAAU,GAAGM,SAAS;MACtD,GAAGT;KACJ,CAAC;IACFE;GACD;AACH,CAAC"}
1
+ {"version":3,"names":["React","getNativeElementProps","useTableContext","useTableBody_unstable","props","ref","noNativeElements","_props_as","rootComponent","as","components","root","role","undefined"],"sources":["../../../src/components/TableBody/useTableBody.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableBodyProps, TableBodyState } from './TableBody.types';\nimport { useTableContext } from '../../contexts/tableContext';\n\n/**\n * Create the state required to render TableBody.\n *\n * The returned state can be modified with hooks such as useTableBodyStyles_unstable,\n * before being passed to renderTableBody_unstable.\n *\n * @param props - props from this instance of TableBody\n * @param ref - reference to root HTMLElement of TableBody\n */\nexport const useTableBody_unstable = (props: TableBodyProps, ref: React.Ref<HTMLElement>): TableBodyState => {\n const { noNativeElements } = useTableContext();\n const rootComponent = props.as ?? noNativeElements ? 'div' : 'tbody';\n\n return {\n components: {\n root: rootComponent,\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'rowgroup' : undefined,\n ...props,\n }),\n noNativeElements,\n };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AAEtC,SAASC,eAAe,QAAQ;AAEhC;;;;;;;;;AASA,OAAO,MAAMC,qBAAA,GAAwBA,CAACC,KAAA,EAAuBC,GAAA,KAAgD;EAC3G,MAAM;IAAEC;EAAgB,CAAE,GAAGJ,eAAA;MACPK,SAAA;EAAtB,MAAMC,aAAA,GAAgB,EAAAD,SAAA,GAAAH,KAAA,CAAMK,EAAE,cAARF,SAAA,cAAAA,SAAA,GAAYD,gBAAgB,IAAG,QAAQ,OAAO;EAEpE,OAAO;IACLI,UAAA,EAAY;MACVC,IAAA,EAAMH;IACR;IACAG,IAAA,EAAMV,qBAAA,CAAsBO,aAAA,EAAe;MACzCH,GAAA;MACAO,IAAA,EAAMJ,aAAA,KAAkB,QAAQ,aAAaK,SAAS;MACtD,GAAGT;IACL;IACAE;EACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["mergeClasses","__styles","useTableLayoutStyles","root","mc9l5x","d","useFlexLayoutStyles","tableBodyClassName","tableBodyClassNames","useTableBodyStyles_unstable","state","layoutStyles","table","flex","className","noNativeElements"],"sources":["../src/packages/react-components/react-table/src/components/TableBody/useTableBodyStyles.ts"],"sourcesContent":["import { mergeClasses, makeStyles } from '@griffel/react';\nimport type { TableBodySlots, TableBodyState } from './TableBody.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-row-group',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'block',\n },\n});\n\nexport const tableBodyClassName = 'fui-TableBody';\nexport const tableBodyClassNames: SlotClassNames<TableBodySlots> = {\n root: 'fui-TableBody',\n};\n\n/**\n * Apply styling to the TableBody slots based on the state\n */\nexport const useTableBodyStyles_unstable = (state: TableBodyState): TableBodyState => {\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n state.root.className = mergeClasses(\n tableBodyClassName,\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.root.className,\n );\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,EAAAC,QAAA,QAAoB,gBAAgB;AAIzD,MAAMC,oBAAoB,gBAAGD,QAAA;EAAAE,IAAA;IAAAC,MAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAI3B;AAEF,MAAMC,mBAAmB,gBAAGL,QAAA;EAAAE,IAAA;IAAAC,MAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAI1B;AAEF,OAAO,MAAME,kBAAkB,GAAG,eAAe;AACjD,OAAO,MAAMC,mBAAmB,GAAmC;EACjEL,IAAI,EAAE;CACP;AAED;;;AAGA,OAAO,MAAMM,2BAA2B,GAAIC,KAAqB,IAAoB;EACnF,MAAMC,YAAY,GAAG;IACnBC,KAAK,EAAEV,oBAAoB,EAAE;IAC7BW,IAAI,EAAEP,mBAAmB;GAC1B;EACDI,KAAK,CAACP,IAAI,CAACW,SAAS,GAAGd,YAAY,CACjCO,kBAAkB,EAClBG,KAAK,CAACK,gBAAgB,GAAGJ,YAAY,CAACE,IAAI,CAACV,IAAI,GAAGQ,YAAY,CAACC,KAAK,CAACT,IAAI,EACzEO,KAAK,CAACP,IAAI,CAACW,SAAS,CACrB;EAED,OAAOJ,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["mergeClasses","__styles","useTableLayoutStyles","root","mc9l5x","d","useFlexLayoutStyles","tableBodyClassName","tableBodyClassNames","useTableBodyStyles_unstable","state","layoutStyles","table","flex","className","noNativeElements"],"sources":["../../../src/components/TableBody/useTableBodyStyles.ts"],"sourcesContent":["import { mergeClasses, makeStyles } from '@griffel/react';\nimport type { TableBodySlots, TableBodyState } from './TableBody.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-row-group',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'block',\n },\n});\n\nexport const tableBodyClassName = 'fui-TableBody';\nexport const tableBodyClassNames: SlotClassNames<TableBodySlots> = {\n root: 'fui-TableBody',\n};\n\n/**\n * Apply styling to the TableBody slots based on the state\n */\nexport const useTableBodyStyles_unstable = (state: TableBodyState): TableBodyState => {\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n state.root.className = mergeClasses(\n tableBodyClassName,\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.root.className,\n );\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,EAAAC,QAAA,QAAoB;AAIzC,MAAMC,oBAAA,gBAAuBD,QAAA;EAAAE,IAAA;IAAAC,MAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAI7B;AAEA,MAAMC,mBAAA,gBAAsBL,QAAA;EAAAE,IAAA;IAAAC,MAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAI5B;AAEA,OAAO,MAAME,kBAAA,GAAqB;AAClC,OAAO,MAAMC,mBAAA,GAAsD;EACjEL,IAAA,EAAM;AACR;AAEA;;;AAGA,OAAO,MAAMM,2BAAA,GAA+BC,KAAA,IAA0C;EACpF,MAAMC,YAAA,GAAe;IACnBC,KAAA,EAAOV,oBAAA;IACPW,IAAA,EAAMP,mBAAA;EACR;EACAI,KAAA,CAAMP,IAAI,CAACW,SAAS,GAAGd,YAAA,CACrBO,kBAAA,EACAG,KAAA,CAAMK,gBAAgB,GAAGJ,YAAA,CAAaE,IAAI,CAACV,IAAI,GAAGQ,YAAA,CAAaC,KAAK,CAACT,IAAI,EACzEO,KAAA,CAAMP,IAAI,CAACW,SAAS;EAGtB,OAAOJ,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useTableCell_unstable","renderTableCell_unstable","useTableCellStyles_unstable","useCustomStyleHooks_unstable","TableCell","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-table/src/components/TableCell/TableCell.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTableCell_unstable } from './useTableCell';\nimport { renderTableCell_unstable } from './renderTableCell';\nimport { useTableCellStyles_unstable } from './useTableCellStyles';\nimport type { TableCellProps } from './TableCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableCell component\n */\nexport const TableCell: ForwardRefComponent<TableCellProps> = React.forwardRef((props, ref) => {\n const state = useTableCell_unstable(props, ref);\n\n useTableCellStyles_unstable(state);\n\n const { useTableCellStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTableCell_unstable(state);\n});\n\nTableCell.displayName = 'TableCell';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,qBAAqB,QAAQ,gBAAgB;AACtD,SAASC,wBAAwB,QAAQ,mBAAmB;AAC5D,SAASC,2BAA2B,QAAQ,sBAAsB;AAGlE,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,SAAS,gBAAwCL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC5F,MAAMC,KAAK,GAAGR,qBAAqB,CAACM,KAAK,EAAEC,GAAG,CAAC;EAE/CL,2BAA2B,CAACM,KAAK,CAAC;EAElC,MAAM;IAAEN,2BAA2B,EAAEO;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EACvFM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOP,wBAAwB,CAACO,KAAK,CAAC;AACxC,CAAC,CAAC;AAEFJ,SAAS,CAACM,WAAW,GAAG,WAAW"}
1
+ {"version":3,"names":["React","useTableCell_unstable","renderTableCell_unstable","useTableCellStyles_unstable","useCustomStyleHooks_unstable","TableCell","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../src/components/TableCell/TableCell.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTableCell_unstable } from './useTableCell';\nimport { renderTableCell_unstable } from './renderTableCell';\nimport { useTableCellStyles_unstable } from './useTableCellStyles';\nimport type { TableCellProps } from './TableCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableCell component\n */\nexport const TableCell: ForwardRefComponent<TableCellProps> = React.forwardRef((props, ref) => {\n const state = useTableCell_unstable(props, ref);\n\n useTableCellStyles_unstable(state);\n\n const { useTableCellStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTableCell_unstable(state);\n});\n\nTableCell.displayName = 'TableCell';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AACtC,SAASC,wBAAwB,QAAQ;AACzC,SAASC,2BAA2B,QAAQ;AAG5C,SAASC,4BAA4B,QAAQ;AAE7C;;;AAGA,OAAO,MAAMC,SAAA,gBAAiDL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EAC7F,MAAMC,KAAA,GAAQR,qBAAA,CAAsBM,KAAA,EAAOC,GAAA;EAE3CL,2BAAA,CAA4BM,KAAA;EAE5B,MAAM;IAAEN,2BAAA,EAA6BO;EAAe,CAAE,GAAGN,4BAAA;EACzDM,eAAA,CAAgBD,KAAA;EAEhB,OAAOP,wBAAA,CAAyBO,KAAA;AAClC;AAEAJ,SAAA,CAAUM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableCell/TableCell.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { TableContextValue } from '../Table/Table.types';\n\nexport type TableCellSlots = {\n root: Slot<'td', 'div'>;\n};\n\n/**\n * TableCell Props\n */\nexport type TableCellProps = ComponentProps<TableCellSlots> & {};\n\n/**\n * State used in rendering TableCell\n */\nexport type TableCellState = ComponentState<TableCellSlots> & Pick<TableContextValue, 'noNativeElements' | 'size'>;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/TableCell/TableCell.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { TableContextValue } from '../Table/Table.types';\n\nexport type TableCellSlots = {\n root: Slot<'td', 'div'>;\n};\n\n/**\n * TableCell Props\n */\nexport type TableCellProps = ComponentProps<TableCellSlots> & {};\n\n/**\n * State used in rendering TableCell\n */\nexport type TableCellState = ComponentState<TableCellSlots> & Pick<TableContextValue, 'noNativeElements' | 'size'>;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableCell/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC","sourcesContent":["export * from './TableCell';\nexport * from './TableCell.types';\nexport * from './renderTableCell';\nexport * from './useTableCell';\nexport * from './useTableCellStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/TableCell/index.ts"],"sourcesContent":["export * from './TableCell';\nexport * from './TableCell.types';\nexport * from './renderTableCell';\nexport * from './useTableCell';\nexport * from './useTableCellStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -8,8 +8,6 @@ export const renderTableCell_unstable = state => {
8
8
  slots,
9
9
  slotProps
10
10
  } = getSlots(state);
11
- return /*#__PURE__*/React.createElement(slots.root, {
12
- ...slotProps.root
13
- });
11
+ return /*#__PURE__*/React.createElement(slots.root, slotProps.root);
14
12
  };
15
13
  //# sourceMappingURL=renderTableCell.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","renderTableCell_unstable","state","slots","slotProps","createElement","root"],"sources":["../src/packages/react-components/react-table/src/components/TableCell/renderTableCell.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableCellState, TableCellSlots } from './TableCell.types';\n\n/**\n * Render the final JSX of TableCell\n */\nexport const renderTableCell_unstable = (state: TableCellState) => {\n const { slots, slotProps } = getSlots<TableCellSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAGpD;;;AAGA,OAAO,MAAMC,wBAAwB,GAAIC,KAAqB,IAAI;EAChE,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,QAAQ,CAAiBE,KAAK,CAAC;EAE5D,oBAAOH,KAAA,CAAAM,aAAA,CAACF,KAAK,CAACG,IAAI;IAAA,GAAKF,SAAS,CAACE;EAAI,EAAI;AAC3C,CAAC"}
1
+ {"version":3,"names":["React","getSlots","renderTableCell_unstable","state","slots","slotProps","createElement","root"],"sources":["../../../src/components/TableCell/renderTableCell.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableCellState, TableCellSlots } from './TableCell.types';\n\n/**\n * Render the final JSX of TableCell\n */\nexport const renderTableCell_unstable = (state: TableCellState) => {\n const { slots, slotProps } = getSlots<TableCellSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,QAAQ,QAAQ;AAGzB;;;AAGA,OAAO,MAAMC,wBAAA,GAA4BC,KAAA,IAA0B;EACjE,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGJ,QAAA,CAAyBE,KAAA;EAEtD,oBAAOH,KAAA,CAAAM,aAAA,CAACF,KAAA,CAAMG,IAAI,EAAKF,SAAA,CAAUE,IAAI;AACvC"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { getNativeElementProps } from '@fluentui/react-utilities';
2
3
  import { useTableContext } from '../../contexts/tableContext';
3
4
  /**
@@ -10,12 +11,12 @@ import { useTableContext } from '../../contexts/tableContext';
10
11
  * @param ref - reference to root HTMLElement of TableCell
11
12
  */
12
13
  export const useTableCell_unstable = (props, ref) => {
13
- var _a;
14
14
  const {
15
15
  noNativeElements,
16
16
  size
17
17
  } = useTableContext();
18
- const rootComponent = ((_a = props.as) !== null && _a !== void 0 ? _a : noNativeElements) ? 'div' : 'td';
18
+ var _props_as;
19
+ const rootComponent = ((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : noNativeElements) ? 'div' : 'td';
19
20
  return {
20
21
  components: {
21
22
  root: rootComponent
@@ -1 +1 @@
1
- {"version":3,"names":["getNativeElementProps","useTableContext","useTableCell_unstable","props","ref","noNativeElements","size","rootComponent","_a","as","components","root","role","undefined"],"sources":["../src/packages/react-components/react-table/src/components/TableCell/useTableCell.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableCellProps, TableCellState } from './TableCell.types';\nimport { useTableContext } from '../../contexts/tableContext';\n\n/**\n * Create the state required to render TableCell.\n *\n * The returned state can be modified with hooks such as useTableCellStyles_unstable,\n * before being passed to renderTableCell_unstable.\n *\n * @param props - props from this instance of TableCell\n * @param ref - reference to root HTMLElement of TableCell\n */\nexport const useTableCell_unstable = (props: TableCellProps, ref: React.Ref<HTMLElement>): TableCellState => {\n const { noNativeElements, size } = useTableContext();\n\n const rootComponent = props.as ?? noNativeElements ? 'div' : 'td';\n\n return {\n components: {\n root: rootComponent,\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'cell' : undefined,\n ...props,\n }),\n noNativeElements,\n size,\n };\n};\n"],"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AAEjE,SAASC,eAAe,QAAQ,6BAA6B;AAE7D;;;;;;;;;AASA,OAAO,MAAMC,qBAAqB,GAAGA,CAACC,KAAqB,EAAEC,GAA2B,KAAoB;;EAC1G,MAAM;IAAEC,gBAAgB;IAAEC;EAAI,CAAE,GAAGL,eAAe,EAAE;EAEpD,MAAMM,aAAa,GAAG,EAAAC,EAAA,GAAAL,KAAK,CAACM,EAAE,cAAAD,EAAA,cAAAA,EAAA,GAAIH,gBAAgB,IAAG,KAAK,GAAG,IAAI;EAEjE,OAAO;IACLK,UAAU,EAAE;MACVC,IAAI,EAAEJ;KACP;IACDI,IAAI,EAAEX,qBAAqB,CAACO,aAAa,EAAE;MACzCH,GAAG;MACHQ,IAAI,EAAEL,aAAa,KAAK,KAAK,GAAG,MAAM,GAAGM,SAAS;MAClD,GAAGV;KACJ,CAAC;IACFE,gBAAgB;IAChBC;GACD;AACH,CAAC"}
1
+ {"version":3,"names":["React","getNativeElementProps","useTableContext","useTableCell_unstable","props","ref","noNativeElements","size","_props_as","rootComponent","as","components","root","role","undefined"],"sources":["../../../src/components/TableCell/useTableCell.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableCellProps, TableCellState } from './TableCell.types';\nimport { useTableContext } from '../../contexts/tableContext';\n\n/**\n * Create the state required to render TableCell.\n *\n * The returned state can be modified with hooks such as useTableCellStyles_unstable,\n * before being passed to renderTableCell_unstable.\n *\n * @param props - props from this instance of TableCell\n * @param ref - reference to root HTMLElement of TableCell\n */\nexport const useTableCell_unstable = (props: TableCellProps, ref: React.Ref<HTMLElement>): TableCellState => {\n const { noNativeElements, size } = useTableContext();\n\n const rootComponent = props.as ?? noNativeElements ? 'div' : 'td';\n\n return {\n components: {\n root: rootComponent,\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'cell' : undefined,\n ...props,\n }),\n noNativeElements,\n size,\n };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AAEtC,SAASC,eAAe,QAAQ;AAEhC;;;;;;;;;AASA,OAAO,MAAMC,qBAAA,GAAwBA,CAACC,KAAA,EAAuBC,GAAA,KAAgD;EAC3G,MAAM;IAAEC,gBAAA;IAAkBC;EAAI,CAAE,GAAGL,eAAA;MAEbM,SAAA;EAAtB,MAAMC,aAAA,GAAgB,EAAAD,SAAA,GAAAJ,KAAA,CAAMM,EAAE,cAARF,SAAA,cAAAA,SAAA,GAAYF,gBAAgB,IAAG,QAAQ,IAAI;EAEjE,OAAO;IACLK,UAAA,EAAY;MACVC,IAAA,EAAMH;IACR;IACAG,IAAA,EAAMX,qBAAA,CAAsBQ,aAAA,EAAe;MACzCJ,GAAA;MACAQ,IAAA,EAAMJ,aAAA,KAAkB,QAAQ,SAASK,SAAS;MAClD,GAAGV;IACL;IACAE,gBAAA;IACAC;EACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["__styles","mergeClasses","shorthands","tokens","createCustomFocusIndicatorStyle","tableCellClassName","tableCellClassNames","root","useTableLayoutStyles","mc9l5x","ha4doy","medium","Bqenvij","small","d","useFlexLayoutStyles","Bf4jedk","Bt984gj","Bh6795r","Bnnss6s","xawz","sshi5w","useStyles","De3pzq","qhf8xq","z8tnut","z189sj","Byoj8tv","uwmqm3","Bn4voq9","g9k6zt","Bfpq7zp","kdpuga","Bw81rd7","B6xbmo0","dm238s","useTableCellStyles_unstable","state","styles","layoutStyles","table","flex","className","noNativeElements","size"],"sources":["../src/packages/react-components/react-table/src/components/TableCell/useTableCellStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { TableCellSlots, TableCellState } from './TableCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const tableCellClassName = 'fui-TableCell';\nexport const tableCellClassNames: SlotClassNames<TableCellSlots> = {\n root: tableCellClassName,\n};\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-cell',\n verticalAlign: 'middle',\n },\n\n medium: {\n height: '44px',\n },\n\n small: {\n height: '34px',\n },\n\n 'extra-small': {\n height: '24px',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n minWidth: '0px',\n alignItems: 'center',\n ...shorthands.flex(1, 1, '0px'),\n },\n\n medium: {\n minHeight: '44px',\n },\n\n small: {\n minHeight: '34px',\n },\n\n 'extra-small': {\n minHeight: '24px',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n backgroundColor: 'inherit',\n position: 'relative',\n ...shorthands.padding('0px', tokens.spacingHorizontalS),\n\n ...createCustomFocusIndicatorStyle(\n {\n ...shorthands.outline('2px', 'solid', tokens.colorStrokeFocus2),\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n },\n { selector: 'focus', enableOutline: true },\n ),\n },\n});\n\n/**\n * Apply styling to the TableCell slots based on the state\n */\nexport const useTableCellStyles_unstable = (state: TableCellState): TableCellState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n state.root.className = mergeClasses(\n tableCellClassNames.root,\n styles.root,\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.noNativeElements ? layoutStyles.flex[state.size] : layoutStyles.table[state.size],\n state.root.className,\n );\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AACrE,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,+BAA+B,QAAQ,yBAAyB;AAIzE,OAAO,MAAMC,kBAAkB,GAAG,eAAe;AACjD,OAAO,MAAMC,mBAAmB,GAAmC;EACjEC,IAAI,EAAEF;CACP;AAED,MAAMG,oBAAoB,gBAAGR,QAAA;EAAAO,IAAA;IAAAE,MAAA;IAAAC,MAAA;EAAA;EAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAC,KAAA;IAAAD,OAAA;EAAA;EAAA;IAAAA,OAAA;EAAA;AAAA;EAAAE,CAAA;AAAA,EAiB3B;AAEF,MAAMC,mBAAmB,gBAAGf,QAAA;EAAAO,IAAA;IAAAE,MAAA;IAAAO,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,IAAA;EAAA;EAAAT,MAAA;IAAAU,MAAA;EAAA;EAAAR,KAAA;IAAAQ,MAAA;EAAA;EAAA;IAAAA,MAAA;EAAA;AAAA;EAAAP,CAAA;AAAA,EAmB1B;AAEF;;;AAGA,MAAMQ,SAAS,gBAAGtB,QAAA;EAAAO,IAAA;IAAAgB,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;AAAA;EAAArB,CAAA;AAAA,EAchB;AAEF;;;AAGA,OAAO,MAAMsB,2BAA2B,GAAIC,KAAqB,IAAoB;EACnF,MAAMC,MAAM,GAAGhB,SAAS,EAAE;EAC1B,MAAMiB,YAAY,GAAG;IACnBC,KAAK,EAAEhC,oBAAoB,EAAE;IAC7BiC,IAAI,EAAE1B,mBAAmB;GAC1B;EACDsB,KAAK,CAAC9B,IAAI,CAACmC,SAAS,GAAGzC,YAAY,CACjCK,mBAAmB,CAACC,IAAI,EACxB+B,MAAM,CAAC/B,IAAI,EACX8B,KAAK,CAACM,gBAAgB,GAAGJ,YAAY,CAACE,IAAI,CAAClC,IAAI,GAAGgC,YAAY,CAACC,KAAK,CAACjC,IAAI,EACzE8B,KAAK,CAACM,gBAAgB,GAAGJ,YAAY,CAACE,IAAI,CAACJ,KAAK,CAACO,IAAI,CAAC,GAAGL,YAAY,CAACC,KAAK,CAACH,KAAK,CAACO,IAAI,CAAC,EACvFP,KAAK,CAAC9B,IAAI,CAACmC,SAAS,CACrB;EACD,OAAOL,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["__styles","mergeClasses","shorthands","tokens","createCustomFocusIndicatorStyle","tableCellClassName","tableCellClassNames","root","useTableLayoutStyles","mc9l5x","ha4doy","medium","Bqenvij","small","d","useFlexLayoutStyles","Bf4jedk","Bt984gj","Bh6795r","Bnnss6s","xawz","sshi5w","useStyles","De3pzq","qhf8xq","z8tnut","z189sj","Byoj8tv","uwmqm3","Bn4voq9","g9k6zt","Bfpq7zp","kdpuga","Bw81rd7","B6xbmo0","dm238s","useTableCellStyles_unstable","state","styles","layoutStyles","table","flex","className","noNativeElements","size"],"sources":["../../../src/components/TableCell/useTableCellStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { TableCellSlots, TableCellState } from './TableCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const tableCellClassName = 'fui-TableCell';\nexport const tableCellClassNames: SlotClassNames<TableCellSlots> = {\n root: tableCellClassName,\n};\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-cell',\n verticalAlign: 'middle',\n },\n\n medium: {\n height: '44px',\n },\n\n small: {\n height: '34px',\n },\n\n 'extra-small': {\n height: '24px',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n minWidth: '0px',\n alignItems: 'center',\n ...shorthands.flex(1, 1, '0px'),\n },\n\n medium: {\n minHeight: '44px',\n },\n\n small: {\n minHeight: '34px',\n },\n\n 'extra-small': {\n minHeight: '24px',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n backgroundColor: 'inherit',\n position: 'relative',\n ...shorthands.padding('0px', tokens.spacingHorizontalS),\n\n ...createCustomFocusIndicatorStyle(\n {\n ...shorthands.outline('2px', 'solid', tokens.colorStrokeFocus2),\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n },\n { selector: 'focus', enableOutline: true },\n ),\n },\n});\n\n/**\n * Apply styling to the TableCell slots based on the state\n */\nexport const useTableCellStyles_unstable = (state: TableCellState): TableCellState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n state.root.className = mergeClasses(\n tableCellClassNames.root,\n styles.root,\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.noNativeElements ? layoutStyles.flex[state.size] : layoutStyles.table[state.size],\n state.root.className,\n );\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,EAAEC,UAAU,QAAQ;AACrD,SAASC,MAAM,QAAQ;AACvB,SAASC,+BAA+B,QAAQ;AAIhD,OAAO,MAAMC,kBAAA,GAAqB;AAClC,OAAO,MAAMC,mBAAA,GAAsD;EACjEC,IAAA,EAAMF;AACR;AAEA,MAAMG,oBAAA,gBAAuBR,QAAA;EAAAO,IAAA;IAAAE,MAAA;IAAAC,MAAA;EAAA;EAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAC,KAAA;IAAAD,OAAA;EAAA;EAAA;IAAAA,OAAA;EAAA;AAAA;EAAAE,CAAA;AAAA,EAiB7B;AAEA,MAAMC,mBAAA,gBAAsBf,QAAA;EAAAO,IAAA;IAAAE,MAAA;IAAAO,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,IAAA;EAAA;EAAAT,MAAA;IAAAU,MAAA;EAAA;EAAAR,KAAA;IAAAQ,MAAA;EAAA;EAAA;IAAAA,MAAA;EAAA;AAAA;EAAAP,CAAA;AAAA,EAmB5B;AAEA;;;AAGA,MAAMQ,SAAA,gBAAYtB,QAAA;EAAAO,IAAA;IAAAgB,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;AAAA;EAAArB,CAAA;AAAA,EAclB;AAEA;;;AAGA,OAAO,MAAMsB,2BAAA,GAA+BC,KAAA,IAA0C;EACpF,MAAMC,MAAA,GAAShB,SAAA;EACf,MAAMiB,YAAA,GAAe;IACnBC,KAAA,EAAOhC,oBAAA;IACPiC,IAAA,EAAM1B,mBAAA;EACR;EACAsB,KAAA,CAAM9B,IAAI,CAACmC,SAAS,GAAGzC,YAAA,CACrBK,mBAAA,CAAoBC,IAAI,EACxB+B,MAAA,CAAO/B,IAAI,EACX8B,KAAA,CAAMM,gBAAgB,GAAGJ,YAAA,CAAaE,IAAI,CAAClC,IAAI,GAAGgC,YAAA,CAAaC,KAAK,CAACjC,IAAI,EACzE8B,KAAA,CAAMM,gBAAgB,GAAGJ,YAAA,CAAaE,IAAI,CAACJ,KAAA,CAAMO,IAAI,CAAC,GAAGL,YAAA,CAAaC,KAAK,CAACH,KAAA,CAAMO,IAAI,CAAC,EACvFP,KAAA,CAAM9B,IAAI,CAACmC,SAAS;EAEtB,OAAOL,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useTableCellActions_unstable","renderTableCellActions_unstable","useTableCellActionsStyles_unstable","useCustomStyleHooks_unstable","TableCellActions","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-table/src/components/TableCellActions/TableCellActions.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTableCellActions_unstable } from './useTableCellActions';\nimport { renderTableCellActions_unstable } from './renderTableCellActions';\nimport { useTableCellActionsStyles_unstable } from './useTableCellActionsStyles';\nimport type { TableCellActionsProps } from './TableCellActions.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableCellActions component\n */\nexport const TableCellActions: ForwardRefComponent<TableCellActionsProps> = React.forwardRef((props, ref) => {\n const state = useTableCellActions_unstable(props, ref);\n\n useTableCellActionsStyles_unstable(state);\n\n const { useTableCellActionsStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTableCellActions_unstable(state);\n});\n\nTableCellActions.displayName = 'TableCellActions';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,4BAA4B,QAAQ,uBAAuB;AACpE,SAASC,+BAA+B,QAAQ,0BAA0B;AAC1E,SAASC,kCAAkC,QAAQ,6BAA6B;AAGhF,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,gBAAgB,gBAA+CL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC1G,MAAMC,KAAK,GAAGR,4BAA4B,CAACM,KAAK,EAAEC,GAAG,CAAC;EAEtDL,kCAAkC,CAACM,KAAK,CAAC;EAEzC,MAAM;IAAEN,kCAAkC,EAAEO;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EAC9FM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOP,+BAA+B,CAACO,KAAK,CAAC;AAC/C,CAAC,CAAC;AAEFJ,gBAAgB,CAACM,WAAW,GAAG,kBAAkB"}
1
+ {"version":3,"names":["React","useTableCellActions_unstable","renderTableCellActions_unstable","useTableCellActionsStyles_unstable","useCustomStyleHooks_unstable","TableCellActions","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../src/components/TableCellActions/TableCellActions.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTableCellActions_unstable } from './useTableCellActions';\nimport { renderTableCellActions_unstable } from './renderTableCellActions';\nimport { useTableCellActionsStyles_unstable } from './useTableCellActionsStyles';\nimport type { TableCellActionsProps } from './TableCellActions.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableCellActions component\n */\nexport const TableCellActions: ForwardRefComponent<TableCellActionsProps> = React.forwardRef((props, ref) => {\n const state = useTableCellActions_unstable(props, ref);\n\n useTableCellActionsStyles_unstable(state);\n\n const { useTableCellActionsStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTableCellActions_unstable(state);\n});\n\nTableCellActions.displayName = 'TableCellActions';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,4BAA4B,QAAQ;AAC7C,SAASC,+BAA+B,QAAQ;AAChD,SAASC,kCAAkC,QAAQ;AAGnD,SAASC,4BAA4B,QAAQ;AAE7C;;;AAGA,OAAO,MAAMC,gBAAA,gBAA+DL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EAC3G,MAAMC,KAAA,GAAQR,4BAAA,CAA6BM,KAAA,EAAOC,GAAA;EAElDL,kCAAA,CAAmCM,KAAA;EAEnC,MAAM;IAAEN,kCAAA,EAAoCO;EAAe,CAAE,GAAGN,4BAAA;EAChEM,eAAA,CAAgBD,KAAA;EAEhB,OAAOP,+BAAA,CAAgCO,KAAA;AACzC;AAEAJ,gBAAA,CAAiBM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableCellActions.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableCellActions/TableCellActions.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TableCellActionsSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * TableCellActions Props\n */\nexport type TableCellActionsProps = ComponentProps<TableCellActionsSlots> & {\n /**\n * When true, the actions are always visible regardless of row hover.\n * Can be useful keeping the actions visible when a popout surface is opened.\n */\n visible?: boolean;\n};\n\n/**\n * State used in rendering TableCellActions\n */\nexport type TableCellActionsState = ComponentState<TableCellActionsSlots> &\n Pick<Required<TableCellActionsProps>, 'visible'>;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/TableCellActions/TableCellActions.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TableCellActionsSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * TableCellActions Props\n */\nexport type TableCellActionsProps = ComponentProps<TableCellActionsSlots> & {\n /**\n * When true, the actions are always visible regardless of row hover.\n * Can be useful keeping the actions visible when a popout surface is opened.\n */\n visible?: boolean;\n};\n\n/**\n * State used in rendering TableCellActions\n */\nexport type TableCellActionsState = ComponentState<TableCellActionsSlots> &\n Pick<Required<TableCellActionsProps>, 'visible'>;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableCellActions/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './TableCellActions';\nexport * from './TableCellActions.types';\nexport * from './renderTableCellActions';\nexport * from './useTableCellActions';\nexport * from './useTableCellActionsStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/TableCellActions/index.ts"],"sourcesContent":["export * from './TableCellActions';\nexport * from './TableCellActions.types';\nexport * from './renderTableCellActions';\nexport * from './useTableCellActions';\nexport * from './useTableCellActionsStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -8,8 +8,6 @@ export const renderTableCellActions_unstable = state => {
8
8
  slots,
9
9
  slotProps
10
10
  } = getSlots(state);
11
- return /*#__PURE__*/React.createElement(slots.root, {
12
- ...slotProps.root
13
- });
11
+ return /*#__PURE__*/React.createElement(slots.root, slotProps.root);
14
12
  };
15
13
  //# sourceMappingURL=renderTableCellActions.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","renderTableCellActions_unstable","state","slots","slotProps","createElement","root"],"sources":["../src/packages/react-components/react-table/src/components/TableCellActions/renderTableCellActions.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableCellActionsState, TableCellActionsSlots } from './TableCellActions.types';\n\n/**\n * Render the final JSX of TableCellActions\n */\nexport const renderTableCellActions_unstable = (state: TableCellActionsState) => {\n const { slots, slotProps } = getSlots<TableCellActionsSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAGpD;;;AAGA,OAAO,MAAMC,+BAA+B,GAAIC,KAA4B,IAAI;EAC9E,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,QAAQ,CAAwBE,KAAK,CAAC;EAEnE,oBAAOH,KAAA,CAAAM,aAAA,CAACF,KAAK,CAACG,IAAI;IAAA,GAAKF,SAAS,CAACE;EAAI,EAAI;AAC3C,CAAC"}
1
+ {"version":3,"names":["React","getSlots","renderTableCellActions_unstable","state","slots","slotProps","createElement","root"],"sources":["../../../src/components/TableCellActions/renderTableCellActions.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableCellActionsState, TableCellActionsSlots } from './TableCellActions.types';\n\n/**\n * Render the final JSX of TableCellActions\n */\nexport const renderTableCellActions_unstable = (state: TableCellActionsState) => {\n const { slots, slotProps } = getSlots<TableCellActionsSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,QAAQ,QAAQ;AAGzB;;;AAGA,OAAO,MAAMC,+BAAA,GAAmCC,KAAA,IAAiC;EAC/E,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGJ,QAAA,CAAgCE,KAAA;EAE7D,oBAAOH,KAAA,CAAAM,aAAA,CAACF,KAAA,CAAMG,IAAI,EAAKF,SAAA,CAAUE,IAAI;AACvC"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { getNativeElementProps } from '@fluentui/react-utilities';
2
3
  /**
3
4
  * Create the state required to render TableCellActions.
@@ -9,7 +10,7 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
9
10
  * @param ref - reference to root HTMLElement of TableCellActions
10
11
  */
11
12
  export const useTableCellActions_unstable = (props, ref) => {
12
- var _a;
13
+ var _props_visible;
13
14
  return {
14
15
  components: {
15
16
  root: 'div'
@@ -18,7 +19,7 @@ export const useTableCellActions_unstable = (props, ref) => {
18
19
  ref,
19
20
  ...props
20
21
  }),
21
- visible: (_a = props.visible) !== null && _a !== void 0 ? _a : false
22
+ visible: (_props_visible = props.visible) !== null && _props_visible !== void 0 ? _props_visible : false
22
23
  };
23
24
  };
24
25
  //# sourceMappingURL=useTableCellActions.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getNativeElementProps","useTableCellActions_unstable","props","ref","components","root","visible","_a"],"sources":["../src/packages/react-components/react-table/src/components/TableCellActions/useTableCellActions.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableCellActionsProps, TableCellActionsState } from './TableCellActions.types';\n\n/**\n * Create the state required to render TableCellActions.\n *\n * The returned state can be modified with hooks such as useTableCellActionsStyles_unstable,\n * before being passed to renderTableCellActions_unstable.\n *\n * @param props - props from this instance of TableCellActions\n * @param ref - reference to root HTMLElement of TableCellActions\n */\nexport const useTableCellActions_unstable = (\n props: TableCellActionsProps,\n ref: React.Ref<HTMLElement>,\n): TableCellActionsState => {\n return {\n components: {\n root: 'div',\n },\n root: getNativeElementProps('div', {\n ref,\n ...props,\n }),\n visible: props.visible ?? false,\n };\n};\n"],"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AAGjE;;;;;;;;;AASA,OAAO,MAAMC,4BAA4B,GAAGA,CAC1CC,KAA4B,EAC5BC,GAA2B,KACF;;EACzB,OAAO;IACLC,UAAU,EAAE;MACVC,IAAI,EAAE;KACP;IACDA,IAAI,EAAEL,qBAAqB,CAAC,KAAK,EAAE;MACjCG,GAAG;MACH,GAAGD;KACJ,CAAC;IACFI,OAAO,EAAE,CAAAC,EAAA,GAAAL,KAAK,CAACI,OAAO,cAAAC,EAAA,cAAAA,EAAA,GAAI;GAC3B;AACH,CAAC"}
1
+ {"version":3,"names":["React","getNativeElementProps","useTableCellActions_unstable","props","ref","_props_visible","components","root","visible"],"sources":["../../../src/components/TableCellActions/useTableCellActions.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableCellActionsProps, TableCellActionsState } from './TableCellActions.types';\n\n/**\n * Create the state required to render TableCellActions.\n *\n * The returned state can be modified with hooks such as useTableCellActionsStyles_unstable,\n * before being passed to renderTableCellActions_unstable.\n *\n * @param props - props from this instance of TableCellActions\n * @param ref - reference to root HTMLElement of TableCellActions\n */\nexport const useTableCellActions_unstable = (\n props: TableCellActionsProps,\n ref: React.Ref<HTMLElement>,\n): TableCellActionsState => {\n return {\n components: {\n root: 'div',\n },\n root: getNativeElementProps('div', {\n ref,\n ...props,\n }),\n visible: props.visible ?? false,\n };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AAGtC;;;;;;;;;AASA,OAAO,MAAMC,4BAAA,GAA+BA,CAC1CC,KAAA,EACAC,GAAA,KAC0B;MASfC,cAAA;EARX,OAAO;IACLC,UAAA,EAAY;MACVC,IAAA,EAAM;IACR;IACAA,IAAA,EAAMN,qBAAA,CAAsB,OAAO;MACjCG,GAAA;MACA,GAAGD;IACL;IACAK,OAAA,EAAS,CAAAH,cAAA,GAAAF,KAAA,CAAMK,OAAO,cAAbH,cAAA,cAAAA,cAAA,GAAiB;EAC5B;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["__styles","mergeClasses","tableCellActionsClassNames","root","useStyles","De3pzq","qhf8xq","j35jbq","Bhzewxz","Bz10aip","abs64n","Frg6f3","visible","d","useTableCellActionsStyles_unstable","state","styles","className"],"sources":["../src/packages/react-components/react-table/src/components/TableCellActions/useTableCellActionsStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport type { TableCellActionsSlots, TableCellActionsState } from './TableCellActions.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const tableCellActionsClassNames: SlotClassNames<TableCellActionsSlots> = {\n root: 'fui-TableCellActions',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n backgroundColor: 'inherit',\n position: 'absolute',\n right: '0px',\n top: '50%',\n transform: 'translateY(-50%)',\n opacity: 0,\n marginLeft: 'auto',\n },\n\n visible: {\n opacity: 1,\n },\n});\n\n/**\n * Apply styling to the TableCellActions slots based on the state\n */\nexport const useTableCellActionsStyles_unstable = (state: TableCellActionsState): TableCellActionsState => {\n const styles = useStyles();\n state.root.className = mergeClasses(\n tableCellActionsClassNames.root,\n styles.root,\n state.visible && styles.visible,\n state.root.className,\n );\n\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AAIzD,OAAO,MAAMC,0BAA0B,GAA0C;EAC/EC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGJ,QAAA;EAAAG,IAAA;IAAAE,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;EAAAC,OAAA;IAAAF,MAAA;EAAA;AAAA;EAAAG,CAAA;AAAA,EAchB;AAEF;;;AAGA,OAAO,MAAMC,kCAAkC,GAAIC,KAA4B,IAA2B;EACxG,MAAMC,MAAM,GAAGZ,SAAS,EAAE;EAC1BW,KAAK,CAACZ,IAAI,CAACc,SAAS,GAAGhB,YAAY,CACjCC,0BAA0B,CAACC,IAAI,EAC/Ba,MAAM,CAACb,IAAI,EACXY,KAAK,CAACH,OAAO,IAAII,MAAM,CAACJ,OAAO,EAC/BG,KAAK,CAACZ,IAAI,CAACc,SAAS,CACrB;EAED,OAAOF,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["__styles","mergeClasses","tableCellActionsClassNames","root","useStyles","De3pzq","qhf8xq","j35jbq","Bhzewxz","Bz10aip","abs64n","Frg6f3","visible","d","useTableCellActionsStyles_unstable","state","styles","className"],"sources":["../../../src/components/TableCellActions/useTableCellActionsStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport type { TableCellActionsSlots, TableCellActionsState } from './TableCellActions.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const tableCellActionsClassNames: SlotClassNames<TableCellActionsSlots> = {\n root: 'fui-TableCellActions',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n backgroundColor: 'inherit',\n position: 'absolute',\n right: '0px',\n top: '50%',\n transform: 'translateY(-50%)',\n opacity: 0,\n marginLeft: 'auto',\n },\n\n visible: {\n opacity: 1,\n },\n});\n\n/**\n * Apply styling to the TableCellActions slots based on the state\n */\nexport const useTableCellActionsStyles_unstable = (state: TableCellActionsState): TableCellActionsState => {\n const styles = useStyles();\n state.root.className = mergeClasses(\n tableCellActionsClassNames.root,\n styles.root,\n state.visible && styles.visible,\n state.root.className,\n );\n\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ;AAIzC,OAAO,MAAMC,0BAAA,GAAoE;EAC/EC,IAAA,EAAM;AACR;AAEA;;;AAGA,MAAMC,SAAA,gBAAYJ,QAAA;EAAAG,IAAA;IAAAE,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;EAAAC,OAAA;IAAAF,MAAA;EAAA;AAAA;EAAAG,CAAA;AAAA,EAclB;AAEA;;;AAGA,OAAO,MAAMC,kCAAA,GAAsCC,KAAA,IAAwD;EACzG,MAAMC,MAAA,GAASZ,SAAA;EACfW,KAAA,CAAMZ,IAAI,CAACc,SAAS,GAAGhB,YAAA,CACrBC,0BAAA,CAA2BC,IAAI,EAC/Ba,MAAA,CAAOb,IAAI,EACXY,KAAA,CAAMH,OAAO,IAAII,MAAA,CAAOJ,OAAO,EAC/BG,KAAA,CAAMZ,IAAI,CAACc,SAAS;EAGtB,OAAOF,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useTableCellLayout_unstable","renderTableCellLayout_unstable","useTableCellLayoutStyles_unstable","useTableCellLayoutContextValues_unstable","useCustomStyleHooks_unstable","TableCellLayout","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-table/src/components/TableCellLayout/TableCellLayout.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTableCellLayout_unstable } from './useTableCellLayout';\nimport { renderTableCellLayout_unstable } from './renderTableCellLayout';\nimport { useTableCellLayoutStyles_unstable } from './useTableCellLayoutStyles';\nimport { useTableCellLayoutContextValues_unstable } from './useTableCellLayoutContextValues';\nimport type { TableCellLayoutProps } from './TableCellLayout.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableCellLayout component\n */\nexport const TableCellLayout: ForwardRefComponent<TableCellLayoutProps> = React.forwardRef((props, ref) => {\n const state = useTableCellLayout_unstable(props, ref);\n\n useTableCellLayoutStyles_unstable(state);\n\n const { useTableCellLayoutStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTableCellLayout_unstable(state, useTableCellLayoutContextValues_unstable(state));\n});\n\nTableCellLayout.displayName = 'TableCellLayout';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,2BAA2B,QAAQ,sBAAsB;AAClE,SAASC,8BAA8B,QAAQ,yBAAyB;AACxE,SAASC,iCAAiC,QAAQ,4BAA4B;AAC9E,SAASC,wCAAwC,QAAQ,mCAAmC;AAG5F,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,eAAe,gBAA8CN,KAAK,CAACO,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EACxG,MAAMC,KAAK,GAAGT,2BAA2B,CAACO,KAAK,EAAEC,GAAG,CAAC;EAErDN,iCAAiC,CAACO,KAAK,CAAC;EAExC,MAAM;IAAEP,iCAAiC,EAAEQ;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EAC7FM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOR,8BAA8B,CAACQ,KAAK,EAAEN,wCAAwC,CAACM,KAAK,CAAC,CAAC;AAC/F,CAAC,CAAC;AAEFJ,eAAe,CAACM,WAAW,GAAG,iBAAiB"}
1
+ {"version":3,"names":["React","useTableCellLayout_unstable","renderTableCellLayout_unstable","useTableCellLayoutStyles_unstable","useTableCellLayoutContextValues_unstable","useCustomStyleHooks_unstable","TableCellLayout","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../src/components/TableCellLayout/TableCellLayout.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTableCellLayout_unstable } from './useTableCellLayout';\nimport { renderTableCellLayout_unstable } from './renderTableCellLayout';\nimport { useTableCellLayoutStyles_unstable } from './useTableCellLayoutStyles';\nimport { useTableCellLayoutContextValues_unstable } from './useTableCellLayoutContextValues';\nimport type { TableCellLayoutProps } from './TableCellLayout.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableCellLayout component\n */\nexport const TableCellLayout: ForwardRefComponent<TableCellLayoutProps> = React.forwardRef((props, ref) => {\n const state = useTableCellLayout_unstable(props, ref);\n\n useTableCellLayoutStyles_unstable(state);\n\n const { useTableCellLayoutStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTableCellLayout_unstable(state, useTableCellLayoutContextValues_unstable(state));\n});\n\nTableCellLayout.displayName = 'TableCellLayout';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,8BAA8B,QAAQ;AAC/C,SAASC,iCAAiC,QAAQ;AAClD,SAASC,wCAAwC,QAAQ;AAGzD,SAASC,4BAA4B,QAAQ;AAE7C;;;AAGA,OAAO,MAAMC,eAAA,gBAA6DN,KAAA,CAAMO,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EACzG,MAAMC,KAAA,GAAQT,2BAAA,CAA4BO,KAAA,EAAOC,GAAA;EAEjDN,iCAAA,CAAkCO,KAAA;EAElC,MAAM;IAAEP,iCAAA,EAAmCQ;EAAe,CAAE,GAAGN,4BAAA;EAC/DM,eAAA,CAAgBD,KAAA;EAEhB,OAAOR,8BAAA,CAA+BQ,KAAA,EAAON,wCAAA,CAAyCM,KAAA;AACxF;AAEAJ,eAAA,CAAgBM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableCellLayout.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableCellLayout/TableCellLayout.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { AvatarSize } from '@fluentui/react-avatar';\nimport { TableContextValue } from '../Table/Table.types';\n\nexport type TableCellLayoutContextValues = {\n avatar: {\n size?: AvatarSize;\n };\n};\n\nexport type TableCellLayoutSlots = {\n root: Slot<'div'>;\n\n /**\n * Slot for an icon or other visual element\n */\n media: Slot<'span'>;\n\n /**\n * Main text for the table cell. Children of the root slot are automatically rendered here\n */\n main: Slot<'span'>;\n\n /**\n * Secondary text that describes or complements the main text\n */\n description: Slot<'span'>;\n\n /**\n * A layout wrapper for the main and description slots\n */\n content: Slot<'div'>;\n};\n\n/**\n * TableCellLayout Props\n */\nexport type TableCellLayoutProps = ComponentProps<Partial<TableCellLayoutSlots>> & {\n /**\n * Renders design variants of the table cell\n * @default undefined\n */\n appearance?: 'primary';\n\n /**\n * Renders content with overflow: hidden and text-overflow: ellipsis\n */\n truncate?: boolean;\n};\n\n/**\n * State used in rendering TableCellLayout\n */\nexport type TableCellLayoutState = ComponentState<TableCellLayoutSlots> &\n Pick<TableCellLayoutProps, 'appearance' | 'truncate'> & { avatarSize: AvatarSize | undefined } & Pick<\n TableContextValue,\n 'size'\n >;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/TableCellLayout/TableCellLayout.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { AvatarSize } from '@fluentui/react-avatar';\nimport { TableContextValue } from '../Table/Table.types';\n\nexport type TableCellLayoutContextValues = {\n avatar: {\n size?: AvatarSize;\n };\n};\n\nexport type TableCellLayoutSlots = {\n root: Slot<'div'>;\n\n /**\n * Slot for an icon or other visual element\n */\n media: Slot<'span'>;\n\n /**\n * Main text for the table cell. Children of the root slot are automatically rendered here\n */\n main: Slot<'span'>;\n\n /**\n * Secondary text that describes or complements the main text\n */\n description: Slot<'span'>;\n\n /**\n * A layout wrapper for the main and description slots\n */\n content: Slot<'div'>;\n};\n\n/**\n * TableCellLayout Props\n */\nexport type TableCellLayoutProps = ComponentProps<Partial<TableCellLayoutSlots>> & {\n /**\n * Renders design variants of the table cell\n * @default undefined\n */\n appearance?: 'primary';\n\n /**\n * Renders content with overflow: hidden and text-overflow: ellipsis\n */\n truncate?: boolean;\n};\n\n/**\n * State used in rendering TableCellLayout\n */\nexport type TableCellLayoutState = ComponentState<TableCellLayoutSlots> &\n Pick<TableCellLayoutProps, 'appearance' | 'truncate'> & { avatarSize: AvatarSize | undefined } & Pick<\n TableContextValue,\n 'size'\n >;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableCellLayout/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './TableCellLayout';\nexport * from './TableCellLayout.types';\nexport * from './renderTableCellLayout';\nexport * from './useTableCellLayout';\nexport * from './useTableCellLayoutStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/TableCellLayout/index.ts"],"sourcesContent":["export * from './TableCellLayout';\nexport * from './TableCellLayout.types';\nexport * from './renderTableCellLayout';\nexport * from './useTableCellLayout';\nexport * from './useTableCellLayoutStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -9,18 +9,8 @@ export const renderTableCellLayout_unstable = (state, contextValues) => {
9
9
  slots,
10
10
  slotProps
11
11
  } = getSlots(state);
12
- return /*#__PURE__*/React.createElement(slots.root, {
13
- ...slotProps.root
14
- }, slots.media && /*#__PURE__*/React.createElement(AvatarContextProvider, {
12
+ return /*#__PURE__*/React.createElement(slots.root, slotProps.root, slots.media && /*#__PURE__*/React.createElement(AvatarContextProvider, {
15
13
  value: contextValues.avatar
16
- }, /*#__PURE__*/React.createElement(slots.media, {
17
- ...slotProps.media
18
- })), slots.content && /*#__PURE__*/React.createElement(slots.content, {
19
- ...slotProps.content
20
- }, slots.main && /*#__PURE__*/React.createElement(slots.main, {
21
- ...slotProps.main
22
- }, slotProps.root.children), slots.description && /*#__PURE__*/React.createElement(slots.description, {
23
- ...slotProps.description
24
- })));
14
+ }, /*#__PURE__*/React.createElement(slots.media, slotProps.media)), slots.content && /*#__PURE__*/React.createElement(slots.content, slotProps.content, slots.main && /*#__PURE__*/React.createElement(slots.main, slotProps.main, slotProps.root.children), slots.description && /*#__PURE__*/React.createElement(slots.description, slotProps.description)));
25
15
  };
26
16
  //# sourceMappingURL=renderTableCellLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","AvatarContextProvider","renderTableCellLayout_unstable","state","contextValues","slots","slotProps","createElement","root","media","value","avatar","content","main","children","description"],"sources":["../src/packages/react-components/react-table/src/components/TableCellLayout/renderTableCellLayout.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { AvatarContextProvider } from '@fluentui/react-avatar';\nimport type { TableCellLayoutState, TableCellLayoutSlots, TableCellLayoutContextValues } from './TableCellLayout.types';\n\n/**\n * Render the final JSX of TableCellLayout\n */\nexport const renderTableCellLayout_unstable = (\n state: TableCellLayoutState,\n contextValues: TableCellLayoutContextValues,\n) => {\n const { slots, slotProps } = getSlots<TableCellLayoutSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n {slots.media && (\n <AvatarContextProvider value={contextValues.avatar}>\n <slots.media {...slotProps.media} />\n </AvatarContextProvider>\n )}\n {slots.content && (\n <slots.content {...slotProps.content}>\n {slots.main && <slots.main {...slotProps.main}>{slotProps.root.children}</slots.main>}\n {slots.description && <slots.description {...slotProps.description} />}\n </slots.content>\n )}\n </slots.root>\n );\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,qBAAqB,QAAQ,wBAAwB;AAG9D;;;AAGA,OAAO,MAAMC,8BAA8B,GAAGA,CAC5CC,KAA2B,EAC3BC,aAA2C,KACzC;EACF,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGN,QAAQ,CAAuBG,KAAK,CAAC;EAElE,oBACEJ,KAAA,CAAAQ,aAAA,CAACF,KAAK,CAACG,IAAI;IAAA,GAAKF,SAAS,CAACE;EAAI,GAC3BH,KAAK,CAACI,KAAK,iBACVV,KAAA,CAAAQ,aAAA,CAACN,qBAAqB;IAACS,KAAK,EAAEN,aAAa,CAACO;EAAM,gBAChDZ,KAAA,CAAAQ,aAAA,CAACF,KAAK,CAACI,KAAK;IAAA,GAAKH,SAAS,CAACG;EAAK,EAAI,CAEvC,EACAJ,KAAK,CAACO,OAAO,iBACZb,KAAA,CAAAQ,aAAA,CAACF,KAAK,CAACO,OAAO;IAAA,GAAKN,SAAS,CAACM;EAAO,GACjCP,KAAK,CAACQ,IAAI,iBAAId,KAAA,CAAAQ,aAAA,CAACF,KAAK,CAACQ,IAAI;IAAA,GAAKP,SAAS,CAACO;EAAI,GAAGP,SAAS,CAACE,IAAI,CAACM,QAAQ,CAAc,EACpFT,KAAK,CAACU,WAAW,iBAAIhB,KAAA,CAAAQ,aAAA,CAACF,KAAK,CAACU,WAAW;IAAA,GAAKT,SAAS,CAACS;EAAW,EAAI,CAEzE,CACU;AAEjB,CAAC"}
1
+ {"version":3,"names":["React","getSlots","AvatarContextProvider","renderTableCellLayout_unstable","state","contextValues","slots","slotProps","createElement","root","media","value","avatar","content","main","children","description"],"sources":["../../../src/components/TableCellLayout/renderTableCellLayout.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { AvatarContextProvider } from '@fluentui/react-avatar';\nimport type { TableCellLayoutState, TableCellLayoutSlots, TableCellLayoutContextValues } from './TableCellLayout.types';\n\n/**\n * Render the final JSX of TableCellLayout\n */\nexport const renderTableCellLayout_unstable = (\n state: TableCellLayoutState,\n contextValues: TableCellLayoutContextValues,\n) => {\n const { slots, slotProps } = getSlots<TableCellLayoutSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n {slots.media && (\n <AvatarContextProvider value={contextValues.avatar}>\n <slots.media {...slotProps.media} />\n </AvatarContextProvider>\n )}\n {slots.content && (\n <slots.content {...slotProps.content}>\n {slots.main && <slots.main {...slotProps.main}>{slotProps.root.children}</slots.main>}\n {slots.description && <slots.description {...slotProps.description} />}\n </slots.content>\n )}\n </slots.root>\n );\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,QAAQ,QAAQ;AACzB,SAASC,qBAAqB,QAAQ;AAGtC;;;AAGA,OAAO,MAAMC,8BAAA,GAAiCA,CAC5CC,KAAA,EACAC,aAAA,KACG;EACH,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGN,QAAA,CAA+BG,KAAA;EAE5D,oBACEJ,KAAA,CAAAQ,aAAA,CAACF,KAAA,CAAMG,IAAI,EAAKF,SAAA,CAAUE,IAAI,EAC3BH,KAAA,CAAMI,KAAK,iBACVV,KAAA,CAAAQ,aAAA,CAACN,qBAAA;IAAsBS,KAAA,EAAON,aAAA,CAAcO;kBAC1CZ,KAAA,CAAAQ,aAAA,CAACF,KAAA,CAAMI,KAAK,EAAKH,SAAA,CAAUG,KAAK,IAGnCJ,KAAA,CAAMO,OAAO,iBACZb,KAAA,CAAAQ,aAAA,CAACF,KAAA,CAAMO,OAAO,EAAKN,SAAA,CAAUM,OAAO,EACjCP,KAAA,CAAMQ,IAAI,iBAAId,KAAA,CAAAQ,aAAA,CAACF,KAAA,CAAMQ,IAAI,EAAKP,SAAA,CAAUO,IAAI,EAAGP,SAAA,CAAUE,IAAI,CAACM,QAAQ,GACtET,KAAA,CAAMU,WAAW,iBAAIhB,KAAA,CAAAQ,aAAA,CAACF,KAAA,CAAMU,WAAW,EAAKT,SAAA,CAAUS,WAAW;AAK5E"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';
2
3
  import { useTableContext } from '../../contexts/tableContext';
3
4
  const tableAvatarSizeMap = {
@@ -1 +1 @@
1
- {"version":3,"names":["getNativeElementProps","resolveShorthand","useTableContext","tableAvatarSizeMap","medium","small","useTableCellLayout_unstable","props","ref","size","components","root","main","description","content","media","appearance","truncate","required","children","avatarSize"],"sources":["../src/packages/react-components/react-table/src/components/TableCellLayout/useTableCellLayout.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';\nimport type { TableCellLayoutProps, TableCellLayoutState } from './TableCellLayout.types';\nimport { useTableContext } from '../../contexts/tableContext';\n\nconst tableAvatarSizeMap = {\n medium: 32,\n small: 24,\n 'extra-small': 20,\n} as const;\n\n/**\n * Create the state required to render TableCellLayout.\n *\n * The returned state can be modified with hooks such as useTableCellLayoutStyles_unstable,\n * before being passed to renderTableCellLayout_unstable.\n *\n * @param props - props from this instance of TableCellLayout\n * @param ref - reference to root HTMLElement of TableCellLayout\n */\nexport const useTableCellLayout_unstable = (\n props: TableCellLayoutProps,\n ref: React.Ref<HTMLElement>,\n): TableCellLayoutState => {\n const { size } = useTableContext();\n\n return {\n components: {\n root: 'div',\n main: 'span',\n description: 'span',\n content: 'div',\n media: 'span',\n },\n root: getNativeElementProps('div', { ref, ...props }),\n appearance: props.appearance,\n truncate: props.truncate,\n main: resolveShorthand(props.main, { required: true }),\n media: resolveShorthand(props.media),\n description: resolveShorthand(props.description),\n content: resolveShorthand(props.content, { required: !!props.description || !!props.children }),\n avatarSize: tableAvatarSizeMap[size],\n size,\n };\n};\n"],"mappings":"AACA,SAASA,qBAAqB,EAAEC,gBAAgB,QAAQ,2BAA2B;AAEnF,SAASC,eAAe,QAAQ,6BAA6B;AAE7D,MAAMC,kBAAkB,GAAG;EACzBC,MAAM,EAAE,EAAE;EACVC,KAAK,EAAE,EAAE;EACT,aAAa,EAAE;CACP;AAEV;;;;;;;;;AASA,OAAO,MAAMC,2BAA2B,GAAGA,CACzCC,KAA2B,EAC3BC,GAA2B,KACH;EACxB,MAAM;IAAEC;EAAI,CAAE,GAAGP,eAAe,EAAE;EAElC,OAAO;IACLQ,UAAU,EAAE;MACVC,IAAI,EAAE,KAAK;MACXC,IAAI,EAAE,MAAM;MACZC,WAAW,EAAE,MAAM;MACnBC,OAAO,EAAE,KAAK;MACdC,KAAK,EAAE;KACR;IACDJ,IAAI,EAAEX,qBAAqB,CAAC,KAAK,EAAE;MAAEQ,GAAG;MAAE,GAAGD;IAAK,CAAE,CAAC;IACrDS,UAAU,EAAET,KAAK,CAACS,UAAU;IAC5BC,QAAQ,EAAEV,KAAK,CAACU,QAAQ;IACxBL,IAAI,EAAEX,gBAAgB,CAACM,KAAK,CAACK,IAAI,EAAE;MAAEM,QAAQ,EAAE;IAAI,CAAE,CAAC;IACtDH,KAAK,EAAEd,gBAAgB,CAACM,KAAK,CAACQ,KAAK,CAAC;IACpCF,WAAW,EAAEZ,gBAAgB,CAACM,KAAK,CAACM,WAAW,CAAC;IAChDC,OAAO,EAAEb,gBAAgB,CAACM,KAAK,CAACO,OAAO,EAAE;MAAEI,QAAQ,EAAE,CAAC,CAACX,KAAK,CAACM,WAAW,IAAI,CAAC,CAACN,KAAK,CAACY;IAAQ,CAAE,CAAC;IAC/FC,UAAU,EAAEjB,kBAAkB,CAACM,IAAI,CAAC;IACpCA;GACD;AACH,CAAC"}
1
+ {"version":3,"names":["React","getNativeElementProps","resolveShorthand","useTableContext","tableAvatarSizeMap","medium","small","useTableCellLayout_unstable","props","ref","size","components","root","main","description","content","media","appearance","truncate","required","children","avatarSize"],"sources":["../../../src/components/TableCellLayout/useTableCellLayout.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';\nimport type { TableCellLayoutProps, TableCellLayoutState } from './TableCellLayout.types';\nimport { useTableContext } from '../../contexts/tableContext';\n\nconst tableAvatarSizeMap = {\n medium: 32,\n small: 24,\n 'extra-small': 20,\n} as const;\n\n/**\n * Create the state required to render TableCellLayout.\n *\n * The returned state can be modified with hooks such as useTableCellLayoutStyles_unstable,\n * before being passed to renderTableCellLayout_unstable.\n *\n * @param props - props from this instance of TableCellLayout\n * @param ref - reference to root HTMLElement of TableCellLayout\n */\nexport const useTableCellLayout_unstable = (\n props: TableCellLayoutProps,\n ref: React.Ref<HTMLElement>,\n): TableCellLayoutState => {\n const { size } = useTableContext();\n\n return {\n components: {\n root: 'div',\n main: 'span',\n description: 'span',\n content: 'div',\n media: 'span',\n },\n root: getNativeElementProps('div', { ref, ...props }),\n appearance: props.appearance,\n truncate: props.truncate,\n main: resolveShorthand(props.main, { required: true }),\n media: resolveShorthand(props.media),\n description: resolveShorthand(props.description),\n content: resolveShorthand(props.content, { required: !!props.description || !!props.children }),\n avatarSize: tableAvatarSizeMap[size],\n size,\n };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,EAAEC,gBAAgB,QAAQ;AAExD,SAASC,eAAe,QAAQ;AAEhC,MAAMC,kBAAA,GAAqB;EACzBC,MAAA,EAAQ;EACRC,KAAA,EAAO;EACP,eAAe;AACjB;AAEA;;;;;;;;;AASA,OAAO,MAAMC,2BAAA,GAA8BA,CACzCC,KAAA,EACAC,GAAA,KACyB;EACzB,MAAM;IAAEC;EAAI,CAAE,GAAGP,eAAA;EAEjB,OAAO;IACLQ,UAAA,EAAY;MACVC,IAAA,EAAM;MACNC,IAAA,EAAM;MACNC,WAAA,EAAa;MACbC,OAAA,EAAS;MACTC,KAAA,EAAO;IACT;IACAJ,IAAA,EAAMX,qBAAA,CAAsB,OAAO;MAAEQ,GAAA;MAAK,GAAGD;IAAM;IACnDS,UAAA,EAAYT,KAAA,CAAMS,UAAU;IAC5BC,QAAA,EAAUV,KAAA,CAAMU,QAAQ;IACxBL,IAAA,EAAMX,gBAAA,CAAiBM,KAAA,CAAMK,IAAI,EAAE;MAAEM,QAAA,EAAU;IAAK;IACpDH,KAAA,EAAOd,gBAAA,CAAiBM,KAAA,CAAMQ,KAAK;IACnCF,WAAA,EAAaZ,gBAAA,CAAiBM,KAAA,CAAMM,WAAW;IAC/CC,OAAA,EAASb,gBAAA,CAAiBM,KAAA,CAAMO,OAAO,EAAE;MAAEI,QAAA,EAAU,CAAC,CAACX,KAAA,CAAMM,WAAW,IAAI,CAAC,CAACN,KAAA,CAAMY;IAAS;IAC7FC,UAAA,EAAYjB,kBAAkB,CAACM,IAAA,CAAK;IACpCA;EACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useTableCellLayoutContextValues_unstable","state","avatarSize","avatar","useMemo","size"],"sources":["../src/packages/react-components/react-table/src/components/TableCellLayout/useTableCellLayoutContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport type { TableCellLayoutState, TableCellLayoutContextValues } from './TableCellLayout.types';\n\nexport function useTableCellLayoutContextValues_unstable(state: TableCellLayoutState): TableCellLayoutContextValues {\n const { avatarSize } = state;\n\n const avatar = React.useMemo(\n () => ({\n size: avatarSize,\n }),\n [avatarSize],\n );\n\n return {\n avatar,\n };\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,OAAM,SAAUC,wCAAwCA,CAACC,KAA2B;EAClF,MAAM;IAAEC;EAAU,CAAE,GAAGD,KAAK;EAE5B,MAAME,MAAM,GAAGJ,KAAK,CAACK,OAAO,CAC1B,OAAO;IACLC,IAAI,EAAEH;GACP,CAAC,EACF,CAACA,UAAU,CAAC,CACb;EAED,OAAO;IACLC;GACD;AACH"}
1
+ {"version":3,"names":["React","useTableCellLayoutContextValues_unstable","state","avatarSize","avatar","useMemo","size"],"sources":["../../../src/components/TableCellLayout/useTableCellLayoutContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport type { TableCellLayoutState, TableCellLayoutContextValues } from './TableCellLayout.types';\n\nexport function useTableCellLayoutContextValues_unstable(state: TableCellLayoutState): TableCellLayoutContextValues {\n const { avatarSize } = state;\n\n const avatar = React.useMemo(\n () => ({\n size: avatarSize,\n }),\n [avatarSize],\n );\n\n return {\n avatar,\n };\n}\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGvB,OAAO,SAASC,yCAAyCC,KAA2B,EAAgC;EAClH,MAAM;IAAEC;EAAU,CAAE,GAAGD,KAAA;EAEvB,MAAME,MAAA,GAASJ,KAAA,CAAMK,OAAO,CAC1B,OAAO;IACLC,IAAA,EAAMH;EACR,IACA,CAACA,UAAA,CAAW;EAGd,OAAO;IACLC;EACF;AACF"}