@carbon/ibm-products 2.70.0 → 2.71.0-rc.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/carbon.css +317 -216
- package/css/carbon.css.map +1 -1
- package/css/index-full-carbon.css +546 -270
- 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 +387 -43
- 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 +229 -54
- 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 +242 -56
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_commonjsHelpers.js +1 -3
- package/es/_virtual/index2.js +2 -6
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +61 -19
- package/es/components/APIKeyModal/APIKeyDownloader.js +3 -3
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/ActionSet/ActionSet.d.ts +4 -0
- package/es/components/ActionSet/ActionSet.js +46 -44
- package/es/components/AddSelect/AddSelectBody.js +1 -1
- package/es/components/Card/Card.d.ts +1 -0
- package/es/components/Coachmark/CoachmarkOverlay.js +5 -5
- package/es/components/Coachmark/CoachmarkTagline.js +2 -2
- package/es/components/Coachmark/utils/context.d.ts +28 -2
- package/es/components/Coachmark/utils/context.js +1 -1
- package/es/components/CoachmarkStack/CoachmarkStack.js +11 -8
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +18 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +5 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +9 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +24 -5
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +1 -1
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +6 -4
- package/es/components/ConditionBuilder/utils/util.d.ts +1 -1
- package/es/components/ConditionBuilder/utils/util.js +11 -4
- package/es/components/CreateModal/CreateModal.d.ts +4 -7
- package/es/components/CreateModal/CreateModal.js +4 -19
- package/es/components/CreateTearsheet/CreateTearsheetStep.d.ts +6 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +12 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +43 -18
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +7 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +11 -3
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +15 -19
- package/es/components/EditTearsheet/EditTearsheetForm.d.ts +2 -0
- package/es/components/EditTearsheet/EditTearsheetForm.js +16 -4
- package/es/components/EmptyStates/EmptyState.js +0 -1
- package/es/components/FilterSummary/FilterSummary.d.ts +1 -0
- package/es/components/FilterSummary/FilterSummary.js +2 -1
- package/es/components/Guidebanner/Guidebanner.js +4 -20
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +4 -3
- package/es/components/InterstitialScreen/InterstitialScreen.js +21 -21
- package/es/components/InterstitialScreen/InterstitialScreenBody.d.ts +9 -3
- package/es/components/InterstitialScreen/InterstitialScreenBody.js +16 -11
- package/es/components/InterstitialScreen/InterstitialScreenFooter.js +15 -13
- package/es/components/InterstitialScreen/InterstitialScreenHeader.js +13 -8
- package/es/components/InterstitialScreen/index.d.ts +4 -1
- package/es/components/Nav/NavItemLink.js +1 -4
- package/es/components/NotificationsPanel/NotificationsPanel.js +11 -21
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/next/PageHeader.d.ts +277 -0
- package/es/components/PageHeader/next/PageHeader.js +475 -0
- package/es/components/PageHeader/next/index.d.ts +8 -0
- package/es/components/ScrollGradient/ScrollGradient.js +4 -4
- package/es/components/SidePanel/SidePanel.js +25 -20
- package/es/components/StringFormatter/StringFormatter.js +3 -0
- package/es/components/Tearsheet/Tearsheet.js +4 -7
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -4
- package/es/components/Tearsheet/TearsheetShell.js +1 -1
- package/es/components/UserAvatar/UserAvatar.js +5 -7
- package/es/components/UserProfileImage/UserProfileImage.d.ts +1 -0
- package/es/components/UserProfileImage/UserProfileImage.js +12 -6
- package/es/components/index.d.ts +1 -0
- package/es/global/js/package-settings.js +1 -1
- package/es/index.js +3 -0
- package/es/node_modules/@carbon/icons-react/es/Icon.js +1 -1
- package/es/node_modules/prop-types/index.js +1 -1
- package/lib/_virtual/_commonjsHelpers.js +0 -3
- package/lib/_virtual/index2.js +2 -8
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +61 -19
- package/lib/components/APIKeyModal/APIKeyDownloader.js +3 -3
- package/lib/components/APIKeyModal/APIKeyModal.js +1 -1
- package/lib/components/ActionSet/ActionSet.d.ts +4 -0
- package/lib/components/ActionSet/ActionSet.js +46 -43
- package/lib/components/AddSelect/AddSelectBody.js +1 -1
- package/lib/components/Card/Card.d.ts +1 -0
- package/lib/components/Coachmark/CoachmarkOverlay.js +5 -5
- package/lib/components/Coachmark/CoachmarkTagline.js +2 -2
- package/lib/components/Coachmark/utils/context.d.ts +28 -2
- package/lib/components/Coachmark/utils/context.js +1 -1
- package/lib/components/CoachmarkStack/CoachmarkStack.js +11 -8
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +18 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +5 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +9 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +24 -5
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +1 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +6 -4
- package/lib/components/ConditionBuilder/utils/util.d.ts +1 -1
- package/lib/components/ConditionBuilder/utils/util.js +11 -4
- package/lib/components/CreateModal/CreateModal.d.ts +4 -7
- package/lib/components/CreateModal/CreateModal.js +4 -19
- package/lib/components/CreateTearsheet/CreateTearsheetStep.d.ts +6 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +12 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +43 -18
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +7 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +11 -3
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +15 -19
- package/lib/components/EditTearsheet/EditTearsheetForm.d.ts +2 -0
- package/lib/components/EditTearsheet/EditTearsheetForm.js +16 -4
- package/lib/components/EmptyStates/EmptyState.js +0 -1
- package/lib/components/FilterSummary/FilterSummary.d.ts +1 -0
- package/lib/components/FilterSummary/FilterSummary.js +2 -1
- package/lib/components/Guidebanner/Guidebanner.js +4 -20
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +4 -3
- package/lib/components/InterstitialScreen/InterstitialScreen.js +21 -20
- package/lib/components/InterstitialScreen/InterstitialScreenBody.d.ts +9 -3
- package/lib/components/InterstitialScreen/InterstitialScreenBody.js +19 -14
- package/lib/components/InterstitialScreen/InterstitialScreenFooter.js +20 -18
- package/lib/components/InterstitialScreen/InterstitialScreenHeader.js +15 -10
- package/lib/components/InterstitialScreen/index.d.ts +4 -1
- package/lib/components/Nav/NavItemLink.js +1 -4
- package/lib/components/NotificationsPanel/NotificationsPanel.js +11 -21
- package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
- package/lib/components/PageHeader/next/PageHeader.d.ts +277 -0
- package/lib/components/PageHeader/next/PageHeader.js +490 -0
- package/lib/components/PageHeader/next/index.d.ts +8 -0
- package/lib/components/ScrollGradient/ScrollGradient.js +4 -4
- package/lib/components/SidePanel/SidePanel.js +26 -21
- package/lib/components/StringFormatter/StringFormatter.js +3 -0
- package/lib/components/Tearsheet/Tearsheet.js +4 -7
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -4
- package/lib/components/Tearsheet/TearsheetShell.js +1 -1
- package/lib/components/UserAvatar/UserAvatar.js +5 -7
- package/lib/components/UserProfileImage/UserProfileImage.d.ts +1 -0
- package/lib/components/UserProfileImage/UserProfileImage.js +12 -6
- package/lib/components/index.d.ts +1 -0
- package/lib/global/js/package-settings.js +1 -1
- package/lib/index.js +5 -2
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +1 -1
- package/lib/node_modules/prop-types/index.js +1 -1
- package/package.json +22 -30
- package/scss/components/CoachmarkStack/_coachmark-stack.scss +12 -1
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +7 -11
- package/scss/components/PageHeader/_page-header.scss +198 -0
- package/scss/components/SidePanel/_side-panel.scss +2 -52
- package/scss/components/_index-released-only.scss +1 -0
- package/telemetry.yml +12 -13
- package/es/_virtual/index3.js +0 -10
- package/es/components/SidePanel/resizer/Resizer.d.ts +0 -21
- package/es/components/SidePanel/resizer/Resizer.js +0 -271
- package/es/node_modules/lodash.debounce/index.js +0 -367
- package/lib/_virtual/index3.js +0 -12
- package/lib/components/SidePanel/resizer/Resizer.d.ts +0 -21
- package/lib/components/SidePanel/resizer/Resizer.js +0 -277
- package/lib/node_modules/lodash.debounce/index.js +0 -369
- /package/es/node_modules/@carbon/{icons-react/node_modules/@carbon/icon-helpers → icon-helpers}/es/index.js +0 -0
- /package/lib/node_modules/@carbon/{icons-react/node_modules/@carbon/icon-helpers → icon-helpers}/es/index.js +0 -0
@@ -30,7 +30,6 @@ var useId = require('../../global/js/utils/useId.js');
|
|
30
30
|
var settings = require('../../settings.js');
|
31
31
|
var utils = require('./utils.js');
|
32
32
|
var usePresence = require('../../global/js/hooks/usePresence.js');
|
33
|
-
var useClickOutside = require('../../global/js/hooks/useClickOutside.js');
|
34
33
|
|
35
34
|
var _Close;
|
36
35
|
|
@@ -145,15 +144,17 @@ exports.NotificationsPanel = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
145
144
|
// Set the notifications passed to the state within this component
|
146
145
|
setAllNotifications(data);
|
147
146
|
}, [data]);
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
147
|
+
|
148
|
+
// useClickOutside(ref || notificationPanelRef, (target) => {
|
149
|
+
// const element = target as HTMLElement;
|
150
|
+
// if (!isActionableElement(element)) {
|
151
|
+
// setTimeout(() => {
|
152
|
+
// triggerButtonRef?.current?.focus();
|
153
|
+
// }, 100);
|
154
|
+
// }
|
155
|
+
// onClickOutside?.();
|
156
|
+
// });
|
157
|
+
|
157
158
|
const handleKeydown = event => {
|
158
159
|
event.stopPropagation();
|
159
160
|
if (event.key === 'Escape') {
|
@@ -311,17 +312,6 @@ exports.NotificationsPanel = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
311
312
|
size: 16
|
312
313
|
}))));
|
313
314
|
};
|
314
|
-
const isActionableElement = el => {
|
315
|
-
if (!el) {
|
316
|
-
return false;
|
317
|
-
}
|
318
|
-
const interactiveRoles = new Set(['button', 'link', 'textbox', 'checkbox', 'radio', 'slider', 'spinbutton', 'combobox', 'switch', 'menuitem']);
|
319
|
-
const actionableAncestor = el.closest('button, a, input, select, textarea, [tabindex], [contenteditable="true"], [role]');
|
320
|
-
if (!actionableAncestor) {
|
321
|
-
return false;
|
322
|
-
}
|
323
|
-
return actionableAncestor instanceof HTMLButtonElement || actionableAncestor instanceof HTMLAnchorElement || actionableAncestor instanceof HTMLInputElement || actionableAncestor instanceof HTMLSelectElement || actionableAncestor instanceof HTMLTextAreaElement || actionableAncestor.tabIndex >= 0 || actionableAncestor.isContentEditable || interactiveRoles.has(actionableAncestor.getAttribute('role')?.toLowerCase() ?? '');
|
324
|
-
};
|
325
315
|
const dismissSingleNotification = (event, notification) => {
|
326
316
|
event.preventDefault();
|
327
317
|
event.stopPropagation();
|
@@ -47,7 +47,7 @@ const PageHeaderTitle = _ref => {
|
|
47
47
|
} = title;
|
48
48
|
let titleText;
|
49
49
|
let isEditable = !!onSave;
|
50
|
-
const titleRef = React.useRef();
|
50
|
+
const titleRef = React.useRef(undefined);
|
51
51
|
const isEllipsisApplied = useOverflowString.useOverflowStringWidth(titleRef);
|
52
52
|
if (text || !content) {
|
53
53
|
if (text === undefined && typeof title === 'string') {
|
@@ -0,0 +1,277 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2025
|
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, { type ComponentType, type FunctionComponent } from 'react';
|
8
|
+
import { TYPES } from '@carbon/react/es/components/Tag/Tag';
|
9
|
+
/**
|
10
|
+
* ----------
|
11
|
+
* PageHeader
|
12
|
+
* ----------
|
13
|
+
*/
|
14
|
+
interface PageHeaderProps {
|
15
|
+
children?: React.ReactNode;
|
16
|
+
className?: string;
|
17
|
+
}
|
18
|
+
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 TagItem {
|
202
|
+
type: keyof typeof TYPES;
|
203
|
+
text: string;
|
204
|
+
size?: 'sm' | 'md' | 'lg';
|
205
|
+
id: string;
|
206
|
+
}
|
207
|
+
interface PageHeaderTabBarProps {
|
208
|
+
children?: React.ReactNode;
|
209
|
+
className?: string;
|
210
|
+
tags?: TagItem[];
|
211
|
+
}
|
212
|
+
declare const PageHeaderTabBar: React.ForwardRefExoticComponent<PageHeaderTabBarProps & React.RefAttributes<HTMLDivElement>>;
|
213
|
+
/**
|
214
|
+
* -------
|
215
|
+
* Exports
|
216
|
+
* -------
|
217
|
+
*/
|
218
|
+
declare const Root: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
219
|
+
declare const BreadcrumbBar: React.ForwardRefExoticComponent<PageHeaderBreadcrumbBarProps & React.RefAttributes<HTMLDivElement>>;
|
220
|
+
declare const Content: React.ForwardRefExoticComponent<PageHeaderContentProps & React.RefAttributes<HTMLDivElement>>;
|
221
|
+
declare const ContentPageActions: {
|
222
|
+
({ className, children, menuButtonLabel, actions, ...other }: PageHeaderContentPageActionsProps): React.JSX.Element;
|
223
|
+
displayName: string;
|
224
|
+
propTypes: {
|
225
|
+
/**
|
226
|
+
* The PageHeaderContent's page actions
|
227
|
+
*/
|
228
|
+
actions: any;
|
229
|
+
/**
|
230
|
+
* Provide child elements to be rendered inside PageHeaderContentPageActions.
|
231
|
+
*/
|
232
|
+
children: any;
|
233
|
+
/**
|
234
|
+
* Specify an optional className to be added to your PageHeaderContentPageActions
|
235
|
+
*/
|
236
|
+
className: any;
|
237
|
+
/**
|
238
|
+
* The PageHeaderContent's collapsible Menu button label
|
239
|
+
*/
|
240
|
+
menuButtonLabel: any;
|
241
|
+
};
|
242
|
+
};
|
243
|
+
declare const ContentText: {
|
244
|
+
({ className, children, subtitle, ...other }: PageHeaderContentTextProps): React.JSX.Element;
|
245
|
+
displayName: string;
|
246
|
+
propTypes: {
|
247
|
+
/**
|
248
|
+
* Provide child elements to be rendered inside PageHeaderContentText.
|
249
|
+
*/
|
250
|
+
children: any;
|
251
|
+
/**
|
252
|
+
* Specify an optional className to be added to your PageHeaderContentText
|
253
|
+
*/
|
254
|
+
className: any;
|
255
|
+
/**
|
256
|
+
* The PageHeaderContent's subtitle
|
257
|
+
*/
|
258
|
+
subtitle: any;
|
259
|
+
};
|
260
|
+
};
|
261
|
+
declare const HeroImage: {
|
262
|
+
({ className, children, ...other }: PageHeaderHeroImageProps): React.JSX.Element;
|
263
|
+
displayName: string;
|
264
|
+
propTypes: {
|
265
|
+
/**
|
266
|
+
* Provide child elements to be rendered inside PageHeaderHeroImage.
|
267
|
+
*/
|
268
|
+
children: any;
|
269
|
+
/**
|
270
|
+
* Specify an optional className to be added to your PageHeaderHeroImage
|
271
|
+
*/
|
272
|
+
className: any;
|
273
|
+
};
|
274
|
+
};
|
275
|
+
declare const TabBar: React.ForwardRefExoticComponent<PageHeaderTabBarProps & React.RefAttributes<HTMLDivElement>>;
|
276
|
+
export { PageHeader, PageHeaderBreadcrumbBar, PageHeaderContent, PageHeaderContentPageActions, PageHeaderContentText, PageHeaderHeroImage, PageHeaderTabBar, Root, BreadcrumbBar, Content, ContentPageActions, ContentText, HeroImage, TabBar, };
|
277
|
+
export type { PageHeaderProps, PageHeaderBreadcrumbBarProps, PageHeaderContentProps, PageHeaderContentPageActionsProps, PageHeaderContentTextProps, PageHeaderHeroImageProps, PageHeaderTabBarProps, };
|