@atomic-ui/ui 0.13.1 → 0.14.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/custom-elements.json +545 -5
- package/dist/base/FieldElement.d.ts +10 -0
- package/dist/base/motion.d.ts +44 -0
- package/dist/{chunk-F2MFV7RM.js → chunk-22XEQ4HD.js} +2 -2
- package/dist/{chunk-PII4SJL5.js → chunk-46DONRMK.js} +24 -2
- package/dist/chunk-46DONRMK.js.map +1 -0
- package/dist/{chunk-LSEK5MEZ.js → chunk-7RZYC2IX.js} +2 -2
- package/dist/{chunk-SRXC6ZPM.js → chunk-DJLUWM3C.js} +10 -1
- package/dist/chunk-DJLUWM3C.js.map +1 -0
- package/dist/chunk-FF6GQADC.js +241 -0
- package/dist/chunk-FF6GQADC.js.map +1 -0
- package/dist/{chunk-QJBRENLI.js → chunk-FJOZL25F.js} +9 -4
- package/dist/{chunk-QJBRENLI.js.map → chunk-FJOZL25F.js.map} +1 -1
- package/dist/{chunk-EA3M6KPB.js → chunk-FQ4I6TD6.js} +16 -6
- package/dist/chunk-FQ4I6TD6.js.map +1 -0
- package/dist/{chunk-K5QFVLCI.js → chunk-GHUVRNWS.js} +8 -3
- package/dist/chunk-GHUVRNWS.js.map +1 -0
- package/dist/{chunk-NZSKUEYS.js → chunk-IBBW4CVA.js} +2 -2
- package/dist/{chunk-EFP7PJ6C.js → chunk-J3XAAGFG.js} +7 -2
- package/dist/chunk-J3XAAGFG.js.map +1 -0
- package/dist/{chunk-B2GWXXIW.js → chunk-JBEPS77S.js} +2 -2
- package/dist/chunk-K542UBDD.js +100 -0
- package/dist/chunk-K542UBDD.js.map +1 -0
- package/dist/{chunk-5OCDXZXG.js → chunk-KBCCL45Y.js} +5 -4
- package/dist/chunk-KBCCL45Y.js.map +1 -0
- package/dist/{chunk-WEX5RKVC.js → chunk-KXHRD4FK.js} +2 -2
- package/dist/{chunk-RNFGIXJ7.js → chunk-LRDK2G3E.js} +2 -2
- package/dist/{chunk-G7CVRNY5.js → chunk-MXPFOBXZ.js} +18 -5
- package/dist/chunk-MXPFOBXZ.js.map +1 -0
- package/dist/{chunk-WT7MHYJR.js → chunk-NN6L3HLD.js} +11 -5
- package/dist/chunk-NN6L3HLD.js.map +1 -0
- package/dist/{chunk-P5FAKEFK.js → chunk-NTRIND3W.js} +2 -2
- package/dist/{chunk-EUOBFMWC.js → chunk-SLNHUYGJ.js} +2 -2
- package/dist/{chunk-2BGOBD6Y.js → chunk-YOJF5ESL.js} +2 -2
- package/dist/components/app-bar.d.ts +5 -4
- package/dist/components/app-bar.js +3 -3
- package/dist/components/app-ui.d.ts +4 -0
- package/dist/components/app-ui.js +2 -2
- package/dist/components/button.js +2 -1
- package/dist/components/checkbox-group.d.ts +4 -0
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip-group.d.ts +1 -0
- package/dist/components/chip-group.js +3 -2
- package/dist/components/chip.js +1 -1
- package/dist/components/date-input.d.ts +4 -0
- package/dist/components/date-input.js +2 -2
- package/dist/components/journey.d.ts +16 -0
- package/dist/components/journey.js +2 -2
- package/dist/components/link.js +2 -1
- package/dist/components/navigation.d.ts +9 -2
- package/dist/components/navigation.js +5 -3
- package/dist/components/page.js +1 -1
- package/dist/components/radio-group.d.ts +4 -0
- package/dist/components/radio-group.js +2 -2
- package/dist/components/select.d.ts +4 -0
- package/dist/components/select.js +2 -2
- package/dist/components/switch.d.ts +8 -0
- package/dist/components/switch.js +2 -2
- package/dist/components/text-input.d.ts +4 -0
- package/dist/components/text-input.js +2 -2
- package/dist/components/textarea.d.ts +4 -0
- package/dist/components/textarea.js +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +45 -19
- package/dist/reveal.d.ts +54 -0
- package/dist/reveal.js +19 -0
- package/dist/reveal.js.map +1 -0
- package/dist/standalone/atomic-ui-reveal.js +3 -0
- package/dist/standalone/atomic-ui-reveal.js.map +7 -0
- package/dist/standalone/atomic-ui.js +793 -680
- package/dist/standalone/atomic-ui.js.map +4 -4
- package/package.json +10 -2
- package/dist/chunk-5OCDXZXG.js.map +0 -1
- package/dist/chunk-EA3M6KPB.js.map +0 -1
- package/dist/chunk-EFP7PJ6C.js.map +0 -1
- package/dist/chunk-G7CVRNY5.js.map +0 -1
- package/dist/chunk-K5QFVLCI.js.map +0 -1
- package/dist/chunk-PII4SJL5.js.map +0 -1
- package/dist/chunk-SRXC6ZPM.js.map +0 -1
- package/dist/chunk-WT7MHYJR.js.map +0 -1
- /package/dist/{chunk-F2MFV7RM.js.map → chunk-22XEQ4HD.js.map} +0 -0
- /package/dist/{chunk-LSEK5MEZ.js.map → chunk-7RZYC2IX.js.map} +0 -0
- /package/dist/{chunk-NZSKUEYS.js.map → chunk-IBBW4CVA.js.map} +0 -0
- /package/dist/{chunk-B2GWXXIW.js.map → chunk-JBEPS77S.js.map} +0 -0
- /package/dist/{chunk-WEX5RKVC.js.map → chunk-KXHRD4FK.js.map} +0 -0
- /package/dist/{chunk-RNFGIXJ7.js.map → chunk-LRDK2G3E.js.map} +0 -0
- /package/dist/{chunk-P5FAKEFK.js.map → chunk-NTRIND3W.js.map} +0 -0
- /package/dist/{chunk-EUOBFMWC.js.map → chunk-SLNHUYGJ.js.map} +0 -0
- /package/dist/{chunk-2BGOBD6Y.js.map → chunk-YOJF5ESL.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldElement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-46DONRMK.js";
|
|
4
4
|
import {
|
|
5
5
|
targetSize,
|
|
6
6
|
touchTarget,
|
|
@@ -310,4 +310,4 @@ export {
|
|
|
310
310
|
ImpaktSwitch,
|
|
311
311
|
ImpaktSegmentedControl
|
|
312
312
|
};
|
|
313
|
-
//# sourceMappingURL=chunk-
|
|
313
|
+
//# sourceMappingURL=chunk-LRDK2G3E.js.map
|
|
@@ -3,7 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-XX6JZW5N.js";
|
|
4
4
|
import {
|
|
5
5
|
FieldElement
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-46DONRMK.js";
|
|
7
|
+
import {
|
|
8
|
+
R,
|
|
9
|
+
revealAt,
|
|
10
|
+
revealStyles
|
|
11
|
+
} from "./chunk-K542UBDD.js";
|
|
7
12
|
import {
|
|
8
13
|
space,
|
|
9
14
|
t
|
|
@@ -33,7 +38,10 @@ var ImpaktChipGroup = class extends FieldElement {
|
|
|
33
38
|
static {
|
|
34
39
|
this.styles = [
|
|
35
40
|
...FieldElement.styles,
|
|
41
|
+
revealStyles,
|
|
36
42
|
css`
|
|
43
|
+
/* Given \`data-reveal\`, the chips drop 12px into place one after another, once, as the group is reached (impkt-web#51). */
|
|
44
|
+
:host([data-motion]) .chip { animation: ik-reveal-drop ${R.drop} ${R.arrive} ${revealAt()} both; }
|
|
37
45
|
fieldset {
|
|
38
46
|
border: 0;
|
|
39
47
|
margin: 0;
|
|
@@ -45,7 +53,8 @@ var ImpaktChipGroup = class extends FieldElement {
|
|
|
45
53
|
}
|
|
46
54
|
:host([look='site']) legend {
|
|
47
55
|
font-family: ${t.fontMono};
|
|
48
|
-
|
|
56
|
+
/* G2 Mono S is 11px (20:1100); the ramp's 2xs is 12px, so the size is set here, as the text fields' site label is. */
|
|
57
|
+
font-size: 0.6875rem;
|
|
49
58
|
font-weight: ${kit.medium};
|
|
50
59
|
text-transform: uppercase;
|
|
51
60
|
letter-spacing: 0.06em;
|
|
@@ -54,7 +63,7 @@ var ImpaktChipGroup = class extends FieldElement {
|
|
|
54
63
|
.chips {
|
|
55
64
|
display: flex;
|
|
56
65
|
flex-wrap: wrap;
|
|
57
|
-
gap: ${space(1.5)};
|
|
66
|
+
gap: var(--impakt-chip-group-gap, ${space(1.5)});
|
|
58
67
|
}
|
|
59
68
|
.chip {
|
|
60
69
|
position: relative;
|
|
@@ -70,6 +79,10 @@ var ImpaktChipGroup = class extends FieldElement {
|
|
|
70
79
|
border-radius: 0;
|
|
71
80
|
cursor: pointer;
|
|
72
81
|
}
|
|
82
|
+
/* The site's chips (10:547, 15:945) are 8 by 14 inside: "Mobile app" is 100px wide. */
|
|
83
|
+
:host([look='site']) .chip {
|
|
84
|
+
padding-inline: 14px;
|
|
85
|
+
}
|
|
73
86
|
.chip input {
|
|
74
87
|
position: absolute;
|
|
75
88
|
inset: 0;
|
|
@@ -151,7 +164,7 @@ var ImpaktChipGroup = class extends FieldElement {
|
|
|
151
164
|
return html`<div class="chips">
|
|
152
165
|
${this.options.map((option, i) => {
|
|
153
166
|
const on = this.chosen(option.value);
|
|
154
|
-
return html`<label class="chip ${on ? "on" : ""}" part="chip">
|
|
167
|
+
return html`<label class="chip ${on ? "on" : ""}" part="chip" style=${`--i:${i}`}>
|
|
155
168
|
<input
|
|
156
169
|
type=${type}
|
|
157
170
|
id=${i === 0 ? this.controlId : this.id_(`opt-${i}`)}
|
|
@@ -198,4 +211,4 @@ customElements.define("impakt-chip-group", ImpaktChipGroup);
|
|
|
198
211
|
export {
|
|
199
212
|
ImpaktChipGroup
|
|
200
213
|
};
|
|
201
|
-
//# sourceMappingURL=chunk-
|
|
214
|
+
//# sourceMappingURL=chunk-MXPFOBXZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/chip-group.ts"],"sourcesContent":["/**\n * A choice made with square chips: one, or several.\n */\nimport { html, css, nothing, type TemplateResult } from 'lit';\nimport { FieldElement } from '../base/FieldElement';\nimport { R, revealAt, revealStyles } from '../base/motion';\nimport { space, t } from '../base/tokens';\nimport { kit } from './tool-kit-tokens';\n\nexport interface ChipOption {\n value: string;\n label: string;\n}\n\n/**\n * A short choice drawn as a row of square chips, such as \"What do you need\"\n * or \"Budget\" on a brief form, or the answers in an estimator.\n *\n * **Under each chip is a native control.** A single choice is a set of radios\n * and several is a set of checkboxes, so a single choice has the arrow keys,\n * Home and End and the right announcement without any script, and each\n * checkbox is its own tab stop, as it should be. The control lies over its\n * chip, invisible, so the whole chip is what is pressed and a screen reader\n * exploring by touch finds it where it is drawn.\n *\n * The question is a `legend` in a `fieldset`, because it is asked of the set.\n * `look=\"site\"` draws it in the site's form style: mono, uppercase, 11px.\n *\n * It joins its form like the other fields. A single choice submits its value;\n * several submit their values joined with commas, in the options' order.\n * `required` with nothing chosen makes the form invalid.\n *\n * Figma: site brief form `20:1157`; estimator `10:547`, `10:557`; mobile `15:945`.\n *\n * @category form\n * @icon checkbox\n * @csspart chip - Each chip.\n * @csspart fieldset - The fieldset.\n * @cssprop --impakt-chip-group-gap - The space between the chips, 6px unless set; the estimator sets 8px, as its frame does (`10:547`).\n */\nexport class ImpaktChipGroup extends FieldElement {\n static properties = {\n ...FieldElement.properties,\n options: { type: Array },\n values: { type: Array },\n multiple: { type: Boolean, reflect: true },\n look: { type: String, reflect: true },\n missingText: { type: String, attribute: 'missing-text' },\n };\n\n declare options: ChipOption[];\n /** What is chosen when `multiple` is set. */\n declare values: string[];\n /** Choose several, as checkboxes, rather than one, as radios. */\n declare multiple: boolean;\n /** `default` takes the product's field label; `site` is the mono uppercase label of the site's forms. */\n declare look: 'default' | 'site';\n /** What the browser says when a required choice is missing. */\n declare missingText: string;\n\n constructor() {\n super();\n this.options = [];\n this.values = [];\n this.multiple = false;\n this.look = 'default';\n this.missingText = 'Choose an option';\n }\n\n static styles = [\n ...FieldElement.styles,\n revealStyles,\n css`\n /* Given \\`data-reveal\\`, the chips drop 12px into place one after another, once, as the group is reached (impkt-web#51). */\n :host([data-motion]) .chip { animation: ik-reveal-drop ${R.drop} ${R.arrive} ${revealAt()} both; }\n fieldset {\n border: 0;\n margin: 0;\n padding: 0;\n min-inline-size: 0;\n }\n legend {\n padding: 0;\n }\n :host([look='site']) legend {\n font-family: ${t.fontMono};\n /* G2 Mono S is 11px (20:1100); the ramp's 2xs is 12px, so the size is set here, as the text fields' site label is. */\n font-size: 0.6875rem;\n font-weight: ${kit.medium};\n text-transform: uppercase;\n letter-spacing: 0.06em;\n margin-block-end: ${space(2)};\n }\n .chips {\n display: flex;\n flex-wrap: wrap;\n gap: var(--impakt-chip-group-gap, ${space(1.5)});\n }\n .chip {\n position: relative;\n display: inline-flex;\n align-items: center;\n min-block-size: 35px;\n padding: 0 ${space(3)};\n font-family: ${t.fontBody};\n font-size: ${kit.small};\n color: ${t.text};\n background: ${t.surfaceCard};\n border: 1px solid ${t.text};\n border-radius: 0;\n cursor: pointer;\n }\n /* The site's chips (10:547, 15:945) are 8 by 14 inside: \"Mobile app\" is 100px wide. */\n :host([look='site']) .chip {\n padding-inline: 14px;\n }\n .chip input {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n margin: 0;\n opacity: 0;\n cursor: inherit;\n }\n .chip:hover {\n background: ${t.surfaceSubtle};\n }\n .chip.on {\n color: ${kit.onInverse};\n background: ${kit.inverse};\n }\n .chip:has(input:focus-visible) {\n outline: 2px solid transparent;\n outline-offset: ${t.focusOffset};\n box-shadow: ${t.focusShadow};\n }\n :host([disabled]) .chip {\n opacity: 0.6;\n cursor: not-allowed;\n }\n :host([invalid]) .chip {\n border-color: ${t.danger};\n }\n @media (pointer: coarse) {\n .chip {\n min-block-size: 44px;\n }\n }\n @media (forced-colors: active) {\n .chip {\n border-color: ButtonText;\n }\n .chip.on {\n forced-color-adjust: none;\n color: HighlightText;\n background: Highlight;\n border-color: Highlight;\n }\n .chip:has(input:focus-visible) {\n outline-color: Highlight;\n }\n }\n `,\n ];\n\n protected renderLabel(): TemplateResult {\n return html`<legend class=\"label\" part=\"label\">\n ${this.label}${this.required ? html`<span class=\"required\"> (${this.requiredText})</span>` : nothing}\n </legend>`;\n }\n\n private chosen(value: string): boolean {\n return this.multiple ? this.values.includes(value) : this.value === value;\n }\n\n private choose(value: string, checked: boolean): void {\n if (this.multiple) {\n const next = checked ? [...this.values, value] : this.values.filter((v) => v !== value);\n this.values = this.options.filter((o) => next.includes(o.value)).map((o) => o.value);\n this.setFormValue(this.values.join(','));\n } else this.setFormValue(value);\n this.syncValidity();\n }\n\n private syncValidity(): void {\n const empty = this.multiple ? this.values.length === 0 : !this.value;\n try {\n if (this.required && empty) {\n const anchor = this.renderRoot?.querySelector?.('input') ?? undefined;\n this.internals?.setValidity({ valueMissing: true }, this.missingText, anchor as HTMLElement | undefined);\n } else this.internals?.setValidity({});\n } catch {\n // An engine without ElementInternals validity still has a working control.\n }\n }\n\n protected renderControl(): TemplateResult {\n const type = this.multiple ? 'checkbox' : 'radio';\n return html`<div class=\"chips\">\n ${this.options.map((option, i) => {\n const on = this.chosen(option.value);\n return html`<label class=\"chip ${on ? 'on' : ''}\" part=\"chip\" style=${`--i:${i}`}>\n <input\n type=${type}\n id=${i === 0 ? this.controlId : this.id_(`opt-${i}`)}\n name=${this.uid}\n value=${option.value}\n .checked=${on}\n ?disabled=${this.disabled}\n ?required=${!this.multiple && this.required && i === 0}\n @change=${(e: Event) => this.choose(option.value, (e.target as HTMLInputElement).checked)}\n /><span>${option.label}</span>\n </label>`;\n })}\n </div>`;\n }\n\n render(): TemplateResult {\n return html`\n <fieldset part=\"fieldset\" aria-describedby=${this.describedBy} aria-invalid=${this.error ? 'true' : nothing}>\n ${this.renderLabel()}\n ${this.description ? html`<div class=\"description\" id=${this.id_('description')} part=\"description\">${this.description}</div>` : nothing}\n ${this.renderControl()}\n <div class=\"error\" id=${this.id_('error')} part=\"error\" aria-live=\"polite\">${this.error || nothing}</div>\n </fieldset>\n `;\n }\n\n firstUpdated(): void {\n const initial = this.multiple ? this.values.join(',') : this.value;\n this.internals?.setFormValue(initial || null);\n this.syncValidity();\n }\n\n updated(changed: Map<string, unknown>): void {\n if (changed.has('error')) this.toggleAttribute('invalid', Boolean(this.error));\n if (changed.has('required') || changed.has('multiple')) this.syncValidity();\n }\n\n /** A form reset clears the choice. */\n formResetCallback(): void {\n this.value = '';\n this.values = [];\n this.internals?.setFormValue(null);\n this.syncValidity();\n }\n}\n\nc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AC5C,SAAK,aAAa;AAAA,EACpB;AAAA,EAEA,QAAQ,SAAqC;AAC3C,QAAI,QAAQ,IAAI,OAAO,EAAG,MAAK,gBAAgB,WAAW,QAAQ,KAAK,KAAK,CAAC;AAC7E,QAAI,QAAQ,IAAI,UAAU,KAAK,QAAQ,IAAI,UAAU,EAAG,MAAK,aAAa;AAAA,EAC5E;AAAA;AAAA,EAGA,oBAA0B;AACxB,SAAK,QAAQ;AACb,SAAK,SAAS,CAAC;AACf,SAAK,WAAW,aAAa,IAAI;AACjC,SAAK,aAAa;AAAA,EACpB;AACF;AAEA,eAAe,OAAO,qBAAqB,eAAe;","names":[]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
+
F,
|
|
2
3
|
FieldElement,
|
|
3
4
|
fieldControl,
|
|
4
5
|
fieldWidths
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-46DONRMK.js";
|
|
6
7
|
|
|
7
8
|
// packages/ui/src/components/textarea.ts
|
|
8
9
|
import { html, css, nothing } from "lit";
|
|
@@ -35,9 +36,13 @@ var ImpaktTextarea = class extends FieldElement {
|
|
|
35
36
|
fieldControl("textarea"),
|
|
36
37
|
css`
|
|
37
38
|
textarea {
|
|
38
|
-
/*
|
|
39
|
-
can be made bigger, and a fixed box is where that stops working.
|
|
40
|
-
|
|
39
|
+
/* Every brand but Impakt keeps the resize grip: 1.4.4 and 1.4.12 both assume text
|
|
40
|
+
can be made bigger, and a fixed box is where that stops working. The G2 textarea
|
|
41
|
+
(20:1100) draws no grip, so under Impakt the box grows with its words instead
|
|
42
|
+
(field.resize and field.sizing), never shorter than its rows (#66). */
|
|
43
|
+
resize: var(--impakt-field-resize, vertical);
|
|
44
|
+
field-sizing: var(--impakt-field-sizing, fixed);
|
|
45
|
+
min-block-size: calc(var(--impakt-textarea-rows, 4) * 1lh + 2 * ${F.paddingBlock} + 2px);
|
|
41
46
|
}
|
|
42
47
|
`
|
|
43
48
|
];
|
|
@@ -70,6 +75,7 @@ var ImpaktTextarea = class extends FieldElement {
|
|
|
70
75
|
part="textarea"
|
|
71
76
|
name=${this.name || nothing}
|
|
72
77
|
rows=${this.rows}
|
|
78
|
+
style=${`--impakt-textarea-rows: ${this.rows}`}
|
|
73
79
|
maxlength=${this.maxlength ?? nothing}
|
|
74
80
|
placeholder=${this.placeholder || nothing}
|
|
75
81
|
?disabled=${this.disabled}
|
|
@@ -95,4 +101,4 @@ customElements.define("impakt-textarea", ImpaktTextarea);
|
|
|
95
101
|
export {
|
|
96
102
|
ImpaktTextarea
|
|
97
103
|
};
|
|
98
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-NN6L3HLD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/textarea.ts"],"sourcesContent":["import { html, css, nothing, type TemplateResult } from 'lit';\nimport { F, FieldElement, fieldControl, fieldWidths } from '../base/FieldElement';\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 placeholder: { type: String },\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 /** An example of what to write. The label is still the field's name; a placeholder never replaces it. */\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\n constructor() {\n super();\n this.width = 'full';\n this.rows = 4;\n this.maxlength = undefined;\n this.fillFrom = 'none';\n this.placeholder = '';\n }\n\n static styles = [\n ...FieldElement.styles,\n fieldWidths,\n fieldControl('textarea'),\n css`\n textarea {\n /* Every brand but Impakt keeps the resize grip: 1.4.4 and 1.4.12 both assume text\n can be made bigger, and a fixed box is where that stops working. The G2 textarea\n (20:1100) draws no grip, so under Impakt the box grows with its words instead\n (field.resize and field.sizing), never shorter than its rows (#66). */\n resize: var(--impakt-field-resize, vertical);\n field-sizing: var(--impakt-field-sizing, fixed);\n min-block-size: calc(var(--impakt-textarea-rows, 4) * 1lh + 2 * ${F.paddingBlock} + 2px);\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 {\n saved = sessionStorage.getItem('impakt.estimate');\n } catch {\n saved = null;\n }\n if (saved) {\n this.filledText = saved;\n this.setFormValue(saved);\n }\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 style=${`--impakt-textarea-rows: ${this.rows}`}\n maxlength=${this.maxlength ?? nothing}\n placeholder=${this.placeholder || 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 .value=${this.value}\n @input=${(e: Event) => {\n this.filledText = '';\n this.setFormValue((e.target as HTMLTextAreaElement).value);\n }}\n ></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 {\n 'impakt-textarea': ImpaktTextarea;\n }\n}\n"],"mappings":";;;;;;;;AAAA,S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K,SAAS;AAAA;AAAA,eAEZ,KAAK,QAAQ,OAAO;AAAA,eACpB,KAAK,IAAI;AAAA,gBACR,2BAA2B,KAAK,IAAI,EAAE;AAAA,oBAClC,KAAK,aAAa,OAAO;AAAA,sBACvB,KAAK,eAAe,OAAO;AAAA,oBAC7B,KAAK,QAAQ;AAAA,oBACb,KAAK,QAAQ;AAAA,oBACb,KAAK,QAAQ;AAAA,2BACN,KAAK,WAAW;AAAA,uBACpB,KAAK,QAAQ,SAAS,OAAO;AAAA,iBACnC,KAAK,KAAK;AAAA,iBACV,CAAC,MAAa;AACrB,WAAK,aAAa;AAClB,WAAK,aAAc,EAAE,OAA+B,KAAK;AAAA,IAC3D,CAAC;AAAA;AAAA;AAAA,EAGP;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
|
FieldElement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-46DONRMK.js";
|
|
4
4
|
import {
|
|
5
5
|
say
|
|
6
6
|
} from "./chunk-72WNCCDC.js";
|
|
@@ -137,4 +137,4 @@ customElements.define("impakt-date-input", ImpaktDateInput);
|
|
|
137
137
|
export {
|
|
138
138
|
ImpaktDateInput
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-NTRIND3W.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldElement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-46DONRMK.js";
|
|
4
4
|
import {
|
|
5
5
|
targetSize,
|
|
6
6
|
touchTarget
|
|
@@ -89,4 +89,4 @@ customElements.define("impakt-checkbox", ImpaktCheckbox);
|
|
|
89
89
|
export {
|
|
90
90
|
ImpaktCheckbox
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-SLNHUYGJ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
FieldElement,
|
|
6
6
|
fieldWidths
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-46DONRMK.js";
|
|
8
8
|
import {
|
|
9
9
|
ImpaktElement,
|
|
10
10
|
focusRing,
|
|
@@ -557,4 +557,4 @@ export {
|
|
|
557
557
|
ImpaktRangeInput,
|
|
558
558
|
ImpaktTaskList
|
|
559
559
|
};
|
|
560
|
-
//# sourceMappingURL=chunk-
|
|
560
|
+
//# sourceMappingURL=chunk-YOJF5ESL.js.map
|
|
@@ -41,10 +41,11 @@ export type AppBarMenuItem = MenuItem & {
|
|
|
41
41
|
* `organisation-items`; or, when `signed-out`, a "Sign in" link in its place.
|
|
42
42
|
*
|
|
43
43
|
* **On a narrow screen the pages move to a second row** under the mark and
|
|
44
|
-
* the menus, the full width of the bar, and
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
44
|
+
* the menus, the full width of the bar, and the segmented track wraps onto
|
|
45
|
+
* another line when they still do not fit, so every page stays in sight at 390
|
|
46
|
+
* and at 320 (#64). Folding them away behind a button would hide where you
|
|
47
|
+
* are, and a row that scrolls hides the pages past the edge with no sign that
|
|
48
|
+
* they are there. The bar reflows to 320px without the page scrolling sideways.
|
|
48
49
|
*
|
|
49
50
|
* Figma: kit `33:361`, `33:365`; every tool screen, such as `36:431`, `36:642`,
|
|
50
51
|
* `37:420`, `37:591`, `39:468`, `39:603`, `39:746`, `53:674`, `53:801`; signed
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktAppBar
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-DJLUWM3C.js";
|
|
4
4
|
import "../chunk-XX6JZW5N.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-IBBW4CVA.js";
|
|
6
6
|
import "../chunk-UNGAG44M.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-46DONRMK.js";
|
|
8
8
|
import "../chunk-2YRTFWW2.js";
|
|
9
9
|
import "../chunk-5OYQZWP2.js";
|
|
10
10
|
import "../chunk-72WNCCDC.js";
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
ImpaktSlotPicker,
|
|
9
9
|
ImpaktToast,
|
|
10
10
|
pageWindow
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-IBBW4CVA.js";
|
|
12
12
|
import "../chunk-UNGAG44M.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-46DONRMK.js";
|
|
14
14
|
import "../chunk-2YRTFWW2.js";
|
|
15
15
|
import "../chunk-5OYQZWP2.js";
|
|
16
16
|
import "../chunk-72WNCCDC.js";
|
|
@@ -31,6 +31,7 @@ export interface ChipOption {
|
|
|
31
31
|
* @icon checkbox
|
|
32
32
|
* @csspart chip - Each chip.
|
|
33
33
|
* @csspart fieldset - The fieldset.
|
|
34
|
+
* @cssprop --impakt-chip-group-gap - The space between the chips, 6px unless set; the estimator sets 8px, as its frame does (`10:547`).
|
|
34
35
|
*/
|
|
35
36
|
export declare class ImpaktChipGroup extends FieldElement {
|
|
36
37
|
static properties: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktChipGroup
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-MXPFOBXZ.js";
|
|
4
4
|
import "../chunk-XX6JZW5N.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-46DONRMK.js";
|
|
6
|
+
import "../chunk-K542UBDD.js";
|
|
6
7
|
import "../chunk-72WNCCDC.js";
|
|
7
8
|
import "../chunk-JTCTQBAX.js";
|
|
8
9
|
export {
|
package/dist/components/chip.js
CHANGED
|
@@ -96,6 +96,10 @@ export declare class ImpaktAddressLookup extends FieldElement {
|
|
|
96
96
|
type: StringConstructor;
|
|
97
97
|
attribute: string;
|
|
98
98
|
};
|
|
99
|
+
look: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
reflect: boolean;
|
|
102
|
+
};
|
|
99
103
|
};
|
|
100
104
|
postcodeLabel: string;
|
|
101
105
|
findText: string;
|
|
@@ -226,6 +230,10 @@ export declare class ImpaktFileUpload extends FieldElement {
|
|
|
226
230
|
type: StringConstructor;
|
|
227
231
|
attribute: string;
|
|
228
232
|
};
|
|
233
|
+
look: {
|
|
234
|
+
type: StringConstructor;
|
|
235
|
+
reflect: boolean;
|
|
236
|
+
};
|
|
229
237
|
};
|
|
230
238
|
/** File types allowed, such as `.pdf,.jpg,.png`. Empty allows any. */
|
|
231
239
|
accept: string;
|
|
@@ -307,6 +315,10 @@ export declare class ImpaktMoneyInput extends FieldElement {
|
|
|
307
315
|
type: StringConstructor;
|
|
308
316
|
attribute: string;
|
|
309
317
|
};
|
|
318
|
+
look: {
|
|
319
|
+
type: StringConstructor;
|
|
320
|
+
reflect: boolean;
|
|
321
|
+
};
|
|
310
322
|
};
|
|
311
323
|
currency: string;
|
|
312
324
|
lowest: number | undefined;
|
|
@@ -381,6 +393,10 @@ export declare class ImpaktRangeInput extends FieldElement {
|
|
|
381
393
|
type: StringConstructor;
|
|
382
394
|
attribute: string;
|
|
383
395
|
};
|
|
396
|
+
look: {
|
|
397
|
+
type: StringConstructor;
|
|
398
|
+
reflect: boolean;
|
|
399
|
+
};
|
|
384
400
|
};
|
|
385
401
|
lowest: number;
|
|
386
402
|
highest: number;
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
ImpaktRangeInput,
|
|
7
7
|
ImpaktTaskList,
|
|
8
8
|
groupDigits
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-YOJF5ESL.js";
|
|
10
10
|
import "../chunk-UNGAG44M.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-46DONRMK.js";
|
|
12
12
|
import "../chunk-72WNCCDC.js";
|
|
13
13
|
import "../chunk-JTCTQBAX.js";
|
|
14
14
|
export {
|
package/dist/components/link.js
CHANGED
|
@@ -5,6 +5,12 @@ export interface NavLink {
|
|
|
5
5
|
label: string;
|
|
6
6
|
href: string;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Whether a link is the page the visitor is on, or a page above it. Given `current`, the href of
|
|
10
|
+
* the page as the page itself names it, only that link is the page; otherwise it is worked out
|
|
11
|
+
* from the address, and on a server, where there is no address, nothing is.
|
|
12
|
+
*/
|
|
13
|
+
export declare function linkCurrent(href: string, current?: string): 'page' | 'section' | null;
|
|
8
14
|
/**
|
|
9
15
|
* The site's main navigation: a row of links that folds into a Menu button
|
|
10
16
|
* when there is not room for all of them, whatever the screen.
|
|
@@ -94,8 +100,9 @@ export declare class ImpaktNav extends ImpaktElement {
|
|
|
94
100
|
actionHref: string;
|
|
95
101
|
/**
|
|
96
102
|
* `links` is a row of words. `tabs` is the G2 site header's file tabs: a
|
|
97
|
-
* bordered group on the soft surface
|
|
98
|
-
* are on a white tab with a dot before it
|
|
103
|
+
* bordered group on the soft surface as wide as its tabs, each tab 32px
|
|
104
|
+
* tall, and the page you are on a white 34px tab with a dot before it
|
|
105
|
+
* (frame 9:264). The current tab is
|
|
99
106
|
* still `aria-current`, so it is not said by colour alone.
|
|
100
107
|
*/
|
|
101
108
|
look: 'links' | 'tabs';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktBreadcrumbs,
|
|
3
|
-
ImpaktNav
|
|
4
|
-
|
|
3
|
+
ImpaktNav,
|
|
4
|
+
linkCurrent
|
|
5
|
+
} from "../chunk-FQ4I6TD6.js";
|
|
5
6
|
import "../chunk-5OYQZWP2.js";
|
|
6
7
|
import "../chunk-72WNCCDC.js";
|
|
7
8
|
import "../chunk-JTCTQBAX.js";
|
|
8
9
|
export {
|
|
9
10
|
ImpaktBreadcrumbs,
|
|
10
|
-
ImpaktNav
|
|
11
|
+
ImpaktNav,
|
|
12
|
+
linkCurrent
|
|
11
13
|
};
|
|
12
14
|
//# sourceMappingURL=navigation.js.map
|
package/dist/components/page.js
CHANGED
|
@@ -65,6 +65,10 @@ export declare class ImpaktSwitch extends FieldElement {
|
|
|
65
65
|
type: StringConstructor;
|
|
66
66
|
attribute: string;
|
|
67
67
|
};
|
|
68
|
+
look: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
reflect: boolean;
|
|
71
|
+
};
|
|
68
72
|
};
|
|
69
73
|
checked: boolean;
|
|
70
74
|
/** Keep the label for screen readers only, when the row around it already names the setting. */
|
|
@@ -143,6 +147,10 @@ export declare class ImpaktSegmentedControl extends FieldElement {
|
|
|
143
147
|
type: StringConstructor;
|
|
144
148
|
attribute: string;
|
|
145
149
|
};
|
|
150
|
+
look: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
reflect: boolean;
|
|
153
|
+
};
|
|
146
154
|
};
|
|
147
155
|
options: SegmentOption[];
|
|
148
156
|
/** Keep the question for screen readers only, when the words around it already ask it. */
|
|
@@ -70,6 +70,10 @@ export declare class ImpaktTextInput extends FieldElement {
|
|
|
70
70
|
type: StringConstructor;
|
|
71
71
|
attribute: string;
|
|
72
72
|
};
|
|
73
|
+
look: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
reflect: boolean;
|
|
76
|
+
};
|
|
73
77
|
};
|
|
74
78
|
/** `search` draws a search icon at the start and rounds the field, as a search box. */
|
|
75
79
|
type: 'text' | 'email' | 'tel' | 'number' | 'password' | 'date' | 'search';
|