@crewlethq/ui 0.105.0 → 0.106.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 (57) hide show
  1. package/dist/AgentHandoffPanel/index.js +5 -4
  2. package/dist/AppShell/index.js +3 -2
  3. package/dist/ArtifactPanel/index.js +4 -3
  4. package/dist/ChatDay/index.js +2 -2
  5. package/dist/{ChatDay-Z67WTCTN.css → ChatDay-523C65KY.css} +7 -4
  6. package/dist/ChatDivider/ChatDivider.d.ts +8 -2
  7. package/dist/ChatDivider/index.js +1 -1
  8. package/dist/{ChatDivider-7ZNDL2PZ.css → ChatDivider-7SPCQXUQ.css} +27 -2
  9. package/dist/ChatThread/index.js +1 -1
  10. package/dist/{ChatThread-XANOIJXN.css → ChatThread-MKAN2Q4H.css} +4 -0
  11. package/dist/DataView/index.js +1 -1
  12. package/dist/DockColumn/DockColumn.d.ts +31 -1
  13. package/dist/DockColumn/index.d.ts +3 -1
  14. package/dist/DockColumn/index.js +3 -1
  15. package/dist/{DockColumn-SMJCXHS4.css → DockColumn-OVAA5PLL.css} +38 -8
  16. package/dist/EmojiPicker/EmojiPicker.d.ts +7 -1
  17. package/dist/EmojiPicker/index.js +1 -1
  18. package/dist/{EmojiPicker-FMWYN2WX.css → EmojiPicker-W722WJ5M.css} +43 -1
  19. package/dist/MessageActions/index.js +2 -2
  20. package/dist/PeekRail/index.js +3 -2
  21. package/dist/RailList/index.js +3 -3
  22. package/dist/ReactionBar/index.js +2 -2
  23. package/dist/{ResizeHandle-2UNSZ4ZQ.css → ResizeHandle-W6GA5OO6.css} +9 -0
  24. package/dist/SectionFrame/index.js +2 -2
  25. package/dist/ShareDialog/index.js +1 -1
  26. package/dist/SidePanel/index.js +4 -3
  27. package/dist/SidebarNav/SidebarNav.d.ts +17 -8
  28. package/dist/SidebarNav/index.js +1 -1
  29. package/dist/{SidebarNav-IKBKGXW4.css → SidebarNav-VXDUW6W5.css} +141 -27
  30. package/dist/ThreadSummary/ThreadSummary.d.ts +10 -7
  31. package/dist/ThreadSummary/index.js +1 -1
  32. package/dist/ThreadSummary-CFAHYY57.css +114 -0
  33. package/dist/{chunk-JUKHV7UH.js → chunk-2OK6PQ7W.js} +1 -1
  34. package/dist/{chunk-6YQRCPJ3.js → chunk-4GBEQZQ4.js} +22 -8
  35. package/dist/{chunk-ZNXTN76G.js → chunk-5HHDVJBY.js} +1 -1
  36. package/dist/{chunk-5AHNW5CP.js → chunk-5N3G7TK6.js} +1 -1
  37. package/dist/{chunk-INREAF4Z.js → chunk-7DMD3U7S.js} +1 -1
  38. package/dist/{chunk-5KAADF4G.js → chunk-EIHPORS4.js} +2 -1
  39. package/dist/chunk-EKWLQFL2.js +92 -0
  40. package/dist/{chunk-PIYJNCN7.js → chunk-FQ6J4DK7.js} +2 -10
  41. package/dist/{chunk-XQQN2NZB.js → chunk-FTSPBN7P.js} +2 -4
  42. package/dist/{chunk-2POUISAE.js → chunk-GKP2DWNQ.js} +1 -1
  43. package/dist/{chunk-I5W6I2HN.js → chunk-I7S7JJMM.js} +1 -1
  44. package/dist/{chunk-GAWG5TU7.js → chunk-KBUV24VV.js} +6 -4
  45. package/dist/chunk-MBEZOURR.js +13 -0
  46. package/dist/{chunk-T5P3K2TM.js → chunk-PFNTWGQB.js} +3 -2
  47. package/dist/{chunk-3CT7JOVJ.js → chunk-QQPF5SBJ.js} +3 -3
  48. package/dist/{chunk-4EZOLSUO.js → chunk-SKMTVBJT.js} +3 -2
  49. package/dist/{chunk-2ES6LAV2.js → chunk-U4YG5KBN.js} +2 -2
  50. package/dist/{chunk-KRAZYXAA.js → chunk-VWZECTOJ.js} +1 -1
  51. package/dist/{chunk-TRPYEDZM.js → chunk-YBO5PGUG.js} +39 -4
  52. package/dist/generated/index.js +53 -52
  53. package/dist/index.js +53 -52
  54. package/dist/styles.css +324 -73
  55. package/package.json +3 -3
  56. package/dist/ThreadSummary-AGR4NDMD.css +0 -90
  57. package/dist/chunk-5JPOFAVN.js +0 -58
@@ -1,90 +0,0 @@
1
- /*
2
- * The line under a message that has replies, and the working line under it.
3
- */
4
-
5
- .crewlet-thread-summary-wrap {
6
- display: flex;
7
- flex-direction: column;
8
- align-items: flex-start;
9
- gap: var(--spacing-1);
10
- max-width: 100%;
11
- }
12
-
13
- /* No piece is wider than the column: a long working line truncates. */
14
- .crewlet-thread-summary-wrap > * {
15
- max-width: 100%;
16
- }
17
-
18
- /* The faces sit on the content edge: the line's 1px edge and its inset are
19
- taken back by the same amount outside it. */
20
- .crewlet-thread-summary {
21
- --crewlet-thread-summary-inset: var(--spacing-1);
22
- display: inline-flex;
23
- align-items: center;
24
- gap: var(--spacing-2);
25
- max-width: 100%;
26
- height: var(--size-control-md);
27
- box-sizing: border-box;
28
- margin-inline-start: calc((var(--crewlet-thread-summary-inset) + 1px) * -1);
29
- padding: 0 var(--crewlet-thread-summary-inset);
30
- border: 1px solid transparent;
31
- border-radius: var(--radius-sm);
32
- background: transparent;
33
- color: var(--color-text-secondary);
34
- font: inherit;
35
- font-size: var(--font-size-compact);
36
- line-height: 1;
37
- text-align: start;
38
- cursor: pointer;
39
- }
40
-
41
- /* Lifted onto the transcript's own ground inside a hairline, under the
42
- pointer or the keyboard, and while the thread is open. */
43
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) {
44
- border-color: var(--color-edge-hairline);
45
- background: var(--crewlet-chat-ground);
46
- }
47
-
48
- .crewlet-thread-summary:focus-visible {
49
- outline: 2px solid var(--color-focus);
50
- outline-offset: var(--size-focus-ring-inset-offset);
51
- }
52
-
53
- .crewlet-thread-summary__count {
54
- color: var(--color-brand-accent-ink);
55
- font-weight: var(--font-weight-medium);
56
- white-space: nowrap;
57
- }
58
-
59
- /* "Last reply 1h ago" and "View thread" share one cell, so the line keeps
60
- its width when one gives way to the other under the pointer. */
61
- .crewlet-thread-summary__tail {
62
- display: inline-grid;
63
- min-width: 0;
64
- padding-inline-end: var(--spacing-1);
65
- white-space: nowrap;
66
- }
67
-
68
- .crewlet-thread-summary__last,
69
- .crewlet-thread-summary__view {
70
- grid-area: 1 / 1;
71
- }
72
-
73
- .crewlet-thread-summary__last {
74
- color: var(--color-text-tertiary);
75
- }
76
-
77
- .crewlet-thread-summary__view {
78
- justify-self: end;
79
- visibility: hidden;
80
- color: var(--color-text-secondary);
81
- font-weight: var(--font-weight-regular);
82
- }
83
-
84
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) .crewlet-thread-summary__last {
85
- visibility: hidden;
86
- }
87
-
88
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) .crewlet-thread-summary__view {
89
- visibility: visible;
90
- }
@@ -1,58 +0,0 @@
1
- import { usePresence, releaseFocus } from './chunk-PCAT2EFB.js';
2
- import { cx } from './chunk-ODEQTPFM.js';
3
- import './DockColumn-SMJCXHS4.css';
4
- import { useRef, useCallback, useLayoutEffect } from 'react';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- var DOCK_MOTION = { transitions: ["width"] };
8
- function DockColumn({
9
- open,
10
- width,
11
- side = "start",
12
- divider = true,
13
- focusOnClose,
14
- className,
15
- style,
16
- children,
17
- ...rest
18
- }) {
19
- const column = useRef(null);
20
- const { present, leaving } = usePresence(open, column, DOCK_MOTION);
21
- const closed = useRef(!open);
22
- closed.current = !open;
23
- const isClosed = useCallback(() => closed.current, []);
24
- return /* @__PURE__ */ jsx(
25
- "div",
26
- {
27
- ...rest,
28
- ref: column,
29
- className: cx("crewlet-dock-column", divider && "crewlet-dock-column--divider", className),
30
- "data-side": side,
31
- "data-open": open ? "" : void 0,
32
- style: { ...style, "--crewlet-dock-column-width": typeof width === "number" ? `${width}px` : width },
33
- children: present ? /* @__PURE__ */ jsx(DockPanel, { leaving, isClosed, focusOnClose, children }) : null
34
- }
35
- );
36
- }
37
- function DockPanel({
38
- leaving,
39
- isClosed,
40
- focusOnClose,
41
- children
42
- }) {
43
- const panel = useRef(null);
44
- const target = useRef(focusOnClose);
45
- target.current = focusOnClose;
46
- useLayoutEffect(() => {
47
- if (leaving) releaseFocus(panel.current, target.current?.());
48
- }, [leaving]);
49
- useLayoutEffect(() => {
50
- const element = panel.current;
51
- return () => {
52
- if (isClosed()) releaseFocus(element, target.current?.());
53
- };
54
- }, [isClosed]);
55
- return /* @__PURE__ */ jsx("div", { ref: panel, className: "crewlet-dock-column__panel", inert: leaving || void 0, children });
56
- }
57
-
58
- export { DockColumn };