@carbon/ibm-products 2.43.2-canary.323 → 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 (105) hide show
  1. package/es/components/ActionSet/ActionSet.d.ts +1 -1
  2. package/es/components/ActionSet/ActionSet.js +2 -0
  3. package/es/components/AddSelect/types/index.d.ts +1 -1
  4. package/es/components/Checklist/Checklist.js +2 -3
  5. package/es/components/CreateFullPage/CreateFullPage.d.ts +5 -0
  6. package/es/components/CreateFullPage/CreateFullPage.js +31 -15
  7. package/es/components/CreateFullPage/CreateFullPageStep.d.ts +4 -0
  8. package/es/components/CreateFullPage/CreateFullPageStep.js +8 -2
  9. package/es/components/CreateInfluencer/CreateInfluencer.d.ts +9 -1
  10. package/es/components/CreateInfluencer/CreateInfluencer.js +8 -2
  11. package/es/components/CreateModal/CreateModal.d.ts +2 -2
  12. package/es/components/CreateModal/CreateModal.js +1 -1
  13. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -0
  14. package/es/components/Datagrid/types/index.d.ts +3 -3
  15. package/es/components/EmptyStates/EmptyState.d.ts +1 -1
  16. package/es/components/EmptyStates/EmptyState.js +2 -0
  17. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
  18. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -0
  19. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
  20. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -0
  21. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
  22. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -0
  23. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
  24. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -0
  25. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
  26. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -0
  27. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
  28. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -0
  29. package/es/components/ImportModal/ImportModal.d.ts +1 -1
  30. package/es/components/ImportModal/ImportModal.js +3 -8
  31. package/es/components/InlineTip/InlineTipButton.d.ts +1 -1
  32. package/es/components/PageHeader/PageHeader.d.ts +2 -2
  33. package/es/components/PageHeader/PageHeader.js +5 -2
  34. package/es/components/SearchBar/SearchBar.js +1 -1
  35. package/es/components/SidePanel/SidePanel.d.ts +2 -2
  36. package/es/components/TagOverflow/TagOverflowModal.d.ts +1 -1
  37. package/es/components/TagOverflow/TagOverflowPopover.d.ts +3 -1
  38. package/es/components/TagOverflow/TagOverflowPopover.js +1 -1
  39. package/es/components/TagSet/TagSetModal.d.ts +1 -1
  40. package/es/components/Tearsheet/Tearsheet.d.ts +5 -2
  41. package/es/components/Tearsheet/Tearsheet.js +1 -0
  42. package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  43. package/es/components/Tearsheet/TearsheetNarrow.js +1 -0
  44. package/es/components/Tearsheet/TearsheetShell.d.ts +2 -3
  45. package/es/components/Tearsheet/TearsheetShell.js +0 -1
  46. package/es/components/TooltipTrigger/TooltipTrigger.d.ts +17 -15
  47. package/es/components/TooltipTrigger/TooltipTrigger.js +2 -2
  48. package/es/components/TruncatedList/TruncatedList.d.ts +1 -1
  49. package/es/components/UserProfileImage/UserProfileImage.d.ts +2 -2
  50. package/es/components/UserProfileImage/UserProfileImage.js +1 -5
  51. package/es/components/WebTerminal/WebTerminal.d.ts +1 -1
  52. package/es/components/WebTerminal/WebTerminal.js +1 -0
  53. package/lib/components/ActionSet/ActionSet.d.ts +1 -1
  54. package/lib/components/ActionSet/ActionSet.js +2 -0
  55. package/lib/components/AddSelect/types/index.d.ts +1 -1
  56. package/lib/components/Checklist/Checklist.js +2 -3
  57. package/lib/components/CreateFullPage/CreateFullPage.d.ts +5 -0
  58. package/lib/components/CreateFullPage/CreateFullPage.js +31 -15
  59. package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +4 -0
  60. package/lib/components/CreateFullPage/CreateFullPageStep.js +8 -2
  61. package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +9 -1
  62. package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -2
  63. package/lib/components/CreateModal/CreateModal.d.ts +2 -2
  64. package/lib/components/CreateModal/CreateModal.js +1 -1
  65. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -0
  66. package/lib/components/Datagrid/types/index.d.ts +3 -3
  67. package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
  68. package/lib/components/EmptyStates/EmptyState.js +2 -0
  69. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
  70. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -0
  71. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
  72. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -0
  73. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
  74. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -0
  75. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
  76. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -0
  77. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
  78. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -0
  79. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
  80. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -0
  81. package/lib/components/ImportModal/ImportModal.d.ts +1 -1
  82. package/lib/components/ImportModal/ImportModal.js +3 -8
  83. package/lib/components/InlineTip/InlineTipButton.d.ts +1 -1
  84. package/lib/components/PageHeader/PageHeader.d.ts +2 -2
  85. package/lib/components/PageHeader/PageHeader.js +4 -1
  86. package/lib/components/SearchBar/SearchBar.js +1 -1
  87. package/lib/components/SidePanel/SidePanel.d.ts +2 -2
  88. package/lib/components/TagOverflow/TagOverflowModal.d.ts +1 -1
  89. package/lib/components/TagOverflow/TagOverflowPopover.d.ts +3 -1
  90. package/lib/components/TagOverflow/TagOverflowPopover.js +1 -1
  91. package/lib/components/TagSet/TagSetModal.d.ts +1 -1
  92. package/lib/components/Tearsheet/Tearsheet.d.ts +5 -2
  93. package/lib/components/Tearsheet/Tearsheet.js +1 -0
  94. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  95. package/lib/components/Tearsheet/TearsheetNarrow.js +1 -0
  96. package/lib/components/Tearsheet/TearsheetShell.d.ts +2 -3
  97. package/lib/components/Tearsheet/TearsheetShell.js +0 -1
  98. package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +17 -15
  99. package/lib/components/TooltipTrigger/TooltipTrigger.js +2 -2
  100. package/lib/components/TruncatedList/TruncatedList.d.ts +1 -1
  101. package/lib/components/UserProfileImage/UserProfileImage.d.ts +2 -2
  102. package/lib/components/UserProfileImage/UserProfileImage.js +1 -5
  103. package/lib/components/WebTerminal/WebTerminal.d.ts +1 -1
  104. package/lib/components/WebTerminal/WebTerminal.js +1 -0
  105. package/package.json +2 -2
@@ -136,7 +136,7 @@ var SearchBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
136
136
  className: "".concat(blockClass, "__input"),
137
137
  closeButtonLabelText: clearButtonLabelText,
138
138
  labelText: labelText,
139
- name: "search-input",
139
+ name: 'search-input',
140
140
  onChange: handleInputChange,
141
141
  placeholder: placeholderText,
142
142
  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;
@@ -68,7 +68,7 @@ var TagOverflowPopover = /*#__PURE__*/forwardRef(function (props, ref) {
68
68
  dropShadow: true,
69
69
  highContrast: true,
70
70
  onKeyDown: handleEscKeyPress,
71
- open: popoverOpen
71
+ open: popoverOpen || false
72
72
  }, /*#__PURE__*/React__default.createElement(OperationalTag, {
73
73
  onClick: function onClick() {
74
74
  return setPopoverOpen === null || setPopoverOpen === void 0 ? void 0 : setPopoverOpen(!popoverOpen);
@@ -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 TagSetModalProps {
10
10
  allTags?: AllTags;
11
11
  className?: string;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  /// <reference path="../../../src/custom-typings/index.d.ts" />
8
- import { ButtonProps } from '@carbon/react';
8
+ import { type ButtonProps } from '@carbon/react';
9
9
  import React, { PropsWithChildren, ReactNode } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  /**
@@ -21,6 +21,9 @@ export type CloseIconDescriptionTypes = {
21
21
  hasCloseIcon: true;
22
22
  closeIconDescription: string;
23
23
  };
24
+ export interface TearsheetAction extends ButtonProps<'button'> {
25
+ label?: string;
26
+ }
24
27
  export interface TearsheetProps extends PropsWithChildren {
25
28
  /**
26
29
  * The navigation actions to be shown as buttons in the action area at the
@@ -35,7 +38,7 @@ export interface TearsheetProps extends PropsWithChildren {
35
38
  *
36
39
  * See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
37
40
  */
38
- actions?: ButtonProps<'button'>[];
41
+ actions?: TearsheetAction[];
39
42
  /**
40
43
  * The aria-label for the tearsheet, which is optional.
41
44
  * if it is not passed, the title will be used as the aria-label.
@@ -107,6 +107,7 @@ Tearsheet.propTypes = _objectSpread2({
107
107
  label: PropTypes.string,
108
108
  loading: PropTypes.bool,
109
109
  // we duplicate this Button prop to improve the DocGen here
110
+ /**@ts-ignore*/
110
111
  onClick: Button.propTypes.onClick
111
112
  })))]),
112
113
  /**
@@ -23,7 +23,7 @@ interface TearsheetNarrowBaseProps extends PropsWithChildren {
23
23
  *
24
24
  * See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
25
25
  */
26
- actions?: ButtonProps<'button'>[];
26
+ actions?: ButtonProps<React.ElementType>[];
27
27
  /**
28
28
  * The aria-label for the tearsheet, which is optional.
29
29
  * if it is not passed, the title will be used as the aria-label.
@@ -92,6 +92,7 @@ TearsheetNarrow.propTypes = _objectSpread2({
92
92
  label: PropTypes.string,
93
93
  loading: PropTypes.bool,
94
94
  // we duplicate this Button prop to improve the DocGen here
95
+ /**@ts-ignore*/
95
96
  onClick: Button.propTypes.onClick
96
97
  })))]),
97
98
  /**
@@ -4,12 +4,11 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- /// <reference path="../../../src/custom-typings/index.d.ts" />
8
7
  import React, { PropsWithChildren, ReactNode, RefObject } from 'react';
9
8
  import PropTypes from 'prop-types';
10
- import { type ButtonProps } from '@carbon/react';
9
+ import { TearsheetAction } from './Tearsheet';
11
10
  interface TearsheetShellProps extends PropsWithChildren {
12
- actions?: ButtonProps<'button'>[];
11
+ actions?: TearsheetAction[];
13
12
  /**
14
13
  * Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency,
15
14
  * accountability, and explainability at the UI level.
@@ -22,7 +22,6 @@ import { useFocus, getSpecificElement } from '../../global/js/hooks/useFocus.js'
22
22
  import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
23
23
 
24
24
  var _excluded = ["actions", "aiLabel", "ariaLabel", "children", "className", "closeIconDescription", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "selectorsFloatingMenus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
25
-
26
25
  // The block part of our conventional BEM class names (bc__E--M).
27
26
  var bc = "".concat(pkg.prefix, "--tearsheet");
28
27
  var componentName = 'TearsheetShell';
@@ -1,16 +1,18 @@
1
- export function TooltipTrigger({ children, className, ...rest }: {
2
- [x: string]: any;
3
- children: any;
4
- className: any;
5
- }): React.JSX.Element;
6
- export namespace TooltipTrigger {
7
- export { componentName as displayName };
8
- export namespace propTypes {
9
- let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
10
- let className: PropTypes.Requireable<string>;
11
- }
1
+ /**
2
+ * Copyright IBM Corp. 2023, 2023
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, { PropsWithChildren } from 'react';
8
+ export interface TooltipTriggerProps extends PropsWithChildren {
9
+ /**
10
+ * Provide an optional class to be applied to the containing node.
11
+ */
12
+ className?: string;
12
13
  }
13
- import React from 'react';
14
- declare const componentName: "TooltipTrigger";
15
- import PropTypes from 'prop-types';
16
- export {};
14
+ /**
15
+ * This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
16
+ * no blanked button.
17
+ */
18
+ export declare let TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLDivElement>>;
@@ -23,7 +23,7 @@ var componentName = 'TooltipTrigger';
23
23
  * This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
24
24
  * no blanked button.
25
25
  */
26
- var TooltipTrigger = function TooltipTrigger(_ref) {
26
+ var TooltipTrigger = /*#__PURE__*/React__default.forwardRef(function (_ref) {
27
27
  var children = _ref.children,
28
28
  className = _ref.className,
29
29
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -35,7 +35,7 @@ var TooltipTrigger = function TooltipTrigger(_ref) {
35
35
  className // Apply any supplied class names to the main HTML element.
36
36
  )
37
37
  }), children);
38
- };
38
+ });
39
39
 
40
40
  // Return a placeholder if not released and not enabled by feature flag.
41
41
  TooltipTrigger = pkg.checkComponentEnabled(TooltipTrigger, componentName);
@@ -41,7 +41,7 @@ export interface TruncatedListProps extends PropsWithChildren {
41
41
  /**
42
42
  * Callback function for building the label when the list is collapsed.
43
43
  */
44
- viewMoreLabel?: (value: any) => void;
44
+ viewMoreLabel?: (value: any) => ReactNode;
45
45
  }
46
46
  /**
47
47
  * The `TruncatedList` allows consumers to control how many items are
@@ -6,8 +6,8 @@
6
6
  */
7
7
  /// <reference path="../../../src/custom-typings/index.d.ts" />
8
8
  import '../../global/js/utils/props-helper';
9
+ import { PopoverAlignment } from '@carbon/react';
9
10
  import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
10
- import { IconButton } from '@carbon/react';
11
11
  import React from 'react';
12
12
  type imageProps = {
13
13
  /**
@@ -55,7 +55,7 @@ type UserProfileImageBaseProps = {
55
55
  /**
56
56
  * Specify how the trigger should align with the tooltip
57
57
  */
58
- tooltipAlignment?: React.ComponentProps<typeof IconButton>['align'];
58
+ tooltipAlignment?: PopoverAlignment;
59
59
  /**
60
60
  * Pass in the display name to have it shown on hover
61
61
  */
@@ -24,10 +24,6 @@ var componentName = 'UserProfileImage';
24
24
 
25
25
  // NOTE: the component SCSS is not imported here: it is rolled up separately.
26
26
 
27
- // Default values for props
28
- var defaults = {
29
- tooltipAlignment: 'bottom'
30
- };
31
27
  /**
32
28
  * The user profile avatar allows for an image of the user to be displayed by passing in the image prop. By default the component will display a user icon on a blue background.
33
29
  */
@@ -44,7 +40,7 @@ var UserProfileImage = /*#__PURE__*/React__default.forwardRef(function (_ref, re
44
40
  theme = _ref.theme,
45
41
  tooltipText = _ref.tooltipText,
46
42
  _ref$tooltipAlignment = _ref.tooltipAlignment,
47
- tooltipAlignment = _ref$tooltipAlignment === void 0 ? defaults.tooltipAlignment : _ref$tooltipAlignment,
43
+ tooltipAlignment = _ref$tooltipAlignment === void 0 ? 'bottom' : _ref$tooltipAlignment,
48
44
  rest = _objectWithoutProperties(_ref, _excluded);
49
45
  var carbonPrefix = usePrefix();
50
46
  var icons = {
@@ -8,7 +8,7 @@
8
8
  import { OverflowMenuItem } from '@carbon/react';
9
9
  import React, { PropsWithChildren, ReactNode } from 'react';
10
10
  interface Action {
11
- renderIcon: () => void;
11
+ renderIcon?: React.ElementType;
12
12
  onClick: () => void;
13
13
  iconDescription: string;
14
14
  }
@@ -190,6 +190,7 @@ WebTerminal.propTypes = {
190
190
  /**
191
191
  * Array of objects for each documentation link. Each documentation link uses the prop types of OverflowMenuItems. See more: https://react.carbondesignsystem.com/?path=/docs/components-overflowmenu--default
192
192
  */
193
+ /**@ts-ignore */
193
194
  documentationLinks: PropTypes.arrayOf(PropTypes.shape(_objectSpread2({}, OverflowMenuItem.propTypes))),
194
195
  /**
195
196
  * Description for the documentation link overflow menu tooltip
@@ -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
  }
@@ -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),
@@ -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"),
@@ -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
  /**