@fluentui/react-table 9.0.0-alpha.8 → 9.0.0-alpha.9

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 (208) hide show
  1. package/CHANGELOG.json +72 -1
  2. package/CHANGELOG.md +19 -2
  3. package/dist/index.d.ts +282 -0
  4. package/lib/DataGrid.js +2 -0
  5. package/lib/DataGrid.js.map +1 -0
  6. package/lib/DataGridBody.js +2 -0
  7. package/lib/DataGridBody.js.map +1 -0
  8. package/lib/DataGridCell.js +2 -0
  9. package/lib/DataGridCell.js.map +1 -0
  10. package/lib/DataGridHeader.js +2 -0
  11. package/lib/DataGridHeader.js.map +1 -0
  12. package/lib/DataGridHeaderCell.js +2 -0
  13. package/lib/DataGridHeaderCell.js.map +1 -0
  14. package/lib/DataGridRow.js +2 -0
  15. package/lib/DataGridRow.js.map +1 -0
  16. package/lib/DataGridSelectionCell.js +2 -0
  17. package/lib/DataGridSelectionCell.js.map +1 -0
  18. package/lib/components/DataGrid/DataGrid.js +16 -0
  19. package/lib/components/DataGrid/DataGrid.js.map +1 -0
  20. package/lib/components/DataGrid/DataGrid.types.js +2 -0
  21. package/lib/components/DataGrid/DataGrid.types.js.map +1 -0
  22. package/lib/components/DataGrid/index.js +6 -0
  23. package/lib/components/DataGrid/index.js.map +1 -0
  24. package/lib/components/DataGrid/renderDataGrid.js +9 -0
  25. package/lib/components/DataGrid/renderDataGrid.js.map +1 -0
  26. package/lib/components/DataGrid/useDataGrid.js +17 -0
  27. package/lib/components/DataGrid/useDataGrid.js.map +1 -0
  28. package/lib/components/DataGrid/useDataGridContextValues.js +5 -0
  29. package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -0
  30. package/lib/components/DataGrid/useDataGridStyles.js +15 -0
  31. package/lib/components/DataGrid/useDataGridStyles.js.map +1 -0
  32. package/lib/components/DataGridBody/DataGridBody.js +15 -0
  33. package/lib/components/DataGridBody/DataGridBody.js.map +1 -0
  34. package/lib/components/DataGridBody/DataGridBody.types.js +2 -0
  35. package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -0
  36. package/lib/components/DataGridBody/index.js +6 -0
  37. package/lib/components/DataGridBody/index.js.map +1 -0
  38. package/lib/components/DataGridBody/renderDataGridBody.js +9 -0
  39. package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -0
  40. package/lib/components/DataGridBody/useDataGridBody.js +17 -0
  41. package/lib/components/DataGridBody/useDataGridBody.js.map +1 -0
  42. package/lib/components/DataGridBody/useDataGridBodyStyles.js +15 -0
  43. package/lib/components/DataGridBody/useDataGridBodyStyles.js.map +1 -0
  44. package/lib/components/DataGridCell/DataGridCell.js +15 -0
  45. package/lib/components/DataGridCell/DataGridCell.js.map +1 -0
  46. package/lib/components/DataGridCell/DataGridCell.types.js +2 -0
  47. package/lib/components/DataGridCell/DataGridCell.types.js.map +1 -0
  48. package/lib/components/DataGridCell/index.js +6 -0
  49. package/lib/components/DataGridCell/index.js.map +1 -0
  50. package/lib/components/DataGridCell/renderDataGridCell.js +9 -0
  51. package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -0
  52. package/lib/components/DataGridCell/useDataGridCell.js +17 -0
  53. package/lib/components/DataGridCell/useDataGridCell.js.map +1 -0
  54. package/lib/components/DataGridCell/useDataGridCellStyles.js +15 -0
  55. package/lib/components/DataGridCell/useDataGridCellStyles.js.map +1 -0
  56. package/lib/components/DataGridHeader/DataGridHeader.js +15 -0
  57. package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -0
  58. package/lib/components/DataGridHeader/DataGridHeader.types.js +2 -0
  59. package/lib/components/DataGridHeader/DataGridHeader.types.js.map +1 -0
  60. package/lib/components/DataGridHeader/index.js +6 -0
  61. package/lib/components/DataGridHeader/index.js.map +1 -0
  62. package/lib/components/DataGridHeader/renderDataGridHeader.js +9 -0
  63. package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -0
  64. package/lib/components/DataGridHeader/useDataGridHeader.js +17 -0
  65. package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -0
  66. package/lib/components/DataGridHeader/useDataGridHeaderStyles.js +15 -0
  67. package/lib/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -0
  68. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js +15 -0
  69. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -0
  70. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js +2 -0
  71. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -0
  72. package/lib/components/DataGridHeaderCell/index.js +6 -0
  73. package/lib/components/DataGridHeaderCell/index.js.map +1 -0
  74. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js +9 -0
  75. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -0
  76. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js +17 -0
  77. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -0
  78. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +26 -0
  79. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -0
  80. package/lib/components/DataGridRow/DataGridRow.js +15 -0
  81. package/lib/components/DataGridRow/DataGridRow.js.map +1 -0
  82. package/lib/components/DataGridRow/DataGridRow.types.js +2 -0
  83. package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -0
  84. package/lib/components/DataGridRow/index.js +6 -0
  85. package/lib/components/DataGridRow/index.js.map +1 -0
  86. package/lib/components/DataGridRow/renderDataGridRow.js +9 -0
  87. package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -0
  88. package/lib/components/DataGridRow/useDataGridRow.js +17 -0
  89. package/lib/components/DataGridRow/useDataGridRow.js.map +1 -0
  90. package/lib/components/DataGridRow/useDataGridRowStyles.js +15 -0
  91. package/lib/components/DataGridRow/useDataGridRowStyles.js.map +1 -0
  92. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js +15 -0
  93. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -0
  94. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js +2 -0
  95. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -0
  96. package/lib/components/DataGridSelectionCell/index.js +6 -0
  97. package/lib/components/DataGridSelectionCell/index.js.map +1 -0
  98. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js +9 -0
  99. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -0
  100. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js +17 -0
  101. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -0
  102. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +26 -0
  103. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -0
  104. package/lib/index.js +7 -0
  105. package/lib/index.js.map +1 -1
  106. package/lib-commonjs/DataGrid.js +10 -0
  107. package/lib-commonjs/DataGrid.js.map +1 -0
  108. package/lib-commonjs/DataGridBody.js +10 -0
  109. package/lib-commonjs/DataGridBody.js.map +1 -0
  110. package/lib-commonjs/DataGridCell.js +10 -0
  111. package/lib-commonjs/DataGridCell.js.map +1 -0
  112. package/lib-commonjs/DataGridHeader.js +10 -0
  113. package/lib-commonjs/DataGridHeader.js.map +1 -0
  114. package/lib-commonjs/DataGridHeaderCell.js +10 -0
  115. package/lib-commonjs/DataGridHeaderCell.js.map +1 -0
  116. package/lib-commonjs/DataGridRow.js +10 -0
  117. package/lib-commonjs/DataGridRow.js.map +1 -0
  118. package/lib-commonjs/DataGridSelectionCell.js +10 -0
  119. package/lib-commonjs/DataGridSelectionCell.js.map +1 -0
  120. package/lib-commonjs/components/DataGrid/DataGrid.js +28 -0
  121. package/lib-commonjs/components/DataGrid/DataGrid.js.map +1 -0
  122. package/lib-commonjs/components/DataGrid/DataGrid.types.js +6 -0
  123. package/lib-commonjs/components/DataGrid/DataGrid.types.js.map +1 -0
  124. package/lib-commonjs/components/DataGrid/index.js +18 -0
  125. package/lib-commonjs/components/DataGrid/index.js.map +1 -0
  126. package/lib-commonjs/components/DataGrid/renderDataGrid.js +19 -0
  127. package/lib-commonjs/components/DataGrid/renderDataGrid.js.map +1 -0
  128. package/lib-commonjs/components/DataGrid/useDataGrid.js +27 -0
  129. package/lib-commonjs/components/DataGrid/useDataGrid.js.map +1 -0
  130. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js +15 -0
  131. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js.map +1 -0
  132. package/lib-commonjs/components/DataGrid/useDataGridStyles.js +26 -0
  133. package/lib-commonjs/components/DataGrid/useDataGridStyles.js.map +1 -0
  134. package/lib-commonjs/components/DataGridBody/DataGridBody.js +26 -0
  135. package/lib-commonjs/components/DataGridBody/DataGridBody.js.map +1 -0
  136. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js +6 -0
  137. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js.map +1 -0
  138. package/lib-commonjs/components/DataGridBody/index.js +18 -0
  139. package/lib-commonjs/components/DataGridBody/index.js.map +1 -0
  140. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js +19 -0
  141. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js.map +1 -0
  142. package/lib-commonjs/components/DataGridBody/useDataGridBody.js +27 -0
  143. package/lib-commonjs/components/DataGridBody/useDataGridBody.js.map +1 -0
  144. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js +26 -0
  145. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js.map +1 -0
  146. package/lib-commonjs/components/DataGridCell/DataGridCell.js +26 -0
  147. package/lib-commonjs/components/DataGridCell/DataGridCell.js.map +1 -0
  148. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js +6 -0
  149. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js.map +1 -0
  150. package/lib-commonjs/components/DataGridCell/index.js +18 -0
  151. package/lib-commonjs/components/DataGridCell/index.js.map +1 -0
  152. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js +19 -0
  153. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js.map +1 -0
  154. package/lib-commonjs/components/DataGridCell/useDataGridCell.js +27 -0
  155. package/lib-commonjs/components/DataGridCell/useDataGridCell.js.map +1 -0
  156. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js +26 -0
  157. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js.map +1 -0
  158. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js +26 -0
  159. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js.map +1 -0
  160. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js +6 -0
  161. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js.map +1 -0
  162. package/lib-commonjs/components/DataGridHeader/index.js +18 -0
  163. package/lib-commonjs/components/DataGridHeader/index.js.map +1 -0
  164. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js +19 -0
  165. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js.map +1 -0
  166. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js +27 -0
  167. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js.map +1 -0
  168. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js +26 -0
  169. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -0
  170. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js +26 -0
  171. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -0
  172. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js +6 -0
  173. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -0
  174. package/lib-commonjs/components/DataGridHeaderCell/index.js +18 -0
  175. package/lib-commonjs/components/DataGridHeaderCell/index.js.map +1 -0
  176. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js +19 -0
  177. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -0
  178. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js +27 -0
  179. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -0
  180. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +37 -0
  181. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -0
  182. package/lib-commonjs/components/DataGridRow/DataGridRow.js +26 -0
  183. package/lib-commonjs/components/DataGridRow/DataGridRow.js.map +1 -0
  184. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js +6 -0
  185. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js.map +1 -0
  186. package/lib-commonjs/components/DataGridRow/index.js +18 -0
  187. package/lib-commonjs/components/DataGridRow/index.js.map +1 -0
  188. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js +19 -0
  189. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js.map +1 -0
  190. package/lib-commonjs/components/DataGridRow/useDataGridRow.js +27 -0
  191. package/lib-commonjs/components/DataGridRow/useDataGridRow.js.map +1 -0
  192. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js +26 -0
  193. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js.map +1 -0
  194. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js +26 -0
  195. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -0
  196. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js +6 -0
  197. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -0
  198. package/lib-commonjs/components/DataGridSelectionCell/index.js +18 -0
  199. package/lib-commonjs/components/DataGridSelectionCell/index.js.map +1 -0
  200. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js +19 -0
  201. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -0
  202. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js +27 -0
  203. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -0
  204. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +37 -0
  205. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -0
  206. package/lib-commonjs/index.js +232 -1
  207. package/lib-commonjs/index.js.map +1 -1
  208. package/package.json +18 -10
@@ -0,0 +1,17 @@
1
+ import { useTableBody_unstable } from '../TableBody/useTableBody';
2
+ /**
3
+ * Create the state required to render DataGridBody.
4
+ *
5
+ * The returned state can be modified with hooks such as useDataGridBodyStyles_unstable,
6
+ * before being passed to renderDataGridBody_unstable.
7
+ *
8
+ * @param props - props from this instance of DataGridBody
9
+ * @param ref - reference to root HTMLElement of DataGridBody
10
+ */
11
+
12
+ export const useDataGridBody_unstable = (props, ref) => {
13
+ return useTableBody_unstable({ ...props,
14
+ as: 'div'
15
+ }, ref);
16
+ };
17
+ //# sourceMappingURL=useDataGridBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridBody/useDataGridBody.ts"],"names":[],"mappings":"AAEA,SAAS,qBAAT,QAAsC,2BAAtC;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,wBAAwB,GAAG,CAAC,KAAD,EAA2B,GAA3B,KAA6E;EACnH,OAAO,qBAAqB,CAAC,EAAE,GAAG,KAAL;IAAY,EAAE,EAAE;EAAhB,CAAD,EAA0B,GAA1B,CAA5B;AACD,CAFM","sourcesContent":["import * as React from 'react';\nimport type { DataGridBodyProps, DataGridBodyState } from './DataGridBody.types';\nimport { useTableBody_unstable } from '../TableBody/useTableBody';\n\n/**\n * Create the state required to render DataGridBody.\n *\n * The returned state can be modified with hooks such as useDataGridBodyStyles_unstable,\n * before being passed to renderDataGridBody_unstable.\n *\n * @param props - props from this instance of DataGridBody\n * @param ref - reference to root HTMLElement of DataGridBody\n */\nexport const useDataGridBody_unstable = (props: DataGridBodyProps, ref: React.Ref<HTMLElement>): DataGridBodyState => {\n return useTableBody_unstable({ ...props, as: 'div' }, ref);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,15 @@
1
+ import { mergeClasses } from '@griffel/react';
2
+ import { useTableBodyStyles_unstable } from '../TableBody/useTableBodyStyles';
3
+ export const dataGridBodyClassNames = {
4
+ root: 'fui-DataGridBody'
5
+ };
6
+ /**
7
+ * Apply styling to the DataGridBody slots based on the state
8
+ */
9
+
10
+ export const useDataGridBodyStyles_unstable = state => {
11
+ useTableBodyStyles_unstable(state);
12
+ state.root.className = mergeClasses(dataGridBodyClassNames.root, state.root.className);
13
+ return state;
14
+ };
15
+ //# sourceMappingURL=useDataGridBodyStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridBody/useDataGridBodyStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,SAAS,2BAAT,QAA4C,iCAA5C;AAEA,OAAO,MAAM,sBAAsB,GAAsC;EACvE,IAAI,EAAE;AADiE,CAAlE;AAIP;;AAEG;;AACH,OAAO,MAAM,8BAA8B,GAAI,KAAD,IAAgD;EAC5F,2BAA2B,CAAC,KAAD,CAA3B;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,sBAAsB,CAAC,IAAxB,EAA8B,KAAK,CAAC,IAAN,CAAW,SAAzC,CAAnC;EAEA,OAAO,KAAP;AACD,CALM","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridBodySlots, DataGridBodyState } from './DataGridBody.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableBodyStyles_unstable } from '../TableBody/useTableBodyStyles';\n\nexport const dataGridBodyClassNames: SlotClassNames<DataGridBodySlots> = {\n root: 'fui-DataGridBody',\n};\n\n/**\n * Apply styling to the DataGridBody slots based on the state\n */\nexport const useDataGridBodyStyles_unstable = (state: DataGridBodyState): DataGridBodyState => {\n useTableBodyStyles_unstable(state);\n state.root.className = mergeClasses(dataGridBodyClassNames.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { useDataGridCell_unstable } from './useDataGridCell';
3
+ import { renderDataGridCell_unstable } from './renderDataGridCell';
4
+ import { useDataGridCellStyles_unstable } from './useDataGridCellStyles';
5
+ /**
6
+ * DataGridCell component - TODO: add more docs
7
+ */
8
+
9
+ export const DataGridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useDataGridCell_unstable(props, ref);
11
+ useDataGridCellStyles_unstable(state);
12
+ return renderDataGridCell_unstable(state);
13
+ });
14
+ DataGridCell.displayName = 'DataGridCell';
15
+ //# sourceMappingURL=DataGridCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridCell/DataGridCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AACA,SAAS,2BAAT,QAA4C,sBAA5C;AACA,SAAS,8BAAT,QAA+C,yBAA/C;AAIA;;AAEG;;AACH,OAAO,MAAM,YAAY,gBAA2C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAClG,MAAM,KAAK,GAAG,wBAAwB,CAAC,KAAD,EAAQ,GAAR,CAAtC;EAEA,8BAA8B,CAAC,KAAD,CAA9B;EACA,OAAO,2BAA2B,CAAC,KAAD,CAAlC;AACD,CALmE,CAA7D;AAOP,YAAY,CAAC,WAAb,GAA2B,cAA3B","sourcesContent":["import * as React from 'react';\nimport { useDataGridCell_unstable } from './useDataGridCell';\nimport { renderDataGridCell_unstable } from './renderDataGridCell';\nimport { useDataGridCellStyles_unstable } from './useDataGridCellStyles';\nimport type { DataGridCellProps } from './DataGridCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * DataGridCell component - TODO: add more docs\n */\nexport const DataGridCell: ForwardRefComponent<DataGridCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridCell_unstable(props, ref);\n\n useDataGridCellStyles_unstable(state);\n return renderDataGridCell_unstable(state);\n});\n\nDataGridCell.displayName = 'DataGridCell';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DataGridCell.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataGridCell.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridCell/DataGridCell.types.ts"],"names":[],"mappings":"","sourcesContent":["import { TableCellProps, TableCellSlots, TableCellState } from '../TableCell/TableCell.types';\n\nexport type DataGridCellSlots = TableCellSlots;\n\n/**\n * DataGridCell Props\n */\nexport type DataGridCellProps = TableCellProps;\n\n/**\n * State used in rendering DataGridCell\n */\nexport type DataGridCellState = TableCellState;\n"]}
@@ -0,0 +1,6 @@
1
+ export * from './DataGridCell';
2
+ export * from './DataGridCell.types';
3
+ export * from './renderDataGridCell';
4
+ export * from './useDataGridCell';
5
+ export * from './useDataGridCellStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridCell/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './DataGridCell';\nexport * from './DataGridCell.types';\nexport * from './renderDataGridCell';\nexport * from './useDataGridCell';\nexport * from './useDataGridCellStyles';\n"]}
@@ -0,0 +1,9 @@
1
+ import { renderTableCell_unstable } from '../TableCell/renderTableCell';
2
+ /**
3
+ * Render the final JSX of DataGridCell
4
+ */
5
+
6
+ export const renderDataGridCell_unstable = state => {
7
+ return renderTableCell_unstable(state);
8
+ };
9
+ //# sourceMappingURL=renderDataGridCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridCell/renderDataGridCell.tsx"],"names":[],"mappings":"AACA,SAAS,wBAAT,QAAyC,8BAAzC;AAEA;;AAEG;;AACH,OAAO,MAAM,2BAA2B,GAAI,KAAD,IAA6B;EACtE,OAAO,wBAAwB,CAAC,KAAD,CAA/B;AACD,CAFM","sourcesContent":["import type { DataGridCellState } from './DataGridCell.types';\nimport { renderTableCell_unstable } from '../TableCell/renderTableCell';\n\n/**\n * Render the final JSX of DataGridCell\n */\nexport const renderDataGridCell_unstable = (state: DataGridCellState) => {\n return renderTableCell_unstable(state);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,17 @@
1
+ import { useTableCell_unstable } from '../TableCell/useTableCell';
2
+ /**
3
+ * Create the state required to render DataGridCell.
4
+ *
5
+ * The returned state can be modified with hooks such as useDataGridCellStyles_unstable,
6
+ * before being passed to renderDataGridCell_unstable.
7
+ *
8
+ * @param props - props from this instance of DataGridCell
9
+ * @param ref - reference to root HTMLElement of DataGridCell
10
+ */
11
+
12
+ export const useDataGridCell_unstable = (props, ref) => {
13
+ return useTableCell_unstable({ ...props,
14
+ as: 'div'
15
+ }, ref);
16
+ };
17
+ //# sourceMappingURL=useDataGridCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridCell/useDataGridCell.ts"],"names":[],"mappings":"AAEA,SAAS,qBAAT,QAAsC,2BAAtC;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,wBAAwB,GAAG,CAAC,KAAD,EAA2B,GAA3B,KAA6E;EACnH,OAAO,qBAAqB,CAAC,EAAE,GAAG,KAAL;IAAY,EAAE,EAAE;EAAhB,CAAD,EAA0B,GAA1B,CAA5B;AACD,CAFM","sourcesContent":["import * as React from 'react';\nimport type { DataGridCellProps, DataGridCellState } from './DataGridCell.types';\nimport { useTableCell_unstable } from '../TableCell/useTableCell';\n\n/**\n * Create the state required to render DataGridCell.\n *\n * The returned state can be modified with hooks such as useDataGridCellStyles_unstable,\n * before being passed to renderDataGridCell_unstable.\n *\n * @param props - props from this instance of DataGridCell\n * @param ref - reference to root HTMLElement of DataGridCell\n */\nexport const useDataGridCell_unstable = (props: DataGridCellProps, ref: React.Ref<HTMLElement>): DataGridCellState => {\n return useTableCell_unstable({ ...props, as: 'div' }, ref);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,15 @@
1
+ import { mergeClasses } from '@griffel/react';
2
+ import { useTableCellStyles_unstable } from '../TableCell/useTableCellStyles';
3
+ export const dataGridCellClassNames = {
4
+ root: 'fui-DataGridCell'
5
+ };
6
+ /**
7
+ * Apply styling to the DataGridCell slots based on the state
8
+ */
9
+
10
+ export const useDataGridCellStyles_unstable = state => {
11
+ useTableCellStyles_unstable(state);
12
+ state.root.className = mergeClasses(dataGridCellClassNames.root, state.root.className);
13
+ return state;
14
+ };
15
+ //# sourceMappingURL=useDataGridCellStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridCell/useDataGridCellStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,SAAS,2BAAT,QAA4C,iCAA5C;AAEA,OAAO,MAAM,sBAAsB,GAAsC;EACvE,IAAI,EAAE;AADiE,CAAlE;AAIP;;AAEG;;AACH,OAAO,MAAM,8BAA8B,GAAI,KAAD,IAAgD;EAC5F,2BAA2B,CAAC,KAAD,CAA3B;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,sBAAsB,CAAC,IAAxB,EAA8B,KAAK,CAAC,IAAN,CAAW,SAAzC,CAAnC;EAEA,OAAO,KAAP;AACD,CALM","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridCellSlots, DataGridCellState } from './DataGridCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableCellStyles_unstable } from '../TableCell/useTableCellStyles';\n\nexport const dataGridCellClassNames: SlotClassNames<DataGridCellSlots> = {\n root: 'fui-DataGridCell',\n};\n\n/**\n * Apply styling to the DataGridCell slots based on the state\n */\nexport const useDataGridCellStyles_unstable = (state: DataGridCellState): DataGridCellState => {\n useTableCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridCellClassNames.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { useDataGridHeader_unstable } from './useDataGridHeader';
3
+ import { renderDataGridHeader_unstable } from './renderDataGridHeader';
4
+ import { useDataGridHeaderStyles_unstable } from './useDataGridHeaderStyles';
5
+ /**
6
+ * DataGridHeader component - TODO: add more docs
7
+ */
8
+
9
+ export const DataGridHeader = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useDataGridHeader_unstable(props, ref);
11
+ useDataGridHeaderStyles_unstable(state);
12
+ return renderDataGridHeader_unstable(state);
13
+ });
14
+ DataGridHeader.displayName = 'DataGridHeader';
15
+ //# sourceMappingURL=DataGridHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridHeader/DataGridHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,gCAAT,QAAiD,2BAAjD;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACtG,MAAM,KAAK,GAAG,0BAA0B,CAAC,KAAD,EAAQ,GAAR,CAAxC;EAEA,gCAAgC,CAAC,KAAD,CAAhC;EACA,OAAO,6BAA6B,CAAC,KAAD,CAApC;AACD,CALuE,CAAjE;AAOP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourcesContent":["import * as React from 'react';\nimport { useDataGridHeader_unstable } from './useDataGridHeader';\nimport { renderDataGridHeader_unstable } from './renderDataGridHeader';\nimport { useDataGridHeaderStyles_unstable } from './useDataGridHeaderStyles';\nimport type { DataGridHeaderProps } from './DataGridHeader.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * DataGridHeader component - TODO: add more docs\n */\nexport const DataGridHeader: ForwardRefComponent<DataGridHeaderProps> = React.forwardRef((props, ref) => {\n const state = useDataGridHeader_unstable(props, ref);\n\n useDataGridHeaderStyles_unstable(state);\n return renderDataGridHeader_unstable(state);\n});\n\nDataGridHeader.displayName = 'DataGridHeader';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DataGridHeader.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataGridHeader.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridHeader/DataGridHeader.types.ts"],"names":[],"mappings":"","sourcesContent":["import { TableHeaderProps, TableHeaderSlots, TableHeaderState } from '../TableHeader/TableHeader.types';\n\nexport type DataGridHeaderSlots = TableHeaderSlots;\n\n/**\n * DataGridHeader Props\n */\nexport type DataGridHeaderProps = TableHeaderProps;\n\n/**\n * State used in rendering DataGridHeader\n */\nexport type DataGridHeaderState = TableHeaderState;\n"]}
@@ -0,0 +1,6 @@
1
+ export * from './DataGridHeader';
2
+ export * from './DataGridHeader.types';
3
+ export * from './renderDataGridHeader';
4
+ export * from './useDataGridHeader';
5
+ export * from './useDataGridHeaderStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC","sourcesContent":["export * from './DataGridHeader';\nexport * from './DataGridHeader.types';\nexport * from './renderDataGridHeader';\nexport * from './useDataGridHeader';\nexport * from './useDataGridHeaderStyles';\n"]}
@@ -0,0 +1,9 @@
1
+ import { renderTableHeader_unstable } from '../TableHeader/renderTableHeader';
2
+ /**
3
+ * Render the final JSX of DataGridHeader
4
+ */
5
+
6
+ export const renderDataGridHeader_unstable = state => {
7
+ return renderTableHeader_unstable(state);
8
+ };
9
+ //# sourceMappingURL=renderDataGridHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridHeader/renderDataGridHeader.tsx"],"names":[],"mappings":"AAAA,SAAS,0BAAT,QAA2C,kCAA3C;AAGA;;AAEG;;AACH,OAAO,MAAM,6BAA6B,GAAI,KAAD,IAA+B;EAC1E,OAAO,0BAA0B,CAAC,KAAD,CAAjC;AACD,CAFM","sourcesContent":["import { renderTableHeader_unstable } from '../TableHeader/renderTableHeader';\nimport type { DataGridHeaderState } from './DataGridHeader.types';\n\n/**\n * Render the final JSX of DataGridHeader\n */\nexport const renderDataGridHeader_unstable = (state: DataGridHeaderState) => {\n return renderTableHeader_unstable(state);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,17 @@
1
+ import { useTableHeader_unstable } from '../TableHeader/useTableHeader';
2
+ /**
3
+ * Create the state required to render DataGridHeader.
4
+ *
5
+ * The returned state can be modified with hooks such as useDataGridHeaderStyles_unstable,
6
+ * before being passed to renderDataGridHeader_unstable.
7
+ *
8
+ * @param props - props from this instance of DataGridHeader
9
+ * @param ref - reference to root HTMLElement of DataGridHeader
10
+ */
11
+
12
+ export const useDataGridHeader_unstable = (props, ref) => {
13
+ return useTableHeader_unstable({ ...props,
14
+ as: 'div'
15
+ }, ref);
16
+ };
17
+ //# sourceMappingURL=useDataGridHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridHeader/useDataGridHeader.ts"],"names":[],"mappings":"AAEA,SAAS,uBAAT,QAAwC,+BAAxC;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,0BAA0B,GAAG,CACxC,KADwC,EAExC,GAFwC,KAGjB;EACvB,OAAO,uBAAuB,CAAC,EAAE,GAAG,KAAL;IAAY,EAAE,EAAE;EAAhB,CAAD,EAA0B,GAA1B,CAA9B;AACD,CALM","sourcesContent":["import * as React from 'react';\nimport type { DataGridHeaderProps, DataGridHeaderState } from './DataGridHeader.types';\nimport { useTableHeader_unstable } from '../TableHeader/useTableHeader';\n\n/**\n * Create the state required to render DataGridHeader.\n *\n * The returned state can be modified with hooks such as useDataGridHeaderStyles_unstable,\n * before being passed to renderDataGridHeader_unstable.\n *\n * @param props - props from this instance of DataGridHeader\n * @param ref - reference to root HTMLElement of DataGridHeader\n */\nexport const useDataGridHeader_unstable = (\n props: DataGridHeaderProps,\n ref: React.Ref<HTMLElement>,\n): DataGridHeaderState => {\n return useTableHeader_unstable({ ...props, as: 'div' }, ref);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,15 @@
1
+ import { mergeClasses } from '@griffel/react';
2
+ import { useTableHeaderStyles_unstable } from '../TableHeader/useTableHeaderStyles';
3
+ export const dataGridHeaderClassNames = {
4
+ root: 'fui-DataGridHeader'
5
+ };
6
+ /**
7
+ * Apply styling to the DataGridHeader slots based on the state
8
+ */
9
+
10
+ export const useDataGridHeaderStyles_unstable = state => {
11
+ useTableHeaderStyles_unstable(state);
12
+ state.root.className = mergeClasses(dataGridHeaderClassNames.root, state.root.className);
13
+ return state;
14
+ };
15
+ //# sourceMappingURL=useDataGridHeaderStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridHeader/useDataGridHeaderStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,SAAS,6BAAT,QAA8C,qCAA9C;AAEA,OAAO,MAAM,wBAAwB,GAAwC;EAC3E,IAAI,EAAE;AADqE,CAAtE;AAIP;;AAEG;;AACH,OAAO,MAAM,gCAAgC,GAAI,KAAD,IAAoD;EAClG,6BAA6B,CAAC,KAAD,CAA7B;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,wBAAwB,CAAC,IAA1B,EAAgC,KAAK,CAAC,IAAN,CAAW,SAA3C,CAAnC;EAEA,OAAO,KAAP;AACD,CALM","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderSlots, DataGridHeaderState } from './DataGridHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderStyles_unstable } from '../TableHeader/useTableHeaderStyles';\n\nexport const dataGridHeaderClassNames: SlotClassNames<DataGridHeaderSlots> = {\n root: 'fui-DataGridHeader',\n};\n\n/**\n * Apply styling to the DataGridHeader slots based on the state\n */\nexport const useDataGridHeaderStyles_unstable = (state: DataGridHeaderState): DataGridHeaderState => {\n useTableHeaderStyles_unstable(state);\n state.root.className = mergeClasses(dataGridHeaderClassNames.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { useDataGridHeaderCell_unstable } from './useDataGridHeaderCell';
3
+ import { renderDataGridHeaderCell_unstable } from './renderDataGridHeaderCell';
4
+ import { useDataGridHeaderCellStyles_unstable } from './useDataGridHeaderCellStyles';
5
+ /**
6
+ * DataGridHeaderCell component - TODO: add more docs
7
+ */
8
+
9
+ export const DataGridHeaderCell = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useDataGridHeaderCell_unstable(props, ref);
11
+ useDataGridHeaderCellStyles_unstable(state);
12
+ return renderDataGridHeaderCell_unstable(state);
13
+ });
14
+ DataGridHeaderCell.displayName = 'DataGridHeaderCell';
15
+ //# sourceMappingURL=DataGridHeaderCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridHeaderCell/DataGridHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,8BAAT,QAA+C,yBAA/C;AACA,SAAS,iCAAT,QAAkD,4BAAlD;AACA,SAAS,oCAAT,QAAqD,+BAArD;AAIA;;AAEG;;AACH,OAAO,MAAM,kBAAkB,gBAAiD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAC9G,MAAM,KAAK,GAAG,8BAA8B,CAAC,KAAD,EAAQ,GAAR,CAA5C;EAEA,oCAAoC,CAAC,KAAD,CAApC;EACA,OAAO,iCAAiC,CAAC,KAAD,CAAxC;AACD,CAL+E,CAAzE;AAOP,kBAAkB,CAAC,WAAnB,GAAiC,oBAAjC","sourcesContent":["import * as React from 'react';\nimport { useDataGridHeaderCell_unstable } from './useDataGridHeaderCell';\nimport { renderDataGridHeaderCell_unstable } from './renderDataGridHeaderCell';\nimport { useDataGridHeaderCellStyles_unstable } from './useDataGridHeaderCellStyles';\nimport type { DataGridHeaderCellProps } from './DataGridHeaderCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * DataGridHeaderCell component - TODO: add more docs\n */\nexport const DataGridHeaderCell: ForwardRefComponent<DataGridHeaderCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridHeaderCell_unstable(props, ref);\n\n useDataGridHeaderCellStyles_unstable(state);\n return renderDataGridHeaderCell_unstable(state);\n});\n\nDataGridHeaderCell.displayName = 'DataGridHeaderCell';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DataGridHeaderCell.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataGridHeaderCell.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridHeaderCell/DataGridHeaderCell.types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n TableHeaderCellProps,\n TableHeaderCellSlots,\n TableHeaderCellState,\n} from '../TableHeaderCell/TableHeaderCell.types';\n\nexport type DataGridHeaderCellSlots = TableHeaderCellSlots;\n\n/**\n * DataGridHeaderCell Props\n */\nexport type DataGridHeaderCellProps = TableHeaderCellProps;\n\n/**\n * State used in rendering DataGridHeaderCell\n */\nexport type DataGridHeaderCellState = TableHeaderCellState;\n"]}
@@ -0,0 +1,6 @@
1
+ export * from './DataGridHeaderCell';
2
+ export * from './DataGridHeaderCell.types';
3
+ export * from './renderDataGridHeaderCell';
4
+ export * from './useDataGridHeaderCell';
5
+ export * from './useDataGridHeaderCellStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridHeaderCell/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './DataGridHeaderCell';\nexport * from './DataGridHeaderCell.types';\nexport * from './renderDataGridHeaderCell';\nexport * from './useDataGridHeaderCell';\nexport * from './useDataGridHeaderCellStyles';\n"]}
@@ -0,0 +1,9 @@
1
+ import { renderTableHeaderCell_unstable } from '../TableHeaderCell/renderTableHeaderCell';
2
+ /**
3
+ * Render the final JSX of DataGridHeaderCell
4
+ */
5
+
6
+ export const renderDataGridHeaderCell_unstable = state => {
7
+ return renderTableHeaderCell_unstable(state);
8
+ };
9
+ //# sourceMappingURL=renderDataGridHeaderCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridHeaderCell/renderDataGridHeaderCell.tsx"],"names":[],"mappings":"AACA,SAAS,8BAAT,QAA+C,0CAA/C;AAEA;;AAEG;;AACH,OAAO,MAAM,iCAAiC,GAAI,KAAD,IAAmC;EAClF,OAAO,8BAA8B,CAAC,KAAD,CAArC;AACD,CAFM","sourcesContent":["import type { DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { renderTableHeaderCell_unstable } from '../TableHeaderCell/renderTableHeaderCell';\n\n/**\n * Render the final JSX of DataGridHeaderCell\n */\nexport const renderDataGridHeaderCell_unstable = (state: DataGridHeaderCellState) => {\n return renderTableHeaderCell_unstable(state);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,17 @@
1
+ import { useTableHeaderCell_unstable } from '../TableHeaderCell/useTableHeaderCell';
2
+ /**
3
+ * Create the state required to render DataGridHeaderCell.
4
+ *
5
+ * The returned state can be modified with hooks such as useDataGridHeaderCellStyles_unstable,
6
+ * before being passed to renderDataGridHeaderCell_unstable.
7
+ *
8
+ * @param props - props from this instance of DataGridHeaderCell
9
+ * @param ref - reference to root HTMLElement of DataGridHeaderCell
10
+ */
11
+
12
+ export const useDataGridHeaderCell_unstable = (props, ref) => {
13
+ return useTableHeaderCell_unstable({ ...props,
14
+ as: 'div'
15
+ }, ref);
16
+ };
17
+ //# sourceMappingURL=useDataGridHeaderCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridHeaderCell/useDataGridHeaderCell.ts"],"names":[],"mappings":"AAEA,SAAS,2BAAT,QAA4C,uCAA5C;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,8BAA8B,GAAG,CAC5C,KAD4C,EAE5C,GAF4C,KAGjB;EAC3B,OAAO,2BAA2B,CAAC,EAAE,GAAG,KAAL;IAAY,EAAE,EAAE;EAAhB,CAAD,EAA0B,GAA1B,CAAlC;AACD,CALM","sourcesContent":["import * as React from 'react';\nimport type { DataGridHeaderCellProps, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { useTableHeaderCell_unstable } from '../TableHeaderCell/useTableHeaderCell';\n\n/**\n * Create the state required to render DataGridHeaderCell.\n *\n * The returned state can be modified with hooks such as useDataGridHeaderCellStyles_unstable,\n * before being passed to renderDataGridHeaderCell_unstable.\n *\n * @param props - props from this instance of DataGridHeaderCell\n * @param ref - reference to root HTMLElement of DataGridHeaderCell\n */\nexport const useDataGridHeaderCell_unstable = (\n props: DataGridHeaderCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridHeaderCellState => {\n return useTableHeaderCell_unstable({ ...props, as: 'div' }, ref);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,26 @@
1
+ import { mergeClasses } from '@griffel/react';
2
+ import { useTableHeaderCellStyles_unstable } from '../TableHeaderCell/useTableHeaderCellStyles';
3
+ export const dataGridHeaderCellClassNames = {
4
+ root: 'fui-DataGridHeaderCell',
5
+ button: 'fui-DataGridHeaderCell__button',
6
+ sortIcon: 'fui-DataGridHeaderCell__sortIcon'
7
+ };
8
+ /**
9
+ * Apply styling to the DataGridHeaderCell slots based on the state
10
+ */
11
+
12
+ export const useDataGridHeaderCellStyles_unstable = state => {
13
+ useTableHeaderCellStyles_unstable(state);
14
+ state.root.className = mergeClasses(dataGridHeaderCellClassNames.root, state.root.className);
15
+
16
+ if (state.button) {
17
+ state.button.className = mergeClasses(dataGridHeaderCellClassNames.button, state.button.className);
18
+ }
19
+
20
+ if (state.sortIcon) {
21
+ state.sortIcon.className = mergeClasses(dataGridHeaderCellClassNames.sortIcon, state.sortIcon.className);
22
+ }
23
+
24
+ return state;
25
+ };
26
+ //# sourceMappingURL=useDataGridHeaderCellStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridHeaderCell/useDataGridHeaderCellStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,SAAS,iCAAT,QAAkD,6CAAlD;AAEA,OAAO,MAAM,4BAA4B,GAA4C;EACnF,IAAI,EAAE,wBAD6E;EAEnF,MAAM,EAAE,gCAF2E;EAGnF,QAAQ,EAAE;AAHyE,CAA9E;AAMP;;AAEG;;AACH,OAAO,MAAM,oCAAoC,GAAI,KAAD,IAA4D;EAC9G,iCAAiC,CAAC,KAAD,CAAjC;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,4BAA4B,CAAC,IAA9B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;;EAEA,IAAI,KAAK,CAAC,MAAV,EAAkB;IAChB,KAAK,CAAC,MAAN,CAAa,SAAb,GAAyB,YAAY,CAAC,4BAA4B,CAAC,MAA9B,EAAsC,KAAK,CAAC,MAAN,CAAa,SAAnD,CAArC;EACD;;EAED,IAAI,KAAK,CAAC,QAAV,EAAoB;IAClB,KAAK,CAAC,QAAN,CAAe,SAAf,GAA2B,YAAY,CAAC,4BAA4B,CAAC,QAA9B,EAAwC,KAAK,CAAC,QAAN,CAAe,SAAvD,CAAvC;EACD;;EAED,OAAO,KAAP;AACD,CAbM","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderCellSlots, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderCellStyles_unstable } from '../TableHeaderCell/useTableHeaderCellStyles';\n\nexport const dataGridHeaderCellClassNames: SlotClassNames<DataGridHeaderCellSlots> = {\n root: 'fui-DataGridHeaderCell',\n button: 'fui-DataGridHeaderCell__button',\n sortIcon: 'fui-DataGridHeaderCell__sortIcon',\n};\n\n/**\n * Apply styling to the DataGridHeaderCell slots based on the state\n */\nexport const useDataGridHeaderCellStyles_unstable = (state: DataGridHeaderCellState): DataGridHeaderCellState => {\n useTableHeaderCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridHeaderCellClassNames.root, state.root.className);\n\n if (state.button) {\n state.button.className = mergeClasses(dataGridHeaderCellClassNames.button, state.button.className);\n }\n\n if (state.sortIcon) {\n state.sortIcon.className = mergeClasses(dataGridHeaderCellClassNames.sortIcon, state.sortIcon.className);\n }\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { useDataGridRow_unstable } from './useDataGridRow';
3
+ import { renderDataGridRow_unstable } from './renderDataGridRow';
4
+ import { useDataGridRowStyles_unstable } from './useDataGridRowStyles';
5
+ /**
6
+ * DataGridRow component - TODO: add more docs
7
+ */
8
+
9
+ export const DataGridRow = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useDataGridRow_unstable(props, ref);
11
+ useDataGridRowStyles_unstable(state);
12
+ return renderDataGridRow_unstable(state);
13
+ });
14
+ DataGridRow.displayName = 'DataGridRow';
15
+ //# sourceMappingURL=DataGridRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridRow/DataGridRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AAIA;;AAEG;;AACH,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAChG,MAAM,KAAK,GAAG,uBAAuB,CAAC,KAAD,EAAQ,GAAR,CAArC;EAEA,6BAA6B,CAAC,KAAD,CAA7B;EACA,OAAO,0BAA0B,CAAC,KAAD,CAAjC;AACD,CALiE,CAA3D;AAOP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourcesContent":["import * as React from 'react';\nimport { useDataGridRow_unstable } from './useDataGridRow';\nimport { renderDataGridRow_unstable } from './renderDataGridRow';\nimport { useDataGridRowStyles_unstable } from './useDataGridRowStyles';\nimport type { DataGridRowProps } from './DataGridRow.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * DataGridRow component - TODO: add more docs\n */\nexport const DataGridRow: ForwardRefComponent<DataGridRowProps> = React.forwardRef((props, ref) => {\n const state = useDataGridRow_unstable(props, ref);\n\n useDataGridRowStyles_unstable(state);\n return renderDataGridRow_unstable(state);\n});\n\nDataGridRow.displayName = 'DataGridRow';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DataGridRow.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataGridRow.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridRow/DataGridRow.types.ts"],"names":[],"mappings":"","sourcesContent":["import { TableRowProps, TableRowSlots, TableRowState } from '../TableRow/TableRow.types';\n\nexport type DataGridRowSlots = TableRowSlots;\n\n/**\n * DataGridRow Props\n */\nexport type DataGridRowProps = TableRowProps;\n\n/**\n * State used in rendering DataGridRow\n */\nexport type DataGridRowState = TableRowState;\n"]}
@@ -0,0 +1,6 @@
1
+ export * from './DataGridRow';
2
+ export * from './DataGridRow.types';
3
+ export * from './renderDataGridRow';
4
+ export * from './useDataGridRow';
5
+ export * from './useDataGridRowStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridRow/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC","sourcesContent":["export * from './DataGridRow';\nexport * from './DataGridRow.types';\nexport * from './renderDataGridRow';\nexport * from './useDataGridRow';\nexport * from './useDataGridRowStyles';\n"]}
@@ -0,0 +1,9 @@
1
+ import { renderTableRow_unstable } from '../TableRow/renderTableRow';
2
+ /**
3
+ * Render the final JSX of DataGridRow
4
+ */
5
+
6
+ export const renderDataGridRow_unstable = state => {
7
+ return renderTableRow_unstable(state);
8
+ };
9
+ //# sourceMappingURL=renderDataGridRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridRow/renderDataGridRow.tsx"],"names":[],"mappings":"AACA,SAAS,uBAAT,QAAwC,4BAAxC;AAEA;;AAEG;;AACH,OAAO,MAAM,0BAA0B,GAAI,KAAD,IAA4B;EACpE,OAAO,uBAAuB,CAAC,KAAD,CAA9B;AACD,CAFM","sourcesContent":["import type { DataGridRowState } from './DataGridRow.types';\nimport { renderTableRow_unstable } from '../TableRow/renderTableRow';\n\n/**\n * Render the final JSX of DataGridRow\n */\nexport const renderDataGridRow_unstable = (state: DataGridRowState) => {\n return renderTableRow_unstable(state);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,17 @@
1
+ import { useTableRow_unstable } from '../TableRow/useTableRow';
2
+ /**
3
+ * Create the state required to render DataGridRow.
4
+ *
5
+ * The returned state can be modified with hooks such as useDataGridRowStyles_unstable,
6
+ * before being passed to renderDataGridRow_unstable.
7
+ *
8
+ * @param props - props from this instance of DataGridRow
9
+ * @param ref - reference to root HTMLElement of DataGridRow
10
+ */
11
+
12
+ export const useDataGridRow_unstable = (props, ref) => {
13
+ return useTableRow_unstable({ ...props,
14
+ as: 'div'
15
+ }, ref);
16
+ };
17
+ //# sourceMappingURL=useDataGridRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridRow/useDataGridRow.ts"],"names":[],"mappings":"AAEA,SAAS,oBAAT,QAAqC,yBAArC;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,uBAAuB,GAAG,CAAC,KAAD,EAA0B,GAA1B,KAA2E;EAChH,OAAO,oBAAoB,CAAC,EAAE,GAAG,KAAL;IAAY,EAAE,EAAE;EAAhB,CAAD,EAA0B,GAA1B,CAA3B;AACD,CAFM","sourcesContent":["import * as React from 'react';\nimport type { DataGridRowProps, DataGridRowState } from './DataGridRow.types';\nimport { useTableRow_unstable } from '../TableRow/useTableRow';\n\n/**\n * Create the state required to render DataGridRow.\n *\n * The returned state can be modified with hooks such as useDataGridRowStyles_unstable,\n * before being passed to renderDataGridRow_unstable.\n *\n * @param props - props from this instance of DataGridRow\n * @param ref - reference to root HTMLElement of DataGridRow\n */\nexport const useDataGridRow_unstable = (props: DataGridRowProps, ref: React.Ref<HTMLElement>): DataGridRowState => {\n return useTableRow_unstable({ ...props, as: 'div' }, ref);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,15 @@
1
+ import { mergeClasses } from '@griffel/react';
2
+ import { useTableRowStyles_unstable } from '../TableRow/useTableRowStyles';
3
+ export const dataGridRowClassNames = {
4
+ root: 'fui-DataGridRow'
5
+ };
6
+ /**
7
+ * Apply styling to the DataGridRow slots based on the state
8
+ */
9
+
10
+ export const useDataGridRowStyles_unstable = state => {
11
+ useTableRowStyles_unstable(state);
12
+ state.root.className = mergeClasses(dataGridRowClassNames.root, state.root.className);
13
+ return state;
14
+ };
15
+ //# sourceMappingURL=useDataGridRowStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridRow/useDataGridRowStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,SAAS,0BAAT,QAA2C,+BAA3C;AAEA,OAAO,MAAM,qBAAqB,GAAqC;EACrE,IAAI,EAAE;AAD+D,CAAhE;AAIP;;AAEG;;AACH,OAAO,MAAM,6BAA6B,GAAI,KAAD,IAA8C;EACzF,0BAA0B,CAAC,KAAD,CAA1B;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,qBAAqB,CAAC,IAAvB,EAA6B,KAAK,CAAC,IAAN,CAAW,SAAxC,CAAnC;EAEA,OAAO,KAAP;AACD,CALM","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridRowSlots, DataGridRowState } from './DataGridRow.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableRowStyles_unstable } from '../TableRow/useTableRowStyles';\n\nexport const dataGridRowClassNames: SlotClassNames<DataGridRowSlots> = {\n root: 'fui-DataGridRow',\n};\n\n/**\n * Apply styling to the DataGridRow slots based on the state\n */\nexport const useDataGridRowStyles_unstable = (state: DataGridRowState): DataGridRowState => {\n useTableRowStyles_unstable(state);\n state.root.className = mergeClasses(dataGridRowClassNames.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';
3
+ import { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';
4
+ import { useDataGridSelectionCellStyles_unstable } from './useDataGridSelectionCellStyles';
5
+ /**
6
+ * DataGridSelectionCell component - TODO: add more docs
7
+ */
8
+
9
+ export const DataGridSelectionCell = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useDataGridSelectionCell_unstable(props, ref);
11
+ useDataGridSelectionCellStyles_unstable(state);
12
+ return renderDataGridSelectionCell_unstable(state);
13
+ });
14
+ DataGridSelectionCell.displayName = 'DataGridSelectionCell';
15
+ //# sourceMappingURL=DataGridSelectionCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridSelectionCell/DataGridSelectionCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iCAAT,QAAkD,4BAAlD;AACA,SAAS,oCAAT,QAAqD,+BAArD;AACA,SAAS,uCAAT,QAAwD,kCAAxD;AAIA;;AAEG;;AACH,OAAO,MAAM,qBAAqB,gBAAoD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACpH,MAAM,KAAK,GAAG,iCAAiC,CAAC,KAAD,EAAQ,GAAR,CAA/C;EAEA,uCAAuC,CAAC,KAAD,CAAvC;EACA,OAAO,oCAAoC,CAAC,KAAD,CAA3C;AACD,CALqF,CAA/E;AAOP,qBAAqB,CAAC,WAAtB,GAAoC,uBAApC","sourcesContent":["import * as React from 'react';\nimport { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';\nimport { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';\nimport { useDataGridSelectionCellStyles_unstable } from './useDataGridSelectionCellStyles';\nimport type { DataGridSelectionCellProps } from './DataGridSelectionCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * DataGridSelectionCell component - TODO: add more docs\n */\nexport const DataGridSelectionCell: ForwardRefComponent<DataGridSelectionCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridSelectionCell_unstable(props, ref);\n\n useDataGridSelectionCellStyles_unstable(state);\n return renderDataGridSelectionCell_unstable(state);\n});\n\nDataGridSelectionCell.displayName = 'DataGridSelectionCell';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DataGridSelectionCell.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataGridSelectionCell.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridSelectionCell/DataGridSelectionCell.types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n TableSelectionCellProps,\n TableSelectionCellSlots,\n TableSelectionCellState,\n} from '../TableSelectionCell/TableSelectionCell.types';\n\nexport type DataGridSelectionCellSlots = TableSelectionCellSlots;\n\n/**\n * DataGridSelectionCell Props\n */\nexport type DataGridSelectionCellProps = TableSelectionCellProps;\n\n/**\n * State used in rendering DataGridSelectionCell\n */\nexport type DataGridSelectionCellState = TableSelectionCellState;\n"]}
@@ -0,0 +1,6 @@
1
+ export * from './DataGridSelectionCell';
2
+ export * from './DataGridSelectionCell.types';
3
+ export * from './renderDataGridSelectionCell';
4
+ export * from './useDataGridSelectionCell';
5
+ export * from './useDataGridSelectionCellStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridSelectionCell/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './DataGridSelectionCell';\nexport * from './DataGridSelectionCell.types';\nexport * from './renderDataGridSelectionCell';\nexport * from './useDataGridSelectionCell';\nexport * from './useDataGridSelectionCellStyles';\n"]}
@@ -0,0 +1,9 @@
1
+ import { renderTableSelectionCell_unstable } from '../TableSelectionCell/renderTableSelectionCell';
2
+ /**
3
+ * Render the final JSX of DataGridSelectionCell
4
+ */
5
+
6
+ export const renderDataGridSelectionCell_unstable = state => {
7
+ return renderTableSelectionCell_unstable(state);
8
+ };
9
+ //# sourceMappingURL=renderDataGridSelectionCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridSelectionCell/renderDataGridSelectionCell.tsx"],"names":[],"mappings":"AACA,SAAS,iCAAT,QAAkD,gDAAlD;AAEA;;AAEG;;AACH,OAAO,MAAM,oCAAoC,GAAI,KAAD,IAAsC;EACxF,OAAO,iCAAiC,CAAC,KAAD,CAAxC;AACD,CAFM","sourcesContent":["import type { DataGridSelectionCellState } from './DataGridSelectionCell.types';\nimport { renderTableSelectionCell_unstable } from '../TableSelectionCell/renderTableSelectionCell';\n\n/**\n * Render the final JSX of DataGridSelectionCell\n */\nexport const renderDataGridSelectionCell_unstable = (state: DataGridSelectionCellState) => {\n return renderTableSelectionCell_unstable(state);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,17 @@
1
+ import { useTableSelectionCell_unstable } from '../TableSelectionCell/useTableSelectionCell';
2
+ /**
3
+ * Create the state required to render DataGridSelectionCell.
4
+ *
5
+ * The returned state can be modified with hooks such as useDataGridSelectionCellStyles_unstable,
6
+ * before being passed to renderDataGridSelectionCell_unstable.
7
+ *
8
+ * @param props - props from this instance of DataGridSelectionCell
9
+ * @param ref - reference to root HTMLElement of DataGridSelectionCell
10
+ */
11
+
12
+ export const useDataGridSelectionCell_unstable = (props, ref) => {
13
+ return useTableSelectionCell_unstable({ ...props,
14
+ as: 'div'
15
+ }, ref);
16
+ };
17
+ //# sourceMappingURL=useDataGridSelectionCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["packages/react-components/react-table/src/components/DataGridSelectionCell/useDataGridSelectionCell.ts"],"names":[],"mappings":"AACA,SAAS,8BAAT,QAA+C,6CAA/C;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,iCAAiC,GAAG,CAC/C,KAD+C,EAE/C,GAF+C,KAGjB;EAC9B,OAAO,8BAA8B,CAAC,EAAE,GAAG,KAAL;IAAY,EAAE,EAAE;EAAhB,CAAD,EAA0B,GAA1B,CAArC;AACD,CALM","sourcesContent":["import * as React from 'react';\nimport { useTableSelectionCell_unstable } from '../TableSelectionCell/useTableSelectionCell';\nimport type { DataGridSelectionCellProps, DataGridSelectionCellState } from './DataGridSelectionCell.types';\n\n/**\n * Create the state required to render DataGridSelectionCell.\n *\n * The returned state can be modified with hooks such as useDataGridSelectionCellStyles_unstable,\n * before being passed to renderDataGridSelectionCell_unstable.\n *\n * @param props - props from this instance of DataGridSelectionCell\n * @param ref - reference to root HTMLElement of DataGridSelectionCell\n */\nexport const useDataGridSelectionCell_unstable = (\n props: DataGridSelectionCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridSelectionCellState => {\n return useTableSelectionCell_unstable({ ...props, as: 'div' }, ref);\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,26 @@
1
+ import { mergeClasses } from '@griffel/react';
2
+ import { useTableSelectionCellStyles_unstable } from '../TableSelectionCell/useTableSelectionCellStyles';
3
+ export const dataGridSelectionCellClassNames = {
4
+ root: 'fui-DataGridSelectionCell',
5
+ checkboxIndicator: 'fui-DataGridSelectionCell__checkboxIndicator',
6
+ radioIndicator: 'fui-DataGridSelectionCell__radioIndicator'
7
+ };
8
+ /**
9
+ * Apply styling to the DataGridSelectionCell slots based on the state
10
+ */
11
+
12
+ export const useDataGridSelectionCellStyles_unstable = state => {
13
+ useTableSelectionCellStyles_unstable(state);
14
+ state.root.className = mergeClasses(dataGridSelectionCellClassNames.root, state.root.className);
15
+
16
+ if (state.checkboxIndicator) {
17
+ state.checkboxIndicator.className = mergeClasses(dataGridSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);
18
+ }
19
+
20
+ if (state.radioIndicator) {
21
+ state.radioIndicator.className = mergeClasses(dataGridSelectionCellClassNames.radioIndicator, state.radioIndicator.className);
22
+ }
23
+
24
+ return state;
25
+ };
26
+ //# sourceMappingURL=useDataGridSelectionCellStyles.js.map