@bitrise/bitkit 10.25.1 → 10.25.2
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/package.json
CHANGED
|
@@ -24,7 +24,7 @@ const getItemIds = (props: AccordionProps) => {
|
|
|
24
24
|
* Accordions display a list of high-level options that can expand/collapse to reveal more information.
|
|
25
25
|
*/
|
|
26
26
|
const Accordion = (props: AccordionProps) => {
|
|
27
|
-
const prefersReducedMotion = usePrefersReducedMotion();
|
|
27
|
+
const prefersReducedMotion = usePrefersReducedMotion({ ssr: false });
|
|
28
28
|
const { children, colorScheme, onChange, ...rest } = props;
|
|
29
29
|
const itemIds = getItemIds(props);
|
|
30
30
|
|
|
@@ -38,7 +38,7 @@ const Dialog = ({
|
|
|
38
38
|
...rest
|
|
39
39
|
}: DialogProps) => {
|
|
40
40
|
const dialogSize = useBreakpointValue({ [BREAKPOINTS.MOBILE]: 'mobile', [BREAKPOINTS.DESKTOP]: size });
|
|
41
|
-
const prefersReducedMotion = usePrefersReducedMotion();
|
|
41
|
+
const prefersReducedMotion = usePrefersReducedMotion({ ssr: false });
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
44
|
<Modal
|
|
@@ -16,7 +16,7 @@ export interface LightBoxProps extends Omit<HTMLChakraProps<'section'>, 'scrollB
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const LightBox = ({ children, dataTestid, size, isOpen, onClose, ...rest }: LightBoxProps) => {
|
|
19
|
-
const prefersReducedMotion = usePrefersReducedMotion();
|
|
19
|
+
const prefersReducedMotion = usePrefersReducedMotion({ ssr: false });
|
|
20
20
|
const dialogSize = useBreakpointValue({ [BREAKPOINTS.MOBILE]: 'mobile', [BREAKPOINTS.DESKTOP]: size });
|
|
21
21
|
|
|
22
22
|
return (
|