Skip to content

Commit

Permalink
Merge pull request #88 from gsoft-inc/fix/87
Browse files Browse the repository at this point in the history
 update dependencies and add a null check
  • Loading branch information
alexasselin008 authored Feb 21, 2024
2 parents 74dda8b + aeaa9ea commit de87811
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
4 changes: 3 additions & 1 deletion docs/features/tokens/TokenTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
26 changes: 19 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1579,13 +1579,13 @@
clsx "2.0.0"
react-aria-components "1.0.0-rc.0"

"@hopper-ui/[email protected].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/[email protected].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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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==

[email protected], cmd-shim@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-5.0.0.tgz#8d0aaa1a6b0708630694c4dbde070ed94c707724"
Expand Down Expand Up @@ -18387,7 +18399,7 @@ [email protected]:
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==
Expand Down

0 comments on commit de87811

Please sign in to comment.