-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace stitches with vanilla-extract (#10)
* refactor: replace webpack with vite & add vanilla extract * feat: add theme config for vanilla-extract * chore: fix lint staged tsc typecheck * refactor: use vanilla-extract in avatar component * refactor: use vanilla-extract in badge component * refactor: use vanilla-extract in box component * refactor: use vanilla-extract in button component * refactor: use vanilla-extract in checkbox component * refactor: use vanilla-extract in chip component * refactor: use vanilla-extract in dialog component * refactor: use vanilla-extract in header component * refactor: use vanilla-extract in icon component * refactor: use vanilla-extract in icon-button component * refactor: use vanilla-extract in input component * refactor: use vanilla-extract in line component * refactor: use vanilla-extract in menu component * refactor: use vanilla-extract in modal component * refactor: use vanilla-extract in overlay component * refactor: use vanilla-extract in popout component * refactor: use vanilla-extract in radio-button component * refactor: use vanilla-extract in scroll component * refactor: use vanilla-extract in spinner component * refactor: use vanilla-extract in switch component * refactor: use vanilla-extract in text component * refactor: use vanilla-extract in tooltip component * build: replace yarn with npm * chore: fix installing deps command * chore: replace yarn from pre-commit * chore: check types in pre-commit * chore: import inter font in storybook preview js * build: remove build step when releasing * chore: add base decorator for storybook * build: fix build process * build: add build step when releasing --------- Co-authored-by: Krishan <[email protected]>
- Loading branch information
Showing
99 changed files
with
52,113 additions
and
16,677 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,13 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
node-version: 18.12.1 | ||
cache: "yarn" | ||
cache: "npm" | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- run: yarn lint | ||
- run: yarn typecheck | ||
run: npm ci | ||
- run: npm run lint | ||
- run: npm run typecheck | ||
- name: Build storybook | ||
run: yarn build-storybook | ||
run: npm run build-storybook | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -16,13 +16,13 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
node-version: 18.12.1 | ||
cache: "yarn" | ||
cache: "npm" | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- run: yarn lint | ||
- run: yarn typecheck | ||
run: npm ci | ||
- run: npm run lint | ||
- run: npm run typecheck | ||
- name: Build storybook | ||
run: yarn build-storybook | ||
run: npm run build-storybook | ||
- name: Deploy to Netlify | ||
uses: nwtgck/actions-netlify@5da65c9f74c7961c5501a3ba329b8d0912f39c03 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -15,9 +15,9 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
node-version: 18.12.1 | ||
cache: "yarn" | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn lint | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run lint | ||
|
||
typecheck: | ||
runs-on: ubuntu-latest | ||
|
@@ -28,9 +28,9 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
node-version: 18.12.1 | ||
cache: "yarn" | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn typecheck | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run typecheck | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
|
@@ -43,10 +43,10 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
node-version: 18.12.1 | ||
cache: "yarn" | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn build | ||
- run: yarn semantic-release | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm run semantic-release | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,4 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint-staged | ||
npx tsc -p tsconfig.json --noEmit | ||
npx lint-staged |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ storybook-static | |
node_modules | ||
yarn.lock | ||
yarn-error.log | ||
package-lock.json | ||
LICENSE |
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,13 @@ | ||
import "@fontsource/inter/variable.css"; | ||
import classNames from "classnames"; | ||
import { lightTheme, configClass, config, varsClass } from "../src"; | ||
|
||
export const baseDecorator = (Story) => ( | ||
<div | ||
id="folds-root" | ||
className={classNames(lightTheme, configClass, varsClass)} | ||
style={{ fontFamily: config.font.Inter }} | ||
> | ||
<Story /> | ||
</div> | ||
); |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "commonjs" | ||
} |
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,3 @@ | ||
<script> | ||
window.global ||= window; | ||
</script> |
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
Oops, something went wrong.