@atomic-ui/ui 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/dist/base/tokens.d.ts +23 -1
- package/dist/{chunk-CFGLOYWW.js → chunk-2YQA3VBY.js} +2 -2
- package/dist/{chunk-DR3SJ7ZV.js → chunk-4HU4Y23Q.js} +3 -3
- package/dist/{chunk-QH46SOPJ.js → chunk-5EA4IDUD.js} +54 -11
- package/dist/chunk-5EA4IDUD.js.map +1 -0
- package/dist/{chunk-3OSL2HMN.js → chunk-6ICOJPMD.js} +7 -5
- package/dist/chunk-6ICOJPMD.js.map +1 -0
- package/dist/{chunk-DI2CJ3MZ.js → chunk-7BIQ3K6H.js} +2 -2
- package/dist/{chunk-AXQ5YBN2.js → chunk-7Y6UCSUS.js} +135 -10
- package/dist/chunk-7Y6UCSUS.js.map +1 -0
- package/dist/{chunk-G6UVYMA6.js → chunk-BTGCUONV.js} +2 -2
- package/dist/{chunk-4JKUAA6K.js → chunk-C36CZRHK.js} +14 -5
- package/dist/chunk-C36CZRHK.js.map +1 -0
- package/dist/{chunk-ZDYTNFQI.js → chunk-CMAU4DSB.js} +15 -5
- package/dist/chunk-CMAU4DSB.js.map +1 -0
- package/dist/{chunk-HWNY6U5F.js → chunk-G6OVKNL7.js} +2 -2
- package/dist/{chunk-6UDDZQDK.js → chunk-GO2IBRFP.js} +3 -3
- package/dist/chunk-GO2IBRFP.js.map +1 -0
- package/dist/{chunk-KWURASAB.js → chunk-GSCVG2ER.js} +3 -3
- package/dist/{chunk-IBTOZOGI.js → chunk-HWWA27DN.js} +2 -2
- package/dist/{chunk-U2S7OESF.js → chunk-MLVUMCQ2.js} +45 -13
- package/dist/chunk-MLVUMCQ2.js.map +1 -0
- package/dist/{chunk-4AJPS5AU.js → chunk-MOEMFL4K.js} +15 -5
- package/dist/chunk-MOEMFL4K.js.map +1 -0
- package/dist/{chunk-5RVMMKMO.js → chunk-NQKYHILD.js} +3 -3
- package/dist/{chunk-5NUF7ZQA.js → chunk-NTNXHLTM.js} +24 -3
- package/dist/chunk-NTNXHLTM.js.map +1 -0
- package/dist/{chunk-OFAVRPRK.js → chunk-OB7LC6NJ.js} +2 -2
- package/dist/chunk-OB7LC6NJ.js.map +1 -0
- package/dist/chunk-QCNT7D5V.js +549 -0
- package/dist/chunk-QCNT7D5V.js.map +1 -0
- package/dist/{chunk-H6L3FSQY.js → chunk-QDNI54ON.js} +3 -3
- package/dist/{chunk-QELX47AP.js → chunk-T6L3USBZ.js} +31 -20
- package/dist/chunk-T6L3USBZ.js.map +1 -0
- package/dist/{chunk-TZD7IVVQ.js → chunk-TPF4MOMF.js} +8 -3
- package/dist/chunk-TPF4MOMF.js.map +1 -0
- package/dist/{chunk-S3EQO33M.js → chunk-VTFCTWSX.js} +6 -4
- package/dist/chunk-VTFCTWSX.js.map +1 -0
- package/dist/{chunk-2RBYVWZT.js → chunk-VWNBB7FW.js} +5 -3
- package/dist/chunk-VWNBB7FW.js.map +1 -0
- package/dist/{chunk-6GKI67P7.js → chunk-WECSVHIM.js} +2 -2
- package/dist/chunk-X7IPZPTG.js +710 -0
- package/dist/chunk-X7IPZPTG.js.map +1 -0
- package/dist/{chunk-57P4WO4Y.js → chunk-XJP45LFA.js} +28 -21
- package/dist/chunk-XJP45LFA.js.map +1 -0
- package/dist/{chunk-6MLXFFH4.js → chunk-XVKEM5JY.js} +3 -3
- package/dist/chunk-XVKEM5JY.js.map +1 -0
- package/dist/chunk-ZBLTU67D.js +424 -0
- package/dist/chunk-ZBLTU67D.js.map +1 -0
- package/dist/{chunk-JPEWRJSQ.js → chunk-ZGAOMRYD.js} +3 -3
- package/dist/{chunk-LLRJU7XE.js → chunk-ZQJD4YEJ.js} +6 -6
- package/dist/chunk-ZQJD4YEJ.js.map +1 -0
- package/dist/components/accordion.js +2 -2
- package/dist/components/alert.js +2 -2
- package/dist/components/app-ui.d.ts +421 -0
- package/dist/components/app-ui.js +26 -0
- package/dist/components/app-ui.js.map +1 -0
- package/dist/components/blocks.d.ts +2 -2
- package/dist/components/blocks.js +3 -3
- package/dist/components/button.d.ts +7 -0
- package/dist/components/button.js +3 -3
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +3 -3
- package/dist/components/date-input.js +3 -3
- package/dist/components/dialog.js +2 -2
- package/dist/components/fieldset.js +2 -2
- package/dist/components/grid.d.ts +2 -2
- package/dist/components/grid.js +2 -2
- package/dist/components/help.js +2 -2
- package/dist/components/icon.js +2 -2
- package/dist/components/layout.d.ts +10 -5
- package/dist/components/layout.js +2 -2
- package/dist/components/link.js +3 -3
- package/dist/components/marketing.d.ts +119 -6
- package/dist/components/marketing.js +7 -3
- package/dist/components/media.js +2 -2
- package/dist/components/navigation.d.ts +9 -2
- package/dist/components/navigation.js +3 -3
- package/dist/components/organisms.d.ts +547 -0
- package/dist/components/organisms.js +25 -0
- package/dist/components/organisms.js.map +1 -0
- package/dist/components/page.d.ts +14 -3
- package/dist/components/page.js +2 -2
- package/dist/components/price.d.ts +5 -0
- package/dist/components/price.js +2 -2
- package/dist/components/progress.js +2 -2
- package/dist/components/property.d.ts +389 -0
- package/dist/components/property.js +19 -0
- package/dist/components/property.js.map +1 -0
- package/dist/components/radio-group.js +3 -3
- package/dist/components/select.js +3 -3
- package/dist/components/summary-list.js +2 -2
- package/dist/components/table.js +2 -2
- package/dist/components/text-input.js +3 -3
- package/dist/components/textarea.js +3 -3
- package/dist/index.d.ts +4 -1
- package/dist/index.js +94 -40
- package/package.json +2 -2
- package/dist/chunk-2RBYVWZT.js.map +0 -1
- package/dist/chunk-3OSL2HMN.js.map +0 -1
- package/dist/chunk-4AJPS5AU.js.map +0 -1
- package/dist/chunk-4JKUAA6K.js.map +0 -1
- package/dist/chunk-57P4WO4Y.js.map +0 -1
- package/dist/chunk-5NUF7ZQA.js.map +0 -1
- package/dist/chunk-6MLXFFH4.js.map +0 -1
- package/dist/chunk-6UDDZQDK.js.map +0 -1
- package/dist/chunk-AXQ5YBN2.js.map +0 -1
- package/dist/chunk-LLRJU7XE.js.map +0 -1
- package/dist/chunk-OFAVRPRK.js.map +0 -1
- package/dist/chunk-QELX47AP.js.map +0 -1
- package/dist/chunk-QH46SOPJ.js.map +0 -1
- package/dist/chunk-S3EQO33M.js.map +0 -1
- package/dist/chunk-TZD7IVVQ.js.map +0 -1
- package/dist/chunk-U2S7OESF.js.map +0 -1
- package/dist/chunk-ZDYTNFQI.js.map +0 -1
- /package/dist/{chunk-CFGLOYWW.js.map → chunk-2YQA3VBY.js.map} +0 -0
- /package/dist/{chunk-DR3SJ7ZV.js.map → chunk-4HU4Y23Q.js.map} +0 -0
- /package/dist/{chunk-DI2CJ3MZ.js.map → chunk-7BIQ3K6H.js.map} +0 -0
- /package/dist/{chunk-G6UVYMA6.js.map → chunk-BTGCUONV.js.map} +0 -0
- /package/dist/{chunk-HWNY6U5F.js.map → chunk-G6OVKNL7.js.map} +0 -0
- /package/dist/{chunk-KWURASAB.js.map → chunk-GSCVG2ER.js.map} +0 -0
- /package/dist/{chunk-IBTOZOGI.js.map → chunk-HWWA27DN.js.map} +0 -0
- /package/dist/{chunk-5RVMMKMO.js.map → chunk-NQKYHILD.js.map} +0 -0
- /package/dist/{chunk-H6L3FSQY.js.map → chunk-QDNI54ON.js.map} +0 -0
- /package/dist/{chunk-6GKI67P7.js.map → chunk-WECSVHIM.js.map} +0 -0
- /package/dist/{chunk-JPEWRJSQ.js.map → chunk-ZGAOMRYD.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/blocks.ts"],"sourcesContent":["import { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpktElement } from '../base/ImpktElement';\nimport { focusRing, targetSize, visuallyHidden } from '../base/styles';\nimport { fontSize, fontWeight, lineHeight, space, spaceAround, t } from '../base/tokens';\nimport { iconSvg } from './icon';\n\n/**\n * A line between two parts of a page.\n *\n * It is decoration, so a screen reader passes over it. Where the change of\n * subject matters, a heading says so better.\n *\n * @category layout\n * @icon divider\n */\nexport class ImpktDivider extends ImpktElement {\n static properties = {\n spacing: { type: String, reflect: true },\n tone: { type: String, reflect: true },\n };\n /** Space above and below the line. */\n declare spacing: 'sm' | 'md' | 'lg' | 'xl';\n declare tone: 'subtle' | 'strong';\n\n constructor() {\n super();\n this.spacing = 'md';\n this.tone = 'subtle';\n }\n\n static styles = [...ImpktElement.styles, css`\n :host { display: block; }\n hr { margin: ${space(4)} 0; border: 0; border-block-start: ${t.borderThin} solid ${t.border}; opacity: 0.5; }\n :host([tone='strong']) hr { opacity: 1; border-block-start-width: ${t.borderThick}; }\n :host([spacing='sm']) hr { margin-block: ${space(2)}; }\n :host([spacing='lg']) hr { margin-block: ${space(8)}; }\n :host([spacing='xl']) hr { margin-block: ${space(12)}; }\n `];\n\n render(): TemplateResult {\n return html`<hr aria-hidden=\"true\" part=\"line\" />`;\n }\n}\n\n/**\n * Empty space, from the spacing scale, for the rare place where the gaps of the\n * containers around it are not enough.\n *\n * @category layout\n * @icon spacer\n */\nexport class ImpktSpacer extends ImpktElement {\n static properties = { size: { type: String, reflect: true } };\n declare size: 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.size = 'md';\n }\n\n static styles = [...ImpktElement.styles, css`\n :host { display: block; block-size: ${space(4)}; }\n :host([size='sm']) { block-size: ${space(2)}; }\n :host([size='lg']) { block-size: ${space(8)}; }\n :host([size='xl']) { block-size: ${space(12)}; }\n :host([size='2xl']) { block-size: ${space(16)}; }\n `];\n\n render(): TemplateResult {\n return html``;\n }\n}\n\n/**\n * Words a screen reader says that are not shown: \"(opens a map)\" after a link\n * whose purpose is clear on screen from where it sits.\n *\n * @category typography\n * @icon hidden\n * @slot - The words to say.\n */\nexport class ImpktVisuallyHidden extends ImpktElement {\n static styles = [...ImpktElement.styles, css`:host { ${visuallyHidden} }`];\n render(): TemplateResult {\n return html`<slot></slot>`;\n }\n}\n\n/** One tab and what it shows. */\nexport interface TabItem {\n id: string;\n label: string;\n body: string;\n}\n\n/**\n * Panels of content behind a row of tabs, one shown at a time: the floor plans\n * of three house types, or what is included and what costs extra.\n *\n * It follows the ARIA tabs pattern. The tabs are one stop in the tab order,\n * the arrow keys, Home and End move between them, and each panel is labelled\n * by its tab. Use an accordion instead when someone may want to compare panels.\n *\n * @category content\n * @icon tabs\n * @fires impkt-change - When another tab is chosen.\n */\nexport class ImpktTabs extends ImpktElement {\n static properties = {\n items: { type: Array },\n selected: { type: String, reflect: true },\n label: { type: String },\n };\n declare items: TabItem[];\n /** The id of the tab shown first. The first tab when it is empty. */\n declare selected: string;\n /** What the set of tabs is about, for a screen reader. */\n declare label: string;\n\n constructor() {\n super();\n this.items = [];\n this.selected = '';\n this.label = '';\n }\n\n static styles = [...ImpktElement.styles, focusRing, css`\n :host { display: block; }\n [role='tablist'] { display: flex; flex-wrap: wrap; gap: ${space(1)}; border-block-end: ${t.borderThin} solid ${t.border}; }\n [role='tab'] { ${targetSize} padding: ${space(3)} ${space(4)}; font: inherit; font-weight: ${fontWeight('semibold')}; color: ${t.textMuted}; background: transparent; border: 0; border-block-end: 3px solid transparent; margin-block-end: -1px; cursor: pointer; border-radius: ${t.radius} ${t.radius} 0 0; }\n [role='tab']:hover { color: ${t.text}; background: ${t.surfaceInset}; }\n [role='tab'][aria-selected='true'] { color: ${t.link}; border-block-end-color: currentColor; }\n [role='tabpanel'] { padding-block: ${space(5)}; line-height: ${lineHeight('normal')}; white-space: pre-line; }\n @media (forced-colors: active) { [role='tab'][aria-selected='true'] { border-block-end-color: Highlight; } }\n `];\n\n private current(): string {\n const items = this.items ?? [];\n return items.some((i) => i.id === this.selected) ? this.selected : items[0]?.id ?? '';\n }\n\n private choose(id: string, focus: boolean): void {\n if (id === this.current()) return;\n this.selected = id;\n this.dispatchEvent(new CustomEvent('impkt-change', { detail: { value: id }, bubbles: true, composed: true }));\n if (focus) void this.updateComplete.then(() => this.renderRoot.querySelector<HTMLElement>(`#${this.id_(`tab-${id}`)}`)?.focus());\n }\n\n private onKey(event: KeyboardEvent): void {\n const items = this.items ?? [];\n const at = items.findIndex((i) => i.id === this.current());\n const to = { ArrowRight: at + 1, ArrowLeft: at - 1, Home: 0, End: items.length - 1 }[event.key];\n if (to === undefined || !items.length) return;\n event.preventDefault();\n this.choose(items[(to + items.length) % items.length]!.id, true);\n }\n\n render(): TemplateResult {\n const items = this.items ?? [];\n const current = this.current();\n return html`<div role=\"tablist\" aria-label=${this.label || nothing} part=\"tabs\" @keydown=${this.onKey}>\n ${items.map((item) => html`<button role=\"tab\" type=\"button\" id=${this.id_(`tab-${item.id}`)} aria-selected=${item.id === current ? 'true' : 'false'} aria-controls=${this.id_(`panel-${item.id}`)} tabindex=${item.id === current ? '0' : '-1'} @click=${() => this.choose(item.id, false)}>${item.label}</button>`)}\n </div>\n ${items.map((item) => html`<div role=\"tabpanel\" id=${this.id_(`panel-${item.id}`)} aria-labelledby=${this.id_(`tab-${item.id}`)} tabindex=\"0\" ?hidden=${item.id !== current} part=\"panel\">${item.body}</div>`)}`;\n }\n}\n\n/** One card in a row of them. */\nexport interface CardItem {\n id?: string;\n heading: string;\n text?: string;\n imageSrc?: string;\n imageAlt?: string;\n href?: string;\n badge?: string;\n}\n\n/**\n * A row of cards, each a picture, a heading, a line of text and a link: the\n * developments on a developments page, or the house types at one of them.\n *\n * **The whole card is the link's target, and the heading is its name.** The\n * link is on the heading, so a screen reader hears \"Larkfield Meadows, link\"\n * once rather than the whole card read out as one long link, and a pointer\n * can still press anywhere on the card.\n *\n * @category content\n * @icon cards\n */\nexport class ImpktCardGrid extends ImpktElement {\n static properties = {\n items: { type: Array },\n columns: { type: String, reflect: true },\n headingLevel: { type: Number, attribute: 'heading-level' },\n ratio: { 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 items: CardItem[];\n declare columns: 'two' | 'three' | 'four';\n /** The level of each card's heading. One below the heading above the cards. */\n declare headingLevel: 2 | 3 | 4;\n /** The shape of each card's picture. */\n declare ratio: '16:9' | '4:3' | '3:2' | '1:1';\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.columns = 'three';\n this.headingLevel = 3;\n this.ratio = '4:3';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [...ImpktElement.styles, focusRing, spaceAround, css`\n :host { display: block; container-type: inline-size; --ratio: 4 / 3; }\n :host([ratio='16:9']) { --ratio: 16 / 9; }\n :host([ratio='3:2']) { --ratio: 3 / 2; }\n :host([ratio='1:1']) { --ratio: 1 / 1; }\n ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${space(6)}; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n :host([columns='two']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n :host([columns='four']) ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n li { position: relative; display: flex; flex-direction: column; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.hairline}; border-radius: ${t.radiusXl}; box-shadow: ${t.shadowSm}; overflow: hidden; transition: box-shadow 150ms ease-in-out, transform 150ms ease-in-out; }\n li.linked:hover { box-shadow: ${t.shadowLg}; transform: translateY(-2px); }\n img { display: block; inline-size: 100%; aspect-ratio: var(--ratio); object-fit: cover; }\n .words { display: flex; flex-direction: column; gap: ${space(2)}; padding: ${space(5)}; flex: 1; }\n .h { margin: 0; color: ${t.textHeading}; font-family: ${t.fontHeading}; font-size: ${fontSize('lg')}; font-weight: ${fontWeight('bold')}; line-height: ${lineHeight('tight')}; }\n .h a { color: inherit; text-decoration: none; border-radius: ${t.radiusSm}; }\n .h a::after { content: ''; position: absolute; inset: 0; }\n li.linked:hover .h a { text-decoration: underline; text-underline-offset: 0.2em; }\n .body { margin: 0; line-height: ${lineHeight('normal')}; }\n .badge { align-self: flex-start; padding: ${space(0.5)} ${space(2)}; border-radius: ${t.radius}; font-size: ${fontSize('xs')}; font-weight: ${fontWeight('medium')}; background: ${t.brandSubtle}; color: ${t.brand}; box-shadow: inset 0 0 0 1px ${t.hairline}; }\n .more { margin-block-start: auto; display: inline-flex; align-items: center; gap: ${space(1)}; color: ${t.link}; font-weight: ${fontWeight('semibold')}; }\n @container (max-width: 48rem) { ul, :host([columns='four']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n @container (max-width: 32rem) { ul, :host([columns='two']) ul, :host([columns='four']) ul { grid-template-columns: minmax(0, 1fr); } }\n `];\n\n render(): TemplateResult {\n return html`<ul part=\"list\">${(this.items ?? []).map((card) => html`<li class=${card.href ? 'linked' : ''} part=\"card\">\n ${card.imageSrc ? html`<img src=${card.imageSrc} alt=${card.imageAlt ?? ''} loading=\"lazy\" />` : nothing}\n <div class=\"words\">\n ${card.badge ? html`<span class=\"badge\">${card.badge}</span>` : nothing}\n <div class=\"h\" role=\"heading\" aria-level=${this.headingLevel}>${card.href ? html`<a href=${card.href}>${card.heading}</a>` : card.heading}</div>\n ${card.text ? html`<p class=\"body\">${card.text}</p>` : nothing}\n ${card.href ? html`<span class=\"more\" aria-hidden=\"true\">${iconSvg('arrow-right', '1em')}</span>` : nothing}\n </div>\n </li>`)}</ul>`;\n }\n}\n\ncustomElements.define('impkt-divider', ImpktDivider);\ncustomElements.define('impkt-spacer', ImpktSpacer);\ncustomElements.define('impkt-visually-hidden', ImpktVisuallyHidden);\ncustomElements.define('impkt-tabs', ImpktTabs);\ncustomElements.define('impkt-card-grid', ImpktCardGrid);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impkt-divider': ImpktDivider; 'impkt-spacer': ImpktSpacer; 'impkt-visually-hidden': ImpktVisuallyHidden; 'impkt-tabs': ImpktTabs; 'impkt-card-grid': ImpktCardGrid;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,KAAK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KAAK,SAAS,CAAC,GAAG,IAAI,CAAC,SAAS,iBAAiB,KAAK,OAAO,WAAW,EAAE;AAAA,QACrG,KAAK,WAAW,gBAAgB,KAAK,QAAQ,QAAQ,KAAK,YAAY,EAAE,uBAAuB,OAAO;AAAA;AAAA,UAEpG,KAAK,QAAQ,2BAA2B,KAAK,KAAK,YAAY,OAAO;AAAA,mDAC5B,KAAK,YAAY,IAAI,KAAK,OAAO,eAAe,KAAK,IAAI,IAAI,KAAK,OAAO,SAAS,KAAK,OAAO;AAAA,UACvI,KAAK,OAAO,uBAAuB,KAAK,IAAI,SAAS,OAAO;AAAA,UAC5D,KAAK,OAAO,6CAA6C,QAAQ,eAAe,KAAK,CAAC,YAAY,OAAO;AAAA;AAAA,UAEzG,CAAC;AAAA,EACT;AACF;AAEA,eAAe,OAAO,iBAAiB,YAAY;AACnD,eAAe,OAAO,gBAAgB,WAAW;AACjD,eAAe,OAAO,yBAAyB,mBAAmB;AAClE,eAAe,OAAO,cAAc,SAAS;AAC7C,eAAe,OAAO,mBAAmB,aAAa;","names":[]}
|
package/dist/components/alert.js
CHANGED
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { FieldElement } from '../base/FieldElement';
|
|
3
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
4
|
+
/**
|
|
5
|
+
* A panel that slides in from the side: a basket, filters, a plot's details.
|
|
6
|
+
*
|
|
7
|
+
* It is a native `<dialog>` opened with `showModal()`, like the dialog, so the
|
|
8
|
+
* focus trap, Escape, the inert page behind it and the return of focus all come
|
|
9
|
+
* from the browser. The slide is a decoration and stops for anyone who has
|
|
10
|
+
* asked for reduced motion.
|
|
11
|
+
*
|
|
12
|
+
* @category feedback
|
|
13
|
+
* @icon drawer
|
|
14
|
+
* @slot - The body of the panel.
|
|
15
|
+
* @slot footer - Buttons pinned to the bottom of the panel.
|
|
16
|
+
* @fires impkt-close - When the panel is closed.
|
|
17
|
+
*/
|
|
18
|
+
export declare class ImpktDrawer extends ImpktElement {
|
|
19
|
+
static properties: {
|
|
20
|
+
open: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
reflect: boolean;
|
|
23
|
+
};
|
|
24
|
+
heading: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
};
|
|
27
|
+
side: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
reflect: boolean;
|
|
30
|
+
};
|
|
31
|
+
closeLabel: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
attribute: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
open: boolean;
|
|
37
|
+
heading: string;
|
|
38
|
+
side: 'left' | 'right';
|
|
39
|
+
closeLabel: string;
|
|
40
|
+
constructor();
|
|
41
|
+
static styles: import("lit").CSSResult[];
|
|
42
|
+
private hasFooter;
|
|
43
|
+
private get dialog();
|
|
44
|
+
updated(changed: Map<string, unknown>): void;
|
|
45
|
+
private close;
|
|
46
|
+
private footerChanged;
|
|
47
|
+
render(): TemplateResult;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A short message in the corner that goes away: "Viewing booked", "Saved".
|
|
51
|
+
*
|
|
52
|
+
* It says itself to a screen reader through a live region, and its timer stops
|
|
53
|
+
* while it is pointed at or focused. Set `duration` to 0 to keep it up until it
|
|
54
|
+
* is closed. Anything a person must act on belongs in an alert on the page.
|
|
55
|
+
*
|
|
56
|
+
* @category feedback
|
|
57
|
+
* @icon toast
|
|
58
|
+
* @fires impkt-close - When the message goes away.
|
|
59
|
+
* @fires impkt-action - When its button is pressed.
|
|
60
|
+
*/
|
|
61
|
+
export declare class ImpktToast extends ImpktElement {
|
|
62
|
+
static properties: {
|
|
63
|
+
open: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
reflect: boolean;
|
|
66
|
+
};
|
|
67
|
+
message: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
};
|
|
70
|
+
tone: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
reflect: boolean;
|
|
73
|
+
};
|
|
74
|
+
duration: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
};
|
|
77
|
+
actionText: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
attribute: string;
|
|
80
|
+
};
|
|
81
|
+
closeLabel: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
attribute: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
open: boolean;
|
|
87
|
+
message: string;
|
|
88
|
+
tone: 'neutral' | 'success' | 'warning' | 'danger';
|
|
89
|
+
/** How long it stays. 0 keeps it up until it is closed. */
|
|
90
|
+
duration: number;
|
|
91
|
+
actionText: string;
|
|
92
|
+
closeLabel: string;
|
|
93
|
+
private timer;
|
|
94
|
+
constructor();
|
|
95
|
+
static styles: import("lit").CSSResult[];
|
|
96
|
+
disconnectedCallback(): void;
|
|
97
|
+
updated(changed: Map<string, unknown>): void;
|
|
98
|
+
private start;
|
|
99
|
+
private stop;
|
|
100
|
+
private close;
|
|
101
|
+
private action;
|
|
102
|
+
render(): TemplateResult;
|
|
103
|
+
}
|
|
104
|
+
export interface MenuItem {
|
|
105
|
+
id?: string;
|
|
106
|
+
text: string;
|
|
107
|
+
/** Where it goes. Without one it fires impkt-select with its value. */
|
|
108
|
+
href?: string;
|
|
109
|
+
value?: string;
|
|
110
|
+
icon?: string;
|
|
111
|
+
tone?: '' | 'danger';
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* A button that opens a short list of actions or links.
|
|
115
|
+
*
|
|
116
|
+
* It follows the ARIA menu button pattern: the arrow keys, Home and End move
|
|
117
|
+
* through it, Escape closes it and puts focus back on the button, and a click
|
|
118
|
+
* anywhere else closes it.
|
|
119
|
+
*
|
|
120
|
+
* @category navigation
|
|
121
|
+
* @icon menu
|
|
122
|
+
* @fires impkt-select - When an item without an address is chosen. The value is in detail.value.
|
|
123
|
+
*/
|
|
124
|
+
export declare class ImpktMenu extends ImpktElement {
|
|
125
|
+
static properties: {
|
|
126
|
+
label: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
};
|
|
129
|
+
icon: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
};
|
|
132
|
+
items: {
|
|
133
|
+
type: ArrayConstructor;
|
|
134
|
+
};
|
|
135
|
+
edge: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
reflect: boolean;
|
|
138
|
+
};
|
|
139
|
+
open: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
reflect: boolean;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
label: string;
|
|
145
|
+
icon: string;
|
|
146
|
+
items: MenuItem[];
|
|
147
|
+
/** Which edge of the button the list lines up with. */
|
|
148
|
+
edge: 'start' | 'end';
|
|
149
|
+
open: boolean;
|
|
150
|
+
constructor();
|
|
151
|
+
static styles: import("lit").CSSResult[];
|
|
152
|
+
private outside;
|
|
153
|
+
disconnectedCallback(): void;
|
|
154
|
+
private get entries();
|
|
155
|
+
private get trigger();
|
|
156
|
+
private toggle;
|
|
157
|
+
private triggerKey;
|
|
158
|
+
private listKey;
|
|
159
|
+
private choose;
|
|
160
|
+
render(): TemplateResult;
|
|
161
|
+
}
|
|
162
|
+
/** Which page numbers to show: the ends and the neighbours, with gaps between. */
|
|
163
|
+
export declare function pageWindow(page: number, pages: number): Array<number | 'gap'>;
|
|
164
|
+
/**
|
|
165
|
+
* Page numbers for a long list.
|
|
166
|
+
*
|
|
167
|
+
* Give it `href-pattern` and every number is a real link, with `{page}` swapped
|
|
168
|
+
* for the number. Without one the numbers are buttons and it fires
|
|
169
|
+
* `impkt-page`. On a narrow screen the numbers fold to "Page 2 of 9".
|
|
170
|
+
*
|
|
171
|
+
* @category navigation
|
|
172
|
+
* @icon pagination
|
|
173
|
+
* @fires impkt-page - When a page is chosen. The number is in detail.page.
|
|
174
|
+
*/
|
|
175
|
+
export declare class ImpktPagination extends ImpktElement {
|
|
176
|
+
static properties: {
|
|
177
|
+
page: {
|
|
178
|
+
type: NumberConstructor;
|
|
179
|
+
};
|
|
180
|
+
pages: {
|
|
181
|
+
type: NumberConstructor;
|
|
182
|
+
};
|
|
183
|
+
hrefPattern: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
attribute: string;
|
|
186
|
+
};
|
|
187
|
+
label: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
};
|
|
190
|
+
previousText: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
attribute: string;
|
|
193
|
+
};
|
|
194
|
+
nextText: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
attribute: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
page: number;
|
|
200
|
+
pages: number;
|
|
201
|
+
hrefPattern: string;
|
|
202
|
+
label: string;
|
|
203
|
+
previousText: string;
|
|
204
|
+
nextText: string;
|
|
205
|
+
constructor();
|
|
206
|
+
static styles: import("lit").CSSResult[];
|
|
207
|
+
private go;
|
|
208
|
+
private link;
|
|
209
|
+
private step;
|
|
210
|
+
render(): TemplateResult;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* A person's photo, or their initials when there is no photo or it fails.
|
|
214
|
+
*
|
|
215
|
+
* @category content
|
|
216
|
+
* @icon avatar
|
|
217
|
+
*/
|
|
218
|
+
export declare class ImpktAvatar extends ImpktElement {
|
|
219
|
+
static properties: {
|
|
220
|
+
fullName: {
|
|
221
|
+
type: StringConstructor;
|
|
222
|
+
attribute: string;
|
|
223
|
+
};
|
|
224
|
+
src: {
|
|
225
|
+
type: StringConstructor;
|
|
226
|
+
};
|
|
227
|
+
size: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
reflect: boolean;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
fullName: string;
|
|
233
|
+
src: string;
|
|
234
|
+
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
235
|
+
private failed;
|
|
236
|
+
constructor();
|
|
237
|
+
static styles: import("lit").CSSResult[];
|
|
238
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
239
|
+
render(): TemplateResult;
|
|
240
|
+
}
|
|
241
|
+
export interface AvatarItem {
|
|
242
|
+
id?: string;
|
|
243
|
+
name: string;
|
|
244
|
+
src?: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* A few people overlapped in a row, with a count for the rest: the sales team,
|
|
248
|
+
* the neighbours who have already moved in.
|
|
249
|
+
*
|
|
250
|
+
* @category content
|
|
251
|
+
* @icon avatars
|
|
252
|
+
*/
|
|
253
|
+
export declare class ImpktAvatarGroup extends ImpktElement {
|
|
254
|
+
static properties: {
|
|
255
|
+
items: {
|
|
256
|
+
type: ArrayConstructor;
|
|
257
|
+
};
|
|
258
|
+
max: {
|
|
259
|
+
type: NumberConstructor;
|
|
260
|
+
};
|
|
261
|
+
size: {
|
|
262
|
+
type: StringConstructor;
|
|
263
|
+
reflect: boolean;
|
|
264
|
+
};
|
|
265
|
+
moreLabel: {
|
|
266
|
+
type: StringConstructor;
|
|
267
|
+
attribute: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
items: AvatarItem[];
|
|
271
|
+
max: number;
|
|
272
|
+
size: 'sm' | 'md' | 'lg';
|
|
273
|
+
/** How the people left out are described to a screen reader, after the number. */
|
|
274
|
+
moreLabel: string;
|
|
275
|
+
constructor();
|
|
276
|
+
static styles: import("lit").CSSResult[];
|
|
277
|
+
render(): TemplateResult;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* What a list says when it has nothing in it, and what to do about that.
|
|
281
|
+
*
|
|
282
|
+
* @category feedback
|
|
283
|
+
* @icon empty
|
|
284
|
+
* @role heading
|
|
285
|
+
* @slot actions - The next thing to do, usually one button.
|
|
286
|
+
*/
|
|
287
|
+
export declare class ImpktEmptyState extends ImpktElement {
|
|
288
|
+
static properties: {
|
|
289
|
+
icon: {
|
|
290
|
+
type: StringConstructor;
|
|
291
|
+
};
|
|
292
|
+
heading: {
|
|
293
|
+
type: StringConstructor;
|
|
294
|
+
};
|
|
295
|
+
lead: {
|
|
296
|
+
type: StringConstructor;
|
|
297
|
+
};
|
|
298
|
+
framed: {
|
|
299
|
+
type: BooleanConstructor;
|
|
300
|
+
reflect: boolean;
|
|
301
|
+
};
|
|
302
|
+
headingLevel: {
|
|
303
|
+
type: NumberConstructor;
|
|
304
|
+
attribute: string;
|
|
305
|
+
};
|
|
306
|
+
spaceAbove: {
|
|
307
|
+
type: StringConstructor;
|
|
308
|
+
reflect: boolean;
|
|
309
|
+
attribute: string;
|
|
310
|
+
};
|
|
311
|
+
spaceBelow: {
|
|
312
|
+
type: StringConstructor;
|
|
313
|
+
reflect: boolean;
|
|
314
|
+
attribute: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
icon: string;
|
|
318
|
+
heading: string;
|
|
319
|
+
lead: string;
|
|
320
|
+
/** Draws a dashed outline round it. */
|
|
321
|
+
framed: boolean;
|
|
322
|
+
headingLevel: 2 | 3 | 4;
|
|
323
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
324
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
325
|
+
constructor();
|
|
326
|
+
static styles: import("lit").CSSResult[];
|
|
327
|
+
render(): TemplateResult;
|
|
328
|
+
}
|
|
329
|
+
export interface SlotDay {
|
|
330
|
+
id?: string;
|
|
331
|
+
/** The day, as 2026-11-14. */
|
|
332
|
+
date: string;
|
|
333
|
+
/** The times on offer, separated by commas: 10:00, 11:30, 14:00. */
|
|
334
|
+
times: string;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Choose a day, then a time: a viewing, a call back, a site visit.
|
|
338
|
+
*
|
|
339
|
+
* Both rows are native radios under the styling, so the arrow keys and screen
|
|
340
|
+
* readers work as they do for any radio group. Its value is the day and time
|
|
341
|
+
* together, as 2026-11-14T10:00.
|
|
342
|
+
*
|
|
343
|
+
* @category form
|
|
344
|
+
* @icon calendar
|
|
345
|
+
*/
|
|
346
|
+
export declare class ImpktSlotPicker extends FieldElement {
|
|
347
|
+
static properties: {
|
|
348
|
+
days: {
|
|
349
|
+
type: ArrayConstructor;
|
|
350
|
+
};
|
|
351
|
+
dayLabel: {
|
|
352
|
+
type: StringConstructor;
|
|
353
|
+
attribute: string;
|
|
354
|
+
};
|
|
355
|
+
timeLabel: {
|
|
356
|
+
type: StringConstructor;
|
|
357
|
+
attribute: string;
|
|
358
|
+
};
|
|
359
|
+
emptyText: {
|
|
360
|
+
type: StringConstructor;
|
|
361
|
+
attribute: string;
|
|
362
|
+
};
|
|
363
|
+
label: {
|
|
364
|
+
type: StringConstructor;
|
|
365
|
+
};
|
|
366
|
+
name: {
|
|
367
|
+
type: StringConstructor;
|
|
368
|
+
};
|
|
369
|
+
value: {
|
|
370
|
+
type: StringConstructor;
|
|
371
|
+
};
|
|
372
|
+
description: {
|
|
373
|
+
type: StringConstructor;
|
|
374
|
+
};
|
|
375
|
+
error: {
|
|
376
|
+
type: StringConstructor;
|
|
377
|
+
};
|
|
378
|
+
required: {
|
|
379
|
+
type: BooleanConstructor;
|
|
380
|
+
reflect: boolean;
|
|
381
|
+
};
|
|
382
|
+
disabled: {
|
|
383
|
+
type: BooleanConstructor;
|
|
384
|
+
reflect: boolean;
|
|
385
|
+
};
|
|
386
|
+
readonly: {
|
|
387
|
+
type: BooleanConstructor;
|
|
388
|
+
reflect: boolean;
|
|
389
|
+
};
|
|
390
|
+
requiredText: {
|
|
391
|
+
type: StringConstructor;
|
|
392
|
+
attribute: string;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
days: SlotDay[];
|
|
396
|
+
dayLabel: string;
|
|
397
|
+
timeLabel: string;
|
|
398
|
+
/** What is said when no times are on offer. */
|
|
399
|
+
emptyText: string;
|
|
400
|
+
private day;
|
|
401
|
+
constructor();
|
|
402
|
+
static styles: import("lit").CSSResult[];
|
|
403
|
+
private get currentDay();
|
|
404
|
+
private chooseDay;
|
|
405
|
+
protected renderLabel(): TemplateResult;
|
|
406
|
+
protected renderControl(): TemplateResult;
|
|
407
|
+
render(): TemplateResult;
|
|
408
|
+
updated(changed: Map<string, unknown>): void;
|
|
409
|
+
}
|
|
410
|
+
declare global {
|
|
411
|
+
interface HTMLElementTagNameMap {
|
|
412
|
+
'impkt-drawer': ImpktDrawer;
|
|
413
|
+
'impkt-toast': ImpktToast;
|
|
414
|
+
'impkt-menu': ImpktMenu;
|
|
415
|
+
'impkt-pagination': ImpktPagination;
|
|
416
|
+
'impkt-avatar': ImpktAvatar;
|
|
417
|
+
'impkt-avatar-group': ImpktAvatarGroup;
|
|
418
|
+
'impkt-empty-state': ImpktEmptyState;
|
|
419
|
+
'impkt-slot-picker': ImpktSlotPicker;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktAvatar,
|
|
3
|
+
ImpktAvatarGroup,
|
|
4
|
+
ImpktDrawer,
|
|
5
|
+
ImpktEmptyState,
|
|
6
|
+
ImpktMenu,
|
|
7
|
+
ImpktPagination,
|
|
8
|
+
ImpktSlotPicker,
|
|
9
|
+
ImpktToast,
|
|
10
|
+
pageWindow
|
|
11
|
+
} from "../chunk-QCNT7D5V.js";
|
|
12
|
+
import "../chunk-2YQA3VBY.js";
|
|
13
|
+
import "../chunk-7BIQ3K6H.js";
|
|
14
|
+
import "../chunk-NTNXHLTM.js";
|
|
15
|
+
export {
|
|
16
|
+
ImpktAvatar,
|
|
17
|
+
ImpktAvatarGroup,
|
|
18
|
+
ImpktDrawer,
|
|
19
|
+
ImpktEmptyState,
|
|
20
|
+
ImpktMenu,
|
|
21
|
+
ImpktPagination,
|
|
22
|
+
ImpktSlotPicker,
|
|
23
|
+
ImpktToast,
|
|
24
|
+
pageWindow
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=app-ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -157,8 +157,8 @@ export declare class ImpktCardGrid extends ImpktElement {
|
|
|
157
157
|
headingLevel: 2 | 3 | 4;
|
|
158
158
|
/** The shape of each card's picture. */
|
|
159
159
|
ratio: '16:9' | '4:3' | '3:2' | '1:1';
|
|
160
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
161
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
160
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
161
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
162
162
|
constructor();
|
|
163
163
|
static styles: import("lit").CSSResult[];
|
|
164
164
|
render(): TemplateResult;
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
ImpktSpacer,
|
|
5
5
|
ImpktTabs,
|
|
6
6
|
ImpktVisuallyHidden
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-ZQJD4YEJ.js";
|
|
8
|
+
import "../chunk-2YQA3VBY.js";
|
|
9
|
+
import "../chunk-NTNXHLTM.js";
|
|
10
10
|
export {
|
|
11
11
|
ImpktCardGrid,
|
|
12
12
|
ImpktDivider,
|
|
@@ -31,6 +31,11 @@ import { ImpktElement } from '../base/ImpktElement';
|
|
|
31
31
|
export declare class ImpktButton extends ImpktElement {
|
|
32
32
|
static formAssociated: boolean;
|
|
33
33
|
static properties: {
|
|
34
|
+
hideOn: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
reflect: boolean;
|
|
37
|
+
attribute: string;
|
|
38
|
+
};
|
|
34
39
|
variant: {
|
|
35
40
|
type: StringConstructor;
|
|
36
41
|
reflect: boolean;
|
|
@@ -70,6 +75,8 @@ export declare class ImpktButton extends ImpktElement {
|
|
|
70
75
|
type: StringConstructor;
|
|
71
76
|
};
|
|
72
77
|
};
|
|
78
|
+
/** Leave it out on a phone, where a header has no room for it. */
|
|
79
|
+
hideOn: 'never' | 'phone';
|
|
73
80
|
variant: 'primary' | 'secondary' | 'ghost';
|
|
74
81
|
type: 'button' | 'submit' | 'reset';
|
|
75
82
|
disabled: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpktCheckboxGroup
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-GSCVG2ER.js";
|
|
4
|
+
import "../chunk-7BIQ3K6H.js";
|
|
5
|
+
import "../chunk-NTNXHLTM.js";
|
|
6
6
|
export {
|
|
7
7
|
ImpktCheckboxGroup
|
|
8
8
|
};
|
|
@@ -58,9 +58,9 @@ export declare class ImpktGrid extends ImpktElement {
|
|
|
58
58
|
/** How columns of different heights line up. */
|
|
59
59
|
align: 'stretch' | 'start' | 'center' | 'end';
|
|
60
60
|
/** Space before the grid, from the spacing scale. */
|
|
61
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
61
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
62
62
|
/** Space after the grid, from the spacing scale. */
|
|
63
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
63
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
64
64
|
constructor();
|
|
65
65
|
static styles: import("lit").CSSResult[];
|
|
66
66
|
render(): import("lit").TemplateResult<1>;
|
package/dist/components/grid.js
CHANGED
package/dist/components/help.js
CHANGED