@fluentui/react-table 9.0.0-alpha.8 → 9.0.0-rc.1

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 (463) hide show
  1. package/CHANGELOG.json +836 -1
  2. package/CHANGELOG.md +212 -2
  3. package/dist/index.d.ts +489 -101
  4. package/lib/DataGrid.js +2 -0
  5. package/lib/DataGrid.js.map +1 -0
  6. package/lib/DataGridBody.js +2 -0
  7. package/lib/DataGridBody.js.map +1 -0
  8. package/lib/DataGridCell.js +2 -0
  9. package/lib/DataGridCell.js.map +1 -0
  10. package/lib/DataGridHeader.js +2 -0
  11. package/lib/DataGridHeader.js.map +1 -0
  12. package/lib/DataGridHeaderCell.js +2 -0
  13. package/lib/DataGridHeaderCell.js.map +1 -0
  14. package/lib/DataGridRow.js +2 -0
  15. package/lib/DataGridRow.js.map +1 -0
  16. package/lib/DataGridSelectionCell.js +2 -0
  17. package/lib/DataGridSelectionCell.js.map +1 -0
  18. package/lib/components/DataGrid/DataGrid.js +15 -0
  19. package/lib/components/DataGrid/DataGrid.js.map +1 -0
  20. package/lib/components/DataGrid/DataGrid.types.js +2 -0
  21. package/lib/components/DataGrid/DataGrid.types.js.map +1 -0
  22. package/lib/components/DataGrid/index.js +6 -0
  23. package/lib/components/DataGrid/index.js.map +1 -0
  24. package/lib/components/DataGrid/renderDataGrid.js +12 -0
  25. package/lib/components/DataGrid/renderDataGrid.js.map +1 -0
  26. package/lib/components/DataGrid/useDataGrid.js +63 -0
  27. package/lib/components/DataGrid/useDataGrid.js.map +1 -0
  28. package/lib/components/DataGrid/useDataGridContextValues.js +15 -0
  29. package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -0
  30. package/lib/components/DataGrid/useDataGridStyles.js +14 -0
  31. package/lib/components/DataGrid/useDataGridStyles.js.map +1 -0
  32. package/lib/components/DataGridBody/DataGridBody.js +14 -0
  33. package/lib/components/DataGridBody/DataGridBody.js.map +1 -0
  34. package/lib/components/DataGridBody/DataGridBody.types.js +2 -0
  35. package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -0
  36. package/lib/components/DataGridBody/index.js +6 -0
  37. package/lib/components/DataGridBody/index.js.map +1 -0
  38. package/lib/components/DataGridBody/renderDataGridBody.js +19 -0
  39. package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -0
  40. package/lib/components/DataGridBody/useDataGridBody.js +31 -0
  41. package/lib/components/DataGridBody/useDataGridBody.js.map +1 -0
  42. package/lib/components/DataGridBody/useDataGridBodyStyles.js +14 -0
  43. package/lib/components/DataGridBody/useDataGridBodyStyles.js.map +1 -0
  44. package/lib/components/DataGridCell/DataGridCell.js +14 -0
  45. package/lib/components/DataGridCell/DataGridCell.js.map +1 -0
  46. package/lib/components/DataGridCell/DataGridCell.types.js +2 -0
  47. package/lib/components/DataGridCell/DataGridCell.types.js.map +1 -0
  48. package/lib/components/DataGridCell/index.js +6 -0
  49. package/lib/components/DataGridCell/index.js.map +1 -0
  50. package/lib/components/DataGridCell/renderDataGridCell.js +8 -0
  51. package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -0
  52. package/lib/components/DataGridCell/useDataGridCell.js +21 -0
  53. package/lib/components/DataGridCell/useDataGridCell.js.map +1 -0
  54. package/lib/components/DataGridCell/useDataGridCellStyles.js +14 -0
  55. package/lib/components/DataGridCell/useDataGridCellStyles.js.map +1 -0
  56. package/lib/components/DataGridHeader/DataGridHeader.js +14 -0
  57. package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -0
  58. package/lib/components/DataGridHeader/DataGridHeader.types.js +2 -0
  59. package/lib/components/DataGridHeader/DataGridHeader.types.js.map +1 -0
  60. package/lib/components/DataGridHeader/index.js +6 -0
  61. package/lib/components/DataGridHeader/index.js.map +1 -0
  62. package/lib/components/DataGridHeader/renderDataGridHeader.js +8 -0
  63. package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -0
  64. package/lib/components/DataGridHeader/useDataGridHeader.js +17 -0
  65. package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -0
  66. package/lib/components/DataGridHeader/useDataGridHeaderStyles.js +14 -0
  67. package/lib/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -0
  68. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js +14 -0
  69. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -0
  70. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js +2 -0
  71. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -0
  72. package/lib/components/DataGridHeaderCell/index.js +6 -0
  73. package/lib/components/DataGridHeaderCell/index.js.map +1 -0
  74. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js +8 -0
  75. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -0
  76. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js +37 -0
  77. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -0
  78. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +22 -0
  79. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -0
  80. package/lib/components/DataGridRow/DataGridRow.js +14 -0
  81. package/lib/components/DataGridRow/DataGridRow.js.map +1 -0
  82. package/lib/components/DataGridRow/DataGridRow.types.js +2 -0
  83. package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -0
  84. package/lib/components/DataGridRow/index.js +6 -0
  85. package/lib/components/DataGridRow/index.js.map +1 -0
  86. package/lib/components/DataGridRow/renderDataGridRow.js +21 -0
  87. package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -0
  88. package/lib/components/DataGridRow/useDataGridRow.js +70 -0
  89. package/lib/components/DataGridRow/useDataGridRow.js.map +1 -0
  90. package/lib/components/DataGridRow/useDataGridRowStyles.js +18 -0
  91. package/lib/components/DataGridRow/useDataGridRowStyles.js.map +1 -0
  92. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js +14 -0
  93. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -0
  94. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js +2 -0
  95. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -0
  96. package/lib/components/DataGridSelectionCell/index.js +6 -0
  97. package/lib/components/DataGridSelectionCell/index.js.map +1 -0
  98. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js +8 -0
  99. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -0
  100. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js +47 -0
  101. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -0
  102. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +22 -0
  103. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -0
  104. package/lib/components/Table/Table.js +1 -2
  105. package/lib/components/Table/Table.js.map +1 -1
  106. package/lib/components/Table/Table.types.js.map +1 -1
  107. package/lib/components/Table/renderTable.js +2 -2
  108. package/lib/components/Table/renderTable.js.map +1 -1
  109. package/lib/components/Table/useTable.js +0 -2
  110. package/lib/components/Table/useTable.js.map +1 -1
  111. package/lib/components/Table/useTableContextValues.js.map +1 -1
  112. package/lib/components/Table/useTableStyles.js +13 -19
  113. package/lib/components/Table/useTableStyles.js.map +1 -1
  114. package/lib/components/TableBody/TableBody.js +1 -2
  115. package/lib/components/TableBody/TableBody.js.map +1 -1
  116. package/lib/components/TableBody/renderTableBody.js +3 -4
  117. package/lib/components/TableBody/renderTableBody.js.map +1 -1
  118. package/lib/components/TableBody/useTableBody.js +0 -2
  119. package/lib/components/TableBody/useTableBody.js.map +1 -1
  120. package/lib/components/TableBody/useTableBodyStyles.js +6 -10
  121. package/lib/components/TableBody/useTableBodyStyles.js.map +1 -1
  122. package/lib/components/TableCell/TableCell.js +1 -2
  123. package/lib/components/TableCell/TableCell.js.map +1 -1
  124. package/lib/components/TableCell/TableCell.types.js.map +1 -1
  125. package/lib/components/TableCell/renderTableCell.js +2 -2
  126. package/lib/components/TableCell/renderTableCell.js.map +1 -1
  127. package/lib/components/TableCell/useTableCell.js +4 -4
  128. package/lib/components/TableCell/useTableCell.js.map +1 -1
  129. package/lib/components/TableCell/useTableCellStyles.js +47 -26
  130. package/lib/components/TableCell/useTableCellStyles.js.map +1 -1
  131. package/lib/components/TableCellActions/TableCellActions.js +1 -2
  132. package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
  133. package/lib/components/TableCellActions/renderTableCellActions.js +3 -4
  134. package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
  135. package/lib/components/TableCellActions/useTableCellActions.js +2 -5
  136. package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
  137. package/lib/components/TableCellActions/useTableCellActionsStyles.js +11 -19
  138. package/lib/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
  139. package/lib/components/TableCellLayout/TableCellLayout.js +1 -2
  140. package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
  141. package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  142. package/lib/components/TableCellLayout/renderTableCellLayout.js +10 -6
  143. package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  144. package/lib/components/TableCellLayout/useTableCellLayout.js +5 -5
  145. package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  146. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  147. package/lib/components/TableCellLayout/useTableCellLayoutStyles.js +41 -35
  148. package/lib/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
  149. package/lib/components/TableHeader/TableHeader.js +1 -2
  150. package/lib/components/TableHeader/TableHeader.js.map +1 -1
  151. package/lib/components/TableHeader/renderTableHeader.js +2 -2
  152. package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
  153. package/lib/components/TableHeader/useTableHeader.js +1 -10
  154. package/lib/components/TableHeader/useTableHeader.js.map +1 -1
  155. package/lib/components/TableHeader/useTableHeaderStyles.js +6 -16
  156. package/lib/components/TableHeader/useTableHeaderStyles.js.map +1 -1
  157. package/lib/components/TableHeaderCell/TableHeaderCell.js +1 -2
  158. package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  159. package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  160. package/lib/components/TableHeaderCell/renderTableHeaderCell.js +6 -4
  161. package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  162. package/lib/components/TableHeaderCell/useTableHeaderCell.js +11 -8
  163. package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  164. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js +69 -67
  165. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
  166. package/lib/components/TableRow/TableRow.js +1 -2
  167. package/lib/components/TableRow/TableRow.js.map +1 -1
  168. package/lib/components/TableRow/TableRow.types.js.map +1 -1
  169. package/lib/components/TableRow/renderTableRow.js +3 -4
  170. package/lib/components/TableRow/renderTableRow.js.map +1 -1
  171. package/lib/components/TableRow/useTableRow.js +7 -5
  172. package/lib/components/TableRow/useTableRow.js.map +1 -1
  173. package/lib/components/TableRow/useTableRowStyles.js +137 -162
  174. package/lib/components/TableRow/useTableRowStyles.js.map +1 -1
  175. package/lib/components/TableSelectionCell/TableSelectionCell.js +1 -2
  176. package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  177. package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  178. package/lib/components/TableSelectionCell/renderTableSelectionCell.js +6 -4
  179. package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  180. package/lib/components/TableSelectionCell/useTableSelectionCell.js +9 -5
  181. package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  182. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js +43 -46
  183. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
  184. package/lib/contexts/columnIdContext.js +9 -0
  185. package/lib/contexts/columnIdContext.js.map +1 -0
  186. package/lib/contexts/dataGridContext.js +13 -0
  187. package/lib/contexts/dataGridContext.js.map +1 -0
  188. package/lib/contexts/rowIdContext.js +9 -0
  189. package/lib/contexts/rowIdContext.js.map +1 -0
  190. package/lib/contexts/tableContext.js +0 -1
  191. package/lib/contexts/tableContext.js.map +1 -1
  192. package/lib/contexts/tableHeaderContext.js.map +1 -1
  193. package/lib/hooks/createColumn.js +35 -0
  194. package/lib/hooks/createColumn.js.map +1 -0
  195. package/lib/hooks/index.js +4 -3
  196. package/lib/hooks/index.js.map +1 -1
  197. package/lib/hooks/selectionManager.js +16 -32
  198. package/lib/hooks/selectionManager.js.map +1 -1
  199. package/lib/hooks/types.js.map +1 -1
  200. package/lib/hooks/{useTable.js → useTableFeatures.js} +12 -9
  201. package/lib/hooks/useTableFeatures.js.map +1 -0
  202. package/lib/hooks/{useSelection.js → useTableSelection.js} +18 -18
  203. package/lib/hooks/useTableSelection.js.map +1 -0
  204. package/lib/hooks/{useSort.js → useTableSort.js} +12 -21
  205. package/lib/hooks/useTableSort.js.map +1 -0
  206. package/lib/index.js +9 -1
  207. package/lib/index.js.map +1 -1
  208. package/lib-commonjs/DataGrid.js +8 -0
  209. package/lib-commonjs/DataGrid.js.map +1 -0
  210. package/lib-commonjs/DataGridBody.js +8 -0
  211. package/lib-commonjs/DataGridBody.js.map +1 -0
  212. package/lib-commonjs/DataGridCell.js +8 -0
  213. package/lib-commonjs/DataGridCell.js.map +1 -0
  214. package/lib-commonjs/DataGridHeader.js +8 -0
  215. package/lib-commonjs/DataGridHeader.js.map +1 -0
  216. package/lib-commonjs/DataGridHeaderCell.js +8 -0
  217. package/lib-commonjs/DataGridHeaderCell.js.map +1 -0
  218. package/lib-commonjs/DataGridRow.js +8 -0
  219. package/lib-commonjs/DataGridRow.js.map +1 -0
  220. package/lib-commonjs/DataGridSelectionCell.js +8 -0
  221. package/lib-commonjs/DataGridSelectionCell.js.map +1 -0
  222. package/lib-commonjs/Table.js +0 -2
  223. package/lib-commonjs/Table.js.map +1 -1
  224. package/lib-commonjs/TableBody.js +0 -2
  225. package/lib-commonjs/TableBody.js.map +1 -1
  226. package/lib-commonjs/TableCell.js +0 -2
  227. package/lib-commonjs/TableCell.js.map +1 -1
  228. package/lib-commonjs/TableCellActions.js +0 -2
  229. package/lib-commonjs/TableCellActions.js.map +1 -1
  230. package/lib-commonjs/TableCellLayout.js +0 -2
  231. package/lib-commonjs/TableCellLayout.js.map +1 -1
  232. package/lib-commonjs/TableCellPrimaryLayout.js +0 -2
  233. package/lib-commonjs/TableCellPrimaryLayout.js.map +1 -1
  234. package/lib-commonjs/TableHeader.js +0 -2
  235. package/lib-commonjs/TableHeader.js.map +1 -1
  236. package/lib-commonjs/TableHeaderCell.js +0 -2
  237. package/lib-commonjs/TableHeaderCell.js.map +1 -1
  238. package/lib-commonjs/TableRow.js +0 -2
  239. package/lib-commonjs/TableRow.js.map +1 -1
  240. package/lib-commonjs/TableSelectionCell.js +0 -2
  241. package/lib-commonjs/TableSelectionCell.js.map +1 -1
  242. package/lib-commonjs/components/DataGrid/DataGrid.js +21 -0
  243. package/lib-commonjs/components/DataGrid/DataGrid.js.map +1 -0
  244. package/lib-commonjs/components/DataGrid/DataGrid.types.js +6 -0
  245. package/lib-commonjs/components/DataGrid/DataGrid.types.js.map +1 -0
  246. package/lib-commonjs/components/DataGrid/index.js +12 -0
  247. package/lib-commonjs/components/DataGrid/index.js.map +1 -0
  248. package/lib-commonjs/components/DataGrid/renderDataGrid.js +19 -0
  249. package/lib-commonjs/components/DataGrid/renderDataGrid.js.map +1 -0
  250. package/lib-commonjs/components/DataGrid/useDataGrid.js +70 -0
  251. package/lib-commonjs/components/DataGrid/useDataGrid.js.map +1 -0
  252. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js +22 -0
  253. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js.map +1 -0
  254. package/lib-commonjs/components/DataGrid/useDataGridStyles.js +21 -0
  255. package/lib-commonjs/components/DataGrid/useDataGridStyles.js.map +1 -0
  256. package/lib-commonjs/components/DataGridBody/DataGridBody.js +20 -0
  257. package/lib-commonjs/components/DataGridBody/DataGridBody.js.map +1 -0
  258. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js +6 -0
  259. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js.map +1 -0
  260. package/lib-commonjs/components/DataGridBody/index.js +12 -0
  261. package/lib-commonjs/components/DataGridBody/index.js.map +1 -0
  262. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js +26 -0
  263. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js.map +1 -0
  264. package/lib-commonjs/components/DataGridBody/useDataGridBody.js +38 -0
  265. package/lib-commonjs/components/DataGridBody/useDataGridBody.js.map +1 -0
  266. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js +21 -0
  267. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js.map +1 -0
  268. package/lib-commonjs/components/DataGridCell/DataGridCell.js +20 -0
  269. package/lib-commonjs/components/DataGridCell/DataGridCell.js.map +1 -0
  270. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js +6 -0
  271. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js.map +1 -0
  272. package/lib-commonjs/components/DataGridCell/index.js +12 -0
  273. package/lib-commonjs/components/DataGridCell/index.js.map +1 -0
  274. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js +15 -0
  275. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js.map +1 -0
  276. package/lib-commonjs/components/DataGridCell/useDataGridCell.js +28 -0
  277. package/lib-commonjs/components/DataGridCell/useDataGridCell.js.map +1 -0
  278. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js +21 -0
  279. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js.map +1 -0
  280. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js +20 -0
  281. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js.map +1 -0
  282. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js +6 -0
  283. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js.map +1 -0
  284. package/lib-commonjs/components/DataGridHeader/index.js +12 -0
  285. package/lib-commonjs/components/DataGridHeader/index.js.map +1 -0
  286. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js +15 -0
  287. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js.map +1 -0
  288. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js +24 -0
  289. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js.map +1 -0
  290. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js +21 -0
  291. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -0
  292. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js +20 -0
  293. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -0
  294. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js +6 -0
  295. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -0
  296. package/lib-commonjs/components/DataGridHeaderCell/index.js +12 -0
  297. package/lib-commonjs/components/DataGridHeaderCell/index.js.map +1 -0
  298. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js +15 -0
  299. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -0
  300. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js +44 -0
  301. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -0
  302. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +29 -0
  303. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -0
  304. package/lib-commonjs/components/DataGridRow/DataGridRow.js +20 -0
  305. package/lib-commonjs/components/DataGridRow/DataGridRow.js.map +1 -0
  306. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js +6 -0
  307. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js.map +1 -0
  308. package/lib-commonjs/components/DataGridRow/index.js +12 -0
  309. package/lib-commonjs/components/DataGridRow/index.js.map +1 -0
  310. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js +28 -0
  311. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js.map +1 -0
  312. package/lib-commonjs/components/DataGridRow/useDataGridRow.js +77 -0
  313. package/lib-commonjs/components/DataGridRow/useDataGridRow.js.map +1 -0
  314. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js +25 -0
  315. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js.map +1 -0
  316. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js +20 -0
  317. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -0
  318. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js +6 -0
  319. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -0
  320. package/lib-commonjs/components/DataGridSelectionCell/index.js +12 -0
  321. package/lib-commonjs/components/DataGridSelectionCell/index.js.map +1 -0
  322. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js +15 -0
  323. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -0
  324. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js +54 -0
  325. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -0
  326. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +29 -0
  327. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -0
  328. package/lib-commonjs/components/Table/Table.js +1 -8
  329. package/lib-commonjs/components/Table/Table.js.map +1 -1
  330. package/lib-commonjs/components/Table/Table.types.js.map +1 -1
  331. package/lib-commonjs/components/Table/index.js +0 -6
  332. package/lib-commonjs/components/Table/index.js.map +1 -1
  333. package/lib-commonjs/components/Table/renderTable.js +2 -7
  334. package/lib-commonjs/components/Table/renderTable.js.map +1 -1
  335. package/lib-commonjs/components/Table/useTable.js +0 -5
  336. package/lib-commonjs/components/Table/useTable.js.map +1 -1
  337. package/lib-commonjs/components/Table/useTableContextValues.js +0 -3
  338. package/lib-commonjs/components/Table/useTableContextValues.js.map +1 -1
  339. package/lib-commonjs/components/Table/useTableStyles.js +13 -23
  340. package/lib-commonjs/components/Table/useTableStyles.js.map +1 -1
  341. package/lib-commonjs/components/TableBody/TableBody.js +1 -7
  342. package/lib-commonjs/components/TableBody/TableBody.js.map +1 -1
  343. package/lib-commonjs/components/TableBody/TableBody.types.js.map +1 -1
  344. package/lib-commonjs/components/TableBody/index.js +0 -6
  345. package/lib-commonjs/components/TableBody/index.js.map +1 -1
  346. package/lib-commonjs/components/TableBody/renderTableBody.js +3 -8
  347. package/lib-commonjs/components/TableBody/renderTableBody.js.map +1 -1
  348. package/lib-commonjs/components/TableBody/useTableBody.js +0 -6
  349. package/lib-commonjs/components/TableBody/useTableBody.js.map +1 -1
  350. package/lib-commonjs/components/TableBody/useTableBodyStyles.js +6 -12
  351. package/lib-commonjs/components/TableBody/useTableBodyStyles.js.map +1 -1
  352. package/lib-commonjs/components/TableCell/TableCell.js +1 -7
  353. package/lib-commonjs/components/TableCell/TableCell.js.map +1 -1
  354. package/lib-commonjs/components/TableCell/TableCell.types.js.map +1 -1
  355. package/lib-commonjs/components/TableCell/index.js +0 -6
  356. package/lib-commonjs/components/TableCell/index.js.map +1 -1
  357. package/lib-commonjs/components/TableCell/renderTableCell.js +2 -6
  358. package/lib-commonjs/components/TableCell/renderTableCell.js.map +1 -1
  359. package/lib-commonjs/components/TableCell/useTableCell.js +4 -8
  360. package/lib-commonjs/components/TableCell/useTableCell.js.map +1 -1
  361. package/lib-commonjs/components/TableCell/useTableCellStyles.js +47 -30
  362. package/lib-commonjs/components/TableCell/useTableCellStyles.js.map +1 -1
  363. package/lib-commonjs/components/TableCellActions/TableCellActions.js +1 -7
  364. package/lib-commonjs/components/TableCellActions/TableCellActions.js.map +1 -1
  365. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js.map +1 -1
  366. package/lib-commonjs/components/TableCellActions/index.js +0 -6
  367. package/lib-commonjs/components/TableCellActions/index.js.map +1 -1
  368. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js +3 -8
  369. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js.map +1 -1
  370. package/lib-commonjs/components/TableCellActions/useTableCellActions.js +1 -8
  371. package/lib-commonjs/components/TableCellActions/useTableCellActions.js.map +1 -1
  372. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js +11 -23
  373. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
  374. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js +1 -8
  375. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js.map +1 -1
  376. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  377. package/lib-commonjs/components/TableCellLayout/index.js +0 -6
  378. package/lib-commonjs/components/TableCellLayout/index.js.map +1 -1
  379. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js +10 -11
  380. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  381. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js +5 -9
  382. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  383. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js +0 -3
  384. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  385. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js +41 -39
  386. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
  387. package/lib-commonjs/components/TableHeader/TableHeader.js +1 -7
  388. package/lib-commonjs/components/TableHeader/TableHeader.js.map +1 -1
  389. package/lib-commonjs/components/TableHeader/TableHeader.types.js.map +1 -1
  390. package/lib-commonjs/components/TableHeader/index.js +0 -6
  391. package/lib-commonjs/components/TableHeader/index.js.map +1 -1
  392. package/lib-commonjs/components/TableHeader/renderTableHeader.js +2 -7
  393. package/lib-commonjs/components/TableHeader/renderTableHeader.js.map +1 -1
  394. package/lib-commonjs/components/TableHeader/useTableHeader.js +1 -15
  395. package/lib-commonjs/components/TableHeader/useTableHeader.js.map +1 -1
  396. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js +6 -19
  397. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js.map +1 -1
  398. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js +1 -7
  399. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  400. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  401. package/lib-commonjs/components/TableHeaderCell/index.js +0 -6
  402. package/lib-commonjs/components/TableHeaderCell/index.js.map +1 -1
  403. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js +6 -8
  404. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  405. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js +10 -14
  406. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  407. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js +69 -71
  408. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
  409. package/lib-commonjs/components/TableRow/TableRow.js +1 -7
  410. package/lib-commonjs/components/TableRow/TableRow.js.map +1 -1
  411. package/lib-commonjs/components/TableRow/TableRow.types.js.map +1 -1
  412. package/lib-commonjs/components/TableRow/index.js +0 -6
  413. package/lib-commonjs/components/TableRow/index.js.map +1 -1
  414. package/lib-commonjs/components/TableRow/renderTableRow.js +3 -8
  415. package/lib-commonjs/components/TableRow/renderTableRow.js.map +1 -1
  416. package/lib-commonjs/components/TableRow/useTableRow.js +7 -10
  417. package/lib-commonjs/components/TableRow/useTableRow.js.map +1 -1
  418. package/lib-commonjs/components/TableRow/useTableRowStyles.js +137 -170
  419. package/lib-commonjs/components/TableRow/useTableRowStyles.js.map +1 -1
  420. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js +1 -7
  421. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  422. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  423. package/lib-commonjs/components/TableSelectionCell/index.js +0 -6
  424. package/lib-commonjs/components/TableSelectionCell/index.js.map +1 -1
  425. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js +6 -8
  426. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  427. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js +8 -11
  428. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  429. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js +43 -50
  430. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
  431. package/lib-commonjs/contexts/columnIdContext.js +16 -0
  432. package/lib-commonjs/contexts/columnIdContext.js.map +1 -0
  433. package/lib-commonjs/contexts/dataGridContext.js +20 -0
  434. package/lib-commonjs/contexts/dataGridContext.js.map +1 -0
  435. package/lib-commonjs/contexts/rowIdContext.js +16 -0
  436. package/lib-commonjs/contexts/rowIdContext.js.map +1 -0
  437. package/lib-commonjs/contexts/tableContext.js +0 -5
  438. package/lib-commonjs/contexts/tableContext.js.map +1 -1
  439. package/lib-commonjs/contexts/tableHeaderContext.js +0 -4
  440. package/lib-commonjs/contexts/tableHeaderContext.js.map +1 -1
  441. package/lib-commonjs/hooks/createColumn.js +42 -0
  442. package/lib-commonjs/hooks/createColumn.js.map +1 -0
  443. package/lib-commonjs/hooks/index.js +4 -8
  444. package/lib-commonjs/hooks/index.js.map +1 -1
  445. package/lib-commonjs/hooks/selectionManager.js +16 -34
  446. package/lib-commonjs/hooks/selectionManager.js.map +1 -1
  447. package/lib-commonjs/hooks/types.js.map +1 -1
  448. package/lib-commonjs/hooks/useTableFeatures.js +42 -0
  449. package/lib-commonjs/hooks/useTableFeatures.js.map +1 -0
  450. package/lib-commonjs/hooks/{useSelection.js → useTableSelection.js} +21 -28
  451. package/lib-commonjs/hooks/useTableSelection.js.map +1 -0
  452. package/lib-commonjs/hooks/{useSort.js → useTableSort.js} +15 -29
  453. package/lib-commonjs/hooks/useTableSort.js.map +1 -0
  454. package/lib-commonjs/index.js +244 -30
  455. package/lib-commonjs/index.js.map +1 -1
  456. package/package.json +24 -12
  457. package/lib/hooks/useSelection.js.map +0 -1
  458. package/lib/hooks/useSort.js.map +0 -1
  459. package/lib/hooks/useTable.js.map +0 -1
  460. package/lib-commonjs/hooks/useSelection.js.map +0 -1
  461. package/lib-commonjs/hooks/useSort.js.map +0 -1
  462. package/lib-commonjs/hooks/useTable.js +0 -42
  463. package/lib-commonjs/hooks/useTable.js.map +0 -1
@@ -4,67 +4,84 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useTableCellStyles_unstable = exports.tableCellClassNames = exports.tableCellClassName = void 0;
7
-
8
7
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
-
10
8
  const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
-
9
+ const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
12
10
  exports.tableCellClassName = 'fui-TableCell';
13
11
  exports.tableCellClassNames = {
14
12
  root: exports.tableCellClassName
15
13
  };
16
-
17
14
  const useTableLayoutStyles = /*#__PURE__*/react_1.__styles({
18
- "root": {
19
- "mc9l5x": "f15pt5es",
20
- "ha4doy": "fmrv4ls"
15
+ root: {
16
+ mc9l5x: "f15pt5es",
17
+ ha4doy: "fmrv4ls"
18
+ },
19
+ medium: {
20
+ Bqenvij: "f1ft4266"
21
+ },
22
+ small: {
23
+ Bqenvij: "fbsu25e"
24
+ },
25
+ "extra-small": {
26
+ Bqenvij: "frvgh55"
21
27
  }
22
28
  }, {
23
- "d": [".f15pt5es{display:table-cell;}", ".fmrv4ls{vertical-align:middle;}"]
29
+ d: [".f15pt5es{display:table-cell;}", ".fmrv4ls{vertical-align:middle;}", ".f1ft4266{height:44px;}", ".fbsu25e{height:34px;}", ".frvgh55{height:24px;}"]
24
30
  });
25
-
26
31
  const useFlexLayoutStyles = /*#__PURE__*/react_1.__styles({
27
- "root": {
28
- "mc9l5x": "f22iagw",
29
- "Bf4jedk": "f10tiqix",
30
- "Bt984gj": "f122n59",
31
- "Bh6795r": "fqerorx",
32
- "Bnnss6s": "f1neuvcm",
33
- "xawz": "fkjuxzh"
32
+ root: {
33
+ mc9l5x: "f22iagw",
34
+ Bf4jedk: "f10tiqix",
35
+ Bt984gj: "f122n59",
36
+ Bh6795r: "fqerorx",
37
+ Bnnss6s: "f1neuvcm",
38
+ xawz: "fkjuxzh"
39
+ },
40
+ medium: {
41
+ sshi5w: "f5pgtk9"
42
+ },
43
+ small: {
44
+ sshi5w: "fcep9tg"
45
+ },
46
+ "extra-small": {
47
+ sshi5w: "f1pha7fy"
34
48
  }
35
49
  }, {
36
- "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;}"]
50
+ 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;}"]
37
51
  });
38
52
  /**
39
53
  * Styles for the root slot
40
54
  */
41
-
42
-
43
55
  const useStyles = /*#__PURE__*/react_1.__styles({
44
- "root": {
45
- "qhf8xq": "f10pi13n",
46
- "z8tnut": "f1nbblvp",
47
- "z189sj": ["f1vdfbxk", "f1f5gg8d"],
48
- "Byoj8tv": "f1ov4xf1",
49
- "uwmqm3": ["f1f5gg8d", "f1vdfbxk"]
56
+ root: {
57
+ De3pzq: "f1u2r49w",
58
+ qhf8xq: "f10pi13n",
59
+ z8tnut: "f1nbblvp",
60
+ z189sj: ["f1vdfbxk", "f1f5gg8d"],
61
+ Byoj8tv: "f1ov4xf1",
62
+ uwmqm3: ["f1f5gg8d", "f1vdfbxk"],
63
+ Bn4voq9: "fz36nt7",
64
+ g9k6zt: "f9znhxp",
65
+ Bfpq7zp: "fqrak0z",
66
+ kdpuga: ["f1o2ludy", "f1kjnpwc"],
67
+ Bw81rd7: ["f1kjnpwc", "f1o2ludy"],
68
+ B6xbmo0: ["fxmnebo", "f1witrsb"],
69
+ dm238s: ["f1witrsb", "fxmnebo"]
50
70
  }
51
71
  }, {
52
- "d": [".f10pi13n{position:relative;}", ".f1nbblvp{padding-top:0px;}", ".f1vdfbxk{padding-right:var(--spacingHorizontalS);}", ".f1f5gg8d{padding-left:var(--spacingHorizontalS);}", ".f1ov4xf1{padding-bottom:0px;}"]
72
+ d: [".f1u2r49w{background-color:inherit;}", ".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);}"]
53
73
  });
54
74
  /**
55
75
  * Apply styling to the TableCell slots based on the state
56
76
  */
57
-
58
-
59
77
  const useTableCellStyles_unstable = state => {
60
78
  const styles = useStyles();
61
79
  const layoutStyles = {
62
80
  table: useTableLayoutStyles(),
63
81
  flex: useFlexLayoutStyles()
64
82
  };
65
- state.root.className = react_1.mergeClasses(exports.tableCellClassNames.root, styles.root, state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root, state.root.className);
83
+ state.root.className = react_1.mergeClasses(exports.tableCellClassNames.root, styles.root, state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root, state.noNativeElements ? layoutStyles.flex[state.size] : layoutStyles.table[state.size], state.root.className);
66
84
  return state;
67
85
  };
68
-
69
86
  exports.useTableCellStyles_unstable = useTableCellStyles_unstable;
70
87
  //# sourceMappingURL=useTableCellStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCell/useTableCellStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAIa,OAAA,CAAA,kBAAA,GAAqB,eAArB;AACA,OAAA,CAAA,mBAAA,GAAsD;EACjE,IAAI,EAAE,OAAA,CAAA;AAD2D,CAAtD;;AAIb,MAAM,oBAAoB,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAA7B;;AAOA,MAAM,mBAAmB,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAA5B;AASA;;AAEG;;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAOA;;AAEG;;;AACI,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,OAAA,CAAA,YAAA,CACrB,OAAA,CAAA,mBAAA,CAAoB,IADC,EAErB,MAAM,CAAC,IAFc,EAGrB,KAAK,CAAC,gBAAN,GAAyB,YAAY,CAAC,IAAb,CAAkB,IAA3C,GAAkD,YAAY,CAAC,KAAb,CAAmB,IAHhD,EAIrB,KAAK,CAAC,IAAN,CAAW,SAJU,CAAvB;EAMA,OAAO,KAAP;AACD,CAbM;;AAAM,OAAA,CAAA,2BAAA,GAA2B,2BAA3B","sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\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\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n minWidth: '0px',\n alignItems: 'center',\n ...shorthands.flex(1, 1, '0px'),\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});\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.root.className,\n );\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAA;AACA;AACA;AAIaA,0BAAkB,GAAG,eAAe;AACpCA,2BAAmB,GAAmC;EACjEC,IAAI,EAAED;CACP;AAED,MAAME,oBAAoB,gBAAGC,gBAAU;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAiBrC;AAEF,MAAMC,mBAAmB,gBAAGD,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAmBpC;AAEF;;;AAGA,MAAME,SAAS,gBAAGF,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAc1B;AAEF;;;AAGO,MAAMG,2BAA2B,GAAIC,KAAqB,IAAoB;EACnF,MAAMC,MAAM,GAAGH,SAAS,EAAE;EAC1B,MAAMI,YAAY,GAAG;IACnBC,KAAK,EAAER,oBAAoB,EAAE;IAC7BS,IAAI,EAAEP,mBAAmB;GAC1B;EACDG,KAAK,CAACN,IAAI,CAACW,SAAS,GAAGT,oBAAY,CACjCH,2BAAmB,CAACC,IAAI,EACxBO,MAAM,CAACP,IAAI,EACXM,KAAK,CAACM,gBAAgB,GAAGJ,YAAY,CAACE,IAAI,CAACV,IAAI,GAAGQ,YAAY,CAACC,KAAK,CAACT,IAAI,EACzEM,KAAK,CAACM,gBAAgB,GAAGJ,YAAY,CAACE,IAAI,CAACJ,KAAK,CAACO,IAAI,CAAC,GAAGL,YAAY,CAACC,KAAK,CAACH,KAAK,CAACO,IAAI,CAAC,EACvFP,KAAK,CAACN,IAAI,CAACW,SAAS,CACrB;EACD,OAAOL,KAAK;AACd,CAAC;AAdYP,mCAA2B","names":["exports","root","useTableLayoutStyles","react_1","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 backgroundColor: 'inherit',\n position: 'relative',\n ...shorthands.padding('0px', tokens.spacingHorizontalS),\n\n ...createCustomFocusIndicatorStyle(\n {\n ...shorthands.outline('2px', 'solid', tokens.colorStrokeFocus2),\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n },\n { selector: 'focus', enableOutline: true },\n ),\n },\n});\n\n/**\n * Apply styling to the TableCell slots based on the state\n */\nexport const useTableCellStyles_unstable = (state: TableCellState): TableCellState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n state.root.className = mergeClasses(\n tableCellClassNames.root,\n styles.root,\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.noNativeElements ? layoutStyles.flex[state.size] : layoutStyles.table[state.size],\n state.root.className,\n );\n return state;\n};\n"]}
@@ -4,19 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.TableCellActions = void 0;
7
-
8
7
  const React = /*#__PURE__*/require("react");
9
-
10
8
  const useTableCellActions_1 = /*#__PURE__*/require("./useTableCellActions");
11
-
12
9
  const renderTableCellActions_1 = /*#__PURE__*/require("./renderTableCellActions");
13
-
14
10
  const useTableCellActionsStyles_1 = /*#__PURE__*/require("./useTableCellActionsStyles");
15
11
  /**
16
- * TableCellActions component - TODO: add more docs
12
+ * TableCellActions component
17
13
  */
18
-
19
-
20
14
  exports.TableCellActions = /*#__PURE__*/React.forwardRef((props, ref) => {
21
15
  const state = useTableCellActions_1.useTableCellActions_unstable(props, ref);
22
16
  useTableCellActionsStyles_1.useTableCellActionsStyles_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellActions/TableCellActions.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;;AACA,MAAA,2BAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,gBAA+D,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAC1G,MAAM,KAAK,GAAG,qBAAA,CAAA,4BAAA,CAA6B,KAA7B,EAAoC,GAApC,CAAd;EAEA,2BAAA,CAAA,kCAAA,CAAmC,KAAnC;EACA,OAAO,wBAAA,CAAA,+BAAA,CAAgC,KAAhC,CAAP;AACD,CAL2E,CAA/D;AAOb,OAAA,CAAA,gBAAA,CAAiB,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;AACA;AACA;AACA;AAIA;;;AAGaA,wBAAgB,gBAA+CC,KAAK,CAACC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC1G,MAAMC,KAAK,GAAGC,kDAA4B,CAACH,KAAK,EAAEC,GAAG,CAAC;EAEtDG,8DAAkC,CAACF,KAAK,CAAC;EACzC,OAAOG,wDAA+B,CAACH,KAAK,CAAC;AAC/C,CAAC,CAAC;AAEFL,wBAAgB,CAACS,WAAW,GAAG,kBAAkB","names":["exports","React","forwardRef","props","ref","state","useTableCellActions_1","useTableCellActionsStyles_1","renderTableCellActions_1","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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"","names":[],"sourceRoot":"../src/","sources":[],"sourcesContent":[]}
@@ -3,16 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./TableCellActions"), exports);
10
-
11
8
  tslib_1.__exportStar(require("./TableCellActions.types"), exports);
12
-
13
9
  tslib_1.__exportStar(require("./renderTableCellActions"), exports);
14
-
15
10
  tslib_1.__exportStar(require("./useTableCellActions"), exports);
16
-
17
11
  tslib_1.__exportStar(require("./useTableCellActionsStyles"), exports);
18
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellActions/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TableCellActions';\nexport * from './TableCellActions.types';\nexport * from './renderTableCellActions';\nexport * from './useTableCellActions';\nexport * from './useTableCellActionsStyles';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA;AACAA;AACAA;AACAA;AACAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableCellActions/index.ts"],"sourcesContent":["export * from './TableCellActions';\nexport * from './TableCellActions.types';\nexport * from './renderTableCellActions';\nexport * from './useTableCellActions';\nexport * from './useTableCellActionsStyles';\n"]}
@@ -4,24 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.renderTableCellActions_unstable = void 0;
7
-
8
7
  const React = /*#__PURE__*/require("react");
9
-
10
8
  const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
9
  /**
12
10
  * Render the final JSX of TableCellActions
13
11
  */
14
-
15
-
16
12
  const renderTableCellActions_unstable = state => {
17
13
  const {
18
14
  slots,
19
15
  slotProps
20
- } = react_utilities_1.getSlots(state); // TODO Add additional slots in the appropriate place
21
-
22
- return React.createElement(slots.root, { ...slotProps.root
16
+ } = react_utilities_1.getSlots(state);
17
+ return React.createElement(slots.root, {
18
+ ...slotProps.root
23
19
  });
24
20
  };
25
-
26
21
  exports.renderTableCellActions_unstable = renderTableCellActions_unstable;
27
22
  //# sourceMappingURL=renderTableCellActions.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellActions/renderTableCellActions.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,+BAA+B,GAAI,KAAD,IAAiC;EAC9E,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,iBAAA,CAAA,QAAA,CAAgC,KAAhC,CAA7B,CAD8E,CAG9E;;EACA,OAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CAAP;AACD,CALM;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","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;AACA;AAGA;;;AAGO,MAAMA,+BAA+B,GAAIC,KAA4B,IAAI;EAC9E,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGC,0BAAQ,CAAwBH,KAAK,CAAC;EAEnE,OAAOI,oBAACH,KAAK,CAACI,IAAI;IAAA,GAAKH,SAAS,CAACG;EAAI,EAAI;AAC3C,CAAC;AAJYC,uCAA+B","names":["renderTableCellActions_unstable","state","slots","slotProps","react_utilities_1","React","root","exports"],"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"]}
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useTableCellActions_unstable = void 0;
7
-
8
7
  const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
-
10
- const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
11
8
  /**
12
9
  * Create the state required to render TableCellActions.
13
10
  *
@@ -17,22 +14,18 @@ const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
17
14
  * @param props - props from this instance of TableCellActions
18
15
  * @param ref - reference to root HTMLElement of TableCellActions
19
16
  */
20
-
21
-
22
17
  const useTableCellActions_unstable = (props, ref) => {
23
18
  var _a;
24
-
25
19
  return {
26
20
  components: {
27
21
  root: 'div'
28
22
  },
29
23
  root: react_utilities_1.getNativeElementProps('div', {
30
- ref: react_utilities_1.useMergedRefs(ref, react_tabster_1.useFocusWithin()),
24
+ ref,
31
25
  ...props
32
26
  }),
33
27
  visible: (_a = props.visible) !== null && _a !== void 0 ? _a : false
34
28
  };
35
29
  };
36
-
37
30
  exports.useTableCellActions_unstable = useTableCellActions_unstable;
38
31
  //# sourceMappingURL=useTableCellActions.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellActions/useTableCellActions.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAGA;;;;;;;;AAQG;;;AACI,MAAM,4BAA4B,GAAG,CAC1C,KAD0C,EAE1C,GAF0C,KAGjB;;;EACzB,OAAO;IACL,UAAU,EAAE;MACV,IAAI,EAAE;IADI,CADP;IAIL,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA6B;MACjC,GAAG,EAAE,iBAAA,CAAA,aAAA,CAAc,GAAd,EAAmB,eAAA,CAAA,cAAA,EAAnB,CAD4B;MAEjC,GAAG;IAF8B,CAA7B,CAJD;IAQL,OAAO,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,OAAN,MAAa,IAAb,IAAa,EAAA,KAAA,KAAA,CAAb,GAAa,EAAb,GAAiB;EARrB,CAAP;AAUD,CAdM;;AAAM,OAAA,CAAA,4BAAA,GAA4B,4BAA5B","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, useMergedRefs } from '@fluentui/react-utilities';\nimport { useFocusWithin } from '@fluentui/react-tabster';\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: useMergedRefs(ref, useFocusWithin()),\n ...props,\n }),\n visible: props.visible ?? false,\n };\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AACA;AAGA;;;;;;;;;AASO,MAAMA,4BAA4B,GAAG,CAC1CC,KAA4B,EAC5BC,GAA2B,KACF;;EACzB,OAAO;IACLC,UAAU,EAAE;MACVC,IAAI,EAAE;KACP;IACDA,IAAI,EAAEC,uCAAqB,CAAC,KAAK,EAAE;MACjCH,GAAG;MACH,GAAGD;KACJ,CAAC;IACFK,OAAO,EAAE,WAAK,CAACA,OAAO,mCAAI;GAC3B;AACH,CAAC;AAdYC,oCAA4B","names":["useTableCellActions_unstable","props","ref","components","root","react_utilities_1","visible","exports"],"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"]}
@@ -4,48 +4,36 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useTableCellActionsStyles_unstable = exports.tableCellActionsClassNames = void 0;
7
-
8
7
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
-
10
- const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
11
-
12
8
  exports.tableCellActionsClassNames = {
13
9
  root: 'fui-TableCellActions'
14
10
  };
15
11
  /**
16
12
  * Styles for the root slot
17
13
  */
18
-
19
14
  const useStyles = /*#__PURE__*/react_1.__styles({
20
- "root": {
21
- "qhf8xq": "f1euv43f",
22
- "j35jbq": ["f10k790i", "f1xynx9j"],
23
- "Bhzewxz": "f1i1t8d1",
24
- "Bz10aip": "f188r07x",
25
- "abs64n": "fk73vx1",
26
- "Frg6f3": ["fcgxt0o", "f1ujusj6"],
27
- "Brovlpu": "ftqa4ok",
28
- "B486eqv": "f2hkw1w",
29
- "B113ap8": "f1upwfw9"
15
+ root: {
16
+ De3pzq: "f1u2r49w",
17
+ qhf8xq: "f1euv43f",
18
+ j35jbq: ["f10k790i", "f1xynx9j"],
19
+ Bhzewxz: "f1i1t8d1",
20
+ Bz10aip: "f188r07x",
21
+ abs64n: "fk73vx1",
22
+ Frg6f3: ["fcgxt0o", "f1ujusj6"]
30
23
  },
31
- "visible": {
32
- "abs64n": "f5p0z4x"
24
+ visible: {
25
+ abs64n: "f5p0z4x"
33
26
  }
34
27
  }, {
35
- "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;}", ".f1upwfw9[data-fui-focus-visible]:focus-within{opacity:1;}", ".f5p0z4x{opacity:1;}"],
36
- "f": [".ftqa4ok:focus{outline-style:none;}"],
37
- "i": [".f2hkw1w:focus-visible{outline-style:none;}"]
28
+ d: [".f1u2r49w{background-color:inherit;}", ".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;}"]
38
29
  });
39
30
  /**
40
31
  * Apply styling to the TableCellActions slots based on the state
41
32
  */
42
-
43
-
44
33
  const useTableCellActionsStyles_unstable = state => {
45
34
  const styles = useStyles();
46
35
  state.root.className = react_1.mergeClasses(exports.tableCellActionsClassNames.root, styles.root, state.visible && styles.visible, state.root.className);
47
36
  return state;
48
37
  };
49
-
50
38
  exports.useTableCellActionsStyles_unstable = useTableCellActionsStyles_unstable;
51
39
  //# sourceMappingURL=useTableCellActionsStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellActions/useTableCellActionsStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAGA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AAEa,OAAA,CAAA,0BAAA,GAAoE;EAC/E,IAAI,EAAE;AADyE,CAApE;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;EAAA;EAAA;AAAA,EAAlB;AAsBA;;AAEG;;;AACI,MAAM,kCAAkC,GAAI,KAAD,IAAwD;EACxG,MAAM,MAAM,GAAG,SAAS,EAAxB;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CACrB,OAAA,CAAA,0BAAA,CAA2B,IADN,EAErB,MAAM,CAAC,IAFc,EAGrB,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,OAHH,EAIrB,KAAK,CAAC,IAAN,CAAW,SAJU,CAAvB;EAOA,OAAO,KAAP;AACD,CAVM;;AAAM,OAAA,CAAA,kCAAA,GAAkC,kCAAlC","sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport type { TableCellActionsSlots, TableCellActionsState } from './TableCellActions.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\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 ...createCustomFocusIndicatorStyle(\n {\n opacity: 1,\n },\n { selector: 'focus-within' },\n ),\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;AAIaA,kCAA0B,GAA0C;EAC/EC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAc1B;AAEF;;;AAGO,MAAMC,kCAAkC,GAAIC,KAA4B,IAA2B;EACxG,MAAMC,MAAM,GAAGJ,SAAS,EAAE;EAC1BG,KAAK,CAACJ,IAAI,CAACM,SAAS,GAAGJ,oBAAY,CACjCH,kCAA0B,CAACC,IAAI,EAC/BK,MAAM,CAACL,IAAI,EACXI,KAAK,CAACG,OAAO,IAAIF,MAAM,CAACE,OAAO,EAC/BH,KAAK,CAACJ,IAAI,CAACM,SAAS,CACrB;EAED,OAAOF,KAAK;AACd,CAAC;AAVYL,0CAAkC","names":["exports","root","useStyles","react_1","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 backgroundColor: 'inherit',\n position: 'absolute',\n right: '0px',\n top: '50%',\n transform: 'translateY(-50%)',\n opacity: 0,\n marginLeft: 'auto',\n },\n\n visible: {\n opacity: 1,\n },\n});\n\n/**\n * Apply styling to the TableCellActions slots based on the state\n */\nexport const useTableCellActionsStyles_unstable = (state: TableCellActionsState): TableCellActionsState => {\n const styles = useStyles();\n state.root.className = mergeClasses(\n tableCellActionsClassNames.root,\n styles.root,\n state.visible && styles.visible,\n state.root.className,\n );\n\n return state;\n};\n"]}
@@ -4,21 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.TableCellLayout = void 0;
7
-
8
7
  const React = /*#__PURE__*/require("react");
9
-
10
8
  const useTableCellLayout_1 = /*#__PURE__*/require("./useTableCellLayout");
11
-
12
9
  const renderTableCellLayout_1 = /*#__PURE__*/require("./renderTableCellLayout");
13
-
14
10
  const useTableCellLayoutStyles_1 = /*#__PURE__*/require("./useTableCellLayoutStyles");
15
-
16
11
  const useTableCellLayoutContextValues_1 = /*#__PURE__*/require("./useTableCellLayoutContextValues");
17
12
  /**
18
- * TableCellLayout component - TODO: add more docs
13
+ * TableCellLayout component
19
14
  */
20
-
21
-
22
15
  exports.TableCellLayout = /*#__PURE__*/React.forwardRef((props, ref) => {
23
16
  const state = useTableCellLayout_1.useTableCellLayout_unstable(props, ref);
24
17
  useTableCellLayoutStyles_1.useTableCellLayoutStyles_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/TableCellLayout.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,oBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;;AACA,MAAA,uBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,0BAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACA,MAAA,iCAAA,gBAAA,OAAA,CAAA,mCAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,eAAA,gBAA6D,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACxG,MAAM,KAAK,GAAG,oBAAA,CAAA,2BAAA,CAA4B,KAA5B,EAAmC,GAAnC,CAAd;EAEA,0BAAA,CAAA,iCAAA,CAAkC,KAAlC;EACA,OAAO,uBAAA,CAAA,8BAAA,CAA+B,KAA/B,EAAsC,iCAAA,CAAA,wCAAA,CAAyC,KAAzC,CAAtC,CAAP;AACD,CALyE,CAA7D;AAOb,OAAA,CAAA,eAAA,CAAgB,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;AACA;AACA;AACA;AACA;AAIA;;;AAGaA,uBAAe,gBAA8CC,KAAK,CAACC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EACxG,MAAMC,KAAK,GAAGC,gDAA2B,CAACH,KAAK,EAAEC,GAAG,CAAC;EAErDG,4DAAiC,CAACF,KAAK,CAAC;EACxC,OAAOG,sDAA8B,CAACH,KAAK,EAAEI,0EAAwC,CAACJ,KAAK,CAAC,CAAC;AAC/F,CAAC,CAAC;AAEFL,uBAAe,CAACU,WAAW,GAAG,iBAAiB","names":["exports","React","forwardRef","props","ref","state","useTableCellLayout_1","useTableCellLayoutStyles_1","renderTableCellLayout_1","useTableCellLayoutContextValues_1","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,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"","names":[],"sourceRoot":"../src/","sources":[],"sourcesContent":[]}
@@ -3,16 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./TableCellLayout"), exports);
10
-
11
8
  tslib_1.__exportStar(require("./TableCellLayout.types"), exports);
12
-
13
9
  tslib_1.__exportStar(require("./renderTableCellLayout"), exports);
14
-
15
10
  tslib_1.__exportStar(require("./useTableCellLayout"), exports);
16
-
17
11
  tslib_1.__exportStar(require("./useTableCellLayoutStyles"), exports);
18
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TableCellLayout';\nexport * from './TableCellLayout.types';\nexport * from './renderTableCellLayout';\nexport * from './useTableCellLayout';\nexport * from './useTableCellLayoutStyles';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA;AACAA;AACAA;AACAA;AACAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/TableCellLayout/index.ts"],"sourcesContent":["export * from './TableCellLayout';\nexport * from './TableCellLayout.types';\nexport * from './renderTableCellLayout';\nexport * from './useTableCellLayout';\nexport * from './useTableCellLayoutStyles';\n"]}
@@ -4,31 +4,30 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.renderTableCellLayout_unstable = void 0;
7
-
8
7
  const React = /*#__PURE__*/require("react");
9
-
10
8
  const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
-
12
9
  const react_avatar_1 = /*#__PURE__*/require("@fluentui/react-avatar");
13
10
  /**
14
11
  * Render the final JSX of TableCellLayout
15
12
  */
16
-
17
-
18
13
  const renderTableCellLayout_unstable = (state, contextValues) => {
19
14
  const {
20
15
  slots,
21
16
  slotProps
22
17
  } = react_utilities_1.getSlots(state);
23
- return React.createElement(slots.root, { ...slotProps.root
18
+ return React.createElement(slots.root, {
19
+ ...slotProps.root
24
20
  }, slots.media && React.createElement(react_avatar_1.AvatarContextProvider, {
25
21
  value: contextValues.avatar
26
- }, React.createElement(slots.media, { ...slotProps.media
27
- })), slots.wrapper && React.createElement(slots.wrapper, { ...slotProps.wrapper
28
- }, slots.main && React.createElement(slots.main, { ...slotProps.main
29
- }, slotProps.root.children), slots.description && React.createElement(slots.description, { ...slotProps.description
22
+ }, React.createElement(slots.media, {
23
+ ...slotProps.media
24
+ })), slots.content && React.createElement(slots.content, {
25
+ ...slotProps.content
26
+ }, slots.main && React.createElement(slots.main, {
27
+ ...slotProps.main
28
+ }, slotProps.root.children), slots.description && React.createElement(slots.description, {
29
+ ...slotProps.description
30
30
  })));
31
31
  };
32
-
33
32
  exports.renderTableCellLayout_unstable = renderTableCellLayout_unstable;
34
33
  //# sourceMappingURL=renderTableCellLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/renderTableCellLayout.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,8BAA8B,GAAG,CAC5C,KAD4C,EAE5C,aAF4C,KAG1C;EACF,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,iBAAA,CAAA,QAAA,CAA+B,KAA/B,CAA7B;EAEA,OACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,EACG,KAAK,CAAC,KAAN,IACC,KAAA,CAAA,aAAA,CAAC,cAAA,CAAA,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,IACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;EAAf,CAAd,EACG,KAAK,CAAC,IAAN,IAAc,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,IAAqB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,WAAP,EAAkB,EAAA,GAAK,SAAS,CAAC;EAAf,CAAlB,CAFxB,CAPJ,CADF;AAeD,CArBM;;AAAM,OAAA,CAAA,8BAAA,GAA8B,8BAA9B","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;AACA;AACA;AAGA;;;AAGO,MAAMA,8BAA8B,GAAG,CAC5CC,KAA2B,EAC3BC,aAA2C,KACzC;EACF,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGC,0BAAQ,CAAuBJ,KAAK,CAAC;EAElE,OACEK,oBAACH,KAAK,CAACI,IAAI;IAAA,GAAKH,SAAS,CAACG;EAAI,GAC3BJ,KAAK,CAACK,KAAK,IACVF,oBAACG,oCAAqB;IAACC,KAAK,EAAER,aAAa,CAACS;EAAM,GAChDL,oBAACH,KAAK,CAACK,KAAK;IAAA,GAAKJ,SAAS,CAACI;EAAK,EAAI,CAEvC,EACAL,KAAK,CAACS,OAAO,IACZN,oBAACH,KAAK,CAACS,OAAO;IAAA,GAAKR,SAAS,CAACQ;EAAO,GACjCT,KAAK,CAACU,IAAI,IAAIP,oBAACH,KAAK,CAACU,IAAI;IAAA,GAAKT,SAAS,CAACS;EAAI,GAAGT,SAAS,CAACG,IAAI,CAACO,QAAQ,CAAc,EACpFX,KAAK,CAACY,WAAW,IAAIT,oBAACH,KAAK,CAACY,WAAW;IAAA,GAAKX,SAAS,CAACW;EAAW,EAAI,CAEzE,CACU;AAEjB,CAAC;AArBYC,sCAA8B","names":["renderTableCellLayout_unstable","state","contextValues","slots","slotProps","react_utilities_1","React","root","media","react_avatar_1","value","avatar","content","main","children","description","exports"],"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"]}
@@ -4,15 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useTableCellLayout_unstable = void 0;
7
-
8
7
  const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
-
10
8
  const tableContext_1 = /*#__PURE__*/require("../../contexts/tableContext");
11
-
12
9
  const tableAvatarSizeMap = {
13
10
  medium: 32,
14
11
  small: 24,
15
- smaller: 20
12
+ 'extra-small': 20
16
13
  };
17
14
  /**
18
15
  * Create the state required to render TableCellLayout.
@@ -23,7 +20,6 @@ const tableAvatarSizeMap = {
23
20
  * @param props - props from this instance of TableCellLayout
24
21
  * @param ref - reference to root HTMLElement of TableCellLayout
25
22
  */
26
-
27
23
  const useTableCellLayout_unstable = (props, ref) => {
28
24
  const {
29
25
  size
@@ -33,7 +29,7 @@ const useTableCellLayout_unstable = (props, ref) => {
33
29
  root: 'div',
34
30
  main: 'span',
35
31
  description: 'span',
36
- wrapper: 'div',
32
+ content: 'div',
37
33
  media: 'span'
38
34
  },
39
35
  root: react_utilities_1.getNativeElementProps('div', {
@@ -46,12 +42,12 @@ const useTableCellLayout_unstable = (props, ref) => {
46
42
  }),
47
43
  media: react_utilities_1.resolveShorthand(props.media),
48
44
  description: react_utilities_1.resolveShorthand(props.description),
49
- wrapper: react_utilities_1.resolveShorthand(props.wrapper, {
45
+ content: react_utilities_1.resolveShorthand(props.content, {
50
46
  required: !!props.description || !!props.children
51
47
  }),
52
- avatarSize: tableAvatarSizeMap[size]
48
+ avatarSize: tableAvatarSizeMap[size],
49
+ size
53
50
  };
54
51
  };
55
-
56
52
  exports.useTableCellLayout_unstable = useTableCellLayout_unstable;
57
53
  //# sourceMappingURL=useTableCellLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/useTableCellLayout.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,cAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,MAAM,kBAAkB,GAAG;EACzB,MAAM,EAAE,EADiB;EAEzB,KAAK,EAAE,EAFkB;EAGzB,OAAO,EAAE;AAHgB,CAA3B;AAMA;;;;;;;;AAQG;;AACI,MAAM,2BAA2B,GAAG,CACzC,KADyC,EAEzC,GAFyC,KAGjB;EACxB,MAAM;IAAE;EAAF,IAAW,cAAA,CAAA,eAAA,EAAjB;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,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA6B;MAAE,GAAF;MAAO,GAAG;IAAV,CAA7B,CARD;IASL,UAAU,EAAE,KAAK,CAAC,UATb;IAUL,IAAI,EAAE,iBAAA,CAAA,gBAAA,CAAiB,KAAK,CAAC,IAAvB,EAA6B;MAAE,QAAQ,EAAE;IAAZ,CAA7B,CAVD;IAWL,KAAK,EAAE,iBAAA,CAAA,gBAAA,CAAiB,KAAK,CAAC,KAAvB,CAXF;IAYL,WAAW,EAAE,iBAAA,CAAA,gBAAA,CAAiB,KAAK,CAAC,WAAvB,CAZR;IAaL,OAAO,EAAE,iBAAA,CAAA,gBAAA,CAAiB,KAAK,CAAC,OAAvB,EAAgC;MAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,WAAR,IAAuB,CAAC,CAAC,KAAK,CAAC;IAA3C,CAAhC,CAbJ;IAcL,UAAU,EAAE,kBAAkB,CAAC,IAAD;EAdzB,CAAP;AAgBD,CAtBM;;AAAM,OAAA,CAAA,2BAAA,GAA2B,2BAA3B","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 smaller: 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 };\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AACA;AAEA;AAEA,MAAMA,kBAAkB,GAAG;EACzBC,MAAM,EAAE,EAAE;EACVC,KAAK,EAAE,EAAE;EACT,aAAa,EAAE;CACP;AAEV;;;;;;;;;AASO,MAAMC,2BAA2B,GAAG,CACzCC,KAA2B,EAC3BC,GAA2B,KACH;EACxB,MAAM;IAAEC;EAAI,CAAE,GAAGC,8BAAe,EAAE;EAElC,OAAO;IACLC,UAAU,EAAE;MACVC,IAAI,EAAE,KAAK;MACXC,IAAI,EAAE,MAAM;MACZC,WAAW,EAAE,MAAM;MACnBC,OAAO,EAAE,KAAK;MACdC,KAAK,EAAE;KACR;IACDJ,IAAI,EAAEK,uCAAqB,CAAC,KAAK,EAAE;MAAET,GAAG;MAAE,GAAGD;IAAK,CAAE,CAAC;IACrDW,UAAU,EAAEX,KAAK,CAACW,UAAU;IAC5BL,IAAI,EAAEI,kCAAgB,CAACV,KAAK,CAACM,IAAI,EAAE;MAAEM,QAAQ,EAAE;IAAI,CAAE,CAAC;IACtDH,KAAK,EAAEC,kCAAgB,CAACV,KAAK,CAACS,KAAK,CAAC;IACpCF,WAAW,EAAEG,kCAAgB,CAACV,KAAK,CAACO,WAAW,CAAC;IAChDC,OAAO,EAAEE,kCAAgB,CAACV,KAAK,CAACQ,OAAO,EAAE;MAAEI,QAAQ,EAAE,CAAC,CAACZ,KAAK,CAACO,WAAW,IAAI,CAAC,CAACP,KAAK,CAACa;IAAQ,CAAE,CAAC;IAC/FC,UAAU,EAAElB,kBAAkB,CAACM,IAAI,CAAC;IACpCA;GACD;AACH,CAAC;AAvBYa,mCAA2B","names":["tableAvatarSizeMap","medium","small","useTableCellLayout_unstable","props","ref","size","tableContext_1","components","root","main","description","content","media","react_utilities_1","appearance","required","children","avatarSize","exports"],"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"]}
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useTableCellLayoutContextValues_unstable = void 0;
7
-
8
7
  const React = /*#__PURE__*/require("react");
9
-
10
8
  function useTableCellLayoutContextValues_unstable(state) {
11
9
  const {
12
10
  avatarSize
@@ -18,6 +16,5 @@ function useTableCellLayoutContextValues_unstable(state) {
18
16
  avatar
19
17
  };
20
18
  }
21
-
22
19
  exports.useTableCellLayoutContextValues_unstable = useTableCellLayoutContextValues_unstable;
23
20
  //# sourceMappingURL=useTableCellLayoutContextValues.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-table/src/components/TableCellLayout/useTableCellLayoutContextValues.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAGA,SAAgB,wCAAhB,CAAyD,KAAzD,EAAoF;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;;AAbD,OAAA,CAAA,wCAAA,GAAA,wCAAA","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;AAGA,SAAgBA,wCAAwC,CAACC,KAA2B;EAClF,MAAM;IAAEC;EAAU,CAAE,GAAGD,KAAK;EAE5B,MAAME,MAAM,GAAGC,KAAK,CAACC,OAAO,CAC1B,OAAO;IACLC,IAAI,EAAEJ;GACP,CAAC,EACF,CAACA,UAAU,CAAC,CACb;EAED,OAAO;IACLC;GACD;AACH;AAbAI","names":["useTableCellLayoutContextValues_unstable","state","avatarSize","avatar","React","useMemo","size","exports"],"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"]}