@crewlethq/ui 0.180.0 → 0.182.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/README.md +54 -2
- package/dist/AgentHandoffPanel/index.js +4 -4
- package/dist/AgentIdentity/index.js +11 -5
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeList/index.js +4 -4
- package/dist/ArtifactCard/index.js +4 -4
- package/dist/AssignmentList/AssignmentList.d.ts +78 -0
- package/dist/AssignmentList/index.d.ts +3 -0
- package/dist/AssignmentList/index.js +8 -0
- package/dist/AssignmentList-3NZQFSYD.css +297 -0
- package/dist/ChangeList/ChangeGroups.d.ts +28 -0
- package/dist/ChangeList/ChangeList.d.ts +18 -1
- package/dist/ChangeList/index.d.ts +2 -0
- package/dist/ChangeList/index.js +11 -1
- package/dist/{ChangeList-R4UZBGU5.css → ChangeList-2VAPZDT3.css} +99 -0
- package/dist/CheckGrid/index.js +4 -4
- package/dist/Checkbox/index.js +3 -3
- package/dist/ChipField/index.js +2 -2
- package/dist/ColorField/index.js +3 -3
- package/dist/Combobox/index.js +3 -3
- package/dist/CommandPalette/index.js +16 -4
- package/dist/CommentThread/index.js +4 -4
- package/dist/Composer/index.js +3 -3
- package/dist/ConfirmField/index.js +3 -3
- package/dist/ConfirmModal-V2OAWUGJ.css +14 -0
- package/dist/ConsequenceList/ConsequenceList.d.ts +65 -0
- package/dist/ConsequenceList/index.d.ts +3 -0
- package/dist/ConsequenceList/index.js +23 -0
- package/dist/ConsequenceList-EEXTCT6J.css +74 -0
- package/dist/ContrastHelp/index.js +1 -1
- package/dist/DataGrid/index.js +4 -4
- package/dist/DataTable/index.js +17 -5
- package/dist/DataView/index.js +18 -7
- package/dist/DocTabsEditor/index.js +3 -3
- package/dist/DurationField/index.js +4 -4
- package/dist/{Editor-N3HLIXHX.js → Editor-HW7A54RA.js} +3 -3
- package/dist/EmojiPicker/index.js +3 -3
- package/dist/GraphCanvas/index.js +2 -2
- package/dist/InboxList/index.js +2 -2
- package/dist/Input/index.js +2 -2
- package/dist/KeyValueRows/index.js +3 -3
- package/dist/LinkInterstitial/index.js +20 -3
- package/dist/ListInput/index.js +3 -3
- package/dist/MemberPicker/index.js +4 -4
- package/dist/MessageActions/index.js +4 -4
- package/dist/Modal/ConfirmModal.d.ts +35 -2
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Modal/index.js +20 -1
- package/dist/MoneyField/index.js +3 -3
- package/dist/NumberField/index.js +3 -3
- package/dist/OrgTable/index.js +6 -6
- package/dist/PrincipalPicker/index.js +4 -4
- package/dist/ProposalCard/index.js +8 -8
- package/dist/RailList/index.js +1 -1
- package/dist/ReactionBar/index.js +4 -4
- package/dist/RichEditor/index.js +1 -1
- package/dist/ScopeList/index.js +4 -4
- package/dist/SelectionBar/index.js +2 -2
- package/dist/SettingForm/index.js +3 -3
- package/dist/ShareDialog/index.js +20 -3
- package/dist/SheetColumnEditor/index.js +4 -4
- package/dist/SheetGrid/index.js +1 -1
- package/dist/SlideFilmstrip/index.js +1 -1
- package/dist/Switcher/index.js +17 -5
- package/dist/TagsInput/index.js +2 -2
- package/dist/TimeRangePicker/index.js +15 -4
- package/dist/TimeWindowPicker/index.js +3 -3
- package/dist/TreeGrid/index.js +5 -5
- package/dist/ValueField/index.js +4 -4
- package/dist/{chunk-HHQFTPHY.js → chunk-2EBAGM5E.js} +1 -1
- package/dist/{chunk-U32DZ6Q4.js → chunk-2XKPQBAX.js} +1 -1
- package/dist/{chunk-SKDMFJZD.js → chunk-3ZMDQUFO.js} +1 -1
- package/dist/{chunk-BIOS7CQN.js → chunk-5WPNDMMI.js} +1 -1
- package/dist/{chunk-65ACQRWE.js → chunk-6PXXUHIH.js} +2 -2
- package/dist/{chunk-5KUJWSPT.js → chunk-CVKCSJ5F.js} +1 -1
- package/dist/{chunk-SN2FN2XW.js → chunk-D54HL3AN.js} +103 -14
- package/dist/{chunk-BFYADGPT.js → chunk-DJXY65LN.js} +2 -2
- package/dist/{chunk-NC4CT5D3.js → chunk-DKXMP3LN.js} +1 -1
- package/dist/{chunk-5MRK6I7V.js → chunk-FF2YPFIZ.js} +1 -1
- package/dist/{chunk-VDJJSZ6N.js → chunk-G5W5ZLIL.js} +1 -1
- package/dist/{chunk-7PLFR7AF.js → chunk-G7YITKUF.js} +2 -2
- package/dist/{chunk-PZ6CR4F2.js → chunk-GJVLQXDA.js} +2 -2
- package/dist/{chunk-QXKPMRUG.js → chunk-GQAHG6NB.js} +2 -2
- package/dist/{chunk-TTN5QKIV.js → chunk-H36ZMY4G.js} +1 -1
- package/dist/{chunk-W6NSF6E2.js → chunk-H7L4ZEVN.js} +1 -1
- package/dist/{chunk-FC225TSK.js → chunk-HLIWHEXR.js} +33 -2
- package/dist/{chunk-KYW3GH2W.js → chunk-IUCQ5WOX.js} +1 -1
- package/dist/{chunk-NJCF4FUM.js → chunk-IZDILOZ5.js} +2 -2
- package/dist/{chunk-ZMY5F3SF.js → chunk-JLZ37UFI.js} +2 -2
- package/dist/{chunk-MQJQVEFQ.js → chunk-JZN5VTHT.js} +1 -1
- package/dist/{chunk-MVSR3KE6.js → chunk-KHELXOOP.js} +1 -1
- package/dist/{chunk-PL4YO2KU.js → chunk-KIPQWDPP.js} +2 -2
- package/dist/{chunk-L3QL5QLE.js → chunk-LBLHL5KZ.js} +1 -1
- package/dist/chunk-LNS3I6MG.js +68 -0
- package/dist/{chunk-CIFX64WT.js → chunk-NRE7D5JZ.js} +2 -2
- package/dist/{chunk-2SX6FP6K.js → chunk-NYIVZNML.js} +3 -3
- package/dist/{chunk-7YI6OCXI.js → chunk-P3UGTTUA.js} +1 -1
- package/dist/{chunk-YXOCR6QP.js → chunk-QFO375KV.js} +1 -1
- package/dist/{chunk-JMNVSA65.js → chunk-R4A2Y7HG.js} +2 -2
- package/dist/{chunk-RTVKQOK3.js → chunk-RMBPTHLK.js} +1 -1
- package/dist/{chunk-SYAK2KOB.js → chunk-RRMZ5ITI.js} +1 -1
- package/dist/{chunk-3LS2XHI5.js → chunk-SEBNQVEU.js} +1 -1
- package/dist/{chunk-QOEOXKV2.js → chunk-SFKAZSZE.js} +1 -1
- package/dist/{chunk-KLNQEBYF.js → chunk-TEAHPDQM.js} +1 -1
- package/dist/{chunk-5TNJEP2C.js → chunk-TEHDRA7W.js} +2 -2
- package/dist/{chunk-WP2MLABG.js → chunk-TICGBUBC.js} +1 -1
- package/dist/{chunk-PCS2ZEIM.js → chunk-UI37YHEJ.js} +4 -4
- package/dist/{chunk-7YAEM37E.js → chunk-UJSD6N7V.js} +1 -1
- package/dist/{chunk-DPEMGLRK.js → chunk-WG7GNCUQ.js} +1 -1
- package/dist/{chunk-SYL6JDZH.js → chunk-X6FJSY3C.js} +1 -1
- package/dist/chunk-XDTWKLEX.js +103 -0
- package/dist/{chunk-2OYZFXUY.js → chunk-ZZCUQWA2.js} +2 -2
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +108 -106
- package/dist/index.js +108 -106
- package/dist/styles.css +494 -1
- package/package.json +3 -3
- package/dist/{chunk-FA6ROZOF.js → chunk-3OZCJUFS.js} +1 -1
- package/dist/{chunk-L3RGZSNE.js → chunk-GF7VSU5G.js} +1 -1
- package/dist/{chunk-5643FBGN.js → chunk-KF7ZOWJW.js} +1 -1
- package/dist/{chunk-LVCYS5JG.js → chunk-KH4HKMXF.js} +1 -1
- package/dist/{chunk-ITFAH735.js → chunk-L4BKQVXX.js} +1 -1
- package/dist/{chunk-OD7LFCYV.js → chunk-UTPLRVXN.js} +1 -1
- package/dist/{chunk-4BTFE223.js → chunk-XIZI47NY.js} +1 -1
- /package/dist/{chunk-IMD3SCK7.js → chunk-YDDWUJ4O.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
2
2
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
3
|
-
import { Input } from './chunk-
|
|
3
|
+
import { Input } from './chunk-KH4HKMXF.js';
|
|
4
4
|
import { Tooltip } from './chunk-QB3VHZRB.js';
|
|
5
5
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
2
|
-
import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
|
|
3
2
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
3
|
+
import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
|
|
4
4
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
5
5
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
6
|
-
import { Modal } from './chunk-
|
|
6
|
+
import { Modal } from './chunk-HLIWHEXR.js';
|
|
7
7
|
import { Text } from './chunk-475DOAWF.js';
|
|
8
|
-
import { Input } from './chunk-
|
|
8
|
+
import { Input } from './chunk-KH4HKMXF.js';
|
|
9
|
+
import { announce } from './chunk-WGMKERCR.js';
|
|
9
10
|
import { focusables, isComposing } from './chunk-EDPMHSLZ.js';
|
|
10
11
|
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
11
|
-
import { announce } from './chunk-WGMKERCR.js';
|
|
12
12
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
13
13
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
14
14
|
import './Switcher-MWHFBIWS.css';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Eyebrow } from './chunk-RK4XPHVG.js';
|
|
2
|
+
import { InlineCode } from './chunk-W4UJWFCZ.js';
|
|
3
|
+
import { Tag } from './chunk-HOIZJFYS.js';
|
|
4
|
+
import { titleWhenCut } from './chunk-WSIJDWUG.js';
|
|
5
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
+
import './AssignmentList-3NZQFSYD.css';
|
|
7
|
+
import { forwardRef, useId } from 'react';
|
|
8
|
+
import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
|
|
9
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
var ASSIGNMENT_LIST_LABELS = {
|
|
12
|
+
was: "Was",
|
|
13
|
+
notSaved: "Not saved"
|
|
14
|
+
};
|
|
15
|
+
function AssignmentList({ groups, footer, labels: overrides, className }) {
|
|
16
|
+
const labels = overrides ? { ...ASSIGNMENT_LIST_LABELS, ...overrides } : ASSIGNMENT_LIST_LABELS;
|
|
17
|
+
const id = useId();
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", { className: cx("crewlet-assignment-list", className), children: [
|
|
19
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-assignment-list__grid", children: groups.map((group) => {
|
|
20
|
+
const labelId = `${id}-${group.key}`;
|
|
21
|
+
const labelled = group.label !== void 0 && group.label !== null;
|
|
22
|
+
return /* @__PURE__ */ jsxs(
|
|
23
|
+
"section",
|
|
24
|
+
{
|
|
25
|
+
className: "crewlet-assignment-list__group",
|
|
26
|
+
"aria-labelledby": labelled ? labelId : void 0,
|
|
27
|
+
children: [
|
|
28
|
+
labelled ? /* @__PURE__ */ jsx(Eyebrow, { as: "div", id: labelId, className: "crewlet-assignment-list__label", children: group.label }) : null,
|
|
29
|
+
/* @__PURE__ */ jsx("ul", { className: "crewlet-assignment-list__rows", children: group.rows.map((row) => /* @__PURE__ */ jsx(Row, { row, labels }, row.key)) })
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
group.key
|
|
33
|
+
);
|
|
34
|
+
}) }),
|
|
35
|
+
footer === void 0 || footer === null ? null : /* @__PURE__ */ jsx("div", { className: "crewlet-assignment-list__footer", children: footer })
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
function Row({ row, labels }) {
|
|
39
|
+
const pending = row.was !== void 0 && row.was !== null;
|
|
40
|
+
return /* @__PURE__ */ jsxs("li", { className: cx("crewlet-assignment-list__row", pending && "is-pending"), children: [
|
|
41
|
+
/* @__PURE__ */ jsxs("div", { className: "crewlet-assignment-list__who", children: [
|
|
42
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-assignment-list__name", children: [
|
|
43
|
+
row.icon === void 0 || row.icon === null ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-assignment-list__icon", children: row.icon }),
|
|
44
|
+
row.href === void 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-assignment-list__words", title: row.nameTitle, onMouseEnter: row.nameTitle ? void 0 : titleWhenCut, children: row.name }) : /* @__PURE__ */ jsx(
|
|
45
|
+
"a",
|
|
46
|
+
{
|
|
47
|
+
className: "crewlet-assignment-list__words crewlet-assignment-list__link",
|
|
48
|
+
href: row.href,
|
|
49
|
+
title: row.nameTitle,
|
|
50
|
+
onMouseEnter: row.nameTitle ? void 0 : titleWhenCut,
|
|
51
|
+
children: row.name
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
] }),
|
|
55
|
+
pending ? /* @__PURE__ */ jsxs("span", { className: "crewlet-assignment-list__was", children: [
|
|
56
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-assignment-list__was-value", children: [
|
|
57
|
+
labels.was,
|
|
58
|
+
" ",
|
|
59
|
+
typeof row.was === "string" ? /* @__PURE__ */ jsx(InlineCode, { truncate: true, className: "crewlet-assignment-list__old", onMouseEnter: titleWhenCut, children: row.was }) : row.was
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsx(Tag, { size: "xs", variant: "warning", children: labels.notSaved })
|
|
62
|
+
] }) : null
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-assignment-list__value", children: row.value }),
|
|
65
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-assignment-list__actions", children: row.actions }),
|
|
66
|
+
row.lines?.map((line) => /* @__PURE__ */ jsxs("div", { className: "crewlet-assignment-list__line", children: [
|
|
67
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-assignment-list__line-label", onMouseEnter: titleWhenCut, children: line.label }),
|
|
68
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-assignment-list__value", children: line.value })
|
|
69
|
+
] }, line.key))
|
|
70
|
+
] });
|
|
71
|
+
}
|
|
72
|
+
var AssignmentPicker = forwardRef(function AssignmentPicker2({ primary, secondary, icon, pending = false, className, type = "button", title, onMouseEnter, ...rest }, ref) {
|
|
73
|
+
const whole = secondary ? `${primary} \xB7 ${secondary}` : primary;
|
|
74
|
+
return /* @__PURE__ */ jsxs(
|
|
75
|
+
"button",
|
|
76
|
+
{
|
|
77
|
+
ref,
|
|
78
|
+
type,
|
|
79
|
+
title,
|
|
80
|
+
className: cx("crewlet-assignment-picker", pending && "is-pending", className),
|
|
81
|
+
onMouseEnter: (event) => {
|
|
82
|
+
if (title === void 0) {
|
|
83
|
+
const parts = event.currentTarget.querySelectorAll(".crewlet-assignment-picker__value > span");
|
|
84
|
+
const cut = Array.from(parts).some((part) => part.scrollWidth > part.clientWidth);
|
|
85
|
+
if (cut) event.currentTarget.setAttribute("title", whole);
|
|
86
|
+
else event.currentTarget.removeAttribute("title");
|
|
87
|
+
}
|
|
88
|
+
onMouseEnter?.(event);
|
|
89
|
+
},
|
|
90
|
+
...rest,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-assignment-picker__value", children: [
|
|
93
|
+
icon === void 0 || icon === null ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-assignment-picker__icon", "aria-hidden": "true", children: icon }),
|
|
94
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-assignment-picker__primary", children: primary }),
|
|
95
|
+
secondary ? /* @__PURE__ */ jsx("span", { className: "crewlet-assignment-picker__secondary", children: secondary }) : null
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ jsx(ChevronDownGlyph, { size: "sm", className: "crewlet-assignment-picker__chevron" })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
export { ASSIGNMENT_LIST_LABELS, AssignmentList, AssignmentPicker };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SegmentedControl } from './chunk-4GPXNMIG.js';
|
|
2
|
-
import { Modal } from './chunk-
|
|
2
|
+
import { Modal } from './chunk-HLIWHEXR.js';
|
|
3
3
|
import { Callout } from './chunk-UJYSDWQ7.js';
|
|
4
4
|
import { Button } from './chunk-JYJ24UUX.js';
|
|
5
|
-
import { FormField, Input } from './chunk-
|
|
5
|
+
import { FormField, Input } from './chunk-KH4HKMXF.js';
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
import { ClockGlyph } from '@crewlethq/icons/glyphs';
|
|
8
8
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -24,6 +24,7 @@ export * from '../ArtifactNameCell/index.js';
|
|
|
24
24
|
export * from '../ArtifactPanel/index.js';
|
|
25
25
|
export * from '../ArtifactRef/index.js';
|
|
26
26
|
export * from '../AsideLayout/index.js';
|
|
27
|
+
export * from '../AssignmentList/index.js';
|
|
27
28
|
export * from '../AttachmentChip/index.js';
|
|
28
29
|
export * from '../AttentionList/index.js';
|
|
29
30
|
export * from '../AuthLayout/index.js';
|
|
@@ -73,6 +74,7 @@ export * from '../CompactNav/index.js';
|
|
|
73
74
|
export * from '../Composer/index.js';
|
|
74
75
|
export * from '../ConfirmField/index.js';
|
|
75
76
|
export * from '../ConflictNote/index.js';
|
|
77
|
+
export * from '../ConsequenceList/index.js';
|
|
76
78
|
export * from '../Container/index.js';
|
|
77
79
|
export * from '../ContrastBadge/index.js';
|
|
78
80
|
export * from '../ContrastHelp/index.js';
|