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 #63 from gluestack/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
madhav23bansal authored Mar 14, 2023
2 parents 0c47f3c + ceba992 commit 0434391
Show file tree
Hide file tree
Showing 146 changed files with 5,828 additions and 3,258 deletions.
6 changes: 5 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": ["@dank-style/storybook"]
"ignore": [
"@dank-style/storybook",
"expo-app",
"babel-dank-style-resolver-example"
]
}
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ packages/**/example
ui/packages/ui/.ondevice
babel.config.js

example/storybook
example/storybook
example/expo-app
36 changes: 18 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ jobs:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Get published package version
id: version
run: |
for row in $(echo "${array}" | jq -r '.[] | @base64'); do
_jq() {
echo ${row} | base64 --decode | jq -r ${1}
}
PACKAGENAME=$(echo $(_jq '.name'))
PACKAGEVERSION=$(echo $(_jq '.version'))
if [ $PACKAGENAME = "@dank-style/storybook" ]
then
echo "::set-output name=version::$PACKAGEVERSION"
echo "::set-output name=updateStorybook::1"
fi
done
env:
array: ${{ steps.changesets.outputs.publishedPackages }}
# - name: Get published package version
# id: version
# run: |
# for row in $(echo "${array}" | jq -r '.[] | @base64'); do
# _jq() {
# echo ${row} | base64 --decode | jq -r ${1}
# }
# PACKAGENAME=$(echo $(_jq '.name'))
# PACKAGEVERSION=$(echo $(_jq '.version'))
# if [ $PACKAGENAME = "@dank-style/storybook" ]
# then
# echo "::set-output name=version::$PACKAGEVERSION"
# echo "::set-output name=updateStorybook::1"
# fi
# done
# env:
# array: ${{ steps.changesets.outputs.publishedPackages }}

# - name: Emit repository_dispatch
# if: steps.version.outputs.updateStorybook == 1
Expand All @@ -75,6 +75,6 @@ jobs:
# You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
# For posting a simple plain text message
slack-message: "A new version of ${{ github.event.repository.name }} was published!\n${{ toJSON(steps.changesets.outputs.publishedPackages) }}"
slack-message: "A new package was published in ${{ github.event.repository.name }}!\n${{ toJSON(steps.changesets.outputs.publishedPackages) }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h3 align="center">
<a href="https://github.com/gluestack/dank-style">
<img src="https://raw.githubusercontent.com/gluestack/dank-style/development/img/dank-dark-mode.png" alt="dank logo" width="300px">
<img src="https://raw.githubusercontent.com/gluestack/dank-style/development/img/dank-logo-readme.png" alt="dank logo" width="300px">
</a>
<br>
<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
import { Text } from 'react-native';
// import { useState } from 'react';
import { styled, StyledProvider } from '@dank-style/react';
import { config } from './dank.config';
import { config } from './gluestack-ui.config';
// import { MyButton1 } from './Button1';
// import { MyButton2 } from './Button2';
// import { MyButton3 } from './Button3';
// import { MyButton4 } from './Button4';
import ButtonComponents from './Button5';
// import ButtonComponents from './Button5';
import { Button } from './Button';

// import { createConfig } from 'dank-style';
// createConfig(config);
Expand Down Expand Up @@ -367,17 +368,13 @@ export default function App() {

return (
<>
<StyledProvider config={config}>
<StyledProvider config={config.theme}>
{/* {Array.from({ length: 1000 }, () => {
return <MyCustomComponent />;
})} */}
{ButtonComponents.map((ButtonComponent, index) => {
return (
<ButtonComponent key={index}>
<MyButtonText>Hello World </MyButtonText>
</ButtonComponent>
);
})}
<Button>
<MyButtonText>Hello World </MyButtonText>
</Button>
</StyledProvider>
</>
);
Expand Down
28 changes: 28 additions & 0 deletions example/babel-plugin-styled-resolver-expo/Button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Pressable } from 'react-native';
import { styled } from '@dank-style/react';
export const Button = styled(
Pressable,
{
'bg': 'aqua',
'p': '$3',
'm': '$3',
'@sm': {
'bg': `$red400`,
':hover': {
'bg': 'aqua',
':hover': {
'bg': '$yellow500',
':focus': {
bg: 'red',
},
},
},
},
'@md': {
bg: `$green500`,
},
},
{
descendantStyle: ['_text'],
}
);
224 changes: 0 additions & 224 deletions example/babel-plugin-styled-resolver-expo/Button1.tsx

This file was deleted.

Loading

0 comments on commit 0434391

Please sign in to comment.