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

Commit

Permalink
Merge pull request #400 from gluestack/release/@gluestack-style/babel…
Browse files Browse the repository at this point in the history
[email protected]

Release/@gluestack style/babel plugin styled [email protected]
  • Loading branch information
ankit-tailor authored Sep 6, 2023
2 parents 6476e78 + 240924f commit 53d4af4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/babel-plugin-styled-resolver/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gluestack-style/babel-plugin-styled-resolver",
"version": "0.2.2-alpha.1",
"version": "0.2.2",
"description": "A gluestack-style babel plugin that transpiles your styled function calls and resolves the component styling in build time.",
"keywords": [
"css-in-js",
Expand Down
8 changes: 2 additions & 6 deletions packages/react/src/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,8 @@ export function getVariantProps(
variantProps[variant] = props[variant];

restProps = {
...restProps,
...theme?.variants[variant][props[variant]]?.props,
...restProps,
};

if (shouldDeleteVariants) {
Expand Down Expand Up @@ -924,7 +924,6 @@ export function verboseStyled<P, Variants, ComCon>(

const NewComp = (
{
as,
children,
//@ts-ignore
orderedResolved: BUILD_TIME_ORDERED_RESOLVED = [],
Expand Down Expand Up @@ -1722,10 +1721,7 @@ export function verboseStyled<P, Variants, ComCon>(
// activeTheme
);
const AsComp: any =
(as as any) ||
resolvedStyleProps.as ||
(passingProps.as as any) ||
undefined;
resolvedStyleProps.as || (passingProps.as as any) || undefined;

let resolvedStyleMemo = [passingProps?.style, ...resolvedStyleProps?.style];
if (Platform.OS === 'web') {
Expand Down

0 comments on commit 53d4af4

Please sign in to comment.