@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.
- package/es/components/ActionSet/ActionSet.d.ts +1 -1
- package/es/components/ActionSet/ActionSet.js +2 -0
- package/es/components/AddSelect/types/index.d.ts +1 -1
- package/es/components/Checklist/Checklist.js +2 -3
- package/es/components/CreateFullPage/CreateFullPage.d.ts +5 -0
- package/es/components/CreateFullPage/CreateFullPage.js +31 -15
- package/es/components/CreateFullPage/CreateFullPageStep.d.ts +4 -0
- package/es/components/CreateFullPage/CreateFullPageStep.js +8 -2
- package/es/components/CreateInfluencer/CreateInfluencer.d.ts +9 -1
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -2
- package/es/components/CreateModal/CreateModal.d.ts +2 -2
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -0
- package/es/components/Datagrid/types/index.d.ts +3 -3
- package/es/components/EmptyStates/EmptyState.d.ts +1 -1
- package/es/components/EmptyStates/EmptyState.js +2 -0
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -0
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -0
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -0
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -0
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -0
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -0
- package/es/components/ImportModal/ImportModal.d.ts +1 -1
- package/es/components/ImportModal/ImportModal.js +3 -8
- package/es/components/InlineTip/InlineTipButton.d.ts +1 -1
- package/es/components/PageHeader/PageHeader.d.ts +2 -2
- package/es/components/PageHeader/PageHeader.js +5 -2
- package/es/components/SearchBar/SearchBar.js +1 -1
- package/es/components/SidePanel/SidePanel.d.ts +2 -2
- package/es/components/TagOverflow/TagOverflowModal.d.ts +1 -1
- package/es/components/TagOverflow/TagOverflowPopover.d.ts +3 -1
- package/es/components/TagOverflow/TagOverflowPopover.js +1 -1
- package/es/components/TagSet/TagSetModal.d.ts +1 -1
- package/es/components/Tearsheet/Tearsheet.d.ts +5 -2
- package/es/components/Tearsheet/Tearsheet.js +1 -0
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -0
- package/es/components/Tearsheet/TearsheetShell.d.ts +2 -3
- package/es/components/Tearsheet/TearsheetShell.js +0 -1
- package/es/components/TooltipTrigger/TooltipTrigger.d.ts +17 -15
- package/es/components/TooltipTrigger/TooltipTrigger.js +2 -2
- package/es/components/TruncatedList/TruncatedList.d.ts +1 -1
- package/es/components/UserProfileImage/UserProfileImage.d.ts +2 -2
- package/es/components/UserProfileImage/UserProfileImage.js +1 -5
- package/es/components/WebTerminal/WebTerminal.d.ts +1 -1
- package/es/components/WebTerminal/WebTerminal.js +1 -0
- package/lib/components/ActionSet/ActionSet.d.ts +1 -1
- package/lib/components/ActionSet/ActionSet.js +2 -0
- package/lib/components/AddSelect/types/index.d.ts +1 -1
- package/lib/components/Checklist/Checklist.js +2 -3
- package/lib/components/CreateFullPage/CreateFullPage.d.ts +5 -0
- package/lib/components/CreateFullPage/CreateFullPage.js +31 -15
- package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +4 -0
- package/lib/components/CreateFullPage/CreateFullPageStep.js +8 -2
- package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +9 -1
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -2
- package/lib/components/CreateModal/CreateModal.d.ts +2 -2
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -0
- package/lib/components/Datagrid/types/index.d.ts +3 -3
- package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/EmptyState.js +2 -0
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -0
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -0
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -0
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -0
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -0
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -0
- package/lib/components/ImportModal/ImportModal.d.ts +1 -1
- package/lib/components/ImportModal/ImportModal.js +3 -8
- package/lib/components/InlineTip/InlineTipButton.d.ts +1 -1
- package/lib/components/PageHeader/PageHeader.d.ts +2 -2
- package/lib/components/PageHeader/PageHeader.js +4 -1
- package/lib/components/SearchBar/SearchBar.js +1 -1
- package/lib/components/SidePanel/SidePanel.d.ts +2 -2
- package/lib/components/TagOverflow/TagOverflowModal.d.ts +1 -1
- package/lib/components/TagOverflow/TagOverflowPopover.d.ts +3 -1
- package/lib/components/TagOverflow/TagOverflowPopover.js +1 -1
- package/lib/components/TagSet/TagSetModal.d.ts +1 -1
- package/lib/components/Tearsheet/Tearsheet.d.ts +5 -2
- package/lib/components/Tearsheet/Tearsheet.js +1 -0
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -0
- package/lib/components/Tearsheet/TearsheetShell.d.ts +2 -3
- package/lib/components/Tearsheet/TearsheetShell.js +0 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +17 -15
- package/lib/components/TooltipTrigger/TooltipTrigger.js +2 -2
- package/lib/components/TruncatedList/TruncatedList.d.ts +1 -1
- package/lib/components/UserProfileImage/UserProfileImage.d.ts +2 -2
- package/lib/components/UserProfileImage/UserProfileImage.js +1 -5
- package/lib/components/WebTerminal/WebTerminal.d.ts +1 -1
- package/lib/components/WebTerminal/WebTerminal.js +1 -0
- package/package.json +2 -2
@@ -87,6 +87,7 @@ exports.EmptyState.propTypes = {
|
|
87
87
|
action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
|
88
88
|
kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
|
89
89
|
renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
|
90
|
+
/**@ts-ignore*/
|
90
91
|
onClick: react.Button.propTypes.onClick,
|
91
92
|
text: index.default.string
|
92
93
|
})),
|
@@ -114,6 +115,7 @@ exports.EmptyState.propTypes = {
|
|
114
115
|
/**
|
115
116
|
* Empty state link object
|
116
117
|
*/
|
118
|
+
/**@ts-ignore*/
|
117
119
|
link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
|
118
120
|
text: index.default.oneOfType([index.default.string, index.default.node]),
|
119
121
|
href: index.default.string
|
@@ -71,6 +71,7 @@ exports.ErrorEmptyState.propTypes = {
|
|
71
71
|
action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
|
72
72
|
kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
|
73
73
|
renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
|
74
|
+
/**@ts-ignore*/
|
74
75
|
onClick: react.Button.propTypes.onClick,
|
75
76
|
text: index.default.string
|
76
77
|
})),
|
@@ -96,6 +97,7 @@ exports.ErrorEmptyState.propTypes = {
|
|
96
97
|
/**
|
97
98
|
* Empty state link object
|
98
99
|
*/
|
100
|
+
/**@ts-ignore*/
|
99
101
|
link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
|
100
102
|
text: index.default.oneOfType([index.default.string, index.default.node]),
|
101
103
|
href: index.default.string
|
@@ -72,6 +72,7 @@ exports.NoDataEmptyState.propTypes = {
|
|
72
72
|
action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
|
73
73
|
kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
|
74
74
|
renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
|
75
|
+
/**@ts-ignore */
|
75
76
|
onClick: react.Button.propTypes.onClick,
|
76
77
|
text: index.default.string
|
77
78
|
})),
|
@@ -97,6 +98,7 @@ exports.NoDataEmptyState.propTypes = {
|
|
97
98
|
/**
|
98
99
|
* Empty state link object
|
99
100
|
*/
|
101
|
+
/**@ts-ignore */
|
100
102
|
link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
|
101
103
|
text: index.default.oneOfType([index.default.string, index.default.node]),
|
102
104
|
href: index.default.string
|
@@ -71,6 +71,7 @@ exports.NoTagsEmptyState.propTypes = {
|
|
71
71
|
action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
|
72
72
|
kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
|
73
73
|
renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
|
74
|
+
/**@ts-ignore*/
|
74
75
|
onClick: react.Button.propTypes.onClick,
|
75
76
|
text: index.default.string
|
76
77
|
})),
|
@@ -96,6 +97,7 @@ exports.NoTagsEmptyState.propTypes = {
|
|
96
97
|
/**
|
97
98
|
* Empty state link object
|
98
99
|
*/
|
100
|
+
/**@ts-ignore*/
|
99
101
|
link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
|
100
102
|
text: index.default.oneOfType([index.default.string, index.default.node]),
|
101
103
|
href: index.default.string
|
@@ -15,7 +15,7 @@ export interface NotFoundEmptyStateProps {
|
|
15
15
|
action?: {
|
16
16
|
kind?: 'primary' | 'secondary' | 'tertiary';
|
17
17
|
renderIcon?: CarbonIconType;
|
18
|
-
onClick?: ButtonProps['onClick'];
|
18
|
+
onClick?: ButtonProps<React.ElementType>['onClick'];
|
19
19
|
text?: string;
|
20
20
|
};
|
21
21
|
/**
|
@@ -71,6 +71,7 @@ exports.NotFoundEmptyState.propTypes = {
|
|
71
71
|
action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
|
72
72
|
kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
|
73
73
|
renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
|
74
|
+
/**@ts-ignore*/
|
74
75
|
onClick: react.Button.propTypes.onClick,
|
75
76
|
text: index.default.string
|
76
77
|
})),
|
@@ -96,6 +97,7 @@ exports.NotFoundEmptyState.propTypes = {
|
|
96
97
|
/**
|
97
98
|
* Empty state link object
|
98
99
|
*/
|
100
|
+
/**@ts-ignore*/
|
99
101
|
link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
|
100
102
|
text: index.default.oneOfType([index.default.string, index.default.node]),
|
101
103
|
href: index.default.string
|
@@ -15,7 +15,7 @@ export interface NotificationsEmptyStateProps {
|
|
15
15
|
action?: {
|
16
16
|
kind?: 'primary' | 'secondary' | 'tertiary';
|
17
17
|
renderIcon?: CarbonIconType;
|
18
|
-
onClick?: ButtonProps['onClick'];
|
18
|
+
onClick?: ButtonProps<React.ElementType>['onClick'];
|
19
19
|
text?: string;
|
20
20
|
};
|
21
21
|
/**
|
@@ -71,6 +71,7 @@ exports.NotificationsEmptyState.propTypes = {
|
|
71
71
|
action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
|
72
72
|
kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
|
73
73
|
renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
|
74
|
+
/**@ts-ignore*/
|
74
75
|
onClick: react.Button.propTypes.onClick,
|
75
76
|
text: index.default.string
|
76
77
|
})),
|
@@ -96,6 +97,7 @@ exports.NotificationsEmptyState.propTypes = {
|
|
96
97
|
/**
|
97
98
|
* Empty state link object
|
98
99
|
*/
|
100
|
+
/**@ts-ignore*/
|
99
101
|
link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
|
100
102
|
text: index.default.oneOfType([index.default.string, index.default.node]),
|
101
103
|
href: index.default.string
|
@@ -15,7 +15,7 @@ export interface UnauthorizedEmptyStateProps {
|
|
15
15
|
action?: {
|
16
16
|
kind?: 'primary' | 'secondary' | 'tertiary';
|
17
17
|
renderIcon?: CarbonIconType;
|
18
|
-
onClick?: ButtonProps['onClick'];
|
18
|
+
onClick?: ButtonProps<React.ElementType>['onClick'];
|
19
19
|
text?: string;
|
20
20
|
};
|
21
21
|
/**
|
@@ -72,6 +72,7 @@ exports.UnauthorizedEmptyState.propTypes = {
|
|
72
72
|
action: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
|
73
73
|
kind: index.default.oneOf(['primary', 'secondary', 'tertiary']),
|
74
74
|
renderIcon: index.default.oneOfType([index.default.func, index.default.object]),
|
75
|
+
/**@ts-ignore*/
|
75
76
|
onClick: react.Button.propTypes.onClick,
|
76
77
|
text: index.default.string
|
77
78
|
})),
|
@@ -97,6 +98,7 @@ exports.UnauthorizedEmptyState.propTypes = {
|
|
97
98
|
/**
|
98
99
|
* Empty state link object
|
99
100
|
*/
|
101
|
+
/**@ts-ignore*/
|
100
102
|
link: index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Link.propTypes), {}, {
|
101
103
|
text: index.default.oneOfType([index.default.string, index.default.node]),
|
102
104
|
href: index.default.string
|
@@ -20,14 +20,9 @@ var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
|
20
20
|
|
21
21
|
var _excluded = ["accept", "className", "defaultErrorBody", "defaultErrorHeader", "description", "fetchErrorBody", "fetchErrorHeader", "fileDropHeader", "fileDropLabel", "fileUploadLabel", "inputButtonIcon", "inputButtonText", "inputId", "inputLabel", "inputPlaceholder", "invalidFileTypeErrorBody", "invalidFileTypeErrorHeader", "invalidIconDescription", "maxFileSize", "maxFileSizeErrorBody", "maxFileSizeErrorHeader", "onClose", "onRequestSubmit", "open", "portalTarget", "primaryButtonText", "secondaryButtonText", "title"];
|
22
22
|
var componentName = 'ImportModal';
|
23
|
-
|
24
|
-
// Default values for props
|
25
|
-
var defaults = {
|
26
|
-
accept: Object.freeze([])
|
27
|
-
};
|
28
23
|
exports.ImportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
29
24
|
var _ref$accept = _ref.accept,
|
30
|
-
accept = _ref$accept === void 0 ?
|
25
|
+
accept = _ref$accept === void 0 ? [] : _ref$accept,
|
31
26
|
className = _ref.className,
|
32
27
|
defaultErrorBody = _ref.defaultErrorBody,
|
33
28
|
defaultErrorHeader = _ref.defaultErrorHeader,
|
@@ -224,7 +219,7 @@ exports.ImportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
224
219
|
className: "".concat(blockClass, "__input-group")
|
225
220
|
}, /*#__PURE__*/React.createElement(react.TextInput, {
|
226
221
|
labelText: "",
|
227
|
-
id: inputId,
|
222
|
+
id: inputId || '',
|
228
223
|
onChange: inputHandler,
|
229
224
|
placeholder: inputPlaceholder,
|
230
225
|
value: importUrl,
|
@@ -239,7 +234,7 @@ exports.ImportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
239
234
|
return /*#__PURE__*/React.createElement(icons.Add, _rollupPluginBabelHelpers.extends({
|
240
235
|
size: 20
|
241
236
|
}, props));
|
242
|
-
} :
|
237
|
+
} : undefined
|
243
238
|
}, inputButtonText)), /*#__PURE__*/React.createElement("div", {
|
244
239
|
className: "".concat(carbonPrefix, "--file-container ").concat(blockClass, "__file-container")
|
245
240
|
}, hasFiles && /*#__PURE__*/React.createElement("p", {
|
@@ -20,4 +20,4 @@ export interface InlineTipButtonProps {
|
|
20
20
|
*/
|
21
21
|
export declare let InlineTipButton: React.ForwardRefExoticComponent<InlineTipButtonProps & {
|
22
22
|
children?: React.ReactNode;
|
23
|
-
} & React.RefAttributes<
|
23
|
+
} & React.RefAttributes<ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>>>;
|
@@ -122,7 +122,7 @@ type PageActionProps = {
|
|
122
122
|
* - maxWidth: maximum number of pixels the content will grow to
|
123
123
|
* Carbon Button API https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
|
124
124
|
*/
|
125
|
-
pageActions: ButtonProps[] | PageAction;
|
125
|
+
pageActions: ButtonProps<React.ElementType>[] | PageAction;
|
126
126
|
/**
|
127
127
|
* When there is insufficient space to display all of hte page actions inline a dropdown button menu is shown,
|
128
128
|
* containing the page actions. This label is used as the display content of the dropdown button menu.
|
@@ -225,7 +225,7 @@ interface PageHeaderBaseProps extends PropsWithChildren {
|
|
225
225
|
* Content for the navigation area in the PageHeader. Should
|
226
226
|
* be a React element that is normally a Carbon Tabs component. Optional.
|
227
227
|
*/
|
228
|
-
navigation?:
|
228
|
+
navigation?: ReactNode;
|
229
229
|
/**
|
230
230
|
* class name applied to the page actions overflow options
|
231
231
|
*/
|
@@ -308,7 +308,7 @@ exports.PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
308
308
|
// Determines the appropriate header background opacity based on the header config/height/scroll and the withoutBackground setting
|
309
309
|
var result = withoutBackground ? 0 : 1;
|
310
310
|
if (!result && metrics !== null && metrics !== void 0 && metrics.headerHeight && metrics.headerHeight > 0 && (breadcrumbs || actionBarItems || tags || navigation)) {
|
311
|
-
var startAddingAt = parseFloat(layout.
|
311
|
+
var startAddingAt = parseFloat("".concat(layout.spacing[9])) * parseInt("".concat(layout.baseFontSize));
|
312
312
|
var scrollRemaining = metrics.headerHeight - scrollYValue;
|
313
313
|
|
314
314
|
/* don't know how to test resize */
|
@@ -534,7 +534,9 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
534
534
|
/**@ts-ignore */
|
535
535
|
actionBarItems: index.default.arrayOf(index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, propsHelper.prepareProps(react.Button.propTypes, ['kind', 'size', 'tooltipPosition', 'tooltipAlignment'])), {}, {
|
536
536
|
iconDescription: index.default.string.isRequired,
|
537
|
+
/**@ts-ignore*/
|
537
538
|
onClick: react.Button.propTypes.onClick,
|
539
|
+
/**@ts-ignore*/
|
538
540
|
renderIcon: react.Button.propTypes.renderIcon.isRequired
|
539
541
|
}))),
|
540
542
|
/**
|
@@ -717,6 +719,7 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
717
719
|
/**@ts-ignore */
|
718
720
|
pageActions: index.default.oneOfType([index.default.arrayOf(index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
|
719
721
|
key: index.default.string.isRequired,
|
722
|
+
/**@ts-ignore*/
|
720
723
|
kind: react.Button.propTypes.kind,
|
721
724
|
label: index.default.node,
|
722
725
|
onClick: index.default.func
|
@@ -138,7 +138,7 @@ exports.SearchBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
138
138
|
className: "".concat(blockClass, "__input"),
|
139
139
|
closeButtonLabelText: clearButtonLabelText,
|
140
140
|
labelText: labelText,
|
141
|
-
name:
|
141
|
+
name: 'search-input',
|
142
142
|
onChange: handleInputChange,
|
143
143
|
placeholder: placeholderText,
|
144
144
|
value: text,
|
@@ -11,7 +11,7 @@ type SidePanelBaseProps = {
|
|
11
11
|
/**
|
12
12
|
* Sets the action toolbar buttons
|
13
13
|
*/
|
14
|
-
actionToolbarButtons?: ButtonProps<
|
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<
|
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?:
|
10
|
+
overflowAlign?: PopoverAlignment;
|
9
11
|
overflowTags: TagOverflowItem[];
|
10
12
|
overflowType?: string;
|
11
13
|
popoverOpen?: boolean;
|
@@ -70,7 +70,7 @@ var TagOverflowPopover = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
70
70
|
dropShadow: true,
|
71
71
|
highContrast: true,
|
72
72
|
onKeyDown: handleEscKeyPress,
|
73
|
-
open: popoverOpen
|
73
|
+
open: popoverOpen || false
|
74
74
|
}, /*#__PURE__*/React.createElement(react.OperationalTag, {
|
75
75
|
onClick: function onClick() {
|
76
76
|
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?:
|
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.
|
@@ -109,6 +109,7 @@ exports.Tearsheet.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
109
109
|
label: index.default.string,
|
110
110
|
loading: index.default.bool,
|
111
111
|
// we duplicate this Button prop to improve the DocGen here
|
112
|
+
/**@ts-ignore*/
|
112
113
|
onClick: react.Button.propTypes.onClick
|
113
114
|
})))]),
|
114
115
|
/**
|
@@ -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<
|
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.
|
@@ -94,6 +94,7 @@ exports.TearsheetNarrow.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
94
94
|
label: index.default.string,
|
95
95
|
loading: index.default.bool,
|
96
96
|
// we duplicate this Button prop to improve the DocGen here
|
97
|
+
/**@ts-ignore*/
|
97
98
|
onClick: react.Button.propTypes.onClick
|
98
99
|
})))]),
|
99
100
|
/**
|
@@ -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 {
|
9
|
+
import { TearsheetAction } from './Tearsheet';
|
11
10
|
interface TearsheetShellProps extends PropsWithChildren {
|
12
|
-
actions?:
|
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.
|
@@ -24,7 +24,6 @@ var useFocus = require('../../global/js/hooks/useFocus.js');
|
|
24
24
|
var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
|
25
25
|
|
26
26
|
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"];
|
27
|
-
|
28
27
|
// The block part of our conventional BEM class names (bc__E--M).
|
29
28
|
var bc = "".concat(settings.pkg.prefix, "--tearsheet");
|
30
29
|
var componentName = 'TearsheetShell';
|
@@ -1,16 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
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) =>
|
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?:
|
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 ?
|
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 = {
|
@@ -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
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.43.2-canary.
|
4
|
+
"version": "2.43.2-canary.325+5bd953de3",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
121
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "5bd953de33d856b791692b9302a424dc6d10d6a1"
|
124
124
|
}
|