@crewlethq/ui 0.97.0 → 0.98.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/AddPill/AddPill.d.ts +3 -1
- package/dist/AddPill/index.js +1 -1
- package/dist/{AddPill-FPM5RUKI.css → AddPill-OP3MMVZG.css} +13 -0
- package/dist/AgentHandoffPanel/index.js +12 -8
- package/dist/AppShell/index.js +9 -8
- package/dist/ArrangeFrame/index.js +9 -2
- package/dist/ArrangeList/index.js +10 -5
- package/dist/ArtifactBar/index.js +12 -11
- package/dist/ArtifactCard/index.js +9 -4
- package/dist/ArtifactPanel/index.js +8 -4
- package/dist/AttentionList/index.js +9 -2
- package/dist/AvatarPicker/index.js +13 -10
- package/dist/BriefCard/index.js +9 -2
- package/dist/Button/Button.d.ts +6 -0
- package/dist/Button/index.js +8 -1
- package/dist/Canvas/Canvas.d.ts +18 -1
- package/dist/Canvas/index.js +9 -8
- package/dist/{Canvas-4QJHVLJ4.css → Canvas-UQVR7IUL.css} +43 -0
- package/dist/CanvasBoard/index.js +11 -10
- package/dist/CanvasToolbar/index.js +10 -9
- package/dist/ChangeMark/index.js +4 -4
- package/dist/ChatMessage/index.js +9 -2
- package/dist/ChatThread/index.js +9 -2
- package/dist/CheckGrid/index.js +9 -4
- package/dist/Checkbox/index.js +8 -3
- package/dist/ChipField/index.js +1 -1
- package/dist/CodeBlock/index.js +11 -4
- package/dist/ColorField/index.js +8 -3
- package/dist/ColorSwatch/index.js +11 -4
- package/dist/Combobox/index.js +8 -3
- package/dist/CommandPalette/index.js +10 -7
- package/dist/CommentThread/index.js +10 -6
- package/dist/CompactNav/index.js +3 -3
- package/dist/Composer/index.js +8 -4
- package/dist/ConfirmField/index.js +8 -3
- package/dist/ConflictNote/index.js +9 -2
- package/dist/ContrastHelp/index.js +7 -4
- package/dist/Copyable/index.js +10 -3
- package/dist/DataGrid/index.js +10 -5
- package/dist/DataTable/index.js +12 -9
- package/dist/DataView/index.js +16 -13
- package/dist/DateTimePicker/index.js +9 -6
- package/dist/DeepWorkCard/index.js +10 -3
- package/dist/DocTabsEditor/index.js +10 -7
- package/dist/DownloadButton/index.js +9 -2
- package/dist/{Editor-63L5QQDN.js → Editor-QWGTLJHM.js} +9 -6
- package/dist/EmojiPicker/index.js +9 -8
- package/dist/EntityChip/EntityChip.d.ts +9 -1
- package/dist/EntityChip/index.js +1 -1
- package/dist/ErrorBoundary/index.js +9 -2
- package/dist/FactList/index.js +4 -4
- package/dist/FileDrop/index.js +9 -2
- package/dist/FilterPill/index.js +9 -2
- package/dist/FollowBanner/index.js +7 -3
- package/dist/HuePicker/index.js +11 -8
- package/dist/IconButton/IconButton.d.ts +6 -0
- package/dist/IconButton/index.js +8 -1
- package/dist/InlineEditor/index.js +7 -3
- package/dist/Input/index.js +7 -2
- package/dist/KeyValueRows/index.js +9 -4
- package/dist/Layer/index.d.ts +1 -1
- package/dist/Layer/index.js +1 -1
- package/dist/Layer/place.d.ts +6 -0
- package/dist/Link/Link.d.ts +6 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-CLURSR2O.css → Link-Z23PLCVS.css} +9 -0
- package/dist/LinkInterstitial/index.js +9 -6
- package/dist/List/List.d.ts +1 -7
- package/dist/ListInput/index.js +9 -5
- package/dist/LogoSlot/index.js +10 -3
- package/dist/MarkdownEditor/index.js +12 -9
- package/dist/MemberPicker/index.js +9 -4
- package/dist/Menu/Menu.d.ts +7 -1
- package/dist/Menu/index.js +8 -5
- package/dist/MergeConflicts/index.js +12 -9
- package/dist/MessageActions/index.js +10 -10
- package/dist/Modal/index.js +8 -5
- package/dist/ObjectHeader/index.js +2 -2
- package/dist/OpenInAppCard/index.js +10 -3
- package/dist/OrgLabel/OrgLabel.d.ts +14 -0
- package/dist/OrgLabel/index.js +1 -1
- package/dist/{OrgLabel-R5KY7C3W.css → OrgLabel-6UGWHDQQ.css} +38 -0
- package/dist/OrgNode/index.js +2 -2
- package/dist/OrgTable/OrgTable.d.ts +28 -3
- package/dist/OrgTable/index.d.ts +1 -1
- package/dist/OrgTable/index.js +17 -7
- package/dist/{OrgTable-JZSYTUIK.css → OrgTable-GBRYKTDH.css} +68 -2
- package/dist/PeekRail/index.js +10 -3
- package/dist/PeopleRail/index.js +10 -3
- package/dist/PinTile/index.js +9 -2
- package/dist/Popover/index.js +2 -2
- package/dist/PresenterView/index.js +9 -5
- package/dist/PrincipalPicker/index.js +9 -4
- package/dist/PropertyList/index.js +3 -3
- package/dist/ProposalCard/index.js +11 -6
- package/dist/RailList/index.js +3 -3
- package/dist/ReactionBar/index.js +10 -10
- package/dist/ReceiptStrip/index.js +9 -2
- package/dist/RecordChip/index.js +3 -3
- package/dist/ResultTableCard/index.js +10 -3
- package/dist/RichEditor/index.js +9 -2
- package/dist/SandboxedFrame/index.js +9 -2
- package/dist/SegmentedControl/index.js +11 -8
- package/dist/{SegmentedControl-7GY2KM44.css → SegmentedControl-PWTB7KEE.css} +4 -1
- package/dist/Select/index.js +2 -2
- package/dist/SelectionBar/index.js +7 -3
- package/dist/SendButton/index.js +9 -2
- package/dist/ShareDialog/index.js +11 -8
- package/dist/SheetColumnEditor/index.js +15 -12
- package/dist/SheetGrid/index.js +11 -10
- package/dist/Shortcut/index.js +1 -1
- package/dist/SidePanel/index.js +7 -3
- package/dist/SlideCompare/index.js +7 -3
- package/dist/SlideFilmstrip/index.js +9 -6
- package/dist/SlideGrid/index.js +1 -1
- package/dist/SlideNav/index.js +9 -2
- package/dist/SlideStage/index.js +1 -1
- package/dist/StatusLegend/StatusLegend.d.ts +31 -0
- package/dist/StatusLegend/index.d.ts +3 -0
- package/dist/StatusLegend/index.js +4 -0
- package/dist/StatusLegend-7MS2SBVC.css +77 -0
- package/dist/StatusLine/StatusLine.d.ts +32 -0
- package/dist/StatusLine/index.d.ts +3 -0
- package/dist/StatusLine/index.js +10 -0
- package/dist/StatusLine-C6IY3U2F.css +55 -0
- package/dist/Switch/Switch.d.ts +2 -0
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-XJE34BZH.css → Switch-M3VVQMCY.css} +21 -0
- package/dist/Switcher/index.js +11 -8
- package/dist/TableCells/index.js +2 -2
- package/dist/Tabs/index.js +9 -6
- package/dist/TagsInput/index.js +7 -3
- package/dist/ThemeSwitcher/index.js +12 -9
- package/dist/ThemeToggle/index.js +9 -2
- package/dist/TimeRangePicker/index.js +14 -11
- package/dist/TimeWindowPicker/index.js +11 -8
- package/dist/Toaster/index.js +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/Tooltip/index.js +3 -3
- package/dist/TreeCanvas/TreeCanvas.d.ts +38 -2
- package/dist/TreeCanvas/index.d.ts +1 -1
- package/dist/TreeCanvas/index.js +10 -9
- package/dist/{TreeCanvas-5FPK4CII.css → TreeCanvas-X5RCUSTP.css} +24 -0
- package/dist/TreeGrid/TreeGrid.d.ts +26 -3
- package/dist/TreeGrid/index.js +8 -4
- package/dist/{TreeGrid-522U6WBG.css → TreeGrid-PZ3DFVRO.css} +24 -0
- package/dist/ValueField/index.js +10 -6
- package/dist/VersionCompare/index.js +12 -9
- package/dist/VersionTimeline/index.js +9 -2
- package/dist/{chunk-QF5UNP4T.js → chunk-2PB5D4TI.js} +1 -1
- package/dist/{chunk-7ZJ662U4.js → chunk-2W4US3JO.js} +3 -3
- package/dist/{chunk-NCUSI4ZU.js → chunk-33632WEN.js} +54 -14
- package/dist/{chunk-VB3FVKNI.js → chunk-3JAGO633.js} +1 -1
- package/dist/{chunk-XA2QKGBJ.js → chunk-3QBQY2XK.js} +1 -1
- package/dist/{chunk-2BZ2W2YU.js → chunk-3Z2BSKS5.js} +5 -5
- package/dist/{chunk-5U6XAUYM.js → chunk-4FNAPCCK.js} +1 -1
- package/dist/{chunk-IJ7KLXUZ.js → chunk-4OHBHPIB.js} +1 -1
- package/dist/{chunk-3LKOXQWZ.js → chunk-4QTOAMQN.js} +1 -1
- package/dist/{chunk-5YXMKZUA.js → chunk-4XYKBZJE.js} +8 -3
- package/dist/{chunk-EHFQMY3B.js → chunk-52UBOSNQ.js} +1 -1
- package/dist/{chunk-KCLHYBIZ.js → chunk-56ES76ST.js} +1 -1
- package/dist/{chunk-B3BJ66GQ.js → chunk-5JGEEUWQ.js} +2 -2
- package/dist/{chunk-WJZTI2WC.js → chunk-5KJOG5YP.js} +7 -7
- package/dist/{chunk-IUBOLGHG.js → chunk-5KKZCSER.js} +1 -1
- package/dist/{chunk-7K6LVM5I.js → chunk-63NRTOGO.js} +3 -3
- package/dist/chunk-6FS6W3P5.js +37 -0
- package/dist/chunk-6FVTKYH6.js +37 -0
- package/dist/{chunk-DGXZ635L.js → chunk-6KUOHUY5.js} +29 -24
- package/dist/{chunk-5AJR6X75.js → chunk-6V465OCU.js} +1 -1
- package/dist/{chunk-FRERGOW3.js → chunk-7IW4BVZF.js} +1 -1
- package/dist/{chunk-G3JY2DLC.js → chunk-7L6JJ7VJ.js} +1 -1
- package/dist/{chunk-CWJLDCB7.js → chunk-A5ISYHW7.js} +3 -3
- package/dist/{chunk-SDHLAW3G.js → chunk-AAP7A6WV.js} +2 -2
- package/dist/{chunk-AQCWYVE3.js → chunk-AC255TMQ.js} +1 -1
- package/dist/{chunk-K4LZXSKZ.js → chunk-AEFR4M2W.js} +1 -1
- package/dist/{chunk-GC3UQZPL.js → chunk-AEUZU5SA.js} +1 -1
- package/dist/{chunk-5MOBCUNA.js → chunk-AHPMAPVN.js} +2 -2
- package/dist/{chunk-2HBY3FOZ.js → chunk-AP6SM6BL.js} +3 -3
- package/dist/{chunk-NTGAPLMJ.js → chunk-BC4H2EMM.js} +1 -1
- package/dist/{chunk-OGOLTPFQ.js → chunk-BCZQDB3U.js} +1 -1
- package/dist/{chunk-QW4LAFTX.js → chunk-BK4KUIAZ.js} +1 -1
- package/dist/{chunk-T2GC7UAP.js → chunk-C34CKBKF.js} +1 -1
- package/dist/{chunk-LAZ72JOP.js → chunk-CQIODINH.js} +2 -2
- package/dist/{chunk-HZBXC3YD.js → chunk-CTNQOSQF.js} +2 -2
- package/dist/{chunk-3N3XK2G5.js → chunk-CZKEABMI.js} +3 -1
- package/dist/{chunk-HZPUMGQV.js → chunk-D4MMW2NF.js} +3 -3
- package/dist/{chunk-K66TAOJA.js → chunk-DBH7ORCH.js} +2 -2
- package/dist/{chunk-FXGQWLZ6.js → chunk-DK7CXQFY.js} +1 -1
- package/dist/{chunk-RO5JU6SN.js → chunk-E23AXDKL.js} +1 -1
- package/dist/{chunk-SKGOKLJD.js → chunk-E2XDYCFO.js} +1 -1
- package/dist/{chunk-XSJSDNRR.js → chunk-EF3CJDZO.js} +3 -3
- package/dist/{chunk-ZXXZESCD.js → chunk-EMDRNB23.js} +3 -3
- package/dist/{chunk-BHVEHAAX.js → chunk-EMXUREKE.js} +3 -3
- package/dist/{chunk-3P7XS5VT.js → chunk-FBNGCPKZ.js} +2 -2
- package/dist/{chunk-OMV5W53A.js → chunk-FIX72ZEC.js} +15 -1
- package/dist/{chunk-QWRAWKB2.js → chunk-FMOYO5OO.js} +2 -2
- package/dist/{chunk-GYVEKHVI.js → chunk-FP6OFRAU.js} +1 -1
- package/dist/{chunk-AVWEXCJ4.js → chunk-GA773IOZ.js} +2 -2
- package/dist/{chunk-XJMES7AE.js → chunk-GBBRSZ2J.js} +1 -1
- package/dist/{chunk-SNQ7PH3D.js → chunk-GDYZPBLI.js} +1 -1
- package/dist/{chunk-DRFOTWJE.js → chunk-GWRU4JHQ.js} +2 -2
- package/dist/{chunk-3NO5GRZY.js → chunk-HMXTZKAI.js} +4 -4
- package/dist/{chunk-QDGHOGSW.js → chunk-HTCNTCBE.js} +2 -2
- package/dist/{chunk-SRHLFQ4J.js → chunk-HU5PAZMU.js} +3 -3
- package/dist/{chunk-T5HZ5AYW.js → chunk-IA3NL54W.js} +4 -4
- package/dist/{chunk-3IWZVEXA.js → chunk-IAR2ULSK.js} +1 -1
- package/dist/{chunk-4ME4J3YY.js → chunk-IDBGDMQS.js} +1 -1
- package/dist/{chunk-WSHKY7SH.js → chunk-IGECN5B6.js} +1 -1
- package/dist/{chunk-OMMHKM6I.js → chunk-IYJCJOHW.js} +1 -1
- package/dist/{chunk-YTIXNVS7.js → chunk-J3QFTG4B.js} +3 -3
- package/dist/{chunk-TGGYSQRD.js → chunk-JK6WLRYP.js} +34 -22
- package/dist/{chunk-NKBKHOMU.js → chunk-JQCKRABK.js} +1 -1
- package/dist/{chunk-PICHV3PC.js → chunk-JZADK2FT.js} +3 -3
- package/dist/{chunk-4RLUVHYP.js → chunk-L72GPZ56.js} +1 -1
- package/dist/{chunk-EC6EUIAD.js → chunk-LCAKSEMB.js} +1 -1
- package/dist/{chunk-IPMJGK2Q.js → chunk-LYVWOAUN.js} +1 -1
- package/dist/{chunk-CFJ7FQZI.js → chunk-M6EVTMTK.js} +1 -1
- package/dist/{chunk-TGSOHXXH.js → chunk-M6G7XLLP.js} +1 -1
- package/dist/{chunk-JIBWNHTC.js → chunk-MIQNKO2R.js} +1 -1
- package/dist/{chunk-QGEDXYLB.js → chunk-MJ73YBP2.js} +2 -2
- package/dist/{chunk-BBKYJQZ6.js → chunk-MOP4D5HF.js} +5 -5
- package/dist/{chunk-Y7PPKQFQ.js → chunk-MTKHMGJH.js} +5 -5
- package/dist/{chunk-KQWJWTED.js → chunk-N7H5TFQK.js} +1 -1
- package/dist/{chunk-LJ3KWQLP.js → chunk-NBOHNPZB.js} +1 -1
- package/dist/{chunk-M576OESX.js → chunk-NKNG6YER.js} +1 -1
- package/dist/{chunk-ZDMZP5H4.js → chunk-OAKECTYH.js} +6 -6
- package/dist/{chunk-LMEMH6DO.js → chunk-OSU4ELU3.js} +2 -2
- package/dist/{chunk-5ILRWUE7.js → chunk-P667Y6NQ.js} +1 -1
- package/dist/{chunk-LGPTZGHJ.js → chunk-PF6X74C5.js} +8 -8
- package/dist/{chunk-6FAI4VLM.js → chunk-PJMDZEWY.js} +1 -1
- package/dist/{chunk-OSH55AKI.js → chunk-PMO6W5NE.js} +3 -3
- package/dist/{chunk-ZPTKAYJK.js → chunk-QH2YJDRI.js} +1 -1
- package/dist/{chunk-VTQSSU2E.js → chunk-QND44ROZ.js} +1 -1
- package/dist/{chunk-AELKT34H.js → chunk-QPRTTTUN.js} +1 -1
- package/dist/{chunk-7ZSEUO5Q.js → chunk-QZKGFBAR.js} +2 -2
- package/dist/{chunk-OC6BMY3C.js → chunk-RBR4AHBT.js} +1 -1
- package/dist/chunk-ROFAWLFS.js +352 -0
- package/dist/{chunk-VONEKR3J.js → chunk-RPCIU4S5.js} +1 -1
- package/dist/{chunk-2NNMBEJV.js → chunk-RSI6EJSH.js} +5 -5
- package/dist/{chunk-GNJXUNEU.js → chunk-RVJJZVVS.js} +1 -1
- package/dist/{chunk-V6WDJUYK.js → chunk-SF6FUU42.js} +1 -1
- package/dist/{chunk-CVKANYHD.js → chunk-SSN7Y3UY.js} +1 -1
- package/dist/{chunk-BMBQ6UMD.js → chunk-TAWPKNNZ.js} +1 -1
- package/dist/{chunk-I4IO56EY.js → chunk-TKAERQQF.js} +1 -1
- package/dist/{chunk-AXEXOAZQ.js → chunk-TVGTMKYO.js} +1 -1
- package/dist/{chunk-FPU7AA3X.js → chunk-UUDQEDHQ.js} +72 -26
- package/dist/{chunk-2SVQBQAD.js → chunk-V7WDP3HR.js} +3 -3
- package/dist/{chunk-65RFU7LF.js → chunk-VDQGWPGQ.js} +4 -1
- package/dist/{chunk-H4WQWCHP.js → chunk-VULZ4FAA.js} +2 -2
- package/dist/{chunk-UAUP6XGK.js → chunk-WDLAAZFZ.js} +30 -24
- package/dist/{chunk-6EZX26BD.js → chunk-WF2UJYCT.js} +1 -1
- package/dist/{chunk-EVM6GYZ2.js → chunk-WSR4OB4T.js} +1 -1
- package/dist/{chunk-LM3ISVJA.js → chunk-X4HBZSXA.js} +1 -1
- package/dist/{chunk-CDNZTCP2.js → chunk-XHQ2JJCB.js} +2 -2
- package/dist/{chunk-O3II3KJY.js → chunk-XLVWSNW3.js} +3 -3
- package/dist/{chunk-TXOTL7AA.js → chunk-YEQTGPCE.js} +3 -3
- package/dist/{chunk-ZWCK4N4L.js → chunk-YS4PWTNL.js} +1 -1
- package/dist/{chunk-B3PK2LND.js → chunk-YYKLPEOS.js} +1 -1
- package/dist/chunk-Z6E3WOWS.js +189 -0
- package/dist/{chunk-ETNQYT5O.js → chunk-ZGKGSW42.js} +2 -2
- package/dist/{chunk-OPVTNHPH.js → chunk-ZKC3QFDX.js} +2 -2
- package/dist/{chunk-NTRKC2JV.js → chunk-ZUWEVSDP.js} +1 -1
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +133 -131
- package/dist/index.js +133 -131
- package/dist/styles.css +391 -12
- package/dist/utils/index.js +2 -2
- package/package.json +3 -3
- package/scripts/check-css-literals.mjs +3 -4
- package/dist/chunk-DWQYV5AV.js +0 -141
- package/dist/chunk-ZDWAIVWL.js +0 -310
- /package/dist/{chunk-VNACAMDK.js → chunk-2DYEPDT7.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Avatar } from './chunk-XZY6S3UC.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './OrgLabel-
|
|
3
|
+
import './OrgLabel-6UGWHDQQ.css';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
function OrgLabel(props) {
|
|
@@ -14,7 +14,7 @@ function OrgLabel(props) {
|
|
|
14
14
|
props.iconRing === true && "crewlet-org-label__icon--ring"
|
|
15
15
|
),
|
|
16
16
|
"aria-hidden": "true",
|
|
17
|
-
children: props.icon
|
|
17
|
+
children: props.logo ? /* @__PURE__ */ jsx("img", { className: "crewlet-org-label__logo", src: props.logo.src, alt: props.logo.alt, draggable: false }) : props.icon
|
|
18
18
|
}
|
|
19
19
|
) : /* @__PURE__ */ jsx("span", { className: "crewlet-org-label__icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
20
20
|
Avatar,
|
|
@@ -41,12 +41,17 @@ function OrgLabel(props) {
|
|
|
41
41
|
}
|
|
42
42
|
function Words({
|
|
43
43
|
name,
|
|
44
|
+
nameAction,
|
|
44
45
|
caption,
|
|
45
46
|
captionMarks,
|
|
46
47
|
className
|
|
47
48
|
}) {
|
|
49
|
+
const named = /* @__PURE__ */ jsx("span", { className: "crewlet-org-label__name", children: name });
|
|
48
50
|
return /* @__PURE__ */ jsxs("span", { className: cx("crewlet-org-label__text", className), children: [
|
|
49
|
-
/* @__PURE__ */
|
|
51
|
+
nameAction === void 0 || nameAction === null ? named : /* @__PURE__ */ jsxs("span", { className: "crewlet-org-label__name-line", children: [
|
|
52
|
+
named,
|
|
53
|
+
nameAction
|
|
54
|
+
] }),
|
|
50
55
|
(caption !== void 0 || captionMarks !== void 0) && /* @__PURE__ */ jsxs("span", { className: "crewlet-org-label__caption", children: [
|
|
51
56
|
caption !== void 0 && /* @__PURE__ */ jsx("span", { className: "crewlet-org-label__kind", children: caption }),
|
|
52
57
|
captionMarks
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useDownload, safeFilename } from './chunk-YNRKVY7X.js';
|
|
2
|
-
import { Button } from './chunk-
|
|
2
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
4
4
|
import { useMemo, useState, useRef, useEffect, useCallback } from 'react';
|
|
5
5
|
import { CheckGlyph, CircleAlertGlyph, SaveGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SECRET_INPUT_PROPS } from './chunk-NICEDVZM.js';
|
|
2
2
|
import { characterCountState, CharacterCount } from './chunk-PGCLHYVP.js';
|
|
3
|
+
import { IconButton } from './chunk-WDLAAZFZ.js';
|
|
3
4
|
import { isComposing } from './chunk-TUEM2XIW.js';
|
|
4
5
|
import { useFocusModality } from './chunk-4ITETIGZ.js';
|
|
5
|
-
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
6
6
|
import { useHeadingLevel, headingTag, HeadingLevelProvider, nextHeadingLevel } from './chunk-PQADV6P6.js';
|
|
7
7
|
import { announce } from './chunk-2G355KDJ.js';
|
|
8
8
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { emojiName, EmojiPicker } from './chunk-D4MMW2NF.js';
|
|
1
2
|
import { heldHint } from './chunk-TDFLCUBE.js';
|
|
2
|
-
import {
|
|
3
|
-
import { Tooltip } from './chunk-7ZSEUO5Q.js';
|
|
3
|
+
import { Tooltip } from './chunk-QZKGFBAR.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './ChatScale-L4SIHSKL.css';
|
|
6
6
|
import './ReactionBar-XXI4V7XG.css';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
1
|
+
import { Select } from './chunk-IAR2ULSK.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-PJMDZEWY.js';
|
|
4
4
|
import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
5
|
-
import { Checkbox } from './chunk-
|
|
6
|
-
import { Menu } from './chunk-
|
|
7
|
-
import { FormField, Input } from './chunk-
|
|
5
|
+
import { Checkbox } from './chunk-M6G7XLLP.js';
|
|
6
|
+
import { Menu } from './chunk-JK6WLRYP.js';
|
|
7
|
+
import { FormField, Input } from './chunk-56ES76ST.js';
|
|
8
8
|
import { Kbd } from './chunk-CMAZZY2I.js';
|
|
9
|
-
import { Button } from './chunk-
|
|
10
|
-
import { IconButton } from './chunk-
|
|
9
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
10
|
+
import { IconButton } from './chunk-WDLAAZFZ.js';
|
|
11
11
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
12
12
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
13
13
|
import './SheetColumnEditor-BO2HKFRB.css';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { today, CalendarGrid, shiftMonth, compareDays } from './chunk-EE3DJMSQ.js';
|
|
2
|
-
import { Popover } from './chunk-
|
|
3
|
-
import { Button } from './chunk-
|
|
2
|
+
import { Popover } from './chunk-LCAKSEMB.js';
|
|
3
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
4
|
+
import { IconButton } from './chunk-WDLAAZFZ.js';
|
|
4
5
|
import { useFocusModality } from './chunk-4ITETIGZ.js';
|
|
5
|
-
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './DateTimePicker-PM6TIRIX.css';
|
|
8
8
|
import { useMemo, useState, useEffect } from 'react';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StatusDot } from './chunk-QRE6JCHS.js';
|
|
2
|
+
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
3
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
+
import './StatusLegend-7MS2SBVC.css';
|
|
5
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function StatusLegend({ label, items, value = null, onValueChange, countLabel = String, className }) {
|
|
8
|
+
const content = (item) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9
|
+
/* @__PURE__ */ jsx(StatusDot, { tone: item.tone, children: item.label }),
|
|
10
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-status-legend__count", children: item.count.toLocaleString() })
|
|
11
|
+
] });
|
|
12
|
+
const named = (item) => `${item.label}, ${countLabel(item.count)}`;
|
|
13
|
+
if (!onValueChange) {
|
|
14
|
+
return /* @__PURE__ */ jsx("ul", { className: cx("crewlet-status-legend", className), "aria-label": label, children: items.map((item) => /* @__PURE__ */ jsxs("li", { className: "crewlet-status-legend__item", "data-empty": item.count === 0 ? "" : void 0, children: [
|
|
15
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: content(item) }),
|
|
16
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: named(item) })
|
|
17
|
+
] }, item.key)) });
|
|
18
|
+
}
|
|
19
|
+
return /* @__PURE__ */ jsx("div", { role: "group", "aria-label": label, className: cx("crewlet-status-legend", className), children: items.map((item) => {
|
|
20
|
+
const pressed = value === item.key;
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
"button",
|
|
23
|
+
{
|
|
24
|
+
type: "button",
|
|
25
|
+
className: "crewlet-status-legend__item",
|
|
26
|
+
"aria-pressed": pressed,
|
|
27
|
+
"aria-label": named(item),
|
|
28
|
+
"data-empty": item.count === 0 ? "" : void 0,
|
|
29
|
+
onClick: () => onValueChange(pressed ? null : item.key),
|
|
30
|
+
children: content(item)
|
|
31
|
+
},
|
|
32
|
+
item.key
|
|
33
|
+
);
|
|
34
|
+
}) });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { StatusLegend };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StatusDot } from './chunk-QRE6JCHS.js';
|
|
2
|
+
import { Tooltip } from './chunk-QZKGFBAR.js';
|
|
3
|
+
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
4
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
+
import './StatusLine-C6IY3U2F.css';
|
|
6
|
+
import { Fragment } from 'react';
|
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function StatusLine({ label, tone, pulse = false, notes = [], detail, overflow = "wrap", className }) {
|
|
10
|
+
const word = tone === void 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__word", children: label }) : /* @__PURE__ */ jsx(StatusDot, { tone, pulse, children: label });
|
|
11
|
+
const shown = notes.filter((note) => note !== null && note !== void 0 && note !== false && note !== "");
|
|
12
|
+
const described = detail !== void 0 && detail !== null && detail !== false && detail !== "";
|
|
13
|
+
return /* @__PURE__ */ jsxs(
|
|
14
|
+
"span",
|
|
15
|
+
{
|
|
16
|
+
className: cx("crewlet-status-line", overflow === "clip" && "crewlet-status-line--clip", className),
|
|
17
|
+
"data-quiet": tone === void 0 ? "" : void 0,
|
|
18
|
+
children: [
|
|
19
|
+
described ? /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: detail }), placement: "top", children: /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__main", children: word }) }) : /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__main", children: word }),
|
|
20
|
+
shown.length > 0 && /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__notes", children: shown.map((note, at) => (
|
|
21
|
+
// The middle dot is drawn; a reader hears a pause instead.
|
|
22
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
23
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-status-line__note", children: [
|
|
24
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\xB7 " }),
|
|
25
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: ", " }),
|
|
26
|
+
note
|
|
27
|
+
] }),
|
|
28
|
+
" "
|
|
29
|
+
] }, at)
|
|
30
|
+
)) }),
|
|
31
|
+
described && /* @__PURE__ */ jsx(VisuallyHidden, { children: detail })
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { StatusLine };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Spinner } from './chunk-XSPCITPN.js';
|
|
2
|
+
import { heldHint } from './chunk-TDFLCUBE.js';
|
|
3
|
+
import { Tooltip } from './chunk-QZKGFBAR.js';
|
|
2
4
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
3
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
6
|
import './Button-GDEBGBX6.css';
|
|
@@ -44,6 +46,7 @@ var Button = forwardRef(function Button2({
|
|
|
44
46
|
loading = false,
|
|
45
47
|
pressed,
|
|
46
48
|
disabledReason,
|
|
49
|
+
tooltip,
|
|
47
50
|
disabled,
|
|
48
51
|
onClick,
|
|
49
52
|
title,
|
|
@@ -51,6 +54,7 @@ var Button = forwardRef(function Button2({
|
|
|
51
54
|
...rest
|
|
52
55
|
}, ref) {
|
|
53
56
|
const reasonId = useId();
|
|
57
|
+
const tip = typeof tooltip === "string" ? heldHint(tooltip, disabledReason) : tooltip ? disabledReason : void 0;
|
|
54
58
|
const look = { variant, size, shape, block, flush, className};
|
|
55
59
|
const classes = buttonClass(look, loading ? "crewlet-btn--loading" : void 0);
|
|
56
60
|
if (asChild) {
|
|
@@ -66,31 +70,32 @@ var Button = forwardRef(function Button2({
|
|
|
66
70
|
);
|
|
67
71
|
}
|
|
68
72
|
const inert = loading || disabledReason !== void 0;
|
|
73
|
+
const button = /* @__PURE__ */ jsx(
|
|
74
|
+
"button",
|
|
75
|
+
{
|
|
76
|
+
...rest,
|
|
77
|
+
ref,
|
|
78
|
+
type,
|
|
79
|
+
className: classes,
|
|
80
|
+
disabled,
|
|
81
|
+
title,
|
|
82
|
+
"aria-label": rest["aria-label"] ?? (children === void 0 ? title : void 0),
|
|
83
|
+
"aria-pressed": pressed,
|
|
84
|
+
"aria-busy": loading || void 0,
|
|
85
|
+
"aria-disabled": inert || void 0,
|
|
86
|
+
"aria-describedby": disabledReason === void 0 ? rest["aria-describedby"] : cx(rest["aria-describedby"], reasonId),
|
|
87
|
+
onClick: (event) => {
|
|
88
|
+
if (inert) {
|
|
89
|
+
event.preventDefault();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
onClick?.(event);
|
|
93
|
+
},
|
|
94
|
+
children: /* @__PURE__ */ jsx(Inner, { leadingIcon, trailingIcon, loading, children })
|
|
95
|
+
}
|
|
96
|
+
);
|
|
69
97
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
70
|
-
/* @__PURE__ */ jsx(
|
|
71
|
-
"button",
|
|
72
|
-
{
|
|
73
|
-
...rest,
|
|
74
|
-
ref,
|
|
75
|
-
type,
|
|
76
|
-
className: classes,
|
|
77
|
-
disabled,
|
|
78
|
-
title,
|
|
79
|
-
"aria-label": rest["aria-label"] ?? (children === void 0 ? title : void 0),
|
|
80
|
-
"aria-pressed": pressed,
|
|
81
|
-
"aria-busy": loading || void 0,
|
|
82
|
-
"aria-disabled": inert || void 0,
|
|
83
|
-
"aria-describedby": disabledReason === void 0 ? rest["aria-describedby"] : cx(rest["aria-describedby"], reasonId),
|
|
84
|
-
onClick: (event) => {
|
|
85
|
-
if (inert) {
|
|
86
|
-
event.preventDefault();
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
onClick?.(event);
|
|
90
|
-
},
|
|
91
|
-
children: /* @__PURE__ */ jsx(Inner, { leadingIcon, trailingIcon, loading, children })
|
|
92
|
-
}
|
|
93
|
-
),
|
|
98
|
+
tip ? /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: tip }), children: button }) : button,
|
|
94
99
|
disabledReason === void 0 ? null : /* @__PURE__ */ jsx(VisuallyHidden, { id: reasonId, children: disabledReason })
|
|
95
100
|
] });
|
|
96
101
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-FP6OFRAU.js';
|
|
3
3
|
import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -4,7 +4,7 @@ import { RelativeTime } from './chunk-EJNJMHQG.js';
|
|
|
4
4
|
import { Card } from './chunk-U2IQNDDR.js';
|
|
5
5
|
import { AvatarStack } from './chunk-YTLWOHOY.js';
|
|
6
6
|
import { ArtifactKindGround } from './chunk-J5T5TDM2.js';
|
|
7
|
-
import { Checkbox } from './chunk-
|
|
7
|
+
import { Checkbox } from './chunk-M6G7XLLP.js';
|
|
8
8
|
import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
|
|
9
9
|
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
10
10
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { releaseFocus, usePresence } from './chunk-PCAT2EFB.js';
|
|
2
2
|
import { useRailShape, RailShapeContext, RailLeavingContext } from './chunk-JLOESTT2.js';
|
|
3
3
|
import { useMediaMatch } from './chunk-YJQXESOJ.js';
|
|
4
|
-
import {
|
|
5
|
-
import { Menu } from './chunk-TGGYSQRD.js';
|
|
4
|
+
import { Menu } from './chunk-JK6WLRYP.js';
|
|
6
5
|
import { PeekContext, AsideContext, ResizeHandle, clampSize } from './chunk-PIYJNCN7.js';
|
|
7
6
|
import { isApplePlatform, ariaKeyshortcuts, Kbd } from './chunk-CMAZZY2I.js';
|
|
8
7
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
8
|
+
import { IconButton } from './chunk-WDLAAZFZ.js';
|
|
9
|
+
import { Tooltip } from './chunk-QZKGFBAR.js';
|
|
9
10
|
import { focusables, useModalLayer, isComposing, layerCount } from './chunk-TUEM2XIW.js';
|
|
10
11
|
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
11
|
-
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
12
12
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
13
13
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
14
14
|
import './HitArea-QUOS6ZDJ.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Checkbox } from './chunk-
|
|
2
|
-
import { IconButton } from './chunk-
|
|
1
|
+
import { Checkbox } from './chunk-M6G7XLLP.js';
|
|
2
|
+
import { IconButton } from './chunk-WDLAAZFZ.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './MemberPicker-ZD35VEK6.css';
|
|
5
5
|
import { useId, useState } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useListbox, useOptionKeys } from './chunk-YGRTX67J.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
2
|
+
import { Input } from './chunk-56ES76ST.js';
|
|
3
3
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './HitArea-QUOS6ZDJ.css';
|
|
@@ -2,7 +2,7 @@ import { SuggestionList, SuggestionRow } from './chunk-Y7PVLEZJ.js';
|
|
|
2
2
|
import { developing } from './chunk-6C7GQOBV.js';
|
|
3
3
|
import { StatusCard } from './chunk-4BEMS6Q7.js';
|
|
4
4
|
import { StatusDot } from './chunk-QRE6JCHS.js';
|
|
5
|
-
import { Button } from './chunk-
|
|
5
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './BriefCard-QCL7MVUV.css';
|
|
8
8
|
import { useEffect } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Checkbox } from './chunk-
|
|
1
|
+
import { Checkbox } from './chunk-M6G7XLLP.js';
|
|
2
2
|
import { useMediaMatch } from './chunk-YJQXESOJ.js';
|
|
3
3
|
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
4
|
-
import { Button } from './chunk-
|
|
4
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './DataGrid-SAHEL4SN.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useReorder } from './chunk-BVML4UVB.js';
|
|
2
|
-
import { Menu } from './chunk-
|
|
3
|
-
import { Input } from './chunk-
|
|
4
|
-
import { IconButton } from './chunk-
|
|
2
|
+
import { Menu } from './chunk-JK6WLRYP.js';
|
|
3
|
+
import { Input } from './chunk-56ES76ST.js';
|
|
4
|
+
import { IconButton } from './chunk-WDLAAZFZ.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './DocTabsEditor-25J6MYZF.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
|
|
2
2
|
import { RelativeTime } from './chunk-EJNJMHQG.js';
|
|
3
3
|
import { Timeline } from './chunk-ZDJQQ4LU.js';
|
|
4
|
-
import { Button } from './chunk-
|
|
4
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './VersionTimeline-DEAQ7CJG.css';
|
|
7
7
|
import { RotateCcwClockGlyph, PencilGlyph, ShieldGlyph, DatabaseGlyph, UploadGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Text } from './chunk-O5CEG7TQ.js';
|
|
2
|
-
import { Link } from './chunk-
|
|
2
|
+
import { Link } from './chunk-2PB5D4TI.js';
|
|
3
3
|
import { Tag } from './chunk-SJ3EUCFD.js';
|
|
4
4
|
import { RelativeTime } from './chunk-EJNJMHQG.js';
|
|
5
5
|
import { EmptyValue } from './chunk-RE3FBGQQ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FileDrop, FilePickButton } from './chunk-
|
|
1
|
+
import { FileDrop, FilePickButton } from './chunk-N7H5TFQK.js';
|
|
2
2
|
import { contrastRatio } from './chunk-EW4ULFHK.js';
|
|
3
3
|
import { normalizeHex } from './chunk-7W3LYIOC.js';
|
|
4
|
-
import { Button } from './chunk-
|
|
4
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './LogoSlot-APCMGE6S.css';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { safeHref } from './chunk-KBZO4B33.js';
|
|
2
2
|
import { IconTile } from './chunk-3LI4TRUR.js';
|
|
3
|
-
import { ReceiptStrip } from './chunk-
|
|
3
|
+
import { ReceiptStrip } from './chunk-YS4PWTNL.js';
|
|
4
4
|
import { StatusCard } from './chunk-4BEMS6Q7.js';
|
|
5
|
-
import { ButtonLink, Button } from './chunk-
|
|
5
|
+
import { ButtonLink, Button } from './chunk-6KUOHUY5.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './OpenInAppCard-CKHCK7DO.css';
|
|
8
8
|
import { CircleCheckGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Switch-
|
|
3
|
+
import './Switch-M3VVQMCY.css';
|
|
4
4
|
import { forwardRef, useId } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -12,6 +12,7 @@ var Switch = forwardRef(function Switch2({
|
|
|
12
12
|
onChange,
|
|
13
13
|
onClick,
|
|
14
14
|
labelHidden = false,
|
|
15
|
+
size = "md",
|
|
15
16
|
disabledReason,
|
|
16
17
|
className = "",
|
|
17
18
|
disabled,
|
|
@@ -36,6 +37,7 @@ var Switch = forwardRef(function Switch2({
|
|
|
36
37
|
"crewlet-switch",
|
|
37
38
|
framed && "crewlet-switch--framed",
|
|
38
39
|
labelHidden && "crewlet-switch--label-hidden",
|
|
40
|
+
size === "sm" && "crewlet-switch--sm",
|
|
39
41
|
(disabled || inert) && "is-disabled",
|
|
40
42
|
className
|
|
41
43
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Popover } from './chunk-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Popover } from './chunk-LCAKSEMB.js';
|
|
2
|
+
import { Input } from './chunk-56ES76ST.js';
|
|
3
|
+
import { Tooltip } from './chunk-QZKGFBAR.js';
|
|
4
4
|
import { isComposing } from './chunk-TUEM2XIW.js';
|
|
5
5
|
import './EmojiPicker-FMWYN2WX.css';
|
|
6
6
|
import { useId, useState, useRef, useMemo } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HuePicker } from './chunk-
|
|
2
|
-
import { Popover } from './chunk-
|
|
1
|
+
import { HuePicker } from './chunk-PJMDZEWY.js';
|
|
2
|
+
import { Popover } from './chunk-LCAKSEMB.js';
|
|
3
3
|
import { CharacterPicker } from './chunk-LNQSNXGJ.js';
|
|
4
4
|
import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
5
5
|
import { Avatar } from './chunk-XZY6S3UC.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SlideStage } from './chunk-O6EV6GKI.js';
|
|
2
2
|
import { useReorder } from './chunk-BVML4UVB.js';
|
|
3
|
-
import { Menu } from './chunk-
|
|
3
|
+
import { Menu } from './chunk-JK6WLRYP.js';
|
|
4
4
|
import { Kbd, isApplePlatform } from './chunk-CMAZZY2I.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useAppShellAside, ResizeHandle } from './chunk-PIYJNCN7.js';
|
|
2
|
+
import { IconButton } from './chunk-WDLAAZFZ.js';
|
|
2
3
|
import { useModalLayer } from './chunk-TUEM2XIW.js';
|
|
3
|
-
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
4
4
|
import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import { createContext, useId, useRef, useContext, useLayoutEffect, useEffect, useMemo } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Toolbar } from './chunk-NXFTCPF6.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
3
|
-
import { tabId } from './chunk-
|
|
4
|
-
import { IconButton } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-FP6OFRAU.js';
|
|
3
|
+
import { tabId } from './chunk-IYJCJOHW.js';
|
|
4
|
+
import { IconButton } from './chunk-WDLAAZFZ.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './MarkdownEditor-BLCJRGDC.css';
|
|
7
7
|
import { useState, useId, useRef, useLayoutEffect, useImperativeHandle } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
2
|
+
import { IconButton } from './chunk-WDLAAZFZ.js';
|
|
1
3
|
import { useComposedRef } from './chunk-L72URIHR.js';
|
|
2
|
-
import {
|
|
3
|
-
import { useLayerContainer } from './chunk-OMV5W53A.js';
|
|
4
|
+
import { useLayerContainer } from './chunk-FIX72ZEC.js';
|
|
4
5
|
import { focusables, useModalLayer, useBodyScrollLock } from './chunk-TUEM2XIW.js';
|
|
5
|
-
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
6
6
|
import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './Modal-GKUOO7PZ.css';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Timeline } from './chunk-ZDJQQ4LU.js';
|
|
2
2
|
import { Section } from './chunk-WFCWPXJN.js';
|
|
3
|
-
import { Composer } from './chunk-
|
|
3
|
+
import { Composer } from './chunk-DK7CXQFY.js';
|
|
4
4
|
import { Disclosure } from './chunk-NAHA62WD.js';
|
|
5
|
-
import { ArtifactPanel } from './chunk-
|
|
6
|
-
import { Button } from './chunk-
|
|
5
|
+
import { ArtifactPanel } from './chunk-P667Y6NQ.js';
|
|
6
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './AgentHandoffPanel-AIU7YWWB.css';
|
|
9
9
|
import { useId, useRef, useEffect } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
2
2
|
import { Callout } from './chunk-BPCY7ZID.js';
|
|
3
3
|
import { Skeleton } from './chunk-I4IUX3JF.js';
|
|
4
|
-
import { Button } from './chunk-
|
|
4
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
5
5
|
import './RichEditor-5CF3QV3J.css';
|
|
6
6
|
import { forwardRef, useState, useEffect } from 'react';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -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-QWGTLJHM.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -23,6 +23,20 @@ function placePopup(anchor, size, bounds, gap = LAYER_GAP, prefer = "below") {
|
|
|
23
23
|
function viewportBounds() {
|
|
24
24
|
return { x: 0, y: 0, width: window.innerWidth, height: window.innerHeight };
|
|
25
25
|
}
|
|
26
|
+
function visibleBounds(host, inHost, gap = LAYER_GAP) {
|
|
27
|
+
const view = viewportBounds();
|
|
28
|
+
const box = inHost ? host : view;
|
|
29
|
+
const left = Math.max(box.x, view.x);
|
|
30
|
+
const top = Math.max(box.y, view.y);
|
|
31
|
+
const right = Math.min(box.x + box.width, view.x + view.width);
|
|
32
|
+
const bottom = Math.min(box.y + box.height, view.y + view.height);
|
|
33
|
+
return {
|
|
34
|
+
x: left - (inHost ? box.x : 0) + gap,
|
|
35
|
+
y: top - (inHost ? box.y : 0) + gap,
|
|
36
|
+
width: Math.max(0, right - left - 2 * gap),
|
|
37
|
+
height: Math.max(0, bottom - top - 2 * gap)
|
|
38
|
+
};
|
|
39
|
+
}
|
|
26
40
|
function anchorGone(anchor, host, inHost) {
|
|
27
41
|
const own = {
|
|
28
42
|
x: anchor.left - (inHost ? host.x : 0),
|
|
@@ -49,4 +63,4 @@ function useLayerContainer() {
|
|
|
49
63
|
return typeof document === "undefined" ? null : document.body;
|
|
50
64
|
}
|
|
51
65
|
|
|
52
|
-
export { LAYER_GAP, LAYER_REPOSITION_EVENT, LayerHost, anchorGone, outsideBounds, placePopup, useLayerContainer, viewportBounds };
|
|
66
|
+
export { LAYER_GAP, LAYER_REPOSITION_EVENT, LayerHost, anchorGone, outsideBounds, placePopup, useLayerContainer, viewportBounds, visibleBounds };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LockedLabel } from './chunk-TEV5REGB.js';
|
|
2
|
-
import { tokenMs } from './chunk-HTS5RJ7S.js';
|
|
3
|
-
import { LAYER_GAP, useLayerContainer, viewportBounds, anchorGone, LAYER_REPOSITION_EVENT } from './chunk-OMV5W53A.js';
|
|
4
2
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
3
|
+
import { tokenMs } from './chunk-HTS5RJ7S.js';
|
|
4
|
+
import { LAYER_GAP, useLayerContainer, viewportBounds, anchorGone, LAYER_REPOSITION_EVENT } from './chunk-FIX72ZEC.js';
|
|
5
5
|
import { usePopupLayer } from './chunk-TUEM2XIW.js';
|
|
6
6
|
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
7
7
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-EMDRNB23.js';
|
|
2
2
|
import { useListbox, useHighlightRest } from './chunk-YGRTX67J.js';
|
|
3
|
-
import { Input } from './chunk-
|
|
3
|
+
import { Input } from './chunk-56ES76ST.js';
|
|
4
4
|
import { Kbd } from './chunk-CMAZZY2I.js';
|
|
5
5
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
6
6
|
import { isComposing } from './chunk-TUEM2XIW.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SlideStage } from './chunk-O6EV6GKI.js';
|
|
2
|
-
import { Button } from './chunk-
|
|
2
|
+
import { Button } from './chunk-6KUOHUY5.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './SlideCompare-R4GVZXAM.css';
|