@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,18 @@
1
+ /// <reference types="react" />
2
+ import type { CardGridSecondaryActionsProps } from './types';
3
+ /**
4
+ * Компонент для отображения дополнительных действий в выпадающем меню.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <CardGridSecondaryActions
9
+ * actions={[
10
+ * { name: 'Дублировать', onClick: handleDuplicate },
11
+ * { name: 'Архивировать', onClick: handleArchive, disabled: !canArchive },
12
+ * { name: 'Экспортировать', onClick: handleExport }
13
+ * ]}
14
+ * isLoading={isActionsLoading}
15
+ * />
16
+ * ```
17
+ */
18
+ export declare const CardGridSecondaryActions: <TAction>({ actions, isLoading, mobileTitle, }: CardGridSecondaryActionsProps<TAction>) => JSX.Element;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardGridSecondaryActions = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const react_2 = require("react");
7
+ const Menu_1 = require("../../Menu");
8
+ const MenuItem_1 = require("../../MenuItem");
9
+ const hooks_1 = require("../hooks");
10
+ const CardGridSecondaryActionsSkeleton_1 = require("./CardGridSecondaryActionsSkeleton");
11
+ const SecondaryActionsMenuContext_1 = require("./SecondaryActionsMenuContext");
12
+ /**
13
+ * Компонент для отображения дополнительных действий в выпадающем меню.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * <CardGridSecondaryActions
18
+ * actions={[
19
+ * { name: 'Дублировать', onClick: handleDuplicate },
20
+ * { name: 'Архивировать', onClick: handleArchive, disabled: !canArchive },
21
+ * { name: 'Экспортировать', onClick: handleExport }
22
+ * ]}
23
+ * isLoading={isActionsLoading}
24
+ * />
25
+ * ```
26
+ */
27
+ const CardGridSecondaryActions = ({ actions, isLoading, mobileTitle, }) => {
28
+ const { onActionClick } = (0, hooks_1.useBlockingActions)(actions);
29
+ const { anchorEl, open } = (0, react_2.useContext)(SecondaryActionsMenuContext_1.SecondaryActionsMenuContext);
30
+ const renderActions = () => {
31
+ return actions?.map((action) => {
32
+ const { onClick, name, loading, isBlockingOperation, ...restProps } = action;
33
+ return ((0, react_1.createElement)(MenuItem_1.MenuItem, { ...restProps, key: name, tooltipPlacement: "left", onClick: onActionClick(onClick) }, name));
34
+ });
35
+ };
36
+ return ((0, jsx_runtime_1.jsx)(Menu_1.Menu, { open: open, title: mobileTitle, anchorEl: anchorEl, anchorOrigin: { vertical: 'bottom', horizontal: 'right' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, children: isLoading ? (0, jsx_runtime_1.jsx)(CardGridSecondaryActionsSkeleton_1.CardGridSecondaryActionsSkeleton, {}) : renderActions() }));
37
+ };
38
+ exports.CardGridSecondaryActions = CardGridSecondaryActions;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const CardGridSecondaryActionsSkeleton: () => JSX.Element;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardGridSecondaryActionsSkeleton = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const Skeleton_1 = require("../../../Skeleton");
6
+ const styles_1 = require("./styles");
7
+ const CardGridSecondaryActionsSkeleton = () => ((0, jsx_runtime_1.jsxs)(styles_1.SkeletonWrapper, { children: [(0, jsx_runtime_1.jsx)(styles_1.MenuItemWrapper, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { variant: "rounded", width: 110 }) }), (0, jsx_runtime_1.jsx)(styles_1.MenuItemWrapper, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { variant: "rounded", width: 60 }) }), (0, jsx_runtime_1.jsx)(styles_1.MenuItemWrapper, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { variant: "rounded", width: 90 }) })] }));
8
+ exports.CardGridSecondaryActionsSkeleton = CardGridSecondaryActionsSkeleton;
@@ -0,0 +1 @@
1
+ export * from './CardGridSecondaryActionsSkeleton';
@@ -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("./CardGridSecondaryActionsSkeleton"), exports);
@@ -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,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MenuItemWrapper = exports.SkeletonWrapper = void 0;
4
+ const material_1 = require("@mui/material");
5
+ const styles_1 = require("../../../styles");
6
+ exports.SkeletonWrapper = styles_1.styled.div `
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: ${({ theme }) => theme.spacing(5)};
10
+
11
+ min-width: 140px;
12
+ min-height: 96px;
13
+ padding: ${({ theme }) => theme.microSpacing(5, 6)};
14
+
15
+ ${({ theme }) => theme.breakpoints.down('sm')} {
16
+ gap: 0;
17
+
18
+ padding: 0;
19
+ }
20
+ `;
21
+ exports.MenuItemWrapper = styles_1.styled.div `
22
+ & .${material_1.skeletonClasses.root} {
23
+ height: 12px;
24
+ }
25
+
26
+ ${({ theme }) => theme.breakpoints.down('sm')} {
27
+ min-height: 48px;
28
+ padding: ${({ theme }) => theme.spacing(2, 3, 3)};
29
+
30
+ & .${material_1.skeletonClasses.root} {
31
+ height: 20px;
32
+ }
33
+ }
34
+ `;
@@ -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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecondaryActionsMenuContext = void 0;
4
+ const react_1 = require("react");
5
+ exports.SecondaryActionsMenuContext = (0, react_1.createContext)({
6
+ open: false,
7
+ anchorEl: null,
8
+ });
@@ -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,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecondaryActionsMenuProvider = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const SecondaryActionsMenuContext_1 = require("../SecondaryActionsMenuContext");
6
+ const SecondaryActionsMenuProvider = ({ children, value, }) => {
7
+ return ((0, jsx_runtime_1.jsx)(SecondaryActionsMenuContext_1.SecondaryActionsMenuContext.Provider, { value: value, children: children }));
8
+ };
9
+ exports.SecondaryActionsMenuProvider = SecondaryActionsMenuProvider;
@@ -0,0 +1 @@
1
+ export { SecondaryActionsMenuProvider } from './SecondaryActionsMenuProvider';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecondaryActionsMenuProvider = void 0;
4
+ var SecondaryActionsMenuProvider_1 = require("./SecondaryActionsMenuProvider");
5
+ Object.defineProperty(exports, "SecondaryActionsMenuProvider", { enumerable: true, get: function () { return SecondaryActionsMenuProvider_1.SecondaryActionsMenuProvider; } });
@@ -0,0 +1,2 @@
1
+ export * from './SecondaryActionsMenuContext';
2
+ export * from './SecondaryActionsMenuProvider';
@@ -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("./SecondaryActionsMenuContext"), exports);
18
+ __exportStar(require("./SecondaryActionsMenuProvider"), exports);
@@ -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,22 @@
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
+ exports.SecondaryActionsMenuContext = exports.SecondaryActionsMenuProvider = void 0;
18
+ var SecondaryActionsMenuContext_1 = require("./SecondaryActionsMenuContext");
19
+ Object.defineProperty(exports, "SecondaryActionsMenuProvider", { enumerable: true, get: function () { return SecondaryActionsMenuContext_1.SecondaryActionsMenuProvider; } });
20
+ Object.defineProperty(exports, "SecondaryActionsMenuContext", { enumerable: true, get: function () { return SecondaryActionsMenuContext_1.SecondaryActionsMenuContext; } });
21
+ __exportStar(require("./CardGridSecondaryActions"), exports);
22
+ __exportStar(require("./CardGridSecondaryActionsSkeleton"), exports);
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EndData = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const Typography_1 = require("../../Typography");
6
+ const constants_1 = require("./constants");
7
+ const EndData = ({ endOfScrollMsg = constants_1.END_OF_SCROLL_MESSAGE }) => ((0, jsx_runtime_1.jsx)(Typography_1.Typography, { children: endOfScrollMsg }));
8
+ exports.EndData = EndData;
@@ -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,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.END_OF_SCROLL_MESSAGE = void 0;
4
+ exports.END_OF_SCROLL_MESSAGE = 'Вы достигли конца списка';
@@ -0,0 +1 @@
1
+ export * from './EndData';
@@ -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("./EndData"), exports);
@@ -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,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorMessage = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const Button_1 = require("../../Button");
6
+ const Typography_1 = require("../../Typography");
7
+ const constants_1 = require("./constants");
8
+ const styles_1 = require("./styles");
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" })] }));
10
+ exports.ErrorMessage = ErrorMessage;
@@ -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,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERROR_MESSAGE = void 0;
4
+ exports.ERROR_MESSAGE = 'Ошибка загрузки';
@@ -0,0 +1 @@
1
+ export * from './ErrorMessage';
@@ -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("./ErrorMessage"), exports);
@@ -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,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Wrapper = void 0;
4
+ const styles_1 = require("../../styles");
5
+ exports.Wrapper = styles_1.styled.div `
6
+ display: grid;
7
+ grid-template-columns: 100%;
8
+ grid-template-rows: max-content max-content;
9
+ gap: ${({ theme }) => theme.spacing(2)};
10
+ justify-items: center;
11
+
12
+ padding: ${({ theme }) => theme.spacing(2, 0)};
13
+
14
+ ${({ theme }) => theme.breakpoints.down('sm')} {
15
+ gap: ${({ theme }) => theme.spacing(4)};
16
+ justify-items: normal;
17
+
18
+ padding: ${({ theme }) => theme.spacing(4)};
19
+ }
20
+ `;
@@ -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,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Footer = 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
+ const Footer = ({ isEndReached, isError, isLoading, onRetry, endOfScrollMsg, }) => {
10
+ if (!isLoading && !isError && !isEndReached) {
11
+ // Компонент нужен для того что бы избежать прилипания карточек к нижней границы контейнера virtuoso
12
+ return (0, jsx_runtime_1.jsx)(styles_1.FooterDummy, {});
13
+ }
14
+ return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { children: [isLoading && (0, jsx_runtime_1.jsx)(Loader_1.Loader, {}), isError && (0, jsx_runtime_1.jsx)(ErrorMessage_1.ErrorMessage, { onRetry: onRetry }), isEndReached && (0, jsx_runtime_1.jsx)(EndData_1.EndData, { endOfScrollMsg: endOfScrollMsg })] }));
15
+ };
16
+ exports.Footer = Footer;
@@ -0,0 +1 @@
1
+ export * from './Footer';
@@ -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("./Footer"), exports);
@@ -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,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FooterDummy = exports.Wrapper = void 0;
4
+ const styles_1 = require("../../styles");
5
+ exports.Wrapper = styles_1.styled.footer `
6
+ display: flex;
7
+ flex-shrink: 0;
8
+ align-items: center;
9
+ justify-content: center;
10
+
11
+ min-height: 64px;
12
+ max-height: 76px;
13
+ margin-top: ${({ theme }) => theme.spacing(4)};
14
+
15
+ border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
16
+ `;
17
+ exports.FooterDummy = styles_1.styled.div `
18
+ min-height: 20px;
19
+ `;
@@ -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,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.List = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const styles_1 = require("./styles");
7
+ exports.List = (0, react_1.forwardRef)(({ children, desktopCardWidth, ...restProps }, ref) => ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { ref: ref, "$gridTemplate": desktopCardWidth, ...restProps, children: children })));
@@ -0,0 +1 @@
1
+ export * from './List';
@@ -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("./List"), exports);
@@ -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,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Wrapper = void 0;
4
+ const styles_1 = require("../../styles");
5
+ exports.Wrapper = styles_1.styled.div `
6
+ display: grid;
7
+ grid-template-columns: ${({ $gridTemplate }) => `repeat(auto-fill, minmax(${$gridTemplate.min}, ${$gridTemplate.max}))`};
8
+ gap: ${({ theme }) => theme.spacing(4)};
9
+
10
+ ${({ theme }) => theme.breakpoints.down('sm')} {
11
+ grid-template-columns: 100%;
12
+ }
13
+ `;
@@ -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,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoDataPlaceholder = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const ConfigProvider_1 = require("../../ConfigProvider");
7
+ const placeholders_1 = require("../../placeholders");
8
+ const constants_1 = require("./constants");
9
+ const NoDataPlaceholder = ({ noDataImgSrc }) => {
10
+ const { imagesMap } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
11
+ const { noDataImgSrc: configProviderNoDataImgSrc } = imagesMap;
12
+ return ((0, jsx_runtime_1.jsx)(placeholders_1.Placeholder, { title: constants_1.NO_DATA_TEXT, imgSrc: noDataImgSrc ?? configProviderNoDataImgSrc, size: "medium" }));
13
+ };
14
+ exports.NoDataPlaceholder = NoDataPlaceholder;
@@ -0,0 +1 @@
1
+ export declare const NO_DATA_TEXT = "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NO_DATA_TEXT = void 0;
4
+ exports.NO_DATA_TEXT = 'Нет данных';