-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new ui package folder to test internal imports
- Loading branch information
1 parent
de8634a
commit a6ba9b6
Showing
51 changed files
with
15,503 additions
and
500 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
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
.turbo | ||
|
||
# PWA dev stuff | ||
dev-dist | ||
|
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,28 @@ | ||
|
||
dist | ||
.solid | ||
.output | ||
.vercel | ||
.netlify | ||
netlify | ||
|
||
# Environment | ||
.env | ||
.env*.local | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
*.launch | ||
.settings/ | ||
|
||
# Temp | ||
gitignore | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db |
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,9 @@ | ||
{ | ||
"trailingComma": "none", | ||
"tabWidth": 4, | ||
"semi": true, | ||
"singleQuote": false, | ||
"arrowParens": "always", | ||
"printWidth": 80, | ||
"useTabs": false | ||
} |
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,19 @@ | ||
import type { StorybookConfig } from "storybook-solidjs-vite"; | ||
|
||
const config: StorybookConfig = { | ||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"], | ||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
"@storybook/addon-styling" | ||
], | ||
framework: { | ||
name: "storybook-solidjs-vite", | ||
options: {} | ||
}, | ||
docs: { | ||
autodocs: "tag" | ||
} | ||
}; | ||
export default config; |
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,29 @@ | ||
import '../src/index.css' | ||
import { Preview } from "storybook-solidjs" | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
backgrounds: { | ||
default: 'dark', | ||
values: [ | ||
{ | ||
name: 'dark', | ||
value: '#171717', | ||
}, | ||
{ | ||
name: 'light', | ||
value: '#3b5998', | ||
}, | ||
], | ||
}, | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/ | ||
} | ||
} | ||
} | ||
}; | ||
|
||
export default preview; |
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,22 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022-2023 Mutiny Wallet Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
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,38 @@ | ||
# ui | ||
|
||
A solid-js ui component package and storybook for quick component development | ||
|
||
## Building | ||
|
||
Using npm: | ||
|
||
```bash | ||
$ pnpm run build | ||
``` | ||
|
||
## Running Storybook | ||
|
||
```bash | ||
$ pnpm run storybook | ||
``` | ||
|
||
## Importing styles | ||
|
||
### Root css | ||
|
||
```js | ||
// your-project/src/root.tsx | ||
import "@mutinywallet/ui/style.css" | ||
``` | ||
|
||
### Tailwind config | ||
|
||
```js | ||
// your-project/src/tailwind.config.cjs | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
presets: [ | ||
require('@mutinywallet/ui/tailwind.config.cjs') | ||
] | ||
}; | ||
``` |
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,72 @@ | ||
{ | ||
"name": "@mutinywallet/ui", | ||
"version": "0.0.0", | ||
"private": true, | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"check-types": "tsc --noemit", | ||
"eslint": "eslint src", | ||
"lint": "pnpm run eslint && pnpm run check-types", | ||
"format": "npx prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"", | ||
"check-format": "npx prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"", | ||
"storybook": "storybook dev -p 6006", | ||
"build-storybook": "storybook build" | ||
}, | ||
"type": "module", | ||
"files": [ | ||
"dist" | ||
], | ||
"types": "./dist/types/index.d.ts", | ||
"main": "./dist/esm/index.js", | ||
"module": "./dist/esm/index.js", | ||
"exports": { | ||
".": { | ||
"solid": "./dist/source/index.jsx", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"./style.css": "./dist/esm/style.css", | ||
"./tailwind.config.cjs": "./tailwind.config.cjs" | ||
}, | ||
"devDependencies": { | ||
"@storybook/addon-essentials": "^7.2.2", | ||
"@storybook/addon-interactions": "^7.2.2", | ||
"@storybook/addon-links": "^7.2.2", | ||
"@storybook/addon-styling": "^1.3.6", | ||
"@storybook/blocks": "^7.2.2", | ||
"@storybook/testing-library": "^0.2.0", | ||
"@typescript-eslint/eslint-plugin": "^6.2.0", | ||
"@typescript-eslint/parser": "^6.2.0", | ||
"autoprefixer": "^10.4.14", | ||
"eslint": "^8.46.0", | ||
"eslint-import-resolver-typescript": "2.7.1", | ||
"eslint-plugin-import": "2.27.5", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"eslint-plugin-solid": "0.11.0", | ||
"postcss": "^8.4.26", | ||
"prettier": "^2.8.8", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"solid-start-node": "^0.3.0", | ||
"storybook": "^7.2.2", | ||
"storybook-solidjs": "1.0.0-beta.2", | ||
"storybook-solidjs-vite": "^1.0.0-beta.2", | ||
"tailwindcss": "^3.3.3", | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"@kobalte/core": "^0.9.8", | ||
"@rollup/plugin-image": "^3.0.2", | ||
"@solidjs/meta": "^0.28.5", | ||
"@solidjs/router": "^0.8.2", | ||
"@types/node": "^18.17.1", | ||
"rollup": "^3.28.0", | ||
"rollup-plugin-css-only": "^4.3.0", | ||
"rollup-preset-solid": "^2.0.1", | ||
"solid-js": "^1.7.9", | ||
"solid-start": "^0.2.29" | ||
}, | ||
"peerDependencies": { | ||
"solid-js": "^1.7.9" | ||
} | ||
} |
Oops, something went wrong.