@crewlethq/ui 0.183.0 → 0.185.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 +12 -0
- package/dist/AgentIdentity/AgentIdentitySheet.d.ts +8 -5
- package/dist/AgentIdentity/index.js +3 -3
- package/dist/{AgentIdentitySheet-D2T7ELGN.css → AgentIdentitySheet-QIOWB7XK.css} +1 -8
- package/dist/ArrangeFrame/ArrangeFrame.d.ts +3 -2
- package/dist/ArrangeFrame/index.js +1 -1
- package/dist/{ArrangeFrame-7B6PUS37.css → ArrangeFrame-BW76K5LZ.css} +6 -9
- package/dist/CodeBlock/index.js +1 -1
- package/dist/ColorSwatch/index.js +2 -2
- package/dist/Copyable/Copyable.d.ts +5 -1
- package/dist/Copyable/index.js +1 -1
- package/dist/{Copyable-U4RPG75T.css → Copyable-CMT2N2JE.css} +38 -1
- package/dist/GraphCanvas/index.js +2 -2
- package/dist/List/List.d.ts +9 -1
- package/dist/List/index.d.ts +2 -0
- package/dist/List/index.js +1 -1
- package/dist/List/useFitRows.d.ts +19 -0
- package/dist/{List-DG77FXA6.css → List-LVKZDICE.css} +16 -0
- package/dist/ObjectHeader/index.js +1 -1
- package/dist/{ObjectHeader-3YYG2BAF.css → ObjectHeader-O5VCDIUY.css} +34 -4
- package/dist/PropertyList/index.js +2 -2
- package/dist/RoomRow/index.js +2 -2
- package/dist/ShareDialog/index.js +1 -1
- package/dist/ToolCallLog/index.js +1 -1
- package/dist/VendorText/VendorText.d.ts +4 -3
- package/dist/VendorText/index.js +1 -1
- package/dist/{VendorText-ET5DJY5Y.css → VendorText-XAKA4QY5.css} +5 -4
- package/dist/{chunk-XVT4KMM4.js → chunk-32ZF74VX.js} +25 -15
- package/dist/{chunk-FPQHRX6W.js → chunk-7AMB4RWX.js} +1 -1
- package/dist/{chunk-45OOFAL6.js → chunk-FSCTR6XE.js} +1 -1
- package/dist/{chunk-P6X7CDCG.js → chunk-OYFFSNKJ.js} +1 -1
- package/dist/{chunk-GAQU5V5R.js → chunk-Q7ZP6UPU.js} +76 -3
- package/dist/{chunk-GF7VSU5G.js → chunk-WLK4PASS.js} +1 -1
- package/dist/{chunk-FGDYDO6Q.js → chunk-XGWNL65J.js} +10 -8
- package/dist/{chunk-B3UALXOX.js → chunk-XULMT56O.js} +1 -1
- package/dist/{chunk-GKVQL352.js → chunk-ZTJ7BV33.js} +5 -3
- package/dist/generated/index.js +25 -25
- package/dist/index.js +25 -25
- package/dist/styles.css +106 -32
- package/package.json +3 -3
- package/dist/{chunk-OD7LFCYV.js → chunk-UTPLRVXN.js} +1 -1
package/README.md
CHANGED
|
@@ -252,6 +252,18 @@ Stories: Patterns / Confirmation dialogs (remove a model, remove an MCP server,
|
|
|
252
252
|
disconnect an integration, move a seat's model, review and save, long names,
|
|
253
253
|
many rows), `ConsequenceList`, `ChangeGroups` and `AssignmentList`.
|
|
254
254
|
|
|
255
|
+
## Changes in 0.185.0
|
|
256
|
+
|
|
257
|
+
### A list fits the room a sized block gives it, and a sized block never scrolls
|
|
258
|
+
|
|
259
|
+
**`List` takes `fit` and `onFit`**: the list takes the room its column leaves it, shows the rows that fit whole and hides the rest (still laid out, so they are measured again as the box grows, and out of the tab order and the accessibility tree), refitting whenever its box, a row or the set of rows changes. `onFit` hears how many rows show, so a card can count the rest ("+4 more"). A divided list paints the rule under its last shown row transparent, so fitting never changes a row's height. **`useFitRows` and `fitRows`** fit any other row markup the same way, a box drawn after its owner (behind a placeholder) included. **An `ArrangeFrame` given `rows` clips its content** (`overflow: clip`) where it scrolled it, so a sized block never grows a scrollbar of its own and the wheel always moves the page; a sized block holding a long list gives it `fit`. Story: `ArrangeFrame` Fixed Height On A Scrolling Page.
|
|
260
|
+
|
|
261
|
+
## Changes in 0.184.0
|
|
262
|
+
|
|
263
|
+
### A value to copy sits in its sentence, vendor names stand out, and a fact's note follows its value
|
|
264
|
+
|
|
265
|
+
**`Copyable` takes `variant="compact"`**: a value set in a sentence ("Name: crewlet-sre"), framed and sized to itself, its copy control always drawn at the target floor with its focus ring on the frame's edge. It is drawn whole and as copied unless `truncate` asks otherwise: a value too long for the line wraps inside its frame, after a `/`, or anywhere for one opaque run. **`AgentIdentitySheet` draws each value to copy as a compact `Copyable` after its step's words**, on the same line, where it drew a full-width panel under them with the vendor's naming rule under that. `copy.rule` is no longer drawn, since the value is copied as it is, and is deprecated. **`VendorUI` is filled with the pressed overlay and framed with the strong border**, where its fill was the subtle surface, the very surface of the card or sheet it sits on, and its frame the default hairline: it now stands off every opaque surface in both modes (its fill at least 1.2:1 on each, its frame at least 1.4:1 on the page and card surfaces, its words over 7:1 on it). **A `FactLine` note follows a phrase's value** ("41s ago · next in 9m"), at the 11px step in the tertiary ink: beside the value where both fit, on a line of its own where they do not, so the value keeps its two-line clamp and the note is never cut. The dot is drawn, not read; a screen reader hears "41s ago, next in 9m". A token, a set or a whole reading keeps its note on a line of its own, at the same size. Nothing to change. Stories: `Copyable` Compact, Compact In A Sentence; `ObjectHeader` With Mark, Fact Notes.
|
|
266
|
+
|
|
255
267
|
## Changes in 0.183.0
|
|
256
268
|
|
|
257
269
|
### A dialog's first focus is never its quieter way out
|
|
@@ -5,13 +5,16 @@ export interface AgentIdentityCopy {
|
|
|
5
5
|
/** What the value is, for the copy control's name: "key's name". */
|
|
6
6
|
label: string;
|
|
7
7
|
value: string;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The rule the value keeps: "Lowercase letters, digits and hyphens, at most 30."
|
|
10
|
+
* @deprecated Not drawn: the suggested value is copied as it is.
|
|
11
|
+
*/
|
|
9
12
|
rule?: ReactNode;
|
|
10
13
|
}
|
|
11
14
|
/** One numbered step at the vendor, in the vendor's own labels. */
|
|
12
15
|
export interface AgentIdentityVendorStep {
|
|
13
16
|
text: ReactNode;
|
|
14
|
-
/** The value to copy at this step, drawn
|
|
17
|
+
/** The value to copy at this step, drawn after its words on the same line. */
|
|
15
18
|
copy?: AgentIdentityCopy | undefined;
|
|
16
19
|
}
|
|
17
20
|
/** One read the check makes, or one thing Crewlet does when it makes the identity itself. */
|
|
@@ -132,9 +135,9 @@ export interface AgentIdentitySheetProps {
|
|
|
132
135
|
* The one sheet every vendor's Set up identity opens, in the same three steps:
|
|
133
136
|
*
|
|
134
137
|
* 1. At the vendor: numbered steps in its own labels, the vendor's page linked
|
|
135
|
-
* on the step that names it, each value to copy
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
+
* on the step that names it, each value to copy after its step's words;
|
|
139
|
+
* or, where Crewlet can, one button that makes it, the steps by hand
|
|
140
|
+
* folded under it.
|
|
138
141
|
* 2. Back here: the file or the token the vendor gave, or nothing.
|
|
139
142
|
* 3. Check: the reads Crewlet makes, then the verdict.
|
|
140
143
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { AGENT_IDENTITY_CHIPS, AGENT_IDENTITY_NEEDS_YOU, AGENT_IDENTITY_STATES, AGENT_IDENTITY_WORDS, AgentIdentity, AgentIdentitySheet, agentIdentityNeedsSetUp, agentIdentityNeedsYou } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { AGENT_IDENTITY_CHIPS, AGENT_IDENTITY_NEEDS_YOU, AGENT_IDENTITY_STATES, AGENT_IDENTITY_WORDS, AgentIdentity, AgentIdentitySheet, agentIdentityNeedsSetUp, agentIdentityNeedsYou } from '../chunk-XGWNL65J.js';
|
|
2
|
+
import '../chunk-Q7ZP6UPU.js';
|
|
3
3
|
import '../chunk-J73XXTGG.js';
|
|
4
4
|
import '../chunk-2MN3RNRM.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-ZTJ7BV33.js';
|
|
6
6
|
import '../chunk-G5HHQ3RD.js';
|
|
7
7
|
import '../chunk-STJ7QBC3.js';
|
|
8
8
|
import '../chunk-DTIW4CHZ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* The set-up sheet's step: its parts stacked at one gap, each value to copy
|
|
3
|
-
*
|
|
3
|
+
* after the words of its own step, and the vendor's page on a line of its own.
|
|
4
4
|
*/
|
|
5
5
|
.crewlet-agent-identity-sheet__step {
|
|
6
6
|
display: flex;
|
|
@@ -9,13 +9,6 @@
|
|
|
9
9
|
min-inline-size: 0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.crewlet-agent-identity-sheet__copy {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
gap: var(--spacing-1);
|
|
16
|
-
min-inline-size: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
12
|
.crewlet-agent-identity-sheet__link {
|
|
20
13
|
display: flex;
|
|
21
14
|
}
|
|
@@ -77,7 +77,8 @@ export interface ArrangeFrameProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
77
77
|
* carries no grip. A container (a group) is moved the same way, by its header
|
|
78
78
|
* or its edge, except from a field, where a press types or selects.
|
|
79
79
|
*
|
|
80
|
-
* A FIXED HEIGHT SCROLLS
|
|
81
|
-
* the
|
|
80
|
+
* A FIXED HEIGHT NEVER SCROLLS. Its content fits itself to the block (a
|
|
81
|
+
* `fit` List shows the rows that fit whole and hides the rest), and whatever
|
|
82
|
+
* still runs past the edge is clipped, never a scrollbar inside a card.
|
|
82
83
|
*/
|
|
83
84
|
export declare const ArrangeFrame: import("react").ForwardRefExoticComponent<ArrangeFrameProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -32,12 +32,10 @@
|
|
|
32
32
|
min-height: 0;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/* A height of the reader's: the content
|
|
36
|
-
|
|
37
|
-
whose content fits). Sideways it stays, so a swipe never turns the page back. */
|
|
35
|
+
/* A height of the reader's never scrolls: the content fits itself to it (a
|
|
36
|
+
`fit` List shows the rows that fit whole) and the rest is clipped. */
|
|
38
37
|
.crewlet-arrange-frame.is-fixed-height .crewlet-arrange-frame__content > * {
|
|
39
|
-
overflow:
|
|
40
|
-
overscroll-behavior-x: contain;
|
|
38
|
+
overflow: clip;
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
/* ---- Editing ---------------------------------------------------------- */
|
|
@@ -65,10 +63,9 @@
|
|
|
65
63
|
* so the border changes colour rather than a second line appearing around it.
|
|
66
64
|
*
|
|
67
65
|
* IT IS A LAYER OF ITS OWN, above the content. An outline is painted with the
|
|
68
|
-
* block, under any content that is positioned or
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* toolbar and the handle, which are raised.
|
|
66
|
+
* block, under any content that is positioned or clips, and that content
|
|
67
|
+
* covered it. Positioned after the content with no depth of its own, it paints
|
|
68
|
+
* over the content and under the toolbar and the handle, which are raised.
|
|
72
69
|
*/
|
|
73
70
|
.crewlet-arrange-frame.is-editing::after {
|
|
74
71
|
content: '';
|
package/dist/CodeBlock/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ColorSwatch } from '../chunk-
|
|
1
|
+
export { ColorSwatch } from '../chunk-OYFFSNKJ.js';
|
|
2
2
|
import '../chunk-7W3LYIOC.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-ZTJ7BV33.js';
|
|
4
4
|
import '../chunk-G5HHQ3RD.js';
|
|
5
5
|
import '../chunk-STJ7QBC3.js';
|
|
6
6
|
import '../chunk-DTIW4CHZ.js';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* `chip` a pill for a table cell, `inline` a value in a detail row, `compact` a
|
|
3
|
+
* framed value set in a sentence with its control always drawn, `block` a panel.
|
|
4
|
+
*/
|
|
5
|
+
export type CopyableVariant = 'chip' | 'inline' | 'compact' | 'block';
|
|
2
6
|
export interface CopyableProps {
|
|
3
7
|
/** The value shown, and the text copied. */
|
|
4
8
|
value: string | number | null | undefined;
|
package/dist/Copyable/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Copyable: a value and the IconButton that copies it, as a `chip` (a pill for
|
|
3
|
-
* a table cell), `inline` (in a detail row)
|
|
3
|
+
* a table cell), `inline` (in a detail row), `compact` (in a sentence) or
|
|
4
|
+
* `block` (a panel for a command).
|
|
4
5
|
*/
|
|
5
6
|
|
|
6
7
|
.crewlet-copyable {
|
|
@@ -82,6 +83,42 @@
|
|
|
82
83
|
letter-spacing: inherit;
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
/* ---- compact ----------------------------------------------------------- */
|
|
87
|
+
|
|
88
|
+
/* A value set in a sentence ("Name: crewlet-sre"): framed, sized to the value,
|
|
89
|
+
kept on the sentence's line, its control always drawn. */
|
|
90
|
+
.crewlet-copyable--compact {
|
|
91
|
+
gap: 0;
|
|
92
|
+
padding-inline-start: var(--spacing-2);
|
|
93
|
+
background: var(--color-surface-inset);
|
|
94
|
+
border: 1px solid var(--color-border-strong);
|
|
95
|
+
border-radius: var(--radius-sm);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Whole and as copied, as a block is: a value too long for the line wraps
|
|
99
|
+
inside the frame, a hairline of room above and below it. */
|
|
100
|
+
.crewlet-copyable--compact .crewlet-copyable__value {
|
|
101
|
+
font-size: var(--font-size-compact);
|
|
102
|
+
color: var(--color-text-primary);
|
|
103
|
+
padding-block: calc(var(--spacing-1) / 2);
|
|
104
|
+
white-space: pre-wrap;
|
|
105
|
+
overflow: visible;
|
|
106
|
+
overflow-wrap: anywhere;
|
|
107
|
+
text-overflow: clip;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* The control at the target floor (24px), the frame's tallest part on one line. */
|
|
111
|
+
.crewlet-copyable--compact .crewlet-copyable__button {
|
|
112
|
+
opacity: 1;
|
|
113
|
+
width: var(--size-target-min);
|
|
114
|
+
height: var(--size-target-min);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Flush with the frame, so its ring covers the edge rather than standing off it. */
|
|
118
|
+
.crewlet-copyable--compact .crewlet-copyable__button:focus-visible {
|
|
119
|
+
outline-offset: var(--size-focus-ring-inset-offset);
|
|
120
|
+
}
|
|
121
|
+
|
|
85
122
|
/* ---- block ------------------------------------------------------------- */
|
|
86
123
|
|
|
87
124
|
.crewlet-copyable--block {
|
|
@@ -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-UTPLRVXN.js';
|
|
2
2
|
import '../chunk-MY374UUD.js';
|
|
3
|
-
import '../chunk-L6HUVA33.js';
|
|
4
3
|
import '../chunk-5EAMUZAJ.js';
|
|
4
|
+
import '../chunk-L6HUVA33.js';
|
|
5
5
|
import '../chunk-M2QGWIPH.js';
|
|
6
6
|
import '../chunk-CUEPPDBC.js';
|
|
7
7
|
import '../chunk-VBBLHS2Y.js';
|
package/dist/List/List.d.ts
CHANGED
|
@@ -49,6 +49,14 @@ export interface ListProps extends HTMLAttributes<HTMLElement> {
|
|
|
49
49
|
measure?: 'normal' | 'wide' | undefined;
|
|
50
50
|
/** Where `bulleted` or `numbered` markers stand: in a gutter (`indented`, the default) or in the margin before the list. */
|
|
51
51
|
markers?: 'indented' | 'hanging' | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Show only the rows that fit the list's box whole, for a list in a block of
|
|
54
|
+
* a set height: the rest are hidden, never cut in half, and shown again as
|
|
55
|
+
* the box grows. The list takes the room its column leaves it.
|
|
56
|
+
*/
|
|
57
|
+
fit?: boolean | undefined;
|
|
58
|
+
/** Hears how many rows show, with `fit`, each time that changes. */
|
|
59
|
+
onFit?: ((shown: number) => void) | undefined;
|
|
52
60
|
}
|
|
53
61
|
/**
|
|
54
62
|
* The non-tabular list: an activity feed, a set of search results, a
|
|
@@ -60,7 +68,7 @@ export interface ListProps extends HTMLAttributes<HTMLElement> {
|
|
|
60
68
|
* means nothing. What a feed does want is alignment, which `template` gives it
|
|
61
69
|
* without the promise.
|
|
62
70
|
*/
|
|
63
|
-
export declare function List({ variant, template, density, measure, markers, className, style, children, ...rest }: ListProps): import("react").JSX.Element;
|
|
71
|
+
export declare function List({ variant, template, density, measure, markers, fit, onFit, className, style, children, ...rest }: ListProps): import("react").JSX.Element;
|
|
64
72
|
export declare namespace List {
|
|
65
73
|
var Item: typeof ListItem;
|
|
66
74
|
}
|
package/dist/List/index.d.ts
CHANGED
package/dist/List/index.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
export interface FitRowsOptions {
|
|
3
|
+
/** Off, every row shows and nothing is measured. */
|
|
4
|
+
enabled?: boolean | undefined;
|
|
5
|
+
/** Hears how many rows show, each time that changes. */
|
|
6
|
+
onFit?: ((shown: number) => void) | undefined;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* How many of a box's rows (its element children) fit inside it whole: every
|
|
10
|
+
* row before the first one its edge would cut.
|
|
11
|
+
*/
|
|
12
|
+
export declare function fitRows(box: HTMLElement): number;
|
|
13
|
+
/**
|
|
14
|
+
* Shows the rows of `ref`'s box that fit it whole and hides the rest, so no
|
|
15
|
+
* row is ever cut in half, measured again whenever the box, a row or the set
|
|
16
|
+
* of rows changes. The box is held to the room it is given and clips. Nothing
|
|
17
|
+
* may size a row by whether it is hidden, or a row on the edge refits forever.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useFitRows(ref: RefObject<HTMLElement | null>, { enabled, onFit }?: FitRowsOptions): void;
|
|
@@ -84,6 +84,16 @@
|
|
|
84
84
|
outline-offset: var(--size-focus-ring-inset-offset);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
/*
|
|
88
|
+
* A list that fits its box takes the room its column leaves it and clips,
|
|
89
|
+
* without becoming a scroll container; the rows past its edge are hidden.
|
|
90
|
+
*/
|
|
91
|
+
.crewlet-list--fit {
|
|
92
|
+
flex: 1 1 auto;
|
|
93
|
+
min-height: 0;
|
|
94
|
+
overflow: clip;
|
|
95
|
+
}
|
|
96
|
+
|
|
87
97
|
/* ---- Framings ---------------------------------------------------------- */
|
|
88
98
|
|
|
89
99
|
.crewlet-list--divided .crewlet-list__item {
|
|
@@ -94,6 +104,12 @@
|
|
|
94
104
|
border-bottom: none;
|
|
95
105
|
}
|
|
96
106
|
|
|
107
|
+
/* The last row a fitting list shows keeps its rule's width, so fitting never
|
|
108
|
+
changes a row's height and refits it. */
|
|
109
|
+
.crewlet-list--divided .crewlet-list__item:has(+ [data-fit-hidden]) {
|
|
110
|
+
border-bottom-color: transparent;
|
|
111
|
+
}
|
|
112
|
+
|
|
97
113
|
.crewlet-list--divided .crewlet-list__row {
|
|
98
114
|
border-radius: 0;
|
|
99
115
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FactLine, ObjectHeader, SET_BY_VERBS, SetByLine } from '../chunk-
|
|
1
|
+
export { FactLine, ObjectHeader, SET_BY_VERBS, SetByLine } from '../chunk-32ZF74VX.js';
|
|
2
2
|
import '../chunk-MGJAOLZC.js';
|
|
3
3
|
import '../chunk-475DOAWF.js';
|
|
4
4
|
import '../chunk-WSIJDWUG.js';
|
|
@@ -242,16 +242,46 @@
|
|
|
242
242
|
overflow-wrap: normal;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
/* A footnote may not set its column's width: the track does, and
|
|
246
|
-
wraps inside it, balanced so the wrap reads as deliberate.
|
|
247
|
-
the label is, so a fact line holds two sizes, the labels' and the values'. */
|
|
248
|
-
.crewlet-fact-line__note,
|
|
245
|
+
/* A footnote may not set its column's width: the track does, and a by-line
|
|
246
|
+
wraps inside it, balanced so the wrap reads as deliberate. */
|
|
249
247
|
.crewlet-fact-line__set-by {
|
|
250
248
|
font-size: var(--font-size-xs);
|
|
251
249
|
color: var(--color-text-tertiary);
|
|
252
250
|
text-wrap: balance;
|
|
253
251
|
}
|
|
254
252
|
|
|
253
|
+
/* A note is an aside to its value, a step under the label in the quiet ink;
|
|
254
|
+
it wraps inside the track, balanced, as a by-line does. */
|
|
255
|
+
.crewlet-fact-line__note {
|
|
256
|
+
min-width: 0;
|
|
257
|
+
font-size: var(--font-size-2xs);
|
|
258
|
+
font-weight: var(--font-weight-regular);
|
|
259
|
+
color: var(--color-text-tertiary);
|
|
260
|
+
text-wrap: balance;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* A phrase's note sits beside its value where both fit and wraps under it
|
|
264
|
+
where they do not; the value keeps its own two-line clamp either way. */
|
|
265
|
+
.crewlet-fact-line__phrase {
|
|
266
|
+
display: flex;
|
|
267
|
+
flex-wrap: wrap;
|
|
268
|
+
align-items: baseline;
|
|
269
|
+
column-gap: var(--spacing-3);
|
|
270
|
+
min-width: 0;
|
|
271
|
+
overflow: clip;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* The dot hangs in the gap before the note, so a note wrapped to a line of
|
|
275
|
+
its own puts it past the phrase's edge, where the clip takes it. */
|
|
276
|
+
.crewlet-fact-line__phrase > .crewlet-fact-line__note::before {
|
|
277
|
+
content: '·';
|
|
278
|
+
content: '·' / '';
|
|
279
|
+
display: inline-block;
|
|
280
|
+
width: var(--spacing-3);
|
|
281
|
+
margin-inline-start: calc(-1 * var(--spacing-3));
|
|
282
|
+
text-align: center;
|
|
283
|
+
}
|
|
284
|
+
|
|
255
285
|
/* ── the by-line ───────────────────────────────────────────────────────── */
|
|
256
286
|
|
|
257
287
|
/* An actor's mark sits on the line's own baseline, at the line's size. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PropertyList } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { PropertyList } from '../chunk-7AMB4RWX.js';
|
|
2
|
+
import '../chunk-32ZF74VX.js';
|
|
3
3
|
import '../chunk-MGJAOLZC.js';
|
|
4
4
|
import '../chunk-LH4OF7FI.js';
|
|
5
5
|
import '../chunk-WGLOH33S.js';
|
package/dist/RoomRow/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import '../chunk-YMFFGPFE.js';
|
|
|
7
7
|
import '../chunk-2YTOOH3A.js';
|
|
8
8
|
import '../chunk-SK4BIFTG.js';
|
|
9
9
|
import '../chunk-COS6LJ4K.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-ZTJ7BV33.js';
|
|
11
11
|
import '../chunk-G5HHQ3RD.js';
|
|
12
12
|
import '../chunk-STJ7QBC3.js';
|
|
13
13
|
import '../chunk-DTIW4CHZ.js';
|
|
@@ -3,7 +3,7 @@ import '../chunk-3LJHDMAZ.js';
|
|
|
3
3
|
import '../chunk-FD4E352A.js';
|
|
4
4
|
import '../chunk-SK4BIFTG.js';
|
|
5
5
|
import '../chunk-COS6LJ4K.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-ZTJ7BV33.js';
|
|
7
7
|
import '../chunk-G5HHQ3RD.js';
|
|
8
8
|
import '../chunk-STJ7QBC3.js';
|
|
9
9
|
import '../chunk-DTIW4CHZ.js';
|
|
@@ -10,9 +10,10 @@ export interface VendorUIProps {
|
|
|
10
10
|
className?: string | undefined;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* A name on a vendor's screen, set inside a sentence of instructions:
|
|
14
|
-
*
|
|
15
|
-
* shape as well as ink. A menu path draws a chevron
|
|
13
|
+
* A name on a vendor's screen, set inside a sentence of instructions: semibold
|
|
14
|
+
* in a framed chip that stands off the surface under it, so it reads apart from
|
|
15
|
+
* the words around it by shape as well as ink. A menu path draws a chevron
|
|
16
|
+
* between its levels.
|
|
16
17
|
*/
|
|
17
18
|
export declare function VendorUI({ path, separatorLabel, className }: VendorUIProps): import("react").JSX.Element;
|
|
18
19
|
export interface StepLinkProps {
|
package/dist/VendorText/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { StepLink, VendorText, VendorUI, vendorTextString } from '../chunk-
|
|
1
|
+
export { StepLink, VendorText, VendorUI, vendorTextString } from '../chunk-XULMT56O.js';
|
|
2
2
|
import '../chunk-MGJAOLZC.js';
|
|
3
3
|
import '../chunk-RRRK2KB6.js';
|
|
4
4
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* A name on a vendor's screen inside a sentence:
|
|
3
|
-
*
|
|
2
|
+
* A name on a vendor's screen inside a sentence: semibold primary ink in a
|
|
3
|
+
* framed chip, set apart by shape, not ink alone. The fill is a translucent
|
|
4
|
+
* step, so the chip stands off whatever surface it is set on.
|
|
4
5
|
*/
|
|
5
6
|
.crewlet-vendor-ui {
|
|
6
7
|
font-weight: var(--font-weight-semibold);
|
|
7
8
|
color: var(--color-text-primary);
|
|
8
|
-
background: var(--color-surface-
|
|
9
|
-
border: 1px solid var(--color-border-
|
|
9
|
+
background: var(--color-surface-pressed);
|
|
10
|
+
border: 1px solid var(--color-border-strong);
|
|
10
11
|
border-radius: var(--radius-xs);
|
|
11
12
|
padding: 0 var(--spacing-1);
|
|
12
13
|
/* Inline, so a link's underline reaches the name; sliced where it wraps, as InlineCode is. */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Link } from './chunk-MGJAOLZC.js';
|
|
2
2
|
import { Text } from './chunk-475DOAWF.js';
|
|
3
|
+
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
3
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './ObjectHeader-
|
|
5
|
+
import './ObjectHeader-O5VCDIUY.css';
|
|
5
6
|
import { ArrowUpRightGlyph } from '@crewlethq/icons/glyphs';
|
|
6
7
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
7
8
|
|
|
@@ -38,6 +39,18 @@ function SetByLine({ setBy, fields, turnLabel = "turn", className }) {
|
|
|
38
39
|
}
|
|
39
40
|
var clamps = (fact) => !fact.token && !fact.whole && !fact.set;
|
|
40
41
|
var valueOf = (fact) => fact.href ? /* @__PURE__ */ jsx(Link, { href: fact.href, size: "inherit", children: fact.value }) : fact.value;
|
|
42
|
+
function FactValue({ fact }) {
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
"span",
|
|
45
|
+
{
|
|
46
|
+
className: cx(
|
|
47
|
+
"crewlet-fact-line__value",
|
|
48
|
+
fact.token ? "crewlet-fact-line__value--token" : clamps(fact) && "crewlet-fact-line__value--clamp"
|
|
49
|
+
),
|
|
50
|
+
children: clamps(fact) ? /* @__PURE__ */ jsx(Text, { variant: "inherit", clamp: 2, children: valueOf(fact) }) : valueOf(fact)
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
41
54
|
function FactLine({ facts, className }) {
|
|
42
55
|
const shown = facts.filter((fact) => fact.value !== null && fact.value !== void 0 && fact.value !== "");
|
|
43
56
|
if (shown.length === 0) return null;
|
|
@@ -52,20 +65,17 @@ function FactLine({ facts, className }) {
|
|
|
52
65
|
children: [
|
|
53
66
|
/* @__PURE__ */ jsx("span", { className: "crewlet-fact-line__label", children: fact.label }),
|
|
54
67
|
/* @__PURE__ */ jsxs("span", { className: "crewlet-fact-line__body", children: [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
),
|
|
68
|
-
fact.note ? /* @__PURE__ */ jsx("span", { className: "crewlet-fact-line__note", children: fact.note }) : null,
|
|
68
|
+
fact.note && clamps(fact) ? (
|
|
69
|
+
// The note beside its value where both fit; the separator is drawn by CSS and said here.
|
|
70
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-fact-line__phrase", children: [
|
|
71
|
+
/* @__PURE__ */ jsx(FactValue, { fact }),
|
|
72
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: ", " }),
|
|
73
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-fact-line__note", children: fact.note })
|
|
74
|
+
] })
|
|
75
|
+
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
76
|
+
/* @__PURE__ */ jsx(FactValue, { fact }),
|
|
77
|
+
fact.note ? /* @__PURE__ */ jsx("span", { className: "crewlet-fact-line__note", children: fact.note }) : null
|
|
78
|
+
] }),
|
|
69
79
|
fact.setBy ? /* @__PURE__ */ jsx(SetByLine, { setBy: fact.setBy, className: "crewlet-fact-line__set-by" }) : null
|
|
70
80
|
] })
|
|
71
81
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetByLine } from './chunk-
|
|
1
|
+
import { SetByLine } from './chunk-32ZF74VX.js';
|
|
2
2
|
import { Link } from './chunk-MGJAOLZC.js';
|
|
3
3
|
import { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
|
|
4
4
|
import { EmptyValue } from './chunk-WGLOH33S.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeHex } from './chunk-7W3LYIOC.js';
|
|
2
|
-
import { Copyable } from './chunk-
|
|
2
|
+
import { Copyable } from './chunk-ZTJ7BV33.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './ColorSwatch-HBNYO6EK.css';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|