@apliteni/apliteni-ui 0.193.0 → 0.196.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 +99 -2
- package/guidelines/INDEX.md +2 -0
- package/guidelines/three-column-page.md +79 -0
- package/guidelines/wizard.md +49 -0
- package/package.json +1 -1
- package/react/dist/index.css +319 -0
- package/react/dist/index.d.ts +75 -3
- package/react/dist/index.js +650 -442
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
|
+
| Parents, the children of the selected parent, and the open child | `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,67 @@ 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` for a chain of three columns: the parents, the children of the selected
|
|
324
|
+
parent, and the open child, such as folders, files and a file. Put it in `AppShell` with
|
|
325
|
+
`width="full"`, so its lines reach the band and the page's foot. Give `AppShell` the page
|
|
326
|
+
`title`, which the band shows.
|
|
327
|
+
|
|
328
|
+
```tsx
|
|
329
|
+
<AppShell width="full" title="Library" sections={sections} pathname="/library" account={account} onSignOut={signOut}>
|
|
330
|
+
<ThreeColumnPage depth={depth} onDepthChange={setDepth} depthHref={(to) => libraryAddress(to)} columns={[
|
|
331
|
+
{ title: 'Folders', count: 5, countLabel: '5 folders', children: <FolderRows /> },
|
|
332
|
+
{ title: 'Shared', count: 3, countLabel: '3 files', menu: { sections: sortAndFilter, onSelect }, children: <FileRows /> },
|
|
333
|
+
{ title: 'Contacts', children: <div className="ui-columns__body"><FileFacts /></div> },
|
|
334
|
+
]} />
|
|
335
|
+
</AppShell>
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
`columns` holds the three columns. Leave out the third when the selected parent has no
|
|
339
|
+
children: the second column then takes its space and shows the empty state. Each column takes a
|
|
340
|
+
`title`, which is its `h2` and the words of a back link to it, an optional `count` with its spoken
|
|
341
|
+
`countLabel`, optional `tools`, and its `children`. While a filter is on, give the count as "2 of 3".
|
|
342
|
+
`depth` is 1, 2 or 3: how far down the chain the reader is. Pass `depth` with `onDepthChange`, or
|
|
343
|
+
let the page keep it from `defaultDepth`, which is 2. `children` can be a function that gets
|
|
344
|
+
`open`: a row calls it to take the reader one step down, to the next column, in either case.
|
|
345
|
+
`onDepthChange` hears the back link and `open`. Give `depthHref`, so that the back link goes to
|
|
346
|
+
the address of the depth above. The browser follows that address first, and then the page
|
|
347
|
+
changes the depth, so an app that reads the address lands on the parent. `menu` takes the rows of a `Dropdown` menu: with it, the
|
|
348
|
+
title opens the menu, and without it, the title is plain text. A menu row with `selected`, true or
|
|
349
|
+
false, is one choice of its group, and the current choice shows the menu's tick. Put the actions
|
|
350
|
+
in the first group and each set of choices in a labelled group. A menu taller than 300px takes
|
|
351
|
+
`scroll` with its height, so every row shows.
|
|
352
|
+
|
|
353
|
+
A column's list uses the sidebar's rows (`ui-nav__item`) inside `.ui-columns__list`. A row ends
|
|
354
|
+
with `.ui-columns__end`, a count or a date, and a row that opens a column ends with a
|
|
355
|
+
`chevronRight` glyph in `.ui-nav__ic.ui-columns__into`. Other content stands in
|
|
356
|
+
`.ui-columns__body`, on the title's edge. Put an empty state, or a skeleton in a busy region, in
|
|
357
|
+
`.ui-columns__body`.
|
|
358
|
+
|
|
359
|
+
**What the user sees.**
|
|
360
|
+
|
|
361
|
+
- In a page area wider than 860px, three columns. Column 1 is 240px. Column 2 is 26% of the
|
|
362
|
+
page area, from 260px to 320px. Column 3 takes the rest, at least 360px. Each column scrolls
|
|
363
|
+
alone below its header row, and a 1px `--border` line from the band to the foot stands between
|
|
364
|
+
two columns.
|
|
365
|
+
- In a page area of 860px or less, two neighbour columns: the parents and the children at depth 1
|
|
366
|
+
and 2, and the children and the open child at depth 3. The first takes 40%, and at least 200px.
|
|
367
|
+
An open sidebar on a small laptop thus gives two columns, as a tablet does.
|
|
368
|
+
- In a window of 560px and less, the column at the depth only, and the page scrolls as one.
|
|
369
|
+
- When a column before the first one on show is hidden, a back link above the columns names it.
|
|
370
|
+
- Each header row has one height, so the titles stand on one line. The title is the card title's
|
|
371
|
+
size, and a long title ends in an ellipsis. The count follows it, and the tools stand at the
|
|
372
|
+
row's end.
|
|
373
|
+
- A list's glyphs start on the title's edge. A step list and a table keep their own inset: the
|
|
374
|
+
step mark stands 4px in, and a table's words stand in by the cell's inset, as in a card.
|
|
375
|
+
|
|
376
|
+
**Keyboard and screen reader.** Each column is a region named by its title. A count with a
|
|
377
|
+
`countLabel` is read as that label. When a move hides or removes the control that had the focus,
|
|
378
|
+
the focus goes to the title of the column at the depth, or to its menu button. A column's
|
|
379
|
+
scroll box shows the inward focus band on its four sides. The back link is named "Back to" and
|
|
380
|
+
the column's title. On a touch phone each list row and the title menu have a 44px target.
|
|
381
|
+
|
|
318
382
|
### Footer
|
|
319
383
|
|
|
320
384
|
Use `Footer` at the end of a site page or an app page. `variant` is `full`, `slim` or `app`.
|
|
@@ -989,6 +1053,39 @@ Use `Timeline` for the history of one record, such as who changed an invoice and
|
|
|
989
1053
|
The events show from oldest to newest. Only the marker of the last event is filled. An event can
|
|
990
1054
|
have `kind`, `meta` and `undo`. A new event in a list that is not empty plays an entrance.
|
|
991
1055
|
|
|
1056
|
+
### Wizard
|
|
1057
|
+
|
|
1058
|
+
Use `Wizard` for ordered steps that end in one final action, such as the checks before a month
|
|
1059
|
+
closes. Read the [Wizard guideline](../guidelines/wizard.md) for when to use it.
|
|
1060
|
+
|
|
1061
|
+
```tsx
|
|
1062
|
+
<Wizard label="Month checks" steps={[
|
|
1063
|
+
{ id: 'sources', label: 'Sources', state: 'done' },
|
|
1064
|
+
{ id: 'documents', label: 'Documents', state: 'blocked', content: <><p>A receipt is missing.</p><Button>Add</Button></> },
|
|
1065
|
+
]} final={{ label: 'Finish', action: 'Close month', onAction: close, reason: 'Complete all checks to close this month.' }} />
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
A step's `state` is `done`, `current`, `blocked` or `to do` (`todo`). The final step's state comes
|
|
1069
|
+
from the steps before it. Its action stays off, with `reason` above it, until each earlier step is
|
|
1070
|
+
done. `final.done` marks the final step done and removes its action. One step is open. Without
|
|
1071
|
+
`open`, the wizard opens the first current or blocked step, and it follows that step when it
|
|
1072
|
+
moves on. `onOpenChange` reports each change. Give a done step no content that only says it is
|
|
1073
|
+
done: the mark and the word say it.
|
|
1074
|
+
|
|
1075
|
+
**What the user sees.** The open step stands on the kit's selected-control tint, with no edge and
|
|
1076
|
+
no outline. To do is an empty grey circle, current is an accent circle with a dot, done
|
|
1077
|
+
is a grey circle with a green check, and blocked is an alert circle in the danger ink. The state's
|
|
1078
|
+
word stands under the step's name, so no state rests on colour alone.
|
|
1079
|
+
|
|
1080
|
+
**Keyboard and screen reader.** The steps are an ordered list. Each step is a button named "2.
|
|
1081
|
+
Documents, Blocked, step 2 of 5", so the name starts with the words on screen. It has
|
|
1082
|
+
`aria-expanded` and `aria-controls` for its content. The step to
|
|
1083
|
+
work on has `aria-current="step"`. Up and Down move the focus between the steps and wrap, and Home
|
|
1084
|
+
and End go to the first and the last step. Enter and Space open a step. When the step to work on
|
|
1085
|
+
moves on, the focus goes to it if the focus was in the wizard or on the page body. When an action
|
|
1086
|
+
in the wizard goes away with the focus on it, such as the final action, the focus goes to the open
|
|
1087
|
+
step.
|
|
1088
|
+
|
|
992
1089
|
### Icon
|
|
993
1090
|
|
|
994
1091
|
Use `Icon` for a line glyph beside words. Use `Button icon` for a glyph in a button.
|
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) | Three columns chained from parent to child: the selected parent, its children and the open child, with the widths, the collapse order and the column header. | Read it before you put a list, its children and the open item side by side. |
|
|
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. |
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Three-column page
|
|
2
|
+
|
|
3
|
+
## Chain the columns from parent to child
|
|
4
|
+
|
|
5
|
+
<!-- rule: three-columns -->
|
|
6
|
+
|
|
7
|
+
**Rule:** Make column 1 the parents, column 2 the children of the selected parent, and column 3 the selected child.
|
|
8
|
+
|
|
9
|
+
**Why:** The reader sees where the open item comes from.
|
|
10
|
+
|
|
11
|
+
**Do:** Show the folders, the selected folder's files, then the open file.
|
|
12
|
+
|
|
13
|
+
**Don't:** Put three unrelated columns on one page.
|
|
14
|
+
|
|
15
|
+
## Mark the selected parent
|
|
16
|
+
|
|
17
|
+
<!-- rule: selected-parent -->
|
|
18
|
+
|
|
19
|
+
**Rule:** Keep the selected paint on the selected item in columns 1 and 2, and end each parent row with a chevron.
|
|
20
|
+
|
|
21
|
+
**Why:** The reader sees which parent each column belongs to.
|
|
22
|
+
|
|
23
|
+
**Do:** Mark the selected folder and the open file.
|
|
24
|
+
|
|
25
|
+
**Don't:** Remove a parent's mark when the reader works in the next column.
|
|
26
|
+
|
|
27
|
+
**Except:** A step list's open step keeps its own tint, which shows its state.
|
|
28
|
+
|
|
29
|
+
## Replace the children when the parent changes
|
|
30
|
+
|
|
31
|
+
<!-- rule: replace-children -->
|
|
32
|
+
|
|
33
|
+
**Rule:** When the reader selects a new parent, replace each column after it.
|
|
34
|
+
|
|
35
|
+
**Why:** The old parent's children beside a new parent show wrong data.
|
|
36
|
+
|
|
37
|
+
**Do:** Replace the files and the open file for a new folder.
|
|
38
|
+
|
|
39
|
+
**Don't:** Keep the old folder's files beside a new folder.
|
|
40
|
+
|
|
41
|
+
**Except:** An empty parent gives column 3's space to column 2, which says what is missing.
|
|
42
|
+
|
|
43
|
+
## Keep the child column wide
|
|
44
|
+
|
|
45
|
+
<!-- rule: column-widths -->
|
|
46
|
+
|
|
47
|
+
**Rule:** Give column 1 240px, column 2 from 260px to 320px, and column 3 the rest.
|
|
48
|
+
|
|
49
|
+
**Why:** The open item needs the room.
|
|
50
|
+
|
|
51
|
+
**Do:** Let each column scroll alone, with a full-height line between columns.
|
|
52
|
+
|
|
53
|
+
**Don't:** Split the page into three equal columns.
|
|
54
|
+
|
|
55
|
+
**Except:** A narrow page shows two columns, as a tablet does.
|
|
56
|
+
|
|
57
|
+
## Show two columns, then one
|
|
58
|
+
|
|
59
|
+
<!-- rule: collapse-order -->
|
|
60
|
+
|
|
61
|
+
**Rule:** On a tablet show the open column and its parent, and on a phone only the open column, under a back link that names the hidden parent.
|
|
62
|
+
|
|
63
|
+
**Why:** The reader goes up the chain one step at a time.
|
|
64
|
+
|
|
65
|
+
**Do:** Put a back link to the folders above the files.
|
|
66
|
+
|
|
67
|
+
**Don't:** Squeeze three columns onto a phone.
|
|
68
|
+
|
|
69
|
+
## Give each column one header row
|
|
70
|
+
|
|
71
|
+
<!-- rule: column-header -->
|
|
72
|
+
|
|
73
|
+
**Rule:** Start each column with a header row of one height: the title, then an optional count and tools.
|
|
74
|
+
|
|
75
|
+
**Why:** Titles on one line let the chain read across the page.
|
|
76
|
+
|
|
77
|
+
**Do:** Put a column's sorting, view and quick filters in a menu on its title.
|
|
78
|
+
|
|
79
|
+
**Don't:** Put a bar of view options between the title and the list.
|
|
@@ -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
|
@@ -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,188 @@
|
|
|
1553
1690
|
display: flex;
|
|
1554
1691
|
}
|
|
1555
1692
|
|
|
1693
|
+
/* src/ThreeColumnPage.css */
|
|
1694
|
+
.ui-columns-area {
|
|
1695
|
+
container: ui-columns / inline-size;
|
|
1696
|
+
flex: 1 1 auto;
|
|
1697
|
+
min-width: 0;
|
|
1698
|
+
}
|
|
1699
|
+
.ui-columns {
|
|
1700
|
+
display: grid;
|
|
1701
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
1702
|
+
grid-template-columns: 240px clamp(260px, 26%, var(--panel-sm)) minmax(0, 1fr);
|
|
1703
|
+
height: calc(100dvh - var(--ui-app-band, 0px));
|
|
1704
|
+
overflow-y: clip;
|
|
1705
|
+
}
|
|
1706
|
+
.ui-columns__up {
|
|
1707
|
+
grid-column: 1 / -1;
|
|
1708
|
+
padding: var(--space-3) var(--space-3) 0;
|
|
1709
|
+
}
|
|
1710
|
+
.ui-columns__col {
|
|
1711
|
+
display: flex;
|
|
1712
|
+
flex-direction: column;
|
|
1713
|
+
grid-row: 2;
|
|
1714
|
+
min-width: 0;
|
|
1715
|
+
min-height: 0;
|
|
1716
|
+
}
|
|
1717
|
+
.ui-columns__col + .ui-columns__col {
|
|
1718
|
+
border-inline-start: 1px solid var(--border);
|
|
1719
|
+
}
|
|
1720
|
+
.ui-columns__col--2:last-child {
|
|
1721
|
+
grid-column: 2 / -1;
|
|
1722
|
+
}
|
|
1723
|
+
.ui-columns__scroll {
|
|
1724
|
+
flex: 1 1 auto;
|
|
1725
|
+
min-height: 0;
|
|
1726
|
+
overflow-y: auto;
|
|
1727
|
+
}
|
|
1728
|
+
.ui-columns__scroll:focus-visible {
|
|
1729
|
+
outline: var(--ring-scroll);
|
|
1730
|
+
outline-offset: var(--ring-scroll-offset);
|
|
1731
|
+
}
|
|
1732
|
+
.ui-columns__head {
|
|
1733
|
+
flex: none;
|
|
1734
|
+
display: flex;
|
|
1735
|
+
align-items: center;
|
|
1736
|
+
gap: var(--space-2);
|
|
1737
|
+
min-height: calc(var(--space-12) + var(--space-2));
|
|
1738
|
+
padding: 0 var(--space-5);
|
|
1739
|
+
}
|
|
1740
|
+
.ui-columns__head > h2 {
|
|
1741
|
+
min-width: 0;
|
|
1742
|
+
margin: 0;
|
|
1743
|
+
}
|
|
1744
|
+
.ui-columns__head > h2:focus-visible {
|
|
1745
|
+
outline: var(--ring);
|
|
1746
|
+
outline-offset: var(--ring-offset);
|
|
1747
|
+
border-radius: var(--radius-xs);
|
|
1748
|
+
}
|
|
1749
|
+
.ui-columns__words {
|
|
1750
|
+
min-width: 0;
|
|
1751
|
+
overflow: hidden;
|
|
1752
|
+
text-overflow: ellipsis;
|
|
1753
|
+
white-space: nowrap;
|
|
1754
|
+
}
|
|
1755
|
+
.ui-columns__head > .ui-dropdown {
|
|
1756
|
+
min-width: 0;
|
|
1757
|
+
}
|
|
1758
|
+
.ui-columns__head .ui-columns__menu {
|
|
1759
|
+
min-width: 0;
|
|
1760
|
+
max-width: calc(100% + var(--space-2));
|
|
1761
|
+
margin-inline-start: calc(-1 * var(--space-2));
|
|
1762
|
+
padding: var(--space-1) var(--space-2);
|
|
1763
|
+
color: var(--strong);
|
|
1764
|
+
font-family: var(--font-sans);
|
|
1765
|
+
font-size: var(--text-lg);
|
|
1766
|
+
font-weight: var(--weight-semibold);
|
|
1767
|
+
line-height: var(--leading-snug);
|
|
1768
|
+
background: none;
|
|
1769
|
+
border: 0;
|
|
1770
|
+
border-radius: var(--radius-xs);
|
|
1771
|
+
}
|
|
1772
|
+
.ui-columns__head .ui-columns__menu:hover,
|
|
1773
|
+
.ui-columns__head .ui-dropdown.open > .ui-columns__menu {
|
|
1774
|
+
background: color-mix(in srgb, var(--nav-active-fill) 50%, transparent);
|
|
1775
|
+
}
|
|
1776
|
+
.ui-columns__menu > .ui-dropdown__text {
|
|
1777
|
+
min-width: 0;
|
|
1778
|
+
overflow: hidden;
|
|
1779
|
+
text-overflow: ellipsis;
|
|
1780
|
+
white-space: nowrap;
|
|
1781
|
+
}
|
|
1782
|
+
.ui-columns__count {
|
|
1783
|
+
flex: none;
|
|
1784
|
+
font-size: var(--text-sm);
|
|
1785
|
+
font-variant-numeric: tabular-nums;
|
|
1786
|
+
}
|
|
1787
|
+
.ui-columns__list {
|
|
1788
|
+
padding: 0 var(--space-2) var(--space-4);
|
|
1789
|
+
}
|
|
1790
|
+
.ui-columns__end {
|
|
1791
|
+
flex: none;
|
|
1792
|
+
font-size: var(--text-sm);
|
|
1793
|
+
font-variant-numeric: tabular-nums;
|
|
1794
|
+
}
|
|
1795
|
+
.ui-columns__into {
|
|
1796
|
+
margin-inline-start: calc(-1 * var(--space-1));
|
|
1797
|
+
}
|
|
1798
|
+
.ui-columns__body {
|
|
1799
|
+
display: flex;
|
|
1800
|
+
flex-direction: column;
|
|
1801
|
+
gap: var(--space-6);
|
|
1802
|
+
padding: 0 var(--space-5) var(--space-10);
|
|
1803
|
+
}
|
|
1804
|
+
.ui-columns__body > p {
|
|
1805
|
+
margin: 0;
|
|
1806
|
+
max-width: var(--prose-body);
|
|
1807
|
+
}
|
|
1808
|
+
@container ui-columns (max-width: 860px) {
|
|
1809
|
+
.ui-columns {
|
|
1810
|
+
grid-template-columns: minmax(200px, 40%) minmax(0, 1fr);
|
|
1811
|
+
}
|
|
1812
|
+
.ui-columns__col--2:last-child {
|
|
1813
|
+
grid-column: auto;
|
|
1814
|
+
}
|
|
1815
|
+
.ui-columns:not([data-depth="3"]) > .ui-columns__col--3,
|
|
1816
|
+
.ui-columns[data-depth="3"] > .ui-columns__col--1 {
|
|
1817
|
+
display: none;
|
|
1818
|
+
}
|
|
1819
|
+
.ui-columns[data-depth="3"] > .ui-columns__col--2 {
|
|
1820
|
+
border-inline-start: 0;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
@media (max-width: 560px) {
|
|
1824
|
+
.ui-columns {
|
|
1825
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1826
|
+
height: auto;
|
|
1827
|
+
overflow-y: visible;
|
|
1828
|
+
}
|
|
1829
|
+
.ui-columns__up {
|
|
1830
|
+
padding-inline: var(--space-2);
|
|
1831
|
+
}
|
|
1832
|
+
.ui-columns > .ui-columns__col {
|
|
1833
|
+
display: none;
|
|
1834
|
+
border-inline-start: 0;
|
|
1835
|
+
}
|
|
1836
|
+
.ui-columns[data-depth="1"] > .ui-columns__col--1,
|
|
1837
|
+
.ui-columns[data-depth="2"] > .ui-columns__col--2,
|
|
1838
|
+
.ui-columns[data-depth="3"] > .ui-columns__col--3 {
|
|
1839
|
+
display: flex;
|
|
1840
|
+
}
|
|
1841
|
+
.ui-columns__scroll {
|
|
1842
|
+
overflow-y: visible;
|
|
1843
|
+
}
|
|
1844
|
+
.ui-columns__head,
|
|
1845
|
+
.ui-columns__body {
|
|
1846
|
+
padding-inline: var(--space-4);
|
|
1847
|
+
}
|
|
1848
|
+
.ui-columns__list {
|
|
1849
|
+
padding-inline: var(--space-1);
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
@media (max-width: 560px) and (pointer: coarse) {
|
|
1853
|
+
.ui-columns__list > .ui-nav__list {
|
|
1854
|
+
gap: var(--tap-gap);
|
|
1855
|
+
--tap-clear-y: var(--tap-gap);
|
|
1856
|
+
}
|
|
1857
|
+
.ui-columns__head {
|
|
1858
|
+
--tap-clear-y: var(--space-3);
|
|
1859
|
+
}
|
|
1860
|
+
.ui-columns__head .ui-columns__menu {
|
|
1861
|
+
position: relative;
|
|
1862
|
+
}
|
|
1863
|
+
.ui-columns__list .ui-nav__item::after,
|
|
1864
|
+
.ui-columns__head .ui-columns__menu::after {
|
|
1865
|
+
content: "";
|
|
1866
|
+
position: absolute;
|
|
1867
|
+
left: 50%;
|
|
1868
|
+
top: 50%;
|
|
1869
|
+
transform: translate(-50%, -50%);
|
|
1870
|
+
width: 100%;
|
|
1871
|
+
height: min(max(100%, var(--tap-min)), calc(100% + var(--tap-clear-y)));
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1556
1875
|
/* src/ThemeChoice.css */
|
|
1557
1876
|
.ui-theme-choice {
|
|
1558
1877
|
display: grid;
|