@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,5 +1,5 @@
1
1
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
2
- import { SegmentedControl } from './chunk-V2FD4RPS.js';
2
+ import { SegmentedControl } from './chunk-BGPHGCDT.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { BrandScope } from './chunk-X7WEE3EK.js';
2
2
  import { normalizeHex } from './chunk-7W3LYIOC.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
- import './BrandSample-3OSKZAGG.css';
4
+ import './BrandSample-WSBT7FQ5.css';
5
5
  import { jsx, jsxs } from 'react/jsx-runtime';
6
6
 
7
7
  var LABELS = {
@@ -1,6 +1,6 @@
1
1
  import { Note } from './chunk-YJPQJVRJ.js';
2
- import { CanvasToolbar, toolForKey } from './chunk-AKCIF6XN.js';
3
- import { IDENTITY_VIEW, Canvas } from './chunk-MNVIIZQP.js';
2
+ import { CanvasToolbar, toolForKey } from './chunk-FEJVDORA.js';
3
+ import { IDENTITY_VIEW, Canvas } from './chunk-YADYQHHW.js';
4
4
  import { IconButton } from './chunk-X5YI6E5X.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './CanvasBoard-U6LR5F6H.css';
@@ -1,7 +1,7 @@
1
1
  import { useMeasuredSizes, isTypeAheadKey, typeAheadBuffer } from './chunk-MY374UUD.js';
2
2
  import { FullscreenToggle } from './chunk-3JLG6KRU.js';
3
3
  import { FilterChip } from './chunk-L6HUVA33.js';
4
- import { CANVAS_FIT_PADDING, Canvas } from './chunk-MNVIIZQP.js';
4
+ import { CANVAS_FIT_PADDING, Canvas } from './chunk-YADYQHHW.js';
5
5
  import { Text } from './chunk-475DOAWF.js';
6
6
  import { LayerHost } from './chunk-FIX72ZEC.js';
7
7
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,6 +1,6 @@
1
1
  import { Toolbar } from './chunk-NPEI2QAN.js';
2
- import { SegmentedControl } from './chunk-V2FD4RPS.js';
3
- import { tabId } from './chunk-JY6WSDUG.js';
2
+ import { SegmentedControl } from './chunk-BGPHGCDT.js';
3
+ import { tabId } from './chunk-AIQHJ2HF.js';
4
4
  import { IconButton } from './chunk-X5YI6E5X.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './MarkdownEditor-BLCJRGDC.css';
@@ -1,4 +1,4 @@
1
- import { Copyable } from './chunk-MZV45HQB.js';
1
+ import { Copyable } from './chunk-3T6URIXM.js';
2
2
  import { normalizeHex } from './chunk-7W3LYIOC.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ColorSwatch-HBNYO6EK.css';
@@ -7,7 +7,7 @@ import { IconButton } from './chunk-X5YI6E5X.js';
7
7
  import { Count } from './chunk-Y5CMDLQM.js';
8
8
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
9
9
  import { cx } from './chunk-ODEQTPFM.js';
10
- import './CommentThread-544KCZT7.css';
10
+ import './CommentThread-YU6VSVS4.css';
11
11
  import { useState, useRef, useId, useMemo, useEffect } from 'react';
12
12
  import { MessageSquareGlyph, XGlyph } from '@crewlethq/icons/glyphs';
13
13
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { useTreeState, useMeasuredSizes, layoutForest, treeAncestors, useLayoutAnchor, treeExpandable, layoutConnectors, treeItemAction, treeStep, treePosInSet, treeSetSize, treeLevel, placeGroups } from './chunk-MY374UUD.js';
2
- import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-MNVIIZQP.js';
2
+ import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-YADYQHHW.js';
3
3
  import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
4
4
  import { focusables } from './chunk-EDPMHSLZ.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -594,12 +594,8 @@ function TreeCanvas({
594
594
  id
595
595
  );
596
596
  }) }),
597
- composing !== null && /* THE REGION LISTENS; IT IS NOT A CONTROL. Escape belongs to the
598
- whole form rather than to whichever field the reader happened to
599
- be in, so one handler on the boundary catches it from all of them,
600
- which is the same arrangement the tree above makes for its items.
601
- It takes no tab stop of its own: the -1 is there so focus can be
602
- PUT on it before the form has drawn a control. */
597
+ composing !== null && /* The region catches Escape from every field; it is not a control.
598
+ Its -1 lets focus be put on it before the form draws a control. */
603
599
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- see above
604
600
  /* @__PURE__ */ jsx(
605
601
  "div",
@@ -10,7 +10,7 @@ import { AvatarStack } from './chunk-ARZGEHWE.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';
12
12
  import './ArtifactKinds-27TE3KJL.css';
13
- import './ArtifactCard-ZH6KCD5O.css';
13
+ import './ArtifactCard-PWMC7RAY.css';
14
14
  import { useId } from 'react';
15
15
  import { PinGlyph } from '@crewlethq/icons/glyphs';
16
16
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -163,10 +163,8 @@ function ArtifactCard({
163
163
  /* @__PURE__ */ jsx("label", { htmlFor: boxId, className: "crewlet-artifact-card__link", children: bodyContent })
164
164
  ) : /* @__PURE__ */ jsx("a", { href, className: "crewlet-artifact-card__link", "aria-labelledby": titleId, "aria-describedby": factsId, children: bodyContent }),
165
165
  selectable ? (
166
- // THE BOX STANDS ON THE PREVIEW'S FOOT, not over its top: a cover's
167
- // own title starts at its top corner, and a box there hid its first
168
- // words. The anchor has the preview's shape, so the box sits on the
169
- // seam opposite the kind's badge whatever the card's width.
166
+ // The box sits on the preview's foot, opposite the kind's badge, so it
167
+ // never covers the start of a cover's own title.
170
168
  /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__select-anchor", children: /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__select", children: /* @__PURE__ */ jsx(
171
169
  Checkbox,
172
170
  {
@@ -1,5 +1,5 @@
1
1
  import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
2
- import { SegmentedControl } from './chunk-V2FD4RPS.js';
2
+ import { SegmentedControl } from './chunk-BGPHGCDT.js';
3
3
  import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { SlideStage } from './chunk-7O53SWKI.js';
2
2
  import { useReorder } from './chunk-JMBPMSNI.js';
3
- import { Menu } from './chunk-EGHOU7U2.js';
3
+ import { Menu } from './chunk-WGAEHKGW.js';
4
4
  import { Kbd, isApplePlatform } from './chunk-VBBLHS2Y.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { ContrastLevelTag } from './chunk-3YOLD7WG.js';
1
+ import { ContrastLevelTag } from './chunk-F7NHMBGJ.js';
2
2
  import { Popover } from './chunk-KDRJZWE3.js';
3
3
  import { IconButton } from './chunk-X5YI6E5X.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
- import { SetByLine } from './chunk-KUECTV2P.js';
2
- import { Link } from './chunk-RMGPZQVJ.js';
1
+ import { SetByLine } from './chunk-W443OSWT.js';
2
+ import { Link } from './chunk-UTKI2SAM.js';
3
3
  import { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
4
4
  import { EmptyValue } from './chunk-WGLOH33S.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -629,10 +629,8 @@ function DataGrid({
629
629
  body.current?.querySelector(`[data-row-index="${next}"]`)?.scrollIntoView({ block: "nearest" });
630
630
  return next;
631
631
  }),
632
- // THE ROW'S OWN WAY IN, from the keyboard: its handler where it has
633
- // one, else its link, followed as a click on it would be (with the
634
- // keys held, so a modified Enter opens it elsewhere as a modified
635
- // click does). A grid of links only had no Enter at all.
632
+ // Enter runs the row's handler, else follows its link as a click with
633
+ // the same modifier keys would.
636
634
  activate: (event) => {
637
635
  const row = flat[cursor];
638
636
  if (row === void 0) return false;
@@ -1,5 +1,5 @@
1
1
  import { FileDrop, FilePickButton } from './chunk-XF5PDUDH.js';
2
- import { contrastRatio } from './chunk-3YOLD7WG.js';
2
+ import { contrastRatio } from './chunk-F7NHMBGJ.js';
3
3
  import { normalizeHex } from './chunk-7W3LYIOC.js';
4
4
  import { Button } from './chunk-M2M6ZD7P.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,12 +1,12 @@
1
1
  import { useListbox, useOptionKeys, useHighlightRest } from './chunk-KW7T23RT.js';
2
2
  import { useFieldError } from './chunk-JLKO7PSK.js';
3
3
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
4
- import { useLayerContainer, viewportBounds, LAYER_GAP, anchorGone, placePopup, LAYER_REPOSITION_EVENT } from './chunk-FIX72ZEC.js';
4
+ import { useLayerContainer, viewportBounds, visibleBounds, LAYER_GAP, anchorGone, placePopup, LAYER_REPOSITION_EVENT } from './chunk-FIX72ZEC.js';
5
5
  import { useFocusModality, returnFocus } from './chunk-4ITETIGZ.js';
6
6
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './HitArea-QUOS6ZDJ.css';
9
- import './Select-AF5YMSC6.css';
9
+ import './Select-2FAOIL73.css';
10
10
  import { forwardRef, useId, useMemo, useState, useRef, useCallback, useEffect, useLayoutEffect } from 'react';
11
11
  import { createPortal } from 'react-dom';
12
12
  import { ChevronDownGlyph, CheckGlyph, SearchGlyph } from '@crewlethq/icons/glyphs';
@@ -169,6 +169,13 @@ var NativeSelect = forwardRef(function NativeSelect2({ id, value, onChange, opti
169
169
  }
170
170
  );
171
171
  });
172
+ function placeVars({ anchor, room, tall }) {
173
+ return {
174
+ "--crewlet-select-anchor-width": `${anchor}px`,
175
+ "--crewlet-select-room-width": `${room}px`,
176
+ "--crewlet-select-room-height": `${tall}px`
177
+ };
178
+ }
172
179
  var ListboxSelect = forwardRef(function ListboxSelect2({
173
180
  id,
174
181
  chosen,
@@ -334,16 +341,25 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
334
341
  const inHost = container !== document.body;
335
342
  const host = inHost ? container.getBoundingClientRect() : viewportBounds();
336
343
  const rect = at.getBoundingClientRect();
337
- const matches = width === "full";
338
- const room = Math.max(0, host.width - 2 * LAYER_GAP);
339
- const floor = matches ? void 0 : Math.min(rect.width, room);
340
- box.style.maxWidth = `${room}px`;
341
- box.style.width = matches ? `${Math.min(rect.width, room)}px` : "";
342
- box.style.minWidth = floor === void 0 ? "" : `${floor}px`;
344
+ const bounds = visibleBounds(host, inHost);
345
+ const anchorY = rect.top - (inHost ? host.y : 0);
346
+ const sizes = {
347
+ anchor: rect.width,
348
+ // NEVER WIDER THAN THE ROOM IT IS PLACED IN: sized to its longest
349
+ // option, a panel wider than a phone hung past the edge however it was
350
+ // slid.
351
+ room: bounds.width,
352
+ tall: Math.max(
353
+ bounds.y + bounds.height - (anchorY + rect.height + LAYER_GAP),
354
+ anchorY - LAYER_GAP - bounds.y,
355
+ 0
356
+ )
357
+ };
358
+ for (const [name2, value] of Object.entries(placeVars(sizes))) box.style.setProperty(name2, value);
343
359
  const own = box.getBoundingClientRect();
344
360
  const local = {
345
361
  x: (align === "right" ? rect.right - own.width : rect.left) - (inHost ? host.x : 0),
346
- y: rect.top - (inHost ? host.y : 0),
362
+ y: anchorY,
347
363
  width: rect.width,
348
364
  height: rect.height
349
365
  };
@@ -351,16 +367,11 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
351
367
  close(panel.current?.contains(document.activeElement) ?? false);
352
368
  return;
353
369
  }
354
- const spot = placePopup(
355
- local,
356
- { width: own.width, height: own.height },
357
- { x: LAYER_GAP, y: LAYER_GAP, width: host.width - 2 * LAYER_GAP, height: host.height - 2 * LAYER_GAP }
358
- );
359
- const applied = matches ? Math.min(rect.width, room) : void 0;
370
+ const spot = placePopup(local, { width: own.width, height: own.height }, bounds);
360
371
  setPlace(
361
- (was) => was && was.left === spot.left && was.top === spot.top && was.width === applied && was.minWidth === floor && was.maxWidth === room ? was : { left: spot.left, top: spot.top, width: applied, minWidth: floor, maxWidth: room }
372
+ (was) => was && was.left === spot.left && was.top === spot.top && was.anchor === sizes.anchor && was.room === sizes.room && was.tall === sizes.tall ? was : { left: spot.left, top: spot.top, ...sizes }
362
373
  );
363
- }, [align, close, container, width]);
374
+ }, [align, close, container]);
364
375
  useLayoutEffect(() => {
365
376
  if (!open) {
366
377
  setPlace(null);
@@ -498,10 +509,13 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
498
509
  // lines tall, so the one-line cap scrolled a list of four described
499
510
  // answers and cut the first or the last of them.
500
511
  described && "crewlet-select__menu--described",
512
+ // A field's list matches its field; a picker's sizes to its options.
513
+ // The width policy follows the mode (Select.css, "The panel").
514
+ width === "full" && "crewlet-select__menu--matches",
501
515
  container !== null && container !== document.body ? "crewlet-select__menu--in-host" : "crewlet-select__menu--fixed",
502
516
  menuClassName
503
517
  ),
504
- style: place ? { left: place.left, top: place.top, width: place.width, minWidth: place.minWidth, maxWidth: place.maxWidth } : (
518
+ style: place ? { left: place.left, top: place.top, ...placeVars(place) } : (
505
519
  // Laid out but not painted, so its own height can be measured
506
520
  // before it is placed and no reader sees it in a corner first.
507
521
  { visibility: "hidden" }
@@ -1,5 +1,5 @@
1
1
  import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
2
- import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-2TZNTPF5.js';
2
+ import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-NDWXVEY6.js';
3
3
  import { LayerNodeBridge } from './chunk-X4HBZSXA.js';
4
4
  import { Checkbox } from './chunk-KFTVPWG2.js';
5
5
  import { EmptyState } from './chunk-PPUR46MK.js';
@@ -1,4 +1,4 @@
1
- import { Link } from './chunk-RMGPZQVJ.js';
1
+ import { Link } from './chunk-UTKI2SAM.js';
2
2
  import { Tag } from './chunk-SJ3EUCFD.js';
3
3
  import { RelativeTime } from './chunk-GBKBME7Q.js';
4
4
  import { EmptyValue } from './chunk-WGLOH33S.js';
@@ -7,7 +7,7 @@ import { presenceLabels } from './chunk-Z7JYG5TF.js';
7
7
  import { Tag } from './chunk-SJ3EUCFD.js';
8
8
  import { Popover } from './chunk-KDRJZWE3.js';
9
9
  import { StatusDot } from './chunk-QRE6JCHS.js';
10
- import { Menu } from './chunk-EGHOU7U2.js';
10
+ import { Menu } from './chunk-WGAEHKGW.js';
11
11
  import { Avatar } from './chunk-XZY6S3UC.js';
12
12
  import { Button } from './chunk-M2M6ZD7P.js';
13
13
  import { IconButton } from './chunk-X5YI6E5X.js';
@@ -1,11 +1,11 @@
1
- import { Select } from './chunk-6ZFQ6TAM.js';
1
+ import { Select } from './chunk-OU22GKZK.js';
2
2
  import { Combobox } from './chunk-WUJ54OTI.js';
3
3
  import { FormField, Textarea, InputAffix } from './chunk-NN44J7BP.js';
4
4
  import './Input-YVCNNTYT.css';
5
5
  import './VisuallyHidden-OUYVMKEH.css';
6
6
  import './HitArea-QUOS6ZDJ.css';
7
7
  import './Combobox-F5VEJIAO.css';
8
- import './Select-AF5YMSC6.css';
8
+ import './Select-2FAOIL73.css';
9
9
  import './ValueField-EIBD6RYS.css';
10
10
  import { useId, useRef, useState } from 'react';
11
11
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { cx } from './chunk-ODEQTPFM.js';
2
- import './SearchTrigger-MME7NIHX.css';
2
+ import './SearchTrigger-3HO7D6NP.css';
3
3
  import { forwardRef } from 'react';
4
4
  import { SearchGlyph } from '@crewlethq/icons/glyphs';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './Link-Y7RHTR6F.css';
3
+ import './Link-7AADYG2F.css';
4
4
  import { forwardRef, Children, isValidElement, cloneElement } from 'react';
5
5
  import { ExternalLinkGlyph } from '@crewlethq/icons/glyphs';
6
6
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { Link } from './chunk-RMGPZQVJ.js';
1
+ import { Link } from './chunk-UTKI2SAM.js';
2
2
  import { Text } from './chunk-475DOAWF.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ObjectHeader-3YYG2BAF.css';
@@ -1,6 +1,6 @@
1
1
  import { pathBreaks } from './chunk-HZXS5CEL.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './InlineCode-BEYQFJQT.css';
3
+ import './InlineCode-3KJCBT5I.css';
4
4
  import { Children } from 'react';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
 
@@ -248,10 +248,7 @@ function Menu({
248
248
  className: cx(
249
249
  activeDescendant && order.get(entry.key) === active && "is-active",
250
250
  "crewlet-menu__item",
251
- // A row with a second line is taller than a row of verbs, and says
252
- // so: the row height alone would hold both lines in the space meant
253
- // for one, and giving every row the taller padding turns six verbs
254
- // into a scroller.
251
+ // Only a row with a second line gets the taller padding.
255
252
  described(entry) ? "crewlet-menu__item--described" : void 0,
256
253
  entry.danger && "is-danger",
257
254
  entry.disabled && "is-disabled"
@@ -271,9 +268,8 @@ function Menu({
271
268
  entry.key
272
269
  );
273
270
  const list = open ? (
274
- // THE PANEL IS NO CONTROL. Its keys are the menu's, bubbled up from the
275
- // list or an item, and its presses are stopped so one on the header is
276
- // not a press outside that closes the menu.
271
+ // Not a control: its keys bubble from the list, and its presses stop
272
+ // here so one on the header is not a press outside that closes the menu.
277
273
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
278
274
  /* @__PURE__ */ jsxs(
279
275
  "div",
@@ -301,11 +297,8 @@ function Menu({
301
297
  onClick: (event) => event.stopPropagation(),
302
298
  children: [
303
299
  header ? (
304
- // OUTSIDE THE MENU, beside it in the panel. A menu may own only items,
305
- // groups of them and separators, and a presentational wrapper removes
306
- // its own role, not its contents': a header holding a description
307
- // list or a tag was a menu owning a list. It is still the menu's
308
- // description, so what it says is heard when the menu opens.
300
+ // Outside the menu element, which may own only items, groups and
301
+ // separators; it still describes the menu (`aria-describedby`).
309
302
  /* @__PURE__ */ jsx("div", { id: headerId, className: "crewlet-menu__header", children: header })
310
303
  ) : null,
311
304
  /* @__PURE__ */ jsx(
@@ -1,9 +1,9 @@
1
- import { Select } from './chunk-6ZFQ6TAM.js';
1
+ import { Select } from './chunk-OU22GKZK.js';
2
2
  import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
3
- import { HueSwatch } from './chunk-PFTUWDZN.js';
3
+ import { HueSwatch } from './chunk-FIH5EMJF.js';
4
4
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
5
  import { Checkbox } from './chunk-KFTVPWG2.js';
6
- import { Menu } from './chunk-EGHOU7U2.js';
6
+ import { Menu } from './chunk-WGAEHKGW.js';
7
7
  import { FormField, Input } from './chunk-NN44J7BP.js';
8
8
  import { Kbd } from './chunk-VBBLHS2Y.js';
9
9
  import { Button } from './chunk-M2M6ZD7P.js';
@@ -1,5 +1,5 @@
1
1
  import { SidebarNav, NavItem } from './chunk-SM2MM4DQ.js';
2
- import { Select } from './chunk-6ZFQ6TAM.js';
2
+ import { Select } from './chunk-OU22GKZK.js';
3
3
  import { Card } from './chunk-RABEMWTA.js';
4
4
  import { Text } from './chunk-475DOAWF.js';
5
5
  import './RailList-N2ZBPRM2.css';
@@ -1,12 +1,12 @@
1
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
2
  import { FilterPill } from './chunk-E4QX4VET.js';
3
3
  import { DateTimePicker } from './chunk-AQZPZYSY.js';
4
- import { DataTable } from './chunk-Y7FPSBCN.js';
4
+ import { DataTable } from './chunk-YBOGOTYV.js';
5
5
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
6
6
  import { Toolbar } from './chunk-NPEI2QAN.js';
7
7
  import { Popover } from './chunk-KDRJZWE3.js';
8
8
  import { RelativeTime } from './chunk-GBKBME7Q.js';
9
- import { Menu } from './chunk-EGHOU7U2.js';
9
+ import { Menu } from './chunk-WGAEHKGW.js';
10
10
  import { Input } from './chunk-NN44J7BP.js';
11
11
  import { Kbd } from './chunk-VBBLHS2Y.js';
12
12
  import { Button } from './chunk-M2M6ZD7P.js';
@@ -619,11 +619,8 @@ function Canvas({
619
619
  controlsStart ? /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__controls crewlet-canvas__controls--start", "data-placement": controlsPlacement, children: /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__bar", children: controlsStart }) }) : null,
620
620
  hasEnd ? /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__controls crewlet-canvas__controls--end", "data-placement": controlsPlacement, children: /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__bar", ref: endBar, children: overlayEnd }) }) : null,
621
621
  (controls || touchActive || controlsBelow || hint) && /*
622
- * ONE GROUP IN ONE CORNER, as a column of bars: the zoom bar, then
623
- * whatever the caller stacks under it. The console chart's own
624
- * arrangement, and the reason it is a column rather than three things
625
- * the page places itself is that all of them act on the canvas, so
626
- * they belong beside the canvas and beside each other.
622
+ * One group in one corner: the zoom bar, then the caller's bars under
623
+ * it, all acting on the canvas.
627
624
  */
628
625
  /* @__PURE__ */ jsxs("div", { className: "crewlet-canvas__controls", "data-placement": controlsPlacement, children: [
629
626
  (controls || touchActive) && /* @__PURE__ */ jsxs("div", { className: "crewlet-canvas__bar", children: [
@@ -3,7 +3,7 @@ import { useClipboard } from './chunk-STJ7QBC3.js';
3
3
  import { EmptyValue } from './chunk-WGLOH33S.js';
4
4
  import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
5
5
  import { Checkbox } from './chunk-KFTVPWG2.js';
6
- import { Menu } from './chunk-EGHOU7U2.js';
6
+ import { Menu } from './chunk-WGAEHKGW.js';
7
7
  import { Button } from './chunk-M2M6ZD7P.js';
8
8
  import { IconButton } from './chunk-X5YI6E5X.js';
9
9
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,4 +1,4 @@
1
- import { InlineCode } from './chunk-XHNV272L.js';
1
+ import { InlineCode } from './chunk-W4UJWFCZ.js';
2
2
  import { FormField, Input } from './chunk-NN44J7BP.js';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { ConfirmModal } from './chunk-VSD3536L.js';
2
- import { InlineCode } from './chunk-XHNV272L.js';
2
+ import { InlineCode } from './chunk-W4UJWFCZ.js';
3
3
  import { Callout } from './chunk-RCQLXOGS.js';
4
4
  import './LinkInterstitial-ET4MSVSV.css';
5
5
  import { jsx, jsxs } from 'react/jsx-runtime';