@astral/ui 4.13.0 → 4.14.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 (327) hide show
  1. package/components/CardGridInfinite/Card/Card.d.ts +3 -0
  2. package/components/CardGridInfinite/Card/Card.js +12 -0
  3. package/components/CardGridInfinite/Card/CardActionContext/CardActionContext.d.ts +10 -0
  4. package/components/CardGridInfinite/Card/CardActionContext/CardActionContext.js +8 -0
  5. package/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/CardActionContextProvider.d.ts +9 -0
  6. package/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/CardActionContextProvider.js +26 -0
  7. package/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/index.d.ts +1 -0
  8. package/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/index.js +1 -0
  9. package/components/CardGridInfinite/Card/CardActionContext/index.d.ts +2 -0
  10. package/components/CardGridInfinite/Card/CardActionContext/index.js +2 -0
  11. package/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.d.ts +7 -0
  12. package/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.js +21 -0
  13. package/components/CardGridInfinite/Card/SecondaryActionButton/index.d.ts +1 -0
  14. package/components/CardGridInfinite/Card/SecondaryActionButton/index.js +1 -0
  15. package/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +12 -0
  16. package/components/CardGridInfinite/Card/SecondaryActionButton/styles.js +5 -0
  17. package/components/CardGridInfinite/Card/index.d.ts +3 -0
  18. package/components/CardGridInfinite/Card/index.js +2 -0
  19. package/components/CardGridInfinite/Card/styles.d.ts +16 -0
  20. package/components/CardGridInfinite/Card/styles.js +22 -0
  21. package/components/CardGridInfinite/Card/types.d.ts +32 -0
  22. package/components/CardGridInfinite/Card/types.js +1 -0
  23. package/components/CardGridInfinite/Card/useLogic/index.d.ts +1 -0
  24. package/components/CardGridInfinite/Card/useLogic/index.js +1 -0
  25. package/components/CardGridInfinite/Card/useLogic/useLogic.d.ts +7 -0
  26. package/components/CardGridInfinite/Card/useLogic/useLogic.js +7 -0
  27. package/components/CardGridInfinite/CardGridInfinite.d.ts +3 -0
  28. package/components/CardGridInfinite/CardGridInfinite.js +21 -0
  29. package/components/CardGridInfinite/CardGridMainActions/Action/Action.d.ts +3 -0
  30. package/components/CardGridInfinite/CardGridMainActions/Action/Action.js +16 -0
  31. package/components/CardGridInfinite/CardGridMainActions/Action/index.d.ts +1 -0
  32. package/components/CardGridInfinite/CardGridMainActions/Action/index.js +1 -0
  33. package/components/CardGridInfinite/CardGridMainActions/Action/types.d.ts +13 -0
  34. package/components/CardGridInfinite/CardGridMainActions/Action/types.js +1 -0
  35. package/components/CardGridInfinite/CardGridMainActions/Action/useLogic/index.d.ts +1 -0
  36. package/components/CardGridInfinite/CardGridMainActions/Action/useLogic/index.js +1 -0
  37. package/components/CardGridInfinite/CardGridMainActions/Action/useLogic/useLogic.d.ts +11 -0
  38. package/components/CardGridInfinite/CardGridMainActions/Action/useLogic/useLogic.js +16 -0
  39. package/components/CardGridInfinite/CardGridMainActions/CardGridMainActions.d.ts +30 -0
  40. package/components/CardGridInfinite/CardGridMainActions/CardGridMainActions.js +29 -0
  41. package/components/CardGridInfinite/CardGridMainActions/index.d.ts +4 -0
  42. package/components/CardGridInfinite/CardGridMainActions/index.js +4 -0
  43. package/components/CardGridInfinite/CardGridMainActions/styles.d.ts +5 -0
  44. package/components/CardGridInfinite/CardGridMainActions/styles.js +9 -0
  45. package/components/CardGridInfinite/CardGridMainActions/types.d.ts +44 -0
  46. package/components/CardGridInfinite/CardGridMainActions/types.js +1 -0
  47. package/components/CardGridInfinite/CardGridMainActions/utils/index.d.ts +1 -0
  48. package/components/CardGridInfinite/CardGridMainActions/utils/index.js +1 -0
  49. package/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/index.d.ts +1 -0
  50. package/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/index.js +1 -0
  51. package/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/replaceActionComponent.d.ts +8 -0
  52. package/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/replaceActionComponent.js +11 -0
  53. package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActions.d.ts +18 -0
  54. package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActions.js +34 -0
  55. package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/CardGridSecondaryActionsSkeleton.d.ts +2 -0
  56. package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/CardGridSecondaryActionsSkeleton.js +4 -0
  57. package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/index.d.ts +1 -0
  58. package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/index.js +1 -0
  59. package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.d.ts +9 -0
  60. package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.js +31 -0
  61. package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuContext.d.ts +12 -0
  62. package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuContext.js +5 -0
  63. package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/SecondaryActionsMenuProvider.d.ts +8 -0
  64. package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/SecondaryActionsMenuProvider.js +5 -0
  65. package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/index.d.ts +1 -0
  66. package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/index.js +1 -0
  67. package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/index.d.ts +2 -0
  68. package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/index.js +2 -0
  69. package/components/CardGridInfinite/CardGridSecondaryAction/index.d.ts +4 -0
  70. package/components/CardGridInfinite/CardGridSecondaryAction/index.js +3 -0
  71. package/components/CardGridInfinite/CardGridSecondaryAction/types.d.ts +59 -0
  72. package/components/CardGridInfinite/CardGridSecondaryAction/types.js +1 -0
  73. package/components/CardGridInfinite/EndData/EndData.d.ts +6 -0
  74. package/components/CardGridInfinite/EndData/EndData.js +4 -0
  75. package/components/CardGridInfinite/EndData/constants.d.ts +1 -0
  76. package/components/CardGridInfinite/EndData/constants.js +1 -0
  77. package/components/CardGridInfinite/EndData/index.d.ts +1 -0
  78. package/components/CardGridInfinite/EndData/index.js +1 -0
  79. package/components/CardGridInfinite/ErrorMessage/ErrorMessage.d.ts +6 -0
  80. package/components/CardGridInfinite/ErrorMessage/ErrorMessage.js +6 -0
  81. package/components/CardGridInfinite/ErrorMessage/constants.d.ts +1 -0
  82. package/components/CardGridInfinite/ErrorMessage/constants.js +1 -0
  83. package/components/CardGridInfinite/ErrorMessage/index.d.ts +1 -0
  84. package/components/CardGridInfinite/ErrorMessage/index.js +1 -0
  85. package/components/CardGridInfinite/ErrorMessage/styles.d.ts +5 -0
  86. package/components/CardGridInfinite/ErrorMessage/styles.js +17 -0
  87. package/components/CardGridInfinite/Footer/Footer.d.ts +10 -0
  88. package/components/CardGridInfinite/Footer/Footer.js +12 -0
  89. package/components/CardGridInfinite/Footer/index.d.ts +1 -0
  90. package/components/CardGridInfinite/Footer/index.js +1 -0
  91. package/components/CardGridInfinite/Footer/styles.d.ts +9 -0
  92. package/components/CardGridInfinite/Footer/styles.js +16 -0
  93. package/components/CardGridInfinite/List/List.d.ts +8 -0
  94. package/components/CardGridInfinite/List/List.js +4 -0
  95. package/components/CardGridInfinite/List/index.d.ts +1 -0
  96. package/components/CardGridInfinite/List/index.js +1 -0
  97. package/components/CardGridInfinite/List/styles.d.ts +10 -0
  98. package/components/CardGridInfinite/List/styles.js +10 -0
  99. package/components/CardGridInfinite/NoDataPlaceholder/NoDataPlaceholder.d.ts +6 -0
  100. package/components/CardGridInfinite/NoDataPlaceholder/NoDataPlaceholder.js +10 -0
  101. package/components/CardGridInfinite/NoDataPlaceholder/constants.d.ts +1 -0
  102. package/components/CardGridInfinite/NoDataPlaceholder/constants.js +1 -0
  103. package/components/CardGridInfinite/NoDataPlaceholder/index.d.ts +1 -0
  104. package/components/CardGridInfinite/NoDataPlaceholder/index.js +1 -0
  105. package/components/CardGridInfinite/OnTopButton/OnTopButton.d.ts +8 -0
  106. package/components/CardGridInfinite/OnTopButton/OnTopButton.js +10 -0
  107. package/components/CardGridInfinite/OnTopButton/index.d.ts +1 -0
  108. package/components/CardGridInfinite/OnTopButton/index.js +1 -0
  109. package/components/CardGridInfinite/OnTopButton/styles.d.ts +3 -0
  110. package/components/CardGridInfinite/OnTopButton/styles.js +9 -0
  111. package/components/CardGridInfinite/SkeletonGrid/SkeletonGrid.d.ts +11 -0
  112. package/components/CardGridInfinite/SkeletonGrid/SkeletonGrid.js +5 -0
  113. package/components/CardGridInfinite/SkeletonGrid/index.d.ts +1 -0
  114. package/components/CardGridInfinite/SkeletonGrid/index.js +1 -0
  115. package/components/CardGridInfinite/SkeletonGrid/styles.d.ts +12 -0
  116. package/components/CardGridInfinite/SkeletonGrid/styles.js +5 -0
  117. package/components/CardGridInfinite/constants.d.ts +7 -0
  118. package/components/CardGridInfinite/constants.js +8 -0
  119. package/components/CardGridInfinite/hooks/index.d.ts +1 -0
  120. package/components/CardGridInfinite/hooks/index.js +1 -0
  121. package/components/CardGridInfinite/hooks/useBlockingActions/index.d.ts +1 -0
  122. package/components/CardGridInfinite/hooks/useBlockingActions/index.js +1 -0
  123. package/components/CardGridInfinite/hooks/useBlockingActions/useBlockingActions.d.ts +9 -0
  124. package/components/CardGridInfinite/hooks/useBlockingActions/useBlockingActions.js +23 -0
  125. package/components/CardGridInfinite/index.d.ts +8 -0
  126. package/components/CardGridInfinite/index.js +4 -0
  127. package/components/CardGridInfinite/styles.d.ts +13 -0
  128. package/components/CardGridInfinite/styles.js +26 -0
  129. package/components/CardGridInfinite/types.d.ts +98 -0
  130. package/components/CardGridInfinite/types.js +1 -0
  131. package/components/CardGridInfinite/useLogic/index.d.ts +1 -0
  132. package/components/CardGridInfinite/useLogic/index.js +1 -0
  133. package/components/CardGridInfinite/useLogic/useLogic.d.ts +41 -0
  134. package/components/CardGridInfinite/useLogic/useLogic.js +73 -0
  135. package/components/DashboardLayout/Sidebar/styles.d.ts +1 -4
  136. package/components/DatePicker/styles.d.ts +1 -4
  137. package/components/DateRangePicker/styles.d.ts +1 -4
  138. package/components/Description/styles.js +1 -1
  139. package/components/InfiniteTreeList/useLogic/useLogic.js +2 -2
  140. package/components/PageLayout/PageContent/styles.js +5 -2
  141. package/components/PageLayout/PageLayoutContainer/index.d.ts +1 -0
  142. package/components/PageLayout/PageLayoutContainer/index.js +1 -0
  143. package/components/PageLayout/PageLayoutContainer/styles.d.ts +1 -4
  144. package/components/Paper/Paper.d.ts +1 -1
  145. package/components/Paper/Paper.js +4 -3
  146. package/components/Tag/styles.js +2 -0
  147. package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/useScrollManagement.d.ts +2 -1
  148. package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/useScrollManagement.js +13 -3
  149. package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/useStickyButton.js +2 -2
  150. package/components/hooks/index.d.ts +1 -0
  151. package/components/hooks/index.js +1 -0
  152. package/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +4 -3
  153. package/components/placeholders/LoadingPlaceholder/constants.d.ts +3 -0
  154. package/components/placeholders/LoadingPlaceholder/constants.js +4 -0
  155. package/components/placeholders/LoadingPlaceholder/index.d.ts +1 -0
  156. package/components/placeholders/LoadingPlaceholder/index.js +1 -0
  157. package/node/components/CardGridInfinite/Card/Card.d.ts +3 -0
  158. package/node/components/CardGridInfinite/Card/Card.js +16 -0
  159. package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContext.d.ts +10 -0
  160. package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContext.js +11 -0
  161. package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/CardActionContextProvider.d.ts +9 -0
  162. package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/CardActionContextProvider.js +30 -0
  163. package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/index.d.ts +1 -0
  164. package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/index.js +17 -0
  165. package/node/components/CardGridInfinite/Card/CardActionContext/index.d.ts +2 -0
  166. package/node/components/CardGridInfinite/Card/CardActionContext/index.js +18 -0
  167. package/node/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.d.ts +7 -0
  168. package/node/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.js +25 -0
  169. package/node/components/CardGridInfinite/Card/SecondaryActionButton/index.d.ts +1 -0
  170. package/node/components/CardGridInfinite/Card/SecondaryActionButton/index.js +17 -0
  171. package/node/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +12 -0
  172. package/node/components/CardGridInfinite/Card/SecondaryActionButton/styles.js +8 -0
  173. package/node/components/CardGridInfinite/Card/index.d.ts +3 -0
  174. package/node/components/CardGridInfinite/Card/index.js +18 -0
  175. package/node/components/CardGridInfinite/Card/styles.d.ts +16 -0
  176. package/node/components/CardGridInfinite/Card/styles.js +25 -0
  177. package/node/components/CardGridInfinite/Card/types.d.ts +32 -0
  178. package/node/components/CardGridInfinite/Card/types.js +2 -0
  179. package/node/components/CardGridInfinite/Card/useLogic/index.d.ts +1 -0
  180. package/node/components/CardGridInfinite/Card/useLogic/index.js +17 -0
  181. package/node/components/CardGridInfinite/Card/useLogic/useLogic.d.ts +7 -0
  182. package/node/components/CardGridInfinite/Card/useLogic/useLogic.js +11 -0
  183. package/node/components/CardGridInfinite/CardGridInfinite.d.ts +3 -0
  184. package/node/components/CardGridInfinite/CardGridInfinite.js +25 -0
  185. package/node/components/CardGridInfinite/CardGridMainActions/Action/Action.d.ts +3 -0
  186. package/node/components/CardGridInfinite/CardGridMainActions/Action/Action.js +20 -0
  187. package/node/components/CardGridInfinite/CardGridMainActions/Action/index.d.ts +1 -0
  188. package/node/components/CardGridInfinite/CardGridMainActions/Action/index.js +17 -0
  189. package/node/components/CardGridInfinite/CardGridMainActions/Action/types.d.ts +13 -0
  190. package/node/components/CardGridInfinite/CardGridMainActions/Action/types.js +2 -0
  191. package/node/components/CardGridInfinite/CardGridMainActions/Action/useLogic/index.d.ts +1 -0
  192. package/node/components/CardGridInfinite/CardGridMainActions/Action/useLogic/index.js +17 -0
  193. package/node/components/CardGridInfinite/CardGridMainActions/Action/useLogic/useLogic.d.ts +11 -0
  194. package/node/components/CardGridInfinite/CardGridMainActions/Action/useLogic/useLogic.js +20 -0
  195. package/node/components/CardGridInfinite/CardGridMainActions/CardGridMainActions.d.ts +30 -0
  196. package/node/components/CardGridInfinite/CardGridMainActions/CardGridMainActions.js +33 -0
  197. package/node/components/CardGridInfinite/CardGridMainActions/index.d.ts +4 -0
  198. package/node/components/CardGridInfinite/CardGridMainActions/index.js +22 -0
  199. package/node/components/CardGridInfinite/CardGridMainActions/styles.d.ts +5 -0
  200. package/node/components/CardGridInfinite/CardGridMainActions/styles.js +12 -0
  201. package/node/components/CardGridInfinite/CardGridMainActions/types.d.ts +44 -0
  202. package/node/components/CardGridInfinite/CardGridMainActions/types.js +2 -0
  203. package/node/components/CardGridInfinite/CardGridMainActions/utils/index.d.ts +1 -0
  204. package/node/components/CardGridInfinite/CardGridMainActions/utils/index.js +17 -0
  205. package/node/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/index.d.ts +1 -0
  206. package/node/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/index.js +17 -0
  207. package/node/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/replaceActionComponent.d.ts +8 -0
  208. package/node/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/replaceActionComponent.js +15 -0
  209. package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActions.d.ts +18 -0
  210. package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActions.js +38 -0
  211. package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/CardGridSecondaryActionsSkeleton.d.ts +2 -0
  212. package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/CardGridSecondaryActionsSkeleton.js +8 -0
  213. package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/index.d.ts +1 -0
  214. package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/index.js +17 -0
  215. package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.d.ts +9 -0
  216. package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.js +34 -0
  217. package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuContext.d.ts +12 -0
  218. package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuContext.js +8 -0
  219. package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/SecondaryActionsMenuProvider.d.ts +8 -0
  220. package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/SecondaryActionsMenuProvider.js +9 -0
  221. package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/index.d.ts +1 -0
  222. package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/index.js +5 -0
  223. package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/index.d.ts +2 -0
  224. package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/index.js +18 -0
  225. package/node/components/CardGridInfinite/CardGridSecondaryAction/index.d.ts +4 -0
  226. package/node/components/CardGridInfinite/CardGridSecondaryAction/index.js +22 -0
  227. package/node/components/CardGridInfinite/CardGridSecondaryAction/types.d.ts +59 -0
  228. package/node/components/CardGridInfinite/CardGridSecondaryAction/types.js +2 -0
  229. package/node/components/CardGridInfinite/EndData/EndData.d.ts +6 -0
  230. package/node/components/CardGridInfinite/EndData/EndData.js +8 -0
  231. package/node/components/CardGridInfinite/EndData/constants.d.ts +1 -0
  232. package/node/components/CardGridInfinite/EndData/constants.js +4 -0
  233. package/node/components/CardGridInfinite/EndData/index.d.ts +1 -0
  234. package/node/components/CardGridInfinite/EndData/index.js +17 -0
  235. package/node/components/CardGridInfinite/ErrorMessage/ErrorMessage.d.ts +6 -0
  236. package/node/components/CardGridInfinite/ErrorMessage/ErrorMessage.js +10 -0
  237. package/node/components/CardGridInfinite/ErrorMessage/constants.d.ts +1 -0
  238. package/node/components/CardGridInfinite/ErrorMessage/constants.js +4 -0
  239. package/node/components/CardGridInfinite/ErrorMessage/index.d.ts +1 -0
  240. package/node/components/CardGridInfinite/ErrorMessage/index.js +17 -0
  241. package/node/components/CardGridInfinite/ErrorMessage/styles.d.ts +5 -0
  242. package/node/components/CardGridInfinite/ErrorMessage/styles.js +20 -0
  243. package/node/components/CardGridInfinite/Footer/Footer.d.ts +10 -0
  244. package/node/components/CardGridInfinite/Footer/Footer.js +16 -0
  245. package/node/components/CardGridInfinite/Footer/index.d.ts +1 -0
  246. package/node/components/CardGridInfinite/Footer/index.js +17 -0
  247. package/node/components/CardGridInfinite/Footer/styles.d.ts +9 -0
  248. package/node/components/CardGridInfinite/Footer/styles.js +19 -0
  249. package/node/components/CardGridInfinite/List/List.d.ts +8 -0
  250. package/node/components/CardGridInfinite/List/List.js +7 -0
  251. package/node/components/CardGridInfinite/List/index.d.ts +1 -0
  252. package/node/components/CardGridInfinite/List/index.js +17 -0
  253. package/node/components/CardGridInfinite/List/styles.d.ts +10 -0
  254. package/node/components/CardGridInfinite/List/styles.js +13 -0
  255. package/node/components/CardGridInfinite/NoDataPlaceholder/NoDataPlaceholder.d.ts +6 -0
  256. package/node/components/CardGridInfinite/NoDataPlaceholder/NoDataPlaceholder.js +14 -0
  257. package/node/components/CardGridInfinite/NoDataPlaceholder/constants.d.ts +1 -0
  258. package/node/components/CardGridInfinite/NoDataPlaceholder/constants.js +4 -0
  259. package/node/components/CardGridInfinite/NoDataPlaceholder/index.d.ts +1 -0
  260. package/node/components/CardGridInfinite/NoDataPlaceholder/index.js +17 -0
  261. package/node/components/CardGridInfinite/OnTopButton/OnTopButton.d.ts +8 -0
  262. package/node/components/CardGridInfinite/OnTopButton/OnTopButton.js +14 -0
  263. package/node/components/CardGridInfinite/OnTopButton/index.d.ts +1 -0
  264. package/node/components/CardGridInfinite/OnTopButton/index.js +17 -0
  265. package/node/components/CardGridInfinite/OnTopButton/styles.d.ts +3 -0
  266. package/node/components/CardGridInfinite/OnTopButton/styles.js +12 -0
  267. package/node/components/CardGridInfinite/SkeletonGrid/SkeletonGrid.d.ts +11 -0
  268. package/node/components/CardGridInfinite/SkeletonGrid/SkeletonGrid.js +9 -0
  269. package/node/components/CardGridInfinite/SkeletonGrid/index.d.ts +1 -0
  270. package/node/components/CardGridInfinite/SkeletonGrid/index.js +5 -0
  271. package/node/components/CardGridInfinite/SkeletonGrid/styles.d.ts +12 -0
  272. package/node/components/CardGridInfinite/SkeletonGrid/styles.js +8 -0
  273. package/node/components/CardGridInfinite/constants.d.ts +7 -0
  274. package/node/components/CardGridInfinite/constants.js +11 -0
  275. package/node/components/CardGridInfinite/hooks/index.d.ts +1 -0
  276. package/node/components/CardGridInfinite/hooks/index.js +17 -0
  277. package/node/components/CardGridInfinite/hooks/useBlockingActions/index.d.ts +1 -0
  278. package/node/components/CardGridInfinite/hooks/useBlockingActions/index.js +17 -0
  279. package/node/components/CardGridInfinite/hooks/useBlockingActions/useBlockingActions.d.ts +9 -0
  280. package/node/components/CardGridInfinite/hooks/useBlockingActions/useBlockingActions.js +27 -0
  281. package/node/components/CardGridInfinite/index.d.ts +8 -0
  282. package/node/components/CardGridInfinite/index.js +13 -0
  283. package/node/components/CardGridInfinite/styles.d.ts +13 -0
  284. package/node/components/CardGridInfinite/styles.js +29 -0
  285. package/node/components/CardGridInfinite/types.d.ts +98 -0
  286. package/node/components/CardGridInfinite/types.js +2 -0
  287. package/node/components/CardGridInfinite/useLogic/index.d.ts +1 -0
  288. package/node/components/CardGridInfinite/useLogic/index.js +17 -0
  289. package/node/components/CardGridInfinite/useLogic/useLogic.d.ts +41 -0
  290. package/node/components/CardGridInfinite/useLogic/useLogic.js +77 -0
  291. package/node/components/DashboardLayout/Sidebar/styles.d.ts +1 -4
  292. package/node/components/DatePicker/styles.d.ts +1 -4
  293. package/node/components/DateRangePicker/styles.d.ts +1 -4
  294. package/node/components/Description/styles.js +1 -1
  295. package/node/components/InfiniteTreeList/useLogic/useLogic.js +3 -3
  296. package/node/components/PageLayout/PageContent/styles.js +5 -2
  297. package/node/components/PageLayout/PageLayoutContainer/index.d.ts +1 -0
  298. package/node/components/PageLayout/PageLayoutContainer/index.js +3 -0
  299. package/node/components/PageLayout/PageLayoutContainer/styles.d.ts +1 -4
  300. package/node/components/Paper/Paper.d.ts +1 -1
  301. package/node/components/Paper/Paper.js +4 -4
  302. package/node/components/Tag/styles.js +2 -0
  303. package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/useScrollManagement.d.ts +2 -1
  304. package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/useScrollManagement.js +13 -3
  305. package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/useStickyButton.js +3 -3
  306. package/node/components/hooks/index.d.ts +1 -0
  307. package/node/components/hooks/index.js +4 -1
  308. package/node/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +4 -3
  309. package/node/components/placeholders/LoadingPlaceholder/constants.d.ts +3 -0
  310. package/node/components/placeholders/LoadingPlaceholder/constants.js +7 -0
  311. package/node/components/placeholders/LoadingPlaceholder/index.d.ts +1 -0
  312. package/node/components/placeholders/LoadingPlaceholder/index.js +3 -0
  313. package/package.json +8 -1
  314. /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/index.d.ts +0 -0
  315. /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/index.js +0 -0
  316. /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/index.d.ts +0 -0
  317. /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/index.js +0 -0
  318. /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/index.d.ts +0 -0
  319. /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/index.js +0 -0
  320. /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/useStickyButton.d.ts +0 -0
  321. /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/index.d.ts +0 -0
  322. /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/index.js +0 -0
  323. /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/index.d.ts +0 -0
  324. /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/index.js +0 -0
  325. /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/index.d.ts +0 -0
  326. /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/index.js +0 -0
  327. /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/useStickyButton.d.ts +0 -0
@@ -0,0 +1 @@
1
+ export * from './CardGridSecondaryActionsSkeleton';
@@ -0,0 +1 @@
1
+ export * from './CardGridSecondaryActionsSkeleton';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const SkeletonWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const MenuItemWrapper: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,31 @@
1
+ import { skeletonClasses } from '@mui/material';
2
+ import { styled } from '../../../styles';
3
+ export const SkeletonWrapper = styled.div `
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: ${({ theme }) => theme.spacing(5)};
7
+
8
+ min-width: 140px;
9
+ min-height: 96px;
10
+ padding: ${({ theme }) => theme.microSpacing(5, 6)};
11
+
12
+ ${({ theme }) => theme.breakpoints.down('sm')} {
13
+ gap: 0;
14
+
15
+ padding: 0;
16
+ }
17
+ `;
18
+ export const MenuItemWrapper = styled.div `
19
+ & .${skeletonClasses.root} {
20
+ height: 12px;
21
+ }
22
+
23
+ ${({ theme }) => theme.breakpoints.down('sm')} {
24
+ min-height: 48px;
25
+ padding: ${({ theme }) => theme.spacing(2, 3, 3)};
26
+
27
+ & .${skeletonClasses.root} {
28
+ height: 20px;
29
+ }
30
+ }
31
+ `;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export type SecondaryActionsMenuContextProps = {
3
+ /**
4
+ * Флаг состояния меню (открыто-закрыто)
5
+ */
6
+ open: boolean;
7
+ /**
8
+ * Элемент, к которому привязано меню
9
+ */
10
+ anchorEl: HTMLButtonElement | null;
11
+ };
12
+ export declare const SecondaryActionsMenuContext: import("react").Context<SecondaryActionsMenuContextProps>;
@@ -0,0 +1,5 @@
1
+ import { createContext } from 'react';
2
+ export const SecondaryActionsMenuContext = createContext({
3
+ open: false,
4
+ anchorEl: null,
5
+ });
@@ -0,0 +1,8 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type SecondaryActionsMenuContextProps } from '../SecondaryActionsMenuContext';
3
+ type SecondaryActionsMenuProviderProps = {
4
+ children: ReactNode;
5
+ value: SecondaryActionsMenuContextProps;
6
+ };
7
+ export declare const SecondaryActionsMenuProvider: ({ children, value, }: SecondaryActionsMenuProviderProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { SecondaryActionsMenuContext, } from '../SecondaryActionsMenuContext';
3
+ export const SecondaryActionsMenuProvider = ({ children, value, }) => {
4
+ return (_jsx(SecondaryActionsMenuContext.Provider, { value: value, children: children }));
5
+ };
@@ -0,0 +1 @@
1
+ export { SecondaryActionsMenuProvider } from './SecondaryActionsMenuProvider';
@@ -0,0 +1 @@
1
+ export { SecondaryActionsMenuProvider } from './SecondaryActionsMenuProvider';
@@ -0,0 +1,2 @@
1
+ export * from './SecondaryActionsMenuContext';
2
+ export * from './SecondaryActionsMenuProvider';
@@ -0,0 +1,2 @@
1
+ export * from './SecondaryActionsMenuContext';
2
+ export * from './SecondaryActionsMenuProvider';
@@ -0,0 +1,4 @@
1
+ export type { CardGridSecondaryActionsProps, SecondaryAction } from './types';
2
+ export { SecondaryActionsMenuProvider, SecondaryActionsMenuContext, } from './SecondaryActionsMenuContext';
3
+ export * from './CardGridSecondaryActions';
4
+ export * from './CardGridSecondaryActionsSkeleton';
@@ -0,0 +1,3 @@
1
+ export { SecondaryActionsMenuProvider, SecondaryActionsMenuContext, } from './SecondaryActionsMenuContext';
2
+ export * from './CardGridSecondaryActions';
3
+ export * from './CardGridSecondaryActionsSkeleton';
@@ -0,0 +1,59 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ConfirmActionProps } from '../../ConfirmAction';
3
+ import type { MenuItemProps } from '../../MenuItem';
4
+ export type SecondaryAction<TItem> = MenuItemProps & {
5
+ /**
6
+ * Название действия
7
+ */
8
+ name: string;
9
+ /**
10
+ * Иконка действия
11
+ */
12
+ icon?: ReactNode;
13
+ /**
14
+ * Флаг показа выпадающего списка при клике
15
+ */
16
+ nested?: false;
17
+ /**
18
+ * Если `true`, при клике на кнопку будет вызываться подтверждение действия
19
+ */
20
+ needConfirm?: boolean;
21
+ /**
22
+ * Поясняющий текст для подтверждения действия
23
+ */
24
+ confirmText?: ConfirmActionProps['text'];
25
+ /**
26
+ * Параметры кнопки подтверждения действия
27
+ */
28
+ confirmButtonProps?: ConfirmActionProps['confirmButtonProps'];
29
+ /**
30
+ * Если true, блокирует взаимодействие с actions
31
+ */
32
+ isBlockingOperation?: boolean;
33
+ /**
34
+ * Причина блокировки действия
35
+ */
36
+ disabledReason?: string;
37
+ /**
38
+ * Обработчик действия
39
+ */
40
+ onClick?: (item: TItem) => void;
41
+ /**
42
+ * Если true, происходит загрузка
43
+ */
44
+ loading?: boolean;
45
+ };
46
+ export type CardGridSecondaryActionsProps<TItem> = {
47
+ /**
48
+ * Доп. действия отображаются в виде списка элементов меню (`MenuItem`)
49
+ */
50
+ actions?: SecondaryAction<TItem>[];
51
+ /**
52
+ * Флаг состояния загрузки, применяется когда actions подгружаются динамически
53
+ */
54
+ isLoading?: boolean;
55
+ /**
56
+ * Заголовок для мобильного drawer
57
+ */
58
+ mobileTitle: string;
59
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ endOfScrollMsg?: string;
4
+ };
5
+ export declare const EndData: ({ endOfScrollMsg }: Props) => JSX.Element;
6
+ export {};
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Typography } from '../../Typography';
3
+ import { END_OF_SCROLL_MESSAGE } from './constants';
4
+ export const EndData = ({ endOfScrollMsg = END_OF_SCROLL_MESSAGE }) => (_jsx(Typography, { children: endOfScrollMsg }));
@@ -0,0 +1 @@
1
+ export declare const END_OF_SCROLL_MESSAGE = "\u0412\u044B \u0434\u043E\u0441\u0442\u0438\u0433\u043B\u0438 \u043A\u043E\u043D\u0446\u0430 \u0441\u043F\u0438\u0441\u043A\u0430";
@@ -0,0 +1 @@
1
+ export const END_OF_SCROLL_MESSAGE = 'Вы достигли конца списка';
@@ -0,0 +1 @@
1
+ export * from './EndData';
@@ -0,0 +1 @@
1
+ export * from './EndData';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ onRetry: () => void;
4
+ };
5
+ export declare const ErrorMessage: ({ onRetry }: Props) => JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button } from '../../Button';
3
+ import { Typography } from '../../Typography';
4
+ import { ERROR_MESSAGE } from './constants';
5
+ import { Wrapper } from './styles';
6
+ export const ErrorMessage = ({ onRetry }) => (_jsxs(Wrapper, { children: [_jsx(Typography, { align: "center", children: ERROR_MESSAGE }), _jsx(Button, { onClick: onRetry, children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })] }));
@@ -0,0 +1 @@
1
+ export declare const ERROR_MESSAGE = "\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438";
@@ -0,0 +1 @@
1
+ export const ERROR_MESSAGE = 'Ошибка загрузки';
@@ -0,0 +1 @@
1
+ export * from './ErrorMessage';
@@ -0,0 +1 @@
1
+ export * from './ErrorMessage';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,17 @@
1
+ import { styled } from '../../styles';
2
+ export const Wrapper = styled.div `
3
+ display: grid;
4
+ grid-template-columns: 100%;
5
+ grid-template-rows: max-content max-content;
6
+ gap: ${({ theme }) => theme.spacing(2)};
7
+ justify-items: center;
8
+
9
+ padding: ${({ theme }) => theme.spacing(2, 0)};
10
+
11
+ ${({ theme }) => theme.breakpoints.down('sm')} {
12
+ gap: ${({ theme }) => theme.spacing(4)};
13
+ justify-items: normal;
14
+
15
+ padding: ${({ theme }) => theme.spacing(4)};
16
+ }
17
+ `;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ type FooterProps = {
3
+ isEndReached?: boolean;
4
+ isError?: boolean;
5
+ isLoading?: boolean;
6
+ onRetry: () => void;
7
+ endOfScrollMsg?: string;
8
+ };
9
+ export declare const Footer: ({ isEndReached, isError, isLoading, onRetry, endOfScrollMsg, }: FooterProps) => JSX.Element;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Loader } from '../../Loader';
3
+ import { EndData } from '../EndData';
4
+ import { ErrorMessage } from '../ErrorMessage';
5
+ import { FooterDummy, Wrapper } from './styles';
6
+ export const Footer = ({ isEndReached, isError, isLoading, onRetry, endOfScrollMsg, }) => {
7
+ if (!isLoading && !isError && !isEndReached) {
8
+ // Компонент нужен для того что бы избежать прилипания карточек к нижней границы контейнера virtuoso
9
+ return _jsx(FooterDummy, {});
10
+ }
11
+ return (_jsxs(Wrapper, { children: [isLoading && _jsx(Loader, {}), isError && _jsx(ErrorMessage, { onRetry: onRetry }), isEndReached && _jsx(EndData, { endOfScrollMsg: endOfScrollMsg })] }));
12
+ };
@@ -0,0 +1 @@
1
+ export * from './Footer';
@@ -0,0 +1 @@
1
+ export * from './Footer';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
6
+ export declare const FooterDummy: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,16 @@
1
+ import { styled } from '../../styles';
2
+ export const Wrapper = styled.footer `
3
+ display: flex;
4
+ flex-shrink: 0;
5
+ align-items: center;
6
+ justify-content: center;
7
+
8
+ min-height: 64px;
9
+ max-height: 76px;
10
+ margin-top: ${({ theme }) => theme.spacing(4)};
11
+
12
+ border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
13
+ `;
14
+ export const FooterDummy = styled.div `
15
+ min-height: 20px;
16
+ `;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { type ListProps as VirtuosoListProps } from 'react-virtuoso';
3
+ export declare const List: import("react").ForwardRefExoticComponent<Omit<VirtuosoListProps, "ref"> & {
4
+ desktopCardWidth: {
5
+ max: string;
6
+ min: string;
7
+ };
8
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
3
+ import { Wrapper } from './styles';
4
+ export const List = forwardRef(({ children, desktopCardWidth, ...restProps }, ref) => (_jsx(Wrapper, { ref: ref, "$gridTemplate": desktopCardWidth, ...restProps, children: children })));
@@ -0,0 +1 @@
1
+ export * from './List';
@@ -0,0 +1 @@
1
+ export * from './List';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ $gridTemplate: {
7
+ max: string;
8
+ min: string;
9
+ };
10
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,10 @@
1
+ import { styled } from '../../styles';
2
+ export const Wrapper = styled.div `
3
+ display: grid;
4
+ grid-template-columns: ${({ $gridTemplate }) => `repeat(auto-fill, minmax(${$gridTemplate.min}, ${$gridTemplate.max}))`};
5
+ gap: ${({ theme }) => theme.spacing(4)};
6
+
7
+ ${({ theme }) => theme.breakpoints.down('sm')} {
8
+ grid-template-columns: 100%;
9
+ }
10
+ `;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type NoDataPlaceholderProps = {
3
+ noDataImgSrc?: string;
4
+ };
5
+ export declare const NoDataPlaceholder: ({ noDataImgSrc }: NoDataPlaceholderProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useContext } from 'react';
3
+ import { ConfigContext } from '../../ConfigProvider';
4
+ import { Placeholder } from '../../placeholders';
5
+ import { NO_DATA_TEXT } from './constants';
6
+ export const NoDataPlaceholder = ({ noDataImgSrc }) => {
7
+ const { imagesMap } = useContext(ConfigContext);
8
+ const { noDataImgSrc: configProviderNoDataImgSrc } = imagesMap;
9
+ return (_jsx(Placeholder, { title: NO_DATA_TEXT, imgSrc: noDataImgSrc ?? configProviderNoDataImgSrc, size: "medium" }));
10
+ };
@@ -0,0 +1 @@
1
+ export declare const NO_DATA_TEXT = "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445";
@@ -0,0 +1 @@
1
+ export const NO_DATA_TEXT = 'Нет данных';
@@ -0,0 +1 @@
1
+ export * from './NoDataPlaceholder';
@@ -0,0 +1 @@
1
+ export * from './NoDataPlaceholder';
@@ -0,0 +1,8 @@
1
+ import { type RefObject } from 'react';
2
+ type Props = {
3
+ isActive: boolean;
4
+ scrollRef: RefObject<HTMLElement>;
5
+ handleScrollToTop: () => void;
6
+ };
7
+ export declare const OnTopButton: ({ isActive, scrollRef, handleScrollToTop, }: Props) => import("react").ReactPortal | null;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { createPortal } from 'react-dom';
3
+ import { StyledScrollToTopButton } from './styles';
4
+ export const OnTopButton = ({ isActive, scrollRef, handleScrollToTop, }) => {
5
+ const parentElement = scrollRef?.current?.parentElement;
6
+ if (isActive && parentElement) {
7
+ return createPortal(_jsx(StyledScrollToTopButton, { onClick: handleScrollToTop }), parentElement);
8
+ }
9
+ return null;
10
+ };
@@ -0,0 +1 @@
1
+ export * from './OnTopButton';
@@ -0,0 +1 @@
1
+ export * from './OnTopButton';
@@ -0,0 +1,3 @@
1
+ export declare const StyledScrollToTopButton: import("@emotion/styled").StyledComponent<import("../../ScrollToTopButton").ScrollToTopButtonProps & {
2
+ theme?: import("@emotion/react").Theme | undefined;
3
+ }, {}, {}>;
@@ -0,0 +1,9 @@
1
+ import { ScrollToTopButton } from '../../ScrollToTopButton';
2
+ import { styled } from '../../styles';
3
+ export const StyledScrollToTopButton = styled(ScrollToTopButton) `
4
+ right: ${({ theme }) => theme.microSpacing(15)};
5
+
6
+ ${({ theme }) => theme.breakpoints.down('sm')} {
7
+ display: none;
8
+ }
9
+ `;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { SkeletonConfig } from '../types';
3
+ type SkeletonGridProps = {
4
+ skeleton: SkeletonConfig;
5
+ desktopCardWidth: {
6
+ max: string;
7
+ min: string;
8
+ };
9
+ };
10
+ export declare const SkeletonGrid: ({ skeleton, desktopCardWidth, }: SkeletonGridProps) => JSX.Element;
11
+ export {};
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { StyledWrapper } from './styles';
3
+ export const SkeletonGrid = ({ skeleton, desktopCardWidth, }) => {
4
+ return (_jsx(StyledWrapper, { "$gridTemplate": desktopCardWidth, children: Array.from({ length: skeleton.count }).map((_, index) => (_jsx("div", { children: skeleton.component }, `${index}-${skeleton.count}`))) }));
5
+ };
@@ -0,0 +1 @@
1
+ export { SkeletonGrid } from './SkeletonGrid';
@@ -0,0 +1 @@
1
+ export { SkeletonGrid } from './SkeletonGrid';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ $gridTemplate: {
7
+ max: string;
8
+ min: string;
9
+ };
10
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ }, {}, {}>;
@@ -0,0 +1,5 @@
1
+ import { styled } from '../../styles';
2
+ import { Wrapper } from '../List/styles';
3
+ export const StyledWrapper = styled(Wrapper) `
4
+ width: 100%;
5
+ `;
@@ -0,0 +1,7 @@
1
+ export declare const VIRTUOSO_CONTAINER_ID = "virtuoso-container";
2
+ export declare const OVERSCAN = 30;
3
+ export declare const cardGridClassnames: {
4
+ list: string;
5
+ root: string;
6
+ loading: string;
7
+ };
@@ -0,0 +1,8 @@
1
+ import { createUIKitClassname } from '../utils';
2
+ export const VIRTUOSO_CONTAINER_ID = 'virtuoso-container';
3
+ export const OVERSCAN = 30;
4
+ export const cardGridClassnames = {
5
+ list: createUIKitClassname('card-grid__list'),
6
+ root: createUIKitClassname('card-grid'),
7
+ loading: createUIKitClassname('card-grid_loading'),
8
+ };
@@ -0,0 +1 @@
1
+ export * from './useBlockingActions';
@@ -0,0 +1 @@
1
+ export * from './useBlockingActions';
@@ -0,0 +1 @@
1
+ export * from './useBlockingActions';
@@ -0,0 +1 @@
1
+ export * from './useBlockingActions';
@@ -0,0 +1,9 @@
1
+ import type { CardGridMainAction } from '../../CardGridMainActions';
2
+ import { type SecondaryAction } from '../../CardGridSecondaryAction';
3
+ /**
4
+ * Хук для управления блокирующими операциями в CardGrid
5
+ */
6
+ export declare const useBlockingActions: <TAction>(actions?: CardGridMainAction<TAction>[] | SecondaryAction<TAction>[] | undefined) => {
7
+ isDisabled: boolean | undefined;
8
+ onActionClick: import("../../CardGridMainActions").CardGridActionHandler<TAction>;
9
+ };
@@ -0,0 +1,23 @@
1
+ import { useContext, useEffect } from 'react';
2
+ import { CardActionContext } from '../../Card';
3
+ /**
4
+ * Хук для управления блокирующими операциями в CardGrid
5
+ */
6
+ export const useBlockingActions = (actions) => {
7
+ const { isDisabled, onActionClick, setDisabledActions, isDisabledCard, removeDisabledActions, } = useContext(CardActionContext);
8
+ const blockingAction = [...(actions || [])].find((action) => 'isBlockingOperation' in action &&
9
+ action.isBlockingOperation &&
10
+ 'loading' in action &&
11
+ action.loading);
12
+ useEffect(() => {
13
+ if (blockingAction) {
14
+ setDisabledActions();
15
+ return;
16
+ }
17
+ removeDisabledActions();
18
+ }, [blockingAction]);
19
+ return {
20
+ isDisabled: isDisabled || isDisabledCard,
21
+ onActionClick,
22
+ };
23
+ };
@@ -0,0 +1,8 @@
1
+ export { CardGridInfinite } from './CardGridInfinite';
2
+ export { CardGridMainActions, replaceActionComponent, } from './CardGridMainActions';
3
+ export { CardGridSecondaryActions, CardGridSecondaryActionsSkeleton, } from './CardGridSecondaryAction';
4
+ export type { CardGridInfiniteProps, SkeletonConfig } from './types';
5
+ export type { CardGridMainActionsProps, CardGridActionHandler, CardGridMainAction, } from './CardGridMainActions';
6
+ export type { CardGridSecondaryActionsProps } from './CardGridSecondaryAction';
7
+ export { cardGridClassnames } from './constants';
8
+ export type { CardProps } from './Card';
@@ -0,0 +1,4 @@
1
+ export { CardGridInfinite } from './CardGridInfinite';
2
+ export { CardGridMainActions, replaceActionComponent, } from './CardGridMainActions';
3
+ export { CardGridSecondaryActions, CardGridSecondaryActionsSkeleton, } from './CardGridSecondaryAction';
4
+ export { cardGridClassnames } from './constants';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const ContentStateWrapper: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,26 @@
1
+ import { loadingPlaceholderClassnames } from '../placeholders';
2
+ import { styled } from '../styles';
3
+ import { cardGridClassnames } from './constants';
4
+ export const Wrapper = styled.div `
5
+ display: flex;
6
+ flex-direction: column;
7
+
8
+ height: 100%;
9
+ `;
10
+ export const ContentWrapper = styled.div `
11
+ display: flex;
12
+ flex-direction: column;
13
+
14
+ height: 100%;
15
+ `;
16
+ export const ContentStateWrapper = styled.div `
17
+ height: 100%;
18
+
19
+ &.${cardGridClassnames.loading} {
20
+ height: auto;
21
+ }
22
+
23
+ & .${loadingPlaceholderClassnames.root} {
24
+ justify-content: flex-start
25
+ }
26
+ `;