@astral/ui 4.55.3 → 4.56.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/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/Head/styles.js +1 -1
- package/components/DataGrid/PinnedSections/Section/styles.js +2 -2
- package/components/DataGrid/Row/NestedChildren/styles.js +3 -3
- package/components/DataGrid/Row/styles.js +3 -3
- package/components/DateRangePicker/styles.js +1 -1
- package/components/Description/Name/styles.js +1 -1
- 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/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/PageHeader.js +10 -3
- package/components/PageHeader/constants.d.ts +1 -0
- package/components/PageHeader/constants.js +1 -0
- package/components/PageHeader/styles.js +6 -2
- package/components/PageLayoutLoader/styles.js +1 -1
- package/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +1 -1
- package/components/PageLayoutSection/styles.js +1 -1
- 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/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/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/Head/styles.js +1 -1
- package/node/components/DataGrid/PinnedSections/Section/styles.js +2 -2
- package/node/components/DataGrid/Row/NestedChildren/styles.js +3 -3
- package/node/components/DataGrid/Row/styles.js +3 -3
- package/node/components/DateRangePicker/styles.js +1 -1
- package/node/components/Description/Name/styles.js +1 -1
- 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/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/PageHeader.js +10 -3
- package/node/components/PageHeader/constants.d.ts +1 -0
- package/node/components/PageHeader/constants.js +1 -0
- package/node/components/PageHeader/styles.js +6 -2
- package/node/components/PageLayoutLoader/styles.js +1 -1
- package/node/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +1 -1
- package/node/components/PageLayoutSection/styles.js +1 -1
- 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/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
|
@@ -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
|
|
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.
|
|
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.
|
|
24
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
27
|
exports.DesktopTitleWrapper = styled_1.styled.div `
|
|
@@ -10,7 +10,7 @@ const MobilePageActions_1 = require("./MobilePageActions");
|
|
|
10
10
|
const styles_1 = require("./styles");
|
|
11
11
|
const Title_1 = require("./Title");
|
|
12
12
|
const useLogic_1 = require("./useLogic");
|
|
13
|
-
const
|
|
13
|
+
const mobilePageHeaderCva = (0, cva_1.cva)(constants_1.pageHeaderClassnames.pageHeaderMobileTitle, {
|
|
14
14
|
variants: {
|
|
15
15
|
hasTitle: {
|
|
16
16
|
true: constants_1.pageHeaderClassnames.hasTitle,
|
|
@@ -20,12 +20,19 @@ const mobilePageHeader = (0, cva_1.cva)(constants_1.pageHeaderClassnames.pageHea
|
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
|
+
const rootCva = (0, cva_1.cva)(constants_1.pageHeaderClassnames.root, {
|
|
24
|
+
variants: {
|
|
25
|
+
hasActions: {
|
|
26
|
+
true: constants_1.pageHeaderClassnames.hasActions,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
23
30
|
const PageHeader = (props) => {
|
|
24
31
|
const { title, description, subheader, breadcrumbs, actions, backButton, className, filters, } = props;
|
|
25
32
|
const { isLoading, mobileTitleActions, isShowMobileActions } = (0, useLogic_1.useLogic)(props);
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(styles_1.MobileTitleWrapper, { className:
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(styles_1.MobileTitleWrapper, { className: mobilePageHeaderCva({
|
|
27
34
|
hasTitle: Boolean(title) || isLoading,
|
|
28
35
|
hasBackButton: Boolean(backButton),
|
|
29
|
-
}), children: [(0, jsx_runtime_1.jsx)(Title_1.Title, { backButton: backButton, title: title, isLoading: isLoading }), mobileTitleActions && mobileTitleActions] }), (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: (0, classNames_1.classNames)(
|
|
36
|
+
}), children: [(0, jsx_runtime_1.jsx)(Title_1.Title, { backButton: backButton, title: title, isLoading: isLoading }), mobileTitleActions && mobileTitleActions] }), (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: (0, classNames_1.classNames)(rootCva({ hasActions: Boolean(actions) }), className), children: (0, jsx_runtime_1.jsx)(HeaderContent_1.HeaderContent, { breadcrumbs: breadcrumbs, backButton: backButton, title: title, description: description, actions: actions, subheader: subheader, filters: filters, isLoading: isLoading }) }), isShowMobileActions && ((0, jsx_runtime_1.jsx)(MobilePageActions_1.MobilePageActions, { className: (0, classNames_1.classNames)(constants_1.pageHeaderClassnames.pageHeaderActions), isLoading: isLoading, ...actions }))] }));
|
|
30
37
|
};
|
|
31
38
|
exports.PageHeader = PageHeader;
|
|
@@ -13,5 +13,6 @@ exports.pageHeaderClassnames = {
|
|
|
13
13
|
quickFilters: (0, createUIKitClassname_1.createUIKitClassname)('page-header__quick-filters'),
|
|
14
14
|
hasFilters: (0, createUIKitClassname_1.createUIKitClassname)('page-header_has-filters'),
|
|
15
15
|
hasSubheader: (0, createUIKitClassname_1.createUIKitClassname)('page-header_has-subheader'),
|
|
16
|
+
hasActions: (0, createUIKitClassname_1.createUIKitClassname)('page-header_has-actions'),
|
|
16
17
|
};
|
|
17
18
|
exports.PAGE_HEADER_HEIGHT_MOBILE = '48px';
|
|
@@ -15,6 +15,10 @@ exports.Wrapper = styled_1.styled.header `
|
|
|
15
15
|
|
|
16
16
|
${({ theme }) => theme.breakpoints.down('laptop')} {
|
|
17
17
|
padding: ${({ theme }) => theme.spacing(0, 4)};
|
|
18
|
+
|
|
19
|
+
&.${constants_1.pageHeaderClassnames.hasActions} {
|
|
20
|
+
grid-template-columns: min-content 1fr auto auto;
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
@@ -40,7 +44,7 @@ exports.Wrapper = styled_1.styled.header `
|
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
43
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
47
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
|
|
@@ -78,7 +82,7 @@ exports.MobileTitleWrapper = styled_1.styled.div `
|
|
|
78
82
|
.${constants_1.pageHeaderClassnames.filters},
|
|
79
83
|
.${constants_1.pageHeaderClassnames.subheader}
|
|
80
84
|
))) {
|
|
81
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
85
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
82
86
|
}
|
|
83
87
|
/* stylelint-enable plugin/no-unsupported-browser-features */
|
|
84
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.
|
|
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')} {
|
|
@@ -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.
|
|
20
|
+
border-top: ${({ theme }) => `1px solid ${theme.palette.components.border.default}`};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
${({ theme }) => theme.breakpoints.down('laptop')} {
|
|
@@ -7,7 +7,7 @@ exports.Section = styled_1.styled.section `
|
|
|
7
7
|
margin: ${({ theme }) => theme.spacing(0, 4)};
|
|
8
8
|
|
|
9
9
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
10
|
-
border: 1px solid ${({ theme }) => theme.palette.
|
|
10
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
11
11
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
12
12
|
}
|
|
13
13
|
`;
|
|
@@ -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.
|
|
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.
|
|
54
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
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.
|
|
84
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
19
|
-
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
34
|
+
border-color: ${({ theme }) => theme.palette.components.border.default};
|
|
35
35
|
border-left-width: 2px;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -235,7 +235,7 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
235
235
|
variant: $variant,
|
|
236
236
|
})};
|
|
237
237
|
border: ${({ theme, $variant, $color }) => $variant !== 'text' && $color === 'default'
|
|
238
|
-
? `1px solid ${theme.palette.
|
|
238
|
+
? `1px solid ${theme.palette.components.border.default}`
|
|
239
239
|
: 'none'};
|
|
240
240
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
241
241
|
|
|
@@ -35,7 +35,7 @@ exports.Item = (0, styled_1.styled)('li', {
|
|
|
35
35
|
width: 0;
|
|
36
36
|
height: 100%;
|
|
37
37
|
|
|
38
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
38
|
+
border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
39
39
|
}
|
|
40
40
|
`;
|
|
41
41
|
exports.ItemContent = (0, styled_1.styled)('div', {
|
|
@@ -133,8 +133,8 @@ exports.LabelWrapper = (0, styled_1.styled)('div', {
|
|
|
133
133
|
/* Добавляем к высоте половину нижнего отступа, который не входит в высоту текущего элемента */
|
|
134
134
|
height: ${({ theme }) => `calc(50% + ${theme.spacing(1)}/2)`};
|
|
135
135
|
|
|
136
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.
|
|
137
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
136
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
137
|
+
border-left: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
138
138
|
border-radius: 0 0 0 ${({ theme }) => theme.shape.small};
|
|
139
139
|
}
|
|
140
140
|
`;
|
|
@@ -9,7 +9,7 @@ const getBorderColor = (theme, isActive, isError) => {
|
|
|
9
9
|
if (isError) {
|
|
10
10
|
return theme.palette.error[900];
|
|
11
11
|
}
|
|
12
|
-
return theme.palette.
|
|
12
|
+
return theme.palette.components.border.default;
|
|
13
13
|
};
|
|
14
14
|
exports.Wrapper = styled_1.styled.div `
|
|
15
15
|
display: flex;
|
|
@@ -9,7 +9,7 @@ const getBorderColor = (theme, isLoading, isError) => {
|
|
|
9
9
|
if (isError) {
|
|
10
10
|
return theme.palette.error[400];
|
|
11
11
|
}
|
|
12
|
-
return theme.palette.
|
|
12
|
+
return theme.palette.components.border.default;
|
|
13
13
|
};
|
|
14
14
|
exports.Wrapper = (0, styled_1.styled)('div', {
|
|
15
15
|
shouldForwardProp: (prop) => !['$isLoading', '$isError'].includes(prop),
|
|
@@ -84,7 +84,7 @@ const getBorder = ({ theme, variant, color, buttonState, selected, disabled, })
|
|
|
84
84
|
return `1px solid ${theme.palette[color]['900']};`;
|
|
85
85
|
}
|
|
86
86
|
if (buttonState === 'default') {
|
|
87
|
-
return `1px solid ${theme.palette[color]['300']};`;
|
|
87
|
+
return `1px solid ${color === 'grey' ? theme.palette.components.border.default : theme.palette[color]['300']};`;
|
|
88
88
|
}
|
|
89
89
|
if (buttonState === 'hover') {
|
|
90
90
|
return `1px solid ${theme.palette[color]['700']};`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiDivider = void 0;
|
|
4
|
+
exports.MuiDivider = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root({ theme }) {
|
|
7
|
+
return {
|
|
8
|
+
borderColor: theme.palette.components.border.default,
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiListItem = void 0;
|
|
4
|
+
exports.MuiListItem = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
divider({ theme }) {
|
|
7
|
+
return {
|
|
8
|
+
borderColor: theme.palette.components.border.default,
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
@@ -54,7 +54,7 @@ exports.MuiOutlinedInput = {
|
|
|
54
54
|
},
|
|
55
55
|
'&::placeholder': {
|
|
56
56
|
opacity: 1,
|
|
57
|
-
color: theme.palette.grey[
|
|
57
|
+
color: theme.palette.grey[500],
|
|
58
58
|
},
|
|
59
59
|
};
|
|
60
60
|
},
|
|
@@ -67,7 +67,7 @@ exports.MuiOutlinedInput = {
|
|
|
67
67
|
notchedOutline({ theme }) {
|
|
68
68
|
return {
|
|
69
69
|
borderWidth: 1,
|
|
70
|
-
borderColor: theme.palette.
|
|
70
|
+
borderColor: theme.palette.components.border.default,
|
|
71
71
|
top: 0,
|
|
72
72
|
transition: theme.transitions.create(['border-color'], {
|
|
73
73
|
easing: theme.transitions.easing.easeInOut,
|
|
@@ -7,7 +7,10 @@ exports.MuiStepConnector = {
|
|
|
7
7
|
return { top: theme.microSpacing(5) };
|
|
8
8
|
},
|
|
9
9
|
lineHorizontal({ theme }) {
|
|
10
|
-
return {
|
|
10
|
+
return {
|
|
11
|
+
borderTopWidth: 2,
|
|
12
|
+
borderColor: theme.palette.components.border.default,
|
|
13
|
+
};
|
|
11
14
|
},
|
|
12
15
|
},
|
|
13
16
|
};
|
|
@@ -10,12 +10,14 @@ const MuiDialog_1 = require("./MuiDialog");
|
|
|
10
10
|
const MuiDialogActions_1 = require("./MuiDialogActions");
|
|
11
11
|
const MuiDialogContent_1 = require("./MuiDialogContent");
|
|
12
12
|
const MuiDialogTitle_1 = require("./MuiDialogTitle");
|
|
13
|
+
const MuiDivider_1 = require("./MuiDivider");
|
|
13
14
|
const MuiDrawer_1 = require("./MuiDrawer");
|
|
14
15
|
const MuiFormControlLabel_1 = require("./MuiFormControlLabel");
|
|
15
16
|
const MuiFormHelperText_1 = require("./MuiFormHelperText");
|
|
16
17
|
const MuiFormLabel_1 = require("./MuiFormLabel");
|
|
17
18
|
const MuiInputLabel_1 = require("./MuiInputLabel");
|
|
18
19
|
const MuiLinearProgress_1 = require("./MuiLinearProgress");
|
|
20
|
+
const MuiListItem_1 = require("./MuiListItem");
|
|
19
21
|
const MuiListItemButton_1 = require("./MuiListItemButton");
|
|
20
22
|
const MuiListItemText_1 = require("./MuiListItemText");
|
|
21
23
|
const MuiListSubheader_1 = require("./MuiListSubheader");
|
|
@@ -52,6 +54,7 @@ const getComponents = () => {
|
|
|
52
54
|
MuiAlert: MuiAlert_1.MuiAlert,
|
|
53
55
|
MuiButton: MuiButton_1.MuiButton,
|
|
54
56
|
MuiButtonBase: MuiButtonBase_1.MuiButtonBase,
|
|
57
|
+
MuiDivider: MuiDivider_1.MuiDivider,
|
|
55
58
|
MuiTypography: MuiTypography_1.MuiTypography,
|
|
56
59
|
MuiInputLabel: MuiInputLabel_1.MuiInputLabel,
|
|
57
60
|
MuiOutlinedInput: MuiOutlinedInput_1.MuiOutlinedInput,
|
|
@@ -75,6 +78,7 @@ const getComponents = () => {
|
|
|
75
78
|
MuiPaginationItem: MuiPaginationItem_1.MuiPaginationItem,
|
|
76
79
|
MuiPaper: MuiPaper_1.MuiPaper,
|
|
77
80
|
MuiCircularProgress: MuiCircularProgress_1.MuiCircularProgress,
|
|
81
|
+
MuiListItem: MuiListItem_1.MuiListItem,
|
|
78
82
|
MuiListItemButton: MuiListItemButton_1.MuiListItemButton,
|
|
79
83
|
MuiListItemText: MuiListItemText_1.MuiListItemText,
|
|
80
84
|
MuiLinearProgress: MuiLinearProgress_1.MuiLinearProgress,
|