@fluentui/react-table 9.0.0-alpha.15 → 9.0.0-alpha.17

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 (403) hide show
  1. package/CHANGELOG.json +173 -1
  2. package/CHANGELOG.md +39 -2
  3. package/dist/index.d.ts +30 -22
  4. package/lib/components/DataGrid/DataGrid.js +1 -2
  5. package/lib/components/DataGrid/DataGrid.js.map +1 -1
  6. package/lib/components/DataGrid/renderDataGrid.js +0 -1
  7. package/lib/components/DataGrid/renderDataGrid.js.map +1 -1
  8. package/lib/components/DataGrid/useDataGrid.js +2 -2
  9. package/lib/components/DataGrid/useDataGrid.js.map +1 -1
  10. package/lib/components/DataGrid/useDataGridContextValues.js +4 -2
  11. package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -1
  12. package/lib/components/DataGrid/useDataGridStyles.js +0 -1
  13. package/lib/components/DataGrid/useDataGridStyles.js.map +1 -1
  14. package/lib/components/DataGridBody/DataGridBody.js +1 -2
  15. package/lib/components/DataGridBody/DataGridBody.js.map +1 -1
  16. package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -1
  17. package/lib/components/DataGridBody/renderDataGridBody.js +13 -3
  18. package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -1
  19. package/lib/components/DataGridBody/useDataGridBody.js +8 -12
  20. package/lib/components/DataGridBody/useDataGridBody.js.map +1 -1
  21. package/lib/components/DataGridBody/useDataGridBodyStyles.js +0 -1
  22. package/lib/components/DataGridBody/useDataGridBodyStyles.js.map +1 -1
  23. package/lib/components/DataGridCell/DataGridCell.js +1 -2
  24. package/lib/components/DataGridCell/DataGridCell.js.map +1 -1
  25. package/lib/components/DataGridCell/renderDataGridCell.js +0 -1
  26. package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -1
  27. package/lib/components/DataGridCell/useDataGridCell.js +0 -1
  28. package/lib/components/DataGridCell/useDataGridCell.js.map +1 -1
  29. package/lib/components/DataGridCell/useDataGridCellStyles.js +0 -1
  30. package/lib/components/DataGridCell/useDataGridCellStyles.js.map +1 -1
  31. package/lib/components/DataGridHeader/DataGridHeader.js +1 -2
  32. package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -1
  33. package/lib/components/DataGridHeader/renderDataGridHeader.js +0 -1
  34. package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  35. package/lib/components/DataGridHeader/useDataGridHeader.js +2 -2
  36. package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  37. package/lib/components/DataGridHeader/useDataGridHeaderStyles.js +0 -1
  38. package/lib/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -1
  39. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js +1 -2
  40. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  41. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js +0 -1
  42. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  43. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js +0 -3
  44. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  45. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +0 -4
  46. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -1
  47. package/lib/components/DataGridRow/DataGridRow.js +1 -2
  48. package/lib/components/DataGridRow/DataGridRow.js.map +1 -1
  49. package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -1
  50. package/lib/components/DataGridRow/renderDataGridRow.js +9 -4
  51. package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -1
  52. package/lib/components/DataGridRow/useDataGridRow.js +8 -19
  53. package/lib/components/DataGridRow/useDataGridRow.js.map +1 -1
  54. package/lib/components/DataGridRow/useDataGridRowStyles.js +0 -3
  55. package/lib/components/DataGridRow/useDataGridRowStyles.js.map +1 -1
  56. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js +1 -2
  57. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  58. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js +0 -1
  59. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  60. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js +0 -8
  61. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  62. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +0 -4
  63. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -1
  64. package/lib/components/Table/Table.js +1 -2
  65. package/lib/components/Table/Table.js.map +1 -1
  66. package/lib/components/Table/Table.types.js.map +1 -1
  67. package/lib/components/Table/renderTable.js +2 -2
  68. package/lib/components/Table/renderTable.js.map +1 -1
  69. package/lib/components/Table/useTable.js +0 -2
  70. package/lib/components/Table/useTable.js.map +1 -1
  71. package/lib/components/Table/useTableContextValues.js.map +1 -1
  72. package/lib/components/Table/useTableStyles.js +13 -19
  73. package/lib/components/Table/useTableStyles.js.map +1 -1
  74. package/lib/components/TableBody/TableBody.js +1 -2
  75. package/lib/components/TableBody/TableBody.js.map +1 -1
  76. package/lib/components/TableBody/renderTableBody.js +3 -4
  77. package/lib/components/TableBody/renderTableBody.js.map +1 -1
  78. package/lib/components/TableBody/useTableBody.js +0 -2
  79. package/lib/components/TableBody/useTableBody.js.map +1 -1
  80. package/lib/components/TableBody/useTableBodyStyles.js +6 -10
  81. package/lib/components/TableBody/useTableBodyStyles.js.map +1 -1
  82. package/lib/components/TableCell/TableCell.js +1 -2
  83. package/lib/components/TableCell/TableCell.js.map +1 -1
  84. package/lib/components/TableCell/renderTableCell.js +2 -2
  85. package/lib/components/TableCell/renderTableCell.js.map +1 -1
  86. package/lib/components/TableCell/useTableCell.js +0 -2
  87. package/lib/components/TableCell/useTableCell.js.map +1 -1
  88. package/lib/components/TableCell/useTableCellStyles.js +36 -42
  89. package/lib/components/TableCell/useTableCellStyles.js.map +1 -1
  90. package/lib/components/TableCellActions/TableCellActions.js +1 -2
  91. package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
  92. package/lib/components/TableCellActions/renderTableCellActions.js +3 -4
  93. package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
  94. package/lib/components/TableCellActions/useTableCellActions.js +0 -2
  95. package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
  96. package/lib/components/TableCellActions/useTableCellActionsStyles.js +10 -13
  97. package/lib/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
  98. package/lib/components/TableCellLayout/TableCellLayout.js +1 -2
  99. package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
  100. package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  101. package/lib/components/TableCellLayout/renderTableCellLayout.js +10 -6
  102. package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  103. package/lib/components/TableCellLayout/useTableCellLayout.js +2 -3
  104. package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  105. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  106. package/lib/components/TableCellLayout/useTableCellLayoutStyles.js +32 -40
  107. package/lib/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
  108. package/lib/components/TableHeader/TableHeader.js +1 -2
  109. package/lib/components/TableHeader/TableHeader.js.map +1 -1
  110. package/lib/components/TableHeader/renderTableHeader.js +2 -2
  111. package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
  112. package/lib/components/TableHeader/useTableHeader.js +0 -2
  113. package/lib/components/TableHeader/useTableHeader.js.map +1 -1
  114. package/lib/components/TableHeader/useTableHeaderStyles.js +6 -16
  115. package/lib/components/TableHeader/useTableHeaderStyles.js.map +1 -1
  116. package/lib/components/TableHeaderCell/TableHeaderCell.js +1 -2
  117. package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  118. package/lib/components/TableHeaderCell/renderTableHeaderCell.js +6 -4
  119. package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  120. package/lib/components/TableHeaderCell/useTableHeaderCell.js +0 -2
  121. package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  122. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js +68 -76
  123. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
  124. package/lib/components/TableRow/TableRow.js +1 -2
  125. package/lib/components/TableRow/TableRow.js.map +1 -1
  126. package/lib/components/TableRow/TableRow.types.js.map +1 -1
  127. package/lib/components/TableRow/renderTableRow.js +3 -4
  128. package/lib/components/TableRow/renderTableRow.js.map +1 -1
  129. package/lib/components/TableRow/useTableRow.js +5 -4
  130. package/lib/components/TableRow/useTableRow.js.map +1 -1
  131. package/lib/components/TableRow/useTableRowStyles.js +137 -145
  132. package/lib/components/TableRow/useTableRowStyles.js.map +1 -1
  133. package/lib/components/TableSelectionCell/TableSelectionCell.js +1 -2
  134. package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  135. package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  136. package/lib/components/TableSelectionCell/renderTableSelectionCell.js +6 -4
  137. package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  138. package/lib/components/TableSelectionCell/useTableSelectionCell.js +4 -3
  139. package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  140. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js +42 -51
  141. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
  142. package/lib/contexts/columnIdContext.js +0 -1
  143. package/lib/contexts/columnIdContext.js.map +1 -1
  144. package/lib/contexts/dataGridContext.js +2 -1
  145. package/lib/contexts/dataGridContext.js.map +1 -1
  146. package/lib/contexts/rowIdContext.js +0 -1
  147. package/lib/contexts/rowIdContext.js.map +1 -1
  148. package/lib/contexts/tableContext.js +0 -1
  149. package/lib/contexts/tableContext.js.map +1 -1
  150. package/lib/contexts/tableHeaderContext.js.map +1 -1
  151. package/lib/hooks/createColumn.js +0 -6
  152. package/lib/hooks/createColumn.js.map +1 -1
  153. package/lib/hooks/selectionManager.js +0 -16
  154. package/lib/hooks/selectionManager.js.map +1 -1
  155. package/lib/hooks/useTableFeatures.js +0 -5
  156. package/lib/hooks/useTableFeatures.js.map +1 -1
  157. package/lib/hooks/useTableSelection.js +2 -6
  158. package/lib/hooks/useTableSelection.js.map +1 -1
  159. package/lib/hooks/useTableSort.js +4 -13
  160. package/lib/hooks/useTableSort.js.map +1 -1
  161. package/lib/index.js.map +1 -1
  162. package/lib-commonjs/DataGrid.js +0 -2
  163. package/lib-commonjs/DataGrid.js.map +1 -1
  164. package/lib-commonjs/DataGridBody.js +0 -2
  165. package/lib-commonjs/DataGridBody.js.map +1 -1
  166. package/lib-commonjs/DataGridCell.js +0 -2
  167. package/lib-commonjs/DataGridCell.js.map +1 -1
  168. package/lib-commonjs/DataGridHeader.js +0 -2
  169. package/lib-commonjs/DataGridHeader.js.map +1 -1
  170. package/lib-commonjs/DataGridHeaderCell.js +0 -2
  171. package/lib-commonjs/DataGridHeaderCell.js.map +1 -1
  172. package/lib-commonjs/DataGridRow.js +0 -2
  173. package/lib-commonjs/DataGridRow.js.map +1 -1
  174. package/lib-commonjs/DataGridSelectionCell.js +0 -2
  175. package/lib-commonjs/DataGridSelectionCell.js.map +1 -1
  176. package/lib-commonjs/Table.js +0 -2
  177. package/lib-commonjs/Table.js.map +1 -1
  178. package/lib-commonjs/TableBody.js +0 -2
  179. package/lib-commonjs/TableBody.js.map +1 -1
  180. package/lib-commonjs/TableCell.js +0 -2
  181. package/lib-commonjs/TableCell.js.map +1 -1
  182. package/lib-commonjs/TableCellActions.js +0 -2
  183. package/lib-commonjs/TableCellActions.js.map +1 -1
  184. package/lib-commonjs/TableCellLayout.js +0 -2
  185. package/lib-commonjs/TableCellLayout.js.map +1 -1
  186. package/lib-commonjs/TableCellPrimaryLayout.js +0 -2
  187. package/lib-commonjs/TableCellPrimaryLayout.js.map +1 -1
  188. package/lib-commonjs/TableHeader.js +0 -2
  189. package/lib-commonjs/TableHeader.js.map +1 -1
  190. package/lib-commonjs/TableHeaderCell.js +0 -2
  191. package/lib-commonjs/TableHeaderCell.js.map +1 -1
  192. package/lib-commonjs/TableRow.js +0 -2
  193. package/lib-commonjs/TableRow.js.map +1 -1
  194. package/lib-commonjs/TableSelectionCell.js +0 -2
  195. package/lib-commonjs/TableSelectionCell.js.map +1 -1
  196. package/lib-commonjs/components/DataGrid/DataGrid.js +1 -8
  197. package/lib-commonjs/components/DataGrid/DataGrid.js.map +1 -1
  198. package/lib-commonjs/components/DataGrid/DataGrid.types.js.map +1 -1
  199. package/lib-commonjs/components/DataGrid/index.js +0 -6
  200. package/lib-commonjs/components/DataGrid/index.js.map +1 -1
  201. package/lib-commonjs/components/DataGrid/renderDataGrid.js +0 -6
  202. package/lib-commonjs/components/DataGrid/renderDataGrid.js.map +1 -1
  203. package/lib-commonjs/components/DataGrid/useDataGrid.js +2 -7
  204. package/lib-commonjs/components/DataGrid/useDataGrid.js.map +1 -1
  205. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js +4 -5
  206. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js.map +1 -1
  207. package/lib-commonjs/components/DataGrid/useDataGridStyles.js +0 -5
  208. package/lib-commonjs/components/DataGrid/useDataGridStyles.js.map +1 -1
  209. package/lib-commonjs/components/DataGridBody/DataGridBody.js +1 -7
  210. package/lib-commonjs/components/DataGridBody/DataGridBody.js.map +1 -1
  211. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js.map +1 -1
  212. package/lib-commonjs/components/DataGridBody/index.js +0 -6
  213. package/lib-commonjs/components/DataGridBody/index.js.map +1 -1
  214. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js +13 -6
  215. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js.map +1 -1
  216. package/lib-commonjs/components/DataGridBody/useDataGridBody.js +8 -19
  217. package/lib-commonjs/components/DataGridBody/useDataGridBody.js.map +1 -1
  218. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js +0 -5
  219. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js.map +1 -1
  220. package/lib-commonjs/components/DataGridCell/DataGridCell.js +1 -7
  221. package/lib-commonjs/components/DataGridCell/DataGridCell.js.map +1 -1
  222. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js.map +1 -1
  223. package/lib-commonjs/components/DataGridCell/index.js +0 -6
  224. package/lib-commonjs/components/DataGridCell/index.js.map +1 -1
  225. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js +0 -4
  226. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js.map +1 -1
  227. package/lib-commonjs/components/DataGridCell/useDataGridCell.js +0 -5
  228. package/lib-commonjs/components/DataGridCell/useDataGridCell.js.map +1 -1
  229. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js +0 -5
  230. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js.map +1 -1
  231. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js +1 -7
  232. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js.map +1 -1
  233. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
  234. package/lib-commonjs/components/DataGridHeader/index.js +0 -6
  235. package/lib-commonjs/components/DataGridHeader/index.js.map +1 -1
  236. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js +0 -4
  237. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  238. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js +2 -5
  239. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  240. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js +0 -5
  241. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -1
  242. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js +1 -7
  243. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  244. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
  245. package/lib-commonjs/components/DataGridHeaderCell/index.js +0 -6
  246. package/lib-commonjs/components/DataGridHeaderCell/index.js.map +1 -1
  247. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js +0 -4
  248. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  249. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js +0 -10
  250. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  251. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +0 -8
  252. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -1
  253. package/lib-commonjs/components/DataGridRow/DataGridRow.js +1 -7
  254. package/lib-commonjs/components/DataGridRow/DataGridRow.js.map +1 -1
  255. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js.map +1 -1
  256. package/lib-commonjs/components/DataGridRow/index.js +0 -6
  257. package/lib-commonjs/components/DataGridRow/index.js.map +1 -1
  258. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js +9 -8
  259. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js.map +1 -1
  260. package/lib-commonjs/components/DataGridRow/useDataGridRow.js +8 -30
  261. package/lib-commonjs/components/DataGridRow/useDataGridRow.js.map +1 -1
  262. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js +0 -7
  263. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js.map +1 -1
  264. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js +1 -7
  265. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  266. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
  267. package/lib-commonjs/components/DataGridSelectionCell/index.js +0 -6
  268. package/lib-commonjs/components/DataGridSelectionCell/index.js.map +1 -1
  269. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js +0 -4
  270. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  271. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js +0 -15
  272. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  273. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +0 -8
  274. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -1
  275. package/lib-commonjs/components/Table/Table.js +1 -8
  276. package/lib-commonjs/components/Table/Table.js.map +1 -1
  277. package/lib-commonjs/components/Table/Table.types.js.map +1 -1
  278. package/lib-commonjs/components/Table/index.js +0 -6
  279. package/lib-commonjs/components/Table/index.js.map +1 -1
  280. package/lib-commonjs/components/Table/renderTable.js +2 -7
  281. package/lib-commonjs/components/Table/renderTable.js.map +1 -1
  282. package/lib-commonjs/components/Table/useTable.js +0 -5
  283. package/lib-commonjs/components/Table/useTable.js.map +1 -1
  284. package/lib-commonjs/components/Table/useTableContextValues.js +0 -3
  285. package/lib-commonjs/components/Table/useTableContextValues.js.map +1 -1
  286. package/lib-commonjs/components/Table/useTableStyles.js +13 -23
  287. package/lib-commonjs/components/Table/useTableStyles.js.map +1 -1
  288. package/lib-commonjs/components/TableBody/TableBody.js +1 -7
  289. package/lib-commonjs/components/TableBody/TableBody.js.map +1 -1
  290. package/lib-commonjs/components/TableBody/TableBody.types.js.map +1 -1
  291. package/lib-commonjs/components/TableBody/index.js +0 -6
  292. package/lib-commonjs/components/TableBody/index.js.map +1 -1
  293. package/lib-commonjs/components/TableBody/renderTableBody.js +3 -8
  294. package/lib-commonjs/components/TableBody/renderTableBody.js.map +1 -1
  295. package/lib-commonjs/components/TableBody/useTableBody.js +0 -6
  296. package/lib-commonjs/components/TableBody/useTableBody.js.map +1 -1
  297. package/lib-commonjs/components/TableBody/useTableBodyStyles.js +6 -12
  298. package/lib-commonjs/components/TableBody/useTableBodyStyles.js.map +1 -1
  299. package/lib-commonjs/components/TableCell/TableCell.js +1 -7
  300. package/lib-commonjs/components/TableCell/TableCell.js.map +1 -1
  301. package/lib-commonjs/components/TableCell/TableCell.types.js.map +1 -1
  302. package/lib-commonjs/components/TableCell/index.js +0 -6
  303. package/lib-commonjs/components/TableCell/index.js.map +1 -1
  304. package/lib-commonjs/components/TableCell/renderTableCell.js +2 -6
  305. package/lib-commonjs/components/TableCell/renderTableCell.js.map +1 -1
  306. package/lib-commonjs/components/TableCell/useTableCell.js +0 -6
  307. package/lib-commonjs/components/TableCell/useTableCell.js.map +1 -1
  308. package/lib-commonjs/components/TableCell/useTableCellStyles.js +36 -47
  309. package/lib-commonjs/components/TableCell/useTableCellStyles.js.map +1 -1
  310. package/lib-commonjs/components/TableCellActions/TableCellActions.js +1 -7
  311. package/lib-commonjs/components/TableCellActions/TableCellActions.js.map +1 -1
  312. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js.map +1 -1
  313. package/lib-commonjs/components/TableCellActions/index.js +0 -6
  314. package/lib-commonjs/components/TableCellActions/index.js.map +1 -1
  315. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js +3 -8
  316. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js.map +1 -1
  317. package/lib-commonjs/components/TableCellActions/useTableCellActions.js +0 -5
  318. package/lib-commonjs/components/TableCellActions/useTableCellActions.js.map +1 -1
  319. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js +10 -16
  320. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
  321. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js +1 -8
  322. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js.map +1 -1
  323. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  324. package/lib-commonjs/components/TableCellLayout/index.js +0 -6
  325. package/lib-commonjs/components/TableCellLayout/index.js.map +1 -1
  326. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js +10 -11
  327. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  328. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js +2 -7
  329. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  330. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js +0 -3
  331. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  332. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js +32 -45
  333. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
  334. package/lib-commonjs/components/TableHeader/TableHeader.js +1 -7
  335. package/lib-commonjs/components/TableHeader/TableHeader.js.map +1 -1
  336. package/lib-commonjs/components/TableHeader/TableHeader.types.js.map +1 -1
  337. package/lib-commonjs/components/TableHeader/index.js +0 -6
  338. package/lib-commonjs/components/TableHeader/index.js.map +1 -1
  339. package/lib-commonjs/components/TableHeader/renderTableHeader.js +2 -7
  340. package/lib-commonjs/components/TableHeader/renderTableHeader.js.map +1 -1
  341. package/lib-commonjs/components/TableHeader/useTableHeader.js +0 -6
  342. package/lib-commonjs/components/TableHeader/useTableHeader.js.map +1 -1
  343. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js +6 -19
  344. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js.map +1 -1
  345. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js +1 -7
  346. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  347. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  348. package/lib-commonjs/components/TableHeaderCell/index.js +0 -6
  349. package/lib-commonjs/components/TableHeaderCell/index.js.map +1 -1
  350. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js +6 -8
  351. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  352. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js +0 -10
  353. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  354. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js +68 -81
  355. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
  356. package/lib-commonjs/components/TableRow/TableRow.js +1 -7
  357. package/lib-commonjs/components/TableRow/TableRow.js.map +1 -1
  358. package/lib-commonjs/components/TableRow/TableRow.types.js.map +1 -1
  359. package/lib-commonjs/components/TableRow/index.js +0 -6
  360. package/lib-commonjs/components/TableRow/index.js.map +1 -1
  361. package/lib-commonjs/components/TableRow/renderTableRow.js +3 -8
  362. package/lib-commonjs/components/TableRow/renderTableRow.js.map +1 -1
  363. package/lib-commonjs/components/TableRow/useTableRow.js +5 -9
  364. package/lib-commonjs/components/TableRow/useTableRow.js.map +1 -1
  365. package/lib-commonjs/components/TableRow/useTableRowStyles.js +137 -153
  366. package/lib-commonjs/components/TableRow/useTableRowStyles.js.map +1 -1
  367. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js +1 -7
  368. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  369. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  370. package/lib-commonjs/components/TableSelectionCell/index.js +0 -6
  371. package/lib-commonjs/components/TableSelectionCell/index.js.map +1 -1
  372. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js +6 -8
  373. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  374. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js +4 -10
  375. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  376. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js +42 -56
  377. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
  378. package/lib-commonjs/contexts/columnIdContext.js +0 -5
  379. package/lib-commonjs/contexts/columnIdContext.js.map +1 -1
  380. package/lib-commonjs/contexts/dataGridContext.js +2 -6
  381. package/lib-commonjs/contexts/dataGridContext.js.map +1 -1
  382. package/lib-commonjs/contexts/rowIdContext.js +0 -5
  383. package/lib-commonjs/contexts/rowIdContext.js.map +1 -1
  384. package/lib-commonjs/contexts/tableContext.js +0 -5
  385. package/lib-commonjs/contexts/tableContext.js.map +1 -1
  386. package/lib-commonjs/contexts/tableHeaderContext.js +0 -4
  387. package/lib-commonjs/contexts/tableHeaderContext.js.map +1 -1
  388. package/lib-commonjs/hooks/createColumn.js +0 -8
  389. package/lib-commonjs/hooks/createColumn.js.map +1 -1
  390. package/lib-commonjs/hooks/index.js +0 -6
  391. package/lib-commonjs/hooks/index.js.map +1 -1
  392. package/lib-commonjs/hooks/selectionManager.js +0 -18
  393. package/lib-commonjs/hooks/selectionManager.js.map +1 -1
  394. package/lib-commonjs/hooks/types.js.map +1 -1
  395. package/lib-commonjs/hooks/useTableFeatures.js +0 -9
  396. package/lib-commonjs/hooks/useTableFeatures.js.map +1 -1
  397. package/lib-commonjs/hooks/useTableSelection.js +2 -13
  398. package/lib-commonjs/hooks/useTableSelection.js.map +1 -1
  399. package/lib-commonjs/hooks/useTableSort.js +4 -18
  400. package/lib-commonjs/hooks/useTableSort.js.map +1 -1
  401. package/lib-commonjs/index.js +0 -36
  402. package/lib-commonjs/index.js.map +1 -1
  403. package/package.json +11 -11
@@ -5,74 +5,68 @@ export const tableCellClassName = 'fui-TableCell';
5
5
  export const tableCellClassNames = {
6
6
  root: tableCellClassName
7
7
  };
8
-
9
8
  const useTableLayoutStyles = /*#__PURE__*/__styles({
10
- "root": {
11
- "mc9l5x": "f15pt5es",
12
- "ha4doy": "fmrv4ls"
9
+ root: {
10
+ mc9l5x: "f15pt5es",
11
+ ha4doy: "fmrv4ls"
13
12
  },
14
- "medium": {
15
- "Bqenvij": "f1ft4266"
13
+ medium: {
14
+ Bqenvij: "f1ft4266"
16
15
  },
17
- "small": {
18
- "Bqenvij": "fbsu25e"
16
+ small: {
17
+ Bqenvij: "fbsu25e"
19
18
  },
20
19
  "extra-small": {
21
- "Bqenvij": "frvgh55"
20
+ Bqenvij: "frvgh55"
22
21
  }
23
22
  }, {
24
- "d": [".f15pt5es{display:table-cell;}", ".fmrv4ls{vertical-align:middle;}", ".f1ft4266{height:44px;}", ".fbsu25e{height:34px;}", ".frvgh55{height:24px;}"]
23
+ d: [".f15pt5es{display:table-cell;}", ".fmrv4ls{vertical-align:middle;}", ".f1ft4266{height:44px;}", ".fbsu25e{height:34px;}", ".frvgh55{height:24px;}"]
25
24
  });
26
-
27
25
  const useFlexLayoutStyles = /*#__PURE__*/__styles({
28
- "root": {
29
- "mc9l5x": "f22iagw",
30
- "Bf4jedk": "f10tiqix",
31
- "Bt984gj": "f122n59",
32
- "Bh6795r": "fqerorx",
33
- "Bnnss6s": "f1neuvcm",
34
- "xawz": "fkjuxzh"
26
+ root: {
27
+ mc9l5x: "f22iagw",
28
+ Bf4jedk: "f10tiqix",
29
+ Bt984gj: "f122n59",
30
+ Bh6795r: "fqerorx",
31
+ Bnnss6s: "f1neuvcm",
32
+ xawz: "fkjuxzh"
35
33
  },
36
- "medium": {
37
- "sshi5w": "f5pgtk9"
34
+ medium: {
35
+ sshi5w: "f5pgtk9"
38
36
  },
39
- "small": {
40
- "sshi5w": "fcep9tg"
37
+ small: {
38
+ sshi5w: "fcep9tg"
41
39
  },
42
40
  "extra-small": {
43
- "sshi5w": "f1pha7fy"
41
+ sshi5w: "f1pha7fy"
44
42
  }
45
43
  }, {
46
- "d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f10tiqix{min-width:0px;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1neuvcm{-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}", ".fkjuxzh{-webkit-flex-basis:0px;-ms-flex-preferred-size:0px;flex-basis:0px;}", ".f5pgtk9{min-height:44px;}", ".fcep9tg{min-height:34px;}", ".f1pha7fy{min-height:24px;}"]
44
+ d: [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f10tiqix{min-width:0px;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1neuvcm{-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}", ".fkjuxzh{-webkit-flex-basis:0px;-ms-flex-preferred-size:0px;flex-basis:0px;}", ".f5pgtk9{min-height:44px;}", ".fcep9tg{min-height:34px;}", ".f1pha7fy{min-height:24px;}"]
47
45
  });
48
46
  /**
49
47
  * Styles for the root slot
50
48
  */
51
-
52
-
53
49
  const useStyles = /*#__PURE__*/__styles({
54
- "root": {
55
- "qhf8xq": "f10pi13n",
56
- "z8tnut": "f1nbblvp",
57
- "z189sj": ["f1vdfbxk", "f1f5gg8d"],
58
- "Byoj8tv": "f1ov4xf1",
59
- "uwmqm3": ["f1f5gg8d", "f1vdfbxk"],
60
- "Bn4voq9": "fz36nt7",
61
- "g9k6zt": "f9znhxp",
62
- "Bfpq7zp": "fqrak0z",
63
- "kdpuga": ["f1o2ludy", "f1kjnpwc"],
64
- "Bw81rd7": ["f1kjnpwc", "f1o2ludy"],
65
- "B6xbmo0": ["fxmnebo", "f1witrsb"],
66
- "dm238s": ["f1witrsb", "fxmnebo"]
50
+ root: {
51
+ qhf8xq: "f10pi13n",
52
+ z8tnut: "f1nbblvp",
53
+ z189sj: ["f1vdfbxk", "f1f5gg8d"],
54
+ Byoj8tv: "f1ov4xf1",
55
+ uwmqm3: ["f1f5gg8d", "f1vdfbxk"],
56
+ Bn4voq9: "fz36nt7",
57
+ g9k6zt: "f9znhxp",
58
+ Bfpq7zp: "fqrak0z",
59
+ kdpuga: ["f1o2ludy", "f1kjnpwc"],
60
+ Bw81rd7: ["f1kjnpwc", "f1o2ludy"],
61
+ B6xbmo0: ["fxmnebo", "f1witrsb"],
62
+ dm238s: ["f1witrsb", "fxmnebo"]
67
63
  }
68
64
  }, {
69
- "d": [".f10pi13n{position:relative;}", ".f1nbblvp{padding-top:0px;}", ".f1vdfbxk{padding-right:var(--spacingHorizontalS);}", ".f1f5gg8d{padding-left:var(--spacingHorizontalS);}", ".f1ov4xf1{padding-bottom:0px;}", ".fz36nt7[data-fui-focus-visible]{outline-width:2px;}", ".f9znhxp[data-fui-focus-visible]{outline-style:solid;}", ".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}", ".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}", ".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}", ".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}"]
65
+ d: [".f10pi13n{position:relative;}", ".f1nbblvp{padding-top:0px;}", ".f1vdfbxk{padding-right:var(--spacingHorizontalS);}", ".f1f5gg8d{padding-left:var(--spacingHorizontalS);}", ".f1ov4xf1{padding-bottom:0px;}", ".fz36nt7[data-fui-focus-visible]{outline-width:2px;}", ".f9znhxp[data-fui-focus-visible]{outline-style:solid;}", ".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}", ".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}", ".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}", ".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}"]
70
66
  });
71
67
  /**
72
68
  * Apply styling to the TableCell slots based on the state
73
69
  */
74
-
75
-
76
70
  export const useTableCellStyles_unstable = state => {
77
71
  const styles = useStyles();
78
72
  const layoutStyles = {
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCell/useTableCellStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,EAAmC,UAAnC,QAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AACA,SAAS,+BAAT,QAAgD,yBAAhD;AAIA,OAAO,MAAM,kBAAkB,GAAG,eAA3B;AACP,OAAO,MAAM,mBAAmB,GAAmC;EACjE,IAAI,EAAE;AAD2D,CAA5D;;AAIP,MAAM,oBAAoB,gBAAG;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAA7B;;AAmBA,MAAM,mBAAmB,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAA5B;AAqBA;;AAEG;;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAeA;;AAEG;;;AACH,OAAO,MAAM,2BAA2B,GAAI,KAAD,IAA0C;EACnF,MAAM,MAAM,GAAG,SAAS,EAAxB;EACA,MAAM,YAAY,GAAG;IACnB,KAAK,EAAE,oBAAoB,EADR;IAEnB,IAAI,EAAE,mBAAmB;EAFN,CAArB;EAIA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,mBAAmB,CAAC,IADa,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,gBAAN,GAAyB,YAAY,CAAC,IAAb,CAAkB,IAA3C,GAAkD,YAAY,CAAC,KAAb,CAAmB,IAHpC,EAIjC,KAAK,CAAC,gBAAN,GAAyB,YAAY,CAAC,IAAb,CAAkB,KAAK,CAAC,IAAxB,CAAzB,GAAyD,YAAY,CAAC,KAAb,CAAmB,KAAK,CAAC,IAAzB,CAJxB,EAKjC,KAAK,CAAC,IAAN,CAAW,SALsB,CAAnC;EAOA,OAAO,KAAP;AACD,CAdM","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 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"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,mBAAqBA,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,gBAAG;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAiB3B;AAEF,MAAMC,mBAAmB,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAmB1B;AAEF;;;AAGA,MAAMC,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAahB;AAEF;;;AAGA,OAAO,MAAMC,2BAA2B,GAAIC,KAAqB,IAAoB;EACnF,MAAMC,MAAM,GAAGH,SAAS,EAAE;EAC1B,MAAMI,YAAY,GAAG;IACnBC,KAAK,EAAEP,oBAAoB,EAAE;IAC7BQ,IAAI,EAAEP,mBAAmB;GAC1B;EACDG,KAAK,CAACL,IAAI,CAACU,SAAS,GAAGhB,YAAY,CACjCK,mBAAmB,CAACC,IAAI,EACxBM,MAAM,CAACN,IAAI,EACXK,KAAK,CAACM,gBAAgB,GAAGJ,YAAY,CAACE,IAAI,CAACT,IAAI,GAAGO,YAAY,CAACC,KAAK,CAACR,IAAI,EACzEK,KAAK,CAACM,gBAAgB,GAAGJ,YAAY,CAACE,IAAI,CAACJ,KAAK,CAACO,IAAI,CAAC,GAAGL,YAAY,CAACC,KAAK,CAACH,KAAK,CAACO,IAAI,CAAC,EACvFP,KAAK,CAACL,IAAI,CAACU,SAAS,CACrB;EACD,OAAOL,KAAK;AACd,CAAC","names":["mergeClasses","shorthands","tokens","createCustomFocusIndicatorStyle","tableCellClassName","tableCellClassNames","root","useTableLayoutStyles","useFlexLayoutStyles","useStyles","useTableCellStyles_unstable","state","styles","layoutStyles","table","flex","className","noNativeElements","size"],"sourceRoot":"../src/","sources":["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 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"]}
@@ -3,9 +3,8 @@ import { useTableCellActions_unstable } from './useTableCellActions';
3
3
  import { renderTableCellActions_unstable } from './renderTableCellActions';
4
4
  import { useTableCellActionsStyles_unstable } from './useTableCellActionsStyles';
5
5
  /**
6
- * TableCellActions component - TODO: add more docs
6
+ * TableCellActions component
7
7
  */
8
-
9
8
  export const TableCellActions = /*#__PURE__*/React.forwardRef((props, ref) => {
10
9
  const state = useTableCellActions_unstable(props, ref);
11
10
  useTableCellActionsStyles_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellActions/TableCellActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,4BAAT,QAA6C,uBAA7C;AACA,SAAS,+BAAT,QAAgD,0BAAhD;AACA,SAAS,kCAAT,QAAmD,6BAAnD;AAIA;;AAEG;;AACH,OAAO,MAAM,gBAAgB,gBAA+C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAC1G,MAAM,KAAK,GAAG,4BAA4B,CAAC,KAAD,EAAQ,GAAR,CAA1C;EAEA,kCAAkC,CAAC,KAAD,CAAlC;EACA,OAAO,+BAA+B,CAAC,KAAD,CAAtC;AACD,CAL2E,CAArE;AAOP,gBAAgB,CAAC,WAAjB,GAA+B,kBAA/B","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';\n\n/**\n * TableCellActions component - TODO: add more docs\n */\nexport const TableCellActions: ForwardRefComponent<TableCellActionsProps> = React.forwardRef((props, ref) => {\n const state = useTableCellActions_unstable(props, ref);\n\n useTableCellActionsStyles_unstable(state);\n return renderTableCellActions_unstable(state);\n});\n\nTableCellActions.displayName = 'TableCellActions';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,4BAA4B,QAAQ,uBAAuB;AACpE,SAASC,+BAA+B,QAAQ,0BAA0B;AAC1E,SAASC,kCAAkC,QAAQ,6BAA6B;AAIhF;;;AAGA,OAAO,MAAMC,gBAAgB,gBAA+CJ,KAAK,CAACK,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC1G,MAAMC,KAAK,GAAGP,4BAA4B,CAACK,KAAK,EAAEC,GAAG,CAAC;EAEtDJ,kCAAkC,CAACK,KAAK,CAAC;EACzC,OAAON,+BAA+B,CAACM,KAAK,CAAC;AAC/C,CAAC,CAAC;AAEFJ,gBAAgB,CAACK,WAAW,GAAG,kBAAkB","names":["React","useTableCellActions_unstable","renderTableCellActions_unstable","useTableCellActionsStyles_unstable","TableCellActions","forwardRef","props","ref","state","displayName"],"sourceRoot":"../src/","sources":["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';\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 return renderTableCellActions_unstable(state);\n});\n\nTableCellActions.displayName = 'TableCellActions';\n"]}
@@ -3,14 +3,13 @@ import { getSlots } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Render the final JSX of TableCellActions
5
5
  */
6
-
7
6
  export const renderTableCellActions_unstable = state => {
8
7
  const {
9
8
  slots,
10
9
  slotProps
11
- } = getSlots(state); // TODO Add additional slots in the appropriate place
12
-
13
- return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
10
+ } = getSlots(state);
11
+ return /*#__PURE__*/React.createElement(slots.root, {
12
+ ...slotProps.root
14
13
  });
15
14
  };
16
15
  //# sourceMappingURL=renderTableCellActions.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellActions/renderTableCellActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,+BAA+B,GAAI,KAAD,IAAiC;EAC9E,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAwB,KAAxB,CAArC,CAD8E,CAG9E;;EACA,oBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CAAP;AACD,CALM","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 // TODO Add additional slots in the appropriate place\n return <slots.root {...slotProps.root} />;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"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,oBAACI,KAAK,CAACE,IAAI;IAAA,GAAKD,SAAS,CAACC;EAAI,EAAI;AAC3C,CAAC","names":["React","getSlots","renderTableCellActions_unstable","state","slots","slotProps","root"],"sourceRoot":"../src/","sources":["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"]}
@@ -8,10 +8,8 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
8
8
  * @param props - props from this instance of TableCellActions
9
9
  * @param ref - reference to root HTMLElement of TableCellActions
10
10
  */
11
-
12
11
  export const useTableCellActions_unstable = (props, ref) => {
13
12
  var _a;
14
-
15
13
  return {
16
14
  components: {
17
15
  root: 'div'
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellActions/useTableCellActions.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,4BAA4B,GAAG,CAC1C,KAD0C,EAE1C,GAF0C,KAGjB;;;EACzB,OAAO;IACL,UAAU,EAAE;MACV,IAAI,EAAE;IADI,CADP;IAIL,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;MACjC,GADiC;MAEjC,GAAG;IAF8B,CAAR,CAJtB;IAQL,OAAO,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,OAAN,MAAa,IAAb,IAAa,EAAA,KAAA,KAAA,CAAb,GAAa,EAAb,GAAiB;EARrB,CAAP;AAUD,CAdM","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"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AAGjE;;;;;;;;;AASA,OAAO,MAAMC,4BAA4B,GAAG,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,WAAK,CAACA,OAAO,mCAAI;GAC3B;AACH,CAAC","names":["getNativeElementProps","useTableCellActions_unstable","props","ref","components","root","visible"],"sourceRoot":"../src/","sources":["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"]}
@@ -5,27 +5,24 @@ export const tableCellActionsClassNames = {
5
5
  /**
6
6
  * Styles for the root slot
7
7
  */
8
-
9
8
  const useStyles = /*#__PURE__*/__styles({
10
- "root": {
11
- "qhf8xq": "f1euv43f",
12
- "j35jbq": ["f10k790i", "f1xynx9j"],
13
- "Bhzewxz": "f1i1t8d1",
14
- "Bz10aip": "f188r07x",
15
- "abs64n": "fk73vx1",
16
- "Frg6f3": ["fcgxt0o", "f1ujusj6"]
9
+ root: {
10
+ qhf8xq: "f1euv43f",
11
+ j35jbq: ["f10k790i", "f1xynx9j"],
12
+ Bhzewxz: "f1i1t8d1",
13
+ Bz10aip: "f188r07x",
14
+ abs64n: "fk73vx1",
15
+ Frg6f3: ["fcgxt0o", "f1ujusj6"]
17
16
  },
18
- "visible": {
19
- "abs64n": "f5p0z4x"
17
+ visible: {
18
+ abs64n: "f5p0z4x"
20
19
  }
21
20
  }, {
22
- "d": [".f1euv43f{position:absolute;}", ".f10k790i{right:0px;}", ".f1xynx9j{left:0px;}", ".f1i1t8d1{top:50%;}", ".f188r07x{-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);}", ".fk73vx1{opacity:0;}", ".fcgxt0o{margin-left:auto;}", ".f1ujusj6{margin-right:auto;}", ".f5p0z4x{opacity:1;}"]
21
+ d: [".f1euv43f{position:absolute;}", ".f10k790i{right:0px;}", ".f1xynx9j{left:0px;}", ".f1i1t8d1{top:50%;}", ".f188r07x{-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);}", ".fk73vx1{opacity:0;}", ".fcgxt0o{margin-left:auto;}", ".f1ujusj6{margin-right:auto;}", ".f5p0z4x{opacity:1;}"]
23
22
  });
24
23
  /**
25
24
  * Apply styling to the TableCellActions slots based on the state
26
25
  */
27
-
28
-
29
26
  export const useTableCellActionsStyles_unstable = state => {
30
27
  const styles = useStyles();
31
28
  state.root.className = mergeClasses(tableCellActionsClassNames.root, styles.root, state.visible && styles.visible, state.root.className);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellActions/useTableCellActionsStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,gBAAzC;AAIA,OAAO,MAAM,0BAA0B,GAA0C;EAC/E,IAAI,EAAE;AADyE,CAA1E;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAeA;;AAEG;;;AACH,OAAO,MAAM,kCAAkC,GAAI,KAAD,IAAwD;EACxG,MAAM,MAAM,GAAG,SAAS,EAAxB;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,0BAA0B,CAAC,IADM,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,OAHS,EAIjC,KAAK,CAAC,IAAN,CAAW,SAJsB,CAAnC;EAOA,OAAO,KAAP;AACD,CAVM","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 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"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,mBAAqBA,YAAY,QAAQ,gBAAgB;AAIzD,OAAO,MAAMC,0BAA0B,GAA0C;EAC/EC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAahB;AAEF;;;AAGA,OAAO,MAAMC,kCAAkC,GAAIC,KAA4B,IAA2B;EACxG,MAAMC,MAAM,GAAGH,SAAS,EAAE;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGP,YAAY,CACjCC,0BAA0B,CAACC,IAAI,EAC/BI,MAAM,CAACJ,IAAI,EACXG,KAAK,CAACG,OAAO,IAAIF,MAAM,CAACE,OAAO,EAC/BH,KAAK,CAACH,IAAI,CAACK,SAAS,CACrB;EAED,OAAOF,KAAK;AACd,CAAC","names":["mergeClasses","tableCellActionsClassNames","root","useStyles","useTableCellActionsStyles_unstable","state","styles","className","visible"],"sourceRoot":"../src/","sources":["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 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"]}
@@ -4,9 +4,8 @@ import { renderTableCellLayout_unstable } from './renderTableCellLayout';
4
4
  import { useTableCellLayoutStyles_unstable } from './useTableCellLayoutStyles';
5
5
  import { useTableCellLayoutContextValues_unstable } from './useTableCellLayoutContextValues';
6
6
  /**
7
- * TableCellLayout component - TODO: add more docs
7
+ * TableCellLayout component
8
8
  */
9
-
10
9
  export const TableCellLayout = /*#__PURE__*/React.forwardRef((props, ref) => {
11
10
  const state = useTableCellLayout_unstable(props, ref);
12
11
  useTableCellLayoutStyles_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/TableCellLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,2BAAT,QAA4C,sBAA5C;AACA,SAAS,8BAAT,QAA+C,yBAA/C;AACA,SAAS,iCAAT,QAAkD,4BAAlD;AACA,SAAS,wCAAT,QAAyD,mCAAzD;AAIA;;AAEG;;AACH,OAAO,MAAM,eAAe,gBAA8C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACxG,MAAM,KAAK,GAAG,2BAA2B,CAAC,KAAD,EAAQ,GAAR,CAAzC;EAEA,iCAAiC,CAAC,KAAD,CAAjC;EACA,OAAO,8BAA8B,CAAC,KAAD,EAAQ,wCAAwC,CAAC,KAAD,CAAhD,CAArC;AACD,CALyE,CAAnE;AAOP,eAAe,CAAC,WAAhB,GAA8B,iBAA9B","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';\n\n/**\n * TableCellLayout component - TODO: add more docs\n */\nexport const TableCellLayout: ForwardRefComponent<TableCellLayoutProps> = React.forwardRef((props, ref) => {\n const state = useTableCellLayout_unstable(props, ref);\n\n useTableCellLayoutStyles_unstable(state);\n return renderTableCellLayout_unstable(state, useTableCellLayoutContextValues_unstable(state));\n});\n\nTableCellLayout.displayName = 'TableCellLayout';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"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;AAI5F;;;AAGA,OAAO,MAAMC,eAAe,gBAA8CL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EACxG,MAAMC,KAAK,GAAGR,2BAA2B,CAACM,KAAK,EAAEC,GAAG,CAAC;EAErDL,iCAAiC,CAACM,KAAK,CAAC;EACxC,OAAOP,8BAA8B,CAACO,KAAK,EAAEL,wCAAwC,CAACK,KAAK,CAAC,CAAC;AAC/F,CAAC,CAAC;AAEFJ,eAAe,CAACK,WAAW,GAAG,iBAAiB","names":["React","useTableCellLayout_unstable","renderTableCellLayout_unstable","useTableCellLayoutStyles_unstable","useTableCellLayoutContextValues_unstable","TableCellLayout","forwardRef","props","ref","state","displayName"],"sourceRoot":"../src/","sources":["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';\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 return renderTableCellLayout_unstable(state, useTableCellLayoutContextValues_unstable(state));\n});\n\nTableCellLayout.displayName = 'TableCellLayout';\n"]}
@@ -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 { AvatarSizes } from '@fluentui/react-avatar';\nimport { TableContextValue } from '../Table/Table.types';\n\nexport type TableCellLayoutContextValues = {\n avatar: {\n size?: AvatarSizes;\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 wrapper: 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/**\n * State used in rendering TableCellLayout\n */\nexport type TableCellLayoutState = ComponentState<TableCellLayoutSlots> &\n Pick<TableCellLayoutProps, 'appearance'> & { avatarSize: AvatarSizes | undefined } & Pick<TableContextValue, 'size'>;\n"]}
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 { AvatarSizes } from '@fluentui/react-avatar';\nimport { TableContextValue } from '../Table/Table.types';\n\nexport type TableCellLayoutContextValues = {\n avatar: {\n size?: AvatarSizes;\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/**\n * State used in rendering TableCellLayout\n */\nexport type TableCellLayoutState = ComponentState<TableCellLayoutSlots> &\n Pick<TableCellLayoutProps, 'appearance'> & { avatarSize: AvatarSizes | undefined } & Pick<TableContextValue, 'size'>;\n"]}
@@ -4,19 +4,23 @@ import { AvatarContextProvider } from '@fluentui/react-avatar';
4
4
  /**
5
5
  * Render the final JSX of TableCellLayout
6
6
  */
7
-
8
7
  export const renderTableCellLayout_unstable = (state, contextValues) => {
9
8
  const {
10
9
  slots,
11
10
  slotProps
12
11
  } = getSlots(state);
13
- return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
12
+ return /*#__PURE__*/React.createElement(slots.root, {
13
+ ...slotProps.root
14
14
  }, slots.media && /*#__PURE__*/React.createElement(AvatarContextProvider, {
15
15
  value: contextValues.avatar
16
- }, /*#__PURE__*/React.createElement(slots.media, { ...slotProps.media
17
- })), slots.wrapper && /*#__PURE__*/React.createElement(slots.wrapper, { ...slotProps.wrapper
18
- }, slots.main && /*#__PURE__*/React.createElement(slots.main, { ...slotProps.main
19
- }, slotProps.root.children), slots.description && /*#__PURE__*/React.createElement(slots.description, { ...slotProps.description
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
20
24
  })));
21
25
  };
22
26
  //# sourceMappingURL=renderTableCellLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/renderTableCellLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,qBAAT,QAAsC,wBAAtC;AAGA;;AAEG;;AACH,OAAO,MAAM,8BAA8B,GAAG,CAC5C,KAD4C,EAE5C,aAF4C,KAG1C;EACF,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAuB,KAAvB,CAArC;EAEA,oBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,EACG,KAAK,CAAC,KAAN,iBACC,KAAA,CAAA,aAAA,CAAC,qBAAD,EAAsB;IAAC,KAAK,EAAE,aAAa,CAAC;EAAtB,CAAtB,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;EAAf,CAAZ,CADF,CAFJ,EAMG,KAAK,CAAC,OAAN,iBACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;EAAf,CAAd,EACG,KAAK,CAAC,IAAN,iBAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,EAAiC,SAAS,CAAC,IAAV,CAAe,QAAhD,CADjB,EAEG,KAAK,CAAC,WAAN,iBAAqB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,WAAP,EAAkB,EAAA,GAAK,SAAS,CAAC;EAAf,CAAlB,CAFxB,CAPJ,CADF;AAeD,CArBM","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.wrapper && (\n <slots.wrapper {...slotProps.wrapper}>\n {slots.main && <slots.main {...slotProps.main}>{slotProps.root.children}</slots.main>}\n {slots.description && <slots.description {...slotProps.description} />}\n </slots.wrapper>\n )}\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,qBAAqB,QAAQ,wBAAwB;AAG9D;;;AAGA,OAAO,MAAMC,8BAA8B,GAAG,CAC5CC,KAA2B,EAC3BC,aAA2C,KACzC;EACF,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGN,QAAQ,CAAuBG,KAAK,CAAC;EAElE,oBACEJ,oBAACM,KAAK,CAACE,IAAI;IAAA,GAAKD,SAAS,CAACC;EAAI,GAC3BF,KAAK,CAACG,KAAK,iBACVT,oBAACE,qBAAqB;IAACQ,KAAK,EAAEL,aAAa,CAACM;EAAM,gBAChDX,oBAACM,KAAK,CAACG,KAAK;IAAA,GAAKF,SAAS,CAACE;EAAK,EAAI,CAEvC,EACAH,KAAK,CAACM,OAAO,iBACZZ,oBAACM,KAAK,CAACM,OAAO;IAAA,GAAKL,SAAS,CAACK;EAAO,GACjCN,KAAK,CAACO,IAAI,iBAAIb,oBAACM,KAAK,CAACO,IAAI;IAAA,GAAKN,SAAS,CAACM;EAAI,GAAGN,SAAS,CAACC,IAAI,CAACM,QAAQ,CAAc,EACpFR,KAAK,CAACS,WAAW,iBAAIf,oBAACM,KAAK,CAACS,WAAW;IAAA,GAAKR,SAAS,CAACQ;EAAW,EAAI,CAEzE,CACU;AAEjB,CAAC","names":["React","getSlots","AvatarContextProvider","renderTableCellLayout_unstable","state","contextValues","slots","slotProps","root","media","value","avatar","content","main","children","description"],"sourceRoot":"../src/","sources":["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"]}
@@ -14,7 +14,6 @@ const tableAvatarSizeMap = {
14
14
  * @param props - props from this instance of TableCellLayout
15
15
  * @param ref - reference to root HTMLElement of TableCellLayout
16
16
  */
17
-
18
17
  export const useTableCellLayout_unstable = (props, ref) => {
19
18
  const {
20
19
  size
@@ -24,7 +23,7 @@ export const useTableCellLayout_unstable = (props, ref) => {
24
23
  root: 'div',
25
24
  main: 'span',
26
25
  description: 'span',
27
- wrapper: 'div',
26
+ content: 'div',
28
27
  media: 'span'
29
28
  },
30
29
  root: getNativeElementProps('div', {
@@ -37,7 +36,7 @@ export const useTableCellLayout_unstable = (props, ref) => {
37
36
  }),
38
37
  media: resolveShorthand(props.media),
39
38
  description: resolveShorthand(props.description),
40
- wrapper: resolveShorthand(props.wrapper, {
39
+ content: resolveShorthand(props.content, {
41
40
  required: !!props.description || !!props.children
42
41
  }),
43
42
  avatarSize: tableAvatarSizeMap[size],
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/useTableCellLayout.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAEA,SAAS,eAAT,QAAgC,6BAAhC;AAEA,MAAM,kBAAkB,GAAG;EACzB,MAAM,EAAE,EADiB;EAEzB,KAAK,EAAE,EAFkB;EAGzB,eAAe;AAHU,CAA3B;AAMA;;;;;;;;AAQG;;AACH,OAAO,MAAM,2BAA2B,GAAG,CACzC,KADyC,EAEzC,GAFyC,KAGjB;EACxB,MAAM;IAAE;EAAF,IAAW,eAAe,EAAhC;EAEA,OAAO;IACL,UAAU,EAAE;MACV,IAAI,EAAE,KADI;MAEV,IAAI,EAAE,MAFI;MAGV,WAAW,EAAE,MAHH;MAIV,OAAO,EAAE,KAJC;MAKV,KAAK,EAAE;IALG,CADP;IAQL,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;MAAE,GAAF;MAAO,GAAG;IAAV,CAAR,CARtB;IASL,UAAU,EAAE,KAAK,CAAC,UATb;IAUL,IAAI,EAAE,gBAAgB,CAAC,KAAK,CAAC,IAAP,EAAa;MAAE,QAAQ,EAAE;IAAZ,CAAb,CAVjB;IAWL,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAP,CAXlB;IAYL,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,WAAP,CAZxB;IAaL,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,OAAP,EAAgB;MAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,WAAR,IAAuB,CAAC,CAAC,KAAK,CAAC;IAA3C,CAAhB,CAbpB;IAcL,UAAU,EAAE,kBAAkB,CAAC,IAAD,CAdzB;IAeL;EAfK,CAAP;AAiBD,CAvBM","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 wrapper: 'div',\n media: 'span',\n },\n root: getNativeElementProps('div', { ref, ...props }),\n appearance: props.appearance,\n main: resolveShorthand(props.main, { required: true }),\n media: resolveShorthand(props.media),\n description: resolveShorthand(props.description),\n wrapper: resolveShorthand(props.wrapper, { required: !!props.description || !!props.children }),\n avatarSize: tableAvatarSizeMap[size],\n size,\n };\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"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,GAAG,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;IAC5BJ,IAAI,EAAEX,gBAAgB,CAACM,KAAK,CAACK,IAAI,EAAE;MAAEK,QAAQ,EAAE;IAAI,CAAE,CAAC;IACtDF,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;MAAEG,QAAQ,EAAE,CAAC,CAACV,KAAK,CAACM,WAAW,IAAI,CAAC,CAACN,KAAK,CAACW;IAAQ,CAAE,CAAC;IAC/FC,UAAU,EAAEhB,kBAAkB,CAACM,IAAI,CAAC;IACpCA;GACD;AACH,CAAC","names":["getNativeElementProps","resolveShorthand","useTableContext","tableAvatarSizeMap","medium","small","useTableCellLayout_unstable","props","ref","size","components","root","main","description","content","media","appearance","required","children","avatarSize"],"sourceRoot":"../src/","sources":["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 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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/useTableCellLayoutContextValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAM,SAAU,wCAAV,CAAmD,KAAnD,EAA8E;EAClF,MAAM;IAAE;EAAF,IAAiB,KAAvB;EAEA,MAAM,MAAM,GAAG,KAAK,CAAC,OAAN,CACb,OAAO;IACL,IAAI,EAAE;EADD,CAAP,CADa,EAIb,CAAC,UAAD,CAJa,CAAf;EAOA,OAAO;IACL;EADK,CAAP;AAGD","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"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,OAAM,SAAUC,wCAAwC,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","names":["React","useTableCellLayoutContextValues_unstable","state","avatarSize","avatar","useMemo","size"],"sourceRoot":"../src/","sources":["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"]}
@@ -6,62 +6,58 @@ export const tableCellLayoutClassNames = {
6
6
  media: 'fui-TableCellLayout__media',
7
7
  main: 'fui-TableCellLayout__main',
8
8
  description: 'fui-TableCellLayout__description',
9
- wrapper: 'fui-TableCellLayout__wrapper'
9
+ content: 'fui-TableCellLayout__content'
10
10
  };
11
11
  /**
12
12
  * Styles for the root slot
13
13
  */
14
-
15
14
  const useStyles = /*#__PURE__*/__styles({
16
- "root": {
17
- "mc9l5x": "f22iagw",
18
- "Bt984gj": "f122n59",
19
- "i8kkvl": "fsnqrgy",
20
- "Belr9w4": "fylz90v",
21
- "Bh6795r": "fqerorx",
22
- "Bnnss6s": "f1neuvcm",
23
- "xawz": "fkjuxzh"
15
+ root: {
16
+ mc9l5x: "f22iagw",
17
+ Bt984gj: "f122n59",
18
+ i8kkvl: "fsnqrgy",
19
+ Belr9w4: "fylz90v",
20
+ Bh6795r: "fqerorx",
21
+ Bnnss6s: "f1neuvcm",
22
+ xawz: "fkjuxzh"
24
23
  },
25
- "wrapper": {
26
- "mc9l5x": "f22iagw",
27
- "Beiy3e4": "f1vx9l62"
24
+ content: {
25
+ mc9l5x: "f22iagw",
26
+ Beiy3e4: "f1vx9l62"
28
27
  },
29
- "media": {
30
- "mc9l5x": "f22iagw",
31
- "Bt984gj": "f122n59"
28
+ media: {
29
+ mc9l5x: "f22iagw",
30
+ Bt984gj: "f122n59"
32
31
  },
33
- "mediaExtraSmall": {
34
- "Be2twd7": "f4ybsrx"
32
+ mediaExtraSmall: {
33
+ Be2twd7: "f4ybsrx"
35
34
  },
36
- "mediaSmallAndMedium": {
37
- "Be2twd7": "fe5j1ua"
35
+ mediaSmallAndMedium: {
36
+ Be2twd7: "fe5j1ua"
38
37
  },
39
- "mediaPrimary": {
40
- "Be2twd7": "f1rt2boy"
38
+ mediaPrimary: {
39
+ Be2twd7: "f1rt2boy"
41
40
  },
42
- "mainPrimary": {
43
- "Bhrd7zp": "fl43uef"
41
+ mainPrimary: {
42
+ Bhrd7zp: "fl43uef"
44
43
  },
45
- "description": {
46
- "sj55zd": "fkfq4zb",
47
- "Bahqtrf": "fk6fouc",
48
- "Be2twd7": "fy9rknc",
49
- "Bhrd7zp": "figsok6",
50
- "Bg96gwp": "fwrc4pm"
44
+ description: {
45
+ sj55zd: "fkfq4zb",
46
+ Bahqtrf: "fk6fouc",
47
+ Be2twd7: "fy9rknc",
48
+ Bhrd7zp: "figsok6",
49
+ Bg96gwp: "fwrc4pm"
51
50
  }
52
51
  }, {
53
- "d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fsnqrgy{-webkit-column-gap:var(--spacingHorizontalS);column-gap:var(--spacingHorizontalS);}", ".fylz90v{row-gap:var(--spacingHorizontalS);}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1neuvcm{-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}", ".fkjuxzh{-webkit-flex-basis:0px;-ms-flex-preferred-size:0px;flex-basis:0px;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f4ybsrx{font-size:16px;}", ".fe5j1ua{font-size:20px;}", ".f1rt2boy{font-size:24px;}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}"]
52
+ d: [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fsnqrgy{-webkit-column-gap:var(--spacingHorizontalS);column-gap:var(--spacingHorizontalS);}", ".fylz90v{row-gap:var(--spacingHorizontalS);}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1neuvcm{-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}", ".fkjuxzh{-webkit-flex-basis:0px;-ms-flex-preferred-size:0px;flex-basis:0px;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f4ybsrx{font-size:16px;}", ".fe5j1ua{font-size:20px;}", ".f1rt2boy{font-size:24px;}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}"]
54
53
  });
55
54
  /**
56
55
  * Apply styling to the TableCellLayout slots based on the state
57
56
  */
58
-
59
-
60
57
  export const useTableCellLayoutStyles_unstable = state => {
61
58
  const styles = useStyles();
62
59
  state.root.className = mergeClasses(tableCellLayoutClassNames.root, styles.root, state.root.className);
63
60
  const primary = state.appearance === 'primary';
64
-
65
61
  if (state.media) {
66
62
  const mediaSizedStyles = {
67
63
  small: styles.mediaSmallAndMedium,
@@ -70,19 +66,15 @@ export const useTableCellLayoutStyles_unstable = state => {
70
66
  };
71
67
  state.media.className = mergeClasses(tableCellLayoutClassNames.media, styles.media, mediaSizedStyles[state.size], primary && styles.mediaPrimary, state.media.className);
72
68
  }
73
-
74
69
  if (state.main) {
75
70
  state.main.className = mergeClasses(tableCellLayoutClassNames.main, primary && styles.mainPrimary, state.main.className);
76
71
  }
77
-
78
72
  if (state.description) {
79
73
  state.description.className = mergeClasses(tableCellLayoutClassNames.description, styles.description, state.description.className);
80
74
  }
81
-
82
- if (state.wrapper) {
83
- state.wrapper.className = mergeClasses(tableCellLayoutClassNames.wrapper, styles.wrapper, state.wrapper.className);
75
+ if (state.content) {
76
+ state.content.className = mergeClasses(tableCellLayoutClassNames.content, styles.content, state.content.className);
84
77
  }
85
-
86
78
  return state;
87
79
  };
88
80
  //# sourceMappingURL=useTableCellLayoutStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/useTableCellLayoutStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,EAAmC,UAAnC,QAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA,OAAO,MAAM,yBAAyB,GAAyC;EAC7E,IAAI,EAAE,qBADuE;EAE7E,KAAK,EAAE,4BAFsE;EAG7E,IAAI,EAAE,2BAHuE;EAI7E,WAAW,EAAE,kCAJgE;EAK7E,OAAO,EAAE;AALoE,CAAxE;AAQP;;AAEG;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAuCA;;AAEG;;;AACH,OAAO,MAAM,iCAAiC,GAAI,KAAD,IAAsD;EACrG,MAAM,MAAM,GAAG,SAAS,EAAxB;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,yBAAyB,CAAC,IAA3B,EAAiC,MAAM,CAAC,IAAxC,EAA8C,KAAK,CAAC,IAAN,CAAW,SAAzD,CAAnC;EACA,MAAM,OAAO,GAAG,KAAK,CAAC,UAAN,KAAqB,SAArC;;EAEA,IAAI,KAAK,CAAC,KAAV,EAAiB;IACf,MAAM,gBAAgB,GAAG;MACvB,KAAK,EAAE,MAAM,CAAC,mBADS;MAEvB,MAAM,EAAE,MAAM,CAAC,mBAFQ;MAGvB,eAAe,MAAM,CAAC;IAHC,CAAzB;IAMA,KAAK,CAAC,KAAN,CAAY,SAAZ,GAAwB,YAAY,CAClC,yBAAyB,CAAC,KADQ,EAElC,MAAM,CAAC,KAF2B,EAGlC,gBAAgB,CAAC,KAAK,CAAC,IAAP,CAHkB,EAIlC,OAAO,IAAI,MAAM,CAAC,YAJgB,EAKlC,KAAK,CAAC,KAAN,CAAY,SALsB,CAApC;EAOD;;EAED,IAAI,KAAK,CAAC,IAAV,EAAgB;IACd,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,yBAAyB,CAAC,IADO,EAEjC,OAAO,IAAI,MAAM,CAAC,WAFe,EAGjC,KAAK,CAAC,IAAN,CAAW,SAHsB,CAAnC;EAKD;;EAED,IAAI,KAAK,CAAC,WAAV,EAAuB;IACrB,KAAK,CAAC,WAAN,CAAkB,SAAlB,GAA8B,YAAY,CACxC,yBAAyB,CAAC,WADc,EAExC,MAAM,CAAC,WAFiC,EAGxC,KAAK,CAAC,WAAN,CAAkB,SAHsB,CAA1C;EAKD;;EAED,IAAI,KAAK,CAAC,OAAV,EAAmB;IACjB,KAAK,CAAC,OAAN,CAAc,SAAd,GAA0B,YAAY,CAAC,yBAAyB,CAAC,OAA3B,EAAoC,MAAM,CAAC,OAA3C,EAAoD,KAAK,CAAC,OAAN,CAAc,SAAlE,CAAtC;EACD;;EAED,OAAO,KAAP;AACD,CA1CM","sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TableCellLayoutSlots, TableCellLayoutState } from './TableCellLayout.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const tableCellLayoutClassNames: SlotClassNames<TableCellLayoutSlots> = {\n root: 'fui-TableCellLayout',\n media: 'fui-TableCellLayout__media',\n main: 'fui-TableCellLayout__main',\n description: 'fui-TableCellLayout__description',\n wrapper: 'fui-TableCellLayout__wrapper',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n ...shorthands.gap(tokens.spacingHorizontalS),\n ...shorthands.flex(1, 1, '0px'),\n },\n wrapper: {\n display: 'flex',\n flexDirection: 'column',\n },\n\n media: {\n display: 'flex',\n alignItems: 'center',\n },\n\n mediaExtraSmall: {\n fontSize: '16px',\n },\n\n mediaSmallAndMedium: {\n fontSize: '20px',\n },\n\n mediaPrimary: {\n fontSize: '24px',\n },\n\n mainPrimary: {\n fontWeight: tokens.fontWeightSemibold,\n },\n\n description: {\n color: tokens.colorNeutralForeground2,\n ...typographyStyles.caption1,\n },\n});\n\n/**\n * Apply styling to the TableCellLayout slots based on the state\n */\nexport const useTableCellLayoutStyles_unstable = (state: TableCellLayoutState): TableCellLayoutState => {\n const styles = useStyles();\n state.root.className = mergeClasses(tableCellLayoutClassNames.root, styles.root, state.root.className);\n const primary = state.appearance === 'primary';\n\n if (state.media) {\n const mediaSizedStyles = {\n small: styles.mediaSmallAndMedium,\n medium: styles.mediaSmallAndMedium,\n 'extra-small': styles.mediaExtraSmall,\n };\n\n state.media.className = mergeClasses(\n tableCellLayoutClassNames.media,\n styles.media,\n mediaSizedStyles[state.size],\n primary && styles.mediaPrimary,\n state.media.className,\n );\n }\n\n if (state.main) {\n state.main.className = mergeClasses(\n tableCellLayoutClassNames.main,\n primary && styles.mainPrimary,\n state.main.className,\n );\n }\n\n if (state.description) {\n state.description.className = mergeClasses(\n tableCellLayoutClassNames.description,\n styles.description,\n state.description.className,\n );\n }\n\n if (state.wrapper) {\n state.wrapper.className = mergeClasses(tableCellLayoutClassNames.wrapper, styles.wrapper, state.wrapper.className);\n }\n\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,mBAAqBA,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AACrE,SAASC,MAAM,QAAQ,uBAAuB;AAG9C,SAASC,gBAAgB,QAAQ,uBAAuB;AAExD,OAAO,MAAMC,yBAAyB,GAAyC;EAC7EC,IAAI,EAAE,qBAAqB;EAC3BC,KAAK,EAAE,4BAA4B;EACnCC,IAAI,EAAE,2BAA2B;EACjCC,WAAW,EAAE,kCAAkC;EAC/CC,OAAO,EAAE;CACV;AAED;;;AAGA,MAAMC,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAqChB;AAEF;;;AAGA,OAAO,MAAMC,iCAAiC,GAAIC,KAA2B,IAA0B;EACrG,MAAMC,MAAM,GAAGH,SAAS,EAAE;EAC1BE,KAAK,CAACP,IAAI,CAACS,SAAS,GAAGd,YAAY,CAACI,yBAAyB,CAACC,IAAI,EAAEQ,MAAM,CAACR,IAAI,EAAEO,KAAK,CAACP,IAAI,CAACS,SAAS,CAAC;EACtG,MAAMC,OAAO,GAAGH,KAAK,CAACI,UAAU,KAAK,SAAS;EAE9C,IAAIJ,KAAK,CAACN,KAAK,EAAE;IACf,MAAMW,gBAAgB,GAAG;MACvBC,KAAK,EAAEL,MAAM,CAACM,mBAAmB;MACjCC,MAAM,EAAEP,MAAM,CAACM,mBAAmB;MAClC,aAAa,EAAEN,MAAM,CAACQ;KACvB;IAEDT,KAAK,CAACN,KAAK,CAACQ,SAAS,GAAGd,YAAY,CAClCI,yBAAyB,CAACE,KAAK,EAC/BO,MAAM,CAACP,KAAK,EACZW,gBAAgB,CAACL,KAAK,CAACU,IAAI,CAAC,EAC5BP,OAAO,IAAIF,MAAM,CAACU,YAAY,EAC9BX,KAAK,CAACN,KAAK,CAACQ,SAAS,CACtB;;EAGH,IAAIF,KAAK,CAACL,IAAI,EAAE;IACdK,KAAK,CAACL,IAAI,CAACO,SAAS,GAAGd,YAAY,CACjCI,yBAAyB,CAACG,IAAI,EAC9BQ,OAAO,IAAIF,MAAM,CAACW,WAAW,EAC7BZ,KAAK,CAACL,IAAI,CAACO,SAAS,CACrB;;EAGH,IAAIF,KAAK,CAACJ,WAAW,EAAE;IACrBI,KAAK,CAACJ,WAAW,CAACM,SAAS,GAAGd,YAAY,CACxCI,yBAAyB,CAACI,WAAW,EACrCK,MAAM,CAACL,WAAW,EAClBI,KAAK,CAACJ,WAAW,CAACM,SAAS,CAC5B;;EAGH,IAAIF,KAAK,CAACH,OAAO,EAAE;IACjBG,KAAK,CAACH,OAAO,CAACK,SAAS,GAAGd,YAAY,CAACI,yBAAyB,CAACK,OAAO,EAAEI,MAAM,CAACJ,OAAO,EAAEG,KAAK,CAACH,OAAO,CAACK,SAAS,CAAC;;EAGpH,OAAOF,KAAK;AACd,CAAC","names":["mergeClasses","shorthands","tokens","typographyStyles","tableCellLayoutClassNames","root","media","main","description","content","useStyles","useTableCellLayoutStyles_unstable","state","styles","className","primary","appearance","mediaSizedStyles","small","mediaSmallAndMedium","medium","mediaExtraSmall","size","mediaPrimary","mainPrimary"],"sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableCellLayout/useTableCellLayoutStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TableCellLayoutSlots, TableCellLayoutState } from './TableCellLayout.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const tableCellLayoutClassNames: SlotClassNames<TableCellLayoutSlots> = {\n root: 'fui-TableCellLayout',\n media: 'fui-TableCellLayout__media',\n main: 'fui-TableCellLayout__main',\n description: 'fui-TableCellLayout__description',\n content: 'fui-TableCellLayout__content',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n ...shorthands.gap(tokens.spacingHorizontalS),\n ...shorthands.flex(1, 1, '0px'),\n },\n content: {\n display: 'flex',\n flexDirection: 'column',\n },\n\n media: {\n display: 'flex',\n alignItems: 'center',\n },\n\n mediaExtraSmall: {\n fontSize: '16px',\n },\n\n mediaSmallAndMedium: {\n fontSize: '20px',\n },\n\n mediaPrimary: {\n fontSize: '24px',\n },\n\n mainPrimary: {\n fontWeight: tokens.fontWeightSemibold,\n },\n\n description: {\n color: tokens.colorNeutralForeground2,\n ...typographyStyles.caption1,\n },\n});\n\n/**\n * Apply styling to the TableCellLayout slots based on the state\n */\nexport const useTableCellLayoutStyles_unstable = (state: TableCellLayoutState): TableCellLayoutState => {\n const styles = useStyles();\n state.root.className = mergeClasses(tableCellLayoutClassNames.root, styles.root, state.root.className);\n const primary = state.appearance === 'primary';\n\n if (state.media) {\n const mediaSizedStyles = {\n small: styles.mediaSmallAndMedium,\n medium: styles.mediaSmallAndMedium,\n 'extra-small': styles.mediaExtraSmall,\n };\n\n state.media.className = mergeClasses(\n tableCellLayoutClassNames.media,\n styles.media,\n mediaSizedStyles[state.size],\n primary && styles.mediaPrimary,\n state.media.className,\n );\n }\n\n if (state.main) {\n state.main.className = mergeClasses(\n tableCellLayoutClassNames.main,\n primary && styles.mainPrimary,\n state.main.className,\n );\n }\n\n if (state.description) {\n state.description.className = mergeClasses(\n tableCellLayoutClassNames.description,\n styles.description,\n state.description.className,\n );\n }\n\n if (state.content) {\n state.content.className = mergeClasses(tableCellLayoutClassNames.content, styles.content, state.content.className);\n }\n\n return state;\n};\n"]}
@@ -3,9 +3,8 @@ import { useTableHeader_unstable } from './useTableHeader';
3
3
  import { renderTableHeader_unstable } from './renderTableHeader';
4
4
  import { useTableHeaderStyles_unstable } from './useTableHeaderStyles';
5
5
  /**
6
- * TableHeader component - TODO: add more docs
6
+ * TableHeader component
7
7
  */
8
-
9
8
  export const TableHeader = /*#__PURE__*/React.forwardRef((props, ref) => {
10
9
  const state = useTableHeader_unstable(props, ref);
11
10
  useTableHeaderStyles_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableHeader/TableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AAIA;;AAEG;;AACH,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAChG,MAAM,KAAK,GAAG,uBAAuB,CAAC,KAAD,EAAQ,GAAR,CAArC;EAEA,6BAA6B,CAAC,KAAD,CAA7B;EACA,OAAO,0BAA0B,CAAC,KAAD,CAAjC;AACD,CALiE,CAA3D;AAOP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourcesContent":["import * as React from 'react';\nimport { useTableHeader_unstable } from './useTableHeader';\nimport { renderTableHeader_unstable } from './renderTableHeader';\nimport { useTableHeaderStyles_unstable } from './useTableHeaderStyles';\nimport type { TableHeaderProps } from './TableHeader.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * TableHeader component - TODO: add more docs\n */\nexport const TableHeader: ForwardRefComponent<TableHeaderProps> = React.forwardRef((props, ref) => {\n const state = useTableHeader_unstable(props, ref);\n\n useTableHeaderStyles_unstable(state);\n return renderTableHeader_unstable(state);\n});\n\nTableHeader.displayName = 'TableHeader';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,uBAAuB,QAAQ,kBAAkB;AAC1D,SAASC,0BAA0B,QAAQ,qBAAqB;AAChE,SAASC,6BAA6B,QAAQ,wBAAwB;AAItE;;;AAGA,OAAO,MAAMC,WAAW,gBAA0CJ,KAAK,CAACK,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAChG,MAAMC,KAAK,GAAGP,uBAAuB,CAACK,KAAK,EAAEC,GAAG,CAAC;EAEjDJ,6BAA6B,CAACK,KAAK,CAAC;EACpC,OAAON,0BAA0B,CAACM,KAAK,CAAC;AAC1C,CAAC,CAAC;AAEFJ,WAAW,CAACK,WAAW,GAAG,aAAa","names":["React","useTableHeader_unstable","renderTableHeader_unstable","useTableHeaderStyles_unstable","TableHeader","forwardRef","props","ref","state","displayName"],"sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableHeader/TableHeader.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTableHeader_unstable } from './useTableHeader';\nimport { renderTableHeader_unstable } from './renderTableHeader';\nimport { useTableHeaderStyles_unstable } from './useTableHeaderStyles';\nimport type { TableHeaderProps } from './TableHeader.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * TableHeader component\n */\nexport const TableHeader: ForwardRefComponent<TableHeaderProps> = React.forwardRef((props, ref) => {\n const state = useTableHeader_unstable(props, ref);\n\n useTableHeaderStyles_unstable(state);\n return renderTableHeader_unstable(state);\n});\n\nTableHeader.displayName = 'TableHeader';\n"]}