@carbon/ibm-products 2.36.0 → 2.38.0-alpha.5
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +5404 -5117
- 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 +4 -4
- 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 +820 -61
- 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 +329 -6
- 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/_rollupPluginBabelHelpers.js +9 -10
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +8 -2
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +21 -0
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +261 -0
- package/es/components/ConditionBuilder/ConditionBuilder.js +45 -16
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +12 -0
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +40 -0
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +22 -0
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +74 -0
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +18 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +90 -42
- package/es/components/ConditionBuilder/ConditionBuilderContext/{DataTreeContext.d.ts → ConditionBuilderProvider.d.ts} +5 -2
- package/es/components/ConditionBuilder/ConditionBuilderContext/{DataTreeContext.js → ConditionBuilderProvider.js} +27 -8
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +22 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +112 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +31 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +40 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +28 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +151 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +11 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +59 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +13 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +52 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.d.ts +13 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.js +162 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +11 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +40 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +11 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +82 -0
- package/es/components/ConditionBuilder/ConditionConnector/ConditionConnector.d.ts +15 -0
- package/es/components/ConditionBuilder/ConditionConnector/ConditionConnector.js +85 -0
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +24 -0
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +145 -0
- package/es/components/ConditionBuilder/utils/util.d.ts +4 -0
- package/es/components/ConditionBuilder/utils/util.js +16 -0
- package/es/components/CreateTearsheet/CreateTearsheet.d.ts +106 -4
- package/es/components/CreateTearsheet/CreateTearsheet.js +12 -32
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +1 -0
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -0
- package/es/components/Datagrid/useParentDimensions.js +1 -1
- package/es/components/Datagrid/useSkeletonRows.d.ts +1 -1
- package/es/components/Datagrid/useSkeletonRows.js +11 -3
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +104 -2
- package/es/components/EditUpdateCards/EditUpdateCards.js +3 -0
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -3
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +97 -2
- package/es/components/ExpressiveCard/ExpressiveCard.js +4 -0
- package/es/components/InlineTip/InlineTipButton.d.ts +21 -2
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +100 -2
- package/es/components/InterstitialScreen/InterstitialScreen.js +25 -14
- package/es/components/Nav/NavItem.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +5 -6
- package/es/components/PageHeader/PageHeader.js +12 -3
- package/es/components/SidePanel/SidePanel.js +1 -1
- package/es/components/SimpleHeader/SimpleHeader.d.ts +1 -5
- package/es/components/SimpleHeader/SimpleHeader.js +2 -4
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +4 -13
- package/es/components/Tearsheet/TearsheetShell.d.ts +119 -10
- package/es/components/Tearsheet/TearsheetShell.js +18 -8
- package/es/components/WebTerminal/WebTerminal.d.ts +46 -2
- package/es/components/WebTerminal/WebTerminal.js +2 -2
- package/es/global/js/hooks/usePrefersReducedMotion.d.ts +2 -0
- package/es/global/js/hooks/usePrefersReducedMotion.js +28 -0
- package/es/global/js/utils/Wrap.d.ts +31 -2
- package/es/global/js/utils/Wrap.js +7 -9
- package/es/global/js/utils/getNodeTextContent.d.ts +1 -1
- package/es/global/js/utils/getNodeTextContent.js +1 -1
- package/es/global/js/utils/window.d.ts +2 -0
- package/es/global/js/utils/window.js +12 -0
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +2780 -0
- package/lib/_virtual/_rollupPluginBabelHelpers.js +9 -10
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +8 -2
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +21 -0
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +270 -0
- package/lib/components/ConditionBuilder/ConditionBuilder.js +46 -17
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +12 -0
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +48 -0
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +22 -0
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +83 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +18 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +90 -42
- package/lib/components/ConditionBuilder/ConditionBuilderContext/{DataTreeContext.d.ts → ConditionBuilderProvider.d.ts} +5 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContext/{DataTreeContext.js → ConditionBuilderProvider.js} +27 -8
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +22 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +121 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +31 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +44 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +28 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +159 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +11 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +67 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +13 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +60 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.d.ts +13 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.js +170 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +11 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +48 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +11 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +90 -0
- package/lib/components/ConditionBuilder/ConditionConnector/ConditionConnector.d.ts +15 -0
- package/lib/components/ConditionBuilder/ConditionConnector/ConditionConnector.js +93 -0
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +24 -0
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +153 -0
- package/lib/components/ConditionBuilder/utils/util.d.ts +4 -0
- package/lib/components/ConditionBuilder/utils/util.js +20 -0
- package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +106 -4
- package/lib/components/CreateTearsheet/CreateTearsheet.js +12 -32
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +1 -0
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -0
- package/lib/components/Datagrid/useParentDimensions.js +1 -1
- package/lib/components/Datagrid/useSkeletonRows.d.ts +1 -1
- package/lib/components/Datagrid/useSkeletonRows.js +11 -3
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +104 -2
- package/lib/components/EditUpdateCards/EditUpdateCards.js +3 -0
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -3
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +97 -2
- package/lib/components/ExpressiveCard/ExpressiveCard.js +4 -0
- package/lib/components/InlineTip/InlineTipButton.d.ts +21 -2
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +100 -2
- package/lib/components/InterstitialScreen/InterstitialScreen.js +24 -13
- package/lib/components/Nav/NavItem.js +2 -2
- package/lib/components/NotificationsPanel/NotificationsPanel.js +5 -6
- package/lib/components/PageHeader/PageHeader.js +11 -2
- package/lib/components/SidePanel/SidePanel.js +1 -1
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +1 -5
- package/lib/components/SimpleHeader/SimpleHeader.js +2 -4
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +4 -13
- package/lib/components/Tearsheet/TearsheetShell.d.ts +119 -10
- package/lib/components/Tearsheet/TearsheetShell.js +16 -6
- package/lib/components/WebTerminal/WebTerminal.d.ts +46 -2
- package/lib/components/WebTerminal/WebTerminal.js +2 -2
- package/lib/global/js/hooks/usePrefersReducedMotion.d.ts +2 -0
- package/lib/global/js/hooks/usePrefersReducedMotion.js +32 -0
- package/lib/global/js/utils/Wrap.d.ts +31 -2
- package/lib/global/js/utils/Wrap.js +7 -9
- package/lib/global/js/utils/getNodeTextContent.d.ts +1 -1
- package/lib/global/js/utils/getNodeTextContent.js +1 -1
- package/lib/global/js/utils/window.d.ts +2 -0
- package/lib/global/js/utils/window.js +16 -0
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +2912 -0
- package/package.json +6 -4
- package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +1 -1
- package/scss/components/ConditionBuilder/_condition-builder.scss +26 -0
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +46 -0
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +194 -0
- package/scss/components/ConditionBuilder/styles/_index.scss +2 -0
- package/scss/components/Guidebanner/_guidebanner.scss +3 -0
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +1 -6
- package/scss/components/Tearsheet/_tearsheet.scss +3 -1
- package/telemetry.yml +939 -683
- package/es/components/ConditionBuilder/assets/sampleInput.d.ts +0 -58
- package/es/global/js/utils/keyboardNavigation.d.ts +0 -27
- package/es/global/js/utils/keyboardNavigation.js +0 -33
- package/es/global/js/utils/wrapFocus.d.ts +0 -25
- package/es/global/js/utils/wrapFocus.js +0 -68
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-8.js +0 -3004
- package/lib/components/ConditionBuilder/assets/sampleInput.d.ts +0 -58
- package/lib/global/js/utils/keyboardNavigation.d.ts +0 -27
- package/lib/global/js/utils/keyboardNavigation.js +0 -39
- package/lib/global/js/utils/wrapFocus.d.ts +0 -25
- package/lib/global/js/utils/wrapFocus.js +0 -73
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-8.js +0 -3136
@@ -1,7 +1,109 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2022, 2022
|
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, { ReactNode } from 'react';
|
8
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
9
|
+
type ActionIcon = {
|
10
|
+
id: string;
|
11
|
+
icon: CarbonIconType;
|
12
|
+
onKeyDown?(): void;
|
13
|
+
onClick?(): void;
|
14
|
+
iconDescription: string;
|
15
|
+
href?: string;
|
16
|
+
};
|
17
|
+
interface EditUpdateCardsProps {
|
18
|
+
/**
|
19
|
+
* Icons that are displayed on card. Refer to design documentation for implementation guidelines
|
20
|
+
*/
|
21
|
+
actionIcons?: Array<ActionIcon>;
|
22
|
+
/**
|
23
|
+
* Determines if the action icons are on the top or bottom of the card
|
24
|
+
*/
|
25
|
+
actionsPlacement?: 'top' | 'bottom';
|
26
|
+
/**
|
27
|
+
* Optional label for the top of the card.
|
28
|
+
*/
|
29
|
+
className?: string;
|
30
|
+
/**
|
31
|
+
* Optional header description
|
32
|
+
*/
|
33
|
+
description?: string;
|
34
|
+
/**
|
35
|
+
* Edit mode children
|
36
|
+
*/
|
37
|
+
editChildren?: ReactNode;
|
38
|
+
/**
|
39
|
+
* Edit mode
|
40
|
+
*/
|
41
|
+
editMode?: boolean;
|
42
|
+
/**
|
43
|
+
* Optional label for the top of the card
|
44
|
+
*/
|
45
|
+
label?: string;
|
46
|
+
/**
|
47
|
+
* Function that's called from the primary button or action icon
|
48
|
+
*/
|
49
|
+
onPrimaryButtonClick?(): void;
|
50
|
+
/**
|
51
|
+
* Function that's called from the secondary button or action icon
|
52
|
+
*/
|
53
|
+
onSecondaryButtonClick?(): void;
|
54
|
+
/**
|
55
|
+
* Preview mode children
|
56
|
+
*/
|
57
|
+
previewChildren?: ReactNode;
|
58
|
+
/**
|
59
|
+
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
60
|
+
*/
|
61
|
+
primaryButtonIcon?: CarbonIconType;
|
62
|
+
/**
|
63
|
+
* Establishes the kind of button displayed for the primary button
|
64
|
+
*/
|
65
|
+
primaryButtonKind?: 'primary' | 'ghost';
|
66
|
+
/**
|
67
|
+
* Determines if the primary button is on the top or bottom of the card
|
68
|
+
*/
|
69
|
+
primaryButtonPlacement?: 'top' | 'bottom';
|
70
|
+
/**
|
71
|
+
* The text that's displayed in the primary button
|
72
|
+
*/
|
73
|
+
primaryButtonText?: string;
|
74
|
+
/**
|
75
|
+
* Optionally specify an href for your Button to become an <a> element
|
76
|
+
*/
|
77
|
+
secondaryButtonHref?: string;
|
78
|
+
/**
|
79
|
+
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
80
|
+
*/
|
81
|
+
secondaryButtonIcon?: CarbonIconType;
|
82
|
+
/**
|
83
|
+
* Establishes the kind of button displayed for the secondary button
|
84
|
+
*/
|
85
|
+
secondaryButtonKind?: 'secondary' | 'ghost';
|
86
|
+
/**
|
87
|
+
* Determines if the secondary button is on the top or bottom of the card
|
88
|
+
*/
|
89
|
+
secondaryButtonPlacement?: 'top' | 'bottom';
|
90
|
+
/**
|
91
|
+
* The text that's displayed in the secondary button
|
92
|
+
*/
|
93
|
+
secondaryButtonText?: string;
|
94
|
+
/**
|
95
|
+
* Title that's displayed at the top of the card
|
96
|
+
*/
|
97
|
+
title?: string;
|
98
|
+
/**
|
99
|
+
* Determines title size
|
100
|
+
*/
|
101
|
+
titleSize?: 'default' | 'large';
|
102
|
+
}
|
1
103
|
/**
|
2
104
|
Editable cards allow a user to view, modify, and save the content contained within the card.
|
3
105
|
These cards are generally used in instances where a user needs to make changes to a resource instances
|
4
106
|
(ex. configuration details), account plan, etc. Editable cards allow a user to edit something within context.
|
5
107
|
*/
|
6
|
-
export let EditUpdateCards: React.ForwardRefExoticComponent<React.RefAttributes<
|
7
|
-
|
108
|
+
export declare let EditUpdateCards: React.ForwardRefExoticComponent<EditUpdateCardsProps & React.RefAttributes<HTMLDivElement>>;
|
109
|
+
export {};
|
@@ -118,6 +118,7 @@ exports.EditUpdateCards.propTypes = {
|
|
118
118
|
/**
|
119
119
|
* Icons that are displayed on card. Refer to design documentation for implementation guidelines
|
120
120
|
*/
|
121
|
+
/**@ts-ignore */
|
121
122
|
actionIcons: index["default"].arrayOf(index["default"].shape({
|
122
123
|
id: index["default"].string,
|
123
124
|
icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
@@ -165,6 +166,7 @@ exports.EditUpdateCards.propTypes = {
|
|
165
166
|
/**
|
166
167
|
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
167
168
|
*/
|
169
|
+
/**@ts-ignore */
|
168
170
|
primaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
169
171
|
/**
|
170
172
|
* Establishes the kind of button displayed for the primary button
|
@@ -185,6 +187,7 @@ exports.EditUpdateCards.propTypes = {
|
|
185
187
|
/**
|
186
188
|
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
187
189
|
*/
|
190
|
+
/**@ts-ignore */
|
188
191
|
secondaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
189
192
|
/**
|
190
193
|
* Establishes the kind of button displayed for the secondary button
|
@@ -1,5 +1,64 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2024
|
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
|
+
/// <reference path="../../../../src/custom-typings/index.d.ts" />
|
8
|
+
import React, { ReactNode } from 'react';
|
9
|
+
import { ButtonProps } from '@carbon/react';
|
10
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
11
|
+
interface NotificationsEmptyStateProps {
|
12
|
+
/**
|
13
|
+
* Empty state action button
|
14
|
+
*/
|
15
|
+
action?: {
|
16
|
+
kind?: 'primary' | 'secondary' | 'tertiary';
|
17
|
+
renderIcon?: CarbonIconType;
|
18
|
+
onClick?: ButtonProps['onClick'];
|
19
|
+
text?: string;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* Provide an optional class to be applied to the containing node.
|
23
|
+
*/
|
24
|
+
className?: string;
|
25
|
+
/**
|
26
|
+
* The alt text for empty state svg images. If not provided , title will be used.
|
27
|
+
*/
|
28
|
+
illustrationDescription?: string;
|
29
|
+
/**
|
30
|
+
* Designates the position of the illustration relative to the content
|
31
|
+
*/
|
32
|
+
illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
|
33
|
+
/**
|
34
|
+
* Empty state illustration theme variations.
|
35
|
+
* To ensure you use the correct themed illustrations, you can conditionally specify light or dark
|
36
|
+
* based on your app's current theme value. Example:
|
37
|
+
* `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
|
38
|
+
*/
|
39
|
+
illustrationTheme?: 'light' | 'dark';
|
40
|
+
/**
|
41
|
+
* Empty state link object
|
42
|
+
*/
|
43
|
+
link?: {
|
44
|
+
text?: string | ReactNode;
|
45
|
+
href?: string;
|
46
|
+
};
|
47
|
+
/**
|
48
|
+
* Empty state size
|
49
|
+
*/
|
50
|
+
size?: 'lg' | 'sm';
|
51
|
+
/**
|
52
|
+
* Empty state subtitle
|
53
|
+
*/
|
54
|
+
subtitle: ReactNode;
|
55
|
+
/**
|
56
|
+
* Empty state title
|
57
|
+
*/
|
58
|
+
title: ReactNode;
|
59
|
+
}
|
1
60
|
/**
|
2
61
|
* The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
|
3
62
|
*/
|
4
|
-
export let NotificationsEmptyState: React.ForwardRefExoticComponent<React.RefAttributes<
|
5
|
-
|
63
|
+
export declare let NotificationsEmptyState: React.ForwardRefExoticComponent<NotificationsEmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
64
|
+
export {};
|
@@ -26,11 +26,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
26
26
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
27
27
|
|
28
28
|
var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "subtitle", "title"];
|
29
|
-
|
30
29
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
31
30
|
var blockClass = "".concat(settings.pkg.prefix, "--empty-state");
|
32
31
|
var componentName = 'NotificationsEmptyState';
|
33
|
-
|
34
32
|
/**
|
35
33
|
* The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
|
36
34
|
*/
|
@@ -59,7 +57,7 @@ exports.NotificationsEmptyState = /*#__PURE__*/React__default["default"].forward
|
|
59
57
|
link: link,
|
60
58
|
size: size,
|
61
59
|
subtitle: subtitle,
|
62
|
-
title: title
|
60
|
+
title: title || ''
|
63
61
|
}));
|
64
62
|
});
|
65
63
|
|
@@ -1,2 +1,97 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
2
|
+
type ActionIcon = {
|
3
|
+
id?: string;
|
4
|
+
icon?: () => void | object;
|
5
|
+
onKeydown?: () => void;
|
6
|
+
onClick?: () => void;
|
7
|
+
iconDescription?: string;
|
8
|
+
href?: string;
|
9
|
+
};
|
10
|
+
interface ExpressiveCardProps extends PropsWithChildren {
|
11
|
+
/**
|
12
|
+
* Icons that are displayed on card. Refer to design documentation for implementation guidelines. Note- href will supersede onClick
|
13
|
+
*/
|
14
|
+
actionIcons?: ActionIcon[];
|
15
|
+
/**
|
16
|
+
* Content that shows in the body of the card
|
17
|
+
*/
|
18
|
+
/**
|
19
|
+
* Optional user provided class
|
20
|
+
*/
|
21
|
+
className?: string;
|
22
|
+
/**
|
23
|
+
* Optional header description
|
24
|
+
*/
|
25
|
+
description?: string | object | ReactNode;
|
26
|
+
/**
|
27
|
+
* Optional label for the top of the card
|
28
|
+
*/
|
29
|
+
label?: string | object | ReactNode;
|
30
|
+
/**
|
31
|
+
* Optional media content like an image to be placed in the card
|
32
|
+
*/
|
33
|
+
media?: ReactNode;
|
34
|
+
/**
|
35
|
+
* Establishes the position of the media in the card
|
36
|
+
*/
|
37
|
+
mediaPosition?: 'top' | 'left';
|
38
|
+
/**
|
39
|
+
* Provides the callback for a clickable card
|
40
|
+
*/
|
41
|
+
onClick?: () => void;
|
42
|
+
/**
|
43
|
+
* Function that's called from the primary button or action icon
|
44
|
+
*/
|
45
|
+
onPrimaryButtonClick?: () => void;
|
46
|
+
/**
|
47
|
+
* Function that's called from the secondary button
|
48
|
+
*/
|
49
|
+
onSecondaryButtonClick?: () => void;
|
50
|
+
/**
|
51
|
+
* Provides the icon that's displayed at the top of the card
|
52
|
+
*/
|
53
|
+
pictogram?: () => void | object;
|
54
|
+
/**
|
55
|
+
* Optionally specify an href for your Button to become an <a> element
|
56
|
+
*/
|
57
|
+
primaryButtonHref?: string;
|
58
|
+
/**
|
59
|
+
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
60
|
+
*/
|
61
|
+
primaryButtonIcon?: () => void | object;
|
62
|
+
/**
|
63
|
+
* Establishes the kind of button displayed for the primary button
|
64
|
+
*/
|
65
|
+
primaryButtonKind?: 'primary' | 'ghost';
|
66
|
+
/**
|
67
|
+
* The text that's displayed in the primary button
|
68
|
+
*/
|
69
|
+
primaryButtonText?: string;
|
70
|
+
/**
|
71
|
+
* Optionally specify an href for your Button to become an <a> element
|
72
|
+
*/
|
73
|
+
secondaryButtonHref?: string;
|
74
|
+
/**
|
75
|
+
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
76
|
+
*/
|
77
|
+
secondaryButtonIcon?: () => void | object;
|
78
|
+
/**
|
79
|
+
* Establishes the kind of button displayed for the secondary button
|
80
|
+
*/
|
81
|
+
secondaryButtonKind?: 'secondary' | 'ghost';
|
82
|
+
/**
|
83
|
+
* The text that's displayed in the secondary button
|
84
|
+
*/
|
85
|
+
secondaryButtonText?: string;
|
86
|
+
/**
|
87
|
+
* **Experimental:** For all cases a `Slug` component can be provided.
|
88
|
+
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
89
|
+
*/
|
90
|
+
slug?: ReactNode | boolean;
|
91
|
+
/**
|
92
|
+
* Title that's displayed at the top of the card
|
93
|
+
*/
|
94
|
+
title?: string | object | ReactNode;
|
95
|
+
}
|
96
|
+
export declare let ExpressiveCard: React.ForwardRefExoticComponent<ExpressiveCardProps & React.RefAttributes<HTMLDivElement>>;
|
97
|
+
export {};
|
@@ -35,6 +35,7 @@ exports.ExpressiveCard.propTypes = {
|
|
35
35
|
/**
|
36
36
|
* Icons that are displayed on card. Refer to design documentation for implementation guidelines. Note- href will supersede onClick
|
37
37
|
*/
|
38
|
+
/**@ts-ignore */
|
38
39
|
actionIcons: index["default"].arrayOf(index["default"].shape({
|
39
40
|
id: index["default"].string,
|
40
41
|
icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
@@ -82,6 +83,7 @@ exports.ExpressiveCard.propTypes = {
|
|
82
83
|
/**
|
83
84
|
* Provides the icon that's displayed at the top of the card
|
84
85
|
*/
|
86
|
+
/**@ts-ignore */
|
85
87
|
pictogram: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
86
88
|
/**
|
87
89
|
* Optionally specify an href for your Button to become an <a> element
|
@@ -90,6 +92,7 @@ exports.ExpressiveCard.propTypes = {
|
|
90
92
|
/**
|
91
93
|
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
92
94
|
*/
|
95
|
+
/**@ts-ignore */
|
93
96
|
primaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
94
97
|
/**
|
95
98
|
* Establishes the kind of button displayed for the primary button
|
@@ -106,6 +109,7 @@ exports.ExpressiveCard.propTypes = {
|
|
106
109
|
/**
|
107
110
|
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
108
111
|
*/
|
112
|
+
/**@ts-ignore */
|
109
113
|
secondaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
110
114
|
/**
|
111
115
|
* Establishes the kind of button displayed for the secondary button
|
@@ -1,5 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2023, 2024
|
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, { ReactNode } from 'react';
|
8
|
+
interface InlineTipButtonProps {
|
9
|
+
/**
|
10
|
+
* Provide an optional class to be applied to the containing node.
|
11
|
+
*/
|
12
|
+
className?: string;
|
13
|
+
/**
|
14
|
+
* Provide the contents of the InlineTip.
|
15
|
+
*/
|
16
|
+
children: ReactNode;
|
17
|
+
}
|
1
18
|
/**
|
2
19
|
* This is a standard Carbon button, styled specifically for use inside InlineTip.
|
3
20
|
*/
|
4
|
-
export let InlineTipButton: React.ForwardRefExoticComponent<
|
5
|
-
|
21
|
+
export declare let InlineTipButton: React.ForwardRefExoticComponent<InlineTipButtonProps & {
|
22
|
+
children?: React.ReactNode;
|
23
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
24
|
+
export {};
|
@@ -1,8 +1,106 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2024, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
8
|
+
type Media = {
|
9
|
+
breakpoints?: {
|
10
|
+
xlg?: number;
|
11
|
+
lg?: number;
|
12
|
+
};
|
13
|
+
} & ({
|
14
|
+
render?: () => ReactNode;
|
15
|
+
filePaths?: never;
|
16
|
+
} | {
|
17
|
+
render?: never;
|
18
|
+
filePaths?: string[];
|
19
|
+
});
|
20
|
+
interface InterstitialScreenProps extends PropsWithChildren {
|
21
|
+
/**
|
22
|
+
* Provide the contents of the InterstitialScreen.
|
23
|
+
*/
|
24
|
+
children: ReactNode;
|
25
|
+
/**
|
26
|
+
* Provide an optional class to be applied to the containing node.
|
27
|
+
*/
|
28
|
+
className?: string;
|
29
|
+
/**
|
30
|
+
* Tooltip text and aria label for the Close button icon.
|
31
|
+
*/
|
32
|
+
closeIconDescription?: string;
|
33
|
+
/**
|
34
|
+
* The domain this app belongs to, e.g. "IBM Cloud Pak".
|
35
|
+
*/
|
36
|
+
domainName?: string;
|
37
|
+
/**
|
38
|
+
* Provide an optional class to be applied to the <header> element >.
|
39
|
+
*/
|
40
|
+
headerClassName?: string;
|
41
|
+
/**
|
42
|
+
* Provide an optional class to be applied to the <header> element >.
|
43
|
+
*/
|
44
|
+
headerTitle?: string;
|
45
|
+
/**
|
46
|
+
* Optional parameter to hide the progress indicator when multiple steps are used.
|
47
|
+
*/
|
48
|
+
hideProgressIndicator?: boolean;
|
49
|
+
/**
|
50
|
+
* The aria label applied to the Interstitial Screen component
|
51
|
+
*/
|
52
|
+
interstitialAriaLabel?: string;
|
53
|
+
/**
|
54
|
+
* Specifies whether the component is shown as a full-screen
|
55
|
+
* experience, else it is shown as a modal by default.
|
56
|
+
*/
|
57
|
+
isFullScreen?: boolean;
|
58
|
+
/**
|
59
|
+
* Specifies whether the component is currently open.
|
60
|
+
*/
|
61
|
+
isOpen?: boolean;
|
62
|
+
/**
|
63
|
+
* The object describing an image in one of two shapes.
|
64
|
+
*
|
65
|
+
* If a single media element is required, use `{render}`.
|
66
|
+
*
|
67
|
+
* If a stepped animation is required, use `{filePaths}`.
|
68
|
+
*
|
69
|
+
* Breakpoints are used to set the media content column size as well as the remainder for the main content areas column size.
|
70
|
+
* Medium and small breakpoints will be set to 0 internally to focus on the main content area.
|
71
|
+
* @see {@link MEDIA_PROP_TYPE}.
|
72
|
+
*/
|
73
|
+
media?: Media;
|
74
|
+
/**
|
75
|
+
* The label for the Next button.
|
76
|
+
*/
|
77
|
+
nextButtonLabel?: string;
|
78
|
+
/**
|
79
|
+
* Function to call when the close button is clicked.
|
80
|
+
*/
|
81
|
+
onClose?: () => void;
|
82
|
+
/**
|
83
|
+
* The label for the Previous button.
|
84
|
+
*/
|
85
|
+
previousButtonLabel?: string;
|
86
|
+
/**
|
87
|
+
* The name of this app, e.g. "QRadar".
|
88
|
+
*/
|
89
|
+
productName?: string;
|
90
|
+
/**
|
91
|
+
* The label for the skip button.
|
92
|
+
*/
|
93
|
+
skipButtonLabel?: string;
|
94
|
+
/**
|
95
|
+
* The label for the start button.
|
96
|
+
*/
|
97
|
+
startButtonLabel?: string;
|
98
|
+
}
|
1
99
|
/**
|
2
100
|
* InterstitialScreen can be a full page or an overlay, and are
|
3
101
|
* shown on the first time a user accesses a new experience
|
4
102
|
* (e.g. upon first login or first time opening a page where a
|
5
103
|
* newly purchased capability is presented).
|
6
104
|
*/
|
7
|
-
export let InterstitialScreen: React.ForwardRefExoticComponent<React.RefAttributes<
|
8
|
-
|
105
|
+
export declare let InterstitialScreen: React.ForwardRefExoticComponent<InterstitialScreenProps & React.RefAttributes<HTMLDivElement>>;
|
106
|
+
export {};
|
@@ -60,7 +60,6 @@ var defaults = {
|
|
60
60
|
skipButtonLabel: '',
|
61
61
|
startButtonLabel: 'Get started'
|
62
62
|
};
|
63
|
-
|
64
63
|
/**
|
65
64
|
* InterstitialScreen can be a full page or an overlay, and are
|
66
65
|
* shown on the first time a user accesses a new experience
|
@@ -115,7 +114,7 @@ exports.InterstitialScreen = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
115
114
|
var childArray = React.Children.toArray(children);
|
116
115
|
var isMultiStep = childArray.length > 1;
|
117
116
|
var mediaIsDefined = (media === null || media === void 0 ? void 0 : media.render) || (media === null || media === void 0 ? void 0 : media.filePaths);
|
118
|
-
var bodyScrollRef = React.useRef();
|
117
|
+
var bodyScrollRef = React.useRef(null);
|
119
118
|
var mediaBreakpoints = {
|
120
119
|
xlg: (media === null || media === void 0 || (_media$breakpoints = media.breakpoints) === null || _media$breakpoints === void 0 ? void 0 : _media$breakpoints.xlg) || 0,
|
121
120
|
lg: (media === null || media === void 0 || (_media$breakpoints2 = media.breakpoints) === null || _media$breakpoints2 === void 0 ? void 0 : _media$breakpoints2.lg) || 0,
|
@@ -136,7 +135,8 @@ exports.InterstitialScreen = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
136
135
|
onClose();
|
137
136
|
}, [onClose]);
|
138
137
|
var scrollBodyToTop = function scrollBodyToTop() {
|
139
|
-
|
138
|
+
var _bodyScrollRef$curren;
|
139
|
+
(_bodyScrollRef$curren = bodyScrollRef.current) === null || _bodyScrollRef$curren === void 0 || _bodyScrollRef$curren.scroll({
|
140
140
|
top: 0,
|
141
141
|
behavior: 'smooth'
|
142
142
|
});
|
@@ -206,10 +206,12 @@ exports.InterstitialScreen = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
206
206
|
vertical: false,
|
207
207
|
currentIndex: progStep
|
208
208
|
}, childArray.map(function (child, idx) {
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
209
|
+
if ( /*#__PURE__*/React.isValidElement(child)) {
|
210
|
+
return /*#__PURE__*/React__default["default"].createElement(react.ProgressStep, {
|
211
|
+
key: idx,
|
212
|
+
label: child.props.stepTitle
|
213
|
+
});
|
214
|
+
}
|
213
215
|
})))), /*#__PURE__*/React__default["default"].createElement(react.ModalBody, {
|
214
216
|
className: bodyBlockClass
|
215
217
|
}, childElements), /*#__PURE__*/React__default["default"].createElement(react.ModalFooter, null, renderFooter()));
|
@@ -235,10 +237,12 @@ exports.InterstitialScreen = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
235
237
|
vertical: false,
|
236
238
|
currentIndex: progStep
|
237
239
|
}, childArray.map(function (child, idx) {
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
240
|
+
if ( /*#__PURE__*/React.isValidElement(child)) {
|
241
|
+
return /*#__PURE__*/React__default["default"].createElement(react.ProgressStep, {
|
242
|
+
key: idx,
|
243
|
+
label: child.props.stepTitle
|
244
|
+
});
|
245
|
+
}
|
242
246
|
})))), childElements, renderFooter()));
|
243
247
|
};
|
244
248
|
var renderBody = function renderBody() {
|
@@ -261,7 +265,10 @@ exports.InterstitialScreen = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
261
265
|
className: "".concat(blockClass, "__carousel")
|
262
266
|
}, /*#__PURE__*/React__default["default"].createElement(Carousel.Carousel, {
|
263
267
|
disableArrowScroll: true,
|
264
|
-
ref: scrollRef
|
268
|
+
ref: scrollRef,
|
269
|
+
onScroll: function onScroll(scrollPercent) {
|
270
|
+
scrollPercent === 0 && setProgStep(0);
|
271
|
+
}
|
265
272
|
}, children)) : childArray[0])), mediaIsDefined && /*#__PURE__*/React__default["default"].createElement(react.Column, {
|
266
273
|
xlg: mediaBreakpoints.xlg,
|
267
274
|
lg: mediaBreakpoints.lg,
|
@@ -280,7 +287,10 @@ exports.InterstitialScreen = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
280
287
|
className: "".concat(blockClass, "__carousel")
|
281
288
|
}, /*#__PURE__*/React__default["default"].createElement(Carousel.Carousel, {
|
282
289
|
disableArrowScroll: true,
|
283
|
-
ref: scrollRef
|
290
|
+
ref: scrollRef,
|
291
|
+
onScroll: function onScroll(scrollPercent) {
|
292
|
+
scrollPercent === 0 && setProgStep(0);
|
293
|
+
}
|
284
294
|
}, children)) : /*#__PURE__*/React__default["default"].createElement("div", null, childArray[0])));
|
285
295
|
};
|
286
296
|
var renderFooter = function renderFooter() {
|
@@ -388,6 +398,7 @@ exports.InterstitialScreen.propTypes = {
|
|
388
398
|
* Medium and small breakpoints will be set to 0 internally to focus on the main content area.
|
389
399
|
* @see {@link MEDIA_PROP_TYPE}.
|
390
400
|
*/
|
401
|
+
/**@ts-ignore */
|
391
402
|
media: index["default"].oneOfType([index["default"].shape({
|
392
403
|
render: index["default"].func,
|
393
404
|
breakpoints: index["default"].shape({
|
@@ -16,7 +16,7 @@ var cx = require('classnames');
|
|
16
16
|
var settings = require('../../settings.js');
|
17
17
|
var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
18
18
|
var NavItemLink = require('./NavItemLink.js');
|
19
|
-
var
|
19
|
+
var bucket9 = require('../../node_modules/@carbon/icons-react/es/generated/bucket-9.js');
|
20
20
|
|
21
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
22
|
|
@@ -91,7 +91,7 @@ var NavItem = function NavItem(_ref) {
|
|
91
91
|
element: element,
|
92
92
|
href: href,
|
93
93
|
tabIndex: navItemTabIndex
|
94
|
-
}, rest, externalLinkProps), children, externalLink && /*#__PURE__*/React__default["default"].createElement(
|
94
|
+
}, rest, externalLinkProps), children, externalLink && /*#__PURE__*/React__default["default"].createElement(bucket9.Launch, {
|
95
95
|
className: "".concat(blockClass, "__link--external__icon")
|
96
96
|
})));
|
97
97
|
};
|
@@ -17,6 +17,7 @@ var devtools = require('../../global/js/utils/devtools.js');
|
|
17
17
|
var settings = require('../../settings.js');
|
18
18
|
var utils = require('./utils.js');
|
19
19
|
var propsHelper = require('../../global/js/utils/props-helper.js');
|
20
|
+
var usePrefersReducedMotion = require('../../global/js/hooks/usePrefersReducedMotion.js');
|
20
21
|
var react = require('@carbon/react');
|
21
22
|
var icons = require('@carbon/react/icons');
|
22
23
|
var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
|
@@ -162,9 +163,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
162
163
|
var previousState = usePreviousValue.usePreviousValue({
|
163
164
|
open: open
|
164
165
|
});
|
165
|
-
var reducedMotion =
|
166
|
-
matches: true
|
167
|
-
};
|
166
|
+
var reducedMotion = usePrefersReducedMotion["default"]();
|
168
167
|
React.useEffect(function () {
|
169
168
|
// Set the notifications passed to the state within this component
|
170
169
|
setAllNotifications(data);
|
@@ -183,10 +182,10 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
183
182
|
!open && setRender(false);
|
184
183
|
};
|
185
184
|
React.useEffect(function () {
|
186
|
-
if (!open && previousState !== null && previousState !== void 0 && previousState.open && reducedMotion
|
185
|
+
if (!open && previousState !== null && previousState !== void 0 && previousState.open && reducedMotion) {
|
187
186
|
setRender(false);
|
188
187
|
}
|
189
|
-
}, [open,
|
188
|
+
}, [open, previousState === null || previousState === void 0 ? void 0 : previousState.open, reducedMotion]);
|
190
189
|
var sortChronologically = function sortChronologically(arr) {
|
191
190
|
if (!arr || arr && !arr.length) {
|
192
191
|
return;
|
@@ -326,7 +325,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
326
325
|
id: blockClass,
|
327
326
|
className: cx__default["default"](blockClass, className, "".concat(blockClass, "__container")),
|
328
327
|
style: {
|
329
|
-
animation: !reducedMotion
|
328
|
+
animation: !reducedMotion ? "".concat(open ? 'fade-in 250ms' : 'fade-out forwards 250ms') : null
|
330
329
|
},
|
331
330
|
onAnimationEnd: onAnimationEnd,
|
332
331
|
ref: ref || notificationPanelRef
|