@newtone-dev/ui-react-web 0.45.0 → 0.47.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 +5 -3
- package/dist/app-frame/app-frame.css +57 -0
- package/dist/app-frame/app-frame.d.ts +2 -1
- package/dist/app-frame/app-frame.d.ts.map +1 -1
- package/dist/app-frame/app-frame.js +2 -1
- package/dist/app-frame/app-frame.js.map +1 -1
- package/dist/app-frame/index.d.ts +1 -1
- package/dist/app-frame/index.d.ts.map +1 -1
- package/dist/app-frame/launcher/launcher.d.ts.map +1 -1
- package/dist/app-frame/launcher/launcher.js +5 -3
- package/dist/app-frame/launcher/launcher.js.map +1 -1
- package/dist/app-frame/parts.d.ts +22 -1
- package/dist/app-frame/parts.d.ts.map +1 -1
- package/dist/app-frame/parts.js +15 -2
- package/dist/app-frame/parts.js.map +1 -1
- package/dist/beside/beside.css +4 -0
- package/dist/card-box/card-box.css +8 -2
- package/dist/card-box/card-box.d.ts.map +1 -1
- package/dist/card-box/card-box.js +1 -1
- package/dist/card-box/card-box.js.map +1 -1
- package/dist/color/index.d.ts +4 -4
- package/dist/color/index.d.ts.map +1 -1
- package/dist/color/index.js +17 -15
- package/dist/color/index.js.map +1 -1
- package/dist/color/oklch.d.ts +6 -27
- package/dist/color/oklch.d.ts.map +1 -1
- package/dist/color/oklch.js +23 -61
- package/dist/color/oklch.js.map +1 -1
- package/dist/color/scale.d.ts +3 -18
- package/dist/color/scale.d.ts.map +1 -1
- package/dist/color/scale.js +13 -70
- package/dist/color/scale.js.map +1 -1
- package/dist/color/seeds.d.ts +51 -11
- package/dist/color/seeds.d.ts.map +1 -1
- package/dist/color/seeds.js +127 -41
- package/dist/color/seeds.js.map +1 -1
- package/dist/curve-field/curve-field.css +280 -0
- package/dist/curve-field/curve-field.d.ts +105 -0
- package/dist/curve-field/curve-field.d.ts.map +1 -0
- package/dist/curve-field/curve-field.js +532 -0
- package/dist/curve-field/curve-field.js.map +1 -0
- package/dist/curve-field/index.d.ts +3 -0
- package/dist/curve-field/index.d.ts.map +1 -0
- package/dist/curve-field/index.js +2 -0
- package/dist/curve-field/index.js.map +1 -0
- package/dist/diagram/diagram.css +63 -0
- package/dist/diagram/diagram.d.ts +63 -0
- package/dist/diagram/diagram.d.ts.map +1 -0
- package/dist/diagram/diagram.js +73 -0
- package/dist/diagram/diagram.js.map +1 -0
- package/dist/diagram/geometry.d.ts +60 -0
- package/dist/diagram/geometry.d.ts.map +1 -0
- package/dist/diagram/geometry.js +93 -0
- package/dist/diagram/geometry.js.map +1 -0
- package/dist/diagram/index.d.ts +7 -0
- package/dist/diagram/index.d.ts.map +1 -0
- package/dist/diagram/index.js +4 -0
- package/dist/diagram/index.js.map +1 -0
- package/dist/diagram/layout.d.ts +41 -0
- package/dist/diagram/layout.d.ts.map +1 -0
- package/dist/diagram/layout.js +157 -0
- package/dist/diagram/layout.js.map +1 -0
- package/dist/document/document.d.ts +7 -2
- package/dist/document/document.d.ts.map +1 -1
- package/dist/document/document.js +22 -4
- package/dist/document/document.js.map +1 -1
- package/dist/dynamic-range/dynamic-range.css +100 -0
- package/dist/dynamic-range/dynamic-range.d.ts +27 -0
- package/dist/dynamic-range/dynamic-range.d.ts.map +1 -0
- package/dist/dynamic-range/dynamic-range.js +20 -0
- package/dist/dynamic-range/dynamic-range.js.map +1 -0
- package/dist/dynamic-range/index.d.ts +3 -0
- package/dist/dynamic-range/index.d.ts.map +1 -0
- package/dist/dynamic-range/index.js +2 -0
- package/dist/dynamic-range/index.js.map +1 -0
- package/dist/file-grid/file-grid.css +65 -0
- package/dist/file-grid/file-grid.d.ts +34 -1
- package/dist/file-grid/file-grid.d.ts.map +1 -1
- package/dist/file-grid/file-grid.js +63 -2
- package/dist/file-grid/file-grid.js.map +1 -1
- package/dist/file-grid/index.d.ts +2 -2
- package/dist/file-grid/index.d.ts.map +1 -1
- package/dist/file-grid/index.js +1 -1
- package/dist/file-grid/index.js.map +1 -1
- package/dist/floating-bar/floating-bar.css +37 -15
- package/dist/floating-bar/floating-bar.d.ts +16 -1
- package/dist/floating-bar/floating-bar.d.ts.map +1 -1
- package/dist/floating-bar/floating-bar.js +58 -15
- package/dist/floating-bar/floating-bar.js.map +1 -1
- package/dist/floating-bar/index.d.ts +1 -1
- package/dist/floating-bar/index.d.ts.map +1 -1
- package/dist/identity/identity.d.ts +11 -3
- package/dist/identity/identity.d.ts.map +1 -1
- package/dist/identity/identity.js +8 -4
- package/dist/identity/identity.js.map +1 -1
- package/dist/index.d.ts +16 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/inspector/index.d.ts +1 -1
- package/dist/inspector/index.d.ts.map +1 -1
- package/dist/inspector/inspector.css +220 -6
- package/dist/inspector/inspector.d.ts +122 -3
- package/dist/inspector/inspector.d.ts.map +1 -1
- package/dist/inspector/inspector.js +75 -5
- package/dist/inspector/inspector.js.map +1 -1
- package/dist/material/material.css +8 -2
- package/dist/number-field/number-field.css +13 -0
- package/dist/number-field/number-field.d.ts +6 -1
- package/dist/number-field/number-field.d.ts.map +1 -1
- package/dist/number-field/number-field.js +10 -2
- package/dist/number-field/number-field.js.map +1 -1
- package/dist/pop-menu/pop-menu.d.ts +3 -0
- package/dist/pop-menu/pop-menu.d.ts.map +1 -1
- package/dist/pop-menu/pop-menu.js +12 -6
- package/dist/pop-menu/pop-menu.js.map +1 -1
- package/dist/prompt-field/prompt-field.css +3 -3
- package/dist/prompt-field/prompt-field.d.ts +3 -3
- package/dist/prompt-field/prompt-field.d.ts.map +1 -1
- package/dist/prompt-field/prompt-field.js +10 -4
- package/dist/prompt-field/prompt-field.js.map +1 -1
- package/dist/seed-contrast-field/index.d.ts +5 -0
- package/dist/seed-contrast-field/index.d.ts.map +1 -0
- package/dist/seed-contrast-field/index.js +3 -0
- package/dist/seed-contrast-field/index.js.map +1 -0
- package/dist/seed-contrast-field/seed-contrast-field.css +11 -0
- package/dist/{seed-dark-limit-field/seed-dark-limit-field.d.ts → seed-contrast-field/seed-contrast-field.d.ts} +14 -14
- package/dist/seed-contrast-field/seed-contrast-field.d.ts.map +1 -0
- package/dist/seed-contrast-field/seed-contrast-field.js +18 -0
- package/dist/seed-contrast-field/seed-contrast-field.js.map +1 -0
- package/dist/seed-contrast-field/seed-contrast-slider.css +112 -0
- package/dist/seed-contrast-field/seed-contrast-slider.d.ts +22 -0
- package/dist/seed-contrast-field/seed-contrast-slider.d.ts.map +1 -0
- package/dist/seed-contrast-field/seed-contrast-slider.js +75 -0
- package/dist/seed-contrast-field/seed-contrast-slider.js.map +1 -0
- package/dist/seed-steps/index.d.ts +1 -1
- package/dist/seed-steps/index.js +1 -1
- package/dist/seed-steps/seed-steps.css +1 -1
- package/dist/seed-steps/seed-steps.js +1 -1
- package/dist/seed-steps/seed-steps.js.map +1 -1
- package/dist/shell/shell.css +31 -21
- package/dist/split/split.css +8 -5
- package/dist/step-list/index.d.ts +1 -1
- package/dist/step-list/index.d.ts.map +1 -1
- package/dist/step-list/step-list.css +75 -2
- package/dist/step-list/step-list.d.ts +121 -11
- package/dist/step-list/step-list.d.ts.map +1 -1
- package/dist/step-list/step-list.js +203 -37
- package/dist/step-list/step-list.js.map +1 -1
- package/dist/step-strip/index.d.ts +3 -0
- package/dist/step-strip/index.d.ts.map +1 -0
- package/dist/step-strip/index.js +2 -0
- package/dist/step-strip/index.js.map +1 -0
- package/dist/step-strip/step-strip.css +118 -0
- package/dist/step-strip/step-strip.d.ts +52 -0
- package/dist/step-strip/step-strip.d.ts.map +1 -0
- package/dist/step-strip/step-strip.js +47 -0
- package/dist/step-strip/step-strip.js.map +1 -0
- package/dist/surface/surface.css +112 -0
- package/dist/workbench/workbench.css +50 -0
- package/dist/workbench/workbench.d.ts +25 -1
- package/dist/workbench/workbench.d.ts.map +1 -1
- package/dist/workbench/workbench.js +11 -2
- package/dist/workbench/workbench.js.map +1 -1
- package/package.json +27 -5
- package/dist/color/gamut.d.ts +0 -20
- package/dist/color/gamut.d.ts.map +0 -1
- package/dist/color/gamut.js +0 -72
- package/dist/color/gamut.js.map +0 -1
- package/dist/seed-dark-limit-field/index.d.ts +0 -3
- package/dist/seed-dark-limit-field/index.d.ts.map +0 -1
- package/dist/seed-dark-limit-field/index.js +0 -2
- package/dist/seed-dark-limit-field/index.js.map +0 -1
- package/dist/seed-dark-limit-field/seed-dark-limit-field.css +0 -10
- package/dist/seed-dark-limit-field/seed-dark-limit-field.d.ts.map +0 -1
- package/dist/seed-dark-limit-field/seed-dark-limit-field.js +0 -18
- package/dist/seed-dark-limit-field/seed-dark-limit-field.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import type { ExtendedPalette } from '../card-box/index.js';
|
|
3
|
+
import { type FacesPerson } from '../faces/index.js';
|
|
3
4
|
/** Who took a step: their name, and their face as `Avatar` draws it. */
|
|
4
5
|
export interface StepListWho {
|
|
5
6
|
name: string;
|
|
@@ -25,6 +26,7 @@ export interface StepListAction {
|
|
|
25
26
|
label: string;
|
|
26
27
|
/** An `Icon` name before its words. */
|
|
27
28
|
icon?: string;
|
|
29
|
+
/** Reached by the arrow keys and said to be unavailable; its press does nothing (2026-11-13). */
|
|
28
30
|
disabled?: boolean;
|
|
29
31
|
}
|
|
30
32
|
/** A question under a step before an action goes ahead (a built-on step: "Ana's later changes to it go back too."). */
|
|
@@ -36,12 +38,34 @@ export interface StepListConfirm {
|
|
|
36
38
|
/** The press that does not: "Cancel". */
|
|
37
39
|
cancel: string;
|
|
38
40
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
/**
|
|
42
|
+
* A step's author, always said (step-list.U2): `who` took it, or the `people` who changed the file in it say who. A step
|
|
43
|
+
* with neither does not type.
|
|
44
|
+
*/
|
|
45
|
+
export type StepListAuthor = {
|
|
46
|
+
/** Who took it. */
|
|
47
|
+
who: StepListWho;
|
|
48
|
+
people?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
/** Who took it, beside `people` (an operator's person); optional with them. */
|
|
51
|
+
who?: StepListWho;
|
|
52
|
+
/**
|
|
53
|
+
* The people who changed the file in this step (2026-11-13, S8: a version, changed by several): their faces as
|
|
54
|
+
* a `Faces` stack, three and then `+N`, named by the list's `peopleLabel` (pass it whenever a step has
|
|
55
|
+
* people). Given, they are the row's face; the meta line shows `when` alone and says their names before it.
|
|
56
|
+
*/
|
|
57
|
+
people: FacesPerson[];
|
|
58
|
+
};
|
|
59
|
+
export type StepListStep = StepListAuthor & StepListStepBase;
|
|
60
|
+
/** What every step carries, whoever its author is. */
|
|
61
|
+
export interface StepListStepBase {
|
|
62
|
+
/**
|
|
63
|
+
* Unique in the list: the step's number, as the consumer keeps it. Never `'opened'`, which the list keeps for the
|
|
64
|
+
* opened step's head (`naming.stepId`, `onConfirm`, `onCancel`).
|
|
65
|
+
*/
|
|
41
66
|
id: string;
|
|
42
|
-
/** What the step did, in the consumer's words: "Changed the title", "Undone: Changed the title", "Restored
|
|
67
|
+
/** What the step did, in the consumer's words: "Changed the title", "Undone: Changed the title", "Restored from Nov 12, 09:30". */
|
|
43
68
|
label: string;
|
|
44
|
-
who: StepListWho;
|
|
45
69
|
/**
|
|
46
70
|
* Given, an operator took the step for `who`: its glyph is the face, `who`'s face small on it, and `operator.label`
|
|
47
71
|
* is said in place of `who.name`.
|
|
@@ -53,7 +77,7 @@ export interface StepListStep {
|
|
|
53
77
|
at?: string;
|
|
54
78
|
/**
|
|
55
79
|
* What kind of step it is, beyond an edit: `undo`, it undid another step; `restore`, it put the whole file back to
|
|
56
|
-
* a
|
|
80
|
+
* a version. A glyph before its label (`undo`, `history`); the label still says it.
|
|
57
81
|
*/
|
|
58
82
|
kind?: 'undo' | 'restore';
|
|
59
83
|
/**
|
|
@@ -63,11 +87,77 @@ export interface StepListStep {
|
|
|
63
87
|
takenBack?: string;
|
|
64
88
|
/** The moment the file stands at now: an accent edge at its start. */
|
|
65
89
|
current?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* It opens (2026-11-13, S8: a version, previewed): its words are one press, named `openLabel: label`, with a
|
|
92
|
+
* chevron at its end; pressed (or Enter or Space), `onOpen(id)`. Needs the list's `onOpen`.
|
|
93
|
+
*/
|
|
94
|
+
openable?: boolean;
|
|
66
95
|
/** Its more menu's rows. None, no menu. */
|
|
67
96
|
actions?: StepListAction[];
|
|
68
97
|
/** Given, the warning under the row, asking before an action goes ahead. The consumer sets and clears it. */
|
|
69
98
|
confirm?: StepListConfirm;
|
|
70
99
|
}
|
|
100
|
+
/** A press in the opened step's head (2026-11-13, S8): "Restore this version", "Name this version". */
|
|
101
|
+
export interface StepListOpenedAction {
|
|
102
|
+
id: string;
|
|
103
|
+
label: string;
|
|
104
|
+
/** The Button variant it is drawn in; `secondary` unless said. */
|
|
105
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The step that is open, drawn in a head over the rows (2026-11-13, S8: a version, previewed, its changes as the rows
|
|
109
|
+
* under it). When it appears, the focus goes to its back press; when it goes, the focus goes to the row that was
|
|
110
|
+
* opened, or to the list.
|
|
111
|
+
*/
|
|
112
|
+
export interface StepListOpened {
|
|
113
|
+
/** The step that is open: its face (or faces), label and when. */
|
|
114
|
+
step: StepListStep;
|
|
115
|
+
/** The press back to the list: "All versions" (an `arrow_back` glyph before the words). */
|
|
116
|
+
back: {
|
|
117
|
+
label: string;
|
|
118
|
+
onPress: () => void;
|
|
119
|
+
};
|
|
120
|
+
/** Its presses, in order, after the step. */
|
|
121
|
+
actions?: StepListOpenedAction[];
|
|
122
|
+
onAction?: (id: string) => void;
|
|
123
|
+
/**
|
|
124
|
+
* Given, the warning under the head, asking before an action goes ahead (as a row's); its presses call the list's
|
|
125
|
+
* `onConfirm('opened')` and `onCancel('opened')`. When it closes, the focus goes back to the press that asked.
|
|
126
|
+
*/
|
|
127
|
+
confirm?: StepListConfirm;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* A name being typed for a step (2026-11-13, S8: "Name this version"), inline: a `TextField` with a save and a cancel
|
|
131
|
+
* press under the row, or in the head. The focus goes into the field as it opens; Enter saves, Escape cancels; as it
|
|
132
|
+
* closes, the focus goes back to the row's more button, or to the head's press that asked.
|
|
133
|
+
*/
|
|
134
|
+
export interface StepListNaming {
|
|
135
|
+
/** The row it stands under: a step's `id`, or `'opened'` for the head. */
|
|
136
|
+
stepId: string;
|
|
137
|
+
/** The field's name: "Version name". */
|
|
138
|
+
label: string;
|
|
139
|
+
/** What is typed: the consumer keeps it. */
|
|
140
|
+
value: string;
|
|
141
|
+
onChange: (value: string) => void;
|
|
142
|
+
/** Save pressed, or Enter in the field: given the value. */
|
|
143
|
+
onSubmit: (value: string) => void;
|
|
144
|
+
/** Cancel pressed, or Escape in the field. */
|
|
145
|
+
onCancel: () => void;
|
|
146
|
+
/** The save press's words: "Save". */
|
|
147
|
+
save: string;
|
|
148
|
+
/** The cancel press's words: "Cancel". */
|
|
149
|
+
cancel: string;
|
|
150
|
+
/** A name must be given: while the value is empty (or spaces), Save waits (`disabledFocusable`) and Enter does nothing. */
|
|
151
|
+
required?: boolean;
|
|
152
|
+
/** The most characters the field takes. */
|
|
153
|
+
maxLength?: number;
|
|
154
|
+
}
|
|
155
|
+
/** One line above the rows (2026-11-13, S8): "This version can't be opened." Said politely as it arrives. */
|
|
156
|
+
export interface StepListNotice {
|
|
157
|
+
text: string;
|
|
158
|
+
/** `warning` draws the warning glyph before it; `neutral` (the default) is words alone. */
|
|
159
|
+
tone?: 'neutral' | 'warning';
|
|
160
|
+
}
|
|
71
161
|
export interface StepListProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
72
162
|
/** The list's name, for assistive tech: "History". */
|
|
73
163
|
label: string;
|
|
@@ -77,17 +167,18 @@ export interface StepListProps extends Omit<HTMLAttributes<HTMLElement>, 'childr
|
|
|
77
167
|
moreLabel: string;
|
|
78
168
|
/** A row of a step's more menu picked. */
|
|
79
169
|
onAction?: (stepId: string, actionId: string) => void;
|
|
80
|
-
/** A warning's confirm pressed. */
|
|
170
|
+
/** A warning's confirm pressed: the step's id, or `'opened'` for the head's. */
|
|
81
171
|
onConfirm?: (stepId: string) => void;
|
|
82
|
-
/** A warning's cancel pressed, or Escape in it. */
|
|
172
|
+
/** A warning's cancel pressed, or Escape in it: the step's id, or `'opened'` for the head's. */
|
|
83
173
|
onCancel?: (stepId: string) => void;
|
|
84
174
|
/** What is said where there are no steps yet. */
|
|
85
175
|
empty?: string;
|
|
86
176
|
/**
|
|
87
177
|
* A press at the list's end that shows older steps (a page past the last shown): "Show older". `note`: words under
|
|
88
|
-
* it where the list ends, for why nothing older can be had ("
|
|
89
|
-
* `disabled` (loading the next page, or nothing older left): the press waits,
|
|
90
|
-
* (`aria-disabled`, its press ignored), never the native state, which would drop a
|
|
178
|
+
* it where the list ends, for why nothing older can be had ("Older changes aren't kept one by one. Restore a
|
|
179
|
+
* version to go further back."). `disabled` (loading the next page, or nothing older left): the press waits,
|
|
180
|
+
* Button's `disabledFocusable` (`aria-disabled`, its press ignored), never the native state, which would drop a
|
|
181
|
+
* focus it holds to the page.
|
|
91
182
|
*/
|
|
92
183
|
older?: {
|
|
93
184
|
label: string;
|
|
@@ -95,7 +186,26 @@ export interface StepListProps extends Omit<HTMLAttributes<HTMLElement>, 'childr
|
|
|
95
186
|
disabled?: boolean;
|
|
96
187
|
note?: string;
|
|
97
188
|
};
|
|
189
|
+
/**
|
|
190
|
+
* The name of a row's `people` stack, and said before their names in an open press's description: "Changed by".
|
|
191
|
+
* Pass it whenever a step has `people`; without it, the stack is no named group, only its faces.
|
|
192
|
+
*/
|
|
193
|
+
peopleLabel?: string;
|
|
194
|
+
/** The words of the stack's `+N` place, from the names it stands for (Faces' `more`): "2 more: Cy, Di". */
|
|
195
|
+
peopleMore?: (names: string[]) => string;
|
|
196
|
+
/** An `openable` step's press pressed: its id. */
|
|
197
|
+
onOpen?: (stepId: string) => void;
|
|
198
|
+
/** Said before an openable step's label, as its press's name: "Open" → "Open: Nov 13, 10:42". */
|
|
199
|
+
openLabel?: string;
|
|
200
|
+
/** The step that is open, in a head over the rows. */
|
|
201
|
+
opened?: StepListOpened;
|
|
202
|
+
/** A name being typed, under a row or in the head. */
|
|
203
|
+
naming?: StepListNaming;
|
|
204
|
+
/** The rows are loading: Skeleton rows under the rows (or under the head), and the list is `aria-busy`. */
|
|
205
|
+
loading?: boolean;
|
|
206
|
+
/** One line above the rows. */
|
|
207
|
+
notice?: StepListNotice;
|
|
98
208
|
}
|
|
99
209
|
/** A file's history, newest first: who did what, when, and what can be done with each step. Blueprint components/step-list.md. */
|
|
100
|
-
export declare function StepList({ label, steps, moreLabel, onAction, onConfirm, onCancel, empty, older, className, ...rest }: StepListProps): import("react").JSX.Element;
|
|
210
|
+
export declare function StepList({ label, steps, moreLabel, onAction, onConfirm, onCancel, empty, older, peopleLabel, peopleMore, onOpen, openLabel, opened, naming, loading, notice, className, ...rest }: StepListProps): import("react").JSX.Element;
|
|
101
211
|
//# sourceMappingURL=step-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-list.d.ts","sourceRoot":"","sources":["../../src/step-list/step-list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"step-list.d.ts","sourceRoot":"","sources":["../../src/step-list/step-list.tsx"],"names":[],"mappings":"AAcA,OAAO,EAKH,KAAK,cAAc,EAEnB,KAAK,SAAS,EAEjB,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAQ3D,wEAAwE;AACxE,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,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iGAAiG;IACjG,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sDAAsD;IACtD,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,sDAAsD;IACtD,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,2GAA2G;IAC3G,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,cAAc,CAAA;CAC1B;AAyBD,kIAAkI;AAClI,wBAAgB,QAAQ,CAAC,EACrB,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,KAAK,EACL,KAAK,EACL,WAAW,EACX,UAAU,EACV,MAAM,EACN,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAe,EACf,MAAM,EACN,SAAS,EACT,GAAG,IAAI,EACV,EAAE,aAAa,+BAwIf"}
|
|
@@ -1,22 +1,47 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
// A file's history, step by step, newest first (2026-11-13, the HuevOS rebuild's History: Slides, Vector, Style Book).
|
|
4
|
-
// Each row: the face of who took the step
|
|
5
|
-
// file back to a moment says so with a glyph; a step taken back
|
|
6
|
-
// it. Each row's actions (Undo this change, Restore this
|
|
7
|
-
//
|
|
8
|
-
// its own two presses (Undo anyway, Cancel); when it
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
|
|
4
|
+
// Each row: the face of who took the step (or the faces of the people who changed it, `people`), what it did, and who
|
|
5
|
+
// and when under it; a step that undid another or put the file back to a moment says so with a glyph; a step taken back
|
|
6
|
+
// since is struck through, with the consumer's words for it. Each row's actions (Undo this change, Restore this
|
|
7
|
+
// version) are the consumer's, in a more menu at its end. Before an action goes ahead, the consumer may ask under the
|
|
8
|
+
// row: an inline warning naming whose later changes go back, with its own two presses (Undo anyway, Cancel); when it
|
|
9
|
+
// closes, the focus goes back to the row's more button. A step an operator took for the person (Claude, acting for
|
|
10
|
+
// Ana) wears the operator's glyph as its face, the person's small face on it, and the consumer's words for both.
|
|
11
|
+
// S8 (2026-11-13): a row may open (`openable`, `onOpen`): its words are one press, ending in a chevron. The opened
|
|
12
|
+
// step stands in a head over the rows (`opened`): a back press, the step, its actions and its own warning. A name is
|
|
13
|
+
// typed under a row or in the head (`naming`). Skeleton rows while the rows load (`loading`), and one line above the
|
|
14
|
+
// rows (`notice`). Every word is the consumer's. Blueprint components/step-list.md.
|
|
15
|
+
import { useEffect, useId, useLayoutEffect, useRef, } from 'react';
|
|
12
16
|
import { Avatar } from '../avatar/index.js';
|
|
13
17
|
import { Button } from '../button/index.js';
|
|
18
|
+
import { Faces } from '../faces/index.js';
|
|
14
19
|
import { Icon } from '../icon/index.js';
|
|
20
|
+
import { Skeleton } from '../skeleton/index.js';
|
|
15
21
|
import { Text } from '../text/index.js';
|
|
22
|
+
import { TextField } from '../text-field/index.js';
|
|
16
23
|
import { PopMenuRows, usePopMenu } from '../pop-menu/index.js';
|
|
17
24
|
import { useResetFocus } from '../seed-steps/index.js';
|
|
25
|
+
// Is the focus nowhere, on the page, or inside `box`: then a part that is going may move it.
|
|
26
|
+
const adrift = (box) => {
|
|
27
|
+
const at = document.activeElement;
|
|
28
|
+
return !at || at === document.body || !!box?.contains(at);
|
|
29
|
+
};
|
|
30
|
+
// Something under a row or in the head that asks (a warning) or takes words (a name). As it opens, `enter` puts the
|
|
31
|
+
// focus in it; as it closes, a focus it held (now dropped to the page) or one still inside `box` goes to `back`.
|
|
32
|
+
function useInline(open, box, enter, back) {
|
|
33
|
+
const was = useRef(false);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (open)
|
|
36
|
+
enter();
|
|
37
|
+
else if (was.current && adrift(box.current))
|
|
38
|
+
back();
|
|
39
|
+
was.current = open;
|
|
40
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
41
|
+
}, [open]);
|
|
42
|
+
}
|
|
18
43
|
/** A file's history, newest first: who did what, when, and what can be done with each step. Blueprint components/step-list.md. */
|
|
19
|
-
export function StepList({ label, steps, moreLabel, onAction, onConfirm, onCancel, empty, older, className, ...rest }) {
|
|
44
|
+
export function StepList({ label, steps, moreLabel, onAction, onConfirm, onCancel, empty, older, peopleLabel, peopleMore, onOpen, openLabel, opened, naming, loading = false, notice, className, ...rest }) {
|
|
20
45
|
const list = useRef(null);
|
|
21
46
|
// A row that goes while the focus is in it gives the focus to the list, never to the page.
|
|
22
47
|
const lost = () => setTimeout(() => {
|
|
@@ -27,34 +52,169 @@ export function StepList({ label, steps, moreLabel, onAction, onConfirm, onCance
|
|
|
27
52
|
// Show older going while it holds the focus (the consumer drops `older` rather than disabling it): the list takes
|
|
28
53
|
// the focus, as it does from a row that goes.
|
|
29
54
|
const { press: olderPress } = useResetFocus(!!older, () => list.current);
|
|
30
|
-
|
|
55
|
+
// The opened step: as it appears, its back press takes the focus; as it goes, a focus left in the list or dropped
|
|
56
|
+
// to the page goes to the row that was opened (its open press, else its more button), else to the list.
|
|
57
|
+
const openedId = opened?.step.id;
|
|
58
|
+
const wasOpen = useRef(undefined);
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
const was = wasOpen.current;
|
|
61
|
+
wasOpen.current = openedId;
|
|
62
|
+
if (openedId !== undefined) {
|
|
63
|
+
// Opened straight into its name or its warning (the head's own effects ran first): the focus stays there.
|
|
64
|
+
const into = document.activeElement?.closest('.newtone-step-list-head :is(.newtone-step-list-naming, .newtone-step-list-confirm)');
|
|
65
|
+
if (openedId !== was && !into)
|
|
66
|
+
list.current
|
|
67
|
+
?.querySelector('.newtone-step-list-back')
|
|
68
|
+
?.focus({ preventScroll: true });
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (was === undefined || !adrift(list.current))
|
|
72
|
+
return;
|
|
73
|
+
const row = [...(list.current?.querySelectorAll('[data-step-id]') ?? [])].find((r) => r.dataset.stepId === was);
|
|
74
|
+
const to = row?.querySelector('.newtone-step-list-open') ??
|
|
75
|
+
row?.querySelector('.newtone-step-list-more');
|
|
76
|
+
(to ?? list.current)?.focus({ preventScroll: true });
|
|
77
|
+
}, [openedId]);
|
|
78
|
+
return (_jsxs("section", { ...rest, ref: list, tabIndex: -1, className: ['newtone-step-list', className].filter(Boolean).join(' '), "aria-label": label, "aria-busy": loading || undefined, children: [opened ? (_jsx(Head, { opened: opened, naming: naming?.stepId === 'opened' ? naming : undefined, peopleLabel: peopleLabel, peopleMore: peopleMore, onConfirm: onConfirm, onCancel: onCancel })) : null, _jsx("div", { className: "newtone-step-list-notice", role: "status", "data-tone": notice ? (notice.tone ?? 'neutral') : undefined, children: notice ? (_jsxs(_Fragment, { children: [notice.tone === 'warning' ? (_jsx(Icon, { name: "warning", size: "sm", tone: "warning" })) : null, _jsx(Text, { as: "span", scale: "body-sm", tone: "secondary", children: notice.text })] })) : null }), steps.length ? (_jsx("ol", { className: "newtone-step-list-steps", children: steps.map((s) => (_jsx(Step, { step: s, moreLabel: moreLabel, peopleLabel: peopleLabel, peopleMore: peopleMore, onOpen: onOpen, openLabel: openLabel, naming: naming?.stepId === s.id ? naming : undefined, onAction: onAction, onConfirm: onConfirm, onCancel: onCancel, onLost: lost, list: list }, s.id))) })) : empty && !loading ? (_jsx(Text, { as: "p", scale: "body-sm", tone: "secondary", className: "newtone-step-list-empty", children: empty })) : null, loading ? (_jsx("div", { className: "newtone-step-list-loading", "aria-hidden": "true", children: [70, 55, 62].map((w) => (_jsx("div", { className: "newtone-step-list-step newtone-step-list-ghost", children: _jsxs("div", { className: "newtone-step-list-row", children: [_jsx(Skeleton.Circle, { size: "1.75rem" }), _jsxs("span", { className: "newtone-step-list-text", children: [_jsx(Skeleton.Line, { size: "body-sm", width: `${w}%` }), _jsx(Skeleton.Line, { size: "body-sm", width: "35%" })] })] }) }, w))) })) : null, older ? (_jsxs("div", { className: "newtone-step-list-older", children: [_jsx(Button, { size: "sm", variant: "tertiary", className: "newtone-step-list-older-press", disabledFocusable: older.disabled, ...olderPress, onClick: () => older.onPress(), children: older.label }), older.note ? (_jsx(Text, { as: "p", scale: "caption", tone: "secondary", children: older.note })) : null] })) : null] }));
|
|
31
79
|
}
|
|
32
80
|
// The glyph a kind of step wears before its label. A literal per kind, so a consumer's icon subsetting finds every name.
|
|
33
81
|
const KIND = { undo: 'undo', restore: 'history' };
|
|
34
|
-
|
|
82
|
+
// A step's face: its people's faces, an operator's glyph with the person's small face on it, or the person's face.
|
|
83
|
+
// Without `peopleLabel`, the stack is no group (an unnamed group says nothing of use); each face still says its name.
|
|
84
|
+
function Face({ step: s, peopleLabel, peopleMore, }) {
|
|
85
|
+
if (s.people?.length)
|
|
86
|
+
return (_jsx(Faces, { className: "newtone-step-list-face newtone-step-list-people", people: s.people, label: peopleLabel ?? '', more: peopleMore, max: 3, size: "1.75rem", ...(peopleLabel ? {} : { role: undefined, 'aria-label': undefined }) }));
|
|
87
|
+
if (s.operator)
|
|
88
|
+
return (_jsxs("span", { className: "newtone-step-list-face newtone-step-list-operator", children: [_jsx(Icon, { name: s.operator.icon ?? 'auto_awesome', size: "sm", fill: true }), s.who ? (_jsx(Avatar, { className: "newtone-step-list-for", alt: "", src: s.who.src, initials: s.who.initials, extended: s.who.extended, size: "0.875rem" })) : null] }));
|
|
89
|
+
if (s.who)
|
|
90
|
+
return (_jsx(Avatar, { className: "newtone-step-list-face", alt: "", src: s.who.src, initials: s.who.initials, extended: s.who.extended, size: "1.75rem" }));
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
// What a step did, and who and when under it: the name and the time said apart (a dot seen, a comma said). With
|
|
94
|
+
// `people`, the faces say who, and the line says when alone.
|
|
95
|
+
function Words({ step: s, labelId, metaId, takenId, }) {
|
|
96
|
+
const who = s.people?.length ? undefined : (s.operator?.label ?? s.who?.name);
|
|
97
|
+
return (_jsxs("span", { className: "newtone-step-list-text", children: [_jsxs(Text, { as: "span", scale: "body-sm", weight: "medium", tone: s.takenBack ? 'secondary' : undefined, struck: !!s.takenBack, className: "newtone-step-list-label", id: labelId, children: [s.kind ? (_jsx(Icon, { name: KIND[s.kind], size: "sm", className: "newtone-step-list-kind" })) : null, s.label] }), _jsxs(Text, { as: "span", scale: "caption", tone: "secondary", className: "newtone-step-list-meta", id: metaId, children: [who ? (_jsxs(_Fragment, { children: [who, _jsx("span", { "aria-hidden": "true", children: " \u00B7 " }), _jsx("span", { className: "newtone-step-list-pause", children: ", " })] })) : null, s.at ? _jsx("time", { dateTime: s.at, children: s.when }) : s.when] }), s.takenBack ? (_jsx(Text, { as: "span", scale: "caption", tone: "secondary", className: "newtone-step-list-taken", id: takenId, children: s.takenBack })) : null] }));
|
|
98
|
+
}
|
|
99
|
+
// A warning under a row or the head: its message, a press that goes ahead and a safe one (the last, which takes the
|
|
100
|
+
// focus as it opens, so Enter does not go ahead by chance). Escape in it is cancel.
|
|
101
|
+
function Confirm({ confirm, label, presses, onConfirm, onCancel, }) {
|
|
102
|
+
return (_jsxs("div", { className: "newtone-step-list-confirm", role: "group", "aria-label": label, onKeyDown: (e) => {
|
|
103
|
+
if (e.key !== 'Escape')
|
|
104
|
+
return;
|
|
105
|
+
e.preventDefault();
|
|
106
|
+
e.stopPropagation();
|
|
107
|
+
onCancel();
|
|
108
|
+
}, children: [_jsxs("div", { className: "newtone-step-list-warning", role: "alert", children: [_jsx(Icon, { name: "warning", size: "sm", tone: "warning" }), _jsx(Text, { as: "p", scale: "body-sm", children: confirm.message })] }), _jsxs("div", { ref: presses, className: "newtone-step-list-presses", children: [_jsx(Button, { size: "sm", variant: "secondary", onClick: onConfirm, children: confirm.confirm }), _jsx(Button, { size: "sm", variant: "tertiary", onClick: onCancel, children: confirm.cancel })] })] }));
|
|
109
|
+
}
|
|
110
|
+
// A name typed inline: a TextField, then Save and Cancel. The field holds no state of its own the consumer cannot see
|
|
111
|
+
// (TextField takes no `value`): it starts at the consumer's value, tells every change, and is set again when the
|
|
112
|
+
// consumer's value moves from outside.
|
|
113
|
+
function Naming({ naming: n, box, }) {
|
|
114
|
+
const id = useId();
|
|
115
|
+
const empty = !!n.required && !n.value.trim();
|
|
116
|
+
useLayoutEffect(() => {
|
|
117
|
+
const input = box.current?.querySelector('input');
|
|
118
|
+
if (input && input.value !== n.value)
|
|
119
|
+
input.value = n.value;
|
|
120
|
+
}, [n.value, box]);
|
|
121
|
+
const keys = (e) => {
|
|
122
|
+
if (e.key === 'Escape') {
|
|
123
|
+
e.preventDefault();
|
|
124
|
+
e.stopPropagation();
|
|
125
|
+
n.onCancel();
|
|
126
|
+
}
|
|
127
|
+
else if (e.key === 'Enter' && !e.nativeEvent.isComposing && e.keyCode !== 229) {
|
|
128
|
+
e.preventDefault();
|
|
129
|
+
e.stopPropagation();
|
|
130
|
+
if (!empty)
|
|
131
|
+
n.onSubmit(n.value);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
return (_jsxs("div", { ref: box, className: "newtone-step-list-naming", children: [_jsx(TextField, { label: n.label, name: "newtone-step-list-name", id: `newtone-step-list-name-${id}`, defaultValue: n.value, maxLength: n.maxLength, required: n.required, autoComplete: "off", onInput: (e) => n.onChange(e.currentTarget.value), onKeyDown: keys }), _jsxs("div", { className: "newtone-step-list-presses", onKeyDown: (e) => {
|
|
135
|
+
if (e.key !== 'Escape')
|
|
136
|
+
return;
|
|
137
|
+
e.preventDefault();
|
|
138
|
+
e.stopPropagation();
|
|
139
|
+
n.onCancel();
|
|
140
|
+
}, children: [_jsx(Button, { size: "sm", variant: "primary", disabledFocusable: empty, onClick: () => n.onSubmit(n.value), children: n.save }), _jsx(Button, { size: "sm", variant: "tertiary", onClick: () => n.onCancel(), children: n.cancel })] })] }));
|
|
141
|
+
}
|
|
142
|
+
const intoField = (box) => {
|
|
143
|
+
const input = box.current?.querySelector('input');
|
|
144
|
+
input?.focus({ preventScroll: true });
|
|
145
|
+
input?.select();
|
|
146
|
+
};
|
|
147
|
+
// The opened step, over the rows: the press back, the step, its presses, and what it asks or is named.
|
|
148
|
+
function Head({ opened: o, naming, peopleLabel, peopleMore, onConfirm, onCancel, }) {
|
|
149
|
+
const id = useId();
|
|
150
|
+
const head = useRef(null);
|
|
151
|
+
const presses = useRef(null);
|
|
152
|
+
const field = useRef(null);
|
|
153
|
+
// The press that asked (Restore this version, Name this version): the focus goes back to it, else to the back press.
|
|
154
|
+
const asker = useRef(null);
|
|
155
|
+
const back = () => {
|
|
156
|
+
const to = asker.current?.isConnected
|
|
157
|
+
? asker.current
|
|
158
|
+
: head.current?.querySelector('.newtone-step-list-back');
|
|
159
|
+
to?.focus({ preventScroll: true });
|
|
160
|
+
};
|
|
161
|
+
useInline(!!o.confirm, head, () => presses.current?.querySelector('button:last-child')?.focus(), back);
|
|
162
|
+
useInline(!!naming, head, () => intoField(field), back);
|
|
163
|
+
// A press of the head going while it holds the focus (Restore this version, gone once the version is the current
|
|
164
|
+
// one): the focus goes to the press now in its place, else the last, else the back press; never to the page.
|
|
165
|
+
const lost = (at) => setTimeout(() => {
|
|
166
|
+
const now = document.activeElement;
|
|
167
|
+
if (!head.current?.isConnected || (now && now !== document.body))
|
|
168
|
+
return;
|
|
169
|
+
const actions = [
|
|
170
|
+
...head.current.querySelectorAll('.newtone-step-list-head-actions > button'),
|
|
171
|
+
];
|
|
172
|
+
const to = actions[at] ??
|
|
173
|
+
actions[actions.length - 1] ??
|
|
174
|
+
head.current.querySelector('.newtone-step-list-back');
|
|
175
|
+
to?.focus({ preventScroll: true });
|
|
176
|
+
});
|
|
177
|
+
// Named by the opened step's words, so the back press, which takes the focus, is heard inside it.
|
|
178
|
+
return (_jsxs("div", { ref: head, className: "newtone-step-list-head", role: "group", "aria-labelledby": `${id}-label ${id}-meta`, children: [_jsx(Button, { size: "sm", variant: "tertiary", iconStart: "arrow_back", className: "newtone-step-list-back", onClick: () => o.back.onPress(), children: o.back.label }), _jsxs("div", { className: "newtone-step-list-row newtone-step-list-opened", children: [_jsx(Face, { step: o.step, peopleLabel: peopleLabel, peopleMore: peopleMore }), _jsx(Words, { step: o.step, labelId: `${id}-label`, metaId: `${id}-meta` })] }), o.actions?.length ? (_jsx("div", { className: "newtone-step-list-presses newtone-step-list-head-actions", children: o.actions.map((a) => (_jsx(HeadAction, { action: a, onLost: lost, onPress: (press) => {
|
|
179
|
+
asker.current = press;
|
|
180
|
+
o.onAction?.(a.id);
|
|
181
|
+
} }, a.id))) })) : null, naming ? _jsx(Naming, { naming: naming, box: field }) : null, o.confirm ? (_jsx(Confirm, { confirm: o.confirm, label: o.step.label, presses: presses, onConfirm: () => onConfirm?.('opened'), onCancel: () => onCancel?.('opened') })) : null] }));
|
|
182
|
+
}
|
|
183
|
+
// One press of the head. Going while it holds the focus, it tells the head where it stood (`onLost`), before it leaves
|
|
184
|
+
// the page.
|
|
185
|
+
function HeadAction({ action: a, onPress, onLost, }) {
|
|
186
|
+
const el = useRef(null);
|
|
187
|
+
useLayoutEffect(() => () => {
|
|
188
|
+
const b = el.current;
|
|
189
|
+
if (b && b === document.activeElement)
|
|
190
|
+
onLost(b.parentElement ? [...b.parentElement.children].indexOf(b) : 0);
|
|
191
|
+
},
|
|
192
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
193
|
+
[]);
|
|
194
|
+
return (_jsx(Button, { size: "sm", variant: a.variant ?? 'secondary', onFocus: (e) => {
|
|
195
|
+
el.current = e.currentTarget;
|
|
196
|
+
}, onClick: (e) => onPress(e.currentTarget), children: a.label }));
|
|
197
|
+
}
|
|
198
|
+
function Step({ step: s, moreLabel, peopleLabel, peopleMore, onOpen, openLabel, naming, onAction, onConfirm, onCancel, onLost, list, }) {
|
|
35
199
|
const pop = usePopMenu('below', 'menu');
|
|
36
200
|
const row = useRef(null);
|
|
37
201
|
const presses = useRef(null);
|
|
202
|
+
const field = useRef(null);
|
|
203
|
+
const id = useId();
|
|
204
|
+
// As a warning or a name under the row closes (either press, Escape, Enter, or the consumer clearing it), a focus
|
|
205
|
+
// it held goes back to the row's more button, else its open press, else the list.
|
|
206
|
+
const back = () => {
|
|
207
|
+
const to = pop.button.ref.current ??
|
|
208
|
+
row.current?.querySelector('.newtone-step-list-open');
|
|
209
|
+
if (to)
|
|
210
|
+
to.focus();
|
|
211
|
+
else if (list.current)
|
|
212
|
+
onLost();
|
|
213
|
+
};
|
|
38
214
|
// The warning takes the focus as it opens, on its safe press (the last), so it is read and Enter does not go ahead
|
|
39
|
-
// by chance.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const asked = useRef(false);
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
if (asking)
|
|
45
|
-
presses.current?.querySelector('button:last-child')?.focus();
|
|
46
|
-
else if (asked.current) {
|
|
47
|
-
const at = document.activeElement;
|
|
48
|
-
if (!at || at === document.body || row.current?.contains(at)) {
|
|
49
|
-
if (pop.button.ref.current)
|
|
50
|
-
pop.button.ref.current.focus();
|
|
51
|
-
else
|
|
52
|
-
onLost();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
asked.current = asking;
|
|
56
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
57
|
-
}, [asking]);
|
|
215
|
+
// by chance.
|
|
216
|
+
useInline(!!s.confirm, row, () => presses.current?.querySelector('button:last-child')?.focus(), back);
|
|
217
|
+
useInline(!!naming, row, () => intoField(field), back);
|
|
58
218
|
// The row itself going while the focus is in it (a step dropped from the list): the list takes it.
|
|
59
219
|
useLayoutEffect(() => {
|
|
60
220
|
const li = row.current;
|
|
@@ -65,12 +225,18 @@ function Step({ step: s, moreLabel, onAction, onConfirm, onCancel, onLost, }) {
|
|
|
65
225
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
66
226
|
}, []);
|
|
67
227
|
const more = `${moreLabel}: ${s.label}`;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
228
|
+
const opens = !!s.openable && !!onOpen;
|
|
229
|
+
const acts = !!s.actions?.length;
|
|
230
|
+
// The open press or the more button going while it holds the focus (a step that stops opening after a failed open,
|
|
231
|
+
// its actions taken away): the focus goes to the row's other press, else the list; never to the page.
|
|
232
|
+
const { press: openPress } = useResetFocus(opens, () => pop.button.ref.current ?? list.current);
|
|
233
|
+
const { press: morePress } = useResetFocus(acts, () => row.current?.querySelector('.newtone-step-list-open') ?? list.current);
|
|
234
|
+
const metaId = `${id}-meta`;
|
|
235
|
+
const takenId = s.takenBack ? `${id}-taken` : undefined;
|
|
236
|
+
// Who changed it, said with an open press (the faces stand outside it): the list's people words, then their names.
|
|
237
|
+
const peopleId = opens && s.people?.length ? `${id}-people` : undefined;
|
|
238
|
+
return (_jsxs("li", { ref: row, className: "newtone-step-list-step", "data-step-id": s.id, "data-taken-back": s.takenBack ? '' : undefined, "data-current": s.current ? '' : undefined, "aria-current": s.current ? 'step' : undefined, children: [_jsxs("div", { className: "newtone-step-list-row", children: [_jsx(Face, { step: s, peopleLabel: peopleLabel, peopleMore: peopleMore }), peopleId ? (_jsx("span", { id: peopleId, hidden: true, children: [peopleLabel, s.people?.map((p) => p.name).join(', ')]
|
|
239
|
+
.filter(Boolean)
|
|
240
|
+
.join(' ') })) : null, opens ? (_jsxs("button", { type: "button", className: "newtone-step-list-open", "aria-label": openLabel ? `${openLabel}: ${s.label}` : s.label, "aria-describedby": [peopleId, metaId, takenId].filter(Boolean).join(' '), ...openPress, onClick: () => onOpen?.(s.id), children: [_jsx(Words, { step: s, metaId: metaId, takenId: takenId }), _jsx(Icon, { name: "chevron_right", size: "sm", className: "newtone-step-list-chevron" })] })) : (_jsx(Words, { step: s })), acts ? (_jsxs(_Fragment, { children: [_jsx("button", { ...pop.button, ...morePress, className: "newtone-step-list-more", "aria-label": more, title: moreLabel, children: _jsx(Icon, { name: "more_horiz", size: "sm" }) }), _jsx("div", { ...pop.menu, "aria-label": more, children: pop.open ? (_jsx(PopMenuRows, { items: s.actions ?? [], onPick: (a) => pop.done(() => onAction?.(s.id, a)) })) : null })] })) : null] }), naming ? _jsx(Naming, { naming: naming, box: field }) : null, s.confirm ? (_jsx(Confirm, { confirm: s.confirm, label: s.label, presses: presses, onConfirm: () => onConfirm?.(s.id), onCancel: () => onCancel?.(s.id) })) : null] }));
|
|
75
241
|
}
|
|
76
242
|
//# sourceMappingURL=step-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-list.js","sourceRoot":"","sources":["../../src/step-list/step-list.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AACZ,uHAAuH;AACvH,wHAAwH;AACxH,uHAAuH;AACvH,wHAAwH;AACxH,uHAAuH;AACvH,qHAAqH;AACrH,mHAAmH;AACnH,kHAAkH;AAElH,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAuC,MAAM,OAAO,CAAA;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAmGtD,kIAAkI;AAClI,MAAM,UAAU,QAAQ,CAAC,EACrB,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,IAAI,EACK;IACZ,MAAM,IAAI,GAAG,MAAM,CAAc,IAAI,CAAC,CAAA;IACtC,2FAA2F;IAC3F,MAAM,IAAI,GAAG,GAAG,EAAE,CACd,UAAU,CAAC,GAAG,EAAE;QACZ,MAAM,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAA;QACjC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,QAAQ,CAAC,IAAI;YAAE,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,aA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E,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtD,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,OAAO,IACJ,OAAO,EAAE,CAAC,CAAC,OAAO,EAClB,KAAK,EAAE,CAAC,CAAC,KAAK,EACd,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAClC,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAClC,CACL,CAAC,CAAC,CAAC,IAAI,IACP,CACR,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/step-strip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,YAAY,EACR,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,gBAAgB,GACnB,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/step-strip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA"}
|