@fluentui/react-table 9.74.7-experimental.cli-api.20261006-ccaa611d58.0 → 9.75.0-experimental.css-modules.20261031-810ab07afb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (552) hide show
  1. package/CHANGELOG.md +58 -16
  2. package/README.md +17 -0
  3. package/lib/components/DataGrid/DataGrid.js.map +1 -1
  4. package/lib/components/DataGrid/DataGrid.module.css +1 -0
  5. package/lib/components/DataGrid/DataGrid.types.js.map +1 -1
  6. package/lib/components/DataGrid/index.js.map +1 -1
  7. package/lib/components/DataGrid/renderDataGrid.js.map +1 -1
  8. package/lib/components/DataGrid/useDataGrid.js +1 -1
  9. package/lib/components/DataGrid/useDataGrid.js.map +1 -1
  10. package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -1
  11. package/lib/components/DataGrid/useDataGridStyles.styles.css.js +13 -0
  12. package/lib/components/DataGrid/useDataGridStyles.styles.css.js.map +1 -0
  13. package/lib/components/DataGrid/useDataGridStyles.styles.raw.css.js +13 -0
  14. package/lib/components/DataGrid/useDataGridStyles.styles.raw.css.js.map +1 -0
  15. package/lib/components/DataGrid/useDataGridStyles.styles.raw.js.map +1 -1
  16. package/lib/components/DataGridBody/DataGridBody.js.map +1 -1
  17. package/lib/components/DataGridBody/DataGridBody.module.css +1 -0
  18. package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -1
  19. package/lib/components/DataGridBody/index.js.map +1 -1
  20. package/lib/components/DataGridBody/renderDataGridBody.js +2 -2
  21. package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -1
  22. package/lib/components/DataGridBody/useDataGridBody.js.map +1 -1
  23. package/lib/components/DataGridBody/useDataGridBodyStyles.styles.css.js +13 -0
  24. package/lib/components/DataGridBody/useDataGridBodyStyles.styles.css.js.map +1 -0
  25. package/lib/components/DataGridBody/useDataGridBodyStyles.styles.raw.css.js +13 -0
  26. package/lib/components/DataGridBody/useDataGridBodyStyles.styles.raw.css.js.map +1 -0
  27. package/lib/components/DataGridBody/useDataGridBodyStyles.styles.raw.js.map +1 -1
  28. package/lib/components/DataGridCell/DataGridCell.js.map +1 -1
  29. package/lib/components/DataGridCell/DataGridCell.module.css +1 -0
  30. package/lib/components/DataGridCell/DataGridCell.types.js.map +1 -1
  31. package/lib/components/DataGridCell/index.js.map +1 -1
  32. package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -1
  33. package/lib/components/DataGridCell/useDataGridCell.js.map +1 -1
  34. package/lib/components/DataGridCell/useDataGridCellStyles.styles.css.js +13 -0
  35. package/lib/components/DataGridCell/useDataGridCellStyles.styles.css.js.map +1 -0
  36. package/lib/components/DataGridCell/useDataGridCellStyles.styles.raw.css.js +13 -0
  37. package/lib/components/DataGridCell/useDataGridCellStyles.styles.raw.css.js.map +1 -0
  38. package/lib/components/DataGridCell/useDataGridCellStyles.styles.raw.js.map +1 -1
  39. package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -1
  40. package/lib/components/DataGridHeader/DataGridHeader.module.css +1 -0
  41. package/lib/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
  42. package/lib/components/DataGridHeader/index.js.map +1 -1
  43. package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  44. package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  45. package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.css.js +13 -0
  46. package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.css.js.map +1 -0
  47. package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.css.js +13 -0
  48. package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.css.js.map +1 -0
  49. package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.js.map +1 -1
  50. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  51. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.module.css +1 -0
  52. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
  53. package/lib/components/DataGridHeaderCell/index.js.map +1 -1
  54. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  55. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  56. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.css.js +28 -0
  57. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.css.js.map +1 -0
  58. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.css.js +28 -0
  59. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.css.js.map +1 -0
  60. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.js.map +1 -1
  61. package/lib/components/DataGridRow/DataGridRow.js.map +1 -1
  62. package/lib/components/DataGridRow/DataGridRow.module.css +6 -0
  63. package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -1
  64. package/lib/components/DataGridRow/index.js.map +1 -1
  65. package/lib/components/DataGridRow/renderDataGridRow.js +2 -2
  66. package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -1
  67. package/lib/components/DataGridRow/useDataGridRow.js.map +1 -1
  68. package/lib/components/DataGridRow/useDataGridRowStyles.styles.css.js +20 -0
  69. package/lib/components/DataGridRow/useDataGridRowStyles.styles.css.js.map +1 -0
  70. package/lib/components/DataGridRow/useDataGridRowStyles.styles.raw.css.js +20 -0
  71. package/lib/components/DataGridRow/useDataGridRowStyles.styles.raw.css.js.map +1 -0
  72. package/lib/components/DataGridRow/useDataGridRowStyles.styles.raw.js.map +1 -1
  73. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  74. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.module.css +1 -0
  75. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
  76. package/lib/components/DataGridSelectionCell/index.js.map +1 -1
  77. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  78. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  79. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.css.js +23 -0
  80. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.css.js.map +1 -0
  81. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.css.js +23 -0
  82. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.css.js.map +1 -0
  83. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.js.map +1 -1
  84. package/lib/components/Table/Table.js.map +1 -1
  85. package/lib/components/Table/Table.module.css +15 -0
  86. package/lib/components/Table/Table.types.js.map +1 -1
  87. package/lib/components/Table/index.js.map +1 -1
  88. package/lib/components/Table/renderTable.js +2 -2
  89. package/lib/components/Table/renderTable.js.map +1 -1
  90. package/lib/components/Table/useTable.js +1 -2
  91. package/lib/components/Table/useTable.js.map +1 -1
  92. package/lib/components/Table/useTableContextValues.js.map +1 -1
  93. package/lib/components/Table/useTableStyles.styles.css.js +10 -0
  94. package/lib/components/Table/useTableStyles.styles.css.js.map +1 -0
  95. package/lib/components/Table/useTableStyles.styles.raw.css.js +10 -0
  96. package/lib/components/Table/useTableStyles.styles.raw.css.js.map +1 -0
  97. package/lib/components/Table/useTableStyles.styles.raw.js.map +1 -1
  98. package/lib/components/TableBody/TableBody.js.map +1 -1
  99. package/lib/components/TableBody/TableBody.module.css +8 -0
  100. package/lib/components/TableBody/TableBody.types.js.map +1 -1
  101. package/lib/components/TableBody/index.js.map +1 -1
  102. package/lib/components/TableBody/renderTableBody.js +2 -2
  103. package/lib/components/TableBody/renderTableBody.js.map +1 -1
  104. package/lib/components/TableBody/useTableBody.js +1 -1
  105. package/lib/components/TableBody/useTableBody.js.map +1 -1
  106. package/lib/components/TableBody/useTableBodyStyles.styles.css.js +10 -0
  107. package/lib/components/TableBody/useTableBodyStyles.styles.css.js.map +1 -0
  108. package/lib/components/TableBody/useTableBodyStyles.styles.raw.css.js +10 -0
  109. package/lib/components/TableBody/useTableBodyStyles.styles.raw.css.js.map +1 -0
  110. package/lib/components/TableBody/useTableBodyStyles.styles.raw.js.map +1 -1
  111. package/lib/components/TableCell/TableCell.js.map +1 -1
  112. package/lib/components/TableCell/TableCell.module.css +31 -0
  113. package/lib/components/TableCell/TableCell.types.js.map +1 -1
  114. package/lib/components/TableCell/index.js.map +1 -1
  115. package/lib/components/TableCell/renderTableCell.js +2 -2
  116. package/lib/components/TableCell/renderTableCell.js.map +1 -1
  117. package/lib/components/TableCell/useTableCell.js +1 -1
  118. package/lib/components/TableCell/useTableCell.js.map +1 -1
  119. package/lib/components/TableCell/useTableCellStyles.styles.css.js +10 -0
  120. package/lib/components/TableCell/useTableCellStyles.styles.css.js.map +1 -0
  121. package/lib/components/TableCell/useTableCellStyles.styles.raw.css.js +10 -0
  122. package/lib/components/TableCell/useTableCellStyles.styles.raw.css.js.map +1 -0
  123. package/lib/components/TableCell/useTableCellStyles.styles.raw.js.map +1 -1
  124. package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
  125. package/lib/components/TableCellActions/TableCellActions.module.css +14 -0
  126. package/lib/components/TableCellActions/TableCellActions.types.js.map +1 -1
  127. package/lib/components/TableCellActions/index.js.map +1 -1
  128. package/lib/components/TableCellActions/renderTableCellActions.js +2 -2
  129. package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
  130. package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
  131. package/lib/components/TableCellActions/useTableCellActionsStyles.styles.css.js +9 -0
  132. package/lib/components/TableCellActions/useTableCellActionsStyles.styles.css.js.map +1 -0
  133. package/lib/components/TableCellActions/useTableCellActionsStyles.styles.raw.css.js +9 -0
  134. package/lib/components/TableCellActions/useTableCellActionsStyles.styles.raw.css.js.map +1 -0
  135. package/lib/components/TableCellActions/useTableCellActionsStyles.styles.raw.js.map +1 -1
  136. package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
  137. package/lib/components/TableCellLayout/TableCellLayout.module.css +46 -0
  138. package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  139. package/lib/components/TableCellLayout/index.js.map +1 -1
  140. package/lib/components/TableCellLayout/renderTableCellLayout.js +2 -2
  141. package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  142. package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  143. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  144. package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.css.js +25 -0
  145. package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.css.js.map +1 -0
  146. package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.css.js +25 -0
  147. package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.css.js.map +1 -0
  148. package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.js.map +1 -1
  149. package/lib/components/TableHeader/TableHeader.js.map +1 -1
  150. package/lib/components/TableHeader/TableHeader.module.css +8 -0
  151. package/lib/components/TableHeader/TableHeader.types.js.map +1 -1
  152. package/lib/components/TableHeader/index.js.map +1 -1
  153. package/lib/components/TableHeader/renderTableHeader.js +2 -2
  154. package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
  155. package/lib/components/TableHeader/useTableHeader.js +1 -1
  156. package/lib/components/TableHeader/useTableHeader.js.map +1 -1
  157. package/lib/components/TableHeader/useTableHeaderStyles.styles.css.js +10 -0
  158. package/lib/components/TableHeader/useTableHeaderStyles.styles.css.js.map +1 -0
  159. package/lib/components/TableHeader/useTableHeaderStyles.styles.raw.css.js +10 -0
  160. package/lib/components/TableHeader/useTableHeaderStyles.styles.raw.css.js.map +1 -0
  161. package/lib/components/TableHeader/useTableHeaderStyles.styles.raw.js.map +1 -1
  162. package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  163. package/lib/components/TableHeaderCell/TableHeaderCell.module.css +59 -0
  164. package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  165. package/lib/components/TableHeaderCell/index.js.map +1 -1
  166. package/lib/components/TableHeaderCell/renderTableHeaderCell.js +2 -2
  167. package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  168. package/lib/components/TableHeaderCell/useTableHeaderCell.js +1 -2
  169. package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  170. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.css.js +20 -0
  171. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.css.js.map +1 -0
  172. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.css.js +20 -0
  173. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.css.js.map +1 -0
  174. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.js.map +1 -1
  175. package/lib/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  176. package/lib/components/TableResizeHandle/TableResizeHandle.module.css +32 -0
  177. package/lib/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
  178. package/lib/components/TableResizeHandle/index.js.map +1 -1
  179. package/lib/components/TableResizeHandle/renderTableResizeHandle.js +2 -2
  180. package/lib/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  181. package/lib/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  182. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.js +9 -0
  183. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.js.map +1 -0
  184. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.css.js +9 -0
  185. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.css.js.map +1 -0
  186. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.js.map +1 -1
  187. package/lib/components/TableRow/TableRow.js.map +1 -1
  188. package/lib/components/TableRow/TableRow.module.css +76 -0
  189. package/lib/components/TableRow/TableRow.types.js.map +1 -1
  190. package/lib/components/TableRow/index.js.map +1 -1
  191. package/lib/components/TableRow/renderTableRow.js +2 -2
  192. package/lib/components/TableRow/renderTableRow.js.map +1 -1
  193. package/lib/components/TableRow/useTableRow.js +1 -2
  194. package/lib/components/TableRow/useTableRow.js.map +1 -1
  195. package/lib/components/TableRow/useTableRowStyles.styles.css.js +10 -0
  196. package/lib/components/TableRow/useTableRowStyles.styles.css.js.map +1 -0
  197. package/lib/components/TableRow/useTableRowStyles.styles.raw.css.js +10 -0
  198. package/lib/components/TableRow/useTableRowStyles.styles.raw.css.js.map +1 -0
  199. package/lib/components/TableRow/useTableRowStyles.styles.raw.js.map +1 -1
  200. package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  201. package/lib/components/TableSelectionCell/TableSelectionCell.module.css +37 -0
  202. package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  203. package/lib/components/TableSelectionCell/index.js.map +1 -1
  204. package/lib/components/TableSelectionCell/renderTableSelectionCell.js +2 -2
  205. package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  206. package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  207. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.css.js +18 -0
  208. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.css.js.map +1 -0
  209. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.css.js +18 -0
  210. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.css.js.map +1 -0
  211. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.js.map +1 -1
  212. package/lib/contexts/columnIdContext.js.map +1 -1
  213. package/lib/contexts/dataGridContext.js.map +1 -1
  214. package/lib/contexts/rowIdContext.js.map +1 -1
  215. package/lib/contexts/tableContext.js.map +1 -1
  216. package/lib/contexts/tableHeaderContext.js.map +1 -1
  217. package/lib/hooks/createColumn.js.map +1 -1
  218. package/lib/hooks/index.js.map +1 -1
  219. package/lib/hooks/types.js.map +1 -1
  220. package/lib/hooks/useKeyboardResizing.js.map +1 -1
  221. package/lib/hooks/useMeasureElement.js.map +1 -1
  222. package/lib/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  223. package/lib/hooks/useTableColumnResizeState.js.map +1 -1
  224. package/lib/hooks/useTableColumnSizing.js.map +1 -1
  225. package/lib/hooks/useTableCompositeNavigation.js.map +1 -1
  226. package/lib/hooks/useTableFeatures.js +2 -2
  227. package/lib/hooks/useTableFeatures.js.map +1 -1
  228. package/lib/hooks/useTableSelection.js +4 -4
  229. package/lib/hooks/useTableSelection.js.map +1 -1
  230. package/lib/hooks/useTableSort.js.map +1 -1
  231. package/lib/utils/columnResizeUtils.js +6 -6
  232. package/lib/utils/columnResizeUtils.js.map +1 -1
  233. package/lib/utils/isColumnSortable.js.map +1 -1
  234. package/lib-commonjs/DataGrid.cjs +7 -7
  235. package/lib-commonjs/DataGridBody.cjs +6 -6
  236. package/lib-commonjs/DataGridCell.cjs +6 -6
  237. package/lib-commonjs/DataGridHeader.cjs +6 -6
  238. package/lib-commonjs/DataGridHeaderCell.cjs +6 -6
  239. package/lib-commonjs/DataGridRow.cjs +6 -6
  240. package/lib-commonjs/DataGridSelectionCell.cjs +6 -6
  241. package/lib-commonjs/Table.cjs +7 -7
  242. package/lib-commonjs/TableBody.cjs +7 -7
  243. package/lib-commonjs/TableCell.cjs +7 -7
  244. package/lib-commonjs/TableCellActions.cjs +6 -6
  245. package/lib-commonjs/TableCellLayout.cjs +6 -6
  246. package/lib-commonjs/TableCellPrimaryLayout.cjs +6 -6
  247. package/lib-commonjs/TableHeader.cjs +7 -7
  248. package/lib-commonjs/TableHeaderCell.cjs +7 -7
  249. package/lib-commonjs/TableResizeHandle.cjs +6 -6
  250. package/lib-commonjs/TableRow.cjs +7 -7
  251. package/lib-commonjs/TableSelectionCell.cjs +7 -7
  252. package/lib-commonjs/components/DataGrid/DataGrid.cjs.map +1 -1
  253. package/lib-commonjs/components/DataGrid/DataGrid.module.css +1 -0
  254. package/lib-commonjs/components/DataGrid/DataGrid.types.cjs.map +1 -1
  255. package/lib-commonjs/components/DataGrid/index.cjs +7 -7
  256. package/lib-commonjs/components/DataGrid/index.cjs.map +1 -1
  257. package/lib-commonjs/components/DataGrid/renderDataGrid.cjs.map +1 -1
  258. package/lib-commonjs/components/DataGrid/useDataGrid.cjs +1 -1
  259. package/lib-commonjs/components/DataGrid/useDataGrid.cjs.map +1 -1
  260. package/lib-commonjs/components/DataGrid/useDataGridContextValues.cjs.map +1 -1
  261. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.cjs +3 -3
  262. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.cjs.map +1 -1
  263. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.css.cjs +31 -0
  264. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.css.cjs.map +1 -0
  265. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.cjs +3 -3
  266. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.cjs.map +1 -1
  267. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.css.cjs +31 -0
  268. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.css.cjs.map +1 -0
  269. package/lib-commonjs/components/DataGridBody/DataGridBody.cjs.map +1 -1
  270. package/lib-commonjs/components/DataGridBody/DataGridBody.module.css +1 -0
  271. package/lib-commonjs/components/DataGridBody/DataGridBody.types.cjs.map +1 -1
  272. package/lib-commonjs/components/DataGridBody/index.cjs +6 -6
  273. package/lib-commonjs/components/DataGridBody/index.cjs.map +1 -1
  274. package/lib-commonjs/components/DataGridBody/renderDataGridBody.cjs.map +1 -1
  275. package/lib-commonjs/components/DataGridBody/useDataGridBody.cjs.map +1 -1
  276. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.cjs +3 -3
  277. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.cjs.map +1 -1
  278. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.css.cjs +31 -0
  279. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.css.cjs.map +1 -0
  280. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.cjs +3 -3
  281. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.cjs.map +1 -1
  282. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.css.cjs +31 -0
  283. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.css.cjs.map +1 -0
  284. package/lib-commonjs/components/DataGridCell/DataGridCell.cjs.map +1 -1
  285. package/lib-commonjs/components/DataGridCell/DataGridCell.module.css +1 -0
  286. package/lib-commonjs/components/DataGridCell/DataGridCell.types.cjs.map +1 -1
  287. package/lib-commonjs/components/DataGridCell/index.cjs +6 -6
  288. package/lib-commonjs/components/DataGridCell/index.cjs.map +1 -1
  289. package/lib-commonjs/components/DataGridCell/renderDataGridCell.cjs.map +1 -1
  290. package/lib-commonjs/components/DataGridCell/useDataGridCell.cjs.map +1 -1
  291. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.cjs +3 -3
  292. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.cjs.map +1 -1
  293. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.css.cjs +31 -0
  294. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.css.cjs.map +1 -0
  295. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.cjs +3 -3
  296. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.cjs.map +1 -1
  297. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.css.cjs +31 -0
  298. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.css.cjs.map +1 -0
  299. package/lib-commonjs/components/DataGridHeader/DataGridHeader.cjs.map +1 -1
  300. package/lib-commonjs/components/DataGridHeader/DataGridHeader.module.css +1 -0
  301. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.cjs.map +1 -1
  302. package/lib-commonjs/components/DataGridHeader/index.cjs +6 -6
  303. package/lib-commonjs/components/DataGridHeader/index.cjs.map +1 -1
  304. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.cjs.map +1 -1
  305. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.cjs.map +1 -1
  306. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.cjs +3 -3
  307. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.cjs.map +1 -1
  308. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.css.cjs +31 -0
  309. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.css.cjs.map +1 -0
  310. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.cjs +3 -3
  311. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.cjs.map +1 -1
  312. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.css.cjs +31 -0
  313. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.css.cjs.map +1 -0
  314. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.cjs.map +1 -1
  315. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.module.css +1 -0
  316. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.cjs.map +1 -1
  317. package/lib-commonjs/components/DataGridHeaderCell/index.cjs +6 -6
  318. package/lib-commonjs/components/DataGridHeaderCell/index.cjs.map +1 -1
  319. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.cjs.map +1 -1
  320. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.cjs.map +1 -1
  321. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.cjs +3 -3
  322. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.cjs.map +1 -1
  323. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.css.cjs +46 -0
  324. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.css.cjs.map +1 -0
  325. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.cjs +3 -3
  326. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.cjs.map +1 -1
  327. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.css.cjs +46 -0
  328. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.css.cjs.map +1 -0
  329. package/lib-commonjs/components/DataGridRow/DataGridRow.cjs.map +1 -1
  330. package/lib-commonjs/components/DataGridRow/DataGridRow.module.css +6 -0
  331. package/lib-commonjs/components/DataGridRow/DataGridRow.types.cjs.map +1 -1
  332. package/lib-commonjs/components/DataGridRow/index.cjs +6 -6
  333. package/lib-commonjs/components/DataGridRow/index.cjs.map +1 -1
  334. package/lib-commonjs/components/DataGridRow/renderDataGridRow.cjs.map +1 -1
  335. package/lib-commonjs/components/DataGridRow/useDataGridRow.cjs.map +1 -1
  336. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.cjs +3 -3
  337. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.cjs.map +1 -1
  338. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.css.cjs +39 -0
  339. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.css.cjs.map +1 -0
  340. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.cjs +3 -3
  341. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.cjs.map +1 -1
  342. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.css.cjs +39 -0
  343. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.css.cjs.map +1 -0
  344. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.cjs.map +1 -1
  345. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.module.css +1 -0
  346. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.cjs.map +1 -1
  347. package/lib-commonjs/components/DataGridSelectionCell/index.cjs +6 -6
  348. package/lib-commonjs/components/DataGridSelectionCell/index.cjs.map +1 -1
  349. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.cjs.map +1 -1
  350. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.cjs.map +1 -1
  351. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.cjs +3 -3
  352. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.cjs.map +1 -1
  353. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.css.cjs +41 -0
  354. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.css.cjs.map +1 -0
  355. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.cjs +3 -3
  356. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.cjs.map +1 -1
  357. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.css.cjs +41 -0
  358. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.css.cjs.map +1 -0
  359. package/lib-commonjs/components/Table/Table.cjs.map +1 -1
  360. package/lib-commonjs/components/Table/Table.module.css +15 -0
  361. package/lib-commonjs/components/Table/Table.types.cjs.map +1 -1
  362. package/lib-commonjs/components/Table/index.cjs +7 -7
  363. package/lib-commonjs/components/Table/index.cjs.map +1 -1
  364. package/lib-commonjs/components/Table/renderTable.cjs.map +1 -1
  365. package/lib-commonjs/components/Table/useTable.cjs +1 -2
  366. package/lib-commonjs/components/Table/useTable.cjs.map +1 -1
  367. package/lib-commonjs/components/Table/useTableContextValues.cjs.map +1 -1
  368. package/lib-commonjs/components/Table/useTableStyles.styles.cjs +4 -4
  369. package/lib-commonjs/components/Table/useTableStyles.styles.cjs.map +1 -1
  370. package/lib-commonjs/components/Table/useTableStyles.styles.css.cjs +32 -0
  371. package/lib-commonjs/components/Table/useTableStyles.styles.css.cjs.map +1 -0
  372. package/lib-commonjs/components/Table/useTableStyles.styles.raw.cjs +4 -4
  373. package/lib-commonjs/components/Table/useTableStyles.styles.raw.cjs.map +1 -1
  374. package/lib-commonjs/components/Table/useTableStyles.styles.raw.css.cjs +32 -0
  375. package/lib-commonjs/components/Table/useTableStyles.styles.raw.css.cjs.map +1 -0
  376. package/lib-commonjs/components/TableBody/TableBody.cjs.map +1 -1
  377. package/lib-commonjs/components/TableBody/TableBody.module.css +8 -0
  378. package/lib-commonjs/components/TableBody/TableBody.types.cjs.map +1 -1
  379. package/lib-commonjs/components/TableBody/index.cjs +7 -7
  380. package/lib-commonjs/components/TableBody/index.cjs.map +1 -1
  381. package/lib-commonjs/components/TableBody/renderTableBody.cjs.map +1 -1
  382. package/lib-commonjs/components/TableBody/useTableBody.cjs +1 -1
  383. package/lib-commonjs/components/TableBody/useTableBody.cjs.map +1 -1
  384. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.cjs +4 -4
  385. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.cjs.map +1 -1
  386. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.css.cjs +32 -0
  387. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.css.cjs.map +1 -0
  388. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.cjs +4 -4
  389. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.cjs.map +1 -1
  390. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.css.cjs +32 -0
  391. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.css.cjs.map +1 -0
  392. package/lib-commonjs/components/TableCell/TableCell.cjs.map +1 -1
  393. package/lib-commonjs/components/TableCell/TableCell.module.css +31 -0
  394. package/lib-commonjs/components/TableCell/TableCell.types.cjs.map +1 -1
  395. package/lib-commonjs/components/TableCell/index.cjs +7 -7
  396. package/lib-commonjs/components/TableCell/index.cjs.map +1 -1
  397. package/lib-commonjs/components/TableCell/renderTableCell.cjs.map +1 -1
  398. package/lib-commonjs/components/TableCell/useTableCell.cjs +1 -1
  399. package/lib-commonjs/components/TableCell/useTableCell.cjs.map +1 -1
  400. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.cjs +4 -4
  401. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.cjs.map +1 -1
  402. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.css.cjs +32 -0
  403. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.css.cjs.map +1 -0
  404. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.cjs +4 -4
  405. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.cjs.map +1 -1
  406. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.css.cjs +32 -0
  407. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.css.cjs.map +1 -0
  408. package/lib-commonjs/components/TableCellActions/TableCellActions.cjs.map +1 -1
  409. package/lib-commonjs/components/TableCellActions/TableCellActions.module.css +14 -0
  410. package/lib-commonjs/components/TableCellActions/TableCellActions.types.cjs.map +1 -1
  411. package/lib-commonjs/components/TableCellActions/index.cjs +6 -6
  412. package/lib-commonjs/components/TableCellActions/index.cjs.map +1 -1
  413. package/lib-commonjs/components/TableCellActions/renderTableCellActions.cjs.map +1 -1
  414. package/lib-commonjs/components/TableCellActions/useTableCellActions.cjs.map +1 -1
  415. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.cjs +3 -3
  416. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.cjs.map +1 -1
  417. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.css.cjs +28 -0
  418. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.css.cjs.map +1 -0
  419. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.cjs +3 -3
  420. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.cjs.map +1 -1
  421. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.css.cjs +28 -0
  422. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.css.cjs.map +1 -0
  423. package/lib-commonjs/components/TableCellLayout/TableCellLayout.cjs.map +1 -1
  424. package/lib-commonjs/components/TableCellLayout/TableCellLayout.module.css +46 -0
  425. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.cjs.map +1 -1
  426. package/lib-commonjs/components/TableCellLayout/index.cjs +6 -6
  427. package/lib-commonjs/components/TableCellLayout/index.cjs.map +1 -1
  428. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.cjs.map +1 -1
  429. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.cjs.map +1 -1
  430. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.cjs.map +1 -1
  431. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.cjs +3 -3
  432. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.cjs.map +1 -1
  433. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.css.cjs +44 -0
  434. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.css.cjs.map +1 -0
  435. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.cjs +3 -3
  436. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.cjs.map +1 -1
  437. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.css.cjs +44 -0
  438. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.css.cjs.map +1 -0
  439. package/lib-commonjs/components/TableHeader/TableHeader.cjs.map +1 -1
  440. package/lib-commonjs/components/TableHeader/TableHeader.module.css +8 -0
  441. package/lib-commonjs/components/TableHeader/TableHeader.types.cjs.map +1 -1
  442. package/lib-commonjs/components/TableHeader/index.cjs +7 -7
  443. package/lib-commonjs/components/TableHeader/index.cjs.map +1 -1
  444. package/lib-commonjs/components/TableHeader/renderTableHeader.cjs.map +1 -1
  445. package/lib-commonjs/components/TableHeader/useTableHeader.cjs +1 -1
  446. package/lib-commonjs/components/TableHeader/useTableHeader.cjs.map +1 -1
  447. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.cjs +4 -4
  448. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.cjs.map +1 -1
  449. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.css.cjs +32 -0
  450. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.css.cjs.map +1 -0
  451. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.cjs +4 -4
  452. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.cjs.map +1 -1
  453. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.css.cjs +32 -0
  454. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.css.cjs.map +1 -0
  455. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.cjs.map +1 -1
  456. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.module.css +59 -0
  457. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.cjs.map +1 -1
  458. package/lib-commonjs/components/TableHeaderCell/index.cjs +7 -7
  459. package/lib-commonjs/components/TableHeaderCell/index.cjs.map +1 -1
  460. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.cjs.map +1 -1
  461. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.cjs +1 -2
  462. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.cjs.map +1 -1
  463. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.cjs +4 -4
  464. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.cjs.map +1 -1
  465. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.css.cjs +42 -0
  466. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.css.cjs.map +1 -0
  467. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.cjs +4 -4
  468. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.cjs.map +1 -1
  469. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.css.cjs +42 -0
  470. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.css.cjs.map +1 -0
  471. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.cjs.map +1 -1
  472. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.module.css +32 -0
  473. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.cjs.map +1 -1
  474. package/lib-commonjs/components/TableResizeHandle/index.cjs +6 -6
  475. package/lib-commonjs/components/TableResizeHandle/index.cjs.map +1 -1
  476. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.cjs.map +1 -1
  477. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.cjs.map +1 -1
  478. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.cjs +3 -3
  479. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.cjs.map +1 -1
  480. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.cjs +28 -0
  481. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.cjs.map +1 -0
  482. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.cjs +3 -3
  483. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.cjs.map +1 -1
  484. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.css.cjs +28 -0
  485. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.css.cjs.map +1 -0
  486. package/lib-commonjs/components/TableRow/TableRow.cjs.map +1 -1
  487. package/lib-commonjs/components/TableRow/TableRow.module.css +76 -0
  488. package/lib-commonjs/components/TableRow/TableRow.types.cjs.map +1 -1
  489. package/lib-commonjs/components/TableRow/index.cjs +7 -7
  490. package/lib-commonjs/components/TableRow/index.cjs.map +1 -1
  491. package/lib-commonjs/components/TableRow/renderTableRow.cjs.map +1 -1
  492. package/lib-commonjs/components/TableRow/useTableRow.cjs +1 -2
  493. package/lib-commonjs/components/TableRow/useTableRow.cjs.map +1 -1
  494. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.cjs +4 -4
  495. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.cjs.map +1 -1
  496. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.css.cjs +32 -0
  497. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.css.cjs.map +1 -0
  498. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.cjs +4 -4
  499. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.cjs.map +1 -1
  500. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.css.cjs +32 -0
  501. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.css.cjs.map +1 -0
  502. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.cjs.map +1 -1
  503. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.module.css +37 -0
  504. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.cjs.map +1 -1
  505. package/lib-commonjs/components/TableSelectionCell/index.cjs +7 -7
  506. package/lib-commonjs/components/TableSelectionCell/index.cjs.map +1 -1
  507. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.cjs.map +1 -1
  508. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.cjs.map +1 -1
  509. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.cjs +4 -4
  510. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.cjs.map +1 -1
  511. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.css.cjs +40 -0
  512. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.css.cjs.map +1 -0
  513. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.cjs +4 -4
  514. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.cjs.map +1 -1
  515. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.css.cjs +40 -0
  516. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.css.cjs.map +1 -0
  517. package/lib-commonjs/contexts/columnIdContext.cjs +4 -4
  518. package/lib-commonjs/contexts/columnIdContext.cjs.map +1 -1
  519. package/lib-commonjs/contexts/dataGridContext.cjs +4 -4
  520. package/lib-commonjs/contexts/dataGridContext.cjs.map +1 -1
  521. package/lib-commonjs/contexts/rowIdContext.cjs +4 -4
  522. package/lib-commonjs/contexts/rowIdContext.cjs.map +1 -1
  523. package/lib-commonjs/contexts/tableContext.cjs +4 -4
  524. package/lib-commonjs/contexts/tableContext.cjs.map +1 -1
  525. package/lib-commonjs/contexts/tableHeaderContext.cjs +3 -3
  526. package/lib-commonjs/contexts/tableHeaderContext.cjs.map +1 -1
  527. package/lib-commonjs/hooks/createColumn.cjs.map +1 -1
  528. package/lib-commonjs/hooks/index.cjs +13 -13
  529. package/lib-commonjs/hooks/index.cjs.map +1 -1
  530. package/lib-commonjs/hooks/types.cjs.map +1 -1
  531. package/lib-commonjs/hooks/useKeyboardResizing.cjs.map +1 -1
  532. package/lib-commonjs/hooks/useMeasureElement.cjs +3 -3
  533. package/lib-commonjs/hooks/useMeasureElement.cjs.map +1 -1
  534. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.cjs.map +1 -1
  535. package/lib-commonjs/hooks/useTableColumnResizeState.cjs.map +1 -1
  536. package/lib-commonjs/hooks/useTableColumnSizing.cjs +3 -3
  537. package/lib-commonjs/hooks/useTableColumnSizing.cjs.map +1 -1
  538. package/lib-commonjs/hooks/useTableCompositeNavigation.cjs.map +1 -1
  539. package/lib-commonjs/hooks/useTableFeatures.cjs +5 -5
  540. package/lib-commonjs/hooks/useTableFeatures.cjs.map +1 -1
  541. package/lib-commonjs/hooks/useTableSelection.cjs +8 -8
  542. package/lib-commonjs/hooks/useTableSelection.cjs.map +1 -1
  543. package/lib-commonjs/hooks/useTableSort.cjs +4 -4
  544. package/lib-commonjs/hooks/useTableSort.cjs.map +1 -1
  545. package/lib-commonjs/index.cjs +110 -110
  546. package/lib-commonjs/index.cjs.map +1 -1
  547. package/lib-commonjs/utils/columnResizeUtils.cjs +15 -15
  548. package/lib-commonjs/utils/columnResizeUtils.cjs.map +1 -1
  549. package/lib-commonjs/utils/isColumnSortable.cjs.map +1 -1
  550. package/package.json +19 -19
  551. package/dist/metadata/api/api-root.json +0 -1
  552. package/dist/metadata/index.json +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableRow/TableRow.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTableRow_unstable } from './useTableRow';\nimport { renderTableRow_unstable } from './renderTableRow';\nimport { useTableRowStyles_unstable } from './useTableRowStyles.styles';\nimport type { TableRowProps } from './TableRow.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableRow component\n */\nexport const TableRow: ForwardRefComponent<TableRowProps> = React.forwardRef((props, ref) => {\n const state = useTableRow_unstable(props, ref);\n\n useTableRowStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTableRowStyles_unstable')(state);\n\n return renderTableRow_unstable(state);\n});\n\nTableRow.displayName = 'TableRow';\n"],"names":["React","useTableRow_unstable","renderTableRow_unstable","useTableRowStyles_unstable","useCustomStyleHook_unstable","TableRow","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;6BACM,mBAAgB;gCACb,sBAAmB;yCAChB,gCAA6B;qCAG5B,kCAAkC;AAKvE,MAAMK,WAAAA,WAAAA,GAA+CL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IACnF,MAAMC,YAAQR,iCAAAA,EAAqBM,OAAOC;QAE1CL,mDAAAA,EAA2BM;QAE3BL,gDAAAA,EAA4B,8BAA8BK;IAE1D,WAAOP,uCAAAA,EAAwBO;AACjC,GAAG;AAEHJ,SAASK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/TableRow/TableRow.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTableRow_unstable } from './useTableRow';\nimport { renderTableRow_unstable } from './renderTableRow';\nimport { useTableRowStyles_unstable } from './useTableRowStyles.styles';\nimport type { TableRowProps } from './TableRow.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableRow component\n */\nexport const TableRow: ForwardRefComponent<TableRowProps> = React.forwardRef((props, ref) => {\n const state = useTableRow_unstable(props, ref);\n\n useTableRowStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTableRowStyles_unstable')(state);\n\n return renderTableRow_unstable(state);\n});\n\nTableRow.displayName = 'TableRow';\n"],"names":["React","useTableRow_unstable","renderTableRow_unstable","useTableRowStyles_unstable","useCustomStyleHook_unstable","TableRow","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;6BACM,mBAAgB;gCACb,sBAAmB;yCAChB,gCAA6B;qCAG5B,kCAAkC;AAKvE,MAAMK,WAAAA,WAAAA,GAA+CL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IACnF,MAAMC,YAAQR,iCAAAA,EAAqBM,OAAOC;QAE1CL,mDAAAA,EAA2BM;QAE3BL,gDAAAA,EAA4B,8BAA8BK;IAE1D,WAAOP,uCAAAA,EAAwBO;AACjC,GAAG;AAEHJ,SAASK,WAAW,GAAG"}
@@ -0,0 +1,76 @@
1
+ @layer fluentui {
2
+ .root {
3
+ color: var(--colorNeutralForeground1);
4
+ box-sizing: border-box;
5
+ }
6
+ .root[data-fui-focus-within]:focus-within :global(.fui-TableSelectionCell),
7
+ .root[data-fui-focus-within]:focus-within :global(.fui-TableCellActions) {
8
+ opacity: 1;
9
+ }
10
+ .root[data-fui-focus-visible] {
11
+ outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
12
+ border-radius: var(--borderRadiusMedium);
13
+ }
14
+ .interactive:hover {
15
+ background-color: var(--colorSubtleBackgroundHover);
16
+ color: var(--colorNeutralForeground1Hover);
17
+ }
18
+ .interactive:hover :global(.fui-TableCellActions),
19
+ .interactive:hover :global(.fui-TableSelectionCell) {
20
+ opacity: 1;
21
+ }
22
+ .interactive:active {
23
+ background-color: var(--colorSubtleBackgroundPressed);
24
+ color: var(--colorNeutralForeground1Pressed);
25
+ }
26
+ .interactive:active :global(.fui-TableCellActions),
27
+ .interactive:active :global(.fui-TableSelectionCell) {
28
+ opacity: 1;
29
+ }
30
+ .medium,
31
+ .small {
32
+ border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
33
+ }
34
+ .extra-small {
35
+ font-size: var(--fontSizeBase200);
36
+ }
37
+ .table {
38
+ display: table-row;
39
+ }
40
+ .flex {
41
+ display: flex;
42
+ align-items: center;
43
+ }
44
+ .brand {
45
+ background-color: var(--colorBrandBackground2);
46
+ border-color: var(--colorTransparentStrokeInteractive);
47
+ }
48
+ .brand:active {
49
+ background-color: var(--colorBrandBackground2);
50
+ color: var(--colorNeutralForeground1);
51
+ }
52
+ .neutral {
53
+ background-color: var(--colorSubtleBackgroundSelected);
54
+ color: var(--colorNeutralForeground1Hover);
55
+ border-color: var(--colorNeutralStrokeOnBrand);
56
+ }
57
+ .neutral:active {
58
+ background-color: var(--colorSubtleBackgroundSelected);
59
+ }
60
+ @media (forced-colors: active) {
61
+ .interactive:hover {
62
+ color: Highlight;
63
+ border-color: Highlight;
64
+ }
65
+ .brand,
66
+ .neutral {
67
+ border: var(--strokeWidthThick) solid transparent;
68
+ border-radius: var(--borderRadiusMedium);
69
+ box-sizing: border-box;
70
+ }
71
+ .brand:focus-visible,
72
+ .neutral:focus-visible {
73
+ outline-offset: calc(-2 * var(--strokeWidthThick));
74
+ }
75
+ }
76
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableRow/TableRow.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { TableContextValue } from '../Table/Table.types';\n\nexport type TableRowSlots = {\n root: Slot<'tr', 'div'>;\n};\n\n/**\n * TableRow Props\n */\nexport type TableRowProps = ComponentProps<TableRowSlots> & {\n /**\n * A table row can have different variants. These appearances are\n * intended to be used with selection.\n * @default none\n */\n appearance?: 'brand' | 'neutral' | 'none';\n};\n\n/**\n * State used in rendering TableRow\n */\nexport type TableRowState = ComponentState<TableRowSlots> &\n Pick<TableContextValue, 'noNativeElements' | 'size'> &\n Pick<Required<TableRowProps>, 'appearance'> & {\n isHeaderRow: boolean;\n };\n"],"names":[],"mappings":"AAmBA;;CAEC,GACD,WAII"}
1
+ {"version":3,"sources":["../../../src/components/TableRow/TableRow.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { TableContextValue } from '../Table/Table.types';\n\nexport type TableRowSlots = {\n root: Slot<'tr', 'div'>;\n};\n\n/**\n * TableRow Props\n */\nexport type TableRowProps = ComponentProps<TableRowSlots> & {\n /**\n * A table row can have different variants. These appearances are\n * intended to be used with selection.\n * @default none\n */\n appearance?: 'brand' | 'neutral' | 'none';\n};\n\n/**\n * State used in rendering TableRow\n */\nexport type TableRowState = ComponentState<TableRowSlots> &\n Pick<TableContextValue, 'noNativeElements' | 'size'> &\n Pick<Required<TableRowProps>, 'appearance'> & {\n isHeaderRow: boolean;\n };\n"],"names":[],"mappings":"AAmBA;;CAEC,GACD,WAII"}
@@ -5,26 +5,26 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- TableRow: function() {
12
+ get TableRow () {
13
13
  return _TableRow.TableRow;
14
14
  },
15
- renderTableRow_unstable: function() {
15
+ get renderTableRow_unstable () {
16
16
  return _renderTableRow.renderTableRow_unstable;
17
17
  },
18
- tableRowClassName: function() {
18
+ get tableRowClassName () {
19
19
  return _useTableRowStylesstyles.tableRowClassName;
20
20
  },
21
- tableRowClassNames: function() {
21
+ get tableRowClassNames () {
22
22
  return _useTableRowStylesstyles.tableRowClassNames;
23
23
  },
24
- useTableRowStyles_unstable: function() {
24
+ get useTableRowStyles_unstable () {
25
25
  return _useTableRowStylesstyles.useTableRowStyles_unstable;
26
26
  },
27
- useTableRow_unstable: function() {
27
+ get useTableRow_unstable () {
28
28
  return _useTableRow.useTableRow_unstable;
29
29
  }
30
30
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableRow/index.ts"],"sourcesContent":["export { TableRow } from './TableRow';\nexport type { TableRowProps, TableRowSlots, TableRowState } from './TableRow.types';\nexport { renderTableRow_unstable } from './renderTableRow';\nexport { useTableRow_unstable } from './useTableRow';\nexport { tableRowClassName, tableRowClassNames, useTableRowStyles_unstable } from './useTableRowStyles.styles';\n"],"names":["TableRow","renderTableRow_unstable","useTableRow_unstable","tableRowClassName","tableRowClassNames","useTableRowStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,kBAAQ;;;eAERC,uCAAuB;;;eAEvBE,0CAAiB;;;eAAEC,2CAAkB;;;eAAEC,mDAA0B;;;eADjEH,iCAAoB;;;0BAHJ,gBAAa;gCAEE,sBAAmB;6BACtB,mBAAgB;yCAC6B,gCAA6B"}
1
+ {"version":3,"sources":["../../../src/components/TableRow/index.ts"],"sourcesContent":["export { TableRow } from './TableRow';\nexport type { TableRowProps, TableRowSlots, TableRowState } from './TableRow.types';\nexport { renderTableRow_unstable } from './renderTableRow';\nexport { useTableRow_unstable } from './useTableRow';\nexport { tableRowClassName, tableRowClassNames, useTableRowStyles_unstable } from './useTableRowStyles.styles';\n"],"names":["TableRow","renderTableRow_unstable","useTableRow_unstable","tableRowClassName","tableRowClassNames","useTableRowStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,kBAAQ;;;eAERC,uCAAuB;;;eAEvBE,0CAAiB;;;eAAEC,2CAAkB;;;eAAEC,mDAA0B;;;eADjEH,iCAAoB;;;0BAHJ,gBAAa;gCAEE,sBAAmB;6BACtB,mBAAgB;yCAC6B,gCAA6B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableRow/renderTableRow.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { TableRowState, TableRowSlots } from './TableRow.types';\n\n/**\n * Render the final JSX of TableRow\n */\nexport const renderTableRow_unstable = (state: TableRowState): JSXElement => {\n assertSlots<TableRowSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderTableRow_unstable","state","root"],"mappings":";;;;;;;;;;4BACA,gDAAiD;gCACrB,4BAA4B;AAOjD,MAAMC,0BAA0B,CAACC;QACtCF,2BAAAA,EAA2BE;IAE3B,OAAA,WAAA,OAAO,eAAA,EAACA,MAAMC,IAAI,EAAA,CAAA;AACpB,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/TableRow/renderTableRow.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { TableRowState, TableRowSlots } from './TableRow.types';\n\n/**\n * Render the final JSX of TableRow\n */\nexport const renderTableRow_unstable = (state: TableRowState): JSXElement => {\n assertSlots<TableRowSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderTableRow_unstable","state","root"],"mappings":";;;;;;;;;;;gCACA,gDAAiD,GACjD,SAASA,WAAW,QAAQ,4BAA4B;AAOjD,MAAMC,0BAA0B,CAACC;QACtCF,2BAAAA,EAA2BE;IAE3B,OAAA,WAAA,OAAO,eAAA,EAACA,MAAMC,IAAI,EAAA,CAAA;AACpB,EAAE"}
@@ -14,13 +14,12 @@ const _reacttabster = require("@fluentui/react-tabster");
14
14
  const _tableContext = require("../../contexts/tableContext.cjs");
15
15
  const _tableHeaderContext = require("../../contexts/tableHeaderContext.cjs");
16
16
  const useTableRow_unstable = (props, ref)=>{
17
+ var _props_as, _props_appearance;
17
18
  const { noNativeElements, size } = (0, _tableContext.useTableContext)();
18
- var _props_as;
19
19
  const rootComponent = ((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : noNativeElements) ? 'div' : 'tr';
20
20
  const focusVisibleRef = (0, _reacttabster.useFocusVisible)();
21
21
  const focusWithinRef = (0, _reacttabster.useFocusWithin)();
22
22
  const isHeaderRow = (0, _tableHeaderContext.useIsInTableHeader)();
23
- var _props_appearance;
24
23
  return {
25
24
  components: {
26
25
  root: rootComponent
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableRow/useTableRow.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, useMergedRefs, slot } from '@fluentui/react-utilities';\nimport { useFocusVisible, useFocusWithin } from '@fluentui/react-tabster';\nimport type { TableRowProps, TableRowState } from './TableRow.types';\nimport { useTableContext } from '../../contexts/tableContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\n\n/**\n * Create the state required to render TableRow.\n *\n * The returned state can be modified with hooks such as useTableRowStyles_unstable,\n * before being passed to renderTableRow_unstable.\n *\n * @param props - props from this instance of TableRow\n * @param ref - reference to root HTMLElement of TableRow\n */\nexport const useTableRow_unstable = (props: TableRowProps, ref: React.Ref<HTMLElement>): TableRowState => {\n const { noNativeElements, size } = useTableContext();\n const rootComponent = props.as ?? noNativeElements ? 'div' : 'tr';\n const focusVisibleRef = useFocusVisible();\n const focusWithinRef = useFocusWithin();\n const isHeaderRow = useIsInTableHeader();\n\n return {\n components: {\n root: rootComponent,\n },\n root: slot.always(\n getIntrinsicElementProps(rootComponent, {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: useMergedRefs(ref, focusVisibleRef, focusWithinRef) as React.Ref<HTMLDivElement>,\n role: rootComponent === 'div' ? 'row' : undefined,\n ...props,\n }),\n { elementType: rootComponent },\n ),\n size,\n noNativeElements,\n appearance: props.appearance ?? 'none',\n isHeaderRow,\n };\n};\n"],"names":["getIntrinsicElementProps","useMergedRefs","slot","useFocusVisible","useFocusWithin","useTableContext","useIsInTableHeader","useTableRow_unstable","props","ref","noNativeElements","size","rootComponent","as","focusVisibleRef","focusWithinRef","isHeaderRow","components","root","always","role","undefined","elementType","appearance"],"mappings":"AAAA;;;;;+BAkBaO;;;;;;gCAfiD,4BAA4B;8BAC1C,0BAA0B;8BAE1C,iCAA8B;oCAC3B,uCAAoC;AAWhE,6BAA6B,CAACC,OAAsBC;IACzD,MAAM,EAAEC,gBAAgB,EAAEC,IAAI,EAAE,OAAGN,6BAAAA;QACbG;IAAtB,MAAMI,gBAAgBJ,CAAAA,CAAAA,YAAAA,MAAMK,EAAAA,AAAE,MAAA,QAARL,cAAAA,KAAAA,IAAAA,YAAYE,gBAAAA,CAAe,GAAI,QAAQ;IAC7D,MAAMI,sBAAkBX,6BAAAA;IACxB,MAAMY,qBAAiBX,4BAAAA;IACvB,MAAMY,kBAAcV,sCAAAA;QAmBNE;IAjBd,OAAO;QACLS,YAAY;YACVC,MAAMN;QACR;QACAM,MAAMhB,oBAAAA,CAAKiB,MAAM,KACfnB,wCAAAA,EAAyBY,eAAe;YACtC,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FH,SAAKR,6BAAAA,EAAcQ,KAAKK,iBAAiBC;YACzCK,MAAMR,kBAAkB,QAAQ,QAAQS;YACxC,GAAGb,KAAK;QACV,IACA;YAAEc,aAAaV;QAAc;QAE/BD;QACAD;QACAa,YAAYf,CAAAA,oBAAAA,MAAMe,UAAAA,AAAU,MAAA,QAAhBf,sBAAAA,KAAAA,IAAAA,oBAAoB;QAChCQ;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/TableRow/useTableRow.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, useMergedRefs, slot } from '@fluentui/react-utilities';\nimport { useFocusVisible, useFocusWithin } from '@fluentui/react-tabster';\nimport type { TableRowProps, TableRowState } from './TableRow.types';\nimport { useTableContext } from '../../contexts/tableContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\n\n/**\n * Create the state required to render TableRow.\n *\n * The returned state can be modified with hooks such as useTableRowStyles_unstable,\n * before being passed to renderTableRow_unstable.\n *\n * @param props - props from this instance of TableRow\n * @param ref - reference to root HTMLElement of TableRow\n */\nexport const useTableRow_unstable = (props: TableRowProps, ref: React.Ref<HTMLElement>): TableRowState => {\n const { noNativeElements, size } = useTableContext();\n const rootComponent = props.as ?? noNativeElements ? 'div' : 'tr';\n const focusVisibleRef = useFocusVisible();\n const focusWithinRef = useFocusWithin();\n const isHeaderRow = useIsInTableHeader();\n\n return {\n components: {\n root: rootComponent,\n },\n root: slot.always(\n getIntrinsicElementProps(rootComponent, {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: useMergedRefs(ref, focusVisibleRef, focusWithinRef) as React.Ref<HTMLDivElement>,\n role: rootComponent === 'div' ? 'row' : undefined,\n ...props,\n }),\n { elementType: rootComponent },\n ),\n size,\n noNativeElements,\n appearance: props.appearance ?? 'none',\n isHeaderRow,\n };\n};\n"],"names":["getIntrinsicElementProps","useMergedRefs","slot","useFocusVisible","useFocusWithin","useTableContext","useIsInTableHeader","useTableRow_unstable","props","ref","noNativeElements","size","rootComponent","as","focusVisibleRef","focusWithinRef","isHeaderRow","components","root","always","role","undefined","elementType","appearance"],"mappings":"AAAA;;;;;+BAkBaO;;;;;;gCAfiD,4BAA4B;8BAC1C,0BAA0B;8BAE1C,iCAA8B;oCAC3B,uCAAoC;AAWhE,6BAA6B,CAACC,OAAsBC;QAEnCD,WAsBRA;IAvBd,MAAM,EAAEE,gBAAgB,EAAEC,IAAI,EAAE,OAAGN,6BAAAA;IACnC,MAAMO,gBAAgBJ,CAAAA,CAAAA,YAAAA,MAAMK,EAAAA,AAAE,MAAA,QAARL,cAAAA,KAAAA,IAAAA,YAAYE,gBAAAA,IAAmB,QAAQ;IAC7D,MAAMI,sBAAkBX,6BAAAA;IACxB,MAAMY,qBAAiBX,4BAAAA;IACvB,MAAMY,kBAAcV,sCAAAA;IAEpB,OAAO;QACLW,YAAY;YACVC,MAAMN;QACR;QACAM,MAAMhB,oBAAAA,CAAKiB,MAAM,KACfnB,wCAAAA,EAAyBY,eAAe;YACtC,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FH,SAAKR,6BAAAA,EAAcQ,KAAKK,iBAAiBC;YACzCK,MAAMR,kBAAkB,QAAQ,QAAQS;YACxC,GAAGb,KAAK;QACV,IACA;YAAEc,aAAaV;QAAc;QAE/BD;QACAD;QACAa,UAAU,EAAA,CAAEf,oBAAAA,MAAMe,UAAAA,AAAU,MAAA,QAAhBf,sBAAAA,KAAAA,IAAAA,oBAAoB;QAChCQ;IACF;AACF,EAAE"}
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- tableRowClassName: function() {
13
+ get tableRowClassName () {
14
14
  return tableRowClassName;
15
15
  },
16
- tableRowClassNames: function() {
16
+ get tableRowClassNames () {
17
17
  return tableRowClassNames;
18
18
  },
19
- useTableRowStyles_unstable: function() {
19
+ get useTableRowStyles_unstable () {
20
20
  return useTableRowStyles_unstable;
21
21
  }
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useTableRowStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses, shorthands } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nimport { tableCellActionsClassNames } from \"../TableCellActions/useTableCellActionsStyles.styles.js\";\nimport { tableSelectionCellClassNames } from \"../TableSelectionCell/useTableSelectionCellStyles.styles.js\";\nimport { createCustomFocusIndicatorStyle } from \"@fluentui/react-tabster\";\nexport const tableRowClassName = 'fui-TableRow';\nexport const tableRowClassNames = {\n root: tableRowClassName\n};\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-row'\n }\n});\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center'\n }\n});\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n color: tokens.colorNeutralForeground1,\n boxSizing: 'border-box',\n ...createCustomFocusIndicatorStyle({\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n },\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1\n }\n }, {\n selector: 'focus-within'\n }),\n ...createCustomFocusIndicatorStyle({\n outline: `2px solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium\n }, {\n selector: 'focus'\n })\n },\n rootInteractive: {\n ...createCustomFocusIndicatorStyle({\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1\n }\n }, {\n selector: 'focus-within'\n }),\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground1Pressed,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n }\n },\n ':hover': {\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground1Hover,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n }\n },\n // High contrast styles\n '@media (forced-colors: active)': {\n ':hover': {\n color: 'Highlight',\n ...shorthands.borderColor('Highlight')\n }\n }\n },\n medium: {\n borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`\n },\n small: {\n borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`\n },\n 'extra-small': {\n fontSize: tokens.fontSizeBase200\n },\n brand: {\n backgroundColor: tokens.colorBrandBackground2,\n ...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),\n ':active': {\n backgroundColor: tokens.colorBrandBackground2,\n color: tokens.colorNeutralForeground1\n },\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px'\n }\n }\n },\n neutral: {\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px'\n }\n },\n backgroundColor: tokens.colorSubtleBackgroundSelected,\n color: tokens.colorNeutralForeground1Hover,\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundSelected\n },\n ...shorthands.borderColor(tokens.colorNeutralStrokeOnBrand)\n },\n none: {}\n});\n/**\n * Apply styling to the TableRow slots based on the state\n */ export const useTableRowStyles_unstable = (state)=>{\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles()\n };\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tableRowClassNames.root, styles.root, !state.isHeaderRow && styles.rootInteractive, styles[state.size], state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root, styles[state.appearance], state.root.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","shorthands","tokens","tableCellActionsClassNames","tableSelectionCellClassNames","createCustomFocusIndicatorStyle","tableRowClassName","tableRowClassNames","root","useTableLayoutStyles","mc9l5x","d","useFlexLayoutStyles","Bt984gj","useStyles","sj55zd","B7ck84d","Bconypa","B6guboy","Bfpq7zp","g9k6zt","Bn4voq9","giviqs","Bw81rd7","kdpuga","dm238s","B6xbmo0","B3whbx2","rootInteractive","ecr2s2","lj723h","B43xm9u","i921ia","Jwef8y","Bi91k9c","Bpt6rm4","ff6mpl","Bahaeuw","F230oe","Bdw8ktp","Bj1xduy","Bhh2cfd","medium","B9xav0g","oivjwe","Bn0qgzm","Bgfg5da","small","Be2twd7","brand","De3pzq","g2u3we","h3c5rm","zhjwy3","wmvzou","sc4o1m","wymq9i","u9orzk","puiv5t","Bosien3","b2z72d","Beulxaw","B57pkaw","Jcjdmf","B8qgbzl","Bbmb0sr","B14q8qp","Bcq6wej","Byz1pjr","kr9cjb","Ff9ifp","Bmclvqj","psczho","B0tx59b","sk7i8k","zlwzm7","Bkp2nk","gy0h4g","neutral","none","p","a","h","m","useTableRowStyles_unstable","state","styles","layoutStyles","table","flex","className","isHeaderRow","size","noNativeElements","appearance"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAMCO,iBAAiB;;;IACjBC,kBAAkB;;;8BAsHY;eAA1B6E;;;uBA5HoC,gBAAgB;AAK9D,0BAA0B,cAAc;AACxC,2BAA2B;IAC9B5E,IAAI,EAAEF;AACV,CAAC;AACD,MAAMG,oBAAoB,GAAA,WAAA,OAAGV,eAAA,EAAA;IAAAS,IAAA,EAAA;QAAAE,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;KAAA;AAAA,CAI5B,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EAACO,kBAAkB,CAACC,IAAI,EAAE8E,MAAM,CAAC9E,IAAI,EAAE,CAAC6E,KAAK,CAACM,WAAW,IAAIL,MAAM,CAAC1D,eAAe,EAAE0D,MAAM,CAACD,KAAK,CAACO,IAAI,CAAC,EAAEP,KAAK,CAACQ,gBAAgB,GAAGN,YAAY,CAACE,IAAI,CAACjF,IAAI,GAAG+E,YAAY,CAACC,KAAK,CAAChF,IAAI,EAAE8E,MAAM,CAACD,KAAK,CAACS,UAAU,CAAC,EAAET,KAAK,CAAC7E,IAAI,CAACkF,SAAS,CAAC;IACtQ,OAAOL,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useTableRowStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses, shorthands } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nimport { tableCellActionsClassNames } from \"../TableCellActions/useTableCellActionsStyles.styles.js\";\nimport { tableSelectionCellClassNames } from \"../TableSelectionCell/useTableSelectionCellStyles.styles.js\";\nimport { createCustomFocusIndicatorStyle } from \"@fluentui/react-tabster\";\nexport const tableRowClassName = 'fui-TableRow';\nexport const tableRowClassNames = {\n root: tableRowClassName\n};\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-row'\n }\n});\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center'\n }\n});\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n color: tokens.colorNeutralForeground1,\n boxSizing: 'border-box',\n ...createCustomFocusIndicatorStyle({\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n },\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1\n }\n }, {\n selector: 'focus-within'\n }),\n ...createCustomFocusIndicatorStyle({\n outline: `2px solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium\n }, {\n selector: 'focus'\n })\n },\n rootInteractive: {\n ...createCustomFocusIndicatorStyle({\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1\n }\n }, {\n selector: 'focus-within'\n }),\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground1Pressed,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n }\n },\n ':hover': {\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground1Hover,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n }\n },\n // High contrast styles\n '@media (forced-colors: active)': {\n ':hover': {\n color: 'Highlight',\n ...shorthands.borderColor('Highlight')\n }\n }\n },\n medium: {\n borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`\n },\n small: {\n borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`\n },\n 'extra-small': {\n fontSize: tokens.fontSizeBase200\n },\n brand: {\n backgroundColor: tokens.colorBrandBackground2,\n ...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),\n ':active': {\n backgroundColor: tokens.colorBrandBackground2,\n color: tokens.colorNeutralForeground1\n },\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px'\n }\n }\n },\n neutral: {\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px'\n }\n },\n backgroundColor: tokens.colorSubtleBackgroundSelected,\n color: tokens.colorNeutralForeground1Hover,\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundSelected\n },\n ...shorthands.borderColor(tokens.colorNeutralStrokeOnBrand)\n },\n none: {}\n});\n/**\n * Apply styling to the TableRow slots based on the state\n */ export const useTableRowStyles_unstable = (state)=>{\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles()\n };\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tableRowClassNames.root, styles.root, !state.isHeaderRow && styles.rootInteractive, styles[state.size], state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root, styles[state.appearance], state.root.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","shorthands","tokens","tableCellActionsClassNames","tableSelectionCellClassNames","createCustomFocusIndicatorStyle","tableRowClassName","tableRowClassNames","root","useTableLayoutStyles","mc9l5x","d","useFlexLayoutStyles","Bt984gj","useStyles","sj55zd","B7ck84d","Bconypa","B6guboy","Bfpq7zp","g9k6zt","Bn4voq9","giviqs","Bw81rd7","kdpuga","dm238s","B6xbmo0","B3whbx2","rootInteractive","ecr2s2","lj723h","B43xm9u","i921ia","Jwef8y","Bi91k9c","Bpt6rm4","ff6mpl","Bahaeuw","F230oe","Bdw8ktp","Bj1xduy","Bhh2cfd","medium","B9xav0g","oivjwe","Bn0qgzm","Bgfg5da","small","Be2twd7","brand","De3pzq","g2u3we","h3c5rm","zhjwy3","wmvzou","sc4o1m","wymq9i","u9orzk","puiv5t","Bosien3","b2z72d","Beulxaw","B57pkaw","Jcjdmf","B8qgbzl","Bbmb0sr","B14q8qp","Bcq6wej","Byz1pjr","kr9cjb","Ff9ifp","Bmclvqj","psczho","B0tx59b","sk7i8k","zlwzm7","Bkp2nk","gy0h4g","neutral","none","p","a","h","m","useTableRowStyles_unstable","state","styles","layoutStyles","table","flex","className","isHeaderRow","size","noNativeElements","appearance"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAMCO,iBAAiB;;;QACjBC,kBAAkB;;;;eAsHd6E,0BAA0B;;;uBA5HU,gBAAgB;AAK9D,0BAA0B,cAAc;AACxC,2BAA2B;IAC9B5E,IAAI,EAAEF;AACV,CAAC;AACD,MAAMG,oBAAoB,GAAA,WAAA,OAAGV,eAAA,EAAA;IAAAS,IAAA,EAAA;QAAA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B,CAAC;IACD,oDAAA;IACAyE,KAAK,CAAC7E,IAAI,CAACkF,SAAS,OAAG1F,mBAAY,EAACO,kBAAkB,CAACC,IAAI,EAAE8E,MAAM,CAAC9E,IAAI,EAAE,CAAC6E,KAAK,CAACM,WAAW,IAAIL,MAAM,CAAC1D,eAAe,EAAE0D,MAAM,CAACD,KAAK,CAACO,IAAI,CAAC,EAAEP,KAAK,CAACQ,gBAAgB,GAAGN,YAAY,CAACE,IAAI,CAACjF,IAAI,GAAG+E,YAAY,CAACC,KAAK,CAAChF,IAAI,EAAE8E,MAAM,CAACD,KAAK,CAACS,UAAU,CAAC,EAAET,KAAK,CAAC7E,IAAI,CAACkF,SAAS,CAAC;IACtQ,OAAOL,KAAK;AAChB,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get tableRowClassName () {
13
+ return tableRowClassName;
14
+ },
15
+ get tableRowClassNames () {
16
+ return tableRowClassNames;
17
+ },
18
+ get useTableRowStyles_unstable () {
19
+ return useTableRowStyles_unstable;
20
+ }
21
+ });
22
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
23
+ const _clsx = require("clsx");
24
+ const _TableRowmodulecss = /*#__PURE__*/ _interop_require_default._(require("./TableRow.module.css"));
25
+ const tableRowClassName = 'fui-TableRow';
26
+ const tableRowClassNames = {
27
+ root: tableRowClassName
28
+ };
29
+ const useTableRowStyles_unstable = (state)=>{
30
+ state.root.className = (0, _clsx.clsx)(tableRowClassNames.root, _TableRowmodulecss.default.root, !state.isHeaderRow && _TableRowmodulecss.default.interactive, _TableRowmodulecss.default[state.size], _TableRowmodulecss.default[state.noNativeElements ? 'flex' : 'table'], _TableRowmodulecss.default[state.appearance], state.root.className);
31
+ return state;
32
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/TableRow/useTableRowStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TableRowSlots, TableRowState } from './TableRow.types';\nimport styles from './TableRow.module.css';\n\nexport const tableRowClassName = 'fui-TableRow';\n\nexport const tableRowClassNames: SlotClassNames<TableRowSlots> = {\n root: tableRowClassName,\n};\n\nexport const useTableRowStyles_unstable = (state: TableRowState): TableRowState => {\n state.root.className = clsx(\n tableRowClassNames.root,\n styles.root,\n !state.isHeaderRow && styles.interactive,\n styles[state.size],\n styles[state.noNativeElements ? 'flex' : 'table'],\n styles[state.appearance],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","tableRowClassName","tableRowClassNames","root","useTableRowStyles_unstable","state","className","isHeaderRow","interactive","size","noNativeElements","appearance"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;;;;sBALQ,OAAO;4EAGT,wBAAwB;AAEpC,0BAA0B,eAAe;AAEzC,MAAMC,qBAAoD;IAC/DC,MAAMF;AACR,EAAE;AAEK,MAAMG,6BAA6B,CAACC;IACzCA,MAAMF,IAAI,CAACG,SAAS,OAAGP,UAAAA,EACrBG,mBAAmBC,IAAI,EACvBH,0BAAAA,CAAOG,IAAI,EACX,CAACE,MAAME,WAAW,IAAIP,0BAAAA,CAAOQ,WAAW,EACxCR,0BAAM,CAACK,MAAMI,IAAI,CAAC,EAClBT,0BAAM,CAACK,MAAMK,gBAAgB,GAAG,SAAS,QAAQ,EACjDV,0BAAM,CAACK,MAAMM,UAAU,CAAC,EACxBN,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- tableRowClassName: function() {
13
+ get tableRowClassName () {
14
14
  return tableRowClassName;
15
15
  },
16
- tableRowClassNames: function() {
16
+ get tableRowClassNames () {
17
17
  return tableRowClassNames;
18
18
  },
19
- useTableRowStyles_unstable: function() {
19
+ get useTableRowStyles_unstable () {
20
20
  return useTableRowStyles_unstable;
21
21
  }
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableRow/useTableRowStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TableRowSlots, TableRowState } from './TableRow.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tableCellActionsClassNames } from '../TableCellActions/useTableCellActionsStyles.styles';\nimport { tableSelectionCellClassNames } from '../TableSelectionCell/useTableSelectionCellStyles.styles';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\n\nexport const tableRowClassName = 'fui-TableRow';\nexport const tableRowClassNames: SlotClassNames<TableRowSlots> = {\n root: tableRowClassName,\n};\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-row',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n color: tokens.colorNeutralForeground1,\n boxSizing: 'border-box',\n ...createCustomFocusIndicatorStyle(\n {\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n },\n { selector: 'focus-within' },\n ),\n ...createCustomFocusIndicatorStyle(\n { outline: `2px solid ${tokens.colorStrokeFocus2}`, borderRadius: tokens.borderRadiusMedium },\n { selector: 'focus' },\n ),\n },\n\n rootInteractive: {\n ...createCustomFocusIndicatorStyle(\n {\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n },\n { selector: 'focus-within' },\n ),\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground1Pressed,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n ':hover': {\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground1Hover,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n // High contrast styles\n '@media (forced-colors: active)': {\n ':hover': {\n color: 'Highlight',\n ...shorthands.borderColor('Highlight'),\n },\n },\n },\n\n medium: { borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}` },\n\n small: { borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}` },\n\n 'extra-small': {\n fontSize: tokens.fontSizeBase200,\n },\n\n brand: {\n backgroundColor: tokens.colorBrandBackground2,\n ...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),\n ':active': {\n backgroundColor: tokens.colorBrandBackground2,\n color: tokens.colorNeutralForeground1,\n },\n\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px',\n },\n },\n },\n\n neutral: {\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px',\n },\n },\n backgroundColor: tokens.colorSubtleBackgroundSelected,\n color: tokens.colorNeutralForeground1Hover,\n\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundSelected,\n },\n\n ...shorthands.borderColor(tokens.colorNeutralStrokeOnBrand),\n },\n\n none: {},\n});\n\n/**\n * Apply styling to the TableRow slots based on the state\n */\nexport const useTableRowStyles_unstable = (state: TableRowState): TableRowState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n tableRowClassNames.root,\n styles.root,\n !state.isHeaderRow && styles.rootInteractive,\n styles[state.size],\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n styles[state.appearance],\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","shorthands","tokens","tableCellActionsClassNames","tableSelectionCellClassNames","createCustomFocusIndicatorStyle","tableRowClassName","tableRowClassNames","root","useTableLayoutStyles","display","useFlexLayoutStyles","alignItems","useStyles","color","colorNeutralForeground1","boxSizing","opacity","selector","outline","colorStrokeFocus2","borderRadius","borderRadiusMedium","rootInteractive","backgroundColor","colorSubtleBackgroundPressed","colorNeutralForeground1Pressed","colorSubtleBackgroundHover","colorNeutralForeground1Hover","borderColor","medium","borderBottom","strokeWidthThin","colorNeutralStroke2","small","fontSize","fontSizeBase200","brand","colorBrandBackground2","colorTransparentStrokeInteractive","border","outlineOffset","neutral","colorSubtleBackgroundSelected","colorNeutralStrokeOnBrand","none","useTableRowStyles_unstable","state","styles","layoutStyles","table","flex","className","isHeaderRow","size","noNativeElements","appearance"],"mappings":"AAAA;;;;;;;;;;;;IAUaO,iBAAAA;;;IACAC,kBAAAA;;;IAkIAuC,0BAAAA;;;;uBA3IwC,iBAAiB;4BAC/C,wBAAwB;iDAGJ,0DAAuD;mDACrD,8DAA2D;8BACxD,0BAA0B;AAEnE,0BAA0B,eAAe;AACzC,2BAA0D;IAC/DtC,MAAMF;AACR,EAAE;AAEF,MAAMG,uBAAuBV,qBAAAA,EAAW;IACtCS,MAAM;QACJE,SAAS;IACX;AACF;AAEA,MAAMC,0BAAsBZ,iBAAAA,EAAW;IACrCS,MAAM;QACJE,SAAS;QACTE,YAAY;IACd;AACF;AAEA;;CAEC,GACD,MAAMC,YAAYd,qBAAAA,EAAW;IAC3B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xC;IACR;IACA,oDAAoD;IACpDoC,MAAMvC,IAAI,CAAC4C,SAAS,OAAGpD,mBAAAA,EACrBO,mBAAmBC,IAAI,EACvBwC,OAAOxC,IAAI,EACX,CAACuC,MAAMM,WAAW,IAAIL,OAAOzB,eAAe,EAC5CyB,MAAM,CAACD,MAAMO,IAAI,CAAC,EAClBP,MAAMQ,gBAAgB,GAAGN,aAAaE,IAAI,CAAC3C,IAAI,GAAGyC,aAAaC,KAAK,CAAC1C,IAAI,EACzEwC,MAAM,CAACD,MAAMS,UAAU,CAAC,EACxBT,MAAMvC,IAAI,CAAC4C,SAAS;IAGtB,OAAOL;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/TableRow/useTableRowStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TableRowSlots, TableRowState } from './TableRow.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tableCellActionsClassNames } from '../TableCellActions/useTableCellActionsStyles.styles';\nimport { tableSelectionCellClassNames } from '../TableSelectionCell/useTableSelectionCellStyles.styles';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\n\nexport const tableRowClassName = 'fui-TableRow';\nexport const tableRowClassNames: SlotClassNames<TableRowSlots> = {\n root: tableRowClassName,\n};\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-row',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n color: tokens.colorNeutralForeground1,\n boxSizing: 'border-box',\n ...createCustomFocusIndicatorStyle(\n {\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n },\n { selector: 'focus-within' },\n ),\n ...createCustomFocusIndicatorStyle(\n { outline: `2px solid ${tokens.colorStrokeFocus2}`, borderRadius: tokens.borderRadiusMedium },\n { selector: 'focus' },\n ),\n },\n\n rootInteractive: {\n ...createCustomFocusIndicatorStyle(\n {\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n },\n { selector: 'focus-within' },\n ),\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground1Pressed,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n ':hover': {\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground1Hover,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n // High contrast styles\n '@media (forced-colors: active)': {\n ':hover': {\n color: 'Highlight',\n ...shorthands.borderColor('Highlight'),\n },\n },\n },\n\n medium: { borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}` },\n\n small: { borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}` },\n\n 'extra-small': {\n fontSize: tokens.fontSizeBase200,\n },\n\n brand: {\n backgroundColor: tokens.colorBrandBackground2,\n ...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),\n ':active': {\n backgroundColor: tokens.colorBrandBackground2,\n color: tokens.colorNeutralForeground1,\n },\n\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px',\n },\n },\n },\n\n neutral: {\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px',\n },\n },\n backgroundColor: tokens.colorSubtleBackgroundSelected,\n color: tokens.colorNeutralForeground1Hover,\n\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundSelected,\n },\n\n ...shorthands.borderColor(tokens.colorNeutralStrokeOnBrand),\n },\n\n none: {},\n});\n\n/**\n * Apply styling to the TableRow slots based on the state\n */\nexport const useTableRowStyles_unstable = (state: TableRowState): TableRowState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n tableRowClassNames.root,\n styles.root,\n !state.isHeaderRow && styles.rootInteractive,\n styles[state.size],\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n styles[state.appearance],\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","shorthands","tokens","tableCellActionsClassNames","tableSelectionCellClassNames","createCustomFocusIndicatorStyle","tableRowClassName","tableRowClassNames","root","useTableLayoutStyles","display","useFlexLayoutStyles","alignItems","useStyles","color","colorNeutralForeground1","boxSizing","opacity","selector","outline","colorStrokeFocus2","borderRadius","borderRadiusMedium","rootInteractive","backgroundColor","colorSubtleBackgroundPressed","colorNeutralForeground1Pressed","colorSubtleBackgroundHover","colorNeutralForeground1Hover","borderColor","medium","borderBottom","strokeWidthThin","colorNeutralStroke2","small","fontSize","fontSizeBase200","brand","colorBrandBackground2","colorTransparentStrokeInteractive","border","outlineOffset","neutral","colorSubtleBackgroundSelected","colorNeutralStrokeOnBrand","none","useTableRowStyles_unstable","state","styles","layoutStyles","table","flex","className","isHeaderRow","size","noNativeElements","appearance"],"mappings":"AAAA;;;;;;;;;;;;QAUaO;;;QACAC;;;;eAkIAuC;;;uBA3IwC,iBAAiB;4BAC/C,wBAAwB;iDAGJ,0DAAuD;mDACrD,8DAA2D;8BACxD,0BAA0B;AAEnE,0BAA0B,eAAe;AACzC,2BAA0D;IAC/DtC,MAAMF;AACR,EAAE;AAEF,MAAMG,2BAAuBV,iBAAAA,EAAW;IACtCS,MAAM;QACJE,SAAS;IACX;AACF;AAEA,MAAMC,0BAAsB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IAC7D;IAEAC,MAAM,CAAC;AACT;AAKO,mCAAmC,CAACE;IACzC,MAAMC,SAASnC;IACf,MAAMoC,eAAe;QACnBC,OAAOzC;QACP0C,MAAMxC;IACR;IACA,oDAAoD;IACpDoC,MAAMvC,IAAI,CAAC4C,SAAS,OAAGpD,mBAAAA,EACrBO,mBAAmBC,IAAI,EACvBwC,OAAOxC,IAAI,EACX,CAACuC,MAAMM,WAAW,IAAIL,OAAOzB,eAAe,EAC5CyB,MAAM,CAACD,MAAMO,IAAI,CAAC,EAClBP,MAAMQ,gBAAgB,GAAGN,aAAaE,IAAI,CAAC3C,IAAI,GAAGyC,aAAaC,KAAK,CAAC1C,IAAI,EACzEwC,MAAM,CAACD,MAAMS,UAAU,CAAC,EACxBT,MAAMvC,IAAI,CAAC4C,SAAS;IAGtB,OAAOL;AACT,EAAE"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get tableRowClassName () {
13
+ return tableRowClassName;
14
+ },
15
+ get tableRowClassNames () {
16
+ return tableRowClassNames;
17
+ },
18
+ get useTableRowStyles_unstable () {
19
+ return useTableRowStyles_unstable;
20
+ }
21
+ });
22
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
23
+ const _clsx = require("clsx");
24
+ const _TableRowmodulecss = /*#__PURE__*/ _interop_require_default._(require("./TableRow.module.css"));
25
+ const tableRowClassName = 'fui-TableRow';
26
+ const tableRowClassNames = {
27
+ root: tableRowClassName
28
+ };
29
+ const useTableRowStyles_unstable = (state)=>{
30
+ state.root.className = (0, _clsx.clsx)(tableRowClassNames.root, _TableRowmodulecss.default.root, !state.isHeaderRow && _TableRowmodulecss.default.interactive, _TableRowmodulecss.default[state.size], _TableRowmodulecss.default[state.noNativeElements ? 'flex' : 'table'], _TableRowmodulecss.default[state.appearance], state.root.className);
31
+ return state;
32
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/TableRow/useTableRowStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TableRowSlots, TableRowState } from './TableRow.types';\nimport styles from './TableRow.module.css';\n\nexport const tableRowClassName = 'fui-TableRow';\n\nexport const tableRowClassNames: SlotClassNames<TableRowSlots> = {\n root: tableRowClassName,\n};\n\nexport const useTableRowStyles_unstable = (state: TableRowState): TableRowState => {\n state.root.className = clsx(\n tableRowClassNames.root,\n styles.root,\n !state.isHeaderRow && styles.interactive,\n styles[state.size],\n styles[state.noNativeElements ? 'flex' : 'table'],\n styles[state.appearance],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","tableRowClassName","tableRowClassNames","root","useTableRowStyles_unstable","state","className","isHeaderRow","interactive","size","noNativeElements","appearance"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;;;;sBALQ,OAAO;4EAGT,wBAAwB;AAEpC,0BAA0B,eAAe;AAEzC,MAAMC,qBAAoD;IAC/DC,MAAMF;AACR,EAAE;AAEK,MAAMG,6BAA6B,CAACC;IACzCA,MAAMF,IAAI,CAACG,SAAS,OAAGP,UAAAA,EACrBG,mBAAmBC,IAAI,EACvBH,0BAAAA,CAAOG,IAAI,EACX,CAACE,MAAME,WAAW,IAAIP,0BAAAA,CAAOQ,WAAW,EACxCR,0BAAM,CAACK,MAAMI,IAAI,CAAC,EAClBT,0BAAM,CAACK,MAAMK,gBAAgB,GAAG,SAAS,QAAQ,EACjDV,0BAAM,CAACK,MAAMM,UAAU,CAAC,EACxBN,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableSelectionCell/TableSelectionCell.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTableSelectionCell_unstable } from './useTableSelectionCell';\nimport { renderTableSelectionCell_unstable } from './renderTableSelectionCell';\nimport { useTableSelectionCellStyles_unstable } from './useTableSelectionCellStyles.styles';\nimport type { TableSelectionCellProps } from './TableSelectionCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableSelectionCell component\n */\nexport const TableSelectionCell: ForwardRefComponent<TableSelectionCellProps> = React.forwardRef((props, ref) => {\n const state = useTableSelectionCell_unstable(props, ref);\n\n useTableSelectionCellStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTableSelectionCellStyles_unstable')(state);\n\n return renderTableSelectionCell_unstable(state);\n});\n\nTableSelectionCell.displayName = 'TableSelectionCell';\n"],"names":["React","useTableSelectionCell_unstable","renderTableSelectionCell_unstable","useTableSelectionCellStyles_unstable","useCustomStyleHook_unstable","TableSelectionCell","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;uCACgB,6BAA0B;0CACvB,gCAA6B;mDAC1B,0CAAuC;qCAGhD,kCAAkC;AAKvE,MAAMK,qBAAAA,WAAAA,GAAmEL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IACvG,MAAMC,YAAQR,qDAAAA,EAA+BM,OAAOC;QAEpDL,uEAAAA,EAAqCM;QAErCL,gDAAAA,EAA4B,wCAAwCK;IAEpE,WAAOP,2DAAAA,EAAkCO;AAC3C,GAAG;AAEHJ,mBAAmBK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/TableSelectionCell/TableSelectionCell.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTableSelectionCell_unstable } from './useTableSelectionCell';\nimport { renderTableSelectionCell_unstable } from './renderTableSelectionCell';\nimport { useTableSelectionCellStyles_unstable } from './useTableSelectionCellStyles.styles';\nimport type { TableSelectionCellProps } from './TableSelectionCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableSelectionCell component\n */\nexport const TableSelectionCell: ForwardRefComponent<TableSelectionCellProps> = React.forwardRef((props, ref) => {\n const state = useTableSelectionCell_unstable(props, ref);\n\n useTableSelectionCellStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTableSelectionCellStyles_unstable')(state);\n\n return renderTableSelectionCell_unstable(state);\n});\n\nTableSelectionCell.displayName = 'TableSelectionCell';\n"],"names":["React","useTableSelectionCell_unstable","renderTableSelectionCell_unstable","useTableSelectionCellStyles_unstable","useCustomStyleHook_unstable","TableSelectionCell","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;uCACgB,6BAA0B;0CACvB,gCAA6B;mDAC1B,0CAAuC;qCAGhD,kCAAkC;AAKvE,MAAMK,qBAAAA,WAAAA,GAAmEL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IACvG,MAAMC,YAAQR,qDAAAA,EAA+BM,OAAOC;QAEpDL,uEAAAA,EAAqCM;QAErCL,gDAAAA,EAA4B,wCAAwCK;IAEpE,WAAOP,2DAAAA,EAAkCO;AAC3C,GAAG;AAEHJ,mBAAmBK,WAAW,GAAG"}
@@ -0,0 +1,37 @@
1
+ @layer fluentui {
2
+ .root {
3
+ text-align: center;
4
+ white-space: nowrap;
5
+ padding: 0;
6
+ }
7
+ .root[data-fui-focus-visible] {
8
+ outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
9
+ border-radius: var(--borderRadiusMedium);
10
+ }
11
+ .table {
12
+ display: table-cell;
13
+ width: calc(var(--spacingHorizontalXXXL) + var(--spacingHorizontalM));
14
+ }
15
+ .flex {
16
+ display: flex;
17
+ flex: 1 1 0px;
18
+ min-width: calc(var(--spacingHorizontalXXXL) + var(--spacingHorizontalM));
19
+ max-width: calc(var(--spacingHorizontalXXXL) + var(--spacingHorizontalM));
20
+ justify-content: center;
21
+ }
22
+ .radioIndicator {
23
+ display: flex;
24
+ flex-grow: 1;
25
+ align-items: center;
26
+ justify-content: center;
27
+ }
28
+ .subtle {
29
+ opacity: 0;
30
+ }
31
+ .subtle[data-fui-focus-within]:focus-within {
32
+ opacity: 1;
33
+ }
34
+ .hidden {
35
+ opacity: 0;
36
+ }
37
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableSelectionCell/TableSelectionCell.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { Checkbox, CheckboxProps } from '@fluentui/react-checkbox';\nimport type { Radio } from '@fluentui/react-radio';\nimport type { TableCellSlots } from '../TableCell/TableCell.types';\nimport type { TableContextValue } from '../Table/Table.types';\n\nexport type TableSelectionCellSlots = {\n /**\n * Selection indicator if selection type is checkbox\n */\n checkboxIndicator: Slot<typeof Checkbox>;\n /**\n * Selection indicator if selection type is radio\n */\n radioIndicator: Slot<typeof Radio>;\n} & Pick<TableCellSlots, 'root'>;\n\n/**\n * TableSelectionCell Props\n */\nexport type TableSelectionCellProps = ComponentProps<Partial<TableSelectionCellSlots>> & {\n /**\n * A table can have two kinds of selection modes.\n * @default checkbox\n */\n type?: 'checkbox' | 'radio';\n\n /**\n * @default false\n */\n checked?: CheckboxProps['checked'];\n\n /**\n * Only visible when checked or the parent row is hovered/focused\n * @default false\n */\n subtle?: boolean;\n\n /**\n * Completely hides the selection cell\n * @deprecated cells should never use hidden, since doing so breaks table structure and screen reader navigation. Use `invisible` instead.\n */\n hidden?: boolean;\n\n /**\n * Hides the selection cell visually but takes up the same space\n * @default false\n */\n invisible?: boolean;\n};\n\n/**\n * State used in rendering TableSelectionCell\n */\nexport type TableSelectionCellState = ComponentState<TableSelectionCellSlots> &\n Pick<Required<TableSelectionCellProps>, 'type' | 'checked' | 'subtle'> &\n Pick<TableContextValue, 'noNativeElements'> & {\n /* Visually hides the selection cell; not deprecated on state */\n hidden: boolean;\n };\n"],"names":[],"mappings":"AAmDA;;CAEC,GACD,WAKI"}
1
+ {"version":3,"sources":["../../../src/components/TableSelectionCell/TableSelectionCell.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { Checkbox, CheckboxProps } from '@fluentui/react-checkbox';\nimport type { Radio } from '@fluentui/react-radio';\nimport type { TableCellSlots } from '../TableCell/TableCell.types';\nimport type { TableContextValue } from '../Table/Table.types';\n\nexport type TableSelectionCellSlots = {\n /**\n * Selection indicator if selection type is checkbox\n */\n checkboxIndicator: Slot<typeof Checkbox>;\n /**\n * Selection indicator if selection type is radio\n */\n radioIndicator: Slot<typeof Radio>;\n} & Pick<TableCellSlots, 'root'>;\n\n/**\n * TableSelectionCell Props\n */\nexport type TableSelectionCellProps = ComponentProps<Partial<TableSelectionCellSlots>> & {\n /**\n * A table can have two kinds of selection modes.\n * @default checkbox\n */\n type?: 'checkbox' | 'radio';\n\n /**\n * @default false\n */\n checked?: CheckboxProps['checked'];\n\n /**\n * Only visible when checked or the parent row is hovered/focused\n * @default false\n */\n subtle?: boolean;\n\n /**\n * Completely hides the selection cell\n * @deprecated cells should never use hidden, since doing so breaks table structure and screen reader navigation. Use `invisible` instead.\n */\n hidden?: boolean;\n\n /**\n * Hides the selection cell visually but takes up the same space\n * @default false\n */\n invisible?: boolean;\n};\n\n/**\n * State used in rendering TableSelectionCell\n */\nexport type TableSelectionCellState = ComponentState<TableSelectionCellSlots> &\n Pick<Required<TableSelectionCellProps>, 'type' | 'checked' | 'subtle'> &\n Pick<TableContextValue, 'noNativeElements'> & {\n /* Visually hides the selection cell; not deprecated on state */\n hidden: boolean;\n };\n"],"names":[],"mappings":"AAmDA;;CAEC,GACD,WAKI"}
@@ -5,26 +5,26 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- CELL_WIDTH: function() {
12
+ get CELL_WIDTH () {
13
13
  return _useTableSelectionCellStylesstyles.CELL_WIDTH;
14
14
  },
15
- TableSelectionCell: function() {
15
+ get TableSelectionCell () {
16
16
  return _TableSelectionCell.TableSelectionCell;
17
17
  },
18
- renderTableSelectionCell_unstable: function() {
18
+ get renderTableSelectionCell_unstable () {
19
19
  return _renderTableSelectionCell.renderTableSelectionCell_unstable;
20
20
  },
21
- tableSelectionCellClassNames: function() {
21
+ get tableSelectionCellClassNames () {
22
22
  return _useTableSelectionCellStylesstyles.tableSelectionCellClassNames;
23
23
  },
24
- useTableSelectionCellStyles_unstable: function() {
24
+ get useTableSelectionCellStyles_unstable () {
25
25
  return _useTableSelectionCellStylesstyles.useTableSelectionCellStyles_unstable;
26
26
  },
27
- useTableSelectionCell_unstable: function() {
27
+ get useTableSelectionCell_unstable () {
28
28
  return _useTableSelectionCell.useTableSelectionCell_unstable;
29
29
  }
30
30
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableSelectionCell/index.ts"],"sourcesContent":["export { TableSelectionCell } from './TableSelectionCell';\nexport type {\n TableSelectionCellProps,\n TableSelectionCellSlots,\n TableSelectionCellState,\n} from './TableSelectionCell.types';\nexport { renderTableSelectionCell_unstable } from './renderTableSelectionCell';\nexport { useTableSelectionCell_unstable } from './useTableSelectionCell';\nexport {\n CELL_WIDTH,\n tableSelectionCellClassNames,\n useTableSelectionCellStyles_unstable,\n} from './useTableSelectionCellStyles.styles';\n"],"names":["TableSelectionCell","renderTableSelectionCell_unstable","useTableSelectionCell_unstable","CELL_WIDTH","tableSelectionCellClassNames","useTableSelectionCellStyles_unstable"],"mappings":";;;;;;;;;;;;eASEG,6CAAU;;;eATHH,sCAAkB;;;eAMlBC,2DAAiC;;;eAIxCG,+DAA4B;;;eAC5BC,uEAAoC;;;eAJ7BH,qDAA8B;;;oCAPJ,0BAAuB;0CAMR,gCAA6B;uCAChC,6BAA0B;mDAKlE,0CAAuC"}
1
+ {"version":3,"sources":["../../../src/components/TableSelectionCell/index.ts"],"sourcesContent":["export { TableSelectionCell } from './TableSelectionCell';\nexport type {\n TableSelectionCellProps,\n TableSelectionCellSlots,\n TableSelectionCellState,\n} from './TableSelectionCell.types';\nexport { renderTableSelectionCell_unstable } from './renderTableSelectionCell';\nexport { useTableSelectionCell_unstable } from './useTableSelectionCell';\nexport {\n CELL_WIDTH,\n tableSelectionCellClassNames,\n useTableSelectionCellStyles_unstable,\n} from './useTableSelectionCellStyles.styles';\n"],"names":["TableSelectionCell","renderTableSelectionCell_unstable","useTableSelectionCell_unstable","CELL_WIDTH","tableSelectionCellClassNames","useTableSelectionCellStyles_unstable"],"mappings":";;;;;;;;;;;;eASEG,6CAAU;;;eATHH,sCAAkB;;;eAMlBC,2DAAiC;;;eAIxCG,+DAA4B;;;eAC5BC,uEAAoC;;;eAJ7BH,qDAA8B;;;oCAPJ,0BAAuB;0CAMR,gCAA6B;uCAChC,6BAA0B;mDAKlE,0CAAuC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableSelectionCell/renderTableSelectionCell.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { TableSelectionCellState, TableSelectionCellSlots } from './TableSelectionCell.types';\n\n/**\n * Render the final JSX of TableSelectionCell\n */\nexport const renderTableSelectionCell_unstable = (state: TableSelectionCellState): JSXElement => {\n assertSlots<TableSelectionCellSlots>(state);\n\n return (\n <state.root>\n {state.type === 'checkbox' && state.checkboxIndicator && <state.checkboxIndicator />}\n\n {state.type === 'radio' && state.radioIndicator && <state.radioIndicator />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderTableSelectionCell_unstable","state","root","type","checkboxIndicator","radioIndicator"],"mappings":";;;;+BASaC;;;;;;4BARb,iCAAiD;gCACrB,4BAA4B;AAOjD,0CAA0C,CAACC;QAChDF,2BAAAA,EAAqCE;IAErC,OAAA,WAAA,OACE,gBAAA,EAACA,MAAMC,IAAI,EAAA;;YACRD,MAAME,IAAI,KAAK,cAAcF,MAAMG,iBAAiB,IAAA,WAAA,OAAI,eAAA,EAACH,MAAMG,iBAAiB,EAAA,CAAA;YAEhFH,MAAME,IAAI,KAAK,WAAWF,MAAMI,cAAc,IAAA,WAAA,OAAI,eAAA,EAACJ,MAAMI,cAAc,EAAA,CAAA;;;AAG9E,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/TableSelectionCell/renderTableSelectionCell.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { TableSelectionCellState, TableSelectionCellSlots } from './TableSelectionCell.types';\n\n/**\n * Render the final JSX of TableSelectionCell\n */\nexport const renderTableSelectionCell_unstable = (state: TableSelectionCellState): JSXElement => {\n assertSlots<TableSelectionCellSlots>(state);\n\n return (\n <state.root>\n {state.type === 'checkbox' && state.checkboxIndicator && <state.checkboxIndicator />}\n\n {state.type === 'radio' && state.radioIndicator && <state.radioIndicator />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderTableSelectionCell_unstable","state","root","type","checkboxIndicator","radioIndicator"],"mappings":";;;;+BASaC;;;;;;;gCARb,gDAAiD,GACjD,SAASD,WAAW,QAAQ,4BAA4B;AAOjD,0CAA0C,CAACE;QAChDF,2BAAAA,EAAqCE;IAErC,OAAA,WAAA,OACE,gBAAA,EAACA,MAAMC,IAAI,EAAA;;YACRD,MAAME,IAAI,KAAK,cAAcF,MAAMG,iBAAiB,IAAA,WAAA,OAAI,eAAA,EAACH,MAAMG,iBAAiB,EAAA,CAAA;YAEhFH,MAAME,IAAI,KAAK,WAAWF,MAAMI,cAAc,IAAA,WAAA,OAAI,eAAA,EAACJ,MAAMI,cAAc,EAAA,CAAA;;;AAG9E,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TableSelectionCell/useTableSelectionCell.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useId, slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { Checkbox } from '@fluentui/react-checkbox';\nimport { Radio } from '@fluentui/react-radio';\nimport type { TableSelectionCellProps, TableSelectionCellState } from './TableSelectionCell.types';\nimport { useTableCell_unstable } from '../TableCell/useTableCell';\nimport { useTableContext } from '../../contexts/tableContext';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\n/**\n * Create the state required to render TableSelectionCell.\n *\n * The returned state can be modified with hooks such as useTableSelectionCellStyles_unstable,\n * before being passed to renderTableSelectionCell_unstable.\n *\n * @param props - props from this instance of TableSelectionCell\n * @param ref - reference to root HTMLElement of TableSelectionCell\n */\nexport const useTableSelectionCell_unstable = (\n props: TableSelectionCellProps,\n ref: React.Ref<HTMLElement>,\n): TableSelectionCellState => {\n const tableCellState = useTableCell_unstable(props, useMergedRefs(ref, useFocusWithin()));\n const { noNativeElements } = useTableContext();\n const {\n type = 'checkbox',\n checked = false,\n subtle = false,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n hidden = false,\n invisible = false,\n } = props;\n\n return {\n ...tableCellState,\n components: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ...tableCellState.components,\n checkboxIndicator: Checkbox,\n radioIndicator: Radio,\n },\n checkboxIndicator: slot.optional(props.checkboxIndicator, {\n renderByDefault: type === 'checkbox',\n defaultProps: { checked: props.checked },\n elementType: Checkbox,\n }),\n radioIndicator: slot.optional(props.radioIndicator, {\n renderByDefault: type === 'radio' && !invisible,\n defaultProps: { checked: !!checked, input: { name: useId('table-selection-radio') } },\n elementType: Radio,\n }),\n type,\n checked,\n noNativeElements,\n subtle,\n hidden: invisible || hidden,\n };\n};\n"],"names":["useId","slot","useMergedRefs","Checkbox","Radio","useTableCell_unstable","useTableContext","useFocusWithin","useTableSelectionCell_unstable","props","ref","tableCellState","noNativeElements","type","checked","subtle","hidden","invisible","components","checkboxIndicator","radioIndicator","optional","renderByDefault","defaultProps","elementType","input","name"],"mappings":"AAAA;;;;;+BAoBaQ;;;;;;gCAjB8B,4BAA4B;+BAC9C,2BAA2B;4BAC9B,wBAAwB;8BAER,+BAA4B;8BAClC,iCAA8B;8BAC/B,0BAA0B;AAWlD,uCAAuC,CAC5CC,OACAC;IAEA,MAAMC,qBAAiBN,mCAAAA,EAAsBI,WAAOP,6BAAAA,EAAcQ,KAAKH,gCAAAA;IACvE,MAAM,EAAEK,gBAAgB,EAAE,OAAGN,6BAAAA;IAC7B,MAAM,EACJO,OAAO,UAAU,EACjBC,UAAU,KAAK,EACfC,SAAS,KAAK,EACd,AACAC,SAAS,KAAK,EACdC,YAAY,KAAK,EAClB,GAAGR,sBAH0D;IAK9D,OAAO;QACL,GAAGE,cAAc;QACjBO,YAAY;YACV,4DAA4D;YAC5D,GAAGP,eAAeO,UAAU;YAC5BC,mBAAmBhB,uBAAAA;YACnBiB,gBAAgBhB,iBAAAA;QAClB;QACAe,mBAAmBlB,oBAAAA,CAAKoB,QAAQ,CAACZ,MAAMU,iBAAiB,EAAE;YACxDG,iBAAiBT,SAAS;YAC1BU,cAAc;gBAAET,SAASL,MAAMK,OAAO;YAAC;YACvCU,aAAarB,uBAAAA;QACf;QACAiB,gBAAgBnB,oBAAAA,CAAKoB,QAAQ,CAACZ,MAAMW,cAAc,EAAE;YAClDE,iBAAiBT,SAAS,WAAW,CAACI;YACtCM,cAAc;gBAAET,SAAS,CAAC,CAACA;gBAASW,OAAO;oBAAEC,UAAM1B,qBAAAA,EAAM;gBAAyB;YAAE;YACpFwB,aAAapB,iBAAAA;QACf;QACAS;QACAC;QACAF;QACAG;QACAC,QAAQC,aAAaD;IACvB;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/TableSelectionCell/useTableSelectionCell.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useId, slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { Checkbox } from '@fluentui/react-checkbox';\nimport { Radio } from '@fluentui/react-radio';\nimport type { TableSelectionCellProps, TableSelectionCellState } from './TableSelectionCell.types';\nimport { useTableCell_unstable } from '../TableCell/useTableCell';\nimport { useTableContext } from '../../contexts/tableContext';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\n/**\n * Create the state required to render TableSelectionCell.\n *\n * The returned state can be modified with hooks such as useTableSelectionCellStyles_unstable,\n * before being passed to renderTableSelectionCell_unstable.\n *\n * @param props - props from this instance of TableSelectionCell\n * @param ref - reference to root HTMLElement of TableSelectionCell\n */\nexport const useTableSelectionCell_unstable = (\n props: TableSelectionCellProps,\n ref: React.Ref<HTMLElement>,\n): TableSelectionCellState => {\n const tableCellState = useTableCell_unstable(props, useMergedRefs(ref, useFocusWithin()));\n const { noNativeElements } = useTableContext();\n const {\n type = 'checkbox',\n checked = false,\n subtle = false,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n hidden = false,\n invisible = false,\n } = props;\n\n return {\n ...tableCellState,\n components: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ...tableCellState.components,\n checkboxIndicator: Checkbox,\n radioIndicator: Radio,\n },\n checkboxIndicator: slot.optional(props.checkboxIndicator, {\n renderByDefault: type === 'checkbox',\n defaultProps: { checked: props.checked },\n elementType: Checkbox,\n }),\n radioIndicator: slot.optional(props.radioIndicator, {\n renderByDefault: type === 'radio' && !invisible,\n defaultProps: { checked: !!checked, input: { name: useId('table-selection-radio') } },\n elementType: Radio,\n }),\n type,\n checked,\n noNativeElements,\n subtle,\n hidden: invisible || hidden,\n };\n};\n"],"names":["useId","slot","useMergedRefs","Checkbox","Radio","useTableCell_unstable","useTableContext","useFocusWithin","useTableSelectionCell_unstable","props","ref","tableCellState","noNativeElements","type","checked","subtle","hidden","invisible","components","checkboxIndicator","radioIndicator","optional","renderByDefault","defaultProps","elementType","input","name"],"mappings":"AAAA;;;;;+BAoBaQ;;;;;;gCAjB8B,4BAA4B;+BAC9C,2BAA2B;4BAC9B,wBAAwB;8BAER,+BAA4B;8BAClC,iCAA8B;8BAC/B,0BAA0B;AAWlD,uCAAuC,CAC5CC,OACAC;IAEA,MAAMC,qBAAiBN,mCAAAA,EAAsBI,WAAOP,6BAAAA,EAAcQ,KAAKH,gCAAAA;IACvE,MAAM,EAAEK,gBAAgB,EAAE,OAAGN,6BAAAA;IAC7B,MAAM,EACJO,OAAO,UAAU,EACjBC,UAAU,KAAK,EACfC,SAAS,KAAK,EACd,AACAC,SAAS,KAAK,EACdC,YAAY,KAAK,EAClB,GAAGR,sBAH0D;IAK9D,OAAO;QACL,GAAGE,cAAc;QACjBO,YAAY;YACV,4DAA4D;YAC5D,GAAGP,eAAeO,UAAU;YAC5BC,mBAAmBhB,uBAAAA;YACnBiB,gBAAgBhB,iBAAAA;QAClB;QACAe,mBAAmBlB,oBAAAA,CAAKoB,QAAQ,CAACZ,MAAMU,iBAAiB,EAAE;YACxDG,iBAAiBT,SAAS;YAC1BU,cAAc;gBAAET,SAASL,MAAMK,OAAO;YAAC;YACvCU,aAAarB,uBAAAA;QACf;QACAiB,gBAAgBnB,oBAAAA,CAAKoB,QAAQ,CAACZ,MAAMW,cAAc,EAAE;YAClDE,iBAAiBT,SAAS,WAAW,CAACI;YACtCM,cAAc;gBAAET,SAAS,CAAC,CAACA;gBAASW,OAAO;oBAAEC,UAAM1B,qBAAAA,EAAM;gBAAyB;YAAE;YACpFwB,aAAapB,iBAAAA;QACf;QACAS;QACAC;QACAF;QACAG;QACAC,QAAQC,aAAaD;IACvB;AACF,EAAE"}
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- CELL_WIDTH: function() {
13
+ get CELL_WIDTH () {
14
14
  return CELL_WIDTH;
15
15
  },
16
- tableSelectionCellClassNames: function() {
16
+ get tableSelectionCellClassNames () {
17
17
  return tableSelectionCellClassNames;
18
18
  },
19
- useTableSelectionCellStyles_unstable: function() {
19
+ get useTableSelectionCellStyles_unstable () {
20
20
  return useTableSelectionCellStyles_unstable;
21
21
  }
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useTableSelectionCellStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { createCustomFocusIndicatorStyle } from \"@fluentui/react-tabster\";\nimport { tokens } from \"@fluentui/react-theme\";\nexport const CELL_WIDTH = 44;\nexport const tableSelectionCellClassNames = {\n root: 'fui-TableSelectionCell',\n checkboxIndicator: 'fui-TableSelectionCell__checkboxIndicator',\n radioIndicator: 'fui-TableSelectionCell__radioIndicator'\n};\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-cell',\n width: `${CELL_WIDTH}px`\n }\n});\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n flex: '1 1 0px',\n minWidth: `${CELL_WIDTH}px`,\n maxWidth: `${CELL_WIDTH}px`,\n justifyContent: 'center'\n }\n});\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n textAlign: 'center',\n whiteSpace: 'nowrap',\n padding: '0',\n ...createCustomFocusIndicatorStyle({\n outline: `2px solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium\n }, {\n selector: 'focus'\n })\n },\n radioIndicator: {\n display: 'flex',\n flexGrow: 1,\n alignItems: 'center',\n justifyContent: 'center'\n },\n subtle: {\n opacity: 0,\n ...createCustomFocusIndicatorStyle({\n opacity: 1\n }, {\n selector: 'focus-within'\n })\n },\n hidden: {\n opacity: 0\n }\n});\n/**\n * Apply styling to the TableSelectionCell slots based on the state\n */ export const useTableSelectionCellStyles_unstable = (state)=>{\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles()\n };\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tableSelectionCellClassNames.root, styles.root, state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root, state.subtle && state.checked === false && styles.subtle, state.hidden && styles.hidden, state.root.className);\n if (state.checkboxIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.checkboxIndicator.className = mergeClasses(tableSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);\n }\n if (state.radioIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.radioIndicator.className = mergeClasses(tableSelectionCellClassNames.radioIndicator, styles.radioIndicator, state.radioIndicator.className);\n }\n return state;\n};\n"],"names":["__styles","mergeClasses","createCustomFocusIndicatorStyle","tokens","CELL_WIDTH","tableSelectionCellClassNames","root","checkboxIndicator","radioIndicator","useTableLayoutStyles","mc9l5x","a9b677","d","useFlexLayoutStyles","xawz","Bh6795r","Bnnss6s","fkmc3a","Bf4jedk","B2u0y6b","Brf1p80","p","useStyles","fsow6f","Huce71","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","Bfpq7zp","g9k6zt","Bn4voq9","giviqs","Bw81rd7","kdpuga","dm238s","B6xbmo0","B3whbx2","Bt984gj","subtle","abs64n","B8a84jv","hidden","useTableSelectionCellStyles_unstable","state","styles","layoutStyles","table","flex","className","noNativeElements","checked"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAICI,UAAU;;;gCACkB;;;wCAsDY;eAApCwC;;;uBA1DwB,gBAAgB;AAGlD,mBAAmB,EAAE;AACrB,MAAMvC,+BAA+B;IACxCC,IAAI,EAAE,wBAAwB;IAC9BC,iBAAiB,EAAE,2CAA2C;IAC9DC,cAAc,EAAE;AACpB,CAAC;AACD,MAAMC,oBAAoB,GAAA,WAAA,OAAGT,eAAA,EAAA;IAAAM,IAAA,EAAA;QAAAI,MAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;KAAA;AAAA,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AA;QAAA;QAAA;KAAA;AAAA,CA6BrB,CAAC;AAGS,8CAA8CwB,KAAK,IAAG;IAC7D,MAAMC,MAAM,GAAGxB,SAAS,CAAC,CAAC;IAC1B,MAAMyB,YAAY,GAAG;QACjBC,KAAK,EAAEvC,oBAAoB,CAAC,CAAC;QAC7BwC,IAAI,EAAEpC,mBAAmB,CAAC;IAC9B,CAAC;IACD,oDAAA;IACAgC,KAAK,CAACvC,IAAI,CAAC4C,SAAS,OAAGjD,mBAAY,EAACI,4BAA4B,CAACC,IAAI,EAAEwC,MAAM,CAACxC,IAAI,EAAEuC,KAAK,CAACM,gBAAgB,GAAGJ,YAAY,CAACE,IAAI,CAAC3C,IAAI,GAAGyC,YAAY,CAACC,KAAK,CAAC1C,IAAI,EAAEuC,KAAK,CAACL,MAAM,IAAIK,KAAK,CAACO,OAAO,KAAK,KAAK,IAAIN,MAAM,CAACN,MAAM,EAAEK,KAAK,CAACF,MAAM,IAAIG,MAAM,CAACH,MAAM,EAAEE,KAAK,CAACvC,IAAI,CAAC4C,SAAS,CAAC;IAC7Q,IAAIL,KAAK,CAACtC,iBAAiB,EAAE;QACzB,oDAAA;QACAsC,KAAK,CAACtC,iBAAiB,CAAC2C,SAAS,OAAGjD,mBAAY,EAACI,4BAA4B,CAACE,iBAAiB,EAAEsC,KAAK,CAACtC,iBAAiB,CAAC2C,SAAS,CAAC;IACvI;IACA,IAAIL,KAAK,CAACrC,cAAc,EAAE;QACtB,oDAAA;QACAqC,KAAK,CAACrC,cAAc,CAAC0C,SAAS,OAAGjD,mBAAY,EAACI,4BAA4B,CAACG,cAAc,EAAEsC,MAAM,CAACtC,cAAc,EAAEqC,KAAK,CAACrC,cAAc,CAAC0C,SAAS,CAAC;IACrJ;IACA,OAAOL,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useTableSelectionCellStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { createCustomFocusIndicatorStyle } from \"@fluentui/react-tabster\";\nimport { tokens } from \"@fluentui/react-theme\";\nexport const CELL_WIDTH = 44;\nexport const tableSelectionCellClassNames = {\n root: 'fui-TableSelectionCell',\n checkboxIndicator: 'fui-TableSelectionCell__checkboxIndicator',\n radioIndicator: 'fui-TableSelectionCell__radioIndicator'\n};\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-cell',\n width: `${CELL_WIDTH}px`\n }\n});\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n flex: '1 1 0px',\n minWidth: `${CELL_WIDTH}px`,\n maxWidth: `${CELL_WIDTH}px`,\n justifyContent: 'center'\n }\n});\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n textAlign: 'center',\n whiteSpace: 'nowrap',\n padding: '0',\n ...createCustomFocusIndicatorStyle({\n outline: `2px solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium\n }, {\n selector: 'focus'\n })\n },\n radioIndicator: {\n display: 'flex',\n flexGrow: 1,\n alignItems: 'center',\n justifyContent: 'center'\n },\n subtle: {\n opacity: 0,\n ...createCustomFocusIndicatorStyle({\n opacity: 1\n }, {\n selector: 'focus-within'\n })\n },\n hidden: {\n opacity: 0\n }\n});\n/**\n * Apply styling to the TableSelectionCell slots based on the state\n */ export const useTableSelectionCellStyles_unstable = (state)=>{\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles()\n };\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tableSelectionCellClassNames.root, styles.root, state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root, state.subtle && state.checked === false && styles.subtle, state.hidden && styles.hidden, state.root.className);\n if (state.checkboxIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.checkboxIndicator.className = mergeClasses(tableSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);\n }\n if (state.radioIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.radioIndicator.className = mergeClasses(tableSelectionCellClassNames.radioIndicator, styles.radioIndicator, state.radioIndicator.className);\n }\n return state;\n};\n"],"names":["__styles","mergeClasses","createCustomFocusIndicatorStyle","tokens","CELL_WIDTH","tableSelectionCellClassNames","root","checkboxIndicator","radioIndicator","useTableLayoutStyles","mc9l5x","a9b677","d","useFlexLayoutStyles","xawz","Bh6795r","Bnnss6s","fkmc3a","Bf4jedk","B2u0y6b","Brf1p80","p","useStyles","fsow6f","Huce71","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","Bfpq7zp","g9k6zt","Bn4voq9","giviqs","Bw81rd7","kdpuga","dm238s","B6xbmo0","B3whbx2","Bt984gj","subtle","abs64n","B8a84jv","hidden","useTableSelectionCellStyles_unstable","state","styles","layoutStyles","table","flex","className","noNativeElements","checked"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAICI,UAAU;;;QACVC,4BAA4B;;;QAsDxBuC,oCAAoC;;;;uBA1DZ,gBAAgB;AAGlD,mBAAmB,EAAE;AACrB,qCAAqC;IACxCtC,IAAI,EAAE,wBAAwB;IAC9BC,iBAAiB,EAAE,2CAA2C;IAC9DC,cAAc,EAAE;AACpB,CAAC;AACD,MAAMC,oBAAoB,GAAA,WAAA,OAAGT,eAAA,EAAA;IAAAM,IAAA,EAAA;QAAAI,MAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;KAAA;AAAA,CAK5B,CAAC;AACF,MAAMC,mBAAmB,GAAA,WAAA,OAAGb,eAAA,EAAA;IAAAM,IAAA,EAAA;QAAAI,MAAA,EAAA;QAAAI,IAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAR,CAAA,EAAA;QAAA;QAAA;YAAA;YAAA;gBAAAS,CAAA,EAAA,CAAA;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