@apliteni/apliteni-ui 0.193.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 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 all three conditions are true: the issue
154
- names at least two products that use it or have requested it; existing components cannot
155
- provide it without copying markup or logic; and it contains no domain-specific data or
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
@@ -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. `centered` is the
158
- default.
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.
@@ -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. |
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.193.0",
3
+ "version": "0.194.0",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
@@ -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;
@@ -823,6 +823,40 @@ type TimelineProps = Omit<ComponentPropsWithoutRef<'ol'>, 'children' | 'reversed
823
823
  };
824
824
  declare function Timeline({ events, className, ...rest }: TimelineProps): react.JSX.Element;
825
825
 
826
+ type WizardStepState = 'done' | 'current' | 'blocked' | 'todo';
827
+ type WizardStep = {
828
+ id: string;
829
+ label: string;
830
+ state: WizardStepState;
831
+ /** What the open step shows under its row: a sentence and the step's own action. */
832
+ content?: ReactNode;
833
+ };
834
+ /** The last step. Its state comes from the steps before it, so a caller cannot set it. */
835
+ type WizardFinal = {
836
+ id?: string;
837
+ label: string;
838
+ /** The words of the final action, such as Close month. */
839
+ action: string;
840
+ onAction: () => void;
841
+ /** Why the action is off. It shows while an earlier step is not done. */
842
+ reason: string;
843
+ content?: ReactNode;
844
+ /** The action has run. The final step is done and its action goes away. */
845
+ done?: boolean;
846
+ };
847
+ type WizardProps = {
848
+ /** The list's name for a screen reader, such as Month checks. */
849
+ label: string;
850
+ steps: readonly WizardStep[];
851
+ final: WizardFinal;
852
+ /** The open step. Without it, the wizard keeps its own and opens the step to work on. */
853
+ open?: string;
854
+ onOpenChange?: (id: string) => void;
855
+ className?: string;
856
+ };
857
+ /** Ordered steps with one open step and a final action that waits for the steps before it. */
858
+ declare function Wizard({ label, steps, final, open, onOpenChange, className }: WizardProps): react.JSX.Element;
859
+
826
860
  type FieldMessage = {
827
861
  label: string;
828
862
  hint?: string;
@@ -1019,7 +1053,9 @@ type AppShellProps = AppShellNav & {
1019
1053
  word?: string;
1020
1054
  brand?: ReactNode;
1021
1055
  brandHref?: string;
1022
- width?: 'centered' | 'wide';
1056
+ /** `full` takes the content column's cap and padding off, for a page whose parts reach
1057
+ * the edges, and the band's title becomes the page's h1 (rev_80635b1e54ca/d2). */
1058
+ width?: 'centered' | 'wide' | 'full';
1023
1059
  back?: {
1024
1060
  href: string;
1025
1061
  label: string;
@@ -1085,6 +1121,37 @@ declare const AuthShell: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTM
1085
1121
  brandAbove?: boolean;
1086
1122
  } & react.RefAttributes<HTMLDivElement>>;
1087
1123
 
1124
+ type ThreeColumnView = 'nav' | 'steps' | 'work';
1125
+ type ThreeColumnArea = {
1126
+ /** The area's heading, an h2. */
1127
+ title: ReactNode;
1128
+ /** The words of the link that opens the area on a tablet or a phone. */
1129
+ link: string;
1130
+ children: ReactNode;
1131
+ };
1132
+ type ThreeColumnPageProps = {
1133
+ /** The page's h1, at the top of the flow half. Leave it out when AppShell's
1134
+ * `width="full"` puts the title in the band. */
1135
+ title?: string;
1136
+ /** Small tools for the whole page at the end of the title row, such as a badge. */
1137
+ tools?: ReactNode;
1138
+ /** The first column: the list that chooses the record, such as the months. */
1139
+ nav: ThreeColumnArea;
1140
+ /** The second column: the ordered steps, beside the list. */
1141
+ steps: ThreeColumnArea;
1142
+ /** The work half: the rows of the open step. */
1143
+ work: ThreeColumnArea;
1144
+ /** The area shown on a phone, and the list's own view on a tablet. */
1145
+ view?: ThreeColumnView;
1146
+ defaultView?: ThreeColumnView;
1147
+ onViewChange?: (view: ThreeColumnView) => void;
1148
+ /** The name of the link group. */
1149
+ viewsLabel?: string;
1150
+ className?: string;
1151
+ };
1152
+ /** A list and ordered steps on one half of a split page, and the work on the other half. */
1153
+ declare function ThreeColumnPage({ title, tools, nav, steps, work, view, defaultView, onViewChange, viewsLabel, className }: ThreeColumnPageProps): react.JSX.Element;
1154
+
1088
1155
  type FooterLink = {
1089
1156
  label: string;
1090
1157
  href?: string;
@@ -1537,5 +1604,5 @@ declare const NavTabs: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedH
1537
1604
  declare const PAGE_SIZES: readonly number[];
1538
1605
  declare const DEFAULT_PAGE_SIZE: number;
1539
1606
 
1540
- export { AccentPicker, AccountMenu, AccountWindow, AppShell, AuthShell, Avatar, BackLink, Badge, BusyRegion, Button, Callout, Card, Chart, CheckList, Checkbox, CommandPalette, Confirm, DEFAULT_PAGE_SIZE, DataTable, DatePicker, DeltaValue, Denied, Drawer, DrawerSection, Dropdown, EmptyState, Feedback, Field, FileDrop, FileField, FilterBar, Footer, Icon, KeyValueList, Modal, NavTabs, NumericValue, PAGE_SIZES, Pagination, Pill, RowIdentity, SearchField, Segmented, SelectField, SidebarNav, Skeleton, SkeletonTable, Snippet, StatBand, StatusDot, Success, SuccessCheck, SuccessPanel, Switch, THEME_INIT_SCRIPT, Tabs, TextArea, TextField, ThemeChoice, ThemeToggle, Timeline, Toast, Tooltip, TopBar, VersionSwitcher, ViewSwitch, sortTableRows, useToast };
1541
- export type { Accent, AccentPickerProps, AccountMenuProps, AccountReader, AccountSection, AccountWindowProps, AddFilter, AppShellGroup, AppShellLink, AppShellProps, AppShellSection, AuthShellProps, AvatarProps, BackLinkOwnProps, BackLinkProps, BusyRegionProps, ButtonLinkProps, ButtonProps, CalloutProps, CalloutVariant, ChartAreaLook, ChartBridgeStep, ChartBridgeTones, ChartDonutLook, ChartEstimate, ChartLineLook, ChartLookSeries, ChartPeriod, ChartProps, ChartSeries, ChartSlice, ChartStackedLook, ChartTone, CheckListProps, CheckboxProps, Column, CommandGroup, CommandItem, CommandPaletteProps, ConfirmProps, DataTableProps, DatePickerMode, DatePickerPreset, DatePickerProps, DatePickerRange, DeltaValueProps, DeniedProps, DrawerProps, DrawerSectionProps, DropdownAvatar, DropdownBadge, DropdownEntry, DropdownItem, DropdownProps, DropdownRowProps, DropdownSearch, DropdownSection, DropdownSeparator, EmptyStateProps, EmptyStateVariant, FeedbackPayload, FeedbackProps, FeedbackResult, FeedbackSection, FieldControlProps, FieldProps, FileDropFile, FileDropProps, FileDropStatus, FileFieldProps, Filter, FilterBarProps, FooterColumn, FooterLink, FooterProps, FooterSocial, KeyValueListProps, KeyValueRow, ModalProps, NativeButtonProps, NavTabBadge, NavTabItem, NavTabsProps, NumericValueProps, PaginationProps, PillProps, RowIdentityProps, SearchFieldProps, SegmentOption, SegmentedProps, SelectFieldProps, SidebarNavBadge, SidebarNavBlock, SidebarNavGroup, SidebarNavItem, SidebarNavLeaf, SidebarNavProps, SidebarNavRow, SidebarNavSection, SidebarNavSections, SkeletonProps, SkeletonTableProps, SnippetProps, StatBandProps, StatDelta, StatFigure, StatTone, StatVariant, StatusDotProps, SuccessCheckProps, SuccessCountdown, SuccessPanelProps, SuccessProps, SwitchProps, TabItem, TableSort, TabsProps, TextAreaProps, TextFieldProps, ThemeChoiceProps, ThemeToggleProps, TimelineEvent, TimelineEventKind, TimelineProps, ToastNotice, ToastProps, TooltipProps, TopBarProps, Version, VersionSwitcherProps, ViewSwitchItem, ViewSwitchProps };
1607
+ export { AccentPicker, AccountMenu, AccountWindow, AppShell, AuthShell, Avatar, BackLink, Badge, BusyRegion, Button, Callout, Card, Chart, CheckList, Checkbox, CommandPalette, Confirm, DEFAULT_PAGE_SIZE, DataTable, DatePicker, DeltaValue, Denied, Drawer, DrawerSection, Dropdown, EmptyState, Feedback, Field, FileDrop, FileField, FilterBar, Footer, Icon, KeyValueList, Modal, NavTabs, NumericValue, PAGE_SIZES, Pagination, Pill, RowIdentity, SearchField, Segmented, SelectField, SidebarNav, Skeleton, SkeletonTable, Snippet, StatBand, StatusDot, Success, SuccessCheck, SuccessPanel, Switch, THEME_INIT_SCRIPT, Tabs, TextArea, TextField, ThemeChoice, ThemeToggle, ThreeColumnPage, Timeline, Toast, Tooltip, TopBar, VersionSwitcher, ViewSwitch, Wizard, sortTableRows, useToast };
1608
+ export type { Accent, AccentPickerProps, AccountMenuProps, AccountReader, AccountSection, AccountWindowProps, AddFilter, AppShellGroup, AppShellLink, AppShellProps, AppShellSection, AuthShellProps, AvatarProps, BackLinkOwnProps, BackLinkProps, BusyRegionProps, ButtonLinkProps, ButtonProps, CalloutProps, CalloutVariant, ChartAreaLook, ChartBridgeStep, ChartBridgeTones, ChartDonutLook, ChartEstimate, ChartLineLook, ChartLookSeries, ChartPeriod, ChartProps, ChartSeries, ChartSlice, ChartStackedLook, ChartTone, CheckListProps, CheckboxProps, Column, CommandGroup, CommandItem, CommandPaletteProps, ConfirmProps, DataTableProps, DatePickerMode, DatePickerPreset, DatePickerProps, DatePickerRange, DeltaValueProps, DeniedProps, DrawerProps, DrawerSectionProps, DropdownAvatar, DropdownBadge, DropdownEntry, DropdownItem, DropdownProps, DropdownRowProps, DropdownSearch, DropdownSection, DropdownSeparator, EmptyStateProps, EmptyStateVariant, FeedbackPayload, FeedbackProps, FeedbackResult, FeedbackSection, FieldControlProps, FieldProps, FileDropFile, FileDropProps, FileDropStatus, FileFieldProps, Filter, FilterBarProps, FooterColumn, FooterLink, FooterProps, FooterSocial, KeyValueListProps, KeyValueRow, ModalProps, NativeButtonProps, NavTabBadge, NavTabItem, NavTabsProps, NumericValueProps, PaginationProps, PillProps, RowIdentityProps, SearchFieldProps, SegmentOption, SegmentedProps, SelectFieldProps, SidebarNavBadge, SidebarNavBlock, SidebarNavGroup, SidebarNavItem, SidebarNavLeaf, SidebarNavProps, SidebarNavRow, SidebarNavSection, SidebarNavSections, SkeletonProps, SkeletonTableProps, SnippetProps, StatBandProps, StatDelta, StatFigure, StatTone, StatVariant, StatusDotProps, SuccessCheckProps, SuccessCountdown, SuccessPanelProps, SuccessProps, SwitchProps, TabItem, TableSort, TabsProps, TextAreaProps, TextFieldProps, ThemeChoiceProps, ThemeToggleProps, ThreeColumnArea, ThreeColumnPageProps, ThreeColumnView, TimelineEvent, TimelineEventKind, TimelineProps, ToastNotice, ToastProps, TooltipProps, TopBarProps, Version, VersionSwitcherProps, ViewSwitchItem, ViewSwitchProps, WizardFinal, WizardProps, WizardStep, WizardStepState };