@tracktor/design-system 3.5.2 → 3.6.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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/design-system/releases)
2
2
 
3
- ## v3.5.2
4
- - **[fix]** -`AutocompleteFilter` error when using `multiple` prop
3
+ ## v3.6.0
4
+ - **[feat]** - add`DialogValidation` component
@@ -0,0 +1,35 @@
1
+ import { DialogProps } from '@mui/material';
2
+ interface ButtonProps {
3
+ onClick?(): void;
4
+ text: string;
5
+ loading?: boolean;
6
+ }
7
+ interface DialogValidationProps extends Omit<DialogProps, "children" | "onClose"> {
8
+ /**
9
+ * Title of the dialog
10
+ */
11
+ title?: string;
12
+ /**
13
+ * Subtitle of the dialog
14
+ */
15
+ subtitle?: string;
16
+ /**
17
+ * Color of the dialog
18
+ * @default "secondary"
19
+ */
20
+ color?: "secondary" | "error" | "warning" | "info";
21
+ /**
22
+ * Button primary props
23
+ */
24
+ buttonPrimary?: ButtonProps;
25
+ /**
26
+ * Button secondary props
27
+ */
28
+ buttonSecondary?: ButtonProps;
29
+ /**
30
+ * Callback when modal is closed
31
+ */
32
+ onClose?: (event: {}, reason?: string) => void;
33
+ }
34
+ declare const DialogValidation: ({ title, subtitle, buttonPrimary, buttonSecondary, color, fullWidth, maxWidth, onClose, ...props }: DialogValidationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
35
+ export default DialogValidation;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tracktor/design-system",
3
3
  "description": "Tracktor Design System",
4
4
  "sideEffects": false,
5
- "version": "3.5.2",
5
+ "version": "3.6.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",