demio-ui 2.0.2 → 2.0.5

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.
@@ -12,7 +12,7 @@ type Props = {
12
12
  onClose?: () => void;
13
13
  actionButtonType?: 'primary' | 'danger';
14
14
  maxWidth?: string;
15
- showCloseButton?: boolean;
15
+ isCloseButtonVisible?: boolean;
16
16
  };
17
- declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, showCloseButton, }: Props): React.JSX.Element;
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
- showCloseButton?: boolean;
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, showCloseButton, onClose, onOpenChange, open, overlayClassName, title, contentStyle, }: Props): React.JSX.Element;
19
+ declare function Modal({ children, contentClassName, isCloseButtonVisible, onClose, onOpenChange, open, overlayClassName, title, contentStyle, }: Props): React.JSX.Element;
20
20
  export default Modal;
@@ -1,13 +1,19 @@
1
1
  import React, { FC } from 'react';
2
- type Props = {
3
- align: 'center' | 'start' | 'end';
2
+ export type Props = {
4
3
  childClass: string;
5
4
  children: React.ReactNode;
6
5
  content: React.ReactNode;
7
6
  isContentChild: boolean;
8
7
  isOpen: boolean;
9
8
  onOpen: (open: boolean) => void;
9
+ defaultOpen?: boolean;
10
10
  className?: string;
11
+ contentProps: {
12
+ className?: string;
13
+ style?: React.CSSProperties;
14
+ align?: 'center' | 'start' | 'end';
15
+ };
16
+ modal?: boolean;
11
17
  };
12
18
  declare const Popover: FC<Props>;
13
19
  export default Popover;
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
- showCloseButton?: boolean;
18
+ isCloseButtonVisible?: boolean;
19
19
  };
20
- declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, showCloseButton, }: Props$d): React__default.JSX.Element;
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
- showCloseButton?: boolean;
120
+ isCloseButtonVisible?: boolean;
121
121
  onClose?: () => void;
122
122
  onOpenChange: (open: boolean) => void;
123
123
  open: boolean;
@@ -131,17 +131,23 @@ 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, showCloseButton, onClose, onOpenChange, open, overlayClassName, title, contentStyle, }: Props$5): React__default.JSX.Element;
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
- align: 'center' | 'start' | 'end';
138
137
  childClass: string;
139
138
  children: React__default.ReactNode;
140
139
  content: React__default.ReactNode;
141
140
  isContentChild: boolean;
142
141
  isOpen: boolean;
143
142
  onOpen: (open: boolean) => void;
143
+ defaultOpen?: boolean;
144
144
  className?: string;
145
+ contentProps: {
146
+ className?: string;
147
+ style?: React__default.CSSProperties;
148
+ align?: 'center' | 'start' | 'end';
149
+ };
150
+ modal?: boolean;
145
151
  };
146
152
  declare const Popover: FC<Props$4>;
147
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "2.0.2",
3
+ "version": "2.0.5",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",