@carbon/ibm-products 2.53.0 → 2.54.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/css/index-full-carbon.css +1700 -4375
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +8 -0
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +996 -2631
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +92 -44
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/APIKeyModal/APIKeyDownloader.d.ts +3 -1
  18. package/es/components/APIKeyModal/APIKeyDownloader.js +9 -2
  19. package/es/components/APIKeyModal/APIKeyModal.js +9 -2
  20. package/es/components/APIKeyModal/APIKeyModal.types.d.ts +4 -0
  21. package/es/components/ActionBar/ActionBar.d.ts +2 -1
  22. package/es/components/ActionSet/ActionSet.d.ts +1 -1
  23. package/es/components/ActionSet/ActionSet.js +2 -0
  24. package/es/components/AddSelect/types/index.d.ts +1 -1
  25. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
  26. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +11 -3
  27. package/es/components/Checklist/Checklist.js +2 -3
  28. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -2
  29. package/es/components/CreateFullPage/CreateFullPage.d.ts +5 -0
  30. package/es/components/CreateFullPage/CreateFullPage.js +31 -15
  31. package/es/components/CreateFullPage/CreateFullPageStep.d.ts +4 -0
  32. package/es/components/CreateFullPage/CreateFullPageStep.js +8 -2
  33. package/es/components/CreateInfluencer/CreateInfluencer.d.ts +9 -1
  34. package/es/components/CreateInfluencer/CreateInfluencer.js +8 -2
  35. package/es/components/CreateModal/CreateModal.d.ts +2 -2
  36. package/es/components/CreateModal/CreateModal.js +1 -1
  37. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -0
  38. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +3 -1
  39. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -2
  40. package/es/components/Datagrid/types/index.d.ts +3 -3
  41. package/es/components/EditInPlace/EditInPlace.js +1 -0
  42. package/es/components/EmptyStates/EmptyState.d.ts +1 -1
  43. package/es/components/EmptyStates/EmptyState.js +2 -0
  44. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
  45. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -0
  46. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
  47. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -0
  48. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
  49. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -0
  50. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
  51. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -0
  52. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
  53. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -0
  54. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
  55. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -0
  56. package/es/components/Guidebanner/Guidebanner.js +1 -1
  57. package/es/components/ImportModal/ImportModal.d.ts +1 -1
  58. package/es/components/ImportModal/ImportModal.js +3 -8
  59. package/es/components/InlineTip/InlineTipButton.d.ts +1 -1
  60. package/es/components/InterstitialScreen/InterstitialScreen.js +2 -2
  61. package/es/components/Nav/NavList.js +1 -1
  62. package/es/components/NotificationsPanel/NotificationsPanel.js +2 -1
  63. package/es/components/PageHeader/PageHeader.d.ts +9 -5
  64. package/es/components/PageHeader/PageHeader.js +9 -4
  65. package/es/components/SearchBar/SearchBar.js +1 -1
  66. package/es/components/SidePanel/SidePanel.d.ts +2 -2
  67. package/es/components/TagOverflow/TagOverflowModal.d.ts +1 -1
  68. package/es/components/TagOverflow/TagOverflowPopover.d.ts +3 -1
  69. package/es/components/TagOverflow/TagOverflowPopover.js +1 -1
  70. package/es/components/TagSet/TagSetModal.d.ts +1 -1
  71. package/es/components/Tearsheet/Tearsheet.d.ts +5 -2
  72. package/es/components/Tearsheet/Tearsheet.js +1 -0
  73. package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  74. package/es/components/Tearsheet/TearsheetNarrow.js +1 -0
  75. package/es/components/Tearsheet/TearsheetShell.d.ts +2 -3
  76. package/es/components/Tearsheet/TearsheetShell.js +0 -1
  77. package/es/components/TooltipTrigger/TooltipTrigger.d.ts +17 -15
  78. package/es/components/TooltipTrigger/TooltipTrigger.js +2 -2
  79. package/es/components/TruncatedList/TruncatedList.d.ts +1 -1
  80. package/es/components/UserAvatar/UserAvatar.d.ts +1 -1
  81. package/es/components/UserAvatar/UserAvatar.js +3 -2
  82. package/es/components/UserProfileImage/UserProfileImage.d.ts +2 -2
  83. package/es/components/UserProfileImage/UserProfileImage.js +1 -5
  84. package/es/components/WebTerminal/WebTerminal.d.ts +1 -1
  85. package/es/components/WebTerminal/WebTerminal.js +1 -0
  86. package/es/node_modules/@carbon/icons-react/es/generated/{bucket-2.js → bucket-3.js} +963 -1037
  87. package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +937 -885
  88. package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +3 -1
  89. package/lib/components/APIKeyModal/APIKeyDownloader.js +9 -2
  90. package/lib/components/APIKeyModal/APIKeyModal.js +9 -2
  91. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +4 -0
  92. package/lib/components/ActionBar/ActionBar.d.ts +2 -1
  93. package/lib/components/ActionSet/ActionSet.d.ts +1 -1
  94. package/lib/components/ActionSet/ActionSet.js +2 -0
  95. package/lib/components/AddSelect/types/index.d.ts +1 -1
  96. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
  97. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +11 -3
  98. package/lib/components/Checklist/Checklist.js +2 -3
  99. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -2
  100. package/lib/components/CreateFullPage/CreateFullPage.d.ts +5 -0
  101. package/lib/components/CreateFullPage/CreateFullPage.js +31 -15
  102. package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +4 -0
  103. package/lib/components/CreateFullPage/CreateFullPageStep.js +8 -2
  104. package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +9 -1
  105. package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -2
  106. package/lib/components/CreateModal/CreateModal.d.ts +2 -2
  107. package/lib/components/CreateModal/CreateModal.js +1 -1
  108. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -0
  109. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +3 -1
  110. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -2
  111. package/lib/components/Datagrid/types/index.d.ts +3 -3
  112. package/lib/components/EditInPlace/EditInPlace.js +1 -0
  113. package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
  114. package/lib/components/EmptyStates/EmptyState.js +2 -0
  115. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
  116. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -0
  117. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
  118. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -0
  119. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
  120. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -0
  121. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
  122. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -0
  123. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
  124. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -0
  125. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
  126. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -0
  127. package/lib/components/Guidebanner/Guidebanner.js +1 -1
  128. package/lib/components/ImportModal/ImportModal.d.ts +1 -1
  129. package/lib/components/ImportModal/ImportModal.js +3 -8
  130. package/lib/components/InlineTip/InlineTipButton.d.ts +1 -1
  131. package/lib/components/InterstitialScreen/InterstitialScreen.js +2 -2
  132. package/lib/components/Nav/NavList.js +2 -2
  133. package/lib/components/NotificationsPanel/NotificationsPanel.js +2 -1
  134. package/lib/components/PageHeader/PageHeader.d.ts +9 -5
  135. package/lib/components/PageHeader/PageHeader.js +8 -3
  136. package/lib/components/SearchBar/SearchBar.js +1 -1
  137. package/lib/components/SidePanel/SidePanel.d.ts +2 -2
  138. package/lib/components/TagOverflow/TagOverflowModal.d.ts +1 -1
  139. package/lib/components/TagOverflow/TagOverflowPopover.d.ts +3 -1
  140. package/lib/components/TagOverflow/TagOverflowPopover.js +1 -1
  141. package/lib/components/TagSet/TagSetModal.d.ts +1 -1
  142. package/lib/components/Tearsheet/Tearsheet.d.ts +5 -2
  143. package/lib/components/Tearsheet/Tearsheet.js +1 -0
  144. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  145. package/lib/components/Tearsheet/TearsheetNarrow.js +1 -0
  146. package/lib/components/Tearsheet/TearsheetShell.d.ts +2 -3
  147. package/lib/components/Tearsheet/TearsheetShell.js +0 -1
  148. package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +17 -15
  149. package/lib/components/TooltipTrigger/TooltipTrigger.js +2 -2
  150. package/lib/components/TruncatedList/TruncatedList.d.ts +1 -1
  151. package/lib/components/UserAvatar/UserAvatar.d.ts +1 -1
  152. package/lib/components/UserAvatar/UserAvatar.js +3 -2
  153. package/lib/components/UserProfileImage/UserProfileImage.d.ts +2 -2
  154. package/lib/components/UserProfileImage/UserProfileImage.js +1 -5
  155. package/lib/components/WebTerminal/WebTerminal.d.ts +1 -1
  156. package/lib/components/WebTerminal/WebTerminal.js +1 -0
  157. package/lib/node_modules/@carbon/icons-react/es/generated/{bucket-2.js → bucket-3.js} +1078 -1152
  158. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +980 -928
  159. package/package.json +11 -11
  160. package/scss/components/EditFullPage/_index.scss +1 -1
  161. package/scss/components/EditTearsheet/_index.scss +1 -1
  162. package/scss/components/EditTearsheetNarrow/_index.scss +1 -1
  163. package/scss/components/EditUpdateCards/_edit-update-cards.scss +3 -3
  164. package/scss/components/UserAvatar/_carbon-imports.scss +1 -0
  165. package/scss/components/UserAvatar/_user-avatar.scss +4 -0
  166. package/telemetry.yml +5 -1
@@ -1,15 +1,17 @@
1
- export function APIKeyDownloader({ apiKey, body, fileName, fileType, linkText, }: {
1
+ export function APIKeyDownloader({ apiKey, body, fileName, fileType, linkText, downloadLinkLabel, }: {
2
2
  apiKey: any;
3
3
  body: any;
4
4
  fileName: any;
5
5
  fileType: any;
6
6
  linkText: any;
7
+ downloadLinkLabel: any;
7
8
  }): React.JSX.Element;
8
9
  export namespace APIKeyDownloader {
9
10
  export { componentName as displayName };
10
11
  export namespace propTypes {
11
12
  let apiKey: PropTypes.Validator<string>;
12
13
  let body: PropTypes.Validator<string>;
14
+ let downloadLinkLabel: PropTypes.Requireable<string>;
13
15
  let fileName: PropTypes.Validator<string>;
14
16
  let fileType: PropTypes.Validator<string>;
15
17
  let linkText: PropTypes.Validator<string>;
@@ -18,7 +18,8 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
18
18
  body = _ref.body,
19
19
  fileName = _ref.fileName,
20
20
  fileType = _ref.fileType,
21
- linkText = _ref.linkText;
21
+ linkText = _ref.linkText,
22
+ downloadLinkLabel = _ref.downloadLinkLabel;
22
23
  var _useState = React.useState({}),
23
24
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
24
25
  linkProps = _useState2[0],
@@ -63,7 +64,9 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
63
64
  }, /*#__PURE__*/React.createElement("p", {
64
65
  className: "".concat(settings.pkg.prefix, "--apikey-modal__messaging-text")
65
66
  }, body, ' ', /*#__PURE__*/React.createElement("a", _rollupPluginBabelHelpers.extends({}, linkProps, {
66
- className: "".concat(settings.pkg.prefix, "--apikey-modal__download-link")
67
+ className: "".concat(settings.pkg.prefix, "--apikey-modal__download-link"),
68
+ "aria-label": downloadLinkLabel !== null && downloadLinkLabel !== void 0 ? downloadLinkLabel : linkText,
69
+ role: "button"
67
70
  }), linkText)));
68
71
  };
69
72
  APIKeyDownloader.displayName = componentName;
@@ -76,6 +79,10 @@ APIKeyDownloader.propTypes = {
76
79
  * body content for the downloader
77
80
  */
78
81
  body: index.default.string.isRequired,
82
+ /**
83
+ * aria-label for the download link
84
+ */
85
+ downloadLinkLabel: index.default.string,
79
86
  /**
80
87
  * designates the name of downloadable json file with the key. if not specified will default to 'apikey'
81
88
  */
@@ -21,7 +21,7 @@ var propsHelper = require('../../global/js/utils/props-helper.js');
21
21
  var uuidv4 = require('../../global/js/utils/uuidv4.js');
22
22
 
23
23
  var _ErrorFilled, _InformationFilled;
24
- var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "editButtonText", "editSuccess", "editSuccessTitle", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "showAPIKeyLabel"];
24
+ var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "downloadLinkLabel", "editButtonText", "editSuccess", "editSuccessTitle", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "showAPIKeyLabel"];
25
25
  var componentName = 'APIKeyModal';
26
26
 
27
27
  // Default values for props
@@ -47,6 +47,8 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
47
47
  downloadFileName = _ref.downloadFileName,
48
48
  downloadFileType = _ref.downloadFileType,
49
49
  downloadLinkText = _ref.downloadLinkText,
50
+ _ref$downloadLinkLabe = _ref.downloadLinkLabel,
51
+ downloadLinkLabel = _ref$downloadLinkLabe === void 0 ? downloadLinkText : _ref$downloadLinkLabe,
50
52
  editButtonText = _ref.editButtonText,
51
53
  editSuccess = _ref.editSuccess,
52
54
  editSuccessTitle = _ref.editSuccessTitle,
@@ -291,7 +293,8 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
291
293
  body: downloadBodyText,
292
294
  fileName: downloadFileName,
293
295
  linkText: downloadLinkText,
294
- fileType: downloadFileType
296
+ fileType: downloadFileType,
297
+ downloadLinkLabel: downloadLinkLabel
295
298
  }) : /*#__PURE__*/React.createElement("div", {
296
299
  className: "".concat(blockClass, "__messaging-text")
297
300
  }, generateSuccessBody)))), /*#__PURE__*/React.createElement(react.ModalFooter, {
@@ -395,6 +398,10 @@ exports.APIKeyModal.propTypes = {
395
398
  * designates the file type for the downloadable key
396
399
  */
397
400
  downloadFileType: downloadRequiredProps(index.default.oneOf(['txt', 'json'])),
401
+ /**
402
+ * aria-label for the download link
403
+ */
404
+ downloadLinkLabel: downloadRequiredProps(index.default.string),
398
405
  /**
399
406
  * anchor text for the download link
400
407
  */
@@ -207,6 +207,10 @@ type HasDownloadLinkProps = {
207
207
  * anchor text for the download link
208
208
  */
209
209
  downloadLinkText: string;
210
+ /**
211
+ * Aria-label for the download link
212
+ */
213
+ downloadLinkLabel?: string;
210
214
  };
211
215
  export type APIKeyModalProps = APIKeyModalCommonProps & CustomStepConditionalProps & EditingConditionalProps & HasDownloadLinkProps;
212
216
  export {};
@@ -1,5 +1,6 @@
1
+ /// <reference path="../../../src/custom-typings/index.d.ts" />
1
2
  import React, { PropsWithChildren, ForwardedRef } from 'react';
2
- import { ButtonProps } from '@carbon/type';
3
+ import { ButtonProps } from '@carbon/react';
3
4
  import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
4
5
  interface Action extends ButtonProps {
5
6
  id?: string;
@@ -16,7 +16,7 @@ export interface ActionSetProps {
16
16
  *
17
17
  * See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
18
18
  */
19
- actions: ButtonProps[];
19
+ actions: ButtonProps<React.ElementType>[];
20
20
  /**
21
21
  * The size of buttons to use for the actions. The allowed values are
22
22
  * those for the size prop of carbon Button. If this prop is specified, all
@@ -172,6 +172,7 @@ ActionSet.propTypes = {
172
172
  label: index.default.string,
173
173
  loading: index.default.bool,
174
174
  // we duplicate this Button prop to improve the DocGen here
175
+ /**@ts-ignore*/
175
176
  onClick: react.Button.propTypes.onClick
176
177
  })))]),
177
178
  /**
@@ -180,6 +181,7 @@ ActionSet.propTypes = {
180
181
  * the buttons will be set to this size, overriding any 'size' values (if any)
181
182
  * supplied in the actions array (if any).
182
183
  */
184
+ /**@ts-ignore*/
183
185
  buttonSize: react.Button.propTypes.size,
184
186
  /**
185
187
  * An optional class or classes to be added to the outermost element.
@@ -46,5 +46,5 @@ export interface SortOption {
46
46
  id?: string;
47
47
  direction?: string;
48
48
  attribute?: string;
49
- itemText?: object;
49
+ itemText?: ReactNode;
50
50
  }
@@ -1,7 +1,8 @@
1
- export function BreadcrumbWithOverflow({ breadcrumbs, className, maxVisible, noTrailingSlash, overflowAriaLabel, overflowTooltipAlign, ...other }: {
1
+ export function BreadcrumbWithOverflow({ breadcrumbs, className, label, maxVisible, noTrailingSlash, overflowAriaLabel, overflowTooltipAlign, ...other }: {
2
2
  [x: string]: any;
3
3
  breadcrumbs: any;
4
4
  className: any;
5
+ label: any;
5
6
  maxVisible: any;
6
7
  noTrailingSlash: any;
7
8
  overflowAriaLabel: any;
@@ -36,6 +37,7 @@ export namespace BreadcrumbWithOverflow {
36
37
  title: any;
37
38
  }> | null | undefined)[]>;
38
39
  let className: PropTypes.Requireable<string>;
40
+ let label: PropTypes.Requireable<string>;
39
41
  let maxVisible: PropTypes.Requireable<number>;
40
42
  let noTrailingSlash: PropTypes.Requireable<boolean>;
41
43
  let overflowAriaLabel: any;
@@ -20,7 +20,7 @@ require('../../global/js/utils/props-helper.js');
20
20
  var TooltipTrigger = require('../TooltipTrigger/TooltipTrigger.js');
21
21
 
22
22
  var _TooltipTrigger;
23
- var _excluded = ["breadcrumbs", "className", "maxVisible", "noTrailingSlash", "overflowAriaLabel", "overflowTooltipAlign"],
23
+ var _excluded = ["breadcrumbs", "className", "label", "maxVisible", "noTrailingSlash", "overflowAriaLabel", "overflowTooltipAlign"],
24
24
  _excluded2 = ["label", "key", "title", "id", "shortTitle"],
25
25
  _excluded3 = ["className", "key", "label", "shortTitle", "title"];
26
26
 
@@ -37,6 +37,7 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
37
37
  var _backItem, _backItem2, _backItem3;
38
38
  var breadcrumbs = _ref.breadcrumbs,
39
39
  className = _ref.className,
40
+ label = _ref.label,
40
41
  maxVisible = _ref.maxVisible,
41
42
  noTrailingSlash = _ref.noTrailingSlash,
42
43
  overflowAriaLabel = _ref.overflowAriaLabel,
@@ -95,7 +96,9 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
95
96
  className: "".concat(blockClass, "__breadcrumb-container ").concat(blockClass, "__breadcrumb-container--hidden"),
96
97
  "aria-hidden": true,
97
98
  ref: sizingContainerRef
98
- }, /*#__PURE__*/React.createElement(react.Breadcrumb, null, /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
99
+ }, /*#__PURE__*/React.createElement(react.Breadcrumb, {
100
+ "aria-label": "".concat(label, "-hidden")
101
+ }, /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
99
102
  key: "".concat(blockClass, "-hidden-overflow-").concat(internalId)
100
103
  }, /*#__PURE__*/React.createElement(react.OverflowMenu, {
101
104
  "aria-label": overflowAriaLabel,
@@ -119,7 +122,7 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
119
122
  title: title !== null && title !== void 0 ? title : label
120
123
  }), label);
121
124
  }))));
122
- }, [breadcrumbs, overflowAriaLabel]);
125
+ }, [breadcrumbs, label, overflowAriaLabel]);
123
126
  React.useEffect(function () {
124
127
  // updates displayedBreadcrumbItems and overflowBreadcrumbItems based on displayCount and breadcrumbs
125
128
  /* istanbul ignore if */
@@ -261,6 +264,7 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
261
264
  }, /*#__PURE__*/React.createElement("div", {
262
265
  className: cx(["".concat(blockClass, "__space")])
263
266
  }, hiddenSizingItems, /*#__PURE__*/React.createElement(react.Breadcrumb, _rollupPluginBabelHelpers.extends({
267
+ "aria-label": label,
264
268
  className: cx("".concat(blockClass, "__breadcrumb-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__breadcrumb-container-with-items"), displayedBreadcrumbItems.length > 1)),
265
269
  noTrailingSlash: noTrailingSlash
266
270
  }, other), ((_backItem = backItem) === null || _backItem === void 0 ? void 0 : _backItem.href) && (((_backItem2 = backItem) === null || _backItem2 === void 0 ? void 0 : _backItem2.label) || ((_backItem3 = backItem) === null || _backItem3 === void 0 ? void 0 : _backItem3.title)) && /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
@@ -315,6 +319,10 @@ exports.BreadcrumbWithOverflow.propTypes = {
315
319
  * className
316
320
  */
317
321
  className: index.default.string,
322
+ /**
323
+ * Label for the Breadcrumb component
324
+ */
325
+ label: index.default.string,
318
326
  /**
319
327
  * maxVisible: maximum visible breadcrumb-items before overflow is used (values less than 1 are treated as 1)
320
328
  */
@@ -47,8 +47,7 @@ var defaults = {
47
47
  enableToggle: true,
48
48
  taskLists: [],
49
49
  theme: Checklist_types.Themes.light,
50
- toggleLabel: 'Toggle',
51
- toggleLabelAlign: 'top'
50
+ toggleLabel: 'Toggle'
52
51
  };
53
52
 
54
53
  /**
@@ -81,7 +80,7 @@ exports.Checklist = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
81
80
  _ref$toggleLabel = _ref.toggleLabel,
82
81
  toggleLabel = _ref$toggleLabel === void 0 ? defaults.toggleLabel : _ref$toggleLabel,
83
82
  _ref$toggleLabelAlign = _ref.toggleLabelAlign,
84
- toggleLabelAlign = _ref$toggleLabelAlign === void 0 ? defaults.toggleLabelAlign : _ref$toggleLabelAlign,
83
+ toggleLabelAlign = _ref$toggleLabelAlign === void 0 ? 'top' : _ref$toggleLabelAlign,
85
84
  viewAllLabel = _ref.viewAllLabel,
86
85
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
87
86
  var _useState = React.useState(open),
@@ -47,10 +47,10 @@ exports.CoachmarkBeacon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
47
47
  tabIndex: 0,
48
48
  type: "button"
49
49
  }, coachmark.buttonProps, {
50
- "aria-label": label,
51
50
  className: "".concat(blockClass, "__target")
52
51
  }), /*#__PURE__*/React.createElement("svg", {
53
- className: "".concat(blockClass, "__center")
52
+ className: "".concat(blockClass, "__center"),
53
+ "aria-label": label
54
54
  }, /*#__PURE__*/React.createElement("title", null, label), _circle || (_circle = /*#__PURE__*/React.createElement("circle", {
55
55
  r: 1,
56
56
  cx: 38,
@@ -90,6 +90,11 @@ type CreateFullPageBaseProps = {
90
90
  * A prop to omit the trailing slash for the breadcrumbs
91
91
  */
92
92
  noTrailingSlash?: boolean;
93
+ /**
94
+ * onChange event for Progress Indicator in the Influencer
95
+ * @param data step index
96
+ */
97
+ onClickInfluencerStep?: (data: number) => void;
93
98
  /**
94
99
  * An optional handler that is called when the user closes the full page (by
95
100
  * clicking the secondary button, located in the modal, which triggers after
@@ -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"),
@@ -1,12 +1,14 @@
1
1
  export default RowSizeDropdown;
2
- declare function RowSizeDropdown({ align, legendText, ...props }: {
2
+ declare function RowSizeDropdown({ align, legendText, autoAlign, ...props }: {
3
3
  [x: string]: any;
4
4
  align?: string | undefined;
5
5
  legendText?: string | undefined;
6
+ autoAlign: any;
6
7
  }): React.JSX.Element;
7
8
  declare namespace RowSizeDropdown {
8
9
  namespace propTypes {
9
10
  let align: any;
11
+ let autoAlign: PropTypes.Requireable<boolean>;
10
12
  let datagridName: PropTypes.Requireable<string>;
11
13
  let legendText: PropTypes.Requireable<string>;
12
14
  let light: PropTypes.Requireable<boolean>;
@@ -19,13 +19,14 @@ var RowSizeRadioGroup = require('./RowSizeRadioGroup.js');
19
19
  var settings = require('../../../../../settings.js');
20
20
 
21
21
  var _Settings;
22
- var _excluded = ["align", "legendText"];
22
+ var _excluded = ["align", "legendText", "autoAlign"];
23
23
  var blockClass = "".concat(settings.pkg.prefix, "--datagrid__row-size");
24
24
  var RowSizeDropdown = function RowSizeDropdown(_ref) {
25
25
  var _ref$align = _ref.align,
26
26
  align = _ref$align === void 0 ? 'bottom-right' : _ref$align,
27
27
  _ref$legendText = _ref.legendText,
28
28
  legendText = _ref$legendText === void 0 ? 'Row settings' : _ref$legendText,
29
+ autoAlign = _ref.autoAlign,
29
30
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
30
31
  var radioGroupRef = React.useRef(undefined);
31
32
  var _React$useState = React.useState(false),
@@ -65,7 +66,8 @@ var RowSizeDropdown = function RowSizeDropdown(_ref) {
65
66
  onRequestClose: onCloseHandler,
66
67
  className: "".concat(blockClass, "-options-container"),
67
68
  onKeyDown: onKeyHandler,
68
- onBlur: onBlurHandler
69
+ onBlur: onBlurHandler,
70
+ autoAlign: autoAlign
69
71
  }, /*#__PURE__*/React.createElement(react.IconButton, {
70
72
  align: align,
71
73
  kind: "ghost",
@@ -82,6 +84,7 @@ var RowSizeDropdown = function RowSizeDropdown(_ref) {
82
84
  };
83
85
  RowSizeDropdown.propTypes = {
84
86
  align: react.IconButton.propTypes.align,
87
+ autoAlign: index.default.bool,
85
88
  datagridName: index.default.string,
86
89
  legendText: index.default.string,
87
90
  light: index.default.bool,
@@ -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'];
@@ -120,6 +120,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
120
120
  onSaveHandler();
121
121
  } else {
122
122
  onCancelHandler();
123
+ setFocused(false);
123
124
  }
124
125
  }
125
126
  }
@@ -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