@crewlethq/ui 0.104.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.
- package/dist/ActivityLine/index.js +1 -1
- package/dist/AgentHandoffPanel/index.js +6 -5
- package/dist/AppShell/index.js +3 -2
- package/dist/ArtifactCard/index.js +3 -3
- package/dist/ArtifactPanel/index.js +4 -3
- package/dist/ChatDay/index.js +2 -2
- package/dist/{ChatDay-CTX2VI6P.css → ChatDay-523C65KY.css} +8 -5
- package/dist/ChatDivider/ChatDivider.d.ts +8 -2
- package/dist/ChatDivider/index.js +1 -1
- package/dist/{ChatDivider-7ZNDL2PZ.css → ChatDivider-7SPCQXUQ.css} +27 -2
- package/dist/ChatMessage/index.js +1 -1
- package/dist/{ChatScale-L4SIHSKL.css → ChatScale-AP237LJQ.css} +10 -2
- package/dist/ChatThread/index.js +1 -1
- package/dist/{ChatThread-XANOIJXN.css → ChatThread-MKAN2Q4H.css} +4 -0
- package/dist/CommandPalette/index.js +2 -2
- package/dist/CommentThread/index.js +2 -2
- package/dist/Composer/index.js +1 -1
- package/dist/DataGrid/index.js +2 -2
- package/dist/DataTable/index.js +2 -2
- package/dist/DataView/index.js +3 -3
- package/dist/DeliveryReceipt/index.js +1 -1
- package/dist/DockColumn/DockColumn.d.ts +31 -1
- package/dist/DockColumn/index.d.ts +3 -1
- package/dist/DockColumn/index.js +3 -1
- package/dist/{DockColumn-SMJCXHS4.css → DockColumn-OVAA5PLL.css} +38 -8
- package/dist/EmojiPicker/EmojiPicker.d.ts +7 -1
- package/dist/EmojiPicker/index.js +1 -1
- package/dist/{EmojiPicker-FMWYN2WX.css → EmojiPicker-W722WJ5M.css} +43 -1
- package/dist/LinkCard/index.js +1 -1
- package/dist/LinkInterstitial/index.js +2 -2
- package/dist/MentionMenu/MentionMenu.d.ts +8 -1
- package/dist/MentionMenu/index.js +1 -1
- package/dist/{MentionMenu-4NAQ45S4.css → MentionMenu-77P7C4F7.css} +7 -0
- package/dist/MessageActions/index.js +2 -2
- package/dist/Modal/Modal.d.ts +6 -0
- package/dist/Modal/index.js +1 -1
- package/dist/{Modal-GKUOO7PZ.css → Modal-3KGLG5UU.css} +17 -0
- package/dist/OrgTable/index.js +4 -4
- package/dist/PeekRail/index.js +3 -2
- package/dist/RailList/index.js +2 -2
- package/dist/ReactionBar/index.js +2 -2
- package/dist/{ResizeHandle-2UNSZ4ZQ.css → ResizeHandle-W6GA5OO6.css} +9 -0
- package/dist/RichEditor/index.js +2 -2
- package/dist/RoomRow/index.js +1 -1
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SectionFrame/index.js +2 -2
- package/dist/ShareDialog/index.js +2 -2
- package/dist/SidePanel/index.js +4 -3
- package/dist/SidebarNav/SidebarNav.d.ts +17 -8
- package/dist/SidebarNav/index.js +1 -1
- package/dist/{SidebarNav-IKBKGXW4.css → SidebarNav-VXDUW6W5.css} +141 -27
- package/dist/Skeleton/index.js +1 -1
- package/dist/Switcher/index.js +3 -3
- package/dist/ThreadSummary/ThreadSummary.d.ts +10 -7
- package/dist/ThreadSummary/index.js +1 -1
- package/dist/ThreadSummary-CFAHYY57.css +114 -0
- package/dist/TimeRangePicker/index.js +2 -2
- package/dist/TreeGrid/index.js +3 -3
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/{chunk-UDJVDRFY.js → chunk-2OK6PQ7W.js} +2 -2
- package/dist/{chunk-TBJP22E4.js → chunk-3AD6HSUB.js} +1 -1
- package/dist/{chunk-IBMZNQ34.js → chunk-466HHUK4.js} +1 -1
- package/dist/{chunk-6YQRCPJ3.js → chunk-4GBEQZQ4.js} +22 -8
- package/dist/{chunk-K774LUN3.js → chunk-5HHDVJBY.js} +2 -2
- package/dist/{chunk-5AHNW5CP.js → chunk-5N3G7TK6.js} +1 -1
- package/dist/{chunk-H4MWPZRS.js → chunk-6HMPYTZB.js} +1 -1
- package/dist/{chunk-GIE7KH3D.js → chunk-6ZCW2TV7.js} +1 -1
- package/dist/{chunk-INREAF4Z.js → chunk-7DMD3U7S.js} +1 -1
- package/dist/{chunk-C47JZ6HR.js → chunk-ALL5B5YW.js} +1 -1
- package/dist/{chunk-OSPZN4OE.js → chunk-ASVV2T3A.js} +1 -1
- package/dist/{chunk-6QOW3WT2.js → chunk-DR7TJL55.js} +1 -1
- package/dist/{chunk-5KAADF4G.js → chunk-EIHPORS4.js} +2 -1
- package/dist/{chunk-ZHQZZ3IX.js → chunk-EJRA2SYP.js} +1 -1
- package/dist/chunk-EKWLQFL2.js +92 -0
- package/dist/{chunk-PIYJNCN7.js → chunk-FQ6J4DK7.js} +2 -10
- package/dist/{chunk-XQQN2NZB.js → chunk-FTSPBN7P.js} +2 -4
- package/dist/{chunk-FXXJL3G3.js → chunk-G33ND472.js} +1 -1
- package/dist/{chunk-LDFVJSKZ.js → chunk-GELMY4I7.js} +3 -1
- package/dist/{chunk-JZV4RD4L.js → chunk-GKP2DWNQ.js} +2 -2
- package/dist/{chunk-QQMVLDKT.js → chunk-H7LRSZ3A.js} +1 -1
- package/dist/{chunk-H5XYPVZ7.js → chunk-I7S7JJMM.js} +2 -2
- package/dist/{chunk-O2UTMKCD.js → chunk-IDBIU5IK.js} +1 -1
- package/dist/{chunk-7ZXUUDWL.js → chunk-KBUV24VV.js} +7 -5
- package/dist/{chunk-ASNOL5SF.js → chunk-L5FI327J.js} +2 -2
- package/dist/{chunk-NODLQBQ4.js → chunk-LBODOY3E.js} +1 -1
- package/dist/{chunk-SZMBO3QU.js → chunk-LQBSCXVY.js} +1 -1
- package/dist/{chunk-V3PIY2B2.js → chunk-M5L5APY2.js} +1 -1
- package/dist/chunk-MBEZOURR.js +13 -0
- package/dist/{chunk-NOG3W26H.js → chunk-MHNISUNZ.js} +1 -1
- package/dist/{chunk-62WELD77.js → chunk-OC4FHCP4.js} +1 -1
- package/dist/{chunk-T5P3K2TM.js → chunk-PFNTWGQB.js} +3 -2
- package/dist/{chunk-AGJBHLPE.js → chunk-QQPF5SBJ.js} +4 -4
- package/dist/{chunk-BINHWCBP.js → chunk-RW6HXWJD.js} +1 -1
- package/dist/{chunk-4EZOLSUO.js → chunk-SKMTVBJT.js} +3 -2
- package/dist/{chunk-2ES6LAV2.js → chunk-U4YG5KBN.js} +2 -2
- package/dist/{chunk-6NGLJRSJ.js → chunk-VOT7YIFH.js} +1 -1
- package/dist/{chunk-KRAZYXAA.js → chunk-VWZECTOJ.js} +1 -1
- package/dist/{chunk-SSYHV4QE.js → chunk-VZ7DNXCW.js} +15 -3
- package/dist/{chunk-SI7QLYPB.js → chunk-WFZ7EPOQ.js} +1 -1
- package/dist/{chunk-T6NV4SKG.js → chunk-WIVLOR42.js} +1 -1
- package/dist/{chunk-UJJG2ME5.js → chunk-XGX3UMHU.js} +2 -2
- package/dist/{chunk-TRPYEDZM.js → chunk-YBO5PGUG.js} +39 -4
- package/dist/generated/index.js +59 -58
- package/dist/index.js +59 -58
- package/dist/styles.css +362 -79
- package/package.json +3 -3
- package/dist/ThreadSummary-AGR4NDMD.css +0 -90
- package/dist/chunk-5JPOFAVN.js +0 -58
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewlethq/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.0",
|
|
4
4
|
"description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"clean": "rm -rf dist src/generated"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@crewlethq/icons": "0.
|
|
46
|
-
"@crewlethq/tokens": "0.
|
|
45
|
+
"@crewlethq/icons": "0.106.0",
|
|
46
|
+
"@crewlethq/tokens": "0.106.0",
|
|
47
47
|
"prosemirror-commands": "1.7.2",
|
|
48
48
|
"prosemirror-gapcursor": "1.4.1",
|
|
49
49
|
"prosemirror-history": "1.5.1",
|
|
@@ -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
|
-
}
|
package/dist/chunk-5JPOFAVN.js
DELETED
|
@@ -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 };
|