{"_id":"@2annalyse/ui","name":"@2annalyse/ui","dist-tags":{"latest":"1.2.0"},"versions":{"1.2.0":{"version":"1.2.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why","semantic-release":"semantic-release"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"@2annalyse/ui","author":{"name":"sandy zhang"},"module":"dist/ui.esm.js","size-limit":[{"path":"dist/ui.cjs.production.min.js","limit":"10 KB"},{"path":"dist/ui.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","husky":"^8.0.1","semantic-release":"^19.0.3","size-limit":"^7.0.8","tsdx":"^0.14.1","tslib":"^2.4.0","typescript":"^4.7.4"},"repository":{"type":"git","url":"git+https://github.com/2annalyse/ui.git"},"publishConfig":{"access":"public"},"gitHead":"f71bdb2b9345e39ba53226737c1e08a2b4637cdf","description":"Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.","bugs":{"url":"https://github.com/2annalyse/ui/issues"},"homepage":"https://github.com/2annalyse/ui#readme","_id":"@2annalyse/ui@1.2.0","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-HH1Sd33Dava2zI00kjqr+hABTO7DgghSyxmP/UkBCorStbQ+86R5n4K1bBWMgwAZKE0bsAXuhuMtLCbGa1kwJA==","shasum":"e122942cddd30178d61bdebbc6ef27599ce99a06","tarball":"https://registry.npmjs.org/@2annalyse/ui/-/ui-1.2.0.tgz","fileCount":12,"unpackedSize":7962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVsTbTkLrTs0jrB3apukrDnqIxMaaGVAxqAVRJSPdZ/wIhAOaXniFeFXXWB11irYc1pPhDj+lDKjiqrxx31SVlz3lS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5QgeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmyQ//W7o9DngAIYLhiOzR8ThF9HmKeeGwRT0zoy3pVUz4rkQbL+Fy\r\nOc/3uTIWMwQYFH/Hxhckxr8QC6mopDK0BBcRsxZUJ+bftXTFMRgvEVRKiB5J\r\noXjw+Yl75CtUfIs8HtPSIKB8UpO+QUayGpoqrAiZpdFms4x8yRHcz5VvZqDT\r\nyT0+Ng3ZJosDOiPoTwTruYLkg8dn7BxWE6nBZzNjy7XK6YrPAXE0620UwAIF\r\ncqcZcphQatbgx10txXqclgCUMH7Uyj83j0E/PopYPTJ7ExRZgaWWBcQFSjZe\r\nKz68F9SYJulp5tpUN7E10xm+3/XcFjqyC3Ur6CBM91dTRAesx2lbyBUQxkZ2\r\nmeivcVZe6Yze9a+h6D09eZdCRhPFpUED3MX4braalSiMWZ62xEIg6pzZYtu2\r\ncch0wgSqx+PL+EHMVmJEDRc2CdCaiunXFN6zdCXyeBUGUJIRirriRoor5jCc\r\nvhASLcCF7A1cEvKhGmcoeaME07fsHiLUaVhsBes576hVLTvCSXDu2mmsq2TH\r\neAtD8/r6YZsix6tnZ66luFRpW4NDQVyoIE5tZ6xd8LsIMQumMHEhF3wgFGed\r\nBi86qwYCZj+XDsAOi8TTA4E0fCgKH1FO1/w10EZ29WFP2fc5s4uFh+GDpFPW\r\nVS5YhLTOFucbSn2BBOYQ0wrvjKGyfd0tFXA=\r\n=c/vY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sandylib27","email":"zhangdongling@hotmail.com"},"directories":{},"maintainers":[{"name":"sandylib27","email":"zhangdongling@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ui_1.2.0_1659176989757_0.994297164761694"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-30T10:29:49.714Z","1.2.0":"2022-07-30T10:29:50.052Z","modified":"2022-07-30T10:29:50.257Z"},"maintainers":[{"name":"sandylib27","email":"zhangdongling@hotmail.com"}],"description":"Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.","homepage":"https://github.com/2annalyse/ui#readme","repository":{"type":"git","url":"git+https://github.com/2annalyse/ui.git"},"author":{"name":"sandy zhang"},"bugs":{"url":"https://github.com/2annalyse/ui/issues"},"license":"MIT","readme":"# TSDX User Guide\n\nCongrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.\n\n> This TSDX setup is meant for developing libraries (not apps!) that can be published to NPM. If you’re looking to build a Node app, you could use `ts-node-dev`, plain `ts-node`, or simple `tsc`.\n\n> If you’re new to TypeScript, checkout [this handy cheatsheet](https://devhints.io/typescript)\n\n## Commands\n\nTSDX scaffolds your new library inside `/src`.\n\nTo run TSDX, use:\n\n```bash\nnpm start # or yarn start\n```\n\nThis builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.\n\nTo do a one-off build, use `npm run build` or `yarn build`.\n\nTo run tests, use `npm test` or `yarn test`.\n\n## Configuration\n\nCode quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjust the respective fields in `package.json` accordingly.\n\n### Jest\n\nJest tests are set up to run with `npm test` or `yarn test`.\n\n### Bundle Analysis\n\n[`size-limit`](https://github.com/ai/size-limit) is set up to calculate the real cost of your library with `npm run size` and visualize the bundle with `npm run analyze`.\n\n#### Setup Files\n\nThis is the folder structure we set up for you:\n\n```txt\n/src\n  index.tsx       # EDIT THIS\n/test\n  blah.test.tsx   # EDIT THIS\n.gitignore\npackage.json\nREADME.md         # EDIT THIS\ntsconfig.json\n```\n\n### Rollup\n\nTSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.\n\n### TypeScript\n\n`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.\n\n## Continuous Integration\n\n### GitHub Actions\n\nTwo actions are added by default:\n\n- `main` which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix\n- `size` which comments cost comparison of your library on every pull request using [`size-limit`](https://github.com/ai/size-limit)\n\n## Optimizations\n\nPlease see the main `tsdx` [optimizations docs](https://github.com/palmerhq/tsdx#optimizations). In particular, know that you can take advantage of development-only optimizations:\n\n```js\n// ./types/index.d.ts\ndeclare var __DEV__: boolean;\n\n// inside your code...\nif (__DEV__) {\n  console.log('foo');\n}\n```\n\nYou can also choose to install and use [invariant](https://github.com/palmerhq/tsdx#invariant) and [warning](https://github.com/palmerhq/tsdx#warning) functions.\n\n## Module Formats\n\nCJS, ESModules, and UMD module formats are supported.\n\nThe appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.\n\n## Named Exports\n\nPer Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.\n\n## Including Styles\n\nThere are many ways to ship styles, including with CSS-in-JS. TSDX has no opinion on this, configure how you like.\n\nFor vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.\n\n## Publishing to NPM\n\nWe recommend using [np](https://github.com/sindresorhus/np).\n","readmeFilename":"README.md"}