@atomic-ui/ui 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -33
- package/custom-elements.json +5986 -15880
- package/dist/base/FieldElement.d.ts +4 -4
- package/dist/base/{ImpktElement.d.ts → ImpaktElement.d.ts} +2 -2
- package/dist/base/styles.d.ts +7 -0
- package/dist/base/tokens.d.ts +1 -1
- package/dist/base/tone.d.ts +20 -0
- package/dist/{chunk-3RE4H2XO.js → chunk-3EF4T242.js} +7 -7
- package/dist/chunk-3EF4T242.js.map +1 -0
- package/dist/chunk-4ZQTXTPA.js +76 -0
- package/dist/chunk-4ZQTXTPA.js.map +1 -0
- package/dist/{chunk-NKMVICB5.js → chunk-5Y3HYRCU.js} +7 -7
- package/dist/chunk-5Y3HYRCU.js.map +1 -0
- package/dist/{chunk-ZOTAAYO5.js → chunk-5ZQVL3V2.js} +19 -12
- package/dist/chunk-5ZQVL3V2.js.map +1 -0
- package/dist/{chunk-4OYHT4BN.js → chunk-A7YBFS4H.js} +15 -15
- package/dist/chunk-A7YBFS4H.js.map +1 -0
- package/dist/{chunk-DAH7RLW3.js → chunk-DE3INTHZ.js} +6 -6
- package/dist/chunk-DE3INTHZ.js.map +1 -0
- package/dist/{chunk-HXINWP3V.js → chunk-EJD6LT7E.js} +20 -83
- package/dist/chunk-EJD6LT7E.js.map +1 -0
- package/dist/{chunk-P6GDMZK4.js → chunk-EJSX4WCD.js} +9 -9
- package/dist/chunk-EJSX4WCD.js.map +1 -0
- package/dist/{chunk-46BYUQ5A.js → chunk-FWR6SEIA.js} +33 -33
- package/dist/chunk-FWR6SEIA.js.map +1 -0
- package/dist/{chunk-CUUBAETM.js → chunk-GJPHQLLN.js} +8 -8
- package/dist/chunk-GJPHQLLN.js.map +1 -0
- package/dist/{chunk-R7FKGFW6.js → chunk-HNBG2POR.js} +7 -7
- package/dist/chunk-HNBG2POR.js.map +1 -0
- package/dist/{chunk-DKZ425AM.js → chunk-HNZQ7LM4.js} +11 -11
- package/dist/chunk-HNZQ7LM4.js.map +1 -0
- package/dist/{chunk-55DK75QF.js → chunk-I54DOEZB.js} +6 -6
- package/dist/chunk-I54DOEZB.js.map +1 -0
- package/dist/{chunk-WGPB3QQU.js → chunk-KFAGXPIK.js} +10 -10
- package/dist/chunk-KFAGXPIK.js.map +1 -0
- package/dist/{chunk-J2FACXYI.js → chunk-PANH23MF.js} +12 -12
- package/dist/chunk-PANH23MF.js.map +1 -0
- package/dist/{chunk-KKJEEKL2.js → chunk-PYVUQNFQ.js} +8 -8
- package/dist/chunk-PYVUQNFQ.js.map +1 -0
- package/dist/{chunk-RWWRTURA.js → chunk-Q54FX3SY.js} +8 -8
- package/dist/chunk-Q54FX3SY.js.map +1 -0
- package/dist/{chunk-AUVIOU5G.js → chunk-QBORJTS4.js} +36 -36
- package/dist/chunk-QBORJTS4.js.map +1 -0
- package/dist/{chunk-5QSTXIPG.js → chunk-RXX4CN5J.js} +7 -7
- package/dist/chunk-RXX4CN5J.js.map +1 -0
- package/dist/{chunk-XPCU4KUY.js → chunk-SV77SN6P.js} +7 -7
- package/dist/chunk-SV77SN6P.js.map +1 -0
- package/dist/{chunk-FVCM4WHD.js → chunk-TAZZLOUY.js} +10 -10
- package/dist/chunk-TAZZLOUY.js.map +1 -0
- package/dist/{chunk-KMCGX76Y.js → chunk-TRZO5CHU.js} +7 -7
- package/dist/chunk-TRZO5CHU.js.map +1 -0
- package/dist/{chunk-F4YQWKK2.js → chunk-UPOTBKKK.js} +7 -7
- package/dist/chunk-UPOTBKKK.js.map +1 -0
- package/dist/{chunk-APJ5JGRW.js → chunk-WP5WJ4V5.js} +6 -6
- package/dist/chunk-WP5WJ4V5.js.map +1 -0
- package/dist/{chunk-TCXKZDMR.js → chunk-WS5AUJ35.js} +7 -7
- package/dist/chunk-WS5AUJ35.js.map +1 -0
- package/dist/{chunk-7P4Z4CLK.js → chunk-WWYYNR3Z.js} +50 -49
- package/dist/chunk-WWYYNR3Z.js.map +1 -0
- package/dist/{chunk-RYBY35QE.js → chunk-XU2XODVH.js} +6 -6
- package/dist/chunk-XU2XODVH.js.map +1 -0
- package/dist/{chunk-3KO55PZK.js → chunk-YR6T73GY.js} +18 -11
- package/dist/chunk-YR6T73GY.js.map +1 -0
- package/dist/{chunk-IOBSIAHB.js → chunk-YYYQPKQ7.js} +24 -24
- package/dist/chunk-YYYQPKQ7.js.map +1 -0
- package/dist/{chunk-PO6FCAIS.js → chunk-Z45LY6BT.js} +9 -9
- package/dist/chunk-Z45LY6BT.js.map +1 -0
- package/dist/{chunk-DJEZW7AC.js → chunk-ZQBEFP2O.js} +7 -7
- package/dist/chunk-ZQBEFP2O.js.map +1 -0
- package/dist/chunk-ZS7RPXCT.js +47 -0
- package/dist/chunk-ZS7RPXCT.js.map +1 -0
- package/dist/components/accordion.d.ts +3 -3
- package/dist/components/accordion.js +4 -4
- package/dist/components/alert.d.ts +3 -3
- package/dist/components/alert.js +4 -4
- package/dist/components/app-ui.d.ts +25 -25
- package/dist/components/app-ui.js +21 -21
- package/dist/components/badge.d.ts +37 -0
- package/dist/components/badge.js +9 -0
- package/dist/components/blocks.d.ts +10 -73
- package/dist/components/blocks.js +10 -13
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.js +5 -5
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +5 -5
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +5 -5
- package/dist/components/chip.d.ts +58 -0
- package/dist/components/chip.js +8 -0
- package/dist/components/date-input.d.ts +2 -2
- package/dist/components/date-input.js +5 -5
- package/dist/components/dialog.d.ts +4 -4
- package/dist/components/dialog.js +4 -4
- package/dist/components/fieldset.d.ts +3 -3
- package/dist/components/fieldset.js +4 -4
- package/dist/components/grid.d.ts +3 -3
- package/dist/components/grid.js +4 -4
- package/dist/components/help.d.ts +3 -3
- package/dist/components/help.js +4 -4
- package/dist/components/icon.d.ts +3 -3
- package/dist/components/icon.js +4 -4
- package/dist/components/journey.d.ts +18 -18
- package/dist/components/journey.js +15 -15
- package/dist/components/layout.d.ts +9 -9
- package/dist/components/layout.js +10 -10
- package/dist/components/link.d.ts +3 -3
- package/dist/components/link.js +5 -5
- package/dist/components/list.d.ts +3 -3
- package/dist/components/list.js +4 -4
- package/dist/components/media.d.ts +8 -8
- package/dist/components/media.js +8 -8
- package/dist/components/navigation.d.ts +5 -5
- package/dist/components/navigation.js +7 -7
- package/dist/components/page.d.ts +5 -5
- package/dist/components/page.js +6 -6
- package/dist/components/price.d.ts +3 -3
- package/dist/components/price.js +4 -4
- package/dist/components/progress.d.ts +3 -3
- package/dist/components/progress.js +4 -4
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +5 -5
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.js +5 -5
- package/dist/components/summary-list.d.ts +3 -3
- package/dist/components/summary-list.js +4 -4
- package/dist/components/table.d.ts +6 -6
- package/dist/components/table.js +5 -5
- package/dist/components/text-input.d.ts +2 -2
- package/dist/components/text-input.js +5 -5
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +5 -5
- package/dist/index.d.ts +47 -40
- package/dist/index.js +206 -270
- package/dist/standalone/atomic-ui.js +796 -2002
- package/dist/standalone/atomic-ui.js.map +4 -4
- package/dist/standalone/index.html +51 -52
- package/package.json +4 -4
- package/specimen/index.html +51 -52
- package/dist/chunk-37PA72FC.js +0 -725
- package/dist/chunk-37PA72FC.js.map +0 -1
- package/dist/chunk-3KO55PZK.js.map +0 -1
- package/dist/chunk-3RE4H2XO.js.map +0 -1
- package/dist/chunk-46BYUQ5A.js.map +0 -1
- package/dist/chunk-4OYHT4BN.js.map +0 -1
- package/dist/chunk-55DK75QF.js.map +0 -1
- package/dist/chunk-5QSTXIPG.js.map +0 -1
- package/dist/chunk-7P4Z4CLK.js.map +0 -1
- package/dist/chunk-APJ5JGRW.js.map +0 -1
- package/dist/chunk-AUVIOU5G.js.map +0 -1
- package/dist/chunk-CUUBAETM.js.map +0 -1
- package/dist/chunk-DAH7RLW3.js.map +0 -1
- package/dist/chunk-DJEZW7AC.js.map +0 -1
- package/dist/chunk-DKZ425AM.js.map +0 -1
- package/dist/chunk-F4YQWKK2.js.map +0 -1
- package/dist/chunk-FVCM4WHD.js.map +0 -1
- package/dist/chunk-GBRML4RF.js +0 -264
- package/dist/chunk-GBRML4RF.js.map +0 -1
- package/dist/chunk-HXINWP3V.js.map +0 -1
- package/dist/chunk-IOBSIAHB.js.map +0 -1
- package/dist/chunk-IZOTGWWI.js +0 -361
- package/dist/chunk-IZOTGWWI.js.map +0 -1
- package/dist/chunk-J2FACXYI.js.map +0 -1
- package/dist/chunk-KKJEEKL2.js.map +0 -1
- package/dist/chunk-KMCGX76Y.js.map +0 -1
- package/dist/chunk-NKMVICB5.js.map +0 -1
- package/dist/chunk-OFLMG6RN.js +0 -428
- package/dist/chunk-OFLMG6RN.js.map +0 -1
- package/dist/chunk-P6GDMZK4.js.map +0 -1
- package/dist/chunk-PO6FCAIS.js.map +0 -1
- package/dist/chunk-PWLZFGS3.js +0 -494
- package/dist/chunk-PWLZFGS3.js.map +0 -1
- package/dist/chunk-QJIB36DM.js +0 -249
- package/dist/chunk-QJIB36DM.js.map +0 -1
- package/dist/chunk-R7FKGFW6.js.map +0 -1
- package/dist/chunk-RWWRTURA.js.map +0 -1
- package/dist/chunk-RYBY35QE.js.map +0 -1
- package/dist/chunk-S7F5VKWU.js +0 -453
- package/dist/chunk-S7F5VKWU.js.map +0 -1
- package/dist/chunk-T5W3FDSF.js +0 -396
- package/dist/chunk-T5W3FDSF.js.map +0 -1
- package/dist/chunk-TCXKZDMR.js.map +0 -1
- package/dist/chunk-WGPB3QQU.js.map +0 -1
- package/dist/chunk-XPCU4KUY.js.map +0 -1
- package/dist/chunk-YRYZUYY7.js +0 -236
- package/dist/chunk-YRYZUYY7.js.map +0 -1
- package/dist/chunk-ZOTAAYO5.js.map +0 -1
- package/dist/components/changelog.d.ts +0 -386
- package/dist/components/changelog.js +0 -25
- package/dist/components/estimator.d.ts +0 -246
- package/dist/components/estimator.js +0 -16
- package/dist/components/marketing.d.ts +0 -370
- package/dist/components/marketing.js +0 -21
- package/dist/components/marketing.js.map +0 -1
- package/dist/components/organisms.d.ts +0 -559
- package/dist/components/organisms.js +0 -25
- package/dist/components/organisms.js.map +0 -1
- package/dist/components/property.d.ts +0 -389
- package/dist/components/property.js +0 -20
- package/dist/components/property.js.map +0 -1
- package/dist/components/scene.d.ts +0 -138
- package/dist/components/scene.js +0 -8
- package/dist/components/scene.js.map +0 -1
- package/dist/components/scrubber.d.ts +0 -86
- package/dist/components/scrubber.js +0 -8
- package/dist/components/scrubber.js.map +0 -1
- package/dist/components/selling.d.ts +0 -409
- package/dist/components/selling.js +0 -25
- package/dist/components/selling.js.map +0 -1
- package/dist/components/site.d.ts +0 -283
- package/dist/components/site.js +0 -20
- package/dist/components/site.js.map +0 -1
- /package/dist/components/{changelog.js.map → badge.js.map} +0 -0
- /package/dist/components/{estimator.js.map → chip.js.map} +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @atomic-ui/ui
|
|
2
2
|
|
|
3
|
-
Standard custom elements, styled only from design tokens, built to WCAG 2.2 AA.
|
|
3
|
+
Standard custom elements, styled only from design tokens, built to WCAG 2.2 AA: the product components every Impakt product uses, and the shared base every element builds on.
|
|
4
|
+
|
|
5
|
+
The section blocks Impakt sites are built from, such as the hero, the calculators, the site header and footer and the changelog blocks, are in [`@atomic-ui/blocks`](../strata), which builds on this package. They moved there in 0.5.0, under the same tags.
|
|
4
6
|
|
|
5
7
|
There is one implementation, in Lit. React, Vue and Angular get thin bindings rather than their own components, because an accessible component is mostly behaviour, such as focus management, roving tabindex and live-region timing, and behaviour written three times is wrong in three different ways ([ADR 0004](https://github.com/matthill8286/strata/blob/main/docs/decisions/0004-lit-plus-wrappers.md)).
|
|
6
8
|
|
|
@@ -14,14 +16,14 @@ A product with no build step copies one file, `atomic-ui.js`, into its `public`
|
|
|
14
16
|
<link rel="stylesheet" href="/theme.css">
|
|
15
17
|
<script type="module" src="/atomic-ui.js"></script>
|
|
16
18
|
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
<
|
|
19
|
+
<impakt-text-input label="Postcode" description="As on your statement" autocomplete="postal-code"></impakt-text-input>
|
|
20
|
+
<impakt-table caption="Open cases" stack columns='[{"key":"ref","label":"Reference","sortable":true}]' rows='[{"ref":"HB-1042"}]'></impakt-table>
|
|
21
|
+
<impakt-button variant="primary">Save and continue</impakt-button>
|
|
20
22
|
```
|
|
21
23
|
|
|
22
|
-
The file is `dist/standalone/atomic-ui.js`, also exported as `@atomic-ui/ui/standalone`. It is one minified ES module holding Lit and every element, and it defines every element when it loads. Its source map sits beside it. At 0.
|
|
24
|
+
The file is `dist/standalone/atomic-ui.js`, also exported as `@atomic-ui/ui/standalone`. It is one minified ES module holding Lit and every element, and it defines every element when it loads. Its source map sits beside it. At 0.5.0 it is about 160 KB, or 40 KB gzipped. It also exports what this package exports, and Lit's `LitElement`, `html`, `css`, `svg`, `nothing`, `noChange`, `unsafeCSS` and `render`, so that `atomic-ui-blocks.js` from `@atomic-ui/blocks`, loaded after it from the same folder, imports the base, the product components and Lit from it instead of carrying a second copy. A product that uses the blocks copies both files.
|
|
23
25
|
|
|
24
|
-
To copy it, build the design system and run `pnpm ui:copy ../impkt-tender` at the root, naming the product's folder. A second argument names a folder other than `public`. The first line of the copy names the version and the design system's commit. To update it, build again and run the same command. A product that installs this package from npm can run `npx
|
|
26
|
+
To copy it, build the design system and run `pnpm ui:copy ../impkt-tender` at the root, naming the product's folder. A second argument names a folder other than `public`. The first line of the copy names the version and the design system's commit. To update it, build again and run the same command. A product that installs this package from npm can run `npx impakt-ui-copy . public`.
|
|
25
27
|
|
|
26
28
|
`specimen/index.html` is a page that uses the app components this way, and the build puts it beside the standalone file as `dist/standalone/index.html`. Copy `theme.css` and its `fonts` beside it to open it. The browser suite runs it in light and dark, on a phone and on a desktop.
|
|
27
29
|
|
|
@@ -36,11 +38,11 @@ The app installs this package and the bindings for its framework, and imports th
|
|
|
36
38
|
<Table caption="Open cases" columns={columns} rows={rows} stack onSort={(e) => sortBy(e.detail)} />
|
|
37
39
|
```
|
|
38
40
|
|
|
39
|
-
Each binding is thin, and each exists for a different reason. React needs typed events, and before React 19 it needed properties set rather than attributes. Vue needs the `.` prefix hidden and prop types. Angular needs `ControlValueAccessor` directives, without which a reactive form containing one of these controls silently never receives a value. The React and Vue bindings are generated from this package's manifest, so they cover every element.
|
|
41
|
+
Each binding is thin, and each exists for a different reason. React needs typed events, and before React 19 it needed properties set rather than attributes. Vue needs the `.` prefix hidden and prop types. Angular needs `ControlValueAccessor` directives, without which a reactive form containing one of these controls silently never receives a value. The React and Vue bindings are generated from this package's manifest, so they cover every element. They are generated from `@atomic-ui/blocks`'s manifest too, into a separate entry, `@atomic-ui/ui-react/blocks` and `@atomic-ui/ui-vue/blocks`.
|
|
40
42
|
|
|
41
43
|
### The tokens
|
|
42
44
|
|
|
43
|
-
Every component reads `--
|
|
45
|
+
Every component reads `--impakt-*` custom properties. The product theme sets them, or an app writes them for its own brand with `@atomic-ui/design-tokens`:
|
|
44
46
|
|
|
45
47
|
```ts
|
|
46
48
|
import { BrandInputsSchema, deriveTokens, toStylesheet } from '@atomic-ui/design-tokens';
|
|
@@ -53,26 +55,20 @@ document.head.append(style);
|
|
|
53
55
|
|
|
54
56
|
## What is here
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
Fifty-two elements.
|
|
57
59
|
|
|
58
60
|
| Group | Elements |
|
|
59
61
|
| --- | --- |
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
| Feedback | `impkt-alert`, `impkt-dialog`, `impkt-help` |
|
|
71
|
-
| Content | `impkt-summary-list`, `impkt-table`, `impkt-accordion`, `impkt-tabs`, `impkt-progress`, `impkt-price` |
|
|
72
|
-
| Media | `impkt-image`, `impkt-logo`, `impkt-icon`, `impkt-document-link` |
|
|
73
|
-
| Changelog | `impkt-release-card`, `impkt-release-list`, `impkt-branch-list`, `impkt-check-list`, `impkt-branch-timeline` |
|
|
74
|
-
|
|
75
|
-
**A layout puts `impkt-page` at its root.** It gives a page the brand's page width (`layout.page-width`), its side margins on a phone, tablet and desktop (`layout.margin.*`), the header, main and footer landmarks, and a Skip to content link. Without it a page runs edge to edge. `impkt-section` is a band across the whole width of the screen with the content kept to the page width inside it. A product page with its own layout can leave both out.
|
|
62
|
+
| Actions and navigation | `impakt-button`, `impakt-link`, `impakt-help`, `impakt-nav`, `impakt-breadcrumbs`, `impakt-menu`, `impakt-pagination` |
|
|
63
|
+
| Forms | `impakt-text-input`, `impakt-textarea`, `impakt-select`, `impakt-checkbox`, `impakt-checkbox-group`, `impakt-radio-group`, `impakt-date-input`, `impakt-fieldset`, `impakt-money-input`, `impakt-range-input`, `impakt-address-lookup`, `impakt-file-upload`, `impakt-error-summary`, `impakt-slot-picker` |
|
|
64
|
+
| Feedback | `impakt-alert`, `impakt-dialog`, `impakt-drawer`, `impakt-toast`, `impakt-progress`, `impakt-empty-state`, `impakt-badge`, `impakt-chip` |
|
|
65
|
+
| Content | `impakt-table`, `impakt-summary-list`, `impakt-accordion`, `impakt-tabs`, `impakt-task-list` |
|
|
66
|
+
| Layout | `impakt-page`, `impakt-section`, `impakt-stack`, `impakt-grid`, `impakt-card`, `impakt-divider`, `impakt-spacer`, `impakt-visually-hidden` |
|
|
67
|
+
| Type and media | `impakt-heading`, `impakt-text`, `impakt-list`, `impakt-price`, `impakt-icon`, `impakt-image`, `impakt-logo`, `impakt-document-link`, `impakt-avatar`, `impakt-avatar-group` |
|
|
68
|
+
|
|
69
|
+
It also exports the shared base that `@atomic-ui/blocks` and an app's own elements build on: `ImpaktElement` and `FieldElement`, the tokens (`t`, `token`, `space`, `type` and the rest), the style fragments that carry the accessibility guarantees (`focusRing`, `targetSize`, `touchTarget`, `visuallyHidden`, `hideOn`), the wording and locale lookups (`say`, `pageLocale`), the scroll lock, the icons, and the tones (`Tone`, `toneOf`) the chip shares with the changelog blocks.
|
|
70
|
+
|
|
71
|
+
**A layout puts `impakt-page` at its root.** It gives a page the brand's page width (`layout.page-width`), its side margins on a phone, tablet and desktop (`layout.margin.*`), the header, main and footer landmarks, and a Skip to content link. Without it a page runs edge to edge. `impakt-section` is a band across the whole width of the screen with the content kept to the page width inside it. A product page with its own layout can leave both out.
|
|
76
72
|
|
|
77
73
|
**Everything sits on one set of scales,** derived from the brand:
|
|
78
74
|
|
|
@@ -89,15 +85,15 @@ Controls share sizes: a button and a field are both 40px tall at the default siz
|
|
|
89
85
|
|
|
90
86
|
These are the parts the products' app screens use most, and the browser suite holds them to the app standard on a phone and a desktop, in light and dark.
|
|
91
87
|
|
|
92
|
-
- **`
|
|
93
|
-
- **`
|
|
94
|
-
- **`
|
|
95
|
-
- **`
|
|
96
|
-
- **`
|
|
88
|
+
- **`impakt-table`** has a caption for its name and scrolls inside a focusable region when it is too wide. A column with `sortable` gets a button for its heading, the sorted column carries `aria-sort`, and pressing it fires `impakt-sort`; the table sorts its own rows unless `manual-sort` is set. `selectable` gives each row a checkbox named by its first cell, `selected` holds the chosen ids, and changes fire `impakt-selection`. `stack` draws each row as a card on a narrow screen. With no rows it says `empty-text`, or shows the `empty` slot. A child with `slot="cell:{row id}:{column key}"` is drawn in that cell.
|
|
89
|
+
- **`impakt-tabs`** follow the ARIA tabs pattern, with the arrow keys, Home and End. They stay on one row and scroll the chosen tab into view; `two-rows` lays more than four tabs out in two rows on a narrow screen. A child whose `slot` is a tab's id is that tab's panel. The chosen tab is kept when the tabs are given again, as a React render does.
|
|
90
|
+
- **`impakt-toast`** is said through a live region that is on the page first. It never takes the page's clicks, stays up while it has a button, and closes on Escape or Dismiss.
|
|
91
|
+
- **`impakt-dialog`** and **`impakt-drawer`** are native modal dialogs, so focus is trapped and returned and Escape closes them. The page behind does not scroll. A drawer fills a phone's screen, and so does a dialog with `phone-full-screen`.
|
|
92
|
+
- **`impakt-menu`**, **`impakt-pagination`**, **`impakt-file-upload`**, **`impakt-error-summary`**, **`impakt-date-input`** and **`impakt-money-input`** work from the keyboard, are labelled, and say their errors. Focusing any form element focuses its control, which is how the error summary's links reach a field.
|
|
97
93
|
|
|
98
94
|
## The decisions worth knowing
|
|
99
95
|
|
|
100
|
-
**Nothing names a colour.** Components read `var(--
|
|
96
|
+
**Nothing names a colour.** Components read `var(--impakt-*)` with a fallback, so a brand is a content publish rather than a rebuild, and a missing token stylesheet is an annoyance rather than a blank page.
|
|
101
97
|
|
|
102
98
|
**The focus ring and the minimum target size are locked tokens.** A brand cannot reach them. The ring is two-tone, light inside dark, so it stays visible on any surface a partner can produce, and it carries a transparent `outline` behind the `box-shadow` because Windows High Contrast Mode drops shadows entirely.
|
|
103
99
|
|
|
@@ -113,7 +109,9 @@ These are the parts the products' app screens use most, and the browser suite ho
|
|
|
113
109
|
|
|
114
110
|
Two suites, split by what each can honestly measure.
|
|
115
111
|
|
|
116
|
-
|
|
112
|
+
`@atomic-ui/blocks` runs the same two suites over its blocks.
|
|
113
|
+
|
|
114
|
+
**`pnpm --filter @atomic-ui/ui test`** runs in happy-dom, which has no layout engine. It checks what breaks in practice: roles, accessible names, the `describedby` relationships resolved to the text a screen reader would read, keyboard behaviour and form association. axe is restricted to the rules that mean anything without layout. Running the full rule set here would report passes for colour contrast and target size that axe never evaluated. It also checks that nothing in the 0.2.0 manifest has gone, apart from the 37 blocks that moved to `@atomic-ui/blocks`, whose own test checks the two manifests together.
|
|
117
115
|
|
|
118
116
|
**`pnpm --filter @atomic-ui/ui test:browser`** runs the real library in Chromium. It answers everything the first suite cannot:
|
|
119
117
|
|
|
@@ -130,7 +128,7 @@ Between the two, no criterion is reported as passing without being evaluated.
|
|
|
130
128
|
|
|
131
129
|
## The manifest
|
|
132
130
|
|
|
133
|
-
`pnpm --filter @atomic-ui/ui manifest` writes `custom-elements.json`, and the package build runs it too. It is the
|
|
131
|
+
`pnpm --filter @atomic-ui/ui manifest` writes `custom-elements.json`, and the package build runs it too. It is one of the two sources the CMS palette is generated from, with `@atomic-ui/blocks`'s, and the React and Vue bindings are generated from it. It is checked in so it can be read from a fresh clone, and it is published, as `@atomic-ui/ui/custom-elements.json`. Strata's publish gate checks pages against it, so an element, attribute, property, event or slot can be added but never removed or renamed.
|
|
134
132
|
|
|
135
133
|
Two tags the Custom Elements Manifest spec has no place for, `@category` and `@icon`, are captured by a plugin in `custom-elements-manifest.config.mjs`, so they live on the component rather than in a lookup table somewhere else. Each event's `@fires` tag names the type of its detail, which the bindings use for their event types.
|
|
136
134
|
|