@crewlethq/ui 0.130.2 → 0.131.1
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/AppShell/AppShell.d.ts +47 -196
- package/dist/AppShell/index.js +2 -2
- package/dist/{AppShell-N5IHITJM.css → AppShell-RPILZZW5.css} +109 -431
- package/dist/ArtifactBar/index.js +4 -4
- package/dist/ArtifactCard/ArtifactCard.d.ts +13 -39
- package/dist/ArtifactCard/index.js +1 -1
- package/dist/{ArtifactCard-ZH6KCD5O.css → ArtifactCard-PWMC7RAY.css} +15 -49
- package/dist/ArtifactMakeRow/ArtifactMakeRow.d.ts +3 -16
- package/dist/AvatarPicker/index.js +5 -5
- package/dist/BrandSample/index.js +1 -1
- package/dist/{BrandSample-3OSKZAGG.css → BrandSample-WSBT7FQ5.css} +5 -25
- package/dist/Breadcrumb/Breadcrumb.d.ts +5 -41
- package/dist/Breadcrumb/index.js +1 -1
- package/dist/{Breadcrumb-MQJWJVN3.css → Breadcrumb-JDBQXPR5.css} +12 -58
- package/dist/Canvas/Canvas.d.ts +52 -228
- package/dist/Canvas/geometry.d.ts +31 -139
- package/dist/Canvas/index.js +1 -1
- package/dist/CanvasBoard/index.js +3 -3
- package/dist/CanvasToolbar/index.js +2 -2
- package/dist/CodeBlock/index.js +1 -1
- package/dist/ColorSwatch/index.js +2 -2
- package/dist/CommentThread/CommentThread.d.ts +3 -21
- package/dist/CommentThread/index.js +1 -1
- package/dist/{CommentThread-544KCZT7.css → CommentThread-YU6VSVS4.css} +2 -4
- package/dist/Composer/Composer.d.ts +17 -54
- package/dist/ConfirmField/index.js +2 -2
- package/dist/Copyable/Copyable.d.ts +2 -11
- package/dist/Copyable/index.js +1 -1
- package/dist/{Copyable-XMLKKJDT.css → Copyable-U3UJL3BP.css} +9 -32
- package/dist/DataGrid/DataGrid.d.ts +46 -136
- package/dist/DataGrid/index.js +1 -1
- package/dist/DataTable/index.js +2 -2
- package/dist/DataView/index.js +3 -3
- package/dist/DocTabsEditor/index.js +2 -2
- package/dist/{Editor-MEPTWBY5.js → Editor-HDHT5BX2.js} +2 -2
- package/dist/GraphCanvas/GraphCanvas.d.ts +22 -79
- package/dist/GraphCanvas/index.js +2 -2
- package/dist/GraphCanvas/layout.d.ts +10 -35
- package/dist/HuePicker/index.js +4 -4
- package/dist/InlineCode/InlineCode.d.ts +7 -28
- package/dist/InlineCode/index.js +1 -1
- package/dist/InlineCode-3KJCBT5I.css +80 -0
- package/dist/Link/Link.d.ts +3 -25
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Y7RHTR6F.css → Link-7AADYG2F.css} +12 -35
- package/dist/LinkInterstitial/index.js +2 -2
- package/dist/MarkdownEditor/index.js +4 -4
- package/dist/MentionMenu/MentionMenu.d.ts +9 -31
- package/dist/Menu/Menu.d.ts +9 -91
- package/dist/Menu/index.js +1 -1
- package/dist/MergeConflicts/index.js +4 -4
- package/dist/ObjectHeader/index.js +2 -2
- package/dist/OrgTable/index.js +3 -3
- package/dist/PropertyList/index.js +3 -3
- package/dist/RichEditor/index.js +1 -1
- package/dist/SearchTrigger/SearchTrigger.d.ts +8 -36
- package/dist/SearchTrigger/index.js +1 -1
- package/dist/{SearchTrigger-MME7NIHX.css → SearchTrigger-3HO7D6NP.css} +5 -17
- package/dist/SegmentedControl/index.js +3 -3
- package/dist/ShareDialog/index.js +1 -1
- package/dist/SheetColumnEditor/index.js +5 -5
- package/dist/SheetGrid/index.js +2 -2
- package/dist/SlideFilmstrip/index.js +2 -2
- package/dist/TableCells/index.js +2 -2
- package/dist/Tabs/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +4 -4
- package/dist/TimeRangePicker/index.js +4 -4
- package/dist/TreeCanvas/TreeCanvas.d.ts +50 -248
- package/dist/TreeCanvas/index.js +2 -2
- package/dist/TreeGrid/index.js +2 -2
- package/dist/VersionCompare/index.js +4 -4
- package/dist/{chunk-O43SIR3W.js → chunk-3QQ3QHQR.js} +1 -1
- package/dist/{chunk-MZV45HQB.js → chunk-3T6URIXM.js} +1 -1
- package/dist/{chunk-H2QSDZTX.js → chunk-3ZURIGQ7.js} +1 -1
- package/dist/{chunk-KQFOPY2P.js → chunk-4H577HEE.js} +1 -1
- package/dist/{chunk-3WSDAVE6.js → chunk-5PAABHF7.js} +1 -1
- package/dist/{chunk-3DAIOPAV.js → chunk-63NULHGF.js} +1 -1
- package/dist/{chunk-NFA7CSCD.js → chunk-6BMPVSUB.js} +1 -1
- package/dist/{chunk-JY6WSDUG.js → chunk-AIQHJ2HF.js} +1 -1
- package/dist/{chunk-M32NBSS7.js → chunk-B2RTWEZZ.js} +4 -6
- package/dist/{chunk-3P24SMTI.js → chunk-B5MCTPXL.js} +1 -1
- package/dist/{chunk-V2FD4RPS.js → chunk-BGPHGCDT.js} +1 -1
- package/dist/{chunk-QNDXLHBO.js → chunk-CN2EDXAW.js} +1 -1
- package/dist/{chunk-MNACKUBB.js → chunk-CX4JXBS3.js} +2 -2
- package/dist/{chunk-NLGRDKCK.js → chunk-EPH5EPKN.js} +2 -2
- package/dist/{chunk-AKCIF6XN.js → chunk-FEJVDORA.js} +1 -1
- package/dist/{chunk-PFTUWDZN.js → chunk-FIH5EMJF.js} +1 -1
- package/dist/{chunk-OWYIRWEX.js → chunk-FMRRKLNX.js} +1 -1
- package/dist/{chunk-QM2QFKIA.js → chunk-FVXNR63H.js} +2 -2
- package/dist/{chunk-2AKVGQ73.js → chunk-GDBROEQ5.js} +1 -1
- package/dist/{chunk-NMBGVHGQ.js → chunk-GSLN7WL2.js} +2 -2
- package/dist/{chunk-KMIS2R67.js → chunk-HJAX4356.js} +1 -1
- package/dist/{chunk-WLCPN22T.js → chunk-HKYLPYVF.js} +1 -1
- package/dist/{chunk-Q4JX6UO7.js → chunk-HMEFWPAA.js} +3 -7
- package/dist/{chunk-OVFB63RZ.js → chunk-JANUABBT.js} +3 -5
- package/dist/{chunk-AIYSPVVZ.js → chunk-JDRBZYIA.js} +1 -1
- package/dist/{chunk-7FSIBX4S.js → chunk-JG66SXCX.js} +1 -1
- package/dist/{chunk-D2KJ5GQC.js → chunk-N2DCSSYC.js} +2 -2
- package/dist/{chunk-2TZNTPF5.js → chunk-NDWXVEY6.js} +2 -4
- package/dist/{chunk-QFE6T6GW.js → chunk-P4QAS5TS.js} +1 -1
- package/dist/{chunk-JKFA2F7J.js → chunk-R4YUMULC.js} +1 -1
- package/dist/{chunk-E3AFQTWT.js → chunk-SRPV3EAJ.js} +1 -1
- package/dist/{chunk-K5WTII2H.js → chunk-U67UM3VS.js} +1 -1
- package/dist/{chunk-RMGPZQVJ.js → chunk-UTKI2SAM.js} +1 -1
- package/dist/{chunk-KUECTV2P.js → chunk-W443OSWT.js} +1 -1
- package/dist/{chunk-XHNV272L.js → chunk-W4UJWFCZ.js} +1 -1
- package/dist/{chunk-EGHOU7U2.js → chunk-WGAEHKGW.js} +5 -12
- package/dist/{chunk-3DGNF2EH.js → chunk-XGZXKG53.js} +2 -2
- package/dist/{chunk-MNVIIZQP.js → chunk-YADYQHHW.js} +2 -5
- package/dist/{chunk-Y7FPSBCN.js → chunk-YBOGOTYV.js} +1 -1
- package/dist/{chunk-ECOWCJHQ.js → chunk-YTDZY3PY.js} +1 -1
- package/dist/{chunk-6POROC4M.js → chunk-ZO3MXMAC.js} +1 -1
- package/dist/generated/index.js +49 -49
- package/dist/index.js +49 -49
- package/dist/styles.css +188 -696
- package/dist/utils/pathBreaks.d.ts +3 -8
- package/package.json +3 -3
- package/dist/InlineCode-BEYQFJQT.css +0 -106
package/dist/CodeBlock/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ColorSwatch } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ColorSwatch } from '../chunk-HJAX4356.js';
|
|
2
|
+
import '../chunk-3T6URIXM.js';
|
|
3
3
|
import '../chunk-2MEBMWNO.js';
|
|
4
4
|
import '../chunk-STJ7QBC3.js';
|
|
5
5
|
import '../chunk-DTIW4CHZ.js';
|
|
@@ -107,26 +107,8 @@ export interface CommentThreadProps {
|
|
|
107
107
|
className?: string | undefined;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* A document's comments, oldest first, and a field to add one.
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* stays flat and readable in order while each answer still points at its
|
|
114
|
-
* question. Pressing Reply moves focus into the field, which names whom it
|
|
115
|
-
* answers, and the reply can be abandoned from beside it.
|
|
116
|
-
*
|
|
117
|
-
* THE BODY IS THE HOST'S. A remark arrives already rendered (markdown into
|
|
118
|
-
* elements), so this draws it in the kit's document type at the size a remark
|
|
119
|
-
* read beside other things takes, and never parses anything itself.
|
|
120
|
-
*
|
|
121
|
-
* A SUBMIT IS ONE AT A TIME. The submit control is disabled while a post is in
|
|
122
|
-
* flight, so a second press cannot send the same remark twice, and the draft
|
|
123
|
-
* is cleared only once the host says the post landed.
|
|
124
|
-
*
|
|
125
|
-
* THE READER'S OWN REMARKS ARE EDITED AND TAKEN DOWN IN PLACE. Edit swaps the
|
|
126
|
-
* remark's words for a field holding what was written (`source`), saved or
|
|
127
|
-
* left with Cancel; Delete asks in place before it acts, since the words go
|
|
128
|
-
* for everybody. Which remarks offer either is the host's to say (`editable`,
|
|
129
|
-
* `removable`): who may is the server's rule. A remark taken down keeps its
|
|
130
|
-
* row, so a reply to it still reads in order.
|
|
110
|
+
* A document's comments, oldest first, and a field to add one. A reply names
|
|
111
|
+
* what it answers, a submit is one at a time, and the host says which remarks
|
|
112
|
+
* the reader may edit or delete in place (`editable`, `removable`).
|
|
131
113
|
*/
|
|
132
114
|
export declare function CommentThread({ comments, subject, onSubmit, onEdit, onRemove, disabledReason, busy, hint, notice, heading, now, labels: overrides, className, }: CommentThreadProps): import("react").JSX.Element;
|
|
@@ -73,10 +73,8 @@
|
|
|
73
73
|
font-size: var(--font-size-xs);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
/* The remark's controls
|
|
77
|
-
|
|
78
|
-
card foot's ghost is (StatusCard.css), so the word ends on the line the
|
|
79
|
-
hairline under the remark ends on rather than 9px inside. */
|
|
76
|
+
/* The remark's controls sit at the row's far end, the last one's padding
|
|
77
|
+
pulled out so its word ends where the hairline under the remark ends. */
|
|
80
78
|
.crewlet-comment-thread__actions {
|
|
81
79
|
display: inline-flex;
|
|
82
80
|
align-items: center;
|
|
@@ -8,23 +8,17 @@ export interface ComposerProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
8
8
|
value: string;
|
|
9
9
|
onChange: (value: string) => void;
|
|
10
10
|
/**
|
|
11
|
-
* Called on the send key:
|
|
12
|
-
*
|
|
13
|
-
* Never while the composer is disabled or `canSubmit` is false, never mid
|
|
14
|
-
* composition, and never on a touch keyboard's Return.
|
|
11
|
+
* Called on the send key (`isSendPress`): never while disabled or
|
|
12
|
+
* `canSubmit` is false, mid composition, or on a touch keyboard's Return.
|
|
15
13
|
*/
|
|
16
14
|
onSubmit?: (() => void) | undefined;
|
|
17
15
|
/**
|
|
18
|
-
* Whether a send would be taken now; when
|
|
19
|
-
*
|
|
20
|
-
* blank space. A box whose send carries more than its words (an agent's
|
|
21
|
-
* brief, which may be left empty) passes its own answer.
|
|
16
|
+
* Whether a send would be taken now; when not, the send key does nothing.
|
|
17
|
+
* By default, whether the field holds more than blank space.
|
|
22
18
|
*/
|
|
23
19
|
canSubmit?: boolean | undefined;
|
|
24
20
|
/**
|
|
25
|
-
* Draws the send hint in the footer
|
|
26
|
-
* line". True by default; a box whose send button and placement already say
|
|
27
|
-
* it (a chat box, a question to the assistant) turns it off. The field's
|
|
21
|
+
* Draws the send hint in the footer. True by default; the field's
|
|
28
22
|
* description names the keys either way.
|
|
29
23
|
*/
|
|
30
24
|
sendHint?: boolean | undefined;
|
|
@@ -34,71 +28,40 @@ export interface ComposerProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
34
28
|
label: string;
|
|
35
29
|
/**
|
|
36
30
|
* `chat` is a conversation's message box, on the transcript's own type and
|
|
37
|
-
* ground (the `--crewlet-chat-*` scale)
|
|
38
|
-
* ground with the row wash and a small shadow, the words at the chat step, a
|
|
39
|
-
* footer with no rule of its own, a tool whose menu is open drawn pressed,
|
|
40
|
-
* and the formatting row's glyphs quiet until the box is in use.
|
|
31
|
+
* ground (the `--crewlet-chat-*` scale).
|
|
41
32
|
*/
|
|
42
33
|
appearance?: ComposerAppearance | undefined;
|
|
43
34
|
/** The footer's controls, at its end: Cancel and Submit. */
|
|
44
35
|
actions?: ReactNode;
|
|
45
|
-
/**
|
|
46
|
-
* Tools at the footer's START, before the actions: what a chat composer
|
|
47
|
-
* offers beside sending (attach, emoji, a mention, drafting with the
|
|
48
|
-
* assistant). They stand where the eye starts, under the words, and the
|
|
49
|
-
* send control keeps the corner.
|
|
50
|
-
*/
|
|
36
|
+
/** Tools at the footer's start, before the actions (attach, emoji, mention). */
|
|
51
37
|
tools?: ReactNode;
|
|
52
38
|
/**
|
|
53
|
-
* A
|
|
54
|
-
* formatting `Toolbar` (bold, italic, a list) that acts on the words below.
|
|
39
|
+
* A formatting `Toolbar` along the box's top that acts on the words below.
|
|
55
40
|
* Pass a `Toolbar` with its own name; the row is laid out, not labelled.
|
|
56
41
|
*/
|
|
57
42
|
toolbar?: ReactNode;
|
|
58
43
|
/**
|
|
59
|
-
* A control
|
|
60
|
-
*
|
|
61
|
-
* to six before it scrolls, and the control stays on the last line.
|
|
44
|
+
* A control at the end of the field's row (`SendButton`). With one, the
|
|
45
|
+
* field starts at one line and grows to six before it scrolls.
|
|
62
46
|
*/
|
|
63
47
|
trailing?: ReactNode;
|
|
64
48
|
/**
|
|
65
|
-
* What travels with the message, drawn above the field
|
|
66
|
-
*
|
|
67
|
-
* about. It is a group named by `attachmentsLabel`, before the field in
|
|
68
|
-
* reading order, so a reader meets what is attached before what they type.
|
|
49
|
+
* What travels with the message (a row of `Tag`s), drawn above the field as
|
|
50
|
+
* a group named by `attachmentsLabel`, before the field in reading order.
|
|
69
51
|
*/
|
|
70
52
|
attachments?: ReactNode;
|
|
71
53
|
/** Names the attachments group. "Attached to this message" by default. */
|
|
72
54
|
attachmentsLabel?: string | undefined;
|
|
73
55
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* field's look, the reason stands as the placeholder (so it keeps one line)
|
|
77
|
-
* and describes the field, and a draft already in it stays. Implies
|
|
78
|
-
* `disabled`.
|
|
56
|
+
* Why the composer cannot send right now, in a few words. Shown as the
|
|
57
|
+
* placeholder and the field's description; keeps the draft. Implies `disabled`.
|
|
79
58
|
*/
|
|
80
59
|
disabledReason?: string | undefined;
|
|
81
60
|
className?: string | undefined;
|
|
82
61
|
}
|
|
83
62
|
/**
|
|
84
|
-
* A message written in place: a
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* (`toolbar`) may stand along the box's top, above the words it acts on.
|
|
88
|
-
*
|
|
89
|
-
* ENTER SENDS AND SHIFT+ENTER WRITES A LINE, as in every message box in the
|
|
90
|
-
* system (`useSendOnEnter`); on a touch keyboard Return writes a line and the
|
|
91
|
-
* send button sends.
|
|
92
|
-
*
|
|
93
|
-
* THE FOOTER IS DRAWN ONLY WITH SOMETHING IN IT. With no hint, counter or
|
|
94
|
-
* actions there is no strip at all, and one holding only the hint goes on a
|
|
95
|
-
* phone, where the hint is not drawn, rather than stand there empty.
|
|
96
|
-
*
|
|
97
|
-
* THE COUNTER IS DRAWN ONLY NEAR THE LIMIT, from [COMPOSER_COUNTER_AT] of
|
|
98
|
-
* `maxLength`: a count under every short reply is noise, and a field that
|
|
99
|
-
* stops taking text with no warning reads as a broken keyboard.
|
|
100
|
-
*
|
|
101
|
-
* THE BOX OWNS THE ONE FOCUS RING, by pointer and by keyboard; the field
|
|
102
|
-
* inside never draws its own, so a click in the field never shows two rings.
|
|
63
|
+
* A message written in place: a field that grows with its text and a footer
|
|
64
|
+
* of tools, send hint, counter and actions, in one box that owns the focus ring.
|
|
65
|
+
* The footer is drawn only with something in it; the counter only near the limit.
|
|
103
66
|
*/
|
|
104
67
|
export declare const Composer: import("react").ForwardRefExoticComponent<ComposerProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ConfirmField, confirmMatches } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ConfirmField, confirmMatches } from '../chunk-YTDZY3PY.js';
|
|
2
|
+
import '../chunk-W4UJWFCZ.js';
|
|
3
3
|
import '../chunk-HZXS5CEL.js';
|
|
4
4
|
import '../chunk-NN44J7BP.js';
|
|
5
5
|
import '../chunk-NICEDVZM.js';
|
|
@@ -27,16 +27,7 @@ export interface CopyableProps {
|
|
|
27
27
|
className?: string | undefined;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* An identifier
|
|
31
|
-
*
|
|
32
|
-
* ONE TAB STOP. The value used to be a `role="button"` span with its own
|
|
33
|
-
* `tabIndex` beside the button that did the same thing, so every id in a table
|
|
34
|
-
* was two stops on the way to the next row, and the first of them was a button
|
|
35
|
-
* that was not one. The value is text now, and the button is the only control.
|
|
36
|
-
*
|
|
37
|
-
* A REFUSAL IS REPORTED. The previous implementation awaited
|
|
38
|
-
* `document.execCommand` and reported success whatever it returned, so on the
|
|
39
|
-
* plain http origin anybody reads a remote dashboard at, the tick appeared and
|
|
40
|
-
* the clipboard was empty.
|
|
30
|
+
* An identifier with a control that copies it. The value is plain text and the
|
|
31
|
+
* button the one tab stop; a clipboard the browser refuses is reported.
|
|
41
32
|
*/
|
|
42
33
|
export declare const Copyable: ({ value, display, variant, monospace, truncate, truncateLength, ariaLabel, title, copiedMessage, failedMessage, resetMs, failedResetMs, className, }: CopyableProps) => import("react").JSX.Element | null;
|
package/dist/Copyable/index.js
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyable: a value and the
|
|
3
|
-
*
|
|
4
|
-
* Three framings, and they differ only in how the value is drawn:
|
|
5
|
-
*
|
|
6
|
-
* chip A compact pill for a table cell, with head and tail truncation.
|
|
7
|
-
* inline The value inline in a detail row, no chip behind it.
|
|
8
|
-
* block A bordered panel for a full URL or a command.
|
|
9
|
-
*
|
|
10
|
-
* The control is an IconButton in every one of them, and it is the only tab
|
|
11
|
-
* stop: the value is text.
|
|
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) or `block` (a panel for a command).
|
|
12
4
|
*/
|
|
13
5
|
|
|
14
6
|
.crewlet-copyable {
|
|
@@ -62,11 +54,7 @@
|
|
|
62
54
|
|
|
63
55
|
/*
|
|
64
56
|
* The chip states its own line, the document's leading rounded to a whole
|
|
65
|
-
* pixel
|
|
66
|
-
* was whatever the text around it said: 17.95px on the document's own line
|
|
67
|
-
* and 17.4px inside a tighter sentence, where Chromium floored the leading
|
|
68
|
-
* above the figures to nothing and they stood nearly a pixel high in their
|
|
69
|
-
* chip.
|
|
57
|
+
* pixel (see Kbd.css), so its figures sit centred in any sentence.
|
|
70
58
|
*/
|
|
71
59
|
.crewlet-copyable--chip .crewlet-copyable__value {
|
|
72
60
|
font-size: var(--font-size-2xs);
|
|
@@ -78,10 +66,8 @@
|
|
|
78
66
|
|
|
79
67
|
/* ---- inline ------------------------------------------------------------ */
|
|
80
68
|
|
|
81
|
-
/*
|
|
82
|
-
|
|
83
|
-
12px in the secondary ink, an address was the one value in its list a step
|
|
84
|
-
smaller and quieter than the values around it. */
|
|
69
|
+
/* Inline takes the row's own size and ink, in the mono face: in a detail row
|
|
70
|
+
it is one of the row's values. */
|
|
85
71
|
.crewlet-copyable--inline .crewlet-copyable__value {
|
|
86
72
|
font-size: inherit;
|
|
87
73
|
background: transparent;
|
|
@@ -108,12 +94,8 @@
|
|
|
108
94
|
}
|
|
109
95
|
|
|
110
96
|
/*
|
|
111
|
-
* A
|
|
112
|
-
*
|
|
113
|
-
* command they must check before running it. Held to one line, it scrolled
|
|
114
|
-
* past a phone's width behind an ellipsis, with no scrollbar to say there was
|
|
115
|
-
* more, and the reader saw "https://example.com/webho…" of the address they
|
|
116
|
-
* were asked to copy into a vendor's form.
|
|
97
|
+
* A block shows its value whole, every space kept and wrapped where it must:
|
|
98
|
+
* an address to allowlist or a command to check is never cut.
|
|
117
99
|
*/
|
|
118
100
|
.crewlet-copyable--block .crewlet-copyable__value {
|
|
119
101
|
font-size: var(--font-size-compact);
|
|
@@ -128,13 +110,8 @@
|
|
|
128
110
|
}
|
|
129
111
|
|
|
130
112
|
/*
|
|
131
|
-
* A
|
|
132
|
-
*
|
|
133
|
-
* a run between them no line can hold. AN OPAQUE VALUE (a token, an id, a key:
|
|
134
|
-
* one run with no space and no `/`) means nothing in its pieces, so it breaks
|
|
135
|
-
* at any character and fills each line; left to the line breaker it broke
|
|
136
|
-
* after a hyphen, and a token read "cwl_pat_01a1dc5f-3ec7-7cf4-a60d-" over a
|
|
137
|
-
* ragged first line, as if it ended there.
|
|
113
|
+
* A path breaks after each `/` (the component offers the breaks); an opaque
|
|
114
|
+
* value, one run with no space and no `/`, breaks at any character.
|
|
138
115
|
*/
|
|
139
116
|
.crewlet-copyable--opaque .crewlet-copyable__value {
|
|
140
117
|
word-break: break-all;
|
|
@@ -26,20 +26,14 @@ export interface DataGridColumn<T> {
|
|
|
26
26
|
*/
|
|
27
27
|
sortable?: boolean | undefined;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* tabular, so a column of them reads down one edge), `center` for a column
|
|
32
|
-
* of one mark per row. The head and every cell take the same edge and the
|
|
33
|
-
* same inset, so a head never stands off the values it names.
|
|
29
|
+
* The edge the head and every cell share: `left` (the default) for words,
|
|
30
|
+
* `right` for figures, times and dates, `center` for one mark per row.
|
|
34
31
|
*/
|
|
35
32
|
align?: DataGridAlign | undefined;
|
|
36
33
|
/**
|
|
37
|
-
* A column of
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* as aligned columns rather than marks scattered at their content's width.
|
|
41
|
-
* Name it with `label`, which the head says to assistive technology and
|
|
42
|
-
* shows on hover.
|
|
34
|
+
* A column of one mark per row (a glyph, a face, a priority): a fixed
|
|
35
|
+
* `DATA_GRID_ICON_TRACK`, centred. Name it with `label`, which the head
|
|
36
|
+
* says to assistive technology and shows on hover.
|
|
43
37
|
*/
|
|
44
38
|
icon?: boolean | undefined;
|
|
45
39
|
/**
|
|
@@ -49,20 +43,16 @@ export interface DataGridColumn<T> {
|
|
|
49
43
|
*/
|
|
50
44
|
label?: string | undefined;
|
|
51
45
|
/**
|
|
52
|
-
* A column of
|
|
53
|
-
*
|
|
54
|
-
* such a cell draws no name beside it, since the control is its own name;
|
|
55
|
-
* its head stays empty, since a word over a column of buttons says nothing
|
|
56
|
-
* the buttons do not.
|
|
46
|
+
* A column of row actions, each cell a control that names itself. Its head
|
|
47
|
+
* stays empty and the phone's card draws no name beside its cells.
|
|
57
48
|
*/
|
|
58
49
|
action?: boolean | undefined;
|
|
59
50
|
/** Shrink to content (up to a fifth of the grid) and never wrap. */
|
|
60
51
|
shrink?: boolean | undefined;
|
|
61
52
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* Left out, the cell lays out whatever `cell` draws as it is.
|
|
53
|
+
* A value wider than its column: `truncate` cuts it with an ellipsis (whole
|
|
54
|
+
* words on hover), `wrap` breaks it over lines for prose. Left out, the cell
|
|
55
|
+
* lays out whatever `cell` draws as it is.
|
|
66
56
|
*/
|
|
67
57
|
overflow?: 'truncate' | 'wrap' | undefined;
|
|
68
58
|
/**
|
|
@@ -84,18 +74,15 @@ export interface DataGridColumn<T> {
|
|
|
84
74
|
/** Hidden unless the column set (`cols`) names it. */
|
|
85
75
|
optional?: boolean | undefined;
|
|
86
76
|
/**
|
|
87
|
-
* The narrowest a
|
|
88
|
-
* `minmax(floor, 1fr)
|
|
89
|
-
*
|
|
90
|
-
* content-sized column beside it. A flexible column whose widest value is
|
|
91
|
-
* short takes what it holds instead, never under its floor ([DataGrid]).
|
|
77
|
+
* The narrowest a flexible column may be drawn: its track is
|
|
78
|
+
* `minmax(floor, 1fr)`. For the column that is the point of the list (a
|
|
79
|
+
* title, a name); one whose widest value is short takes what it holds.
|
|
92
80
|
*/
|
|
93
81
|
floor?: string | undefined;
|
|
94
82
|
/**
|
|
95
|
-
* The order this column
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* its clipped edge, and says which it dropped.
|
|
83
|
+
* The order this column gives way in when the grid cannot fit every column:
|
|
84
|
+
* the lowest number goes first, a column without one never goes, and the
|
|
85
|
+
* grid says which it dropped.
|
|
99
86
|
*/
|
|
100
87
|
drop?: number | undefined;
|
|
101
88
|
}
|
|
@@ -107,15 +94,9 @@ export interface ColumnChoice {
|
|
|
107
94
|
optional?: boolean | undefined;
|
|
108
95
|
}
|
|
109
96
|
/**
|
|
110
|
-
* The choices a chooser offers,
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* AN ACTION COLUMN IS NO CHOICE. It holds the row's controls (a Restore, a
|
|
115
|
-
* row's More), not a fact about the row, so a box for it would offer to take
|
|
116
|
-
* away what a reader can do to a row in the list of what they read about it,
|
|
117
|
-
* under a name its empty head does not have. The grid draws it whatever the
|
|
118
|
-
* set names (see [DataGrid]'s `cols`).
|
|
97
|
+
* The choices a chooser offers, derived from a grid's columns without calling
|
|
98
|
+
* their cell renderers. An action column is no choice: the grid draws it
|
|
99
|
+
* whatever the set names (see [DataGrid]'s `cols`).
|
|
119
100
|
*/
|
|
120
101
|
export declare function columnChoicesOf<T>(columns: readonly DataGridColumn<T>[]): ColumnChoice[];
|
|
121
102
|
/** One box in a [ChooserList]. */
|
|
@@ -131,10 +112,8 @@ export interface ChooserListProps<K extends string = string> {
|
|
|
131
112
|
onToggle: (key: K) => void;
|
|
132
113
|
}
|
|
133
114
|
/**
|
|
134
|
-
* A short checklist of what a view shows,
|
|
135
|
-
*
|
|
136
|
-
* carries. Native checkboxes in a named group, each row its box's label, so
|
|
137
|
-
* the whole row takes the pointer.
|
|
115
|
+
* A short two-column checklist of what a view shows ([ColumnChooser], a
|
|
116
|
+
* card's facts): native checkboxes in a named group, each row its box's label.
|
|
138
117
|
*/
|
|
139
118
|
export declare function ChooserList<K extends string = string>({ label, items, onToggle }: ChooserListProps<K>): import("react").JSX.Element | null;
|
|
140
119
|
export interface ColumnChooserProps {
|
|
@@ -146,13 +125,9 @@ export interface ColumnChooserProps {
|
|
|
146
125
|
label?: string | undefined;
|
|
147
126
|
}
|
|
148
127
|
/**
|
|
149
|
-
* The checkbox list a reader chooses a grid's columns with.
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* it, so the boxes show the default until somebody moves one. It writes the
|
|
153
|
-
* DECLARATION order, never the click order: the value carries an order as well
|
|
154
|
-
* as a selection, and a value built from the order boxes were ticked in would
|
|
155
|
-
* rearrange the grid with every tick.
|
|
128
|
+
* The checkbox list a reader chooses a grid's columns with. An empty value is
|
|
129
|
+
* the default set, not an empty grid, and it writes the columns in declaration
|
|
130
|
+
* order, never click order, so a tick never rearranges the grid.
|
|
156
131
|
*/
|
|
157
132
|
export declare function ColumnChooser({ choices, value, onChange, label }: ColumnChooserProps): import("react").JSX.Element;
|
|
158
133
|
/** A group of rows, as a grouped answer sends it: its own count and a page of rows. */
|
|
@@ -204,10 +179,8 @@ export interface DataGridExpansion<T> {
|
|
|
204
179
|
/** The edge mark a row carries for a state its cells state in words. */
|
|
205
180
|
export type DataGridRowTone = 'info' | 'warning' | 'danger';
|
|
206
181
|
/**
|
|
207
|
-
* Rows a reader puts in order by hand: a handle
|
|
208
|
-
*
|
|
209
|
-
* the point of such a list, so a reorderable grid draws its rows in the order
|
|
210
|
-
* given and sorts nothing.
|
|
182
|
+
* Rows a reader puts in order by hand: a handle dragged or moved with the
|
|
183
|
+
* arrow keys, every move said aloud. A reorderable grid sorts nothing.
|
|
211
184
|
*/
|
|
212
185
|
export interface DataGridReorder<T> {
|
|
213
186
|
/** A finished move: `key` now stands before `beforeKey`, or last where that is null. */
|
|
@@ -287,23 +260,16 @@ export interface DataGridProps<T> {
|
|
|
287
260
|
/** The row the reader is on (the object a page or a side panel shows): tinted and announced as current. */
|
|
288
261
|
isSelected?: ((row: T) => boolean) | undefined;
|
|
289
262
|
/**
|
|
290
|
-
* Rows picked for a bulk action: a box on every row
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
* the box pressed before it, in the order the grid draws them.
|
|
294
|
-
*
|
|
295
|
-
* NOT `isSelected`, which is the one row the reader is ON. A picked row is
|
|
296
|
-
* tinted in the selected fill and its box says it; the current row keeps
|
|
297
|
-
* its own mark.
|
|
263
|
+
* Rows picked for a bulk action: a box on every row and one in the head;
|
|
264
|
+
* Shift picks the range from the last box pressed. Not `isSelected`, which
|
|
265
|
+
* is the one row the reader is on.
|
|
298
266
|
*/
|
|
299
267
|
selection?: DataGridSelection<T> | undefined;
|
|
300
268
|
/** A failed row: the `danger` edge of [rowTone], kept for the grids that only say this. */
|
|
301
269
|
isFailed?: ((row: T) => boolean) | undefined;
|
|
302
270
|
/**
|
|
303
|
-
* The edge mark
|
|
304
|
-
*
|
|
305
|
-
* look. A SECOND SIGNAL ONLY: the row's own cells say the state in words.
|
|
306
|
-
* Wins over `isFailed` where both are given.
|
|
271
|
+
* The row's edge mark (`danger`, `warning`, `info`), a second signal only:
|
|
272
|
+
* its cells say the state in words. Wins over `isFailed`.
|
|
307
273
|
*/
|
|
308
274
|
rowTone?: ((row: T) => DataGridRowTone | undefined) | undefined;
|
|
309
275
|
/**
|
|
@@ -336,10 +302,8 @@ export interface DataGridProps<T> {
|
|
|
336
302
|
*/
|
|
337
303
|
density?: 'default' | 'compact' | undefined;
|
|
338
304
|
/**
|
|
339
|
-
* The rows are on their way
|
|
340
|
-
*
|
|
341
|
-
* grid's shape does not jump when they land; with rows, they stay. The
|
|
342
|
-
* table says it is busy either way.
|
|
305
|
+
* The rows are on their way: with none yet, the body draws `loadingRows`
|
|
306
|
+
* placeholders (never the empty state); with rows, they stay. Busy either way.
|
|
343
307
|
*/
|
|
344
308
|
loading?: boolean | undefined;
|
|
345
309
|
/** How many placeholder rows a loading grid with no rows draws. Three by default. */
|
|
@@ -382,10 +346,8 @@ export interface DataGridProps<T> {
|
|
|
382
346
|
/** "40 of 312 loaded": what an export would actually contain. */
|
|
383
347
|
loadedNote?: string | undefined;
|
|
384
348
|
/**
|
|
385
|
-
*
|
|
386
|
-
*
|
|
387
|
-
* (two lines with no names: the lead cells, then every other value as a run
|
|
388
|
-
* of marks, for a list scanned by the dozen).
|
|
349
|
+
* A row on a phone: `labelled` (one named line per value) or `compact` (the
|
|
350
|
+
* lead cells, then every other value as a run of marks, on two lines).
|
|
389
351
|
*/
|
|
390
352
|
phoneRows?: 'labelled' | 'compact' | undefined;
|
|
391
353
|
/**
|
|
@@ -418,20 +380,9 @@ export interface GridFit {
|
|
|
418
380
|
readonly stacked?: boolean | undefined;
|
|
419
381
|
}
|
|
420
382
|
/**
|
|
421
|
-
* The next fit, or null when this one stands.
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
* - the grid GREW past the width columns were dropped or it stacked at: start
|
|
425
|
-
* again from all of them as columns (the next pass drops, and stacks, again
|
|
426
|
-
* only what still does not fit);
|
|
427
|
-
* - a stacked grid that did not grow stays stacked: its rows are cards and
|
|
428
|
-
* there is no column left to measure;
|
|
429
|
-
* - the tracks OVERRUN the grid: drop the visible column with the lowest
|
|
430
|
-
* `drop`, if there is one;
|
|
431
|
-
* - nothing is left to drop and the grid still cannot draw its values
|
|
432
|
-
* (`stack`: the tracks overrun, or a value is cut short): STACK into card
|
|
433
|
-
* rows, the shape a phone draws, rather than clip;
|
|
434
|
-
* - otherwise remember a narrower width, so growing back past it re-tries.
|
|
383
|
+
* The next fit, or null when this one stands (pure). A grid that grew starts
|
|
384
|
+
* again from every column; one that overruns drops the lowest `drop`, and
|
|
385
|
+
* with nothing left to drop it stacks into card rows rather than clip.
|
|
435
386
|
*/
|
|
436
387
|
export declare function fitGridColumns({ fit, width, overflows, stack, visible, }: {
|
|
437
388
|
fit: GridFit;
|
|
@@ -456,9 +407,8 @@ export declare function fitGridColumns({ fit, width, overflows, stack, visible,
|
|
|
456
407
|
export declare function widestValues<T>(wrap: HTMLElement, visible: readonly DataGridColumn<T>[], leading?: number): Record<string, number>;
|
|
457
408
|
/**
|
|
458
409
|
* The flexible columns drawn at what they hold: those measured no wider than
|
|
459
|
-
* `SHORT_COLUMN_PX`, never the widest
|
|
460
|
-
*
|
|
461
|
-
* engine; nothing measured, nothing is short.
|
|
410
|
+
* `SHORT_COLUMN_PX`, never the widest, which keeps its share so the grid
|
|
411
|
+
* fills its box. Nothing measured, nothing is short.
|
|
462
412
|
*/
|
|
463
413
|
export declare function shortColumns<T>(visible: readonly Pick<DataGridColumn<T>, 'key' | 'width' | 'shrink' | 'icon' | 'action'>[], widest: Readonly<Record<string, number>>): Set<string>;
|
|
464
414
|
/**
|
|
@@ -467,54 +417,14 @@ export declare function shortColumns<T>(visible: readonly Pick<DataGridColumn<T>
|
|
|
467
417
|
*/
|
|
468
418
|
export declare function squeezed<T>(wrap: HTMLElement, visible: readonly DataGridColumn<T>[], leading?: number): 'values' | 'heads' | null;
|
|
469
419
|
/**
|
|
470
|
-
* A list as columns
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
*
|
|
474
|
-
* ONE TRACK LIST, ON THE GRID. The head, the bands and every row are
|
|
475
|
-
* `subgrid` passthroughs, so a head cell and a cell twenty rows down size the
|
|
476
|
-
* same track; each row being its own grid sized its columns against its own
|
|
477
|
-
* cells alone, and no value sat under the head that named it.
|
|
478
|
-
*
|
|
479
|
-
* A SHRINK COLUMN IS CAPPED (`fit-content(20%)`): `max-content` grows without
|
|
480
|
-
* a ceiling and grid resolves it before any flexible column, so one long value
|
|
481
|
-
* starved the title to zero and still overflowed.
|
|
482
|
-
*
|
|
483
|
-
* A FLEXIBLE COLUMN OF SHORT VALUES TAKES WHAT IT HOLDS. Its widest value is
|
|
484
|
-
* measured after layout (the head and the rows on screen, off their words
|
|
485
|
-
* rather than off the cells that cut them), and one no wider than
|
|
486
|
-
* `SHORT_COLUMN_PX` is drawn at its content, with the shrink columns, while
|
|
487
|
-
* the long ones share what is left at `1fr`. At an equal share every flexible
|
|
488
|
-
* column took the same width whatever it held, so a seat's handle sat in a
|
|
489
|
-
* third of a column of empty room beside a name cut short. The widest
|
|
490
|
-
* flexible column always keeps its share, so the grid still fills its box,
|
|
491
|
-
* and a grid that cannot be measured (no layout) draws every flexible column
|
|
492
|
-
* at its share, as before.
|
|
493
|
-
*
|
|
494
|
-
* COLUMNS THAT DO NOT FIT GIVE WAY IN ORDER (`drop`), measured after every
|
|
495
|
-
* commit in a layout effect so the intermediate shapes never paint, and the
|
|
496
|
-
* foot names what the width took. Not on a phone, where a row is a card.
|
|
497
|
-
*
|
|
498
|
-
* THE ROW'S LINK IS AN OVERLAY, NOT THE ROW: a row that was an anchor made
|
|
499
|
-
* every linking cell an anchor inside an anchor, and the parser closes the
|
|
500
|
-
* outer one at the inner, so the row stopped being clickable from that cell
|
|
501
|
-
* on. Stretched over the row it keeps a real href, and the cells' own links
|
|
502
|
-
* and buttons sit above it.
|
|
503
|
-
*
|
|
504
|
-
* THE GRID'S OWN COLUMNS COME FIRST, in one order: the selection box, the
|
|
505
|
-
* reorder handle, the position, the chevron that opens a row. None of them is
|
|
506
|
-
* in a column set or ever gives way.
|
|
507
|
-
*
|
|
508
|
-
* The grid makes no scrollport of its own (`overflow: clip`), which is what
|
|
509
|
-
* lets its head stick against the page's scroller; an application whose
|
|
510
|
-
* scroller carries a sticky bar sets `--crewlet-data-grid-sticky-top`.
|
|
420
|
+
* A list as columns. The head, bands and rows are `subgrid` passthroughs of
|
|
421
|
+
* one track list, and the grid makes no scrollport (`overflow: clip`) so its
|
|
422
|
+
* head sticks to the page's scroller (`--crewlet-data-grid-sticky-top`).
|
|
511
423
|
*/
|
|
512
424
|
/**
|
|
513
|
-
* `rows` in a new array, ordered as the grid orders them for `sort
|
|
514
|
-
*
|
|
515
|
-
*
|
|
516
|
-
* keeps a second comparator. Unsorted (no sort, or a column with no
|
|
517
|
-
* `sortValue`), a copy in the given order.
|
|
425
|
+
* `rows` in a new array, ordered as the grid orders them for `sort` (an absent
|
|
426
|
+
* `sortValue` last), for a host that sorts before it slices a page. Unsorted,
|
|
427
|
+
* a copy in the given order.
|
|
518
428
|
*/
|
|
519
429
|
export declare function sortGridRows<T>(rows: readonly T[], columns: readonly Pick<DataGridColumn<T>, 'key' | 'sortValue'>[], sort: {
|
|
520
430
|
key: string;
|
package/dist/DataGrid/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-
|
|
1
|
+
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-NDWXVEY6.js';
|
|
2
2
|
import '../chunk-WFAJYBLX.js';
|
|
3
3
|
import '../chunk-WSIJDWUG.js';
|
|
4
4
|
import '../chunk-JMBPMSNI.js';
|
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-YBOGOTYV.js';
|
|
2
2
|
import '../chunk-VSD3536L.js';
|
|
3
3
|
import '../chunk-STJ7QBC3.js';
|
|
4
4
|
import '../chunk-DTIW4CHZ.js';
|
|
5
5
|
import '../chunk-WGLOH33S.js';
|
|
6
6
|
import '../chunk-AV2DXAEL.js';
|
|
7
7
|
import '../chunk-KFTVPWG2.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-WGAEHKGW.js';
|
|
9
9
|
import '../chunk-NN44J7BP.js';
|
|
10
10
|
import '../chunk-NICEDVZM.js';
|
|
11
11
|
import '../chunk-JLKO7PSK.js';
|
package/dist/DataView/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-XGZXKG53.js';
|
|
2
2
|
import '../chunk-FPDIHEM4.js';
|
|
3
3
|
import '../chunk-E4QX4VET.js';
|
|
4
4
|
import '../chunk-AQZPZYSY.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-YBOGOTYV.js';
|
|
6
6
|
import '../chunk-VSD3536L.js';
|
|
7
7
|
import '../chunk-KW7T23RT.js';
|
|
8
8
|
import '../chunk-STJ7QBC3.js';
|
|
@@ -14,7 +14,7 @@ import '../chunk-GBKBME7Q.js';
|
|
|
14
14
|
import '../chunk-WGLOH33S.js';
|
|
15
15
|
import '../chunk-AV2DXAEL.js';
|
|
16
16
|
import '../chunk-KFTVPWG2.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-WGAEHKGW.js';
|
|
18
18
|
import '../chunk-NN44J7BP.js';
|
|
19
19
|
import '../chunk-NICEDVZM.js';
|
|
20
20
|
import '../chunk-JLKO7PSK.js';
|