@crewlethq/ui 0.131.0 → 0.131.2

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.
Files changed (137) hide show
  1. package/dist/AppShell/AppShell.d.ts +47 -196
  2. package/dist/AppShell/index.js +2 -2
  3. package/dist/{AppShell-N5IHITJM.css → AppShell-RPILZZW5.css} +109 -431
  4. package/dist/ArtifactBar/index.js +4 -4
  5. package/dist/ArtifactCard/ArtifactCard.d.ts +13 -39
  6. package/dist/ArtifactCard/index.js +1 -1
  7. package/dist/{ArtifactCard-ZH6KCD5O.css → ArtifactCard-PWMC7RAY.css} +15 -49
  8. package/dist/ArtifactMakeRow/ArtifactMakeRow.d.ts +3 -16
  9. package/dist/AvatarPicker/index.js +5 -5
  10. package/dist/BrandSample/index.js +1 -1
  11. package/dist/{BrandSample-3OSKZAGG.css → BrandSample-WSBT7FQ5.css} +5 -25
  12. package/dist/Breadcrumb/Breadcrumb.d.ts +5 -41
  13. package/dist/Breadcrumb/index.js +1 -1
  14. package/dist/{Breadcrumb-MQJWJVN3.css → Breadcrumb-JDBQXPR5.css} +12 -58
  15. package/dist/Canvas/Canvas.d.ts +52 -228
  16. package/dist/Canvas/geometry.d.ts +31 -139
  17. package/dist/Canvas/index.js +1 -1
  18. package/dist/CanvasBoard/index.js +3 -3
  19. package/dist/CanvasToolbar/index.js +2 -2
  20. package/dist/CodeBlock/index.js +1 -1
  21. package/dist/ColorSwatch/index.js +2 -2
  22. package/dist/CommentThread/CommentThread.d.ts +3 -21
  23. package/dist/CommentThread/index.js +1 -1
  24. package/dist/{CommentThread-544KCZT7.css → CommentThread-YU6VSVS4.css} +2 -4
  25. package/dist/Composer/Composer.d.ts +17 -54
  26. package/dist/ConfirmField/index.js +2 -2
  27. package/dist/ContrastBadge/index.js +2 -2
  28. package/dist/ContrastHelp/index.js +3 -3
  29. package/dist/Copyable/Copyable.d.ts +2 -11
  30. package/dist/Copyable/index.js +1 -1
  31. package/dist/{Copyable-XMLKKJDT.css → Copyable-U3UJL3BP.css} +9 -32
  32. package/dist/DataGrid/DataGrid.d.ts +46 -136
  33. package/dist/DataGrid/index.js +1 -1
  34. package/dist/DataTable/index.js +2 -2
  35. package/dist/DataView/index.js +3 -3
  36. package/dist/DocTabsEditor/index.js +2 -2
  37. package/dist/{Editor-MEPTWBY5.js → Editor-HDHT5BX2.js} +2 -2
  38. package/dist/GraphCanvas/GraphCanvas.d.ts +22 -79
  39. package/dist/GraphCanvas/index.js +2 -2
  40. package/dist/GraphCanvas/layout.d.ts +10 -35
  41. package/dist/HuePicker/index.js +4 -4
  42. package/dist/InlineCode/InlineCode.d.ts +7 -28
  43. package/dist/InlineCode/index.js +1 -1
  44. package/dist/InlineCode-3KJCBT5I.css +80 -0
  45. package/dist/Link/Link.d.ts +3 -25
  46. package/dist/Link/index.js +1 -1
  47. package/dist/{Link-Y7RHTR6F.css → Link-7AADYG2F.css} +12 -35
  48. package/dist/LinkInterstitial/index.js +2 -2
  49. package/dist/LogoSlot/index.js +3 -3
  50. package/dist/MarkdownEditor/index.js +4 -4
  51. package/dist/MentionMenu/MentionMenu.d.ts +9 -31
  52. package/dist/Menu/Menu.d.ts +9 -91
  53. package/dist/Menu/index.js +1 -1
  54. package/dist/MergeConflicts/index.js +4 -4
  55. package/dist/ObjectHeader/index.js +2 -2
  56. package/dist/OrgTable/index.js +3 -3
  57. package/dist/PresenterView/index.js +2 -2
  58. package/dist/PropertyList/index.js +3 -3
  59. package/dist/RailList/index.js +3 -3
  60. package/dist/RichEditor/index.js +1 -1
  61. package/dist/SearchTrigger/SearchTrigger.d.ts +8 -36
  62. package/dist/SearchTrigger/index.js +1 -1
  63. package/dist/{SearchTrigger-MME7NIHX.css → SearchTrigger-3HO7D6NP.css} +5 -17
  64. package/dist/SegmentedControl/index.js +3 -3
  65. package/dist/Select/Select.d.ts +6 -0
  66. package/dist/Select/index.js +1 -1
  67. package/dist/{Select-AF5YMSC6.css → Select-2FAOIL73.css} +64 -6
  68. package/dist/ShareDialog/index.js +3 -3
  69. package/dist/SheetColumnEditor/index.js +6 -6
  70. package/dist/SheetGrid/index.js +2 -2
  71. package/dist/SlideFilmstrip/index.js +2 -2
  72. package/dist/TableCells/index.js +2 -2
  73. package/dist/Tabs/index.js +2 -2
  74. package/dist/ThemeSwitcher/index.js +4 -4
  75. package/dist/TimeRangePicker/index.js +4 -4
  76. package/dist/TimeWindowPicker/index.js +2 -2
  77. package/dist/TreeCanvas/TreeCanvas.d.ts +50 -248
  78. package/dist/TreeCanvas/index.js +2 -2
  79. package/dist/TreeGrid/index.js +2 -2
  80. package/dist/ValueField/index.js +2 -2
  81. package/dist/VersionCompare/index.js +4 -4
  82. package/dist/{chunk-O43SIR3W.js → chunk-3QQ3QHQR.js} +1 -1
  83. package/dist/{chunk-MZV45HQB.js → chunk-3T6URIXM.js} +1 -1
  84. package/dist/{chunk-H2QSDZTX.js → chunk-3ZURIGQ7.js} +1 -1
  85. package/dist/{chunk-KQFOPY2P.js → chunk-4H577HEE.js} +1 -1
  86. package/dist/{chunk-3WSDAVE6.js → chunk-5PAABHF7.js} +1 -1
  87. package/dist/{chunk-3DAIOPAV.js → chunk-63NULHGF.js} +1 -1
  88. package/dist/{chunk-NFA7CSCD.js → chunk-6BMPVSUB.js} +1 -1
  89. package/dist/{chunk-GQPKDPMS.js → chunk-6W5D4A3V.js} +1 -1
  90. package/dist/{chunk-WZ5TDJ2K.js → chunk-7GFLKLCG.js} +1 -1
  91. package/dist/{chunk-JY6WSDUG.js → chunk-AIQHJ2HF.js} +1 -1
  92. package/dist/{chunk-M32NBSS7.js → chunk-B2RTWEZZ.js} +4 -6
  93. package/dist/{chunk-3P24SMTI.js → chunk-B5MCTPXL.js} +1 -1
  94. package/dist/{chunk-V2FD4RPS.js → chunk-BGPHGCDT.js} +1 -1
  95. package/dist/{chunk-QNDXLHBO.js → chunk-CN2EDXAW.js} +1 -1
  96. package/dist/{chunk-NLGRDKCK.js → chunk-EPH5EPKN.js} +2 -2
  97. package/dist/{chunk-AKCIF6XN.js → chunk-FEJVDORA.js} +1 -1
  98. package/dist/{chunk-PFTUWDZN.js → chunk-FIH5EMJF.js} +1 -1
  99. package/dist/{chunk-OWYIRWEX.js → chunk-FMRRKLNX.js} +1 -1
  100. package/dist/{chunk-QM2QFKIA.js → chunk-FVXNR63H.js} +2 -2
  101. package/dist/{chunk-2AKVGQ73.js → chunk-GDBROEQ5.js} +1 -1
  102. package/dist/{chunk-NMBGVHGQ.js → chunk-GSLN7WL2.js} +2 -2
  103. package/dist/{chunk-KMIS2R67.js → chunk-HJAX4356.js} +1 -1
  104. package/dist/{chunk-WLCPN22T.js → chunk-HKYLPYVF.js} +1 -1
  105. package/dist/{chunk-Q4JX6UO7.js → chunk-HMEFWPAA.js} +3 -7
  106. package/dist/{chunk-OVFB63RZ.js → chunk-JANUABBT.js} +3 -5
  107. package/dist/{chunk-AIYSPVVZ.js → chunk-JDRBZYIA.js} +1 -1
  108. package/dist/{chunk-7FSIBX4S.js → chunk-JG66SXCX.js} +1 -1
  109. package/dist/{chunk-SIL5WE55.js → chunk-LPQF7Z44.js} +1 -1
  110. package/dist/{chunk-D2KJ5GQC.js → chunk-N2DCSSYC.js} +2 -2
  111. package/dist/{chunk-2TZNTPF5.js → chunk-NDWXVEY6.js} +2 -4
  112. package/dist/{chunk-4Q7AWZ6O.js → chunk-OIC6S5ES.js} +1 -1
  113. package/dist/{chunk-6ZFQ6TAM.js → chunk-OU22GKZK.js} +32 -18
  114. package/dist/{chunk-QFE6T6GW.js → chunk-P4QAS5TS.js} +1 -1
  115. package/dist/{chunk-JKFA2F7J.js → chunk-R4YUMULC.js} +1 -1
  116. package/dist/{chunk-E3AFQTWT.js → chunk-SRPV3EAJ.js} +1 -1
  117. package/dist/{chunk-QDXSBVZR.js → chunk-TBNA64RD.js} +2 -2
  118. package/dist/{chunk-K5WTII2H.js → chunk-U67UM3VS.js} +1 -1
  119. package/dist/{chunk-RMGPZQVJ.js → chunk-UTKI2SAM.js} +1 -1
  120. package/dist/{chunk-KUECTV2P.js → chunk-W443OSWT.js} +1 -1
  121. package/dist/{chunk-XHNV272L.js → chunk-W4UJWFCZ.js} +1 -1
  122. package/dist/{chunk-EGHOU7U2.js → chunk-WGAEHKGW.js} +5 -12
  123. package/dist/{chunk-MNACKUBB.js → chunk-WIGJ4J5U.js} +3 -3
  124. package/dist/{chunk-32QLSXKL.js → chunk-WWCQDCH5.js} +1 -1
  125. package/dist/{chunk-3DGNF2EH.js → chunk-XGZXKG53.js} +2 -2
  126. package/dist/{chunk-MNVIIZQP.js → chunk-YADYQHHW.js} +2 -5
  127. package/dist/{chunk-Y7FPSBCN.js → chunk-YBOGOTYV.js} +1 -1
  128. package/dist/{chunk-ECOWCJHQ.js → chunk-YTDZY3PY.js} +1 -1
  129. package/dist/{chunk-6POROC4M.js → chunk-ZO3MXMAC.js} +1 -1
  130. package/dist/generated/index.js +78 -78
  131. package/dist/index.js +78 -78
  132. package/dist/styles.css +253 -703
  133. package/dist/utils/pathBreaks.d.ts +3 -8
  134. package/package.json +3 -3
  135. package/dist/InlineCode-BEYQFJQT.css +0 -106
  136. package/dist/{chunk-HERJFKPF.js → chunk-AF3F35DQ.js} +1 -1
  137. package/dist/{chunk-3YOLD7WG.js → chunk-F7NHMBGJ.js} +1 -1
@@ -1,12 +1,12 @@
1
- export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-NLGRDKCK.js';
1
+ export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-EPH5EPKN.js';
2
2
  import '../chunk-7U4V36SB.js';
3
- import '../chunk-V2FD4RPS.js';
4
- import '../chunk-JY6WSDUG.js';
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-EGHOU7U2.js';
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
- * What a card's preview draws when there is no cover: the kind's drawing on
9
- * its tinted ground (`ArtifactKindGround`). Exported for a host whose cover
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 OUTSIDE its link in the
74
- * preview's top corner and shown on hover and while focus is inside the
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
- * opposite the kind's badge, shown on hover, while focus is inside the card,
82
- * on a screen with no hover, and always once the card is picked or the
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 (its Select toggle is on, or something is picked):
90
- * every box shows, and the card's body PICKS rather than opens, a label for
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, as a card in a gallery or a row in a task's rail.
108
- *
109
- * THE CARD (`size="card"`) is a gallery's: a large preview of the artifact's
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 while its listing loads: the card's own shape (the preview
128
- * at its ratio, the badge over its foot, a title line and a meta line), so a
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-OVFB63RZ.js';
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, so a grid of them
3
- * lines up whatever each preview is, the kind's badge over its foot, then the
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
- * ON TOP OF CARD, so every rule that changes Card's own layout carries Card's
10
- * class too. The two sheets meet at equal weight and the bundle orders them
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
- /* THE TILE CENTRES ON THE TITLE'S LINE. The tile is a control step tall and
55
- the title one line, so with both at the row's top the tile's middle stood
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
- * THE FACTS OF ONE LINE ARE A RUN, "Sheet · OPS · v12", each opened by a
96
- * quiet dot, so two short words never read as one phrase.
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 SOFT PANE WITH A GENEROUS CORNER. The card is the card rung with its
157
- * hairline, rounded a step past a plain card's because the preview inside it
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
- * THE KIND'S BADGE STANDS ON THE PREVIEW'S FOOT, half over the picture and
233
- * half over the card, the glyph in the kind's ink: what the artifact is, read
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
- * THE SELECTION BOX STANDS ON THE PREVIEW'S FOOT, opposite the kind's badge
351
- * and drawn as its twin: half over the picture and half over the card, on a
352
- * raised square in the badge's own size, hairline and shadow. A cover's own
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 above their work: each
25
- * kind's glyph on its own tint, its name and what it is for, the whole item
26
- * one link. A toolbar for making things rather than a hero: one line high on
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-O43SIR3W.js';
2
- import '../chunk-PFTUWDZN.js';
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-V2FD4RPS.js';
7
- import '../chunk-JY6WSDUG.js';
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-EGHOU7U2.js';
10
+ import '../chunk-WGAEHKGW.js';
11
11
  import '../chunk-XZY6S3UC.js';
12
12
  import '../chunk-M2M6ZD7P.js';
13
13
  import '../chunk-XSPCITPN.js';
@@ -1,4 +1,4 @@
1
- export { BrandSample } from '../chunk-OWYIRWEX.js';
1
+ export { BrandSample } from '../chunk-FMRRKLNX.js';
2
2
  import '../chunk-X7WEE3EK.js';
3
3
  import '../chunk-5SGHW42B.js';
4
4
  import '../chunk-7W3LYIOC.js';
@@ -1,23 +1,7 @@
1
1
  /*
2
- * A company's brand, drawn: a doc's opening or a title slide, in a 16:9 frame
3
- * that sets every length against its own width, so one drawing reads at a
4
- * gallery cover's size and at a preview's.
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 LINK, DRAWN: the accent's ink and its underline, and nothing to follow.
123
- * THE INK, NOT THE ACCENT: the accent is a fill colour, and drawn as words the
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: where the reader is, and the way back out.
3
- *
4
- * THE LAST CRUMB IS THE PAGE'S HEADING. The bar is the page's banner and sits
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, inside the page's heading: a
66
- * switcher's button where the page's subject is one of several the reader
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. */
@@ -1,4 +1,4 @@
1
- export { Breadcrumb } from '../chunk-QNDXLHBO.js';
1
+ export { Breadcrumb } from '../chunk-CN2EDXAW.js';
2
2
  import '../chunk-HBDA76EZ.js';
3
3
  import '../chunk-475DOAWF.js';
4
4
  import '../chunk-WSIJDWUG.js';
@@ -1,31 +1,7 @@
1
1
  /*
2
- * The trail in a top bar.
3
- *
4
- * IT IS WHAT GIVES WAY, AND WHAT TAKES THE SLACK. `flex-grow: 1` is the spacer
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
- * THE OBJECT'S OWN NAME TAKES THE CUT, never the way back out. The reader
65
- * knows which object they are on, because the page below says so; what they
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: a link lifts to the primary ink under the
109
- * pointer, and one with nothing to press stays where it is. NO UNDERLINE: a
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
- * THE LABEL IS THE BOX THAT ELLIPSISES. The crumb around it is a flex
159
- * container, and `text-overflow` never reaches the anonymous item text inside
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
- * ON A PHONE AN ANCESTOR WITH A GLYPH IS ITS GLYPH. The workspace's mark is
213
- * the one sign of where the reader is that survives a sidebar folded into a
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