@atomic-ui/theme 0.7.1 → 0.7.2

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 CHANGED
@@ -48,19 +48,19 @@ Every product token starts with `--ik-` and every new class with `.ik-`, so noth
48
48
 
49
49
  Version 0.4.0 adds the patterns a paying customer needs to find their way through a tool on their own. Each is a class on plain markup, and the specimen page shows them all.
50
50
 
51
- | Pattern | Use it for |
52
- | --- | --- |
53
- | `.ik-main` (`.narrow`, `.wide`) | The main column of every screen |
54
- | `.ik-page-head`, `.ik-back`, `.ik-facts` | The top of a detail page: where to go back to, what this is, its status and the main action |
55
- | `.ik-steps`, `.ik-step-hint` | A job with stages, such as evidence, claims and pack. Use it in place of `.tabs` when the order matters |
56
- | `.ik-empty` | Any list or screen before it has content. Always offer the next action, and sample data where there is some |
57
- | `.ik-drop`, `.ik-files` | Every file upload |
58
- | `.ik-progress`, `.ik-spinner` | Any step that waits for a model |
59
- | `.ik-prose`, `.ik-quote`, `.ik-source` | Anything the model wrote, and the source it quotes |
60
- | `.ik-summary`, `.ik-stat`, `.ik-meter` | The numbers a screen is about, and usage against a limit |
61
- | `.ik-split`, `.ik-side` | A review queue beside the item being reviewed |
62
- | `.ik-account`, `.ik-avatar` | The account menu with the plan, usage and billing |
63
- | `.ik-toolbar`, `.ik-sep` | A row of actions with one primary action |
51
+ | Pattern | Use it for |
52
+ | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
53
+ | `.ik-main` (`.narrow`, `.wide`) | The main column of every screen |
54
+ | `.ik-page-head`, `.ik-back`, `.ik-facts` | The top of a detail page: where to go back to, what this is, its status and the main action |
55
+ | `.ik-steps`, `.ik-step-hint` | A job with stages, such as evidence, claims and pack. Use it in place of `.tabs` when the order matters |
56
+ | `.ik-empty` | Any list or screen before it has content. Always offer the next action, and sample data where there is some |
57
+ | `.ik-drop`, `.ik-files` | Every file upload |
58
+ | `.ik-progress`, `.ik-spinner` | Any step that waits for a model |
59
+ | `.ik-prose`, `.ik-quote`, `.ik-source` | Anything the model wrote, and the source it quotes |
60
+ | `.ik-summary`, `.ik-stat`, `.ik-meter` | The numbers a screen is about, and usage against a limit |
61
+ | `.ik-split`, `.ik-side` | A review queue beside the item being reviewed |
62
+ | `.ik-account`, `.ik-avatar` | The account menu with the plan, usage and billing |
63
+ | `.ik-toolbar`, `.ik-sep` | A row of actions with one primary action |
64
64
 
65
65
  ## Principles
66
66
 
package/dist/index.html CHANGED
@@ -1,193 +1,262 @@
1
1
  <!doctype html>
2
2
  <html lang="en-GB">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>Impakt product theme</title>
7
- <link rel="stylesheet" href="theme.css">
8
- <style>
9
- main { max-width: 960px; margin: 0 auto; padding: var(--ik-space-6) var(--ik-gutter) var(--ik-space-12); }
10
- section { margin-bottom: var(--ik-space-8); }
11
- .lede { color: var(--ik-ink-muted); max-width: 60ch; margin: 0 0 var(--ik-space-6); }
12
- .swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--ik-space-3); }
13
- .swatch { border: 1px solid var(--ik-line); border-radius: var(--ik-radius-md); overflow: hidden; background: var(--ik-surface-card); font-size: var(--ik-text-xs); }
14
- .swatch i { display: block; height: 52px; }
15
- .swatch span { display: block; padding: var(--ik-space-2) var(--ik-space-3); }
16
- .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ik-space-4); }
17
- @media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
18
- .ramp p { margin: 0 0 var(--ik-space-2); }
19
- </style>
20
- </head>
21
- <body>
22
- <a class="ik-skip" href="#main">Skip to the content</a>
23
- <header class="ik-header">
24
- <a class="ik-brand" href="./"><span><b>Impakt</b> <span class="ik-product">Specimen</span></span></a>
25
- <div class="row">
26
- <label for="theme" class="ik-sr-only">Theme</label>
27
- <select id="theme" style="min-height:36px;padding:4px 10px">
28
- <option value="">Device theme</option>
29
- <option value="light">Light</option>
30
- <option value="dark">Dark</option>
31
- </select>
32
- </div>
33
- </header>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Impakt product theme</title>
7
+ <link rel="stylesheet" href="theme.css" />
8
+ <style>
9
+ main { max-width: 960px; margin: 0 auto; padding: var(--ik-space-6) var(--ik-gutter) var(--ik-space-12); }
10
+ section { margin-bottom: var(--ik-space-8); }
11
+ .lede { color: var(--ik-ink-muted); max-width: 60ch; margin: 0 0 var(--ik-space-6); }
12
+ .swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--ik-space-3); }
13
+ .swatch { border: 1px solid var(--ik-line); border-radius: var(--ik-radius-md); overflow: hidden; background: var(--ik-surface-card); font-size: var(--ik-text-xs); }
14
+ .swatch i { display: block; height: 52px; }
15
+ .swatch span { display: block; padding: var(--ik-space-2) var(--ik-space-3); }
16
+ .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ik-space-4); }
17
+ @media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
18
+ .ramp p { margin: 0 0 var(--ik-space-2); }
19
+ </style>
20
+ </head>
21
+ <body>
22
+ <a class="ik-skip" href="#main">Skip to the content</a>
23
+ <header class="ik-header">
24
+ <a class="ik-brand" href="./"
25
+ ><span><b>Impakt</b> <span class="ik-product">Specimen</span></span></a
26
+ >
27
+ <div class="row">
28
+ <label for="theme" class="ik-sr-only">Theme</label>
29
+ <select id="theme" style="min-height:36px;padding:4px 10px">
30
+ <option value="">Device theme</option>
31
+ <option value="light">Light</option>
32
+ <option value="dark">Dark</option>
33
+ </select>
34
+ </div>
35
+ </header>
34
36
 
35
- <main id="main">
36
- <h1>Impakt product theme</h1>
37
- <p class="lede">Every part of the shared look on one page. Change the theme at the top to see the dark version, and narrow the window to see the phone layout.</p>
37
+ <main id="main">
38
+ <h1>Impakt product theme</h1>
39
+ <p class="lede">
40
+ Every part of the shared look on one page. Change the theme at the top to see the dark version, and narrow the window to see the phone layout.
41
+ </p>
38
42
 
39
- <section aria-labelledby="h-colour">
40
- <h2 id="h-colour">Colour roles</h2>
41
- <div class="swatches">
42
- <div class="swatch"><i style="background:var(--ik-surface-page)"></i><span>Page</span></div>
43
- <div class="swatch"><i style="background:var(--ik-surface-card)"></i><span>Card</span></div>
44
- <div class="swatch"><i style="background:var(--ik-surface-inset)"></i><span>Inset</span></div>
45
- <div class="swatch"><i style="background:var(--ik-surface-board)"></i><span>Board</span></div>
46
- <div class="swatch"><i style="background:var(--ik-ink)"></i><span>Ink</span></div>
47
- <div class="swatch"><i style="background:var(--ik-ink-muted)"></i><span>Muted ink</span></div>
48
- <div class="swatch"><i style="background:var(--ik-brand)"></i><span>Plum, the action colour</span></div>
49
- <div class="swatch"><i style="background:var(--ik-gold)"></i><span>Gold, a fill only</span></div>
50
- <div class="swatch"><i style="background:var(--ik-danger)"></i><span>Danger</span></div>
51
- <div class="swatch"><i style="background:var(--ik-warning)"></i><span>Warning</span></div>
52
- <div class="swatch"><i style="background:var(--ik-success)"></i><span>Success</span></div>
53
- <div class="swatch"><i style="background:var(--ik-info)"></i><span>Information</span></div>
54
- </div>
55
- </section>
43
+ <section aria-labelledby="h-colour">
44
+ <h2 id="h-colour">Colour roles</h2>
45
+ <div class="swatches">
46
+ <div class="swatch"><i style="background:var(--ik-surface-page)"></i><span>Page</span></div>
47
+ <div class="swatch"><i style="background:var(--ik-surface-card)"></i><span>Card</span></div>
48
+ <div class="swatch"><i style="background:var(--ik-surface-inset)"></i><span>Inset</span></div>
49
+ <div class="swatch"><i style="background:var(--ik-surface-board)"></i><span>Board</span></div>
50
+ <div class="swatch"><i style="background:var(--ik-ink)"></i><span>Ink</span></div>
51
+ <div class="swatch"><i style="background:var(--ik-ink-muted)"></i><span>Muted ink</span></div>
52
+ <div class="swatch"><i style="background:var(--ik-brand)"></i><span>Plum, the action colour</span></div>
53
+ <div class="swatch"><i style="background:var(--ik-gold)"></i><span>Gold, a fill only</span></div>
54
+ <div class="swatch"><i style="background:var(--ik-danger)"></i><span>Danger</span></div>
55
+ <div class="swatch"><i style="background:var(--ik-warning)"></i><span>Warning</span></div>
56
+ <div class="swatch"><i style="background:var(--ik-success)"></i><span>Success</span></div>
57
+ <div class="swatch"><i style="background:var(--ik-info)"></i><span>Information</span></div>
58
+ </div>
59
+ </section>
56
60
 
57
- <section aria-labelledby="h-type" class="ramp">
58
- <h2 id="h-type">Type</h2>
59
- <div class="card">
60
- <p style="font-size:var(--ik-text-3xl);font-weight:600;letter-spacing:-.02em;line-height:1.2">Thirty pixels for a page title</p>
61
- <p style="font-size:var(--ik-text-2xl);font-weight:600">Twenty-four for a main heading</p>
62
- <p style="font-size:var(--ik-text-xl);font-weight:600">Twenty for a section</p>
63
- <p style="font-size:var(--ik-text-lg)">Eighteen for a lead paragraph</p>
64
- <p>Sixteen for body text and for every field.</p>
65
- <p style="font-size:var(--ik-text-sm)">Fifteen for buttons, labels and dense rows.</p>
66
- <p class="small muted">Fourteen, the smallest size, for pills, captions and table headings.</p>
67
- </div>
68
- </section>
61
+ <section aria-labelledby="h-type" class="ramp">
62
+ <h2 id="h-type">Type</h2>
63
+ <div class="card">
64
+ <p style="font-size:var(--ik-text-3xl);font-weight:600;letter-spacing:-.02em;line-height:1.2">Thirty pixels for a page title</p>
65
+ <p style="font-size:var(--ik-text-2xl);font-weight:600">Twenty-four for a main heading</p>
66
+ <p style="font-size:var(--ik-text-xl);font-weight:600">Twenty for a section</p>
67
+ <p style="font-size:var(--ik-text-lg)">Eighteen for a lead paragraph</p>
68
+ <p>Sixteen for body text and for every field.</p>
69
+ <p style="font-size:var(--ik-text-sm)">Fifteen for buttons, labels and dense rows.</p>
70
+ <p class="small muted">Fourteen, the smallest size, for pills, captions and table headings.</p>
71
+ </div>
72
+ </section>
69
73
 
70
- <section aria-labelledby="h-actions">
71
- <h2 id="h-actions">Buttons</h2>
72
- <div class="card row">
73
- <button class="primary" type="button">Save the brief</button>
74
- <button type="button">Add a file</button>
75
- <button class="ghost" type="button">Cancel</button>
76
- <button class="danger" type="button">Delete</button>
77
- <button class="small" type="button">Small</button>
78
- <button class="primary" type="button" disabled>Disabled</button>
79
- </div>
80
- </section>
74
+ <section aria-labelledby="h-actions">
75
+ <h2 id="h-actions">Buttons</h2>
76
+ <div class="card row">
77
+ <button class="primary" type="button">Save the brief</button>
78
+ <button type="button">Add a file</button>
79
+ <button class="ghost" type="button">Cancel</button>
80
+ <button class="danger" type="button">Delete</button>
81
+ <button class="small" type="button">Small</button>
82
+ <button class="primary" type="button" disabled>Disabled</button>
83
+ </div>
84
+ </section>
81
85
 
82
- <section aria-labelledby="h-fields">
83
- <h2 id="h-fields">Fields</h2>
84
- <form class="card" onsubmit="event.preventDefault()">
85
- <div class="grid2">
86
- <div class="ik-field"><label for="f1">Client name</label><input id="f1" placeholder="Harbour Dental"></div>
87
- <div class="ik-field"><label for="f2">Scheme</label><select id="f2"><option>TDS</option><option>DPS</option><option>mydeposits</option></select></div>
88
- <div class="ik-field"><label for="f3">Email</label><input id="f3" type="email" aria-invalid="true" aria-describedby="f3e" value="not an address"><span id="f3e" class="ik-hint" style="color:var(--ik-danger-text)">Enter an email address, such as name@example.com.</span></div>
89
- <div class="ik-field"><label for="f4">Upload</label><input id="f4" type="file"></div>
90
- </div>
91
- <div class="ik-field"><label for="f5">Notes</label><textarea id="f5">Anything the reviewer should know.</textarea><span class="ik-hint">This stays inside your organisation.</span></div>
92
- <label class="row" style="font-weight:400"><input type="checkbox" checked> Everyone on the call agreed to the recording.</label>
93
- </form>
94
- </section>
86
+ <section aria-labelledby="h-fields">
87
+ <h2 id="h-fields">Fields</h2>
88
+ <form class="card" onsubmit="event.preventDefault()">
89
+ <div class="grid2">
90
+ <div class="ik-field"><label for="f1">Client name</label><input id="f1" placeholder="Harbour Dental" /></div>
91
+ <div class="ik-field">
92
+ <label for="f2">Scheme</label
93
+ ><select id="f2">
94
+ <option>TDS</option>
95
+ <option>DPS</option>
96
+ <option>mydeposits</option>
97
+ </select>
98
+ </div>
99
+ <div class="ik-field">
100
+ <label for="f3">Email</label><input id="f3" type="email" aria-invalid="true" aria-describedby="f3e" value="not an address" /><span
101
+ id="f3e"
102
+ class="ik-hint"
103
+ style="color:var(--ik-danger-text)"
104
+ >Enter an email address, such as name@example.com.</span
105
+ >
106
+ </div>
107
+ <div class="ik-field"><label for="f4">Upload</label><input id="f4" type="file" /></div>
108
+ </div>
109
+ <div class="ik-field">
110
+ <label for="f5">Notes</label><textarea id="f5">Anything the reviewer should know.</textarea
111
+ ><span class="ik-hint">This stays inside your organisation.</span>
112
+ </div>
113
+ <label class="row" style="font-weight:400"><input type="checkbox" checked /> Everyone on the call agreed to the recording.</label>
114
+ </form>
115
+ </section>
95
116
 
96
- <section aria-labelledby="h-tabs">
97
- <h2 id="h-tabs">Tabs</h2>
98
- <div class="tabs" role="tablist" aria-label="Sections">
99
- <button class="on" role="tab" aria-selected="true">Overview</button>
100
- <button role="tab" aria-selected="false">Transcript</button>
101
- <button role="tab" aria-selected="false">Brief</button>
102
- <button role="tab" aria-selected="false">Estimate</button>
103
- <button role="tab" aria-selected="false">Follow-up email</button>
104
- <button role="tab" aria-selected="false">Exports</button>
105
- </div>
106
- </section>
117
+ <section aria-labelledby="h-tabs">
118
+ <h2 id="h-tabs">Tabs</h2>
119
+ <div class="tabs" role="tablist" aria-label="Sections">
120
+ <button class="on" role="tab" aria-selected="true">Overview</button>
121
+ <button role="tab" aria-selected="false">Transcript</button>
122
+ <button role="tab" aria-selected="false">Brief</button>
123
+ <button role="tab" aria-selected="false">Estimate</button>
124
+ <button role="tab" aria-selected="false">Follow-up email</button>
125
+ <button role="tab" aria-selected="false">Exports</button>
126
+ </div>
127
+ </section>
107
128
 
108
- <section aria-labelledby="h-status">
109
- <h2 id="h-status">Pills and alerts</h2>
110
- <div class="card">
111
- <p class="row"><span class="pill">Draft</span><span class="pill ok">Brief ready</span><span class="pill warn">Needs attention</span><span class="pill bad">Failed</span><span class="pill info">Reading</span><span class="pill brand">New</span></p>
112
- <div class="alert ok"><b>Saved.</b> The letter is stored and will not change.</div>
113
- <div class="alert warn"><b>Check this.</b> The insurance policy does not show public liability cover.</div>
114
- <div class="alert bad"><b>That did not work.</b> The file is larger than 50 MB.</div>
115
- <div class="alert info">The model reads the tender in the background.</div>
116
- </div>
117
- </section>
129
+ <section aria-labelledby="h-status">
130
+ <h2 id="h-status">Pills and alerts</h2>
131
+ <div class="card">
132
+ <p class="row">
133
+ <span class="pill">Draft</span><span class="pill ok">Brief ready</span><span class="pill warn">Needs attention</span
134
+ ><span class="pill bad">Failed</span><span class="pill info">Reading</span><span class="pill brand">New</span>
135
+ </p>
136
+ <div class="alert ok"><b>Saved.</b> The letter is stored and will not change.</div>
137
+ <div class="alert warn"><b>Check this.</b> The insurance policy does not show public liability cover.</div>
138
+ <div class="alert bad"><b>That did not work.</b> The file is larger than 50 MB.</div>
139
+ <div class="alert info">The model reads the tender in the background.</div>
140
+ </div>
141
+ </section>
118
142
 
119
- <section aria-labelledby="h-table">
120
- <h2 id="h-table">Table</h2>
121
- <div class="card">
122
- <table class="ik-stack">
123
- <thead><tr><th scope="col">Piece</th><th scope="col">Size</th><th scope="col" class="num">Days</th><th scope="col" class="num">Cost</th></tr></thead>
124
- <tbody>
125
- <tr><td data-label="Piece">Online booking with reminders</td><td data-label="Size">Medium</td><td data-label="Days" class="num">8</td><td data-label="Cost" class="num">£4,800</td></tr>
126
- <tr><td data-label="Piece">Patient records import</td><td data-label="Size">Small</td><td data-label="Days" class="num">3</td><td data-label="Cost" class="num">£1,800</td></tr>
127
- <tr><td data-label="Piece">Card payments for deposits</td><td data-label="Size">Large</td><td data-label="Days" class="num">13</td><td data-label="Cost" class="num">£7,800</td></tr>
128
- </tbody>
129
- </table>
130
- </div>
131
- </section>
143
+ <section aria-labelledby="h-table">
144
+ <h2 id="h-table">Table</h2>
145
+ <div class="card">
146
+ <table class="ik-stack">
147
+ <thead>
148
+ <tr>
149
+ <th scope="col">Piece</th>
150
+ <th scope="col">Size</th>
151
+ <th scope="col" class="num">Days</th>
152
+ <th scope="col" class="num">Cost</th>
153
+ </tr>
154
+ </thead>
155
+ <tbody>
156
+ <tr>
157
+ <td data-label="Piece">Online booking with reminders</td>
158
+ <td data-label="Size">Medium</td>
159
+ <td data-label="Days" class="num">8</td>
160
+ <td data-label="Cost" class="num">£4,800</td>
161
+ </tr>
162
+ <tr>
163
+ <td data-label="Piece">Patient records import</td>
164
+ <td data-label="Size">Small</td>
165
+ <td data-label="Days" class="num">3</td>
166
+ <td data-label="Cost" class="num">£1,800</td>
167
+ </tr>
168
+ <tr>
169
+ <td data-label="Piece">Card payments for deposits</td>
170
+ <td data-label="Size">Large</td>
171
+ <td data-label="Days" class="num">13</td>
172
+ <td data-label="Cost" class="num">£7,800</td>
173
+ </tr>
174
+ </tbody>
175
+ </table>
176
+ </div>
177
+ </section>
132
178
 
133
- <section aria-labelledby="h-board">
134
- <h2 id="h-board">Board</h2>
135
- <div class="ik-board">
136
- <div class="card" style="margin:0">A lilac board holds a group of cards, as the presentation boards do on weareimpakt.com.</div>
137
- </div>
138
- </section>
139
- <section aria-labelledby="h-patterns">
140
- <h2 id="h-patterns">Product patterns</h2>
141
- <div class="ik-page-head">
142
- <div>
143
- <a class="ik-back" href="#">Disputes</a>
144
- <h1>Flat 3, 10 Park Road</h1>
145
- <ul class="ik-facts"><li><strong>Sam Lee</strong></li><li>1 Sept 2024 to 31 Aug 2026</li><li>TDS</li></ul>
146
- </div>
147
- <div class="ik-actions"><span class="pill warn">2 claims to review</span><button class="primary">Build the pack</button></div>
148
- </div>
149
- <ol class="ik-steps">
150
- <li class="done"><button>Evidence<span class="ik-step-hint">7 files</span></button></li>
151
- <li class="done"><button>Items and photos<span class="ik-step-hint">5 items paired</span></button></li>
152
- <li><button aria-current="step">Claims<span class="ik-step-hint">2 to review</span></button></li>
153
- <li><button disabled>Pack<span class="ik-step-hint">After the claims</span></button></li>
154
- </ol>
155
- <div class="ik-summary">
156
- <div class="ik-stat"><span class="ik-stat-label">Claimed</span><span class="ik-stat-value">£290.00</span><span class="ik-stat-note">of a £1,800 deposit</span></div>
157
- <div class="ik-stat ok"><span class="ik-stat-label">Strong claims</span><span class="ik-stat-value">1</span><span class="ik-stat-note">Evidence on both visits</span></div>
158
- <div class="ik-stat warn"><span class="ik-stat-label">Weak claims</span><span class="ik-stat-value">1</span><span class="ik-stat-note">No invoice or quote</span></div>
159
- </div>
160
- <div class="card">
161
- <label class="ik-drop"><input type="file" multiple><strong>Drop the check-out photos here</strong><span class="ik-hint">or choose files. JPG, PNG or HEIC, up to 15 MB each.</span></label>
162
- <ul class="ik-files">
163
- <li><span class="ik-file-name">lounge-carpet-checkout.jpg</span><span class="pill ok">Read</span><button class="small ghost">Remove</button></li>
164
- <li><span class="ik-file-name">kitchen-oven.jpg</span><span class="pill info"><span class="ik-spinner" aria-hidden="true"></span>Reading</span></li>
165
- </ul>
166
- </div>
167
- <div class="ik-progress" role="status">
168
- <div class="ik-progress-label"><span>Comparing photos from both visits</span><span>3 of 8</span></div>
169
- <progress max="8" value="3">3 of 8</progress>
170
- </div>
171
- <div class="card ik-prose" style="margin-top:16px">
172
- <p>A large red wine stain about 40cm across is a spill, not reasonable use. The check-in report and photo show the carpet clean and unmarked.</p>
173
- <blockquote>"Lounge carpet: cream, clean throughout, no marks." <a class="ik-source" href="#">Check-in report, p. 2</a></blockquote>
174
- <p>Fair share: 25% of £800 for a six-year-old carpet with an eight-year life.</p>
175
- </div>
176
- <div class="ik-empty">
177
- <h3>No requests yet</h3>
178
- <p>Start a request when someone asks for their data. The one-month deadline is worked out for you.</p>
179
- <div class="ik-toolbar"><button class="primary">Start a request</button><button>Try it with sample data</button></div>
180
- </div>
181
- <p class="small muted" style="margin-top:16px">Usage this month</p>
182
- <span class="ik-meter warn" style="--ik-meter:82%" role="img" aria-label="82% of the plan used"><span></span></span>
183
- </section>
184
- </main>
185
- <script>
186
- const sel = document.getElementById('theme');
187
- sel.addEventListener('change', () => {
188
- if (sel.value) document.documentElement.dataset.theme = sel.value;
189
- else delete document.documentElement.dataset.theme;
190
- });
191
- </script>
192
- </body>
179
+ <section aria-labelledby="h-board">
180
+ <h2 id="h-board">Board</h2>
181
+ <div class="ik-board">
182
+ <div class="card" style="margin:0">A lilac board holds a group of cards, as the presentation boards do on weareimpakt.com.</div>
183
+ </div>
184
+ </section>
185
+ <section aria-labelledby="h-patterns">
186
+ <h2 id="h-patterns">Product patterns</h2>
187
+ <div class="ik-page-head">
188
+ <div>
189
+ <a class="ik-back" href="#">Disputes</a>
190
+ <h1>Flat 3, 10 Park Road</h1>
191
+ <ul class="ik-facts">
192
+ <li><strong>Sam Lee</strong></li>
193
+ <li>1 Sept 2024 to 31 Aug 2026</li>
194
+ <li>TDS</li>
195
+ </ul>
196
+ </div>
197
+ <div class="ik-actions"><span class="pill warn">2 claims to review</span><button class="primary">Build the pack</button></div>
198
+ </div>
199
+ <ol class="ik-steps">
200
+ <li class="done">
201
+ <button>Evidence<span class="ik-step-hint">7 files</span></button>
202
+ </li>
203
+ <li class="done">
204
+ <button>Items and photos<span class="ik-step-hint">5 items paired</span></button>
205
+ </li>
206
+ <li>
207
+ <button aria-current="step">Claims<span class="ik-step-hint">2 to review</span></button>
208
+ </li>
209
+ <li>
210
+ <button disabled>Pack<span class="ik-step-hint">After the claims</span></button>
211
+ </li>
212
+ </ol>
213
+ <div class="ik-summary">
214
+ <div class="ik-stat">
215
+ <span class="ik-stat-label">Claimed</span><span class="ik-stat-value">£290.00</span><span class="ik-stat-note">of a £1,800 deposit</span>
216
+ </div>
217
+ <div class="ik-stat ok">
218
+ <span class="ik-stat-label">Strong claims</span><span class="ik-stat-value">1</span><span class="ik-stat-note">Evidence on both visits</span>
219
+ </div>
220
+ <div class="ik-stat warn">
221
+ <span class="ik-stat-label">Weak claims</span><span class="ik-stat-value">1</span><span class="ik-stat-note">No invoice or quote</span>
222
+ </div>
223
+ </div>
224
+ <div class="card">
225
+ <label class="ik-drop"
226
+ ><input type="file" multiple /><strong>Drop the check-out photos here</strong
227
+ ><span class="ik-hint">or choose files. JPG, PNG or HEIC, up to 15 MB each.</span></label
228
+ >
229
+ <ul class="ik-files">
230
+ <li><span class="ik-file-name">lounge-carpet-checkout.jpg</span><span class="pill ok">Read</span><button class="small ghost">Remove</button></li>
231
+ <li>
232
+ <span class="ik-file-name">kitchen-oven.jpg</span><span class="pill info"><span class="ik-spinner" aria-hidden="true"></span>Reading</span>
233
+ </li>
234
+ </ul>
235
+ </div>
236
+ <div class="ik-progress" role="status">
237
+ <div class="ik-progress-label"><span>Comparing photos from both visits</span><span>3 of 8</span></div>
238
+ <progress max="8" value="3">3 of 8</progress>
239
+ </div>
240
+ <div class="card ik-prose" style="margin-top:16px">
241
+ <p>A large red wine stain about 40cm across is a spill, not reasonable use. The check-in report and photo show the carpet clean and unmarked.</p>
242
+ <blockquote>"Lounge carpet: cream, clean throughout, no marks." <a class="ik-source" href="#">Check-in report, p. 2</a></blockquote>
243
+ <p>Fair share: 25% of £800 for a six-year-old carpet with an eight-year life.</p>
244
+ </div>
245
+ <div class="ik-empty">
246
+ <h3>No requests yet</h3>
247
+ <p>Start a request when someone asks for their data. The one-month deadline is worked out for you.</p>
248
+ <div class="ik-toolbar"><button class="primary">Start a request</button><button>Try it with sample data</button></div>
249
+ </div>
250
+ <p class="small muted" style="margin-top:16px">Usage this month</p>
251
+ <span class="ik-meter warn" style="--ik-meter:82%" role="img" aria-label="82% of the plan used"><span></span></span>
252
+ </section>
253
+ </main>
254
+ <script>
255
+ const sel = document.getElementById('theme');
256
+ sel.addEventListener('change', () => {
257
+ if (sel.value) document.documentElement.dataset.theme = sel.value;
258
+ else delete document.documentElement.dataset.theme;
259
+ });
260
+ </script>
261
+ </body>
193
262
  </html>
package/dist/theme.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Impakt product theme, @atomic-ui/theme version 0.7.1.
2
+ * Impakt product theme, @atomic-ui/theme version 0.7.2.
3
3
  * https://github.com/matthill8286/impkt-design-system/tree/main/packages/theme
4
4
  *
5
5
  * Generated from the Impakt brand inputs by @atomic-ui/design-tokens. Do not edit this file:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-ui/theme",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "The Impakt product theme: one stylesheet and the Urbanist fonts for the plain HTML products, generated from the Impakt brand by @atomic-ui/design-tokens.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "tsx": "^4.16.0",
22
22
  "typescript": "^5.5.0",
23
23
  "vitest": "^2.0.0",
24
- "@atomic-ui/design-tokens": "^0.7.1"
24
+ "@atomic-ui/design-tokens": "^0.7.2"
25
25
  },
26
26
  "files": [
27
27
  "dist",
@@ -32,13 +32,14 @@ const { version } = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8'))
32
32
  // The commit is the design system's own, so it is read only in a checkout of it, not in an installed package.
33
33
  const inRepository = basename(dirname(root)) === 'packages' && existsSync(join(root, '..', '..', 'pnpm-workspace.yaml'));
34
34
  let commit = inRepository ? 'uncommitted' : 'as published';
35
- if (inRepository) try {
36
- commit = execFileSync('git', ['rev-parse', '--short', 'HEAD'], { cwd: root, encoding: 'utf8' }).trim();
37
- const dirty = execFileSync('git', ['status', '--porcelain', '--', '.'], { cwd: root, encoding: 'utf8' }).trim();
38
- if (dirty) commit += ' with uncommitted changes';
39
- } catch {
40
- // git is not installed: the version is enough.
41
- }
35
+ if (inRepository)
36
+ try {
37
+ commit = execFileSync('git', ['rev-parse', '--short', 'HEAD'], { cwd: root, encoding: 'utf8' }).trim();
38
+ const dirty = execFileSync('git', ['status', '--porcelain', '--', '.'], { cwd: root, encoding: 'utf8' }).trim();
39
+ if (dirty) commit += ' with uncommitted changes';
40
+ } catch {
41
+ // git is not installed: the version is enough.
42
+ }
42
43
 
43
44
  // pnpm runs a root script from the repository root, so a relative path is read from where it was typed.
44
45
  const target = resolve(process.env.INIT_CWD ?? process.cwd(), product, folder);