{"_id":"@dojo-ng/popup-confirmation","name":"@dojo-ng/popup-confirmation","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dojo-ng/popup-confirmation","version":"0.1.0","license":"BSD-3-Clause","description":"Dojo NG popup-confirmation web component","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist"},"dependencies":{"@dojo-ng/dojo-element":"^0.1.0","@dojo-ng/i18n":"^0.1.0","@dojo-ng/popup":"^0.1.0","@dojo-ng/button":"^0.1.0","lit":"^3.3.0"},"_id":"@dojo-ng/popup-confirmation@0.1.0","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-dYEA9PQs3TQZ0U7ZLlg9agSFPcFCGJ6GvAl6OEVHXSV0Tc6QJgSpE0s/dk+Xl26RpgzggP+0N2SYef0NDvN6iA==","shasum":"ca359b64509bed1f6bf1ac576476b8f47edb451c","tarball":"https://registry.npmjs.org/@dojo-ng/popup-confirmation/-/popup-confirmation-0.1.0.tgz","fileCount":6,"unpackedSize":7421,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCRWHr/GVBnguMvKPycTa/NrHJJe9GpyZ8pB/3MaWnkbAIgSa76U5nmJINVQBNQLSRWm1NQN4qrpKU42u0u4HwcEMA="}]},"_npmUser":{"name":"bitranch","email":"bill@bitranch.com"},"directories":{},"maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/popup-confirmation_0.1.0_1788374432712_0.7368219421603672"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-02T18:40:32.348Z","0.1.0":"2026-09-02T18:40:32.831Z","modified":"2026-09-02T18:40:33.143Z"},"maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"description":"Dojo NG popup-confirmation web component","license":"BSD-3-Clause","readme":"# @dojo-ng/popup-confirmation\n\n`<dj-popup-confirmation>` — Clicking the trigger (default slot) opens a small confirm popup with the `content` slot and Confirm/Cancel buttons.\n\nPart of [Dojo NG](../../README.md), a framework-agnostic web component library built on Lit. BSD-3-Clause.\n\nClicking the trigger (default slot) opens a small confirm popup with the `content` slot and Confirm/Cancel buttons. Emits `dj-confirm` / `dj-cancel`.\n\n## Install\n\n```bash\nnpm install @dojo-ng/popup-confirmation\n```\n\n## Usage\n\nImport the package to register the custom element, then use the tag.\n\nA trigger opens a small confirm popup; listen for `dj-confirm`.\n\n```html\n<dj-popup-confirmation id=\"pc\">\n  <dj-button>Delete</dj-button>\n  <span slot=\"content\">Are you sure?</span>\n</dj-popup-confirmation>\n<script type=\"module\">\n  import \"@dojo-ng/popup-confirmation\"; import \"@dojo-ng/button\";\n  document.getElementById(\"pc\").addEventListener(\"dj-confirm\", () => console.log(\"confirmed\"));\n</script>\n```\n\n## Properties\n\n`↻` marks an attribute reflected to the DOM; a dash means the property is set in JavaScript only.\n\n| Property | Attribute | Type | Default |\n|---|---|---|---|\n| `open` | open | `boolean` | `false` |\n| `confirmLabel` | confirm-label | `string` | — |\n| `cancelLabel` | cancel-label | `string` | — |\n\n**Slots:** default, `content`\n\n**Events:** `dj-confirm`, `dj-cancel`\n\n## Theming\n\nStyled with Dojo NG `--dj-*` design tokens and exposes `::part()` hooks for targeted overrides.\n\n## Accessibility and i18n\n\nFollows the project's WCAG 2.2 AA and localization conventions.\n\n## More\n\nLive, interactive examples are in the playground (`playground/index.html`). For the full API reference, theming, accessibility, and localization guides, see the [Dojo NG documentation](../../README.md).\n","readmeFilename":"README.md","_rev":"1-d204ea2248dac65e211db7825074dd9d"}