carbon-react 105.2.0 → 106.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__/tooltip-provider/index.js +1 -1
- package/esm/__internal__/utils/helpers/browser/index.d.ts +15 -1
- package/esm/__internal__/utils/helpers/browser/index.js +33 -1
- package/esm/__internal__/utils/helpers/browser-type-check/index.d.ts +7 -1
- package/esm/__internal__/utils/helpers/browser-type-check/index.js +8 -1
- package/esm/__internal__/utils/helpers/events/composedPath.d.ts +1 -1
- package/esm/__internal__/utils/helpers/events/events.d.ts +132 -31
- package/esm/__internal__/utils/helpers/events/events.js +10 -125
- package/esm/__internal__/utils/helpers/guid/index.d.ts +5 -0
- package/esm/__internal__/utils/helpers/guid/{guid.js → index.js} +0 -2
- package/esm/__internal__/utils/helpers/tags/tags-specs/tags-specs.d.ts +4 -2
- package/esm/__internal__/utils/helpers/tags/tags-specs/tags-specs.js +2 -1
- package/esm/__internal__/utils/helpers/tags/tags.d.ts +10 -6
- package/esm/__internal__/utils/helpers/tags/tags.js +2 -6
- package/esm/__internal__/utils/helpers/useUniqueId/index.d.ts +2 -0
- package/esm/__internal__/utils/helpers/useUniqueId/index.js +7 -0
- package/esm/__internal__/utils/logger/index.d.ts +5 -1
- package/esm/__internal__/utils/logger/index.js +25 -1
- package/esm/components/app-wrapper/app-wrapper.component.js +5 -3
- package/esm/components/confirm/confirm.component.js +1 -1
- package/esm/components/dialog/dialog.component.js +1 -1
- package/esm/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
- package/esm/components/fieldset/fieldset.component.d.ts +6 -1
- package/esm/components/fieldset/fieldset.component.js +14 -15
- package/esm/components/portrait/portrait-initials.component.js +1 -1
- package/esm/components/select/select-list/select-list.component.js +1 -1
- package/esm/components/select/select-textbox/select-textbox.component.js +1 -1
- package/esm/components/split-button/index.d.ts +1 -0
- package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +3 -5
- package/esm/components/textbox/textbox.component.d.ts +1 -2
- package/esm/components/textbox/textbox.component.js +7 -6
- package/esm/style/{fonts → assets}/carbon-icons-webfont.woff +0 -0
- package/esm/style/fonts.css +30 -0
- package/esm/style/global-style.js +1 -1
- package/esm/style/themes/base/base-theme.config.d.ts +17 -8
- package/esm/style/themes/sage/index.d.ts +17 -8
- package/lib/__internal__/tooltip-provider/index.js +1 -1
- package/lib/__internal__/utils/helpers/browser/index.d.ts +15 -1
- package/lib/__internal__/utils/helpers/browser/index.js +33 -8
- package/lib/__internal__/utils/helpers/browser-type-check/index.d.ts +7 -1
- package/lib/__internal__/utils/helpers/browser-type-check/index.js +10 -21
- package/lib/__internal__/utils/helpers/events/composedPath.d.ts +1 -1
- package/lib/__internal__/utils/helpers/events/events.d.ts +132 -31
- package/lib/__internal__/utils/helpers/events/events.js +10 -125
- package/lib/__internal__/utils/helpers/guid/index.d.ts +5 -0
- package/lib/__internal__/utils/helpers/guid/{guid.js → index.js} +0 -2
- package/lib/__internal__/utils/helpers/guid/package.json +5 -2
- package/lib/__internal__/utils/helpers/tags/tags-specs/tags-specs.d.ts +4 -2
- package/lib/__internal__/utils/helpers/tags/tags-specs/tags-specs.js +2 -1
- package/lib/__internal__/utils/helpers/tags/tags.d.ts +10 -6
- package/lib/__internal__/utils/helpers/tags/tags.js +2 -6
- package/lib/__internal__/utils/helpers/useUniqueId/index.d.ts +2 -0
- package/lib/__internal__/utils/helpers/useUniqueId/index.js +20 -0
- package/lib/__internal__/utils/helpers/useUniqueId/package.json +6 -0
- package/lib/__internal__/utils/logger/index.d.ts +5 -1
- package/lib/__internal__/utils/logger/index.js +26 -8
- package/lib/components/app-wrapper/app-wrapper.component.js +5 -4
- package/lib/components/confirm/confirm.component.js +1 -1
- package/lib/components/dialog/dialog.component.js +1 -1
- package/lib/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
- package/lib/components/fieldset/fieldset.component.d.ts +6 -1
- package/lib/components/fieldset/fieldset.component.js +14 -16
- package/lib/components/portrait/portrait-initials.component.js +1 -1
- package/lib/components/select/select-list/select-list.component.js +1 -1
- package/lib/components/select/select-textbox/select-textbox.component.js +1 -1
- package/lib/components/split-button/index.d.ts +1 -0
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +3 -5
- package/lib/components/textbox/textbox.component.d.ts +1 -2
- package/lib/components/textbox/textbox.component.js +7 -8
- package/lib/style/{fonts → assets}/carbon-icons-webfont.woff +0 -0
- package/lib/style/fonts.css +30 -0
- package/lib/style/global-style.js +1 -1
- package/lib/style/themes/base/base-theme.config.d.ts +17 -8
- package/lib/style/themes/sage/index.d.ts +17 -8
- package/package.json +4 -3
- package/esm/__internal__/utils/ether/ether.d.ts +0 -19
- package/esm/__internal__/utils/ether/ether.js +0 -29
- package/esm/__internal__/utils/ether/index.d.ts +0 -1
- package/esm/__internal__/utils/ether/index.js +0 -1
- package/esm/__internal__/utils/helpers/browser/browser.d.ts +0 -17
- package/esm/__internal__/utils/helpers/browser/browser.js +0 -198
- package/esm/__internal__/utils/helpers/browser-type-check/browser-type-check.d.ts +0 -7
- package/esm/__internal__/utils/helpers/browser-type-check/browser-type-check.js +0 -14
- package/esm/__internal__/utils/helpers/guid/__spec__.d.ts +0 -1
- package/esm/__internal__/utils/helpers/guid/__spec__.js +0 -10
- package/esm/__internal__/utils/helpers/guid/guid.d.ts +0 -2
- package/esm/__internal__/utils/helpers/guid/package.json +0 -3
- package/esm/__internal__/utils/helpers/immutable/__spec__.d.ts +0 -1
- package/esm/__internal__/utils/helpers/immutable/__spec__.js +0 -117
- package/esm/__internal__/utils/helpers/immutable/immutable.d.ts +0 -4
- package/esm/__internal__/utils/helpers/immutable/immutable.js +0 -36
- package/esm/__internal__/utils/helpers/immutable/package.json +0 -4
- package/esm/__internal__/utils/helpers/with-unique-id-props/index.d.ts +0 -1
- package/esm/__internal__/utils/helpers/with-unique-id-props/index.js +0 -1
- package/esm/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.d.ts +0 -7
- package/esm/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.js +0 -82
- package/esm/__internal__/utils/logger/logger.d.ts +0 -9
- package/esm/__internal__/utils/logger/logger.js +0 -71
- package/lib/__internal__/utils/ether/ether.d.ts +0 -19
- package/lib/__internal__/utils/ether/ether.js +0 -33
- package/lib/__internal__/utils/ether/index.d.ts +0 -1
- package/lib/__internal__/utils/ether/index.js +0 -18
- package/lib/__internal__/utils/ether/package.json +0 -6
- package/lib/__internal__/utils/helpers/browser/browser.d.ts +0 -17
- package/lib/__internal__/utils/helpers/browser/browser.js +0 -213
- package/lib/__internal__/utils/helpers/browser-type-check/browser-type-check.d.ts +0 -7
- package/lib/__internal__/utils/helpers/browser-type-check/browser-type-check.js +0 -26
- package/lib/__internal__/utils/helpers/guid/__spec__.d.ts +0 -1
- package/lib/__internal__/utils/helpers/guid/__spec__.js +0 -15
- package/lib/__internal__/utils/helpers/guid/guid.d.ts +0 -2
- package/lib/__internal__/utils/helpers/immutable/__spec__.d.ts +0 -1
- package/lib/__internal__/utils/helpers/immutable/__spec__.js +0 -135
- package/lib/__internal__/utils/helpers/immutable/immutable.d.ts +0 -4
- package/lib/__internal__/utils/helpers/immutable/immutable.js +0 -46
- package/lib/__internal__/utils/helpers/immutable/package.json +0 -4
- package/lib/__internal__/utils/helpers/with-unique-id-props/index.d.ts +0 -1
- package/lib/__internal__/utils/helpers/with-unique-id-props/index.js +0 -15
- package/lib/__internal__/utils/helpers/with-unique-id-props/package.json +0 -6
- package/lib/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.d.ts +0 -7
- package/lib/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.js +0 -96
- package/lib/__internal__/utils/logger/logger.d.ts +0 -9
- package/lib/__internal__/utils/logger/logger.js +0 -78
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid
|
|
12
|
+
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid"));
|
|
13
13
|
|
|
14
14
|
var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid
|
|
12
|
+
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid"));
|
|
13
13
|
|
|
14
14
|
var _modal = _interopRequireDefault(require("../modal"));
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid
|
|
12
|
+
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid"));
|
|
13
13
|
|
|
14
14
|
var _modal = _interopRequireDefault(require("../modal"));
|
|
15
15
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export default Fieldset;
|
|
2
|
-
declare function Fieldset(
|
|
2
|
+
declare function Fieldset({ children, inline, legend, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
children: any;
|
|
5
|
+
inline: any;
|
|
6
|
+
legend: any;
|
|
7
|
+
}): JSX.Element;
|
|
3
8
|
declare namespace Fieldset {
|
|
4
9
|
namespace propTypes {
|
|
5
10
|
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -11,8 +11,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes2 = _interopRequireDefault(require("@styled-system/prop-types"));
|
|
13
13
|
|
|
14
|
-
var _ether = require("../../__internal__/utils/ether");
|
|
15
|
-
|
|
16
14
|
var _tags = _interopRequireDefault(require("../../__internal__/utils/helpers/tags/tags"));
|
|
17
15
|
|
|
18
16
|
var _utils = require("../../style/utils");
|
|
@@ -27,32 +25,32 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
27
25
|
|
|
28
26
|
const marginPropTypes = (0, _utils.filterStyledSystemMarginProps)(_propTypes2.default.space);
|
|
29
27
|
|
|
30
|
-
const Fieldset =
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
const Fieldset = ({
|
|
29
|
+
children,
|
|
30
|
+
inline,
|
|
31
|
+
legend,
|
|
32
|
+
...rest
|
|
33
|
+
}) => {
|
|
34
|
+
const getLegend = () => {
|
|
35
|
+
if (!legend) return null;
|
|
33
36
|
return /*#__PURE__*/_react.default.createElement(_fieldset.LegendContainerStyle, {
|
|
34
|
-
inline:
|
|
37
|
+
inline: inline,
|
|
35
38
|
"data-component": "legend-style"
|
|
36
39
|
}, /*#__PURE__*/_react.default.createElement("legend", {
|
|
37
40
|
"data-element": "legend"
|
|
38
|
-
},
|
|
41
|
+
}, legend));
|
|
39
42
|
};
|
|
40
43
|
|
|
41
|
-
const { ...safeProps
|
|
42
|
-
} = (0, _ether.validProps)({
|
|
43
|
-
propTypes: Fieldset.propTypes,
|
|
44
|
-
props
|
|
45
|
-
});
|
|
46
44
|
return /*#__PURE__*/_react.default.createElement(_carbonProvider.NewValidationContext.Provider, {
|
|
47
45
|
value: {
|
|
48
46
|
validationRedesignOptIn: false
|
|
49
47
|
}
|
|
50
|
-
}, /*#__PURE__*/_react.default.createElement(_fieldset.FieldsetStyle, _extends({}, (0, _tags.default)("fieldset",
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_fieldset.FieldsetStyle, _extends({}, (0, _tags.default)("fieldset", rest), rest, {
|
|
51
49
|
m: 0
|
|
52
|
-
}, (0, _utils.filterStyledSystemMarginProps)(
|
|
50
|
+
}, (0, _utils.filterStyledSystemMarginProps)(rest)), /*#__PURE__*/_react.default.createElement(_fieldset.FieldsetContentStyle, {
|
|
53
51
|
"data-component": "fieldset-style",
|
|
54
|
-
inline:
|
|
55
|
-
},
|
|
52
|
+
inline: inline
|
|
53
|
+
}, getLegend(), children)));
|
|
56
54
|
};
|
|
57
55
|
|
|
58
56
|
Fieldset.propTypes = {
|
|
@@ -60,7 +60,7 @@ const PortraitInitials = ({
|
|
|
60
60
|
canvas.height = dimensions; // Select a font family to support different language characters
|
|
61
61
|
// like Arial
|
|
62
62
|
|
|
63
|
-
context.font = `${Math.round(canvas.width / 2.4)}px
|
|
63
|
+
context.font = `${Math.round(canvas.width / 2.4)}px "Sage UI", Arial`;
|
|
64
64
|
context.textAlign = "center"; // Setup background and front color
|
|
65
65
|
|
|
66
66
|
context.fillStyle = _common.default[bgColor];
|
|
@@ -31,7 +31,7 @@ var _loader = _interopRequireDefault(require("../../loader"));
|
|
|
31
31
|
|
|
32
32
|
var _option = _interopRequireDefault(require("../option/option.component"));
|
|
33
33
|
|
|
34
|
-
var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid
|
|
34
|
+
var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid"));
|
|
35
35
|
|
|
36
36
|
var _selectListContext = _interopRequireDefault(require("../__internal__/select-list-context"));
|
|
37
37
|
|
|
@@ -15,7 +15,7 @@ var _textbox = _interopRequireDefault(require("../../textbox"));
|
|
|
15
15
|
|
|
16
16
|
var _selectText = _interopRequireDefault(require("../__internal__/select-text/select-text.component"));
|
|
17
17
|
|
|
18
|
-
var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid
|
|
18
|
+
var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid"));
|
|
19
19
|
|
|
20
20
|
var _useLocale = _interopRequireDefault(require("../../../hooks/__internal__/useLocale"));
|
|
21
21
|
|
|
@@ -374,18 +374,16 @@ const StyledTabTitle = _styledComponents.default.button`
|
|
|
374
374
|
|
|
375
375
|
${alternateStyling && (0, _styledComponents.css)`
|
|
376
376
|
&:focus {
|
|
377
|
-
background-color: var(--
|
|
377
|
+
background-color: var(--colorsActionMinor200);
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
&:hover {
|
|
381
|
-
background-color: ${isTabSelected ? "var(--
|
|
381
|
+
background-color: ${isTabSelected ? "var(--colorsActionMinor200)" : "var(--colorsActionMinor250)"};
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
${isTabSelected && (0, _styledComponents.css)`
|
|
385
|
-
background-color: var(--
|
|
385
|
+
background-color: var(--colorsActionMinor200);
|
|
386
386
|
`}
|
|
387
|
-
|
|
388
|
-
${isInSidebar && `padding-bottom: 1px;`}
|
|
389
387
|
`}
|
|
390
388
|
`}
|
|
391
389
|
`;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { Textbox as OriginalTextbox };
|
|
2
|
-
|
|
3
|
-
export default _default;
|
|
2
|
+
export default Textbox;
|
|
4
3
|
declare function Textbox({ align, autoFocus, children, disabled, inputIcon, leftChildren, labelId: externalLabelId, label, labelAlign, labelHelp, labelInline, labelSpacing, id, formattedValue, fieldHelp, error, warning, info, name, reverse, size, value, readOnly, placeholder, inputRef, onBlur, onClick, onFocus, onChange, onMouseDown, onChangeDeferred, deferTimeout, isOptional, iconOnClick, iconOnMouseDown, iconTabIndex, validationOnLabel, labelWidth, inputWidth, prefix, adaptiveLabelBreakpoint, required, positionedChildren, tooltipPosition, "data-component": dataComponent, "data-element": dataElement, "data-role": dataRole, enforceCharacterLimit, characterLimit, warnOverLimit, helpAriaLabel, ...props }: {
|
|
5
4
|
[x: string]: any;
|
|
6
5
|
align: any;
|
|
@@ -19,7 +19,7 @@ var _inputIconToggle = _interopRequireDefault(require("../../__internal__/input-
|
|
|
19
19
|
|
|
20
20
|
var _formField = _interopRequireDefault(require("../../__internal__/form-field"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _useUniqueId = _interopRequireDefault(require("../../__internal__/utils/helpers/useUniqueId"));
|
|
23
23
|
|
|
24
24
|
var _inputBehaviour = require("../../__internal__/input-behaviour");
|
|
25
25
|
|
|
@@ -113,13 +113,14 @@ const Textbox = ({
|
|
|
113
113
|
|
|
114
114
|
const computeLabelPropValues = prop => validationRedesignOptIn ? undefined : prop;
|
|
115
115
|
|
|
116
|
+
const [uniqueId, uniqueName] = (0, _useUniqueId.default)(id, name);
|
|
116
117
|
const {
|
|
117
118
|
labelId: internalLabelId,
|
|
118
119
|
validationIconId,
|
|
119
120
|
fieldHelpId,
|
|
120
121
|
ariaDescribedBy
|
|
121
122
|
} = (0, _useInputAccessibility.default)({
|
|
122
|
-
id,
|
|
123
|
+
id: uniqueId,
|
|
123
124
|
error,
|
|
124
125
|
warning,
|
|
125
126
|
info,
|
|
@@ -145,7 +146,7 @@ const Textbox = ({
|
|
|
145
146
|
labelInline: computeLabelPropValues(labelInline),
|
|
146
147
|
labelSpacing: labelSpacing,
|
|
147
148
|
labelWidth: computeLabelPropValues(labelWidth),
|
|
148
|
-
id:
|
|
149
|
+
id: uniqueId,
|
|
149
150
|
reverse: computeLabelPropValues(reverse),
|
|
150
151
|
isOptional: isOptional,
|
|
151
152
|
useValidationIcon: computeLabelPropValues(validationOnLabel),
|
|
@@ -185,9 +186,9 @@ const Textbox = ({
|
|
|
185
186
|
autoFocus: autoFocus,
|
|
186
187
|
deferTimeout: deferTimeout,
|
|
187
188
|
disabled: disabled,
|
|
188
|
-
id:
|
|
189
|
+
id: uniqueId,
|
|
189
190
|
inputRef: inputRef,
|
|
190
|
-
name:
|
|
191
|
+
name: uniqueName,
|
|
191
192
|
onBlur: onBlur,
|
|
192
193
|
onChange: onChange,
|
|
193
194
|
onChangeDeferred: onChangeDeferred,
|
|
@@ -410,7 +411,5 @@ Textbox.defaultProps = {
|
|
|
410
411
|
size: "medium",
|
|
411
412
|
validationOnLabel: false
|
|
412
413
|
};
|
|
413
|
-
|
|
414
|
-
var _default = (0, _withUniqueIdProps.default)(Textbox);
|
|
415
|
-
|
|
414
|
+
var _default = Textbox;
|
|
416
415
|
exports.default = _default;
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@font-face{
|
|
2
|
+
font-family: "Sage UI";
|
|
3
|
+
src: url('https://fonts.sage.com/Sage_UI-Regular.woff2') format("woff2"), url('https://fonts.sage.com/Sage_UI-Regular.woff') format("woff");
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@font-face{
|
|
10
|
+
font-family: "Sage UI";
|
|
11
|
+
src: url('https://fonts.sage.com/Sage_UI-Medium.woff2') format("woff2"), url('https://fonts.sage.com/Sage_UI-Medium.woff') format("woff");
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face{
|
|
18
|
+
font-family: "Sage UI";
|
|
19
|
+
src: url('https://fonts.sage.com/Sage_UI-Bold.woff2') format("woff2"), url('https://fonts.sage.com/Sage_UI-Bold.woff') format("woff");
|
|
20
|
+
font-weight: 900;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-display: swap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: "CarbonIcons";
|
|
27
|
+
src: url("./assets/carbon-icons-webfont.woff") format("woff");
|
|
28
|
+
font-weight: normal;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
}
|
|
@@ -10,7 +10,7 @@ var _styledComponents = require("styled-components");
|
|
|
10
10
|
const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
|
|
11
11
|
body {
|
|
12
12
|
color: rgba(0, 0, 0, 0.9);
|
|
13
|
-
font-family:
|
|
13
|
+
font-family: "Sage UI", sans-serif;
|
|
14
14
|
font-size: 14px;
|
|
15
15
|
margin: 0px;
|
|
16
16
|
padding: 0px;
|
|
@@ -54,6 +54,7 @@ declare function _default(palette: any): {
|
|
|
54
54
|
colorsYin075: string;
|
|
55
55
|
colorsYin090: string;
|
|
56
56
|
colorsYang100: string;
|
|
57
|
+
colorsYang030: string;
|
|
57
58
|
colorsYang080: string;
|
|
58
59
|
colorsGray850: string;
|
|
59
60
|
colorsGray900: string;
|
|
@@ -138,6 +139,8 @@ declare function _default(palette: any): {
|
|
|
138
139
|
colorsUtilityReadOnly400: string;
|
|
139
140
|
colorsUtilityReadOnly500: string;
|
|
140
141
|
colorsUtilityReadOnly600: string;
|
|
142
|
+
colorsActionMajor350: string;
|
|
143
|
+
colorsActionMajor450: string;
|
|
141
144
|
colorsActionMajor700: string;
|
|
142
145
|
colorsActionMajor025: string;
|
|
143
146
|
colorsActionMajorTransparent: string;
|
|
@@ -146,6 +149,7 @@ declare function _default(palette: any): {
|
|
|
146
149
|
colorsActionMajorYin065: string;
|
|
147
150
|
colorsActionMajorYin090: string;
|
|
148
151
|
colorsActionMajorYang100: string;
|
|
152
|
+
colorsActionMajorYang030: string;
|
|
149
153
|
colorsActionMinor100: string;
|
|
150
154
|
colorsActionMinor150: string;
|
|
151
155
|
colorsActionMinor200: string;
|
|
@@ -305,16 +309,10 @@ declare function _default(palette: any): {
|
|
|
305
309
|
typographyDatePickerCalendarDateM: string;
|
|
306
310
|
typographyDatePickerCalendarDayM: string;
|
|
307
311
|
typographyDatePickerCalendarMonthM: string;
|
|
308
|
-
typographyDialogTitleXs: string;
|
|
309
|
-
typographyDialogTitleS: string;
|
|
310
|
-
typographyDialogTitleMs: string;
|
|
311
312
|
typographyDialogTitleM: string;
|
|
312
|
-
|
|
313
|
-
typographyDialogTitleL: string;
|
|
314
|
-
typographyDialogTitleXl: string;
|
|
315
|
-
typographyDialogParagraphXs: string;
|
|
316
|
-
typographyDialogParagraphS: string;
|
|
313
|
+
typographyDialogParagraphM: string;
|
|
317
314
|
typographyDrawerTitleM: string;
|
|
315
|
+
typographyDrawerParagraphM: string;
|
|
318
316
|
typographyFlashTextM: string;
|
|
319
317
|
typographyFlashTextL: string;
|
|
320
318
|
typographyFormFieldLabelXs: string;
|
|
@@ -349,6 +347,7 @@ declare function _default(palette: any): {
|
|
|
349
347
|
typographyFormFieldCharacterCountS: string;
|
|
350
348
|
typographyFormFieldCharacterCountM: string;
|
|
351
349
|
typographyFormFieldCharacterCountL: string;
|
|
350
|
+
typographyLinkTextS: string;
|
|
352
351
|
typographyLinkTextM: string;
|
|
353
352
|
typographyLinkTextL: string;
|
|
354
353
|
typographyMenuLabelM: string;
|
|
@@ -358,6 +357,7 @@ declare function _default(palette: any): {
|
|
|
358
357
|
typographyMessageTextM: string;
|
|
359
358
|
typographyMessageTextL: string;
|
|
360
359
|
typographyPaginationLabelM: string;
|
|
360
|
+
typographyTileParagraphM: string;
|
|
361
361
|
typographyPillLabelS: string;
|
|
362
362
|
typographyPillLabelM: string;
|
|
363
363
|
typographyPillLabelL: string;
|
|
@@ -390,13 +390,22 @@ declare function _default(palette: any): {
|
|
|
390
390
|
typographySidebarTitleS: string;
|
|
391
391
|
typographySidebarTitleM: string;
|
|
392
392
|
typographySidebarTitleL: string;
|
|
393
|
+
typographySidebarParagraphM: string;
|
|
393
394
|
typographyStepFlowCompleteLabelM: string;
|
|
394
395
|
typographyStepFlowCurrentLabelM: string;
|
|
395
396
|
typographyStepFlowIncompleteLabelM: string;
|
|
396
397
|
typographySwitchOptionLabelM: string;
|
|
397
398
|
typographySwitchOptionLabelL: string;
|
|
399
|
+
typographyTableHeaderTextXs: string;
|
|
400
|
+
typographyTableHeaderTextS: string;
|
|
398
401
|
typographyTableHeaderTextM: string;
|
|
402
|
+
typographyTableHeaderTextL: string;
|
|
403
|
+
typographyTableHeaderTextXl: string;
|
|
404
|
+
typographyTableCellTextXs: string;
|
|
405
|
+
typographyTableCellTextS: string;
|
|
399
406
|
typographyTableCellTextM: string;
|
|
407
|
+
typographyTableCellTextL: string;
|
|
408
|
+
typographyTableCellTextXl: string;
|
|
400
409
|
typographyTooltipTextM: string;
|
|
401
410
|
typographyTooltipTextL: string;
|
|
402
411
|
opacity300: string;
|
|
@@ -10,6 +10,7 @@ declare var _default: {
|
|
|
10
10
|
colorsYin075: string;
|
|
11
11
|
colorsYin090: string;
|
|
12
12
|
colorsYang100: string;
|
|
13
|
+
colorsYang030: string;
|
|
13
14
|
colorsYang080: string;
|
|
14
15
|
colorsGray850: string;
|
|
15
16
|
colorsGray900: string;
|
|
@@ -95,6 +96,8 @@ declare var _default: {
|
|
|
95
96
|
colorsUtilityReadOnly500: string;
|
|
96
97
|
colorsUtilityReadOnly600: string;
|
|
97
98
|
colorsActionMajor150: string;
|
|
99
|
+
colorsActionMajor350: string;
|
|
100
|
+
colorsActionMajor450: string;
|
|
98
101
|
colorsActionMajor500: string;
|
|
99
102
|
colorsActionMajor600: string;
|
|
100
103
|
colorsActionMajor700: string;
|
|
@@ -105,6 +108,7 @@ declare var _default: {
|
|
|
105
108
|
colorsActionMajorYin065: string;
|
|
106
109
|
colorsActionMajorYin090: string;
|
|
107
110
|
colorsActionMajorYang100: string;
|
|
111
|
+
colorsActionMajorYang030: string;
|
|
108
112
|
colorsActionMinor100: string;
|
|
109
113
|
colorsActionMinor150: string;
|
|
110
114
|
colorsActionMinor200: string;
|
|
@@ -270,16 +274,10 @@ declare var _default: {
|
|
|
270
274
|
typographyDatePickerCalendarDateM: string;
|
|
271
275
|
typographyDatePickerCalendarDayM: string;
|
|
272
276
|
typographyDatePickerCalendarMonthM: string;
|
|
273
|
-
typographyDialogTitleXs: string;
|
|
274
|
-
typographyDialogTitleS: string;
|
|
275
|
-
typographyDialogTitleMs: string;
|
|
276
277
|
typographyDialogTitleM: string;
|
|
277
|
-
|
|
278
|
-
typographyDialogTitleL: string;
|
|
279
|
-
typographyDialogTitleXl: string;
|
|
280
|
-
typographyDialogParagraphXs: string;
|
|
281
|
-
typographyDialogParagraphS: string;
|
|
278
|
+
typographyDialogParagraphM: string;
|
|
282
279
|
typographyDrawerTitleM: string;
|
|
280
|
+
typographyDrawerParagraphM: string;
|
|
283
281
|
typographyFlashTextM: string;
|
|
284
282
|
typographyFlashTextL: string;
|
|
285
283
|
typographyFormFieldLabelXs: string;
|
|
@@ -314,6 +312,7 @@ declare var _default: {
|
|
|
314
312
|
typographyFormFieldCharacterCountS: string;
|
|
315
313
|
typographyFormFieldCharacterCountM: string;
|
|
316
314
|
typographyFormFieldCharacterCountL: string;
|
|
315
|
+
typographyLinkTextS: string;
|
|
317
316
|
typographyLinkTextM: string;
|
|
318
317
|
typographyLinkTextL: string;
|
|
319
318
|
typographyMenuLabelM: string;
|
|
@@ -323,6 +322,7 @@ declare var _default: {
|
|
|
323
322
|
typographyMessageTextM: string;
|
|
324
323
|
typographyMessageTextL: string;
|
|
325
324
|
typographyPaginationLabelM: string;
|
|
325
|
+
typographyTileParagraphM: string;
|
|
326
326
|
typographyPillLabelS: string;
|
|
327
327
|
typographyPillLabelM: string;
|
|
328
328
|
typographyPillLabelL: string;
|
|
@@ -355,13 +355,22 @@ declare var _default: {
|
|
|
355
355
|
typographySidebarTitleS: string;
|
|
356
356
|
typographySidebarTitleM: string;
|
|
357
357
|
typographySidebarTitleL: string;
|
|
358
|
+
typographySidebarParagraphM: string;
|
|
358
359
|
typographyStepFlowCompleteLabelM: string;
|
|
359
360
|
typographyStepFlowCurrentLabelM: string;
|
|
360
361
|
typographyStepFlowIncompleteLabelM: string;
|
|
361
362
|
typographySwitchOptionLabelM: string;
|
|
362
363
|
typographySwitchOptionLabelL: string;
|
|
364
|
+
typographyTableHeaderTextXs: string;
|
|
365
|
+
typographyTableHeaderTextS: string;
|
|
363
366
|
typographyTableHeaderTextM: string;
|
|
367
|
+
typographyTableHeaderTextL: string;
|
|
368
|
+
typographyTableHeaderTextXl: string;
|
|
369
|
+
typographyTableCellTextXs: string;
|
|
370
|
+
typographyTableCellTextS: string;
|
|
364
371
|
typographyTableCellTextM: string;
|
|
372
|
+
typographyTableCellTextL: string;
|
|
373
|
+
typographyTableCellTextXl: string;
|
|
365
374
|
typographyTooltipTextM: string;
|
|
366
375
|
typographyTooltipTextL: string;
|
|
367
376
|
opacity300: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carbon-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "106.0.2",
|
|
4
4
|
"description": "A library of reusable React components for easily building user interfaces.",
|
|
5
5
|
"engineStrict": true,
|
|
6
6
|
"engines": {
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://carbon.sage.com",
|
|
53
53
|
"peerDependencies": {
|
|
54
|
+
"@sage/design-tokens": "^2.3.0",
|
|
54
55
|
"draft-js": "^0.11.5",
|
|
55
56
|
"react": "^16.14.0",
|
|
56
57
|
"react-dom": "^16.14.0",
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"@commitlint/config-conventional": "^11.0.0",
|
|
70
71
|
"@cypress/react": "^5.12.0",
|
|
71
72
|
"@cypress/webpack-dev-server": "^1.8.4",
|
|
73
|
+
"@sage/design-tokens": "^2.3.0",
|
|
72
74
|
"@semantic-release/changelog": "^6.0.1",
|
|
73
75
|
"@semantic-release/exec": "^6.0.2",
|
|
74
76
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -90,6 +92,7 @@
|
|
|
90
92
|
"@types/enzyme-adapter-react-16": "^1.0.5",
|
|
91
93
|
"@types/invariant": "^2.2.35",
|
|
92
94
|
"@types/jest": "^26.0.19",
|
|
95
|
+
"@types/lodash": "^4.14.179",
|
|
93
96
|
"@types/node": "10.12.18",
|
|
94
97
|
"@types/react": "16.9.56",
|
|
95
98
|
"@types/react-dom": "16.9.8",
|
|
@@ -156,13 +159,11 @@
|
|
|
156
159
|
"typescript": "^4.6.2",
|
|
157
160
|
"typescript-to-proptypes": "^2.2.1",
|
|
158
161
|
"uuid": "^8.3.2",
|
|
159
|
-
"webfontloader": "^1.6.28",
|
|
160
162
|
"webpack-dev-server": "^4.0.0"
|
|
161
163
|
},
|
|
162
164
|
"dependencies": {
|
|
163
165
|
"@octokit/rest": "^18.12.0",
|
|
164
166
|
"@popperjs/core": "^2.11.2",
|
|
165
|
-
"@sage/design-tokens": "^1.93.0",
|
|
166
167
|
"@styled-system/prop-types": "^5.1.5",
|
|
167
168
|
"@tippyjs/react": "^4.2.5",
|
|
168
169
|
"@types/styled-system": "^5.1.11",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ether
|
|
3
|
-
*
|
|
4
|
-
* Ether provides functional-like helper methods for Carbon specific tasks.
|
|
5
|
-
* As we are dealing with stateful values (user input, browser state) Ether
|
|
6
|
-
* does not provide pure functions in all cases.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Returns the props that were passed to a component but excludes the props listed in propTypes
|
|
10
|
-
*
|
|
11
|
-
* Optionally includes the safeProps which can be defined as a static property on a Class or passed as the second
|
|
12
|
-
* argument.
|
|
13
|
-
*
|
|
14
|
-
* @method validProps
|
|
15
|
-
* @param {Object} instance
|
|
16
|
-
* @param {Array?} safeProps
|
|
17
|
-
* @return {Object} props
|
|
18
|
-
*/
|
|
19
|
-
export function validProps(instance: Object, safeProps: any[] | null): Object;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { omit, difference } from "lodash";
|
|
2
|
-
/**
|
|
3
|
-
* Ether
|
|
4
|
-
*
|
|
5
|
-
* Ether provides functional-like helper methods for Carbon specific tasks.
|
|
6
|
-
* As we are dealing with stateful values (user input, browser state) Ether
|
|
7
|
-
* does not provide pure functions in all cases.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Returns the props that were passed to a component but excludes the props listed in propTypes
|
|
12
|
-
*
|
|
13
|
-
* Optionally includes the safeProps which can be defined as a static property on a Class or passed as the second
|
|
14
|
-
* argument.
|
|
15
|
-
*
|
|
16
|
-
* @method validProps
|
|
17
|
-
* @param {Object} instance
|
|
18
|
-
* @param {Array?} safeProps
|
|
19
|
-
* @return {Object} props
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
function validProps(instance, safeProps) {
|
|
23
|
-
const component = instance.isReactComponent ? instance.constructor : instance;
|
|
24
|
-
const unsafeProps = difference(Object.keys(component.propTypes), safeProps || component.safeProps || []);
|
|
25
|
-
return omit(instance.props, unsafeProps);
|
|
26
|
-
} // eslint-disable-next-line import/prefer-default-export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export { validProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./ether";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./ether";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default Browser;
|
|
2
|
-
declare namespace Browser {
|
|
3
|
-
function isDomAvailable(): boolean;
|
|
4
|
-
function getWindow(): any;
|
|
5
|
-
function getDocument(): Document;
|
|
6
|
-
function getActiveElement(): Element | null;
|
|
7
|
-
function redirectTo(url: any): void;
|
|
8
|
-
function redirectAfter(url: any, seconds: any): NodeJS.Timeout;
|
|
9
|
-
function reload(): void;
|
|
10
|
-
function editFocus(ref: any): void;
|
|
11
|
-
function setFocus(reactNode: any): void;
|
|
12
|
-
function setInputFocus(inputComponent: any): void;
|
|
13
|
-
function setCookie(name: any, value: any, options?: Object): void;
|
|
14
|
-
function getCookie(name: string): string | null;
|
|
15
|
-
function postToNewWindow(url: string, data: Object, target?: Object): void;
|
|
16
|
-
function submitForm(form: any): void;
|
|
17
|
-
}
|