@carbon/ibm-products 2.33.0 → 2.35.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +31990 -32061
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +38 -17
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +636 -24096
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +2342 -17830
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/ActionSet/ActionSet.d.ts +38 -2
- package/es/components/ActionSet/ActionSet.js +3 -5
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
- package/es/components/ConditionBuilder/ConditionBuilder.js +125 -0
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +92 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +88 -0
- package/es/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
- package/es/components/ConditionBuilder/index.d.ts +1 -0
- package/es/components/CreateFullPage/CreateFullPage.js +3 -19
- package/es/components/CreateFullPage/CreateFullPageStep.js +22 -7
- package/es/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
- package/es/components/CreateSidePanel/CreateSidePanel.js +5 -2
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +5 -117
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +12 -111
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +304 -0
- package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +6 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
- package/es/components/Datagrid/useEditableCell.js +15 -0
- package/es/components/DelimitedList/DelimitedList.d.ts +27 -2
- package/es/components/DelimitedList/DelimitedList.js +0 -1
- package/es/components/EditInPlace/EditInPlace.d.ts +97 -5
- package/es/components/EditInPlace/EditInPlace.js +10 -6
- package/es/components/EditSidePanel/EditSidePanel.d.ts +92 -2
- package/es/components/EditSidePanel/EditSidePanel.js +8 -10
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
- package/es/components/ExportModal/ExportModal.d.ts +110 -2
- package/es/components/ExportModal/ExportModal.js +10 -4
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +83 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +94 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +8 -10
- package/es/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +157 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +72 -0
- package/es/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +2 -2
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +92 -0
- package/es/components/FilterPanel/index.d.ts +5 -0
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/es/components/ImportModal/ImportModal.d.ts +136 -2
- package/es/components/ImportModal/ImportModal.js +3 -2
- package/es/components/InlineTip/InlineTip.d.ts +90 -2
- package/es/components/InlineTip/InlineTip.js +3 -2
- package/es/components/Nav/Nav.js +1 -1
- package/es/components/Nav/NavList.js +7 -7
- package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/es/components/OptionsTile/OptionsTile.d.ts +77 -3
- package/es/components/OptionsTile/OptionsTile.js +9 -20
- package/es/components/PageHeader/PageHeader.js +3 -3
- package/es/components/PageHeader/PageHeaderUtils.d.ts +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +4 -3
- package/es/components/RemoveModal/RemoveModal.d.ts +81 -7
- package/es/components/RemoveModal/RemoveModal.js +1 -0
- package/es/components/ScrollGradient/ScrollGradient.d.ts +5 -0
- package/es/components/ScrollGradient/ScrollGradient.js +156 -0
- package/es/components/ScrollGradient/constants.d.ts +15 -0
- package/es/components/ScrollGradient/constants.js +121 -0
- package/es/components/ScrollGradient/index.d.ts +1 -0
- package/es/components/SidePanel/SidePanel.d.ts +144 -2
- package/es/components/SidePanel/SidePanel.js +100 -75
- package/es/components/StatusIcon/StatusIcon.d.ts +34 -2
- package/es/components/StatusIcon/StatusIcon.js +97 -95
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
- package/es/components/TagOverflow/TagOverflow.d.ts +5 -0
- package/es/components/TagOverflow/TagOverflow.js +209 -0
- package/es/components/TagOverflow/constants.d.ts +14 -0
- package/es/components/TagOverflow/constants.js +30 -0
- package/es/components/TagOverflow/index.d.ts +1 -0
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
- package/es/components/Tearsheet/TearsheetNarrow.js +6 -1
- package/es/components/Toolbar/Toolbar.d.ts +23 -5
- package/es/components/Toolbar/Toolbar.js +30 -26
- package/es/components/TruncatedList/TruncatedList.js +5 -3
- package/es/components/UserAvatar/UserAvatar.js +7 -4
- package/es/components/index.d.ts +5 -2
- package/es/global/js/package-settings.d.ts +8 -0
- package/es/global/js/package-settings.js +8 -0
- package/es/index.js +9 -0
- package/es/settings.d.ts +8 -0
- package/lib/components/ActionSet/ActionSet.d.ts +38 -2
- package/lib/components/ActionSet/ActionSet.js +3 -5
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
- package/lib/components/ConditionBuilder/ConditionBuilder.js +132 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +100 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +98 -0
- package/lib/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
- package/lib/components/ConditionBuilder/index.d.ts +1 -0
- package/lib/components/CreateFullPage/CreateFullPage.js +2 -18
- package/lib/components/CreateFullPage/CreateFullPageStep.js +20 -5
- package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
- package/lib/components/CreateSidePanel/CreateSidePanel.js +5 -2
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +5 -117
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +12 -111
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +311 -0
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +5 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
- package/lib/components/Datagrid/useEditableCell.js +19 -0
- package/lib/components/DelimitedList/DelimitedList.d.ts +27 -2
- package/lib/components/DelimitedList/DelimitedList.js +0 -1
- package/lib/components/EditInPlace/EditInPlace.d.ts +97 -5
- package/lib/components/EditInPlace/EditInPlace.js +10 -6
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +92 -2
- package/lib/components/EditSidePanel/EditSidePanel.js +8 -10
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
- package/lib/components/ExportModal/ExportModal.d.ts +110 -2
- package/lib/components/ExportModal/ExportModal.js +10 -4
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +90 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +101 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +8 -10
- package/lib/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +164 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +79 -0
- package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +2 -2
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +99 -0
- package/lib/components/FilterPanel/index.d.ts +5 -0
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/lib/components/ImportModal/ImportModal.d.ts +136 -2
- package/lib/components/ImportModal/ImportModal.js +3 -2
- package/lib/components/InlineTip/InlineTip.d.ts +90 -2
- package/lib/components/InlineTip/InlineTip.js +3 -2
- package/lib/components/Nav/Nav.js +1 -1
- package/lib/components/Nav/NavList.js +7 -7
- package/lib/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/lib/components/OptionsTile/OptionsTile.d.ts +77 -3
- package/lib/components/OptionsTile/OptionsTile.js +9 -20
- package/lib/components/PageHeader/PageHeader.js +3 -3
- package/lib/components/PageHeader/PageHeaderUtils.d.ts +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +4 -3
- package/lib/components/RemoveModal/RemoveModal.d.ts +81 -7
- package/lib/components/RemoveModal/RemoveModal.js +1 -0
- package/lib/components/ScrollGradient/ScrollGradient.d.ts +5 -0
- package/lib/components/ScrollGradient/ScrollGradient.js +163 -0
- package/lib/components/ScrollGradient/constants.d.ts +15 -0
- package/lib/components/ScrollGradient/constants.js +128 -0
- package/lib/components/ScrollGradient/index.d.ts +1 -0
- package/lib/components/SidePanel/SidePanel.d.ts +144 -2
- package/lib/components/SidePanel/SidePanel.js +100 -75
- package/lib/components/StatusIcon/StatusIcon.d.ts +34 -2
- package/lib/components/StatusIcon/StatusIcon.js +97 -95
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
- package/lib/components/TagOverflow/TagOverflow.d.ts +5 -0
- package/lib/components/TagOverflow/TagOverflow.js +216 -0
- package/lib/components/TagOverflow/constants.d.ts +14 -0
- package/lib/components/TagOverflow/constants.js +34 -0
- package/lib/components/TagOverflow/index.d.ts +1 -0
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
- package/lib/components/Tearsheet/TearsheetNarrow.js +6 -1
- package/lib/components/Toolbar/Toolbar.d.ts +23 -5
- package/lib/components/Toolbar/Toolbar.js +30 -26
- package/lib/components/TruncatedList/TruncatedList.js +5 -3
- package/lib/components/UserAvatar/UserAvatar.js +7 -4
- package/lib/components/index.d.ts +5 -2
- package/lib/global/js/package-settings.d.ts +8 -0
- package/lib/global/js/package-settings.js +8 -0
- package/lib/index.js +42 -0
- package/lib/settings.d.ts +8 -0
- package/package.json +3 -3
- package/scss/components/Coachmark/_coachmark-dragbar.scss +0 -1
- package/scss/components/Coachmark/_coachmark-tagline.scss +2 -2
- package/scss/components/ConditionBuilder/_carbon-imports.scss +9 -0
- package/scss/components/ConditionBuilder/_condition-builder.scss +25 -0
- package/scss/components/ConditionBuilder/_index-with-carbon.scss +9 -0
- package/scss/components/ConditionBuilder/_index.scss +8 -0
- package/scss/components/CreateFullPage/_create-full-page.scss +10 -10
- package/scss/components/Datagrid/styles/_useNestedRows.scss +5 -1
- package/scss/components/FilterPanel/_carbon-imports.scss +5 -0
- package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +54 -0
- package/scss/components/FilterPanel/_filter-panel-accordion.scss +6 -0
- package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +60 -0
- package/scss/components/FilterPanel/_filter-panel-checkbox.scss +24 -3
- package/scss/components/FilterPanel/_filter-panel-group.scss +39 -0
- package/scss/components/FilterPanel/_filter-panel-label.scss +0 -8
- package/scss/components/FilterPanel/_filter-panel-search.scss +38 -0
- package/scss/components/FilterPanel/_filter-panel.scss +2 -0
- package/scss/components/FilterPanel/_index-with-carbon.scss +5 -0
- package/scss/components/FilterPanel/_index.scss +5 -0
- package/scss/components/Guidebanner/_guidebanner.scss +1 -1
- package/scss/components/InlineTip/_inline-tip.scss +1 -1
- package/scss/components/ProductiveCard/_productive-card.scss +13 -0
- package/scss/components/ScrollGradient/_carbon-imports.scss +9 -0
- package/scss/components/ScrollGradient/_index-with-carbon.scss +9 -0
- package/scss/components/ScrollGradient/_index.scss +8 -0
- package/scss/components/ScrollGradient/_scroll-gradient.scss +102 -0
- package/scss/components/SidePanel/_side-panel.scss +9 -9
- package/scss/components/TagOverflow/_carbon-imports.scss +9 -0
- package/scss/components/TagOverflow/_index-with-carbon.scss +9 -0
- package/scss/components/TagOverflow/_index.scss +8 -0
- package/scss/components/TagOverflow/_tag-overflow.scss +55 -0
- package/scss/components/Tearsheet/_tearsheet.scss +10 -0
- package/scss/components/UserAvatar/_user-avatar.scss +38 -4
- package/scss/components/_index-with-carbon.scss +3 -0
- package/scss/components/_index.scss +3 -0
@@ -38,7 +38,8 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
38
38
|
id = _ref.id,
|
39
39
|
inheritTypography = _ref.inheritTypography,
|
40
40
|
invalid = _ref.invalid,
|
41
|
-
|
41
|
+
_ref$invalidLabel = _ref.invalidLabel,
|
42
|
+
deprecated_invalidLabel = _ref$invalidLabel === void 0 ? ' ' : _ref$invalidLabel,
|
42
43
|
invalidText = _ref.invalidText,
|
43
44
|
labelText = _ref.labelText,
|
44
45
|
onCancel = _ref.onCancel,
|
@@ -46,7 +47,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46
47
|
onSave = _ref.onSave,
|
47
48
|
saveLabel = _ref.saveLabel,
|
48
49
|
_ref$size = _ref.size,
|
49
|
-
size = _ref$size === void 0 ?
|
50
|
+
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
50
51
|
tooltipAlignment = _ref.tooltipAlignment,
|
51
52
|
value = _ref.value,
|
52
53
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
@@ -94,7 +95,8 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
94
95
|
// }
|
95
96
|
|
96
97
|
if (!isTargetingChild(e)) {
|
97
|
-
|
98
|
+
var _inputRef$current;
|
99
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
98
100
|
setFocused(true);
|
99
101
|
}
|
100
102
|
};
|
@@ -131,15 +133,16 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
131
133
|
onCancelHandler();
|
132
134
|
};
|
133
135
|
var onKeyHandler = function onKeyHandler(e) {
|
136
|
+
var _inputRef$current2, _inputRef$current3;
|
134
137
|
// to prevent blur handler from being called twice add additional state to check if escape is being used
|
135
138
|
escaping.current = true;
|
136
139
|
switch (e.key) {
|
137
140
|
case 'Escape':
|
138
|
-
inputRef.current.blur();
|
141
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.blur();
|
139
142
|
escapeHandler();
|
140
143
|
break;
|
141
144
|
case 'Enter':
|
142
|
-
inputRef.current.blur();
|
145
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.blur();
|
143
146
|
returnHandler();
|
144
147
|
break;
|
145
148
|
}
|
@@ -228,7 +231,6 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
228
231
|
* By default the edit icon is shown on hover only.
|
229
232
|
*/
|
230
233
|
editAlwaysVisible: index["default"].bool,
|
231
|
-
/**
|
232
234
|
/**
|
233
235
|
* label for edit button
|
234
236
|
*/
|
@@ -252,6 +254,7 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
252
254
|
/**
|
253
255
|
* text that is displayed if the input is invalid
|
254
256
|
*/
|
257
|
+
/**@ts-ignore*/
|
255
258
|
invalidText: index["default"].string,
|
256
259
|
/**
|
257
260
|
* Provide the text that will be read by a screen reader when visiting this control
|
@@ -290,6 +293,7 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
290
293
|
*
|
291
294
|
* Can be passed either as one of tooltip options or as an object specifying cancel, edit and save separately
|
292
295
|
*/
|
296
|
+
/**@ts-ignore*/
|
293
297
|
tooltipAlignment: index["default"].oneOfType([alignPropType, index["default"].shape({
|
294
298
|
cancel: alignPropType,
|
295
299
|
edit: alignPropType,
|
@@ -1,5 +1,95 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2021, 2021
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import React, { ReactNode } from 'react';
|
8
|
+
import '../../global/js/utils/props-helper';
|
9
|
+
interface EditSidePanelProps {
|
10
|
+
/**
|
11
|
+
* Sets the body content of the create side panel
|
12
|
+
*/
|
13
|
+
children: ReactNode;
|
14
|
+
/**
|
15
|
+
* Provide an optional class to be applied to the containing node.
|
16
|
+
*/
|
17
|
+
className?: string;
|
18
|
+
/**
|
19
|
+
* Specifies a boolean for disabling or enabling the primary button. This is important for form validation
|
20
|
+
* Returning `true` prevents the primary button from being clicked until required fields are completed.
|
21
|
+
*/
|
22
|
+
disableSubmit?: boolean;
|
23
|
+
/**
|
24
|
+
* Specifies an optional field that provides a additional context for a form
|
25
|
+
*/
|
26
|
+
formDescription?: ReactNode;
|
27
|
+
/**
|
28
|
+
* Specifies a required field that provides a title for a form
|
29
|
+
*/
|
30
|
+
formTitle: ReactNode;
|
31
|
+
/**
|
32
|
+
* Unique identifier
|
33
|
+
*/
|
34
|
+
id?: string;
|
35
|
+
/**
|
36
|
+
* Specifies an optional handler which is called when the CreateSidePanel
|
37
|
+
* is closed.
|
38
|
+
*/
|
39
|
+
onRequestClose?: () => void;
|
40
|
+
/**
|
41
|
+
* Specifies an optional handler which is called when the CreateSidePanel
|
42
|
+
* primary button is pressed.
|
43
|
+
*/
|
44
|
+
onRequestSubmit?: () => void;
|
45
|
+
/**
|
46
|
+
* Specifies whether the CreateSidePanel is open or not.
|
47
|
+
*/
|
48
|
+
open: boolean;
|
49
|
+
/**
|
50
|
+
* Determines if the side panel is on the right or left
|
51
|
+
*/
|
52
|
+
placement?: 'left' | 'right';
|
53
|
+
/**
|
54
|
+
* Specifies the primary button's text in the modal.
|
55
|
+
*/
|
56
|
+
primaryButtonText: string;
|
57
|
+
/**
|
58
|
+
* Specifies the secondary button's text in the modal.
|
59
|
+
*/
|
60
|
+
secondaryButtonText: string;
|
61
|
+
/**
|
62
|
+
* This is the selector to the element that contains all of the page content that will shrink if the panel is a slide in.
|
63
|
+
* This prop is required when using the `slideIn` variant of the side panel.
|
64
|
+
*/
|
65
|
+
selectorPageContent?: string;
|
66
|
+
/**
|
67
|
+
* Specifies which DOM element in the form should be focused.
|
68
|
+
*/
|
69
|
+
selectorPrimaryFocus?: string;
|
70
|
+
/**
|
71
|
+
* Sets the size of the side panel
|
72
|
+
*/
|
73
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | '2xl';
|
74
|
+
/**
|
75
|
+
* Specifies which DOM element in the form should be focused.
|
76
|
+
*/
|
77
|
+
slideIn?: boolean;
|
78
|
+
/**
|
79
|
+
* **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
|
80
|
+
*/
|
81
|
+
slug?: ReactNode;
|
82
|
+
/**
|
83
|
+
* The subtitle of the CreateSidePanel is optional and serves to provide more information about the modal.
|
84
|
+
*/
|
85
|
+
subtitle?: ReactNode;
|
86
|
+
/**
|
87
|
+
* The title of the CreateSidePanel is usually the product or service name.
|
88
|
+
*/
|
89
|
+
title: string;
|
90
|
+
}
|
1
91
|
/**
|
2
92
|
* Use with medium complexity edits if the user needs page context.
|
3
93
|
*/
|
4
|
-
export let EditSidePanel: React.ForwardRefExoticComponent<React.RefAttributes<
|
5
|
-
|
94
|
+
export declare let EditSidePanel: React.ForwardRefExoticComponent<EditSidePanelProps & React.RefAttributes<HTMLDivElement>>;
|
95
|
+
export {};
|
@@ -33,12 +33,6 @@ var componentName = 'EditSidePanel';
|
|
33
33
|
|
34
34
|
// NOTE: the component SCSS is not imported here: it is rolled up separately.
|
35
35
|
|
36
|
-
// Default values for props
|
37
|
-
var defaults = {
|
38
|
-
placement: 'right',
|
39
|
-
size: 'md'
|
40
|
-
};
|
41
|
-
|
42
36
|
/**
|
43
37
|
* Use with medium complexity edits if the user needs page context.
|
44
38
|
*/
|
@@ -53,13 +47,13 @@ exports.EditSidePanel = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
53
47
|
onRequestSubmit = _ref.onRequestSubmit,
|
54
48
|
open = _ref.open,
|
55
49
|
_ref$placement = _ref.placement,
|
56
|
-
placement = _ref$placement === void 0 ?
|
50
|
+
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
57
51
|
primaryButtonText = _ref.primaryButtonText,
|
58
52
|
secondaryButtonText = _ref.secondaryButtonText,
|
59
53
|
selectorPrimaryFocus = _ref.selectorPrimaryFocus,
|
60
54
|
selectorPageContent = _ref.selectorPageContent,
|
61
55
|
_ref$size = _ref.size,
|
62
|
-
size = _ref$size === void 0 ?
|
56
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
63
57
|
slideIn = _ref.slideIn,
|
64
58
|
subtitle = _ref.subtitle,
|
65
59
|
title = _ref.title,
|
@@ -68,7 +62,7 @@ exports.EditSidePanel = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
68
62
|
label: primaryButtonText,
|
69
63
|
onClick: function onClick(event) {
|
70
64
|
event.preventDefault();
|
71
|
-
onRequestSubmit();
|
65
|
+
onRequestSubmit && onRequestSubmit();
|
72
66
|
},
|
73
67
|
kind: 'primary',
|
74
68
|
disabled: disableSubmit,
|
@@ -121,6 +115,7 @@ exports.EditSidePanel.propTypes = {
|
|
121
115
|
/**
|
122
116
|
* Sets the body content of the create side panel
|
123
117
|
*/
|
118
|
+
/**@ts-ignore*/
|
124
119
|
children: index["default"].oneOfType([index["default"].arrayOf(index["default"].node), index["default"].node]).isRequired,
|
125
120
|
/**
|
126
121
|
* Provide an optional class to be applied to the containing node.
|
@@ -156,7 +151,7 @@ exports.EditSidePanel.propTypes = {
|
|
156
151
|
/**
|
157
152
|
* Specifies whether the CreateSidePanel is open or not.
|
158
153
|
*/
|
159
|
-
open: index["default"].bool,
|
154
|
+
open: index["default"].bool.isRequired,
|
160
155
|
/**
|
161
156
|
* Determines if the side panel is on the right or left
|
162
157
|
*/
|
@@ -173,6 +168,7 @@ exports.EditSidePanel.propTypes = {
|
|
173
168
|
* This is the selector to the element that contains all of the page content that will shrink if the panel is a slide in.
|
174
169
|
* This prop is required when using the `slideIn` variant of the side panel.
|
175
170
|
*/
|
171
|
+
/**@ts-ignore*/
|
176
172
|
selectorPageContent: index["default"].string.isRequired.if(function (_ref2) {
|
177
173
|
var slideIn = _ref2.slideIn;
|
178
174
|
return slideIn;
|
@@ -180,6 +176,7 @@ exports.EditSidePanel.propTypes = {
|
|
180
176
|
/**
|
181
177
|
* Specifies which DOM element in the form should be focused.
|
182
178
|
*/
|
179
|
+
/**@ts-ignore*/
|
183
180
|
selectorPrimaryFocus: index["default"].node.isRequired,
|
184
181
|
/**
|
185
182
|
* Sets the size of the side panel
|
@@ -200,5 +197,6 @@ exports.EditSidePanel.propTypes = {
|
|
200
197
|
/**
|
201
198
|
* The title of the CreateSidePanel is usually the product or service name.
|
202
199
|
*/
|
200
|
+
/**@ts-ignore*/
|
203
201
|
title: index["default"].node.isRequired
|
204
202
|
};
|
@@ -1,5 +1,64 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/// <reference path="../../../../src/custom-typings/index.d.ts" />
|
8
|
+
import React, { ReactNode } from 'react';
|
9
|
+
import { ButtonProps } from '@carbon/react';
|
10
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
11
|
+
interface ErrorEmptyStateProps {
|
12
|
+
/**
|
13
|
+
* Empty state action button
|
14
|
+
*/
|
15
|
+
action?: {
|
16
|
+
kind?: 'primary' | 'secondary' | 'tertiary';
|
17
|
+
renderIcon?: CarbonIconType;
|
18
|
+
onClick?: ButtonProps['onClick'];
|
19
|
+
text?: string;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* Provide an optional class to be applied to the containing node.
|
23
|
+
*/
|
24
|
+
className?: string;
|
25
|
+
/**
|
26
|
+
* The alt text for empty state svg images. If not provided , title will be used.
|
27
|
+
*/
|
28
|
+
illustrationDescription?: string;
|
29
|
+
/**
|
30
|
+
* Designates the position of the illustration relative to the content
|
31
|
+
*/
|
32
|
+
illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
|
33
|
+
/**
|
34
|
+
* Empty state illustration theme variations.
|
35
|
+
* To ensure you use the correct themed illustrations, you can conditionally specify light or dark
|
36
|
+
* based on your app's current theme value. Example:
|
37
|
+
* `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
|
38
|
+
*/
|
39
|
+
illustrationTheme?: 'light' | 'dark';
|
40
|
+
/**
|
41
|
+
* Empty state link object
|
42
|
+
*/
|
43
|
+
link?: {
|
44
|
+
text?: string | ReactNode;
|
45
|
+
href?: string;
|
46
|
+
};
|
47
|
+
/**
|
48
|
+
* Empty state size
|
49
|
+
*/
|
50
|
+
size?: 'lg' | 'sm';
|
51
|
+
/**
|
52
|
+
* Empty state subtitle
|
53
|
+
*/
|
54
|
+
subtitle?: string | ReactNode;
|
55
|
+
/**
|
56
|
+
* Empty state title
|
57
|
+
*/
|
58
|
+
title: string | ReactNode;
|
59
|
+
}
|
1
60
|
/**
|
2
61
|
* The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
|
3
62
|
*/
|
4
|
-
export let ErrorEmptyState: React.ForwardRefExoticComponent<React.RefAttributes<
|
5
|
-
|
63
|
+
export declare let ErrorEmptyState: React.ForwardRefExoticComponent<ErrorEmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
64
|
+
export {};
|
@@ -26,11 +26,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
26
26
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
27
27
|
|
28
28
|
var _excluded = ["action", "className", "illustrationPosition", "illustrationDescription", "illustrationTheme", "link", "size", "subtitle", "title"];
|
29
|
-
|
30
29
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
31
30
|
var blockClass = "".concat(settings.pkg.prefix, "--empty-state");
|
32
31
|
var componentName = 'ErrorEmptyState';
|
33
|
-
|
34
32
|
/**
|
35
33
|
* The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
|
36
34
|
*/
|
@@ -59,7 +57,7 @@ exports.ErrorEmptyState = /*#__PURE__*/React__default["default"].forwardRef(func
|
|
59
57
|
link: link,
|
60
58
|
size: size,
|
61
59
|
subtitle: subtitle,
|
62
|
-
title: title
|
60
|
+
title: title || ''
|
63
61
|
}));
|
64
62
|
});
|
65
63
|
|
@@ -1,5 +1,64 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2021
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/// <reference path="../../../../src/custom-typings/index.d.ts" />
|
8
|
+
import React, { ReactNode } from 'react';
|
9
|
+
import { ButtonProps } from '@carbon/react';
|
10
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
11
|
+
interface NoDataEmptyStateProps {
|
12
|
+
/**
|
13
|
+
* Empty state action button
|
14
|
+
*/
|
15
|
+
action?: {
|
16
|
+
kind?: 'primary' | 'secondary' | 'tertiary';
|
17
|
+
renderIcon?: CarbonIconType;
|
18
|
+
onClick?: ButtonProps['onClick'];
|
19
|
+
text?: string;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* Provide an optional class to be applied to the containing node.
|
23
|
+
*/
|
24
|
+
className?: string;
|
25
|
+
/**
|
26
|
+
* The alt text for empty state svg images. If not provided, title will be used.
|
27
|
+
*/
|
28
|
+
illustrationDescription?: string;
|
29
|
+
/**
|
30
|
+
* Designates the position of the illustration relative to the content
|
31
|
+
*/
|
32
|
+
illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
|
33
|
+
/**
|
34
|
+
* Empty state illustration theme variations.
|
35
|
+
* To ensure you use the correct themed illustrations, you can conditionally specify light or dark
|
36
|
+
* based on your app's current theme value. Example:
|
37
|
+
* `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
|
38
|
+
*/
|
39
|
+
illustrationTheme?: 'light' | 'dark';
|
40
|
+
/**
|
41
|
+
* Empty state link object
|
42
|
+
*/
|
43
|
+
link?: {
|
44
|
+
text?: string | ReactNode;
|
45
|
+
href?: string;
|
46
|
+
};
|
47
|
+
/**
|
48
|
+
* Empty state size
|
49
|
+
*/
|
50
|
+
size?: 'lg' | 'sm';
|
51
|
+
/**
|
52
|
+
* Empty state subtitle
|
53
|
+
*/
|
54
|
+
subtitle?: string | React.ReactNode;
|
55
|
+
/**
|
56
|
+
* Empty state title
|
57
|
+
*/
|
58
|
+
title: string | React.ReactNode;
|
59
|
+
}
|
1
60
|
/**
|
2
61
|
* The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
|
3
62
|
*/
|
4
|
-
export let NoDataEmptyState: React.ForwardRefExoticComponent<React.RefAttributes<
|
5
|
-
|
63
|
+
export declare let NoDataEmptyState: React.ForwardRefExoticComponent<NoDataEmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
64
|
+
export {};
|
@@ -30,7 +30,6 @@ var _excluded = ["action", "className", "illustrationPosition", "illustrationThe
|
|
30
30
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
31
31
|
var blockClass = "".concat(settings.pkg.prefix, "--empty-state");
|
32
32
|
var componentName = 'NoDataEmptyState';
|
33
|
-
|
34
33
|
/**
|
35
34
|
* The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
|
36
35
|
*/
|
@@ -59,7 +58,7 @@ exports.NoDataEmptyState = /*#__PURE__*/React__default["default"].forwardRef(fun
|
|
59
58
|
link: link,
|
60
59
|
size: size,
|
61
60
|
subtitle: subtitle,
|
62
|
-
title: title
|
61
|
+
title: title || ''
|
63
62
|
}));
|
64
63
|
});
|
65
64
|
|
@@ -1,5 +1,64 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/// <reference path="../../../../src/custom-typings/index.d.ts" />
|
8
|
+
import React, { ReactNode } from 'react';
|
9
|
+
import { ButtonProps } from '@carbon/react';
|
10
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
11
|
+
interface NotFoundEmptyStateProps {
|
12
|
+
/**
|
13
|
+
* Empty state action button
|
14
|
+
*/
|
15
|
+
action?: {
|
16
|
+
kind?: 'primary' | 'secondary' | 'tertiary';
|
17
|
+
renderIcon?: CarbonIconType;
|
18
|
+
onClick?: ButtonProps['onClick'];
|
19
|
+
text?: string;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* Provide an optional class to be applied to the containing node.
|
23
|
+
*/
|
24
|
+
className?: string;
|
25
|
+
/**
|
26
|
+
* The alt text for empty state svg images. If not provided , title will be used.
|
27
|
+
*/
|
28
|
+
illustrationDescription?: string;
|
29
|
+
/**
|
30
|
+
* Designates the position of the illustration relative to the content
|
31
|
+
*/
|
32
|
+
illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
|
33
|
+
/**
|
34
|
+
* Empty state illustration theme variations.
|
35
|
+
* To ensure you use the correct themed illustrations, you can conditionally specify light or dark
|
36
|
+
* based on your app's current theme value. Example:
|
37
|
+
* `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
|
38
|
+
*/
|
39
|
+
illustrationTheme?: 'light' | 'dark';
|
40
|
+
/**
|
41
|
+
* Empty state link object
|
42
|
+
*/
|
43
|
+
link?: {
|
44
|
+
text?: string | ReactNode;
|
45
|
+
href?: string;
|
46
|
+
};
|
47
|
+
/**
|
48
|
+
* Empty state size
|
49
|
+
*/
|
50
|
+
size?: 'lg' | 'sm';
|
51
|
+
/**
|
52
|
+
* Empty state subtitle
|
53
|
+
*/
|
54
|
+
subtitle: string | ReactNode;
|
55
|
+
/**
|
56
|
+
* Empty state title
|
57
|
+
*/
|
58
|
+
title: string | ReactNode;
|
59
|
+
}
|
1
60
|
/**
|
2
61
|
* The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
|
3
62
|
*/
|
4
|
-
export let NotFoundEmptyState: React.ForwardRefExoticComponent<React.RefAttributes<
|
5
|
-
|
63
|
+
export declare let NotFoundEmptyState: React.ForwardRefExoticComponent<NotFoundEmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
64
|
+
export {};
|
@@ -26,11 +26,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
26
26
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
27
27
|
|
28
28
|
var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "subtitle", "title"];
|
29
|
-
|
30
29
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
31
30
|
var blockClass = "".concat(settings.pkg.prefix, "--empty-state");
|
32
31
|
var componentName = 'NotFoundEmptyState';
|
33
|
-
|
34
32
|
/**
|
35
33
|
* The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
|
36
34
|
*/
|
@@ -59,7 +57,7 @@ exports.NotFoundEmptyState = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
59
57
|
link: link,
|
60
58
|
size: size,
|
61
59
|
subtitle: subtitle,
|
62
|
-
title: title
|
60
|
+
title: title || ''
|
63
61
|
}));
|
64
62
|
});
|
65
63
|
|
@@ -1,5 +1,113 @@
|
|
1
|
+
/// <reference path="../../../src/custom-typings/index.d.ts" />
|
2
|
+
import React, { ReactNode } from 'react';
|
3
|
+
import { ComposedModal } from '@carbon/react';
|
4
|
+
type InputType = 'text' | 'password';
|
5
|
+
type PreformattedExtensions = {
|
6
|
+
extension?: string;
|
7
|
+
description?: string;
|
8
|
+
};
|
9
|
+
interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
|
10
|
+
/**
|
11
|
+
* Body content for the modal
|
12
|
+
*/
|
13
|
+
body?: string;
|
14
|
+
/**
|
15
|
+
* Optional class name
|
16
|
+
*/
|
17
|
+
className?: string;
|
18
|
+
/**
|
19
|
+
* specify if an error occurred
|
20
|
+
*/
|
21
|
+
error?: boolean;
|
22
|
+
/**
|
23
|
+
* messaging to display in the event of an error
|
24
|
+
*/
|
25
|
+
errorMessage?: string;
|
26
|
+
/**
|
27
|
+
* name of the file being exported
|
28
|
+
*/
|
29
|
+
filename: string;
|
30
|
+
/**
|
31
|
+
* label text that's displayed when hovering over visibility toggler to hide key
|
32
|
+
*/
|
33
|
+
hidePasswordLabel?: string;
|
34
|
+
/**
|
35
|
+
* label for the text input
|
36
|
+
*/
|
37
|
+
inputLabel?: string;
|
38
|
+
/**
|
39
|
+
* specify the type of text input
|
40
|
+
*/
|
41
|
+
inputType: InputType;
|
42
|
+
/**
|
43
|
+
* text for an invalid input
|
44
|
+
*/
|
45
|
+
invalidInputText?: string;
|
46
|
+
/**
|
47
|
+
* specify if the modal is in a loading state
|
48
|
+
*/
|
49
|
+
loading?: boolean;
|
50
|
+
/**
|
51
|
+
* message to display during the loading state
|
52
|
+
*/
|
53
|
+
loadingMessage?: string;
|
54
|
+
/**
|
55
|
+
* Specify a handler for closing modal
|
56
|
+
*/
|
57
|
+
onClose?: () => void;
|
58
|
+
/**
|
59
|
+
* Specify a handler for "submitting" modal. Returns the file name
|
60
|
+
*/
|
61
|
+
onRequestSubmit?: (value?: string) => void;
|
62
|
+
/**
|
63
|
+
* Specify whether the Modal is currently open
|
64
|
+
*/
|
65
|
+
open?: boolean;
|
66
|
+
/**
|
67
|
+
* The DOM node the tearsheet should be rendered within. Defaults to document.body.
|
68
|
+
*/
|
69
|
+
portalTarget?: ReactNode;
|
70
|
+
/**
|
71
|
+
* Array of extensions to display as radio buttons
|
72
|
+
*/
|
73
|
+
preformattedExtensions: readonly PreformattedExtensions[];
|
74
|
+
/**
|
75
|
+
* Label for the preformatted label form group
|
76
|
+
*/
|
77
|
+
preformattedExtensionsLabel?: string;
|
78
|
+
/**
|
79
|
+
* Specify the text for the primary button
|
80
|
+
*/
|
81
|
+
primaryButtonText: string;
|
82
|
+
/**
|
83
|
+
* Specify the text for the secondary button
|
84
|
+
*/
|
85
|
+
secondaryButtonText: string;
|
86
|
+
/**
|
87
|
+
* label text that's displayed when hovering over visibility toggler to show key
|
88
|
+
*/
|
89
|
+
showPasswordLabel?: string;
|
90
|
+
/**
|
91
|
+
* messaging to display if the export was successful
|
92
|
+
*/
|
93
|
+
successMessage?: string;
|
94
|
+
/**
|
95
|
+
* specify if the export was successful
|
96
|
+
*/
|
97
|
+
successful?: boolean;
|
98
|
+
/**
|
99
|
+
* The text displayed at the top of the modal
|
100
|
+
*/
|
101
|
+
title: string;
|
102
|
+
/**
|
103
|
+
* array of valid extensions the file can have
|
104
|
+
*/
|
105
|
+
validExtensions: readonly any[];
|
106
|
+
}
|
1
107
|
/**
|
2
108
|
* Modal dialog version of the export pattern
|
3
109
|
*/
|
4
|
-
export let ExportModal: React.ForwardRefExoticComponent<
|
5
|
-
|
110
|
+
export declare let ExportModal: React.ForwardRefExoticComponent<RemoveModalProps & {
|
111
|
+
children?: React.ReactNode;
|
112
|
+
} & React.RefAttributes<unknown>>;
|
113
|
+
export {};
|