@fluentui/react-table 0.0.0-nightly-20221007-1237.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/CHANGELOG.json +354 -0
  2. package/CHANGELOG.md +104 -0
  3. package/LICENSE +15 -0
  4. package/README.md +5 -0
  5. package/Spec.md +63 -0
  6. package/dist/index.d.ts +647 -0
  7. package/lib/Table.js +2 -0
  8. package/lib/Table.js.map +1 -0
  9. package/lib/TableBody.js +2 -0
  10. package/lib/TableBody.js.map +1 -0
  11. package/lib/TableCell.js +2 -0
  12. package/lib/TableCell.js.map +1 -0
  13. package/lib/TableCellActions.js +2 -0
  14. package/lib/TableCellActions.js.map +1 -0
  15. package/lib/TableCellLayout.js +2 -0
  16. package/lib/TableCellLayout.js.map +1 -0
  17. package/lib/TableCellPrimaryLayout.js +2 -0
  18. package/lib/TableCellPrimaryLayout.js.map +1 -0
  19. package/lib/TableHeader.js +2 -0
  20. package/lib/TableHeader.js.map +1 -0
  21. package/lib/TableHeaderCell.js +2 -0
  22. package/lib/TableHeaderCell.js.map +1 -0
  23. package/lib/TableRow.js +2 -0
  24. package/lib/TableRow.js.map +1 -0
  25. package/lib/TableSelectionCell.js +2 -0
  26. package/lib/TableSelectionCell.js.map +1 -0
  27. package/lib/components/Table/Table.js +16 -0
  28. package/lib/components/Table/Table.js.map +1 -0
  29. package/lib/components/Table/Table.types.js +2 -0
  30. package/lib/components/Table/Table.types.js.map +1 -0
  31. package/lib/components/Table/index.js +6 -0
  32. package/lib/components/Table/index.js.map +1 -0
  33. package/lib/components/Table/renderTable.js +18 -0
  34. package/lib/components/Table/renderTable.js.map +1 -0
  35. package/lib/components/Table/useTable.js +30 -0
  36. package/lib/components/Table/useTable.js.map +1 -0
  37. package/lib/components/Table/useTableContextValues.js +17 -0
  38. package/lib/components/Table/useTableContextValues.js.map +1 -0
  39. package/lib/components/Table/useTableStyles.js +53 -0
  40. package/lib/components/Table/useTableStyles.js.map +1 -0
  41. package/lib/components/TableBody/TableBody.js +15 -0
  42. package/lib/components/TableBody/TableBody.js.map +1 -0
  43. package/lib/components/TableBody/TableBody.types.js +2 -0
  44. package/lib/components/TableBody/TableBody.types.js.map +1 -0
  45. package/lib/components/TableBody/index.js +6 -0
  46. package/lib/components/TableBody/index.js.map +1 -0
  47. package/lib/components/TableBody/renderTableBody.js +16 -0
  48. package/lib/components/TableBody/renderTableBody.js.map +1 -0
  49. package/lib/components/TableBody/useTableBody.js +32 -0
  50. package/lib/components/TableBody/useTableBody.js.map +1 -0
  51. package/lib/components/TableBody/useTableBodyStyles.js +35 -0
  52. package/lib/components/TableBody/useTableBodyStyles.js.map +1 -0
  53. package/lib/components/TableCell/TableCell.js +15 -0
  54. package/lib/components/TableCell/TableCell.js.map +1 -0
  55. package/lib/components/TableCell/TableCell.types.js +2 -0
  56. package/lib/components/TableCell/TableCell.types.js.map +1 -0
  57. package/lib/components/TableCell/index.js +6 -0
  58. package/lib/components/TableCell/index.js.map +1 -0
  59. package/lib/components/TableCell/renderTableCell.js +15 -0
  60. package/lib/components/TableCell/renderTableCell.js.map +1 -0
  61. package/lib/components/TableCell/useTableCell.js +32 -0
  62. package/lib/components/TableCell/useTableCell.js.map +1 -0
  63. package/lib/components/TableCell/useTableCellStyles.js +59 -0
  64. package/lib/components/TableCell/useTableCellStyles.js.map +1 -0
  65. package/lib/components/TableCellActions/TableCellActions.js +15 -0
  66. package/lib/components/TableCellActions/TableCellActions.js.map +1 -0
  67. package/lib/components/TableCellActions/TableCellActions.types.js +2 -0
  68. package/lib/components/TableCellActions/TableCellActions.types.js.map +1 -0
  69. package/lib/components/TableCellActions/index.js +6 -0
  70. package/lib/components/TableCellActions/index.js.map +1 -0
  71. package/lib/components/TableCellActions/renderTableCellActions.js +16 -0
  72. package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -0
  73. package/lib/components/TableCellActions/useTableCellActions.js +27 -0
  74. package/lib/components/TableCellActions/useTableCellActions.js.map +1 -0
  75. package/lib/components/TableCellActions/useTableCellActionsStyles.js +40 -0
  76. package/lib/components/TableCellActions/useTableCellActionsStyles.js.map +1 -0
  77. package/lib/components/TableCellLayout/TableCellLayout.js +16 -0
  78. package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -0
  79. package/lib/components/TableCellLayout/TableCellLayout.types.js +2 -0
  80. package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -0
  81. package/lib/components/TableCellLayout/index.js +6 -0
  82. package/lib/components/TableCellLayout/index.js.map +1 -0
  83. package/lib/components/TableCellLayout/renderTableCellLayout.js +22 -0
  84. package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -0
  85. package/lib/components/TableCellLayout/useTableCellLayout.js +46 -0
  86. package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -0
  87. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js +13 -0
  88. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -0
  89. package/lib/components/TableCellLayout/useTableCellLayoutStyles.js +74 -0
  90. package/lib/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -0
  91. package/lib/components/TableHeader/TableHeader.js +15 -0
  92. package/lib/components/TableHeader/TableHeader.js.map +1 -0
  93. package/lib/components/TableHeader/TableHeader.types.js +2 -0
  94. package/lib/components/TableHeader/TableHeader.types.js.map +1 -0
  95. package/lib/components/TableHeader/index.js +6 -0
  96. package/lib/components/TableHeader/index.js.map +1 -0
  97. package/lib/components/TableHeader/renderTableHeader.js +15 -0
  98. package/lib/components/TableHeader/renderTableHeader.js.map +1 -0
  99. package/lib/components/TableHeader/useTableHeader.js +39 -0
  100. package/lib/components/TableHeader/useTableHeader.js.map +1 -0
  101. package/lib/components/TableHeader/useTableHeaderStyles.js +41 -0
  102. package/lib/components/TableHeader/useTableHeaderStyles.js.map +1 -0
  103. package/lib/components/TableHeaderCell/TableHeaderCell.js +15 -0
  104. package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -0
  105. package/lib/components/TableHeaderCell/TableHeaderCell.types.js +2 -0
  106. package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -0
  107. package/lib/components/TableHeaderCell/index.js +6 -0
  108. package/lib/components/TableHeaderCell/index.js.map +1 -0
  109. package/lib/components/TableHeaderCell/renderTableHeaderCell.js +17 -0
  110. package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -0
  111. package/lib/components/TableHeaderCell/useTableHeaderCell.js +62 -0
  112. package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -0
  113. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js +106 -0
  114. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -0
  115. package/lib/components/TableRow/TableRow.js +15 -0
  116. package/lib/components/TableRow/TableRow.js.map +1 -0
  117. package/lib/components/TableRow/TableRow.types.js +2 -0
  118. package/lib/components/TableRow/TableRow.types.js.map +1 -0
  119. package/lib/components/TableRow/index.js +6 -0
  120. package/lib/components/TableRow/index.js.map +1 -0
  121. package/lib/components/TableRow/renderTableRow.js +16 -0
  122. package/lib/components/TableRow/renderTableRow.js.map +1 -0
  123. package/lib/components/TableRow/useTableRow.js +34 -0
  124. package/lib/components/TableRow/useTableRow.js.map +1 -0
  125. package/lib/components/TableRow/useTableRowStyles.js +88 -0
  126. package/lib/components/TableRow/useTableRowStyles.js.map +1 -0
  127. package/lib/components/TableSelectionCell/TableSelectionCell.js +15 -0
  128. package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -0
  129. package/lib/components/TableSelectionCell/TableSelectionCell.types.js +2 -0
  130. package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -0
  131. package/lib/components/TableSelectionCell/index.js +6 -0
  132. package/lib/components/TableSelectionCell/index.js.map +1 -0
  133. package/lib/components/TableSelectionCell/renderTableSelectionCell.js +17 -0
  134. package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -0
  135. package/lib/components/TableSelectionCell/useTableSelectionCell.js +47 -0
  136. package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -0
  137. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js +81 -0
  138. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -0
  139. package/lib/contexts/tableContext.js +14 -0
  140. package/lib/contexts/tableContext.js.map +1 -0
  141. package/lib/hooks/index.js +5 -0
  142. package/lib/hooks/index.js.map +1 -0
  143. package/lib/hooks/selectionManager.js +89 -0
  144. package/lib/hooks/selectionManager.js.map +1 -0
  145. package/lib/hooks/types.js +2 -0
  146. package/lib/hooks/types.js.map +1 -0
  147. package/lib/hooks/useSelection.js +74 -0
  148. package/lib/hooks/useSelection.js.map +1 -0
  149. package/lib/hooks/useSort.js +94 -0
  150. package/lib/hooks/useSort.js.map +1 -0
  151. package/lib/hooks/useTable.js +32 -0
  152. package/lib/hooks/useTable.js.map +1 -0
  153. package/lib/index.js +12 -0
  154. package/lib/index.js.map +1 -0
  155. package/lib/navigationModes/cell.js +250 -0
  156. package/lib/navigationModes/cell.js.map +1 -0
  157. package/lib/navigationModes/composite.js +208 -0
  158. package/lib/navigationModes/composite.js.map +1 -0
  159. package/lib/navigationModes/index.js +3 -0
  160. package/lib/navigationModes/index.js.map +1 -0
  161. package/lib/navigationModes/useNavigationMode.js +42 -0
  162. package/lib/navigationModes/useNavigationMode.js.map +1 -0
  163. package/lib-commonjs/Table.js +10 -0
  164. package/lib-commonjs/Table.js.map +1 -0
  165. package/lib-commonjs/TableBody.js +10 -0
  166. package/lib-commonjs/TableBody.js.map +1 -0
  167. package/lib-commonjs/TableCell.js +10 -0
  168. package/lib-commonjs/TableCell.js.map +1 -0
  169. package/lib-commonjs/TableCellActions.js +10 -0
  170. package/lib-commonjs/TableCellActions.js.map +1 -0
  171. package/lib-commonjs/TableCellLayout.js +10 -0
  172. package/lib-commonjs/TableCellLayout.js.map +1 -0
  173. package/lib-commonjs/TableCellPrimaryLayout.js +10 -0
  174. package/lib-commonjs/TableCellPrimaryLayout.js.map +1 -0
  175. package/lib-commonjs/TableHeader.js +10 -0
  176. package/lib-commonjs/TableHeader.js.map +1 -0
  177. package/lib-commonjs/TableHeaderCell.js +10 -0
  178. package/lib-commonjs/TableHeaderCell.js.map +1 -0
  179. package/lib-commonjs/TableRow.js +10 -0
  180. package/lib-commonjs/TableRow.js.map +1 -0
  181. package/lib-commonjs/TableSelectionCell.js +10 -0
  182. package/lib-commonjs/TableSelectionCell.js.map +1 -0
  183. package/lib-commonjs/components/Table/Table.js +28 -0
  184. package/lib-commonjs/components/Table/Table.js.map +1 -0
  185. package/lib-commonjs/components/Table/Table.types.js +6 -0
  186. package/lib-commonjs/components/Table/Table.types.js.map +1 -0
  187. package/lib-commonjs/components/Table/index.js +18 -0
  188. package/lib-commonjs/components/Table/index.js.map +1 -0
  189. package/lib-commonjs/components/Table/renderTable.js +30 -0
  190. package/lib-commonjs/components/Table/renderTable.js.map +1 -0
  191. package/lib-commonjs/components/Table/useTable.js +40 -0
  192. package/lib-commonjs/components/Table/useTable.js.map +1 -0
  193. package/lib-commonjs/components/Table/useTableContextValues.js +27 -0
  194. package/lib-commonjs/components/Table/useTableContextValues.js.map +1 -0
  195. package/lib-commonjs/components/Table/useTableStyles.js +64 -0
  196. package/lib-commonjs/components/Table/useTableStyles.js.map +1 -0
  197. package/lib-commonjs/components/TableBody/TableBody.js +26 -0
  198. package/lib-commonjs/components/TableBody/TableBody.js.map +1 -0
  199. package/lib-commonjs/components/TableBody/TableBody.types.js +6 -0
  200. package/lib-commonjs/components/TableBody/TableBody.types.js.map +1 -0
  201. package/lib-commonjs/components/TableBody/index.js +18 -0
  202. package/lib-commonjs/components/TableBody/index.js.map +1 -0
  203. package/lib-commonjs/components/TableBody/renderTableBody.js +27 -0
  204. package/lib-commonjs/components/TableBody/renderTableBody.js.map +1 -0
  205. package/lib-commonjs/components/TableBody/useTableBody.js +43 -0
  206. package/lib-commonjs/components/TableBody/useTableBody.js.map +1 -0
  207. package/lib-commonjs/components/TableBody/useTableBodyStyles.js +44 -0
  208. package/lib-commonjs/components/TableBody/useTableBodyStyles.js.map +1 -0
  209. package/lib-commonjs/components/TableCell/TableCell.js +26 -0
  210. package/lib-commonjs/components/TableCell/TableCell.js.map +1 -0
  211. package/lib-commonjs/components/TableCell/TableCell.types.js +6 -0
  212. package/lib-commonjs/components/TableCell/TableCell.types.js.map +1 -0
  213. package/lib-commonjs/components/TableCell/index.js +18 -0
  214. package/lib-commonjs/components/TableCell/index.js.map +1 -0
  215. package/lib-commonjs/components/TableCell/renderTableCell.js +26 -0
  216. package/lib-commonjs/components/TableCell/renderTableCell.js.map +1 -0
  217. package/lib-commonjs/components/TableCell/useTableCell.js +43 -0
  218. package/lib-commonjs/components/TableCell/useTableCell.js.map +1 -0
  219. package/lib-commonjs/components/TableCell/useTableCellStyles.js +70 -0
  220. package/lib-commonjs/components/TableCell/useTableCellStyles.js.map +1 -0
  221. package/lib-commonjs/components/TableCellActions/TableCellActions.js +26 -0
  222. package/lib-commonjs/components/TableCellActions/TableCellActions.js.map +1 -0
  223. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js +6 -0
  224. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js.map +1 -0
  225. package/lib-commonjs/components/TableCellActions/index.js +18 -0
  226. package/lib-commonjs/components/TableCellActions/index.js.map +1 -0
  227. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js +27 -0
  228. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js.map +1 -0
  229. package/lib-commonjs/components/TableCellActions/useTableCellActions.js +38 -0
  230. package/lib-commonjs/components/TableCellActions/useTableCellActions.js.map +1 -0
  231. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js +51 -0
  232. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js.map +1 -0
  233. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js +28 -0
  234. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js.map +1 -0
  235. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js +6 -0
  236. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js.map +1 -0
  237. package/lib-commonjs/components/TableCellLayout/index.js +18 -0
  238. package/lib-commonjs/components/TableCellLayout/index.js.map +1 -0
  239. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js +34 -0
  240. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js.map +1 -0
  241. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js +57 -0
  242. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js.map +1 -0
  243. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js +23 -0
  244. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -0
  245. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js +85 -0
  246. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -0
  247. package/lib-commonjs/components/TableHeader/TableHeader.js +26 -0
  248. package/lib-commonjs/components/TableHeader/TableHeader.js.map +1 -0
  249. package/lib-commonjs/components/TableHeader/TableHeader.types.js +6 -0
  250. package/lib-commonjs/components/TableHeader/TableHeader.types.js.map +1 -0
  251. package/lib-commonjs/components/TableHeader/index.js +18 -0
  252. package/lib-commonjs/components/TableHeader/index.js.map +1 -0
  253. package/lib-commonjs/components/TableHeader/renderTableHeader.js +26 -0
  254. package/lib-commonjs/components/TableHeader/renderTableHeader.js.map +1 -0
  255. package/lib-commonjs/components/TableHeader/useTableHeader.js +51 -0
  256. package/lib-commonjs/components/TableHeader/useTableHeader.js.map +1 -0
  257. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js +51 -0
  258. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js.map +1 -0
  259. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js +26 -0
  260. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js.map +1 -0
  261. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js +6 -0
  262. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -0
  263. package/lib-commonjs/components/TableHeaderCell/index.js +18 -0
  264. package/lib-commonjs/components/TableHeaderCell/index.js.map +1 -0
  265. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js +28 -0
  266. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -0
  267. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js +76 -0
  268. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js.map +1 -0
  269. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js +117 -0
  270. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -0
  271. package/lib-commonjs/components/TableRow/TableRow.js +26 -0
  272. package/lib-commonjs/components/TableRow/TableRow.js.map +1 -0
  273. package/lib-commonjs/components/TableRow/TableRow.types.js +6 -0
  274. package/lib-commonjs/components/TableRow/TableRow.types.js.map +1 -0
  275. package/lib-commonjs/components/TableRow/index.js +18 -0
  276. package/lib-commonjs/components/TableRow/index.js.map +1 -0
  277. package/lib-commonjs/components/TableRow/renderTableRow.js +27 -0
  278. package/lib-commonjs/components/TableRow/renderTableRow.js.map +1 -0
  279. package/lib-commonjs/components/TableRow/useTableRow.js +45 -0
  280. package/lib-commonjs/components/TableRow/useTableRow.js.map +1 -0
  281. package/lib-commonjs/components/TableRow/useTableRowStyles.js +100 -0
  282. package/lib-commonjs/components/TableRow/useTableRowStyles.js.map +1 -0
  283. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js +26 -0
  284. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js.map +1 -0
  285. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js +6 -0
  286. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -0
  287. package/lib-commonjs/components/TableSelectionCell/index.js +18 -0
  288. package/lib-commonjs/components/TableSelectionCell/index.js.map +1 -0
  289. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js +28 -0
  290. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -0
  291. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js +62 -0
  292. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js.map +1 -0
  293. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js +91 -0
  294. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -0
  295. package/lib-commonjs/contexts/tableContext.js +25 -0
  296. package/lib-commonjs/contexts/tableContext.js.map +1 -0
  297. package/lib-commonjs/hooks/index.js +16 -0
  298. package/lib-commonjs/hooks/index.js.map +1 -0
  299. package/lib-commonjs/hooks/selectionManager.js +98 -0
  300. package/lib-commonjs/hooks/selectionManager.js.map +1 -0
  301. package/lib-commonjs/hooks/types.js +6 -0
  302. package/lib-commonjs/hooks/types.js.map +1 -0
  303. package/lib-commonjs/hooks/useSelection.js +89 -0
  304. package/lib-commonjs/hooks/useSelection.js.map +1 -0
  305. package/lib-commonjs/hooks/useSort.js +107 -0
  306. package/lib-commonjs/hooks/useSort.js.map +1 -0
  307. package/lib-commonjs/hooks/useTable.js +42 -0
  308. package/lib-commonjs/hooks/useTable.js.map +1 -0
  309. package/lib-commonjs/index.js +377 -0
  310. package/lib-commonjs/index.js.map +1 -0
  311. package/lib-commonjs/navigationModes/cell.js +259 -0
  312. package/lib-commonjs/navigationModes/cell.js.map +1 -0
  313. package/lib-commonjs/navigationModes/composite.js +217 -0
  314. package/lib-commonjs/navigationModes/composite.js.map +1 -0
  315. package/lib-commonjs/navigationModes/index.js +16 -0
  316. package/lib-commonjs/navigationModes/index.js.map +1 -0
  317. package/lib-commonjs/navigationModes/useNavigationMode.js +55 -0
  318. package/lib-commonjs/navigationModes/useNavigationMode.js.map +1 -0
  319. package/package.json +50 -0
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TableHeaderCell = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const useTableHeaderCell_1 = /*#__PURE__*/require("./useTableHeaderCell");
11
+
12
+ const renderTableHeaderCell_1 = /*#__PURE__*/require("./renderTableHeaderCell");
13
+
14
+ const useTableHeaderCellStyles_1 = /*#__PURE__*/require("./useTableHeaderCellStyles");
15
+ /**
16
+ * TableHeaderCell component - TODO: add more docs
17
+ */
18
+
19
+
20
+ exports.TableHeaderCell = /*#__PURE__*/React.forwardRef((props, ref) => {
21
+ const state = useTableHeaderCell_1.useTableHeaderCell_unstable(props, ref);
22
+ useTableHeaderCellStyles_1.useTableHeaderCellStyles_unstable(state);
23
+ return renderTableHeaderCell_1.renderTableHeaderCell_unstable(state);
24
+ });
25
+ exports.TableHeaderCell.displayName = 'TableHeaderCell';
26
+ //# sourceMappingURL=TableHeaderCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableHeaderCell/TableHeaderCell.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,oBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;;AACA,MAAA,uBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,0BAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,eAAA,gBAA6D,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACxG,MAAM,KAAK,GAAG,oBAAA,CAAA,2BAAA,CAA4B,KAA5B,EAAmC,GAAnC,CAAd;EAEA,0BAAA,CAAA,iCAAA,CAAkC,KAAlC;EACA,OAAO,uBAAA,CAAA,8BAAA,CAA+B,KAA/B,CAAP;AACD,CALyE,CAA7D;AAOb,OAAA,CAAA,eAAA,CAAgB,WAAhB,GAA8B,iBAA9B","sourcesContent":["import * as React from 'react';\nimport { useTableHeaderCell_unstable } from './useTableHeaderCell';\nimport { renderTableHeaderCell_unstable } from './renderTableHeaderCell';\nimport { useTableHeaderCellStyles_unstable } from './useTableHeaderCellStyles';\nimport type { TableHeaderCellProps } from './TableHeaderCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * TableHeaderCell component - TODO: add more docs\n */\nexport const TableHeaderCell: ForwardRefComponent<TableHeaderCellProps> = React.forwardRef((props, ref) => {\n const state = useTableHeaderCell_unstable(props, ref);\n\n useTableHeaderCellStyles_unstable(state);\n return renderTableHeaderCell_unstable(state);\n});\n\nTableHeaderCell.displayName = 'TableHeaderCell';\n"],"sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=TableHeaderCell.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
9
+ tslib_1.__exportStar(require("./TableHeaderCell"), exports);
10
+
11
+ tslib_1.__exportStar(require("./TableHeaderCell.types"), exports);
12
+
13
+ tslib_1.__exportStar(require("./renderTableHeaderCell"), exports);
14
+
15
+ tslib_1.__exportStar(require("./useTableHeaderCell"), exports);
16
+
17
+ tslib_1.__exportStar(require("./useTableHeaderCellStyles"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableHeaderCell/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TableHeaderCell';\nexport * from './TableHeaderCell.types';\nexport * from './renderTableHeaderCell';\nexport * from './useTableHeaderCell';\nexport * from './useTableHeaderCellStyles';\n"],"sourceRoot":""}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderTableHeaderCell_unstable = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
+ /**
12
+ * Render the final JSX of TableHeaderCell
13
+ */
14
+
15
+
16
+ const renderTableHeaderCell_unstable = state => {
17
+ const {
18
+ slots,
19
+ slotProps
20
+ } = react_utilities_1.getSlots(state);
21
+ return React.createElement(slots.root, { ...slotProps.root
22
+ }, React.createElement(slots.button, { ...slotProps.button
23
+ }, slotProps.root.children, slots.sortIcon && React.createElement(slots.sortIcon, { ...slotProps.sortIcon
24
+ })));
25
+ };
26
+
27
+ exports.renderTableHeaderCell_unstable = renderTableHeaderCell_unstable;
28
+ //# sourceMappingURL=renderTableHeaderCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableHeaderCell/renderTableHeaderCell.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,8BAA8B,GAAI,KAAD,IAAgC;EAC5E,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,iBAAA,CAAA,QAAA,CAA+B,KAA/B,CAA7B;EAEA,OACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;EAAf,CAAb,EACG,SAAS,CAAC,IAAV,CAAe,QADlB,EAEG,KAAK,CAAC,QAAN,IAAkB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAP,EAAe,EAAA,GAAK,SAAS,CAAC;EAAf,CAAf,CAFrB,CADF,CADF;AAQD,CAXM;;AAAM,OAAA,CAAA,8BAAA,GAA8B,8BAA9B","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableHeaderCellState, TableHeaderCellSlots } from './TableHeaderCell.types';\n\n/**\n * Render the final JSX of TableHeaderCell\n */\nexport const renderTableHeaderCell_unstable = (state: TableHeaderCellState) => {\n const { slots, slotProps } = getSlots<TableHeaderCellSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n <slots.button {...slotProps.button}>\n {slotProps.root.children}\n {slots.sortIcon && <slots.sortIcon {...slotProps.sortIcon} />}\n </slots.button>\n </slots.root>\n );\n};\n"],"sourceRoot":""}
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTableHeaderCell_unstable = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
+
12
+ const react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
13
+
14
+ const tableContext_1 = /*#__PURE__*/require("../../contexts/tableContext");
15
+
16
+ const react_aria_1 = /*#__PURE__*/require("@fluentui/react-aria");
17
+
18
+ const sortIcons = {
19
+ ascending: /*#__PURE__*/React.createElement(react_icons_1.ArrowUpRegular, null),
20
+ descending: /*#__PURE__*/React.createElement(react_icons_1.ArrowDownRegular, null)
21
+ };
22
+ /**
23
+ * Create the state required to render TableHeaderCell.
24
+ *
25
+ * The returned state can be modified with hooks such as useTableHeaderCellStyles_unstable,
26
+ * before being passed to renderTableHeaderCell_unstable.
27
+ *
28
+ * @param props - props from this instance of TableHeaderCell
29
+ * @param ref - reference to root HTMLElement of TableHeaderCell
30
+ */
31
+
32
+ const useTableHeaderCell_unstable = (props, ref) => {
33
+ var _a;
34
+
35
+ const {
36
+ noNativeElements,
37
+ sortable
38
+ } = tableContext_1.useTableContext();
39
+ const rootComponent = ((_a = props.as) !== null && _a !== void 0 ? _a : noNativeElements) ? 'div' : 'th';
40
+ return {
41
+ components: {
42
+ root: rootComponent,
43
+ button: 'button',
44
+ sortIcon: 'span'
45
+ },
46
+ root: react_utilities_1.getNativeElementProps(rootComponent, {
47
+ ref,
48
+ role: rootComponent === 'div' ? 'columnheader' : undefined,
49
+ 'aria-sort': props.sortDirection,
50
+ ...props
51
+ }),
52
+ sortIcon: react_utilities_1.resolveShorthand(props.sortIcon, {
53
+ required: !!props.sortDirection,
54
+ defaultProps: {
55
+ children: props.sortDirection ? sortIcons[props.sortDirection] : undefined
56
+ }
57
+ }),
58
+ button: react_aria_1.useARIAButtonShorthand(props.button, {
59
+ required: true,
60
+ defaultProps: {
61
+ role: 'presentation',
62
+ tabIndex: -1,
63
+ type: 'button',
64
+ ...(sortable && {
65
+ role: undefined,
66
+ tabIndex: undefined
67
+ })
68
+ }
69
+ }),
70
+ sortable,
71
+ noNativeElements
72
+ };
73
+ };
74
+
75
+ exports.useTableHeaderCell_unstable = useTableHeaderCell_unstable;
76
+ //# sourceMappingURL=useTableHeaderCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableHeaderCell/useTableHeaderCell.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAEA,MAAA,cAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;;AAEA,MAAM,SAAS,GAAG;EAChB,SAAS,eAAE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,cAAD,EAAe,IAAf,CADK;EAEhB,UAAU,eAAE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,gBAAD,EAAiB,IAAjB;AAFI,CAAlB;AAKA;;;;;;;;AAQG;;AACI,MAAM,2BAA2B,GAAG,CACzC,KADyC,EAEzC,GAFyC,KAGjB;;;EACxB,MAAM;IAAE,gBAAF;IAAoB;EAApB,IAAiC,cAAA,CAAA,eAAA,EAAvC;EAEA,MAAM,aAAa,GAAG,CAAA,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,gBAAZ,IAA+B,KAA/B,GAAuC,IAA7D;EACA,OAAO;IACL,UAAU,EAAE;MACV,IAAI,EAAE,aADI;MAEV,MAAM,EAAE,QAFE;MAGV,QAAQ,EAAE;IAHA,CADP;IAML,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,aAAtB,EAAqC;MACzC,GADyC;MAEzC,IAAI,EAAE,aAAa,KAAK,KAAlB,GAA0B,cAA1B,GAA2C,SAFR;MAGzC,aAAa,KAAK,CAAC,aAHsB;MAIzC,GAAG;IAJsC,CAArC,CAND;IAYL,QAAQ,EAAE,iBAAA,CAAA,gBAAA,CAAiB,KAAK,CAAC,QAAvB,EAAiC;MACzC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,aADuB;MAEzC,YAAY,EAAE;QAAE,QAAQ,EAAE,KAAK,CAAC,aAAN,GAAsB,SAAS,CAAC,KAAK,CAAC,aAAP,CAA/B,GAAuD;MAAnE;IAF2B,CAAjC,CAZL;IAgBL,MAAM,EAAE,YAAA,CAAA,sBAAA,CAAuB,KAAK,CAAC,MAA7B,EAAqC;MAC3C,QAAQ,EAAE,IADiC;MAE3C,YAAY,EAAE;QACZ,IAAI,EAAE,cADM;QAEZ,QAAQ,EAAE,CAAC,CAFC;QAGZ,IAAI,EAAE,QAHM;QAIZ,IAAI,QAAQ,IAAI;UACd,IAAI,EAAE,SADQ;UAEd,QAAQ,EAAE;QAFI,CAAhB;MAJY;IAF6B,CAArC,CAhBH;IA4BL,QA5BK;IA6BL;EA7BK,CAAP;AA+BD,CAtCM;;AAAM,OAAA,CAAA,2BAAA,GAA2B,2BAA3B","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';\nimport { ArrowUpRegular, ArrowDownRegular } from '@fluentui/react-icons';\nimport type { TableHeaderCellProps, TableHeaderCellState } from './TableHeaderCell.types';\nimport { useTableContext } from '../../contexts/tableContext';\nimport { useARIAButtonShorthand } from '@fluentui/react-aria';\n\nconst sortIcons = {\n ascending: <ArrowUpRegular />,\n descending: <ArrowDownRegular />,\n};\n\n/**\n * Create the state required to render TableHeaderCell.\n *\n * The returned state can be modified with hooks such as useTableHeaderCellStyles_unstable,\n * before being passed to renderTableHeaderCell_unstable.\n *\n * @param props - props from this instance of TableHeaderCell\n * @param ref - reference to root HTMLElement of TableHeaderCell\n */\nexport const useTableHeaderCell_unstable = (\n props: TableHeaderCellProps,\n ref: React.Ref<HTMLElement>,\n): TableHeaderCellState => {\n const { noNativeElements, sortable } = useTableContext();\n\n const rootComponent = props.as ?? noNativeElements ? 'div' : 'th';\n return {\n components: {\n root: rootComponent,\n button: 'button',\n sortIcon: 'span',\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'columnheader' : undefined,\n 'aria-sort': props.sortDirection,\n ...props,\n }),\n sortIcon: resolveShorthand(props.sortIcon, {\n required: !!props.sortDirection,\n defaultProps: { children: props.sortDirection ? sortIcons[props.sortDirection] : undefined },\n }),\n button: useARIAButtonShorthand(props.button, {\n required: true,\n defaultProps: {\n role: 'presentation',\n tabIndex: -1,\n type: 'button',\n ...(sortable && {\n role: undefined,\n tabIndex: undefined,\n }),\n },\n }),\n sortable,\n noNativeElements,\n };\n};\n"],"sourceRoot":""}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTableHeaderCellStyles_unstable = exports.tableHeaderCellClassNames = exports.tableHeaderCellClassName = void 0;
7
+
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
+
10
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
+
12
+ exports.tableHeaderCellClassName = 'fui-TableHeaderCell';
13
+ exports.tableHeaderCellClassNames = {
14
+ root: 'fui-TableHeaderCell',
15
+ button: 'fui-TableHeaderCell__button',
16
+ sortIcon: 'fui-TableHeaderCell__sortIcon'
17
+ };
18
+
19
+ const useTableLayoutStyles = /*#__PURE__*/react_1.__styles({
20
+ "root": {
21
+ "mc9l5x": "f15pt5es",
22
+ "ha4doy": "fmrv4ls"
23
+ }
24
+ }, {
25
+ "d": [".f15pt5es{display:table-cell;}", ".fmrv4ls{vertical-align:middle;}"]
26
+ });
27
+
28
+ const useFlexLayoutStyles = /*#__PURE__*/react_1.__styles({
29
+ "root": {
30
+ "mc9l5x": "f22iagw",
31
+ "Bh6795r": "fqerorx",
32
+ "Bnnss6s": "f1neuvcm",
33
+ "xawz": "fkjuxzh",
34
+ "Bf4jedk": "f10tiqix"
35
+ }
36
+ }, {
37
+ "d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1neuvcm{-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}", ".fkjuxzh{-webkit-flex-basis:0px;-ms-flex-preferred-size:0px;flex-basis:0px;}", ".f10tiqix{min-width:0px;}"]
38
+ });
39
+ /**
40
+ * Styles for the root slot
41
+ */
42
+
43
+
44
+ const useStyles = /*#__PURE__*/react_1.__styles({
45
+ "root": {
46
+ "z8tnut": "f1nbblvp",
47
+ "z189sj": ["f1vdfbxk", "f1f5gg8d"],
48
+ "Byoj8tv": "f1ov4xf1",
49
+ "uwmqm3": ["f1f5gg8d", "f1vdfbxk"]
50
+ },
51
+ "resetButton": {
52
+ "B3rzk8w": "fq6nmtn",
53
+ "B7ck84d": "f1e4lqlz",
54
+ "De3pzq": "f1u2r49w",
55
+ "sj55zd": "f1ym3bx4",
56
+ "Bahqtrf": "f1mo0ibp",
57
+ "Be2twd7": "fjoy568",
58
+ "Bg96gwp": "fytdu2e",
59
+ "B68tc82": "f1mtd64y",
60
+ "Bmxbyg5": "f1y7q3j9",
61
+ "z8tnut": "f1g0x7ka",
62
+ "z189sj": ["fhxju0i", "f1cnd47f"],
63
+ "Byoj8tv": "f1qch9an",
64
+ "uwmqm3": ["f1cnd47f", "fhxju0i"],
65
+ "icvyot": "f1ern45e",
66
+ "vrafjx": ["f1n71otn", "f1deefiw"],
67
+ "oivjwe": "f1h8hb77",
68
+ "wvpqe5": ["f1deefiw", "f1n71otn"],
69
+ "Bv0vk6g": "f37px4s",
70
+ "fsow6f": "fgusgyc"
71
+ },
72
+ "button": {
73
+ "qhf8xq": "f10pi13n",
74
+ "a9b677": "fly5x3f",
75
+ "mc9l5x": "f22iagw",
76
+ "Bh6795r": "fqerorx",
77
+ "Bqenvij": "f1l02sjl",
78
+ "Bt984gj": "f122n59",
79
+ "i8kkvl": "fsnqrgy",
80
+ "Belr9w4": "fylz90v",
81
+ "sshi5w": "f5pgtk9",
82
+ "Bnnss6s": "f1neuvcm",
83
+ "xawz": "fkjuxzh"
84
+ },
85
+ "sortable": {
86
+ "Bceei9c": "f1k6fduh"
87
+ },
88
+ "sortIcon": {
89
+ "mc9l5x": "f22iagw",
90
+ "Bt984gj": "f122n59"
91
+ }
92
+ }, {
93
+ "d": [".f1nbblvp{padding-top:0px;}", ".f1vdfbxk{padding-right:var(--spacingHorizontalS);}", ".f1f5gg8d{padding-left:var(--spacingHorizontalS);}", ".f1ov4xf1{padding-bottom:0px;}", ".fq6nmtn{resize:horizontal;}", ".f1e4lqlz{box-sizing:content-box;}", ".f1u2r49w{background-color:inherit;}", ".f1ym3bx4{color:inherit;}", ".f1mo0ibp{font-family:inherit;}", ".fjoy568{font-size:inherit;}", ".fytdu2e{line-height:normal;}", ".f1mtd64y{overflow-x:visible;}", ".f1y7q3j9{overflow-y:visible;}", ".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f37px4s{-webkit-appearance:button;}", ".fgusgyc{text-align:unset;}", ".f10pi13n{position:relative;}", ".fly5x3f{width:100%;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1l02sjl{height:100%;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fsnqrgy{-webkit-column-gap:var(--spacingHorizontalS);column-gap:var(--spacingHorizontalS);}", ".fylz90v{row-gap:var(--spacingHorizontalS);}", ".f5pgtk9{min-height:44px;}", ".f1neuvcm{-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}", ".fkjuxzh{-webkit-flex-basis:0px;-ms-flex-preferred-size:0px;flex-basis:0px;}", ".f1k6fduh{cursor:pointer;}"]
94
+ });
95
+ /**
96
+ * Apply styling to the TableHeaderCell slots based on the state
97
+ */
98
+
99
+
100
+ const useTableHeaderCellStyles_unstable = state => {
101
+ const styles = useStyles();
102
+ const layoutStyles = {
103
+ table: useTableLayoutStyles(),
104
+ flex: useFlexLayoutStyles()
105
+ };
106
+ state.root.className = react_1.mergeClasses(exports.tableHeaderCellClassNames.root, styles.root, state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root, state.root.className);
107
+ state.button.className = react_1.mergeClasses(exports.tableHeaderCellClassNames.button, styles.resetButton, styles.button, state.sortable && styles.sortable, state.button.className);
108
+
109
+ if (state.sortIcon) {
110
+ state.sortIcon.className = react_1.mergeClasses(exports.tableHeaderCellClassNames.sortIcon, styles.sortIcon, state.sortIcon.className);
111
+ }
112
+
113
+ return state;
114
+ };
115
+
116
+ exports.useTableHeaderCellStyles_unstable = useTableHeaderCellStyles_unstable;
117
+ //# sourceMappingURL=useTableHeaderCellStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableHeaderCell/useTableHeaderCellStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAIa,OAAA,CAAA,wBAAA,GAA2B,qBAA3B;AACA,OAAA,CAAA,yBAAA,GAAkE;EAC7E,IAAI,EAAE,qBADuE;EAE7E,MAAM,EAAE,6BAFqE;EAG7E,QAAQ,EAAE;AAHmE,CAAlE;;AAMb,MAAM,oBAAoB,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAA7B;;AAOA,MAAM,mBAAmB,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAA5B;AAQA;;AAEG;;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAwCA;;AAEG;;;AACI,MAAM,iCAAiC,GAAI,KAAD,IAAsD;EACrG,MAAM,MAAM,GAAG,SAAS,EAAxB;EACA,MAAM,YAAY,GAAG;IACnB,KAAK,EAAE,oBAAoB,EADR;IAEnB,IAAI,EAAE,mBAAmB;EAFN,CAArB;EAIA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CACrB,OAAA,CAAA,yBAAA,CAA0B,IADL,EAErB,MAAM,CAAC,IAFc,EAGrB,KAAK,CAAC,gBAAN,GAAyB,YAAY,CAAC,IAAb,CAAkB,IAA3C,GAAkD,YAAY,CAAC,KAAb,CAAmB,IAHhD,EAIrB,KAAK,CAAC,IAAN,CAAW,SAJU,CAAvB;EAMA,KAAK,CAAC,MAAN,CAAa,SAAb,GAAyB,OAAA,CAAA,YAAA,CACvB,OAAA,CAAA,yBAAA,CAA0B,MADH,EAEvB,MAAM,CAAC,WAFgB,EAGvB,MAAM,CAAC,MAHgB,EAIvB,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAJF,EAKvB,KAAK,CAAC,MAAN,CAAa,SALU,CAAzB;;EAQA,IAAI,KAAK,CAAC,QAAV,EAAoB;IAClB,KAAK,CAAC,QAAN,CAAe,SAAf,GAA2B,OAAA,CAAA,YAAA,CACzB,OAAA,CAAA,yBAAA,CAA0B,QADD,EAEzB,MAAM,CAAC,QAFkB,EAGzB,KAAK,CAAC,QAAN,CAAe,SAHU,CAA3B;EAKD;;EAED,OAAO,KAAP;AACD,CA7BM;;AAAM,OAAA,CAAA,iCAAA,GAAiC,iCAAjC","sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TableHeaderCellSlots, TableHeaderCellState } from './TableHeaderCell.types';\n\nexport const tableHeaderCellClassName = 'fui-TableHeaderCell';\nexport const tableHeaderCellClassNames: SlotClassNames<TableHeaderCellSlots> = {\n root: 'fui-TableHeaderCell',\n button: 'fui-TableHeaderCell__button',\n sortIcon: 'fui-TableHeaderCell__sortIcon',\n};\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-cell',\n verticalAlign: 'middle',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n ...shorthands.flex(1, 1, '0px'),\n minWidth: '0px',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n ...shorthands.padding('0px', tokens.spacingHorizontalS),\n },\n\n resetButton: {\n resize: 'horizontal',\n boxSizing: 'content-box',\n backgroundColor: 'inherit',\n color: 'inherit',\n fontFamily: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'normal',\n ...shorthands.overflow('visible'),\n ...shorthands.padding(0),\n ...shorthands.borderStyle('none'),\n WebkitAppearance: 'button',\n textAlign: 'unset',\n },\n button: {\n position: 'relative',\n width: '100%',\n display: 'flex',\n flexGrow: 1,\n height: '100%',\n alignItems: 'center',\n ...shorthands.gap(tokens.spacingHorizontalS),\n minHeight: '44px',\n ...shorthands.flex(1, 1, '0px'),\n },\n sortable: {\n cursor: 'pointer',\n },\n\n sortIcon: {\n display: 'flex',\n alignItems: 'center',\n },\n});\n\n/**\n * Apply styling to the TableHeaderCell slots based on the state\n */\nexport const useTableHeaderCellStyles_unstable = (state: TableHeaderCellState): TableHeaderCellState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n state.root.className = mergeClasses(\n tableHeaderCellClassNames.root,\n styles.root,\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.root.className,\n );\n state.button.className = mergeClasses(\n tableHeaderCellClassNames.button,\n styles.resetButton,\n styles.button,\n state.sortable && styles.sortable,\n state.button.className,\n );\n\n if (state.sortIcon) {\n state.sortIcon.className = mergeClasses(\n tableHeaderCellClassNames.sortIcon,\n styles.sortIcon,\n state.sortIcon.className,\n );\n }\n\n return state;\n};\n"],"sourceRoot":""}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TableRow = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const useTableRow_1 = /*#__PURE__*/require("./useTableRow");
11
+
12
+ const renderTableRow_1 = /*#__PURE__*/require("./renderTableRow");
13
+
14
+ const useTableRowStyles_1 = /*#__PURE__*/require("./useTableRowStyles");
15
+ /**
16
+ * TableRow component - TODO: add more docs
17
+ */
18
+
19
+
20
+ exports.TableRow = /*#__PURE__*/React.forwardRef((props, ref) => {
21
+ const state = useTableRow_1.useTableRow_unstable(props, ref);
22
+ useTableRowStyles_1.useTableRowStyles_unstable(state);
23
+ return renderTableRow_1.renderTableRow_unstable(state);
24
+ });
25
+ exports.TableRow.displayName = 'TableRow';
26
+ //# sourceMappingURL=TableRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableRow/TableRow.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAA+C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAC1F,MAAM,KAAK,GAAG,aAAA,CAAA,oBAAA,CAAqB,KAArB,EAA4B,GAA5B,CAAd;EAEA,mBAAA,CAAA,0BAAA,CAA2B,KAA3B;EACA,OAAO,gBAAA,CAAA,uBAAA,CAAwB,KAAxB,CAAP;AACD,CAL2D,CAA/C;AAOb,OAAA,CAAA,QAAA,CAAS,WAAT,GAAuB,UAAvB","sourcesContent":["import * as React from 'react';\nimport { useTableRow_unstable } from './useTableRow';\nimport { renderTableRow_unstable } from './renderTableRow';\nimport { useTableRowStyles_unstable } from './useTableRowStyles';\nimport type { TableRowProps } from './TableRow.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * TableRow component - TODO: add more docs\n */\nexport const TableRow: ForwardRefComponent<TableRowProps> = React.forwardRef((props, ref) => {\n const state = useTableRow_unstable(props, ref);\n\n useTableRowStyles_unstable(state);\n return renderTableRow_unstable(state);\n});\n\nTableRow.displayName = 'TableRow';\n"],"sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=TableRow.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
9
+ tslib_1.__exportStar(require("./TableRow"), exports);
10
+
11
+ tslib_1.__exportStar(require("./TableRow.types"), exports);
12
+
13
+ tslib_1.__exportStar(require("./renderTableRow"), exports);
14
+
15
+ tslib_1.__exportStar(require("./useTableRow"), exports);
16
+
17
+ tslib_1.__exportStar(require("./useTableRowStyles"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableRow/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TableRow';\nexport * from './TableRow.types';\nexport * from './renderTableRow';\nexport * from './useTableRow';\nexport * from './useTableRowStyles';\n"],"sourceRoot":""}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderTableRow_unstable = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
+ /**
12
+ * Render the final JSX of TableRow
13
+ */
14
+
15
+
16
+ const renderTableRow_unstable = state => {
17
+ const {
18
+ slots,
19
+ slotProps
20
+ } = react_utilities_1.getSlots(state); // TODO Add additional slots in the appropriate place
21
+
22
+ return React.createElement(slots.root, { ...slotProps.root
23
+ });
24
+ };
25
+
26
+ exports.renderTableRow_unstable = renderTableRow_unstable;
27
+ //# sourceMappingURL=renderTableRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableRow/renderTableRow.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,uBAAuB,GAAI,KAAD,IAAyB;EAC9D,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B,CAD8D,CAG9D;;EACA,OAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CAAP;AACD,CALM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourcesContent":["import * as React from 'react';\nimport { getSlots } 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) => {\n const { slots, slotProps } = getSlots<TableRowSlots>(state);\n\n // TODO Add additional slots in the appropriate place\n return <slots.root {...slotProps.root} />;\n};\n"],"sourceRoot":""}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTableRow_unstable = void 0;
7
+
8
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
+
10
+ const tableContext_1 = /*#__PURE__*/require("../../contexts/tableContext");
11
+ /**
12
+ * Create the state required to render TableRow.
13
+ *
14
+ * The returned state can be modified with hooks such as useTableRowStyles_unstable,
15
+ * before being passed to renderTableRow_unstable.
16
+ *
17
+ * @param props - props from this instance of TableRow
18
+ * @param ref - reference to root HTMLElement of TableRow
19
+ */
20
+
21
+
22
+ const useTableRow_unstable = (props, ref) => {
23
+ var _a;
24
+
25
+ const {
26
+ noNativeElements,
27
+ size
28
+ } = tableContext_1.useTableContext();
29
+ const rootComponent = ((_a = props.as) !== null && _a !== void 0 ? _a : noNativeElements) ? 'div' : 'tr';
30
+ return {
31
+ components: {
32
+ root: rootComponent
33
+ },
34
+ root: react_utilities_1.getNativeElementProps(rootComponent, {
35
+ ref,
36
+ role: rootComponent === 'div' ? 'row' : undefined,
37
+ ...props
38
+ }),
39
+ size,
40
+ noNativeElements
41
+ };
42
+ };
43
+
44
+ exports.useTableRow_unstable = useTableRow_unstable;
45
+ //# sourceMappingURL=useTableRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableRow/useTableRow.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,cAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;AAEA;;;;;;;;AAQG;;;AACI,MAAM,oBAAoB,GAAG,CAAC,KAAD,EAAuB,GAAvB,KAAqE;;;EACvG,MAAM;IAAE,gBAAF;IAAoB;EAApB,IAA6B,cAAA,CAAA,eAAA,EAAnC;EACA,MAAM,aAAa,GAAG,CAAA,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,gBAAZ,IAA+B,KAA/B,GAAuC,IAA7D;EAEA,OAAO;IACL,UAAU,EAAE;MACV,IAAI,EAAE;IADI,CADP;IAIL,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,aAAtB,EAAqC;MACzC,GADyC;MAEzC,IAAI,EAAE,aAAa,KAAK,KAAlB,GAA0B,KAA1B,GAAkC,SAFC;MAGzC,GAAG;IAHsC,CAArC,CAJD;IASL,IATK;IAUL;EAVK,CAAP;AAYD,CAhBM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableRowProps, TableRowState } from './TableRow.types';\nimport { useTableContext } from '../../contexts/tableContext';\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\n return {\n components: {\n root: rootComponent,\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'row' : undefined,\n ...props,\n }),\n size,\n noNativeElements,\n };\n};\n"],"sourceRoot":""}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTableRowStyles_unstable = exports.tableRowClassNames = exports.tableRowClassName = void 0;
7
+
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
+
10
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
+
12
+ const useTableCellActionsStyles_1 = /*#__PURE__*/require("../TableCellActions/useTableCellActionsStyles");
13
+
14
+ exports.tableRowClassName = 'fui-TableRow';
15
+ exports.tableRowClassNames = {
16
+ root: exports.tableRowClassName
17
+ };
18
+
19
+ const useTableLayoutStyles = /*#__PURE__*/react_1.__styles({
20
+ "root": {
21
+ "mc9l5x": "f1u0rzck"
22
+ },
23
+ "medium": {
24
+ "Bqenvij": "f1ft4266"
25
+ },
26
+ "small": {
27
+ "Bqenvij": "fbsu25e"
28
+ },
29
+ "smaller": {
30
+ "Bqenvij": "frvgh55"
31
+ }
32
+ }, {
33
+ "d": [".f1u0rzck{display:table-row;}", ".f1ft4266{height:44px;}", ".fbsu25e{height:34px;}", ".frvgh55{height:24px;}"]
34
+ });
35
+
36
+ const useFlexLayoutStyles = /*#__PURE__*/react_1.__styles({
37
+ "root": {
38
+ "mc9l5x": "f22iagw",
39
+ "Bt984gj": "f122n59"
40
+ },
41
+ "medium": {
42
+ "sshi5w": "f5pgtk9"
43
+ },
44
+ "small": {
45
+ "sshi5w": "fcep9tg"
46
+ },
47
+ "smaller": {
48
+ "sshi5w": "f1pha7fy"
49
+ }
50
+ }, {
51
+ "d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f5pgtk9{min-height:44px;}", ".fcep9tg{min-height:34px;}", ".f1pha7fy{min-height:24px;}"]
52
+ });
53
+ /**
54
+ * Styles for the root slot
55
+ */
56
+
57
+
58
+ const useStyles = /*#__PURE__*/react_1.__styles({
59
+ "root": {
60
+ "sj55zd": "f19n0e5",
61
+ "Jwef8y": "f1knas48",
62
+ "Bi91k9c": "feu1g3u",
63
+ "Bi7d7a3": "f1boln4s",
64
+ "Bpt6rm4": "f1uorfem",
65
+ "B7ck84d": "f1ewtqcl"
66
+ },
67
+ "medium": {
68
+ "Bn0qgzm": "f1vxd6vx",
69
+ "oivjwe": "fg706s2",
70
+ "B9xav0g": "frpde29"
71
+ },
72
+ "small": {
73
+ "Bn0qgzm": "f1vxd6vx",
74
+ "oivjwe": "fg706s2",
75
+ "B9xav0g": "frpde29"
76
+ },
77
+ "smaller": {
78
+ "Be2twd7": "fy9rknc"
79
+ }
80
+ }, {
81
+ "d": [".f19n0e5{color:var(--colorNeutralForeground1);}", ".f1ewtqcl{box-sizing:border-box;}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fg706s2{border-bottom-style:solid;}", ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}", ".fy9rknc{font-size:var(--fontSizeBase200);}"],
82
+ "h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}", ".f1boln4s:hover .fui-TableCellActions{background-color:var(--colorNeutralBackground1Hover);}", ".f1uorfem:hover .fui-TableCellActions{opacity:1;}"]
83
+ });
84
+ /**
85
+ * Apply styling to the TableRow slots based on the state
86
+ */
87
+
88
+
89
+ const useTableRowStyles_unstable = state => {
90
+ const styles = useStyles();
91
+ const layoutStyles = {
92
+ table: useTableLayoutStyles(),
93
+ flex: useFlexLayoutStyles()
94
+ };
95
+ state.root.className = react_1.mergeClasses(exports.tableRowClassNames.root, styles.root, styles[state.size], state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root, state.noNativeElements ? layoutStyles.flex[state.size] : layoutStyles.table[state.size], state.root.className);
96
+ return state;
97
+ };
98
+
99
+ exports.useTableRowStyles_unstable = useTableRowStyles_unstable;
100
+ //# sourceMappingURL=useTableRowStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableRow/useTableRowStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAGA,MAAA,2BAAA,gBAAA,OAAA,CAAA,+CAAA,CAAA;;AAEa,OAAA,CAAA,iBAAA,GAAoB,cAApB;AACA,OAAA,CAAA,kBAAA,GAAoD;EAC/D,IAAI,EAAE,OAAA,CAAA;AADyD,CAApD;;AAIb,MAAM,oBAAoB,gBAAG,OAAA,SAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAA7B;;AAkBA,MAAM,mBAAmB,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAA5B;AAmBA;;AAEG;;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;EAAA;AAAA,EAAlB;AA2BA;;AAEG;;;AACI,MAAM,0BAA0B,GAAI,KAAD,IAAwC;EAChF,MAAM,MAAM,GAAG,SAAS,EAAxB;EACA,MAAM,YAAY,GAAG;IACnB,KAAK,EAAE,oBAAoB,EADR;IAEnB,IAAI,EAAE,mBAAmB;EAFN,CAArB;EAIA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CACrB,OAAA,CAAA,kBAAA,CAAmB,IADE,EAErB,MAAM,CAAC,IAFc,EAGrB,MAAM,CAAC,KAAK,CAAC,IAAP,CAHe,EAIrB,KAAK,CAAC,gBAAN,GAAyB,YAAY,CAAC,IAAb,CAAkB,IAA3C,GAAkD,YAAY,CAAC,KAAb,CAAmB,IAJhD,EAKrB,KAAK,CAAC,gBAAN,GAAyB,YAAY,CAAC,IAAb,CAAkB,KAAK,CAAC,IAAxB,CAAzB,GAAyD,YAAY,CAAC,KAAb,CAAmB,KAAK,CAAC,IAAzB,CALpC,EAMrB,KAAK,CAAC,IAAN,CAAW,SANU,CAAvB;EASA,OAAO,KAAP;AACD,CAhBM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourcesContent":["import { 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';\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 medium: {\n height: '44px',\n },\n\n small: {\n height: '34px',\n },\n\n smaller: {\n height: '24px',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n },\n\n medium: {\n minHeight: '44px',\n },\n\n small: {\n minHeight: '34px',\n },\n\n smaller: {\n minHeight: '24px',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n color: tokens.colorNeutralForeground1,\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n color: tokens.colorNeutralForeground1Hover,\n [`& .${tableCellActionsClassNames.root}`]: {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n opacity: 1,\n },\n },\n boxSizing: 'border-box',\n },\n\n medium: {\n ...shorthands.borderBottom(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke2),\n },\n\n small: {\n ...shorthands.borderBottom(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke2),\n },\n\n smaller: {\n fontSize: tokens.fontSizeBase200,\n },\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 state.root.className = mergeClasses(\n tableRowClassNames.root,\n styles.root,\n styles[state.size],\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.noNativeElements ? layoutStyles.flex[state.size] : layoutStyles.table[state.size],\n state.root.className,\n );\n\n return state;\n};\n"],"sourceRoot":""}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TableSelectionCell = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const useTableSelectionCell_1 = /*#__PURE__*/require("./useTableSelectionCell");
11
+
12
+ const renderTableSelectionCell_1 = /*#__PURE__*/require("./renderTableSelectionCell");
13
+
14
+ const useTableSelectionCellStyles_1 = /*#__PURE__*/require("./useTableSelectionCellStyles");
15
+ /**
16
+ * TableSelectionCell component - TODO: add more docs
17
+ */
18
+
19
+
20
+ exports.TableSelectionCell = /*#__PURE__*/React.forwardRef((props, ref) => {
21
+ const state = useTableSelectionCell_1.useTableSelectionCell_unstable(props, ref);
22
+ useTableSelectionCellStyles_1.useTableSelectionCellStyles_unstable(state);
23
+ return renderTableSelectionCell_1.renderTableSelectionCell_unstable(state);
24
+ });
25
+ exports.TableSelectionCell.displayName = 'TableSelectionCell';
26
+ //# sourceMappingURL=TableSelectionCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-table/src/components/TableSelectionCell/TableSelectionCell.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,uBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,0BAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACA,MAAA,6BAAA,gBAAA,OAAA,CAAA,+BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,kBAAA,gBAAmE,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAC9G,MAAM,KAAK,GAAG,uBAAA,CAAA,8BAAA,CAA+B,KAA/B,EAAsC,GAAtC,CAAd;EAEA,6BAAA,CAAA,oCAAA,CAAqC,KAArC;EACA,OAAO,0BAAA,CAAA,iCAAA,CAAkC,KAAlC,CAAP;AACD,CAL+E,CAAnE;AAOb,OAAA,CAAA,kBAAA,CAAmB,WAAnB,GAAiC,oBAAjC","sourcesContent":["import * as React from 'react';\nimport { useTableSelectionCell_unstable } from './useTableSelectionCell';\nimport { renderTableSelectionCell_unstable } from './renderTableSelectionCell';\nimport { useTableSelectionCellStyles_unstable } from './useTableSelectionCellStyles';\nimport type { TableSelectionCellProps } from './TableSelectionCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * TableSelectionCell component - TODO: add more docs\n */\nexport const TableSelectionCell: ForwardRefComponent<TableSelectionCellProps> = React.forwardRef((props, ref) => {\n const state = useTableSelectionCell_unstable(props, ref);\n\n useTableSelectionCellStyles_unstable(state);\n return renderTableSelectionCell_unstable(state);\n});\n\nTableSelectionCell.displayName = 'TableSelectionCell';\n"],"sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=TableSelectionCell.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}