@atomic-ui/ui 0.12.1 → 0.13.1

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 (84) hide show
  1. package/custom-elements.json +130 -1
  2. package/dist/base/FieldElement.d.ts +20 -2
  3. package/dist/{chunk-2WHOBIOY.js → chunk-2BGOBD6Y.js} +2 -2
  4. package/dist/{chunk-FLAUZU7Y.js → chunk-2RC3QKYA.js} +84 -27
  5. package/dist/chunk-2RC3QKYA.js.map +1 -0
  6. package/dist/{chunk-BGHAANTP.js → chunk-5OCDXZXG.js} +3 -2
  7. package/dist/chunk-5OCDXZXG.js.map +1 -0
  8. package/dist/{chunk-UYTIJCCW.js → chunk-B2GWXXIW.js} +2 -2
  9. package/dist/{chunk-CFCFKLTN.js → chunk-EA3M6KPB.js} +11 -1
  10. package/dist/chunk-EA3M6KPB.js.map +1 -0
  11. package/dist/{chunk-R6YMSJR7.js → chunk-EFP7PJ6C.js} +68 -25
  12. package/dist/chunk-EFP7PJ6C.js.map +1 -0
  13. package/dist/{chunk-BAYSDP44.js → chunk-EIWICFXL.js} +51 -18
  14. package/dist/chunk-EIWICFXL.js.map +1 -0
  15. package/dist/{chunk-5IGBH4GL.js → chunk-EUOBFMWC.js} +2 -2
  16. package/dist/{chunk-FZWUQC42.js → chunk-F2MFV7RM.js} +2 -2
  17. package/dist/{chunk-3GPGDERO.js → chunk-G7CVRNY5.js} +2 -2
  18. package/dist/{chunk-2TNF7O43.js → chunk-LSEK5MEZ.js} +2 -2
  19. package/dist/{chunk-DXLEYNID.js → chunk-LVBYNQ45.js} +5 -3
  20. package/dist/chunk-LVBYNQ45.js.map +1 -0
  21. package/dist/{chunk-SOYKSPPX.js → chunk-NZSKUEYS.js} +18 -10
  22. package/dist/chunk-NZSKUEYS.js.map +1 -0
  23. package/dist/{chunk-5HCWL2YD.js → chunk-P5FAKEFK.js} +2 -2
  24. package/dist/{chunk-HSXLSJVG.js → chunk-PII4SJL5.js} +32 -16
  25. package/dist/chunk-PII4SJL5.js.map +1 -0
  26. package/dist/{chunk-ALFE35FS.js → chunk-QJBRENLI.js} +3 -3
  27. package/dist/{chunk-ALFE35FS.js.map → chunk-QJBRENLI.js.map} +1 -1
  28. package/dist/{chunk-3KAFK24X.js → chunk-RNFGIXJ7.js} +2 -2
  29. package/dist/{chunk-UBNCJROR.js → chunk-SRXC6ZPM.js} +11 -5
  30. package/dist/chunk-SRXC6ZPM.js.map +1 -0
  31. package/dist/{chunk-4MMRBNW7.js → chunk-WEX5RKVC.js} +10 -6
  32. package/dist/chunk-WEX5RKVC.js.map +1 -0
  33. package/dist/{chunk-CQT3VPYK.js → chunk-WT7MHYJR.js} +2 -2
  34. package/dist/{chunk-LXVPWTSY.js → chunk-ZOWOKIE4.js} +37 -21
  35. package/dist/chunk-ZOWOKIE4.js.map +1 -0
  36. package/dist/components/accordion.js +1 -1
  37. package/dist/components/app-bar.d.ts +22 -0
  38. package/dist/components/app-bar.js +3 -3
  39. package/dist/components/app-ui.d.ts +8 -0
  40. package/dist/components/app-ui.js +2 -2
  41. package/dist/components/button.js +1 -1
  42. package/dist/components/checkbox-group.js +2 -2
  43. package/dist/components/checkbox.js +2 -2
  44. package/dist/components/chip-group.js +2 -2
  45. package/dist/components/chip.js +1 -1
  46. package/dist/components/date-input.js +2 -2
  47. package/dist/components/dialog.js +1 -1
  48. package/dist/components/journey.js +2 -2
  49. package/dist/components/layout.js +1 -1
  50. package/dist/components/navigation.js +1 -1
  51. package/dist/components/page.js +1 -1
  52. package/dist/components/radio-group.js +2 -2
  53. package/dist/components/rows.js +1 -1
  54. package/dist/components/select.js +2 -2
  55. package/dist/components/switch.js +2 -2
  56. package/dist/components/text-input.js +2 -2
  57. package/dist/components/textarea.js +2 -2
  58. package/dist/index.js +21 -21
  59. package/dist/server.d.ts +42 -0
  60. package/dist/server.js +26 -0
  61. package/dist/server.js.map +1 -0
  62. package/dist/standalone/atomic-ui.js +833 -746
  63. package/dist/standalone/atomic-ui.js.map +3 -3
  64. package/package.json +6 -2
  65. package/dist/chunk-4MMRBNW7.js.map +0 -1
  66. package/dist/chunk-BAYSDP44.js.map +0 -1
  67. package/dist/chunk-BGHAANTP.js.map +0 -1
  68. package/dist/chunk-CFCFKLTN.js.map +0 -1
  69. package/dist/chunk-DXLEYNID.js.map +0 -1
  70. package/dist/chunk-FLAUZU7Y.js.map +0 -1
  71. package/dist/chunk-HSXLSJVG.js.map +0 -1
  72. package/dist/chunk-LXVPWTSY.js.map +0 -1
  73. package/dist/chunk-R6YMSJR7.js.map +0 -1
  74. package/dist/chunk-SOYKSPPX.js.map +0 -1
  75. package/dist/chunk-UBNCJROR.js.map +0 -1
  76. /package/dist/{chunk-2WHOBIOY.js.map → chunk-2BGOBD6Y.js.map} +0 -0
  77. /package/dist/{chunk-UYTIJCCW.js.map → chunk-B2GWXXIW.js.map} +0 -0
  78. /package/dist/{chunk-5IGBH4GL.js.map → chunk-EUOBFMWC.js.map} +0 -0
  79. /package/dist/{chunk-FZWUQC42.js.map → chunk-F2MFV7RM.js.map} +0 -0
  80. /package/dist/{chunk-3GPGDERO.js.map → chunk-G7CVRNY5.js.map} +0 -0
  81. /package/dist/{chunk-2TNF7O43.js.map → chunk-LSEK5MEZ.js.map} +0 -0
  82. /package/dist/{chunk-5HCWL2YD.js.map → chunk-P5FAKEFK.js.map} +0 -0
  83. /package/dist/{chunk-3KAFK24X.js.map → chunk-RNFGIXJ7.js.map} +0 -0
  84. /package/dist/{chunk-CQT3VPYK.js.map → chunk-WT7MHYJR.js.map} +0 -0
@@ -14,6 +14,10 @@ import {
14
14
 
15
15
  // packages/ui/src/components/app-bar.ts
16
16
  import { css, html, nothing } from "lit";
17
+ var MENU_PARTS = ["trigger", "chevron", "panel", "header", "list", "group", "group-label", "item", "current", "label", "meta"];
18
+ var exportPrefixed = (prefix) => MENU_PARTS.map((part) => `${part}: ${prefix}-${part}`).join(", ");
19
+ var SWITCHER_PARTS = exportPrefixed("switcher");
20
+ var ORGANISATION_PARTS = exportPrefixed("organisation");
17
21
  var ImpaktAppBar = class extends ImpaktElement {
18
22
  static {
19
23
  this.properties = {
@@ -190,9 +194,11 @@ var ImpaktAppBar = class extends ImpaktElement {
190
194
  impakt-menu::part(chevron) {
191
195
  color: inherit;
192
196
  }
193
- /* The switcher's panel is 320 wide (53:960), so "Your account" and its note sit on one line. */
197
+ /* The switcher's panel is 340 wide (53:960), so "Your account" and "Plans, team, billing" sit on one line.
198
+ On a 390 screen that still leaves the 16px gutters; narrower than that it keeps to the gutters and the words may wrap. */
194
199
  impakt-menu.switcher::part(panel) {
195
- min-inline-size: min(20rem, calc(100vw - 2 * ${space(4)}));
200
+ inline-size: min(21.25rem, calc(100vw - 2 * ${space(4)}));
201
+ max-inline-size: none;
196
202
  }
197
203
  impakt-menu.org::part(trigger),
198
204
  a.org,
@@ -260,14 +266,14 @@ var ImpaktAppBar = class extends ImpaktElement {
260
266
  }
261
267
  renderSwitcher() {
262
268
  if (this.switcher.length)
263
- return html`<impakt-menu class="switcher" edge="end" trigger-look="text" .label=${this.switcherLabel} .items=${this.switcher}></impakt-menu>`;
269
+ return html`<impakt-menu class="switcher" exportparts=${SWITCHER_PARTS} edge="end" trigger-look="text" .label=${this.switcherLabel} .items=${this.switcher}></impakt-menu>`;
264
270
  if (this.toolsHref) return html`<a class="all" href=${this.toolsHref}>${this.switcherLabel}</a>`;
265
271
  return nothing;
266
272
  }
267
273
  renderAccount() {
268
274
  if (this.signedOut) return html`<a class="sign-in" part="sign-in" href=${this.signInHref}>${this.signInText}</a>`;
269
275
  if (this.organisationItems.length)
270
- return html`<impakt-menu class="org" edge="end" trigger-look="text" .label=${this.organisation} .items=${this.organisationItems}></impakt-menu>`;
276
+ return html`<impakt-menu class="org" exportparts=${ORGANISATION_PARTS} edge="end" trigger-look="text" .label=${this.organisation} .items=${this.organisationItems}></impakt-menu>`;
271
277
  if (this.organisationHref) return html`<a class="org" href=${this.organisationHref}>${this.organisation}</a>`;
272
278
  return nothing;
273
279
  }
@@ -291,4 +297,4 @@ customElements.define("impakt-app-bar", ImpaktAppBar);
291
297
  export {
292
298
  ImpaktAppBar
293
299
  };
294
- //# sourceMappingURL=chunk-UBNCJROR.js.map
300
+ //# sourceMappingURL=chunk-SRXC6ZPM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/app-bar.ts"],"sourcesContent":["/**\n * The frame every AI tool sits in: the app bar.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { focusRing, touchTarget } from '../base/styles';\nimport { space, t, token } from '../base/tokens';\nimport { kit } from './tool-kit-tokens';\nimport type { MenuItem } from './app-ui';\nimport './app-ui';\n\nexport interface AppBarLink {\n label: string;\n href: string;\n /** The page that is showing. */\n current?: boolean;\n}\n\n/**\n * An item in the \"All tools\" switcher or the organisation menu. `group`,\n * `meta`, `current` and `disabled` are drawn by `impakt-menu`: the group's\n * heading (\"Tools\", \"Working in\", \"Account\"), a mono note on the right\n * (\"Open\", \"You are here\", \"Coming soon\"), the tool that is showing, and a\n * tool that cannot be opened yet.\n */\nexport type AppBarMenuItem = MenuItem & {\n group?: string;\n meta?: string;\n current?: boolean;\n disabled?: boolean;\n};\n\n/** The menu's parts, passed on under a prefix so a product can reach them from outside the bar. */\nconst MENU_PARTS = ['trigger', 'chevron', 'panel', 'header', 'list', 'group', 'group-label', 'item', 'current', 'label', 'meta'];\nconst exportPrefixed = (prefix: string): string => MENU_PARTS.map((part) => `${part}: ${prefix}-${part}`).join(', ');\nconst SWITCHER_PARTS = exportPrefixed('switcher');\nconst ORGANISATION_PARTS = exportPrefixed('organisation');\n\n/**\n * The bar at the top of every AI tool: the Impakt mark and the tool's name on\n * the left, the tool's own pages in the middle, and the way to other tools and\n * the organisation on the right.\n *\n * It is a `header` landmark, 56px tall. \"impakt\" links home; the tool's name\n * follows a \"/\". The tool's pages, when it has more than one, are a `nav`\n * drawn as a segmented track, and the page that is showing is marked with\n * `aria-current=\"page\"` as well as a dot, so it is never told by colour.\n *\n * On the right, the built-in \"All tools\" switcher is an `impakt-menu` of the\n * `switcher` items, grouped and annotated (Tools, Working in, Account). Put\n * your own controls in the `tools` slot to replace it, and put a language switch\n * or anything else before it in the `extra` slot. Then comes the organisation menu, from\n * `organisation-items`; or, when `signed-out`, a \"Sign in\" link in its place.\n *\n * **On a narrow screen the pages move to a second row** under the mark and\n * the menus, the full width of the bar, and scroll sideways if they still do\n * not fit. Folding them away behind a button would hide where you are; a row\n * that scrolls keeps the current page in view and every page one swipe or one\n * Tab away. The bar reflows to 320px without the page scrolling sideways.\n *\n * Figma: kit `33:361`, `33:365`; every tool screen, such as `36:431`, `36:642`,\n * `37:420`, `37:591`, `39:468`, `39:603`, `39:746`, `53:674`, `53:801`; signed\n * out `36:382`; dark `48:527`, `48:857`; the switcher open `53:960`, `53:800`.\n *\n * @category navigation\n * @icon menu\n * @slot tools - Replaces the built-in \"All tools\" switcher.\n * @slot extra - Before the \"All tools\" switcher, such as an `impakt-language-switch` (39:468).\n * @csspart bar - The header.\n * @csspart home - The link home.\n * @csspart pages - The tool's own pages.\n * @csspart sign-in - The sign-in link.\n * @csspart switcher-trigger - The \"All tools\" switcher's button.\n * @csspart switcher-chevron - The arrow on the switcher's button.\n * @csspart switcher-header - The box round the switcher's header, when it has one.\n * @csspart switcher-panel - The box the switcher opens, 340px wide as in `53:960`.\n * @csspart switcher-list - The switcher's list of items.\n * @csspart switcher-group - A group of the switcher's items, with its label.\n * @csspart switcher-group-label - A group's label in the switcher, such as \"Tools\".\n * @csspart switcher-item - An item in the switcher. The tool you are in is also `switcher-current`.\n * @csspart switcher-current - The switcher's item for the tool you are in.\n * @csspart switcher-label - An item's words in the switcher.\n * @csspart switcher-meta - An item's note in the switcher, such as \"Plans, team, billing\".\n * @csspart organisation-trigger - The organisation menu's button.\n * @csspart organisation-chevron - The arrow on the organisation menu's button.\n * @csspart organisation-panel - The box the organisation menu opens.\n * @csspart organisation-header - The box round the organisation menu's header, when it has one.\n * @csspart organisation-list - The organisation menu's list of items.\n * @csspart organisation-group - A group of the organisation menu's items, with its label.\n * @csspart organisation-group-label - A group's label in the organisation menu.\n * @csspart organisation-item - An item in the organisation menu. The page you are on is also `organisation-current`.\n * @csspart organisation-current - The organisation menu's item for the page you are on.\n * @csspart organisation-label - An item's words in the organisation menu.\n * @csspart organisation-meta - An item's note in the organisation menu.\n */\nexport class ImpaktAppBar extends ImpaktElement {\n static properties = {\n tool: { type: String },\n home: { type: String },\n brand: { type: String },\n links: { type: Array },\n pagesLabel: { type: String, attribute: 'pages-label' },\n switcher: { type: Array },\n switcherLabel: { type: String, attribute: 'switcher-label' },\n toolsHref: { type: String, attribute: 'tools-href' },\n organisation: { type: String },\n organisationItems: { type: Array, attribute: 'organisation-items' },\n organisationHref: { type: String, attribute: 'organisation-href' },\n signedOut: { type: Boolean, reflect: true, attribute: 'signed-out' },\n signInHref: { type: String, attribute: 'sign-in-href' },\n signInText: { type: String, attribute: 'sign-in-text' },\n };\n\n /** The tool's name, as it follows \"impakt /\": \"accessibility\". */\n declare tool: string;\n /** Where \"impakt\" leads. */\n declare home: string;\n /** The word beside the mark. */\n declare brand: string;\n /** The tool's own pages, drawn in the middle. */\n declare links: AppBarLink[];\n /** The name of the pages' navigation landmark. */\n declare pagesLabel: string;\n /** The \"All tools\" menu: the tools, where you are working, and the account. */\n declare switcher: AppBarMenuItem[];\n /** The switcher's button. */\n declare switcherLabel: string;\n /** With no `switcher` items, \"All tools\" is a link here instead. */\n declare toolsHref: string;\n /** The organisation's name on its menu button. */\n declare organisation: string;\n /** The organisation menu. */\n declare organisationItems: AppBarMenuItem[];\n /** With no `organisation-items`, the organisation is a link here instead. */\n declare organisationHref: string;\n /** Nobody is signed in: a \"Sign in\" link takes the organisation's place. */\n declare signedOut: boolean;\n declare signInHref: string;\n declare signInText: string;\n\n constructor() {\n super();\n this.tool = '';\n this.home = '/';\n this.brand = 'impakt';\n this.links = [];\n this.pagesLabel = 'Tool pages';\n this.switcher = [];\n this.switcherLabel = 'All tools';\n this.toolsHref = '';\n this.organisation = 'Your organisation';\n this.organisationItems = [];\n this.organisationHref = '';\n this.signedOut = false;\n this.signInHref = '/sign-in';\n this.signInText = 'Sign in';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n touchTarget('.home, .pages a, .sign-in, a.org, .all'),\n css`\n :host {\n display: block;\n container-type: inline-size;\n font-family: ${t.fontBody};\n font-size: ${kit.small};\n }\n .bar {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);\n grid-template-areas: 'start pages end';\n align-items: center;\n gap: ${space(2)} ${space(4)};\n min-block-size: 56px;\n padding: ${space(2)} ${space(4)};\n color: ${t.text};\n background: ${t.surfaceCard};\n border-block-end: 1px solid ${token('color.line.grid', 'light-dark(#DCDCD8, #1F1F1F)')};\n }\n .start {\n grid-area: start;\n display: flex;\n align-items: center;\n gap: ${space(2.5)};\n min-inline-size: 0;\n }\n .home {\n display: inline-flex;\n align-items: center;\n gap: ${space(2.5)};\n min-block-size: ${t.targetMin};\n color: inherit;\n text-decoration: none;\n }\n .home:hover .word {\n text-decoration: underline;\n text-underline-offset: 3px;\n }\n .mark {\n display: inline-grid;\n place-items: center;\n flex: none;\n inline-size: 28px;\n block-size: 28px;\n font-weight: ${kit.medium};\n color: ${kit.onInverse};\n background: ${kit.inverse};\n }\n .sep {\n color: ${t.textMuted};\n }\n .tool {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .pages {\n grid-area: pages;\n min-inline-size: 0;\n max-inline-size: 100%;\n overflow-x: auto;\n scrollbar-width: thin;\n }\n .pages ul {\n display: flex;\n inline-size: max-content;\n margin: 0;\n padding: 3px;\n list-style: none;\n background: ${t.surfaceSubtle};\n border: 1px solid ${kit.lineSoft};\n }\n .pages a {\n display: inline-flex;\n align-items: center;\n gap: ${space(1.5)};\n min-block-size: 28px;\n padding: 0 ${space(2.5)};\n font-weight: ${kit.regular};\n color: ${t.textMuted};\n text-decoration: none;\n white-space: nowrap;\n border: 1px solid transparent;\n }\n .pages a:hover {\n color: ${t.text};\n }\n .pages a[aria-current='page'] {\n color: ${t.text};\n background: ${t.surfaceCard};\n border-color: ${kit.lineSoft};\n }\n .dot {\n inline-size: 5px;\n block-size: 5px;\n border-radius: 50%;\n background: currentColor;\n }\n .end {\n grid-area: end;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: ${space(2)} ${space(3)};\n min-inline-size: 0;\n }\n .all {\n color: ${t.textMuted};\n text-decoration: none;\n display: inline-flex;\n align-items: center;\n min-block-size: ${t.targetMin};\n }\n .all:hover {\n color: ${t.text};\n text-decoration: underline;\n }\n impakt-menu.switcher::part(trigger) {\n padding: ${space(1)} ${space(1)};\n font-family: ${t.fontBody};\n font-size: ${kit.small};\n font-weight: ${kit.regular};\n color: ${t.textMuted};\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n impakt-menu.switcher::part(trigger):hover {\n color: ${t.text};\n }\n impakt-menu::part(chevron) {\n color: inherit;\n }\n /* The switcher's panel is 340 wide (53:960), so \"Your account\" and \"Plans, team, billing\" sit on one line.\n On a 390 screen that still leaves the 16px gutters; narrower than that it keeps to the gutters and the words may wrap. */\n impakt-menu.switcher::part(panel) {\n inline-size: min(21.25rem, calc(100vw - 2 * ${space(4)}));\n max-inline-size: none;\n }\n impakt-menu.org::part(trigger),\n a.org,\n .sign-in {\n display: inline-flex;\n align-items: center;\n gap: ${space(2)};\n padding: 9px 14px;\n font-family: ${t.fontBody};\n font-size: ${kit.small};\n font-weight: ${kit.medium};\n color: ${t.text};\n background: ${t.surfaceCard};\n border: 1px solid ${t.text};\n border-radius: 0;\n box-shadow: none;\n text-decoration: none;\n }\n impakt-menu.org::part(trigger):hover,\n a.org:hover,\n .sign-in:hover {\n background: ${t.surfaceSubtle};\n }\n @container (max-width: 56rem) {\n .bar {\n grid-template-columns: minmax(0, 1fr) auto;\n grid-template-areas: 'start end' 'pages pages';\n padding-block: ${space(2)};\n }\n }\n @container (max-width: 30rem) {\n .bar {\n grid-template-columns: minmax(0, 1fr);\n grid-template-areas: 'start' 'end' 'pages';\n padding-inline: ${space(4)};\n }\n .end {\n justify-content: flex-start;\n }\n }\n @media (forced-colors: active) {\n .pages a[aria-current='page'] {\n border-color: CanvasText;\n }\n .mark {\n border: 1px solid CanvasText;\n }\n }\n `,\n ];\n\n private renderPages(): TemplateResult | typeof nothing {\n if (!this.links.length) return nothing;\n return html`<nav class=\"pages\" part=\"pages\" aria-label=${this.pagesLabel}>\n <ul>\n ${this.links.map(\n (link) =>\n html`<li>\n <a href=${link.href} aria-current=${link.current ? 'page' : nothing}\n >${link.current ? html`<span class=\"dot\" aria-hidden=\"true\"></span>` : nothing}${link.label}</a\n >\n </li>`,\n )}\n </ul>\n </nav>`;\n }\n\n private renderSwitcher(): TemplateResult | typeof nothing {\n if (this.switcher.length)\n return html`<impakt-menu class=\"switcher\" exportparts=${SWITCHER_PARTS} edge=\"end\" trigger-look=\"text\" .label=${this.switcherLabel} .items=${this.switcher as MenuItem[]}></impakt-menu>`;\n if (this.toolsHref) return html`<a class=\"all\" href=${this.toolsHref}>${this.switcherLabel}</a>`;\n return nothing;\n }\n\n private renderAccount(): TemplateResult | typeof nothing {\n if (this.signedOut) return html`<a class=\"sign-in\" part=\"sign-in\" href=${this.signInHref}>${this.signInText}</a>`;\n if (this.organisationItems.length)\n return html`<impakt-menu class=\"org\" exportparts=${ORGANISATION_PARTS} edge=\"end\" trigger-look=\"text\" .label=${this.organisation} .items=${this.organisationItems as MenuItem[]}></impakt-menu>`;\n if (this.organisationHref) return html`<a class=\"org\" href=${this.organisationHref}>${this.organisation}</a>`;\n return nothing;\n }\n\n render(): TemplateResult {\n return html`<header class=\"bar\" part=\"bar\">\n <div class=\"start\">\n <a class=\"home\" part=\"home\" href=${this.home}><span class=\"mark\" aria-hidden=\"true\">i</span><span class=\"word\">${this.brand}</span></a>\n ${this.tool ? html`<span class=\"sep\" aria-hidden=\"true\">/</span><span class=\"tool\">${this.tool}</span>` : nothing}\n </div>\n ${this.renderPages()}\n <div class=\"end\">\n <slot name=\"extra\"></slot>\n <slot name=\"tools\">${this.renderSwitcher()}</slot>\n ${this.renderAccount()}\n </div>\n </header>`;\n }\n}\n\ncustomElements.define('impakt-app-bar', ImpaktAppBar);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-app-bar': ImpaktAppBar;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAGA,SAAS,KAAK,MAAM,eAAoC;AA8BxD,IAAM,aAAa,CAAC,WAAW,WAAW,SAAS,UAAU,QAAQ,SAAS,eAAe,QAAQ,WAAW,SAAS,MAAM;AAC/H,IAAM,iBAAiB,CAAC,WAA2B,WAAW,IAAI,CAAC,SAAS,GAAG,IAAI,KAAK,MAAM,IAAI,IAAI,EAAE,EAAE,KAAK,IAAI;AACnH,IAAM,iBAAiB,eAAe,UAAU;AAChD,IAAM,qBAAqB,eAAe,cAAc;AA2DjD,IAAM,eAAN,cAA2B,cAAc;AAAA,EAC9C;AAAA,SAAO,aAAa;AAAA,MAClB,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,YAAY,EAAE,MAAM,QAAQ,WAAW,cAAc;AAAA,MACrD,UAAU,EAAE,MAAM,MAAM;AAAA,MACxB,eAAe,EAAE,MAAM,QAAQ,WAAW,iBAAiB;AAAA,MAC3D,WAAW,EAAE,MAAM,QAAQ,WAAW,aAAa;AAAA,MACnD,cAAc,EAAE,MAAM,OAAO;AAAA,MAC7B,mBAAmB,EAAE,MAAM,OAAO,WAAW,qBAAqB;AAAA,MAClE,kBAAkB,EAAE,MAAM,QAAQ,WAAW,oBAAoB;AAAA,MACjE,WAAW,EAAE,MAAM,SAAS,SAAS,MAAM,WAAW,aAAa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AAA;AAAA,QAEjH,KAAK,YAAY,CAAC;AAAA;AAAA;AAAA,6BAGG,KAAK,eAAe,CAAC;AAAA,UACxC,KAAK,cAAc,CAAC;AAAA;AAAA;AAAA,EAG5B;AACF;AAEA,eAAe,OAAO,kBAAkB,YAAY;","names":[]}
@@ -2,7 +2,7 @@ import {
2
2
  FieldElement,
3
3
  fieldControl,
4
4
  fieldWidths
5
- } from "./chunk-HSXLSJVG.js";
5
+ } from "./chunk-PII4SJL5.js";
6
6
  import {
7
7
  visuallyHidden
8
8
  } from "./chunk-72WNCCDC.js";
@@ -66,10 +66,14 @@ var ImpaktSelect = class extends FieldElement {
66
66
  inset-inline-end: 10px;
67
67
  font-size: 12px;
68
68
  }
69
- /* The browser's own arrow is replaced by a small "▾", drawn beside the box's end and hidden from screen readers. */
69
+ /*
70
+ * The marker. Most brands keep the browser's own arrow. Where the brand says so, as Noire does
71
+ * (select.appearance and select.caret), it is replaced by a small "▾", drawn beside the box's
72
+ * end and hidden from screen readers.
73
+ */
70
74
  .box { position: relative; display: block; inline-size: min(100%, var(--impakt-field-width)); }
71
- select { inline-size: 100%; appearance: none; -webkit-appearance: none; padding-inline-end: ${space(9)}; cursor: pointer; }
72
- .caret { position: absolute; inset-inline-end: ${space(3.5)}; inset-block-start: 50%; transform: translateY(-50%); font-size: ${fontSize("sm")}; line-height: 1; color: ${t.text}; pointer-events: none; }
75
+ select { inline-size: 100%; appearance: var(--impakt-select-appearance, auto); -webkit-appearance: var(--impakt-select-appearance, auto); padding-inline-end: var(--impakt-select-padding-end, ${space(3)}); cursor: pointer; }
76
+ .caret { display: var(--impakt-select-caret, none); position: absolute; inset-inline-end: ${space(3.5)}; inset-block-start: 50%; transform: translateY(-50%); font-size: ${fontSize("sm")}; line-height: 1; color: ${t.text}; pointer-events: none; }
73
77
  /* A forced colours mode draws the box in the system colours; the caret takes the text colour. */
74
78
  @media (forced-colors: active) { .caret { color: CanvasText; } }
75
79
  `
@@ -89,7 +93,7 @@ var ImpaktSelect = class extends FieldElement {
89
93
  >
90
94
  <option value="" ?selected=${!this.value}>${this.placeholder}</option>
91
95
  ${this.options.map((o) => html`<option value=${o.value} ?selected=${this.value === o.value}>${o.label}</option>`)}
92
- </select><span class="caret" aria-hidden="true">▾</span></span>
96
+ </select><span class="caret" part="caret" aria-hidden="true">▾</span></span>
93
97
  `;
94
98
  }
95
99
  updated(changed) {
@@ -101,4 +105,4 @@ customElements.define("impakt-select", ImpaktSelect);
101
105
  export {
102
106
  ImpaktSelect
103
107
  };
104
- //# sourceMappingURL=chunk-4MMRBNW7.js.map
108
+ //# sourceMappingURL=chunk-WEX5RKVC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/select.ts"],"sourcesContent":["import { html, css, nothing, type TemplateResult } from 'lit';\nimport { FieldElement, fieldControl, fieldWidths } from '../base/FieldElement';\nimport { visuallyHidden } from '../base/styles';\nimport { fontSize, space, t } from '../base/tokens';\n\nexport interface SelectOption {\n value: string;\n label: string;\n}\n\n/**\n * A dropdown.\n *\n * A native `<select>`, because the alternative is a listbox widget that has to\n * reimplement type-ahead, keyboard selection, and the platform's own picker on\n * touch — and whose main advantage is that the arrow can be restyled. On a\n * phone, native wins outright: it opens the system control that the user\n * already knows how to drive.\n *\n * The empty first option carries a real label rather than being blank, so a\n * screen reader announces a choice to make rather than silence.\n\n *\n * @category form\n * @icon select\n */\nexport class ImpaktSelect extends FieldElement {\n static properties = {\n ...FieldElement.properties,\n width: { type: String, reflect: true },\n options: { type: Array },\n placeholder: { type: String },\n hideLabel: { type: Boolean, attribute: 'hide-label', reflect: true },\n size: { type: String, reflect: true },\n };\n\n declare options: SelectOption[];\n /**\n * Keep the label for screen readers only, for a picker whose purpose is\n * plain from where it sits, such as a filter above a table or a role in a\n * team row. The label stays its accessible name.\n */\n declare hideLabel: boolean;\n declare placeholder: string;\n\n /** How wide the box is, to suit the answer. Full width on a phone whatever this says. */\n declare width: 'full' | 'lg' | 'md' | 'sm' | 'xs';\n /** `sm` is a compact 32px box for a filter in a toolbar, such as \"Page: All pages\" above a list. It still meets the 24px target size. */\n declare size: 'md' | 'sm';\n\n constructor() {\n super();\n this.width = 'full';\n this.options = [];\n this.placeholder = 'Choose an option';\n this.hideLabel = false;\n this.size = 'md';\n }\n\n static styles = [\n ...FieldElement.styles,\n fieldWidths,\n fieldControl('select'),\n css`\n :host([hide-label]) .label {\n ${visuallyHidden}\n }\n /* A compact box sits inline, in a toolbar, so it has none of a form field's spacing under it. */\n :host([size='sm']) {\n margin-block-end: 0;\n }\n /* A compact box is as wide as its longest option, as a filter in a toolbar is. */\n :host([size='sm']) .box {\n inline-size: max-content;\n max-inline-size: 100%;\n }\n :host([size='sm']) select {\n inline-size: auto;\n min-block-size: 32px;\n padding-block: 4px;\n padding-inline-start: 10px;\n font-size: 14px;\n }\n /* Nothing under a compact box until there is an error to show, so it lines up with the chips beside it. */\n :host([size='sm']) .error:empty {\n margin: 0;\n }\n :host([size='sm']) .caret {\n inset-inline-end: 10px;\n font-size: 12px;\n }\n /*\n * The marker. Most brands keep the browser's own arrow. Where the brand says so, as Noire does\n * (select.appearance and select.caret), it is replaced by a small \"▾\", drawn beside the box's\n * end and hidden from screen readers.\n */\n .box { position: relative; display: block; inline-size: min(100%, var(--impakt-field-width)); }\n select { inline-size: 100%; appearance: var(--impakt-select-appearance, auto); -webkit-appearance: var(--impakt-select-appearance, auto); padding-inline-end: var(--impakt-select-padding-end, ${space(3)}); cursor: pointer; }\n .caret { display: var(--impakt-select-caret, none); position: absolute; inset-inline-end: ${space(3.5)}; inset-block-start: 50%; transform: translateY(-50%); font-size: ${fontSize('sm')}; line-height: 1; color: ${t.text}; pointer-events: none; }\n /* A forced colours mode draws the box in the system colours; the caret takes the text colour. */\n @media (forced-colors: active) { .caret { color: CanvasText; } }\n `,\n ];\n\n protected renderControl(): TemplateResult {\n return html`\n <span class=\"box\" part=\"box\"><select\n id=${this.controlId}\n part=\"select\"\n name=${this.name || nothing}\n ?disabled=${this.disabled}\n ?required=${this.required}\n aria-describedby=${this.describedBy}\n aria-invalid=${this.error ? 'true' : nothing}\n @change=${(e: Event) => this.setFormValue((e.target as HTMLSelectElement).value)}\n >\n <option value=\"\" ?selected=${!this.value}>${this.placeholder}</option>\n ${this.options.map((o) => html`<option value=${o.value} ?selected=${this.value === o.value}>${o.label}</option>`)}\n </select><span class=\"caret\" part=\"caret\" aria-hidden=\"true\">▾</span></span>\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-select', ImpaktSelect);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-select': ImpaktSelect;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,SAAS,MAAM,KAAK,eAAoC;AA0BjD,IAAM,eAAN,cAA2B,aAAa;AAAA,EAC7C;AAAA,SAAO,aAAa;AAAA,MAClB,GAAG,aAAa;AAAA,MAChB,OAAO,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACrC,SAAS,EAAE,MAAM,MAAM;AAAA,MACvB,aAAa,EAAE,MAAM,OAAO;AAAA,MAC5B,WAAW,EAAE,MAAM,SAAS,WAAW,cAAc,SAAS,KAAK;AAAA,MACnE,MAAM,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,IACtC;AAAA;AAAA,EAgBA,cAAc;AACZ,UAAM;AACN,SAAK,QAAQ;AACb,SAAK,UAAU,CAAC;AAChB,SAAK,cAAc;AACnB,SAAK,YAAY;AACjB,SAAK,OAAO;AAAA,EACd;AAAA,EAEA;AAAA,SAAO,SAAS;AAAA,MACd,GAAG,aAAa;AAAA,MAChB;AAAA,MACA,aAAa,QAAQ;AAAA,MACrB;AAAA;AAAA,UAEM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uMAgC+K,MAAM,CAAC,CAAC;AAAA,kGAC7G,MAAM,GAAG,CAAC,qEAAqE,SAAS,IAAI,CAAC,4BAA4B,EAAE,IAAI;AAAA;AAAA;AAAA;AAAA,IAI/N;AAAA;AAAA,EAEU,gBAAgC;AACxC,WAAO;AAAA;AAAA,aAEE,KAAK,SAAS;AAAA;AAAA,eAEZ,KAAK,QAAQ,OAAO;AAAA,oBACf,KAAK,QAAQ;AAAA,oBACb,KAAK,QAAQ;AAAA,2BACN,KAAK,WAAW;AAAA,uBACpB,KAAK,QAAQ,SAAS,OAAO;AAAA,kBAClC,CAAC,MAAa,KAAK,aAAc,EAAE,OAA6B,KAAK,CAAC;AAAA;AAAA,qCAEnD,CAAC,KAAK,KAAK,IAAI,KAAK,WAAW;AAAA,UAC1D,KAAK,QAAQ,IAAI,CAAC,MAAM,qBAAqB,EAAE,KAAK,cAAc,KAAK,UAAU,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,CAAC;AAAA;AAAA;AAAA,EAGvH;AAAA,EAEA,QAAQ,SAAqC;AAC3C,QAAI,QAAQ,IAAI,OAAO,EAAG,MAAK,gBAAgB,WAAW,QAAQ,KAAK,KAAK,CAAC;AAAA,EAC/E;AACF;AAEA,eAAe,OAAO,iBAAiB,YAAY;","names":[]}
@@ -2,7 +2,7 @@ import {
2
2
  FieldElement,
3
3
  fieldControl,
4
4
  fieldWidths
5
- } from "./chunk-HSXLSJVG.js";
5
+ } from "./chunk-PII4SJL5.js";
6
6
 
7
7
  // packages/ui/src/components/textarea.ts
8
8
  import { html, css, nothing } from "lit";
@@ -95,4 +95,4 @@ customElements.define("impakt-textarea", ImpaktTextarea);
95
95
  export {
96
96
  ImpaktTextarea
97
97
  };
98
- //# sourceMappingURL=chunk-CQT3VPYK.js.map
98
+ //# sourceMappingURL=chunk-WT7MHYJR.js.map
@@ -10,13 +10,25 @@ import {
10
10
  } from "./chunk-72WNCCDC.js";
11
11
  import {
12
12
  fontSize,
13
- fontWeight,
14
13
  space,
15
- t
14
+ t,
15
+ token
16
16
  } from "./chunk-JTCTQBAX.js";
17
17
 
18
18
  // packages/ui/src/components/dialog.ts
19
- import { html, css, nothing } from "lit";
19
+ import { html, css, nothing, unsafeCSS } from "lit";
20
+ var D = {
21
+ edgeWidth: token("dialog.edge-width", "0px"),
22
+ backdrop: token("dialog.backdrop", "color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 30%, transparent)"),
23
+ backdropBlur: token("dialog.backdrop-blur", "2px"),
24
+ padding: token("dialog.padding", "20px"),
25
+ /** On a phone the dialog keeps no more than 20px round its content. */
26
+ phonePadding: unsafeCSS(`min(${token("dialog.padding", "20px")}, 20px)`),
27
+ headingSize: token("dialog.heading.size", "1.25rem"),
28
+ headingLineHeight: token("dialog.heading.line-height", "1.5"),
29
+ headingTracking: token("dialog.heading.tracking", "0em"),
30
+ headingWeight: token("dialog.heading.weight", "700")
31
+ };
20
32
  var ImpaktDialog = class extends ImpaktElement {
21
33
  constructor() {
22
34
  super();
@@ -48,20 +60,22 @@ var ImpaktDialog = class extends ImpaktElement {
48
60
  css`
49
61
  dialog {
50
62
  padding: 0;
51
- border: ${t.borderThin} solid ${t.text};
63
+ /* No edge and a lifted shadow, or under Noire an ink edge and no shadow (dialog.edge-width, shadow.dialog). */
64
+ border: ${D.edgeWidth} solid ${t.text};
52
65
  border-radius: ${t.radius2xl};
53
66
  background: ${t.surfaceCard};
54
67
  color: ${t.text};
55
- box-shadow: var(--impakt-shadow-dialog, none);
68
+ box-shadow: var(--impakt-shadow-dialog, ${t.shadowXl}, 0 0 0 1px ${t.hairline});
56
69
  max-inline-size: min(32rem, calc(100vw - 2rem));
57
70
  /* 1.4.10 Reflow: a dialog taller than the viewport must scroll inside
58
71
  itself rather than clipping, at 320px and at 400% zoom alike. */
59
72
  max-block-size: calc(100vh - 2rem);
60
73
  overflow: auto;
61
74
  }
75
+ /* The page behind, dimmed with the text colour and blurred, or under Noire the ink at half strength (dialog.backdrop). */
62
76
  dialog::backdrop {
63
- /* The ink at half strength. The text colour is the paper in dark, so the backdrop is the ink there too. */
64
- background: rgb(17 17 17 / 0.5);
77
+ background: ${D.backdrop};
78
+ backdrop-filter: blur(${D.backdropBlur});
65
79
  }
66
80
  :host([size='lg']) dialog {
67
81
  inline-size: 720px;
@@ -84,7 +98,6 @@ var ImpaktDialog = class extends ImpaktElement {
84
98
  flex-wrap: wrap;
85
99
  justify-content: flex-end;
86
100
  gap: ${space(3)};
87
- padding: ${space(5)} ${space(6)};
88
101
  border-block-start: ${t.borderThin} solid var(--impakt-color-line-soft, #dcdcd8);
89
102
  }
90
103
  .foot.empty {
@@ -95,26 +108,29 @@ var ImpaktDialog = class extends ImpaktElement {
95
108
  align-items: flex-start;
96
109
  justify-content: space-between;
97
110
  gap: ${space(3)};
98
- padding: ${space(6)} ${space(6)} 0;
111
+ padding: ${D.padding} ${D.padding} 0;
99
112
  }
100
- /* G2: about 32px, semibold, tight. */
113
+ /* The heading: bold in the xl size, or under Noire (G2) about 32px, semibold and tight (dialog.heading.*). */
101
114
  .heading {
102
115
  margin: 0;
103
116
  font-family: ${t.fontHeading};
104
- font-size: var(--impakt-type-heading-m-size, 2rem);
105
- line-height: 1.1;
106
- letter-spacing: -0.03em;
107
- font-weight: ${fontWeight("semibold")};
117
+ font-size: ${D.headingSize};
118
+ line-height: ${D.headingLineHeight};
119
+ letter-spacing: ${D.headingTracking};
120
+ font-weight: ${D.headingWeight};
108
121
  color: ${t.textHeading};
109
122
  }
110
123
  .body {
111
- padding: ${space(4)} ${space(6)} ${space(6)};
124
+ padding: ${space(4)} ${D.padding} ${D.padding};
125
+ }
126
+ .foot {
127
+ padding: ${space(5)} ${D.padding};
112
128
  }
113
129
  @media (max-width: 40rem) {
114
- .heading { font-size: 1.5rem; }
115
- .head { padding: ${space(5)} ${space(5)} 0; }
116
- .body { padding: ${space(4)} ${space(5)} ${space(5)}; }
117
- .foot { padding: ${space(4)} ${space(5)}; }
130
+ .heading { font-size: min(${D.headingSize}, 1.5rem); }
131
+ .head { padding: ${D.phonePadding} ${D.phonePadding} 0; }
132
+ .body { padding: ${space(4)} ${D.phonePadding} ${D.phonePadding}; }
133
+ .foot { padding: ${space(4)} ${D.phonePadding}; }
118
134
  }
119
135
  @media (max-width: 40rem) {
120
136
  :host([phone-full-screen]) dialog {
@@ -189,7 +205,7 @@ var ImpaktDialog = class extends ImpaktElement {
189
205
  if (this.open) this.close();
190
206
  }}
191
207
  >
192
- <div class="head">
208
+ <div class="head" part="head">
193
209
  <div class="titles">
194
210
  ${this.eyebrow ? html`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>` : nothing}
195
211
  ${this.heading ? html`<h2 class="heading" id=${this.id_("heading")} part="heading">${this.heading}</h2>` : nothing}
@@ -212,4 +228,4 @@ customElements.define("impakt-dialog", ImpaktDialog);
212
228
  export {
213
229
  ImpaktDialog
214
230
  };
215
- //# sourceMappingURL=chunk-LXVPWTSY.js.map
231
+ //# sourceMappingURL=chunk-ZOWOKIE4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/dialog.ts"],"sourcesContent":["import { html, css, nothing, unsafeCSS, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { focusRing, targetSize, touchTarget } from '../base/styles';\nimport { lockScroll, unlockScroll } from '../base/scroll-lock';\nimport { fontSize, space, t, token } from '../base/tokens';\n\n/**\n * The dialog's shape, from the brand (`dialog.*` in `@atomic-ui/design-tokens`). Each fallback is\n * the dialog every brand derives: no edge, a lifted shadow, the page dimmed and blurred behind and\n * a bold heading, with 20px round its content. The Impakt theme sets the G2 dialog over it.\n */\nconst D = {\n edgeWidth: token('dialog.edge-width', '0px'),\n backdrop: token('dialog.backdrop', 'color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 30%, transparent)'),\n backdropBlur: token('dialog.backdrop-blur', '2px'),\n padding: token('dialog.padding', '20px'),\n /** On a phone the dialog keeps no more than 20px round its content. */\n phonePadding: unsafeCSS(`min(${token('dialog.padding', '20px')}, 20px)`),\n headingSize: token('dialog.heading.size', '1.25rem'),\n headingLineHeight: token('dialog.heading.line-height', '1.5'),\n headingTracking: token('dialog.heading.tracking', '0em'),\n headingWeight: token('dialog.heading.weight', '700'),\n};\n\n/**\n * A modal dialog — \"are you sure you want to leave this order?\".\n *\n * **It is a native `<dialog>` opened with `showModal()`, and that is the whole\n * design.** The platform then provides, correctly and in every browser: a\n * focus trap, Escape to close, the rest of the page made inert so a screen\n * reader cannot wander out of the dialog, rendering in the top layer so no\n * `z-index` can cover it, and focus returned to whatever opened it when it\n * closes.\n *\n * Every one of those is a thing hand-rolled modals get wrong. The focus trap\n * is the famous one, but inertness is the worse failure: a dialog that traps\n * the Tab key but leaves the background in the accessibility tree lets a\n * screen-reader user read straight past it into a page they cannot interact\n * with, and nothing on screen tells them that is what happened.\n *\n * What is left to get right is the labelling. `aria-labelledby` points at the\n * dialog's own heading, so it is announced by name on open rather than as\n * \"dialog\".\n *\n * Two things the platform leaves out are added. The page behind does not scroll\n * while the dialog is open, so a finger on the backdrop does not move the page\n * out from under it. And with `phone-full-screen` the dialog fills a phone's\n * screen, which suits a dialog holding a form; a short question is better left\n * as a box in the middle, which is the default.\n\n *\n * @category feedback\n * @icon dialog\n * @fires {CustomEvent<null>} impakt-close - When the dialog is closed.\n * @slot - The body of the dialog.\n * @slot footer - The dialog's actions, set at the end of a row along its foot, such as \"Cancel\" and \"Send\".\n * @slot actions - The same as `footer`, for a page that names it so.\n */\nexport class ImpaktDialog extends ImpaktElement {\n static properties = {\n open: { type: Boolean, reflect: true },\n heading: { type: String },\n closeLabel: { type: String, attribute: 'close-label' },\n dismissible: { type: Boolean },\n phoneFullScreen: { type: Boolean, reflect: true, attribute: 'phone-full-screen' },\n size: { type: String, reflect: true },\n eyebrow: { type: String },\n };\n\n declare open: boolean;\n declare heading: string;\n declare closeLabel: string;\n /** When false, Escape and the backdrop do not close it — a decision must be made. */\n declare dismissible: boolean;\n /** Fill the screen on a phone, for a dialog that holds a form or a long text. */\n declare phoneFullScreen: boolean;\n /** `md` is a short question, 32rem wide. `lg` is 720px, for a dialog that holds a form or a review (G2 frame 45:653). */\n declare size: 'md' | 'lg';\n /** A short line above the heading in the code face, such as \"Step 2 of 3\". It is read before the heading but is not part of the dialog's name. */\n declare eyebrow: string;\n\n constructor() {\n super();\n this.open = false;\n this.heading = '';\n this.closeLabel = 'Close';\n this.dismissible = true;\n this.phoneFullScreen = false;\n this.size = 'md';\n this.eyebrow = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n touchTarget('.close'),\n css`\n dialog {\n padding: 0;\n /* No edge and a lifted shadow, or under Noire an ink edge and no shadow (dialog.edge-width, shadow.dialog). */\n border: ${D.edgeWidth} solid ${t.text};\n border-radius: ${t.radius2xl};\n background: ${t.surfaceCard};\n color: ${t.text};\n box-shadow: var(--impakt-shadow-dialog, ${t.shadowXl}, 0 0 0 1px ${t.hairline});\n max-inline-size: min(32rem, calc(100vw - 2rem));\n /* 1.4.10 Reflow: a dialog taller than the viewport must scroll inside\n itself rather than clipping, at 320px and at 400% zoom alike. */\n max-block-size: calc(100vh - 2rem);\n overflow: auto;\n }\n /* The page behind, dimmed with the text colour and blurred, or under Noire the ink at half strength (dialog.backdrop). */\n dialog::backdrop {\n background: ${D.backdrop};\n backdrop-filter: blur(${D.backdropBlur});\n }\n :host([size='lg']) dialog {\n inline-size: 720px;\n max-inline-size: calc(100vw - 2rem);\n }\n .titles {\n display: flex;\n flex-direction: column;\n gap: ${space(2)};\n min-inline-size: 0;\n }\n .eyebrow {\n margin: 0;\n font-family: ${t.fontMono};\n font-size: ${fontSize('sm')};\n color: ${t.textMuted};\n }\n .foot {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: ${space(3)};\n border-block-start: ${t.borderThin} solid var(--impakt-color-line-soft, #dcdcd8);\n }\n .foot.empty {\n display: none;\n }\n .head {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: ${space(3)};\n padding: ${D.padding} ${D.padding} 0;\n }\n /* The heading: bold in the xl size, or under Noire (G2) about 32px, semibold and tight (dialog.heading.*). */\n .heading {\n margin: 0;\n font-family: ${t.fontHeading};\n font-size: ${D.headingSize};\n line-height: ${D.headingLineHeight};\n letter-spacing: ${D.headingTracking};\n font-weight: ${D.headingWeight};\n color: ${t.textHeading};\n }\n .body {\n padding: ${space(4)} ${D.padding} ${D.padding};\n }\n .foot {\n padding: ${space(5)} ${D.padding};\n }\n @media (max-width: 40rem) {\n .heading { font-size: min(${D.headingSize}, 1.5rem); }\n .head { padding: ${D.phonePadding} ${D.phonePadding} 0; }\n .body { padding: ${space(4)} ${D.phonePadding} ${D.phonePadding}; }\n .foot { padding: ${space(4)} ${D.phonePadding}; }\n }\n @media (max-width: 40rem) {\n :host([phone-full-screen]) dialog {\n inline-size: 100vw;\n max-inline-size: 100vw;\n block-size: 100dvh;\n max-block-size: 100dvh;\n margin: 0;\n border-radius: 0;\n }\n }\n .close {\n ${targetSize}\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n background: none;\n border: 0;\n border-radius: ${t.radius};\n font: inherit;\n font-size: ${fontSize('lg')};\n color: ${t.text};\n cursor: pointer;\n }\n `,\n ];\n\n private get dialog(): HTMLDialogElement | null {\n return this.renderRoot.querySelector('dialog');\n }\n\n updated(changed: Map<string, unknown>): void {\n if (!changed.has('open')) return;\n const dialog = this.dialog;\n if (!dialog) return;\n // happy-dom and older engines do not implement showModal. Falling back to\n // the `open` attribute renders a NON-modal dialog — no focus trap, no\n // inert background — so it is used only to keep tests and ancient browsers\n // from throwing, never as an equivalent.\n if (this.open) {\n if (typeof dialog.showModal === 'function') dialog.showModal();\n else dialog.setAttribute('open', '');\n lockScroll(this);\n } else {\n if (typeof dialog.close === 'function' && dialog.open) dialog.close();\n else dialog.removeAttribute('open');\n unlockScroll(this);\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n unlockScroll(this);\n }\n\n private hasFooter = false;\n\n private onFooter(): void {\n const slots = Array.from(this.renderRoot.querySelectorAll<HTMLSlotElement>('slot[name=\"footer\"], slot[name=\"actions\"]'));\n const next = slots.some((slot) => slot.assignedElements({ flatten: true }).length > 0);\n if (next !== this.hasFooter) {\n this.hasFooter = next;\n this.requestUpdate();\n }\n }\n\n private close(): void {\n this.open = false;\n this.dispatchEvent(new CustomEvent('impakt-close', { bubbles: true, composed: true }));\n }\n\n render(): TemplateResult {\n return html`\n <dialog\n part=\"dialog\"\n aria-labelledby=${this.heading ? this.id_('heading') : nothing}\n @cancel=${(e: Event) => {\n // `cancel` fires on Escape. Blocking it is what makes a dialog\n // non-dismissible, and it is why `dismissible` exists rather than\n // leaving a caller to re-open on close.\n if (!this.dismissible) e.preventDefault();\n else this.close();\n }}\n @close=${() => {\n if (this.open) this.close();\n }}\n >\n <div class=\"head\" part=\"head\">\n <div class=\"titles\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<h2 class=\"heading\" id=${this.id_('heading')} part=\"heading\">${this.heading}</h2>` : nothing}\n </div>\n ${\n this.dismissible\n ? html`<button class=\"close\" part=\"close\" type=\"button\" @click=${this.close}>\n <span aria-hidden=\"true\">×</span>\n <span class=\"sr-only\" style=\"position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)\">${this.closeLabel}</span>\n </button>`\n : nothing\n }\n </div>\n <div class=\"body\" part=\"body\"><slot></slot></div>\n <div class=\"foot ${this.hasFooter ? '' : 'empty'}\" part=\"footer\">\n <slot name=\"footer\" @slotchange=${this.onFooter}></slot><slot name=\"actions\" @slotchange=${this.onFooter}></slot>\n </div>\n </dialog>\n `;\n }\n}\n\ncustomElements.define('impakt-dialog', ImpaktDialog);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-dialog': ImpaktDialog;\n }\n}\n"],"mappings":";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C,MAAa;AAItB,UAAI,CAAC,KAAK,YAAa,GAAE,eAAe;AAAA,UACnC,MAAK,MAAM;AAAA,IAClB,CAAC;AAAA,iBACQ,MAAM;AACb,UAAI,KAAK,KAAM,MAAK,MAAM;AAAA,IAC5B,CAAC;AAAA;AAAA;AAAA;AAAA,cAIK,KAAK,UAAU,yCAAyC,KAAK,OAAO,SAAS,OAAO;AAAA,cACpF,KAAK,UAAU,8BAA8B,KAAK,IAAI,SAAS,CAAC,mBAAmB,KAAK,OAAO,UAAU,OAAO;AAAA;AAAA,YAGlH,KAAK,cACD,+DAA+D,KAAK,KAAK;AAAA;AAAA,4HAEmC,KAAK,UAAU;AAAA,2BAE3H,OACN;AAAA;AAAA;AAAA,2BAGiB,KAAK,YAAY,KAAK,OAAO;AAAA,4CACZ,KAAK,QAAQ,4CAA4C,KAAK,QAAQ;AAAA;AAAA;AAAA;AAAA,EAIhH;AACF;AAEA,eAAe,OAAO,iBAAiB,YAAY;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ImpaktAccordion
3
- } from "../chunk-FLAUZU7Y.js";
3
+ } from "../chunk-2RC3QKYA.js";
4
4
  import "../chunk-6CDQSHVW.js";
5
5
  import "../chunk-ZUQ3DOG2.js";
6
6
  import "../chunk-6WVL3HOC.js";
@@ -58,6 +58,28 @@ export type AppBarMenuItem = MenuItem & {
58
58
  * @csspart home - The link home.
59
59
  * @csspart pages - The tool's own pages.
60
60
  * @csspart sign-in - The sign-in link.
61
+ * @csspart switcher-trigger - The "All tools" switcher's button.
62
+ * @csspart switcher-chevron - The arrow on the switcher's button.
63
+ * @csspart switcher-header - The box round the switcher's header, when it has one.
64
+ * @csspart switcher-panel - The box the switcher opens, 340px wide as in `53:960`.
65
+ * @csspart switcher-list - The switcher's list of items.
66
+ * @csspart switcher-group - A group of the switcher's items, with its label.
67
+ * @csspart switcher-group-label - A group's label in the switcher, such as "Tools".
68
+ * @csspart switcher-item - An item in the switcher. The tool you are in is also `switcher-current`.
69
+ * @csspart switcher-current - The switcher's item for the tool you are in.
70
+ * @csspart switcher-label - An item's words in the switcher.
71
+ * @csspart switcher-meta - An item's note in the switcher, such as "Plans, team, billing".
72
+ * @csspart organisation-trigger - The organisation menu's button.
73
+ * @csspart organisation-chevron - The arrow on the organisation menu's button.
74
+ * @csspart organisation-panel - The box the organisation menu opens.
75
+ * @csspart organisation-header - The box round the organisation menu's header, when it has one.
76
+ * @csspart organisation-list - The organisation menu's list of items.
77
+ * @csspart organisation-group - A group of the organisation menu's items, with its label.
78
+ * @csspart organisation-group-label - A group's label in the organisation menu.
79
+ * @csspart organisation-item - An item in the organisation menu. The page you are on is also `organisation-current`.
80
+ * @csspart organisation-current - The organisation menu's item for the page you are on.
81
+ * @csspart organisation-label - An item's words in the organisation menu.
82
+ * @csspart organisation-meta - An item's note in the organisation menu.
61
83
  */
62
84
  export declare class ImpaktAppBar extends ImpaktElement {
63
85
  static properties: {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ImpaktAppBar
3
- } from "../chunk-UBNCJROR.js";
3
+ } from "../chunk-SRXC6ZPM.js";
4
4
  import "../chunk-XX6JZW5N.js";
5
- import "../chunk-SOYKSPPX.js";
5
+ import "../chunk-NZSKUEYS.js";
6
6
  import "../chunk-UNGAG44M.js";
7
- import "../chunk-HSXLSJVG.js";
7
+ import "../chunk-PII4SJL5.js";
8
8
  import "../chunk-2YRTFWW2.js";
9
9
  import "../chunk-5OYQZWP2.js";
10
10
  import "../chunk-72WNCCDC.js";
@@ -166,6 +166,12 @@ export interface MenuItem {
166
166
  * @csspart panel - The box that opens, holding the header and the items.
167
167
  * @csspart header - The box round the header slot.
168
168
  * @csspart list - The list of items.
169
+ * @csspart group - A group of items with its label, and the soft rule above it after the first.
170
+ * @csspart group-label - A group's label, in the code face.
171
+ * @csspart item - An item, a link or a button. The page you are on is also `current`.
172
+ * @csspart current - The item for the page you are on.
173
+ * @csspart label - An item's words.
174
+ * @csspart meta - An item's quiet note at the end, such as "Coming soon".
169
175
  * @fires {CustomEvent<{ value: string }>} impakt-select - When an item without an address is chosen. The value is in detail.value.
170
176
  */
171
177
  export declare class ImpaktMenu extends ImpaktElement {
@@ -208,6 +214,8 @@ export declare class ImpaktMenu extends ImpaktElement {
208
214
  private get entries();
209
215
  private get trigger();
210
216
  private toggle;
217
+ /** However it was opened, by the button or by setting `open`, the list is kept on the screen. */
218
+ protected updated(changed: Map<string, unknown>): void;
211
219
  /** Open towards the other edge when the list would run off the screen. */
212
220
  private keepOnScreen;
213
221
  private triggerKey;
@@ -8,9 +8,9 @@ import {
8
8
  ImpaktSlotPicker,
9
9
  ImpaktToast,
10
10
  pageWindow
11
- } from "../chunk-SOYKSPPX.js";
11
+ } from "../chunk-NZSKUEYS.js";
12
12
  import "../chunk-UNGAG44M.js";
13
- import "../chunk-HSXLSJVG.js";
13
+ import "../chunk-PII4SJL5.js";
14
14
  import "../chunk-2YRTFWW2.js";
15
15
  import "../chunk-5OYQZWP2.js";
16
16
  import "../chunk-72WNCCDC.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ImpaktButton
3
- } from "../chunk-R6YMSJR7.js";
3
+ } from "../chunk-EFP7PJ6C.js";
4
4
  import "../chunk-5OYQZWP2.js";
5
5
  import "../chunk-72WNCCDC.js";
6
6
  import "../chunk-JTCTQBAX.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktCheckboxGroup
3
- } from "../chunk-FZWUQC42.js";
4
- import "../chunk-HSXLSJVG.js";
3
+ } from "../chunk-F2MFV7RM.js";
4
+ import "../chunk-PII4SJL5.js";
5
5
  import "../chunk-72WNCCDC.js";
6
6
  import "../chunk-JTCTQBAX.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktCheckbox
3
- } from "../chunk-5IGBH4GL.js";
4
- import "../chunk-HSXLSJVG.js";
3
+ } from "../chunk-EUOBFMWC.js";
4
+ import "../chunk-PII4SJL5.js";
5
5
  import "../chunk-72WNCCDC.js";
6
6
  import "../chunk-JTCTQBAX.js";
7
7
  export {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktChipGroup
3
- } from "../chunk-3GPGDERO.js";
3
+ } from "../chunk-G7CVRNY5.js";
4
4
  import "../chunk-XX6JZW5N.js";
5
- import "../chunk-HSXLSJVG.js";
5
+ import "../chunk-PII4SJL5.js";
6
6
  import "../chunk-72WNCCDC.js";
7
7
  import "../chunk-JTCTQBAX.js";
8
8
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ImpaktChip
3
- } from "../chunk-BGHAANTP.js";
3
+ } from "../chunk-5OCDXZXG.js";
4
4
  import "../chunk-72WNCCDC.js";
5
5
  import "../chunk-JTCTQBAX.js";
6
6
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktDateInput
3
- } from "../chunk-5HCWL2YD.js";
4
- import "../chunk-HSXLSJVG.js";
3
+ } from "../chunk-P5FAKEFK.js";
4
+ import "../chunk-PII4SJL5.js";
5
5
  import "../chunk-72WNCCDC.js";
6
6
  import "../chunk-JTCTQBAX.js";
7
7
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ImpaktDialog
3
- } from "../chunk-LXVPWTSY.js";
3
+ } from "../chunk-ZOWOKIE4.js";
4
4
  import "../chunk-2YRTFWW2.js";
5
5
  import "../chunk-72WNCCDC.js";
6
6
  import "../chunk-JTCTQBAX.js";
@@ -6,9 +6,9 @@ import {
6
6
  ImpaktRangeInput,
7
7
  ImpaktTaskList,
8
8
  groupDigits
9
- } from "../chunk-2WHOBIOY.js";
9
+ } from "../chunk-2BGOBD6Y.js";
10
10
  import "../chunk-UNGAG44M.js";
11
- import "../chunk-HSXLSJVG.js";
11
+ import "../chunk-PII4SJL5.js";
12
12
  import "../chunk-72WNCCDC.js";
13
13
  import "../chunk-JTCTQBAX.js";
14
14
  export {
@@ -3,7 +3,7 @@ import {
3
3
  ImpaktHeading,
4
4
  ImpaktStack,
5
5
  ImpaktText
6
- } from "../chunk-DXLEYNID.js";
6
+ } from "../chunk-LVBYNQ45.js";
7
7
  import "../chunk-72WNCCDC.js";
8
8
  import "../chunk-JTCTQBAX.js";
9
9
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktBreadcrumbs,
3
3
  ImpaktNav
4
- } from "../chunk-CFCFKLTN.js";
4
+ } from "../chunk-EA3M6KPB.js";
5
5
  import "../chunk-5OYQZWP2.js";
6
6
  import "../chunk-72WNCCDC.js";
7
7
  import "../chunk-JTCTQBAX.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktPage,
3
3
  ImpaktSection
4
- } from "../chunk-ALFE35FS.js";
4
+ } from "../chunk-QJBRENLI.js";
5
5
  import "../chunk-6WVL3HOC.js";
6
6
  import "../chunk-72WNCCDC.js";
7
7
  import "../chunk-JTCTQBAX.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktRadioGroup
3
- } from "../chunk-2TNF7O43.js";
4
- import "../chunk-HSXLSJVG.js";
3
+ } from "../chunk-LSEK5MEZ.js";
4
+ import "../chunk-PII4SJL5.js";
5
5
  import "../chunk-72WNCCDC.js";
6
6
  import "../chunk-JTCTQBAX.js";
7
7
  export {
@@ -3,7 +3,7 @@ import {
3
3
  ImpaktFilterChip,
4
4
  ImpaktRow,
5
5
  ImpaktStatTile
6
- } from "../chunk-BAYSDP44.js";
6
+ } from "../chunk-EIWICFXL.js";
7
7
  import "../chunk-6CDQSHVW.js";
8
8
  import "../chunk-ZUQ3DOG2.js";
9
9
  import "../chunk-XX6JZW5N.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktSelect
3
- } from "../chunk-4MMRBNW7.js";
4
- import "../chunk-HSXLSJVG.js";
3
+ } from "../chunk-WEX5RKVC.js";
4
+ import "../chunk-PII4SJL5.js";
5
5
  import "../chunk-72WNCCDC.js";
6
6
  import "../chunk-JTCTQBAX.js";
7
7
  export {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpaktSegmentedControl,
3
3
  ImpaktSwitch
4
- } from "../chunk-3KAFK24X.js";
5
- import "../chunk-HSXLSJVG.js";
4
+ } from "../chunk-RNFGIXJ7.js";
5
+ import "../chunk-PII4SJL5.js";
6
6
  import "../chunk-72WNCCDC.js";
7
7
  import "../chunk-JTCTQBAX.js";
8
8
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktTextInput
3
- } from "../chunk-UYTIJCCW.js";
4
- import "../chunk-HSXLSJVG.js";
3
+ } from "../chunk-B2GWXXIW.js";
4
+ import "../chunk-PII4SJL5.js";
5
5
  import "../chunk-5OYQZWP2.js";
6
6
  import "../chunk-72WNCCDC.js";
7
7
  import "../chunk-JTCTQBAX.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpaktTextarea
3
- } from "../chunk-CQT3VPYK.js";
4
- import "../chunk-HSXLSJVG.js";
3
+ } from "../chunk-WT7MHYJR.js";
4
+ import "../chunk-PII4SJL5.js";
5
5
  import "../chunk-72WNCCDC.js";
6
6
  import "../chunk-JTCTQBAX.js";
7
7
  export {