@heliux-org/design-system-core 0.0.306-Test → 0.0.306

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1246) hide show
  1. package/dist/NewTableHeader.css +30 -0
  2. package/dist/NewTableHeader.css.map +1 -0
  3. package/dist/NewTableHeader.js +3 -0
  4. package/dist/NewTableHeader.js.LICENSE.txt +48 -0
  5. package/dist/NewTableHeader.js.map +1 -0
  6. package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +6 -2
  7. package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
  8. package/dist/components/Table/Table.types.js +3 -0
  9. package/dist/components/Table/Table.types.js.map +1 -0
  10. package/dist/components/Table/components/Cell/Cell.js +40 -0
  11. package/dist/components/Table/components/Cell/Cell.js.map +1 -0
  12. package/dist/components/Table/components/Cell/Cell.types.js +9 -0
  13. package/dist/components/Table/components/Cell/Cell.types.js.map +1 -0
  14. package/dist/components/Table/components/Cell/HeaderCell/HeaderCell.js +61 -0
  15. package/dist/components/Table/components/Cell/HeaderCell/HeaderCell.js.map +1 -0
  16. package/dist/components/Table/components/Cell/HeaderCell/HeaderCell.types.js +10 -0
  17. package/dist/components/Table/components/Cell/HeaderCell/HeaderCell.types.js.map +1 -0
  18. package/dist/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.js +40 -0
  19. package/dist/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.js.map +1 -0
  20. package/dist/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.js +3 -0
  21. package/dist/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.js.map +1 -0
  22. package/dist/components/Table/components/Cell/HeaderCell/index.js +8 -0
  23. package/dist/components/Table/components/Cell/HeaderCell/index.js.map +1 -0
  24. package/dist/components/Table/components/Cell/InternalCell.js +48 -0
  25. package/dist/components/Table/components/Cell/InternalCell.js.map +1 -0
  26. package/dist/components/Table/components/Cell/index.js +11 -0
  27. package/dist/components/Table/components/Cell/index.js.map +1 -0
  28. package/dist/components/Table/components/ExpandedContent/ExpandedContent.js +42 -0
  29. package/dist/components/Table/components/ExpandedContent/ExpandedContent.js.map +1 -0
  30. package/dist/components/Table/components/ExpandedContent/ExpandedContent.types.js +3 -0
  31. package/dist/components/Table/components/ExpandedContent/ExpandedContent.types.js.map +1 -0
  32. package/dist/components/Table/components/ExpandedContent/index.js +8 -0
  33. package/dist/components/Table/components/ExpandedContent/index.js.map +1 -0
  34. package/dist/components/Table/components/Row/HeaderRow/HeaderRow.js +28 -0
  35. package/dist/components/Table/components/Row/HeaderRow/HeaderRow.js.map +1 -0
  36. package/dist/components/Table/components/Row/HeaderRow/HeaderRow.types.js +3 -0
  37. package/dist/components/Table/components/Row/HeaderRow/HeaderRow.types.js.map +1 -0
  38. package/dist/components/Table/components/Row/HeaderRow/index.js +8 -0
  39. package/dist/components/Table/components/Row/HeaderRow/index.js.map +1 -0
  40. package/dist/components/Table/components/Row/InternalRowBase.js +31 -0
  41. package/dist/components/Table/components/Row/InternalRowBase.js.map +1 -0
  42. package/dist/components/Table/components/Row/InternalRowWithRT.js +91 -0
  43. package/dist/components/Table/components/Row/InternalRowWithRT.js.map +1 -0
  44. package/dist/components/Table/components/Row/InternalRowWithoutRT.js +42 -0
  45. package/dist/components/Table/components/Row/InternalRowWithoutRT.js.map +1 -0
  46. package/dist/components/Table/components/Row/Row.js +36 -0
  47. package/dist/components/Table/components/Row/Row.js.map +1 -0
  48. package/dist/components/Table/components/Row/Row.types.js +3 -0
  49. package/dist/components/Table/components/Row/Row.types.js.map +1 -0
  50. package/dist/components/Table/components/Row/RowCellChildren.js +42 -0
  51. package/dist/components/Table/components/Row/RowCellChildren.js.map +1 -0
  52. package/dist/components/Table/components/Row/RowContext.js +15 -0
  53. package/dist/components/Table/components/Row/RowContext.js.map +1 -0
  54. package/dist/components/Table/components/Row/index.js +11 -0
  55. package/dist/components/Table/components/Row/index.js.map +1 -0
  56. package/dist/components/Table/components/TableBody/TableBody.js +38 -0
  57. package/dist/components/Table/components/TableBody/TableBody.js.map +1 -0
  58. package/dist/components/Table/components/TableBody/TableBody.types.js +3 -0
  59. package/dist/components/Table/components/TableBody/TableBody.types.js.map +1 -0
  60. package/dist/components/Table/components/TableBody/index.js +8 -0
  61. package/dist/components/Table/components/TableBody/index.js.map +1 -0
  62. package/dist/components/Table/components/TableContext/TableContext.js +32 -0
  63. package/dist/components/Table/components/TableContext/TableContext.js.map +1 -0
  64. package/dist/components/Table/components/TableContext/TableContext.types.js +3 -0
  65. package/dist/components/Table/components/TableContext/TableContext.types.js.map +1 -0
  66. package/dist/components/Table/components/TableContext/index.js +30 -0
  67. package/dist/components/Table/components/TableContext/index.js.map +1 -0
  68. package/dist/components/Table/components/TableHead/TableHead.js +31 -0
  69. package/dist/components/Table/components/TableHead/TableHead.js.map +1 -0
  70. package/dist/components/Table/components/TableHead/TableHead.types.js +3 -0
  71. package/dist/components/Table/components/TableHead/TableHead.types.js.map +1 -0
  72. package/dist/components/Table/components/TableHead/index.js +8 -0
  73. package/dist/components/Table/components/TableHead/index.js.map +1 -0
  74. package/dist/components/Table/components/TableHeader/TableHeader.js +116 -0
  75. package/dist/components/Table/components/TableHeader/TableHeader.js.map +1 -0
  76. package/dist/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js +38 -0
  77. package/dist/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js.map +1 -0
  78. package/dist/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.js +3 -0
  79. package/dist/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.js.map +1 -0
  80. package/dist/components/Table/components/ToggleExpandedIcon/index.js +8 -0
  81. package/dist/components/Table/components/ToggleExpandedIcon/index.js.map +1 -0
  82. package/dist/components/Table/components/newComponents/Buttons/Button.js +63 -0
  83. package/dist/components/Table/components/newComponents/Buttons/Button.js.map +1 -0
  84. package/dist/components/Table/components/newComponents/Buttons/DropdownButton.js +83 -0
  85. package/dist/components/Table/components/newComponents/Buttons/DropdownButton.js.map +1 -0
  86. package/dist/components/Table/components/newComponents/Buttons/IconButton.js +66 -0
  87. package/dist/components/Table/components/newComponents/Buttons/IconButton.js.map +1 -0
  88. package/dist/components/Table/components/newComponents/Buttons/IdeasButton.js +54 -0
  89. package/dist/components/Table/components/newComponents/Buttons/IdeasButton.js.map +1 -0
  90. package/dist/components/Table/components/newComponents/Buttons/SplitButton.js +99 -0
  91. package/dist/components/Table/components/newComponents/Buttons/SplitButton.js.map +1 -0
  92. package/dist/components/Table/components/newComponents/Checkbox/Checkbox.js +87 -0
  93. package/dist/components/Table/components/newComponents/Checkbox/Checkbox.js.map +1 -0
  94. package/dist/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js +99 -0
  95. package/dist/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js.map +1 -0
  96. package/dist/components/Table/components/newComponents/Input/Input.js +62 -0
  97. package/dist/components/Table/components/newComponents/Input/Input.js.map +1 -0
  98. package/dist/components/Table/components/newComponents/Menu/Menu.js +103 -0
  99. package/dist/components/Table/components/newComponents/Menu/Menu.js.map +1 -0
  100. package/dist/components/Table/components/newComponents/Menu/MenuDivider.js +27 -0
  101. package/dist/components/Table/components/newComponents/Menu/MenuDivider.js.map +1 -0
  102. package/dist/components/Table/components/newComponents/Menu/MenuExtraContent.js +32 -0
  103. package/dist/components/Table/components/newComponents/Menu/MenuExtraContent.js.map +1 -0
  104. package/dist/components/Table/components/newComponents/Menu/MenuItem.js +139 -0
  105. package/dist/components/Table/components/newComponents/Menu/MenuItem.js.map +1 -0
  106. package/dist/components/Table/components/newComponents/Menu/MenuItemSkeleton.js +59 -0
  107. package/dist/components/Table/components/newComponents/Menu/MenuItemSkeleton.js.map +1 -0
  108. package/dist/components/Table/components/newComponents/Polymorphic/Polymorph.js +44 -0
  109. package/dist/components/Table/components/newComponents/Polymorphic/Polymorph.js.map +1 -0
  110. package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js +41 -0
  111. package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js.map +1 -0
  112. package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.js +30 -0
  113. package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.js.map +1 -0
  114. package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.types.js +10 -0
  115. package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.types.js.map +1 -0
  116. package/dist/components/Table/components/newComponents/Polymorphic/index.js +12 -0
  117. package/dist/components/Table/components/newComponents/Polymorphic/index.js.map +1 -0
  118. package/dist/components/Table/components/newComponents/Popover/Popover.js +147 -0
  119. package/dist/components/Table/components/newComponents/Popover/Popover.js.map +1 -0
  120. package/dist/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.js +82 -0
  121. package/dist/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.js.map +1 -0
  122. package/dist/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.js +84 -0
  123. package/dist/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.js.map +1 -0
  124. package/dist/components/Table/components/newComponents/ThemeProvider/ThemeContext.js +33 -0
  125. package/dist/components/Table/components/newComponents/ThemeProvider/ThemeContext.js.map +1 -0
  126. package/dist/components/Table/components/newComponents/ThemeProvider/ThemeProvider.js +204 -0
  127. package/dist/components/Table/components/newComponents/ThemeProvider/ThemeProvider.js.map +1 -0
  128. package/dist/components/Table/components/newComponents/Toast/Toast.js +141 -0
  129. package/dist/components/Table/components/newComponents/Toast/Toast.js.map +1 -0
  130. package/dist/components/Table/components/newComponents/Toast/Toaster.js +123 -0
  131. package/dist/components/Table/components/newComponents/Toast/Toaster.js.map +1 -0
  132. package/dist/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.js +77 -0
  133. package/dist/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.js.map +1 -0
  134. package/dist/components/Table/components/newComponents/pagination/Pagination.js +80 -0
  135. package/dist/components/Table/components/newComponents/pagination/Pagination.js.map +1 -0
  136. package/dist/components/Table/components/newComponents/pagination/Pagination.types.js +3 -0
  137. package/dist/components/Table/components/newComponents/pagination/Pagination.types.js.map +1 -0
  138. package/dist/components/Table/components/newComponents/pagination/index.js +8 -0
  139. package/dist/components/Table/components/newComponents/pagination/index.js.map +1 -0
  140. package/dist/components/Table/components/newComponents/pagination/useIdAllocator.js +19 -0
  141. package/dist/components/Table/components/newComponents/pagination/useIdAllocator.js.map +1 -0
  142. package/dist/components/Table/components/newComponents/pagination/utils.js +16 -0
  143. package/dist/components/Table/components/newComponents/pagination/utils.js.map +1 -0
  144. package/dist/components/Table/components/newComponents/utils/color/ColorValue.js +517 -0
  145. package/dist/components/Table/components/newComponents/utils/color/ColorValue.js.map +1 -0
  146. package/dist/components/Table/components/newComponents/utils/color/index.js +22 -0
  147. package/dist/components/Table/components/newComponents/utils/color/index.js.map +1 -0
  148. package/dist/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.js +54 -0
  149. package/dist/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.js.map +1 -0
  150. package/dist/components/Table/components/newComponents/utils/components/Box.js +15 -0
  151. package/dist/components/Table/components/newComponents/utils/components/Box.js.map +1 -0
  152. package/dist/components/Table/components/newComponents/utils/components/ButtonBase.js +66 -0
  153. package/dist/components/Table/components/newComponents/utils/components/ButtonBase.js.map +1 -0
  154. package/dist/components/Table/components/newComponents/utils/components/FocusTrap.js +71 -0
  155. package/dist/components/Table/components/newComponents/utils/components/FocusTrap.js.map +1 -0
  156. package/dist/components/Table/components/newComponents/utils/components/InputContainer.js +73 -0
  157. package/dist/components/Table/components/newComponents/utils/components/InputContainer.js.map +1 -0
  158. package/dist/components/Table/components/newComponents/utils/components/InputFlexContainer.js +58 -0
  159. package/dist/components/Table/components/newComponents/utils/components/InputFlexContainer.js.map +1 -0
  160. package/dist/components/Table/components/newComponents/utils/components/InputWithIcon.js +12 -0
  161. package/dist/components/Table/components/newComponents/utils/components/InputWithIcon.js.map +1 -0
  162. package/dist/components/Table/components/newComponents/utils/components/LineClamp.js +59 -0
  163. package/dist/components/Table/components/newComponents/utils/components/LineClamp.js.map +1 -0
  164. package/dist/components/Table/components/newComponents/utils/components/MiddleTextTruncation.js +77 -0
  165. package/dist/components/Table/components/newComponents/utils/components/MiddleTextTruncation.js.map +1 -0
  166. package/dist/components/Table/components/newComponents/utils/components/Portal.js +70 -0
  167. package/dist/components/Table/components/newComponents/utils/components/Portal.js.map +1 -0
  168. package/dist/components/Table/components/newComponents/utils/components/Resizer.js +222 -0
  169. package/dist/components/Table/components/newComponents/utils/components/Resizer.js.map +1 -0
  170. package/dist/components/Table/components/newComponents/utils/components/ShadowRoot.js +82 -0
  171. package/dist/components/Table/components/newComponents/utils/components/ShadowRoot.js.map +1 -0
  172. package/dist/components/Table/components/newComponents/utils/components/VirtualScroll.js +325 -0
  173. package/dist/components/Table/components/newComponents/utils/components/VirtualScroll.js.map +1 -0
  174. package/dist/components/Table/components/newComponents/utils/components/WithCSSTransition.js +73 -0
  175. package/dist/components/Table/components/newComponents/utils/components/WithCSSTransition.js.map +1 -0
  176. package/dist/components/Table/components/newComponents/utils/components/index.js +5 -0
  177. package/dist/components/Table/components/newComponents/utils/components/index.js.map +1 -0
  178. package/dist/components/Table/components/newComponents/utils/functions/colors.js +41 -0
  179. package/dist/components/Table/components/newComponents/utils/functions/colors.js.map +1 -0
  180. package/dist/components/Table/components/newComponents/utils/functions/date.js +22 -0
  181. package/dist/components/Table/components/newComponents/utils/functions/date.js.map +1 -0
  182. package/dist/components/Table/components/newComponents/utils/functions/dev.js +42 -0
  183. package/dist/components/Table/components/newComponents/utils/functions/dev.js.map +1 -0
  184. package/dist/components/Table/components/newComponents/utils/functions/dom.js +55 -0
  185. package/dist/components/Table/components/newComponents/utils/functions/dom.js.map +1 -0
  186. package/dist/components/Table/components/newComponents/utils/functions/focusable.js +35 -0
  187. package/dist/components/Table/components/newComponents/utils/functions/focusable.js.map +1 -0
  188. package/dist/components/Table/components/newComponents/utils/functions/import.js +46 -0
  189. package/dist/components/Table/components/newComponents/utils/functions/import.js.map +1 -0
  190. package/dist/components/Table/components/newComponents/utils/functions/index.js +31 -0
  191. package/dist/components/Table/components/newComponents/utils/functions/index.js.map +1 -0
  192. package/dist/components/Table/components/newComponents/utils/functions/numbers.js +38 -0
  193. package/dist/components/Table/components/newComponents/utils/functions/numbers.js.map +1 -0
  194. package/dist/components/Table/components/newComponents/utils/functions/polymorphic.js +115 -0
  195. package/dist/components/Table/components/newComponents/utils/functions/polymorphic.js.map +1 -0
  196. package/dist/components/Table/components/newComponents/utils/functions/react.js +59 -0
  197. package/dist/components/Table/components/newComponents/utils/functions/react.js.map +1 -0
  198. package/dist/components/Table/components/newComponents/utils/functions/supports.js +14 -0
  199. package/dist/components/Table/components/newComponents/utils/functions/supports.js.map +1 -0
  200. package/dist/components/Table/components/newComponents/utils/hooks/index.js +35 -0
  201. package/dist/components/Table/components/newComponents/utils/hooks/index.js.map +1 -0
  202. package/dist/components/Table/components/newComponents/utils/hooks/useContainerWidth.js +66 -0
  203. package/dist/components/Table/components/newComponents/utils/hooks/useContainerWidth.js.map +1 -0
  204. package/dist/components/Table/components/newComponents/utils/hooks/useControlledState.js +53 -0
  205. package/dist/components/Table/components/newComponents/utils/hooks/useControlledState.js.map +1 -0
  206. package/dist/components/Table/components/newComponents/utils/hooks/useDragAndDrop.js +130 -0
  207. package/dist/components/Table/components/newComponents/utils/hooks/useDragAndDrop.js.map +1 -0
  208. package/dist/components/Table/components/newComponents/utils/hooks/useEventListener.js +62 -0
  209. package/dist/components/Table/components/newComponents/utils/hooks/useEventListener.js.map +1 -0
  210. package/dist/components/Table/components/newComponents/utils/hooks/useGlobals.js +75 -0
  211. package/dist/components/Table/components/newComponents/utils/hooks/useGlobals.js.map +1 -0
  212. package/dist/components/Table/components/newComponents/utils/hooks/useId.js +47 -0
  213. package/dist/components/Table/components/newComponents/utils/hooks/useId.js.map +1 -0
  214. package/dist/components/Table/components/newComponents/utils/hooks/useIntersection.js +69 -0
  215. package/dist/components/Table/components/newComponents/utils/hooks/useIntersection.js.map +1 -0
  216. package/dist/components/Table/components/newComponents/utils/hooks/useIsClient.js +40 -0
  217. package/dist/components/Table/components/newComponents/utils/hooks/useIsClient.js.map +1 -0
  218. package/dist/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.js +41 -0
  219. package/dist/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.js.map +1 -0
  220. package/dist/components/Table/components/newComponents/utils/hooks/useLatestRef.js +47 -0
  221. package/dist/components/Table/components/newComponents/utils/hooks/useLatestRef.js.map +1 -0
  222. package/dist/components/Table/components/newComponents/utils/hooks/useMediaQuery.js +64 -0
  223. package/dist/components/Table/components/newComponents/utils/hooks/useMediaQuery.js.map +1 -0
  224. package/dist/components/Table/components/newComponents/utils/hooks/useMergedRefs.js +56 -0
  225. package/dist/components/Table/components/newComponents/utils/hooks/useMergedRefs.js.map +1 -0
  226. package/dist/components/Table/components/newComponents/utils/hooks/useOverflow.js +113 -0
  227. package/dist/components/Table/components/newComponents/utils/hooks/useOverflow.js.map +1 -0
  228. package/dist/components/Table/components/newComponents/utils/hooks/useResizeObserver.js +72 -0
  229. package/dist/components/Table/components/newComponents/utils/hooks/useResizeObserver.js.map +1 -0
  230. package/dist/components/Table/components/newComponents/utils/hooks/useSafeContext.js +44 -0
  231. package/dist/components/Table/components/newComponents/utils/hooks/useSafeContext.js.map +1 -0
  232. package/dist/components/Table/components/newComponents/utils/index.js +26 -0
  233. package/dist/components/Table/components/newComponents/utils/index.js.map +1 -0
  234. package/dist/components/Table/components/newComponents/utils/props.js +3 -0
  235. package/dist/components/Table/components/newComponents/utils/props.js.map +1 -0
  236. package/dist/components/Table/components/newComponents/utils/types.js +3 -0
  237. package/dist/components/Table/components/newComponents/utils/types.js.map +1 -0
  238. package/dist/components/Table/components/useLeafyGreenTable/ReactVirtual.types.js +3 -0
  239. package/dist/components/Table/components/useLeafyGreenTable/ReactVirtual.types.js.map +1 -0
  240. package/dist/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js +22 -0
  241. package/dist/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js.map +1 -0
  242. package/dist/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js +22 -0
  243. package/dist/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js.map +1 -0
  244. package/dist/components/Table/components/useLeafyGreenTable/index.js +23 -0
  245. package/dist/components/Table/components/useLeafyGreenTable/index.js.map +1 -0
  246. package/dist/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js +134 -0
  247. package/dist/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -0
  248. package/dist/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.js +3 -0
  249. package/dist/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.js.map +1 -0
  250. package/dist/components/Table/components/utils/areAncestorsExpanded.js +25 -0
  251. package/dist/components/Table/components/utils/areAncestorsExpanded.js.map +1 -0
  252. package/dist/components/Table/components/utils/getParentRowId.js +19 -0
  253. package/dist/components/Table/components/utils/getParentRowId.js.map +1 -0
  254. package/dist/components/Table/components/utils/types.js +3 -0
  255. package/dist/components/Table/components/utils/types.js.map +1 -0
  256. package/dist/esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
  257. package/dist/esm/components/Table/Table.types.d.ts +40 -0
  258. package/dist/esm/components/Table/Table.types.d.ts.map +1 -0
  259. package/dist/esm/components/Table/components/Cell/Cell.d.ts +7 -0
  260. package/dist/esm/components/Table/components/Cell/Cell.d.ts.map +1 -0
  261. package/dist/esm/components/Table/components/Cell/Cell.types.d.ts +68 -0
  262. package/dist/esm/components/Table/components/Cell/Cell.types.d.ts.map +1 -0
  263. package/dist/esm/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts +5 -0
  264. package/dist/esm/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts.map +1 -0
  265. package/dist/esm/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts +23 -0
  266. package/dist/esm/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts.map +1 -0
  267. package/dist/esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts +4 -0
  268. package/dist/esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts.map +1 -0
  269. package/dist/esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts +6 -0
  270. package/dist/esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts.map +1 -0
  271. package/dist/esm/components/Table/components/Cell/HeaderCell/index.d.ts +4 -0
  272. package/dist/esm/components/Table/components/Cell/HeaderCell/index.d.ts.map +1 -0
  273. package/dist/esm/components/Table/components/Cell/InternalCell.d.ts +14 -0
  274. package/dist/esm/components/Table/components/Cell/InternalCell.d.ts.map +1 -0
  275. package/dist/esm/components/Table/components/Cell/index.d.ts +5 -0
  276. package/dist/esm/components/Table/components/Cell/index.d.ts.map +1 -0
  277. package/dist/esm/components/Table/components/ExpandedContent/ExpandedContent.d.ts +7 -0
  278. package/dist/esm/components/Table/components/ExpandedContent/ExpandedContent.d.ts.map +1 -0
  279. package/dist/esm/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts +6 -0
  280. package/dist/esm/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts.map +1 -0
  281. package/dist/esm/components/Table/components/ExpandedContent/index.d.ts +4 -0
  282. package/dist/esm/components/Table/components/ExpandedContent/index.d.ts.map +1 -0
  283. package/dist/esm/components/Table/components/Row/HeaderRow/HeaderRow.d.ts +8 -0
  284. package/dist/esm/components/Table/components/Row/HeaderRow/HeaderRow.d.ts.map +1 -0
  285. package/dist/esm/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts +4 -0
  286. package/dist/esm/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts.map +1 -0
  287. package/dist/esm/components/Table/components/Row/HeaderRow/index.d.ts +4 -0
  288. package/dist/esm/components/Table/components/Row/HeaderRow/index.d.ts.map +1 -0
  289. package/dist/esm/components/Table/components/Row/InternalRowBase.d.ts +4 -0
  290. package/dist/esm/components/Table/components/Row/InternalRowBase.d.ts.map +1 -0
  291. package/dist/esm/components/Table/components/Row/InternalRowWithRT.d.ts +4 -0
  292. package/dist/esm/components/Table/components/Row/InternalRowWithRT.d.ts.map +1 -0
  293. package/dist/esm/components/Table/components/Row/InternalRowWithoutRT.d.ts +7 -0
  294. package/dist/esm/components/Table/components/Row/InternalRowWithoutRT.d.ts.map +1 -0
  295. package/dist/esm/components/Table/components/Row/Row.d.ts +16 -0
  296. package/dist/esm/components/Table/components/Row/Row.d.ts.map +1 -0
  297. package/dist/esm/components/Table/components/Row/Row.types.d.ts +23 -0
  298. package/dist/esm/components/Table/components/Row/Row.types.d.ts.map +1 -0
  299. package/dist/esm/components/Table/components/Row/RowCellChildren.d.ts +9 -0
  300. package/dist/esm/components/Table/components/Row/RowCellChildren.d.ts.map +1 -0
  301. package/dist/esm/components/Table/components/Row/RowContext.d.ts +8 -0
  302. package/dist/esm/components/Table/components/Row/RowContext.d.ts.map +1 -0
  303. package/dist/esm/components/Table/components/Row/index.d.ts +6 -0
  304. package/dist/esm/components/Table/components/Row/index.d.ts.map +1 -0
  305. package/dist/esm/components/Table/components/TableBody/TableBody.d.ts +7 -0
  306. package/dist/esm/components/Table/components/TableBody/TableBody.d.ts.map +1 -0
  307. package/dist/esm/components/Table/components/TableBody/TableBody.types.d.ts +4 -0
  308. package/dist/esm/components/Table/components/TableBody/TableBody.types.d.ts.map +1 -0
  309. package/dist/esm/components/Table/components/TableBody/index.d.ts +4 -0
  310. package/dist/esm/components/Table/components/TableBody/index.d.ts.map +1 -0
  311. package/dist/esm/components/Table/components/TableContext/TableContext.d.ts +7 -0
  312. package/dist/esm/components/Table/components/TableContext/TableContext.d.ts.map +1 -0
  313. package/dist/esm/components/Table/components/TableContext/TableContext.types.d.ts +14 -0
  314. package/dist/esm/components/Table/components/TableContext/TableContext.types.d.ts.map +1 -0
  315. package/dist/esm/components/Table/components/TableContext/index.d.ts +4 -0
  316. package/dist/esm/components/Table/components/TableContext/index.d.ts.map +1 -0
  317. package/dist/esm/components/Table/components/TableHead/TableHead.d.ts +8 -0
  318. package/dist/esm/components/Table/components/TableHead/TableHead.d.ts.map +1 -0
  319. package/dist/esm/components/Table/components/TableHead/TableHead.types.d.ts +8 -0
  320. package/dist/esm/components/Table/components/TableHead/TableHead.types.d.ts.map +1 -0
  321. package/dist/esm/components/Table/components/TableHead/index.d.ts +4 -0
  322. package/dist/esm/components/Table/components/TableHead/index.d.ts.map +1 -0
  323. package/dist/esm/components/Table/components/TableHeader/TableHeader.d.ts +18 -0
  324. package/dist/esm/components/Table/components/TableHeader/TableHeader.d.ts.map +1 -0
  325. package/dist/esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts +15 -0
  326. package/dist/esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts.map +1 -0
  327. package/dist/esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts +10 -0
  328. package/dist/esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts.map +1 -0
  329. package/dist/esm/components/Table/components/ToggleExpandedIcon/index.d.ts +4 -0
  330. package/dist/esm/components/Table/components/ToggleExpandedIcon/index.d.ts.map +1 -0
  331. package/dist/esm/components/Table/components/newComponents/Buttons/Button.d.ts +46 -0
  332. package/dist/esm/components/Table/components/newComponents/Buttons/Button.d.ts.map +1 -0
  333. package/dist/esm/components/Table/components/newComponents/Buttons/DropdownButton.d.ts +32 -0
  334. package/dist/esm/components/Table/components/newComponents/Buttons/DropdownButton.d.ts.map +1 -0
  335. package/dist/esm/components/Table/components/newComponents/Buttons/IconButton.d.ts +33 -0
  336. package/dist/esm/components/Table/components/newComponents/Buttons/IconButton.d.ts.map +1 -0
  337. package/dist/esm/components/Table/components/newComponents/Buttons/IdeasButton.d.ts +20 -0
  338. package/dist/esm/components/Table/components/newComponents/Buttons/IdeasButton.d.ts.map +1 -0
  339. package/dist/esm/components/Table/components/newComponents/Buttons/SplitButton.d.ts +47 -0
  340. package/dist/esm/components/Table/components/newComponents/Buttons/SplitButton.d.ts.map +1 -0
  341. package/dist/esm/components/Table/components/newComponents/Checkbox/Checkbox.d.ts +50 -0
  342. package/dist/esm/components/Table/components/newComponents/Checkbox/Checkbox.d.ts.map +1 -0
  343. package/dist/esm/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts +40 -0
  344. package/dist/esm/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  345. package/dist/esm/components/Table/components/newComponents/Input/Input.d.ts +24 -0
  346. package/dist/esm/components/Table/components/newComponents/Input/Input.d.ts.map +1 -0
  347. package/dist/esm/components/Table/components/newComponents/Menu/Menu.d.ts +22 -0
  348. package/dist/esm/components/Table/components/newComponents/Menu/Menu.d.ts.map +1 -0
  349. package/dist/esm/components/Table/components/newComponents/Menu/MenuDivider.d.ts +17 -0
  350. package/dist/esm/components/Table/components/newComponents/Menu/MenuDivider.d.ts.map +1 -0
  351. package/dist/esm/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts +22 -0
  352. package/dist/esm/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts.map +1 -0
  353. package/dist/esm/components/Table/components/newComponents/Menu/MenuItem.d.ts +68 -0
  354. package/dist/esm/components/Table/components/newComponents/Menu/MenuItem.d.ts.map +1 -0
  355. package/dist/esm/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts +31 -0
  356. package/dist/esm/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts.map +1 -0
  357. package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts +19 -0
  358. package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts.map +1 -0
  359. package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts +14 -0
  360. package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts.map +1 -0
  361. package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts +22 -0
  362. package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts.map +1 -0
  363. package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts +82 -0
  364. package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts.map +1 -0
  365. package/dist/esm/components/Table/components/newComponents/Polymorphic/index.d.ts +5 -0
  366. package/dist/esm/components/Table/components/newComponents/Polymorphic/index.d.ts.map +1 -0
  367. package/dist/esm/components/Table/components/newComponents/Popover/Popover.d.ts +153 -0
  368. package/dist/esm/components/Table/components/newComponents/Popover/Popover.d.ts.map +1 -0
  369. package/dist/esm/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts +57 -0
  370. package/dist/esm/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts.map +1 -0
  371. package/dist/esm/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts +46 -0
  372. package/dist/esm/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts.map +1 -0
  373. package/dist/esm/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts +8 -0
  374. package/dist/esm/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts.map +1 -0
  375. package/dist/esm/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts +108 -0
  376. package/dist/esm/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  377. package/dist/esm/components/Table/components/newComponents/Toast/Toast.d.ts +79 -0
  378. package/dist/esm/components/Table/components/newComponents/Toast/Toast.d.ts.map +1 -0
  379. package/dist/esm/components/Table/components/newComponents/Toast/Toaster.d.ts +47 -0
  380. package/dist/esm/components/Table/components/newComponents/Toast/Toaster.d.ts.map +1 -0
  381. package/dist/esm/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts +23 -0
  382. package/dist/esm/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
  383. package/dist/esm/components/Table/components/newComponents/pagination/Pagination.d.ts +18 -0
  384. package/dist/esm/components/Table/components/newComponents/pagination/Pagination.d.ts.map +1 -0
  385. package/dist/esm/components/Table/components/newComponents/pagination/Pagination.types.d.ts +58 -0
  386. package/dist/esm/components/Table/components/newComponents/pagination/Pagination.types.d.ts.map +1 -0
  387. package/dist/esm/components/Table/components/newComponents/pagination/index.d.ts +4 -0
  388. package/dist/esm/components/Table/components/newComponents/pagination/index.d.ts.map +1 -0
  389. package/dist/esm/components/Table/components/newComponents/pagination/useIdAllocator.d.ts +7 -0
  390. package/dist/esm/components/Table/components/newComponents/pagination/useIdAllocator.d.ts.map +1 -0
  391. package/dist/esm/components/Table/components/newComponents/pagination/utils.d.ts +4 -0
  392. package/dist/esm/components/Table/components/newComponents/pagination/utils.d.ts.map +1 -0
  393. package/dist/esm/components/Table/components/newComponents/utils/color/ColorValue.d.ts +181 -0
  394. package/dist/esm/components/Table/components/newComponents/utils/color/ColorValue.d.ts.map +1 -0
  395. package/dist/esm/components/Table/components/newComponents/utils/color/index.d.ts +2 -0
  396. package/dist/esm/components/Table/components/newComponents/utils/color/index.d.ts.map +1 -0
  397. package/dist/esm/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts +12 -0
  398. package/dist/esm/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts.map +1 -0
  399. package/dist/esm/components/Table/components/newComponents/utils/components/Box.d.ts +7 -0
  400. package/dist/esm/components/Table/components/newComponents/utils/components/Box.d.ts.map +1 -0
  401. package/dist/esm/components/Table/components/newComponents/utils/components/ButtonBase.d.ts +15 -0
  402. package/dist/esm/components/Table/components/newComponents/utils/components/ButtonBase.d.ts.map +1 -0
  403. package/dist/esm/components/Table/components/newComponents/utils/components/FocusTrap.d.ts +12 -0
  404. package/dist/esm/components/Table/components/newComponents/utils/components/FocusTrap.d.ts.map +1 -0
  405. package/dist/esm/components/Table/components/newComponents/utils/components/InputContainer.d.ts +20 -0
  406. package/dist/esm/components/Table/components/newComponents/utils/components/InputContainer.d.ts.map +1 -0
  407. package/dist/esm/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts +31 -0
  408. package/dist/esm/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts.map +1 -0
  409. package/dist/esm/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts +3 -0
  410. package/dist/esm/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts.map +1 -0
  411. package/dist/esm/components/Table/components/newComponents/utils/components/LineClamp.d.ts +6 -0
  412. package/dist/esm/components/Table/components/newComponents/utils/components/LineClamp.d.ts.map +1 -0
  413. package/dist/esm/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts +35 -0
  414. package/dist/esm/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts.map +1 -0
  415. package/dist/esm/components/Table/components/newComponents/utils/components/Portal.d.ts +32 -0
  416. package/dist/esm/components/Table/components/newComponents/utils/components/Portal.d.ts.map +1 -0
  417. package/dist/esm/components/Table/components/newComponents/utils/components/Resizer.d.ts +38 -0
  418. package/dist/esm/components/Table/components/newComponents/utils/components/Resizer.d.ts.map +1 -0
  419. package/dist/esm/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts +12 -0
  420. package/dist/esm/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts.map +1 -0
  421. package/dist/esm/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts +76 -0
  422. package/dist/esm/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts.map +1 -0
  423. package/dist/esm/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts +7 -0
  424. package/dist/esm/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts.map +1 -0
  425. package/dist/esm/components/Table/components/newComponents/utils/components/index.d.ts +1 -0
  426. package/dist/esm/components/Table/components/newComponents/utils/components/index.d.ts.map +1 -0
  427. package/dist/esm/components/Table/components/newComponents/utils/functions/colors.d.ts +21 -0
  428. package/dist/esm/components/Table/components/newComponents/utils/functions/colors.d.ts.map +1 -0
  429. package/dist/esm/components/Table/components/newComponents/utils/functions/date.d.ts +5 -0
  430. package/dist/esm/components/Table/components/newComponents/utils/functions/date.d.ts.map +1 -0
  431. package/dist/esm/components/Table/components/newComponents/utils/functions/dev.d.ts +12 -0
  432. package/dist/esm/components/Table/components/newComponents/utils/functions/dev.d.ts.map +1 -0
  433. package/dist/esm/components/Table/components/newComponents/utils/functions/dom.d.ts +24 -0
  434. package/dist/esm/components/Table/components/newComponents/utils/functions/dom.d.ts.map +1 -0
  435. package/dist/esm/components/Table/components/newComponents/utils/functions/focusable.d.ts +9 -0
  436. package/dist/esm/components/Table/components/newComponents/utils/functions/focusable.d.ts.map +1 -0
  437. package/dist/esm/components/Table/components/newComponents/utils/functions/import.d.ts +13 -0
  438. package/dist/esm/components/Table/components/newComponents/utils/functions/import.d.ts.map +1 -0
  439. package/dist/esm/components/Table/components/newComponents/utils/functions/index.d.ts +11 -0
  440. package/dist/esm/components/Table/components/newComponents/utils/functions/index.d.ts.map +1 -0
  441. package/dist/esm/components/Table/components/newComponents/utils/functions/numbers.d.ts +16 -0
  442. package/dist/esm/components/Table/components/newComponents/utils/functions/numbers.d.ts.map +1 -0
  443. package/dist/esm/components/Table/components/newComponents/utils/functions/polymorphic.d.ts +203 -0
  444. package/dist/esm/components/Table/components/newComponents/utils/functions/polymorphic.d.ts.map +1 -0
  445. package/dist/esm/components/Table/components/newComponents/utils/functions/react.d.ts +9 -0
  446. package/dist/esm/components/Table/components/newComponents/utils/functions/react.d.ts.map +1 -0
  447. package/dist/esm/components/Table/components/newComponents/utils/functions/supports.d.ts +5 -0
  448. package/dist/esm/components/Table/components/newComponents/utils/functions/supports.d.ts.map +1 -0
  449. package/dist/esm/components/Table/components/newComponents/utils/hooks/index.d.ts +15 -0
  450. package/dist/esm/components/Table/components/newComponents/utils/hooks/index.d.ts.map +1 -0
  451. package/dist/esm/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts +17 -0
  452. package/dist/esm/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts.map +1 -0
  453. package/dist/esm/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts +14 -0
  454. package/dist/esm/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts.map +1 -0
  455. package/dist/esm/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts +14 -0
  456. package/dist/esm/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts.map +1 -0
  457. package/dist/esm/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts +11 -0
  458. package/dist/esm/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts.map +1 -0
  459. package/dist/esm/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts +21 -0
  460. package/dist/esm/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts.map +1 -0
  461. package/dist/esm/components/Table/components/newComponents/utils/hooks/useId.d.ts +6 -0
  462. package/dist/esm/components/Table/components/newComponents/utils/hooks/useId.d.ts.map +1 -0
  463. package/dist/esm/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts +14 -0
  464. package/dist/esm/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts.map +1 -0
  465. package/dist/esm/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts +2 -0
  466. package/dist/esm/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts.map +1 -0
  467. package/dist/esm/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts +11 -0
  468. package/dist/esm/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
  469. package/dist/esm/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts +10 -0
  470. package/dist/esm/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts.map +1 -0
  471. package/dist/esm/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts +2 -0
  472. package/dist/esm/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts.map +1 -0
  473. package/dist/esm/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts +10 -0
  474. package/dist/esm/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts.map +1 -0
  475. package/dist/esm/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts +25 -0
  476. package/dist/esm/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts.map +1 -0
  477. package/dist/esm/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts +14 -0
  478. package/dist/esm/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts.map +1 -0
  479. package/dist/esm/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts +7 -0
  480. package/dist/esm/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts.map +1 -0
  481. package/dist/esm/components/Table/components/newComponents/utils/index.d.ts +6 -0
  482. package/dist/esm/components/Table/components/newComponents/utils/index.d.ts.map +1 -0
  483. package/dist/esm/components/Table/components/newComponents/utils/props.d.ts +29 -0
  484. package/dist/esm/components/Table/components/newComponents/utils/props.d.ts.map +1 -0
  485. package/dist/esm/components/Table/components/newComponents/utils/types.d.ts +6 -0
  486. package/dist/esm/components/Table/components/newComponents/utils/types.d.ts.map +1 -0
  487. package/dist/esm/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts +3 -0
  488. package/dist/esm/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts.map +1 -0
  489. package/dist/esm/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts +6 -0
  490. package/dist/esm/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts.map +1 -0
  491. package/dist/esm/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts +7 -0
  492. package/dist/esm/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts.map +1 -0
  493. package/dist/esm/components/Table/components/useLeafyGreenTable/index.d.ts +5 -0
  494. package/dist/esm/components/Table/components/useLeafyGreenTable/index.d.ts.map +1 -0
  495. package/dist/esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts +5 -0
  496. package/dist/esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -0
  497. package/dist/esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts +54 -0
  498. package/dist/esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map +1 -0
  499. package/dist/esm/components/Table/components/utils/areAncestorsExpanded.d.ts +11 -0
  500. package/dist/esm/components/Table/components/utils/areAncestorsExpanded.d.ts.map +1 -0
  501. package/dist/esm/components/Table/components/utils/getParentRowId.d.ts +11 -0
  502. package/dist/esm/components/Table/components/utils/getParentRowId.d.ts.map +1 -0
  503. package/dist/esm/components/Table/components/utils/types.d.ts +4 -0
  504. package/dist/esm/components/Table/components/utils/types.d.ts.map +1 -0
  505. package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
  506. package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
  507. package/dist/esm/src/components/Table/Table.module.scss.js +2 -0
  508. package/dist/esm/src/components/Table/Table.module.scss.js.map +1 -0
  509. package/dist/esm/src/components/Table/components/Cell/Cell.js +2 -0
  510. package/dist/esm/src/components/Table/components/Cell/Cell.js.map +1 -0
  511. package/dist/esm/src/components/Table/components/Cell/Cell.module.scss.js +2 -0
  512. package/dist/esm/src/components/Table/components/Cell/Cell.module.scss.js.map +1 -0
  513. package/dist/esm/src/components/Table/components/Cell/Cell.types.js +2 -0
  514. package/dist/esm/src/components/Table/components/Cell/Cell.types.js.map +1 -0
  515. package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js +2 -0
  516. package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js.map +1 -0
  517. package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.module.scss.js +2 -0
  518. package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.module.scss.js.map +1 -0
  519. package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.types.js +2 -0
  520. package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.types.js.map +1 -0
  521. package/dist/esm/src/components/Table/components/Cell/InternalCell.js +2 -0
  522. package/dist/esm/src/components/Table/components/Cell/InternalCell.js.map +1 -0
  523. package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.js +2 -0
  524. package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.js.map +1 -0
  525. package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js +2 -0
  526. package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js.map +1 -0
  527. package/dist/esm/src/components/Table/components/Row/HeaderRow/HeaderRow.js +2 -0
  528. package/dist/esm/src/components/Table/components/Row/HeaderRow/HeaderRow.js.map +1 -0
  529. package/dist/esm/src/components/Table/components/Row/InternalRowBase.js +2 -0
  530. package/dist/esm/src/components/Table/components/Row/InternalRowBase.js.map +1 -0
  531. package/dist/esm/src/components/Table/components/Row/InternalRowWithRT.js +2 -0
  532. package/dist/esm/src/components/Table/components/Row/InternalRowWithRT.js.map +1 -0
  533. package/dist/esm/src/components/Table/components/Row/InternalRowWithoutRT.js +2 -0
  534. package/dist/esm/src/components/Table/components/Row/InternalRowWithoutRT.js.map +1 -0
  535. package/dist/esm/src/components/Table/components/Row/Row.js +2 -0
  536. package/dist/esm/src/components/Table/components/Row/Row.js.map +1 -0
  537. package/dist/esm/src/components/Table/components/Row/Row.module.scss.js +2 -0
  538. package/dist/esm/src/components/Table/components/Row/Row.module.scss.js.map +1 -0
  539. package/dist/esm/src/components/Table/components/Row/RowCellChildren.js +2 -0
  540. package/dist/esm/src/components/Table/components/Row/RowCellChildren.js.map +1 -0
  541. package/dist/esm/src/components/Table/components/Row/RowContext.js +2 -0
  542. package/dist/esm/src/components/Table/components/Row/RowContext.js.map +1 -0
  543. package/dist/esm/src/components/Table/components/TableBody/TableBody.js +2 -0
  544. package/dist/esm/src/components/Table/components/TableBody/TableBody.js.map +1 -0
  545. package/dist/esm/src/components/Table/components/TableContext/TableContext.js +2 -0
  546. package/dist/esm/src/components/Table/components/TableContext/TableContext.js.map +1 -0
  547. package/dist/esm/src/components/Table/components/TableHead/TableHead.js +2 -0
  548. package/dist/esm/src/components/Table/components/TableHead/TableHead.js.map +1 -0
  549. package/dist/esm/src/components/Table/components/TableHead/TableHead.module.scss.js +2 -0
  550. package/dist/esm/src/components/Table/components/TableHead/TableHead.module.scss.js.map +1 -0
  551. package/dist/esm/src/components/Table/components/TableHeader/TableHeader.js +2 -0
  552. package/dist/esm/src/components/Table/components/TableHeader/TableHeader.js.map +1 -0
  553. package/dist/esm/src/components/Table/components/TableHeader/TableHeader.module.scss.js +2 -0
  554. package/dist/esm/src/components/Table/components/TableHeader/TableHeader.module.scss.js.map +1 -0
  555. package/dist/esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js +2 -0
  556. package/dist/esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js.map +1 -0
  557. package/dist/esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js +2 -0
  558. package/dist/esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js.map +1 -0
  559. package/dist/esm/src/components/Table/components/ToggleExpandedIcon/index.js +2 -0
  560. package/dist/esm/src/components/Table/components/ToggleExpandedIcon/index.js.map +1 -0
  561. package/dist/esm/src/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js +2 -0
  562. package/dist/esm/src/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js.map +1 -0
  563. package/dist/esm/src/components/Table/components/newComponents/Menu/Menu.js +2 -0
  564. package/dist/esm/src/components/Table/components/newComponents/Menu/Menu.js.map +1 -0
  565. package/dist/esm/src/components/Table/components/newComponents/Polymorphic/Polymorph.js +2 -0
  566. package/dist/esm/src/components/Table/components/newComponents/Polymorphic/Polymorph.js.map +1 -0
  567. package/dist/esm/src/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js +2 -0
  568. package/dist/esm/src/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js.map +1 -0
  569. package/dist/esm/src/components/Table/components/newComponents/Popover/Popover.js +2 -0
  570. package/dist/esm/src/components/Table/components/newComponents/Popover/Popover.js.map +1 -0
  571. package/dist/esm/src/components/Table/components/newComponents/ThemeProvider/ThemeContext.js +2 -0
  572. package/dist/esm/src/components/Table/components/newComponents/ThemeProvider/ThemeContext.js.map +1 -0
  573. package/dist/esm/src/components/Table/components/newComponents/Toast/Toaster.js +2 -0
  574. package/dist/esm/src/components/Table/components/newComponents/Toast/Toaster.js.map +1 -0
  575. package/dist/esm/src/components/Table/components/newComponents/pagination/Pagination.js +2 -0
  576. package/dist/esm/src/components/Table/components/newComponents/pagination/Pagination.js.map +1 -0
  577. package/dist/esm/src/components/Table/components/newComponents/pagination/Pagination.module.scss.js +2 -0
  578. package/dist/esm/src/components/Table/components/newComponents/pagination/Pagination.module.scss.js.map +1 -0
  579. package/dist/esm/src/components/Table/components/newComponents/pagination/index.js +2 -0
  580. package/dist/esm/src/components/Table/components/newComponents/pagination/index.js.map +1 -0
  581. package/dist/esm/src/components/Table/components/newComponents/pagination/useIdAllocator.js +2 -0
  582. package/dist/esm/src/components/Table/components/newComponents/pagination/useIdAllocator.js.map +1 -0
  583. package/dist/esm/src/components/Table/components/newComponents/pagination/utils.js +2 -0
  584. package/dist/esm/src/components/Table/components/newComponents/pagination/utils.js.map +1 -0
  585. package/dist/esm/src/components/Table/components/newComponents/utils/color/ColorValue.js +2 -0
  586. package/dist/esm/src/components/Table/components/newComponents/utils/color/ColorValue.js.map +1 -0
  587. package/dist/esm/src/components/Table/components/newComponents/utils/components/Box.js +2 -0
  588. package/dist/esm/src/components/Table/components/newComponents/utils/components/Box.js.map +1 -0
  589. package/dist/esm/src/components/Table/components/newComponents/utils/components/ButtonBase.js +2 -0
  590. package/dist/esm/src/components/Table/components/newComponents/utils/components/ButtonBase.js.map +1 -0
  591. package/dist/esm/src/components/Table/components/newComponents/utils/components/Portal.js +2 -0
  592. package/dist/esm/src/components/Table/components/newComponents/utils/components/Portal.js.map +1 -0
  593. package/dist/esm/src/components/Table/components/newComponents/utils/functions/colors.js +2 -0
  594. package/dist/esm/src/components/Table/components/newComponents/utils/functions/colors.js.map +1 -0
  595. package/dist/esm/src/components/Table/components/newComponents/utils/functions/dev.js +2 -0
  596. package/dist/esm/src/components/Table/components/newComponents/utils/functions/dev.js.map +1 -0
  597. package/dist/esm/src/components/Table/components/newComponents/utils/functions/dom.js +2 -0
  598. package/dist/esm/src/components/Table/components/newComponents/utils/functions/dom.js.map +1 -0
  599. package/dist/esm/src/components/Table/components/newComponents/utils/functions/focusable.js +2 -0
  600. package/dist/esm/src/components/Table/components/newComponents/utils/functions/focusable.js.map +1 -0
  601. package/dist/esm/src/components/Table/components/newComponents/utils/functions/polymorphic.js +2 -0
  602. package/dist/esm/src/components/Table/components/newComponents/utils/functions/polymorphic.js.map +1 -0
  603. package/dist/esm/src/components/Table/components/newComponents/utils/functions/react.js +2 -0
  604. package/dist/esm/src/components/Table/components/newComponents/utils/functions/react.js.map +1 -0
  605. package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useControlledState.js +2 -0
  606. package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useControlledState.js.map +1 -0
  607. package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useGlobals.js +2 -0
  608. package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useGlobals.js.map +1 -0
  609. package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useIsClient.js +2 -0
  610. package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useIsClient.js.map +1 -0
  611. package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useMergedRefs.js +2 -0
  612. package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useMergedRefs.js.map +1 -0
  613. package/dist/esm/src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js +2 -0
  614. package/dist/esm/src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js.map +1 -0
  615. package/dist/esm/src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js +2 -0
  616. package/dist/esm/src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js.map +1 -0
  617. package/dist/esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js +2 -0
  618. package/dist/esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -0
  619. package/dist/esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js +2 -0
  620. package/dist/esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js.map +1 -0
  621. package/dist/esm/src/components/Table/components/utils/areAncestorsExpanded.js +2 -0
  622. package/dist/esm/src/components/Table/components/utils/areAncestorsExpanded.js.map +1 -0
  623. package/dist/esm/src/components/Table/components/utils/getParentRowId.js +2 -0
  624. package/dist/esm/src/components/Table/components/utils/getParentRowId.js.map +1 -0
  625. package/dist/main.js +1 -1
  626. package/dist/main.js.map +1 -1
  627. package/dist/mocked_classnames_esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
  628. package/dist/mocked_classnames_esm/components/Table/Table.types.d.ts +40 -0
  629. package/dist/mocked_classnames_esm/components/Table/Table.types.d.ts.map +1 -0
  630. package/dist/mocked_classnames_esm/components/Table/components/Cell/Cell.d.ts +7 -0
  631. package/dist/mocked_classnames_esm/components/Table/components/Cell/Cell.d.ts.map +1 -0
  632. package/dist/mocked_classnames_esm/components/Table/components/Cell/Cell.types.d.ts +68 -0
  633. package/dist/mocked_classnames_esm/components/Table/components/Cell/Cell.types.d.ts.map +1 -0
  634. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts +5 -0
  635. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts.map +1 -0
  636. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts +23 -0
  637. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts.map +1 -0
  638. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts +4 -0
  639. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts.map +1 -0
  640. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts +6 -0
  641. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts.map +1 -0
  642. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/index.d.ts +4 -0
  643. package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/index.d.ts.map +1 -0
  644. package/dist/mocked_classnames_esm/components/Table/components/Cell/InternalCell.d.ts +14 -0
  645. package/dist/mocked_classnames_esm/components/Table/components/Cell/InternalCell.d.ts.map +1 -0
  646. package/dist/mocked_classnames_esm/components/Table/components/Cell/index.d.ts +5 -0
  647. package/dist/mocked_classnames_esm/components/Table/components/Cell/index.d.ts.map +1 -0
  648. package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/ExpandedContent.d.ts +7 -0
  649. package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/ExpandedContent.d.ts.map +1 -0
  650. package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts +6 -0
  651. package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts.map +1 -0
  652. package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/index.d.ts +4 -0
  653. package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/index.d.ts.map +1 -0
  654. package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/HeaderRow.d.ts +8 -0
  655. package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/HeaderRow.d.ts.map +1 -0
  656. package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts +4 -0
  657. package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts.map +1 -0
  658. package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/index.d.ts +4 -0
  659. package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/index.d.ts.map +1 -0
  660. package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowBase.d.ts +4 -0
  661. package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowBase.d.ts.map +1 -0
  662. package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowWithRT.d.ts +4 -0
  663. package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowWithRT.d.ts.map +1 -0
  664. package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowWithoutRT.d.ts +7 -0
  665. package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowWithoutRT.d.ts.map +1 -0
  666. package/dist/mocked_classnames_esm/components/Table/components/Row/Row.d.ts +16 -0
  667. package/dist/mocked_classnames_esm/components/Table/components/Row/Row.d.ts.map +1 -0
  668. package/dist/mocked_classnames_esm/components/Table/components/Row/Row.types.d.ts +23 -0
  669. package/dist/mocked_classnames_esm/components/Table/components/Row/Row.types.d.ts.map +1 -0
  670. package/dist/mocked_classnames_esm/components/Table/components/Row/RowCellChildren.d.ts +9 -0
  671. package/dist/mocked_classnames_esm/components/Table/components/Row/RowCellChildren.d.ts.map +1 -0
  672. package/dist/mocked_classnames_esm/components/Table/components/Row/RowContext.d.ts +8 -0
  673. package/dist/mocked_classnames_esm/components/Table/components/Row/RowContext.d.ts.map +1 -0
  674. package/dist/mocked_classnames_esm/components/Table/components/Row/index.d.ts +6 -0
  675. package/dist/mocked_classnames_esm/components/Table/components/Row/index.d.ts.map +1 -0
  676. package/dist/mocked_classnames_esm/components/Table/components/TableBody/TableBody.d.ts +7 -0
  677. package/dist/mocked_classnames_esm/components/Table/components/TableBody/TableBody.d.ts.map +1 -0
  678. package/dist/mocked_classnames_esm/components/Table/components/TableBody/TableBody.types.d.ts +4 -0
  679. package/dist/mocked_classnames_esm/components/Table/components/TableBody/TableBody.types.d.ts.map +1 -0
  680. package/dist/mocked_classnames_esm/components/Table/components/TableBody/index.d.ts +4 -0
  681. package/dist/mocked_classnames_esm/components/Table/components/TableBody/index.d.ts.map +1 -0
  682. package/dist/mocked_classnames_esm/components/Table/components/TableContext/TableContext.d.ts +7 -0
  683. package/dist/mocked_classnames_esm/components/Table/components/TableContext/TableContext.d.ts.map +1 -0
  684. package/dist/mocked_classnames_esm/components/Table/components/TableContext/TableContext.types.d.ts +14 -0
  685. package/dist/mocked_classnames_esm/components/Table/components/TableContext/TableContext.types.d.ts.map +1 -0
  686. package/dist/mocked_classnames_esm/components/Table/components/TableContext/index.d.ts +4 -0
  687. package/dist/mocked_classnames_esm/components/Table/components/TableContext/index.d.ts.map +1 -0
  688. package/dist/mocked_classnames_esm/components/Table/components/TableHead/TableHead.d.ts +8 -0
  689. package/dist/mocked_classnames_esm/components/Table/components/TableHead/TableHead.d.ts.map +1 -0
  690. package/dist/mocked_classnames_esm/components/Table/components/TableHead/TableHead.types.d.ts +8 -0
  691. package/dist/mocked_classnames_esm/components/Table/components/TableHead/TableHead.types.d.ts.map +1 -0
  692. package/dist/mocked_classnames_esm/components/Table/components/TableHead/index.d.ts +4 -0
  693. package/dist/mocked_classnames_esm/components/Table/components/TableHead/index.d.ts.map +1 -0
  694. package/dist/mocked_classnames_esm/components/Table/components/TableHeader/TableHeader.d.ts +18 -0
  695. package/dist/mocked_classnames_esm/components/Table/components/TableHeader/TableHeader.d.ts.map +1 -0
  696. package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts +15 -0
  697. package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts.map +1 -0
  698. package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts +10 -0
  699. package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts.map +1 -0
  700. package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/index.d.ts +4 -0
  701. package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/index.d.ts.map +1 -0
  702. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/Button.d.ts +46 -0
  703. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/Button.d.ts.map +1 -0
  704. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/DropdownButton.d.ts +32 -0
  705. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/DropdownButton.d.ts.map +1 -0
  706. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/IconButton.d.ts +33 -0
  707. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/IconButton.d.ts.map +1 -0
  708. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/IdeasButton.d.ts +20 -0
  709. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/IdeasButton.d.ts.map +1 -0
  710. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/SplitButton.d.ts +47 -0
  711. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/SplitButton.d.ts.map +1 -0
  712. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Checkbox/Checkbox.d.ts +50 -0
  713. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Checkbox/Checkbox.d.ts.map +1 -0
  714. package/dist/mocked_classnames_esm/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts +40 -0
  715. package/dist/mocked_classnames_esm/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  716. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Input/Input.d.ts +24 -0
  717. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Input/Input.d.ts.map +1 -0
  718. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/Menu.d.ts +22 -0
  719. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/Menu.d.ts.map +1 -0
  720. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuDivider.d.ts +17 -0
  721. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuDivider.d.ts.map +1 -0
  722. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts +22 -0
  723. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts.map +1 -0
  724. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuItem.d.ts +68 -0
  725. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuItem.d.ts.map +1 -0
  726. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts +31 -0
  727. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts.map +1 -0
  728. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts +19 -0
  729. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts.map +1 -0
  730. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts +14 -0
  731. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts.map +1 -0
  732. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts +22 -0
  733. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts.map +1 -0
  734. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts +82 -0
  735. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts.map +1 -0
  736. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/index.d.ts +5 -0
  737. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/index.d.ts.map +1 -0
  738. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Popover/Popover.d.ts +153 -0
  739. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Popover/Popover.d.ts.map +1 -0
  740. package/dist/mocked_classnames_esm/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts +57 -0
  741. package/dist/mocked_classnames_esm/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts.map +1 -0
  742. package/dist/mocked_classnames_esm/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts +46 -0
  743. package/dist/mocked_classnames_esm/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts.map +1 -0
  744. package/dist/mocked_classnames_esm/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts +8 -0
  745. package/dist/mocked_classnames_esm/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts.map +1 -0
  746. package/dist/mocked_classnames_esm/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts +108 -0
  747. package/dist/mocked_classnames_esm/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  748. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Toast/Toast.d.ts +79 -0
  749. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Toast/Toast.d.ts.map +1 -0
  750. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Toast/Toaster.d.ts +47 -0
  751. package/dist/mocked_classnames_esm/components/Table/components/newComponents/Toast/Toaster.d.ts.map +1 -0
  752. package/dist/mocked_classnames_esm/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts +23 -0
  753. package/dist/mocked_classnames_esm/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
  754. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/Pagination.d.ts +18 -0
  755. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/Pagination.d.ts.map +1 -0
  756. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/Pagination.types.d.ts +58 -0
  757. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/Pagination.types.d.ts.map +1 -0
  758. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/index.d.ts +4 -0
  759. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/index.d.ts.map +1 -0
  760. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/useIdAllocator.d.ts +7 -0
  761. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/useIdAllocator.d.ts.map +1 -0
  762. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/utils.d.ts +4 -0
  763. package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/utils.d.ts.map +1 -0
  764. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/color/ColorValue.d.ts +181 -0
  765. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/color/ColorValue.d.ts.map +1 -0
  766. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/color/index.d.ts +2 -0
  767. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/color/index.d.ts.map +1 -0
  768. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts +12 -0
  769. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts.map +1 -0
  770. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Box.d.ts +7 -0
  771. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Box.d.ts.map +1 -0
  772. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/ButtonBase.d.ts +15 -0
  773. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/ButtonBase.d.ts.map +1 -0
  774. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/FocusTrap.d.ts +12 -0
  775. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/FocusTrap.d.ts.map +1 -0
  776. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputContainer.d.ts +20 -0
  777. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputContainer.d.ts.map +1 -0
  778. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts +31 -0
  779. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts.map +1 -0
  780. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts +3 -0
  781. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts.map +1 -0
  782. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/LineClamp.d.ts +6 -0
  783. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/LineClamp.d.ts.map +1 -0
  784. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts +35 -0
  785. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts.map +1 -0
  786. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Portal.d.ts +32 -0
  787. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Portal.d.ts.map +1 -0
  788. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Resizer.d.ts +38 -0
  789. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Resizer.d.ts.map +1 -0
  790. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts +12 -0
  791. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts.map +1 -0
  792. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts +76 -0
  793. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts.map +1 -0
  794. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts +7 -0
  795. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts.map +1 -0
  796. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/index.d.ts +1 -0
  797. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/index.d.ts.map +1 -0
  798. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/colors.d.ts +21 -0
  799. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/colors.d.ts.map +1 -0
  800. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/date.d.ts +5 -0
  801. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/date.d.ts.map +1 -0
  802. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/dev.d.ts +12 -0
  803. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/dev.d.ts.map +1 -0
  804. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/dom.d.ts +24 -0
  805. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/dom.d.ts.map +1 -0
  806. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/focusable.d.ts +9 -0
  807. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/focusable.d.ts.map +1 -0
  808. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/import.d.ts +13 -0
  809. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/import.d.ts.map +1 -0
  810. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/index.d.ts +11 -0
  811. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/index.d.ts.map +1 -0
  812. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/numbers.d.ts +16 -0
  813. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/numbers.d.ts.map +1 -0
  814. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/polymorphic.d.ts +203 -0
  815. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/polymorphic.d.ts.map +1 -0
  816. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/react.d.ts +9 -0
  817. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/react.d.ts.map +1 -0
  818. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/supports.d.ts +5 -0
  819. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/supports.d.ts.map +1 -0
  820. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/index.d.ts +15 -0
  821. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/index.d.ts.map +1 -0
  822. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts +17 -0
  823. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts.map +1 -0
  824. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts +14 -0
  825. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts.map +1 -0
  826. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts +14 -0
  827. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts.map +1 -0
  828. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts +11 -0
  829. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts.map +1 -0
  830. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts +21 -0
  831. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts.map +1 -0
  832. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useId.d.ts +6 -0
  833. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useId.d.ts.map +1 -0
  834. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts +14 -0
  835. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts.map +1 -0
  836. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts +2 -0
  837. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts.map +1 -0
  838. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts +11 -0
  839. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
  840. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts +10 -0
  841. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts.map +1 -0
  842. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts +2 -0
  843. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts.map +1 -0
  844. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts +10 -0
  845. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts.map +1 -0
  846. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts +25 -0
  847. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts.map +1 -0
  848. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts +14 -0
  849. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts.map +1 -0
  850. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts +7 -0
  851. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts.map +1 -0
  852. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/index.d.ts +6 -0
  853. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/index.d.ts.map +1 -0
  854. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/props.d.ts +29 -0
  855. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/props.d.ts.map +1 -0
  856. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/types.d.ts +6 -0
  857. package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/types.d.ts.map +1 -0
  858. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts +3 -0
  859. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts.map +1 -0
  860. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts +6 -0
  861. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts.map +1 -0
  862. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts +7 -0
  863. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts.map +1 -0
  864. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/index.d.ts +5 -0
  865. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/index.d.ts.map +1 -0
  866. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts +5 -0
  867. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -0
  868. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts +54 -0
  869. package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map +1 -0
  870. package/dist/mocked_classnames_esm/components/Table/components/utils/areAncestorsExpanded.d.ts +11 -0
  871. package/dist/mocked_classnames_esm/components/Table/components/utils/areAncestorsExpanded.d.ts.map +1 -0
  872. package/dist/mocked_classnames_esm/components/Table/components/utils/getParentRowId.d.ts +11 -0
  873. package/dist/mocked_classnames_esm/components/Table/components/utils/getParentRowId.d.ts.map +1 -0
  874. package/dist/mocked_classnames_esm/components/Table/components/utils/types.d.ts +4 -0
  875. package/dist/mocked_classnames_esm/components/Table/components/utils/types.d.ts.map +1 -0
  876. package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
  877. package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
  878. package/dist/mocked_classnames_esm/src/components/Table/Table.module.scss.js +2 -0
  879. package/dist/mocked_classnames_esm/src/components/Table/Table.module.scss.js.map +1 -0
  880. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.js +2 -0
  881. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.js.map +1 -0
  882. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.module.scss.js +2 -0
  883. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.module.scss.js.map +1 -0
  884. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.types.js +2 -0
  885. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.types.js.map +1 -0
  886. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js +2 -0
  887. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js.map +1 -0
  888. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.module.scss.js +2 -0
  889. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.module.scss.js.map +1 -0
  890. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.types.js +2 -0
  891. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.types.js.map +1 -0
  892. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/InternalCell.js +2 -0
  893. package/dist/mocked_classnames_esm/src/components/Table/components/Cell/InternalCell.js.map +1 -0
  894. package/dist/mocked_classnames_esm/src/components/Table/components/ExpandedContent/ExpandedContent.js +2 -0
  895. package/dist/mocked_classnames_esm/src/components/Table/components/ExpandedContent/ExpandedContent.js.map +1 -0
  896. package/dist/mocked_classnames_esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js +2 -0
  897. package/dist/mocked_classnames_esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js.map +1 -0
  898. package/dist/mocked_classnames_esm/src/components/Table/components/Row/HeaderRow/HeaderRow.js +2 -0
  899. package/dist/mocked_classnames_esm/src/components/Table/components/Row/HeaderRow/HeaderRow.js.map +1 -0
  900. package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowBase.js +2 -0
  901. package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowBase.js.map +1 -0
  902. package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithRT.js +2 -0
  903. package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithRT.js.map +1 -0
  904. package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithoutRT.js +2 -0
  905. package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithoutRT.js.map +1 -0
  906. package/dist/mocked_classnames_esm/src/components/Table/components/Row/Row.js +2 -0
  907. package/dist/mocked_classnames_esm/src/components/Table/components/Row/Row.js.map +1 -0
  908. package/dist/mocked_classnames_esm/src/components/Table/components/Row/Row.module.scss.js +2 -0
  909. package/dist/mocked_classnames_esm/src/components/Table/components/Row/Row.module.scss.js.map +1 -0
  910. package/dist/mocked_classnames_esm/src/components/Table/components/Row/RowCellChildren.js +2 -0
  911. package/dist/mocked_classnames_esm/src/components/Table/components/Row/RowCellChildren.js.map +1 -0
  912. package/dist/mocked_classnames_esm/src/components/Table/components/Row/RowContext.js +2 -0
  913. package/dist/mocked_classnames_esm/src/components/Table/components/Row/RowContext.js.map +1 -0
  914. package/dist/mocked_classnames_esm/src/components/Table/components/TableBody/TableBody.js +2 -0
  915. package/dist/mocked_classnames_esm/src/components/Table/components/TableBody/TableBody.js.map +1 -0
  916. package/dist/mocked_classnames_esm/src/components/Table/components/TableContext/TableContext.js +2 -0
  917. package/dist/mocked_classnames_esm/src/components/Table/components/TableContext/TableContext.js.map +1 -0
  918. package/dist/mocked_classnames_esm/src/components/Table/components/TableHead/TableHead.js +2 -0
  919. package/dist/mocked_classnames_esm/src/components/Table/components/TableHead/TableHead.js.map +1 -0
  920. package/dist/mocked_classnames_esm/src/components/Table/components/TableHead/TableHead.module.scss.js +2 -0
  921. package/dist/mocked_classnames_esm/src/components/Table/components/TableHead/TableHead.module.scss.js.map +1 -0
  922. package/dist/mocked_classnames_esm/src/components/Table/components/TableHeader/TableHeader.js +2 -0
  923. package/dist/mocked_classnames_esm/src/components/Table/components/TableHeader/TableHeader.js.map +1 -0
  924. package/dist/mocked_classnames_esm/src/components/Table/components/TableHeader/TableHeader.module.scss.js +2 -0
  925. package/dist/mocked_classnames_esm/src/components/Table/components/TableHeader/TableHeader.module.scss.js.map +1 -0
  926. package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js +2 -0
  927. package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js.map +1 -0
  928. package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js +2 -0
  929. package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js.map +1 -0
  930. package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/index.js +2 -0
  931. package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/index.js.map +1 -0
  932. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js +2 -0
  933. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js.map +1 -0
  934. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Menu/Menu.js +2 -0
  935. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Menu/Menu.js.map +1 -0
  936. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Polymorphic/Polymorph.js +2 -0
  937. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Polymorphic/Polymorph.js.map +1 -0
  938. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js +2 -0
  939. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js.map +1 -0
  940. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Popover/Popover.js +2 -0
  941. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Popover/Popover.js.map +1 -0
  942. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/ThemeProvider/ThemeContext.js +2 -0
  943. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/ThemeProvider/ThemeContext.js.map +1 -0
  944. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Toast/Toaster.js +2 -0
  945. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Toast/Toaster.js.map +1 -0
  946. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/Pagination.js +2 -0
  947. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/Pagination.js.map +1 -0
  948. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/Pagination.module.scss.js +2 -0
  949. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/Pagination.module.scss.js.map +1 -0
  950. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/index.js +2 -0
  951. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/index.js.map +1 -0
  952. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/useIdAllocator.js +2 -0
  953. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/useIdAllocator.js.map +1 -0
  954. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/utils.js +2 -0
  955. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/utils.js.map +1 -0
  956. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/color/ColorValue.js +2 -0
  957. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/color/ColorValue.js.map +1 -0
  958. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/Box.js +2 -0
  959. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/Box.js.map +1 -0
  960. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/ButtonBase.js +2 -0
  961. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/ButtonBase.js.map +1 -0
  962. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/Portal.js +2 -0
  963. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/Portal.js.map +1 -0
  964. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/colors.js +2 -0
  965. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/colors.js.map +1 -0
  966. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/dev.js +2 -0
  967. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/dev.js.map +1 -0
  968. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/dom.js +2 -0
  969. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/dom.js.map +1 -0
  970. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/focusable.js +2 -0
  971. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/focusable.js.map +1 -0
  972. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/polymorphic.js +2 -0
  973. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/polymorphic.js.map +1 -0
  974. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/react.js +2 -0
  975. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/react.js.map +1 -0
  976. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useControlledState.js +2 -0
  977. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useControlledState.js.map +1 -0
  978. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useGlobals.js +2 -0
  979. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useGlobals.js.map +1 -0
  980. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useIsClient.js +2 -0
  981. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useIsClient.js.map +1 -0
  982. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useMergedRefs.js +2 -0
  983. package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useMergedRefs.js.map +1 -0
  984. package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js +2 -0
  985. package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js.map +1 -0
  986. package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js +2 -0
  987. package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js.map +1 -0
  988. package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js +2 -0
  989. package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -0
  990. package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js +2 -0
  991. package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js.map +1 -0
  992. package/dist/mocked_classnames_esm/src/components/Table/components/utils/areAncestorsExpanded.js +2 -0
  993. package/dist/mocked_classnames_esm/src/components/Table/components/utils/areAncestorsExpanded.js.map +1 -0
  994. package/dist/mocked_classnames_esm/src/components/Table/components/utils/getParentRowId.js +2 -0
  995. package/dist/mocked_classnames_esm/src/components/Table/components/utils/getParentRowId.js.map +1 -0
  996. package/dist/types/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
  997. package/dist/types/components/Table/Table.types.d.ts +40 -0
  998. package/dist/types/components/Table/Table.types.d.ts.map +1 -0
  999. package/dist/types/components/Table/components/Cell/Cell.d.ts +7 -0
  1000. package/dist/types/components/Table/components/Cell/Cell.d.ts.map +1 -0
  1001. package/dist/types/components/Table/components/Cell/Cell.types.d.ts +68 -0
  1002. package/dist/types/components/Table/components/Cell/Cell.types.d.ts.map +1 -0
  1003. package/dist/types/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts +5 -0
  1004. package/dist/types/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts.map +1 -0
  1005. package/dist/types/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts +23 -0
  1006. package/dist/types/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts.map +1 -0
  1007. package/dist/types/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts +4 -0
  1008. package/dist/types/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts.map +1 -0
  1009. package/dist/types/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts +6 -0
  1010. package/dist/types/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts.map +1 -0
  1011. package/dist/types/components/Table/components/Cell/HeaderCell/index.d.ts +4 -0
  1012. package/dist/types/components/Table/components/Cell/HeaderCell/index.d.ts.map +1 -0
  1013. package/dist/types/components/Table/components/Cell/InternalCell.d.ts +14 -0
  1014. package/dist/types/components/Table/components/Cell/InternalCell.d.ts.map +1 -0
  1015. package/dist/types/components/Table/components/Cell/index.d.ts +5 -0
  1016. package/dist/types/components/Table/components/Cell/index.d.ts.map +1 -0
  1017. package/dist/types/components/Table/components/ExpandedContent/ExpandedContent.d.ts +7 -0
  1018. package/dist/types/components/Table/components/ExpandedContent/ExpandedContent.d.ts.map +1 -0
  1019. package/dist/types/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts +6 -0
  1020. package/dist/types/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts.map +1 -0
  1021. package/dist/types/components/Table/components/ExpandedContent/index.d.ts +4 -0
  1022. package/dist/types/components/Table/components/ExpandedContent/index.d.ts.map +1 -0
  1023. package/dist/types/components/Table/components/Row/HeaderRow/HeaderRow.d.ts +8 -0
  1024. package/dist/types/components/Table/components/Row/HeaderRow/HeaderRow.d.ts.map +1 -0
  1025. package/dist/types/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts +4 -0
  1026. package/dist/types/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts.map +1 -0
  1027. package/dist/types/components/Table/components/Row/HeaderRow/index.d.ts +4 -0
  1028. package/dist/types/components/Table/components/Row/HeaderRow/index.d.ts.map +1 -0
  1029. package/dist/types/components/Table/components/Row/InternalRowBase.d.ts +4 -0
  1030. package/dist/types/components/Table/components/Row/InternalRowBase.d.ts.map +1 -0
  1031. package/dist/types/components/Table/components/Row/InternalRowWithRT.d.ts +4 -0
  1032. package/dist/types/components/Table/components/Row/InternalRowWithRT.d.ts.map +1 -0
  1033. package/dist/types/components/Table/components/Row/InternalRowWithoutRT.d.ts +7 -0
  1034. package/dist/types/components/Table/components/Row/InternalRowWithoutRT.d.ts.map +1 -0
  1035. package/dist/types/components/Table/components/Row/Row.d.ts +16 -0
  1036. package/dist/types/components/Table/components/Row/Row.d.ts.map +1 -0
  1037. package/dist/types/components/Table/components/Row/Row.types.d.ts +23 -0
  1038. package/dist/types/components/Table/components/Row/Row.types.d.ts.map +1 -0
  1039. package/dist/types/components/Table/components/Row/RowCellChildren.d.ts +9 -0
  1040. package/dist/types/components/Table/components/Row/RowCellChildren.d.ts.map +1 -0
  1041. package/dist/types/components/Table/components/Row/RowContext.d.ts +8 -0
  1042. package/dist/types/components/Table/components/Row/RowContext.d.ts.map +1 -0
  1043. package/dist/types/components/Table/components/Row/index.d.ts +6 -0
  1044. package/dist/types/components/Table/components/Row/index.d.ts.map +1 -0
  1045. package/dist/types/components/Table/components/TableBody/TableBody.d.ts +7 -0
  1046. package/dist/types/components/Table/components/TableBody/TableBody.d.ts.map +1 -0
  1047. package/dist/types/components/Table/components/TableBody/TableBody.types.d.ts +4 -0
  1048. package/dist/types/components/Table/components/TableBody/TableBody.types.d.ts.map +1 -0
  1049. package/dist/types/components/Table/components/TableBody/index.d.ts +4 -0
  1050. package/dist/types/components/Table/components/TableBody/index.d.ts.map +1 -0
  1051. package/dist/types/components/Table/components/TableContext/TableContext.d.ts +7 -0
  1052. package/dist/types/components/Table/components/TableContext/TableContext.d.ts.map +1 -0
  1053. package/dist/types/components/Table/components/TableContext/TableContext.types.d.ts +14 -0
  1054. package/dist/types/components/Table/components/TableContext/TableContext.types.d.ts.map +1 -0
  1055. package/dist/types/components/Table/components/TableContext/index.d.ts +4 -0
  1056. package/dist/types/components/Table/components/TableContext/index.d.ts.map +1 -0
  1057. package/dist/types/components/Table/components/TableHead/TableHead.d.ts +8 -0
  1058. package/dist/types/components/Table/components/TableHead/TableHead.d.ts.map +1 -0
  1059. package/dist/types/components/Table/components/TableHead/TableHead.types.d.ts +8 -0
  1060. package/dist/types/components/Table/components/TableHead/TableHead.types.d.ts.map +1 -0
  1061. package/dist/types/components/Table/components/TableHead/index.d.ts +4 -0
  1062. package/dist/types/components/Table/components/TableHead/index.d.ts.map +1 -0
  1063. package/dist/types/components/Table/components/TableHeader/TableHeader.d.ts +18 -0
  1064. package/dist/types/components/Table/components/TableHeader/TableHeader.d.ts.map +1 -0
  1065. package/dist/types/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts +15 -0
  1066. package/dist/types/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts.map +1 -0
  1067. package/dist/types/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts +10 -0
  1068. package/dist/types/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts.map +1 -0
  1069. package/dist/types/components/Table/components/ToggleExpandedIcon/index.d.ts +4 -0
  1070. package/dist/types/components/Table/components/ToggleExpandedIcon/index.d.ts.map +1 -0
  1071. package/dist/types/components/Table/components/newComponents/Buttons/Button.d.ts +46 -0
  1072. package/dist/types/components/Table/components/newComponents/Buttons/Button.d.ts.map +1 -0
  1073. package/dist/types/components/Table/components/newComponents/Buttons/DropdownButton.d.ts +32 -0
  1074. package/dist/types/components/Table/components/newComponents/Buttons/DropdownButton.d.ts.map +1 -0
  1075. package/dist/types/components/Table/components/newComponents/Buttons/IconButton.d.ts +33 -0
  1076. package/dist/types/components/Table/components/newComponents/Buttons/IconButton.d.ts.map +1 -0
  1077. package/dist/types/components/Table/components/newComponents/Buttons/IdeasButton.d.ts +20 -0
  1078. package/dist/types/components/Table/components/newComponents/Buttons/IdeasButton.d.ts.map +1 -0
  1079. package/dist/types/components/Table/components/newComponents/Buttons/SplitButton.d.ts +47 -0
  1080. package/dist/types/components/Table/components/newComponents/Buttons/SplitButton.d.ts.map +1 -0
  1081. package/dist/types/components/Table/components/newComponents/Checkbox/Checkbox.d.ts +50 -0
  1082. package/dist/types/components/Table/components/newComponents/Checkbox/Checkbox.d.ts.map +1 -0
  1083. package/dist/types/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts +40 -0
  1084. package/dist/types/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  1085. package/dist/types/components/Table/components/newComponents/Input/Input.d.ts +24 -0
  1086. package/dist/types/components/Table/components/newComponents/Input/Input.d.ts.map +1 -0
  1087. package/dist/types/components/Table/components/newComponents/Menu/Menu.d.ts +22 -0
  1088. package/dist/types/components/Table/components/newComponents/Menu/Menu.d.ts.map +1 -0
  1089. package/dist/types/components/Table/components/newComponents/Menu/MenuDivider.d.ts +17 -0
  1090. package/dist/types/components/Table/components/newComponents/Menu/MenuDivider.d.ts.map +1 -0
  1091. package/dist/types/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts +22 -0
  1092. package/dist/types/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts.map +1 -0
  1093. package/dist/types/components/Table/components/newComponents/Menu/MenuItem.d.ts +68 -0
  1094. package/dist/types/components/Table/components/newComponents/Menu/MenuItem.d.ts.map +1 -0
  1095. package/dist/types/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts +31 -0
  1096. package/dist/types/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts.map +1 -0
  1097. package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts +19 -0
  1098. package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts.map +1 -0
  1099. package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts +14 -0
  1100. package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts.map +1 -0
  1101. package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts +22 -0
  1102. package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts.map +1 -0
  1103. package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts +82 -0
  1104. package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts.map +1 -0
  1105. package/dist/types/components/Table/components/newComponents/Polymorphic/index.d.ts +5 -0
  1106. package/dist/types/components/Table/components/newComponents/Polymorphic/index.d.ts.map +1 -0
  1107. package/dist/types/components/Table/components/newComponents/Popover/Popover.d.ts +153 -0
  1108. package/dist/types/components/Table/components/newComponents/Popover/Popover.d.ts.map +1 -0
  1109. package/dist/types/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts +57 -0
  1110. package/dist/types/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts.map +1 -0
  1111. package/dist/types/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts +46 -0
  1112. package/dist/types/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts.map +1 -0
  1113. package/dist/types/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts +8 -0
  1114. package/dist/types/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts.map +1 -0
  1115. package/dist/types/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts +108 -0
  1116. package/dist/types/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  1117. package/dist/types/components/Table/components/newComponents/Toast/Toast.d.ts +79 -0
  1118. package/dist/types/components/Table/components/newComponents/Toast/Toast.d.ts.map +1 -0
  1119. package/dist/types/components/Table/components/newComponents/Toast/Toaster.d.ts +47 -0
  1120. package/dist/types/components/Table/components/newComponents/Toast/Toaster.d.ts.map +1 -0
  1121. package/dist/types/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts +23 -0
  1122. package/dist/types/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
  1123. package/dist/types/components/Table/components/newComponents/pagination/Pagination.d.ts +18 -0
  1124. package/dist/types/components/Table/components/newComponents/pagination/Pagination.d.ts.map +1 -0
  1125. package/dist/types/components/Table/components/newComponents/pagination/Pagination.types.d.ts +58 -0
  1126. package/dist/types/components/Table/components/newComponents/pagination/Pagination.types.d.ts.map +1 -0
  1127. package/dist/types/components/Table/components/newComponents/pagination/index.d.ts +4 -0
  1128. package/dist/types/components/Table/components/newComponents/pagination/index.d.ts.map +1 -0
  1129. package/dist/types/components/Table/components/newComponents/pagination/useIdAllocator.d.ts +7 -0
  1130. package/dist/types/components/Table/components/newComponents/pagination/useIdAllocator.d.ts.map +1 -0
  1131. package/dist/types/components/Table/components/newComponents/pagination/utils.d.ts +4 -0
  1132. package/dist/types/components/Table/components/newComponents/pagination/utils.d.ts.map +1 -0
  1133. package/dist/types/components/Table/components/newComponents/utils/color/ColorValue.d.ts +181 -0
  1134. package/dist/types/components/Table/components/newComponents/utils/color/ColorValue.d.ts.map +1 -0
  1135. package/dist/types/components/Table/components/newComponents/utils/color/index.d.ts +2 -0
  1136. package/dist/types/components/Table/components/newComponents/utils/color/index.d.ts.map +1 -0
  1137. package/dist/types/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts +12 -0
  1138. package/dist/types/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts.map +1 -0
  1139. package/dist/types/components/Table/components/newComponents/utils/components/Box.d.ts +7 -0
  1140. package/dist/types/components/Table/components/newComponents/utils/components/Box.d.ts.map +1 -0
  1141. package/dist/types/components/Table/components/newComponents/utils/components/ButtonBase.d.ts +15 -0
  1142. package/dist/types/components/Table/components/newComponents/utils/components/ButtonBase.d.ts.map +1 -0
  1143. package/dist/types/components/Table/components/newComponents/utils/components/FocusTrap.d.ts +12 -0
  1144. package/dist/types/components/Table/components/newComponents/utils/components/FocusTrap.d.ts.map +1 -0
  1145. package/dist/types/components/Table/components/newComponents/utils/components/InputContainer.d.ts +20 -0
  1146. package/dist/types/components/Table/components/newComponents/utils/components/InputContainer.d.ts.map +1 -0
  1147. package/dist/types/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts +31 -0
  1148. package/dist/types/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts.map +1 -0
  1149. package/dist/types/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts +3 -0
  1150. package/dist/types/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts.map +1 -0
  1151. package/dist/types/components/Table/components/newComponents/utils/components/LineClamp.d.ts +6 -0
  1152. package/dist/types/components/Table/components/newComponents/utils/components/LineClamp.d.ts.map +1 -0
  1153. package/dist/types/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts +35 -0
  1154. package/dist/types/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts.map +1 -0
  1155. package/dist/types/components/Table/components/newComponents/utils/components/Portal.d.ts +32 -0
  1156. package/dist/types/components/Table/components/newComponents/utils/components/Portal.d.ts.map +1 -0
  1157. package/dist/types/components/Table/components/newComponents/utils/components/Resizer.d.ts +38 -0
  1158. package/dist/types/components/Table/components/newComponents/utils/components/Resizer.d.ts.map +1 -0
  1159. package/dist/types/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts +12 -0
  1160. package/dist/types/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts.map +1 -0
  1161. package/dist/types/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts +76 -0
  1162. package/dist/types/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts.map +1 -0
  1163. package/dist/types/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts +7 -0
  1164. package/dist/types/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts.map +1 -0
  1165. package/dist/types/components/Table/components/newComponents/utils/components/index.d.ts +1 -0
  1166. package/dist/types/components/Table/components/newComponents/utils/components/index.d.ts.map +1 -0
  1167. package/dist/types/components/Table/components/newComponents/utils/functions/colors.d.ts +21 -0
  1168. package/dist/types/components/Table/components/newComponents/utils/functions/colors.d.ts.map +1 -0
  1169. package/dist/types/components/Table/components/newComponents/utils/functions/date.d.ts +5 -0
  1170. package/dist/types/components/Table/components/newComponents/utils/functions/date.d.ts.map +1 -0
  1171. package/dist/types/components/Table/components/newComponents/utils/functions/dev.d.ts +12 -0
  1172. package/dist/types/components/Table/components/newComponents/utils/functions/dev.d.ts.map +1 -0
  1173. package/dist/types/components/Table/components/newComponents/utils/functions/dom.d.ts +24 -0
  1174. package/dist/types/components/Table/components/newComponents/utils/functions/dom.d.ts.map +1 -0
  1175. package/dist/types/components/Table/components/newComponents/utils/functions/focusable.d.ts +9 -0
  1176. package/dist/types/components/Table/components/newComponents/utils/functions/focusable.d.ts.map +1 -0
  1177. package/dist/types/components/Table/components/newComponents/utils/functions/import.d.ts +13 -0
  1178. package/dist/types/components/Table/components/newComponents/utils/functions/import.d.ts.map +1 -0
  1179. package/dist/types/components/Table/components/newComponents/utils/functions/index.d.ts +11 -0
  1180. package/dist/types/components/Table/components/newComponents/utils/functions/index.d.ts.map +1 -0
  1181. package/dist/types/components/Table/components/newComponents/utils/functions/numbers.d.ts +16 -0
  1182. package/dist/types/components/Table/components/newComponents/utils/functions/numbers.d.ts.map +1 -0
  1183. package/dist/types/components/Table/components/newComponents/utils/functions/polymorphic.d.ts +203 -0
  1184. package/dist/types/components/Table/components/newComponents/utils/functions/polymorphic.d.ts.map +1 -0
  1185. package/dist/types/components/Table/components/newComponents/utils/functions/react.d.ts +9 -0
  1186. package/dist/types/components/Table/components/newComponents/utils/functions/react.d.ts.map +1 -0
  1187. package/dist/types/components/Table/components/newComponents/utils/functions/supports.d.ts +5 -0
  1188. package/dist/types/components/Table/components/newComponents/utils/functions/supports.d.ts.map +1 -0
  1189. package/dist/types/components/Table/components/newComponents/utils/hooks/index.d.ts +15 -0
  1190. package/dist/types/components/Table/components/newComponents/utils/hooks/index.d.ts.map +1 -0
  1191. package/dist/types/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts +17 -0
  1192. package/dist/types/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts.map +1 -0
  1193. package/dist/types/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts +14 -0
  1194. package/dist/types/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts.map +1 -0
  1195. package/dist/types/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts +14 -0
  1196. package/dist/types/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts.map +1 -0
  1197. package/dist/types/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts +11 -0
  1198. package/dist/types/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts.map +1 -0
  1199. package/dist/types/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts +21 -0
  1200. package/dist/types/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts.map +1 -0
  1201. package/dist/types/components/Table/components/newComponents/utils/hooks/useId.d.ts +6 -0
  1202. package/dist/types/components/Table/components/newComponents/utils/hooks/useId.d.ts.map +1 -0
  1203. package/dist/types/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts +14 -0
  1204. package/dist/types/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts.map +1 -0
  1205. package/dist/types/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts +2 -0
  1206. package/dist/types/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts.map +1 -0
  1207. package/dist/types/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts +11 -0
  1208. package/dist/types/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
  1209. package/dist/types/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts +10 -0
  1210. package/dist/types/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts.map +1 -0
  1211. package/dist/types/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts +2 -0
  1212. package/dist/types/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts.map +1 -0
  1213. package/dist/types/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts +10 -0
  1214. package/dist/types/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts.map +1 -0
  1215. package/dist/types/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts +25 -0
  1216. package/dist/types/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts.map +1 -0
  1217. package/dist/types/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts +14 -0
  1218. package/dist/types/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts.map +1 -0
  1219. package/dist/types/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts +7 -0
  1220. package/dist/types/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts.map +1 -0
  1221. package/dist/types/components/Table/components/newComponents/utils/index.d.ts +6 -0
  1222. package/dist/types/components/Table/components/newComponents/utils/index.d.ts.map +1 -0
  1223. package/dist/types/components/Table/components/newComponents/utils/props.d.ts +29 -0
  1224. package/dist/types/components/Table/components/newComponents/utils/props.d.ts.map +1 -0
  1225. package/dist/types/components/Table/components/newComponents/utils/types.d.ts +6 -0
  1226. package/dist/types/components/Table/components/newComponents/utils/types.d.ts.map +1 -0
  1227. package/dist/types/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts +3 -0
  1228. package/dist/types/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts.map +1 -0
  1229. package/dist/types/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts +6 -0
  1230. package/dist/types/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts.map +1 -0
  1231. package/dist/types/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts +7 -0
  1232. package/dist/types/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts.map +1 -0
  1233. package/dist/types/components/Table/components/useLeafyGreenTable/index.d.ts +5 -0
  1234. package/dist/types/components/Table/components/useLeafyGreenTable/index.d.ts.map +1 -0
  1235. package/dist/types/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts +5 -0
  1236. package/dist/types/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -0
  1237. package/dist/types/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts +54 -0
  1238. package/dist/types/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map +1 -0
  1239. package/dist/types/components/Table/components/utils/areAncestorsExpanded.d.ts +11 -0
  1240. package/dist/types/components/Table/components/utils/areAncestorsExpanded.d.ts.map +1 -0
  1241. package/dist/types/components/Table/components/utils/getParentRowId.d.ts +11 -0
  1242. package/dist/types/components/Table/components/utils/getParentRowId.d.ts.map +1 -0
  1243. package/dist/types/components/Table/components/utils/types.d.ts +4 -0
  1244. package/dist/types/components/Table/components/utils/types.d.ts.map +1 -0
  1245. package/package.json +2 -2
  1246. package/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx +7 -3
@@ -0,0 +1,29 @@
1
+ import type * as React from 'react';
2
+ export type CommonProps = {
3
+ id?: string;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ };
7
+ /**
8
+ * Makes `as` prop available and merges original OwnProps and the inferred props from `as` element.
9
+ * Extends ForwardRefExoticComponent so ref gets the correct type.
10
+ *
11
+ * `DefaultAs` should be the default element that is used for the `as` prop.
12
+ *
13
+ * @example
14
+ * const Button = React.forwardRef((props, forwardedRef) => {
15
+ * // ...
16
+ * }) as PolymorphicForwardRefComponent<'button', ButtonOwnProps>;
17
+ */
18
+ export interface PolymorphicForwardRefComponent<DefaultAs, OwnProps = {}> extends React.ForwardRefExoticComponent<Merge<DefaultAs extends React.ElementType ? React.ComponentPropsWithRef<DefaultAs> : never, OwnProps & {
19
+ as?: DefaultAs;
20
+ }>> {
21
+ <As = DefaultAs>(props: As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
22
+ as: As;
23
+ }> : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
24
+ as: As;
25
+ }> : never): React.ReactElement | null;
26
+ }
27
+ type Merge<P1, P2> = Omit<P1, keyof P2> & P2;
28
+ export {};
29
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Table/components/newComponents/utils/props.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,8BAA8B,CAC7C,SAAS,EACT,QAAQ,GAAG,EAAE,CACb,SAAQ,KAAK,CAAC,yBAAyB,CACrC,KAAK,CACH,SAAS,SAAS,KAAK,CAAC,WAAW,GAC/B,KAAK,CAAC,qBAAqB,CAAC,SAAS,CAAC,GACtC,KAAK,EACT,QAAQ,GAAG;IAAE,EAAE,CAAC,EAAE,SAAS,CAAA;CAAE,CAC9B,CACF;IACD,CAAC,EAAE,GAAG,SAAS,EACb,KAAK,EAAE,EAAE,SAAS,MAAM,GAAG,CAAC,iBAAiB,GACzC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,QAAQ,GAAG;QAAE,EAAE,EAAE,EAAE,CAAA;KAAE,CAAC,GACvD,EAAE,SAAS,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,GACrC,KAAK,CAAC,CAAC,EAAE,QAAQ,GAAG;QAAE,EAAE,EAAE,EAAE,CAAA;KAAE,CAAC,GAC/B,KAAK,GACV,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAC9B;AAED,KAAK,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This allows custom strings and keeps intellisense for string unions.
3
+ * See https://github.com/Microsoft/TypeScript/issues/29729
4
+ */
5
+ export type AnyString = string & {};
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Table/components/newComponents/utils/types.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { useVirtual } from 'react-virtual';
2
+ export type VirtualizerValues = ReturnType<typeof useVirtual>;
3
+ //# sourceMappingURL=ReactVirtual.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactVirtual.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/ReactVirtual.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ import { LGTableDataType } from '.';
3
+ export declare const TableHeaderCheckbox: <T extends unknown>({ table, }: {
4
+ table: Table<LGTableDataType<T>>;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=TableHeaderCheckbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableHeaderCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAK9C,OAAO,EAAa,eAAe,EAAE,MAAM,GAAG,CAAC;AAG/C,eAAO,MAAM,mBAAmB;;6CAsB/B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Row, Table } from '@tanstack/react-table';
2
+ import { LGTableDataType } from '.';
3
+ export declare const TableRowCheckbox: <T extends unknown>({ row, table, }: {
4
+ table: Table<LGTableDataType<T>>;
5
+ row: Row<LGTableDataType<T>>;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=TableRowCheckbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableRowCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAMnD,OAAO,EAAa,eAAe,EAAE,MAAM,GAAG,CAAC;AAE/C,eAAO,MAAM,gBAAgB;;;6CAyB5B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import useLeafyGreenTable from './useLeafyGreenTable';
2
+ export { VirtualizerValues } from './ReactVirtual.types';
3
+ export * from './useLeafyGreenTable.types';
4
+ export default useLeafyGreenTable;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,cAAc,4BAA4B,CAAC;AAC3C,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { LeafyGreenTableOptions } from "./useLeafyGreenTable.types";
2
+ import { LeafyGreenTable } from ".";
3
+ declare const useLeafyGreenTable: <T extends unknown, V extends unknown = unknown>({ containerRef, data, columns: columnsProp, hasSelectableRows, withPagination, useVirtualScrolling, allowSelectAll, allowSelectSingle, onSelect, virtualizerOptions, initiallySelectedRowIds, onRowSelectionChange, columnManager, isExpandable, ...rest }: LeafyGreenTableOptions<T, V>) => LeafyGreenTable<T>;
4
+ export default useLeafyGreenTable;
5
+ //# sourceMappingURL=useLeafyGreenTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLeafyGreenTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,sBAAsB,EAAa,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAgC,MAAM,GAAG,CAAC;AAOlE,QAAA,MAAM,kBAAkB,kWAyLvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { RefObject, HTMLAttributes } from 'react';
2
+ import { VirtualItem, Options as VirtualizerOptions } from 'react-virtual';
3
+ import { Cell, ColumnDef, Row, RowData, Table, TableOptions } from '@tanstack/react-table';
4
+ import { VirtualizerValues } from './ReactVirtual.types';
5
+ /** LeafyGreen extension of `useReactTable` {@link RowData} */
6
+ export type LGRowData = RowData;
7
+ export type LGTableDataType<T extends LGRowData> = T & {
8
+ renderExpandedContent?: (row: LeafyGreenTableRow<T>) => JSX.Element;
9
+ subRows?: Array<LGTableDataType<T>>;
10
+ };
11
+ /** LeafyGreen extension of `useReactTable` {@link Cell} */
12
+ export type LeafyGreenTableCell<T extends LGRowData> = Cell<LGTableDataType<T>, unknown>;
13
+ /** LeafyGreen extension of `useReactTable` {@link Row} */
14
+ export interface LeafyGreenTableRow<T extends LGRowData> extends Row<LGTableDataType<T>> {
15
+ }
16
+ export interface CustomCellAttributes extends HTMLAttributes<HTMLTableCellElement> {
17
+ /** 'align' attribute is deprecated but included for compatibility */
18
+ align?: 'left' | 'center' | 'right' | 'justify' | 'char';
19
+ }
20
+ export type LGColumnDef<T extends LGRowData, V extends unknown = unknown> = ColumnDef<LGTableDataType<T>, V> & {
21
+ align?: CustomCellAttributes['align'];
22
+ isResizable?: boolean;
23
+ sticky?: 'left' | 'right';
24
+ };
25
+ /**
26
+ * Options argument for the LeafyGreen extension of `useReactTable`
27
+ *
28
+ * See: {@link TableOptions}
29
+ */
30
+ export type LeafyGreenTableOptions<T extends LGRowData, V extends unknown = unknown> = Omit<TableOptions<LGTableDataType<T>>, 'getCoreRowModel' | 'columns'> & {
31
+ containerRef: RefObject<HTMLElement>;
32
+ hasSelectableRows?: boolean;
33
+ columns: Array<LGColumnDef<T, V>>;
34
+ withPagination?: boolean;
35
+ allowSelectAll?: boolean;
36
+ allowSelectSingle?: boolean;
37
+ onSelect?: (selectedRow: T) => void;
38
+ useVirtualScrolling?: boolean;
39
+ virtualizerOptions?: Partial<VirtualizerOptions<HTMLElement>>;
40
+ initiallySelectedRowIds?: Array<number | string>;
41
+ columnManager?: boolean;
42
+ isExpandable?: boolean;
43
+ };
44
+ /**
45
+ * LeafyGreen extension of `useReactTable` {@link Table}
46
+ */
47
+ export interface LeafyGreenTable<T extends LGRowData> extends Table<LGTableDataType<T>>, Omit<VirtualizerValues, 'virtualItems'> {
48
+ virtualRows?: Array<VirtualItem>;
49
+ hasSelectableRows: boolean;
50
+ handleRowClick: (rowId: number) => void;
51
+ showColumnManager: boolean;
52
+ setShowColumnManager: React.Dispatch<React.SetStateAction<boolean>>;
53
+ }
54
+ //# sourceMappingURL=useLeafyGreenTable.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLeafyGreenTable.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,8DAA8D;AAC9D,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;AAEhC,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,IAAI,CAAC,GAAG;IACrD,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC;IACpE,OAAO,CAAC,EAAE,KAAK,CAAC,eAAe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AAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,IAAI,CAAC;IACpC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC;IAC9D,uBAAuB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACjD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,SAAS,CAAE,SAAQ,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,cAAc,CAAC;IAC9H,WAAW,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACrE"}
@@ -0,0 +1,11 @@
1
+ import { type TableContextValues } from '../TableContext';
2
+ import { LGRowData } from '../useLeafyGreenTable';
3
+ /**
4
+ * Returns whether a given row has _all_ ancestor rows expanded
5
+ */
6
+ export declare function getAreAncestorsExpanded<T extends LGRowData>(
7
+ /** The starting id */
8
+ startId: string,
9
+ /** The parent getter function */
10
+ getParentRow: TableContextValues<T>['getParentRow']): boolean;
11
+ //# sourceMappingURL=areAncestorsExpanded.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"areAncestorsExpanded.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/utils/areAncestorsExpanded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,SAAS;AACzD,sBAAsB;AACtB,OAAO,EAAE,MAAM;AACf,iCAAiC;AACjC,YAAY,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,WAepD"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * `react-table`'s Row `id`s are configured so that the first nested row of Row with `id` '0' is: '0.0'.
3
+ *
4
+ * This function parses a Row's `id` to return its immediate parent Row's id if it exists, and returns `undefined` otherwise.
5
+ *
6
+ * @param childId `id` of the referenced row
7
+ * @returns the `id` of the parent row
8
+ */
9
+ declare function getParentRowId(childId?: string): string;
10
+ export default getParentRowId;
11
+ //# sourceMappingURL=getParentRowId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getParentRowId.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/utils/getParentRowId.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,iBAAS,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,UAMvC;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface AnyDict {
2
+ [key: string]: any;
3
+ }
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/utils/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
@@ -1,2 +1,2 @@
1
- import{slicedToArray as e,toConsumableArray as n}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"@emotion/react/jsx-runtime";import{useState as i,useRef as l,useCallback as r,useEffect as a,useMemo as c}from"react";import{useVirtual as s}from"react-virtual";import{getCoreRowModel as u,getSortedRowModel as d,getPaginationRowModel as g,useReactTable as f}from"@tanstack/react-table";import h from"lodash/omit";import{TableHeaderCheckbox as m}from"./TableHeaderCheckbox.js";import{TableRowCheckbox as v}from"./TableRowCheckbox.js";import w from"../../../Icon/Icons/components/Settings.js";import b from"../../../IconButton/IconButton.js";import R from"../ToggleExpandedIcon/ToggleExpandedIcon.js";import S from"../../../Dialog/Dialog.js";import p from"../../../DialogContentContainer/DialogContentContainer.js";import C from"../../../Checkbox/Checkbox.js";import I from"../../../ListItem/ListItem.js";var j=function(j){var x=j.containerRef,O=j.data,M=j.columns,y=j.hasSelectableRows,z=j.withPagination,T=void 0!==z&&z,k=j.useVirtualScrolling,E=void 0!==k&&k,A=j.allowSelectAll,L=void 0===A||A,P=j.allowSelectSingle,D=void 0!==P&&P,_=j.onSelect,B=j.virtualizerOptions,H=j.initiallySelectedRowIds,V=void 0===H?[]:H,F=j.onRowSelectionChange,U=j.columnManager,K=void 0!==U&&U,X=j.isExpandable,N=void 0!==X&&X,q=j.hoverIcon,G=j.selectCurrentPageOnly,J=void 0!==G&&G,Q=j.onUnselectAll,W=j.initialState,Y=j.initialLoadCount,Z=void 0===Y?20:Y,$=j.loadMoreCount,ee=void 0===$?10:$,ne=j.onLoadMore,te=j.infiniteScrolling,oe=void 0!==te&&te,ie=j.autoResetPageIndex,le=void 0===ie||ie,re=j.selectAllRows,ae=void 0!==re&&re,ce=t(j,["containerRef","data","columns","hasSelectableRows","withPagination","useVirtualScrolling","allowSelectAll","allowSelectSingle","onSelect","virtualizerOptions","initiallySelectedRowIds","onRowSelectionChange","columnManager","isExpandable","hoverIcon","selectCurrentPageOnly","onUnselectAll","initialState","initialLoadCount","loadMoreCount","onLoadMore","infiniteScrolling","autoResetPageIndex","selectAllRows"]),se=i({}),ue=e(se,2),de=ue[0],ge=ue[1],fe=i(null),he=e(fe,2),me=he[0],ve=he[1],we=i(!1),be=e(we,2),Re=be[0],Se=be[1],pe=i([]),Ce=e(pe,2),Ie=Ce[0],je=Ce[1],xe=i(!1),Oe=e(xe,2),Me=Oe[0],ye=Oe[1],ze=i(!1),Te=e(ze,2),ke=Te[0],Ee=Te[1],Ae=l(null),Le=l(!1),Pe=l({}),De=l([]),_e=l(null),Be=l(null),He=r((function(e,n){var t,o;return y&&null!==(o=null===(t=e.id)||void 0===t?void 0:""+t)&&void 0!==o?o:""+n}),[y]);a((function(){!Le.current&&y&&(Pe.current=V.reduce((function(e,n){return e[""+n]=!0,e}),{}),Le.current=!0)}),[V,y]),a((function(){je(oe?O.slice(0,Z):O)}),[O,oe,Z]),a((function(){if(O!==De.current&&y){var e=Object.assign(Object.assign({},Pe.current),de);ge(e),De.current=O}}),[O,He,y]);var Ve={id:"select",size:14,header:m,cell:v};a((function(){if(ae&&y){var e=O.reduce((function(e,n,t){return e[He(n,t)]=!0,e}),{});ge(e)}}),[ae,y,O,He]);var Fe=c((function(){return M.some((function(e){return!!e.enableSorting}))}),[M]),Ue=L?Ve:h(Ve,"header"),Ke={id:"expander",size:30,header:function(){return null},cell:function(e){var n=e.row;return n.getCanExpand()?o(R,{isExpanded:n.getIsExpanded(),toggleExpanded:function(){return n.toggleExpanded()},disabled:!1}):null}},Xe={id:"hoverIcon",size:30,sticky:"right",header:function(){return null},cell:function(e){return o("span",Object.assign({style:{display:"block",height:"100%"}},{children:me===e.row.index&&q}))}},Ne=c((function(){var e=M.filter((function(e){return"left"===e.sticky})),t=M.filter((function(e){return"right"===e.sticky})),i=0,l=0;return[].concat(n(y?[Ue]:[]),n(N?[Ke]:[]),n(M.map((function(n,o){var r,a,c,s=Object.assign(Object.assign({},n),{align:null!==(r=n.align)&&void 0!==r?r:"left",enableSorting:null!==(a=n.enableSorting)&&void 0!==a&&a,isResizable:null!==(c=n.isResizable)&&void 0!==c&&c,cell:n.cell||function(e){return(0,e.getValue)()}});return"left"===n.sticky?(s.left=i,i+=n.size,s.isLastStickyLeft=o===e.length-1):"right"===n.sticky&&(s.right=(l+=n.size)-n.size,s.isFirstStickyRight=o===M.length-t.length),s})).map((function(e,n,o){return"right"===e.sticky&&(e.isFirstStickyRight=n===o.length-t.length),e}))),[q?Xe:null],n(K?[{id:"columnManager",size:20,header:function(){var e;return o(S,Object.assign({showTrigger:[S.hideShowTriggers.CLICK],hideTrigger:[S.hideShowTriggers.CLICK_OUTSIDE],position:S.positions.BOTTOM_END,open:ke,content:o(p,{children:tn.getAllLeafColumns().slice(0,-1).map((function(e,n){return o(I,{children:o(C,{checked:e.getIsVisible(),label:e.columnDef.header||e.id,onChange:e.getToggleVisibilityHandler(),"aria-labelledby":"iui-column-".concat(e.id)})},"".concat(e.id,"-").concat(n))}))},"small"),onDialogDidHide:function(){return Ee(!1)}},{children:o(b,{ariaLabel:"Customize",size:null===(e=null==b?void 0:b.sizes)||void 0===e?void 0:e.XXS,icon:w,ref:Ae,onClick:function(){return Ee(!0)}})}))},cell:function(){return null}}]:[])).filter(Boolean)}),[M,y,Ue,K,N,q,ke]),qe=i("onChange"),Ge=e(qe,2),Je=Ge[0],Qe=i("ltr"),We=e(Qe,2),Ye=We[0],Ze=function(e){if(y){var n=Object.assign({},Pe.current),t=J?tn.getPageRows():tn.getPreFilteredRowModel().rows,o=null!=e?e:!tn.getIsAllRowsSelected();t.forEach((function(e){n[e.id]=o})),ge(n)}},$e=function(){y&&(ge({}),Pe.current={},null==Q||Q())},en=r((function(){oe&&!Me&&O.length>Ie.length&&(ye(!0),setTimeout((function(){je((function(e){var t=O.slice(e.length,e.length+ee);return e.length+t.length>=O.length&&_e.current&&_e.current.disconnect(),[].concat(n(e),n(t))})),ye(!1),ne&&ne()}),500))}),[oe,Me,O,ee,ne,Ie.length]);a((function(){return oe&&Be.current&&(_e.current=new IntersectionObserver((function(e){e[0].isIntersecting&&en()}),{threshold:.1}),_e.current.observe(Be.current)),function(){_e.current&&_e.current.disconnect()}}),[oe,en]);var nn=Object.assign({data:Ie,columns:Ne,getCoreRowModel:u(),getRowCanExpand:function(e){var n;return!!e.original.renderExpandedContent||!!(null===(n=e.subRows)||void 0===n?void 0:n.length)},enableExpanding:!0,enableSortingRemoval:!!Fe||void 0,getSubRows:function(e){return e.subRows},getSortedRowModel:d(),getPaginationRowModel:T?g():void 0,initialState:W||void 0,columnResizeMode:Je,columnResizeDirection:Ye,autoResetPageIndex:le},ce);y&&(nn.getRowId=He,nn.state={rowSelection:de},nn.onRowSelectionChange=ge);var tn=f(nn);tn.toggleAllRowsSelected=Ze,tn.unselectAllRows=$e;var on=tn.getCoreRowModel().rows,ln=(tn.getPaginationRowModel(),s(Object.assign({parentRef:x,size:on.length,overscan:30},B)));return a((function(){if(F&&y){var e=O.filter((function(e,n){return de[He(e,n)]}));F(e)}}),[de,O,F,He,y]),Object.assign(Object.assign(Object.assign(Object.assign({},tn),{handleRowClick:function(e){D&&(null==_||_(e.original))},toggleAllRowsSelected:Ze,unselectAllRows:$e}),E&&{virtualRows:ln.virtualItems,totalSize:ln.totalSize,scrollToIndex:ln.scrollToIndex,scrollToOffset:ln.scrollToOffset,measure:ln.measure}),{hasSelectableRows:y,showColumnManager:Re,setShowColumnManager:Se,columnManagerRef:Ae,setHoveredRow:ve,isLoading:Me,loadedData:Ie,loadMoreTriggerRef:Be,infiniteScrolling:oe,loadMoreRows:en})};export{j as default};
1
+ import{slicedToArray as e,toConsumableArray as n}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"@emotion/react/jsx-runtime";import{useState as i,useRef as l,useCallback as r,useEffect as a,useMemo as c}from"react";import{useVirtual as s}from"react-virtual";import{getCoreRowModel as u,getSortedRowModel as d,getPaginationRowModel as g,useReactTable as f}from"@tanstack/react-table";import h from"lodash/omit";import{TableHeaderCheckbox as m}from"./TableHeaderCheckbox.js";import{TableRowCheckbox as v}from"./TableRowCheckbox.js";import w from"../../../Icon/Icons/components/Settings.js";import R from"../../../IconButton/IconButton.js";import b from"../ToggleExpandedIcon/ToggleExpandedIcon.js";import S from"../../../Dialog/Dialog.js";import p from"../../../DialogContentContainer/DialogContentContainer.js";import C from"../../../Checkbox/Checkbox.js";import I from"../../../ListItem/ListItem.js";var x=function(x){var j=x.containerRef,O=x.data,M=x.columns,y=x.hasSelectableRows,z=x.withPagination,T=void 0!==z&&z,k=x.useVirtualScrolling,E=void 0!==k&&k,A=x.allowSelectAll,L=void 0===A||A,P=x.allowSelectSingle,D=void 0!==P&&P,_=x.onSelect,B=x.virtualizerOptions,H=x.initiallySelectedRowIds,V=void 0===H?[]:H,F=x.onRowSelectionChange,U=x.columnManager,K=void 0!==U&&U,X=x.isExpandable,N=void 0!==X&&X,q=x.hoverIcon,G=x.selectCurrentPageOnly,J=void 0!==G&&G,Q=x.onUnselectAll,W=x.initialState,Y=x.initialLoadCount,Z=void 0===Y?20:Y,$=x.loadMoreCount,ee=void 0===$?10:$,ne=x.onLoadMore,te=x.infiniteScrolling,oe=void 0!==te&&te,ie=x.autoResetPageIndex,le=void 0===ie||ie,re=x.selectAllRows,ae=void 0!==re&&re,ce=t(x,["containerRef","data","columns","hasSelectableRows","withPagination","useVirtualScrolling","allowSelectAll","allowSelectSingle","onSelect","virtualizerOptions","initiallySelectedRowIds","onRowSelectionChange","columnManager","isExpandable","hoverIcon","selectCurrentPageOnly","onUnselectAll","initialState","initialLoadCount","loadMoreCount","onLoadMore","infiniteScrolling","autoResetPageIndex","selectAllRows"]),se=i({}),ue=e(se,2),de=ue[0],ge=ue[1],fe=i(null),he=e(fe,2),me=he[0],ve=he[1],we=i(!1),Re=e(we,2),be=Re[0],Se=Re[1],pe=i([]),Ce=e(pe,2),Ie=Ce[0],xe=Ce[1],je=i(!1),Oe=e(je,2),Me=Oe[0],ye=Oe[1],ze=i(!1),Te=e(ze,2),ke=Te[0],Ee=Te[1],Ae=l(null),Le=l(!1),Pe=l({}),De=l([]),_e=l(null),Be=l(null),He=r((function(e,n){var t,o;return y&&null!==(o=null===(t=e.id)||void 0===t?void 0:""+t)&&void 0!==o?o:""+n}),[y]);a((function(){!Le.current&&y&&(Pe.current=V.reduce((function(e,n){return e[""+n]=!0,e}),{}),Le.current=!0)}),[V,y]),a((function(){Le.current&&ge(Pe.current)}),[Le.current]),a((function(){xe(oe?O.slice(0,Z):O)}),[O,oe,Z]),a((function(){O!==De.current&&y&&(ge(de),De.current=O)}),[O,He,y]);var Ve={id:"select",size:14,header:m,cell:v};a((function(){if(ae&&y){var e=O.reduce((function(e,n,t){return e[He(n,t)]=!0,e}),{});ge(e)}}),[ae,y,O,He]);var Fe=c((function(){return M.some((function(e){return!!e.enableSorting}))}),[M]),Ue=L?Ve:h(Ve,"header"),Ke={id:"expander",size:30,header:function(){return null},cell:function(e){var n=e.row;return n.getCanExpand()?o(b,{isExpanded:n.getIsExpanded(),toggleExpanded:function(){return n.toggleExpanded()},disabled:!1}):null}},Xe={id:"hoverIcon",size:30,sticky:"right",header:function(){return null},cell:function(e){return o("span",Object.assign({style:{display:"block",height:"100%"}},{children:me===e.row.index&&q}))}},Ne=c((function(){var e=M.filter((function(e){return"left"===e.sticky})),t=M.filter((function(e){return"right"===e.sticky})),i=0,l=0;return[].concat(n(y?[Ue]:[]),n(N?[Ke]:[]),n(M.map((function(n,o){var r,a,c,s=Object.assign(Object.assign({},n),{align:null!==(r=n.align)&&void 0!==r?r:"left",enableSorting:null!==(a=n.enableSorting)&&void 0!==a&&a,isResizable:null!==(c=n.isResizable)&&void 0!==c&&c,cell:n.cell||function(e){return(0,e.getValue)()}});return"left"===n.sticky?(s.left=i,i+=n.size,s.isLastStickyLeft=o===e.length-1):"right"===n.sticky&&(s.right=(l+=n.size)-n.size,s.isFirstStickyRight=o===M.length-t.length),s})).map((function(e,n,o){return"right"===e.sticky&&(e.isFirstStickyRight=n===o.length-t.length),e}))),[q?Xe:null],n(K?[{id:"columnManager",size:20,header:function(){var e;return o(S,Object.assign({showTrigger:[S.hideShowTriggers.CLICK],hideTrigger:[S.hideShowTriggers.CLICK_OUTSIDE],position:S.positions.BOTTOM_END,open:ke,content:o(p,{children:tn.getAllLeafColumns().slice(0,-1).map((function(e,n){return o(I,{children:o(C,{checked:e.getIsVisible(),label:e.columnDef.header||e.id,onChange:e.getToggleVisibilityHandler(),"aria-labelledby":"iui-column-".concat(e.id)})},"".concat(e.id,"-").concat(n))}))},"small"),onDialogDidHide:function(){return Ee(!1)}},{children:o(R,{ariaLabel:"Customize",size:null===(e=null==R?void 0:R.sizes)||void 0===e?void 0:e.XXS,icon:w,ref:Ae,onClick:function(){return Ee(!0)}})}))},cell:function(){return null}}]:[])).filter(Boolean)}),[M,y,Ue,K,N,q,ke]),qe=i("onChange"),Ge=e(qe,2),Je=Ge[0],Qe=i("ltr"),We=e(Qe,2),Ye=We[0],Ze=function(e){if(y){var n=Object.assign({},Pe.current),t=J?tn.getPageRows():tn.getPreFilteredRowModel().rows,o=null!=e?e:!tn.getIsAllRowsSelected();t.forEach((function(e){n[e.id]=o})),ge(n)}},$e=function(){y&&(ge({}),Pe.current={},null==Q||Q())},en=r((function(){oe&&!Me&&O.length>Ie.length&&(ye(!0),setTimeout((function(){xe((function(e){var t=O.slice(e.length,e.length+ee);return e.length+t.length>=O.length&&_e.current&&_e.current.disconnect(),[].concat(n(e),n(t))})),ye(!1),ne&&ne()}),500))}),[oe,Me,O,ee,ne,Ie.length]);a((function(){return oe&&Be.current&&(_e.current=new IntersectionObserver((function(e){e[0].isIntersecting&&en()}),{threshold:.1}),_e.current.observe(Be.current)),function(){_e.current&&_e.current.disconnect()}}),[oe,en]);var nn=Object.assign({data:Ie,columns:Ne,getCoreRowModel:u(),getRowCanExpand:function(e){var n;return!!e.original.renderExpandedContent||!!(null===(n=e.subRows)||void 0===n?void 0:n.length)},enableExpanding:!0,enableSortingRemoval:!!Fe||void 0,getSubRows:function(e){return e.subRows},getSortedRowModel:d(),getPaginationRowModel:T?g():void 0,initialState:W||void 0,columnResizeMode:Je,columnResizeDirection:Ye,autoResetPageIndex:le},ce);y&&(nn.getRowId=He,nn.state={rowSelection:de},nn.onRowSelectionChange=ge);var tn=f(nn);tn.toggleAllRowsSelected=Ze,tn.unselectAllRows=$e;var on=tn.getCoreRowModel().rows,ln=(tn.getPaginationRowModel(),s(Object.assign({parentRef:j,size:on.length,overscan:30},B)));return a((function(){if(F&&y){var e=O.filter((function(e,n){return de[He(e,n)]}));F(e)}}),[de,O,F,He,y]),Object.assign(Object.assign(Object.assign(Object.assign({},tn),{handleRowClick:function(e){D&&(null==_||_(e.original))},toggleAllRowsSelected:Ze,unselectAllRows:$e}),E&&{virtualRows:ln.virtualItems,totalSize:ln.totalSize,scrollToIndex:ln.scrollToIndex,scrollToOffset:ln.scrollToOffset,measure:ln.measure}),{hasSelectableRows:y,showColumnManager:be,setShowColumnManager:Se,columnManagerRef:Ae,setHoveredRow:ve,isLoading:Me,loadedData:Ie,loadMoreTriggerRef:Be,infiniteScrolling:oe,loadMoreRows:en})};export{x as default};
2
2
  //# sourceMappingURL=useLeafyGreenTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLeafyGreenTable.js","sources":["../../../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"sourcesContent":["//@ts-nocheck\nimport { useEffect, useLayoutEffect, useMemo, useRef, useState, useCallback } from \"react\";\nimport { useVirtual } from \"react-virtual\";\nimport { useReactTable, ColumnResizeMode, ColumnResizeDirection } from \"@tanstack/react-table\";\nimport { getCoreRowModel, getPaginationRowModel, getSortedRowModel, Row } from \"@tanstack/react-table\";\nimport omit from \"lodash/omit\";\nimport { TableHeaderCheckbox } from \"./TableHeaderCheckbox\";\nimport { TableRowCheckbox } from \"./TableRowCheckbox\";\nimport { LeafyGreenTableOptions, LGRowData } from \"./useLeafyGreenTable.types\";\nimport { LeafyGreenTable, LGColumnDef, LGTableDataType } from \".\";\nimport Settings from \"../../../Icon/Icons/components/Settings\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport ToggleExpandedIcon from \"../ToggleExpandedIcon\";\nimport Dialog from \"../../../Dialog/Dialog\";\nimport List from \"../../../List/List\";\nimport DialogContentContainer from \"../../../DialogContentContainer/DialogContentContainer\";\nimport Checkbox from \"../../../Checkbox/Checkbox\";\nimport ListItem from \"../../../ListItem/ListItem\";\n\nconst CHECKBOX_WIDTH = 14;\n\nconst useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({\n containerRef,\n data,\n columns: columnsProp,\n hasSelectableRows,\n withPagination = false,\n useVirtualScrolling = false,\n allowSelectAll = true,\n allowSelectSingle = false,\n onSelect,\n virtualizerOptions,\n initiallySelectedRowIds = [],\n onRowSelectionChange,\n columnManager = false,\n isExpandable = false,\n hoverIcon,\n selectCurrentPageOnly = false,\n onUnselectAll,\n initialState,\n initialLoadCount = 20, \n loadMoreCount = 10, \n onLoadMore, \n infiniteScrolling = false,\n autoResetPageIndex = true,\n selectAllRows = false,\n ...rest\n}: LeafyGreenTableOptions<T, V>): LeafyGreenTable<T> => {\n const [rowSelection, setRowSelection] = useState<{ [key: string]: boolean }>({});\n const [hoveredRow, setHoveredRow] = useState<number | null>(null);\n const [showColumnManager, setShowColumnManager] = useState(false);\n const [loadedData, setLoadedData] = useState<T[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const columnManagerRef = useRef<HTMLButtonElement>(null);\n const isInitialSetupDone = useRef(false);\n const initialSelectionRef = useRef<{ [key: string]: boolean }>({});\n const previousDataRef = useRef<T[]>([]);\n const observerRef = useRef<IntersectionObserver | null>(null);\n const loadMoreTriggerRef = useRef<HTMLDivElement | null>(null);\n\n const getRowId = useCallback((row: T, index: number) => {\n if (hasSelectableRows) {\n return row.id?.toString() ?? index.toString();\n }\n return index.toString();\n }, [hasSelectableRows]);\n\n useEffect(() => {\n if (!isInitialSetupDone.current && hasSelectableRows) {\n initialSelectionRef.current = initiallySelectedRowIds.reduce((acc, id) => {\n acc[id.toString()] = true;\n return acc;\n }, {});\n isInitialSetupDone.current = true;\n }\n }, [initiallySelectedRowIds, hasSelectableRows]);\n\n useEffect(() => {\n setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);\n }, [data, infiniteScrolling, initialLoadCount]);\n\n useEffect(() => {\n if (data !== previousDataRef.current && hasSelectableRows) {\n const newRowSelection = { ...initialSelectionRef.current, ...rowSelection };\n \n setRowSelection(newRowSelection);\n previousDataRef.current = data;\n }\n }, [data, getRowId, hasSelectableRows]);\n\n const baseSelectColumnConfig: LGColumnDef<T, V> = {\n id: \"select\",\n size: CHECKBOX_WIDTH,\n header: TableHeaderCheckbox,\n cell: TableRowCheckbox,\n };\n\n useEffect(() => {\n if (selectAllRows && hasSelectableRows) {\n const allSelected = data.reduce((acc, row, index) => {\n acc[getRowId(row, index)] = true;\n return acc;\n }, {});\n setRowSelection(allSelected);\n }\n }, [selectAllRows, hasSelectableRows, data, getRowId]);\n\n const handleRowClick = (row: Row<T>) => {\n if (allowSelectSingle) {\n const selectedRowData = row.original;\n onSelect?.(selectedRowData);\n }\n };\n\n const hasSortableColumns = useMemo(() => columnsProp.some((propCol) => !!propCol.enableSorting), [columnsProp]);\n\n const selectColumnConfig = allowSelectAll ? baseSelectColumnConfig : omit(baseSelectColumnConfig, \"header\");\n\n const expandColumnConfig: LGColumnDef<T, V> = {\n id: \"expander\",\n size: 30,\n header: () => null,\n cell: ({ row }) => {\n const isExpandable = row.getCanExpand();\n return isExpandable ? (\n <ToggleExpandedIcon\n isExpanded={row.getIsExpanded()}\n toggleExpanded={() => row.toggleExpanded()}\n disabled={false}\n />\n ) : null;\n },\n };\n\n const hoverIconConfig: LGColumnDef<T, V> = {\n id: \"hoverIcon\",\n size: 30,\n sticky: \"right\",\n header: () => null,\n cell: ({ row }) => (\n <span style={{ display: \"block\", height: \"100%\" }}>\n {hoveredRow === row.index && hoverIcon}\n </span>\n ),\n };\n\n const columns = useMemo<Array<LGColumnDef<T, V>>>(() => {\n const stickyLeftColumns = columnsProp.filter((col) => col.sticky === \"left\");\n const stickyRightColumns = columnsProp.filter((col) => col.sticky === \"right\");\n\n let leftOffset = 0;\n let rightOffset = 0;\n\n return [\n ...(hasSelectableRows ? [selectColumnConfig as LGColumnDef<T, V>] : []),\n ...(isExpandable ? [expandColumnConfig] : []),\n ...columnsProp\n .map((propColumn, index) => {\n const newColumn = {\n ...propColumn,\n align: propColumn.align ?? \"left\",\n enableSorting: propColumn.enableSorting ?? false,\n isResizable: propColumn.isResizable ?? false,\n cell: propColumn.cell || (({ getValue }) => getValue()),\n };\n\n if (propColumn.sticky === \"left\") {\n newColumn.left = leftOffset;\n leftOffset += propColumn.size;\n newColumn.isLastStickyLeft = index === stickyLeftColumns.length - 1;\n } else if (propColumn.sticky === \"right\") {\n rightOffset += propColumn.size;\n newColumn.right = rightOffset - propColumn.size;\n newColumn.isFirstStickyRight = index === columnsProp.length - stickyRightColumns.length;\n }\n\n return newColumn;\n })\n .map((column, index, columns) => {\n if (column.sticky === \"right\") {\n column.isFirstStickyRight = index === columns.length - stickyRightColumns.length;\n }\n return column;\n }),\n hoverIcon ? hoverIconConfig : null,\n ...(columnManager\n ? [\n {\n id: \"columnManager\",\n size: 20,\n header: () => (\n <Dialog\n showTrigger={[Dialog.hideShowTriggers.CLICK]}\n hideTrigger={[Dialog.hideShowTriggers.CLICK_OUTSIDE]}\n position={Dialog.positions.BOTTOM_END}\n open={isDialogOpen}\n content={\n <DialogContentContainer key=\"small\">\n {table.getAllLeafColumns().slice(0, -1).map((column, index) => (\n <ListItem key={`${column.id}-${index}`}>\n <Checkbox\n checked={column.getIsVisible()}\n label={column.columnDef.header as string || column.id}\n onChange={column.getToggleVisibilityHandler()}\n aria-labelledby={`iui-column-${column.id}`}\n />\n </ListItem>\n ))}\n </DialogContentContainer> \n }\n onDialogDidHide={() => setIsDialogOpen(false)}\n >\n <IconButton\n ariaLabel=\"Customize\"\n size={IconButton?.sizes?.XXS}\n icon={Settings}\n ref={columnManagerRef}\n onClick={() => setIsDialogOpen(true)}\n />\n </Dialog>\n ),\n cell: () => null,\n },\n ]\n : []),\n ].filter(Boolean);\n }, [columnsProp, hasSelectableRows, selectColumnConfig, columnManager, isExpandable, hoverIcon, isDialogOpen]);\n\n const [columnResizeMode, setColumnResizeMode] = useState<ColumnResizeMode>(\"onChange\");\n const [columnResizeDirection, setColumnResizeDirection] = useState<ColumnResizeDirection>(\"ltr\");\n\n const toggleAllRowsSelected = (value?: boolean) => {\n if (!hasSelectableRows) return;\n\n const newSelection = { ...initialSelectionRef.current };\n const rowsToSelect = selectCurrentPageOnly ? table.getPageRows() : table.getPreFilteredRowModel().rows;\n\n const setTo = value ?? !table.getIsAllRowsSelected();\n rowsToSelect.forEach((row) => {\n newSelection[row.id] = setTo;\n });\n\n setRowSelection(newSelection);\n };\n\n const unselectAllRows = () => {\n if (!hasSelectableRows) return;\n\n setRowSelection({});\n initialSelectionRef.current = {};\n onUnselectAll?.();\n };\n\n const loadMoreRows = useCallback(() => {\n if (!infiniteScrolling || isLoading || loadedData.length >= data.length) return;\n setIsLoading(true);\n setTimeout(() => {\n setLoadedData((prevData) => {\n const nextData = data.slice(prevData.length, prevData.length + loadMoreCount);\n if (prevData.length + nextData.length >= data.length && observerRef.current) {\n observerRef.current.disconnect();\n }\n\n return [...prevData, ...nextData];\n });\n setIsLoading(false);\n if (onLoadMore) {\n onLoadMore();\n }\n }, 500);\n }, [infiniteScrolling, isLoading, data, loadMoreCount, onLoadMore, loadedData.length]);\n\n useEffect(() => {\n if (infiniteScrolling && loadMoreTriggerRef.current) {\n observerRef.current = new IntersectionObserver(\n (entries) => {\n if (entries[0].isIntersecting) {\n loadMoreRows();\n }\n },\n { threshold: 0.1 }\n );\n\n observerRef.current.observe(loadMoreTriggerRef.current);\n }\n\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, [infiniteScrolling, loadMoreRows]);\n\n const tableOptions = {\n data: loadedData,\n columns,\n getCoreRowModel: getCoreRowModel(),\n getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,\n enableExpanding: true,\n enableSortingRemoval: hasSortableColumns ? true : undefined,\n getSubRows: (row) => row.subRows,\n getSortedRowModel: getSortedRowModel(),\n getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,\n initialState: initialState ? initialState : undefined,\n columnResizeMode,\n columnResizeDirection,\n autoResetPageIndex,\n ...rest,\n };\n\n if (hasSelectableRows) {\n tableOptions.getRowId = getRowId;\n tableOptions.state = { rowSelection };\n tableOptions.onRowSelectionChange = setRowSelection;\n }\n\n const table = useReactTable<LGTableDataType<T>>(tableOptions);\n\n table.toggleAllRowsSelected = toggleAllRowsSelected;\n table.unselectAllRows = unselectAllRows;\n\n const { rows } = table.getCoreRowModel();\n const { rows: paginationRows } = table.getPaginationRowModel();\n const _rowVirtualizer = useVirtual({\n parentRef: containerRef,\n size: rows.length,\n overscan: 30,\n ...virtualizerOptions,\n });\n\n useEffect(() => {\n if (onRowSelectionChange && hasSelectableRows) {\n const selectedRows = data.filter((row, index) => rowSelection[getRowId(row, index)]);\n onRowSelectionChange(selectedRows);\n }\n }, [rowSelection, data, onRowSelectionChange, getRowId, hasSelectableRows]);\n\n return {\n ...table,\n handleRowClick,\n toggleAllRowsSelected, \n unselectAllRows, \n ...(useVirtualScrolling && {\n virtualRows: _rowVirtualizer.virtualItems,\n totalSize: _rowVirtualizer.totalSize,\n scrollToIndex: _rowVirtualizer.scrollToIndex,\n scrollToOffset: _rowVirtualizer.scrollToOffset,\n measure: _rowVirtualizer.measure,\n }),\n hasSelectableRows,\n showColumnManager,\n setShowColumnManager,\n columnManagerRef,\n setHoveredRow,\n isLoading,\n loadedData,\n loadMoreTriggerRef,\n infiniteScrolling,\n loadMoreRows,\n } as LeafyGreenTable<T>;\n};\n\nexport default useLeafyGreenTable;\n"],"names":["useLeafyGreenTable","_a","containerRef","data","columnsProp","columns","hasSelectableRows","_a$withPagination","withPagination","_a$useVirtualScrollin","useVirtualScrolling","_a$allowSelectAll","allowSelectAll","_a$allowSelectSingle","allowSelectSingle","onSelect","virtualizerOptions","_a$initiallySelectedR","initiallySelectedRowIds","onRowSelectionChange","_a$columnManager","columnManager","_a$isExpandable","isExpandable","hoverIcon","_a$selectCurrentPageO","selectCurrentPageOnly","onUnselectAll","initialState","_a$initialLoadCount","initialLoadCount","_a$loadMoreCount","loadMoreCount","onLoadMore","_a$infiniteScrolling","infiniteScrolling","_a$autoResetPageIndex","autoResetPageIndex","_a$selectAllRows","selectAllRows","rest","__rest","_useState","useState","_useState2","_slicedToArray","rowSelection","setRowSelection","_useState3","_useState4","hoveredRow","setHoveredRow","_useState5","_useState6","showColumnManager","setShowColumnManager","_useState7","_useState8","loadedData","setLoadedData","_useState9","_useState10","isLoading","setIsLoading","_useState11","_useState12","isDialogOpen","setIsDialogOpen","columnManagerRef","useRef","isInitialSetupDone","initialSelectionRef","previousDataRef","observerRef","loadMoreTriggerRef","getRowId","useCallback","row","index","_b","id","useEffect","current","reduce","acc","slice","newRowSelection","baseSelectColumnConfig","size","header","TableHeaderCheckbox","cell","TableRowCheckbox","allSelected","hasSortableColumns","useMemo","some","propCol","enableSorting","selectColumnConfig","omit","expandColumnConfig","_ref","getCanExpand","_jsx","ToggleExpandedIcon","isExpanded","getIsExpanded","toggleExpanded","disabled","hoverIconConfig","sticky","_ref2","Object","assign","style","display","height","children","stickyLeftColumns","filter","col","stickyRightColumns","leftOffset","rightOffset","concat","_toConsumableArray","map","propColumn","newColumn","align","isResizable","_c","_ref3","getValue","left","isLastStickyLeft","length","right","isFirstStickyRight","column","Dialog","showTrigger","hideShowTriggers","CLICK","hideTrigger","CLICK_OUTSIDE","position","positions","BOTTOM_END","open","content","DialogContentContainer","table","getAllLeafColumns","ListItem","Checkbox","checked","getIsVisible","label","columnDef","onChange","getToggleVisibilityHandler","onDialogDidHide","IconButton","ariaLabel","sizes","XXS","icon","Settings","ref","onClick","Boolean","_useState13","_useState14","columnResizeMode","_useState15","_useState16","columnResizeDirection","toggleAllRowsSelected","value","newSelection","rowsToSelect","getPageRows","getPreFilteredRowModel","rows","setTo","getIsAllRowsSelected","forEach","unselectAllRows","loadMoreRows","setTimeout","prevData","nextData","disconnect","IntersectionObserver","entries","isIntersecting","threshold","observe","tableOptions","getCoreRowModel","getRowCanExpand","original","renderExpandedContent","subRows","enableExpanding","enableSortingRemoval","undefined","getSubRows","getSortedRowModel","getPaginationRowModel","state","useReactTable","_rowVirtualizer","useVirtual","parentRef","overscan","selectedRows","handleRowClick","virtualRows","virtualItems","totalSize","scrollToIndex","scrollToOffset","measure"],"mappings":"+9BAmBA,IAEMA,EAAqB,SAAmDC,GAAA,IAC5EC,EAuBqBD,EAvBrBC,aACAC,EAsBqBF,EAtBrBE,KACSC,EAqBYH,EArBrBI,QACAC,EAoBqBL,EApBrBK,kBAAiBC,EAoBIN,EAnBrBO,eAAAA,OAAiB,IAAHD,GAAQA,EAAAE,EAmBDR,EAlBrBS,oBAAAA,OAAsB,IAAHD,GAAQA,EAAAE,EAkBNV,EAjBrBW,eAAAA,OAAiB,IAAHD,GAAOA,EAAAE,EAiBAZ,EAhBrBa,kBAAAA,OAAoB,IAAHD,GAAQA,EACzBE,EAeqBd,EAfrBc,SACAC,EAcqBf,EAdrBe,mBAAkBC,EAcGhB,EAbrBiB,wBAAAA,OAA0B,IAAHD,EAAG,GAAEA,EAC5BE,EAYqBlB,EAZrBkB,qBAAoBC,EAYCnB,EAXrBoB,cAAAA,OAAgB,IAAHD,GAAQA,EAAAE,EAWArB,EAVrBsB,aAAAA,OAAe,IAAHD,GAAQA,EACpBE,EASqBvB,EATrBuB,UAASC,EASYxB,EARrByB,sBAAAA,OAAwB,IAAHD,GAAQA,EAC7BE,EAOqB1B,EAPrB0B,cACAC,EAMqB3B,EANrB2B,aAAYC,EAMS5B,EALrB6B,iBAAAA,OAAmB,IAAHD,EAAG,GAAEA,EAAAE,EAKA9B,EAJrB+B,cAAAA,QAAgB,IAAHD,EAAG,GAAEA,EAClBE,GAGqBhC,EAHrBgC,WAAUC,GAGWjC,EAFrBkC,kBAAAA,QAAo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AA,IACvB0J,GAAarL,qBAAuB4B,IAGtC,IAAM0G,GAAQ4D,EAAkCb,IAEhD/C,GAAM0B,sBAAwBA,GAC9B1B,GAAMoC,gBAAkBA,GAExB,IAAQJ,GAAShC,GAAMgD,kBAAfhB,KAEF6B,IAD2B7D,GAAM0D,wBACfI,EAAUtG,OAAAC,OAAA,CAChCsG,UAAWtN,EACXsF,KAAMiG,GAAKhD,OACXgF,SAAU,IACPzM,KAUL,OAPAiE,GAAU,WACR,GAAI9D,GAAwBb,EAAmB,CAC7C,IAAMoN,EAAevN,EAAKqH,QAAO,SAAC3C,EAAKC,GAAK,OAAKhC,GAAa6B,GAASE,EAAKC,OAC5E3D,EAAqBuM,EACtB,CACH,GAAG,CAAC5K,GAAc3C,EAAMgB,EAAsBwD,GAAUrE,IAEjD2G,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACFuC,IAAK,CACRkE,eAxOqB,SAAC9I,GAClB/D,IAEFC,SAAAA,EADwB8D,EAAI8H,YAuO9BxB,sBAAAA,GACAU,gBAAAA,KACInL,GAAuB,CACzBkN,YAAaN,GAAgBO,aAC7BC,UAAWR,GAAgBQ,UAC3BC,cAAeT,GAAgBS,cAC/BC,eAAgBV,GAAgBU,eAChCC,QAASX,GAAgBW,WAE3B3N,kBAAAA,EACAgD,kBAAAA,GACAC,qBAAAA,GACAa,iBAAAA,GACAjB,cAAAA,GACAW,UAAAA,GACAJ,WAAAA,GACAgB,mBAAAA,GACAvC,kBAAAA,GACA2J,aAAAA,IAEJ"}
1
+ {"version":3,"file":"useLeafyGreenTable.js","sources":["../../../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"sourcesContent":["//@ts-nocheck\nimport { useEffect, useLayoutEffect, useMemo, useRef, useState, useCallback } from \"react\";\nimport { useVirtual } from \"react-virtual\";\nimport { useReactTable, ColumnResizeMode, ColumnResizeDirection } from \"@tanstack/react-table\";\nimport { getCoreRowModel, getPaginationRowModel, getSortedRowModel, Row } from \"@tanstack/react-table\";\nimport omit from \"lodash/omit\";\nimport { TableHeaderCheckbox } from \"./TableHeaderCheckbox\";\nimport { TableRowCheckbox } from \"./TableRowCheckbox\";\nimport { LeafyGreenTableOptions, LGRowData } from \"./useLeafyGreenTable.types\";\nimport { LeafyGreenTable, LGColumnDef, LGTableDataType } from \".\";\nimport Settings from \"../../../Icon/Icons/components/Settings\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport ToggleExpandedIcon from \"../ToggleExpandedIcon\";\nimport Dialog from \"../../../Dialog/Dialog\";\nimport List from \"../../../List/List\";\nimport DialogContentContainer from \"../../../DialogContentContainer/DialogContentContainer\";\nimport Checkbox from \"../../../Checkbox/Checkbox\";\nimport ListItem from \"../../../ListItem/ListItem\";\n\nconst CHECKBOX_WIDTH = 14;\n\nconst useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({\n containerRef,\n data,\n columns: columnsProp,\n hasSelectableRows,\n withPagination = false,\n useVirtualScrolling = false,\n allowSelectAll = true,\n allowSelectSingle = false,\n onSelect,\n virtualizerOptions,\n initiallySelectedRowIds = [],\n onRowSelectionChange,\n columnManager = false,\n isExpandable = false,\n hoverIcon,\n selectCurrentPageOnly = false,\n onUnselectAll,\n initialState,\n initialLoadCount = 20, \n loadMoreCount = 10, \n onLoadMore, \n infiniteScrolling = false,\n autoResetPageIndex = true,\n selectAllRows = false,\n ...rest\n}: LeafyGreenTableOptions<T, V>): LeafyGreenTable<T> => {\n const [rowSelection, setRowSelection] = useState<{ [key: string]: boolean }>({});\n const [hoveredRow, setHoveredRow] = useState<number | null>(null);\n const [showColumnManager, setShowColumnManager] = useState(false);\n const [loadedData, setLoadedData] = useState<T[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const columnManagerRef = useRef<HTMLButtonElement>(null);\n const isInitialSetupDone = useRef(false);\n const initialSelectionRef = useRef<{ [key: string]: boolean }>({});\n const previousDataRef = useRef<T[]>([]);\n const observerRef = useRef<IntersectionObserver | null>(null);\n const loadMoreTriggerRef = useRef<HTMLDivElement | null>(null);\n\n const getRowId = useCallback((row: T, index: number) => {\n if (hasSelectableRows) {\n return row.id?.toString() ?? index.toString();\n }\n return index.toString();\n }, [hasSelectableRows]);\n\n useEffect(() => {\n if (!isInitialSetupDone.current && hasSelectableRows) {\n initialSelectionRef.current = initiallySelectedRowIds.reduce((acc, id) => {\n acc[id.toString()] = true;\n return acc;\n }, {});\n isInitialSetupDone.current = true;\n }\n }, [initiallySelectedRowIds, hasSelectableRows]);\n\n useEffect(()=>{\n if (isInitialSetupDone.current) {\n setRowSelection(initialSelectionRef.current);\n }\n },[isInitialSetupDone.current]);\n\n useEffect(() => {\n setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);\n }, [data, infiniteScrolling, initialLoadCount]);\n\n useEffect(() => {\n if (data !== previousDataRef.current && hasSelectableRows) {\n setRowSelection(rowSelection);\n previousDataRef.current = data;\n }\n }, [data, getRowId, hasSelectableRows]);\n\n const baseSelectColumnConfig: LGColumnDef<T, V> = {\n id: \"select\",\n size: CHECKBOX_WIDTH,\n header: TableHeaderCheckbox,\n cell: TableRowCheckbox,\n };\n\n useEffect(() => {\n if (selectAllRows && hasSelectableRows) {\n const allSelected = data.reduce((acc, row, index) => {\n acc[getRowId(row, index)] = true;\n return acc;\n }, {});\n setRowSelection(allSelected);\n }\n }, [selectAllRows, hasSelectableRows, data, getRowId]);\n\n const handleRowClick = (row: Row<T>) => {\n if (allowSelectSingle) {\n const selectedRowData = row.original;\n onSelect?.(selectedRowData);\n }\n };\n\n const hasSortableColumns = useMemo(() => columnsProp.some((propCol) => !!propCol.enableSorting), [columnsProp]);\n\n const selectColumnConfig = allowSelectAll ? baseSelectColumnConfig : omit(baseSelectColumnConfig, \"header\");\n\n const expandColumnConfig: LGColumnDef<T, V> = {\n id: \"expander\",\n size: 30,\n header: () => null,\n cell: ({ row }) => {\n const isExpandable = row.getCanExpand();\n return isExpandable ? (\n <ToggleExpandedIcon\n isExpanded={row.getIsExpanded()}\n toggleExpanded={() => row.toggleExpanded()}\n disabled={false}\n />\n ) : null;\n },\n };\n\n const hoverIconConfig: LGColumnDef<T, V> = {\n id: \"hoverIcon\",\n size: 30,\n sticky: \"right\",\n header: () => null,\n cell: ({ row }) => (\n <span style={{ display: \"block\", height: \"100%\" }}>\n {hoveredRow === row.index && hoverIcon}\n </span>\n ),\n };\n\n const columns = useMemo<Array<LGColumnDef<T, V>>>(() => {\n const stickyLeftColumns = columnsProp.filter((col) => col.sticky === \"left\");\n const stickyRightColumns = columnsProp.filter((col) => col.sticky === \"right\");\n\n let leftOffset = 0;\n let rightOffset = 0;\n\n return [\n ...(hasSelectableRows ? [selectColumnConfig as LGColumnDef<T, V>] : []),\n ...(isExpandable ? [expandColumnConfig] : []),\n ...columnsProp\n .map((propColumn, index) => {\n const newColumn = {\n ...propColumn,\n align: propColumn.align ?? \"left\",\n enableSorting: propColumn.enableSorting ?? false,\n isResizable: propColumn.isResizable ?? false,\n cell: propColumn.cell || (({ getValue }) => getValue()),\n };\n\n if (propColumn.sticky === \"left\") {\n newColumn.left = leftOffset;\n leftOffset += propColumn.size;\n newColumn.isLastStickyLeft = index === stickyLeftColumns.length - 1;\n } else if (propColumn.sticky === \"right\") {\n rightOffset += propColumn.size;\n newColumn.right = rightOffset - propColumn.size;\n newColumn.isFirstStickyRight = index === columnsProp.length - stickyRightColumns.length;\n }\n\n return newColumn;\n })\n .map((column, index, columns) => {\n if (column.sticky === \"right\") {\n column.isFirstStickyRight = index === columns.length - stickyRightColumns.length;\n }\n return column;\n }),\n hoverIcon ? hoverIconConfig : null,\n ...(columnManager\n ? [\n {\n id: \"columnManager\",\n size: 20,\n header: () => (\n <Dialog\n showTrigger={[Dialog.hideShowTriggers.CLICK]}\n hideTrigger={[Dialog.hideShowTriggers.CLICK_OUTSIDE]}\n position={Dialog.positions.BOTTOM_END}\n open={isDialogOpen}\n content={\n <DialogContentContainer key=\"small\">\n {table.getAllLeafColumns().slice(0, -1).map((column, index) => (\n <ListItem key={`${column.id}-${index}`}>\n <Checkbox\n checked={column.getIsVisible()}\n label={column.columnDef.header as string || column.id}\n onChange={column.getToggleVisibilityHandler()}\n aria-labelledby={`iui-column-${column.id}`}\n />\n </ListItem>\n ))}\n </DialogContentContainer> \n }\n onDialogDidHide={() => setIsDialogOpen(false)}\n >\n <IconButton\n ariaLabel=\"Customize\"\n size={IconButton?.sizes?.XXS}\n icon={Settings}\n ref={columnManagerRef}\n onClick={() => setIsDialogOpen(true)}\n />\n </Dialog>\n ),\n cell: () => null,\n },\n ]\n : []),\n ].filter(Boolean);\n }, [columnsProp, hasSelectableRows, selectColumnConfig, columnManager, isExpandable, hoverIcon, isDialogOpen]);\n\n const [columnResizeMode, setColumnResizeMode] = useState<ColumnResizeMode>(\"onChange\");\n const [columnResizeDirection, setColumnResizeDirection] = useState<ColumnResizeDirection>(\"ltr\");\n\n const toggleAllRowsSelected = (value?: boolean) => {\n if (!hasSelectableRows) return;\n\n const newSelection = { ...initialSelectionRef.current };\n const rowsToSelect = selectCurrentPageOnly ? table.getPageRows() : table.getPreFilteredRowModel().rows;\n\n const setTo = value ?? !table.getIsAllRowsSelected();\n rowsToSelect.forEach((row) => {\n newSelection[row.id] = setTo;\n });\n\n setRowSelection(newSelection);\n };\n\n const unselectAllRows = () => {\n if (!hasSelectableRows) return;\n\n setRowSelection({});\n initialSelectionRef.current = {};\n onUnselectAll?.();\n };\n\n const loadMoreRows = useCallback(() => {\n if (!infiniteScrolling || isLoading || loadedData.length >= data.length) return;\n setIsLoading(true);\n setTimeout(() => {\n setLoadedData((prevData) => {\n const nextData = data.slice(prevData.length, prevData.length + loadMoreCount);\n if (prevData.length + nextData.length >= data.length && observerRef.current) {\n observerRef.current.disconnect();\n }\n\n return [...prevData, ...nextData];\n });\n setIsLoading(false);\n if (onLoadMore) {\n onLoadMore();\n }\n }, 500);\n }, [infiniteScrolling, isLoading, data, loadMoreCount, onLoadMore, loadedData.length]);\n\n useEffect(() => {\n if (infiniteScrolling && loadMoreTriggerRef.current) {\n observerRef.current = new IntersectionObserver(\n (entries) => {\n if (entries[0].isIntersecting) {\n loadMoreRows();\n }\n },\n { threshold: 0.1 }\n );\n\n observerRef.current.observe(loadMoreTriggerRef.current);\n }\n\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, [infiniteScrolling, loadMoreRows]);\n\n const tableOptions = {\n data: loadedData,\n columns,\n getCoreRowModel: getCoreRowModel(),\n getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,\n enableExpanding: true,\n enableSortingRemoval: hasSortableColumns ? true : undefined,\n getSubRows: (row) => row.subRows,\n getSortedRowModel: getSortedRowModel(),\n getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,\n initialState: initialState ? initialState : undefined,\n columnResizeMode,\n columnResizeDirection,\n autoResetPageIndex,\n ...rest,\n };\n\n if (hasSelectableRows) {\n tableOptions.getRowId = getRowId;\n tableOptions.state = { rowSelection };\n tableOptions.onRowSelectionChange = setRowSelection;\n }\n\n const table = useReactTable<LGTableDataType<T>>(tableOptions);\n\n table.toggleAllRowsSelected = toggleAllRowsSelected;\n table.unselectAllRows = unselectAllRows;\n\n const { rows } = table.getCoreRowModel();\n const { rows: paginationRows } = table.getPaginationRowModel();\n const _rowVirtualizer = useVirtual({\n parentRef: containerRef,\n size: rows.length,\n overscan: 30,\n ...virtualizerOptions,\n });\n\n useEffect(() => {\n if (onRowSelectionChange && hasSelectableRows) {\n const selectedRows = data.filter((row, index) => rowSelection[getRowId(row, index)]);\n onRowSelectionChange(selectedRows);\n }\n }, [rowSelection, data, onRowSelectionChange, getRowId, hasSelectableRows]);\n\n return {\n ...table,\n handleRowClick,\n toggleAllRowsSelected, \n unselectAllRows, \n ...(useVirtualScrolling && {\n virtualRows: _rowVirtualizer.virtualItems,\n totalSize: _rowVirtualizer.totalSize,\n scrollToIndex: _rowVirtualizer.scrollToIndex,\n scrollToOffset: _rowVirtualizer.scrollToOffset,\n measure: _rowVirtualizer.measure,\n }),\n hasSelectableRows,\n showColumnManager,\n setShowColumnManager,\n columnManagerRef,\n setHoveredRow,\n isLoading,\n loadedData,\n loadMoreTriggerRef,\n infiniteScrolling,\n loadMoreRows,\n } as LeafyGreenTable<T>;\n};\n\nexport default useLeafyGreenTable;\n"],"names":["useLeafyGreenTable","_a","containerRef","data","columnsProp","columns","hasSelectableRows","_a$withPagination","withPagination","_a$useVirtualScrollin","useVirtualScrolling","_a$allowSelectAll","allowSelectAll","_a$allowSelectSingle","allowSelectSingle","onSelect","virtualizerOptions","_a$initiallySelectedR","initiallySelectedRowIds","onRowSelectionChange","_a$columnManager","columnManager","_a$isExpandable","isExpandable","hoverIcon","_a$selectCurrentPageO","selectCurrentPageOnly","onUnselectAll","initialState","_a$initialLoadCount","initialLoadCount","_a$loadMoreCount","loadMoreCount","onLoadMore","_a$infiniteScrolling","infiniteScrolling","_a$autoResetPageIndex","autoResetPageIndex","_a$selectAllRows","selectAllRows","rest","__rest","_useState","useState","_useState2","_slicedToArray","rowSelection","setRowSelection","_useState3","_useState4","hoveredRow","setHoveredRow","_useState5","_useState6","showColumnManager","setShowColumnManager","_useState7","_useState8","loadedData","setLoadedData","_useState9","_useState10","isLoading","setIsLoading","_useState11","_useState12","isDialogOpen","setIsDialogOpen","columnManagerRef","useRef","isInitialSetupDone","initialSelectionRef","previousDataRef","observerRef","loadMoreTriggerRef","getRowId","useCallback","row","index","_b","id","useEffect","current","reduce","acc","slice","baseSelectColumnConfig","size","header","TableHeaderCheckbox","cell","TableRowCheckbox","allSelected","hasSortableColumns","useMemo","some","propCol","enableSorting","selectColumnConfig","omit","expandColumnConfig","_ref","getCanExpand","_jsx","ToggleExpandedIcon","isExpanded","getIsExpanded","toggleExpanded","disabled","hoverIconConfig","sticky","_ref2","Object","assign","style","display","height","children","stickyLeftColumns","filter","col","stickyRightColumns","leftOffset","rightOffset","concat","_toConsumableArray","map","propColumn","newColumn","align","isResizable","_c","_ref3","getValue","left","isLastStickyLeft","length","right","isFirstStickyRight","column","Dialog","showTrigger","hideShowTriggers","CLICK","hideTrigger","CLICK_OUTSIDE","position","positions","BOTTOM_END","open","content","DialogContentContainer","table","getAllLeafColumns","ListItem","Checkbox","checked","getIsVisible","label","columnDef","onChange","getToggleVisibilityHandler","onDialogDidHide","IconButton","ariaLabel","sizes","XXS","icon","Settings","ref","onClick","Boolean","_useState13","_useState14","columnResizeMode","_useState15","_useState16","columnResizeDirection","toggleAllRowsSelected","value","newSelection","rowsToSelect","getPageRows","getPreFilteredRowModel","rows","setTo","getIsAllRowsSelected","forEach","unselectAllRows","loadMoreRows","setTimeout","prevData","nextData","disconnect","IntersectionObserver","entries","isIntersecting","threshold","observe","tableOptions","getCoreRowModel","getRowCanExpand","original","renderExpandedContent","subRows","enableExpanding","enableSortingRemoval","undefined","getSubRows","getSortedRowModel","getPaginationRowModel","state","useReactTable","_rowVirtualizer","useVirtual","parentRef","overscan","selectedRows","handleRowClick","virtualRows","virtualItems","totalSize","scrollToIndex","scrollToOffset","measure"],"mappings":"+9BAmBA,IAEMA,EAAqB,SAAmDC,GAAA,IAC5EC,EAuBqBD,EAvBrBC,aACAC,EAsBqBF,EAtBrBE,KACSC,EAqBYH,EArBrBI,QACAC,EAoBqBL,EApBrBK,kBAAiBC,EAoBIN,EAnBrBO,eAAAA,OAAiB,IAAHD,GAAQA,EAAAE,EAmBDR,EAlBrBS,oBAAAA,OAAsB,IAAHD,GAAQA,EAAAE,EAkBNV,EAjBrBW,eAAAA,OAAiB,IAAHD,GAAOA,EAAAE,EAiBAZ,EAhBrBa,kBAAAA,OAAoB,IAAHD,GAAQA,EACzBE,EAeqBd,EAfrBc,SACAC,EAcqBf,EAdrBe,mBAAkBC,EAcGhB,EAbrBiB,wBAAAA,OAA0B,IAAHD,EAAG,GAAEA,EAC5BE,EAYqBlB,EAZrBkB,qBAAoBC,EAYCnB,EAXrBoB,cAAAA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AAAA,EACAgD,kBAAAA,GACAC,qBAAAA,GACAa,iBAAAA,GACAjB,cAAAA,GACAW,UAAAA,GACAJ,WAAAA,GACAgB,mBAAAA,GACAvC,kBAAAA,GACA0J,aAAAA,IAEJ"}
@@ -0,0 +1,2 @@
1
+ var e={tableContainerStyles:"tableContainerStyles_8dfdd3adfa",baseStyles:"baseStyles_3ce009b3c1"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-89f65d6dfe25_0_0_82-table-tanstack";if(n.querySelector("#"+t))return;const a=document.createElement("style");a.id=t,n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.appendChild(document.createTextNode(e))}(".tableContainerStyles_8dfdd3adfa {\n overflow: auto;\n position: relative;\n}\n\n.baseStyles_3ce009b3c1 {\n border-spacing: 0;\n border-collapse: collapse;\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n flex-direction: column;\n isolation: isolate;\n overflow: auto;\n scrollbar-gutter: stable;\n background-color: var(--surface-primary);\n font-size: 14px;\n}");export{e as default};
2
+ //# sourceMappingURL=Table.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{defineProperty as l}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as i}from"../../../../../_virtual/_tslib.js";import{jsx as e}from"react/jsx-runtime";import t from"classnames";import{useTableContext as s}from"../TableContext/TableContext.js";import r from"./Cell.module.scss.js";var n=function(n){var o,a,c,m=n.className,u=n.contentClassName,f=n.align,d=n.children,p=n.cell,g=i(n,["className","contentClassName","align","children","cell"]),v=s().disableAnimations;if(!p)return console.error("Cell prop is missing"),null;if(!p.column)return console.error("Cell prop structure is incorrect. Missing 'column' property.",p),null;var y=null===(o=p.column.columnDef)||void 0===o?void 0:o.sticky,C=null===(a=p.column.columnDef)||void 0===a?void 0:a.isLastStickyLeft,b=null===(c=p.column.columnDef)||void 0===c?void 0:c.isFirstStickyRight;return e("td",Object.assign({className:t(r.baseCell,m,"left"===y&&r.stickyLeft,"right"===y&&r.stickyRight,C&&r.lastStickyLeft,b&&r.firstStickyRight)},g,{children:e("div",Object.assign({className:t(r.cellTransitionContainer,r["align-".concat(f)],l({},r.disableAnimation,v),u)},{children:d}))}))};n.displayName="Cell";export{n as default};
2
+ //# sourceMappingURL=Cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cell.js","sources":["../../../../../../../src/components/Table/components/Cell/Cell.tsx"],"sourcesContent":["//@ts-nocheck\nimport React from \"react\";\nimport cx from \"classnames\";\nimport { useTableContext } from \"../TableContext\";\nimport styles from \"./Cell.module.scss\"; // Import SCSS module\nimport { CellProps as BaseCellProps } from \"./Cell.types\";\nimport { LGRowData } from \"../useLeafyGreenTable\";\n\nconst Cell = <T extends LGRowData>({\n className,\n contentClassName,\n align,\n children,\n cell,\n ...rest\n}: BaseCellProps<T>) => {\n const { disableAnimations } = useTableContext();\n\n if (!cell) {\n console.error(\"Cell prop is missing\");\n return null;\n }\n\n if (!cell.column) {\n console.error(\"Cell prop structure is incorrect. Missing 'column' property.\", cell);\n return null;\n }\n\n const sticky = cell.column.columnDef?.sticky;\n const isLastStickyLeft = cell.column.columnDef?.isLastStickyLeft;\n const isFirstStickyRight = cell.column.columnDef?.isFirstStickyRight;\n\n return (\n <td\n className={cx(\n styles.baseCell,\n className,\n sticky === \"left\" && styles.stickyLeft,\n sticky === \"right\" && styles.stickyRight,\n isLastStickyLeft && styles.lastStickyLeft,\n isFirstStickyRight && styles.firstStickyRight\n )}\n {...rest}\n >\n <div\n className={cx(\n styles.cellTransitionContainer,\n styles[`align-${align}`],\n { [styles.disableAnimation]: disableAnimations },\n contentClassName\n )}\n >\n {children}\n </div>\n </td>\n );\n};\n\nCell.displayName = \"Cell\";\n\nexport default Cell;\n"],"names":["Cell","_a","className","contentClassName","align","children","cell","rest","__rest","disableAnimations","useTableContext","console","error","column","sticky","_b","columnDef","isLastStickyLeft","_c","isFirstStickyRight","_d","_jsx","Object","assign","cx","styles","baseCell","stickyLeft","stickyRight","lastStickyLeft","firstStickyRight","cellTransitionContainer","concat","_defineProperty","disableAnimation","displayName"],"mappings":"0TAQA,IAAMA,EAAO,SAAsBC,aACjCC,EAMiBD,EANjBC,UACAC,EAKiBF,EALjBE,iBACAC,EAIiBH,EAJjBG,MACAC,EAGiBJ,EAHjBI,SACAC,EAEiBL,EAFjBK,KACGC,EAAIC,EAAAP,EAN0B,4DAQzBQ,EAAsBC,IAAtBD,kBAER,IAAKH,EAEH,OADAK,QAAQC,MAAM,wBACP,KAGT,IAAKN,EAAKO,OAER,OADAF,QAAQC,MAAM,+DAAgEN,GACvE,KAGT,IAAMQ,EAAgC,QAAvBC,EAAAT,EAAKO,OAAOG,iBAAW,IAAAD,OAAA,EAAAA,EAAAD,OAChCG,EAA0C,QAAvBC,EAAAZ,EAAKO,OAAOG,iBAAW,IAAAE,OAAA,EAAAA,EAAAD,iBAC1CE,EAA4C,QAAvBC,EAAAd,EAAKO,OAAOG,iBAAW,IAAAI,OAAA,EAAAA,EAAAD,mBAElD,OACEE,EACE,KAAAC,OAAAC,OAAA,CAAArB,UAAWsB,EACTC,EAAOC,SACPxB,EACW,SAAXY,GAAqBW,EAAOE,WACjB,UAAXb,GAAsBW,EAAOG,YAC7BX,GAAoBQ,EAAOI,eAC3BV,GAAsBM,EAAOK,mBAE3BvB,EAAI,CAAAF,SAERgB,EACE,MAAAC,OAAAC,OAAA,CAAArB,UAAWsB,EACTC,EAAOM,wBACPN,EAAM,SAAAO,OAAU5B,IAAQ6B,EACrBR,CAAAA,EAAAA,EAAOS,iBAAmBzB,GAC7BN,IAGD,CAAAE,SAAAA,OAIT,EAEAL,EAAKmC,YAAc"}
@@ -0,0 +1,2 @@
1
+ var n={baseCell:"baseCell_76a8099e21",stickyLeft:"stickyLeft_9434a8fe57",stickyRight:"stickyRight_4b5080f83d",lastStickyLeft:"lastStickyLeft_b4f73face0",firstStickyRight:"firstStickyRight_ddb5e507d9",firstChildCell:"firstChildCell_296a9846a6",cellTransitionContainer:"cellTransitionContainer_d7bfb30c48",truncatedContent:"truncatedContent_aed3aa9dda",disableAnimation:"disableAnimation_f34ccde3cb",cellContentTransitionEntered:"cellContentTransitionEntered_8d8252357f",cellContentTransitionEntering:"cellContentTransitionEntering_0708d0cf7f",cellContentTransitionExiting:"cellContentTransitionExiting_f52e10d606",cellContentTransitionExited:"cellContentTransitionExited_beb747e7de",cellContentTransitionUnmounted:"cellContentTransitionUnmounted_897f5c322a","align-left":"align-left_c4d9111d0b","align-right":"align-right_99cd62daab","align-center":"align-center_a5a7f5a536"};!function(n){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],e="s_id-adcf278e278b_0_0_82-table-tanstack";if(t.querySelector("#"+e))return;const i=document.createElement("style");i.id=e,t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.appendChild(document.createTextNode(n))}(".baseCell_76a8099e21 {\n overflow: hidden;\n border-block-start: solid 1px transparent;\n border-block-end: solid 1px transparent;\n border-block-end-color: var(--divider-primary);\n transition: all 0.3s ease-out;\n}\n.baseCell_76a8099e21:focus-visible {\n box-shadow: inset 0 0 0 1px black;\n}\n.baseCell_76a8099e21:last-child {\n padding-right: 32px;\n}\n.baseCell_76a8099e21.stickyLeft_9434a8fe57 {\n position: sticky;\n left: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n.baseCell_76a8099e21.stickyRight_4b5080f83d {\n position: sticky;\n right: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n.baseCell_76a8099e21.lastStickyLeft_b4f73face0 {\n box-shadow: inset -10px 0 5px -5px var(--shadow-color);\n}\n.baseCell_76a8099e21.firstStickyRight_ddb5e507d9 {\n box-shadow: inset 10px 0 5px -5px var(--shadow-color);\n}\n.firstChildCell_296a9846a6 {\n padding-left: 40px;\n}\n.cellTransitionContainer_d7bfb30c48 {\n display: flex;\n align-items: center;\n min-height: 40px;\n transition-property: min-height, max-height, opacity, padding, transform;\n transition-duration: 250ms;\n transition-timing-function: ease;\n}\n.truncatedContent_aed3aa9dda {\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n -webkit-box-align: start;\n}\n.disableAnimation_f34ccde3cb {\n transition-duration: 0;\n transition: none;\n}\n.cellContentTransitionEntered_8d8252357f {\n opacity: 1;\n min-height: 40px;\n max-height: unset;\n}\n.cellContentTransitionEntering_0708d0cf7f,\n.cellContentTransitionExiting_f52e10d606,\n.cellContentTransitionExited_beb747e7de,\n.cellContentTransitionUnmounted_897f5c322a {\n opacity: 0;\n min-height: 0;\n max-height: 0;\n overflow: hidden;\n}\n.align-left_c4d9111d0b {\n justify-content: left;\n text-align: left;\n}\n.align-right_99cd62daab {\n justify-content: right;\n text-align: right;\n}\n.align-center_a5a7f5a536 {\n justify-content: center;\n text-align: center;\n}");export{n as default};
2
+ //# sourceMappingURL=Cell.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cell.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var t={Default:"default",Truncate:"truncate"};export{t as CellOverflowBehavior};
2
+ //# sourceMappingURL=Cell.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cell.types.js","sources":["../../../../../../../src/components/Table/components/Cell/Cell.types.ts"],"sourcesContent":["import { CSSProperties, ReactNode } from 'react';\nimport { Cell as ReactTableCell } from '@tanstack/react-table';\nimport { LGRowData, LGTableDataType } from '../useLeafyGreenTable';\n\nexport type Align = 'left' | 'right' | 'center';\n\nexport const CellOverflowBehavior = {\n Default: 'default',\n Truncate: 'truncate',\n // Expand: 'expand', // Uncomment this when you implement the expand functionality\n} as const;\n\nexport type CellOverflowBehavior = (typeof CellOverflowBehavior)[keyof typeof CellOverflowBehavior];\n\ninterface BaseHTMLAttributes {\n className?: string;\n style?: CSSProperties;\n id?: string;\n // Add other HTML attributes as necessary\n}\n\ninterface BaseCellProps extends BaseHTMLAttributes {\n /**\n * Alignment of the cell's contents\n *\n * Overrides `<td>`'s deprecated `align` prop\n */\n align?: Align;\n\n children?: ReactNode;\n\n /** A `className` applied to the inner `div` of the Cell */\n contentClassName?: string;\n\n /**\n * Defines how a cell should behave when its content is larger than the standard cell height.\n *\n * `Default`: The cell height will be fixed to the standard cell height (40px by default).\n * Any overflowing content will be clipped.\n *\n * `Truncate`: The cell height will be fixed to the standard cell height (40px by default),\n * and include an ellipsis before the content is clipped.\n *\n * Note: It's recommended to provide the same value for all cells in a given row.\n *\n * @default CellOverflowBehavior.Default\n */\n overflow?: CellOverflowBehavior;\n}\n\nexport type LeafyGreenTableCell<T extends LGRowData> = ReactTableCell<LGTableDataType<T>, unknown>;\n\nexport interface CellProps<T extends LGRowData> extends BaseCellProps {\n cell: LeafyGreenTableCell<T>;\n}\n\nexport interface InternalCellProps extends BaseCellProps {\n /**\n * Index of the cell in its parent row.\n */\n cellIndex: number;\n children?: ReactNode;\n\n /**\n * Depth of nesting its parent row has.\n */\n depth: number;\n\n /**\n * Defines whether the cell's row is visible (i.e. expanded)\n *\n * @default true\n */\n isVisible?: boolean;\n\n /**\n * Defines whether the cell's row is expandable\n *\n * @default false\n */\n isExpandable?: boolean;\n}\n"],"names":["CellOverflowBehavior","Default","Truncate"],"mappings":"AAMO,IAAMA,EAAuB,CAClCC,QAAS,UACTC,SAAU"}
@@ -0,0 +1,2 @@
1
+ import{defineProperty as e}from"../../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as o}from"../../../../../../_virtual/_tslib.js";import{jsx as s,jsxs as l}from"react/jsx-runtime";import n from"classnames";import{useTableContext as t}from"../../TableContext/TableContext.js";import i from"./HeaderCell.module.scss.js";import{SortState as r}from"./HeaderCell.types.js";import c from"../../../../Icon/Icons/components/MoveArrowUp.js";import a from"../../../../Icon/Icons/components/MoveArrowDown.js";import m from"../../../../IconButton/IconButton.js";var d={false:r.Off,asc:r.Asc,desc:r.Desc},u=function(u){var f,g,v,p,h,b,j=u.children,z=u.className,C=u.header,I=o(u,["children","className","cellIndex","header"]);t();if(C&&C.column.getCanSort()){var S=""+C.column.getIsSorted();h=d[S],b=C.column.getToggleSortingHandler()}var x=null==C?void 0:C.getSize(),y=null===(f=null==C?void 0:C.column.columnDef)||void 0===f?void 0:f.isResizable,D=null===(g=null==C?void 0:C.column.columnDef)||void 0===g?void 0:g.sticky;return s("th",Object.assign({className:n(z,i.headerCell,y&&i.resizableHeaderCell,"left"===D&&i.stickyLeft,"right"===D&&i.stickyRight),scope:"col"},I,{children:l("div",Object.assign({className:n(i.headerCellContent),style:{minWidth:x?"".concat(x,"px"):void 0}},{children:[j,b&&s(m,{ariaLabel:"asc"===h?"Sort Descending":"Sort Ascending",size:null===(v=null==m?void 0:m.sizes)||void 0===v?void 0:v.XXS,className:n(i.sortIcon,e({},i.visible,h!==r.Off)),icon:"asc"===h?a:c,onClick:b}),y&&s("div",Object.assign({},{onDoubleClick:function(){return C.column.resetSize()},onMouseDown:C.getResizeHandler(),onTouchStart:C.getResizeHandler(),className:n(i.resizer,C.column.getIsResizing()&&i.isResizing),style:{transform:C.column.getIsResizing()?"translateX(".concat(null!==(p=C.getStart())&&void 0!==p?p:0,"px)"):""}}))]}))}))};export{u as default};
2
+ //# sourceMappingURL=HeaderCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCell.js","sources":["../../../../../../../../src/components/Table/components/Cell/HeaderCell/HeaderCell.tsx"],"sourcesContent":["//@ts-nocheck\nimport React, { PropsWithChildren } from \"react\";\nimport cx from \"classnames\";\nimport { useTableContext } from \"../../TableContext\";\nimport { LGRowData } from \"../../useLeafyGreenTable\";\nimport styles from \"./HeaderCell.module.scss\";\nimport { HeaderCellProps, SortState, SortStates } from \"./HeaderCell.types\";\nimport MoveArrowUp from \"../../../../Icon/Icons/components/MoveArrowUp\";\nimport MoveArrowDown from \"../../../../Icon/Icons/components/MoveArrowDown\";\nimport IconButton from \"../../../../IconButton/IconButton\";\n\nconst HeaderSortState: SortStates = {\n false: SortState.Off,\n asc: SortState.Asc,\n desc: SortState.Desc,\n};\n\nconst HeaderCell = <T extends LGRowData>({\n children,\n className,\n cellIndex,\n header,\n ...rest\n}: PropsWithChildren<HeaderCellProps<T>>) => {\n const { table } = useTableContext();\n\n const isFirstCell = cellIndex === 0;\n const isSelectable = !!table && !!table.hasSelectableRows;\n\n let columnName, sortState, onSortIconClick;\n\n if (header && header.column.getCanSort()) {\n columnName = header.column.columnDef.header as string;\n const headerSortDirection = header.column.getIsSorted().toString();\n sortState = HeaderSortState[headerSortDirection];\n onSortIconClick = header.column.getToggleSortingHandler();\n }\n\n const headerSize = header?.getSize();\n const isResizable = header?.column.columnDef?.isResizable;\n const sticky = header?.column.columnDef?.sticky;\n\n return (\n <th\n className={cx(\n className,\n styles.headerCell,\n isResizable && styles.resizableHeaderCell,\n sticky === 'left' && styles.stickyLeft,\n sticky === 'right' && styles.stickyRight\n )}\n scope=\"col\"\n {...rest}\n >\n <div\n className={cx(styles.headerCellContent)}\n style={{ minWidth: headerSize ? `${headerSize}px` : undefined }}\n >\n {children}\n {onSortIconClick && (\n <IconButton\n ariaLabel={\n sortState === \"asc\" ? \"Sort Descending\" : \"Sort Ascending\"\n }\n size={IconButton?.sizes?.XXS}\n className={cx(styles.sortIcon, {\n [styles.visible]: sortState !== SortState.Off,\n })}\n icon={sortState === \"asc\" ? MoveArrowDown : MoveArrowUp}\n onClick={onSortIconClick}\n />\n )}\n {isResizable && (\n <div\n {...{\n onDoubleClick: () => header.column.resetSize(),\n onMouseDown: header.getResizeHandler(),\n onTouchStart: header.getResizeHandler(),\n className: cx(\n styles.resizer,\n header.column.getIsResizing() && styles.isResizing\n ),\n style: {\n transform: header.column.getIsResizing()\n ? `translateX(${header.getStart() ?? 0}px)`\n : \"\",\n },\n }}\n />\n )}\n </div>\n </th>\n );\n};\n\nexport default HeaderCell;\n"],"names":["HeaderSortState","false","SortState","Off","asc","Asc","desc","Desc","HeaderCell","_a","sortState","onSortIconClick","children","className","header","rest","__rest","useTableContext","column","getCanSort","headerSortDirection","getIsSorted","getToggleSortingHandler","headerSize","getSize","isResizable","_b","columnDef","sticky","_c","_jsx","Object","assign","cx","styles","headerCell","resizableHeaderCell","stickyLeft","stickyRight","scope","_jsxs","headerCellContent","style","minWidth","concat","undefined","IconButton","ariaLabel","size","_d","sizes","XXS","sortIcon","_defineProperty","visible","icon","MoveArrowDown","MoveArrowUp","onClick","onDoubleClick","resetSize","onMouseDown","getResizeHandler","onTouchStart","resizer","getIsResizing","isResizing","transform","_e","getStart"],"mappings":"2jBAWA,IAAMA,EAA8B,CAClCC,MAAOC,EAAUC,IACjBC,IAAKF,EAAUG,IACfC,KAAMJ,EAAUK,MAGZC,EAAa,SAAsBC,eAYvBC,EAAWC,EAX3BC,EAGMH,EAHNG,SACAC,EAEMJ,EAFNI,UAEAC,EAAML,EAANK,OACGC,EALoCC,EAAAP,EAAA,CAAA,WAAA,YAAA,YAAA,WAOrBQ,IAOlB,GAAIH,GAAUA,EAAOI,OAAOC,aAAc,CAExC,IAAMC,EAAsBN,KAAOI,OAAOG,cAC1CX,EAAYV,EAAgBoB,GAC5BT,EAAkBG,EAAOI,OAAOI,yBACjC,CAED,IAAMC,EAAaT,eAAAA,EAAQU,UACrBC,EAAsC,QAAxBC,EAAAZ,aAAM,EAANA,EAAQI,OAAOS,iBAAS,IAAAD,OAAA,EAAAA,EAAED,YACxCG,EAAiC,QAAxBC,EAAAf,aAAM,EAANA,EAAQI,OAAOS,iBAAS,IAAAE,OAAA,EAAAA,EAAED,OAEzC,OACEE,EACE,KAAAC,OAAAC,OAAA,CAAAnB,UAAWoB,EACTpB,EACAqB,EAAOC,WACPV,GAAeS,EAAOE,oBACX,SAAXR,GAAqBM,EAAOG,WACjB,UAAXT,GAAsBM,EAAOI,aAE/BC,MAAM,OACFxB,YAEJyB,EACE,MAAAT,OAAAC,OAAA,CAAAnB,UAAWoB,EAAGC,EAAOO,mBACrBC,MAAO,CAAEC,SAAUpB,EAAU,GAAAqB,OAAMrB,EAAiBsB,WAAAA,IAAW,CAAAjC,SAAA,CAE9DA,EACAD,GACCmB,EAACgB,EACC,CAAAC,UACgB,QAAdrC,EAAsB,kBAAoB,iBAE5CsC,KAAyB,QAAnBC,EAAAH,aAAU,EAAVA,EAAYI,aAAO,IAAAD,OAAA,EAAAA,EAAAE,IACzBtC,UAAWoB,EAAGC,EAAOkB,SAAQC,EAAA,CAAA,EAC1BnB,EAAOoB,QAAU5C,IAAcR,EAAUC,MAE5CoD,KAAoB,QAAd7C,EAAsB8C,EAAgBC,EAC5CC,QAAS/C,IAGZc,GACCK,EACM,MAAAC,OAAAC,OAAA,GAAA,CACF2B,cAAe,WAAA,OAAM7C,EAAOI,OAAO0C,WAAW,EAC9CC,YAAa/C,EAAOgD,mBACpBC,aAAcjD,EAAOgD,mBACrBjD,UAAWoB,EACTC,EAAO8B,QACPlD,EAAOI,OAAO+C,iBAAmB/B,EAAOgC,YAE1CxB,MAAO,CACLyB,UAAWrD,EAAOI,OAAO+C,gBAAerB,cAAAA,OACD,QAArBwB,EAAAtD,EAAOuD,kBAAc,IAAAD,EAAAA,EAAA,EACnC,OAAA,aAQpB"}
@@ -0,0 +1,2 @@
1
+ var e={headerCellContent:"headerCellContent_d5501df9b1",headerCell:"headerCell_6ca2e23db0",sortIcon:"sortIcon_8f6229b84b",stickyLeft:"stickyLeft_9434a8fe57",stickyRight:"stickyRight_4b5080f83d",visible:"visible_5e3897b5b1",resizableHeaderCell:"resizableHeaderCell_6ca2e23db0",resizer:"resizer_2806e514d4",isResizing:"isResizing_5451406b80",tableSort:"tableSort_9a89627cc1",tableSortsorted:"tableSortsorted_4697712c34"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],r="s_id-176eea49fa0f_0_0_82-table-tanstack";if(n.querySelector("#"+r))return;const t=document.createElement("style");t.id=r,n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),t.appendChild(document.createTextNode(e))}(".headerCellContent_d5501df9b1 {\n height: 40px;\n}\n\n.headerCell_6ca2e23db0 {\n position: relative;\n}\n\n.headerCell_6ca2e23db0:hover .sortIcon_8f6229b84b,\n.headerCell_6ca2e23db0 .sortIcon_8f6229b84b:hover {\n opacity: 1;\n}\n\n.headerCell_6ca2e23db0.stickyLeft_9434a8fe57 {\n position: sticky;\n left: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n\n.headerCell_6ca2e23db0.stickyRight_4b5080f83d {\n position: sticky;\n right: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n\n.sortIcon_8f6229b84b {\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.sortIcon_8f6229b84b.visible_5e3897b5b1 {\n opacity: 1;\n}\n\n.resizableHeaderCell_6ca2e23db0 {\n position: relative;\n}\n\n.headerCellContent_d5501df9b1 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-block-start: solid 1px transparent;\n border-block-end: solid 1px transparent;\n border-block-end-color: var(--divider-primary);\n}\n\n.resizer_2806e514d4 {\n position: absolute;\n inline-size: 6px;\n width: 5px;\n height: 100%;\n block-size: 100%;\n margin-inline: auto;\n cursor: col-resize;\n right: 0;\n top: 0;\n background-color: transparent;\n transition: background-color 0.3s ease-out, width 0.3s ease-out;\n}\n\n.resizer_2806e514d4:hover {\n background-color: var(--divider-secondary);\n}\n\n.isResizing_5451406b80 {\n background-color: rgba(173, 216, 230, 0.5);\n user-select: none;\n inline-size: var(--spacing-small);\n background-color: var(--divider-selected);\n}\n\n.tableSort_9a89627cc1 {\n opacity: 1;\n color: var(--icon-secondary);\n}\n\n.tableSortsorted_4697712c34 {\n background-color: var(--surface-primary-hover);\n}\n\n.tableSortsorted_4697712c34 .tableSort_9a89627cc1 {\n opacity: 1;\n --_iui-table-cell-icon-fill: var(--icon-primary);\n}");export{e as default};
2
+ //# sourceMappingURL=HeaderCell.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCell.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e={Asc:"asc",Desc:"desc",Off:"off",None:"none"};export{e as SortState};
2
+ //# sourceMappingURL=HeaderCell.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderCell.types.js","sources":["../../../../../../../../src/components/Table/components/Cell/HeaderCell/HeaderCell.types.ts"],"sourcesContent":["import { Header } from \"@tanstack/react-table\";\nimport { CSSProperties } from 'react';\n\nimport { LGRowData } from \"../../useLeafyGreenTable\";\n\nexport const SortState = {\n Asc: \"asc\",\n Desc: \"desc\",\n Off: \"off\",\n None: \"none\",\n} as const;\n\nexport type SortState = (typeof SortState)[keyof typeof SortState];\n\nexport interface SortStates {\n [key: string]: SortState;\n}\n\nexport interface HeaderCellProps<T extends LGRowData> {\n align?: \"left\" | \"center\" | \"right\";\n sortState?: SortState;\n header?: Header<T, unknown>;\n cellIndex?: number;\n className?: string;\n style?: CSSProperties;\n id?: string;\n}\n"],"names":["SortState","Asc","Desc","Off","None"],"mappings":"AAKO,IAAMA,EAAY,CACvBC,IAAK,MACLC,KAAM,OACNC,IAAK,MACLC,KAAM"}
@@ -0,0 +1,2 @@
1
+ import{__rest as e}from"../../../../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import{useRef as n,useMemo as l}from"react";import{Transition as i}from"react-transition-group";import r from"prop-types";import a from"classnames";import{useTableContext as s}from"../TableContext/TableContext.js";import o from"./Cell.module.scss.js";import{CellOverflowBehavior as c}from"./Cell.types.js";var m=function(r){var m=r.children,d=r.className,p=r.contentClassName,u=r.cellIndex,f=r.depth,b=void 0===f?0:f,C=r.isVisible,h=void 0===C||C,g=r.overflow,x=r.align,v=e(r,["children","className","contentClassName","cellIndex","depth","isVisible","isExpandable","overflow","align"]),j=0===u,N=s(),y=N.disableAnimations,T=n(null),I=n(null),O=parseInt(o.standardCellHeight,10),V=I.current?I.current.scrollHeight:0,w=l((function(){return g===c.Truncate&&V>O}),[O,g,V]);return t("td",Object.assign({className:a(o.baseCell,j&&o.firstChildCell,d),style:j?{paddingLeft:"".concat(20*b,"px")}:void 0},v,{children:t(i,Object.assign({in:h,timeout:0,nodeRef:T},{children:function(e){return t("div",Object.assign({"data-state":e,ref:I,className:a(o.cellTransitionContainer,o["cell-content-transition-".concat(e)],o["align-".concat(x)],y&&o.disableAnimation,w&&o.truncatedContent,p)},{children:m}))}}))}))};m.displayName="Cell",m.propTypes={cellIndex:r.number,depth:r.number,isVisible:r.bool,isExpandable:r.bool};export{m as default};
2
+ //# sourceMappingURL=InternalCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InternalCell.js","sources":["../../../../../../../src/components/Table/components/Cell/InternalCell.tsx"],"sourcesContent":["import React, { useMemo, useRef } from 'react';\nimport { Transition } from 'react-transition-group';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport { useTableContext } from '../TableContext';\nimport styles from './Cell.module.scss';\nimport { CellOverflowBehavior, InternalCellProps } from './Cell.types';\n\nconst InternalCell = ({\n children,\n className,\n contentClassName,\n cellIndex,\n depth = 0,\n isVisible = true,\n isExpandable = false,\n overflow,\n align,\n ...rest\n}: InternalCellProps) => {\n const isFirstCell = cellIndex === 0;\n const { table, disableAnimations } = useTableContext();\n const isSelectable = !!table && !!table.hasSelectableRows;\n const transitionRef = useRef<HTMLElement | null>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n\n const contentHeight = parseInt(styles.standardCellHeight, 10);\n const scrollHeight = contentRef.current ? contentRef.current.scrollHeight : 0;\n const shouldTruncate = useMemo(() => (\n overflow === CellOverflowBehavior.Truncate && scrollHeight > contentHeight\n ), [contentHeight, overflow, scrollHeight]);\n\n return (\n <td\n className={cx(\n styles.baseCell,\n isFirstCell && styles.firstChildCell, // Conditionally apply padding for the first cell\n className,\n )}\n style={isFirstCell ? { paddingLeft: `${depth * 20}px` } : undefined} // Apply dynamic padding based on depth\n {...rest}\n >\n <Transition in={isVisible} timeout={0} nodeRef={transitionRef}>\n {state => (\n <div\n data-state={state}\n ref={contentRef}\n className={cx(\n styles.cellTransitionContainer,\n styles[`cell-content-transition-${state}`], // Apply transition styles based on state\n styles[`align-${align}`], // Dynamic alignment based on the `align` prop\n disableAnimations && styles.disableAnimation,\n shouldTruncate && styles.truncatedContent,\n contentClassName,\n )}\n >\n {children}\n </div>\n )}\n </Transition>\n </td>\n );\n};\n\nInternalCell.displayName = 'Cell';\nInternalCell.propTypes = {\n cellIndex: PropTypes.number,\n depth: PropTypes.number,\n isVisible: PropTypes.bool,\n isExpandable: PropTypes.bool,\n};\n\nexport default InternalCell;\n"],"names":["InternalCell","_a","children","className","contentClassName","cellIndex","_a$depth","depth","_a$isVisible","isVisible","overflow","align","rest","__rest","isFirstCell","_useTableContext","useTableContext","disableAnimations","transitionRef","useRef","contentRef","contentHeight","parseInt","styles","standardCellHeight","scrollHeight","current","shouldTruncate","useMemo","CellOverflowBehavior","Truncate","_jsx","Object","assign","cx","baseCell","firstChildCell","style","paddingLeft","concat","undefined","Transition","in","timeout","nodeRef","state","ref","cellTransitionContainer","disableAnimation","truncatedContent","displayName","propTypes","PropTypes","number","bool","isExpandable"],"mappings":"qZAQA,IAAMA,EAAe,SAACC,GAAA,IACpBC,EAQKD,EARLC,SACAC,EAOKF,EAPLE,UACAC,EAMKH,EANLG,iBACAC,EAKKJ,EALLI,UAASC,EAKJL,EAJLM,MAAAA,OAAQ,IAAHD,EAAG,EAACA,EAAAE,EAIJP,EAHLQ,UAAAA,OAAY,IAAHD,GAAOA,EAEhBE,EACKT,EADLS,SACAC,EAAKV,EAALU,MACGC,EAViBC,EAAAZ,EAAA,CAAA,WAAA,YAAA,mBAAA,YAAA,QAAA,YAAA,eAAA,WAAA,UAYda,EAA4B,IAAdT,EACpBU,EAAqCC,IAAtBC,EAAiBF,EAAjBE,kBAETC,EAAgBC,EAA2B,MAC3CC,EAAaD,EAAuB,MAEpCE,EAAgBC,SAASC,EAAOC,mBAAoB,IACpDC,EAAeL,EAAWM,QAAUN,EAAWM,QAAQD,aAAe,EACtEE,EAAiBC,GAAQ,WAAA,OAC7BlB,IAAamB,EAAqBC,UAAYL,EAAeJ,CAC9D,GAAE,CAACA,EAAeX,EAAUe,IAE7B,OACEM,EACE,KAAAC,OAAAC,OAAA,CAAA9B,UAAW+B,EACTX,EAAOY,SACPrB,GAAeS,EAAOa,eACtBjC,GAEFkC,MAAOvB,EAAc,CAAEwB,YAAWC,GAAAA,OAAa,GAARhC,EAAU,YAASiC,GACtD5B,EAAI,CAAAV,SAER6B,EAACU,EAAWT,OAAAC,OAAA,CAAAS,GAAIjC,EAAWkC,QAAS,EAAGC,QAAS1B,GAAa,CAAAhB,SAC1D,SAAA2C,GAAK,OACJd,EAAA,MAAAC,OAAAC,OAAA,CAAA,aACcY,EACZC,IAAK1B,EACLjB,UAAW+B,EACTX,EAAOwB,wBACPxB,EAAMgB,2BAAAA,OAA4BM,IAClCtB,EAAMgB,SAAAA,OAAU5B,IAChBM,GAAqBM,EAAOyB,iBAC5BrB,GAAkBJ,EAAO0B,iBACzB7C,cAGDF,IACG,OAKhB,EAEAF,EAAakD,YAAc,OAC3BlD,EAAamD,UAAY,CACvB9C,UAAW+C,EAAUC,OACrB9C,MAAO6C,EAAUC,OACjB5C,UAAW2C,EAAUE,KACrBC,aAAcH,EAAUE"}
@@ -0,0 +1,2 @@
1
+ import{defineProperty as e}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as n}from"../../../../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import{useRef as r,useMemo as i}from"react";import{Transition as o}from"react-transition-group";import a from"classnames";import s from"../Row/InternalRowBase.js";import{useTableContext as l}from"../TableContext/TableContext.js";import{getAreAncestorsExpanded as d}from"../utils/areAncestorsExpanded.js";import c from"./ExpandedContent.module.scss.js";var m=function(m){var p=m.row,u=n(m,["row"]),f=l(),g=f.disableAnimations,b=f.getParentRow,j=r(null),x=r(null),C=d(p.id,b),h=!!(null==b?void 0:b(p.id)),v=p.getIsExpanded()&&(!h||C),E=p.original.renderExpandedContent&&p.original.renderExpandedContent(p);return i((function(){return j.current?j.current.clientHeight:0}),[E]),t(s,Object.assign({},u,{children:t("td",Object.assign({colSpan:p.getVisibleCells().length,className:a(c.baseStyles)},{children:t(o,Object.assign({in:v,timeout:0,nodeRef:x},{children:function(n){return t("div",Object.assign({"data-state":n,className:a(c.cellTransitionContainer,e({},c.disableAnimation,g),c["cell-content-transition-".concat(n)],v?c.expandedContent:"")},{children:t("div",Object.assign({ref:j},{children:E}))}))}}))}))}))};m.displayName="ExpandedContent";export{m as default};
2
+ //# sourceMappingURL=ExpandedContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandedContent.js","sources":["../../../../../../../src/components/Table/components/ExpandedContent/ExpandedContent.tsx"],"sourcesContent":["import React, { useMemo, useRef } from 'react';\nimport { Transition } from 'react-transition-group';\nimport { RowData } from '@tanstack/react-table';\n\nimport cx from 'classnames';\nimport InternalRowBase from '../Row/InternalRowBase';\nimport { useTableContext } from '../TableContext';\nimport { getAreAncestorsExpanded } from '../utils/areAncestorsExpanded';\n\nimport styles from './ExpandedContent.module.scss'; // Updated import to SCSS module\nimport { ExpandedContentProps } from './ExpandedContent.types';\n\nconst ExpandedContent = <T extends RowData>({\n row,\n ...rest\n}: ExpandedContentProps<T>) => {\n const { disableAnimations, getParentRow } = useTableContext();\n const contentRef = useRef<HTMLDivElement>(null);\n const transitionRef = useRef<HTMLElement | null>(null);\n const areAncestorsExpanded = getAreAncestorsExpanded(row.id, getParentRow);\n const isNestedRow = !!getParentRow?.(row.id);\n const isExpanded =\n row.getIsExpanded() && (!isNestedRow || areAncestorsExpanded);\n const content =\n row.original.renderExpandedContent &&\n row.original.renderExpandedContent(row);\n\n const contentHeight = useMemo(\n () => (contentRef.current ? contentRef.current.clientHeight : 0),\n [content],\n );\n\n return (\n <InternalRowBase {...rest}>\n <td colSpan={row.getVisibleCells().length} className={cx(styles.baseStyles)}>\n <Transition in={isExpanded} timeout={0} nodeRef={transitionRef}>\n {state => (\n <div\n data-state={state}\n className={cx(\n styles.cellTransitionContainer,\n { [styles.disableAnimation]: disableAnimations },\n styles[`cell-content-transition-${state}`],\n // Use a global theme className applied at a higher level in the app, or manage theme switch with context or state\n isExpanded ? styles.expandedContent : '',\n )}\n >\n <div ref={contentRef}>{content}</div>\n </div>\n )}\n </Transition>\n </td>\n </InternalRowBase>\n );\n};\n\nExpandedContent.displayName = 'ExpandedContent';\n\nexport default ExpandedContent;\n"],"names":["ExpandedContent","_a","row","rest","__rest","_useTableContext","useTableContext","disableAnimations","getParentRow","contentRef","useRef","transitionRef","areAncestorsExpanded","getAreAncestorsExpanded","id","isNestedRow","isExpanded","getIsExpanded","content","original","renderExpandedContent","useMemo","current","clientHeight","_jsx","InternalRowBase","Object","assign","children","colSpan","getVisibleCells","length","className","cx","styles","baseStyles","Transition","in","timeout","nodeRef","state","cellTransitionContainer","_defineProperty","disableAnimation","concat","expandedContent","ref","displayName"],"mappings":"yhBAYA,IAAMA,EAAkB,SAAoBC,GAAA,IAC1CC,EAEwBD,EAFxBC,IACGC,EAAIC,EAAAH,EAFmC,SAI1CI,EAA4CC,IAApCC,EAAiBF,EAAjBE,kBAAmBC,EAAYH,EAAZG,aACrBC,EAAaC,EAAuB,MACpCC,EAAgBD,EAA2B,MAC3CE,EAAuBC,EAAwBX,EAAIY,GAAIN,GACvDO,KAAgBP,aAAA,EAAAA,EAAeN,EAAIY,KACnCE,EACJd,EAAIe,mBAAqBF,GAAeH,GACpCM,EACJhB,EAAIiB,SAASC,uBACblB,EAAIiB,SAASC,sBAAsBlB,GAOrC,OALsBmB,GACpB,WAAA,OAAOZ,EAAWa,QAAUb,EAAWa,QAAQC,aAAe,CAAC,GAC/D,CAACL,IAIDM,EAACC,EAAeC,OAAAC,OAAA,CAAA,EAAKxB,EACnB,CAAAyB,SAAAJ,EAAA,KAAAE,OAAAC,OAAA,CAAIE,QAAS3B,EAAI4B,kBAAkBC,OAAQC,UAAWC,EAAGC,EAAOC,aAAW,CAAAP,SACzEJ,EAACY,iBAAWC,GAAIrB,EAAYsB,QAAS,EAAGC,QAAS5B,GAC9C,CAAAiB,SAAA,SAAAY,GAAK,OACJhB,EAAA,MAAAE,OAAAC,OAAA,CAAA,aACca,EACZR,UAAWC,EACTC,EAAOO,wBAAuBC,EAC3BR,CAAAA,EAAAA,EAAOS,iBAAmBpC,GAC7B2B,6BAAMU,OAA4BJ,IAElCxB,EAAakB,EAAOW,gBAAkB,KACvC,CAAAjB,SAEDJ,uBAAKsB,IAAKrC,GAAU,CAAAmB,SAAGV,OACnB,UAMlB,EAEAlB,EAAgB+C,YAAc"}
@@ -0,0 +1,2 @@
1
+ var e={baseStyles:"baseStyles_c717455862",expandedContent:"expandedContent_2be4e96049"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-4db27d6a765d_0_0_82-table-tanstack";if(n.querySelector("#"+t))return;const d=document.createElement("style");d.id=t,n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.appendChild(document.createTextNode(e))}(".baseStyles_c717455862 {\n padding: 0;\n overflow: hidden;\n transition: 150ms ease;\n}\n\n.expandedContent_2be4e96049 {\n background-color: #333;\n}\n\n.expandedContent_2be4e96049 {\n background-color: #ccc;\n}");export{e as default};
2
+ //# sourceMappingURL=ExpandedContent.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandedContent.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__rest as r}from"../../../../../../_virtual/_tslib.js";import{jsx as e}from"react/jsx-runtime";import l from"react";import"../../Cell/Cell.js";import t from"../../Cell/HeaderCell/HeaderCell.js";var i=function(i){var a=i.children,n=r(i,["children"]);return e("tr",Object.assign({},n,{children:l.Children.map(a,(function(r,l){return e(t,Object.assign({},r.props,{cellIndex:l}))}))}))};i.displayName="HeaderRow";export{i as default};
2
+ //# sourceMappingURL=HeaderRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderRow.js","sources":["../../../../../../../../src/components/Table/components/Row/HeaderRow/HeaderRow.tsx"],"sourcesContent":["import React, { PropsWithChildren, ReactElement, ReactNode } from 'react';\n\nimport { HeaderCell } from '../../Cell';\n\nimport { HeaderRowProps } from './HeaderRow.types';\n\nconst HeaderRow = ({\n children,\n ...rest\n}: PropsWithChildren<HeaderRowProps>) => {\n return (\n <tr {...rest}>\n {React.Children.map(children, (child: ReactNode, index: number) => {\n return (\n <HeaderCell {...(child as ReactElement).props} cellIndex={index} />\n );\n })}\n </tr>\n );\n};\n\nHeaderRow.displayName = 'HeaderRow';\n\nexport default HeaderRow;\n"],"names":["HeaderRow","_a","children","rest","__rest","_jsx","Object","assign","React","Children","map","child","index","HeaderCell","props","cellIndex","displayName"],"mappings":"yMAMA,IAAMA,EAAY,SAACC,GAAA,IACjBC,EAEkCD,EAFlCC,SACGC,EAAIC,EAAAH,EAFU,cAIjB,OACEI,EAAQ,KAAAC,OAAAC,OAAA,CAAA,EAAAJ,EACL,CAAAD,SAAAM,EAAMC,SAASC,IAAIR,GAAU,SAACS,EAAkBC,GAC/C,OACEP,EAACQ,EAAUP,OAAAC,OAAA,CAAA,EAAMI,EAAuBG,MAAK,CAAEC,UAAWH,UAKpE,EAEAZ,EAAUgB,YAAc"}
@@ -0,0 +1,2 @@
1
+ import{defineProperty as r}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as o}from"../../../../../_virtual/_tslib.js";import{jsx as s}from"react/jsx-runtime";import a from"classnames";import e from"./Row.module.scss.js";import{useRowContext as i}from"./RowContext.js";var l=function(l){var t=l.className,m=l.onClick,c=o(l,["className","onClick"]),n=i().disabled;return s("tr",Object.assign({onClick:m,"aria-disabled":n,tabIndex:m?0:void 0,className:a(r(r({},e.disabledRow,n),e.clickableRow,!!m),t)},c))};export{l as default};
2
+ //# sourceMappingURL=InternalRowBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InternalRowBase.js","sources":["../../../../../../../src/components/Table/components/Row/InternalRowBase.tsx"],"sourcesContent":["import React from 'react';\nimport cx from 'classnames';\n\nimport styles from './Row.module.scss'; // Ensure this path is correct\nimport { InternalRowBaseProps } from './Row.types';\nimport { useRowContext } from './RowContext';\n\nconst InternalRowBase = ({\n className,\n onClick,\n ...rest\n}: InternalRowBaseProps) => {\n const { disabled } = useRowContext();\n \n // Assume that `theme` class (e.g., `theme-dark`, `theme-light`) is set on a higher-level component, like `<body>` or `<div id=\"root\">`\n return (\n <tr\n onClick={onClick}\n aria-disabled={disabled}\n tabIndex={onClick ? 0 : undefined}\n className={cx(\n {\n [styles.disabledRow]: disabled,\n [styles.clickableRow]: !!onClick,\n },\n className,\n )}\n {...rest}\n />\n );\n};\n\nexport default InternalRowBase;\n"],"names":["InternalRowBase","_a","className","onClick","rest","__rest","disabled","useRowContext","_jsx","tabIndex","undefined","cx","_defineProperty","styles","disabledRow","clickableRow"],"mappings":"uSAOA,IAAMA,EAAkB,SAACC,OACvBC,EACOD,EADPC,UACAC,EAAOF,EAAPE,QACGC,EAAIC,EAAAJ,EAHgB,yBAKfK,EAAaC,IAAbD,SAGR,OACEE,sBACEL,QAASA,EACM,gBAAAG,EACfG,SAAUN,EAAU,OAAIO,EACxBR,UAAWS,EAAEC,EAAAA,EAAA,CAAA,EAERC,EAAOC,YAAcR,GACrBO,EAAOE,eAAiBZ,GAE3BD,IAEEE,GAGV"}
@@ -0,0 +1,2 @@
1
+ import{defineProperty as e}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as r}from"../../../../../_virtual/_tslib.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import a,{useMemo as n,Fragment as l}from"react";import i from"react-keyed-flatten-children";import s from"classnames";import{useTableContext as d}from"../TableContext/TableContext.js";import m from"./InternalRowBase.js";import c from"./Row.module.scss.js";import p from"./RowCellChildren.js";import{useRowContext as f}from"./RowContext.js";import{Polymorph as u}from"../newComponents/Polymorphic/Polymorph.js";function w(e,r){var t=e.type;return a.isValidElement(e)&&"function"==typeof t&&t.displayName===r}var b=function(a){var b=a.children,R=a.className,j=a.row,g=a.virtualRow,h=r(a,["children","className","row","virtualRow"]),x=f().disabled,C=d(),v=C.table,y=C.getParentRow,P=C.shouldAlternateRowColor,N=null==y?void 0:y(j.id),E=null==g?void 0:g.measureRef,I=null==v?void 0:v.getCanSomeRowsExpand(),_=!!N,O=!!N&&N.getIsExpanded()||!_,B=!!g&&g.index%2!=0,S=j.getIsExpanded(),T=j.getIsSelected(),k=i(b),z=k.filter((function(e){return w(e,"Cell")})),A=k.filter((function(e){return!w(e,"Cell")})),H=I&&!_,V=n((function(){return H?"tbody":l}),[H]),Z={className:s(e({},c.expandedContentParent,S)),"data-expanded":S,ref:E};return t(u,Object.assign({as:V},H&&Z,{children:[o(m,Object.assign({className:s(e(e(e({},c.grayZebraRow,B&&P&&!T),c.zebraRow,!g&&P&&!T),c.selectedRow,T&&!x),R),"data-selected":T,"aria-hidden":!O,id:"lg-table-row-".concat(j.id)},h,{children:o(p,Object.assign({row:j},{children:z}))})),A]}))};export{b as default};
2
+ //# sourceMappingURL=InternalRowWithRT.js.map