@carbon/ibm-products 2.10.2 → 2.11.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -0
- package/css/index-full-carbon.css +71 -26
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +3 -3
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +1 -0
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +71 -26
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +3 -3
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +68 -25
- package/css/index.css.map +1 -1
- package/css/index.min.css +2 -2
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +10 -3
- package/es/components/AboutModal/AboutModal.js +10 -3
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +17 -5
- package/es/components/CreateModal/CreateModal.js +10 -3
- package/es/components/Datagrid/Datagrid/DatagridContent.js +9 -7
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +3 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +26 -13
- package/es/components/Datagrid/Datagrid/DatagridRow.js +47 -40
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +30 -37
- package/es/components/Datagrid/Datagrid/DraggableElement.js +36 -132
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +17 -49
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +125 -40
- package/es/components/Datagrid/Extensions/ExpandableRow/ExpandableRow.docs-page.js +1 -1
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/useNestedRowExpander.js +22 -9
- package/es/components/Datagrid/useRowExpander.js +22 -9
- package/es/components/Datagrid/utils/DatagridActions.js +1 -1
- package/es/components/Datagrid/utils/DatagridPagination.js +1 -1
- package/es/components/Datagrid/utils/getArgTypes.js +12 -0
- package/es/components/EditTearsheet/EditTearsheet.js +47 -38
- package/es/components/EditTearsheet/EditTearsheetForm.js +6 -0
- package/es/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +6 -1
- package/es/components/EmptyStates/EmptyState.js +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.js +6 -11
- package/es/components/EmptyStates/assets/NoDataIllustration.js +6 -11
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
- package/es/components/ExportModal/ExportModal.js +10 -3
- package/es/components/ImportModal/ImportModal.js +10 -3
- package/es/components/RemoveModal/RemoveModal.js +10 -3
- package/es/components/TagSet/TagSet.js +5 -21
- package/es/components/TagSet/TagSetModal.js +7 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +2 -2
- package/es/components/Tearsheet/TearsheetShell.js +14 -28
- package/es/global/decorators/sidePanelDecorator.js +7 -0
- package/es/global/js/hooks/usePortalTarget.js +30 -0
- package/es/global/js/hooks/useRetrieveFormTitles.js +20 -0
- package/es/global/js/hooks/useWindowScroll.js +5 -0
- package/es/global/js/package-settings.js +0 -1
- package/es/global/js/utils/getNodeTextContent.js +47 -0
- package/flags.js +6 -0
- package/lib/components/APIKeyModal/APIKeyModal.js +10 -3
- package/lib/components/AboutModal/AboutModal.js +10 -3
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +17 -5
- package/lib/components/CreateModal/CreateModal.js +10 -3
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +9 -7
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +26 -13
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +46 -41
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +30 -37
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +37 -137
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +20 -49
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +130 -47
- package/lib/components/Datagrid/Extensions/ExpandableRow/ExpandableRow.docs-page.js +1 -1
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/useNestedRowExpander.js +24 -9
- package/lib/components/Datagrid/useRowExpander.js +24 -9
- package/lib/components/Datagrid/utils/DatagridActions.js +1 -1
- package/lib/components/Datagrid/utils/DatagridPagination.js +1 -1
- package/lib/components/Datagrid/utils/getArgTypes.js +12 -0
- package/lib/components/EditTearsheet/EditTearsheet.js +47 -38
- package/lib/components/EditTearsheet/EditTearsheetForm.js +6 -0
- package/lib/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +6 -1
- package/lib/components/EmptyStates/EmptyState.js +1 -1
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +6 -11
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +6 -11
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
- package/lib/components/ExportModal/ExportModal.js +10 -3
- package/lib/components/ImportModal/ImportModal.js +10 -3
- package/lib/components/RemoveModal/RemoveModal.js +10 -3
- package/lib/components/TagSet/TagSet.js +5 -21
- package/lib/components/TagSet/TagSetModal.js +7 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.js +2 -2
- package/lib/components/Tearsheet/TearsheetShell.js +14 -28
- package/lib/global/decorators/sidePanelDecorator.js +7 -0
- package/lib/global/js/hooks/usePortalTarget.js +38 -0
- package/lib/global/js/hooks/useRetrieveFormTitles.js +28 -0
- package/lib/global/js/hooks/useWindowScroll.js +6 -0
- package/lib/global/js/package-settings.js +0 -1
- package/lib/global/js/utils/getNodeTextContent.js +55 -0
- package/package.json +7 -3
- package/scss/components/ActionSet/_action-set.scss +2 -1
- package/scss/components/Datagrid/_datagrid.scss +9 -0
- package/scss/components/Datagrid/styles/_datagrid.scss +7 -6
- package/scss/components/Datagrid/styles/_draggableElement.scss +34 -16
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +13 -0
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +23 -11
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +7 -3
- package/scss/components/FilterSummary/_filter-summary.scss +3 -1
- package/scss/global/decorators/_side-panel-decorator.scss +7 -0
- package/scss/global/js/utils/_story-as-full-page.scss +0 -6
@@ -16,9 +16,9 @@ var _react2 = require("@carbon/react");
|
|
16
16
|
var _settings = require("../../settings");
|
17
17
|
var _devtools = require("../../global/js/utils/devtools");
|
18
18
|
var _TearsheetShell = require("../Tearsheet/TearsheetShell");
|
19
|
-
var _excluded = ["cancelButtonText", "children", "className", "description", "influencerWidth", "label", "onClose", "open", "submitButtonText", "title", "verticalPosition", "onHandleModalClick"];
|
19
|
+
var _excluded = ["cancelButtonText", "children", "className", "description", "influencerWidth", "label", "onClose", "open", "submitButtonText", "title", "verticalPosition", "onHandleModalClick", "onFormChange", "sideNavAriaLabel"];
|
20
20
|
/**
|
21
|
-
* Copyright IBM Corp. 2022,
|
21
|
+
* Copyright IBM Corp. 2022, 2023
|
22
22
|
*
|
23
23
|
* This source code is licensed under the Apache-2.0 license found in the
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
@@ -42,7 +42,8 @@ var FormNumberContext = /*#__PURE__*/(0, _react.createContext)(0);
|
|
42
42
|
exports.FormNumberContext = FormNumberContext;
|
43
43
|
var defaults = {
|
44
44
|
verticalPosition: 'normal',
|
45
|
-
influencerWidth: 'narrow'
|
45
|
+
influencerWidth: 'narrow',
|
46
|
+
sideNavAriaLabel: 'Side navigation'
|
46
47
|
};
|
47
48
|
|
48
49
|
/**
|
@@ -63,40 +64,43 @@ var EditTearsheet = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
63
64
|
_ref$verticalPosition = _ref.verticalPosition,
|
64
65
|
verticalPosition = _ref$verticalPosition === void 0 ? defaults.verticalPosition : _ref$verticalPosition,
|
65
66
|
onHandleModalClick = _ref.onHandleModalClick,
|
67
|
+
onFormChange = _ref.onFormChange,
|
68
|
+
_ref$sideNavAriaLabel = _ref.sideNavAriaLabel,
|
69
|
+
sideNavAriaLabel = _ref$sideNavAriaLabel === void 0 ? defaults.sideNavAriaLabel : _ref$sideNavAriaLabel,
|
66
70
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
67
71
|
var _useState = (0, _react.useState)(0),
|
68
72
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
69
73
|
currentForm = _useState2[0],
|
70
74
|
setCurrentForm = _useState2[1];
|
75
|
+
var _useState3 = (0, _react.useState)([]),
|
76
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
77
|
+
formTitles = _useState4[0],
|
78
|
+
setFormTitles = _useState4[1];
|
71
79
|
var contentRef = (0, _react.useRef)();
|
72
|
-
var handleCurrentForm = function handleCurrentForm(
|
73
|
-
setCurrentForm(
|
80
|
+
var handleCurrentForm = function handleCurrentForm(formIndex) {
|
81
|
+
setCurrentForm(formIndex);
|
82
|
+
if (onFormChange) {
|
83
|
+
onFormChange(formIndex);
|
84
|
+
}
|
74
85
|
};
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
key: index,
|
94
|
-
onClick: function onClick() {
|
95
|
-
return handleCurrentForm(index);
|
96
|
-
},
|
97
|
-
isActive: currentForm === index
|
98
|
-
}, item.label);
|
99
|
-
}))));
|
86
|
+
function defaultInfluencer() {
|
87
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
88
|
+
className: "".concat(blockClass, "__side-nav-wrapper")
|
89
|
+
}, /*#__PURE__*/_react.default.createElement(_react2.SideNav, {
|
90
|
+
"aria-label": sideNavAriaLabel,
|
91
|
+
className: "".concat(blockClass, "__side-nav"),
|
92
|
+
expanded: true,
|
93
|
+
isFixedNav: false
|
94
|
+
}, /*#__PURE__*/_react.default.createElement(_react2.SideNavItems, null, formTitles.map(function (title, index) {
|
95
|
+
return /*#__PURE__*/_react.default.createElement(_react2.SideNavMenuItem, {
|
96
|
+
key: index,
|
97
|
+
onClick: function onClick() {
|
98
|
+
return handleCurrentForm(index);
|
99
|
+
},
|
100
|
+
isActive: currentForm === index
|
101
|
+
}, title);
|
102
|
+
}))));
|
103
|
+
}
|
100
104
|
return /*#__PURE__*/_react.default.createElement(_TearsheetShell.TearsheetShell, (0, _extends2.default)({}, rest, (0, _devtools.getDevtoolsProps)(componentName), {
|
101
105
|
actions: [{
|
102
106
|
label: submitButtonText,
|
@@ -110,7 +114,7 @@ var EditTearsheet = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
110
114
|
className: (0, _classnames.default)(blockClass, className),
|
111
115
|
description: description,
|
112
116
|
hasCloseIcon: false,
|
113
|
-
influencer:
|
117
|
+
influencer: defaultInfluencer(),
|
114
118
|
influencerPosition: "left",
|
115
119
|
influencerWidth: influencerWidth,
|
116
120
|
label: label,
|
@@ -126,7 +130,8 @@ var EditTearsheet = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
126
130
|
role: "main"
|
127
131
|
}, /*#__PURE__*/_react.default.createElement(_react2.Form, null, /*#__PURE__*/_react.default.createElement(FormContext.Provider, {
|
128
132
|
value: {
|
129
|
-
currentForm: currentForm
|
133
|
+
currentForm: currentForm,
|
134
|
+
setFormTitles: setFormTitles
|
130
135
|
}
|
131
136
|
}, _react.default.Children.map(children, function (child, index) {
|
132
137
|
return /*#__PURE__*/_react.default.createElement(FormNumberContext.Provider, {
|
@@ -162,12 +167,6 @@ EditTearsheet.propTypes = {
|
|
162
167
|
* A description of the flow, displayed in the header area of the tearsheet.
|
163
168
|
*/
|
164
169
|
description: _propTypes.default.node,
|
165
|
-
/**
|
166
|
-
* The content for the influencer section of the tearsheet, displayed
|
167
|
-
* alongside the main content. This is typically a menu, or filter, or
|
168
|
-
* progress indicator, or similar.
|
169
|
-
*/
|
170
|
-
influencer: _propTypes.default.element,
|
171
170
|
/**
|
172
171
|
* Used to set the size of the influencer
|
173
172
|
*/
|
@@ -184,6 +183,12 @@ EditTearsheet.propTypes = {
|
|
184
183
|
* Returning `false` here prevents the modal from closing.
|
185
184
|
*/
|
186
185
|
onClose: _propTypes.default.func,
|
186
|
+
/**
|
187
|
+
* An optional handler that is called when a user changes forms via clicking
|
188
|
+
* an influencer nav item.
|
189
|
+
* Returns the index of the selected form.
|
190
|
+
*/
|
191
|
+
onFormChange: _propTypes.default.func,
|
187
192
|
/**
|
188
193
|
* Specifies whether the tearsheet is currently open.
|
189
194
|
*/
|
@@ -192,6 +197,10 @@ EditTearsheet.propTypes = {
|
|
192
197
|
* Specifies whether the tearsheet is currently open.
|
193
198
|
*/
|
194
199
|
open: _propTypes.default.bool,
|
200
|
+
/**
|
201
|
+
* Specifies the aria label for the SideNav from Carbon UIShell
|
202
|
+
*/
|
203
|
+
sideNavAriaLabel: _propTypes.default.string,
|
195
204
|
/**
|
196
205
|
* The submit button text
|
197
206
|
*/
|
@@ -16,6 +16,7 @@ var _react2 = require("@carbon/react");
|
|
16
16
|
var _EditTearsheet = require("./EditTearsheet");
|
17
17
|
var _settings = require("../../settings");
|
18
18
|
var _pconsole = _interopRequireDefault(require("../../global/js/utils/pconsole"));
|
19
|
+
var _useRetrieveFormTitles = require("../../global/js/hooks/useRetrieveFormTitles");
|
19
20
|
var _excluded = ["children", "className", "description", "fieldsetLegendText", "hasFieldset", "subtitle", "title"];
|
20
21
|
/**
|
21
22
|
* Copyright IBM Corp. 2022, 2022
|
@@ -45,6 +46,11 @@ var EditTearsheetForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
45
46
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
46
47
|
var formContext = (0, _react.useContext)(_EditTearsheet.FormContext);
|
47
48
|
var formNumber = (0, _react.useContext)(_EditTearsheet.FormNumberContext);
|
49
|
+
(0, _useRetrieveFormTitles.useRetrieveFormTitles)({
|
50
|
+
formContext: formContext,
|
51
|
+
formNumber: formNumber,
|
52
|
+
title: title
|
53
|
+
});
|
48
54
|
return formContext ? /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
49
55
|
className: (0, _classnames.default)(blockClass, className, (_cx = {}, (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__form--hidden-form"), formNumber !== (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm)), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__form--visible-form"), formNumber === (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm)), _cx)),
|
50
56
|
ref: ref
|
@@ -13,6 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _settings = require("../../../settings");
|
14
14
|
var _EditTearsheet = require("../EditTearsheet");
|
15
15
|
var _EditTearsheetForm = require("../EditTearsheetForm");
|
16
|
+
var _addonActions = require("@storybook/addon-actions");
|
16
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
17
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }
|
18
19
|
/* eslint-disable react/prop-types */
|
@@ -82,6 +83,9 @@ var MultiFormEditTearsheet = function MultiFormEditTearsheet(_ref) {
|
|
82
83
|
var handleModalClick = function handleModalClick() {
|
83
84
|
setOpen(!open);
|
84
85
|
};
|
86
|
+
var handleFormChange = function handleFormChange() {
|
87
|
+
(0, _addonActions.action)('handleFormChange')();
|
88
|
+
};
|
85
89
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("style", null, ".".concat(blockClass, " { opacity: 0 }"), ";"), /*#__PURE__*/_react.default.createElement(_react2.Button, {
|
86
90
|
onClick: handleModalClick
|
87
91
|
}, open ? 'Close EditTearsheet' : 'Open EditTearsheet'), /*#__PURE__*/_react.default.createElement(_EditTearsheet.EditTearsheet, {
|
@@ -94,7 +98,8 @@ var MultiFormEditTearsheet = function MultiFormEditTearsheet(_ref) {
|
|
94
98
|
title: title,
|
95
99
|
open: open,
|
96
100
|
onHandleModalClick: handleModalClick,
|
97
|
-
onClose: clearCreateData
|
101
|
+
onClose: clearCreateData,
|
102
|
+
onFormChange: handleFormChange
|
98
103
|
}, /*#__PURE__*/_react.default.createElement(_EditTearsheetForm.EditTearsheetForm, {
|
99
104
|
title: "Topic name",
|
100
105
|
fieldsetLegendText: "Topic information",
|
@@ -55,7 +55,7 @@ var EmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
55
55
|
title = _ref.title,
|
56
56
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
57
57
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
58
|
-
className: (0, _classnames.default)(blockClass, className, (0, _defineProperty2.default)({}, "".concat(blockClass, "-position--").concat(illustrationPosition), !!illustration)),
|
58
|
+
className: (0, _classnames.default)(blockClass, "".concat(blockClass, "-type--default"), className, (0, _defineProperty2.default)({}, "".concat(blockClass, "-position--").concat(illustrationPosition), !!illustration)),
|
59
59
|
ref: ref
|
60
60
|
}, (0, _devtools.getDevtoolsProps)(componentName)), illustration && /*#__PURE__*/_react.default.createElement("img", {
|
61
61
|
src: illustration,
|
@@ -48,7 +48,7 @@ var ErrorEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--error")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_ErrorIllustration.ErrorIllustration, {
|
54
54
|
theme: illustrationTheme,
|
@@ -48,7 +48,7 @@ var NoDataEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--noData")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NoDataIllustration.NoDataIllustration, {
|
54
54
|
theme: illustrationTheme,
|
@@ -48,7 +48,7 @@ var NoTagsEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--noTags")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NoTagsIllustration.NoTagsIllustration, {
|
54
54
|
theme: illustrationTheme,
|
@@ -48,7 +48,7 @@ var NotFoundEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_ref,
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--notFound")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NotFoundIllustration.NotFoundIllustration, {
|
54
54
|
theme: illustrationTheme,
|
@@ -48,7 +48,7 @@ var NotificationsEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--notifications")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_NotificationsIllustration.NotificationsIllustration, {
|
54
54
|
size: size,
|
@@ -48,7 +48,7 @@ var UnauthorizedEmptyState = /*#__PURE__*/_react.default.forwardRef(function (_r
|
|
48
48
|
title = _ref.title,
|
49
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
51
|
-
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition)),
|
51
|
+
className: (0, _classnames.default)(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--unauthorized")),
|
52
52
|
ref: ref
|
53
53
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_UnauthorizedIllustration.UnauthorizedIllustration, {
|
54
54
|
size: size,
|
@@ -28,13 +28,14 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
28
28
|
size = _ref.size,
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
30
30
|
var svgId = (0, _uuidv.default)();
|
31
|
-
return
|
31
|
+
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
|
32
32
|
xmlns: "http://www.w3.org/2000/svg",
|
33
33
|
width: 80,
|
34
34
|
height: 80,
|
35
35
|
viewBox: "0 0 80 80",
|
36
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
37
|
-
|
36
|
+
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-error"), "".concat(blockClass, "__illustration--").concat(size)]),
|
37
|
+
role: "img"
|
38
|
+
}), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
38
39
|
id: "prefix__a_dark_".concat(svgId),
|
39
40
|
x1: 38.9,
|
40
41
|
y1: 77.08,
|
@@ -98,13 +99,7 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
98
99
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
99
100
|
d: "M38.93 49.79a6.9 6.9 0 01-2.66-2.51 6.11 6.11 0 01-.81-3v-1a2.26 2.26 0 01.81-2c.54-.35 1.43-.17 2.66.54a6.71 6.71 0 012.61 2.5 6.06 6.06 0 01.81 3v1a2.24 2.24 0 01-.81 2.05c-.54.29-1.41.12-2.61-.58zm-1.16-11.63L36 22.77V13l5.81 3.36v9.73l-1.64 13.46z",
|
100
101
|
fill: "#525252"
|
101
|
-
})) : /*#__PURE__*/_react.default.createElement("
|
102
|
-
xmlns: "http://www.w3.org/2000/svg",
|
103
|
-
width: 80,
|
104
|
-
height: 80,
|
105
|
-
viewBox: "0 0 80 80",
|
106
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
107
|
-
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
102
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
108
103
|
id: "prefix__a_".concat(svgId),
|
109
104
|
x1: 29.96,
|
110
105
|
y1: 45.68,
|
@@ -214,7 +209,7 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
|
|
214
209
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
215
210
|
d: "M38.93 49.79a6.9 6.9 0 01-2.66-2.51 6.11 6.11 0 01-.81-3v-1a2.26 2.26 0 01.81-2c.54-.35 1.43-.17 2.66.54a6.71 6.71 0 012.61 2.5 6.06 6.06 0 01.81 3v1a2.24 2.24 0 01-.81 2.05c-.54.29-1.41.12-2.61-.58zm-1.16-11.63L36 22.77V13l5.81 3.36v9.73l-1.64 13.46z",
|
216
211
|
fill: "url(#prefix__e_".concat(svgId, ")")
|
217
|
-
}));
|
212
|
+
})));
|
218
213
|
};
|
219
214
|
exports.ErrorIllustration = ErrorIllustration;
|
220
215
|
ErrorIllustration.propTypes = {
|
@@ -28,13 +28,14 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
28
28
|
size = _ref.size,
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
30
30
|
var svgId = (0, _uuidv.default)();
|
31
|
-
return
|
31
|
+
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
|
32
32
|
xmlns: "http://www.w3.org/2000/svg",
|
33
33
|
width: 80,
|
34
34
|
height: 80,
|
35
35
|
viewBox: "0 0 80 80",
|
36
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
37
|
-
|
36
|
+
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noData"), "".concat(blockClass, "__illustration--").concat(size)]),
|
37
|
+
role: "img"
|
38
|
+
}), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
38
39
|
id: "prefix__a_dark_".concat(svgId),
|
39
40
|
x1: 11.12,
|
40
41
|
y1: 43.34,
|
@@ -97,13 +98,7 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
97
98
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
98
99
|
fill: "#525252",
|
99
100
|
d: "M21.49 33.33l-8.2-4.73.01-5.69 8.19 4.74v5.68z"
|
100
|
-
})) : /*#__PURE__*/_react.default.createElement("
|
101
|
-
xmlns: "http://www.w3.org/2000/svg",
|
102
|
-
width: 80,
|
103
|
-
height: 80,
|
104
|
-
viewBox: "0 0 80 80",
|
105
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
106
|
-
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
101
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
107
102
|
id: "prefix__a_".concat(svgId),
|
108
103
|
x1: 18.35,
|
109
104
|
y1: 74.17,
|
@@ -177,7 +172,7 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
|
|
177
172
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
178
173
|
className: "prefix__g_".concat(svgId),
|
179
174
|
d: "M40 35.24L11.13 18.57v-.24l.21-.12 28.87 16.67-.21.11v.25zM21.49 33.33l-8.2-4.73.01-5.69 8.19 4.74v5.68z"
|
180
|
-
}));
|
175
|
+
})));
|
181
176
|
};
|
182
177
|
exports.NoDataIllustration = NoDataIllustration;
|
183
178
|
NoDataIllustration.propTypes = {
|
@@ -28,14 +28,15 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
28
28
|
size = _ref.size,
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
30
30
|
var svgId = (0, _uuidv.default)();
|
31
|
-
return
|
31
|
+
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
|
32
32
|
xmlns: "http://www.w3.org/2000/svg",
|
33
33
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
34
34
|
width: 80,
|
35
35
|
height: 80,
|
36
36
|
viewBox: "0 0 80 80",
|
37
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
38
|
-
|
37
|
+
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-noTags"), "".concat(blockClass, "__illustration--").concat(size)]),
|
38
|
+
role: "img"
|
39
|
+
}), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
39
40
|
id: "prefix__c_dark_".concat(svgId),
|
40
41
|
x1: 34.96,
|
41
42
|
y1: 5.37,
|
@@ -235,14 +236,7 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
235
236
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
236
237
|
d: "M35.67 16.33a2.88 2.88 0 011.41.43 7 7 0 013.13 5.44c0 1.42-.7 2.24-1.73 2.24a2.82 2.82 0 01-1.4-.43 6.93 6.93 0 01-3.14-5.44c0-1.42.7-2.24 1.73-2.24m0-.41c-1.3 0-2.15 1-2.15 2.65a7.3 7.3 0 003.35 5.8 3.23 3.23 0 001.61.48c1.3 0 2.15-1 2.15-2.65a7.29 7.29 0 00-3.35-5.8 3.2 3.2 0 00-1.61-.48z",
|
237
238
|
fill: "url(#prefix__i_dark_".concat(svgId, ")")
|
238
|
-
})) : /*#__PURE__*/_react.default.createElement("
|
239
|
-
xmlns: "http://www.w3.org/2000/svg",
|
240
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
241
|
-
width: 80,
|
242
|
-
height: 80,
|
243
|
-
viewBox: "0 0 80 80",
|
244
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
245
|
-
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
239
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
246
240
|
id: "prefix__b_".concat(svgId),
|
247
241
|
x1: 634.81,
|
248
242
|
y1: 667.18,
|
@@ -485,7 +479,7 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
|
|
485
479
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
486
480
|
d: "M35.67 16.33a2.88 2.88 0 011.41.43 7 7 0 013.13 5.44c0 1.42-.7 2.24-1.73 2.24a2.82 2.82 0 01-1.4-.43 6.93 6.93 0 01-3.14-5.44c0-1.42.7-2.24 1.73-2.24m0-.41c-1.3 0-2.15 1-2.15 2.65a7.3 7.3 0 003.35 5.8 3.23 3.23 0 001.61.48c1.3 0 2.15-1 2.15-2.65a7.29 7.29 0 00-3.35-5.8 3.2 3.2 0 00-1.61-.48z",
|
487
481
|
fill: "url(#prefix__j_".concat(svgId, ")")
|
488
|
-
}));
|
482
|
+
})));
|
489
483
|
};
|
490
484
|
exports.NoTagsIllustration = NoTagsIllustration;
|
491
485
|
NoTagsIllustration.propTypes = {
|
@@ -28,13 +28,14 @@ var NotFoundIllustration = function NotFoundIllustration(_ref) {
|
|
28
28
|
size = _ref.size,
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
30
30
|
var svgId = (0, _uuidv.default)();
|
31
|
-
return
|
31
|
+
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
|
32
32
|
xmlns: "http://www.w3.org/2000/svg",
|
33
33
|
width: 80,
|
34
34
|
height: 80,
|
35
35
|
viewBox: "0 0 80 80",
|
36
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
37
|
-
|
36
|
+
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-notFound"), "".concat(blockClass, "__illustration--").concat(size)]),
|
37
|
+
role: "img"
|
38
|
+
}), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
38
39
|
id: "prefix__a_dark_".concat(svgId),
|
39
40
|
x1: 2.6,
|
40
41
|
y1: -12.81,
|
@@ -185,14 +186,7 @@ var NotFoundIllustration = function NotFoundIllustration(_ref) {
|
|
185
186
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
186
187
|
d: "M57 37.5c0-12-8.75-26.85-19.56-33.08C31.82 1.16 26.73.89 23.16 3.09l-4.83 2.78 1.19 1.94c3.25-1.74 7.72-1.38 12.67 1.47C42.09 15 50.11 28.57 50.11 39.6c0 4.86-1.55 8.4-4.11 10.4-.12.1-1.17.73-1.31.82l2.12 1.42 4.83-2.79C55 47.44 57 43.34 57 37.5",
|
187
188
|
fill: "url(#prefix__f_dark_".concat(svgId, ")")
|
188
|
-
})) : /*#__PURE__*/_react.default.createElement("
|
189
|
-
xmlns: "http://www.w3.org/2000/svg",
|
190
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
191
|
-
width: 80,
|
192
|
-
height: 80,
|
193
|
-
viewBox: "0 0 80 80",
|
194
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
195
|
-
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
189
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
196
190
|
id: "prefix__a_".concat(svgId),
|
197
191
|
x1: 2.6,
|
198
192
|
y1: -12.81,
|
@@ -362,7 +356,7 @@ var NotFoundIllustration = function NotFoundIllustration(_ref) {
|
|
362
356
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
363
357
|
d: "M57 37.5c0-12-8.75-26.85-19.56-33.08C31.82 1.16 26.73.89 23.16 3.09l-4.83 2.78 1.19 1.94c3.25-1.74 7.72-1.38 12.67 1.47C42.09 15 50.11 28.57 50.11 39.6c0 4.86-1.55 8.4-4.11 10.4-.12.1-1.17.73-1.31.82l2.12 1.42 4.83-2.79C55 47.44 57 43.34 57 37.5",
|
364
358
|
fill: "url(#prefix__g_".concat(svgId, ")")
|
365
|
-
}));
|
359
|
+
})));
|
366
360
|
};
|
367
361
|
exports.NotFoundIllustration = NotFoundIllustration;
|
368
362
|
NotFoundIllustration.propTypes = {
|
@@ -28,13 +28,14 @@ var NotificationsIllustration = function NotificationsIllustration(_ref) {
|
|
28
28
|
size = _ref.size,
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
30
30
|
var svgId = (0, _uuidv.default)();
|
31
|
-
return
|
31
|
+
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
|
32
32
|
xmlns: "http://www.w3.org/2000/svg",
|
33
33
|
width: 80,
|
34
34
|
height: 80,
|
35
35
|
viewBox: "0 0 80 80",
|
36
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
37
|
-
|
36
|
+
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-notification"), "".concat(blockClass, "__illustration--").concat(size)]),
|
37
|
+
role: "img"
|
38
|
+
}), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
38
39
|
id: "prefix__a_dark_".concat(svgId),
|
39
40
|
x1: 30.05,
|
40
41
|
y1: 54.31,
|
@@ -130,14 +131,7 @@ var NotificationsIllustration = function NotificationsIllustration(_ref) {
|
|
130
131
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
131
132
|
d: "M60.76 30.55a2.54 2.54 0 01.14.8v3.95l.41-.13v-3.82a3.54 3.54 0 00-1.63-2.82L16.86 3.8a2.09 2.09 0 00-.44-.19l-.78.45a1 1 0 01.21-.06h.48l.27.12 21.47 12.4 21.41 12.36a3.19 3.19 0 011.28 1.67z",
|
132
133
|
fill: "url(#prefix__d_dark_".concat(svgId, ")")
|
133
|
-
})) : /*#__PURE__*/_react.default.createElement("
|
134
|
-
xmlns: "http://www.w3.org/2000/svg",
|
135
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
136
|
-
width: 80,
|
137
|
-
height: 80,
|
138
|
-
viewBox: "0 0 80 80",
|
139
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
140
|
-
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
134
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
141
135
|
id: "prefix__a_".concat(svgId),
|
142
136
|
x1: 61.44,
|
143
137
|
y1: 66.99,
|
@@ -333,7 +327,7 @@ var NotificationsIllustration = function NotificationsIllustration(_ref) {
|
|
333
327
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
334
328
|
d: "M60.76 30.55a2.54 2.54 0 01.14.8v3.95l.41-.13v-3.82a3.54 3.54 0 00-1.63-2.82L16.86 3.8a2.09 2.09 0 00-.44-.19l-.78.45a1 1 0 01.21-.06h.48l.27.12 21.47 12.4 21.41 12.36a3.19 3.19 0 011.28 1.67z",
|
335
329
|
fill: "url(#prefix__k_".concat(svgId, ")")
|
336
|
-
}));
|
330
|
+
})));
|
337
331
|
};
|
338
332
|
exports.NotificationsIllustration = NotificationsIllustration;
|
339
333
|
NotificationsIllustration.propTypes = {
|
@@ -28,14 +28,15 @@ var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
|
|
28
28
|
size = _ref.size,
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
30
30
|
var svgId = (0, _uuidv.default)();
|
31
|
-
return
|
31
|
+
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({}, rest, {
|
32
32
|
xmlns: "http://www.w3.org/2000/svg",
|
33
33
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
34
34
|
width: 80,
|
35
35
|
height: 80,
|
36
36
|
viewBox: "0 0 80 80",
|
37
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
38
|
-
|
37
|
+
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration-unauthorized"), "".concat(blockClass, "__illustration--").concat(size)]),
|
38
|
+
role: "img"
|
39
|
+
}), theme === 'dark' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
39
40
|
id: "prefix__b_dark_".concat(svgId),
|
40
41
|
x1: 17.33,
|
41
42
|
y1: 40.68,
|
@@ -118,14 +119,7 @@ var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
|
|
118
119
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
119
120
|
d: "M51.41 38.51a1.9 1.9 0 00-.64-.65l-1.1-.63-28.49-16.45-.1-.05-.61.35a.33.33 0 01.17 0 .6.6 0 01.32.1l28.5 16.41 1.1.63a1.5 1.5 0 01.49.51s.05.09.08.14l.36-.21z",
|
120
121
|
fill: "#6f6f6f"
|
121
|
-
})) : /*#__PURE__*/_react.default.createElement("
|
122
|
-
xmlns: "http://www.w3.org/2000/svg",
|
123
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
124
|
-
width: 80,
|
125
|
-
height: 80,
|
126
|
-
viewBox: "0 0 80 80",
|
127
|
-
className: (0, _classnames.default)(["".concat(blockClass, "__illustration"), "".concat(blockClass, "__illustration--").concat(size)])
|
128
|
-
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
122
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
|
129
123
|
id: "prefix__b",
|
130
124
|
x1: 27.98,
|
131
125
|
y1: 73.72,
|
@@ -306,7 +300,7 @@ var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
|
|
306
300
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
307
301
|
d: "M51.41 38.51a1.9 1.9 0 00-.64-.65l-1.1-.63-28.49-16.45-.1-.05-.61.35a.33.33 0 01.17 0 .6.6 0 01.32.1l28.5 16.41 1.1.63a1.5 1.5 0 01.49.51s.05.09.08.14l.36-.21z",
|
308
302
|
fill: "url(#prefix__h_".concat(svgId, ")")
|
309
|
-
}));
|
303
|
+
})));
|
310
304
|
};
|
311
305
|
exports.UnauthorizedIllustration = UnauthorizedIllustration;
|
312
306
|
UnauthorizedIllustration.propTypes = {
|
@@ -18,7 +18,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
18
18
|
var _devtools = require("../../global/js/utils/devtools");
|
19
19
|
var _uuidv = _interopRequireDefault(require("../../global/js/utils/uuidv4"));
|
20
20
|
var _settings = require("../../settings");
|
21
|
-
var
|
21
|
+
var _usePortalTarget = require("../../global/js/hooks/usePortalTarget");
|
22
|
+
var _excluded = ["body", "className", "error", "errorMessage", "filename", "hidePasswordLabel", "inputLabel", "inputType", "invalidInputText", "loading", "loadingMessage", "onClose", "onRequestSubmit", "open", "portalTarget", "preformattedExtensions", "preformattedExtensionsLabel", "primaryButtonText", "secondaryButtonText", "showPasswordLabel", "successMessage", "successful", "title", "validExtensions"]; //
|
22
23
|
// Copyright IBM Corp. 2020, 2021
|
23
24
|
//
|
24
25
|
// This source code is licensed under the Apache-2.0 license found in the
|
@@ -56,6 +57,7 @@ var ExportModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
56
57
|
onClose = _ref.onClose,
|
57
58
|
onRequestSubmit = _ref.onRequestSubmit,
|
58
59
|
open = _ref.open,
|
60
|
+
portalTargetIn = _ref.portalTarget,
|
59
61
|
_ref$preformattedExte = _ref.preformattedExtensions,
|
60
62
|
preformattedExtensions = _ref$preformattedExte === void 0 ? defaults.preformattedExtensions : _ref$preformattedExte,
|
61
63
|
preformattedExtensionsLabel = _ref.preformattedExtensionsLabel,
|
@@ -81,6 +83,7 @@ var ExportModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
81
83
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
82
84
|
extension = _useState6[0],
|
83
85
|
setExtension = _useState6[1];
|
86
|
+
var renderPortalUse = (0, _usePortalTarget.usePortalTarget)(portalTargetIn);
|
84
87
|
(0, _react.useEffect)(function () {
|
85
88
|
var _preformattedExtensio;
|
86
89
|
setName(filename);
|
@@ -125,7 +128,7 @@ var ExportModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
125
128
|
invalidText: invalidInputText,
|
126
129
|
onBlur: onBlurHandler
|
127
130
|
}, 'data-modal-primary-focus', true);
|
128
|
-
return /*#__PURE__*/_react.default.createElement(_react2.ComposedModal, (0, _extends2.default)({}, rest, {
|
131
|
+
return renderPortalUse( /*#__PURE__*/_react.default.createElement(_react2.ComposedModal, (0, _extends2.default)({}, rest, {
|
129
132
|
className: (0, _classnames.default)(blockClass, className),
|
130
133
|
"aria-label": title,
|
131
134
|
size: "sm",
|
@@ -185,7 +188,7 @@ var ExportModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
185
188
|
kind: "primary",
|
186
189
|
onClick: onSubmitHandler,
|
187
190
|
disabled: primaryButtonDisabled
|
188
|
-
}, primaryButtonText)));
|
191
|
+
}, primaryButtonText))));
|
189
192
|
});
|
190
193
|
|
191
194
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -248,6 +251,10 @@ ExportModal.propTypes = {
|
|
248
251
|
* Specify whether the Modal is currently open
|
249
252
|
*/
|
250
253
|
open: _propTypes.default.bool,
|
254
|
+
/**
|
255
|
+
* The DOM node the tearsheet should be rendered within. Defaults to document.body.
|
256
|
+
*/
|
257
|
+
portalTarget: _propTypes.default.node,
|
251
258
|
/**
|
252
259
|
* Array of extensions to display as radio buttons
|
253
260
|
*/
|