carbon-react 104.58.8 → 105.0.2
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/esm/__internal__/popover/popover.component.d.ts +1 -1
- package/esm/__internal__/popover/popover.component.js +15 -5
- package/esm/components/menu/menu-full-screen/menu-full-screen.component.js +2 -1
- package/esm/components/menu/menu.component.js +2 -1
- package/esm/components/menu/menu.context.d.ts +1 -0
- package/esm/components/menu/menu.context.js +2 -1
- package/esm/components/menu/menu.d.ts +1 -0
- package/esm/components/modal/modal.component.js +2 -1
- package/esm/components/select/__internal__/select-text/select-text.component.d.ts +1 -5
- package/esm/components/select/__internal__/select-text/select-text.component.js +4 -28
- package/esm/components/select/select-textbox/select-textbox.component.js +5 -2
- package/esm/components/vertical-divider/index.d.ts +1 -2
- package/esm/components/vertical-divider/vertical-divider.component.d.ts +11 -9
- package/esm/components/vertical-divider/vertical-divider.component.js +1410 -25
- package/esm/components/vertical-divider/vertical-divider.style.d.ts +4 -2
- package/esm/components/vertical-divider/vertical-divider.style.js +1 -1
- package/lib/__internal__/popover/popover.component.d.ts +1 -1
- package/lib/__internal__/popover/popover.component.js +15 -4
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +2 -1
- package/lib/components/menu/menu.component.js +2 -1
- package/lib/components/menu/menu.context.d.ts +1 -0
- package/lib/components/menu/menu.context.js +2 -1
- package/lib/components/menu/menu.d.ts +1 -0
- package/lib/components/modal/modal.component.js +2 -1
- package/lib/components/select/__internal__/select-text/select-text.component.d.ts +1 -5
- package/lib/components/select/__internal__/select-text/select-text.component.js +4 -33
- package/lib/components/select/select-textbox/select-textbox.component.js +5 -2
- package/lib/components/vertical-divider/index.d.ts +1 -2
- package/lib/components/vertical-divider/vertical-divider.component.d.ts +11 -9
- package/lib/components/vertical-divider/vertical-divider.component.js +1459 -28
- package/lib/components/vertical-divider/vertical-divider.style.d.ts +4 -2
- package/lib/components/vertical-divider/vertical-divider.style.js +1 -1
- package/package.json +1 -1
- package/esm/components/row/column/column.component.d.ts +0 -30
- package/esm/components/row/column/column.component.js +0 -72
- package/esm/components/row/column/column.d.ts +0 -22
- package/esm/components/row/column/column.style.d.ts +0 -2
- package/esm/components/row/column/column.style.js +0 -32
- package/esm/components/row/index.d.ts +0 -2
- package/esm/components/row/index.js +0 -2
- package/esm/components/row/row.component.d.ts +0 -24
- package/esm/components/row/row.component.js +0 -59
- package/esm/components/row/row.config.d.ts +0 -11
- package/esm/components/row/row.config.js +0 -12
- package/esm/components/row/row.d.ts +0 -27
- package/esm/components/row/row.style.d.ts +0 -2
- package/esm/components/row/row.style.js +0 -53
- package/esm/components/vertical-divider/vertical-divider.d.ts +0 -113
- package/lib/components/row/column/column.component.d.ts +0 -30
- package/lib/components/row/column/column.component.js +0 -87
- package/lib/components/row/column/column.d.ts +0 -22
- package/lib/components/row/column/column.style.d.ts +0 -2
- package/lib/components/row/column/column.style.js +0 -45
- package/lib/components/row/index.d.ts +0 -2
- package/lib/components/row/index.js +0 -23
- package/lib/components/row/package.json +0 -6
- package/lib/components/row/row.component.d.ts +0 -24
- package/lib/components/row/row.component.js +0 -73
- package/lib/components/row/row.config.d.ts +0 -11
- package/lib/components/row/row.config.js +0 -20
- package/lib/components/row/row.d.ts +0 -27
- package/lib/components/row/row.style.d.ts +0 -2
- package/lib/components/row/row.style.js +0 -71
- package/lib/components/vertical-divider/vertical-divider.d.ts +0 -113
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { VerticalDividerPropTypes } from "./vertical-divider.component";
|
|
2
|
+
declare const StyledVerticalWrapper: import("styled-components").StyledComponent<"div", any, VerticalDividerPropTypes, never>;
|
|
3
|
+
declare const StyledDivider: import("styled-components").StyledComponent<"div", any, Pick<VerticalDividerPropTypes, "tint">, never>;
|
|
4
|
+
export { StyledVerticalWrapper, StyledDivider };
|
|
@@ -20,7 +20,7 @@ const StyledVerticalWrapper = _styledComponents.default.div`
|
|
|
20
20
|
${({
|
|
21
21
|
height
|
|
22
22
|
}) => height && (0, _styledComponents.css)`
|
|
23
|
-
height: ${typeof height === "string" ? `${height}
|
|
23
|
+
height: ${typeof height === "string" ? `${height}` : `${height}px`};
|
|
24
24
|
`}
|
|
25
25
|
${({
|
|
26
26
|
displayInline
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export default Column;
|
|
2
|
-
declare function Column({ columnAlign, columns, columnSpan, columnOffset, columnClasses, className, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
columnAlign: any;
|
|
5
|
-
columns: any;
|
|
6
|
-
columnSpan: any;
|
|
7
|
-
columnOffset: any;
|
|
8
|
-
columnClasses: any;
|
|
9
|
-
className: any;
|
|
10
|
-
}): JSX.Element;
|
|
11
|
-
declare namespace Column {
|
|
12
|
-
namespace defaultProps {
|
|
13
|
-
const columnOffset: string;
|
|
14
|
-
const columnSpan: string;
|
|
15
|
-
const columnAlign: string;
|
|
16
|
-
}
|
|
17
|
-
namespace propTypes {
|
|
18
|
-
export const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
-
export const className: PropTypes.Requireable<string>;
|
|
20
|
-
export const columns: PropTypes.Requireable<string | number>;
|
|
21
|
-
export const columnClasses: PropTypes.Requireable<string>;
|
|
22
|
-
const columnAlign_1: PropTypes.Requireable<string>;
|
|
23
|
-
export { columnAlign_1 as columnAlign };
|
|
24
|
-
const columnOffset_1: PropTypes.Requireable<string | number>;
|
|
25
|
-
export { columnOffset_1 as columnOffset };
|
|
26
|
-
const columnSpan_1: PropTypes.Requireable<string | number>;
|
|
27
|
-
export { columnSpan_1 as columnSpan };
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
import PropTypes from "prop-types";
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import StyledColumn from "./column.style";
|
|
5
|
-
import Logger from "../../../__internal__/utils/logger";
|
|
6
|
-
let deprecatedWarnTriggered = false;
|
|
7
|
-
|
|
8
|
-
const Column = ({
|
|
9
|
-
columnAlign,
|
|
10
|
-
columns,
|
|
11
|
-
columnSpan,
|
|
12
|
-
columnOffset,
|
|
13
|
-
columnClasses,
|
|
14
|
-
className,
|
|
15
|
-
...props
|
|
16
|
-
}) => {
|
|
17
|
-
if (!deprecatedWarnTriggered) {
|
|
18
|
-
deprecatedWarnTriggered = true; // eslint-disable-next-line max-len
|
|
19
|
-
|
|
20
|
-
Logger.deprecate("`Column` component is deprecated and will soon be removed.");
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return /*#__PURE__*/React.createElement(StyledColumn, {
|
|
24
|
-
columnAlign: columnAlign,
|
|
25
|
-
className: classNames(className, columnClasses),
|
|
26
|
-
columns: columns,
|
|
27
|
-
columnSpan: columnSpan,
|
|
28
|
-
columnOffset: columnOffset,
|
|
29
|
-
"data-component": "column"
|
|
30
|
-
}, props.children);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
Column.defaultProps = {
|
|
34
|
-
columnOffset: "0",
|
|
35
|
-
columnSpan: "1",
|
|
36
|
-
columnAlign: "left"
|
|
37
|
-
};
|
|
38
|
-
/* eslint-disable react/no-unused-prop-types */
|
|
39
|
-
|
|
40
|
-
Column.propTypes = {
|
|
41
|
-
/** Content. */
|
|
42
|
-
children: PropTypes.node,
|
|
43
|
-
|
|
44
|
-
/** Classes to apply to the component. */
|
|
45
|
-
className: PropTypes.string,
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @private
|
|
49
|
-
* @ignore
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
/** Total column count */
|
|
53
|
-
columns: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @private
|
|
57
|
-
* @ignore
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
/** Classes applied by row component to affect all rows */
|
|
61
|
-
columnClasses: PropTypes.string,
|
|
62
|
-
|
|
63
|
-
/** Alignment of content within column. */
|
|
64
|
-
columnAlign: PropTypes.oneOf(["left", "center", "middle", "right"]),
|
|
65
|
-
|
|
66
|
-
/** Offset this column by a certain number of columns. */
|
|
67
|
-
columnOffset: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
68
|
-
|
|
69
|
-
/** Span this column by a certain number of columns. */
|
|
70
|
-
columnSpan: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
71
|
-
};
|
|
72
|
-
export default Column;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
export interface ColumnProps {
|
|
4
|
-
/** Children. */
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
/** Classes to apply to the component. */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Total column count. */
|
|
9
|
-
columns?: number | string;
|
|
10
|
-
/** Classes applied by row component to affect all rows */
|
|
11
|
-
columnClasses?: string;
|
|
12
|
-
/** Alignment of content within column. */
|
|
13
|
-
columnAlign?: "left" | "center" | "middle" | "right";
|
|
14
|
-
/** Offset this column by a certain number of columns. */
|
|
15
|
-
columnOffset?: number | string;
|
|
16
|
-
/** Span this column by a certain number of columns. */
|
|
17
|
-
columnSpan?: number | string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
declare function Column(props: ColumnProps): JSX.Element;
|
|
21
|
-
|
|
22
|
-
export default Column;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import styled, { css } from "styled-components";
|
|
2
|
-
const StyledColumn = styled.div`
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
float: left;
|
|
5
|
-
min-height: 1px;
|
|
6
|
-
width: 100%;
|
|
7
|
-
${({
|
|
8
|
-
columnAlign
|
|
9
|
-
}) => (columnAlign === "center" || columnAlign === "middle") && "text-align: center"}
|
|
10
|
-
|
|
11
|
-
${({
|
|
12
|
-
columnAlign
|
|
13
|
-
}) => columnAlign === "right" && "text-align: right"}
|
|
14
|
-
${({
|
|
15
|
-
columns
|
|
16
|
-
}) => css`
|
|
17
|
-
width: ${100 / columns}%;
|
|
18
|
-
`}
|
|
19
|
-
${({
|
|
20
|
-
columns,
|
|
21
|
-
columnSpan
|
|
22
|
-
}) => css`
|
|
23
|
-
width: ${100 / columns * +columnSpan}%;
|
|
24
|
-
`}
|
|
25
|
-
${({
|
|
26
|
-
columns,
|
|
27
|
-
columnOffset
|
|
28
|
-
}) => css`
|
|
29
|
-
margin-left: ${100 / columns * +columnOffset}%;
|
|
30
|
-
`}
|
|
31
|
-
`;
|
|
32
|
-
export default StyledColumn;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export default Row;
|
|
2
|
-
declare function Row({ columns, children, columnClasses, columnDivide, gutter, className, }: {
|
|
3
|
-
columns: any;
|
|
4
|
-
children: any;
|
|
5
|
-
columnClasses: any;
|
|
6
|
-
columnDivide: any;
|
|
7
|
-
gutter: any;
|
|
8
|
-
className: any;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
declare namespace Row {
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
13
|
-
const className: PropTypes.Requireable<string>;
|
|
14
|
-
const gutter: PropTypes.Requireable<string>;
|
|
15
|
-
const columnDivide: PropTypes.Requireable<boolean>;
|
|
16
|
-
const columns: PropTypes.Requireable<string | number>;
|
|
17
|
-
const columnClasses: PropTypes.Requireable<string>;
|
|
18
|
-
}
|
|
19
|
-
namespace defaultProps {
|
|
20
|
-
const gutter_1: string;
|
|
21
|
-
export { gutter_1 as gutter };
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
import PropTypes from "prop-types";
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import StyledRow from "./row.style";
|
|
4
|
-
import Logger from "../../__internal__/utils/logger";
|
|
5
|
-
let deprecatedWarnTriggered = false;
|
|
6
|
-
|
|
7
|
-
const Row = ({
|
|
8
|
-
columns,
|
|
9
|
-
children,
|
|
10
|
-
columnClasses,
|
|
11
|
-
columnDivide,
|
|
12
|
-
gutter,
|
|
13
|
-
className
|
|
14
|
-
}) => {
|
|
15
|
-
const columnsCount = columns || React.Children.toArray(children).length;
|
|
16
|
-
|
|
17
|
-
if (!deprecatedWarnTriggered) {
|
|
18
|
-
deprecatedWarnTriggered = true; // eslint-disable-next-line max-len
|
|
19
|
-
|
|
20
|
-
Logger.deprecate("`Row` component is deprecated and will soon be removed.");
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const buildColumns = () => React.Children.toArray(children).map(child => /*#__PURE__*/React.cloneElement(child, {
|
|
24
|
-
columnClasses,
|
|
25
|
-
columns: columnsCount
|
|
26
|
-
}, child.props.children));
|
|
27
|
-
|
|
28
|
-
return /*#__PURE__*/React.createElement(StyledRow, {
|
|
29
|
-
"data-component": "row",
|
|
30
|
-
columnDivide: columnDivide,
|
|
31
|
-
gutter: gutter,
|
|
32
|
-
className: className,
|
|
33
|
-
columns: columns || React.Children.toArray(children).length
|
|
34
|
-
}, buildColumns());
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
Row.propTypes = {
|
|
38
|
-
/** This component supports children of type Column. */
|
|
39
|
-
children: PropTypes.node.isRequired,
|
|
40
|
-
|
|
41
|
-
/** Classes to apply to the component. */
|
|
42
|
-
className: PropTypes.string,
|
|
43
|
-
|
|
44
|
-
/** Define how wide the gutter between the rows and columns should be. */
|
|
45
|
-
gutter: PropTypes.oneOf(["none", "extra-small", "small", "medium-small", "medium", "medium-large", "large", "extra-large"]),
|
|
46
|
-
|
|
47
|
-
/** Enable a divider between each column. */
|
|
48
|
-
columnDivide: PropTypes.bool,
|
|
49
|
-
|
|
50
|
-
/** Define a certain amount of columns, instead of basing it on the number of children. */
|
|
51
|
-
columns: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
52
|
-
|
|
53
|
-
/** Classes to apply to all column children. */
|
|
54
|
-
columnClasses: PropTypes.string
|
|
55
|
-
};
|
|
56
|
-
Row.defaultProps = {
|
|
57
|
-
gutter: "medium"
|
|
58
|
-
};
|
|
59
|
-
export default Row;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
2
|
-
export const ROW_SIZES = ["extra-small", "small", "medium-small", "medium", "medium-large", "large", "extra-large"];
|
|
3
|
-
export const ROW_SIZES_CSS = {
|
|
4
|
-
none: 0,
|
|
5
|
-
"extra-small": 2,
|
|
6
|
-
small: 5,
|
|
7
|
-
"medium-small": 10,
|
|
8
|
-
medium: 15,
|
|
9
|
-
"medium-large": 30,
|
|
10
|
-
large: 60,
|
|
11
|
-
"extra-large": 90
|
|
12
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
export interface RowProps {
|
|
4
|
-
/** This component supports children of type Column. */
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** Classes to apply to the component. */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Define how wide the gutter between the rows and columns should be. */
|
|
9
|
-
gutter?:
|
|
10
|
-
| "extra-small"
|
|
11
|
-
| "small"
|
|
12
|
-
| "medium-small"
|
|
13
|
-
| "medium"
|
|
14
|
-
| "medium-large"
|
|
15
|
-
| "large"
|
|
16
|
-
| "extra-large";
|
|
17
|
-
/** Enable a divider between each column. */
|
|
18
|
-
columnDivide?: boolean;
|
|
19
|
-
/** Define a certain amount of columns, instead of basing it on the number of children. */
|
|
20
|
-
columns?: number | string;
|
|
21
|
-
/** Classes to apply to all column children. */
|
|
22
|
-
columnClasses?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare function Row(props: RowProps): JSX.Element;
|
|
26
|
-
|
|
27
|
-
export default Row;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import styled, { css } from "styled-components";
|
|
2
|
-
import baseTheme from "../../style/themes/base";
|
|
3
|
-
import StyledColumn from "./column/column.style";
|
|
4
|
-
import { ROW_SIZES_CSS } from "./row.config";
|
|
5
|
-
const StyledRow = styled.div`
|
|
6
|
-
clear: both;
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
${({
|
|
10
|
-
gutter,
|
|
11
|
-
columnDivide
|
|
12
|
-
}) => {
|
|
13
|
-
const size = ROW_SIZES_CSS[gutter];
|
|
14
|
-
return css`
|
|
15
|
-
margin-bottom: -${size}px;
|
|
16
|
-
margin-left: -${size}px;
|
|
17
|
-
|
|
18
|
-
${StyledColumn} {
|
|
19
|
-
margin-bottom: ${size}px;
|
|
20
|
-
padding-left: ${size}px;
|
|
21
|
-
|
|
22
|
-
${columnDivide && css`
|
|
23
|
-
position: relative;
|
|
24
|
-
|
|
25
|
-
&:before {
|
|
26
|
-
content: "";
|
|
27
|
-
position: absolute;
|
|
28
|
-
width: 1px;
|
|
29
|
-
height: 100%;
|
|
30
|
-
background-color: ${baseTheme.palette.slateTint(70)};
|
|
31
|
-
left: ${size / 2}px;
|
|
32
|
-
top: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:first-child:before {
|
|
36
|
-
display: none;
|
|
37
|
-
}
|
|
38
|
-
`}
|
|
39
|
-
}
|
|
40
|
-
`;
|
|
41
|
-
}}
|
|
42
|
-
|
|
43
|
-
/* Clearfix */
|
|
44
|
-
&:before,
|
|
45
|
-
&:after {
|
|
46
|
-
content: "";
|
|
47
|
-
display: table;
|
|
48
|
-
}
|
|
49
|
-
&:after {
|
|
50
|
-
clear: both;
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
export default StyledRow;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { SpaceProps } from "styled-system";
|
|
2
|
-
|
|
3
|
-
type TintRange =
|
|
4
|
-
| 1
|
|
5
|
-
| 2
|
|
6
|
-
| 3
|
|
7
|
-
| 4
|
|
8
|
-
| 5
|
|
9
|
-
| 6
|
|
10
|
-
| 7
|
|
11
|
-
| 8
|
|
12
|
-
| 9
|
|
13
|
-
| 10
|
|
14
|
-
| 11
|
|
15
|
-
| 12
|
|
16
|
-
| 13
|
|
17
|
-
| 14
|
|
18
|
-
| 15
|
|
19
|
-
| 16
|
|
20
|
-
| 17
|
|
21
|
-
| 18
|
|
22
|
-
| 19
|
|
23
|
-
| 20
|
|
24
|
-
| 21
|
|
25
|
-
| 22
|
|
26
|
-
| 23
|
|
27
|
-
| 24
|
|
28
|
-
| 25
|
|
29
|
-
| 26
|
|
30
|
-
| 27
|
|
31
|
-
| 28
|
|
32
|
-
| 29
|
|
33
|
-
| 30
|
|
34
|
-
| 31
|
|
35
|
-
| 32
|
|
36
|
-
| 33
|
|
37
|
-
| 34
|
|
38
|
-
| 35
|
|
39
|
-
| 36
|
|
40
|
-
| 37
|
|
41
|
-
| 38
|
|
42
|
-
| 39
|
|
43
|
-
| 40
|
|
44
|
-
| 41
|
|
45
|
-
| 42
|
|
46
|
-
| 43
|
|
47
|
-
| 44
|
|
48
|
-
| 45
|
|
49
|
-
| 46
|
|
50
|
-
| 47
|
|
51
|
-
| 48
|
|
52
|
-
| 49
|
|
53
|
-
| 50
|
|
54
|
-
| 51
|
|
55
|
-
| 52
|
|
56
|
-
| 53
|
|
57
|
-
| 54
|
|
58
|
-
| 55
|
|
59
|
-
| 56
|
|
60
|
-
| 57
|
|
61
|
-
| 58
|
|
62
|
-
| 59
|
|
63
|
-
| 60
|
|
64
|
-
| 61
|
|
65
|
-
| 62
|
|
66
|
-
| 63
|
|
67
|
-
| 64
|
|
68
|
-
| 65
|
|
69
|
-
| 66
|
|
70
|
-
| 67
|
|
71
|
-
| 68
|
|
72
|
-
| 69
|
|
73
|
-
| 70
|
|
74
|
-
| 71
|
|
75
|
-
| 72
|
|
76
|
-
| 73
|
|
77
|
-
| 74
|
|
78
|
-
| 75
|
|
79
|
-
| 76
|
|
80
|
-
| 77
|
|
81
|
-
| 78
|
|
82
|
-
| 79
|
|
83
|
-
| 80
|
|
84
|
-
| 81
|
|
85
|
-
| 82
|
|
86
|
-
| 83
|
|
87
|
-
| 84
|
|
88
|
-
| 85
|
|
89
|
-
| 86
|
|
90
|
-
| 87
|
|
91
|
-
| 88
|
|
92
|
-
| 89
|
|
93
|
-
| 90
|
|
94
|
-
| 91
|
|
95
|
-
| 92
|
|
96
|
-
| 93
|
|
97
|
-
| 94
|
|
98
|
-
| 95
|
|
99
|
-
| 96
|
|
100
|
-
| 97
|
|
101
|
-
| 98
|
|
102
|
-
| 99
|
|
103
|
-
| 100;
|
|
104
|
-
export interface VerticalDividerPropTypes extends SpaceProps {
|
|
105
|
-
h?: number | string;
|
|
106
|
-
displayInline?: boolean;
|
|
107
|
-
/** the supported rage is 1-100 */
|
|
108
|
-
tint?: TintRange;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
declare function VerticalDivider(props: VerticalDividerPropTypes): JSX.Element;
|
|
112
|
-
|
|
113
|
-
export default VerticalDivider;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export default Column;
|
|
2
|
-
declare function Column({ columnAlign, columns, columnSpan, columnOffset, columnClasses, className, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
columnAlign: any;
|
|
5
|
-
columns: any;
|
|
6
|
-
columnSpan: any;
|
|
7
|
-
columnOffset: any;
|
|
8
|
-
columnClasses: any;
|
|
9
|
-
className: any;
|
|
10
|
-
}): JSX.Element;
|
|
11
|
-
declare namespace Column {
|
|
12
|
-
namespace defaultProps {
|
|
13
|
-
const columnOffset: string;
|
|
14
|
-
const columnSpan: string;
|
|
15
|
-
const columnAlign: string;
|
|
16
|
-
}
|
|
17
|
-
namespace propTypes {
|
|
18
|
-
export const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
-
export const className: PropTypes.Requireable<string>;
|
|
20
|
-
export const columns: PropTypes.Requireable<string | number>;
|
|
21
|
-
export const columnClasses: PropTypes.Requireable<string>;
|
|
22
|
-
const columnAlign_1: PropTypes.Requireable<string>;
|
|
23
|
-
export { columnAlign_1 as columnAlign };
|
|
24
|
-
const columnOffset_1: PropTypes.Requireable<string | number>;
|
|
25
|
-
export { columnOffset_1 as columnOffset };
|
|
26
|
-
const columnSpan_1: PropTypes.Requireable<string | number>;
|
|
27
|
-
export { columnSpan_1 as columnSpan };
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
import PropTypes from "prop-types";
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _column = _interopRequireDefault(require("./column.style"));
|
|
15
|
-
|
|
16
|
-
var _logger = _interopRequireDefault(require("../../../__internal__/utils/logger"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
let deprecatedWarnTriggered = false;
|
|
21
|
-
|
|
22
|
-
const Column = ({
|
|
23
|
-
columnAlign,
|
|
24
|
-
columns,
|
|
25
|
-
columnSpan,
|
|
26
|
-
columnOffset,
|
|
27
|
-
columnClasses,
|
|
28
|
-
className,
|
|
29
|
-
...props
|
|
30
|
-
}) => {
|
|
31
|
-
if (!deprecatedWarnTriggered) {
|
|
32
|
-
deprecatedWarnTriggered = true; // eslint-disable-next-line max-len
|
|
33
|
-
|
|
34
|
-
_logger.default.deprecate("`Column` component is deprecated and will soon be removed.");
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return /*#__PURE__*/_react.default.createElement(_column.default, {
|
|
38
|
-
columnAlign: columnAlign,
|
|
39
|
-
className: (0, _classnames.default)(className, columnClasses),
|
|
40
|
-
columns: columns,
|
|
41
|
-
columnSpan: columnSpan,
|
|
42
|
-
columnOffset: columnOffset,
|
|
43
|
-
"data-component": "column"
|
|
44
|
-
}, props.children);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
Column.defaultProps = {
|
|
48
|
-
columnOffset: "0",
|
|
49
|
-
columnSpan: "1",
|
|
50
|
-
columnAlign: "left"
|
|
51
|
-
};
|
|
52
|
-
/* eslint-disable react/no-unused-prop-types */
|
|
53
|
-
|
|
54
|
-
Column.propTypes = {
|
|
55
|
-
/** Content. */
|
|
56
|
-
children: _propTypes.default.node,
|
|
57
|
-
|
|
58
|
-
/** Classes to apply to the component. */
|
|
59
|
-
className: _propTypes.default.string,
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @private
|
|
63
|
-
* @ignore
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
|
-
/** Total column count */
|
|
67
|
-
columns: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @private
|
|
71
|
-
* @ignore
|
|
72
|
-
*/
|
|
73
|
-
|
|
74
|
-
/** Classes applied by row component to affect all rows */
|
|
75
|
-
columnClasses: _propTypes.default.string,
|
|
76
|
-
|
|
77
|
-
/** Alignment of content within column. */
|
|
78
|
-
columnAlign: _propTypes.default.oneOf(["left", "center", "middle", "right"]),
|
|
79
|
-
|
|
80
|
-
/** Offset this column by a certain number of columns. */
|
|
81
|
-
columnOffset: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
82
|
-
|
|
83
|
-
/** Span this column by a certain number of columns. */
|
|
84
|
-
columnSpan: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
85
|
-
};
|
|
86
|
-
var _default = Column;
|
|
87
|
-
exports.default = _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
export interface ColumnProps {
|
|
4
|
-
/** Children. */
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
/** Classes to apply to the component. */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Total column count. */
|
|
9
|
-
columns?: number | string;
|
|
10
|
-
/** Classes applied by row component to affect all rows */
|
|
11
|
-
columnClasses?: string;
|
|
12
|
-
/** Alignment of content within column. */
|
|
13
|
-
columnAlign?: "left" | "center" | "middle" | "right";
|
|
14
|
-
/** Offset this column by a certain number of columns. */
|
|
15
|
-
columnOffset?: number | string;
|
|
16
|
-
/** Span this column by a certain number of columns. */
|
|
17
|
-
columnSpan?: number | string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
declare function Column(props: ColumnProps): JSX.Element;
|
|
21
|
-
|
|
22
|
-
export default Column;
|