diff --git a/example/storybook/src/ui/components/MediaAndIcons/Icon/index.stories.mdx b/example/storybook/src/ui/components/MediaAndIcons/Icon/index.stories.mdx
index 470538ca01..6508ff9dd3 100644
--- a/example/storybook/src/ui/components/MediaAndIcons/Icon/index.stories.mdx
+++ b/example/storybook/src/ui/components/MediaAndIcons/Icon/index.stories.mdx
@@ -299,12 +299,11 @@ Below is a list of all of the icons in the library.
GlobeIcon,
ThreeDotsIcon,
Icon,
- PlayIcon
+ PlayIcon,
},
argsType: {},
}}
-/>
-
+ />
#### Lucide Icons (Recommended)
diff --git a/packages/config/package.json b/packages/config/package.json
index fa7a8f7399..c56a3630ce 100644
--- a/packages/config/package.json
+++ b/packages/config/package.json
@@ -37,7 +37,7 @@
"@expo/html-elements": "latest",
"@gluestack-style/animation-resolver": "1.0.4",
"@gluestack-style/legend-motion-animation-driver": "1.0.3",
- "@gluestack-style/react": "1.0.49",
+ "@gluestack-style/react": "1.0.50",
"@gluestack-ui/accordion": "1.0.1",
"@gluestack-ui/actionsheet": "0.2.37",
"@gluestack-ui/alert": "0.1.12",
@@ -66,13 +66,13 @@
"@gluestack-ui/switch": "0.1.19",
"@gluestack-ui/tabs": "0.1.14",
"@gluestack-ui/textarea": "0.1.20",
- "@gluestack-ui/themed": "1.1.9",
+ "@gluestack-ui/themed": "1.1.10",
"@gluestack-ui/toast": "1.0.4",
"@gluestack-ui/tooltip": "0.1.26",
"@legendapp/motion": "latest"
},
"peerDependencies": {
- "@gluestack-style/react": ">=1.0.49",
+ "@gluestack-style/react": ">=1.0",
"@gluestack-ui/themed": ">=1.1"
},
"release-it": {
diff --git a/packages/nativewind/utils/package.json b/packages/nativewind/utils/package.json
index 6bed29b946..d4a58d558e 100644
--- a/packages/nativewind/utils/package.json
+++ b/packages/nativewind/utils/package.json
@@ -14,7 +14,7 @@
"ios",
"nextjs"
],
- "version": "0.0.8",
+ "version": "0.0.10",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/index.d.ts",
diff --git a/packages/nativewind/utils/src/context.ts b/packages/nativewind/utils/src/context.ts
index 03ec48e0be..e4ff2de092 100644
--- a/packages/nativewind/utils/src/context.ts
+++ b/packages/nativewind/utils/src/context.ts
@@ -1,5 +1,4 @@
'use client';
-
import { createContext, useContext } from 'react';
export const ParentContext = createContext({});
diff --git a/packages/nativewind/utils/src/cssInterop.web.tsx b/packages/nativewind/utils/src/cssInterop.web.tsx
index 77ec595a88..e427c48fb6 100644
--- a/packages/nativewind/utils/src/cssInterop.web.tsx
+++ b/packages/nativewind/utils/src/cssInterop.web.tsx
@@ -1 +1,2 @@
+'use client';
export { cssInterop } from 'nativewind';
diff --git a/packages/nativewind/utils/src/withStates.tsx b/packages/nativewind/utils/src/withStates.tsx
index 8049a54106..7b0b919fb7 100644
--- a/packages/nativewind/utils/src/withStates.tsx
+++ b/packages/nativewind/utils/src/withStates.tsx
@@ -1,5 +1,4 @@
'use client';
-
import React from 'react';
import { extractDataClassName } from './utils';
diff --git a/packages/nativewind/utils/src/withStyleContextAndStates.tsx b/packages/nativewind/utils/src/withStyleContextAndStates.tsx
index 1e0b0434c4..0dd8c1b862 100644
--- a/packages/nativewind/utils/src/withStyleContextAndStates.tsx
+++ b/packages/nativewind/utils/src/withStyleContextAndStates.tsx
@@ -1,5 +1,4 @@
'use client';
-
import React from 'react';
import { extractDataClassName } from './utils';
import { ParentContext } from './context';
diff --git a/packages/styled/react/CHANGELOG.md b/packages/styled/react/CHANGELOG.md
index cde5fa49b0..ac64549ee5 100644
--- a/packages/styled/react/CHANGELOG.md
+++ b/packages/styled/react/CHANGELOG.md
@@ -1,5 +1,12 @@
# @gluestack-style/react
+## 1.0.50
+
+### Patch Changes
+
+- - Fixed ref typings
+ - Fixed plugin sx prop issue
+
## 1.0.49
### Patch Changes
diff --git a/packages/styled/react/package.json b/packages/styled/react/package.json
index d584d09219..cabd1e362a 100644
--- a/packages/styled/react/package.json
+++ b/packages/styled/react/package.json
@@ -1,7 +1,7 @@
{
"name": "@gluestack-style/react",
"description": "A universal & performant styling library for React Native, Next.js & React",
- "version": "1.0.49",
+ "version": "1.0.50",
"keywords": [
"React Native",
"Next.js",
diff --git a/packages/styled/react/src/plugins/font-resolver.tsx b/packages/styled/react/src/plugins/font-resolver.tsx
index 364a8ddd9a..0535f1afdd 100644
--- a/packages/styled/react/src/plugins/font-resolver.tsx
+++ b/packages/styled/react/src/plugins/font-resolver.tsx
@@ -81,6 +81,14 @@ export class FontResolver implements IStyledPlugin, FontPlugin {
mapFonts(style: any) {
if (isExpoStrategy()) {
+ const regex = /^([^_]*_){1,2}[^_]*$/;
+
+ if (style.fontFamily.match(regex)) {
+ delete style.fontWeight;
+ delete style.fontStyle;
+
+ return;
+ }
let fontFamilyValue = style.fontFamily
.replace(/ /g, '')
.replace(/^\w/, (c: any) => c.toUpperCase());
@@ -274,6 +282,7 @@ export class FontResolver implements IStyledPlugin, FontPlugin {
styledConfig
);
const styledConfigWithoutVariant = deepClone(styledConfig ?? {});
+
delete styledConfigWithoutVariant.variants;
let componentStyledObject = deepMerge(
@@ -298,7 +307,7 @@ export class FontResolver implements IStyledPlugin, FontPlugin {
fontStyle ?? componentStyledObject.fontStyle;
}
- const sxPropsWithThemeProps = deepMerge(sx, componentStyledObject);
+ const sxPropsWithThemeProps = deepMerge(componentStyledObject, sx);
const [resolvedSxProps, , ,] = this.inputMiddleWare(
sxPropsWithThemeProps,
diff --git a/packages/styled/react/src/styled.tsx b/packages/styled/react/src/styled.tsx
index 4d1190a6e5..a364f5b2eb 100644
--- a/packages/styled/react/src/styled.tsx
+++ b/packages/styled/react/src/styled.tsx
@@ -125,7 +125,7 @@ function convertUtiltiyToSXFromProps(
pluginName
]?.inputMiddleWare(
resolvedSxVerbose,
- true,
+ false,
false,
Component,
componentStyleConfig,
@@ -2110,7 +2110,7 @@ export function verboseStyled(
? {
...variantProps,
states: states,
- // sx: componentProps.sx,
+ sx: componentProps.sx,
}
: {};
@@ -2185,7 +2185,8 @@ export function verboseStyled
(
StyledComp.isStyledComponent = true;
return StyledComp as ForwardRefExoticComponent<
- StyledComponentProps
+ StyledComponentProps &
+ React.RefAttributes
>;
}
diff --git a/packages/themed/CHANGELOG.md b/packages/themed/CHANGELOG.md
index 69d491cbb0..ae1c9e3411 100644
--- a/packages/themed/CHANGELOG.md
+++ b/packages/themed/CHANGELOG.md
@@ -1,5 +1,14 @@
# @gluestack-ui/themed
+## 1.1.10
+
+### Patch Changes
+
+- - Fixed ref typings
+ - Fixed plugin sx prop issue
+- Updated dependencies
+ - @gluestack-style/react@1.0.50
+
## 1.1.9
### Patch Changes
diff --git a/packages/themed/package.json b/packages/themed/package.json
index dccc77c68d..4b9cb434c8 100644
--- a/packages/themed/package.json
+++ b/packages/themed/package.json
@@ -1,6 +1,6 @@
{
"name": "@gluestack-ui/themed",
- "version": "1.1.9",
+ "version": "1.1.10",
"main": "build/index.js",
"types": "build/index.d.ts",
"module": "build/index",
@@ -73,7 +73,7 @@
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
- "@gluestack-style/react": "^1.0.48",
+ "@gluestack-style/react": "^1.0.50",
"@types/react-native": "^0.72.3",
"file-loader": "^6.2.0",
"react": "^18.2.0",