@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.
- package/components/BottomDrawer/styles.js +1 -1
- package/components/CardGridInfinite/Footer/styles.js +1 -1
- package/components/CheckableTag/styles.js +1 -1
- package/components/Checkbox/styles.js +4 -2
- package/components/Chip/styles.js +1 -1
- package/components/CodeField/styles.js +1 -1
- package/components/ComplianceStatus/styles.js +1 -1
- package/components/ContentState/ContentState.d.ts +1 -1
- package/components/ContentState/ContentState.js +2 -2
- package/components/ContentState/types.d.ts +4 -0
- package/components/DashboardLayout/DashboardWrapper/styles.js +1 -1
- package/components/DashboardLayout/Header/styles.js +4 -4
- package/components/DashboardLayoutSkeleton/styles.js +1 -1
- package/components/DashboardSidebar/styles.js +2 -2
- package/components/DashboardSidebarSkeleton/styles.js +1 -1
- package/components/DataGrid/Body/Body.d.ts +1 -1
- package/components/DataGrid/Body/Body.js +14 -7
- package/components/DataGrid/Body/constants.d.ts +4 -0
- package/components/DataGrid/Body/constants.js +5 -0
- package/components/DataGrid/Body/styles.d.ts +0 -3
- package/components/DataGrid/Body/styles.js +14 -1
- package/components/DataGrid/Body/useLogic/index.d.ts +1 -0
- package/components/DataGrid/Body/useLogic/index.js +1 -0
- package/components/DataGrid/Body/useLogic/useLogic.d.ts +9 -0
- package/components/DataGrid/Body/useLogic/useLogic.js +15 -0
- package/components/DataGrid/Cell/Cell.js +20 -4
- package/components/DataGrid/Cell/constants.d.ts +7 -0
- package/components/DataGrid/Cell/constants.js +8 -0
- package/components/DataGrid/Cell/styles.d.ts +14 -0
- package/components/DataGrid/Cell/styles.js +47 -0
- package/components/DataGrid/Cell/useLogic/useLogic.d.ts +2 -0
- package/components/DataGrid/Cell/useLogic/useLogic.js +3 -2
- package/components/DataGrid/DataGrid.js +42 -8
- package/components/DataGrid/Head/Head.js +1 -1
- package/components/DataGrid/Head/styles.js +5 -1
- package/components/DataGrid/Loader/styles.js +4 -0
- package/components/DataGrid/MobileSkeleton/MobileSkeleton.d.ts +6 -0
- package/components/DataGrid/MobileSkeleton/MobileSkeleton.js +10 -0
- package/components/DataGrid/MobileSkeleton/index.d.ts +1 -0
- package/components/DataGrid/MobileSkeleton/index.js +1 -0
- package/components/DataGrid/MobileSkeleton/styles.d.ts +17 -0
- package/components/DataGrid/MobileSkeleton/styles.js +37 -0
- package/components/DataGrid/PinnedSections/Section/styles.js +2 -2
- package/components/DataGrid/Row/NestedChildren/styles.js +8 -3
- package/components/DataGrid/Row/Row.js +25 -8
- package/components/DataGrid/Row/constants.d.ts +8 -0
- package/components/DataGrid/Row/constants.js +8 -0
- package/components/DataGrid/Row/styles.d.ts +4 -9
- package/components/DataGrid/Row/styles.js +69 -17
- package/components/DataGrid/Row/types.d.ts +5 -1
- package/components/DataGrid/Row/useLogic/hooks/index.d.ts +1 -0
- package/components/DataGrid/Row/useLogic/hooks/index.js +1 -0
- package/components/DataGrid/Row/useLogic/hooks/useMobileLogic.d.ts +5 -0
- package/components/DataGrid/Row/useLogic/hooks/useMobileLogic.js +15 -0
- package/components/DataGrid/Row/useLogic/useLogic.d.ts +868 -3
- package/components/DataGrid/Row/useLogic/useLogic.js +28 -13
- package/components/DataGrid/constants.d.ts +4 -0
- package/components/DataGrid/constants.js +4 -0
- package/components/DataGrid/index.d.ts +1 -0
- package/components/DataGrid/index.js +1 -0
- package/components/DataGrid/styles.d.ts +0 -9
- package/components/DataGrid/styles.js +43 -12
- package/components/DataGrid/types.d.ts +7 -0
- package/components/DataGrid/useLogic/hooks/index.d.ts +1 -1
- package/components/DataGrid/useLogic/hooks/index.js +1 -1
- package/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/index.d.ts +1 -0
- package/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/index.js +1 -0
- package/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/useDataGridMobileLogic.d.ts +16 -0
- package/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/useDataGridMobileLogic.js +32 -0
- package/components/DataGrid/useLogic/hooks/usePinnedColumns/usePinnedColumns.js +11 -3
- package/components/DataGrid/useLogic/useLogic.d.ts +10 -4
- package/components/DataGrid/useLogic/useLogic.js +17 -12
- package/components/DataGrid/useLogic/utils/getIsAllowHorizontalScroll/getIsAllowHorizontalScroll.js +1 -1
- package/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.d.ts +2 -0
- package/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.js +5 -0
- package/components/DataGrid/utils/getDataGridCssVars/index.d.ts +1 -0
- package/components/DataGrid/utils/getDataGridCssVars/index.js +1 -0
- package/components/DataGrid/utils/index.d.ts +1 -0
- package/components/DataGrid/utils/index.js +1 -0
- package/components/DataGridActionCell/DataGridSecondaryActions/DataGridSecondaryActions.js +1 -1
- package/components/DataGridInfinite/DataGridInfinite.js +5 -4
- package/components/DataGridInfinite/useLogic/useLogic.d.ts +7 -1
- package/components/DataGridInfinite/useLogic/useLogic.js +12 -2
- package/components/DateRangePicker/styles.js +1 -1
- package/components/Description/Name/styles.js +1 -1
- package/components/DescriptionCell/styles.js +12 -3
- package/components/DescriptionList/styles.js +4 -2
- package/components/ExpansionPanel/styles.js +1 -1
- package/components/InfiniteDataList/styles.js +1 -1
- package/components/InfiniteTreeList/TreeItem/styles.js +1 -1
- package/components/MenuOrganization/styles.js +2 -2
- package/components/NewStepper/Step/Description/styles.js +1 -1
- package/components/NewStepper/Step/styles.js +2 -2
- package/components/NewStepper/index.d.ts +1 -0
- package/components/NewStepper/index.js +1 -0
- package/components/NewStepper/public.d.ts +1 -0
- package/components/NewStepper/public.js +1 -0
- package/components/PageAside/styles.js +3 -3
- package/components/PageContent/PageContentHeader/styles.js +2 -2
- package/components/PageContent/styles.js +4 -2
- package/components/PageHeader/HeaderContent/styles.js +1 -1
- package/components/PageHeader/styles.js +2 -2
- package/components/PageLayoutLoader/styles.js +1 -1
- package/components/PageLayoutSection/PageLayoutSection.d.ts +4 -0
- package/components/PageLayoutSection/PageLayoutSection.js +13 -4
- package/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +1 -1
- package/components/PageLayoutSection/constants.d.ts +5 -0
- package/components/PageLayoutSection/constants.js +6 -0
- package/components/PageLayoutSection/styles.d.ts +1 -1
- package/components/PageLayoutSection/styles.js +7 -2
- package/components/PagePinnableAside/styles.js +6 -6
- package/components/PdfViewer/PdfPage/styles.js +2 -2
- package/components/Radio/styles.js +4 -2
- package/components/RadioCard/styles.js +13 -5
- package/components/SideDialogActions/styles.js +1 -1
- package/components/SideDialogHeader/styles.js +1 -1
- package/components/SideDialogTitle/styles.js +1 -1
- package/components/Stepper/styles.js +2 -2
- package/components/Tag/styles.js +1 -1
- package/components/Tree/TreeItem/styles.js +3 -3
- package/components/fileUploading/FileUploaderDropzone/DropzoneWrapper/styles.js +1 -1
- package/components/fileUploading/FileUploaderFile/styles.js +1 -1
- package/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.d.ts +5 -1
- package/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +5 -4
- package/components/theme/components/MuiButton.js +1 -1
- package/components/theme/components/MuiDivider.d.ts +3 -0
- package/components/theme/components/MuiDivider.js +9 -0
- package/components/theme/components/MuiListItem.d.ts +3 -0
- package/components/theme/components/MuiListItem.js +9 -0
- package/components/theme/components/MuiOutlinedInput.js +2 -2
- package/components/theme/components/MuiPaper.js +1 -1
- package/components/theme/components/MuiStepConnector.js +4 -1
- package/components/theme/components/components.js +4 -0
- package/components/theme/palette/componentsColors/componentsColors.d.ts +3 -0
- package/components/theme/palette/componentsColors/componentsColors.js +3 -0
- package/node/components/BottomDrawer/styles.js +1 -1
- package/node/components/CardGridInfinite/Footer/styles.js +1 -1
- package/node/components/CheckableTag/styles.js +1 -1
- package/node/components/Checkbox/styles.js +4 -2
- package/node/components/Chip/styles.js +1 -1
- package/node/components/CodeField/styles.js +1 -1
- package/node/components/ComplianceStatus/styles.js +1 -1
- package/node/components/ContentState/ContentState.d.ts +1 -1
- package/node/components/ContentState/ContentState.js +2 -2
- package/node/components/ContentState/types.d.ts +4 -0
- package/node/components/DashboardLayout/DashboardWrapper/styles.js +1 -1
- package/node/components/DashboardLayout/Header/styles.js +4 -4
- package/node/components/DashboardLayoutSkeleton/styles.js +1 -1
- package/node/components/DashboardSidebar/styles.js +2 -2
- package/node/components/DashboardSidebarSkeleton/styles.js +1 -1
- package/node/components/DataGrid/Body/Body.d.ts +1 -1
- package/node/components/DataGrid/Body/Body.js +14 -7
- package/node/components/DataGrid/Body/constants.d.ts +4 -0
- package/node/components/DataGrid/Body/constants.js +8 -0
- package/node/components/DataGrid/Body/styles.d.ts +0 -3
- package/node/components/DataGrid/Body/styles.js +14 -1
- package/node/components/DataGrid/Body/useLogic/index.d.ts +1 -0
- package/node/components/DataGrid/{useLogic/hooks/useClassnames → Body/useLogic}/index.js +1 -1
- package/node/components/DataGrid/Body/useLogic/useLogic.d.ts +9 -0
- package/node/components/DataGrid/Body/useLogic/useLogic.js +19 -0
- package/node/components/DataGrid/Cell/Cell.js +18 -2
- package/node/components/DataGrid/Cell/constants.d.ts +7 -0
- package/node/components/DataGrid/Cell/constants.js +11 -0
- package/node/components/DataGrid/Cell/styles.d.ts +14 -0
- package/node/components/DataGrid/Cell/styles.js +48 -1
- package/node/components/DataGrid/Cell/useLogic/useLogic.d.ts +2 -0
- package/node/components/DataGrid/Cell/useLogic/useLogic.js +3 -2
- package/node/components/DataGrid/DataGrid.js +41 -7
- package/node/components/DataGrid/Head/Head.js +1 -1
- package/node/components/DataGrid/Head/styles.js +5 -1
- package/node/components/DataGrid/Loader/styles.js +4 -0
- package/node/components/DataGrid/MobileSkeleton/MobileSkeleton.d.ts +6 -0
- package/node/components/DataGrid/MobileSkeleton/MobileSkeleton.js +14 -0
- package/node/components/DataGrid/MobileSkeleton/index.d.ts +1 -0
- package/node/components/DataGrid/MobileSkeleton/index.js +17 -0
- package/node/components/DataGrid/MobileSkeleton/styles.d.ts +17 -0
- package/node/components/DataGrid/MobileSkeleton/styles.js +40 -0
- package/node/components/DataGrid/PinnedSections/Section/styles.js +2 -2
- package/node/components/DataGrid/Row/NestedChildren/styles.js +8 -3
- package/node/components/DataGrid/Row/Row.js +23 -6
- package/node/components/DataGrid/Row/constants.d.ts +8 -0
- package/node/components/DataGrid/Row/constants.js +9 -1
- package/node/components/DataGrid/Row/styles.d.ts +4 -9
- package/node/components/DataGrid/Row/styles.js +69 -17
- package/node/components/DataGrid/Row/types.d.ts +5 -1
- package/node/components/DataGrid/Row/useLogic/hooks/index.d.ts +1 -0
- package/node/components/DataGrid/Row/useLogic/hooks/index.js +17 -0
- package/node/components/DataGrid/Row/useLogic/hooks/useMobileLogic.d.ts +5 -0
- package/node/components/DataGrid/Row/useLogic/hooks/useMobileLogic.js +19 -0
- package/node/components/DataGrid/Row/useLogic/useLogic.d.ts +868 -3
- package/node/components/DataGrid/Row/useLogic/useLogic.js +28 -13
- package/node/components/DataGrid/constants.d.ts +4 -0
- package/node/components/DataGrid/constants.js +5 -1
- package/node/components/DataGrid/index.d.ts +1 -0
- package/node/components/DataGrid/index.js +3 -1
- package/node/components/DataGrid/styles.d.ts +0 -9
- package/node/components/DataGrid/styles.js +43 -12
- package/node/components/DataGrid/types.d.ts +7 -0
- package/node/components/DataGrid/useLogic/hooks/index.d.ts +1 -1
- package/node/components/DataGrid/useLogic/hooks/index.js +1 -1
- package/node/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/index.d.ts +1 -0
- package/node/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/index.js +17 -0
- package/node/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/useDataGridMobileLogic.d.ts +16 -0
- package/node/components/DataGrid/useLogic/hooks/useDataGridMobileLogic/useDataGridMobileLogic.js +36 -0
- package/node/components/DataGrid/useLogic/hooks/usePinnedColumns/usePinnedColumns.js +11 -3
- package/node/components/DataGrid/useLogic/useLogic.d.ts +10 -4
- package/node/components/DataGrid/useLogic/useLogic.js +19 -14
- package/node/components/DataGrid/useLogic/utils/getIsAllowHorizontalScroll/getIsAllowHorizontalScroll.js +1 -1
- package/node/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.d.ts +2 -0
- package/node/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.js +9 -0
- package/node/components/DataGrid/utils/getDataGridCssVars/index.d.ts +1 -0
- package/node/components/DataGrid/utils/getDataGridCssVars/index.js +5 -0
- package/node/components/DataGrid/utils/index.d.ts +1 -0
- package/node/components/DataGrid/utils/index.js +3 -1
- package/node/components/DataGridActionCell/DataGridSecondaryActions/DataGridSecondaryActions.js +1 -1
- package/node/components/DataGridInfinite/DataGridInfinite.js +5 -4
- package/node/components/DataGridInfinite/useLogic/useLogic.d.ts +7 -1
- package/node/components/DataGridInfinite/useLogic/useLogic.js +11 -1
- package/node/components/DateRangePicker/styles.js +1 -1
- package/node/components/Description/Name/styles.js +1 -1
- package/node/components/DescriptionCell/styles.js +15 -6
- package/node/components/DescriptionList/styles.js +4 -2
- package/node/components/ExpansionPanel/styles.js +1 -1
- package/node/components/InfiniteDataList/styles.js +1 -1
- package/node/components/InfiniteTreeList/TreeItem/styles.js +1 -1
- package/node/components/MenuOrganization/styles.js +2 -2
- package/node/components/NewStepper/Step/Description/styles.js +1 -1
- package/node/components/NewStepper/Step/styles.js +2 -2
- package/node/components/NewStepper/index.d.ts +1 -0
- package/node/components/NewStepper/index.js +3 -1
- package/node/components/NewStepper/public.d.ts +1 -0
- package/node/components/NewStepper/public.js +3 -1
- package/node/components/PageAside/styles.js +3 -3
- package/node/components/PageContent/PageContentHeader/styles.js +2 -2
- package/node/components/PageContent/styles.js +4 -2
- package/node/components/PageHeader/HeaderContent/styles.js +1 -1
- package/node/components/PageHeader/styles.js +2 -2
- package/node/components/PageLayoutLoader/styles.js +1 -1
- package/node/components/PageLayoutSection/PageLayoutSection.d.ts +4 -0
- package/node/components/PageLayoutSection/PageLayoutSection.js +12 -3
- package/node/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +1 -1
- package/node/components/PageLayoutSection/constants.d.ts +5 -0
- package/node/components/PageLayoutSection/constants.js +9 -0
- package/node/components/PageLayoutSection/styles.d.ts +1 -1
- package/node/components/PageLayoutSection/styles.js +8 -3
- package/node/components/PagePinnableAside/styles.js +6 -6
- package/node/components/PdfViewer/PdfPage/styles.js +2 -2
- package/node/components/Radio/styles.js +4 -2
- package/node/components/RadioCard/styles.js +13 -5
- package/node/components/SideDialogActions/styles.js +1 -1
- package/node/components/SideDialogHeader/styles.js +1 -1
- package/node/components/SideDialogTitle/styles.js +1 -1
- package/node/components/Stepper/styles.js +2 -2
- package/node/components/Tag/styles.js +1 -1
- package/node/components/Tree/TreeItem/styles.js +3 -3
- package/node/components/fileUploading/FileUploaderDropzone/DropzoneWrapper/styles.js +1 -1
- package/node/components/fileUploading/FileUploaderFile/styles.js +1 -1
- package/node/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.d.ts +5 -1
- package/node/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +5 -4
- package/node/components/theme/components/MuiButton.js +1 -1
- package/node/components/theme/components/MuiDivider.d.ts +3 -0
- package/node/components/theme/components/MuiDivider.js +12 -0
- package/node/components/theme/components/MuiListItem.d.ts +3 -0
- package/node/components/theme/components/MuiListItem.js +12 -0
- package/node/components/theme/components/MuiOutlinedInput.js +2 -2
- package/node/components/theme/components/MuiPaper.js +1 -1
- package/node/components/theme/components/MuiStepConnector.js +4 -1
- package/node/components/theme/components/components.js +4 -0
- package/node/components/theme/palette/componentsColors/componentsColors.d.ts +3 -0
- package/node/components/theme/palette/componentsColors/componentsColors.js +3 -0
- package/package.json +20 -1
- package/components/DataGrid/useLogic/hooks/useClassnames/index.d.ts +0 -1
- package/components/DataGrid/useLogic/hooks/useClassnames/index.js +0 -1
- package/components/DataGrid/useLogic/hooks/useClassnames/useClassnames.d.ts +0 -12
- package/components/DataGrid/useLogic/hooks/useClassnames/useClassnames.js +0 -14
- package/node/components/DataGrid/useLogic/hooks/useClassnames/index.d.ts +0 -1
- package/node/components/DataGrid/useLogic/hooks/useClassnames/useClassnames.d.ts +0 -12
- package/node/components/DataGrid/useLogic/hooks/useClassnames/useClassnames.js +0 -18
|
@@ -15,7 +15,7 @@ export const DashedSeparator = styled.div `
|
|
|
15
15
|
height: 4px;
|
|
16
16
|
margin-right: ${({ theme }) => theme.spacing(2)};
|
|
17
17
|
|
|
18
|
-
border-bottom: 1px dashed ${({ theme }) => theme.palette.
|
|
18
|
+
border-bottom: 1px dashed ${({ theme }) => theme.palette.components.border.default};
|
|
19
19
|
|
|
20
20
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
21
21
|
display: none;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { descriptionClassnames } from '../Description/constants';
|
|
2
2
|
import { styled } from '../styled';
|
|
3
|
+
import { typographyClassnames } from '../Typography/constants';
|
|
3
4
|
import { descriptionCellClassnames } from './constants';
|
|
4
5
|
export const Wrapper = styled.div `
|
|
5
6
|
display: flex;
|
|
@@ -20,15 +21,23 @@ export const IconWrapper = styled.div `
|
|
|
20
21
|
width: 24px;
|
|
21
22
|
height: 24px;
|
|
22
23
|
}
|
|
24
|
+
|
|
25
|
+
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
23
28
|
`;
|
|
24
29
|
export const ItemWrapper = styled.div `
|
|
25
30
|
display: flex;
|
|
26
31
|
flex-direction: column;
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
.${
|
|
33
|
+
& .${descriptionClassnames.root} {
|
|
34
|
+
& .${typographyClassnames.root} {
|
|
30
35
|
font-size: unset;
|
|
31
36
|
color: unset;
|
|
32
37
|
}
|
|
33
38
|
}
|
|
39
|
+
|
|
40
|
+
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
41
|
+
gap: ${({ theme }) => theme.spacing(1)};
|
|
42
|
+
}
|
|
34
43
|
`;
|
|
@@ -21,7 +21,7 @@ export const Wrapper = styled.article `
|
|
|
21
21
|
padding: ${({ theme }) => theme.spacing(4)};
|
|
22
22
|
|
|
23
23
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
24
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
24
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
27
|
export const ListWrapper = styled('dl', {
|
|
@@ -33,7 +33,9 @@ export const ListWrapper = styled('dl', {
|
|
|
33
33
|
margin: 0;
|
|
34
34
|
padding: ${({ theme, $variant }) => $variant === 'contained' ? theme.spacing(4, 0) : theme.spacing(3, 0)};
|
|
35
35
|
|
|
36
|
-
border-top: ${({ $hasDivider, theme }) => $hasDivider
|
|
36
|
+
border-top: ${({ $hasDivider, theme }) => $hasDivider
|
|
37
|
+
? `1px solid ${theme.palette.components.border.default}`
|
|
38
|
+
: 'none'};
|
|
37
39
|
|
|
38
40
|
&:first-of-type {
|
|
39
41
|
padding-top: 0;
|
|
@@ -6,7 +6,7 @@ export const Wrapper = styled('details') `
|
|
|
6
6
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
|
|
9
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
9
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
10
10
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
11
11
|
|
|
12
12
|
/* Причина игнора: Не критично для отображения */
|
|
@@ -22,7 +22,7 @@ export const Item = styled.li `
|
|
|
22
22
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
23
23
|
padding: ${({ theme }) => theme.spacing(5, 4)};
|
|
24
24
|
|
|
25
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
25
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
`;
|
|
@@ -41,7 +41,7 @@ export const Wrapper = styled.div `
|
|
|
41
41
|
margin-top: ${({ theme }) => theme.spacing(1)};
|
|
42
42
|
margin-left: ${({ $level }) => `calc(${$level} * 20px)`};
|
|
43
43
|
|
|
44
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
44
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
45
45
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
46
46
|
|
|
47
47
|
&.${infiniteTreeListClassnames.addAnimation} {
|
|
@@ -10,7 +10,7 @@ import { menuOrganizationClassnames, PLACEHOLDER_HEIGHT } from './constants';
|
|
|
10
10
|
export const ActionWrapper = styled.div `
|
|
11
11
|
padding: ${({ theme }) => theme.spacing(2)};
|
|
12
12
|
|
|
13
|
-
border-top: 1px solid ${({ theme }) => theme.palette.
|
|
13
|
+
border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
14
14
|
|
|
15
15
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
16
16
|
padding: ${({ theme }) => theme.spacing(4)};
|
|
@@ -20,7 +20,7 @@ export const SearchWrapper = styled.div `
|
|
|
20
20
|
max-width: 300px;
|
|
21
21
|
padding: ${({ theme }) => theme.spacing(2, 3)};
|
|
22
22
|
|
|
23
|
-
border-bottom: ${({ theme }) => `1px solid ${theme.palette.
|
|
23
|
+
border-bottom: ${({ theme }) => `1px solid ${theme.palette.components.border.default}`};
|
|
24
24
|
|
|
25
25
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
26
26
|
max-width: unset;
|
|
@@ -8,7 +8,7 @@ export const StyledTypography = styled(Typography) `
|
|
|
8
8
|
|
|
9
9
|
text-align: start;
|
|
10
10
|
|
|
11
|
-
border-left: 2px solid ${({ theme }) => theme.palette.
|
|
11
|
+
border-left: 2px solid ${({ theme }) => theme.palette.components.border.default};
|
|
12
12
|
|
|
13
13
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
14
14
|
margin-bottom: 0;
|
|
@@ -189,7 +189,7 @@ export const LineConnector = styled.div `
|
|
|
189
189
|
|
|
190
190
|
height: 2px;
|
|
191
191
|
|
|
192
|
-
border-top: 2px solid ${({ theme }) => theme.palette.
|
|
192
|
+
border-top: 2px solid ${({ theme }) => theme.palette.components.border.default};
|
|
193
193
|
|
|
194
194
|
&.${stepClassnames.alternativeLabel} {
|
|
195
195
|
position: absolute;
|
|
@@ -205,7 +205,7 @@ export const LineConnector = styled.div `
|
|
|
205
205
|
margin-left: 9px;
|
|
206
206
|
|
|
207
207
|
border-top: unset;
|
|
208
|
-
border-left: 2px solid ${({ theme }) => theme.palette.
|
|
208
|
+
border-left: 2px solid ${({ theme }) => theme.palette.components.border.default};
|
|
209
209
|
|
|
210
210
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
211
211
|
margin-left: 11px;
|
|
@@ -8,8 +8,8 @@ export const Wrapper = styled.aside `
|
|
|
8
8
|
width: ${PAGE_ASIDE_WIDTH};
|
|
9
9
|
padding: ${({ theme }) => theme.spacing(4, 6)};
|
|
10
10
|
|
|
11
|
-
border-top: 1px solid ${({ theme }) => theme.palette.
|
|
12
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
11
|
+
border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
12
|
+
border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
13
13
|
|
|
14
14
|
${({ theme }) => theme.breakpoints.down('laptop')} {
|
|
15
15
|
padding: ${({ theme }) => theme.spacing(4)};
|
|
@@ -23,7 +23,7 @@ export const Wrapper = styled.aside `
|
|
|
23
23
|
margin: ${({ theme }) => theme.spacing(0, 4, 4)};
|
|
24
24
|
|
|
25
25
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
26
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
26
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
27
27
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
28
28
|
}
|
|
29
29
|
`;
|
|
@@ -7,13 +7,13 @@ export const Wrapper = styled.header `
|
|
|
7
7
|
|
|
8
8
|
padding: ${({ theme }) => theme.spacing(4, 6)};
|
|
9
9
|
|
|
10
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
10
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
11
11
|
|
|
12
12
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
13
13
|
margin: ${({ theme }) => theme.spacing(0, 4)};
|
|
14
14
|
|
|
15
15
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
16
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
16
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
17
17
|
border-bottom: none;
|
|
18
18
|
border-top-left-radius: ${({ theme }) => theme.shape.medium};
|
|
19
19
|
border-top-right-radius: ${({ theme }) => theme.shape.medium};
|
|
@@ -17,7 +17,9 @@ export const Wrapper = styled('article', {
|
|
|
17
17
|
grid-row: 2;
|
|
18
18
|
flex-direction: column;
|
|
19
19
|
|
|
20
|
-
border-top: ${({ $isSeparatorShown, theme }) => $isSeparatorShown
|
|
20
|
+
border-top: ${({ $isSeparatorShown, theme }) => $isSeparatorShown
|
|
21
|
+
? `1px solid ${theme.palette.components.border.default}`
|
|
22
|
+
: 'none'};
|
|
21
23
|
|
|
22
24
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
23
25
|
overflow: unset;
|
|
@@ -75,7 +77,7 @@ export const Content = styled.div `
|
|
|
75
77
|
padding: ${({ theme }) => theme.spacing(4, 4, 3)};
|
|
76
78
|
|
|
77
79
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
78
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
80
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
79
81
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
80
82
|
|
|
81
83
|
/* Причина игнора: Не критично для отображения */
|
|
@@ -18,7 +18,7 @@ export const PageSubheader = styled.div `
|
|
|
18
18
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
19
19
|
padding: ${({ theme }) => theme.spacing(0, 4, 4, 4)};
|
|
20
20
|
|
|
21
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
21
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
22
22
|
}
|
|
23
23
|
`;
|
|
24
24
|
export const DesktopTitleWrapper = styled.div `
|
|
@@ -41,7 +41,7 @@ export const Wrapper = styled.header `
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
44
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
44
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -79,7 +79,7 @@ export const MobileTitleWrapper = styled.div `
|
|
|
79
79
|
.${pageHeaderClassnames.filters},
|
|
80
80
|
.${pageHeaderClassnames.subheader}
|
|
81
81
|
))) {
|
|
82
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
82
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
83
83
|
}
|
|
84
84
|
/* stylelint-enable plugin/no-unsupported-browser-features */
|
|
85
85
|
|
|
@@ -3,7 +3,7 @@ export const Wrapper = styled.div `
|
|
|
3
3
|
height: 100%;
|
|
4
4
|
|
|
5
5
|
background-color: ${({ theme }) => theme.palette.common.white};
|
|
6
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
6
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
7
7
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
8
8
|
|
|
9
9
|
${({ 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
|
* Секция страницы. На десктопе между секциями отображается разделитель или отступ. На мобильных разрешениях секции оформляются как карточки.
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { classNames } from '../utils/classNames';
|
|
4
|
+
import { cva } from '../utils/cva';
|
|
5
|
+
import { pageLayoutSectionClassnames } from './constants';
|
|
6
|
+
import { Section, SectionWrapper } from './styles';
|
|
7
|
+
const sectionWrapperCva = cva(pageLayoutSectionClassnames.wrapper, {
|
|
8
|
+
variants: {
|
|
9
|
+
isNoMobileSidePadding: {
|
|
10
|
+
true: pageLayoutSectionClassnames.isNoMobileSidePadding,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
});
|
|
4
14
|
/**
|
|
5
15
|
* Секция страницы. На десктопе между секциями отображается разделитель или отступ. На мобильных разрешениях секции оформляются как карточки.
|
|
6
16
|
*
|
|
@@ -13,7 +23,6 @@ import { Section, SectionInner } from './styles';
|
|
|
13
23
|
* </PageLayoutSectionContainer>
|
|
14
24
|
* } />
|
|
15
25
|
*/
|
|
16
|
-
export const PageLayoutSection = forwardRef((
|
|
17
|
-
|
|
18
|
-
return (_jsx(Section, { className: className, ref: ref, children: _jsx(SectionInner, { children: children }) }));
|
|
26
|
+
export const PageLayoutSection = forwardRef(({ children, className, isNoMobileSidePadding = false }, ref) => {
|
|
27
|
+
return (_jsx(Section, { className: classNames(className, pageLayoutSectionClassnames.root), ref: ref, children: _jsx(SectionWrapper, { className: sectionWrapperCva({ isNoMobileSidePadding }), children: children }) }));
|
|
19
28
|
});
|
|
@@ -14,7 +14,7 @@ export const SectionContainer = styled.div `
|
|
|
14
14
|
&.${pageLayoutSectionContainerClassnames.withAside} {
|
|
15
15
|
padding-top: ${({ theme }) => theme.spacing(4)};
|
|
16
16
|
|
|
17
|
-
border-top: ${({ theme }) => `1px solid ${theme.palette.
|
|
17
|
+
border-top: ${({ theme }) => `1px solid ${theme.palette.components.border.default}`};
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
${({ theme }) => theme.breakpoints.down('laptop')} {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createUIKitClassname } from '../utils/createUIKitClassname';
|
|
2
|
+
export const pageLayoutSectionClassnames = {
|
|
3
|
+
root: createUIKitClassname('page-layout__section'),
|
|
4
|
+
wrapper: createUIKitClassname('page-layout__section-wrapper'),
|
|
5
|
+
isNoMobileSidePadding: createUIKitClassname('page-layout__section-wrapper_no-mobile-side-padding'),
|
|
6
|
+
};
|
|
@@ -3,7 +3,7 @@ export declare const Section: import("../styled").StyledComponent<{
|
|
|
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
|
|
6
|
+
export declare const SectionWrapper: import("../styled").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,14 +1,15 @@
|
|
|
1
1
|
import { styled } from '../styled';
|
|
2
|
+
import { pageLayoutSectionClassnames } from './constants';
|
|
2
3
|
export const Section = styled.section `
|
|
3
4
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
4
5
|
margin: ${({ theme }) => theme.spacing(0, 4)};
|
|
5
6
|
|
|
6
7
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
7
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
8
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
8
9
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
9
10
|
}
|
|
10
11
|
`;
|
|
11
|
-
export const
|
|
12
|
+
export const SectionWrapper = styled.div `
|
|
12
13
|
padding: ${({ theme }) => theme.spacing(0, 6)};
|
|
13
14
|
|
|
14
15
|
${({ theme }) => theme.breakpoints.down('laptop')} {
|
|
@@ -17,5 +18,9 @@ export const SectionInner = styled.div `
|
|
|
17
18
|
|
|
18
19
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
19
20
|
padding: ${({ theme }) => theme.spacing(4)};
|
|
21
|
+
|
|
22
|
+
&.${pageLayoutSectionClassnames.isNoMobileSidePadding} {
|
|
23
|
+
padding: ${({ theme }) => theme.spacing(4, 0)};
|
|
24
|
+
}
|
|
20
25
|
}
|
|
21
26
|
`;
|
|
@@ -31,7 +31,7 @@ export const Aside = styled('aside', {
|
|
|
31
31
|
margin: ${({ theme }) => theme.spacing(0, 4, 4)};
|
|
32
32
|
|
|
33
33
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
34
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
34
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
35
35
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
36
36
|
}
|
|
37
37
|
`;
|
|
@@ -47,8 +47,8 @@ export const Dummy = styled('div', {
|
|
|
47
47
|
width: 40px;
|
|
48
48
|
height: 100%;
|
|
49
49
|
|
|
50
|
-
border-top: 1px solid ${({ theme }) => theme.palette.
|
|
51
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
50
|
+
border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
51
|
+
border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
52
52
|
|
|
53
53
|
${({ $isPinned }) => $isPinned && 'display: none;'}
|
|
54
54
|
`;
|
|
@@ -77,8 +77,8 @@ export const Content = styled('div', {
|
|
|
77
77
|
height: 100%;
|
|
78
78
|
|
|
79
79
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
80
|
-
border-top: 1px solid ${({ theme }) => theme.palette.
|
|
81
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
80
|
+
border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
81
|
+
border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
82
82
|
|
|
83
83
|
transition: ${({ theme }) => {
|
|
84
84
|
return theme.transitions.create(['transform'], {
|
|
@@ -126,7 +126,7 @@ export const Footer = styled.footer `
|
|
|
126
126
|
margin-top: auto;
|
|
127
127
|
|
|
128
128
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
129
|
-
border-top: 1px solid ${({ theme }) => theme.palette.
|
|
129
|
+
border-top: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
130
130
|
|
|
131
131
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
132
132
|
display: none;
|
|
@@ -23,12 +23,12 @@ export const Wrapper = styled.div `
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
26
|
-
border-top: ${({ $isViewerLite, theme }) => ($isViewerLite ? 'unset' : `1px solid ${theme.palette.
|
|
26
|
+
border-top: ${({ $isViewerLite, theme }) => ($isViewerLite ? 'unset' : `1px solid ${theme.palette.components.border.default}`)};
|
|
27
27
|
border-radius: ${({ $isViewerLite }) => !$isViewerLite && 0};
|
|
28
28
|
box-shadow: ${({ $isViewerLite }) => !$isViewerLite && 'none'};
|
|
29
29
|
|
|
30
30
|
&:last-child {
|
|
31
|
-
border-bottom: ${({ $isViewerLite, theme }) => ($isViewerLite ? 'unset' : `1px solid ${theme.palette.
|
|
31
|
+
border-bottom: ${({ $isViewerLite, theme }) => ($isViewerLite ? 'unset' : `1px solid ${theme.palette.components.border.default}`)};
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
`;
|
|
@@ -5,7 +5,7 @@ const getOutlineColor = ({ theme, isHover, isDisabled, isError, isChecked, }) =>
|
|
|
5
5
|
if (isDisabled) {
|
|
6
6
|
return isChecked
|
|
7
7
|
? theme.palette.components.disabled
|
|
8
|
-
: theme.palette.
|
|
8
|
+
: theme.palette.components.border.default;
|
|
9
9
|
}
|
|
10
10
|
if (isError) {
|
|
11
11
|
return isHover ? theme.palette.error[700] : theme.palette.error[800];
|
|
@@ -13,7 +13,9 @@ const getOutlineColor = ({ theme, isHover, isDisabled, isError, isChecked, }) =>
|
|
|
13
13
|
if (isChecked) {
|
|
14
14
|
return isHover ? theme.palette.primary[700] : theme.palette.primary[800];
|
|
15
15
|
}
|
|
16
|
-
return isHover
|
|
16
|
+
return isHover
|
|
17
|
+
? theme.palette.grey[900]
|
|
18
|
+
: theme.palette.components.border.default;
|
|
17
19
|
};
|
|
18
20
|
const getFillColor = ({ theme, isHover, isDisabled, isError, isChecked, }) => {
|
|
19
21
|
if (isDisabled) {
|
|
@@ -12,10 +12,14 @@ export const Wrapper = styled.label `
|
|
|
12
12
|
|
|
13
13
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
14
14
|
border-right: 1px solid
|
|
15
|
-
${({ $isError, theme }) => $isError
|
|
16
|
-
|
|
15
|
+
${({ $isError, theme }) => $isError
|
|
16
|
+
? theme.palette.error[700]
|
|
17
|
+
: theme.palette.components.border.default};
|
|
18
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
17
19
|
border-left: 1px solid
|
|
18
|
-
${({ $isError, theme }) => $isError
|
|
20
|
+
${({ $isError, theme }) => $isError
|
|
21
|
+
? theme.palette.error[700]
|
|
22
|
+
: theme.palette.components.border.default};
|
|
19
23
|
|
|
20
24
|
${({ $isDisabled, theme }) => $isDisabled &&
|
|
21
25
|
`
|
|
@@ -26,14 +30,18 @@ export const Wrapper = styled.label `
|
|
|
26
30
|
|
|
27
31
|
&:first-of-type {
|
|
28
32
|
border-top: 1px solid
|
|
29
|
-
${({ $isError, theme }) => $isError
|
|
33
|
+
${({ $isError, theme }) => $isError
|
|
34
|
+
? theme.palette.error[700]
|
|
35
|
+
: theme.palette.components.border.default};
|
|
30
36
|
border-top-left-radius: ${({ theme }) => theme.shape.medium};
|
|
31
37
|
border-top-right-radius: ${({ theme }) => theme.shape.medium};
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
&:last-of-type {
|
|
35
41
|
border-bottom: 1px solid
|
|
36
|
-
${({ $isError, theme }) => $isError
|
|
42
|
+
${({ $isError, theme }) => $isError
|
|
43
|
+
? theme.palette.error[700]
|
|
44
|
+
: theme.palette.components.border.default};
|
|
37
45
|
border-bottom-right-radius: ${({ theme }) => theme.shape.medium};
|
|
38
46
|
border-bottom-left-radius: ${({ theme }) => theme.shape.medium};
|
|
39
47
|
}
|
|
@@ -15,7 +15,7 @@ export const StyledDialogActions = styled(DialogActions) `
|
|
|
15
15
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
|
|
18
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
18
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
@@ -15,7 +15,7 @@ export const StyledDialogHeader = styled(DialogHeader) `
|
|
|
15
15
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
|
|
18
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
18
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
@@ -18,14 +18,14 @@ export const StyledStepper = styled(Stepper) `
|
|
|
18
18
|
min-height: 22px;
|
|
19
19
|
margin-left: 9px;
|
|
20
20
|
|
|
21
|
-
border-color: ${({ theme }) => theme.palette.
|
|
21
|
+
border-color: ${({ theme }) => theme.palette.components.border.default};
|
|
22
22
|
border-left-width: 2px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.${stepConnectorClasses.lineVertical} {
|
|
26
26
|
min-height: 14px;
|
|
27
27
|
|
|
28
|
-
border-color: ${({ theme }) => theme.palette.
|
|
28
|
+
border-color: ${({ theme }) => theme.palette.components.border.default};
|
|
29
29
|
border-left-width: 2px;
|
|
30
30
|
}
|
|
31
31
|
|
package/components/Tag/styles.js
CHANGED
|
@@ -230,7 +230,7 @@ export const Wrapper = styled.div `
|
|
|
230
230
|
variant: $variant,
|
|
231
231
|
})};
|
|
232
232
|
border: ${({ theme, $variant, $color }) => $variant !== 'text' && $color === 'default'
|
|
233
|
-
? `1px solid ${theme.palette.
|
|
233
|
+
? `1px solid ${theme.palette.components.border.default}`
|
|
234
234
|
: 'none'};
|
|
235
235
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
236
236
|
|
|
@@ -32,7 +32,7 @@ export const Item = styled('li', {
|
|
|
32
32
|
width: 0;
|
|
33
33
|
height: 100%;
|
|
34
34
|
|
|
35
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
35
|
+
border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
36
36
|
}
|
|
37
37
|
`;
|
|
38
38
|
export const ItemContent = styled('div', {
|
|
@@ -130,8 +130,8 @@ export const LabelWrapper = styled('div', {
|
|
|
130
130
|
/* Добавляем к высоте половину нижнего отступа, который не входит в высоту текущего элемента */
|
|
131
131
|
height: ${({ theme }) => `calc(50% + ${theme.spacing(1)}/2)`};
|
|
132
132
|
|
|
133
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
134
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
133
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
134
|
+
border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
135
135
|
border-radius: 0 0 0 ${({ theme }) => theme.shape.small};
|
|
136
136
|
}
|
|
137
137
|
`;
|
|
@@ -6,7 +6,7 @@ const getBorderColor = (theme, isLoading, isError) => {
|
|
|
6
6
|
if (isError) {
|
|
7
7
|
return theme.palette.error[400];
|
|
8
8
|
}
|
|
9
|
-
return theme.palette.
|
|
9
|
+
return theme.palette.components.border.default;
|
|
10
10
|
};
|
|
11
11
|
export const Wrapper = styled('div', {
|
|
12
12
|
shouldForwardProp: (prop) => !['$isLoading', '$isError'].includes(prop),
|
|
@@ -13,9 +13,13 @@ type Props = {
|
|
|
13
13
|
* Используется вместе с хуком `useLoadingState`
|
|
14
14
|
*/
|
|
15
15
|
isShowLoader?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Класс применяемый для корневого элемента
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
16
20
|
};
|
|
17
21
|
/**
|
|
18
22
|
* Дефолтный лоадер загрузки
|
|
19
23
|
*/
|
|
20
|
-
export declare const LoadingPlaceholder: ({ title, content, isShowLoader, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const LoadingPlaceholder: ({ title, content, isShowLoader, className, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
25
|
export {};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Loader } from '../../Loader';
|
|
3
3
|
import { Typography } from '../../Typography';
|
|
4
|
+
import { classNames } from '../../utils/classNames';
|
|
4
5
|
import { loadingPlaceholderClassnames } from './constants';
|
|
5
6
|
import { LoadingContainer } from './styles';
|
|
6
7
|
/**
|
|
7
8
|
* Дефолтный лоадер загрузки
|
|
8
9
|
*/
|
|
9
|
-
export const LoadingPlaceholder = ({ title, content, isShowLoader = true, }) => {
|
|
10
|
+
export const LoadingPlaceholder = ({ title, content, isShowLoader = true, className, }) => {
|
|
10
11
|
if (!isShowLoader) {
|
|
11
|
-
return _jsx(LoadingContainer, { className: loadingPlaceholderClassnames.root });
|
|
12
|
+
return (_jsx(LoadingContainer, { className: classNames(loadingPlaceholderClassnames.root, className) }));
|
|
12
13
|
}
|
|
13
14
|
if (content) {
|
|
14
|
-
return (_jsx(LoadingContainer, { className: loadingPlaceholderClassnames.root, children: content }));
|
|
15
|
+
return (_jsx(LoadingContainer, { className: classNames(loadingPlaceholderClassnames.root, className), children: content }));
|
|
15
16
|
}
|
|
16
|
-
return (_jsxs(LoadingContainer, { className: loadingPlaceholderClassnames.root, children: [_jsx(Loader, {}), title && _jsx(Typography, { variant: "h4", children: title })] }));
|
|
17
|
+
return (_jsxs(LoadingContainer, { className: classNames(loadingPlaceholderClassnames.root, className), children: [_jsx(Loader, {}), title && _jsx(Typography, { variant: "h4", children: title })] }));
|
|
17
18
|
};
|
|
@@ -77,7 +77,7 @@ const getBorder = ({ theme, variant, color, buttonState, selected, disabled, })
|
|
|
77
77
|
return `1px solid ${theme.palette[color]['900']};`;
|
|
78
78
|
}
|
|
79
79
|
if (buttonState === 'default') {
|
|
80
|
-
return `1px solid ${theme.palette[color]['300']};`;
|
|
80
|
+
return `1px solid ${color === 'grey' ? theme.palette.components.border.default : theme.palette[color]['300']};`;
|
|
81
81
|
}
|
|
82
82
|
if (buttonState === 'hover') {
|
|
83
83
|
return `1px solid ${theme.palette[color]['700']};`;
|