@crewlethq/ui 0.114.0 → 0.116.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/dist/ActivityLine/index.js +2 -2
- package/dist/AgentHandoffPanel/index.js +4 -4
- package/dist/ArtifactCard/index.js +3 -3
- package/dist/ArtifactPanel/index.js +2 -2
- package/dist/ChatDay/index.js +2 -2
- package/dist/{ChatDay-523C65KY.css → ChatDay-FNMU6XGF.css} +8 -3
- package/dist/ChatDivider/index.js +1 -1
- package/dist/{ChatDivider-BRODST2E.css → ChatDivider-AVSQIHOP.css} +3 -2
- package/dist/ChatMessage/index.js +1 -1
- package/dist/{ChatMessage-SZGZT7O2.css → ChatMessage-ADVU5SLD.css} +48 -0
- package/dist/{ChatScale-6NM4TP7R.css → ChatScale-LGESYXCO.css} +11 -1
- package/dist/ChatThread/ChatThread.d.ts +8 -0
- package/dist/ChatThread/index.js +1 -1
- package/dist/{ChatThread-MKAN2Q4H.css → ChatThread-YBU3PHDZ.css} +12 -0
- package/dist/CommentThread/index.js +2 -2
- package/dist/Composer/index.js +1 -1
- package/dist/{Composer-UGPNQMYI.css → Composer-AVBJS6U4.css} +31 -6
- package/dist/DataGrid/index.js +2 -2
- package/dist/DeliveryReceipt/index.js +1 -1
- package/dist/InboxList/InboxList.d.ts +44 -4
- package/dist/InboxList/index.d.ts +2 -1
- package/dist/InboxList/index.js +1 -1
- package/dist/{InboxList-G627C2OQ.css → InboxList-PKF6XXTA.css} +143 -6
- package/dist/LinkCard/index.js +1 -1
- package/dist/ListDetail/ListDetail.d.ts +46 -9
- package/dist/ListDetail/index.d.ts +2 -2
- package/dist/ListDetail/index.js +10 -1
- package/dist/{ListDetail-WXBCLONL.css → ListDetail-KFYCYZWI.css} +46 -2
- package/dist/MentionMenu/index.js +1 -1
- package/dist/MessageActions/index.js +1 -1
- package/dist/OrgTable/index.js +4 -4
- package/dist/ReactionBar/index.js +1 -1
- package/dist/RichEditor/index.js +2 -2
- package/dist/RoomRow/index.js +1 -1
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SidePanel/SidePanel.d.ts +7 -1
- package/dist/SidePanel/SidePanelBase.d.ts +3 -1
- package/dist/SidePanel/index.js +2 -2
- package/dist/{SidePanel-DZ4E5SNP.css → SidePanel-JT2VDOZ6.css} +2 -0
- package/dist/Skeleton/index.js +1 -1
- package/dist/Switcher/index.js +2 -2
- package/dist/ThreadSummary/index.js +1 -1
- package/dist/TreeGrid/index.js +3 -3
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/WorkingLine/index.js +1 -1
- package/dist/{chunk-KVNVLBCB.js → chunk-2JNBDAOE.js} +2 -2
- package/dist/{chunk-6QLMET36.js → chunk-346EXHOR.js} +1 -1
- package/dist/{chunk-TEOJ7OKD.js → chunk-3EWOEW7R.js} +2 -2
- package/dist/{chunk-V35GTX74.js → chunk-4FEWDSRQ.js} +63 -16
- package/dist/chunk-5QJNA7KD.js +2 -0
- package/dist/{chunk-DF5B4QO5.js → chunk-5ZTH54O6.js} +1 -1
- package/dist/{chunk-ZGJCVXFU.js → chunk-62TEKYMP.js} +1 -1
- package/dist/{chunk-S3ZFYKNS.js → chunk-73OCFZN7.js} +1 -1
- package/dist/{chunk-4VHRO7HZ.js → chunk-7L446LBC.js} +4 -0
- package/dist/{chunk-EXKJIL65.js → chunk-BG4GI5W3.js} +2 -2
- package/dist/{chunk-R4PZUVPD.js → chunk-CUUDIFBU.js} +1 -1
- package/dist/{chunk-5SBMYPWG.js → chunk-EAC357YC.js} +2 -2
- package/dist/{chunk-RTDFRFTF.js → chunk-EI242VTX.js} +2 -2
- package/dist/{chunk-ZUFV7753.js → chunk-I5HJ6Y6E.js} +1 -1
- package/dist/{chunk-TXTYTIIH.js → chunk-JKGSPQUX.js} +1 -1
- package/dist/{chunk-47V3ASMW.js → chunk-KTH2KXZY.js} +1 -1
- package/dist/{chunk-LSVX4DTF.js → chunk-LWZAXQBR.js} +2 -2
- package/dist/{chunk-5FOJLJYN.js → chunk-MM4KFKUN.js} +8 -2
- package/dist/{chunk-ANIJQ25E.js → chunk-N3465LNT.js} +1 -1
- package/dist/{chunk-7MB7RUZZ.js → chunk-NHHVN23D.js} +1 -1
- package/dist/{chunk-CHB7T3PT.js → chunk-RBQOS3JC.js} +4 -4
- package/dist/{chunk-6S2Q4DGN.js → chunk-RWBBTGCK.js} +2 -2
- package/dist/{chunk-QP5XZ3QZ.js → chunk-SFO4KY65.js} +1 -1
- package/dist/{chunk-D7NXK77P.js → chunk-ULFQFA5O.js} +1 -1
- package/dist/{chunk-P366K4RX.js → chunk-UTTYNJEB.js} +1 -1
- package/dist/{chunk-WN3YE3ND.js → chunk-UVHIHIFQ.js} +1 -1
- package/dist/chunk-VKN64EEL.js +42 -0
- package/dist/{chunk-QMEKGAEA.js → chunk-VLU3FMJD.js} +1 -1
- package/dist/{chunk-BMTNY3FK.js → chunk-WFAJYBLX.js} +1 -1
- package/dist/{chunk-LNSAYEOA.js → chunk-WNPKXYDJ.js} +1 -1
- package/dist/generated/index.js +45 -45
- package/dist/index.js +45 -45
- package/dist/styles.css +313 -29
- package/package.json +3 -3
- package/dist/chunk-P33VNG7Q.js +0 -12
- package/dist/chunk-Q5LDZPFF.js +0 -2
- package/dist/{Editor-XT73VTSJ.js → Editor-YITN2DWX.js} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ActivityLine } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ActivityLine } from '../chunk-BG4GI5W3.js';
|
|
2
|
+
import '../chunk-SFO4KY65.js';
|
|
3
3
|
import '../chunk-5SMYKL3D.js';
|
|
4
4
|
import '../chunk-XZY6S3UC.js';
|
|
5
5
|
import '../chunk-RRRK2KB6.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-
|
|
1
|
+
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-EAC357YC.js';
|
|
2
2
|
import '../chunk-XDUXAQIS.js';
|
|
3
3
|
import '../chunk-WFCWPXJN.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-2JNBDAOE.js';
|
|
5
5
|
import '../chunk-D5O64CVE.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-LWZAXQBR.js';
|
|
7
|
+
import '../chunk-7L446LBC.js';
|
|
8
8
|
import '../chunk-MBEZOURR.js';
|
|
9
9
|
import '../chunk-FQ6J4DK7.js';
|
|
10
10
|
import '../chunk-TE3OMB3Z.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-3EWOEW7R.js';
|
|
2
|
+
import '../chunk-WFAJYBLX.js';
|
|
3
3
|
import '../chunk-HF5L56YQ.js';
|
|
4
4
|
import '../chunk-GBKBME7Q.js';
|
|
5
5
|
import '../chunk-WGLOH33S.js';
|
|
@@ -9,8 +9,8 @@ import '../chunk-XLMURU75.js';
|
|
|
9
9
|
import '../chunk-WSIJDWUG.js';
|
|
10
10
|
import '../chunk-W3A6NBUM.js';
|
|
11
11
|
import '../chunk-DTEDUAEW.js';
|
|
12
|
-
import '../chunk-DOY3KC6I.js';
|
|
13
12
|
export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
|
|
13
|
+
import '../chunk-DOY3KC6I.js';
|
|
14
14
|
import '../chunk-5SMYKL3D.js';
|
|
15
15
|
import '../chunk-XZY6S3UC.js';
|
|
16
16
|
import '../chunk-TE3OMB3Z.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ARTIFACT_PANEL_LABELS, ArtifactPanel, ArtifactWorkspace } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ARTIFACT_PANEL_LABELS, ArtifactPanel, ArtifactWorkspace } from '../chunk-LWZAXQBR.js';
|
|
2
|
+
import '../chunk-7L446LBC.js';
|
|
3
3
|
import '../chunk-MBEZOURR.js';
|
|
4
4
|
import '../chunk-FQ6J4DK7.js';
|
|
5
5
|
import '../chunk-2YTOOH3A.js';
|
package/dist/ChatDay/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ChatDay, ChatDayPill } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ChatDay, ChatDayPill } from '../chunk-RBQOS3JC.js';
|
|
2
|
+
import '../chunk-EI242VTX.js';
|
|
3
3
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -58,12 +58,17 @@
|
|
|
58
58
|
overflow-anchor: none;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
/* The New line on the day's rule covers the rule, as one line
|
|
61
|
+
/* The New line on the day's rule covers the rule, as one line: the rule
|
|
62
|
+
gives way to it, so no grey runs on past the label at its end. */
|
|
62
63
|
.crewlet-chat-day__rule > .crewlet-chat-divider--unread {
|
|
63
64
|
position: absolute;
|
|
64
65
|
inset: 0;
|
|
65
66
|
}
|
|
66
67
|
|
|
68
|
+
.crewlet-chat-day__rule:has(> .crewlet-chat-divider--unread) {
|
|
69
|
+
background: transparent;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
/*
|
|
68
73
|
* THE PILL floats over the rows: the transcript's own ground, ringed with the
|
|
69
74
|
* hairline and a small shadow, so it reads as lifted off the messages it
|
|
@@ -77,7 +82,7 @@
|
|
|
77
82
|
gap: var(--spacing-1);
|
|
78
83
|
height: var(--crewlet-chat-day-pill);
|
|
79
84
|
box-sizing: border-box;
|
|
80
|
-
padding: 0 var(--spacing-
|
|
85
|
+
padding: 0 var(--spacing-4);
|
|
81
86
|
border: 0;
|
|
82
87
|
border-radius: var(--radius-pill);
|
|
83
88
|
outline: 1px solid transparent;
|
|
@@ -88,7 +93,7 @@
|
|
|
88
93
|
var(--shadow-xs);
|
|
89
94
|
color: var(--color-text-primary);
|
|
90
95
|
font: inherit;
|
|
91
|
-
font-size: var(--font-size-
|
|
96
|
+
font-size: var(--font-size-compact);
|
|
92
97
|
font-weight: var(--font-weight-semibold);
|
|
93
98
|
line-height: 1;
|
|
94
99
|
white-space: nowrap;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ChatDivider } from '../chunk-
|
|
1
|
+
export { ChatDivider } from '../chunk-EI242VTX.js';
|
|
2
2
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -65,10 +65,11 @@
|
|
|
65
65
|
scroll-margin-top: calc(var(--crewlet-chat-day-pin) + var(--crewlet-chat-day-pill) + var(--spacing-3));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
/* The line ends where its label does, so nothing of it runs past "New". */
|
|
68
69
|
.crewlet-chat-divider--unread::before {
|
|
69
70
|
content: '';
|
|
70
71
|
position: absolute;
|
|
71
|
-
inset-inline: 0;
|
|
72
|
+
inset-inline: 0 var(--crewlet-chat-pad-x);
|
|
72
73
|
top: 0;
|
|
73
74
|
height: 1px;
|
|
74
75
|
background: var(--color-feedback-danger);
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
transform: translateY(-50%);
|
|
83
84
|
background: var(--crewlet-chat-ground);
|
|
84
85
|
color: var(--color-feedback-danger-ink);
|
|
85
|
-
font-size: var(--font-size-
|
|
86
|
+
font-size: var(--font-size-compact);
|
|
86
87
|
font-weight: var(--font-weight-semibold);
|
|
87
88
|
line-height: var(--font-line-height-normal);
|
|
88
89
|
}
|
|
@@ -228,6 +228,53 @@
|
|
|
228
228
|
font-weight: var(--font-weight-semibold);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
/* ONE BLOCK RHYTHM IN THE WORDS. Blocks are a blank line apart, list items
|
|
232
|
+
touch, and each list level indents by the list step, so a message with a
|
|
233
|
+
list still reads as one compact unit. Three classes deep, so a host's own
|
|
234
|
+
document rhythm on the same prose (a page's paragraph gap) stays out. */
|
|
235
|
+
.crewlet-chat-message .crewlet-chat-message__body .crewlet-prose :where(p, ul, ol, li, blockquote, pre) {
|
|
236
|
+
margin: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.crewlet-chat-message .crewlet-chat-message__body .crewlet-prose > * + * {
|
|
240
|
+
margin-top: var(--crewlet-chat-block-gap);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.crewlet-chat-message .crewlet-chat-message__body .crewlet-prose :is(ul, ol) {
|
|
244
|
+
padding-inline-start: var(--crewlet-chat-list-indent);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* A quote is the words in their own ink behind a rounded bar, so it reads as
|
|
248
|
+
quoted rather than dimmed. */
|
|
249
|
+
.crewlet-chat-message .crewlet-chat-message__body .crewlet-prose blockquote {
|
|
250
|
+
position: relative;
|
|
251
|
+
padding-inline-start: var(--spacing-4);
|
|
252
|
+
border: 0;
|
|
253
|
+
color: var(--color-text-primary);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.crewlet-chat-message .crewlet-chat-message__body .crewlet-prose blockquote::before {
|
|
257
|
+
content: '';
|
|
258
|
+
position: absolute;
|
|
259
|
+
inset-block: 0;
|
|
260
|
+
inset-inline-start: 0;
|
|
261
|
+
width: var(--spacing-1);
|
|
262
|
+
border-radius: var(--radius-pill);
|
|
263
|
+
background: var(--color-border-strong);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Code in a line keeps to the line: a hairline chip on the row's fill step,
|
|
267
|
+
one meta step on its own 18px line, so a mixed line never grows. */
|
|
268
|
+
.crewlet-chat-message__body .crewlet-inline-code {
|
|
269
|
+
padding: 1px 3px 0;
|
|
270
|
+
border-width: 1px;
|
|
271
|
+
border-style: solid;
|
|
272
|
+
border-color: var(--color-edge-hairline);
|
|
273
|
+
background: var(--color-fill-row);
|
|
274
|
+
font-size: var(--crewlet-chat-meta);
|
|
275
|
+
line-height: var(--font-line-height-normal);
|
|
276
|
+
}
|
|
277
|
+
|
|
231
278
|
/* Previews, reactions and the thread line: one stack, one gap. A footer
|
|
232
279
|
whose pieces all drew nothing takes no room: its gap made every row 6px
|
|
233
280
|
taller than its words. */
|
|
@@ -256,6 +303,7 @@
|
|
|
256
303
|
.crewlet-chat-message__body .crewlet-codeblock {
|
|
257
304
|
border-color: var(--color-edge-hairline);
|
|
258
305
|
border-radius: var(--radius-xs);
|
|
306
|
+
background: var(--color-fill-row);
|
|
259
307
|
}
|
|
260
308
|
|
|
261
309
|
.crewlet-chat-message__body .crewlet-codeblock__pre {
|
|
@@ -26,10 +26,20 @@
|
|
|
26
26
|
--crewlet-chat-stack: 6px;
|
|
27
27
|
/* One width for every link preview, so a stack of them shares both edges. */
|
|
28
28
|
--crewlet-chat-card: 440px;
|
|
29
|
+
/* Rich text in the words: a blank line between blocks (paragraphs, lists,
|
|
30
|
+
quotes, code) is one small step, list items touch, and each list level
|
|
31
|
+
indents its words by the side inset and the face gap. */
|
|
32
|
+
--crewlet-chat-block-gap: var(--spacing-2);
|
|
33
|
+
--crewlet-chat-list-indent: calc(var(--spacing-5) + var(--spacing-2));
|
|
34
|
+
/* The message box's tools: a 28px square at the small corner with the
|
|
35
|
+
toolbar's glyph, so the box's band and foot are one tool tall plus a
|
|
36
|
+
small inset. */
|
|
37
|
+
--crewlet-chat-compose-tool: 28px;
|
|
38
|
+
--crewlet-chat-compose-glyph: var(--font-size-lg);
|
|
29
39
|
/* A day: the pill's height, the room above and below its rule, and how far
|
|
30
40
|
under the list's top edge the pill pins. A host with a bar floating over
|
|
31
41
|
the list's top (an unread banner) moves the pin down past it. */
|
|
32
|
-
--crewlet-chat-day-pill:
|
|
42
|
+
--crewlet-chat-day-pill: 28px;
|
|
33
43
|
--crewlet-chat-day-gap: var(--spacing-5);
|
|
34
44
|
--crewlet-chat-day-pin: var(--spacing-3);
|
|
35
45
|
/* The hover toolbar: 32px tools with 18px glyphs, touching, big enough to
|
|
@@ -62,6 +62,14 @@ export interface ChatThreadProps extends Omit<HTMLAttributes<HTMLDivElement>, 'r
|
|
|
62
62
|
* own in `end`, since a conversation's rows set their own spacing.
|
|
63
63
|
*/
|
|
64
64
|
rest?: ChatThreadRest | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The items run edge to edge, with no inset or gap of their own, for a log
|
|
67
|
+
* whose items carry their own (`ChatMessage` rows, `ChatDay`s): its rows'
|
|
68
|
+
* hover surface reaches both edges and their faces line up with a composer
|
|
69
|
+
* under the log on the same side inset. Only a short step stays above the
|
|
70
|
+
* first item and under the last.
|
|
71
|
+
*/
|
|
72
|
+
flush?: boolean | undefined;
|
|
65
73
|
/** The thread's blocks, one child per item, oldest first. */
|
|
66
74
|
children?: ReactNode;
|
|
67
75
|
labels?: Partial<ChatThreadLabels> | undefined;
|
package/dist/ChatThread/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-
|
|
1
|
+
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-MM4KFKUN.js';
|
|
2
2
|
import '../chunk-ZJVGVTC3.js';
|
|
3
3
|
import '../chunk-SK4BIFTG.js';
|
|
4
4
|
import '../chunk-COS6LJ4K.js';
|
|
@@ -75,6 +75,18 @@
|
|
|
75
75
|
gap: 0;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
/*
|
|
79
|
+
* A FLUSH LOG (`flush`): its items carry their own insets, so the list keeps
|
|
80
|
+
* none at the sides and no gap between items. A conversation's rows then run
|
|
81
|
+
* edge to edge, their faces on the same side inset as the composer under the
|
|
82
|
+
* log, and a reply follows the one before it with no seam. A short step stays
|
|
83
|
+
* above the first item and under the last.
|
|
84
|
+
*/
|
|
85
|
+
.crewlet-chat-thread--flush .crewlet-chat-thread__items {
|
|
86
|
+
gap: 0;
|
|
87
|
+
padding: var(--spacing-3) 0 var(--spacing-2);
|
|
88
|
+
}
|
|
89
|
+
|
|
78
90
|
/*
|
|
79
91
|
* The pill, centred in a row of its own under the log. IN FLOW, NOT FLOATING:
|
|
80
92
|
* laid over the scroller it covered the last lines of whatever was being read,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-
|
|
1
|
+
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-62TEKYMP.js';
|
|
2
2
|
import '../chunk-HF5L56YQ.js';
|
|
3
3
|
import '../chunk-GBKBME7Q.js';
|
|
4
4
|
import '../chunk-WGLOH33S.js';
|
|
5
5
|
import '../chunk-I4PBFJGX.js';
|
|
6
6
|
import '../chunk-5SMYKL3D.js';
|
|
7
7
|
import '../chunk-XZY6S3UC.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-2JNBDAOE.js';
|
|
9
9
|
import '../chunk-TE3OMB3Z.js';
|
|
10
10
|
import '../chunk-NICEDVZM.js';
|
|
11
11
|
import '../chunk-JLKO7PSK.js';
|
package/dist/Composer/index.js
CHANGED
|
@@ -298,11 +298,12 @@
|
|
|
298
298
|
white-space: nowrap;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
/* THE FORMATTING ROW AS A BAND the height of the footer
|
|
302
|
-
|
|
303
|
-
footer's tools are. */
|
|
301
|
+
/* THE FORMATTING ROW AS A BAND the height of the footer: one chat tool with
|
|
302
|
+
a small inset over it and a step under it, its first glyph on the words'
|
|
303
|
+
12px inset, the controls a step apart, as the footer's tools are. */
|
|
304
304
|
.crewlet-composer--chat .crewlet-composer__toolbar {
|
|
305
|
-
padding-block
|
|
305
|
+
padding-block: calc(var(--spacing-3) / 2) var(--spacing-1);
|
|
306
|
+
padding-inline-start: calc(var(--spacing-3) - (var(--crewlet-chat-compose-tool) - var(--crewlet-chat-compose-glyph)) / 2);
|
|
306
307
|
}
|
|
307
308
|
|
|
308
309
|
.crewlet-composer--chat .crewlet-composer__toolbar .crewlet-toolbar {
|
|
@@ -310,14 +311,38 @@
|
|
|
310
311
|
padding: 0;
|
|
311
312
|
}
|
|
312
313
|
|
|
314
|
+
/* The foot mirrors the band: a step over its tools and the small inset under
|
|
315
|
+
them, the first glyph and Send each on the words' 12px inset. */
|
|
313
316
|
.crewlet-composer--chat .crewlet-composer__footer {
|
|
314
317
|
gap: var(--spacing-1);
|
|
315
|
-
padding: var(--spacing-1)
|
|
316
|
-
|
|
318
|
+
padding: var(--spacing-1) calc(var(--spacing-3) - (var(--crewlet-chat-compose-tool) - var(--crewlet-chat-compose-glyph)) / 2)
|
|
319
|
+
calc(var(--spacing-3) / 2) var(--spacing-3);
|
|
317
320
|
border-top: 0;
|
|
318
321
|
background: transparent;
|
|
319
322
|
}
|
|
320
323
|
|
|
324
|
+
.crewlet-composer--chat .crewlet-composer__footer .crewlet-composer__tools {
|
|
325
|
+
margin-inline-start: calc(-1 * (var(--crewlet-chat-compose-tool) - var(--crewlet-chat-compose-glyph)) / 2);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/* EVERY TOOL OF THE BOX ON THE CHAT TOOL STEP: 28px at the small corner with
|
|
329
|
+
the toolbar's glyph, Send included (its own glyph keeps its size). The
|
|
330
|
+
corner is set at a low weight, so a host's own shape for one tool (a round
|
|
331
|
+
add) and the foot's last control's nested corner still hold. */
|
|
332
|
+
.crewlet-composer--chat :is(.crewlet-composer__toolbar, .crewlet-composer__footer) .crewlet-icon-btn {
|
|
333
|
+
width: var(--crewlet-chat-compose-tool);
|
|
334
|
+
height: var(--crewlet-chat-compose-tool);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.crewlet-composer--chat :where(.crewlet-composer__toolbar, .crewlet-composer__footer) .crewlet-icon-btn {
|
|
338
|
+
border-radius: var(--radius-xs);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.crewlet-composer--chat :is(.crewlet-composer__toolbar, .crewlet-composer__footer) .crewlet-icon-btn:not(.crewlet-send-button) .crewlet-glyph {
|
|
342
|
+
width: var(--crewlet-chat-compose-glyph);
|
|
343
|
+
height: var(--crewlet-chat-compose-glyph);
|
|
344
|
+
}
|
|
345
|
+
|
|
321
346
|
/* A tool whose menu or picker is open reads as held down. */
|
|
322
347
|
.crewlet-composer--chat .crewlet-composer__tools [aria-expanded='true'] {
|
|
323
348
|
background: var(--color-surface-pressed);
|
package/dist/DataGrid/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-73OCFZN7.js';
|
|
2
|
+
import '../chunk-WFAJYBLX.js';
|
|
3
3
|
import '../chunk-WSIJDWUG.js';
|
|
4
4
|
import '../chunk-JMBPMSNI.js';
|
|
5
5
|
import '../chunk-DTEDUAEW.js';
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes, type HTMLAttributes, type LiHTMLAttributes, type MouseEvent, type ReactNode } from 'react';
|
|
2
2
|
import type { Tone } from '../utils/tone.js';
|
|
3
3
|
import { type HeadingLevel } from '../utils/headingLevel.js';
|
|
4
|
+
/** How an inbox is set: `default` (rounded rows, an eyebrow per group) or `chat`. */
|
|
5
|
+
export type InboxListDensity = 'default' | 'chat';
|
|
4
6
|
export interface InboxListProps extends HTMLAttributes<HTMLElement> {
|
|
5
7
|
/** Names the list as a landmark: "Inbox". */
|
|
6
8
|
label: string;
|
|
9
|
+
/**
|
|
10
|
+
* `chat` sets the rows at a conversation's scale (ChatScale.css): a 36px
|
|
11
|
+
* face, the name and the words on the chat step, the conversation's side
|
|
12
|
+
* inset, 16px above and below each row and a hairline between rows. Rows
|
|
13
|
+
* run full bleed, the open one a flat wash, and a group's label reads as a
|
|
14
|
+
* day ("Monday, November 17") rather than an eyebrow. For a list of messages,
|
|
15
|
+
* such as a person's activity or their direct conversations.
|
|
16
|
+
*/
|
|
17
|
+
density?: InboxListDensity | undefined;
|
|
7
18
|
}
|
|
8
19
|
/**
|
|
9
20
|
* The column of an inbox: what reached a person, grouped, one row each, read
|
|
@@ -13,7 +24,7 @@ export interface InboxListProps extends HTMLAttributes<HTMLElement> {
|
|
|
13
24
|
* between them to read one at a time. It promises no columns, so it draws
|
|
14
25
|
* none, and its rows are as tall as their words rather than one fixed height.
|
|
15
26
|
*/
|
|
16
|
-
export declare function InboxList({ label, className, children, ...rest }: InboxListProps): import("react").JSX.Element;
|
|
27
|
+
export declare function InboxList({ label, density, className, children, ...rest }: InboxListProps): import("react").JSX.Element;
|
|
17
28
|
export declare namespace InboxList {
|
|
18
29
|
var Group: typeof InboxGroup;
|
|
19
30
|
var Row: typeof InboxRow;
|
|
@@ -66,10 +77,17 @@ export declare const INBOX_ROW_LEAVE: {
|
|
|
66
77
|
/**
|
|
67
78
|
* A labelled run of rows. The label is a heading set in the micro-label
|
|
68
79
|
* register, so a reader navigating by heading lands on each group and a
|
|
69
|
-
* reader scanning sees where one ends.
|
|
80
|
+
* reader scanning sees where one ends. In a `chat` list it is set as a day,
|
|
81
|
+
* in the words' own case.
|
|
82
|
+
*
|
|
83
|
+
* THE GROUP IS WHERE ROWS LIVE: it draws the list element (`ul`) an
|
|
84
|
+
* `InboxRow` is an item of. A row placed straight in the `InboxList` is an
|
|
85
|
+
* item of no list, and says so once in development.
|
|
70
86
|
*/
|
|
71
87
|
export declare function InboxGroup({ label, hideLabel, headingLevel, count, collapsible, open: controlledOpen, defaultOpen, onOpenChange, arrived, className, children, ...rest }: InboxGroupProps): import("react").JSX.Element;
|
|
72
88
|
export type InboxRowTone = 'default' | 'danger';
|
|
89
|
+
/** How many lines a row's words take before they stop. */
|
|
90
|
+
export type InboxRowLines = 2 | 3 | 'all';
|
|
73
91
|
export interface InboxRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, 'onClick' | 'title'> {
|
|
74
92
|
/** Who the row is from: a seat's or a person's name. */
|
|
75
93
|
title: ReactNode;
|
|
@@ -97,8 +115,30 @@ export interface InboxRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, 'on
|
|
|
97
115
|
* with the name's line beside its top.
|
|
98
116
|
*/
|
|
99
117
|
leading?: ReactNode;
|
|
100
|
-
/** What the row says, in up to three lines. */
|
|
118
|
+
/** What the row says, in up to three lines (`lines`). */
|
|
101
119
|
children?: ReactNode;
|
|
120
|
+
/**
|
|
121
|
+
* How many lines the words take before they stop with an ellipsis: 3 (the
|
|
122
|
+
* default), 2 for a row read beside an open detail, or `all` for a row that
|
|
123
|
+
* is read in full where it stands, such as a message in a list of them.
|
|
124
|
+
*/
|
|
125
|
+
lines?: InboxRowLines | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* After the words, in the quiet ink: why the row reached the reader and
|
|
128
|
+
* where ("Mention in #engineering"), on a line of its own that wraps rather
|
|
129
|
+
* than cuts. Part of the row's name.
|
|
130
|
+
*/
|
|
131
|
+
context?: ReactNode;
|
|
132
|
+
/** A small glyph before the context, hidden from a screen reader: the kind of row. */
|
|
133
|
+
contextIcon?: ReactNode;
|
|
134
|
+
/**
|
|
135
|
+
* The row's quick actions (a `MessageActions` tray): floated over the end
|
|
136
|
+
* of its first line, over the time, while the row is hovered or holds
|
|
137
|
+
* focus. Never a reflow: the row keeps its height and its words their
|
|
138
|
+
* place. Outside the row's control, so each action is a control of its own,
|
|
139
|
+
* reached by Tab after the row.
|
|
140
|
+
*/
|
|
141
|
+
actions?: ReactNode;
|
|
102
142
|
/** Drawn after the words in the quiet ink, inside the same three lines: a comment's own text. */
|
|
103
143
|
excerpt?: ReactNode;
|
|
104
144
|
/**
|
|
@@ -180,7 +220,7 @@ export interface InboxRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, 'on
|
|
|
180
220
|
* the words take up to three lines before they stop, so a row says what it is
|
|
181
221
|
* rather than its first few words.
|
|
182
222
|
*/
|
|
183
|
-
export declare function InboxRow({ title, qualifier, qualifierTone, where, meta, leading, excerpt, aside, selected, unread, unreadLabel, actionable, done, doneLabel, status, outcome, outcomeIcon, outcomeTone, href, onClick, leaving, onLeft, arrived, className, children, ...rest }: InboxRowProps): import("react").JSX.Element | null;
|
|
223
|
+
export declare function InboxRow({ title, qualifier, qualifierTone, where, meta, leading, excerpt, lines, context, contextIcon, actions, aside, selected, unread, unreadLabel, actionable, done, doneLabel, status, outcome, outcomeIcon, outcomeTone, href, onClick, leaving, onLeft, arrived, className, children, ...rest }: InboxRowProps): import("react").JSX.Element | null;
|
|
184
224
|
export type InboxMoreProps = HTMLAttributes<HTMLDivElement>;
|
|
185
225
|
/**
|
|
186
226
|
* The end of the list: the quiet toggles that open what is not in it by
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../ChatMessage/ChatScale.css';
|
|
1
2
|
import './InboxList.css';
|
|
2
3
|
export { InboxList, InboxGroup, InboxRow, InboxMore, InboxToggle, INBOX_ROW_LEAVE } from './InboxList.js';
|
|
3
|
-
export type { InboxListProps, InboxGroupProps, InboxRowProps, InboxRowTone, InboxMoreProps, InboxToggleProps, } from './InboxList.js';
|
|
4
|
+
export type { InboxListProps, InboxGroupProps, InboxRowProps, InboxRowTone, InboxRowLines, InboxListDensity, InboxMoreProps, InboxToggleProps, } from './InboxList.js';
|
package/dist/InboxList/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { INBOX_ROW_LEAVE, InboxGroup, InboxList, InboxMore, InboxRow, InboxToggle } from '../chunk-
|
|
1
|
+
export { INBOX_ROW_LEAVE, InboxGroup, InboxList, InboxMore, InboxRow, InboxToggle } from '../chunk-4FEWDSRQ.js';
|
|
2
2
|
import '../chunk-RK4XPHVG.js';
|
|
3
3
|
import '../chunk-6C7GQOBV.js';
|
|
4
4
|
import '../chunk-SNKQNAJI.js';
|
|
@@ -378,10 +378,11 @@
|
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
/*
|
|
381
|
-
*
|
|
382
|
-
*
|
|
381
|
+
* A line under the words: what came of the row (`outcome`), or why it
|
|
382
|
+
* reached the reader (`context`). A glyph, then words in the secondary ink,
|
|
383
|
+
* on one line that wraps rather than cuts.
|
|
383
384
|
*/
|
|
384
|
-
.crewlet-inbox-
|
|
385
|
+
.crewlet-inbox-row__line {
|
|
385
386
|
display: flex;
|
|
386
387
|
align-items: flex-start;
|
|
387
388
|
gap: var(--spacing-1);
|
|
@@ -393,7 +394,7 @@
|
|
|
393
394
|
overflow-wrap: anywhere;
|
|
394
395
|
}
|
|
395
396
|
|
|
396
|
-
.crewlet-inbox-
|
|
397
|
+
.crewlet-inbox-row__line-icon {
|
|
397
398
|
display: inline-flex;
|
|
398
399
|
flex: none;
|
|
399
400
|
align-items: center;
|
|
@@ -421,11 +422,11 @@
|
|
|
421
422
|
color: var(--color-brand-accent);
|
|
422
423
|
}
|
|
423
424
|
|
|
424
|
-
.crewlet-inbox-
|
|
425
|
+
.crewlet-inbox-row__line-text {
|
|
425
426
|
min-width: 0;
|
|
426
427
|
}
|
|
427
428
|
|
|
428
|
-
.crewlet-inbox-
|
|
429
|
+
.crewlet-inbox-row__line-text strong {
|
|
429
430
|
font-weight: var(--font-weight-medium);
|
|
430
431
|
color: var(--color-text-primary);
|
|
431
432
|
}
|
|
@@ -451,6 +452,142 @@
|
|
|
451
452
|
padding-inline-start: var(--spacing-2);
|
|
452
453
|
}
|
|
453
454
|
|
|
455
|
+
/*
|
|
456
|
+
* HOW MANY LINES THE WORDS TAKE: three by default, two beside an open detail,
|
|
457
|
+
* all of them for a row read in full where it stands.
|
|
458
|
+
*/
|
|
459
|
+
.crewlet-inbox-row__text--lines-2 {
|
|
460
|
+
-webkit-line-clamp: 2;
|
|
461
|
+
line-clamp: 2;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.crewlet-inbox-row__text--lines-all {
|
|
465
|
+
display: block;
|
|
466
|
+
-webkit-line-clamp: none;
|
|
467
|
+
line-clamp: none;
|
|
468
|
+
overflow: visible;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/*
|
|
472
|
+
* THE QUICK ACTIONS FLOAT, never reflow: lifted over the end of the first
|
|
473
|
+
* line (the time) while the row is hovered or holds focus, and taking no room
|
|
474
|
+
* otherwise. Shown by opacity rather than display, so Tab still reaches them
|
|
475
|
+
* from the row and focus brings them up.
|
|
476
|
+
*/
|
|
477
|
+
.crewlet-inbox-row--actions {
|
|
478
|
+
position: relative;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.crewlet-inbox-row__actions {
|
|
482
|
+
position: absolute;
|
|
483
|
+
top: var(--crewlet-inbox-row-actions-top, 0px);
|
|
484
|
+
inset-inline-end: var(--spacing-2);
|
|
485
|
+
z-index: 1;
|
|
486
|
+
opacity: 0;
|
|
487
|
+
pointer-events: none;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.crewlet-inbox-row:hover > .crewlet-inbox-row__actions,
|
|
491
|
+
.crewlet-inbox-row:focus-within > .crewlet-inbox-row__actions,
|
|
492
|
+
.crewlet-inbox-row__actions:has([aria-expanded='true']) {
|
|
493
|
+
opacity: 1;
|
|
494
|
+
pointer-events: auto;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/* ---- Chat density -------------------------------------------------------- */
|
|
498
|
+
|
|
499
|
+
/*
|
|
500
|
+
* A LIST OF MESSAGES, at a conversation's scale (ChatScale.css): the face,
|
|
501
|
+
* the name and the words at the transcript's sizes, the conversation's side
|
|
502
|
+
* inset, 16px above and below each row and a hairline between rows. A row runs
|
|
503
|
+
* the list's full width and the open one is a flat wash, so the column reads
|
|
504
|
+
* as a list of messages rather than a stack of cards.
|
|
505
|
+
*/
|
|
506
|
+
.crewlet-inbox-list--chat,
|
|
507
|
+
.crewlet-inbox-list--chat .crewlet-inbox-list__group,
|
|
508
|
+
.crewlet-inbox-list--chat .crewlet-inbox-list__rows {
|
|
509
|
+
gap: 0;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.crewlet-inbox-list--chat {
|
|
513
|
+
font-size: var(--crewlet-chat-text);
|
|
514
|
+
line-height: var(--crewlet-chat-line);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/* A group's label is a day: the words' own case, a step down, on the page's
|
|
518
|
+
ground, set on the row's inset so it starts over the faces. */
|
|
519
|
+
.crewlet-inbox-list--chat .crewlet-inbox-list__label {
|
|
520
|
+
padding: var(--spacing-4) var(--crewlet-chat-pad-x) var(--spacing-2);
|
|
521
|
+
font-size: var(--crewlet-chat-meta);
|
|
522
|
+
line-height: var(--font-line-height-snug);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.crewlet-inbox-list__day {
|
|
526
|
+
font-weight: var(--font-weight-semibold);
|
|
527
|
+
color: var(--color-text-secondary);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row,
|
|
531
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__control {
|
|
532
|
+
border-radius: 0;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row {
|
|
536
|
+
border-bottom: 1px solid var(--color-border-default);
|
|
537
|
+
/* The tray sits on the name's line: its middle on the line's middle. */
|
|
538
|
+
--crewlet-inbox-row-actions-top: calc(var(--spacing-4) + var(--crewlet-chat-line) * var(--crewlet-chat-text) / 2 - var(--crewlet-chat-toolbar) / 2);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__actions {
|
|
542
|
+
inset-inline-end: var(--spacing-3);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/* The face hangs from the row's top pad, beside the name's line and the one
|
|
546
|
+
under it; the words start the face and the gap in, as in a transcript. */
|
|
547
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__control,
|
|
548
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__control--leading,
|
|
549
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__control:only-child {
|
|
550
|
+
gap: var(--crewlet-chat-gap);
|
|
551
|
+
padding: var(--spacing-4) var(--crewlet-chat-pad-x);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__control--leading > .crewlet-inbox-row__main {
|
|
555
|
+
padding-top: 0;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__leading {
|
|
559
|
+
align-items: flex-start;
|
|
560
|
+
min-width: var(--crewlet-chat-avatar);
|
|
561
|
+
min-height: var(--crewlet-chat-avatar);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__main {
|
|
565
|
+
gap: 2px;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__head {
|
|
569
|
+
-webkit-line-clamp: 1;
|
|
570
|
+
line-clamp: 1;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__meta {
|
|
574
|
+
font-size: var(--crewlet-chat-meta);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__text {
|
|
578
|
+
line-height: var(--crewlet-chat-line);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__line {
|
|
582
|
+
padding-top: var(--spacing-1);
|
|
583
|
+
font-size: var(--crewlet-chat-meta);
|
|
584
|
+
color: var(--color-text-tertiary);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.crewlet-inbox-list--chat .crewlet-inbox-row__aside {
|
|
588
|
+
padding-inline: calc(var(--crewlet-chat-pad-x) + var(--crewlet-chat-avatar) + var(--crewlet-chat-gap)) var(--crewlet-chat-pad-x);
|
|
589
|
+
}
|
|
590
|
+
|
|
454
591
|
/* ---- The end of the list ---------------------------------------------- */
|
|
455
592
|
|
|
456
593
|
.crewlet-inbox-list__more {
|
package/dist/LinkCard/index.js
CHANGED