carbon-react 93.0.4 → 94.0.3
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/__internal__/checkable-input/checkable-input.component.js +7 -1
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +11 -1
- package/lib/__internal__/checkable-input/hidden-checkable-input.d.ts +5 -1
- package/lib/__internal__/form-field/form-field.component.js +9 -8
- package/lib/__internal__/form-field/form-field.d.ts +2 -0
- package/lib/components/action-popover/action-popover.component.js +28 -20
- package/lib/components/action-popover/action-popover.style.js +22 -12
- package/lib/components/i18n-provider/i18n-provider.component.js +0 -3
- package/lib/locales/en-gb.js +1 -8
- package/lib/locales/locale.d.ts +0 -7
- package/lib/locales/pl-pl.js +1 -8
- package/package.json +1 -6
- package/lib/components/action-toolbar/action-toolbar.component.js +0 -213
- package/lib/components/action-toolbar/action-toolbar.d.ts +0 -20
- package/lib/components/action-toolbar/action-toolbar.style.js +0 -40
- package/lib/components/action-toolbar/index.d.ts +0 -1
- package/lib/components/action-toolbar/index.js +0 -15
- package/lib/components/configurable-items/configurable-item-row/configurable-item-row.component.js +0 -174
- package/lib/components/configurable-items/configurable-item-row/configurable-item-row.d.ts +0 -25
- package/lib/components/configurable-items/configurable-item-row/configurable-item-row.style.js +0 -73
- package/lib/components/configurable-items/configurable-item-row/index.d.ts +0 -1
- package/lib/components/configurable-items/configurable-item-row/index.js +0 -15
- package/lib/components/configurable-items/configurable-items.component.js +0 -155
- package/lib/components/configurable-items/configurable-items.d.ts +0 -20
- package/lib/components/configurable-items/configurable-items.style.js +0 -70
- package/lib/components/configurable-items/index.d.ts +0 -2
- package/lib/components/configurable-items/index.js +0 -23
- package/lib/components/drag-and-drop/__internal__/item-target/index.js +0 -15
- package/lib/components/drag-and-drop/__internal__/item-target/item-target.js +0 -44
- package/lib/components/drag-and-drop/__internal__/item-types/index.js +0 -15
- package/lib/components/drag-and-drop/__internal__/item-types/item-types.js +0 -20
- package/lib/components/drag-and-drop/custom-drag-layer/custom-drag-layer.js +0 -171
- package/lib/components/drag-and-drop/custom-drag-layer/custom-drag-layer.style.js +0 -28
- package/lib/components/drag-and-drop/custom-drag-layer/index.js +0 -15
- package/lib/components/drag-and-drop/drag-and-drop-test.stories.js +0 -95
- package/lib/components/drag-and-drop/draggable-context/__internal__/scrollable-parent/index.js +0 -15
- package/lib/components/drag-and-drop/draggable-context/__internal__/scrollable-parent/scrollable-parent.js +0 -36
- package/lib/components/drag-and-drop/draggable-context/draggable-context.js +0 -264
- package/lib/components/drag-and-drop/draggable-context/index.js +0 -15
- package/lib/components/drag-and-drop/index.js +0 -39
- package/lib/components/drag-and-drop/with-drag/index.js +0 -15
- package/lib/components/drag-and-drop/with-drag/with-drag.js +0 -176
- package/lib/components/drag-and-drop/with-drop/index.js +0 -15
- package/lib/components/drag-and-drop/with-drop/with-drop.js +0 -201
- package/lib/components/table/draggable-table-cell/draggable-table-cell.component.js +0 -59
- package/lib/components/table/draggable-table-cell/draggable-table-cell.style.js +0 -36
- package/lib/components/table/draggable-table-cell/index.js +0 -15
- package/lib/components/table/index.js +0 -43
- package/lib/components/table/table-cell/index.js +0 -15
- package/lib/components/table/table-cell/table-cell.component.js +0 -164
- package/lib/components/table/table-cell/table-cell.style.js +0 -164
- package/lib/components/table/table-header/index.js +0 -15
- package/lib/components/table/table-header/table-header.component.js +0 -282
- package/lib/components/table/table-header/table-header.style.js +0 -116
- package/lib/components/table/table-modern.style.js +0 -110
- package/lib/components/table/table-row/index.js +0 -15
- package/lib/components/table/table-row/table-row-modern.style.js +0 -70
- package/lib/components/table/table-row/table-row.component.js +0 -486
- package/lib/components/table/table-row/table-row.style.js +0 -165
- package/lib/components/table/table-sizes.style.js +0 -33
- package/lib/components/table/table-story-helpers/table-story-wrapper.component.js +0 -189
- package/lib/components/table/table-subheader/index.js +0 -15
- package/lib/components/table/table-subheader/table-subheader.component.js +0 -35
- package/lib/components/table/table-subheader/table-subheader.style.js +0 -33
- package/lib/components/table/table.component.js +0 -792
- package/lib/components/table/table.config.js +0 -14
- package/lib/components/table/table.style.js +0 -139
- package/lib/components/table-ajax/__internal__/serialize/package.json +0 -3
- package/lib/components/table-ajax/__internal__/serialize/serialize.js +0 -26
- package/lib/components/table-ajax/index.js +0 -37
- package/lib/components/table-ajax/table-ajax.component.js +0 -602
- package/lib/patterns/configurable-items/actions/actions.js +0 -41
- package/lib/patterns/configurable-items/actions/package.json +0 -3
- package/lib/patterns/configurable-items/configurable-items-content/configurable-items-content.js +0 -140
- package/lib/patterns/configurable-items/configurable-items-content/package.json +0 -3
- package/lib/patterns/configurable-items/configurable-items.js +0 -216
- package/lib/patterns/configurable-items/constants/constants.js +0 -13
- package/lib/patterns/configurable-items/constants/package.json +0 -3
- package/lib/patterns/configurable-items/package.json +0 -3
- package/lib/patterns/configurable-items/store/package.json +0 -3
- package/lib/patterns/configurable-items/store/store.js +0 -92
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TABLE_HEADER_ALIGNMENTS = exports.TABLE_SIZES = exports.TABLE_INPUT_TYPES = exports.TABLE_THEMES = void 0;
|
|
7
|
-
const TABLE_THEMES = ["primary", "secondary", "tertiary", "dark", "light", "transparent"];
|
|
8
|
-
exports.TABLE_THEMES = TABLE_THEMES;
|
|
9
|
-
const TABLE_INPUT_TYPES = ["textbox", "textarea", "date", "decimal", "select"];
|
|
10
|
-
exports.TABLE_INPUT_TYPES = TABLE_INPUT_TYPES;
|
|
11
|
-
const TABLE_SIZES = ["compact", "small", "medium", "large"];
|
|
12
|
-
exports.TABLE_SIZES = TABLE_SIZES;
|
|
13
|
-
const TABLE_HEADER_ALIGNMENTS = ["center", "left", "right"];
|
|
14
|
-
exports.TABLE_HEADER_ALIGNMENTS = TABLE_HEADER_ALIGNMENTS;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.StyledInternalTableWrapper = void 0;
|
|
7
|
-
|
|
8
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _tableModernStyle = require("./table-modern.style.js");
|
|
13
|
-
|
|
14
|
-
var _tableRow = _interopRequireDefault(require("./table-row/table-row.style"));
|
|
15
|
-
|
|
16
|
-
var _link = require("../link/link.style");
|
|
17
|
-
|
|
18
|
-
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
19
|
-
|
|
20
|
-
var _tableCellStyle = _interopRequireDefault(require("./table-cell/table-cell.style.js"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
25
|
-
|
|
26
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
-
|
|
28
|
-
const StyledTable = _styledComponents.default.table`
|
|
29
|
-
border-collapse: separate;
|
|
30
|
-
border-radius: 0px;
|
|
31
|
-
border-spacing: 0;
|
|
32
|
-
min-width: 100%;
|
|
33
|
-
table-layout: fixed;
|
|
34
|
-
width: auto;
|
|
35
|
-
word-break: break-all;
|
|
36
|
-
|
|
37
|
-
${_tableModernStyle.applyModernTableStyling}
|
|
38
|
-
|
|
39
|
-
& caption {
|
|
40
|
-
clip: rect(1px, 1px, 1px, 1px);
|
|
41
|
-
height: 1px;
|
|
42
|
-
overflow: hidden;
|
|
43
|
-
width: 1px;
|
|
44
|
-
position: absolute;
|
|
45
|
-
top: -99999px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
${_tableRow.default}:last-child ${_tableCellStyle.default} {
|
|
49
|
-
border-bottom-color: transparent;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
${({
|
|
53
|
-
paginate
|
|
54
|
-
}) => {
|
|
55
|
-
return paginate && applyPaginationStyle;
|
|
56
|
-
}}
|
|
57
|
-
`;
|
|
58
|
-
|
|
59
|
-
function applyPaginationStyle() {
|
|
60
|
-
return (0, _styledComponents.css)`
|
|
61
|
-
border-bottom-left-radius: 0;
|
|
62
|
-
border-bottom-right-radius: 0;
|
|
63
|
-
`;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const StyledInternalTableWrapper = _styledComponents.default.div`
|
|
67
|
-
${_tableModernStyle.applyModernInternalStyling}
|
|
68
|
-
border-radius: 0px;
|
|
69
|
-
overflow: visible;
|
|
70
|
-
position: relative;
|
|
71
|
-
|
|
72
|
-
${({
|
|
73
|
-
onConfigure,
|
|
74
|
-
theme
|
|
75
|
-
}) => onConfigure && (0, _styledComponents.css)`
|
|
76
|
-
${StyledTable} {
|
|
77
|
-
border-radius: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
${_link.StyledLink} {
|
|
81
|
-
left: -25px;
|
|
82
|
-
position: absolute;
|
|
83
|
-
top: -1px;
|
|
84
|
-
width: 25px;
|
|
85
|
-
|
|
86
|
-
align-items: center;
|
|
87
|
-
background-color: ${theme.table.header};
|
|
88
|
-
border: 1px solid ${theme.table.secondary};
|
|
89
|
-
border-right: none;
|
|
90
|
-
border-radius: 25px 0 0 25px;
|
|
91
|
-
box-sizing: content-box;
|
|
92
|
-
color: ${theme.colors.white};
|
|
93
|
-
display: flex;
|
|
94
|
-
height: 100%;
|
|
95
|
-
justify-content: center;
|
|
96
|
-
|
|
97
|
-
&:hover {
|
|
98
|
-
background-color: #19475a;
|
|
99
|
-
color: ${theme.colors.white};
|
|
100
|
-
display: flex;
|
|
101
|
-
height: 100%;
|
|
102
|
-
justify-content: center;
|
|
103
|
-
|
|
104
|
-
&:hover {
|
|
105
|
-
background-color: #19475a;
|
|
106
|
-
color: ${theme.colors.white};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:first-child {
|
|
110
|
-
height: 19px;
|
|
111
|
-
margin-right: -4px;
|
|
112
|
-
z-index: 3;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
`}
|
|
117
|
-
`;
|
|
118
|
-
exports.StyledInternalTableWrapper = StyledInternalTableWrapper;
|
|
119
|
-
StyledTable.propTypes = {
|
|
120
|
-
/** Toggles the type variations of the table */
|
|
121
|
-
tableType: _propTypes.default.oneOf(["primary", "secondary", "tertiary", "dark", "light", "transparent"]),
|
|
122
|
-
|
|
123
|
-
/** Toggles the zebra striping for the table rows */
|
|
124
|
-
isZebra: _propTypes.default.bool
|
|
125
|
-
};
|
|
126
|
-
StyledTable.defaultProps = {
|
|
127
|
-
theme: _base.default,
|
|
128
|
-
size: "medium"
|
|
129
|
-
};
|
|
130
|
-
StyledInternalTableWrapper.propTypes = {
|
|
131
|
-
/** The height for the Table Wrapper */
|
|
132
|
-
minHeight: _propTypes.default.string
|
|
133
|
-
};
|
|
134
|
-
StyledInternalTableWrapper.defaultProps = {
|
|
135
|
-
theme: _base.default,
|
|
136
|
-
size: "medium"
|
|
137
|
-
};
|
|
138
|
-
var _default = StyledTable;
|
|
139
|
-
exports.default = _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @method serialize
|
|
10
|
-
* @param {Object}
|
|
11
|
-
* @param {String}
|
|
12
|
-
*/
|
|
13
|
-
const serialize = (obj, prefix) => {
|
|
14
|
-
const str = [];
|
|
15
|
-
|
|
16
|
-
for (const prop in obj) {
|
|
17
|
-
const key = prefix ? `${prefix}[${prop}]` : prop,
|
|
18
|
-
value = obj[prop];
|
|
19
|
-
str.push(typeof value === "object" ? serialize(value, key) : `${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return str.join("&");
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
var _default = serialize;
|
|
26
|
-
exports.default = _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "TableAjax", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _tableAjax.TableAjax;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "TableRow", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _tableAjax.TableRow;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "TableCell", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _tableAjax.TableCell;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "TableHeader", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _tableAjax.TableHeader;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "TableSubheader", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _tableAjax.TableSubheader;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
var _tableAjax = require("./table-ajax.component");
|