@myunisoft/design-system 1.0.2-myu38784 → 1.1.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/dist/assets/I18n/locales/en.d.ts +3 -0
- package/dist/assets/I18n/locales/fr.d.ts +3 -0
- package/dist/components/DataGrid/index.d.ts +1 -1
- package/dist/components/Modal/components/ModalAction.d.ts +2 -1
- package/dist/components/Modal/components/ModalPrimaryAction.d.ts +13 -2
- package/dist/components/Modal/components/ModalTitle.d.ts +7 -0
- package/dist/components/Modal/index.d.ts +2 -1
- package/dist/components/VirtualTable/components/Buttons/Button/styles.d.ts +9 -1
- package/dist/components/VirtualTable/components/ColumnsSetting/Table/styles.d.ts +1 -1
- package/dist/components/basics/Checkbox/styles.d.ts +9 -1
- package/dist/index.js +3 -3
- package/package.json +14 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './
|
|
1
|
+
export { default } from './DataGridDS';
|
|
@@ -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
|
-
|
|
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?:
|
|
12
|
+
variant?: ModalVariant;
|
|
12
13
|
fullWidth?: boolean;
|
|
13
14
|
fullScreen?: boolean;
|
|
14
15
|
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
declare const useStyles:
|
|
1
|
+
declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
3
|
+
ownerState?: Record<string, unknown> | undefined;
|
|
4
|
+
} | undefined) => {
|
|
5
|
+
classes: Record<"error", string>;
|
|
6
|
+
theme: import("@mui/material/styles").Theme;
|
|
7
|
+
css: import("tss-react/types").Css;
|
|
8
|
+
cx: import("tss-react/types").Cx;
|
|
9
|
+
};
|
|
2
10
|
export default useStyles;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
declare const useStyles:
|
|
1
|
+
declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
3
|
+
ownerState?: Record<string, unknown> | undefined;
|
|
4
|
+
} | undefined) => {
|
|
5
|
+
classes: Record<"checkbox" | "checked" | "disabledChecked" | "disabledNotChecked", string>;
|
|
6
|
+
theme: import("@mui/material/styles").Theme;
|
|
7
|
+
css: import("tss-react/types").Css;
|
|
8
|
+
cx: import("tss-react/types").Cx;
|
|
9
|
+
};
|
|
2
10
|
export default useStyles;
|