carbon-react 102.4.0 → 102.4.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/lib/components/alert/alert.component.js +1 -1
- package/lib/components/checkbox/checkbox.style.js +4 -0
- package/lib/components/dialog/dialog.component.js +1 -1
- package/lib/components/dialog/dialog.d.ts +2 -2
- package/lib/components/dismissible-box/dismissible-box.component.js +0 -1
- package/lib/components/dismissible-box/dismissible-box.d.ts +3 -4
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.js +1 -1
- package/lib/components/modal/modal.d.ts +7 -4
- package/package.json +1 -1
|
@@ -40,7 +40,7 @@ Alert.propTypes = {
|
|
|
40
40
|
height: _propTypes.default.string,
|
|
41
41
|
|
|
42
42
|
/** Title displayed at top of Alert */
|
|
43
|
-
title: _propTypes.default.
|
|
43
|
+
title: _propTypes.default.node,
|
|
44
44
|
|
|
45
45
|
/** Subtitle displayed at top of Alert */
|
|
46
46
|
subtitle: _propTypes.default.string,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { ModalProps } from "../modal/modal";
|
|
3
3
|
|
|
4
4
|
export interface DialogProps extends ModalProps {
|
|
5
5
|
/* Disables auto focus functionality on child elements */
|
|
@@ -24,6 +24,6 @@ export interface DialogProps extends ModalProps {
|
|
|
24
24
|
title?: React.ReactNode;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
declare
|
|
27
|
+
declare function Dialog(props: DialogProps): JSX.Element;
|
|
28
28
|
|
|
29
29
|
export default Dialog;
|
|
@@ -41,7 +41,6 @@ const DismissibleBox = ({
|
|
|
41
41
|
p: "20px 24px 20px 20px",
|
|
42
42
|
hasBorderLeftHighlight: hasBorderLeftHighlight
|
|
43
43
|
}, rest, {
|
|
44
|
-
minWidth: "600px",
|
|
45
44
|
display: "flex",
|
|
46
45
|
justifyContent: "space-between"
|
|
47
46
|
}), children, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_iconButton.default, {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { BoxProps } from "components/box/box";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface DismissibleBoxProps extends SpaceProps {
|
|
4
|
+
export interface DismissibleBoxProps
|
|
5
|
+
extends Omit<BoxProps, "display" | "justifyContent"> {
|
|
7
6
|
/** Flag to control whether the thicker left border highlight should be rendered */
|
|
8
7
|
hasBorderLeftHighlight?: boolean;
|
|
9
8
|
/** The content to render in the component */
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
|
|
3
3
|
export interface ModalProps {
|
|
4
|
+
/** Modal content */
|
|
5
|
+
children?: React.ReactNode;
|
|
4
6
|
/** The ARIA role to be applied to the modal */
|
|
5
7
|
ariaRole?: string;
|
|
6
8
|
/** Determines if the Esc Key closes the modal */
|
|
7
9
|
disableEscKey?: boolean;
|
|
10
|
+
/** Determines if the Dialog can be closed */
|
|
11
|
+
disableClose?: boolean;
|
|
8
12
|
/** Determines if the background is disabled when the modal is open */
|
|
9
13
|
enableBackgroundUI?: boolean;
|
|
10
14
|
/** A custom close event handler */
|
|
11
15
|
onCancel?: (ev: React.KeyboardEvent<HTMLElement>) => void;
|
|
12
16
|
/** Sets the open state of the modal */
|
|
13
17
|
open: boolean;
|
|
18
|
+
/** Transition time */
|
|
19
|
+
timeout?: number;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
|
-
declare
|
|
17
|
-
T,
|
|
18
|
-
Record<string, unknown>
|
|
19
|
-
> {}
|
|
22
|
+
declare function Modal(props: ModalProps): JSX.Element;
|
|
20
23
|
|
|
21
24
|
export default Modal;
|