@carbon/ibm-products 2.53.0 → 2.54.0-canary.1
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/css/index-full-carbon.css +1700 -4375
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +8 -0
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +996 -2631
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +92 -44
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +3 -1
- package/es/components/APIKeyModal/APIKeyDownloader.js +10 -3
- package/es/components/APIKeyModal/APIKeyModal.js +47 -7
- package/es/components/APIKeyModal/APIKeyModal.types.d.ts +9 -0
- package/es/components/ActionBar/ActionBar.d.ts +2 -1
- 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/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +11 -3
- package/es/components/Checklist/Checklist.js +2 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -2
- 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/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +3 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -2
- package/es/components/Datagrid/types/index.d.ts +3 -3
- package/es/components/EditInPlace/EditInPlace.js +1 -0
- 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/Guidebanner/Guidebanner.js +1 -1
- 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/InterstitialScreen/InterstitialScreen.js +2 -2
- package/es/components/Nav/NavList.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +2 -1
- package/es/components/PageHeader/PageHeader.d.ts +9 -5
- package/es/components/PageHeader/PageHeader.js +9 -4
- 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 +4 -3
- package/es/components/TruncatedList/TruncatedList.d.ts +1 -1
- package/es/components/UserAvatar/UserAvatar.d.ts +1 -1
- package/es/components/UserAvatar/UserAvatar.js +4 -5
- 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/es/node_modules/@carbon/icons-react/es/generated/{bucket-2.js → bucket-3.js} +963 -1037
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +937 -885
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +3 -1
- package/lib/components/APIKeyModal/APIKeyDownloader.js +10 -3
- package/lib/components/APIKeyModal/APIKeyModal.js +46 -6
- package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +9 -0
- package/lib/components/ActionBar/ActionBar.d.ts +2 -1
- 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/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +11 -3
- package/lib/components/Checklist/Checklist.js +2 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -2
- 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/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +3 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -2
- package/lib/components/Datagrid/types/index.d.ts +3 -3
- package/lib/components/EditInPlace/EditInPlace.js +1 -0
- 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/Guidebanner/Guidebanner.js +1 -1
- 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/InterstitialScreen/InterstitialScreen.js +2 -2
- package/lib/components/Nav/NavList.js +2 -2
- package/lib/components/NotificationsPanel/NotificationsPanel.js +2 -1
- package/lib/components/PageHeader/PageHeader.d.ts +9 -5
- package/lib/components/PageHeader/PageHeader.js +8 -3
- 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 +4 -3
- package/lib/components/TruncatedList/TruncatedList.d.ts +1 -1
- package/lib/components/UserAvatar/UserAvatar.d.ts +1 -1
- package/lib/components/UserAvatar/UserAvatar.js +4 -5
- 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/lib/node_modules/@carbon/icons-react/es/generated/{bucket-2.js → bucket-3.js} +1078 -1152
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +980 -928
- package/package.json +11 -11
- package/scss/components/EditFullPage/_index.scss +1 -1
- package/scss/components/EditTearsheet/_index.scss +1 -1
- package/scss/components/EditTearsheetNarrow/_index.scss +1 -1
- package/scss/components/EditUpdateCards/_edit-update-cards.scss +3 -3
- package/scss/components/UserAvatar/_carbon-imports.scss +1 -0
- package/scss/components/UserAvatar/_user-avatar.scss +4 -0
- package/telemetry.yml +5 -1
@@ -19,13 +19,14 @@ var RowSizeRadioGroup = require('./RowSizeRadioGroup.js');
|
|
19
19
|
var settings = require('../../../../../settings.js');
|
20
20
|
|
21
21
|
var _Settings;
|
22
|
-
var _excluded = ["align", "legendText"];
|
22
|
+
var _excluded = ["align", "legendText", "autoAlign"];
|
23
23
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid__row-size");
|
24
24
|
var RowSizeDropdown = function RowSizeDropdown(_ref) {
|
25
25
|
var _ref$align = _ref.align,
|
26
26
|
align = _ref$align === void 0 ? 'bottom-right' : _ref$align,
|
27
27
|
_ref$legendText = _ref.legendText,
|
28
28
|
legendText = _ref$legendText === void 0 ? 'Row settings' : _ref$legendText,
|
29
|
+
autoAlign = _ref.autoAlign,
|
29
30
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
30
31
|
var radioGroupRef = React.useRef(undefined);
|
31
32
|
var _React$useState = React.useState(false),
|
@@ -65,7 +66,8 @@ var RowSizeDropdown = function RowSizeDropdown(_ref) {
|
|
65
66
|
onRequestClose: onCloseHandler,
|
66
67
|
className: "".concat(blockClass, "-options-container"),
|
67
68
|
onKeyDown: onKeyHandler,
|
68
|
-
onBlur: onBlurHandler
|
69
|
+
onBlur: onBlurHandler,
|
70
|
+
autoAlign: autoAlign
|
69
71
|
}, /*#__PURE__*/React.createElement(react.IconButton, {
|
70
72
|
align: align,
|
71
73
|
kind: "ghost",
|
@@ -82,6 +84,7 @@ var RowSizeDropdown = function RowSizeDropdown(_ref) {
|
|
82
84
|
};
|
83
85
|
RowSizeDropdown.propTypes = {
|
84
86
|
align: react.IconButton.propTypes.align,
|
87
|
+
autoAlign: index.default.bool,
|
85
88
|
datagridName: index.default.string,
|
86
89
|
legendText: index.default.string,
|
87
90
|
light: index.default.bool,
|
@@ -155,7 +155,7 @@ export interface RowAction {
|
|
155
155
|
icon?: ComponentType | FunctionComponent;
|
156
156
|
align?: React.ComponentProps<typeof IconButton>['align'];
|
157
157
|
shouldHideMenuItem?: (...args: any[]) => void;
|
158
|
-
shouldDisableMenuItem?: (...args: any[]) =>
|
158
|
+
shouldDisableMenuItem?: (...args: any[]) => boolean;
|
159
159
|
disabled?: boolean;
|
160
160
|
onClick?: (...args: any[]) => void;
|
161
161
|
}
|
@@ -197,7 +197,7 @@ export interface DataGridState<T extends object = any> extends TableCommonProps,
|
|
197
197
|
emptyStateAction?: {
|
198
198
|
kind?: 'primary' | 'secondary' | 'tertiary';
|
199
199
|
renderIcon?: CarbonIconType;
|
200
|
-
onClick?: ButtonProps<
|
200
|
+
onClick?: ButtonProps<React.ElementType>['onClick'];
|
201
201
|
text?: string;
|
202
202
|
};
|
203
203
|
emptyStateLink?: {
|
@@ -221,7 +221,7 @@ export interface DataGridState<T extends object = any> extends TableCommonProps,
|
|
221
221
|
allPageRowsLabel?: string | object;
|
222
222
|
allRowsLabel?: string | object;
|
223
223
|
onSelectAllRows?: (val?: boolean) => void;
|
224
|
-
toolbarBatchActions?: ButtonProps<
|
224
|
+
toolbarBatchActions?: ButtonProps<React.ElementType>[];
|
225
225
|
setGlobalFilter?: (filterValue: FilterValue) => void;
|
226
226
|
batchActionMenuButtonLabel?: string;
|
227
227
|
translateWithIdBatchActions?: TableBatchActionsProps['translateWithId'];
|
@@ -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
|
@@ -146,7 +146,7 @@ exports.Guidebanner = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
146
146
|
})))))), onClose && /*#__PURE__*/React.createElement("span", {
|
147
147
|
className: "".concat(blockClass, "__close-button")
|
148
148
|
}, /*#__PURE__*/React.createElement(react.IconButton, {
|
149
|
-
align: "bottom-
|
149
|
+
align: "bottom-end",
|
150
150
|
kind: "ghost",
|
151
151
|
label: closeIconDescription,
|
152
152
|
onClick: onClose,
|
@@ -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>>>>;
|
@@ -129,8 +129,8 @@ exports.InterstitialScreen = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
129
129
|
onClose();
|
130
130
|
}, [onClose]);
|
131
131
|
var scrollBodyToTop = function scrollBodyToTop() {
|
132
|
-
var _bodyScrollRef$curren;
|
133
|
-
(_bodyScrollRef$curren = bodyScrollRef.current) === null || _bodyScrollRef$curren === void 0 || _bodyScrollRef$curren.scroll({
|
132
|
+
var _bodyScrollRef$curren, _bodyScrollRef$curren2;
|
133
|
+
(_bodyScrollRef$curren = bodyScrollRef.current) === null || _bodyScrollRef$curren === void 0 || (_bodyScrollRef$curren2 = _bodyScrollRef$curren.scroll) === null || _bodyScrollRef$curren2 === void 0 || _bodyScrollRef$curren2.call(_bodyScrollRef$curren, {
|
134
134
|
top: 0,
|
135
135
|
behavior: 'smooth'
|
136
136
|
});
|
@@ -15,7 +15,7 @@ var cx = require('classnames');
|
|
15
15
|
var index = require('../../_virtual/index.js');
|
16
16
|
var NavItem = require('./NavItem.js');
|
17
17
|
var settings = require('../../settings.js');
|
18
|
-
var
|
18
|
+
var bucket3 = require('../../node_modules/@carbon/icons-react/es/generated/bucket-3.js');
|
19
19
|
|
20
20
|
var componentName = 'NavList';
|
21
21
|
var blockClass = "".concat(settings.pkg.prefix, "--nav-list");
|
@@ -133,7 +133,7 @@ exports.NavList = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
133
133
|
src: icon
|
134
134
|
}), /*#__PURE__*/React.createElement("div", {
|
135
135
|
className: "".concat(NavItem.blockClass, "__content")
|
136
|
-
}, title), /*#__PURE__*/React.createElement(
|
136
|
+
}, title), /*#__PURE__*/React.createElement(bucket3.ChevronDown, {
|
137
137
|
className: "".concat(blockClass, "__icon")
|
138
138
|
})), /*#__PURE__*/React.createElement("ul", {
|
139
139
|
"aria-label": title,
|
@@ -461,7 +461,8 @@ exports.NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
461
461
|
iconDescription: settingsIconDescription,
|
462
462
|
onClick: function onClick() {
|
463
463
|
return onSettingsClick();
|
464
|
-
}
|
464
|
+
},
|
465
|
+
hasIconOnly: true
|
465
466
|
})) : null)), /*#__PURE__*/React.createElement("button", {
|
466
467
|
type: "button",
|
467
468
|
className: "".concat(carbonPrefix, "--visually-hidden"),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference path="../../../src/custom-typings/index.d.ts" />
|
2
|
-
import { Tag } from '@carbon/react';
|
3
|
-
import {
|
2
|
+
import { Tag, ButtonProps, PopoverAlignment } from '@carbon/react';
|
3
|
+
import { TagProps } from '@carbon/react/lib/components/Tag/Tag';
|
4
4
|
import React, { PropsWithChildren, ReactNode } from 'react';
|
5
5
|
interface ActionBarItem extends ButtonProps {
|
6
6
|
iconDescription: string;
|
@@ -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.
|
@@ -134,7 +134,7 @@ type PageActionProps = {
|
|
134
134
|
pageActions?: never;
|
135
135
|
pageActionsOverflowLabel?: ReactNode;
|
136
136
|
};
|
137
|
-
interface Tag extends TagProps {
|
137
|
+
interface Tag extends TagProps<React.ElementType> {
|
138
138
|
label: string;
|
139
139
|
}
|
140
140
|
interface TitleIcon {
|
@@ -189,6 +189,10 @@ interface PageHeaderBaseProps extends PropsWithChildren {
|
|
189
189
|
* align breadcrumb overflow tooltip
|
190
190
|
*/
|
191
191
|
breadcrumbOverflowTooltipAlign?: PopoverAlignment;
|
192
|
+
/**
|
193
|
+
* Label for the Breadcrumb component
|
194
|
+
*/
|
195
|
+
breadcrumbLabel?: string;
|
192
196
|
/**
|
193
197
|
* Specifies class(es) to be applied to the top-level PageHeader node.
|
194
198
|
* Optional.
|
@@ -225,7 +229,7 @@ interface PageHeaderBaseProps extends PropsWithChildren {
|
|
225
229
|
* Content for the navigation area in the PageHeader. Should
|
226
230
|
* be a React element that is normally a Carbon Tabs component. Optional.
|
227
231
|
*/
|
228
|
-
navigation?:
|
232
|
+
navigation?: ReactNode;
|
229
233
|
/**
|
230
234
|
* class name applied to the page actions overflow options
|
231
235
|
*/
|
@@ -27,7 +27,7 @@ var BreadcrumbWithOverflow = require('../BreadcrumbWithOverflow/BreadcrumbWithOv
|
|
27
27
|
var ActionBar = require('../ActionBar/ActionBar.js');
|
28
28
|
var ButtonSetWithOverflow = require('../ButtonSetWithOverflow/ButtonSetWithOverflow.js');
|
29
29
|
|
30
|
-
var _excluded = ["actionBarItems", "actionBarMenuOptionsClass", "actionBarOverflowAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTitle", "hasBackgroundAlways", "breadcrumbOverflowAriaLabel", "breadcrumbs", "children", "className", "collapseHeader", "collapseHeaderIconDescription", "collapseTitle", "disableBreadcrumbScroll", "enableBreadcrumbScroll", "expandHeaderIconDescription", "fullWidthGrid", "hasCollapseHeaderToggle", "narrowGrid", "navigation", "pageActions", "pageActionsOverflowLabel", "pageActionsMenuOptionsClass", "showAllTagsLabel", "subtitle", "tags", "title", "withoutBackground", "breadcrumbOverflowTooltipAlign"];
|
30
|
+
var _excluded = ["actionBarItems", "actionBarMenuOptionsClass", "actionBarOverflowAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTitle", "hasBackgroundAlways", "breadcrumbOverflowAriaLabel", "breadcrumbLabel", "breadcrumbs", "children", "className", "collapseHeader", "collapseHeaderIconDescription", "collapseTitle", "disableBreadcrumbScroll", "enableBreadcrumbScroll", "expandHeaderIconDescription", "fullWidthGrid", "hasCollapseHeaderToggle", "narrowGrid", "navigation", "pageActions", "pageActionsOverflowLabel", "pageActionsMenuOptionsClass", "showAllTagsLabel", "subtitle", "tags", "title", "withoutBackground", "breadcrumbOverflowTooltipAlign"];
|
31
31
|
var componentName = 'PageHeader';
|
32
32
|
settings.pkg._silenceWarnings(true);
|
33
33
|
settings.pkg.component.ActionBar = true;
|
@@ -48,6 +48,7 @@ exports.PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
48
48
|
allTagsModalTitle = _ref.allTagsModalTitle,
|
49
49
|
deprecated_hasBackgroundAlways = _ref.hasBackgroundAlways,
|
50
50
|
breadcrumbOverflowAriaLabel = _ref.breadcrumbOverflowAriaLabel,
|
51
|
+
breadcrumbLabel = _ref.breadcrumbLabel,
|
51
52
|
breadcrumbs = _ref.breadcrumbs,
|
52
53
|
children = _ref.children,
|
53
54
|
className = _ref.className,
|
@@ -308,7 +309,7 @@ exports.PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
308
309
|
// Determines the appropriate header background opacity based on the header config/height/scroll and the withoutBackground setting
|
309
310
|
var result = withoutBackground ? 0 : 1;
|
310
311
|
if (!result && metrics !== null && metrics !== void 0 && metrics.headerHeight && metrics.headerHeight > 0 && (breadcrumbs || actionBarItems || tags || navigation)) {
|
311
|
-
var startAddingAt = parseFloat(layout.
|
312
|
+
var startAddingAt = parseFloat("".concat(layout.spacing[9])) * parseInt("".concat(layout.baseFontSize));
|
312
313
|
var scrollRemaining = metrics.headerHeight - scrollYValue;
|
313
314
|
|
314
315
|
/* don't know how to test resize */
|
@@ -387,7 +388,8 @@ exports.PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
387
388
|
overflowAriaLabel: breadcrumbOverflowAriaLabel,
|
388
389
|
breadcrumbs: displayedBreadcrumbs,
|
389
390
|
overflowTooltipAlign: breadcrumbOverflowTooltipAlign,
|
390
|
-
maxVisible: undefined
|
391
|
+
maxVisible: undefined,
|
392
|
+
label: breadcrumbLabel
|
391
393
|
})), /*#__PURE__*/React.createElement(react.Column, {
|
392
394
|
className: cx(["".concat(PageHeaderUtils.blockClass, "__action-bar-column ").concat(PageHeaderUtils.blockClass, "__action-bar-column--background"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__action-bar-column--has-page-actions"), pageActions), "".concat(PageHeaderUtils.blockClass, "__action-bar-column--influenced-by-collapse-button"), spaceForCollapseButton)])
|
393
395
|
}, /*#__PURE__*/React.createElement("div", {
|
@@ -534,7 +536,9 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
534
536
|
/**@ts-ignore */
|
535
537
|
actionBarItems: index.default.arrayOf(index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, propsHelper.prepareProps(react.Button.propTypes, ['kind', 'size', 'tooltipPosition', 'tooltipAlignment'])), {}, {
|
536
538
|
iconDescription: index.default.string.isRequired,
|
539
|
+
/**@ts-ignore*/
|
537
540
|
onClick: react.Button.propTypes.onClick,
|
541
|
+
/**@ts-ignore*/
|
538
542
|
renderIcon: react.Button.propTypes.renderIcon.isRequired
|
539
543
|
}))),
|
540
544
|
/**
|
@@ -717,6 +721,7 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
717
721
|
/**@ts-ignore */
|
718
722
|
pageActions: index.default.oneOfType([index.default.arrayOf(index.default.shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
|
719
723
|
key: index.default.string.isRequired,
|
724
|
+
/**@ts-ignore*/
|
720
725
|
kind: react.Button.propTypes.kind,
|
721
726
|
label: index.default.node,
|
722
727
|
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';
|