+ {isMultiStep && skipButtonLabel !== '' && (
+
+ )}
+
+ {isMultiStep && progStep > 0 && (
+
)}
-
- );
- };
- const renderFooter = () => {
- return (
-
- {isMultiStep && skipButtonLabel !== '' && (
+ {isMultiStep && progStep < progStepCeil && (
+
+ )}
+ {isMultiStep && progStep === progStepCeil && (
+ )}
+ {!isMultiStep && (
+
)}
-
- {isMultiStep && progStep > 0 && (
-
- )}
-
- {isMultiStep && progStep < progStepCeil && (
-
- )}
- {isMultiStep && progStep === progStepCeil && (
-
- )}
- {!isMultiStep && (
-
- )}
-
- );
- };
+
+ );
+ };
- return isFullScreen
- ? renderFullScreen(renderBody())
- : renderModal(renderBody());
- }
-);
+ return isFullScreen
+ ? renderFullScreen(renderBody())
+ : renderModal(renderBody());
+});
// Return a placeholder if not released and not enabled by feature flag
InterstitialScreen = pkg.checkComponentEnabled(
diff --git a/packages/ibm-products/src/components/InterstitialScreen/_storybook-styles.scss b/packages/ibm-products/src/components/InterstitialScreen/_storybook-styles.scss
index c3f864b7a9..f65e0f4a26 100644
--- a/packages/ibm-products/src/components/InterstitialScreen/_storybook-styles.scss
+++ b/packages/ibm-products/src/components/InterstitialScreen/_storybook-styles.scss
@@ -8,12 +8,12 @@
/* stylelint-disable max-nesting-depth */
/* stylelint-disable media-feature-range-notation */
-@use '@carbon/styles/scss/spacing' as *;
-@use '@carbon/styles/scss/theme' as *;
-@use '@carbon/styles/scss/spacing' as *;
-@use '@carbon/styles/scss/breakpoint' as *;
+@use '@carbon/react/scss/spacing' as *;
+@use '@carbon/react/scss/theme' as *;
+@use '@carbon/react/scss/spacing' as *;
+@use '@carbon/react/scss/breakpoint' as *;
@use '@carbon/react/scss/colors' as *;
-@use '@carbon/styles/scss/type';
+@use '@carbon/react/scss/type';
.CustomLayout {
display: flex;
diff --git a/packages/ibm-products/src/components/NonLinearReading/_storybook-styles.scss b/packages/ibm-products/src/components/NonLinearReading/_storybook-styles.scss
index 344456ad8e..dd0072ef42 100644
--- a/packages/ibm-products/src/components/NonLinearReading/_storybook-styles.scss
+++ b/packages/ibm-products/src/components/NonLinearReading/_storybook-styles.scss
@@ -6,10 +6,10 @@
//
@use '@carbon/react/scss/colors' as *;
-@use '@carbon/styles/scss/spacing' as *;
-@use '@carbon/styles/scss/theme' as *;
-@use '@carbon/styles/scss/themes';
-@use '@carbon/styles/scss/type';
+@use '@carbon/react/scss/spacing' as *;
+@use '@carbon/react/scss/theme' as *;
+@use '@carbon/react/scss/themes';
+@use '@carbon/react/scss/type';
// For demo purposes, have text surrounding component match styling in component.
#storybook-root {
diff --git a/packages/ibm-products/src/components/NotificationsPanel/NotificationsPanel.tsx b/packages/ibm-products/src/components/NotificationsPanel/NotificationsPanel.tsx
index d6083e6ee4..b9875618e4 100644
--- a/packages/ibm-products/src/components/NotificationsPanel/NotificationsPanel.tsx
+++ b/packages/ibm-products/src/components/NotificationsPanel/NotificationsPanel.tsx
@@ -376,7 +376,9 @@ export let NotificationsPanel = React.forwardRef(
const onAnimationEnd = () => {
// initialize the notification panel to close
- !open && setRender(false);
+ if (!open) {
+ setRender(false);
+ }
};
const handleBlur = ({
target: oldActiveNode,
@@ -546,8 +548,9 @@ export let NotificationsPanel = React.forwardRef(
) {
return;
}
- event.which === 13 &&
+ if (event.which === 13) {
notification.onNotificationClick(notification);
+ }
}}
>
{notification.type === 'error' && (
diff --git a/packages/ibm-products/src/components/NotificationsPanel/_storybook-styles.scss b/packages/ibm-products/src/components/NotificationsPanel/_storybook-styles.scss
index e4a9697ad4..d468e6dbbd 100644
--- a/packages/ibm-products/src/components/NotificationsPanel/_storybook-styles.scss
+++ b/packages/ibm-products/src/components/NotificationsPanel/_storybook-styles.scss
@@ -4,8 +4,8 @@
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//
-@use '@carbon/styles/scss/theme' as *;
-@use '@carbon/styles/scss/themes';
+@use '@carbon/react/scss/theme' as *;
+@use '@carbon/react/scss/themes';
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
$storybook-block-class: #{c4p-settings.$pkg-prefix}--notifications-panel__story;
diff --git a/packages/ibm-products/src/components/OptionsTile/_storybook-styles.scss b/packages/ibm-products/src/components/OptionsTile/_storybook-styles.scss
index 081bec2c98..b4db8ffe46 100644
--- a/packages/ibm-products/src/components/OptionsTile/_storybook-styles.scss
+++ b/packages/ibm-products/src/components/OptionsTile/_storybook-styles.scss
@@ -6,8 +6,8 @@
//
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
-@use '@carbon/styles/scss/spacing' as *;
-@use '@carbon/styles/scss/type';
+@use '@carbon/react/scss/spacing' as *;
+@use '@carbon/react/scss/type';
$block-class: #{c4p-settings.$pkg-prefix}--options-tile;
diff --git a/packages/ibm-products/src/components/PageHeader/PageHeader.tsx b/packages/ibm-products/src/components/PageHeader/PageHeader.tsx
index db5fac8d40..efa8f71a7c 100644
--- a/packages/ibm-products/src/components/PageHeader/PageHeader.tsx
+++ b/packages/ibm-products/src/components/PageHeader/PageHeader.tsx
@@ -20,6 +20,7 @@ import {
import { TagProps } from '@carbon/react/lib/components/Tag/Tag';
import React, {
ForwardedRef,
+ JSX,
MutableRefObject,
PropsWithChildren,
ReactNode,
diff --git a/packages/ibm-products/src/components/PageHeader/_storybook-styles.scss b/packages/ibm-products/src/components/PageHeader/_storybook-styles.scss
index 5fa46e83ae..71c68bcf22 100644
--- a/packages/ibm-products/src/components/PageHeader/_storybook-styles.scss
+++ b/packages/ibm-products/src/components/PageHeader/_storybook-styles.scss
@@ -5,9 +5,9 @@
// LICENSE file in the root directory of this source tree.
//
-@use '@carbon/styles/scss/theme' as *;
+@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
-@use '@carbon/styles/scss/type';
+@use '@carbon/react/scss/type';
$story-class: 'page-header-stories';
diff --git a/packages/ibm-products/src/components/ProductiveCard/_storybook-styles.scss b/packages/ibm-products/src/components/ProductiveCard/_storybook-styles.scss
index 2f41d52737..ca64adb7e8 100644
--- a/packages/ibm-products/src/components/ProductiveCard/_storybook-styles.scss
+++ b/packages/ibm-products/src/components/ProductiveCard/_storybook-styles.scss
@@ -7,8 +7,8 @@
// shared card styles can be found in the Card folder
@use '../Card/storybook-styles';
-@use '@carbon/styles/scss/theme' as *;
-@use '@carbon/styles/scss/spacing' as *;
+@use '@carbon/react/scss/theme' as *;
+@use '@carbon/react/scss/spacing' as *;
$story-class: 'productive-card-stories';
diff --git a/packages/ibm-products/src/components/Saving/_storybook-styles.scss b/packages/ibm-products/src/components/Saving/_storybook-styles.scss
index 921095038e..8e7a139c18 100644
--- a/packages/ibm-products/src/components/Saving/_storybook-styles.scss
+++ b/packages/ibm-products/src/components/Saving/_storybook-styles.scss
@@ -5,7 +5,7 @@
// LICENSE file in the root directory of this source tree.
//
-@use '@carbon/styles/scss/spacing' as *;
+@use '@carbon/react/scss/spacing' as *;
.saving-story-textarea {
margin-bottom: $spacing-03;
diff --git a/packages/ibm-products/src/components/SidePanel/_storybook-styles.scss b/packages/ibm-products/src/components/SidePanel/_storybook-styles.scss
index 32cf2ff51c..35a5db7d31 100644
--- a/packages/ibm-products/src/components/SidePanel/_storybook-styles.scss
+++ b/packages/ibm-products/src/components/SidePanel/_storybook-styles.scss
@@ -5,10 +5,10 @@
// LICENSE file in the root directory of this source tree.
//
-@use '@carbon/styles/scss/theme' as *;
-@use '@carbon/styles/scss/spacing' as *;
+@use '@carbon/react/scss/theme' as *;
+@use '@carbon/react/scss/spacing' as *;
@use '@carbon/themes/scss/themes';
-@use '@carbon/styles/scss/type';
+@use '@carbon/react/scss/type';
// @use '@carbon/ibm-products-styles/scss/global/decorators/side-panel-decorator'
// as *;
@use '../../../../ibm-products-styles/src/global/decorators/side-panel-decorator'
diff --git a/packages/ibm-products/src/components/SidePanel/motion/variants.js b/packages/ibm-products/src/components/SidePanel/motion/variants.js
index 196c328222..6db48ec1f9 100644
--- a/packages/ibm-products/src/components/SidePanel/motion/variants.js
+++ b/packages/ibm-products/src/components/SidePanel/motion/variants.js
@@ -39,8 +39,8 @@ export const panelVariants = {
? 0
: '100%'
: shouldReduceMotion
- ? 0
- : -320,
+ ? 0
+ : -320,
opacity: shouldReduceMotion ? 0 : 1,
}),
exit: ({ placement, shouldReduceMotion }) => ({
@@ -50,8 +50,8 @@ export const panelVariants = {
? 0
: '100%'
: shouldReduceMotion
- ? 0
- : -320,
+ ? 0
+ : -320,
transition: {
duration: DURATIONS.moderate01,
ease: EASINGS.productive.exit,
diff --git a/packages/ibm-products/src/components/SteppedAnimatedMedia/SteppedAnimatedMedia.tsx b/packages/ibm-products/src/components/SteppedAnimatedMedia/SteppedAnimatedMedia.tsx
index fec4de8517..7f295f021b 100644
--- a/packages/ibm-products/src/components/SteppedAnimatedMedia/SteppedAnimatedMedia.tsx
+++ b/packages/ibm-products/src/components/SteppedAnimatedMedia/SteppedAnimatedMedia.tsx
@@ -101,9 +101,11 @@ export const SteppedAnimatedMedia = React.forwardRef(
preserveAspectRatio: 'xMidYMid slice',
},
});
- prefersReducedMotion
- ? animRef.current?.goToAndStop(0)
- : animRef.current?.goToAndPlay(0);
+ if (prefersReducedMotion) {
+ animRef.current?.goToAndStop(0);
+ } else {
+ animRef.current?.goToAndPlay(0);
+ }
}
return () => animRef.current?.destroy();
diff --git a/packages/ibm-products/src/components/StringFormatter/_storybook-styles.scss b/packages/ibm-products/src/components/StringFormatter/_storybook-styles.scss
index 67235bf684..5a735ef686 100644
--- a/packages/ibm-products/src/components/StringFormatter/_storybook-styles.scss
+++ b/packages/ibm-products/src/components/StringFormatter/_storybook-styles.scss
@@ -5,10 +5,10 @@
// LICENSE file in the root directory of this source tree.
//
-@use '@carbon/styles/scss/spacing' as *;
-@use '@carbon/styles/scss/theme' as *;
-@use '@carbon/styles/scss/themes';
-@use '@carbon/styles/scss/type';
+@use '@carbon/react/scss/spacing' as *;
+@use '@carbon/react/scss/theme' as *;
+@use '@carbon/react/scss/themes';
+@use '@carbon/react/scss/type';
@forward '../../../../ibm-products-styles/src/global/styles/project-settings';
diff --git a/packages/ibm-products/src/components/TagSet/TagSet.tsx b/packages/ibm-products/src/components/TagSet/TagSet.tsx
index 886c7c3575..0e213fae4d 100644
--- a/packages/ibm-products/src/components/TagSet/TagSet.tsx
+++ b/packages/ibm-products/src/components/TagSet/TagSet.tsx
@@ -6,6 +6,7 @@
//
import React, {
+ JSX,
PropsWithChildren,
ReactNode,
useCallback,
@@ -97,7 +98,7 @@ export interface TagSetProps extends PropsWithChildren {
* Optional ref for custom resize container to measure available space
* Default will measure the available space of the TagSet container itself.
*/
- containingElementRef?: React.RefObject