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

Commit

Permalink
v1.0.0-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj authored and Suraj committed Oct 6, 2023
1 parent 6dc8788 commit 2c3e7a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,19 @@ export function ContextBasedStyles() {
return (
<Wrapper colorMode="dark">
{/* <StyledIcon as={CameraIcon} /> */}
<Text1
data-style="hell"
{/* <Text1
// data-style="hell"
sx={{
color: '$red500',
}}
>
vdkbkdfbv
</Text1>
</Text1> */}
<MyLink
href={'/'}
sx={{
color: '$red500',
}}
data-style="kkkk"
>
next link
</MyLink>
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@gluestack-style/react",
"description": "A universal & performant styling library for React Native, Next.js & React",
"version": "1.0.0-alpha.0",
"version": "1.0.0-alpha.1",
"keywords": [
"React Native",
"Next.js",
Expand Down
6 changes: 4 additions & 2 deletions packages/react/src/generateStylePropsFromCSSIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,13 @@ export function generateStylePropsFromCSSIds(
}

Object.assign(props, {
style: propsStyles ? [...styleObj, ...propsStyles] : styleObj,
dataSet: {
'style': propsStyles ? [...styleObj, ...propsStyles] : styleObj,
'dataSet': {
...props?.dataSet,
style: getDataStyle(props, styleCSSIdsString),
},
// DONOT REMOVE THIS LINE, THIS IS FOR SPECIFIC COMPONENTS LIKE next/link
'data-style': getDataStyle(props, styleCSSIdsString),
});
return props;
}

0 comments on commit 2c3e7a8

Please sign in to comment.