@carbon/ibm-products 2.84.0 → 2.85.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.
- package/css/index-full-carbon.css +18 -13
- 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 +18 -13
- 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 +18 -13
- 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 +18 -13
- 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/Coachmark/next/Coachmark/ContentHeader.js +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +12 -1
- package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -0
- package/es/components/CreateTearsheet/CreateTearsheet.js +3 -0
- package/es/components/CreateTearsheet/CreateTearsheetStep.d.ts +4 -0
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +7 -1
- package/es/components/EditInPlace/EditInPlace.d.ts +12 -1
- package/es/components/EditInPlace/EditInPlace.js +52 -31
- package/es/components/ImportModal/ImportModal.d.ts +5 -1
- package/es/components/ImportModal/ImportModal.js +12 -6
- package/es/components/PageHeader/next/PageHeader.d.ts +15 -238
- package/es/components/PageHeader/next/PageHeader.js +25 -637
- package/es/components/PageHeader/next/PageHeaderBreadcrumbBar.d.ts +41 -0
- package/es/components/PageHeader/next/PageHeaderBreadcrumbBar.js +74 -0
- package/es/components/PageHeader/next/PageHeaderBreadcrumbOverflow.d.ts +12 -0
- package/es/components/PageHeader/next/PageHeaderBreadcrumbOverflow.js +82 -0
- package/es/components/PageHeader/next/PageHeaderContent.d.ts +39 -0
- package/es/components/PageHeader/next/PageHeaderContent.js +129 -0
- package/es/components/PageHeader/next/PageHeaderContentPageActions.d.ts +52 -0
- package/es/components/PageHeader/next/PageHeaderContentPageActions.js +126 -0
- package/es/components/PageHeader/next/PageHeaderContentText.d.ts +44 -0
- package/es/components/PageHeader/next/PageHeaderContentText.js +54 -0
- package/es/components/PageHeader/next/PageHeaderHeroImage.d.ts +36 -0
- package/es/components/PageHeader/next/PageHeaderHeroImage.js +62 -0
- package/es/components/PageHeader/next/PageHeaderScrollButton.d.ts +13 -0
- package/es/components/PageHeader/next/PageHeaderScrollButton.js +73 -0
- package/es/components/PageHeader/next/PageHeaderTabBar.d.ts +19 -0
- package/es/components/PageHeader/next/PageHeaderTabBar.js +66 -0
- package/es/components/PageHeader/next/PageHeaderTagOverflow.d.ts +13 -0
- package/es/components/PageHeader/next/PageHeaderTagOverflow.js +68 -0
- package/es/components/PageHeader/next/PageHeaderTitleBreadcrumb.d.ts +9 -0
- package/es/components/PageHeader/next/PageHeaderTitleBreadcrumb.js +43 -0
- package/es/components/PageHeader/next/index.d.ts +3 -2
- package/es/components/PageHeader/next/index.js +11 -1
- package/es/global/js/hooks/useCreateComponentStepChange.d.ts +2 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +3 -2
- package/es/global/js/hooks/usePortalTarget.js +1 -1
- package/es/global/js/utils/makeDraggable/makeDraggable.js +22 -13
- package/lib/components/Coachmark/next/Coachmark/ContentHeader.js +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +12 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -0
- package/lib/components/CreateTearsheet/CreateTearsheet.js +3 -0
- package/lib/components/CreateTearsheet/CreateTearsheetStep.d.ts +4 -0
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +7 -1
- package/lib/components/EditInPlace/EditInPlace.d.ts +12 -1
- package/lib/components/EditInPlace/EditInPlace.js +50 -29
- package/lib/components/ImportModal/ImportModal.d.ts +5 -1
- package/lib/components/ImportModal/ImportModal.js +12 -6
- package/lib/components/PageHeader/next/PageHeader.d.ts +15 -238
- package/lib/components/PageHeader/next/PageHeader.js +42 -654
- package/lib/components/PageHeader/next/PageHeaderBreadcrumbBar.d.ts +41 -0
- package/lib/components/PageHeader/next/PageHeaderBreadcrumbBar.js +76 -0
- package/lib/components/PageHeader/next/PageHeaderBreadcrumbOverflow.d.ts +12 -0
- package/lib/components/PageHeader/next/PageHeaderBreadcrumbOverflow.js +84 -0
- package/lib/components/PageHeader/next/PageHeaderContent.d.ts +39 -0
- package/lib/components/PageHeader/next/PageHeaderContent.js +131 -0
- package/lib/components/PageHeader/next/PageHeaderContentPageActions.d.ts +52 -0
- package/lib/components/PageHeader/next/PageHeaderContentPageActions.js +128 -0
- package/lib/components/PageHeader/next/PageHeaderContentText.d.ts +44 -0
- package/lib/components/PageHeader/next/PageHeaderContentText.js +56 -0
- package/lib/components/PageHeader/next/PageHeaderHeroImage.d.ts +36 -0
- package/lib/components/PageHeader/next/PageHeaderHeroImage.js +64 -0
- package/lib/components/PageHeader/next/PageHeaderScrollButton.d.ts +13 -0
- package/lib/components/PageHeader/next/PageHeaderScrollButton.js +75 -0
- package/lib/components/PageHeader/next/PageHeaderTabBar.d.ts +19 -0
- package/lib/components/PageHeader/next/PageHeaderTabBar.js +68 -0
- package/lib/components/PageHeader/next/PageHeaderTagOverflow.d.ts +13 -0
- package/lib/components/PageHeader/next/PageHeaderTagOverflow.js +70 -0
- package/lib/components/PageHeader/next/PageHeaderTitleBreadcrumb.d.ts +9 -0
- package/lib/components/PageHeader/next/PageHeaderTitleBreadcrumb.js +45 -0
- package/lib/components/PageHeader/next/index.d.ts +3 -2
- package/lib/components/PageHeader/next/index.js +20 -10
- package/lib/global/js/hooks/useCreateComponentStepChange.d.ts +2 -1
- package/lib/global/js/hooks/useCreateComponentStepChange.js +3 -2
- package/lib/global/js/hooks/usePortalTarget.js +1 -1
- package/lib/global/js/utils/makeDraggable/makeDraggable.js +22 -13
- package/package.json +7 -7
- package/scss/components/Datagrid/_datagrid.scss +7 -10
- package/scss/components/EditInPlace/_edit-in-place.scss +11 -3
- package/scss/components/PageHeader/_page-header.scss +2 -1
- package/telemetry.yml +13 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React, { PropsWithChildren } from 'react';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
8
9
|
type Size = 'sm' | 'md' | 'lg';
|
|
9
10
|
type AlignPropType = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right';
|
|
10
11
|
type Shape = {
|
|
@@ -68,13 +69,23 @@ export interface EditInplaceProps extends PropsWithChildren {
|
|
|
68
69
|
/**
|
|
69
70
|
* determines if the input is in readOnly mode
|
|
70
71
|
*/
|
|
72
|
+
readOnly: PropTypes.bool;
|
|
71
73
|
/**
|
|
72
|
-
* label for the edit button that displays when in read only mode
|
|
74
|
+
* label for the edit off button that displays when in read only mode
|
|
73
75
|
*/
|
|
76
|
+
readOnlyLabel?: PropTypes.string;
|
|
77
|
+
/**
|
|
78
|
+
* text for the toggletip that displays when in read only mode
|
|
79
|
+
*/
|
|
80
|
+
readOnlyToggleTipText?: string;
|
|
74
81
|
/**
|
|
75
82
|
* label for save button
|
|
76
83
|
*/
|
|
77
84
|
saveLabel: string;
|
|
85
|
+
/**
|
|
86
|
+
* alignment for the toggletip that displays when in read only mode
|
|
87
|
+
*/
|
|
88
|
+
toggleTipAlignment?: AlignPropType;
|
|
78
89
|
/**
|
|
79
90
|
* vertical size of control
|
|
80
91
|
*/
|
|
@@ -16,7 +16,7 @@ var index = require('../../_virtual/index.js');
|
|
|
16
16
|
var cx = require('classnames');
|
|
17
17
|
var devtools = require('../../global/js/utils/devtools.js');
|
|
18
18
|
|
|
19
|
-
var _Close, _Checkmark, _Edit;
|
|
19
|
+
var _EditOff, _Close, _Checkmark, _Edit;
|
|
20
20
|
const componentName = 'EditInPlace';
|
|
21
21
|
const blockClass = `${settings.pkg.prefix}--edit-in-place`;
|
|
22
22
|
const defaults = {
|
|
@@ -36,10 +36,12 @@ const EditInPlace = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
36
36
|
onChange,
|
|
37
37
|
onSave,
|
|
38
38
|
onBlur,
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
readOnly,
|
|
40
|
+
readOnlyLabel,
|
|
41
|
+
readOnlyToggleTipText,
|
|
41
42
|
saveLabel,
|
|
42
43
|
size = 'sm',
|
|
44
|
+
toggleTipAlignment,
|
|
43
45
|
tooltipAlignment,
|
|
44
46
|
value,
|
|
45
47
|
placeholder,
|
|
@@ -79,10 +81,6 @@ const EditInPlace = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
79
81
|
onChange(target.value);
|
|
80
82
|
};
|
|
81
83
|
const onFocusHandler = e => {
|
|
82
|
-
// if (readOnly) {
|
|
83
|
-
// return;
|
|
84
|
-
// }
|
|
85
|
-
|
|
86
84
|
if (!isTargetingChild(e)) {
|
|
87
85
|
inputRef.current?.focus();
|
|
88
86
|
setFocused(true);
|
|
@@ -145,37 +143,49 @@ const EditInPlace = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
145
143
|
}
|
|
146
144
|
escaping.current = false;
|
|
147
145
|
};
|
|
148
|
-
|
|
149
|
-
ref: ref
|
|
150
|
-
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement("div", {
|
|
151
|
-
className: cx(blockClass, `${blockClass}--${size}`, {
|
|
152
|
-
[`${blockClass}--focused`]: focused,
|
|
153
|
-
[`${blockClass}--invalid`]: invalid,
|
|
154
|
-
[`${blockClass}--inherit-type`]: inheritTypography,
|
|
155
|
-
[`${blockClass}--overflows`]: inputRef.current && inputRef.current.scrollWidth > inputRef.current.offsetWidth
|
|
156
|
-
// [`${blockClass}--readonly`]: readOnly,
|
|
157
|
-
}),
|
|
158
|
-
onFocus: onFocusHandler,
|
|
159
|
-
onBlur: onBlurHandler
|
|
160
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
146
|
+
const inputElement = /*#__PURE__*/React.createElement("input", {
|
|
161
147
|
id: id,
|
|
162
148
|
className: cx(`${blockClass}__text-input`, `${carbonPrefix}--text-input`, `${carbonPrefix}--text-input--${size}`),
|
|
163
149
|
type: "text",
|
|
164
150
|
placeholder: placeholder,
|
|
165
151
|
value: value,
|
|
166
152
|
onChange: onChangeHandler,
|
|
167
|
-
ref: inputRef
|
|
168
|
-
|
|
169
|
-
,
|
|
153
|
+
ref: inputRef,
|
|
154
|
+
readOnly: readOnly,
|
|
170
155
|
onKeyDown: onKeyHandler,
|
|
171
156
|
"aria-label": labelText,
|
|
172
157
|
"aria-invalid": invalid
|
|
173
|
-
})
|
|
158
|
+
});
|
|
159
|
+
const inputContainer = /*#__PURE__*/React.createElement("div", {
|
|
160
|
+
className: cx(blockClass, `${blockClass}--${size}`, {
|
|
161
|
+
[`${blockClass}--focused`]: focused,
|
|
162
|
+
[`${blockClass}--invalid`]: invalid,
|
|
163
|
+
[`${blockClass}--inherit-type`]: inheritTypography,
|
|
164
|
+
[`${blockClass}--overflows`]: inputRef.current && inputRef.current.scrollWidth > inputRef.current.offsetWidth,
|
|
165
|
+
[`${blockClass}--readonly`]: readOnly
|
|
166
|
+
}),
|
|
167
|
+
onFocus: onFocusHandler,
|
|
168
|
+
onBlur: onBlurHandler
|
|
169
|
+
}, readOnly ? /*#__PURE__*/React.createElement(react.Toggletip, {
|
|
170
|
+
align: toggleTipAlignment,
|
|
171
|
+
className: `${blockClass}__toggletip-wrapper`
|
|
172
|
+
}, /*#__PURE__*/React.createElement(react.ToggletipButton, {
|
|
173
|
+
label: readOnlyLabel || 'Edit off'
|
|
174
|
+
}, inputElement), /*#__PURE__*/React.createElement(react.ToggletipContent, null, /*#__PURE__*/React.createElement("p", null, readOnlyToggleTipText || 'This field is read-only and cannot be edited'))) : inputElement, /*#__PURE__*/React.createElement("div", {
|
|
174
175
|
className: `${blockClass}__toolbar`
|
|
175
176
|
}, invalid && /*#__PURE__*/React.createElement(icons.WarningFilled, {
|
|
176
177
|
size: 16,
|
|
177
178
|
className: `${blockClass}__warning-icon`
|
|
178
|
-
}),
|
|
179
|
+
}), readOnly ? /*#__PURE__*/React.createElement(react.IconButton, {
|
|
180
|
+
className: `${blockClass}__btn-readonly`,
|
|
181
|
+
size: size,
|
|
182
|
+
label: readOnlyLabel || 'Edit off',
|
|
183
|
+
kind: "ghost",
|
|
184
|
+
key: "readonly",
|
|
185
|
+
onClick: onFocusHandler
|
|
186
|
+
}, _EditOff || (_EditOff = /*#__PURE__*/React.createElement(icons.EditOff, {
|
|
187
|
+
size: 16
|
|
188
|
+
}))) : focused ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(react.IconButton, {
|
|
179
189
|
align: tipAlignments.cancel,
|
|
180
190
|
size: size,
|
|
181
191
|
label: cancelLabel,
|
|
@@ -208,7 +218,10 @@ const EditInPlace = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
208
218
|
key: "edit"
|
|
209
219
|
}, _Edit || (_Edit = /*#__PURE__*/React.createElement(icons.Edit, {
|
|
210
220
|
size: 16
|
|
211
|
-
})))))
|
|
221
|
+
})))));
|
|
222
|
+
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
|
223
|
+
ref: ref
|
|
224
|
+
}, devtools.getDevtoolsProps(componentName)), inputContainer, invalid && /*#__PURE__*/React.createElement("p", {
|
|
212
225
|
className: `${blockClass}__warning-text`
|
|
213
226
|
}, invalidText ?? deprecated_invalidLabel));
|
|
214
227
|
});
|
|
@@ -282,11 +295,15 @@ EditInPlace.propTypes = {
|
|
|
282
295
|
/**
|
|
283
296
|
* determines if the input is in readOnly mode
|
|
284
297
|
*/
|
|
285
|
-
|
|
298
|
+
readOnly: index.default.bool,
|
|
299
|
+
/**
|
|
300
|
+
* label for the edit off button that displays when in read only mode
|
|
301
|
+
*/
|
|
302
|
+
readOnlyLabel: index.default.string,
|
|
286
303
|
/**
|
|
287
|
-
*
|
|
304
|
+
* text for the toggletip that displays when in read only mode
|
|
288
305
|
*/
|
|
289
|
-
|
|
306
|
+
readOnlyToggleTipText: index.default.string,
|
|
290
307
|
/**
|
|
291
308
|
* label for save button
|
|
292
309
|
*/
|
|
@@ -295,6 +312,10 @@ EditInPlace.propTypes = {
|
|
|
295
312
|
* vertical size of control
|
|
296
313
|
*/
|
|
297
314
|
size: index.default.oneOf(['sm', 'md', 'lg']),
|
|
315
|
+
/**
|
|
316
|
+
* alignment for the toggletip that displays when in read only mode
|
|
317
|
+
*/
|
|
318
|
+
toggleTipAlignment: alignPropType,
|
|
298
319
|
/**
|
|
299
320
|
* tooltipAlignment from the standard tooltip. Default center.
|
|
300
321
|
*
|
|
@@ -59,6 +59,10 @@ export interface ImportModalProps {
|
|
|
59
59
|
* Label that appears when a file is uploaded to show number of files (1 / 1)
|
|
60
60
|
*/
|
|
61
61
|
fileUploadLabel?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Hide input label
|
|
64
|
+
*/
|
|
65
|
+
hideInputLabel?: boolean;
|
|
62
66
|
/**
|
|
63
67
|
* Button icon for import by url button
|
|
64
68
|
*/
|
|
@@ -74,7 +78,7 @@ export interface ImportModalProps {
|
|
|
74
78
|
/**
|
|
75
79
|
* Header to display above import by url
|
|
76
80
|
*/
|
|
77
|
-
inputLabel
|
|
81
|
+
inputLabel: string;
|
|
78
82
|
/**
|
|
79
83
|
* Placeholder for text input
|
|
80
84
|
*/
|
|
@@ -33,6 +33,7 @@ const ImportModal = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
33
33
|
fileDropHeader,
|
|
34
34
|
fileDropLabel,
|
|
35
35
|
fileUploadLabel,
|
|
36
|
+
hideInputLabel,
|
|
36
37
|
inputButtonIcon,
|
|
37
38
|
inputButtonText,
|
|
38
39
|
inputId,
|
|
@@ -182,18 +183,19 @@ const ImportModal = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
182
183
|
onAddFiles: onAddFile,
|
|
183
184
|
disabled: hasFiles,
|
|
184
185
|
"data-modal-primary-focus": true
|
|
185
|
-
}),
|
|
186
|
-
className: `${blockClass}__label`
|
|
187
|
-
}, inputLabel), /*#__PURE__*/React.createElement("div", {
|
|
186
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
188
187
|
className: `${blockClass}__input-group`
|
|
189
188
|
}, /*#__PURE__*/React.createElement(react.TextInput, {
|
|
190
|
-
labelText: "",
|
|
189
|
+
labelText: /*#__PURE__*/React.createElement("p", {
|
|
190
|
+
className: `${blockClass}__label`
|
|
191
|
+
}, inputLabel),
|
|
191
192
|
id: inputId || '',
|
|
192
193
|
onChange: inputHandler,
|
|
193
194
|
placeholder: inputPlaceholder,
|
|
194
195
|
value: importUrl,
|
|
195
196
|
disabled: hasFiles,
|
|
196
|
-
"aria-label": inputLabel
|
|
197
|
+
"aria-label": inputLabel,
|
|
198
|
+
hideLabel: hideInputLabel
|
|
197
199
|
}), /*#__PURE__*/React.createElement(react.Button, {
|
|
198
200
|
onClick: fetchFile,
|
|
199
201
|
className: `${blockClass}__import-button`,
|
|
@@ -275,6 +277,10 @@ ImportModal.propTypes = {
|
|
|
275
277
|
* Label that appears when a file is uploaded to show number of files (1 / 1)
|
|
276
278
|
*/
|
|
277
279
|
fileUploadLabel: index.default.string,
|
|
280
|
+
/**
|
|
281
|
+
* Hide input label
|
|
282
|
+
*/
|
|
283
|
+
hideInputLabel: index.default.bool,
|
|
278
284
|
/**
|
|
279
285
|
* Button icon for import by url button
|
|
280
286
|
*/
|
|
@@ -290,7 +296,7 @@ ImportModal.propTypes = {
|
|
|
290
296
|
/**
|
|
291
297
|
* Header to display above import by url
|
|
292
298
|
*/
|
|
293
|
-
inputLabel: index.default.string,
|
|
299
|
+
inputLabel: index.default.string.isRequired,
|
|
294
300
|
/**
|
|
295
301
|
* Placeholder for text input
|
|
296
302
|
*/
|
|
@@ -1,226 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2025,
|
|
2
|
+
* Copyright IBM Corp. 2025, 2026
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React
|
|
8
|
-
import {
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { PageHeaderBreadcrumbBar, type PageHeaderBreadcrumbBarProps } from './PageHeaderBreadcrumbBar';
|
|
9
|
+
import { PageHeaderContent, type PageHeaderContentProps } from './PageHeaderContent';
|
|
10
|
+
import { PageHeaderContentPageActions, type PageHeaderContentPageActionsProps } from './PageHeaderContentPageActions';
|
|
11
|
+
import { PageHeaderContentText, type PageHeaderContentTextProps } from './PageHeaderContentText';
|
|
12
|
+
import { PageHeaderHeroImage, type PageHeaderHeroImageProps } from './PageHeaderHeroImage';
|
|
13
|
+
import { PageHeaderTabBar, type PageHeaderTabBarProps } from './PageHeaderTabBar';
|
|
14
|
+
import { PageHeaderTagOverflow, type PageHeaderTagOverflowProps } from './PageHeaderTagOverflow';
|
|
15
|
+
import { PageHeaderScrollButton, type PageHeaderScrollButtonProps } from './PageHeaderScrollButton';
|
|
16
|
+
import { PageHeaderTitleBreadcrumb } from './PageHeaderTitleBreadcrumb';
|
|
17
|
+
import { PageHeaderBreadcrumbOverflow, type PageHeaderBreadcrumbOverflowProps } from './PageHeaderBreadcrumbOverflow';
|
|
9
18
|
/**
|
|
10
19
|
* ----------
|
|
11
20
|
* PageHeader
|
|
12
21
|
* ----------
|
|
13
22
|
*/
|
|
14
|
-
interface PageHeaderProps {
|
|
23
|
+
export interface PageHeaderProps {
|
|
15
24
|
children?: React.ReactNode;
|
|
16
25
|
className?: string;
|
|
17
26
|
}
|
|
18
27
|
declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
/**
|
|
20
|
-
* -----------------------
|
|
21
|
-
* PageHeaderBreadcrumbBar
|
|
22
|
-
* -----------------------
|
|
23
|
-
*/
|
|
24
|
-
interface PageHeaderBreadcrumbBarProps {
|
|
25
|
-
/**
|
|
26
|
-
* `true` by default to render BreadcrumbBar bottom border.
|
|
27
|
-
*/
|
|
28
|
-
border?: boolean;
|
|
29
|
-
children?: React.ReactNode;
|
|
30
|
-
className?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Provide an optional icon to render in front of the PageHeaderContent's title.
|
|
33
|
-
*/
|
|
34
|
-
renderIcon?: ComponentType | FunctionComponent;
|
|
35
|
-
/**
|
|
36
|
-
* The PageHeaderBreadcrumbBar's content actions
|
|
37
|
-
*/
|
|
38
|
-
contentActions?: React.ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* `true` to set content actions flush against page actions
|
|
41
|
-
*/
|
|
42
|
-
contentActionsFlush?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* The PageHeaderContent's page actions
|
|
45
|
-
*/
|
|
46
|
-
pageActions?: React.ReactNode;
|
|
47
|
-
/**
|
|
48
|
-
* `true` to set page actions flush with page
|
|
49
|
-
*/
|
|
50
|
-
pageActionsFlush?: boolean;
|
|
51
|
-
}
|
|
52
|
-
declare const PageHeaderBreadcrumbBar: React.ForwardRefExoticComponent<PageHeaderBreadcrumbBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
-
/**
|
|
54
|
-
* -----------------
|
|
55
|
-
* PageHeaderContent
|
|
56
|
-
* -----------------
|
|
57
|
-
*/
|
|
58
|
-
interface PageHeaderContentProps {
|
|
59
|
-
/**
|
|
60
|
-
* Provide child elements to be rendered inside PageHeaderContent.
|
|
61
|
-
*/
|
|
62
|
-
children?: React.ReactNode;
|
|
63
|
-
/**
|
|
64
|
-
* Specify an optional className to be added to your PageHeaderContent
|
|
65
|
-
*/
|
|
66
|
-
className?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Provide an optional icon to render in front of the PageHeaderContent's title.
|
|
69
|
-
*/
|
|
70
|
-
renderIcon?: ComponentType | FunctionComponent;
|
|
71
|
-
/**
|
|
72
|
-
* The PageHeaderContent's title
|
|
73
|
-
*/
|
|
74
|
-
title: string;
|
|
75
|
-
/**
|
|
76
|
-
* The PageHeaderContent's contextual actions
|
|
77
|
-
*/
|
|
78
|
-
contextualActions?: React.ReactNode;
|
|
79
|
-
/**
|
|
80
|
-
* The PageHeaderContent's page actions
|
|
81
|
-
*/
|
|
82
|
-
pageActions?: React.ReactNode;
|
|
83
|
-
}
|
|
84
|
-
declare const PageHeaderContent: React.ForwardRefExoticComponent<PageHeaderContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
-
/**
|
|
86
|
-
* ----------------
|
|
87
|
-
* PageHeaderContentPageActions
|
|
88
|
-
* ----------------
|
|
89
|
-
*/
|
|
90
|
-
interface PageHeaderContentPageActionsProps {
|
|
91
|
-
/**
|
|
92
|
-
* Provide child elements to be rendered inside PageHeaderContentPageActions.
|
|
93
|
-
*/
|
|
94
|
-
children?: React.ReactNode;
|
|
95
|
-
/**
|
|
96
|
-
* Specify an optional className to be added to your PageHeaderContentPageActions
|
|
97
|
-
*/
|
|
98
|
-
className?: string;
|
|
99
|
-
/**
|
|
100
|
-
* The PageHeaderContent's page actions collapsible Menu button label
|
|
101
|
-
*/
|
|
102
|
-
menuButtonLabel?: string;
|
|
103
|
-
/**
|
|
104
|
-
* The PageHeaderContent's page actions
|
|
105
|
-
*/
|
|
106
|
-
actions?: React.ReactNode;
|
|
107
|
-
}
|
|
108
|
-
declare const PageHeaderContentPageActions: {
|
|
109
|
-
({ className, children, menuButtonLabel, actions, ...other }: PageHeaderContentPageActionsProps): React.JSX.Element;
|
|
110
|
-
displayName: string;
|
|
111
|
-
propTypes: {
|
|
112
|
-
/**
|
|
113
|
-
* The PageHeaderContent's page actions
|
|
114
|
-
*/
|
|
115
|
-
actions: any;
|
|
116
|
-
/**
|
|
117
|
-
* Provide child elements to be rendered inside PageHeaderContentPageActions.
|
|
118
|
-
*/
|
|
119
|
-
children: any;
|
|
120
|
-
/**
|
|
121
|
-
* Specify an optional className to be added to your PageHeaderContentPageActions
|
|
122
|
-
*/
|
|
123
|
-
className: any;
|
|
124
|
-
/**
|
|
125
|
-
* The PageHeaderContent's collapsible Menu button label
|
|
126
|
-
*/
|
|
127
|
-
menuButtonLabel: any;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* ----------------
|
|
132
|
-
* PageHeaderContentText
|
|
133
|
-
* ----------------
|
|
134
|
-
*/
|
|
135
|
-
interface PageHeaderContentTextProps {
|
|
136
|
-
/**
|
|
137
|
-
* Provide child elements to be rendered inside PageHeaderContentText.
|
|
138
|
-
*/
|
|
139
|
-
children?: React.ReactNode;
|
|
140
|
-
/**
|
|
141
|
-
* Specify an optional className to be added to your PageHeaderContentText
|
|
142
|
-
*/
|
|
143
|
-
className?: string;
|
|
144
|
-
/**
|
|
145
|
-
* The PageHeaderContent's subtitle
|
|
146
|
-
*/
|
|
147
|
-
subtitle?: string;
|
|
148
|
-
}
|
|
149
|
-
declare const PageHeaderContentText: {
|
|
150
|
-
({ className, children, subtitle, ...other }: PageHeaderContentTextProps): React.JSX.Element;
|
|
151
|
-
displayName: string;
|
|
152
|
-
propTypes: {
|
|
153
|
-
/**
|
|
154
|
-
* Provide child elements to be rendered inside PageHeaderContentText.
|
|
155
|
-
*/
|
|
156
|
-
children: any;
|
|
157
|
-
/**
|
|
158
|
-
* Specify an optional className to be added to your PageHeaderContentText
|
|
159
|
-
*/
|
|
160
|
-
className: any;
|
|
161
|
-
/**
|
|
162
|
-
* The PageHeaderContent's subtitle
|
|
163
|
-
*/
|
|
164
|
-
subtitle: any;
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
/**
|
|
168
|
-
* ----------------
|
|
169
|
-
* PageHeaderHeroImage
|
|
170
|
-
* ----------------
|
|
171
|
-
*/
|
|
172
|
-
interface PageHeaderHeroImageProps {
|
|
173
|
-
/**
|
|
174
|
-
* Provide child elements to be rendered inside PageHeaderHeroImage.
|
|
175
|
-
*/
|
|
176
|
-
children?: React.ReactNode;
|
|
177
|
-
/**
|
|
178
|
-
* Specify an optional className to be added to your PageHeaderHeroImage
|
|
179
|
-
*/
|
|
180
|
-
className?: string;
|
|
181
|
-
}
|
|
182
|
-
declare const PageHeaderHeroImage: {
|
|
183
|
-
({ className, children, ...other }: PageHeaderHeroImageProps): React.JSX.Element;
|
|
184
|
-
displayName: string;
|
|
185
|
-
propTypes: {
|
|
186
|
-
/**
|
|
187
|
-
* Provide child elements to be rendered inside PageHeaderHeroImage.
|
|
188
|
-
*/
|
|
189
|
-
children: any;
|
|
190
|
-
/**
|
|
191
|
-
* Specify an optional className to be added to your PageHeaderHeroImage
|
|
192
|
-
*/
|
|
193
|
-
className: any;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
/**
|
|
197
|
-
* ----------------
|
|
198
|
-
* PageHeaderTabBar
|
|
199
|
-
* ----------------
|
|
200
|
-
*/
|
|
201
|
-
interface PageHeaderTabBarProps {
|
|
202
|
-
children?: React.ReactNode;
|
|
203
|
-
className?: string;
|
|
204
|
-
tags?: React.ReactNode;
|
|
205
|
-
scroller?: React.ReactNode;
|
|
206
|
-
}
|
|
207
|
-
declare const PageHeaderTabBar: React.ForwardRefExoticComponent<PageHeaderTabBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
208
|
-
interface PageHeaderTagOverflowProps {
|
|
209
|
-
children: React.ReactNode;
|
|
210
|
-
renderOverflowTag?: (hiddenBreadcrumbs: HTMLElement[], handleOverflowClick: (event: React.MouseEvent) => void, openPopover: boolean) => React.ReactElement;
|
|
211
|
-
renderPopoverContent?: (hiddenBreadcrumbs: HTMLElement[]) => React.ReactElement;
|
|
212
|
-
}
|
|
213
|
-
declare const PageHeaderTagOverflow: React.ForwardRefExoticComponent<PageHeaderTagOverflowProps & React.RefAttributes<HTMLDivElement>>;
|
|
214
|
-
interface PageHeaderScrollButtonProps extends IconButtonProps {
|
|
215
|
-
collapseText?: string;
|
|
216
|
-
expandText?: string;
|
|
217
|
-
}
|
|
218
|
-
declare const PageHeaderScrollButton: React.ForwardRefExoticComponent<PageHeaderScrollButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
219
|
-
declare const PageHeaderTitleBreadcrumb: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
220
|
-
interface PageHeaderBreadcrumbOverflowProps extends BreadcrumbProps {
|
|
221
|
-
renderOverflowBreadcrumb?: (hiddenBreadcrumbs: HTMLElement[]) => React.ReactElement<BreadcrumbItemProps>;
|
|
222
|
-
}
|
|
223
|
-
declare const PageHeaderBreadcrumbOverflow: React.ForwardRefExoticComponent<PageHeaderBreadcrumbOverflowProps & React.RefAttributes<HTMLElement>>;
|
|
224
28
|
/**
|
|
225
29
|
* -------
|
|
226
30
|
* Exports
|
|
@@ -233,21 +37,9 @@ declare const ContentPageActions: {
|
|
|
233
37
|
({ className, children, menuButtonLabel, actions, ...other }: PageHeaderContentPageActionsProps): React.JSX.Element;
|
|
234
38
|
displayName: string;
|
|
235
39
|
propTypes: {
|
|
236
|
-
/**
|
|
237
|
-
* The PageHeaderContent's page actions
|
|
238
|
-
*/
|
|
239
40
|
actions: any;
|
|
240
|
-
/**
|
|
241
|
-
* Provide child elements to be rendered inside PageHeaderContentPageActions.
|
|
242
|
-
*/
|
|
243
41
|
children: any;
|
|
244
|
-
/**
|
|
245
|
-
* Specify an optional className to be added to your PageHeaderContentPageActions
|
|
246
|
-
*/
|
|
247
42
|
className: any;
|
|
248
|
-
/**
|
|
249
|
-
* The PageHeaderContent's collapsible Menu button label
|
|
250
|
-
*/
|
|
251
43
|
menuButtonLabel: any;
|
|
252
44
|
};
|
|
253
45
|
};
|
|
@@ -255,17 +47,8 @@ declare const ContentText: {
|
|
|
255
47
|
({ className, children, subtitle, ...other }: PageHeaderContentTextProps): React.JSX.Element;
|
|
256
48
|
displayName: string;
|
|
257
49
|
propTypes: {
|
|
258
|
-
/**
|
|
259
|
-
* Provide child elements to be rendered inside PageHeaderContentText.
|
|
260
|
-
*/
|
|
261
50
|
children: any;
|
|
262
|
-
/**
|
|
263
|
-
* Specify an optional className to be added to your PageHeaderContentText
|
|
264
|
-
*/
|
|
265
51
|
className: any;
|
|
266
|
-
/**
|
|
267
|
-
* The PageHeaderContent's subtitle
|
|
268
|
-
*/
|
|
269
52
|
subtitle: any;
|
|
270
53
|
};
|
|
271
54
|
};
|
|
@@ -273,20 +56,14 @@ declare const HeroImage: {
|
|
|
273
56
|
({ className, children, ...other }: PageHeaderHeroImageProps): React.JSX.Element;
|
|
274
57
|
displayName: string;
|
|
275
58
|
propTypes: {
|
|
276
|
-
/**
|
|
277
|
-
* Provide child elements to be rendered inside PageHeaderHeroImage.
|
|
278
|
-
*/
|
|
279
59
|
children: any;
|
|
280
|
-
/**
|
|
281
|
-
* Specify an optional className to be added to your PageHeaderHeroImage
|
|
282
|
-
*/
|
|
283
60
|
className: any;
|
|
284
61
|
};
|
|
285
62
|
};
|
|
286
63
|
declare const TabBar: React.ForwardRefExoticComponent<PageHeaderTabBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
287
64
|
declare const ScrollButton: React.ForwardRefExoticComponent<PageHeaderScrollButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
288
|
-
declare const TitleBreadcrumb: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
65
|
+
declare const TitleBreadcrumb: React.ForwardRefExoticComponent<import("@carbon/react").BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
289
66
|
declare const BreadcrumbOverflow: React.ForwardRefExoticComponent<PageHeaderBreadcrumbOverflowProps & React.RefAttributes<HTMLElement>>;
|
|
290
67
|
declare const TagOverflow: React.ForwardRefExoticComponent<PageHeaderTagOverflowProps & React.RefAttributes<HTMLDivElement>>;
|
|
291
68
|
export { PageHeader, PageHeaderBreadcrumbBar, PageHeaderContent, PageHeaderContentPageActions, PageHeaderContentText, PageHeaderHeroImage, PageHeaderTabBar, PageHeaderScrollButton, PageHeaderTitleBreadcrumb, PageHeaderBreadcrumbOverflow, PageHeaderTagOverflow, Root, BreadcrumbBar, Content, ContentPageActions, ContentText, HeroImage, TabBar, ScrollButton, TitleBreadcrumb, BreadcrumbOverflow, TagOverflow, };
|
|
292
|
-
export type {
|
|
69
|
+
export type { PageHeaderBreadcrumbBarProps, PageHeaderContentProps, PageHeaderContentPageActionsProps, PageHeaderContentTextProps, PageHeaderHeroImageProps, PageHeaderTabBarProps, PageHeaderScrollButtonProps, PageHeaderTagOverflowProps, PageHeaderBreadcrumbOverflowProps, };
|