@astral/ui 4.120.1 → 4.122.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/components/DataGrid/Cell/useLogic/useLogic.js +8 -2
  2. package/components/DataGrid/types.d.ts +1 -1
  3. package/components/DataGrid/utils/getGridTemplateColumns/getGridTemplateColumns.js +1 -1
  4. package/components/Dialog/Dialog.d.ts +1 -1
  5. package/components/Dialog/Dialog.js +20 -4
  6. package/components/Dialog/constants.d.ts +7 -0
  7. package/components/Dialog/constants.js +7 -0
  8. package/components/Dialog/styles.d.ts +0 -4
  9. package/components/Dialog/styles.js +48 -9
  10. package/components/Dialog/types.d.ts +9 -1
  11. package/components/Dialog/useLogic/useLogic.d.ts +6 -3
  12. package/components/Dialog/useLogic/useLogic.js +9 -1
  13. package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +2 -0
  14. package/components/Stepper/Stepper.d.ts +1 -1
  15. package/components/Stepper/Stepper.js +1 -1
  16. package/components/StepperWizard/StepperWizard.d.ts +1 -1
  17. package/components/StepperWizard/StepperWizard.js +1 -1
  18. package/components/TreeAsyncAutocomplete/OptionsModal/OptionsModal.js +1 -1
  19. package/components/TreeAsyncAutocomplete/OptionsModal/styles.d.ts +0 -4
  20. package/components/TreeAsyncAutocomplete/OptionsModal/styles.js +3 -27
  21. package/components/TreeAutocomplete/OptionsModal/OptionsModal.js +1 -1
  22. package/components/TreeAutocomplete/OptionsModal/styles.d.ts +2 -4
  23. package/components/TreeAutocomplete/OptionsModal/styles.js +25 -10
  24. package/components/TreeAutocomplete/index.d.ts +1 -0
  25. package/components/TreeAutocomplete/index.js +1 -0
  26. package/components/TreeLikeAsyncAutocomplete/OptionsModal/OptionsModal.js +1 -1
  27. package/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.d.ts +0 -4
  28. package/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +7 -23
  29. package/components/TreeLikeAutocomplete/OptionsModal/OptionsModal.js +1 -1
  30. package/components/TreeLikeAutocomplete/OptionsModal/styles.d.ts +0 -4
  31. package/components/TreeLikeAutocomplete/OptionsModal/styles.js +3 -27
  32. package/components/utils/getCssSize/getCssSize.d.ts +4 -0
  33. package/components/utils/getCssSize/getCssSize.js +4 -0
  34. package/components/utils/getCssSize/index.d.ts +1 -0
  35. package/components/utils/getCssSize/index.js +1 -0
  36. package/hook-form/FormFilters/FormFiltersDialog/styles.d.ts +2 -0
  37. package/node/components/DataGrid/Cell/useLogic/useLogic.js +8 -2
  38. package/node/components/DataGrid/types.d.ts +1 -1
  39. package/node/components/DataGrid/utils/getGridTemplateColumns/getGridTemplateColumns.js +1 -1
  40. package/node/components/Dialog/Dialog.d.ts +1 -1
  41. package/node/components/Dialog/Dialog.js +20 -4
  42. package/node/components/Dialog/constants.d.ts +7 -0
  43. package/node/components/Dialog/constants.js +7 -0
  44. package/node/components/Dialog/styles.d.ts +0 -4
  45. package/node/components/Dialog/styles.js +48 -9
  46. package/node/components/Dialog/types.d.ts +9 -1
  47. package/node/components/Dialog/useLogic/useLogic.d.ts +6 -3
  48. package/node/components/Dialog/useLogic/useLogic.js +9 -1
  49. package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +2 -0
  50. package/node/components/Stepper/Stepper.d.ts +1 -1
  51. package/node/components/Stepper/Stepper.js +1 -1
  52. package/node/components/StepperWizard/StepperWizard.d.ts +1 -1
  53. package/node/components/StepperWizard/StepperWizard.js +1 -1
  54. package/node/components/TreeAsyncAutocomplete/OptionsModal/OptionsModal.js +1 -1
  55. package/node/components/TreeAsyncAutocomplete/OptionsModal/styles.d.ts +0 -4
  56. package/node/components/TreeAsyncAutocomplete/OptionsModal/styles.js +3 -27
  57. package/node/components/TreeAutocomplete/OptionsModal/OptionsModal.js +1 -1
  58. package/node/components/TreeAutocomplete/OptionsModal/styles.d.ts +2 -4
  59. package/node/components/TreeAutocomplete/OptionsModal/styles.js +25 -9
  60. package/node/components/TreeAutocomplete/index.d.ts +1 -0
  61. package/node/components/TreeAutocomplete/index.js +3 -1
  62. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/OptionsModal.js +1 -1
  63. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.d.ts +0 -4
  64. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +6 -22
  65. package/node/components/TreeLikeAutocomplete/OptionsModal/OptionsModal.js +1 -1
  66. package/node/components/TreeLikeAutocomplete/OptionsModal/styles.d.ts +0 -4
  67. package/node/components/TreeLikeAutocomplete/OptionsModal/styles.js +3 -27
  68. package/node/components/utils/getCssSize/getCssSize.d.ts +4 -0
  69. package/node/components/utils/getCssSize/getCssSize.js +8 -0
  70. package/node/components/utils/getCssSize/index.d.ts +1 -0
  71. package/node/components/utils/getCssSize/index.js +5 -0
  72. package/node/hook-form/FormFilters/FormFiltersDialog/styles.d.ts +2 -0
  73. package/package.json +1 -1
@@ -10,8 +10,14 @@ export const useLogic = ({ row, href, target, cell, emptyCellValue, startAdornme
10
10
  return Boolean(value) || value === 0;
11
11
  };
12
12
  const formattedValue = useMemo(() => {
13
- if (format && isValidValue(format(row))) {
14
- return format(row);
13
+ if (format) {
14
+ const value = format(row);
15
+ if (isValidValue(value)) {
16
+ return value;
17
+ }
18
+ if (field && typeof row[field] === 'object') {
19
+ return emptyCellValue;
20
+ }
15
21
  }
16
22
  if (field && isValidValue(row[field])) {
17
23
  return row[field];
@@ -332,7 +332,7 @@ export type DataGridSingleColumn<TData extends Record<string, CellValue>> = {
332
332
  align?: AlignVariant;
333
333
  /**
334
334
  * @example {width: '100%'}
335
- * Ширина ячейка. Допустимые единицы: px, %, fr
335
+ * Ширина ячейки. Допустимые значения: число (преобразуется в px) или строка с единицами px, %, fr
336
336
  */
337
337
  width?: CSSProperties['width'];
338
338
  /**
@@ -1,6 +1,6 @@
1
1
  export const getGridTemplateColumns = (columns) => {
2
2
  const columnsWidth = columns.map(({ width, minWidth }) => {
3
- const maxWidth = width || '1fr';
3
+ const maxWidth = typeof width === 'number' ? `${width}px` : width || '1fr';
4
4
  if (minWidth) {
5
5
  return `minmax(${minWidth}, ${maxWidth})`;
6
6
  }
@@ -1,2 +1,2 @@
1
1
  import type { DialogProps } from './types';
2
- export declare const Dialog: ({ children, title, disableBackdropClick, onClose, size, headerContent, className, classes, disableMobileDrawer, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Dialog: ({ children, title, disableBackdropClick, onClose, size, headerContent, className, classes, disableMobileDrawer, height, width, style, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,20 +8,36 @@ import { StyledDialog } from './styles';
8
8
  import { useLogic } from './useLogic';
9
9
  const dialogCva = cva(dialogClassnames.root, {
10
10
  variants: {
11
+ size: {
12
+ xs: dialogClassnames.sizeXs,
13
+ sm: dialogClassnames.sizeSm,
14
+ md: dialogClassnames.sizeMd,
15
+ lg: dialogClassnames.sizeLg,
16
+ xl: dialogClassnames.sizeXl,
17
+ },
18
+ hasCustomWidth: { true: dialogClassnames.withCustomWidth },
19
+ hasCustomHeight: { true: dialogClassnames.withCustomHeight },
11
20
  withoutTitle: {
12
21
  true: dialogClassnames.withoutTitle,
13
22
  },
14
23
  },
15
24
  });
16
- export const Dialog = ({ children, title, disableBackdropClick, onClose, size = 'md', headerContent, className, classes, disableMobileDrawer, ...props }) => {
17
- const { handleClose, shouldRenderDrawer, dialogClasses } = useLogic({
25
+ export const Dialog = ({ children, title, disableBackdropClick, onClose, size = 'md', headerContent, className, classes, disableMobileDrawer, height, width, style, ...props }) => {
26
+ const { handleClose, shouldRenderDrawer, dialogClasses, dialogCssVars, hasCustomWidth, hasCustomHeight, } = useLogic({
18
27
  onClose,
19
28
  disableBackdropClick,
20
29
  classes,
21
30
  disableMobileDrawer,
31
+ height,
32
+ width,
22
33
  });
23
34
  if (shouldRenderDrawer) {
24
- return (_jsx(BottomDrawer, { onClose: handleClose, title: title, headerContent: headerContent, className: className, ...props, children: children }));
35
+ return (_jsx(BottomDrawer, { onClose: handleClose, title: title, headerContent: headerContent, className: className, style: style, ...props, children: children }));
25
36
  }
26
- return (_jsxs(StyledDialog, { "$size": size, onClose: handleClose, className: cn(dialogCva({ withoutTitle: !title }), className), classes: dialogClasses, ...props, children: [title && (_jsx(DialogTitle, { onClose: onClose, headerContent: headerContent, children: title })), children] }));
37
+ return (_jsxs(StyledDialog, { onClose: handleClose, className: cn(dialogCva({
38
+ withoutTitle: !title,
39
+ size,
40
+ hasCustomWidth,
41
+ hasCustomHeight,
42
+ }), className), classes: dialogClasses, ...props, style: { ...dialogCssVars, ...style }, children: [title && (_jsx(DialogTitle, { onClose: onClose, headerContent: headerContent, children: title })), children] }));
27
43
  };
@@ -24,4 +24,11 @@ export declare const dialogClassnames: {
24
24
  root: string;
25
25
  withoutTitle: string;
26
26
  paper: string;
27
+ sizeXs: string;
28
+ sizeSm: string;
29
+ sizeMd: string;
30
+ sizeLg: string;
31
+ sizeXl: string;
32
+ withCustomWidth: string;
33
+ withCustomHeight: string;
27
34
  };
@@ -10,4 +10,11 @@ export const dialogClassnames = {
10
10
  root: createUIKitClassname('dialog'),
11
11
  withoutTitle: createUIKitClassname('dialog_without-title'),
12
12
  paper: createUIKitClassname('dialog__paper'),
13
+ sizeXs: createUIKitClassname('dialog_size-xs'),
14
+ sizeSm: createUIKitClassname('dialog_size-sm'),
15
+ sizeMd: createUIKitClassname('dialog_size-md'),
16
+ sizeLg: createUIKitClassname('dialog_size-lg'),
17
+ sizeXl: createUIKitClassname('dialog_size-xl'),
18
+ withCustomWidth: createUIKitClassname('dialog_with-custom-width'),
19
+ withCustomHeight: createUIKitClassname('dialog_with-custom-height'),
13
20
  };
@@ -1,7 +1,3 @@
1
- type DialogSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
1
  export declare const StyledDialog: import("../styled").StyledComponent<import("@mui/material/Dialog").DialogProps & {
3
2
  theme?: import("@emotion/react").Theme | undefined;
4
- } & {
5
- $size: DialogSize;
6
3
  }, {}, {}>;
7
- export {};
@@ -4,12 +4,37 @@ import { dialogActionsClassnames } from '../DialogActions';
4
4
  import { dialogContentClassnames } from '../DialogContent';
5
5
  import { styled } from '../styled';
6
6
  import { DIALOG_SIZES, dialogClassnames } from './constants';
7
- const getSize = (size) => {
8
- return DIALOG_SIZES[size] || DIALOG_SIZES.md;
9
- };
10
- export const StyledDialog = styled(MuiDialog, {
11
- shouldForwardProp: (prop) => !['$size'].includes(prop),
12
- }) `
7
+ export const StyledDialog = styled(MuiDialog) `
8
+ --dialog-width: auto;
9
+ --dialog-height: auto;
10
+ --dialog-min-width: ${DIALOG_SIZES.md.minWidth};
11
+ --dialog-max-width: ${DIALOG_SIZES.md.maxWidth};
12
+
13
+ &.${dialogClassnames.sizeXs} {
14
+ --dialog-min-width: ${DIALOG_SIZES.xs.minWidth};
15
+ --dialog-max-width: ${DIALOG_SIZES.xs.maxWidth};
16
+ }
17
+
18
+ &.${dialogClassnames.sizeSm} {
19
+ --dialog-min-width: ${DIALOG_SIZES.sm.minWidth};
20
+ --dialog-max-width: ${DIALOG_SIZES.sm.maxWidth};
21
+ }
22
+
23
+ &.${dialogClassnames.sizeMd} {
24
+ --dialog-min-width: ${DIALOG_SIZES.md.minWidth};
25
+ --dialog-max-width: ${DIALOG_SIZES.md.maxWidth};
26
+ }
27
+
28
+ &.${dialogClassnames.sizeLg} {
29
+ --dialog-min-width: ${DIALOG_SIZES.lg.minWidth};
30
+ --dialog-max-width: ${DIALOG_SIZES.lg.maxWidth};
31
+ }
32
+
33
+ &.${dialogClassnames.sizeXl} {
34
+ --dialog-min-width: ${DIALOG_SIZES.xl.minWidth};
35
+ --dialog-max-width: ${DIALOG_SIZES.xl.maxWidth};
36
+ }
37
+
13
38
  &.${dialogClassnames.root} .${backdropClasses.root} {
14
39
  background-color: ${({ theme }) => theme.palette.background.modalShadow};
15
40
  }
@@ -21,8 +46,8 @@ export const StyledDialog = styled(MuiDialog, {
21
46
  }
22
47
 
23
48
  .${dialogClassnames.paper} {
24
- min-width: ${({ $size }) => getSize($size).minWidth};
25
- max-width: ${({ $size }) => getSize($size).maxWidth};
49
+ min-width: var(--dialog-min-width);
50
+ max-width: var(--dialog-max-width);
26
51
 
27
52
  border-radius: calc(${({ theme }) => theme.shape.medium} * 2);
28
53
  box-shadow: ${({ theme }) => theme.elevation[300]};
@@ -36,9 +61,23 @@ export const StyledDialog = styled(MuiDialog, {
36
61
  }
37
62
  }
38
63
 
64
+ &.${dialogClassnames.withCustomWidth} .${dialogClassnames.paper} {
65
+ ${({ theme }) => theme.breakpoints.up('mobile')} {
66
+ width: var(--dialog-width);
67
+ min-width: auto;
68
+ max-width: calc(100% - ${({ theme }) => theme.spacing(16)});
69
+ }
70
+ }
71
+
72
+ &.${dialogClassnames.withCustomHeight} .${dialogClassnames.paper} {
73
+ ${({ theme }) => theme.breakpoints.up('mobile')} {
74
+ height: var(--dialog-height);
75
+ }
76
+ }
77
+
39
78
  /* Причина игнора: Не критично для отображения */
40
79
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
41
80
  &:not(:has(.${dialogActionsClassnames.root})) .${dialogContentClassnames.root} {
42
- padding-bottom: ${({ theme }) => theme.spacing(6)};
81
+ padding-bottom: ${({ theme }) => theme.spacing(6)};
43
82
  }
44
83
  `;
@@ -1,5 +1,5 @@
1
1
  import type { DialogProps as MuiDialogProps } from '@mui/material/Dialog';
2
- import { type ReactElement, type ReactNode } from 'react';
2
+ import { type CSSProperties, type ReactElement, type ReactNode } from 'react';
3
3
  import { type WithoutEmotionSpecific } from '../types/WithoutEmotionSpecific';
4
4
  export type DialogSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  export type DialogProps = WithoutEmotionSpecific<Omit<MuiDialogProps, 'title' | 'maxWidth'>> & {
@@ -16,6 +16,14 @@ export type DialogProps = WithoutEmotionSpecific<Omit<MuiDialogProps, 'title' |
16
16
  * @default md
17
17
  */
18
18
  size?: DialogSize;
19
+ /**
20
+ * Высота всего окна, включая заголовок и действия: число в px или CSS-значение.
21
+ */
22
+ height?: CSSProperties['height'];
23
+ /**
24
+ * Ширина всего окна: число в px или CSS-значение. Переопределяет size.
25
+ */
26
+ width?: CSSProperties['width'];
19
27
  /**
20
28
  * Дополнительный контент хедера
21
29
  */
@@ -1,7 +1,8 @@
1
- import { type MouseEvent } from 'react';
1
+ import { type CSSProperties, type MouseEvent } from 'react';
2
2
  import { type DialogProps } from '../types';
3
- type UseLogicParams = Pick<DialogProps, 'onClose' | 'disableBackdropClick' | 'classes' | 'disableMobileDrawer'>;
4
- export declare const useLogic: ({ onClose, disableBackdropClick, classes, disableMobileDrawer, }: UseLogicParams) => {
3
+ type UseLogicParams = Pick<DialogProps, 'onClose' | 'disableBackdropClick' | 'classes' | 'disableMobileDrawer' | 'height' | 'width'>;
4
+ export declare const useLogic: ({ onClose, disableBackdropClick, classes, disableMobileDrawer, height, width, }: UseLogicParams) => {
5
+ dialogCssVars: CSSProperties;
5
6
  handleClose: ((event: MouseEvent<HTMLButtonElement>, reason: 'backdropClick' | 'escapeKeyDown') => void) | undefined;
6
7
  shouldRenderDrawer: boolean;
7
8
  dialogClasses: {
@@ -21,5 +22,7 @@ export declare const useLogic: ({ onClose, disableBackdropClick, classes, disabl
21
22
  paperFullScreen?: string | undefined;
22
23
  paper: string;
23
24
  };
25
+ hasCustomWidth: boolean;
26
+ hasCustomHeight: boolean;
24
27
  };
25
28
  export {};
@@ -1,7 +1,8 @@
1
1
  import { useViewportType } from '../../useViewportType';
2
2
  import { cn } from '../../utils/cn';
3
+ import { getCssSize } from '../../utils/getCssSize';
3
4
  import { dialogClassnames } from '../constants';
4
- export const useLogic = ({ onClose, disableBackdropClick, classes, disableMobileDrawer, }) => {
5
+ export const useLogic = ({ onClose, disableBackdropClick, classes, disableMobileDrawer, height, width, }) => {
5
6
  const { isMobile } = useViewportType();
6
7
  const handleClose = onClose &&
7
8
  ((event, reason) => {
@@ -15,9 +16,16 @@ export const useLogic = ({ onClose, disableBackdropClick, classes, disableMobile
15
16
  paper: cn(dialogClassnames.paper, paper),
16
17
  ...restClasses,
17
18
  };
19
+ const dialogCssVars = {
20
+ '--dialog-width': getCssSize(width),
21
+ '--dialog-height': getCssSize(height),
22
+ };
18
23
  return {
24
+ dialogCssVars,
19
25
  handleClose,
20
26
  shouldRenderDrawer: isMobile && !disableMobileDrawer,
21
27
  dialogClasses,
28
+ hasCustomWidth: width !== undefined,
29
+ hasCustomHeight: height !== undefined,
22
30
  };
23
31
  };
@@ -3,6 +3,8 @@ export declare const StepDialog: import("../../../../../styled").StyledComponent
3
3
  title?: string | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>[] | undefined;
4
4
  disableBackdropClick?: boolean | undefined;
5
5
  size?: import("../../../../../Dialog").DialogSize | undefined;
6
+ height?: import("csstype").Property.Height<string | number> | undefined;
7
+ width?: import("csstype").Property.Width<string | number> | undefined;
6
8
  headerContent?: import("react").ReactNode;
7
9
  disableMobileDrawer?: boolean | undefined;
8
10
  } & {
@@ -9,7 +9,7 @@ export type StepperProps = Omit<StepperPropsWithoutEmotionSpecific, 'connector'>
9
9
  connector?: ConnectorProp;
10
10
  };
11
11
  /**
12
- * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`.
12
+ * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`. Для формы по шагам — `FormWizard`.
13
13
  */
14
14
  export declare const Stepper: (props: StepperProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export {};
@@ -3,7 +3,7 @@ import { useMemo } from 'react';
3
3
  import { ArrowConnector } from './ArrowConnector';
4
4
  import { StyledStepper } from './styles';
5
5
  /**
6
- * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`.
6
+ * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`. Для формы по шагам — `FormWizard`.
7
7
  */
8
8
  export const Stepper = (props) => {
9
9
  const { connector, ...restProps } = props;
@@ -1,5 +1,5 @@
1
1
  import { type StepperWizardProps } from './types';
2
2
  /**
3
- * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`.
3
+ * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`. Для формы по шагам — `FormWizard`.
4
4
  */
5
5
  export declare const StepperWizard: (props: StepperWizardProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Step, StepButton, StepLabel, Stepper } from '../Stepper';
3
3
  import { useLogic } from './useLogic';
4
4
  /**
5
- * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`.
5
+ * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`. Для формы по шагам — `FormWizard`.
6
6
  */
7
7
  export const StepperWizard = (props) => {
8
8
  const { clickableSteps, normalSteps, getStepButtonProps, getStepLabelProps } = useLogic(props);
@@ -28,5 +28,5 @@ export const OptionsModal = (props) => {
28
28
  }
29
29
  return (_jsx(TreeList, { ...treeProps, ...treeListProps }));
30
30
  };
31
- return (_jsxs(Dialog, { ...modalProps, children: [_jsxs(StyledDialogContent, { "$size": modalProps.size, children: [_jsx(SearchFieldWrapper, { children: _jsx(StyledSearchField, { fullWidth: true, ...searchFieldProps, isLoading: isShowSearchFieldLoader, helperText: SEARCH_FIELD_HELPER_TEXT }) }), _jsx(StyledPaper, { variant: "outlined", children: _jsxs(TreeListWrapper, { children: [renderComponent(), isShowUserHint && (_jsx(UserHintWrapper, { children: _jsx(Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: "\u0423\u0442\u043E\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u0431\u043E\u043B\u0435\u0435 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430" }) }))] }) })] }), _jsxs(DialogActions, { children: [_jsx(CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), _jsx(Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
31
+ return (_jsxs(Dialog, { ...modalProps, children: [_jsxs(StyledDialogContent, { children: [_jsx(SearchFieldWrapper, { children: _jsx(StyledSearchField, { fullWidth: true, ...searchFieldProps, isLoading: isShowSearchFieldLoader, helperText: SEARCH_FIELD_HELPER_TEXT }) }), _jsx(StyledPaper, { variant: "outlined", children: _jsxs(TreeListWrapper, { children: [renderComponent(), isShowUserHint && (_jsx(UserHintWrapper, { children: _jsx(Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: "\u0423\u0442\u043E\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u0431\u043E\u043B\u0435\u0435 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430" }) }))] }) })] }), _jsxs(DialogActions, { children: [_jsx(CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), _jsx(Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
32
32
  };
@@ -1,9 +1,6 @@
1
1
  /// <reference types="react" />
2
- type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
2
  export declare const StyledDialogContent: import("../../styled").StyledComponent<import("../../DialogContent").DialogContentProps & {
4
3
  theme?: import("@emotion/react").Theme | undefined;
5
- } & {
6
- $size: Size;
7
4
  }, {}, {}>;
8
5
  export declare const TreeListWrapper: import("../../styled").StyledComponent<{
9
6
  theme?: import("@emotion/react").Theme | undefined;
@@ -33,4 +30,3 @@ export declare const UserHintWrapper: import("../../styled").StyledComponent<{
33
30
  theme?: import("@emotion/react").Theme | undefined;
34
31
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
35
32
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
36
- export {};
@@ -1,9 +1,7 @@
1
1
  import { formHelperTextClasses } from '@mui/material/FormHelperText';
2
2
  import { inputBaseClasses } from '@mui/material/InputBase';
3
3
  import { paperClasses } from '@mui/material/Paper';
4
- import { DEFAULT_HEADER_HEIGHT, OFFSET_TOP_SCREEN } from '../../BottomDrawer';
5
4
  import { Button } from '../../Button';
6
- import { DIALOG_SIZES } from '../../Dialog';
7
5
  import { DialogContent } from '../../DialogContent';
8
6
  import { loaderClassnames } from '../../Loader';
9
7
  import { Paper } from '../../Paper';
@@ -11,31 +9,9 @@ import { SearchField } from '../../SearchField';
11
9
  import { svgIconClassnames } from '../../SvgIcon';
12
10
  import { styled } from '../../styled';
13
11
  import { treeListClassnames } from '../../Tree';
14
- export const StyledDialogContent = styled(DialogContent, {
15
- shouldForwardProp: (prop) => !['$size'].includes(prop),
16
- }) `
17
- display: grid;
18
- grid-template-columns: 100%;
19
- grid-template-rows: max-content 1fr;
20
- gap: ${({ theme }) => theme.spacing(4)};
21
-
22
- width: ${({ $size }) => DIALOG_SIZES[$size].minWidth};
23
- height: ${({ $size }) => DIALOG_SIZES[$size].minWidth};
24
-
25
- ${({ theme }) => theme.breakpoints.down('mobile')} {
26
- gap: ${({ theme }) => theme.spacing(3)};
27
-
28
- width: auto;
29
- height: calc(100vh - ${OFFSET_TOP_SCREEN} - ${DEFAULT_HEADER_HEIGHT}px - 72px);
30
- padding: 0;
31
-
32
- /* Причина игнора: Прогрессивное улучшение */
33
- /* stylelint-disable plugin/no-unsupported-browser-features */
34
- @supports (height: 100dvh) {
35
- height: calc(100dvh - ${OFFSET_TOP_SCREEN} - ${DEFAULT_HEADER_HEIGHT}px - 72px);
36
- }
37
- /* stylelint-enable plugin/no-unsupported-browser-features */
38
- }
12
+ import { getOptionsModalContentStyles } from '../../TreeAutocomplete';
13
+ export const StyledDialogContent = styled(DialogContent) `
14
+ ${({ theme }) => getOptionsModalContentStyles(theme)};
39
15
  `;
40
16
  export const TreeListWrapper = styled.div `
41
17
  overflow: auto;
@@ -24,5 +24,5 @@ export const OptionsModal = (props) => {
24
24
  }
25
25
  return _jsx(TreeList, { ...treeProps, ...treeListProps });
26
26
  };
27
- return (_jsxs(Dialog, { ...externalDialogProps, disableRestoreFocus: true, open: isOpen, ...modalProps, children: [_jsxs(StyledDialogContent, { "$size": modalProps.size, children: [_jsx(SearchFieldWrapper, { children: _jsx(SearchField, { fullWidth: true, ...searchFieldProps }) }), _jsx(StyledPaper, { variant: "outlined", children: _jsx(TreeListWrapper, { children: renderComponent() }) })] }), _jsxs(DialogActions, { children: [_jsx(CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), _jsx(Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
27
+ return (_jsxs(Dialog, { ...externalDialogProps, disableRestoreFocus: true, open: isOpen, ...modalProps, children: [_jsxs(StyledDialogContent, { children: [_jsx(SearchFieldWrapper, { children: _jsx(SearchField, { fullWidth: true, ...searchFieldProps }) }), _jsx(StyledPaper, { variant: "outlined", children: _jsx(TreeListWrapper, { children: renderComponent() }) })] }), _jsxs(DialogActions, { children: [_jsx(CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), _jsx(Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
28
28
  };
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
- type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
+ import type { Theme } from '../../theme/types';
3
+ export declare const getOptionsModalContentStyles: (theme: Theme) => import("@emotion/utils").SerializedStyles;
3
4
  export declare const StyledDialogContent: import("../../styled").StyledComponent<import("../../DialogContent").DialogContentProps & {
4
5
  theme?: import("@emotion/react").Theme | undefined;
5
- } & {
6
- $size: Size;
7
6
  }, {}, {}>;
8
7
  export declare const TreeListWrapper: import("../../styled").StyledComponent<{
9
8
  theme?: import("@emotion/react").Theme | undefined;
@@ -26,4 +25,3 @@ export declare const CancelButton: import("../../styled").StyledComponent<Omit<i
26
25
  } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
27
26
  theme?: import("@emotion/react").Theme | undefined;
28
27
  }, {}, {}>;
29
- export {};
@@ -1,23 +1,21 @@
1
1
  import { paperClasses } from '@mui/material/Paper';
2
2
  import { DEFAULT_HEADER_HEIGHT, OFFSET_TOP_SCREEN } from '../../BottomDrawer';
3
3
  import { Button } from '../../Button';
4
- import { DIALOG_SIZES } from '../../Dialog';
4
+ import { dialogClassnames } from '../../Dialog';
5
5
  import { DialogContent } from '../../DialogContent';
6
6
  import { Paper } from '../../Paper';
7
- import { styled } from '../../styled';
8
- export const StyledDialogContent = styled(DialogContent, {
9
- shouldForwardProp: (prop) => !['$size'].includes(prop),
10
- }) `
7
+ import { css, styled } from '../../styled';
8
+ export const getOptionsModalContentStyles = (theme) => css `
11
9
  display: grid;
12
10
  grid-template-columns: 100%;
13
11
  grid-template-rows: max-content 1fr;
14
- gap: ${({ theme }) => theme.spacing(4)};
12
+ gap: ${theme.spacing(4)};
15
13
 
16
- width: ${({ $size }) => DIALOG_SIZES[$size].minWidth};
17
- height: ${({ $size }) => DIALOG_SIZES[$size].minWidth};
14
+ width: var(--dialog-min-width);
15
+ height: var(--dialog-min-width);
18
16
 
19
- ${({ theme }) => theme.breakpoints.down('mobile')} {
20
- gap: ${({ theme }) => theme.spacing(3)};
17
+ ${theme.breakpoints.down('mobile')} {
18
+ gap: ${theme.spacing(3)};
21
19
 
22
20
  width: auto;
23
21
  height: calc(100vh - ${OFFSET_TOP_SCREEN} - ${DEFAULT_HEADER_HEIGHT}px - 72px);
@@ -30,6 +28,23 @@ export const StyledDialogContent = styled(DialogContent, {
30
28
  }
31
29
  /* stylelint-enable plugin/no-unsupported-browser-features */
32
30
  }
31
+
32
+ ${theme.breakpoints.up('mobile')} {
33
+ .${dialogClassnames.withCustomWidth} & {
34
+ width: auto;
35
+ min-width: 0;
36
+ }
37
+
38
+ .${dialogClassnames.withCustomHeight} & {
39
+ grid-template-rows: max-content minmax(0, 1fr);
40
+
41
+ height: auto;
42
+ min-height: 0;
43
+ }
44
+ }
45
+ `;
46
+ export const StyledDialogContent = styled(DialogContent) `
47
+ ${({ theme }) => getOptionsModalContentStyles(theme)};
33
48
  `;
34
49
  export const TreeListWrapper = styled.div `
35
50
  overflow: auto;
@@ -1,2 +1,3 @@
1
+ export { getOptionsModalContentStyles } from './OptionsModal/styles';
1
2
  export { TreeAutocomplete } from './TreeAutocomplete';
2
3
  export type { TreeAutocompleteProps, TreeAutocompleteTreeProps, TreeAutocompleteValue, } from './types';
@@ -1 +1,2 @@
1
+ export { getOptionsModalContentStyles } from './OptionsModal/styles';
1
2
  export { TreeAutocomplete } from './TreeAutocomplete';
@@ -30,5 +30,5 @@ export const OptionsModal = (props) => {
30
30
  }
31
31
  return (_jsx(TreeViewSlot, { children: _jsx(TreeLikeList, { ...treeProps, ...(isShowSelectedTree ? selectedTreeProps : treeListProps) }, isShowSelectedTree ? 'selected-tree' : 'options-tree') }));
32
32
  };
33
- return (_jsxs(Dialog, { ...modalProps, headerContent: _jsxs(_Fragment, { children: [_jsx(ResetButton, { variant: "text", color: "primary", ...resetButtonProps, children: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C" }), modalProps.headerContent] }), children: [_jsxs(StyledDialogContent, { "$size": modalProps.size, children: [_jsx(SearchFieldWrapper, { children: _jsx(StyledSearchField, { fullWidth: true, ...searchFieldProps, isLoading: isShowSearchFieldLoader, helperText: SEARCH_FIELD_HELPER_TEXT }) }), _jsx(CheckableTagWrapper, { children: _jsx(CheckableTag, { ...checkableTagProps, endAddon: (badgeProps) => (_jsx(TagBadge, { ...badgeProps, badgeContent: badgeContent, showZero: true })) }) }), _jsx(StyledPaper, { variant: "outlined", children: _jsxs(TreeListWrapper, { children: [renderComponent(), isShowUserHint && (_jsx(UserHintWrapper, { children: _jsx(Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: "\u0423\u0442\u043E\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u0431\u043E\u043B\u0435\u0435 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430" }) }))] }) })] }), _jsxs(DialogActions, { children: [_jsx(CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), _jsx(Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
33
+ return (_jsxs(Dialog, { ...modalProps, headerContent: _jsxs(_Fragment, { children: [_jsx(ResetButton, { variant: "text", color: "primary", ...resetButtonProps, children: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C" }), modalProps.headerContent] }), children: [_jsxs(StyledDialogContent, { children: [_jsx(SearchFieldWrapper, { children: _jsx(StyledSearchField, { fullWidth: true, ...searchFieldProps, isLoading: isShowSearchFieldLoader, helperText: SEARCH_FIELD_HELPER_TEXT }) }), _jsx(CheckableTagWrapper, { children: _jsx(CheckableTag, { ...checkableTagProps, endAddon: (badgeProps) => (_jsx(TagBadge, { ...badgeProps, badgeContent: badgeContent, showZero: true })) }) }), _jsx(StyledPaper, { variant: "outlined", children: _jsxs(TreeListWrapper, { children: [renderComponent(), isShowUserHint && (_jsx(UserHintWrapper, { children: _jsx(Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: "\u0423\u0442\u043E\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u0431\u043E\u043B\u0435\u0435 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430" }) }))] }) })] }), _jsxs(DialogActions, { children: [_jsx(CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), _jsx(Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
34
34
  };
@@ -1,9 +1,6 @@
1
1
  /// <reference types="react" />
2
- type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
2
  export declare const StyledDialogContent: import("../../styled").StyledComponent<import("../../DialogContent").DialogContentProps & {
4
3
  theme?: import("@emotion/react").Theme | undefined;
5
- } & {
6
- $size: Size;
7
4
  }, {}, {}>;
8
5
  export declare const TreeListWrapper: import("../../styled").StyledComponent<{
9
6
  theme?: import("@emotion/react").Theme | undefined;
@@ -51,4 +48,3 @@ export declare const UserHintWrapper: import("../../styled").StyledComponent<{
51
48
  theme?: import("@emotion/react").Theme | undefined;
52
49
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
53
50
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
54
- export {};
@@ -1,9 +1,8 @@
1
1
  import { formHelperTextClasses } from '@mui/material/FormHelperText';
2
2
  import { inputBaseClasses } from '@mui/material/InputBase';
3
3
  import { paperClasses } from '@mui/material/Paper';
4
- import { DEFAULT_HEADER_HEIGHT, OFFSET_TOP_SCREEN } from '../../BottomDrawer';
5
4
  import { Button } from '../../Button';
6
- import { DIALOG_SIZES } from '../../Dialog';
5
+ import { dialogClassnames } from '../../Dialog';
7
6
  import { DialogContent } from '../../DialogContent';
8
7
  import { loaderClassnames } from '../../Loader';
9
8
  import { Paper } from '../../Paper';
@@ -12,30 +11,15 @@ import { svgIconClassnames } from '../../SvgIcon';
12
11
  import { styled } from '../../styled';
13
12
  import { tagClassnames } from '../../Tag';
14
13
  import { treeListClassnames } from '../../Tree';
15
- export const StyledDialogContent = styled(DialogContent, {
16
- shouldForwardProp: (prop) => !['$size'].includes(prop),
17
- }) `
18
- display: grid;
19
- grid-template-columns: 100%;
14
+ import { getOptionsModalContentStyles } from '../../TreeAutocomplete';
15
+ export const StyledDialogContent = styled(DialogContent) `
16
+ ${({ theme }) => getOptionsModalContentStyles(theme)};
20
17
  grid-template-rows: max-content 32px 1fr;
21
- gap: ${({ theme }) => theme.spacing(4)};
22
18
 
23
- width: ${({ $size }) => DIALOG_SIZES[$size].minWidth};
24
- height: ${({ $size }) => DIALOG_SIZES[$size].minWidth};
25
-
26
- ${({ theme }) => theme.breakpoints.down('mobile')} {
27
- gap: ${({ theme }) => theme.spacing(3)};
28
-
29
- width: auto;
30
- height: calc(100vh - ${OFFSET_TOP_SCREEN} - ${DEFAULT_HEADER_HEIGHT}px - 72px);
31
- padding: 0;
32
-
33
- /* Причина игнора: Прогрессивное улучшение */
34
- /* stylelint-disable plugin/no-unsupported-browser-features */
35
- @supports (height: 100dvh) {
36
- height: calc(100dvh - ${OFFSET_TOP_SCREEN} - ${DEFAULT_HEADER_HEIGHT}px - 72px);
19
+ ${({ theme }) => theme.breakpoints.up('mobile')} {
20
+ .${dialogClassnames.withCustomHeight} & {
21
+ grid-template-rows: max-content 32px minmax(0, 1fr);
37
22
  }
38
- /* stylelint-enable plugin/no-unsupported-browser-features */
39
23
  }
40
24
  `;
41
25
  export const TreeListWrapper = styled.div `
@@ -24,5 +24,5 @@ export const OptionsModal = (props) => {
24
24
  }
25
25
  return (_jsx(TreeLikeList, { isConfirmChildrenSelection: isConfirmChildrenSelection, ...treeProps, ...treeLikeListProps }));
26
26
  };
27
- return (_jsxs(Dialog, { ...externalDialogProps, disableRestoreFocus: true, open: isOpen, ...modalProps, headerContent: _jsxs(_Fragment, { children: [_jsx(ResetButton, { variant: "text", color: "primary", ...resetButtonProps, children: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C" }), headerContent] }), children: [_jsxs(StyledDialogContent, { "$size": modalProps.size, children: [_jsx(SearchFieldWrapper, { children: _jsx(SearchField, { fullWidth: true, ...searchFieldProps }) }), _jsx(StyledPaper, { variant: "outlined", children: _jsx(TreeListWrapper, { children: renderComponent() }) })] }), _jsxs(DialogActions, { children: [_jsx(CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), _jsx(Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
27
+ return (_jsxs(Dialog, { ...externalDialogProps, disableRestoreFocus: true, open: isOpen, ...modalProps, headerContent: _jsxs(_Fragment, { children: [_jsx(ResetButton, { variant: "text", color: "primary", ...resetButtonProps, children: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C" }), headerContent] }), children: [_jsxs(StyledDialogContent, { children: [_jsx(SearchFieldWrapper, { children: _jsx(SearchField, { fullWidth: true, ...searchFieldProps }) }), _jsx(StyledPaper, { variant: "outlined", children: _jsx(TreeListWrapper, { children: renderComponent() }) })] }), _jsxs(DialogActions, { children: [_jsx(CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), _jsx(Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
28
28
  };
@@ -1,9 +1,6 @@
1
1
  /// <reference types="react" />
2
- type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
2
  export declare const StyledDialogContent: import("../../styled").StyledComponent<import("../../DialogContent").DialogContentProps & {
4
3
  theme?: import("@emotion/react").Theme | undefined;
5
- } & {
6
- $size: Size;
7
4
  }, {}, {}>;
8
5
  export declare const TreeListWrapper: import("../../styled").StyledComponent<{
9
6
  theme?: import("@emotion/react").Theme | undefined;
@@ -36,4 +33,3 @@ export declare const ResetButton: import("../../styled").StyledComponent<Omit<im
36
33
  } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
37
34
  theme?: import("@emotion/react").Theme | undefined;
38
35
  }, {}, {}>;
39
- export {};
@@ -1,35 +1,11 @@
1
1
  import { paperClasses } from '@mui/material/Paper';
2
- import { DEFAULT_HEADER_HEIGHT, OFFSET_TOP_SCREEN } from '../../BottomDrawer';
3
2
  import { Button } from '../../Button';
4
- import { DIALOG_SIZES } from '../../Dialog';
5
3
  import { DialogContent } from '../../DialogContent';
6
4
  import { Paper } from '../../Paper';
7
5
  import { styled } from '../../styled';
8
- export const StyledDialogContent = styled(DialogContent, {
9
- shouldForwardProp: (prop) => !['$size'].includes(prop),
10
- }) `
11
- display: grid;
12
- grid-template-columns: 100%;
13
- grid-template-rows: max-content 1fr;
14
- gap: ${({ theme }) => theme.spacing(4)};
15
-
16
- width: ${({ $size }) => DIALOG_SIZES[$size].minWidth};
17
- height: ${({ $size }) => DIALOG_SIZES[$size].minWidth};
18
-
19
- ${({ theme }) => theme.breakpoints.down('mobile')} {
20
- gap: ${({ theme }) => theme.spacing(3)};
21
-
22
- width: auto;
23
- height: calc(100vh - ${OFFSET_TOP_SCREEN} - ${DEFAULT_HEADER_HEIGHT}px - 72px);
24
- padding: 0;
25
-
26
- /* Причина игнора: Прогрессивное улучшение */
27
- /* stylelint-disable plugin/no-unsupported-browser-features */
28
- @supports (height: 100dvh) {
29
- height: calc(100dvh - ${OFFSET_TOP_SCREEN} - ${DEFAULT_HEADER_HEIGHT}px - 72px);
30
- }
31
- /* stylelint-enable plugin/no-unsupported-browser-features */
32
- }
6
+ import { getOptionsModalContentStyles } from '../../TreeAutocomplete';
7
+ export const StyledDialogContent = styled(DialogContent) `
8
+ ${({ theme }) => getOptionsModalContentStyles(theme)};
33
9
  `;
34
10
  export const TreeListWrapper = styled.div `
35
11
  overflow: auto;