@crewlethq/ui 0.131.0 → 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 +54 -54
- package/dist/index.js +54 -54
- 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
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-
|
|
1
|
+
export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-EPH5EPKN.js';
|
|
2
2
|
import '../chunk-7U4V36SB.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-BGPHGCDT.js';
|
|
4
|
+
import '../chunk-AIQHJ2HF.js';
|
|
5
5
|
import '../chunk-7F3OPUM5.js';
|
|
6
6
|
import '../chunk-QRE6JCHS.js';
|
|
7
7
|
import '../chunk-AVL52EME.js';
|
|
8
8
|
import '../chunk-RSKW25Y5.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-WGAEHKGW.js';
|
|
10
10
|
import '../chunk-VBBLHS2Y.js';
|
|
11
11
|
import '../chunk-M2M6ZD7P.js';
|
|
12
12
|
import '../chunk-XSPCITPN.js';
|
|
@@ -5,12 +5,8 @@ import { type AvatarStackMember } from '../Avatar/index.js';
|
|
|
5
5
|
import { type Principal } from '../Principal/index.js';
|
|
6
6
|
import { type TimeValue } from '../RelativeTime/index.js';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* has nothing to draw YET (its content still loading) or at all (a sheet with
|
|
11
|
-
* no columns): a cover that rendered nothing left an empty box where every
|
|
12
|
-
* other card has a picture, since the card cannot know that a cover it was
|
|
13
|
-
* given drew nothing.
|
|
8
|
+
* A card preview's fallback drawing: the kind's glyph on its tinted ground.
|
|
9
|
+
* Exported for a host whose cover has nothing to draw, yet or at all.
|
|
14
10
|
*/
|
|
15
11
|
export declare function ArtifactPreviewGlyph({ kind }: {
|
|
16
12
|
kind: ArtifactKind;
|
|
@@ -70,26 +66,21 @@ export interface ArtifactCardProps {
|
|
|
70
66
|
/** Who can open it, drawn as a glyph and its word opening the card's line. Left out, nothing is said about it. */
|
|
71
67
|
access?: ArtifactAccess | undefined;
|
|
72
68
|
/**
|
|
73
|
-
* The card's own controls (a More menu), drawn
|
|
74
|
-
* preview's top corner and shown on hover
|
|
75
|
-
* card, so they are reachable by keyboard and never nested in the link.
|
|
76
|
-
* The `card` size only.
|
|
69
|
+
* The card's own controls (a More menu), drawn outside its link in the
|
|
70
|
+
* preview's top corner and shown on hover or focus within. `card` size only.
|
|
77
71
|
*/
|
|
78
72
|
actions?: ReactNode;
|
|
79
73
|
/**
|
|
80
74
|
* The card can be picked for a bulk action: a box on the preview's foot,
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* gallery is choosing (`selecting`). The `card` size only.
|
|
75
|
+
* shown on hover, focus within, screens with no hover, and while picked or
|
|
76
|
+
* `selecting`. The `card` size only.
|
|
84
77
|
*/
|
|
85
78
|
selectable?: boolean | undefined;
|
|
86
79
|
/** It is picked: its box is ticked, and the card takes the selected edge and fill. */
|
|
87
80
|
selected?: boolean | undefined;
|
|
88
81
|
/**
|
|
89
|
-
* The gallery is choosing
|
|
90
|
-
*
|
|
91
|
-
* its box rather than a link, so a press anywhere on the card ticks it and a
|
|
92
|
-
* reader is never sent away mid-selection. The More menu stays a menu.
|
|
82
|
+
* The gallery is choosing: every box shows, and a press on the card's body
|
|
83
|
+
* ticks its box rather than opening it. The More menu stays a menu.
|
|
93
84
|
*/
|
|
94
85
|
selecting?: boolean | undefined;
|
|
95
86
|
/** The box was ticked or cleared, with whether the reader asked for a range. */
|
|
@@ -104,31 +95,14 @@ export interface ArtifactCardProps {
|
|
|
104
95
|
labels?: Partial<ArtifactCardLabels> | undefined;
|
|
105
96
|
}
|
|
106
97
|
/**
|
|
107
|
-
* One artifact
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* own content on top, the kind's glyph on a badge over the preview's foot,
|
|
111
|
-
* then the title on one line and one quiet line under it, who can open it
|
|
112
|
-
* and when it was last edited ("Edited 20h ago"), with the owner named when
|
|
113
|
-
* the reader is not the owner.
|
|
114
|
-
*
|
|
115
|
-
* THE WHOLE CARD IS ONE LINK, named by the title alone and described by the
|
|
116
|
-
* rest, so a reader moving through a gallery by link hears "Vendor scorecard"
|
|
117
|
-
* and then, if they wait, what it is and who changed it. The card's own
|
|
118
|
-
* controls (`actions`, a More menu) are drawn beside the link rather than
|
|
119
|
-
* inside it, over the preview's corner, so they are real controls a keyboard
|
|
120
|
-
* reaches in turn after the link.
|
|
121
|
-
*
|
|
122
|
-
* THE COMPACT ROW (`size="compact"`) is a task rail's: the kind's glyph, the
|
|
123
|
-
* title and the facts, with no preview and no actions.
|
|
98
|
+
* One artifact: a gallery card (`size="card"`) or a task rail's compact row.
|
|
99
|
+
* The whole card is one link named by the title and described by the rest;
|
|
100
|
+
* its `actions` sit beside the link, never inside it.
|
|
124
101
|
*/
|
|
125
102
|
export declare function ArtifactCard({ title, kind, href, preview, owner, updatedAt, updatedBy, presence, changes, pinned, version, project, access, actions, selectable, selected, selecting, onSelectedChange, trashed, size, className, now, labels, }: ArtifactCardProps): import("react").JSX.Element;
|
|
126
103
|
/**
|
|
127
|
-
* A gallery card
|
|
128
|
-
*
|
|
129
|
-
* gallery that arrives replaces each placeholder in place rather than
|
|
130
|
-
* reflowing the page. Decorative: the host says once what is loading
|
|
131
|
-
* (`Skeleton`'s `label`, or its own status line).
|
|
104
|
+
* A gallery card's loading placeholder in the card's own shape, so arriving
|
|
105
|
+
* cards replace it without reflow. Decorative: the host announces the loading.
|
|
132
106
|
*/
|
|
133
107
|
export declare function ArtifactCardSkeleton({ className }: {
|
|
134
108
|
className?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-
|
|
1
|
+
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-JANUABBT.js';
|
|
2
2
|
import '../chunk-WFAJYBLX.js';
|
|
3
3
|
import '../chunk-HF5L56YQ.js';
|
|
4
4
|
import '../chunk-GBKBME7Q.js';
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* A card in a gallery: the preview on top at a fixed ratio,
|
|
3
|
-
*
|
|
4
|
-
* title and one quiet line. `compact` is a row with the kind's glyph in place
|
|
5
|
-
* of the preview, drawn on Card.
|
|
2
|
+
* A card in a gallery: the preview on top at a fixed ratio, the kind's badge
|
|
3
|
+
* over its foot, then the title and one quiet line. `compact` is a row.
|
|
6
4
|
*/
|
|
7
5
|
|
|
8
6
|
/*
|
|
9
|
-
*
|
|
10
|
-
* class too
|
|
11
|
-
* by file name, which puts this one first: `.crewlet-card` and
|
|
12
|
-
* `.crewlet-card--p-none` then won, and the compact row was drawn as a
|
|
13
|
-
* padless column with its glyph on a line of its own.
|
|
7
|
+
* Layered on Card: every rule that changes Card's own layout carries Card's
|
|
8
|
+
* class too, because the bundle orders this sheet before Card's.
|
|
14
9
|
*/
|
|
15
10
|
.crewlet-card.crewlet-artifact-card {
|
|
16
11
|
display: flex;
|
|
@@ -51,10 +46,8 @@
|
|
|
51
46
|
padding: var(--spacing-3);
|
|
52
47
|
}
|
|
53
48
|
|
|
54
|
-
/*
|
|
55
|
-
the
|
|
56
|
-
3px under the title's. The body is lowered by half of what the tile is
|
|
57
|
-
taller than a line, and the tile keeps its corner inset. */
|
|
49
|
+
/* The tile centres on the title's line: the body is lowered by half of what
|
|
50
|
+
the tile is taller than a line. */
|
|
58
51
|
.crewlet-artifact-card--compact .crewlet-artifact-card__body {
|
|
59
52
|
padding: max(0px, calc((var(--size-control-md) - 1lh) / 2)) 0 0;
|
|
60
53
|
}
|
|
@@ -92,17 +85,8 @@
|
|
|
92
85
|
}
|
|
93
86
|
|
|
94
87
|
/*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* A LINE NEVER OPENS ON A DOT, as a folder tile's never does (FolderTile.css).
|
|
99
|
-
* A dot typed before every fact but the first opened each line the run broke
|
|
100
|
-
* onto with one: "· 14 changes since you looked" under "2 here now". Every
|
|
101
|
-
* fact carries its dot in the separator's width before it instead, and the run
|
|
102
|
-
* is drawn that width to the left of the facts' own edge, which clips the
|
|
103
|
-
* overhang, so the first fact of every line lays its dot in the clipped strip.
|
|
104
|
-
* The separator is a step of air each side of the dot, the gap and margin the
|
|
105
|
-
* typed dot stood between.
|
|
88
|
+
* A line's facts are a run, each opened by a quiet dot. The run is drawn one
|
|
89
|
+
* separator left of its edge and clipped, so a wrapped line never opens on a dot.
|
|
106
90
|
*/
|
|
107
91
|
.crewlet-artifact-card__line {
|
|
108
92
|
--crewlet-artifact-card-separator: var(--spacing-5);
|
|
@@ -153,15 +137,8 @@
|
|
|
153
137
|
/* ---- the gallery card ---- */
|
|
154
138
|
|
|
155
139
|
/*
|
|
156
|
-
* A
|
|
157
|
-
* hairline
|
|
158
|
-
* is a picture, and a picture in a tight corner reads as a screenshot pasted
|
|
159
|
-
* into a box.
|
|
160
|
-
*
|
|
161
|
-
* HOVER IS A STEP, NEVER A MOVE: the hairline darkens and a hairline shadow
|
|
162
|
-
* settles under the card, quickly and with the standard ease. A card that rose
|
|
163
|
-
* and cast a wide shadow made a gallery ripple as the pointer crossed it, and
|
|
164
|
-
* the preview inside it never moves.
|
|
140
|
+
* A soft pane with a generous corner. Hover is a step, never a move: the
|
|
141
|
+
* hairline darkens and a hairline shadow settles under the card.
|
|
165
142
|
*/
|
|
166
143
|
.crewlet-artifact-card--card {
|
|
167
144
|
/* THE BADGE'S SQUARE, which the selection box opposite it is drawn in too,
|
|
@@ -229,11 +206,8 @@
|
|
|
229
206
|
}
|
|
230
207
|
|
|
231
208
|
/*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* before its title, in the one place every card has it. Exactly half, as the
|
|
235
|
-
* selection box opposite it stands: risen 2px past half, the badge stood 2px
|
|
236
|
-
* higher than its twin on the same seam.
|
|
209
|
+
* The kind's badge stands on the preview's foot, exactly half over the
|
|
210
|
+
* picture, as the selection box opposite it does.
|
|
237
211
|
*/
|
|
238
212
|
.crewlet-artifact-card__badge {
|
|
239
213
|
position: relative;
|
|
@@ -347,17 +321,9 @@
|
|
|
347
321
|
}
|
|
348
322
|
|
|
349
323
|
/*
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
* title starts at its top corner, and a box over that corner hid its first
|
|
354
|
-
* words; the foot's far corner is where a cover has the least to say.
|
|
355
|
-
*
|
|
356
|
-
* Its anchor has the preview's shape (the card's width at 16:9) and takes no
|
|
357
|
-
* pointer, so the box is placed against the preview's foot at any width
|
|
358
|
-
* without being nested in the link the preview belongs to. Hidden until the
|
|
359
|
-
* card is hovered or holds focus, and always there once the card is picked,
|
|
360
|
-
* while the gallery is choosing, and on a screen with no hover.
|
|
324
|
+
* The selection box stands on the preview's foot opposite the kind's badge,
|
|
325
|
+
* as its twin. Its anchor has the preview's shape and takes no pointer, so the
|
|
326
|
+
* box is placed at any width without being nested in the preview's link.
|
|
361
327
|
*/
|
|
362
328
|
.crewlet-artifact-card__select-anchor {
|
|
363
329
|
position: absolute;
|
|
@@ -21,21 +21,8 @@ export interface ArtifactMakeRowProps {
|
|
|
21
21
|
className?: string | undefined;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* The kinds a reader can start, as one quiet tray
|
|
25
|
-
* kind
|
|
26
|
-
*
|
|
27
|
-
* a wide page, the details dropped before a name is cut, and three across on
|
|
28
|
-
* a phone. However many kinds a reader is offered, the tray holds no empty
|
|
29
|
-
* cell: the line has a column per kind, and on a phone a short last row is
|
|
30
|
-
* centred, or four kinds stand two by two.
|
|
31
|
-
*
|
|
32
|
-
* THE TRAY IS A WORKBENCH, Crewlet's dotted field under the kinds the way the
|
|
33
|
-
* org chart's canvas sits under its seats, and an item lifts off it as a card
|
|
34
|
-
* under the pointer. The glyph is the one coloured thing in each item, so six
|
|
35
|
-
* hues read as six kinds and never as six coloured boxes.
|
|
36
|
-
*
|
|
37
|
-
* AN ITEM THAT CANNOT START is still a stop, so a reader moving through the
|
|
38
|
-
* row by keyboard hears why (`disabledReason`) rather than finding a kind
|
|
39
|
-
* missing.
|
|
24
|
+
* The kinds a reader can start, as one quiet tray of links with no empty cell.
|
|
25
|
+
* A kind that cannot start stays a stop, so the keyboard hears why
|
|
26
|
+
* (`disabledReason`) rather than finding it missing.
|
|
40
27
|
*/
|
|
41
28
|
export declare function ArtifactMakeRow({ items, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, className, }: ArtifactMakeRowProps): import("react").JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { AvatarPicker } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { AvatarPicker } from '../chunk-3QQ3QHQR.js';
|
|
2
|
+
import '../chunk-FIH5EMJF.js';
|
|
3
3
|
import '../chunk-KDRJZWE3.js';
|
|
4
4
|
import '../chunk-ZIL6MTMZ.js';
|
|
5
5
|
import '../chunk-AYKXMIOR.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-BGPHGCDT.js';
|
|
7
|
+
import '../chunk-AIQHJ2HF.js';
|
|
8
8
|
import '../chunk-7F3OPUM5.js';
|
|
9
9
|
import '../chunk-QRE6JCHS.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-WGAEHKGW.js';
|
|
11
11
|
import '../chunk-XZY6S3UC.js';
|
|
12
12
|
import '../chunk-M2M6ZD7P.js';
|
|
13
13
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* A company's brand
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* ITS SMALL WORDS KEEP A LEGIBLE FLOOR (`--crewlet-brand-sample-floor`). Set
|
|
7
|
-
* in proportion alone, the doc's sentence and its quiet line measured 8px and
|
|
8
|
-
* 6px in a 285px preview (a setup wizard's aside), a texture where the reader
|
|
9
|
-
* was asked to judge the brand's text. Each small run is drawn at its share of
|
|
10
|
-
* the width or at the product's own small step, whichever is larger; and the
|
|
11
|
-
* step itself is capped at a share of the width the frame can still hold
|
|
12
|
-
* (4.3cqi: two lines of the sentence and the quiet line fit the 16:9 height
|
|
13
|
-
* under the heading at any width), so a thumbnail stays whole rather than
|
|
14
|
-
* clipping its last line. Past about 430px the share is the larger and the
|
|
15
|
-
* drawing is in proportion again.
|
|
16
|
-
*
|
|
17
|
-
* It paints with the public tokens, which the sample's BrandScope (pinned to
|
|
18
|
-
* the sample's mode) sets from the brand through the artifact kit's own
|
|
19
|
-
* mapping: the ground, the text, the accent, the highlight and the two faces,
|
|
20
|
-
* and the quiet line in the tertiary text of the sample's pinned mode.
|
|
2
|
+
* A company's brand drawn in a 16:9 frame sized against its own width, in the
|
|
3
|
+
* public tokens its BrandScope sets. Small words keep a legible floor
|
|
4
|
+
* (`--crewlet-brand-sample-floor`), capped at 4.3cqi so a thumbnail stays whole.
|
|
21
5
|
*/
|
|
22
6
|
.crewlet-brand-sample {
|
|
23
7
|
/* The frame's corner. A host drawing the sample edge to edge in a cover
|
|
@@ -119,12 +103,8 @@
|
|
|
119
103
|
}
|
|
120
104
|
|
|
121
105
|
/*
|
|
122
|
-
* A
|
|
123
|
-
*
|
|
124
|
-
* product's own read 4.38:1 on the light ground, a light brand colour far
|
|
125
|
-
* less. The ink is the mapping's accent written as text, which clears 4.5:1
|
|
126
|
-
* on the mode's ground whatever the brand's colour (@crewlethq/tokens'
|
|
127
|
-
* `css/brand`).
|
|
106
|
+
* A link, drawn in the accent's ink rather than the accent: the ink is the
|
|
107
|
+
* accent written as text, which clears 4.5:1 whatever the brand's colour.
|
|
128
108
|
*/
|
|
129
109
|
.crewlet-brand-sample__link {
|
|
130
110
|
color: var(--color-brand-accent-ink);
|
|
@@ -1,41 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The trail in a top bar
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* outside `main`, and the name of the place the reader is at is what a reader
|
|
6
|
-
* navigating by heading lands on first, so the last crumb is the `h1` and every
|
|
7
|
-
* screen's own headings start at level 2 under it. It carries no link: a trail
|
|
8
|
-
* whose final crumb links to the page it is on teaches a reader that the
|
|
9
|
-
* control does nothing.
|
|
10
|
-
*
|
|
11
|
-
* THE HEADING IS WHERE A PAGE SENDS FOCUS when the control holding it goes
|
|
12
|
-
* away (a removed card, a closed view). It is a reading position, not a
|
|
13
|
-
* control: focusable by script only (`tabIndex={-1}`), never a tab stop, and
|
|
14
|
-
* drawn with no ring.
|
|
15
|
-
*
|
|
16
|
-
* A PAGE WHOSE SUBJECT CAN BE SWITCHED draws its control as that heading's
|
|
17
|
-
* words (`current`): a switcher's button names the project the page is about
|
|
18
|
-
* and opens the list of the others, so the reader changes the subject where
|
|
19
|
-
* the subject is named rather than in a second control beside it.
|
|
20
|
-
*
|
|
21
|
-
* THE TRAIL IS A SCROLLPORT, AND WHILE IT OVERFLOWS IT IS A TAB STOP. It
|
|
22
|
-
* scrolls sideways past its floor rather than clipping the ancestry as a box,
|
|
23
|
-
* and its scrollbar is not drawn, because on a bar this short it would sit on
|
|
24
|
-
* the baseline the trail is written on. A pointer can drag a hidden scrollport
|
|
25
|
-
* and a trackpad can swipe it, but a keyboard reaches a scroll container's
|
|
26
|
-
* arrow keys only once it can be focused, and a deep trail overflows on its
|
|
27
|
-
* ancestor spans, which are not links and take no focus of their own. A trail
|
|
28
|
-
* that fits has nowhere for the arrows to go, so the stop is there only while
|
|
29
|
-
* `scrollWidth` exceeds `clientWidth`.
|
|
30
|
-
*
|
|
31
|
-
* ITS FLOOR IS THE WAY BACK OUT (`--crewlet-breadcrumb-floor`): every ancestor
|
|
32
|
-
* at a readable minimum of its words (its first twenty characters, all of
|
|
33
|
-
* them where it has fewer) and the last crumb at its stub, measured. The bar
|
|
34
|
-
* around it breaks a line when that floor cannot sit beside its controls, so
|
|
35
|
-
* a trail that cannot show its ancestry takes a line of its own, and it
|
|
36
|
-
* scrolls only when its ancestry alone is wider than the whole bar.
|
|
37
|
-
*
|
|
38
|
-
* Ported from the engine dashboard's `app/header/PageHeader.tsx`.
|
|
2
|
+
* The trail in a top bar. Its last crumb is the page's `h1`, unlinked and
|
|
3
|
+
* focusable by script only. The trail is a hidden-scrollbar scrollport, a tab
|
|
4
|
+
* stop only while it overflows, so a keyboard can scroll a deep ancestry.
|
|
39
5
|
*/
|
|
40
6
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
41
7
|
export interface BreadcrumbCrumb {
|
|
@@ -62,10 +28,8 @@ export interface BreadcrumbCrumb {
|
|
|
62
28
|
export interface BreadcrumbProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
63
29
|
crumbs: readonly BreadcrumbCrumb[];
|
|
64
30
|
/**
|
|
65
|
-
* A control drawn as the last crumb's words
|
|
66
|
-
* switcher's button
|
|
67
|
-
* can move between. The control carries its own words; the last crumb is
|
|
68
|
-
* still what the trail is measured by.
|
|
31
|
+
* A control drawn as the last crumb's words inside the heading, such as a
|
|
32
|
+
* switcher's button. The last crumb is still what the trail is measured by.
|
|
69
33
|
*/
|
|
70
34
|
current?: ReactNode;
|
|
71
35
|
/** Names the navigation landmark. */
|
package/dist/Breadcrumb/index.js
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* The trail
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* a bar would otherwise need: the trail absorbs the free space, so the
|
|
6
|
-
* controls after it stay in the bar's far corner. Its BASIS is 0, which is
|
|
7
|
-
* what lets a wrapping bar break by what it holds rather than at a width, and
|
|
8
|
-
* `flex-shrink: 100` puts it ahead of anything else on the bar that can give.
|
|
9
|
-
*
|
|
10
|
-
* ITS FLOOR IS THE WAY BACK OUT, measured by the component
|
|
11
|
-
* (`--crewlet-breadcrumb-floor`): each ancestor at what it keeps of its words
|
|
12
|
-
* and the last crumb's stub, at least 20ch, and never more than the whole bar. A fixed 20ch
|
|
13
|
-
* alone let a seat's trail share a phone's line with its one button and cut
|
|
14
|
-
* "Engineering · Co" mid-letter under it; measured, a trail that cannot show
|
|
15
|
-
* its ancestry beside the controls makes the bar break a line instead.
|
|
16
|
-
*
|
|
17
|
-
* Past the whole bar the trail SCROLLS rather than clipping as a box: the
|
|
18
|
-
* ancestors shrink only to their stubs, so once those alone are wider than the
|
|
19
|
-
* bar there is nothing left to ellipsise, and a clip lands wherever the pixels
|
|
20
|
-
* ran out.
|
|
21
|
-
*
|
|
22
|
-
* ROOM FOR A LINK'S RING (`--crewlet-breadcrumb-ring-room`). A scrollport
|
|
23
|
-
* clips whatever is drawn outside it, so a crumb draws its ring inside its
|
|
24
|
-
* own box; with no padding there, the ring covered the outer 2px of the
|
|
25
|
-
* crumb's glyph and of its last letter. A link takes the room as padding
|
|
26
|
-
* inside a negative margin of the same length, and the trail takes it at its
|
|
27
|
-
* start the same way, so the ring stands clear of the words and nothing
|
|
28
|
-
* moves: every word and glyph keeps its place.
|
|
2
|
+
* The trail takes the bar's slack and gives way first (`flex: 1 100 0`), down
|
|
3
|
+
* to its measured floor (`--crewlet-breadcrumb-floor`), then scrolls. The ring
|
|
4
|
+
* room is padding inside an equal negative margin, since a scrollport clips.
|
|
29
5
|
*/
|
|
30
6
|
.crewlet-breadcrumb {
|
|
31
7
|
--crewlet-breadcrumb-ring-room: var(--spacing-1);
|
|
@@ -60,24 +36,9 @@
|
|
|
60
36
|
min-width: 0;
|
|
61
37
|
}
|
|
62
38
|
|
|
63
|
-
/*
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* cannot reconstruct is the links out of it. So an ancestor keeps a readable
|
|
67
|
-
* minimum of its words while the page's own name gives way to its stub.
|
|
68
|
-
*/
|
|
69
|
-
/* EVERY CRUMB GIVES WAY, in proportion to its length: the page down to a
|
|
70
|
-
floor of 24ch and each ancestor to what it keeps of its words, each cut with
|
|
71
|
-
an ellipsis and titled on hover. Kept whole, one long parent cut the page
|
|
72
|
-
itself to "Pri..." at 1440 and pushed it off a phone.
|
|
73
|
-
|
|
74
|
-
AN ANCESTOR KEEPS A READABLE MINIMUM (`--crewlet-breadcrumb-keep`): its
|
|
75
|
-
first twenty characters, or all of them where it has fewer, measured by the
|
|
76
|
-
component (Breadcrumb.tsx, `KEEP_CHARACTERS`), and counted in the trail's
|
|
77
|
-
floor, so a bar too busy to hold them breaks a line rather than cutting the
|
|
78
|
-
way back out. A stub of 2ch beside a busy page bar read "D..." and "Product
|
|
79
|
-
Man...", and nothing at all where the crumb leads with a glyph. Until it is
|
|
80
|
-
measured, and on a phone (below), the stub is 2ch. */
|
|
39
|
+
/* Every crumb gives way in proportion to its length, the page to 24ch and an
|
|
40
|
+
ancestor to what it keeps (`--crewlet-breadcrumb-keep`, measured by the
|
|
41
|
+
component; 2ch until measured and on a phone). */
|
|
81
42
|
.crewlet-breadcrumb__part:not(:last-child) {
|
|
82
43
|
flex: 0 1 auto;
|
|
83
44
|
min-width: var(--crewlet-breadcrumb-keep, 2ch);
|
|
@@ -105,10 +66,8 @@ svg.crewlet-breadcrumb__separator {
|
|
|
105
66
|
}
|
|
106
67
|
|
|
107
68
|
/*
|
|
108
|
-
* The ancestors in the quiet ink
|
|
109
|
-
*
|
|
110
|
-
* crumb is a piece of chrome, not a word in a sentence, and the step between
|
|
111
|
-
* two measured text rungs is its hover in both themes.
|
|
69
|
+
* The ancestors in the quiet ink; a link lifts to the primary ink on hover,
|
|
70
|
+
* with no underline, since a crumb is chrome rather than a word in a sentence.
|
|
112
71
|
*/
|
|
113
72
|
.crewlet-breadcrumb__crumb {
|
|
114
73
|
border-radius: var(--radius-xs);
|
|
@@ -155,10 +114,8 @@ a.crewlet-breadcrumb__crumb:focus-visible {
|
|
|
155
114
|
}
|
|
156
115
|
|
|
157
116
|
/*
|
|
158
|
-
*
|
|
159
|
-
* container, and `
|
|
160
|
-
* one makes; a span is a real flex item, and its `min-width: 0` is what lets
|
|
161
|
-
* it shrink below its text at all.
|
|
117
|
+
* The label is the box that ellipsises: `text-overflow` never reaches a flex
|
|
118
|
+
* container's anonymous text, and `min-width: 0` lets the span shrink.
|
|
162
119
|
*/
|
|
163
120
|
.crewlet-breadcrumb__text {
|
|
164
121
|
min-width: 0;
|
|
@@ -209,11 +166,8 @@ a.crewlet-breadcrumb__crumb:focus-visible {
|
|
|
209
166
|
}
|
|
210
167
|
|
|
211
168
|
/*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* drawer, and the line it shares with the drawer toggle and the page's primary
|
|
215
|
-
* action has no room for its word as well. The word stays, out of sight, so
|
|
216
|
-
* the crumb is still named.
|
|
169
|
+
* On a phone an ancestor with a glyph is its glyph, its word kept out of
|
|
170
|
+
* sight so the crumb is still named.
|
|
217
171
|
*/
|
|
218
172
|
@media (width < 640px) {
|
|
219
173
|
/* ON A PHONE AN ANCESTOR GIVES WAY TO ITS STUB: the trail shares its line
|