{"_id":"@11thdeg/cn-d20-ability-score","_rev":"4-e333a140fec2516aa75bce600927f089","name":"@11thdeg/cn-d20-ability-score","dist-tags":{"latest":"4.0.0-beta.5"},"versions":{"4.0.0-beta.2":{"name":"@11thdeg/cn-d20-ability-score","version":"4.0.0-beta.2","keywords":["lit","web-components","dnd","d20","ability-score","rpg"],"author":{"name":"Ville Takanen"},"license":"MIT","_id":"@11thdeg/cn-d20-ability-score@4.0.0-beta.2","maintainers":[{"name":"villetakanen","email":"vitkukissa@gmail.com"}],"dist":{"shasum":"be3dc558a7fb31a6716ac992082fa45c1fa183a5","tarball":"https://registry.npmjs.org/@11thdeg/cn-d20-ability-score/-/cn-d20-ability-score-4.0.0-beta.2.tgz","fileCount":6,"integrity":"sha512-jhIznueVrPippBNjoBuqbqycyIrL2bX5GbcdmkuqONvmNN9YX0wFVDtVBXhqQF0WrwHqCZFRxgs2QAGQIEIL3A==","signatures":[{"sig":"MEYCIQDxs8wbX6KnVBSyu/goO6A4qeowpCEXjgfVh1pj4HRb/wIhAPqPazbiGYEzIQLv+tRGkKJWFEsJgUHtdRKBPY+0gJ21","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9613},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"492a2330c43a069ed21bb9b9fa7cffe1ff5ff39a","scripts":{"dev":"vite","build":"vite build","check":"biome check --write","prepare":"pnpm build && pnpm build:types","build:types":"tsc -p tsconfig.json --emitDeclarationOnly"},"_npmUser":{"name":"villetakanen","email":"vitkukissa@gmail.com"},"_npmVersion":"10.8.2","description":"A custom element for displaying D&D 5e ability scores.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"lit":"^3.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.7","typescript":"^5.8.3","@biomejs/biome":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/cn-d20-ability-score_4.0.0-beta.2_1756902529892_0.5512558339060813","host":"s3://npm-registry-packages-npm-production"}},"4.0.0-beta.3":{"name":"@11thdeg/cn-d20-ability-score","version":"4.0.0-beta.3","keywords":["lit","web-components","dnd","d20","ability-score","rpg"],"author":{"name":"Ville Takanen"},"license":"MIT","_id":"@11thdeg/cn-d20-ability-score@4.0.0-beta.3","maintainers":[{"name":"villetakanen","email":"vitkukissa@gmail.com"}],"dist":{"shasum":"5bfb2619bb76a28c7191fb7aedbbb20b40e7da52","tarball":"https://registry.npmjs.org/@11thdeg/cn-d20-ability-score/-/cn-d20-ability-score-4.0.0-beta.3.tgz","fileCount":6,"integrity":"sha512-ivlYcBcxRe+B7iVuE4g7Wvvd1aNKDYCEx9eV+K42Hu6yITrPcRSw5Ksqvb62uegrTpaYwXEyz1n51iW4/C7Wfg==","signatures":[{"sig":"MEUCIQDTpGGXS73+umxo6wflZtspwBboEBWgn9S+D7LWJbr74QIgUOENtyj5nX1dAgFDdi9gNOSPqK84xUnp7A1MCgGKLig=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9563},"main":"dist/index.js","type":"module","_from":"file:11thdeg-cn-d20-ability-score-4.0.0-beta.3.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite","build":"vite build","check":"biome check --write","build:types":"tsc -p tsconfig.json --emitDeclarationOnly"},"_npmUser":{"name":"villetakanen","email":"vitkukissa@gmail.com"},"_resolved":"/private/var/folders/5x/92_br_c51191x_mqv5grk7p00000gq/T/4d1bc7265dd7f8357f2a3eb593160894/11thdeg-cn-d20-ability-score-4.0.0-beta.3.tgz","_integrity":"sha512-ivlYcBcxRe+B7iVuE4g7Wvvd1aNKDYCEx9eV+K42Hu6yITrPcRSw5Ksqvb62uegrTpaYwXEyz1n51iW4/C7Wfg==","_npmVersion":"10.8.2","description":"A custom element for displaying D&D 5e ability scores.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"lit":"^3.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.7","typescript":"^5.8.3","@biomejs/biome":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/cn-d20-ability-score_4.0.0-beta.3_1757488645116_0.29703877751166563","host":"s3://npm-registry-packages-npm-production"}},"4.0.0-beta.4":{"name":"@11thdeg/cn-d20-ability-score","version":"4.0.0-beta.4","keywords":["lit","web-components","dnd","d20","ability-score","rpg"],"author":{"name":"Ville Takanen"},"license":"MIT","_id":"@11thdeg/cn-d20-ability-score@4.0.0-beta.4","maintainers":[{"name":"villetakanen","email":"vitkukissa@gmail.com"}],"dist":{"shasum":"d1d440257fec6fcd901b175e4d2250e4f09edaab","tarball":"https://registry.npmjs.org/@11thdeg/cn-d20-ability-score/-/cn-d20-ability-score-4.0.0-beta.4.tgz","fileCount":6,"integrity":"sha512-WoypZOmjRCFrlfWQldxCvZC2Dd5G9xobKiD7Q7SW08cH+Pq2NyrO/G/Rk183mXBMctv4FUMLrEMJlGHg+nQObg==","signatures":[{"sig":"MEQCICdNT9nKpUu6MNwJMKP1t46fgrw6+fb7rWMy/kDOpVbWAiAEg+CaVrEwxsEiwY5x+EgcRvbg9PM49dBIhcD1cEFILA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9613},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"e7804459e3eb0189e1790a11089e46caed66864b","scripts":{"dev":"vite","build":"vite build","check":"biome check --write","prepare":"pnpm build && pnpm build:types","build:types":"tsc -p tsconfig.json --emitDeclarationOnly"},"_npmUser":{"name":"villetakanen","email":"vitkukissa@gmail.com"},"_npmVersion":"10.8.2","description":"A custom element for displaying D&D 5e ability scores.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"lit":"^3.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.7","typescript":"^5.8.3","@biomejs/biome":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/cn-d20-ability-score_4.0.0-beta.4_1757510344200_0.6214414857548161","host":"s3://npm-registry-packages-npm-production"}},"4.0.0-beta.5":{"name":"@11thdeg/cn-d20-ability-score","version":"4.0.0-beta.5","description":"A custom element for displaying D&D 5e ability scores.","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"publishConfig":{"access":"public"},"scripts":{"prepare":"pnpm build && pnpm build:types","build":"vite build","build:types":"tsc -p tsconfig.json --emitDeclarationOnly","dev":"vite","check":"biome check --write"},"keywords":["lit","web-components","dnd","d20","ability-score","rpg"],"author":{"name":"Ville Takanen"},"license":"MIT","dependencies":{"lit":"^3.3.1"},"devDependencies":{"@biomejs/biome":"2.2.0","typescript":"^5.8.3","vite":"^6.0.7"},"_id":"@11thdeg/cn-d20-ability-score@4.0.0-beta.5","gitHead":"afb4ee7cf3d3a8d0d2a3f330e0325078b8272b3b","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-rVuUVHFDJmhuWRYBDIWhv2y3HbimNXI+I3FlhTwddtaLKwvEneZqNIS3zzg7huweqdIp8SJ7IhW9+AGAdWZoHQ==","shasum":"3b9face1ad2ae463953424912a4e9f1c6c2c7aed","tarball":"https://registry.npmjs.org/@11thdeg/cn-d20-ability-score/-/cn-d20-ability-score-4.0.0-beta.5.tgz","fileCount":6,"unpackedSize":10460,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDCMw3jzhXJYFHGpp9uz9ESc4CP4OQaI3LQgKbxA33nsAIgeT8W74ojkgDoovGA28rpbaQqhX3iqXNC4VZKb2htG7g="}]},"_npmUser":{"name":"villetakanen","email":"vitkukissa@gmail.com"},"directories":{},"maintainers":[{"name":"villetakanen","email":"vitkukissa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cn-d20-ability-score_4.0.0-beta.5_1758105654326_0.9303131525365436"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-03T12:28:49.830Z","modified":"2025-09-17T10:40:54.740Z","4.0.0-beta.2":"2025-09-03T12:28:50.096Z","4.0.0-beta.3":"2025-09-10T07:17:25.270Z","4.0.0-beta.4":"2025-09-10T13:19:04.375Z","4.0.0-beta.5":"2025-09-17T10:40:54.565Z"},"author":{"name":"Ville Takanen"},"license":"MIT","keywords":["lit","web-components","dnd","d20","ability-score","rpg"],"description":"A custom element for displaying D&D 5e ability scores.","maintainers":[{"name":"villetakanen","email":"vitkukissa@gmail.com"}],"readme":"# cn-d20-ability-score\n\nA LitElement component for displaying D&D 5e ability scores. Can be used as a display component or an interactive input field.\n\n## Usage\n\n* `<cn-d20-ability-score>` renders a standard ability score with default value 10 (modifier +0).\n* `<cn-d20-ability-score base=\"15\">` renders an ability score with value 15 (modifier +2).\n* `<cn-d20-ability-score interactive>` renders an interactive input field for entering ability scores.\n* `<cn-d20-ability-score interactive base=\"12\" min=\"8\" max=\"20\">` renders an interactive field with custom limits.\n\n## Events\n\nThe component dispatches a `score-change` event when the score is changed in interactive mode:\n\n```typescript\nelement.addEventListener('score-change', (event) => {\n  console.log('Base score:', event.detail.base);\n  console.log('Modifier:', event.detail.modifier);\n});\n```\n\n## Background\n\nThis element was created as part of the `cyan-design-system`, but it can also be used as a standalone component in any project. The `cyan-design-system` overrides various CSS variables, but all these variables are defined as CSS custom properties with sensible default values for light and dark themes.\n","readmeFilename":"README.md"}