-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Joel Anton
committed
May 16, 2024
1 parent
7159456
commit 14b0ec6
Showing
14 changed files
with
194 additions
and
320 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
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
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,74 +1,76 @@ | ||
{ | ||
"name": "@novu/novui", | ||
"version": "0.0.1", | ||
"description": "", | ||
"repository": "https://github.com/novuhq/novu", | ||
"description": "Novu's Design System & Component Library", | ||
"types": "./dist/index.d.ts", | ||
"main": "./dist/index.js", | ||
"files": ["dist", "styled-system"], | ||
"exports": { | ||
".": { | ||
"source": "./src/index.ts", | ||
"types": "./dist/index.d.ts", | ||
"import": { | ||
"types": "./dist/index.d.mts", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"require": "./dist/index.js" | ||
"import": "./dist/index.js" | ||
}, | ||
"./css": { | ||
"types": "./styled-system/css/index.d.ts", | ||
"require": "./styled-system/css/index.mjs", | ||
"import": "./styled-system/css/index.mjs" | ||
"require": "./styled-system/css/index.js", | ||
"import": "./styled-system/css/index.js" | ||
}, | ||
"./tokens": { | ||
"types": "./styled-system/tokens/index.d.ts", | ||
"require": "./styled-system/tokens/index.mjs", | ||
"import": "./styled-system/tokens/index.mjs" | ||
"require": "./styled-system/tokens/index.js", | ||
"import": "./styled-system/tokens/index.js" | ||
}, | ||
"./types": { | ||
"types": "./styled-system/types/index.d.ts", | ||
"require": "./styled-system/types/index.mjs", | ||
"import": "./styled-system/types/index.mjs" | ||
"require": "./styled-system/types/index.js", | ||
"import": "./styled-system/types/index.js" | ||
}, | ||
"./patterns": { | ||
"types": "./styled-system/patterns/index.d.ts", | ||
"require": "./styled-system/patterns/index.mjs", | ||
"import": "./styled-system/patterns/index.mjs" | ||
"require": "./styled-system/patterns/index.js", | ||
"import": "./styled-system/patterns/index.js" | ||
}, | ||
"./recipes": { | ||
"types": "./styled-system/recipes/index.d.ts", | ||
"require": "./styled-system/recipes/index.mjs", | ||
"import": "./styled-system/recipes/index.mjs" | ||
"require": "./styled-system/recipes/index.js", | ||
"import": "./styled-system/recipes/index.js" | ||
}, | ||
"./jsx": { | ||
"types": "./styled-system/jsx/index.d.ts", | ||
"require": "./styled-system/jsx/index.mjs", | ||
"import": "./styled-system/jsx/index.mjs" | ||
"require": "./styled-system/jsx/index.js", | ||
"import": "./styled-system/jsx/index.js" | ||
}, | ||
"./styles.css": "./styled-system/styles.css" | ||
}, | ||
"scripts": { | ||
"prepare": "pnpm panda codegen", | ||
"build": "tsup", | ||
"build:dev": "tsup --no-dts", | ||
"dev": "pnpm build:dev --watch", | ||
"prebuild": "rimraf dist styled-system", | ||
"lint": "eslint --ext .ts,.tsx src", | ||
"build": "cross-env node_modules/.bin/tsc", | ||
"build:watch": "pnpm panda && cross-env node_modules/.bin/tsc -w --preserveWatchOutput", | ||
"studio": "pnpm panda studio" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"react": "^18.3.0", | ||
"react-dom": "^18.3.0" | ||
}, | ||
"devDependencies": { | ||
"@pandabox/prettier-plugin": "^0.1.2", | ||
"@pandacss/dev": "^0.38.0", | ||
"@pandacss/eslint-plugin": "^0.1.2", | ||
"@pandacss/studio": "^0.38.0", | ||
"@types/react": "^18.3.0", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/node": "^18.11.12", | ||
"@types/react": "^17.0.1", | ||
"@types/react-dom": "^17.0.1", | ||
"eslint-plugin-react-hooks": "^4.6.2", | ||
"tsup": "^8.0.2", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.9.5" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0" | ||
} | ||
} |
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,18 +1,20 @@ | ||
import { css } from 'styled-system/css'; | ||
import { css } from '../../styled-system/css'; | ||
import { FC } from 'react'; | ||
|
||
/** | ||
* An example component using Panda. | ||
* TODO remove this in a future iteration. | ||
*/ | ||
export const Test: FC = () => { | ||
return ( | ||
<div | ||
<p | ||
className={css({ | ||
bg: 'surface.page', | ||
w: '11/12', | ||
h: '[69px]', | ||
bg: 'legacy.warning', | ||
textAlign: 'center', | ||
textStyle: 'title.section', | ||
textStyle: 'title.page', | ||
})} | ||
> | ||
Testing everything now | ||
</div> | ||
</p> | ||
); | ||
}; |
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,42 +1,22 @@ | ||
{ | ||
"include": ["src", "styled-system"], | ||
"extends": "../../tsconfig.json", | ||
"include": ["**/*.ts", "**/*.tsx"], | ||
"compilerOptions": { | ||
"target": "ES2020", | ||
"outDir": "dist", | ||
"forceConsistentCasingInFileNames": true, | ||
"target": "es6", | ||
"module": "ESNext", | ||
"esModuleInterop": true, | ||
"useDefineForClassFields": true, | ||
"lib": ["ES2020", "DOM", "DOM.Iterable"], | ||
"strict": true, | ||
"typeRoots": ["node_modules/@types"], | ||
"jsx": "react-jsx", | ||
"lib": ["ESNext", "dom", "dom.iterable"], | ||
"skipLibCheck": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"sourceMap": true, | ||
"removeComments": false, | ||
|
||
/** | ||
* Required due to extending base tsconfig, and receiving error: | ||
* "error TS5101: Option 'suppressImplicitAnyIndexErrors' is deprecated | ||
* and will stop functioning in TypeScript 5.5" | ||
*/ | ||
"ignoreDeprecations": "5.0", | ||
|
||
"moduleResolution": "Node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
|
||
/* Linting */ | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true, | ||
// | ||
"allowSyntheticDefaultImports": true, | ||
"allowJs": true, | ||
// | ||
"forceConsistentCasingInFileNames": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"styled-system/*": ["./styled-system/*"] | ||
} | ||
} | ||
"baseUrl": "." | ||
}, | ||
"exclude": ["src/**/*.test.*", "src/**/*.stories.*", "node_modules", "**/node_modules/*"] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.