@xerios/design-system 0.1.2 → 0.1.3
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/CHANGELOG.md +86 -1
- package/README.md +11 -7
- package/dist/components/CollapsibleAdvanced.svelte +1 -1
- package/dist/components/WorkingBorder.svelte +10 -8
- package/dist/components/empty/EmptyError.svelte +61 -12
- package/dist/components/empty/EmptyError.svelte.d.ts +2 -1
- package/dist/components/filters/OptionList.svelte +29 -13
- package/dist/components/filters/Panel.svelte +1 -1
- package/dist/components/icons.d.ts +3 -0
- package/dist/components/icons.js +3 -0
- package/dist/components/inputs/Calendar.svelte +232 -172
- package/dist/components/inputs/Calendar.svelte.d.ts +2 -0
- package/dist/components/inputs/DateField.svelte +209 -92
- package/dist/components/inputs/DateField.svelte.d.ts +16 -10
- package/dist/components/inputs/DateInput.svelte +22 -9
- package/dist/components/inputs/DateInput.svelte.d.ts +3 -0
- package/dist/components/inputs/DatePicker.svelte +63 -38
- package/dist/components/inputs/DatePicker.svelte.d.ts +5 -2
- package/dist/components/inputs/DateRangePicker.svelte +69 -39
- package/dist/components/inputs/DateRangePicker.svelte.d.ts +5 -2
- package/dist/components/inputs/DateRangeSelect.svelte +26 -25
- package/dist/components/inputs/Select.svelte +18 -8
- package/dist/components/inputs/TextArea.svelte +1 -1
- package/dist/components/scroll/ScrollButton.svelte +260 -0
- package/dist/components/scroll/ScrollButton.svelte.d.ts +61 -0
- package/dist/components/scroll/ScrollMore.svelte +57 -0
- package/dist/components/scroll/ScrollMore.svelte.d.ts +28 -0
- package/dist/components/scroll/ScrollToTop.svelte +57 -0
- package/dist/components/scroll/ScrollToTop.svelte.d.ts +22 -0
- package/dist/css/atoms.css +1 -1
- package/dist/css/effects.css +259 -16
- package/dist/css/tokens.css +61 -34
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/lib/dates.d.ts +38 -5
- package/dist/lib/dates.js +88 -19
- package/dist/lib/edge-glow.d.ts +11 -0
- package/dist/lib/edge-glow.js +251 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,90 @@ patch. Breaking entries are marked **Breaking** and say what to change in an app
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.3] - 2026-11-22
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `ScrollToTop`: a floating "back to top" pill (an up arrow and its label) that rises in at the bottom corner of the
|
|
15
|
+
window or a scroll area once you are a screenful down.
|
|
16
|
+
- `ScrollMore`: a floating cue that there is more below, a gently bobbing down arrow (or a pill with its label) that
|
|
17
|
+
scrolls on by a screenful, or to the end (`toEnd`); shown until the area is scrolled, or whenever more is below
|
|
18
|
+
(`until="end"`).
|
|
19
|
+
- `Icon`: the built-in `arrowUp`, `arrowUpBold` and `arrowDownBold` glyphs.
|
|
20
|
+
- `lib/edge-glow.js`: `edgeGlow(area, { side, duration, announce })` lights a scroll area's bottom (or top) edge with a
|
|
21
|
+
soft metallic glow and sends ripples out of it, to say new content arrived past it. The glow fades first; the
|
|
22
|
+
ripples, and the line on the edge, last until it ends, after a while or once that edge is scrolled to.
|
|
23
|
+
- Tokens: `--sheen-lo`, `--sheen-hi` and `--sheen-tint` (the working shimmer's metal tones and indigo glint),
|
|
24
|
+
`--sheen-cool`, `--sheen-rose` and `--sheen-gold` (the muted colours of metal's sheen) and
|
|
25
|
+
`--edge-glow-strength`.
|
|
26
|
+
- `lib/dates.js`: `formatShort` ('18 Nov', '18 Nov 2025 15:30') and `formatSpan` ('3–18 Nov', '28 Oct – 3 Nov',
|
|
27
|
+
'14:30–16:00 18 Nov') write a day or a span for reading, with the month's short name and what both ends share once;
|
|
28
|
+
`year: true` shows the year even when it is this one.
|
|
29
|
+
- `DateInput`: `oncommit(day, enter)` runs after what was typed becomes the value.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- `.shimmer` (the working sweep along a pill's edge: a busy `Button`, `Select` loading, status pills) and
|
|
34
|
+
`WorkingBorder`: in the metal of the new-content glow (`--sheen-*`), silver with an indigo glint and touches of cyan,
|
|
35
|
+
rose and gold on dark, grey and violet on light, instead of indigo and greys (and violet, pink and amber comets).
|
|
36
|
+
- `Empty.Error`: laid out side by side: a larger warning icon on the left, a vertical rule, and the title, message
|
|
37
|
+
and actions to its right, aligned left (they were stacked and centred).
|
|
38
|
+
- `--brand`, `--accent`, `--link` (and everything built on them: `--accent-soft`, `--accent-line`, `--ring`,
|
|
39
|
+
`--control-*`, `--glow`): the default accent is teal instead of indigo. Primary buttons, focus rings, ticks, links and
|
|
40
|
+
the tint on controls all turn teal; an app that sets its own `--brand` / `--accent` sees no change.
|
|
41
|
+
- `DatePicker`, `DateRangePicker`: the field is a button showing the value briefly ('18 Nov', '3–18 Nov'; the year only
|
|
42
|
+
when it isn't this year), with a calendar icon and a caret. The typed input (two for the range) moves into the panel,
|
|
43
|
+
above the calendar, with the clear button at its end, and takes the focus as it opens; a typing error shows under it.
|
|
44
|
+
Enter in it sets the value and closes. Attributes and attachments now go to the button; `placeholder` is the
|
|
45
|
+
button's text with no value.
|
|
46
|
+
- `DateRangePicker`: after the first press on the calendar, the inputs show that day in "from" and "to" is empty.
|
|
47
|
+
- `Calendar`, `DatePicker`, `DateRangePicker`: weeks start on Monday by default instead of the locale's first day;
|
|
48
|
+
`weekStart` (1 Monday … 7 Sunday, or 'locale') changes it. `monthGrid` takes the same as a second argument.
|
|
49
|
+
- `DatePicker`, `DateRangePicker`: the button shows the year whenever it has room for it ('18 Nov 2026',
|
|
50
|
+
'3–18 Nov 2026'), dropping this year's number only when it is too narrow.
|
|
51
|
+
- `Select`, `OptionList` with `multiple={false}`: the chosen option is filled solid with the brand colour (as a chosen
|
|
52
|
+
day in `Calendar`) instead of carrying a tick, and the rows lose the tick column.
|
|
53
|
+
- Light theme is flat: buttons, select triggers, chosen segments, tiles and upload pills lose their lit top edge,
|
|
54
|
+
contact ring and drop (`--shadow-btn`, `--solid-edge`, `--raised-edge`, `--raised-base`); fields and switch tracks
|
|
55
|
+
lose their sunken relief (`--sunken-shadow`, `--shadow-sm`); cards, tables and dialogs lose the lit corner, the
|
|
56
|
+
`.shine` beam and their resting drop (`--edge-hi`, `--edge-shadow`, `--shine`, `--view-shadow`). Every edge is its
|
|
57
|
+
plain hairline. Soft shadows stay in three places: a short drop under raised controls (`--shadow-btn`, which also
|
|
58
|
+
shades them softly from top to bottom so they read as gently rounded) and the view card (`--view-shadow`), and a
|
|
59
|
+
wide, soft one under floating layers (`--shadow`). `--shadow-md` is quieter. Dark is unchanged.
|
|
60
|
+
- `Calendar` (and the pickers' calendars): the mouse wheel or a trackpad turns the page (down: next month, up:
|
|
61
|
+
previous), stopping where the arrows do.
|
|
62
|
+
- `Calendar`: turning the page scrolls the weeks: the weeks two months share glide to their new place, the others slide
|
|
63
|
+
out and in under the day names. A jump to another month or year slides the whole grid.
|
|
64
|
+
- `Calendar`: the month and the year in its head are dropdowns (ghost `Select`s) instead of buttons that swapped the
|
|
65
|
+
grid for a page of months or years. The month list holds the months with a day to pick; the year list runs from
|
|
66
|
+
`min` to `max` (without them, 3 years back to 1 ahead, plus the year shown if it is further) and has a search field
|
|
67
|
+
when it holds more than 8.
|
|
68
|
+
- `Calendar`: one fixed width (the days' grid), so the pickers' panels keep their size from month to month; a long
|
|
69
|
+
month name is cut off with an ellipsis in the head rather than widening it.
|
|
70
|
+
- `Calendar`: a hairline under the day names, which are dimmer (`--faint`), and one down the grid where the workdays
|
|
71
|
+
meet the weekend (the user's locale's; Saturday and Sunday by default). `weekendDays()` in `lib/dates.js` gives it.
|
|
72
|
+
- `DateRangePicker`: no "Pick the first day" hint above the calendar; after the first press, only screen readers are
|
|
73
|
+
told to pick the last day.
|
|
74
|
+
- `DateInput`: leaving it without an edit no longer re-reads the value.
|
|
75
|
+
- `DatePicker`, `DateRangePicker`, `parseInput`: typed dates are read with any-date-parser (a new dependency), so
|
|
76
|
+
month names ('18 Nov', '18 novembre'), a missing year ('18/11', this year) and words ('today', 'tomorrow', '3 days
|
|
77
|
+
ago') read too. Numbers are still day first.
|
|
78
|
+
- `DateRangeSelect`: a calendar icon on the button. The button and the list show months by their short name instead
|
|
79
|
+
of numbers, and a span as briefly as it can be said ('3–18 Nov', '14:30–16:00 18 Nov').
|
|
80
|
+
- **Breaking** `DateField`: the field is a button and the `inputs` snippet is drawn in a box at the top of the panel
|
|
81
|
+
(with the clear button), given `close`. `calendarLabel` is gone; pass the value's text as `text` (and
|
|
82
|
+
`placeholder`). `show()` takes no argument and focuses the panel's `[data-autofocus]` element.
|
|
83
|
+
|
|
84
|
+
### Deprecated
|
|
85
|
+
|
|
86
|
+
- `--shimmer-image-dark` and `--shimmer-image-light`: the working stripe is one image for both themes now; use
|
|
87
|
+
`--shimmer-image`.
|
|
88
|
+
|
|
89
|
+
### Fixed
|
|
90
|
+
|
|
91
|
+
- `DatePicker`, `DateRangePicker` (`DateField`), `FilterBar`'s panels: a press or the focus in a layer opened from
|
|
92
|
+
inside the panel (a `Select`'s list) no longer closes the panel.
|
|
93
|
+
|
|
10
94
|
## [0.1.2] - 2026-11-20
|
|
11
95
|
|
|
12
96
|
### Changed
|
|
@@ -42,7 +126,8 @@ patch. Breaking entries are marked **Breaking** and say what to change in an app
|
|
|
42
126
|
First release: theme tokens, global CSS (`base`, `effects`, `atoms`), the components listed in the README and the
|
|
43
127
|
`lib/` helpers.
|
|
44
128
|
|
|
45
|
-
[Unreleased]: https://github.com/Xerios/design-system/compare/v0.1.
|
|
129
|
+
[Unreleased]: https://github.com/Xerios/design-system/compare/v0.1.3...HEAD
|
|
130
|
+
[0.1.3]: https://github.com/Xerios/design-system/compare/v0.1.2...v0.1.3
|
|
46
131
|
[0.1.2]: https://github.com/Xerios/design-system/compare/v0.1.1...v0.1.2
|
|
47
132
|
[0.1.1]: https://github.com/Xerios/design-system/compare/v0.1.0...v0.1.1
|
|
48
133
|
[0.1.0]: https://github.com/Xerios/design-system/releases/tag/v0.1.0
|
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ out (`@xerios/design-system/components/…`). Paths elsewhere in this README are
|
|
|
42
42
|
css/index.css imports the four files below, in order
|
|
43
43
|
css/tokens.css every token, light and dark
|
|
44
44
|
css/base.css reset, body type, selection rules, scrollbars, links, focus rings, kbd, utilities
|
|
45
|
-
css/effects.css scroll fades, lit edge, corner glow, shine, shell atmosphere, shimmer, spotlight, dialog motion
|
|
45
|
+
css/effects.css scroll fades, new-content glow, lit edge, corner glow, shine, shell atmosphere, shimmer, spotlight, dialog motion
|
|
46
46
|
css/atoms.css .btn, .icon-btn, .data-table, .count, tones, .label-chip, .chip-btn, .field-label, .label-note, .new-dot, .prose
|
|
47
47
|
components/ generic components (table below)
|
|
48
48
|
components/inputs/ form controls
|
|
@@ -51,7 +51,7 @@ components/tiles/ tiles and the tile group
|
|
|
51
51
|
components/metadata/ labelled values (Metadata, Metadata.Row)
|
|
52
52
|
components/filters/ filter rows (FilterBar, FilterBar.Chip, FilterBar.Options)
|
|
53
53
|
components/icons.js the built-in glyphs as SVG strings (generated by scripts/icons.js)
|
|
54
|
-
lib/ dom.js, dialogs.svelte.js, motion.js, scroll-fade.js, validity.js, tooltip.js, field-errors.svelte.js, menu.svelte.js, controls.js, inline-md.js, spotlight.js
|
|
54
|
+
lib/ dom.js, dialogs.svelte.js, motion.js, scroll-fade.js, validity.js, tooltip.js, field-errors.svelte.js, menu.svelte.js, controls.js, inline-md.js, spotlight.js, edge-glow.js
|
|
55
55
|
fonts.js bundles the two typefaces
|
|
56
56
|
index.js named exports of everything
|
|
57
57
|
```
|
|
@@ -78,8 +78,9 @@ All in `css/tokens.css`. Components read tokens only, never raw colours or pixel
|
|
|
78
78
|
| Control fills (tinted, translucent) | `--control-1` … `--control-4`: the fill scale with a faint brand-hue cast (`--control-hue`), for anything you press, type into or drag, so controls read apart from neutral surfaces |
|
|
79
79
|
| Accent | `--accent` (text, focus, ticks), `--brand` (solid fills), `--accent-ink`, `--accent-soft`, `--accent-line`, `--link` (link text) |
|
|
80
80
|
| Semantic tones | `--success`, `--info`, `--warning`, `--neutral`, `--danger`, each with a `-soft` fill |
|
|
81
|
-
| Elevation | `--shadow-sm`, `--shadow-md`, `--shadow-btn` (raised controls: buttons, select triggers, chosen segments), `--shadow` (floating), `--ring` (focus), `--glass`, `--scrim` |
|
|
81
|
+
| Elevation | `--shadow-sm`, `--shadow-md`, `--shadow-btn` (raised controls: buttons, select triggers, chosen segments; a soft drop only in light), `--shadow` (floating), `--ring` (focus), `--glass`, `--scrim` |
|
|
82
82
|
| Edges and light | `--edge-hi`, `--edge-r`, `--edge-plateau`, `--edge-grad`, `--edge-grad-float`, `--edge-shadow`, `--shine`, `--glow`, `--grain`, `--raised-edge`, `--raised-base`, `--sunken-shadow`, `--relief-texture`, `--relief-shade`, `--solid-edge` and `--solid-line` (on solid buttons), `--knob`, `--knob-shadow` and `--knob-ring` (Switch and Slider thumbs) |
|
|
83
|
+
| Metallic sheen | `--sheen-lo`, `--sheen-hi`, `--sheen-tint` (the working shimmer's metal tones and indigo glint), `--sheen-cool`, `--sheen-rose`, `--sheen-gold` (the muted colours of metal's sheen), `--edge-glow-strength` (the new-content glow) |
|
|
83
84
|
| Type | `--font-body`, `--font-display`, `--font-data` (= `--font-mono`), weights `--w-normal` 400, `--w-medium` 510, `--w-semibold` 590. Body is 13px/1.5 |
|
|
84
85
|
| Spacing (4px base) | `--space-1` 4 · `-2` 8 · `-3` 12 · `-4` 16 · `-5` 20 · `-6` 24 · `-8` 32 |
|
|
85
86
|
| Radii | `--r-sm` 6 (chips, keys) · `--r` 8 (rows, fields) · `--r-lg` 10 (cards, popovers) · `--r-xl` 12 (panels, dialogs) · `--r-pill` |
|
|
@@ -109,7 +110,7 @@ scroll area: its side padding, so separators inside run through it to the edges)
|
|
|
109
110
|
|
|
110
111
|
| Class / attribute | What it is |
|
|
111
112
|
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
112
|
-
| `.btn`, `.btn-primary`, `.btn-small`, `.btn-danger` | Pill button: translucent secondary, solid
|
|
113
|
+
| `.btn`, `.btn-primary`, `.btn-small`, `.btn-danger` | Pill button: translucent secondary, solid teal primary, 24px small, solid red for a destructive action |
|
|
113
114
|
| `.dialog`, `.dialog.confirm`, `.dialog-head`, `.dialog-body`, `.dialog-foot` | Modal `<dialog>` panel (560px; 420px for a question) with a header, scrolling body and footer of actions, lit with the shine and corner glow (its `::before` and `::after`); `--dialog-width` sets another width. `Modal` draws the panel and header for you |
|
|
114
115
|
| `.icon-btn` | 28px ghost circle for an icon; `aria-pressed` and `aria-expanded` are styled |
|
|
115
116
|
| `.linklike` | A button that reads as a link |
|
|
@@ -119,7 +120,7 @@ scroll area: its side padding, so separators inside run through it to the edges)
|
|
|
119
120
|
| `.chip-btn`, `.chip-btn.outlined` | Interactive pill (Linear's property pills) on a `<button>` or `<a>`: borderless and transparent until hovered, secondary text led by an icon or `.label-dot`; `.outlined` adds the hairline. The clickable counterpart of `.label-chip` |
|
|
120
121
|
| `.suggested` | On a `.label-chip`, `.chip-btn` or `.btn` (or `<Button class="suggested">`): something proposed but not applied yet. Dashed outline and no fill at rest (muted text on a label; a button's text stays clear); a button turns solid on hover and press. A dashed outline on a control means this only |
|
|
121
122
|
| `.count` | Small number pill |
|
|
122
|
-
| `.field-box` | The box a text field draws:
|
|
123
|
+
| `.field-box` | The box a text field draws: faint fill and inset hairline (sunken in dark), focus and invalid states |
|
|
123
124
|
| `.eyebrow`, `.field-label`, `.field-head`, `.label-note` | Section label; label above a form control; a label row with an `InfoTip` after it; a dimmed aside after a label or other text (`(optional)`; fields' `note` prop) |
|
|
124
125
|
| `.prose` | Long-form text (docs, notes, rendered markdown): styles the plain elements inside it, headings h1–h6, links, inline code, `kbd`, `mark`, `abbr`, `del` / `ins`, `sub` / `sup`, lists (nested and `dl`), quotes, code blocks, rules, figures and tables. Space goes above each block, none on the first. Pair with `AnchorHeading` for headings that link to themselves |
|
|
125
126
|
| `.new-dot` | Accent dot for unread or new |
|
|
@@ -169,6 +170,8 @@ wrapper for display components, the control itself (input, button) for inputs, P
|
|
|
169
170
|
| `Icon` | Any icon (Phosphor regular) | `name`, `size` sm/md/lg, `label` (only if it carries meaning) |
|
|
170
171
|
| `empty/` (`Empty`, `Empty.Error`) | Empty state; `Empty.Error` for a view that failed to load, with a retry (an alert) | `title`, `body`, `level`, `icon`, children for actions; Error: `title`, `message`, `onretry` (may be async), `retryLabel` |
|
|
171
172
|
| `Button` | Every `.btn` / `.icon-btn` with behaviour: an icon, async actions (spinner and `pendingLabel` while the promise runs, presses ignored meanwhile, a rejection's message in a bubble under it), links drawn as buttons | `variant` secondary/primary/danger, `small`, `icon`, `iconOnly` + `label`, `href`, `type`, `onclick` (may return a promise), `pending`, `pendingLabel`, `onerror` |
|
|
173
|
+
| `scroll/ScrollToTop` | A floating "back to top" pill once a screenful down | `label`, `after`, `align`, `target` |
|
|
174
|
+
| `scroll/ScrollMore` | A floating cue that more is below (bobbing arrow), scrolling on when pressed | `label`, `showLabel`, `until` scrolled/end, `toEnd`, `align`, `target` |
|
|
172
175
|
| `ErrorMessage` | Error text: inline, or a dismissible bubble under a control | `message`, `id`, `floating`, `ondismiss` |
|
|
173
176
|
| `Notice` | Inline notice about a standing condition | `tone`, `icon`, children for the text |
|
|
174
177
|
| `Shimmer` | "Working…" text | `text` or children, `active`, `as` |
|
|
@@ -199,7 +202,7 @@ wrapper for display components, the control itself (input, button) for inputs, P
|
|
|
199
202
|
| `inputs/Switch` | On/off | `checked` (bindable), `id`, `label`, `hint`; other props and attachments go to the button |
|
|
200
203
|
| `inputs/Slider` | Number in a range | `value` (bindable), `min`, `max`, `step`, `id`, `label`, `format`, `ticks` (a mark per stop; `'auto'`: 3 to 11 stops) |
|
|
201
204
|
| `inputs/RangeSlider` | A range of numbers: two thumbs on one track that can't cross | `value` (bindable `[from, to]`), `min`, `max`, `step`, `gap`, `id`, `label`, `format`, `ticks` |
|
|
202
|
-
| `inputs/DatePicker`, `DateRangePicker` | A day, or a span of days: typed as DD/MM/YYYY (or ISO)
|
|
205
|
+
| `inputs/DatePicker`, `DateRangePicker` | A day, or a span of days: a button showing it briefly (`18 Nov 2026`, `3–18 Nov 2026`; this year's number dropped when it is narrow) that opens a panel where it is typed as DD/MM/YYYY (or ISO) or picked from a calendar (ISO days, `lib/dates.js`); the range has a from and a to input, or takes two presses, and ready-made spans (Last 7 days…) beside the calendar | `value` (bindable: `'2026-11-18'`, or `[from, to]`), `id`, `label`, `min`, `max`, `allowed` (DatePicker: the only days allowed), `shortcuts` (DateRangePicker), `weekStart` (1 Monday, the default … 7 Sunday, or `'locale'`), `placeholder`, `clearable`, `error`, `info`, `hideLabel`, `disabled` |
|
|
203
206
|
| `inputs/DateRangeSelect` | A compact span between two of a given list of days or moments (irregular runs): a button opening the list, newest first, picked with two presses, and shortcuts (Most recent, Last 3, This month) | `value` (bindable: `[from, to]`), `dates`, `id`, `label`, `shortcuts`, `placeholder`, `error`, `info`, `hideLabel`, `disabled` |
|
|
204
207
|
| `inputs/Calendar`, `inputs/DateField`, `inputs/DateInput`, `inputs/RangeShortcuts`, `inputs/ListSearch` | The parts the pickers are made of (a month grid; the field and its panel; the shortcut buttons; the search field at the top of Select's and OptionList's lists), for a picker of your own | see their header comments |
|
|
205
208
|
| `upload/` (`Upload.File`, `.Files`, `.Folder`, `.Image`, `.Images`) | File pickers that take drops too. The button becomes what it picked: a card with the name and size (a folder's file count), or a square thumbnail for an image, with a ✕ to clear it; the plural ones list their files (cards, or a grid of thumbnails) above a button that adds more | `file` / `files` / `folder` (bindable), `onchange`, `label`, `accept`, `id`, `disabled`, `error`; `Files`: `addLabel`; `Image`, `Images`: `maxSize` (bytes, default 10 MB) |
|
|
@@ -333,7 +336,7 @@ out and holds every timer.
|
|
|
333
336
|
| `portal`, `portalNear(from)` | Attachments that move a node to `<body>` or the nearest `[data-layer-root]` |
|
|
334
337
|
| `announce(text, { delay? })`, `cancelAnnouncement()` | The page's one polite live region (moved into the open modal, since outside it is inert). `fieldErrors` uses it for an error that appears as a field is left; `TagInput` for tags added, removed or refused |
|
|
335
338
|
| `invalid(errorId)` | Attachment: `aria-invalid` ("true", else "false") and the message's id in `aria-describedby` on a control or group, every field alike. `FIRST_INVALID`: the selector for the control to focus after a failed submit |
|
|
336
|
-
| `dates` | ISO day helpers for pickers: `parse`, `today`, `addDays`, `addMonths`, `monthGrid`, `formatDay`, `within`, `clamp`…; `relativeDay('-3d')` and `datePresets()` for relative days (a date filter's value) |
|
|
339
|
+
| `dates` | ISO day helpers for pickers: `parse`, `today`, `addDays`, `addMonths`, `monthGrid`, `formatDay`, `within`, `clamp`…; `formatShort` (`18 Nov`) and `formatSpan` (`3–18 Nov`, `14:30–16:00 18 Nov`) for showing a day or span; `relativeDay('-3d')` and `datePresets()` for relative days (a date filter's value) |
|
|
337
340
|
| `composing(event)` | True while a key belongs to an IME composition (`isComposing`, or `keyCode` 229 for Safari): return early from a field's own Enter / Esc / Backspace handling |
|
|
338
341
|
| `radioKeys` | Attachment for a `role="radiogroup"` with roving focus: arrows, Home and End move to an option and choose it (what `Segmented`, `ButtonGroup` and `RadioGroup` use) |
|
|
339
342
|
| `topLayer(from)` | Attachment that shows a floating node in the top layer, above modal dialogs (inside the dialog around `from`, else `<body>`) |
|
|
@@ -360,6 +363,7 @@ out and holds every timer.
|
|
|
360
363
|
| `alertDialog`, `confirmDialog`, `promptDialog` | Promise-based alert, confirm and prompt, drawn by `<Dialogs />` |
|
|
361
364
|
| `inlineMd(text)` | Parses inline markdown into parts (what `Md` renders) |
|
|
362
365
|
| `spotlight(id, { timeout? })` | Waits for the element with that id (or the collapsed toggle whose `aria-controls` names it) to appear, reveals it (clicks the toggle, opens a closed `<details>` around it), scrolls to it and flashes it briefly. Call it right after opening what holds it. Resolves to the element or null |
|
|
366
|
+
| `edgeGlow(area, { side?, duration?, announce? })` | Lights a scroll area's bottom (`side: 'below'`) or top edge with a soft metallic glow and sends ripples out of it: new content arrived past it. `area` is an element, its id or `window`. The glow fades after `--edge-glow-hold`; the ripples and the line on the edge go on for `duration` (3000ms; `Infinity` holds them) or until that edge is scrolled to. Returns `stop()` |
|
|
363
367
|
|
|
364
368
|
## Fonts
|
|
365
369
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Header, left to right: chevron, `lead` (e.g. a status icon), `title`, `meta` (e.g. a phase), then `end` pushed
|
|
8
8
|
* to the right (e.g. timings). `actions` sits in the top-right corner outside the toggle (e.g. a ⋯ menu).
|
|
9
|
-
* `variant`: 'default', 'active' (
|
|
9
|
+
* `variant`: 'default', 'active' (accent border, for something in progress) or 'empty' (dashed, muted title).
|
|
10
10
|
* `dimmed` fades the whole card (pending or skipped). `open` sets whether it starts open; it re-applies when it changes.
|
|
11
11
|
* `expandable={false}` locks the card shut (nothing inside yet): no hover, faded chevron, clicks and keys do nothing. When
|
|
12
12
|
* it turns expandable again the card opens per `open`, so content that arrives unfolds by itself.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
/**
|
|
3
|
-
* Working border: two comets of
|
|
4
|
-
*
|
|
3
|
+
* Working border: two comets of light travel round the edge of their parent at an even speed, with a blurred copy
|
|
4
|
+
* glowing around it. They are the metal of the working shimmer and the new-content glow (--sheen-*): a faint silver
|
|
5
|
+
* tail running through cyan, indigo, rose and gold to a bright head, silver on dark and violet on light. Drop it inside a positioned element
|
|
5
6
|
* with a 1px border; set --radius to its border-radius (default --r-xl). It fills that element and paints over the
|
|
6
7
|
* border. Purely decorative. Reduced motion holds the comets still (the global rule).
|
|
7
8
|
*
|
|
@@ -17,14 +18,15 @@
|
|
|
17
18
|
/** How much of the perimeter a comet covers, and how many dashes it is drawn with. */
|
|
18
19
|
const LENGTH = 22
|
|
19
20
|
const DASHES = 14
|
|
20
|
-
/** The comet's colours, tail (0) to head (1). */
|
|
21
|
+
/** The comet's colours, tail (0) to head (1): the sheen tokens, so they follow the theme. */
|
|
21
22
|
const STOPS = [
|
|
22
23
|
[0, 'transparent'],
|
|
23
|
-
[0.
|
|
24
|
-
[0.
|
|
25
|
-
[0.
|
|
26
|
-
[0.
|
|
27
|
-
[0.
|
|
24
|
+
[0.3, 'color-mix(in lch, var(--sheen-lo) 50%, transparent)'],
|
|
25
|
+
[0.5, 'var(--sheen-cool)'],
|
|
26
|
+
[0.64, 'var(--sheen-tint)'],
|
|
27
|
+
[0.76, 'var(--sheen-rose)'],
|
|
28
|
+
[0.86, 'var(--sheen-gold)'],
|
|
29
|
+
[0.95, 'var(--sheen-hi)'],
|
|
28
30
|
[1, 'transparent'],
|
|
29
31
|
]
|
|
30
32
|
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* title: what failed, as an outcome ("Couldn't load …"). message: why, in words someone can act on (often the
|
|
11
11
|
* server's message). onretry: the retry; it may be async, and the button shows it working (Button). retryLabel:
|
|
12
12
|
* the button's label ("Try again"). level: as Empty's. children: more actions, after the retry.
|
|
13
|
-
*
|
|
13
|
+
* Laid out side by side: a large warning icon on the left, a vertical rule, then the title, message and actions,
|
|
14
|
+
* aligned left. It is an alert: read out when it appears, so someone who started the load hears that it failed.
|
|
14
15
|
* Other attributes (class, id…) and attachments go to the wrapper.
|
|
15
16
|
*
|
|
16
17
|
* @typedef {object} Props
|
|
@@ -21,27 +22,75 @@
|
|
|
21
22
|
* @property {2 | 3 | 4 | 5 | 6} [level]
|
|
22
23
|
* @property {import('svelte').Snippet} [children]
|
|
23
24
|
*/
|
|
24
|
-
import
|
|
25
|
+
import Icon from '../Icon.svelte'
|
|
25
26
|
import Button from '../Button.svelte'
|
|
26
27
|
|
|
27
28
|
/** @type {Props & Omit<import('svelte/elements').HTMLAttributes<HTMLDivElement>, keyof Props>} */
|
|
28
|
-
let {
|
|
29
|
+
let {
|
|
30
|
+
title = 'Something went wrong',
|
|
31
|
+
message = '',
|
|
32
|
+
onretry,
|
|
33
|
+
retryLabel = 'Try again',
|
|
34
|
+
level = 3,
|
|
35
|
+
class: className,
|
|
36
|
+
children,
|
|
37
|
+
...rest
|
|
38
|
+
} = $props()
|
|
29
39
|
</script>
|
|
30
40
|
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
<div class={['empty-error', className]} data-tone="danger" role="alert" {...rest}>
|
|
42
|
+
<span class="icon-slot"><Icon name="warning" size="lg" /></span>
|
|
43
|
+
<span class="rule" aria-hidden="true"></span>
|
|
44
|
+
<div class="text">
|
|
45
|
+
<svelte:element this={`h${level}`} class="title">{title}</svelte:element>
|
|
46
|
+
{#if message}<p>{message}</p>{/if}
|
|
47
|
+
{#if onretry || children}
|
|
48
|
+
<div class="actions">
|
|
49
|
+
{#if onretry}<Button icon="refresh" onclick={onretry}>{retryLabel}</Button>{/if}
|
|
50
|
+
{@render children?.()}
|
|
51
|
+
</div>
|
|
52
|
+
{/if}
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
39
55
|
|
|
40
56
|
<style>
|
|
57
|
+
.empty-error {
|
|
58
|
+
width: fit-content;
|
|
59
|
+
max-width: 480px;
|
|
60
|
+
margin: 48px auto;
|
|
61
|
+
display: grid;
|
|
62
|
+
grid-template-columns: auto 1px minmax(0, 1fr);
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: var(--space-5);
|
|
65
|
+
text-align: start;
|
|
66
|
+
}
|
|
67
|
+
.icon-slot {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
color: var(--tone, var(--muted));
|
|
70
|
+
}
|
|
71
|
+
.icon-slot :global(.icon) {
|
|
72
|
+
--icon-size: 40px;
|
|
73
|
+
}
|
|
74
|
+
.rule {
|
|
75
|
+
align-self: stretch;
|
|
76
|
+
background: var(--line-strong);
|
|
77
|
+
}
|
|
78
|
+
.text {
|
|
79
|
+
display: grid;
|
|
80
|
+
gap: 6px;
|
|
81
|
+
justify-items: start;
|
|
82
|
+
}
|
|
83
|
+
.title {
|
|
84
|
+
font: var(--w-semibold) 15px var(--font-display);
|
|
85
|
+
color: var(--fg);
|
|
86
|
+
}
|
|
87
|
+
p {
|
|
88
|
+
color: var(--muted);
|
|
89
|
+
}
|
|
41
90
|
.actions {
|
|
42
91
|
display: flex;
|
|
43
92
|
flex-wrap: wrap;
|
|
44
|
-
justify-content: center;
|
|
45
93
|
gap: var(--space-2);
|
|
94
|
+
margin-top: var(--space-1);
|
|
46
95
|
}
|
|
47
96
|
</style>
|
|
@@ -10,7 +10,8 @@ export default EmptyError;
|
|
|
10
10
|
* title: what failed, as an outcome ("Couldn't load …"). message: why, in words someone can act on (often the
|
|
11
11
|
* server's message). onretry: the retry; it may be async, and the button shows it working (Button). retryLabel:
|
|
12
12
|
* the button's label ("Try again"). level: as Empty's. children: more actions, after the retry.
|
|
13
|
-
*
|
|
13
|
+
* Laid out side by side: a large warning icon on the left, a vertical rule, then the title, message and actions,
|
|
14
|
+
* aligned left. It is an alert: read out when it appears, so someone who started the load hears that it failed.
|
|
14
15
|
* Other attributes (class, id…) and attachments go to the wrapper.
|
|
15
16
|
*/
|
|
16
17
|
export type Props = {
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* A list to tick values in (several, or one with `multiple={false}`), drawn flat to sit inside a floating panel: the
|
|
4
4
|
* value editor of a filter, the field list of FilterBar's add button, or any popover of your own. Each row has a check
|
|
5
|
-
* box, an optional icon (in a tone's colour) and a
|
|
5
|
+
* box (several) or, picking one, a solid brand fill on the picked row, an optional icon (in a tone's colour) and a
|
|
6
|
+
* muted hint on the right, such as how many items have that value.
|
|
6
7
|
* The ticked values move to the top, above a rule, when the list opens; ticking while it is open leaves the rows where
|
|
7
8
|
* they are, so the one under the pointer doesn't jump away.
|
|
8
9
|
*
|
|
@@ -79,9 +80,6 @@
|
|
|
79
80
|
const others = $derived(found.filter((o) => !pinned.has(o.value)))
|
|
80
81
|
const shown = $derived([...top, ...others])
|
|
81
82
|
const hasLead = $derived(!!lead || options.some((o) => o.icon))
|
|
82
|
-
// A single list marks its pick with a tick; with nothing picked (a list of things to pick from, such as FilterBar's
|
|
83
|
-
// fields), it has no tick column, so its rows don't start with an empty gap.
|
|
84
|
-
const hasTick = $derived(multiple || options.some((o) => o.value === value))
|
|
85
83
|
// The row holding the keyboard: back to the top whenever the search changes; on the picked one as a single list opens.
|
|
86
84
|
let active = $derived.by(() => {
|
|
87
85
|
void query
|
|
@@ -173,8 +171,6 @@
|
|
|
173
171
|
>
|
|
174
172
|
{#if multiple}
|
|
175
173
|
<span class="box" aria-hidden="true"><Icon name="checkBold" size="sm" /></span>
|
|
176
|
-
{:else if hasTick}
|
|
177
|
-
<span class="tick" aria-hidden="true">{#if isOn(o.value)}<Icon name="check" size="sm" />{/if}</span>
|
|
178
174
|
{/if}
|
|
179
175
|
{#if hasLead}
|
|
180
176
|
<span class="lead" data-tone={o.tone} aria-hidden="true">
|
|
@@ -186,7 +182,7 @@
|
|
|
186
182
|
</li>
|
|
187
183
|
{/snippet}
|
|
188
184
|
|
|
189
|
-
<div class={['option-list', className]} {...rest}>
|
|
185
|
+
<div class={['option-list', !multiple && 'single', className]} {...rest}>
|
|
190
186
|
{#if searchable}
|
|
191
187
|
<ListSearch
|
|
192
188
|
value={query}
|
|
@@ -204,7 +200,7 @@
|
|
|
204
200
|
<ul
|
|
205
201
|
id="{uid}-list"
|
|
206
202
|
bind:this={list}
|
|
207
|
-
class=
|
|
203
|
+
class={['list', !multiple && 'single']}
|
|
208
204
|
role="listbox"
|
|
209
205
|
aria-label={label}
|
|
210
206
|
aria-multiselectable={multiple || undefined}
|
|
@@ -263,10 +259,30 @@
|
|
|
263
259
|
.list:focus-visible .option.active {
|
|
264
260
|
box-shadow: inset 0 0 0 2px var(--accent);
|
|
265
261
|
}
|
|
262
|
+
/* Picking one, the picked row is solid brand (as Calendar's chosen day), its icon and hint in the same ink; with the
|
|
263
|
+
keyboard on it, a lighter brand line inside the edge keeps that visible. */
|
|
264
|
+
.single [aria-selected='true'],
|
|
265
|
+
.option-list.single:is(:focus-within, :hover) [aria-selected='true'].active {
|
|
266
|
+
background: var(--brand);
|
|
267
|
+
color: var(--accent-ink);
|
|
268
|
+
}
|
|
269
|
+
.single [aria-selected='true'] :is(.lead, .hint) {
|
|
270
|
+
color: inherit;
|
|
271
|
+
}
|
|
272
|
+
.single [aria-selected='true'] .hint {
|
|
273
|
+
opacity: 0.75;
|
|
274
|
+
}
|
|
275
|
+
.option-list.single:is(:focus-within, :hover) [aria-selected='true'].active {
|
|
276
|
+
box-shadow: inset 0 0 0 2px color-mix(in lch, var(--brand), var(--accent-ink) 45%);
|
|
277
|
+
}
|
|
278
|
+
.list.single:focus-visible [aria-selected='true'].active {
|
|
279
|
+
box-shadow:
|
|
280
|
+
inset 0 0 0 2px var(--accent),
|
|
281
|
+
inset 0 0 0 3px color-mix(in lch, var(--brand), var(--accent-ink) 45%);
|
|
282
|
+
}
|
|
266
283
|
/* The check box (Tile's): hidden on rows that are neither ticked nor under the pointer or keyboard, so the column of
|
|
267
284
|
empty boxes doesn't crowd the list; brand-filled with a tick once ticked. */
|
|
268
285
|
.box,
|
|
269
|
-
.tick,
|
|
270
286
|
.lead {
|
|
271
287
|
flex: none;
|
|
272
288
|
width: 16px;
|
|
@@ -305,10 +321,6 @@
|
|
|
305
321
|
opacity: 1;
|
|
306
322
|
scale: 1;
|
|
307
323
|
}
|
|
308
|
-
.tick {
|
|
309
|
-
display: inline-flex;
|
|
310
|
-
color: var(--accent);
|
|
311
|
-
}
|
|
312
324
|
.lead {
|
|
313
325
|
display: inline-flex;
|
|
314
326
|
color: var(--muted);
|
|
@@ -348,5 +360,9 @@
|
|
|
348
360
|
[aria-selected='true'] .box {
|
|
349
361
|
background: Highlight;
|
|
350
362
|
}
|
|
363
|
+
.single [aria-selected='true'] {
|
|
364
|
+
background: Highlight;
|
|
365
|
+
color: HighlightText;
|
|
366
|
+
}
|
|
351
367
|
}
|
|
352
368
|
</style>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
/** @param {PointerEvent} e */
|
|
42
42
|
function outside(e) {
|
|
43
43
|
const target = /** @type {Element} */ (e.target)
|
|
44
|
-
if (panel?.contains(target) || anchor?.contains(target) || target.closest?.('.ctx-menu, .tooltip')) return
|
|
44
|
+
if (panel?.contains(target) || anchor?.contains(target) || target.closest?.('.ctx-menu, .tooltip, [data-floating]')) return
|
|
45
45
|
onclose(false)
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -17,6 +17,7 @@ declare const _default: {
|
|
|
17
17
|
image: string;
|
|
18
18
|
arrowLeft: string;
|
|
19
19
|
arrowRight: string;
|
|
20
|
+
arrowUp: string;
|
|
20
21
|
arrowDown: string;
|
|
21
22
|
undo: string;
|
|
22
23
|
plus: string;
|
|
@@ -40,6 +41,8 @@ declare const _default: {
|
|
|
40
41
|
prohibit: string;
|
|
41
42
|
checkBold: string;
|
|
42
43
|
xBold: string;
|
|
44
|
+
arrowUpBold: string;
|
|
45
|
+
arrowDownBold: string;
|
|
43
46
|
refresh: string;
|
|
44
47
|
spinner: string;
|
|
45
48
|
checkCircle: string;
|
package/dist/components/icons.js
CHANGED
|
@@ -21,6 +21,7 @@ export default {
|
|
|
21
21
|
image: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"/></svg>',
|
|
22
22
|
arrowLeft: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"/></svg>',
|
|
23
23
|
arrowRight: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"/></svg>',
|
|
24
|
+
arrowUp: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"/></svg>',
|
|
24
25
|
arrowDown: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"/></svg>',
|
|
25
26
|
undo: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"/></svg>',
|
|
26
27
|
plus: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"/></svg>',
|
|
@@ -44,6 +45,8 @@ export default {
|
|
|
44
45
|
prohibit: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.56,87.56,0,0,1-20.41,56.28L71.72,60.4A88,88,0,0,1,216,128ZM40,128A87.56,87.56,0,0,1,60.41,71.72L184.28,195.6A88,88,0,0,1,40,128Z"/></svg>',
|
|
45
46
|
checkBold: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"/></svg>',
|
|
46
47
|
xBold: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"/></svg>',
|
|
48
|
+
arrowUpBold: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"/></svg>',
|
|
49
|
+
arrowDownBold: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"/></svg>',
|
|
47
50
|
refresh: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"/></svg>',
|
|
48
51
|
spinner: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"/></svg>',
|
|
49
52
|
checkCircle: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"/></svg>',
|