@crewlethq/ui 0.181.0 → 0.183.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 +14 -1
- package/dist/AgentIdentity/index.js +3 -3
- package/dist/AssignmentList/AssignmentList.d.ts +16 -1
- package/dist/AssignmentList/index.d.ts +1 -1
- package/dist/AssignmentList/index.js +1 -1
- package/dist/{AssignmentList-JIUZFZGQ.css → AssignmentList-3NZQFSYD.css} +41 -1
- package/dist/CommandPalette/index.js +3 -3
- package/dist/ConsequenceList/ConsequenceList.d.ts +3 -1
- package/dist/ConsequenceList/index.js +1 -1
- package/dist/{ConsequenceList-5TXFZPMG.css → ConsequenceList-EEXTCT6J.css} +6 -0
- package/dist/DataTable/index.js +3 -3
- package/dist/DataView/index.js +6 -6
- package/dist/DateTimePicker/index.js +2 -2
- package/dist/GraphCanvas/index.js +2 -2
- package/dist/LinkInterstitial/index.js +3 -3
- package/dist/Modal/ConfirmModal.d.ts +3 -1
- package/dist/Modal/index.js +2 -2
- package/dist/RichEditor/index.js +1 -1
- package/dist/ShareDialog/index.js +3 -3
- package/dist/Switcher/index.js +3 -3
- package/dist/TimeRangePicker/index.js +3 -3
- package/dist/TimeWindowPicker/index.js +2 -2
- package/dist/{chunk-S2KWNN2Y.js → chunk-CWYHS4IT.js} +1 -1
- package/dist/{chunk-J66BRPSY.js → chunk-FGDYDO6Q.js} +1 -1
- package/dist/{chunk-RJHSGJ7E.js → chunk-LNS3I6MG.js} +3 -3
- package/dist/{chunk-JLUXCPKS.js → chunk-NGHRKHT5.js} +1 -1
- package/dist/{chunk-AXKB6RKG.js → chunk-OTXMMGEO.js} +1 -1
- package/dist/{chunk-3WJCTKUH.js → chunk-PEEIVTQG.js} +1 -1
- package/dist/{chunk-L5DGZMVI.js → chunk-PEUKUZGJ.js} +2 -2
- package/dist/{chunk-MF6ONZJ3.js → chunk-SEBNQVEU.js} +1 -1
- package/dist/{chunk-2V4QQ4NB.js → chunk-SQZZHFPD.js} +1 -1
- package/dist/{chunk-BEYMQKP3.js → chunk-TJWV4TYG.js} +7 -2
- package/dist/{chunk-WRIUIQHA.js → chunk-XDTWKLEX.js} +16 -3
- package/dist/{chunk-RP7OCGCP.js → chunk-YBJEEPEW.js} +1 -1
- package/dist/generated/index.js +40 -40
- package/dist/index.js +40 -40
- package/dist/styles.css +49 -3
- package/package.json +3 -3
- package/dist/{Editor-ANVKGFJ6.js → Editor-HW7A54RA.js} +1 -1
- package/dist/{chunk-H6NPUCDU.js → chunk-2EBAGM5E.js} +1 -1
- package/dist/{chunk-UTPLRVXN.js → chunk-OD7LFCYV.js} +1 -1
- package/dist/{chunk-XADL7CMK.js → chunk-RFJI4VGF.js} +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ 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`), `AssignmentList` and `AssignmentPicker` (who is assigned what, the value right after the name, with `ASSIGNMENT_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) |
|
|
@@ -223,6 +223,7 @@ its parts are props, so the layout, spacing, rules and tones come with them:
|
|
|
223
223
|
| `changes` | Before and after, a subject at a time (`ChangeGroup[]`) | `ChangeGroups` |
|
|
224
224
|
| `consequences` | What else happens (`ConsequenceItem[]`), with `consequencesHeading` | `ConsequenceList`, under a rule |
|
|
225
225
|
| `alternative` | A quieter way out on the footer start, "Disable instead" | a ghost button |
|
|
226
|
+
| `icon` | A glyph beside the title, in the framed shape's head | the head |
|
|
226
227
|
|
|
227
228
|
- **A consequence is typed.** A `choice` is a checkbox with a short label and
|
|
228
229
|
what it does under it; a `fact` is a muted line that simply happens or stays
|
|
@@ -251,6 +252,18 @@ Stories: Patterns / Confirmation dialogs (remove a model, remove an MCP server,
|
|
|
251
252
|
disconnect an integration, move a seat's model, review and save, long names,
|
|
252
253
|
many rows), `ConsequenceList`, `ChangeGroups` and `AssignmentList`.
|
|
253
254
|
|
|
255
|
+
## Changes in 0.183.0
|
|
256
|
+
|
|
257
|
+
### A dialog's first focus is never its quieter way out
|
|
258
|
+
|
|
259
|
+
**`Modal` starts focus on the footer's own actions before its start** when the body has nothing to focus, so a dialog with a footer start ("Disable instead", a ConfirmModal's `alternative`) opens on Cancel rather than on that action. **`ConfirmModal` takes `icon`**, the glyph its framed head draws beside the title, as `Modal`'s does. Story: Patterns / Confirmation dialogs, Disconnect Integration.
|
|
260
|
+
|
|
261
|
+
## Changes in 0.182.0
|
|
262
|
+
|
|
263
|
+
### An assignment row links its name and splits its value, and a consequence list rules itself off
|
|
264
|
+
|
|
265
|
+
**`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.
|
|
266
|
+
|
|
254
267
|
## Changes in 0.181.0
|
|
255
268
|
|
|
256
269
|
### One pattern for every confirmation dialog
|
|
@@ -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-FGDYDO6Q.js';
|
|
2
2
|
import '../chunk-GAQU5V5R.js';
|
|
3
3
|
import '../chunk-J73XXTGG.js';
|
|
4
4
|
import '../chunk-2MN3RNRM.js';
|
|
@@ -6,8 +6,8 @@ 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-TJWV4TYG.js';
|
|
10
|
+
import '../chunk-LNS3I6MG.js';
|
|
11
11
|
import '../chunk-D54HL3AN.js';
|
|
12
12
|
import '../chunk-7XUP32RY.js';
|
|
13
13
|
import '../chunk-UJYSDWQ7.js';
|
|
@@ -14,8 +14,17 @@ export interface AssignmentRow {
|
|
|
14
14
|
icon?: ReactNode;
|
|
15
15
|
/** The subject's name, plain words so a cut one can show them whole. */
|
|
16
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;
|
|
17
21
|
/** The control that picks the value: an `AssignmentPicker` (inside a Menu or Popover) or a `Select`. */
|
|
18
|
-
value
|
|
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;
|
|
19
28
|
/**
|
|
20
29
|
* The row has a change not saved yet: the value it had, said under the name
|
|
21
30
|
* ("Was platform-sonnet-8 · Not saved") and the picker tinted. A string is
|
|
@@ -25,6 +34,12 @@ export interface AssignmentRow {
|
|
|
25
34
|
/** The row's own actions, such as a `Menu`; its column is kept on every row. */
|
|
26
35
|
actions?: ReactNode;
|
|
27
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
|
+
}
|
|
28
43
|
export interface AssignmentGroup {
|
|
29
44
|
key: string;
|
|
30
45
|
/** The group's eyebrow: "Helpers", "Seats". */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './AssignmentList.css';
|
|
2
2
|
export { ASSIGNMENT_LIST_LABELS, AssignmentList, AssignmentPicker } from './AssignmentList.js';
|
|
3
|
-
export type { AssignmentGroup, AssignmentListLabels, AssignmentListProps, AssignmentPickerProps, AssignmentRow, } from './AssignmentList.js';
|
|
3
|
+
export type { AssignmentGroup, AssignmentLine, AssignmentListLabels, AssignmentListProps, AssignmentPickerProps, AssignmentRow, } from './AssignmentList.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ASSIGNMENT_LIST_LABELS, AssignmentList, AssignmentPicker } from '../chunk-
|
|
1
|
+
export { ASSIGNMENT_LIST_LABELS, AssignmentList, AssignmentPicker } from '../chunk-XDTWKLEX.js';
|
|
2
2
|
import '../chunk-RK4XPHVG.js';
|
|
3
3
|
import '../chunk-W4UJWFCZ.js';
|
|
4
4
|
import '../chunk-HZXS5CEL.js';
|
|
@@ -150,6 +150,39 @@
|
|
|
150
150
|
margin-inline-end: auto;
|
|
151
151
|
}
|
|
152
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
|
+
|
|
153
186
|
/* NARROW: the value drops under the name, the actions stay on the name's line. */
|
|
154
187
|
@container (max-width: 30rem) {
|
|
155
188
|
.crewlet-assignment-list__grid {
|
|
@@ -170,10 +203,17 @@
|
|
|
170
203
|
grid-row: 1;
|
|
171
204
|
}
|
|
172
205
|
|
|
173
|
-
.crewlet-assignment-list__value {
|
|
206
|
+
.crewlet-assignment-list__row > .crewlet-assignment-list__value {
|
|
174
207
|
grid-column: 1 / -1;
|
|
175
208
|
grid-row: 2;
|
|
176
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
|
+
}
|
|
177
217
|
}
|
|
178
218
|
|
|
179
219
|
/* The picker: the value as a quiet button, its parts cut by an ellipsis. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { CommandPalette } from '../chunk-
|
|
1
|
+
export { CommandPalette } from '../chunk-PEEIVTQG.js';
|
|
2
2
|
import '../chunk-KW7T23RT.js';
|
|
3
3
|
import '../chunk-VBBLHS2Y.js';
|
|
4
4
|
import '../chunk-2YTOOH3A.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-TJWV4TYG.js';
|
|
6
|
+
import '../chunk-LNS3I6MG.js';
|
|
7
7
|
import '../chunk-D54HL3AN.js';
|
|
8
8
|
import '../chunk-7XUP32RY.js';
|
|
9
9
|
import '../chunk-RK4XPHVG.js';
|
|
@@ -43,6 +43,8 @@ export interface ConsequenceListProps {
|
|
|
43
43
|
items: readonly ConsequenceItem[];
|
|
44
44
|
/** The group's eyebrow: "When you remove it", "What follows". */
|
|
45
45
|
heading?: ReactNode;
|
|
46
|
+
/** A rule above the group, setting it apart from the summary over it, as `ConfirmModal` draws one. */
|
|
47
|
+
divided?: boolean | undefined;
|
|
46
48
|
className?: string | undefined;
|
|
47
49
|
}
|
|
48
50
|
/**
|
|
@@ -58,6 +60,6 @@ export declare function ResourceName({ children, className }: {
|
|
|
58
60
|
* What confirming will do: typed choices (a checkbox, a short label, what it does) and facts (a muted line whose
|
|
59
61
|
* glyph sits where a box would), all on the labels' edge, so every confirmation spaces and tones them alike.
|
|
60
62
|
*/
|
|
61
|
-
export declare function ConsequenceList({ items, heading, className }: ConsequenceListProps): import("react").JSX.Element;
|
|
63
|
+
export declare function ConsequenceList({ items, heading, divided, className }: ConsequenceListProps): import("react").JSX.Element;
|
|
62
64
|
/** Whether every required choice is ticked: what a confirm button waits for. */
|
|
63
65
|
export declare function consequencesAnswered(items: readonly ConsequenceItem[] | undefined): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ConsequenceList, ResourceName, consequencesAnswered } from '../chunk-
|
|
1
|
+
export { ConsequenceList, ResourceName, consequencesAnswered } from '../chunk-LNS3I6MG.js';
|
|
2
2
|
import '../chunk-RK4XPHVG.js';
|
|
3
3
|
import '../chunk-W4UJWFCZ.js';
|
|
4
4
|
import '../chunk-HZXS5CEL.js';
|
|
@@ -66,3 +66,9 @@
|
|
|
66
66
|
.crewlet-resource-name {
|
|
67
67
|
max-width: min(100%, 32ch);
|
|
68
68
|
}
|
|
69
|
+
|
|
70
|
+
/* Divided: a rule above, apart from the summary and the controls over it. */
|
|
71
|
+
.crewlet-consequence-list--divided {
|
|
72
|
+
padding-top: var(--spacing-4);
|
|
73
|
+
border-top: 1px solid var(--color-border-default);
|
|
74
|
+
}
|
package/dist/DataTable/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-
|
|
1
|
+
export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-NGHRKHT5.js';
|
|
2
2
|
import '../chunk-WGLOH33S.js';
|
|
3
3
|
import '../chunk-AV2DXAEL.js';
|
|
4
4
|
import '../chunk-QHPKLY4V.js';
|
|
5
5
|
import '../chunk-STJ7QBC3.js';
|
|
6
6
|
import '../chunk-DTIW4CHZ.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-TJWV4TYG.js';
|
|
8
|
+
import '../chunk-LNS3I6MG.js';
|
|
9
9
|
import '../chunk-D54HL3AN.js';
|
|
10
10
|
import '../chunk-7XUP32RY.js';
|
|
11
11
|
import '../chunk-RK4XPHVG.js';
|
package/dist/DataView/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-
|
|
1
|
+
export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-PEUKUZGJ.js';
|
|
2
2
|
import '../chunk-FPDIHEM4.js';
|
|
3
3
|
import '../chunk-Z4TGAPC7.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-RFJI4VGF.js';
|
|
5
|
+
import '../chunk-NGHRKHT5.js';
|
|
6
6
|
import '../chunk-KW7T23RT.js';
|
|
7
|
+
import '../chunk-EE3DJMSQ.js';
|
|
7
8
|
import '../chunk-NPEI2QAN.js';
|
|
8
9
|
import '../chunk-AJFA2XDQ.js';
|
|
9
|
-
import '../chunk-EE3DJMSQ.js';
|
|
10
10
|
import '../chunk-GBKBME7Q.js';
|
|
11
11
|
import '../chunk-WGLOH33S.js';
|
|
12
12
|
import '../chunk-AV2DXAEL.js';
|
|
@@ -14,8 +14,8 @@ import '../chunk-QHPKLY4V.js';
|
|
|
14
14
|
import '../chunk-VBBLHS2Y.js';
|
|
15
15
|
import '../chunk-STJ7QBC3.js';
|
|
16
16
|
import '../chunk-DTIW4CHZ.js';
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-TJWV4TYG.js';
|
|
18
|
+
import '../chunk-LNS3I6MG.js';
|
|
19
19
|
import '../chunk-D54HL3AN.js';
|
|
20
20
|
import '../chunk-7XUP32RY.js';
|
|
21
21
|
import '../chunk-RK4XPHVG.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { DEFAULT_DATE_TIME_PICKER_LABELS, DateTimePicker } from '../chunk-
|
|
2
|
-
import '../chunk-AJFA2XDQ.js';
|
|
1
|
+
export { DEFAULT_DATE_TIME_PICKER_LABELS, DateTimePicker } from '../chunk-RFJI4VGF.js';
|
|
3
2
|
import '../chunk-EE3DJMSQ.js';
|
|
3
|
+
import '../chunk-AJFA2XDQ.js';
|
|
4
4
|
import '../chunk-JYJ24UUX.js';
|
|
5
5
|
import '../chunk-XSPCITPN.js';
|
|
6
6
|
import '../chunk-VM73Y6TO.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_FOCUS_ZOOM, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_TILE_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphDetail, graphFocusView, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, placeTrunkLabels, routeGraphEdges } from '../chunk-
|
|
1
|
+
export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_FOCUS_ZOOM, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_TILE_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphDetail, graphFocusView, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, placeTrunkLabels, routeGraphEdges } from '../chunk-OD7LFCYV.js';
|
|
2
2
|
import '../chunk-MY374UUD.js';
|
|
3
|
-
import '../chunk-5EAMUZAJ.js';
|
|
4
3
|
import '../chunk-L6HUVA33.js';
|
|
4
|
+
import '../chunk-5EAMUZAJ.js';
|
|
5
5
|
import '../chunk-M2QGWIPH.js';
|
|
6
6
|
import '../chunk-CUEPPDBC.js';
|
|
7
7
|
import '../chunk-VBBLHS2Y.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { LinkInterstitial, openExternal } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { LinkInterstitial, openExternal } from '../chunk-SQZZHFPD.js';
|
|
2
|
+
import '../chunk-TJWV4TYG.js';
|
|
3
|
+
import '../chunk-LNS3I6MG.js';
|
|
4
4
|
import '../chunk-D54HL3AN.js';
|
|
5
5
|
import '../chunk-7XUP32RY.js';
|
|
6
6
|
import '../chunk-UJYSDWQ7.js';
|
|
@@ -13,6 +13,8 @@ export interface ConfirmModalProps {
|
|
|
13
13
|
*/
|
|
14
14
|
onConfirm: () => void | Promise<void>;
|
|
15
15
|
title: ReactNode;
|
|
16
|
+
/** A glyph beside the title, drawn in the framed shape's head; the prompt shape has none. */
|
|
17
|
+
icon?: ReactNode;
|
|
16
18
|
/** The sentence the prompt leads with. */
|
|
17
19
|
message?: ReactNode;
|
|
18
20
|
/**
|
|
@@ -104,4 +106,4 @@ export interface ConfirmModalProps {
|
|
|
104
106
|
* and the two buttons, 420px and centred. `shape="framed"` is the way back
|
|
105
107
|
* for a confirmation that grew a form inside it.
|
|
106
108
|
*/
|
|
107
|
-
export declare function ConfirmModal({ open, onClose, onConfirm, title, message, moveTo, changes, changesHeading, changesCollapseAfter, consequences, consequencesHeading, alternative, children, confirmLabel, cancelLabel, destructive, confirmVariant, cancelVariant, confirmDisabled, confirmDisabledReason, submitting, busyReason, shape, size, }: ConfirmModalProps): import("react").JSX.Element;
|
|
109
|
+
export declare function ConfirmModal({ open, onClose, onConfirm, title, icon, message, moveTo, changes, changesHeading, changesCollapseAfter, consequences, consequencesHeading, alternative, children, confirmLabel, cancelLabel, destructive, confirmVariant, cancelVariant, confirmDisabled, confirmDisabledReason, submitting, busyReason, shape, size, }: ConfirmModalProps): import("react").JSX.Element;
|
package/dist/Modal/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ConfirmModal, Modal } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ConfirmModal, Modal } from '../chunk-TJWV4TYG.js';
|
|
2
|
+
import '../chunk-LNS3I6MG.js';
|
|
3
3
|
import '../chunk-D54HL3AN.js';
|
|
4
4
|
import '../chunk-7XUP32RY.js';
|
|
5
5
|
import '../chunk-RK4XPHVG.js';
|
package/dist/RichEditor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { RichEditor, preloadRichEditor } from '../chunk-
|
|
1
|
+
export { RichEditor, preloadRichEditor } from '../chunk-SEBNQVEU.js';
|
|
2
2
|
export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-DGXHQMNP.js';
|
|
3
3
|
import '../chunk-KOJPDCGQ.js';
|
|
4
4
|
import '../chunk-KMTOGF6T.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-
|
|
1
|
+
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-YBJEEPEW.js';
|
|
2
2
|
import '../chunk-D5UVJL4I.js';
|
|
3
3
|
import '../chunk-KW7T23RT.js';
|
|
4
4
|
import '../chunk-265IX4YA.js';
|
|
@@ -11,8 +11,8 @@ import '../chunk-GKVQL352.js';
|
|
|
11
11
|
import '../chunk-G5HHQ3RD.js';
|
|
12
12
|
import '../chunk-STJ7QBC3.js';
|
|
13
13
|
import '../chunk-DTIW4CHZ.js';
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-TJWV4TYG.js';
|
|
15
|
+
import '../chunk-LNS3I6MG.js';
|
|
16
16
|
import '../chunk-D54HL3AN.js';
|
|
17
17
|
import '../chunk-7XUP32RY.js';
|
|
18
18
|
import '../chunk-UJYSDWQ7.js';
|
package/dist/Switcher/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { Switcher } from '../chunk-
|
|
1
|
+
export { Switcher } from '../chunk-OTXMMGEO.js';
|
|
2
2
|
import '../chunk-KW7T23RT.js';
|
|
3
3
|
import '../chunk-AJFA2XDQ.js';
|
|
4
4
|
import '../chunk-HBDA76EZ.js';
|
|
5
5
|
import '../chunk-WFAJYBLX.js';
|
|
6
6
|
import '../chunk-SK4BIFTG.js';
|
|
7
7
|
import '../chunk-COS6LJ4K.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-TJWV4TYG.js';
|
|
9
|
+
import '../chunk-LNS3I6MG.js';
|
|
10
10
|
import '../chunk-D54HL3AN.js';
|
|
11
11
|
import '../chunk-7XUP32RY.js';
|
|
12
12
|
import '../chunk-RK4XPHVG.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-
|
|
1
|
+
export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-CWYHS4IT.js';
|
|
2
2
|
import '../chunk-DG6H4EO2.js';
|
|
3
3
|
import '../chunk-4GPXNMIG.js';
|
|
4
4
|
import '../chunk-SZKYOOCS.js';
|
|
5
5
|
import '../chunk-7F3OPUM5.js';
|
|
6
6
|
import '../chunk-QHPKLY4V.js';
|
|
7
7
|
import '../chunk-2YTOOH3A.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-TJWV4TYG.js';
|
|
9
|
+
import '../chunk-LNS3I6MG.js';
|
|
10
10
|
import '../chunk-D54HL3AN.js';
|
|
11
11
|
import '../chunk-7XUP32RY.js';
|
|
12
12
|
import '../chunk-UJYSDWQ7.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-
|
|
1
|
+
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-2EBAGM5E.js';
|
|
2
2
|
import '../chunk-D5UVJL4I.js';
|
|
3
3
|
import '../chunk-KW7T23RT.js';
|
|
4
|
-
import '../chunk-AJFA2XDQ.js';
|
|
5
4
|
import '../chunk-EE3DJMSQ.js';
|
|
5
|
+
import '../chunk-AJFA2XDQ.js';
|
|
6
6
|
import '../chunk-2YTOOH3A.js';
|
|
7
7
|
import '../chunk-JYJ24UUX.js';
|
|
8
8
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SegmentedControl } from './chunk-4GPXNMIG.js';
|
|
2
|
-
import { Modal } from './chunk-
|
|
2
|
+
import { Modal } from './chunk-TJWV4TYG.js';
|
|
3
3
|
import { Callout } from './chunk-UJYSDWQ7.js';
|
|
4
4
|
import { Button } from './chunk-JYJ24UUX.js';
|
|
5
5
|
import { FormField, Input } from './chunk-KH4HKMXF.js';
|
|
@@ -2,7 +2,7 @@ import { List, ListItem } from './chunk-GAQU5V5R.js';
|
|
|
2
2
|
import { FileDrop, FilePickButton } from './chunk-J73XXTGG.js';
|
|
3
3
|
import { StepList, Stepper } from './chunk-2MN3RNRM.js';
|
|
4
4
|
import { Copyable } from './chunk-GKVQL352.js';
|
|
5
|
-
import { Modal } from './chunk-
|
|
5
|
+
import { Modal } from './chunk-TJWV4TYG.js';
|
|
6
6
|
import { Callout } from './chunk-UJYSDWQ7.js';
|
|
7
7
|
import { Tag } from './chunk-HOIZJFYS.js';
|
|
8
8
|
import { Text } from './chunk-475DOAWF.js';
|
|
@@ -3,7 +3,7 @@ import { InlineCode } from './chunk-W4UJWFCZ.js';
|
|
|
3
3
|
import { titleWhenCut } from './chunk-WSIJDWUG.js';
|
|
4
4
|
import { Checkbox } from './chunk-X6FJSY3C.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
-
import './ConsequenceList-
|
|
6
|
+
import './ConsequenceList-EEXTCT6J.css';
|
|
7
7
|
import { useId } from 'react';
|
|
8
8
|
import { TriangleAlertGlyph, InfoGlyph, ArrowRightGlyph, LockGlyph } from '@crewlethq/icons/glyphs';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -18,7 +18,7 @@ var FACT_GLYPHS = {
|
|
|
18
18
|
function ResourceName({ children, className }) {
|
|
19
19
|
return /* @__PURE__ */ jsx(InlineCode, { truncate: true, className: cx("crewlet-resource-name", className), onMouseEnter: titleWhenCut, children });
|
|
20
20
|
}
|
|
21
|
-
function ConsequenceList({ items, heading, className }) {
|
|
21
|
+
function ConsequenceList({ items, heading, divided = false, className }) {
|
|
22
22
|
const headingId = useId();
|
|
23
23
|
const named = heading !== void 0 && heading !== null;
|
|
24
24
|
return /* @__PURE__ */ jsxs(
|
|
@@ -26,7 +26,7 @@ function ConsequenceList({ items, heading, className }) {
|
|
|
26
26
|
{
|
|
27
27
|
role: "group",
|
|
28
28
|
"aria-labelledby": named ? headingId : void 0,
|
|
29
|
-
className: cx("crewlet-consequence-list", className),
|
|
29
|
+
className: cx("crewlet-consequence-list", divided && "crewlet-consequence-list--divided", className),
|
|
30
30
|
children: [
|
|
31
31
|
named ? /* @__PURE__ */ jsx(Eyebrow, { as: "div", id: headingId, className: "crewlet-consequence-list__heading", children: heading }) : null,
|
|
32
32
|
items.map(
|
|
@@ -2,7 +2,7 @@ import { EmptyValue } from './chunk-WGLOH33S.js';
|
|
|
2
2
|
import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
|
|
3
3
|
import { Menu } from './chunk-QHPKLY4V.js';
|
|
4
4
|
import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
5
|
-
import { Modal } from './chunk-
|
|
5
|
+
import { Modal } from './chunk-TJWV4TYG.js';
|
|
6
6
|
import { Checkbox } from './chunk-X6FJSY3C.js';
|
|
7
7
|
import { Button } from './chunk-JYJ24UUX.js';
|
|
8
8
|
import { IconButton } from './chunk-VM73Y6TO.js';
|
|
@@ -3,7 +3,7 @@ import { Popover } from './chunk-AJFA2XDQ.js';
|
|
|
3
3
|
import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
|
|
4
4
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
5
5
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
6
|
-
import { Modal } from './chunk-
|
|
6
|
+
import { Modal } from './chunk-TJWV4TYG.js';
|
|
7
7
|
import { Text } from './chunk-475DOAWF.js';
|
|
8
8
|
import { Input } from './chunk-KH4HKMXF.js';
|
|
9
9
|
import { announce } from './chunk-WGMKERCR.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useListbox, useHighlightRest } from './chunk-KW7T23RT.js';
|
|
2
2
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
3
3
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
|
-
import { useScrollerFocus, Modal } from './chunk-
|
|
4
|
+
import { useScrollerFocus, Modal } from './chunk-TJWV4TYG.js';
|
|
5
5
|
import { Input } from './chunk-KH4HKMXF.js';
|
|
6
6
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
7
7
|
import { Count } from './chunk-6YKTRAWI.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PageHeader } from './chunk-FPDIHEM4.js';
|
|
2
2
|
import { FilterPill } from './chunk-Z4TGAPC7.js';
|
|
3
|
-
import { DateTimePicker } from './chunk-
|
|
4
|
-
import { DataTable } from './chunk-
|
|
3
|
+
import { DateTimePicker } from './chunk-RFJI4VGF.js';
|
|
4
|
+
import { DataTable } from './chunk-NGHRKHT5.js';
|
|
5
5
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
6
6
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
7
7
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var engine = null;
|
|
10
10
|
var loading = null;
|
|
11
11
|
function loadEngine() {
|
|
12
|
-
loading ??= import('./Editor-
|
|
12
|
+
loading ??= import('./Editor-HW7A54RA.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { consequencesAnswered, ConsequenceList } from './chunk-
|
|
1
|
+
import { consequencesAnswered, ConsequenceList } from './chunk-LNS3I6MG.js';
|
|
2
2
|
import { ChangeGroups } from './chunk-D54HL3AN.js';
|
|
3
3
|
import { Button } from './chunk-JYJ24UUX.js';
|
|
4
4
|
import { IconButton } from './chunk-VM73Y6TO.js';
|
|
@@ -135,6 +135,7 @@ function ModalFrame({
|
|
|
135
135
|
}, []);
|
|
136
136
|
const bodyTakesFocus = useScrollerFocus(bodyElement);
|
|
137
137
|
const foot = useRef(null);
|
|
138
|
+
const footEnd = useRef(null);
|
|
138
139
|
const start = useRef(initialFocus);
|
|
139
140
|
start.current = initialFocus;
|
|
140
141
|
const where = useCallback(() => {
|
|
@@ -142,6 +143,8 @@ function ModalFrame({
|
|
|
142
143
|
if (chosen) return chosen;
|
|
143
144
|
const inBody = body.current ? focusables(body.current)[0] : void 0;
|
|
144
145
|
if (inBody) return inBody;
|
|
146
|
+
const inActions = footEnd.current ? focusables(footEnd.current)[0] : void 0;
|
|
147
|
+
if (inActions) return inActions;
|
|
145
148
|
const inFoot = foot.current ? focusables(foot.current)[0] : void 0;
|
|
146
149
|
return inFoot ?? frame.current;
|
|
147
150
|
}, []);
|
|
@@ -244,7 +247,7 @@ function ModalFrame({
|
|
|
244
247
|
className: cx("crewlet-modal__footer", sheet ? "crewlet-modal__footer--sheet" : void 0),
|
|
245
248
|
children: [
|
|
246
249
|
given(footerStart) ? /* @__PURE__ */ jsx("div", { className: "crewlet-modal__footer-start", children: footerStart }) : null,
|
|
247
|
-
/* @__PURE__ */ jsx("div", { className: "crewlet-modal__footer-end", children: footer })
|
|
250
|
+
/* @__PURE__ */ jsx("div", { ref: footEnd, className: "crewlet-modal__footer-end", children: footer })
|
|
248
251
|
]
|
|
249
252
|
}
|
|
250
253
|
) : null
|
|
@@ -289,6 +292,7 @@ function ConfirmModal({
|
|
|
289
292
|
onClose,
|
|
290
293
|
onConfirm,
|
|
291
294
|
title,
|
|
295
|
+
icon,
|
|
292
296
|
message,
|
|
293
297
|
moveTo,
|
|
294
298
|
changes,
|
|
@@ -330,6 +334,7 @@ function ConfirmModal({
|
|
|
330
334
|
open,
|
|
331
335
|
onClose,
|
|
332
336
|
title,
|
|
337
|
+
icon,
|
|
333
338
|
shape,
|
|
334
339
|
size,
|
|
335
340
|
role: destructive ? "alertdialog" : "dialog",
|
|
@@ -3,7 +3,7 @@ import { InlineCode } from './chunk-W4UJWFCZ.js';
|
|
|
3
3
|
import { Tag } from './chunk-HOIZJFYS.js';
|
|
4
4
|
import { titleWhenCut } from './chunk-WSIJDWUG.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
-
import './AssignmentList-
|
|
6
|
+
import './AssignmentList-3NZQFSYD.css';
|
|
7
7
|
import { forwardRef, useId } from 'react';
|
|
8
8
|
import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -41,7 +41,16 @@ function Row({ row, labels }) {
|
|
|
41
41
|
/* @__PURE__ */ jsxs("div", { className: "crewlet-assignment-list__who", children: [
|
|
42
42
|
/* @__PURE__ */ jsxs("span", { className: "crewlet-assignment-list__name", children: [
|
|
43
43
|
row.icon === void 0 || row.icon === null ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-assignment-list__icon", children: row.icon }),
|
|
44
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-assignment-list__words", onMouseEnter: titleWhenCut, children: row.name })
|
|
44
|
+
row.href === void 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-assignment-list__words", title: row.nameTitle, onMouseEnter: row.nameTitle ? void 0 : titleWhenCut, children: row.name }) : /* @__PURE__ */ jsx(
|
|
45
|
+
"a",
|
|
46
|
+
{
|
|
47
|
+
className: "crewlet-assignment-list__words crewlet-assignment-list__link",
|
|
48
|
+
href: row.href,
|
|
49
|
+
title: row.nameTitle,
|
|
50
|
+
onMouseEnter: row.nameTitle ? void 0 : titleWhenCut,
|
|
51
|
+
children: row.name
|
|
52
|
+
}
|
|
53
|
+
)
|
|
45
54
|
] }),
|
|
46
55
|
pending ? /* @__PURE__ */ jsxs("span", { className: "crewlet-assignment-list__was", children: [
|
|
47
56
|
/* @__PURE__ */ jsxs("span", { className: "crewlet-assignment-list__was-value", children: [
|
|
@@ -53,7 +62,11 @@ function Row({ row, labels }) {
|
|
|
53
62
|
] }) : null
|
|
54
63
|
] }),
|
|
55
64
|
/* @__PURE__ */ jsx("div", { className: "crewlet-assignment-list__value", children: row.value }),
|
|
56
|
-
/* @__PURE__ */ jsx("div", { className: "crewlet-assignment-list__actions", children: row.actions })
|
|
65
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-assignment-list__actions", children: row.actions }),
|
|
66
|
+
row.lines?.map((line) => /* @__PURE__ */ jsxs("div", { className: "crewlet-assignment-list__line", children: [
|
|
67
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-assignment-list__line-label", onMouseEnter: titleWhenCut, children: line.label }),
|
|
68
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-assignment-list__value", children: line.value })
|
|
69
|
+
] }, line.key))
|
|
57
70
|
] });
|
|
58
71
|
}
|
|
59
72
|
var AssignmentPicker = forwardRef(function AssignmentPicker2({ primary, secondary, icon, pending = false, className, type = "button", title, onMouseEnter, ...rest }, ref) {
|
|
@@ -2,7 +2,7 @@ import { Select } from './chunk-D5UVJL4I.js';
|
|
|
2
2
|
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
3
3
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
4
4
|
import { CopyButton } from './chunk-G5HHQ3RD.js';
|
|
5
|
-
import { Modal } from './chunk-
|
|
5
|
+
import { Modal } from './chunk-TJWV4TYG.js';
|
|
6
6
|
import { Callout } from './chunk-UJYSDWQ7.js';
|
|
7
7
|
import { Button } from './chunk-JYJ24UUX.js';
|
|
8
8
|
import { IconButton } from './chunk-VM73Y6TO.js';
|