From aeaa9ea6224439ae7d5aac11962f68f71830eb7f Mon Sep 17 00:00:00 2001 From: Alexandre Asselin Date: Wed, 21 Feb 2024 09:49:44 -0500 Subject: [PATCH] update dependencies and add a null chekc --- docs/features/tokens/TokenTable.jsx | 4 +++- packages/components/package.json | 2 +- yarn.lock | 26 +++++++++++++++++++------- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/docs/features/tokens/TokenTable.jsx b/docs/features/tokens/TokenTable.jsx index ddf2cf74a..96517e96c 100644 --- a/docs/features/tokens/TokenTable.jsx +++ b/docs/features/tokens/TokenTable.jsx @@ -35,7 +35,9 @@ export function TokenTable({ tokens }) { useEffect(() => { // we need to delay this until the ref is set - setRows(tokens.map(x => toRowValues(x, docsContext, new ThemeComputedStyle(ref)))); + if (ref.current) { + setRows(tokens.map(x => toRowValues(x, docsContext, new ThemeComputedStyle(ref)))); + } }, [tokens, docsContext, ref]); return ( diff --git a/packages/components/package.json b/packages/components/package.json index 1e99d708d..b29e92934 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -43,7 +43,7 @@ "use-debounce": "7.0.1" }, "devDependencies": { - "@hopper-ui/styled-system": "0.2.4" + "@hopper-ui/styled-system": "0.2.7" }, "gitHead": "f8b5019bdc53f68abe27e931387aeec7f0747d85" } diff --git a/yarn.lock b/yarn.lock index 8b4725ae0..de45f07ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1579,13 +1579,13 @@ clsx "2.0.0" react-aria-components "1.0.0-rc.0" -"@hopper-ui/styled-system@0.2.4": - version "0.2.4" - resolved "https://registry.yarnpkg.com/@hopper-ui/styled-system/-/styled-system-0.2.4.tgz#8c9a71bbaf7a3411888d4e4ffa368b66a3d79334" - integrity sha512-kD5xPsHY4vR6Yu/qjI6rNiKxifqzBIDhReo0Kqg7yLIWfvq36n+Fx6YTeacZpnvwXev68pi6IH6gCP7Pqu/4Fw== +"@hopper-ui/styled-system@0.2.7": + version "0.2.7" + resolved "https://registry.yarnpkg.com/@hopper-ui/styled-system/-/styled-system-0.2.7.tgz#72614b28fb56be01154a899ac17b8e4dbb4fb023" + integrity sha512-4ffa9pkr+gq7q+H77viyYWFSI+JFPpcP1tW+WFRSh71vdHKehKvkJIeos/wQw0LHkDaT2egV7L8siieFoHjGCQ== dependencies: - clsx "2.0.0" - react-aria "3.30.0" + "@react-aria/ssr" "^3.9.1" + clsx "^2.1.0" "@humanwhocodes/config-array@^0.11.8": version "0.11.8" @@ -3585,6 +3585,13 @@ dependencies: "@swc/helpers" "^0.5.0" +"@react-aria/ssr@^3.9.1": + version "3.9.2" + resolved "https://registry.yarnpkg.com/@react-aria/ssr/-/ssr-3.9.2.tgz#01b756965cd6e32b95217f968f513eb3bd6ee44b" + integrity sha512-0gKkgDYdnq1w+ey8KzG9l+H5Z821qh9vVjztk55rUg71vTk/Eaebeir+WtzcLLwTjw3m/asIjx8Y59y1lJZhBw== + dependencies: + "@swc/helpers" "^0.5.0" + "@react-aria/switch@^3.5.7": version "3.5.7" resolved "https://registry.yarnpkg.com/@react-aria/switch/-/switch-3.5.7.tgz#b543ac69b5d5dca70c75fc6c80b9c2c9d8191403" @@ -8329,6 +8336,11 @@ clsx@^1.1.1: resolved "https://registry.yarnpkg.com/clsx/-/clsx-1.2.1.tgz#0ddc4a20a549b59c93a4116bb26f5294ca17dc12" integrity sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg== +clsx@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.0.tgz#e851283bcb5c80ee7608db18487433f7b23f77cb" + integrity sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg== + cmd-shim@5.0.0, cmd-shim@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-5.0.0.tgz#8d0aaa1a6b0708630694c4dbde070ed94c707724" @@ -18387,7 +18399,7 @@ react-aria-components@1.0.0-rc.0: react-stately "^3.28.0" use-sync-external-store "^1.2.0" -react-aria@3.30.0, react-aria@^3.30.0: +react-aria@^3.30.0: version "3.30.0" resolved "https://registry.yarnpkg.com/react-aria/-/react-aria-3.30.0.tgz#dd53d2103050e7279ec8f3faacce5ae8521f61ce" integrity sha512-ULMlmH68/jXzkDaMjuM9O8dKCxnAYviW4E5sywfLX4J6mC6eGsQzoqtwWeQgr1M9SJqLfgKaVoDP1dLvb4XzEA==