@crewlethq/ui 0.106.0 → 0.108.0

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 (86) hide show
  1. package/dist/AgentHandoffPanel/index.js +5 -5
  2. package/dist/ArrangeList/index.js +3 -3
  3. package/dist/ArtifactCard/index.js +3 -3
  4. package/dist/ArtifactPanel/index.js +2 -2
  5. package/dist/ChatMessage/index.js +2 -1
  6. package/dist/{ChatMessage-FH7VRVCH.css → ChatMessage-XDVAWA3M.css} +55 -50
  7. package/dist/ChatThread/index.js +2 -1
  8. package/dist/ChatThread/tabbing.d.ts +6 -0
  9. package/dist/CheckGrid/index.js +3 -3
  10. package/dist/Checkbox/index.js +2 -2
  11. package/dist/ColorField/index.js +2 -2
  12. package/dist/Combobox/index.js +2 -2
  13. package/dist/CommandPalette/index.js +2 -2
  14. package/dist/CommentThread/index.js +3 -3
  15. package/dist/Composer/index.js +2 -2
  16. package/dist/ConfirmField/index.js +2 -2
  17. package/dist/DataGrid/index.js +3 -3
  18. package/dist/DataTable/index.js +3 -3
  19. package/dist/DataView/index.js +5 -5
  20. package/dist/DocTabsEditor/index.js +2 -2
  21. package/dist/{Editor-UZUDGLIY.js → Editor-AZAWDQ23.js} +1 -1
  22. package/dist/EmojiPicker/index.js +2 -2
  23. package/dist/Input/index.js +1 -1
  24. package/dist/KeyValueRows/index.js +2 -2
  25. package/dist/ListInput/index.js +2 -2
  26. package/dist/MemberPicker/index.js +3 -3
  27. package/dist/MessageActions/index.js +3 -3
  28. package/dist/{MessageActions-Q4F5UH3S.css → MessageActions-UGMXBGKY.css} +22 -1
  29. package/dist/OrgTable/index.js +5 -5
  30. package/dist/PrincipalPicker/index.js +3 -3
  31. package/dist/ProposalCard/index.js +3 -3
  32. package/dist/ReactionBar/index.js +3 -3
  33. package/dist/{ReactionBar-XXI4V7XG.css → ReactionBar-JMX75TMV.css} +15 -15
  34. package/dist/RichEditor/index.js +1 -1
  35. package/dist/SheetColumnEditor/index.js +3 -3
  36. package/dist/SidePanel/SidePanel.d.ts +9 -1
  37. package/dist/SidePanel/SidePanelBase.d.ts +3 -1
  38. package/dist/SidePanel/index.js +2 -2
  39. package/dist/{SidePanel-BKWT6Q6Z.css → SidePanel-FVZVNSHI.css} +7 -0
  40. package/dist/Switcher/index.js +2 -2
  41. package/dist/TimeRangePicker/index.js +2 -2
  42. package/dist/TimeWindowPicker/index.js +2 -2
  43. package/dist/TreeGrid/index.js +4 -4
  44. package/dist/ValueField/index.js +3 -3
  45. package/dist/{chunk-DKFBBOVE.js → chunk-22DNDOBR.js} +68 -4
  46. package/dist/{chunk-EIHPORS4.js → chunk-5TUCQGQW.js} +14 -1
  47. package/dist/{chunk-OP6EE23N.js → chunk-6KHWTMCO.js} +1 -1
  48. package/dist/{chunk-4S2GS7EL.js → chunk-7AKCC2QA.js} +1 -1
  49. package/dist/{chunk-I7S7JJMM.js → chunk-7LJMXORP.js} +2 -2
  50. package/dist/{chunk-RW6HXWJD.js → chunk-AGP5U4VT.js} +1 -1
  51. package/dist/{chunk-EGJL5OGF.js → chunk-ARGOJVRC.js} +2 -2
  52. package/dist/{chunk-W37NWQ4G.js → chunk-BWFFDNVD.js} +1 -1
  53. package/dist/{chunk-2OK6PQ7W.js → chunk-D35CWLIW.js} +2 -2
  54. package/dist/{chunk-XGX3UMHU.js → chunk-EDAMPE6A.js} +1 -1
  55. package/dist/{chunk-L5FI327J.js → chunk-EYWN33K5.js} +1 -1
  56. package/dist/{chunk-W6SECEEG.js → chunk-GNKTHRWP.js} +1 -1
  57. package/dist/{chunk-G33ND472.js → chunk-HSKIATS6.js} +1 -1
  58. package/dist/{chunk-6ZCW2TV7.js → chunk-I6IOXXF6.js} +1 -1
  59. package/dist/{chunk-FTSPBN7P.js → chunk-IODIP2SA.js} +137 -23
  60. package/dist/{chunk-WFZ7EPOQ.js → chunk-J7XQSROY.js} +2 -2
  61. package/dist/{chunk-WIVLOR42.js → chunk-JCG3QW5Z.js} +1 -1
  62. package/dist/{chunk-OC4FHCP4.js → chunk-KQKGMTWB.js} +2 -2
  63. package/dist/{chunk-PTX7BMBW.js → chunk-LDNJZ2XA.js} +1 -1
  64. package/dist/{chunk-LBODOY3E.js → chunk-LSOPZVR7.js} +0 -2
  65. package/dist/{chunk-MAWE3NCV.js → chunk-MUR33XFM.js} +1 -1
  66. package/dist/{chunk-AR4K6L4X.js → chunk-NM3WGXPJ.js} +1 -1
  67. package/dist/{chunk-SUIUMAIY.js → chunk-OSJD2WSV.js} +1 -1
  68. package/dist/{chunk-VOT7YIFH.js → chunk-R23HSPSU.js} +1 -1
  69. package/dist/{chunk-ZQVQV5OB.js → chunk-RKLPQGJ7.js} +1 -1
  70. package/dist/{chunk-JHVNR4PF.js → chunk-SY47JXUV.js} +1 -1
  71. package/dist/{chunk-H7LRSZ3A.js → chunk-TB7BFIIB.js} +1 -1
  72. package/dist/{chunk-U4YG5KBN.js → chunk-TCC46LXY.js} +2 -2
  73. package/dist/{chunk-QGOEKPV5.js → chunk-UYKWJNXO.js} +2 -2
  74. package/dist/{chunk-4GBEQZQ4.js → chunk-V6EG4FGM.js} +1 -1
  75. package/dist/{chunk-6HMPYTZB.js → chunk-WBYSTD7Q.js} +1 -1
  76. package/dist/{chunk-FK6CH46C.js → chunk-WZDL6DIC.js} +1 -1
  77. package/dist/{chunk-IDBIU5IK.js → chunk-X5DOWML3.js} +1 -1
  78. package/dist/{chunk-GKP2DWNQ.js → chunk-XWCL2BAT.js} +2 -2
  79. package/dist/{chunk-Z4ZVDAJA.js → chunk-YHQBSKGZ.js} +1 -1
  80. package/dist/{chunk-4ORJDTMS.js → chunk-YNAFW4QI.js} +1 -1
  81. package/dist/chunk-ZAEJ5ZB3.js +2 -0
  82. package/dist/{chunk-5N3G7TK6.js → chunk-ZBV6BNG7.js} +1 -1
  83. package/dist/generated/index.js +56 -55
  84. package/dist/index.js +56 -55
  85. package/dist/styles.css +103 -70
  86. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
- export { AddReaction, REACTION_BAR_LABELS, ReactionBar, reactionWho } from '../chunk-I7S7JJMM.js';
2
- import '../chunk-4GBEQZQ4.js';
1
+ export { AddReaction, REACTION_BAR_LABELS, ReactionBar, reactionWho } from '../chunk-7LJMXORP.js';
2
+ import '../chunk-V6EG4FGM.js';
3
3
  import '../chunk-VYUEAMA4.js';
4
- import '../chunk-DKFBBOVE.js';
4
+ import '../chunk-22DNDOBR.js';
5
5
  import '../chunk-NICEDVZM.js';
6
6
  import '../chunk-JLKO7PSK.js';
7
7
  import '../chunk-TEXK4RK6.js';
@@ -1,6 +1,8 @@
1
1
  /*
2
- * A message's reactions: one pill to an emoji, then the add pill. A pill at
3
- * rest is a fill and no frame; the edge arrives under the pointer.
2
+ * A message's reactions: one pill to an emoji, then the add pill, a line of
3
+ * text tall on the words' column. A pill at rest is a fill and no frame; the
4
+ * edge arrives under the pointer. Every state steps at once, and a pill pressed
5
+ * gives a little under the pointer.
4
6
  */
5
7
 
6
8
  .crewlet-reaction-bar {
@@ -27,9 +29,10 @@
27
29
  font-size: var(--crewlet-chat-meta);
28
30
  line-height: 1;
29
31
  cursor: pointer;
30
- transition:
31
- border-color var(--motion-duration-fast) var(--motion-easing-default),
32
- background var(--motion-duration-fast) var(--motion-easing-default);
32
+ }
33
+
34
+ .crewlet-reaction:not([aria-disabled='true']):active {
35
+ transform: scale(0.94);
33
36
  }
34
37
 
35
38
  /* The emoji is the pill's picture and the count its caption: at the count's
@@ -40,7 +43,7 @@
40
43
 
41
44
  .crewlet-reaction__count {
42
45
  font-variant-numeric: tabular-nums;
43
- font-weight: var(--font-weight-regular);
46
+ font-weight: var(--font-weight-semibold);
44
47
  }
45
48
 
46
49
  /* The pointed pill drops its fill and takes the strong edge. */
@@ -61,10 +64,6 @@
61
64
  background: var(--color-brand-accent-soft-strong);
62
65
  }
63
66
 
64
- .crewlet-reaction.is-mine .crewlet-reaction__count {
65
- font-weight: var(--font-weight-medium);
66
- }
67
-
68
67
  .crewlet-reaction[aria-disabled='true'] {
69
68
  cursor: not-allowed;
70
69
  }
@@ -74,11 +73,12 @@
74
73
  outline-offset: var(--size-focus-ring-inset-offset);
75
74
  }
76
75
 
77
- /* The add pill: the glyph alone, in the quiet ink. */
76
+ /* The add pill: the glyph alone, in the words' ink, always there once a
77
+ message has a reaction, so adding one needs no hunt for the toolbar. */
78
78
  .crewlet-reaction.crewlet-reaction--add {
79
- min-width: 32px;
79
+ min-width: 34px;
80
80
  padding: 0;
81
- color: var(--color-text-tertiary);
81
+ color: var(--color-text-secondary);
82
82
  }
83
83
 
84
84
  .crewlet-reaction.crewlet-reaction--add[aria-expanded='true'] {
@@ -87,7 +87,7 @@
87
87
  }
88
88
 
89
89
  @media (prefers-reduced-motion: reduce) {
90
- .crewlet-reaction {
91
- transition: none;
90
+ .crewlet-reaction:not([aria-disabled='true']):active {
91
+ transform: none;
92
92
  }
93
93
  }
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-WIVLOR42.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-JCG3QW5Z.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,4 +1,4 @@
1
- export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-QGOEKPV5.js';
1
+ export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-UYKWJNXO.js';
2
2
  import '../chunk-JUZOMYOZ.js';
3
3
  import '../chunk-FFMCMSJB.js';
4
4
  import '../chunk-KW7T23RT.js';
@@ -6,13 +6,13 @@ import '../chunk-LFSIKGRQ.js';
6
6
  import '../chunk-Z7JYG5TF.js';
7
7
  import '../chunk-IQELH56T.js';
8
8
  import '../chunk-AYKXMIOR.js';
9
- import '../chunk-AR4K6L4X.js';
9
+ import '../chunk-NM3WGXPJ.js';
10
10
  import '../chunk-VJ4OGNS7.js';
11
11
  import '../chunk-Y7KBBP2M.js';
12
12
  import '../chunk-EGMQURBR.js';
13
13
  import '../chunk-QRE6JCHS.js';
14
14
  import '../chunk-B7WZADFX.js';
15
- import '../chunk-DKFBBOVE.js';
15
+ import '../chunk-22DNDOBR.js';
16
16
  import '../chunk-NICEDVZM.js';
17
17
  import '../chunk-JLKO7PSK.js';
18
18
  import '../chunk-TEXK4RK6.js';
@@ -47,6 +47,14 @@ export interface SidePanelProps {
47
47
  * does). `--crewlet-side-panel-inset` reads 0 inside the body.
48
48
  */
49
49
  flush?: boolean | undefined;
50
+ /**
51
+ * The body takes its content's height rather than the panel's free height,
52
+ * so the foot follows the content: a short thread keeps its reply box under
53
+ * its last reply instead of at the panel's bottom under an empty band. Once
54
+ * the content is taller than the panel the body shrinks to the room left and
55
+ * scrolls (or, flush, its content does), and the foot stays in reach.
56
+ */
57
+ flow?: boolean | undefined;
50
58
  /**
51
59
  * The width, in px, in a `SidePanelFrame`. In the shell's aside the shell's
52
60
  * track sizes the panel (`AppShell` `asideWidth`), and this is ignored.
@@ -100,7 +108,7 @@ export interface SidePanelProps {
100
108
  * region, sizes the track and draws the grip in the seam, from the same
101
109
  * width the host keeps for both.
102
110
  */
103
- export declare function SidePanel({ title, subtitle, icon, hideTitle, onClose, actions, footer, flush, width, minWidth, maxWidth, defaultWidth, onWidthChange, onWidthCommit, resizable, initialFocus, labels, className, children, }: SidePanelProps): import("react").JSX.Element;
111
+ export declare function SidePanel({ title, subtitle, icon, hideTitle, onClose, actions, footer, flush, flow, width, minWidth, maxWidth, defaultWidth, onWidthChange, onWidthCommit, resizable, initialFocus, labels, className, children, }: SidePanelProps): import("react").JSX.Element;
104
112
  export interface SidePanelFrameProps {
105
113
  /** The open panel, if any: a `SidePanel`. */
106
114
  panel?: ReactNode;
@@ -38,6 +38,8 @@ export interface SidePanelBaseProps {
38
38
  footer?: ReactNode;
39
39
  /** Whether the body drops its inset and its scrolling, for content that owns both. */
40
40
  flush?: boolean | undefined;
41
+ /** Whether the body takes its content's height, so the foot follows it. */
42
+ flow?: boolean | undefined;
41
43
  initialFocus?: SidePanelInitialFocus | undefined;
42
44
  /** Whether the heading draws the focus ring when it holds focus. */
43
45
  ringHeading?: boolean | undefined;
@@ -58,4 +60,4 @@ export interface SidePanelBaseProps {
58
60
  className?: string | undefined;
59
61
  children: ReactNode;
60
62
  }
61
- export declare function SidePanelBase({ alias, title, subtitle, icon, onClose, closeLabel, actions, footer, flush, initialFocus, ringHeading, hideTitle, expanded, onExpandedChange, expandLabel, collapseLabel, width, minWidth, maxWidth, defaultWidth, onWidthChange, onWidthCommit, resizable, resizeLabel, className, children, }: SidePanelBaseProps): import("react").JSX.Element;
63
+ export declare function SidePanelBase({ alias, title, subtitle, icon, onClose, closeLabel, actions, footer, flush, flow, initialFocus, ringHeading, hideTitle, expanded, onExpandedChange, expandLabel, collapseLabel, width, minWidth, maxWidth, defaultWidth, onWidthChange, onWidthCommit, resizable, resizeLabel, className, children, }: SidePanelBaseProps): import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
- import '../chunk-5N3G7TK6.js';
2
- export { SIDE_PANEL_LABELS, SIDE_PANEL_MAX_WIDTH, SIDE_PANEL_MIN_WIDTH, SIDE_PANEL_WIDTH, SidePanel, SidePanelFrame } from '../chunk-EIHPORS4.js';
1
+ import '../chunk-ZBV6BNG7.js';
2
+ export { SIDE_PANEL_LABELS, SIDE_PANEL_MAX_WIDTH, SIDE_PANEL_MIN_WIDTH, SIDE_PANEL_WIDTH, SidePanel, SidePanelFrame } from '../chunk-5TUCQGQW.js';
3
3
  import '../chunk-MBEZOURR.js';
4
4
  import '../chunk-FQ6J4DK7.js';
5
5
  import '../chunk-2YTOOH3A.js';
@@ -208,6 +208,13 @@
208
208
  overflow: clip;
209
209
  }
210
210
 
211
+ /* FLOWING, the body takes its content's height, so the foot follows the
212
+ content in a short panel; past the panel's height it shrinks to the room
213
+ left, as any body does, and the foot stays in reach. */
214
+ .crewlet-side-panel__body--flow {
215
+ flex: 0 1 auto;
216
+ }
217
+
211
218
  /* THE FOOT holds the panel's own commit, outside the scrolling body, so it
212
219
  stays in reach at every scroll. Its inset is the body's. */
213
220
  .crewlet-side-panel__foot {
@@ -1,4 +1,4 @@
1
- export { Switcher } from '../chunk-L5FI327J.js';
1
+ export { Switcher } from '../chunk-EYWN33K5.js';
2
2
  import '../chunk-GELMY4I7.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-HBDA76EZ.js';
@@ -7,7 +7,7 @@ import '../chunk-MHNISUNZ.js';
7
7
  import '../chunk-XLMURU75.js';
8
8
  import '../chunk-WSIJDWUG.js';
9
9
  import '../chunk-YJQXESOJ.js';
10
- import '../chunk-DKFBBOVE.js';
10
+ import '../chunk-22DNDOBR.js';
11
11
  import '../chunk-NICEDVZM.js';
12
12
  import '../chunk-JLKO7PSK.js';
13
13
  import '../chunk-TEXK4RK6.js';
@@ -1,4 +1,4 @@
1
- export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-VOT7YIFH.js';
1
+ export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-R23HSPSU.js';
2
2
  import '../chunk-GELMY4I7.js';
3
3
  import '../chunk-BPCY7ZID.js';
4
4
  import '../chunk-XOVSHJTZ.js';
@@ -7,7 +7,7 @@ import '../chunk-Y7KBBP2M.js';
7
7
  import '../chunk-EGMQURBR.js';
8
8
  import '../chunk-QRE6JCHS.js';
9
9
  import '../chunk-B7WZADFX.js';
10
- import '../chunk-DKFBBOVE.js';
10
+ import '../chunk-22DNDOBR.js';
11
11
  import '../chunk-NICEDVZM.js';
12
12
  import '../chunk-JLKO7PSK.js';
13
13
  import '../chunk-TEXK4RK6.js';
@@ -1,9 +1,9 @@
1
- export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-Z4ZVDAJA.js';
1
+ export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-YHQBSKGZ.js';
2
2
  import '../chunk-JUZOMYOZ.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-EE3DJMSQ.js';
5
5
  import '../chunk-VYUEAMA4.js';
6
- import '../chunk-DKFBBOVE.js';
6
+ import '../chunk-22DNDOBR.js';
7
7
  import '../chunk-NICEDVZM.js';
8
8
  import '../chunk-JLKO7PSK.js';
9
9
  import '../chunk-TEXK4RK6.js';
@@ -1,14 +1,14 @@
1
- export { TreeGrid } from '../chunk-OC4FHCP4.js';
1
+ export { TreeGrid } from '../chunk-KQKGMTWB.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-G33ND472.js';
3
+ import '../chunk-HSKIATS6.js';
4
4
  import '../chunk-X4HBZSXA.js';
5
5
  import '../chunk-MHNISUNZ.js';
6
6
  import '../chunk-WSIJDWUG.js';
7
7
  import '../chunk-4S2AN5W4.js';
8
- import '../chunk-AR4K6L4X.js';
8
+ import '../chunk-NM3WGXPJ.js';
9
9
  import '../chunk-YJQXESOJ.js';
10
10
  import '../chunk-PPUR46MK.js';
11
- import '../chunk-DKFBBOVE.js';
11
+ import '../chunk-22DNDOBR.js';
12
12
  import '../chunk-NICEDVZM.js';
13
13
  import '../chunk-JLKO7PSK.js';
14
14
  import '../chunk-TEXK4RK6.js';
@@ -1,8 +1,8 @@
1
- export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-EGJL5OGF.js';
1
+ export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-ARGOJVRC.js';
2
2
  import '../chunk-JUZOMYOZ.js';
3
- import '../chunk-4ORJDTMS.js';
3
+ import '../chunk-YNAFW4QI.js';
4
4
  import '../chunk-KW7T23RT.js';
5
- import '../chunk-DKFBBOVE.js';
5
+ import '../chunk-22DNDOBR.js';
6
6
  import '../chunk-NICEDVZM.js';
7
7
  import '../chunk-JLKO7PSK.js';
8
8
  import '../chunk-TEXK4RK6.js';
@@ -95,6 +95,72 @@ var LINE_BREAKS = /[ \t]*(?:\r\n|[\r\n\v\f\u0085\u2028\u2029])+[ \t]*/g;
95
95
  function foldLineBreaks(text) {
96
96
  return text.replace(LINE_BREAKS, " ");
97
97
  }
98
+ var MIRRORED = [
99
+ "boxSizing",
100
+ "width",
101
+ "paddingTop",
102
+ "paddingRight",
103
+ "paddingBottom",
104
+ "paddingLeft",
105
+ "borderTopWidth",
106
+ "borderRightWidth",
107
+ "borderBottomWidth",
108
+ "borderLeftWidth",
109
+ "borderStyle",
110
+ "fontFamily",
111
+ "fontSize",
112
+ "fontStyle",
113
+ "fontVariant",
114
+ "fontWeight",
115
+ "letterSpacing",
116
+ "lineHeight",
117
+ "tabSize",
118
+ "textIndent",
119
+ "textTransform",
120
+ "whiteSpace",
121
+ "wordBreak",
122
+ "wordSpacing",
123
+ "overflowWrap"
124
+ ];
125
+ var mirrors = /* @__PURE__ */ new WeakMap();
126
+ function mirrorIn(doc) {
127
+ let mirror = mirrors.get(doc);
128
+ if (!mirror || !mirror.isConnected) {
129
+ mirror = doc.createElement("textarea");
130
+ mirror.setAttribute("aria-hidden", "true");
131
+ mirror.tabIndex = -1;
132
+ Object.assign(mirror.style, {
133
+ position: "fixed",
134
+ top: "0",
135
+ left: "0",
136
+ visibility: "hidden",
137
+ pointerEvents: "none",
138
+ overflow: "hidden",
139
+ height: "auto",
140
+ minHeight: "0",
141
+ maxHeight: "none",
142
+ zIndex: "-1"
143
+ });
144
+ doc.body.appendChild(mirror);
145
+ mirrors.set(doc, mirror);
146
+ }
147
+ return mirror;
148
+ }
149
+ function contentHeight(el) {
150
+ if (!el.isConnected) return null;
151
+ const style = getComputedStyle(el);
152
+ if (!style.width.endsWith("px")) return null;
153
+ const mirror = mirrorIn(el.ownerDocument);
154
+ for (const key of MIRRORED) mirror.style[key] = style[key];
155
+ mirror.rows = el.rows;
156
+ mirror.placeholder = el.placeholder;
157
+ mirror.value = el.value;
158
+ const content = mirror.scrollHeight;
159
+ mirror.value = "";
160
+ mirror.placeholder = "";
161
+ const border = style.boxSizing === "border-box" ? Number.parseFloat(style.borderTopWidth || "0") + Number.parseFloat(style.borderBottomWidth || "0") : 0;
162
+ return `${content + (Number.isFinite(border) ? border : 0)}px`;
163
+ }
98
164
  var Textarea = forwardRef(function Textarea2({
99
165
  error: errorProp,
100
166
  autoResize = false,
@@ -117,10 +183,8 @@ var Textarea = forwardRef(function Textarea2({
117
183
  const el = localRef.current;
118
184
  if (!el) return;
119
185
  const measure = () => {
120
- el.style.height = "auto";
121
- const style = getComputedStyle(el);
122
- const border = style.boxSizing === "border-box" ? Number.parseFloat(style.borderTopWidth || "0") + Number.parseFloat(style.borderBottomWidth || "0") : 0;
123
- el.style.height = `${el.scrollHeight + (Number.isFinite(border) ? border : 0)}px`;
186
+ const height = contentHeight(el);
187
+ if (height !== null && el.style.height !== height) el.style.height = height;
124
188
  };
125
189
  measure();
126
190
  el.addEventListener("input", measure);
@@ -22,6 +22,7 @@ function SidePanelBase({
22
22
  actions,
23
23
  footer,
24
24
  flush = false,
25
+ flow = false,
25
26
  initialFocus = "heading",
26
27
  ringHeading = false,
27
28
  hideTitle = false,
@@ -135,7 +136,17 @@ function SidePanelBase({
135
136
  /* @__PURE__ */ jsx(IconButton, { label: closeLabel, icon: /* @__PURE__ */ jsx(XGlyph, { size: "sm" }), size: "sm", variant: "ghost", onClick: onClose })
136
137
  ] })
137
138
  ] }),
138
- /* @__PURE__ */ jsx("div", { className: cx(part("body", alias), flush && "crewlet-side-panel__body--flush"), children: /* @__PURE__ */ jsx(HeadingLevelProvider, { level: 3, children }) }),
139
+ /* @__PURE__ */ jsx(
140
+ "div",
141
+ {
142
+ className: cx(
143
+ part("body", alias),
144
+ flush && "crewlet-side-panel__body--flush",
145
+ flow && "crewlet-side-panel__body--flow"
146
+ ),
147
+ children: /* @__PURE__ */ jsx(HeadingLevelProvider, { level: 3, children })
148
+ }
149
+ ),
139
150
  footer ? /* @__PURE__ */ jsx("div", { className: part("foot", alias), children: footer }) : null
140
151
  ]
141
152
  }
@@ -168,6 +179,7 @@ function SidePanel({
168
179
  actions,
169
180
  footer,
170
181
  flush,
182
+ flow,
171
183
  width,
172
184
  minWidth = SIDE_PANEL_MIN_WIDTH,
173
185
  maxWidth = SIDE_PANEL_MAX_WIDTH,
@@ -194,6 +206,7 @@ function SidePanel({
194
206
  actions,
195
207
  footer,
196
208
  flush,
209
+ flow,
197
210
  width: width ?? (resizable ? defaultWidth : void 0),
198
211
  minWidth,
199
212
  maxWidth,
@@ -1,4 +1,4 @@
1
- import { Checkbox } from './chunk-AR4K6L4X.js';
1
+ import { Checkbox } from './chunk-NM3WGXPJ.js';
2
2
  import { IconButton } from './chunk-PNYANWZ6.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './MemberPicker-ZD35VEK6.css';
@@ -1,4 +1,4 @@
1
- import { Combobox } from './chunk-4ORJDTMS.js';
1
+ import { Combobox } from './chunk-YNAFW4QI.js';
2
2
  import { PRINCIPAL_KINDS, PrincipalAvatar } from './chunk-HF5L56YQ.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './PrincipalPicker-P6UYHDJR.css';
@@ -1,9 +1,9 @@
1
- import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-4GBEQZQ4.js';
1
+ import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-V6EG4FGM.js';
2
2
  import { heldHint } from './chunk-TDFLCUBE.js';
3
3
  import { Tooltip } from './chunk-4SKN3BLH.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ChatScale-AP237LJQ.css';
6
- import './ReactionBar-XXI4V7XG.css';
6
+ import './ReactionBar-JMX75TMV.css';
7
7
  import { FaceSlightlySmilingPlusGlyph } from '@crewlethq/icons/glyphs';
8
8
  import { jsxs, jsx } from 'react/jsx-runtime';
9
9
 
@@ -2,7 +2,7 @@ import { Modal } from './chunk-GELMY4I7.js';
2
2
  import { useClipboard } from './chunk-STJ7QBC3.js';
3
3
  import { EmptyValue } from './chunk-WGLOH33S.js';
4
4
  import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
5
- import { Checkbox } from './chunk-AR4K6L4X.js';
5
+ import { Checkbox } from './chunk-NM3WGXPJ.js';
6
6
  import { Menu } from './chunk-B7WZADFX.js';
7
7
  import { Button } from './chunk-RTHWXAXT.js';
8
8
  import { IconButton } from './chunk-PNYANWZ6.js';
@@ -1,6 +1,6 @@
1
1
  import { Select } from './chunk-JUZOMYOZ.js';
2
- import { Combobox } from './chunk-4ORJDTMS.js';
3
- import { FormField, Textarea, InputAffix } from './chunk-DKFBBOVE.js';
2
+ import { Combobox } from './chunk-YNAFW4QI.js';
3
+ import { FormField, Textarea, InputAffix } from './chunk-22DNDOBR.js';
4
4
  import './Input-YVCNNTYT.css';
5
5
  import './VisuallyHidden-OUYVMKEH.css';
6
6
  import './HitArea-QUOS6ZDJ.css';
@@ -1,4 +1,4 @@
1
- import { Checkbox } from './chunk-AR4K6L4X.js';
1
+ import { Checkbox } from './chunk-NM3WGXPJ.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './CheckGrid-B3SRTHOJ.css';
4
4
  import { useId } from 'react';
@@ -1,8 +1,8 @@
1
1
  import { Timeline } from './chunk-XDUXAQIS.js';
2
2
  import { Section } from './chunk-WFCWPXJN.js';
3
- import { Composer } from './chunk-6HMPYTZB.js';
3
+ import { Composer } from './chunk-WBYSTD7Q.js';
4
4
  import { Disclosure } from './chunk-D5O64CVE.js';
5
- import { ArtifactPanel } from './chunk-U4YG5KBN.js';
5
+ import { ArtifactPanel } from './chunk-TCC46LXY.js';
6
6
  import { Button } from './chunk-RTHWXAXT.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './AgentHandoffPanel-AIU7YWWB.css';
@@ -4,7 +4,7 @@ import { RelativeTime } from './chunk-GBKBME7Q.js';
4
4
  import { Card } from './chunk-3C3TSWRR.js';
5
5
  import { AvatarStack } from './chunk-WUCRLA25.js';
6
6
  import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
7
- import { Checkbox } from './chunk-AR4K6L4X.js';
7
+ import { Checkbox } from './chunk-NM3WGXPJ.js';
8
8
  import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
9
9
  import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -5,7 +5,7 @@ import { Popover } from './chunk-VYUEAMA4.js';
5
5
  import { Skeleton } from './chunk-MHNISUNZ.js';
6
6
  import { Text } from './chunk-XLMURU75.js';
7
7
  import { useMediaMatch } from './chunk-YJQXESOJ.js';
8
- import { Input } from './chunk-DKFBBOVE.js';
8
+ import { Input } from './chunk-22DNDOBR.js';
9
9
  import { focusables, isComposing } from './chunk-EDPMHSLZ.js';
10
10
  import { returnFocus } from './chunk-4ITETIGZ.js';
11
11
  import { announce } from './chunk-WGMKERCR.js';
@@ -1,6 +1,6 @@
1
1
  import { Switch } from './chunk-6YYRFGXO.js';
2
2
  import { useReorder } from './chunk-4S2AN5W4.js';
3
- import { Checkbox } from './chunk-AR4K6L4X.js';
3
+ import { Checkbox } from './chunk-NM3WGXPJ.js';
4
4
  import { IconButton } from './chunk-PNYANWZ6.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,7 +1,7 @@
1
1
  import { Skeleton } from './chunk-MHNISUNZ.js';
2
2
  import { titleWhenCut, titleIfCut } from './chunk-WSIJDWUG.js';
3
3
  import { useReorder } from './chunk-4S2AN5W4.js';
4
- import { Checkbox } from './chunk-AR4K6L4X.js';
4
+ import { Checkbox } from './chunk-NM3WGXPJ.js';
5
5
  import { useMediaMatch } from './chunk-YJQXESOJ.js';
6
6
  import { EmptyState } from './chunk-PPUR46MK.js';
7
7
  import { Button } from './chunk-RTHWXAXT.js';
@@ -1,4 +1,4 @@
1
- import { TreeGrid } from './chunk-OC4FHCP4.js';
1
+ import { TreeGrid } from './chunk-KQKGMTWB.js';
2
2
  import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
3
3
  import { OrgLabel } from './chunk-DEVO45TG.js';
4
4
  import { AddPill } from './chunk-5W3EYO5Q.js';