@crewlethq/ui 0.150.1 → 0.152.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 +8 -0
- package/dist/AgentHandoffPanel/index.js +11 -11
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeList/index.js +6 -6
- package/dist/ArtifactBar/index.js +4 -4
- package/dist/ArtifactCard/index.js +6 -6
- package/dist/ArtifactPanel/index.js +3 -3
- package/dist/AttentionList/index.js +5 -4
- package/dist/AuthLayout/index.js +1 -1
- package/dist/AvatarPicker/index.js +6 -6
- package/dist/BriefCard/index.js +3 -3
- package/dist/Callout/Callout.d.ts +16 -2
- package/dist/Callout/index.js +1 -1
- package/dist/{Callout-WLZKAFPT.css → Callout-JGEIJSDG.css} +60 -0
- package/dist/CheckGrid/index.js +5 -5
- package/dist/Checkbox/index.js +4 -4
- package/dist/ChipField/index.js +2 -2
- package/dist/ColorField/index.js +4 -4
- package/dist/Combobox/Combobox.d.ts +2 -0
- package/dist/Combobox/index.js +4 -4
- package/dist/{Combobox-F5VEJIAO.css → Combobox-GHT43K32.css} +7 -0
- package/dist/CommandPalette/index.js +6 -6
- package/dist/CommentThread/index.js +7 -7
- package/dist/Composer/index.js +4 -4
- package/dist/ConfirmField/index.js +4 -4
- package/dist/DataGrid/index.js +6 -6
- package/dist/DataTable/index.js +7 -7
- package/dist/DataView/index.js +10 -10
- package/dist/DatasetSource/index.js +1 -1
- package/dist/DeepWorkCard/index.js +4 -4
- package/dist/DocTabsEditor/index.js +6 -6
- package/dist/DurationField/index.js +10 -10
- package/dist/EditingStatus/index.js +2 -2
- package/dist/{Editor-XAJF2WQ3.js → Editor-FXREHINI.js} +4 -4
- package/dist/EmojiPicker/index.js +4 -4
- package/dist/EntityList/index.js +1 -1
- package/dist/FilterPill/FilterPill.d.ts +6 -1
- package/dist/FilterPill/index.js +1 -1
- package/dist/{FilterPill-4GMNFZND.css → FilterPill-C6LFYCCA.css} +7 -0
- package/dist/FollowBanner/index.js +2 -2
- package/dist/HuePicker/index.js +4 -4
- package/dist/InboxList/index.js +2 -2
- package/dist/InlineEditor/index.js +3 -3
- package/dist/Input/index.js +3 -3
- package/dist/KeyValueRows/index.js +4 -4
- package/dist/LinkInterstitial/index.js +4 -4
- package/dist/ListInput/index.js +5 -5
- package/dist/MarkdownEditor/index.js +4 -4
- package/dist/MemberPicker/index.js +5 -5
- package/dist/MergeConflicts/index.js +4 -4
- package/dist/MessageActions/index.js +5 -5
- package/dist/Modal/index.js +2 -2
- package/dist/NoticeList/NoticeList.d.ts +8 -1
- package/dist/NoticeList/groupNotices.d.ts +1 -1
- package/dist/NoticeList/index.d.ts +1 -0
- package/dist/NoticeList/index.js +5 -2
- package/dist/{NoticeList-LD5APCDU.css → NoticeList-GHCJRR3Z.css} +93 -0
- package/dist/NumberField/index.js +9 -9
- package/dist/OpenInAppCard/index.js +4 -4
- package/dist/OrgTable/index.js +8 -8
- package/dist/PeopleRail/index.js +2 -2
- package/dist/PresetChips/index.js +4 -4
- package/dist/PrincipalPicker/index.js +5 -5
- package/dist/ProposalCard/index.js +9 -9
- package/dist/RailList/index.js +2 -2
- package/dist/ReactionBar/index.js +5 -5
- package/dist/ReadingPane/index.js +2 -2
- package/dist/RefusalCard/index.js +1 -1
- package/dist/Reorder/index.js +2 -2
- package/dist/ResultTableCard/index.js +3 -3
- package/dist/RichEditor/index.js +2 -2
- package/dist/RunChip/index.js +1 -1
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SegmentedControl/index.js +3 -3
- package/dist/SelectionBar/index.js +2 -2
- package/dist/SettingForm/index.js +4 -4
- package/dist/SettingsTable/index.js +1 -1
- package/dist/SetupWizard/index.js +4 -4
- package/dist/ShareDialog/index.js +4 -4
- package/dist/SheetColumnEditor/index.js +10 -10
- package/dist/SheetGrid/index.js +3 -3
- package/dist/SidePanel/index.js +2 -2
- package/dist/SlideFilmstrip/index.js +3 -3
- package/dist/StatusCard/index.js +1 -1
- package/dist/Switcher/index.js +5 -5
- package/dist/TableCells/index.js +1 -1
- package/dist/Tabs/index.js +2 -2
- package/dist/TagsInput/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +4 -4
- package/dist/TimeRangePicker/index.js +10 -10
- package/dist/TimeWindowPicker/index.js +4 -4
- package/dist/TreeGrid/index.js +7 -7
- package/dist/ValueField/ValueField.d.ts +2 -0
- package/dist/ValueField/index.js +5 -5
- package/dist/VersionCompare/index.js +6 -6
- package/dist/{chunk-ABWPMBMX.js → chunk-27NS67UI.js} +1 -1
- package/dist/{chunk-FWXAPOMM.js → chunk-27ZF7D3C.js} +1 -1
- package/dist/{chunk-VZWRSV4M.js → chunk-3Q5USPLM.js} +1 -1
- package/dist/{chunk-VI2ZUOP7.js → chunk-5DLBGF6I.js} +2 -2
- package/dist/{chunk-UR3UUHPC.js → chunk-5VTJOVK7.js} +2 -2
- package/dist/{chunk-OESG3U7F.js → chunk-6BGD32C5.js} +3 -3
- package/dist/{chunk-C7BK32JK.js → chunk-6QWSGM4W.js} +1 -1
- package/dist/{chunk-GVD7GVPM.js → chunk-7CVV3DQC.js} +1 -1
- package/dist/{chunk-ROE6HKEI.js → chunk-7FWYJCKT.js} +3 -2
- package/dist/{chunk-BCOTJM4W.js → chunk-7FY7L6WD.js} +3 -3
- package/dist/{chunk-SG3XSUJ5.js → chunk-7XE5TC7X.js} +2 -2
- package/dist/{chunk-MALV624H.js → chunk-BRMJPZC4.js} +1 -1
- package/dist/{chunk-WTWYN7Z5.js → chunk-CA62YCFK.js} +1 -1
- package/dist/{chunk-2QPELDAA.js → chunk-CHUFHUQE.js} +1 -1
- package/dist/{chunk-2LTJUWCR.js → chunk-CJAPAIJG.js} +9 -4
- package/dist/chunk-CWACQEPP.js +118 -0
- package/dist/{chunk-Q5OB4LBX.js → chunk-DDGHRDGV.js} +2 -2
- package/dist/{chunk-OIX7B57V.js → chunk-DWXTJWCJ.js} +4 -4
- package/dist/chunk-E2XGQAHV.js +184 -0
- package/dist/{chunk-VZOGZZCA.js → chunk-E3JUS3CR.js} +1 -1
- package/dist/{chunk-SM7NURKY.js → chunk-EDQHZOU3.js} +2 -2
- package/dist/{chunk-YLDZ3TXH.js → chunk-F6OYNO7O.js} +1 -1
- package/dist/{chunk-SZH7MLBY.js → chunk-FMKQSDBQ.js} +1 -1
- package/dist/{chunk-BC4OVFBQ.js → chunk-GFNCMSYS.js} +2 -2
- package/dist/{chunk-ANXCMHTP.js → chunk-GMXOZEF5.js} +2 -2
- package/dist/{chunk-TBOVJ7RL.js → chunk-GQQMN6O3.js} +3 -1
- package/dist/{chunk-3ZSKFZP3.js → chunk-HIDOUXLD.js} +1 -1
- package/dist/{chunk-HJ6ZY4UX.js → chunk-HXAPC3AJ.js} +1 -1
- package/dist/{chunk-B4QF35QY.js → chunk-ITZAWYRG.js} +1 -1
- package/dist/{chunk-NCQBZ7FU.js → chunk-M4VA76JF.js} +3 -3
- package/dist/{chunk-LMWDWGPE.js → chunk-MUBJN75T.js} +1 -1
- package/dist/{chunk-7NEHBDNS.js → chunk-N3LAAA4R.js} +2 -2
- package/dist/{chunk-JGJSCWZY.js → chunk-N3R2POGO.js} +2 -2
- package/dist/{chunk-TYZSARP5.js → chunk-NG6GEBSJ.js} +1 -1
- package/dist/{chunk-YQHSUUMN.js → chunk-O2J5PSWI.js} +3 -3
- package/dist/{chunk-T2457TRX.js → chunk-ODN3LSYW.js} +1 -1
- package/dist/{chunk-6DL4HM7T.js → chunk-OMVGWZ3V.js} +1 -1
- package/dist/{chunk-7TITGQ3A.js → chunk-OX332RI7.js} +2 -2
- package/dist/{chunk-CFSPFFHJ.js → chunk-PW6QXVIX.js} +3 -3
- package/dist/{chunk-PQDMYIEJ.js → chunk-Q3SHCEXN.js} +2 -2
- package/dist/{chunk-CUU24MKQ.js → chunk-QRUQOITJ.js} +1 -1
- package/dist/{chunk-PN6VKDRF.js → chunk-RNVPYDRQ.js} +1 -1
- package/dist/{chunk-MWAQEHAF.js → chunk-RUKSDKG5.js} +2 -2
- package/dist/{chunk-S7TZH45K.js → chunk-S4ADDFRT.js} +2 -2
- package/dist/{chunk-KCFF2MBD.js → chunk-U3ZUZ7VU.js} +4 -4
- package/dist/{chunk-2IOI52YU.js → chunk-V67VL3WD.js} +1 -1
- package/dist/{chunk-ZEKRJMX5.js → chunk-VXTRPLNB.js} +4 -4
- package/dist/{chunk-6VSR7TW7.js → chunk-WAF36OFS.js} +2 -2
- package/dist/{chunk-5K7D64VG.js → chunk-X5ZUDJNK.js} +1 -1
- package/dist/{chunk-QS5M3A4I.js → chunk-YAUAMQOP.js} +3 -2
- package/dist/{chunk-K7C4BIX6.js → chunk-YMBXTGFC.js} +1 -1
- package/dist/{chunk-PMS3TIU2.js → chunk-YRNIPS4M.js} +2 -2
- package/dist/{chunk-UH6B2HTX.js → chunk-YWPUT6JQ.js} +1 -1
- package/dist/{chunk-SIM6FR5B.js → chunk-ZAQ7CEYN.js} +1 -1
- package/dist/{chunk-KY6W76V3.js → chunk-ZNEMXLTY.js} +1 -1
- package/dist/generated/index.js +119 -119
- package/dist/index.js +119 -119
- package/dist/styles.css +171 -4
- package/dist/utils/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-7J2RIAZ4.js +0 -91
- package/dist/chunk-UEO3A76N.js +0 -62
- package/dist/{chunk-R76HBPY5.js → chunk-2DZV4PHK.js} +1 -1
- package/dist/{chunk-DZPT7P2I.js → chunk-3EL3IF3W.js} +1 -1
- package/dist/{chunk-DHYJNBWC.js → chunk-3OZPHFDT.js} +1 -1
- package/dist/{chunk-HKRNKAHN.js → chunk-7C6NHVMX.js} +1 -1
- package/dist/{chunk-73XXYQC7.js → chunk-7PK2Z5JY.js} +1 -1
- package/dist/{chunk-PWRYYOQ4.js → chunk-DGB7R42F.js} +1 -1
- package/dist/{chunk-NIOE6ZAL.js → chunk-JMBPMSNI.js} +1 -1
- package/dist/{chunk-6N53ZWRM.js → chunk-KRF3GQ63.js} +1 -1
- package/dist/{chunk-6VWBIHSJ.js → chunk-UMEK5DHS.js} +1 -1
- package/dist/{chunk-V3RQYIZO.js → chunk-XJU53WMW.js} +1 -1
- package/dist/{chunk-GTAAOGDQ.js → chunk-XQMRSL7Z.js} +2 -2
- package/dist/{chunk-LXPA2SRT.js → chunk-XZ47PWVD.js} +1 -1
- package/dist/{chunk-H5CN7YWD.js → chunk-YUW4DD2Z.js} +1 -1
- package/dist/{chunk-EDUK7DD5.js → chunk-Z7BA2EVV.js} +1 -1
- package/dist/{chunk-RJDRNXDB.js → chunk-ZC73GPA3.js} +1 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
2
|
+
import { DisclosureAnatomy } from './chunk-ODN2TPIG.js';
|
|
3
|
+
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
4
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
+
import { useState, useId } from 'react';
|
|
6
|
+
import { CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
|
|
7
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function NoticeLineView({
|
|
10
|
+
line,
|
|
11
|
+
shown,
|
|
12
|
+
andMore,
|
|
13
|
+
className
|
|
14
|
+
}) {
|
|
15
|
+
const [open, setOpen] = useState(false);
|
|
16
|
+
const folds = line.items.length > shown + 1 && !open;
|
|
17
|
+
const items = folds ? line.items.slice(0, shown) : line.items;
|
|
18
|
+
return /* @__PURE__ */ jsxs("p", { className: cx("crewlet-notice-list__line", className), children: [
|
|
19
|
+
line.subject != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
+
/* @__PURE__ */ jsx("strong", { className: "crewlet-notice-list__subject", children: line.subject }),
|
|
21
|
+
": "
|
|
22
|
+
] }) : null,
|
|
23
|
+
items.map((item, i) => /* @__PURE__ */ jsxs("span", { children: [
|
|
24
|
+
i > 0 ? ", " : null,
|
|
25
|
+
item
|
|
26
|
+
] }, i)),
|
|
27
|
+
folds ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28
|
+
" ",
|
|
29
|
+
/* @__PURE__ */ jsx("button", { type: "button", className: "crewlet-notice-list__and-more", onClick: () => setOpen(true), children: andMore(line.items.length - shown) })
|
|
30
|
+
] }) : null
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
33
|
+
var NOTICE_LIST_LABELS = {
|
|
34
|
+
more: (hidden) => `Show ${hidden} more`,
|
|
35
|
+
less: "Show fewer",
|
|
36
|
+
andMore: (hidden) => `and ${hidden} more`,
|
|
37
|
+
tones: { danger: "Problem", warning: "Warning", info: "Note", success: "Done", neutral: "Note" }
|
|
38
|
+
};
|
|
39
|
+
var GLYPHS = {
|
|
40
|
+
neutral: /* @__PURE__ */ jsx(InfoGlyph, { size: "sm" }),
|
|
41
|
+
info: /* @__PURE__ */ jsx(InfoGlyph, { size: "sm" }),
|
|
42
|
+
success: /* @__PURE__ */ jsx(CircleCheckGlyph, { size: "sm" }),
|
|
43
|
+
warning: /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "sm" }),
|
|
44
|
+
danger: /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "sm" })
|
|
45
|
+
};
|
|
46
|
+
function NoticeList({
|
|
47
|
+
notices,
|
|
48
|
+
compact = false,
|
|
49
|
+
collapseAfter = compact ? 5 : 3,
|
|
50
|
+
itemsShown = 4,
|
|
51
|
+
label,
|
|
52
|
+
labels: overrides,
|
|
53
|
+
className
|
|
54
|
+
}) {
|
|
55
|
+
const words = { ...NOTICE_LIST_LABELS, ...overrides, tones: { ...NOTICE_LIST_LABELS.tones, ...overrides?.tones } };
|
|
56
|
+
const [expanded, setExpanded] = useState(false);
|
|
57
|
+
const [openKey, setOpenKey] = useState(null);
|
|
58
|
+
const rid = useId();
|
|
59
|
+
if (notices.length === 0) return null;
|
|
60
|
+
const mixed = new Set(notices.map((n) => n.tone ?? "neutral")).size > 1;
|
|
61
|
+
const folds = notices.length > collapseAfter + 1;
|
|
62
|
+
const shown = folds && !expanded ? notices.slice(0, collapseAfter) : notices;
|
|
63
|
+
return /* @__PURE__ */ jsxs(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
className: cx(
|
|
67
|
+
"crewlet-notice-list",
|
|
68
|
+
mixed && "crewlet-notice-list--mixed",
|
|
69
|
+
compact && "crewlet-notice-list--compact",
|
|
70
|
+
className
|
|
71
|
+
),
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ jsx("ul", { className: "crewlet-notice-list__items", "aria-label": label, children: shown.map(
|
|
74
|
+
(notice, index) => compact ? /* @__PURE__ */ jsx(
|
|
75
|
+
CompactNotice,
|
|
76
|
+
{
|
|
77
|
+
notice,
|
|
78
|
+
id: `${rid}-${index}`,
|
|
79
|
+
open: openKey === notice.key,
|
|
80
|
+
onToggle: () => setOpenKey((k) => k === notice.key ? null : notice.key),
|
|
81
|
+
mixed,
|
|
82
|
+
itemsShown,
|
|
83
|
+
words
|
|
84
|
+
},
|
|
85
|
+
notice.key
|
|
86
|
+
) : /* @__PURE__ */ jsx(FullNotice, { notice, mixed, itemsShown, words }, notice.key)
|
|
87
|
+
) }),
|
|
88
|
+
folds ? /* @__PURE__ */ jsx(
|
|
89
|
+
Button,
|
|
90
|
+
{
|
|
91
|
+
variant: "ghost",
|
|
92
|
+
size: "small",
|
|
93
|
+
flush: true,
|
|
94
|
+
className: "crewlet-notice-list__more",
|
|
95
|
+
"aria-expanded": expanded,
|
|
96
|
+
onClick: () => setExpanded((e) => !e),
|
|
97
|
+
children: expanded ? words.less : words.more(notices.length - collapseAfter)
|
|
98
|
+
}
|
|
99
|
+
) : null
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function FullNotice({
|
|
105
|
+
notice,
|
|
106
|
+
mixed,
|
|
107
|
+
itemsShown,
|
|
108
|
+
words
|
|
109
|
+
}) {
|
|
110
|
+
const tone = notice.tone ?? "neutral";
|
|
111
|
+
return /* @__PURE__ */ jsxs("li", { className: "crewlet-notice-list__item", children: [
|
|
112
|
+
mixed ? /* @__PURE__ */ jsx("span", { className: cx("crewlet-notice-list__glyph", `is-${tone}`), "aria-hidden": true, children: GLYPHS[tone] }) : null,
|
|
113
|
+
/* @__PURE__ */ jsxs("div", { className: "crewlet-notice-list__text", children: [
|
|
114
|
+
/* @__PURE__ */ jsxs("p", { className: "crewlet-notice-list__title", children: [
|
|
115
|
+
mixed ? /* @__PURE__ */ jsx(VisuallyHidden, { children: `${words.tones[tone]}: ` }) : null,
|
|
116
|
+
notice.subject != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
117
|
+
/* @__PURE__ */ jsx("strong", { className: "crewlet-notice-list__subject", children: notice.subject }),
|
|
118
|
+
": "
|
|
119
|
+
] }) : null,
|
|
120
|
+
notice.title
|
|
121
|
+
] }),
|
|
122
|
+
notice.lines?.map((line, i) => /* @__PURE__ */ jsx(NoticeLineView, { line, shown: itemsShown, andMore: words.andMore }, i)),
|
|
123
|
+
notice.detail != null ? /* @__PURE__ */ jsx("p", { className: "crewlet-notice-list__detail", children: notice.detail }) : null
|
|
124
|
+
] }),
|
|
125
|
+
notice.action != null ? /* @__PURE__ */ jsx("div", { className: "crewlet-notice-list__action", children: notice.action }) : null
|
|
126
|
+
] });
|
|
127
|
+
}
|
|
128
|
+
function CompactNotice({
|
|
129
|
+
notice,
|
|
130
|
+
id,
|
|
131
|
+
open,
|
|
132
|
+
onToggle,
|
|
133
|
+
mixed,
|
|
134
|
+
itemsShown,
|
|
135
|
+
words
|
|
136
|
+
}) {
|
|
137
|
+
const tone = notice.tone ?? "neutral";
|
|
138
|
+
const summary = summaryOf(notice, words.andMore);
|
|
139
|
+
const opens = (notice.lines?.length ?? 0) > 0 || notice.detail != null;
|
|
140
|
+
return /* @__PURE__ */ jsxs("li", { className: "crewlet-notice-list__item", children: [
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
DisclosureAnatomy,
|
|
143
|
+
{
|
|
144
|
+
open,
|
|
145
|
+
onToggle,
|
|
146
|
+
title: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
147
|
+
mixed ? /* @__PURE__ */ jsx(VisuallyHidden, { children: `${words.tones[tone]}: ` }) : null,
|
|
148
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-notice-list__title", children: notice.title }),
|
|
149
|
+
summary != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
150
|
+
" ",
|
|
151
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-notice-list__summary", children: summary })
|
|
152
|
+
] }) : null
|
|
153
|
+
] }),
|
|
154
|
+
icon: mixed ? /* @__PURE__ */ jsx("span", { className: cx("crewlet-notice-list__glyph", `is-${tone}`), children: GLYPHS[tone] }) : void 0,
|
|
155
|
+
actions: notice.action ?? void 0,
|
|
156
|
+
expandable: opens,
|
|
157
|
+
headingLevel: "none",
|
|
158
|
+
triggerId: `${id}-trigger`,
|
|
159
|
+
panelId: `${id}-panel`,
|
|
160
|
+
triggerClassName: "crewlet-notice-list__toggle"
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
opens ? /* @__PURE__ */ jsxs("div", { id: `${id}-panel`, className: "crewlet-notice-list__panel", hidden: !open, children: [
|
|
164
|
+
notice.lines?.map((line, i) => /* @__PURE__ */ jsx(NoticeLineView, { line, shown: itemsShown, andMore: words.andMore }, i)),
|
|
165
|
+
notice.detail != null ? /* @__PURE__ */ jsx("p", { className: "crewlet-notice-list__detail", children: notice.detail }) : null
|
|
166
|
+
] }) : null
|
|
167
|
+
] });
|
|
168
|
+
}
|
|
169
|
+
function summaryOf(notice, andMore) {
|
|
170
|
+
if (notice.summary != null) return notice.summary;
|
|
171
|
+
if (notice.subject != null) return notice.subject;
|
|
172
|
+
const [line, ...others] = notice.lines ?? [];
|
|
173
|
+
if (line === void 0 || others.length > 0) return void 0;
|
|
174
|
+
if (line.subject != null) return line.subject;
|
|
175
|
+
const [first, ...rest] = line.items;
|
|
176
|
+
if (first === void 0) return void 0;
|
|
177
|
+
return rest.length === 0 ? first : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
178
|
+
first,
|
|
179
|
+
" ",
|
|
180
|
+
andMore(rest.length)
|
|
181
|
+
] });
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export { NOTICE_LIST_LABELS, NoticeLineView, NoticeList };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FormField, Label, Input } from './chunk-
|
|
2
|
-
import { announce } from './chunk-WGMKERCR.js';
|
|
1
|
+
import { FormField, Label, Input } from './chunk-XQMRSL7Z.js';
|
|
3
2
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
4
3
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
4
|
+
import { announce } from './chunk-WGMKERCR.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './KeyValueRows-US5KW7JK.css';
|
|
7
7
|
import { useId, useRef, useEffect } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Select } from './chunk-657WR3MX.js';
|
|
2
2
|
import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-EE3DJMSQ.js';
|
|
3
3
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
4
|
-
import { Input } from './chunk-
|
|
4
|
+
import { Input } from './chunk-XQMRSL7Z.js';
|
|
5
5
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
6
6
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
7
7
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
2
|
-
import { Callout } from './chunk-
|
|
2
|
+
import { Callout } from './chunk-CWACQEPP.js';
|
|
3
3
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
4
4
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
5
5
|
import './RichEditor-5CF3QV3J.css';
|
|
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var engine = null;
|
|
10
10
|
var loading = null;
|
|
11
11
|
function loadEngine() {
|
|
12
|
-
loading ??= import('./Editor-
|
|
12
|
+
loading ??= import('./Editor-FXREHINI.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { tabId } from './chunk-
|
|
1
|
+
import { tabId } from './chunk-XJU53WMW.js';
|
|
2
2
|
import { useRoving, tabStop } from './chunk-7F3OPUM5.js';
|
|
3
|
-
import { Count } from './chunk-Y5CMDLQM.js';
|
|
4
3
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
|
+
import { Count } from './chunk-Y5CMDLQM.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import { useState, useId } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './FilterPill-
|
|
3
|
+
import './FilterPill-C6LFYCCA.css';
|
|
4
4
|
import { XGlyph } from '@crewlethq/icons/glyphs';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -19,6 +19,7 @@ function FilterPill({
|
|
|
19
19
|
field,
|
|
20
20
|
operator,
|
|
21
21
|
value,
|
|
22
|
+
valueLeading,
|
|
22
23
|
onRemove,
|
|
23
24
|
removeLabel,
|
|
24
25
|
renderWords,
|
|
@@ -39,6 +40,7 @@ function FilterPill({
|
|
|
39
40
|
] }) : null,
|
|
40
41
|
hasValue ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41
42
|
" ",
|
|
43
|
+
valueLeading !== void 0 && valueLeading !== null ? /* @__PURE__ */ jsx("span", { className: "crewlet-filter-pill__value-leading", "aria-hidden": "true", children: valueLeading }) : null,
|
|
42
44
|
/* @__PURE__ */ jsx("span", { className: "crewlet-filter-pill__value", children: value })
|
|
43
45
|
] }) : null
|
|
44
46
|
] });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Select } from './chunk-657WR3MX.js';
|
|
2
2
|
import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
|
|
3
|
-
import { HueSwatch } from './chunk-
|
|
3
|
+
import { HueSwatch } from './chunk-E3JUS3CR.js';
|
|
4
4
|
import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
5
|
-
import { Checkbox } from './chunk-
|
|
6
|
-
import { FormField, Input } from './chunk-GTAAOGDQ.js';
|
|
5
|
+
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
7
6
|
import { Menu } from './chunk-ZMZNKDPO.js';
|
|
7
|
+
import { FormField, Input } from './chunk-XQMRSL7Z.js';
|
|
8
8
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
9
9
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
10
10
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SegmentedControl } from './chunk-
|
|
1
|
+
import { SegmentedControl } from './chunk-GMXOZEF5.js';
|
|
2
2
|
import { ArtifactIcon } from './chunk-AVL52EME.js';
|
|
3
3
|
import { Menu } from './chunk-ZMZNKDPO.js';
|
|
4
4
|
import { isApplePlatform, Kbd, ariaKeyshortcuts } from './chunk-VBBLHS2Y.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
3
|
-
import { tabId } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-GMXOZEF5.js';
|
|
3
|
+
import { tabId } from './chunk-XJU53WMW.js';
|
|
4
4
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './MarkdownEditor-BLCJRGDC.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useReorder } from './chunk-
|
|
2
|
-
import { Input } from './chunk-GTAAOGDQ.js';
|
|
1
|
+
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
3
2
|
import { Menu } from './chunk-ZMZNKDPO.js';
|
|
3
|
+
import { Input } from './chunk-XQMRSL7Z.js';
|
|
4
4
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-7PK2Z5JY.js';
|
|
2
2
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
3
3
|
import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
|
|
4
4
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
5
5
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
6
6
|
import { Text } from './chunk-475DOAWF.js';
|
|
7
|
-
import { Input } from './chunk-
|
|
8
|
-
import { announce } from './chunk-WGMKERCR.js';
|
|
7
|
+
import { Input } from './chunk-XQMRSL7Z.js';
|
|
9
8
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
10
9
|
import { focusables, isComposing } from './chunk-EDPMHSLZ.js';
|
|
11
10
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-GMXOZEF5.js';
|
|
3
3
|
import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-F4CM5KD3.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-GMXOZEF5.js';
|
|
3
3
|
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
4
4
|
import { useHeadingLevel, headingTag, nextHeadingLevel, HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Select } from './chunk-657WR3MX.js';
|
|
2
|
-
import { typedNumber, NumberField } from './chunk-
|
|
3
|
-
import { PresetChips } from './chunk-
|
|
2
|
+
import { typedNumber, NumberField } from './chunk-DDGHRDGV.js';
|
|
3
|
+
import { PresetChips } from './chunk-6QWSGM4W.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './DurationField-TJFIAUMW.css';
|
|
6
6
|
import { useId } from 'react';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useReorder } from './chunk-
|
|
2
|
-
import { FormField, Textarea } from './chunk-
|
|
1
|
+
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
2
|
+
import { FormField, Textarea } from './chunk-XQMRSL7Z.js';
|
|
3
3
|
import { characterCountState, CharacterCount, countCharacters } from './chunk-TEXK4RK6.js';
|
|
4
|
-
import { announce } from './chunk-WGMKERCR.js';
|
|
5
4
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
6
5
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
7
6
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
8
7
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
8
|
+
import { announce } from './chunk-WGMKERCR.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './ListInput-L6XJUDTB.css';
|
|
11
11
|
import { forwardRef, useState, useRef, useImperativeHandle, useLayoutEffect, useId } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GRID_FOOT_LABELS, GRID_ICON_TRACK, headerWord, sortByValue, parseGridSort, overrunning, tableTrack, GridHeadCell, GridFoot, droppedNames, nextGridSort, rowLinkTitle, squeezedCells, SHORT_COLUMN_PX, alignOf } from './chunk-HU56GCZ7.js';
|
|
2
|
-
import { useReorder } from './chunk-NIOE6ZAL.js';
|
|
3
2
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
4
3
|
import { titleWhenCut } from './chunk-WSIJDWUG.js';
|
|
5
|
-
import {
|
|
4
|
+
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
5
|
+
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
6
6
|
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
7
7
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
8
8
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSendOnEnter, SendKeysHint } from './chunk-UZMXC5T6.js';
|
|
2
|
-
import { Textarea } from './chunk-
|
|
2
|
+
import { Textarea } from './chunk-XQMRSL7Z.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './ChatScale-LGESYXCO.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeHex, parseColourInput } from './chunk-7W3LYIOC.js';
|
|
2
|
-
import { FormField, Input, InputAffix } from './chunk-
|
|
2
|
+
import { FormField, Input, InputAffix } from './chunk-XQMRSL7Z.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './ColorField-2OIOWT3Z.css';
|
|
5
5
|
import { useId, useState } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
|
|
2
|
-
import { fitGridColumns } from './chunk-
|
|
2
|
+
import { fitGridColumns } from './chunk-Q3SHCEXN.js';
|
|
3
3
|
import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-HU56GCZ7.js';
|
|
4
4
|
import { LayerNodeBridge } from './chunk-CUEPPDBC.js';
|
|
5
|
-
import { Checkbox } from './chunk-
|
|
5
|
+
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
6
6
|
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
7
7
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
8
8
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
@@ -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-
|
|
3
|
+
import { Composer } from './chunk-QRUQOITJ.js';
|
|
4
4
|
import { Disclosure } from './chunk-D5O64CVE.js';
|
|
5
|
-
import { ArtifactPanel } from './chunk-
|
|
5
|
+
import { ArtifactPanel } from './chunk-HIDOUXLD.js';
|
|
6
6
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './AgentHandoffPanel-AIU7YWWB.css';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Document } from './chunk-I4PBFJGX.js';
|
|
2
1
|
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
3
2
|
import { toInstant, RelativeTime, formatExact, toISO } from './chunk-GBKBME7Q.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
3
|
+
import { Document } from './chunk-I4PBFJGX.js';
|
|
4
|
+
import { Composer } from './chunk-QRUQOITJ.js';
|
|
7
5
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
8
6
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
7
|
+
import { Count } from './chunk-Y5CMDLQM.js';
|
|
8
|
+
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './CommentThread-YU6VSVS4.css';
|
|
11
11
|
import { useState, useRef, useId, useMemo, useEffect } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
2
|
-
import { Callout } from './chunk-
|
|
3
|
-
import { SegmentedControl } from './chunk-
|
|
4
|
-
import { FormField, Input } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-7PK2Z5JY.js';
|
|
2
|
+
import { Callout } from './chunk-CWACQEPP.js';
|
|
3
|
+
import { SegmentedControl } from './chunk-GMXOZEF5.js';
|
|
4
|
+
import { FormField, Input } from './chunk-XQMRSL7Z.js';
|
|
5
5
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
import { ClockGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-7PK2Z5JY.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-
|
|
5
|
+
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
6
6
|
import { Menu } from './chunk-ZMZNKDPO.js';
|
|
7
7
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
8
8
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './Disclosure-RJSKKO7Z.css';
|
|
2
|
+
import './NoticeList-GHCJRR3Z.css';
|
|
2
3
|
|
|
3
4
|
// src/NoticeList/index.ts
|
|
4
5
|
|
|
@@ -29,7 +30,7 @@ function groupNotices(entries, { count }) {
|
|
|
29
30
|
const lines = [...subjects.entries()].map(
|
|
30
31
|
([subject, items]) => subject === "" ? { items } : { subject, items }
|
|
31
32
|
);
|
|
32
|
-
return withLines(base, lines);
|
|
33
|
+
return withLines({ ...base, summary: count(named) }, lines);
|
|
33
34
|
});
|
|
34
35
|
return notices.map((notice, index) => ({ notice, index })).sort((a, b) => TONE_ORDER[a.notice.tone ?? "neutral"] - TONE_ORDER[b.notice.tone ?? "neutral"] || a.index - b.index).map(({ notice }) => notice);
|
|
35
36
|
}
|
|
@@ -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-XQMRSL7Z.js';
|
|
4
4
|
import { Tooltip } from './chunk-BFZAGIXR.js';
|
|
5
5
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Switch } from './chunk-6YYRFGXO.js';
|
|
2
|
-
import { useReorder } from './chunk-
|
|
3
|
-
import { Checkbox } from './chunk-
|
|
2
|
+
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
3
|
+
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
4
4
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -3,7 +3,7 @@ import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
|
3
3
|
import { RelativeTime } from './chunk-GBKBME7Q.js';
|
|
4
4
|
import { Card } from './chunk-E7KRB77B.js';
|
|
5
5
|
import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
|
|
6
|
-
import { Checkbox } from './chunk-
|
|
6
|
+
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
7
7
|
import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
|
|
8
8
|
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
9
9
|
import { AvatarStack } from './chunk-2PSOUDCS.js';
|