@atomic-ui/ui 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/README.md +8 -8
  2. package/custom-elements.json +460 -28
  3. package/dist/base/FieldElement.d.ts +4 -0
  4. package/dist/{chunk-TRZO5CHU.js → chunk-26BO3W56.js} +8 -4
  5. package/dist/chunk-26BO3W56.js.map +1 -0
  6. package/dist/{chunk-4ZQTXTPA.js → chunk-2EP3IV3G.js} +8 -4
  7. package/dist/chunk-2EP3IV3G.js.map +1 -0
  8. package/dist/{chunk-NU34ZQFR.js → chunk-2ZF3J7OO.js} +8 -5
  9. package/dist/chunk-2ZF3J7OO.js.map +1 -0
  10. package/dist/{chunk-WP5WJ4V5.js → chunk-3NEWOO2P.js} +3 -3
  11. package/dist/chunk-3NEWOO2P.js.map +1 -0
  12. package/dist/{chunk-AMDTBUUL.js → chunk-3T7J66Z2.js} +16 -4
  13. package/dist/chunk-3T7J66Z2.js.map +1 -0
  14. package/dist/{chunk-XU2XODVH.js → chunk-5OJAJA3U.js} +3 -3
  15. package/dist/chunk-5OJAJA3U.js.map +1 -0
  16. package/dist/{chunk-3EF4T242.js → chunk-6PMA6NHE.js} +8 -4
  17. package/dist/chunk-6PMA6NHE.js.map +1 -0
  18. package/dist/{chunk-HNBG2POR.js → chunk-7C56LPNJ.js} +2 -2
  19. package/dist/{chunk-HNBG2POR.js.map → chunk-7C56LPNJ.js.map} +1 -1
  20. package/dist/{chunk-EJSX4WCD.js → chunk-7UWJXPR3.js} +12 -8
  21. package/dist/chunk-7UWJXPR3.js.map +1 -0
  22. package/dist/{chunk-WH43U4IY.js → chunk-A4M3A4SZ.js} +4 -4
  23. package/dist/{chunk-WH43U4IY.js.map → chunk-A4M3A4SZ.js.map} +1 -1
  24. package/dist/{chunk-I54DOEZB.js → chunk-AG4EP3OY.js} +3 -3
  25. package/dist/{chunk-I54DOEZB.js.map → chunk-AG4EP3OY.js.map} +1 -1
  26. package/dist/{chunk-WS4AYRSL.js → chunk-AL4IUSML.js} +7 -4
  27. package/dist/{chunk-WS4AYRSL.js.map → chunk-AL4IUSML.js.map} +1 -1
  28. package/dist/{chunk-ZQBEFP2O.js → chunk-APQEXM4I.js} +8 -4
  29. package/dist/chunk-APQEXM4I.js.map +1 -0
  30. package/dist/{chunk-YYYQPKQ7.js → chunk-AURT72IC.js} +2 -2
  31. package/dist/{chunk-KFAGXPIK.js → chunk-AVDSYLOY.js} +3 -3
  32. package/dist/{chunk-KFAGXPIK.js.map → chunk-AVDSYLOY.js.map} +1 -1
  33. package/dist/{chunk-GJPHQLLN.js → chunk-AYKYHZGQ.js} +2 -2
  34. package/dist/{chunk-GJPHQLLN.js.map → chunk-AYKYHZGQ.js.map} +1 -1
  35. package/dist/{chunk-QBORJTS4.js → chunk-D3JWVMJE.js} +55 -19
  36. package/dist/chunk-D3JWVMJE.js.map +1 -0
  37. package/dist/{chunk-RXX4CN5J.js → chunk-EGJZDKMW.js} +2 -2
  38. package/dist/{chunk-RXX4CN5J.js.map → chunk-EGJZDKMW.js.map} +1 -1
  39. package/dist/{chunk-UPOTBKKK.js → chunk-FU3CEHBS.js} +2 -2
  40. package/dist/{chunk-UPOTBKKK.js.map → chunk-FU3CEHBS.js.map} +1 -1
  41. package/dist/{chunk-FWR6SEIA.js → chunk-HA6OJRVI.js} +17 -6
  42. package/dist/chunk-HA6OJRVI.js.map +1 -0
  43. package/dist/{chunk-XZQH2M5I.js → chunk-HURHKQTJ.js} +18 -8
  44. package/dist/chunk-HURHKQTJ.js.map +1 -0
  45. package/dist/{chunk-UF6KCRNT.js → chunk-JNLKM3JT.js} +29 -13
  46. package/dist/chunk-JNLKM3JT.js.map +1 -0
  47. package/dist/{chunk-2HWO5TFV.js → chunk-KAQJVGYW.js} +14 -9
  48. package/dist/{chunk-2HWO5TFV.js.map → chunk-KAQJVGYW.js.map} +1 -1
  49. package/dist/{chunk-BMJFSUP3.js → chunk-MLKNZL5J.js} +26 -10
  50. package/dist/chunk-MLKNZL5J.js.map +1 -0
  51. package/dist/{chunk-PYVUQNFQ.js → chunk-MOO63SHZ.js} +2 -2
  52. package/dist/{chunk-PYVUQNFQ.js.map → chunk-MOO63SHZ.js.map} +1 -1
  53. package/dist/{chunk-A7YBFS4H.js → chunk-NKMJMVZP.js} +2 -2
  54. package/dist/{chunk-5ZQVL3V2.js → chunk-ONED3PUB.js} +8 -7
  55. package/dist/{chunk-5ZQVL3V2.js.map → chunk-ONED3PUB.js.map} +1 -1
  56. package/dist/{chunk-MLRTPQQO.js → chunk-OZGKK3N5.js} +11 -6
  57. package/dist/chunk-OZGKK3N5.js.map +1 -0
  58. package/dist/{chunk-RZWRAJCD.js → chunk-P6HG5RB2.js} +71 -29
  59. package/dist/chunk-P6HG5RB2.js.map +1 -0
  60. package/dist/{chunk-ON3QWAFV.js → chunk-TE3CBEJQ.js} +31 -12
  61. package/dist/chunk-TE3CBEJQ.js.map +1 -0
  62. package/dist/{chunk-YR6T73GY.js → chunk-V7EB7Q2M.js} +1 -1
  63. package/dist/chunk-V7EB7Q2M.js.map +1 -0
  64. package/dist/{chunk-OE6O3XQB.js → chunk-VYYY5DDZ.js} +3 -3
  65. package/dist/chunk-VYYY5DDZ.js.map +1 -0
  66. package/dist/{chunk-DE3INTHZ.js → chunk-YWP2Z3JN.js} +3 -3
  67. package/dist/{chunk-DE3INTHZ.js.map → chunk-YWP2Z3JN.js.map} +1 -1
  68. package/dist/{chunk-WS5AUJ35.js → chunk-Z2EWQMTR.js} +7 -4
  69. package/dist/chunk-Z2EWQMTR.js.map +1 -0
  70. package/dist/{chunk-INA53XXW.js → chunk-ZL3JFUIE.js} +3 -3
  71. package/dist/chunk-ZL3JFUIE.js.map +1 -0
  72. package/dist/components/accordion.js +2 -2
  73. package/dist/components/alert.js +2 -2
  74. package/dist/components/app-ui.d.ts +13 -0
  75. package/dist/components/app-ui.js +4 -4
  76. package/dist/components/badge.js +3 -3
  77. package/dist/components/blocks.js +4 -4
  78. package/dist/components/button.js +3 -3
  79. package/dist/components/checkbox-group.js +3 -3
  80. package/dist/components/checkbox.js +3 -3
  81. package/dist/components/chip.js +2 -2
  82. package/dist/components/date-input.js +3 -3
  83. package/dist/components/dialog.js +2 -2
  84. package/dist/components/fieldset.js +2 -2
  85. package/dist/components/grid.js +2 -2
  86. package/dist/components/help.js +2 -2
  87. package/dist/components/icon.js +2 -2
  88. package/dist/components/journey.js +3 -3
  89. package/dist/components/layout.js +2 -2
  90. package/dist/components/link.js +3 -3
  91. package/dist/components/list.js +2 -2
  92. package/dist/components/media.js +2 -2
  93. package/dist/components/navigation.js +3 -3
  94. package/dist/components/page.js +2 -2
  95. package/dist/components/price.js +2 -2
  96. package/dist/components/progress.d.ts +12 -0
  97. package/dist/components/progress.js +2 -2
  98. package/dist/components/radio-group.js +3 -3
  99. package/dist/components/rows.js +3 -3
  100. package/dist/components/select.d.ts +11 -0
  101. package/dist/components/select.js +3 -3
  102. package/dist/components/shell.js +3 -3
  103. package/dist/components/summary-list.js +2 -2
  104. package/dist/components/switch.d.ts +17 -0
  105. package/dist/components/switch.js +3 -3
  106. package/dist/components/table.js +3 -3
  107. package/dist/components/text-input.js +4 -4
  108. package/dist/components/textarea.js +3 -3
  109. package/dist/index.d.ts +2 -2
  110. package/dist/index.js +35 -35
  111. package/dist/standalone/atomic-ui.js +90 -71
  112. package/dist/standalone/atomic-ui.js.map +3 -3
  113. package/dist/standalone/index.html +189 -150
  114. package/package.json +2 -2
  115. package/scripts/copy-to-product.mjs +8 -7
  116. package/specimen/index.html +189 -150
  117. package/dist/chunk-3EF4T242.js.map +0 -1
  118. package/dist/chunk-4ZQTXTPA.js.map +0 -1
  119. package/dist/chunk-AMDTBUUL.js.map +0 -1
  120. package/dist/chunk-BMJFSUP3.js.map +0 -1
  121. package/dist/chunk-EJSX4WCD.js.map +0 -1
  122. package/dist/chunk-FWR6SEIA.js.map +0 -1
  123. package/dist/chunk-INA53XXW.js.map +0 -1
  124. package/dist/chunk-MLRTPQQO.js.map +0 -1
  125. package/dist/chunk-NU34ZQFR.js.map +0 -1
  126. package/dist/chunk-OE6O3XQB.js.map +0 -1
  127. package/dist/chunk-ON3QWAFV.js.map +0 -1
  128. package/dist/chunk-QBORJTS4.js.map +0 -1
  129. package/dist/chunk-RZWRAJCD.js.map +0 -1
  130. package/dist/chunk-TRZO5CHU.js.map +0 -1
  131. package/dist/chunk-UF6KCRNT.js.map +0 -1
  132. package/dist/chunk-WP5WJ4V5.js.map +0 -1
  133. package/dist/chunk-WS5AUJ35.js.map +0 -1
  134. package/dist/chunk-XU2XODVH.js.map +0 -1
  135. package/dist/chunk-XZQH2M5I.js.map +0 -1
  136. package/dist/chunk-YR6T73GY.js.map +0 -1
  137. package/dist/chunk-ZQBEFP2O.js.map +0 -1
  138. /package/dist/{chunk-YYYQPKQ7.js.map → chunk-AURT72IC.js.map} +0 -0
  139. /package/dist/{chunk-A7YBFS4H.js.map → chunk-NKMJMVZP.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  iconSvg
3
- } from "./chunk-WS4AYRSL.js";
3
+ } from "./chunk-AL4IUSML.js";
4
4
  import {
5
5
  ImpaktElement,
6
6
  focusRing,
@@ -11,7 +11,7 @@ import {
11
11
  touchTarget,
12
12
  type,
13
13
  visuallyHidden
14
- } from "./chunk-YR6T73GY.js";
14
+ } from "./chunk-V7EB7Q2M.js";
15
15
 
16
16
  // packages/ui/src/components/button.ts
17
17
  import { html, css, nothing } from "lit";
@@ -266,4 +266,4 @@ customElements.define("impakt-button", ImpaktButton);
266
266
  export {
267
267
  ImpaktButton
268
268
  };
269
- //# sourceMappingURL=chunk-OE6O3XQB.js.map
269
+ //# sourceMappingURL=chunk-VYYY5DDZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/button.ts"],"sourcesContent":["import { html, css, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { focusRing, targetSize, touchTarget, visuallyHidden } from '../base/styles';\nimport { fontWeight, space, t, type } from '../base/tokens';\nimport { iconSvg } from './icon';\n\n/**\n * A button.\n *\n * Two decisions carry the accessibility weight here.\n *\n * **A busy button is not a disabled button.** While an action is in flight the\n * control keeps its place in the tab order and reports `aria-disabled`, rather\n * than taking the native `disabled` attribute. A natively disabled element is\n * removed from the tab order, so a keyboard user who had just activated it\n * loses their focus position to the top of the document — at precisely the\n * moment something is happening that they need to be told about. Activation is\n * blocked in the handler instead.\n *\n * **It renders a real `<button>`.** A `<div role=\"button\">` needs Enter and\n * Space handling, a tabindex, and a disabled story, and it will still not\n * submit a form. The native element already has all of that, correctly, in\n * every browser and every assistive technology.\n\n *\n * **A button that goes somewhere is a link.** With `href` set it renders an\n * `<a>` styled as a button, so it opens in a new tab, shows its address and is\n * announced as a link, which is what it is.\n *\n * **An icon-only button still has a name.** With `icon` set and no words, the\n * button shows the icon alone and `label` becomes its accessible name, so a\n * screen reader says \"Back\" rather than \"button\". Without a `label` an\n * icon-only button is not rendered as icon-only, because it would be nameless\n * (4.1.2).\n *\n * @category action\n * @icon button\n * @slot - The button label.\n * @fires click - When the button is pressed. Not while it is busy or disabled.\n */\nexport class ImpaktButton extends ImpaktElement {\n static formAssociated = true;\n\n static properties = {\n hideOn: { type: String, reflect: true, attribute: 'hide-on' },\n variant: { type: String, reflect: true },\n type: { type: String },\n disabled: { type: Boolean, reflect: true },\n busy: { type: Boolean, reflect: true },\n busyLabel: { type: String, attribute: 'busy-label' },\n full: { type: Boolean, reflect: true },\n fullOnPhone: { type: Boolean, attribute: 'full-on-phone', reflect: true },\n size: { type: String, reflect: true },\n iconBefore: { type: String, attribute: 'icon-before' },\n iconAfter: { type: String, attribute: 'icon-after' },\n href: { type: String },\n icon: { type: String },\n label: { type: String },\n };\n\n /** Leave it out on a phone, where a header has no room for it. */\n declare hideOn: 'never' | 'phone';\n /**\n * How much the button asks for attention. `dark` is the strong second\n * choice on a light page, `subtle` a quiet filled one, and `danger` an\n * action that removes or cancels something.\n */\n declare variant: 'primary' | 'secondary' | 'ghost' | 'dark' | 'subtle' | 'danger';\n declare type: 'button' | 'submit' | 'reset';\n declare disabled: boolean;\n declare busy: boolean;\n /** Announced when the button becomes busy. Says what is happening, not that something is. */\n declare busyLabel: string;\n declare full: boolean;\n /** As wide as its space on a phone only, such as a form's send button. */\n declare fullOnPhone: boolean;\n declare size: 'sm' | 'md' | 'lg';\n /** An icon before the words, such as phone or calendar. */\n declare iconBefore:\n | 'none'\n | 'arrow-right'\n | 'arrow-left'\n | 'chevron-right'\n | 'chevron-down'\n | 'check'\n | 'close'\n | 'menu'\n | 'plus'\n | 'minus'\n | 'search'\n | 'external'\n | 'download'\n | 'home'\n | 'phone'\n | 'mail'\n | 'map-pin'\n | 'calendar'\n | 'clock'\n | 'user'\n | 'star'\n | 'heart'\n | 'shield'\n | 'leaf'\n | 'sun'\n | 'bolt'\n | 'key'\n | 'info'\n | 'warning'\n | 'document'\n | 'pound'\n | 'chat'\n | 'grid'\n | 'clipboard'\n | 'map-pinned'\n | 'users'\n | 'radio'\n | 'settings'\n | 'log-out'\n | 'arrow-up-right'\n | 'more'\n | 'upload'\n | 'image'\n | 'lock'\n | 'eye'\n | 'trash'\n | 'pencil'\n | 'qr-code'\n | 'battery';\n /** An icon after the words, such as arrow-right. */\n declare iconAfter:\n | 'none'\n | 'arrow-right'\n | 'arrow-left'\n | 'chevron-right'\n | 'chevron-down'\n | 'check'\n | 'close'\n | 'menu'\n | 'plus'\n | 'minus'\n | 'search'\n | 'external'\n | 'download'\n | 'home'\n | 'phone'\n | 'mail'\n | 'map-pin'\n | 'calendar'\n | 'clock'\n | 'user'\n | 'star'\n | 'heart'\n | 'shield'\n | 'leaf'\n | 'sun'\n | 'bolt'\n | 'key'\n | 'info'\n | 'warning'\n | 'document'\n | 'pound'\n | 'chat'\n | 'grid'\n | 'clipboard'\n | 'map-pinned'\n | 'users'\n | 'radio'\n | 'settings'\n | 'log-out'\n | 'arrow-up-right'\n | 'more'\n | 'upload'\n | 'image'\n | 'lock'\n | 'eye'\n | 'trash'\n | 'pencil'\n | 'qr-code'\n | 'battery';\n /** Where the button goes, when it opens a page rather than doing something here. */\n declare href: string;\n /** Draws the button as this icon alone, a round button. Needs `label`. */\n declare icon:\n | 'none'\n | 'arrow-right'\n | 'arrow-left'\n | 'chevron-right'\n | 'chevron-down'\n | 'check'\n | 'close'\n | 'menu'\n | 'plus'\n | 'minus'\n | 'search'\n | 'external'\n | 'download'\n | 'home'\n | 'phone'\n | 'mail'\n | 'map-pin'\n | 'calendar'\n | 'clock'\n | 'user'\n | 'star'\n | 'heart'\n | 'shield'\n | 'leaf'\n | 'sun'\n | 'bolt'\n | 'key'\n | 'info'\n | 'warning'\n | 'document'\n | 'pound'\n | 'chat'\n | 'grid'\n | 'clipboard'\n | 'map-pinned'\n | 'users'\n | 'radio'\n | 'settings'\n | 'log-out'\n | 'arrow-up-right'\n | 'more'\n | 'upload'\n | 'image'\n | 'lock'\n | 'eye'\n | 'trash'\n | 'pencil'\n | 'qr-code'\n | 'battery';\n /** The accessible name of an icon-only button, such as \"Back\" or \"More actions\". */\n declare label: string;\n\n private internals: ElementInternals | null = null;\n\n constructor() {\n super();\n this.hideOn = 'never';\n this.variant = 'primary';\n this.type = 'button';\n this.disabled = false;\n this.busy = false;\n this.busyLabel = 'Working';\n this.full = false;\n this.fullOnPhone = false;\n this.size = 'md';\n this.iconBefore = 'none';\n this.iconAfter = 'none';\n this.href = '';\n this.icon = 'none';\n this.label = '';\n try {\n this.internals = this.attachInternals();\n } catch {\n this.internals = null;\n }\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n touchTarget('button, a'),\n css`\n @media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }\n :host {\n display: inline-block;\n }\n :host([full]) {\n display: block;\n }\n @media (max-width: 40rem) { :host([full-on-phone]) { display: block; } }\n button, a {\n ${targetSize}\n box-sizing: border-box;\n text-decoration: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ${space(2)};\n inline-size: 100%;\n min-block-size: 40px;\n padding: ${space(2)} ${space(4)};\n font-family: inherit;\n ${type('sm')}\n font-weight: ${fontWeight('semibold')};\n border-radius: ${t.radiusLg};\n border: ${t.borderThin} solid transparent;\n cursor: pointer;\n transition: background-color 120ms ease-in-out, border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;\n }\n :host([size='sm']) :is(button, a) { min-block-size: 32px; padding: ${space(1)} ${space(3)}; ${type('sm')} gap: ${space(1.5)}; }\n :host([size='lg']) :is(button, a) { min-block-size: 48px; padding: ${space(3)} ${space(6)}; ${type('md')} }\n .icon { flex: none; inline-size: 1.15em; block-size: 1.15em; }\n /* The cursor is the only thing that changes while busy. Moving or\n recolouring a control the moment it is pressed is how a user loses it. */\n button[aria-disabled='true'] {\n cursor: progress;\n }\n :host([disabled]) button {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n /* Solid: the brand, with a hairline highlight along the top edge. */\n .primary {\n background: ${t.brand};\n color: ${t.onBrand};\n box-shadow: ${t.shadowXs}, inset 0 1px 0 0 rgb(255 255 255 / 0.12);\n }\n .primary:hover:not([aria-disabled='true']) {\n background: var(--impakt-color-action-hover, ${t.brandHover});\n color: var(--impakt-color-action-on-hover, ${t.onBrand});\n }\n /* A brand whose buttons turn on hover lifts the trailing arrow a quarter-turn. */\n .after { transition: transform 160ms ease-out; }\n :is(button, a):hover:not([aria-disabled='true']) .after { transform: rotate(var(--impakt-motion-button-turn, 0deg)); }\n @media (prefers-reduced-motion: reduce) { .after { transition: none; } }\n .primary:active:not([aria-disabled='true']) {\n background: ${t.brandActive};\n }\n\n /* Outline: the card, a hairline border and the text colour, for the second choice. */\n .secondary {\n background: ${t.surfaceCard};\n color: ${t.text};\n border-color: ${t.rule};\n box-shadow: ${t.shadowXs};\n }\n .secondary:hover:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.surfaceCard}, ${t.text} 4%);\n border-color: color-mix(in srgb, ${t.text} 25%, transparent);\n }\n\n /* Plain: words only until it is pointed at. */\n .ghost {\n background: transparent;\n color: ${t.link};\n }\n .ghost:hover:not([aria-disabled='true']) {\n background: ${t.wash};\n }\n\n /* Dark: the text colour as a fill, the strong second choice on a light page. */\n .dark {\n background: ${t.text};\n color: ${t.surfaceCard};\n }\n .dark:hover:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.text}, ${t.surfaceCard} 14%);\n }\n .dark:active:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.text}, ${t.surfaceCard} 24%);\n }\n\n /* Subtle: a quiet fill, for an action that sits beside the main one. */\n .subtle {\n background: ${t.surfaceInset};\n color: ${t.text};\n }\n .subtle:hover:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.surfaceInset}, ${t.text} 6%);\n }\n .subtle:active:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.surfaceInset}, ${t.text} 12%);\n }\n\n /* Danger: the danger text colour as a fill, so white words on it keep 4.5:1. */\n .danger {\n background: ${t.dangerText};\n color: ${t.surfaceCard};\n }\n .danger:hover:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.dangerText}, ${t.text} 15%);\n }\n .danger:active:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.dangerText}, ${t.text} 28%);\n }\n\n /* Icon only: a round button as tall as it is wide. */\n .icon-only {\n inline-size: 40px;\n min-inline-size: 40px;\n block-size: 40px;\n min-block-size: 40px;\n padding: 0;\n border-radius: 999px;\n }\n :host([size='sm']) .icon-only { inline-size: 32px; min-inline-size: 32px; block-size: 32px; min-block-size: 32px; padding: 0; }\n :host([size='lg']) .icon-only { inline-size: 48px; min-inline-size: 48px; block-size: 48px; min-block-size: 48px; padding: 0; }\n\n .sr-only {\n ${visuallyHidden}\n }\n\n /* Windows High Contrast Mode drops background and border colours, so a\n button styled only by background becomes invisible. A forced-colors\n border puts the boundary back. */\n @media (forced-colors: active) {\n button, a {\n border-color: ButtonBorder;\n }\n }\n `,\n ];\n\n private onClick(event: MouseEvent): void {\n if (this.disabled || this.busy) {\n event.preventDefault();\n event.stopImmediatePropagation();\n return;\n }\n // A shadow-rooted button does not submit the outer form by itself, because\n // the click never reaches it. `requestSubmit` rather than `submit` so that\n // native validation and the submit event both still run.\n if (this.type === 'submit') this.internals?.form?.requestSubmit();\n if (this.type === 'reset') this.internals?.form?.reset();\n }\n\n render(): TemplateResult {\n const iconOnly = Boolean(this.icon && this.icon !== 'none' && this.label);\n const cls = iconOnly ? `${this.variant} icon-only` : this.variant;\n if (iconOnly) {\n const drawn = iconSvg(this.icon);\n if (this.href && !this.disabled) {\n return html`<a class=${cls} href=${this.href} part=\"button\" aria-label=${this.label}>${drawn}</a>`;\n }\n return html`\n <button\n class=${cls}\n type=\"button\"\n part=\"button\"\n aria-label=${this.label}\n ?disabled=${this.disabled}\n aria-disabled=${this.busy ? 'true' : nothing}\n aria-busy=${this.busy ? 'true' : nothing}\n @click=${this.onClick}\n >\n ${drawn}\n ${this.busy ? html`<span class=\"sr-only\">${this.busyLabel}</span>` : nothing}\n </button>\n `;\n }\n const words = html`${iconSvg(this.iconBefore)}<slot></slot>${this.iconAfter && this.iconAfter !== 'none' ? html`<span class=\"after\" aria-hidden=\"true\">${iconSvg(this.iconAfter)}</span>` : nothing}`;\n if (this.href && !this.disabled) {\n return html`<a class=${this.variant} href=${this.href} part=\"button\">${words}</a>`;\n }\n return html`\n <button\n class=${this.variant}\n type=\"button\"\n part=\"button\"\n ?disabled=${this.disabled}\n aria-disabled=${this.busy ? 'true' : nothing}\n aria-busy=${this.busy ? 'true' : nothing}\n @click=${this.onClick}\n >\n ${words}\n ${this.busy ? html`<span class=\"sr-only\">${this.busyLabel}</span>` : nothing}\n </button>\n `;\n }\n}\n\ncustomElements.define('impakt-button', ImpaktButton);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-button': ImpaktButton;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS,MAAM,KAAK,eAAoC;AAwCjD,I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I,KAAK;AAAA,MAC9F;AACA,aAAO;AAAA;AAAA,kBAEK,GAAG;AAAA;AAAA;AAAA,uBAGE,KAAK,KAAK;AAAA,sBACX,KAAK,QAAQ;AAAA,0BACT,KAAK,OAAO,SAAS,OAAO;AAAA,sBAChC,KAAK,OAAO,SAAS,OAAO;AAAA,mBAC/B,KAAK,OAAO;AAAA;AAAA,YAEnB,KAAK;AAAA,YACL,KAAK,OAAO,6BAA6B,KAAK,SAAS,YAAY,OAAO;AAAA;AAAA;AAAA,IAGlF;AACA,UAAM,QAAQ,OAAO,QAAQ,KAAK,UAAU,CAAC,gBAAgB,KAAK,aAAa,KAAK,cAAc,SAAS,8CAA8C,QAAQ,KAAK,SAAS,CAAC,YAAY,OAAO;AACnM,QAAI,KAAK,QAAQ,CAAC,KAAK,UAAU;AAC/B,aAAO,gBAAgB,KAAK,OAAO,SAAS,KAAK,IAAI,kBAAkB,KAAK;AAAA,IAC9E;AACA,WAAO;AAAA;AAAA,gBAEK,KAAK,OAAO;AAAA;AAAA;AAAA,oBAGR,KAAK,QAAQ;AAAA,wBACT,KAAK,OAAO,SAAS,OAAO;AAAA,oBAChC,KAAK,OAAO,SAAS,OAAO;AAAA,iBAC/B,KAAK,OAAO;AAAA;AAAA,UAEnB,KAAK;AAAA,UACL,KAAK,OAAO,6BAA6B,KAAK,SAAS,YAAY,OAAO;AAAA;AAAA;AAAA,EAGlF;AACF;AAEA,eAAe,OAAO,iBAAiB,YAAY;","names":[]}
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  FieldElement
3
- } from "./chunk-5ZQVL3V2.js";
3
+ } from "./chunk-ONED3PUB.js";
4
4
  import {
5
5
  fontSize,
6
6
  space,
7
7
  t,
8
8
  targetSize
9
- } from "./chunk-YR6T73GY.js";
9
+ } from "./chunk-V7EB7Q2M.js";
10
10
 
11
11
  // packages/ui/src/components/radio-group.ts
12
12
  import { html, css, nothing } from "lit";
@@ -136,4 +136,4 @@ customElements.define("impakt-radio-group", ImpaktRadioGroup);
136
136
  export {
137
137
  ImpaktRadioGroup
138
138
  };
139
- //# sourceMappingURL=chunk-DE3INTHZ.js.map
139
+ //# sourceMappingURL=chunk-YWP2Z3JN.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/radio-group.ts"],"sourcesContent":["import { html, css, nothing, type TemplateResult } from 'lit';\nimport { FieldElement } from '../base/FieldElement';\nimport { targetSize } from '../base/styles';\nimport { fontSize, space, t } from '../base/tokens';\n\nexport interface RadioOption {\n value: string;\n label: string;\n description?: string;\n}\n\n/**\n * A choose-one group.\n *\n * **It renders native radios, and that is the whole design.** A group of\n * `<input type=\"radio\">` sharing a name already has roving tabindex, arrow-key\n * navigation that wraps, Home and End, selection-follows-focus, and the right\n * announcement in every screen reader — all of it, correctly, with no\n * JavaScript. Hand-rolling that is the single most commonly attempted and most\n * commonly botched widget in any design system, and every version of it is a\n * worse version of what the platform ships.\n *\n * Because the radios share one shadow root, their `name` scopes to this\n * component and cannot collide with another group on the page.\n *\n * The label is a `<legend>` inside a `<fieldset>`, not a `<label for>`:\n * `for` names one control, and the question here is asked of the set.\n\n *\n * @category form\n * @icon radio\n */\nexport class ImpaktRadioGroup extends FieldElement {\n static properties = {\n ...FieldElement.properties,\n options: { type: Array },\n };\n\n declare options: RadioOption[];\n\n constructor() {\n super();\n this.options = [];\n }\n\n static styles = [\n ...FieldElement.styles,\n css`\n fieldset {\n border: 0;\n margin: 0;\n padding: 0;\n min-inline-size: 0;\n }\n legend {\n padding: 0;\n }\n .option {\n display: flex;\n align-items: flex-start;\n gap: ${space(3)};\n padding: ${space(3)};\n border: ${t.borderThin} solid ${t.border};\n border-radius: ${t.radius};\n margin-block-end: ${space(2)};\n cursor: pointer;\n }\n .option:hover {\n background: ${t.surfaceSubtle};\n }\n /* The whole row is the target, not the 20px dot — 2.5.8 is a floor and\n a comfortable target is the actual goal. */\n .option input {\n ${targetSize}\n inline-size: 20px;\n block-size: 20px;\n margin: 0;\n flex: none;\n accent-color: ${t.brand};\n }\n .option-text {\n display: block;\n font-size: ${fontSize('md')};\n }\n .option-description {\n display: block;\n font-size: ${fontSize('sm')};\n color: ${t.textMuted};\n margin-block-start: ${space(1)};\n }\n :host([invalid]) .option {\n border-color: ${t.danger};\n }\n `,\n ];\n\n protected renderLabel(): TemplateResult {\n return html`<legend class=\"label\" part=\"label\">\n ${this.label}${this.required ? html`<span class=\"required\"> (${this.requiredText})</span>` : nothing}\n </legend>`;\n }\n\n protected renderControl(): TemplateResult {\n return html`\n ${this.options.map((option, i) => {\n const id = this.id_(`opt-${i}`);\n const descId = option.description ? this.id_(`opt-${i}-desc`) : undefined;\n return html`\n <label class=\"option\" part=\"option\" for=${id}>\n <input\n type=\"radio\"\n id=${id}\n name=${this.uid}\n value=${option.value}\n .checked=${this.value === option.value}\n ?disabled=${this.disabled}\n ?required=${this.required && i === 0}\n aria-describedby=${descId ?? nothing}\n @change=${() => this.setFormValue(option.value)}\n />\n <span>\n <span class=\"option-text\">${option.label}</span>\n ${option.description\n ? html`<span class=\"option-description\" id=${descId!}>${option.description}</span>`\n : nothing}\n </span>\n </label>\n `;\n })}\n `;\n }\n\n /**\n * The fieldset wraps everything, so the whole field is rebuilt here rather\n * than relying on the base class's flat order.\n */\n render(): TemplateResult {\n return html`\n <fieldset\n part=\"fieldset\"\n aria-describedby=${this.describedBy}\n aria-invalid=${this.error ? 'true' : nothing}\n >\n ${this.renderLabel()}\n ${this.description\n ? html`<div class=\"description\" id=${this.id_('description')} part=\"description\">\n ${this.description}\n </div>`\n : nothing}\n ${this.renderControl()}\n <div class=\"error\" id=${this.id_('error')} part=\"error\" aria-live=\"polite\">\n ${this.error || nothing}\n </div>\n </fieldset>\n `;\n }\n\n updated(changed: Map<string, unknown>): void {\n if (changed.has('error')) this.toggleAttribute('invalid', Boolean(this.error));\n }\n}\n\ncustomElements.define('impakt-radio-group', ImpaktRadioGroup);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-radio-group': ImpaktRadioGroup;\n }\n}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AI;AAChE,aAAO;AAAA,oDACqC,EAAE;AAAA;AAAA;AAAA,mBAGnC,EAAE;AAAA,qBACA,KAAK,GAAG;AAAA,sBACP,OAAO,KAAK;AAAA,yBACT,KAAK,UAAU,OAAO,KAAK;AAAA,0BAC1B,KAAK,QAAQ;AAAA,0BACb,KAAK,YAAY,MAAM,CAAC;AAAA,iCACjB,UAAU,OAAO;AAAA,wBAC1B,MAAM,KAAK,aAAa,OAAO,KAAK,CAAC;AAAA;AAAA;AAAA,0CAGnB,OAAO,KAAK;AAAA,gBACtC,OAAO,cACL,2CAA2C,MAAO,IAAI,OAAO,WAAW,YACxE,OAAO;AAAA;AAAA;AAAA;AAAA,IAInB,CAAC,CAAC;AAAA;AAAA,EAEN;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAyB;AACvB,WAAO;AAAA;AAAA;AAAA,2BAGgB,KAAK,WAAW;AAAA,uBACpB,KAAK,QAAQ,SAAS,OAAO;AAAA;AAAA,UAE1C,KAAK,YAAY,CAAC;AAAA,UAClB,KAAK,cACH,mCAAmC,KAAK,IAAI,aAAa,CAAC;AAAA,gBACtD,KAAK,WAAW;AAAA,sBAEpB,OAAO;AAAA,UACT,KAAK,cAAc,CAAC;AAAA,gCACE,KAAK,IAAI,OAAO,CAAC;AAAA,YACrC,KAAK,SAAS,OAAO;AAAA;AAAA;AAAA;AAAA,EAI/B;AAAA,EAEA,QAAQ,SAAqC;AAC3C,QAAI,QAAQ,IAAI,OAAO,EAAG,MAAK,gBAAgB,WAAW,QAAQ,KAAK,KAAK,CAAC;AAAA,EAC/E;AACF;AAEA,eAAe,OAAO,sBAAsB,gBAAgB;","names":[]}
1
+ {"version":3,"sources":["../src/components/radio-group.ts"],"sourcesContent":["import { html, css, nothing, type TemplateResult } from 'lit';\nimport { FieldElement } from '../base/FieldElement';\nimport { targetSize } from '../base/styles';\nimport { fontSize, space, t } from '../base/tokens';\n\nexport interface RadioOption {\n value: string;\n label: string;\n description?: string;\n}\n\n/**\n * A choose-one group.\n *\n * **It renders native radios, and that is the whole design.** A group of\n * `<input type=\"radio\">` sharing a name already has roving tabindex, arrow-key\n * navigation that wraps, Home and End, selection-follows-focus, and the right\n * announcement in every screen reader — all of it, correctly, with no\n * JavaScript. Hand-rolling that is the single most commonly attempted and most\n * commonly botched widget in any design system, and every version of it is a\n * worse version of what the platform ships.\n *\n * Because the radios share one shadow root, their `name` scopes to this\n * component and cannot collide with another group on the page.\n *\n * The label is a `<legend>` inside a `<fieldset>`, not a `<label for>`:\n * `for` names one control, and the question here is asked of the set.\n\n *\n * @category form\n * @icon radio\n */\nexport class ImpaktRadioGroup extends FieldElement {\n static properties = {\n ...FieldElement.properties,\n options: { type: Array },\n };\n\n declare options: RadioOption[];\n\n constructor() {\n super();\n this.options = [];\n }\n\n static styles = [\n ...FieldElement.styles,\n css`\n fieldset {\n border: 0;\n margin: 0;\n padding: 0;\n min-inline-size: 0;\n }\n legend {\n padding: 0;\n }\n .option {\n display: flex;\n align-items: flex-start;\n gap: ${space(3)};\n padding: ${space(3)};\n border: ${t.borderThin} solid ${t.border};\n border-radius: ${t.radius};\n margin-block-end: ${space(2)};\n cursor: pointer;\n }\n .option:hover {\n background: ${t.surfaceSubtle};\n }\n /* The whole row is the target, not the 20px dot — 2.5.8 is a floor and\n a comfortable target is the actual goal. */\n .option input {\n ${targetSize}\n inline-size: 20px;\n block-size: 20px;\n margin: 0;\n flex: none;\n accent-color: ${t.brand};\n }\n .option-text {\n display: block;\n font-size: ${fontSize('md')};\n }\n .option-description {\n display: block;\n font-size: ${fontSize('sm')};\n color: ${t.textMuted};\n margin-block-start: ${space(1)};\n }\n :host([invalid]) .option {\n border-color: ${t.danger};\n }\n `,\n ];\n\n protected renderLabel(): TemplateResult {\n return html`<legend class=\"label\" part=\"label\">\n ${this.label}${this.required ? html`<span class=\"required\"> (${this.requiredText})</span>` : nothing}\n </legend>`;\n }\n\n protected renderControl(): TemplateResult {\n return html`\n ${this.options.map((option, i) => {\n const id = this.id_(`opt-${i}`);\n const descId = option.description ? this.id_(`opt-${i}-desc`) : undefined;\n return html`\n <label class=\"option\" part=\"option\" for=${id}>\n <input\n type=\"radio\"\n id=${id}\n name=${this.uid}\n value=${option.value}\n .checked=${this.value === option.value}\n ?disabled=${this.disabled}\n ?required=${this.required && i === 0}\n aria-describedby=${descId ?? nothing}\n @change=${() => this.setFormValue(option.value)}\n />\n <span>\n <span class=\"option-text\">${option.label}</span>\n ${option.description ? html`<span class=\"option-description\" id=${descId!}>${option.description}</span>` : nothing}\n </span>\n </label>\n `;\n })}\n `;\n }\n\n /**\n * The fieldset wraps everything, so the whole field is rebuilt here rather\n * than relying on the base class's flat order.\n */\n render(): TemplateResult {\n return html`\n <fieldset\n part=\"fieldset\"\n aria-describedby=${this.describedBy}\n aria-invalid=${this.error ? 'true' : nothing}\n >\n ${this.renderLabel()}\n ${\n this.description\n ? html`<div class=\"description\" id=${this.id_('description')} part=\"description\">\n ${this.description}\n </div>`\n : nothing\n }\n ${this.renderControl()}\n <div class=\"error\" id=${this.id_('error')} part=\"error\" aria-live=\"polite\">\n ${this.error || nothing}\n </div>\n </fieldset>\n `;\n }\n\n updated(changed: Map<string, unknown>): void {\n if (changed.has('error')) this.toggleAttribute('invalid', Boolean(this.error));\n }\n}\n\ncustomElements.define('impakt-radio-group', ImpaktRadioGroup);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-radio-group': ImpaktRadioGroup;\n }\n}\n"],"mappings":";;;;;;;;;;;AAAA,SAAS,MAAM,KAAK,eAAoC;AAgCjD,IAAM,mBAAN,cAA+B,aAAa;AAAA,EACjD;AAAA,SAAO,aAAa;AAAA,MAClB,GAAG,aAAa;AAAA,MAChB,SAAS,EAAE,MAAM,MAAM;AAAA,IACzB;AAAA;AAAA,EAIA,cAAc;AACZ,UAAM;AACN,SAAK,UAAU,CAAC;AAAA,EAClB;AAAA,EAEA;AAAA,SAAO,SAAS;AAAA,MACd,GAAG,aAAa;AAAA,MAChB;AAAA;AAAA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tC,OAAO,cAAc,2CAA2C,MAAO,IAAI,OAAO,WAAW,YAAY,OAAO;AAAA;AAAA;AAAA;AAAA,IAI1H,CAAC,CAAC;AAAA;AAAA,EAEN;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAyB;AACvB,WAAO;AAAA;AAAA;AAAA,2BAGgB,KAAK,WAAW;AAAA,uBACpB,KAAK,QAAQ,SAAS,OAAO;AAAA;AAAA,UAE1C,KAAK,YAAY,CAAC;AAAA,UAElB,KAAK,cACD,mCAAmC,KAAK,IAAI,aAAa,CAAC;AAAA,gBACxD,KAAK,WAAW;AAAA,sBAElB,OACN;AAAA,UACE,KAAK,cAAc,CAAC;AAAA,gCACE,KAAK,IAAI,OAAO,CAAC;AAAA,YACrC,KAAK,SAAS,OAAO;AAAA;AAAA;AAAA;AAAA,EAI/B;AAAA,EAEA,QAAQ,SAAqC;AAC3C,QAAI,QAAQ,IAAI,OAAO,EAAG,MAAK,gBAAgB,WAAW,QAAQ,KAAK,KAAK,CAAC;AAAA,EAC/E;AACF;AAEA,eAAe,OAAO,sBAAsB,gBAAgB;","names":[]}
@@ -5,7 +5,7 @@ import {
5
5
  lineHeight,
6
6
  space,
7
7
  t
8
- } from "./chunk-YR6T73GY.js";
8
+ } from "./chunk-V7EB7Q2M.js";
9
9
 
10
10
  // packages/ui/src/components/fieldset.ts
11
11
  import { css, html, nothing } from "lit";
@@ -26,7 +26,9 @@ var ImpaktFieldset = class extends ImpaktElement {
26
26
  this.size = "md";
27
27
  }
28
28
  static {
29
- this.styles = [...ImpaktElement.styles, css`
29
+ this.styles = [
30
+ ...ImpaktElement.styles,
31
+ css`
30
32
  :host { display: block; margin-block-end: ${space(6)}; }
31
33
  fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
32
34
  legend { padding: 0; margin-block-end: ${space(2)}; font-size: ${fontSize("md")}; font-weight: ${fontWeight("bold")}; line-height: ${lineHeight("tight")}; color: ${t.text}; }
@@ -36,7 +38,8 @@ var ImpaktFieldset = class extends ImpaktElement {
36
38
  .error { margin-block-end: ${space(3)}; font-size: ${fontSize("sm")}; color: ${t.dangerText}; font-weight: ${fontWeight("semibold")}; }
37
39
  .error:empty { display: none; }
38
40
  :host([error]:not([error=''])) .fields { padding-inline-start: ${space(4)}; border-inline-start: 4px solid ${t.danger}; }
39
- `];
41
+ `
42
+ ];
40
43
  }
41
44
  render() {
42
45
  const described = [this.description ? this.id_("description") : "", this.error ? this.id_("error") : ""].filter(Boolean).join(" ");
@@ -53,4 +56,4 @@ customElements.define("impakt-fieldset", ImpaktFieldset);
53
56
  export {
54
57
  ImpaktFieldset
55
58
  };
56
- //# sourceMappingURL=chunk-WS5AUJ35.js.map
59
+ //# sourceMappingURL=chunk-Z2EWQMTR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/fieldset.ts"],"sourcesContent":["import { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { fontSize, fontWeight, lineHeight, space, t } from '../base/tokens';\n\n/**\n * Fields that belong together under one question: the lines of an address,\n * or a name in two parts.\n *\n * **The question is the group's name.** It is a `fieldset` with a `legend`, so\n * a screen reader says \"Your address, group\" on the way in, and each field\n * inside is heard as part of it (1.3.1, 3.3.2). An error for the group as a\n * whole, such as \"Enter a full address\", is tied to it the same way.\n *\n * @category form\n * @icon fieldset\n * @slot - The fields in the group.\n */\nexport class ImpaktFieldset extends ImpaktElement {\n static properties = {\n legend: { type: String },\n description: { type: String },\n error: { type: String, reflect: true },\n size: { type: String, reflect: true },\n };\n /** The question the fields answer together. */\n declare legend: string;\n /** A hint for the whole group, under the question. */\n declare description: string;\n /** What is wrong with the group as a whole. */\n declare error: string;\n /** How large the question is. A page that asks only this question makes it the page's heading size. */\n declare size: 'md' | 'lg' | 'xl';\n\n constructor() {\n super();\n this.legend = '';\n this.description = '';\n this.error = '';\n this.size = 'md';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; margin-block-end: ${space(6)}; }\n fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }\n legend { padding: 0; margin-block-end: ${space(2)}; font-size: ${fontSize('md')}; font-weight: ${fontWeight('bold')}; line-height: ${lineHeight('tight')}; color: ${t.text}; }\n :host([size='lg']) legend { font-size: ${fontSize('xl')}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }\n :host([size='xl']) legend { font-size: ${fontSize('2xl')}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }\n .description { margin-block-end: ${space(3)}; font-size: ${fontSize('sm')}; color: ${t.textMuted}; line-height: ${lineHeight('normal')}; }\n .error { margin-block-end: ${space(3)}; font-size: ${fontSize('sm')}; color: ${t.dangerText}; font-weight: ${fontWeight('semibold')}; }\n .error:empty { display: none; }\n :host([error]:not([error=''])) .fields { padding-inline-start: ${space(4)}; border-inline-start: 4px solid ${t.danger}; }\n `,\n ];\n\n render(): TemplateResult {\n const described = [this.description ? this.id_('description') : '', this.error ? this.id_('error') : ''].filter(Boolean).join(' ');\n return html`<fieldset part=\"fieldset\" aria-describedby=${described || nothing}>\n <legend part=\"legend\">${this.legend}</legend>\n ${this.description ? html`<div class=\"description\" id=${this.id_('description')}>${this.description}</div>` : nothing}\n <div class=\"error\" id=${this.id_('error')} aria-live=\"polite\">${this.error || nothing}</div>\n <div class=\"fields\" part=\"fields\"><slot></slot></div>\n </fieldset>`;\n }\n}\n\ncustomElements.define('impakt-fieldset', ImpaktFieldset);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-fieldset': ImpaktFieldset;\n }\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAS,KAAK,MAAM,eAAoC;AAiBjD,IAAM,iBAAN,cAA6B,cAAc;AAAA,EAChD;AAAA,SAAO,aAAa;AAAA,MAClB,QAAQ,EAAE,MAAM,OAAO;AAAA,MACvB,aAAa,EAAE,MAAM,OAAO;AAAA,MAC5B,OAAO,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACrC,MAAM,EAAE,M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AAO,mBAAmB,cAAc;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  iconSvg
3
- } from "./chunk-WS4AYRSL.js";
3
+ } from "./chunk-AL4IUSML.js";
4
4
  import {
5
5
  ImpaktElement,
6
6
  focusRing,
@@ -8,7 +8,7 @@ import {
8
8
  space,
9
9
  t,
10
10
  visuallyHidden
11
- } from "./chunk-YR6T73GY.js";
11
+ } from "./chunk-V7EB7Q2M.js";
12
12
 
13
13
  // packages/ui/src/components/link.ts
14
14
  import { html, css, nothing } from "lit";
@@ -75,4 +75,4 @@ customElements.define("impakt-link", ImpaktLink);
75
75
  export {
76
76
  ImpaktLink
77
77
  };
78
- //# sourceMappingURL=chunk-INA53XXW.js.map
78
+ //# sourceMappingURL=chunk-ZL3JFUIE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/link.ts"],"sourcesContent":["import { html, css, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { focusRing, visuallyHidden } from '../base/styles';\nimport { fontWeight, space, t } from '../base/tokens';\nimport { iconSvg } from './icon';\n\n/**\n * A link.\n *\n * **A new tab is always announced.** When `external` is set, the accessible\n * name gains \"opens in a new tab\" — not as a tooltip, which no screen reader\n * reads, and not as an icon alone, which carries no text. An unannounced new\n * tab breaks the back button for someone who cannot see that the window\n * changed, and that is what 3.2.5 is about.\n *\n * **It is underlined.** 1.4.1 Use of Colour: a link distinguished from body\n * text only by being a different colour is not distinguished at all for a\n * reader who cannot tell the two colours apart.\n\n *\n * @category action\n * @icon link\n * @slot - The link text.\n */\nexport class ImpaktLink extends ImpaktElement {\n static properties = {\n href: { type: String },\n external: { type: Boolean, reflect: true },\n externalText: { type: String, attribute: 'external-text' },\n variant: { type: String, reflect: true },\n icon: { type: String },\n };\n\n declare href: string;\n declare external: boolean;\n declare externalText: string;\n /** In a sentence, or on its own line as a call to action, bolder and with an arrow. */\n declare variant: 'inline' | 'standalone';\n /** An icon after the words. A standalone link has an arrow unless it says otherwise. */\n declare icon:\n | 'none'\n | 'arrow-right'\n | 'arrow-left'\n | 'chevron-right'\n | 'chevron-down'\n | 'check'\n | 'close'\n | 'menu'\n | 'plus'\n | 'minus'\n | 'search'\n | 'external'\n | 'download'\n | 'home'\n | 'phone'\n | 'mail'\n | 'map-pin'\n | 'calendar'\n | 'clock'\n | 'user'\n | 'star'\n | 'heart'\n | 'shield'\n | 'leaf'\n | 'sun'\n | 'bolt'\n | 'key'\n | 'info'\n | 'warning'\n | 'document'\n | 'pound'\n | 'chat'\n | 'grid'\n | 'clipboard'\n | 'map-pinned'\n | 'users'\n | 'radio'\n | 'settings'\n | 'log-out'\n | 'arrow-up-right'\n | 'more'\n | 'upload'\n | 'image'\n | 'lock'\n | 'eye'\n | 'trash'\n | 'pencil'\n | 'qr-code'\n | 'battery';\n\n constructor() {\n super();\n this.href = '';\n this.external = false;\n this.externalText = 'opens in a new tab';\n this.variant = 'inline';\n this.icon = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host {\n display: inline;\n }\n a {\n color: ${t.link};\n text-decoration: underline;\n text-underline-offset: 0.2em;\n border-radius: ${t.radiusSm};\n }\n a:hover {\n color: ${t.linkHover};\n }\n :host([variant='standalone']) { display: inline-block; }\n :host([variant='standalone']) a { display: inline-flex; align-items: center; gap: ${space(1)}; font-weight: ${fontWeight('semibold')}; text-decoration-thickness: 1px; }\n :host([variant='standalone']) a:hover .icon { transform: translateX(2px); }\n .icon { flex: none; transition: transform 120ms ease-in-out; }\n .sr-only {\n ${visuallyHidden}\n }\n `,\n ];\n\n render(): TemplateResult {\n return html`\n <a\n part=\"link\"\n href=${this.href || nothing}\n target=${this.external ? '_blank' : nothing}\n rel=${this.external ? 'noopener noreferrer' : nothing}\n >\n <slot></slot>${iconSvg(this.icon !== 'none' ? this.icon : this.variant === 'standalone' ? (this.external ? 'external' : 'arrow-right') : undefined, '1em')}${this.external ? html`<span class=\"sr-only\"> (${this.externalText})</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KAAK,WAAW,+BAA+B,KAAK,YAAY,aAAa,OAAO;AAAA;AAAA;AAAA,EAGvP;AACF;AAEA,eAAe,OAAO,eAAe,UAAU;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktAccordion
3
- } from "../chunk-RXX4CN5J.js";
4
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-EGJZDKMW.js";
4
+ import "../chunk-V7EB7Q2M.js";
5
5
  export {
6
6
  ImpaktAccordion
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktAlert
3
- } from "../chunk-GJPHQLLN.js";
4
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-AYKYHZGQ.js";
4
+ import "../chunk-V7EB7Q2M.js";
5
5
  export {
6
6
  ImpaktAlert
7
7
  };
@@ -136,8 +136,21 @@ export interface MenuItem {
136
136
  * it. A list that would run off the side of the screen opens towards the other
137
137
  * edge instead, so it never makes a phone scroll sideways.
138
138
  *
139
+ * **The button can hold your own content.** Put an avatar and a name in the
140
+ * `trigger` slot for an account menu; they replace the icon and label, and
141
+ * become the button's accessible name, so include the words. Put who is signed
142
+ * in, or any other note, in the `header` slot; it sits above the items and
143
+ * outside the menu, so the arrow keys still move through the items alone.
144
+ *
139
145
  * @category navigation
140
146
  * @icon menu
147
+ * @slot trigger - What the button shows, in place of the icon and label.
148
+ * @slot header - A note above the items, such as the name and email of who is signed in.
149
+ * @csspart trigger - The button.
150
+ * @csspart chevron - The arrow on the button.
151
+ * @csspart panel - The box that opens, holding the header and the items.
152
+ * @csspart header - The box round the header slot.
153
+ * @csspart list - The list of items.
141
154
  * @fires {CustomEvent<{ value: string }>} impakt-select - When an item without an address is chosen. The value is in detail.value.
142
155
  */
143
156
  export declare class ImpaktMenu extends ImpaktElement {
@@ -8,12 +8,12 @@ import {
8
8
  ImpaktSlotPicker,
9
9
  ImpaktToast,
10
10
  pageWindow
11
- } from "../chunk-RZWRAJCD.js";
11
+ } from "../chunk-P6HG5RB2.js";
12
12
  import "../chunk-3IGNZTJU.js";
13
13
  import "../chunk-2YRTFWW2.js";
14
- import "../chunk-WS4AYRSL.js";
15
- import "../chunk-5ZQVL3V2.js";
16
- import "../chunk-YR6T73GY.js";
14
+ import "../chunk-AL4IUSML.js";
15
+ import "../chunk-ONED3PUB.js";
16
+ import "../chunk-V7EB7Q2M.js";
17
17
  export {
18
18
  ImpaktAvatar,
19
19
  ImpaktAvatarGroup,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktBadge
3
- } from "../chunk-NU34ZQFR.js";
4
- import "../chunk-WS4AYRSL.js";
5
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-2ZF3J7OO.js";
4
+ import "../chunk-AL4IUSML.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktBadge
8
8
  };
@@ -3,10 +3,10 @@ import {
3
3
  ImpaktSpacer,
4
4
  ImpaktTabs,
5
5
  ImpaktVisuallyHidden
6
- } from "../chunk-BMJFSUP3.js";
7
- import "../chunk-UF6KCRNT.js";
8
- import "../chunk-WS4AYRSL.js";
9
- import "../chunk-YR6T73GY.js";
6
+ } from "../chunk-MLKNZL5J.js";
7
+ import "../chunk-JNLKM3JT.js";
8
+ import "../chunk-AL4IUSML.js";
9
+ import "../chunk-V7EB7Q2M.js";
10
10
  export {
11
11
  ImpaktDivider,
12
12
  ImpaktSpacer,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktButton
3
- } from "../chunk-OE6O3XQB.js";
4
- import "../chunk-WS4AYRSL.js";
5
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-VYYY5DDZ.js";
4
+ import "../chunk-AL4IUSML.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktButton
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktCheckboxGroup
3
- } from "../chunk-WP5WJ4V5.js";
4
- import "../chunk-5ZQVL3V2.js";
5
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-3NEWOO2P.js";
4
+ import "../chunk-ONED3PUB.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktCheckboxGroup
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktCheckbox
3
- } from "../chunk-I54DOEZB.js";
4
- import "../chunk-5ZQVL3V2.js";
5
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-AG4EP3OY.js";
4
+ import "../chunk-ONED3PUB.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktCheckbox
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktChip
3
- } from "../chunk-4ZQTXTPA.js";
4
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-2EP3IV3G.js";
4
+ import "../chunk-V7EB7Q2M.js";
5
5
  export {
6
6
  ImpaktChip
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktDateInput
3
- } from "../chunk-XU2XODVH.js";
4
- import "../chunk-5ZQVL3V2.js";
5
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-5OJAJA3U.js";
4
+ import "../chunk-ONED3PUB.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktDateInput
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktDialog
3
- } from "../chunk-PYVUQNFQ.js";
3
+ } from "../chunk-MOO63SHZ.js";
4
4
  import "../chunk-2YRTFWW2.js";
5
- import "../chunk-YR6T73GY.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktDialog
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktFieldset
3
- } from "../chunk-WS5AUJ35.js";
4
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-Z2EWQMTR.js";
4
+ import "../chunk-V7EB7Q2M.js";
5
5
  export {
6
6
  ImpaktFieldset
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktGrid
3
- } from "../chunk-ZQBEFP2O.js";
4
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-APQEXM4I.js";
4
+ import "../chunk-V7EB7Q2M.js";
5
5
  export {
6
6
  ImpaktGrid
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktHelp
3
- } from "../chunk-TRZO5CHU.js";
4
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-26BO3W56.js";
4
+ import "../chunk-V7EB7Q2M.js";
5
5
  export {
6
6
  ImpaktHelp
7
7
  };
@@ -3,8 +3,8 @@ import {
3
3
  ICON_NAMES,
4
4
  ImpaktIcon,
5
5
  iconSvg
6
- } from "../chunk-WS4AYRSL.js";
7
- import "../chunk-YR6T73GY.js";
6
+ } from "../chunk-AL4IUSML.js";
7
+ import "../chunk-V7EB7Q2M.js";
8
8
  export {
9
9
  ICONS,
10
10
  ICON_NAMES,
@@ -6,10 +6,10 @@ import {
6
6
  ImpaktRangeInput,
7
7
  ImpaktTaskList,
8
8
  groupDigits
9
- } from "../chunk-QBORJTS4.js";
9
+ } from "../chunk-D3JWVMJE.js";
10
10
  import "../chunk-3IGNZTJU.js";
11
- import "../chunk-5ZQVL3V2.js";
12
- import "../chunk-YR6T73GY.js";
11
+ import "../chunk-ONED3PUB.js";
12
+ import "../chunk-V7EB7Q2M.js";
13
13
  export {
14
14
  ImpaktAddressLookup,
15
15
  ImpaktErrorSummary,
@@ -3,8 +3,8 @@ import {
3
3
  ImpaktHeading,
4
4
  ImpaktStack,
5
5
  ImpaktText
6
- } from "../chunk-YYYQPKQ7.js";
7
- import "../chunk-YR6T73GY.js";
6
+ } from "../chunk-AURT72IC.js";
7
+ import "../chunk-V7EB7Q2M.js";
8
8
  export {
9
9
  ImpaktCard,
10
10
  ImpaktHeading,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktLink
3
- } from "../chunk-INA53XXW.js";
4
- import "../chunk-WS4AYRSL.js";
5
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-ZL3JFUIE.js";
4
+ import "../chunk-AL4IUSML.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktLink
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktList
3
- } from "../chunk-3EF4T242.js";
4
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-6PMA6NHE.js";
4
+ import "../chunk-V7EB7Q2M.js";
5
5
  export {
6
6
  ImpaktList
7
7
  };
@@ -2,8 +2,8 @@ import {
2
2
  ImpaktDocumentLink,
3
3
  ImpaktImage,
4
4
  ImpaktLogo
5
- } from "../chunk-A7YBFS4H.js";
6
- import "../chunk-YR6T73GY.js";
5
+ } from "../chunk-NKMJMVZP.js";
6
+ import "../chunk-V7EB7Q2M.js";
7
7
  export {
8
8
  ImpaktDocumentLink,
9
9
  ImpaktImage,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ImpaktBreadcrumbs,
3
3
  ImpaktNav
4
- } from "../chunk-XZQH2M5I.js";
5
- import "../chunk-WS4AYRSL.js";
6
- import "../chunk-YR6T73GY.js";
4
+ } from "../chunk-HURHKQTJ.js";
5
+ import "../chunk-AL4IUSML.js";
6
+ import "../chunk-V7EB7Q2M.js";
7
7
  export {
8
8
  ImpaktBreadcrumbs,
9
9
  ImpaktNav
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktPage,
3
3
  ImpaktSection
4
- } from "../chunk-FWR6SEIA.js";
5
- import "../chunk-YR6T73GY.js";
4
+ } from "../chunk-HA6OJRVI.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktPage,
8
8
  ImpaktSection
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktPrice
3
- } from "../chunk-HNBG2POR.js";
3
+ } from "../chunk-7C56LPNJ.js";
4
4
  import "../chunk-3IGNZTJU.js";
5
- import "../chunk-YR6T73GY.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktPrice
8
8
  };
@@ -38,6 +38,11 @@ export declare class ImpaktProgress extends ImpaktElement {
38
38
  type: StringConstructor;
39
39
  reflect: boolean;
40
40
  };
41
+ hideLabels: {
42
+ type: BooleanConstructor;
43
+ attribute: string;
44
+ reflect: boolean;
45
+ };
41
46
  };
42
47
  steps: ProgressStep[];
43
48
  /** The id of the step being shown. */
@@ -50,6 +55,13 @@ export declare class ImpaktProgress extends ImpaktElement {
50
55
  * heavier weight, so it does not rest on colour alone.
51
56
  */
52
57
  look: 'steps' | 'bars';
58
+ /**
59
+ * Draw the bars or steps alone, for a card too small for the names. The
60
+ * names and "Step 2 of 5" are still read aloud. Each step is also a `step`
61
+ * part, with `step-done`, `step-current` or `step-todo`, and its name is the
62
+ * `step-label` part, for finer styling.
63
+ */
64
+ hideLabels: boolean;
53
65
  constructor();
54
66
  static styles: import("lit").CSSResult[];
55
67
  render(): TemplateResult;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktProgress
3
- } from "../chunk-MLRTPQQO.js";
4
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-OZGKK3N5.js";
4
+ import "../chunk-V7EB7Q2M.js";
5
5
  export {
6
6
  ImpaktProgress
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktRadioGroup
3
- } from "../chunk-DE3INTHZ.js";
4
- import "../chunk-5ZQVL3V2.js";
5
- import "../chunk-YR6T73GY.js";
3
+ } from "../chunk-YWP2Z3JN.js";
4
+ import "../chunk-ONED3PUB.js";
5
+ import "../chunk-V7EB7Q2M.js";
6
6
  export {
7
7
  ImpaktRadioGroup
8
8
  };
@@ -3,10 +3,10 @@ import {
3
3
  ImpaktFilterChip,
4
4
  ImpaktRow,
5
5
  ImpaktStatTile
6
- } from "../chunk-ON3QWAFV.js";
6
+ } from "../chunk-TE3CBEJQ.js";
7
7
  import "../chunk-3IGNZTJU.js";
8
- import "../chunk-WS4AYRSL.js";
9
- import "../chunk-YR6T73GY.js";
8
+ import "../chunk-AL4IUSML.js";
9
+ import "../chunk-V7EB7Q2M.js";
10
10
  export {
11
11
  ImpaktDateTile,
12
12
  ImpaktFilterChip,
@@ -32,6 +32,11 @@ export declare class ImpaktSelect extends FieldElement {
32
32
  placeholder: {
33
33
  type: StringConstructor;
34
34
  };
35
+ hideLabel: {
36
+ type: BooleanConstructor;
37
+ attribute: string;
38
+ reflect: boolean;
39
+ };
35
40
  label: {
36
41
  type: StringConstructor;
37
42
  };
@@ -65,6 +70,12 @@ export declare class ImpaktSelect extends FieldElement {
65
70
  };
66
71
  };
67
72
  options: SelectOption[];
73
+ /**
74
+ * Keep the label for screen readers only, for a picker whose purpose is
75
+ * plain from where it sits, such as a filter above a table or a role in a
76
+ * team row. The label stays its accessible name.
77
+ */
78
+ hideLabel: boolean;
68
79
  placeholder: string;
69
80
  /** How wide the box is, to suit the answer. Full width on a phone whatever this says. */
70
81
  width: 'full' | 'lg' | 'md' | 'sm' | 'xs';