@carbon/ibm-products 2.70.1 → 2.71.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/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/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
@@ -11,7 +11,6 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
|
|
11
11
|
var react = require('@carbon/react');
|
12
12
|
var React = require('react');
|
13
13
|
var TearsheetShell = require('./TearsheetShell.js');
|
14
|
-
var ActionSet = require('../ActionSet/ActionSet.js');
|
15
14
|
var index = require('../../_virtual/index.js');
|
16
15
|
var propsHelper = require('../../global/js/utils/props-helper.js');
|
17
16
|
var devtools = require('../../global/js/utils/devtools.js');
|
@@ -39,13 +38,13 @@ const componentName = 'Tearsheet';
|
|
39
38
|
* panel on either the left or right side, the main content area, and a set of
|
40
39
|
* action buttons.
|
41
40
|
*/
|
42
|
-
exports.Tearsheet = /*#__PURE__*/React.forwardRef((
|
43
|
-
|
41
|
+
exports.Tearsheet = /*#__PURE__*/React.forwardRef((props, ref) => {
|
42
|
+
const {
|
44
43
|
influencerPosition = 'left',
|
45
44
|
influencerWidth = 'narrow',
|
46
45
|
children,
|
47
46
|
...rest
|
48
|
-
} =
|
47
|
+
} = props;
|
49
48
|
return /*#__PURE__*/React.createElement(TearsheetShell.TearsheetShell, _rollupPluginBabelHelpers.extends({}, devtools.getDevtoolsProps(componentName), rest, {
|
50
49
|
influencerPosition,
|
51
50
|
influencerWidth,
|
@@ -93,9 +92,7 @@ exports.Tearsheet.propTypes = {
|
|
93
92
|
*
|
94
93
|
* See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
|
95
94
|
*/
|
96
|
-
actions: propsHelper.allPropTypes([
|
97
|
-
ActionSet.ActionSet.validateActions(() => '2xl'), index.default.arrayOf(index.default.shape({
|
98
|
-
/**@ts-ignore*/
|
95
|
+
actions: propsHelper.allPropTypes([index.default.arrayOf(index.default.shape({
|
99
96
|
...react.Button.propTypes,
|
100
97
|
kind: index.default.oneOf(['ghost', 'danger--ghost', 'secondary', 'danger', 'primary']),
|
101
98
|
label: index.default.string,
|
@@ -12,7 +12,6 @@ var react = require('@carbon/react');
|
|
12
12
|
var TearsheetShell = require('./TearsheetShell.js');
|
13
13
|
var React = require('react');
|
14
14
|
var propsHelper = require('../../global/js/utils/props-helper.js');
|
15
|
-
var ActionSet = require('../ActionSet/ActionSet.js');
|
16
15
|
var index = require('../../_virtual/index.js');
|
17
16
|
var devtools = require('../../global/js/utils/devtools.js');
|
18
17
|
var settings = require('../../settings.js');
|
@@ -86,9 +85,7 @@ exports.TearsheetNarrow.propTypes = {
|
|
86
85
|
*
|
87
86
|
* See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
|
88
87
|
*/
|
89
|
-
actions: propsHelper.allPropTypes([
|
90
|
-
ActionSet.ActionSet.validateActions(() => 'lg'), index.default.arrayOf(index.default.shape({
|
91
|
-
/**@ts-ignore*/
|
88
|
+
actions: propsHelper.allPropTypes([index.default.arrayOf(index.default.shape({
|
92
89
|
...react.Button.propTypes,
|
93
90
|
kind: index.default.oneOf(['ghost', 'danger--ghost', 'secondary', 'danger', 'primary']),
|
94
91
|
label: index.default.string,
|
@@ -152,7 +152,7 @@ const TearsheetShell = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
152
152
|
if (prevOpen && !open && launcherButtonRef?.current) {
|
153
153
|
setTimeout(() => {
|
154
154
|
launcherButtonRef?.current.focus();
|
155
|
-
},
|
155
|
+
}, 10);
|
156
156
|
}
|
157
157
|
}, [open, prevOpen, launcherButtonRef]);
|
158
158
|
React.useEffect(() => {
|
@@ -31,9 +31,8 @@ const componentName = 'UserAvatar';
|
|
31
31
|
* TODO: A description of the component.
|
32
32
|
*/
|
33
33
|
|
34
|
-
exports.UserAvatar = /*#__PURE__*/React.forwardRef((
|
35
|
-
|
36
|
-
// The component props, in alphabetical order (for consistency).
|
34
|
+
exports.UserAvatar = /*#__PURE__*/React.forwardRef((props, ref) => {
|
35
|
+
const {
|
37
36
|
backgroundColor = 'order-1-cyan',
|
38
37
|
className,
|
39
38
|
image,
|
@@ -44,9 +43,8 @@ exports.UserAvatar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
44
43
|
size = 'md',
|
45
44
|
tooltipText,
|
46
45
|
tooltipAlignment = 'bottom',
|
47
|
-
// Collect any other property values passed in.
|
48
46
|
...rest
|
49
|
-
} =
|
47
|
+
} = props;
|
50
48
|
const carbonPrefix = react.usePrefix();
|
51
49
|
const iconSize = {
|
52
50
|
sm: 16,
|
@@ -139,10 +137,10 @@ exports.UserAvatar.propTypes = {
|
|
139
137
|
* When passing the image prop use the imageDescription prop to describe the image for screen reader.
|
140
138
|
*/
|
141
139
|
/**@ts-ignore */
|
142
|
-
imageDescription: index.default.string.isRequired.if(
|
140
|
+
imageDescription: index.default.string.isRequired.if(_ref => {
|
143
141
|
let {
|
144
142
|
image
|
145
|
-
} =
|
143
|
+
} = _ref;
|
146
144
|
return !!image;
|
147
145
|
}),
|
148
146
|
/**
|
@@ -63,6 +63,7 @@ type UserProfileImageBaseProps = {
|
|
63
63
|
export type UserProfileImageProps = UserProfileImageBaseProps & imageProps;
|
64
64
|
/**
|
65
65
|
* The user profile avatar allows for an image of the user to be displayed by passing in the image prop. By default the component will display a user icon on a blue background.
|
66
|
+
* @deprecated This component is deprecated.
|
66
67
|
*/
|
67
68
|
export declare let UserProfileImage: React.ForwardRefExoticComponent<UserProfileImageProps & React.RefAttributes<HTMLDivElement>>;
|
68
69
|
export {};
|
@@ -26,10 +26,11 @@ const componentName = 'UserProfileImage';
|
|
26
26
|
|
27
27
|
/**
|
28
28
|
* The user profile avatar allows for an image of the user to be displayed by passing in the image prop. By default the component will display a user icon on a blue background.
|
29
|
+
* @deprecated This component is deprecated.
|
29
30
|
*/
|
30
|
-
exports.UserProfileImage = /*#__PURE__*/React.forwardRef((
|
31
|
+
exports.UserProfileImage = /*#__PURE__*/React.forwardRef((props, ref) => {
|
31
32
|
var _FillItem;
|
32
|
-
|
33
|
+
const {
|
33
34
|
backgroundColor,
|
34
35
|
className,
|
35
36
|
kind,
|
@@ -41,9 +42,8 @@ exports.UserProfileImage = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
41
42
|
theme,
|
42
43
|
tooltipText,
|
43
44
|
tooltipAlignment = 'bottom',
|
44
|
-
// Collect any other property values passed in.
|
45
45
|
...rest
|
46
|
-
} =
|
46
|
+
} = props;
|
47
47
|
const carbonPrefix = react.usePrefix();
|
48
48
|
const icons$1 = {
|
49
49
|
user: {
|
@@ -111,6 +111,12 @@ exports.UserProfileImage = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
111
111
|
}, /*#__PURE__*/React.createElement(TooltipTrigger.TooltipTrigger, null, renderUserProfileImage())) : renderUserProfileImage());
|
112
112
|
});
|
113
113
|
|
114
|
+
/**@ts-ignore*/
|
115
|
+
exports.UserProfileImage.deprecated = {
|
116
|
+
level: 'warn',
|
117
|
+
details: `Please replace ${componentName} with UserAvatar`
|
118
|
+
};
|
119
|
+
|
114
120
|
// Return a placeholder if not released and not enabled by feature flag
|
115
121
|
exports.UserProfileImage = settings.pkg.checkComponentEnabled(exports.UserProfileImage, componentName);
|
116
122
|
exports.UserProfileImage.displayName = componentName;
|
@@ -137,10 +143,10 @@ exports.UserProfileImage.propTypes = {
|
|
137
143
|
* When passing the image prop use the imageDescription prop to describe the image for screen reader.
|
138
144
|
*/
|
139
145
|
/**@ts-ignore */
|
140
|
-
imageDescription: index.default.string.isRequired.if(
|
146
|
+
imageDescription: index.default.string.isRequired.if(_ref => {
|
141
147
|
let {
|
142
148
|
image
|
143
|
-
} =
|
149
|
+
} = _ref;
|
144
150
|
return !!image;
|
145
151
|
}),
|
146
152
|
/**
|
@@ -68,4 +68,5 @@ export { ActionBar } from './ActionBar';
|
|
68
68
|
export * from './FilterPanel';
|
69
69
|
export * from './ConditionBuilder';
|
70
70
|
export * from './GetStartedCard';
|
71
|
+
export * as unstable__PageHeader from './PageHeader/next/PageHeader';
|
71
72
|
export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags, } from './FeatureFlags';
|
package/lib/index.js
CHANGED
@@ -35,7 +35,7 @@ var ExpressiveCard = require('./components/ExpressiveCard/ExpressiveCard.js');
|
|
35
35
|
var ImportModal = require('./components/ImportModal/ImportModal.js');
|
36
36
|
var MultiAddSelect = require('./components/MultiAddSelect/MultiAddSelect.js');
|
37
37
|
var NotificationsPanel = require('./components/NotificationsPanel/NotificationsPanel.js');
|
38
|
-
var PageHeader = require('./components/PageHeader/PageHeader.js');
|
38
|
+
var PageHeader$1 = require('./components/PageHeader/PageHeader.js');
|
39
39
|
var ProductiveCard = require('./components/ProductiveCard/ProductiveCard.js');
|
40
40
|
var RemoveModal = require('./components/RemoveModal/RemoveModal.js');
|
41
41
|
var Saving = require('./components/Saving/Saving.js');
|
@@ -82,6 +82,7 @@ var EditFullPage = require('./components/EditFullPage/EditFullPage.js');
|
|
82
82
|
var EditUpdateCards = require('./components/EditUpdateCards/EditUpdateCards.js');
|
83
83
|
var Checklist = require('./components/Checklist/Checklist.js');
|
84
84
|
var Coachmark = require('./components/Coachmark/Coachmark.js');
|
85
|
+
require('react');
|
85
86
|
require('./components/Coachmark/CoachmarkTagline.js');
|
86
87
|
var CoachmarkBeacon = require('./components/CoachmarkBeacon/CoachmarkBeacon.js');
|
87
88
|
var CoachmarkButton = require('./components/CoachmarkButton/CoachmarkButton.js');
|
@@ -104,6 +105,7 @@ var FullPageError = require('./components/FullPageError/FullPageError.js');
|
|
104
105
|
var SearchBar = require('./components/SearchBar/SearchBar.js');
|
105
106
|
var TagOverflow = require('./components/TagOverflow/TagOverflow.js');
|
106
107
|
var GetStartedCard = require('./components/GetStartedCard/GetStartedCard.js');
|
108
|
+
var PageHeader = require('./components/PageHeader/next/PageHeader.js');
|
107
109
|
var index = require('./components/FeatureFlags/index.js');
|
108
110
|
var useFilterContext = require('./components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js');
|
109
111
|
var usePrefix = require('./global/js/hooks/usePrefix.js');
|
@@ -243,7 +245,7 @@ Object.defineProperty(exports, "NotificationsPanel", {
|
|
243
245
|
});
|
244
246
|
Object.defineProperty(exports, "PageHeader", {
|
245
247
|
enumerable: true,
|
246
|
-
get: function () { return PageHeader.PageHeader; }
|
248
|
+
get: function () { return PageHeader$1.PageHeader; }
|
247
249
|
});
|
248
250
|
Object.defineProperty(exports, "ProductiveCard", {
|
249
251
|
enumerable: true,
|
@@ -454,6 +456,7 @@ Object.defineProperty(exports, "GetStartedCard", {
|
|
454
456
|
enumerable: true,
|
455
457
|
get: function () { return GetStartedCard.GetStartedCard; }
|
456
458
|
});
|
459
|
+
exports.unstable__PageHeader = PageHeader;
|
457
460
|
exports.unstable_FeatureFlags = index.FeatureFlags;
|
458
461
|
exports.unstable_useFeatureFlag = index.useFeatureFlag;
|
459
462
|
exports.unstable_useFeatureFlags = index.useFeatureFlags;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
11
11
|
|
12
|
-
var index = require('
|
12
|
+
var index = require('../../icon-helpers/es/index.js');
|
13
13
|
var index$1 = require('../../../../_virtual/index.js');
|
14
14
|
var React = require('react');
|
15
15
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
'use strict';
|
9
9
|
|
10
|
-
var index = require('../../_virtual/
|
10
|
+
var index = require('../../_virtual/index2.js');
|
11
11
|
var require$$0 = require('react-is');
|
12
12
|
var factoryWithTypeCheckers = require('./factoryWithTypeCheckers.js');
|
13
13
|
var factoryWithThrowingShims = require('./factoryWithThrowingShims.js');
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.71.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -57,8 +57,7 @@
|
|
57
57
|
"storybook:start": "storybook dev ./public -p 3000",
|
58
58
|
"telemetry-config": "ibmtelemetry-config generate --id 495342db-5046-4ecf-85ea-9ffceb6f8cdf --endpoint https://www-api.ibm.com/ibm-telemetry/v1/metrics --files ./src/components/**/*.(tsx|js|jsx)",
|
59
59
|
"test": "jest --colors",
|
60
|
-
"
|
61
|
-
"upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon|^react$|^react-dom$|^chalk$|^namor)/'"
|
60
|
+
"vrt": "percy storybook --verbose ./storybook-static"
|
62
61
|
},
|
63
62
|
"devDependencies": {
|
64
63
|
"@babel/cli": "^7.26.4",
|
@@ -71,29 +70,19 @@
|
|
71
70
|
"@babel/preset-react": "^7.26.3",
|
72
71
|
"@babel/preset-typescript": "^7.26.0",
|
73
72
|
"@ibm/telemetry-js-config-generator": "^2.0.1",
|
74
|
-
"@percy/cli": "^1.
|
75
|
-
"@percy/storybook": "^6.0.
|
73
|
+
"@percy/cli": "^1.31.0",
|
74
|
+
"@percy/storybook": "^6.0.4",
|
76
75
|
"@rollup/plugin-babel": "^6.0.4",
|
77
76
|
"@rollup/plugin-commonjs": "^28.0.3",
|
78
77
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
79
78
|
"@rollup/plugin-typescript": "^12.1.2",
|
80
|
-
"@storybook/addon-
|
81
|
-
"@storybook/addon-
|
82
|
-
"@storybook/addon-controls": "^8.6.12",
|
83
|
-
"@storybook/addon-docs": "^8.6.12",
|
84
|
-
"@storybook/addon-essentials": "^8.6.12",
|
85
|
-
"@storybook/addon-links": "^8.6.12",
|
86
|
-
"@storybook/addon-viewport": "^8.6.12",
|
87
|
-
"@storybook/components": "^8.6.12",
|
88
|
-
"@storybook/core-events": "^8.6.12",
|
79
|
+
"@storybook/addon-docs": "^9.0.8",
|
80
|
+
"@storybook/addon-links": "^9.0.8",
|
89
81
|
"@storybook/csf": "^0.1.13",
|
90
|
-
"@storybook/
|
91
|
-
"@storybook/react": "^8.6.12",
|
92
|
-
"@storybook/react-vite": "^8.6.12",
|
93
|
-
"@storybook/theming": "^8.6.12",
|
82
|
+
"@storybook/react-vite": "^9.0.13",
|
94
83
|
"@types/react-table": "^7.7.20",
|
95
84
|
"babel-plugin-dev-expression": "^0.2.3",
|
96
|
-
"babel-preset-ibm-cloud-cognitive": "^0.
|
85
|
+
"babel-preset-ibm-cloud-cognitive": "^0.29.0",
|
97
86
|
"chalk": "^4.1.2",
|
98
87
|
"change-case": "5.4.4",
|
99
88
|
"classnames": "^2.5.1",
|
@@ -102,23 +91,26 @@
|
|
102
91
|
"fs-extra": "^11.3.0",
|
103
92
|
"glob": "^11.0.1",
|
104
93
|
"jest": "^29.7.0",
|
105
|
-
"jest-config-ibm-cloud-cognitive": "^1.
|
94
|
+
"jest-config-ibm-cloud-cognitive": "^1.30.0",
|
106
95
|
"jest-environment-jsdom": "^29.7.0",
|
107
96
|
"namor": "^1.1.2",
|
108
|
-
"npm-check-updates": "^18.0.0",
|
109
97
|
"npm-run-all": "^4.1.5",
|
98
|
+
"react": "^19.1.0",
|
99
|
+
"react-dom": "^19.1.0",
|
110
100
|
"rimraf": "^6.0.1",
|
111
101
|
"rollup": "^4.35.0",
|
112
102
|
"rollup-plugin-strip-banner": "^3.1.0",
|
113
103
|
"sass": "^1.85.1",
|
114
|
-
"storybook": "^
|
104
|
+
"storybook": "^9.0.8",
|
115
105
|
"typescript-config-carbon": "^0.5.0",
|
106
|
+
"vite": "^7.0.0",
|
116
107
|
"yargs": "^18.0.0"
|
117
108
|
},
|
118
109
|
"dependencies": {
|
119
110
|
"@babel/runtime": "^7.26.10",
|
111
|
+
"@carbon-labs/react-resizer": "^0.3.0",
|
120
112
|
"@carbon/feature-flags": "^0.27.0",
|
121
|
-
"@carbon/ibm-products-styles": "^2.
|
113
|
+
"@carbon/ibm-products-styles": "^2.67.0",
|
122
114
|
"@carbon/telemetry": "^0.1.0",
|
123
115
|
"@carbon/utilities": "^0.7.0",
|
124
116
|
"@carbon/utilities-react": "0.9.0",
|
@@ -131,14 +123,14 @@
|
|
131
123
|
"react-window": "^1.8.11"
|
132
124
|
},
|
133
125
|
"peerDependencies": {
|
134
|
-
"@carbon/grid": "^11.
|
135
|
-
"@carbon/layout": "^11.
|
136
|
-
"@carbon/motion": "^11.
|
137
|
-
"@carbon/react": "^1.
|
138
|
-
"@carbon/themes": "^11.
|
139
|
-
"@carbon/type": "^11.
|
126
|
+
"@carbon/grid": "^11.38.0",
|
127
|
+
"@carbon/layout": "^11.36.0",
|
128
|
+
"@carbon/motion": "^11.30.0",
|
129
|
+
"@carbon/react": "^1.85.1",
|
130
|
+
"@carbon/themes": "^11.55.0",
|
131
|
+
"@carbon/type": "^11.42.0",
|
140
132
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0",
|
141
133
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0"
|
142
134
|
},
|
143
|
-
"gitHead": "
|
135
|
+
"gitHead": "6b1aa641b80b4df7b6fc51c91dfaaefbfccc1ae6"
|
144
136
|
}
|
@@ -29,6 +29,7 @@
|
|
29
29
|
$elements-block-class: #{c4p-settings.$pkg-prefix}--coachmark-stack-element;
|
30
30
|
$overlay-class: #{c4p-settings.$pkg-prefix}--coachmark-overlay;
|
31
31
|
$stack-home-class: #{c4p-settings.$pkg-prefix}--coachmark-stacked-home;
|
32
|
+
$style-stack-home: #{c4p-settings.$pkg-prefix}--coachmark-stack;
|
32
33
|
|
33
34
|
.#{$elements-block-class} {
|
34
35
|
$block: &;
|
@@ -44,7 +45,7 @@ $stack-home-class: #{c4p-settings.$pkg-prefix}--coachmark-stacked-home;
|
|
44
45
|
&--is-mounted {
|
45
46
|
inset-block-end: 0;
|
46
47
|
/* stylelint-disable-next-line carbon/motion-easing-use, carbon/motion-duration-use */
|
47
|
-
transition: $duration-
|
48
|
+
transition: $duration-fast-02 motion(exit, productive);
|
48
49
|
@media (prefers-reduced-motion) {
|
49
50
|
transition: none;
|
50
51
|
}
|
@@ -120,3 +121,13 @@ $stack-home-class: #{c4p-settings.$pkg-prefix}--coachmark-stacked-home;
|
|
120
121
|
white-space: nowrap;
|
121
122
|
}
|
122
123
|
}
|
124
|
+
|
125
|
+
.#{$style-stack-home}--scaled-home {
|
126
|
+
opacity: 0.8;
|
127
|
+
transform: scale(0.9);
|
128
|
+
}
|
129
|
+
|
130
|
+
.#{$style-stack-home}--unscaled-home {
|
131
|
+
opacity: 1;
|
132
|
+
transform: none;
|
133
|
+
}
|
@@ -44,7 +44,7 @@ $one-grid-column: calc(100% / 16);
|
|
44
44
|
&__carousel {
|
45
45
|
block-size: 100%;
|
46
46
|
.#{$carousel-item} {
|
47
|
-
flex: 0 0 100
|
47
|
+
flex: 0 0 100%;
|
48
48
|
scroll-snap-align: start;
|
49
49
|
}
|
50
50
|
}
|
@@ -54,6 +54,10 @@ $one-grid-column: calc(100% / 16);
|
|
54
54
|
margin: 0 !important;
|
55
55
|
}
|
56
56
|
|
57
|
+
&--content {
|
58
|
+
block-size: 100%;
|
59
|
+
}
|
60
|
+
|
57
61
|
// HEADER
|
58
62
|
&--internal-header {
|
59
63
|
position: relative;
|
@@ -102,6 +106,7 @@ $one-grid-column: calc(100% / 16);
|
|
102
106
|
// FOOTER
|
103
107
|
&--footer {
|
104
108
|
display: flex;
|
109
|
+
box-sizing: initial;
|
105
110
|
flex-direction: row;
|
106
111
|
justify-content: flex-end;
|
107
112
|
background: $background;
|
@@ -119,7 +124,7 @@ $one-grid-column: calc(100% / 16);
|
|
119
124
|
#{$block}--skip-btn {
|
120
125
|
flex-grow: 1 !important;
|
121
126
|
max-inline-size: none;
|
122
|
-
padding-inline-start: $spacing-07
|
127
|
+
padding-inline-start: $spacing-07;
|
123
128
|
}
|
124
129
|
.#{c4p-settings.$carbon-prefix}--inline-loading {
|
125
130
|
position: absolute;
|
@@ -149,14 +154,5 @@ $one-grid-column: calc(100% / 16);
|
|
149
154
|
block-size: 100vh;
|
150
155
|
max-inline-size: 100vw;
|
151
156
|
}
|
152
|
-
|
153
|
-
#{$block}--footer {
|
154
|
-
#{$block}--skip-btn {
|
155
|
-
padding-inline-start: $spacing-08 !important;
|
156
|
-
@include breakpoint-down(xlg) {
|
157
|
-
padding-inline-start: $spacing-07 !important;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
}
|
161
157
|
}
|
162
158
|
}
|
@@ -13,6 +13,7 @@
|
|
13
13
|
@use '@carbon/styles/scss/spacing' as *;
|
14
14
|
@use '@carbon/styles/scss/type';
|
15
15
|
@use '@carbon/styles/scss/utilities';
|
16
|
+
@use '@carbon/layout/scss/convert' as *;
|
16
17
|
|
17
18
|
// Standard imports.
|
18
19
|
@use '../../global/styles/project-settings' as *;
|
@@ -704,3 +705,200 @@ $duration: 1000ms;
|
|
704
705
|
> button.#{$carbon-prefix}--menu-button__trigger {
|
705
706
|
min-inline-size: 0;
|
706
707
|
}
|
708
|
+
|
709
|
+
/// Experimental Page header styles
|
710
|
+
/// @access public
|
711
|
+
/// @group page-header
|
712
|
+
@include block-wrap(#{$block-class}__next) {
|
713
|
+
&.#{$block-class} {
|
714
|
+
background-color: $layer-01;
|
715
|
+
border-block-end: 1px solid $border-subtle-01;
|
716
|
+
}
|
717
|
+
|
718
|
+
.#{$block-class}__breadcrumb-bar {
|
719
|
+
block-size: to-rem(40px);
|
720
|
+
}
|
721
|
+
|
722
|
+
.#{$block-class}__breadcrumb-bar .#{$carbon-prefix}--subgrid {
|
723
|
+
block-size: 100%;
|
724
|
+
}
|
725
|
+
|
726
|
+
.#{$block-class}__breadcrumb-container {
|
727
|
+
display: inline-flex;
|
728
|
+
align-items: center;
|
729
|
+
justify-content: space-between;
|
730
|
+
block-size: 100%;
|
731
|
+
inline-size: 100%;
|
732
|
+
}
|
733
|
+
|
734
|
+
.#{$block-class}__breadcrumb__actions-flush {
|
735
|
+
.#{$carbon-prefix}--css-grid {
|
736
|
+
padding-inline-end: 0;
|
737
|
+
}
|
738
|
+
|
739
|
+
.#{$carbon-prefix}--css-grid-column {
|
740
|
+
margin-inline-end: 0;
|
741
|
+
}
|
742
|
+
}
|
743
|
+
|
744
|
+
.#{$block-class}__breadcrumb-bar-border {
|
745
|
+
border-block-end: 1px solid $border-subtle-01;
|
746
|
+
}
|
747
|
+
|
748
|
+
.#{$block-class}__breadcrumb__icon {
|
749
|
+
margin-inline-end: $spacing-03;
|
750
|
+
}
|
751
|
+
|
752
|
+
.#{$block-class}__breadcrumb__actions {
|
753
|
+
display: inline-flex;
|
754
|
+
}
|
755
|
+
|
756
|
+
.#{$block-class}__breadcrumb__content-actions {
|
757
|
+
margin-inline-end: $spacing-04;
|
758
|
+
}
|
759
|
+
|
760
|
+
.#{$block-class}__breadcrumb-wrapper {
|
761
|
+
display: inline-flex;
|
762
|
+
}
|
763
|
+
|
764
|
+
.#{$block-class}__content {
|
765
|
+
padding: $spacing-06 0;
|
766
|
+
}
|
767
|
+
|
768
|
+
.#{$block-class}__content__title-wrapper {
|
769
|
+
@include breakpoint-down(md) {
|
770
|
+
display: flex;
|
771
|
+
flex-direction: column;
|
772
|
+
grid-gap: $spacing-05;
|
773
|
+
}
|
774
|
+
|
775
|
+
display: grid;
|
776
|
+
gap: $spacing-05;
|
777
|
+
grid-template-columns: auto minmax(
|
778
|
+
var(--page-header-title-grid-width, 0),
|
779
|
+
1fr
|
780
|
+
);
|
781
|
+
margin-block-end: $spacing-05;
|
782
|
+
min-block-size: to-rem(40px);
|
783
|
+
}
|
784
|
+
|
785
|
+
.#{$block-class}__content__start {
|
786
|
+
display: flex;
|
787
|
+
flex-wrap: wrap;
|
788
|
+
gap: $spacing-05;
|
789
|
+
}
|
790
|
+
|
791
|
+
.#{$block-class}__content__title-container {
|
792
|
+
display: flex;
|
793
|
+
}
|
794
|
+
|
795
|
+
.#{$block-class}__content__title-container
|
796
|
+
.#{$carbon-prefix}--definition-term {
|
797
|
+
border-block-end: none;
|
798
|
+
}
|
799
|
+
|
800
|
+
.#{$block-class}__content__contextual-actions {
|
801
|
+
display: flex;
|
802
|
+
}
|
803
|
+
|
804
|
+
.#{$block-class}__content__title {
|
805
|
+
@include type.type-style('productive-heading-04');
|
806
|
+
|
807
|
+
display: -webkit-box;
|
808
|
+
overflow: hidden;
|
809
|
+
-webkit-box-orient: vertical;
|
810
|
+
-webkit-line-clamp: 2;
|
811
|
+
max-inline-size: to-rem(640px);
|
812
|
+
text-overflow: ellipsis;
|
813
|
+
white-space: normal;
|
814
|
+
}
|
815
|
+
|
816
|
+
.#{$block-class}__content:has(.#{$block-class}__content__contextual-actions)
|
817
|
+
.#{$block-class}__content__title {
|
818
|
+
-webkit-line-clamp: 1;
|
819
|
+
}
|
820
|
+
|
821
|
+
.#{$block-class}__content__icon {
|
822
|
+
margin-inline-end: $spacing-05;
|
823
|
+
}
|
824
|
+
|
825
|
+
.#{$block-class}__content__page-actions {
|
826
|
+
display: flex;
|
827
|
+
justify-content: right;
|
828
|
+
|
829
|
+
@include breakpoint-down('md') {
|
830
|
+
justify-content: left;
|
831
|
+
margin-block-start: 0;
|
832
|
+
}
|
833
|
+
}
|
834
|
+
|
835
|
+
.#{$block-class}__content__page-actions
|
836
|
+
.#{$carbon-prefix}--menu-button__trigger:not(
|
837
|
+
.#{$carbon-prefix}--btn--ghost
|
838
|
+
) {
|
839
|
+
min-inline-size: 0;
|
840
|
+
}
|
841
|
+
|
842
|
+
.#{$block-class}__content__subtitle {
|
843
|
+
@include type.type-style('productive-heading-03');
|
844
|
+
|
845
|
+
margin-block-end: $spacing-03;
|
846
|
+
}
|
847
|
+
|
848
|
+
.#{$block-class}__content__body {
|
849
|
+
@include type.type-style('body-01');
|
850
|
+
|
851
|
+
margin-block-start: $spacing-03;
|
852
|
+
max-inline-size: to-rem(640px);
|
853
|
+
}
|
854
|
+
|
855
|
+
[data-hidden]:not([data-fixed]) {
|
856
|
+
display: none;
|
857
|
+
}
|
858
|
+
|
859
|
+
.#{$block-class}__hero-image {
|
860
|
+
display: flex;
|
861
|
+
overflow: hidden;
|
862
|
+
align-items: center;
|
863
|
+
justify-content: flex-end;
|
864
|
+
block-size: 100%;
|
865
|
+
}
|
866
|
+
|
867
|
+
.#{$block-class}__tab-bar {
|
868
|
+
margin-inline-start: -$spacing-05;
|
869
|
+
}
|
870
|
+
|
871
|
+
.#{$block-class}__tab-bar--tablist {
|
872
|
+
display: grid;
|
873
|
+
grid-gap: $spacing-10;
|
874
|
+
grid-template-columns: auto minmax(0, 1fr);
|
875
|
+
}
|
876
|
+
|
877
|
+
.#{$carbon-prefix}--tabs .#{$carbon-prefix}--tab--overflow-nav-button {
|
878
|
+
background-color: $layer-01;
|
879
|
+
|
880
|
+
&.#{$carbon-prefix}--tab--overflow-nav-button--next::before {
|
881
|
+
background: linear-gradient(to right, rgba(255, 255, 255, 0), $layer-01);
|
882
|
+
}
|
883
|
+
|
884
|
+
&.#{$carbon-prefix}--tab--overflow-nav-button--previous::before {
|
885
|
+
background: linear-gradient(to left, rgba(255, 255, 255, 0), $layer-01);
|
886
|
+
}
|
887
|
+
}
|
888
|
+
|
889
|
+
.#{$block-class}__tags {
|
890
|
+
display: flex;
|
891
|
+
align-items: center;
|
892
|
+
justify-content: right;
|
893
|
+
}
|
894
|
+
|
895
|
+
.#{$block-class}__tags-popover-list {
|
896
|
+
display: flex;
|
897
|
+
flex-direction: column;
|
898
|
+
padding: $spacing-05;
|
899
|
+
}
|
900
|
+
|
901
|
+
.#{$block-class}__tag-item {
|
902
|
+
flex-shrink: 0;
|
903
|
+
}
|
904
|
+
}
|