@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
|
@@ -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,
|
|
@@ -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.
|
|
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
|
|
4
|
+
const constants_1 = require("../Description/constants");
|
|
5
5
|
const styled_1 = require("../styled");
|
|
6
|
-
const
|
|
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
|
-
&.${
|
|
12
|
+
&.${constants_3.descriptionCellClassnames.hasIcon} {
|
|
12
13
|
gap: ${({ theme }) => theme.spacing(2)};
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
&.${
|
|
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
|
-
|
|
32
|
-
.${
|
|
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.
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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,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,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.
|
|
15
|
-
border-left: 1px solid ${({ theme }) => theme.palette.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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 `
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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)((
|
|
20
|
-
|
|
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.
|
|
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,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
|
|
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.
|
|
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.
|
|
11
|
+
border: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
11
12
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
12
13
|
}
|
|
13
14
|
`;
|
|
14
|
-
exports.
|
|
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.
|
|
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
|
|