@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
@@ -4,8 +4,14 @@ import { type DataGridRow } from '../../DataGrid';
4
4
  import { type CellValue } from '../../DataGrid/types';
5
5
  import { type DataGridInfiniteProps } from '../types';
6
6
  type UseLogicParams<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = DataGridInfiniteProps<TData, TSortField>;
7
- export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>({ keyId, columns, rows, variant, tree, subrows, selectedRows, isLoading, isDisabled, isEndReached, onEndReached, onSelectRow, isHideSelectAll, isHideHeaderIfNoData, }: UseLogicParams<TData, TSortField>) => {
7
+ export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>({ keyId, columns, rows, variant, tree, subrows, selectedRows, maxHeight, isLoading, isDisabled, isEndReached, onEndReached, onSelectRow, isHideSelectAll, isHideHeaderIfNoData, }: UseLogicParams<TData, TSortField>) => {
8
+ containerCssVars: import("react").CSSProperties;
9
+ mobileSkeletonProps: {
10
+ cellsCount: number;
11
+ rowsCount: number;
12
+ };
8
13
  isNoData: boolean;
14
+ isMobile: boolean;
9
15
  isDataGridDisabled: boolean | undefined;
10
16
  isStickyButtonActive: boolean;
11
17
  treeRenderConfig: {
@@ -3,13 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useLogic = void 0;
4
4
  const react_1 = require("react");
5
5
  const enums_1 = require("../../DataGrid/enums");
6
+ const hooks_1 = require("../../DataGrid/useLogic/hooks");
6
7
  const utils_1 = require("../../DataGrid/utils");
7
8
  const useToggle_1 = require("../../useToggle");
9
+ const useViewportType_1 = require("../../useViewportType");
8
10
  const prop_1 = require("../../utils/prop");
9
11
  const uniqueBy_1 = require("../../utils/uniqueBy");
10
12
  const constants_1 = require("../constants");
11
- const useLogic = ({ keyId, columns, rows, variant, tree, subrows, selectedRows = [], isLoading, isDisabled, isEndReached, onEndReached, onSelectRow, isHideSelectAll, isHideHeaderIfNoData = false, }) => {
13
+ const useLogic = ({ keyId, columns, rows, variant, tree, subrows, selectedRows = [], maxHeight, isLoading, isDisabled, isEndReached, onEndReached, onSelectRow, isHideSelectAll, isHideHeaderIfNoData = false, }) => {
12
14
  const virtuoso = (0, react_1.useRef)(null);
15
+ const { isMobile } = (0, useViewportType_1.useViewportType)();
13
16
  const [hasVerticalScroll, setHasVerticalScroll] = (0, react_1.useState)(false);
14
17
  const [isStickyButtonActive, showStickyButton, hideStickyButton] = (0, useToggle_1.useToggle)();
15
18
  const isNoData = Boolean(rows?.length);
@@ -62,8 +65,15 @@ const useLogic = ({ keyId, columns, rows, variant, tree, subrows, selectedRows =
62
65
  }
63
66
  };
64
67
  const isHideHead = isHideHeaderIfNoData && rows.length === 0;
68
+ const { mobileSkeletonProps } = (0, hooks_1.useDataGridMobileLogic)({
69
+ columns,
70
+ });
71
+ const containerCssVars = (0, utils_1.getDataGridCssVars)(maxHeight);
65
72
  return {
73
+ containerCssVars,
74
+ mobileSkeletonProps,
66
75
  isNoData,
76
+ isMobile,
67
77
  isDataGridDisabled,
68
78
  isStickyButtonActive,
69
79
  treeRenderConfig,
@@ -32,5 +32,5 @@ exports.PickerSplitter = styled_1.styled.div `
32
32
  margin: ${({ theme }) => theme.spacing(-3, 4)};
33
33
 
34
34
  border-left: 1px solid
35
- ${({ theme }) => theme.palette.grey[300]};
35
+ ${({ theme }) => theme.palette.components.border.default};
36
36
  `;
@@ -18,7 +18,7 @@ exports.DashedSeparator = styled_1.styled.div `
18
18
  height: 4px;
19
19
  margin-right: ${({ theme }) => theme.spacing(2)};
20
20
 
21
- border-bottom: 1px dashed ${({ theme }) => theme.palette.grey[400]};
21
+ border-bottom: 1px dashed ${({ theme }) => theme.palette.components.border.default};
22
22
 
23
23
  ${({ theme }) => theme.breakpoints.down('sm')} {
24
24
  display: none;
@@ -1,18 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ItemWrapper = exports.IconWrapper = exports.Wrapper = void 0;
4
- const Typography_1 = require("@mui/material/Typography");
4
+ const constants_1 = require("../Description/constants");
5
5
  const styled_1 = require("../styled");
6
- const constants_1 = require("./constants");
6
+ const constants_2 = require("../Typography/constants");
7
+ const constants_3 = require("./constants");
7
8
  exports.Wrapper = styled_1.styled.div `
8
9
  display: flex;
9
10
  align-items: center;
10
11
 
11
- &.${constants_1.descriptionCellClassnames.hasIcon} {
12
+ &.${constants_3.descriptionCellClassnames.hasIcon} {
12
13
  gap: ${({ theme }) => theme.spacing(2)};
13
14
  }
14
15
 
15
- &.${constants_1.descriptionCellClassnames.iconRight} {
16
+ &.${constants_3.descriptionCellClassnames.iconRight} {
16
17
  flex-direction: row-reverse;
17
18
  }
18
19
  `;
@@ -23,15 +24,23 @@ exports.IconWrapper = styled_1.styled.div `
23
24
  width: 24px;
24
25
  height: 24px;
25
26
  }
27
+
28
+ ${({ theme }) => theme.breakpoints.down('sm')} {
29
+ display: none;
30
+ }
26
31
  `;
27
32
  exports.ItemWrapper = styled_1.styled.div `
28
33
  display: flex;
29
34
  flex-direction: column;
30
35
 
31
- dl {
32
- .${Typography_1.typographyClasses.root} {
36
+ & .${constants_1.descriptionClassnames.root} {
37
+ & .${constants_2.typographyClassnames.root} {
33
38
  font-size: unset;
34
39
  color: unset;
35
40
  }
36
41
  }
42
+
43
+ ${({ theme }) => theme.breakpoints.down('sm')} {
44
+ gap: ${({ theme }) => theme.spacing(1)};
45
+ }
37
46
  `;
@@ -24,7 +24,7 @@ exports.Wrapper = styled_1.styled.article `
24
24
  padding: ${({ theme }) => theme.spacing(4)};
25
25
 
26
26
  background-color: ${({ theme }) => theme.palette.background.default};
27
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
27
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
28
28
  }
29
29
  `;
30
30
  exports.ListWrapper = (0, styled_1.styled)('dl', {
@@ -36,7 +36,9 @@ exports.ListWrapper = (0, styled_1.styled)('dl', {
36
36
  margin: 0;
37
37
  padding: ${({ theme, $variant }) => $variant === 'contained' ? theme.spacing(4, 0) : theme.spacing(3, 0)};
38
38
 
39
- border-top: ${({ $hasDivider, theme }) => $hasDivider ? `1px solid ${theme.palette.grey[300]}` : 'none'};
39
+ border-top: ${({ $hasDivider, theme }) => $hasDivider
40
+ ? `1px solid ${theme.palette.components.border.default}`
41
+ : 'none'};
40
42
 
41
43
  &:first-of-type {
42
44
  padding-top: 0;
@@ -9,7 +9,7 @@ exports.Wrapper = (0, styled_1.styled)('details') `
9
9
 
10
10
  width: 100%;
11
11
 
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
  /* Причина игнора: Не критично для отображения */
@@ -25,7 +25,7 @@ exports.Item = styled_1.styled.li `
25
25
  ${({ theme }) => theme.breakpoints.down('sm')} {
26
26
  padding: ${({ theme }) => theme.spacing(5, 4)};
27
27
 
28
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
28
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
29
29
  }
30
30
  }
31
31
  `;
@@ -44,7 +44,7 @@ exports.Wrapper = styled_1.styled.div `
44
44
  margin-top: ${({ theme }) => theme.spacing(1)};
45
45
  margin-left: ${({ $level }) => `calc(${$level} * 20px)`};
46
46
 
47
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
47
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
48
48
  border-radius: ${({ theme }) => theme.shape.medium};
49
49
 
50
50
  &.${constants_1.infiniteTreeListClassnames.addAnimation} {
@@ -13,7 +13,7 @@ const constants_2 = require("./constants");
13
13
  exports.ActionWrapper = styled_1.styled.div `
14
14
  padding: ${({ theme }) => theme.spacing(2)};
15
15
 
16
- border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
16
+ border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
17
17
 
18
18
  ${({ theme }) => theme.breakpoints.down('sm')} {
19
19
  padding: ${({ theme }) => theme.spacing(4)};
@@ -23,7 +23,7 @@ exports.SearchWrapper = styled_1.styled.div `
23
23
  max-width: 300px;
24
24
  padding: ${({ theme }) => theme.spacing(2, 3)};
25
25
 
26
- border-bottom: ${({ theme }) => `1px solid ${theme.palette.grey['300']}`};
26
+ border-bottom: ${({ theme }) => `1px solid ${theme.palette.components.border.default}`};
27
27
 
28
28
  ${({ theme }) => theme.breakpoints.down('sm')} {
29
29
  max-width: unset;
@@ -11,7 +11,7 @@ exports.StyledTypography = (0, styled_1.styled)(Typography_1.Typography) `
11
11
 
12
12
  text-align: start;
13
13
 
14
- border-left: 2px solid ${({ theme }) => theme.palette.grey[300]};
14
+ border-left: 2px solid ${({ theme }) => theme.palette.components.border.default};
15
15
 
16
16
  ${({ theme }) => theme.breakpoints.down('sm')} {
17
17
  margin-bottom: 0;
@@ -192,7 +192,7 @@ exports.LineConnector = styled_1.styled.div `
192
192
 
193
193
  height: 2px;
194
194
 
195
- border-top: 2px solid ${({ theme }) => theme.palette.grey[300]};
195
+ border-top: 2px solid ${({ theme }) => theme.palette.components.border.default};
196
196
 
197
197
  &.${constants_4.stepClassnames.alternativeLabel} {
198
198
  position: absolute;
@@ -208,7 +208,7 @@ exports.LineConnector = styled_1.styled.div `
208
208
  margin-left: 9px;
209
209
 
210
210
  border-top: unset;
211
- border-left: 2px solid ${({ theme }) => theme.palette.grey[300]};
211
+ border-left: 2px solid ${({ theme }) => theme.palette.components.border.default};
212
212
 
213
213
  ${({ theme }) => theme.breakpoints.down('sm')} {
214
214
  margin-left: 11px;
@@ -1,4 +1,5 @@
1
1
  export { NewStepper } from './NewStepper';
2
+ export { stepperClassnames } from './constants';
2
3
  export { Step, type StepProps, stepClassnames } from './Step';
3
4
  export type { StepperProps } from './types';
4
5
  export { stepIconClassnames } from './StepIcon';
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stepIconClassnames = exports.stepClassnames = exports.Step = exports.NewStepper = void 0;
3
+ exports.stepIconClassnames = exports.stepClassnames = exports.Step = exports.stepperClassnames = exports.NewStepper = void 0;
4
4
  var NewStepper_1 = require("./NewStepper");
5
5
  Object.defineProperty(exports, "NewStepper", { enumerable: true, get: function () { return NewStepper_1.NewStepper; } });
6
+ var constants_1 = require("./constants");
7
+ Object.defineProperty(exports, "stepperClassnames", { enumerable: true, get: function () { return constants_1.stepperClassnames; } });
6
8
  var Step_1 = require("./Step");
7
9
  Object.defineProperty(exports, "Step", { enumerable: true, get: function () { return Step_1.Step; } });
8
10
  Object.defineProperty(exports, "stepClassnames", { enumerable: true, get: function () { return Step_1.stepClassnames; } });
@@ -1,3 +1,4 @@
1
+ export { stepperClassnames } from './constants';
1
2
  export { NewStepper } from './NewStepper';
2
3
  export { Step, type StepProps, stepClassnames } from './Step';
3
4
  export { stepIconClassnames } from './StepIcon';
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stepIconClassnames = exports.stepClassnames = exports.Step = exports.NewStepper = void 0;
3
+ exports.stepIconClassnames = exports.stepClassnames = exports.Step = exports.NewStepper = exports.stepperClassnames = void 0;
4
+ var constants_1 = require("./constants");
5
+ Object.defineProperty(exports, "stepperClassnames", { enumerable: true, get: function () { return constants_1.stepperClassnames; } });
4
6
  var NewStepper_1 = require("./NewStepper");
5
7
  Object.defineProperty(exports, "NewStepper", { enumerable: true, get: function () { return NewStepper_1.NewStepper; } });
6
8
  var Step_1 = require("./Step");
@@ -11,8 +11,8 @@ exports.Wrapper = styled_1.styled.aside `
11
11
  width: ${constants_1.PAGE_ASIDE_WIDTH};
12
12
  padding: ${({ theme }) => theme.spacing(4, 6)};
13
13
 
14
- border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
15
- border-left: 1px solid ${({ theme }) => theme.palette.grey[300]};
14
+ border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
15
+ border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
16
16
 
17
17
  ${({ theme }) => theme.breakpoints.down('laptop')} {
18
18
  padding: ${({ theme }) => theme.spacing(4)};
@@ -26,7 +26,7 @@ exports.Wrapper = styled_1.styled.aside `
26
26
  margin: ${({ theme }) => theme.spacing(0, 4, 4)};
27
27
 
28
28
  background-color: ${({ theme }) => theme.palette.background.default};
29
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
29
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
30
30
  border-radius: ${({ theme }) => theme.shape.medium};
31
31
  }
32
32
  `;
@@ -10,13 +10,13 @@ exports.Wrapper = styled_1.styled.header `
10
10
 
11
11
  padding: ${({ theme }) => theme.spacing(4, 6)};
12
12
 
13
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
13
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
14
14
 
15
15
  ${({ theme }) => theme.breakpoints.down('sm')} {
16
16
  margin: ${({ theme }) => theme.spacing(0, 4)};
17
17
 
18
18
  background-color: ${({ theme }) => theme.palette.background.default};
19
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
19
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
20
20
  border-bottom: none;
21
21
  border-top-left-radius: ${({ theme }) => theme.shape.medium};
22
22
  border-top-right-radius: ${({ theme }) => theme.shape.medium};
@@ -20,7 +20,9 @@ exports.Wrapper = (0, styled_1.styled)('article', {
20
20
  grid-row: 2;
21
21
  flex-direction: column;
22
22
 
23
- border-top: ${({ $isSeparatorShown, theme }) => $isSeparatorShown ? `1px solid ${theme.palette.grey[300]}` : 'none'};
23
+ border-top: ${({ $isSeparatorShown, theme }) => $isSeparatorShown
24
+ ? `1px solid ${theme.palette.components.border.default}`
25
+ : 'none'};
24
26
 
25
27
  ${({ theme }) => theme.breakpoints.down('sm')} {
26
28
  overflow: unset;
@@ -78,7 +80,7 @@ exports.Content = styled_1.styled.div `
78
80
  padding: ${({ theme }) => theme.spacing(4, 4, 3)};
79
81
 
80
82
  background-color: ${({ theme }) => theme.palette.background.default};
81
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
83
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
82
84
  border-radius: ${({ theme }) => theme.shape.medium};
83
85
 
84
86
  /* Причина игнора: Не критично для отображения */
@@ -21,7 +21,7 @@ exports.PageSubheader = styled_1.styled.div `
21
21
  ${({ theme }) => theme.breakpoints.down('sm')} {
22
22
  padding: ${({ theme }) => theme.spacing(0, 4, 4, 4)};
23
23
 
24
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
24
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
25
25
  }
26
26
  `;
27
27
  exports.DesktopTitleWrapper = styled_1.styled.div `
@@ -44,7 +44,7 @@ exports.Wrapper = styled_1.styled.header `
44
44
  }
45
45
 
46
46
  ${({ theme }) => theme.breakpoints.down('sm')} {
47
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
47
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
48
48
  }
49
49
  }
50
50
 
@@ -82,7 +82,7 @@ exports.MobileTitleWrapper = styled_1.styled.div `
82
82
  .${constants_1.pageHeaderClassnames.filters},
83
83
  .${constants_1.pageHeaderClassnames.subheader}
84
84
  ))) {
85
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
85
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
86
86
  }
87
87
  /* stylelint-enable plugin/no-unsupported-browser-features */
88
88
 
@@ -6,7 +6,7 @@ exports.Wrapper = styled_1.styled.div `
6
6
  height: 100%;
7
7
 
8
8
  background-color: ${({ theme }) => theme.palette.common.white};
9
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
9
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
10
10
  border-radius: ${({ theme }) => theme.shape.medium};
11
11
 
12
12
  ${({ theme }) => theme.breakpoints.down('sm')} {
@@ -5,6 +5,10 @@ export type PageLayoutSectionProps = {
5
5
  * Название класса, применяется к корневому компоненту
6
6
  */
7
7
  className?: string;
8
+ /**
9
+ * Отключает боковые отступы на мобильных разрешениях
10
+ */
11
+ isNoMobileSidePadding?: boolean;
8
12
  };
9
13
  /**
10
14
  * Секция страницы. На десктопе между секциями отображается разделитель или отступ. На мобильных разрешениях секции оформляются как карточки.
@@ -3,7 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PageLayoutSection = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const classNames_1 = require("../utils/classNames");
7
+ const cva_1 = require("../utils/cva");
8
+ const constants_1 = require("./constants");
6
9
  const styles_1 = require("./styles");
10
+ const sectionWrapperCva = (0, cva_1.cva)(constants_1.pageLayoutSectionClassnames.wrapper, {
11
+ variants: {
12
+ isNoMobileSidePadding: {
13
+ true: constants_1.pageLayoutSectionClassnames.isNoMobileSidePadding,
14
+ },
15
+ },
16
+ });
7
17
  /**
8
18
  * Секция страницы. На десктопе между секциями отображается разделитель или отступ. На мобильных разрешениях секции оформляются как карточки.
9
19
  *
@@ -16,7 +26,6 @@ const styles_1 = require("./styles");
16
26
  * </PageLayoutSectionContainer>
17
27
  * } />
18
28
  */
19
- exports.PageLayoutSection = (0, react_1.forwardRef)((props, ref) => {
20
- const { children, className } = props;
21
- return ((0, jsx_runtime_1.jsx)(styles_1.Section, { className: className, ref: ref, children: (0, jsx_runtime_1.jsx)(styles_1.SectionInner, { children: children }) }));
29
+ exports.PageLayoutSection = (0, react_1.forwardRef)(({ children, className, isNoMobileSidePadding = false }, ref) => {
30
+ return ((0, jsx_runtime_1.jsx)(styles_1.Section, { className: (0, classNames_1.classNames)(className, constants_1.pageLayoutSectionClassnames.root), ref: ref, children: (0, jsx_runtime_1.jsx)(styles_1.SectionWrapper, { className: sectionWrapperCva({ isNoMobileSidePadding }), children: children }) }));
22
31
  });
@@ -17,7 +17,7 @@ exports.SectionContainer = styled_1.styled.div `
17
17
  &.${constants_1.pageLayoutSectionContainerClassnames.withAside} {
18
18
  padding-top: ${({ theme }) => theme.spacing(4)};
19
19
 
20
- border-top: ${({ theme }) => `1px solid ${theme.palette.grey[300]}`};
20
+ border-top: ${({ theme }) => `1px solid ${theme.palette.components.border.default}`};
21
21
  }
22
22
 
23
23
  ${({ theme }) => theme.breakpoints.down('laptop')} {
@@ -0,0 +1,5 @@
1
+ export declare const pageLayoutSectionClassnames: {
2
+ root: string;
3
+ wrapper: string;
4
+ isNoMobileSidePadding: string;
5
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pageLayoutSectionClassnames = void 0;
4
+ const createUIKitClassname_1 = require("../utils/createUIKitClassname");
5
+ exports.pageLayoutSectionClassnames = {
6
+ root: (0, createUIKitClassname_1.createUIKitClassname)('page-layout__section'),
7
+ wrapper: (0, createUIKitClassname_1.createUIKitClassname)('page-layout__section-wrapper'),
8
+ isNoMobileSidePadding: (0, createUIKitClassname_1.createUIKitClassname)('page-layout__section-wrapper_no-mobile-side-padding'),
9
+ };
@@ -3,7 +3,7 @@ export declare const Section: import("@emotion/styled/dist/declarations/src/type
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
6
- export declare const SectionInner: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
6
+ export declare const SectionWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
8
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,17 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SectionInner = exports.Section = void 0;
3
+ exports.SectionWrapper = exports.Section = void 0;
4
4
  const styled_1 = require("../styled");
5
+ const constants_1 = require("./constants");
5
6
  exports.Section = styled_1.styled.section `
6
7
  ${({ theme }) => theme.breakpoints.down('sm')} {
7
8
  margin: ${({ theme }) => theme.spacing(0, 4)};
8
9
 
9
10
  background-color: ${({ theme }) => theme.palette.background.default};
10
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
11
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
11
12
  border-radius: ${({ theme }) => theme.shape.medium};
12
13
  }
13
14
  `;
14
- exports.SectionInner = styled_1.styled.div `
15
+ exports.SectionWrapper = styled_1.styled.div `
15
16
  padding: ${({ theme }) => theme.spacing(0, 6)};
16
17
 
17
18
  ${({ theme }) => theme.breakpoints.down('laptop')} {
@@ -20,5 +21,9 @@ exports.SectionInner = styled_1.styled.div `
20
21
 
21
22
  ${({ theme }) => theme.breakpoints.down('sm')} {
22
23
  padding: ${({ theme }) => theme.spacing(4)};
24
+
25
+ &.${constants_1.pageLayoutSectionClassnames.isNoMobileSidePadding} {
26
+ padding: ${({ theme }) => theme.spacing(4, 0)};
27
+ }
23
28
  }
24
29
  `;
@@ -34,7 +34,7 @@ exports.Aside = (0, styled_1.styled)('aside', {
34
34
  margin: ${({ theme }) => theme.spacing(0, 4, 4)};
35
35
 
36
36
  background-color: ${({ theme }) => theme.palette.background.default};
37
- border: 1px solid ${({ theme }) => theme.palette.grey[300]};
37
+ border: 1px solid ${({ theme }) => theme.palette.components.border.default};
38
38
  border-radius: ${({ theme }) => theme.shape.medium};
39
39
  }
40
40
  `;
@@ -50,8 +50,8 @@ exports.Dummy = (0, styled_1.styled)('div', {
50
50
  width: 40px;
51
51
  height: 100%;
52
52
 
53
- border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
54
- border-left: 1px solid ${({ theme }) => theme.palette.grey[300]};
53
+ border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
54
+ border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
55
55
 
56
56
  ${({ $isPinned }) => $isPinned && 'display: none;'}
57
57
  `;
@@ -80,8 +80,8 @@ exports.Content = (0, styled_1.styled)('div', {
80
80
  height: 100%;
81
81
 
82
82
  background-color: ${({ theme }) => theme.palette.background.default};
83
- border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
84
- border-left: 1px solid ${({ theme }) => theme.palette.grey[300]};
83
+ border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
84
+ border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
85
85
 
86
86
  transition: ${({ theme }) => {
87
87
  return theme.transitions.create(['transform'], {
@@ -129,7 +129,7 @@ exports.Footer = styled_1.styled.footer `
129
129
  margin-top: auto;
130
130
 
131
131
  background-color: ${({ theme }) => theme.palette.background.default};
132
- border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
132
+ border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
133
133
 
134
134
  ${({ theme }) => theme.breakpoints.down('sm')} {
135
135
  display: none;
@@ -26,12 +26,12 @@ exports.Wrapper = styled_1.styled.div `
26
26
  }
27
27
 
28
28
  ${({ theme }) => theme.breakpoints.down('sm')} {
29
- border-top: ${({ $isViewerLite, theme }) => ($isViewerLite ? 'unset' : `1px solid ${theme.palette.grey[300]}`)};
29
+ border-top: ${({ $isViewerLite, theme }) => ($isViewerLite ? 'unset' : `1px solid ${theme.palette.components.border.default}`)};
30
30
  border-radius: ${({ $isViewerLite }) => !$isViewerLite && 0};
31
31
  box-shadow: ${({ $isViewerLite }) => !$isViewerLite && 'none'};
32
32
 
33
33
  &:last-child {
34
- border-bottom: ${({ $isViewerLite, theme }) => ($isViewerLite ? 'unset' : `1px solid ${theme.palette.grey[300]}`)};
34
+ border-bottom: ${({ $isViewerLite, theme }) => ($isViewerLite ? 'unset' : `1px solid ${theme.palette.components.border.default}`)};
35
35
  }
36
36
  }
37
37
  `;
@@ -8,7 +8,7 @@ const getOutlineColor = ({ theme, isHover, isDisabled, isError, isChecked, }) =>
8
8
  if (isDisabled) {
9
9
  return isChecked
10
10
  ? theme.palette.components.disabled
11
- : theme.palette.grey[300];
11
+ : theme.palette.components.border.default;
12
12
  }
13
13
  if (isError) {
14
14
  return isHover ? theme.palette.error[700] : theme.palette.error[800];
@@ -16,7 +16,9 @@ const getOutlineColor = ({ theme, isHover, isDisabled, isError, isChecked, }) =>
16
16
  if (isChecked) {
17
17
  return isHover ? theme.palette.primary[700] : theme.palette.primary[800];
18
18
  }
19
- return isHover ? theme.palette.grey[900] : theme.palette.grey[300];
19
+ return isHover
20
+ ? theme.palette.grey[900]
21
+ : theme.palette.components.border.default;
20
22
  };
21
23
  const getFillColor = ({ theme, isHover, isDisabled, isError, isChecked, }) => {
22
24
  if (isDisabled) {
@@ -15,10 +15,14 @@ exports.Wrapper = styled_1.styled.label `
15
15
 
16
16
  background-color: ${({ theme }) => theme.palette.background.default};
17
17
  border-right: 1px solid
18
- ${({ $isError, theme }) => $isError ? theme.palette.error[700] : theme.palette.grey[300]};
19
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
18
+ ${({ $isError, theme }) => $isError
19
+ ? theme.palette.error[700]
20
+ : theme.palette.components.border.default};
21
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
20
22
  border-left: 1px solid
21
- ${({ $isError, theme }) => $isError ? theme.palette.error[700] : theme.palette.grey[300]};
23
+ ${({ $isError, theme }) => $isError
24
+ ? theme.palette.error[700]
25
+ : theme.palette.components.border.default};
22
26
 
23
27
  ${({ $isDisabled, theme }) => $isDisabled &&
24
28
  `
@@ -29,14 +33,18 @@ exports.Wrapper = styled_1.styled.label `
29
33
 
30
34
  &:first-of-type {
31
35
  border-top: 1px solid
32
- ${({ $isError, theme }) => $isError ? theme.palette.error[700] : theme.palette.grey[300]};
36
+ ${({ $isError, theme }) => $isError
37
+ ? theme.palette.error[700]
38
+ : theme.palette.components.border.default};
33
39
  border-top-left-radius: ${({ theme }) => theme.shape.medium};
34
40
  border-top-right-radius: ${({ theme }) => theme.shape.medium};
35
41
  }
36
42
 
37
43
  &:last-of-type {
38
44
  border-bottom: 1px solid
39
- ${({ $isError, theme }) => $isError ? theme.palette.error[700] : theme.palette.grey[300]};
45
+ ${({ $isError, theme }) => $isError
46
+ ? theme.palette.error[700]
47
+ : theme.palette.components.border.default};
40
48
  border-bottom-right-radius: ${({ theme }) => theme.shape.medium};
41
49
  border-bottom-left-radius: ${({ theme }) => theme.shape.medium};
42
50
  }
@@ -18,7 +18,7 @@ exports.StyledDialogActions = (0, styled_1.styled)(DialogActions_1.DialogActions
18
18
 
19
19
  width: 100%;
20
20
 
21
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
21
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
22
22
  }
23
23
 
24
24
  ${({ theme }) => theme.breakpoints.down('sm')} {
@@ -18,7 +18,7 @@ exports.StyledDialogHeader = (0, styled_1.styled)(DialogHeader_1.DialogHeader) `
18
18
 
19
19
  width: 100%;
20
20
 
21
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
21
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
22
22
  }
23
23
 
24
24
  ${({ theme }) => theme.breakpoints.down('sm')} {
@@ -18,6 +18,6 @@ exports.StyledDialogTitle = (0, styled_1.styled)(DialogTitle_1.DialogTitle) `
18
18
 
19
19
  width: 100%;
20
20
 
21
- border-bottom: 1px solid ${({ theme }) => theme.palette.grey[300]};
21
+ border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
22
22
  }
23
23
  `;
@@ -24,14 +24,14 @@ exports.StyledStepper = (0, styled_1.styled)(Stepper_1.default) `
24
24
  min-height: 22px;
25
25
  margin-left: 9px;
26
26
 
27
- border-color: ${({ theme }) => theme.palette.grey[300]};
27
+ border-color: ${({ theme }) => theme.palette.components.border.default};
28
28
  border-left-width: 2px;
29
29
  }
30
30
 
31
31
  .${StepConnector_1.stepConnectorClasses.lineVertical} {
32
32
  min-height: 14px;
33
33
 
34
- border-color: ${({ theme }) => theme.palette.grey[300]};
34
+ border-color: ${({ theme }) => theme.palette.components.border.default};
35
35
  border-left-width: 2px;
36
36
  }
37
37