@carbon/ibm-products 2.53.0 → 2.54.0-canary.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 +10 -3
  19. package/es/components/APIKeyModal/APIKeyModal.js +47 -7
  20. package/es/components/APIKeyModal/APIKeyModal.types.d.ts +9 -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 +10 -3
  90. package/lib/components/APIKeyModal/APIKeyModal.js +46 -6
  91. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +9 -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
@@ -41,7 +41,7 @@ type UserAvatarBaseProps = {
41
41
  /**
42
42
  * Provide a custom icon to use if you need to use an icon other than the default one
43
43
  */
44
- renderIcon?: React.ElementType;
44
+ renderIcon?: React.ElementType | string;
45
45
  /**
46
46
  * Set the size of the avatar circle
47
47
  */
@@ -123,7 +123,8 @@ UserAvatar.displayName = componentName;
123
123
  // See https://www.npmjs.com/package/prop-types#usage.
124
124
  UserAvatar.propTypes = {
125
125
  /**
126
- * Provide the background color need to be set for UserAvatar.
126
+ * Provide the background color need to be set for UserAvatar. Background color will be set based on lighter or darker theme.
127
+ * For example: if you select order-5-purple, it will take $purple-60 for lighter theme and $purple-50 for darker theme.
127
128
  */
128
129
  backgroundColor: PropTypes.oneOf(['order-1-cyan', 'order-2-gray', 'order-3-green', 'order-4-magenta', 'order-5-purple', 'order-6-teal', 'order-7-cyan', 'order-8-gray', 'order-9-green', 'order-10-magenta', 'order-11-purple', 'order-12-teal']),
129
130
  /**
@@ -151,7 +152,7 @@ UserAvatar.propTypes = {
151
152
  * Provide a custom icon to use if you need to use an icon other than the default one
152
153
  */
153
154
  /**@ts-ignore */
154
- renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
155
+ renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.string]),
155
156
  /**
156
157
  * Set the size of the avatar circle
157
158
  */
@@ -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