Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
fix: added isStyledComponent'
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj authored and Suraj committed Sep 6, 2023
1 parent 38ef205 commit 51757f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
2 changes: 2 additions & 0 deletions packages/animation-plugin/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ export class AnimationResolver implements IStyledPlugin {
//@ts-ignore
Component.styled.config = styledConfig;

//@ts-ignore
Component.isStyledComponent = true;
Component.displayName = 'StyledComponent';

return Component;
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/plugins/font-resolver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ export class FontResolver implements IStyledPlugin, FontPlugin {

return <NewComp sx={resolvedSxProps} {...rest} ref={ref} />;
});
//@ts-ignore
Comp.isStyledComponent = true;
return Comp;
}
}
29 changes: 8 additions & 21 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2497,27 +2497,6 @@
"@babel/traverse" "^7.20.5"
lodash.merge "^4.6.2"

"@gluestack-style/babel-plugin-styled-resolver@^0.1.15-alpha.0":
version "0.1.15-alpha.0"
resolved "https://registry.yarnpkg.com/@gluestack-style/babel-plugin-styled-resolver/-/babel-plugin-styled-resolver-0.1.15-alpha.0.tgz#776e0ba60cbdaeefcd966b6708dd0408d4a57213"
integrity sha512-Q0dDTW8QroqOxo5ZP9Ebq0wAAlVl6dOlOchT1LZlanRc2GzvAf12GZrTGdzYQybYh6oVNmoIQZn6/3zL6qfsow==
dependencies:
"@babel/core" "^7.20.5"
"@babel/generator" "^7.20.5"
"@babel/parser" "^7.20.5"
"@babel/plugin-transform-typescript" "^7.20.2"
"@babel/preset-typescript" "^7.18.6"
"@babel/traverse" "^7.20.5"
lodash.merge "^4.6.2"

"@gluestack-style/[email protected]":
version "0.1.31"
resolved "https://registry.yarnpkg.com/@gluestack-style/react/-/react-0.1.31.tgz#07e6740d448a49fa0133b6d94dc6239509f6b2df"
integrity sha512-SXVpHJSoNSVFZbOhQVlHInHMloKmZbW0tTzsxbktJcbt0r54dR1o+hsSXfsOBf5aJYLEKaT2jnjXxXAJRE6nOw==
dependencies:
inline-style-prefixer "^6.0.1"
normalize-css-color "^1.0.2"

"@gluestack-style/react@^0.1.11", "@gluestack-style/react@^0.1.33":
version "0.1.33"
resolved "https://registry.yarnpkg.com/@gluestack-style/react/-/react-0.1.33.tgz#cd18f38bf359527e4f79d223bb07e9024f40ba4f"
Expand All @@ -2526,6 +2505,14 @@
inline-style-prefixer "^6.0.1"
normalize-css-color "^1.0.2"

"@gluestack-style/react@^0.2.11-alpha.0", "@gluestack-style/react@^0.2.16", "@gluestack-style/react@^0.2.21":
version "0.2.27"
resolved "https://registry.yarnpkg.com/@gluestack-style/react/-/react-0.2.27.tgz#9973e14070d4a0ce12ae1c6ac6aa880d71b0c7d4"
integrity sha512-GZUC64Pi/raIjji9cXxkqzBcAkPbxxnme//cBV77g/VzpI4eNU+15jFvJMN1fYXEEPu7vSqB2DawtMgzgGa9qQ==
dependencies:
inline-style-prefixer "^6.0.1"
normalize-css-color "^1.0.2"

"@gluestack-ui/actionsheet@^0.2.16", "@gluestack-ui/actionsheet@^0.2.7", "@gluestack-ui/actionsheet@latest":
version "0.2.16"
resolved "https://registry.yarnpkg.com/@gluestack-ui/actionsheet/-/actionsheet-0.2.16.tgz#052a733966c517450a3cd6f832932ccf77924867"
Expand Down

0 comments on commit 51757f1

Please sign in to comment.