{"_id":"@dta-au/designsystem-twig","_rev":"6-3dcd98a6a06a4eb3d726260bbcfd1506","name":"@dta-au/designsystem-twig","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@dta-au/designsystem-twig","version":"1.0.0","keywords":["ui kit","uikit","components","component library","design system","pattern library","storybook","styleguide"],"license":"GPL-2.0-or-later","_id":"@dta-au/designsystem-twig@1.0.0","maintainers":[{"name":"jamesfehon-dta","email":"james.fehon@dta.gov.au"}],"homepage":"https://github.com/dta-au/design-system","bugs":{"url":"https://github.com/JamesFehon-DTA/civictheme-uikit/issues"},"os":["darwin","linux","win32"],"cpu":["x64","arm","arm64","ia32"],"dist":{"shasum":"463f68c1004870409cd8cb1152aa361ef7526dda","tarball":"https://registry.npmjs.org/@dta-au/designsystem-twig/-/designsystem-twig-1.0.0.tgz","fileCount":825,"integrity":"sha512-7+Q7GUNu8nLfvGye4vNDA0RroS/HfZ8q1+KRVEH913+9NVwO2ICC2XFHYPrJU1j2KpuUAjaeoFSRmXI2eb7hPg==","signatures":[{"sig":"MEUCIFCEg/hXVWfxsHkAt6oiZcPkMYa+nCebY9WdgbdmHf4jAiEA1EzoPVIQfog4/wau2COmCy/NP4ZaaOWJQvxrtHXm0yU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dta-au%2fdesignsystem-twig@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15830805},"main":"dist/civictheme.js","type":"module","module":"dist/civictheme.esm.js","engines":{"node":">=22.6.0"},"exports":{".":{"import":"./dist/civictheme.esm.js","default":"./dist/civictheme.js"},"./dist/*":"./dist/*","./assets/*":"./assets/*","./components/*":"./components/*","./package.json":"./package.json"},"gitHead":"1edba1e2bc18acd6bc2e69f776424f26b4c08bf5","scripts":{"dev":"npm run dist && node build.js cli \"dist:watch\" \"dist:runtime:watch\" \"storybook\"","dist":"node build.js base build styles styles_storybook styles_variables styles_stories assets constants && npm run dist:runtime","lint":"eslint ./components ./.storybook && stylelint 'components/**/*.scss'","test":"node --experimental-vm-modules ../../node_modules/.bin/jest","build":"npm run build-storybook","test:ci":"npm run test-unit:ci","lint:fix":"eslint ./components ./.storybook --fix","storybook":"storybook dev -p 6006","dist:watch":"node build.js base build watch styles styles_storybook styles_variables styles_stories assets constants","dist:runtime":"vite build --config vite.runtime.config.js","test-unit:ci":"node --experimental-vm-modules ../../node_modules/.bin/jest --coverage","build-storybook":"npm run dist && storybook build","dist:runtime:watch":"vite build --watch --config vite.runtime.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ee44fd6e-a461-4494-94a4-eeeb3682b8c2"}},"repository":{"url":"git+https://github.com/dta-au/design-system.git","type":"git"},"_npmVersion":"11.16.0","description":"CivicTheme UI Kit for Twig","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@popperjs/core":"^2.11.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"glob":"^13.0.0","jest":"^29.7.0","vite":"^6.3.5","storybook":"10.4.2","stylelint":"^17.4.0","sass-embedded":"1.77.5","jest-transform-stub":"^2.0.0","@storybook/html-vite":"10.4.2","twig-testing-library":"^1.2.0","@storybook/addon-a11y":"10.4.2","@storybook/addon-docs":"10.4.2","@storybook/addon-links":"10.4.2","jest-environment-jsdom":"^30.3.0","vite-plugin-twig-drupal":"^1.7.0","stylelint-config-standard":"^40.0.0","stylelint-config-standard-scss":"^17.0.0","@whitespace/storybook-addon-html":"^9.0.0","@civictheme/scss-variables-extractor":"^0.2.1"},"_npmOperationalInternal":{"tmp":"tmp/designsystem-twig_1.0.0_1785131449816_0.7512400049925392","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dta-au/designsystem-twig","version":"1.0.1","keywords":["ui kit","uikit","components","component library","design system","pattern library","storybook","styleguide"],"license":"GPL-2.0-or-later","_id":"@dta-au/designsystem-twig@1.0.1","maintainers":[{"name":"jamesfehon-dta","email":"james.fehon@dta.gov.au"}],"homepage":"https://github.com/dta-au/design-system","bugs":{"url":"https://github.com/dta-au/design-system/issues"},"os":["darwin","linux","win32"],"cpu":["x64","arm","arm64","ia32"],"dist":{"shasum":"b82680f609810a0b1662135715d606ac673cdcd8","tarball":"https://registry.npmjs.org/@dta-au/designsystem-twig/-/designsystem-twig-1.0.1.tgz","fileCount":825,"integrity":"sha512-rqUG0GsHlelbGufvOzAbcOFKsIY6x+2JMXtPFoeoYofiPt0EIhXINtlbCIlrdxurUFdd0XlKcKS+tWyWjGEWzQ==","signatures":[{"sig":"MEUCIQC5ZBoEWVCkHJXOI9AVCDtf6KF7oVnP0SU4I8SltUkQ6gIgfufBH+GfeQZSL/9GiXVqaBnrJtcJYBJAzrHGqxUGg5w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dta-au%2fdesignsystem-twig@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15832345},"main":"dist/civictheme.js","type":"module","module":"dist/civictheme.esm.js","engines":{"node":">=22.6.0"},"exports":{".":{"import":"./dist/civictheme.esm.js","default":"./dist/civictheme.js"},"./dist/*":"./dist/*","./assets/*":"./assets/*","./components/*":"./components/*","./package.json":"./package.json"},"gitHead":"6b3f5d438aaa7a0c240a8c114b07741b5f25beb2","scripts":{"dev":"npm run dist && node build.js cli \"dist:watch\" \"dist:runtime:watch\" \"storybook\"","dist":"node build.js base build styles styles_storybook styles_variables styles_stories assets constants && npm run dist:runtime","lint":"eslint ./components ./.storybook && stylelint 'components/**/*.scss'","test":"node --experimental-vm-modules ../../node_modules/.bin/jest","build":"npm run build-storybook","test:ci":"npm run test-unit:ci","lint:fix":"eslint ./components ./.storybook --fix","storybook":"storybook dev -p 6006","dist:watch":"node build.js base build watch styles styles_storybook styles_variables styles_stories assets constants","dist:runtime":"vite build --config vite.runtime.config.js","test-unit:ci":"node --experimental-vm-modules ../../node_modules/.bin/jest --coverage","build-storybook":"npm run dist && storybook build","dist:runtime:watch":"vite build --watch --config vite.runtime.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ee44fd6e-a461-4494-94a4-eeeb3682b8c2"}},"repository":{"url":"git+https://github.com/dta-au/design-system.git","type":"git"},"_npmVersion":"11.16.0","description":"CivicTheme UI Kit for Twig","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@popperjs/core":"^2.11.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"glob":"^13.0.0","jest":"^29.7.0","vite":"^6.3.5","storybook":"10.4.2","stylelint":"^17.4.0","sass-embedded":"1.77.5","jest-transform-stub":"^2.0.0","@storybook/html-vite":"10.4.2","twig-testing-library":"^1.2.0","@storybook/addon-a11y":"10.4.2","@storybook/addon-docs":"10.4.2","@storybook/addon-links":"10.4.2","jest-environment-jsdom":"^30.3.0","vite-plugin-twig-drupal":"^1.7.0","stylelint-config-standard":"^40.0.0","stylelint-config-standard-scss":"^17.0.0","@whitespace/storybook-addon-html":"^9.0.0","@civictheme/scss-variables-extractor":"^0.2.1"},"_npmOperationalInternal":{"tmp":"tmp/designsystem-twig_1.0.1_1785281616347_0.47022982183496165","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@dta-au/designsystem-twig","version":"1.1.0","license":"GPL-2.0-or-later","description":"CivicTheme UI Kit for Twig","keywords":["ui kit","uikit","components","component library","design system","pattern library","storybook","styleguide"],"homepage":"https://github.com/dta-au/design-system","bugs":{"url":"https://github.com/dta-au/design-system/issues"},"repository":{"type":"git","url":"git+https://github.com/dta-au/design-system.git"},"publishConfig":{"access":"public"},"type":"module","main":"dist/civictheme.js","module":"dist/civictheme.esm.js","exports":{".":{"import":"./dist/civictheme.esm.js","default":"./dist/civictheme.js"},"./dist/*":"./dist/*","./components/*":"./components/*","./assets/*":"./assets/*","./package.json":"./package.json"},"engines":{"node":">=22.6.0"},"os":["darwin","linux","win32"],"cpu":["x64","arm","arm64","ia32"],"scripts":{"build":"npm run build-storybook","dist":"node build.js base build styles styles_storybook styles_variables styles_stories assets constants && npm run dist:runtime","dist:runtime":"vite build --config vite.runtime.config.js","dist:runtime:watch":"vite build --watch --config vite.runtime.config.js","dist:watch":"node build.js base build watch styles styles_storybook styles_variables styles_stories assets constants","storybook":"storybook dev -p 6006","build-storybook":"npm run dist && storybook build","dev":"npm run dist && node build.js cli \"dist:watch\" \"dist:runtime:watch\" \"storybook\"","test":"node --experimental-vm-modules ../../node_modules/.bin/jest","test:ci":"npm run test-unit:ci","test-unit:ci":"node --experimental-vm-modules ../../node_modules/.bin/jest --coverage","lint":"eslint ./components ./.storybook && stylelint 'components/**/*.scss'","lint:fix":"eslint ./components ./.storybook --fix"},"devDependencies":{"@civictheme/scss-variables-extractor":"^0.2.1","@storybook/addon-a11y":"10.4.2","@storybook/addon-docs":"10.4.2","@storybook/addon-links":"10.4.2","@storybook/html-vite":"10.4.2","@whitespace/storybook-addon-html":"^9.0.0","glob":"^13.0.0","jest":"^29.7.0","jest-environment-jsdom":"^30.3.0","jest-transform-stub":"^2.0.0","sass-embedded":"1.77.5","storybook":"10.4.2","stylelint":"^17.4.0","stylelint-config-standard":"^40.0.0","stylelint-config-standard-scss":"^17.0.0","twig-testing-library":"^1.2.0","vite":"^6.3.5","vite-plugin-twig-drupal":"^1.7.0"},"dependencies":{"@popperjs/core":"^2.11.8"},"gitHead":"5fac59239ace015fb1021425b4c80ae523927f05","_id":"@dta-au/designsystem-twig@1.1.0","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-ePM59qv+6lZ9jjfh5sPLgUM33cksZl9IpXUAZdxSl1pu4x2jQakL3WdhwqA6nyNsJrMYajeqfrLeEEXfm6Izcw==","shasum":"06675666947ef16d7b60622ce36d283717fa96ae","tarball":"https://registry.npmjs.org/@dta-au/designsystem-twig/-/designsystem-twig-1.1.0.tgz","fileCount":843,"unpackedSize":16075958,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dta-au%2fdesignsystem-twig@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDA1JndlYboTe5TXVQZEM1t4nep56JlvGC+lmOurvSsWQIhAK6Gzsa9bZZ2Vx0DJxR1ueqRgH/nWalFsrHakWi+faQo"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ee44fd6e-a461-4494-94a4-eeeb3682b8c2"}},"directories":{},"maintainers":[{"name":"jamesfehon-dta","email":"james.fehon@dta.gov.au"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/designsystem-twig_1.1.0_1786259553414_0.39247733336168045"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-27T05:44:36.555Z","modified":"2026-08-09T07:12:34.016Z","0.0.0":"2026-07-27T05:44:36.906Z","1.0.0":"2026-07-27T05:50:50.109Z","1.0.1":"2026-07-28T23:33:36.677Z","1.1.0":"2026-08-09T07:12:33.699Z"},"bugs":{"url":"https://github.com/dta-au/design-system/issues"},"license":"GPL-2.0-or-later","homepage":"https://github.com/dta-au/design-system","keywords":["ui kit","uikit","components","component library","design system","pattern library","storybook","styleguide"],"repository":{"type":"git","url":"git+https://github.com/dta-au/design-system.git"},"description":"CivicTheme UI Kit for Twig","maintainers":[{"name":"jamesfehon-dta","email":"james.fehon@dta.gov.au"}],"readme":"# @dta-au/designsystem-twig\n\nCivicTheme UI Kit for Twig – components plus compiled CSS/JS distributables for non-Drupal consumers.\n\n## Runtime JS\n\n`dist/civictheme.js` is the supported runtime entry (package main): a classic-safe IIFE bundle of every component behaviour, built by Vite. It runs behaviours on DOMContentLoaded – or registers one `Drupal.behaviors.civictheme_*` entry per behaviour when Drupal is present – and exposes `window.CivicTheme.attach()` for re-running behaviours over injected DOM.\n\nLoad it as a classic script:\n\n```html\n<script src=\"civictheme.js\"></script>\n```\n\nOr import the ES module build, which exports `attach` and `behaviours`:\n\n```js\nimport { attach } from '@dta-au/designsystem-twig';\n```\n\n`dist/civictheme.storybook.js` is a byte-identical alias kept for consumers of the old storybook artifact – switch to `dist/civictheme.js`.\n\n## Styles\n\n- `dist/civictheme.css` – all component styles\n- `dist/civictheme.variables.css` – CSS custom properties\n\n## Source components\n\nTwig templates, SCSS, and behaviour JS live under `components/`, mirrored from the SDC package in this repo. Behaviour files are plain classic scripts; a behaviour authored as an ES module must `export default` its init function, and the bundler resolves its imports.\n\nIssues and source live in the repository at https://github.com/dta-au/design-system.\n","readmeFilename":"README.md"}