@carbon/ibm-products 2.43.2-canary.321 → 2.43.2-canary.325

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.
Files changed (113) hide show
  1. package/es/components/APIKeyModal/APIKeyDownloader.d.ts +3 -1
  2. package/es/components/APIKeyModal/APIKeyDownloader.js +9 -2
  3. package/es/components/APIKeyModal/APIKeyModal.js +9 -2
  4. package/es/components/APIKeyModal/APIKeyModal.types.d.ts +4 -0
  5. package/es/components/ActionSet/ActionSet.d.ts +1 -1
  6. package/es/components/ActionSet/ActionSet.js +2 -0
  7. package/es/components/AddSelect/types/index.d.ts +1 -1
  8. package/es/components/Checklist/Checklist.js +2 -3
  9. package/es/components/CreateFullPage/CreateFullPage.d.ts +5 -0
  10. package/es/components/CreateFullPage/CreateFullPage.js +31 -15
  11. package/es/components/CreateFullPage/CreateFullPageStep.d.ts +4 -0
  12. package/es/components/CreateFullPage/CreateFullPageStep.js +8 -2
  13. package/es/components/CreateInfluencer/CreateInfluencer.d.ts +9 -1
  14. package/es/components/CreateInfluencer/CreateInfluencer.js +8 -2
  15. package/es/components/CreateModal/CreateModal.d.ts +2 -2
  16. package/es/components/CreateModal/CreateModal.js +1 -1
  17. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -0
  18. package/es/components/Datagrid/types/index.d.ts +3 -3
  19. package/es/components/EmptyStates/EmptyState.d.ts +1 -1
  20. package/es/components/EmptyStates/EmptyState.js +2 -0
  21. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
  22. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -0
  23. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
  24. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -0
  25. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
  26. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -0
  27. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
  28. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -0
  29. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
  30. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -0
  31. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
  32. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -0
  33. package/es/components/ImportModal/ImportModal.d.ts +1 -1
  34. package/es/components/ImportModal/ImportModal.js +3 -8
  35. package/es/components/InlineTip/InlineTipButton.d.ts +1 -1
  36. package/es/components/PageHeader/PageHeader.d.ts +2 -2
  37. package/es/components/PageHeader/PageHeader.js +5 -2
  38. package/es/components/SearchBar/SearchBar.js +1 -1
  39. package/es/components/SidePanel/SidePanel.d.ts +2 -2
  40. package/es/components/TagOverflow/TagOverflowModal.d.ts +1 -1
  41. package/es/components/TagOverflow/TagOverflowPopover.d.ts +3 -1
  42. package/es/components/TagOverflow/TagOverflowPopover.js +1 -1
  43. package/es/components/TagSet/TagSetModal.d.ts +1 -1
  44. package/es/components/Tearsheet/Tearsheet.d.ts +5 -2
  45. package/es/components/Tearsheet/Tearsheet.js +1 -0
  46. package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  47. package/es/components/Tearsheet/TearsheetNarrow.js +1 -0
  48. package/es/components/Tearsheet/TearsheetShell.d.ts +2 -3
  49. package/es/components/Tearsheet/TearsheetShell.js +0 -1
  50. package/es/components/TooltipTrigger/TooltipTrigger.d.ts +17 -15
  51. package/es/components/TooltipTrigger/TooltipTrigger.js +2 -2
  52. package/es/components/TruncatedList/TruncatedList.d.ts +1 -1
  53. package/es/components/UserProfileImage/UserProfileImage.d.ts +2 -2
  54. package/es/components/UserProfileImage/UserProfileImage.js +1 -5
  55. package/es/components/WebTerminal/WebTerminal.d.ts +1 -1
  56. package/es/components/WebTerminal/WebTerminal.js +1 -0
  57. package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +3 -1
  58. package/lib/components/APIKeyModal/APIKeyDownloader.js +9 -2
  59. package/lib/components/APIKeyModal/APIKeyModal.js +9 -2
  60. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +4 -0
  61. package/lib/components/ActionSet/ActionSet.d.ts +1 -1
  62. package/lib/components/ActionSet/ActionSet.js +2 -0
  63. package/lib/components/AddSelect/types/index.d.ts +1 -1
  64. package/lib/components/Checklist/Checklist.js +2 -3
  65. package/lib/components/CreateFullPage/CreateFullPage.d.ts +5 -0
  66. package/lib/components/CreateFullPage/CreateFullPage.js +31 -15
  67. package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +4 -0
  68. package/lib/components/CreateFullPage/CreateFullPageStep.js +8 -2
  69. package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +9 -1
  70. package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -2
  71. package/lib/components/CreateModal/CreateModal.d.ts +2 -2
  72. package/lib/components/CreateModal/CreateModal.js +1 -1
  73. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -0
  74. package/lib/components/Datagrid/types/index.d.ts +3 -3
  75. package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
  76. package/lib/components/EmptyStates/EmptyState.js +2 -0
  77. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
  78. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -0
  79. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
  80. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -0
  81. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
  82. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -0
  83. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
  84. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -0
  85. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
  86. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -0
  87. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
  88. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -0
  89. package/lib/components/ImportModal/ImportModal.d.ts +1 -1
  90. package/lib/components/ImportModal/ImportModal.js +3 -8
  91. package/lib/components/InlineTip/InlineTipButton.d.ts +1 -1
  92. package/lib/components/PageHeader/PageHeader.d.ts +2 -2
  93. package/lib/components/PageHeader/PageHeader.js +4 -1
  94. package/lib/components/SearchBar/SearchBar.js +1 -1
  95. package/lib/components/SidePanel/SidePanel.d.ts +2 -2
  96. package/lib/components/TagOverflow/TagOverflowModal.d.ts +1 -1
  97. package/lib/components/TagOverflow/TagOverflowPopover.d.ts +3 -1
  98. package/lib/components/TagOverflow/TagOverflowPopover.js +1 -1
  99. package/lib/components/TagSet/TagSetModal.d.ts +1 -1
  100. package/lib/components/Tearsheet/Tearsheet.d.ts +5 -2
  101. package/lib/components/Tearsheet/Tearsheet.js +1 -0
  102. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  103. package/lib/components/Tearsheet/TearsheetNarrow.js +1 -0
  104. package/lib/components/Tearsheet/TearsheetShell.d.ts +2 -3
  105. package/lib/components/Tearsheet/TearsheetShell.js +0 -1
  106. package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +17 -15
  107. package/lib/components/TooltipTrigger/TooltipTrigger.js +2 -2
  108. package/lib/components/TruncatedList/TruncatedList.d.ts +1 -1
  109. package/lib/components/UserProfileImage/UserProfileImage.d.ts +2 -2
  110. package/lib/components/UserProfileImage/UserProfileImage.js +1 -5
  111. package/lib/components/WebTerminal/WebTerminal.d.ts +1 -1
  112. package/lib/components/WebTerminal/WebTerminal.js +1 -0
  113. package/package.json +2 -2
@@ -25,7 +25,7 @@ var useResetCreateComponent = require('../../global/js/hooks/useResetCreateCompo
25
25
  var useCreateComponentStepChange = require('../../global/js/hooks/useCreateComponentStepChange.js');
26
26
  var CreateInfluencer = require('../CreateInfluencer/CreateInfluencer.js');
27
27
 
28
- var _excluded = ["breadcrumbsOverflowAriaLabel", "breadcrumbs", "backButtonText", "cancelButtonText", "children", "className", "initialStep", "maxVisibleBreadcrumbs", "modalDangerButtonText", "modalDescription", "modalSecondaryButtonText", "modalTitle", "nextButtonText", "onClose", "onRequestSubmit", "firstFocusElement", "submitButtonText", "noTrailingSlash", "title", "secondaryTitle", "breadcrumbOverflowTooltipAlign"];
28
+ var _excluded = ["breadcrumbsOverflowAriaLabel", "breadcrumbs", "backButtonText", "cancelButtonText", "children", "className", "initialStep", "maxVisibleBreadcrumbs", "modalDangerButtonText", "modalDescription", "modalSecondaryButtonText", "modalTitle", "nextButtonText", "onClickInfluencerStep", "onClose", "onRequestSubmit", "firstFocusElement", "submitButtonText", "noTrailingSlash", "title", "secondaryTitle", "breadcrumbOverflowTooltipAlign"];
29
29
  var blockClass = "".concat(settings.pkg.prefix, "--create-full-page");
30
30
  var componentName = 'CreateFullPage';
31
31
 
@@ -63,6 +63,7 @@ exports.CreateFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
63
63
  modalSecondaryButtonText = _ref.modalSecondaryButtonText,
64
64
  modalTitle = _ref.modalTitle,
65
65
  nextButtonText = _ref.nextButtonText,
66
+ onClickInfluencerStep = _ref.onClickInfluencerStep,
66
67
  onClose = _ref.onClose,
67
68
  onRequestSubmit = _ref.onRequestSubmit,
68
69
  firstFocusElement = _ref.firstFocusElement,
@@ -104,24 +105,28 @@ exports.CreateFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
104
105
  setIsDisabled = _useState12[1];
105
106
  var _useState13 = React.useState(),
106
107
  _useState14 = _rollupPluginBabelHelpers.slicedToArray(_useState13, 2),
107
- onNext = _useState14[0],
108
- _setOnNext = _useState14[1];
108
+ onPrevious = _useState14[0],
109
+ _setOnPrevious = _useState14[1];
109
110
  var _useState15 = React.useState(),
110
111
  _useState16 = _rollupPluginBabelHelpers.slicedToArray(_useState15, 2),
111
- onMount = _useState16[0],
112
- _setOnMount = _useState16[1];
113
- var _useState17 = React.useState([]),
112
+ onNext = _useState16[0],
113
+ _setOnNext = _useState16[1];
114
+ var _useState17 = React.useState(),
114
115
  _useState18 = _rollupPluginBabelHelpers.slicedToArray(_useState17, 2),
115
- stepData = _useState18[0],
116
- setStepData = _useState18[1];
117
- var _useState19 = React.useState(1),
116
+ onMount = _useState18[0],
117
+ _setOnMount = _useState18[1];
118
+ var _useState19 = React.useState([]),
118
119
  _useState20 = _rollupPluginBabelHelpers.slicedToArray(_useState19, 2),
119
- firstIncludedStep = _useState20[0],
120
- setFirstIncludedStep = _useState20[1];
121
- var _useState21 = React.useState(),
120
+ stepData = _useState20[0],
121
+ setStepData = _useState20[1];
122
+ var _useState21 = React.useState(1),
122
123
  _useState22 = _rollupPluginBabelHelpers.slicedToArray(_useState21, 2),
123
- lastIncludedStep = _useState22[0],
124
- setLastIncludedStep = _useState22[1];
124
+ firstIncludedStep = _useState22[0],
125
+ setFirstIncludedStep = _useState22[1];
126
+ var _useState23 = React.useState(),
127
+ _useState24 = _rollupPluginBabelHelpers.slicedToArray(_useState23, 2),
128
+ lastIncludedStep = _useState24[0],
129
+ setLastIncludedStep = _useState24[1];
125
130
  React.useEffect(function () {
126
131
  var firstItem = stepData.findIndex(function (item) {
127
132
  return item === null || item === void 0 ? void 0 : item.shouldIncludeStep;
@@ -163,6 +168,7 @@ exports.CreateFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
163
168
  firstIncludedStep: firstIncludedStep,
164
169
  lastIncludedStep: lastIncludedStep,
165
170
  stepData: stepData,
171
+ onPrevious: onPrevious,
166
172
  onNext: onNext,
167
173
  isSubmitDisabled: isDisabled,
168
174
  setCurrentStep: setCurrentStep,
@@ -203,7 +209,8 @@ exports.CreateFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
203
209
  }, /*#__PURE__*/React.createElement(CreateInfluencer.CreateInfluencer, {
204
210
  stepData: stepData,
205
211
  currentStep: currentStep,
206
- title: secondaryTitle
212
+ title: secondaryTitle,
213
+ onClickStep: onClickInfluencerStep
207
214
  })), /*#__PURE__*/React.createElement("div", {
208
215
  className: "".concat(blockClass, "__body")
209
216
  }, /*#__PURE__*/React.createElement("div", {
@@ -217,6 +224,11 @@ exports.CreateFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
217
224
  value: {
218
225
  currentStep: currentStep,
219
226
  setIsDisabled: setIsDisabled,
227
+ setOnPrevious: function setOnPrevious(fn) {
228
+ return _setOnPrevious(function () {
229
+ return fn;
230
+ });
231
+ },
220
232
  setOnNext: function setOnNext(fn) {
221
233
  return _setOnNext(function () {
222
234
  return fn;
@@ -348,6 +360,10 @@ exports.CreateFullPage.propTypes = {
348
360
  * A prop to omit the trailing slash for the breadcrumbs
349
361
  */
350
362
  noTrailingSlash: index.default.bool,
363
+ /**
364
+ * onChange event for Progress Indicator in the Influencer
365
+ */
366
+ onClickInfluencerStep: index.default.func,
351
367
  /**
352
368
  * An optional handler that is called when the user closes the full page (by
353
369
  * clicking the secondary button, located in the modal, which triggers after
@@ -46,6 +46,10 @@ interface CreateFullPageStepBaseProps extends PropsWithChildren {
46
46
  * This function can _optionally_ return a promise that is either resolved or rejected and the CreateFullPage will handle the submitting state of the next button.
47
47
  */
48
48
  onNext?: () => void | Promise<any>;
49
+ /**
50
+ * Optional function to be called when you move to the previous step.
51
+ */
52
+ onPrevious?: () => void;
49
53
  /**
50
54
  * Sets the optional secondary label on the progress step component
51
55
  */
@@ -18,7 +18,7 @@ var pconsole = require('../../global/js/utils/pconsole.js');
18
18
  var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
19
19
  var useRetrieveStepData = require('../../global/js/hooks/useRetrieveStepData.js');
20
20
 
21
- var _excluded = ["children", "className", "subtitle", "description", "disableSubmit", "includeStep", "introStep", "invalid", "title", "hasFieldset", "fieldsetLegendText", "onNext", "onMount", "secondaryLabel"];
21
+ var _excluded = ["children", "className", "subtitle", "description", "disableSubmit", "includeStep", "introStep", "invalid", "title", "hasFieldset", "fieldsetLegendText", "onNext", "onPrevious", "onMount", "secondaryLabel"];
22
22
  var componentName = 'CreateFullPageStep';
23
23
  var blockClass = "".concat(settings.pkg.prefix, "--create-full-page__step");
24
24
 
@@ -45,6 +45,7 @@ exports.CreateFullPageStep = /*#__PURE__*/React.forwardRef(function (_ref, ref)
45
45
  hasFieldset = _ref.hasFieldset,
46
46
  fieldsetLegendText = _ref.fieldsetLegendText,
47
47
  onNext = _ref.onNext,
48
+ onPrevious = _ref.onPrevious,
48
49
  onMount = _ref.onMount,
49
50
  secondaryLabel = _ref.secondaryLabel,
50
51
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
@@ -84,8 +85,9 @@ exports.CreateFullPageStep = /*#__PURE__*/React.forwardRef(function (_ref, ref)
84
85
  if (stepNumber === (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep)) {
85
86
  stepsContext.setIsDisabled(disableSubmit);
86
87
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnNext(onNext); // needs to be updated here otherwise there could be stale state values from only initially setting onNext
88
+ stepsContext === null || stepsContext === void 0 || stepsContext.setOnPrevious(onPrevious);
87
89
  }
88
- }, [stepsContext, stepNumber, disableSubmit, onNext]);
90
+ }, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious]);
89
91
  var span = {
90
92
  span: 50
91
93
  }; // Half.
@@ -178,6 +180,10 @@ exports.CreateFullPageStep.propTypes = {
178
180
  * This function can _optionally_ return a promise that is either resolved or rejected and the CreateFullPage will handle the submitting state of the next button.
179
181
  */
180
182
  onNext: index.default.func,
183
+ /**
184
+ * Optional function to be called when you move to the previous step.
185
+ */
186
+ onPrevious: index.default.func,
181
187
  /**
182
188
  * Sets the optional secondary label on the progress step component
183
189
  */
@@ -22,6 +22,10 @@ interface CreateInfluencerProps {
22
22
  * Provide the current step number.
23
23
  */
24
24
  currentStep: number;
25
+ /**
26
+ * onChange event for Progress Indicator
27
+ */
28
+ onClickStep?: (step: number) => void;
25
29
  /**
26
30
  * Provide the Set Data.
27
31
  */
@@ -32,7 +36,7 @@ interface CreateInfluencerProps {
32
36
  title?: string | undefined;
33
37
  }
34
38
  export declare const CreateInfluencer: {
35
- ({ className, currentStep, stepData, title, }: PropsWithChildren<CreateInfluencerProps>): React.JSX.Element;
39
+ ({ className, currentStep, onClickStep, stepData, title, }: PropsWithChildren<CreateInfluencerProps>): React.JSX.Element;
36
40
  displayName: string;
37
41
  propTypes: {
38
42
  /**
@@ -43,6 +47,10 @@ export declare const CreateInfluencer: {
43
47
  * Used to mark the current step on the ProgressIndicator component
44
48
  */
45
49
  currentStep: PropTypes.Validator<number>;
50
+ /**
51
+ * onChange event for Progress Indicator
52
+ */
53
+ onClickStep: PropTypes.Requireable<(...args: any[]) => any>;
46
54
  /**
47
55
  * The step data that renders the progress items
48
56
  */
@@ -22,6 +22,7 @@ var componentName = 'CreateInfluencer';
22
22
  var CreateInfluencer = function CreateInfluencer(_ref) {
23
23
  var className = _ref.className,
24
24
  currentStep = _ref.currentStep,
25
+ onClickStep = _ref.onClickStep,
25
26
  stepData = _ref.stepData,
26
27
  title = _ref.title;
27
28
  var getNumberOfDynamicStepsBeforeCurrentStep = function getNumberOfDynamicStepsBeforeCurrentStep(array, key) {
@@ -59,10 +60,11 @@ var CreateInfluencer = function CreateInfluencer(_ref) {
59
60
  ,
60
61
  spaceEqually: true,
61
62
  vertical: true,
62
- className: cx("".concat(blockClass, "__progress-indicator"))
63
+ className: cx("".concat(blockClass, "__progress-indicator")),
64
+ onChange: onClickStep
63
65
  }, progressSteps.map(function (step, stepIndex) {
64
66
  return /*#__PURE__*/React.createElement(react.ProgressStep, {
65
- label: step.title,
67
+ label: step === null || step === void 0 ? void 0 : step.title,
66
68
  key: stepIndex,
67
69
  secondaryLabel: step.secondaryLabel || undefined,
68
70
  invalid: step.invalid
@@ -86,6 +88,10 @@ CreateInfluencer.propTypes = {
86
88
  * Used to mark the current step on the ProgressIndicator component
87
89
  */
88
90
  currentStep: index.default.number.isRequired,
91
+ /**
92
+ * onChange event for Progress Indicator
93
+ */
94
+ onClickStep: index.default.func,
89
95
  /**
90
96
  * The step data that renders the progress items
91
97
  */
@@ -58,7 +58,7 @@ export interface CreateModalProps extends React.ComponentProps<typeof ComposedMo
58
58
  /**
59
59
  * Specifies which DOM element in the form should be focused.
60
60
  */
61
- selectorPrimaryFocus: ReactNode;
61
+ selectorPrimaryFocus: string;
62
62
  }
63
63
  /**
64
64
  * The `CreateModal` component provides a way for a user to quickly generate a new
@@ -68,4 +68,4 @@ immediately apparent to the user, with a clear and obvious path to completion.
68
68
  */
69
69
  export declare let CreateModal: React.ForwardRefExoticComponent<CreateModalProps & {
70
70
  children?: React.ReactNode;
71
- } & React.RefAttributes<unknown>>;
71
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -138,7 +138,7 @@ exports.CreateModal.propTypes = {
138
138
  /**
139
139
  * Specifies which DOM element in the form should be focused.
140
140
  */
141
- selectorPrimaryFocus: index.default.node.isRequired,
141
+ selectorPrimaryFocus: index.default.string.isRequired,
142
142
  /**
143
143
  * The subtitle of the CreateModal is optional and serves to provide more information about the modal.
144
144
  */
@@ -72,6 +72,7 @@ var SelectAll = function SelectAll(datagridState) {
72
72
  return onChange === null || onChange === void 0 ? void 0 : onChange(event);
73
73
  };
74
74
  return /*#__PURE__*/React.createElement(react.TableSelectAll, _rollupPluginBabelHelpers.extends({}, selectProps, {
75
+ checked: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.checked) || false,
75
76
  className: cx("".concat(blockClass, "__head-select-all"), "".concat(blockClass, "__checkbox-cell"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__checkbox-cell-sticky-left"), /* istanbul ignore next */
76
77
  isFirstColumnStickyLeft && Number(windowSize) > 671)),
77
78
  name: "".concat(tableId, "-select-all-checkbox-name"),
@@ -155,7 +155,7 @@ export interface RowAction {
155
155
  icon?: ComponentType | FunctionComponent;
156
156
  align?: React.ComponentProps<typeof IconButton>['align'];
157
157
  shouldHideMenuItem?: (...args: any[]) => void;
158
- shouldDisableMenuItem?: (...args: any[]) => void;
158
+ shouldDisableMenuItem?: (...args: any[]) => boolean;
159
159
  disabled?: boolean;
160
160
  onClick?: (...args: any[]) => void;
161
161
  }
@@ -197,7 +197,7 @@ export interface DataGridState<T extends object = any> extends TableCommonProps,
197
197
  emptyStateAction?: {
198
198
  kind?: 'primary' | 'secondary' | 'tertiary';
199
199
  renderIcon?: CarbonIconType;
200
- onClick?: ButtonProps<any>['onClick'];
200
+ onClick?: ButtonProps<React.ElementType>['onClick'];
201
201
  text?: string;
202
202
  };
203
203
  emptyStateLink?: {
@@ -221,7 +221,7 @@ export interface DataGridState<T extends object = any> extends TableCommonProps,
221
221
  allPageRowsLabel?: string | object;
222
222
  allRowsLabel?: string | object;
223
223
  onSelectAllRows?: (val?: boolean) => void;
224
- toolbarBatchActions?: ButtonProps<any>[];
224
+ toolbarBatchActions?: ButtonProps<React.ElementType>[];
225
225
  setGlobalFilter?: (filterValue: FilterValue) => void;
226
226
  batchActionMenuButtonLabel?: string;
227
227
  translateWithIdBatchActions?: TableBatchActionsProps['translateWithId'];
@@ -24,7 +24,7 @@ export interface EmptyStateProps {
24
24
  action?: {
25
25
  kind?: 'primary' | 'secondary' | 'tertiary';
26
26
  renderIcon?: CarbonIconType;
27
- onClick?: ButtonProps['onClick'];
27
+ onClick?: ButtonProps<React.ElementType>['onClick'];
28
28
  text?: string;
29
29
  };
30
30
  /**
@@ -87,6 +87,7 @@ exports.EmptyState.propTypes = {
87
87
  action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
88
88
  kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
89
89
  renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
90
+ /**@ts-ignore*/
90
91
  onClick: react.Button.propTypes.onClick,
91
92
  text: index.default.string
92
93
  })),
@@ -114,6 +115,7 @@ exports.EmptyState.propTypes = {
114
115
  /**
115
116
  * Empty state link object
116
117
  */
118
+ /**@ts-ignore*/
117
119
  link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
118
120
  text: index.default.oneOfType([index.default.string, index.default.node]),
119
121
  href: index.default.string
@@ -15,7 +15,7 @@ export interface ErrorEmptyStateProps {
15
15
  action?: {
16
16
  kind?: 'primary' | 'secondary' | 'tertiary';
17
17
  renderIcon?: CarbonIconType;
18
- onClick?: ButtonProps['onClick'];
18
+ onClick?: ButtonProps<React.ElementType>['onClick'];
19
19
  text?: string;
20
20
  };
21
21
  /**
@@ -71,6 +71,7 @@ exports.ErrorEmptyState.propTypes = {
71
71
  action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
72
72
  kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
73
73
  renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
74
+ /**@ts-ignore*/
74
75
  onClick: react.Button.propTypes.onClick,
75
76
  text: index.default.string
76
77
  })),
@@ -96,6 +97,7 @@ exports.ErrorEmptyState.propTypes = {
96
97
  /**
97
98
  * Empty state link object
98
99
  */
100
+ /**@ts-ignore*/
99
101
  link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
100
102
  text: index.default.oneOfType([index.default.string, index.default.node]),
101
103
  href: index.default.string
@@ -15,7 +15,7 @@ export interface NoDataEmptyStateProps {
15
15
  action?: {
16
16
  kind?: 'primary' | 'secondary' | 'tertiary';
17
17
  renderIcon?: CarbonIconType;
18
- onClick?: ButtonProps['onClick'];
18
+ onClick?: ButtonProps<React.ElementType>['onClick'];
19
19
  text?: string;
20
20
  };
21
21
  /**
@@ -72,6 +72,7 @@ exports.NoDataEmptyState.propTypes = {
72
72
  action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
73
73
  kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
74
74
  renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
75
+ /**@ts-ignore */
75
76
  onClick: react.Button.propTypes.onClick,
76
77
  text: index.default.string
77
78
  })),
@@ -97,6 +98,7 @@ exports.NoDataEmptyState.propTypes = {
97
98
  /**
98
99
  * Empty state link object
99
100
  */
101
+ /**@ts-ignore */
100
102
  link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
101
103
  text: index.default.oneOfType([index.default.string, index.default.node]),
102
104
  href: index.default.string
@@ -15,7 +15,7 @@ export interface NoTagsEmptyStateProps {
15
15
  action?: {
16
16
  kind?: 'primary' | 'secondary' | 'tertiary';
17
17
  renderIcon?: CarbonIconType;
18
- onClick?: ButtonProps['onClick'];
18
+ onClick?: ButtonProps<React.ElementType>['onClick'];
19
19
  text?: string;
20
20
  };
21
21
  /**
@@ -71,6 +71,7 @@ exports.NoTagsEmptyState.propTypes = {
71
71
  action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
72
72
  kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
73
73
  renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
74
+ /**@ts-ignore*/
74
75
  onClick: react.Button.propTypes.onClick,
75
76
  text: index.default.string
76
77
  })),
@@ -96,6 +97,7 @@ exports.NoTagsEmptyState.propTypes = {
96
97
  /**
97
98
  * Empty state link object
98
99
  */
100
+ /**@ts-ignore*/
99
101
  link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
100
102
  text: index.default.oneOfType([index.default.string, index.default.node]),
101
103
  href: index.default.string
@@ -15,7 +15,7 @@ export interface NotFoundEmptyStateProps {
15
15
  action?: {
16
16
  kind?: 'primary' | 'secondary' | 'tertiary';
17
17
  renderIcon?: CarbonIconType;
18
- onClick?: ButtonProps['onClick'];
18
+ onClick?: ButtonProps<React.ElementType>['onClick'];
19
19
  text?: string;
20
20
  };
21
21
  /**
@@ -71,6 +71,7 @@ exports.NotFoundEmptyState.propTypes = {
71
71
  action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
72
72
  kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
73
73
  renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
74
+ /**@ts-ignore*/
74
75
  onClick: react.Button.propTypes.onClick,
75
76
  text: index.default.string
76
77
  })),
@@ -96,6 +97,7 @@ exports.NotFoundEmptyState.propTypes = {
96
97
  /**
97
98
  * Empty state link object
98
99
  */
100
+ /**@ts-ignore*/
99
101
  link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
100
102
  text: index.default.oneOfType([index.default.string, index.default.node]),
101
103
  href: index.default.string
@@ -15,7 +15,7 @@ export interface NotificationsEmptyStateProps {
15
15
  action?: {
16
16
  kind?: 'primary' | 'secondary' | 'tertiary';
17
17
  renderIcon?: CarbonIconType;
18
- onClick?: ButtonProps['onClick'];
18
+ onClick?: ButtonProps<React.ElementType>['onClick'];
19
19
  text?: string;
20
20
  };
21
21
  /**
@@ -71,6 +71,7 @@ exports.NotificationsEmptyState.propTypes = {
71
71
  action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
72
72
  kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
73
73
  renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
74
+ /**@ts-ignore*/
74
75
  onClick: react.Button.propTypes.onClick,
75
76
  text: index.default.string
76
77
  })),
@@ -96,6 +97,7 @@ exports.NotificationsEmptyState.propTypes = {
96
97
  /**
97
98
  * Empty state link object
98
99
  */
100
+ /**@ts-ignore*/
99
101
  link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
100
102
  text: index.default.oneOfType([index.default.string, index.default.node]),
101
103
  href: index.default.string
@@ -15,7 +15,7 @@ export interface UnauthorizedEmptyStateProps {
15
15
  action?: {
16
16
  kind?: 'primary' | 'secondary' | 'tertiary';
17
17
  renderIcon?: CarbonIconType;
18
- onClick?: ButtonProps['onClick'];
18
+ onClick?: ButtonProps<React.ElementType>['onClick'];
19
19
  text?: string;
20
20
  };
21
21
  /**
@@ -72,6 +72,7 @@ exports.UnauthorizedEmptyState.propTypes = {
72
72
  action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
73
73
  kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
74
74
  renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
75
+ /**@ts-ignore*/
75
76
  onClick: react.Button.propTypes.onClick,
76
77
  text: index.default.string
77
78
  })),
@@ -97,6 +98,7 @@ exports.UnauthorizedEmptyState.propTypes = {
97
98
  /**
98
99
  * Empty state link object
99
100
  */
101
+ /**@ts-ignore*/
100
102
  link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
101
103
  text: index.default.oneOfType([index.default.string, index.default.node]),
102
104
  href: index.default.string
@@ -12,7 +12,7 @@ type FileType = {
12
12
  iconDescription?: string;
13
13
  invalidFileType?: boolean;
14
14
  name: string;
15
- status?: string;
15
+ status?: 'uploading' | 'edit' | 'complete';
16
16
  uuid?: string;
17
17
  invalid?: boolean;
18
18
  errorBody?: string;
@@ -20,14 +20,9 @@ var uuidv4 = require('../../global/js/utils/uuidv4.js');
20
20
 
21
21
  var _excluded = ["accept", "className", "defaultErrorBody", "defaultErrorHeader", "description", "fetchErrorBody", "fetchErrorHeader", "fileDropHeader", "fileDropLabel", "fileUploadLabel", "inputButtonIcon", "inputButtonText", "inputId", "inputLabel", "inputPlaceholder", "invalidFileTypeErrorBody", "invalidFileTypeErrorHeader", "invalidIconDescription", "maxFileSize", "maxFileSizeErrorBody", "maxFileSizeErrorHeader", "onClose", "onRequestSubmit", "open", "portalTarget", "primaryButtonText", "secondaryButtonText", "title"];
22
22
  var componentName = 'ImportModal';
23
-
24
- // Default values for props
25
- var defaults = {
26
- accept: Object.freeze([])
27
- };
28
23
  exports.ImportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
29
24
  var _ref$accept = _ref.accept,
30
- accept = _ref$accept === void 0 ? defaults.accept : _ref$accept,
25
+ accept = _ref$accept === void 0 ? [] : _ref$accept,
31
26
  className = _ref.className,
32
27
  defaultErrorBody = _ref.defaultErrorBody,
33
28
  defaultErrorHeader = _ref.defaultErrorHeader,
@@ -224,7 +219,7 @@ exports.ImportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
224
219
  className: "".concat(blockClass, "__input-group")
225
220
  }, /*#__PURE__*/React.createElement(react.TextInput, {
226
221
  labelText: "",
227
- id: inputId,
222
+ id: inputId || '',
228
223
  onChange: inputHandler,
229
224
  placeholder: inputPlaceholder,
230
225
  value: importUrl,
@@ -239,7 +234,7 @@ exports.ImportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
239
234
  return /*#__PURE__*/React.createElement(icons.Add, _rollupPluginBabelHelpers.extends({
240
235
  size: 20
241
236
  }, props));
242
- } : null
237
+ } : undefined
243
238
  }, inputButtonText)), /*#__PURE__*/React.createElement("div", {
244
239
  className: "".concat(carbonPrefix, "--file-container ").concat(blockClass, "__file-container")
245
240
  }, hasFiles && /*#__PURE__*/React.createElement("p", {
@@ -20,4 +20,4 @@ export interface InlineTipButtonProps {
20
20
  */
21
21
  export declare let InlineTipButton: React.ForwardRefExoticComponent<InlineTipButtonProps & {
22
22
  children?: React.ReactNode;
23
- } & React.RefAttributes<HTMLButtonElement>>;
23
+ } & React.RefAttributes<ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>>>;
@@ -122,7 +122,7 @@ type PageActionProps = {
122
122
  * - maxWidth: maximum number of pixels the content will grow to
123
123
  * Carbon Button API https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
124
124
  */
125
- pageActions: ButtonProps[] | PageAction;
125
+ pageActions: ButtonProps<React.ElementType>[] | PageAction;
126
126
  /**
127
127
  * When there is insufficient space to display all of hte page actions inline a dropdown button menu is shown,
128
128
  * containing the page actions. This label is used as the display content of the dropdown button menu.
@@ -225,7 +225,7 @@ interface PageHeaderBaseProps extends PropsWithChildren {
225
225
  * Content for the navigation area in the PageHeader. Should
226
226
  * be a React element that is normally a Carbon Tabs component. Optional.
227
227
  */
228
- navigation?: object;
228
+ navigation?: ReactNode;
229
229
  /**
230
230
  * class name applied to the page actions overflow options
231
231
  */
@@ -308,7 +308,7 @@ exports.PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
308
308
  // Determines the appropriate header background opacity based on the header config/height/scroll and the withoutBackground setting
309
309
  var result = withoutBackground ? 0 : 1;
310
310
  if (!result && metrics !== null && metrics !== void 0 && metrics.headerHeight && metrics.headerHeight > 0 && (breadcrumbs || actionBarItems || tags || navigation)) {
311
- var startAddingAt = parseFloat(layout.spacing10) * parseInt(layout.baseFontSize);
311
+ var startAddingAt = parseFloat("".concat(layout.spacing[9])) * parseInt("".concat(layout.baseFontSize));
312
312
  var scrollRemaining = metrics.headerHeight - scrollYValue;
313
313
 
314
314
  /* don't know how to test resize */
@@ -534,7 +534,9 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
534
534
  /**@ts-ignore */
535
535
  actionBarItems: index.default.arrayOf(index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, propsHelper.prepareProps(react.Button.propTypes, ['kind', 'size', 'tooltipPosition', 'tooltipAlignment'])), {}, {
536
536
  iconDescription: index.default.string.isRequired,
537
+ /**@ts-ignore*/
537
538
  onClick: react.Button.propTypes.onClick,
539
+ /**@ts-ignore*/
538
540
  renderIcon: react.Button.propTypes.renderIcon.isRequired
539
541
  }))),
540
542
  /**
@@ -717,6 +719,7 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
717
719
  /**@ts-ignore */
718
720
  pageActions: index.default.oneOfType([index.default.arrayOf(index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
719
721
  key: index.default.string.isRequired,
722
+ /**@ts-ignore*/
720
723
  kind: react.Button.propTypes.kind,
721
724
  label: index.default.node,
722
725
  onClick: index.default.func
@@ -138,7 +138,7 @@ exports.SearchBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
138
138
  className: "".concat(blockClass, "__input"),
139
139
  closeButtonLabelText: clearButtonLabelText,
140
140
  labelText: labelText,
141
- name: "search-input",
141
+ name: 'search-input',
142
142
  onChange: handleInputChange,
143
143
  placeholder: placeholderText,
144
144
  value: text,
@@ -11,7 +11,7 @@ type SidePanelBaseProps = {
11
11
  /**
12
12
  * Sets the action toolbar buttons
13
13
  */
14
- actionToolbarButtons?: ButtonProps<any>[];
14
+ actionToolbarButtons?: ButtonProps<React.ElementType>[];
15
15
  /**
16
16
  * The primary actions to be shown in the side panel. Each action is
17
17
  * specified as an object that will render expressive Buttons. Any Button
@@ -20,7 +20,7 @@ type SidePanelBaseProps = {
20
20
  *
21
21
  * See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
22
22
  */
23
- actions?: ButtonProps<any>[];
23
+ actions?: ButtonProps<React.ElementType>[];
24
24
  /**
25
25
  * Determines if the title will animate on scroll
26
26
  */
@@ -5,7 +5,7 @@ import { Tag } from '@carbon/react';
5
5
  interface TagType {
6
6
  label: string;
7
7
  }
8
- type AllTags = (TagType & Omit<React.ComponentProps<Tag>, 'filter'>)[];
8
+ type AllTags = (TagType & Omit<React.ComponentProps<typeof Tag>, 'filter'>)[];
9
9
  interface TagOverflowModalProps {
10
10
  allTags?: AllTags;
11
11
  className?: string;
@@ -1,11 +1,13 @@
1
+ /// <reference path="../../../src/custom-typings/index.d.ts" />
1
2
  import React from 'react';
3
+ import { PopoverAlignment } from '@carbon/react';
2
4
  import { TagOverflowItem } from './TagOverflow';
3
5
  export interface Props {
4
6
  allTagsModalSearchThreshold?: number;
5
7
  autoAlign?: boolean;
6
8
  className?: string;
7
9
  onShowAllClick: () => void;
8
- overflowAlign?: string;
10
+ overflowAlign?: PopoverAlignment;
9
11
  overflowTags: TagOverflowItem[];
10
12
  overflowType?: string;
11
13
  popoverOpen?: boolean;
@@ -70,7 +70,7 @@ var TagOverflowPopover = /*#__PURE__*/React.forwardRef(function (props, ref) {
70
70
  dropShadow: true,
71
71
  highContrast: true,
72
72
  onKeyDown: handleEscKeyPress,
73
- open: popoverOpen
73
+ open: popoverOpen || false
74
74
  }, /*#__PURE__*/React.createElement(react.OperationalTag, {
75
75
  onClick: function onClick() {
76
76
  return setPopoverOpen === null || setPopoverOpen === void 0 ? void 0 : setPopoverOpen(!popoverOpen);