@carbon/ibm-products 2.63.0 → 2.64.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 (80) hide show
  1. package/css/index-full-carbon.css.map +1 -1
  2. package/css/index-full-carbon.min.css.map +1 -1
  3. package/css/index-without-carbon-released-only.css.map +1 -1
  4. package/css/index-without-carbon-released-only.min.css.map +1 -1
  5. package/css/index-without-carbon.css.map +1 -1
  6. package/css/index-without-carbon.min.css.map +1 -1
  7. package/css/index.css.map +1 -1
  8. package/css/index.min.css.map +1 -1
  9. package/es/components/APIKeyModal/APIKeyModal.js +6 -9
  10. package/es/components/AboutModal/AboutModal.js +5 -4
  11. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +1 -3
  12. package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +8 -7
  13. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -3
  14. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  15. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +71 -16
  16. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -0
  17. package/es/components/ConditionBuilder/utils/util.js +10 -45
  18. package/es/components/CreateFullPage/CreateFullPageStep.js +4 -4
  19. package/es/components/CreateInfluencer/CreateInfluencer.js +3 -3
  20. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +0 -3
  21. package/es/components/Datagrid/useSortableColumns.js +1 -1
  22. package/es/components/EmptyStates/EmptyState.d.ts +6 -7
  23. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +3 -48
  24. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -0
  25. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +3 -48
  26. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +3 -48
  27. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -0
  28. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +3 -48
  29. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -0
  30. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +3 -48
  31. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -0
  32. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +3 -48
  33. package/es/components/InterstitialScreen/InterstitialScreen.js +4 -2
  34. package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +4 -0
  35. package/es/components/InterstitialScreenView/InterstitialScreenView.js +9 -4
  36. package/es/components/OptionsTile/OptionsTile.js +3 -3
  37. package/es/components/ProductiveCard/ProductiveCard.d.ts +9 -5
  38. package/es/components/SimpleHeader/SimpleHeader.js +2 -2
  39. package/es/components/Tearsheet/TearsheetShell.js +80 -50
  40. package/es/global/js/hooks/useFocus.d.ts +1 -1
  41. package/es/global/js/hooks/useFocus.js +23 -31
  42. package/es/node_modules/@carbon/icons-react/es/Icon.js +1 -1
  43. package/es/node_modules/@carbon/{icon-helpers → icons-react/node_modules/@carbon/icon-helpers}/es/index.js +1 -1
  44. package/lib/components/APIKeyModal/APIKeyModal.js +5 -8
  45. package/lib/components/AboutModal/AboutModal.js +4 -3
  46. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +1 -3
  47. package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +8 -7
  48. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -3
  49. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  50. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +68 -13
  51. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -0
  52. package/lib/components/ConditionBuilder/utils/util.js +10 -45
  53. package/lib/components/CreateFullPage/CreateFullPageStep.js +3 -3
  54. package/lib/components/CreateInfluencer/CreateInfluencer.js +2 -2
  55. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +0 -3
  56. package/lib/components/Datagrid/useSortableColumns.js +1 -1
  57. package/lib/components/EmptyStates/EmptyState.d.ts +6 -7
  58. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +3 -48
  59. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -0
  60. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +3 -48
  61. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +3 -48
  62. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -0
  63. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +3 -48
  64. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -0
  65. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +3 -48
  66. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -0
  67. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +3 -48
  68. package/lib/components/InterstitialScreen/InterstitialScreen.js +4 -2
  69. package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +4 -0
  70. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +9 -4
  71. package/lib/components/OptionsTile/OptionsTile.js +2 -2
  72. package/lib/components/ProductiveCard/ProductiveCard.d.ts +9 -5
  73. package/lib/components/SimpleHeader/SimpleHeader.js +1 -1
  74. package/lib/components/Tearsheet/TearsheetShell.js +78 -48
  75. package/lib/global/js/hooks/useFocus.d.ts +1 -1
  76. package/lib/global/js/hooks/useFocus.js +22 -31
  77. package/lib/node_modules/@carbon/icons-react/es/Icon.js +1 -1
  78. package/lib/node_modules/@carbon/{icon-helpers → icons-react/node_modules/@carbon/icon-helpers}/es/index.js +1 -1
  79. package/package.json +11 -12
  80. package/telemetry.yml +1 -1
@@ -4,31 +4,9 @@
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
- import React, { ElementType, ReactNode } from 'react';
8
- import { ButtonProps } from '@carbon/react';
9
- import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
10
- export interface NoDataEmptyStateProps {
11
- /**
12
- * Empty state action button
13
- */
14
- action?: {
15
- kind?: 'primary' | 'secondary' | 'tertiary';
16
- renderIcon?: CarbonIconType;
17
- onClick?: ButtonProps<React.ElementType>['onClick'];
18
- text?: string;
19
- };
20
- /**
21
- * Provide an optional class to be applied to the containing node.
22
- */
23
- className?: string;
24
- /**
25
- * The alt text for empty state svg images. If not provided, title will be used.
26
- */
27
- illustrationDescription?: string;
28
- /**
29
- * Designates the position of the illustration relative to the content
30
- */
31
- illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
7
+ import React from 'react';
8
+ import { EmptyStatePresetProps } from '../EmptyState';
9
+ export interface NoDataEmptyStateProps extends EmptyStatePresetProps {
32
10
  /**
33
11
  * Empty state illustration theme variations.
34
12
  * To ensure you use the correct themed illustrations, you can conditionally specify light or dark
@@ -36,29 +14,6 @@ export interface NoDataEmptyStateProps {
36
14
  * `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
37
15
  */
38
16
  illustrationTheme?: 'light' | 'dark';
39
- /**
40
- * Empty state link object
41
- */
42
- link?: {
43
- text?: string | ReactNode;
44
- href?: string;
45
- };
46
- /**
47
- * Empty state headingAs allows you to customize the type of heading element
48
- */
49
- headingAs?: (() => ReactNode) | string | ElementType;
50
- /**
51
- * Empty state size
52
- */
53
- size?: 'lg' | 'sm';
54
- /**
55
- * Empty state subtitle
56
- */
57
- subtitle?: string | React.ReactNode;
58
- /**
59
- * Empty state title
60
- */
61
- title: string | React.ReactNode;
62
17
  }
63
18
  /**
64
19
  * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
@@ -4,31 +4,9 @@
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
- import React, { ElementType, ReactNode } from 'react';
8
- import { ButtonProps } from '@carbon/react';
9
- import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
10
- export interface NoTagsEmptyStateProps {
11
- /**
12
- * Empty state action button
13
- */
14
- action?: {
15
- kind?: 'primary' | 'secondary' | 'tertiary';
16
- renderIcon?: CarbonIconType;
17
- onClick?: ButtonProps<React.ElementType>['onClick'];
18
- text?: string;
19
- };
20
- /**
21
- * Provide an optional class to be applied to the containing node.
22
- */
23
- className?: string;
24
- /**
25
- * The alt text for empty state svg images. If not provided , title will be used.
26
- */
27
- illustrationDescription?: string;
28
- /**
29
- * Designates the position of the illustration relative to the content
30
- */
31
- illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
7
+ import React from 'react';
8
+ import { EmptyStatePresetProps } from '../EmptyState';
9
+ export interface NoTagsEmptyStateProps extends EmptyStatePresetProps {
32
10
  /**
33
11
  * Empty state illustration theme variations.
34
12
  * To ensure you use the correct themed illustrations, you can conditionally specify light or dark
@@ -36,29 +14,6 @@ export interface NoTagsEmptyStateProps {
36
14
  * `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
37
15
  */
38
16
  illustrationTheme?: 'light' | 'dark';
39
- /**
40
- * Empty state link object
41
- */
42
- link?: {
43
- text?: string | ReactNode;
44
- href?: string;
45
- };
46
- /**
47
- * Empty state headingAs allows you to customize the type of heading element
48
- */
49
- headingAs?: (() => ReactNode) | string | ElementType;
50
- /**
51
- * Empty state size
52
- */
53
- size?: 'lg' | 'sm';
54
- /**
55
- * Empty state subtitle
56
- */
57
- subtitle?: string | ReactNode;
58
- /**
59
- * Empty state title
60
- */
61
- title: string | ReactNode;
62
17
  }
63
18
  /**
64
19
  * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
@@ -19,6 +19,7 @@ var NoTagsIllustration = require('../assets/NoTagsIllustration.js');
19
19
  var EmptyState = require('../EmptyState.js');
20
20
 
21
21
  var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "headingAs", "subtitle", "title"];
22
+
22
23
  // The block part of our conventional BEM class names (blockClass__E--M).
23
24
  var blockClass = "".concat(settings.pkg.prefix, "--empty-state");
24
25
  var componentName = 'NoTagsEmptyState';
@@ -4,31 +4,9 @@
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
- import React, { ElementType, ReactNode } from 'react';
8
- import { ButtonProps } from '@carbon/react';
9
- import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
10
- export interface NotFoundEmptyStateProps {
11
- /**
12
- * Empty state action button
13
- */
14
- action?: {
15
- kind?: 'primary' | 'secondary' | 'tertiary';
16
- renderIcon?: CarbonIconType;
17
- onClick?: ButtonProps<React.ElementType>['onClick'];
18
- text?: string;
19
- };
20
- /**
21
- * Provide an optional class to be applied to the containing node.
22
- */
23
- className?: string;
24
- /**
25
- * The alt text for empty state svg images. If not provided , title will be used.
26
- */
27
- illustrationDescription?: string;
28
- /**
29
- * Designates the position of the illustration relative to the content
30
- */
31
- illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
7
+ import React from 'react';
8
+ import { EmptyStatePresetProps } from '../EmptyState';
9
+ export interface NotFoundEmptyStateProps extends EmptyStatePresetProps {
32
10
  /**
33
11
  * Empty state illustration theme variations.
34
12
  * To ensure you use the correct themed illustrations, you can conditionally specify light or dark
@@ -36,29 +14,6 @@ export interface NotFoundEmptyStateProps {
36
14
  * `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
37
15
  */
38
16
  illustrationTheme?: 'light' | 'dark';
39
- /**
40
- * Empty state link object
41
- */
42
- link?: {
43
- text?: string | ReactNode;
44
- href?: string;
45
- };
46
- /**
47
- * Empty state headingAs allows you to customize the type of heading element
48
- */
49
- headingAs?: (() => ReactNode) | string | ElementType;
50
- /**
51
- * Empty state size
52
- */
53
- size?: 'lg' | 'sm';
54
- /**
55
- * Empty state subtitle
56
- */
57
- subtitle: string | ReactNode;
58
- /**
59
- * Empty state title
60
- */
61
- title: string | ReactNode;
62
17
  }
63
18
  /**
64
19
  * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
@@ -19,6 +19,7 @@ var NotFoundIllustration = require('../assets/NotFoundIllustration.js');
19
19
  var EmptyState = require('../EmptyState.js');
20
20
 
21
21
  var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "headingAs", "subtitle", "title"];
22
+
22
23
  // The block part of our conventional BEM class names (blockClass__E--M).
23
24
  var blockClass = "".concat(settings.pkg.prefix, "--empty-state");
24
25
  var componentName = 'NotFoundEmptyState';
@@ -4,31 +4,9 @@
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
- import React, { ElementType, ReactNode } from 'react';
8
- import { ButtonProps } from '@carbon/react';
9
- import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
10
- export interface NotificationsEmptyStateProps {
11
- /**
12
- * Empty state action button
13
- */
14
- action?: {
15
- kind?: 'primary' | 'secondary' | 'tertiary';
16
- renderIcon?: CarbonIconType;
17
- onClick?: ButtonProps<React.ElementType>['onClick'];
18
- text?: string;
19
- };
20
- /**
21
- * Provide an optional class to be applied to the containing node.
22
- */
23
- className?: string;
24
- /**
25
- * The alt text for empty state svg images. If not provided , title will be used.
26
- */
27
- illustrationDescription?: string;
28
- /**
29
- * Designates the position of the illustration relative to the content
30
- */
31
- illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
7
+ import React from 'react';
8
+ import { EmptyStatePresetProps } from '../EmptyState';
9
+ export interface NotificationsEmptyStateProps extends EmptyStatePresetProps {
32
10
  /**
33
11
  * Empty state illustration theme variations.
34
12
  * To ensure you use the correct themed illustrations, you can conditionally specify light or dark
@@ -36,29 +14,6 @@ export interface NotificationsEmptyStateProps {
36
14
  * `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
37
15
  */
38
16
  illustrationTheme?: 'light' | 'dark';
39
- /**
40
- * Empty state link object
41
- */
42
- link?: {
43
- text?: string | ReactNode;
44
- href?: string;
45
- };
46
- /**
47
- * Empty state headingAs allows you to customize the type of heading element
48
- */
49
- headingAs?: (() => ReactNode) | string | ElementType;
50
- /**
51
- * Empty state size
52
- */
53
- size?: 'lg' | 'sm';
54
- /**
55
- * Empty state subtitle
56
- */
57
- subtitle: ReactNode;
58
- /**
59
- * Empty state title
60
- */
61
- title: ReactNode;
62
17
  }
63
18
  /**
64
19
  * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
@@ -19,6 +19,7 @@ var NotificationsIllustration = require('../assets/NotificationsIllustration.js'
19
19
  var EmptyState = require('../EmptyState.js');
20
20
 
21
21
  var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "headingAs", "subtitle", "title"];
22
+
22
23
  // The block part of our conventional BEM class names (blockClass__E--M).
23
24
  var blockClass = "".concat(settings.pkg.prefix, "--empty-state");
24
25
  var componentName = 'NotificationsEmptyState';
@@ -4,31 +4,9 @@
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
- import React, { ElementType, ReactNode } from 'react';
8
- import { ButtonProps } from '@carbon/react';
9
- import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
10
- export interface UnauthorizedEmptyStateProps {
11
- /**
12
- * Empty state action button
13
- */
14
- action?: {
15
- kind?: 'primary' | 'secondary' | 'tertiary';
16
- renderIcon?: CarbonIconType;
17
- onClick?: ButtonProps<React.ElementType>['onClick'];
18
- text?: string;
19
- };
20
- /**
21
- * Provide an optional class to be applied to the containing node.
22
- */
23
- className?: string;
24
- /**
25
- * The alt text for empty state svg images. If not provided , title will be used.
26
- */
27
- illustrationDescription?: string;
28
- /**
29
- * Designates the position of the illustration relative to the content
30
- */
31
- illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
7
+ import React from 'react';
8
+ import { EmptyStatePresetProps } from '../EmptyState';
9
+ export interface UnauthorizedEmptyStateProps extends EmptyStatePresetProps {
32
10
  /**
33
11
  * Empty state illustration theme variations.
34
12
  * To ensure you use the correct themed illustrations, you can conditionally specify light or dark
@@ -36,29 +14,6 @@ export interface UnauthorizedEmptyStateProps {
36
14
  * `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
37
15
  */
38
16
  illustrationTheme?: 'light' | 'dark';
39
- /**
40
- * Empty state link object
41
- */
42
- link?: {
43
- text?: string | ReactNode;
44
- href?: string;
45
- };
46
- /**
47
- * Empty state headingAs allows you to customize the type of heading element
48
- */
49
- headingAs?: (() => ReactNode) | string | ElementType;
50
- /**
51
- * Empty state size
52
- */
53
- size?: 'lg' | 'sm';
54
- /**
55
- * Empty state subtitle
56
- */
57
- subtitle: string | ReactNode;
58
- /**
59
- * Empty state title
60
- */
61
- title: string | ReactNode;
62
17
  }
63
18
  /**
64
19
  * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
@@ -204,7 +204,8 @@ exports.InterstitialScreen = /*#__PURE__*/React.forwardRef(function (props, ref)
204
204
  if (/*#__PURE__*/React.isValidElement(child)) {
205
205
  return /*#__PURE__*/React.createElement(react.ProgressStep, {
206
206
  key: idx,
207
- label: child.props.stepTitle || ''
207
+ label: child.props.stepTitle || '',
208
+ translateWithId: child.props.translateWithId
208
209
  });
209
210
  }
210
211
  })))), /*#__PURE__*/React.createElement(react.ModalBody, {
@@ -236,7 +237,8 @@ exports.InterstitialScreen = /*#__PURE__*/React.forwardRef(function (props, ref)
236
237
  if (/*#__PURE__*/React.isValidElement(child)) {
237
238
  return /*#__PURE__*/React.createElement(react.ProgressStep, {
238
239
  key: idx,
239
- label: child.props.stepTitle || ''
240
+ label: child.props.stepTitle || '',
241
+ translateWithId: child.props.translateWithId
240
242
  });
241
243
  }
242
244
  })))), childElements, renderFooter()));
@@ -18,6 +18,10 @@ export interface InterstitialScreenViewProps extends PropsWithChildren {
18
18
  * The label to pass to the ProgressStep component.
19
19
  */
20
20
  stepTitle: string;
21
+ /**
22
+ * Optional method that takes in a message id and returns an internationalized string.
23
+ */
24
+ translateWithId?: (id: string) => string;
21
25
  }
22
26
  /**
23
27
  * An Onboarding component intended to be used as the child elements of the InterstitialScreen component.
@@ -14,7 +14,7 @@ var cx = require('classnames');
14
14
  var devtools = require('../../global/js/utils/devtools.js');
15
15
  var settings = require('../../settings.js');
16
16
 
17
- var _excluded = ["children", "className", "stepTitle"];
17
+ var _excluded = ["children", "className", "stepTitle", "translateWithId"];
18
18
 
19
19
  // Carbon and package components we use.
20
20
  /* TODO: @import(s) of carbon components and other package components. */
@@ -28,8 +28,9 @@ var componentName = 'InterstitialScreenView';
28
28
  exports.InterstitialScreenView = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
29
29
  var children = _ref.children,
30
30
  className = _ref.className,
31
- stepTitle = _ref.stepTitle,
32
- rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
31
+ stepTitle = _ref.stepTitle;
32
+ _ref.translateWithId;
33
+ var rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
33
34
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
34
35
  role: "complementary",
35
36
  "aria-label": stepTitle
@@ -69,5 +70,9 @@ exports.InterstitialScreenView.propTypes = {
69
70
  /**
70
71
  * The label to pass to the ProgressStep component.
71
72
  */
72
- stepTitle: index.default.string.isRequired
73
+ stepTitle: index.default.string.isRequired,
74
+ /**
75
+ * Optional method that takes in a message id and returns an internationalized string.
76
+ */
77
+ translateWithId: index.default.func
73
78
  };
@@ -169,9 +169,9 @@ exports.OptionsTile = /*#__PURE__*/React.forwardRef(function (props, ref) {
169
169
  var hasValidationState = invalid || warn || locked;
170
170
  var summaryHidden = !hasValidationState && enabled === false;
171
171
  var summaryClasses = cx("".concat(blockClass, "__summary"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__summary--closing"), closing), "".concat(blockClass, "__summary--open"), open), "".concat(blockClass, "__summary--invalid"), invalid), "".concat(blockClass, "__summary--warn"), warn), "".concat(blockClass, "__summary--locked"), locked), "".concat(blockClass, "__summary--hidden"), summaryHidden));
172
- return /*#__PURE__*/React.createElement("div", {
172
+ return /*#__PURE__*/React.createElement(react.Section, {
173
173
  className: "".concat(blockClass, "__heading")
174
- }, /*#__PURE__*/React.createElement("h6", {
174
+ }, /*#__PURE__*/React.createElement(react.Heading, {
175
175
  id: titleId,
176
176
  className: "".concat(blockClass, "__title")
177
177
  }, title), text && /*#__PURE__*/React.createElement("span", {
@@ -3,16 +3,16 @@ import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
3
3
  type ActionIcon = {
4
4
  id?: string;
5
5
  icon?: CarbonIconType;
6
- onKeyDown?(): void;
7
- onClick?(): void;
6
+ onClick?: (event: MouseEvent) => void;
7
+ onKeydown?: (event: KeyboardEvent) => void;
8
8
  iconDescription?: string;
9
9
  href?: string;
10
10
  };
11
11
  type overflowAction = {
12
12
  id?: string;
13
13
  itemText?: string;
14
- onClick?: () => void;
15
- onKeydown?: () => void;
14
+ onClick?: (event: MouseEvent) => void;
15
+ onKeydown?: (event: KeyboardEvent) => void;
16
16
  };
17
17
  type PlacementType = 'top' | 'bottom';
18
18
  type ClickZoneType = 'one' | 'two' | 'three';
@@ -52,7 +52,11 @@ export interface ProductiveCardProps extends PropsWithChildren {
52
52
  /**
53
53
  * Provides the callback for a clickable card
54
54
  */
55
- onClick?: () => void;
55
+ onClick?: (event: MouseEvent) => void;
56
+ /**
57
+ * Provides the callback for keydown events on the card
58
+ */
59
+ onKeyDown?: (event: KeyboardEvent) => void;
56
60
  /**
57
61
  * Function that's called from the primary button or action icon
58
62
  */
@@ -59,7 +59,7 @@ var SimpleHeader = function SimpleHeader(_ref) {
59
59
  maxVisible: maxVisible,
60
60
  overflowAriaLabel: overflowAriaLabel,
61
61
  overflowTooltipAlign: overflowTooltipAlign
62
- }), title && /*#__PURE__*/React.createElement("h1", {
62
+ }), title && /*#__PURE__*/React.createElement(react.Heading, {
63
63
  className: cx("".concat(blockClass, "__title"))
64
64
  }, title));
65
65
  };