@apliteni/apliteni-ui 0.190.0 → 0.194.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/docs/components.md +89 -9
- package/docs/foundations.md +2 -0
- package/guidelines/INDEX.md +2 -0
- package/guidelines/accessibility-floor.md +1 -1
- package/guidelines/stat-bands.md +5 -5
- package/guidelines/three-column-page.md +37 -0
- package/guidelines/wizard.md +49 -0
- package/package.json +1 -1
- package/react/dist/index.css +308 -2
- package/react/dist/index.d.ts +70 -3
- package/react/dist/index.js +622 -437
- package/src/styles/card.css +2 -2
- package/src/styles/layout.css +8 -4
- package/src/styles/stat.css +13 -8
- package/src/styles/tap-zone.css +4 -4
package/README.md
CHANGED
|
@@ -150,10 +150,9 @@ npm test && npm test -w react && npm run build-storybook && node site/build.mjs
|
|
|
150
150
|
|
|
151
151
|
Run the final command before opening a PR.
|
|
152
152
|
|
|
153
|
-
Add a general, composable kit component only when
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
rules. If any condition is missing, compose the UI from existing components and add a
|
|
153
|
+
Add a general, composable kit component only when both conditions are true: existing
|
|
154
|
+
components cannot provide it without copying markup or logic, and it contains no
|
|
155
|
+
domain-specific data or rules. If any condition is missing, compose the UI from existing components and add a
|
|
157
156
|
Storybook showcase.
|
|
158
157
|
|
|
159
158
|
To add a component, put its token-based CSS in `src/styles/`. Include that CSS in
|
package/docs/components.md
CHANGED
|
@@ -87,6 +87,7 @@ what the user sees.
|
|
|
87
87
|
| A section list outside `AppShell` | `SidebarNav` | [Sidebar navigation](#sidebar-navigation) |
|
|
88
88
|
| The product band of a marketing page | `TopBar` | [Top bar](#top-bar) |
|
|
89
89
|
| A sign-in page | `AuthShell` | [Auth shell](#auth-shell) |
|
|
90
|
+
| A list, its ordered steps and the work of the open step | `ThreeColumnPage` | [Three-column page](#three-column-page) |
|
|
90
91
|
| A site or app footer | `Footer` | [Footer](#footer) |
|
|
91
92
|
| Run an action | `Button` | [Button](#button) |
|
|
92
93
|
| An action that the user cannot undo | `Button hold` | [Hold to confirm](#hold-to-confirm) |
|
|
@@ -111,6 +112,7 @@ what the user sees.
|
|
|
111
112
|
| A list, a table or a page with nothing in it | `EmptyState` | [Empty state](#empty-state) |
|
|
112
113
|
| Code that the user reads or copies | `Snippet` | [Snippet](#snippet) |
|
|
113
114
|
| The history of a record | `Timeline` | [Timeline](#timeline) |
|
|
115
|
+
| Ordered steps with a final action | `Wizard` | [Wizard](#wizard) |
|
|
114
116
|
| A line glyph | `Icon` | [Icon](#icon) |
|
|
115
117
|
| A form or a question over the page | `Modal` | [Modal](#modal) |
|
|
116
118
|
| Stop before a destructive action | `Confirm` | [Confirm](#confirm) |
|
|
@@ -154,8 +156,9 @@ its default is `apliteni-ui`, so set it. `brand` replaces the mark, and `brandHr
|
|
|
154
156
|
the search trigger, the command palette and the theme switch. `layout="rail"` has only the side
|
|
155
157
|
rail, with the sections and the account at its foot. The rail layout has no search trigger, no
|
|
156
158
|
command palette, no Cmd+K, no theme switch, no section counts, and takes no `bandControl` and no
|
|
157
|
-
`headControl`. `width="wide"` removes the limit on the content column. `
|
|
158
|
-
|
|
159
|
+
`headControl`. `width="wide"` removes the limit on the content column. `width="full"` also
|
|
160
|
+
removes the content column's padding, for a page whose parts reach its edges, and in the topbar
|
|
161
|
+
layout with a sidebar it puts `title` in the band as the page's `h1`, with `tools` after it. `centered` is the default.
|
|
159
162
|
|
|
160
163
|
**The title row.** `title` is the page's one `h1`. `lede` is one line under it. `tools` puts small
|
|
161
164
|
tools for the whole page at the end of the title row, such as a version badge, a period picker or
|
|
@@ -315,6 +318,43 @@ ground above the card and centres the title with a line under it. The ground is
|
|
|
315
318
|
<AuthShell split tagline="Access the design system with your work account." brand={logo}><SignInForm /></AuthShell>
|
|
316
319
|
```
|
|
317
320
|
|
|
321
|
+
### Three-column page
|
|
322
|
+
|
|
323
|
+
Use `ThreeColumnPage` when a list chooses a record, the record has ordered steps, and the open
|
|
324
|
+
step has rows to work on. Put it in `AppShell` with `width="full"`, so its separators reach the
|
|
325
|
+
band and the page's edges. Give the page a static `title` on `AppShell`, which the band shows.
|
|
326
|
+
Give the `ThreeColumnPage` no `title`.
|
|
327
|
+
|
|
328
|
+
```tsx
|
|
329
|
+
<AppShell width="full" title="Reconciliation" sections={sections} pathname="/close" account={account} onSignOut={signOut}>
|
|
330
|
+
<ThreeColumnPage
|
|
331
|
+
nav={{ title: '2026', link: 'Months', children: <MonthList /> }}
|
|
332
|
+
steps={{ title: 'Month checks', link: 'Checks', children: <Wizard {...checks} /> }}
|
|
333
|
+
work={{ title: 'Sources', link: 'Rows', children: <RowsTable /> }} />
|
|
334
|
+
</AppShell>
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
`title` and `tools` put an `h1` and small tools at the top of the flow half, for a page in a
|
|
338
|
+
padded `AppShell`. Each area takes a `title`, which is its `h2`, the `link` words that open it on a tablet or a
|
|
339
|
+
phone, and its `children`. `view`, `defaultView` and `onViewChange` set the open view. The default
|
|
340
|
+
view is `steps`.
|
|
341
|
+
|
|
342
|
+
**What the user sees.**
|
|
343
|
+
|
|
344
|
+
- Above 860px, the flow half holds the list and the steps. It takes 41% of the page
|
|
345
|
+
and at most 560px. The list takes one third of it, and the steps take two thirds. The list
|
|
346
|
+
never cuts a month's name. When the list and the steps cannot both fit, for example at 984px
|
|
347
|
+
or with large text, the steps go under the list. The work half takes the rest. A 1px `--border` line stands between the list and the steps, and another between
|
|
348
|
+
the halves. Both halves stand on the page ground, with no card.
|
|
349
|
+
- At 860px and below, for example at 820px, the list is its own view, the steps stand above the
|
|
350
|
+
work, and Months, Checks and Rows links stand at the top of the flow half. The first link's
|
|
351
|
+
words start where the band's title starts.
|
|
352
|
+
- At 560px and below, for example at 390px, each area is its own view. The steps open first.
|
|
353
|
+
|
|
354
|
+
**Keyboard and screen reader.** Each area is a region named by its heading. A link is a button
|
|
355
|
+
with `aria-pressed`, and a press moves the focus to the heading of its area. On a touch phone each
|
|
356
|
+
link is a 44px target.
|
|
357
|
+
|
|
318
358
|
### Footer
|
|
319
359
|
|
|
320
360
|
Use `Footer` at the end of a site page or an app page. `variant` is `full`, `slim` or `app`.
|
|
@@ -989,6 +1029,39 @@ Use `Timeline` for the history of one record, such as who changed an invoice and
|
|
|
989
1029
|
The events show from oldest to newest. Only the marker of the last event is filled. An event can
|
|
990
1030
|
have `kind`, `meta` and `undo`. A new event in a list that is not empty plays an entrance.
|
|
991
1031
|
|
|
1032
|
+
### Wizard
|
|
1033
|
+
|
|
1034
|
+
Use `Wizard` for ordered steps that end in one final action, such as the checks before a month
|
|
1035
|
+
closes. Read the [Wizard guideline](../guidelines/wizard.md) for when to use it.
|
|
1036
|
+
|
|
1037
|
+
```tsx
|
|
1038
|
+
<Wizard label="Month checks" steps={[
|
|
1039
|
+
{ id: 'sources', label: 'Sources', state: 'done' },
|
|
1040
|
+
{ id: 'documents', label: 'Documents', state: 'blocked', content: <><p>A receipt is missing.</p><Button>Add</Button></> },
|
|
1041
|
+
]} final={{ label: 'Finish', action: 'Close month', onAction: close, reason: 'Complete all checks to close this month.' }} />
|
|
1042
|
+
```
|
|
1043
|
+
|
|
1044
|
+
A step's `state` is `done`, `current`, `blocked` or `to do` (`todo`). The final step's state comes
|
|
1045
|
+
from the steps before it. Its action stays off, with `reason` above it, until each earlier step is
|
|
1046
|
+
done. `final.done` marks the final step done and removes its action. One step is open. Without
|
|
1047
|
+
`open`, the wizard opens the first current or blocked step, and it follows that step when it
|
|
1048
|
+
moves on. `onOpenChange` reports each change. Give a done step no content that only says it is
|
|
1049
|
+
done: the mark and the word say it.
|
|
1050
|
+
|
|
1051
|
+
**What the user sees.** The open step stands on the kit's selected-control tint, with no edge and
|
|
1052
|
+
no outline. To do is an empty grey circle, current is an accent circle with a dot, done
|
|
1053
|
+
is a grey circle with a green check, and blocked is an alert circle in the danger ink. The state's
|
|
1054
|
+
word stands under the step's name, so no state rests on colour alone.
|
|
1055
|
+
|
|
1056
|
+
**Keyboard and screen reader.** The steps are an ordered list. Each step is a button named "2.
|
|
1057
|
+
Documents, Blocked, step 2 of 5", so the name starts with the words on screen. It has
|
|
1058
|
+
`aria-expanded` and `aria-controls` for its content. The step to
|
|
1059
|
+
work on has `aria-current="step"`. Up and Down move the focus between the steps and wrap, and Home
|
|
1060
|
+
and End go to the first and the last step. Enter and Space open a step. When the step to work on
|
|
1061
|
+
moves on, the focus goes to it if the focus was in the wizard or on the page body. When an action
|
|
1062
|
+
in the wizard goes away with the focus on it, such as the final action, the focus goes to the open
|
|
1063
|
+
step.
|
|
1064
|
+
|
|
992
1065
|
### Icon
|
|
993
1066
|
|
|
994
1067
|
Use `Icon` for a line glyph beside words. Use `Button icon` for a glyph in a button.
|
|
@@ -1114,9 +1187,9 @@ itself: the readout then adds no Tab stop and no description.
|
|
|
1114
1187
|
|
|
1115
1188
|
**What the user sees.** A pointer that rests for 300ms opens the readout, and it closes at once when
|
|
1116
1189
|
the pointer leaves. Within 300ms after one closes, the next opens at once. The readout is in the
|
|
1117
|
-
top layer, over a sticky cell. It stays inside the viewport
|
|
1118
|
-
never moves anything else on the page. On a touch screen, a tap
|
|
1119
|
-
also run the mark's action.
|
|
1190
|
+
top layer, over a sticky cell. It stays inside the viewport, at least 8px from each edge, and moves
|
|
1191
|
+
with a scroll or a resize. It never moves anything else on the page. On a touch screen, a tap
|
|
1192
|
+
opens the readout and does not also run the mark's action.
|
|
1120
1193
|
|
|
1121
1194
|
**Keyboard and screen reader.** Keyboard focus opens the readout at once, and the trigger gets it
|
|
1122
1195
|
as its description. Escape closes only the readout and keeps the focus on the trigger. The next
|
|
@@ -1246,17 +1319,24 @@ All figures read at one size.
|
|
|
1246
1319
|
change shows an arrow from the sign that you print, and its colour follows your `tone` only. A
|
|
1247
1320
|
figure with nothing to compare shows no change row, never `+0%`. A figure shows at most one line
|
|
1248
1321
|
under its value. A row of tiles keeps a soft line around each tile, also on the light page where a
|
|
1249
|
-
lone card draws none. An open band draws a
|
|
1250
|
-
|
|
1322
|
+
lone card draws none. An open band draws no rule over a figure, on a page or in a card: space and
|
|
1323
|
+
the value divide the figures. On the light page it also draws a vertical soft line between figures
|
|
1324
|
+
in a row, and none where the figures fold onto a new row. Use a caption only for a unit, a period or a limit that the figure cannot say.
|
|
1251
1325
|
`trend` is a slot for a small chart, such as a `Chart variant="spark"`.
|
|
1252
1326
|
|
|
1253
1327
|
**Say what a change compares with.** Put it once for the band in `basis`, or with `basisId` point
|
|
1254
1328
|
at text before the figures. A caption comes before the figures. A hover `title` does not count.
|
|
1255
|
-
When a period control already states the window, do not repeat it.
|
|
1329
|
+
When a period control already states the window, do not repeat it. To show no caption, put the basis
|
|
1330
|
+
in the `tooltip` of each `delta`, and with `basisId` point at screen-reader-only text that says it.
|
|
1331
|
+
The arrow and the change are one target, so the tooltip opens from either on hover, focus and tap.
|
|
1332
|
+
On a touch phone, the change is a 44 by 44px target in the layout, in every variant and
|
|
1333
|
+
container. The figure is taller there by the difference. With a mouse, the figure keeps its size.
|
|
1256
1334
|
|
|
1257
1335
|
**Room on the screen.** A band folds by its own width, not the window's, so give it a width in a
|
|
1258
1336
|
flex row or an `auto` grid track. On a page, a `StatBand` closes a section, so the block after it
|
|
1259
|
-
keeps one group gap of air below the figures, on top of the body's own gap.
|
|
1337
|
+
keeps one group gap of air below the figures, on top of the body's own gap. A toolbar directly before
|
|
1338
|
+
an open band keeps 24px to the figure labels, in the page body and in a card stack, also on a touch
|
|
1339
|
+
phone.
|
|
1260
1340
|
|
|
1261
1341
|
| Layout | Four fold two by two at | An odd count stacks at | One column at | Smaller value below |
|
|
1262
1342
|
|---|---|---|---|---|
|
package/docs/foundations.md
CHANGED
|
@@ -498,6 +498,8 @@ or a dense table's action cell opens across. Some families get no layer. The Acc
|
|
|
498
498
|
minimums page names all of them. Rows that share an edge have no space outside a row for a
|
|
499
499
|
layer. `input`, `select` and `textarea` generate no pseudo-element and use their own height.
|
|
500
500
|
A back link draws 32 high, and its layer reaches 6 above and 6 below it to make 44.
|
|
501
|
+
A stat band's change with a tooltip has no layer. On a touch phone it is a 44 by 44 target
|
|
502
|
+
in the layout, so its figure is taller there.
|
|
501
503
|
|
|
502
504
|
The whole system applies only below 560px with a coarse pointer, because a coarse pointer has
|
|
503
505
|
no hover. `--tap-min` is a token, and you can move it.
|
package/guidelines/INDEX.md
CHANGED
|
@@ -32,4 +32,6 @@ Each row names one guideline page, the screen parts it covers, and when to read
|
|
|
32
32
|
| [Account and settings](account-and-settings.md) | The account window, the account menu and settings rows. | Read it before you build the account menu or settings. |
|
|
33
33
|
| [Notifications](notifications.md) | The bell, its unread count, read state and a failed load. | Read it before you build a bell or a notifications list. |
|
|
34
34
|
| [Session expired](session-expired.md) | A session-ended dialog, its page state and its lasting sign-in notice. | Read it before you handle an ended session. |
|
|
35
|
+
| [Three-column page](three-column-page.md) | A list, its ordered steps and the work of the open step, with the widths and the collapse order. | Read it before you put steps beside a list. |
|
|
36
|
+
| [Wizard](wizard.md) | Ordered steps, their states, the open step and the final action. | Read it before you build ordered steps. |
|
|
35
37
|
| [Guidelines](overview.md) | No screen parts. The file holds only the collection heading. | Read it only for the heading. The six-card overview is in Storybook, not in the package. |
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
**Don't:** Grow the drawn control to 44 and push out every row that holds one.
|
|
26
26
|
|
|
27
|
-
**Except:** Only a coarse pointer gets the layer, or a cursor lights a control it is not over. Rows that share an edge
|
|
27
|
+
**Except:** Only a coarse pointer gets the layer, or a cursor lights a control it is not over. Rows that share an edge, such as a menu, a dense table or a settings list, stay as drawn. A field has no layer and reaches the floor by its own height. A stat band's change grows to 44 in its row.
|
|
28
28
|
|
|
29
29
|
## Space between small targets
|
|
30
30
|
|
package/guidelines/stat-bands.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
**Why:** A shared layout puts every figure's value, change and basis in the same place.
|
|
10
10
|
|
|
11
|
-
**Do:** One card per figure: one size, a soft line each, arrow, signed change,
|
|
11
|
+
**Do:** One card per figure: one size, a soft line each, arrow, signed change, basis in a tooltip.
|
|
12
12
|
|
|
13
13
|
**Don't:** Heading-sized figures, a capitalised 10px status chip, no comparison basis.
|
|
14
14
|
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
|
|
31
31
|
<!-- rule: say-the-basis -->
|
|
32
32
|
|
|
33
|
-
**Rule:** State
|
|
33
|
+
**Rule:** State what each change is measured against, in reachable text or in its tooltip.
|
|
34
34
|
|
|
35
35
|
**Why:** Percentages need a basis that readers can find.
|
|
36
36
|
|
|
37
|
-
**Except:**
|
|
37
|
+
**Except:** The basis may be screen-reader-only when a tooltip on each change shows it, or, on a dashboard, when a visible control names the period.
|
|
38
38
|
|
|
39
|
-
**Do:**
|
|
39
|
+
**Do:** Each change's tooltip and screen-reader text state the basis, and one exception states its own.
|
|
40
40
|
|
|
41
|
-
**Don't:**
|
|
41
|
+
**Don't:** Percentages that no text or tooltip explains.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Three-column page
|
|
2
|
+
|
|
3
|
+
## Use three columns for steps over a list
|
|
4
|
+
|
|
5
|
+
<!-- rule: three-columns -->
|
|
6
|
+
|
|
7
|
+
**Rule:** Put a list, its ordered steps and the work of the open step on one three-column page.
|
|
8
|
+
|
|
9
|
+
**Why:** The reader sees the record, the next step and its rows together.
|
|
10
|
+
|
|
11
|
+
**Do:** Show the months, the month's checks and the rows of the open check.
|
|
12
|
+
|
|
13
|
+
**Don't:** Open the checks in a drawer over the rows.
|
|
14
|
+
|
|
15
|
+
## Keep the work half wide
|
|
16
|
+
|
|
17
|
+
<!-- rule: column-widths -->
|
|
18
|
+
|
|
19
|
+
**Rule:** Give the list and the steps one half of at most 560px, and give the work half the rest.
|
|
20
|
+
|
|
21
|
+
**Why:** The rows need the room, and the steps read best as a short column.
|
|
22
|
+
|
|
23
|
+
**Do:** Give the list a third and the steps the rest, or stack them when names cannot fit.
|
|
24
|
+
|
|
25
|
+
**Don't:** Split the page into three equal columns.
|
|
26
|
+
|
|
27
|
+
## Collapse in order
|
|
28
|
+
|
|
29
|
+
<!-- rule: collapse-order -->
|
|
30
|
+
|
|
31
|
+
**Rule:** At 820px, show the list as its own view and the steps above the work; at 390px, show one area at a time and open on the steps.
|
|
32
|
+
|
|
33
|
+
**Why:** The steps are the reader's place in the task, so they stay first.
|
|
34
|
+
|
|
35
|
+
**Do:** Put Months, Checks and Rows links under the title.
|
|
36
|
+
|
|
37
|
+
**Don't:** Squeeze three columns onto a phone.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Wizard
|
|
2
|
+
|
|
3
|
+
## Show each step's state
|
|
4
|
+
|
|
5
|
+
<!-- rule: step-states -->
|
|
6
|
+
|
|
7
|
+
**Rule:** Give each step one of four states, done, current, blocked or to do, with a mark and a word.
|
|
8
|
+
|
|
9
|
+
**Why:** A shape and a word keep the state clear without colour.
|
|
10
|
+
|
|
11
|
+
**Do:** Show a check in a grey circle and the word Done, with no text that says the step is complete.
|
|
12
|
+
|
|
13
|
+
**Don't:** Show the state with colour alone.
|
|
14
|
+
|
|
15
|
+
## Open one step
|
|
16
|
+
|
|
17
|
+
<!-- rule: one-open -->
|
|
18
|
+
|
|
19
|
+
**Rule:** Keep one step open, and open the step to work on first.
|
|
20
|
+
|
|
21
|
+
**Why:** The reader sees one step's words and action at a time.
|
|
22
|
+
|
|
23
|
+
**Do:** Open the next step when the reader finishes a step.
|
|
24
|
+
|
|
25
|
+
**Don't:** Open every step at once.
|
|
26
|
+
|
|
27
|
+
## Say why the final action waits
|
|
28
|
+
|
|
29
|
+
<!-- rule: final-action -->
|
|
30
|
+
|
|
31
|
+
**Rule:** Keep the final action off until each earlier step is done, and say why above it.
|
|
32
|
+
|
|
33
|
+
**Why:** An action that is off does not tell the reader what to finish.
|
|
34
|
+
|
|
35
|
+
**Do:** Write "Complete all four checks to close this month." above Close month.
|
|
36
|
+
|
|
37
|
+
**Don't:** Hide Close month until the checks are done.
|
|
38
|
+
|
|
39
|
+
## Name what blocks a step
|
|
40
|
+
|
|
41
|
+
<!-- rule: blocked-reason -->
|
|
42
|
+
|
|
43
|
+
**Rule:** Say what blocks a step, and give the action that removes the block.
|
|
44
|
+
|
|
45
|
+
**Why:** The word Blocked alone does not tell the reader what to do.
|
|
46
|
+
|
|
47
|
+
**Do:** Write "The receipt from Cedar Tools is missing." with an Add button.
|
|
48
|
+
|
|
49
|
+
**Don't:** Show Blocked with no reason.
|
package/package.json
CHANGED
package/react/dist/index.css
CHANGED
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
.ui-toolbar--split .ui-filter-bar {
|
|
85
85
|
column-gap: calc(var(--tap-gap) + var(--space-1) + 1px) !important;
|
|
86
86
|
}
|
|
87
|
-
:is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) {
|
|
88
|
-
margin-bottom: calc(var(--tap-gap) - var(--
|
|
87
|
+
:is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child, :has(+ .ui-stats--open)) {
|
|
88
|
+
margin-bottom: calc(var(--tap-gap) - var(--ui-block-gap, 0px)) !important;
|
|
89
89
|
}
|
|
90
90
|
.ui-stack > .ui-toolbar:not(:last-child) {
|
|
91
91
|
margin-bottom: var(--tap-gap) !important;
|
|
@@ -863,6 +863,110 @@
|
|
|
863
863
|
animation: m-scale-in var(--dur-med) var(--ease-out) var(--delay-1) both;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
+
/* src/Wizard.css */
|
|
867
|
+
.ui-wizard {
|
|
868
|
+
display: flex;
|
|
869
|
+
flex-direction: column;
|
|
870
|
+
gap: var(--space-2);
|
|
871
|
+
margin: 0;
|
|
872
|
+
padding: 0;
|
|
873
|
+
list-style: none;
|
|
874
|
+
font-family: var(--font-sans);
|
|
875
|
+
}
|
|
876
|
+
.ui-wizard .ui-wizard__step {
|
|
877
|
+
display: grid;
|
|
878
|
+
grid-template-columns: var(--space-6) minmax(0, 1fr);
|
|
879
|
+
gap: var(--space-2);
|
|
880
|
+
align-items: start;
|
|
881
|
+
color: var(--text);
|
|
882
|
+
}
|
|
883
|
+
.ui-wizard .ui-wizard__step.is-active {
|
|
884
|
+
background: color-mix(in srgb, var(--accent) 14%, var(--surface));
|
|
885
|
+
}
|
|
886
|
+
.ui-wizard__text {
|
|
887
|
+
display: flex;
|
|
888
|
+
flex-direction: column;
|
|
889
|
+
min-width: 0;
|
|
890
|
+
overflow-wrap: anywhere;
|
|
891
|
+
}
|
|
892
|
+
.ui-wizard__state {
|
|
893
|
+
font-size: var(--text-sm);
|
|
894
|
+
font-weight: var(--weight-normal);
|
|
895
|
+
}
|
|
896
|
+
.ui-wizard__mark {
|
|
897
|
+
box-sizing: border-box;
|
|
898
|
+
display: grid;
|
|
899
|
+
place-items: center;
|
|
900
|
+
width: var(--space-4);
|
|
901
|
+
height: var(--space-4);
|
|
902
|
+
margin: calc((var(--space-6) - var(--space-4)) / 2);
|
|
903
|
+
border-radius: 50%;
|
|
904
|
+
}
|
|
905
|
+
.ui-wizard__mark--todo {
|
|
906
|
+
border: 1.5px solid var(--muted);
|
|
907
|
+
}
|
|
908
|
+
.ui-wizard__mark--current {
|
|
909
|
+
border: 1.5px solid var(--accent);
|
|
910
|
+
}
|
|
911
|
+
.ui-wizard__mark--current::after {
|
|
912
|
+
content: "";
|
|
913
|
+
width: var(--space-1);
|
|
914
|
+
height: var(--space-1);
|
|
915
|
+
border-radius: 50%;
|
|
916
|
+
background: var(--accent);
|
|
917
|
+
}
|
|
918
|
+
.ui-wizard__mark--done {
|
|
919
|
+
background: var(--chip-neutral-fill);
|
|
920
|
+
color: var(--signal-solid-success);
|
|
921
|
+
}
|
|
922
|
+
.ui-wizard__mark--blocked {
|
|
923
|
+
color: var(--signal-solid-danger);
|
|
924
|
+
}
|
|
925
|
+
.ui-wizard__mark > span {
|
|
926
|
+
display: grid;
|
|
927
|
+
}
|
|
928
|
+
.ui-wizard__mark--done svg {
|
|
929
|
+
width: var(--space-3);
|
|
930
|
+
height: var(--space-3);
|
|
931
|
+
stroke-width: 3;
|
|
932
|
+
}
|
|
933
|
+
.ui-wizard__mark--blocked svg {
|
|
934
|
+
width: var(--space-5);
|
|
935
|
+
height: var(--space-5);
|
|
936
|
+
stroke-width: 1.8;
|
|
937
|
+
}
|
|
938
|
+
.ui-wizard__panel,
|
|
939
|
+
.ui-wizard__final {
|
|
940
|
+
display: flex;
|
|
941
|
+
flex-direction: column;
|
|
942
|
+
align-items: start;
|
|
943
|
+
gap: var(--space-2);
|
|
944
|
+
margin-inline: calc(var(--space-3) + var(--space-6) + var(--space-2)) var(--space-3);
|
|
945
|
+
padding-block: var(--space-2);
|
|
946
|
+
}
|
|
947
|
+
.ui-wizard__panel[hidden] {
|
|
948
|
+
display: none;
|
|
949
|
+
}
|
|
950
|
+
.ui-wizard__panel:empty {
|
|
951
|
+
display: none;
|
|
952
|
+
}
|
|
953
|
+
.ui-wizard__panel p,
|
|
954
|
+
.ui-wizard__reason {
|
|
955
|
+
margin: 0;
|
|
956
|
+
max-width: var(--prose-caption);
|
|
957
|
+
color: var(--text);
|
|
958
|
+
font-size: var(--text-base);
|
|
959
|
+
line-height: 1.5;
|
|
960
|
+
}
|
|
961
|
+
@media (max-width: 560px) and (pointer: coarse) {
|
|
962
|
+
.ui-wizard,
|
|
963
|
+
.ui-wizard__panel,
|
|
964
|
+
.ui-wizard__final {
|
|
965
|
+
gap: var(--tap-gap);
|
|
966
|
+
--tap-clear-y: var(--tap-gap);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
866
970
|
/* src/Field.css */
|
|
867
971
|
.ui-field-number {
|
|
868
972
|
display: flex;
|
|
@@ -1350,6 +1454,30 @@
|
|
|
1350
1454
|
.ui-react-app__title {
|
|
1351
1455
|
display: none;
|
|
1352
1456
|
}
|
|
1457
|
+
.ui-react-app .ui-app__main--full {
|
|
1458
|
+
max-width: none;
|
|
1459
|
+
padding: 0;
|
|
1460
|
+
display: flex;
|
|
1461
|
+
flex: 1 1 auto;
|
|
1462
|
+
flex-direction: column;
|
|
1463
|
+
}
|
|
1464
|
+
.ui-react-app .ui-app__main--full > .ui-app__body {
|
|
1465
|
+
flex: 1 1 auto;
|
|
1466
|
+
}
|
|
1467
|
+
.ui-react-app .ui-app__bar:has(> .ui-react-app__title--page) + .ui-app__main--full {
|
|
1468
|
+
--ui-app-title-inset: clamp(24px, 4vw, 56px);
|
|
1469
|
+
}
|
|
1470
|
+
.ui-react-app h1.ui-react-app__title--page {
|
|
1471
|
+
display: block;
|
|
1472
|
+
min-width: 0;
|
|
1473
|
+
margin: 0;
|
|
1474
|
+
overflow: hidden;
|
|
1475
|
+
text-overflow: ellipsis;
|
|
1476
|
+
white-space: nowrap;
|
|
1477
|
+
font: inherit;
|
|
1478
|
+
color: var(--strong);
|
|
1479
|
+
font-weight: var(--weight-semibold);
|
|
1480
|
+
}
|
|
1353
1481
|
@media (min-width: 721px) {
|
|
1354
1482
|
.ui-react-app .ui-app__bar:has(> .ui-react-app__title) .ui-app__search {
|
|
1355
1483
|
margin-inline: auto;
|
|
@@ -1359,6 +1487,9 @@
|
|
|
1359
1487
|
}
|
|
1360
1488
|
}
|
|
1361
1489
|
@media (max-width: 720px) {
|
|
1490
|
+
.ui-react-app .ui-app__bar:has(> .ui-react-app__title--page) + .ui-app__main--full {
|
|
1491
|
+
--ui-app-title-inset: calc(var(--space-2) + 44px + var(--space-3));
|
|
1492
|
+
}
|
|
1362
1493
|
.ui-react-app .ui-app__bar:has(> .ui-app__menu:last-child) {
|
|
1363
1494
|
padding-inline: var(--space-2);
|
|
1364
1495
|
}
|
|
@@ -1399,6 +1530,12 @@
|
|
|
1399
1530
|
.ui-react-app .ui-app__bar {
|
|
1400
1531
|
--tap-clear-x: 0px;
|
|
1401
1532
|
}
|
|
1533
|
+
.ui-react-app .ui-app__bar:has(> .ui-react-app__title--page) + .ui-app__main--full {
|
|
1534
|
+
--ui-app-title-inset: calc(var(--space-2) + 40px);
|
|
1535
|
+
}
|
|
1536
|
+
.ui-react-app .ui-app__bar > .ui-react-app__band-tools {
|
|
1537
|
+
--tap-clear-x: 0px;
|
|
1538
|
+
}
|
|
1402
1539
|
.ui-react-app .ui-app__bar--phone {
|
|
1403
1540
|
gap: var(--space-3);
|
|
1404
1541
|
--tap-clear-x: var(--space-3);
|
|
@@ -1553,6 +1690,175 @@
|
|
|
1553
1690
|
display: flex;
|
|
1554
1691
|
}
|
|
1555
1692
|
|
|
1693
|
+
/* src/ThreeColumnPage.css */
|
|
1694
|
+
.ui-columns {
|
|
1695
|
+
--ui-columns-edge: var(--space-6);
|
|
1696
|
+
display: grid;
|
|
1697
|
+
grid-template-columns: minmax(0, min(var(--panel-lg), 41%)) minmax(0, 1fr);
|
|
1698
|
+
flex: 1 1 auto;
|
|
1699
|
+
min-width: 0;
|
|
1700
|
+
}
|
|
1701
|
+
.ui-columns__flow {
|
|
1702
|
+
display: flex;
|
|
1703
|
+
flex-direction: column;
|
|
1704
|
+
gap: var(--space-8);
|
|
1705
|
+
min-width: 0;
|
|
1706
|
+
padding: var(--space-10) var(--space-6) 0 var(--ui-columns-edge, var(--space-6));
|
|
1707
|
+
}
|
|
1708
|
+
.ui-columns__head {
|
|
1709
|
+
display: flex;
|
|
1710
|
+
flex-wrap: wrap;
|
|
1711
|
+
align-items: center;
|
|
1712
|
+
gap: var(--space-2) var(--space-4);
|
|
1713
|
+
}
|
|
1714
|
+
.ui-columns__head:not(:has(> h1)):not(:has(> .ui-app__tools)) {
|
|
1715
|
+
display: contents;
|
|
1716
|
+
}
|
|
1717
|
+
.ui-columns .ui-columns__head > h1 {
|
|
1718
|
+
flex: 1 1 auto;
|
|
1719
|
+
min-width: 0;
|
|
1720
|
+
margin: 0;
|
|
1721
|
+
}
|
|
1722
|
+
.ui-columns__views {
|
|
1723
|
+
display: none;
|
|
1724
|
+
flex-basis: 100%;
|
|
1725
|
+
flex-wrap: wrap;
|
|
1726
|
+
gap: var(--space-2);
|
|
1727
|
+
margin-inline-start: calc(var(--ui-app-title-inset, var(--ui-columns-edge, var(--space-6))) - var(--ui-columns-edge, var(--space-6)) - var(--space-3));
|
|
1728
|
+
}
|
|
1729
|
+
.ui-columns__views > .ui-nav__item {
|
|
1730
|
+
width: auto;
|
|
1731
|
+
}
|
|
1732
|
+
.ui-columns__pair {
|
|
1733
|
+
display: flex;
|
|
1734
|
+
flex-wrap: wrap;
|
|
1735
|
+
gap: var(--space-4);
|
|
1736
|
+
align-items: stretch;
|
|
1737
|
+
flex: 1 1 auto;
|
|
1738
|
+
margin-inline-start: calc(-1 * (var(--space-4) + 1px));
|
|
1739
|
+
clip-path: inset(0 0 0 calc(var(--space-4) + 1px));
|
|
1740
|
+
}
|
|
1741
|
+
.ui-columns__pair > .ui-columns__area--nav {
|
|
1742
|
+
flex: 1 1 0;
|
|
1743
|
+
min-width: max-content;
|
|
1744
|
+
}
|
|
1745
|
+
.ui-columns__pair > .ui-columns__area--steps {
|
|
1746
|
+
flex: 2 1 0;
|
|
1747
|
+
min-width: min(100%, calc(var(--panel-sm) * 5 / 8));
|
|
1748
|
+
}
|
|
1749
|
+
.ui-columns__area {
|
|
1750
|
+
display: flex;
|
|
1751
|
+
flex-direction: column;
|
|
1752
|
+
gap: var(--space-2);
|
|
1753
|
+
min-width: 0;
|
|
1754
|
+
}
|
|
1755
|
+
.ui-columns__pair > .ui-columns__area {
|
|
1756
|
+
padding-bottom: var(--space-10);
|
|
1757
|
+
}
|
|
1758
|
+
.ui-columns__area > h2 {
|
|
1759
|
+
margin: 0;
|
|
1760
|
+
scroll-margin-block-start: calc(var(--ui-app-band, 0px) + var(--space-4));
|
|
1761
|
+
}
|
|
1762
|
+
.ui-columns__pair > .ui-columns__area {
|
|
1763
|
+
padding-inline-start: var(--space-4);
|
|
1764
|
+
border-inline-start: 1px solid var(--border);
|
|
1765
|
+
}
|
|
1766
|
+
.ui-columns__area--work {
|
|
1767
|
+
align-self: stretch;
|
|
1768
|
+
padding: var(--space-10) var(--space-6);
|
|
1769
|
+
border-inline-start: 1px solid var(--border);
|
|
1770
|
+
}
|
|
1771
|
+
.ui-columns__area--nav.is-entering,
|
|
1772
|
+
.ui-columns__area--steps.is-entering,
|
|
1773
|
+
.ui-columns__area--work.is-entering {
|
|
1774
|
+
animation: m-fade var(--dur-fast) var(--ease-out) both;
|
|
1775
|
+
}
|
|
1776
|
+
@media (max-width: 860px) {
|
|
1777
|
+
.ui-columns {
|
|
1778
|
+
--ui-columns-edge: var(--ui-app-title-inset, var(--space-6));
|
|
1779
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1780
|
+
align-content: start;
|
|
1781
|
+
}
|
|
1782
|
+
.ui-columns__flow {
|
|
1783
|
+
padding-inline-end: var(--ui-columns-edge, var(--space-6));
|
|
1784
|
+
}
|
|
1785
|
+
.ui-columns__views {
|
|
1786
|
+
display: flex;
|
|
1787
|
+
}
|
|
1788
|
+
.ui-columns__pair {
|
|
1789
|
+
margin-inline-start: 0;
|
|
1790
|
+
clip-path: none;
|
|
1791
|
+
}
|
|
1792
|
+
.ui-columns__pair > .ui-columns__area {
|
|
1793
|
+
padding-bottom: 0;
|
|
1794
|
+
padding-inline-start: 0;
|
|
1795
|
+
border-inline-start: 0;
|
|
1796
|
+
}
|
|
1797
|
+
.ui-columns__area--nav {
|
|
1798
|
+
display: none;
|
|
1799
|
+
}
|
|
1800
|
+
.ui-columns__area--steps {
|
|
1801
|
+
max-width: var(--panel-sm);
|
|
1802
|
+
}
|
|
1803
|
+
.ui-columns__area--work {
|
|
1804
|
+
padding: var(--space-8) var(--ui-columns-edge, var(--space-6)) var(--space-10);
|
|
1805
|
+
border-inline-start: 0;
|
|
1806
|
+
}
|
|
1807
|
+
.ui-columns[data-view=nav] .ui-columns__area--nav {
|
|
1808
|
+
display: flex;
|
|
1809
|
+
}
|
|
1810
|
+
.ui-columns[data-view=nav] .ui-columns__area--steps,
|
|
1811
|
+
.ui-columns[data-view=nav] .ui-columns__area--work {
|
|
1812
|
+
display: none;
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
@media (max-width: 720px) {
|
|
1816
|
+
.ui-columns {
|
|
1817
|
+
--ui-columns-edge: var(--space-6);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
@media (max-width: 560px) {
|
|
1821
|
+
.ui-columns {
|
|
1822
|
+
--ui-columns-edge: var(--space-4);
|
|
1823
|
+
}
|
|
1824
|
+
.ui-columns__flow {
|
|
1825
|
+
padding: var(--space-6) var(--ui-columns-edge, var(--space-6)) 0;
|
|
1826
|
+
}
|
|
1827
|
+
.ui-columns__area--work {
|
|
1828
|
+
padding: var(--space-6) var(--ui-columns-edge, var(--space-6));
|
|
1829
|
+
}
|
|
1830
|
+
.ui-columns .ui-columns__area {
|
|
1831
|
+
display: none;
|
|
1832
|
+
}
|
|
1833
|
+
.ui-columns[data-view=nav] .ui-columns__area--nav,
|
|
1834
|
+
.ui-columns[data-view=steps] .ui-columns__area--steps,
|
|
1835
|
+
.ui-columns[data-view=work] .ui-columns__area--work {
|
|
1836
|
+
display: flex;
|
|
1837
|
+
}
|
|
1838
|
+
.ui-columns[data-view=work] .ui-columns__pair {
|
|
1839
|
+
display: none;
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
@media (max-width: 560px) and (pointer: coarse) {
|
|
1843
|
+
.ui-columns__views {
|
|
1844
|
+
gap: var(--tap-gap);
|
|
1845
|
+
--tap-clear-x: var(--tap-gap);
|
|
1846
|
+
--tap-clear-y: var(--tap-gap);
|
|
1847
|
+
}
|
|
1848
|
+
.ui-columns__views > .ui-nav__item::after {
|
|
1849
|
+
content: "";
|
|
1850
|
+
position: absolute;
|
|
1851
|
+
left: 50%;
|
|
1852
|
+
top: 50%;
|
|
1853
|
+
transform: translate(-50%, -50%);
|
|
1854
|
+
width: min(max(100%, var(--tap-min)), calc(100% + var(--tap-clear-x)));
|
|
1855
|
+
height: min(max(100%, var(--tap-min)), calc(100% + var(--tap-clear-y)));
|
|
1856
|
+
}
|
|
1857
|
+
.ui-columns__area > .ui-toolbar:not(:last-child) {
|
|
1858
|
+
margin-bottom: calc(var(--tap-gap) - var(--space-2));
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1556
1862
|
/* src/ThemeChoice.css */
|
|
1557
1863
|
.ui-theme-choice {
|
|
1558
1864
|
display: grid;
|