diff --git a/package.json b/package.json index d93713e062..16f57ebfe6 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,6 @@ "dependencies": { "@babel/runtime": "^7.3.4", "@popperjs/core": "^2.4.4", - "body-scroll-lock": "^2.5.8", "classnames": "^2.2.5", "cozy-interapp": "0.5.4", "date-fns": "^1.28.5", @@ -147,6 +146,7 @@ "react-markdown": "^4.0.8", "react-pdf": "^4.0.5", "react-popper": "^2.2.3", + "react-remove-scroll": "^2.4.0", "react-select": "2.2.0", "react-swipeable-views": "0.13.3" }, diff --git a/react/ActionMenu/Readme.md b/react/ActionMenu/Readme.md index cae813632c..a15454c391 100644 --- a/react/ActionMenu/Readme.md +++ b/react/ActionMenu/Readme.md @@ -2,7 +2,7 @@ Use an ActionMenu to show a list of actions. ActionMenus automatically switch th ### Classic -``` +```jsx import ActionMenu, { ActionMenuItem, ActionMenuRadio } from 'cozy-ui/transpiled/react/ActionMenu'; import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton'; import Icon from 'cozy-ui/transpiled/react/Icon'; @@ -39,7 +39,7 @@ desktop, we display a popper and not a BottomDrawer, context for the user is not lost, so the ActionMenuHeader would be redundant. This is why it is not rendered unless we are on mobile. -``` +```jsx import ActionMenu, { ActionMenuItem, ActionMenuHeader } from './index'; import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton'; import Icon from '../Icon'; @@ -67,7 +67,7 @@ const hideMenu = () => setState({ menuDisplayed: false }); ### With dedicated click handler -``` +```jsx import ActionMenu, { ActionMenuItem, ActionMenuHeader } from './index'; import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton'; import Icon from '../Icon'; @@ -96,7 +96,7 @@ const hideMenu = () => setState({ menuDisplayed: false }); You can pass a reference to a custom DOM element through the `anchorElRef` prop to attach the menu to that element. We use [popper.js](https://popper.js.org/docs/v2/) under the hood. You can use the `popperOptions` prop to pass options to the popper.js instance. This lets you control things like placement relative to the anchor, positioning strategies and more — refer to the popper doc for all the details. -``` +```jsx import ActionMenu, { ActionMenuItem } from 'cozy-ui/transpiled/react/ActionMenu'; import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton'; import Icon from 'cozy-ui/transpiled/react/Icon'; @@ -121,3 +121,81 @@ const anchorRef = React.createRef(); } ``` + +### Open Dialog from ActionMenu + +```jsx +import ActionMenu, { ActionMenuItem } from 'cozy-ui/transpiled/react/ActionMenu'; +import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton'; +import Icon from 'cozy-ui/transpiled/react/Icon'; +import Dialog, { + DialogTitle, + DialogActions, + DialogContent, + DialogContentText, + DialogCloseButton, +} from 'cozy-ui/transpiled/react/Dialog'; +import { + BreakpointsProvider +} from 'cozy-ui/transpiled/react/hooks/useBreakpoints' +import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme/' +import Button from 'cozy-ui/transpiled/react/Button' + +const testRef = React.createRef(); + +initialState = { menuDisplayed: isTesting(), modalOpened: isTesting() }; + +const showMenu = () => setState({ menuDisplayed: true }); +const hideMenu = () => setState({ menuDisplayed: false }); + +const anchorRef = React.createRef(); +const onClose = () => setState({ modalOpened: !state.modalOpened }); + +
+ + + <> + Show action menu + {state.menuDisplayed && + + } + onClick={() => setState({ modalOpened: !state.modalOpened })}> + Item 1 + + } + onClose()}> + onClose()} /> + Ada Lovelace + + Augusta Ada King-Noel, Countess of Lovelace (née Byron; 10 December 1815 + – 27 November 1852) was an English mathematician and writer, chiefly + known for her work on Charles Babbage's proposed mechanical + general-purpose computer, the Analytical Engine. She was the first to + recognise that the machine had applications beyond pure calculation, and + published the first algorithm intended to be carried out by such a + machine. As a result, she is often regarded as the first to recognise + the full potential of a "computing machine" and the first computer + programmer. + + + + + + +
+``` diff --git a/react/ActionMenu/index.jsx b/react/ActionMenu/index.jsx index b17a3bdaab..3a6631d162 100644 --- a/react/ActionMenu/index.jsx +++ b/react/ActionMenu/index.jsx @@ -20,6 +20,28 @@ const ActionMenuWrapper = ({ placement, preventOverflow, children +}) => { + if (!inline) return {children} + return ( + + {children} + + ) +} + +const NotInlineWrapper = ({ + anchorElRef, + popperOptions, + placement, + preventOverflow, + onClose, + children }) => { const [popperElement, setPopperElement] = React.useState(null) const referenceElement = anchorElRef ? anchorElRef.current : null @@ -44,8 +66,7 @@ const ActionMenuWrapper = ({ popperElement, options ) - - return inline ? ( + return (
{children}
- ) : ( - {children} ) } - const logDepecratedPlacement = createDepreciationLogger() const logDepecratedOverflow = createDepreciationLogger() const logDepecratedContainer = createDepreciationLogger() diff --git a/react/BottomDrawer/index.jsx b/react/BottomDrawer/index.jsx index 33f7c5481c..8879509057 100644 --- a/react/BottomDrawer/index.jsx +++ b/react/BottomDrawer/index.jsx @@ -2,6 +2,8 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import Hammer from 'hammerjs' import once from 'lodash/once' +import { RemoveScroll } from 'react-remove-scroll' + import styles from './styles.styl' import Overlay from '../Overlay' @@ -128,17 +130,19 @@ class BottomDrawer extends Component { this.menuNode = React.createRef() this.wrapperNode = React.createRef() return ( -
- -
- {children} -
-
-
+ +
+ +
+ {children} +
+
+
+
) } } diff --git a/react/Dialog/Readme.md b/react/Dialog/Readme.md index cde77d8a13..f091942a73 100644 --- a/react/Dialog/Readme.md +++ b/react/Dialog/Readme.md @@ -132,3 +132,55 @@ initialState = { modalOpened: isTesting() } ``` + + + +### With long content + +```jsx +import Dialog, { + DialogTitle, + DialogActions, + DialogContent, + DialogContentText, + DialogCloseButton, +} from 'cozy-ui/transpiled/react/Dialog'; + +import { + BreakpointsProvider +} from 'cozy-ui/transpiled/react/hooks/useBreakpoints' + +import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme/' +import Button from 'cozy-ui/transpiled/react/Button' +const onClose = () => setState({ modalOpened: !state.modalOpened }) + +initialState = { modalOpened: isTesting() } +;<> + + + + onClose()}> + onClose()} /> + Ada Lovelace + + {content.ada.long} + + + + + + +``` diff --git a/react/Dialog/index.jsx b/react/Dialog/index.jsx index f0992e7c68..d7ebb6293e 100644 --- a/react/Dialog/index.jsx +++ b/react/Dialog/index.jsx @@ -3,20 +3,24 @@ import React from 'react' import MUIDialog from '@material-ui/core/Dialog' import withMobileDialog from '@material-ui/core/withMobileDialog' import PropTypes from 'prop-types' +import { RemoveScroll } from 'react-remove-scroll' export const Dialog = props => { const { onClose, fullScreen, children, open, scroll, ...otherProps } = props + const Wrapper = open ? RemoveScroll : React.Fragment return ( - - {children} - + + + {children} + + ) } Dialog.defaultProps = { diff --git a/react/Overlay/index.jsx b/react/Overlay/index.jsx index 5c983fb37e..6e8fc63179 100644 --- a/react/Overlay/index.jsx +++ b/react/Overlay/index.jsx @@ -3,7 +3,7 @@ import styles from './styles.styl' import cx from 'classnames' import omit from 'lodash/omit' import PropTypes from 'prop-types' -import { disableBodyScroll, clearAllBodyScrollLocks } from 'body-scroll-lock' +import { RemoveScroll } from 'react-remove-scroll' const ESC_KEYCODE = 27 @@ -21,10 +21,6 @@ const bodyTallerThanWindow = () => { */ class Overlay extends Component { componentDidMount() { - if (bodyTallerThanWindow()) { - disableBodyScroll(document.body) - disableBodyScroll(document.body.parentNode) - } if (this.props.onEscape) { document.addEventListener('keydown', this.handleKeydown) } @@ -37,9 +33,6 @@ class Overlay extends Component { } componentWillUnmount() { - // restauration function can be undefined if there was - // an error during mounting/rendering - clearAllBodyScrollLocks() if (this.props.onEscape) { document.removeEventListener('keydown', this.handleKeydown) } @@ -54,13 +47,19 @@ class Overlay extends Component { render() { const { children, className } = this.props const domProps = omit(this.props, nonDOMProps) + // We use Overlay when opening an ActionMenu. + // We don't want to block the scroll on Desktop if the ActionMenu + // is displayed. So no RemoveScroll if the content is too small + // @todo Overlay should not RemoveScroll by itself. It should + // be done by lower component (like ActionMenu / Dialog / Modal...) + const Wrapper = bodyTallerThanWindow() ? React.Fragment : RemoveScroll return (
- {children} + {children}
) } diff --git a/react/__snapshots__/examples.spec.jsx.snap b/react/__snapshots__/examples.spec.jsx.snap index c6291cc8e3..bb3cf3a738 100644 --- a/react/__snapshots__/examples.spec.jsx.snap +++ b/react/__snapshots__/examples.spec.jsx.snap @@ -112,6 +112,28 @@ exports[`ActionMenu should render examples: ActionMenu 4`] = ` " `; +exports[`ActionMenu should render examples: ActionMenu 5`] = ` +"
+
+
+
+
+
+
+ +
+
Item 1
+
+
+
+
+
+
+
" +`; + exports[`AppTitle should render examples: AppTitle 1`] = ` "

Drive

@@ -183,18 +205,18 @@ exports[`Avatar should render examples: Avatar 4`] = ` exports[`Badge should render examples: Badge 1`] = ` "
error: dot: large: small:
-

4

+

4

error: dot: large: small:
-

+

error: dot: large: small:
-

4

+

4

" `; exports[`Badge should render examples: Badge 2`] = ` "
-

CD -

+

CD +

" `; @@ -431,7 +453,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
    1. -
    2. EMPTY
    3. +
    4. EMPTY
    5. @@ -447,7 +469,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
      1. -
      2. A
      3. +
      4. A
      5. @@ -463,7 +485,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
        1. -
        2. B
        3. +
        4. B
        5. @@ -556,7 +578,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
          1. -
          2. C
          3. +
          4. C
          5. @@ -605,7 +627,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
            1. -
            2. F
            3. +
            4. F
            5. @@ -632,7 +654,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
              1. -
              2. G
              3. +
              4. G
              5. @@ -648,7 +670,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                1. -
                2. H
                3. +
                4. H
                5. @@ -697,7 +719,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                  1. -
                  2. J
                  3. +
                  4. J
                  5. @@ -713,7 +735,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                    1. -
                    2. K
                    3. +
                    4. K
                    5. @@ -751,7 +773,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                      1. -
                      2. L
                      3. +
                      4. L
                      5. @@ -800,7 +822,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                        1. -
                        2. M
                        3. +
                        4. M
                        5. @@ -871,7 +893,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                          1. -
                          2. N
                          3. +
                          4. N
                          5. @@ -887,7 +909,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                            1. -
                            2. O
                            3. +
                            4. O
                            5. @@ -903,7 +925,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                              1. -
                              2. P
                              3. +
                              4. P
                              5. @@ -952,7 +974,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                                1. -
                                2. R
                                3. +
                                4. R
                                5. @@ -979,7 +1001,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                                  1. -
                                  2. S
                                  3. +
                                  4. S
                                  5. @@ -1050,7 +1072,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                                    1. -
                                    2. T
                                    3. +
                                    4. T
                                    5. @@ -1099,7 +1121,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                                      1. -
                                      2. V
                                      3. +
                                      4. V
                                      5. @@ -1137,7 +1159,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                                        1. -
                                        2. W
                                        3. +
                                        4. W
                                        5. @@ -1208,7 +1230,7 @@ exports[`ContactsList should render examples: ContactsList 1`] = `
                                          1. -
                                          2. X
                                          3. +
                                          4. X
                                          5. @@ -1234,7 +1256,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                              1. -
                                              2. EMPTY
                                              3. +
                                              4. EMPTY
                                              5. @@ -1250,7 +1272,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                1. -
                                                2. A
                                                3. +
                                                4. A
                                                5. @@ -1266,7 +1288,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                  1. -
                                                  2. B
                                                  3. +
                                                  4. B
                                                  5. @@ -1359,7 +1381,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                    1. -
                                                    2. C
                                                    3. +
                                                    4. C
                                                    5. @@ -1408,7 +1430,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                      1. -
                                                      2. F
                                                      3. +
                                                      4. F
                                                      5. @@ -1435,7 +1457,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                        1. -
                                                        2. G
                                                        3. +
                                                        4. G
                                                        5. @@ -1451,7 +1473,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                          1. -
                                                          2. H
                                                          3. +
                                                          4. H
                                                          5. @@ -1500,7 +1522,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                            1. -
                                                            2. J
                                                            3. +
                                                            4. J
                                                            5. @@ -1516,7 +1538,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                              1. -
                                                              2. K
                                                              3. +
                                                              4. K
                                                              5. @@ -1554,7 +1576,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                1. -
                                                                2. L
                                                                3. +
                                                                4. L
                                                                5. @@ -1603,7 +1625,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                  1. -
                                                                  2. M
                                                                  3. +
                                                                  4. M
                                                                  5. @@ -1674,7 +1696,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                    1. -
                                                                    2. N
                                                                    3. +
                                                                    4. N
                                                                    5. @@ -1690,7 +1712,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                      1. -
                                                                      2. O
                                                                      3. +
                                                                      4. O
                                                                      5. @@ -1706,7 +1728,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                        1. -
                                                                        2. P
                                                                        3. +
                                                                        4. P
                                                                        5. @@ -1755,7 +1777,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                          1. -
                                                                          2. R
                                                                          3. +
                                                                          4. R
                                                                          5. @@ -1782,7 +1804,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                            1. -
                                                                            2. S
                                                                            3. +
                                                                            4. S
                                                                            5. @@ -1853,7 +1875,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                              1. -
                                                                              2. T
                                                                              3. +
                                                                              4. T
                                                                              5. @@ -1902,7 +1924,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                                1. -
                                                                                2. V
                                                                                3. +
                                                                                4. V
                                                                                5. @@ -1940,7 +1962,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                                  1. -
                                                                                  2. W
                                                                                  3. +
                                                                                  4. W
                                                                                  5. @@ -2011,7 +2033,7 @@ exports[`ContactsList should render examples: ContactsList 2`] = `
                                                                                    1. -
                                                                                    2. X
                                                                                    3. +
                                                                                    4. X
                                                                                    5. @@ -2047,9 +2069,23 @@ exports[`DateMonthPicker should render examples: DateMonthPicker 1`] = `
                                                                                      " `; -exports[`Dialog should render examples: Dialog 1`] = `"
                                                                                      "`; +exports[`Dialog should render examples: Dialog 1`] = ` +"
                                                                                      +
                                                                                      +
                                                                                      " +`; + +exports[`Dialog should render examples: Dialog 2`] = ` +"
                                                                                      +
                                                                                      +
                                                                                      " +`; -exports[`Dialog should render examples: Dialog 2`] = `"
                                                                                      "`; +exports[`Dialog should render examples: Dialog 3`] = ` +"
                                                                                      +
                                                                                      +
                                                                                      " +`; exports[`Empty should render examples: Empty 1`] = ` "
                                                                                      @@ -6138,7 +6174,7 @@ exports[`Tabs should render examples: Tabs 1`] = `
                                            -

                                            +

                                            diff --git a/rsgscreenshots.json b/rsgscreenshots.json index b247e2295d..eed338d0ba 100644 --- a/rsgscreenshots.json +++ b/rsgscreenshots.json @@ -9,5 +9,8 @@ }, "Modal": { "perExampleScreenshot": true + }, + "Dialog": { + "perExampleScreenshot": true } } diff --git a/yarn.lock b/yarn.lock index e1d13e421b..ca6bce2902 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3410,11 +3410,6 @@ body-parser@1.19.0: raw-body "2.4.0" type-is "~1.6.17" -body-scroll-lock@^2.5.8: - version "2.6.1" - resolved "https://registry.yarnpkg.com/body-scroll-lock/-/body-scroll-lock-2.6.1.tgz#3782ff37404886faaee366968ceee40c3964d8f2" - integrity sha512-fsDsq10+BJrk/+eGADqxspyZpGiKSh3dK8ByE6KuDK0REmPB99U05p1t9xVTAM9J6j9PJGm6W/W+HsCPnOFj+Q== - bonjour@^3.5.0: version "3.5.0" resolved "https://registry.yarnpkg.com/bonjour/-/bonjour-3.5.0.tgz#8e890a183d8ee9a2393b3844c691a42bcf7bc9f5" @@ -5688,6 +5683,11 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= +detect-node-es@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/detect-node-es/-/detect-node-es-1.0.0.tgz#c0318b9e539a5256ca780dd9575c9345af05b8ed" + integrity sha512-S4AHriUkTX9FoFvL4G8hXDcx6t3gp2HpfCza3Q0v6S78gul2hKWifLQbeW+ZF89+hSm2ZIc/uF3J97ZgytgTRg== + detect-node@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c" @@ -7408,6 +7408,11 @@ get-caller-file@^2.0.1: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== +get-nonce@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-nonce/-/get-nonce-1.0.1.tgz#fdf3f0278073820d2ce9426c18f07481b1e0cdf3" + integrity sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q== + get-own-enumerable-property-symbols@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.0.tgz#b877b49a5c16aefac3655f2ed2ea5b684df8d203" @@ -14403,6 +14408,25 @@ react-redux@^7.2.0: prop-types "^15.7.2" react-is "^16.9.0" +react-remove-scroll-bar@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/react-remove-scroll-bar/-/react-remove-scroll-bar-2.1.0.tgz#edafe9b42a42c0dad9bdd10712772a1f9a39d7b9" + integrity sha512-5X5Y5YIPjIPrAoMJxf6Pfa7RLNGCgwZ95TdnVPgPuMftRfO8DaC7F4KP1b5eiO8hHbe7u+wZNDbYN5WUTpv7+g== + dependencies: + react-style-singleton "^2.1.0" + tslib "^1.0.0" + +react-remove-scroll@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.4.0.tgz#190c16eb508c5927595935499e8f5dd9ab0e75cf" + integrity sha512-BZIO3GaEs0Or1OhA5C//n1ibUP1HdjJmqUVUsOCMxwoIpaCocbB9TFKwHOkBa/nyYy3slirqXeiPYGwdSDiseA== + dependencies: + react-remove-scroll-bar "^2.1.0" + react-style-singleton "^2.1.0" + tslib "^1.0.0" + use-callback-ref "^1.2.3" + use-sidecar "^1.0.1" + react-select@2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/react-select/-/react-select-2.2.0.tgz#67c8b5c2dcb8df0384f2a103efe952570f5d6b93" @@ -14421,6 +14445,15 @@ react-simple-code-editor@^0.9.7: resolved "https://registry.yarnpkg.com/react-simple-code-editor/-/react-simple-code-editor-0.9.15.tgz#59e3583832e9e98992d3674b2d7673b4cd1c5709" integrity sha512-M8iKgjBTBZK92tZYgOEfMuR7c3zZ0q0v3QYllSxIPx3SU+w003VofH50txXQSBTu92pSOm2tidON1HbQ1l8BDA== +react-style-singleton@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/react-style-singleton/-/react-style-singleton-2.1.0.tgz#7396885332e9729957f9df51f08cadbfc164e1c4" + integrity sha512-DH4ED+YABC1dhvSDYGGreAHmfuTXj6+ezT3CmHoqIEfxNgEYfIMoOtmbRp42JsUst3IPqBTDL+8r4TF7EWhIHw== + dependencies: + get-nonce "^1.0.0" + invariant "^2.2.4" + tslib "^1.0.0" + react-styleguidist@9.1.16: version "9.1.16" resolved "https://registry.yarnpkg.com/react-styleguidist/-/react-styleguidist-9.1.16.tgz#8d70cf02c4c631cb906946388ff7b4a26812054d" @@ -17334,6 +17367,11 @@ trough@^1.0.0: resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.3.tgz#e29bd1614c6458d44869fc28b255ab7857ef7c24" integrity sha512-fwkLWH+DimvA4YCy+/nvJd61nWQQ2liO/nF/RjkTpiOGi+zxZzVkhb1mvbHIIW4b/8nDsYI8uTmAlc0nNkRMOw== +tslib@^1.0.0, tslib@^1.9.3: + version "1.14.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.0.tgz#d624983f3e2c5e0b55307c3dd6c86acd737622c6" + integrity sha512-+Zw5lu0D9tvBMjGP8LpvMb0u2WW2QV3y+D8mO6J+cNzCYIN4sVy43Bf9vl92nqFahutN0I8zHa7cc4vihIshnw== + tslib@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" @@ -17888,6 +17926,19 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" +use-callback-ref@^1.2.3: + version "1.2.4" + resolved "https://registry.yarnpkg.com/use-callback-ref/-/use-callback-ref-1.2.4.tgz#d86d1577bfd0b955b6e04aaf5971025f406bea3c" + integrity sha512-rXpsyvOnqdScyied4Uglsp14qzag1JIemLeTWGKbwpotWht57hbP78aNT+Q4wdFKQfQibbUX4fb6Qb4y11aVOQ== + +use-sidecar@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/use-sidecar/-/use-sidecar-1.0.3.tgz#17a4e567d4830c0c0ee100040e85a7fe68611e0f" + integrity sha512-ygJwGUBeQfWgDls7uTrlEDzJUUR67L8Rm14v/KfFtYCdHhtjHZx1Krb3DIQl3/Q5dJGfXLEQ02RY8BdNBv87SQ== + dependencies: + detect-node-es "^1.0.0" + tslib "^1.9.3" + use@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"