@atomic-ui/ui 0.5.0 → 0.6.0

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.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Standard custom elements, styled only from design tokens, built to WCAG 2.2 AA: the product components every Impakt product uses, and the shared base every element builds on.
4
4
 
5
- The blocks Strata builds sites from, such as the hero, the calculators, the site header and footer and the changelog blocks, are in [`@atomic-ui/strata`](../strata), which builds on this package. They moved there in 0.5.0, under the same tags.
5
+ The section blocks Impakt sites are built from, such as the hero, the calculators, the site header and footer and the changelog blocks, are in [`@atomic-ui/blocks`](../strata), which builds on this package. They moved there in 0.5.0, under the same tags.
6
6
 
7
7
  There is one implementation, in Lit. React, Vue and Angular get thin bindings rather than their own components, because an accessible component is mostly behaviour, such as focus management, roving tabindex and live-region timing, and behaviour written three times is wrong in three different ways ([ADR 0004](https://github.com/matthill8286/strata/blob/main/docs/decisions/0004-lit-plus-wrappers.md)).
8
8
 
@@ -21,7 +21,7 @@ A product with no build step copies one file, `atomic-ui.js`, into its `public`
21
21
  <impakt-button variant="primary">Save and continue</impakt-button>
22
22
  ```
23
23
 
24
- The file is `dist/standalone/atomic-ui.js`, also exported as `@atomic-ui/ui/standalone`. It is one minified ES module holding Lit and every element, and it defines every element when it loads. Its source map sits beside it. At 0.5.0 it is about 160 KB, or 40 KB gzipped. It also exports what this package exports, and Lit's `LitElement`, `html`, `css`, `svg`, `nothing`, `noChange`, `unsafeCSS` and `render`, so that `atomic-ui-strata.js` from `@atomic-ui/strata`, loaded after it from the same folder, imports the base, the product components and Lit from it instead of carrying a second copy. A product that uses the Strata blocks copies both files.
24
+ The file is `dist/standalone/atomic-ui.js`, also exported as `@atomic-ui/ui/standalone`. It is one minified ES module holding Lit and every element, and it defines every element when it loads. Its source map sits beside it. At 0.5.0 it is about 160 KB, or 40 KB gzipped. It also exports what this package exports, and Lit's `LitElement`, `html`, `css`, `svg`, `nothing`, `noChange`, `unsafeCSS` and `render`, so that `atomic-ui-blocks.js` from `@atomic-ui/blocks`, loaded after it from the same folder, imports the base, the product components and Lit from it instead of carrying a second copy. A product that uses the blocks copies both files.
25
25
 
26
26
  To copy it, build the design system and run `pnpm ui:copy ../impkt-tender` at the root, naming the product's folder. A second argument names a folder other than `public`. The first line of the copy names the version and the design system's commit. To update it, build again and run the same command. A product that installs this package from npm can run `npx impakt-ui-copy . public`.
27
27
 
@@ -38,7 +38,7 @@ The app installs this package and the bindings for its framework, and imports th
38
38
  <Table caption="Open cases" columns={columns} rows={rows} stack onSort={(e) => sortBy(e.detail)} />
39
39
  ```
40
40
 
41
- Each binding is thin, and each exists for a different reason. React needs typed events, and before React 19 it needed properties set rather than attributes. Vue needs the `.` prefix hidden and prop types. Angular needs `ControlValueAccessor` directives, without which a reactive form containing one of these controls silently never receives a value. The React and Vue bindings are generated from this package's manifest, so they cover every element. They are generated from `@atomic-ui/strata`'s manifest too, into a separate entry, `@atomic-ui/ui-react/strata` and `@atomic-ui/ui-vue/strata`.
41
+ Each binding is thin, and each exists for a different reason. React needs typed events, and before React 19 it needed properties set rather than attributes. Vue needs the `.` prefix hidden and prop types. Angular needs `ControlValueAccessor` directives, without which a reactive form containing one of these controls silently never receives a value. The React and Vue bindings are generated from this package's manifest, so they cover every element. They are generated from `@atomic-ui/blocks`'s manifest too, into a separate entry, `@atomic-ui/ui-react/blocks` and `@atomic-ui/ui-vue/blocks`.
42
42
 
43
43
  ### The tokens
44
44
 
@@ -66,7 +66,7 @@ Fifty-two elements.
66
66
  | Layout | `impakt-page`, `impakt-section`, `impakt-stack`, `impakt-grid`, `impakt-card`, `impakt-divider`, `impakt-spacer`, `impakt-visually-hidden` |
67
67
  | Type and media | `impakt-heading`, `impakt-text`, `impakt-list`, `impakt-price`, `impakt-icon`, `impakt-image`, `impakt-logo`, `impakt-document-link`, `impakt-avatar`, `impakt-avatar-group` |
68
68
 
69
- It also exports the shared base that `@atomic-ui/strata` and an app's own elements build on: `ImpaktElement` and `FieldElement`, the tokens (`t`, `token`, `space`, `type` and the rest), the style fragments that carry the accessibility guarantees (`focusRing`, `targetSize`, `touchTarget`, `visuallyHidden`, `hideOn`), the wording and locale lookups (`say`, `pageLocale`), the scroll lock, the icons, and the tones (`Tone`, `toneOf`) the chip shares with the changelog blocks.
69
+ It also exports the shared base that `@atomic-ui/blocks` and an app's own elements build on: `ImpaktElement` and `FieldElement`, the tokens (`t`, `token`, `space`, `type` and the rest), the style fragments that carry the accessibility guarantees (`focusRing`, `targetSize`, `touchTarget`, `visuallyHidden`, `hideOn`), the wording and locale lookups (`say`, `pageLocale`), the scroll lock, the icons, and the tones (`Tone`, `toneOf`) the chip shares with the changelog blocks.
70
70
 
71
71
  **A layout puts `impakt-page` at its root.** It gives a page the brand's page width (`layout.page-width`), its side margins on a phone, tablet and desktop (`layout.margin.*`), the header, main and footer landmarks, and a Skip to content link. Without it a page runs edge to edge. `impakt-section` is a band across the whole width of the screen with the content kept to the page width inside it. A product page with its own layout can leave both out.
72
72
 
@@ -109,9 +109,9 @@ These are the parts the products' app screens use most, and the browser suite ho
109
109
 
110
110
  Two suites, split by what each can honestly measure.
111
111
 
112
- `@atomic-ui/strata` runs the same two suites over its blocks.
112
+ `@atomic-ui/blocks` runs the same two suites over its blocks.
113
113
 
114
- **`pnpm --filter @atomic-ui/ui test`** runs in happy-dom, which has no layout engine. It checks what breaks in practice: roles, accessible names, the `describedby` relationships resolved to the text a screen reader would read, keyboard behaviour and form association. axe is restricted to the rules that mean anything without layout. Running the full rule set here would report passes for colour contrast and target size that axe never evaluated. It also checks that nothing in the 0.2.0 manifest has gone, apart from the 37 blocks that moved to `@atomic-ui/strata`, whose own test checks the two manifests together.
114
+ **`pnpm --filter @atomic-ui/ui test`** runs in happy-dom, which has no layout engine. It checks what breaks in practice: roles, accessible names, the `describedby` relationships resolved to the text a screen reader would read, keyboard behaviour and form association. axe is restricted to the rules that mean anything without layout. Running the full rule set here would report passes for colour contrast and target size that axe never evaluated. It also checks that nothing in the 0.2.0 manifest has gone, apart from the 37 blocks that moved to `@atomic-ui/blocks`, whose own test checks the two manifests together.
115
115
 
116
116
  **`pnpm --filter @atomic-ui/ui test:browser`** runs the real library in Chromium. It answers everything the first suite cannot:
117
117
 
@@ -128,7 +128,7 @@ Between the two, no criterion is reported as passing without being evaluated.
128
128
 
129
129
  ## The manifest
130
130
 
131
- `pnpm --filter @atomic-ui/ui manifest` writes `custom-elements.json`, and the package build runs it too. It is one of the two sources the CMS palette is generated from, with `@atomic-ui/strata`'s, and the React and Vue bindings are generated from it. It is checked in so it can be read from a fresh clone, and it is published, as `@atomic-ui/ui/custom-elements.json`. Strata's publish gate checks pages against it, so an element, attribute, property, event or slot can be added but never removed or renamed.
131
+ `pnpm --filter @atomic-ui/ui manifest` writes `custom-elements.json`, and the package build runs it too. It is one of the two sources the CMS palette is generated from, with `@atomic-ui/blocks`'s, and the React and Vue bindings are generated from it. It is checked in so it can be read from a fresh clone, and it is published, as `@atomic-ui/ui/custom-elements.json`. Strata's publish gate checks pages against it, so an element, attribute, property, event or slot can be added but never removed or renamed.
132
132
 
133
133
  Two tags the Custom Elements Manifest spec has no place for, `@category` and `@icon`, are captured by a plugin in `custom-elements-manifest.config.mjs`, so they live on the component rather than in a lookup table somewhere else. Each event's `@fires` tag names the type of its detail, which the bindings use for their event types.
134
134
 
@@ -4,7 +4,7 @@
4
4
  * restyles everything drawn with one.
5
5
  *
6
6
  * It is shared: `impakt-chip` here and the changelog, site and estimator blocks
7
- * in `@atomic-ui/strata` all colour themselves with it.
7
+ * in `@atomic-ui/blocks` all colour themselves with it.
8
8
  */
9
9
  /** A colour for a line or a lane, named by what it is in the brand. */
10
10
  export type NamedTone = 'brand' | 'accent' | 'info' | 'success' | 'warning' | 'danger';
@@ -73,4 +73,4 @@ export {
73
73
  toneOf,
74
74
  ImpaktChip
75
75
  };
76
- //# sourceMappingURL=chunk-FMSC7J7J.js.map
76
+ //# sourceMappingURL=chunk-4ZQTXTPA.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/chip.ts","../src/base/tone.ts"],"sourcesContent":["/**\n * A short label: a branch, a status with its dot, or a code such as a commit\n * hash.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { hideOn } from '../base/styles';\nimport { fontSize, space, t } from '../base/tokens';\nimport { toneOf, type Tone } from '../base/tone';\n\n/** Code-like labels: a branch, a hash, a commit message. */\nconst MONO = t.fontMono;\n\n/**\n * A short label: a branch name with its icon, a status with its dot, or a\n * code such as a commit hash. It says something; it does nothing.\n *\n * @category content\n * @icon badge\n */\nexport class ImpaktChip extends ImpaktElement {\n static properties = {\n label: { type: String },\n meta: { type: String },\n icon: { type: String, reflect: true },\n tone: { type: String },\n look: { type: String, reflect: true },\n hideOn: { type: String, reflect: true, attribute: 'hide-on' },\n };\n declare label: string;\n /** A code after the label, quieter, such as a hash. */\n declare meta: string;\n /** A coloured dot, a branch, or nothing before the label. */\n declare icon: 'none' | 'dot' | 'branch';\n /** The dot's colour: a named tone, or 1 to 5 for the brand's chart colours. */\n declare tone: Tone;\n /** `outlined` on the card colour, `filled` with a faint wash, or `plain` words in the code face. */\n declare look: 'outlined' | 'filled' | 'plain';\n declare hideOn: 'never' | 'phone' | 'wide';\n\n constructor() {\n super();\n this.label = '';\n this.meta = '';\n this.icon = 'none';\n this.tone = 'success';\n this.look = 'filled';\n this.hideOn = 'never';\n }\n\n static styles = [...ImpaktElement.styles, hideOn, css`\n :host { display: inline-flex; flex: none; }\n span.chip { display: inline-flex; align-items: center; gap: ${space(1.5)}; padding: 3px ${space(2.5)}; border-radius: 999px; font-family: ${MONO}; font-size: ${fontSize('xs')}; line-height: 1.2; white-space: nowrap; }\n :host([look='filled']) span.chip { border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 7%, transparent); }\n :host([look='outlined']) span.chip { border: ${t.borderThin} solid ${t.border}; background: ${t.surfaceCard}; text-transform: uppercase; letter-spacing: 0.04em; }\n :host([look='plain']) span.chip { padding: 0; }\n .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--tone); }\n svg { inline-size: 12px; block-size: 12px; }\n .meta { opacity: 0.72; text-transform: none; }\n :host([look='plain']) .label { opacity: 0.72; }\n `];\n\n render(): TemplateResult {\n const icon = this.icon === 'dot'\n ? html`<span class=\"dot\" aria-hidden=\"true\"></span>`\n : this.icon === 'branch'\n ? html`<svg viewBox=\"0 0 14 14\" aria-hidden=\"true\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><circle cx=\"3.5\" cy=\"3\" r=\"1.5\"/><circle cx=\"3.5\" cy=\"11\" r=\"1.5\"/><circle cx=\"10.5\" cy=\"4.5\" r=\"1.5\"/><path d=\"M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4\"/></svg>`\n : nothing;\n return html`<span class=\"chip\" part=\"chip\" style=${`--tone:${toneOf(this.tone, 0)}`}>${icon}<span class=\"label\">${this.label}</span>${this.meta ? html` <span class=\"meta\">${this.meta}</span>` : nothing}</span>`;\n }\n}\n\ncustomElements.define('impakt-chip', ImpaktChip);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-chip': ImpaktChip;\n }\n}\n","/**\n * Colours named by what they are in the brand, for a line, a lane, a dot or a\n * stripe. A tone is a brand token, never a hex value, so a partner's brand\n * restyles everything drawn with one.\n *\n * It is shared: `impakt-chip` here and the changelog, site and estimator blocks\n * in `@atomic-ui/strata` all colour themselves with it.\n */\n\n/** A colour for a line or a lane, named by what it is in the brand. */\nexport type NamedTone = 'brand' | 'accent' | 'info' | 'success' | 'warning' | 'danger';\n/** A named tone, or 1 to 5 for the brand's chart colours in order. */\nexport type Tone = NamedTone | 1 | 2 | 3 | 4 | 5;\nexport const TONE: Record<NamedTone, string> = {\n brand: 'var(--impakt-color-brand-default, #1f4ed8)',\n accent: 'var(--impakt-color-accent-default, #c8a15a)',\n info: 'var(--impakt-color-status-info-default, #1f4ed8)',\n success: 'var(--impakt-color-status-success-default, #047857)',\n warning: 'var(--impakt-color-status-warning-default, #b45309)',\n danger: 'var(--impakt-color-status-danger-default, #c8102e)',\n};\n/** When an item names no tone, lanes take these in turn. */\nexport const CYCLE: NamedTone[] = ['success', 'info', 'warning', 'accent', 'danger', 'brand'];\n/**\n * A named tone, or for an item that names none, the brand's chart colour for its\n * place (color.chart.1 to 5), falling back to the status colours in turn.\n */\nexport const toneOf = (tone: Tone | undefined, i: number): string => {\n if (typeof tone === 'number') return `var(--impakt-color-chart-${tone}, ${TONE[CYCLE[(tone - 1) % CYCLE.length]!]})`;\n if (tone && tone in TONE) return TONE[tone];\n return `var(--impakt-color-chart-${(i % 5) + 1}, ${TONE[CYCLE[i % CYCLE.length]!]})`;\n};\n"],"mappings":";;;;;;;;;AAIA,SAAS,KAAK,MAAM,eAAoC;;;ACSjD,IAAM,OAAkC;AAAA,EAC7C,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,IAAM,QAAqB,CAAC,WAAW,QAAQ,WAAW,UAAU,UAAU,OAAO;AAKrF,IAAM,SAAS,CAAC,MAAwB,MAAsB;AACnE,MAAI,OAAO,SAAS,SAAU,QAAO,4BAA4B,IAAI,KAAK,KAAK,OAAO,OAAO,KAAK,MAAM,MAAM,CAAE,CAAC;AACjH,MAAI,QAAQ,QAAQ,KAAM,QAAO,KAAK,IAAI;AAC1C,SAAO,4BAA6B,IAAI,IAAK,CAAC,KAAK,KAAK,MAAM,IAAI,MAAM,MAAM,CAAE,CAAC;AACnF;;;ADpBA,IAAM,OAAO,EAAE;AASR,IAAM,aAAN,cAAyB,cAAc;AAAA,EAC5C;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,MAAM,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACpC,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,MAAM,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACpC,QAAQ,EAAE,MAAM,QAAQ,SAAS,MAAM,WAAW,UAAU;AAAA,IAC9D;AAAA;AAAA,EAYA,cAAc;AACZ,UAAM;AACN,SAAK,QAAQ;AACb,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,SAAS;AAAA,EAChB;AAAA,EAEA;AAAA,SAAO,SAAS,CAAC,GAAG,cAAc,QAAQ,QAAQ;AAAA;AAAA,kEAEc,MAAM,GAAG,CAAC,kBAAkB,MAAM,GAAG,CAAC,wCAAwC,IAAI,gBAAgB,SAAS,IAAI,CAAC;AAAA,wDAC1H,EAAE,MAAM;AAAA,mDACb,EAAE,UAAU,UAAU,EAAE,MAAM,iBAAiB,EAAE,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAM5G;AAAA;AAAA,EAED,SAAyB;AACvB,UAAM,OAAO,KAAK,SAAS,QACvB,qDACA,KAAK,SAAS,WACZ,oQACA;AACN,WAAO,4CAA4C,UAAU,OAAO,KAAK,MAAM,CAAC,CAAC,EAAE,IAAI,IAAI,uBAAuB,KAAK,KAAK,UAAU,KAAK,OAAO,2BAA2B,KAAK,IAAI,YAAY,OAAO;AAAA,EAC3M;AACF;AAEA,eAAe,OAAO,eAAe,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/components/chip.ts","../src/base/tone.ts"],"sourcesContent":["/**\n * A short label: a branch, a status with its dot, or a code such as a commit\n * hash.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { hideOn } from '../base/styles';\nimport { fontSize, space, t } from '../base/tokens';\nimport { toneOf, type Tone } from '../base/tone';\n\n/** Code-like labels: a branch, a hash, a commit message. */\nconst MONO = t.fontMono;\n\n/**\n * A short label: a branch name with its icon, a status with its dot, or a\n * code such as a commit hash. It says something; it does nothing.\n *\n * @category content\n * @icon badge\n */\nexport class ImpaktChip extends ImpaktElement {\n static properties = {\n label: { type: String },\n meta: { type: String },\n icon: { type: String, reflect: true },\n tone: { type: String },\n look: { type: String, reflect: true },\n hideOn: { type: String, reflect: true, attribute: 'hide-on' },\n };\n declare label: string;\n /** A code after the label, quieter, such as a hash. */\n declare meta: string;\n /** A coloured dot, a branch, or nothing before the label. */\n declare icon: 'none' | 'dot' | 'branch';\n /** The dot's colour: a named tone, or 1 to 5 for the brand's chart colours. */\n declare tone: Tone;\n /** `outlined` on the card colour, `filled` with a faint wash, or `plain` words in the code face. */\n declare look: 'outlined' | 'filled' | 'plain';\n declare hideOn: 'never' | 'phone' | 'wide';\n\n constructor() {\n super();\n this.label = '';\n this.meta = '';\n this.icon = 'none';\n this.tone = 'success';\n this.look = 'filled';\n this.hideOn = 'never';\n }\n\n static styles = [...ImpaktElement.styles, hideOn, css`\n :host { display: inline-flex; flex: none; }\n span.chip { display: inline-flex; align-items: center; gap: ${space(1.5)}; padding: 3px ${space(2.5)}; border-radius: 999px; font-family: ${MONO}; font-size: ${fontSize('xs')}; line-height: 1.2; white-space: nowrap; }\n :host([look='filled']) span.chip { border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 7%, transparent); }\n :host([look='outlined']) span.chip { border: ${t.borderThin} solid ${t.border}; background: ${t.surfaceCard}; text-transform: uppercase; letter-spacing: 0.04em; }\n :host([look='plain']) span.chip { padding: 0; }\n .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--tone); }\n svg { inline-size: 12px; block-size: 12px; }\n .meta { opacity: 0.72; text-transform: none; }\n :host([look='plain']) .label { opacity: 0.72; }\n `];\n\n render(): TemplateResult {\n const icon = this.icon === 'dot'\n ? html`<span class=\"dot\" aria-hidden=\"true\"></span>`\n : this.icon === 'branch'\n ? html`<svg viewBox=\"0 0 14 14\" aria-hidden=\"true\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><circle cx=\"3.5\" cy=\"3\" r=\"1.5\"/><circle cx=\"3.5\" cy=\"11\" r=\"1.5\"/><circle cx=\"10.5\" cy=\"4.5\" r=\"1.5\"/><path d=\"M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4\"/></svg>`\n : nothing;\n return html`<span class=\"chip\" part=\"chip\" style=${`--tone:${toneOf(this.tone, 0)}`}>${icon}<span class=\"label\">${this.label}</span>${this.meta ? html` <span class=\"meta\">${this.meta}</span>` : nothing}</span>`;\n }\n}\n\ncustomElements.define('impakt-chip', ImpaktChip);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-chip': ImpaktChip;\n }\n}\n","/**\n * Colours named by what they are in the brand, for a line, a lane, a dot or a\n * stripe. A tone is a brand token, never a hex value, so a partner's brand\n * restyles everything drawn with one.\n *\n * It is shared: `impakt-chip` here and the changelog, site and estimator blocks\n * in `@atomic-ui/blocks` all colour themselves with it.\n */\n\n/** A colour for a line or a lane, named by what it is in the brand. */\nexport type NamedTone = 'brand' | 'accent' | 'info' | 'success' | 'warning' | 'danger';\n/** A named tone, or 1 to 5 for the brand's chart colours in order. */\nexport type Tone = NamedTone | 1 | 2 | 3 | 4 | 5;\nexport const TONE: Record<NamedTone, string> = {\n brand: 'var(--impakt-color-brand-default, #1f4ed8)',\n accent: 'var(--impakt-color-accent-default, #c8a15a)',\n info: 'var(--impakt-color-status-info-default, #1f4ed8)',\n success: 'var(--impakt-color-status-success-default, #047857)',\n warning: 'var(--impakt-color-status-warning-default, #b45309)',\n danger: 'var(--impakt-color-status-danger-default, #c8102e)',\n};\n/** When an item names no tone, lanes take these in turn. */\nexport const CYCLE: NamedTone[] = ['success', 'info', 'warning', 'accent', 'danger', 'brand'];\n/**\n * A named tone, or for an item that names none, the brand's chart colour for its\n * place (color.chart.1 to 5), falling back to the status colours in turn.\n */\nexport const toneOf = (tone: Tone | undefined, i: number): string => {\n if (typeof tone === 'number') return `var(--impakt-color-chart-${tone}, ${TONE[CYCLE[(tone - 1) % CYCLE.length]!]})`;\n if (tone && tone in TONE) return TONE[tone];\n return `var(--impakt-color-chart-${(i % 5) + 1}, ${TONE[CYCLE[i % CYCLE.length]!]})`;\n};\n"],"mappings":";;;;;;;;;AAIA,SAAS,KAAK,MAAM,eAAoC;;;ACSjD,IAAM,OAAkC;AAAA,EAC7C,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,IAAM,QAAqB,CAAC,WAAW,QAAQ,WAAW,UAAU,UAAU,OAAO;AAKrF,IAAM,SAAS,CAAC,MAAwB,MAAsB;AACnE,MAAI,OAAO,SAAS,SAAU,QAAO,4BAA4B,IAAI,KAAK,KAAK,OAAO,OAAO,KAAK,MAAM,MAAM,CAAE,CAAC;AACjH,MAAI,QAAQ,QAAQ,KAAM,QAAO,KAAK,IAAI;AAC1C,SAAO,4BAA6B,IAAI,IAAK,CAAC,KAAK,KAAK,MAAM,IAAI,MAAM,MAAM,CAAE,CAAC;AACnF;;;ADpBA,IAAM,OAAO,EAAE;AASR,IAAM,aAAN,cAAyB,cAAc;AAAA,EAC5C;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,MAAM,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACpC,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,MAAM,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACpC,QAAQ,EAAE,MAAM,QAAQ,SAAS,MAAM,WAAW,UAAU;AAAA,IAC9D;AAAA;AAAA,EAYA,cAAc;AACZ,UAAM;AACN,SAAK,QAAQ;AACb,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,SAAS;AAAA,EAChB;AAAA,EAEA;AAAA,SAAO,SAAS,CAAC,GAAG,cAAc,QAAQ,QAAQ;AAAA;AAAA,kEAEc,MAAM,GAAG,CAAC,kBAAkB,MAAM,GAAG,CAAC,wCAAwC,IAAI,gBAAgB,SAAS,IAAI,CAAC;AAAA,wDAC1H,EAAE,MAAM;AAAA,mDACb,EAAE,UAAU,UAAU,EAAE,MAAM,iBAAiB,EAAE,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAM5G;AAAA;AAAA,EAED,SAAyB;AACvB,UAAM,OAAO,KAAK,SAAS,QACvB,qDACA,KAAK,SAAS,WACZ,oQACA;AACN,WAAO,4CAA4C,UAAU,OAAO,KAAK,MAAM,CAAC,CAAC,EAAE,IAAI,IAAI,uBAAuB,KAAK,KAAK,UAAU,KAAK,OAAO,2BAA2B,KAAK,IAAI,YAAY,OAAO;AAAA,EAC3M;AACF;AAEA,eAAe,OAAO,eAAe,UAAU;","names":[]}
@@ -76,7 +76,7 @@ var ImpaktTextarea = class extends FieldElement {
76
76
  if (this.value) return;
77
77
  let saved = null;
78
78
  try {
79
- saved = sessionStorage.getItem("strata.estimate");
79
+ saved = sessionStorage.getItem("impakt.estimate");
80
80
  } catch {
81
81
  saved = null;
82
82
  }
@@ -115,4 +115,4 @@ customElements.define("impakt-textarea", ImpaktTextarea);
115
115
  export {
116
116
  ImpaktTextarea
117
117
  };
118
- //# sourceMappingURL=chunk-ACQ4KYPR.js.map
118
+ //# sourceMappingURL=chunk-KFAGXPIK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/textarea.ts"],"sourcesContent":["import { html, css, nothing, type TemplateResult } from 'lit';\nimport { FieldElement, fieldWidths } from '../base/FieldElement';\nimport { fontSize, space, t } from '../base/tokens';\n\n/** Several lines of text — a delivery instruction, an additional note.\n *\n * @category form\n * @icon field\n */\nexport class ImpaktTextarea extends FieldElement {\n static properties = {\n ...FieldElement.properties,\n width: { type: String, reflect: true },\n rows: { type: Number },\n maxlength: { type: Number },\n fillFrom: { type: String, attribute: 'fill-from' },\n };\n\n declare rows: number;\n declare maxlength: number | undefined;\n /** `estimate` starts an empty box with the estimate a cost estimator sent on, so the visitor can edit it. */\n declare fillFrom: 'none' | 'estimate';\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\n constructor() {\n super();\n this.width = 'full';\n this.rows = 4;\n this.maxlength = undefined;\n this.fillFrom = 'none';\n }\n\n static styles = [\n ...FieldElement.styles,\n fieldWidths,\n css`\n textarea {\n inline-size: min(100%, var(--impakt-field-width));\n padding: ${space(2.5)} ${space(3)};\n font-family: inherit;\n font-size: ${fontSize('md')};\n color: ${t.text};\n background: var(--impakt-color-field-surface, ${t.surfaceCard});\n border: ${t.borderThin} solid ${t.border};\n border-radius: ${t.radiusLg};\n box-shadow: var(--impakt-shadow-field, ${t.shadowXs});\n transition: border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;\n /* Resizing is left on deliberately. 1.4.4 and 1.4.12 both assume text\n can be made bigger, and a fixed box is where that stops working. */\n resize: vertical;\n }\n textarea:hover:not(:disabled) {\n border-color: ${t.borderStrong};\n }\n textarea:focus-visible {\n border-color: ${t.brand};\n box-shadow: ${t.focusShadow}, 0 0 0 6px ${t.brandHalo};\n }\n :host([invalid]) textarea {\n border-color: ${t.danger};\n border-width: ${t.borderThick};\n }\n `,\n ];\n\n private filled = false;\n /** The estimate it was filled with, kept until the visitor edits it, so a binding that has not caught up yet cannot empty the box. */\n private filledText = '';\n\n /** @ignore */\n protected willUpdate(changed: Map<string, unknown>): void {\n super.willUpdate?.(changed as never);\n if (this.filledText && changed.has('value') && !this.value) this.value = this.filledText;\n }\n\n /** Fills the box once, when it is first asked to and is still empty. Props can arrive after the element joins the page. */\n private fill(): void {\n if (this.filled || this.fillFrom !== 'estimate') return;\n this.filled = true;\n if (this.value) return;\n let saved: string | null = null;\n try { saved = sessionStorage.getItem('strata.estimate'); } catch { saved = null; }\n if (saved) { this.filledText = saved; this.setFormValue(saved); }\n }\n\n protected renderControl(): TemplateResult {\n return html`\n <textarea\n id=${this.controlId}\n part=\"textarea\"\n name=${this.name || nothing}\n rows=${this.rows}\n maxlength=${this.maxlength ?? nothing}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n aria-describedby=${this.describedBy}\n aria-invalid=${this.error ? 'true' : nothing}\n @input=${(e: Event) => { this.filledText = ''; this.setFormValue((e.target as HTMLTextAreaElement).value); }}\n >${this.value}</textarea>\n `;\n }\n\n updated(changed: Map<string, unknown>): void {\n if (changed.has('error')) this.toggleAttribute('invalid', Boolean(this.error));\n this.fill();\n }\n}\n\ncustomElements.define('impakt-textarea', ImpaktTextarea);\n\ndeclare global {\n interface HTMLElementTagNameMap { 'impakt-textarea': ImpaktTextarea }\n}\n"],"mappings":";;;;;;;;;;;AAAA,SAAS,MAAM,KAAK,eAAoC;AASjD,IAAM,iBAAN,cAA6B,aAAa;AAAA,EAiB/C,cAAc;AACZ,UAAM;AAwCR,SAAQ,SAAS;AAEjB;AAAA,SAAQ,aAAa;AAzCnB,SAAK,QAAQ;AACb,SAAK,OAAO;AACZ,SAAK,YAAY;AACjB,SAAK,WAAW;AAAA,EAClB;AAAA,EAtBA;AAAA,SAAO,aAAa;AAAA,MAClB,GAAG,aAAa;AAAA,MAChB,OAAO,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACrC,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,WAAW,EAAE,MAAM,OAAO;AAAA,MAC1B,UAAU,EAAE,MAAM,QAAQ,WAAW,YAAY;AAAA,IACnD;AAAA;AAAA,EAkBA;AAAA,SAAO,SAAS;AAAA,MACd,GAAG,aAAa;AAAA,MAChB;AAAA,MACA;AAAA;AAAA;AAAA,mBAGe,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC;AAAA;AAAA,qBAEpB,SAAS,IAAI,CAAC;AAAA,iBAClB,EAAE,IAAI;AAAA,wDACiC,EAAE,WAAW;AAAA,kBACnD,EAAE,UAAU,UAAU,EAAE,MAAM;AAAA,yBACvB,EAAE,QAAQ;AAAA,iDACc,EAAE,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAOnC,EAAE,YAAY;AAAA;AAAA;AAAA,wBAGd,EAAE,KAAK;AAAA,sBACT,EAAE,WAAW,eAAe,EAAE,SAAS;AAAA;AAAA;AAAA,wBAGrC,EAAE,MAAM;AAAA,wBACR,EAAE,WAAW;AAAA;AAAA;AAAA,IAGnC;AAAA;AAAA;AAAA,EAOU,WAAW,SAAqC;AACxD,UAAM,aAAa,OAAgB;AACnC,QAAI,KAAK,cAAc,QAAQ,IAAI,OAAO,KAAK,CAAC,KAAK,MAAO,MAAK,QAAQ,KAAK;AAAA,EAChF;AAAA;AAAA,EAGQ,OAAa;AACnB,QAAI,KAAK,UAAU,KAAK,aAAa,WAAY;AACjD,SAAK,SAAS;AACd,QAAI,KAAK,MAAO;AAChB,QAAI,QAAuB;AAC3B,QAAI;AAAE,cAAQ,eAAe,QAAQ,iBAAiB;AAAA,IAAG,QAAQ;AAAE,cAAQ;AAAA,IAAM;AACjF,QAAI,OAAO;AAAE,WAAK,aAAa;AAAO,WAAK,aAAa,KAAK;AAAA,IAAG;AAAA,EAClE;AAAA,EAEU,gBAAgC;AACxC,WAAO;AAAA;AAAA,aAEE,KAAK,SAAS;AAAA;AAAA,eAEZ,KAAK,QAAQ,OAAO;AAAA,eACpB,KAAK,IAAI;AAAA,oBACJ,KAAK,aAAa,OAAO;AAAA,oBACzB,KAAK,QAAQ;AAAA,oBACb,KAAK,QAAQ;AAAA,oBACb,KAAK,QAAQ;AAAA,2BACN,KAAK,WAAW;AAAA,uBACpB,KAAK,QAAQ,SAAS,OAAO;AAAA,iBACnC,CAAC,MAAa;AAAE,WAAK,aAAa;AAAI,WAAK,aAAc,EAAE,OAA+B,KAAK;AAAA,IAAG,CAAC;AAAA,SAC3G,KAAK,KAAK;AAAA;AAAA,EAEjB;AAAA,EAEA,QAAQ,SAAqC;AAC3C,QAAI,QAAQ,IAAI,OAAO,EAAG,MAAK,gBAAgB,WAAW,QAAQ,KAAK,KAAK,CAAC;AAC7E,SAAK,KAAK;AAAA,EACZ;AACF;AAEA,eAAe,OAAO,mBAAmB,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/components/textarea.ts"],"sourcesContent":["import { html, css, nothing, type TemplateResult } from 'lit';\nimport { FieldElement, fieldWidths } from '../base/FieldElement';\nimport { fontSize, space, t } from '../base/tokens';\n\n/** Several lines of text — a delivery instruction, an additional note.\n *\n * @category form\n * @icon field\n */\nexport class ImpaktTextarea extends FieldElement {\n static properties = {\n ...FieldElement.properties,\n width: { type: String, reflect: true },\n rows: { type: Number },\n maxlength: { type: Number },\n fillFrom: { type: String, attribute: 'fill-from' },\n };\n\n declare rows: number;\n declare maxlength: number | undefined;\n /** `estimate` starts an empty box with the estimate a cost estimator sent on, so the visitor can edit it. */\n declare fillFrom: 'none' | 'estimate';\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\n constructor() {\n super();\n this.width = 'full';\n this.rows = 4;\n this.maxlength = undefined;\n this.fillFrom = 'none';\n }\n\n static styles = [\n ...FieldElement.styles,\n fieldWidths,\n css`\n textarea {\n inline-size: min(100%, var(--impakt-field-width));\n padding: ${space(2.5)} ${space(3)};\n font-family: inherit;\n font-size: ${fontSize('md')};\n color: ${t.text};\n background: var(--impakt-color-field-surface, ${t.surfaceCard});\n border: ${t.borderThin} solid ${t.border};\n border-radius: ${t.radiusLg};\n box-shadow: var(--impakt-shadow-field, ${t.shadowXs});\n transition: border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;\n /* Resizing is left on deliberately. 1.4.4 and 1.4.12 both assume text\n can be made bigger, and a fixed box is where that stops working. */\n resize: vertical;\n }\n textarea:hover:not(:disabled) {\n border-color: ${t.borderStrong};\n }\n textarea:focus-visible {\n border-color: ${t.brand};\n box-shadow: ${t.focusShadow}, 0 0 0 6px ${t.brandHalo};\n }\n :host([invalid]) textarea {\n border-color: ${t.danger};\n border-width: ${t.borderThick};\n }\n `,\n ];\n\n private filled = false;\n /** The estimate it was filled with, kept until the visitor edits it, so a binding that has not caught up yet cannot empty the box. */\n private filledText = '';\n\n /** @ignore */\n protected willUpdate(changed: Map<string, unknown>): void {\n super.willUpdate?.(changed as never);\n if (this.filledText && changed.has('value') && !this.value) this.value = this.filledText;\n }\n\n /** Fills the box once, when it is first asked to and is still empty. Props can arrive after the element joins the page. */\n private fill(): void {\n if (this.filled || this.fillFrom !== 'estimate') return;\n this.filled = true;\n if (this.value) return;\n let saved: string | null = null;\n try { saved = sessionStorage.getItem('impakt.estimate'); } catch { saved = null; }\n if (saved) { this.filledText = saved; this.setFormValue(saved); }\n }\n\n protected renderControl(): TemplateResult {\n return html`\n <textarea\n id=${this.controlId}\n part=\"textarea\"\n name=${this.name || nothing}\n rows=${this.rows}\n maxlength=${this.maxlength ?? nothing}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n aria-describedby=${this.describedBy}\n aria-invalid=${this.error ? 'true' : nothing}\n @input=${(e: Event) => { this.filledText = ''; this.setFormValue((e.target as HTMLTextAreaElement).value); }}\n >${this.value}</textarea>\n `;\n }\n\n updated(changed: Map<string, unknown>): void {\n if (changed.has('error')) this.toggleAttribute('invalid', Boolean(this.error));\n this.fill();\n }\n}\n\ncustomElements.define('impakt-textarea', ImpaktTextarea);\n\ndeclare global {\n interface HTMLElementTagNameMap { 'impakt-textarea': ImpaktTextarea }\n}\n"],"mappings":";;;;;;;;;;;AAAA,SAAS,MAAM,KAAK,eAAoC;AASjD,IAAM,iBAAN,cAA6B,aAAa;AAAA,EAiB/C,cAAc;AACZ,UAAM;AAwCR,SAAQ,SAAS;AAEjB;AAAA,SAAQ,aAAa;AAzCnB,SAAK,QAAQ;AACb,SAAK,OAAO;AACZ,SAAK,YAAY;AACjB,SAAK,WAAW;AAAA,EAClB;AAAA,EAtBA;AAAA,SAAO,aAAa;AAAA,MAClB,GAAG,aAAa;AAAA,MAChB,OAAO,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACrC,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,WAAW,EAAE,MAAM,OAAO;AAAA,MAC1B,UAAU,EAAE,MAAM,QAAQ,WAAW,YAAY;AAAA,IACnD;AAAA;AAAA,EAkBA;AAAA,SAAO,SAAS;AAAA,MACd,GAAG,aAAa;AAAA,MAChB;AAAA,MACA;AAAA;AAAA;AAAA,mBAGe,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC;AAAA;AAAA,qBAEpB,SAAS,IAAI,CAAC;AAAA,iBAClB,EAAE,IAAI;AAAA,wDACiC,EAAE,WAAW;AAAA,kBACnD,EAAE,UAAU,UAAU,EAAE,MAAM;AAAA,yBACvB,EAAE,QAAQ;AAAA,iDACc,EAAE,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAOnC,EAAE,YAAY;AAAA;AAAA;AAAA,wBAGd,EAAE,KAAK;AAAA,sBACT,EAAE,WAAW,eAAe,EAAE,SAAS;AAAA;AAAA;AAAA,wBAGrC,EAAE,MAAM;AAAA,wBACR,EAAE,WAAW;AAAA;AAAA;AAAA,IAGnC;AAAA;AAAA;AAAA,EAOU,WAAW,SAAqC;AACxD,UAAM,aAAa,OAAgB;AACnC,QAAI,KAAK,cAAc,QAAQ,IAAI,OAAO,KAAK,CAAC,KAAK,MAAO,MAAK,QAAQ,KAAK;AAAA,EAChF;AAAA;AAAA,EAGQ,OAAa;AACnB,QAAI,KAAK,UAAU,KAAK,aAAa,WAAY;AACjD,SAAK,SAAS;AACd,QAAI,KAAK,MAAO;AAChB,QAAI,QAAuB;AAC3B,QAAI;AAAE,cAAQ,eAAe,QAAQ,iBAAiB;AAAA,IAAG,QAAQ;AAAE,cAAQ;AAAA,IAAM;AACjF,QAAI,OAAO;AAAE,WAAK,aAAa;AAAO,WAAK,aAAa,KAAK;AAAA,IAAG;AAAA,EAClE;AAAA,EAEU,gBAAgC;AACxC,WAAO;AAAA;AAAA,aAEE,KAAK,SAAS;AAAA;AAAA,eAEZ,KAAK,QAAQ,OAAO;AAAA,eACpB,KAAK,IAAI;AAAA,oBACJ,KAAK,aAAa,OAAO;AAAA,oBACzB,KAAK,QAAQ;AAAA,oBACb,KAAK,QAAQ;AAAA,oBACb,KAAK,QAAQ;AAAA,2BACN,KAAK,WAAW;AAAA,uBACpB,KAAK,QAAQ,SAAS,OAAO;AAAA,iBACnC,CAAC,MAAa;AAAE,WAAK,aAAa;AAAI,WAAK,aAAc,EAAE,OAA+B,KAAK;AAAA,IAAG,CAAC;AAAA,SAC3G,KAAK,KAAK;AAAA;AAAA,EAEjB;AAAA,EAEA,QAAQ,SAAqC;AAC3C,QAAI,QAAQ,IAAI,OAAO,EAAG,MAAK,gBAAgB,WAAW,QAAQ,KAAK,KAAK,CAAC;AAC7E,SAAK,KAAK;AAAA,EACZ;AACF;AAEA,eAAe,OAAO,mBAAmB,cAAc;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ImpaktChip
3
- } from "../chunk-FMSC7J7J.js";
3
+ } from "../chunk-4ZQTXTPA.js";
4
4
  import "../chunk-YR6T73GY.js";
5
5
  export {
6
6
  ImpaktChip
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ImpaktTextarea
3
- } from "../chunk-ACQ4KYPR.js";
3
+ } from "../chunk-KFAGXPIK.js";
4
4
  import "../chunk-5ZQVL3V2.js";
5
5
  import "../chunk-YR6T73GY.js";
6
6
  export {
package/dist/index.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * populate and no provider to mount, which is what lets the same build serve
7
7
  * React, Vue, Angular and the CMS preview without four integrations.
8
8
  *
9
- * These are the product components. The blocks Strata builds sites from, such
10
- * as the hero, the calculators and the site header, are in `@atomic-ui/strata`,
9
+ * These are the product components. The section blocks Impakt sites are built from, such
10
+ * as the hero, the calculators and the site header, are in `@atomic-ui/blocks`,
11
11
  * which builds on the base exported here.
12
12
  */
13
13
  export { ImpaktButton } from './components/button';
@@ -41,7 +41,7 @@ export { ImpaktFieldset } from './components/fieldset';
41
41
  export { ImpaktDrawer, ImpaktToast, ImpaktMenu, ImpaktPagination, ImpaktAvatar, ImpaktAvatarGroup, ImpaktEmptyState, ImpaktSlotPicker, type MenuItem, type AvatarItem, type SlotDay } from './components/app-ui';
42
42
  export { ImpaktAddressLookup, ImpaktErrorSummary, ImpaktFileUpload, ImpaktMoneyInput, ImpaktRangeInput, ImpaktTaskList, groupDigits, type AddressItem, type ErrorItem, type TaskItem } from './components/journey';
43
43
  /**
44
- * The shared base, which `@atomic-ui/strata` and an app's own elements build on:
44
+ * The shared base, which `@atomic-ui/blocks` and an app's own elements build on:
45
45
  * the base classes, the tokens, the style fragments that carry the accessibility
46
46
  * guarantees, the wording and locale lookups, the scroll lock and the tones.
47
47
  */
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-Z45LY6BT.js";
19
19
  import {
20
20
  ImpaktTextarea
21
- } from "./chunk-ACQ4KYPR.js";
21
+ } from "./chunk-KFAGXPIK.js";
22
22
  import {
23
23
  ImpaktAddressLookup,
24
24
  ImpaktErrorSummary,
@@ -64,7 +64,7 @@ import {
64
64
  ImpaktChip,
65
65
  TONE,
66
66
  toneOf
67
- } from "./chunk-FMSC7J7J.js";
67
+ } from "./chunk-4ZQTXTPA.js";
68
68
  import {
69
69
  ImpaktDateInput
70
70
  } from "./chunk-XU2XODVH.js";
@@ -1,4 +1,4 @@
1
- /* @atomic-ui/ui version 0.5.0, standalone. */
1
+ /* @atomic-ui/ui version 0.6.0, standalone. */
2
2
  var de=globalThis,ce=de.ShadowRoot&&(de.ShadyCSS===void 0||de.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),Mt=new WeakMap,G=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==lt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o,i=this.t;if(ce&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=Mt.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Mt.set(i,e))}return e}toString(){return this.cssText}},_=a=>new G(typeof a=="string"?a:a+"",void 0,lt),p=(a,...e)=>{let i=a.length===1?a[0]:e.reduce((r,n,d)=>r+(h=>{if(h._$cssResult$===!0)return h.cssText;if(typeof h=="number")return h;throw Error("Value passed to 'css' function must be a 'css' function result: "+h+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+a[d+1],a[0]);return new G(i,a,lt)},At=(a,e)=>{if(ce)a.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),n=de.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,a.appendChild(r)}},dt=ce?a=>a:a=>a instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return _(i)})(a):a;var{is:Gt,defineProperty:Yt,getOwnPropertyDescriptor:Zt,getOwnPropertyNames:Jt,getOwnPropertySymbols:Qt,getPrototypeOf:ei}=Object,pe=globalThis,Rt=pe.trustedTypes,ti=Rt?Rt.emptyScript:"",ii=pe.reactiveElementPolyfillSupport,Y=(a,e)=>a,ct={toAttribute(a,e){switch(e){case Boolean:a=a?ti:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,e){let i=a;switch(e){case Boolean:i=a!==null;break;case Number:i=a===null?null:Number(a);break;case Object:case Array:try{i=JSON.parse(a)}catch{i=null}}return i}},Ct=(a,e)=>!Gt(a,e),_t={attribute:!0,type:String,converter:ct,reflect:!1,useDefault:!1,hasChanged:Ct};Symbol.metadata??=Symbol("metadata"),pe.litPropertyMetadata??=new WeakMap;var B=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=_t){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,i);n!==void 0&&Yt(this.prototype,e,n)}}static getPropertyDescriptor(e,i,r){let{get:n,set:d}=Zt(this.prototype,e)??{get(){return this[i]},set(h){this[i]=h}};return{get:n,set(h){let y=n?.call(this);d?.call(this,h),this.requestUpdate(e,y,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_t}static _$Ei(){if(this.hasOwnProperty(Y("elementProperties")))return;let e=ei(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Y("properties"))){let i=this.properties,r=[...Jt(i),...Qt(i)];for(let n of r)this.createProperty(n,i[n])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[r,n]of i)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let n=this._$Eu(i,r);n!==void 0&&this._$Eh.set(n,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let n of r)i.unshift(dt(n))}else e!==void 0&&i.push(dt(e));return i}static _$Eu(e,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,i=this.constructor.elementProperties;for(let r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return At(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){let d=(r.converter?.toAttribute!==void 0?r.converter:ct).toAttribute(i,r.type);this._$Em=e,d==null?this.removeAttribute(n):this.setAttribute(n,d),this._$Em=null}}_$AK(e,i){let r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let d=r.getPropertyOptions(n),h=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:ct;this._$Em=n;let y=h.fromAttribute(i,d.type);this[n]=y??this._$Ej?.get(n)??y,this._$Em=null}}requestUpdate(e,i,r,n=!1,d){if(e!==void 0){let h=this.constructor;if(n===!1&&(d=this[e]),r??=h.getPropertyOptions(e),!((r.hasChanged??Ct)(d,i)||r.useDefault&&r.reflect&&d===this._$Ej?.get(e)&&!this.hasAttribute(h._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:n,wrapped:d},h){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,h??i??this[e]),d!==!0||h!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,d]of this._$Ep)this[n]=d;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,d]of r){let{wrapped:h}=d,y=this[n];h!==!0||this._$AL.has(n)||y===void 0||this.C(n,void 0,d,y)}}let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach(i=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(i=>this._$ET(i,this[i])),this._$EM()}updated(e){}firstUpdated(e){}};B.elementStyles=[],B.shadowRootOptions={mode:"open"},B[Y("elementProperties")]=new Map,B[Y("finalized")]=new Map,ii?.({ReactiveElement:B}),(pe.reactiveElementVersions??=[]).push("2.1.2");var ft=globalThis,Lt=a=>a,he=ft.trustedTypes,It=he?he.createPolicy("lit-html",{createHTML:a=>a}):void 0,Dt="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,qt="?"+P,ri=`<${qt}>`,U=document,J=()=>U.createComment(""),Q=a=>a===null||typeof a!="object"&&typeof a!="function",$t=Array.isArray,si=a=>$t(a)||typeof a?.[Symbol.iterator]=="function",pt=`[
3
3
  \f\r]`,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ht=/-->/g,Bt=/>/g,F=RegExp(`>|${pt}(?:([^\\s"'>=/]+)(${pt}*=${pt}*(?:[^
4
4
  \f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,Ot=/"/g,Ft=/^(?:script|style|textarea|title)$/i,yt=a=>(e,...i)=>({_$litType$:a,strings:e,values:i}),o=yt(1),k=yt(2),zi=yt(3),D=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Pt=new WeakMap,j=U.createTreeWalker(U,129);function jt(a,e){if(!$t(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return It!==void 0?It.createHTML(e):e}var oi=(a,e)=>{let i=a.length-1,r=[],n,d=e===2?"<svg>":e===3?"<math>":"",h=Z;for(let y=0;y<i;y++){let $=a[y],w,A,S=-1,H=0;for(;H<$.length&&(h.lastIndex=H,A=h.exec($),A!==null);)H=h.lastIndex,h===Z?A[1]==="!--"?h=Ht:A[1]!==void 0?h=Bt:A[2]!==void 0?(Ft.test(A[2])&&(n=RegExp("</"+A[2],"g")),h=F):A[3]!==void 0&&(h=F):h===F?A[0]===">"?(h=n??Z,S=-1):A[1]===void 0?S=-2:(S=h.lastIndex-A[2].length,w=A[1],h=A[3]===void 0?F:A[3]==='"'?Ot:Nt):h===Ot||h===Nt?h=F:h===Ht||h===Bt?h=Z:(h=F,n=void 0);let O=h===F&&a[y+1].startsWith("/>")?" ":"";d+=h===Z?$+ri:S>=0?(r.push(w),$.slice(0,S)+Dt+$.slice(S)+P+O):$+P+(S===-2?y:O)}return[jt(a,d+(a[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},ee=class a{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let d=0,h=0,y=e.length-1,$=this.parts,[w,A]=oi(e,i);if(this.el=a.createElement(w,r),j.currentNode=this.el.content,i===2||i===3){let S=this.el.content.firstChild;S.replaceWith(...S.childNodes)}for(;(n=j.nextNode())!==null&&$.length<y;){if(n.nodeType===1){if(n.hasAttributes())for(let S of n.getAttributeNames())if(S.endsWith(Dt)){let H=A[h++],O=n.getAttribute(S).split(P),le=/([.?@])?(.*)/.exec(H);$.push({type:1,index:d,name:le[2],strings:O,ctor:le[1]==="."?ut:le[1]==="?"?mt:le[1]==="@"?gt:X}),n.removeAttribute(S)}else S.startsWith(P)&&($.push({type:6,index:d}),n.removeAttribute(S));if(Ft.test(n.tagName)){let S=n.textContent.split(P),H=S.length-1;if(H>0){n.textContent=he?he.emptyScript:"";for(let O=0;O<H;O++)n.append(S[O],J()),j.nextNode(),$.push({type:2,index:++d});n.append(S[H],J())}}}else if(n.nodeType===8)if(n.data===qt)$.push({type:2,index:d});else{let S=-1;for(;(S=n.data.indexOf(P,S+1))!==-1;)$.push({type:7,index:d}),S+=P.length-1}d++}}static createElement(e,i){let r=U.createElement("template");return r.innerHTML=e,r}};function V(a,e,i=a,r){if(e===D)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,d=Q(e)?void 0:e._$litDirective$;return n?.constructor!==d&&(n?._$AO?.(!1),d===void 0?n=void 0:(n=new d(a),n._$AT(a,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=V(a,n._$AS(a,e.values),n,r)),e}var ht=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??U).importNode(i,!0);j.currentNode=n;let d=j.nextNode(),h=0,y=0,$=r[0];for(;$!==void 0;){if(h===$.index){let w;$.type===2?w=new te(d,d.nextSibling,this,e):$.type===1?w=new $.ctor(d,$.name,$.strings,this,e):$.type===6&&(w=new bt(d,this,e)),this._$AV.push(w),$=r[++y]}h!==$?.index&&(d=j.nextNode(),h++)}return j.currentNode=U,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},te=class a{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=V(this,e,i),Q(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==D&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):si(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==l&&Q(this._$AH)?this._$AA.nextSibling.data=e:this.T(U.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=ee.createElement(jt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let d=new ht(n,this),h=d.u(this.options);d.p(i),this.T(h),this._$AH=d}}_$AC(e){let i=Pt.get(e.strings);return i===void 0&&Pt.set(e.strings,i=new ee(e)),i}k(e){$t(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let d of e)n===i.length?i.push(r=new a(this.O(J()),this.O(J()),this,this.options)):r=i[n],r._$AI(d),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Lt(e).nextSibling;Lt(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,d){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(e,i=this,r,n){let d=this.strings,h=!1;if(d===void 0)e=V(this,e,i,0),h=!Q(e)||e!==this._$AH&&e!==D,h&&(this._$AH=e);else{let y=e,$,w;for(e=d[0],$=0;$<d.length-1;$++)w=V(this,y[r+$],i,$),w===D&&(w=this._$AH[$]),h||=!Q(w)||w!==this._$AH[$],w===l?e=l:e!==l&&(e+=(w??"")+d[$+1]),this._$AH[$]=w}h&&!n&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ut=class extends X{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},mt=class extends X{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},gt=class extends X{constructor(e,i,r,n,d){super(e,i,r,n,d),this.type=5}_$AI(e,i=this){if((e=V(this,e,i,0)??l)===D)return;let r=this._$AH,n=e===l&&r!==l||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,d=e!==l&&(r===l||n);n&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},bt=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){V(this,e)}};var ni=ft.litHtmlPolyfillSupport;ni?.(ee,te),(ft.litHtmlVersions??=[]).push("3.3.3");var xt=(a,e,i)=>{let r=i?.renderBefore??e,n=r._$litPart$;if(n===void 0){let d=i?.renderBefore??null;r._$litPart$=n=new te(e.insertBefore(J(),d),d,void 0,i??{})}return n._$AI(a),n};var kt=globalThis,N=class extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=xt(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return D}};N._$litElement$=!0,N.finalized=!0,kt.litElementHydrateSupport?.({LitElement:N});var ai=kt.litElementPolyfillSupport;ai?.({LitElement:N});(kt.litElementVersions??=[]).push("4.2.2");var u=(a,e)=>_(`var(--impakt-${a.replace(/\./g,"-")}, ${e})`),t={brand:u("color.brand.default","#1f4ed8"),brandHover:u("color.brand.hover","#1b45be"),brandActive:u("color.brand.active","#183ba4"),brandSubtle:u("color.brand.subtle","#e4eafa"),onBrand:u("color.text.on-brand","#ffffff"),surfaceCard:u("color.surface.card","#ffffff"),surfaceInset:u("color.surface.inset","#f4f4f4"),surfaceSubtle:u("color.surface.subtle","#e4eafa"),text:u("color.text.default","#1a1a1a"),textMuted:u("color.text.muted","#717171"),textPlaceholder:u("color.text.placeholder","#767676"),textHeading:u("color.text.heading","#1f4ed8"),link:u("color.text.link","#1f4ed8"),linkHover:u("color.text.link-hover","#193ead"),border:u("color.border.default","#929292"),borderStrong:u("color.border.strong","#818181"),danger:u("color.status.danger.default","#c8102e"),dangerText:u("color.status.danger.text","#c8102e"),dangerSubtle:u("color.status.danger.subtle","#f8e2e6"),warning:u("color.status.warning.default","#b45309"),warningText:u("color.status.warning.text","#b45309"),warningSubtle:u("color.status.warning.subtle","#f6eae1"),success:u("color.status.success.default","#047857"),successText:u("color.status.success.text","#047857"),successSubtle:u("color.status.success.subtle","#e0f0ea"),info:u("color.status.info.default","#1f4ed8"),infoText:u("color.status.info.text","#1f4ed8"),infoSubtle:u("color.status.info.subtle","#e4eafa"),fontBody:u("font.family.body","system-ui, sans-serif"),fontHeading:u("font.family.heading","system-ui, sans-serif"),fontMono:u("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:u("font.family.eyebrow","inherit"),focusShadow:u("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:u("focus.ring.offset","2px"),targetMin:u("target.min","24px"),radiusSm:u("radius.sm","2px"),radius:u("radius.md","4px"),radiusLg:u("radius.lg","8px"),borderThin:u("border.width.thin","1px"),borderThick:u("border.width.thick","2px"),radiusXs:u("radius.xs","2px"),radiusXl:u("radius.xl","12px"),radius2xl:u("radius.2xl","16px"),hairline:_("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:_("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:_("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:_("color-mix(in srgb, var(--impakt-color-brand-default, #1f4ed8) 22%, transparent)"),shadowXs:u("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:u("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:u("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:u("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:u("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:u("font.tracking.tight","-0.02em"),trackingWide:u("font.tracking.wide","0.06em")},b=a=>_(`font-size: var(--impakt-font-size-${a}, 1rem); line-height: var(--impakt-font-leading-${a}, 1.5);`),s=a=>u(`space.${String(a).replace(".","-")}`,`${a*4}px`),g=a=>u(`font.size.${a}`,"1rem"),C=a=>u(`font.line-height.${a}`,"1.5"),m=a=>u(`font.weight.${a}`,"400"),R=p`
@@ -1199,7 +1199,7 @@ var de=globalThis,ce=de.ShadowRoot&&(de.ShadyCSS===void 0||de.ShadyCSS.nativeSha
1199
1199
  border-color: ${t.danger};
1200
1200
  border-width: ${t.borderThick};
1201
1201
  }
1202
- `]}willUpdate(i){super.willUpdate?.(i),this.filledText&&i.has("value")&&!this.value&&(this.value=this.filledText)}fill(){if(this.filled||this.fillFrom!=="estimate"||(this.filled=!0,this.value))return;let i=null;try{i=sessionStorage.getItem("strata.estimate")}catch{i=null}i&&(this.filledText=i,this.setFormValue(i))}renderControl(){return o`
1202
+ `]}willUpdate(i){super.willUpdate?.(i),this.filledText&&i.has("value")&&!this.value&&(this.value=this.filledText)}fill(){if(this.filled||this.fillFrom!=="estimate"||(this.filled=!0,this.value))return;let i=null;try{i=sessionStorage.getItem("impakt.estimate")}catch{i=null}i&&(this.filledText=i,this.setFormValue(i))}renderControl(){return o`
1203
1203
  <textarea
1204
1204
  id=${this.controlId}
1205
1205
  part="textarea"