@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
@@ -41,26 +41,21 @@ export interface MentionMenuProps {
41
41
  */
42
42
  listRef?: Ref<HTMLUListElement> | undefined;
43
43
  /**
44
- * Whether the reader has taken the list over with the arrow keys. Until then
45
- * the active row is drawn quietly, as what Enter or Tab would take, and the
46
- * strong highlight arrives with the first arrow press, which commits to that
47
- * row rather than moving past it. True by default.
44
+ * Whether the reader has taken the list over with the arrow keys; until then
45
+ * the active row is drawn quietly. True by default.
48
46
  */
49
47
  keyed?: boolean | undefined;
50
48
  /** The foot. Left out, it carries the keyboard hints; `null` draws none. */
51
49
  footer?: ReactNode;
52
50
  labels?: Partial<MentionMenuLabels> | undefined;
53
51
  /**
54
- * `chat` is a conversation's message box's list: a compact card (the small
55
- * corner, at most 480px wide) with no heading, and 32px rows whose face
56
- * column fits an extra small `Avatar` (20px). `default` is today's list.
52
+ * `chat` is a conversation's message box's list: a compact card with no
53
+ * heading and 32px rows sized for an extra small `Avatar`.
57
54
  */
58
55
  appearance?: MentionMenuAppearance | undefined;
59
56
  /**
60
- * The trigger character's distance in px from the left edge of the box the
61
- * menu is placed in (`caretPoint`). Given, the card moves along so its face
62
- * column stands under the trigger, and stays inside that box. Left out, the
63
- * card starts at the box's left edge.
57
+ * The trigger character's distance in px from the left edge of the menu's
58
+ * box (`caretPoint`); the card moves to stand under it, inside that box.
64
59
  */
65
60
  anchor?: number | undefined;
66
61
  className?: string | undefined;
@@ -68,26 +63,9 @@ export interface MentionMenuProps {
68
63
  /** The list's look: `default`, or `chat`, a conversation's message box's list. */
69
64
  export type MentionMenuAppearance = 'default' | 'chat';
70
65
  /**
71
- * The suggestions a composer opens on "@" or "#": people and agents with
72
- * their faces and what they are doing, rooms with their glyphs, and everyone
73
- * in the room.
74
- *
75
- * A LISTBOX THE FIELD OWNS. Focus stays in the message box, which points at
76
- * the highlighted row with `aria-activedescendant`, so typing goes on while
77
- * the list narrows. `useListbox` gives the keys (the arrows wrap, Enter and
78
- * Tab take the row, Escape closes the list and nothing else); the host spreads
79
- * `aria-autocomplete="list"`, `aria-controls` and `aria-activedescendant` on
80
- * its field, and finds the word being typed with `mentionQuery`. THE FIELD
81
- * STAYS THE TEXTBOX a textarea is: ARIA in HTML allows no `combobox` role on
82
- * a textarea (axe aria-allowed-role), and a textbox takes all three.
83
- *
84
- * DRAWN ABOVE THE COMPOSER, never over what is being typed: it is placed
85
- * against the nearest positioned box round the field, as wide as the field
86
- * and no wider than a list is read (`--crewlet-mention-menu-width`). With an
87
- * `anchor` (from `caretPoint`) it moves along to stand under the trigger.
88
- *
89
- * ITS ROWS ARE `PersonRow`s, so a face, a name and its detail sit where every
90
- * other list of people in the product puts them.
66
+ * The suggestions a composer opens on "@" or "#": a listbox the field owns via
67
+ * `aria-activedescendant`, so focus and typing stay in the field (a textarea
68
+ * stays a textbox, never a combobox). Drawn above the composer.
91
69
  */
92
70
  export declare function MentionMenu({ id, label, options, active, onPick, onHover, listRef, keyed, footer, labels: overrides, appearance, anchor, className, }: MentionMenuProps): import("react").JSX.Element;
93
71
  /** The mention being typed at the caret. */
@@ -1,76 +1,6 @@
1
1
  /**
2
- * A menu button: a trigger that opens a short list of actions.
3
- *
4
- * WHY IT EXISTS. A row in a table, a card on a chart or a node in a tree has
5
- * more actions than it has room for buttons, and a row of icons nobody can
6
- * name is not an interface. The WAI-ARIA menu button pattern is the one a
7
- * screen reader and a keyboard already know, and it has enough rules that a
8
- * second hand-written copy misses some of them: the one this replaces put
9
- * `role="menu"` on two nested elements, moved focus nowhere on open, had no
10
- * arrows, used native `disabled` items a keyboard reader never met, ran an
11
- * action before returning focus, did not close on Tab, and let its keys reach
12
- * the row beneath it.
13
- *
14
- * THE RULES IT KEEPS.
15
- *
16
- * - OPENING PUTS FOCUS ON THE FIRST ITEM (ArrowUp on the trigger: the last).
17
- * Arrows move and wrap, Home and End jump, a letter moves to the next item
18
- * starting with it, Enter or Space activates.
19
- * - IT IS A POPUP ON THE SHARED LAYER STACK: Escape closes the menu before
20
- * anything beneath it, and a press outside closes it without also counting
21
- * as a press on a veil.
22
- * - FOCUS GOES BACK TO WHAT OPENED IT on Escape, on Tab (which then carries on
23
- * to the next control, as the pattern says) and BEFORE AN ACTION RUNS. The
24
- * last is what lets an action open a dialog that returns focus to the right
25
- * place: the dialog captures its opener when it first renders, and by then
26
- * focus is back on the trigger rather than on an item about to unmount. What
27
- * opened it is whatever held focus when it opened, so a menu opened from a
28
- * tree item with the Menu key returns to the tree item, not to the
29
- * pointer-only button that anchors it.
30
- * - A DISABLED ITEM STAYS FOCUSABLE and says so (`aria-disabled`), so a
31
- * keyboard user learns the action exists and is unavailable rather than
32
- * meeting a list that silently skips it.
33
- * - IT IS PLACED BY ARITHMETIC inside the layer it renders into, follows its
34
- * trigger through a pan or a scroll, and closes when the trigger leaves the
35
- * bounds. Focus moves in only once it has been placed: until then it is
36
- * drawn hidden, so it never flashes at a corner, and a browser refuses focus
37
- * to a hidden element anyway.
38
- * - WHAT HAPPENS IN THE MENU STAYS IN THE MENU. A key, a press or a click
39
- * inside it does not reach the element it was opened from. A portal carries
40
- * React events up the component tree, not the document, so without this the
41
- * Enter that activates "Delete" would also reach the card's own Enter, and
42
- * ArrowDown would move the tree's focus as well as the menu's. Escape and
43
- * Tab still travel, because the layer stack acts on them at the document,
44
- * and so does a chord with Control, Command or Alt.
45
- * - A CHOICE IS A RADIO ITEM. An item given `checked` is a `menuitemradio`
46
- * that says whether it is the current value and draws a check where the
47
- * others draw nothing, so a menu that picks one value reads as a choice with
48
- * an answer rather than a list of actions that all look alike. Every answer
49
- * of such a choice should say `checked`, true or false, so the check column
50
- * lines up. The answers that stand together are nested in one `group`, as
51
- * the pattern asks of radio items sharing a menu with actions, so a screen
52
- * reader counts "2 of 3" among the answers rather than among every item.
53
- * - IT CAN BE OPENED FROM OUTSIDE (`open`, `onOpenChange`), because a tree item
54
- * that holds focus opens its card's menu from the keyboard while the trigger
55
- * itself is out of the tab order (`triggerTabIndex={-1}`).
56
- * - ITS TRIGGER CAN BE THE CALLER'S OWN (`renderTrigger`): a row that IS the
57
- * way in, such as the signed-in reader at the foot of the rail, opens the
58
- * menu itself rather than sitting beside a second button that does. The
59
- * caller spreads the props it is handed on its element, which keeps every
60
- * rule above, the focus coming back included.
61
- * - IT CAN BE NO NARROWER THAN ITS TRIGGER (`width="trigger"`): a trigger
62
- * that spans a column, such as the signed-in reader at the foot of the
63
- * rail, opens a panel that covers it edge to edge, and that still grows
64
- * past it when a row needs the room, so a description reads on one line
65
- * rather than wrapping into a column of short lines.
66
- * - A HEADER SAYS WHAT THE ACTIONS ARE ABOUT (`header`): a line of facts
67
- * above the items, such as the access a signed-in reader carries. It is
68
- * not an item, so the arrows never stop on it, and it stands OUTSIDE the
69
- * element that is the menu, in the same panel: a menu may own only items,
70
- * and a header is free to be a description list or a tag. The menu is
71
- * described by it, so a screen reader hears it when the menu opens.
72
- *
73
- * Ported from the engine dashboard's `ui/Menu.tsx`, with its suite.
2
+ * A menu button following the WAI-ARIA menu button pattern: a trigger that
3
+ * opens a short list of actions or one choice, on the shared layer stack.
74
4
  */
75
5
  import { type KeyboardEvent, type ReactNode } from 'react';
76
6
  import { type PopupEntrance } from '../Layer/index.js';
@@ -127,9 +57,7 @@ export interface MenuTriggerProps {
127
57
  export interface MenuProps {
128
58
  /**
129
59
  * The trigger's accessible name, such as "Actions for Software Engineer".
130
- * It names a text trigger too, so "New" can be announced as "New artifact":
131
- * keep the trigger's visible words in it, so a person who speaks what they
132
- * see still reaches the button.
60
+ * It names a text trigger too, so keep the trigger's visible words in it.
133
61
  */
134
62
  label: string;
135
63
  items: readonly MenuEntry[];
@@ -145,16 +73,9 @@ export interface MenuProps {
145
73
  trailingIcon?: ReactNode;
146
74
  triggerVariant?: ButtonVariant | undefined;
147
75
  /**
148
- * The trigger IS THE VALUE it changes: a status chosen in place, a face
149
- * that opens a picker, in a table cell or a properties rail. Its words
150
- * start on its box's line ([Button]'s `flush`), so it lines up with the
151
- * plain values beside it, and it takes the surrounding text's size, weight
152
- * and ink rather than a button label's, so a writer's row reads as a
153
- * reader's. Its hover ground and focus ring still say it is a control.
154
- *
155
- * It is NAMED BY THE VALUE IT SHOWS, then by `label`, which follows it in
156
- * words only a screen reader hears ("In progress, Status of ENG-1"): the
157
- * name starts with what is on screen. The menu itself is named by `label`.
76
+ * The trigger is the value it changes: flush, in the surrounding text's
77
+ * size and ink, and named by the value it shows followed by `label`
78
+ * ("In progress, Status of ENG-1"). The menu itself is named by `label`.
158
79
  */
159
80
  valueTrigger?: boolean | undefined;
160
81
  /** -1 for a pointer-only trigger whose actions the keyboard reaches another way. */
@@ -185,12 +106,9 @@ export interface MenuProps {
185
106
  /** How the panel arrives: `rise` (the default), or `instant`, drawn the frame it is placed. */
186
107
  entrance?: PopupEntrance | undefined;
187
108
  /**
188
- * Focus stays on the menu and the keys move a highlight it points at with
189
- * `aria-activedescendant`: it opens with nothing highlighted (ArrowDown or
190
- * ArrowUp on the trigger opens on the first or last item), the arrows, Home,
191
- * End and a letter move it, Enter or Space runs it, and the pointer moves it
192
- * too. The highlighted row is drawn as the accent fill, with no ring. Off by
193
- * default: each item takes focus in turn.
109
+ * Focus stays on the menu and the keys move an `aria-activedescendant`
110
+ * highlight, opening with nothing highlighted. Off by default: each item
111
+ * takes focus in turn.
194
112
  */
195
113
  activeDescendant?: boolean | undefined;
196
114
  className?: string | undefined;
@@ -1,4 +1,4 @@
1
- export { Menu } from '../chunk-EGHOU7U2.js';
1
+ export { Menu } from '../chunk-WGAEHKGW.js';
2
2
  import '../chunk-M2M6ZD7P.js';
3
3
  import '../chunk-XSPCITPN.js';
4
4
  import '../chunk-X5YI6E5X.js';
@@ -1,10 +1,10 @@
1
- export { MERGE_CONFLICTS_LABELS, MergeConflicts } from '../chunk-H2QSDZTX.js';
1
+ export { MERGE_CONFLICTS_LABELS, MergeConflicts } from '../chunk-3ZURIGQ7.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
- import '../chunk-EGHOU7U2.js';
7
+ import '../chunk-WGAEHKGW.js';
8
8
  import '../chunk-M2M6ZD7P.js';
9
9
  import '../chunk-XSPCITPN.js';
10
10
  import '../chunk-2YTOOH3A.js';
@@ -1,5 +1,5 @@
1
- export { FactLine, ObjectHeader, SET_BY_VERBS, SetByLine } from '../chunk-KUECTV2P.js';
2
- import '../chunk-RMGPZQVJ.js';
1
+ export { FactLine, ObjectHeader, SET_BY_VERBS, SetByLine } from '../chunk-W443OSWT.js';
2
+ import '../chunk-UTKI2SAM.js';
3
3
  import '../chunk-475DOAWF.js';
4
4
  import '../chunk-WSIJDWUG.js';
5
5
  import '../chunk-RRRK2KB6.js';
@@ -1,8 +1,8 @@
1
- export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-NFA7CSCD.js';
2
- import '../chunk-QFE6T6GW.js';
1
+ export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-6BMPVSUB.js';
2
+ import '../chunk-P4QAS5TS.js';
3
3
  import '../chunk-SYMLWDV6.js';
4
4
  import '../chunk-MY374UUD.js';
5
- import '../chunk-2TZNTPF5.js';
5
+ import '../chunk-NDWXVEY6.js';
6
6
  import '../chunk-X4HBZSXA.js';
7
7
  import '../chunk-WFAJYBLX.js';
8
8
  import '../chunk-WSIJDWUG.js';
@@ -1,6 +1,6 @@
1
- export { PresenterView, formatStopwatch } from '../chunk-HERJFKPF.js';
2
- import '../chunk-MZNOVME7.js';
1
+ export { PresenterView, formatStopwatch } from '../chunk-AF3F35DQ.js';
3
2
  import '../chunk-7O53SWKI.js';
3
+ import '../chunk-MZNOVME7.js';
4
4
  import '../chunk-RK4XPHVG.js';
5
5
  import '../chunk-M2M6ZD7P.js';
6
6
  import '../chunk-XSPCITPN.js';
@@ -1,6 +1,6 @@
1
- export { PropertyList } from '../chunk-D2KJ5GQC.js';
2
- import '../chunk-KUECTV2P.js';
3
- import '../chunk-RMGPZQVJ.js';
1
+ export { PropertyList } from '../chunk-N2DCSSYC.js';
2
+ import '../chunk-W443OSWT.js';
3
+ import '../chunk-UTKI2SAM.js';
4
4
  import '../chunk-LH4OF7FI.js';
5
5
  import '../chunk-WGLOH33S.js';
6
6
  import '../chunk-475DOAWF.js';
@@ -1,9 +1,9 @@
1
- export { RAIL_LIST_LABELS, RailList } from '../chunk-32QLSXKL.js';
1
+ export { RAIL_LIST_LABELS, RailList } from '../chunk-WWCQDCH5.js';
2
2
  import '../chunk-SM2MM4DQ.js';
3
- import '../chunk-6ZFQ6TAM.js';
3
+ import '../chunk-OU22GKZK.js';
4
4
  import '../chunk-6KWNXIDE.js';
5
- import '../chunk-KW7T23RT.js';
6
5
  import '../chunk-TODOBUXO.js';
6
+ import '../chunk-KW7T23RT.js';
7
7
  import '../chunk-HBDA76EZ.js';
8
8
  import '../chunk-RABEMWTA.js';
9
9
  import '../chunk-AV2DXAEL.js';
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-KQFOPY2P.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-4H577HEE.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KBZO4B33.js';
@@ -1,18 +1,8 @@
1
1
  import { type ButtonHTMLAttributes, type ReactNode } from 'react';
2
2
  /**
3
- * Where the field stands, which decides its ground, its height and whether it
4
- * ever gives up its words.
5
- *
6
- * `rail` is the approved design's: the whole width of the sidebar, on the
7
- * frame, so it takes the SHEET's ground one rung up, and it keeps its label
8
- * and its hint at every width, because under the shell breakpoint the rail is
9
- * a drawer as wide as it ever was.
10
- *
11
- * `toolbar` stands in a bar on the sheet, so it takes the CARD's ground, at
12
- * the height of the controls beside it and a width of its own
13
- * (`--crewlet-search-trigger-width`); under the shell breakpoint it drops its
14
- * label and its hint and keeps the glyph, because a bar is where the room
15
- * runs out.
3
+ * Where the field stands. `rail` spans the sidebar and keeps its words at every
4
+ * width; `toolbar` sits in a bar at the controls' height and drops its label
5
+ * and hint under the shell breakpoint, keeping the glyph.
16
6
  */
17
7
  export type SearchTriggerVariant = 'rail' | 'toolbar';
18
8
  export interface SearchTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'aria-label'> {
@@ -23,34 +13,16 @@ export interface SearchTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButton
23
13
  /** The shortcut hint, as a Kbd with `keys`. Decoration: name the keys in `keyshortcuts`. */
24
14
  shortcut?: ReactNode;
25
15
  /**
26
- * The shortcut in the syntax `aria-keyshortcuts` takes, such as
27
- * `"Control+K Meta+K /"`. A screen reader reads it with the control, which
28
- * is the only place a reader who cannot see the keycaps learns the shortcut
29
- * exists.
16
+ * The shortcut for `aria-keyshortcuts`, such as `"Control+K Meta+K /"`: the
17
+ * only way a reader who cannot see the keycaps learns it exists.
30
18
  */
31
19
  keyshortcuts?: string | undefined;
32
20
  /** The leading glyph. A magnifier by default. */
33
21
  icon?: ReactNode;
34
22
  }
35
23
  /**
36
- * The control that opens search, drawn as the field it is standing in for.
37
- *
38
- * IT IS A BUTTON, not an input. What it opens is a palette with its own field,
39
- * and a box that takes focus and then throws the first keystroke away is worse
40
- * than one that never looked like a field at all.
41
- *
42
- * IT IS NAMED BY ITS WORDS, and by nothing else. An `aria-label` replaced
43
- * them, and the keycap beside them is text in the same box (a checker counts
44
- * it as shown, hidden from a screen reader or not), so the name never
45
- * contained what the box shows and a person who says what they see could not
46
- * reach it. The keycap is decoration: the shortcut reaches a screen reader
47
- * through `aria-keyshortcuts`, the one place a reader who cannot see the caps
48
- * learns it.
49
- *
50
- * FOLDED, THE WORDS ARE CLIPPED, NOT REMOVED. The toolbar form's narrow
51
- * layout leaves the glyph alone in the box, and its words stay the button's
52
- * name out of sight: content under `display: none` names nothing, and the
53
- * dashboard this comes from had a search button a screen reader announced as
54
- * "button" at every width under the breakpoint.
24
+ * The button that opens search, drawn as the field it stands in for. It is
25
+ * named by its visible words alone, and folded it clips them rather than
26
+ * removing them, so it keeps that name at every width.
55
27
  */
56
28
  export declare const SearchTrigger: import("react").ForwardRefExoticComponent<SearchTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,2 +1,2 @@
1
- export { SearchTrigger } from '../chunk-K5WTII2H.js';
1
+ export { SearchTrigger } from '../chunk-U67UM3VS.js';
2
2
  import '../chunk-ODEQTPFM.js';
@@ -1,11 +1,6 @@
1
1
  /*
2
- * A button drawn as the field it stands in for.
3
- *
4
- * TWO PLACES, TWO GROUNDS. The approved design draws it in the rail, the
5
- * whole width of the sidebar on the frame, and in a screen's own bar on the
6
- * sheet. In each it is one rung up from what it stands on, the sheet on the
7
- * frame and the card on the sheet, inside the default hairline, so it reads
8
- * as a field sunk into neither and lifted off both.
2
+ * A button drawn as the field it stands in for, one rung up from its ground:
3
+ * the sheet's ground in the rail, the card's in a screen's bar.
9
4
  */
10
5
 
11
6
  .crewlet-search-trigger {
@@ -27,16 +22,9 @@
27
22
  }
28
23
 
29
24
  /*
30
- * THE RAIL'S FIELD: the width of the slot it stands in, on the SHEET's
31
- * ground, on the rail's compact step (the small control, 26px, never under
32
- * the 24px target), with a tighter pad at each end. The rail's search slot
33
- * names the pad (`--crewlet-rail-field-pad`), so its inset and the field's
34
- * pad are one measure and the glyph lands on the nav's glyph column; outside
35
- * that slot the field keeps the trigger's own pad.
36
- *
37
- * Its glyph-to-word gap is a nav row's (SidebarNav.css), two steps and a
38
- * half, so its words start on the rows' word column too: on the trigger's
39
- * two-step gap the placeholder stood 2px left of every nav label.
25
+ * The rail's field: the slot's width on the sheet's ground at the small control
26
+ * step. Its pad (`--crewlet-rail-field-pad`) and glyph gap match a nav row's,
27
+ * so its glyph and words line up with the nav's columns.
40
28
  */
41
29
  .crewlet-search-trigger--rail {
42
30
  display: flex;
@@ -1,9 +1,9 @@
1
1
  import '../chunk-7U4V36SB.js';
2
- export { SegmentedControl } from '../chunk-V2FD4RPS.js';
3
- import '../chunk-JY6WSDUG.js';
2
+ export { SegmentedControl } from '../chunk-BGPHGCDT.js';
3
+ import '../chunk-AIQHJ2HF.js';
4
4
  import '../chunk-7F3OPUM5.js';
5
5
  import '../chunk-QRE6JCHS.js';
6
- import '../chunk-EGHOU7U2.js';
6
+ import '../chunk-WGAEHKGW.js';
7
7
  import '../chunk-M2M6ZD7P.js';
8
8
  import '../chunk-XSPCITPN.js';
9
9
  import '../chunk-2YTOOH3A.js';
@@ -10,6 +10,12 @@ export type SelectAlign = 'left' | 'right';
10
10
  * that keeps a row of them even and a cap that stops one long value pushing
11
11
  * the rest of the bar off the screen. A filter row of full-width selects is
12
12
  * one question per line, which is not what a filter bar is.
13
+ *
14
+ * The LIST follows the mode: a field's list matches its field, and a picker's
15
+ * sizes to its options with the trigger as a floor. Either way a list whose
16
+ * options carry a description is never narrower than a readable floor or
17
+ * wider than a readable measure, so a field in a table cell does not offer
18
+ * its sentences a word to a line, and no list is wider than the window.
13
19
  */
14
20
  export type SelectWidth = 'full' | 'auto';
15
21
  /** How much chrome a picker draws. See [SelectProps.appearance]. */
@@ -1,4 +1,4 @@
1
- export { Select } from '../chunk-6ZFQ6TAM.js';
1
+ export { Select } from '../chunk-OU22GKZK.js';
2
2
  import '../chunk-KW7T23RT.js';
3
3
  import '../chunk-JLKO7PSK.js';
4
4
  import '../chunk-2YTOOH3A.js';
@@ -257,12 +257,49 @@ svg.crewlet-select__chevron {
257
257
  /* Six rows and a scroll. A list that draws past the bottom of the dialog
258
258
  it was opened in is a list whose last answers nobody finds. */
259
259
  --crewlet-select-menu-max-height: 12rem;
260
+ /*
261
+ * THE FLOOR AND THE MEASURE a list asks for beside its trigger's width. A
262
+ * list of names asks for neither: it is as wide as its trigger at least,
263
+ * and a picker's is as wide as its longest name. A described list asks for
264
+ * both (below).
265
+ */
266
+ --crewlet-select-menu-min-width: 0px;
267
+ --crewlet-select-menu-max-width: 100vw;
260
268
 
261
269
  position: fixed;
262
270
  display: flex;
263
271
  flex-direction: column;
264
- min-width: 0;
265
- max-height: min(var(--crewlet-select-menu-max-height), 60vh);
272
+ /*
273
+ * THE WIDTH IS MADE HERE from three measurements the component writes when
274
+ * it places the panel (Select.tsx, `position`): the field's width
275
+ * (--crewlet-select-anchor-width), the room's (--crewlet-select-room-width)
276
+ * and the height beside the field (--crewlet-select-room-height). Each
277
+ * bound is the larger of the field and what the list asks for, and never
278
+ * more than the room, so on a phone the room wins over a floor that would
279
+ * hang past its edge.
280
+ *
281
+ * The field's width used to be the panel's whole width, written on the node
282
+ * with no minimum, so a field in a table cell offered a sentence per option
283
+ * in a 115px panel, a word or two to a line and one option taller than the
284
+ * window. A screen's own min-width could not lift it either: one class
285
+ * against this one, it won or lost by which stylesheet the page linked
286
+ * last.
287
+ */
288
+ min-width: min(
289
+ max(var(--crewlet-select-anchor-width, 0px), var(--crewlet-select-menu-min-width)),
290
+ var(--crewlet-select-room-width, 100vw)
291
+ );
292
+ max-width: min(
293
+ max(var(--crewlet-select-anchor-width, 0px), var(--crewlet-select-menu-max-width)),
294
+ var(--crewlet-select-room-width, 100vw)
295
+ );
296
+ /* Never taller than the larger side beside the field, so it fits on that
297
+ side and never covers the field and the answer it shows. */
298
+ max-height: min(
299
+ var(--crewlet-select-menu-max-height),
300
+ 60vh,
301
+ var(--crewlet-select-room-height, 100vh)
302
+ );
266
303
  /*
267
304
  * THE PANEL IS THE PRODUCT'S SURFACE, on the panel hairline, at the panel
268
305
  * corner. A list offered from a field is another panel over the one the
@@ -284,12 +321,30 @@ svg.crewlet-select__chevron {
284
321
  z-index: var(--z-index-popover);
285
322
  }
286
323
 
287
- /* SIX ROWS OF THE LIST'S OWN HEIGHT. A row with a second line (an option's
288
- description) is twice a one-line row, so the same six rows need twice the
289
- room: at 12rem a list of four described answers scrolled, and the first or
290
- the last of them was cut at the panel's edge. */
324
+ /* A FIELD'S LIST MATCHES ITS FIELD: exactly the field's width, unless the
325
+ list asks for a wider floor, and never wider than the room. */
326
+ .crewlet-select__menu--matches {
327
+ width: min(
328
+ max(var(--crewlet-select-anchor-width, 0px), var(--crewlet-select-menu-min-width)),
329
+ var(--crewlet-select-room-width, 100vw)
330
+ );
331
+ }
332
+
333
+ /*
334
+ * A DESCRIBED LIST READS AS PROSE, so it is set at a reading width. Its
335
+ * floor keeps a sentence to whole phrases a line (about fifty characters at
336
+ * the description's size), and its measure keeps a picker's long sentence
337
+ * from running one line across the window (about seventy).
338
+ *
339
+ * SIX ROWS OF THE LIST'S OWN HEIGHT. A row with a second line (an option's
340
+ * description) is twice a one-line row, so the same six rows need twice the
341
+ * room: at 12rem a list of four described answers scrolled, and the first or
342
+ * the last of them was cut at the panel's edge.
343
+ */
291
344
  .crewlet-select__menu--described {
292
345
  --crewlet-select-menu-max-height: 24rem;
346
+ --crewlet-select-menu-min-width: 22rem;
347
+ --crewlet-select-menu-max-width: 28rem;
293
348
  }
294
349
 
295
350
  /* Inside a layer host the panel is placed against the host's own box. */
@@ -443,6 +498,9 @@ svg.crewlet-select__chevron {
443
498
  font-size: var(--font-size-2xs);
444
499
  line-height: var(--font-line-height-normal);
445
500
  color: var(--color-text-tertiary);
501
+ /* A word longer than the measure (an address, an id) breaks rather than
502
+ running out of the panel, which clips it. */
503
+ overflow-wrap: break-word;
446
504
  }
447
505
 
448
506
  /* The second line stays the second line on the row the reader is on: it is
@@ -1,8 +1,8 @@
1
- export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-WZ5TDJ2K.js';
2
- import '../chunk-6ZFQ6TAM.js';
1
+ export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-7GFLKLCG.js';
2
+ import '../chunk-OU22GKZK.js';
3
3
  import '../chunk-VSD3536L.js';
4
4
  import '../chunk-KW7T23RT.js';
5
- import '../chunk-MZV45HQB.js';
5
+ import '../chunk-3T6URIXM.js';
6
6
  import '../chunk-2MEBMWNO.js';
7
7
  import '../chunk-STJ7QBC3.js';
8
8
  import '../chunk-DTIW4CHZ.js';
@@ -1,17 +1,17 @@
1
- export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-MNACKUBB.js';
2
- import '../chunk-6ZFQ6TAM.js';
1
+ export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-WIGJ4J5U.js';
2
+ import '../chunk-OU22GKZK.js';
3
3
  import '../chunk-FFMCMSJB.js';
4
4
  import '../chunk-KW7T23RT.js';
5
5
  import '../chunk-LFSIKGRQ.js';
6
6
  import '../chunk-Z7JYG5TF.js';
7
- import '../chunk-PFTUWDZN.js';
7
+ import '../chunk-FIH5EMJF.js';
8
8
  import '../chunk-AYKXMIOR.js';
9
9
  import '../chunk-KFTVPWG2.js';
10
- import '../chunk-V2FD4RPS.js';
11
- import '../chunk-JY6WSDUG.js';
10
+ import '../chunk-BGPHGCDT.js';
11
+ import '../chunk-AIQHJ2HF.js';
12
12
  import '../chunk-7F3OPUM5.js';
13
13
  import '../chunk-QRE6JCHS.js';
14
- import '../chunk-EGHOU7U2.js';
14
+ import '../chunk-WGAEHKGW.js';
15
15
  import '../chunk-NN44J7BP.js';
16
16
  import '../chunk-NICEDVZM.js';
17
17
  import '../chunk-JLKO7PSK.js';
@@ -1,4 +1,4 @@
1
- export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-E3AFQTWT.js';
1
+ export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-SRPV3EAJ.js';
2
2
  import '../chunk-FOUIZS7Q.js';
3
3
  import '../chunk-CENOOTAV.js';
4
4
  import '../chunk-MMCYH5LB.js';
@@ -10,7 +10,7 @@ import '../chunk-SJ3EUCFD.js';
10
10
  import '../chunk-KDRJZWE3.js';
11
11
  import '../chunk-AYKXMIOR.js';
12
12
  import '../chunk-QRE6JCHS.js';
13
- import '../chunk-EGHOU7U2.js';
13
+ import '../chunk-WGAEHKGW.js';
14
14
  import '../chunk-ARZGEHWE.js';
15
15
  import '../chunk-XZY6S3UC.js';
16
16
  import '../chunk-M2M6ZD7P.js';
@@ -1,7 +1,7 @@
1
- export { SlideFilmstrip } from '../chunk-7FSIBX4S.js';
1
+ export { SlideFilmstrip } from '../chunk-JG66SXCX.js';
2
2
  import '../chunk-7O53SWKI.js';
3
3
  import '../chunk-JMBPMSNI.js';
4
- import '../chunk-EGHOU7U2.js';
4
+ import '../chunk-WGAEHKGW.js';
5
5
  import '../chunk-SK4BIFTG.js';
6
6
  import '../chunk-COS6LJ4K.js';
7
7
  import '../chunk-VBBLHS2Y.js';
@@ -1,5 +1,5 @@
1
- export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-JKFA2F7J.js';
2
- import '../chunk-RMGPZQVJ.js';
1
+ export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-R4YUMULC.js';
2
+ import '../chunk-UTKI2SAM.js';
3
3
  import '../chunk-SJ3EUCFD.js';
4
4
  import '../chunk-GBKBME7Q.js';
5
5
  import '../chunk-WGLOH33S.js';
@@ -1,7 +1,7 @@
1
- export { TabPanel, Tabs, tabId } from '../chunk-JY6WSDUG.js';
1
+ export { TabPanel, Tabs, tabId } from '../chunk-AIQHJ2HF.js';
2
2
  import '../chunk-7F3OPUM5.js';
3
3
  import '../chunk-QRE6JCHS.js';
4
- import '../chunk-EGHOU7U2.js';
4
+ import '../chunk-WGAEHKGW.js';
5
5
  import '../chunk-M2M6ZD7P.js';
6
6
  import '../chunk-XSPCITPN.js';
7
7
  import '../chunk-2YTOOH3A.js';
@@ -1,12 +1,12 @@
1
- export { DensitySwitcher, ThemeSwitcher } from '../chunk-AIYSPVVZ.js';
1
+ export { DensitySwitcher, ThemeSwitcher } from '../chunk-JDRBZYIA.js';
2
2
  export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from '../chunk-Z24ZUSTX.js';
3
3
  export { DENSITY_PREFERENCES, PALETTE_ID, THEME_PREFERENCES, applyDensity, applyPalette, applyTheme, isDensityPreference, isPaletteId, isThemePreference } from '../chunk-ZXXDZJQN.js';
4
4
  import '../chunk-7U4V36SB.js';
5
- import '../chunk-V2FD4RPS.js';
6
- import '../chunk-JY6WSDUG.js';
5
+ import '../chunk-BGPHGCDT.js';
6
+ import '../chunk-AIQHJ2HF.js';
7
7
  import '../chunk-7F3OPUM5.js';
8
8
  import '../chunk-QRE6JCHS.js';
9
- import '../chunk-EGHOU7U2.js';
9
+ import '../chunk-WGAEHKGW.js';
10
10
  import '../chunk-M2M6ZD7P.js';
11
11
  import '../chunk-XSPCITPN.js';
12
12
  import '../chunk-2YTOOH3A.js';