carbon-react 106.7.0 → 107.0.0
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/{components/radio-button → __internal__/radio-button-mapper}/radio-button-mapper.component.d.ts +0 -0
- package/esm/{components/radio-button → __internal__/radio-button-mapper}/radio-button-mapper.component.js +0 -0
- package/esm/components/badge/badge.style.d.ts +1 -1
- package/esm/components/button/button.component.d.ts +1 -3
- package/esm/components/button/button.component.js +1 -12
- package/esm/components/button/button.style.d.ts +1 -1
- package/esm/components/button-toggle-group/button-toggle-group.component.js +1 -1
- package/esm/components/confirm/confirm.component.d.ts +1 -5
- package/esm/components/confirm/confirm.component.js +2 -14
- package/esm/components/confirm/confirm.d.ts +0 -2
- package/esm/components/dialog-full-screen/content.style.js +4 -10
- package/esm/components/heading/heading.component.d.ts +27 -52
- package/esm/components/heading/heading.component.js +86 -170
- package/esm/components/heading/heading.d.ts +5 -3
- package/esm/components/i18n-provider/i18n-provider.component.d.ts +0 -9
- package/esm/components/i18n-provider/i18n-provider.component.js +0 -9
- package/esm/components/menu/index.d.ts +0 -1
- package/esm/components/menu/index.js +0 -1
- package/esm/components/menu/menu-item/menu-item.component.js +0 -6
- package/esm/components/multi-action-button/multi-action-button.component.d.ts +1 -1
- package/esm/components/multi-action-button/multi-action-button.component.js +1 -11
- package/esm/components/navigation-bar/navigation-bar.component.d.ts +1 -6
- package/esm/components/navigation-bar/navigation-bar.component.js +1 -15
- package/esm/components/navigation-bar/navigation-bar.style.d.ts +0 -4
- package/esm/components/navigation-bar/navigation-bar.style.js +0 -8
- package/esm/components/radio-button/radio-button-group.component.js +1 -1
- package/esm/components/select/select-list/select-list.component.js +2 -2
- package/esm/components/simple-color-picker/simple-color-picker.component.js +1 -1
- package/esm/components/split-button/split-button-toggle.style.d.ts +1 -1
- package/esm/components/split-button/split-button.component.d.ts +1 -4
- package/esm/components/split-button/split-button.component.js +3 -16
- package/esm/components/split-button/split-button.d.ts +0 -2
- package/esm/components/tile/tile.component.d.ts +1 -2
- package/esm/components/tile/tile.component.js +1 -13
- package/esm/components/tile/tile.d.ts +0 -2
- package/esm/components/tile-select/tile-select-group.component.js +1 -1
- package/esm/components/toast/toast.component.d.ts +1 -4
- package/esm/components/toast/toast.component.js +1 -13
- package/esm/components/toast/toast.d.ts +0 -2
- package/esm/locales/en-gb.js +0 -9
- package/esm/locales/locale.d.ts +0 -9
- package/esm/locales/pl-pl.js +0 -9
- package/lib/{components/radio-button → __internal__/radio-button-mapper}/radio-button-mapper.component.d.ts +0 -0
- package/lib/{components/radio-button → __internal__/radio-button-mapper}/radio-button-mapper.component.js +0 -0
- package/lib/components/badge/badge.style.d.ts +1 -1
- package/lib/components/button/button.component.d.ts +1 -3
- package/lib/components/button/button.component.js +1 -14
- package/lib/components/button/button.style.d.ts +1 -1
- package/lib/components/button-toggle-group/button-toggle-group.component.js +1 -1
- package/lib/components/confirm/confirm.component.d.ts +1 -5
- package/lib/components/confirm/confirm.component.js +2 -17
- package/lib/components/confirm/confirm.d.ts +0 -2
- package/lib/components/dialog-full-screen/content.style.js +4 -10
- package/lib/components/heading/heading.component.d.ts +27 -52
- package/lib/components/heading/heading.component.js +86 -170
- package/lib/components/heading/heading.d.ts +5 -3
- package/lib/components/i18n-provider/i18n-provider.component.d.ts +0 -9
- package/lib/components/i18n-provider/i18n-provider.component.js +0 -9
- package/lib/components/menu/index.d.ts +0 -1
- package/lib/components/menu/index.js +0 -8
- package/lib/components/menu/menu-item/menu-item.component.js +0 -7
- package/lib/components/multi-action-button/multi-action-button.component.d.ts +1 -1
- package/lib/components/multi-action-button/multi-action-button.component.js +1 -14
- package/lib/components/navigation-bar/navigation-bar.component.d.ts +1 -6
- package/lib/components/navigation-bar/navigation-bar.component.js +1 -18
- package/lib/components/navigation-bar/navigation-bar.style.d.ts +0 -4
- package/lib/components/navigation-bar/navigation-bar.style.js +0 -8
- package/lib/components/radio-button/radio-button-group.component.js +1 -1
- package/lib/components/select/select-list/select-list.component.js +2 -2
- package/lib/components/simple-color-picker/simple-color-picker.component.js +1 -1
- package/lib/components/split-button/split-button-toggle.style.d.ts +1 -1
- package/lib/components/split-button/split-button.component.d.ts +1 -4
- package/lib/components/split-button/split-button.component.js +3 -18
- package/lib/components/split-button/split-button.d.ts +0 -2
- package/lib/components/tile/tile.component.d.ts +1 -2
- package/lib/components/tile/tile.component.js +1 -16
- package/lib/components/tile/tile.d.ts +0 -2
- package/lib/components/tile-select/tile-select-group.component.js +1 -1
- package/lib/components/toast/toast.component.d.ts +1 -4
- package/lib/components/toast/toast.component.js +1 -16
- package/lib/components/toast/toast.d.ts +0 -2
- package/lib/locales/en-gb.js +0 -9
- package/lib/locales/locale.d.ts +0 -9
- package/lib/locales/pl-pl.js +0 -9
- package/package.json +1 -1
- package/esm/components/app-wrapper/app-wrapper.component.d.ts +0 -25
- package/esm/components/app-wrapper/app-wrapper.component.js +0 -104
- package/esm/components/app-wrapper/app-wrapper.d.ts +0 -12
- package/esm/components/app-wrapper/app-wrapper.style.d.ts +0 -2
- package/esm/components/app-wrapper/app-wrapper.style.js +0 -17
- package/esm/components/app-wrapper/index.d.ts +0 -1
- package/esm/components/app-wrapper/index.js +0 -1
- package/esm/components/menu/submenu-block/index.d.ts +0 -2
- package/esm/components/menu/submenu-block/index.js +0 -1
- package/esm/components/menu/submenu-block/submenu-block.component.d.ts +0 -12
- package/esm/components/menu/submenu-block/submenu-block.component.js +0 -34
- package/esm/components/menu/submenu-block/submenu-block.d.ts +0 -12
- package/esm/components/menu/submenu-block/submenu-block.style.d.ts +0 -2
- package/esm/components/menu/submenu-block/submenu-block.style.js +0 -16
- package/esm/components/mount-in-app/__spec__.d.ts +0 -1
- package/esm/components/mount-in-app/__spec__.js +0 -47
- package/esm/components/mount-in-app/index.d.ts +0 -1
- package/esm/components/mount-in-app/mount-in-app.d.ts +0 -12
- package/esm/components/mount-in-app/mount-in-app.js +0 -90
- package/esm/components/mount-in-app/package.json +0 -3
- package/esm/components/multi-step-wizard/__spec__.d.ts +0 -1
- package/esm/components/multi-step-wizard/__spec__.js +0 -191
- package/esm/components/multi-step-wizard/multi-step-wizard.d.ts +0 -109
- package/esm/components/multi-step-wizard/multi-step-wizard.js +0 -383
- package/esm/components/multi-step-wizard/multi-step-wizard.style.d.ts +0 -2
- package/esm/components/multi-step-wizard/multi-step-wizard.style.js +0 -10
- package/esm/components/multi-step-wizard/package.json +0 -4
- package/esm/components/multi-step-wizard/step/__spec__.d.ts +0 -1
- package/esm/components/multi-step-wizard/step/__spec__.js +0 -399
- package/esm/components/multi-step-wizard/step/package.json +0 -4
- package/esm/components/multi-step-wizard/step/step.d.ts +0 -166
- package/esm/components/multi-step-wizard/step/step.js +0 -407
- package/esm/components/multi-step-wizard/step/step.style.d.ts +0 -13
- package/esm/components/multi-step-wizard/step/step.style.js +0 -138
- package/esm/components/scrollable-list/as-scrollable-list-item.wrapper.d.ts +0 -2
- package/esm/components/scrollable-list/as-scrollable-list-item.wrapper.js +0 -10
- package/esm/components/scrollable-list/index.d.ts +0 -4
- package/esm/components/scrollable-list/index.js +0 -4
- package/esm/components/scrollable-list/scrollable-list-item.component.d.ts +0 -2
- package/esm/components/scrollable-list/scrollable-list-item.component.js +0 -26
- package/esm/components/scrollable-list/scrollable-list.component.d.ts +0 -52
- package/esm/components/scrollable-list/scrollable-list.component.js +0 -306
- package/esm/components/scrollable-list/scrollable-list.context.d.ts +0 -3
- package/esm/components/scrollable-list/scrollable-list.context.js +0 -2
- package/esm/components/scrollable-list/scrollable-list.style.d.ts +0 -2
- package/esm/components/scrollable-list/scrollable-list.style.js +0 -30
- package/esm/components/scrollable-list/test-utils.d.ts +0 -2
- package/esm/components/scrollable-list/test-utils.js +0 -25
- package/lib/components/app-wrapper/app-wrapper.component.d.ts +0 -25
- package/lib/components/app-wrapper/app-wrapper.component.js +0 -120
- package/lib/components/app-wrapper/app-wrapper.d.ts +0 -12
- package/lib/components/app-wrapper/app-wrapper.style.d.ts +0 -2
- package/lib/components/app-wrapper/app-wrapper.style.js +0 -28
- package/lib/components/app-wrapper/index.d.ts +0 -1
- package/lib/components/app-wrapper/index.js +0 -15
- package/lib/components/app-wrapper/package.json +0 -6
- package/lib/components/menu/submenu-block/index.d.ts +0 -2
- package/lib/components/menu/submenu-block/index.js +0 -15
- package/lib/components/menu/submenu-block/package.json +0 -6
- package/lib/components/menu/submenu-block/submenu-block.component.d.ts +0 -12
- package/lib/components/menu/submenu-block/submenu-block.component.js +0 -53
- package/lib/components/menu/submenu-block/submenu-block.d.ts +0 -12
- package/lib/components/menu/submenu-block/submenu-block.style.d.ts +0 -2
- package/lib/components/menu/submenu-block/submenu-block.style.js +0 -33
- package/lib/components/mount-in-app/__spec__.d.ts +0 -1
- package/lib/components/mount-in-app/__spec__.js +0 -55
- package/lib/components/mount-in-app/index.d.ts +0 -1
- package/lib/components/mount-in-app/mount-in-app.d.ts +0 -12
- package/lib/components/mount-in-app/mount-in-app.js +0 -105
- package/lib/components/mount-in-app/package.json +0 -3
- package/lib/components/multi-step-wizard/__spec__.d.ts +0 -1
- package/lib/components/multi-step-wizard/__spec__.js +0 -202
- package/lib/components/multi-step-wizard/multi-step-wizard.d.ts +0 -109
- package/lib/components/multi-step-wizard/multi-step-wizard.js +0 -397
- package/lib/components/multi-step-wizard/multi-step-wizard.style.d.ts +0 -2
- package/lib/components/multi-step-wizard/multi-step-wizard.style.js +0 -21
- package/lib/components/multi-step-wizard/package.json +0 -4
- package/lib/components/multi-step-wizard/step/__spec__.d.ts +0 -1
- package/lib/components/multi-step-wizard/step/__spec__.js +0 -409
- package/lib/components/multi-step-wizard/step/package.json +0 -4
- package/lib/components/multi-step-wizard/step/step.d.ts +0 -166
- package/lib/components/multi-step-wizard/step/step.js +0 -421
- package/lib/components/multi-step-wizard/step/step.style.d.ts +0 -13
- package/lib/components/multi-step-wizard/step/step.style.js +0 -162
- package/lib/components/scrollable-list/as-scrollable-list-item.wrapper.d.ts +0 -2
- package/lib/components/scrollable-list/as-scrollable-list-item.wrapper.js +0 -21
- package/lib/components/scrollable-list/index.d.ts +0 -4
- package/lib/components/scrollable-list/index.js +0 -31
- package/lib/components/scrollable-list/package.json +0 -6
- package/lib/components/scrollable-list/scrollable-list-item.component.d.ts +0 -2
- package/lib/components/scrollable-list/scrollable-list-item.component.js +0 -42
- package/lib/components/scrollable-list/scrollable-list.component.d.ts +0 -52
- package/lib/components/scrollable-list/scrollable-list.component.js +0 -328
- package/lib/components/scrollable-list/scrollable-list.context.d.ts +0 -3
- package/lib/components/scrollable-list/scrollable-list.context.js +0 -14
- package/lib/components/scrollable-list/scrollable-list.style.d.ts +0 -2
- package/lib/components/scrollable-list/scrollable-list.style.js +0 -41
- package/lib/components/scrollable-list/test-utils.d.ts +0 -2
- package/lib/components/scrollable-list/test-utils.js +0 -37
|
@@ -19,8 +19,6 @@ var _tags = _interopRequireDefault(require("../../__internal__/utils/helpers/tag
|
|
|
19
19
|
|
|
20
20
|
var _tooltipProvider = require("../../__internal__/tooltip-provider");
|
|
21
21
|
|
|
22
|
-
var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
|
|
23
|
-
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
23
|
|
|
26
24
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
@@ -94,12 +92,10 @@ renderChildren.propTypes = {
|
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
};
|
|
97
|
-
let deprecatedWarnTriggered = false;
|
|
98
95
|
|
|
99
96
|
const Button = ({
|
|
100
97
|
size = "medium",
|
|
101
98
|
subtext = "",
|
|
102
|
-
as,
|
|
103
99
|
children,
|
|
104
100
|
forwardRef,
|
|
105
101
|
"aria-label": ariaLabel,
|
|
@@ -119,13 +115,6 @@ const Button = ({
|
|
|
119
115
|
fullWidth = false,
|
|
120
116
|
...rest
|
|
121
117
|
}) => {
|
|
122
|
-
if (!deprecatedWarnTriggered && as) {
|
|
123
|
-
deprecatedWarnTriggered = true;
|
|
124
|
-
|
|
125
|
-
_logger.default.deprecate( // eslint-disable-next-line max-len
|
|
126
|
-
"The `as` prop is deprecated and will soon be removed from the `Button` component interface. You should use the `buttonType` prop to achieve the same styling. The following codemod is available to help with updating your code https://github.com/Sage/carbon-codemod/tree/master/transforms/rename-prop");
|
|
127
|
-
}
|
|
128
|
-
|
|
129
118
|
(0, _invariant.default)(!!(children || iconType), "Either prop `iconType` must be defined or this node must have children.");
|
|
130
119
|
|
|
131
120
|
if (subtext) {
|
|
@@ -133,7 +122,7 @@ const Button = ({
|
|
|
133
122
|
}
|
|
134
123
|
|
|
135
124
|
const [internalRef, setInternalRef] = (0, _react.useState)();
|
|
136
|
-
const buttonType =
|
|
125
|
+
const buttonType = buttonTypeProp;
|
|
137
126
|
let paddingX;
|
|
138
127
|
|
|
139
128
|
const handleLinkKeyDown = event => {
|
|
@@ -203,7 +192,6 @@ const Button = ({
|
|
|
203
192
|
|
|
204
193
|
Button.propTypes = {
|
|
205
194
|
"aria-label": _propTypes.default.string,
|
|
206
|
-
"as": _propTypes.default.oneOf(["darkBackground", "dashed", "primary", "secondary", "tertiary"]),
|
|
207
195
|
"buttonType": _propTypes.default.oneOf(["darkBackground", "dashed", "primary", "secondary", "tertiary"]),
|
|
208
196
|
"children": _propTypes.default.node,
|
|
209
197
|
"destructive": _propTypes.default.bool,
|
|
@@ -546,7 +534,6 @@ const ButtonWithForwardRef = /*#__PURE__*/_react.default.forwardRef((props, ref)
|
|
|
546
534
|
exports.ButtonWithForwardRef = ButtonWithForwardRef;
|
|
547
535
|
ButtonWithForwardRef.propTypes = {
|
|
548
536
|
"aria-label": _propTypes.default.string,
|
|
549
|
-
"as": _propTypes.default.oneOf(["darkBackground", "dashed", "primary", "secondary", "tertiary"]),
|
|
550
537
|
"buttonType": _propTypes.default.oneOf(["darkBackground", "dashed", "primary", "secondary", "tertiary"]),
|
|
551
538
|
"children": _propTypes.default.node,
|
|
552
539
|
"destructive": _propTypes.default.bool,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceProps } from "styled-system";
|
|
2
2
|
import { ButtonProps } from "./button.component";
|
|
3
|
-
declare const StyledButton: import("styled-components").StyledComponent<"button", any, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> &
|
|
3
|
+
declare const StyledButton: import("styled-components").StyledComponent<"button", any, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & ButtonProps & {
|
|
4
4
|
iconOnly?: boolean | undefined;
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const StyledButtonSubtext: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -17,7 +17,7 @@ var _buttonToggleGroup = _interopRequireDefault(require("./button-toggle-group.s
|
|
|
17
17
|
|
|
18
18
|
var _buttonToggle = _interopRequireDefault(require("../button-toggle"));
|
|
19
19
|
|
|
20
|
-
var _radioButtonMapper = _interopRequireDefault(require("
|
|
20
|
+
var _radioButtonMapper = _interopRequireDefault(require("../../__internal__/radio-button-mapper/radio-button-mapper.component"));
|
|
21
21
|
|
|
22
22
|
var _validationIcon = _interopRequireDefault(require("../../__internal__/validations/validation-icon.component"));
|
|
23
23
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export default Confirm;
|
|
2
|
-
declare function Confirm({ "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, open, children,
|
|
2
|
+
declare function Confirm({ "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, open, children, cancelButtonDestructive, confirmButtonDestructive, cancelButtonType, confirmButtonType, cancelButtonIconType, cancelButtonIconPosition, confirmButtonIconType, confirmButtonIconPosition, cancelLabel, onCancel, disableCancel, onConfirm, isLoadingConfirm, disableConfirm, confirmLabel, iconType, subtitle, title, ...rest }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
"aria-labelledby": any;
|
|
5
5
|
"aria-describedby": any;
|
|
6
6
|
"aria-label": any;
|
|
7
7
|
open: any;
|
|
8
8
|
children: any;
|
|
9
|
-
destructive: any;
|
|
10
9
|
cancelButtonDestructive: any;
|
|
11
10
|
confirmButtonDestructive: any;
|
|
12
11
|
cancelButtonType: any;
|
|
@@ -30,7 +29,6 @@ declare namespace Confirm {
|
|
|
30
29
|
namespace defaultProps {
|
|
31
30
|
const size: string;
|
|
32
31
|
const showCloseIcon: boolean;
|
|
33
|
-
const destructive: boolean;
|
|
34
32
|
const cancelButtonDestructive: boolean;
|
|
35
33
|
const confirmButtonDestructive: boolean;
|
|
36
34
|
const iconType: null;
|
|
@@ -81,8 +79,6 @@ declare namespace Confirm {
|
|
|
81
79
|
confirmLabel: PropTypes.Requireable<string>;
|
|
82
80
|
/** Customise the cancel button label */
|
|
83
81
|
cancelLabel: PropTypes.Requireable<string>;
|
|
84
|
-
/** Apply destructive style to the buttons */
|
|
85
|
-
destructive: PropTypes.Requireable<boolean>;
|
|
86
82
|
/** Apply destructive style to the cancel button */
|
|
87
83
|
cancelButtonDestructive: PropTypes.Requireable<boolean>;
|
|
88
84
|
/** Apply destructive style to the confirm button */
|
|
@@ -11,8 +11,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _guid = _interopRequireDefault(require("../../__internal__/utils/helpers/guid"));
|
|
13
13
|
|
|
14
|
-
var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
|
|
15
|
-
|
|
16
14
|
var _heading = _interopRequireDefault(require("../heading"));
|
|
17
15
|
|
|
18
16
|
var _dialog = _interopRequireDefault(require("../dialog"));
|
|
@@ -35,15 +33,12 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
35
33
|
|
|
36
34
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
37
35
|
|
|
38
|
-
let deprecatedWarnTriggered = false;
|
|
39
|
-
|
|
40
36
|
const Confirm = ({
|
|
41
37
|
"aria-labelledby": ariaLabelledBy,
|
|
42
38
|
"aria-describedby": ariaDescribedBy,
|
|
43
39
|
"aria-label": ariaLabel,
|
|
44
40
|
open,
|
|
45
41
|
children,
|
|
46
|
-
destructive,
|
|
47
42
|
cancelButtonDestructive,
|
|
48
43
|
confirmButtonDestructive,
|
|
49
44
|
cancelButtonType,
|
|
@@ -64,12 +59,6 @@ const Confirm = ({
|
|
|
64
59
|
title,
|
|
65
60
|
...rest
|
|
66
61
|
}) => {
|
|
67
|
-
if (!deprecatedWarnTriggered && destructive) {
|
|
68
|
-
deprecatedWarnTriggered = true;
|
|
69
|
-
|
|
70
|
-
_logger.default.deprecate("`destructive` prop is deprecated and will soon be removed. Please use `cancelButtonDestructive` and `confirmButtonDestructive` props.");
|
|
71
|
-
}
|
|
72
|
-
|
|
73
62
|
const l = (0, _useLocale.default)();
|
|
74
63
|
const {
|
|
75
64
|
current: titleId
|
|
@@ -97,7 +86,7 @@ const Confirm = ({
|
|
|
97
86
|
onClick: onCancel,
|
|
98
87
|
"data-element": "cancel",
|
|
99
88
|
buttonType: cancelButtonType,
|
|
100
|
-
destructive:
|
|
89
|
+
destructive: cancelButtonDestructive,
|
|
101
90
|
disabled: disableCancel,
|
|
102
91
|
iconType: cancelButtonIconType,
|
|
103
92
|
iconPosition: cancelButtonIconPosition
|
|
@@ -108,7 +97,7 @@ const Confirm = ({
|
|
|
108
97
|
onClick: onConfirm,
|
|
109
98
|
"data-element": "confirm",
|
|
110
99
|
buttonType: confirmButtonType,
|
|
111
|
-
destructive:
|
|
100
|
+
destructive: confirmButtonDestructive,
|
|
112
101
|
disabled: isLoadingConfirm || disableConfirm,
|
|
113
102
|
ml: 2,
|
|
114
103
|
iconType: confirmButtonIconType,
|
|
@@ -152,7 +141,6 @@ const Confirm = ({
|
|
|
152
141
|
Confirm.defaultProps = {
|
|
153
142
|
size: "extra-small",
|
|
154
143
|
showCloseIcon: false,
|
|
155
|
-
destructive: false,
|
|
156
144
|
cancelButtonDestructive: false,
|
|
157
145
|
confirmButtonDestructive: false,
|
|
158
146
|
iconType: null,
|
|
@@ -220,9 +208,6 @@ Confirm.propTypes = {
|
|
|
220
208
|
/** Customise the cancel button label */
|
|
221
209
|
cancelLabel: _propTypes.default.string,
|
|
222
210
|
|
|
223
|
-
/** Apply destructive style to the buttons */
|
|
224
|
-
destructive: _propTypes.default.bool,
|
|
225
|
-
|
|
226
211
|
/** Apply destructive style to the cancel button */
|
|
227
212
|
cancelButtonDestructive: _propTypes.default.bool,
|
|
228
213
|
|
|
@@ -21,8 +21,6 @@ export interface ConfirmProps extends DialogProps {
|
|
|
21
21
|
cancelLabel?: string;
|
|
22
22
|
/** Customise the confirm button label */
|
|
23
23
|
confirmLabel?: string;
|
|
24
|
-
/** Apply destructive style to the buttons */
|
|
25
|
-
destructive?: boolean;
|
|
26
24
|
/** Apply destructive style to the cancel button */
|
|
27
25
|
cancelButtonDestructive?: boolean;
|
|
28
26
|
/** Apply destructive style to the confirm button */
|
|
@@ -93,16 +93,10 @@ const StyledContent = _styledComponents.default.div`
|
|
|
93
93
|
|
|
94
94
|
${({
|
|
95
95
|
hasHeader
|
|
96
|
-
}) => !hasHeader && `
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.carbon-app-wrapper {
|
|
101
|
-
max-width: 100%;
|
|
102
|
-
padding: 0;
|
|
103
|
-
height: 70px;
|
|
104
|
-
}
|
|
105
|
-
`}
|
|
96
|
+
}) => !hasHeader && (0, _styledComponents.css)`
|
|
97
|
+
padding-top: 0;
|
|
98
|
+
margin-top: -25px;
|
|
99
|
+
`}
|
|
106
100
|
`;
|
|
107
101
|
var _default = StyledContent;
|
|
108
102
|
exports.default = _default;
|
|
@@ -1,64 +1,44 @@
|
|
|
1
1
|
export default Heading;
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
declare function Heading({ children, backLink, divider, help, helpAriaLabel, helpLink, pills, separator, subheader, subtitleId, title, titleId, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
children: any;
|
|
5
|
+
backLink: any;
|
|
6
|
+
divider?: boolean | undefined;
|
|
7
|
+
help: any;
|
|
8
|
+
helpAriaLabel: any;
|
|
9
|
+
helpLink: any;
|
|
10
|
+
pills: any;
|
|
11
|
+
separator?: boolean | undefined;
|
|
12
|
+
subheader: any;
|
|
13
|
+
subtitleId: any;
|
|
14
|
+
title: any;
|
|
15
|
+
titleId: any;
|
|
16
|
+
}): JSX.Element | null;
|
|
13
17
|
declare namespace Heading {
|
|
14
18
|
const propTypes: {
|
|
15
|
-
/**
|
|
16
|
-
* Children elements
|
|
17
|
-
*/
|
|
19
|
+
/** Child elements */
|
|
18
20
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
-
/**
|
|
20
|
-
* Defines the title for the heading.
|
|
21
|
-
*/
|
|
21
|
+
/** Defines the title for the heading. */
|
|
22
22
|
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
23
|
-
/**
|
|
24
|
-
* Defines the title id for the heading.
|
|
25
|
-
*/
|
|
23
|
+
/** Defines the title id for the heading. */
|
|
26
24
|
titleId: PropTypes.Requireable<string>;
|
|
27
|
-
/**
|
|
28
|
-
* Defines the subheader for the heading.
|
|
29
|
-
*/
|
|
25
|
+
/** Defines the subheader for the heading. */
|
|
30
26
|
subheader: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
31
|
-
/**
|
|
32
|
-
* Defines the subtitle id for the heading.
|
|
33
|
-
*/
|
|
27
|
+
/** Defines the subtitle id for the heading. */
|
|
34
28
|
subtitleId: PropTypes.Requireable<string>;
|
|
35
|
-
/**
|
|
36
|
-
* Defines the help text for the heading.
|
|
37
|
-
*/
|
|
29
|
+
/** Defines the help text for the heading. */
|
|
38
30
|
help: PropTypes.Requireable<string>;
|
|
39
|
-
/**
|
|
40
|
-
* Defines the help link for the heading.
|
|
41
|
-
*/
|
|
31
|
+
/** Defines the help link for the heading. */
|
|
42
32
|
helpLink: PropTypes.Requireable<string>;
|
|
43
|
-
/**
|
|
44
|
-
* Defines the a href for the back link.
|
|
45
|
-
*/
|
|
33
|
+
/** Defines the a href for the back link. */
|
|
46
34
|
backLink: PropTypes.Requireable<string | ((...args: any[]) => any)>;
|
|
47
|
-
/**
|
|
48
|
-
* Adds a divider below the heading and the content.
|
|
49
|
-
*/
|
|
35
|
+
/** Adds a divider below the heading and the content. */
|
|
50
36
|
divider: PropTypes.Requireable<boolean>;
|
|
51
|
-
/**
|
|
52
|
-
* Adds a separator between the title and the subheader.
|
|
53
|
-
*/
|
|
37
|
+
/** Adds a separator between the title and the subheader. */
|
|
54
38
|
separator: PropTypes.Requireable<boolean>;
|
|
55
|
-
/**
|
|
56
|
-
* Pills that will be added after the title.
|
|
57
|
-
*/
|
|
39
|
+
/** Pills that will be added after the title. */
|
|
58
40
|
pills: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
59
|
-
/**
|
|
60
|
-
* Aria label for rendered help component
|
|
61
|
-
*/
|
|
41
|
+
/** Aria label for rendered help component */
|
|
62
42
|
helpAriaLabel: PropTypes.Requireable<string>;
|
|
63
43
|
marginBottom?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
|
64
44
|
margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
|
@@ -75,10 +55,5 @@ declare namespace Heading {
|
|
|
75
55
|
marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
|
76
56
|
my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
|
77
57
|
};
|
|
78
|
-
namespace defaultProps {
|
|
79
|
-
const divider: boolean;
|
|
80
|
-
const separator: boolean;
|
|
81
|
-
}
|
|
82
58
|
}
|
|
83
|
-
import React from "react";
|
|
84
59
|
import PropTypes from "prop-types";
|
|
@@ -21,204 +21,120 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
21
21
|
|
|
22
22
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
|
|
26
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
29
|
-
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
-
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
37
|
-
|
|
38
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
-
|
|
40
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
24
|
const marginPropTypes = (0, _utils.filterStyledSystemMarginProps)(_propTypes2.default.space);
|
|
45
25
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
get: function () {
|
|
121
|
-
return this.props.divider ? /*#__PURE__*/_react.default.createElement(_heading.StyledDivider, {
|
|
122
|
-
"data-element": "divider"
|
|
123
|
-
}) : null;
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
key: "pills",
|
|
127
|
-
get: function () {
|
|
128
|
-
return this.props.pills ? /*#__PURE__*/_react.default.createElement(_heading.StyledHeadingPills, {
|
|
129
|
-
"data-element": "pills"
|
|
130
|
-
}, this.props.pills) : null;
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
133
|
-
key: "render",
|
|
134
|
-
value: function render() {
|
|
135
|
-
if (!this.props.title) {
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
const marginProps = (0, _utils.filterStyledSystemMarginProps)(this.props);
|
|
140
|
-
return /*#__PURE__*/_react.default.createElement(_heading.StyledHeading, _extends({}, (0, _tags.default)("heading", this.props), marginProps), /*#__PURE__*/_react.default.createElement(_heading.StyledHeader, {
|
|
141
|
-
"data-element": "header-container",
|
|
142
|
-
divider: this.props.divider,
|
|
143
|
-
subheader: this.props.subheader,
|
|
144
|
-
hasBackLink: !!this.props.backLink
|
|
145
|
-
}, this.back, /*#__PURE__*/_react.default.createElement(_heading.StyledHeaderContent, null, /*#__PURE__*/_react.default.createElement(_heading.StyledHeadingTitle, {
|
|
146
|
-
withMargin: this.props.pills || this.props.help,
|
|
147
|
-
variant: "h1",
|
|
148
|
-
"data-element": "title",
|
|
149
|
-
id: this.props.titleId
|
|
150
|
-
}, this.props.title), this.help, this.pills), this.separator, this.subheader), this.divider, this.props.children);
|
|
151
|
-
}
|
|
152
|
-
}]);
|
|
153
|
-
|
|
154
|
-
return Heading;
|
|
155
|
-
}(_react.default.Component);
|
|
26
|
+
const Heading = ({
|
|
27
|
+
children,
|
|
28
|
+
backLink,
|
|
29
|
+
divider = true,
|
|
30
|
+
help,
|
|
31
|
+
helpAriaLabel,
|
|
32
|
+
helpLink,
|
|
33
|
+
pills,
|
|
34
|
+
separator = false,
|
|
35
|
+
subheader,
|
|
36
|
+
subtitleId,
|
|
37
|
+
title,
|
|
38
|
+
titleId,
|
|
39
|
+
...rest
|
|
40
|
+
}) => {
|
|
41
|
+
const getHelp = () => {
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(_heading.StyledHeaderHelp, {
|
|
43
|
+
"data-element": "help",
|
|
44
|
+
tooltipPosition: "right",
|
|
45
|
+
href: helpLink,
|
|
46
|
+
ariaLabel: helpAriaLabel
|
|
47
|
+
}, help);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const getBackButton = () => {
|
|
51
|
+
const backButtonProps = typeof backLink === "string" ? {
|
|
52
|
+
href: backLink
|
|
53
|
+
} : {
|
|
54
|
+
onClick: backLink
|
|
55
|
+
};
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement(_heading.StyledHeadingBackButton // this event allows an element to be focusable on click event on IE
|
|
57
|
+
, _extends({
|
|
58
|
+
onMouseDown: e => e.currentTarget.focus(),
|
|
59
|
+
"data-element": "back"
|
|
60
|
+
}, backButtonProps), /*#__PURE__*/_react.default.createElement(_heading.StyledHeadingIcon, {
|
|
61
|
+
type: "chevron_left",
|
|
62
|
+
divider: divider
|
|
63
|
+
}));
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const getSubheader = () => {
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_heading.StyledSubHeader, {
|
|
68
|
+
"data-element": "subtitle",
|
|
69
|
+
id: subtitleId,
|
|
70
|
+
hasBackLink: !!backLink,
|
|
71
|
+
hasSeparator: separator
|
|
72
|
+
}, subheader);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const getPills = () => {
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement(_heading.StyledHeadingPills, {
|
|
77
|
+
"data-element": "pills"
|
|
78
|
+
}, pills);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const marginProps = (0, _utils.filterStyledSystemMarginProps)(rest);
|
|
82
|
+
const dataAttributes = {
|
|
83
|
+
"data-element": rest["data-element"],
|
|
84
|
+
"data-role": rest["data-role"]
|
|
85
|
+
};
|
|
86
|
+
return title ? /*#__PURE__*/_react.default.createElement(_heading.StyledHeading, _extends({}, (0, _tags.default)("heading", dataAttributes), marginProps), /*#__PURE__*/_react.default.createElement(_heading.StyledHeader, {
|
|
87
|
+
"data-element": "header-container",
|
|
88
|
+
divider: divider,
|
|
89
|
+
subheader: subheader,
|
|
90
|
+
hasBackLink: !!backLink
|
|
91
|
+
}, backLink && getBackButton(), /*#__PURE__*/_react.default.createElement(_heading.StyledHeaderContent, null, /*#__PURE__*/_react.default.createElement(_heading.StyledHeadingTitle, {
|
|
92
|
+
withMargin: pills || help,
|
|
93
|
+
variant: "h1",
|
|
94
|
+
"data-element": "title",
|
|
95
|
+
id: titleId
|
|
96
|
+
}, title), (help || helpLink) && getHelp(), pills && getPills()), separator && /*#__PURE__*/_react.default.createElement(_heading.StyledSeparator, null), subheader && getSubheader()), divider && /*#__PURE__*/_react.default.createElement(_heading.StyledDivider, {
|
|
97
|
+
"data-element": "divider"
|
|
98
|
+
}), children) : null;
|
|
99
|
+
};
|
|
156
100
|
|
|
157
101
|
Heading.propTypes = { ...marginPropTypes,
|
|
158
102
|
|
|
159
|
-
/**
|
|
160
|
-
* Children elements
|
|
161
|
-
*/
|
|
103
|
+
/** Child elements */
|
|
162
104
|
children: _propTypes.default.node,
|
|
163
105
|
|
|
164
|
-
/**
|
|
165
|
-
* Defines the title for the heading.
|
|
166
|
-
*/
|
|
106
|
+
/** Defines the title for the heading. */
|
|
167
107
|
title: _propTypes.default.node,
|
|
168
108
|
|
|
169
|
-
/**
|
|
170
|
-
* Defines the title id for the heading.
|
|
171
|
-
*/
|
|
109
|
+
/** Defines the title id for the heading. */
|
|
172
110
|
titleId: _propTypes.default.string,
|
|
173
111
|
|
|
174
|
-
/**
|
|
175
|
-
* Defines the subheader for the heading.
|
|
176
|
-
*/
|
|
112
|
+
/** Defines the subheader for the heading. */
|
|
177
113
|
subheader: _propTypes.default.node,
|
|
178
114
|
|
|
179
|
-
/**
|
|
180
|
-
* Defines the subtitle id for the heading.
|
|
181
|
-
*/
|
|
115
|
+
/** Defines the subtitle id for the heading. */
|
|
182
116
|
subtitleId: _propTypes.default.string,
|
|
183
117
|
|
|
184
|
-
/**
|
|
185
|
-
* Defines the help text for the heading.
|
|
186
|
-
*/
|
|
118
|
+
/** Defines the help text for the heading. */
|
|
187
119
|
help: _propTypes.default.string,
|
|
188
120
|
|
|
189
|
-
/**
|
|
190
|
-
* Defines the help link for the heading.
|
|
191
|
-
*/
|
|
121
|
+
/** Defines the help link for the heading. */
|
|
192
122
|
helpLink: _propTypes.default.string,
|
|
193
123
|
|
|
194
|
-
/**
|
|
195
|
-
* Defines the a href for the back link.
|
|
196
|
-
*/
|
|
124
|
+
/** Defines the a href for the back link. */
|
|
197
125
|
backLink: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
|
|
198
126
|
|
|
199
|
-
/**
|
|
200
|
-
* Adds a divider below the heading and the content.
|
|
201
|
-
*/
|
|
127
|
+
/** Adds a divider below the heading and the content. */
|
|
202
128
|
divider: _propTypes.default.bool,
|
|
203
129
|
|
|
204
|
-
/**
|
|
205
|
-
* Adds a separator between the title and the subheader.
|
|
206
|
-
*/
|
|
130
|
+
/** Adds a separator between the title and the subheader. */
|
|
207
131
|
separator: _propTypes.default.bool,
|
|
208
132
|
|
|
209
|
-
/**
|
|
210
|
-
* Pills that will be added after the title.
|
|
211
|
-
*/
|
|
133
|
+
/** Pills that will be added after the title. */
|
|
212
134
|
pills: _propTypes.default.node,
|
|
213
135
|
|
|
214
|
-
/**
|
|
215
|
-
* Aria label for rendered help component
|
|
216
|
-
*/
|
|
136
|
+
/** Aria label for rendered help component */
|
|
217
137
|
helpAriaLabel: _propTypes.default.string
|
|
218
138
|
};
|
|
219
|
-
Heading.defaultProps = {
|
|
220
|
-
divider: true,
|
|
221
|
-
separator: false
|
|
222
|
-
};
|
|
223
139
|
var _default = Heading;
|
|
224
140
|
exports.default = _default;
|
|
@@ -2,8 +2,8 @@ import * as React from "react";
|
|
|
2
2
|
import { MarginProps } from "styled-system";
|
|
3
3
|
|
|
4
4
|
export interface HeadingProps extends MarginProps {
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/** Child elements */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
7
|
/** Defines the title for the heading. */
|
|
8
8
|
title?: React.ReactNode;
|
|
9
9
|
/** Defines the title id for the heading. */
|
|
@@ -24,8 +24,10 @@ export interface HeadingProps extends MarginProps {
|
|
|
24
24
|
separator?: boolean;
|
|
25
25
|
/** Pills that will be added after the title. */
|
|
26
26
|
pills?: React.ReactNode;
|
|
27
|
+
/** Aria label for rendered help component */
|
|
28
|
+
helpAriaLabel?: string;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
declare
|
|
31
|
+
declare function Heading(props: HeadingProps): JSX.Element | null;
|
|
30
32
|
|
|
31
33
|
export default Heading;
|
|
@@ -82,15 +82,6 @@ declare namespace I18nProvider {
|
|
|
82
82
|
titleSelect: PropTypes.Requireable<PropTypes.InferProps<{
|
|
83
83
|
deselect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
84
84
|
}>>;
|
|
85
|
-
wizards: PropTypes.Requireable<PropTypes.InferProps<{
|
|
86
|
-
multiStep: PropTypes.Requireable<PropTypes.InferProps<{
|
|
87
|
-
buttons: PropTypes.Requireable<PropTypes.InferProps<{
|
|
88
|
-
submit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
89
|
-
next: PropTypes.Requireable<(...args: any[]) => any>;
|
|
90
|
-
back: PropTypes.Requireable<(...args: any[]) => any>;
|
|
91
|
-
}>>;
|
|
92
|
-
}>>;
|
|
93
|
-
}>>;
|
|
94
85
|
}>>;
|
|
95
86
|
export { locale_1 as locale };
|
|
96
87
|
export const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|