@myunisoft/design-system 1.1.0-MYUN-32704 → 1.1.1

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.
@@ -81,6 +81,9 @@ declare const _default: {
81
81
  uploadDialog: {
82
82
  filesListTitle: string;
83
83
  };
84
+ attachmentCell: {
85
+ title: string;
86
+ };
84
87
  };
85
88
  };
86
89
  export default _default;
@@ -81,6 +81,9 @@ declare const _default: {
81
81
  uploadDialog: {
82
82
  filesListTitle: string;
83
83
  };
84
+ attachmentCell: {
85
+ title: string;
86
+ };
84
87
  };
85
88
  };
86
89
  export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.JSXElementConstructor<any>;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const useSizing: (columns?: never[]) => {
2
+ columnsStyle: {};
3
+ totalWidth: number;
4
+ };
5
+ export default useSizing;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from 'react';
1
+ import { FC, ReactNode, Ref } from 'react';
2
2
  import { ButtonProps } from '@mui/material';
3
3
  type ModalActionProps = {
4
4
  color?: ButtonProps['color'];
@@ -6,6 +6,7 @@ type ModalActionProps = {
6
6
  disabled?: boolean;
7
7
  onClick: () => void | Promise<void>;
8
8
  children: ReactNode;
9
+ ref?: Ref<HTMLButtonElement>;
9
10
  };
10
11
  declare const ModalAction: FC<ModalActionProps>;
11
12
  export default ModalAction;
@@ -1,9 +1,20 @@
1
- import { FC, ReactNode } from 'react';
2
- type ModalPrimaryActionProps = {
1
+ import { FC, ReactNode, Ref } from 'react';
2
+ import { ModalVariant } from '../index';
3
+ export type ModalPrimaryActionProps = {
4
+ /**
5
+ * @deprecated Use `<Modal variant="error">` instead
6
+ */
3
7
  isDangerous?: boolean;
4
8
  disabled?: boolean;
5
9
  onClick: () => void | Promise<void>;
6
10
  children: ReactNode;
11
+ /**
12
+ * @internal
13
+ * [INJECTED] Used internally by the Modal component.
14
+ * Do not pass manually. Use <Modal variant="..."> instead.
15
+ */
16
+ __variant?: ModalVariant;
17
+ ref?: Ref<HTMLButtonElement>;
7
18
  };
8
19
  declare const ModalPrimaryAction: FC<ModalPrimaryActionProps>;
9
20
  export default ModalPrimaryAction;
@@ -1,6 +1,13 @@
1
1
  import { FC, ReactNode } from 'react';
2
+ import { ModalVariant } from '../index';
2
3
  export type ModalTitleProps = {
3
4
  children: ReactNode;
5
+ /**
6
+ * @internal
7
+ * [INJECTED] Used internally by the Modal component.
8
+ * Do not pass manually. Use <Modal variant="..."> instead.
9
+ */
10
+ __variant?: ModalVariant;
4
11
  };
5
12
  declare const ModalTitle: FC<ModalTitleProps>;
6
13
  export default ModalTitle;
@@ -4,11 +4,12 @@ import ModalCustomAction from './components/ModalCustomAction';
4
4
  import ModalPrimaryAction from './components/ModalPrimaryAction';
5
5
  import ModalSecondaryAction from './components/ModalSecondaryAction';
6
6
  import ModalTitle from './components/ModalTitle';
7
+ export type ModalVariant = 'info' | 'warning' | 'alert';
7
8
  type ModalProps = {
8
9
  isOpen: boolean;
9
10
  onClose?: () => void;
10
11
  isCloseIconShown?: boolean;
11
- variant?: 'info' | 'warning' | 'error';
12
+ variant?: ModalVariant;
12
13
  fullWidth?: boolean;
13
14
  fullScreen?: boolean;
14
15
  maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';