@valiify/dashboard-ui 0.1.0-alpha.1 → 0.1.0-alpha.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/CLAUDE.md +3578 -0
- package/COMPONENTS.md +1675 -0
- package/GETTING_STARTED.md +420 -0
- package/QUICK_REFERENCE.md +161 -0
- package/README.md +302 -283
- package/TROUBLESHOOTING.md +410 -0
- package/examples/README.md +156 -0
- package/examples/basic/index.html +155 -0
- package/examples/postcss-starter/README.md +45 -0
- package/examples/postcss-starter/index.html +54 -0
- package/examples/postcss-starter/package.json +19 -0
- package/examples/postcss-starter/postcss.config.js +5 -0
- package/examples/postcss-starter/src/styles.css +17 -0
- package/examples/vite-starter/README.md +123 -0
- package/examples/vite-starter/index.html +12 -0
- package/examples/vite-starter/package.json +19 -0
- package/examples/vite-starter/src/main.js +188 -0
- package/examples/vite-starter/src/styles.css +22 -0
- package/examples/vite-starter/vite.config.js +6 -0
- package/package.json +8 -2
package/COMPONENTS.md
ADDED
|
@@ -0,0 +1,1675 @@
|
|
|
1
|
+
# Component Reference
|
|
2
|
+
|
|
3
|
+
Complete markup examples for every component in @valiify/dashboard-ui.
|
|
4
|
+
|
|
5
|
+
> **📘 For Technical Details:** See [CLAUDE.md](CLAUDE.md) for the complete technical reference including what Figma specified, what was changed, and why.
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Form Controls](#form-controls)
|
|
10
|
+
- [Button](#button)
|
|
11
|
+
- [IconButton](#iconbutton)
|
|
12
|
+
- [TextButton](#textbutton)
|
|
13
|
+
- [Input](#input)
|
|
14
|
+
- [Textarea](#textarea)
|
|
15
|
+
- [Checkbox](#checkbox)
|
|
16
|
+
- [RadioSelect](#radioselect)
|
|
17
|
+
- [Switch](#switch)
|
|
18
|
+
- [DropdownField](#dropdownfield)
|
|
19
|
+
- [Data Display](#data-display)
|
|
20
|
+
- [Avatar](#avatar)
|
|
21
|
+
- [Chip / Badge / Dot](#chip--badge--dot)
|
|
22
|
+
- [Tag](#tag)
|
|
23
|
+
- [Pill](#pill)
|
|
24
|
+
- [DataRow](#datarow)
|
|
25
|
+
- [Divider](#divider)
|
|
26
|
+
- [Icon](#icon)
|
|
27
|
+
- [Skeleton](#skeleton)
|
|
28
|
+
- [Navigation](#navigation)
|
|
29
|
+
- [NavigationRail](#navigationrail)
|
|
30
|
+
- [Tabs](#tabs)
|
|
31
|
+
- [SegmentSelector](#segmentselector)
|
|
32
|
+
- [FilterSegment](#filtersegment)
|
|
33
|
+
- [Breadcrumbs](#breadcrumbs)
|
|
34
|
+
- [Pagination](#pagination)
|
|
35
|
+
- [MenuItem](#menuitem)
|
|
36
|
+
- [DropdownMenu](#dropdownmenu)
|
|
37
|
+
- [Link](#link)
|
|
38
|
+
- [Feedback](#feedback)
|
|
39
|
+
- [Alert](#alert)
|
|
40
|
+
- [Toast](#toast)
|
|
41
|
+
- [Modal](#modal)
|
|
42
|
+
- [Tooltip](#tooltip)
|
|
43
|
+
- [LoadingIndicator](#loadingindicator)
|
|
44
|
+
- [LoadingInline](#loadinginline)
|
|
45
|
+
- [ProgressBar](#progressbar)
|
|
46
|
+
- [Stepper](#stepper)
|
|
47
|
+
- [Review Components](#review-components)
|
|
48
|
+
- [FieldVerification](#fieldverification)
|
|
49
|
+
- [SectionMarker](#sectionmarker)
|
|
50
|
+
- [SensitiveData](#sensitivedata)
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Form Controls
|
|
55
|
+
|
|
56
|
+
### Button
|
|
57
|
+
|
|
58
|
+
Three displays (primary / outline / empty) × three sizes (sm=24px / md=28px / lg=32px).
|
|
59
|
+
|
|
60
|
+
**Default:** outline at medium size, so bare `.btn` is outline-md.
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<!-- Basic buttons -->
|
|
64
|
+
<button class="btn btn-primary">Primary Button</button>
|
|
65
|
+
<button class="btn btn-outline">Outline Button</button>
|
|
66
|
+
<button class="btn btn-empty">Empty Button</button>
|
|
67
|
+
<button class="btn btn-critical">Destructive Action</button>
|
|
68
|
+
|
|
69
|
+
<!-- Sizes -->
|
|
70
|
+
<button class="btn btn-primary btn-sm">Small (24px)</button>
|
|
71
|
+
<button class="btn btn-primary">Medium (28px, default)</button>
|
|
72
|
+
<button class="btn btn-primary btn-lg">Large (32px)</button>
|
|
73
|
+
|
|
74
|
+
<!-- States -->
|
|
75
|
+
<button class="btn btn-outline" disabled>Disabled</button>
|
|
76
|
+
<button class="btn btn-outline" aria-selected="true">Selected</button>
|
|
77
|
+
|
|
78
|
+
<!-- With icons (match icon size to button size) -->
|
|
79
|
+
<button class="btn btn-primary btn-sm">
|
|
80
|
+
<svg class="icon icon-size-13" aria-hidden="true">
|
|
81
|
+
<use href="#save" />
|
|
82
|
+
</svg>
|
|
83
|
+
Save
|
|
84
|
+
</button>
|
|
85
|
+
|
|
86
|
+
<button class="btn btn-primary">
|
|
87
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
88
|
+
<use href="#save" />
|
|
89
|
+
</svg>
|
|
90
|
+
Save
|
|
91
|
+
</button>
|
|
92
|
+
|
|
93
|
+
<button class="btn btn-primary btn-lg">
|
|
94
|
+
<svg class="icon icon-size-15" aria-hidden="true">
|
|
95
|
+
<use href="#save" />
|
|
96
|
+
</svg>
|
|
97
|
+
Save
|
|
98
|
+
</button>
|
|
99
|
+
|
|
100
|
+
<!-- Icon-only (requires aria-label) -->
|
|
101
|
+
<button class="btn btn-outline" aria-label="Settings">
|
|
102
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
103
|
+
<use href="#settings" />
|
|
104
|
+
</svg>
|
|
105
|
+
</button>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
### IconButton
|
|
111
|
+
|
|
112
|
+
Compact icon-only button. Three sizes: xs=12px, md=18px, lg=28px (default).
|
|
113
|
+
|
|
114
|
+
```html
|
|
115
|
+
<!-- Extra small (12px - for labels) -->
|
|
116
|
+
<button class="icon-button icon-button-xs" aria-label="Help">
|
|
117
|
+
<svg class="icon icon-size-12" aria-hidden="true">
|
|
118
|
+
<use href="#custom-help" />
|
|
119
|
+
</svg>
|
|
120
|
+
</button>
|
|
121
|
+
|
|
122
|
+
<!-- Medium (18px - compact actions) -->
|
|
123
|
+
<button class="icon-button icon-button-md" aria-label="Close">
|
|
124
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
125
|
+
<use href="#x" />
|
|
126
|
+
</svg>
|
|
127
|
+
</button>
|
|
128
|
+
|
|
129
|
+
<!-- Large (28px - default, primary actions) -->
|
|
130
|
+
<button class="icon-button icon-button-lg" aria-label="Settings">
|
|
131
|
+
<svg class="icon icon-size-16" aria-hidden="true">
|
|
132
|
+
<use href="#settings" />
|
|
133
|
+
</svg>
|
|
134
|
+
</button>
|
|
135
|
+
|
|
136
|
+
<!-- States -->
|
|
137
|
+
<button class="icon-button icon-button-md" disabled aria-label="Disabled">
|
|
138
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
139
|
+
<use href="#x" />
|
|
140
|
+
</svg>
|
|
141
|
+
</button>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
### TextButton
|
|
147
|
+
|
|
148
|
+
Text-only button for inline or cell actions. Three types: cell / text / primary.
|
|
149
|
+
|
|
150
|
+
```html
|
|
151
|
+
<!-- Cell: inline action inside a table -->
|
|
152
|
+
<button class="text-button text-button-cell" aria-pressed="false">
|
|
153
|
+
Select all
|
|
154
|
+
</button>
|
|
155
|
+
|
|
156
|
+
<!-- Text: standalone link-style action -->
|
|
157
|
+
<button class="text-button text-button-text">View details</button>
|
|
158
|
+
|
|
159
|
+
<!-- Primary: emphasized action with optional icon -->
|
|
160
|
+
<button class="text-button text-button-primary">
|
|
161
|
+
<svg class="icon icon-size-12" aria-hidden="true">
|
|
162
|
+
<use href="#plus" />
|
|
163
|
+
</svg>
|
|
164
|
+
Add row
|
|
165
|
+
</button>
|
|
166
|
+
|
|
167
|
+
<!-- Selected state -->
|
|
168
|
+
<button class="text-button text-button-cell" aria-pressed="true">
|
|
169
|
+
Select all
|
|
170
|
+
</button>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
### Input
|
|
176
|
+
|
|
177
|
+
**Structure:** `.input-container` › `.input-label` › `.input-field` › `.input`
|
|
178
|
+
|
|
179
|
+
Three sizes: sm=25px, md=29px, lg=35px (default).
|
|
180
|
+
|
|
181
|
+
```html
|
|
182
|
+
<!-- Complete input field -->
|
|
183
|
+
<div class="input-container">
|
|
184
|
+
<div class="input-label">
|
|
185
|
+
<span>Email Address</span>
|
|
186
|
+
<button class="icon-button icon-button-xs" aria-label="Help">
|
|
187
|
+
<svg class="icon icon-size-12" aria-hidden="true">
|
|
188
|
+
<use href="#custom-help" />
|
|
189
|
+
</svg>
|
|
190
|
+
</button>
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
<div class="input-field input-lg">
|
|
194
|
+
<svg class="input-icon-left icon icon-size-14" aria-hidden="true">
|
|
195
|
+
<use href="#mail" />
|
|
196
|
+
</svg>
|
|
197
|
+
<input type="email" class="input" placeholder="you@example.com" />
|
|
198
|
+
</div>
|
|
199
|
+
|
|
200
|
+
<div class="input-error-message">Please enter a valid email address</div>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
<!-- Simple input (no label/icons) -->
|
|
204
|
+
<div class="input-container">
|
|
205
|
+
<div class="input-field">
|
|
206
|
+
<input type="text" class="input" placeholder="Enter text..." />
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
<!-- Small input with right icon -->
|
|
211
|
+
<div class="input-container">
|
|
212
|
+
<div class="input-field input-sm">
|
|
213
|
+
<input type="text" class="input" placeholder="Search..." />
|
|
214
|
+
<svg class="input-icon-right icon icon-size-14" aria-hidden="true">
|
|
215
|
+
<use href="#search" />
|
|
216
|
+
</svg>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
|
|
220
|
+
<!-- Error state -->
|
|
221
|
+
<div class="input-container">
|
|
222
|
+
<div class="input-field input-error">
|
|
223
|
+
<input type="text" class="input" value="Invalid value" />
|
|
224
|
+
</div>
|
|
225
|
+
<div class="input-error-message">This field is required</div>
|
|
226
|
+
</div>
|
|
227
|
+
|
|
228
|
+
<!-- Disabled -->
|
|
229
|
+
<div class="input-container">
|
|
230
|
+
<div class="input-field">
|
|
231
|
+
<input type="text" class="input" disabled value="Cannot edit" />
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
<!-- Neutral background variant -->
|
|
236
|
+
<div class="input-container">
|
|
237
|
+
<div class="input-field input-bg-neutral">
|
|
238
|
+
<input type="text" class="input" placeholder="On neutral surface" />
|
|
239
|
+
</div>
|
|
240
|
+
</div>
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
### Textarea
|
|
246
|
+
|
|
247
|
+
**Structure:** `.textarea-container` › `.textarea-label` › `.textarea-field` › `.textarea`
|
|
248
|
+
|
|
249
|
+
Height is set by `rows` attribute, a height utility, or the resize handle.
|
|
250
|
+
|
|
251
|
+
```html
|
|
252
|
+
<!-- Complete textarea -->
|
|
253
|
+
<div class="textarea-container">
|
|
254
|
+
<div class="textarea-label">
|
|
255
|
+
<span>Description</span>
|
|
256
|
+
<button class="icon-button icon-button-xs" aria-label="Help">
|
|
257
|
+
<svg class="icon icon-size-12" aria-hidden="true">
|
|
258
|
+
<use href="#custom-help" />
|
|
259
|
+
</svg>
|
|
260
|
+
</button>
|
|
261
|
+
</div>
|
|
262
|
+
|
|
263
|
+
<div class="textarea-field">
|
|
264
|
+
<textarea
|
|
265
|
+
class="textarea"
|
|
266
|
+
rows="4"
|
|
267
|
+
placeholder="Enter description..."
|
|
268
|
+
></textarea>
|
|
269
|
+
</div>
|
|
270
|
+
|
|
271
|
+
<div class="textarea-counter">45 / 500</div>
|
|
272
|
+
</div>
|
|
273
|
+
|
|
274
|
+
<!-- Simple textarea -->
|
|
275
|
+
<div class="textarea-container">
|
|
276
|
+
<div class="textarea-field">
|
|
277
|
+
<textarea class="textarea" rows="4" placeholder="Enter text..."></textarea>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
|
|
281
|
+
<!-- Error state -->
|
|
282
|
+
<div class="textarea-container">
|
|
283
|
+
<div class="textarea-field textarea-error">
|
|
284
|
+
<textarea class="textarea" rows="4">Invalid content</textarea>
|
|
285
|
+
</div>
|
|
286
|
+
<div class="textarea-error-message">Please provide more details</div>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<!-- Disabled -->
|
|
290
|
+
<div class="textarea-container">
|
|
291
|
+
<div class="textarea-field">
|
|
292
|
+
<textarea class="textarea" rows="4" disabled>Cannot edit</textarea>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
|
|
296
|
+
<!-- Fixed height with no resize -->
|
|
297
|
+
<div class="textarea-container">
|
|
298
|
+
<div class="textarea-field" style="height: 120px;">
|
|
299
|
+
<textarea class="textarea resize-none">Fixed height</textarea>
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
### Checkbox
|
|
307
|
+
|
|
308
|
+
Native checkbox with label, optional subtitle, and trailing action.
|
|
309
|
+
|
|
310
|
+
```html
|
|
311
|
+
<!-- Basic checkbox -->
|
|
312
|
+
<label class="checkbox">
|
|
313
|
+
<span class="checkbox-control">
|
|
314
|
+
<input type="checkbox" class="checkbox-input" />
|
|
315
|
+
<svg class="checkbox-check icon icon-size-10" aria-hidden="true">
|
|
316
|
+
<use href="#check" />
|
|
317
|
+
</svg>
|
|
318
|
+
</span>
|
|
319
|
+
<span class="checkbox-label">I agree to the terms</span>
|
|
320
|
+
</label>
|
|
321
|
+
|
|
322
|
+
<!-- Checked -->
|
|
323
|
+
<label class="checkbox">
|
|
324
|
+
<span class="checkbox-control">
|
|
325
|
+
<input type="checkbox" class="checkbox-input" checked />
|
|
326
|
+
<svg class="checkbox-check icon icon-size-10" aria-hidden="true">
|
|
327
|
+
<use href="#check" />
|
|
328
|
+
</svg>
|
|
329
|
+
</span>
|
|
330
|
+
<span class="checkbox-label">Subscribe to newsletter</span>
|
|
331
|
+
</label>
|
|
332
|
+
|
|
333
|
+
<!-- With subtitle and action button -->
|
|
334
|
+
<label class="checkbox">
|
|
335
|
+
<span class="checkbox-control">
|
|
336
|
+
<input type="checkbox" class="checkbox-input" checked />
|
|
337
|
+
<svg class="checkbox-check icon icon-size-10" aria-hidden="true">
|
|
338
|
+
<use href="#check" />
|
|
339
|
+
</svg>
|
|
340
|
+
</span>
|
|
341
|
+
<span class="checkbox-label">Beneficial owner</span>
|
|
342
|
+
<span class="checkbox-subtitle">TYPE</span>
|
|
343
|
+
<button
|
|
344
|
+
type="button"
|
|
345
|
+
class="icon-button icon-button-md"
|
|
346
|
+
aria-label="Open details"
|
|
347
|
+
>
|
|
348
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
349
|
+
<use href="#chevron-right" />
|
|
350
|
+
</svg>
|
|
351
|
+
</button>
|
|
352
|
+
</label>
|
|
353
|
+
|
|
354
|
+
<!-- Disabled -->
|
|
355
|
+
<label class="checkbox">
|
|
356
|
+
<span class="checkbox-control">
|
|
357
|
+
<input type="checkbox" class="checkbox-input" disabled />
|
|
358
|
+
<svg class="checkbox-check icon icon-size-10" aria-hidden="true">
|
|
359
|
+
<use href="#check" />
|
|
360
|
+
</svg>
|
|
361
|
+
</span>
|
|
362
|
+
<span class="checkbox-label">Cannot select</span>
|
|
363
|
+
</label>
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
### RadioSelect
|
|
369
|
+
|
|
370
|
+
Native radio button with label.
|
|
371
|
+
|
|
372
|
+
```html
|
|
373
|
+
<label class="radio-select">
|
|
374
|
+
<input type="radio" name="frequency" class="radio-select-input" />
|
|
375
|
+
<span class="radio-select-label">Daily</span>
|
|
376
|
+
</label>
|
|
377
|
+
|
|
378
|
+
<label class="radio-select">
|
|
379
|
+
<input type="radio" name="frequency" class="radio-select-input" checked />
|
|
380
|
+
<span class="radio-select-label">Weekly</span>
|
|
381
|
+
</label>
|
|
382
|
+
|
|
383
|
+
<label class="radio-select">
|
|
384
|
+
<input type="radio" name="frequency" class="radio-select-input" />
|
|
385
|
+
<span class="radio-select-label">Monthly</span>
|
|
386
|
+
</label>
|
|
387
|
+
|
|
388
|
+
<!-- Disabled -->
|
|
389
|
+
<label class="radio-select">
|
|
390
|
+
<input type="radio" name="frequency" class="radio-select-input" disabled />
|
|
391
|
+
<span class="radio-select-label">Yearly</span>
|
|
392
|
+
</label>
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
### Switch
|
|
398
|
+
|
|
399
|
+
Toggle switch for binary settings.
|
|
400
|
+
|
|
401
|
+
```html
|
|
402
|
+
<!-- Basic switch (unchecked) -->
|
|
403
|
+
<label class="switch">
|
|
404
|
+
<input type="checkbox" class="switch-input" />
|
|
405
|
+
</label>
|
|
406
|
+
|
|
407
|
+
<!-- Checked -->
|
|
408
|
+
<label class="switch">
|
|
409
|
+
<input type="checkbox" class="switch-input" checked />
|
|
410
|
+
</label>
|
|
411
|
+
|
|
412
|
+
<!-- Disabled -->
|
|
413
|
+
<label class="switch">
|
|
414
|
+
<input type="checkbox" class="switch-input" disabled />
|
|
415
|
+
</label>
|
|
416
|
+
|
|
417
|
+
<label class="switch">
|
|
418
|
+
<input type="checkbox" class="switch-input" checked disabled />
|
|
419
|
+
</label>
|
|
420
|
+
|
|
421
|
+
<!-- With label (common pattern) -->
|
|
422
|
+
<label style="display: inline-flex; align-items: center; gap: 8px; cursor: pointer;">
|
|
423
|
+
<span>Enable notifications</span>
|
|
424
|
+
<div class="switch">
|
|
425
|
+
<input type="checkbox" class="switch-input" checked />
|
|
426
|
+
</div>
|
|
427
|
+
</label>
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
### DropdownField
|
|
433
|
+
|
|
434
|
+
⚠️ **Requires JavaScript** - See [GETTING_STARTED.md](GETTING_STARTED.md) for minimal implementation.
|
|
435
|
+
|
|
436
|
+
Dropdown select trigger. Pairs with [DropdownMenu](#dropdownmenu).
|
|
437
|
+
|
|
438
|
+
**Structure:** `.dropdown-field-container` › `.dropdown-field-label` › `.dropdown` › `.dropdown-field` + `.dropdown-panel`
|
|
439
|
+
|
|
440
|
+
```html
|
|
441
|
+
<!-- Complete dropdown field -->
|
|
442
|
+
<div class="dropdown-field-container">
|
|
443
|
+
<div class="dropdown-field-label">
|
|
444
|
+
<span>Frequency</span>
|
|
445
|
+
<button class="icon-button icon-button-xs" aria-label="Help">
|
|
446
|
+
<svg class="icon icon-size-12" aria-hidden="true">
|
|
447
|
+
<use href="#custom-help" />
|
|
448
|
+
</svg>
|
|
449
|
+
</button>
|
|
450
|
+
</div>
|
|
451
|
+
|
|
452
|
+
<div class="dropdown">
|
|
453
|
+
<button
|
|
454
|
+
class="dropdown-field"
|
|
455
|
+
aria-haspopup="listbox"
|
|
456
|
+
aria-expanded="false"
|
|
457
|
+
>
|
|
458
|
+
<svg class="dropdown-field-icon icon icon-size-14" aria-hidden="true">
|
|
459
|
+
<use href="#calendar" />
|
|
460
|
+
</svg>
|
|
461
|
+
<span class="dropdown-field-placeholder">Select</span>
|
|
462
|
+
<svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
|
|
463
|
+
<use href="#chevron-down" />
|
|
464
|
+
</svg>
|
|
465
|
+
</button>
|
|
466
|
+
|
|
467
|
+
<div class="dropdown-panel" hidden>
|
|
468
|
+
<div class="dropdown-menu" role="listbox">
|
|
469
|
+
<!-- menu items -->
|
|
470
|
+
</div>
|
|
471
|
+
</div>
|
|
472
|
+
</div>
|
|
473
|
+
</div>
|
|
474
|
+
|
|
475
|
+
<!-- With selected value -->
|
|
476
|
+
<button class="dropdown-field" aria-haspopup="listbox" aria-expanded="false">
|
|
477
|
+
<span class="dropdown-field-value">Weekly</span>
|
|
478
|
+
<svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
|
|
479
|
+
<use href="#chevron-down" />
|
|
480
|
+
</svg>
|
|
481
|
+
</button>
|
|
482
|
+
|
|
483
|
+
<!-- With avatar (use avatar-sm for lg field, avatar-xs for md/sm) -->
|
|
484
|
+
<button class="dropdown-field" aria-haspopup="listbox" aria-expanded="false">
|
|
485
|
+
<span class="avatar avatar-sm">NC</span>
|
|
486
|
+
<span class="dropdown-field-value">Nicholas Cooper</span>
|
|
487
|
+
<svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
|
|
488
|
+
<use href="#chevron-down" />
|
|
489
|
+
</svg>
|
|
490
|
+
</button>
|
|
491
|
+
|
|
492
|
+
<!-- Small size -->
|
|
493
|
+
<button
|
|
494
|
+
class="dropdown-field dropdown-field-sm"
|
|
495
|
+
aria-haspopup="listbox"
|
|
496
|
+
aria-expanded="false"
|
|
497
|
+
>
|
|
498
|
+
<span class="dropdown-field-placeholder">Select</span>
|
|
499
|
+
<svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
|
|
500
|
+
<use href="#chevron-down" />
|
|
501
|
+
</svg>
|
|
502
|
+
</button>
|
|
503
|
+
|
|
504
|
+
<!-- Error state -->
|
|
505
|
+
<div class="dropdown-field-container">
|
|
506
|
+
<button
|
|
507
|
+
class="dropdown-field dropdown-field-error"
|
|
508
|
+
aria-haspopup="listbox"
|
|
509
|
+
aria-expanded="false"
|
|
510
|
+
>
|
|
511
|
+
<span class="dropdown-field-placeholder">Select</span>
|
|
512
|
+
<svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
|
|
513
|
+
<use href="#chevron-down" />
|
|
514
|
+
</svg>
|
|
515
|
+
</button>
|
|
516
|
+
<div class="dropdown-field-error-message">Please choose an option</div>
|
|
517
|
+
</div>
|
|
518
|
+
|
|
519
|
+
<!-- Disabled -->
|
|
520
|
+
<button
|
|
521
|
+
class="dropdown-field"
|
|
522
|
+
aria-haspopup="listbox"
|
|
523
|
+
aria-expanded="false"
|
|
524
|
+
disabled
|
|
525
|
+
>
|
|
526
|
+
<span class="dropdown-field-value">Weekly</span>
|
|
527
|
+
<svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
|
|
528
|
+
<use href="#chevron-down" />
|
|
529
|
+
</svg>
|
|
530
|
+
</button>
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
---
|
|
534
|
+
|
|
535
|
+
## Data Display
|
|
536
|
+
|
|
537
|
+
### Avatar
|
|
538
|
+
|
|
539
|
+
Circular initials indicator. Four sizes: xs=16px, sm=18px, md=20px (default), lg=34px.
|
|
540
|
+
|
|
541
|
+
```html
|
|
542
|
+
<!-- Default (md, 20px) -->
|
|
543
|
+
<span class="avatar avatar-md">NC</span>
|
|
544
|
+
|
|
545
|
+
<!-- All sizes -->
|
|
546
|
+
<span class="avatar avatar-xs">NC</span>
|
|
547
|
+
<span class="avatar avatar-sm">NC</span>
|
|
548
|
+
<span class="avatar avatar-lg">NC</span>
|
|
549
|
+
|
|
550
|
+
<!-- Disabled -->
|
|
551
|
+
<span class="avatar avatar-md avatar-disabled">NC</span>
|
|
552
|
+
|
|
553
|
+
<!-- With ring -->
|
|
554
|
+
<span class="avatar avatar-lg with-ring">NC</span>
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
---
|
|
558
|
+
|
|
559
|
+
### Chip / Badge / Dot
|
|
560
|
+
|
|
561
|
+
Status indicator system with three presentation modes.
|
|
562
|
+
|
|
563
|
+
**Default:** SM size, filled background. Add `-md` for larger, `-bg-no` for unfilled.
|
|
564
|
+
|
|
565
|
+
```html
|
|
566
|
+
<!-- Chip with dot -->
|
|
567
|
+
<span class="chip chip-warning">
|
|
568
|
+
<span class="chip-dot"></span>
|
|
569
|
+
<span>Warning</span>
|
|
570
|
+
</span>
|
|
571
|
+
|
|
572
|
+
<!-- Chip without dot -->
|
|
573
|
+
<span class="chip chip-success">Approved</span>
|
|
574
|
+
|
|
575
|
+
<!-- Unfilled (BG=no) -->
|
|
576
|
+
<span class="chip chip-warning chip-bg-no">
|
|
577
|
+
<span class="chip-dot"></span>
|
|
578
|
+
<span>Warning</span>
|
|
579
|
+
</span>
|
|
580
|
+
|
|
581
|
+
<!-- MD size -->
|
|
582
|
+
<span class="chip chip-critical chip-md">
|
|
583
|
+
<span class="chip-dot"></span>
|
|
584
|
+
<span>Critical</span>
|
|
585
|
+
</span>
|
|
586
|
+
|
|
587
|
+
<!-- With ring -->
|
|
588
|
+
<span class="chip chip-warning with-ring">
|
|
589
|
+
<span class="chip-dot"></span>
|
|
590
|
+
<span>Alert</span>
|
|
591
|
+
</span>
|
|
592
|
+
|
|
593
|
+
<!-- Badge (circular number) -->
|
|
594
|
+
<span class="badge badge-critical">3</span>
|
|
595
|
+
<span class="badge badge-warning badge-md">5</span>
|
|
596
|
+
<span class="badge badge-neutral badge-bg-no">12</span>
|
|
597
|
+
|
|
598
|
+
<!-- Dot (indicator only) -->
|
|
599
|
+
<span class="dot dot-success"></span>
|
|
600
|
+
<span class="dot dot-warning dot-md"></span>
|
|
601
|
+
<span class="dot dot-critical with-ring"></span>
|
|
602
|
+
```
|
|
603
|
+
|
|
604
|
+
---
|
|
605
|
+
|
|
606
|
+
### Tag
|
|
607
|
+
|
|
608
|
+
Clickable label for categories and filtering. Two sizes: sm=21px (default), md=24px.
|
|
609
|
+
|
|
610
|
+
```html
|
|
611
|
+
<!-- Simple tag -->
|
|
612
|
+
<button class="tag" aria-pressed="false">Design</button>
|
|
613
|
+
|
|
614
|
+
<!-- Selected -->
|
|
615
|
+
<button class="tag" aria-pressed="true">Approved</button>
|
|
616
|
+
|
|
617
|
+
<!-- Medium size with all slots -->
|
|
618
|
+
<button class="tag tag-md" aria-pressed="false">
|
|
619
|
+
<span class="avatar avatar-xs">JS</span>
|
|
620
|
+
Engineering
|
|
621
|
+
<span class="tag-count">12</span>
|
|
622
|
+
<span class="dot dot-warning"></span>
|
|
623
|
+
</button>
|
|
624
|
+
|
|
625
|
+
<!-- Disabled -->
|
|
626
|
+
<button class="tag" disabled>Archived</button>
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
---
|
|
630
|
+
|
|
631
|
+
### Pill
|
|
632
|
+
|
|
633
|
+
Compact filter toggle or dropdown trigger. Height: 17px.
|
|
634
|
+
|
|
635
|
+
```html
|
|
636
|
+
<!-- Dropdown trigger (with chevron) -->
|
|
637
|
+
<button class="pill" aria-haspopup="listbox" aria-expanded="false">
|
|
638
|
+
John Smith
|
|
639
|
+
<svg class="pill-chevron icon icon-size-13" aria-hidden="true">
|
|
640
|
+
<use href="#chevron-down" />
|
|
641
|
+
</svg>
|
|
642
|
+
</button>
|
|
643
|
+
|
|
644
|
+
<!-- Filter toggle (no chevron) -->
|
|
645
|
+
<button class="pill" aria-pressed="false">Overdue</button>
|
|
646
|
+
<button class="pill" aria-pressed="true">Approved</button>
|
|
647
|
+
|
|
648
|
+
<!-- With ring -->
|
|
649
|
+
<button class="pill with-ring" aria-pressed="false">Important</button>
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
---
|
|
653
|
+
|
|
654
|
+
### DataRow
|
|
655
|
+
|
|
656
|
+
One labelled field in a review panel. Three columns: field name (200px), value (400px), status (flex-1).
|
|
657
|
+
|
|
658
|
+
```html
|
|
659
|
+
<div class="data-row">
|
|
660
|
+
<span class="data-row-field">First Name</span>
|
|
661
|
+
<span class="data-row-value">John</span>
|
|
662
|
+
|
|
663
|
+
<!-- Status column with field verification -->
|
|
664
|
+
<span class="field-verification field-verification-verified data-row-status">
|
|
665
|
+
<span class="section-marker section-marker-approve" role="img" aria-label="Verified">
|
|
666
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
667
|
+
<use href="#check" />
|
|
668
|
+
</svg>
|
|
669
|
+
</span>
|
|
670
|
+
<span class="field-verification-label">Matches Plaid KYC</span>
|
|
671
|
+
</span>
|
|
672
|
+
|
|
673
|
+
<!-- Hover-revealed action -->
|
|
674
|
+
<button class="icon-button icon-button-md data-row-action" aria-label="Help">
|
|
675
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
676
|
+
<use href="#circle-question-mark" />
|
|
677
|
+
</svg>
|
|
678
|
+
</button>
|
|
679
|
+
</div>
|
|
680
|
+
|
|
681
|
+
<!-- With sensitive data value -->
|
|
682
|
+
<div class="data-row">
|
|
683
|
+
<span class="data-row-field">SSN</span>
|
|
684
|
+
<span class="sensitive-data data-row-value">
|
|
685
|
+
<span class="sensitive-data-value">***-**-1234</span>
|
|
686
|
+
<button class="icon-button icon-button-md" aria-pressed="true" aria-label="Show">
|
|
687
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
688
|
+
<use href="#eye-off" />
|
|
689
|
+
</svg>
|
|
690
|
+
</button>
|
|
691
|
+
</span>
|
|
692
|
+
|
|
693
|
+
<span class="field-verification field-verification-pending data-row-status">
|
|
694
|
+
<span class="section-marker" role="img" aria-label="Pending">
|
|
695
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
696
|
+
<use href="#circle" />
|
|
697
|
+
</svg>
|
|
698
|
+
</span>
|
|
699
|
+
<span class="field-verification-label">Verification pending</span>
|
|
700
|
+
</span>
|
|
701
|
+
</div>
|
|
702
|
+
```
|
|
703
|
+
|
|
704
|
+
---
|
|
705
|
+
|
|
706
|
+
### Divider
|
|
707
|
+
|
|
708
|
+
Three types: simple (bare rule), labeled, metadata.
|
|
709
|
+
|
|
710
|
+
```html
|
|
711
|
+
<!-- Simple divider -->
|
|
712
|
+
<hr class="divider" />
|
|
713
|
+
|
|
714
|
+
<!-- Labeled divider -->
|
|
715
|
+
<div class="divider-labeled">
|
|
716
|
+
<hr class="divider" />
|
|
717
|
+
<span class="divider-label">Beneficial owners</span>
|
|
718
|
+
<hr class="divider" />
|
|
719
|
+
</div>
|
|
720
|
+
|
|
721
|
+
<!-- Metadata divider -->
|
|
722
|
+
<div class="divider-metadata">
|
|
723
|
+
<span class="divider-metadata-item">
|
|
724
|
+
<span class="divider-metadata-key">Updated</span>
|
|
725
|
+
<span class="divider-metadata-value font-mono">Jul 17</span>
|
|
726
|
+
</span>
|
|
727
|
+
<span class="divider-metadata-separator"></span>
|
|
728
|
+
<span class="divider-metadata-item">
|
|
729
|
+
<span class="divider-metadata-key">Reviewer</span>
|
|
730
|
+
<span class="divider-metadata-value">M. Carden</span>
|
|
731
|
+
</span>
|
|
732
|
+
</div>
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
---
|
|
736
|
+
|
|
737
|
+
### Icon
|
|
738
|
+
|
|
739
|
+
Wrapper for icons at standardized sizes (10-24px). Icons inherit text color.
|
|
740
|
+
|
|
741
|
+
```html
|
|
742
|
+
<!-- Basic icon -->
|
|
743
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
744
|
+
<use href="#save" />
|
|
745
|
+
</svg>
|
|
746
|
+
|
|
747
|
+
<!-- With status color -->
|
|
748
|
+
<svg class="icon icon-size-13 text-approved" aria-hidden="true">
|
|
749
|
+
<use href="#check-circle" />
|
|
750
|
+
</svg>
|
|
751
|
+
|
|
752
|
+
<!-- All sizes -->
|
|
753
|
+
<svg class="icon icon-size-10" aria-hidden="true"><use href="#x" /></svg>
|
|
754
|
+
<svg class="icon icon-size-12" aria-hidden="true"><use href="#x" /></svg>
|
|
755
|
+
<svg class="icon icon-size-14" aria-hidden="true"><use href="#x" /></svg>
|
|
756
|
+
<svg class="icon icon-size-16" aria-hidden="true"><use href="#x" /></svg>
|
|
757
|
+
<svg class="icon icon-size-18" aria-hidden="true"><use href="#x" /></svg>
|
|
758
|
+
<svg class="icon icon-size-20" aria-hidden="true"><use href="#x" /></svg>
|
|
759
|
+
<svg class="icon icon-size-24" aria-hidden="true"><use href="#x" /></svg>
|
|
760
|
+
```
|
|
761
|
+
|
|
762
|
+
---
|
|
763
|
+
|
|
764
|
+
### Skeleton
|
|
765
|
+
|
|
766
|
+
Loading placeholder. Requires both a shape class and a size class.
|
|
767
|
+
|
|
768
|
+
```html
|
|
769
|
+
<!-- Line skeletons -->
|
|
770
|
+
<span class="skeleton skeleton-line skeleton-sm" aria-hidden="true"></span>
|
|
771
|
+
<span class="skeleton skeleton-line skeleton-md" aria-hidden="true"></span>
|
|
772
|
+
<span class="skeleton skeleton-line skeleton-lg w-full" aria-hidden="true"></span>
|
|
773
|
+
|
|
774
|
+
<!-- Heading skeleton -->
|
|
775
|
+
<span class="skeleton skeleton-heading skeleton-lg" aria-hidden="true"></span>
|
|
776
|
+
|
|
777
|
+
<!-- Circle skeleton -->
|
|
778
|
+
<span class="skeleton skeleton-circle skeleton-md" aria-hidden="true"></span>
|
|
779
|
+
|
|
780
|
+
<!-- Rectangle skeleton -->
|
|
781
|
+
<span class="skeleton skeleton-rectangle skeleton-md" aria-hidden="true"></span>
|
|
782
|
+
|
|
783
|
+
<!-- Button skeleton -->
|
|
784
|
+
<span class="skeleton skeleton-button skeleton-lg" aria-hidden="true"></span>
|
|
785
|
+
|
|
786
|
+
<!-- Card composition -->
|
|
787
|
+
<div role="status" aria-busy="true" aria-label="Loading card">
|
|
788
|
+
<span class="skeleton skeleton-rectangle skeleton-md" aria-hidden="true"></span>
|
|
789
|
+
<span class="skeleton skeleton-heading skeleton-md" aria-hidden="true"></span>
|
|
790
|
+
<span class="skeleton skeleton-line skeleton-md" aria-hidden="true"></span>
|
|
791
|
+
<span class="skeleton skeleton-line skeleton-md" aria-hidden="true"></span>
|
|
792
|
+
<span class="skeleton skeleton-line skeleton-sm" aria-hidden="true"></span>
|
|
793
|
+
</div>
|
|
794
|
+
```
|
|
795
|
+
|
|
796
|
+
---
|
|
797
|
+
|
|
798
|
+
## Navigation
|
|
799
|
+
|
|
800
|
+
### NavigationRail
|
|
801
|
+
|
|
802
|
+
⚠️ **Group disclosure requires JavaScript** - Toggle `aria-expanded` on `.nav-group`.
|
|
803
|
+
|
|
804
|
+
Sidebar with title, groups, and items. Use `-collapsed` variants for a collapsed state.
|
|
805
|
+
|
|
806
|
+
```html
|
|
807
|
+
<!-- Expanded rail -->
|
|
808
|
+
<nav class="nav-rail">
|
|
809
|
+
<!-- Title -->
|
|
810
|
+
<a href="#" class="nav-title">
|
|
811
|
+
<span class="nav-title-logo"><img src="/logo.svg" alt="" /></span>
|
|
812
|
+
<span class="nav-title-details">
|
|
813
|
+
<span class="nav-title-name">Central Williamette</span>
|
|
814
|
+
<span class="nav-title-subtitle">Main st branch</span>
|
|
815
|
+
</span>
|
|
816
|
+
<span class="nav-title-action">
|
|
817
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
818
|
+
<use href="#chevron-down" />
|
|
819
|
+
</svg>
|
|
820
|
+
</span>
|
|
821
|
+
</a>
|
|
822
|
+
|
|
823
|
+
<!-- Current page -->
|
|
824
|
+
<a href="#" class="nav-item" aria-current="page">
|
|
825
|
+
<svg class="nav-item-icon icon icon-size-16" aria-hidden="true">
|
|
826
|
+
<use href="#inbox" />
|
|
827
|
+
</svg>
|
|
828
|
+
<span class="nav-item-label">Inbox</span>
|
|
829
|
+
<span class="nav-item-count">41</span>
|
|
830
|
+
</a>
|
|
831
|
+
|
|
832
|
+
<!-- Group (with disclosure) -->
|
|
833
|
+
<button class="nav-group" aria-expanded="true" aria-controls="analyze-items">
|
|
834
|
+
<span class="nav-group-label">Analyze</span>
|
|
835
|
+
<svg class="nav-group-chevron icon icon-size-16" aria-hidden="true">
|
|
836
|
+
<use href="#chevron-down" />
|
|
837
|
+
</svg>
|
|
838
|
+
</button>
|
|
839
|
+
|
|
840
|
+
<!-- Items in group -->
|
|
841
|
+
<div id="analyze-items" class="nav-rail-items">
|
|
842
|
+
<a href="#" class="nav-item nav-item-active">
|
|
843
|
+
<svg class="nav-item-icon icon icon-size-16" aria-hidden="true">
|
|
844
|
+
<use href="#users" />
|
|
845
|
+
</svg>
|
|
846
|
+
<span class="nav-item-label">Businesses</span>
|
|
847
|
+
<span class="nav-badge">Beta</span>
|
|
848
|
+
</a>
|
|
849
|
+
</div>
|
|
850
|
+
</nav>
|
|
851
|
+
|
|
852
|
+
<!-- Collapsed rail -->
|
|
853
|
+
<nav class="nav-rail">
|
|
854
|
+
<a href="#" class="nav-title nav-title-collapsed">
|
|
855
|
+
<span class="nav-title-logo"><img src="/logo.svg" alt="" /></span>
|
|
856
|
+
<span class="nav-title-details">
|
|
857
|
+
<span class="nav-title-name">Central Williamette</span>
|
|
858
|
+
<span class="nav-title-subtitle">Main st branch</span>
|
|
859
|
+
</span>
|
|
860
|
+
</a>
|
|
861
|
+
|
|
862
|
+
<div class="nav-group nav-group-collapsed">
|
|
863
|
+
<span class="nav-group-rule"></span>
|
|
864
|
+
</div>
|
|
865
|
+
|
|
866
|
+
<a href="#" class="nav-item nav-item-collapsed">
|
|
867
|
+
<svg class="nav-item-icon icon icon-size-16" aria-hidden="true">
|
|
868
|
+
<use href="#bell" />
|
|
869
|
+
</svg>
|
|
870
|
+
<span class="nav-item-label">Alerts</span>
|
|
871
|
+
<span class="nav-item-status"></span>
|
|
872
|
+
</a>
|
|
873
|
+
</nav>
|
|
874
|
+
```
|
|
875
|
+
|
|
876
|
+
---
|
|
877
|
+
|
|
878
|
+
### Tabs
|
|
879
|
+
|
|
880
|
+
⚠️ **Tab switching requires JavaScript** - Manage `aria-selected` and panel visibility.
|
|
881
|
+
|
|
882
|
+
Three types (underline / chip / segment) × two sizes (sm / lg). **Type is required.**
|
|
883
|
+
|
|
884
|
+
```html
|
|
885
|
+
<!-- Underline tabs (navigator) -->
|
|
886
|
+
<div class="tabs" role="tablist" aria-label="Sections">
|
|
887
|
+
<button class="tab tab-underline" role="tab" aria-selected="true" aria-controls="p1">
|
|
888
|
+
Overview
|
|
889
|
+
<span class="badge badge-neutral">3</span>
|
|
890
|
+
</button>
|
|
891
|
+
<button class="tab tab-underline" role="tab" aria-selected="false" aria-controls="p2">
|
|
892
|
+
Documents
|
|
893
|
+
</button>
|
|
894
|
+
</div>
|
|
895
|
+
<div id="p1" role="tabpanel">Panel 1</div>
|
|
896
|
+
<div id="p2" role="tabpanel" hidden>Panel 2</div>
|
|
897
|
+
|
|
898
|
+
<!-- Small underline -->
|
|
899
|
+
<button class="tab tab-underline tab-sm" role="tab" aria-selected="true">
|
|
900
|
+
Overview
|
|
901
|
+
</button>
|
|
902
|
+
|
|
903
|
+
<!-- With subtitle -->
|
|
904
|
+
<button class="tab tab-underline" role="tab" aria-selected="true">
|
|
905
|
+
<span>
|
|
906
|
+
Overview
|
|
907
|
+
<span class="tab-subtitle">APPLICANT</span>
|
|
908
|
+
</span>
|
|
909
|
+
</button>
|
|
910
|
+
|
|
911
|
+
<!-- Chip tabs -->
|
|
912
|
+
<div class="tabs tabs-chip" role="tablist">
|
|
913
|
+
<button class="tab tab-chip" role="tab" aria-selected="true">
|
|
914
|
+
All
|
|
915
|
+
</button>
|
|
916
|
+
<button class="tab tab-chip" role="tab" aria-selected="false">
|
|
917
|
+
Active
|
|
918
|
+
</button>
|
|
919
|
+
</div>
|
|
920
|
+
|
|
921
|
+
<!-- Segment tabs (use in SegmentSelector) -->
|
|
922
|
+
```
|
|
923
|
+
|
|
924
|
+
---
|
|
925
|
+
|
|
926
|
+
### SegmentSelector
|
|
927
|
+
|
|
928
|
+
Framed container for segment tabs (selector, not navigator).
|
|
929
|
+
|
|
930
|
+
```html
|
|
931
|
+
<!-- Basic selector -->
|
|
932
|
+
<div class="segment-selector" role="radiogroup" aria-label="Density">
|
|
933
|
+
<button class="tab tab-segment" role="radio" aria-checked="true">
|
|
934
|
+
Compact
|
|
935
|
+
</button>
|
|
936
|
+
<button class="tab tab-segment" role="radio" aria-checked="false">
|
|
937
|
+
Comfortable
|
|
938
|
+
</button>
|
|
939
|
+
</div>
|
|
940
|
+
|
|
941
|
+
<!-- Equal-width variant -->
|
|
942
|
+
<div class="segment-selector segment-selector-fill" role="radiogroup">
|
|
943
|
+
<button class="tab tab-segment" role="radio" aria-checked="true">
|
|
944
|
+
All
|
|
945
|
+
</button>
|
|
946
|
+
<button class="tab tab-segment" role="radio" aria-checked="false">
|
|
947
|
+
Needs review
|
|
948
|
+
</button>
|
|
949
|
+
</div>
|
|
950
|
+
```
|
|
951
|
+
|
|
952
|
+
---
|
|
953
|
+
|
|
954
|
+
### FilterSegment
|
|
955
|
+
|
|
956
|
+
Individual segment within a filter control. Three positions: first / middle (default) / last.
|
|
957
|
+
|
|
958
|
+
```html
|
|
959
|
+
<div class="filter-segments">
|
|
960
|
+
<button class="filter-segment filter-segment-first filter-segment-md">
|
|
961
|
+
Product
|
|
962
|
+
</button>
|
|
963
|
+
<button class="filter-segment filter-segment-md">
|
|
964
|
+
Is any of
|
|
965
|
+
</button>
|
|
966
|
+
<button class="filter-segment filter-segment-md">
|
|
967
|
+
Deposit Account
|
|
968
|
+
</button>
|
|
969
|
+
<span class="filter-segment filter-segment-last filter-segment-md">
|
|
970
|
+
<button class="icon-button icon-button-md" aria-label="Remove filter">
|
|
971
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
972
|
+
<use href="#x" />
|
|
973
|
+
</svg>
|
|
974
|
+
</button>
|
|
975
|
+
</span>
|
|
976
|
+
</div>
|
|
977
|
+
|
|
978
|
+
<!-- As a toggle group -->
|
|
979
|
+
<div class="filter-segments" role="group" aria-label="Match mode">
|
|
980
|
+
<button class="filter-segment filter-segment-first" aria-pressed="true">
|
|
981
|
+
All
|
|
982
|
+
</button>
|
|
983
|
+
<button class="filter-segment" aria-pressed="false">
|
|
984
|
+
Any
|
|
985
|
+
</button>
|
|
986
|
+
<button class="filter-segment filter-segment-last" aria-pressed="false">
|
|
987
|
+
None
|
|
988
|
+
</button>
|
|
989
|
+
</div>
|
|
990
|
+
```
|
|
991
|
+
|
|
992
|
+
---
|
|
993
|
+
|
|
994
|
+
### Breadcrumbs
|
|
995
|
+
|
|
996
|
+
Hierarchical navigation path. Separator glyphs need `aria-hidden="true"`.
|
|
997
|
+
|
|
998
|
+
```html
|
|
999
|
+
<!-- Chevron separator -->
|
|
1000
|
+
<nav class="breadcrumbs" aria-label="Breadcrumb">
|
|
1001
|
+
<svg class="breadcrumb-home icon icon-size-14" aria-hidden="true">
|
|
1002
|
+
<use href="#home" />
|
|
1003
|
+
</svg>
|
|
1004
|
+
<span class="breadcrumb-separator" aria-hidden="true">></span>
|
|
1005
|
+
<a class="breadcrumb" href="/applications">Applications</a>
|
|
1006
|
+
<span class="breadcrumb-separator" aria-hidden="true">></span>
|
|
1007
|
+
<span class="breadcrumb breadcrumb-current" aria-current="page">
|
|
1008
|
+
#BA-204417
|
|
1009
|
+
</span>
|
|
1010
|
+
</nav>
|
|
1011
|
+
|
|
1012
|
+
<!-- Slash separator with middot joining two current items -->
|
|
1013
|
+
<nav class="breadcrumbs" aria-label="Breadcrumb">
|
|
1014
|
+
<a class="breadcrumb" href="/queue">Queue</a>
|
|
1015
|
+
<span class="breadcrumb-separator" aria-hidden="true">/</span>
|
|
1016
|
+
<span class="breadcrumb breadcrumb-current">#BA-204417</span>
|
|
1017
|
+
<span class="breadcrumb-separator breadcrumb-separator-dot" aria-hidden="true">
|
|
1018
|
+
·
|
|
1019
|
+
</span>
|
|
1020
|
+
<span class="breadcrumb breadcrumb-current" aria-current="page">
|
|
1021
|
+
Northwind Freight LLC
|
|
1022
|
+
</span>
|
|
1023
|
+
</nav>
|
|
1024
|
+
```
|
|
1025
|
+
|
|
1026
|
+
---
|
|
1027
|
+
|
|
1028
|
+
### Pagination
|
|
1029
|
+
|
|
1030
|
+
Two types: numbered (with PaginationItem cells), simple (with text and buttons).
|
|
1031
|
+
|
|
1032
|
+
```html
|
|
1033
|
+
<!-- Numbered pagination -->
|
|
1034
|
+
<nav class="pagination" aria-label="Pagination">
|
|
1035
|
+
<div class="pagination-pages">
|
|
1036
|
+
<button class="pagination-item pagination-item-nav" aria-label="Previous">
|
|
1037
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1038
|
+
<use href="#chevron-left" />
|
|
1039
|
+
</svg>
|
|
1040
|
+
</button>
|
|
1041
|
+
<button class="pagination-item pagination-item-active" aria-current="page">
|
|
1042
|
+
1
|
|
1043
|
+
</button>
|
|
1044
|
+
<button class="pagination-item">2</button>
|
|
1045
|
+
<span class="pagination-item pagination-item-ellipsis" aria-hidden="true">
|
|
1046
|
+
...
|
|
1047
|
+
</span>
|
|
1048
|
+
<button class="pagination-item">18</button>
|
|
1049
|
+
<button class="pagination-item pagination-item-nav" aria-label="Next">
|
|
1050
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1051
|
+
<use href="#chevron-right" />
|
|
1052
|
+
</svg>
|
|
1053
|
+
</button>
|
|
1054
|
+
</div>
|
|
1055
|
+
<p class="pagination-summary">1-20 of 352</p>
|
|
1056
|
+
</nav>
|
|
1057
|
+
|
|
1058
|
+
<!-- Simple pagination -->
|
|
1059
|
+
<nav class="pagination" aria-label="Pagination">
|
|
1060
|
+
<button class="btn btn-outline btn-sm">
|
|
1061
|
+
<svg class="icon icon-size-13" aria-hidden="true">
|
|
1062
|
+
<use href="#arrow-left" />
|
|
1063
|
+
</svg>
|
|
1064
|
+
Prev
|
|
1065
|
+
</button>
|
|
1066
|
+
<p class="pagination-status">
|
|
1067
|
+
Page <span class="pagination-status-current">7</span> of 18
|
|
1068
|
+
</p>
|
|
1069
|
+
<button class="btn btn-outline btn-sm">
|
|
1070
|
+
Next
|
|
1071
|
+
<svg class="icon icon-size-13" aria-hidden="true">
|
|
1072
|
+
<use href="#arrow-right" />
|
|
1073
|
+
</svg>
|
|
1074
|
+
</button>
|
|
1075
|
+
</nav>
|
|
1076
|
+
```
|
|
1077
|
+
|
|
1078
|
+
---
|
|
1079
|
+
|
|
1080
|
+
### MenuItem
|
|
1081
|
+
|
|
1082
|
+
Single row within a dropdown menu. Three sizes: sm=25px, md=29px (default), lg=42px.
|
|
1083
|
+
|
|
1084
|
+
```html
|
|
1085
|
+
<!-- Simple row -->
|
|
1086
|
+
<button class="menu-item" role="menuitem">
|
|
1087
|
+
<span class="menu-item-text">
|
|
1088
|
+
<span class="menu-item-title">Daily</span>
|
|
1089
|
+
</span>
|
|
1090
|
+
</button>
|
|
1091
|
+
|
|
1092
|
+
<!-- Selected with check -->
|
|
1093
|
+
<button class="menu-item" role="menuitem" aria-selected="true">
|
|
1094
|
+
<span class="menu-item-text">
|
|
1095
|
+
<span class="menu-item-title">Weekly</span>
|
|
1096
|
+
</span>
|
|
1097
|
+
<svg class="icon icon-size-15" aria-hidden="true">
|
|
1098
|
+
<use href="#check" />
|
|
1099
|
+
</svg>
|
|
1100
|
+
</button>
|
|
1101
|
+
|
|
1102
|
+
<!-- With left icon and keyboard shortcut -->
|
|
1103
|
+
<button class="menu-item" role="menuitem">
|
|
1104
|
+
<svg class="icon icon-size-15" aria-hidden="true">
|
|
1105
|
+
<use href="#settings" />
|
|
1106
|
+
</svg>
|
|
1107
|
+
<span class="menu-item-text">
|
|
1108
|
+
<span class="menu-item-title">Preferences</span>
|
|
1109
|
+
</span>
|
|
1110
|
+
<span class="menu-item-right-text">⌘,</span>
|
|
1111
|
+
</button>
|
|
1112
|
+
|
|
1113
|
+
<!-- Large row with avatar and subtitle -->
|
|
1114
|
+
<button class="menu-item menu-item-lg" role="menuitem">
|
|
1115
|
+
<span class="avatar avatar-md">NC</span>
|
|
1116
|
+
<span class="menu-item-text">
|
|
1117
|
+
<span class="menu-item-title">Nicholas Cooper</span>
|
|
1118
|
+
<span class="menu-item-subtitle">Primary applicant</span>
|
|
1119
|
+
</span>
|
|
1120
|
+
</button>
|
|
1121
|
+
|
|
1122
|
+
<!-- Combined variant: badge + primary title -->
|
|
1123
|
+
<button class="menu-item menu-item-lg menu-item-combined" role="menuitem">
|
|
1124
|
+
<span class="menu-item-badge">
|
|
1125
|
+
<svg class="icon icon-size-12" aria-hidden="true">
|
|
1126
|
+
<use href="#users" />
|
|
1127
|
+
</svg>
|
|
1128
|
+
</span>
|
|
1129
|
+
<span class="menu-item-text">
|
|
1130
|
+
<span class="menu-item-title">Combined</span>
|
|
1131
|
+
<span class="menu-item-subtitle">Both Applicants</span>
|
|
1132
|
+
</span>
|
|
1133
|
+
</button>
|
|
1134
|
+
|
|
1135
|
+
<!-- Disabled -->
|
|
1136
|
+
<button class="menu-item" role="menuitem" disabled>
|
|
1137
|
+
<span class="menu-item-text">
|
|
1138
|
+
<span class="menu-item-title">Archived</span>
|
|
1139
|
+
</span>
|
|
1140
|
+
</button>
|
|
1141
|
+
```
|
|
1142
|
+
|
|
1143
|
+
---
|
|
1144
|
+
|
|
1145
|
+
### DropdownMenu
|
|
1146
|
+
|
|
1147
|
+
⚠️ **Requires JavaScript** - Manage `aria-expanded` and `hidden` on panel.
|
|
1148
|
+
|
|
1149
|
+
Overlay panel holding MenuItem rows. Use `.dropdown` positioning wrapper.
|
|
1150
|
+
|
|
1151
|
+
```html
|
|
1152
|
+
<!-- Select-style menu -->
|
|
1153
|
+
<div class="dropdown-menu" role="menu">
|
|
1154
|
+
<button class="menu-item" role="menuitem" aria-selected="true">
|
|
1155
|
+
<span class="menu-item-text">
|
|
1156
|
+
<span class="menu-item-title">Weekly</span>
|
|
1157
|
+
</span>
|
|
1158
|
+
<svg class="icon icon-size-15" aria-hidden="true">
|
|
1159
|
+
<use href="#check" />
|
|
1160
|
+
</svg>
|
|
1161
|
+
</button>
|
|
1162
|
+
<button class="menu-item" role="menuitem">
|
|
1163
|
+
<span class="menu-item-text">
|
|
1164
|
+
<span class="menu-item-title">Daily</span>
|
|
1165
|
+
</span>
|
|
1166
|
+
</button>
|
|
1167
|
+
<button class="menu-item" role="menuitem">
|
|
1168
|
+
<span class="menu-item-text">
|
|
1169
|
+
<span class="menu-item-title">Monthly</span>
|
|
1170
|
+
</span>
|
|
1171
|
+
</button>
|
|
1172
|
+
</div>
|
|
1173
|
+
|
|
1174
|
+
<!-- Action menu with divider -->
|
|
1175
|
+
<div class="dropdown-menu" role="menu">
|
|
1176
|
+
<button class="menu-item" role="menuitem">
|
|
1177
|
+
<svg class="icon icon-size-15" aria-hidden="true">
|
|
1178
|
+
<use href="#pencil" />
|
|
1179
|
+
</svg>
|
|
1180
|
+
<span class="menu-item-text">
|
|
1181
|
+
<span class="menu-item-title">Edit</span>
|
|
1182
|
+
</span>
|
|
1183
|
+
</button>
|
|
1184
|
+
|
|
1185
|
+
<div class="dropdown-menu-divider"></div>
|
|
1186
|
+
|
|
1187
|
+
<button class="menu-item" role="menuitem">
|
|
1188
|
+
<svg class="icon icon-size-15 text-critical" aria-hidden="true">
|
|
1189
|
+
<use href="#trash-2" />
|
|
1190
|
+
</svg>
|
|
1191
|
+
<span class="menu-item-text">
|
|
1192
|
+
<span class="menu-item-title text-critical">Delete</span>
|
|
1193
|
+
</span>
|
|
1194
|
+
</button>
|
|
1195
|
+
</div>
|
|
1196
|
+
|
|
1197
|
+
<!-- Anchored under a trigger -->
|
|
1198
|
+
<div class="dropdown">
|
|
1199
|
+
<button class="btn btn-outline" aria-expanded="false" aria-haspopup="menu">
|
|
1200
|
+
Weekly
|
|
1201
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1202
|
+
<use href="#chevron-down" />
|
|
1203
|
+
</svg>
|
|
1204
|
+
</button>
|
|
1205
|
+
<div class="dropdown-panel" hidden>
|
|
1206
|
+
<div class="dropdown-menu" role="menu">
|
|
1207
|
+
<!-- menu items -->
|
|
1208
|
+
</div>
|
|
1209
|
+
</div>
|
|
1210
|
+
</div>
|
|
1211
|
+
```
|
|
1212
|
+
|
|
1213
|
+
---
|
|
1214
|
+
|
|
1215
|
+
### Link
|
|
1216
|
+
|
|
1217
|
+
Four standalone styles plus one paragraph style. Underline is a state on `strong`, present on the other three.
|
|
1218
|
+
|
|
1219
|
+
```html
|
|
1220
|
+
<!-- Strong link (no underline at rest, gains one on hover) -->
|
|
1221
|
+
<a class="link" href="/report">Open full report →</a>
|
|
1222
|
+
|
|
1223
|
+
<!-- Quiet link -->
|
|
1224
|
+
<a class="link link-quiet" href="/log">View activity log</a>
|
|
1225
|
+
|
|
1226
|
+
<!-- Monospace link -->
|
|
1227
|
+
<a class="link link-monospace" href="/case">#BA-204417</a>
|
|
1228
|
+
|
|
1229
|
+
<!-- Critical link with icon -->
|
|
1230
|
+
<a class="link link-critical" href="/fix">
|
|
1231
|
+
<svg class="icon icon-size-12" aria-hidden="true">
|
|
1232
|
+
<use href="#alert-triangle" />
|
|
1233
|
+
</svg>
|
|
1234
|
+
Resolve mismatch
|
|
1235
|
+
</a>
|
|
1236
|
+
|
|
1237
|
+
<!-- Inline links (paragraph style, not used with .link) -->
|
|
1238
|
+
<p class="link-inline">
|
|
1239
|
+
Valiify utilizes <a href="/middesk">Middesk</a> for instant background screenings.
|
|
1240
|
+
</p>
|
|
1241
|
+
```
|
|
1242
|
+
|
|
1243
|
+
---
|
|
1244
|
+
|
|
1245
|
+
## Feedback
|
|
1246
|
+
|
|
1247
|
+
### Alert
|
|
1248
|
+
|
|
1249
|
+
Contextual banner. Five types: critical / warning / success / info / neutral. **Type is required.**
|
|
1250
|
+
|
|
1251
|
+
```html
|
|
1252
|
+
<div class="alert alert-critical" role="alert">
|
|
1253
|
+
<div class="alert-body">
|
|
1254
|
+
<svg class="alert-icon icon icon-size-18" aria-hidden="true">
|
|
1255
|
+
<use href="#triangle-alert" />
|
|
1256
|
+
</svg>
|
|
1257
|
+
<div class="alert-content">
|
|
1258
|
+
<p class="alert-title">Business address mismatch</p>
|
|
1259
|
+
<p class="alert-message">
|
|
1260
|
+
Middesk returns a registered-agent address.
|
|
1261
|
+
</p>
|
|
1262
|
+
<button class="text-button text-button-primary">Review Field</button>
|
|
1263
|
+
</div>
|
|
1264
|
+
<button class="icon-button icon-button-md" aria-label="Dismiss">
|
|
1265
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1266
|
+
<use href="#x" />
|
|
1267
|
+
</svg>
|
|
1268
|
+
</button>
|
|
1269
|
+
</div>
|
|
1270
|
+
</div>
|
|
1271
|
+
|
|
1272
|
+
<!-- Other types -->
|
|
1273
|
+
<div class="alert alert-warning" role="alert"><!-- ... --></div>
|
|
1274
|
+
<div class="alert alert-success" role="alert"><!-- ... --></div>
|
|
1275
|
+
<div class="alert alert-info" role="alert"><!-- ... --></div>
|
|
1276
|
+
<div class="alert alert-neutral" role="alert"><!-- ... --></div>
|
|
1277
|
+
```
|
|
1278
|
+
|
|
1279
|
+
---
|
|
1280
|
+
|
|
1281
|
+
### Toast
|
|
1282
|
+
|
|
1283
|
+
Transient notification. Two styles: full (card) / simple (dark pill).
|
|
1284
|
+
|
|
1285
|
+
```html
|
|
1286
|
+
<!-- Full toast -->
|
|
1287
|
+
<div class="toast toast-success" role="status">
|
|
1288
|
+
<div class="toast-header">
|
|
1289
|
+
<div class="toast-main">
|
|
1290
|
+
<svg class="toast-icon icon icon-size-18" aria-hidden="true">
|
|
1291
|
+
<use href="#circle-check" />
|
|
1292
|
+
</svg>
|
|
1293
|
+
<div class="toast-text">
|
|
1294
|
+
<p class="toast-title">Document request sent</p>
|
|
1295
|
+
<p class="toast-message">
|
|
1296
|
+
Client has been notified to upload their W-9.
|
|
1297
|
+
</p>
|
|
1298
|
+
</div>
|
|
1299
|
+
</div>
|
|
1300
|
+
<button class="icon-button icon-button-md" aria-label="Dismiss">
|
|
1301
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1302
|
+
<use href="#x" />
|
|
1303
|
+
</svg>
|
|
1304
|
+
</button>
|
|
1305
|
+
</div>
|
|
1306
|
+
<div class="toast-footer">
|
|
1307
|
+
<span class="toast-timestamp">just now</span>
|
|
1308
|
+
<button class="text-button text-button-primary">Retry</button>
|
|
1309
|
+
</div>
|
|
1310
|
+
</div>
|
|
1311
|
+
|
|
1312
|
+
<!-- Simple toast -->
|
|
1313
|
+
<div class="toast toast-simple" role="status">
|
|
1314
|
+
<svg class="icon icon-size-15" aria-hidden="true">
|
|
1315
|
+
<use href="#check" />
|
|
1316
|
+
</svg>
|
|
1317
|
+
Template Saved
|
|
1318
|
+
</div>
|
|
1319
|
+
```
|
|
1320
|
+
|
|
1321
|
+
---
|
|
1322
|
+
|
|
1323
|
+
### Modal
|
|
1324
|
+
|
|
1325
|
+
⚠️ **Recommended: Use native `<dialog>`** - Browser handles backdrop, Escape, focus trap.
|
|
1326
|
+
|
|
1327
|
+
Dialog for confirmations. Three actions: destructive / positive / neutral.
|
|
1328
|
+
|
|
1329
|
+
```html
|
|
1330
|
+
<dialog class="modal modal-destructive" aria-labelledby="modal-title">
|
|
1331
|
+
<div class="modal-header">
|
|
1332
|
+
<div class="modal-title-group">
|
|
1333
|
+
<span class="modal-icon">
|
|
1334
|
+
<svg class="icon icon-size-20" aria-hidden="true">
|
|
1335
|
+
<use href="#triangle-alert" />
|
|
1336
|
+
</svg>
|
|
1337
|
+
</span>
|
|
1338
|
+
<h2 class="modal-title" id="modal-title">
|
|
1339
|
+
Decline this application?
|
|
1340
|
+
</h2>
|
|
1341
|
+
</div>
|
|
1342
|
+
<button class="icon-button icon-button-lg" aria-label="Close">
|
|
1343
|
+
<svg class="icon icon-size-16" aria-hidden="true">
|
|
1344
|
+
<use href="#x" />
|
|
1345
|
+
</svg>
|
|
1346
|
+
</button>
|
|
1347
|
+
</div>
|
|
1348
|
+
|
|
1349
|
+
<div class="modal-subtitles">
|
|
1350
|
+
<p class="modal-subtitle">
|
|
1351
|
+
The applicant is notified through the portal.
|
|
1352
|
+
</p>
|
|
1353
|
+
<p class="modal-description">
|
|
1354
|
+
Two blocking items remain unresolved.
|
|
1355
|
+
</p>
|
|
1356
|
+
</div>
|
|
1357
|
+
|
|
1358
|
+
<div class="modal-context">
|
|
1359
|
+
<p class="modal-context-text">#BA-204417 · Northwind Freight LLC</p>
|
|
1360
|
+
</div>
|
|
1361
|
+
|
|
1362
|
+
<div class="modal-footer">
|
|
1363
|
+
<button class="btn btn-empty btn-lg">Cancel</button>
|
|
1364
|
+
<button class="btn btn-critical btn-lg">Decline application</button>
|
|
1365
|
+
</div>
|
|
1366
|
+
</dialog>
|
|
1367
|
+
|
|
1368
|
+
<script>
|
|
1369
|
+
const modal = document.querySelector("dialog");
|
|
1370
|
+
modal.showModal(); // Opens with backdrop, Escape handling, focus trap
|
|
1371
|
+
</script>
|
|
1372
|
+
```
|
|
1373
|
+
|
|
1374
|
+
---
|
|
1375
|
+
|
|
1376
|
+
### Tooltip
|
|
1377
|
+
|
|
1378
|
+
⚠️ **Positioning is yours** - Tooltip only styles the bubble.
|
|
1379
|
+
|
|
1380
|
+
Dark popover for helper text.
|
|
1381
|
+
|
|
1382
|
+
```html
|
|
1383
|
+
<!-- Full tooltip -->
|
|
1384
|
+
<div class="tooltip" role="tooltip" id="tt-naics">
|
|
1385
|
+
<p class="tooltip-title">INDUSTRY / NAICS</p>
|
|
1386
|
+
<p class="tooltip-content">
|
|
1387
|
+
Six digits used to classify business establishments.
|
|
1388
|
+
</p>
|
|
1389
|
+
<hr class="tooltip-divider" />
|
|
1390
|
+
<p class="tooltip-subtext">Middesk · Secretary of State</p>
|
|
1391
|
+
</div>
|
|
1392
|
+
|
|
1393
|
+
<!-- Body only (most common) -->
|
|
1394
|
+
<div class="tooltip" role="tooltip">
|
|
1395
|
+
<p class="tooltip-content">
|
|
1396
|
+
Six digits used to classify business establishments.
|
|
1397
|
+
</p>
|
|
1398
|
+
</div>
|
|
1399
|
+
|
|
1400
|
+
<!-- Anchored to a trigger (positioning is yours) -->
|
|
1401
|
+
<span style="position: relative; display: inline-block;">
|
|
1402
|
+
<button
|
|
1403
|
+
class="icon-button icon-button-xs"
|
|
1404
|
+
aria-describedby="tt-naics"
|
|
1405
|
+
aria-label="What is NAICS?"
|
|
1406
|
+
>
|
|
1407
|
+
<svg class="icon icon-size-12" aria-hidden="true">
|
|
1408
|
+
<use href="#custom-help" />
|
|
1409
|
+
</svg>
|
|
1410
|
+
</button>
|
|
1411
|
+
<span style="position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;">
|
|
1412
|
+
<!-- .tooltip -->
|
|
1413
|
+
</span>
|
|
1414
|
+
</span>
|
|
1415
|
+
```
|
|
1416
|
+
|
|
1417
|
+
---
|
|
1418
|
+
|
|
1419
|
+
### LoadingIndicator
|
|
1420
|
+
|
|
1421
|
+
Two types: circle (spinning ring) / dots (pulsing). Four sizes: xs=12px (default), sm=16px, md=24px, lg=32px.
|
|
1422
|
+
|
|
1423
|
+
```html
|
|
1424
|
+
<!-- Circle (default xs) -->
|
|
1425
|
+
<span class="loading-indicator" role="status" aria-label="Loading"></span>
|
|
1426
|
+
|
|
1427
|
+
<!-- Circle with sizes -->
|
|
1428
|
+
<span class="loading-indicator loading-indicator-sm" role="status" aria-label="Loading"></span>
|
|
1429
|
+
<span class="loading-indicator loading-indicator-md" role="status" aria-label="Loading"></span>
|
|
1430
|
+
<span class="loading-indicator loading-indicator-lg" role="status" aria-label="Loading"></span>
|
|
1431
|
+
|
|
1432
|
+
<!-- Dots -->
|
|
1433
|
+
<span class="loading-indicator loading-indicator-dots" role="status" aria-label="Loading">
|
|
1434
|
+
<span class="loading-indicator-dot"></span>
|
|
1435
|
+
<span class="loading-indicator-dot"></span>
|
|
1436
|
+
<span class="loading-indicator-dot"></span>
|
|
1437
|
+
</span>
|
|
1438
|
+
```
|
|
1439
|
+
|
|
1440
|
+
---
|
|
1441
|
+
|
|
1442
|
+
### LoadingInline
|
|
1443
|
+
|
|
1444
|
+
Loading indicator with a label. Four sizes: xs / sm / md / lg.
|
|
1445
|
+
|
|
1446
|
+
```html
|
|
1447
|
+
<span class="loading-inline loading-inline-md" role="status">
|
|
1448
|
+
<span class="loading-indicator"></span>
|
|
1449
|
+
Loading...
|
|
1450
|
+
</span>
|
|
1451
|
+
|
|
1452
|
+
<!-- All sizes -->
|
|
1453
|
+
<span class="loading-inline loading-inline-xs" role="status">
|
|
1454
|
+
<span class="loading-indicator"></span>
|
|
1455
|
+
Loading...
|
|
1456
|
+
</span>
|
|
1457
|
+
<span class="loading-inline loading-inline-sm" role="status">
|
|
1458
|
+
<span class="loading-indicator"></span>
|
|
1459
|
+
Loading...
|
|
1460
|
+
</span>
|
|
1461
|
+
<span class="loading-inline loading-inline-lg" role="status">
|
|
1462
|
+
<span class="loading-indicator"></span>
|
|
1463
|
+
Loading...
|
|
1464
|
+
</span>
|
|
1465
|
+
```
|
|
1466
|
+
|
|
1467
|
+
---
|
|
1468
|
+
|
|
1469
|
+
### ProgressBar
|
|
1470
|
+
|
|
1471
|
+
Two schemes: primary (default) / success.
|
|
1472
|
+
|
|
1473
|
+
```html
|
|
1474
|
+
<div class="progress-bar progress-bar-success">
|
|
1475
|
+
<div class="progress-bar-header">
|
|
1476
|
+
<span class="progress-bar-title">Review completion</span>
|
|
1477
|
+
<span class="progress-bar-value">92%</span>
|
|
1478
|
+
</div>
|
|
1479
|
+
|
|
1480
|
+
<div
|
|
1481
|
+
class="progress-bar-track"
|
|
1482
|
+
role="progressbar"
|
|
1483
|
+
aria-valuenow="92"
|
|
1484
|
+
aria-valuemin="0"
|
|
1485
|
+
aria-valuemax="100"
|
|
1486
|
+
aria-label="Review completion"
|
|
1487
|
+
>
|
|
1488
|
+
<div class="progress-bar-fill" style="width: 92%"></div>
|
|
1489
|
+
</div>
|
|
1490
|
+
|
|
1491
|
+
<div class="progress-bar-legend">
|
|
1492
|
+
<span class="progress-bar-legend-item">
|
|
1493
|
+
<span class="progress-bar-legend-swatch"></span>
|
|
1494
|
+
<span class="progress-bar-legend-label">92% verified</span>
|
|
1495
|
+
</span>
|
|
1496
|
+
<span class="progress-bar-legend-item">
|
|
1497
|
+
<span class="progress-bar-legend-swatch progress-bar-legend-swatch-neutral"></span>
|
|
1498
|
+
<span class="progress-bar-legend-label">8% unaccounted</span>
|
|
1499
|
+
</span>
|
|
1500
|
+
</div>
|
|
1501
|
+
</div>
|
|
1502
|
+
```
|
|
1503
|
+
|
|
1504
|
+
---
|
|
1505
|
+
|
|
1506
|
+
### Stepper
|
|
1507
|
+
|
|
1508
|
+
Row of steps joined by connectors.
|
|
1509
|
+
|
|
1510
|
+
```html
|
|
1511
|
+
<div class="stepper">
|
|
1512
|
+
<p class="stepper-title">Stepped progression flow</p>
|
|
1513
|
+
<div class="stepper-steps">
|
|
1514
|
+
<div class="step">
|
|
1515
|
+
<span class="step-marker">
|
|
1516
|
+
<svg class="icon icon-size-12" aria-hidden="true">
|
|
1517
|
+
<use href="#check" />
|
|
1518
|
+
</svg>
|
|
1519
|
+
</span>
|
|
1520
|
+
<span class="step-label">Intake</span>
|
|
1521
|
+
</div>
|
|
1522
|
+
<span class="stepper-connector stepper-connector-complete"></span>
|
|
1523
|
+
|
|
1524
|
+
<div class="step step-active" aria-current="step">
|
|
1525
|
+
<span class="step-marker">2</span>
|
|
1526
|
+
<span class="step-label">Review</span>
|
|
1527
|
+
</div>
|
|
1528
|
+
<span class="stepper-connector"></span>
|
|
1529
|
+
|
|
1530
|
+
<div class="step step-upcoming">
|
|
1531
|
+
<span class="step-marker">3</span>
|
|
1532
|
+
<span class="step-label">Decision</span>
|
|
1533
|
+
</div>
|
|
1534
|
+
</div>
|
|
1535
|
+
</div>
|
|
1536
|
+
```
|
|
1537
|
+
|
|
1538
|
+
---
|
|
1539
|
+
|
|
1540
|
+
## Review Components
|
|
1541
|
+
|
|
1542
|
+
### FieldVerification
|
|
1543
|
+
|
|
1544
|
+
Inline verification indicator. Four states: verified / pending / none / mismatch.
|
|
1545
|
+
|
|
1546
|
+
```html
|
|
1547
|
+
<!-- Verified -->
|
|
1548
|
+
<span class="field-verification field-verification-verified">
|
|
1549
|
+
<span class="section-marker section-marker-approve" role="img" aria-label="Verified">
|
|
1550
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1551
|
+
<use href="#check" />
|
|
1552
|
+
</svg>
|
|
1553
|
+
</span>
|
|
1554
|
+
<span class="field-verification-label">Matches X</span>
|
|
1555
|
+
</span>
|
|
1556
|
+
|
|
1557
|
+
<!-- Pending -->
|
|
1558
|
+
<span class="field-verification field-verification-pending">
|
|
1559
|
+
<span class="section-marker" role="img" aria-label="Pending">
|
|
1560
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1561
|
+
<use href="#circle" />
|
|
1562
|
+
</svg>
|
|
1563
|
+
</span>
|
|
1564
|
+
<span class="field-verification-label">Verification pending</span>
|
|
1565
|
+
</span>
|
|
1566
|
+
|
|
1567
|
+
<!-- None -->
|
|
1568
|
+
<span class="field-verification field-verification-none" role="img" aria-label="No status">
|
|
1569
|
+
<span class="section-marker">
|
|
1570
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1571
|
+
<use href="#minus" />
|
|
1572
|
+
</svg>
|
|
1573
|
+
</span>
|
|
1574
|
+
</span>
|
|
1575
|
+
|
|
1576
|
+
<!-- Mismatch (preview) -->
|
|
1577
|
+
<span class="field-verification field-verification-mismatch">
|
|
1578
|
+
<svg class="field-verification-icon icon icon-size-15" aria-hidden="true">
|
|
1579
|
+
<use href="#triangle-alert" />
|
|
1580
|
+
</svg>
|
|
1581
|
+
<span class="field-verification-label">Does not match KYC</span>
|
|
1582
|
+
</span>
|
|
1583
|
+
|
|
1584
|
+
<!-- Mismatch (expanded) -->
|
|
1585
|
+
<span class="field-verification field-verification-mismatch">
|
|
1586
|
+
<svg class="field-verification-icon icon icon-size-15" aria-hidden="true">
|
|
1587
|
+
<use href="#triangle-alert" />
|
|
1588
|
+
</svg>
|
|
1589
|
+
<span class="field-verification-details">
|
|
1590
|
+
<span class="field-verification-label">Does not match KYC</span>
|
|
1591
|
+
<span class="field-verification-detail">Reported: 04/12/1988</span>
|
|
1592
|
+
<span class="field-verification-action">
|
|
1593
|
+
Review discrepancy
|
|
1594
|
+
<svg class="icon icon-size-15" aria-hidden="true">
|
|
1595
|
+
<use href="#arrow-right" />
|
|
1596
|
+
</svg>
|
|
1597
|
+
</span>
|
|
1598
|
+
</span>
|
|
1599
|
+
</span>
|
|
1600
|
+
```
|
|
1601
|
+
|
|
1602
|
+
---
|
|
1603
|
+
|
|
1604
|
+
### SectionMarker
|
|
1605
|
+
|
|
1606
|
+
16×16 verification marker. Four statuses: approve / mismatch / unverified / na.
|
|
1607
|
+
|
|
1608
|
+
```html
|
|
1609
|
+
<!-- Approve -->
|
|
1610
|
+
<span class="section-marker section-marker-approve" role="img" aria-label="Approved">
|
|
1611
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1612
|
+
<use href="#check" />
|
|
1613
|
+
</svg>
|
|
1614
|
+
</span>
|
|
1615
|
+
|
|
1616
|
+
<!-- Mismatch -->
|
|
1617
|
+
<span class="section-marker section-marker-mismatch" role="img" aria-label="Mismatch">
|
|
1618
|
+
<span class="section-marker-dot"></span>
|
|
1619
|
+
</span>
|
|
1620
|
+
|
|
1621
|
+
<!-- Unverified -->
|
|
1622
|
+
<span class="section-marker section-marker-unverified" role="img" aria-label="Unverified">
|
|
1623
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1624
|
+
<use href="#circle" />
|
|
1625
|
+
</svg>
|
|
1626
|
+
</span>
|
|
1627
|
+
|
|
1628
|
+
<!-- NA (no status class, no child, but needs label) -->
|
|
1629
|
+
<span class="section-marker" role="img" aria-label="Not applicable"></span>
|
|
1630
|
+
```
|
|
1631
|
+
|
|
1632
|
+
---
|
|
1633
|
+
|
|
1634
|
+
### SensitiveData
|
|
1635
|
+
|
|
1636
|
+
Masked value with toggle.
|
|
1637
|
+
|
|
1638
|
+
```html
|
|
1639
|
+
<!-- Hidden -->
|
|
1640
|
+
<span class="sensitive-data">
|
|
1641
|
+
<span class="sensitive-data-value">***-**-1234</span>
|
|
1642
|
+
<button
|
|
1643
|
+
class="icon-button icon-button-md"
|
|
1644
|
+
aria-pressed="true"
|
|
1645
|
+
aria-label="Show full value"
|
|
1646
|
+
>
|
|
1647
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1648
|
+
<use href="#eye-off" />
|
|
1649
|
+
</svg>
|
|
1650
|
+
</button>
|
|
1651
|
+
</span>
|
|
1652
|
+
|
|
1653
|
+
<!-- Revealed -->
|
|
1654
|
+
<span class="sensitive-data">
|
|
1655
|
+
<span class="sensitive-data-value">123-12-1234</span>
|
|
1656
|
+
<button
|
|
1657
|
+
class="icon-button icon-button-md"
|
|
1658
|
+
aria-pressed="false"
|
|
1659
|
+
aria-label="Hide value"
|
|
1660
|
+
>
|
|
1661
|
+
<svg class="icon icon-size-14" aria-hidden="true">
|
|
1662
|
+
<use href="#eye" />
|
|
1663
|
+
</svg>
|
|
1664
|
+
</button>
|
|
1665
|
+
</span>
|
|
1666
|
+
```
|
|
1667
|
+
|
|
1668
|
+
---
|
|
1669
|
+
|
|
1670
|
+
## Need More Help?
|
|
1671
|
+
|
|
1672
|
+
- **Installation issues:** See [GETTING_STARTED.md](GETTING_STARTED.md)
|
|
1673
|
+
- **Broken components:** See [TROUBLESHOOTING.md](TROUBLESHOOTING.md)
|
|
1674
|
+
- **Technical details:** See [CLAUDE.md](CLAUDE.md)
|
|
1675
|
+
- **Working examples:** See `examples/vite-starter/` and `examples/postcss-starter/`
|