@max-ts/kit 0.15.1 → 0.15.2

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