@max-ts/components 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (737) hide show
  1. package/lib/components/Accordion/Accordion.js +1 -0
  2. package/lib/components/Accordion/Accordion.stories.js +6 -0
  3. package/lib/components/Accordion/index.js +1 -0
  4. package/lib/components/Accordion/styles.js +17 -0
  5. package/lib/components/ActionCell/ActionCell.js +1 -0
  6. package/lib/components/ActionCell/ActionCell.stories.js +1 -0
  7. package/lib/components/ActionCell/MainAction/MainAction.js +1 -0
  8. package/lib/components/ActionCell/MainAction/index.js +1 -0
  9. package/lib/components/ActionCell/SecondaryAction/SecondaryActions.js +1 -0
  10. package/lib/components/ActionCell/SecondaryAction/index.js +1 -0
  11. package/lib/components/ActionCell/index.js +1 -0
  12. package/lib/components/ActionCell/styles.js +4 -0
  13. package/lib/components/ActionCell/types.js +0 -0
  14. package/lib/components/ActionCell/useLogic/index.js +1 -0
  15. package/lib/components/ActionCell/useLogic/useLogic.js +1 -0
  16. package/lib/components/ActionGroup/ActionGroup.js +1 -0
  17. package/lib/components/ActionGroup/ActionGroup.stories.js +3 -0
  18. package/lib/components/ActionGroup/MainActions/MainActions.js +1 -0
  19. package/lib/components/ActionGroup/MainActions/index.js +1 -0
  20. package/lib/components/ActionGroup/MainActions/styles.js +5 -0
  21. package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.js +1 -0
  22. package/lib/components/ActionGroup/SecondaryActions/index.js +1 -0
  23. package/lib/components/ActionGroup/SecondaryVisibleActions/SecondaryVisibleActions.js +1 -0
  24. package/lib/components/ActionGroup/SecondaryVisibleActions/index.js +1 -0
  25. package/lib/components/ActionGroup/SecondaryVisibleActions/styles.js +3 -0
  26. package/lib/components/ActionGroup/index.js +1 -0
  27. package/lib/components/ActionGroup/styles.js +4 -0
  28. package/lib/components/ActionGroup/useLogic/index.js +1 -0
  29. package/lib/components/ActionGroup/useLogic/useLogic.js +1 -0
  30. package/lib/components/Alert/Alert.js +1 -0
  31. package/lib/components/Alert/Alert.stories.js +1 -0
  32. package/lib/components/Alert/index.js +1 -0
  33. package/lib/components/Alert/styles.js +31 -0
  34. package/lib/components/Alert/types.js +0 -0
  35. package/lib/components/AsyncAutocomplete/AsyncAutocomplete.js +1 -0
  36. package/lib/components/AsyncAutocomplete/AsyncAutocomplete.stories.js +3 -0
  37. package/lib/components/AsyncAutocomplete/constants.js +1 -0
  38. package/lib/components/AsyncAutocomplete/index.js +1 -0
  39. package/lib/components/AsyncAutocomplete/useLogic/index.js +1 -0
  40. package/lib/components/AsyncAutocomplete/useLogic/useLogic.js +1 -0
  41. package/lib/components/Autocomplete/Autocomplete.js +1 -0
  42. package/lib/components/Autocomplete/Autocomplete.stories.js +3 -0
  43. package/lib/components/Autocomplete/constants.js +1 -0
  44. package/lib/components/Autocomplete/enums.js +1 -0
  45. package/lib/components/Autocomplete/index.js +1 -0
  46. package/lib/components/Autocomplete/styles.js +7 -0
  47. package/lib/components/Autocomplete/useLogic/index.js +1 -0
  48. package/lib/components/Autocomplete/useLogic/useLogic.js +1 -0
  49. package/lib/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.js +1 -0
  50. package/lib/components/Autocomplete/useLogic/utils/checkIsInputEmpty/index.js +1 -0
  51. package/lib/components/Autocomplete/useLogic/utils/index.js +1 -0
  52. package/lib/components/Avatar/Avatar.js +1 -0
  53. package/lib/components/Avatar/Avatar.stories.js +1 -0
  54. package/lib/components/Avatar/index.js +1 -0
  55. package/lib/components/Avatar/styles.js +8 -0
  56. package/lib/components/Badge/Badge.js +1 -0
  57. package/lib/components/Badge/Badge.stories.js +1 -0
  58. package/lib/components/Badge/index.js +1 -0
  59. package/lib/components/Badge/styles.js +21 -0
  60. package/lib/components/Badge/types.js +0 -0
  61. package/lib/components/BottomDrawer/BottomDrawer.js +1 -0
  62. package/lib/components/BottomDrawer/BottomDrawer.stories.js +7 -0
  63. package/lib/components/BottomDrawer/constants.js +1 -0
  64. package/lib/components/BottomDrawer/index.js +1 -0
  65. package/lib/components/BottomDrawer/styles.js +26 -0
  66. package/lib/components/Breadcrumbs/index.js +1 -0
  67. package/lib/components/Button/Button.js +1 -0
  68. package/lib/components/Button/Button.stories.js +1 -0
  69. package/lib/components/Button/constants.js +1 -0
  70. package/lib/components/Button/enums.js +1 -0
  71. package/lib/components/Button/index.js +1 -0
  72. package/lib/components/Button/styles.js +10 -0
  73. package/lib/components/Button/types.js +0 -0
  74. package/lib/components/Button/useLogic/index.js +1 -0
  75. package/lib/components/Button/useLogic/useLogic.js +1 -0
  76. package/lib/components/ButtonBase/ButtonBase.js +1 -0
  77. package/lib/components/ButtonBase/index.js +1 -0
  78. package/lib/components/ButtonGroup/ButtonGroup.stories.js +1 -0
  79. package/lib/components/ButtonGroup/index.js +1 -0
  80. package/lib/components/Calendar/Calendar.js +1 -0
  81. package/lib/components/Calendar/Calendar.stories.js +1 -0
  82. package/lib/components/Calendar/DayButton/DayButton.js +1 -0
  83. package/lib/components/Calendar/DayButton/index.js +1 -0
  84. package/lib/components/Calendar/DayButton/styles.js +16 -0
  85. package/lib/components/Calendar/Dropdown/Dropdown.js +1 -0
  86. package/lib/components/Calendar/Dropdown/index.js +1 -0
  87. package/lib/components/Calendar/index.js +1 -0
  88. package/lib/components/Calendar/styles.js +37 -0
  89. package/lib/components/Card/index.js +1 -0
  90. package/lib/components/CardActions/index.js +1 -0
  91. package/lib/components/CardContent/index.js +1 -0
  92. package/lib/components/CardHeader/index.js +1 -0
  93. package/lib/components/Carousel/Carousel.js +1 -0
  94. package/lib/components/Carousel/Carousel.stories.js +1 -0
  95. package/lib/components/Carousel/CarouselContext.js +1 -0
  96. package/lib/components/Carousel/Content/Content.js +1 -0
  97. package/lib/components/Carousel/Content/index.js +1 -0
  98. package/lib/components/Carousel/Content/styles.js +8 -0
  99. package/lib/components/Carousel/Dots/Dots.js +1 -0
  100. package/lib/components/Carousel/Dots/index.js +1 -0
  101. package/lib/components/Carousel/Dots/styles.js +31 -0
  102. package/lib/components/Carousel/Dots/useLogic/index.js +1 -0
  103. package/lib/components/Carousel/Dots/useLogic/useLogic.js +1 -0
  104. package/lib/components/Carousel/Item/Item.js +1 -0
  105. package/lib/components/Carousel/Item/index.js +1 -0
  106. package/lib/components/Carousel/Item/styles.js +1 -0
  107. package/lib/components/Carousel/Next/Next.js +1 -0
  108. package/lib/components/Carousel/Next/index.js +1 -0
  109. package/lib/components/Carousel/Next/styles.js +10 -0
  110. package/lib/components/Carousel/Previous/Previous.js +1 -0
  111. package/lib/components/Carousel/Previous/index.js +1 -0
  112. package/lib/components/Carousel/Previous/styles.js +10 -0
  113. package/lib/components/Carousel/index.js +1 -0
  114. package/lib/components/Carousel/styles.js +3 -0
  115. package/lib/components/Carousel/types.js +0 -0
  116. package/lib/components/Carousel/useLogic/index.js +1 -0
  117. package/lib/components/Carousel/useLogic/useLogic.js +1 -0
  118. package/lib/components/Checkbox/Checkbox.js +1 -0
  119. package/lib/components/Checkbox/Checkbox.stories.js +1 -0
  120. package/lib/components/Checkbox/index.js +1 -0
  121. package/lib/components/Checkbox/styles.js +3 -0
  122. package/lib/components/CheckboxField/CheckboxField.js +1 -0
  123. package/lib/components/CheckboxField/CheckboxField.stories.js +1 -0
  124. package/lib/components/CheckboxField/index.js +1 -0
  125. package/lib/components/CheckboxField/styles.js +6 -0
  126. package/lib/components/Chevron/Chevron.js +1 -0
  127. package/lib/components/Chevron/Chevron.stories.js +1 -0
  128. package/lib/components/Chevron/index.js +1 -0
  129. package/lib/components/Chevron/styles.js +6 -0
  130. package/lib/components/CircularProgress/CircularProgress.js +1 -0
  131. package/lib/components/CircularProgress/CircularProgress.stories.js +1 -0
  132. package/lib/components/CircularProgress/constants.js +1 -0
  133. package/lib/components/CircularProgress/index.js +1 -0
  134. package/lib/components/CircularProgress/useLogic/index.js +1 -0
  135. package/lib/components/CircularProgress/useLogic/useLogic.js +1 -0
  136. package/lib/components/Collapse/Collapse.js +1 -0
  137. package/lib/components/Collapse/Collapse.stories.js +1 -0
  138. package/lib/components/Collapse/index.js +1 -0
  139. package/lib/components/ConfigProvider/ConfigProvider.js +1 -0
  140. package/lib/components/ConfigProvider/index.js +1 -0
  141. package/lib/components/ConfirmAction/ConfirmAction.js +1 -0
  142. package/lib/components/ConfirmAction/ConfirmAction.stories.js +1 -0
  143. package/lib/components/ConfirmAction/constants.js +1 -0
  144. package/lib/components/ConfirmAction/index.js +1 -0
  145. package/lib/components/ConfirmAction/styles.js +10 -0
  146. package/lib/components/ConfirmAction/useLogic/index.js +1 -0
  147. package/lib/components/ConfirmAction/useLogic/useLogic.js +1 -0
  148. package/lib/components/ConfirmDialog/ConfirmDialog.js +1 -0
  149. package/lib/components/ConfirmDialog/ConfirmDialog.stories.js +1 -0
  150. package/lib/components/ConfirmDialog/index.js +1 -0
  151. package/lib/components/ConfirmDialog/styles.js +5 -0
  152. package/lib/components/ConfirmDialog/useLogic/index.js +1 -0
  153. package/lib/components/ConfirmDialog/useLogic/useLogic.js +1 -0
  154. package/lib/components/Container/Container.js +1 -0
  155. package/lib/components/Container/index.js +1 -0
  156. package/lib/components/Container/styles.js +20 -0
  157. package/lib/components/ContentState/ContentState.js +1 -0
  158. package/lib/components/ContentState/ContentState.stories.js +7 -0
  159. package/lib/components/ContentState/index.js +1 -0
  160. package/lib/components/ContentState/styles.js +9 -0
  161. package/lib/components/ContentState/types.js +0 -0
  162. package/lib/components/CopyTypography/CopyTypography.js +1 -0
  163. package/lib/components/CopyTypography/CopyTypography.stories.js +7 -0
  164. package/lib/components/CopyTypography/enums.js +1 -0
  165. package/lib/components/CopyTypography/index.js +1 -0
  166. package/lib/components/CopyTypography/styles.js +18 -0
  167. package/lib/components/CopyTypography/useLogic/index.js +1 -0
  168. package/lib/components/CopyTypography/useLogic/useLogic.js +1 -0
  169. package/lib/components/DashboardLayout/DashboardContext.js +1 -0
  170. package/lib/components/DashboardLayout/DashboardLayout.js +1 -0
  171. package/lib/components/DashboardLayout/DashboardLayout.stories.js +4 -0
  172. package/lib/components/DashboardLayout/Main/Main.js +1 -0
  173. package/lib/components/DashboardLayout/Main/index.js +1 -0
  174. package/lib/components/DashboardLayout/Main/styles.js +7 -0
  175. package/lib/components/DashboardLayout/Sidebar/Sidebar.js +1 -0
  176. package/lib/components/DashboardLayout/Sidebar/constants.js +1 -0
  177. package/lib/components/DashboardLayout/Sidebar/index.js +1 -0
  178. package/lib/components/DashboardLayout/Sidebar/styles.js +27 -0
  179. package/lib/components/DashboardLayout/constants.js +1 -0
  180. package/lib/components/DashboardLayout/index.js +1 -0
  181. package/lib/components/DashboardLayout/styles.js +12 -0
  182. package/lib/components/DataGrid/Body/Body.js +1 -0
  183. package/lib/components/DataGrid/Body/index.js +1 -0
  184. package/lib/components/DataGrid/Body/styles.js +9 -0
  185. package/lib/components/DataGrid/Body/useLogic/index.js +1 -0
  186. package/lib/components/DataGrid/Body/useLogic/useLogic.js +1 -0
  187. package/lib/components/DataGrid/Cell/Cell.js +1 -0
  188. package/lib/components/DataGrid/Cell/index.js +1 -0
  189. package/lib/components/DataGrid/Cell/styles.js +11 -0
  190. package/lib/components/DataGrid/Cell/useLogic/index.js +1 -0
  191. package/lib/components/DataGrid/Cell/useLogic/useLogic.js +1 -0
  192. package/lib/components/DataGrid/DataGrid.js +1 -0
  193. package/lib/components/DataGrid/DataGrid.stories.js +1 -0
  194. package/lib/components/DataGrid/Footer/Footer.js +1 -0
  195. package/lib/components/DataGrid/Footer/index.js +1 -0
  196. package/lib/components/DataGrid/Footer/styles.js +8 -0
  197. package/lib/components/DataGrid/Head/Head.js +1 -0
  198. package/lib/components/DataGrid/Head/index.js +1 -0
  199. package/lib/components/DataGrid/Head/styles.js +12 -0
  200. package/lib/components/DataGrid/Head/useLogic/index.js +1 -0
  201. package/lib/components/DataGrid/Head/useLogic/useLogic.js +1 -0
  202. package/lib/components/DataGrid/HeadCell/HeadCell.js +1 -0
  203. package/lib/components/DataGrid/HeadCell/index.js +1 -0
  204. package/lib/components/DataGrid/HeadCell/styles.js +24 -0
  205. package/lib/components/DataGrid/HeadCell/useLogic/index.js +1 -0
  206. package/lib/components/DataGrid/HeadCell/useLogic/useLogic.js +1 -0
  207. package/lib/components/DataGrid/Loader/Loader.js +1 -0
  208. package/lib/components/DataGrid/Loader/index.js +1 -0
  209. package/lib/components/DataGrid/Loader/styles.js +14 -0
  210. package/lib/components/DataGrid/NoData/NoData.js +1 -0
  211. package/lib/components/DataGrid/NoData/index.js +1 -0
  212. package/lib/components/DataGrid/Row/Row.js +1 -0
  213. package/lib/components/DataGrid/Row/constants.js +1 -0
  214. package/lib/components/DataGrid/Row/index.js +1 -0
  215. package/lib/components/DataGrid/Row/styles.js +28 -0
  216. package/lib/components/DataGrid/Row/useLogic/index.js +1 -0
  217. package/lib/components/DataGrid/Row/useLogic/useLogic.js +1 -0
  218. package/lib/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.js +1 -0
  219. package/lib/components/DataGrid/Row/utils/checkIsDisabled/index.js +1 -0
  220. package/lib/components/DataGrid/Row/utils/index.js +1 -0
  221. package/lib/components/DataGrid/constants.js +1 -0
  222. package/lib/components/DataGrid/enums.js +1 -0
  223. package/lib/components/DataGrid/faker.js +1 -0
  224. package/lib/components/DataGrid/index.js +1 -0
  225. package/lib/components/DataGrid/styles.js +24 -0
  226. package/lib/components/DataGrid/types.js +0 -0
  227. package/lib/components/DataGrid/useLogic/index.js +1 -0
  228. package/lib/components/DataGrid/useLogic/useLogic.js +1 -0
  229. package/lib/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.js +1 -0
  230. package/lib/components/DataGrid/useLogic/utils/getGridTemplateColumns/index.js +1 -0
  231. package/lib/components/DataGrid/useLogic/utils/index.js +1 -0
  232. package/lib/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.js +1 -0
  233. package/lib/components/DataGrid/utils/alignToJustifyContent/constants.js +1 -0
  234. package/lib/components/DataGrid/utils/alignToJustifyContent/index.js +1 -0
  235. package/lib/components/DataGrid/utils/index.js +1 -0
  236. package/lib/components/DataGridActionCell/DataGridActionCell.js +1 -0
  237. package/lib/components/DataGridActionCell/DataGridActionCell.stories.js +1 -0
  238. package/lib/components/DataGridActionCell/MainAction/MainAction.js +1 -0
  239. package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.js +1 -0
  240. package/lib/components/DataGridActionCell/MainAction/MainIconButton/index.js +1 -0
  241. package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.js +1 -0
  242. package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.js +1 -0
  243. package/lib/components/DataGridActionCell/MainAction/index.js +1 -0
  244. package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.js +1 -0
  245. package/lib/components/DataGridActionCell/SecondaryAction/index.js +1 -0
  246. package/lib/components/DataGridActionCell/index.js +1 -0
  247. package/lib/components/DataGridActionCell/styles.js +4 -0
  248. package/lib/components/DataGridActionCell/types.js +0 -0
  249. package/lib/components/DataGridActionCell/useLogic/index.js +1 -0
  250. package/lib/components/DataGridActionCell/useLogic/useLogic.js +1 -0
  251. package/lib/components/DataGridPagination/DataGridPagination.js +1 -0
  252. package/lib/components/DataGridPagination/DataGridPagination.stories.js +3 -0
  253. package/lib/components/DataGridPagination/constants.js +1 -0
  254. package/lib/components/DataGridPagination/faker.js +1 -0
  255. package/lib/components/DataGridPagination/index.js +1 -0
  256. package/lib/components/DataGridPagination/styles.js +16 -0
  257. package/lib/components/DataGridPagination/useLogic/index.js +1 -0
  258. package/lib/components/DataGridPagination/useLogic/useLogic.js +1 -0
  259. package/lib/components/DatePicker/DatePicker.js +1 -0
  260. package/lib/components/DatePicker/DatePicker.stories.js +1 -0
  261. package/lib/components/DatePicker/index.js +1 -0
  262. package/lib/components/DatePicker/styles.js +3 -0
  263. package/lib/components/Description/Description.js +1 -0
  264. package/lib/components/Description/Description.stories.js +15 -0
  265. package/lib/components/Description/DescriptionContext/DescriptionContext.js +1 -0
  266. package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.js +1 -0
  267. package/lib/components/Description/DescriptionContext/DescriptionContextProvider/index.js +1 -0
  268. package/lib/components/Description/DescriptionContext/index.js +1 -0
  269. package/lib/components/Description/Name/Name.js +1 -0
  270. package/lib/components/Description/Name/index.js +1 -0
  271. package/lib/components/Description/Name/styles.js +18 -0
  272. package/lib/components/Description/Value/Value.js +1 -0
  273. package/lib/components/Description/Value/index.js +1 -0
  274. package/lib/components/Description/Value/styles.js +35 -0
  275. package/lib/components/Description/Value/useLogic/index.js +1 -0
  276. package/lib/components/Description/Value/useLogic/useLogic.js +1 -0
  277. package/lib/components/Description/constants.js +1 -0
  278. package/lib/components/Description/index.js +1 -0
  279. package/lib/components/Description/styles.js +17 -0
  280. package/lib/components/Description/useLogic/index.js +1 -0
  281. package/lib/components/Description/useLogic/useLogic.js +1 -0
  282. package/lib/components/DescriptionList/DescriptionList.js +1 -0
  283. package/lib/components/DescriptionList/DescriptionList.stories.js +5 -0
  284. package/lib/components/DescriptionList/index.js +1 -0
  285. package/lib/components/DescriptionList/styles.js +30 -0
  286. package/lib/components/DescriptionList/types.js +0 -0
  287. package/lib/components/DescriptionList/utils/getTooltipProps/getTooltipProps.js +1 -0
  288. package/lib/components/DescriptionList/utils/getTooltipProps/index.js +1 -0
  289. package/lib/components/DescriptionList/utils/index.js +1 -0
  290. package/lib/components/DescriptionTooltip/DescriptionTooltip.js +1 -0
  291. package/lib/components/DescriptionTooltip/index.js +1 -0
  292. package/lib/components/DescriptionTooltip/styles.js +12 -0
  293. package/lib/components/Dialog/Dialog.js +1 -0
  294. package/lib/components/Dialog/Dialog.stories.js +1 -0
  295. package/lib/components/Dialog/constants.js +1 -0
  296. package/lib/components/Dialog/index.js +1 -0
  297. package/lib/components/Dialog/styles.js +9 -0
  298. package/lib/components/DialogActions/DialogActions.js +1 -0
  299. package/lib/components/DialogActions/DialogActions.stories.js +1 -0
  300. package/lib/components/DialogActions/index.js +1 -0
  301. package/lib/components/DialogActions/styles.js +3 -0
  302. package/lib/components/DialogContent/DialogContent.js +1 -0
  303. package/lib/components/DialogContent/DialogContent.stories.js +1 -0
  304. package/lib/components/DialogContent/index.js +1 -0
  305. package/lib/components/DialogContent/styles.js +7 -0
  306. package/lib/components/DialogContentText/DialogContentText.js +1 -0
  307. package/lib/components/DialogContentText/DialogContentText.stories.js +1 -0
  308. package/lib/components/DialogContentText/index.js +1 -0
  309. package/lib/components/DialogContentText/styles.js +3 -0
  310. package/lib/components/DialogHeader/DialogHeader.js +1 -0
  311. package/lib/components/DialogHeader/DialogHeader.stories.js +1 -0
  312. package/lib/components/DialogHeader/index.js +1 -0
  313. package/lib/components/DialogHeader/styles.js +20 -0
  314. package/lib/components/DialogTitle/DialogTitle.js +1 -0
  315. package/lib/components/DialogTitle/index.js +1 -0
  316. package/lib/components/Divider/Divider.js +1 -0
  317. package/lib/components/Divider/Divider.stories.js +5 -0
  318. package/lib/components/Divider/index.js +1 -0
  319. package/lib/components/DropdownButton/DropdownButton.js +1 -0
  320. package/lib/components/DropdownButton/DropdownButton.stories.js +1 -0
  321. package/lib/components/DropdownButton/index.js +1 -0
  322. package/lib/components/ErrorBoundary/ErrorBoundary.js +1 -0
  323. package/lib/components/ErrorBoundary/ErrorBoundary.stories.js +1 -0
  324. package/lib/components/ErrorBoundary/ErrorBoundary.stubs.js +1 -0
  325. package/lib/components/ErrorBoundary/constants.js +1 -0
  326. package/lib/components/ErrorBoundary/enums.js +1 -0
  327. package/lib/components/ErrorBoundary/index.js +1 -0
  328. package/lib/components/Filename/Filename.js +1 -0
  329. package/lib/components/Filename/Filename.stories.js +5 -0
  330. package/lib/components/Filename/index.js +1 -0
  331. package/lib/components/Filename/styles.js +11 -0
  332. package/lib/components/Filename/useLogic/index.js +1 -0
  333. package/lib/components/Filename/useLogic/useLogic.js +1 -0
  334. package/lib/components/Filename/useLogic/utils/findExtension/constants.js +1 -0
  335. package/lib/components/Filename/useLogic/utils/findExtension/findExtension.js +1 -0
  336. package/lib/components/Filename/useLogic/utils/findExtension/index.js +1 -0
  337. package/lib/components/Filename/useLogic/utils/index.js +1 -0
  338. package/lib/components/Filename/useLogic/utils/truncateString/constants.js +1 -0
  339. package/lib/components/Filename/useLogic/utils/truncateString/index.js +1 -0
  340. package/lib/components/Filename/useLogic/utils/truncateString/truncateString.js +1 -0
  341. package/lib/components/FormControl/FormControl.js +1 -0
  342. package/lib/components/FormControl/index.js +1 -0
  343. package/lib/components/FormControlLabel/FormControlLabel.js +1 -0
  344. package/lib/components/FormControlLabel/index.js +1 -0
  345. package/lib/components/FormControlLabel/styles.js +8 -0
  346. package/lib/components/FormControlLabel/types.js +0 -0
  347. package/lib/components/FormHelperText/FormHelperText.js +1 -0
  348. package/lib/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.js +1 -0
  349. package/lib/components/FormHelperText/FormHelperTextContent/index.js +1 -0
  350. package/lib/components/FormHelperText/FormHelperTextContent/styles.js +15 -0
  351. package/lib/components/FormHelperText/index.js +1 -0
  352. package/lib/components/FormLabel/FormLabel.js +1 -0
  353. package/lib/components/FormLabel/index.js +1 -0
  354. package/lib/components/FormLabel/styles.js +4 -0
  355. package/lib/components/GuidTypography/GuidTypography.js +1 -0
  356. package/lib/components/GuidTypography/GuidTypography.stories.js +3 -0
  357. package/lib/components/GuidTypography/index.js +1 -0
  358. package/lib/components/IconButton/IconButton.js +1 -0
  359. package/lib/components/IconButton/IconButton.stories.js +1 -0
  360. package/lib/components/IconButton/index.js +1 -0
  361. package/lib/components/IconButton/styles.js +11 -0
  362. package/lib/components/IconDropdownButton/IconDropdownButton.js +1 -0
  363. package/lib/components/IconDropdownButton/IconDropdownButton.stories.js +1 -0
  364. package/lib/components/IconDropdownButton/index.js +1 -0
  365. package/lib/components/InputOTP/InputOTP.js +1 -0
  366. package/lib/components/InputOTP/InputOTP.stories.js +1 -0
  367. package/lib/components/InputOTP/Separator/Separator.js +1 -0
  368. package/lib/components/InputOTP/Separator/index.js +1 -0
  369. package/lib/components/InputOTP/Separator/styles.js +8 -0
  370. package/lib/components/InputOTP/Slot/Slot.js +1 -0
  371. package/lib/components/InputOTP/Slot/index.js +1 -0
  372. package/lib/components/InputOTP/Slot/styles.js +44 -0
  373. package/lib/components/InputOTP/index.js +1 -0
  374. package/lib/components/InputOTP/styles.js +22 -0
  375. package/lib/components/InternalErrorPlaceholder/InternalErrorPlaceholder.js +1 -0
  376. package/lib/components/InternalErrorPlaceholder/InternalErrorPlaceholder.stories.js +1 -0
  377. package/lib/components/InternalErrorPlaceholder/index.js +1 -0
  378. package/lib/components/Link/Link.js +1 -0
  379. package/lib/components/Link/Link.stories.js +1 -0
  380. package/lib/components/Link/index.js +1 -0
  381. package/lib/components/Link/styles.js +35 -0
  382. package/lib/components/List/List.js +1 -0
  383. package/lib/components/List/List.stories.js +1 -0
  384. package/lib/components/List/index.js +1 -0
  385. package/lib/components/ListItem/ListItem.js +1 -0
  386. package/lib/components/ListItem/ListItem.stories.js +1 -0
  387. package/lib/components/ListItem/constants.js +1 -0
  388. package/lib/components/ListItem/index.js +1 -0
  389. package/lib/components/ListItem/styles.js +11 -0
  390. package/lib/components/ListItemButton/ListItemButton.js +1 -0
  391. package/lib/components/ListItemButton/ListItemButton.stories.js +1 -0
  392. package/lib/components/ListItemButton/constants.js +1 -0
  393. package/lib/components/ListItemButton/index.js +1 -0
  394. package/lib/components/ListItemIcon/ListItemIcon.js +1 -0
  395. package/lib/components/ListItemIcon/ListItemIcon.stories.js +1 -0
  396. package/lib/components/ListItemIcon/index.js +1 -0
  397. package/lib/components/ListItemIcon/styles.js +3 -0
  398. package/lib/components/ListItemText/ListItemText.js +1 -0
  399. package/lib/components/ListItemText/ListItemText.stories.js +1 -0
  400. package/lib/components/ListItemText/index.js +1 -0
  401. package/lib/components/ListSubheader/ListSubheader.js +1 -0
  402. package/lib/components/ListSubheader/ListSubheader.stories.js +1 -0
  403. package/lib/components/ListSubheader/index.js +1 -0
  404. package/lib/components/MaskField/MaskField.js +1 -0
  405. package/lib/components/MaskField/index.js +1 -0
  406. package/lib/components/Menu/Menu.js +1 -0
  407. package/lib/components/Menu/Menu.stories.js +1 -0
  408. package/lib/components/Menu/index.js +1 -0
  409. package/lib/components/MenuItem/MenuItem.js +1 -0
  410. package/lib/components/MenuItem/MenuItem.stories.js +1 -0
  411. package/lib/components/MenuItem/index.js +1 -0
  412. package/lib/components/MenuList/MenuList.js +1 -0
  413. package/lib/components/MenuList/MenuList.stories.js +1 -0
  414. package/lib/components/MenuList/index.js +1 -0
  415. package/lib/components/MenuList/styles.js +8 -0
  416. package/lib/components/MenuList/types.js +0 -0
  417. package/lib/components/Notification/Notification.js +1 -0
  418. package/lib/components/Notification/NotificationContainer/NotificationContainer.js +1 -0
  419. package/lib/components/Notification/NotificationContainer/index.js +1 -0
  420. package/lib/components/Notification/NotificationContainer/styles.js +9 -0
  421. package/lib/components/Notification/constants.js +1 -0
  422. package/lib/components/Notification/index.js +1 -0
  423. package/lib/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.js +1 -0
  424. package/lib/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.stories.js +1 -0
  425. package/lib/components/OutdatedReleasePlaceholder/index.js +1 -0
  426. package/lib/components/OverflowTypography/OverflowTypography.js +1 -0
  427. package/lib/components/OverflowTypography/OverflowTypography.stories.js +3 -0
  428. package/lib/components/OverflowTypography/hooks/index.js +1 -0
  429. package/lib/components/OverflowTypography/hooks/useOverflowed/index.js +1 -0
  430. package/lib/components/OverflowTypography/hooks/useOverflowed/useOverflowed.js +1 -0
  431. package/lib/components/OverflowTypography/index.js +1 -0
  432. package/lib/components/OverflowTypography/styles.js +20 -0
  433. package/lib/components/OverflowTypography/useLogic/index.js +1 -0
  434. package/lib/components/OverflowTypography/useLogic/useLogic.js +1 -0
  435. package/lib/components/OverflowTypography/utils/index.js +1 -0
  436. package/lib/components/OverflowTypography/utils/truncateString/index.js +1 -0
  437. package/lib/components/OverflowTypography/utils/truncateString/truncateString.js +1 -0
  438. package/lib/components/PageLayout/Aside/Aside.js +1 -0
  439. package/lib/components/PageLayout/Aside/index.js +1 -0
  440. package/lib/components/PageLayout/Aside/styles.js +10 -0
  441. package/lib/components/PageLayout/Content/Content.js +1 -0
  442. package/lib/components/PageLayout/Content/index.js +1 -0
  443. package/lib/components/PageLayout/Content/styles.js +8 -0
  444. package/lib/components/PageLayout/Footer/Footer.js +1 -0
  445. package/lib/components/PageLayout/Footer/index.js +1 -0
  446. package/lib/components/PageLayout/Footer/styles.js +15 -0
  447. package/lib/components/PageLayout/Header/Header.js +1 -0
  448. package/lib/components/PageLayout/Header/index.js +1 -0
  449. package/lib/components/PageLayout/Header/styles.js +44 -0
  450. package/lib/components/PageLayout/PageLayout.js +1 -0
  451. package/lib/components/PageLayout/PageLayout.stories.js +4 -0
  452. package/lib/components/PageLayout/constants.js +1 -0
  453. package/lib/components/PageLayout/index.js +1 -0
  454. package/lib/components/PageLayout/styles.js +32 -0
  455. package/lib/components/Pagination/Pagination.js +1 -0
  456. package/lib/components/Pagination/Pagination.stories.js +1 -0
  457. package/lib/components/Pagination/index.js +1 -0
  458. package/lib/components/Pagination/types.js +0 -0
  459. package/lib/components/Paper/Paper.js +1 -0
  460. package/lib/components/Paper/index.js +1 -0
  461. package/lib/components/PeriodPicker/PeriodPicker.js +1 -0
  462. package/lib/components/PeriodPicker/PeriodPicker.stories.js +1 -0
  463. package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.js +1 -0
  464. package/lib/components/PeriodPicker/YearsDropdown/index.js +1 -0
  465. package/lib/components/PeriodPicker/constants.js +1 -0
  466. package/lib/components/PeriodPicker/index.js +1 -0
  467. package/lib/components/PeriodPicker/styles.js +16 -0
  468. package/lib/components/PeriodPicker/utils.js +1 -0
  469. package/lib/components/Placeholder/Image/Image.js +1 -0
  470. package/lib/components/Placeholder/Image/index.js +1 -0
  471. package/lib/components/Placeholder/Image/styles.js +17 -0
  472. package/lib/components/Placeholder/Placeholder.js +1 -0
  473. package/lib/components/Placeholder/Placeholder.stories.js +5 -0
  474. package/lib/components/Placeholder/constants.js +1 -0
  475. package/lib/components/Placeholder/index.js +1 -0
  476. package/lib/components/Placeholder/styles.js +59 -0
  477. package/lib/components/Placeholder/types.js +0 -0
  478. package/lib/components/Popover/Popover.js +1 -0
  479. package/lib/components/Popover/Popover.stories.js +10 -0
  480. package/lib/components/Popover/index.js +1 -0
  481. package/lib/components/Profile/MenuList/MenuList.js +1 -0
  482. package/lib/components/Profile/MenuList/index.js +1 -0
  483. package/lib/components/Profile/MenuList/styles.js +9 -0
  484. package/lib/components/Profile/Profile.js +1 -0
  485. package/lib/components/Profile/Profile.stories.js +1 -0
  486. package/lib/components/Profile/index.js +1 -0
  487. package/lib/components/Profile/styles.js +21 -0
  488. package/lib/components/ProgressBar/ProgressBar.js +1 -0
  489. package/lib/components/ProgressBar/ProgressBar.stories.js +1 -0
  490. package/lib/components/ProgressBar/index.js +1 -0
  491. package/lib/components/Radio/Icon/Icon.js +1 -0
  492. package/lib/components/Radio/Icon/index.js +1 -0
  493. package/lib/components/Radio/Radio.js +1 -0
  494. package/lib/components/Radio/Radio.stories.js +1 -0
  495. package/lib/components/Radio/constants.js +1 -0
  496. package/lib/components/Radio/index.js +1 -0
  497. package/lib/components/Radio/styles.js +57 -0
  498. package/lib/components/RadioField/RadioField.js +1 -0
  499. package/lib/components/RadioField/RadioField.stories.js +5 -0
  500. package/lib/components/RadioField/index.js +1 -0
  501. package/lib/components/RadioField/styles.js +4 -0
  502. package/lib/components/RadioGroup/RadioGroup.js +1 -0
  503. package/lib/components/RadioGroup/RadioGroup.stories.js +1 -0
  504. package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContext.js +1 -0
  505. package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.js +1 -0
  506. package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.js +1 -0
  507. package/lib/components/RadioGroup/RadioGroupContext/index.js +1 -0
  508. package/lib/components/RadioGroup/index.js +1 -0
  509. package/lib/components/RadioGroupField/RadioGroupField.js +1 -0
  510. package/lib/components/RadioGroupField/index.js +1 -0
  511. package/lib/components/RangeInput/RangeInput.js +1 -0
  512. package/lib/components/RangeInput/RangeInput.stories.js +1 -0
  513. package/lib/components/RangeInput/index.js +1 -0
  514. package/lib/components/RangeInput/styles.js +49 -0
  515. package/lib/components/SearchField/SearchField.js +1 -0
  516. package/lib/components/SearchField/index.js +1 -0
  517. package/lib/components/SearchField/styles.js +21 -0
  518. package/lib/components/Select/Select.js +1 -0
  519. package/lib/components/Select/Select.stories.js +1 -0
  520. package/lib/components/Select/constants.js +1 -0
  521. package/lib/components/Select/index.js +1 -0
  522. package/lib/components/Select/styles.js +44 -0
  523. package/lib/components/Select/useLogic/index.js +1 -0
  524. package/lib/components/Select/useLogic/useLogic.js +1 -0
  525. package/lib/components/SidebarNav/MenuItem/MenuItem.js +1 -0
  526. package/lib/components/SidebarNav/MenuItem/index.js +1 -0
  527. package/lib/components/SidebarNav/MenuItem/styles.js +52 -0
  528. package/lib/components/SidebarNav/SidebarNav.js +1 -0
  529. package/lib/components/SidebarNav/SidebarNav.stories.js +1 -0
  530. package/lib/components/SidebarNav/index.js +1 -0
  531. package/lib/components/SidebarNav/styles.js +10 -0
  532. package/lib/components/SidebarNav/types.js +0 -0
  533. package/lib/components/SidebarProduct/SidebarProduct.js +1 -0
  534. package/lib/components/SidebarProduct/index.js +1 -0
  535. package/lib/components/SidebarProduct/styles.js +24 -0
  536. package/lib/components/Skeleton/Skeleton.js +1 -0
  537. package/lib/components/Skeleton/Skeleton.stories.js +3 -0
  538. package/lib/components/Skeleton/index.js +1 -0
  539. package/lib/components/Skeleton/styles.js +11 -0
  540. package/lib/components/Slider/Slider.js +1 -0
  541. package/lib/components/Slider/Slider.stories.js +1 -0
  542. package/lib/components/Slider/index.js +1 -0
  543. package/lib/components/Slider/styles.js +26 -0
  544. package/lib/components/Switch/Switch.js +1 -0
  545. package/lib/components/Switch/Switch.stories.js +1 -0
  546. package/lib/components/Switch/index.js +1 -0
  547. package/lib/components/Switch/styles.js +12 -0
  548. package/lib/components/Tab/Tab.js +1 -0
  549. package/lib/components/Tab/Tab.stories.js +1 -0
  550. package/lib/components/Tab/index.js +1 -0
  551. package/lib/components/Tab/styles.js +20 -0
  552. package/lib/components/Tabs/Tabs.js +1 -0
  553. package/lib/components/Tabs/Tabs.stories.js +1 -0
  554. package/lib/components/Tabs/index.js +1 -0
  555. package/lib/components/Tabs/styles.js +16 -0
  556. package/lib/components/Tag/Tag.js +1 -0
  557. package/lib/components/Tag/Tag.stories.js +11 -0
  558. package/lib/components/Tag/enums.js +1 -0
  559. package/lib/components/Tag/index.js +1 -0
  560. package/lib/components/Tag/styles.js +79 -0
  561. package/lib/components/Tag/types.js +0 -0
  562. package/lib/components/TagBadge/TagBadge.js +1 -0
  563. package/lib/components/TagBadge/TagBadge.stories.js +1 -0
  564. package/lib/components/TagBadge/index.js +1 -0
  565. package/lib/components/TagBadge/styles.js +11 -0
  566. package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.js +1 -0
  567. package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/index.js +1 -0
  568. package/lib/components/TagBadge/utils/index.js +1 -0
  569. package/lib/components/TagsList/Tag/Tag.js +1 -0
  570. package/lib/components/TagsList/Tag/index.js +1 -0
  571. package/lib/components/TagsList/Tag/styles.js +10 -0
  572. package/lib/components/TagsList/Tag/useLogic/index.js +1 -0
  573. package/lib/components/TagsList/Tag/useLogic/useLogic.js +1 -0
  574. package/lib/components/TagsList/TagsList.js +1 -0
  575. package/lib/components/TagsList/index.js +1 -0
  576. package/lib/components/TagsList/styles.js +4 -0
  577. package/lib/components/TagsList/types.js +0 -0
  578. package/lib/components/TagsList/useLogic/index.js +1 -0
  579. package/lib/components/TagsList/useLogic/useLogic.js +1 -0
  580. package/lib/components/TagsList/utils/getElementByText/getElementByText.js +1 -0
  581. package/lib/components/TagsList/utils/getElementByText/index.js +1 -0
  582. package/lib/components/TagsList/utils/getKey/getKey.js +1 -0
  583. package/lib/components/TagsList/utils/getKey/index.js +1 -0
  584. package/lib/components/TagsList/utils/index.js +1 -0
  585. package/lib/components/TextArea/TextArea.js +1 -0
  586. package/lib/components/TextArea/TextArea.stories.js +1 -0
  587. package/lib/components/TextArea/index.js +1 -0
  588. package/lib/components/TextField/TextField.js +1 -0
  589. package/lib/components/TextField/TextField.stories.js +1 -0
  590. package/lib/components/TextField/index.js +1 -0
  591. package/lib/components/ThemeProvider/ThemeProvider.js +1 -0
  592. package/lib/components/ThemeProvider/index.js +1 -0
  593. package/lib/components/Tooltip/Tooltip.js +1 -0
  594. package/lib/components/Tooltip/Tooltip.stories.js +10 -0
  595. package/lib/components/Tooltip/constants.js +1 -0
  596. package/lib/components/Tooltip/index.js +1 -0
  597. package/lib/components/Tooltip/styles.js +37 -0
  598. package/lib/components/Tooltip/types.js +0 -0
  599. package/lib/components/Typography/Typography.js +1 -0
  600. package/lib/components/Typography/Typography.stories.js +3 -0
  601. package/lib/components/Typography/enums.js +1 -0
  602. package/lib/components/Typography/hooks/index.js +1 -0
  603. package/lib/components/Typography/hooks/useTypographyColor/index.js +1 -0
  604. package/lib/components/Typography/hooks/useTypographyColor/useTypographyColor.js +1 -0
  605. package/lib/components/Typography/index.js +1 -0
  606. package/lib/components/Typography/styles.js +3 -0
  607. package/lib/components/Typography/types.js +0 -0
  608. package/lib/components/index.js +1 -0
  609. package/lib/components/types.js +0 -0
  610. package/lib/form/EditableText/EditableText.d.ts +52 -0
  611. package/lib/form/EditableText/EditableText.d.ts.map +1 -0
  612. package/lib/form/EditableText/EditableText.js +1 -0
  613. package/lib/form/EditableText/EditingForm/EditingForm.d.ts +38 -0
  614. package/lib/form/EditableText/EditingForm/EditingForm.d.ts.map +1 -0
  615. package/lib/form/EditableText/EditingForm/EditingForm.js +1 -0
  616. package/lib/form/EditableText/EditingForm/index.d.ts +2 -0
  617. package/lib/form/EditableText/EditingForm/index.d.ts.map +1 -0
  618. package/lib/form/EditableText/EditingForm/index.js +1 -0
  619. package/lib/form/EditableText/EditingForm/styles.d.ts +17 -0
  620. package/lib/form/EditableText/EditingForm/styles.d.ts.map +1 -0
  621. package/lib/form/EditableText/EditingForm/styles.js +10 -0
  622. package/lib/form/EditableText/EditingForm/useLogic/index.d.ts +2 -0
  623. package/lib/form/EditableText/EditingForm/useLogic/index.d.ts.map +1 -0
  624. package/lib/form/EditableText/EditingForm/useLogic/index.js +1 -0
  625. package/lib/form/EditableText/EditingForm/useLogic/useLogic.d.ts +11 -0
  626. package/lib/form/EditableText/EditingForm/useLogic/useLogic.d.ts.map +1 -0
  627. package/lib/form/EditableText/EditingForm/useLogic/useLogic.js +1 -0
  628. package/lib/form/EditableText/constants.d.ts +2 -0
  629. package/lib/form/EditableText/constants.d.ts.map +1 -0
  630. package/lib/form/EditableText/constants.js +1 -0
  631. package/lib/form/EditableText/index.d.ts +2 -0
  632. package/lib/form/EditableText/index.d.ts.map +1 -0
  633. package/lib/form/EditableText/index.js +1 -0
  634. package/lib/form/EditableText/styles.d.ts +27 -0
  635. package/lib/form/EditableText/styles.d.ts.map +1 -0
  636. package/lib/form/EditableText/styles.js +43 -0
  637. package/lib/form/EditableText/types.d.ts +11 -0
  638. package/lib/form/EditableText/types.d.ts.map +1 -0
  639. package/lib/form/EditableText/types.js +0 -0
  640. package/lib/form/EditableText/useLogic/index.d.ts +2 -0
  641. package/lib/form/EditableText/useLogic/index.d.ts.map +1 -0
  642. package/lib/form/EditableText/useLogic/index.js +1 -0
  643. package/lib/form/EditableText/useLogic/useLogic.d.ts +19 -0
  644. package/lib/form/EditableText/useLogic/useLogic.d.ts.map +1 -0
  645. package/lib/form/EditableText/useLogic/useLogic.js +1 -0
  646. package/lib/form/Form/Form.js +1 -0
  647. package/lib/form/Form/index.js +1 -0
  648. package/lib/form/FormAutocomplete/FormAutocomplete.js +1 -0
  649. package/lib/form/FormAutocomplete/index.js +1 -0
  650. package/lib/form/FormCheckbox/FormCheckbox.js +1 -0
  651. package/lib/form/FormCheckbox/index.js +1 -0
  652. package/lib/form/FormCheckbox/types.js +0 -0
  653. package/lib/form/FormMaskField/FormMaskField.js +1 -0
  654. package/lib/form/FormMaskField/index.js +1 -0
  655. package/lib/form/FormMaskField/types.js +0 -0
  656. package/lib/form/FormSelect/FormSelect.js +1 -0
  657. package/lib/form/FormSelect/index.js +1 -0
  658. package/lib/form/FormSubmitButton/FormSubmitButton.js +1 -0
  659. package/lib/form/FormSubmitButton/index.js +1 -0
  660. package/lib/form/FormTextField/FormTextField.js +1 -0
  661. package/lib/form/FormTextField/index.js +1 -0
  662. package/lib/form/FormTextField/types.js +0 -0
  663. package/lib/form/external.js +1 -0
  664. package/lib/form/hooks/index.js +1 -0
  665. package/lib/form/hooks/useForm/index.js +1 -0
  666. package/lib/form/hooks/useForm/useForm.js +1 -0
  667. package/lib/form/hooks/useFormContext/index.js +1 -0
  668. package/lib/form/index.d.ts +2 -1
  669. package/lib/form/index.d.ts.map +1 -1
  670. package/lib/form/index.js +1 -0
  671. package/lib/form/types.js +0 -0
  672. package/lib/hooks/index.js +1 -0
  673. package/lib/hooks/useMenu/index.js +1 -0
  674. package/lib/hooks/useMenu/useMenu.js +1 -0
  675. package/lib/hooks/useMenu/useMenu.stories.js +1 -0
  676. package/lib/hooks/usePopover/index.js +1 -0
  677. package/lib/hooks/usePopover/usePopover.js +1 -0
  678. package/lib/hooks/useToggle/index.js +1 -0
  679. package/lib/hooks/useToggle/useToggle.js +1 -0
  680. package/lib/hooks/useViewportType/index.js +1 -0
  681. package/lib/hooks/useViewportType/useViewportType.js +1 -0
  682. package/lib/hooks/useViewportType/useViewportType.stories.js +1 -0
  683. package/lib/icons/index.js +1 -0
  684. package/lib/index.js +1 -0
  685. package/lib/theme/baseTheme/baseTheme.js +1 -0
  686. package/lib/theme/baseTheme/index.js +1 -0
  687. package/lib/theme/breakpoints.js +1 -0
  688. package/lib/theme/components/MuiAlert.js +1 -0
  689. package/lib/theme/components/MuiAutocomplete.js +1 -0
  690. package/lib/theme/components/MuiButton.js +1 -0
  691. package/lib/theme/components/MuiButtonBase.js +1 -0
  692. package/lib/theme/components/MuiCircularProgress.js +1 -0
  693. package/lib/theme/components/MuiDialog.js +1 -0
  694. package/lib/theme/components/MuiDialogActions.js +1 -0
  695. package/lib/theme/components/MuiDialogContent.js +1 -0
  696. package/lib/theme/components/MuiDialogTitle.js +1 -0
  697. package/lib/theme/components/MuiDrawer.js +1 -0
  698. package/lib/theme/components/MuiFormHelperText.js +1 -0
  699. package/lib/theme/components/MuiFormLabel.js +1 -0
  700. package/lib/theme/components/MuiInputLabel.js +1 -0
  701. package/lib/theme/components/MuiLinearProgress.js +1 -0
  702. package/lib/theme/components/MuiListItemText.js +1 -0
  703. package/lib/theme/components/MuiMenu.js +1 -0
  704. package/lib/theme/components/MuiMenuItem.js +1 -0
  705. package/lib/theme/components/MuiOutlinedInput.js +1 -0
  706. package/lib/theme/components/MuiPaginationItem.js +1 -0
  707. package/lib/theme/components/MuiPaper.js +1 -0
  708. package/lib/theme/components/MuiStep.js +1 -0
  709. package/lib/theme/components/MuiStepConnector.js +1 -0
  710. package/lib/theme/components/MuiStepLabel.js +1 -0
  711. package/lib/theme/components/MuiSwitch.js +1 -0
  712. package/lib/theme/components/MuiTab.js +1 -0
  713. package/lib/theme/components/MuiTableCell.js +1 -0
  714. package/lib/theme/components/MuiTableHead.js +1 -0
  715. package/lib/theme/components/MuiTableRow.js +1 -0
  716. package/lib/theme/components/MuiTabs.js +1 -0
  717. package/lib/theme/components/MuiTextField.js +1 -0
  718. package/lib/theme/components/MuiToggleButton.js +1 -0
  719. package/lib/theme/components/MuiToggleButtonGroup.js +1 -0
  720. package/lib/theme/components/MuiTypography.js +1 -0
  721. package/lib/theme/components/components.js +1 -0
  722. package/lib/theme/components/index.js +1 -0
  723. package/lib/theme/constants.js +1 -0
  724. package/lib/theme/elevation.js +1 -0
  725. package/lib/theme/index.js +1 -0
  726. package/lib/theme/palette/componentsColors/componentsColors.js +1 -0
  727. package/lib/theme/palette/componentsColors/index.js +1 -0
  728. package/lib/theme/palette/componentsColors/linkColors/index.js +1 -0
  729. package/lib/theme/palette/componentsColors/linkColors/linkColors.js +1 -0
  730. package/lib/theme/palette/index.js +1 -0
  731. package/lib/theme/palette/palette.js +1 -0
  732. package/lib/theme/palette/types.js +0 -0
  733. package/lib/theme/shape.js +1 -0
  734. package/lib/theme/types.js +0 -0
  735. package/lib/theme/typography.js +1 -0
  736. package/package.json +6 -5
  737. package/lib/index.mjs +0 -1515
@@ -0,0 +1 @@
1
+ import{jsx as r,jsxs as e}from"react/jsx-runtime";import{Fragment as t,forwardRef as i,useState as o}from"react";import{Chevron as n}from"../Chevron/index.js";import{Collapse as l}from"../Collapse/index.js";import{ChevronWrapper as m,ContentWrapper as c,Header as d,Summary as s}from"./styles.js";let f=i(({summary:i,startAdorment:f,isExpanded:h,onChange:p,children:a},j)=>{let[x,A]=o(!1),v="boolean"==typeof h,y=v?h:x,C=!!f;return e("div",{ref:j,children:[e(d,{onClick:r=>{if(v)p?.(!h,r);else{let e=!x;A(e),p?.(e,r)}},withStartAdornment:C,children:[f,r("string"==typeof i?s:t,{children:i}),r(m,{children:r(n,{isActive:y})})]}),r(l,{in:y,children:r(c,{withStartAdorment:C,children:a})})]})});export{f as Accordion};
@@ -0,0 +1,6 @@
1
+ import{Fragment as r,jsx as e,jsxs as i}from"react/jsx-runtime";import{SvgIcon as n,styled as o}from"@mui/material";import{useState as c}from"react";import{CircleCheck as t,Info as d}from"../../icons/index.js";import{Button as l}from"../Button/index.js";import{Container as m}from"../Container/index.js";import{Typography as a}from"../Typography/index.js";import{Accordion as s}from"./Accordion.js";let h={title:"Components/Accordion",component:s,args:{children:i(r,{children:[e(a,{children:"Сумма заказа: 1 000 руб"}),e(a,{children:"Дата оформления: 15.08.2023"})]}),summary:"Информация о заказе",startAdorment:e(n,{color:"info",children:e(d,{size:16})})},parameters:{layout:"centered",docs:{disable:!0}},tags:["autodocs"],argTypes:{backgroundColor:{control:"color"}}},p=o(m)`
2
+ width: 300px;
3
+ min-height: 90px;
4
+ padding: ${({theme:r})=>r.spacing(2)};
5
+ align-items: center;
6
+ `,u=()=>e(p,{children:i(s,{summary:"Информация о заказе",startAdorment:e(n,{color:"info",children:e(d,{size:16})}),children:[e(a,{children:"Сумма заказа: 1 000 руб"}),e(a,{children:"Дата оформления: 15.08.2023"})]})}),g=()=>e(p,{children:i(s,{summary:e(a,{variant:"subtitle2",children:"Любой summary"}),children:[e(a,{children:"Сумма заказа: 1 000 руб"}),e(a,{children:"Дата оформления: 15.08.2023"})]})}),f=()=>e(p,{children:i(s,{summary:"Информация о заказе",startAdorment:e(n,{color:"success",children:e(t,{})}),children:[e(a,{children:"Сумма заказа: 1 000 руб"}),e(a,{children:"Дата оформления: 15.08.2023"})]})}),y=()=>{let[r,n]=c(!0);return i(m,{direction:"column",children:[e(l,{onClick:()=>n(r=>!r),children:"Toggle"}),i(s,{summary:"123",isExpanded:r,onChange:(r,e)=>{n(r),console.log("Click accordion header event",e)},children:[e(a,{children:"Сумма заказа: 1 000 руб"}),e(a,{children:"Дата оформления: 15.08.2023"})]})]})};export{y as Controlled,u as Example,f as StartAdorment,g as Summary,h as default};
@@ -0,0 +1 @@
1
+ export*from"./Accordion.js";
@@ -0,0 +1,17 @@
1
+ import{styled as r}from"../../theme/index.js";import{Typography as e}from"../Typography/index.js";let p=r("header")`
2
+ cursor: pointer;
3
+
4
+ display: grid;
5
+ grid-column-gap: ${({theme:r})=>r.spacing(2)};
6
+ grid-template-columns: ${({withStartAdornment:r})=>r?"24px 1fr 24px":" 1fr 24px"};
7
+ `,i=r("div")`
8
+ margin-left: ${({theme:r,withStartAdorment:e})=>r.spacing(8*!!e)};
9
+ padding-top: ${({theme:r})=>r.spacing(2)};
10
+ `,n=r(e)`
11
+ align-self: center;
12
+ `,a=r("div")`
13
+ overflow: hidden;
14
+
15
+ width: 24px;
16
+ height: 24px;
17
+ `;export{a as ChevronWrapper,i as ContentWrapper,p as Header,n as Summary};
@@ -0,0 +1 @@
1
+ import{jsx as i,jsxs as o}from"react/jsx-runtime";import{MainAction as t}from"./MainAction/index.js";import{SecondaryActions as e}from"./SecondaryAction/index.js";import{Wrapper as n}from"./styles.js";import{useLogic as r}from"./useLogic/index.js";let c=c=>{let{isSecondaryActionsAvailable:l,handleActionClick:m,handleWrapperClick:s,isDisabledAction:a}=r(c),{actions:p}=c,{main:d=[],secondary:f=[]}=p;return o(n,{onClick:s,children:[d.map(o=>i(t,{tooltipPlacement:"top",onActionClick:m,action:o,isDisabled:a},o.name)),l&&i(e,{isDisabled:a,actions:f,tooltipPlacement:"left",onActionClick:m})]})};export{c as ActionCell};
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{Eye as e,Save as n,Send as i,Trash as a}from"lucide-react";import{useEffect as t,useState as l}from"react";import{DataGrid as c}from"../DataGrid/index.js";import{ActionCell as s}from"./ActionCell.js";let r={title:"Components/ActionCell",component:s,parameters:{layout:"centered",docs:{disable:!0}},tags:["autodocs"],argTypes:{backgroundColor:{control:"color"}}},d=[{icon:o(e,{}),name:"Просмотреть нельзя",disabled:!0,onClick:()=>console.log("main")},{icon:o(i,{}),nested:!0,name:"Отправить",actions:[{name:"Туда",onClick:()=>console.log("nested 1"),disabledReason:"Не работает",disabled:!0},{name:"Сюда",onClick:()=>console.log("nested 2")}]}],m={main:d,secondary:[{name:"Редактировать",onClick:()=>console.log("secondary 1"),disabled:!0,disabledReason:"Текущий документ не прошел согласование/подписание. Загрузите документ повторно"},{name:"Удалить",onClick:()=>console.log("secondary 2")}]},u={main:d},g=[{id:"1",documentName:"Документ 1",action:()=>{}},{id:"2",documentName:"Документ 2",action:()=>{}},{id:"3",documentName:"Документ 3",action:()=>{}}],C=()=>{let e=[{field:"documentName",label:"Документ",sortable:!1},{label:"Действия",sortable:!1,width:"120px",align:"right",renderCell:e=>o(s,{actions:m,row:e})}];return o(c,{rows:g,columns:e,keyId:"id",onRetry:()=>{}})},k=()=>o(s,{actions:u,row:g[1]}),p=()=>{let[e,i]=l(!1),[c,r]=l(!1);t(()=>{e&&setTimeout(()=>{i(!1)},1500),c&&setTimeout(()=>{r(!1)},1500)},[e,c]);let d={main:[{icon:o(a,{}),name:"Удалить",onClick:()=>i(o=>!o),loading:e},{icon:o(n,{}),name:"Сохранить",loading:c,onClick:()=>r(o=>!o)}]};return o(s,{actions:d,row:{id:"123456789"}})},b=()=>{let[e,i]=l(!1),[c,r]=l(!1);t(()=>{e&&setTimeout(()=>{i(!1)},1500),c&&setTimeout(()=>{r(!1)},1500)},[e,c]);let d={main:[{icon:o(a,{}),name:"Удалить",onClick:()=>i(o=>!o),loading:e,isBlockingOperation:!0},{icon:o(n,{}),name:"Сохранить",onClick:()=>r(o=>!o),loading:c}],secondary:[{name:"Редактировать",onClick:()=>console.log("secondary 1")}]};return o(s,{actions:d,row:{id:"123456789"}})};export{b as BlockingOperations,C as Example,p as LoaderActions,k as OnlyMainActions,r as default};
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{createElement as e}from"react";import{IconButton as i,IconDropdownButton as n,MenuItem as r,Tooltip as o}from"../../index.js";let l=({action:l,onActionClick:a,tooltipPlacement:c,isDisabled:m})=>{if("actions"in l){let{icon:i,disabled:d,disabledReason:p,name:h,actions:s}=l;return t(o,{title:p||h,placement:c,withoutContainer:!(m||d),children:t(n,{icon:i,variant:"text",disabled:m||d,children:s.map(({name:t,onClick:i,...n})=>e(r,{...n,key:t,tooltipPlacement:c,onClick:a(i)},t))})},h)}let{onClick:d,name:p,icon:h,disabledReason:s,disabled:u,loading:x,isBlockingOperation:C,...f}=l;return t(o,{title:!x&&(s||p),placement:c,withoutContainer:!(m||u),children:t(i,{disabled:m||u,...f,variant:"text",onClick:a(d),children:h})},p)};export{l as MainAction};
@@ -0,0 +1 @@
1
+ export*from"./MainAction.js";
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{createElement as o}from"react";import{EllipsisVertical as r}from"lucide-react";import{IconDropdownButton as e}from"../../IconDropdownButton/index.js";import{MenuItem as i}from"../../MenuItem/index.js";let n=({actions:n,onActionClick:m,tooltipPlacement:c,isDisabled:a=!1})=>t(e,{icon:t(r,{}),variant:"text",disabled:a,children:n.map(t=>{let{onClick:r,name:e}=t;return o(i,{...t,key:e,tooltipPlacement:c,onClick:m(r)},e)})});export{n as SecondaryActions};
@@ -0,0 +1 @@
1
+ export*from"./SecondaryActions.js";
@@ -0,0 +1 @@
1
+ export*from"./ActionCell.js";
@@ -0,0 +1,4 @@
1
+ import{styled as e}from"../../theme/index.js";let i=e("div")`
2
+ display: inline-flex;
3
+ align-items: center;
4
+ `;export{i as Wrapper};
File without changes
@@ -0,0 +1 @@
1
+ export*from"./useLogic.js";
@@ -0,0 +1 @@
1
+ import{useCallback as o}from"react";let e=({actions:e,row:i})=>{let{main:t,secondary:a}=e,n=t.some(o=>!("actions"in o)&&o?.isBlockingOperation&&o?.loading),r=o(o=>()=>{o?.(i)},[i]);return{isSecondaryActionsAvailable:a&&a.length>=1,handleActionClick:r,handleWrapperClick:o=>{o.stopPropagation()},isDisabledAction:n}};export{e as useLogic};
@@ -0,0 +1 @@
1
+ import{jsx as i,jsxs as s}from"react/jsx-runtime";import{MainActions as o}from"./MainActions/index.js";import{SecondaryActions as e}from"./SecondaryActions/index.js";import{SecondaryVisibleActions as r}from"./SecondaryVisibleActions/index.js";import{Wrapper as t}from"./styles.js";import{useLogic as n}from"./useLogic/index.js";let m=m=>{let{disabledAction:c}=n(m),{main:a,secondary:d,secondaryVisible:l,className:p,size:f}=m;return s(t,{className:p,children:[l&&i(r,{size:f,actions:l}),a&&i(o,{size:f,isDisabled:c,actions:a}),d&&i(e,{size:f,isDisabled:c,actions:d})]})};export{m as ActionGroup};
@@ -0,0 +1,3 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{Building2 as e,Plus as o}from"lucide-react";import{styled as i}from"../../theme/index.js";import{ActionGroup as a}from"./ActionGroup.js";let n={title:"Components/ActionGroup",component:a},d=i("div")`
2
+ padding-block: ${({theme:t})=>t.spacing(5)};
3
+ `,s={args:{main:[{text:"main action 1",startIcon:t(o,{})},{text:"main action 2",color:"error"}],secondary:[{text:"secondary action 1"},{text:"secondary action 2"}]},parameters:{docs:{disable:!0}}},r=()=>t(d,{children:t(a,{main:[{text:"действие 1",startIcon:t(o,{})},{text:"действие 2",isNested:!0,actions:[{text:"действие в списке 1"},{text:"действие в списке 2"}]},{text:"действие 3",color:"error"}],secondaryVisible:[{name:"О компании",icon:t(e,{})},{name:"Добавить",icon:t(o,{}),disabled:!0,disableReason:"Действие недоступно, т.к. у вас недостаточно прав"}],secondary:[{text:"Второстепенное действие 1"},{text:"Второстепенное действие 2"}]})}),c=()=>t(d,{children:t(a,{main:[{text:"Отправка по маршруту",disabled:!0},{text:"Выбор получателя"}],secondary:[{text:"Выбор получателя",disabled:!0},{text:"Сменить подразделение",disabled:!0,disabledReason:"На данный момент заблокировано"},{text:"Копировать",note:"Можно что-то скопировать"},{text:"Удалить",note:"Можно что-то удалить"}]})}),x=()=>t(d,{children:t(a,{main:[{text:"Отправка по маршруту",disabled:!0,disabledReason:"Заблокировано"},{text:"Выбор получателя",note:"Здесь можно выбрать несколько получателей"},{text:"Выберите документ",isNested:!0,disabled:!0,disabledReason:"На данный момент не доступно",actions:[{text:"действие в списке 1"},{text:"действие в списке 2"}]}],secondary:[{text:"Выбор получателя",disabled:!0},{text:"Сменить подразделение",disabled:!0},{text:"Копировать"},{text:"Удалить"}]})});export{r as Example,s as Interaction,x as TooltipMainAction,c as TooltipSecondaryAction,n as default};
@@ -0,0 +1 @@
1
+ import{Fragment as e,jsx as t}from"react/jsx-runtime";import{MenuItem as i,Tooltip as r}from"../../index.js";import{StyledButton as n,StyledDropdownButton as l}from"./styles.js";let s=({actions:s,isDisabled:o,size:d})=>t(e,{children:s.map(e=>{if(Object.hasOwn(e,"isNested")){let{text:n,isNested:s,actions:a,disabled:c,disabledReason:m,note:h,isBlockingOperation:p,...u}=e;return t(r,{title:c?m:h,withoutContainer:!(o||c),children:t(l,{...u,disabled:o||c,name:n,size:d,children:a.map(({text:e,...r})=>t(i,{...r,children:e},e))})},n)}let{text:s,disabled:a,disabledReason:c,note:m,isBlockingOperation:h,...p}=e;return t(r,{title:a?c:m,withoutContainer:!(o||a),children:t(n,{...p,size:d,disabled:o||a,children:s})},s)})});export{s as MainActions};
@@ -0,0 +1 @@
1
+ export*from"./MainActions.js";
@@ -0,0 +1,5 @@
1
+ import{styled as o}from"../../../theme/index.js";import{Button as t}from"../../Button/index.js";import{DropdownButton as e}from"../../DropdownButton/index.js";let r=o(t)`
2
+ flex-grow: 1;
3
+ `,n=o(e)`
4
+ flex-grow: 1;
5
+ `;export{r as StyledButton,n as StyledDropdownButton};
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{createElement as t}from"react";import{Ellipsis as i}from"lucide-react";import{IconDropdownButton as e,ListItemButton as o,ListItemText as m}from"../../index.js";let a=({actions:a,isDisabled:l,size:n})=>a.length?r(e,{disabled:l,icon:r(i,{}),variant:"light",size:n,children:a.map(({text:i,...e})=>t(o,{tooltipPlacement:"right",...e,key:i},r(m,{primary:i})))}):null;export{a as SecondaryActions};
@@ -0,0 +1 @@
1
+ export*from"./SecondaryActions.js";
@@ -0,0 +1 @@
1
+ import{Fragment as e,jsx as i}from"react/jsx-runtime";import{IconButton as t,Tooltip as r}from"../../index.js";let n=({actions:n,size:l})=>i(e,{children:n.map(e=>{let{name:n,icon:o,disableReason:a,disabled:d,isBlockingOperation:m,...c}=e;return i(r,{title:d?a:n,withoutContainer:!d,children:i(t,{variant:"light",size:l,name:n,disabled:d,...c,children:o})},n)})});export{n as SecondaryVisibleActions};
@@ -0,0 +1 @@
1
+ export*from"./SecondaryVisibleActions.js";
@@ -0,0 +1,3 @@
1
+ import{styled as t}from"../../../theme/index.js";import{Button as e}from"../../Button/index.js";let o=t(e)`
2
+ flex-grow: 1;
3
+ `;export{o as StyledButton};
@@ -0,0 +1 @@
1
+ export*from"./ActionGroup.js";
@@ -0,0 +1,4 @@
1
+ import{styled as e}from"../../theme/index.js";let p=e("div")`
2
+ display: flex;
3
+ gap: ${({theme:e})=>e.spacing(1)};
4
+ `;export{p as Wrapper};
@@ -0,0 +1 @@
1
+ export*from"./useLogic.js";
@@ -0,0 +1 @@
1
+ let i=({main:i,secondary:o})=>({disabledAction:!![...i||[],...o||[]].find(i=>i.isBlockingOperation&&i.loading)});export{i as useLogic};
@@ -0,0 +1 @@
1
+ import{jsx as r,jsxs as e}from"react/jsx-runtime";import{AlertTitle as o}from"@mui/material";import{CircleCheck as i,Info as t,OctagonAlert as n,TriangleAlert as l,X as s}from"../../icons/index.js";import{Collapse as m}from"../Collapse/index.js";import{Typography as c}from"../Typography/index.js";import{Actions as a,StyledAlert as p,StyledIconButton as d}from"./styles.js";let f=({children:f,title:h,closeText:u="Скрыть",isVisible:x=!0,actions:j,onClose:y,...g})=>{let{severity:v="info",slots:B,...C}=g;return r(m,{in:x,children:e(p,{...C,severity:v,closeText:u,slots:{closeButton:e=>{let{variant:o,color:i,...t}=e;return r(d,{variant:"text",color:"primary",...t})},closeIcon:s},variant:"filled",onClose:y,iconMapping:{info:r(t,{}),error:r(n,{}),success:r(i,{}),warning:r(l,{})},children:[h&&r(o,{children:r(c,{variant:"h5",children:h})}),r(c,{gutterBottom:!!j,children:f}),r(a,{children:j})]})})};export{f as Alert};
@@ -0,0 +1 @@
1
+ import{Fragment as e,jsx as i,jsxs as r}from"react/jsx-runtime";import{useState as t}from"react";import{Button as l}from"../Button/index.js";import{Container as n}from"../Container/index.js";import{Alert as o}from"./Alert.js";let s={title:"Components/Alert",component:o},c={args:{children:"Формирование счета может занять до 15 минут",isVisible:!0},parameters:{docs:{disable:!0}}},d=()=>{let[e,i]=t(!0);return{isDisplay:e,toggleIsDisplay:()=>i(e=>!e)}},a=()=>i(o,{title:"Внимание",children:"Формирование счета может занять до 15 минут"}),h=()=>r(e,{children:[i(o,{severity:"info",title:"info",children:"Формирование счета может занять до 15 минут"}),i(o,{severity:"success",title:"success",children:"Формирование счета может занять до 15 минут"}),i(o,{severity:"warning",title:"warning",children:"Формирование счета может занять до 15 минут"}),i(o,{severity:"error",title:"error",children:"Формирование счета может занять до 15 минут"})]}),m=()=>i(o,{actions:i(l,{variant:"link",children:"Перейти к счету"}),children:"Формирование счета может занять до 15 минут"}),p=()=>i(o,{title:"Внимание",children:"Формирование счета может занять до 15 минут"}),u=()=>i(o,{children:"Формирование счета может занять до 15 минут"}),f=()=>{let{isDisplay:e,toggleIsDisplay:r}=d();return e?i(o,{onClose:r,children:"Формирование счета может занять до 15 минут"}):i(l,{onClick:r,children:"Показать Alert"})},C=()=>{let{isDisplay:e,toggleIsDisplay:t}=d();return r(n,{children:[i(l,{onClick:t,children:"Показать/спрятать Alert"}),i(o,{isVisible:e,children:"Формирование счета может занять до 15 минут"})]})},x=()=>i(o,{closeText:"Кастомный текст",onClose:()=>{},children:"Формирование счета может занять до 15 минут"});export{m as Actions,x as CloseText,C as Display,a as Example,c as Interaction,f as OnClose,h as Severity,p as Title,u as WithoutTitle,s as default};
@@ -0,0 +1 @@
1
+ export*from"./Alert.js";export*from"./types.js";
@@ -0,0 +1,31 @@
1
+ import{Alert as t,alertClasses as i,iconButtonClasses as n}from"@mui/material";import{styled as r}from"../../theme/index.js";import{IconButton as o}from"../IconButton/index.js";let e=r(t)`
2
+ ${({theme:t})=>t.breakpoints.up("sm")} {
3
+ padding: ${({theme:t})=>t.spacing(1,4,1,2)};
4
+ }
5
+
6
+ & > .${i.icon} {
7
+ margin-right: ${({theme:t})=>t.spacing(3)};
8
+ align-self: center;
9
+ }
10
+
11
+ & > .${i.action} {
12
+ margin-right: unset;
13
+ align-self: center;
14
+
15
+ .${n.root} {
16
+ padding-right: unset;
17
+ padding-left: unset;
18
+ }
19
+ }
20
+ `,a=r("div")`
21
+ display: grid;
22
+ column-gap: ${({theme:t})=>t.spacing(4)};
23
+ grid-auto-flow: column;
24
+ justify-content: flex-start;
25
+ `,g=r(o)`
26
+ border-radius: 50%;
27
+
28
+ &:hover {
29
+ background-color: rgb(0 0 0 / 4%);
30
+ }
31
+ `;export{a as Actions,e as StyledAlert,g as StyledIconButton};
File without changes
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{Autocomplete as o}from"../Autocomplete/index.js";import{useLogic as t}from"./useLogic/index.js";let r=r=>{let{options:n,isLoadingData:i,handleOpen:s,handleInputChange:p,emptyOptionsText:m}=t(r),{fetchOptions:u,fetchDelayMs:l,minSymbolsToFetch:c,isDisabled:d,isRequired:x,isSuccess:a,isError:f,isLoading:g,isFullWidth:j,onOpen:A,noOptionsText:h,onInputChange:O,...b}=r;return e(o,{options:n,disabled:d,fullWidth:j,loading:g||i,onOpen:s,error:f,required:x,success:a,noOptionsText:m,onInputChange:p,...b})};export{r as AsyncAutocomplete};
@@ -0,0 +1,3 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{useState as l}from"react";import{styled as t}from"../../theme/index.js";import{AsyncAutocomplete as n}from"./AsyncAutocomplete.js";let o={title:"Components/AsyncAutocomplete",component:n},a=async(e,{signal:l})=>(await new Promise(e=>setTimeout(e,1e3)),[{id:"1",name:"John Doe"},{id:"2",name:"Jane Doe"},{id:"3",name:"Bob Doe"}].filter(l=>l.name.toLowerCase().includes(e.toLowerCase()))),i=async(e,l)=>a(e,{signal:l}),r=t("div")`
2
+ min-width: 300px;
3
+ `,c=()=>{let[t,o]=l(null);return e(r,{children:e(n,{fetchOptions:(e,l)=>i(e,l),getOptionLabel:e=>e.name,placeholder:"Введите имя",isRequired:!0,label:"Сотрудник",value:t,onChange:(e,l)=>{o(l)}})})},s=()=>{let[t,o]=l(null);return e(r,{children:e(n,{fetchOptions:(e,l)=>i(e,l),getOptionLabel:e=>"string"==typeof e?e:e.name,placeholder:"Введите имя",freeSolo:!0,value:t,onChange:(e,l)=>{o(l)}})})},m=()=>{let[t,o]=l([]);return e(r,{children:e(n,{fetchOptions:e=>i(e),getOptionLabel:e=>e.name,placeholder:"Введите имя",multiple:!0,value:t,onChange:(e,l)=>{o(l)}})})},p=()=>{let[t,o]=l(null);return e(r,{children:e(n,{fetchOptions:(e,l)=>i(e,l),getOptionLabel:e=>e.name,placeholder:"Введите имя",isRequired:!0,label:"Сотрудник",value:t,minSymbolsToFetch:4,onChange:(e,l)=>{o(l)}})})},h=()=>{let[t,o]=l(null);return e(r,{children:e(n,{fetchOptions:e=>i(e),getOptionLabel:e=>e.name,placeholder:"Введите имя",isRequired:!0,label:"Сотрудник",value:t,fetchDelayMs:1e3,onChange:(e,l)=>{o(l)}})})},u=()=>{let[t,o]=l(null);return e(r,{children:e(n,{fetchOptions:(e,l)=>i(e,l),getOptionLabel:e=>e.name,placeholder:"Введите имя",isRequired:!0,label:"Сотрудник",value:t,onChange:(e,l)=>{o(l)},fetchDelayMs:500})})};export{u as AbortController,c as Example,h as FetchDelayMs,s as FreeSolo,p as MinSymbolsToFetch,m as Multiple,o as default};
@@ -0,0 +1 @@
1
+ let T=0,_=300,E="Продолжайте вводить для поиска",A="Нет данных";export{_ as DEFAULT_DELAY_MS,E as DEFAULT_EMPTY_OPTIONS_TEXT,T as DEFAULT_MIN_SEARCH_CHARACTERS,A as DEFAULT_NO_OPTIONS_TEXT};
@@ -0,0 +1 @@
1
+ export*from"./AsyncAutocomplete.js";
@@ -0,0 +1 @@
1
+ export*from"./useLogic.js";
@@ -0,0 +1 @@
1
+ import{debounce as t}from"@mui/material";import{useCallback as e,useRef as r,useState as n}from"react";import{DEFAULT_DELAY_MS as l,DEFAULT_EMPTY_OPTIONS_TEXT as o,DEFAULT_MIN_SEARCH_CHARACTERS as a,DEFAULT_NO_OPTIONS_TEXT as i}from"../constants.js";let u=({fetchOptions:u,fetchDelayMs:m=l,minSymbolsToFetch:p=a,defaultValue:c,getOptionLabel:f,noOptionsText:h=i,onOpen:s,onInputChange:g})=>{let[b,d]=n(!1),[x,y]=n(!0),[C,O]=n(!0),j=r(null),[w,A]=n([]),I=e(t(t=>{j.current?.abort();let e=new AbortController;j.current=e,u(t,e?.signal).then(t=>{A(t),O(0===t.length)}).finally(()=>{d(!1),j.current=null})},m),[u,m,h]);return{handleOpen:t=>{if(x){y(!1);let t=c&&f?f(c):"";(c||0===p)&&(d(!0),I(t))}s?.(t)},handleInputChange:(t,e,r)=>{if(!e||e.length<p)return I&&I.clear(),O(!1),d(!1),A([]);d(!0),x||I(e),g?.(t,e,r)},options:w,isLoadingData:b,emptyOptionsText:C?h:o}};export{u as useLogic};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{createElement as r,useCallback as o}from"react";import{Autocomplete as t,ListItemIcon as i,Popper as n,SvgIcon as l}from"@mui/material";import{ChevronDown as p,CircleX as m,X as c}from"../../icons/index.js";import{Checkbox as s}from"../Checkbox/index.js";import{CircularProgress as d}from"../CircularProgress/index.js";import{OverflowTypography as a}from"../OverflowTypography/index.js";import{Tag as u}from"../Tag/index.js";import{TextField as x}from"../TextField/index.js";import{DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT as f,DEFAULT_PLACEHOLDER as j}from"./constants.js";import{StyledMenuItem as g}from"./styles.js";import{useLogic as h}from"./useLogic/index.js";let T=T=>{let{isValueEmpty:y,isPopperVisible:I,autocompleteProps:b}=h(T),{required:k,success:O,error:C,label:A,getOptionLabel:P,helperText:w,inputRef:z,multiple:L,size:v="medium",placeholder:F=j,overflowOption:R,closeText:S="Закрыть",openText:_="Открыть",clearText:q="Очистить",loadingText:B=e(d,{color:"primary"}),isLoadedDataError:D,loadedDataError:E,noOptionsText:G,autoHighlight:H,renderInput:J,renderTags:K,renderOption:M,...N}=T,Q=o(r=>{let o={...r,inputRef:z,required:k,placeholder:y?F:"",label:A,success:O,error:C,helperText:w,size:v};return J?J(o):e(x,{...o})},[y,J,z,k,F,A,O,C,w,v]),U=o((o,t,n,l)=>{if(M)return M(o,t,n,l);let p=!!o["aria-selected"];return r(g,{...o,key:o.id,children:[L&&e(i,{children:e(s,{role:"menuitemcheckbox",checked:p})}),e(a,{rowsCount:f,...R,children:o.key})]})},[L,R,M]),V=o((o,t,i)=>K?K(o,t,i):o.map((o,i)=>{let n=P?.(o)||"";return r(u,{deleteIcon:e(c,{}),color:"grey",label:n,...t({index:i}),key:n})}),[P,K]),W=o(r=>I?e(n,{...r}):null,[I]);return e(t,{...N,size:v,clearText:q,closeText:S,openText:_,loadingText:B,multiple:L,disableCloseOnSelect:L,clearIcon:e(l,{children:e(m,{})}),popupIcon:e(p,{size:16}),forcePopupIcon:!0,slotProps:{clearIndicator:{disableRipple:!0},popper:{component:W}},getOptionLabel:P,renderInput:Q,renderTags:V,renderOption:U,...b})};export{T as Autocomplete};
@@ -0,0 +1,3 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{createElement as l,useState as i}from"react";import{styled as o}from"../../theme/index.js";import{MenuItem as r}from"../MenuItem/index.js";import{OverflowTypography as a}from"../OverflowTypography/index.js";import{Tag as n}from"../Tag/index.js";import{Tooltip as p}from"../Tooltip/index.js";import{Autocomplete as s}from"./Autocomplete.js";let u={title:"Components/Autocomplete",component:s},d=[{value:"1",title:"Value 1"},{value:"2",title:"Value 2"},{value:"3",title:"Value 3"},{value:"4",title:"Value 4"},{value:"5",title:"Value 5"},{value:"6",title:"Value 6"},{value:"7",title:"Value 7"},{value:"8",title:"Value 8"},{value:"9",title:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab adipisci, aliquam aliquid delectus ipsam laboriosam magni molestias possimus ullam voluptatibus!"},{value:"10",title:"12 Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis, vero?"}],m=o("div")`
2
+ min-width: 300px;
3
+ `,c={args:{options:d,label:"Выберите вариант",getOptionLabel:e=>e.title},parameters:{docs:{disable:!0}}},b=()=>{let[t,l]=i(null);return e(m,{children:e(s,{options:d,size:"small",label:"Выберите вариант",value:t,getOptionLabel:e=>e.title,onChange:(e,t)=>l(t)})})},g=()=>{let[t,l]=i([]);return e(m,{children:e(s,{multiple:!0,options:d,label:"Multiple",value:t,onChange:(e,t)=>l(t),getOptionLabel:e=>e.title})})},h=()=>{let[t,l]=i();return e(m,{children:e(s,{options:d,label:"FreeSolo",freeSolo:!0,value:t,onChange:(e,t)=>l(t),getOptionLabel:e=>"string"==typeof e?e:e.title})})},v=()=>{let[t,l]=i([]);return e(m,{children:e(s,{multiple:!0,options:d,label:"Multiple custom tags",value:t,onChange:(e,t)=>l(t),getOptionLabel:e=>e.title,renderTags:(t,l)=>t.map((t,i)=>{let{title:o}=t,{onDelete:r,...a}=l({index:i}),s=0===i;return e(p,{title:s&&"Custom tag",children:e(n,{...a,onDelete:s?void 0:r,color:"warning",size:"small",label:o,variant:"light"})},o)})})})},L=()=>e(m,{children:e(s,{label:"Loaded data error",options:[],isLoadedDataError:!0,loadedDataError:"Ошибка загрузки данных",getOptionLabel:e=>e.title,error:!0})}),O=()=>e(m,{children:e(s,{label:"Error",options:d,helperText:"Ошибка",getOptionLabel:e=>e.title,error:!0})}),f=()=>e(m,{children:e(s,{label:"Loading",loading:!0,options:[],getOptionLabel:e=>e.title})}),C=()=>e(m,{children:e(s,{label:"Success",options:d,helperText:"Успех",getOptionLabel:e=>e.title,success:!0})}),x=()=>e(m,{children:e(s,{label:"Small",size:"small",options:d,getOptionLabel:e=>e.title})}),V=()=>e(m,{children:e(s,{label:"No data",size:"small",multiple:!0,options:[],getOptionLabel:e=>e.title,required:!0})}),j=()=>e(m,{children:e(s,{label:"Custom render option",size:"small",options:d,getOptionLabel:e=>e.title,renderOption:(t,i)=>l(r,{...t,key:t.id},e(a,{rowsCount:2,children:`Custom render option - ${i.title}`}))})}),w=()=>e(m,{children:e(s,{label:"Custom render input",size:"small",options:d,getOptionLabel:e=>e.title,renderOption:(t,i)=>l(r,{...t,key:t.id},e(a,{rowsCount:2,children:`Custom render option - ${i.title}`})),renderInput:l=>t("div",{ref:l.InputProps.ref,children:[e("label",{htmlFor:l.inputProps.id,children:l.label}),e("input",{type:"text",ref:l.inputProps.ref,value:l.inputProps.value,onMouseDown:l.inputProps.onMouseDown,placeholder:l.placeholder})]})})});export{w as CustomRenderInput,j as CustomRenderOption,O as ErrorExample,b as Example,h as FreeSolo,c as Interaction,L as LoadedDataError,f as Loading,g as Multiple,v as MultipleCustomTags,V as NoData,x as Small,C as Success,u as default};
@@ -0,0 +1 @@
1
+ let E=2,L="Начните вводить для поиска";export{E as DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT,L as DEFAULT_PLACEHOLDER};
@@ -0,0 +1 @@
1
+ var e,m=((e={}).medium="medium",e.small="small",e);export{m as AutocompleteSizes};
@@ -0,0 +1 @@
1
+ export*from"./Autocomplete.js";
@@ -0,0 +1,7 @@
1
+ import{styled as e}from"../../theme/index.js";import{MenuItem as t}from"../MenuItem/index.js";let m=e(t)`
2
+ max-height: ${({theme:e})=>e.spacing(13)};
3
+
4
+ ${({theme:e})=>e.breakpoints.down("sm")} {
5
+ max-height: unset;
6
+ }
7
+ `;export{m as StyledMenuItem};
@@ -0,0 +1 @@
1
+ export*from"./useLogic.js";
@@ -0,0 +1 @@
1
+ import{useCallback as t,useState as i}from"react";import{checkIsInputEmpty as o}from"./utils/index.js";let e=({value:e,isOptionEqualToValue:n,autoHighlight:l=!0,freeSolo:r,options:p,loading:s,isLoadedDataError:u,loadedDataError:a="Ошибка загрузки данных",noOptionsText:g="Нет данных",onInputChange:h})=>{let[m,O]=i(""),f=o(e),c=m.length>=1,x=p.length>0;return{isValueEmpty:f,isPopperVisible:c||x||s||u,autocompleteProps:{isOptionEqualToValue:t((t,i)=>n?n(t,i):JSON.stringify(t)===JSON.stringify(i),[n]),autoHighlight:!r&&l,noOptionsText:u?a:g,onInputChange:(t,i,o)=>{h?.(t,i,o),s||O(i)}}}};export{e as useLogic};
@@ -0,0 +1 @@
1
+ let r=r=>Array.isArray(r)?0===r.length:!r;export{r as checkIsInputEmpty};
@@ -0,0 +1 @@
1
+ export*from"./checkIsInputEmpty.js";
@@ -0,0 +1 @@
1
+ export*from"./checkIsInputEmpty/index.js";
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import{StyledAvatar as e}from"./styles.js";let m=t((t,m)=>r(e,{...t,ref:m}));export{m as Avatar};
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{Avatar as t}from"./Avatar.js";let a={title:"Components/Avatar",component:t},e={args:{children:"АЛ"},parameters:{docs:{disable:!0}}},o=()=>r(t,{variant:"rounded",children:"АЛ"});export{o as Example,e as Interaction,a as default};
@@ -0,0 +1 @@
1
+ export*from"./Avatar.js";
@@ -0,0 +1,8 @@
1
+ import{Avatar as t}from"@mui/material";import{styled as o}from"../../theme/index.js";let e=o(t)`
2
+ font-size: ${({theme:t})=>t.typography.h5.fontSize};
3
+ font-weight: ${({theme:t})=>t.typography.h5.fontWeight};
4
+
5
+ ${({theme:t})=>t.breakpoints.down("sm")} {
6
+ font-size: ${({theme:t})=>t.typography.h6.fontSize};
7
+ }
8
+ `;export{e as StyledAvatar};
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{StyledBadge as o}from"./styles.js";let t=({children:t,color:e,max:i=99,withBorder:m=!0,variantColor:a="contained",...l})=>r(o,{$customColor:e,max:i,$withBorder:m,$variantColor:a,...l,children:t});export{t as Badge};
@@ -0,0 +1 @@
1
+ import{jsx as r,jsxs as n}from"react/jsx-runtime";import{useState as a}from"react";import{Button as i}from"../Button/index.js";import{Container as t}from"../Container/index.js";import{Badge as o}from"./Badge.js";let e={title:"Components/Badge",component:o},l={args:{color:"error",badgeContent:999,variant:"standard",invisible:!1},parameters:{docs:{disable:!0}}},d=()=>r(o,{color:"error",badgeContent:999,children:r(i,{variant:"contained",color:"primary",children:"Badge"})}),c=()=>r(o,{color:"error",variant:"dot",invisible:!1,children:r(i,{variant:"contained",color:"primary",children:"Dot"})}),h=()=>{let[n,t]=a(!0);return r(o,{color:"error",badgeContent:999,variant:"standard",invisible:n,children:r(i,{onClick:()=>{t(r=>!r)},variant:"contained",color:"primary",children:n?"Показать":"Скрыть"})})},g=()=>n(t,{gap:10,children:[r(o,{color:"grey",badgeContent:4,children:r(i,{children:"Primary"})}),r(o,{color:"grey",badgeContent:4,anchorOrigin:{horizontal:"left",vertical:"top"},children:r(i,{children:"Primary"})}),r(o,{color:"grey",badgeContent:4,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:r(i,{children:"Primary"})}),r(o,{color:"grey",badgeContent:4,anchorOrigin:{horizontal:"right",vertical:"bottom"},children:r(i,{children:"Primary"})})]}),s=()=>n(t,{gap:10,children:[r(o,{color:"grey",badgeContent:999,variant:"standard",children:r(i,{fullWidth:!0,variant:"light",color:"primary",children:"grey"})}),r(o,{color:"primary",badgeContent:999,variant:"standard",children:r(i,{variant:"light",color:"primary",children:"primary"})}),r(o,{color:"error",badgeContent:999,variant:"standard",children:r(i,{fullWidth:!0,variant:"light",color:"error",children:"error"})}),r(o,{color:"success",badgeContent:999,variant:"standard",children:r(i,{fullWidth:!0,variant:"light",color:"success",children:"success"})}),r(o,{color:"warning",badgeContent:999,variant:"standard",children:r(i,{fullWidth:!0,variant:"light",color:"warning",children:"warning"})}),r(o,{color:"white",badgeContent:999,variant:"standard",children:r(i,{fullWidth:!0,variant:"contained",color:"primary",children:"white"})}),r(o,{color:"grey",badgeContent:999,variant:"standard",variantColor:"light",children:r(i,{fullWidth:!0,variant:"contained",color:"primary",children:"grey"})}),r(o,{color:"primary",badgeContent:999,variant:"standard",variantColor:"light",children:r(i,{fullWidth:!0,variant:"contained",color:"primary",children:"primary"})}),r(o,{color:"error",badgeContent:999,variant:"standard",variantColor:"light",children:r(i,{fullWidth:!0,variant:"contained",color:"error",children:"error"})}),r(o,{color:"success",badgeContent:999,variant:"standard",variantColor:"light",children:r(i,{fullWidth:!0,variant:"contained",color:"success",children:"success"})}),r(o,{color:"warning",badgeContent:999,variant:"standard",variantColor:"light",children:r(i,{fullWidth:!0,variant:"contained",color:"warning",children:"warning"})})]});export{g as AnchorOrigin,d as Example,l as Interaction,h as Invisible,c as Variants,s as VariantsColor,e as default};
@@ -0,0 +1 @@
1
+ export*from"./Badge.js";export*from"./types.js";
@@ -0,0 +1,21 @@
1
+ import{Badge as e,styled as t}from"@mui/material";let r=t(e,{shouldForwardProp:e=>!["$customColor","$withBorder","$variantColor"].includes(e.toString())})`
2
+ .MuiBadge-badge {
3
+ height: 20px;
4
+ padding: ${({theme:e})=>e.spacing(0,1)};
5
+
6
+ font-size: ${({theme:e})=>e.typography.caption.fontSize};
7
+ line-height: 20px;
8
+ color: ${({$customColor:e,theme:t,$variantColor:r})=>(({$customColor:e,theme:t,$variantColor:r})=>{let a={grey:t.palette.grey[900],primary:t.palette.primary[900],error:t.palette.red[900],success:t.palette.green[900],warning:t.palette.yellow[900],default:t.palette.primary.contrastText};return"white"===e?t.palette.grey[900]:"contained"===r?t.palette.common.white:a[e||"default"]})({$customColor:e,theme:t,$variantColor:r})};
9
+
10
+ background-color: ${({$customColor:e,theme:t,$variantColor:r})=>(({$customColor:e,theme:t,$variantColor:r})=>{let a={contained:{grey:t.palette.grey[800],primary:t.palette.primary[800],error:t.palette.red[800],success:t.palette.green[800],warning:t.palette.yellow[800],default:t.palette.primary.main},light:{grey:t.palette.grey[300],primary:t.palette.primary[100],error:t.palette.red[100],success:t.palette.green[100],warning:t.palette.yellow[100],default:t.palette.primary.main}};return"white"===e?t.palette.background.default:a[r][e]})({$customColor:e,theme:t,$variantColor:r})};
11
+ border: ${({$withBorder:e,theme:t})=>e?`2px solid ${t.palette.common.white}`:"none"};
12
+ border-radius: ${({$withBorder:e})=>e?"12px":null};
13
+ }
14
+
15
+ .MuiBadge-dot {
16
+ width: 12px;
17
+ height: 12px;
18
+
19
+ border: 2px solid ${({theme:e})=>e.palette.common.white};
20
+ }
21
+ `;export{r as StyledBadge};
File without changes
@@ -0,0 +1 @@
1
+ import{jsx as r,jsxs as o}from"react/jsx-runtime";import{X as t}from"lucide-react";import{IconButton as e}from"../IconButton/index.js";import{DEFAULT_HEADER_HEIGHT as n}from"./constants.js";import{Body as i,Header as a,HeaderTitle as c,StyledDrawer as m}from"./styles.js";let l=({title:l,drawerHeaderHeight:s=n,children:d,onClose:h,...p})=>o(m,{...p,anchor:"bottom",onClose:h,children:[o(a,{drawerHeaderHeight:s,children:[r(c,{variant:"h5",noWrap:!0,children:l}),r(e,{variant:"text",onClick:r=>{h&&h(r,"escapeKeyDown")},children:r(t,{})})]}),r(i,{children:d})]});export{l as BottomDrawer};
@@ -0,0 +1,7 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as r}from"react";import{styled as o}from"../../theme/index.js";import{Button as n}from"../Button/index.js";import{Container as i}from"../Container/index.js";import{BottomDrawer as l}from"./BottomDrawer.js";let m=o("div")`
2
+ height: 150px;
3
+
4
+ background-color: ${({theme:e})=>e.palette.grey[200]};
5
+ `,a=o("div")`
6
+ margin: ${({theme:e})=>e.spacing(4,4,4)};
7
+ `,p=t=>{let r=[];for(let o=0;o<t;o++)r.push(e(a,{children:e(m,{})}));return r},c={title:"Components/BottomDrawer",component:l},s={args:{title:"Заголовок",open:!0},parameters:{docs:{disable:!0}}},d=()=>{let[o,m]=r(!1),a=e=>()=>{m(e)};return t(i,{gap:4,children:[e(n,{onClick:a(!0),children:"Открыть"}),e(l,{open:o,onClose:a(!1),title:"Заголовок",children:p(1)})]})},h=()=>{let[o,m]=r(!1),a=e=>()=>{m(e)};return t(i,{gap:4,children:[e(n,{onClick:a(!0),children:"Открыть"}),e(l,{open:o,onClose:a(!1),title:"Наполнение с переполнением",children:p(10)})]})};export{d as Example,s as Interaction,h as WithContentOverflow,c as default};
@@ -0,0 +1 @@
1
+ let E="16px",T=56;export{T as DEFAULT_HEADER_HEIGHT,E as OFFSET_TOP_SCREEN};
@@ -0,0 +1 @@
1
+ export*from"./BottomDrawer.js";
@@ -0,0 +1,26 @@
1
+ import{Drawer as e,Typography as t,paperClasses as r}from"@mui/material";import{styled as i}from"../../theme/index.js";import{OFFSET_TOP_SCREEN as a}from"./constants.js";let o=i(e)`
2
+ ${`.${r.root}`} {
3
+ max-height: calc(100vh - ${a});
4
+
5
+ @supports (height: 100dvh) {
6
+ max-height: calc(100dvh - ${a});
7
+ }
8
+
9
+ border-top-left-radius: ${({theme:e})=>e.shape.large};
10
+ border-top-right-radius: ${({theme:e})=>e.shape.large};
11
+ }
12
+ `,d=i("header")`
13
+ display: flex;
14
+ flex-shrink: 0;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+
18
+ height: ${({drawerHeaderHeight:e})=>`${e}px`};
19
+ padding: ${({theme:e})=>e.spacing(1,2,1,4)};
20
+
21
+ border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
22
+ `,h=i(t)`
23
+ margin-right: ${({theme:e})=>e.spacing(2)};
24
+ `,p=i("div")`
25
+ overflow-y: auto;
26
+ `;export{p as Body,d as Header,h as HeaderTitle,o as StyledDrawer};
@@ -0,0 +1 @@
1
+ import{Breadcrumbs as r}from"@mui/material";export{r as Breadcrumbs};
@@ -0,0 +1 @@
1
+ import{jsx as r,jsxs as o}from"react/jsx-runtime";import{clsx as t}from"clsx";import{LOADING_BUTTON_CLASSNAME as m}from"./constants.js";import{ButtonColors as s,ButtonVariants as e}from"./enums.js";import{StyledButton as i,StyledCircularProgress as l}from"./styles.js";import{useLogic as n}from"./useLogic/index.js";let a=a=>{let{variant:c=e.Contained,color:p=s.Primary,loading:f,loadingIndicator:d,loadingPosition:j,disabled:u,children:x,className:y,...b}=a,{loadingIndicatorColor:g}=n({variant:c});return o(i,{variant:c,color:p,disabled:f||u,...b,className:t(y,{[m]:f}),children:[f&&r(l,{color:g,size:"small"}),x]})};export{a as Button};
@@ -0,0 +1 @@
1
+ import{Fragment as r,jsx as i,jsxs as e}from"react/jsx-runtime";import{Paper as n}from"@mui/material";import{ChevronDown as t,MessageCircle as l,ThumbsUp as d}from"lucide-react";import{useEffect as c,useState as a}from"react";import{Badge as o}from"../Badge/index.js";import{Container as h}from"../Container/index.js";import{DialogActions as s}from"../DialogActions/index.js";import{DialogContent as m}from"../DialogContent/index.js";import{DialogTitle as g}from"../DialogTitle/index.js";import{Button as p}from"./Button.js";let v={title:"Components/Button",component:p},u={render:r=>i(p,{...r,children:"Click me"}),args:{},parameters:{docs:{disable:!0}}},x=()=>{let[r,t]=a(!1);return c(()=>{let r=setTimeout(()=>{t(!1)},1500);return()=>clearTimeout(r)},[r]),e(n,{style:{width:500},children:[i(g,{children:"Изменения не сохранятся"}),i(m,{children:"На странице есть несохраненные изменения, которые будут утеряны, если их не сохранить."}),e(s,{children:[i(p,{variant:"text",children:"Отмена"}),i(p,{loading:r,onClick:()=>t(!0),children:"Продолжить"})]})]})},f=()=>e(h,{children:[i(p,{children:"Contained"}),i(p,{variant:"light",children:"Light"}),i(p,{variant:"link",children:"Link"}),i(p,{variant:"text",children:"Text"})]}),L=()=>e(h,{children:[i(p,{disabled:!0,children:"Contained"}),i(p,{disabled:!0,variant:"light",children:"Light"}),i(p,{disabled:!0,variant:"link",children:"Link"}),i(p,{disabled:!0,variant:"text",component:E,children:"Text"})]}),k=()=>e(h,{children:[i(p,{loading:!0,children:"Contained"}),i(p,{loading:!0,variant:"light",children:"Light"}),i(p,{loading:!0,variant:"link",children:"Link"}),i(p,{loading:!0,variant:"text",children:"Text"})]}),C=()=>e(h,{children:[i(p,{selected:!0,children:"Contained"}),i(p,{selected:!0,variant:"light",children:"Light"}),i(p,{selected:!0,variant:"link",children:"Link"}),i(p,{selected:!0,variant:"text",children:"Text"})]}),I=()=>e(h,{children:[i(p,{startIcon:i(d,{}),children:"Start Icon"}),i(p,{endIcon:i(l,{}),children:"End Icon"}),i(p,{startIcon:i(l,{}),endIcon:i(t,{}),children:"Start & End"}),i(p,{variant:"light",endIcon:i(o,{badgeContent:12,color:"error",style:{marginLeft:2,marginRight:15},children:i("span",{style:{width:10}})}),children:"Badge"})]}),b=()=>e(h,{children:[i(p,{size:"medium",children:"Medium"}),i(p,{size:"large",children:"Large"})]}),j=()=>e(h,{gap:3,children:[e(h,{children:[i(p,{children:"Primary"}),i(p,{color:"error",children:"Error"}),i(p,{color:"success",children:"Success"}),i(p,{color:"warning",children:"Warning"}),i(p,{color:"error",children:"Error"})]}),e(h,{children:[i(p,{variant:"light",children:"Primary"}),i(p,{variant:"light",color:"error",children:"Error"}),i(p,{variant:"light",color:"success",children:"Success"}),i(p,{variant:"light",color:"warning",children:"Warning"}),i(p,{variant:"light",color:"error",children:"Error"})]})]}),E=({children:r,className:e,href:n})=>i("a",{href:n,className:e,children:r}),T=()=>e(r,{children:[i(p,{href:"#",children:"Обычная ссылка"}),i(p,{href:"/",component:E,children:"Ссылка роутера"})]});export{T as AsLink,j as Colors,L as Disabled,x as Example,I as Icons,u as Interaction,k as Loading,C as Selected,b as Sizes,f as Variants,v as default};
@@ -0,0 +1 @@
1
+ let t="button-loading";export{t as LOADING_BUTTON_CLASSNAME};
@@ -0,0 +1 @@
1
+ var t,e,a,n,s=((t={}).Error="error",t.Success="success",t.Warning="warning",t.Primary="primary",t),r=((e={}).Contained="contained",e.Light="light",e.Text="text",e.Link="link",e),o=((a={}).Small="small",a.Medium="medium",a.Large="large",a),u=((n={}).Default="default",n.Active="active",n.Focus="focus",n.Hover="hover",n);export{s as ButtonColors,o as ButtonSizes,u as ButtonStates,r as ButtonVariants};
@@ -0,0 +1 @@
1
+ export*from"./Button.js";export*from"./constants.js";export*from"./enums.js";export*from"./types.js";
@@ -0,0 +1,10 @@
1
+ import{Button as o}from"@mui/material";import{styled as i}from"../../theme/index.js";import{CircularProgress as r}from"../CircularProgress/index.js";import{ButtonVariants as t}from"./enums.js";let e=i(o)`
2
+ min-width: ${({variant:o})=>o===t.Link?"auto":""};
3
+ padding: ${({variant:o})=>o===t.Link?0:""};
4
+
5
+ :active {
6
+ box-shadow: none;
7
+ }
8
+ `,m=i(r)`
9
+ position: absolute;
10
+ `;export{e as StyledButton,m as StyledCircularProgress};
File without changes
@@ -0,0 +1 @@
1
+ export*from"./useLogic.js";
@@ -0,0 +1 @@
1
+ import{useMemo as o}from"react";import{CircularProgressColors as r}from"../../CircularProgress/constants.js";import{ButtonVariants as t}from"../enums.js";let i=({variant:i})=>({loadingIndicatorColor:o(()=>i!==t.Contained?r.PRIMARY:r.INVERTED,[i])});export{i as useLogic};
@@ -0,0 +1 @@
1
+ import{ButtonBase as t}from"@mui/material";export{t as ButtonBase};
@@ -0,0 +1 @@
1
+ export*from"./ButtonBase.js";
@@ -0,0 +1 @@
1
+ import{jsx as r,jsxs as t}from"react/jsx-runtime";import"react";import{Button as o}from"../Button/index.js";import{ButtonGroup as e}from"./index.js";let i={title:"Components/ButtonGroup",component:e,parameters:{layout:"centered"},tags:["autodocs"]},a=()=>t(e,{children:[r(o,{variant:"light",color:"primary",children:"1"}),r(o,{variant:"text",color:"primary",children:"2"}),r(o,{variant:"contained",color:"primary",children:"3"})]});export{a as Example,i as default};
@@ -0,0 +1 @@
1
+ import{ButtonGroup as t,buttonClasses as o}from"@mui/material";export{t as ButtonGroup,o as buttonClasses};
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{DayPicker as o}from"react-day-picker";import{ru as a}from"react-day-picker/locale";import{Typography as e}from"../Typography/index.js";import{DayButton as r}from"./DayButton/index.js";import{Dropdown as s}from"./Dropdown/index.js";import{Dropdowns as n,MonthButton as m,StyledMonthCaption as i,StyledMonths as p,StyledNav as c}from"./styles.js";let l=({className:l,classNames:d,showOutsideDays:N=!0,...u})=>t(o,{locale:a,showOutsideDays:N,components:{DayButton:r,Dropdown:s,DropdownNav:({className:o,...a})=>t(n,{className:o,...a}),MonthCaption:({className:o,...a})=>t(i,{className:o,...a}),Months:({className:o,...a})=>t(p,{className:o,...a}),PreviousMonthButton:({className:o,color:a,...e})=>t(m,{className:o,variant:"text",...e}),NextMonthButton:({className:o,color:a,...e})=>t(m,{className:o,variant:"text",...e}),Nav:o=>t(c,{...o}),CaptionLabel:({className:o,color:a,...r})=>t(e,{component:"span",variant:"subtitle1",className:o,...r})},...u});export{l as Calendar};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{useState as t}from"react";import{Calendar as n}from"./Calendar.js";let o={title:"Components/Calendar",component:n,parameters:{layout:"centered"},tags:["autodocs"]},a=()=>{let[o,a]=t(new Date);return e(n,{mode:"single",selected:o,onSelect:a})},r=()=>{let o=new Date,[a,r]=t([o,new Date(o.setDate(o.getDate()+1))]);return e(n,{mode:"multiple",selected:a,onSelect:r})},l=()=>{let o=new Date,[a,r]=t({from:o,to:new Date(o.setDate(o.getDate()+1))});return e(n,{mode:"range",selected:a,onSelect:r})},s=()=>{let[o,a]=t(new Date);return e(n,{mode:"single",captionLayout:"dropdown-months",selected:o,onSelect:a})},d=()=>{let[o,a]=t(new Date);return e(n,{mode:"single",captionLayout:"dropdown-years",selected:o,onSelect:a})};export{a as Default,s as MonthSelect,r as Multiple,l as Range,d as YearSelect,o as default};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{useEffect as t,useRef as r}from"react";import{StyledButton as o}from"./styles.js";let s=s=>{let{modifiers:c,color:d,...i}=s,u=r(null);return t(()=>{c.focused&&u.current?.focus()},[c.focused]),e(o,{ref:u,$isOutside:c.outside,$isToday:c.today,selected:c.selected,variant:c.selected?"contained":"text",...i})};export{s as DayButton};
@@ -0,0 +1 @@
1
+ export*from"./DayButton.js";
@@ -0,0 +1,16 @@
1
+ import{Button as o}from"../../index.js";import{styled as t}from"../../../theme/index.js";let e=t(o,{shouldForwardProp:o=>"$isOutside"!==o&&"$isToday"!==o})`
2
+ width: 32px;
3
+ height: 32px;
4
+ color: ${({theme:o,$isOutside:t,selected:e})=>t&&!e&&o.palette.grey[400]};
5
+ &::after {
6
+ content: '';
7
+ position: absolute;
8
+ bottom: 4px;
9
+ left: 8px;
10
+ display: ${({$isToday:o})=>o?"block":"none"};
11
+ width: calc(100% - 16px);
12
+ height: 2px;
13
+ color: currentColor;
14
+ background-color: currentColor;
15
+ }
16
+ `;export{e as StyledButton};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{DropdownButton as i,MenuItem as t,Typography as n}from"../../index.js";function r(r){let{options:a,onChange:l,...o}=r,d=a?.find(({value:e})=>e===o.value);return e(i,{variant:"link",name:d?.label||"Не выбрано",children:a?.map(({value:i,label:r,disabled:a})=>e(t,{value:i,disabled:a,onClick:()=>l?.({target:{value:i}}),children:e(n,{variant:"subtitle1",align:"center",style:{textTransform:"capitalize",minWidth:70},children:r})},i))})}export{r as Dropdown};
@@ -0,0 +1 @@
1
+ export*from"./Dropdown.js";
@@ -0,0 +1 @@
1
+ export*from"./Calendar.js";
@@ -0,0 +1,37 @@
1
+ import{DropdownNav as t,MonthCaption as e,Months as i,Nav as o}from"react-day-picker";import{styled as n}from"../../theme/index.js";import{Button as p}from"../Button/index.js";let a=n(o)`
2
+ position: absolute;
3
+ display: flex;
4
+ justify-content: space-between;
5
+ top: 0;
6
+ left: 0;
7
+ width: 100%;
8
+ `,s=n(p)`
9
+ width: 32px;
10
+ height: 32px;
11
+ padding: ${({theme:t})=>t.spacing(2)};
12
+ `,l=n(i)`
13
+ position: relative;
14
+ padding-top: 32px;
15
+ `,r=n(e)`
16
+ position: absolute;
17
+ height: 32px;
18
+ top: 0;
19
+ left: 50%;
20
+ transform: translateX(-50%);
21
+ display: flex;
22
+ justify-content: center;
23
+ align-items: center;
24
+ span {
25
+ text-transform: capitalize;
26
+ font-size: ${({theme:t})=>t.typography.subtitle1.fontSize};
27
+ }
28
+ `,f=n(t)`
29
+ display: flex;
30
+ column-gap: ${({theme:t})=>t.spacing(4)};
31
+ align-items: center;
32
+ font-size: ${({theme:t})=>t.typography.subtitle1.fontSize};
33
+ button {
34
+ text-transform: capitalize;
35
+ font-size: ${({theme:t})=>t.typography.subtitle1.fontSize};
36
+ }
37
+ `;export{f as Dropdowns,s as MonthButton,r as StyledMonthCaption,l as StyledMonths,a as StyledNav};
@@ -0,0 +1 @@
1
+ import{Card as r,cardClasses as a}from"@mui/material";export{r as Card,a as cardClasses};
@@ -0,0 +1 @@
1
+ import{CardActions as r,cardActionsClasses as a}from"@mui/material";export{r as CardActions,a as cardActionsClasses};
@@ -0,0 +1 @@
1
+ import{CardContent as t,cardContentClasses as r}from"@mui/material";export{t as CardContent,r as cardContentClasses};
@@ -0,0 +1 @@
1
+ import{CardHeader as r,cardHeaderClasses as a}from"@mui/material";export{r as CardHeader,a as cardHeaderClasses};
@@ -0,0 +1 @@
1
+ import{Fragment as r,jsx as e,jsxs as o}from"react/jsx-runtime";import{CarouselContext as t}from"./CarouselContext.js";import{Content as i}from"./Content/index.js";import{Dots as n}from"./Dots/index.js";import{Item as m}from"./Item/index.js";import{Next as s}from"./Next/index.js";import{Previous as a}from"./Previous/index.js";import{Wrapper as l}from"./styles.js";import{useLogic as d}from"./useLogic/index.js";function p({width:p="100%",height:c="100%",...x}){let{canScrollNext:f,canScrollPrev:u,scrollNext:j,scrollPrev:h,api:y,opts:C,orientation:v,carouselRef:I,handleKeyDown:N,data:D,isShowButtons:P,isShowDots:g}=d(x);return e(t.Provider,{value:{carouselRef:I,api:y,opts:C,orientation:v||(C?.axis==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:j,canScrollPrev:u,canScrollNext:f},children:o(l,{onKeyDownCapture:N,className:x.className,"data-slot":"carousel",...x,children:[e(i,{style:{width:p,height:c},children:D.map(r=>e(m,{children:x.renderItem(r)},`${r[x.keyId]}`))}),P&&o(r,{children:[e(a,{}),e(s,{})]}),g&&e(n,{api:y,orientation:v})]})})}export{p as Carousel};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{CardContent as t}from"@mui/material";import{Card as i}from"../Card/index.js";import{Carousel as r}from"./Carousel.js";let n={title:"Components/Carousel",component:r,parameters:{layout:"centered"},tags:["autodocs"]};function d(){return e(r,{keyId:"id",data:[{id:1,title:"One"},{id:2,title:"Two"},{id:3,title:"Three"},{id:4,title:"Four"}],width:500,showDots:!0,renderItem:r=>e("div",{style:{padding:4},children:e(i,{children:e(t,{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:6,height:300},children:e("span",{style:{fontWeight:500,fontSize:"1.5rem"},children:r.title})})})})})}function l(){return e(r,{keyId:"id",data:[{id:1,title:"One"},{id:2,title:"Two"},{id:3,title:"Three"},{id:4,title:"Four"}],width:500,height:300,showDots:!0,orientation:"vertical",renderItem:r=>e("div",{style:{padding:4},children:e(i,{children:e(t,{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:6,height:260},children:e("span",{style:{fontWeight:500,fontSize:"1.5rem"},children:r.title})})})})})}export{d as Demo,l as Vertical,n as default};