@carbon/ibm-products 2.53.0-rc.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
@@ -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>>;
@@ -25,7 +25,7 @@ var componentName = 'TooltipTrigger';
25
25
  * This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
26
26
  * no blanked button.
27
27
  */
28
- exports.TooltipTrigger = function TooltipTrigger(_ref) {
28
+ exports.TooltipTrigger = /*#__PURE__*/React.forwardRef(function (_ref) {
29
29
  var children = _ref.children,
30
30
  className = _ref.className,
31
31
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
@@ -37,7 +37,7 @@ exports.TooltipTrigger = function TooltipTrigger(_ref) {
37
37
  className // Apply any supplied class names to the main HTML element.
38
38
  )
39
39
  }), children);
40
- };
40
+ });
41
41
 
42
42
  // Return a placeholder if not released and not enabled by feature flag.
43
43
  exports.TooltipTrigger = settings.pkg.checkComponentEnabled(exports.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
@@ -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
  */
@@ -125,7 +125,8 @@ exports.UserAvatar.displayName = componentName;
125
125
  // See https://www.npmjs.com/package/prop-types#usage.
126
126
  exports.UserAvatar.propTypes = {
127
127
  /**
128
- * Provide the background color need to be set for UserAvatar.
128
+ * Provide the background color need to be set for UserAvatar. Background color will be set based on lighter or darker theme.
129
+ * For example: if you select order-5-purple, it will take $purple-60 for lighter theme and $purple-50 for darker theme.
129
130
  */
130
131
  backgroundColor: index.default.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']),
131
132
  /**
@@ -153,7 +154,7 @@ exports.UserAvatar.propTypes = {
153
154
  * Provide a custom icon to use if you need to use an icon other than the default one
154
155
  */
155
156
  /**@ts-ignore */
156
- renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
157
+ renderIcon: index.default.oneOfType([index.default.func, index.default.object, index.default.string]),
157
158
  /**
158
159
  * Set the size of the avatar circle
159
160
  */
@@ -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
  */
@@ -26,10 +26,6 @@ var componentName = 'UserProfileImage';
26
26
 
27
27
  // NOTE: the component SCSS is not imported here: it is rolled up separately.
28
28
 
29
- // Default values for props
30
- var defaults = {
31
- tooltipAlignment: 'bottom'
32
- };
33
29
  /**
34
30
  * 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.
35
31
  */
@@ -46,7 +42,7 @@ exports.UserProfileImage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
46
42
  theme = _ref.theme,
47
43
  tooltipText = _ref.tooltipText,
48
44
  _ref$tooltipAlignment = _ref.tooltipAlignment,
49
- tooltipAlignment = _ref$tooltipAlignment === void 0 ? defaults.tooltipAlignment : _ref$tooltipAlignment,
45
+ tooltipAlignment = _ref$tooltipAlignment === void 0 ? 'bottom' : _ref$tooltipAlignment,
50
46
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
51
47
  var carbonPrefix = react.usePrefix();
52
48
  var icons$1 = {
@@ -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
  }
@@ -192,6 +192,7 @@ exports.WebTerminal.propTypes = {
192
192
  /**
193
193
  * 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
194
194
  */
195
+ /**@ts-ignore */
195
196
  documentationLinks: index.default.arrayOf(index.default.shape(_rollupPluginBabelHelpers.objectSpread2({}, react.OverflowMenuItem.propTypes))),
196
197
  /**
197
198
  * Description for the documentation link overflow menu tooltip