@max-ts/kit 0.13.1 → 0.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 (972) hide show
  1. package/README.md +84 -0
  2. package/lib/index.mjs +3232 -1
  3. package/lib/src/components/Accordion/Accordion.d.ts +9 -0
  4. package/lib/src/components/Accordion/Accordion.d.ts.map +1 -0
  5. package/lib/src/components/Accordion/index.d.ts +3 -0
  6. package/lib/src/components/Accordion/index.d.ts.map +1 -0
  7. package/lib/src/components/Accordion/styles.css.d.ts +10 -0
  8. package/lib/src/components/Accordion/styles.css.d.ts.map +1 -0
  9. package/lib/src/components/Accordion/types.d.ts +18 -0
  10. package/lib/src/components/Accordion/types.d.ts.map +1 -0
  11. package/lib/src/components/AlertDialog/AlertDialog.d.ts +15 -0
  12. package/lib/src/components/AlertDialog/AlertDialog.d.ts.map +1 -0
  13. package/lib/src/components/AlertDialog/index.d.ts +3 -0
  14. package/lib/src/components/AlertDialog/index.d.ts.map +1 -0
  15. package/lib/src/components/AlertDialog/styles.css.d.ts +8 -0
  16. package/lib/src/components/AlertDialog/styles.css.d.ts.map +1 -0
  17. package/lib/src/components/AlertDialog/types.d.ts +36 -0
  18. package/lib/src/components/AlertDialog/types.d.ts.map +1 -0
  19. package/lib/src/components/Badge/Badge.d.ts +8 -0
  20. package/lib/src/components/Badge/Badge.d.ts.map +1 -0
  21. package/lib/src/components/Badge/index.d.ts +2 -0
  22. package/lib/src/components/Badge/index.d.ts.map +1 -0
  23. package/lib/src/components/Badge/styles.css.d.ts +4 -0
  24. package/lib/src/components/Badge/styles.css.d.ts.map +1 -0
  25. package/lib/src/components/Badge/types.d.ts +2 -0
  26. package/lib/src/components/Badge/types.d.ts.map +1 -0
  27. package/lib/src/components/Button/Button.d.ts +14 -0
  28. package/lib/src/components/Button/Button.d.ts.map +1 -0
  29. package/lib/src/components/Button/Content/Content.d.ts +3 -0
  30. package/lib/src/components/Button/Content/Content.d.ts.map +1 -0
  31. package/lib/src/components/Button/Content/index.d.ts +2 -0
  32. package/lib/src/components/Button/Content/index.d.ts.map +1 -0
  33. package/lib/src/components/Button/Content/styles.css.d.ts +6 -0
  34. package/lib/src/components/Button/Content/styles.css.d.ts.map +1 -0
  35. package/lib/src/components/Button/button.css.d.ts +10 -0
  36. package/lib/src/components/Button/button.css.d.ts.map +1 -0
  37. package/lib/src/components/Button/index.d.ts +2 -0
  38. package/lib/src/components/Button/index.d.ts.map +1 -0
  39. package/lib/src/components/Button/types.d.ts +3 -0
  40. package/lib/src/components/Button/types.d.ts.map +1 -0
  41. package/lib/src/components/ButtonGroup/ButtonGroup.d.ts +21 -0
  42. package/lib/src/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
  43. package/lib/src/components/ButtonGroup/buttonGroup.css.d.ts +5 -0
  44. package/lib/src/components/ButtonGroup/buttonGroup.css.d.ts.map +1 -0
  45. package/lib/src/components/ButtonGroup/index.d.ts +2 -0
  46. package/lib/src/components/ButtonGroup/index.d.ts.map +1 -0
  47. package/lib/src/components/Calendar/Calendar.d.ts +8 -0
  48. package/lib/src/components/Calendar/Calendar.d.ts.map +1 -0
  49. package/lib/src/components/Calendar/DayButton/DayButton.d.ts +7 -0
  50. package/lib/src/components/Calendar/DayButton/DayButton.d.ts.map +1 -0
  51. package/lib/src/components/Calendar/DayButton/index.d.ts +2 -0
  52. package/lib/src/components/Calendar/DayButton/index.d.ts.map +1 -0
  53. package/lib/src/components/Calendar/DayButton/styles.css.d.ts +4 -0
  54. package/lib/src/components/Calendar/DayButton/styles.css.d.ts.map +1 -0
  55. package/lib/src/components/Calendar/Dropdown/Dropdown.d.ts +6 -0
  56. package/lib/src/components/Calendar/Dropdown/Dropdown.d.ts.map +1 -0
  57. package/lib/src/components/Calendar/Dropdown/index.d.ts +2 -0
  58. package/lib/src/components/Calendar/Dropdown/index.d.ts.map +1 -0
  59. package/lib/src/components/Calendar/Dropdown/styles.css.d.ts +2 -0
  60. package/lib/src/components/Calendar/Dropdown/styles.css.d.ts.map +1 -0
  61. package/lib/src/components/Calendar/index.d.ts +2 -0
  62. package/lib/src/components/Calendar/index.d.ts.map +1 -0
  63. package/lib/src/components/Calendar/styles.css.d.ts +8 -0
  64. package/lib/src/components/Calendar/styles.css.d.ts.map +1 -0
  65. package/lib/src/components/Card/Card.d.ts +12 -0
  66. package/lib/src/components/Card/Card.d.ts.map +1 -0
  67. package/lib/src/components/Card/card.css.d.ts +7 -0
  68. package/lib/src/components/Card/card.css.d.ts.map +1 -0
  69. package/lib/src/components/Card/index.d.ts +2 -0
  70. package/lib/src/components/Card/index.d.ts.map +1 -0
  71. package/lib/src/components/Carousel/Buttons/Buttons.d.ts +3 -0
  72. package/lib/src/components/Carousel/Buttons/Buttons.d.ts.map +1 -0
  73. package/lib/src/components/Carousel/Buttons/index.d.ts +2 -0
  74. package/lib/src/components/Carousel/Buttons/index.d.ts.map +1 -0
  75. package/lib/src/components/Carousel/Buttons/styles.css.d.ts +4 -0
  76. package/lib/src/components/Carousel/Buttons/styles.css.d.ts.map +1 -0
  77. package/lib/src/components/Carousel/Carousel.d.ts +18 -0
  78. package/lib/src/components/Carousel/Carousel.d.ts.map +1 -0
  79. package/lib/src/components/Carousel/CarouselContext.d.ts +17 -0
  80. package/lib/src/components/Carousel/CarouselContext.d.ts.map +1 -0
  81. package/lib/src/components/Carousel/Content/Content.d.ts +2 -0
  82. package/lib/src/components/Carousel/Content/Content.d.ts.map +1 -0
  83. package/lib/src/components/Carousel/Content/index.d.ts +2 -0
  84. package/lib/src/components/Carousel/Content/index.d.ts.map +1 -0
  85. package/lib/src/components/Carousel/Content/styles.css.d.ts +3 -0
  86. package/lib/src/components/Carousel/Content/styles.css.d.ts.map +1 -0
  87. package/lib/src/components/Carousel/Dots/Dots.d.ts +6 -0
  88. package/lib/src/components/Carousel/Dots/Dots.d.ts.map +1 -0
  89. package/lib/src/components/Carousel/Dots/index.d.ts +2 -0
  90. package/lib/src/components/Carousel/Dots/index.d.ts.map +1 -0
  91. package/lib/src/components/Carousel/Dots/styles.css.d.ts +4 -0
  92. package/lib/src/components/Carousel/Dots/styles.css.d.ts.map +1 -0
  93. package/lib/src/components/Carousel/Dots/useLogic/index.d.ts +2 -0
  94. package/lib/src/components/Carousel/Dots/useLogic/index.d.ts.map +1 -0
  95. package/lib/src/components/Carousel/Dots/useLogic/useLogic.d.ts +7 -0
  96. package/lib/src/components/Carousel/Dots/useLogic/useLogic.d.ts.map +1 -0
  97. package/lib/src/components/Carousel/Item/Item.d.ts +2 -0
  98. package/lib/src/components/Carousel/Item/Item.d.ts.map +1 -0
  99. package/lib/src/components/Carousel/Item/index.d.ts +2 -0
  100. package/lib/src/components/Carousel/Item/index.d.ts.map +1 -0
  101. package/lib/src/components/Carousel/Item/styles.css.d.ts +2 -0
  102. package/lib/src/components/Carousel/Item/styles.css.d.ts.map +1 -0
  103. package/lib/src/components/Carousel/index.d.ts +2 -0
  104. package/lib/src/components/Carousel/index.d.ts.map +1 -0
  105. package/lib/src/components/Carousel/styles.css.d.ts +2 -0
  106. package/lib/src/components/Carousel/styles.css.d.ts.map +1 -0
  107. package/lib/src/components/Carousel/types.d.ts +7 -0
  108. package/lib/src/components/Carousel/types.d.ts.map +1 -0
  109. package/lib/src/components/Carousel/useLogic/index.d.ts +2 -0
  110. package/lib/src/components/Carousel/useLogic/index.d.ts.map +1 -0
  111. package/lib/src/components/Carousel/useLogic/useLogic.d.ts +20 -0
  112. package/lib/src/components/Carousel/useLogic/useLogic.d.ts.map +1 -0
  113. package/lib/src/components/Checkbox/Checkbox.d.ts +4 -0
  114. package/lib/src/components/Checkbox/Checkbox.d.ts.map +1 -0
  115. package/lib/src/components/Checkbox/checkbox.css.d.ts +4 -0
  116. package/lib/src/components/Checkbox/checkbox.css.d.ts.map +1 -0
  117. package/lib/src/components/Checkbox/index.d.ts +2 -0
  118. package/lib/src/components/Checkbox/index.d.ts.map +1 -0
  119. package/lib/src/components/CircularProgress/CircularProgress.d.ts +11 -0
  120. package/lib/src/components/CircularProgress/CircularProgress.d.ts.map +1 -0
  121. package/lib/src/components/CircularProgress/index.d.ts +2 -0
  122. package/lib/src/components/CircularProgress/index.d.ts.map +1 -0
  123. package/lib/src/components/CircularProgress/styles.css.d.ts +6 -0
  124. package/lib/src/components/CircularProgress/styles.css.d.ts.map +1 -0
  125. package/lib/src/components/ConfirmAction/ConfirmAction.d.ts +40 -0
  126. package/lib/src/components/ConfirmAction/ConfirmAction.d.ts.map +1 -0
  127. package/lib/src/components/ConfirmAction/index.d.ts +2 -0
  128. package/lib/src/components/ConfirmAction/index.d.ts.map +1 -0
  129. package/lib/src/components/ConfirmAction/styles.css.d.ts +5 -0
  130. package/lib/src/components/ConfirmAction/styles.css.d.ts.map +1 -0
  131. package/lib/src/components/ConfirmAction/useLogic.d.ts +10 -0
  132. package/lib/src/components/ConfirmAction/useLogic.d.ts.map +1 -0
  133. package/lib/src/components/ContentState/ContentState.d.ts +35 -0
  134. package/lib/src/components/ContentState/ContentState.d.ts.map +1 -0
  135. package/lib/src/components/ContentState/index.d.ts +3 -0
  136. package/lib/src/components/ContentState/index.d.ts.map +1 -0
  137. package/lib/src/components/ContentState/styles.css.d.ts +2 -0
  138. package/lib/src/components/ContentState/styles.css.d.ts.map +1 -0
  139. package/lib/src/components/ContentState/types.d.ts +25 -0
  140. package/lib/src/components/ContentState/types.d.ts.map +1 -0
  141. package/lib/src/components/CopyTypography/CopyTypography.d.ts +18 -0
  142. package/lib/src/components/CopyTypography/CopyTypography.d.ts.map +1 -0
  143. package/lib/src/components/CopyTypography/enums.d.ts +6 -0
  144. package/lib/src/components/CopyTypography/enums.d.ts.map +1 -0
  145. package/lib/src/components/CopyTypography/index.d.ts +2 -0
  146. package/lib/src/components/CopyTypography/index.d.ts.map +1 -0
  147. package/lib/src/components/CopyTypography/styles.css.d.ts +3 -0
  148. package/lib/src/components/CopyTypography/styles.css.d.ts.map +1 -0
  149. package/lib/src/components/CopyTypography/useLogic/index.d.ts +2 -0
  150. package/lib/src/components/CopyTypography/useLogic/index.d.ts.map +1 -0
  151. package/lib/src/components/CopyTypography/useLogic/useLogic.d.ts +13 -0
  152. package/lib/src/components/CopyTypography/useLogic/useLogic.d.ts.map +1 -0
  153. package/lib/src/components/DashboardLayout/DashboardContext.d.ts +6 -0
  154. package/lib/src/components/DashboardLayout/DashboardContext.d.ts.map +1 -0
  155. package/lib/src/components/DashboardLayout/DashboardLayout.d.ts +10 -0
  156. package/lib/src/components/DashboardLayout/DashboardLayout.d.ts.map +1 -0
  157. package/lib/src/components/DashboardLayout/Main/Main.d.ts +7 -0
  158. package/lib/src/components/DashboardLayout/Main/Main.d.ts.map +1 -0
  159. package/lib/src/components/DashboardLayout/Main/index.d.ts +2 -0
  160. package/lib/src/components/DashboardLayout/Main/index.d.ts.map +1 -0
  161. package/lib/src/components/DashboardLayout/Main/styles.css.d.ts +2 -0
  162. package/lib/src/components/DashboardLayout/Main/styles.css.d.ts.map +1 -0
  163. package/lib/src/components/DashboardLayout/Sidebar/Sidebar.d.ts +11 -0
  164. package/lib/src/components/DashboardLayout/Sidebar/Sidebar.d.ts.map +1 -0
  165. package/lib/src/components/DashboardLayout/Sidebar/constants.d.ts +2 -0
  166. package/lib/src/components/DashboardLayout/Sidebar/constants.d.ts.map +1 -0
  167. package/lib/src/components/DashboardLayout/Sidebar/index.d.ts +2 -0
  168. package/lib/src/components/DashboardLayout/Sidebar/index.d.ts.map +1 -0
  169. package/lib/src/components/DashboardLayout/Sidebar/styles.css.d.ts +8 -0
  170. package/lib/src/components/DashboardLayout/Sidebar/styles.css.d.ts.map +1 -0
  171. package/lib/src/components/DashboardLayout/constants.d.ts +2 -0
  172. package/lib/src/components/DashboardLayout/constants.d.ts.map +1 -0
  173. package/lib/src/components/DashboardLayout/hooks/index.d.ts +3 -0
  174. package/lib/src/components/DashboardLayout/hooks/index.d.ts.map +1 -0
  175. package/lib/src/components/DashboardLayout/hooks/useDashboard.d.ts +6 -0
  176. package/lib/src/components/DashboardLayout/hooks/useDashboard.d.ts.map +1 -0
  177. package/lib/src/components/DashboardLayout/hooks/useLogic.d.ts +5 -0
  178. package/lib/src/components/DashboardLayout/hooks/useLogic.d.ts.map +1 -0
  179. package/lib/src/components/DashboardLayout/index.d.ts +3 -0
  180. package/lib/src/components/DashboardLayout/index.d.ts.map +1 -0
  181. package/lib/src/components/DashboardLayout/styles.css.d.ts +2 -0
  182. package/lib/src/components/DashboardLayout/styles.css.d.ts.map +1 -0
  183. package/lib/src/components/DataGrid/Body/Body.d.ts +6 -0
  184. package/lib/src/components/DataGrid/Body/Body.d.ts.map +1 -0
  185. package/lib/src/components/DataGrid/Body/index.d.ts +2 -0
  186. package/lib/src/components/DataGrid/Body/index.d.ts.map +1 -0
  187. package/lib/src/components/DataGrid/Body/styles.css.d.ts +2 -0
  188. package/lib/src/components/DataGrid/Body/styles.css.d.ts.map +1 -0
  189. package/lib/src/components/DataGrid/Cell/Cell.d.ts +9 -0
  190. package/lib/src/components/DataGrid/Cell/Cell.d.ts.map +1 -0
  191. package/lib/src/components/DataGrid/Cell/index.d.ts +2 -0
  192. package/lib/src/components/DataGrid/Cell/index.d.ts.map +1 -0
  193. package/lib/src/components/DataGrid/Cell/styles.css.d.ts +3 -0
  194. package/lib/src/components/DataGrid/Cell/styles.css.d.ts.map +1 -0
  195. package/lib/src/components/DataGrid/DataGrid.d.ts +24 -0
  196. package/lib/src/components/DataGrid/DataGrid.d.ts.map +1 -0
  197. package/lib/src/components/DataGrid/Footer/Footer.d.ts +5 -0
  198. package/lib/src/components/DataGrid/Footer/Footer.d.ts.map +1 -0
  199. package/lib/src/components/DataGrid/Footer/index.d.ts +2 -0
  200. package/lib/src/components/DataGrid/Footer/index.d.ts.map +1 -0
  201. package/lib/src/components/DataGrid/Footer/styles.css.d.ts +2 -0
  202. package/lib/src/components/DataGrid/Footer/styles.css.d.ts.map +1 -0
  203. package/lib/src/components/DataGrid/Header/Header.d.ts +10 -0
  204. package/lib/src/components/DataGrid/Header/Header.d.ts.map +1 -0
  205. package/lib/src/components/DataGrid/Header/index.d.ts +2 -0
  206. package/lib/src/components/DataGrid/Header/index.d.ts.map +1 -0
  207. package/lib/src/components/DataGrid/Header/styles.css.d.ts +2 -0
  208. package/lib/src/components/DataGrid/Header/styles.css.d.ts.map +1 -0
  209. package/lib/src/components/DataGrid/HeaderCell/HeaderCell.d.ts +9 -0
  210. package/lib/src/components/DataGrid/HeaderCell/HeaderCell.d.ts.map +1 -0
  211. package/lib/src/components/DataGrid/HeaderCell/index.d.ts +2 -0
  212. package/lib/src/components/DataGrid/HeaderCell/index.d.ts.map +1 -0
  213. package/lib/src/components/DataGrid/HeaderCell/styles.css.d.ts +2 -0
  214. package/lib/src/components/DataGrid/HeaderCell/styles.css.d.ts.map +1 -0
  215. package/lib/src/components/DataGrid/Row/Row.d.ts +12 -0
  216. package/lib/src/components/DataGrid/Row/Row.d.ts.map +1 -0
  217. package/lib/src/components/DataGrid/Row/index.d.ts +2 -0
  218. package/lib/src/components/DataGrid/Row/index.d.ts.map +1 -0
  219. package/lib/src/components/DataGrid/Row/styles.css.d.ts +3 -0
  220. package/lib/src/components/DataGrid/Row/styles.css.d.ts.map +1 -0
  221. package/lib/src/components/DataGrid/State/State.d.ts +11 -0
  222. package/lib/src/components/DataGrid/State/State.d.ts.map +1 -0
  223. package/lib/src/components/DataGrid/State/index.d.ts +2 -0
  224. package/lib/src/components/DataGrid/State/index.d.ts.map +1 -0
  225. package/lib/src/components/DataGrid/State/styles.css.d.ts +3 -0
  226. package/lib/src/components/DataGrid/State/styles.css.d.ts.map +1 -0
  227. package/lib/src/components/DataGrid/constants.d.ts +2 -0
  228. package/lib/src/components/DataGrid/constants.d.ts.map +1 -0
  229. package/lib/src/components/DataGrid/index.d.ts +3 -0
  230. package/lib/src/components/DataGrid/index.d.ts.map +1 -0
  231. package/lib/src/components/DataGrid/styles.css.d.ts +7 -0
  232. package/lib/src/components/DataGrid/styles.css.d.ts.map +1 -0
  233. package/lib/src/components/DataGrid/types.d.ts +25 -0
  234. package/lib/src/components/DataGrid/types.d.ts.map +1 -0
  235. package/lib/src/components/DataGridActionCell/DataGridActionCell.d.ts +23 -0
  236. package/lib/src/components/DataGridActionCell/DataGridActionCell.d.ts.map +1 -0
  237. package/lib/src/components/DataGridActionCell/MainAction/MainAction.d.ts +23 -0
  238. package/lib/src/components/DataGridActionCell/MainAction/MainAction.d.ts.map +1 -0
  239. package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts +22 -0
  240. package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts.map +1 -0
  241. package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/index.d.ts +2 -0
  242. package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/index.d.ts.map +1 -0
  243. package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.d.ts +2 -0
  244. package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.d.ts.map +1 -0
  245. package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts +11 -0
  246. package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts.map +1 -0
  247. package/lib/src/components/DataGridActionCell/MainAction/index.d.ts +2 -0
  248. package/lib/src/components/DataGridActionCell/MainAction/index.d.ts.map +1 -0
  249. package/lib/src/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts +23 -0
  250. package/lib/src/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts.map +1 -0
  251. package/lib/src/components/DataGridActionCell/SecondaryAction/index.d.ts +2 -0
  252. package/lib/src/components/DataGridActionCell/SecondaryAction/index.d.ts.map +1 -0
  253. package/lib/src/components/DataGridActionCell/index.d.ts +2 -0
  254. package/lib/src/components/DataGridActionCell/index.d.ts.map +1 -0
  255. package/lib/src/components/DataGridActionCell/styles.css.d.ts +2 -0
  256. package/lib/src/components/DataGridActionCell/styles.css.d.ts.map +1 -0
  257. package/lib/src/components/DataGridActionCell/types.d.ts +101 -0
  258. package/lib/src/components/DataGridActionCell/types.d.ts.map +1 -0
  259. package/lib/src/components/DataGridActionCell/useLogic/index.d.ts +2 -0
  260. package/lib/src/components/DataGridActionCell/useLogic/index.d.ts.map +1 -0
  261. package/lib/src/components/DataGridActionCell/useLogic/useLogic.d.ts +11 -0
  262. package/lib/src/components/DataGridActionCell/useLogic/useLogic.d.ts.map +1 -0
  263. package/lib/src/components/DataGridSortHeader/DataGridSortHeader.d.ts +10 -0
  264. package/lib/src/components/DataGridSortHeader/DataGridSortHeader.d.ts.map +1 -0
  265. package/lib/src/components/DataGridSortHeader/index.d.ts +3 -0
  266. package/lib/src/components/DataGridSortHeader/index.d.ts.map +1 -0
  267. package/lib/src/components/DataGridSortHeader/styles.css.d.ts +3 -0
  268. package/lib/src/components/DataGridSortHeader/styles.css.d.ts.map +1 -0
  269. package/lib/src/components/DataGridSortHeader/types.d.ts +5 -0
  270. package/lib/src/components/DataGridSortHeader/types.d.ts.map +1 -0
  271. package/lib/src/components/DataList/DataList.d.ts +57 -0
  272. package/lib/src/components/DataList/DataList.d.ts.map +1 -0
  273. package/lib/src/components/DataList/EndData/EndData.d.ts +6 -0
  274. package/lib/src/components/DataList/EndData/EndData.d.ts.map +1 -0
  275. package/lib/src/components/DataList/EndData/constants.d.ts +2 -0
  276. package/lib/src/components/DataList/EndData/constants.d.ts.map +1 -0
  277. package/lib/src/components/DataList/EndData/index.d.ts +2 -0
  278. package/lib/src/components/DataList/EndData/index.d.ts.map +1 -0
  279. package/lib/src/components/DataList/EndData/styles.css.d.ts +2 -0
  280. package/lib/src/components/DataList/EndData/styles.css.d.ts.map +1 -0
  281. package/lib/src/components/DataList/ErrorState/ErrorState.d.ts +6 -0
  282. package/lib/src/components/DataList/ErrorState/ErrorState.d.ts.map +1 -0
  283. package/lib/src/components/DataList/ErrorState/constants.d.ts +2 -0
  284. package/lib/src/components/DataList/ErrorState/constants.d.ts.map +1 -0
  285. package/lib/src/components/DataList/ErrorState/index.d.ts +2 -0
  286. package/lib/src/components/DataList/ErrorState/index.d.ts.map +1 -0
  287. package/lib/src/components/DataList/ErrorState/styles.css.d.ts +2 -0
  288. package/lib/src/components/DataList/ErrorState/styles.css.d.ts.map +1 -0
  289. package/lib/src/components/DataList/Loader/Loader.d.ts +2 -0
  290. package/lib/src/components/DataList/Loader/Loader.d.ts.map +1 -0
  291. package/lib/src/components/DataList/Loader/index.d.ts +2 -0
  292. package/lib/src/components/DataList/Loader/index.d.ts.map +1 -0
  293. package/lib/src/components/DataList/Loader/styles.css.d.ts +2 -0
  294. package/lib/src/components/DataList/Loader/styles.css.d.ts.map +1 -0
  295. package/lib/src/components/DataList/NoData/NoData.d.ts +6 -0
  296. package/lib/src/components/DataList/NoData/NoData.d.ts.map +1 -0
  297. package/lib/src/components/DataList/NoData/constants.d.ts +2 -0
  298. package/lib/src/components/DataList/NoData/constants.d.ts.map +1 -0
  299. package/lib/src/components/DataList/NoData/index.d.ts +2 -0
  300. package/lib/src/components/DataList/NoData/index.d.ts.map +1 -0
  301. package/lib/src/components/DataList/ScrollToTopButton/ScrollToTopButton.d.ts +6 -0
  302. package/lib/src/components/DataList/ScrollToTopButton/ScrollToTopButton.d.ts.map +1 -0
  303. package/lib/src/components/DataList/ScrollToTopButton/index.d.ts +2 -0
  304. package/lib/src/components/DataList/ScrollToTopButton/index.d.ts.map +1 -0
  305. package/lib/src/components/DataList/ScrollToTopButton/styles.css.d.ts +3 -0
  306. package/lib/src/components/DataList/ScrollToTopButton/styles.css.d.ts.map +1 -0
  307. package/lib/src/components/DataList/constants.d.ts +3 -0
  308. package/lib/src/components/DataList/constants.d.ts.map +1 -0
  309. package/lib/src/components/DataList/index.d.ts +2 -0
  310. package/lib/src/components/DataList/index.d.ts.map +1 -0
  311. package/lib/src/components/DataList/styles.css.d.ts +3 -0
  312. package/lib/src/components/DataList/styles.css.d.ts.map +1 -0
  313. package/lib/src/components/DatePicker/DatePicker.d.ts +12 -0
  314. package/lib/src/components/DatePicker/DatePicker.d.ts.map +1 -0
  315. package/lib/src/components/DatePicker/index.d.ts +2 -0
  316. package/lib/src/components/DatePicker/index.d.ts.map +1 -0
  317. package/lib/src/components/Description/Description.d.ts +36 -0
  318. package/lib/src/components/Description/Description.d.ts.map +1 -0
  319. package/lib/src/components/Description/DescriptionContext/DescriptionContext.d.ts +7 -0
  320. package/lib/src/components/Description/DescriptionContext/DescriptionContext.d.ts.map +1 -0
  321. package/lib/src/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts +8 -0
  322. package/lib/src/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts.map +1 -0
  323. package/lib/src/components/Description/DescriptionContext/DescriptionContextProvider/index.d.ts +2 -0
  324. package/lib/src/components/Description/DescriptionContext/DescriptionContextProvider/index.d.ts.map +1 -0
  325. package/lib/src/components/Description/DescriptionContext/index.d.ts +3 -0
  326. package/lib/src/components/Description/DescriptionContext/index.d.ts.map +1 -0
  327. package/lib/src/components/Description/Name/Name.d.ts +4 -0
  328. package/lib/src/components/Description/Name/Name.d.ts.map +1 -0
  329. package/lib/src/components/Description/Name/index.d.ts +2 -0
  330. package/lib/src/components/Description/Name/index.d.ts.map +1 -0
  331. package/lib/src/components/Description/Name/styles.css.d.ts +4 -0
  332. package/lib/src/components/Description/Name/styles.css.d.ts.map +1 -0
  333. package/lib/src/components/Description/Value/Value.d.ts +23 -0
  334. package/lib/src/components/Description/Value/Value.d.ts.map +1 -0
  335. package/lib/src/components/Description/Value/index.d.ts +2 -0
  336. package/lib/src/components/Description/Value/index.d.ts.map +1 -0
  337. package/lib/src/components/Description/Value/styles.css.d.ts +4 -0
  338. package/lib/src/components/Description/Value/styles.css.d.ts.map +1 -0
  339. package/lib/src/components/Description/Value/useLogic/index.d.ts +2 -0
  340. package/lib/src/components/Description/Value/useLogic/index.d.ts.map +1 -0
  341. package/lib/src/components/Description/Value/useLogic/useLogic.d.ts +10 -0
  342. package/lib/src/components/Description/Value/useLogic/useLogic.d.ts.map +1 -0
  343. package/lib/src/components/Description/constants.d.ts +4 -0
  344. package/lib/src/components/Description/constants.d.ts.map +1 -0
  345. package/lib/src/components/Description/index.d.ts +3 -0
  346. package/lib/src/components/Description/index.d.ts.map +1 -0
  347. package/lib/src/components/Description/styles.css.d.ts +4 -0
  348. package/lib/src/components/Description/styles.css.d.ts.map +1 -0
  349. package/lib/src/components/Description/useLogic/index.d.ts +2 -0
  350. package/lib/src/components/Description/useLogic/index.d.ts.map +1 -0
  351. package/lib/src/components/Description/useLogic/useLogic.d.ts +10 -0
  352. package/lib/src/components/Description/useLogic/useLogic.d.ts.map +1 -0
  353. package/lib/src/components/Dialog/Dialog.d.ts +11 -0
  354. package/lib/src/components/Dialog/Dialog.d.ts.map +1 -0
  355. package/lib/src/components/Dialog/index.d.ts +2 -0
  356. package/lib/src/components/Dialog/index.d.ts.map +1 -0
  357. package/lib/src/components/Dialog/styles.css.d.ts +10 -0
  358. package/lib/src/components/Dialog/styles.css.d.ts.map +1 -0
  359. package/lib/src/components/Drawer/Drawer.d.ts +12 -0
  360. package/lib/src/components/Drawer/Drawer.d.ts.map +1 -0
  361. package/lib/src/components/Drawer/index.d.ts +2 -0
  362. package/lib/src/components/Drawer/index.d.ts.map +1 -0
  363. package/lib/src/components/Drawer/styles.css.d.ts +8 -0
  364. package/lib/src/components/Drawer/styles.css.d.ts.map +1 -0
  365. package/lib/src/components/DropdownMenu/DropdownMenu.d.ts +25 -0
  366. package/lib/src/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  367. package/lib/src/components/DropdownMenu/index.d.ts +2 -0
  368. package/lib/src/components/DropdownMenu/index.d.ts.map +1 -0
  369. package/lib/src/components/DropdownMenu/styles.css.d.ts +13 -0
  370. package/lib/src/components/DropdownMenu/styles.css.d.ts.map +1 -0
  371. package/lib/src/components/ImageCarousel/ImageCarousel.d.ts +11 -0
  372. package/lib/src/components/ImageCarousel/ImageCarousel.d.ts.map +1 -0
  373. package/lib/src/components/ImageCarousel/index.d.ts +2 -0
  374. package/lib/src/components/ImageCarousel/index.d.ts.map +1 -0
  375. package/lib/src/components/ImageCarousel/styles.css.d.ts +10 -0
  376. package/lib/src/components/ImageCarousel/styles.css.d.ts.map +1 -0
  377. package/lib/src/components/Input/Input.d.ts +12 -0
  378. package/lib/src/components/Input/Input.d.ts.map +1 -0
  379. package/lib/src/components/Input/index.d.ts +2 -0
  380. package/lib/src/components/Input/index.d.ts.map +1 -0
  381. package/lib/src/components/Input/styles.css.d.ts +13 -0
  382. package/lib/src/components/Input/styles.css.d.ts.map +1 -0
  383. package/lib/src/components/InputOTP/InputOTP.d.ts +7 -0
  384. package/lib/src/components/InputOTP/InputOTP.d.ts.map +1 -0
  385. package/lib/src/components/InputOTP/Separator/Separator.d.ts +5 -0
  386. package/lib/src/components/InputOTP/Separator/Separator.d.ts.map +1 -0
  387. package/lib/src/components/InputOTP/Separator/index.d.ts +2 -0
  388. package/lib/src/components/InputOTP/Separator/index.d.ts.map +1 -0
  389. package/lib/src/components/InputOTP/Separator/styles.css.d.ts +2 -0
  390. package/lib/src/components/InputOTP/Separator/styles.css.d.ts.map +1 -0
  391. package/lib/src/components/InputOTP/Slot/Slot.d.ts +3 -0
  392. package/lib/src/components/InputOTP/Slot/Slot.d.ts.map +1 -0
  393. package/lib/src/components/InputOTP/Slot/index.d.ts +2 -0
  394. package/lib/src/components/InputOTP/Slot/index.d.ts.map +1 -0
  395. package/lib/src/components/InputOTP/Slot/styles.css.d.ts +6 -0
  396. package/lib/src/components/InputOTP/Slot/styles.css.d.ts.map +1 -0
  397. package/lib/src/components/InputOTP/index.d.ts +2 -0
  398. package/lib/src/components/InputOTP/index.d.ts.map +1 -0
  399. package/lib/src/components/InputOTP/styles.css.d.ts +5 -0
  400. package/lib/src/components/InputOTP/styles.css.d.ts.map +1 -0
  401. package/lib/src/components/Label/Label.d.ts +8 -0
  402. package/lib/src/components/Label/Label.d.ts.map +1 -0
  403. package/lib/src/components/Label/index.d.ts +2 -0
  404. package/lib/src/components/Label/index.d.ts.map +1 -0
  405. package/lib/src/components/Label/label.css.d.ts +5 -0
  406. package/lib/src/components/Label/label.css.d.ts.map +1 -0
  407. package/lib/src/components/MaskField/MaskField.d.ts +7 -0
  408. package/lib/src/components/MaskField/MaskField.d.ts.map +1 -0
  409. package/lib/src/components/MaskField/index.d.ts +2 -0
  410. package/lib/src/components/MaskField/index.d.ts.map +1 -0
  411. package/lib/src/components/PageLayout/Aside/Aside.d.ts +7 -0
  412. package/lib/src/components/PageLayout/Aside/Aside.d.ts.map +1 -0
  413. package/lib/src/components/PageLayout/Aside/index.d.ts +2 -0
  414. package/lib/src/components/PageLayout/Aside/index.d.ts.map +1 -0
  415. package/lib/src/components/PageLayout/Aside/styles.css.d.ts +2 -0
  416. package/lib/src/components/PageLayout/Aside/styles.css.d.ts.map +1 -0
  417. package/lib/src/components/PageLayout/Content/Content.d.ts +14 -0
  418. package/lib/src/components/PageLayout/Content/Content.d.ts.map +1 -0
  419. package/lib/src/components/PageLayout/Content/index.d.ts +2 -0
  420. package/lib/src/components/PageLayout/Content/index.d.ts.map +1 -0
  421. package/lib/src/components/PageLayout/Content/styles.css.d.ts +3 -0
  422. package/lib/src/components/PageLayout/Content/styles.css.d.ts.map +1 -0
  423. package/lib/src/components/PageLayout/Footer/Footer.d.ts +7 -0
  424. package/lib/src/components/PageLayout/Footer/Footer.d.ts.map +1 -0
  425. package/lib/src/components/PageLayout/Footer/index.d.ts +2 -0
  426. package/lib/src/components/PageLayout/Footer/index.d.ts.map +1 -0
  427. package/lib/src/components/PageLayout/Footer/styles.css.d.ts +2 -0
  428. package/lib/src/components/PageLayout/Footer/styles.css.d.ts.map +1 -0
  429. package/lib/src/components/PageLayout/Header/Header.d.ts +46 -0
  430. package/lib/src/components/PageLayout/Header/Header.d.ts.map +1 -0
  431. package/lib/src/components/PageLayout/Header/index.d.ts +2 -0
  432. package/lib/src/components/PageLayout/Header/index.d.ts.map +1 -0
  433. package/lib/src/components/PageLayout/Header/styles.css.d.ts +9 -0
  434. package/lib/src/components/PageLayout/Header/styles.css.d.ts.map +1 -0
  435. package/lib/src/components/PageLayout/PageLayout.d.ts +13 -0
  436. package/lib/src/components/PageLayout/PageLayout.d.ts.map +1 -0
  437. package/lib/src/components/PageLayout/constants.d.ts +6 -0
  438. package/lib/src/components/PageLayout/constants.d.ts.map +1 -0
  439. package/lib/src/components/PageLayout/index.d.ts +2 -0
  440. package/lib/src/components/PageLayout/index.d.ts.map +1 -0
  441. package/lib/src/components/PageLayout/styles.css.d.ts +2 -0
  442. package/lib/src/components/PageLayout/styles.css.d.ts.map +1 -0
  443. package/lib/src/components/Pagination/Pagination.d.ts +13 -0
  444. package/lib/src/components/Pagination/Pagination.d.ts.map +1 -0
  445. package/lib/src/components/Pagination/index.d.ts +2 -0
  446. package/lib/src/components/Pagination/index.d.ts.map +1 -0
  447. package/lib/src/components/Pagination/styles.css.d.ts +3 -0
  448. package/lib/src/components/Pagination/styles.css.d.ts.map +1 -0
  449. package/lib/src/components/Pagination/useLogic.d.ts +10 -0
  450. package/lib/src/components/Pagination/useLogic.d.ts.map +1 -0
  451. package/lib/src/components/PeriodPicker/PeriodPicker.d.ts +11 -0
  452. package/lib/src/components/PeriodPicker/PeriodPicker.d.ts.map +1 -0
  453. package/lib/src/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts +9 -0
  454. package/lib/src/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts.map +1 -0
  455. package/lib/src/components/PeriodPicker/YearsDropdown/index.d.ts +2 -0
  456. package/lib/src/components/PeriodPicker/YearsDropdown/index.d.ts.map +1 -0
  457. package/lib/src/components/PeriodPicker/constants.d.ts +3 -0
  458. package/lib/src/components/PeriodPicker/constants.d.ts.map +1 -0
  459. package/lib/src/components/PeriodPicker/index.d.ts +2 -0
  460. package/lib/src/components/PeriodPicker/index.d.ts.map +1 -0
  461. package/lib/src/components/PeriodPicker/styles.css.d.ts +4 -0
  462. package/lib/src/components/PeriodPicker/styles.css.d.ts.map +1 -0
  463. package/lib/src/components/PeriodPicker/utils.d.ts +4 -0
  464. package/lib/src/components/PeriodPicker/utils.d.ts.map +1 -0
  465. package/lib/src/components/Placeholder/Image/Image.d.ts +7 -0
  466. package/lib/src/components/Placeholder/Image/Image.d.ts.map +1 -0
  467. package/lib/src/components/Placeholder/Image/index.d.ts +2 -0
  468. package/lib/src/components/Placeholder/Image/index.d.ts.map +1 -0
  469. package/lib/src/components/Placeholder/Image/styles.css.d.ts +4 -0
  470. package/lib/src/components/Placeholder/Image/styles.css.d.ts.map +1 -0
  471. package/lib/src/components/Placeholder/Placeholder.d.ts +41 -0
  472. package/lib/src/components/Placeholder/Placeholder.d.ts.map +1 -0
  473. package/lib/src/components/Placeholder/constants.d.ts +23 -0
  474. package/lib/src/components/Placeholder/constants.d.ts.map +1 -0
  475. package/lib/src/components/Placeholder/index.d.ts +4 -0
  476. package/lib/src/components/Placeholder/index.d.ts.map +1 -0
  477. package/lib/src/components/Placeholder/styles.css.d.ts +7 -0
  478. package/lib/src/components/Placeholder/styles.css.d.ts.map +1 -0
  479. package/lib/src/components/Placeholder/types.d.ts +2 -0
  480. package/lib/src/components/Placeholder/types.d.ts.map +1 -0
  481. package/lib/src/components/Popover/Popover.d.ts +3 -0
  482. package/lib/src/components/Popover/Popover.d.ts.map +1 -0
  483. package/lib/src/components/Popover/PopoverContent.d.ts +4 -0
  484. package/lib/src/components/Popover/PopoverContent.d.ts.map +1 -0
  485. package/lib/src/components/Popover/index.d.ts +3 -0
  486. package/lib/src/components/Popover/index.d.ts.map +1 -0
  487. package/lib/src/components/Popover/styles.css.d.ts +2 -0
  488. package/lib/src/components/Popover/styles.css.d.ts.map +1 -0
  489. package/lib/src/components/RadioGroup/RadioGroup.d.ts +4 -0
  490. package/lib/src/components/RadioGroup/RadioGroup.d.ts.map +1 -0
  491. package/lib/src/components/RadioGroup/RadioGroupItem.d.ts +6 -0
  492. package/lib/src/components/RadioGroup/RadioGroupItem.d.ts.map +1 -0
  493. package/lib/src/components/RadioGroup/index.d.ts +3 -0
  494. package/lib/src/components/RadioGroup/index.d.ts.map +1 -0
  495. package/lib/src/components/RadioGroup/styles.css.d.ts +6 -0
  496. package/lib/src/components/RadioGroup/styles.css.d.ts.map +1 -0
  497. package/lib/src/components/RangeInput/RangeInput.d.ts +17 -0
  498. package/lib/src/components/RangeInput/RangeInput.d.ts.map +1 -0
  499. package/lib/src/components/RangeInput/index.d.ts +2 -0
  500. package/lib/src/components/RangeInput/index.d.ts.map +1 -0
  501. package/lib/src/components/RangeInput/styles.css.d.ts +7 -0
  502. package/lib/src/components/RangeInput/styles.css.d.ts.map +1 -0
  503. package/lib/src/components/RangeInput/useLogic/index.d.ts +2 -0
  504. package/lib/src/components/RangeInput/useLogic/index.d.ts.map +1 -0
  505. package/lib/src/components/RangeInput/useLogic/useLogic.d.ts +14 -0
  506. package/lib/src/components/RangeInput/useLogic/useLogic.d.ts.map +1 -0
  507. package/lib/src/components/ScrollTopButton/ScrollTopButton.d.ts +5 -0
  508. package/lib/src/components/ScrollTopButton/ScrollTopButton.d.ts.map +1 -0
  509. package/lib/src/components/ScrollTopButton/index.d.ts +2 -0
  510. package/lib/src/components/ScrollTopButton/index.d.ts.map +1 -0
  511. package/lib/src/components/ScrollTopButton/styles.css.d.ts +3 -0
  512. package/lib/src/components/ScrollTopButton/styles.css.d.ts.map +1 -0
  513. package/lib/src/components/Select/Select.d.ts +22 -0
  514. package/lib/src/components/Select/Select.d.ts.map +1 -0
  515. package/lib/src/components/Select/index.d.ts +2 -0
  516. package/lib/src/components/Select/index.d.ts.map +1 -0
  517. package/lib/src/components/Select/styles.css.d.ts +12 -0
  518. package/lib/src/components/Select/styles.css.d.ts.map +1 -0
  519. package/lib/src/components/Slider/Slider.d.ts +4 -0
  520. package/lib/src/components/Slider/Slider.d.ts.map +1 -0
  521. package/lib/src/components/Slider/index.d.ts +2 -0
  522. package/lib/src/components/Slider/index.d.ts.map +1 -0
  523. package/lib/src/components/Slider/styles.css.d.ts +5 -0
  524. package/lib/src/components/Slider/styles.css.d.ts.map +1 -0
  525. package/lib/src/components/Tabs/Tabs.d.ts +9 -0
  526. package/lib/src/components/Tabs/Tabs.d.ts.map +1 -0
  527. package/lib/src/components/Tabs/TabsContent.d.ts +4 -0
  528. package/lib/src/components/Tabs/TabsContent.d.ts.map +1 -0
  529. package/lib/src/components/Tabs/TabsList.d.ts +4 -0
  530. package/lib/src/components/Tabs/TabsList.d.ts.map +1 -0
  531. package/lib/src/components/Tabs/TabsTrigger.d.ts +6 -0
  532. package/lib/src/components/Tabs/TabsTrigger.d.ts.map +1 -0
  533. package/lib/src/components/Tabs/index.d.ts +2 -0
  534. package/lib/src/components/Tabs/index.d.ts.map +1 -0
  535. package/lib/src/components/Tabs/styles.css.d.ts +5 -0
  536. package/lib/src/components/Tabs/styles.css.d.ts.map +1 -0
  537. package/lib/src/components/TextField/TextField.d.ts +8 -0
  538. package/lib/src/components/TextField/TextField.d.ts.map +1 -0
  539. package/lib/src/components/TextField/index.d.ts +2 -0
  540. package/lib/src/components/TextField/index.d.ts.map +1 -0
  541. package/lib/src/components/TextField/styles.css.d.ts +7 -0
  542. package/lib/src/components/TextField/styles.css.d.ts.map +1 -0
  543. package/lib/src/components/Tooltip/Tooltip.d.ts +14 -0
  544. package/lib/src/components/Tooltip/Tooltip.d.ts.map +1 -0
  545. package/lib/src/components/Tooltip/index.d.ts +2 -0
  546. package/lib/src/components/Tooltip/index.d.ts.map +1 -0
  547. package/lib/src/components/Tooltip/styles.css.d.ts +4 -0
  548. package/lib/src/components/Tooltip/styles.css.d.ts.map +1 -0
  549. package/lib/src/components/Typography/Typography.d.ts +16 -0
  550. package/lib/src/components/Typography/Typography.d.ts.map +1 -0
  551. package/lib/src/components/Typography/index.d.ts +2 -0
  552. package/lib/src/components/Typography/index.d.ts.map +1 -0
  553. package/lib/src/components/Typography/styles.css.d.ts +10 -0
  554. package/lib/src/components/Typography/styles.css.d.ts.map +1 -0
  555. package/lib/src/components/Typography/types.d.ts +4 -0
  556. package/lib/src/components/Typography/types.d.ts.map +1 -0
  557. package/lib/src/components/index.d.ts +43 -0
  558. package/lib/src/components/index.d.ts.map +1 -0
  559. package/lib/src/form/Form/Form.d.ts +46 -0
  560. package/lib/src/form/Form/Form.d.ts.map +1 -0
  561. package/lib/src/form/Form/index.d.ts +2 -0
  562. package/lib/src/form/Form/index.d.ts.map +1 -0
  563. package/lib/src/form/FormMaskField/FormMaskField.d.ts +5 -0
  564. package/lib/src/form/FormMaskField/FormMaskField.d.ts.map +1 -0
  565. package/lib/src/form/FormMaskField/index.d.ts +3 -0
  566. package/lib/src/form/FormMaskField/index.d.ts.map +1 -0
  567. package/lib/src/form/FormMaskField/types.d.ts +5 -0
  568. package/lib/src/form/FormMaskField/types.d.ts.map +1 -0
  569. package/lib/src/form/FormSubmitButton/FormSubmitButton.d.ts +7 -0
  570. package/lib/src/form/FormSubmitButton/FormSubmitButton.d.ts.map +1 -0
  571. package/lib/src/form/FormSubmitButton/index.d.ts +2 -0
  572. package/lib/src/form/FormSubmitButton/index.d.ts.map +1 -0
  573. package/lib/src/form/FormTextField/FormTextField.d.ts +8 -0
  574. package/lib/src/form/FormTextField/FormTextField.d.ts.map +1 -0
  575. package/lib/src/form/FormTextField/index.d.ts +3 -0
  576. package/lib/src/form/FormTextField/index.d.ts.map +1 -0
  577. package/lib/src/form/FormTextField/types.d.ts +5 -0
  578. package/lib/src/form/FormTextField/types.d.ts.map +1 -0
  579. package/lib/src/form/external.d.ts +2 -0
  580. package/lib/src/form/external.d.ts.map +1 -0
  581. package/lib/src/form/hooks/index.d.ts +3 -0
  582. package/lib/src/form/hooks/index.d.ts.map +1 -0
  583. package/lib/src/form/hooks/useForm/index.d.ts +2 -0
  584. package/lib/src/form/hooks/useForm/index.d.ts.map +1 -0
  585. package/lib/src/form/hooks/useForm/useForm.d.ts +5 -0
  586. package/lib/src/form/hooks/useForm/useForm.d.ts.map +1 -0
  587. package/lib/src/form/hooks/useFormContext/index.d.ts +2 -0
  588. package/lib/src/form/hooks/useFormContext/index.d.ts.map +1 -0
  589. package/lib/src/form/index.d.ts +8 -0
  590. package/lib/src/form/index.d.ts.map +1 -0
  591. package/lib/src/form/types.d.ts +8 -0
  592. package/lib/src/form/types.d.ts.map +1 -0
  593. package/lib/src/index.d.ts +4 -0
  594. package/lib/src/index.d.ts.map +1 -0
  595. package/lib/src/theme/index.d.ts +3 -0
  596. package/lib/src/theme/index.d.ts.map +1 -0
  597. package/lib/src/theme/reset.css.d.ts +2 -0
  598. package/lib/src/theme/reset.css.d.ts.map +1 -0
  599. package/lib/src/theme/theme.css.d.ts +80 -0
  600. package/lib/src/theme/theme.css.d.ts.map +1 -0
  601. package/lib/src/utils.d.ts +11 -0
  602. package/lib/src/utils.d.ts.map +1 -0
  603. package/lib/stories/Accordion.stories.d.ts +12 -0
  604. package/lib/stories/Accordion.stories.d.ts.map +1 -0
  605. package/lib/stories/AlertDialog.stories.d.ts +15 -0
  606. package/lib/stories/AlertDialog.stories.d.ts.map +1 -0
  607. package/lib/stories/Badge.stories.d.ts +12 -0
  608. package/lib/stories/Badge.stories.d.ts.map +1 -0
  609. package/lib/stories/Button.stories.d.ts +20 -0
  610. package/lib/stories/Button.stories.d.ts.map +1 -0
  611. package/lib/stories/ButtonGroup.stories.d.ts +29 -0
  612. package/lib/stories/ButtonGroup.stories.d.ts.map +1 -0
  613. package/lib/stories/Calendar.stories.d.ts +15 -0
  614. package/lib/stories/Calendar.stories.d.ts.map +1 -0
  615. package/lib/stories/Card.stories.d.ts +13 -0
  616. package/lib/stories/Card.stories.d.ts.map +1 -0
  617. package/lib/stories/Carousel.stories.d.ts +13 -0
  618. package/lib/stories/Carousel.stories.d.ts.map +1 -0
  619. package/lib/stories/Checkbox.stories.d.ts +11 -0
  620. package/lib/stories/Checkbox.stories.d.ts.map +1 -0
  621. package/lib/stories/CircularProgress.stories.d.ts +19 -0
  622. package/lib/stories/CircularProgress.stories.d.ts.map +1 -0
  623. package/lib/stories/ConfirmAction.stories.d.ts +20 -0
  624. package/lib/stories/ConfirmAction.stories.d.ts.map +1 -0
  625. package/lib/stories/CopyTypography.stories.d.ts +25 -0
  626. package/lib/stories/CopyTypography.stories.d.ts.map +1 -0
  627. package/lib/stories/DashboardLayout.stories.d.ts +15 -0
  628. package/lib/stories/DashboardLayout.stories.d.ts.map +1 -0
  629. package/lib/stories/DataGrid.stories.d.ts +18 -0
  630. package/lib/stories/DataGrid.stories.d.ts.map +1 -0
  631. package/lib/stories/DataGridActionCell.stories.d.ts +14 -0
  632. package/lib/stories/DataGridActionCell.stories.d.ts.map +1 -0
  633. package/lib/stories/DataList.stories.d.ts +20 -0
  634. package/lib/stories/DataList.stories.d.ts.map +1 -0
  635. package/lib/stories/DatePicker.stories.d.ts +6 -0
  636. package/lib/stories/DatePicker.stories.d.ts.map +1 -0
  637. package/lib/stories/Description.stories.d.ts +51 -0
  638. package/lib/stories/Description.stories.d.ts.map +1 -0
  639. package/lib/stories/Dialog.stories.d.ts +6 -0
  640. package/lib/stories/Dialog.stories.d.ts.map +1 -0
  641. package/lib/stories/Drawer.stories.d.ts +6 -0
  642. package/lib/stories/Drawer.stories.d.ts.map +1 -0
  643. package/lib/stories/DropdownMenu.stories.d.ts +6 -0
  644. package/lib/stories/DropdownMenu.stories.d.ts.map +1 -0
  645. package/lib/stories/Input.stories.d.ts +11 -0
  646. package/lib/stories/Input.stories.d.ts.map +1 -0
  647. package/lib/stories/InputOTP.stories.d.ts +6 -0
  648. package/lib/stories/InputOTP.stories.d.ts.map +1 -0
  649. package/lib/stories/MaskField.stories.d.ts +7 -0
  650. package/lib/stories/MaskField.stories.d.ts.map +1 -0
  651. package/lib/stories/Pagination.stories.d.ts +6 -0
  652. package/lib/stories/Pagination.stories.d.ts.map +1 -0
  653. package/lib/stories/PeriodPicker.stories.d.ts +7 -0
  654. package/lib/stories/PeriodPicker.stories.d.ts.map +1 -0
  655. package/lib/stories/Popover.stories.d.ts +6 -0
  656. package/lib/stories/Popover.stories.d.ts.map +1 -0
  657. package/lib/stories/RadioGroup.stories.d.ts +6 -0
  658. package/lib/stories/RadioGroup.stories.d.ts.map +1 -0
  659. package/lib/stories/RangeInput.stories.d.ts +6 -0
  660. package/lib/stories/RangeInput.stories.d.ts.map +1 -0
  661. package/lib/stories/Select.stories.d.ts +8 -0
  662. package/lib/stories/Select.stories.d.ts.map +1 -0
  663. package/lib/stories/Slider.stories.d.ts +6 -0
  664. package/lib/stories/Slider.stories.d.ts.map +1 -0
  665. package/lib/stories/Tabs.stories.d.ts +8 -0
  666. package/lib/stories/Tabs.stories.d.ts.map +1 -0
  667. package/lib/stories/TextField.stories.d.ts +9 -0
  668. package/lib/stories/TextField.stories.d.ts.map +1 -0
  669. package/lib/stories/Tooltip.stories.d.ts +7 -0
  670. package/lib/stories/Tooltip.stories.d.ts.map +1 -0
  671. package/lib/stories/Typography.stories.d.ts +17 -0
  672. package/lib/stories/Typography.stories.d.ts.map +1 -0
  673. package/lib/styles.css +3414 -1
  674. package/package.json +38 -26
  675. package/lib/components/Accordion/Accordion.d.ts +0 -11
  676. package/lib/components/Accordion/accordion.css.d.ts +0 -5
  677. package/lib/components/Accordion/index.d.ts +0 -1
  678. package/lib/components/Badge/Badge.d.ts +0 -7
  679. package/lib/components/Badge/index.d.ts +0 -1
  680. package/lib/components/Badge/styles.css.d.ts +0 -3
  681. package/lib/components/Badge/types.d.ts +0 -1
  682. package/lib/components/Button/Button.d.ts +0 -13
  683. package/lib/components/Button/Content/Content.d.ts +0 -2
  684. package/lib/components/Button/Content/index.d.ts +0 -1
  685. package/lib/components/Button/Content/styles.css.d.ts +0 -5
  686. package/lib/components/Button/button.css.d.ts +0 -9
  687. package/lib/components/Button/index.d.ts +0 -1
  688. package/lib/components/Button/types.d.ts +0 -2
  689. package/lib/components/ButtonGroup/ButtonGroup.d.ts +0 -20
  690. package/lib/components/ButtonGroup/buttonGroup.css.d.ts +0 -4
  691. package/lib/components/ButtonGroup/index.d.ts +0 -1
  692. package/lib/components/Calendar/Calendar.d.ts +0 -7
  693. package/lib/components/Calendar/DayButton/DayButton.d.ts +0 -6
  694. package/lib/components/Calendar/DayButton/index.d.ts +0 -1
  695. package/lib/components/Calendar/DayButton/styles.css.d.ts +0 -3
  696. package/lib/components/Calendar/Dropdown/Dropdown.d.ts +0 -5
  697. package/lib/components/Calendar/Dropdown/index.d.ts +0 -1
  698. package/lib/components/Calendar/Dropdown/styles.css.d.ts +0 -1
  699. package/lib/components/Calendar/index.d.ts +0 -1
  700. package/lib/components/Calendar/styles.css.d.ts +0 -7
  701. package/lib/components/Card/Card.d.ts +0 -11
  702. package/lib/components/Card/card.css.d.ts +0 -6
  703. package/lib/components/Card/index.d.ts +0 -1
  704. package/lib/components/Carousel/Buttons/Buttons.d.ts +0 -2
  705. package/lib/components/Carousel/Buttons/index.d.ts +0 -1
  706. package/lib/components/Carousel/Buttons/styles.css.d.ts +0 -3
  707. package/lib/components/Carousel/Carousel.d.ts +0 -17
  708. package/lib/components/Carousel/CarouselContext.d.ts +0 -16
  709. package/lib/components/Carousel/Content/Content.d.ts +0 -1
  710. package/lib/components/Carousel/Content/index.d.ts +0 -1
  711. package/lib/components/Carousel/Content/styles.css.d.ts +0 -2
  712. package/lib/components/Carousel/Dots/Dots.d.ts +0 -5
  713. package/lib/components/Carousel/Dots/index.d.ts +0 -1
  714. package/lib/components/Carousel/Dots/styles.css.d.ts +0 -3
  715. package/lib/components/Carousel/Dots/useLogic/index.d.ts +0 -1
  716. package/lib/components/Carousel/Dots/useLogic/useLogic.d.ts +0 -6
  717. package/lib/components/Carousel/Item/Item.d.ts +0 -1
  718. package/lib/components/Carousel/Item/index.d.ts +0 -1
  719. package/lib/components/Carousel/Item/styles.css.d.ts +0 -1
  720. package/lib/components/Carousel/index.d.ts +0 -1
  721. package/lib/components/Carousel/styles.css.d.ts +0 -1
  722. package/lib/components/Carousel/types.d.ts +0 -6
  723. package/lib/components/Carousel/useLogic/index.d.ts +0 -1
  724. package/lib/components/Carousel/useLogic/useLogic.d.ts +0 -19
  725. package/lib/components/Checkbox/Checkbox.d.ts +0 -3
  726. package/lib/components/Checkbox/checkbox.css.d.ts +0 -3
  727. package/lib/components/Checkbox/index.d.ts +0 -1
  728. package/lib/components/CircularProgress/CircularProgress.d.ts +0 -10
  729. package/lib/components/CircularProgress/index.d.ts +0 -1
  730. package/lib/components/CircularProgress/styles.css.d.ts +0 -5
  731. package/lib/components/ConfirmAction/ConfirmAction.d.ts +0 -39
  732. package/lib/components/ConfirmAction/index.d.ts +0 -1
  733. package/lib/components/ConfirmAction/styles.css.d.ts +0 -4
  734. package/lib/components/ConfirmAction/useLogic.d.ts +0 -9
  735. package/lib/components/ContentState/ContentState.d.ts +0 -34
  736. package/lib/components/ContentState/index.d.ts +0 -2
  737. package/lib/components/ContentState/styles.css.d.ts +0 -1
  738. package/lib/components/ContentState/types.d.ts +0 -24
  739. package/lib/components/CopyTypography/CopyTypography.d.ts +0 -17
  740. package/lib/components/CopyTypography/enums.d.ts +0 -5
  741. package/lib/components/CopyTypography/index.d.ts +0 -1
  742. package/lib/components/CopyTypography/styles.css.d.ts +0 -2
  743. package/lib/components/CopyTypography/useLogic/index.d.ts +0 -1
  744. package/lib/components/CopyTypography/useLogic/useLogic.d.ts +0 -12
  745. package/lib/components/DashboardLayout/DashboardContext.d.ts +0 -5
  746. package/lib/components/DashboardLayout/DashboardLayout.d.ts +0 -9
  747. package/lib/components/DashboardLayout/Main/Main.d.ts +0 -6
  748. package/lib/components/DashboardLayout/Main/index.d.ts +0 -1
  749. package/lib/components/DashboardLayout/Main/styles.css.d.ts +0 -1
  750. package/lib/components/DashboardLayout/Sidebar/Sidebar.d.ts +0 -10
  751. package/lib/components/DashboardLayout/Sidebar/constants.d.ts +0 -1
  752. package/lib/components/DashboardLayout/Sidebar/index.d.ts +0 -1
  753. package/lib/components/DashboardLayout/Sidebar/styles.css.d.ts +0 -7
  754. package/lib/components/DashboardLayout/constants.d.ts +0 -1
  755. package/lib/components/DashboardLayout/hooks/index.d.ts +0 -2
  756. package/lib/components/DashboardLayout/hooks/useDashboard.d.ts +0 -5
  757. package/lib/components/DashboardLayout/hooks/useLogic.d.ts +0 -4
  758. package/lib/components/DashboardLayout/index.d.ts +0 -2
  759. package/lib/components/DashboardLayout/styles.css.d.ts +0 -1
  760. package/lib/components/DataGrid/Body/Body.d.ts +0 -5
  761. package/lib/components/DataGrid/Body/index.d.ts +0 -1
  762. package/lib/components/DataGrid/Body/styles.css.d.ts +0 -1
  763. package/lib/components/DataGrid/Cell/Cell.d.ts +0 -8
  764. package/lib/components/DataGrid/Cell/index.d.ts +0 -1
  765. package/lib/components/DataGrid/Cell/styles.css.d.ts +0 -2
  766. package/lib/components/DataGrid/DataGrid.d.ts +0 -23
  767. package/lib/components/DataGrid/Footer/Footer.d.ts +0 -4
  768. package/lib/components/DataGrid/Footer/index.d.ts +0 -1
  769. package/lib/components/DataGrid/Footer/styles.css.d.ts +0 -1
  770. package/lib/components/DataGrid/Header/Header.d.ts +0 -9
  771. package/lib/components/DataGrid/Header/index.d.ts +0 -1
  772. package/lib/components/DataGrid/Header/styles.css.d.ts +0 -1
  773. package/lib/components/DataGrid/HeaderCell/HeaderCell.d.ts +0 -8
  774. package/lib/components/DataGrid/HeaderCell/index.d.ts +0 -1
  775. package/lib/components/DataGrid/HeaderCell/styles.css.d.ts +0 -1
  776. package/lib/components/DataGrid/Row/Row.d.ts +0 -11
  777. package/lib/components/DataGrid/Row/index.d.ts +0 -1
  778. package/lib/components/DataGrid/Row/styles.css.d.ts +0 -2
  779. package/lib/components/DataGrid/State/State.d.ts +0 -10
  780. package/lib/components/DataGrid/State/index.d.ts +0 -1
  781. package/lib/components/DataGrid/State/styles.css.d.ts +0 -2
  782. package/lib/components/DataGrid/constants.d.ts +0 -1
  783. package/lib/components/DataGrid/index.d.ts +0 -2
  784. package/lib/components/DataGrid/styles.css.d.ts +0 -6
  785. package/lib/components/DataGrid/types.d.ts +0 -24
  786. package/lib/components/DataGridActionCell/DataGridActionCell.d.ts +0 -22
  787. package/lib/components/DataGridActionCell/MainAction/MainAction.d.ts +0 -22
  788. package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts +0 -21
  789. package/lib/components/DataGridActionCell/MainAction/MainIconButton/index.d.ts +0 -1
  790. package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.d.ts +0 -1
  791. package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts +0 -10
  792. package/lib/components/DataGridActionCell/MainAction/index.d.ts +0 -1
  793. package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts +0 -22
  794. package/lib/components/DataGridActionCell/SecondaryAction/index.d.ts +0 -1
  795. package/lib/components/DataGridActionCell/index.d.ts +0 -1
  796. package/lib/components/DataGridActionCell/styles.css.d.ts +0 -1
  797. package/lib/components/DataGridActionCell/types.d.ts +0 -100
  798. package/lib/components/DataGridActionCell/useLogic/index.d.ts +0 -1
  799. package/lib/components/DataGridActionCell/useLogic/useLogic.d.ts +0 -10
  800. package/lib/components/DataGridSortHeader/DataGridSortHeader.d.ts +0 -9
  801. package/lib/components/DataGridSortHeader/index.d.ts +0 -2
  802. package/lib/components/DataGridSortHeader/styles.css.d.ts +0 -2
  803. package/lib/components/DataGridSortHeader/types.d.ts +0 -4
  804. package/lib/components/DataList/DataList.d.ts +0 -56
  805. package/lib/components/DataList/EndData/EndData.d.ts +0 -5
  806. package/lib/components/DataList/EndData/constants.d.ts +0 -1
  807. package/lib/components/DataList/EndData/index.d.ts +0 -1
  808. package/lib/components/DataList/EndData/styles.css.d.ts +0 -1
  809. package/lib/components/DataList/ErrorState/ErrorState.d.ts +0 -5
  810. package/lib/components/DataList/ErrorState/constants.d.ts +0 -1
  811. package/lib/components/DataList/ErrorState/index.d.ts +0 -1
  812. package/lib/components/DataList/ErrorState/styles.css.d.ts +0 -1
  813. package/lib/components/DataList/Loader/Loader.d.ts +0 -1
  814. package/lib/components/DataList/Loader/index.d.ts +0 -1
  815. package/lib/components/DataList/Loader/styles.css.d.ts +0 -1
  816. package/lib/components/DataList/NoData/NoData.d.ts +0 -5
  817. package/lib/components/DataList/NoData/constants.d.ts +0 -1
  818. package/lib/components/DataList/NoData/index.d.ts +0 -1
  819. package/lib/components/DataList/ScrollToTopButton/ScrollToTopButton.d.ts +0 -5
  820. package/lib/components/DataList/ScrollToTopButton/index.d.ts +0 -1
  821. package/lib/components/DataList/ScrollToTopButton/styles.css.d.ts +0 -2
  822. package/lib/components/DataList/constants.d.ts +0 -2
  823. package/lib/components/DataList/index.d.ts +0 -1
  824. package/lib/components/DataList/styles.css.d.ts +0 -2
  825. package/lib/components/DatePicker/DatePicker.d.ts +0 -11
  826. package/lib/components/DatePicker/index.d.ts +0 -1
  827. package/lib/components/Description/Description.d.ts +0 -35
  828. package/lib/components/Description/DescriptionContext/DescriptionContext.d.ts +0 -6
  829. package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts +0 -7
  830. package/lib/components/Description/DescriptionContext/DescriptionContextProvider/index.d.ts +0 -1
  831. package/lib/components/Description/DescriptionContext/index.d.ts +0 -2
  832. package/lib/components/Description/Name/Name.d.ts +0 -3
  833. package/lib/components/Description/Name/index.d.ts +0 -1
  834. package/lib/components/Description/Name/styles.css.d.ts +0 -3
  835. package/lib/components/Description/Value/Value.d.ts +0 -22
  836. package/lib/components/Description/Value/index.d.ts +0 -1
  837. package/lib/components/Description/Value/styles.css.d.ts +0 -3
  838. package/lib/components/Description/Value/useLogic/index.d.ts +0 -1
  839. package/lib/components/Description/Value/useLogic/useLogic.d.ts +0 -9
  840. package/lib/components/Description/constants.d.ts +0 -3
  841. package/lib/components/Description/index.d.ts +0 -2
  842. package/lib/components/Description/styles.css.d.ts +0 -3
  843. package/lib/components/Description/useLogic/index.d.ts +0 -1
  844. package/lib/components/Description/useLogic/useLogic.d.ts +0 -9
  845. package/lib/components/Dialog/Dialog.d.ts +0 -10
  846. package/lib/components/Dialog/index.d.ts +0 -1
  847. package/lib/components/Dialog/styles.css.d.ts +0 -9
  848. package/lib/components/Drawer/Drawer.d.ts +0 -11
  849. package/lib/components/Drawer/index.d.ts +0 -1
  850. package/lib/components/Drawer/styles.css.d.ts +0 -7
  851. package/lib/components/DropdownMenu/DropdownMenu.d.ts +0 -24
  852. package/lib/components/DropdownMenu/index.d.ts +0 -1
  853. package/lib/components/DropdownMenu/styles.css.d.ts +0 -12
  854. package/lib/components/ImageCarousel/ImageCarousel.d.ts +0 -10
  855. package/lib/components/ImageCarousel/index.d.ts +0 -1
  856. package/lib/components/ImageCarousel/styles.css.d.ts +0 -9
  857. package/lib/components/Input/Input.d.ts +0 -11
  858. package/lib/components/Input/index.d.ts +0 -1
  859. package/lib/components/Input/styles.css.d.ts +0 -12
  860. package/lib/components/InputOTP/InputOTP.d.ts +0 -6
  861. package/lib/components/InputOTP/Separator/Separator.d.ts +0 -4
  862. package/lib/components/InputOTP/Separator/index.d.ts +0 -1
  863. package/lib/components/InputOTP/Separator/styles.css.d.ts +0 -1
  864. package/lib/components/InputOTP/Slot/Slot.d.ts +0 -2
  865. package/lib/components/InputOTP/Slot/index.d.ts +0 -1
  866. package/lib/components/InputOTP/Slot/styles.css.d.ts +0 -5
  867. package/lib/components/InputOTP/index.d.ts +0 -1
  868. package/lib/components/InputOTP/styles.css.d.ts +0 -4
  869. package/lib/components/Label/Label.d.ts +0 -7
  870. package/lib/components/Label/index.d.ts +0 -1
  871. package/lib/components/Label/label.css.d.ts +0 -4
  872. package/lib/components/MaskField/MaskField.d.ts +0 -6
  873. package/lib/components/MaskField/index.d.ts +0 -1
  874. package/lib/components/PageLayout/Aside/Aside.d.ts +0 -6
  875. package/lib/components/PageLayout/Aside/index.d.ts +0 -1
  876. package/lib/components/PageLayout/Aside/styles.css.d.ts +0 -1
  877. package/lib/components/PageLayout/Content/Content.d.ts +0 -13
  878. package/lib/components/PageLayout/Content/index.d.ts +0 -1
  879. package/lib/components/PageLayout/Content/styles.css.d.ts +0 -2
  880. package/lib/components/PageLayout/Footer/Footer.d.ts +0 -6
  881. package/lib/components/PageLayout/Footer/index.d.ts +0 -1
  882. package/lib/components/PageLayout/Footer/styles.css.d.ts +0 -1
  883. package/lib/components/PageLayout/Header/Header.d.ts +0 -45
  884. package/lib/components/PageLayout/Header/index.d.ts +0 -1
  885. package/lib/components/PageLayout/Header/styles.css.d.ts +0 -8
  886. package/lib/components/PageLayout/PageLayout.d.ts +0 -12
  887. package/lib/components/PageLayout/constants.d.ts +0 -5
  888. package/lib/components/PageLayout/index.d.ts +0 -1
  889. package/lib/components/PageLayout/styles.css.d.ts +0 -1
  890. package/lib/components/Pagination/Pagination.d.ts +0 -12
  891. package/lib/components/Pagination/index.d.ts +0 -1
  892. package/lib/components/Pagination/styles.css.d.ts +0 -2
  893. package/lib/components/Pagination/useLogic.d.ts +0 -9
  894. package/lib/components/PeriodPicker/PeriodPicker.d.ts +0 -10
  895. package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts +0 -8
  896. package/lib/components/PeriodPicker/YearsDropdown/index.d.ts +0 -1
  897. package/lib/components/PeriodPicker/constants.d.ts +0 -2
  898. package/lib/components/PeriodPicker/index.d.ts +0 -1
  899. package/lib/components/PeriodPicker/styles.css.d.ts +0 -3
  900. package/lib/components/PeriodPicker/utils.d.ts +0 -3
  901. package/lib/components/Placeholder/Image/Image.d.ts +0 -6
  902. package/lib/components/Placeholder/Image/index.d.ts +0 -1
  903. package/lib/components/Placeholder/Image/styles.css.d.ts +0 -3
  904. package/lib/components/Placeholder/Placeholder.d.ts +0 -40
  905. package/lib/components/Placeholder/constants.d.ts +0 -22
  906. package/lib/components/Placeholder/index.d.ts +0 -3
  907. package/lib/components/Placeholder/styles.css.d.ts +0 -6
  908. package/lib/components/Placeholder/types.d.ts +0 -1
  909. package/lib/components/Popover/Popover.d.ts +0 -2
  910. package/lib/components/Popover/PopoverContent.d.ts +0 -3
  911. package/lib/components/Popover/index.d.ts +0 -2
  912. package/lib/components/Popover/styles.css.d.ts +0 -1
  913. package/lib/components/RadioGroup/RadioGroup.d.ts +0 -3
  914. package/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -5
  915. package/lib/components/RadioGroup/index.d.ts +0 -2
  916. package/lib/components/RadioGroup/styles.css.d.ts +0 -5
  917. package/lib/components/RangeInput/RangeInput.d.ts +0 -16
  918. package/lib/components/RangeInput/index.d.ts +0 -1
  919. package/lib/components/RangeInput/styles.css.d.ts +0 -6
  920. package/lib/components/RangeInput/useLogic/index.d.ts +0 -1
  921. package/lib/components/RangeInput/useLogic/useLogic.d.ts +0 -12
  922. package/lib/components/ScrollTopButton/ScrollTopButton.d.ts +0 -4
  923. package/lib/components/ScrollTopButton/index.d.ts +0 -1
  924. package/lib/components/ScrollTopButton/styles.css.d.ts +0 -2
  925. package/lib/components/Select/Select.d.ts +0 -21
  926. package/lib/components/Select/index.d.ts +0 -1
  927. package/lib/components/Select/styles.css.d.ts +0 -11
  928. package/lib/components/Slider/Slider.d.ts +0 -3
  929. package/lib/components/Slider/index.d.ts +0 -1
  930. package/lib/components/Slider/styles.css.d.ts +0 -4
  931. package/lib/components/Tabs/Tabs.d.ts +0 -8
  932. package/lib/components/Tabs/TabsContent.d.ts +0 -3
  933. package/lib/components/Tabs/TabsList.d.ts +0 -3
  934. package/lib/components/Tabs/TabsTrigger.d.ts +0 -5
  935. package/lib/components/Tabs/index.d.ts +0 -1
  936. package/lib/components/Tabs/styles.css.d.ts +0 -4
  937. package/lib/components/TextField/TextField.d.ts +0 -7
  938. package/lib/components/TextField/index.d.ts +0 -1
  939. package/lib/components/TextField/styles.css.d.ts +0 -6
  940. package/lib/components/Tooltip/Tooltip.d.ts +0 -13
  941. package/lib/components/Tooltip/index.d.ts +0 -1
  942. package/lib/components/Tooltip/styles.css.d.ts +0 -3
  943. package/lib/components/Typography/Typography.d.ts +0 -15
  944. package/lib/components/Typography/index.d.ts +0 -1
  945. package/lib/components/Typography/styles.css.d.ts +0 -9
  946. package/lib/components/Typography/types.d.ts +0 -3
  947. package/lib/components/index.d.ts +0 -39
  948. package/lib/form/Form/Form.d.ts +0 -45
  949. package/lib/form/Form/index.d.ts +0 -1
  950. package/lib/form/FormMaskField/FormMaskField.d.ts +0 -4
  951. package/lib/form/FormMaskField/index.d.ts +0 -2
  952. package/lib/form/FormMaskField/types.d.ts +0 -4
  953. package/lib/form/FormSubmitButton/FormSubmitButton.d.ts +0 -6
  954. package/lib/form/FormSubmitButton/index.d.ts +0 -1
  955. package/lib/form/FormTextField/FormTextField.d.ts +0 -7
  956. package/lib/form/FormTextField/index.d.ts +0 -2
  957. package/lib/form/FormTextField/types.d.ts +0 -4
  958. package/lib/form/external.d.ts +0 -1
  959. package/lib/form/hooks/index.d.ts +0 -2
  960. package/lib/form/hooks/useForm/index.d.ts +0 -1
  961. package/lib/form/hooks/useForm/useForm.d.ts +0 -4
  962. package/lib/form/hooks/useFormContext/index.d.ts +0 -1
  963. package/lib/form/index.d.ts +0 -7
  964. package/lib/form/types.d.ts +0 -7
  965. package/lib/hooks/index.d.ts +0 -1
  966. package/lib/hooks/useLocalStorage.d.ts +0 -10
  967. package/lib/index.d.ts +0 -3
  968. package/lib/styles/index.d.ts +0 -3
  969. package/lib/styles/reset.css.d.ts +0 -1
  970. package/lib/styles/theme.css.d.ts +0 -78
  971. package/lib/styles/utils.d.ts +0 -2
  972. package/src/index.ts +0 -3
package/lib/index.mjs CHANGED
@@ -1 +1,3232 @@
1
- import{Fragment as e,jsx as l,jsxs as t}from"react/jsx-runtime";import r,{clsx as a}from"clsx";import{ArrowDownNarrowWide as s,ArrowDownUp as n,ArrowDownWideNarrow as i,Calendar1 as o,Check as c,ChevronDown as d,ChevronLeft as _,ChevronRight as m,ChevronUp as h,Circle as u,CircleIcon as y,Copy as p,Ellipsis as g,EllipsisVertical as v,PanelLeftClose as b,PanelLeftOpen as f,X as N}from"lucide-react";import w,{createContext as k,createElement as x,useCallback as C,useContext as z,useEffect as S,useId as D,useLayoutEffect as T,useMemo as I,useRef as P,useState as F}from"react";import{Slot as A}from"@radix-ui/react-slot";import{Root as L}from"@radix-ui/react-label";import{Arrow as M,Content as R,Portal as q,Provider as $,Root as O,Trigger as B}from"@radix-ui/react-tooltip";import{createTheme as E,globalKeyframes as H,globalStyle as V,keyframes as j,style as W,styleVariants as G}from"@vanilla-extract/css";import Y from"embla-carousel-react";import{Indicator as K,Root as U}from"@radix-ui/react-checkbox";import{Content as J,Popover as X,PopoverTrigger as Q,Portal as Z}from"@radix-ui/react-popover";import{CheckboxItem as ee,Content as el,Group as et,Item as er,ItemIndicator as ea,Label as es,Portal as en,RadioGroup as ei,RadioItem as eo,Root as ec,Separator as ed,Sub as e_,SubContent as em,SubTrigger as eh,Trigger as eu}from"@radix-ui/react-dropdown-menu";import{Virtuoso as ey}from"react-virtuoso";import{Close as ep,Content as eg,Description as ev,Overlay as eb,Portal as ef,Root as eN,Title as ew,Trigger as ek}from"@radix-ui/react-dialog";import{Drawer as ex,Root as eC}from"vaul";import{OTPInput as ez}from"input-otp";import{useMask as eS}from"@react-input/mask";import{Indicator as eD,Item as eT,Root as eI}from"@radix-ui/react-radio-group";import{Range as eP,Root as eF,Thumb as eA,Track as eL}from"@radix-ui/react-slider";import{Content as eM,Group as eR,Icon as eq,Item as e$,ItemIndicator as eO,ItemText as eB,Label as eE,Portal as eH,Root as eV,ScrollDownButton as ej,ScrollUpButton as eW,Separator as eG,Trigger as eY,Value as eK,Viewport as eU}from"@radix-ui/react-select";import{Content as eJ,List as eX,Tabs as eQ,Trigger as eZ}from"@radix-ui/react-tabs";import{Controller as e1,FormProvider as e0,useController as e2,useFieldArray as e6,useForm as e5,useFormContext as e8,useWatch as e3}from"react-hook-form";function e4({summary:e,children:r,isOpen:s,onToggle:n,className:i,duration:o=250,easing:c="ease"}){let _=P(null),m=P(null),[h,u]=F(s);return S(()=>{let e=_.current;if(e)if(m.current?.cancel(),s)u(!0),requestAnimationFrame(()=>{let l=e.scrollHeight;e.style.height="0px",e.style.overflow="hidden",m.current=e.animate([{height:0,opacity:0},{height:`${l}px`,opacity:1}],{duration:o,easing:c,fill:"forwards"}),m.current.onfinish=()=>{e.style.height="auto",e.style.overflow="visible"}});else{let l=e.scrollHeight;e.style.height=`${l}px`,e.style.overflow="hidden",e.offsetHeight,m.current=e.animate([{height:`${l}px`,opacity:1},{height:"0px",opacity:0}],{duration:o,easing:c,fill:"forwards"}),m.current.onfinish=()=>{e.style.height="auto",e.style.overflow="visible",u(!1)}}},[s,o,c]),t("details",{open:h,className:a("style__lb1nvu0",i),children:[t("summary",{className:"style__lb1nvu1",onClick:e=>{e.preventDefault(),n()},children:[e,l(d,{size:20,className:a("style__lb1nvu3",{style__lb1nvu4:s})})]}),l("div",{ref:_,className:"style__lb1nvu2",children:r})]})}var e9={default:"default__1af895x1",secondary:"secondary__1af895x2",destructive:"destructive__1af895x3",outline:"outline__1af895x4"};function e7({className:e,variant:t="default",asChild:r=!1,...s}){return l(r?A:"span",{"data-slot":"badge",className:a("style__1af895x0",e9[t],e),...s})}let le={buttonBase:"style__1ersxw10",buttonSizes:{sm:"sm__1ersxw19",md:"md__1ersxw1a",lg:"lg__1ersxw1b",icon:"icon__1ersxw1c",iconSm:"iconSm__1ersxw1d"},buttonVariants:{default:"default__1ersxw14",destructive:"destructive__1ersxw15",outline:"outline__1ersxw16",ghost:"ghost__1ersxw17",link:"link__1ersxw18"},fullWidthStyle:"style__1ersxw13",loading:"style__1ersxw12"},ll=({children:e,startAdornment:r,endAdornment:a,...s})=>t("button",{...s,children:[r&&l("span",{className:"style__1gsf04s0",children:r}),e,a&&l("span",{className:"style__1gsf04s1",children:a})]}),lt=({className:e,variant:t="default",size:r="md",asChild:s=!1,isLoading:n=!1,fullWidth:i,...o})=>l(s?A:ll,{className:a(le.buttonBase,le.buttonVariants[t],le.buttonSizes[r],{[le.fullWidthStyle]:i,[le.loading]:n},e),...o}),{buttonVariants:lr,buttonSizes:la}=le,ls=({className:e,disabled:t,...r})=>l(L,{className:a("Label__c31e140",{style__c31e141:t,style__c31e142:r.error,style__c31e143:r.required},e),...r}),ln=({sideOffset:e=4,alignOffset:t,ref:r,...a})=>l(R,{ref:r,sideOffset:e,...a}),li=({text:e,content:a,children:s,side:n="top",sideOffset:i,alignOffset:o,delayDuration:c=0,className:d,ref:_,...m})=>l($,{delayDuration:c,children:t(O,{...m,children:[l(B,{ref:_,asChild:!0,children:s}),a||e?l(q,{children:t(ln,{className:r("style__izacrl2",d),alignOffset:o,sideOffset:i,hideWhenDetached:!0,side:n,children:[a??l("p",{className:"style__izacrl3",children:e}),m.arrow&&l(M,{className:"style__izacrl4"})]})}):null]})}),lo=({value:e,onChange:r,options:s,size:n,className:i,label:o,multiple:c})=>{let d=!0===c;return t("div",{className:a("style__1iqvz720",i),children:[o&&l(ls,{className:"style__1iqvz723",children:o}),l("div",{className:"style__1iqvz721",children:s.map(t=>{var a;return l(li,{arrow:!0,text:t.title,children:l(lt,{size:n,className:"style__1iqvz722",disabled:t.disabled,onClick:()=>{var l;return l=t.value,void(d?e.includes(l)?r(e.filter(e=>e!==l)):r([...e,l]):r(l))},startAdornment:t.startAdornment,endAdornment:t.endAdornment,variant:(a=t.value,d?e.includes(a):e===a)?"default":"outline",children:t.label},t.value)},t.value)})})]})};var lc={colors:{primary:"var(--colors-primary)",secondary:"var(--colors-secondary)",warning:"var(--colors-warning)",error:"var(--colors-error)",success:"var(--colors-success)",border:"var(--colors-border)",info:"var(--colors-info)",background:{tooltip:"var(--colors-background-tooltip)",paper:"var(--colors-background-paper)",element:"var(--colors-background-element)",elementHover:"var(--colors-background-elementHover)",sidebar:"var(--colors-background-sidebar)"},foreground:{primary:"var(--colors-foreground-primary)",secondary:"var(--colors-foreground-secondary)"},text:{primary:"var(--colors-text-primary)",secondary:"var(--colors-text-secondary)",disabled:"var(--colors-text-disabled)",hint:"var(--colors-text-hint)"}},spacing:{1:"var(--spacing-1)",2:"var(--spacing-2)",3:"var(--spacing-3)",4:"var(--spacing-4)",5:"var(--spacing-5)",6:"var(--spacing-6)",8:"var(--spacing-8)",10:"var(--spacing-10)",12:"var(--spacing-12)",16:"var(--spacing-16)",20:"var(--spacing-20)"},elevation:{1:"var(--elevation-1)",2:"var(--elevation-2)",3:"var(--elevation-3)",4:"var(--elevation-4)",6:"var(--elevation-5)"},fontSize:{xs:"var(--fontSize-xs)",sm:"var(--fontSize-sm)",base:"var(--fontSize-base)",lg:"var(--fontSize-lg)",xl:"var(--fontSize-xl)","2xl":"var(--fontSize-2xl)","3xl":"var(--fontSize-3xl)","4xl":"var(--fontSize-4xl)"},fontWeight:{normal:"var(--fontWeight-normal)",medium:"var(--fontWeight-medium)",semibold:"var(--fontWeight-semibold)",bold:"var(--fontWeight-bold)"},lineHeight:{none:"var(--lineHeight-none)",tight:"var(--lineHeight-tight)",snug:"var(--lineHeight-snug)",normal:"var(--lineHeight-normal)",relaxed:"var(--lineHeight-relaxed)",loose:"var(--lineHeight-loose)"},borderRadius:{sm:"var(--borderRadius-sm)",md:"var(--borderRadius-md)",lg:"var(--borderRadius-lg)"}};let ld=({className:e,elevation:t=2,...r})=>l("div",{style:{boxShadow:lc.elevation[t]},className:a("style__oyalw00",e),...r}),l_=({className:e,...t})=>l("div",{className:a("style__oyalw01",e),...t}),lm=({className:e,...t})=>l("h3",{className:a("style__oyalw02",e),...t}),lh=({className:e,...t})=>l("p",{className:a("style__oyalw03",e),...t}),lu=({className:e,...t})=>l("div",{className:a("style__oyalw04",e),...t}),ly=({className:e,...t})=>l("div",{className:a("style__oyalw05",e),...t}),lp=w.createContext(null);function lg(){let e=w.useContext(lp);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}var lv={horizontal:"horizontal__2d6ocq3",vertical:"vertical__2d6ocq4"};function lb({className:r,...s}){let{orientation:n="horizontal",canScrollNext:i,scrollNext:o,canScrollPrev:c,scrollPrev:u}=lg();return t(e,{children:[l("button",{className:a("style__2d6ocq1 style__2d6ocq0",lv[n]),type:"button","data-slot":"carousel-next",disabled:!i,onClick:o,...s,children:"horizontal"===n?l(m,{}):l(d,{})}),l("button",{type:"button",className:a("style__2d6ocq2 style__2d6ocq0",lv[n]),"data-slot":"carousel-previous",disabled:!c,onClick:u,...s,children:"horizontal"===n?l(_,{}):l(h,{})})]})}var lf={horizontal:"horizontal__i1lems1",vertical:"vertical__i1lems2"};function lN(e){let{carouselRef:t,orientation:r="horizontal"}=lg();return l("div",{className:"style__i1lems0",ref:t,"data-slot":"carousel-content",children:l("div",{className:lf[r],...e})})}var lw={horizontal:"horizontal__e2zpp61 style__e2zpp60",vertical:"vertical__e2zpp62 style__e2zpp60"},lk={horizontal:"horizontal__e2zpp64 style__e2zpp63",vertical:"vertical__e2zpp65 style__e2zpp63"};let lx=({api:e,orientation:t})=>{let{selectedIndex:r,scrollSnaps:s,onDotButtonClick:n}=(e=>{let[l,t]=F(0),[r,a]=F([]),s=C(l=>{e&&e.scrollTo(l)},[e]),n=C(e=>{e&&a(e.scrollSnapList())},[]),i=C(e=>{e&&t(e.selectedScrollSnap())},[]);return S(()=>{e&&(n(e),i(e),e.on("reInit",n).on("reInit",i).on("select",i))},[e,n,i]),{selectedIndex:l,scrollSnaps:r,onDotButtonClick:s}})(e);return l("div",{className:lw[t],children:s.map((e,s)=>l("button",{type:"button",className:a(lk[t],{style__e2zpp66:s===r}),onClick:()=>n(s)},e))})};function lC(e){return l("div",{className:"style__1gif6yr0",role:"group","aria-roledescription":"slide","data-slot":"carousel-item",...e})}function lz({width:e="100%",height:r="100%",...s}){let{canScrollNext:n,canScrollPrev:i,scrollNext:o,scrollPrev:c,api:d,opts:_,orientation:m,carouselRef:h,handleKeyDown:u,data:y,isShowButtons:p,isShowDots:g}=(({orientation:e="horizontal",opts:l,setApi:t,plugins:r,data:a,showDots:s,showArrows:n})=>{let[i,o]=Y({...l,axis:"horizontal"===e?"x":"y"},r),[c,d]=F(!1),[_,m]=F(!1),h=!!(n&&a.length>1),u=!!(s&&a.length>1),y=C(e=>{e&&(d(e.canScrollPrev()),m(e.canScrollNext()))},[]),p=C(e=>{o&&o.scrollTo(e)},[o]),g=C(()=>{o?.scrollPrev()},[o]),v=C(()=>{o?.scrollNext()},[o]),b=C(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),v())},[g,v]);return S(()=>{o&&t&&t(o)},[o,t]),S(()=>{if(o)return y(o),o.on("reInit",y),o.on("select",y),()=>{o?.off("select",y)}},[o,y]),{carouselRef:i,api:o,scrollPrev:g,scrollNext:v,canScrollPrev:c,canScrollNext:_,handleKeyDown:b,opts:l,orientation:e,onDotButtonClick:p,isShowButtons:h,isShowDots:u,data:a}})(s);return l(lp.Provider,{value:{carouselRef:h,api:d,opts:_,orientation:m||(_?.axis==="y"?"vertical":"horizontal"),scrollPrev:c,scrollNext:o,canScrollPrev:i,canScrollNext:n},children:t("div",{onKeyDownCapture:u,className:a("Carousel__1jbydv50",s.className),"data-slot":"carousel",style:{width:e,height:r},children:[l(lN,{style:{width:e,height:r},children:y.map(e=>l(lC,{children:s.renderItem(e)},`${e[s.keyId]}`))}),p&&l(lb,{}),g&&l(lx,{api:d,orientation:m})]})})}let lS=({className:e,...t})=>l(U,{className:a("style__b7yo4k0",e),...t,children:l(K,{className:"style__b7yo4k1",children:l(c,{className:"style__b7yo4k2"})})});var lD={determinate:"determinate__m6b9n25",indeterminate:"indeterminate__m6b9n26"},lT={primary:"primary__m6b9n27",secondary:"secondary__m6b9n28",inherit:"inherit__m6b9n29"};let lI=({size:e=30,thickness:a=2.6,color:s="primary",value:n=0,variant:i="indeterminate",className:o})=>{let c=(e-a)/2,d=2*Math.PI*c;return l("div",{className:r("style__m6b9n22",lD[i],lT[s],o),style:{width:e,height:e},children:t("svg",{className:"style__m6b9n23",viewBox:`0 0 ${e} ${e}`,children:[l("title",{children:"Progress bar"}),l("circle",{className:r("style__m6b9n24","determinate"===i&&lD.determinate),cx:e/2,cy:e/2,r:c,fill:"none",strokeWidth:a,strokeDasharray:d,strokeDashoffset:"determinate"===i?d*(1-n/100):.25*d})]})})},lP=({className:e,align:t="center",sideOffset:r=4,...s})=>l(Z,{children:l(J,{align:t,sideOffset:r,className:a("style__1xy4jvu2",e),...s})});var lF={left:"left__1sba6zok",center:"center__1sba6zol",right:"right__1sba6zom",justify:"justify__1sba6zon"},lA={primary:"primary__1sba6zoc",secondary:"secondary__1sba6zod",disabled:"disabled__1sba6zoe",success:"success__1sba6zof",error:"error__1sba6zog",warning:"warning__1sba6zoh",info:"info__1sba6zoi",muted:"muted__1sba6zoj"},lL={h1:"h1__1sba6zo0",h2:"h2__1sba6zo1",h3:"h3__1sba6zo2",h4:"h4__1sba6zo3",h5:"h5__1sba6zo4",h6:"h6__1sba6zo5",subtitle1:"subtitle1__1sba6zo6",subtitle2:"subtitle2__1sba6zo7",body1:"body1__1sba6zo8",body2:"body2__1sba6zo9",caption:"caption__1sba6zoa",overline:"overline__1sba6zob"},lM={lowercase:"lowercase__1sba6zou",uppercase:"uppercase__1sba6zov",capitalize:"capitalize__1sba6zow"},lR={block:"block__1sba6zoo",inline:"inline__1sba6zop"},lq={none:"none__1sba6zox",underline:"underline__1sba6zoy",lineThrough:"lineThrough__1sba6zoz"},l$={normal:"normal__1sba6zoq",medium:"medium__1sba6zor",semibold:"semibold__1sba6zos",bold:"bold__1sba6zot"};let lO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",overline:"span"},lB=({className:e,variant:t="body1",component:r,color:s="primary",align:n="left",display:i="inline",weight:o="normal",transform:c,decoration:d="none",gutterBottom:_,children:m,...h})=>l(r||lO[t||"body1"],{className:a(lq[d],lL[t],lA[s],l$[o],c&&lM[c],lR[i],lF[n],{style__1sba6zo10:_},e),...h,children:m}),lE=e=>{let{open:r,onActionComponentClick:s,onCancel:n,confirmButtonProps:i,onOpenChange:o}=(({skipConfirm:e,onConfirm:l,confirmButtonProps:t})=>{let[r,a]=F(!1);return{open:r,onActionComponentClick:()=>{e?l():a(!0)},confirmButtonProps:{variant:t?.isAccented?"destructive":"default",size:"sm",onClick:()=>{a(!1),l()}},onCancel:()=>{a(!1)},onOpenChange:e=>{a(e)}}})(e),{text:c,confirmButtonProps:d,popoverProps:_,actionComponent:m}=e,{text:h="Подтвердить"}=d||{},{side:u="bottom",align:y="center"}=_||{};return t(X,{open:r,onOpenChange:o,children:[l(Q,{asChild:!0,children:m({onClick:s})}),l(lP,{side:u,align:y,className:a("style__1q1uhgp2",{style__1q1uhgp3:!!c}),children:t("div",{className:"style__1q1uhgp1",children:[c&&l(lB,{children:c}),t("div",{className:"style__1q1uhgp0",children:[l(lt,{size:"sm",variant:"ghost",onClick:n,children:"Отмена"}),l(lt,{...i,children:h})]})]})})]})};var lH={sm:"sm__1o97kvm1",md:"md__1o97kvm2",lg:"lg__1o97kvm3"};let lV=e=>l("img",{alt:e.alt,src:e.src,className:r("style__1o97kvm0",lH[e.size||"md"],e.className),width:e.width,height:e.height}),lj={sm:"239px",md:"323px",lg:"458px"},lW={sm:"119px",md:"161px",lg:"229px"},lG={sm:"384px",md:"400px",lg:"460px"},lY={sm:"subtitle1",md:"h6",lg:"h5"};var lK={sm:"sm__1nenzg01",md:"md__1nenzg02",lg:"lg__1nenzg03"};let lU=({className:e,title:a,imgSrc:s,imgAlt:n,description:i,actions:o,size:c="sm",renderImage:d})=>{let _=I(()=>d||lV,[d]);return t("div",{className:r("style__1nenzg00",lK[c],e),children:[t("div",{className:"style__1nenzg04",style:{maxWidth:lG[c]},children:[s&&l(_,{src:s,alt:n,width:lj[c],height:lW[c],size:c}),l(lB,{align:"center",color:"secondary",variant:lY[c],children:a}),i&&l(lB,{className:"style__1nenzg05",component:"div",variant:"body1",children:i})]}),o&&l("footer",{className:"style__1nenzg06",children:o})]})},lJ=({isLoading:e,isError:t,isCustom:r,errorState:a,customState:s,children:n,loadingContent:i=l(lI,{color:"primary"})})=>{if(e)return l("div",{className:"style__nan0ao0",children:i});if(r&&s)return l(lU,{...s});if(t&&a){let{title:e="Произошла ошибка",imgAlt:t,imgSrc:r,errorList:s,onRetry:n,actions:i=l(lt,{onClick:n,children:"Попробовать снова"})}=a,o=s.map(e=>l(lB,{component:"p",children:e},e));return l(lU,{title:e,description:o,imgAlt:t,imgSrc:r,actions:i})}return n},lX=e=>{let{children:r,copyPosition:s="right",copyText:n,isShowCopyText:i,color:o,className:c,...d}=e,_=()=>l(p,{className:"style__1wpx85c1"}),{tooltipOpen:m,handleMouseEnter:h,handleMouseLeave:u,handleClick:y,tooltipTitle:g,isIconOnLeft:v}=(({children:e,copyText:l,isShowCopyText:t,copyPosition:r})=>{let[a,s]=F("Скопировать"),[n,i]=F(!1);return{handleMouseLeave:()=>{"Скопировать"!==a&&setTimeout(()=>{s("Скопировать")},100),i(!1)},handleClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(l||("string"==typeof e?e:"")).then(()=>s("Скопировано")).catch(()=>s("Ошибка копирования"))},tooltipTitle:t?`${a}: ${l}`:a,isIconOnLeft:"left"===r,tooltipOpen:n,handleMouseEnter:()=>{i(!0)}}})(e);return l(li,{open:m,arrow:!0,text:g,side:"bottom",children:t(lB,{onMouseLeave:u,onMouseEnter:h,onClick:y,component:"div",color:o,className:a("style__1wpx85c0",c),...d,children:[v&&_(),r,!v&&_()]})})},lQ=k({pinned:!0,hovered:!1,togglePinned:()=>{}}),lZ=()=>z(lQ),l1=({children:e,className:t})=>{let{pinned:r,togglePinned:s}=(()=>{let[e,l]=((e,l,t)=>{if(void 0===window)return[l,()=>{},()=>{}];if(!e)throw Error("useLocalStorage key may not be falsy");let r=JSON.parse,a=P(e=>{try{let t=JSON.stringify,a=localStorage.getItem(e);if(null!==a)return r(a);return l&&localStorage.setItem(e,t(l)),l}catch{return l}}),[s,n]=F(()=>a.current(e));T(()=>n(a.current(e)),[e]);let i=C(l=>{try{let t,a="function"==typeof l?l(s):l;if(void 0===a)return;t=JSON.stringify(a),localStorage.setItem(e,t),n(r(t))}catch{}},[e,n]);return[s,i,C(()=>{try{localStorage.removeItem(e),n(void 0)}catch{}},[e,n])]})("dashboard::pinned",!1);return{pinned:e,togglePinned:()=>l(!e)}})();return l(lQ.Provider,{value:{pinned:r,togglePinned:s},children:l("div",{className:a("DashboardLayout__113u7x50",t),children:e})})};function l0({row:e,column:t,rowIndex:r,height:s}){let{align:n,cellColor:i,isDisabled:o}=t;return l("td",{align:n??"left",style:{backgroundColor:i?.(e),height:s,width:t.width},className:a("style__1047swj0",{style__1047swj1:o},t.cellClassName?.(e)),children:l(()=>t.renderCell?t.renderCell(e,r):t.format?t.format(e)||"—":t.field?`${e[t.field]||"—"}`:"—",{})})}function l2({row:e,rowHeight:t,onRowClick:r,columns:s,rowIndex:n,rowId:i}){let o=C(()=>{r?.(e)},[r,e]);return l("tr",{onClick:o,onKeyDown:o,className:a("style__gsm9mv0",{style__gsm9mv1:!!r}),children:s.map((r,a)=>l(l0,{row:e,rowIndex:n,column:r,height:t},`${i}-${a}`))})}function l6({isLoading:e,isEmpty:t,columnsLength:r,emptyState:a={text:"Нет данных"},errorState:s={text:"Произошла ошибка"},isError:n,onRetry:i}){let o=({children:e})=>l("tr",{className:"style__15m2ib80",children:l("td",{colSpan:r,align:"center",children:e})});if(e)return l(o,{children:l("span",{className:"style__15m2ib81",children:l(lI,{})})});if(t){let{imgSrc:e,imgAlt:t,text:r}=a;return l(o,{children:l(lU,{title:r,imgSrc:e,imgAlt:t})})}if(n){let{imgSrc:e,imgAlt:t,text:r}=s;return l(o,{children:l(lU,{title:r,imgSrc:e,imgAlt:t,actions:i?l(lt,{variant:"outline",onClick:i,children:"Попробовать снова"}):void 0})})}return null}l1.Sidebar=({width:e="16rem",header:r,footer:s,content:n,className:i})=>{let{pinned:o}=lZ();return t("div",{style:{width:o?e:0},className:"style__1low90p0",children:[l("span",{className:"SidebarTrigger__1low90p1"}),t("aside",{style:{width:e},className:a("SidebarContainer__1low90p2",{style__1low90p3:!o},i),children:[r&&l("header",{className:"SidebarHeader__1low90p4",children:r}),l("div",{className:"SidebarContent__1low90p6",children:n}),s&&l("footer",{className:"SidebarFooter__1low90p5",children:s})]})]})},l1.Main=({children:e,className:t})=>l("main",{className:a("style__whkxou0",t),children:e});var l5="style__82af400";function l8({isError:e,isLoading:t,emptyState:r,errorState:a,columns:s,rows:n,rowHeight:i,keyId:o,onRowClick:c}){let d=0===n.length;return e||t||d?l("tbody",{className:l5,children:l(l6,{emptyState:r,errorState:a,isEmpty:d,isError:e,isLoading:t,columnsLength:s.length})}):l("tbody",{className:l5,children:n.map((e,t)=>{let r=String(e[o]);return l(l2,{row:e,rowId:r,rowHeight:i,columns:s,onRowClick:c,rowIndex:t},e[o])})})}function l3({children:e,className:t}){return l("footer",{className:a("style__2s55b60",t),children:e})}function l4({column:e,height:t,width:r}){return l("th",{style:{color:e.color,height:t,width:r},align:e.align??"left",title:e.title,className:"style__uma6hu0",children:e.renderHeaderCell?.(e)||e.title})}function l9({columns:e,height:t,sticky:r}){return l("thead",{children:l("tr",{className:a({style__fkgoub0:r}),children:e.map(e=>l(l4,{column:e,height:t,width:e.width},e.title))})})}function l7({rows:e,columns:r,height:s="100%",className:n,rowHeight:i=40,headerHeight:o=40,keyId:c,onRowClick:d,isLoading:_,isDisabled:m,isError:h,emptyState:u,errorState:y,footer:p,title:g,stickyHeader:v,onRetry:b}){let f=_||h||0===e.length;return t("div",{"data-slot":"data-grid",style:{height:s},className:a("style__1gqvluf0",n),children:[t("table",{className:a("style__1gqvluf1",{style__1gqvluf3:m,style__1gqvluf4:_,style__1gqvluf2:f},n),children:[g&&l("caption",{className:"style__1gqvluf5",children:g}),l(l9,{columns:r,height:o,sticky:v}),l(l8,{rows:e,columns:r,rowHeight:i,keyId:c,onRowClick:d,isLoading:_,emptyState:u,errorState:y,isError:h,onRetry:b})]}),p&&l(l3,{children:p})]})}var te="style__1ib8wkt3";let tl=ec,tt=eu,tr=et,ta=en,ts=e_,tn=ei,ti=({className:e,inset:a,children:s,...n})=>t(eh,{className:r("style__1ib8wkt2",{inset:a},e),...n,children:[s,l(m,{className:te})]}),to=({className:e,...t})=>l(em,{className:r("style__1ib8wkt4",e),...t}),tc=({className:e,sideOffset:t=4,...a})=>l(en,{children:l(el,{sideOffset:t,className:r("style__1ib8wkt5",e),...a})}),td=({className:e,inset:t,...a})=>l(er,{className:r("style__1ib8wkt6",{inset:t},e),...a}),t_=({className:e,children:a,checked:s,...n})=>t(ee,{className:r("style__1ib8wkt7",e),checked:s,...n,children:[l("span",{className:"style__1ib8wkt9",children:l(ea,{children:l(c,{className:te})})}),a]}),tm=({className:e,children:a,...s})=>t(eo,{className:r("style__1ib8wkt8",e),...s,children:[l("span",{className:"style__1ib8wkta",children:l(ea,{children:l(u,{className:te})})}),a]}),th=({className:e,inset:t,...a})=>l(es,{className:r("style__1ib8wktb",{inset:t},e),...a}),tu=({className:e,...t})=>l(ed,{className:r("style__1ib8wktc",e),...t}),ty=({className:e,...t})=>l("span",{className:r("style__1ib8wktd",e),...t}),tp=t=>{let{tooltipProps:r}=(({action:e})=>{let{isLoading:l,disabledReason:t,name:r}=e,[a,s]=F(!1);return S(()=>{l&&s(!1)},[l]),{tooltipProps:{text:t||r,open:a,onOpenChange:e=>s(e)}}})(t),{action:a,onActionClick:s,isDisabled:n,tooltipPlacement:i}=t,{name:o,icon:c,needConfirm:d,confirmText:_,confirmButtonProps:m,disabled:h,isLoading:u,onClick:y}=a,p=e=>l(li,{arrow:!0,side:i,...r,children:l(lt,{disabled:n||h,isLoading:u,variant:"ghost",size:"icon",...e,children:c})},o);return l(e,{children:d?l(lE,{text:_,confirmButtonProps:m,actionComponent:e=>p(e),onConfirm:s(y)}):p({onClick:s(y)})})},tg=({action:e,onActionClick:r,isDisabled:a,tooltipPlacement:s})=>{if("actions"in e){let{disabled:n,icon:i,name:o,disabledReason:c,actions:d,isLoading:_}=e;return t(tl,{children:[l(tt,{asChild:!0,children:l(li,{text:c||o,side:s,arrow:!0,children:l(lt,{variant:"ghost",size:"icon",isLoading:_,disabled:a||n,children:i})},o)}),l(tc,{children:d.map(({name:e,onClick:t,...a})=>x(td,{...a,key:e,asChild:!0},l(lt,{size:"sm",onClick:r(t),children:e})))})]})}return l(tp,{action:e,onActionClick:r,isDisabled:a,tooltipPlacement:s})},tv=({actions:e,onActionClick:r,tooltipPlacement:a,isDisabled:s})=>t(tl,{children:[l(tt,{asChild:!0,children:l(lt,{disabled:s,variant:"ghost",size:"icon",children:l(v,{})})}),l(tc,{children:e.map(e=>{let{onClick:t,name:s,disabledReason:n,isLoading:i}=e;return l(td,{asChild:!0,children:l(li,{arrow:!0,side:a,text:n,children:l(lt,{onClick:r(t),isLoading:i,variant:"ghost",size:"sm",fullWidth:!0,children:s})})},s)})})]}),tb=e=>{let{isDisabledAction:r,handleWrapperClick:a,handleActionClick:s}=(({row:e,actions:l})=>{let{main:t,secondary:r}=l,a=[...t,...r||[]].find(e=>e.isBlockingOperation&&e.isLoading);return{isDisabledAction:!!a,handleActionClick:C(l=>()=>{l?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}})(e),{actions:n}=e,{main:i,secondary:o}=n;return t("div",{onClick:a,onKeyDown:a,className:"style__y44ln70",children:[i.map(e=>l(tg,{action:e,onActionClick:s,isDisabled:r,tooltipPlacement:"top"},e.name)),o&&l(tv,{actions:o,onActionClick:s,tooltipPlacement:"left",isDisabled:r})]})};var tf={left:"left__o752f01",center:"center__o752f02",right:"right__o752f03",justify:"justify__o752f04"};function tN({sorting:e,setSorting:r,column:{title:o,field:c,align:d="left"},className:_}){return c?t("button",{type:"button",className:a("style__o752f00",tf[d],_),onClick:()=>{e.key===c?r({key:c,order:"asc"===e.order?"desc":"asc"}):r({key:c,order:"asc"})},children:[o,e.key===c?"asc"===e.order?l(s,{size:16}):l(i,{size:16}):l(n,{size:16})]}):null}let tw="Вы достигли конца списка",tk=({endOfScrollMsg:e=tw})=>l("li",{className:"style__1syvw5e0",children:l(lB,{children:e})}),tx=({onRetry:e})=>t("li",{className:"style__qlujai0",children:[l(lB,{align:"center",children:"Ошибка загрузки"}),l(lt,{size:"sm",onClick:e,children:"Попробовать снова"})]}),tC=()=>l("li",{className:"style__111czea0",children:l(lI,{color:"primary"})}),tz=({noDataImgSrc:e})=>l(lU,{title:"Нет данных",imgSrc:e}),tS=({onClick:e,isVisible:t})=>l(lt,{onClick:e,size:"icon",variant:"outline",className:a("style__1jg5nd90",{style__1jg5nd91:t}),children:l(h,{})}),tD=({data:r,keyId:s,className:n,itemContent:i,noDataPlaceholder:o,endOfScrollMsg:c,errorState:d,isLoading:_,isError:m,isEndReached:h,onRetry:u,onEndReached:y,ref:p})=>{let g=P(null),v=p||g,[b,f]=F(!1),N=C(e=>{e.startIndex>2?f(!0):f(!1)},[]),w=C(()=>v.current?.scrollToIndex({index:0,align:"start",behavior:"smooth"}),[v]),k=C(()=>{!h&&y&&y()},[h,y]),x=!!r?.length;return x||_||m?t(lJ,{isLoading:_&&!x,isError:m&&!x,errorState:d,children:[l(ey,{className:a("style__1ezen7g0",n),style:{height:"100%"},data:r,ref:v,overscan:30,endReached:k,rangeChanged:N,itemContent:(e,t)=>l("li",{children:i?.(t,{index:e,className:a("style__1ezen7g1","datalist_item")})},t[s]),components:{Footer:()=>t(e,{children:[_&&l(tC,{}),m&&l(tx,{onRetry:u}),h&&l(tk,{endOfScrollMsg:c})]})}}),l(tS,{isVisible:b,onClick:w})]}):o?l(e,{children:o}):l(tz,{})},tT="descriptionRoot",tI=k({leader:!1,separator:":",direction:"default"}),tP=({children:e,leader:t,separator:r,direction:a})=>l(tI.Provider,{value:{leader:t,separator:r,direction:a},children:e});var tF={row:"row__1lociyw1",column:"column__1lociyw2"},tA={spaceBetween:"spaceBetween__1lociyw3",start:"start__1lociyw4"},tL="style__sdcsnp2";let tM=e=>{let{descriptionContextProviderProps:t,direction:r}=(({direction:e="row",separator:l=":"})=>({descriptionContextProviderProps:{separator:"column"===e?"":l},direction:e}))(e),{justifyContent:s="start",component:n="dl",children:i,leader:o=!1,className:c}=e;return l(tP,{leader:o,direction:r,...t,children:l(n,{className:a("style__1lociyw0",tF[r],tA[s],tT,c),children:i})})};tM.Name=({children:r,color:s="secondary",...n})=>{let{leader:i,separator:o}=z(tI);return t(e,{children:[l("dt",{className:a("style__1tsgk1i0",{style__1tsgk1i1:i}),children:t(lB,{...n,color:s,children:[r,!i&&o]})}),i&&l("div",{className:"style__1tsgk1i2"})]})},tM.Value=e=>{let{valueToRender:t,isDefaultValueRender:a,leader:s}=(({canCopy:e,children:l,stub:t="—"})=>{let{leader:r,direction:a}=z(tI);return{valueToRender:l||t,isDefaultValueRender:!e||!l,leader:r,direction:a}})(e),{copyPosition:n="right",copyText:i,canCopy:o,children:c,stub:d,..._}=e;return a?l(lB,{className:r("style__sdcsnp1",{[tL]:s}),component:"dd",..._,children:t}):l("dd",{className:"style__sdcsnp0",children:l(lX,{className:r({[tL]:s}),copyPosition:n,copyText:i,..._,children:t})})};let tR=({title:e,description:a="",trigger:s,className:n,footer:i,children:o,...c})=>t(eN,{...c,children:[s&&l(ek,{asChild:!0,children:s}),t(ef,{children:[l(eb,{className:r("style__8bkmbe2")}),t(eg,{className:r("style__8bkmbe5",n),children:[t("div",{className:r("style__8bkmbe8",{style__8bkmbe9:!!a}),children:[l(ew,{className:"style__8bkmbeb",children:e}),l(ev,{className:"style__8bkmbec",children:a}),c.onOpenChange&&t(ep,{className:"style__8bkmbe6",children:[l(N,{size:24}),l("span",{className:"style__8bkmbe7",children:"Close"})]})]}),o,i&&l("div",{className:"style__8bkmbea",children:i})]})]})]}),tq=({children:e,trigger:r,className:s,title:n,description:i="",footer:o,closeButton:c,...d})=>t(eC,{...d,children:[r&&l(ex.Trigger,{"data-slot":"drawer-trigger",asChild:!0,children:r}),t(ex.Portal,{"data-slot":"drawer-portal",children:[l(ex.Overlay,{"data-slot":"drawer-overlay",className:"style__ccss502"}),t(ex.Content,{"data-slot":"drawer-content",className:a("group/drawer-content","style__ccss503",s),children:[l("div",{className:"style__ccss504"}),t("div",{"data-slot":"drawer-header",className:"style__ccss505",children:[l(ex.Title,{"data-slot":"drawer-title",className:"style__ccss507",children:n}),l(ex.Description,{"data-slot":"drawer-description",className:"style__ccss508",children:i})]}),e,t("div",{"data-slot":"drawer-footer",className:"style__ccss506",children:[o,c&&l(ex.Close,{"data-slot":"drawer-close",asChild:!0,children:c})]})]})]})]});var t$="style__a5l83v0",tO="style__a5l83v4";let tB=({images:r=[],autoPlay:s=!1,interval:n=5e3})=>{let[i,o]=F(0);return(S(()=>{if(!s)return;let e=setInterval(()=>{o(e=>e===r.length-1?0:e+1)},n);return()=>clearInterval(e)},[s,r.length,n]),0===r.length)?l("div",{className:t$,children:"Нет изображений для отображения"}):t("div",{className:t$,children:[l("div",{className:"style__a5l83v1",style:{transform:`translateX(-${100*i}%)`},children:r.map((e,t)=>l("div",{className:"style__a5l83v2",children:l("img",{src:e.src,alt:e.alt||`Slide ${t+1}`,className:"style__a5l83v3"})},e.src))}),r.length>1&&t(e,{children:[l("button",{type:"button",className:a(tO,"style__a5l83v5"),onClick:()=>{o(e=>0===e?r.length-1:e-1)},children:l(_,{size:24})}),l("button",{type:"button",className:a(tO,"style__a5l83v6"),onClick:()=>{o(e=>e===r.length-1?0:e+1)},children:l(m,{size:24})}),l("div",{className:"style__a5l83v7",children:r.map(({src:e},t)=>l("button",{type:"button",className:`style__a5l83v8 ${i===t?"active":""}`,onClick:()=>{o(t)}},e))})]})]})};var tE={sm:"sm__1blk89u9",md:"md__1blk89ua",lg:"lg__1blk89ub"},tH="style__1blk89uc",tV={outlined:"outlined__1blk89u1",standard:"standard__1blk89u2"},tj="style__1blk89u6";let tW=({error:e,variant:r="outlined",size:s="md",startAdornment:n,endAdornment:i,className:o,disabled:c,fullWidth:d,value:_,ref:m,...h})=>t("div",{className:a("Input__1blk89u0",tV[r],{style__1blk89u7:e},{[tj]:c},{style__1blk89u3:d},o),children:[n&&l("span",{className:tH,children:n}),l("input",{className:a("style__1blk89u8",tE[s],{[tj]:c,style__1blk89ud:!!n,style__1blk89ue:!!i}),ref:m,disabled:c,value:_||"",...h}),i&&l("span",{className:tH,children:i})]}),tG=({separator:e="•",...t})=>l("div",{...t,children:l("span",{className:"style__te1pgr0",children:e})}),tY=({char:e,hasFakeCaret:r,isActive:s,...n})=>t("div",{className:a("style__rtks2g0",{style__rtks2g1:s}),...n,children:[e,r&&l("div",{className:"style__rtks2g2",children:l("div",{className:"style__rtks2g4"})})]});var tK="style__1iixe0l2";let tU=({className:r,containerClassName:s,disabled:n,...i})=>l(ez,{containerClassName:a("style__1iixe0l0",{style__1iixe0l3:n},s),className:a("style__1iixe0l1",r),render:({slots:r})=>r.length%2!=0?l("div",{className:tK,children:r.map((e,t)=>l(tY,{...e},`${t}-${e.char}`))}):t(e,{children:[l("div",{className:tK,children:r.slice(0,r.length/2).map((e,t)=>l(tY,{...e},`${t}-${e.char}`))}),l(tG,{}),l("div",{className:tK,children:r.slice(r.length/2).map((e,t)=>l(tY,{...e},`${t}-${e.char}`))})]}),...i}),tJ=({label:e,helperText:r,className:s,disabled:n,fullWidth:i,ref:o,labelClassName:c,...d})=>t("div",{className:a("style__kqu4y20",{style__kqu4y25:i},s),children:[e&&l(ls,{htmlFor:d.id||e,disabled:n,required:d.required,error:d.error,className:a("style__kqu4y21",c),children:e}),l(tW,{ref:o,disabled:n,fullWidth:i,id:d.id||e,...d}),r&&l(lB,{variant:"caption",className:a("style__kqu4y22",{style__kqu4y24:d.error,style__kqu4y23:n}),children:r})]}),tX=({maskProps:e,ref:t,...r})=>{let a=eS(e);return l(tJ,{ref:C(e=>{a.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[a,t]),...r})},tQ=({children:e,className:t})=>l("div",{className:a("style__adrl250",t),children:e});tQ.Header=e=>{let{title:r,subtitle:s,breadcrumbs:n,actions:i,backButton:o,className:c}=e,{pinned:d,togglePinned:m}=lZ();return S(()=>{"string"==typeof r&&(document.title=r)},[r]),t("header",{className:a("page_header","style__nvcxbd1",c),children:[t("div",{className:"style__nvcxbd2",children:[l(li,{text:d?"Развернуть":"Свернуть",children:l(lt,{variant:"ghost",size:"icon",onClick:m,children:d?l(f,{}):l(b,{})})}),o&&l(li,{text:"Назад",children:l(lt,{...o,variant:"ghost",children:l(_,{})})})]}),n&&l("div",{className:"Breadcrumbs__nvcxbd0",children:n}),l("div",{className:"style__nvcxbd3",children:i}),"string"==typeof r?l(lB,{className:"style__nvcxbd4",component:"h1",variant:"h3","aria-level":1,children:r}):l("div",{className:"style__nvcxbd5",children:r}),s&&"string"==typeof s&&l(lB,{className:"style__nvcxbd6","aria-level":2,children:s}),s&&"string"!=typeof s&&l("div",{className:"style__nvcxbd7",children:s})]})},tQ.Content=e=>{let{className:t,children:r,isFullHeight:s=!0}=e;return l("article",{className:a("page-content","style__1hr0uh00",{style__1hr0uh01:s},t),children:r})},tQ.Footer=e=>{let{children:t,className:r}=e;return l("footer",{className:a("style__1bd8jnw0",r),children:t})},tQ.Aside=({children:e,className:t})=>l("aside",{className:a("PageLayoutAside__1un4hm80",t,"page_aside"),children:e});let tZ=(e,l)=>Array.from({length:l-e+1},(l,t)=>t+e);function t1(e){let{onPageChange:r,totalCount:a,siblingCount:s=1,currentPage:n,pageSize:i,size:o="icon"}=e,c=(({totalCount:e,pageSize:l,siblingCount:t=1,currentPage:r})=>I(()=>{if(l<=0||e<=0)return[];let a=Math.ceil(e/l);if(t+5>=a)return tZ(1,a);let s=Math.max(r-t,1),n=Math.min(r+t,a),i=s>2,o=n<a-2;return!i&&o?[...tZ(1,3+2*t),null,a]:i&&!o?[1,null,...tZ(a-(3+2*t)+1,a)]:i&&o?[1,null,...tZ(s,n),null,a]:[]},[e,l,t,r]))({currentPage:n,totalCount:a,siblingCount:s,pageSize:i});if(0===n||c&&c.length<2)return null;let d=c.at(-1);return t("nav",{className:"style__p708oq0",children:[l(lt,{variant:"ghost",size:o,onClick:()=>{r(n-1)},disabled:1===n,children:l(_,{})}),c?.map((e,t)=>e?l(lt,{size:o,variant:e===n?"default":"outline",onClick:()=>r(+e),children:e},`${e}${t.toString()}`):l("span",{className:"style__p708oq1",children:l(g,{})})),l(lt,{variant:"ghost",size:o,onClick:()=>{r(n+1)},disabled:n===d,children:l(m,{})})]})}let t0=["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],t2=["I квартал","II квартал","III квартал","IV квартал"],t6=e=>Math.ceil(e/3);function t5({year:e,onSelect:r,minDate:a,maxDate:s}){let n=Array.from({length:s.getFullYear()-a.getFullYear()+1},(e,l)=>a.getFullYear()+l);return t(ro,{onValueChange:e=>{r?.(Number(e))},value:e.toString(),children:[l(r_,{children:l(rd,{placeholder:e.toString()})}),l(ru,{children:n.map(e=>l(rp,{value:e.toString(),children:l(lB,{align:"center",variant:"subtitle1",transform:"capitalize",children:e})},e))})]})}let t8=e=>{let{label:r,disabled:a=!1,value:s,onSelect:n,type:i="month",placeholder:c="month"===i?"Выберите месяц":"Выберите квартал",error:d,helperText:_,max:m=new Date(2050,0,1),min:h=new Date(2e3,0,1),className:u,size:y,fullWidth:p,name:g}=e,v=new Date,[b,f]=F(!1),[N,w]=F(v.getFullYear()),k=e=>{n?.(e),f(!1)},x="month"===i?s?.toLocaleDateString("ru-RU",{month:"long",year:"numeric"}):s?`${t2[t6(s.getMonth())]} ${s.getFullYear()}`:"";return S(()=>{s&&w(s.getFullYear())},[s]),t(X,{open:b,onOpenChange:f,children:[l(tJ,{label:r,value:x,disabled:a,size:y,fullWidth:p,name:g,endAdornment:l(Q,{asChild:!0,children:l(lt,{disabled:a,variant:"ghost",size:"icon",children:l(o,{})})}),placeholder:c,error:d,helperText:_,className:u}),l(lP,{align:"end",alignOffset:-10,side:"bottom",children:t("div",{className:"style__1izfmw30",children:[l(t5,{year:N,onSelect:w,minDate:h,maxDate:m}),"month"===i?l("div",{className:"style__1izfmw31",children:t0.map((e,t)=>{let r=new Date(N,t,s?.getDate()||1);return l(lt,{variant:s?.getMonth()===t&&s.getFullYear()===r.getFullYear()?"default":"ghost",disabled:r<h||r>m,onClick:()=>k(r),children:e},e)})}):l("div",{className:"style__1izfmw32",children:t2.map((e,t)=>{let r=new Date(N,3*t,1);return l(lt,{variant:s&&[t6(s.getMonth())===t,s.getFullYear()===r.getFullYear()].every(Boolean)?"default":"ghost",disabled:r<h||r>m,onClick:()=>k(r),children:e},e)})})]})})]})},t3=({className:e,...t})=>l(eI,{"data-slot":"radio-group",className:r("RadioGroup__ia95d10",e),...t}),t4=({className:e,label:r,...s})=>t("div",{className:"style__ia95d11",children:[l(eT,{"data-slot":"radio-group-item",id:s.id||s.value,className:a("style__ia95d12",e),...s,children:l(eD,{"data-slot":"radio-group-indicator",className:"style__ia95d13",children:l(y,{className:"style__ia95d14"})})}),l(ls,{htmlFor:s.id||s.value,"data-slot":"radio-group-label",children:r})]});var t9="style__h9oy583";let t7=({className:e,...r})=>t(eF,{className:a("style__h9oy580",e),...r,children:[l(eL,{className:"style__h9oy581",children:l(eP,{className:"style__h9oy582"})}),l(eA,{className:t9}),r.value?.length===2&&l(eA,{className:t9})]});var re={sm:"sm__1pnwkko2",md:"md__1pnwkko3",lg:"lg__1pnwkko4"},rl="style__1pnwkko6",rt="style__1pnwkko5";function rr({min:e,max:r,onChange:s,minValue:n,maxValue:i,width:o=150,label:c="",unit:d="",size:_="md",className:m,isActive:h,minInputRef:u,maxInputRef:y}){let{onMinValueChange:p,onMaxValueChange:g,minVal:v,maxVal:b,onKeyDown:f,onValueChange:N,onConfirm:w,id:k}=(({min:e,max:l,maxValue:t,minValue:r,onChange:a})=>{let s=D(),[n,i]=F(e),[o,c]=F(l);return S(()=>{i(r||e),c(t||l)},[r,t,e,l]),{id:s,minVal:n,maxVal:o,onValueChange:e=>{e[0]===e[1]?a(e[0],e[1]):(i(e[0]),c(e[1]))},onMinValueChange:e=>{let{value:l}=e.target;Number.isNaN(+l)||i(+l)},onMaxValueChange:e=>{let{value:l}=e.target;Number.isNaN(l)||c(+l)},onKeyDown:t=>{"Enter"===t.key&&a(n>=e&&n<=l?n:e,o>=e&&o<=l?o:l)},onConfirm:e=>{a(e[0],e[1])}}})({min:e,max:r,maxValue:i,minValue:n,onChange:s});return t("div",{className:a("style__1pnwkko0",re[_],{style__1pnwkko1:h},m),style:{width:o},children:[l(lB,{className:rt,color:"disabled",variant:"body2",children:c}),l(lB,{className:rt,color:"disabled",variant:"body2",children:"от"}),l("input",{className:rl,type:"text",id:k,value:v,onChange:p,onKeyDown:f,ref:u}),l(lB,{className:rt,color:"disabled",variant:"body2",children:"до"}),l("input",{className:rl,type:"text",id:k,value:b,onChange:g,onKeyDown:f,ref:y}),l(lB,{className:rt,color:"disabled",variant:"body2",children:d}),l("div",{className:"style__1pnwkko7",children:l(t7,{min:e,max:r,value:[Number(v),Number(b)],onValueChange:N,onValueCommit:w})})]})}function ra({onClick:e,variant:t="outline",...r}){let[s,n]=F(!1),i=()=>{window.scrollY>400?n(!0):n(!1)};return S(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[]),l(lt,{type:"button",variant:t,className:a("style__1ou2vjc0",{style__1ou2vjc1:s}),onClick:e||(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),...r,children:l(h,{})})}var rs={sm:"sm__5ilg7o3",md:"md__5ilg7o4",lg:"lg__5ilg7o5"},rn="style__5ilg7od",ri="style__5ilg7o6";let ro=eV,rc=eR,rd=eK,r_=({className:e,children:r,size:s="md",...n})=>t(eY,{className:a("style__5ilg7o2",rs[s],e),...n,children:[r,l(eq,{asChild:!0,children:l(d,{className:"style__5ilg7oe"})})]}),rm=({className:e,...t})=>l(eW,{className:a(ri,e),...t,children:l(h,{className:rn})}),rh=({className:e,...t})=>l(ej,{className:a(ri,e),...t,children:l(d,{className:rn})}),ru=({className:e,children:r,position:s="popper",...n})=>l(eH,{children:t(eM,{className:a("style__5ilg7o7",e),position:s,...n,children:[l(rm,{}),l(eU,{className:"style__5ilg7o8",children:r}),l(rh,{})]})}),ry=({className:e,...t})=>l(eE,{className:`style__5ilg7o9 ${e||""}`,...t}),rp=({className:e,children:r,...a})=>t(e$,{className:`style__5ilg7oa ${e||""}`,...a,children:[l("span",{className:"style__5ilg7ob",children:l(eO,{children:l(c,{className:rn})})}),l(eB,{children:r})]}),rg=({className:e,...t})=>l(eG,{className:`style__5ilg7oc ${e||""}`,...t});var rv={sm:"sm__hworoa2",md:"md__hworoa3",lg:"lg__hworoa4"};let rb=e=>l(eQ,{...e});rb.Content=({className:e,...t})=>l(eJ,{className:a("style__hworoa5",e),...t}),rb.List=({className:e,...t})=>l(eX,{className:a("style__hworoa0",e),...t}),rb.Trigger=({className:e,size:t="md",...r})=>l(eZ,{className:a("style__hworoa1",rv[t],e),...r});let rf=({form:e,children:t,...r})=>l(e0,{...e,children:l("form",{noValidate:!0,...r,children:t})});function rN({name:e,control:t,...r}){return l(e1,{control:t,name:e,render:({field:e,fieldState:t})=>l(tX,{...r,...e,error:!!t.error,helperText:t.error?.message})})}let rw=({mode:e="onBlur",...l}={})=>e5({...l,mode:e}),rk=({children:e,isLoading:t,...r})=>{let{formState:a}=e8();return l(lt,{type:"submit",isLoading:t||a.isSubmitting,...r,children:e})};function rx({name:e,control:t,gridArea:r,...a}){return l(e1,{control:t,name:e,render:({field:e,fieldState:t})=>l(tJ,{...a,...e,style:{gridArea:r},value:e.value||"",error:!!t.error,helperText:t.error?.message})})}var rC=":",rz="—";export{e4 as Accordion,e7 as Badge,lt as Button,lo as ButtonGroup,ld as Card,lu as CardContent,lh as CardDescription,ly as CardFooter,l_ as CardHeader,lm as CardTitle,lz as Carousel,lS as Checkbox,lI as CircularProgress,lE as ConfirmAction,lJ as ContentState,lX as CopyTypography,tT as DESCRIPTION_ROOT_CLASSNAME,l1 as DashboardLayout,l7 as DataGrid,tb as DataGridActionCell,tN as DataGridSortHeader,tD as DataList,tM as Description,tR as Dialog,tq as Drawer,tl as DropdownMenu,t_ as DropdownMenuCheckboxItem,tc as DropdownMenuContent,tr as DropdownMenuGroup,td as DropdownMenuItem,th as DropdownMenuLabel,ta as DropdownMenuPortal,tn as DropdownMenuRadioGroup,tm as DropdownMenuRadioItem,tu as DropdownMenuSeparator,ty as DropdownMenuShortcut,ts as DropdownMenuSub,to as DropdownMenuSubContent,ti as DropdownMenuSubTrigger,tt as DropdownMenuTrigger,rf as Form,e1 as FormController,rN as FormMaskField,e0 as FormProvider,rk as FormSubmitButton,rx as FormTextField,lV as Image,tB as ImageCarousel,tW as Input,tU as InputOTP,ls as Label,tX as MaskField,tQ as PageLayout,t1 as Pagination,t8 as PeriodPicker,lU as Placeholder,X as Popover,lP as PopoverContent,Q as PopoverTrigger,t3 as RadioGroup,t4 as RadioGroupItem,rr as RangeInput,ra as ScrollTopButton,ro as Select,ru as SelectContent,rc as SelectGroup,rp as SelectItem,ry as SelectLabel,rh as SelectScrollDownButton,rm as SelectScrollUpButton,rg as SelectSeparator,r_ as SelectTrigger,rd as SelectValue,t7 as Slider,rb as Tabs,tJ as TextField,li as Tooltip,lB as Typography,lF as alignments,e9 as badgeVariants,la as buttonSizes,lr as buttonVariants,lA as colors,E as createTheme,lR as displays,H as globalKeyframes,V as globalStyle,j as keyframes,W as style,G as styleVariants,lM as transforms,lZ as useDashboard,rw as useForm,e8 as useFormContext,e2 as useFormController,e6 as useFormFieldArray,e3 as useFormWatch,lL as variants,lc as vars,l$ as weights,rC as DEFAULT_SEPARATOR,rz as DEFAULT_SYMBOL};
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { Accordion, Checkbox } from "@base-ui/react";
3
+ import clsx_0, { clsx } from "clsx";
4
+ import { ArrowDownNarrowWide, ArrowDownUp, ArrowDownWideNarrow, Calendar1, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Circle, CircleIcon, Copy, Ellipsis, EllipsisVertical, PanelLeftClose, PanelLeftOpen, X } from "lucide-react";
5
+ import { AlertDialog } from "@base-ui/react/alert-dialog";
6
+ import { Slot } from "@radix-ui/react-slot";
7
+ import { Root } from "@radix-ui/react-label";
8
+ import { Arrow, Content as react_tooltip_Content, Portal as react_tooltip_Portal, Provider, Root as react_tooltip_Root, Trigger as react_tooltip_Trigger } from "@radix-ui/react-tooltip";
9
+ import { DayPicker } from "react-day-picker";
10
+ import { ru } from "react-day-picker/locale";
11
+ import react, { createContext, createElement, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
12
+ import embla_carousel_react from "embla-carousel-react";
13
+ import { Content as react_popover_Content, Popover, PopoverTrigger, Portal as react_popover_Portal } from "@radix-ui/react-popover";
14
+ import { Virtuoso } from "react-virtuoso";
15
+ import { useMask } from "@react-input/mask";
16
+ import { Close, Content as react_dialog_Content, Description as react_dialog_Description, Overlay as react_dialog_Overlay, Portal as react_dialog_Portal, Root as react_dialog_Root, Title as react_dialog_Title, Trigger as react_dialog_Trigger } from "@radix-ui/react-dialog";
17
+ import { Drawer, Root as external_vaul_Root } from "vaul";
18
+ import { OTPInput } from "input-otp";
19
+ import { Indicator, Item as react_radio_group_Item, Root as react_radio_group_Root } from "@radix-ui/react-radio-group";
20
+ import { Range, Root as react_slider_Root, Thumb, Track } from "@radix-ui/react-slider";
21
+ import { Content as react_select_Content, Group, Icon, Item as react_select_Item, ItemIndicator, ItemText, Label as react_select_Label, Portal as react_select_Portal, Root as react_select_Root, ScrollDownButton, ScrollUpButton, Separator as react_select_Separator, Trigger as react_select_Trigger, Value as react_select_Value, Viewport } from "@radix-ui/react-select";
22
+ import { Content as react_tabs_Content, List, Tabs, Trigger as react_tabs_Trigger } from "@radix-ui/react-tabs";
23
+ import { Controller, FormProvider, useController, useFieldArray, useForm, useFormContext, useWatch } from "react-hook-form";
24
+ import * as __rspack_external__radix_ui_react_dropdown_menu_dbc6754d from "@radix-ui/react-dropdown-menu";
25
+ var styles_css_header = 'style__1b0hb6s4';
26
+ var styles_css_item = 'style__1b0hb6s3';
27
+ var panel = 'style__1b0hb6s9';
28
+ var panelContent = 'style__1b0hb6sa';
29
+ var root = 'style__1b0hb6s2';
30
+ var styles_css_trigger = 'style__1b0hb6s5';
31
+ var triggerIconDown = 'style__1b0hb6s7 style__1b0hb6s6';
32
+ var triggerIconUp = 'style__1b0hb6s8 style__1b0hb6s6';
33
+ function Accordion_Accordion({ className, ...props }) {
34
+ return /*#__PURE__*/ jsx(Accordion.Root, {
35
+ "data-slot": "accordion",
36
+ className: clsx(root, className),
37
+ ...props
38
+ });
39
+ }
40
+ function Item({ className, ...props }) {
41
+ return /*#__PURE__*/ jsx(Accordion.Item, {
42
+ "data-slot": "accordion-item",
43
+ className: clsx(styles_css_item, className),
44
+ ...props
45
+ });
46
+ }
47
+ function Trigger({ className, children, ...props }) {
48
+ return /*#__PURE__*/ jsx(Accordion.Header, {
49
+ className: styles_css_header,
50
+ children: /*#__PURE__*/ jsxs(Accordion.Trigger, {
51
+ "data-slot": "accordion-trigger",
52
+ className: clsx(styles_css_trigger, className),
53
+ ...props,
54
+ children: [
55
+ children,
56
+ /*#__PURE__*/ jsx(ChevronDown, {
57
+ "data-slot": "accordion-trigger-icon",
58
+ size: 16,
59
+ className: triggerIconDown
60
+ }),
61
+ /*#__PURE__*/ jsx(ChevronUp, {
62
+ "data-slot": "accordion-trigger-icon",
63
+ size: 16,
64
+ className: triggerIconUp
65
+ })
66
+ ]
67
+ })
68
+ });
69
+ }
70
+ function Accordion_Content({ className, children, ...props }) {
71
+ return /*#__PURE__*/ jsx(Accordion.Panel, {
72
+ "data-slot": "accordion-content",
73
+ className: clsx(panel, className),
74
+ ...props,
75
+ children: /*#__PURE__*/ jsx("div", {
76
+ className: clsx(panelContent, className),
77
+ children: children
78
+ })
79
+ });
80
+ }
81
+ Accordion_Accordion.Item = Item;
82
+ Accordion_Accordion.Trigger = Trigger;
83
+ Accordion_Accordion.Content = Accordion_Content;
84
+ var __default__ = {
85
+ buttonBase: 'style__1ersxw10',
86
+ buttonSizes: {
87
+ sm: 'sm__1ersxw19',
88
+ md: 'md__1ersxw1a',
89
+ lg: 'lg__1ersxw1b',
90
+ icon: 'icon__1ersxw1c',
91
+ iconSm: 'iconSm__1ersxw1d'
92
+ },
93
+ buttonVariants: {
94
+ default: 'default__1ersxw14',
95
+ destructive: 'destructive__1ersxw15',
96
+ outline: 'outline__1ersxw16',
97
+ ghost: 'ghost__1ersxw17',
98
+ link: 'link__1ersxw18'
99
+ },
100
+ fullWidthStyle: 'style__1ersxw13',
101
+ loading: 'style__1ersxw12'
102
+ };
103
+ const button_css = __default__;
104
+ var styles_css_default_ = {
105
+ startAdornment: 'style__1gsf04s0',
106
+ endAdornment: 'style__1gsf04s1'
107
+ };
108
+ const styles_css = styles_css_default_;
109
+ const Content_Content = ({ children, startAdornment, endAdornment, ...props })=>/*#__PURE__*/ jsxs("button", {
110
+ ...props,
111
+ children: [
112
+ startAdornment && /*#__PURE__*/ jsx("span", {
113
+ className: styles_css.startAdornment,
114
+ children: startAdornment
115
+ }),
116
+ children,
117
+ endAdornment && /*#__PURE__*/ jsx("span", {
118
+ className: styles_css.endAdornment,
119
+ children: endAdornment
120
+ })
121
+ ]
122
+ });
123
+ const Button = ({ className, variant = 'default', size = 'md', asChild = false, isLoading = false, fullWidth, ...props })=>{
124
+ const Component = asChild ? Slot : Content_Content;
125
+ return /*#__PURE__*/ jsx(Component, {
126
+ className: clsx(button_css.buttonBase, button_css.buttonVariants[variant], button_css.buttonSizes[size], {
127
+ [button_css.fullWidthStyle]: fullWidth,
128
+ [button_css.loading]: isLoading
129
+ }, className),
130
+ ...props
131
+ });
132
+ };
133
+ const { buttonVariants: buttonVariants, buttonSizes: buttonSizes } = button_css;
134
+ var styles_css_content = 'style__qmtpwy5';
135
+ var styles_css_description = 'style__qmtpwya';
136
+ var styles_css_footer = 'style__qmtpwy7';
137
+ var AlertDialog_styles_css_header = 'style__qmtpwy6';
138
+ var media = 'style__qmtpwy8';
139
+ var overlay = 'style__qmtpwy4';
140
+ var styles_css_title = 'style__qmtpwy9';
141
+ function AlertDialog_Trigger({ ...props }) {
142
+ return /*#__PURE__*/ jsx(AlertDialog.Trigger, {
143
+ "data-slot": "alert-dialog-trigger",
144
+ ...props
145
+ });
146
+ }
147
+ function Portal({ ...props }) {
148
+ return /*#__PURE__*/ jsx(AlertDialog.Portal, {
149
+ "data-slot": "alert-dialog-portal",
150
+ ...props
151
+ });
152
+ }
153
+ function Overlay({ className, ...props }) {
154
+ return /*#__PURE__*/ jsx(AlertDialog.Backdrop, {
155
+ "data-slot": "alert-dialog-overlay",
156
+ className: clsx(overlay, className),
157
+ ...props
158
+ });
159
+ }
160
+ function AlertDialog_Content({ className, size = 'default', ...props }) {
161
+ return /*#__PURE__*/ jsxs(Portal, {
162
+ children: [
163
+ /*#__PURE__*/ jsx(Overlay, {}),
164
+ /*#__PURE__*/ jsx(AlertDialog.Popup, {
165
+ "data-slot": "alert-dialog-content",
166
+ "data-size": size,
167
+ className: clsx(styles_css_content, className),
168
+ ...props
169
+ })
170
+ ]
171
+ });
172
+ }
173
+ function Header({ className, ...props }) {
174
+ return /*#__PURE__*/ jsx("div", {
175
+ "data-slot": "alert-dialog-header",
176
+ className: clsx(AlertDialog_styles_css_header, className),
177
+ ...props
178
+ });
179
+ }
180
+ function Footer({ className, ...props }) {
181
+ return /*#__PURE__*/ jsx("div", {
182
+ "data-slot": "alert-dialog-footer",
183
+ className: clsx(styles_css_footer, className),
184
+ ...props
185
+ });
186
+ }
187
+ function Media({ className, ...props }) {
188
+ return /*#__PURE__*/ jsx("div", {
189
+ "data-slot": "alert-dialog-media",
190
+ className: clsx(media, className),
191
+ ...props
192
+ });
193
+ }
194
+ function Title({ className, ...props }) {
195
+ return /*#__PURE__*/ jsx(AlertDialog.Title, {
196
+ "data-slot": "alert-dialog-title",
197
+ className: clsx(styles_css_title, className),
198
+ ...props
199
+ });
200
+ }
201
+ function Description({ className, ...props }) {
202
+ return /*#__PURE__*/ jsx(AlertDialog.Description, {
203
+ "data-slot": "alert-dialog-description",
204
+ className: clsx(styles_css_description, className),
205
+ ...props
206
+ });
207
+ }
208
+ function Action({ className, ...props }) {
209
+ return /*#__PURE__*/ jsx(Button, {
210
+ "data-slot": "alert-dialog-action",
211
+ className: className,
212
+ ...props
213
+ });
214
+ }
215
+ function Cancel({ className, variant = 'outline', size = 'md', ...props }) {
216
+ return /*#__PURE__*/ jsx(AlertDialog.Close, {
217
+ "data-slot": "alert-dialog-cancel",
218
+ className: className,
219
+ render: /*#__PURE__*/ jsx(Button, {
220
+ variant: variant,
221
+ size: size
222
+ }),
223
+ ...props
224
+ });
225
+ }
226
+ function AlertDialog_AlertDialog({ ...props }) {
227
+ return /*#__PURE__*/ jsx(AlertDialog.Root, {
228
+ "data-slot": "alert-dialog",
229
+ ...props
230
+ });
231
+ }
232
+ AlertDialog_AlertDialog.Trigger = AlertDialog_Trigger;
233
+ AlertDialog_AlertDialog.Overlay = Overlay;
234
+ AlertDialog_AlertDialog.Content = AlertDialog_Content;
235
+ AlertDialog_AlertDialog.Header = Header;
236
+ AlertDialog_AlertDialog.Footer = Footer;
237
+ AlertDialog_AlertDialog.Media = Media;
238
+ AlertDialog_AlertDialog.Title = Title;
239
+ AlertDialog_AlertDialog.Description = Description;
240
+ AlertDialog_AlertDialog.Action = Action;
241
+ AlertDialog_AlertDialog.Cancel = Cancel;
242
+ var badgeVariants = {
243
+ default: 'default__1af895x1',
244
+ secondary: 'secondary__1af895x2',
245
+ destructive: 'destructive__1af895x3',
246
+ outline: 'outline__1af895x4'
247
+ };
248
+ var rootClass = 'style__1af895x0';
249
+ function Badge({ className, variant = 'default', asChild = false, ...props }) {
250
+ const Comp = asChild ? Slot : 'span';
251
+ return /*#__PURE__*/ jsx(Comp, {
252
+ "data-slot": "badge",
253
+ className: clsx(rootClass, badgeVariants[variant], className),
254
+ ...props
255
+ });
256
+ }
257
+ var label_css_disabled = 'style__c31e141';
258
+ var label_css_error = 'style__c31e142';
259
+ var required = 'style__c31e143';
260
+ var label_css_root = 'Label__c31e140';
261
+ const Label = ({ className, disabled, ...props })=>/*#__PURE__*/ jsx(Root, {
262
+ className: clsx(label_css_root, {
263
+ [label_css_disabled]: disabled,
264
+ [label_css_error]: props.error,
265
+ [required]: props.required
266
+ }, className),
267
+ ...props
268
+ });
269
+ var arrowClass = 'style__izacrl4';
270
+ var contentClass = 'style__izacrl2';
271
+ var textClass = 'style__izacrl3';
272
+ const TooltipProvider = Provider;
273
+ const TooltipRoot = react_tooltip_Root;
274
+ const TooltipTrigger = react_tooltip_Trigger;
275
+ const TooltipContent = ({ sideOffset = 4, alignOffset, ref, ...props })=>/*#__PURE__*/ jsx(react_tooltip_Content, {
276
+ ref: ref,
277
+ sideOffset: sideOffset,
278
+ ...props
279
+ });
280
+ const Tooltip = ({ text, content, children, side = 'top', sideOffset, alignOffset, delayDuration = 0, className, ref, ...props })=>/*#__PURE__*/ jsx(TooltipProvider, {
281
+ delayDuration: delayDuration,
282
+ children: /*#__PURE__*/ jsxs(TooltipRoot, {
283
+ ...props,
284
+ children: [
285
+ /*#__PURE__*/ jsx(TooltipTrigger, {
286
+ ref: ref,
287
+ asChild: true,
288
+ children: children
289
+ }),
290
+ content || text ? /*#__PURE__*/ jsx(react_tooltip_Portal, {
291
+ children: /*#__PURE__*/ jsxs(TooltipContent, {
292
+ className: clsx_0(contentClass, className),
293
+ alignOffset: alignOffset,
294
+ sideOffset: sideOffset,
295
+ hideWhenDetached: true,
296
+ side: side,
297
+ children: [
298
+ content ?? /*#__PURE__*/ jsx("p", {
299
+ className: textClass,
300
+ children: text
301
+ }),
302
+ props.arrow && /*#__PURE__*/ jsx(Arrow, {
303
+ className: arrowClass
304
+ })
305
+ ]
306
+ })
307
+ }) : null
308
+ ]
309
+ })
310
+ });
311
+ var buttonClass = 'style__1iqvz722';
312
+ var buttonsClass = 'style__1iqvz721';
313
+ var containerClass = 'style__1iqvz720';
314
+ var labelClass = 'style__1iqvz723';
315
+ const ButtonGroup = ({ value, onChange, options, size, className, label, multiple })=>{
316
+ const isMultiple = true === multiple;
317
+ const isActive = (optionValue)=>{
318
+ if (isMultiple) return value.includes(optionValue);
319
+ return value === optionValue;
320
+ };
321
+ const handleChange = (optionValue)=>{
322
+ if (isMultiple) {
323
+ const currentValue = value;
324
+ currentValue.includes(optionValue) ? onChange(currentValue.filter((v)=>v !== optionValue)) : onChange([
325
+ ...currentValue,
326
+ optionValue
327
+ ]);
328
+ } else onChange(optionValue);
329
+ };
330
+ return /*#__PURE__*/ jsxs("div", {
331
+ className: clsx(containerClass, className),
332
+ children: [
333
+ label && /*#__PURE__*/ jsx(Label, {
334
+ className: labelClass,
335
+ children: label
336
+ }),
337
+ /*#__PURE__*/ jsx("div", {
338
+ className: buttonsClass,
339
+ children: options.map((option)=>/*#__PURE__*/ jsx(Tooltip, {
340
+ arrow: true,
341
+ text: option.title,
342
+ children: /*#__PURE__*/ jsx(Button, {
343
+ size: size,
344
+ className: buttonClass,
345
+ disabled: option.disabled,
346
+ onClick: ()=>handleChange(option.value),
347
+ startAdornment: option.startAdornment,
348
+ endAdornment: option.endAdornment,
349
+ variant: isActive(option.value) ? 'default' : 'outline',
350
+ children: option.label
351
+ }, option.value)
352
+ }, option.value))
353
+ })
354
+ ]
355
+ });
356
+ };
357
+ var alignments = {
358
+ left: 'left__1sba6zok',
359
+ center: 'center__1sba6zol',
360
+ right: 'right__1sba6zom',
361
+ justify: 'justify__1sba6zon'
362
+ };
363
+ var colors = {
364
+ primary: 'primary__1sba6zoc',
365
+ secondary: 'secondary__1sba6zod',
366
+ disabled: 'disabled__1sba6zoe',
367
+ success: 'success__1sba6zof',
368
+ error: 'error__1sba6zog',
369
+ warning: 'warning__1sba6zoh',
370
+ info: 'info__1sba6zoi',
371
+ muted: 'muted__1sba6zoj'
372
+ };
373
+ var decorations = {
374
+ none: 'none__1sba6zox',
375
+ underline: 'underline__1sba6zoy',
376
+ lineThrough: 'lineThrough__1sba6zoz'
377
+ };
378
+ var displays = {
379
+ block: 'block__1sba6zoo',
380
+ inline: 'inline__1sba6zop'
381
+ };
382
+ var gutterBottomClass = 'style__1sba6zo10';
383
+ var transforms = {
384
+ lowercase: 'lowercase__1sba6zou',
385
+ uppercase: 'uppercase__1sba6zov',
386
+ capitalize: 'capitalize__1sba6zow'
387
+ };
388
+ var variants = {
389
+ h1: 'h1__1sba6zo0',
390
+ h2: 'h2__1sba6zo1',
391
+ h3: 'h3__1sba6zo2',
392
+ h4: 'h4__1sba6zo3',
393
+ h5: 'h5__1sba6zo4',
394
+ h6: 'h6__1sba6zo5',
395
+ subtitle1: 'subtitle1__1sba6zo6',
396
+ subtitle2: 'subtitle2__1sba6zo7',
397
+ body1: 'body1__1sba6zo8',
398
+ body2: 'body2__1sba6zo9',
399
+ caption: 'caption__1sba6zoa',
400
+ overline: 'overline__1sba6zob'
401
+ };
402
+ var weights = {
403
+ normal: 'normal__1sba6zoq',
404
+ medium: 'medium__1sba6zor',
405
+ semibold: 'semibold__1sba6zos',
406
+ bold: 'bold__1sba6zot'
407
+ };
408
+ const VARIANT_COMPONENT_MAP = {
409
+ h1: 'h1',
410
+ h2: 'h2',
411
+ h3: 'h3',
412
+ h4: 'h4',
413
+ h5: 'h5',
414
+ h6: 'h6',
415
+ subtitle1: 'h6',
416
+ subtitle2: 'h6',
417
+ body1: 'p',
418
+ body2: 'p',
419
+ caption: 'span',
420
+ overline: 'span'
421
+ };
422
+ const Typography = ({ className, variant = 'body1', component, color = 'primary', align = 'left', display = 'inline', weight = 'normal', transform, decoration = 'none', gutterBottom, children, ...props })=>{
423
+ const Component = component || VARIANT_COMPONENT_MAP[variant || 'body1'];
424
+ return /*#__PURE__*/ jsx(Component, {
425
+ className: clsx(decorations[decoration], variants[variant], colors[color], weights[weight], transform && transforms[transform], displays[display], alignments[align], {
426
+ [gutterBottomClass]: gutterBottom
427
+ }, className),
428
+ ...props,
429
+ children: children
430
+ });
431
+ };
432
+ var styles_css_button = 'dayButton__hxs6pw0';
433
+ var outside = 'outside__hxs6pw2';
434
+ var today = 'today__hxs6pw1';
435
+ const DayButton = (props)=>{
436
+ const { modifiers, className, ...buttonProps } = props;
437
+ const ref = useRef(null);
438
+ useEffect(()=>{
439
+ if (modifiers.focused) ref.current?.focus();
440
+ }, [
441
+ modifiers.focused
442
+ ]);
443
+ return /*#__PURE__*/ jsx(Button, {
444
+ ref: ref,
445
+ className: clsx(styles_css_button, {
446
+ [outside]: modifiers.outside,
447
+ [today]: modifiers.today
448
+ }, className),
449
+ variant: modifiers.selected ? 'default' : 'ghost',
450
+ ...buttonProps
451
+ });
452
+ };
453
+ var Dropdown_styles_css_trigger = 'style__1e2msjb0';
454
+ function Dropdown(props) {
455
+ const { options, onChange, ...restProps } = props;
456
+ const selectedOption = options?.find(({ value })=>value === restProps.value);
457
+ const handleChange = (value)=>{
458
+ if (onChange) onChange({
459
+ target: {
460
+ value
461
+ }
462
+ });
463
+ };
464
+ return /*#__PURE__*/ jsxs(Select, {
465
+ value: selectedOption?.value.toString(),
466
+ onValueChange: handleChange,
467
+ children: [
468
+ /*#__PURE__*/ jsx(SelectTrigger, {
469
+ className: Dropdown_styles_css_trigger,
470
+ children: /*#__PURE__*/ jsx(SelectValue, {
471
+ placeholder: selectedOption?.label
472
+ })
473
+ }),
474
+ /*#__PURE__*/ jsx(SelectContent, {
475
+ children: options?.map(({ value, label, disabled })=>/*#__PURE__*/ jsx(SelectItem, {
476
+ value: value.toString(),
477
+ disabled: disabled,
478
+ children: /*#__PURE__*/ jsx(Typography, {
479
+ align: "center",
480
+ transform: "capitalize",
481
+ children: label
482
+ })
483
+ }, value))
484
+ })
485
+ ]
486
+ });
487
+ }
488
+ var dropdownNav = 'dropdownNav__14q7je26';
489
+ var dropdowns = 'dropdowns__14q7je25';
490
+ var styles_css_month = 'month__14q7je23';
491
+ var monthButton = 'monthButton__14q7je21';
492
+ var monthCaption = 'monthCaption__14q7je24';
493
+ var months = 'months__14q7je22';
494
+ var nav = 'nav__14q7je20';
495
+ const Calendar = ({ className, classNames, showOutsideDays = true, ...props })=>/*#__PURE__*/ jsx(DayPicker, {
496
+ locale: ru,
497
+ showOutsideDays: showOutsideDays,
498
+ classNames: {
499
+ month: styles_css_month,
500
+ months: months,
501
+ nav: nav,
502
+ month_caption: monthCaption,
503
+ dropdown: dropdownNav,
504
+ dropdowns: dropdowns
505
+ },
506
+ components: {
507
+ DayButton: DayButton,
508
+ Dropdown: Dropdown,
509
+ PreviousMonthButton: ({ className, color, ...props })=>/*#__PURE__*/ jsx(Button, {
510
+ className: clsx_0(monthButton, className),
511
+ variant: "ghost",
512
+ ...props
513
+ }),
514
+ NextMonthButton: ({ className, color, ...props })=>/*#__PURE__*/ jsx(Button, {
515
+ className: clsx_0(monthButton, className),
516
+ variant: "ghost",
517
+ ...props
518
+ }),
519
+ CaptionLabel: ({ className, color, ...props })=>/*#__PURE__*/ jsx(Typography, {
520
+ transform: "capitalize",
521
+ className: className,
522
+ ...props
523
+ })
524
+ },
525
+ ...props
526
+ });
527
+ var theme = {
528
+ colors: {
529
+ primary: 'var(--colors-primary)',
530
+ secondary: 'var(--colors-secondary)',
531
+ warning: 'var(--colors-warning)',
532
+ error: 'var(--colors-error)',
533
+ success: 'var(--colors-success)',
534
+ border: 'var(--colors-border)',
535
+ info: 'var(--colors-info)',
536
+ background: {
537
+ tooltip: 'var(--colors-background-tooltip)',
538
+ paper: 'var(--colors-background-paper)',
539
+ element: 'var(--colors-background-element)',
540
+ elementHover: 'var(--colors-background-elementHover)',
541
+ sidebar: 'var(--colors-background-sidebar)'
542
+ },
543
+ foreground: {
544
+ primary: 'var(--colors-foreground-primary)',
545
+ secondary: 'var(--colors-foreground-secondary)'
546
+ },
547
+ text: {
548
+ primary: 'var(--colors-text-primary)',
549
+ secondary: 'var(--colors-text-secondary)',
550
+ disabled: 'var(--colors-text-disabled)',
551
+ hint: 'var(--colors-text-hint)'
552
+ }
553
+ },
554
+ spacing: {
555
+ 1: 'var(--spacing-1)',
556
+ 2: 'var(--spacing-2)',
557
+ 3: 'var(--spacing-3)',
558
+ 4: 'var(--spacing-4)',
559
+ 5: 'var(--spacing-5)',
560
+ 6: 'var(--spacing-6)',
561
+ 8: 'var(--spacing-8)',
562
+ 10: 'var(--spacing-10)',
563
+ 12: 'var(--spacing-12)',
564
+ 16: 'var(--spacing-16)',
565
+ 20: 'var(--spacing-20)'
566
+ },
567
+ elevation: {
568
+ 1: 'var(--elevation-1)',
569
+ 2: 'var(--elevation-2)',
570
+ 3: 'var(--elevation-3)',
571
+ 4: 'var(--elevation-4)',
572
+ 6: 'var(--elevation-5)'
573
+ },
574
+ fontSize: {
575
+ xs: 'var(--fontSize-xs)',
576
+ sm: 'var(--fontSize-sm)',
577
+ base: 'var(--fontSize-base)',
578
+ lg: 'var(--fontSize-lg)',
579
+ xl: 'var(--fontSize-xl)',
580
+ '2xl': 'var(--fontSize-2xl)',
581
+ '3xl': 'var(--fontSize-3xl)',
582
+ '4xl': 'var(--fontSize-4xl)'
583
+ },
584
+ fontWeight: {
585
+ normal: 'var(--fontWeight-normal)',
586
+ medium: 'var(--fontWeight-medium)',
587
+ semibold: 'var(--fontWeight-semibold)',
588
+ bold: 'var(--fontWeight-bold)'
589
+ },
590
+ lineHeight: {
591
+ none: 'var(--lineHeight-none)',
592
+ tight: 'var(--lineHeight-tight)',
593
+ snug: 'var(--lineHeight-snug)',
594
+ normal: 'var(--lineHeight-normal)',
595
+ relaxed: 'var(--lineHeight-relaxed)',
596
+ loose: 'var(--lineHeight-loose)'
597
+ },
598
+ borderRadius: {
599
+ sm: 'var(--borderRadius-sm)',
600
+ md: 'var(--borderRadius-md)',
601
+ lg: 'var(--borderRadius-lg)'
602
+ }
603
+ };
604
+ var card = 'style__oyalw00';
605
+ var cardContent = 'style__oyalw04';
606
+ var cardDescription = 'style__oyalw03';
607
+ var cardFooter = 'style__oyalw05';
608
+ var cardHeader = 'style__oyalw01';
609
+ var cardTitle = 'style__oyalw02';
610
+ const Card = ({ className, elevation = 2, ...props })=>/*#__PURE__*/ jsx("div", {
611
+ style: {
612
+ boxShadow: theme.elevation[elevation]
613
+ },
614
+ className: clsx(card, className),
615
+ ...props
616
+ });
617
+ const CardHeader = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
618
+ className: clsx(cardHeader, className),
619
+ ...props
620
+ });
621
+ const CardTitle = ({ className, ...props })=>/*#__PURE__*/ jsx("h3", {
622
+ className: clsx(cardTitle, className),
623
+ ...props
624
+ });
625
+ const CardDescription = ({ className, ...props })=>/*#__PURE__*/ jsx("p", {
626
+ className: clsx(cardDescription, className),
627
+ ...props
628
+ });
629
+ const CardContent = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
630
+ className: clsx(cardContent, className),
631
+ ...props
632
+ });
633
+ const CardFooter = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
634
+ className: clsx(cardFooter, className),
635
+ ...props
636
+ });
637
+ const CarouselContext = react.createContext(null);
638
+ function useCarousel() {
639
+ const context = react.useContext(CarouselContext);
640
+ if (!context) throw new Error('useCarousel must be used within a <Carousel />');
641
+ return context;
642
+ }
643
+ var next = 'style__2d6ocq1 style__2d6ocq0';
644
+ var orientations = {
645
+ horizontal: 'horizontal__2d6ocq3',
646
+ vertical: 'vertical__2d6ocq4'
647
+ };
648
+ var prev = 'style__2d6ocq2 style__2d6ocq0';
649
+ function Buttons({ className, ...props }) {
650
+ const { orientation = 'horizontal', canScrollNext, scrollNext, canScrollPrev, scrollPrev } = useCarousel();
651
+ return /*#__PURE__*/ jsxs(Fragment, {
652
+ children: [
653
+ /*#__PURE__*/ jsx("button", {
654
+ className: clsx(next, orientations[orientation]),
655
+ type: "button",
656
+ "data-slot": "carousel-next",
657
+ disabled: !canScrollNext,
658
+ onClick: scrollNext,
659
+ ...props,
660
+ children: 'horizontal' === orientation ? /*#__PURE__*/ jsx(ChevronRight, {}) : /*#__PURE__*/ jsx(ChevronDown, {})
661
+ }),
662
+ /*#__PURE__*/ jsx("button", {
663
+ type: "button",
664
+ className: clsx(prev, orientations[orientation]),
665
+ "data-slot": "carousel-previous",
666
+ disabled: !canScrollPrev,
667
+ onClick: scrollPrev,
668
+ ...props,
669
+ children: 'horizontal' === orientation ? /*#__PURE__*/ jsx(ChevronLeft, {}) : /*#__PURE__*/ jsx(ChevronUp, {})
670
+ })
671
+ ]
672
+ });
673
+ }
674
+ var styles_css_orientations = {
675
+ horizontal: 'horizontal__i1lems1',
676
+ vertical: 'vertical__i1lems2'
677
+ };
678
+ var wrapper = 'style__i1lems0';
679
+ function Content_Content_Content(props) {
680
+ const { carouselRef, orientation = 'horizontal' } = useCarousel();
681
+ return /*#__PURE__*/ jsx("div", {
682
+ className: wrapper,
683
+ ref: carouselRef,
684
+ "data-slot": "carousel-content",
685
+ children: /*#__PURE__*/ jsx("div", {
686
+ className: styles_css_orientations[orientation],
687
+ ...props
688
+ })
689
+ });
690
+ }
691
+ var dotButton = {
692
+ horizontal: 'horizontal__e2zpp64 style__e2zpp63',
693
+ vertical: 'vertical__e2zpp65 style__e2zpp63'
694
+ };
695
+ var styles_css_selected = 'style__e2zpp66';
696
+ var styles_css_wrapper = {
697
+ horizontal: 'horizontal__e2zpp61 style__e2zpp60',
698
+ vertical: 'vertical__e2zpp62 style__e2zpp60'
699
+ };
700
+ const useLogic = (api)=>{
701
+ const [selectedIndex, setSelectedIndex] = useState(0);
702
+ const [scrollSnaps, setScrollSnaps] = useState([]);
703
+ const onDotButtonClick = useCallback((index)=>{
704
+ if (!api) return;
705
+ api.scrollTo(index);
706
+ }, [
707
+ api
708
+ ]);
709
+ const onInit = useCallback((api)=>{
710
+ if (!api) return;
711
+ setScrollSnaps(api.scrollSnapList());
712
+ }, []);
713
+ const onSelect = useCallback((api)=>{
714
+ if (!api) return;
715
+ setSelectedIndex(api.selectedScrollSnap());
716
+ }, []);
717
+ useEffect(()=>{
718
+ if (!api) return;
719
+ onInit(api);
720
+ onSelect(api);
721
+ api.on('reInit', onInit).on('reInit', onSelect).on('select', onSelect);
722
+ }, [
723
+ api,
724
+ onInit,
725
+ onSelect
726
+ ]);
727
+ return {
728
+ selectedIndex,
729
+ scrollSnaps,
730
+ onDotButtonClick
731
+ };
732
+ };
733
+ const Dots = ({ api, orientation })=>{
734
+ const { selectedIndex, scrollSnaps, onDotButtonClick } = useLogic(api);
735
+ return /*#__PURE__*/ jsx("div", {
736
+ className: styles_css_wrapper[orientation],
737
+ children: scrollSnaps.map((number, index)=>/*#__PURE__*/ jsx("button", {
738
+ type: "button",
739
+ className: clsx(dotButton[orientation], {
740
+ [styles_css_selected]: index === selectedIndex
741
+ }),
742
+ onClick: ()=>onDotButtonClick(index)
743
+ }, number))
744
+ });
745
+ };
746
+ var Item_styles_css_item = 'style__1gif6yr0';
747
+ function Item_Item(props) {
748
+ return /*#__PURE__*/ jsx("div", {
749
+ className: Item_styles_css_item,
750
+ role: "presentation",
751
+ "aria-roledescription": "slide",
752
+ "data-slot": "carousel-item",
753
+ ...props
754
+ });
755
+ }
756
+ var styles_css_rootClass = 'Carousel__1jbydv50';
757
+ const useLogic_useLogic = ({ orientation = 'horizontal', opts, setApi, plugins, data, showDots, showArrows })=>{
758
+ const [carouselRef, api] = embla_carousel_react({
759
+ ...opts,
760
+ axis: 'horizontal' === orientation ? 'x' : 'y'
761
+ }, plugins);
762
+ const [canScrollPrev, setCanScrollPrev] = useState(false);
763
+ const [canScrollNext, setCanScrollNext] = useState(false);
764
+ const isShowButtons = Boolean(showArrows && data.length > 1);
765
+ const isShowDots = Boolean(showDots && data.length > 1);
766
+ const onSelect = useCallback((api)=>{
767
+ if (!api) return;
768
+ setCanScrollPrev(api.canScrollPrev());
769
+ setCanScrollNext(api.canScrollNext());
770
+ }, []);
771
+ const onDotButtonClick = useCallback((index)=>{
772
+ if (!api) return;
773
+ api.scrollTo(index);
774
+ }, [
775
+ api
776
+ ]);
777
+ const scrollPrev = useCallback(()=>{
778
+ api?.scrollPrev();
779
+ }, [
780
+ api
781
+ ]);
782
+ const scrollNext = useCallback(()=>{
783
+ api?.scrollNext();
784
+ }, [
785
+ api
786
+ ]);
787
+ const handleKeyDown = useCallback((event)=>{
788
+ if ('ArrowLeft' === event.key) {
789
+ event.preventDefault();
790
+ scrollPrev();
791
+ } else if ('ArrowRight' === event.key) {
792
+ event.preventDefault();
793
+ scrollNext();
794
+ }
795
+ }, [
796
+ scrollPrev,
797
+ scrollNext
798
+ ]);
799
+ useEffect(()=>{
800
+ if (!api || !setApi) return;
801
+ setApi(api);
802
+ }, [
803
+ api,
804
+ setApi
805
+ ]);
806
+ useEffect(()=>{
807
+ if (!api) return;
808
+ onSelect(api);
809
+ api.on('reInit', onSelect);
810
+ api.on('select', onSelect);
811
+ return ()=>{
812
+ api?.off('select', onSelect);
813
+ };
814
+ }, [
815
+ api,
816
+ onSelect
817
+ ]);
818
+ return {
819
+ carouselRef,
820
+ api,
821
+ scrollPrev,
822
+ scrollNext,
823
+ canScrollPrev,
824
+ canScrollNext,
825
+ handleKeyDown,
826
+ opts,
827
+ orientation,
828
+ onDotButtonClick,
829
+ isShowButtons,
830
+ isShowDots,
831
+ data
832
+ };
833
+ };
834
+ function Carousel({ width = '100%', height = '100%', ...props }) {
835
+ const { canScrollNext, canScrollPrev, scrollNext, scrollPrev, api, opts, orientation, carouselRef, handleKeyDown, data, isShowButtons, isShowDots } = useLogic_useLogic(props);
836
+ return /*#__PURE__*/ jsx(CarouselContext.Provider, {
837
+ value: {
838
+ carouselRef,
839
+ api,
840
+ opts,
841
+ orientation: orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),
842
+ scrollPrev,
843
+ scrollNext,
844
+ canScrollPrev,
845
+ canScrollNext
846
+ },
847
+ children: /*#__PURE__*/ jsxs("div", {
848
+ onKeyDownCapture: handleKeyDown,
849
+ className: clsx(styles_css_rootClass, props.className),
850
+ "data-slot": "carousel",
851
+ style: {
852
+ width,
853
+ height
854
+ },
855
+ children: [
856
+ /*#__PURE__*/ jsx(Content_Content_Content, {
857
+ style: {
858
+ width,
859
+ height
860
+ },
861
+ children: data.map((item)=>/*#__PURE__*/ jsx(Item_Item, {
862
+ children: props.renderItem(item)
863
+ }, `${item[props.keyId]}`))
864
+ }),
865
+ isShowButtons && /*#__PURE__*/ jsx(Buttons, {}),
866
+ isShowDots && /*#__PURE__*/ jsx(Dots, {
867
+ api: api,
868
+ orientation: orientation
869
+ })
870
+ ]
871
+ })
872
+ });
873
+ }
874
+ var checkbox_css_icon = 'style__b7yo4k2';
875
+ var indicator = 'style__b7yo4k1';
876
+ var checkbox_css_root = 'style__b7yo4k0';
877
+ const Checkbox_Checkbox = ({ className, ...props })=>/*#__PURE__*/ jsx(Checkbox.Root, {
878
+ "data-slot": "checkbox",
879
+ className: clsx(checkbox_css_root, className),
880
+ ...props,
881
+ children: /*#__PURE__*/ jsx(Checkbox.Indicator, {
882
+ className: indicator,
883
+ children: /*#__PURE__*/ jsx(Check, {
884
+ className: checkbox_css_icon
885
+ })
886
+ })
887
+ });
888
+ var circle = 'style__m6b9n24';
889
+ var styles_css_colors = {
890
+ primary: 'primary__m6b9n27',
891
+ secondary: 'secondary__m6b9n28',
892
+ inherit: 'inherit__m6b9n29'
893
+ };
894
+ var styles_css_root = 'style__m6b9n22';
895
+ var svg = 'style__m6b9n23';
896
+ var styles_css_variants = {
897
+ determinate: 'determinate__m6b9n25',
898
+ indeterminate: 'indeterminate__m6b9n26'
899
+ };
900
+ const CircularProgress = ({ size = 30, thickness = 2.6, color = 'primary', value = 0, variant = 'indeterminate', className })=>{
901
+ const radius = (size - thickness) / 2;
902
+ const circumference = 2 * Math.PI * radius;
903
+ const dashOffset = 'determinate' === variant ? circumference * (1 - value / 100) : 0.25 * circumference;
904
+ return /*#__PURE__*/ jsx("div", {
905
+ className: clsx_0(styles_css_root, styles_css_variants[variant], styles_css_colors[color], className),
906
+ style: {
907
+ width: size,
908
+ height: size
909
+ },
910
+ children: /*#__PURE__*/ jsxs("svg", {
911
+ className: svg,
912
+ viewBox: `0 0 ${size} ${size}`,
913
+ children: [
914
+ /*#__PURE__*/ jsx("title", {
915
+ children: "Progress bar"
916
+ }),
917
+ /*#__PURE__*/ jsx("circle", {
918
+ className: clsx_0(circle, 'determinate' === variant && styles_css_variants.determinate),
919
+ cx: size / 2,
920
+ cy: size / 2,
921
+ r: radius,
922
+ fill: "none",
923
+ strokeWidth: thickness,
924
+ strokeDasharray: circumference,
925
+ strokeDashoffset: dashOffset
926
+ })
927
+ ]
928
+ })
929
+ });
930
+ };
931
+ var Popover_styles_css_content = 'style__1xy4jvu2';
932
+ const PopoverContent = ({ className, align = 'center', sideOffset = 4, ...props })=>/*#__PURE__*/ jsx(react_popover_Portal, {
933
+ children: /*#__PURE__*/ jsx(react_popover_Content, {
934
+ align: align,
935
+ sideOffset: sideOffset,
936
+ className: clsx(Popover_styles_css_content, className),
937
+ ...props
938
+ })
939
+ });
940
+ var actionsClass = 'style__1q1uhgp0';
941
+ var hasTextClass = 'style__1q1uhgp3';
942
+ var popoverClass = 'style__1q1uhgp2';
943
+ var wrapperClass = 'style__1q1uhgp1';
944
+ const ConfirmAction_useLogic_useLogic = ({ skipConfirm, onConfirm, confirmButtonProps: externalConfirmButtonProps })=>{
945
+ const [open, setOpen] = useState(false);
946
+ const handleConfirm = ()=>{
947
+ setOpen(false);
948
+ onConfirm();
949
+ };
950
+ const confirmButtonProps = {
951
+ variant: externalConfirmButtonProps?.isAccented ? 'destructive' : 'default',
952
+ size: 'sm',
953
+ onClick: handleConfirm
954
+ };
955
+ const onActionComponentClick = ()=>{
956
+ if (skipConfirm) onConfirm();
957
+ else setOpen(true);
958
+ };
959
+ const onOpenChange = (open)=>{
960
+ setOpen(open);
961
+ };
962
+ const onCancel = ()=>{
963
+ setOpen(false);
964
+ };
965
+ return {
966
+ open,
967
+ onActionComponentClick,
968
+ confirmButtonProps,
969
+ onCancel,
970
+ onOpenChange
971
+ };
972
+ };
973
+ const ConfirmAction = (props)=>{
974
+ const { open, onActionComponentClick, onCancel, confirmButtonProps, onOpenChange } = ConfirmAction_useLogic_useLogic(props);
975
+ const { text, confirmButtonProps: externalConfirmButtonProps, popoverProps: externalPopoverProps, actionComponent } = props;
976
+ const { text: confirmButtonText = 'Подтвердить' } = externalConfirmButtonProps || {};
977
+ const { side = 'bottom', align = 'center' } = externalPopoverProps || {};
978
+ return /*#__PURE__*/ jsxs(Popover, {
979
+ open: open,
980
+ onOpenChange: onOpenChange,
981
+ children: [
982
+ /*#__PURE__*/ jsx(PopoverTrigger, {
983
+ asChild: true,
984
+ children: actionComponent({
985
+ onClick: onActionComponentClick
986
+ })
987
+ }),
988
+ /*#__PURE__*/ jsx(PopoverContent, {
989
+ side: side,
990
+ align: align,
991
+ className: clsx(popoverClass, {
992
+ [hasTextClass]: Boolean(text)
993
+ }),
994
+ children: /*#__PURE__*/ jsxs("div", {
995
+ className: wrapperClass,
996
+ children: [
997
+ text && /*#__PURE__*/ jsx(Typography, {
998
+ children: text
999
+ }),
1000
+ /*#__PURE__*/ jsxs("div", {
1001
+ className: actionsClass,
1002
+ children: [
1003
+ /*#__PURE__*/ jsx(Button, {
1004
+ size: "sm",
1005
+ variant: "ghost",
1006
+ onClick: onCancel,
1007
+ children: "Отмена"
1008
+ }),
1009
+ /*#__PURE__*/ jsx(Button, {
1010
+ ...confirmButtonProps,
1011
+ children: confirmButtonText
1012
+ })
1013
+ ]
1014
+ })
1015
+ ]
1016
+ })
1017
+ })
1018
+ ]
1019
+ });
1020
+ };
1021
+ var sizes = {
1022
+ sm: 'sm__1o97kvm1',
1023
+ md: 'md__1o97kvm2',
1024
+ lg: 'lg__1o97kvm3'
1025
+ };
1026
+ var Image_styles_css_wrapper = 'style__1o97kvm0';
1027
+ const Image = (props)=>/*#__PURE__*/ jsx("img", {
1028
+ alt: props.alt,
1029
+ src: props.src,
1030
+ className: clsx_0(Image_styles_css_wrapper, sizes[props.size || 'md'], props.className),
1031
+ width: props.width,
1032
+ height: props.height
1033
+ });
1034
+ const SIZE = {
1035
+ sm: 'sm',
1036
+ md: 'md',
1037
+ lg: 'lg'
1038
+ };
1039
+ const IMAGE_WIDTH = {
1040
+ [SIZE.sm]: '239px',
1041
+ [SIZE.md]: '323px',
1042
+ [SIZE.lg]: '458px'
1043
+ };
1044
+ const IMAGE_HEIGHT = {
1045
+ [SIZE.sm]: '119px',
1046
+ [SIZE.md]: '161px',
1047
+ [SIZE.lg]: '229px'
1048
+ };
1049
+ const MAX_INNER_WIDTH = {
1050
+ [SIZE.sm]: '384px',
1051
+ [SIZE.md]: '400px',
1052
+ [SIZE.lg]: '460px'
1053
+ };
1054
+ const TITLE_HEADER_LEVEL = {
1055
+ [SIZE.sm]: 'subtitle1',
1056
+ [SIZE.md]: 'h6',
1057
+ [SIZE.lg]: 'h5'
1058
+ };
1059
+ var descriptionClass = 'style__1nenzg05';
1060
+ var footerClass = 'style__1nenzg06';
1061
+ var innerContainer = 'style__1nenzg04';
1062
+ var styles_css_sizes = {
1063
+ sm: 'sm__1nenzg01',
1064
+ md: 'md__1nenzg02',
1065
+ lg: 'lg__1nenzg03'
1066
+ };
1067
+ var Placeholder_styles_css_wrapper = 'style__1nenzg00';
1068
+ const Placeholder = ({ className, title, imgSrc, imgAlt, description, actions, size = 'sm', renderImage })=>{
1069
+ const RenderImage = useMemo(()=>renderImage || Image, [
1070
+ renderImage
1071
+ ]);
1072
+ return /*#__PURE__*/ jsxs("div", {
1073
+ className: clsx_0(Placeholder_styles_css_wrapper, styles_css_sizes[size], className),
1074
+ children: [
1075
+ /*#__PURE__*/ jsxs("div", {
1076
+ className: innerContainer,
1077
+ style: {
1078
+ maxWidth: MAX_INNER_WIDTH[size]
1079
+ },
1080
+ children: [
1081
+ imgSrc && /*#__PURE__*/ jsx(RenderImage, {
1082
+ src: imgSrc,
1083
+ alt: imgAlt,
1084
+ width: IMAGE_WIDTH[size],
1085
+ height: IMAGE_HEIGHT[size],
1086
+ size: size
1087
+ }),
1088
+ /*#__PURE__*/ jsx(Typography, {
1089
+ align: "center",
1090
+ color: "secondary",
1091
+ variant: TITLE_HEADER_LEVEL[size],
1092
+ children: title
1093
+ }),
1094
+ description && /*#__PURE__*/ jsx(Typography, {
1095
+ className: descriptionClass,
1096
+ component: "div",
1097
+ variant: "body1",
1098
+ children: description
1099
+ })
1100
+ ]
1101
+ }),
1102
+ actions && /*#__PURE__*/ jsx("footer", {
1103
+ className: footerClass,
1104
+ children: actions
1105
+ })
1106
+ ]
1107
+ });
1108
+ };
1109
+ var loadingContainer = 'style__nan0ao0';
1110
+ const ContentState = ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent: LoadingContent = /*#__PURE__*/ jsx(CircularProgress, {
1111
+ color: "primary"
1112
+ }) })=>{
1113
+ if (isLoading) return /*#__PURE__*/ jsx("div", {
1114
+ className: loadingContainer,
1115
+ children: LoadingContent
1116
+ });
1117
+ if (isCustom && customState) return /*#__PURE__*/ jsx(Placeholder, {
1118
+ ...customState
1119
+ });
1120
+ if (isError && errorState) {
1121
+ const { title = 'Произошла ошибка', imgAlt, imgSrc, errorList, onRetry, actions = /*#__PURE__*/ jsx(Button, {
1122
+ onClick: onRetry,
1123
+ children: "Попробовать снова"
1124
+ }) } = errorState;
1125
+ const description = errorList.map((errorMessage)=>/*#__PURE__*/ jsx(Typography, {
1126
+ component: "p",
1127
+ children: errorMessage
1128
+ }, errorMessage));
1129
+ return /*#__PURE__*/ jsx(Placeholder, {
1130
+ title: title,
1131
+ description: description,
1132
+ imgAlt: imgAlt,
1133
+ imgSrc: imgSrc,
1134
+ actions: actions
1135
+ });
1136
+ }
1137
+ return children;
1138
+ };
1139
+ var copyIconClass = 'style__1wpx85c1';
1140
+ var CopyTypography_styles_css_wrapper = 'style__1wpx85c0';
1141
+ const useLogic_useLogic_useLogic = ({ children, copyText, isShowCopyText, copyPosition })=>{
1142
+ const [status, setStatus] = useState("Скопировать");
1143
+ const [tooltipOpen, setTooltipOpen] = useState(false);
1144
+ const handleMouseEnter = ()=>{
1145
+ setTooltipOpen(true);
1146
+ };
1147
+ const handleMouseLeave = ()=>{
1148
+ if ("Скопировать" !== status) setTimeout(()=>{
1149
+ setStatus("Скопировать");
1150
+ }, 100);
1151
+ setTooltipOpen(false);
1152
+ };
1153
+ const handleClick = (event)=>{
1154
+ event.stopPropagation();
1155
+ navigator.clipboard.writeText(copyText || ('string' == typeof children ? children : '')).then(()=>setStatus("Скопировано")).catch(()=>setStatus("Ошибка копирования"));
1156
+ };
1157
+ const tooltipTitle = isShowCopyText ? `${status}: ${copyText}` : status;
1158
+ const isIconOnLeft = 'left' === copyPosition;
1159
+ return {
1160
+ handleMouseLeave,
1161
+ handleClick,
1162
+ tooltipTitle,
1163
+ isIconOnLeft,
1164
+ tooltipOpen,
1165
+ handleMouseEnter
1166
+ };
1167
+ };
1168
+ const CopyTypography = (props)=>{
1169
+ const { children, copyPosition = 'right', copyText, isShowCopyText, color, className, ...restProps } = props;
1170
+ const renderIcon = ()=>/*#__PURE__*/ jsx(Copy, {
1171
+ className: copyIconClass
1172
+ });
1173
+ const { tooltipOpen, handleMouseEnter, handleMouseLeave, handleClick, tooltipTitle, isIconOnLeft } = useLogic_useLogic_useLogic(props);
1174
+ return /*#__PURE__*/ jsx(Tooltip, {
1175
+ open: tooltipOpen,
1176
+ arrow: true,
1177
+ text: tooltipTitle,
1178
+ side: "bottom",
1179
+ children: /*#__PURE__*/ jsxs(Typography, {
1180
+ onMouseLeave: handleMouseLeave,
1181
+ onMouseEnter: handleMouseEnter,
1182
+ onClick: handleClick,
1183
+ component: "div",
1184
+ color: color,
1185
+ className: clsx(CopyTypography_styles_css_wrapper, className),
1186
+ ...restProps,
1187
+ children: [
1188
+ isIconOnLeft && renderIcon(),
1189
+ children,
1190
+ !isIconOnLeft && renderIcon()
1191
+ ]
1192
+ })
1193
+ });
1194
+ };
1195
+ const DashboardContext = createContext({
1196
+ pinned: true,
1197
+ hovered: false,
1198
+ togglePinned: ()=>{}
1199
+ });
1200
+ const useDashboard = ()=>useContext(DashboardContext);
1201
+ const LOCAL_STORAGE_KEY = 'dashboard::pinned';
1202
+ const hooks_useLogic_useLogic = ()=>{
1203
+ const [pinned, setPinned] = useState('true' === window.localStorage.getItem(LOCAL_STORAGE_KEY));
1204
+ const togglePinned = ()=>{
1205
+ setPinned(!pinned);
1206
+ window.localStorage.setItem(LOCAL_STORAGE_KEY, String(!pinned));
1207
+ };
1208
+ return {
1209
+ pinned,
1210
+ togglePinned
1211
+ };
1212
+ };
1213
+ var Main_styles_css_rootClass = 'style__whkxou0';
1214
+ const Main = ({ children, className })=>/*#__PURE__*/ jsx("main", {
1215
+ className: clsx(Main_styles_css_rootClass, className),
1216
+ children: children
1217
+ });
1218
+ var styles_css_contentClass = 'SidebarContent__1low90p6';
1219
+ var styles_css_footerClass = 'SidebarFooter__1low90p5';
1220
+ var headerClass = 'SidebarHeader__1low90p4';
1221
+ var Sidebar_styles_css_rootClass = 'SidebarContainer__1low90p2';
1222
+ var triggerClass = 'SidebarTrigger__1low90p1';
1223
+ var unpinnedClass = 'style__1low90p3';
1224
+ var styles_css_wrapperClass = 'style__1low90p0';
1225
+ const Sidebar = ({ width = "16rem", header, footer, content, className })=>{
1226
+ const { pinned } = useDashboard();
1227
+ return /*#__PURE__*/ jsxs("div", {
1228
+ style: {
1229
+ width: pinned ? width : 0
1230
+ },
1231
+ className: styles_css_wrapperClass,
1232
+ children: [
1233
+ /*#__PURE__*/ jsx("span", {
1234
+ className: triggerClass
1235
+ }),
1236
+ /*#__PURE__*/ jsxs("aside", {
1237
+ style: {
1238
+ width
1239
+ },
1240
+ className: clsx(Sidebar_styles_css_rootClass, {
1241
+ [unpinnedClass]: !pinned
1242
+ }, className),
1243
+ children: [
1244
+ header && /*#__PURE__*/ jsx("header", {
1245
+ className: headerClass,
1246
+ children: header
1247
+ }),
1248
+ /*#__PURE__*/ jsx("div", {
1249
+ className: styles_css_contentClass,
1250
+ children: content
1251
+ }),
1252
+ footer && /*#__PURE__*/ jsx("footer", {
1253
+ className: styles_css_footerClass,
1254
+ children: footer
1255
+ })
1256
+ ]
1257
+ })
1258
+ ]
1259
+ });
1260
+ };
1261
+ var styles_css_containerClass = 'DashboardLayout__113u7x50';
1262
+ const DashboardLayout = ({ children, className })=>{
1263
+ const { pinned, togglePinned } = hooks_useLogic_useLogic();
1264
+ return /*#__PURE__*/ jsx(DashboardContext.Provider, {
1265
+ value: {
1266
+ pinned,
1267
+ togglePinned
1268
+ },
1269
+ children: /*#__PURE__*/ jsx("div", {
1270
+ className: clsx(styles_css_containerClass, className),
1271
+ children: children
1272
+ })
1273
+ });
1274
+ };
1275
+ DashboardLayout.Sidebar = Sidebar;
1276
+ DashboardLayout.Main = Main;
1277
+ var cellClass = 'style__1047swj0';
1278
+ var disabledClass = 'style__1047swj1';
1279
+ function Cell({ row, column, rowIndex, height }) {
1280
+ const { align, cellColor, isDisabled } = column;
1281
+ const Content = ()=>{
1282
+ if (column.renderCell) return column.renderCell(row, rowIndex);
1283
+ if (column.format) return column.format(row) || '—';
1284
+ if (column.field) return `${row[column.field] || '—'}`;
1285
+ return '—';
1286
+ };
1287
+ return /*#__PURE__*/ jsx("td", {
1288
+ align: align ?? 'left',
1289
+ style: {
1290
+ backgroundColor: cellColor?.(row),
1291
+ height,
1292
+ width: column.width
1293
+ },
1294
+ className: clsx(cellClass, {
1295
+ [disabledClass]: isDisabled
1296
+ }, column.cellClassName?.(row)),
1297
+ children: /*#__PURE__*/ jsx(Content, {})
1298
+ });
1299
+ }
1300
+ var rowClass = 'style__gsm9mv0';
1301
+ var selectableClass = 'style__gsm9mv1';
1302
+ function Row({ row, rowHeight, onRowClick, columns, rowIndex, rowId }) {
1303
+ const handleSelect = useCallback(()=>{
1304
+ onRowClick?.(row);
1305
+ }, [
1306
+ onRowClick,
1307
+ row
1308
+ ]);
1309
+ return /*#__PURE__*/ jsx("tr", {
1310
+ onClick: handleSelect,
1311
+ onKeyDown: handleSelect,
1312
+ className: clsx(rowClass, {
1313
+ [selectableClass]: Boolean(onRowClick)
1314
+ }),
1315
+ children: columns.map((column, index)=>{
1316
+ const cellId = `${rowId}-${index}`;
1317
+ return /*#__PURE__*/ jsx(Cell, {
1318
+ row: row,
1319
+ rowIndex: rowIndex,
1320
+ column: column,
1321
+ height: rowHeight
1322
+ }, cellId);
1323
+ })
1324
+ });
1325
+ }
1326
+ var container = 'style__15m2ib80';
1327
+ var loader = 'style__15m2ib81';
1328
+ function State({ isLoading, isEmpty, columnsLength, emptyState = {
1329
+ text: 'Нет данных'
1330
+ }, errorState = {
1331
+ text: 'Произошла ошибка'
1332
+ }, isError, onRetry }) {
1333
+ const Container = ({ children })=>/*#__PURE__*/ jsx("tr", {
1334
+ className: container,
1335
+ children: /*#__PURE__*/ jsx("td", {
1336
+ colSpan: columnsLength,
1337
+ align: "center",
1338
+ children: children
1339
+ })
1340
+ });
1341
+ if (isLoading) return /*#__PURE__*/ jsx(Container, {
1342
+ children: /*#__PURE__*/ jsx("span", {
1343
+ className: loader,
1344
+ children: /*#__PURE__*/ jsx(CircularProgress, {})
1345
+ })
1346
+ });
1347
+ if (isEmpty) {
1348
+ const { imgSrc, imgAlt, text } = emptyState;
1349
+ return /*#__PURE__*/ jsx(Container, {
1350
+ children: /*#__PURE__*/ jsx(Placeholder, {
1351
+ title: text,
1352
+ imgSrc: imgSrc,
1353
+ imgAlt: imgAlt
1354
+ })
1355
+ });
1356
+ }
1357
+ if (isError) {
1358
+ const { imgSrc, imgAlt, text } = errorState;
1359
+ return /*#__PURE__*/ jsx(Container, {
1360
+ children: /*#__PURE__*/ jsx(Placeholder, {
1361
+ title: text,
1362
+ imgSrc: imgSrc,
1363
+ imgAlt: imgAlt,
1364
+ actions: onRetry ? /*#__PURE__*/ jsx(Button, {
1365
+ variant: "outline",
1366
+ onClick: onRetry,
1367
+ children: "Попробовать снова"
1368
+ }) : void 0
1369
+ })
1370
+ });
1371
+ }
1372
+ return null;
1373
+ }
1374
+ var styles_css_container = 'style__82af400';
1375
+ function Body({ isError, isLoading, emptyState, errorState, columns, rows, rowHeight, keyId, onRowClick }) {
1376
+ const isEmpty = 0 === rows.length;
1377
+ const isStateVisible = isError || isLoading || isEmpty;
1378
+ return isStateVisible ? /*#__PURE__*/ jsx("tbody", {
1379
+ className: styles_css_container,
1380
+ children: /*#__PURE__*/ jsx(State, {
1381
+ emptyState: emptyState,
1382
+ errorState: errorState,
1383
+ isEmpty: isEmpty,
1384
+ isError: isError,
1385
+ isLoading: isLoading,
1386
+ columnsLength: columns.length
1387
+ })
1388
+ }) : /*#__PURE__*/ jsx("tbody", {
1389
+ className: styles_css_container,
1390
+ children: rows.map((row, index)=>{
1391
+ const rowId = String(row[keyId]);
1392
+ return /*#__PURE__*/ jsx(Row, {
1393
+ row: row,
1394
+ rowId: rowId,
1395
+ rowHeight: rowHeight,
1396
+ columns: columns,
1397
+ onRowClick: onRowClick,
1398
+ rowIndex: index
1399
+ }, row[keyId]);
1400
+ })
1401
+ });
1402
+ }
1403
+ var Footer_styles_css_footerClass = 'style__2s55b60';
1404
+ function Footer_Footer({ children, className }) {
1405
+ return /*#__PURE__*/ jsx("footer", {
1406
+ className: clsx(Footer_styles_css_footerClass, className),
1407
+ children: children
1408
+ });
1409
+ }
1410
+ var headerCellClass = 'style__uma6hu0';
1411
+ function HeaderCell({ column, height, width }) {
1412
+ return /*#__PURE__*/ jsx("th", {
1413
+ style: {
1414
+ color: column.color,
1415
+ height,
1416
+ width
1417
+ },
1418
+ align: column.align ?? 'left',
1419
+ title: column.title,
1420
+ className: headerCellClass,
1421
+ children: column.renderHeaderCell?.(column) || column.title
1422
+ });
1423
+ }
1424
+ var stickyClass = 'style__fkgoub0';
1425
+ function Header_Header({ columns, height, sticky }) {
1426
+ return /*#__PURE__*/ jsx("thead", {
1427
+ children: /*#__PURE__*/ jsx("tr", {
1428
+ className: clsx({
1429
+ [stickyClass]: sticky
1430
+ }),
1431
+ children: columns.map((col)=>/*#__PURE__*/ jsx(HeaderCell, {
1432
+ column: col,
1433
+ height: height,
1434
+ width: col.width
1435
+ }, col.title))
1436
+ })
1437
+ });
1438
+ }
1439
+ var DataGrid_styles_css_container = 'style__1gqvluf0';
1440
+ var styles_css_disabled = 'style__1gqvluf3';
1441
+ var fullHeight = 'style__1gqvluf2';
1442
+ var loading = 'style__1gqvluf4';
1443
+ var table = 'style__1gqvluf1';
1444
+ var titleClass = 'style__1gqvluf5';
1445
+ function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, headerHeight = 40, keyId, onRowClick, isLoading, isDisabled, isError, emptyState, errorState, footer, title, stickyHeader, onRetry }) {
1446
+ const isFullHeight = isLoading || isError || 0 === rows.length;
1447
+ return /*#__PURE__*/ jsxs("div", {
1448
+ "data-slot": "data-grid",
1449
+ style: {
1450
+ height
1451
+ },
1452
+ className: clsx(DataGrid_styles_css_container, className),
1453
+ children: [
1454
+ /*#__PURE__*/ jsxs("table", {
1455
+ className: clsx(table, {
1456
+ [styles_css_disabled]: isDisabled,
1457
+ [loading]: isLoading,
1458
+ [fullHeight]: isFullHeight
1459
+ }, className),
1460
+ children: [
1461
+ title && /*#__PURE__*/ jsx("caption", {
1462
+ className: titleClass,
1463
+ children: title
1464
+ }),
1465
+ /*#__PURE__*/ jsx(Header_Header, {
1466
+ columns: columns,
1467
+ height: headerHeight,
1468
+ sticky: stickyHeader
1469
+ }),
1470
+ /*#__PURE__*/ jsx(Body, {
1471
+ rows: rows,
1472
+ columns: columns,
1473
+ rowHeight: rowHeight,
1474
+ keyId: keyId,
1475
+ onRowClick: onRowClick,
1476
+ isLoading: isLoading,
1477
+ emptyState: emptyState,
1478
+ errorState: errorState,
1479
+ isError: isError,
1480
+ onRetry: onRetry
1481
+ })
1482
+ ]
1483
+ }),
1484
+ footer && /*#__PURE__*/ jsx(Footer_Footer, {
1485
+ children: footer
1486
+ })
1487
+ ]
1488
+ });
1489
+ }
1490
+ var checkboxItem = 'style__1ib8wkt7';
1491
+ var checkboxItemIndicator = 'style__1ib8wkt9';
1492
+ var DropdownMenu_styles_css_content = 'style__1ib8wkt5';
1493
+ var styles_css_icon = 'style__1ib8wkt3';
1494
+ var DropdownMenu_styles_css_item = 'style__1ib8wkt6';
1495
+ var styles_css_label = 'style__1ib8wktb';
1496
+ var radioItem = 'style__1ib8wkt8';
1497
+ var radioItemIndicator = 'style__1ib8wkta';
1498
+ var styles_css_separator = 'style__1ib8wktc';
1499
+ var shortcut = 'style__1ib8wktd';
1500
+ var subContent = 'style__1ib8wkt4';
1501
+ var subTrigger = 'style__1ib8wkt2';
1502
+ const DropdownMenu = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Root;
1503
+ const DropdownMenuTrigger = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Trigger;
1504
+ const DropdownMenuGroup = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Group;
1505
+ const DropdownMenuPortal = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Portal;
1506
+ const DropdownMenuSub = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Sub;
1507
+ const DropdownMenuRadioGroup = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.RadioGroup;
1508
+ const DropdownMenuSubTrigger = ({ className, inset, children, ...props })=>/*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.SubTrigger, {
1509
+ className: clsx_0(subTrigger, {
1510
+ inset
1511
+ }, className),
1512
+ ...props,
1513
+ children: [
1514
+ children,
1515
+ /*#__PURE__*/ jsx(ChevronRight, {
1516
+ className: styles_css_icon
1517
+ })
1518
+ ]
1519
+ });
1520
+ const DropdownMenuSubContent = ({ className, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.SubContent, {
1521
+ className: clsx_0(subContent, className),
1522
+ ...props
1523
+ });
1524
+ const DropdownMenuContent = ({ className, sideOffset = 4, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Portal, {
1525
+ children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Content, {
1526
+ sideOffset: sideOffset,
1527
+ className: clsx_0(DropdownMenu_styles_css_content, className),
1528
+ ...props
1529
+ })
1530
+ });
1531
+ const DropdownMenuItem = ({ className, inset, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Item, {
1532
+ className: clsx_0(DropdownMenu_styles_css_item, {
1533
+ inset
1534
+ }, className),
1535
+ ...props
1536
+ });
1537
+ const DropdownMenuCheckboxItem = ({ className, children, checked, ...props })=>/*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.CheckboxItem, {
1538
+ className: clsx_0(checkboxItem, className),
1539
+ checked: checked,
1540
+ ...props,
1541
+ children: [
1542
+ /*#__PURE__*/ jsx("span", {
1543
+ className: checkboxItemIndicator,
1544
+ children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.ItemIndicator, {
1545
+ children: /*#__PURE__*/ jsx(Check, {
1546
+ className: styles_css_icon
1547
+ })
1548
+ })
1549
+ }),
1550
+ children
1551
+ ]
1552
+ });
1553
+ const DropdownMenuRadioItem = ({ className, children, ...props })=>/*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.RadioItem, {
1554
+ className: clsx_0(radioItem, className),
1555
+ ...props,
1556
+ children: [
1557
+ /*#__PURE__*/ jsx("span", {
1558
+ className: radioItemIndicator,
1559
+ children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.ItemIndicator, {
1560
+ children: /*#__PURE__*/ jsx(Circle, {
1561
+ className: styles_css_icon
1562
+ })
1563
+ })
1564
+ }),
1565
+ children
1566
+ ]
1567
+ });
1568
+ const DropdownMenuLabel = ({ className, inset, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Label, {
1569
+ className: clsx_0(styles_css_label, {
1570
+ inset
1571
+ }, className),
1572
+ ...props
1573
+ });
1574
+ const DropdownMenuSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Separator, {
1575
+ className: clsx_0(styles_css_separator, className),
1576
+ ...props
1577
+ });
1578
+ const DropdownMenuShortcut = ({ className, ...props })=>/*#__PURE__*/ jsx("span", {
1579
+ className: clsx_0(shortcut, className),
1580
+ ...props
1581
+ });
1582
+ const MainIconButton_useLogic_useLogic_useLogic = ({ action })=>{
1583
+ const { isLoading, disabledReason, name } = action;
1584
+ const [isVisibleTooltip, setVisibleTooltip] = useState(false);
1585
+ const handleOpenChange = (open)=>setVisibleTooltip(open);
1586
+ useEffect(()=>{
1587
+ if (isLoading) setVisibleTooltip(false);
1588
+ }, [
1589
+ isLoading
1590
+ ]);
1591
+ const text = disabledReason || name;
1592
+ return {
1593
+ tooltipProps: {
1594
+ text,
1595
+ open: isVisibleTooltip,
1596
+ onOpenChange: handleOpenChange
1597
+ }
1598
+ };
1599
+ };
1600
+ const MainIconButton = (props)=>{
1601
+ const { tooltipProps } = MainIconButton_useLogic_useLogic_useLogic(props);
1602
+ const { action, onActionClick, isDisabled, tooltipPlacement } = props;
1603
+ const { name, icon, needConfirm, confirmText, confirmButtonProps, disabled, isLoading, onClick } = action;
1604
+ const renderButton = (renderProps)=>/*#__PURE__*/ jsx(Tooltip, {
1605
+ arrow: true,
1606
+ side: tooltipPlacement,
1607
+ ...tooltipProps,
1608
+ children: /*#__PURE__*/ jsx(Button, {
1609
+ disabled: isDisabled || disabled,
1610
+ isLoading: isLoading,
1611
+ variant: "ghost",
1612
+ size: "icon",
1613
+ ...renderProps,
1614
+ children: icon
1615
+ })
1616
+ }, name);
1617
+ return /*#__PURE__*/ jsx(Fragment, {
1618
+ children: needConfirm ? /*#__PURE__*/ jsx(ConfirmAction, {
1619
+ text: confirmText,
1620
+ confirmButtonProps: confirmButtonProps,
1621
+ actionComponent: (renderProps)=>renderButton(renderProps),
1622
+ onConfirm: onActionClick(onClick)
1623
+ }) : renderButton({
1624
+ onClick: onActionClick(onClick)
1625
+ })
1626
+ });
1627
+ };
1628
+ const MainAction = ({ action, onActionClick, isDisabled, tooltipPlacement })=>{
1629
+ if ('actions' in action) {
1630
+ const { disabled, icon, name, disabledReason, actions, isLoading } = action;
1631
+ return /*#__PURE__*/ jsxs(DropdownMenu, {
1632
+ children: [
1633
+ /*#__PURE__*/ jsx(DropdownMenuTrigger, {
1634
+ asChild: true,
1635
+ children: /*#__PURE__*/ jsx(Tooltip, {
1636
+ text: disabledReason || name,
1637
+ side: tooltipPlacement,
1638
+ arrow: true,
1639
+ children: /*#__PURE__*/ jsx(Button, {
1640
+ variant: "ghost",
1641
+ size: "icon",
1642
+ isLoading: isLoading,
1643
+ disabled: isDisabled || disabled,
1644
+ children: icon
1645
+ })
1646
+ }, name)
1647
+ }),
1648
+ /*#__PURE__*/ jsx(DropdownMenuContent, {
1649
+ children: actions.map(({ name: nestedActionName, onClick: onClickNested, ...props })=>/*#__PURE__*/ createElement(DropdownMenuItem, {
1650
+ ...props,
1651
+ key: nestedActionName,
1652
+ asChild: true
1653
+ }, /*#__PURE__*/ jsx(Button, {
1654
+ size: "sm",
1655
+ onClick: onActionClick(onClickNested),
1656
+ children: nestedActionName
1657
+ })))
1658
+ })
1659
+ ]
1660
+ });
1661
+ }
1662
+ return /*#__PURE__*/ jsx(MainIconButton, {
1663
+ action: action,
1664
+ onActionClick: onActionClick,
1665
+ isDisabled: isDisabled,
1666
+ tooltipPlacement: tooltipPlacement
1667
+ });
1668
+ };
1669
+ const SecondaryActions = ({ actions, onActionClick, tooltipPlacement, isDisabled })=>/*#__PURE__*/ jsxs(DropdownMenu, {
1670
+ children: [
1671
+ /*#__PURE__*/ jsx(DropdownMenuTrigger, {
1672
+ asChild: true,
1673
+ children: /*#__PURE__*/ jsx(Button, {
1674
+ disabled: isDisabled,
1675
+ variant: "ghost",
1676
+ size: "icon",
1677
+ children: /*#__PURE__*/ jsx(EllipsisVertical, {})
1678
+ })
1679
+ }),
1680
+ /*#__PURE__*/ jsx(DropdownMenuContent, {
1681
+ children: actions.map((action)=>{
1682
+ const { onClick, name, disabledReason, isLoading } = action;
1683
+ return /*#__PURE__*/ jsx(DropdownMenuItem, {
1684
+ asChild: true,
1685
+ children: /*#__PURE__*/ jsx(Tooltip, {
1686
+ arrow: true,
1687
+ side: tooltipPlacement,
1688
+ text: disabledReason,
1689
+ children: /*#__PURE__*/ jsx(Button, {
1690
+ onClick: onActionClick(onClick),
1691
+ isLoading: isLoading,
1692
+ variant: "ghost",
1693
+ size: "sm",
1694
+ fullWidth: true,
1695
+ children: name
1696
+ })
1697
+ })
1698
+ }, name);
1699
+ })
1700
+ })
1701
+ ]
1702
+ });
1703
+ var DataGridActionCell_styles_css_wrapper = 'style__y44ln70';
1704
+ const DataGridActionCell_useLogic_useLogic_useLogic = ({ row, actions })=>{
1705
+ const { main, secondary } = actions;
1706
+ const blockingAction = [
1707
+ ...main,
1708
+ ...secondary || []
1709
+ ].find((action)=>action.isBlockingOperation && action.isLoading);
1710
+ const isDisabledAction = Boolean(blockingAction);
1711
+ const handleActionClick = useCallback((onClick)=>()=>{
1712
+ onClick?.(row);
1713
+ }, [
1714
+ row
1715
+ ]);
1716
+ const handleWrapperClick = (event)=>{
1717
+ event.stopPropagation();
1718
+ };
1719
+ return {
1720
+ isDisabledAction,
1721
+ handleActionClick,
1722
+ handleWrapperClick
1723
+ };
1724
+ };
1725
+ const TOOLTIP_PLACEMENT = {
1726
+ mainAction: 'top',
1727
+ secondaryAction: 'left'
1728
+ };
1729
+ const DataGridActionCell = (props)=>{
1730
+ const { isDisabledAction, handleWrapperClick, handleActionClick } = DataGridActionCell_useLogic_useLogic_useLogic(props);
1731
+ const { actions } = props;
1732
+ const { main, secondary } = actions;
1733
+ return /*#__PURE__*/ jsxs("div", {
1734
+ onClick: handleWrapperClick,
1735
+ onKeyDown: handleWrapperClick,
1736
+ className: DataGridActionCell_styles_css_wrapper,
1737
+ children: [
1738
+ main.map((action)=>/*#__PURE__*/ jsx(MainAction, {
1739
+ action: action,
1740
+ onActionClick: handleActionClick,
1741
+ isDisabled: isDisabledAction,
1742
+ tooltipPlacement: TOOLTIP_PLACEMENT.mainAction
1743
+ }, action.name)),
1744
+ secondary && /*#__PURE__*/ jsx(SecondaryActions, {
1745
+ actions: secondary,
1746
+ onActionClick: handleActionClick,
1747
+ tooltipPlacement: TOOLTIP_PLACEMENT.secondaryAction,
1748
+ isDisabled: isDisabledAction
1749
+ })
1750
+ ]
1751
+ });
1752
+ };
1753
+ var styles_css_alignments = {
1754
+ left: 'left__o752f01',
1755
+ center: 'center__o752f02',
1756
+ right: 'right__o752f03',
1757
+ justify: 'justify__o752f04'
1758
+ };
1759
+ var DataGridSortHeader_styles_css_wrapper = 'style__o752f00';
1760
+ function DataGridSortHeader({ sorting, setSorting, column: { title, field, align = 'left' }, className }) {
1761
+ if (!field) return null;
1762
+ const handleClick = ()=>{
1763
+ sorting.key === field ? setSorting({
1764
+ key: field,
1765
+ order: 'asc' === sorting.order ? 'desc' : 'asc'
1766
+ }) : setSorting({
1767
+ key: field,
1768
+ order: 'asc'
1769
+ });
1770
+ };
1771
+ return /*#__PURE__*/ jsxs("button", {
1772
+ type: "button",
1773
+ className: clsx(DataGridSortHeader_styles_css_wrapper, styles_css_alignments[align], className),
1774
+ onClick: handleClick,
1775
+ children: [
1776
+ title,
1777
+ sorting.key === field ? 'asc' === sorting.order ? /*#__PURE__*/ jsx(ArrowDownNarrowWide, {
1778
+ size: 16
1779
+ }) : /*#__PURE__*/ jsx(ArrowDownWideNarrow, {
1780
+ size: 16
1781
+ }) : /*#__PURE__*/ jsx(ArrowDownUp, {
1782
+ size: 16
1783
+ })
1784
+ ]
1785
+ });
1786
+ }
1787
+ const ITEM_CLASSNAME = 'datalist_item';
1788
+ const END_OF_SCROLL_MESSAGE = 'Вы достигли конца списка';
1789
+ var EndData_styles_css_item = 'style__1syvw5e0';
1790
+ const EndData = ({ endOfScrollMsg = END_OF_SCROLL_MESSAGE })=>/*#__PURE__*/ jsx("li", {
1791
+ className: EndData_styles_css_item,
1792
+ children: /*#__PURE__*/ jsx(Typography, {
1793
+ children: endOfScrollMsg
1794
+ })
1795
+ });
1796
+ const ERROR_MESSAGE = 'Ошибка загрузки';
1797
+ var ErrorState_styles_css_item = 'style__qlujai0';
1798
+ const ErrorState = ({ onRetry })=>/*#__PURE__*/ jsxs("li", {
1799
+ className: ErrorState_styles_css_item,
1800
+ children: [
1801
+ /*#__PURE__*/ jsx(Typography, {
1802
+ align: "center",
1803
+ children: ERROR_MESSAGE
1804
+ }),
1805
+ /*#__PURE__*/ jsx(Button, {
1806
+ size: "sm",
1807
+ onClick: onRetry,
1808
+ children: "Попробовать снова"
1809
+ })
1810
+ ]
1811
+ });
1812
+ var Loader_styles_css_item = 'style__111czea0';
1813
+ const Loader = ()=>/*#__PURE__*/ jsx("li", {
1814
+ className: Loader_styles_css_item,
1815
+ children: /*#__PURE__*/ jsx(CircularProgress, {
1816
+ color: "primary"
1817
+ })
1818
+ });
1819
+ const NO_DATA_TEXT = 'Нет данных';
1820
+ const NoData = ({ noDataImgSrc })=>/*#__PURE__*/ jsx(Placeholder, {
1821
+ title: NO_DATA_TEXT,
1822
+ imgSrc: noDataImgSrc
1823
+ });
1824
+ var styles_css_buttonClass = 'style__1jg5nd90';
1825
+ var visible = 'style__1jg5nd91';
1826
+ const ScrollToTopButton = ({ onClick, isVisible })=>/*#__PURE__*/ jsx(Button, {
1827
+ onClick: onClick,
1828
+ size: "icon",
1829
+ variant: "outline",
1830
+ className: clsx(styles_css_buttonClass, {
1831
+ [visible]: isVisible
1832
+ }),
1833
+ children: /*#__PURE__*/ jsx(ChevronUp, {})
1834
+ });
1835
+ var itemClass = 'style__1ezen7g1';
1836
+ var list = 'style__1ezen7g0';
1837
+ const DataList = ({ data, keyId, className, itemContent, noDataPlaceholder, endOfScrollMsg, errorState, isLoading, isError, isEndReached, onRetry, onEndReached, ref })=>{
1838
+ const innerRef = useRef(null);
1839
+ const virtuoso = ref || innerRef;
1840
+ const [isStickyButtonActive, setIsStickyButtonActive] = useState(false);
1841
+ const handleRangeChanged = useCallback((range)=>{
1842
+ range.startIndex > 2 ? setIsStickyButtonActive(true) : setIsStickyButtonActive(false);
1843
+ }, []);
1844
+ const handleScrollToTop = useCallback(()=>virtuoso.current?.scrollToIndex({
1845
+ index: 0,
1846
+ align: 'start',
1847
+ behavior: 'smooth'
1848
+ }), [
1849
+ virtuoso
1850
+ ]);
1851
+ const handleEndReach = useCallback(()=>{
1852
+ if (!isEndReached && onEndReached) onEndReached();
1853
+ }, [
1854
+ isEndReached,
1855
+ onEndReached
1856
+ ]);
1857
+ const isDataExist = Boolean(data?.length);
1858
+ if (!isDataExist && !isLoading && !isError) return noDataPlaceholder ? /*#__PURE__*/ jsx(Fragment, {
1859
+ children: noDataPlaceholder
1860
+ }) : /*#__PURE__*/ jsx(NoData, {});
1861
+ return /*#__PURE__*/ jsxs(ContentState, {
1862
+ isLoading: isLoading && !isDataExist,
1863
+ isError: isError && !isDataExist,
1864
+ errorState: errorState,
1865
+ children: [
1866
+ /*#__PURE__*/ jsx(Virtuoso, {
1867
+ className: clsx(list, className),
1868
+ style: {
1869
+ height: '100%'
1870
+ },
1871
+ data: data,
1872
+ ref: virtuoso,
1873
+ overscan: 30,
1874
+ endReached: handleEndReach,
1875
+ rangeChanged: handleRangeChanged,
1876
+ itemContent: (index, item)=>/*#__PURE__*/ jsx("li", {
1877
+ children: itemContent?.(item, {
1878
+ index,
1879
+ className: clsx(itemClass, ITEM_CLASSNAME)
1880
+ })
1881
+ }, item[keyId]),
1882
+ components: {
1883
+ Footer: ()=>/*#__PURE__*/ jsxs(Fragment, {
1884
+ children: [
1885
+ isLoading && /*#__PURE__*/ jsx(Loader, {}),
1886
+ isError && /*#__PURE__*/ jsx(ErrorState, {
1887
+ onRetry: onRetry
1888
+ }),
1889
+ isEndReached && /*#__PURE__*/ jsx(EndData, {
1890
+ endOfScrollMsg: endOfScrollMsg
1891
+ })
1892
+ ]
1893
+ })
1894
+ }
1895
+ }),
1896
+ /*#__PURE__*/ jsx(ScrollToTopButton, {
1897
+ isVisible: isStickyButtonActive,
1898
+ onClick: handleScrollToTop
1899
+ })
1900
+ ]
1901
+ });
1902
+ };
1903
+ var adornment = 'style__1blk89uc';
1904
+ var Input_styles_css_container = 'Input__1blk89u0';
1905
+ var styles_css_disabledClass = 'style__1blk89u6';
1906
+ var errorClass = 'style__1blk89u7';
1907
+ var fullWidthClass = 'style__1blk89u3';
1908
+ var input = 'style__1blk89u8';
1909
+ var Input_styles_css_sizes = {
1910
+ sm: 'sm__1blk89u9',
1911
+ md: 'md__1blk89ua',
1912
+ lg: 'lg__1blk89ub'
1913
+ };
1914
+ var Input_styles_css_variants = {
1915
+ outlined: 'outlined__1blk89u1',
1916
+ standard: 'standard__1blk89u2'
1917
+ };
1918
+ var withEndAdornment = 'style__1blk89ue';
1919
+ var withStartAdornment = 'style__1blk89ud';
1920
+ const Input = ({ error, variant = 'outlined', size = 'md', startAdornment, endAdornment, className, disabled, fullWidth, value, ref, ...props })=>/*#__PURE__*/ jsxs("div", {
1921
+ className: clsx(Input_styles_css_container, Input_styles_css_variants[variant], {
1922
+ [errorClass]: error
1923
+ }, {
1924
+ [styles_css_disabledClass]: disabled
1925
+ }, {
1926
+ [fullWidthClass]: fullWidth
1927
+ }, className),
1928
+ children: [
1929
+ startAdornment && /*#__PURE__*/ jsx("span", {
1930
+ className: adornment,
1931
+ children: startAdornment
1932
+ }),
1933
+ /*#__PURE__*/ jsx("input", {
1934
+ className: clsx(input, Input_styles_css_sizes[size], {
1935
+ [styles_css_disabledClass]: disabled,
1936
+ [withStartAdornment]: Boolean(startAdornment),
1937
+ [withEndAdornment]: Boolean(endAdornment)
1938
+ }),
1939
+ ref: ref,
1940
+ disabled: disabled,
1941
+ value: value || '',
1942
+ ...props
1943
+ }),
1944
+ endAdornment && /*#__PURE__*/ jsx("span", {
1945
+ className: adornment,
1946
+ children: endAdornment
1947
+ })
1948
+ ]
1949
+ });
1950
+ var TextField_styles_css_container = 'style__kqu4y20';
1951
+ var TextField_styles_css_disabledClass = 'style__kqu4y23';
1952
+ var styles_css_errorClass = 'style__kqu4y24';
1953
+ var styles_css_fullWidthClass = 'style__kqu4y25';
1954
+ var helperTextClass = 'style__kqu4y22';
1955
+ var styles_css_labelClass = 'style__kqu4y21';
1956
+ const TextField = ({ label, helperText, className, disabled, fullWidth, ref, labelClassName, ...props })=>/*#__PURE__*/ jsxs("div", {
1957
+ className: clsx(TextField_styles_css_container, {
1958
+ [styles_css_fullWidthClass]: fullWidth
1959
+ }, className),
1960
+ children: [
1961
+ label && /*#__PURE__*/ jsx(Label, {
1962
+ htmlFor: props.id || label,
1963
+ disabled: disabled,
1964
+ required: props.required,
1965
+ error: props.error,
1966
+ className: clsx(styles_css_labelClass, labelClassName),
1967
+ children: label
1968
+ }),
1969
+ /*#__PURE__*/ jsx(Input, {
1970
+ ref: ref,
1971
+ disabled: disabled,
1972
+ fullWidth: fullWidth,
1973
+ id: props.id || label,
1974
+ ...props
1975
+ }),
1976
+ helperText && /*#__PURE__*/ jsx(Typography, {
1977
+ variant: "caption",
1978
+ className: clsx(helperTextClass, {
1979
+ [styles_css_errorClass]: props.error,
1980
+ [TextField_styles_css_disabledClass]: disabled
1981
+ }),
1982
+ children: helperText
1983
+ })
1984
+ ]
1985
+ });
1986
+ const MaskField = ({ maskProps, ref, ...textFieldProps })=>{
1987
+ const maskInputRef = useMask(maskProps);
1988
+ const mergedRef = useCallback((element)=>{
1989
+ maskInputRef.current = element;
1990
+ if ('function' == typeof ref) ref(element);
1991
+ else if (ref) ref.current = element;
1992
+ }, [
1993
+ maskInputRef,
1994
+ ref
1995
+ ]);
1996
+ return /*#__PURE__*/ jsx(TextField, {
1997
+ ref: mergedRef,
1998
+ ...textFieldProps
1999
+ });
2000
+ };
2001
+ const DatePicker = (props)=>{
2002
+ const { label, disabled = false, selected, onSelect, selectMonth, selectYear, error, helperText, className, fullWidth, size, name, ...rest } = props;
2003
+ const [innerError, setInnerError] = useState(null);
2004
+ const [isOpen, setIsOpen] = useState(false);
2005
+ const [month, setMonth] = useState(new Date());
2006
+ const [inputValue, setInputValue] = useState('');
2007
+ const getLayout = ()=>{
2008
+ if (selectMonth && selectYear) return 'dropdown';
2009
+ if (selectMonth) return 'dropdown-months';
2010
+ if (selectYear) return 'dropdown-years';
2011
+ return 'label';
2012
+ };
2013
+ const handleClick = ()=>{
2014
+ setIsOpen(true);
2015
+ };
2016
+ const handleClose = ()=>{
2017
+ setIsOpen(false);
2018
+ };
2019
+ const handleDayPickerSelect = (date)=>{
2020
+ if (date) {
2021
+ onSelect?.(date);
2022
+ setMonth(date);
2023
+ setInputValue(date.toLocaleString('ru-RU', {
2024
+ day: '2-digit',
2025
+ month: '2-digit',
2026
+ year: 'numeric'
2027
+ }));
2028
+ } else {
2029
+ setInputValue('');
2030
+ onSelect?.(void 0);
2031
+ }
2032
+ handleClose();
2033
+ };
2034
+ const handleInputChange = (e)=>{
2035
+ setInnerError(null);
2036
+ setInputValue(e.target.value);
2037
+ const [day, month, year] = e.target.value.split('.').map(Number);
2038
+ if (Number.isNaN(day) || Number.isNaN(month) || Number.isNaN(year) || day < 1 || day > 31 || month < 1 || month > 12 || year < 1000) return void setInnerError('Некорректная дата');
2039
+ const parsedDate = new Date(year, month - 1, day);
2040
+ onSelect?.(parsedDate);
2041
+ setMonth(parsedDate);
2042
+ };
2043
+ useEffect(()=>{
2044
+ if (selected) {
2045
+ setInputValue(selected.toLocaleString('ru-RU', {
2046
+ day: '2-digit',
2047
+ month: '2-digit',
2048
+ year: 'numeric'
2049
+ }));
2050
+ setMonth(selected);
2051
+ } else setInputValue('');
2052
+ }, [
2053
+ selected
2054
+ ]);
2055
+ return /*#__PURE__*/ jsxs(Popover, {
2056
+ open: isOpen,
2057
+ onOpenChange: setIsOpen,
2058
+ children: [
2059
+ /*#__PURE__*/ jsx(MaskField, {
2060
+ value: inputValue,
2061
+ onChange: handleInputChange,
2062
+ label: label,
2063
+ disabled: disabled,
2064
+ className: className,
2065
+ fullWidth: fullWidth,
2066
+ size: size,
2067
+ name: name,
2068
+ endAdornment: /*#__PURE__*/ jsx(PopoverTrigger, {
2069
+ asChild: true,
2070
+ children: /*#__PURE__*/ jsx(Button, {
2071
+ variant: "ghost",
2072
+ size: "icon",
2073
+ onClick: handleClick,
2074
+ children: /*#__PURE__*/ jsx(Calendar1, {})
2075
+ })
2076
+ }),
2077
+ maskProps: {
2078
+ mask: '__.__.____',
2079
+ replacement: {
2080
+ _: /\d/
2081
+ },
2082
+ showMask: true
2083
+ },
2084
+ placeholder: "дд.мм.гггг",
2085
+ error: !!innerError || error,
2086
+ helperText: innerError || helperText
2087
+ }),
2088
+ /*#__PURE__*/ jsx(PopoverContent, {
2089
+ align: "end",
2090
+ alignOffset: -10,
2091
+ side: "bottom",
2092
+ children: /*#__PURE__*/ jsx(Calendar, {
2093
+ month: month,
2094
+ onMonthChange: setMonth,
2095
+ selected: selected,
2096
+ onSelect: handleDayPickerSelect,
2097
+ ...rest,
2098
+ mode: "single",
2099
+ captionLayout: getLayout()
2100
+ })
2101
+ })
2102
+ ]
2103
+ });
2104
+ };
2105
+ const DESCRIPTION_ROOT_CLASSNAME = "descriptionRoot";
2106
+ const DescriptionContext = /*#__PURE__*/ createContext({
2107
+ leader: false,
2108
+ separator: ":",
2109
+ direction: 'default'
2110
+ });
2111
+ const DescriptionContextProvider = ({ children, leader, separator, direction })=>/*#__PURE__*/ jsx(DescriptionContext.Provider, {
2112
+ value: {
2113
+ leader,
2114
+ separator,
2115
+ direction
2116
+ },
2117
+ children: children
2118
+ });
2119
+ var dashedSeparator = 'style__1tsgk1i2';
2120
+ var styles_css_leader = 'style__1tsgk1i1';
2121
+ var Name_styles_css_wrapper = 'style__1tsgk1i0';
2122
+ const Name = ({ children, color = 'secondary', ...props })=>{
2123
+ const { leader, separator } = useContext(DescriptionContext);
2124
+ return /*#__PURE__*/ jsxs(Fragment, {
2125
+ children: [
2126
+ /*#__PURE__*/ jsx("dt", {
2127
+ className: clsx(Name_styles_css_wrapper, {
2128
+ [styles_css_leader]: leader
2129
+ }),
2130
+ children: /*#__PURE__*/ jsxs(Typography, {
2131
+ ...props,
2132
+ color: color,
2133
+ children: [
2134
+ children,
2135
+ !leader && separator
2136
+ ]
2137
+ })
2138
+ }),
2139
+ leader && /*#__PURE__*/ jsx("div", {
2140
+ className: dashedSeparator
2141
+ })
2142
+ ]
2143
+ });
2144
+ };
2145
+ var directions = {
2146
+ row: 'row__1lociyw1',
2147
+ column: 'column__1lociyw2'
2148
+ };
2149
+ var justify = {
2150
+ spaceBetween: 'spaceBetween__1lociyw3',
2151
+ start: 'start__1lociyw4'
2152
+ };
2153
+ var Description_styles_css_wrapper = 'style__1lociyw0';
2154
+ const Description_useLogic_useLogic_useLogic = ({ direction = 'row', separator = ":" })=>{
2155
+ const hasSeparator = 'column' === direction;
2156
+ const descriptionContextProviderProps = {
2157
+ separator: hasSeparator ? '' : separator
2158
+ };
2159
+ return {
2160
+ descriptionContextProviderProps,
2161
+ direction
2162
+ };
2163
+ };
2164
+ var Value_styles_css_leader = 'style__sdcsnp2';
2165
+ var styles_css_text = 'style__sdcsnp1';
2166
+ var Value_styles_css_wrapper = 'style__sdcsnp0';
2167
+ const Value_useLogic_useLogic_useLogic = ({ canCopy, children, stub = '—' })=>{
2168
+ const { leader, direction } = useContext(DescriptionContext);
2169
+ const valueToRender = children || stub;
2170
+ const isDefaultValueRender = !canCopy || !children;
2171
+ return {
2172
+ valueToRender,
2173
+ isDefaultValueRender,
2174
+ leader,
2175
+ direction
2176
+ };
2177
+ };
2178
+ const Value = (props)=>{
2179
+ const { valueToRender, isDefaultValueRender, leader } = Value_useLogic_useLogic_useLogic(props);
2180
+ const { copyPosition = 'right', copyText, canCopy, children, stub, ...restProps } = props;
2181
+ if (isDefaultValueRender) return /*#__PURE__*/ jsx(Typography, {
2182
+ className: clsx_0(styles_css_text, {
2183
+ [Value_styles_css_leader]: leader
2184
+ }),
2185
+ component: "dd",
2186
+ ...restProps,
2187
+ children: valueToRender
2188
+ });
2189
+ return /*#__PURE__*/ jsx("dd", {
2190
+ className: Value_styles_css_wrapper,
2191
+ children: /*#__PURE__*/ jsx(CopyTypography, {
2192
+ className: clsx_0({
2193
+ [Value_styles_css_leader]: leader
2194
+ }),
2195
+ copyPosition: copyPosition,
2196
+ copyText: copyText,
2197
+ ...restProps,
2198
+ children: valueToRender
2199
+ })
2200
+ });
2201
+ };
2202
+ const Description_Description = (props)=>{
2203
+ const { descriptionContextProviderProps, direction } = Description_useLogic_useLogic_useLogic(props);
2204
+ const { justifyContent = 'start', component: Component = 'dl', children, leader = false, className } = props;
2205
+ return /*#__PURE__*/ jsx(DescriptionContextProvider, {
2206
+ leader: leader,
2207
+ direction: direction,
2208
+ ...descriptionContextProviderProps,
2209
+ children: /*#__PURE__*/ jsx(Component, {
2210
+ className: clsx(Description_styles_css_wrapper, directions[direction], justify[justifyContent], DESCRIPTION_ROOT_CLASSNAME, className),
2211
+ children: children
2212
+ })
2213
+ });
2214
+ };
2215
+ Description_Description.Name = Name;
2216
+ Description_Description.Value = Value;
2217
+ var styles_css_closeButton = 'style__8bkmbe6';
2218
+ var closeSpan = 'style__8bkmbe7';
2219
+ var Dialog_styles_css_content = 'style__8bkmbe5';
2220
+ var Dialog_styles_css_description = 'style__8bkmbec';
2221
+ var Dialog_styles_css_footer = 'style__8bkmbea';
2222
+ var hasDescription = 'style__8bkmbe9';
2223
+ var Dialog_styles_css_header = 'style__8bkmbe8';
2224
+ var styles_css_overlay = 'style__8bkmbe2';
2225
+ var Dialog_styles_css_title = 'style__8bkmbeb';
2226
+ const Dialog = ({ title, description = '', trigger, className, footer, children, ...props })=>/*#__PURE__*/ jsxs(react_dialog_Root, {
2227
+ ...props,
2228
+ children: [
2229
+ trigger && /*#__PURE__*/ jsx(react_dialog_Trigger, {
2230
+ asChild: true,
2231
+ children: trigger
2232
+ }),
2233
+ /*#__PURE__*/ jsxs(react_dialog_Portal, {
2234
+ children: [
2235
+ /*#__PURE__*/ jsx(react_dialog_Overlay, {
2236
+ className: clsx_0(styles_css_overlay)
2237
+ }),
2238
+ /*#__PURE__*/ jsxs(react_dialog_Content, {
2239
+ className: clsx_0(Dialog_styles_css_content, className),
2240
+ children: [
2241
+ /*#__PURE__*/ jsxs("div", {
2242
+ className: clsx_0(Dialog_styles_css_header, {
2243
+ [hasDescription]: Boolean(description)
2244
+ }),
2245
+ children: [
2246
+ /*#__PURE__*/ jsx(react_dialog_Title, {
2247
+ className: Dialog_styles_css_title,
2248
+ children: title
2249
+ }),
2250
+ /*#__PURE__*/ jsx(react_dialog_Description, {
2251
+ className: Dialog_styles_css_description,
2252
+ children: description
2253
+ }),
2254
+ props.onOpenChange && /*#__PURE__*/ jsxs(Close, {
2255
+ className: styles_css_closeButton,
2256
+ children: [
2257
+ /*#__PURE__*/ jsx(X, {
2258
+ size: 24
2259
+ }),
2260
+ /*#__PURE__*/ jsx("span", {
2261
+ className: closeSpan,
2262
+ children: "Close"
2263
+ })
2264
+ ]
2265
+ })
2266
+ ]
2267
+ }),
2268
+ children,
2269
+ footer && /*#__PURE__*/ jsx("div", {
2270
+ className: Dialog_styles_css_footer,
2271
+ children: footer
2272
+ })
2273
+ ]
2274
+ })
2275
+ ]
2276
+ })
2277
+ ]
2278
+ });
2279
+ var Drawer_styles_css_content = 'style__ccss503';
2280
+ var Drawer_styles_css_description = 'style__ccss508';
2281
+ var dragHandle = 'style__ccss504';
2282
+ var Drawer_styles_css_footer = 'style__ccss506';
2283
+ var Drawer_styles_css_header = 'style__ccss505';
2284
+ var Drawer_styles_css_overlay = 'style__ccss502';
2285
+ var Drawer_styles_css_title = 'style__ccss507';
2286
+ const Drawer_Drawer = ({ children, trigger, className, title, description = '', footer, closeButton, ...props })=>/*#__PURE__*/ jsxs(external_vaul_Root, {
2287
+ ...props,
2288
+ children: [
2289
+ trigger && /*#__PURE__*/ jsx(Drawer.Trigger, {
2290
+ "data-slot": "drawer-trigger",
2291
+ asChild: true,
2292
+ children: trigger
2293
+ }),
2294
+ /*#__PURE__*/ jsxs(Drawer.Portal, {
2295
+ "data-slot": "drawer-portal",
2296
+ children: [
2297
+ /*#__PURE__*/ jsx(Drawer.Overlay, {
2298
+ "data-slot": "drawer-overlay",
2299
+ className: Drawer_styles_css_overlay
2300
+ }),
2301
+ /*#__PURE__*/ jsxs(Drawer.Content, {
2302
+ "data-slot": "drawer-content",
2303
+ className: clsx('group/drawer-content', Drawer_styles_css_content, className),
2304
+ children: [
2305
+ /*#__PURE__*/ jsx("div", {
2306
+ className: dragHandle
2307
+ }),
2308
+ /*#__PURE__*/ jsxs("div", {
2309
+ "data-slot": "drawer-header",
2310
+ className: Drawer_styles_css_header,
2311
+ children: [
2312
+ /*#__PURE__*/ jsx(Drawer.Title, {
2313
+ "data-slot": "drawer-title",
2314
+ className: Drawer_styles_css_title,
2315
+ children: title
2316
+ }),
2317
+ /*#__PURE__*/ jsx(Drawer.Description, {
2318
+ "data-slot": "drawer-description",
2319
+ className: Drawer_styles_css_description,
2320
+ children: description
2321
+ })
2322
+ ]
2323
+ }),
2324
+ children,
2325
+ /*#__PURE__*/ jsxs("div", {
2326
+ "data-slot": "drawer-footer",
2327
+ className: Drawer_styles_css_footer,
2328
+ children: [
2329
+ footer,
2330
+ closeButton && /*#__PURE__*/ jsx(Drawer.Close, {
2331
+ "data-slot": "drawer-close",
2332
+ asChild: true,
2333
+ children: closeButton
2334
+ })
2335
+ ]
2336
+ })
2337
+ ]
2338
+ })
2339
+ ]
2340
+ })
2341
+ ]
2342
+ });
2343
+ var arrow = 'style__a5l83v4';
2344
+ var arrowLeft = 'style__a5l83v5';
2345
+ var arrowRight = 'style__a5l83v6';
2346
+ var carousel = 'style__a5l83v0';
2347
+ var carouselInner = 'style__a5l83v1';
2348
+ var styles_css_image = 'style__a5l83v3';
2349
+ var styles_css_indicator = 'style__a5l83v8';
2350
+ var indicators = 'style__a5l83v7';
2351
+ var slide = 'style__a5l83v2';
2352
+ const ImageCarousel = ({ images = [], autoPlay = false, interval = 5000 })=>{
2353
+ const [currentIndex, setCurrentIndex] = useState(0);
2354
+ const goToPrevious = ()=>{
2355
+ setCurrentIndex((prevIndex)=>0 === prevIndex ? images.length - 1 : prevIndex - 1);
2356
+ };
2357
+ const goToNext = ()=>{
2358
+ setCurrentIndex((prevIndex)=>prevIndex === images.length - 1 ? 0 : prevIndex + 1);
2359
+ };
2360
+ const goToSlide = (index)=>{
2361
+ setCurrentIndex(index);
2362
+ };
2363
+ useEffect(()=>{
2364
+ if (!autoPlay) return;
2365
+ const timer = setInterval(()=>{
2366
+ setCurrentIndex((prevIndex)=>prevIndex === images.length - 1 ? 0 : prevIndex + 1);
2367
+ }, interval);
2368
+ return ()=>clearInterval(timer);
2369
+ }, [
2370
+ autoPlay,
2371
+ images.length,
2372
+ interval
2373
+ ]);
2374
+ if (0 === images.length) return /*#__PURE__*/ jsx("div", {
2375
+ className: carousel,
2376
+ children: "Нет изображений для отображения"
2377
+ });
2378
+ return /*#__PURE__*/ jsxs("div", {
2379
+ className: carousel,
2380
+ children: [
2381
+ /*#__PURE__*/ jsx("div", {
2382
+ className: carouselInner,
2383
+ style: {
2384
+ transform: `translateX(-${100 * currentIndex}%)`
2385
+ },
2386
+ children: images.map((image, index)=>/*#__PURE__*/ jsx("div", {
2387
+ className: slide,
2388
+ children: /*#__PURE__*/ jsx("img", {
2389
+ src: image.src,
2390
+ alt: image.alt || `Slide ${index + 1}`,
2391
+ className: styles_css_image
2392
+ })
2393
+ }, image.src))
2394
+ }),
2395
+ images.length > 1 && /*#__PURE__*/ jsxs(Fragment, {
2396
+ children: [
2397
+ /*#__PURE__*/ jsx("button", {
2398
+ type: "button",
2399
+ className: clsx(arrow, arrowLeft),
2400
+ onClick: goToPrevious,
2401
+ children: /*#__PURE__*/ jsx(ChevronLeft, {
2402
+ size: 24
2403
+ })
2404
+ }),
2405
+ /*#__PURE__*/ jsx("button", {
2406
+ type: "button",
2407
+ className: clsx(arrow, arrowRight),
2408
+ onClick: goToNext,
2409
+ children: /*#__PURE__*/ jsx(ChevronRight, {
2410
+ size: 24
2411
+ })
2412
+ }),
2413
+ /*#__PURE__*/ jsx("div", {
2414
+ className: indicators,
2415
+ children: images.map(({ src }, index)=>/*#__PURE__*/ jsx("button", {
2416
+ type: "button",
2417
+ className: `${styles_css_indicator} ${currentIndex === index ? 'active' : ''}`,
2418
+ onClick: ()=>goToSlide(index)
2419
+ }, src))
2420
+ })
2421
+ ]
2422
+ })
2423
+ ]
2424
+ });
2425
+ };
2426
+ var separatorClass = 'style__te1pgr0';
2427
+ const Separator = ({ separator = '•', ...props })=>/*#__PURE__*/ jsx("div", {
2428
+ ...props,
2429
+ children: /*#__PURE__*/ jsx("span", {
2430
+ className: separatorClass,
2431
+ children: separator
2432
+ })
2433
+ });
2434
+ var active = 'style__rtks2g1';
2435
+ var caret = 'style__rtks2g4';
2436
+ var caretContainer = 'style__rtks2g2';
2437
+ var styles_css_slot = 'style__rtks2g0';
2438
+ const Slot_Slot = ({ char, hasFakeCaret, isActive, ...props })=>/*#__PURE__*/ jsxs("div", {
2439
+ className: clsx(styles_css_slot, {
2440
+ [active]: isActive
2441
+ }),
2442
+ ...props,
2443
+ children: [
2444
+ char,
2445
+ hasFakeCaret && /*#__PURE__*/ jsx("div", {
2446
+ className: caretContainer,
2447
+ children: /*#__PURE__*/ jsx("div", {
2448
+ className: caret
2449
+ })
2450
+ })
2451
+ ]
2452
+ });
2453
+ var InputOTP_styles_css_container = 'style__1iixe0l0';
2454
+ var InputOTP_styles_css_disabled = 'style__1iixe0l3';
2455
+ var group = 'style__1iixe0l2';
2456
+ var styles_css_input = 'style__1iixe0l1';
2457
+ const InputOTP = ({ className, containerClassName, disabled, ...props })=>/*#__PURE__*/ jsx(OTPInput, {
2458
+ containerClassName: clsx(InputOTP_styles_css_container, {
2459
+ [InputOTP_styles_css_disabled]: disabled
2460
+ }, containerClassName),
2461
+ className: clsx(styles_css_input, className),
2462
+ render: ({ slots })=>{
2463
+ if (slots.length % 2 !== 0) return /*#__PURE__*/ jsx("div", {
2464
+ className: group,
2465
+ children: slots.map((slot, index)=>/*#__PURE__*/ jsx(Slot_Slot, {
2466
+ ...slot
2467
+ }, `${index.toString()}-${slot.char}`))
2468
+ });
2469
+ return /*#__PURE__*/ jsxs(Fragment, {
2470
+ children: [
2471
+ /*#__PURE__*/ jsx("div", {
2472
+ className: group,
2473
+ children: slots.slice(0, slots.length / 2).map((slot, idx)=>/*#__PURE__*/ jsx(Slot_Slot, {
2474
+ ...slot
2475
+ }, `${idx.toString()}-${slot.char}`))
2476
+ }),
2477
+ /*#__PURE__*/ jsx(Separator, {}),
2478
+ /*#__PURE__*/ jsx("div", {
2479
+ className: group,
2480
+ children: slots.slice(slots.length / 2).map((slot, idx)=>/*#__PURE__*/ jsx(Slot_Slot, {
2481
+ ...slot
2482
+ }, `${idx.toString()}-${slot.char}`))
2483
+ })
2484
+ ]
2485
+ });
2486
+ },
2487
+ ...props
2488
+ });
2489
+ const PAGE_CONTENT_CLASSNAME = 'page-content';
2490
+ const PAGE_HEADER_CLASSNAME = 'page_header';
2491
+ const PAGE_ASIDE_CLASSNAME = 'page_aside';
2492
+ var Aside_styles_css_rootClass = 'PageLayoutAside__1un4hm80';
2493
+ const Aside = ({ children, className })=>/*#__PURE__*/ jsx("aside", {
2494
+ className: clsx(Aside_styles_css_rootClass, className, PAGE_ASIDE_CLASSNAME),
2495
+ children: children
2496
+ });
2497
+ var fullHeightClass = 'style__1hr0uh01';
2498
+ var Content_styles_css_rootClass = 'style__1hr0uh00';
2499
+ const PageLayout_Content_Content_Content = (props)=>{
2500
+ const { className, children, isFullHeight = true } = props;
2501
+ return /*#__PURE__*/ jsx("article", {
2502
+ className: clsx(PAGE_CONTENT_CLASSNAME, Content_styles_css_rootClass, {
2503
+ [fullHeightClass]: isFullHeight
2504
+ }, className),
2505
+ children: children
2506
+ });
2507
+ };
2508
+ var Footer_styles_css_rootClass = 'style__1bd8jnw0';
2509
+ const Footer_Footer_Footer = (props)=>{
2510
+ const { children, className } = props;
2511
+ return /*#__PURE__*/ jsx("footer", {
2512
+ className: clsx(Footer_styles_css_rootClass, className),
2513
+ children: children
2514
+ });
2515
+ };
2516
+ var styles_css_actionsClass = 'style__nvcxbd3';
2517
+ var breadcrumbsClass = 'Breadcrumbs__nvcxbd0';
2518
+ var styles_css_buttonsClass = 'style__nvcxbd2';
2519
+ var Header_styles_css_rootClass = 'style__nvcxbd1';
2520
+ var subtitleClass = 'style__nvcxbd6';
2521
+ var subtitleContainerClass = 'style__nvcxbd7';
2522
+ var styles_css_titleClass = 'style__nvcxbd4';
2523
+ var titleContainerClass = 'style__nvcxbd5';
2524
+ const Header_Header_Header = (props)=>{
2525
+ const { title, subtitle, breadcrumbs, actions, backButton, className } = props;
2526
+ const { pinned, togglePinned } = useDashboard();
2527
+ useEffect(()=>{
2528
+ if ('string' == typeof title) document.title = title;
2529
+ }, [
2530
+ title
2531
+ ]);
2532
+ return /*#__PURE__*/ jsxs("header", {
2533
+ className: clsx(PAGE_HEADER_CLASSNAME, Header_styles_css_rootClass, className),
2534
+ children: [
2535
+ /*#__PURE__*/ jsxs("div", {
2536
+ className: styles_css_buttonsClass,
2537
+ children: [
2538
+ /*#__PURE__*/ jsx(Tooltip, {
2539
+ text: pinned ? 'Развернуть' : 'Свернуть',
2540
+ children: /*#__PURE__*/ jsx(Button, {
2541
+ variant: "ghost",
2542
+ size: "icon",
2543
+ onClick: togglePinned,
2544
+ children: pinned ? /*#__PURE__*/ jsx(PanelLeftOpen, {}) : /*#__PURE__*/ jsx(PanelLeftClose, {})
2545
+ })
2546
+ }),
2547
+ backButton && /*#__PURE__*/ jsx(Tooltip, {
2548
+ text: "Назад",
2549
+ children: /*#__PURE__*/ jsx(Button, {
2550
+ ...backButton,
2551
+ variant: "ghost",
2552
+ children: /*#__PURE__*/ jsx(ChevronLeft, {})
2553
+ })
2554
+ })
2555
+ ]
2556
+ }),
2557
+ breadcrumbs && /*#__PURE__*/ jsx("div", {
2558
+ className: breadcrumbsClass,
2559
+ children: breadcrumbs
2560
+ }),
2561
+ /*#__PURE__*/ jsx("div", {
2562
+ className: styles_css_actionsClass,
2563
+ children: actions
2564
+ }),
2565
+ 'string' == typeof title ? /*#__PURE__*/ jsx(Typography, {
2566
+ className: styles_css_titleClass,
2567
+ component: "h1",
2568
+ variant: "h3",
2569
+ "aria-level": 1,
2570
+ children: title
2571
+ }) : /*#__PURE__*/ jsx("div", {
2572
+ className: titleContainerClass,
2573
+ children: title
2574
+ }),
2575
+ subtitle && 'string' == typeof subtitle && /*#__PURE__*/ jsx(Typography, {
2576
+ className: subtitleClass,
2577
+ "aria-level": 2,
2578
+ children: subtitle
2579
+ }),
2580
+ subtitle && 'string' != typeof subtitle && /*#__PURE__*/ jsx("div", {
2581
+ className: subtitleContainerClass,
2582
+ children: subtitle
2583
+ })
2584
+ ]
2585
+ });
2586
+ };
2587
+ var PageLayout_styles_css_rootClass = 'style__adrl250';
2588
+ const PageLayout = ({ children, className })=>/*#__PURE__*/ jsx("div", {
2589
+ className: clsx(PageLayout_styles_css_rootClass, className),
2590
+ children: children
2591
+ });
2592
+ PageLayout.Header = Header_Header_Header;
2593
+ PageLayout.Content = PageLayout_Content_Content_Content;
2594
+ PageLayout.Footer = Footer_Footer_Footer;
2595
+ PageLayout.Aside = Aside;
2596
+ var ellipsisSpan = 'style__p708oq1';
2597
+ var paginationContainer = 'style__p708oq0';
2598
+ const useLogic_range = (start, end)=>{
2599
+ const length = end - start + 1;
2600
+ return Array.from({
2601
+ length
2602
+ }, (_, idx)=>idx + start);
2603
+ };
2604
+ const Pagination_useLogic_useLogic = ({ totalCount, pageSize, siblingCount = 1, currentPage })=>{
2605
+ const paginationRange = useMemo(()=>{
2606
+ if (pageSize <= 0 || totalCount <= 0) return [];
2607
+ const totalPageCount = Math.ceil(totalCount / pageSize);
2608
+ const totalPageNumbersToShow = siblingCount + 5;
2609
+ if (totalPageNumbersToShow >= totalPageCount) return useLogic_range(1, totalPageCount);
2610
+ const leftSibling = Math.max(currentPage - siblingCount, 1);
2611
+ const rightSibling = Math.min(currentPage + siblingCount, totalPageCount);
2612
+ const showLeftDots = leftSibling > 2;
2613
+ const showRightDots = rightSibling < totalPageCount - 2;
2614
+ const firstPage = 1;
2615
+ const lastPage = totalPageCount;
2616
+ if (!showLeftDots && showRightDots) {
2617
+ const visiblePageCountBeforeDots = 3 + 2 * siblingCount;
2618
+ const leftRange = useLogic_range(1, visiblePageCountBeforeDots);
2619
+ return [
2620
+ ...leftRange,
2621
+ null,
2622
+ totalPageCount
2623
+ ];
2624
+ }
2625
+ if (showLeftDots && !showRightDots) {
2626
+ const visiblePageCountAfterDots = 3 + 2 * siblingCount;
2627
+ const rightRange = useLogic_range(totalPageCount - visiblePageCountAfterDots + 1, totalPageCount);
2628
+ return [
2629
+ firstPage,
2630
+ null,
2631
+ ...rightRange
2632
+ ];
2633
+ }
2634
+ if (showLeftDots && showRightDots) {
2635
+ const middleRange = useLogic_range(leftSibling, rightSibling);
2636
+ return [
2637
+ firstPage,
2638
+ null,
2639
+ ...middleRange,
2640
+ null,
2641
+ lastPage
2642
+ ];
2643
+ }
2644
+ return [];
2645
+ }, [
2646
+ totalCount,
2647
+ pageSize,
2648
+ siblingCount,
2649
+ currentPage
2650
+ ]);
2651
+ return paginationRange;
2652
+ };
2653
+ function Pagination(props) {
2654
+ const { onPageChange, totalCount, siblingCount = 1, currentPage, pageSize, size = 'icon' } = props;
2655
+ const paginationRange = Pagination_useLogic_useLogic({
2656
+ currentPage,
2657
+ totalCount,
2658
+ siblingCount,
2659
+ pageSize
2660
+ });
2661
+ if (0 === currentPage || paginationRange && paginationRange.length < 2) return null;
2662
+ const onNext = ()=>{
2663
+ onPageChange(currentPage + 1);
2664
+ };
2665
+ const onPrevious = ()=>{
2666
+ onPageChange(currentPage - 1);
2667
+ };
2668
+ const lastPage = paginationRange.at(-1);
2669
+ return /*#__PURE__*/ jsxs("nav", {
2670
+ className: paginationContainer,
2671
+ children: [
2672
+ /*#__PURE__*/ jsx(Button, {
2673
+ variant: "ghost",
2674
+ size: size,
2675
+ onClick: onPrevious,
2676
+ disabled: 1 === currentPage,
2677
+ children: /*#__PURE__*/ jsx(ChevronLeft, {})
2678
+ }),
2679
+ paginationRange?.map((pageNumber, index)=>{
2680
+ if (!pageNumber) return /*#__PURE__*/ jsx("span", {
2681
+ className: ellipsisSpan,
2682
+ children: /*#__PURE__*/ jsx(Ellipsis, {})
2683
+ });
2684
+ return /*#__PURE__*/ jsx(Button, {
2685
+ size: size,
2686
+ variant: pageNumber === currentPage ? 'default' : 'outline',
2687
+ onClick: ()=>onPageChange(+pageNumber),
2688
+ children: pageNumber
2689
+ }, `${pageNumber}${index.toString()}`);
2690
+ }),
2691
+ /*#__PURE__*/ jsx(Button, {
2692
+ variant: "ghost",
2693
+ size: size,
2694
+ onClick: onNext,
2695
+ disabled: currentPage === lastPage,
2696
+ children: /*#__PURE__*/ jsx(ChevronRight, {})
2697
+ })
2698
+ ]
2699
+ });
2700
+ }
2701
+ const MONTHS = [
2702
+ 'Янв.',
2703
+ 'Фев.',
2704
+ 'Мар.',
2705
+ 'Апр.',
2706
+ 'Май',
2707
+ 'Июн.',
2708
+ 'Июл.',
2709
+ 'Авг.',
2710
+ 'Сен.',
2711
+ 'Окт.',
2712
+ 'Ноя.',
2713
+ 'Дек.'
2714
+ ];
2715
+ const QUARTERS = [
2716
+ 'I квартал',
2717
+ 'II квартал',
2718
+ 'III квартал',
2719
+ 'IV квартал'
2720
+ ];
2721
+ var styles_css_months = 'style__1izfmw31';
2722
+ var quarters = 'style__1izfmw32';
2723
+ var PeriodPicker_styles_css_wrapper = 'style__1izfmw30';
2724
+ const getQuarter = (month)=>Math.ceil(month / 3);
2725
+ const getQuarterLabel = (date)=>{
2726
+ if (!date) return '';
2727
+ return `${QUARTERS[getQuarter(date.getMonth())]} ${date.getFullYear()}`;
2728
+ };
2729
+ function YearsDropdown({ year, onSelect, minDate, maxDate }) {
2730
+ const years = Array.from({
2731
+ length: maxDate.getFullYear() - minDate.getFullYear() + 1
2732
+ }, (_, index)=>minDate.getFullYear() + index);
2733
+ const onChange = (year)=>{
2734
+ onSelect?.(Number(year));
2735
+ };
2736
+ return /*#__PURE__*/ jsxs(Select, {
2737
+ onValueChange: onChange,
2738
+ value: year.toString(),
2739
+ children: [
2740
+ /*#__PURE__*/ jsx(SelectTrigger, {
2741
+ children: /*#__PURE__*/ jsx(SelectValue, {
2742
+ placeholder: year.toString()
2743
+ })
2744
+ }),
2745
+ /*#__PURE__*/ jsx(SelectContent, {
2746
+ children: years.map((value)=>/*#__PURE__*/ jsx(SelectItem, {
2747
+ value: value.toString(),
2748
+ children: /*#__PURE__*/ jsx(Typography, {
2749
+ align: "center",
2750
+ variant: "subtitle1",
2751
+ transform: "capitalize",
2752
+ children: value
2753
+ })
2754
+ }, value))
2755
+ })
2756
+ ]
2757
+ });
2758
+ }
2759
+ const PeriodPicker = (props)=>{
2760
+ const { label, disabled = false, value, onSelect, type = 'month', placeholder = 'month' === type ? 'Выберите месяц' : 'Выберите квартал', error, helperText, max = new Date(2050, 0, 1), min = new Date(2000, 0, 1), className, size, fullWidth, name } = props;
2761
+ const now = new Date();
2762
+ const [isOpen, setIsOpen] = useState(false);
2763
+ const [year, setYear] = useState(now.getFullYear());
2764
+ const handleClose = ()=>{
2765
+ setIsOpen(false);
2766
+ };
2767
+ const handleSelect = (date)=>{
2768
+ onSelect?.(date);
2769
+ handleClose();
2770
+ };
2771
+ const textValue = 'month' === type ? value?.toLocaleDateString('ru-RU', {
2772
+ month: 'long',
2773
+ year: 'numeric'
2774
+ }) : getQuarterLabel(value);
2775
+ useEffect(()=>{
2776
+ if (value) setYear(value.getFullYear());
2777
+ }, [
2778
+ value
2779
+ ]);
2780
+ return /*#__PURE__*/ jsxs(Popover, {
2781
+ open: isOpen,
2782
+ onOpenChange: setIsOpen,
2783
+ children: [
2784
+ /*#__PURE__*/ jsx(TextField, {
2785
+ label: label,
2786
+ value: textValue,
2787
+ disabled: disabled,
2788
+ size: size,
2789
+ fullWidth: fullWidth,
2790
+ name: name,
2791
+ endAdornment: /*#__PURE__*/ jsx(PopoverTrigger, {
2792
+ asChild: true,
2793
+ children: /*#__PURE__*/ jsx(Button, {
2794
+ disabled: disabled,
2795
+ variant: "ghost",
2796
+ size: "icon",
2797
+ children: /*#__PURE__*/ jsx(Calendar1, {})
2798
+ })
2799
+ }),
2800
+ placeholder: placeholder,
2801
+ error: error,
2802
+ helperText: helperText,
2803
+ className: className
2804
+ }),
2805
+ /*#__PURE__*/ jsx(PopoverContent, {
2806
+ align: "end",
2807
+ alignOffset: -10,
2808
+ side: "bottom",
2809
+ children: /*#__PURE__*/ jsxs("div", {
2810
+ className: PeriodPicker_styles_css_wrapper,
2811
+ children: [
2812
+ /*#__PURE__*/ jsx(YearsDropdown, {
2813
+ year: year,
2814
+ onSelect: setYear,
2815
+ minDate: min,
2816
+ maxDate: max
2817
+ }),
2818
+ 'month' === type ? /*#__PURE__*/ jsx("div", {
2819
+ className: styles_css_months,
2820
+ children: MONTHS.map((label, index)=>{
2821
+ const date = new Date(year, index, value?.getDate() || 1);
2822
+ return /*#__PURE__*/ jsx(Button, {
2823
+ variant: value?.getMonth() === index && value.getFullYear() === date.getFullYear() ? 'default' : 'ghost',
2824
+ disabled: date < min || date > max,
2825
+ onClick: ()=>handleSelect(date),
2826
+ children: label
2827
+ }, label);
2828
+ })
2829
+ }) : /*#__PURE__*/ jsx("div", {
2830
+ className: quarters,
2831
+ children: QUARTERS.map((label, index)=>{
2832
+ const monthIndex = 3 * index;
2833
+ const date = new Date(year, monthIndex, 1);
2834
+ return /*#__PURE__*/ jsx(Button, {
2835
+ variant: value && [
2836
+ getQuarter(value.getMonth()) === index,
2837
+ value.getFullYear() === date.getFullYear()
2838
+ ].every(Boolean) ? 'default' : 'ghost',
2839
+ disabled: date < min || date > max,
2840
+ onClick: ()=>handleSelect(date),
2841
+ children: label
2842
+ }, label);
2843
+ })
2844
+ })
2845
+ ]
2846
+ })
2847
+ })
2848
+ ]
2849
+ });
2850
+ };
2851
+ var iconClass = 'style__ia95d14';
2852
+ var indicatorClass = 'style__ia95d13';
2853
+ var styles_css_itemClass = 'style__ia95d12';
2854
+ var itemWrapperClass = 'style__ia95d11';
2855
+ var radioGroupClass = 'RadioGroup__ia95d10';
2856
+ const RadioGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(react_radio_group_Root, {
2857
+ "data-slot": "radio-group",
2858
+ className: clsx_0(radioGroupClass, className),
2859
+ ...props
2860
+ });
2861
+ const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div", {
2862
+ className: itemWrapperClass,
2863
+ children: [
2864
+ /*#__PURE__*/ jsx(react_radio_group_Item, {
2865
+ "data-slot": "radio-group-item",
2866
+ id: props.id || props.value,
2867
+ className: clsx(styles_css_itemClass, className),
2868
+ ...props,
2869
+ children: /*#__PURE__*/ jsx(Indicator, {
2870
+ "data-slot": "radio-group-indicator",
2871
+ className: indicatorClass,
2872
+ children: /*#__PURE__*/ jsx(CircleIcon, {
2873
+ className: iconClass
2874
+ })
2875
+ })
2876
+ }),
2877
+ /*#__PURE__*/ jsx(Label, {
2878
+ htmlFor: props.id || props.value,
2879
+ "data-slot": "radio-group-label",
2880
+ children: label
2881
+ })
2882
+ ]
2883
+ });
2884
+ var styles_css_range = 'style__h9oy582';
2885
+ var Slider_styles_css_root = 'style__h9oy580';
2886
+ var thumb = 'style__h9oy583';
2887
+ var track = 'style__h9oy581';
2888
+ const Slider = ({ className, ...props })=>/*#__PURE__*/ jsxs(react_slider_Root, {
2889
+ className: clsx(Slider_styles_css_root, className),
2890
+ ...props,
2891
+ children: [
2892
+ /*#__PURE__*/ jsx(Track, {
2893
+ className: track,
2894
+ children: /*#__PURE__*/ jsx(Range, {
2895
+ className: styles_css_range
2896
+ })
2897
+ }),
2898
+ /*#__PURE__*/ jsx(Thumb, {
2899
+ className: thumb
2900
+ }),
2901
+ props.value?.length === 2 && /*#__PURE__*/ jsx(Thumb, {
2902
+ className: thumb
2903
+ })
2904
+ ]
2905
+ });
2906
+ var activeClass = 'style__1pnwkko1';
2907
+ var RangeInput_styles_css_container = 'style__1pnwkko0';
2908
+ var inputClass = 'style__1pnwkko6';
2909
+ var RangeInput_styles_css_sizes = {
2910
+ sm: 'sm__1pnwkko2',
2911
+ md: 'md__1pnwkko3',
2912
+ lg: 'lg__1pnwkko4'
2913
+ };
2914
+ var sliderClass = 'style__1pnwkko7';
2915
+ var styles_css_textClass = 'style__1pnwkko5';
2916
+ const RangeInput_useLogic_useLogic_useLogic = ({ min, max, maxValue, minValue, onChange })=>{
2917
+ const minId = useId();
2918
+ const maxId = useId();
2919
+ const [minVal, setMinVal] = useState(min);
2920
+ const [maxVal, setMaxVal] = useState(max);
2921
+ const onValueChange = (newValue)=>{
2922
+ if (newValue[0] === newValue[1]) return void onChange(newValue[0], newValue[1]);
2923
+ setMinVal(newValue[0]);
2924
+ setMaxVal(newValue[1]);
2925
+ };
2926
+ const onMinValueChange = (event)=>{
2927
+ const { value } = event.target;
2928
+ if (!Number.isNaN(+value)) setMinVal(+value);
2929
+ };
2930
+ const onMaxValueChange = (event)=>{
2931
+ const { value } = event.target;
2932
+ if (!Number.isNaN(value)) setMaxVal(+value);
2933
+ };
2934
+ const onKeyDown = (event)=>{
2935
+ if ('Enter' === event.key) {
2936
+ const minValue = minVal >= min && minVal <= max ? minVal : min;
2937
+ const maxValue = maxVal >= min && maxVal <= max ? maxVal : max;
2938
+ onChange(minValue, maxValue);
2939
+ }
2940
+ };
2941
+ const onConfirm = (value)=>{
2942
+ onChange(value[0], value[1]);
2943
+ };
2944
+ useEffect(()=>{
2945
+ setMinVal(minValue ? minValue : min);
2946
+ setMaxVal(maxValue ? maxValue : max);
2947
+ }, [
2948
+ minValue,
2949
+ maxValue,
2950
+ min,
2951
+ max
2952
+ ]);
2953
+ return {
2954
+ maxId,
2955
+ minId,
2956
+ minVal,
2957
+ maxVal,
2958
+ onValueChange,
2959
+ onMinValueChange,
2960
+ onMaxValueChange,
2961
+ onKeyDown,
2962
+ onConfirm
2963
+ };
2964
+ };
2965
+ function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, label = '', unit = '', size = 'md', className, isActive, minInputRef, maxInputRef }) {
2966
+ const { onMinValueChange, onMaxValueChange, minVal, maxVal, onKeyDown, onValueChange, onConfirm, minId, maxId } = RangeInput_useLogic_useLogic_useLogic({
2967
+ min,
2968
+ max,
2969
+ maxValue,
2970
+ minValue,
2971
+ onChange
2972
+ });
2973
+ return /*#__PURE__*/ jsxs("div", {
2974
+ className: clsx(RangeInput_styles_css_container, RangeInput_styles_css_sizes[size], {
2975
+ [activeClass]: isActive
2976
+ }, className),
2977
+ style: {
2978
+ width
2979
+ },
2980
+ children: [
2981
+ /*#__PURE__*/ jsx(Typography, {
2982
+ className: styles_css_textClass,
2983
+ color: "disabled",
2984
+ variant: "body2",
2985
+ children: label
2986
+ }),
2987
+ /*#__PURE__*/ jsx(Typography, {
2988
+ className: styles_css_textClass,
2989
+ color: "disabled",
2990
+ variant: "body2",
2991
+ children: "от"
2992
+ }),
2993
+ /*#__PURE__*/ jsx("input", {
2994
+ className: inputClass,
2995
+ type: "text",
2996
+ id: minId,
2997
+ value: minVal,
2998
+ onChange: onMinValueChange,
2999
+ onKeyDown: onKeyDown,
3000
+ ref: minInputRef
3001
+ }),
3002
+ /*#__PURE__*/ jsx(Typography, {
3003
+ className: styles_css_textClass,
3004
+ color: "disabled",
3005
+ variant: "body2",
3006
+ children: "до"
3007
+ }),
3008
+ /*#__PURE__*/ jsx("input", {
3009
+ className: inputClass,
3010
+ type: "text",
3011
+ id: maxId,
3012
+ value: maxVal,
3013
+ onChange: onMaxValueChange,
3014
+ onKeyDown: onKeyDown,
3015
+ ref: maxInputRef
3016
+ }),
3017
+ /*#__PURE__*/ jsx(Typography, {
3018
+ className: styles_css_textClass,
3019
+ color: "disabled",
3020
+ variant: "body2",
3021
+ children: unit
3022
+ }),
3023
+ /*#__PURE__*/ jsx("div", {
3024
+ className: sliderClass,
3025
+ children: /*#__PURE__*/ jsx(Slider, {
3026
+ min: min,
3027
+ max: max,
3028
+ value: [
3029
+ Number(minVal),
3030
+ Number(maxVal)
3031
+ ],
3032
+ onValueChange: onValueChange,
3033
+ onValueCommit: onConfirm
3034
+ })
3035
+ })
3036
+ ]
3037
+ });
3038
+ }
3039
+ var ScrollTopButton_styles_css_button = 'style__1ou2vjc0';
3040
+ var styles_css_visible = 'style__1ou2vjc1';
3041
+ function ScrollTopButton({ onClick, variant = 'outline', ...props }) {
3042
+ const [isVisible, setIsVisible] = useState(false);
3043
+ const scrollToTop = ()=>{
3044
+ window.scrollTo({
3045
+ top: 0,
3046
+ left: 0,
3047
+ behavior: 'smooth'
3048
+ });
3049
+ };
3050
+ useEffect(()=>{
3051
+ const toggleVisibility = ()=>{
3052
+ window.scrollY > 400 ? setIsVisible(true) : setIsVisible(false);
3053
+ };
3054
+ window.addEventListener('scroll', toggleVisibility);
3055
+ return ()=>{
3056
+ window.removeEventListener('scroll', toggleVisibility);
3057
+ };
3058
+ }, []);
3059
+ return /*#__PURE__*/ jsx(Button, {
3060
+ type: "button",
3061
+ variant: variant,
3062
+ className: clsx(ScrollTopButton_styles_css_button, {
3063
+ [styles_css_visible]: isVisible
3064
+ }),
3065
+ onClick: onClick || scrollToTop,
3066
+ ...props,
3067
+ children: /*#__PURE__*/ jsx(ChevronUp, {})
3068
+ });
3069
+ }
3070
+ var chevron = 'style__5ilg7oe';
3071
+ var Select_styles_css_content = 'style__5ilg7o7';
3072
+ var Select_styles_css_icon = 'style__5ilg7od';
3073
+ var Select_styles_css_item = 'style__5ilg7oa';
3074
+ var itemIndicatorWrapper = 'style__5ilg7ob';
3075
+ var Select_styles_css_label = 'style__5ilg7o9';
3076
+ var scrollButton = 'style__5ilg7o6';
3077
+ var Select_styles_css_separator = 'style__5ilg7oc';
3078
+ var Select_styles_css_sizes = {
3079
+ sm: 'sm__5ilg7o3',
3080
+ md: 'md__5ilg7o4',
3081
+ lg: 'lg__5ilg7o5'
3082
+ };
3083
+ var Select_styles_css_trigger = 'style__5ilg7o2';
3084
+ var viewport = 'style__5ilg7o8';
3085
+ const Select = react_select_Root;
3086
+ const SelectGroup = Group;
3087
+ const SelectValue = react_select_Value;
3088
+ const SelectTrigger = ({ className, children, size = 'md', ...props })=>/*#__PURE__*/ jsxs(react_select_Trigger, {
3089
+ className: clsx(Select_styles_css_trigger, Select_styles_css_sizes[size], className),
3090
+ ...props,
3091
+ children: [
3092
+ children,
3093
+ /*#__PURE__*/ jsx(Icon, {
3094
+ asChild: true,
3095
+ children: /*#__PURE__*/ jsx(ChevronDown, {
3096
+ className: chevron
3097
+ })
3098
+ })
3099
+ ]
3100
+ });
3101
+ const SelectScrollUpButton = ({ className, ...props })=>/*#__PURE__*/ jsx(ScrollUpButton, {
3102
+ className: clsx(scrollButton, className),
3103
+ ...props,
3104
+ children: /*#__PURE__*/ jsx(ChevronUp, {
3105
+ className: Select_styles_css_icon
3106
+ })
3107
+ });
3108
+ const SelectScrollDownButton = ({ className, ...props })=>/*#__PURE__*/ jsx(ScrollDownButton, {
3109
+ className: clsx(scrollButton, className),
3110
+ ...props,
3111
+ children: /*#__PURE__*/ jsx(ChevronDown, {
3112
+ className: Select_styles_css_icon
3113
+ })
3114
+ });
3115
+ const SelectContent = ({ className, children, position = 'popper', ...props })=>/*#__PURE__*/ jsx(react_select_Portal, {
3116
+ children: /*#__PURE__*/ jsxs(react_select_Content, {
3117
+ className: clsx(Select_styles_css_content, className),
3118
+ position: position,
3119
+ ...props,
3120
+ children: [
3121
+ /*#__PURE__*/ jsx(SelectScrollUpButton, {}),
3122
+ /*#__PURE__*/ jsx(Viewport, {
3123
+ className: viewport,
3124
+ children: children
3125
+ }),
3126
+ /*#__PURE__*/ jsx(SelectScrollDownButton, {})
3127
+ ]
3128
+ })
3129
+ });
3130
+ const SelectLabel = ({ className, ...props })=>/*#__PURE__*/ jsx(react_select_Label, {
3131
+ className: `${Select_styles_css_label} ${className || ''}`,
3132
+ ...props
3133
+ });
3134
+ const SelectItem = ({ className, children, ...props })=>/*#__PURE__*/ jsxs(react_select_Item, {
3135
+ className: `${Select_styles_css_item} ${className || ''}`,
3136
+ ...props,
3137
+ children: [
3138
+ /*#__PURE__*/ jsx("span", {
3139
+ className: itemIndicatorWrapper,
3140
+ children: /*#__PURE__*/ jsx(ItemIndicator, {
3141
+ children: /*#__PURE__*/ jsx(Check, {
3142
+ className: Select_styles_css_icon
3143
+ })
3144
+ })
3145
+ }),
3146
+ /*#__PURE__*/ jsx(ItemText, {
3147
+ children: children
3148
+ })
3149
+ ]
3150
+ });
3151
+ const SelectSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(react_select_Separator, {
3152
+ className: `${Select_styles_css_separator} ${className || ''}`,
3153
+ ...props
3154
+ });
3155
+ var Tabs_styles_css_contentClass = 'style__hworoa5';
3156
+ var listClass = 'style__hworoa0';
3157
+ var Tabs_styles_css_sizes = {
3158
+ sm: 'sm__hworoa2',
3159
+ md: 'md__hworoa3',
3160
+ lg: 'lg__hworoa4'
3161
+ };
3162
+ var styles_css_triggerClass = 'style__hworoa1';
3163
+ const TabsContent = ({ className, ...props })=>/*#__PURE__*/ jsx(react_tabs_Content, {
3164
+ className: clsx(Tabs_styles_css_contentClass, className),
3165
+ ...props
3166
+ });
3167
+ const TabsList = ({ className, ...props })=>/*#__PURE__*/ jsx(List, {
3168
+ className: clsx(listClass, className),
3169
+ ...props
3170
+ });
3171
+ const TabsTrigger = ({ className, size = 'md', ...props })=>/*#__PURE__*/ jsx(react_tabs_Trigger, {
3172
+ className: clsx(styles_css_triggerClass, Tabs_styles_css_sizes[size], className),
3173
+ ...props
3174
+ });
3175
+ const Tabs_Tabs = (props)=>/*#__PURE__*/ jsx(Tabs, {
3176
+ ...props
3177
+ });
3178
+ Tabs_Tabs.Content = TabsContent;
3179
+ Tabs_Tabs.List = TabsList;
3180
+ Tabs_Tabs.Trigger = TabsTrigger;
3181
+ const Form = ({ form, children, ...props })=>/*#__PURE__*/ jsx(FormProvider, {
3182
+ ...form,
3183
+ children: /*#__PURE__*/ jsx("form", {
3184
+ noValidate: true,
3185
+ ...props,
3186
+ children: children
3187
+ })
3188
+ });
3189
+ function FormMaskField({ name, control, ...props }) {
3190
+ return /*#__PURE__*/ jsx(Controller, {
3191
+ control: control,
3192
+ name: name,
3193
+ render: ({ field, fieldState })=>/*#__PURE__*/ jsx(MaskField, {
3194
+ ...props,
3195
+ ...field,
3196
+ error: !!fieldState.error,
3197
+ helperText: fieldState.error?.message
3198
+ })
3199
+ });
3200
+ }
3201
+ const useForm_useForm = ({ mode = 'onBlur', ...params } = {})=>useForm({
3202
+ ...params,
3203
+ mode
3204
+ });
3205
+ const FormSubmitButton = ({ children, isLoading, ...props })=>{
3206
+ const { formState } = useFormContext();
3207
+ return /*#__PURE__*/ jsx(Button, {
3208
+ type: "submit",
3209
+ isLoading: isLoading || formState.isSubmitting,
3210
+ ...props,
3211
+ children: children
3212
+ });
3213
+ };
3214
+ function FormTextField({ name, control, gridArea, ...props }) {
3215
+ return /*#__PURE__*/ jsx(Controller, {
3216
+ control: control,
3217
+ name: name,
3218
+ render: ({ field, fieldState })=>/*#__PURE__*/ jsx(TextField, {
3219
+ ...props,
3220
+ ...field,
3221
+ style: {
3222
+ gridArea
3223
+ },
3224
+ value: field.value || '',
3225
+ error: !!fieldState.error,
3226
+ helperText: fieldState.error?.message
3227
+ })
3228
+ });
3229
+ }
3230
+ var src_DEFAULT_SEPARATOR = ":";
3231
+ var src_DEFAULT_SYMBOL = "—";
3232
+ export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Badge, Button, ButtonGroup, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, ConfirmAction, ContentState, Controller as FormController, CopyTypography, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog, Drawer_Drawer as Drawer, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormMaskField, FormProvider, FormSubmitButton, FormTextField, Image, ImageCarousel, Input, InputOTP, Label, MaskField, PageLayout, Pagination, PeriodPicker, Placeholder, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RangeInput, ScrollTopButton, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Slider, Tabs_Tabs as Tabs, TextField, Tooltip, Typography, alignments, badgeVariants, buttonSizes, buttonVariants, colors, displays, src_DEFAULT_SEPARATOR as DEFAULT_SEPARATOR, src_DEFAULT_SYMBOL as DEFAULT_SYMBOL, theme, transforms, useController as useFormController, useDashboard, useFieldArray as useFormFieldArray, useFormContext, useForm_useForm as useForm, useWatch as useFormWatch, variants, weights };