forked from chakra-ui/chakra-ui
-
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.
- Loading branch information
1 parent
11ac4f9
commit 442d1f4
Showing
12 changed files
with
998 additions
and
2 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
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,11 @@ | ||
# @chakra-ui/machine | ||
|
||
A Quick description of the component | ||
|
||
## Installation | ||
|
||
```sh | ||
yarn add @chakra-ui/machine | ||
# or | ||
npm i @chakra-ui/machine | ||
``` |
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,10 @@ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
collectCoverageFrom: ["tests/**/*.{ts,tsx,js,jsx}"], | ||
transform: { | ||
".(ts|tsx)$": "ts-jest/dist", | ||
}, | ||
transformIgnorePatterns: ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"], | ||
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"], | ||
} |
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,62 @@ | ||
{ | ||
"name": "@chakra-ui/machine", | ||
"version": "1.0.0", | ||
"description": "A minial implementation of xstate with some more features missing in xstate-fsm", | ||
"keywords": [ | ||
"theme", | ||
"theming", | ||
"ui mode", | ||
"ui" | ||
], | ||
"author": "Segun Adebayo <sage@adebayosegun.com>", | ||
"homepage": "https://github.com/chakra-ui/chakra-ui#readme", | ||
"license": "MIT", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"typings": "dist/types/index.d.ts", | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"require": "./dist/cjs/index.js", | ||
"default": "./dist/esm/index.js" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/chakra-ui/chakra-ui.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/chakra-ui/chakra-ui/issues" | ||
}, | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"start": "nodemon --watch src --exec yarn build -e ts,tsx", | ||
"build": "concurrently yarn:build:*", | ||
"test": "jest --env=jsdom --passWithNoTests", | ||
"lint": "concurrently yarn:lint:*", | ||
"version": "yarn build", | ||
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps", | ||
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps", | ||
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types", | ||
"test:cov": "yarn test --coverage", | ||
"lint:src": "eslint src --ext .ts,.tsx --config ../../.eslintrc", | ||
"lint:types": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"nanoid": "3.1.20", | ||
"valtio": "0.7.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.6" | ||
}, | ||
"devDependencies": { | ||
"react": "^17.0.1" | ||
} | ||
} |
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,2 @@ | ||
export * from "./use-machine" | ||
export * from "./machine" |
Oops, something went wrong.