@astral/ui 4.55.4 → 4.57.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 (278) hide show
  1. package/components/BottomDrawer/styles.js +1 -1
  2. package/components/CardGridInfinite/Footer/styles.js +1 -1
  3. package/components/CheckableTag/styles.js +1 -1
  4. package/components/Checkbox/styles.js +4 -2
  5. package/components/Chip/styles.js +1 -1
  6. package/components/CodeField/styles.js +1 -1
  7. package/components/ComplianceStatus/styles.js +1 -1
  8. package/components/ContentState/ContentState.d.ts +1 -1
  9. package/components/ContentState/ContentState.js +2 -2
  10. package/components/ContentState/types.d.ts +4 -0
  11. package/components/DashboardLayout/DashboardWrapper/styles.js +1 -1
  12. package/components/DashboardLayout/Header/styles.js +4 -4
  13. package/components/DashboardLayoutSkeleton/styles.js +1 -1
  14. package/components/DashboardSidebar/styles.js +2 -2
  15. package/components/DashboardSidebarSkeleton/styles.js +1 -1
  16. package/components/DataGrid/Body/Body.d.ts +1 -1
  17. package/components/DataGrid/Body/Body.js +14 -7
  18. package/components/DataGrid/Body/constants.d.ts +4 -0
  19. package/components/DataGrid/Body/constants.js +5 -0
  20. package/components/DataGrid/Body/styles.d.ts +0 -3
  21. package/components/DataGrid/Body/styles.js +14 -1
  22. package/components/DataGrid/Body/useLogic/index.d.ts +1 -0
  23. package/components/DataGrid/Body/useLogic/index.js +1 -0
  24. package/components/DataGrid/Body/useLogic/useLogic.d.ts +9 -0
  25. package/components/DataGrid/Body/useLogic/useLogic.js +15 -0
  26. package/components/DataGrid/Cell/Cell.js +20 -4
  27. package/components/DataGrid/Cell/constants.d.ts +7 -0
  28. package/components/DataGrid/Cell/constants.js +8 -0
  29. package/components/DataGrid/Cell/styles.d.ts +14 -0
  30. package/components/DataGrid/Cell/styles.js +47 -0
  31. package/components/DataGrid/Cell/useLogic/useLogic.d.ts +2 -0
  32. package/components/DataGrid/Cell/useLogic/useLogic.js +3 -2
  33. package/components/DataGrid/DataGrid.js +42 -8
  34. package/components/DataGrid/Head/Head.js +1 -1
  35. package/components/DataGrid/Head/styles.js +5 -1
  36. package/components/DataGrid/Loader/styles.js +4 -0
  37. package/components/DataGrid/MobileSkeleton/MobileSkeleton.d.ts +6 -0
  38. package/components/DataGrid/MobileSkeleton/MobileSkeleton.js +10 -0
  39. package/components/DataGrid/MobileSkeleton/index.d.ts +1 -0
  40. package/components/DataGrid/MobileSkeleton/index.js +1 -0
  41. package/components/DataGrid/MobileSkeleton/styles.d.ts +17 -0
  42. package/components/DataGrid/MobileSkeleton/styles.js +37 -0
  43. package/components/DataGrid/PinnedSections/Section/styles.js +2 -2
  44. package/components/DataGrid/Row/NestedChildren/styles.js +8 -3
  45. package/components/DataGrid/Row/Row.js +25 -8
  46. package/components/DataGrid/Row/constants.d.ts +8 -0
  47. package/components/DataGrid/Row/constants.js +8 -0
  48. package/components/DataGrid/Row/styles.d.ts +4 -9
  49. package/components/DataGrid/Row/styles.js +69 -17
  50. package/components/DataGrid/Row/types.d.ts +5 -1
  51. package/components/DataGrid/Row/useLogic/hooks/index.d.ts +1 -0
  52. package/components/DataGrid/Row/useLogic/hooks/index.js +1 -0
  53. package/components/DataGrid/Row/useLogic/hooks/useMobileLogic.d.ts +5 -0
  54. package/components/DataGrid/Row/useLogic/hooks/useMobileLogic.js +15 -0
  55. package/components/DataGrid/Row/useLogic/useLogic.d.ts +868 -3
  56. package/components/DataGrid/Row/useLogic/useLogic.js +28 -13
  57. package/components/DataGrid/constants.d.ts +4 -0
  58. package/components/DataGrid/constants.js +4 -0
  59. package/components/DataGrid/index.d.ts +1 -0
  60. package/components/DataGrid/index.js +1 -0
  61. package/components/DataGrid/styles.d.ts +0 -9
  62. package/components/DataGrid/styles.js +43 -12
  63. package/components/DataGrid/types.d.ts +7 -0
  64. package/components/DataGrid/useLogic/hooks/index.d.ts +1 -1
  65. package/components/DataGrid/useLogic/hooks/index.js +1 -1
  66. package/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/index.d.ts +1 -0
  67. package/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/index.js +1 -0
  68. package/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/useDataGridMobileLogic.d.ts +16 -0
  69. package/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/useDataGridMobileLogic.js +32 -0
  70. package/components/DataGrid/useLogic/hooks/usePinnedColumns/usePinnedColumns.js +11 -3
  71. package/components/DataGrid/useLogic/useLogic.d.ts +10 -4
  72. package/components/DataGrid/useLogic/useLogic.js +17 -12
  73. package/components/DataGrid/useLogic/utils/getIsAllowHorizontalScroll/getIsAllowHorizontalScroll.js +1 -1
  74. package/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.d.ts +2 -0
  75. package/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.js +5 -0
  76. package/components/DataGrid/utils/getDataGridCssVars/index.d.ts +1 -0
  77. package/components/DataGrid/utils/getDataGridCssVars/index.js +1 -0
  78. package/components/DataGrid/utils/index.d.ts +1 -0
  79. package/components/DataGrid/utils/index.js +1 -0
  80. package/components/DataGridActionCell/DataGridSecondaryActions/DataGridSecondaryActions.js +1 -1
  81. package/components/DataGridInfinite/DataGridInfinite.js +5 -4
  82. package/components/DataGridInfinite/useLogic/useLogic.d.ts +7 -1
  83. package/components/DataGridInfinite/useLogic/useLogic.js +12 -2
  84. package/components/DateRangePicker/styles.js +1 -1
  85. package/components/Description/Name/styles.js +1 -1
  86. package/components/DescriptionCell/styles.js +12 -3
  87. package/components/DescriptionList/styles.js +4 -2
  88. package/components/ExpansionPanel/styles.js +1 -1
  89. package/components/InfiniteDataList/styles.js +1 -1
  90. package/components/InfiniteTreeList/TreeItem/styles.js +1 -1
  91. package/components/MenuOrganization/styles.js +2 -2
  92. package/components/NewStepper/Step/Description/styles.js +1 -1
  93. package/components/NewStepper/Step/styles.js +2 -2
  94. package/components/NewStepper/index.d.ts +1 -0
  95. package/components/NewStepper/index.js +1 -0
  96. package/components/NewStepper/public.d.ts +1 -0
  97. package/components/NewStepper/public.js +1 -0
  98. package/components/PageAside/styles.js +3 -3
  99. package/components/PageContent/PageContentHeader/styles.js +2 -2
  100. package/components/PageContent/styles.js +4 -2
  101. package/components/PageHeader/HeaderContent/styles.js +1 -1
  102. package/components/PageHeader/styles.js +2 -2
  103. package/components/PageLayoutLoader/styles.js +1 -1
  104. package/components/PageLayoutSection/PageLayoutSection.d.ts +4 -0
  105. package/components/PageLayoutSection/PageLayoutSection.js +13 -4
  106. package/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +1 -1
  107. package/components/PageLayoutSection/constants.d.ts +5 -0
  108. package/components/PageLayoutSection/constants.js +6 -0
  109. package/components/PageLayoutSection/styles.d.ts +1 -1
  110. package/components/PageLayoutSection/styles.js +7 -2
  111. package/components/PagePinnableAside/styles.js +6 -6
  112. package/components/PdfViewer/PdfPage/styles.js +2 -2
  113. package/components/Radio/styles.js +4 -2
  114. package/components/RadioCard/styles.js +13 -5
  115. package/components/SideDialogActions/styles.js +1 -1
  116. package/components/SideDialogHeader/styles.js +1 -1
  117. package/components/SideDialogTitle/styles.js +1 -1
  118. package/components/Stepper/styles.js +2 -2
  119. package/components/Tag/styles.js +1 -1
  120. package/components/Tree/TreeItem/styles.js +3 -3
  121. package/components/fileUploading/FileUploaderDropzone/DropzoneWrapper/styles.js +1 -1
  122. package/components/fileUploading/FileUploaderFile/styles.js +1 -1
  123. package/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.d.ts +5 -1
  124. package/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +5 -4
  125. package/components/theme/components/MuiButton.js +1 -1
  126. package/components/theme/components/MuiDivider.d.ts +3 -0
  127. package/components/theme/components/MuiDivider.js +9 -0
  128. package/components/theme/components/MuiListItem.d.ts +3 -0
  129. package/components/theme/components/MuiListItem.js +9 -0
  130. package/components/theme/components/MuiOutlinedInput.js +2 -2
  131. package/components/theme/components/MuiPaper.js +1 -1
  132. package/components/theme/components/MuiStepConnector.js +4 -1
  133. package/components/theme/components/components.js +4 -0
  134. package/components/theme/palette/componentsColors/componentsColors.d.ts +3 -0
  135. package/components/theme/palette/componentsColors/componentsColors.js +3 -0
  136. package/node/components/BottomDrawer/styles.js +1 -1
  137. package/node/components/CardGridInfinite/Footer/styles.js +1 -1
  138. package/node/components/CheckableTag/styles.js +1 -1
  139. package/node/components/Checkbox/styles.js +4 -2
  140. package/node/components/Chip/styles.js +1 -1
  141. package/node/components/CodeField/styles.js +1 -1
  142. package/node/components/ComplianceStatus/styles.js +1 -1
  143. package/node/components/ContentState/ContentState.d.ts +1 -1
  144. package/node/components/ContentState/ContentState.js +2 -2
  145. package/node/components/ContentState/types.d.ts +4 -0
  146. package/node/components/DashboardLayout/DashboardWrapper/styles.js +1 -1
  147. package/node/components/DashboardLayout/Header/styles.js +4 -4
  148. package/node/components/DashboardLayoutSkeleton/styles.js +1 -1
  149. package/node/components/DashboardSidebar/styles.js +2 -2
  150. package/node/components/DashboardSidebarSkeleton/styles.js +1 -1
  151. package/node/components/DataGrid/Body/Body.d.ts +1 -1
  152. package/node/components/DataGrid/Body/Body.js +14 -7
  153. package/node/components/DataGrid/Body/constants.d.ts +4 -0
  154. package/node/components/DataGrid/Body/constants.js +8 -0
  155. package/node/components/DataGrid/Body/styles.d.ts +0 -3
  156. package/node/components/DataGrid/Body/styles.js +14 -1
  157. package/node/components/DataGrid/Body/useLogic/index.d.ts +1 -0
  158. package/node/components/DataGrid/{useLogic/hooks/useClassnames → Body/useLogic}/index.js +1 -1
  159. package/node/components/DataGrid/Body/useLogic/useLogic.d.ts +9 -0
  160. package/node/components/DataGrid/Body/useLogic/useLogic.js +19 -0
  161. package/node/components/DataGrid/Cell/Cell.js +18 -2
  162. package/node/components/DataGrid/Cell/constants.d.ts +7 -0
  163. package/node/components/DataGrid/Cell/constants.js +11 -0
  164. package/node/components/DataGrid/Cell/styles.d.ts +14 -0
  165. package/node/components/DataGrid/Cell/styles.js +48 -1
  166. package/node/components/DataGrid/Cell/useLogic/useLogic.d.ts +2 -0
  167. package/node/components/DataGrid/Cell/useLogic/useLogic.js +3 -2
  168. package/node/components/DataGrid/DataGrid.js +41 -7
  169. package/node/components/DataGrid/Head/Head.js +1 -1
  170. package/node/components/DataGrid/Head/styles.js +5 -1
  171. package/node/components/DataGrid/Loader/styles.js +4 -0
  172. package/node/components/DataGrid/MobileSkeleton/MobileSkeleton.d.ts +6 -0
  173. package/node/components/DataGrid/MobileSkeleton/MobileSkeleton.js +14 -0
  174. package/node/components/DataGrid/MobileSkeleton/index.d.ts +1 -0
  175. package/node/components/DataGrid/MobileSkeleton/index.js +17 -0
  176. package/node/components/DataGrid/MobileSkeleton/styles.d.ts +17 -0
  177. package/node/components/DataGrid/MobileSkeleton/styles.js +40 -0
  178. package/node/components/DataGrid/PinnedSections/Section/styles.js +2 -2
  179. package/node/components/DataGrid/Row/NestedChildren/styles.js +8 -3
  180. package/node/components/DataGrid/Row/Row.js +23 -6
  181. package/node/components/DataGrid/Row/constants.d.ts +8 -0
  182. package/node/components/DataGrid/Row/constants.js +9 -1
  183. package/node/components/DataGrid/Row/styles.d.ts +4 -9
  184. package/node/components/DataGrid/Row/styles.js +69 -17
  185. package/node/components/DataGrid/Row/types.d.ts +5 -1
  186. package/node/components/DataGrid/Row/useLogic/hooks/index.d.ts +1 -0
  187. package/node/components/DataGrid/Row/useLogic/hooks/index.js +17 -0
  188. package/node/components/DataGrid/Row/useLogic/hooks/useMobileLogic.d.ts +5 -0
  189. package/node/components/DataGrid/Row/useLogic/hooks/useMobileLogic.js +19 -0
  190. package/node/components/DataGrid/Row/useLogic/useLogic.d.ts +868 -3
  191. package/node/components/DataGrid/Row/useLogic/useLogic.js +28 -13
  192. package/node/components/DataGrid/constants.d.ts +4 -0
  193. package/node/components/DataGrid/constants.js +5 -1
  194. package/node/components/DataGrid/index.d.ts +1 -0
  195. package/node/components/DataGrid/index.js +3 -1
  196. package/node/components/DataGrid/styles.d.ts +0 -9
  197. package/node/components/DataGrid/styles.js +43 -12
  198. package/node/components/DataGrid/types.d.ts +7 -0
  199. package/node/components/DataGrid/useLogic/hooks/index.d.ts +1 -1
  200. package/node/components/DataGrid/useLogic/hooks/index.js +1 -1
  201. package/node/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/index.d.ts +1 -0
  202. package/node/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/index.js +17 -0
  203. package/node/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/useDataGridMobileLogic.d.ts +16 -0
  204. package/node/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/useDataGridMobileLogic.js +36 -0
  205. package/node/components/DataGrid/useLogic/hooks/usePinnedColumns/usePinnedColumns.js +11 -3
  206. package/node/components/DataGrid/useLogic/useLogic.d.ts +10 -4
  207. package/node/components/DataGrid/useLogic/useLogic.js +19 -14
  208. package/node/components/DataGrid/useLogic/utils/getIsAllowHorizontalScroll/getIsAllowHorizontalScroll.js +1 -1
  209. package/node/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.d.ts +2 -0
  210. package/node/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.js +9 -0
  211. package/node/components/DataGrid/utils/getDataGridCssVars/index.d.ts +1 -0
  212. package/node/components/DataGrid/utils/getDataGridCssVars/index.js +5 -0
  213. package/node/components/DataGrid/utils/index.d.ts +1 -0
  214. package/node/components/DataGrid/utils/index.js +3 -1
  215. package/node/components/DataGridActionCell/DataGridSecondaryActions/DataGridSecondaryActions.js +1 -1
  216. package/node/components/DataGridInfinite/DataGridInfinite.js +5 -4
  217. package/node/components/DataGridInfinite/useLogic/useLogic.d.ts +7 -1
  218. package/node/components/DataGridInfinite/useLogic/useLogic.js +11 -1
  219. package/node/components/DateRangePicker/styles.js +1 -1
  220. package/node/components/Description/Name/styles.js +1 -1
  221. package/node/components/DescriptionCell/styles.js +15 -6
  222. package/node/components/DescriptionList/styles.js +4 -2
  223. package/node/components/ExpansionPanel/styles.js +1 -1
  224. package/node/components/InfiniteDataList/styles.js +1 -1
  225. package/node/components/InfiniteTreeList/TreeItem/styles.js +1 -1
  226. package/node/components/MenuOrganization/styles.js +2 -2
  227. package/node/components/NewStepper/Step/Description/styles.js +1 -1
  228. package/node/components/NewStepper/Step/styles.js +2 -2
  229. package/node/components/NewStepper/index.d.ts +1 -0
  230. package/node/components/NewStepper/index.js +3 -1
  231. package/node/components/NewStepper/public.d.ts +1 -0
  232. package/node/components/NewStepper/public.js +3 -1
  233. package/node/components/PageAside/styles.js +3 -3
  234. package/node/components/PageContent/PageContentHeader/styles.js +2 -2
  235. package/node/components/PageContent/styles.js +4 -2
  236. package/node/components/PageHeader/HeaderContent/styles.js +1 -1
  237. package/node/components/PageHeader/styles.js +2 -2
  238. package/node/components/PageLayoutLoader/styles.js +1 -1
  239. package/node/components/PageLayoutSection/PageLayoutSection.d.ts +4 -0
  240. package/node/components/PageLayoutSection/PageLayoutSection.js +12 -3
  241. package/node/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +1 -1
  242. package/node/components/PageLayoutSection/constants.d.ts +5 -0
  243. package/node/components/PageLayoutSection/constants.js +9 -0
  244. package/node/components/PageLayoutSection/styles.d.ts +1 -1
  245. package/node/components/PageLayoutSection/styles.js +8 -3
  246. package/node/components/PagePinnableAside/styles.js +6 -6
  247. package/node/components/PdfViewer/PdfPage/styles.js +2 -2
  248. package/node/components/Radio/styles.js +4 -2
  249. package/node/components/RadioCard/styles.js +13 -5
  250. package/node/components/SideDialogActions/styles.js +1 -1
  251. package/node/components/SideDialogHeader/styles.js +1 -1
  252. package/node/components/SideDialogTitle/styles.js +1 -1
  253. package/node/components/Stepper/styles.js +2 -2
  254. package/node/components/Tag/styles.js +1 -1
  255. package/node/components/Tree/TreeItem/styles.js +3 -3
  256. package/node/components/fileUploading/FileUploaderDropzone/DropzoneWrapper/styles.js +1 -1
  257. package/node/components/fileUploading/FileUploaderFile/styles.js +1 -1
  258. package/node/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.d.ts +5 -1
  259. package/node/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +5 -4
  260. package/node/components/theme/components/MuiButton.js +1 -1
  261. package/node/components/theme/components/MuiDivider.d.ts +3 -0
  262. package/node/components/theme/components/MuiDivider.js +12 -0
  263. package/node/components/theme/components/MuiListItem.d.ts +3 -0
  264. package/node/components/theme/components/MuiListItem.js +12 -0
  265. package/node/components/theme/components/MuiOutlinedInput.js +2 -2
  266. package/node/components/theme/components/MuiPaper.js +1 -1
  267. package/node/components/theme/components/MuiStepConnector.js +4 -1
  268. package/node/components/theme/components/components.js +4 -0
  269. package/node/components/theme/palette/componentsColors/componentsColors.d.ts +3 -0
  270. package/node/components/theme/palette/componentsColors/componentsColors.js +3 -0
  271. package/package.json +20 -1
  272. package/components/DataGrid/useLogic/hooks/useClassnames/index.d.ts +0 -1
  273. package/components/DataGrid/useLogic/hooks/useClassnames/index.js +0 -1
  274. package/components/DataGrid/useLogic/hooks/useClassnames/useClassnames.d.ts +0 -12
  275. package/components/DataGrid/useLogic/hooks/useClassnames/useClassnames.js +0 -14
  276. package/node/components/DataGrid/useLogic/hooks/useClassnames/index.d.ts +0 -1
  277. package/node/components/DataGrid/useLogic/hooks/useClassnames/useClassnames.d.ts +0 -12
  278. package/node/components/DataGrid/useLogic/hooks/useClassnames/useClassnames.js +0 -18
@@ -0,0 +1,3 @@
1
+ import { type Components } from '@mui/material/styles/components';
2
+ import { type Theme } from '../types';
3
+ export declare const MuiDivider: Components<Theme>['MuiDivider'];
@@ -0,0 +1,9 @@
1
+ export const MuiDivider = {
2
+ styleOverrides: {
3
+ root({ theme }) {
4
+ return {
5
+ borderColor: theme.palette.components.border.default,
6
+ };
7
+ },
8
+ },
9
+ };
@@ -0,0 +1,3 @@
1
+ import { type Components } from '@mui/material/styles/components';
2
+ import { type Theme } from '../types';
3
+ export declare const MuiListItem: Components<Theme>['MuiListItem'];
@@ -0,0 +1,9 @@
1
+ export const MuiListItem = {
2
+ styleOverrides: {
3
+ divider({ theme }) {
4
+ return {
5
+ borderColor: theme.palette.components.border.default,
6
+ };
7
+ },
8
+ },
9
+ };
@@ -51,7 +51,7 @@ export const MuiOutlinedInput = {
51
51
  },
52
52
  '&::placeholder': {
53
53
  opacity: 1,
54
- color: theme.palette.grey[400],
54
+ color: theme.palette.grey[500],
55
55
  },
56
56
  };
57
57
  },
@@ -64,7 +64,7 @@ export const MuiOutlinedInput = {
64
64
  notchedOutline({ theme }) {
65
65
  return {
66
66
  borderWidth: 1,
67
- borderColor: theme.palette.grey[300],
67
+ borderColor: theme.palette.components.border.default,
68
68
  top: 0,
69
69
  transition: theme.transitions.create(['border-color'], {
70
70
  easing: theme.transitions.easing.easeInOut,
@@ -24,7 +24,7 @@ export const MuiPaper = {
24
24
  },
25
25
  outlined({ theme }) {
26
26
  return {
27
- border: `1px solid ${theme.palette.grey[300]}`,
27
+ border: `1px solid ${theme.palette.components.border.default}`,
28
28
  };
29
29
  },
30
30
  },
@@ -4,7 +4,10 @@ export const MuiStepConnector = {
4
4
  return { top: theme.microSpacing(5) };
5
5
  },
6
6
  lineHorizontal({ theme }) {
7
- return { borderTopWidth: 2, borderColor: theme.palette.grey[300] };
7
+ return {
8
+ borderTopWidth: 2,
9
+ borderColor: theme.palette.components.border.default,
10
+ };
8
11
  },
9
12
  },
10
13
  };
@@ -7,12 +7,14 @@ import { MuiDialog } from './MuiDialog';
7
7
  import { MuiDialogActions } from './MuiDialogActions';
8
8
  import { MuiDialogContent } from './MuiDialogContent';
9
9
  import { MuiDialogTitle } from './MuiDialogTitle';
10
+ import { MuiDivider } from './MuiDivider';
10
11
  import { MuiDrawer } from './MuiDrawer';
11
12
  import { MuiFormControlLabel } from './MuiFormControlLabel';
12
13
  import { MuiFormHelperText } from './MuiFormHelperText';
13
14
  import { MuiFormLabel } from './MuiFormLabel';
14
15
  import { MuiInputLabel } from './MuiInputLabel';
15
16
  import { MuiLinearProgress } from './MuiLinearProgress';
17
+ import { MuiListItem } from './MuiListItem';
16
18
  import { MuiListItemButton } from './MuiListItemButton';
17
19
  import { MuiListItemText } from './MuiListItemText';
18
20
  import { MuiListSubheader } from './MuiListSubheader';
@@ -49,6 +51,7 @@ export const getComponents = () => {
49
51
  MuiAlert,
50
52
  MuiButton,
51
53
  MuiButtonBase,
54
+ MuiDivider,
52
55
  MuiTypography,
53
56
  MuiInputLabel,
54
57
  MuiOutlinedInput,
@@ -72,6 +75,7 @@ export const getComponents = () => {
72
75
  MuiPaginationItem,
73
76
  MuiPaper,
74
77
  MuiCircularProgress,
78
+ MuiListItem,
75
79
  MuiListItemButton,
76
80
  MuiListItemText,
77
81
  MuiLinearProgress,
@@ -3,5 +3,8 @@ export type ComponentsColors = {
3
3
  link: LinkColors;
4
4
  focused: string;
5
5
  disabled: string;
6
+ border: {
7
+ default: string;
8
+ };
6
9
  };
7
10
  export declare const componentsColors: ComponentsColors;
@@ -3,4 +3,7 @@ export const componentsColors = {
3
3
  link: linkColors,
4
4
  focused: '#70AEFF',
5
5
  disabled: '#F1F1F1',
6
+ border: {
7
+ default: '#C7C7C7',
8
+ },
6
9
  };
@@ -33,7 +33,7 @@ exports.Header = styled_1.styled.header `
33
33
  height: ${({ drawerHeaderHeight }) => `${drawerHeaderHeight}px`};
34
34
  padding: ${({ theme }) => theme.spacing(1, 2, 1, 4)};
35
35
 
36
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
36
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
37
37
  `;
38
38
  exports.HeaderTitle = (0, styled_1.styled)(Typography_1.default) `
39
39
  margin-right: ${({ theme }) => theme.spacing(2)};
@@ -12,7 +12,7 @@ exports.Wrapper = styled_1.styled.footer `
12
12
  max-height: 76px;
13
13
  margin-top: ${({ theme }) => theme.spacing(4)};
14
14
 
15
- border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
15
+ border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
16
16
  `;
17
17
  exports.FooterDummy = styled_1.styled.div `
18
18
  min-height: 20px;
@@ -89,7 +89,7 @@ const getBorder = ({ isChecked, variant, color, theme, disabled, tagState = 'def
89
89
  if (tagState === 'default') {
90
90
  `1px solid ${theme.palette.grey[600]}`;
91
91
  }
92
- return `1px solid ${theme.palette.grey[400]}`;
92
+ return `1px solid ${theme.palette.components.border.default}`;
93
93
  };
94
94
  exports.Wrapper = styled_1.styled.label `
95
95
  width: fit-content;
@@ -6,7 +6,7 @@ const mixins_1 = require("../styled/mixins");
6
6
  const constants_1 = require("./constants");
7
7
  const getOutlineColor = ({ theme, isHover, isDisabled, isError, isChecked, isIndeterminate, }) => {
8
8
  if (isDisabled) {
9
- return theme.palette.grey[300];
9
+ return theme.palette.components.border.default;
10
10
  }
11
11
  if (isError) {
12
12
  return isHover ? theme.palette.error[700] : theme.palette.error[800];
@@ -14,7 +14,9 @@ const getOutlineColor = ({ theme, isHover, isDisabled, isError, isChecked, isInd
14
14
  if (isChecked || isIndeterminate) {
15
15
  return isHover ? theme.palette.primary[700] : theme.palette.primary[800];
16
16
  }
17
- return isHover ? theme.palette.grey[900] : theme.palette.grey[300];
17
+ return isHover
18
+ ? theme.palette.grey[900]
19
+ : theme.palette.components.border.default;
18
20
  };
19
21
  exports.Wrapper = (0, styled_1.styled)('span', {
20
22
  shouldForwardProp: (prop) => !['$isDisabled', '$isError', '$isChecked', '$isIndeterminate'].includes(prop),
@@ -17,7 +17,7 @@ exports.Wrapper = styled_1.styled.div `
17
17
  padding: ${({ theme }) => theme.spacing(0, 2)};
18
18
 
19
19
  background-color: ${({ theme }) => theme.palette.background.default};
20
- border: 1px solid ${({ theme }) => theme.palette.grey[400]};
20
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
21
21
  border-radius: ${({ theme }) => theme.shape.medium};
22
22
 
23
23
  transition: ${({ theme }) => theme.transitions.create(['border-color', 'background-color'], {
@@ -10,7 +10,7 @@ const getBorder = (theme, isDisabled, isError) => {
10
10
  }
11
11
  return isError
12
12
  ? `1px solid ${theme.palette.error[800]}`
13
- : `1px solid ${theme.palette.grey[300]};`;
13
+ : `1px solid ${theme.palette.components.border.default};`;
14
14
  };
15
15
  exports.Wrapper = styled_1.styled.div `
16
16
  display: flex;
@@ -40,7 +40,7 @@ exports.Wrapper = styled_1.styled.article `
40
40
  &.${constants_1.complianceStatusClassnames.outlined} {
41
41
  padding: ${({ theme }) => theme.spacing(3)};
42
42
 
43
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
43
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
44
44
  }
45
45
  `;
46
46
  exports.Inner = (0, styled_1.styled)('ul') `
@@ -1,2 +1,2 @@
1
1
  import type { ContentStateProps } from './types';
2
- export declare const ContentState: ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent, loadingTitle, placeholderSize, isSmoothLoading, }: ContentStateProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ContentState: ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent, loadingTitle, placeholderSize, isSmoothLoading, loadingPlaceholderClassname, }: ContentStateProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,13 +8,13 @@ const LoadingPlaceholder_1 = require("../placeholders/LoadingPlaceholder");
8
8
  const Placeholder_1 = require("../placeholders/Placeholder");
9
9
  const Typography_1 = require("../Typography");
10
10
  const useLogic_1 = require("./useLogic");
11
- const ContentState = ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent, loadingTitle, placeholderSize, isSmoothLoading, }) => {
11
+ const ContentState = ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent, loadingTitle, placeholderSize, isSmoothLoading, loadingPlaceholderClassname, }) => {
12
12
  const { imagesMap, isLoadingPhase, isShowLoader } = (0, useLogic_1.useLogic)({
13
13
  isLoading,
14
14
  isSmoothLoading,
15
15
  });
16
16
  if (isLoadingPhase) {
17
- return ((0, jsx_runtime_1.jsx)(LoadingPlaceholder_1.LoadingPlaceholder, { content: loadingContent, title: loadingTitle, isShowLoader: isShowLoader }));
17
+ return ((0, jsx_runtime_1.jsx)(LoadingPlaceholder_1.LoadingPlaceholder, { content: loadingContent, title: loadingTitle, isShowLoader: isShowLoader, className: loadingPlaceholderClassname }));
18
18
  }
19
19
  if (isCustom && customState) {
20
20
  return (0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { ...customState });
@@ -78,4 +78,8 @@ export type ContentStateProps = {
78
78
  * лоадер показывается и скрывается сразу при изменении `isLoading`.
79
79
  */
80
80
  isSmoothLoading?: boolean;
81
+ /**
82
+ * Класс применяемый для loading placeholder
83
+ */
84
+ loadingPlaceholderClassname?: string;
81
85
  };
@@ -22,7 +22,7 @@ exports.DecorativeHeaderBackground = styled_1.styled.div `
22
22
  height: ${({ $isFocusedMode }) => ($isFocusedMode ? 0 : constants_1.HEADER_HEIGHT_DESKTOP)};
23
23
 
24
24
  background-color: ${({ theme }) => theme.palette.background.default};
25
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
25
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
26
26
 
27
27
  transition: ${({ theme }) => {
28
28
  return theme.transitions.create(['height'], {
@@ -45,7 +45,7 @@ exports.HeaderRoot = (0, styled_1.styled)('header', {
45
45
  padding: ${({ theme }) => theme.spacing(0, 2, 0, 1)};
46
46
 
47
47
  background-color: ${({ theme }) => theme.palette.background.default};
48
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
48
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
49
49
 
50
50
  transition: unset;
51
51
  }
@@ -160,14 +160,14 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
160
160
  height: ${constants_3.MOBILE_BUTTON_HEIGHT};
161
161
  padding: ${({ theme }) => theme.spacing(3, 4)};
162
162
 
163
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
163
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
164
164
 
165
165
  &:hover {
166
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
166
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
167
167
  }
168
168
 
169
169
  &:active {
170
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
170
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
171
171
  }
172
172
  }
173
173
 
@@ -9,7 +9,7 @@ exports.Content = styled_1.styled.div `
9
9
  min-height: 0;
10
10
 
11
11
  background-color: ${({ theme }) => theme.palette.common.white};
12
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
12
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
13
13
  border-radius: ${({ theme }) => theme.shape.medium};
14
14
 
15
15
  ${({ theme }) => theme.breakpoints.down('sm')} {
@@ -88,7 +88,7 @@ exports.SidebarHeader = styled_1.styled.header `
88
88
  ${({ theme }) => theme.breakpoints.down('sm')} {
89
89
  padding: ${({ theme }) => theme.spacing(4)};
90
90
 
91
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
91
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
92
92
 
93
93
  /* Причина игнора: Не критично для отображения */
94
94
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
@@ -151,7 +151,7 @@ exports.Footer = styled_1.styled.footer `
151
151
  margin-top: auto;
152
152
 
153
153
  background-color: ${({ theme }) => theme.palette.background.default};
154
- border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
154
+ border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
155
155
  border-bottom-right-radius: ${({ theme }) => theme.shape.medium};
156
156
  border-bottom-left-radius: ${({ theme }) => theme.shape.medium};
157
157
 
@@ -15,7 +15,7 @@ exports.Wrapper = (0, styled_1.styled)('div', {
15
15
  padding: ${({ theme, $isPinned }) => $isPinned ? theme.spacing(4, 3) : theme.spacing(4, 2)};
16
16
 
17
17
  background-color: ${({ theme }) => theme.palette.background.default};
18
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
18
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
19
19
  border-radius: ${({ theme }) => theme.shape.medium};
20
20
 
21
21
  ${({ theme }) => theme.breakpoints.down('sm')} {
@@ -1,2 +1,2 @@
1
1
  import type { BodyProps } from './types';
2
- export declare const Body: <TData extends Record<string, unknown>>(props: BodyProps<TData>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Body: <TData extends Record<string, unknown>>({ rows, selectedRows, minDisplayRows, keyId, noDataPlaceholder, className, ...rowProps }: BodyProps<TData>) => import("react/jsx-runtime").JSX.Element;
@@ -2,21 +2,28 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Body = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const ConfigProvider_1 = require("../../ConfigProvider");
5
+ const classNames_1 = require("../../utils/classNames");
6
+ const cva_1 = require("../../utils/cva");
7
7
  const Row_1 = require("../Row");
8
8
  const RowContext_1 = require("../Row/RowContext");
9
+ const constants_1 = require("./constants");
9
10
  const styles_1 = require("./styles");
11
+ const useLogic_1 = require("./useLogic");
10
12
  const INITIAL_LEVEL = 0;
11
- const Body = (props) => {
12
- const { components } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
13
- const disableMinHeight = components?.dataGrid?.defaultProps?.disableMinHeight;
14
- const { rows, selectedRows = [], minDisplayRows, keyId, noDataPlaceholder, className, ...rowProps } = props;
13
+ const bodyCva = (0, cva_1.cva)(constants_1.bodyClassnames.root, {
14
+ variants: {
15
+ disableMinHeight: {
16
+ true: constants_1.bodyClassnames.disableMinHeight,
17
+ },
18
+ },
19
+ });
20
+ const Body = ({ rows, selectedRows = [], minDisplayRows, keyId, noDataPlaceholder, className, ...rowProps }) => {
21
+ const { disableMinHeight, bodyCssVars } = (0, useLogic_1.useLogic)({ minDisplayRows });
15
22
  const renderedRows = rows.map(({ children, options, ...row }) => {
16
23
  const rowId = row[keyId];
17
24
  const isSelected = Boolean(selectedRows?.find((selectedRow) => selectedRow[keyId] === rowId));
18
25
  return ((0, jsx_runtime_1.jsx)(RowContext_1.RowContextProvider, { children: (0, jsx_runtime_1.jsx)(Row_1.Row, { row: row, selectedRows: selectedRows, options: options, keyId: keyId, level: INITIAL_LEVEL, nestedChildren: children, isSelected: isSelected, ...rowProps }, rowId) }, rowId));
19
26
  });
20
- return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: className, "$minDisplayRows": minDisplayRows, "$disableMinHeight": disableMinHeight, children: rows.length ? renderedRows : noDataPlaceholder }));
27
+ return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: (0, classNames_1.classNames)(className, bodyCva({ disableMinHeight })), style: bodyCssVars, children: rows.length ? renderedRows : noDataPlaceholder }));
21
28
  };
22
29
  exports.Body = Body;
@@ -0,0 +1,4 @@
1
+ export declare const bodyClassnames: {
2
+ root: string;
3
+ disableMinHeight: string;
4
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bodyClassnames = void 0;
4
+ const createUIKitClassname_1 = require("../../utils/createUIKitClassname");
5
+ exports.bodyClassnames = {
6
+ root: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__body'),
7
+ disableMinHeight: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__body_disable-min-height'),
8
+ };
@@ -2,7 +2,4 @@
2
2
  export declare const Wrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- } & {
6
- $minDisplayRows: number;
7
- $disableMinHeight?: boolean | undefined;
8
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
@@ -3,20 +3,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Wrapper = void 0;
4
4
  const styled_1 = require("../../styled");
5
5
  const constants_1 = require("../constants");
6
+ const constants_2 = require("./constants");
6
7
  exports.Wrapper = styled_1.styled.ul `
8
+ --min-display-rows: 0;
9
+
7
10
  overflow-y: auto;
8
11
 
9
12
  width: fit-content;
10
13
  min-width: 100%;
11
14
  height: 100%;
12
- min-height: ${({ $minDisplayRows, $disableMinHeight }) => ($disableMinHeight ? 'unset' : `${constants_1.MIN_ROW_HEIGHT * $minDisplayRows}px`)};
15
+ min-height: calc(var(--min-display-rows) * ${constants_1.MIN_ROW_HEIGHT}px);
13
16
  margin: 0;
14
17
  padding: 0;
15
18
 
16
19
  list-style-type: none;
17
20
 
21
+ &.${constants_2.bodyClassnames.disableMinHeight} {
22
+ min-height: unset;
23
+ }
24
+
18
25
  &.${constants_1.dataGridClassnames.bodyEmpty} {
19
26
  display: flex;
20
27
  align-items: center;
21
28
  }
29
+
30
+ ${({ theme }) => theme.breakpoints.down('sm')} {
31
+ overflow: initial;
32
+
33
+ width: 100%;
34
+ }
22
35
  `;
@@ -0,0 +1 @@
1
+ export * from './useLogic';
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./useClassnames"), exports);
17
+ __exportStar(require("./useLogic"), exports);
@@ -0,0 +1,9 @@
1
+ import { type CSSProperties } from 'react';
2
+ import { type CellValue } from '../../types';
3
+ import type { BodyProps } from '../types';
4
+ type UseLogicParams<TData extends Record<string, CellValue>> = Pick<BodyProps<TData>, 'minDisplayRows'>;
5
+ export declare const useLogic: <TData extends Record<string, unknown>>({ minDisplayRows, }: UseLogicParams<TData>) => {
6
+ disableMinHeight: boolean | undefined;
7
+ bodyCssVars: CSSProperties;
8
+ };
9
+ export {};
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useLogic = void 0;
4
+ const react_1 = require("react");
5
+ const ConfigProvider_1 = require("../../../ConfigProvider");
6
+ const useLogic = ({ minDisplayRows, }) => {
7
+ const { components } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
8
+ const disableMinHeight = components?.dataGrid?.defaultProps?.disableMinHeight;
9
+ const bodyCssVars = !disableMinHeight && minDisplayRows
10
+ ? {
11
+ '--min-display-rows': minDisplayRows,
12
+ }
13
+ : {};
14
+ return {
15
+ disableMinHeight,
16
+ bodyCssVars,
17
+ };
18
+ };
19
+ exports.useLogic = useLogic;
@@ -5,16 +5,32 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const OverflowTypography_1 = require("../../OverflowTypography");
6
6
  const personalDataSecurity_1 = require("../../personalDataSecurity");
7
7
  const classNames_1 = require("../../utils/classNames");
8
+ const cva_1 = require("../../utils/cva");
8
9
  const getInertProps_1 = require("../../utils/getInertProps");
10
+ const constants_1 = require("./constants");
9
11
  const styles_1 = require("./styles");
10
12
  const useLogic_1 = require("./useLogic");
13
+ const cellCva = (0, cva_1.cva)(constants_1.dataGridCellClassnames.root, {
14
+ variants: {
15
+ isHideOnMobile: {
16
+ true: constants_1.dataGridCellClassnames.isHideOnMobile,
17
+ },
18
+ },
19
+ });
20
+ const cellContentCva = (0, cva_1.cva)(constants_1.dataGridCellClassnames.cellContent, {
21
+ variants: {
22
+ isActionColumn: {
23
+ true: constants_1.dataGridCellClassnames.actionColumn,
24
+ },
25
+ },
26
+ });
11
27
  const Cell = (props) => {
12
- const { formattedValue, hasStartAdornment } = (0, useLogic_1.useLogic)(props);
28
+ const { formattedValue, hasStartAdornment, isActionColumn, label } = (0, useLogic_1.useLogic)(props);
13
29
  const { className, startAdornment, row, cell, isDisabled, isHidePersonalData, } = props;
14
30
  const { renderCell, align = 'left' } = cell;
15
31
  const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
16
32
  isEnabled: isHidePersonalData === true,
17
33
  });
18
- return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { "$isDisabled": isDisabled, "$align": align, "$hasStartAdornment": hasStartAdornment, className: (0, classNames_1.classNames)(className, hidePersonalDataClassname), ...(0, getInertProps_1.getInertProps)(isDisabled), children: [startAdornment && startAdornment, renderCell?.(row), !renderCell && ((0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { rowsCount: 2, tooltipProps: { className: hidePersonalDataClassname }, children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: formattedValue }) }))] }));
34
+ return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { "$isDisabled": isDisabled, "$align": align, "$hasStartAdornment": hasStartAdornment, className: (0, classNames_1.classNames)(className, hidePersonalDataClassname, cellCva({ isHideOnMobile: cell.isHideOnMobile })), ...(0, getInertProps_1.getInertProps)(isDisabled), children: [startAdornment && startAdornment, (0, jsx_runtime_1.jsxs)(styles_1.CellContent, { className: cellContentCva({ isActionColumn }), children: [(0, jsx_runtime_1.jsx)(styles_1.ColumnLabel, { variant: "caption", color: "textSecondary", className: constants_1.dataGridCellClassnames.columnLabel, children: label }), renderCell?.(row), !renderCell && ((0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { rowsCount: 2, tooltipProps: { className: hidePersonalDataClassname }, children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: formattedValue }) }))] })] }));
19
35
  };
20
36
  exports.Cell = Cell;
@@ -0,0 +1,7 @@
1
+ export declare const dataGridCellClassnames: {
2
+ root: string;
3
+ isHideOnMobile: string;
4
+ columnLabel: string;
5
+ actionColumn: string;
6
+ cellContent: string;
7
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataGridCellClassnames = void 0;
4
+ const createUIKitClassname_1 = require("../../utils/createUIKitClassname");
5
+ exports.dataGridCellClassnames = {
6
+ root: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__cell'),
7
+ isHideOnMobile: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__cell_hide-on-mobile'),
8
+ columnLabel: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__cell-column-label'),
9
+ actionColumn: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__cell_action-column'),
10
+ cellContent: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__cell-content'),
11
+ };
@@ -9,4 +9,18 @@ export declare const Wrapper: import("@emotion/styled/dist/declarations/src/type
9
9
  theme?: import("@emotion/react").Theme | undefined;
10
10
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
11
  } & HeadCellProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const ColumnLabel: import("@emotion/styled/dist/declarations/src/types").StyledComponent<import("../../Typography/types").TypographyPropsBase & {
13
+ color?: import("../../Typography").TypographyColor | undefined;
14
+ variant?: import("../../Typography").TypographyVariant | undefined;
15
+ colorIntensity?: import("../../Typography").Intensity | undefined;
16
+ component?: import("../../Typography/types").ComponentProp | undefined;
17
+ isUpperCase?: boolean | undefined;
18
+ withoutCalt?: boolean | undefined;
19
+ } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ }, {}, {}>;
22
+ export declare const CellContent: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
25
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
26
  export {};
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Wrapper = void 0;
3
+ exports.CellContent = exports.ColumnLabel = exports.Wrapper = void 0;
4
4
  const styled_1 = require("../../styled");
5
+ const Typography_1 = require("../../Typography");
5
6
  const constants_1 = require("../constants");
7
+ const constants_2 = require("../Row/constants");
6
8
  const utils_1 = require("../utils");
9
+ const constants_3 = require("./constants");
7
10
  exports.Wrapper = (0, styled_1.styled)('div', {
8
11
  shouldForwardProp: (prop) => !['$align', '$isDisabled', '$hasStartAdornment'].includes(prop),
9
12
  }) `
@@ -16,4 +19,48 @@ exports.Wrapper = (0, styled_1.styled)('div', {
16
19
  padding: ${({ theme, $hasStartAdornment }) => $hasStartAdornment ? theme.spacing(1, 2, 1, 0) : theme.spacing(1, 2)};
17
20
 
18
21
  opacity: ${({ $isDisabled }) => ($isDisabled ? 0.5 : 1)};
22
+
23
+ ${({ theme }) => theme.breakpoints.down('sm')} {
24
+ justify-content: space-between;
25
+
26
+ min-height: unset;
27
+ padding: 0;
28
+
29
+ &.${constants_3.dataGridCellClassnames.isHideOnMobile} {
30
+ display: none;
31
+ }
32
+
33
+
34
+ & .${constants_2.dataGridRowClassnames.checkbox} {
35
+ align-self: flex-start;
36
+ order: 1;
37
+ }
38
+ }
39
+ `;
40
+ exports.ColumnLabel = (0, styled_1.styled)(Typography_1.Typography) `
41
+ display: none;
42
+
43
+ ${({ theme }) => theme.breakpoints.down('sm')} {
44
+ display: block;
45
+ }
46
+ `;
47
+ exports.CellContent = styled_1.styled.div `
48
+ min-width: 0;
49
+
50
+ ${({ theme }) => theme.breakpoints.down('sm')} {
51
+ display: flex;
52
+ flex-direction: column;
53
+ gap: ${({ theme }) => theme.spacing(1)};
54
+ align-items: flex-start;
55
+
56
+ width: 100%;
57
+
58
+ &.${constants_3.dataGridCellClassnames.actionColumn} {
59
+ align-items: flex-end;
60
+
61
+ & .${constants_3.dataGridCellClassnames.columnLabel} {
62
+ display: none;
63
+ }
64
+ }
65
+ }
19
66
  `;
@@ -4,5 +4,7 @@ type UseLogicParams<TData extends Record<string, CellValue>> = CellProps<TData>;
4
4
  export declare const useLogic: <TData extends Record<string, unknown>>({ row, cell, emptyCellValue, startAdornment, }: UseLogicParams<TData>) => {
5
5
  formattedValue: unknown;
6
6
  hasStartAdornment: boolean;
7
+ isActionColumn: boolean;
8
+ label: string | undefined;
7
9
  };
8
10
  export {};
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useLogic = void 0;
4
4
  const react_1 = require("react");
5
5
  const useLogic = ({ row, cell, emptyCellValue, startAdornment, }) => {
6
- const { format, field } = cell;
6
+ const { format, field, label } = cell;
7
7
  const isValidValue = (value) => {
8
8
  return Boolean(value) || value === 0;
9
9
  };
@@ -17,6 +17,7 @@ const useLogic = ({ row, cell, emptyCellValue, startAdornment, }) => {
17
17
  return emptyCellValue;
18
18
  }, [field, format, row, emptyCellValue]);
19
19
  const hasStartAdornment = Boolean(startAdornment);
20
- return { formattedValue, hasStartAdornment };
20
+ const isActionColumn = cell.field === 'actions';
21
+ return { formattedValue, hasStartAdornment, isActionColumn, label };
21
22
  };
22
23
  exports.useLogic = useLogic;