@norges-domstoler/dds-components 22.8.0 → 22.8.1
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/dist/IBMPlexSansVar-Italic-DPPECZC7.woff2 +0 -0
- package/dist/IBMPlexSansVar-Roman-BOLQQKKZ.woff2 +0 -0
- package/dist/index.css +8 -74
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
- package/dist/IBMPlexSans-Italic-5TWWGFM4.woff2 +0 -0
- package/dist/IBMPlexSans-Italic-HH2T6U4G.woff +0 -0
- package/dist/IBMPlexSans-Light-6JVLZATI.woff2 +0 -0
- package/dist/IBMPlexSans-Light-DJGXOPZM.woff +0 -0
- package/dist/IBMPlexSans-LightItalic-DGDYT5M4.woff +0 -0
- package/dist/IBMPlexSans-LightItalic-HGYKQIYJ.woff2 +0 -0
- package/dist/IBMPlexSans-Medium-F6RY5FT3.woff +0 -0
- package/dist/IBMPlexSans-Medium-GPYSN6WY.woff2 +0 -0
- package/dist/IBMPlexSans-MediumItalic-HYTLJOHM.woff +0 -0
- package/dist/IBMPlexSans-MediumItalic-NOK4NVHM.woff2 +0 -0
- package/dist/IBMPlexSans-Regular-7XP7CCD2.woff2 +0 -0
- package/dist/IBMPlexSans-Regular-7YEDMBFF.woff +0 -0
- package/dist/IBMPlexSans-SemiBold-6YAECOM6.woff +0 -0
- package/dist/IBMPlexSans-SemiBold-G57W7BEN.woff2 +0 -0
- package/dist/IBMPlexSans-SemiBoldItalic-4CLIFUGS.woff2 +0 -0
- package/dist/IBMPlexSans-SemiBoldItalic-IK6VH5Y5.woff +0 -0
package/dist/index.mjs
CHANGED
|
@@ -741,7 +741,6 @@ var useAccordion = ({
|
|
|
741
741
|
}, [setIsExpanded]);
|
|
742
742
|
const bodyContentRef = useRef5(null);
|
|
743
743
|
const [animate, setAnimate] = useState6(false);
|
|
744
|
-
const isMounted = useIsMounted();
|
|
745
744
|
const height = useElementHeight(bodyContentRef.current);
|
|
746
745
|
const [initialExpandedHeight, setIntialExpandedHeight] = useState6(null);
|
|
747
746
|
useLayoutEffect2(() => {
|
|
@@ -750,10 +749,11 @@ var useAccordion = ({
|
|
|
750
749
|
}
|
|
751
750
|
}, []);
|
|
752
751
|
useEffect11(() => {
|
|
753
|
-
|
|
752
|
+
const raf = requestAnimationFrame(() => {
|
|
754
753
|
setAnimate(true);
|
|
755
|
-
}
|
|
756
|
-
|
|
754
|
+
});
|
|
755
|
+
return () => cancelAnimationFrame(raf);
|
|
756
|
+
}, []);
|
|
757
757
|
const headerProps = {
|
|
758
758
|
id: `${accordionId}-header`,
|
|
759
759
|
onClick: toggleExpanded,
|