Skip to content

Commit

Permalink
Merge pull request #1908 from gluestack/release/@gluestack-style/reac…
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-tailor authored Mar 6, 2024
2 parents 0926977 + 9d2d310 commit c507e0c
Show file tree
Hide file tree
Showing 335 changed files with 14,671 additions and 4,048 deletions.
File renamed without changes.
25 changes: 25 additions & 0 deletions .github/workflows/trigger-ui-update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Trigger gluestack-style-website | Create PR when pushed to master

on:
pull_request:
branches:
- patch

jobs:
build:
name: Dispatch to 'gluestack-style-website'
runs-on: ubuntu-latest
steps:
- name: Emit repository_dispatch
uses: mvasigh/dispatch-action@main
with:
# You should create a personal access token and store it in your repository
token: ${{ secrets.MY_GITHUB_TOKEN }}
repo: ui-website
owner: gluestack
event_type: build_ui_docs
message: |
{
"repo": "ui",
"branch": "${{ github.head_ref }}"
}
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules

*.mdx
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
"prettier.ignorePath": ".prettierignore",
// If true, puts the `>` of a multi-line jsx element at the end of the last line instead of being alone on the next line
"editor.wordWrap": "on",
"cSpell.words": ["Actionsheet", "gluestack", "nativewind", "themeable"],
"cSpell.words": [
"Actionsheet",
"gluestack",
"nativewind",
"tailwindcss",
"themeable"
],
"cSpell.enableFiletypes": ["mdx"],
"tailwindCSS.experimental.classRegex": [
["tva\\((([^()]*|\\([^()]*\\))*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
Expand Down
10 changes: 6 additions & 4 deletions example/storybook-nativewind/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { DocsContainer } from '@storybook/addon-docs/blocks';
import { OverlayProvider } from '@gluestack-ui/overlay';
import { ToastProvider } from '@gluestack-ui/toast';

import { GluestackUIProvider as GluestackUIWithNativewindProvider } from '../src/components-example/nativewind/GluestackUIProvider';
import { GluestackUIProvider as GluestackUIWithNativewindProvider } from '../src/core-components/nativewind/gluestack-ui-provider';

// global css getting resolved from babel.config.js
import 'global.css';

import { GluestackUIProvider as GluestackUIWithGluestackStyleProvider } from '../src/components-example/themed/GluestackUIProvider';
import { GluestackUIProvider as GluestackUIWithGluestackStyleProvider } from '../src/core-components/themed/gluestack-ui-provider';

import gstheme from './gstheme';
import { themes } from '@storybook/theming';
Expand Down Expand Up @@ -45,24 +45,26 @@ export const parameters = {
'Feedback',
['Alert', 'Progress', 'Spinner', 'Toast'],
'Data Display',
['Badge'],
['Badge', 'Card'],
'Forms',
[
'Button',
'Checkbox',
'FormControl',
'Input',
'Link',
'Pressable',
'Radio',
'Slider',
'Switch',
'Textarea',
],
'Overlay',
['AlertDialog', 'Modal', 'Popover', 'Tooltip'],
'Disclosure',
['Actionsheet', 'Accordion'],
'Media And Icons',
['Avatar', 'Image'],
['Avatar', 'Image', 'Icon'],
'Others',
['Fab'],
],
Expand Down
8 changes: 6 additions & 2 deletions example/storybook-nativewind/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ module.exports = function (api) {
alias: {
'@/components/ui':
process.env.STYLE_ENGINE === 'nativewind'
? path.resolve(__dirname, './src/components-example/nativewind')
: path.resolve(__dirname, './src/components-example/themed'),
? path.resolve(__dirname, './src/core-components/nativewind')
: path.resolve(__dirname, './src/core-components/themed'),

'global.css':
process.env.STYLE_ENGINE === 'nativewind'
Expand Down Expand Up @@ -46,6 +46,10 @@ module.exports = function (api) {
__dirname,
'../../packages/unstyled/button/src'
),
'@gluestack-ui/link': path.resolve(
__dirname,
'../../packages/unstyled/link/src'
),
'@gluestack-ui/accordion': path.resolve(
__dirname,
'../../packages/unstyled/accordion/src'
Expand Down
2 changes: 1 addition & 1 deletion example/storybook-nativewind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@expo/html-elements": "^0.4.2",
"@expo/webpack-config": "^0.17.2",
"@geometricpanda/storybook-addon-iframe": "^0.2.2",
"@gluestack-style/react": "^1.0.26",
"@gluestack-style/react": "^1.0.49",
"@gluestack-ui/config": "^1.1.10",
"@gluestack-ui/themed": "^1.1.8",
"@gluestack/design-system": "^0.5.27",
Expand Down
Loading

0 comments on commit c507e0c

Please sign in to comment.