@atomic-ui/ui 0.12.0 → 0.13.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 +39 -1
- package/dist/base/FieldElement.d.ts +20 -2
- package/dist/{chunk-2WHOBIOY.js → chunk-2BGOBD6Y.js} +2 -2
- package/dist/{chunk-FLAUZU7Y.js → chunk-2RC3QKYA.js} +84 -27
- package/dist/chunk-2RC3QKYA.js.map +1 -0
- package/dist/{chunk-UYTIJCCW.js → chunk-B2GWXXIW.js} +2 -2
- package/dist/{chunk-CFCFKLTN.js → chunk-EA3M6KPB.js} +11 -1
- package/dist/chunk-EA3M6KPB.js.map +1 -0
- package/dist/{chunk-R6YMSJR7.js → chunk-EFP7PJ6C.js} +68 -25
- package/dist/chunk-EFP7PJ6C.js.map +1 -0
- package/dist/{chunk-5IGBH4GL.js → chunk-EUOBFMWC.js} +2 -2
- package/dist/{chunk-FZWUQC42.js → chunk-F2MFV7RM.js} +2 -2
- package/dist/{chunk-3GPGDERO.js → chunk-G7CVRNY5.js} +2 -2
- package/dist/{chunk-2TNF7O43.js → chunk-LSEK5MEZ.js} +2 -2
- package/dist/{chunk-DXLEYNID.js → chunk-LVBYNQ45.js} +5 -3
- package/dist/chunk-LVBYNQ45.js.map +1 -0
- package/dist/{chunk-BAITBJUC.js → chunk-MGDX7Z74.js} +50 -18
- package/dist/chunk-MGDX7Z74.js.map +1 -0
- package/dist/{chunk-5HCWL2YD.js → chunk-P5FAKEFK.js} +2 -2
- package/dist/{chunk-HSXLSJVG.js → chunk-PII4SJL5.js} +32 -16
- package/dist/chunk-PII4SJL5.js.map +1 -0
- package/dist/{chunk-ALFE35FS.js → chunk-QJBRENLI.js} +3 -3
- package/dist/{chunk-ALFE35FS.js.map → chunk-QJBRENLI.js.map} +1 -1
- package/dist/{chunk-LXVPWTSY.js → chunk-RCZPRFHQ.js} +37 -21
- package/dist/chunk-RCZPRFHQ.js.map +1 -0
- package/dist/{chunk-3KAFK24X.js → chunk-RNFGIXJ7.js} +2 -2
- package/dist/{chunk-SOYKSPPX.js → chunk-SY7NTW3U.js} +2 -2
- package/dist/{chunk-P3BPW446.js → chunk-UBNCJROR.js} +3 -3
- package/dist/{chunk-P3BPW446.js.map → chunk-UBNCJROR.js.map} +1 -1
- package/dist/{chunk-F3NHPQU5.js → chunk-WEX5RKVC.js} +37 -7
- package/dist/chunk-WEX5RKVC.js.map +1 -0
- package/dist/{chunk-CQT3VPYK.js → chunk-WT7MHYJR.js} +2 -2
- package/dist/components/accordion.js +1 -1
- package/dist/components/app-bar.js +3 -3
- package/dist/components/app-ui.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip-group.js +2 -2
- package/dist/components/date-input.js +2 -2
- package/dist/components/dialog.js +1 -1
- package/dist/components/journey.js +2 -2
- package/dist/components/layout.js +1 -1
- package/dist/components/navigation.js +1 -1
- package/dist/components/page.js +1 -1
- package/dist/components/radio-group.js +2 -2
- package/dist/components/rows.js +1 -1
- package/dist/components/select.d.ts +6 -0
- package/dist/components/select.js +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/text-input.js +2 -2
- package/dist/components/textarea.js +2 -2
- package/dist/index.js +20 -20
- package/dist/server.d.ts +42 -0
- package/dist/server.js +26 -0
- package/dist/server.js.map +1 -0
- package/dist/standalone/atomic-ui.js +880 -775
- package/dist/standalone/atomic-ui.js.map +3 -3
- package/package.json +6 -2
- package/dist/chunk-BAITBJUC.js.map +0 -1
- package/dist/chunk-CFCFKLTN.js.map +0 -1
- package/dist/chunk-DXLEYNID.js.map +0 -1
- package/dist/chunk-F3NHPQU5.js.map +0 -1
- package/dist/chunk-FLAUZU7Y.js.map +0 -1
- package/dist/chunk-HSXLSJVG.js.map +0 -1
- package/dist/chunk-LXVPWTSY.js.map +0 -1
- package/dist/chunk-R6YMSJR7.js.map +0 -1
- /package/dist/{chunk-2WHOBIOY.js.map → chunk-2BGOBD6Y.js.map} +0 -0
- /package/dist/{chunk-UYTIJCCW.js.map → chunk-B2GWXXIW.js.map} +0 -0
- /package/dist/{chunk-5IGBH4GL.js.map → chunk-EUOBFMWC.js.map} +0 -0
- /package/dist/{chunk-FZWUQC42.js.map → chunk-F2MFV7RM.js.map} +0 -0
- /package/dist/{chunk-3GPGDERO.js.map → chunk-G7CVRNY5.js.map} +0 -0
- /package/dist/{chunk-2TNF7O43.js.map → chunk-LSEK5MEZ.js.map} +0 -0
- /package/dist/{chunk-5HCWL2YD.js.map → chunk-P5FAKEFK.js.map} +0 -0
- /package/dist/{chunk-3KAFK24X.js.map → chunk-RNFGIXJ7.js.map} +0 -0
- /package/dist/{chunk-SOYKSPPX.js.map → chunk-SY7NTW3U.js.map} +0 -0
- /package/dist/{chunk-CQT3VPYK.js.map → chunk-WT7MHYJR.js.map} +0 -0
|
@@ -9,17 +9,43 @@ import {
|
|
|
9
9
|
visuallyHidden
|
|
10
10
|
} from "./chunk-72WNCCDC.js";
|
|
11
11
|
import {
|
|
12
|
-
fontSize,
|
|
13
|
-
fontWeight,
|
|
14
12
|
space,
|
|
15
13
|
t,
|
|
16
|
-
token
|
|
17
|
-
type
|
|
14
|
+
token
|
|
18
15
|
} from "./chunk-JTCTQBAX.js";
|
|
19
16
|
|
|
20
17
|
// packages/ui/src/components/button.ts
|
|
21
|
-
import { html, css, nothing } from "lit";
|
|
18
|
+
import { html, svg, css, nothing } from "lit";
|
|
22
19
|
var INVERSE = token("color.text.inverse", "var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))");
|
|
20
|
+
var B = {
|
|
21
|
+
height: token("button.height", "40px"),
|
|
22
|
+
paddingBlock: token("button.padding-block", "8px"),
|
|
23
|
+
paddingInline: token("button.padding-inline", "16px"),
|
|
24
|
+
gap: token("button.gap", "8px"),
|
|
25
|
+
fontSize: token("button.font-size", "0.875rem"),
|
|
26
|
+
lineHeight: token("button.line-height", "1.429"),
|
|
27
|
+
weight: token("button.weight", "600"),
|
|
28
|
+
smPaddingBlock: token("button.sm.padding-block", "4px"),
|
|
29
|
+
smHeight: token("button.sm.height", "32px"),
|
|
30
|
+
smPaddingInline: token("button.sm.padding-inline", "12px"),
|
|
31
|
+
smFontSize: token("button.sm.font-size", "0.875rem"),
|
|
32
|
+
smLineHeight: token("button.sm.line-height", "1.429"),
|
|
33
|
+
smGap: token("button.sm.gap", "6px"),
|
|
34
|
+
solidEdge: token("button.solid-edge-width", "1px"),
|
|
35
|
+
arrowIcon: token("button.arrow-icon", "inline-block"),
|
|
36
|
+
arrowGlyph: token("button.arrow-glyph", "none"),
|
|
37
|
+
lgHeight: token("button.lg.height", "48px"),
|
|
38
|
+
lgPaddingBlock: token("button.lg.padding-block", "12px"),
|
|
39
|
+
lgFontSize: token("button.lg.font-size", "1rem"),
|
|
40
|
+
lgLineHeight: token("button.lg.line-height", "1.5"),
|
|
41
|
+
iconSize: token("button.icon-size", "40px"),
|
|
42
|
+
lgIconSize: token("button.lg.icon-size", "48px"),
|
|
43
|
+
fullJustify: token("button.full.justify", "center"),
|
|
44
|
+
fullAlign: token("button.full.align", "center"),
|
|
45
|
+
highlight: token("button.highlight", "inset 0 1px 0 0 rgb(255 255 255 / 0.12)"),
|
|
46
|
+
edge: token("button.edge", "15%")
|
|
47
|
+
};
|
|
48
|
+
var ARROW_GLYPH = svg`<svg class="glyph" viewBox="0 0 15 10" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="butt" stroke-linejoin="miter" aria-hidden="true" focusable="false"><path d="M0 5h14" /><path d="M9.75 0.75 14 5l-4.25 4.25" /></svg>`;
|
|
23
49
|
var ImpaktButton = class extends ImpaktElement {
|
|
24
50
|
constructor() {
|
|
25
51
|
super();
|
|
@@ -90,24 +116,26 @@ var ImpaktButton = class extends ImpaktElement {
|
|
|
90
116
|
display: inline-flex;
|
|
91
117
|
align-items: center;
|
|
92
118
|
justify-content: center;
|
|
93
|
-
gap: ${
|
|
119
|
+
gap: ${B.gap};
|
|
94
120
|
inline-size: 100%;
|
|
95
|
-
/*
|
|
96
|
-
min-block-size:
|
|
97
|
-
padding:
|
|
121
|
+
/* The brand's button shape: 40px in the small type in semibold, or under Noire (G2) Archivo Medium 16, 14 by 20, about 47px tall. */
|
|
122
|
+
min-block-size: ${B.height};
|
|
123
|
+
padding: ${B.paddingBlock} ${B.paddingInline};
|
|
98
124
|
font-family: inherit;
|
|
99
|
-
font-size: ${fontSize
|
|
100
|
-
line-height:
|
|
101
|
-
font-weight: ${
|
|
125
|
+
font-size: ${B.fontSize};
|
|
126
|
+
line-height: ${B.lineHeight};
|
|
127
|
+
font-weight: ${B.weight};
|
|
102
128
|
border-radius: ${t.radiusLg};
|
|
103
129
|
border: ${t.borderThin} solid transparent;
|
|
104
130
|
cursor: pointer;
|
|
105
131
|
transition: background-color 120ms ease-in-out, border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;
|
|
106
132
|
}
|
|
107
|
-
:host([size='sm']) :is(button, a) { min-block-size:
|
|
108
|
-
:host([size='lg']) :is(button, a) { min-block-size:
|
|
109
|
-
/*
|
|
110
|
-
:host([
|
|
133
|
+
:host([size='sm']) :is(button, a) { min-block-size: ${B.smHeight}; padding: ${B.smPaddingBlock} ${B.smPaddingInline}; font-size: ${B.smFontSize}; line-height: ${B.smLineHeight}; gap: ${B.smGap}; }
|
|
134
|
+
:host([size='lg']) :is(button, a) { min-block-size: ${B.lgHeight}; padding: ${B.lgPaddingBlock} ${space(6)}; font-size: ${B.lgFontSize}; line-height: ${B.lgLineHeight}; }
|
|
135
|
+
/* A full-width button keeps its words in the middle, or spreads them where the brand does, as Noire does unless it is centred. */
|
|
136
|
+
:host([full]:not([centred]):not([spread])) :is(button, a) { justify-content: ${B.fullJustify}; text-align: ${B.fullAlign}; }
|
|
137
|
+
/* Spread: the words at the start, the trailing icon at the far end. */
|
|
138
|
+
:host([spread]) :is(button, a) { justify-content: space-between; text-align: start; }
|
|
111
139
|
.icon { flex: none; inline-size: 1.15em; block-size: 1.15em; }
|
|
112
140
|
/* The cursor is the only thing that changes while busy. Moving or
|
|
113
141
|
recolouring a control the moment it is pressed is how a user loses it. */
|
|
@@ -123,24 +151,39 @@ var ImpaktButton = class extends ImpaktElement {
|
|
|
123
151
|
.primary {
|
|
124
152
|
background: var(--impakt-button-primary, ${t.brand});
|
|
125
153
|
color: var(--impakt-button-on-primary, ${t.onBrand});
|
|
154
|
+
/* A hairline highlight along the top edge, where the brand draws one. Noire is flat. */
|
|
155
|
+
box-shadow: ${t.shadowXs}, ${B.highlight};
|
|
126
156
|
}
|
|
127
157
|
.primary:hover:not([aria-disabled='true']) {
|
|
128
158
|
background: var(--impakt-button-primary-hover, var(--impakt-color-action-hover, ${t.brandHover}));
|
|
129
159
|
color: var(--impakt-button-on-primary, var(--impakt-color-action-on-hover, ${t.onBrand}));
|
|
130
160
|
}
|
|
131
161
|
/* A brand whose buttons turn on hover lifts the trailing arrow a quarter-turn. */
|
|
132
|
-
|
|
162
|
+
/* The trailing icon sits in a box as tall as the icon, so it never makes the line taller than the label's (#50). */
|
|
163
|
+
.after { display: inline-flex; align-items: center; flex: none; transition: transform 160ms ease-out; }
|
|
164
|
+
.after.arrow .icon { display: ${B.arrowIcon}; }
|
|
165
|
+
/* The "→" of the G2 button, drawn so it does not depend on the font file holding it: as long as the label is high, with a thin stroke and a small head. */
|
|
166
|
+
.after .glyph { display: ${B.arrowGlyph}; inline-size: 0.9375em; block-size: 0.625em; overflow: visible; }
|
|
133
167
|
:is(button, a):hover:not([aria-disabled='true']) .after { transform: rotate(var(--impakt-motion-button-turn, 0deg)); }
|
|
134
168
|
@media (prefers-reduced-motion: reduce) { .after { transition: none; } }
|
|
135
169
|
.primary:active:not([aria-disabled='true']) {
|
|
136
170
|
background: var(--impakt-button-primary-hover, ${t.brandActive});
|
|
137
171
|
}
|
|
138
172
|
|
|
173
|
+
/*
|
|
174
|
+
* A filled button draws no edge where the brand says so, as Noire does: the G2 button is 14px, the label's 19.2px
|
|
175
|
+
* line and 14px, so 47px tall, and only an outlined one adds its 1px edge, to 49px (#50). Forced colours keep the
|
|
176
|
+
* edge, since there the fill is gone.
|
|
177
|
+
*/
|
|
178
|
+
:is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: ${B.solidEdge}; }
|
|
179
|
+
@media (forced-colors: active) { :is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: 1px; } }
|
|
180
|
+
|
|
139
181
|
/* Outline: the card, a hairline border and the text colour, for the second choice. */
|
|
140
182
|
.secondary {
|
|
141
183
|
background: ${t.surfaceCard};
|
|
142
184
|
color: ${t.text};
|
|
143
|
-
border-color: ${t.text};
|
|
185
|
+
border-color: color-mix(in srgb, ${t.text} ${B.edge}, transparent);
|
|
186
|
+
box-shadow: ${t.shadowXs};
|
|
144
187
|
}
|
|
145
188
|
.secondary:hover:not([aria-disabled='true']) {
|
|
146
189
|
background: color-mix(in srgb, ${t.surfaceCard}, ${t.text} 4%);
|
|
@@ -225,15 +268,15 @@ var ImpaktButton = class extends ImpaktElement {
|
|
|
225
268
|
|
|
226
269
|
/* Icon only: as tall as it is wide, round where the brand rounds its corners and square under Noire. */
|
|
227
270
|
.icon-only {
|
|
228
|
-
inline-size:
|
|
229
|
-
min-inline-size:
|
|
230
|
-
block-size:
|
|
231
|
-
min-block-size:
|
|
271
|
+
inline-size: ${B.iconSize};
|
|
272
|
+
min-inline-size: ${B.iconSize};
|
|
273
|
+
block-size: ${B.iconSize};
|
|
274
|
+
min-block-size: ${B.iconSize};
|
|
232
275
|
padding: 0;
|
|
233
276
|
border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
|
|
234
277
|
}
|
|
235
278
|
:host([size='sm']) .icon-only { inline-size: 32px; min-inline-size: 32px; block-size: 32px; min-block-size: 32px; padding: 0; }
|
|
236
|
-
:host([size='lg']) .icon-only { inline-size:
|
|
279
|
+
:host([size='lg']) .icon-only { inline-size: ${B.lgIconSize}; min-inline-size: ${B.lgIconSize}; block-size: ${B.lgIconSize}; min-block-size: ${B.lgIconSize}; padding: 0; }
|
|
237
280
|
|
|
238
281
|
.sr-only {
|
|
239
282
|
${visuallyHidden}
|
|
@@ -283,7 +326,7 @@ var ImpaktButton = class extends ImpaktElement {
|
|
|
283
326
|
</button>
|
|
284
327
|
`;
|
|
285
328
|
}
|
|
286
|
-
const words = html`${iconSvg(this.iconBefore)}<slot></slot>${this.iconAfter && this.iconAfter !== "none" ? html`<span class
|
|
329
|
+
const words = html`${iconSvg(this.iconBefore)}<slot></slot>${this.iconAfter && this.iconAfter !== "none" ? html`<span class=${this.iconAfter === "arrow-right" ? "after arrow" : "after"} aria-hidden="true">${iconSvg(this.iconAfter)}${this.iconAfter === "arrow-right" ? ARROW_GLYPH : nothing}</span>` : nothing}`;
|
|
287
330
|
if (this.href && !this.disabled) {
|
|
288
331
|
return html`<a class=${this.variant} href=${this.href} part="button">${words}</a>`;
|
|
289
332
|
}
|
|
@@ -308,4 +351,4 @@ customElements.define("impakt-button", ImpaktButton);
|
|
|
308
351
|
export {
|
|
309
352
|
ImpaktButton
|
|
310
353
|
};
|
|
311
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-EFP7PJ6C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/button.ts"],"sourcesContent":["import { html, svg, css, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { focusRing, targetSize, touchTarget, visuallyHidden } from '../base/styles';\nimport { space, t, token } from '../base/tokens';\n\n/**\n * The colour that reads on the text colour: the card, unless a toned band says\n * otherwise. An ink band sets it to the ink, an accent band to the card.\n */\nconst INVERSE = token('color.text.inverse', 'var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))');\nimport { iconSvg } from './icon';\n\n/**\n * The button's shape, from the brand (`button.*` in `@atomic-ui/design-tokens`). Each fallback is\n * the shape every brand derives: 40px, the small type in semibold, the words of a full-width\n * button in the middle. The Impakt theme sets the G2 Noire shape over it.\n */\nconst B = {\n height: token('button.height', '40px'),\n paddingBlock: token('button.padding-block', '8px'),\n paddingInline: token('button.padding-inline', '16px'),\n gap: token('button.gap', '8px'),\n fontSize: token('button.font-size', '0.875rem'),\n lineHeight: token('button.line-height', '1.429'),\n weight: token('button.weight', '600'),\n smPaddingBlock: token('button.sm.padding-block', '4px'),\n smHeight: token('button.sm.height', '32px'),\n smPaddingInline: token('button.sm.padding-inline', '12px'),\n smFontSize: token('button.sm.font-size', '0.875rem'),\n smLineHeight: token('button.sm.line-height', '1.429'),\n smGap: token('button.sm.gap', '6px'),\n solidEdge: token('button.solid-edge-width', '1px'),\n arrowIcon: token('button.arrow-icon', 'inline-block'),\n arrowGlyph: token('button.arrow-glyph', 'none'),\n lgHeight: token('button.lg.height', '48px'),\n lgPaddingBlock: token('button.lg.padding-block', '12px'),\n lgFontSize: token('button.lg.font-size', '1rem'),\n lgLineHeight: token('button.lg.line-height', '1.5'),\n iconSize: token('button.icon-size', '40px'),\n lgIconSize: token('button.lg.icon-size', '48px'),\n fullJustify: token('button.full.justify', 'center'),\n fullAlign: token('button.full.align', 'center'),\n highlight: token('button.highlight', 'inset 0 1px 0 0 rgb(255 255 255 / 0.12)'),\n edge: token('button.edge', '15%'),\n};\n\n/** The \"→\" glyph of the G2 button (8:314), a long thin arrow in the words' colour. */\nconst ARROW_GLYPH = svg`<svg class=\"glyph\" viewBox=\"0 0 15 10\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M0 5h14\" /><path d=\"M9.75 0.75 14 5l-4.25 4.25\" /></svg>`;\n\n/**\n * A button.\n *\n * Two decisions carry the accessibility weight here.\n *\n * **A busy button is not a disabled button.** While an action is in flight the\n * control keeps its place in the tab order and reports `aria-disabled`, rather\n * than taking the native `disabled` attribute. A natively disabled element is\n * removed from the tab order, so a keyboard user who had just activated it\n * loses their focus position to the top of the document — at precisely the\n * moment something is happening that they need to be told about. Activation is\n * blocked in the handler instead.\n *\n * **It renders a real `<button>`.** A `<div role=\"button\">` needs Enter and\n * Space handling, a tabindex, and a disabled story, and it will still not\n * submit a form. The native element already has all of that, correctly, in\n * every browser and every assistive technology.\n\n *\n * **A button that goes somewhere is a link.** With `href` set it renders an\n * `<a>` styled as a button, so it opens in a new tab, shows its address and is\n * announced as a link, which is what it is.\n *\n * **An icon-only button still has a name.** With `icon` set and no words, the\n * button shows the icon alone and `label` becomes its accessible name, so a\n * screen reader says \"Back\" rather than \"button\". Without a `label` an\n * icon-only button is not rendered as icon-only, because it would be nameless\n * (4.1.2).\n *\n * @category action\n * @icon button\n * @slot - The button label.\n * @fires click - When the button is pressed. Not while it is busy or disabled.\n */\nexport class ImpaktButton extends ImpaktElement {\n static formAssociated = true;\n\n static properties = {\n hideOn: { type: String, reflect: true, attribute: 'hide-on' },\n variant: { type: String, reflect: true },\n type: { type: String },\n disabled: { type: Boolean, reflect: true },\n busy: { type: Boolean, reflect: true },\n busyLabel: { type: String, attribute: 'busy-label' },\n full: { type: Boolean, reflect: true },\n fullOnPhone: { type: Boolean, attribute: 'full-on-phone', reflect: true },\n size: { type: String, reflect: true },\n iconBefore: { type: String, attribute: 'icon-before' },\n iconAfter: { type: String, attribute: 'icon-after' },\n href: { type: String },\n icon: { type: String },\n label: { type: String },\n spread: { type: Boolean, reflect: true },\n centred: { type: Boolean, reflect: true },\n };\n\n /** Leave it out on a phone, where a header has no room for it. */\n declare hideOn: 'never' | 'phone';\n /**\n * How much the button asks for attention. `dark` is the strong second\n * choice on a light page, `subtle` a quiet filled one, `danger` an\n * action that removes or cancels something, and `accent` the brand's\n * second colour, for the one action a page is built around.\n */\n declare variant: 'primary' | 'secondary' | 'ghost' | 'dark' | 'subtle' | 'danger' | 'accent' | 'outline';\n /**\n * Put the words at the start and the trailing icon at the far end, as the\n * G2 buttons that run the width of a form or a card do. A `full` button\n * spreads anyway; set `centred` on it to keep its words in the middle.\n */\n declare spread: boolean;\n /** Keep a `full` button's words in the middle rather than spread. */\n declare centred: boolean;\n declare type: 'button' | 'submit' | 'reset';\n declare disabled: boolean;\n declare busy: boolean;\n /** Announced when the button becomes busy. Says what is happening, not that something is. */\n declare busyLabel: string;\n declare full: boolean;\n /** As wide as its space on a phone only, such as a form's send button. */\n declare fullOnPhone: boolean;\n declare size: 'sm' | 'md' | 'lg';\n /** An icon before the words, such as phone or calendar. */\n declare iconBefore:\n | 'none'\n | 'arrow-right'\n | 'arrow-left'\n | 'chevron-right'\n | 'chevron-down'\n | 'check'\n | 'close'\n | 'menu'\n | 'plus'\n | 'minus'\n | 'search'\n | 'external'\n | 'download'\n | 'home'\n | 'phone'\n | 'mail'\n | 'map-pin'\n | 'calendar'\n | 'clock'\n | 'user'\n | 'star'\n | 'heart'\n | 'shield'\n | 'leaf'\n | 'sun'\n | 'bolt'\n | 'key'\n | 'info'\n | 'warning'\n | 'document'\n | 'pound'\n | 'chat'\n | 'grid'\n | 'clipboard'\n | 'map-pinned'\n | 'users'\n | 'radio'\n | 'settings'\n | 'log-out'\n | 'arrow-up-right'\n | 'more'\n | 'upload'\n | 'image'\n | 'lock'\n | 'eye'\n | 'trash'\n | 'pencil'\n | 'qr-code'\n | 'battery';\n /** An icon after the words, such as arrow-right. */\n declare iconAfter:\n | 'none'\n | 'arrow-right'\n | 'arrow-left'\n | 'chevron-right'\n | 'chevron-down'\n | 'check'\n | 'close'\n | 'menu'\n | 'plus'\n | 'minus'\n | 'search'\n | 'external'\n | 'download'\n | 'home'\n | 'phone'\n | 'mail'\n | 'map-pin'\n | 'calendar'\n | 'clock'\n | 'user'\n | 'star'\n | 'heart'\n | 'shield'\n | 'leaf'\n | 'sun'\n | 'bolt'\n | 'key'\n | 'info'\n | 'warning'\n | 'document'\n | 'pound'\n | 'chat'\n | 'grid'\n | 'clipboard'\n | 'map-pinned'\n | 'users'\n | 'radio'\n | 'settings'\n | 'log-out'\n | 'arrow-up-right'\n | 'more'\n | 'upload'\n | 'image'\n | 'lock'\n | 'eye'\n | 'trash'\n | 'pencil'\n | 'qr-code'\n | 'battery';\n /** Where the button goes, when it opens a page rather than doing something here. */\n declare href: string;\n /** Draws the button as this icon alone, a square button (round where the brand rounds its corners). Needs `label`. */\n declare icon:\n | 'none'\n | 'arrow-right'\n | 'arrow-left'\n | 'chevron-right'\n | 'chevron-down'\n | 'check'\n | 'close'\n | 'menu'\n | 'plus'\n | 'minus'\n | 'search'\n | 'external'\n | 'download'\n | 'home'\n | 'phone'\n | 'mail'\n | 'map-pin'\n | 'calendar'\n | 'clock'\n | 'user'\n | 'star'\n | 'heart'\n | 'shield'\n | 'leaf'\n | 'sun'\n | 'bolt'\n | 'key'\n | 'info'\n | 'warning'\n | 'document'\n | 'pound'\n | 'chat'\n | 'grid'\n | 'clipboard'\n | 'map-pinned'\n | 'users'\n | 'radio'\n | 'settings'\n | 'log-out'\n | 'arrow-up-right'\n | 'more'\n | 'upload'\n | 'image'\n | 'lock'\n | 'eye'\n | 'trash'\n | 'pencil'\n | 'qr-code'\n | 'battery';\n /** The accessible name of an icon-only button, such as \"Back\" or \"More actions\". */\n declare label: string;\n\n private internals: ElementInternals | null = null;\n\n constructor() {\n super();\n this.hideOn = 'never';\n this.variant = 'primary';\n this.type = 'button';\n this.disabled = false;\n this.busy = false;\n this.busyLabel = 'Working';\n this.full = false;\n this.fullOnPhone = false;\n this.size = 'md';\n this.iconBefore = 'none';\n this.iconAfter = 'none';\n this.href = '';\n this.icon = 'none';\n this.label = '';\n this.spread = false;\n this.centred = false;\n try {\n this.internals = this.attachInternals();\n } catch {\n this.internals = null;\n }\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n touchTarget('button, a'),\n css`\n @media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }\n :host {\n display: inline-block;\n }\n :host([full]) {\n display: block;\n }\n @media (max-width: 40rem) { :host([full-on-phone]) { display: block; } }\n button, a {\n ${targetSize}\n box-sizing: border-box;\n text-decoration: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ${B.gap};\n inline-size: 100%;\n /* The brand's button shape: 40px in the small type in semibold, or under Noire (G2) Archivo Medium 16, 14 by 20, about 47px tall. */\n min-block-size: ${B.height};\n padding: ${B.paddingBlock} ${B.paddingInline};\n font-family: inherit;\n font-size: ${B.fontSize};\n line-height: ${B.lineHeight};\n font-weight: ${B.weight};\n border-radius: ${t.radiusLg};\n border: ${t.borderThin} solid transparent;\n cursor: pointer;\n transition: background-color 120ms ease-in-out, border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;\n }\n :host([size='sm']) :is(button, a) { min-block-size: ${B.smHeight}; padding: ${B.smPaddingBlock} ${B.smPaddingInline}; font-size: ${B.smFontSize}; line-height: ${B.smLineHeight}; gap: ${B.smGap}; }\n :host([size='lg']) :is(button, a) { min-block-size: ${B.lgHeight}; padding: ${B.lgPaddingBlock} ${space(6)}; font-size: ${B.lgFontSize}; line-height: ${B.lgLineHeight}; }\n /* A full-width button keeps its words in the middle, or spreads them where the brand does, as Noire does unless it is centred. */\n :host([full]:not([centred]):not([spread])) :is(button, a) { justify-content: ${B.fullJustify}; text-align: ${B.fullAlign}; }\n /* Spread: the words at the start, the trailing icon at the far end. */\n :host([spread]) :is(button, a) { justify-content: space-between; text-align: start; }\n .icon { flex: none; inline-size: 1.15em; block-size: 1.15em; }\n /* The cursor is the only thing that changes while busy. Moving or\n recolouring a control the moment it is pressed is how a user loses it. */\n button[aria-disabled='true'] {\n cursor: progress;\n }\n :host([disabled]) button {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n /* Solid: the brand, flat. On an ink band the band sets the brand to the paper, so it reads \"Light\". */\n .primary {\n background: var(--impakt-button-primary, ${t.brand});\n color: var(--impakt-button-on-primary, ${t.onBrand});\n /* A hairline highlight along the top edge, where the brand draws one. Noire is flat. */\n box-shadow: ${t.shadowXs}, ${B.highlight};\n }\n .primary:hover:not([aria-disabled='true']) {\n background: var(--impakt-button-primary-hover, var(--impakt-color-action-hover, ${t.brandHover}));\n color: var(--impakt-button-on-primary, var(--impakt-color-action-on-hover, ${t.onBrand}));\n }\n /* A brand whose buttons turn on hover lifts the trailing arrow a quarter-turn. */\n /* The trailing icon sits in a box as tall as the icon, so it never makes the line taller than the label's (#50). */\n .after { display: inline-flex; align-items: center; flex: none; transition: transform 160ms ease-out; }\n .after.arrow .icon { display: ${B.arrowIcon}; }\n /* The \"→\" of the G2 button, drawn so it does not depend on the font file holding it: as long as the label is high, with a thin stroke and a small head. */\n .after .glyph { display: ${B.arrowGlyph}; inline-size: 0.9375em; block-size: 0.625em; overflow: visible; }\n :is(button, a):hover:not([aria-disabled='true']) .after { transform: rotate(var(--impakt-motion-button-turn, 0deg)); }\n @media (prefers-reduced-motion: reduce) { .after { transition: none; } }\n .primary:active:not([aria-disabled='true']) {\n background: var(--impakt-button-primary-hover, ${t.brandActive});\n }\n\n /*\n * A filled button draws no edge where the brand says so, as Noire does: the G2 button is 14px, the label's 19.2px\n * line and 14px, so 47px tall, and only an outlined one adds its 1px edge, to 49px (#50). Forced colours keep the\n * edge, since there the fill is gone.\n */\n :is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: ${B.solidEdge}; }\n @media (forced-colors: active) { :is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: 1px; } }\n\n /* Outline: the card, a hairline border and the text colour, for the second choice. */\n .secondary {\n background: ${t.surfaceCard};\n color: ${t.text};\n border-color: color-mix(in srgb, ${t.text} ${B.edge}, transparent);\n box-shadow: ${t.shadowXs};\n }\n .secondary:hover:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.surfaceCard}, ${t.text} 4%);\n border-color: color-mix(in srgb, ${t.text} 25%, transparent);\n }\n\n /* Plain: words only until it is pointed at. */\n .ghost {\n background: transparent;\n color: ${t.link};\n }\n .ghost:hover:not([aria-disabled='true']) {\n background: ${t.wash};\n }\n\n /*\n * Dark: the text colour as a fill, the strong second choice on a light page.\n * Its words are the colour that reads on the text colour, which a toned band\n * sets as --impakt-color-text-inverse. They are never the card colour, which\n * a band repaints as a faint wash of its own text, and which left ink words at\n * 10% on an ink fill when this button sat in a banner on an accent band.\n */\n .dark {\n background: ${t.text};\n color: ${INVERSE};\n }\n .dark:hover:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.text}, ${INVERSE} 14%);\n }\n .dark:active:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.text}, ${INVERSE} 24%);\n }\n\n /* Outline: transparent, a 1px border and words in the text colour, the design's \"Ghost\". On an ink band both are the paper. */\n .outline {\n background: transparent;\n color: ${t.text};\n border-color: ${t.text};\n }\n .outline:hover:not([aria-disabled='true']) {\n background: ${t.wash};\n }\n .outline:active:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.text} 10%, transparent);\n }\n\n /* Subtle: a quiet fill, for an action that sits beside the main one. */\n .subtle {\n background: ${t.surfaceInset};\n color: ${t.text};\n }\n .subtle:hover:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.surfaceInset}, ${t.text} 6%);\n }\n .subtle:active:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.surfaceInset}, ${t.text} 12%);\n }\n\n /* Accent: the brand's second colour as a fill, for the one action a page is built around. The words on it are the colour the tokens measured against it. */\n .accent {\n background: ${token('color.accent.default', '#ffd43b')};\n color: ${token('color.accent.on', '#1a1a1a')};\n }\n .accent:hover:not([aria-disabled='true']) {\n background: ${token('color.accent.hover', '#e0bb34')};\n }\n .accent:active:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${token('color.accent.hover', '#e0bb34')}, ${token('color.accent.on', '#1a1a1a')} 10%);\n }\n\n /* Danger: the danger text colour as a fill, so white words on it keep 4.5:1. */\n .danger {\n background: ${t.dangerText};\n color: var(--impakt-solid-card, ${t.surfaceCard});\n }\n .danger:hover:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.dangerText}, ${t.text} 15%);\n }\n .danger:active:not([aria-disabled='true']) {\n background: color-mix(in srgb, ${t.dangerText}, ${t.text} 28%);\n }\n\n /* Icon only: as tall as it is wide, round where the brand rounds its corners and square under Noire. */\n .icon-only {\n inline-size: ${B.iconSize};\n min-inline-size: ${B.iconSize};\n block-size: ${B.iconSize};\n min-block-size: ${B.iconSize};\n padding: 0;\n border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));\n }\n :host([size='sm']) .icon-only { inline-size: 32px; min-inline-size: 32px; block-size: 32px; min-block-size: 32px; padding: 0; }\n :host([size='lg']) .icon-only { inline-size: ${B.lgIconSize}; min-inline-size: ${B.lgIconSize}; block-size: ${B.lgIconSize}; min-block-size: ${B.lgIconSize}; padding: 0; }\n\n .sr-only {\n ${visuallyHidden}\n }\n\n /* Windows High Contrast Mode drops background and border colours, so a\n button styled only by background becomes invisible. A forced-colors\n border puts the boundary back. */\n @media (forced-colors: active) {\n button, a {\n border-color: ButtonBorder;\n }\n }\n `,\n ];\n\n private onClick(event: MouseEvent): void {\n if (this.disabled || this.busy) {\n event.preventDefault();\n event.stopImmediatePropagation();\n return;\n }\n // A shadow-rooted button does not submit the outer form by itself, because\n // the click never reaches it. `requestSubmit` rather than `submit` so that\n // native validation and the submit event both still run.\n if (this.type === 'submit') this.internals?.form?.requestSubmit();\n if (this.type === 'reset') this.internals?.form?.reset();\n }\n\n render(): TemplateResult {\n const iconOnly = Boolean(this.icon && this.icon !== 'none' && this.label);\n const cls = iconOnly ? `${this.variant} icon-only` : this.variant;\n if (iconOnly) {\n const drawn = iconSvg(this.icon);\n if (this.href && !this.disabled) {\n return html`<a class=${cls} href=${this.href} part=\"button\" aria-label=${this.label}>${drawn}</a>`;\n }\n return html`\n <button\n class=${cls}\n type=\"button\"\n part=\"button\"\n aria-label=${this.label}\n ?disabled=${this.disabled}\n aria-disabled=${this.busy ? 'true' : nothing}\n aria-busy=${this.busy ? 'true' : nothing}\n @click=${this.onClick}\n >\n ${drawn}\n ${this.busy ? html`<span class=\"sr-only\">${this.busyLabel}</span>` : nothing}\n </button>\n `;\n }\n const words = html`${iconSvg(this.iconBefore)}<slot></slot>${this.iconAfter && this.iconAfter !== 'none' ? html`<span class=${this.iconAfter === 'arrow-right' ? 'after arrow' : 'after'} aria-hidden=\"true\">${iconSvg(this.iconAfter)}${this.iconAfter === 'arrow-right' ? ARROW_GLYPH : nothing}</span>` : nothing}`;\n if (this.href && !this.disabled) {\n return html`<a class=${this.variant} href=${this.href} part=\"button\">${words}</a>`;\n }\n return html`\n <button\n class=${this.variant}\n type=\"button\"\n part=\"button\"\n ?disabled=${this.disabled}\n aria-disabled=${this.busy ? 'true' : nothing}\n aria-busy=${this.busy ? 'true' : nothing}\n @click=${this.onClick}\n >\n ${words}\n ${this.busy ? html`<span class=\"sr-only\">${this.busyLabel}</span>` : nothing}\n </button>\n `;\n }\n}\n\ncustomElements.define('impakt-button', ImpaktButton);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-button': ImpaktButton;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,MAAM,KAAK,KAAK,eAAoC;AAS7D,IAAM,UAAU,MAAM,sBAAsB,qEAAqE;AAQjH,IAAM,IAAI;AAAA,EACR,QAAQ,MAAM,iBAAiB,MAAM;AAAA,EACrC,cAAc,MAAM,wBAAwB,KAAK;AAAA,EACjD,eAAe,MAAM,yBAAyB,MAAM;AAAA,EACpD,KAAK,MAAM,cAAc,KAAK;AAAA,EAC9B,UAAU,MAAM,oBAAoB,UAAU;AAAA,EAC9C,YAAY,MAAM,sBAAsB,OAAO;AAAA,EAC/C,QAAQ,MAAM,iBAAiB,KAAK;AAAA,EACpC,gBAAgB,MAAM,2BAA2B,KAAK;AAAA,EACtD,UAAU,MAAM,oBAAoB,MAAM;AAAA,EAC1C,iBAAiB,MAAM,4BAA4B,MAAM;AAAA,EACzD,YAAY,MAAM,uBAAuB,UAAU;AAAA,EACnD,cAAc,MAAM,yBAAyB,OAAO;AAAA,EACpD,OAAO,MAAM,iBAAiB,KAAK;AAAA,EACnC,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,OAAO,6BAA6B,KAAK,SAAS,YAAY,OAAO;AAAA;AAAA;AAAA,EAGlF;AACF;AAEA,eAAe,OAAO,iBAAiB,YAAY;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldElement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PII4SJL5.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-EUOBFMWC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldElement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PII4SJL5.js";
|
|
4
4
|
import {
|
|
5
5
|
targetSize
|
|
6
6
|
} from "./chunk-72WNCCDC.js";
|
|
@@ -130,4 +130,4 @@ customElements.define("impakt-checkbox-group", ImpaktCheckboxGroup);
|
|
|
130
130
|
export {
|
|
131
131
|
ImpaktCheckboxGroup
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-F2MFV7RM.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-XX6JZW5N.js";
|
|
4
4
|
import {
|
|
5
5
|
FieldElement
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PII4SJL5.js";
|
|
7
7
|
import {
|
|
8
8
|
space,
|
|
9
9
|
t
|
|
@@ -198,4 +198,4 @@ customElements.define("impakt-chip-group", ImpaktChipGroup);
|
|
|
198
198
|
export {
|
|
199
199
|
ImpaktChipGroup
|
|
200
200
|
};
|
|
201
|
-
//# sourceMappingURL=chunk-
|
|
201
|
+
//# sourceMappingURL=chunk-G7CVRNY5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldElement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PII4SJL5.js";
|
|
4
4
|
import {
|
|
5
5
|
targetSize
|
|
6
6
|
} from "./chunk-72WNCCDC.js";
|
|
@@ -138,4 +138,4 @@ customElements.define("impakt-radio-group", ImpaktRadioGroup);
|
|
|
138
138
|
export {
|
|
139
139
|
ImpaktRadioGroup
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
141
|
+
//# sourceMappingURL=chunk-LSEK5MEZ.js.map
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
space,
|
|
10
10
|
spaceAround,
|
|
11
11
|
t,
|
|
12
|
+
token,
|
|
12
13
|
type
|
|
13
14
|
} from "./chunk-JTCTQBAX.js";
|
|
14
15
|
|
|
@@ -101,9 +102,10 @@ var ImpaktCard = class extends ImpaktElement {
|
|
|
101
102
|
display: flex;
|
|
102
103
|
flex-direction: column;
|
|
103
104
|
background: ${t.surfaceCard};
|
|
104
|
-
|
|
105
|
+
/* A hairline edge and a soft shadow, or under Noire an ink edge and none (card.edge, shadow.sm). The edge is mixed here, so a band that repaints the text repaints it. */
|
|
106
|
+
border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${token("card.edge", "10%")}, transparent);
|
|
105
107
|
border-radius: ${t.radiusXl};
|
|
106
|
-
box-shadow:
|
|
108
|
+
box-shadow: ${t.shadowSm};
|
|
107
109
|
overflow: hidden;
|
|
108
110
|
--ratio: 16 / 9;
|
|
109
111
|
}
|
|
@@ -260,4 +262,4 @@ export {
|
|
|
260
262
|
ImpaktHeading,
|
|
261
263
|
ImpaktText
|
|
262
264
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
265
|
+
//# sourceMappingURL=chunk-LVBYNQ45.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/layout.ts"],"sourcesContent":["import { html, css, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { visuallyHidden as hiddenStyle } from '../base/styles';\nimport { fontSize, fontWeight, lineHeight, space, spaceAround, t, token, type } from '../base/tokens';\n\n/**\n * Layout and typography primitives.\n *\n * These are the components a composition is mostly made of, and they are\n * deliberately dull. Their one job is that spacing, type and colour come from\n * tokens, so that a page built in the CMS cannot contain a hard-coded 13px.\n */\n\n/** Vertical rhythm. Every gap is a spacing token, never a number.\n *\n * @category layout\n * @icon stack\n * @slot - The things being stacked.\n */\nexport class ImpaktStack extends ImpaktElement {\n static properties = {\n gap: { type: String, reflect: true },\n align: { type: String, reflect: true },\n direction: { type: String, reflect: true },\n justify: { type: String, reflect: true },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare gap: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n /** How the items line up across the stack. */\n declare align: 'stretch' | 'start' | 'center' | 'end';\n /** Down the page, or along a row that wraps when it runs out of room, such as a row of buttons. */\n declare direction: 'vertical' | 'horizontal';\n /** Where the items sit along a row. */\n declare justify: 'start' | 'center' | 'end' | 'between';\n /** Space before the stack, from the spacing scale. */\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n /** Space after the stack, from the spacing scale. */\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.gap = 'md';\n this.align = 'stretch';\n this.direction = 'vertical';\n this.justify = 'start';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host {\n display: flex;\n flex-direction: column;\n }\n :host([gap='none']) { gap: 0; }\n :host([gap='xs']) { gap: ${space(1)}; }\n :host([align='start']) { align-items: flex-start; }\n :host([align='center']) { align-items: center; text-align: center; }\n :host([align='end']) { align-items: flex-end; }\n :host([direction='horizontal']) { flex-direction: row; flex-wrap: wrap; align-items: center; }\n :host([direction='horizontal'][align='start']) { align-items: flex-start; }\n :host([direction='horizontal'][align='end']) { align-items: flex-end; }\n :host([direction='horizontal'][align='center']) { text-align: start; }\n :host([justify='center']) { justify-content: center; }\n :host([justify='end']) { justify-content: flex-end; }\n :host([justify='between']) { justify-content: space-between; }\n :host([gap='sm']) { gap: ${space(2)}; }\n :host([gap='md']) { gap: ${space(4)}; }\n :host([gap='lg']) { gap: ${space(6)}; }\n :host([gap='xl']) { gap: ${space(8)}; }\n `,\n ];\n\n render(): TemplateResult {\n return html`<slot></slot>`;\n }\n}\n\n/** A surface. What text is read against, and what contrast is measured from.\n *\n * @category layout\n * @icon card\n * @slot - What sits on the card.\n */\nexport class ImpaktCard extends ImpaktElement {\n static properties = {\n tone: { type: String, reflect: true },\n padding: { type: String, reflect: true },\n imageSrc: { type: String, attribute: 'image-src' },\n imageAlt: { type: String, attribute: 'image-alt' },\n ratio: { type: String, reflect: true },\n badge: { type: String },\n raised: { type: Boolean, reflect: true },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /**\n * The card's surface. Text on a brand card takes the brand's text colour.\n * The default is G2's: white, a 1px ink border and no shadow. `ink` is the\n * text colour as a fill with the words turned over, and `dashed` a\n * transparent card with a dashed ink border, for a slot still to be filled\n * (frames 36:497, 39:513, 39:671).\n */\n declare tone: 'default' | 'subtle' | 'brand' | 'outline' | 'plain' | 'ink' | 'dashed';\n /** Space inside the card. */\n declare padding: 'none' | 'sm' | 'md' | 'lg';\n /** A picture across the top of the card. */\n declare imageSrc: string;\n /** What the picture shows. Leave empty only when it is decoration. */\n declare imageAlt: string;\n /** A short label on the picture, such as \"3 left\". */\n declare badge: string;\n /** The picture's shape. */\n declare ratio: '16:9' | '4:3' | '3:2' | '1:1';\n /** Lifted off the page with a soft shadow and no edge, as a form that floats beside its words is. */\n declare raised: boolean;\n /** Space before the card, from the spacing scale. */\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n /** Space after the card, from the spacing scale. */\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.tone = 'default';\n this.padding = 'lg';\n this.imageSrc = '';\n this.imageAlt = '';\n this.ratio = '16:9';\n this.badge = '';\n this.raised = false;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host {\n display: flex;\n flex-direction: column;\n background: ${t.surfaceCard};\n /* A hairline edge and a soft shadow, or under Noire an ink edge and none (card.edge, shadow.sm). The edge is mixed here, so a band that repaints the text repaints it. */\n border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${token('card.edge', '10%')}, transparent);\n border-radius: ${t.radiusXl};\n box-shadow: ${t.shadowSm};\n overflow: hidden;\n --ratio: 16 / 9;\n }\n :host([tone='subtle']) { background: ${t.surfaceSubtle}; border-color: transparent; box-shadow: none; }\n :host([tone='brand']) { background: ${t.brand}; border-color: transparent; color: ${t.onBrand}; --impakt-eyebrow: ${t.onBrand}; --impakt-color-surface-card: color-mix(in srgb, ${t.onBrand} 10%, transparent); --impakt-color-text-heading: ${t.onBrand}; --impakt-color-text-default: ${t.onBrand}; --impakt-color-text-muted: ${t.onBrand}; --impakt-color-text-link: ${t.onBrand}; }\n :host([tone='outline']) { background: transparent; box-shadow: none; border-color: ${t.rule}; }\n :host([raised]) { border-color: transparent; box-shadow: 0 24px 60px rgb(16 19 23 / 12%), 0 2px 6px rgb(16 19 23 / 6%); border-radius: ${t.radius2xl}; }\n /* Ink: the colours are kept on the host and repainted for what is inside, so the fill is the outer text colour. */\n :host([tone='ink']) { --impakt-card-ink: ${t.text}; --impakt-card-on: var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})); background: var(--impakt-card-ink); color: var(--impakt-card-on); border-color: var(--impakt-card-ink); }\n :host([tone='ink']) .body { --impakt-eyebrow: color-mix(in srgb, var(--impakt-card-on) 72%, var(--impakt-card-ink)); --impakt-color-text-default: var(--impakt-card-on); --impakt-color-text-heading: var(--impakt-card-on); --impakt-color-text-muted: color-mix(in srgb, var(--impakt-card-on) 72%, var(--impakt-card-ink)); --impakt-color-text-link: var(--impakt-card-on); --impakt-color-text-link-hover: var(--impakt-card-on); --impakt-color-text-inverse: var(--impakt-card-ink); --impakt-color-surface-card: color-mix(in srgb, var(--impakt-card-ink) 95%, var(--impakt-card-on)); --impakt-color-line-soft: color-mix(in srgb, var(--impakt-card-ink) 87%, var(--impakt-card-on)); --impakt-button-primary: var(--impakt-card-on); --impakt-button-on-primary: var(--impakt-card-ink); --impakt-button-primary-hover: color-mix(in srgb, var(--impakt-card-on) 86%, var(--impakt-card-ink)); }\n :host([tone='dashed']) { background: transparent; border-style: dashed; }\n :host([tone='plain']) { background: transparent; border-color: transparent; border-radius: 0; box-shadow: none; }\n :host([ratio='4:3']) { --ratio: 4 / 3; }\n :host([ratio='3:2']) { --ratio: 3 / 2; }\n :host([ratio='1:1']) { --ratio: 1 / 1; }\n .body { padding: ${space(6)}; flex: 1; display: flex; flex-direction: column; }\n :host([padding='none']) .body { padding: 0; }\n :host([padding='sm']) .body { padding: ${space(3)}; }\n :host([padding='md']) .body { padding: ${space(4)}; }\n :host([tone='plain']) .body { padding-inline: 0; }\n img { display: block; inline-size: 100%; aspect-ratio: var(--ratio); object-fit: cover; }\n .picture { position: relative; }\n .tag { position: absolute; inset-block-start: ${space(4)}; inset-inline-start: ${space(4)}; padding: ${space(1.5)} ${space(3)}; font-size: ${fontSize('sm')}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); }\n @media (forced-colors: active) { :host { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`${this.imageSrc ? html`<div class=\"picture\"><img src=${this.imageSrc} alt=${this.imageAlt} part=\"image\" />${this.badge ? html`<span class=\"tag\">${this.badge}</span>` : nothing}</div>` : nothing}<div class=\"body\" part=\"body\"><slot></slot></div>`;\n }\n}\n\n/**\n * A heading.\n *\n * `level` is required and renders the matching `<h1>`–`<h6>`, because heading\n * level is document structure rather than appearance: a screen-reader user\n * navigates by it, and a page whose levels skip is a page they cannot skim.\n * Size is a separate property, so a visually small `<h2>` needs no lie about\n * its level — which is the usual reason levels end up wrong.\n\n *\n * @category typography\n * @icon heading\n * @role heading\n * @slot - The heading text.\n */\nexport class ImpaktHeading extends ImpaktElement {\n static properties = {\n level: { type: Number, reflect: true },\n size: { type: String, reflect: true },\n eyebrow: { type: String, reflect: true },\n align: { type: String, reflect: true },\n screenReaderOnly: { type: Boolean, reflect: true, attribute: 'screen-reader-only' },\n };\n\n declare level: 1 | 2 | 3 | 4 | 5 | 6;\n declare size: '5xl' | '4xl' | '3xl' | '2xl' | 'xl' | 'lg' | 'md' | 'sm';\n /** A short label above the heading, such as \"Why Larkfield\". Part of the heading, read before it. */\n declare eyebrow: string;\n declare align: 'start' | 'center';\n /**\n * Read by screen readers and search engines, but not drawn: for a heading\n * whose words are already in a picture, such as a hero drawn as artwork.\n * The page still has its heading; nobody sees it twice. An eyebrow still shows.\n */\n declare screenReaderOnly: boolean;\n\n constructor() {\n super();\n this.level = 2;\n this.size = 'xl';\n this.eyebrow = '';\n this.align = 'start';\n this.screenReaderOnly = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host {\n display: block;\n color: ${t.textHeading};\n font-family: ${t.fontHeading};\n font-weight: ${fontWeight('bold')};\n line-height: ${lineHeight('tight')};\n }\n :host([size='5xl']) { ${type('5xl')} letter-spacing: ${t.trackingTight}; }\n :host([size='4xl']) { ${type('4xl')} letter-spacing: ${t.trackingTight}; }\n :host([size='3xl']) { ${type('3xl')} letter-spacing: ${t.trackingTight}; }\n :host([size='2xl']) { ${type('2xl')} letter-spacing: ${t.trackingTight}; }\n :host([size='xl']) { ${type('xl')} }\n :host([size='lg']) { ${type('lg')} }\n :host([size='md']) { ${type('md')} }\n :host([size='sm']) { ${type('sm')} }\n .h { text-wrap: balance; }\n .h {\n margin: 0;\n font: inherit;\n color: inherit;\n }\n :host([align='center']) { text-align: center; }\n /* Only the words go: an eyebrow over a heading drawn as a picture still shows. */\n :host([screen-reader-only]) .words { ${hiddenStyle} }\n :host([screen-reader-only]:not([eyebrow])) { ${hiddenStyle} }\n .eyebrow {\n display: block;\n margin-block-end: ${space(2)};\n color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${t.brand}));\n font-family: var(--impakt-font-family-eyebrow, ${t.fontBody});\n font-size: var(--impakt-font-size-eyebrow, ${fontSize('sm')});\n font-weight: var(--impakt-font-weight-eyebrow, ${fontWeight('semibold')});\n letter-spacing: 0.06em;\n text-transform: uppercase;\n }\n `,\n ];\n\n render(): TemplateResult {\n // A `role=\"heading\"` with `aria-level` rather than six branches of\n // template. The native element would be marginally better; this is the one\n // place where Lit's lack of a dynamic tag makes the explicit role the\n // honest trade, and the role is fully supported.\n return html`<div class=\"h\" role=\"heading\" aria-level=${this.level} part=\"heading\">\n ${this.eyebrow ? html`<span class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}<span style=\"position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)\">: </span></span>` : nothing}<span class=\"words\"><slot></slot></span>\n </div>`;\n }\n}\n\n/** A paragraph.\n *\n * @category typography\n * @icon text\n * @slot - The paragraph text.\n */\nexport class ImpaktText extends ImpaktElement {\n static properties = {\n size: { type: String, reflect: true },\n tone: { type: String, reflect: true },\n align: { type: String, reflect: true },\n look: { type: String, reflect: true },\n };\n\n declare size: 'sm' | 'md' | 'lg' | 'xl';\n declare tone: 'default' | 'muted';\n declare align: 'start' | 'center';\n /** `code` sets the words in the brand's monospace face on a faint panel, for a line like \"base: main ← compare: you/idea\". */\n declare look: 'prose' | 'code';\n\n constructor() {\n super();\n this.size = 'md';\n this.tone = 'default';\n this.align = 'start';\n this.look = 'prose';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host {\n display: block;\n /* 1.4.8 asks for 1.5 within a paragraph, and it is the default here\n rather than an option, because body text is what it is about. */\n line-height: ${lineHeight('normal')};\n /* 1.4.12 Text Spacing: a user stylesheet must be able to widen this\n without clipping, which a max-width in ch units survives and a\n fixed pixel height does not. */\n max-inline-size: 70ch;\n }\n :host([size='sm']) { ${type('sm')} }\n :host([size='md']) { ${type('md')} }\n :host([size='lg']) { ${type('lg')} }\n :host([size='xl']) { ${type('xl')} }\n p { text-wrap: pretty; }\n :host([tone='muted']) { color: ${t.textMuted}; }\n :host([align='center']) { text-align: center; margin-inline: auto; }\n :host([look='code']) { font-family: ${t.fontMono}; ${type('sm')} padding: ${space(2)} ${space(3)}; border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 6%, transparent); max-inline-size: none; }\n p {\n margin: 0;\n }\n `,\n ];\n\n render(): TemplateResult {\n return html`<p part=\"text\"><slot></slot></p>`;\n }\n}\n\ncustomElements.define('impakt-stack', ImpaktStack);\ncustomElements.define('impakt-card', ImpaktCard);\ncustomElements.define('impakt-heading', ImpaktHeading);\ncustomElements.define('impakt-text', ImpaktText);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-stack': ImpaktStack;\n 'impakt-card': ImpaktCard;\n 'impakt-heading': ImpaktHeading;\n 'impakt-text': ImpaktText;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS,MAAM,KAAK,eAAoC;AAmBjD,IAAM,cAAN,cAA0B,cAAc;AAAA,EAC7C;AAAA,SAAO,aAAa;AAAA,MAClB,KAAK,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACnC,OAAO,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACrC,WAAW,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACzC,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACvC,YAA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AAC/C,eAAe,OAAO,kBAAkB,aAAa;AACrD,eAAe,OAAO,eAAe,UAAU;","names":[]}
|
|
@@ -24,8 +24,37 @@ import {
|
|
|
24
24
|
} from "./chunk-JTCTQBAX.js";
|
|
25
25
|
|
|
26
26
|
// packages/ui/src/components/rows.ts
|
|
27
|
-
import { html, css, nothing } from "lit";
|
|
27
|
+
import { html, css, nothing, unsafeCSS } from "lit";
|
|
28
28
|
var INVERSE = token("color.text.inverse", "var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))");
|
|
29
|
+
var TILE = {
|
|
30
|
+
padding: token("tile.padding", "12px 16px"),
|
|
31
|
+
gap: token("tile.gap", "4px"),
|
|
32
|
+
minHeight: token("tile.min-height", "84px"),
|
|
33
|
+
align: token("tile.align", "stretch"),
|
|
34
|
+
edgeWidth: token("tile.edge-width", "0px"),
|
|
35
|
+
radius: token("tile.radius", "8px"),
|
|
36
|
+
fill: token("tile.fill", "0%"),
|
|
37
|
+
hover: token("tile.hover", "5%"),
|
|
38
|
+
labelFont: token("tile.label.font", "var(--impakt-font-family-body, system-ui, sans-serif)"),
|
|
39
|
+
labelSize: token("tile.label.size", "11px"),
|
|
40
|
+
labelWeight: token("tile.label.weight", "500"),
|
|
41
|
+
labelTracking: token("tile.label.tracking", "0.06em"),
|
|
42
|
+
labelTransform: token("tile.label.transform", "uppercase"),
|
|
43
|
+
valueSize: token("tile.value.size", "34px"),
|
|
44
|
+
/** 1 where the figure is the brand's stat text style, read where the tile is so a compact summary can set it smaller; 0 where it is `valueSize`. */
|
|
45
|
+
valueStat: token("tile.value.stat", "0"),
|
|
46
|
+
valueLineHeight: token("tile.value.line-height", "1.1"),
|
|
47
|
+
valueTracking: token("tile.value.tracking", "0em"),
|
|
48
|
+
valueWeight: token("tile.value.weight", "300"),
|
|
49
|
+
valueSpace: token("tile.value.space", "auto"),
|
|
50
|
+
lgRadius: token("tile.lg.radius", "12px"),
|
|
51
|
+
lgLabelSize: token("tile.lg.label.size", "0.875rem"),
|
|
52
|
+
lgLabelTracking: token("tile.lg.label.tracking", "0em"),
|
|
53
|
+
lgLabelTransform: token("tile.lg.label.transform", "none")
|
|
54
|
+
};
|
|
55
|
+
var TILE_VALUE = unsafeCSS(`calc(var(--impakt-type-stat-size, 3.25rem) * ${TILE.valueStat} + ${TILE.valueSize} * (1 - ${TILE.valueStat}))`);
|
|
56
|
+
var TILE_VALUE_PHONE = unsafeCSS(`calc(2.5rem * ${TILE.valueStat} + ${TILE.valueSize} * (1 - ${TILE.valueStat}))`);
|
|
57
|
+
var TILE_FILL = unsafeCSS(`color-mix(in srgb, ${t.surfaceCard} ${TILE.fill}, ${t.surfaceInset})`);
|
|
29
58
|
var LIGHT = token("font.weight.light", "300");
|
|
30
59
|
var ImpaktStatTile = class extends ImpaktElement {
|
|
31
60
|
static {
|
|
@@ -62,27 +91,29 @@ var ImpaktStatTile = class extends ImpaktElement {
|
|
|
62
91
|
box-sizing: border-box;
|
|
63
92
|
display: flex;
|
|
64
93
|
flex-direction: column;
|
|
65
|
-
align-items:
|
|
66
|
-
gap: ${
|
|
94
|
+
align-items: ${TILE.align};
|
|
95
|
+
gap: ${TILE.gap};
|
|
67
96
|
block-size: 100%;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
border
|
|
71
|
-
|
|
97
|
+
min-block-size: ${TILE.minHeight};
|
|
98
|
+
padding: ${TILE.padding};
|
|
99
|
+
border: ${TILE.edgeWidth} solid ${t.text};
|
|
100
|
+
border-radius: ${TILE.radius};
|
|
101
|
+
background: ${TILE_FILL};
|
|
72
102
|
color: ${t.text};
|
|
73
103
|
text-decoration: none;
|
|
74
104
|
}
|
|
75
|
-
a.tile:hover { background: color-mix(in srgb, ${
|
|
76
|
-
.label { font-family: ${
|
|
77
|
-
/*
|
|
78
|
-
.value {
|
|
105
|
+
a.tile:hover { background: color-mix(in srgb, ${TILE_FILL}, ${t.text} ${TILE.hover}); }
|
|
106
|
+
.label { font-family: ${TILE.labelFont}; font-size: ${TILE.labelSize}; font-weight: ${TILE.labelWeight}; letter-spacing: ${TILE.labelTracking}; text-transform: ${TILE.labelTransform}; color: ${t.textMuted}; }
|
|
107
|
+
/* The figure: light at 34px where the brand derives it, or under Noire (G2) Archivo SemiBold 52/1.04, -4%. A word fits as well as a number. */
|
|
108
|
+
.value { margin-block-start: ${TILE.valueSpace}; font-size: ${TILE_VALUE}; line-height: ${TILE.valueLineHeight}; letter-spacing: ${TILE.valueTracking}; font-weight: ${TILE.valueWeight}; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
79
109
|
.caption { font-size: ${fontSize("sm")}; line-height: 1.45; color: ${t.textMuted}; }
|
|
80
|
-
:host([size='lg']) .tile { min-block-size: 200px; padding: ${space(6)}; }
|
|
110
|
+
:host([size='lg']) .tile { min-block-size: 200px; padding: ${space(6)}; border-radius: ${TILE.lgRadius}; }
|
|
111
|
+
:host([size='lg']) .label { font-size: ${TILE.lgLabelSize}; letter-spacing: ${TILE.lgLabelTracking}; text-transform: ${TILE.lgLabelTransform}; }
|
|
81
112
|
:host([size='lg']) .value { margin-block-start: auto; font-size: 64px; line-height: 1; font-weight: ${LIGHT}; }
|
|
82
113
|
:host([tone='brand']) .tile { background: ${t.brand}; color: ${t.onBrand}; border-color: ${t.brand}; }
|
|
83
114
|
:host([tone='brand']) a.tile:hover { background: ${t.brandHover}; }
|
|
84
115
|
:host([tone='brand']) .label, :host([tone='brand']) .caption { color: ${t.onBrand}; }
|
|
85
|
-
@media (max-width: 40rem) { .value { font-size:
|
|
116
|
+
@media (max-width: 40rem) { .value { font-size: ${TILE_VALUE_PHONE}; } }
|
|
86
117
|
@media (forced-colors: active) { .tile { border: 1px solid CanvasText; } }
|
|
87
118
|
`
|
|
88
119
|
];
|
|
@@ -222,7 +253,7 @@ var ImpaktRow = class extends ImpaktElement {
|
|
|
222
253
|
<div class="start ${this.filled.start ? "" : "empty"}"><slot name="start" @slotchange=${this.onSlot}></slot></div>
|
|
223
254
|
<div class="text">${title}${this.meta ? html`<span class="meta" part="meta">${this.meta}</span>` : nothing}</div>
|
|
224
255
|
<div class="end ${this.filled.end ? "" : "empty"}"><slot name="end" @slotchange=${this.onSlot}></slot></div>
|
|
225
|
-
${this.href ? html`<span class="chevron" aria-hidden="true">${iconSvg("chevron-right", "20px")}</span>` : nothing}
|
|
256
|
+
${this.href && !this.selected ? html`<span class="chevron" aria-hidden="true">${iconSvg("chevron-right", "20px")}</span>` : nothing}
|
|
226
257
|
</div>`;
|
|
227
258
|
}
|
|
228
259
|
};
|
|
@@ -258,14 +289,15 @@ var ImpaktFilterChip = class extends ImpaktElement {
|
|
|
258
289
|
display: inline-flex;
|
|
259
290
|
align-items: center;
|
|
260
291
|
gap: ${space(2)};
|
|
261
|
-
|
|
292
|
+
/* 36px with a hairline edge and medium words, or under Noire 35px with an ink edge (filter-chip.* tokens). */
|
|
293
|
+
min-block-size: ${token("filter-chip.height", "36px")};
|
|
262
294
|
padding: 0 ${space(3.5)};
|
|
263
295
|
font: inherit;
|
|
264
296
|
font-size: ${fontSize("sm")};
|
|
265
|
-
font-weight: ${
|
|
297
|
+
font-weight: ${token("filter-chip.weight", "500")};
|
|
266
298
|
color: ${t.text};
|
|
267
299
|
background: ${t.surfaceCard};
|
|
268
|
-
border: ${t.borderThin} solid ${t.text};
|
|
300
|
+
border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${token("filter-chip.edge", "10%")}, transparent);
|
|
269
301
|
border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
|
|
270
302
|
cursor: pointer;
|
|
271
303
|
white-space: nowrap;
|
|
@@ -304,4 +336,4 @@ export {
|
|
|
304
336
|
ImpaktRow,
|
|
305
337
|
ImpaktFilterChip
|
|
306
338
|
};
|
|
307
|
-
//# sourceMappingURL=chunk-
|
|
339
|
+
//# sourceMappingURL=chunk-MGDX7Z74.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/rows.ts"],"sourcesContent":["import { html, css, nothing, unsafeCSS, type TemplateResult } from 'lit';\nimport { ImpaktElement } from '../base/ImpaktElement';\nimport { focusRing, targetSize, touchTarget, visuallyHidden } from '../base/styles';\nimport { fontSize, fontWeight, space, t, token } from '../base/tokens';\nimport { pageLocale } from '../base/locale';\nimport { iconSvg } from './icon';\nimport { statusPill, statusPillStyles, type StatusTone } from './status-pill-style';\n\n/** The colour that reads on the text colour, which a toned band sets; the card otherwise. */\nconst INVERSE = token('color.text.inverse', 'var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))');\n\n/**\n * The summary tile's shape, from the brand (`tile.*` in `@atomic-ui/design-tokens`). Each\n * fallback is the tile every brand derives: the inset grey, a small capitals label and a light\n * figure at its foot. The Impakt theme sets the G2 tile over it.\n */\nconst TILE = {\n padding: token('tile.padding', '12px 16px'),\n gap: token('tile.gap', '4px'),\n minHeight: token('tile.min-height', '84px'),\n align: token('tile.align', 'stretch'),\n edgeWidth: token('tile.edge-width', '0px'),\n radius: token('tile.radius', '8px'),\n fill: token('tile.fill', '0%'),\n hover: token('tile.hover', '5%'),\n labelFont: token('tile.label.font', 'var(--impakt-font-family-body, system-ui, sans-serif)'),\n labelSize: token('tile.label.size', '11px'),\n labelWeight: token('tile.label.weight', '500'),\n labelTracking: token('tile.label.tracking', '0.06em'),\n labelTransform: token('tile.label.transform', 'uppercase'),\n valueSize: token('tile.value.size', '34px'),\n /** 1 where the figure is the brand's stat text style, read where the tile is so a compact summary can set it smaller; 0 where it is `valueSize`. */\n valueStat: token('tile.value.stat', '0'),\n valueLineHeight: token('tile.value.line-height', '1.1'),\n valueTracking: token('tile.value.tracking', '0em'),\n valueWeight: token('tile.value.weight', '300'),\n valueSpace: token('tile.value.space', 'auto'),\n lgRadius: token('tile.lg.radius', '12px'),\n lgLabelSize: token('tile.lg.label.size', '0.875rem'),\n lgLabelTracking: token('tile.lg.label.tracking', '0em'),\n lgLabelTransform: token('tile.lg.label.transform', 'none'),\n};\n/** The figure's size: the stat text style, or the tile's own size, as `tile.value.stat` says. */\nconst TILE_VALUE = unsafeCSS(`calc(var(--impakt-type-stat-size, 3.25rem) * ${TILE.valueStat} + ${TILE.valueSize} * (1 - ${TILE.valueStat}))`);\n/** On a phone the stat style is 2.5rem; the tile's own size is kept. */\nconst TILE_VALUE_PHONE = unsafeCSS(`calc(2.5rem * ${TILE.valueStat} + ${TILE.valueSize} * (1 - ${TILE.valueStat}))`);\n/** The tile's fill: the card, the inset surface, or a mix, as much of the card as the brand says. */\nconst TILE_FILL = unsafeCSS(`color-mix(in srgb, ${t.surfaceCard} ${TILE.fill}, ${t.surfaceInset})`);\n\n/** The light weight large numbers are set in, 300 when the theme does not say. */\nconst LIGHT = token('font.weight.light', '300');\n\n/**\n * A count with its name: \"UK 4\", \"Active import jobs 12\". A dashboard shows a\n * row of them.\n *\n * **The name comes before the number in the reading order.** A screen reader\n * says \"UK, 4\", which makes sense heard on its own; \"4, UK\" does not. With\n * `href` the whole tile is one link, named by the label, the value and the\n * caption together.\n *\n * **It is the G2 summary tile** (frames 33:451, 36:473, 37:469, 39:770): white,\n * a 1px ink border, the label in the code face, the figure large and tight\n * (a word works as the figure too, such as \"First audit\"), the note under it,\n * and under the note an optional status pill, such as \"All proven\". The\n * status is words, so it does not rest on its dot's colour.\n *\n * @category content\n * @icon badge\n */\nexport class ImpaktStatTile extends ImpaktElement {\n static properties = {\n label: { type: String },\n value: { type: String },\n caption: { type: String },\n href: { type: String },\n tone: { type: String, reflect: true },\n size: { type: String, reflect: true },\n status: { type: String },\n statusTone: { type: String, attribute: 'status-tone' },\n };\n /** What is counted, such as \"UK\" or \"Active import jobs\". */\n declare label: string;\n /** The count or figure, such as \"4\". */\n declare value: string;\n /** A line under the figure, such as \"3 arriving in the next two weeks\". */\n declare caption: string;\n /** Where the tile goes when it is pressed, such as the list it counts. */\n declare href: string;\n /** `plain` is a quiet tile on a card; `brand` is the one figure a screen leads with. */\n declare tone: 'plain' | 'brand';\n /** `lg` sets the figure larger, for the lead figure. */\n declare size: 'md' | 'lg';\n /** A status under the note, drawn as a pill, such as \"All proven\". */\n declare status: string;\n /** The status's tone. */\n declare statusTone: StatusTone;\n\n constructor() {\n super();\n this.label = '';\n this.value = '';\n this.caption = '';\n this.href = '';\n this.tone = 'plain';\n this.size = 'md';\n this.status = '';\n this.statusTone = 'neutral';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n statusPillStyles,\n css`\n :host { display: block; }\n .tile {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: ${TILE.align};\n gap: ${TILE.gap};\n block-size: 100%;\n min-block-size: ${TILE.minHeight};\n padding: ${TILE.padding};\n border: ${TILE.edgeWidth} solid ${t.text};\n border-radius: ${TILE.radius};\n background: ${TILE_FILL};\n color: ${t.text};\n text-decoration: none;\n }\n a.tile:hover { background: color-mix(in srgb, ${TILE_FILL}, ${t.text} ${TILE.hover}); }\n .label { font-family: ${TILE.labelFont}; font-size: ${TILE.labelSize}; font-weight: ${TILE.labelWeight}; letter-spacing: ${TILE.labelTracking}; text-transform: ${TILE.labelTransform}; color: ${t.textMuted}; }\n /* The figure: light at 34px where the brand derives it, or under Noire (G2) Archivo SemiBold 52/1.04, -4%. A word fits as well as a number. */\n .value { margin-block-start: ${TILE.valueSpace}; font-size: ${TILE_VALUE}; line-height: ${TILE.valueLineHeight}; letter-spacing: ${TILE.valueTracking}; font-weight: ${TILE.valueWeight}; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }\n .caption { font-size: ${fontSize('sm')}; line-height: 1.45; color: ${t.textMuted}; }\n :host([size='lg']) .tile { min-block-size: 200px; padding: ${space(6)}; border-radius: ${TILE.lgRadius}; }\n :host([size='lg']) .label { font-size: ${TILE.lgLabelSize}; letter-spacing: ${TILE.lgLabelTracking}; text-transform: ${TILE.lgLabelTransform}; }\n :host([size='lg']) .value { margin-block-start: auto; font-size: 64px; line-height: 1; font-weight: ${LIGHT}; }\n :host([tone='brand']) .tile { background: ${t.brand}; color: ${t.onBrand}; border-color: ${t.brand}; }\n :host([tone='brand']) a.tile:hover { background: ${t.brandHover}; }\n :host([tone='brand']) .label, :host([tone='brand']) .caption { color: ${t.onBrand}; }\n @media (max-width: 40rem) { .value { font-size: ${TILE_VALUE_PHONE}; } }\n @media (forced-colors: active) { .tile { border: 1px solid CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const inner = html`\n <span class=\"label\" part=\"label\">${this.label}</span>\n <span class=\"value\" part=\"value\">${this.value}</span>\n ${this.caption ? html`<span class=\"caption\" part=\"caption\">${this.caption}</span>` : nothing}\n ${statusPill(this.status, this.statusTone)}\n `;\n return this.href ? html`<a class=\"tile\" href=${this.href} part=\"tile\">${inner}</a>` : html`<div class=\"tile\" part=\"tile\">${inner}</div>`;\n }\n}\n\n/**\n * A date as a small block of month and day: \"DEC 2\". It sits at the start of a\n * row, beside what happens on that date.\n *\n * **The full date is what a screen reader hears.** The short month and day are\n * hidden from it, and the date is read in full in the page's language, such as\n * \"2 December 2026\", because \"DEC 2\" said aloud is ambiguous.\n *\n * @category content\n * @icon calendar\n */\nexport class ImpaktDateTile extends ImpaktElement {\n static properties = {\n date: { type: String },\n tone: { type: String, reflect: true },\n };\n /** The date, as YYYY-MM-DD. */\n declare date: string;\n /** `brand` is filled with the brand colour; `plain` is a quiet tile. */\n declare tone: 'brand' | 'plain';\n\n constructor() {\n super();\n this.date = '';\n this.tone = 'brand';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; flex: none; }\n time {\n position: relative;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n inline-size: 48px;\n block-size: 52px;\n border-radius: ${t.radiusLg};\n background: ${t.brand};\n color: ${t.onBrand};\n line-height: 1;\n }\n :host([tone='plain']) time { background: ${t.surfaceInset}; color: ${t.text}; }\n .month { font-size: 10px; font-weight: ${fontWeight('medium')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }\n .day { margin-block-start: ${space(1)}; font-size: 20px; font-weight: ${fontWeight('medium')}; font-variant-numeric: tabular-nums; }\n .sr-only { ${visuallyHidden} }\n @media (forced-colors: active) { time { border: 1px solid CanvasText; } }\n `,\n ];\n\n private parts(): { month: string; day: string; full: string } | null {\n const match = /^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(this.date ?? '');\n if (!match) return null;\n // Noon UTC, so no time zone moves the date to the day before or after.\n const when = new Date(Date.UTC(Number(match[1]), Number(match[2]) - 1, Number(match[3]), 12));\n if (Number.isNaN(when.getTime())) return null;\n const locale = pageLocale(this);\n const say = (options: Intl.DateTimeFormatOptions) => new Intl.DateTimeFormat(locale, { ...options, timeZone: 'UTC' }).format(when);\n return { month: say({ month: 'short' }).replace('.', ''), day: say({ day: 'numeric' }), full: say({ day: 'numeric', month: 'long', year: 'numeric' }) };\n }\n\n render(): TemplateResult {\n const parts = this.parts();\n if (!parts) return html`${nothing}`;\n return html`<time datetime=${this.date} part=\"tile\">\n <span class=\"month\" aria-hidden=\"true\">${parts.month}</span>\n <span class=\"day\" aria-hidden=\"true\">${parts.day}</span>\n <span class=\"sr-only\">${parts.full}</span>\n </time>`;\n }\n}\n\n/**\n * One line in a list: a title, a line of detail under it, and room at the\n * start and the end. It is the task with its tick, the job that needs\n * attention, the delivery with its date, the setting with its arrow.\n *\n * **With `href` the whole row is one target, without nesting controls in a\n * link.** The title is the link, and it is stretched over the row, so the row\n * can be pressed anywhere. Anything in the `end` slot, such as a button, sits\n * above the stretched link and stays its own control, because a button inside\n * a link is two controls a screen reader cannot tell apart (4.1.2).\n *\n * A chevron is drawn at the end of a row that is a link, as the sign that it\n * goes somewhere. Put rows in an element with `role=\"list\"` and give each\n * `role=\"listitem\"` when they are a list, so a screen reader says how many\n * there are.\n *\n * @category content\n * @icon list\n * @slot start - Before the title: a dot, a date tile, a checkbox.\n * @slot end - After the title: a badge, a button.\n */\nexport class ImpaktRow extends ImpaktElement {\n static properties = {\n heading: { type: String },\n meta: { type: String },\n href: { type: String },\n divided: { type: Boolean, reflect: true },\n muted: { type: Boolean, reflect: true },\n selected: { type: Boolean, reflect: true },\n };\n /** The row's title. */\n declare heading: string;\n /** The line of detail under the title, such as \"CY-2026-00421 · Due 20 Nov 2026\". */\n declare meta: string;\n /** Where the row goes when it is pressed. */\n declare href: string;\n /** Draw a hairline above the row, for rows stacked on a card. */\n declare divided: boolean;\n /** Set the title quieter, for something finished, such as a done task. */\n declare muted: boolean;\n /**\n * The row being shown, such as the open case in a list beside it: an ink\n * fill with the words turned over (the paper in dark), and `aria-current`\n * on the row so it is not said by colour alone (frame 37:656).\n */\n declare selected: boolean;\n\n constructor() {\n super();\n this.selected = false;\n this.heading = '';\n this.meta = '';\n this.href = '';\n this.divided = false;\n this.muted = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; }\n :host([divided]) .row { border-block-start: ${t.borderThin} solid ${t.hairline}; }\n .row { position: relative; display: flex; align-items: center; gap: ${space(3)}; padding-block: ${space(3)}; }\n .text { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: ${space(0.5)}; }\n .title { font-size: ${fontSize('md')}; font-weight: ${fontWeight('medium')}; color: ${t.text}; }\n :host([muted]) .title { color: ${t.textMuted}; font-weight: ${fontWeight('regular')}; }\n /* The meta is a label: the code face where the brand sets its labels in one, as G2 does (36:452, 37:646). */\n .meta { font-family: ${t.fontEyebrow}; font-size: ${fontSize('sm')}; color: ${t.textMuted}; }\n a { color: inherit; text-decoration: none; }\n /* The link is stretched over the row, so the row is one target. */\n a::after { content: ''; position: absolute; inset: 0; border-radius: ${t.radius}; }\n a:focus-visible { outline: none; }\n a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n .row:has(a):hover .title { text-decoration: underline; text-underline-offset: 0.2em; }\n .start, .end { flex: none; display: flex; align-items: center; gap: ${space(2)}; }\n .start.empty, .end.empty { display: none; }\n /* Controls at the end stay pressable above the stretched link. */\n .end { position: relative; z-index: 1; }\n .chevron { flex: none; color: ${t.textMuted}; }\n :host([selected]) .row { padding-inline: ${space(4)}; background: ${t.text}; --impakt-color-text-default: ${INVERSE}; --impakt-color-text-muted: color-mix(in srgb, ${INVERSE} 72%, ${t.text}); --impakt-color-text-inverse: ${t.text}; }\n :host([selected]) :is(.title, .meta, .chevron) { color: ${INVERSE}; }\n :host([selected]) .meta, :host([selected]) .chevron { color: color-mix(in srgb, ${INVERSE} 72%, ${t.text}); }\n @media (forced-colors: active) { :host([selected]) .row { outline: 2px solid Highlight; } }\n `,\n ];\n\n private filled = { start: false, end: false };\n\n private onSlot(event: Event): void {\n const slot = event.target as HTMLSlotElement;\n const name = slot.name as 'start' | 'end';\n this.filled = {\n ...this.filled,\n [name]: slot.assignedNodes({ flatten: true }).some((n) => n.nodeType === Node.ELEMENT_NODE || (n.textContent ?? '').trim() !== ''),\n };\n this.requestUpdate();\n }\n\n render(): TemplateResult {\n const title = this.href\n ? html`<a class=\"title\" href=${this.href} part=\"link\">${this.heading}</a>`\n : html`<span class=\"title\" part=\"title\">${this.heading}</span>`;\n return html`<div class=\"row\" part=\"row\" aria-current=${this.selected ? 'true' : nothing}>\n <div class=\"start ${this.filled.start ? '' : 'empty'}\"><slot name=\"start\" @slotchange=${this.onSlot}></slot></div>\n <div class=\"text\">${title}${this.meta ? html`<span class=\"meta\" part=\"meta\">${this.meta}</span>` : nothing}</div>\n <div class=\"end ${this.filled.end ? '' : 'empty'}\"><slot name=\"end\" @slotchange=${this.onSlot}></slot></div>\n ${this.href && !this.selected ? html`<span class=\"chevron\" aria-hidden=\"true\">${iconSvg('chevron-right', '20px')}</span>` : nothing}\n </div>`;\n }\n}\n\n/**\n * A pressable filter: \"UK 4\", \"Completed 27\". A row of them narrows a list.\n *\n * **It is a toggle button.** It carries `aria-pressed`, so a screen reader says\n * whether the filter is on, and it is filled when it is on, so that does not\n * rest on colour alone (1.4.1). When only one filter in a row can be on, the\n * app turns the others off when it hears `impakt-change`.\n *\n * The count is read with the label. Set `count-label` when the number needs its\n * noun to make sense aloud, such as \"4 jobs\".\n *\n * @category action\n * @icon badge\n * @fires {CustomEvent<{ pressed: boolean }>} impakt-change - When the filter is turned on or off.\n */\nexport class ImpaktFilterChip extends ImpaktElement {\n static properties = {\n label: { type: String },\n count: { type: Number },\n countLabel: { type: String, attribute: 'count-label' },\n pressed: { type: Boolean, reflect: true },\n disabled: { type: Boolean, reflect: true },\n };\n declare label: string;\n /** How many things the filter would show. Left out when not set. */\n declare count: number | undefined;\n /** The count in words for a screen reader, such as \"4 jobs\". The number alone when empty. */\n declare countLabel: string;\n declare pressed: boolean;\n declare disabled: boolean;\n\n constructor() {\n super();\n this.label = '';\n this.count = undefined;\n this.countLabel = '';\n this.pressed = false;\n this.disabled = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n touchTarget('button'),\n css`\n :host { display: inline-block; }\n /* The containing block for the words kept for screen readers, so a control scrolled out of a row cannot widen the page. */\n button {\n ${targetSize}\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: ${space(2)};\n /* 36px with a hairline edge and medium words, or under Noire 35px with an ink edge (filter-chip.* tokens). */\n min-block-size: ${token('filter-chip.height', '36px')};\n padding: 0 ${space(3.5)};\n font: inherit;\n font-size: ${fontSize('sm')};\n font-weight: ${token('filter-chip.weight', '500')};\n color: ${t.text};\n background: ${t.surfaceCard};\n border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${token('filter-chip.edge', '10%')}, transparent);\n border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));\n cursor: pointer;\n white-space: nowrap;\n }\n button:hover:not(:disabled) { background: ${t.surfaceInset}; }\n button[aria-pressed='true'] { background: ${t.text}; color: ${INVERSE}; border-color: ${t.text}; }\n button:disabled { cursor: not-allowed; opacity: 0.5; }\n .count { font-variant-numeric: tabular-nums; color: ${t.textMuted}; }\n button[aria-pressed='true'] .count { color: inherit; opacity: 0.8; }\n .sr-only { ${visuallyHidden} }\n @media (forced-colors: active) { button[aria-pressed='true'] { border: 2px solid Highlight; } }\n `,\n ];\n\n private toggle(): void {\n if (this.disabled) return;\n this.pressed = !this.pressed;\n this.dispatchEvent(new CustomEvent('impakt-change', { detail: { pressed: this.pressed }, bubbles: true, composed: true }));\n }\n\n render(): TemplateResult {\n const hasCount = typeof this.count === 'number' && !Number.isNaN(this.count);\n return html`<button type=\"button\" part=\"button\" aria-pressed=${this.pressed ? 'true' : 'false'} ?disabled=${this.disabled} @click=${this.toggle}>\n <span>${this.label}</span>\n ${\n hasCount\n ? this.countLabel\n ? html`<span class=\"count\" aria-hidden=\"true\">${this.count}</span><span class=\"sr-only\">${this.countLabel}</span>`\n : html`<span class=\"count\">${this.count}</span>`\n : nothing\n }\n </button>`;\n }\n}\n\ncustomElements.define('impakt-stat-tile', ImpaktStatTile);\ncustomElements.define('impakt-date-tile', ImpaktDateTile);\ncustomElements.define('impakt-row', ImpaktRow);\ncustomElements.define('impakt-filter-chip', ImpaktFilterChip);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-stat-tile': ImpaktStatTile;\n 'impakt-date-tile': ImpaktDateTile;\n 'impakt-row': ImpaktRow;\n 'impakt-filter-chip': ImpaktFilterChip;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,MAAM,KAAK,SAAS,iBAAsC;AASnE,IAAM,UAAU,MAAM,sBAAsB,qEAAqE;AAOjH,IAAM,OAAO;AAAA,EACX,SAAS,MAAM,gBAAgB,WAAW;AAAA,EAC1C,KAAK,MAAM,YAAY,KAAK;AAAA,EAC5B,WAAW,MAAM,mBAAmB,MAAM;AAAA,EAC1C,OAAO,MAAM,cAAc,SAAS;AAAA,EACpC,WAAW,MAAM,mBAAmB,KAAK;AAAA,EACzC,QAAQ,MAAM,eAAe,KAAK;AAAA,EAClC,MAAM,MAAM,aAAa,IAAI;AAAA,EAC7B,OAAO,MAAM,cAAc,IAAI;AAAA,EAC/B,WAAW,MAAM,mBAAmB,uDAAuD;AAAA,EAC3F,WAAW,MAAM,mBAAmB,MAAM;AAAA,EAC1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,IAAI;AAAA;AAAA,0DAExC,EAAE,SAAS;AAAA;AAAA,iBAEpD,cAAc;AAAA;AAAA;AAAA,IAG7B;AAAA;AAAA,EAEQ,SAAe;AACrB,QAAI,KAAK,SAAU;AACnB,SAAK,UAAU,CAAC,KAAK;AACrB,SAAK,cAAc,IAAI,YAAY,iBAAiB,EAAE,QAAQ,EAAE,SAAS,KAAK,QAAQ,GAAG,SAAS,MAAM,UAAU,KAAK,CAAC,CAAC;AAAA,EAC3H;AAAA,EAEA,SAAyB;AACvB,UAAM,WAAW,OAAO,KAAK,UAAU,YAAY,CAAC,OAAO,MAAM,KAAK,KAAK;AAC3E,WAAO,wDAAwD,KAAK,UAAU,SAAS,OAAO,cAAc,KAAK,QAAQ,WAAW,KAAK,MAAM;AAAA,cACrI,KAAK,KAAK;AAAA,QAEhB,WACI,KAAK,aACH,8CAA8C,KAAK,KAAK,gCAAgC,KAAK,UAAU,YACvG,2BAA2B,KAAK,KAAK,YACvC,OACN;AAAA;AAAA,EAEJ;AACF;AAEA,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,cAAc,SAAS;AAC7C,eAAe,OAAO,sBAAsB,gBAAgB;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldElement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PII4SJL5.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-P5FAKEFK.js.map
|