@atomic-ui/ui 0.3.0 → 0.5.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-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-WGPB3QQU.js → chunk-ACQ4KYPR.js} +9 -9
- package/dist/chunk-ACQ4KYPR.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-FMSC7J7J.js +76 -0
- package/dist/chunk-FMSC7J7J.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-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
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title>
|
|
6
|
+
<title>Impakt components in a plain HTML product</title>
|
|
7
7
|
<!--
|
|
8
8
|
A plain HTML product needs two files beside this page: theme.css from
|
|
9
9
|
@atomic-ui/theme (pnpm theme:copy) and atomic-ui.js from @atomic-ui/ui
|
|
10
|
-
(pnpm ui:copy). The theme gives the page the
|
|
10
|
+
(pnpm ui:copy). The theme gives the page the Impakt look and gives the
|
|
11
11
|
components their tokens, in light and in dark. The script defines every
|
|
12
12
|
element when it loads.
|
|
13
13
|
-->
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
section { margin-bottom: var(--ik-space-8); }
|
|
19
19
|
.lede { color: var(--ik-ink-muted); max-width: 60ch; margin: 0 0 var(--ik-space-6); }
|
|
20
20
|
.toolbar { display: flex; flex-wrap: wrap; gap: var(--ik-space-3); align-items: flex-end; margin-bottom: var(--ik-space-4); }
|
|
21
|
-
.toolbar
|
|
21
|
+
.toolbar impakt-text-input { flex: 1 1 16rem; margin: 0; }
|
|
22
22
|
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ik-space-4); }
|
|
23
23
|
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
|
|
24
24
|
.row { display: flex; flex-wrap: wrap; gap: var(--ik-space-2); align-items: center; }
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<body>
|
|
28
28
|
<a class="ik-skip" href="#main">Skip to the content</a>
|
|
29
29
|
<header class="ik-header">
|
|
30
|
-
<a class="ik-brand" href="./"><span class="ik-mark" aria-hidden="true"></span><span><b>
|
|
30
|
+
<a class="ik-brand" href="./"><span class="ik-mark" aria-hidden="true"></span><span><b>Impakt</b> <span class="ik-product">Components</span></span></a>
|
|
31
31
|
<div class="row">
|
|
32
32
|
<label for="theme" class="ik-sr-only">Theme</label>
|
|
33
33
|
<select id="theme" style="min-height:44px;padding:4px 10px;font-size:16px">
|
|
@@ -35,107 +35,106 @@
|
|
|
35
35
|
<option value="light">Light</option>
|
|
36
36
|
<option value="dark">Dark</option>
|
|
37
37
|
</select>
|
|
38
|
-
<
|
|
38
|
+
<impakt-menu id="account" label="Account" edge="end" items='[{"text":"Profile","href":"#profile","icon":"user"},{"text":"Settings","value":"settings"},{"text":"Sign out","value":"sign-out","tone":"danger"}]'></impakt-menu>
|
|
39
39
|
</div>
|
|
40
40
|
</header>
|
|
41
41
|
|
|
42
42
|
<main id="main">
|
|
43
43
|
<h1>Components for the products</h1>
|
|
44
|
-
<p class="lede">The parts the apps and the AI tools use most, drawn by the
|
|
44
|
+
<p class="lede">The parts the apps and the AI tools use most, drawn by the Impakt components on a page styled by the product theme. Change the theme at the top to see the dark version, and narrow the window to see the phone layout.</p>
|
|
45
45
|
|
|
46
|
-
<
|
|
46
|
+
<impakt-error-summary id="problems"></impakt-error-summary>
|
|
47
47
|
|
|
48
48
|
<section aria-labelledby="h-cases">
|
|
49
49
|
<h2 id="h-cases">A table with search, sorting, selection and pages</h2>
|
|
50
50
|
<div class="card">
|
|
51
51
|
<div class="toolbar">
|
|
52
|
-
<
|
|
53
|
-
<
|
|
52
|
+
<impakt-text-input id="search" type="search" label="Search cases" description="By name or reference"></impakt-text-input>
|
|
53
|
+
<impakt-menu id="bulk" label="With selected" items='[{"text":"Export","value":"export","icon":"download"},{"text":"Archive","value":"archive"}]'></impakt-menu>
|
|
54
54
|
</div>
|
|
55
|
-
<
|
|
55
|
+
<impakt-table id="cases" caption="Open cases" stack selectable sort-key="opened" sort-direction="descending" empty-text="No cases match your search."
|
|
56
56
|
columns='[{"key":"ref","label":"Reference","sortable":true},{"key":"name","label":"Client","sortable":true},{"key":"status","label":"Status"},{"key":"opened","label":"Opened","sortable":true},{"key":"fee","label":"Fee","numeric":true,"sortable":true}]'
|
|
57
57
|
rows='[{"id":"c1","ref":"HB-1042","name":"Amira Hassan","status":"In progress","opened":"2026-11-02","fee":"£1,250"},{"id":"c2","ref":"HB-1043","name":"Tom Price","status":"Waiting","opened":"2026-11-09","fee":"£480"},{"id":"c3","ref":"HB-1044","name":"Sofia Rossi","status":"Done","opened":"2026-10-21","fee":"£12,400"},{"id":"c4","ref":"HB-1045","name":"Ben Okafor","status":"In progress","opened":"2026-11-15","fee":"£990"}]'>
|
|
58
|
-
<
|
|
59
|
-
<
|
|
60
|
-
<
|
|
61
|
-
<
|
|
62
|
-
</
|
|
63
|
-
<
|
|
58
|
+
<impakt-badge slot="cell:c1:status" tone="info">In progress</impakt-badge>
|
|
59
|
+
<impakt-badge slot="cell:c2:status" tone="warning">Waiting</impakt-badge>
|
|
60
|
+
<impakt-badge slot="cell:c3:status" tone="success">Done</impakt-badge>
|
|
61
|
+
<impakt-badge slot="cell:c4:status" tone="info">In progress</impakt-badge>
|
|
62
|
+
</impakt-table>
|
|
63
|
+
<impakt-pagination id="pages" page="2" pages="9"></impakt-pagination>
|
|
64
64
|
</div>
|
|
65
|
-
<
|
|
65
|
+
<impakt-empty-state framed heading="No documents yet" lead="Documents you upload for this case appear here." heading-level="3" icon="document"><impakt-button slot="actions" variant="secondary" href="#upload">Upload a document</impakt-button></impakt-empty-state>
|
|
66
66
|
</section>
|
|
67
67
|
|
|
68
68
|
<section aria-labelledby="h-tabs">
|
|
69
69
|
<h2 id="h-tabs">Tabs</h2>
|
|
70
|
-
<
|
|
70
|
+
<impakt-tabs id="tabs" label="Case" two-rows selected="files"
|
|
71
71
|
items='[{"id":"summary","label":"Summary","body":"The case at a glance."},{"id":"tasks","label":"Tasks","body":""},{"id":"files","label":"Files","body":""},{"id":"messages","label":"Messages","body":"No messages yet."},{"id":"payments","label":"Payments","body":"Nothing to pay."},{"id":"history","label":"History","body":"Opened on 2 November 2026."}]'>
|
|
72
72
|
<div slot="tasks">
|
|
73
|
-
<
|
|
74
|
-
items='[{"id":"t1","title":"Vehicle details","href":"#vehicle","status":"done"},{"id":"t2","title":"Proof of ownership","href":"#upload","status":"in-progress","hint":"Takes about five minutes"},{"id":"t3","title":"Payment","href":"#pay","status":"not-started"},{"id":"t4","title":"Registration","status":"cannot-start"}]'></
|
|
73
|
+
<impakt-task-list heading="Your import" heading-level="3"
|
|
74
|
+
items='[{"id":"t1","title":"Vehicle details","href":"#vehicle","status":"done"},{"id":"t2","title":"Proof of ownership","href":"#upload","status":"in-progress","hint":"Takes about five minutes"},{"id":"t3","title":"Payment","href":"#pay","status":"not-started"},{"id":"t4","title":"Registration","status":"cannot-start"}]'></impakt-task-list>
|
|
75
75
|
</div>
|
|
76
76
|
<div slot="files">
|
|
77
|
-
<
|
|
78
|
-
<
|
|
77
|
+
<impakt-document-link href="#v5c" label="V5C registration certificate" file-type="PDF" byte-size="245760"></impakt-document-link>
|
|
78
|
+
<impakt-file-upload id="upload" label="Add proof of ownership" description="PDF, JPG or PNG, up to 10 MB each" many-files></impakt-file-upload>
|
|
79
79
|
</div>
|
|
80
|
-
</
|
|
80
|
+
</impakt-tabs>
|
|
81
81
|
</section>
|
|
82
82
|
|
|
83
83
|
<section aria-labelledby="h-summary" class="grid2">
|
|
84
84
|
<div class="card">
|
|
85
85
|
<h2 id="h-summary">Summary list</h2>
|
|
86
|
-
<
|
|
86
|
+
<impakt-summary-list rows='[{"key":"Vehicle","value":"2019 Toyota Land Cruiser","changeHref":"#vehicle"},{"key":"Port","value":"Southampton","changeHref":"#port"},{"key":"Arriving","value":"12 December 2026"}]'></impakt-summary-list>
|
|
87
87
|
</div>
|
|
88
88
|
<div class="card">
|
|
89
|
-
<h2>Badges
|
|
89
|
+
<h2>Badges and progress</h2>
|
|
90
90
|
<div class="row">
|
|
91
|
-
<
|
|
91
|
+
<impakt-badge>Draft</impakt-badge><impakt-badge tone="brand">New</impakt-badge><impakt-badge tone="success" icon="check">Paid</impakt-badge><impakt-badge tone="warning">Due soon</impakt-badge><impakt-badge tone="danger">Overdue</impakt-badge><impakt-badge tone="info">Shipped</impakt-badge>
|
|
92
92
|
</div>
|
|
93
|
-
<
|
|
94
|
-
<impkt-steps orientation="vertical" heading-level="3" items='[{"heading":"Shipped","text":"Left Yokohama on 3 November.","meta":"Done"},{"heading":"At sea","text":"About five weeks."},{"heading":"Customs","text":"We clear it for you."}]'></impkt-steps>
|
|
93
|
+
<impakt-progress steps='[{"id":"a","label":"Details"},{"id":"b","label":"Documents"},{"id":"c","label":"Payment"}]' current="b"></impakt-progress>
|
|
95
94
|
</div>
|
|
96
95
|
</section>
|
|
97
96
|
|
|
98
97
|
<section aria-labelledby="h-form">
|
|
99
98
|
<h2 id="h-form">A form</h2>
|
|
100
99
|
<form class="card" id="form" novalidate>
|
|
101
|
-
<
|
|
102
|
-
<
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
<
|
|
106
|
-
<
|
|
100
|
+
<impakt-text-input id="name" name="name" label="Full name" required autocomplete="name"></impakt-text-input>
|
|
101
|
+
<impakt-date-input id="arrival" name="arrival" label="Arrival date" description="For example, 12 12 2026"></impakt-date-input>
|
|
102
|
+
<impakt-money-input id="value" name="value" label="Value of the vehicle" lowest="1000"></impakt-money-input>
|
|
103
|
+
<impakt-select name="port" label="Port" options='[{"value":"sou","label":"Southampton"},{"value":"til","label":"Tilbury"}]'></impakt-select>
|
|
104
|
+
<impakt-textarea name="notes" label="Anything else we should know"></impakt-textarea>
|
|
105
|
+
<impakt-checkbox name="agree" label="I confirm these details are correct"></impakt-checkbox>
|
|
107
106
|
<div class="row">
|
|
108
|
-
<
|
|
109
|
-
<
|
|
110
|
-
<
|
|
111
|
-
<
|
|
107
|
+
<impakt-button id="submit" variant="primary" type="submit">Save and continue</impakt-button>
|
|
108
|
+
<impakt-button id="open-dialog" variant="secondary">Cancel the import</impakt-button>
|
|
109
|
+
<impakt-button id="open-drawer" variant="secondary">Filters</impakt-button>
|
|
110
|
+
<impakt-button id="show-toast" variant="secondary">Save a draft</impakt-button>
|
|
112
111
|
</div>
|
|
113
112
|
</form>
|
|
114
113
|
</section>
|
|
115
114
|
|
|
116
115
|
<section aria-labelledby="h-alerts">
|
|
117
116
|
<h2 id="h-alerts">Alerts</h2>
|
|
118
|
-
<
|
|
119
|
-
<
|
|
120
|
-
<
|
|
121
|
-
<
|
|
117
|
+
<impakt-alert tone="info" heading="Your vehicle has shipped">It left Yokohama on 3 November.</impakt-alert>
|
|
118
|
+
<impakt-alert tone="success" heading="Payment received">Thank you. We have sent a receipt.</impakt-alert>
|
|
119
|
+
<impakt-alert tone="warning" heading="A document is missing">Upload proof of ownership before 1 December.</impakt-alert>
|
|
120
|
+
<impakt-alert tone="danger" heading="Payment failed">Try another card.</impakt-alert>
|
|
122
121
|
</section>
|
|
123
122
|
</main>
|
|
124
123
|
|
|
125
|
-
<
|
|
124
|
+
<impakt-dialog id="dialog" heading="Cancel this import?" phone-full-screen>
|
|
126
125
|
<p>We keep your details for 30 days, so you can start again.</p>
|
|
127
126
|
<div class="row">
|
|
128
|
-
<
|
|
129
|
-
<
|
|
127
|
+
<impakt-button id="dialog-keep" variant="primary">Keep the import</impakt-button>
|
|
128
|
+
<impakt-button id="dialog-cancel" variant="secondary">Cancel it</impakt-button>
|
|
130
129
|
</div>
|
|
131
|
-
</
|
|
130
|
+
</impakt-dialog>
|
|
132
131
|
|
|
133
|
-
<
|
|
134
|
-
<
|
|
135
|
-
<
|
|
136
|
-
</
|
|
132
|
+
<impakt-drawer id="drawer" heading="Filters">
|
|
133
|
+
<impakt-checkbox-group label="Status" options='[{"value":"open","label":"Open"},{"value":"waiting","label":"Waiting"},{"value":"done","label":"Done"}]'></impakt-checkbox-group>
|
|
134
|
+
<impakt-button slot="footer" id="drawer-apply" variant="primary">Show cases</impakt-button>
|
|
135
|
+
</impakt-drawer>
|
|
137
136
|
|
|
138
|
-
<
|
|
137
|
+
<impakt-toast id="toast" tone="success" message="Draft saved" action-text="Undo"></impakt-toast>
|
|
139
138
|
|
|
140
139
|
<script type="module">
|
|
141
140
|
const $ = (id) => document.getElementById(id);
|
|
@@ -148,7 +147,7 @@
|
|
|
148
147
|
// Search filters the table. With nothing left, the table says so.
|
|
149
148
|
const table = $('cases');
|
|
150
149
|
const all = table.rows;
|
|
151
|
-
$('search').addEventListener('
|
|
150
|
+
$('search').addEventListener('impakt-change', (e) => {
|
|
152
151
|
const q = e.detail.value.trim().toLowerCase();
|
|
153
152
|
table.rows = all.filter((r) => !q || `${r.ref} ${r.name}`.toLowerCase().includes(q));
|
|
154
153
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomic-ui/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "The
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "The Impakt component library: standard custom elements, styled only from design tokens, built to WCAG 2.2 AA.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/matthill8286/impkt-design-system.git",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"bin": {
|
|
30
|
-
"
|
|
30
|
+
"impakt-ui-copy": "./scripts/copy-to-product.mjs"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"lit": "^3.3.3",
|
|
34
|
-
"@atomic-ui/design-tokens": "^0.
|
|
34
|
+
"@atomic-ui/design-tokens": "^0.5.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.14.0",
|
package/specimen/index.html
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title>
|
|
6
|
+
<title>Impakt components in a plain HTML product</title>
|
|
7
7
|
<!--
|
|
8
8
|
A plain HTML product needs two files beside this page: theme.css from
|
|
9
9
|
@atomic-ui/theme (pnpm theme:copy) and atomic-ui.js from @atomic-ui/ui
|
|
10
|
-
(pnpm ui:copy). The theme gives the page the
|
|
10
|
+
(pnpm ui:copy). The theme gives the page the Impakt look and gives the
|
|
11
11
|
components their tokens, in light and in dark. The script defines every
|
|
12
12
|
element when it loads.
|
|
13
13
|
-->
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
section { margin-bottom: var(--ik-space-8); }
|
|
19
19
|
.lede { color: var(--ik-ink-muted); max-width: 60ch; margin: 0 0 var(--ik-space-6); }
|
|
20
20
|
.toolbar { display: flex; flex-wrap: wrap; gap: var(--ik-space-3); align-items: flex-end; margin-bottom: var(--ik-space-4); }
|
|
21
|
-
.toolbar
|
|
21
|
+
.toolbar impakt-text-input { flex: 1 1 16rem; margin: 0; }
|
|
22
22
|
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ik-space-4); }
|
|
23
23
|
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
|
|
24
24
|
.row { display: flex; flex-wrap: wrap; gap: var(--ik-space-2); align-items: center; }
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<body>
|
|
28
28
|
<a class="ik-skip" href="#main">Skip to the content</a>
|
|
29
29
|
<header class="ik-header">
|
|
30
|
-
<a class="ik-brand" href="./"><span class="ik-mark" aria-hidden="true"></span><span><b>
|
|
30
|
+
<a class="ik-brand" href="./"><span class="ik-mark" aria-hidden="true"></span><span><b>Impakt</b> <span class="ik-product">Components</span></span></a>
|
|
31
31
|
<div class="row">
|
|
32
32
|
<label for="theme" class="ik-sr-only">Theme</label>
|
|
33
33
|
<select id="theme" style="min-height:44px;padding:4px 10px;font-size:16px">
|
|
@@ -35,107 +35,106 @@
|
|
|
35
35
|
<option value="light">Light</option>
|
|
36
36
|
<option value="dark">Dark</option>
|
|
37
37
|
</select>
|
|
38
|
-
<
|
|
38
|
+
<impakt-menu id="account" label="Account" edge="end" items='[{"text":"Profile","href":"#profile","icon":"user"},{"text":"Settings","value":"settings"},{"text":"Sign out","value":"sign-out","tone":"danger"}]'></impakt-menu>
|
|
39
39
|
</div>
|
|
40
40
|
</header>
|
|
41
41
|
|
|
42
42
|
<main id="main">
|
|
43
43
|
<h1>Components for the products</h1>
|
|
44
|
-
<p class="lede">The parts the apps and the AI tools use most, drawn by the
|
|
44
|
+
<p class="lede">The parts the apps and the AI tools use most, drawn by the Impakt components on a page styled by the product theme. Change the theme at the top to see the dark version, and narrow the window to see the phone layout.</p>
|
|
45
45
|
|
|
46
|
-
<
|
|
46
|
+
<impakt-error-summary id="problems"></impakt-error-summary>
|
|
47
47
|
|
|
48
48
|
<section aria-labelledby="h-cases">
|
|
49
49
|
<h2 id="h-cases">A table with search, sorting, selection and pages</h2>
|
|
50
50
|
<div class="card">
|
|
51
51
|
<div class="toolbar">
|
|
52
|
-
<
|
|
53
|
-
<
|
|
52
|
+
<impakt-text-input id="search" type="search" label="Search cases" description="By name or reference"></impakt-text-input>
|
|
53
|
+
<impakt-menu id="bulk" label="With selected" items='[{"text":"Export","value":"export","icon":"download"},{"text":"Archive","value":"archive"}]'></impakt-menu>
|
|
54
54
|
</div>
|
|
55
|
-
<
|
|
55
|
+
<impakt-table id="cases" caption="Open cases" stack selectable sort-key="opened" sort-direction="descending" empty-text="No cases match your search."
|
|
56
56
|
columns='[{"key":"ref","label":"Reference","sortable":true},{"key":"name","label":"Client","sortable":true},{"key":"status","label":"Status"},{"key":"opened","label":"Opened","sortable":true},{"key":"fee","label":"Fee","numeric":true,"sortable":true}]'
|
|
57
57
|
rows='[{"id":"c1","ref":"HB-1042","name":"Amira Hassan","status":"In progress","opened":"2026-11-02","fee":"£1,250"},{"id":"c2","ref":"HB-1043","name":"Tom Price","status":"Waiting","opened":"2026-11-09","fee":"£480"},{"id":"c3","ref":"HB-1044","name":"Sofia Rossi","status":"Done","opened":"2026-10-21","fee":"£12,400"},{"id":"c4","ref":"HB-1045","name":"Ben Okafor","status":"In progress","opened":"2026-11-15","fee":"£990"}]'>
|
|
58
|
-
<
|
|
59
|
-
<
|
|
60
|
-
<
|
|
61
|
-
<
|
|
62
|
-
</
|
|
63
|
-
<
|
|
58
|
+
<impakt-badge slot="cell:c1:status" tone="info">In progress</impakt-badge>
|
|
59
|
+
<impakt-badge slot="cell:c2:status" tone="warning">Waiting</impakt-badge>
|
|
60
|
+
<impakt-badge slot="cell:c3:status" tone="success">Done</impakt-badge>
|
|
61
|
+
<impakt-badge slot="cell:c4:status" tone="info">In progress</impakt-badge>
|
|
62
|
+
</impakt-table>
|
|
63
|
+
<impakt-pagination id="pages" page="2" pages="9"></impakt-pagination>
|
|
64
64
|
</div>
|
|
65
|
-
<
|
|
65
|
+
<impakt-empty-state framed heading="No documents yet" lead="Documents you upload for this case appear here." heading-level="3" icon="document"><impakt-button slot="actions" variant="secondary" href="#upload">Upload a document</impakt-button></impakt-empty-state>
|
|
66
66
|
</section>
|
|
67
67
|
|
|
68
68
|
<section aria-labelledby="h-tabs">
|
|
69
69
|
<h2 id="h-tabs">Tabs</h2>
|
|
70
|
-
<
|
|
70
|
+
<impakt-tabs id="tabs" label="Case" two-rows selected="files"
|
|
71
71
|
items='[{"id":"summary","label":"Summary","body":"The case at a glance."},{"id":"tasks","label":"Tasks","body":""},{"id":"files","label":"Files","body":""},{"id":"messages","label":"Messages","body":"No messages yet."},{"id":"payments","label":"Payments","body":"Nothing to pay."},{"id":"history","label":"History","body":"Opened on 2 November 2026."}]'>
|
|
72
72
|
<div slot="tasks">
|
|
73
|
-
<
|
|
74
|
-
items='[{"id":"t1","title":"Vehicle details","href":"#vehicle","status":"done"},{"id":"t2","title":"Proof of ownership","href":"#upload","status":"in-progress","hint":"Takes about five minutes"},{"id":"t3","title":"Payment","href":"#pay","status":"not-started"},{"id":"t4","title":"Registration","status":"cannot-start"}]'></
|
|
73
|
+
<impakt-task-list heading="Your import" heading-level="3"
|
|
74
|
+
items='[{"id":"t1","title":"Vehicle details","href":"#vehicle","status":"done"},{"id":"t2","title":"Proof of ownership","href":"#upload","status":"in-progress","hint":"Takes about five minutes"},{"id":"t3","title":"Payment","href":"#pay","status":"not-started"},{"id":"t4","title":"Registration","status":"cannot-start"}]'></impakt-task-list>
|
|
75
75
|
</div>
|
|
76
76
|
<div slot="files">
|
|
77
|
-
<
|
|
78
|
-
<
|
|
77
|
+
<impakt-document-link href="#v5c" label="V5C registration certificate" file-type="PDF" byte-size="245760"></impakt-document-link>
|
|
78
|
+
<impakt-file-upload id="upload" label="Add proof of ownership" description="PDF, JPG or PNG, up to 10 MB each" many-files></impakt-file-upload>
|
|
79
79
|
</div>
|
|
80
|
-
</
|
|
80
|
+
</impakt-tabs>
|
|
81
81
|
</section>
|
|
82
82
|
|
|
83
83
|
<section aria-labelledby="h-summary" class="grid2">
|
|
84
84
|
<div class="card">
|
|
85
85
|
<h2 id="h-summary">Summary list</h2>
|
|
86
|
-
<
|
|
86
|
+
<impakt-summary-list rows='[{"key":"Vehicle","value":"2019 Toyota Land Cruiser","changeHref":"#vehicle"},{"key":"Port","value":"Southampton","changeHref":"#port"},{"key":"Arriving","value":"12 December 2026"}]'></impakt-summary-list>
|
|
87
87
|
</div>
|
|
88
88
|
<div class="card">
|
|
89
|
-
<h2>Badges
|
|
89
|
+
<h2>Badges and progress</h2>
|
|
90
90
|
<div class="row">
|
|
91
|
-
<
|
|
91
|
+
<impakt-badge>Draft</impakt-badge><impakt-badge tone="brand">New</impakt-badge><impakt-badge tone="success" icon="check">Paid</impakt-badge><impakt-badge tone="warning">Due soon</impakt-badge><impakt-badge tone="danger">Overdue</impakt-badge><impakt-badge tone="info">Shipped</impakt-badge>
|
|
92
92
|
</div>
|
|
93
|
-
<
|
|
94
|
-
<impkt-steps orientation="vertical" heading-level="3" items='[{"heading":"Shipped","text":"Left Yokohama on 3 November.","meta":"Done"},{"heading":"At sea","text":"About five weeks."},{"heading":"Customs","text":"We clear it for you."}]'></impkt-steps>
|
|
93
|
+
<impakt-progress steps='[{"id":"a","label":"Details"},{"id":"b","label":"Documents"},{"id":"c","label":"Payment"}]' current="b"></impakt-progress>
|
|
95
94
|
</div>
|
|
96
95
|
</section>
|
|
97
96
|
|
|
98
97
|
<section aria-labelledby="h-form">
|
|
99
98
|
<h2 id="h-form">A form</h2>
|
|
100
99
|
<form class="card" id="form" novalidate>
|
|
101
|
-
<
|
|
102
|
-
<
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
<
|
|
106
|
-
<
|
|
100
|
+
<impakt-text-input id="name" name="name" label="Full name" required autocomplete="name"></impakt-text-input>
|
|
101
|
+
<impakt-date-input id="arrival" name="arrival" label="Arrival date" description="For example, 12 12 2026"></impakt-date-input>
|
|
102
|
+
<impakt-money-input id="value" name="value" label="Value of the vehicle" lowest="1000"></impakt-money-input>
|
|
103
|
+
<impakt-select name="port" label="Port" options='[{"value":"sou","label":"Southampton"},{"value":"til","label":"Tilbury"}]'></impakt-select>
|
|
104
|
+
<impakt-textarea name="notes" label="Anything else we should know"></impakt-textarea>
|
|
105
|
+
<impakt-checkbox name="agree" label="I confirm these details are correct"></impakt-checkbox>
|
|
107
106
|
<div class="row">
|
|
108
|
-
<
|
|
109
|
-
<
|
|
110
|
-
<
|
|
111
|
-
<
|
|
107
|
+
<impakt-button id="submit" variant="primary" type="submit">Save and continue</impakt-button>
|
|
108
|
+
<impakt-button id="open-dialog" variant="secondary">Cancel the import</impakt-button>
|
|
109
|
+
<impakt-button id="open-drawer" variant="secondary">Filters</impakt-button>
|
|
110
|
+
<impakt-button id="show-toast" variant="secondary">Save a draft</impakt-button>
|
|
112
111
|
</div>
|
|
113
112
|
</form>
|
|
114
113
|
</section>
|
|
115
114
|
|
|
116
115
|
<section aria-labelledby="h-alerts">
|
|
117
116
|
<h2 id="h-alerts">Alerts</h2>
|
|
118
|
-
<
|
|
119
|
-
<
|
|
120
|
-
<
|
|
121
|
-
<
|
|
117
|
+
<impakt-alert tone="info" heading="Your vehicle has shipped">It left Yokohama on 3 November.</impakt-alert>
|
|
118
|
+
<impakt-alert tone="success" heading="Payment received">Thank you. We have sent a receipt.</impakt-alert>
|
|
119
|
+
<impakt-alert tone="warning" heading="A document is missing">Upload proof of ownership before 1 December.</impakt-alert>
|
|
120
|
+
<impakt-alert tone="danger" heading="Payment failed">Try another card.</impakt-alert>
|
|
122
121
|
</section>
|
|
123
122
|
</main>
|
|
124
123
|
|
|
125
|
-
<
|
|
124
|
+
<impakt-dialog id="dialog" heading="Cancel this import?" phone-full-screen>
|
|
126
125
|
<p>We keep your details for 30 days, so you can start again.</p>
|
|
127
126
|
<div class="row">
|
|
128
|
-
<
|
|
129
|
-
<
|
|
127
|
+
<impakt-button id="dialog-keep" variant="primary">Keep the import</impakt-button>
|
|
128
|
+
<impakt-button id="dialog-cancel" variant="secondary">Cancel it</impakt-button>
|
|
130
129
|
</div>
|
|
131
|
-
</
|
|
130
|
+
</impakt-dialog>
|
|
132
131
|
|
|
133
|
-
<
|
|
134
|
-
<
|
|
135
|
-
<
|
|
136
|
-
</
|
|
132
|
+
<impakt-drawer id="drawer" heading="Filters">
|
|
133
|
+
<impakt-checkbox-group label="Status" options='[{"value":"open","label":"Open"},{"value":"waiting","label":"Waiting"},{"value":"done","label":"Done"}]'></impakt-checkbox-group>
|
|
134
|
+
<impakt-button slot="footer" id="drawer-apply" variant="primary">Show cases</impakt-button>
|
|
135
|
+
</impakt-drawer>
|
|
137
136
|
|
|
138
|
-
<
|
|
137
|
+
<impakt-toast id="toast" tone="success" message="Draft saved" action-text="Undo"></impakt-toast>
|
|
139
138
|
|
|
140
139
|
<script type="module">
|
|
141
140
|
const $ = (id) => document.getElementById(id);
|
|
@@ -148,7 +147,7 @@
|
|
|
148
147
|
// Search filters the table. With nothing left, the table says so.
|
|
149
148
|
const table = $('cases');
|
|
150
149
|
const all = table.rows;
|
|
151
|
-
$('search').addEventListener('
|
|
150
|
+
$('search').addEventListener('impakt-change', (e) => {
|
|
152
151
|
const q = e.detail.value.trim().toLowerCase();
|
|
153
152
|
table.rows = all.filter((r) => !q || `${r.ref} ${r.name}`.toLowerCase().includes(q));
|
|
154
153
|
});
|