@crewlethq/ui 0.180.0 → 0.182.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 +54 -2
- package/dist/AgentHandoffPanel/index.js +4 -4
- package/dist/AgentIdentity/index.js +11 -5
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeList/index.js +4 -4
- package/dist/ArtifactCard/index.js +4 -4
- package/dist/AssignmentList/AssignmentList.d.ts +78 -0
- package/dist/AssignmentList/index.d.ts +3 -0
- package/dist/AssignmentList/index.js +8 -0
- package/dist/AssignmentList-3NZQFSYD.css +297 -0
- package/dist/ChangeList/ChangeGroups.d.ts +28 -0
- package/dist/ChangeList/ChangeList.d.ts +18 -1
- package/dist/ChangeList/index.d.ts +2 -0
- package/dist/ChangeList/index.js +11 -1
- package/dist/{ChangeList-R4UZBGU5.css → ChangeList-2VAPZDT3.css} +99 -0
- package/dist/CheckGrid/index.js +4 -4
- package/dist/Checkbox/index.js +3 -3
- package/dist/ChipField/index.js +2 -2
- package/dist/ColorField/index.js +3 -3
- package/dist/Combobox/index.js +3 -3
- package/dist/CommandPalette/index.js +16 -4
- package/dist/CommentThread/index.js +4 -4
- package/dist/Composer/index.js +3 -3
- package/dist/ConfirmField/index.js +3 -3
- package/dist/ConfirmModal-V2OAWUGJ.css +14 -0
- package/dist/ConsequenceList/ConsequenceList.d.ts +65 -0
- package/dist/ConsequenceList/index.d.ts +3 -0
- package/dist/ConsequenceList/index.js +23 -0
- package/dist/ConsequenceList-EEXTCT6J.css +74 -0
- package/dist/ContrastHelp/index.js +1 -1
- package/dist/DataGrid/index.js +4 -4
- package/dist/DataTable/index.js +17 -5
- package/dist/DataView/index.js +18 -7
- package/dist/DocTabsEditor/index.js +3 -3
- package/dist/DurationField/index.js +4 -4
- package/dist/{Editor-N3HLIXHX.js → Editor-HW7A54RA.js} +3 -3
- package/dist/EmojiPicker/index.js +3 -3
- package/dist/GraphCanvas/index.js +2 -2
- package/dist/InboxList/index.js +2 -2
- package/dist/Input/index.js +2 -2
- package/dist/KeyValueRows/index.js +3 -3
- package/dist/LinkInterstitial/index.js +20 -3
- package/dist/ListInput/index.js +3 -3
- package/dist/MemberPicker/index.js +4 -4
- package/dist/MessageActions/index.js +4 -4
- package/dist/Modal/ConfirmModal.d.ts +35 -2
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Modal/index.js +20 -1
- package/dist/MoneyField/index.js +3 -3
- package/dist/NumberField/index.js +3 -3
- package/dist/OrgTable/index.js +6 -6
- package/dist/PrincipalPicker/index.js +4 -4
- package/dist/ProposalCard/index.js +8 -8
- package/dist/RailList/index.js +1 -1
- package/dist/ReactionBar/index.js +4 -4
- package/dist/RichEditor/index.js +1 -1
- package/dist/ScopeList/index.js +4 -4
- package/dist/SelectionBar/index.js +2 -2
- package/dist/SettingForm/index.js +3 -3
- package/dist/ShareDialog/index.js +20 -3
- package/dist/SheetColumnEditor/index.js +4 -4
- package/dist/SheetGrid/index.js +1 -1
- package/dist/SlideFilmstrip/index.js +1 -1
- package/dist/Switcher/index.js +17 -5
- package/dist/TagsInput/index.js +2 -2
- package/dist/TimeRangePicker/index.js +15 -4
- package/dist/TimeWindowPicker/index.js +3 -3
- package/dist/TreeGrid/index.js +5 -5
- package/dist/ValueField/index.js +4 -4
- package/dist/{chunk-HHQFTPHY.js → chunk-2EBAGM5E.js} +1 -1
- package/dist/{chunk-U32DZ6Q4.js → chunk-2XKPQBAX.js} +1 -1
- package/dist/{chunk-SKDMFJZD.js → chunk-3ZMDQUFO.js} +1 -1
- package/dist/{chunk-BIOS7CQN.js → chunk-5WPNDMMI.js} +1 -1
- package/dist/{chunk-65ACQRWE.js → chunk-6PXXUHIH.js} +2 -2
- package/dist/{chunk-5KUJWSPT.js → chunk-CVKCSJ5F.js} +1 -1
- package/dist/{chunk-SN2FN2XW.js → chunk-D54HL3AN.js} +103 -14
- package/dist/{chunk-BFYADGPT.js → chunk-DJXY65LN.js} +2 -2
- package/dist/{chunk-NC4CT5D3.js → chunk-DKXMP3LN.js} +1 -1
- package/dist/{chunk-5MRK6I7V.js → chunk-FF2YPFIZ.js} +1 -1
- package/dist/{chunk-VDJJSZ6N.js → chunk-G5W5ZLIL.js} +1 -1
- package/dist/{chunk-7PLFR7AF.js → chunk-G7YITKUF.js} +2 -2
- package/dist/{chunk-PZ6CR4F2.js → chunk-GJVLQXDA.js} +2 -2
- package/dist/{chunk-QXKPMRUG.js → chunk-GQAHG6NB.js} +2 -2
- package/dist/{chunk-TTN5QKIV.js → chunk-H36ZMY4G.js} +1 -1
- package/dist/{chunk-W6NSF6E2.js → chunk-H7L4ZEVN.js} +1 -1
- package/dist/{chunk-FC225TSK.js → chunk-HLIWHEXR.js} +33 -2
- package/dist/{chunk-KYW3GH2W.js → chunk-IUCQ5WOX.js} +1 -1
- package/dist/{chunk-NJCF4FUM.js → chunk-IZDILOZ5.js} +2 -2
- package/dist/{chunk-ZMY5F3SF.js → chunk-JLZ37UFI.js} +2 -2
- package/dist/{chunk-MQJQVEFQ.js → chunk-JZN5VTHT.js} +1 -1
- package/dist/{chunk-MVSR3KE6.js → chunk-KHELXOOP.js} +1 -1
- package/dist/{chunk-PL4YO2KU.js → chunk-KIPQWDPP.js} +2 -2
- package/dist/{chunk-L3QL5QLE.js → chunk-LBLHL5KZ.js} +1 -1
- package/dist/chunk-LNS3I6MG.js +68 -0
- package/dist/{chunk-CIFX64WT.js → chunk-NRE7D5JZ.js} +2 -2
- package/dist/{chunk-2SX6FP6K.js → chunk-NYIVZNML.js} +3 -3
- package/dist/{chunk-7YI6OCXI.js → chunk-P3UGTTUA.js} +1 -1
- package/dist/{chunk-YXOCR6QP.js → chunk-QFO375KV.js} +1 -1
- package/dist/{chunk-JMNVSA65.js → chunk-R4A2Y7HG.js} +2 -2
- package/dist/{chunk-RTVKQOK3.js → chunk-RMBPTHLK.js} +1 -1
- package/dist/{chunk-SYAK2KOB.js → chunk-RRMZ5ITI.js} +1 -1
- package/dist/{chunk-3LS2XHI5.js → chunk-SEBNQVEU.js} +1 -1
- package/dist/{chunk-QOEOXKV2.js → chunk-SFKAZSZE.js} +1 -1
- package/dist/{chunk-KLNQEBYF.js → chunk-TEAHPDQM.js} +1 -1
- package/dist/{chunk-5TNJEP2C.js → chunk-TEHDRA7W.js} +2 -2
- package/dist/{chunk-WP2MLABG.js → chunk-TICGBUBC.js} +1 -1
- package/dist/{chunk-PCS2ZEIM.js → chunk-UI37YHEJ.js} +4 -4
- package/dist/{chunk-7YAEM37E.js → chunk-UJSD6N7V.js} +1 -1
- package/dist/{chunk-DPEMGLRK.js → chunk-WG7GNCUQ.js} +1 -1
- package/dist/{chunk-SYL6JDZH.js → chunk-X6FJSY3C.js} +1 -1
- package/dist/chunk-XDTWKLEX.js +103 -0
- package/dist/{chunk-2OYZFXUY.js → chunk-ZZCUQWA2.js} +2 -2
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +108 -106
- package/dist/index.js +108 -106
- package/dist/styles.css +494 -1
- package/package.json +3 -3
- package/dist/{chunk-FA6ROZOF.js → chunk-3OZCJUFS.js} +1 -1
- package/dist/{chunk-L3RGZSNE.js → chunk-GF7VSU5G.js} +1 -1
- package/dist/{chunk-5643FBGN.js → chunk-KF7ZOWJW.js} +1 -1
- package/dist/{chunk-LVCYS5JG.js → chunk-KH4HKMXF.js} +1 -1
- package/dist/{chunk-ITFAH735.js → chunk-L4BKQVXX.js} +1 -1
- package/dist/{chunk-OD7LFCYV.js → chunk-UTPLRVXN.js} +1 -1
- package/dist/{chunk-4BTFE223.js → chunk-XIZI47NY.js} +1 -1
- /package/dist/{chunk-IMD3SCK7.js → chunk-YDDWUJ4O.js} +0 -0
package/README.md
CHANGED
|
@@ -44,11 +44,11 @@ import { Button } from '@crewlethq/ui/Button'; // 8 KB of CSS, not 182 KB
|
|
|
44
44
|
| Content and text | `Text` (the eight registers and `inherit`; a line cut by `truncate` or `clamp` shows its whole words on hover), `Prose`, `Statement`, `Document`, `DocumentTitle` and `DocumentTitleField`, the Markdown grammar (`parseMarkdown`, `parseMarkdownSpans`, `markdownInline`, `safeHref` and the line readers, with no React in it), `Highlight`, `InlineCode`, `List` and `ListItem`, `DescriptionList`, `Timeline`, `StepTimeline` (a process's steps, one plain line each with its state, with `STEP_TIMELINE_LABELS`), `RelativeTime`, `Note`, `Divider` |
|
|
45
45
|
|
|
46
46
|
| Content and text | `Text` (the eight registers and `inherit`; a line cut by `truncate` or `clamp` shows its whole words on hover), `Prose`, `Statement`, `Document`, `DocumentTitle` and `DocumentTitleField`, the Markdown grammar (`parseMarkdown`, `parseMarkdownSpans`, `markdownInline`, `safeHref` and the line readers, with no React in it), `Highlight`, `InlineCode`, `List` and `ListItem`, `DescriptionList`, `Timeline`, `RelativeTime`, `Note`, `Divider`, `VendorUI` (a name on a vendor's screen, a menu path with its levels), `StepLink` (the words of a step that name a vendor's page, linked) and `VendorText` (a vendor instruction drawn from its parts, with `VendorTextPart` and `vendorTextString`) |
|
|
47
|
-
| Forms | `Input`, `Textarea`, `Label`, `FormField`, `FormRow`, `Checkbox`, `CheckboxGroup`, `ConfirmField`, `Select`, `Tag`, `TagsInput`, `DateTimePicker`, `TimeWindowPicker`, `TimeRangePicker`, `ImageUpload`, `CharacterPicker`, `HuePicker`, `AvatarPicker`, `FactList`, `ChoiceList`, `ChoiceCards`, `MemberPicker` (groups granted whole, with members left out or chosen on their own, and `chosenMembers`), `KeyValueRows` (keys and their values as rows under one column head, with `keyValueRowsLabels`), `ChipField` (chosen items as chips inside the field), `PersonRow` (a person or an agent as one row of a list), `Composer`, `MarkdownEditor`, `RichEditor` (with `preloadRichEditor`, and the round trip `roundTripMarkdown` and `canonicalMarkdown` from `@crewlethq/ui/RichEditorMarkdown`), `MoneyField` (an amount typed as text, never a number, with `moneyFieldProblem`), `ScopeList` (what an agent may reach at a vendor, a row to tick each: the name first, its IDs quiet, with `SCOPE_LIST_LABELS`) |
|
|
47
|
+
| Forms | `Input`, `Textarea`, `Label`, `FormField`, `FormRow`, `Checkbox`, `CheckboxGroup`, `ConfirmField`, `Select`, `Tag`, `TagsInput`, `DateTimePicker`, `TimeWindowPicker`, `TimeRangePicker`, `ImageUpload`, `CharacterPicker`, `HuePicker`, `AvatarPicker`, `FactList`, `ChoiceList`, `ChoiceCards`, `MemberPicker` (groups granted whole, with members left out or chosen on their own, and `chosenMembers`), `KeyValueRows` (keys and their values as rows under one column head, with `keyValueRowsLabels`), `ChipField` (chosen items as chips inside the field), `PersonRow` (a person or an agent as one row of a list), `Composer`, `MarkdownEditor`, `RichEditor` (with `preloadRichEditor`, and the round trip `roundTripMarkdown` and `canonicalMarkdown` from `@crewlethq/ui/RichEditorMarkdown`), `MoneyField` (an amount typed as text, never a number, with `moneyFieldProblem`), `ScopeList` (what an agent may reach at a vendor, a row to tick each: the name first, its IDs quiet, with `SCOPE_LIST_LABELS`), `AssignmentList` and `AssignmentPicker` (who is assigned what, the value right after the name, a name that links and a value split by part, with `ASSIGNMENT_LIST_LABELS`) |
|
|
48
48
|
| Data display | `DataGrid` (with `useDataGridDriving`, `useAnyDataGridDriving` and `countDataGridRows`), `DataTable`, `CopyableCell`, `Table`, the read-only table cells (`TableKeyCell`, `TableNumberCell`, `TableDateCell`, `TableEntityCell`, `TableStatusCell`, `TableTagsCell`, `TableTextCell`, `TableTwoLineCell`), `StatCard`, `Meter`, `SegmentedMeter`, `Stepper`, `PricingCard`, `Avatar`, `AvatarStack`, `EntityChip`, `CodeBlock`, `QrCode`, `ObjectHeader`, `FactLine`, `SetByLine` (set, seen, observed or confirmed by, with `SET_BY_VERBS`), `GraphCanvas` (a layered map of clusters, groups and three families of line, with its legend, the card beside an entry, the selection dock and fullscreen, its pure layout `layoutGraph`, the trunks `graphTrunks`, the reach `graphReach` and the keyboard walk `graphStep`), `Skeleton`, `Eyebrow`, `StatGroup`, `PinTile`, `IconTile`, `SettingsTable` (with `SettingsTable.Row`), `CatalogTile`, `Money` (an amount drawn from integer micros, with `formatMoney`, `parseMoney`, `moneyDecimal`, `minorUnits`, `sumByCurrency`, `toMicros` and `decimalOf`), `Rating` (stars, read only) |
|
|
49
49
|
| List screens | `DataView`, and its parts on their own: `DataViewToolbar`, `FilterAxisBar`, `FilterAxisChip`, `FilterPill`, plus the filter model (`filterDefsFromColumns`, `applyColumnFilters`, `filterPredicate`, `blankFilterValue`) |
|
|
50
50
|
| Agents at vendors | `AgentIdentity` (an agent's identity at a vendor, heading its box, with `AGENT_IDENTITY_CHIPS`, `AGENT_IDENTITY_WORDS`, `AGENT_IDENTITY_NEEDS_YOU`, `agentIdentityNeedsSetUp` and `agentIdentityNeedsYou`), `AgentIdentitySheet` (the one three-step sheet every vendor's identity is set up in) |
|
|
51
|
-
| Feedback and overlays | `Callout`, `NoticeList` and `groupNotices` (several notices from one source, each said once), `AttentionList` (what needs a person, as rows in one card), `ConflictNote`, `EditingStatus`, `Toaster`, `Modal` (with `variant="sheet"`), `ConfirmModal`, `CommandPalette`, `Tooltip`, `Popover`, `Announcer` |
|
|
51
|
+
| Feedback and overlays | `Callout`, `NoticeList` and `groupNotices` (several notices from one source, each said once), `AttentionList` (what needs a person, as rows in one card), `ConflictNote`, `EditingStatus`, `Toaster`, `Modal` (with `variant="sheet"`), `ConfirmModal` (with `moveTo`, `changes`, `consequences` and `alternative`: see [Confirmation dialogs](#confirmation-dialogs)), `ConsequenceList` (with `ResourceName` and `consequencesAnswered`), `ChangeGroups`, `CommandPalette`, `Tooltip`, `Popover`, `Announcer` |
|
|
52
52
|
| Documents and review | `DiffView` and `DiffSummary` with the line diff they draw (`compareLines`, `compareSequences`, `changedRuns`, `diffStat`, `collapseDiff`, `firstChangedLines`, `splitLines`, with no React in it), `DiffList`, `VersionCompare`, `CommentThread` |
|
|
53
53
|
| Conversations and the assistant | `ChatThread` (with `ChatThreadHandle`), `ChatMessage` and `ChatMessageFailure`, `MessageActions` (with `MessageAction`, `QuickReaction` and `ActionDivider`), `ReactionBar` and `AddReaction` (with `reactionWho`), `EmojiPicker` (with `EMOJI_GROUPS`, `emojiName` and `searchEmoji`), `ThreadSummary`, `ActivityLine`, `WorkingLine` (every agent at work on one line, with `workingSentence`, `workingAnnouncement` and `BouncingDots`), `MentionChip`, `MessageBubble`, `RunChip`, `StepList` and `StepStateMark`, `ProposalCard`, `ChangeList` (with `shortenUnchanged`), `StatusCard`, `ReceiptStrip`, `RefusalStrip`, `ResultTableCard`, `OpenInAppCard`, `BriefCard` (with `points`, what was said, each citing its message), `EntityList`, `RecordChip` and `RecordChipList` (a record named in a sentence, opening a peek, and the Also read line), `RefusalCard`, `SuggestionRow` and `SuggestionList`, `SendButton`, a transcript's timeline (`ChatDay` with `ChatDayPill`, `ChatDivider`), `LinkCard` (a link unfurled under its message), `MentionMenu` (with `mentionQuery`), `ActionCard` and `ActionCardRow` |
|
|
54
54
|
| Charts | `Legend`, `BarList`, `StackedBar`, `StackedColumns`, `StackedRing`, `ActivityStrip`, `TimeSeries`, `Sparkline` (with its `fine` weight), the reading layer they share (`ChartTooltip`, `useChartHover`), and the ramp (`DATA_COLORS`, `DATA_COLOR_OTHER`, `dataColor`) |
|
|
@@ -211,6 +211,58 @@ places:
|
|
|
211
211
|
- A surface that pans or zooms dispatches `LAYER_REPOSITION_EVENT` on its host
|
|
212
212
|
when the content beneath it moves, and every panel anchored inside follows.
|
|
213
213
|
|
|
214
|
+
## Confirmation dialogs
|
|
215
|
+
|
|
216
|
+
Every dialog that confirms consequences or changes is a `ConfirmModal`, and
|
|
217
|
+
its parts are props, so the layout, spacing, rules and tones come with them:
|
|
218
|
+
|
|
219
|
+
| Prop | What goes in it | Drawn by |
|
|
220
|
+
| ---- | --------------- | -------- |
|
|
221
|
+
| `message` | The summary: who or what is affected, one sentence | the prompt's message |
|
|
222
|
+
| `moveTo` | A destination control, a "Move them to" `FormField` | as given |
|
|
223
|
+
| `changes` | Before and after, a subject at a time (`ChangeGroup[]`) | `ChangeGroups` |
|
|
224
|
+
| `consequences` | What else happens (`ConsequenceItem[]`), with `consequencesHeading` | `ConsequenceList`, under a rule |
|
|
225
|
+
| `alternative` | A quieter way out on the footer start, "Disable instead" | a ghost button |
|
|
226
|
+
|
|
227
|
+
- **A consequence is typed.** A `choice` is a checkbox with a short label and
|
|
228
|
+
what it does under it; a `fact` is a muted line that simply happens or stays
|
|
229
|
+
(`kept`, `follows`, `info`, `warning`, `danger` or `plain`), its glyph where a
|
|
230
|
+
box would be so every line starts on the labels' edge. A named resource or
|
|
231
|
+
secret goes in a choice's `name`, or in `ResourceName` inside a description
|
|
232
|
+
or fact: a code chip that ends in an ellipsis with its whole name on hover.
|
|
233
|
+
`tone: 'danger'` is for a choice that destroys something, and nothing else.
|
|
234
|
+
A choice marked `required` holds the confirm button until it is ticked.
|
|
235
|
+
- **A change is grouped by subject.** The subject (a seat, a record) is said
|
|
236
|
+
once as a heading and its fields or jobs are the rows: the old value struck
|
|
237
|
+
and muted, the new one tinted, each on one line with its words on hover, the
|
|
238
|
+
arrow and the new value dropping under the old one as a unit on a narrow
|
|
239
|
+
dialog. Past three subjects the rest fold behind "Show N more", named beside
|
|
240
|
+
it; `ChangeList` with `subject`, `truncate` and `collapseAfter` is one subject
|
|
241
|
+
on its own.
|
|
242
|
+
- **A screen that produces such changes** (who runs on which model, who owns
|
|
243
|
+
what) is an `AssignmentList`: the value right after the name, names and
|
|
244
|
+
values cut with their words on hover, and a row with an unsaved change
|
|
245
|
+
saying what it was.
|
|
246
|
+
- **A dialog with a layout of its own** puts `ChangeGroups` and
|
|
247
|
+
`ConsequenceList` inside a `Modal`. Never hand-build checkbox lists, `code`
|
|
248
|
+
chips or before and after sentences in a dialog.
|
|
249
|
+
|
|
250
|
+
Stories: Patterns / Confirmation dialogs (remove a model, remove an MCP server,
|
|
251
|
+
disconnect an integration, move a seat's model, review and save, long names,
|
|
252
|
+
many rows), `ConsequenceList`, `ChangeGroups` and `AssignmentList`.
|
|
253
|
+
|
|
254
|
+
## Changes in 0.182.0
|
|
255
|
+
|
|
256
|
+
### An assignment row links its name and splits its value, and a consequence list rules itself off
|
|
257
|
+
|
|
258
|
+
**`AssignmentList` rows take `href`** (the name becomes a link, for a subject with a page of its own) and **`nameTitle`** (its hover text), and **`lines`**: a value split into parts, each a labelled picker under the name, for a seat whose jobs run on different models. `value` is optional on a split row. Story: `AssignmentList` Split Row. **`ConsequenceList` takes `divided`**: a rule above it, as `ConfirmModal` draws one, for a dialog with a layout of its own that puts the list under its summary and controls.
|
|
259
|
+
|
|
260
|
+
## Changes in 0.181.0
|
|
261
|
+
|
|
262
|
+
### One pattern for every confirmation dialog
|
|
263
|
+
|
|
264
|
+
**`ConfirmModal` takes the parts of a confirmation as props**: `moveTo`, `changes` (with `changesHeading` and `changesCollapseAfter`), `consequences` (with `consequencesHeading`) and `alternative`, and holds its confirm button until every `required` choice is ticked. **`ConsequenceList`** draws typed consequences, a checkbox `choice` or a muted `fact`, on one text edge, with **`ResourceName`** for a named resource and **`consequencesAnswered`** for a custom footer. **`ChangeGroups`** draws changes a subject at a time and folds the rest behind "Show N more". **`ChangeList` takes `subject`** (said once over the rows), **`truncate`** (one line a value, with its words on hover) and **`collapseAfter`**, and its labels take `more` and `less`. **`AssignmentList` and `AssignmentPicker`** draw who is assigned what, with a pending row's old value. See [Confirmation dialogs](#confirmation-dialogs). Stories: Patterns / Confirmation dialogs, `ConsequenceList`, `ChangeGroups`, `AssignmentList`.
|
|
265
|
+
|
|
214
266
|
## Changes in 0.179.0
|
|
215
267
|
|
|
216
268
|
### A stat tile stands at one height while its number loads
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-
|
|
1
|
+
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-TEAHPDQM.js';
|
|
2
2
|
import '../chunk-XDUXAQIS.js';
|
|
3
3
|
import '../chunk-WFCWPXJN.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-FF2YPFIZ.js';
|
|
5
5
|
import '../chunk-YUVQUJND.js';
|
|
6
6
|
import '../chunk-MYAC6NMF.js';
|
|
7
7
|
import '../chunk-GI2QI2HZ.js';
|
|
@@ -14,11 +14,12 @@ import '../chunk-COS6LJ4K.js';
|
|
|
14
14
|
import '../chunk-RUROK3EU.js';
|
|
15
15
|
import '../chunk-JYJ24UUX.js';
|
|
16
16
|
import '../chunk-XSPCITPN.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-KH4HKMXF.js';
|
|
18
18
|
import '../chunk-NICEDVZM.js';
|
|
19
19
|
import '../chunk-JLKO7PSK.js';
|
|
20
20
|
import '../chunk-AKLZJTOJ.js';
|
|
21
21
|
import '../chunk-TEXK4RK6.js';
|
|
22
|
+
import '../chunk-WGMKERCR.js';
|
|
22
23
|
import '../chunk-VM73Y6TO.js';
|
|
23
24
|
import '../chunk-TDFLCUBE.js';
|
|
24
25
|
import '../chunk-QB3VHZRB.js';
|
|
@@ -27,7 +28,6 @@ import '../chunk-AVJKMQXK.js';
|
|
|
27
28
|
import '../chunk-EDPMHSLZ.js';
|
|
28
29
|
import '../chunk-HTS5RJ7S.js';
|
|
29
30
|
import '../chunk-4ITETIGZ.js';
|
|
30
|
-
import '../chunk-WGMKERCR.js';
|
|
31
31
|
import '../chunk-UJRRF6RY.js';
|
|
32
32
|
import '../chunk-6YKTRAWI.js';
|
|
33
33
|
import '../chunk-PQADV6P6.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AGENT_IDENTITY_CHIPS, AGENT_IDENTITY_NEEDS_YOU, AGENT_IDENTITY_STATES, AGENT_IDENTITY_WORDS, AgentIdentity, AgentIdentitySheet, agentIdentityNeedsSetUp, agentIdentityNeedsYou } from '../chunk-
|
|
1
|
+
export { AGENT_IDENTITY_CHIPS, AGENT_IDENTITY_NEEDS_YOU, AGENT_IDENTITY_STATES, AGENT_IDENTITY_WORDS, AgentIdentity, AgentIdentitySheet, agentIdentityNeedsSetUp, agentIdentityNeedsYou } from '../chunk-GJVLQXDA.js';
|
|
2
2
|
import '../chunk-GAQU5V5R.js';
|
|
3
3
|
import '../chunk-J73XXTGG.js';
|
|
4
4
|
import '../chunk-2MN3RNRM.js';
|
|
@@ -6,21 +6,28 @@ import '../chunk-GKVQL352.js';
|
|
|
6
6
|
import '../chunk-G5HHQ3RD.js';
|
|
7
7
|
import '../chunk-STJ7QBC3.js';
|
|
8
8
|
import '../chunk-DTIW4CHZ.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-HLIWHEXR.js';
|
|
10
|
+
import '../chunk-LNS3I6MG.js';
|
|
11
|
+
import '../chunk-D54HL3AN.js';
|
|
12
|
+
import '../chunk-7XUP32RY.js';
|
|
11
13
|
import '../chunk-UJYSDWQ7.js';
|
|
14
|
+
import '../chunk-RK4XPHVG.js';
|
|
15
|
+
import '../chunk-W4UJWFCZ.js';
|
|
16
|
+
import '../chunk-HZXS5CEL.js';
|
|
12
17
|
import '../chunk-HOIZJFYS.js';
|
|
13
18
|
import '../chunk-QRE6JCHS.js';
|
|
14
19
|
import '../chunk-475DOAWF.js';
|
|
15
20
|
import '../chunk-WSIJDWUG.js';
|
|
21
|
+
import '../chunk-X6FJSY3C.js';
|
|
16
22
|
import '../chunk-RUROK3EU.js';
|
|
17
23
|
import '../chunk-JYJ24UUX.js';
|
|
18
24
|
import '../chunk-XSPCITPN.js';
|
|
19
|
-
import '../chunk-
|
|
25
|
+
import '../chunk-KH4HKMXF.js';
|
|
20
26
|
import '../chunk-NICEDVZM.js';
|
|
21
27
|
import '../chunk-JLKO7PSK.js';
|
|
22
28
|
import '../chunk-AKLZJTOJ.js';
|
|
23
29
|
import '../chunk-TEXK4RK6.js';
|
|
30
|
+
import '../chunk-WGMKERCR.js';
|
|
24
31
|
import '../chunk-VM73Y6TO.js';
|
|
25
32
|
import '../chunk-TDFLCUBE.js';
|
|
26
33
|
import '../chunk-QB3VHZRB.js';
|
|
@@ -29,7 +36,6 @@ import '../chunk-AVJKMQXK.js';
|
|
|
29
36
|
import '../chunk-EDPMHSLZ.js';
|
|
30
37
|
import '../chunk-HTS5RJ7S.js';
|
|
31
38
|
import '../chunk-4ITETIGZ.js';
|
|
32
|
-
import '../chunk-WGMKERCR.js';
|
|
33
39
|
import '../chunk-UJRRF6RY.js';
|
|
34
40
|
import '../chunk-6YKTRAWI.js';
|
|
35
41
|
import '../chunk-PQADV6P6.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { ArrangeFrame, useGridResize } from '../chunk-
|
|
1
|
+
export { ArrangeFrame, useGridResize } from '../chunk-GF7VSU5G.js';
|
|
2
|
+
import '../chunk-WGMKERCR.js';
|
|
2
3
|
import '../chunk-VM73Y6TO.js';
|
|
3
4
|
import '../chunk-TDFLCUBE.js';
|
|
4
5
|
import '../chunk-QB3VHZRB.js';
|
|
@@ -7,6 +8,5 @@ import '../chunk-AVJKMQXK.js';
|
|
|
7
8
|
import '../chunk-EDPMHSLZ.js';
|
|
8
9
|
import '../chunk-HTS5RJ7S.js';
|
|
9
10
|
import '../chunk-4ITETIGZ.js';
|
|
10
|
-
import '../chunk-WGMKERCR.js';
|
|
11
11
|
import '../chunk-RRRK2KB6.js';
|
|
12
12
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-
|
|
1
|
+
export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-P3UGTTUA.js';
|
|
2
2
|
import '../chunk-6YYRFGXO.js';
|
|
3
3
|
import '../chunk-JMBPMSNI.js';
|
|
4
|
-
import '../chunk-SYL6JDZH.js';
|
|
5
4
|
import '../chunk-SK4BIFTG.js';
|
|
6
5
|
import '../chunk-COS6LJ4K.js';
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-X6FJSY3C.js';
|
|
7
|
+
import '../chunk-KH4HKMXF.js';
|
|
8
8
|
import '../chunk-NICEDVZM.js';
|
|
9
9
|
import '../chunk-JLKO7PSK.js';
|
|
10
10
|
import '../chunk-AKLZJTOJ.js';
|
|
11
11
|
import '../chunk-TEXK4RK6.js';
|
|
12
|
+
import '../chunk-WGMKERCR.js';
|
|
12
13
|
import '../chunk-VM73Y6TO.js';
|
|
13
14
|
import '../chunk-TDFLCUBE.js';
|
|
14
15
|
import '../chunk-QB3VHZRB.js';
|
|
@@ -17,7 +18,6 @@ import '../chunk-AVJKMQXK.js';
|
|
|
17
18
|
import '../chunk-EDPMHSLZ.js';
|
|
18
19
|
import '../chunk-HTS5RJ7S.js';
|
|
19
20
|
import '../chunk-4ITETIGZ.js';
|
|
20
|
-
import '../chunk-WGMKERCR.js';
|
|
21
21
|
import '../chunk-PQADV6P6.js';
|
|
22
22
|
import '../chunk-RRRK2KB6.js';
|
|
23
23
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-
|
|
1
|
+
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-3ZMDQUFO.js';
|
|
2
2
|
import '../chunk-265IX4YA.js';
|
|
3
3
|
import '../chunk-GBKBME7Q.js';
|
|
4
4
|
import '../chunk-WGLOH33S.js';
|
|
@@ -7,17 +7,18 @@ import '../chunk-G732IWP4.js';
|
|
|
7
7
|
import '../chunk-AV2DXAEL.js';
|
|
8
8
|
import '../chunk-W3A6NBUM.js';
|
|
9
9
|
export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
|
|
10
|
-
import '../chunk-SYL6JDZH.js';
|
|
11
10
|
import '../chunk-DOY3KC6I.js';
|
|
12
11
|
import '../chunk-JWHXDVN5.js';
|
|
13
12
|
import '../chunk-YMFFGPFE.js';
|
|
14
13
|
import '../chunk-475DOAWF.js';
|
|
15
14
|
import '../chunk-WSIJDWUG.js';
|
|
16
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-X6FJSY3C.js';
|
|
16
|
+
import '../chunk-KH4HKMXF.js';
|
|
17
17
|
import '../chunk-NICEDVZM.js';
|
|
18
18
|
import '../chunk-JLKO7PSK.js';
|
|
19
19
|
import '../chunk-AKLZJTOJ.js';
|
|
20
20
|
import '../chunk-TEXK4RK6.js';
|
|
21
|
+
import '../chunk-WGMKERCR.js';
|
|
21
22
|
import '../chunk-VM73Y6TO.js';
|
|
22
23
|
import '../chunk-TDFLCUBE.js';
|
|
23
24
|
import '../chunk-QB3VHZRB.js';
|
|
@@ -26,7 +27,6 @@ import '../chunk-AVJKMQXK.js';
|
|
|
26
27
|
import '../chunk-EDPMHSLZ.js';
|
|
27
28
|
import '../chunk-HTS5RJ7S.js';
|
|
28
29
|
import '../chunk-4ITETIGZ.js';
|
|
29
|
-
import '../chunk-WGMKERCR.js';
|
|
30
30
|
import '../chunk-6YKTRAWI.js';
|
|
31
31
|
import '../chunk-PQADV6P6.js';
|
|
32
32
|
import '../chunk-RRRK2KB6.js';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export interface AssignmentListLabels {
|
|
3
|
+
/** Said before the value a pending row had: "Was". */
|
|
4
|
+
was: string;
|
|
5
|
+
/** The tag on a row whose change is not saved yet. */
|
|
6
|
+
notSaved: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ASSIGNMENT_LIST_LABELS: AssignmentListLabels;
|
|
9
|
+
/** One subject and what it is assigned: a seat and its model. */
|
|
10
|
+
export interface AssignmentRow {
|
|
11
|
+
/** Stable within the list. */
|
|
12
|
+
key: string;
|
|
13
|
+
/** The subject's mark: an avatar, a helper's glyph. */
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/** The subject's name, plain words so a cut one can show them whole. */
|
|
16
|
+
name: string;
|
|
17
|
+
/** Where the name leads, such as the subject's own page: the name becomes a link. */
|
|
18
|
+
href?: string | undefined;
|
|
19
|
+
/** The name's hover text, where the name alone is not the whole story (a handle beside it). */
|
|
20
|
+
nameTitle?: string | undefined;
|
|
21
|
+
/** The control that picks the value: an `AssignmentPicker` (inside a Menu or Popover) or a `Select`. */
|
|
22
|
+
value?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* A value split into parts, each its own picker: a seat whose jobs run on different models.
|
|
25
|
+
* Each line's label sits under the name and its picker in the value column.
|
|
26
|
+
*/
|
|
27
|
+
lines?: readonly AssignmentLine[] | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The row has a change not saved yet: the value it had, said under the name
|
|
30
|
+
* ("Was platform-sonnet-8 · Not saved") and the picker tinted. A string is
|
|
31
|
+
* drawn as a code chip; a node as given.
|
|
32
|
+
*/
|
|
33
|
+
was?: ReactNode;
|
|
34
|
+
/** The row's own actions, such as a `Menu`; its column is kept on every row. */
|
|
35
|
+
actions?: ReactNode;
|
|
36
|
+
}
|
|
37
|
+
/** One part of a split row: "Coding" and its picker. */
|
|
38
|
+
export interface AssignmentLine {
|
|
39
|
+
key: string;
|
|
40
|
+
label: string;
|
|
41
|
+
value: ReactNode;
|
|
42
|
+
}
|
|
43
|
+
export interface AssignmentGroup {
|
|
44
|
+
key: string;
|
|
45
|
+
/** The group's eyebrow: "Helpers", "Seats". */
|
|
46
|
+
label?: ReactNode;
|
|
47
|
+
rows: readonly AssignmentRow[];
|
|
48
|
+
}
|
|
49
|
+
export interface AssignmentListProps {
|
|
50
|
+
groups: readonly AssignmentGroup[];
|
|
51
|
+
/**
|
|
52
|
+
* The bar under the rows, for the pending changes: "1 change not saved",
|
|
53
|
+
* Discard and the action that reviews them.
|
|
54
|
+
*/
|
|
55
|
+
footer?: ReactNode;
|
|
56
|
+
labels?: Partial<AssignmentListLabels> | undefined;
|
|
57
|
+
className?: string | undefined;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Who is assigned what: a row a subject, its value and picker right after the name rather than at the far edge,
|
|
61
|
+
* names and values cut with their words on hover, and a pending row saying what it was, its picker on the warning tint.
|
|
62
|
+
*/
|
|
63
|
+
export declare function AssignmentList({ groups, footer, labels: overrides, className }: AssignmentListProps): import("react").JSX.Element;
|
|
64
|
+
export interface AssignmentPickerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
65
|
+
/** The value's own name, in the primary ink: "platform-sonnet-8". */
|
|
66
|
+
primary: string;
|
|
67
|
+
/** What it is, quieter, given way first: "Claude Sonnet 4.5". */
|
|
68
|
+
secondary?: string | undefined;
|
|
69
|
+
/** A mark before the value, such as its provider's. */
|
|
70
|
+
icon?: ReactNode;
|
|
71
|
+
/** Tints the picker as a change not saved yet. Inside an `AssignmentList` row with `was` it is tinted already. */
|
|
72
|
+
pending?: boolean | undefined;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* An assignment's value as the button that changes it: its name, what it is and a chevron, cut with the whole value
|
|
76
|
+
* on hover. Spread a `Menu`'s `renderTrigger` props onto it, and give it an `aria-label` naming the row.
|
|
77
|
+
*/
|
|
78
|
+
export declare const AssignmentPicker: import("react").ForwardRefExoticComponent<AssignmentPickerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import './AssignmentList.css';
|
|
2
|
+
export { ASSIGNMENT_LIST_LABELS, AssignmentList, AssignmentPicker } from './AssignmentList.js';
|
|
3
|
+
export type { AssignmentGroup, AssignmentLine, AssignmentListLabels, AssignmentListProps, AssignmentPickerProps, AssignmentRow, } from './AssignmentList.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { ASSIGNMENT_LIST_LABELS, AssignmentList, AssignmentPicker } from '../chunk-XDTWKLEX.js';
|
|
2
|
+
import '../chunk-RK4XPHVG.js';
|
|
3
|
+
import '../chunk-W4UJWFCZ.js';
|
|
4
|
+
import '../chunk-HZXS5CEL.js';
|
|
5
|
+
import '../chunk-HOIZJFYS.js';
|
|
6
|
+
import '../chunk-QRE6JCHS.js';
|
|
7
|
+
import '../chunk-WSIJDWUG.js';
|
|
8
|
+
import '../chunk-ODEQTPFM.js';
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Who is assigned what: a group's eyebrow, then rows of a name and, right
|
|
3
|
+
* after it, the value's picker and the row's actions. Every row shares one
|
|
4
|
+
* grid, so names, values and actions line up down the card.
|
|
5
|
+
*/
|
|
6
|
+
.crewlet-assignment-list {
|
|
7
|
+
/* The column a row's mark takes, so a pending row's "Was" line starts on the name's edge. */
|
|
8
|
+
--crewlet-assignment-list-icon: 20px;
|
|
9
|
+
|
|
10
|
+
container-type: inline-size;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* ONE GRID FOR EVERY GROUP: groups, lists and rows are its subgrids, so values start at one edge down the card,
|
|
16
|
+
* right after a name column as wide as the longest name, up to two fifths of the row.
|
|
17
|
+
*/
|
|
18
|
+
.crewlet-assignment-list__grid {
|
|
19
|
+
display: grid;
|
|
20
|
+
grid-template-columns: fit-content(40%) minmax(0, 1fr) var(--size-control-md);
|
|
21
|
+
column-gap: var(--spacing-4);
|
|
22
|
+
min-width: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.crewlet-assignment-list__group,
|
|
26
|
+
.crewlet-assignment-list__rows,
|
|
27
|
+
.crewlet-assignment-list__row {
|
|
28
|
+
display: grid;
|
|
29
|
+
grid-column: 1 / -1;
|
|
30
|
+
grid-template-columns: subgrid;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.crewlet-assignment-list__group {
|
|
35
|
+
row-gap: var(--spacing-1);
|
|
36
|
+
padding: var(--spacing-3) var(--spacing-4);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.crewlet-assignment-list__group + .crewlet-assignment-list__group {
|
|
40
|
+
border-top: 1px solid var(--color-border-default);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.crewlet-assignment-list__label {
|
|
44
|
+
grid-column: 1 / -1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.crewlet-assignment-list__rows {
|
|
48
|
+
margin: 0;
|
|
49
|
+
padding: 0;
|
|
50
|
+
list-style: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.crewlet-assignment-list__row {
|
|
54
|
+
align-items: center;
|
|
55
|
+
row-gap: var(--spacing-2);
|
|
56
|
+
min-height: var(--size-row-lg);
|
|
57
|
+
padding-block: var(--spacing-1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.crewlet-assignment-list__row + .crewlet-assignment-list__row {
|
|
61
|
+
border-top: 1px solid var(--color-border-default);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.crewlet-assignment-list__who {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
gap: 2px;
|
|
68
|
+
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.crewlet-assignment-list__name {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: var(--spacing-2);
|
|
75
|
+
min-width: 0;
|
|
76
|
+
font-size: var(--font-size-sm);
|
|
77
|
+
font-weight: var(--font-weight-medium);
|
|
78
|
+
color: var(--color-text-primary);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.crewlet-assignment-list__icon {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
flex: none;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
width: var(--crewlet-assignment-list-icon);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.crewlet-assignment-list__words,
|
|
90
|
+
.crewlet-assignment-list__was-value {
|
|
91
|
+
min-width: 0;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
text-overflow: ellipsis;
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* What a pending row had, under the name on the name's text edge. */
|
|
98
|
+
.crewlet-assignment-list__was {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: var(--spacing-1);
|
|
102
|
+
min-width: 0;
|
|
103
|
+
font-size: var(--font-size-xs);
|
|
104
|
+
color: var(--color-text-tertiary);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.crewlet-assignment-list__icon + .crewlet-assignment-list__words {
|
|
108
|
+
min-width: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.crewlet-assignment-list__row:has(.crewlet-assignment-list__icon) .crewlet-assignment-list__was {
|
|
112
|
+
padding-inline-start: calc(var(--crewlet-assignment-list-icon) + var(--spacing-2));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.crewlet-assignment-list__old {
|
|
116
|
+
text-decoration: line-through;
|
|
117
|
+
text-decoration-thickness: 1px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.crewlet-assignment-list__value {
|
|
121
|
+
display: flex;
|
|
122
|
+
min-width: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* The picker, or the menu anchor around it, takes the column and never widens it. */
|
|
126
|
+
.crewlet-assignment-list__value > * {
|
|
127
|
+
flex: 1 1 auto;
|
|
128
|
+
min-width: 0;
|
|
129
|
+
max-width: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.crewlet-assignment-list__actions {
|
|
133
|
+
display: flex;
|
|
134
|
+
justify-content: flex-end;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.crewlet-assignment-list__footer {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-wrap: wrap;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: flex-end;
|
|
142
|
+
gap: var(--spacing-2);
|
|
143
|
+
padding: var(--spacing-2) var(--spacing-4);
|
|
144
|
+
border-top: 1px solid var(--color-border-default);
|
|
145
|
+
background: var(--color-surface-inset);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.crewlet-assignment-list__footer > :first-child {
|
|
149
|
+
min-width: 0;
|
|
150
|
+
margin-inline-end: auto;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* A link name keeps the name's ink, and underlines where the pointer is. */
|
|
154
|
+
.crewlet-assignment-list__link {
|
|
155
|
+
color: inherit;
|
|
156
|
+
text-decoration: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.crewlet-assignment-list__link:hover {
|
|
160
|
+
text-decoration: underline;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.crewlet-assignment-list__link:focus-visible {
|
|
164
|
+
outline: 2px solid var(--color-focus);
|
|
165
|
+
outline-offset: var(--size-focus-ring-inset-offset);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* A split row's parts: each a row of the subgrid, its label on the name's text edge. */
|
|
169
|
+
.crewlet-assignment-list__line {
|
|
170
|
+
display: grid;
|
|
171
|
+
grid-column: 1 / 3;
|
|
172
|
+
grid-template-columns: subgrid;
|
|
173
|
+
align-items: center;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.crewlet-assignment-list__line-label {
|
|
177
|
+
min-width: 0;
|
|
178
|
+
padding-inline-start: calc(var(--crewlet-assignment-list-icon) + var(--spacing-2));
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
text-overflow: ellipsis;
|
|
181
|
+
white-space: nowrap;
|
|
182
|
+
font-size: var(--font-size-xs);
|
|
183
|
+
color: var(--color-text-secondary);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* NARROW: the value drops under the name, the actions stay on the name's line. */
|
|
187
|
+
@container (max-width: 30rem) {
|
|
188
|
+
.crewlet-assignment-list__grid {
|
|
189
|
+
grid-template-columns: minmax(0, 1fr) var(--size-control-md);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.crewlet-assignment-list__row {
|
|
193
|
+
padding-block: var(--spacing-2);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.crewlet-assignment-list__who {
|
|
197
|
+
grid-column: 1;
|
|
198
|
+
grid-row: 1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.crewlet-assignment-list__actions {
|
|
202
|
+
grid-column: 2;
|
|
203
|
+
grid-row: 1;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.crewlet-assignment-list__row > .crewlet-assignment-list__value {
|
|
207
|
+
grid-column: 1 / -1;
|
|
208
|
+
grid-row: 2;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* A part's label sits over its picker, both across the row. */
|
|
212
|
+
.crewlet-assignment-list__line {
|
|
213
|
+
grid-column: 1 / -1;
|
|
214
|
+
grid-template-columns: minmax(0, 1fr);
|
|
215
|
+
row-gap: var(--spacing-1);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* The picker: the value as a quiet button, its parts cut by an ellipsis. */
|
|
220
|
+
.crewlet-assignment-picker {
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
justify-content: space-between;
|
|
224
|
+
gap: var(--spacing-2);
|
|
225
|
+
width: 100%;
|
|
226
|
+
min-width: 0;
|
|
227
|
+
height: var(--size-control-md);
|
|
228
|
+
padding: 0 var(--spacing-2);
|
|
229
|
+
border: 1px solid transparent;
|
|
230
|
+
border-radius: var(--radius-md);
|
|
231
|
+
background: transparent;
|
|
232
|
+
color: inherit;
|
|
233
|
+
font: inherit;
|
|
234
|
+
font-size: var(--font-size-sm);
|
|
235
|
+
text-align: start;
|
|
236
|
+
cursor: pointer;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.crewlet-assignment-picker:hover {
|
|
240
|
+
border-color: var(--color-border-default);
|
|
241
|
+
background: var(--color-surface-hover);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.crewlet-assignment-picker:focus-visible {
|
|
245
|
+
outline: 2px solid var(--color-focus);
|
|
246
|
+
outline-offset: var(--size-focus-ring-inset-offset);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.crewlet-assignment-picker:disabled {
|
|
250
|
+
cursor: not-allowed;
|
|
251
|
+
opacity: 0.6;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.crewlet-assignment-picker.is-pending,
|
|
255
|
+
.crewlet-assignment-list__row.is-pending .crewlet-assignment-picker {
|
|
256
|
+
border-color: var(--color-feedback-warning-line);
|
|
257
|
+
background: var(--color-feedback-warning-soft);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.crewlet-assignment-picker__value {
|
|
261
|
+
display: inline-flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
gap: var(--spacing-2);
|
|
264
|
+
min-width: 0;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.crewlet-assignment-picker__icon {
|
|
268
|
+
display: inline-flex;
|
|
269
|
+
flex: none;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.crewlet-assignment-picker__primary,
|
|
273
|
+
.crewlet-assignment-picker__secondary {
|
|
274
|
+
min-width: 0;
|
|
275
|
+
overflow: hidden;
|
|
276
|
+
text-overflow: ellipsis;
|
|
277
|
+
white-space: nowrap;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.crewlet-assignment-picker__primary {
|
|
281
|
+
/* Kept whole while it fits: a shrink by a fraction of a pixel still draws an ellipsis. */
|
|
282
|
+
flex: 0 0 auto;
|
|
283
|
+
max-width: 100%;
|
|
284
|
+
font-weight: var(--font-weight-medium);
|
|
285
|
+
color: var(--color-text-primary);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* What the value is gives way before its name does. */
|
|
289
|
+
.crewlet-assignment-picker__secondary {
|
|
290
|
+
flex: 0 1 auto;
|
|
291
|
+
color: var(--color-text-tertiary);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.crewlet-assignment-picker__chevron {
|
|
295
|
+
flex: none;
|
|
296
|
+
color: var(--color-text-tertiary);
|
|
297
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ChangeListLabels, type ChangeListRow } from './ChangeList.js';
|
|
3
|
+
/** One subject's changes: a seat and its jobs, a record and its fields. */
|
|
4
|
+
export interface ChangeGroup {
|
|
5
|
+
/** Stable within the groups. */
|
|
6
|
+
key: string;
|
|
7
|
+
subject: ReactNode;
|
|
8
|
+
/** The subject as plain words, listed beside "Show N more" while it is folded. Taken from `subject` when that is a string. */
|
|
9
|
+
subjectText?: string | undefined;
|
|
10
|
+
rows: readonly ChangeListRow[];
|
|
11
|
+
}
|
|
12
|
+
export interface ChangeGroupsProps {
|
|
13
|
+
groups: readonly ChangeGroup[];
|
|
14
|
+
/** An eyebrow over every group: "What changes". */
|
|
15
|
+
heading?: ReactNode;
|
|
16
|
+
/** Subjects shown before the rest fold behind "Show N more". 3 by default. */
|
|
17
|
+
collapseAfter?: number | undefined;
|
|
18
|
+
/** Rows a subject shows before its own rest fold. All by default. */
|
|
19
|
+
rowsCollapseAfter?: number | undefined;
|
|
20
|
+
labels?: Partial<ChangeListLabels> | undefined;
|
|
21
|
+
className?: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
export declare const CHANGE_GROUPS_COLLAPSE_AFTER = 3;
|
|
24
|
+
/**
|
|
25
|
+
* Changes to several subjects, each said once over its own rows with every value on one line (`ChangeList` with
|
|
26
|
+
* `subject` and `truncate`). Past a few subjects the rest fold behind "Show N more", named beside it.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ChangeGroups({ groups, heading, collapseAfter, rowsCollapseAfter, labels: overrides, className, }: ChangeGroupsProps): import("react").JSX.Element;
|