@astral/ui 4.99.2 → 4.101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (859) hide show
  1. package/components/Accordion/styles.js +4 -4
  2. package/components/Alert/styles.js +2 -2
  3. package/components/Autocomplete/styles.js +1 -1
  4. package/components/Badge/styles.js +1 -1
  5. package/components/Banner/BannerTemplate/styles.js +3 -3
  6. package/components/Button/styles.js +1 -1
  7. package/components/CardGridInfinite/Card/styles.js +1 -1
  8. package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.js +2 -2
  9. package/components/CardGridInfinite/ErrorMessage/styles.js +1 -1
  10. package/components/CardGridInfinite/List/styles.js +1 -1
  11. package/components/CardGridInfinite/OnTopButton/styles.js +1 -1
  12. package/components/CardGridInfinite/styles.js +1 -1
  13. package/components/Checkbox/styles.js +2 -2
  14. package/components/CheckboxField/styles.js +2 -2
  15. package/components/Chip/styles.js +4 -4
  16. package/components/ConfirmAction/styles.js +3 -3
  17. package/components/ConfirmDialog/styles.js +1 -1
  18. package/components/DashboardAlert/styles.js +2 -2
  19. package/components/DashboardLayout/Container/styles.js +2 -2
  20. package/components/DashboardLayout/DashboardSidebar/styles.js +6 -6
  21. package/components/DashboardLayout/DashboardWrapper/styles.js +1 -1
  22. package/components/DashboardLayout/Header/styles.js +10 -10
  23. package/components/DashboardLayout/Main/styles.js +3 -3
  24. package/components/DashboardLayoutNotificationList/styles.js +1 -1
  25. package/components/DashboardLayoutSkeleton/styles.js +1 -1
  26. package/components/DashboardSidebarButton/styles.js +1 -1
  27. package/components/DashboardSidebarCounter/styles.js +1 -1
  28. package/components/DashboardSidebarPopover/FadePopup/styles.js +1 -1
  29. package/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +1 -1
  30. package/components/DashboardSidebarPopover/styles.js +2 -2
  31. package/components/DashboardSidebarSkeleton/styles.js +1 -1
  32. package/components/DataGrid/Body/styles.js +1 -1
  33. package/components/DataGrid/Cell/CellInner/styles.js +2 -2
  34. package/components/DataGrid/Cell/styles.js +1 -1
  35. package/components/DataGrid/Head/styles.js +1 -1
  36. package/components/DataGrid/Loader/styles.js +2 -2
  37. package/components/DataGrid/Row/NestedChildren/styles.js +3 -3
  38. package/components/DataGrid/Row/styles.js +8 -8
  39. package/components/DataGrid/RowBase/GroupCell/styles.js +1 -1
  40. package/components/DataGrid/RowBase/styles.js +3 -3
  41. package/components/DataGrid/styles.js +3 -3
  42. package/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.js +1 -1
  43. package/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.js +1 -1
  44. package/components/DataGridActionCell/SecondaryActionsButton/styles.js +1 -1
  45. package/components/DataGridActionCell/styles.js +1 -1
  46. package/components/DataGridCollapsibleRow/styles.js +4 -4
  47. package/components/DataGridInfinite/ErrorMessage/styles.js +1 -1
  48. package/components/DataGridInfinite/styles.js +1 -1
  49. package/components/DataGridPaginationContainer/styles.js +2 -2
  50. package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.js +2 -2
  51. package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.js +2 -2
  52. package/components/DatePicker/DateCalendar/DateCalendarHead/styles.js +2 -2
  53. package/components/DatePicker/DateCalendar/DateCalendarWrapper/styles.js +1 -1
  54. package/components/DatePicker/DatePickerPopover/styles.js +1 -1
  55. package/components/DatePicker/styles.js +1 -1
  56. package/components/DateRangePicker/styles.js +1 -1
  57. package/components/Description/Value/styles.js +2 -2
  58. package/components/Description/styles.js +1 -1
  59. package/components/DescriptionCell/styles.js +2 -2
  60. package/components/DescriptionList/styles.js +3 -3
  61. package/components/DialogActions/styles.js +2 -2
  62. package/components/DialogContent/styles.js +1 -1
  63. package/components/ExpansionPanel/Details/ErrorState/styles.js +1 -1
  64. package/components/ExpansionPanel/Details/LoadingState/styles.js +1 -1
  65. package/components/Fieldset/styles.js +5 -5
  66. package/components/FlowButton/styles.js +1 -1
  67. package/components/GlobalStyles/GlobalStyles.js +1 -1
  68. package/components/HintPopover/styles.js +4 -4
  69. package/components/IconButton/styles.js +1 -1
  70. package/components/InfiniteDataList/EndData/styles.js +1 -1
  71. package/components/InfiniteDataList/ErrorMessage/styles.js +1 -1
  72. package/components/InfiniteDataList/Loader/styles.js +1 -1
  73. package/components/InfiniteDataList/styles.js +1 -1
  74. package/components/InfiniteTreeList/InfiniteTreeList.d.ts +18 -0
  75. package/components/InfiniteTreeList/InfiniteTreeList.js +26 -19
  76. package/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.d.ts +9 -0
  77. package/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.js +9 -0
  78. package/components/InfiniteTreeList/InfiniteTreeListActions/types.d.ts +5 -0
  79. package/components/InfiniteTreeList/InfiniteTreeListActions/useLogic/useLogic.js +5 -6
  80. package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.d.ts +81 -0
  81. package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.js +21 -0
  82. package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.d.ts +3 -2
  83. package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +69 -13
  84. package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.d.ts +6 -0
  85. package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.js +8 -0
  86. package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.d.ts +1 -0
  87. package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.js +1 -0
  88. package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.d.ts +1 -0
  89. package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.js +1 -0
  90. package/components/InfiniteTreeList/{ErrorMessage → InfiniteTreeListItem/ErrorPlaceholder}/styles.d.ts +1 -1
  91. package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/styles.js +8 -0
  92. package/components/InfiniteTreeList/InfiniteTreeListItem/InfiniteTreeListItem.js +29 -7
  93. package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.d.ts +19 -0
  94. package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.js +4 -0
  95. package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.d.ts +4 -0
  96. package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.js +13 -8
  97. package/components/InfiniteTreeList/InfiniteTreeListItem/constants.d.ts +6 -0
  98. package/components/InfiniteTreeList/InfiniteTreeListItem/constants.js +7 -0
  99. package/components/InfiniteTreeList/InfiniteTreeListItem/styles.d.ts +4 -4
  100. package/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +28 -5
  101. package/components/InfiniteTreeList/InfiniteTreeListItem/types.d.ts +20 -3
  102. package/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.d.ts +7 -1
  103. package/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.js +57 -5
  104. package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.js +1 -1
  105. package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.js +2 -2
  106. package/components/InfiniteTreeList/ListFooter/ErrorMessage/styles.d.ts +5 -0
  107. package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/styles.js +2 -2
  108. package/components/InfiniteTreeList/ListFooter/ListFooter.d.ts +10 -0
  109. package/components/InfiniteTreeList/ListFooter/ListFooter.js +25 -0
  110. package/components/InfiniteTreeList/ListFooter/index.d.ts +2 -0
  111. package/components/InfiniteTreeList/ListFooter/index.js +1 -0
  112. package/components/InfiniteTreeList/{styles.d.ts → ListFooter/styles.d.ts} +2 -2
  113. package/components/InfiniteTreeList/{styles.js → ListFooter/styles.js} +1 -1
  114. package/components/InfiniteTreeList/ListFooter/types.d.ts +22 -0
  115. package/components/InfiniteTreeList/ListFooter/types.js +1 -0
  116. package/components/InfiniteTreeList/OnTopButton/OnTopButton.d.ts +8 -2
  117. package/components/InfiniteTreeList/OnTopButton/OnTopButton.js +6 -5
  118. package/components/InfiniteTreeList/OnTopButton/styles.d.ts +4 -0
  119. package/components/InfiniteTreeList/OnTopButton/styles.js +10 -0
  120. package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.d.ts +23 -0
  121. package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.js +12 -0
  122. package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.d.ts +1 -0
  123. package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.js +1 -0
  124. package/components/InfiniteTreeList/ParentItems/Item/Item.d.ts +10 -0
  125. package/components/InfiniteTreeList/ParentItems/Item/Item.js +22 -0
  126. package/components/InfiniteTreeList/ParentItems/Item/index.d.ts +2 -0
  127. package/components/InfiniteTreeList/ParentItems/Item/index.js +2 -0
  128. package/components/InfiniteTreeList/ParentItems/Item/types.d.ts +8 -0
  129. package/components/InfiniteTreeList/ParentItems/Item/types.js +1 -0
  130. package/components/InfiniteTreeList/ParentItems/Item/useLogic/index.d.ts +1 -0
  131. package/components/InfiniteTreeList/ParentItems/Item/useLogic/index.js +1 -0
  132. package/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.d.ts +12 -0
  133. package/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.js +12 -0
  134. package/components/InfiniteTreeList/ParentItems/ParentItems.d.ts +11 -0
  135. package/components/InfiniteTreeList/ParentItems/ParentItems.js +11 -0
  136. package/components/InfiniteTreeList/ParentItems/index.d.ts +3 -0
  137. package/components/InfiniteTreeList/ParentItems/index.js +3 -0
  138. package/components/InfiniteTreeList/ParentItems/types.d.ts +8 -0
  139. package/components/InfiniteTreeList/ParentItems/types.js +1 -0
  140. package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.d.ts +9 -0
  141. package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.js +22 -0
  142. package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.d.ts +1 -0
  143. package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.js +5 -0
  144. package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.d.ts +1 -0
  145. package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.js +1 -0
  146. package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.d.ts +1 -0
  147. package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.js +1 -0
  148. package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.d.ts +20 -0
  149. package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.js +10 -0
  150. package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.d.ts +1 -0
  151. package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.js +1 -0
  152. package/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.d.ts +5 -0
  153. package/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.js +38 -0
  154. package/components/InfiniteTreeList/TreeItem/ParentSlot/index.d.ts +2 -0
  155. package/components/InfiniteTreeList/TreeItem/ParentSlot/index.js +2 -0
  156. package/components/InfiniteTreeList/TreeItem/ParentSlot/styles.d.ts +9 -0
  157. package/components/InfiniteTreeList/TreeItem/ParentSlot/styles.js +8 -0
  158. package/components/InfiniteTreeList/TreeItem/ParentSlot/types.d.ts +6 -0
  159. package/components/InfiniteTreeList/TreeItem/ParentSlot/types.js +1 -0
  160. package/components/InfiniteTreeList/TreeItem/TreeItem.d.ts +5 -2
  161. package/components/InfiniteTreeList/TreeItem/TreeItem.js +31 -4
  162. package/components/InfiniteTreeList/TreeItem/constants.d.ts +3 -0
  163. package/components/InfiniteTreeList/TreeItem/constants.js +3 -1
  164. package/components/InfiniteTreeList/TreeItem/styles.d.ts +0 -3
  165. package/components/InfiniteTreeList/TreeItem/styles.js +23 -8
  166. package/components/InfiniteTreeList/TreeItem/types.d.ts +4 -9
  167. package/components/InfiniteTreeList/TreeItem/useLogic/useLogic.d.ts +29 -9
  168. package/components/InfiniteTreeList/TreeItem/useLogic/useLogic.js +61 -19
  169. package/components/InfiniteTreeList/constants.d.ts +14 -2
  170. package/components/InfiniteTreeList/constants.js +14 -2
  171. package/components/InfiniteTreeList/hooks/index.d.ts +5 -0
  172. package/components/InfiniteTreeList/hooks/index.js +5 -0
  173. package/components/InfiniteTreeList/hooks/useChildrenState/index.d.ts +2 -0
  174. package/components/InfiniteTreeList/hooks/useChildrenState/index.js +2 -0
  175. package/components/InfiniteTreeList/hooks/useChildrenState/types.d.ts +43 -0
  176. package/components/InfiniteTreeList/hooks/useChildrenState/types.js +1 -0
  177. package/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.d.ts +20 -0
  178. package/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.js +115 -0
  179. package/components/InfiniteTreeList/hooks/useEnterAnimation/index.d.ts +2 -0
  180. package/components/InfiniteTreeList/hooks/useEnterAnimation/index.js +2 -0
  181. package/components/InfiniteTreeList/hooks/useEnterAnimation/types.d.ts +29 -0
  182. package/components/InfiniteTreeList/hooks/useEnterAnimation/types.js +1 -0
  183. package/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.d.ts +6 -0
  184. package/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.js +35 -0
  185. package/components/InfiniteTreeList/hooks/useExpandNotifier/index.d.ts +1 -0
  186. package/components/InfiniteTreeList/hooks/useExpandNotifier/index.js +1 -0
  187. package/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.d.ts +8 -0
  188. package/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.js +19 -0
  189. package/components/InfiniteTreeList/hooks/useFlatTree/index.d.ts +2 -0
  190. package/components/InfiniteTreeList/hooks/useFlatTree/index.js +2 -0
  191. package/components/InfiniteTreeList/hooks/useFlatTree/types.d.ts +20 -0
  192. package/components/InfiniteTreeList/hooks/useFlatTree/types.js +1 -0
  193. package/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.d.ts +15 -0
  194. package/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.js +88 -0
  195. package/components/InfiniteTreeList/hooks/useListScroll/index.d.ts +2 -0
  196. package/components/InfiniteTreeList/hooks/useListScroll/index.js +2 -0
  197. package/components/InfiniteTreeList/hooks/useListScroll/types.d.ts +25 -0
  198. package/components/InfiniteTreeList/hooks/useListScroll/types.js +1 -0
  199. package/components/InfiniteTreeList/hooks/useListScroll/useListScroll.d.ts +29 -0
  200. package/components/InfiniteTreeList/hooks/useListScroll/useListScroll.js +59 -0
  201. package/components/InfiniteTreeList/index.d.ts +1 -1
  202. package/components/InfiniteTreeList/public.d.ts +1 -1
  203. package/components/InfiniteTreeList/types.d.ts +83 -17
  204. package/components/InfiniteTreeList/useLogic/useLogic.d.ts +22 -12
  205. package/components/InfiniteTreeList/useLogic/useLogic.js +66 -71
  206. package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.d.ts +5 -0
  207. package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.js +6 -0
  208. package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.d.ts +1 -0
  209. package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.js +1 -0
  210. package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.d.ts +5 -0
  211. package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.js +4 -0
  212. package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.d.ts +1 -0
  213. package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.js +1 -0
  214. package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.d.ts +5 -0
  215. package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.js +5 -0
  216. package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.d.ts +1 -0
  217. package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.js +1 -0
  218. package/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.d.ts +6 -0
  219. package/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.js +6 -0
  220. package/components/InfiniteTreeList/utils/checkIsDirectChild/index.d.ts +1 -0
  221. package/components/InfiniteTreeList/utils/checkIsDirectChild/index.js +1 -0
  222. package/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.d.ts +12 -0
  223. package/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.js +14 -0
  224. package/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.d.ts +1 -0
  225. package/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.js +1 -0
  226. package/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.d.ts +5 -0
  227. package/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.js +16 -0
  228. package/components/InfiniteTreeList/utils/checkIsSameChildren/index.d.ts +1 -0
  229. package/components/InfiniteTreeList/utils/checkIsSameChildren/index.js +1 -0
  230. package/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.d.ts +5 -0
  231. package/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.js +5 -0
  232. package/components/InfiniteTreeList/utils/countDirectChildren/index.d.ts +1 -0
  233. package/components/InfiniteTreeList/utils/countDirectChildren/index.js +1 -0
  234. package/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.d.ts +24 -0
  235. package/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.js +35 -0
  236. package/components/InfiniteTreeList/utils/createParentSlots/index.d.ts +1 -0
  237. package/components/InfiniteTreeList/utils/createParentSlots/index.js +1 -0
  238. package/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.d.ts +21 -0
  239. package/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.js +40 -0
  240. package/components/InfiniteTreeList/utils/createTailRegistry/index.d.ts +1 -0
  241. package/components/InfiniteTreeList/utils/createTailRegistry/index.js +1 -0
  242. package/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.d.ts +5 -0
  243. package/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.js +5 -0
  244. package/components/InfiniteTreeList/utils/flattenChildren/index.d.ts +1 -0
  245. package/components/InfiniteTreeList/utils/flattenChildren/index.js +1 -0
  246. package/components/InfiniteTreeList/utils/flattenTree/flattenTree.d.ts +6 -0
  247. package/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/flattenTree.js +9 -4
  248. package/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.d.ts +17 -0
  249. package/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.js +14 -0
  250. package/components/InfiniteTreeList/utils/getEnteringChildren/index.d.ts +1 -0
  251. package/components/InfiniteTreeList/utils/getEnteringChildren/index.js +1 -0
  252. package/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.d.ts +10 -0
  253. package/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.js +27 -0
  254. package/components/InfiniteTreeList/utils/getIdsToKeep/index.d.ts +1 -0
  255. package/components/InfiniteTreeList/utils/getIdsToKeep/index.js +1 -0
  256. package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.d.ts +4 -2
  257. package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.js +5 -4
  258. package/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.d.ts +6 -0
  259. package/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.js +18 -0
  260. package/components/InfiniteTreeList/utils/getNestedItems/index.d.ts +1 -0
  261. package/components/InfiniteTreeList/utils/getNestedItems/index.js +1 -0
  262. package/components/InfiniteTreeList/utils/index.d.ts +20 -0
  263. package/components/InfiniteTreeList/utils/index.js +20 -0
  264. package/components/InfiniteTreeList/utils/insertChildren/index.d.ts +1 -0
  265. package/components/InfiniteTreeList/utils/insertChildren/index.js +1 -0
  266. package/components/InfiniteTreeList/utils/insertChildren/insertChildren.d.ts +5 -0
  267. package/components/InfiniteTreeList/utils/insertChildren/insertChildren.js +41 -0
  268. package/components/InfiniteTreeList/utils/removeChildren/index.d.ts +1 -0
  269. package/components/InfiniteTreeList/utils/removeChildren/index.js +1 -0
  270. package/components/InfiniteTreeList/utils/removeChildren/removeChildren.d.ts +5 -0
  271. package/components/InfiniteTreeList/utils/removeChildren/removeChildren.js +12 -0
  272. package/components/InfiniteTreeList/utils/sortCollapsed/sortCollapsed.d.ts +5 -0
  273. package/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/sortCollapsed.js +1 -6
  274. package/components/InfiniteTreeList/utils/startRemoveAnimation/index.d.ts +1 -0
  275. package/components/InfiniteTreeList/utils/startRemoveAnimation/index.js +1 -0
  276. package/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.d.ts +1 -0
  277. package/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.js +5 -0
  278. package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.d.ts +1 -0
  279. package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.js +1 -0
  280. package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.d.ts +11 -0
  281. package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.js +99 -0
  282. package/components/MenuOrganization/NoData/styles.js +1 -1
  283. package/components/MenuOrganization/OrganizationButton/styles.js +1 -1
  284. package/components/MenuOrganization/OrganizationItem/styles.js +1 -1
  285. package/components/MenuOrganization/OrganizationListSkeleton/styles.js +2 -2
  286. package/components/MenuOrganization/styles.js +4 -4
  287. package/components/MinimalisticPagination/styles.js +1 -1
  288. package/components/NavMenu/Item/ItemButton/styles.js +4 -4
  289. package/components/NewStepper/Step/Description/styles.js +1 -1
  290. package/components/NewStepper/Step/Label/styles.js +2 -2
  291. package/components/NewStepper/Step/styles.js +8 -8
  292. package/components/NewStepper/styles.js +1 -1
  293. package/components/NotFoundPage/styles.js +4 -4
  294. package/components/Notification/NotificationContainer/styles.js +8 -8
  295. package/components/Notification/NotificationStackContainer/styles.js +10 -10
  296. package/components/Notification/NotificationTemplate/styles.js +3 -3
  297. package/components/NotificationList/ListItem/styles.js +1 -1
  298. package/components/NotificationList/SettingsButton/styles.js +1 -1
  299. package/components/NotificationList/styles.js +4 -4
  300. package/components/PageAside/MobileAsideButton/styles.js +1 -1
  301. package/components/PageAside/styles.js +3 -3
  302. package/components/PageAsideBlock/styles.js +2 -2
  303. package/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +2 -2
  304. package/components/PageAsideNavigation/styles.js +3 -3
  305. package/components/PageContent/PageContentHeader/Description/styles.js +1 -1
  306. package/components/PageContent/PageContentHeader/PageContentHeaderActions/MobilePageContentHeaderActions/styles.js +3 -3
  307. package/components/PageContent/PageContentHeader/PageContentHeaderActions/PageContentHeaderActionsSkeleton/styles.js +1 -1
  308. package/components/PageContent/PageContentHeader/Title/styles.js +1 -1
  309. package/components/PageContent/PageContentHeader/styles.js +2 -2
  310. package/components/PageContent/styles.js +4 -4
  311. package/components/PageHeader/HeaderContent/Description/styles.js +2 -2
  312. package/components/PageHeader/HeaderContent/styles.js +4 -4
  313. package/components/PageHeader/MobilePageActions/styles.js +3 -3
  314. package/components/PageHeader/PageActions/MainActions/styles.js +1 -1
  315. package/components/PageHeader/PageActions/SecondaryActions/styles.js +2 -2
  316. package/components/PageHeader/PageActions/SecondaryVisibleActions/styles.js +2 -2
  317. package/components/PageHeader/PageActions/styles.js +4 -4
  318. package/components/PageHeader/Title/styles.js +2 -2
  319. package/components/PageHeader/styles.js +3 -3
  320. package/components/PageLayout/styles.js +3 -3
  321. package/components/PageLayoutContainer/styles.js +2 -2
  322. package/components/PageLayoutFooter/styles.js +1 -1
  323. package/components/PageLayoutLoader/styles.js +1 -1
  324. package/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +2 -2
  325. package/components/PageLayoutSection/styles.js +2 -2
  326. package/components/PagePinnableAside/styles.js +3 -3
  327. package/components/Pagination/PaginationItem/styles.js +1 -1
  328. package/components/PdfViewer/ControlBar/styles.js +1 -1
  329. package/components/PdfViewer/List/styles.js +1 -1
  330. package/components/PdfViewer/PdfDocument/styles.js +1 -1
  331. package/components/PdfViewer/PdfPage/styles.js +1 -1
  332. package/components/PdfViewer/styles.js +2 -2
  333. package/components/Profile/MenuList/styles.js +3 -3
  334. package/components/Profile/ProfileSkeleton/styles.js +1 -1
  335. package/components/Profile/styles.js +3 -3
  336. package/components/Radio/styles.js +2 -2
  337. package/components/RadioCard/styles.js +6 -6
  338. package/components/RadioField/styles.js +1 -1
  339. package/components/ScrollToTopButton/styles.js +1 -1
  340. package/components/Select/styles.js +1 -1
  341. package/components/SideDialog/styles.js +1 -1
  342. package/components/SideDialogHeader/styles.js +1 -1
  343. package/components/StaticCalendar/StaticCalendarButton/styles.js +1 -1
  344. package/components/StaticCalendar/StaticCalendarGridButton/styles.js +1 -1
  345. package/components/Stepper/StepIcon/styles.js +1 -1
  346. package/components/SvgIcon/styles.js +0 -1
  347. package/components/Switch/styles.js +2 -2
  348. package/components/Tabs/styles.js +1 -1
  349. package/components/Tag/styles.js +1 -1
  350. package/components/ToggleButtonGroup/styles.js +1 -1
  351. package/components/Tree/MultipleTreeList/TreeItem/styles.js +6 -5
  352. package/components/Tree/MultipleTreeList/styles.js +7 -8
  353. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +22 -20
  354. package/components/Tree/TreeItem/styles.js +19 -19
  355. package/components/Tree/TreeList/TreeItem/styles.js +4 -5
  356. package/components/Tree/TreeList/styles.js +7 -8
  357. package/components/TreeAsyncAutocomplete/OptionsModal/NoData/styles.js +2 -1
  358. package/components/TreeAsyncAutocomplete/OptionsModal/styles.js +14 -15
  359. package/components/TreeAutocomplete/OptionsModal/NoData/styles.js +2 -1
  360. package/components/TreeAutocomplete/OptionsModal/styles.js +7 -8
  361. package/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.js +2 -1
  362. package/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +18 -18
  363. package/components/TreeLikeAutocomplete/OptionsModal/NoData/styles.js +2 -1
  364. package/components/TreeLikeAutocomplete/OptionsModal/styles.js +9 -9
  365. package/components/TreeLikeList/TreeItem/styles.js +7 -6
  366. package/components/TreeLikeList/styles.js +6 -8
  367. package/components/declaration/mui-material.d.ts +1 -0
  368. package/components/fileUploading/FileInfo/styles.js +3 -3
  369. package/components/fileUploading/FileUploader/FIleList/styles.js +1 -1
  370. package/components/fileUploading/FileUploaderDropzone/DropzoneWrapper/styles.js +1 -1
  371. package/components/fileUploading/FileUploaderDropzone/HintPlaceholder/styles.js +1 -1
  372. package/components/fileUploading/FileUploaderDropzone/PlaceholderContainer/styles.js +1 -1
  373. package/components/fileUploading/FileUploaderFile/styles.js +1 -1
  374. package/components/fileUploading/PreviewFileUploaderDropZone/HintPlaceholder/styles.js +1 -1
  375. package/components/fileUploading/PreviewFileUploaderDropZone/PlaceholderWrapper/styles.js +1 -1
  376. package/components/fileUploading/PreviewFileUploaderFile/FileError/styles.js +2 -2
  377. package/components/fileUploading/PreviewFileUploaderFile/FilePreview/styles.js +4 -4
  378. package/components/placeholders/Placeholder/Image/styles.js +1 -1
  379. package/components/placeholders/Placeholder/styles.js +4 -4
  380. package/components/theme/baseTheme/baseTheme.js +11 -2
  381. package/components/theme/breakpoints.d.ts +1 -0
  382. package/components/theme/breakpoints.js +1 -0
  383. package/components/theme/components/MuiAlert.js +1 -1
  384. package/components/theme/components/MuiButton.js +2 -2
  385. package/components/theme/components/MuiMenuItem.js +1 -1
  386. package/components/theme/components/MuiTextField.js +4 -4
  387. package/components/theme/types.d.ts +1 -0
  388. package/components/theme/types.js +12 -12
  389. package/components/useViewportType/useViewportType.js +1 -1
  390. package/hook-form/EditableText/EditingForm/styles.js +4 -4
  391. package/hook-form/FormFilters/AllFiltersButton/styles.js +2 -2
  392. package/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.js +2 -2
  393. package/hook-form/FormFilters/FormFiltersDialog/styles.js +2 -2
  394. package/hook-form/FormFilters/FormFiltersSkeleton/styles.js +2 -2
  395. package/hook-form/FormFilters/styles.js +2 -2
  396. package/hook-form/FormFiltersModalGroup/styles.js +1 -1
  397. package/hook-form/FormFiltersSearchField/styles.js +2 -2
  398. package/hook-form/FormPageFooterContainer/styles.js +1 -1
  399. package/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.js +3 -3
  400. package/hook-form/FormPageLayout/FormPageFooter/styles.js +3 -3
  401. package/hook-form/FormPageLayout/styles.js +1 -1
  402. package/hook-form/FormPageLayoutBase/FormMobileActions/styles.js +2 -2
  403. package/hook-form/FormPageLayoutBase/styles.js +5 -5
  404. package/hook-form/FormQuickFilters/styles.js +2 -2
  405. package/hook-form/FormWizard/styles.js +3 -3
  406. package/hook-form/FormWizardPageLayout/FormWizardFooter/styles.js +3 -3
  407. package/node/components/Accordion/styles.js +4 -4
  408. package/node/components/Alert/styles.js +2 -2
  409. package/node/components/Autocomplete/styles.js +1 -1
  410. package/node/components/Badge/styles.js +1 -1
  411. package/node/components/Banner/BannerTemplate/styles.js +3 -3
  412. package/node/components/Button/styles.js +1 -1
  413. package/node/components/CardGridInfinite/Card/styles.js +1 -1
  414. package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.js +2 -2
  415. package/node/components/CardGridInfinite/ErrorMessage/styles.js +1 -1
  416. package/node/components/CardGridInfinite/List/styles.js +1 -1
  417. package/node/components/CardGridInfinite/OnTopButton/styles.js +1 -1
  418. package/node/components/CardGridInfinite/styles.js +1 -1
  419. package/node/components/Checkbox/styles.js +2 -2
  420. package/node/components/CheckboxField/styles.js +2 -2
  421. package/node/components/Chip/styles.js +4 -4
  422. package/node/components/ConfirmAction/styles.js +3 -3
  423. package/node/components/ConfirmDialog/styles.js +1 -1
  424. package/node/components/DashboardAlert/styles.js +2 -2
  425. package/node/components/DashboardLayout/Container/styles.js +2 -2
  426. package/node/components/DashboardLayout/DashboardSidebar/styles.js +6 -6
  427. package/node/components/DashboardLayout/DashboardWrapper/styles.js +1 -1
  428. package/node/components/DashboardLayout/Header/styles.js +10 -10
  429. package/node/components/DashboardLayout/Main/styles.js +3 -3
  430. package/node/components/DashboardLayoutNotificationList/styles.js +1 -1
  431. package/node/components/DashboardLayoutSkeleton/styles.js +1 -1
  432. package/node/components/DashboardSidebarButton/styles.js +1 -1
  433. package/node/components/DashboardSidebarCounter/styles.js +1 -1
  434. package/node/components/DashboardSidebarPopover/FadePopup/styles.js +1 -1
  435. package/node/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +1 -1
  436. package/node/components/DashboardSidebarPopover/styles.js +2 -2
  437. package/node/components/DashboardSidebarSkeleton/styles.js +1 -1
  438. package/node/components/DataGrid/Body/styles.js +1 -1
  439. package/node/components/DataGrid/Cell/CellInner/styles.js +2 -2
  440. package/node/components/DataGrid/Cell/styles.js +1 -1
  441. package/node/components/DataGrid/Head/styles.js +1 -1
  442. package/node/components/DataGrid/Loader/styles.js +2 -2
  443. package/node/components/DataGrid/Row/NestedChildren/styles.js +3 -3
  444. package/node/components/DataGrid/Row/styles.js +8 -8
  445. package/node/components/DataGrid/RowBase/GroupCell/styles.js +1 -1
  446. package/node/components/DataGrid/RowBase/styles.js +3 -3
  447. package/node/components/DataGrid/styles.js +3 -3
  448. package/node/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.js +1 -1
  449. package/node/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.js +1 -1
  450. package/node/components/DataGridActionCell/SecondaryActionsButton/styles.js +1 -1
  451. package/node/components/DataGridActionCell/styles.js +1 -1
  452. package/node/components/DataGridCollapsibleRow/styles.js +4 -4
  453. package/node/components/DataGridInfinite/ErrorMessage/styles.js +1 -1
  454. package/node/components/DataGridInfinite/styles.js +1 -1
  455. package/node/components/DataGridPaginationContainer/styles.js +2 -2
  456. package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.js +2 -2
  457. package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.js +2 -2
  458. package/node/components/DatePicker/DateCalendar/DateCalendarHead/styles.js +2 -2
  459. package/node/components/DatePicker/DateCalendar/DateCalendarWrapper/styles.js +1 -1
  460. package/node/components/DatePicker/DatePickerPopover/styles.js +1 -1
  461. package/node/components/DatePicker/styles.js +1 -1
  462. package/node/components/DateRangePicker/styles.js +1 -1
  463. package/node/components/Description/Value/styles.js +2 -2
  464. package/node/components/Description/styles.js +1 -1
  465. package/node/components/DescriptionCell/styles.js +2 -2
  466. package/node/components/DescriptionList/styles.js +3 -3
  467. package/node/components/DialogActions/styles.js +2 -2
  468. package/node/components/DialogContent/styles.js +1 -1
  469. package/node/components/ExpansionPanel/Details/ErrorState/styles.js +1 -1
  470. package/node/components/ExpansionPanel/Details/LoadingState/styles.js +1 -1
  471. package/node/components/Fieldset/styles.js +5 -5
  472. package/node/components/FlowButton/styles.js +1 -1
  473. package/node/components/GlobalStyles/GlobalStyles.js +1 -1
  474. package/node/components/HintPopover/styles.js +4 -4
  475. package/node/components/IconButton/styles.js +1 -1
  476. package/node/components/InfiniteDataList/EndData/styles.js +1 -1
  477. package/node/components/InfiniteDataList/ErrorMessage/styles.js +1 -1
  478. package/node/components/InfiniteDataList/Loader/styles.js +1 -1
  479. package/node/components/InfiniteDataList/styles.js +1 -1
  480. package/node/components/InfiniteTreeList/InfiniteTreeList.d.ts +18 -0
  481. package/node/components/InfiniteTreeList/InfiniteTreeList.js +24 -17
  482. package/node/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.d.ts +9 -0
  483. package/node/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.js +9 -0
  484. package/node/components/InfiniteTreeList/InfiniteTreeListActions/types.d.ts +5 -0
  485. package/node/components/InfiniteTreeList/InfiniteTreeListActions/useLogic/useLogic.js +5 -6
  486. package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.d.ts +81 -0
  487. package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.js +21 -0
  488. package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.d.ts +3 -2
  489. package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +69 -13
  490. package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.d.ts +6 -0
  491. package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.js +12 -0
  492. package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.d.ts +1 -0
  493. package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.js +4 -0
  494. package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.d.ts +1 -0
  495. package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.js +5 -0
  496. package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/styles.js +11 -0
  497. package/node/components/InfiniteTreeList/InfiniteTreeListItem/InfiniteTreeListItem.js +28 -6
  498. package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.d.ts +19 -0
  499. package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.js +4 -0
  500. package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.d.ts +4 -0
  501. package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.js +13 -8
  502. package/node/components/InfiniteTreeList/InfiniteTreeListItem/constants.d.ts +6 -0
  503. package/node/components/InfiniteTreeList/InfiniteTreeListItem/constants.js +10 -0
  504. package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.d.ts +4 -4
  505. package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +29 -6
  506. package/node/components/InfiniteTreeList/InfiniteTreeListItem/types.d.ts +20 -3
  507. package/node/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.d.ts +7 -1
  508. package/node/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.js +56 -4
  509. package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.js +1 -1
  510. package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.js +2 -2
  511. package/node/components/InfiniteTreeList/ListFooter/ErrorMessage/styles.d.ts +5 -0
  512. package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/styles.js +2 -2
  513. package/node/components/InfiniteTreeList/ListFooter/ListFooter.d.ts +10 -0
  514. package/node/components/InfiniteTreeList/ListFooter/ListFooter.js +29 -0
  515. package/node/components/InfiniteTreeList/ListFooter/index.d.ts +2 -0
  516. package/node/components/InfiniteTreeList/ListFooter/index.js +17 -0
  517. package/node/components/InfiniteTreeList/{styles.js → ListFooter/styles.js} +1 -1
  518. package/node/components/InfiniteTreeList/ListFooter/types.d.ts +22 -0
  519. package/node/components/InfiniteTreeList/ListFooter/types.js +2 -0
  520. package/node/components/InfiniteTreeList/OnTopButton/OnTopButton.d.ts +8 -2
  521. package/node/components/InfiniteTreeList/OnTopButton/OnTopButton.js +6 -5
  522. package/node/components/InfiniteTreeList/OnTopButton/styles.d.ts +4 -0
  523. package/node/components/InfiniteTreeList/OnTopButton/styles.js +13 -0
  524. package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.d.ts +23 -0
  525. package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.js +15 -0
  526. package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.d.ts +1 -0
  527. package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.js +17 -0
  528. package/node/components/InfiniteTreeList/ParentItems/Item/Item.d.ts +10 -0
  529. package/node/components/InfiniteTreeList/ParentItems/Item/Item.js +25 -0
  530. package/node/components/InfiniteTreeList/ParentItems/Item/index.d.ts +2 -0
  531. package/node/components/InfiniteTreeList/ParentItems/Item/index.js +18 -0
  532. package/node/components/InfiniteTreeList/ParentItems/Item/types.d.ts +8 -0
  533. package/node/components/InfiniteTreeList/ParentItems/Item/types.js +2 -0
  534. package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/index.d.ts +1 -0
  535. package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/index.js +17 -0
  536. package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.d.ts +12 -0
  537. package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.js +16 -0
  538. package/node/components/InfiniteTreeList/ParentItems/ParentItems.d.ts +11 -0
  539. package/node/components/InfiniteTreeList/ParentItems/ParentItems.js +15 -0
  540. package/node/components/InfiniteTreeList/ParentItems/index.d.ts +3 -0
  541. package/node/components/InfiniteTreeList/ParentItems/index.js +19 -0
  542. package/node/components/InfiniteTreeList/ParentItems/types.d.ts +8 -0
  543. package/node/components/InfiniteTreeList/ParentItems/types.js +2 -0
  544. package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.d.ts +9 -0
  545. package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.js +26 -0
  546. package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.d.ts +1 -0
  547. package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.js +9 -0
  548. package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.d.ts +1 -0
  549. package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.js +17 -0
  550. package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.d.ts +1 -0
  551. package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.js +17 -0
  552. package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.d.ts +20 -0
  553. package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.js +13 -0
  554. package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.d.ts +1 -0
  555. package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.js +17 -0
  556. package/node/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.d.ts +5 -0
  557. package/node/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.js +42 -0
  558. package/node/components/InfiniteTreeList/TreeItem/ParentSlot/index.d.ts +2 -0
  559. package/node/components/InfiniteTreeList/TreeItem/ParentSlot/index.js +18 -0
  560. package/node/components/InfiniteTreeList/TreeItem/ParentSlot/styles.d.ts +9 -0
  561. package/node/components/InfiniteTreeList/TreeItem/ParentSlot/styles.js +11 -0
  562. package/node/components/InfiniteTreeList/TreeItem/ParentSlot/types.d.ts +6 -0
  563. package/node/components/InfiniteTreeList/TreeItem/ParentSlot/types.js +2 -0
  564. package/node/components/InfiniteTreeList/TreeItem/TreeItem.d.ts +5 -2
  565. package/node/components/InfiniteTreeList/TreeItem/TreeItem.js +31 -4
  566. package/node/components/InfiniteTreeList/TreeItem/constants.d.ts +3 -0
  567. package/node/components/InfiniteTreeList/TreeItem/constants.js +3 -1
  568. package/node/components/InfiniteTreeList/TreeItem/styles.d.ts +0 -3
  569. package/node/components/InfiniteTreeList/TreeItem/styles.js +23 -8
  570. package/node/components/InfiniteTreeList/TreeItem/types.d.ts +4 -9
  571. package/node/components/InfiniteTreeList/TreeItem/useLogic/useLogic.d.ts +29 -9
  572. package/node/components/InfiniteTreeList/TreeItem/useLogic/useLogic.js +60 -18
  573. package/node/components/InfiniteTreeList/constants.d.ts +14 -2
  574. package/node/components/InfiniteTreeList/constants.js +15 -3
  575. package/node/components/InfiniteTreeList/hooks/index.d.ts +5 -0
  576. package/node/components/InfiniteTreeList/hooks/index.js +21 -0
  577. package/node/components/InfiniteTreeList/hooks/useChildrenState/index.d.ts +2 -0
  578. package/node/components/InfiniteTreeList/hooks/useChildrenState/index.js +18 -0
  579. package/node/components/InfiniteTreeList/hooks/useChildrenState/types.d.ts +43 -0
  580. package/node/components/InfiniteTreeList/hooks/useChildrenState/types.js +2 -0
  581. package/node/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.d.ts +20 -0
  582. package/node/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.js +119 -0
  583. package/node/components/InfiniteTreeList/hooks/useEnterAnimation/index.d.ts +2 -0
  584. package/node/components/InfiniteTreeList/hooks/useEnterAnimation/index.js +18 -0
  585. package/node/components/InfiniteTreeList/hooks/useEnterAnimation/types.d.ts +29 -0
  586. package/node/components/InfiniteTreeList/hooks/useEnterAnimation/types.js +2 -0
  587. package/node/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.d.ts +6 -0
  588. package/node/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.js +39 -0
  589. package/node/components/InfiniteTreeList/hooks/useExpandNotifier/index.d.ts +1 -0
  590. package/node/components/InfiniteTreeList/hooks/useExpandNotifier/index.js +17 -0
  591. package/node/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.d.ts +8 -0
  592. package/node/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.js +23 -0
  593. package/node/components/InfiniteTreeList/hooks/useFlatTree/index.d.ts +2 -0
  594. package/node/components/InfiniteTreeList/hooks/useFlatTree/index.js +18 -0
  595. package/node/components/InfiniteTreeList/hooks/useFlatTree/types.d.ts +20 -0
  596. package/node/components/InfiniteTreeList/hooks/useFlatTree/types.js +2 -0
  597. package/node/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.d.ts +15 -0
  598. package/node/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.js +92 -0
  599. package/node/components/InfiniteTreeList/hooks/useListScroll/index.d.ts +2 -0
  600. package/node/components/InfiniteTreeList/hooks/useListScroll/index.js +18 -0
  601. package/node/components/InfiniteTreeList/hooks/useListScroll/types.d.ts +25 -0
  602. package/node/components/InfiniteTreeList/hooks/useListScroll/types.js +2 -0
  603. package/node/components/InfiniteTreeList/hooks/useListScroll/useListScroll.d.ts +29 -0
  604. package/node/components/InfiniteTreeList/hooks/useListScroll/useListScroll.js +63 -0
  605. package/node/components/InfiniteTreeList/index.d.ts +1 -1
  606. package/node/components/InfiniteTreeList/public.d.ts +1 -1
  607. package/node/components/InfiniteTreeList/types.d.ts +83 -17
  608. package/node/components/InfiniteTreeList/useLogic/useLogic.d.ts +22 -12
  609. package/node/components/InfiniteTreeList/useLogic/useLogic.js +64 -69
  610. package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.d.ts +5 -0
  611. package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.js +10 -0
  612. package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.d.ts +1 -0
  613. package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.js +17 -0
  614. package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.d.ts +5 -0
  615. package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.js +8 -0
  616. package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.d.ts +1 -0
  617. package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.js +17 -0
  618. package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.d.ts +5 -0
  619. package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.js +9 -0
  620. package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.d.ts +1 -0
  621. package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.js +17 -0
  622. package/node/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.d.ts +6 -0
  623. package/node/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.js +10 -0
  624. package/node/components/InfiniteTreeList/utils/checkIsDirectChild/index.d.ts +1 -0
  625. package/node/components/InfiniteTreeList/utils/checkIsDirectChild/index.js +17 -0
  626. package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.d.ts +12 -0
  627. package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.js +18 -0
  628. package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.d.ts +1 -0
  629. package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.js +17 -0
  630. package/node/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.d.ts +5 -0
  631. package/node/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.js +20 -0
  632. package/node/components/InfiniteTreeList/utils/checkIsSameChildren/index.d.ts +1 -0
  633. package/node/components/InfiniteTreeList/utils/checkIsSameChildren/index.js +17 -0
  634. package/node/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.d.ts +5 -0
  635. package/node/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.js +9 -0
  636. package/node/components/InfiniteTreeList/utils/countDirectChildren/index.d.ts +1 -0
  637. package/node/components/InfiniteTreeList/utils/countDirectChildren/index.js +17 -0
  638. package/node/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.d.ts +24 -0
  639. package/node/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.js +39 -0
  640. package/node/components/InfiniteTreeList/utils/createParentSlots/index.d.ts +1 -0
  641. package/node/components/InfiniteTreeList/utils/createParentSlots/index.js +17 -0
  642. package/node/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.d.ts +21 -0
  643. package/node/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.js +44 -0
  644. package/node/components/InfiniteTreeList/utils/createTailRegistry/index.d.ts +1 -0
  645. package/node/components/InfiniteTreeList/utils/createTailRegistry/index.js +5 -0
  646. package/node/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.d.ts +5 -0
  647. package/node/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.js +9 -0
  648. package/node/components/InfiniteTreeList/utils/flattenChildren/index.d.ts +1 -0
  649. package/node/components/InfiniteTreeList/utils/flattenChildren/index.js +17 -0
  650. package/node/components/InfiniteTreeList/utils/flattenTree/flattenTree.d.ts +6 -0
  651. package/node/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/flattenTree.js +9 -4
  652. package/node/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.d.ts +17 -0
  653. package/node/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.js +18 -0
  654. package/node/components/InfiniteTreeList/utils/getEnteringChildren/index.d.ts +1 -0
  655. package/node/components/InfiniteTreeList/utils/getEnteringChildren/index.js +17 -0
  656. package/node/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.d.ts +10 -0
  657. package/node/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.js +31 -0
  658. package/node/components/InfiniteTreeList/utils/getIdsToKeep/index.d.ts +1 -0
  659. package/node/components/InfiniteTreeList/utils/getIdsToKeep/index.js +17 -0
  660. package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.d.ts +4 -2
  661. package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.js +5 -4
  662. package/node/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.d.ts +6 -0
  663. package/node/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.js +22 -0
  664. package/node/components/InfiniteTreeList/utils/getNestedItems/index.d.ts +1 -0
  665. package/node/components/InfiniteTreeList/{useLogic/utils/getDescendants → utils/getNestedItems}/index.js +1 -1
  666. package/node/components/InfiniteTreeList/utils/index.d.ts +20 -0
  667. package/node/components/InfiniteTreeList/utils/index.js +36 -0
  668. package/node/components/InfiniteTreeList/utils/insertChildren/index.d.ts +1 -0
  669. package/node/components/InfiniteTreeList/utils/insertChildren/index.js +17 -0
  670. package/node/components/InfiniteTreeList/utils/insertChildren/insertChildren.d.ts +5 -0
  671. package/node/components/InfiniteTreeList/utils/insertChildren/insertChildren.js +45 -0
  672. package/node/components/InfiniteTreeList/utils/removeChildren/index.d.ts +1 -0
  673. package/node/components/InfiniteTreeList/utils/removeChildren/index.js +17 -0
  674. package/node/components/InfiniteTreeList/utils/removeChildren/removeChildren.d.ts +5 -0
  675. package/node/components/InfiniteTreeList/utils/removeChildren/removeChildren.js +16 -0
  676. package/node/components/InfiniteTreeList/utils/sortCollapsed/sortCollapsed.d.ts +5 -0
  677. package/node/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/sortCollapsed.js +1 -6
  678. package/node/components/InfiniteTreeList/utils/startRemoveAnimation/index.d.ts +1 -0
  679. package/node/components/InfiniteTreeList/utils/startRemoveAnimation/index.js +17 -0
  680. package/node/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.d.ts +1 -0
  681. package/node/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.js +9 -0
  682. package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.d.ts +1 -0
  683. package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.js +17 -0
  684. package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.d.ts +11 -0
  685. package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.js +104 -0
  686. package/node/components/MenuOrganization/NoData/styles.js +1 -1
  687. package/node/components/MenuOrganization/OrganizationButton/styles.js +1 -1
  688. package/node/components/MenuOrganization/OrganizationItem/styles.js +1 -1
  689. package/node/components/MenuOrganization/OrganizationListSkeleton/styles.js +2 -2
  690. package/node/components/MenuOrganization/styles.js +4 -4
  691. package/node/components/MinimalisticPagination/styles.js +1 -1
  692. package/node/components/NavMenu/Item/ItemButton/styles.js +4 -4
  693. package/node/components/NewStepper/Step/Description/styles.js +1 -1
  694. package/node/components/NewStepper/Step/Label/styles.js +2 -2
  695. package/node/components/NewStepper/Step/styles.js +8 -8
  696. package/node/components/NewStepper/styles.js +1 -1
  697. package/node/components/NotFoundPage/styles.js +4 -4
  698. package/node/components/Notification/NotificationContainer/styles.js +8 -8
  699. package/node/components/Notification/NotificationStackContainer/styles.js +10 -10
  700. package/node/components/Notification/NotificationTemplate/styles.js +3 -3
  701. package/node/components/NotificationList/ListItem/styles.js +1 -1
  702. package/node/components/NotificationList/SettingsButton/styles.js +1 -1
  703. package/node/components/NotificationList/styles.js +4 -4
  704. package/node/components/PageAside/MobileAsideButton/styles.js +1 -1
  705. package/node/components/PageAside/styles.js +3 -3
  706. package/node/components/PageAsideBlock/styles.js +2 -2
  707. package/node/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +2 -2
  708. package/node/components/PageAsideNavigation/styles.js +3 -3
  709. package/node/components/PageContent/PageContentHeader/Description/styles.js +1 -1
  710. package/node/components/PageContent/PageContentHeader/PageContentHeaderActions/MobilePageContentHeaderActions/styles.js +3 -3
  711. package/node/components/PageContent/PageContentHeader/PageContentHeaderActions/PageContentHeaderActionsSkeleton/styles.js +1 -1
  712. package/node/components/PageContent/PageContentHeader/Title/styles.js +1 -1
  713. package/node/components/PageContent/PageContentHeader/styles.js +2 -2
  714. package/node/components/PageContent/styles.js +4 -4
  715. package/node/components/PageHeader/HeaderContent/Description/styles.js +2 -2
  716. package/node/components/PageHeader/HeaderContent/styles.js +4 -4
  717. package/node/components/PageHeader/MobilePageActions/styles.js +3 -3
  718. package/node/components/PageHeader/PageActions/MainActions/styles.js +1 -1
  719. package/node/components/PageHeader/PageActions/SecondaryActions/styles.js +2 -2
  720. package/node/components/PageHeader/PageActions/SecondaryVisibleActions/styles.js +2 -2
  721. package/node/components/PageHeader/PageActions/styles.js +4 -4
  722. package/node/components/PageHeader/Title/styles.js +2 -2
  723. package/node/components/PageHeader/styles.js +3 -3
  724. package/node/components/PageLayout/styles.js +3 -3
  725. package/node/components/PageLayoutContainer/styles.js +2 -2
  726. package/node/components/PageLayoutFooter/styles.js +1 -1
  727. package/node/components/PageLayoutLoader/styles.js +1 -1
  728. package/node/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +2 -2
  729. package/node/components/PageLayoutSection/styles.js +2 -2
  730. package/node/components/PagePinnableAside/styles.js +3 -3
  731. package/node/components/Pagination/PaginationItem/styles.js +1 -1
  732. package/node/components/PdfViewer/ControlBar/styles.js +1 -1
  733. package/node/components/PdfViewer/List/styles.js +1 -1
  734. package/node/components/PdfViewer/PdfDocument/styles.js +1 -1
  735. package/node/components/PdfViewer/PdfPage/styles.js +1 -1
  736. package/node/components/PdfViewer/styles.js +2 -2
  737. package/node/components/Profile/MenuList/styles.js +3 -3
  738. package/node/components/Profile/ProfileSkeleton/styles.js +1 -1
  739. package/node/components/Profile/styles.js +3 -3
  740. package/node/components/Radio/styles.js +2 -2
  741. package/node/components/RadioCard/styles.js +6 -6
  742. package/node/components/RadioField/styles.js +1 -1
  743. package/node/components/ScrollToTopButton/styles.js +1 -1
  744. package/node/components/Select/styles.js +1 -1
  745. package/node/components/SideDialog/styles.js +1 -1
  746. package/node/components/SideDialogHeader/styles.js +1 -1
  747. package/node/components/StaticCalendar/StaticCalendarButton/styles.js +1 -1
  748. package/node/components/StaticCalendar/StaticCalendarGridButton/styles.js +1 -1
  749. package/node/components/Stepper/StepIcon/styles.js +1 -1
  750. package/node/components/SvgIcon/styles.js +0 -1
  751. package/node/components/Switch/styles.js +2 -2
  752. package/node/components/Tabs/styles.js +1 -1
  753. package/node/components/Tag/styles.js +1 -1
  754. package/node/components/ToggleButtonGroup/styles.js +1 -1
  755. package/node/components/Tree/MultipleTreeList/TreeItem/styles.js +6 -5
  756. package/node/components/Tree/MultipleTreeList/styles.js +7 -8
  757. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +22 -20
  758. package/node/components/Tree/TreeItem/styles.js +19 -19
  759. package/node/components/Tree/TreeList/TreeItem/styles.js +4 -5
  760. package/node/components/Tree/TreeList/styles.js +7 -8
  761. package/node/components/TreeAsyncAutocomplete/OptionsModal/NoData/styles.js +2 -1
  762. package/node/components/TreeAsyncAutocomplete/OptionsModal/styles.js +14 -15
  763. package/node/components/TreeAutocomplete/OptionsModal/NoData/styles.js +2 -1
  764. package/node/components/TreeAutocomplete/OptionsModal/styles.js +7 -8
  765. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.js +2 -1
  766. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +18 -18
  767. package/node/components/TreeLikeAutocomplete/OptionsModal/NoData/styles.js +2 -1
  768. package/node/components/TreeLikeAutocomplete/OptionsModal/styles.js +9 -9
  769. package/node/components/TreeLikeList/TreeItem/styles.js +7 -6
  770. package/node/components/TreeLikeList/styles.js +6 -8
  771. package/node/components/fileUploading/FileInfo/styles.js +3 -3
  772. package/node/components/fileUploading/FileUploader/FIleList/styles.js +1 -1
  773. package/node/components/fileUploading/FileUploaderDropzone/DropzoneWrapper/styles.js +1 -1
  774. package/node/components/fileUploading/FileUploaderDropzone/HintPlaceholder/styles.js +1 -1
  775. package/node/components/fileUploading/FileUploaderDropzone/PlaceholderContainer/styles.js +1 -1
  776. package/node/components/fileUploading/FileUploaderFile/styles.js +1 -1
  777. package/node/components/fileUploading/PreviewFileUploaderDropZone/HintPlaceholder/styles.js +1 -1
  778. package/node/components/fileUploading/PreviewFileUploaderDropZone/PlaceholderWrapper/styles.js +1 -1
  779. package/node/components/fileUploading/PreviewFileUploaderFile/FileError/styles.js +2 -2
  780. package/node/components/fileUploading/PreviewFileUploaderFile/FilePreview/styles.js +4 -4
  781. package/node/components/placeholders/Placeholder/Image/styles.js +1 -1
  782. package/node/components/placeholders/Placeholder/styles.js +4 -4
  783. package/node/components/theme/baseTheme/baseTheme.js +11 -2
  784. package/node/components/theme/breakpoints.d.ts +1 -0
  785. package/node/components/theme/breakpoints.js +1 -0
  786. package/node/components/theme/components/MuiAlert.js +1 -1
  787. package/node/components/theme/components/MuiButton.js +2 -2
  788. package/node/components/theme/components/MuiMenuItem.js +1 -1
  789. package/node/components/theme/components/MuiTextField.js +4 -4
  790. package/node/components/theme/types.d.ts +1 -0
  791. package/node/components/theme/types.js +12 -12
  792. package/node/components/useViewportType/useViewportType.js +1 -1
  793. package/node/hook-form/EditableText/EditingForm/styles.js +4 -4
  794. package/node/hook-form/FormFilters/AllFiltersButton/styles.js +2 -2
  795. package/node/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.js +2 -2
  796. package/node/hook-form/FormFilters/FormFiltersDialog/styles.js +2 -2
  797. package/node/hook-form/FormFilters/FormFiltersSkeleton/styles.js +2 -2
  798. package/node/hook-form/FormFilters/styles.js +2 -2
  799. package/node/hook-form/FormFiltersModalGroup/styles.js +1 -1
  800. package/node/hook-form/FormFiltersSearchField/styles.js +2 -2
  801. package/node/hook-form/FormPageFooterContainer/styles.js +1 -1
  802. package/node/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.js +3 -3
  803. package/node/hook-form/FormPageLayout/FormPageFooter/styles.js +3 -3
  804. package/node/hook-form/FormPageLayout/styles.js +1 -1
  805. package/node/hook-form/FormPageLayoutBase/FormMobileActions/styles.js +2 -2
  806. package/node/hook-form/FormPageLayoutBase/styles.js +5 -5
  807. package/node/hook-form/FormQuickFilters/styles.js +2 -2
  808. package/node/hook-form/FormWizard/styles.js +3 -3
  809. package/node/hook-form/FormWizardPageLayout/FormWizardFooter/styles.js +3 -3
  810. package/package.json +1 -1
  811. package/components/InfiniteTreeList/useLogic/utils/flattenTree/flattenTree.d.ts +0 -5
  812. package/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.d.ts +0 -10
  813. package/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.js +0 -22
  814. package/components/InfiniteTreeList/useLogic/utils/getDescendants/index.d.ts +0 -1
  815. package/components/InfiniteTreeList/useLogic/utils/getDescendants/index.js +0 -1
  816. package/components/InfiniteTreeList/useLogic/utils/index.d.ts +0 -4
  817. package/components/InfiniteTreeList/useLogic/utils/index.js +0 -4
  818. package/components/InfiniteTreeList/useLogic/utils/sortCollapsed/sortCollapsed.d.ts +0 -10
  819. package/node/components/InfiniteTreeList/useLogic/utils/flattenTree/flattenTree.d.ts +0 -5
  820. package/node/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.d.ts +0 -10
  821. package/node/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.js +0 -26
  822. package/node/components/InfiniteTreeList/useLogic/utils/getDescendants/index.d.ts +0 -1
  823. package/node/components/InfiniteTreeList/useLogic/utils/index.d.ts +0 -4
  824. package/node/components/InfiniteTreeList/useLogic/utils/index.js +0 -20
  825. package/node/components/InfiniteTreeList/useLogic/utils/sortCollapsed/sortCollapsed.d.ts +0 -10
  826. /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.d.ts +0 -0
  827. /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.d.ts +0 -0
  828. /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.js +0 -0
  829. /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.d.ts +0 -0
  830. /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.js +0 -0
  831. /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.d.ts +0 -0
  832. /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.d.ts +0 -0
  833. /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.js +0 -0
  834. /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.d.ts +0 -0
  835. /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.js +0 -0
  836. /package/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.d.ts +0 -0
  837. /package/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.js +0 -0
  838. /package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.d.ts +0 -0
  839. /package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.js +0 -0
  840. /package/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.d.ts +0 -0
  841. /package/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.js +0 -0
  842. /package/node/components/InfiniteTreeList/{ErrorMessage → InfiniteTreeListItem/ErrorPlaceholder}/styles.d.ts +0 -0
  843. /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.d.ts +0 -0
  844. /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.d.ts +0 -0
  845. /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.js +0 -0
  846. /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.d.ts +0 -0
  847. /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.js +0 -0
  848. /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.d.ts +0 -0
  849. /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.d.ts +0 -0
  850. /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.js +0 -0
  851. /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.d.ts +0 -0
  852. /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.js +0 -0
  853. /package/node/components/InfiniteTreeList/{styles.d.ts → ListFooter/styles.d.ts} +0 -0
  854. /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.d.ts +0 -0
  855. /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.js +0 -0
  856. /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.d.ts +0 -0
  857. /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.js +0 -0
  858. /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.d.ts +0 -0
  859. /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.js +0 -0
@@ -5,18 +5,23 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const InfiniteTreeListContext_1 = require("../../../InfiniteTreeListContext");
7
7
  const TreeListItemContext_1 = require("../TreeListItemContext");
8
+ /**
9
+ * Ставит контекст строки: считает блокировку по пути узла и отдаёт вниз
10
+ * саму строку с её причиной блокировки
11
+ */
8
12
  const TreeListItemContextProvider = ({ item, children, onToggle, }) => {
9
13
  const [disabledReason, setDisabledReason] = (0, react_1.useState)();
10
14
  const { disabledIdList } = (0, react_1.useContext)(InfiniteTreeListContext_1.InfiniteTreeListContext);
11
15
  const isDisabled = (0, react_1.useMemo)(() => {
12
16
  return item.meta.path.some((id) => disabledIdList.has(id));
13
- }, [item.path, disabledIdList]);
14
- return ((0, jsx_runtime_1.jsx)(TreeListItemContext_1.TreeListItemContext.Provider, { value: {
15
- item,
16
- onToggle,
17
- isDisabled,
18
- disabledReason,
19
- setDisabledReason,
20
- }, children: children }));
17
+ }, [item.meta.path, disabledIdList]);
18
+ const value = (0, react_1.useMemo)(() => ({
19
+ item,
20
+ onToggle,
21
+ isDisabled,
22
+ disabledReason,
23
+ setDisabledReason,
24
+ }), [item, onToggle, isDisabled, disabledReason]);
25
+ return ((0, jsx_runtime_1.jsx)(TreeListItemContext_1.TreeListItemContext.Provider, { value: value, children: children }));
21
26
  };
22
27
  exports.TreeListItemContextProvider = TreeListItemContextProvider;
@@ -0,0 +1,6 @@
1
+ export declare const infiniteTreeListItemClassnames: {
2
+ root: string;
3
+ disabled: string;
4
+ loading: string;
5
+ hasNested: string;
6
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.infiniteTreeListItemClassnames = void 0;
4
+ const createUIKitClassname_1 = require("../../utils/createUIKitClassname");
5
+ exports.infiniteTreeListItemClassnames = {
6
+ root: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item'),
7
+ disabled: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item_disabled'),
8
+ loading: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item_loading'),
9
+ hasNested: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item_has-nested'),
10
+ };
@@ -2,12 +2,12 @@
2
2
  export declare const Wrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- } & {
6
- $isDisabled?: boolean | undefined;
7
- $isLoading?: boolean | undefined;
8
- $hasNested?: boolean | undefined;
9
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
6
  export declare const ActionsWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
11
7
  theme?: import("@emotion/react").Theme | undefined;
12
8
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const LoaderWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActionsWrapper = exports.Wrapper = void 0;
3
+ exports.LoaderWrapper = exports.ActionsWrapper = exports.Wrapper = void 0;
4
4
  const styled_1 = require("../../styled");
5
+ const constants_1 = require("./constants");
5
6
  exports.Wrapper = styled_1.styled.div `
6
- cursor: ${({ $isDisabled, $isLoading, $hasNested }) => $hasNested && !$isLoading && !$isDisabled ? 'pointer' : 'default'};
7
+ cursor: default;
7
8
 
8
9
  display: flex;
9
10
  gap: ${({ theme }) => theme.spacing(3)};
@@ -13,7 +14,6 @@ exports.Wrapper = styled_1.styled.div `
13
14
  min-height: 60px;
14
15
  padding: ${({ theme }) => theme.spacing(3, 4)};
15
16
 
16
- opacity: ${({ $isDisabled }) => ($isDisabled ? 0.5 : 1)};
17
17
  background: ${({ theme }) => theme.palette.background.default};
18
18
 
19
19
  transition: ${({ theme }) => theme.transitions.create('background-color', {
@@ -22,9 +22,26 @@ exports.Wrapper = styled_1.styled.div `
22
22
  })};
23
23
 
24
24
  &:hover {
25
- background-color: ${({ theme, $isDisabled, $isLoading }) => $isDisabled || $isLoading
26
- ? theme.palette.background.default
27
- : theme.palette.background.elementHover};
25
+ background-color: ${({ theme }) => theme.palette.background.elementHover};
26
+ }
27
+
28
+ &.${constants_1.infiniteTreeListItemClassnames.hasNested} {
29
+ cursor: pointer;
30
+ }
31
+
32
+ &.${constants_1.infiniteTreeListItemClassnames.loading} {
33
+ cursor: default;
34
+ }
35
+
36
+ &.${constants_1.infiniteTreeListItemClassnames.disabled} {
37
+ cursor: default;
38
+
39
+ opacity: 0.5;
40
+ }
41
+
42
+ &.${constants_1.infiniteTreeListItemClassnames.loading}:hover,
43
+ &.${constants_1.infiniteTreeListItemClassnames.disabled}:hover {
44
+ background-color: ${({ theme }) => theme.palette.background.default};
28
45
  }
29
46
  `;
30
47
  exports.ActionsWrapper = styled_1.styled.div `
@@ -32,3 +49,9 @@ exports.ActionsWrapper = styled_1.styled.div `
32
49
 
33
50
  margin-left: auto;
34
51
  `;
52
+ exports.LoaderWrapper = styled_1.styled.div `
53
+ display: flex;
54
+ justify-content: center;
55
+
56
+ width: 100%;
57
+ `;
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
+ import type { InfiniteTreeListData } from '../types';
2
3
  export type InfiniteTreeListItemProps = {
3
4
  children: ReactNode;
4
5
  /**
@@ -10,15 +11,23 @@ export type InfiniteTreeListItemProps = {
10
11
  */
11
12
  actions?: ReactNode;
12
13
  /**
13
- * Если `true`, компонент будет отображаться в состоянии ошибки
14
+ * Загруженные дочерние элементы узла.
15
+ */
16
+ childItems?: InfiniteTreeListData[];
17
+ /**
18
+ * Флаг достижения конца списка
19
+ */
20
+ isEndReached?: boolean;
21
+ /**
22
+ * Флаг ошибки загрузки дочерних элементов узла
14
23
  */
15
24
  isError?: boolean;
16
25
  /**
17
- * Если `true`, покажется itemSkeleton переданный в корневой компонент
26
+ * Флаг загрузки дочерних элементов
18
27
  */
19
28
  isLoading?: boolean;
20
29
  /**
21
- * Если `true`, элемент будет заблокирован для взаимодействия
30
+ * Элемент заблокирован для взаимодействия
22
31
  */
23
32
  isDisabled?: boolean;
24
33
  /**
@@ -33,4 +42,12 @@ export type InfiniteTreeListItemProps = {
33
42
  * Текст ошибки
34
43
  */
35
44
  errorMsg?: string;
45
+ /**
46
+ * Обработчик раскрытия узла
47
+ */
48
+ onOpen?: () => void;
49
+ /**
50
+ * Обработчик подгрузки данных
51
+ */
52
+ onLoadMore?: () => void;
36
53
  };
@@ -1,7 +1,11 @@
1
1
  import { type MouseEvent } from 'react';
2
2
  import { type TooltipProps } from '../../../Tooltip';
3
3
  import { type InfiniteTreeListItemProps } from '../types';
4
- export declare const useLogic: ({ isDisabled, disabledReason, }: InfiniteTreeListItemProps) => {
4
+ /**
5
+ * Логика строки: отдаёт списку данные дочерних элементов и callback-функции
6
+ * пагинации, сообщает о раскрытии узла и собирает состояние блокировки строки
7
+ */
8
+ export declare const useLogic: ({ isDisabled, disabledReason, isLoading, isError, isEndReached, childItems, onOpen, onLoadMore, onRetry, }: InfiniteTreeListItemProps) => {
5
9
  item: import("../../types").FlattenTree<import("../../types").InfiniteTreeListData>;
6
10
  handleClick: (event: MouseEvent) => void;
7
11
  itemSkeleton: import("react").ReactNode;
@@ -10,4 +14,6 @@ export declare const useLogic: ({ isDisabled, disabledReason, }: InfiniteTreeLis
10
14
  tooltipProps: Omit<TooltipProps, "children" | "ref">;
11
15
  isDisabledByActions: boolean;
12
16
  isChevronActive: boolean;
17
+ isRowLoading: boolean;
18
+ isRowError: boolean;
13
19
  };
@@ -4,18 +4,68 @@ exports.useLogic = void 0;
4
4
  const react_1 = require("react");
5
5
  const InfiniteTreeListContext_1 = require("../../InfiniteTreeListContext");
6
6
  const TreeListItemContext_1 = require("../TreeListItemContext");
7
- const useLogic = ({ isDisabled, disabledReason, }) => {
8
- const { itemSkeleton, setDisabled } = (0, react_1.useContext)(InfiniteTreeListContext_1.InfiniteTreeListContext);
7
+ /**
8
+ * Логика строки: отдаёт списку данные дочерних элементов и callback-функции
9
+ * пагинации, сообщает о раскрытии узла и собирает состояние блокировки строки
10
+ */
11
+ const useLogic = ({ isDisabled, disabledReason, isLoading, isError, isEndReached, childItems, onOpen, onLoadMore, onRetry, }) => {
12
+ const { itemSkeleton, setDisabled, registerChildrenCallbacks, registerChildren, notifyExpand, } = (0, react_1.useContext)(InfiniteTreeListContext_1.InfiniteTreeListContext);
9
13
  const { item, onToggle, isDisabled: isDisabledByActions, disabledReason: disabledReasonByActions, } = (0, react_1.useContext)(TreeListItemContext_1.TreeListItemContext);
14
+ const isChildrenControl = childItems !== undefined || onLoadMore !== undefined;
10
15
  (0, react_1.useEffect)(() => {
11
16
  if (isDisabled) {
12
17
  setDisabled(item.id, isDisabled);
13
18
  }
14
19
  }, [isDisabled]);
15
- const [isChevronActive, setChevronActive] = (0, react_1.useState)(item.meta.isExpanded);
20
+ (0, react_1.useEffect)(() => {
21
+ registerChildrenCallbacks(item.id, {
22
+ onLoadMore,
23
+ onRetry,
24
+ });
25
+ }, [item.id, onLoadMore, onRetry, registerChildrenCallbacks]);
26
+ (0, react_1.useEffect)(() => {
27
+ if (!isChildrenControl) {
28
+ return;
29
+ }
30
+ registerChildren(item.id, {
31
+ data: childItems ?? [],
32
+ isLoading,
33
+ isError,
34
+ isEndReached,
35
+ });
36
+ }, [
37
+ item.id,
38
+ isChildrenControl,
39
+ childItems,
40
+ isLoading,
41
+ isError,
42
+ isEndReached,
43
+ registerChildren,
44
+ ]);
45
+ // onOpen вызывается на раскрытии узла, а не на клике: узел раскрывается и
46
+ // через initialExpandedLevel, где клика не было. Повторные вызовы блокируются
47
+ const onOpenRef = (0, react_1.useRef)(onOpen);
48
+ (0, react_1.useEffect)(() => {
49
+ onOpenRef.current = onOpen;
50
+ });
51
+ (0, react_1.useEffect)(() => {
52
+ if (!item.meta.isExpanded) {
53
+ return;
54
+ }
55
+ notifyExpand(item.id, () => onOpenRef.current?.());
56
+ }, [item.meta.isExpanded, item.id, notifyExpand]);
57
+ const [optimisticExpanded, setOptimisticExpanded] = (0, react_1.useState)(null);
58
+ const isChevronActive = optimisticExpanded ?? item.meta.isExpanded;
59
+ (0, react_1.useEffect)(() => {
60
+ setOptimisticExpanded(null);
61
+ }, [item.meta.isExpanded]);
16
62
  const handleClick = (0, react_1.useCallback)((event) => {
17
63
  event.stopPropagation();
18
- setChevronActive((prev) => !prev);
64
+ // Лист не раскрывается: клик не должен заводить его в набор раскрытых узлов
65
+ if (!item.meta.hasNested) {
66
+ return;
67
+ }
68
+ setOptimisticExpanded((prev) => !(prev ?? item.meta.isExpanded));
19
69
  onToggle(item);
20
70
  }, [item, onToggle]);
21
71
  // Omit ref для избежания ошибки типов у Tooltip
@@ -36,6 +86,8 @@ const useLogic = ({ isDisabled, disabledReason, }) => {
36
86
  tooltipProps,
37
87
  isDisabledByActions,
38
88
  isChevronActive,
89
+ isRowLoading: Boolean(isLoading && !isChildrenControl),
90
+ isRowError: Boolean(isError && !isChildrenControl),
39
91
  };
40
92
  };
41
93
  exports.useLogic = useLogic;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EndData = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const Typography_1 = require("../../Typography");
5
+ const Typography_1 = require("../../../Typography");
6
6
  const constants_1 = require("./constants");
7
7
  const EndData = ({ endOfScrollMsg = constants_1.END_OF_SCROLL_MESSAGE }) => ((0, jsx_runtime_1.jsx)(Typography_1.Typography, { children: endOfScrollMsg }));
8
8
  exports.EndData = EndData;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorMessage = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const Button_1 = require("../../Button");
6
- const Typography_1 = require("../../Typography");
5
+ const Button_1 = require("../../../Button");
6
+ const Typography_1 = require("../../../Typography");
7
7
  const constants_1 = require("./constants");
8
8
  const styles_1 = require("./styles");
9
9
  const ErrorMessage = ({ onRetry }) => ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { children: [(0, jsx_runtime_1.jsx)(Typography_1.Typography, { align: "center", children: constants_1.ERROR_MESSAGE }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onRetry, children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })] }));
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const Wrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Wrapper = void 0;
4
- const styled_1 = require("../../styled");
4
+ const styled_1 = require("../../../styled");
5
5
  exports.Wrapper = styled_1.styled.div `
6
6
  display: grid;
7
7
  grid-template-columns: 100%;
@@ -11,7 +11,7 @@ exports.Wrapper = styled_1.styled.div `
11
11
 
12
12
  padding: ${({ theme }) => theme.spacing(2, 0)};
13
13
 
14
- ${({ theme }) => theme.breakpoints.down('sm')} {
14
+ ${({ theme }) => theme.breakpoints.down('mobile')} {
15
15
  gap: ${({ theme }) => theme.spacing(4)};
16
16
  justify-items: normal;
17
17
 
@@ -0,0 +1,10 @@
1
+ import type { ContextProp } from 'react-virtuoso';
2
+ import type { ListFooterContext } from './types';
3
+ /**
4
+ * Футер списка для Virtuoso.
5
+ *
6
+ * Вынесен в модуль и передаётся в `components.Footer`: inline-компонент в
7
+ * `components` на каждый рендер даёт новый тип, и React размонтирует футер.
8
+ * Данные приходят через `context` Virtuoso
9
+ */
10
+ export declare const ListFooter: ({ context }: ContextProp<ListFooterContext>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListFooter = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const Loader_1 = require("../../Loader");
6
+ const EndData_1 = require("./EndData");
7
+ const ErrorMessage_1 = require("./ErrorMessage");
8
+ const styles_1 = require("./styles");
9
+ /**
10
+ * Футер списка для Virtuoso.
11
+ *
12
+ * Вынесен в модуль и передаётся в `components.Footer`: inline-компонент в
13
+ * `components` на каждый рендер даёт новый тип, и React размонтирует футер.
14
+ * Данные приходят через `context` Virtuoso
15
+ */
16
+ const ListFooter = ({ context }) => {
17
+ const { isLoading, isError, isEndReached, endOfScrollMsg, onRetry } = context;
18
+ if (isLoading) {
19
+ return ((0, jsx_runtime_1.jsx)(styles_1.Footer, { children: (0, jsx_runtime_1.jsx)(Loader_1.Loader, {}) }));
20
+ }
21
+ if (isError) {
22
+ return ((0, jsx_runtime_1.jsx)(styles_1.Footer, { children: (0, jsx_runtime_1.jsx)(ErrorMessage_1.ErrorMessage, { onRetry: onRetry }) }));
23
+ }
24
+ if (isEndReached) {
25
+ return ((0, jsx_runtime_1.jsx)(styles_1.Footer, { children: (0, jsx_runtime_1.jsx)(EndData_1.EndData, { endOfScrollMsg: endOfScrollMsg }) }));
26
+ }
27
+ return (0, jsx_runtime_1.jsx)(styles_1.FooterDummy, {});
28
+ };
29
+ exports.ListFooter = ListFooter;
@@ -0,0 +1,2 @@
1
+ export * from './ListFooter';
2
+ export type { ListFooterContext } from './types';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ListFooter"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FooterDummy = exports.Footer = void 0;
4
- const styled_1 = require("../styled");
4
+ const styled_1 = require("../../styled");
5
5
  exports.Footer = styled_1.styled.footer `
6
6
  display: flex;
7
7
  flex-shrink: 0;
@@ -0,0 +1,22 @@
1
+ export type ListFooterContext = {
2
+ /**
3
+ * Флаг состояния загрузки
4
+ */
5
+ isLoading?: boolean;
6
+ /**
7
+ * Флаг состояния ошибки
8
+ */
9
+ isError?: boolean;
10
+ /**
11
+ * Флаг достижения конца списка
12
+ */
13
+ isEndReached?: boolean;
14
+ /**
15
+ * Сообщение, отображаемое при достижении конца списка
16
+ */
17
+ endOfScrollMsg?: string;
18
+ /**
19
+ * Функция обработки нажатия на кнопку "Повторить запрос"
20
+ */
21
+ onRetry: () => void;
22
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,14 @@
1
1
  import { type RefObject } from 'react';
2
2
  type Props = {
3
- isActive: boolean;
3
+ /**
4
+ * Контейнер со скроллом
5
+ */
4
6
  scrollRef: RefObject<HTMLElement | null>;
7
+ /**
8
+ * Ref кнопки. Скролл списка переключает её видимость через classname
9
+ */
10
+ buttonRef: RefObject<HTMLButtonElement | null>;
5
11
  handleScrollToTop: () => void;
6
12
  };
7
- export declare const OnTopButton: ({ isActive, scrollRef, handleScrollToTop, }: Props) => import("react").ReactPortal | null;
13
+ export declare const OnTopButton: ({ scrollRef, buttonRef, handleScrollToTop, }: Props) => import("react").ReactPortal | null;
8
14
  export {};
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OnTopButton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_dom_1 = require("react-dom");
6
- const ScrollToTopButton_1 = require("../../ScrollToTopButton");
7
- const OnTopButton = ({ isActive, scrollRef, handleScrollToTop, }) => {
6
+ const constants_1 = require("../constants");
7
+ const styles_1 = require("./styles");
8
+ const OnTopButton = ({ scrollRef, buttonRef, handleScrollToTop, }) => {
8
9
  const parentElement = scrollRef?.current?.parentElement;
9
- if (isActive && parentElement) {
10
- return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(ScrollToTopButton_1.ScrollToTopButton, { onClick: handleScrollToTop }), parentElement);
10
+ if (!parentElement) {
11
+ return null;
11
12
  }
12
- return null;
13
+ return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(styles_1.StyledScrollToTopButton, { ref: buttonRef, className: constants_1.infiniteTreeListClassnames.scrollToTopButton, onClick: handleScrollToTop }), parentElement);
13
14
  };
14
15
  exports.OnTopButton = OnTopButton;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledScrollToTopButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<import("../../ScrollToTopButton").ScrollToTopButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ }, {}, {}>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StyledScrollToTopButton = void 0;
4
+ const ScrollToTopButton_1 = require("../../ScrollToTopButton");
5
+ const styled_1 = require("../../styled");
6
+ const constants_1 = require("../constants");
7
+ exports.StyledScrollToTopButton = (0, styled_1.styled)(ScrollToTopButton_1.ScrollToTopButton) `
8
+ display: none;
9
+
10
+ &.${constants_1.infiniteTreeListClassnames.visibleScrollToTopButton} {
11
+ display: inline-flex;
12
+ }
13
+ `;
@@ -0,0 +1,23 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { FlattenTree, InfiniteTreeListData } from '../../../types';
3
+ type CustomParentWrapperProps = {
4
+ /**
5
+ * Строка узла с подгружаемыми дочерними элементами
6
+ */
7
+ item: FlattenTree<InfiniteTreeListData>;
8
+ /**
9
+ * Рендер-функция строки родителя из props списка
10
+ */
11
+ renderParent: (item: FlattenTree<InfiniteTreeListData>) => ReactNode;
12
+ };
13
+ /**
14
+ * То же, что `CustomItemWrapper`, но для узлов с подгружаемыми дочерними
15
+ * элементами.
16
+ *
17
+ * Отдельный компонент, а не ветка внутри `CustomItemWrapper`: хуки из
18
+ * `renderItem` и `renderParent` ложатся в hook-list вызвавшего компонента, и
19
+ * смена ветки меняла бы их количество между рендерами — React упал бы с
20
+ * `Rendered fewer hooks than expected`
21
+ */
22
+ export declare const CustomParentWrapper: import("react").MemoExoticComponent<({ item, renderParent }: CustomParentWrapperProps) => import("react/jsx-runtime").JSX.Element>;
23
+ export {};
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomParentWrapper = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ /**
7
+ * То же, что `CustomItemWrapper`, но для узлов с подгружаемыми дочерними
8
+ * элементами.
9
+ *
10
+ * Отдельный компонент, а не ветка внутри `CustomItemWrapper`: хуки из
11
+ * `renderItem` и `renderParent` ложатся в hook-list вызвавшего компонента, и
12
+ * смена ветки меняла бы их количество между рендерами — React упал бы с
13
+ * `Rendered fewer hooks than expected`
14
+ */
15
+ exports.CustomParentWrapper = (0, react_1.memo)(({ item, renderParent }) => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: renderParent(item) })));
@@ -0,0 +1 @@
1
+ export * from './CustomParentWrapper';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CustomParentWrapper"), exports);
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { ItemProps } from './types';
3
+ /**
4
+ * Строка одного узла с подгружаемыми дочерними элементами.
5
+ *
6
+ * В строке виртуализации не живёт: рисуется порталом в свой постоянный
7
+ * контейнер, а контейнер `TreeItem` переносит в строку скролла, пока узел на
8
+ * экране
9
+ */
10
+ export declare const Item: import("react").MemoExoticComponent<(props: ItemProps) => import("react").ReactPortal | null>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Item = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const react_dom_1 = require("react-dom");
7
+ const constants_1 = require("../../constants");
8
+ const InfiniteTreeListItem_1 = require("../../InfiniteTreeListItem");
9
+ const styles_1 = require("../../TreeItem/styles");
10
+ const CustomParentWrapper_1 = require("./CustomParentWrapper");
11
+ const useLogic_1 = require("./useLogic");
12
+ /**
13
+ * Строка одного узла с подгружаемыми дочерними элементами.
14
+ *
15
+ * В строке виртуализации не живёт: рисуется порталом в свой постоянный
16
+ * контейнер, а контейнер `TreeItem` переносит в строку скролла, пока узел на
17
+ * экране
18
+ */
19
+ exports.Item = (0, react_1.memo)((props) => {
20
+ const { nodeId, slot, cssVars, parent, renderParent, onToggle } = (0, useLogic_1.useLogic)(props);
21
+ if (!slot) {
22
+ return null;
23
+ }
24
+ return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(InfiniteTreeListItem_1.TreeListItemContextProvider, { item: parent, onToggle: onToggle, children: (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { id: nodeId, className: constants_1.infiniteTreeListClassnames.row, style: cssVars, children: (0, jsx_runtime_1.jsx)(CustomParentWrapper_1.CustomParentWrapper, { item: parent, renderParent: renderParent }) }) }), slot);
25
+ });
@@ -0,0 +1,2 @@
1
+ export * from './Item';
2
+ export * from './types';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Item"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,8 @@
1
+ import type { FlattenTree, InfiniteTreeListData } from '../../types';
2
+ export type ItemProps = {
3
+ /**
4
+ * Узел с подгружаемыми дочерними элементами, строку которого нужно держать
5
+ * смонтированной
6
+ */
7
+ parent: FlattenTree<InfiniteTreeListData>;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './useLogic';