-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from SySagar/dev
chore: storybook directory change, modal component, textfield and button component revamp
- Loading branch information
Showing
37 changed files
with
1,515 additions
and
1,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@groovy-box/ui': minor | ||
--- | ||
|
||
storybook directory change, modal component, textfield and button component revamp |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
name: Running Code Coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run tests | ||
run: npm run ui:coverage | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
directory: apps/ui/coverage | ||
# name: Running Code Coverage | ||
|
||
# on: | ||
# push: | ||
# branches: | ||
# - dev | ||
# pull_request: | ||
# branches: | ||
# - dev | ||
|
||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
|
||
# strategy: | ||
# matrix: | ||
# node-version: [20.x] | ||
|
||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# fetch-depth: 2 | ||
|
||
# - name: Set up Node.js ${{ matrix.node-version }} | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: ${{ matrix.node-version }} | ||
|
||
# - name: Install dependencies | ||
# run: npm install | ||
|
||
# - name: Run tests | ||
# run: npm run ui:coverage | ||
|
||
# - name: Upload coverage to Codecov | ||
# uses: codecov/codecov-action@v4 | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# directory: apps/ui/coverage |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
// https://storybook.js.org/docs/react/writing-stories/parameters#global-parameters | ||
import '../lib/tailwind.css'; | ||
import '../lib/color-scheme.css'; | ||
import { withGlobalStyles } from './decorator'; | ||
import '@groovy-box/tokens/src/fonts.css'; | ||
|
||
const customViewports = { | ||
xs: { | ||
name: 'XS', | ||
styles: { | ||
width: '350px', | ||
height: '963px', | ||
xs: { | ||
name: 'XS', | ||
styles: { | ||
width: '350px', | ||
height: '963px', | ||
}, | ||
}, | ||
}, | ||
sm: { | ||
name: 'SM', | ||
styles: { | ||
width: '600px', | ||
height: '801px', | ||
sm: { | ||
name: 'SM', | ||
styles: { | ||
width: '600px', | ||
height: '801px', | ||
}, | ||
}, | ||
}, | ||
md: { | ||
name: 'MD', | ||
styles: { | ||
width: '900px', | ||
height: '801px', | ||
md: { | ||
name: 'MD', | ||
styles: { | ||
width: '900px', | ||
height: '801px', | ||
}, | ||
}, | ||
}, | ||
lg: { | ||
name: 'LG', | ||
styles: { | ||
width: '1200px', | ||
height: '801px', | ||
lg: { | ||
name: 'LG', | ||
styles: { | ||
width: '1200px', | ||
height: '801px', | ||
}, | ||
}, | ||
}, | ||
xl: { | ||
name: 'XL', | ||
styles: { | ||
width: '1536px', | ||
height: '801px', | ||
xl: { | ||
name: 'XL', | ||
styles: { | ||
width: '1536px', | ||
height: '801px', | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export const parameters = { | ||
// https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args | ||
actions: { argTypesRegex: '^on.*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
// https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args | ||
actions: { argTypesRegex: '^on.*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
visualViewport: { | ||
customViewports, | ||
}, | ||
}, | ||
visualViewport: { | ||
customViewports, | ||
}, | ||
}; | ||
|
||
export const globalTypes = { | ||
scheme: { | ||
name: 'Scheme', | ||
description: 'Select light or dark', | ||
defaultValue: 'light', | ||
toolbar: { | ||
icon: 'mirror', | ||
items: ['light', 'dark'], | ||
dynamicTitle: true, | ||
scheme: { | ||
name: 'Scheme', | ||
description: 'Select light or dark', | ||
defaultValue: 'light', | ||
toolbar: { | ||
icon: 'mirror', | ||
items: ['light', 'dark'], | ||
dynamicTitle: true, | ||
}, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.