{"_id":"@asyarb/twix","_rev":"9-cd15aeab0d5f117c684d3e28f2e10dd2","name":"@asyarb/twix","dist-tags":{"latest":"0.3.2"},"versions":{"0.1.1":{"name":"@asyarb/twix","version":"0.1.1","description":"Create variant based className strings.","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"license":"MIT","author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"sideEffects":false,"type":"module","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs"},"./package.json":"./package.json"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"siroc build","dev":"siroc build --watch","prepare":"npx husky install","format":"prettier --write .","lint":"eslint --ext .js,.ts .","test":"uvu -r tsm tests","release":"npm run build && npm run test && npm run lint && standard-version"},"browserslist":">2%, not ie 11, not op_mini all","devDependencies":{"@commitlint/cli":"^13.2.1","@commitlint/config-conventional":"^13.2.0","@typescript-eslint/eslint-plugin":"^5.2.0","@typescript-eslint/parser":"^5.2.0","clsx":"*","eslint":"^8.1.0","eslint-plugin-tsdoc":"^0.2.14","husky":"^7.0.4","prettier":"^2.4.1","siroc":"^0.16.0","standard-version":"^9.3.2","tsm":"^2.1.4","typescript":"^4.4.4","uvu":"^0.5.2"},"peerDependencies":{"clsx":"^1.1.1"},"engines":{"node":">=12.7.0"},"gitHead":"057a888701ecee6f9aa9a67f6347a3ffc2501a7d","bugs":{"url":"https://github.com/asyarb/twix/issues"},"homepage":"https://github.com/asyarb/twix#readme","_id":"@asyarb/twix@0.1.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-QDTnRPy6E7ha+72AJI6eNzDDUctCHNdnKv86DjtD8u7My+Ap7n4XWzdSUf1RhoOVHBe6yUHDQWZkc2qy8f1m7g==","shasum":"b9fa28f7968a5a8d06f609edeeb1153b1a24365c","tarball":"https://registry.npmjs.org/@asyarb/twix/-/twix-0.1.1.tgz","fileCount":6,"unpackedSize":8947,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXzkPsJ2CoI/fLHfGe04vjVKu4tijp44o7ZXdsB0n7xQIgH+tpfP7Me7HEtjXv8o9bZNCx+brNRNGcoK99LEa9qiI="}]},"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twix_0.1.1_1635565895770_0.2551570256830087"},"_hasShrinkwrap":false},"0.1.2":{"name":"@asyarb/twix","version":"0.1.2","description":"Create variant based className strings.","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"license":"MIT","author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"sideEffects":false,"type":"module","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs"},"./package.json":"./package.json"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"siroc build","dev":"siroc build --watch","prepare":"npx husky install","format":"prettier --write .","lint":"eslint --ext .js,.ts .","test":"uvu -r tsm tests","release":"npm run build && npm run test && npm run lint && standard-version"},"browserslist":">2%, not ie 11, not op_mini all","devDependencies":{"@commitlint/cli":"^14.1.0","@commitlint/config-conventional":"^14.1.0","@typescript-eslint/eslint-plugin":"^5.3.1","@typescript-eslint/parser":"^5.3.1","clsx":"*","eslint":"^8.2.0","eslint-plugin-tsdoc":"^0.2.14","husky":"^7.0.4","prettier":"^2.4.1","siroc":"^0.16.0","standard-version":"^9.3.2","tsm":"^2.1.4","typescript":"^4.4.4","uvu":"^0.5.2"},"peerDependencies":{"clsx":"^1.1.1"},"engines":{"node":">=12.7.0"},"gitHead":"9eefc6a02d635154603250f5a342e29fbbb5cca3","bugs":{"url":"https://github.com/asyarb/twix/issues"},"homepage":"https://github.com/asyarb/twix#readme","_id":"@asyarb/twix@0.1.2","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-PisfxyxsyobtoYvG3FNFUtxKpmrAtLxCdyotRkvt4keMcQyUVgB1VSEbRcP/qrs65VAN/9IWEJccu6bAG2Zwgg==","shasum":"e872a93d468ef011ea4a3f18ad3785b4c5e4befb","tarball":"https://registry.npmjs.org/@asyarb/twix/-/twix-0.1.2.tgz","fileCount":6,"unpackedSize":9504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2Tf9SX41mnhzmkZ+JY89gHAH9aL3bhf9GfVr9b3z6oAIhANhKuTgrtDSVwfC65o4aeDv3flcGJuP9vVoTcZxw9NDM"}]},"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twix_0.1.2_1636529564295_0.20545712031186492"},"_hasShrinkwrap":false},"0.1.3":{"name":"@asyarb/twix","version":"0.1.3","description":"Create variant based className strings.","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"license":"MIT","author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"sideEffects":false,"type":"module","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs"},"./package.json":"./package.json"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"siroc build","dev":"siroc build --watch","format":"prettier --write .","lint":"eslint --ext .js,.ts .","prepare":"npx husky install","release":"npm run build && npm run test && npm run lint && standard-version","test":"uvu -r tsm tests"},"browserslist":">2%, not ie 11, not op_mini all","devDependencies":{"@commitlint/cli":"^15.0.0","@commitlint/config-conventional":"^15.0.0","@typescript-eslint/eslint-plugin":"^5.3.1","@typescript-eslint/parser":"^5.3.1","clsx":"*","eslint":"^8.2.0","eslint-plugin-tsdoc":"^0.2.14","husky":"^7.0.4","prettier":"^2.4.1","siroc":"^0.16.0","standard-version":"^9.3.2","tsm":"^2.1.4","typescript":"^4.4.4","uvu":"^0.5.2"},"peerDependencies":{"clsx":"^1.1.1"},"engines":{"node":">=12.7.0"},"gitHead":"7ab1fdea116737be39c47ceadf09692b3e09c8bb","bugs":{"url":"https://github.com/asyarb/twix/issues"},"homepage":"https://github.com/asyarb/twix#readme","_id":"@asyarb/twix@0.1.3","_nodeVersion":"17.2.0","_npmVersion":"8.1.4","dist":{"integrity":"sha512-kqqQ4h2LxO4QEk8TLAF3OAILBkRqZYzkjt+Lo9hGfATxCze7IXNbsokHArFONhhNdb0Ws6ls08Qkryae1tjx0Q==","shasum":"384b01c6dd9fa560604b7287c00b42924f332bb9","tarball":"https://registry.npmjs.org/@asyarb/twix/-/twix-0.1.3.tgz","fileCount":6,"unpackedSize":10518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvM/rCRA9TVsSAnZWagAAOcgP/0Hkoy4Kt/kopjasDwQV\nR//3BrRRPGp+NQvdbMoM5R8hQ+iDc1IgXY1RmdPW4XrnsK1QBR3JBYpu8IKO\nzFBcrDCBu0V1mYbXf2f1eeH/NLfxVKRxZe0aEaGIjSL+ZgMvs/O4FsECNlMg\n344MgKV3PXj2O0lVQ8UcYozccW0W1Hxd6vz1kt9gmsXV9mmrBTOgMUoZelM/\n6Zjky2aLkG0TCoUsXNSV2j4p+zqzgaOKwHvlSyk2EvLj8bq4hpvHq00VPwOq\nIcX5QEGu12LtAXPof6Dz2G8oitwaRYyQkuL8i1tUk1pPfR7XSBKRGPF3TWRg\nDhZlm8IpcegzwsxSG/amutixKwBD4FX1ppxvFGxiNHPFEGr4ibCarX05VQZE\n2371komXsTssD0dDO8eHr6tuiF2aRbHz/Vl7Q8So1U8pUq8WhjU11CTXv49/\nci4drikJhAv4FT7I9NPduF4Q/bgjgmDohLmB6knIVN0ytiZYYlLJP+Hw/wos\nULdFOiEI0Sq+1WbaawT9z2CU6IW/LDSY2tmYA/ytSuYZDbZs28fxyRkVuRl8\nwYNEEtu/CwsScVHX0QCz/U5lSktt3IZ01ENwMfYeRa7yGRc/hE8zRnIyq5cJ\nnY3Udzw3SuUra9PxHlJl+RS1LPU+/f5vYi5bx6hwIQEWr+nVygGRLQf5xtN+\nFtEu\r\n=Tv1M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJtHpBql9IZon3cs+TyoyuvCoXbueF3ukVvoJfhB+yAQIhAJ0eVge+a8dnrOR6z1m/87vAaR7L/K7YnEAUs1a2WrSs"}]},"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twix_0.1.3_1639763947293_0.504056325731479"},"_hasShrinkwrap":false},"0.1.4":{"name":"@asyarb/twix","version":"0.1.4","description":"Create variant based className strings.","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"license":"MIT","author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"sideEffects":false,"type":"module","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs"},"./package.json":"./package.json"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"siroc build","dev":"siroc build --watch","format":"prettier --write .","lint":"eslint --ext .js,.ts .","prepare":"npx husky install","release":"npm run build && npm run test && npm run lint && standard-version","test":"uvu -r tsm tests"},"browserslist":">2%, not ie 11, not op_mini all","devDependencies":{"@commitlint/cli":"^15.0.0","@commitlint/config-conventional":"^15.0.0","@typescript-eslint/eslint-plugin":"^5.3.1","@typescript-eslint/parser":"^5.3.1","clsx":"*","eslint":"^8.2.0","eslint-plugin-tsdoc":"^0.2.14","husky":"^7.0.4","prettier":"^2.4.1","siroc":"^0.16.0","standard-version":"^9.3.2","tsm":"^2.1.4","typescript":"^4.4.4","uvu":"^0.5.2"},"peerDependencies":{"clsx":"^1.1.1"},"engines":{"node":">=12.7.0"},"gitHead":"a7cef9c8ecff176bb15456868fe551c896c8bb38","bugs":{"url":"https://github.com/asyarb/twix/issues"},"homepage":"https://github.com/asyarb/twix#readme","_id":"@asyarb/twix@0.1.4","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-XyH0Ji87cyCeGeDAdx4AcDQcJMoTTpZ0wqa+zu99/4nzD9YKuqDuOIshqEaaoakZ2gKbKyq6knJPirju3XftUQ==","shasum":"f3442b5e3e24997a2ac7071077632d951f6c4d14","tarball":"https://registry.npmjs.org/@asyarb/twix/-/twix-0.1.4.tgz","fileCount":6,"unpackedSize":10903,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDx6cUJhBErTVpvj3pr5oRKaBAr1KafsjRBrqbFQAvfcAiEA8l6kJL0lcwWKwkm661TXx4SCCedAINNlUdahSib+5mE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVhQUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHhw/+KzUHHFe8HAMw2inUFhvBUjhuxll33RvZanGMfNnZkmhnG3+4\r\nPyFmCTgBRJzCApKcqqtT1773MxSMANZBhS+nHGAcwZHH4zKSTQIFPeoItYL+\r\nW9yiAXK3d3LOL8t16dHiW3qeRrO56k9KiojsciKWeyEsZ8uavOYiK2QoVmAu\r\n7SWRnwSExg3W8ToUcvkC9jqFt9MvwnM6dkaQ2dMe83q9YorDFEA8qm6MDMT3\r\nwupIa4Cyz/UwAnnAlezpokIRqUUoFEc0cKqONT3Swszybdx6g8moBwX3hqC8\r\nNFOpSPodFAmEhtXjUAZGFZ74g1p9vNl1thfXgEvmWDsFmNOStZZ0hr8MnXpR\r\nmdh5ZBGtSyluY0t+5OOS0/QFh7XoQ4kF35aucRGjFotA+iRqeVNuDXANFn3F\r\nrfn2nd/kGT2+buCg4boJDiDw/lC7+sKNurNcVkOd+xTLYsBmX1KEHtWv/Rk9\r\nbdOT1u08Icl63HR3QnaWnyALXmiOPH0UyKjI1+rpWrxJpSjrlKRhB80WlO6V\r\nQpgb7zjxirhZW29GsFYfRmcCHfVTt9ZvsrmTGEt6gWgwV9nKZsnLe+RjzTmD\r\nqF01HyyEptW7e6Ey6R6qDRaX43bsfUhrEosWFfo+q2Gxc6okYK5pBmccQH1r\r\n6HZCX7I3fZ6QXvOEJg6rOb+EFZQmUpU2stI=\r\n=cl1F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twix_0.1.4_1649808404662_0.8699700647978401"},"_hasShrinkwrap":false},"0.2.0":{"name":"@asyarb/twix","version":"0.2.0","description":"Create variant based className strings.","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"license":"MIT","author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"sideEffects":false,"type":"module","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs"},"./package.json":"./package.json"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"siroc build","dev":"siroc build --watch","format":"prettier --write .","lint":"eslint --ext .js,.ts .","release":"npm run build && npm run test && npm run lint && standard-version","test":"uvu -r tsm tests"},"browserslist":">2%, not ie 11, not op_mini all","devDependencies":{"@commitlint/cli":"^15.0.0","@commitlint/config-conventional":"^15.0.0","@typescript-eslint/eslint-plugin":"^5.3.1","@typescript-eslint/parser":"^5.3.1","clsx":"^2.0.0","eslint":"^8.2.0","eslint-plugin-tsdoc":"^0.2.14","prettier":"^2.4.1","siroc":"^0.16.0","standard-version":"^9.3.2","tsm":"^2.1.4","typescript":"^4.4.4","uvu":"^0.5.2"},"peerDependencies":{"clsx":"^2"},"engines":{"node":">=12.7.0"},"gitHead":"a78a7e6fd6aa1a8fe74e934fe2244084cbe99177","bugs":{"url":"https://github.com/asyarb/twix/issues"},"homepage":"https://github.com/asyarb/twix#readme","_id":"@asyarb/twix@0.2.0","_nodeVersion":"20.4.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-R7XcO5Yrj6wj92bvP1C6//M8PjQYTENVpSSJJmeU/bDLQGRmbZGlrLoiqJ/UovhsEdfSja9ktPVhfMofc6zsAg==","shasum":"360220ce6bc0549f5520e43d556e2434197dd00c","tarball":"https://registry.npmjs.org/@asyarb/twix/-/twix-0.2.0.tgz","fileCount":6,"unpackedSize":10858,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGOZ7SqhkKP5mOl/pB7X6Fxh7/LksUewfkd2r9MM0LhYAiBTljkHI8Vrya1QJWRzr8N/Qv/2/JtzErqNXKevXk4f5g=="}]},"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twix_0.2.0_1689725481797_0.2853292112806136"},"_hasShrinkwrap":false},"0.2.1":{"name":"@asyarb/twix","version":"0.2.1","description":"Create variant based className strings.","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"license":"MIT","author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./package.json":"./package.json"},"main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"siroc build","dev":"siroc build --watch","format":"prettier --write .","lint":"eslint --ext .js,.ts .","release":"npm run build && npm run test && npm run lint && standard-version","test":"uvu -r tsm tests"},"browserslist":">2%, not ie 11, not op_mini all","devDependencies":{"@commitlint/cli":"^15.0.0","@commitlint/config-conventional":"^15.0.0","@typescript-eslint/eslint-plugin":"^5.3.1","@typescript-eslint/parser":"^5.3.1","clsx":"^2.0.0","eslint":"^8.2.0","eslint-plugin-tsdoc":"^0.2.14","prettier":"^2.4.1","siroc":"^0.16.0","standard-version":"^9.3.2","tsm":"^2.1.4","typescript":"^4.4.4","uvu":"^0.5.2"},"peerDependencies":{"clsx":"^2"},"engines":{"node":">=12.7.0"},"_id":"@asyarb/twix@0.2.1","gitHead":"ac5b9018de5685d0388f997ec39e2d03bae0bc57","bugs":{"url":"https://github.com/asyarb/twix/issues"},"homepage":"https://github.com/asyarb/twix#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-VQcv1WVTlafof8M960caqMCJggIE8M8hfF+O4YdKmQhsW20SlE+taC2BsLrAb34AD5kl/wSyM4Mo4kPuTnRKnw==","shasum":"1a1b5bc88455f8800f334234b2c6df4ee2327be5","tarball":"https://registry.npmjs.org/@asyarb/twix/-/twix-0.2.1.tgz","fileCount":6,"unpackedSize":10847,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjQeb29/LdqYgV3/uie0CfqsW/qtG7SYdBMp9jJQiFVwIhAIE4HokvX7FVnNeDBrXxyql8IKhoOUgd/VNbQni8AE/H"}]},"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twix_0.2.1_1712796278104_0.9603666163398012"},"_hasShrinkwrap":false},"0.3.0":{"name":"@asyarb/twix","version":"0.3.0","description":"Create variant based className strings.","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"license":"MIT","sideEffects":false,"type":"module","publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"types":"./dist/index.d.ts","scripts":{"dev":"vitest","build":"NODE_ENV=production tsup","test":"vitest run","format":"prettier --write .","release":"npm run build && npm run test && standard-version"},"browserslist":">2%, not ie 11, not op_mini all","devDependencies":{"clsx":"^2.1.0","prettier":"^3.2.5","standard-version":"^9.3.2","tsup":"^8.0.2","typescript":"^5.4.5","vite":"^5.2.8","vitest":"^1.4.0"},"peerDependencies":{"clsx":"^2"},"engines":{"node":">=12.7.0"},"_id":"@asyarb/twix@0.3.0","gitHead":"e8de323459fa744cc862680070a5012597ff8a45","bugs":{"url":"https://github.com/asyarb/twix/issues"},"homepage":"https://github.com/asyarb/twix#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-mHvd/4ATD6f3Bzir1RwGBDitceSvGY96LqH36iGlTjKWSUZeWmvQrAwzni3B82K+lUoEG93bKbf7N9fPxx9N/A==","shasum":"dfbfa275a8bd456b420de65c7dc972caf3b92c8e","tarball":"https://registry.npmjs.org/@asyarb/twix/-/twix-0.3.0.tgz","fileCount":6,"unpackedSize":10493,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwSdrkK3GMft9XSvB3Rvw1SqtUR6T1hfVyXGyWRtmLUwIgcbLGLs+2s0Lqq5cVTtPXkqywKMJRmgw6t7hssi+9iE8="}]},"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twix_0.3.0_1712797825826_0.26672184585635206"},"_hasShrinkwrap":false},"0.3.1":{"name":"@asyarb/twix","version":"0.3.1","description":"Create variant based className strings.","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"license":"MIT","sideEffects":false,"type":"module","publishConfig":{"access":"public"},"main":"./dist/index.cjs","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"types":"./dist/index.d.ts","scripts":{"dev":"vitest","build":"NODE_ENV=production tsup","test":"vitest run","format":"prettier --write .","release":"npm run build && npm run test && standard-version"},"browserslist":">2%, not ie 11, not op_mini all","devDependencies":{"clsx":"^2.1.0","prettier":"^3.2.5","standard-version":"^9.3.2","tsup":"^8.0.2","typescript":"^5.4.5","vite":"^5.2.8","vitest":"^1.4.0"},"peerDependencies":{"clsx":"^2"},"engines":{"node":">=12.7.0"},"_id":"@asyarb/twix@0.3.1","gitHead":"b090c54308bfe6e46ba56b870668fc547725ebde","bugs":{"url":"https://github.com/asyarb/twix/issues"},"homepage":"https://github.com/asyarb/twix#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-w+W2BgsGCZUnfE3bvLkDEaDOErNZ8xkxgHQeGpciTN1jndRDyB8w8vvjo392Zm3NjD8TjG7BDtCitgqdCzl0NA==","shasum":"c96fe600173beb068eb49a2a3715f3d82c41536a","tarball":"https://registry.npmjs.org/@asyarb/twix/-/twix-0.3.1.tgz","fileCount":6,"unpackedSize":10528,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKqLa4x2B26MdejSSA+OtzjG2nyNwj2NiiwyhneBUywAIhANjK7xysCXqqcogkdWCyqy90NINZOTqd2NnV08gEyDu1"}]},"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twix_0.3.1_1712798190023_0.3343283022889212"},"_hasShrinkwrap":false},"0.3.2":{"name":"@asyarb/twix","version":"0.3.2","description":"Create variant based className strings.","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"license":"MIT","sideEffects":false,"publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"types":"./dist/index.d.ts","scripts":{"dev":"vitest","build":"NODE_ENV=production tsup","test":"vitest run","format":"prettier --write .","release":"npm run build && npm run test && standard-version"},"browserslist":">2%, not ie 11, not op_mini all","devDependencies":{"clsx":"^2.1.0","prettier":"^3.2.5","standard-version":"^9.3.2","tsup":"^8.0.2","typescript":"^5.4.5","vite":"^5.2.8","vitest":"^1.4.0"},"peerDependencies":{"clsx":"^2"},"_id":"@asyarb/twix@0.3.2","gitHead":"b64c18574dd3cfb1ee0fbc326cec9357df202bc1","bugs":{"url":"https://github.com/asyarb/twix/issues"},"homepage":"https://github.com/asyarb/twix#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-uT4XVTCbAwvGQftkxdlATozWonvXoE7eGXVSLWHHlo6J/1doIh8DUC7dwYO3+vpRwjTtQykFOEzZDjvcC1iDSw==","shasum":"ea077c58a3d79592b22cda0ce49d84ad78d11306","tarball":"https://registry.npmjs.org/@asyarb/twix/-/twix-0.3.2.tgz","fileCount":6,"unpackedSize":10369,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICdN8RroMpx3zsdiJMhBSFAR9RLl9y8HK6uJOvuw2MvQAiAUG/6u6ICcKFyQBmvreROt8Ig7PNvJzGQLG6AANEYvqQ=="}]},"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twix_0.3.2_1712803041196_0.7498595332224991"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-30T03:51:35.721Z","0.1.1":"2021-10-30T03:51:35.901Z","modified":"2024-04-11T02:37:21.496Z","0.1.2":"2021-11-10T07:32:44.424Z","0.1.3":"2021-12-17T17:59:07.458Z","0.1.4":"2022-04-13T00:06:44.818Z","0.2.0":"2023-07-19T00:11:21.931Z","0.2.1":"2024-04-11T00:44:38.277Z","0.3.0":"2024-04-11T01:10:26.079Z","0.3.1":"2024-04-11T01:16:30.173Z","0.3.2":"2024-04-11T02:37:21.326Z"},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"description":"Create variant based className strings.","homepage":"https://github.com/asyarb/twix#readme","repository":{"type":"git","url":"git+https://github.com/asyarb/twix.git"},"author":{"name":"Anthony Yarbrough","email":"asyarb@hawaii.edu"},"bugs":{"url":"https://github.com/asyarb/twix/issues"},"license":"MIT","readme":"# twix 🍫\n\n`twix` is a small utility for constructing classnames using a variant based api.\nThe API is largely copied from [stitches](https://stitches.dev/) but works with\njust plain class strings instead.\n\n## Installation\n\n`twix` has a peer dependency on `clsx`, a small utility for conditionally\ntoggling class names.\n\n```bash\nnpm i @asyarb/twix clsx\n```\n\n## Example Usage\n\n```ts\nconst button = twix({\n\tbase: 'rounded',\n\n\tvariants: {\n\t\tcolor: {\n\t\t\tpurple: 'bg-purple',\n\t\t\tblue: 'bg-blue',\n\t\t},\n\t\tsize: {\n\t\t\tsmall: 'p-5',\n\t\t\tlarge: 'p-8',\n\t\t},\n\t},\n\n\tcompoundVariants: [\n\t\t{\n\t\t\tcolor: 'purple',\n\t\t\tsize: 'small',\n\t\t\tclass: 'font-bold',\n\t\t},\n\t],\n\n\tdefaultVariants: {\n\t\tsize: 'large',\n\t},\n})\n\n// => \"rounded p-8 bg-purple\"\nbutton({ color: 'purple' })\n\n// => \"rounded p-5 bg-purple font-bold\"\nbutton({ color: 'purple', size: 'small' })\n```\n\n## TypeScript\n\n`twix` is written in TypeScript, and provides type-safety when defining and\nusing your variants.\n\n```ts\nimport type { GetVariants } from '@asyarb/twix'\n\n// ... Same button from above.\n\n// => TypeScript error - Variants must be provided.\nbutton()\n\n// => TypeScript error - Must provide `color` since no defaultVariant exists.\nbutton({ size: 'small' })\n\n// => Get variants as a type you can re-use elsewhere:\n/**\n * { color: 'purple' | 'blue', size?: 'small' | 'large' }\n */\ntype ButtonVariants = GetVariants<typeof button>\n```\n\n### Additional classes\n\nThe function returned from `twix` can also append arbitrary classes if desired.\n\n```ts\n// ... Same button from above.\n\n// => \"rounded p-5 bg-purple font-bold arbitrary\"\nbutton({ color: 'purple', size: 'small', class: 'arbitrary' })\n```\n\n### React usage\n\n```tsx\n// components/Button.tsx\n\nimport { GetVariants, twix } from '@asyarb/twix'\n\nconst button = twix({\n\t/** Same example from above... */\n})\n\ntype ButtonProps = {\n\t/** Userland props... */\n} & GetVariants<typeof button>\n\nconst Button = ({ color, size, ...props }: ButtonProps) => {\n\treturn <button className={button({ color, size })} {...props} />\n}\n```\n","readmeFilename":"README.md"}