{"_id":"@bitcurve/reactor-style","_rev":"3-42f866b8e95859070eabd71cdbea0150","name":"@bitcurve/reactor-style","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.0":{"name":"@bitcurve/reactor-style","version":"0.0.0","license":"MIT","_id":"@bitcurve/reactor-style@0.0.0","maintainers":[{"name":"bitcurvesystems","email":"contact@bitcurve.com"}],"homepage":"https://github.com/appcurve/reactor#readme","bugs":{"url":"https://github.com/appcurve/reactor/issues"},"dist":{"shasum":"802c10367f5a66acdc92a985a5da1cd4494b2b01","tarball":"https://registry.npmjs.org/@bitcurve/reactor-style/-/reactor-style-0.0.0.tgz","fileCount":9,"integrity":"sha512-YSK2SLCcybRNlMD2vLM7+oE571rhxR7au5Guwbewuc3mHj6LsPa+XKRRz79D9KusM625xLhkPgFqnKr1Qq1Fwg==","signatures":[{"sig":"MEYCIQDUgukV2Zi8amZbKIX8txptw+IKCFKfGU7QYy4gh5GZhAIhAI05GH56tgABWrp25wabdDjM6gmTm6dsA/NnC2N5Jfk4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26057},"main":"dist/index.js","type":"module","_from":"file:bitcurve-reactor-style-0.0.0.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"eslint src","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","check":"tsc --noEmit"},"_npmUser":{"name":"bitcurvesystems","email":"contact@bitcurve.com"},"_resolved":"/tmp/9a963c1b8a12fae2e2498ad4ad714115/bitcurve-reactor-style-0.0.0.tgz","_integrity":"sha512-YSK2SLCcybRNlMD2vLM7+oE571rhxR7au5Guwbewuc3mHj6LsPa+XKRRz79D9KusM625xLhkPgFqnKr1Qq1Fwg==","repository":{"url":"git+ssh://git@github.com/appcurve/reactor.git","type":"ssh","directory":"packages/style"},"_npmVersion":"10.7.0","description":"This package exports a custom `cn()` function for merging class names that incorporates a special configuration of `tailwind-merge` and a custom drop-in replacement of `clsx` for one less dependency.","directories":{},"sideEffects":false,"_nodeVersion":"20.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.4","tailwindcss":"^3.4.7","tailwind-merge":"^2.3.0","@fluid-tailwind/tailwind-merge":"^0.0.2"},"peerDependencies":{"tailwind-merge":"^2.3.0","@fluid-tailwind/tailwind-merge":"^0.0.2"},"_npmOperationalInternal":{"tmp":"tmp/reactor-style_0.0.0_1722381001812_0.14472680211584188","host":"s3://npm-registry-packages"}},"0.0.1":{"name":"@bitcurve/reactor-style","version":"0.0.1","license":"MIT","_id":"@bitcurve/reactor-style@0.0.1","maintainers":[{"name":"bitcurvesystems","email":"contact@bitcurve.com"}],"homepage":"https://github.com/appcurve/reactor#readme","bugs":{"url":"https://github.com/appcurve/reactor/issues"},"dist":{"shasum":"0310f101752363d99ef73a6ff7ca7ec0b98b5ee5","tarball":"https://registry.npmjs.org/@bitcurve/reactor-style/-/reactor-style-0.0.1.tgz","fileCount":10,"integrity":"sha512-mNfEBFSXwT7ZcMOVZg98sQbrsaZmT0jGEkB9AOP1Qr+5+sOXBOE8ohm1hXe3sfrraX/R+arJ/a6VCJ+w1JgdGQ==","signatures":[{"sig":"MEUCIAHkmQRS3Sb7itULteckqF/p/fjd0C+cQZrOknWM/ozhAiEAtfRqTJW4thzz6DkV8uyILv71qb5GR7XVkNk0wh6xwrs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26163},"main":"dist/index.js","type":"module","_from":"file:bitcurve-reactor-style-0.0.1.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"private":false,"scripts":{"test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","check":"tsc --noEmit"},"_npmUser":{"name":"bitcurvesystems","email":"contact@bitcurve.com"},"_resolved":"/tmp/2f707edd1888faa4fc6091cb59f0ac1a/bitcurve-reactor-style-0.0.1.tgz","_integrity":"sha512-mNfEBFSXwT7ZcMOVZg98sQbrsaZmT0jGEkB9AOP1Qr+5+sOXBOE8ohm1hXe3sfrraX/R+arJ/a6VCJ+w1JgdGQ==","repository":{"url":"git+ssh://git@github.com/appcurve/reactor.git","type":"ssh","directory":"packages/style"},"_npmVersion":"10.7.0","description":"This package exports a custom `cn()` function for merging CSS class names with tailwindcss.","directories":{},"sideEffects":false,"_nodeVersion":"20.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.4","tailwindcss":"^3.4.7","tailwind-merge":"^2.3.0","@fluid-tailwind/tailwind-merge":"^0.0.2"},"peerDependencies":{"tailwind-merge":"^2.3.0","@fluid-tailwind/tailwind-merge":"^0.0.2"},"_npmOperationalInternal":{"tmp":"tmp/reactor-style_0.0.1_1722902791111_0.24696543292924988","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@bitcurve/reactor-style","version":"0.0.2","license":"MIT","_id":"@bitcurve/reactor-style@0.0.2","maintainers":[{"name":"bitcurvesystems","email":"contact@bitcurve.com"}],"homepage":"https://github.com/appcurve/reactor#readme","bugs":{"url":"https://github.com/appcurve/reactor/issues"},"dist":{"shasum":"ef43107a1cbdd01e2b902cd25480aa82d26e5dcf","tarball":"https://registry.npmjs.org/@bitcurve/reactor-style/-/reactor-style-0.0.2.tgz","fileCount":10,"integrity":"sha512-v9twI1u2RjsReiDynZq96CQLwY2yPhDXYBgWmSUnQ96UHEQL35pIG5lrWWc59ltlSdaZeC24nECYs/67oRPQ9w==","signatures":[{"sig":"MEUCIBhA0GYuPNROmASzj6JeTJclwausi2be0A046s8J50+TAiEAioWuI/1/JF5kHdMEvtqOpt/lLCnWLvW9SdqcSdn8+Kc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32873},"main":"dist/index.js","type":"module","_from":"file:bitcurve-reactor-style-0.0.2.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"private":false,"scripts":{"test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","check":"tsc --noEmit"},"_npmUser":{"name":"bitcurvesystems","email":"contact@bitcurve.com"},"_resolved":"/tmp/fcde8fa52b1f046f6e44744495b8d4e3/bitcurve-reactor-style-0.0.2.tgz","_integrity":"sha512-v9twI1u2RjsReiDynZq96CQLwY2yPhDXYBgWmSUnQ96UHEQL35pIG5lrWWc59ltlSdaZeC24nECYs/67oRPQ9w==","repository":{"url":"git+ssh://git@github.com/appcurve/reactor.git","type":"ssh","directory":"packages/style"},"_npmVersion":"10.7.0","description":"This package exports a custom `cn()` function for merging CSS class names with tailwindcss.","directories":{},"sideEffects":false,"_nodeVersion":"20.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.2.4","typescript":"^5.5.4","tailwindcss":"^3.4.10","tailwind-merge":"^2.5.2","@fluid-tailwind/tailwind-merge":"^0.0.2"},"peerDependencies":{"tailwind-merge":"^2.5.2","@fluid-tailwind/tailwind-merge":"^0.0.2"},"_npmOperationalInternal":{"tmp":"tmp/reactor-style_0.0.2_1725054234359_0.6428200554378012","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@bitcurve/reactor-style","type":"module","version":"0.0.3","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","private":false,"sideEffects":false,"repository":{"type":"ssh","url":"git+ssh://git@github.com/appcurve/reactor.git","directory":"packages/style"},"publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"devDependencies":{"@fluid-tailwind/tailwind-merge":"^0.0.2","tailwind-merge":"^2.5.2","tailwindcss":"^3.4.10","tsup":"^8.2.4","typescript":"^5.5.4"},"peerDependencies":{"@fluid-tailwind/tailwind-merge":"^0.0.2","tailwind-merge":"^2.5.2"},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts","check":"tsc --noEmit","test":"vitest"},"_id":"@bitcurve/reactor-style@0.0.3","description":"This package exports a custom `cn()` function for merging CSS class names with tailwindcss.","bugs":{"url":"https://github.com/appcurve/reactor/issues"},"homepage":"https://github.com/appcurve/reactor#readme","_integrity":"sha512-suunNBGl83hTjzxukVQ46qJx/wjWNr7SqvfaS4PPFOYsRQ/cadzdJREOI7NXPYA+FdCOykvH9Fg35REpql/qvg==","_resolved":"/tmp/bc5a7fd6a1ac5941ad0bbbcd648bd271/bitcurve-reactor-style-0.0.3.tgz","_from":"file:bitcurve-reactor-style-0.0.3.tgz","_nodeVersion":"20.15.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-suunNBGl83hTjzxukVQ46qJx/wjWNr7SqvfaS4PPFOYsRQ/cadzdJREOI7NXPYA+FdCOykvH9Fg35REpql/qvg==","shasum":"a0f332c94a819eb4d778337aff9c3cf59e14f1c7","tarball":"https://registry.npmjs.org/@bitcurve/reactor-style/-/reactor-style-0.0.3.tgz","fileCount":10,"unpackedSize":32947,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDocBmKlnKlcwdX6c3K15Rz0UethtdYQcaxOqpSR8necAiEAsIkUzkPLT6+l2uF/2cG48wCPF8Hn8oH1LqNHjoEwsOU="}]},"_npmUser":{"name":"bitcurvesystems","email":"contact@bitcurve.com"},"directories":{},"maintainers":[{"name":"bitcurvesystems","email":"contact@bitcurve.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reactor-style_0.0.3_1725583286645_0.9436827159784564"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-30T23:10:01.591Z","modified":"2024-09-06T00:41:26.993Z","0.0.0":"2024-07-30T23:10:02.034Z","0.0.1":"2024-08-06T00:06:31.280Z","0.0.2":"2024-08-30T21:43:54.563Z","0.0.3":"2024-09-06T00:41:26.784Z"},"bugs":{"url":"https://github.com/appcurve/reactor/issues"},"license":"MIT","homepage":"https://github.com/appcurve/reactor#readme","repository":{"type":"ssh","url":"git+ssh://git@github.com/appcurve/reactor.git","directory":"packages/style"},"description":"This package exports a custom `cn()` function for merging CSS class names with tailwindcss.","maintainers":[{"name":"bitcurvesystems","email":"contact@bitcurve.com"}],"readme":"# @bitcurve/reactor-style\n\nThis package exports a custom `cn()` function for merging CSS class names with tailwindcss. \n\nIt is specifically configured for use projects that leverage the `@bitcurve/reactor-*` packages.\n\n## Overview\n\nThe `cn()` function is a popular pattern that combines the functionality of [clsx](https://www.npmjs.com/package/clsx) with [tailwind-merge](https://www.npmjs.com/package/tailwind-merge) to intelligently merge tailwind utility classes.\n\nThis version of the function includes custom configuration for `tailwind-merge` that reflects the `@bitcurve/reactor-tw-core` [tailwind preset](https://tailwindcss.com/docs/presets) and supports `fluid-tailwind` (https://fluid.tw/) for fluid responsive design.\n\nThe package includes an independent implementation of `clsx` to avoid the need for the `clsx` package as a dependency\n\n## Installation\n\nInstall the package's peer dependencies as dependencies:\n\n```sh\npnpm add tailwind-merge @fluid-tailwind/tailwind-merge\n```\n\nInstall this package as a dependency:\n\n```sh\npnpm add @bitcurve/reactor-style\n```\n\n## Usage\n\n### Merge css class names with `cn()`\n\n```ts\nimport { cn } from '@bitcurve/reactor-style'\n\nconst className = cn('text-primary-500', 'bg-primary-100', 'hover:bg-primary-200')\n```\n\nThe `cn()` function supports the same syntax as `clsx` including arrays and objects.\n\nRefer to the clsx docs for more details: https://www.npmjs.com/package/clsx\n","readmeFilename":"README.md"}