demio-ui 2.0.2 → 2.0.4
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/cjs/index.js +2 -2
- package/dist/cjs/types/src/components/Alert/Alert.d.ts +2 -2
- package/dist/cjs/types/src/components/Modal/Modal.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/Alert/Alert.d.ts +2 -2
- package/dist/esm/types/src/components/Modal/Modal.d.ts +2 -2
- package/dist/types.d.ts +4 -4
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ type Props = {
|
|
|
12
12
|
onClose?: () => void;
|
|
13
13
|
actionButtonType?: 'primary' | 'danger';
|
|
14
14
|
maxWidth?: string;
|
|
15
|
-
|
|
15
|
+
isCloseButtonVisible?: boolean;
|
|
16
16
|
};
|
|
17
|
-
declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose,
|
|
17
|
+
declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, isCloseButtonVisible, }: Props): React.JSX.Element;
|
|
18
18
|
export default Alert;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
children: string | React.ReactNode;
|
|
4
4
|
contentClassName?: string;
|
|
5
|
-
|
|
5
|
+
isCloseButtonVisible?: boolean;
|
|
6
6
|
onClose?: () => void;
|
|
7
7
|
onOpenChange: (open: boolean) => void;
|
|
8
8
|
open: boolean;
|
|
@@ -16,5 +16,5 @@ type Props = {
|
|
|
16
16
|
- Esc closes the component automatically.
|
|
17
17
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
18
18
|
**/
|
|
19
|
-
declare function Modal({ children, contentClassName,
|
|
19
|
+
declare function Modal({ children, contentClassName, isCloseButtonVisible, onClose, onOpenChange, open, overlayClassName, title, contentStyle, }: Props): React.JSX.Element;
|
|
20
20
|
export default Modal;
|
package/dist/types.d.ts
CHANGED
|
@@ -15,9 +15,9 @@ type Props$d = {
|
|
|
15
15
|
onClose?: () => void;
|
|
16
16
|
actionButtonType?: 'primary' | 'danger';
|
|
17
17
|
maxWidth?: string;
|
|
18
|
-
|
|
18
|
+
isCloseButtonVisible?: boolean;
|
|
19
19
|
};
|
|
20
|
-
declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose,
|
|
20
|
+
declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, isCloseButtonVisible, }: Props$d): React__default.JSX.Element;
|
|
21
21
|
|
|
22
22
|
type Props$c = {
|
|
23
23
|
disabled?: boolean;
|
|
@@ -117,7 +117,7 @@ declare function Loader({ size, className, inheritColor }: Props$6): React__defa
|
|
|
117
117
|
type Props$5 = {
|
|
118
118
|
children: string | React__default.ReactNode;
|
|
119
119
|
contentClassName?: string;
|
|
120
|
-
|
|
120
|
+
isCloseButtonVisible?: boolean;
|
|
121
121
|
onClose?: () => void;
|
|
122
122
|
onOpenChange: (open: boolean) => void;
|
|
123
123
|
open: boolean;
|
|
@@ -131,7 +131,7 @@ type Props$5 = {
|
|
|
131
131
|
- Esc closes the component automatically.
|
|
132
132
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
133
133
|
**/
|
|
134
|
-
declare function Modal({ children, contentClassName,
|
|
134
|
+
declare function Modal({ children, contentClassName, isCloseButtonVisible, onClose, onOpenChange, open, overlayClassName, title, contentStyle, }: Props$5): React__default.JSX.Element;
|
|
135
135
|
|
|
136
136
|
type Props$4 = {
|
|
137
137
|
align: 'center' | 'start' | 'end';
|