@crewlethq/ui 0.81.2 → 0.83.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 +89 -4
- package/dist/Accordion/index.js +3 -3
- package/dist/ActionCard/ActionCard.d.ts +49 -0
- package/dist/ActionCard/index.d.ts +4 -0
- package/dist/ActionCard/index.js +2 -0
- package/dist/ActionCard-47WSZ2O5.css +110 -0
- package/dist/ActivityLine/ActivityLine.d.ts +27 -0
- package/dist/ActivityLine/index.d.ts +4 -0
- package/dist/ActivityLine/index.js +4 -0
- package/dist/ActivityLine-AMSERTOB.css +74 -0
- package/dist/AgentHandoffPanel/index.js +15 -15
- package/dist/AppShell/AccountRow.d.ts +19 -1
- package/dist/AppShell/AppShell.d.ts +62 -4
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +12 -6
- package/dist/AppShell/railMotion.d.ts +60 -0
- package/dist/AppShell/railShape.d.ts +22 -0
- package/dist/{AppShell-2IBUS4TH.css → AppShell-U7D2MUUF.css} +291 -20
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeGroup/index.js +2 -2
- package/dist/ArrangeList/index.js +8 -7
- package/dist/ArtifactBar/index.js +13 -11
- package/dist/ArtifactCard/index.js +13 -13
- package/dist/ArtifactCover/index.js +3 -3
- package/dist/ArtifactKindIllustration/index.js +1 -1
- package/dist/ArtifactKinds-3EH4KR3F.css +18 -0
- package/dist/ArtifactMakeRow/index.js +1 -1
- package/dist/ArtifactNameCell/index.js +1 -1
- package/dist/ArtifactPanel/index.js +5 -5
- package/dist/AttachmentChip/index.js +2 -2
- package/dist/AuthLayout/index.js +5 -4
- package/dist/Avatar/Avatar.d.ts +30 -28
- package/dist/Avatar/AvatarStack.d.ts +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +2 -2
- package/dist/{Avatar-VJSJGFRG.css → Avatar-MNE3WBZO.css} +56 -54
- package/dist/AvatarPicker/index.js +13 -12
- package/dist/{AvatarStack-7I3P7LCK.css → AvatarStack-KEHD3GWY.css} +16 -4
- package/dist/BrandLockup/BrandLockup.d.ts +6 -0
- package/dist/BrandLockup/index.js +2 -1
- package/dist/BriefCard/BriefCard.d.ts +23 -1
- package/dist/BriefCard/index.d.ts +2 -2
- package/dist/BriefCard/index.js +7 -7
- package/dist/{BriefCard-VKTH3BSW.css → BriefCard-QCL7MVUV.css} +26 -0
- package/dist/Canvas/index.js +8 -6
- package/dist/CanvasBoard/index.js +11 -9
- package/dist/CanvasToolbar/index.js +10 -8
- package/dist/Card/index.js +2 -2
- package/dist/ChangeList/index.js +5 -5
- package/dist/ChangeMark/index.js +6 -4
- package/dist/CharacterPicker/index.js +2 -2
- package/dist/ChatDay/ChatDay.d.ts +53 -0
- package/dist/ChatDay/index.d.ts +5 -0
- package/dist/ChatDay/index.js +3 -0
- package/dist/ChatDay-E3FF5HWF.css +116 -0
- package/dist/ChatDivider/ChatDivider.d.ts +31 -0
- package/dist/ChatDivider/index.d.ts +4 -0
- package/dist/ChatDivider/index.js +2 -0
- package/dist/ChatDivider-7ZNDL2PZ.css +76 -0
- package/dist/ChatMessage/ChatMessage.d.ts +111 -0
- package/dist/ChatMessage/index.d.ts +4 -0
- package/dist/ChatMessage/index.js +5 -0
- package/dist/ChatMessage-FH7VRVCH.css +304 -0
- package/dist/ChatScale-L4SIHSKL.css +42 -0
- package/dist/ChatThread/ChatThread.d.ts +33 -4
- package/dist/ChatThread/index.d.ts +1 -1
- package/dist/ChatThread/index.js +2 -2
- package/dist/{ChatThread-2KO3FZKQ.css → ChatThread-HAECJMP6.css} +17 -0
- package/dist/CheckGrid/index.js +6 -6
- package/dist/Checkbox/index.js +5 -5
- package/dist/ChipField/ChipField.d.ts +82 -0
- package/dist/ChipField/index.d.ts +4 -0
- package/dist/ChipField/index.js +9 -0
- package/dist/ChipField-D4CW6XFA.css +108 -0
- package/dist/ColorField/index.js +5 -5
- package/dist/Combobox/index.js +7 -7
- package/dist/CommandPalette/index.js +12 -11
- package/dist/CommentThread/index.js +14 -14
- package/dist/CompactNav/CompactNav.d.ts +175 -0
- package/dist/CompactNav/index.d.ts +4 -0
- package/dist/CompactNav/index.js +9 -0
- package/dist/CompactNav-CU2AQXBC.css +322 -0
- package/dist/Composer/Composer.d.ts +26 -2
- package/dist/Composer/index.d.ts +2 -1
- package/dist/Composer/index.js +7 -7
- package/dist/{Composer-HQIMTMRC.css → Composer-ZEGHEAFE.css} +71 -0
- package/dist/ConfirmField/index.js +5 -5
- package/dist/ContrastBadge/index.js +2 -2
- package/dist/ContrastHelp/index.js +7 -6
- package/dist/Count/Count.d.ts +24 -6
- package/dist/Count/index.d.ts +1 -1
- package/dist/Count/index.js +1 -1
- package/dist/{Count-ZJ6ID4ZU.css → Count-2HXBBYPO.css} +19 -0
- package/dist/DataGrid/index.js +8 -8
- package/dist/DataTable/index.js +11 -10
- package/dist/DataView/index.js +18 -17
- package/dist/DatasetSource/index.js +3 -3
- package/dist/DateTimePicker/index.js +6 -5
- package/dist/DeepWorkCard/index.js +9 -9
- package/dist/Disclosure/index.js +3 -3
- package/dist/DocTabsEditor/index.js +11 -9
- package/dist/DockColumn/DockColumn.d.ts +68 -0
- package/dist/DockColumn/index.d.ts +3 -0
- package/dist/DockColumn/index.js +6 -0
- package/dist/DockColumn-SMJCXHS4.css +61 -0
- package/dist/Document/index.js +2 -2
- package/dist/EditingStatus/index.js +2 -2
- package/dist/{Editor-IMYESOW7.js → Editor-5D5Z3LBQ.js} +9 -8
- package/dist/EmojiPicker/EmojiPicker.d.ts +51 -0
- package/dist/EmojiPicker/emoji.d.ts +24 -0
- package/dist/EmojiPicker/index.d.ts +5 -0
- package/dist/EmojiPicker/index.js +15 -0
- package/dist/EmojiPicker-FMWYN2WX.css +63 -0
- package/dist/EntityChip/index.js +3 -3
- package/dist/EntityList/index.js +6 -6
- package/dist/FactList/index.js +6 -4
- package/dist/FolderTile/index.js +3 -3
- package/dist/FollowBanner/index.js +4 -4
- package/dist/HuePicker/index.js +9 -8
- package/dist/ImageUpload/ImageUpload.d.ts +6 -7
- package/dist/ImageUpload/index.js +3 -3
- package/dist/{ImageUpload-OWI7CCG7.css → ImageUpload-IFXZROFZ.css} +6 -37
- package/dist/InlineEditor/index.js +7 -7
- package/dist/Input/index.js +4 -4
- package/dist/Kbd/Kbd.d.ts +9 -0
- package/dist/Kbd/index.d.ts +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/Layer/index.js +2 -2
- package/dist/LinkCard/LinkCard.d.ts +64 -0
- package/dist/LinkCard/index.d.ts +5 -0
- package/dist/LinkCard/index.js +5 -0
- package/dist/LinkCard-5I4MYU6I.css +155 -0
- package/dist/LinkInterstitial/index.js +7 -6
- package/dist/ListInput/index.js +10 -9
- package/dist/Listbox/index.js +3 -3
- package/dist/LogoSlot/index.js +3 -3
- package/dist/MarkdownEditor/format.d.ts +9 -1
- package/dist/MarkdownEditor/index.d.ts +2 -2
- package/dist/MarkdownEditor/index.js +10 -9
- package/dist/MediaMatch/index.d.ts +1 -1
- package/dist/MediaMatch/index.js +1 -1
- package/dist/MediaMatch/useMediaMatch.d.ts +14 -0
- package/dist/MentionChip/MentionChip.d.ts +25 -0
- package/dist/MentionChip/index.d.ts +3 -0
- package/dist/MentionChip/index.js +2 -0
- package/dist/MentionChip-W7MZZVRZ.css +42 -0
- package/dist/MentionMenu/MentionMenu.d.ts +82 -0
- package/dist/MentionMenu/index.d.ts +4 -0
- package/dist/MentionMenu/index.js +3 -0
- package/dist/MentionMenu-4NAQ45S4.css +65 -0
- package/dist/Menu/index.js +5 -4
- package/dist/MergeConflicts/index.js +9 -8
- package/dist/MessageActions/MessageActions.d.ts +58 -0
- package/dist/MessageActions/index.d.ts +4 -0
- package/dist/MessageActions/index.js +18 -0
- package/dist/MessageActions-Q4F5UH3S.css +73 -0
- package/dist/Modal/Modal.d.ts +12 -0
- package/dist/Modal/index.js +6 -5
- package/dist/{Modal-FYQYEI3N.css → Modal-GKUOO7PZ.css} +26 -1
- package/dist/OpenInAppCard/index.js +8 -8
- package/dist/OrgLabel/index.js +3 -3
- package/dist/OrgNode/index.js +4 -4
- package/dist/OrgTable/index.js +7 -7
- package/dist/Outline/index.js +2 -1
- package/dist/PeekRail/index.js +1 -1
- package/dist/PeopleRail/index.js +4 -4
- package/dist/PersonRow/PersonRow.d.ts +70 -0
- package/dist/PersonRow/index.d.ts +3 -0
- package/dist/PersonRow/index.js +2 -0
- package/dist/PersonRow-V5GTPNVP.css +161 -0
- package/dist/Popover/index.js +4 -3
- package/dist/Presence/index.d.ts +2 -0
- package/dist/Presence/index.js +4 -0
- package/dist/Presence/usePresence.d.ts +109 -0
- package/dist/PresenceStack/index.js +3 -3
- package/dist/{PresenceStack-ZV67BH4V.css → PresenceStack-2DTYRADY.css} +4 -6
- package/dist/PresenterView/index.js +5 -5
- package/dist/PricingCard/index.js +2 -2
- package/dist/Principal/index.js +3 -3
- package/dist/PrincipalPicker/index.js +11 -11
- package/dist/ProposalCard/index.js +15 -15
- package/dist/ReactionBar/ReactionBar.d.ts +84 -0
- package/dist/ReactionBar/index.d.ts +4 -0
- package/dist/ReactionBar/index.js +17 -0
- package/dist/ReactionBar-XXI4V7XG.css +93 -0
- package/dist/RecordChip/index.js +5 -4
- package/dist/RefusalCard/index.js +6 -6
- package/dist/RelatedRow/index.js +3 -3
- package/dist/Reorder/index.js +2 -1
- package/dist/ResultTableCard/index.js +7 -7
- package/dist/ReviewList/index.js +2 -2
- package/dist/RichEditor/index.js +2 -2
- package/dist/RunChip/index.js +5 -5
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SectionFrame/index.js +2 -2
- package/dist/SegmentedControl/index.js +8 -7
- package/dist/Select/index.js +4 -4
- package/dist/SelectionBar/index.js +6 -6
- package/dist/SetupWizard/index.js +6 -6
- package/dist/ShareDialog/index.js +13 -12
- package/dist/SheetColumnEditor/index.js +17 -16
- package/dist/SheetGrid/index.js +14 -12
- package/dist/Shortcut/index.js +3 -3
- package/dist/SidePanel/SidePanel.d.ts +8 -1
- package/dist/SidePanel/SidePanelBase.d.ts +3 -1
- package/dist/SidePanel/index.js +5 -5
- package/dist/{SidePanel-VXKUKLOJ.css → SidePanel-BKWT6Q6Z.css} +36 -0
- package/dist/SidebarNav/SidebarNav.d.ts +52 -3
- package/dist/SidebarNav/index.js +1 -1
- package/dist/{SidebarNav-VTQ3G4AE.css → SidebarNav-E7PZGGA6.css} +132 -7
- package/dist/Skeleton/index.js +1 -1
- package/dist/{Skeleton-7ZA5ETJM.css → Skeleton-GIXV3KK5.css} +3 -1
- package/dist/SlideCompare/index.js +5 -5
- package/dist/SlideFilmstrip/index.js +11 -9
- package/dist/SlideGrid/index.js +4 -4
- package/dist/SlideStage/index.js +3 -3
- package/dist/SourceEditor/index.js +2 -2
- package/dist/StatusCard/index.js +5 -5
- package/dist/Switcher/index.js +13 -12
- package/dist/TableCells/index.js +5 -5
- package/dist/Tabs/index.js +7 -6
- package/dist/Tag/Tag.d.ts +9 -2
- package/dist/Tag/index.js +1 -1
- package/dist/{Tag-JTJVZM2D.css → Tag-WLDOROB5.css} +24 -0
- package/dist/TagsInput/index.js +6 -6
- package/dist/ThemeGallery/index.js +5 -5
- package/dist/ThemeSwitcher/index.js +9 -8
- package/dist/ThinkingIndicator/index.js +1 -1
- package/dist/{ThinkingIndicator-JMK2TNMZ.css → ThinkingIndicator-S7ZL2C77.css} +8 -0
- package/dist/ThreadSummary/ThreadSummary.d.ts +43 -0
- package/dist/ThreadSummary/index.d.ts +4 -0
- package/dist/ThreadSummary/index.js +6 -0
- package/dist/ThreadSummary-AGR4NDMD.css +90 -0
- package/dist/TimeRangePicker/index.js +13 -12
- package/dist/TimeWindowPicker/index.js +11 -10
- package/dist/Toaster/index.js +2 -2
- package/dist/Toolbar/index.js +3 -3
- package/dist/Tooltip/Tooltip.d.ts +30 -3
- package/dist/Tooltip/index.js +5 -3
- package/dist/TreeCanvas/index.js +10 -7
- package/dist/TreeGrid/index.js +3 -3
- package/dist/ValueField/index.js +9 -9
- package/dist/VersionCompare/index.js +10 -9
- package/dist/VersionTimeline/index.js +4 -4
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/{chunk-LOWQK2PB.js → chunk-22CU7V4J.js} +4 -4
- package/dist/{chunk-WCDPFTJZ.js → chunk-25JQNHTC.js} +92 -28
- package/dist/{chunk-6LXS3X7A.js → chunk-2L4WHYMT.js} +1 -1
- package/dist/{chunk-6G6WHTC7.js → chunk-2O5CMV76.js} +1 -1
- package/dist/{chunk-FQI62PIZ.js → chunk-2SVQBQAD.js} +2 -2
- package/dist/{chunk-7PJFUQMY.js → chunk-2ZSCHQOA.js} +1 -1
- package/dist/chunk-3BRXEMYT.js +46 -0
- package/dist/{chunk-H22SR76M.js → chunk-3H6OZUZ3.js} +1 -1
- package/dist/{chunk-VK45YJLH.js → chunk-3IWZVEXA.js} +2 -2
- package/dist/{chunk-2STOSJT3.js → chunk-46FIBJCV.js} +7 -7
- package/dist/chunk-4DEKONVJ.js +87 -0
- package/dist/{chunk-NUZHC6MM.js → chunk-4ITETIGZ.js} +12 -1
- package/dist/{chunk-73GUXYYE.js → chunk-5AHNW5CP.js} +1 -1
- package/dist/{chunk-FFGEJUAP.js → chunk-5ILRWUE7.js} +2 -2
- package/dist/chunk-5JPOFAVN.js +58 -0
- package/dist/{chunk-S5QJZOPL.js → chunk-5K5SZGBI.js} +1 -1
- package/dist/{chunk-YB64PWIN.js → chunk-5V6GW6HK.js} +1 -1
- package/dist/{chunk-LM6VYJTV.js → chunk-5YXMKZUA.js} +1 -1
- package/dist/{chunk-5XBNJNSO.js → chunk-65RFU7LF.js} +1 -1
- package/dist/{chunk-7MGXHCVK.js → chunk-6M2N6ETA.js} +1 -1
- package/dist/{chunk-OWHETZIU.js → chunk-6SFDL4QH.js} +1 -1
- package/dist/{chunk-WK4FQPYW.js → chunk-77VOASOY.js} +5 -5
- package/dist/{chunk-UYF2B2TH.js → chunk-7ELFH3RJ.js} +1 -1
- package/dist/{chunk-HPI5J6AR.js → chunk-7K6LVM5I.js} +2 -2
- package/dist/{chunk-YQDRJZ5J.js → chunk-7M7WKYOV.js} +8 -8
- package/dist/{chunk-A5YKNRG6.js → chunk-7QCSISHM.js} +2 -1
- package/dist/{chunk-CYYBE2MM.js → chunk-7U6PK242.js} +1 -1
- package/dist/{chunk-I33UIUZD.js → chunk-7ZSEUO5Q.js} +51 -40
- package/dist/{chunk-LCZULGMB.js → chunk-ABRWL5FJ.js} +2 -2
- package/dist/{chunk-VG3SIJ3M.js → chunk-AFLS26AC.js} +2 -2
- package/dist/{chunk-4XF7ENQA.js → chunk-AOJ6ZA77.js} +2 -2
- package/dist/{chunk-Q2T4L6ML.js → chunk-AQNP3KQU.js} +5 -5
- package/dist/{chunk-6X5PGHEX.js → chunk-AUSFKGKL.js} +2 -2
- package/dist/{chunk-6R334YT3.js → chunk-AZYE7NR4.js} +2 -2
- package/dist/{chunk-WKKWF277.js → chunk-BN5FEJL5.js} +2 -2
- package/dist/{chunk-MPVMB2DV.js → chunk-BVML4UVB.js} +3 -2
- package/dist/{chunk-EAIOXW2W.js → chunk-BXGBGYKH.js} +8 -14
- package/dist/chunk-C4256UXE.js +21 -0
- package/dist/{chunk-2FMBZCFR.js → chunk-C42XW5YP.js} +1 -1
- package/dist/{chunk-4MRFLHJC.js → chunk-C46DDVTK.js} +1 -1
- package/dist/{chunk-5BOFC5OP.js → chunk-CF4M6N6A.js} +20 -4
- package/dist/{chunk-ANTAQAR4.js → chunk-CMAZZY2I.js} +7 -1
- package/dist/{chunk-3JXX5S3Z.js → chunk-CV2LU2T2.js} +2 -2
- package/dist/{chunk-MLDTLZAO.js → chunk-D2GT3CR4.js} +3 -3
- package/dist/{chunk-57AKYFML.js → chunk-DD7RBNT4.js} +3 -3
- package/dist/{chunk-KL6A7JGH.js → chunk-DRFOTWJE.js} +2 -2
- package/dist/{chunk-MUFBHVCT.js → chunk-DWQYV5AV.js} +2 -2
- package/dist/{chunk-CNEHFH2A.js → chunk-EAHEJNVJ.js} +1 -1
- package/dist/chunk-EALRMP7N.js +69 -0
- package/dist/{chunk-E35HYQMK.js → chunk-EBVZHVPD.js} +12 -5
- package/dist/{chunk-KHJIEPZV.js → chunk-EC6EUIAD.js} +9 -6
- package/dist/{chunk-XNNY27SC.js → chunk-ED4A6Q24.js} +1 -1
- package/dist/{chunk-6LN64KGG.js → chunk-F7HZYTZT.js} +6 -3
- package/dist/{chunk-RTMNULTL.js → chunk-FLW5U7YS.js} +2 -2
- package/dist/{chunk-JQEXAH7G.js → chunk-FPU7AA3X.js} +5 -16
- package/dist/{chunk-GHQG4VZA.js → chunk-G3CACE5L.js} +3 -3
- package/dist/{chunk-JMTBK55P.js → chunk-G4EHZHKM.js} +2 -2
- package/dist/{chunk-45M73G5A.js → chunk-GLKQHN7G.js} +5 -5
- package/dist/{chunk-N2BF272H.js → chunk-HF5L56YQ.js} +1 -1
- package/dist/chunk-HTBTAIH6.js +37 -0
- package/dist/chunk-HTS5RJ7S.js +6 -0
- package/dist/{chunk-BRLZXYPA.js → chunk-I4IUX3JF.js} +1 -1
- package/dist/{chunk-BXCL6P5Z.js → chunk-I4PBFJGX.js} +1 -1
- package/dist/{chunk-ADGNISEI.js → chunk-IAP7APOX.js} +5 -5
- package/dist/chunk-ICE3D63E.js +384 -0
- package/dist/{chunk-BT3GB7HC.js → chunk-IRONPJB4.js} +3 -3
- package/dist/chunk-IUBOLGHG.js +140 -0
- package/dist/chunk-JLOESTT2.js +10 -0
- package/dist/{chunk-5EFLA6BW.js → chunk-K6RWEQ6P.js} +2 -2
- package/dist/{chunk-ZQEJSEPS.js → chunk-K6Y6CDEZ.js} +2 -2
- package/dist/chunk-K774LUN3.js +20 -0
- package/dist/{chunk-7KBNFFM3.js → chunk-KXWJJWBD.js} +6 -3
- package/dist/{chunk-53J2YNQA.js → chunk-L5VU3LZT.js} +1 -1
- package/dist/chunk-L72URIHR.js +36 -0
- package/dist/{chunk-VERJCAJ4.js → chunk-LBGKLYBY.js} +1 -1
- package/dist/{chunk-PRN5IP2R.js → chunk-LMEMH6DO.js} +1 -1
- package/dist/{chunk-I22MUEG7.js → chunk-LNQSNXGJ.js} +1 -1
- package/dist/chunk-LT44RL62.js +50 -0
- package/dist/{chunk-222VILSP.js → chunk-LVJGN5II.js} +1 -1
- package/dist/{chunk-AYHIF6DH.js → chunk-LZNPL266.js} +1 -1
- package/dist/{chunk-R45VM5EX.js → chunk-MMV7NEAC.js} +1 -1
- package/dist/{chunk-2IIHMJMZ.js → chunk-MVKUE4FI.js} +2 -2
- package/dist/{chunk-37U3Z65B.js → chunk-MVMVMHYI.js} +1 -1
- package/dist/{chunk-JD7P2GJP.js → chunk-MYAARF4Z.js} +1 -1
- package/dist/{chunk-OBPINJNO.js → chunk-NCUSI4ZU.js} +3 -3
- package/dist/{chunk-NKBKQEKS.js → chunk-NFXCJGHG.js} +1 -1
- package/dist/{chunk-OZAZHM55.js → chunk-NKBKHOMU.js} +1 -1
- package/dist/{chunk-MGQKF7GK.js → chunk-NN475NAP.js} +1 -1
- package/dist/{chunk-6EWNMSS4.js → chunk-NNZRTR5M.js} +2 -2
- package/dist/{chunk-JT7WRPZ6.js → chunk-NTRKC2JV.js} +1 -1
- package/dist/{chunk-63GBSOLU.js → chunk-NXBCAXP5.js} +2 -2
- package/dist/{chunk-NR4CPM4T.js → chunk-NXFTCPF6.js} +1 -1
- package/dist/chunk-O3MYBNRO.js +80 -0
- package/dist/{chunk-RMEBFYL7.js → chunk-O6EV6GKI.js} +1 -1
- package/dist/{chunk-YL7AR6PR.js → chunk-O7KG4CXB.js} +3 -3
- package/dist/{chunk-FB3TCNQP.js → chunk-O7N6W52M.js} +3 -3
- package/dist/chunk-ONHYFU7D.js +25 -0
- package/dist/{chunk-T24HBEU6.js → chunk-OOOVL77Y.js} +1 -1
- package/dist/{chunk-BLGBD2D2.js → chunk-P7HMY3BQ.js} +4 -4
- package/dist/chunk-PCAT2EFB.js +104 -0
- package/dist/{chunk-TPIMOGOZ.js → chunk-PEBQMX5X.js} +1 -1
- package/dist/{chunk-UY3FWQWG.js → chunk-PGBKZSSQ.js} +201 -22
- package/dist/{chunk-4TMBAOXK.js → chunk-PW57R4BN.js} +1 -1
- package/dist/chunk-PX5BOALQ.js +13 -0
- package/dist/{chunk-CFTBESST.js → chunk-Q6TCUSQA.js} +2 -2
- package/dist/{chunk-ZWXHTXZO.js → chunk-QGEDXYLB.js} +2 -2
- package/dist/{chunk-ZKLEAK7M.js → chunk-QM3432PH.js} +7 -7
- package/dist/{chunk-WTXCK46H.js → chunk-R2QBQ6NO.js} +1 -1
- package/dist/{chunk-Z6JKZI4E.js → chunk-RBQRTGXX.js} +1 -1
- package/dist/{chunk-TJIBTHWJ.js → chunk-RDIQB5ZE.js} +3 -3
- package/dist/{chunk-TPCBPGSB.js → chunk-RO5JU6SN.js} +4 -4
- package/dist/{chunk-O222F2IX.js → chunk-SGMWLUYQ.js} +6 -6
- package/dist/{chunk-HEA6TERQ.js → chunk-SHH7UD5U.js} +1 -1
- package/dist/{chunk-CLJGFOTV.js → chunk-SKGOKLJD.js} +31 -18
- package/dist/{chunk-CSXJIIO4.js → chunk-SNQ7PH3D.js} +1 -1
- package/dist/chunk-SPNTUQBV.js +244 -0
- package/dist/{chunk-RIAPCEB5.js → chunk-T3S3D4FC.js} +5 -5
- package/dist/chunk-TDFLCUBE.js +6 -0
- package/dist/{chunk-OQG4P5KU.js → chunk-TGGYSQRD.js} +5 -6
- package/dist/{chunk-7FF6CZW5.js → chunk-TQKQRS2J.js} +36 -8
- package/dist/chunk-TRXTO3WC.js +114 -0
- package/dist/{chunk-H5XTJ7GJ.js → chunk-TUEM2XIW.js} +1 -1
- package/dist/{chunk-4AUTALJA.js → chunk-U2IQNDDR.js} +1 -1
- package/dist/{chunk-IVTQWOXV.js → chunk-ULYHDP7U.js} +1 -1
- package/dist/{chunk-DGSK4LLS.js → chunk-V6WDJUYK.js} +1 -1
- package/dist/{chunk-Z2MZTI3H.js → chunk-VB3FVKNI.js} +1 -1
- package/dist/{chunk-R5OATXWU.js → chunk-VONEKR3J.js} +38 -15
- package/dist/{chunk-CZQ7UITX.js → chunk-WANKINXG.js} +3 -3
- package/dist/{chunk-HQOEAUDJ.js → chunk-WMO722J2.js} +2 -2
- package/dist/{chunk-D7G2QGET.js → chunk-X3US25XJ.js} +1 -1
- package/dist/{chunk-GPFYITOF.js → chunk-X7VZQKIW.js} +1 -1
- package/dist/{chunk-L4HHWG4V.js → chunk-XA2QKGBJ.js} +3 -3
- package/dist/{chunk-DV5L2GRY.js → chunk-XJMES7AE.js} +1 -1
- package/dist/{chunk-5NJMSYDZ.js → chunk-XNC3M4IN.js} +1 -1
- package/dist/{chunk-B2YSFWUG.js → chunk-XRWHDW6F.js} +9 -9
- package/dist/{chunk-TKUAGWNR.js → chunk-XTJHMP3W.js} +2 -2
- package/dist/{chunk-KTIQSSME.js → chunk-XZY6S3UC.js} +6 -3
- package/dist/{chunk-7KHM2FZH.js → chunk-YGRTX67J.js} +1 -1
- package/dist/{chunk-RTPQDNW3.js → chunk-YJQXESOJ.js} +5 -1
- package/dist/chunk-YP2FS6SH.js +54 -0
- package/dist/{chunk-LMQG3VPG.js → chunk-YQ7Q52XU.js} +1 -1
- package/dist/{chunk-G4CGDUCP.js → chunk-YRNNUCQP.js} +1 -1
- package/dist/{chunk-5CEQ3HLH.js → chunk-YXKSUILG.js} +6 -6
- package/dist/{chunk-NHLNHH4J.js → chunk-ZB3E2Z4Y.js} +1 -1
- package/dist/{chunk-IL3XLDW7.js → chunk-ZDWAIVWL.js} +1 -1
- package/dist/{chunk-SNIPM6K7.js → chunk-ZJVLGYE3.js} +3 -3
- package/dist/{chunk-BFM5G2Z6.js → chunk-ZPTKAYJK.js} +1 -1
- package/dist/{chunk-2PIH6JHJ.js → chunk-ZXTDWTXS.js} +1 -1
- package/dist/{chunk-C667GCU7.js → chunk-ZXXZESCD.js} +9 -7
- package/dist/generated/index.d.ts +17 -0
- package/dist/generated/index.js +184 -163
- package/dist/index.js +184 -163
- package/dist/styles.css +2769 -156
- package/dist/utils/composedRef.d.ts +39 -0
- package/dist/utils/focusModality.d.ts +14 -0
- package/dist/utils/heldHint.d.ts +6 -0
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.js +4 -2
- package/dist/utils/tokenMs.d.ts +6 -0
- package/package.json +5 -5
- package/dist/ArtifactKinds-O3CALPVX.css +0 -16
- package/dist/{chunk-PLNJEDGI.js → chunk-I4IO56EY.js} +1 -1
- package/dist/{chunk-FEJANUZK.js → chunk-KBSD476L.js} +0 -0
- package/dist/{chunk-624X3RVA.js → chunk-O55JQ7BE.js} +1 -1
- /package/dist/{chunk-CDFQ7MQK.js → chunk-REEZQCML.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SegmentedControl } from './chunk-6R334YT3.js';
|
|
1
|
+
import { SegmentedControl } from './chunk-AZYE7NR4.js';
|
|
3
2
|
import { ArtifactIcon } from './chunk-AVL52EME.js';
|
|
4
|
-
import {
|
|
5
|
-
import { Menu } from './chunk-
|
|
3
|
+
import { Tooltip } from './chunk-7ZSEUO5Q.js';
|
|
4
|
+
import { Menu } from './chunk-TGGYSQRD.js';
|
|
5
|
+
import { isApplePlatform, Kbd, ariaKeyshortcuts } from './chunk-CMAZZY2I.js';
|
|
6
6
|
import { Button } from './chunk-DGXZ635L.js';
|
|
7
|
+
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
7
8
|
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
8
|
-
import { returnFocus } from './chunk-NUZHC6MM.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
|
-
import './ArtifactKinds-
|
|
10
|
+
import './ArtifactKinds-3EH4KR3F.css';
|
|
11
11
|
import './ArtifactBar-X46WJNW7.css';
|
|
12
12
|
import { useId, useState, useRef, useEffect } from 'react';
|
|
13
13
|
import { ChevronLeftGlyph, EllipsisGlyph, ChevronDownGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -137,12 +137,6 @@ function ArtifactBar({
|
|
|
137
137
|
}
|
|
138
138
|
);
|
|
139
139
|
}
|
|
140
|
-
function ariaKeys(keys, apple) {
|
|
141
|
-
return keys.map((key) => {
|
|
142
|
-
if (key === "Mod") return apple ? "Meta" : "Control";
|
|
143
|
-
return key.length === 1 ? key.toUpperCase() : key;
|
|
144
|
-
}).join("+");
|
|
145
|
-
}
|
|
146
140
|
function Tip({ tool, apple }) {
|
|
147
141
|
return /* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-bar__tip", children: [
|
|
148
142
|
tool.label,
|
|
@@ -161,7 +155,7 @@ function ToolButton({ tool, apple }) {
|
|
|
161
155
|
title: "",
|
|
162
156
|
pressed: tool.pressed,
|
|
163
157
|
disabledReason: tool.disabledReason,
|
|
164
|
-
"aria-keyshortcuts": tool.keys ?
|
|
158
|
+
"aria-keyshortcuts": tool.keys ? ariaKeyshortcuts(tool.keys, apple) : void 0,
|
|
165
159
|
onClick: tool.onSelect
|
|
166
160
|
}
|
|
167
161
|
) }),
|
|
@@ -169,7 +163,7 @@ function ToolButton({ tool, apple }) {
|
|
|
169
163
|
] });
|
|
170
164
|
}
|
|
171
165
|
function LabelledTool({ tool, apple }) {
|
|
172
|
-
const shortcut = tool.keys ?
|
|
166
|
+
const shortcut = tool.keys ? ariaKeyshortcuts(tool.keys, apple) : void 0;
|
|
173
167
|
if (tool.emphasis === "primary") {
|
|
174
168
|
return /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx(Tip, { tool, apple }), placement: "bottom", disabled: !tool.keys, children: /* @__PURE__ */ jsx(
|
|
175
169
|
Button,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ThinkingIndicator } from './chunk-ED4A6Q24.js';
|
|
2
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
+
import './ChatScale-L4SIHSKL.css';
|
|
4
|
+
import './ActivityLine-AMSERTOB.css';
|
|
5
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function ActivityLine({ typing, working, workingLabel, className, ...rest }) {
|
|
8
|
+
return /* @__PURE__ */ jsxs("div", { ...rest, className: cx("crewlet-activity-line", className), children: [
|
|
9
|
+
working ? /* @__PURE__ */ jsx(ThinkingIndicator, { status: working, label: workingLabel ?? working, className: "crewlet-activity-line__working" }) : null,
|
|
10
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-activity-line__typing", role: "status", children: typing ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-activity-line__dots", "aria-hidden": "true", children: [
|
|
12
|
+
/* @__PURE__ */ jsx("i", {}),
|
|
13
|
+
/* @__PURE__ */ jsx("i", {}),
|
|
14
|
+
/* @__PURE__ */ jsx("i", {})
|
|
15
|
+
] }),
|
|
16
|
+
typing
|
|
17
|
+
] }) : null })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { ActivityLine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
2
2
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './ArtifactKinds-
|
|
4
|
+
import './ArtifactKinds-3EH4KR3F.css';
|
|
5
5
|
import './ArtifactNameCell-3AHLUSE5.css';
|
|
6
6
|
import { FolderGlyph, PinGlyph } from '@crewlethq/icons/glyphs';
|
|
7
7
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { SuggestionList, SuggestionRow } from './chunk-Y7PVLEZJ.js';
|
|
2
|
-
import { StatusCard } from './chunk-
|
|
2
|
+
import { StatusCard } from './chunk-FLW5U7YS.js';
|
|
3
3
|
import { StatusDot } from './chunk-CYQBDZ6M.js';
|
|
4
4
|
import { Button } from './chunk-DGXZ635L.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
-
import './BriefCard-
|
|
6
|
+
import './BriefCard-QCL7MVUV.css';
|
|
7
7
|
import { useEffect } from 'react';
|
|
8
8
|
import { MessageCircleQuestionMarkGlyph, CircleCheckGlyph } from '@crewlethq/icons/glyphs';
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
var BRIEF_CARD_MAX_NEEDS = 3;
|
|
12
12
|
var BRIEF_CARD_MAX_FOLLOW_UPS = 2;
|
|
13
|
+
var BRIEF_CARD_MAX_POINTS = 5;
|
|
13
14
|
var BRIEF_CARD_LABELS = {
|
|
14
15
|
heading: "Brief",
|
|
15
16
|
needs: "Needs you",
|
|
17
|
+
points: "What was said",
|
|
16
18
|
first: "Do first",
|
|
17
19
|
followUps: "Ask next",
|
|
18
20
|
count: (n) => n === 1 ? "1 thing needs you" : `${n} things need you`,
|
|
@@ -23,6 +25,7 @@ function BriefCard({
|
|
|
23
25
|
asOf,
|
|
24
26
|
about,
|
|
25
27
|
needs,
|
|
28
|
+
points,
|
|
26
29
|
context,
|
|
27
30
|
followUps,
|
|
28
31
|
labels: overrides,
|
|
@@ -32,6 +35,7 @@ function BriefCard({
|
|
|
32
35
|
const labels = overrides ? { ...BRIEF_CARD_LABELS, ...overrides } : BRIEF_CARD_LABELS;
|
|
33
36
|
const handedNeeds = needs.length;
|
|
34
37
|
const handedFollowUps = followUps?.length ?? 0;
|
|
38
|
+
const handedPoints = points?.length ?? 0;
|
|
35
39
|
useEffect(() => {
|
|
36
40
|
if (!developing()) return;
|
|
37
41
|
if (handedNeeds > BRIEF_CARD_MAX_NEEDS) {
|
|
@@ -44,9 +48,13 @@ function BriefCard({
|
|
|
44
48
|
`[crewlet] BriefCard was handed ${handedFollowUps} follow-ups and draws the first ${BRIEF_CARD_MAX_FOLLOW_UPS}.`
|
|
45
49
|
);
|
|
46
50
|
}
|
|
47
|
-
|
|
51
|
+
if (handedPoints > BRIEF_CARD_MAX_POINTS) {
|
|
52
|
+
console.warn(`[crewlet] BriefCard was handed ${handedPoints} points and draws the first ${BRIEF_CARD_MAX_POINTS}.`);
|
|
53
|
+
}
|
|
54
|
+
}, [handedNeeds, handedFollowUps, handedPoints]);
|
|
48
55
|
const rows = needs.slice(0, BRIEF_CARD_MAX_NEEDS);
|
|
49
56
|
const asks = followUps ? followUps.slice(0, BRIEF_CARD_MAX_FOLLOW_UPS) : [];
|
|
57
|
+
const said = points ? points.slice(0, BRIEF_CARD_MAX_POINTS) : [];
|
|
50
58
|
const ranked = rows.length > 1;
|
|
51
59
|
const hasScope = !(scope === void 0 || scope === null || scope === "");
|
|
52
60
|
const hasAsOf = !(asOf === void 0 || asOf === null || asOf === "");
|
|
@@ -89,6 +97,14 @@ function BriefCard({
|
|
|
89
97
|
need.key
|
|
90
98
|
)) })
|
|
91
99
|
),
|
|
100
|
+
said.length === 0 ? null : (
|
|
101
|
+
// A list the reader moves through by item; Safari drops the role of a list styled without markers.
|
|
102
|
+
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
103
|
+
/* @__PURE__ */ jsx("ul", { role: "list", "aria-label": labels.points, className: "crewlet-brief-card__points", children: said.map((point) => /* @__PURE__ */ jsxs("li", { className: "crewlet-brief-card__point", children: [
|
|
104
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-brief-card__point-text", children: point.text }),
|
|
105
|
+
point.source ? /* @__PURE__ */ jsx(Button, { size: "small", variant: "ghost", onClick: point.source.onSelect, children: point.source.label }) : null
|
|
106
|
+
] }, point.key)) })
|
|
107
|
+
),
|
|
92
108
|
hasContext ? /* @__PURE__ */ jsx("p", { className: "crewlet-brief-card__context", children: context }) : null,
|
|
93
109
|
asks.length > 0 ? /* @__PURE__ */ jsx(SuggestionList, { "aria-label": labels.followUps, className: "crewlet-brief-card__follow-ups", children: asks.map((f) => /* @__PURE__ */ jsx(SuggestionRow, { icon: /* @__PURE__ */ jsx(MessageCircleQuestionMarkGlyph, { size: "sm" }), onSelect: f.onSelect, children: f.question }, f.key)) }) : null
|
|
94
110
|
] })
|
|
@@ -103,4 +119,4 @@ function developing() {
|
|
|
103
119
|
}
|
|
104
120
|
}
|
|
105
121
|
|
|
106
|
-
export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BriefCard };
|
|
122
|
+
export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard };
|
|
@@ -38,6 +38,12 @@ function keyGlyph(key, apple) {
|
|
|
38
38
|
const shown = [...key].length === 1 ? key.toLocaleUpperCase() : key;
|
|
39
39
|
return { glyph: shown, spoken: shown };
|
|
40
40
|
}
|
|
41
|
+
function ariaKeyshortcuts(keys, apple) {
|
|
42
|
+
return keys.map((key) => {
|
|
43
|
+
if (key === "Mod") return apple ? "Meta" : "Control";
|
|
44
|
+
return key.length === 1 ? key.toUpperCase() : key;
|
|
45
|
+
}).join("+");
|
|
46
|
+
}
|
|
41
47
|
var Kbd = ({ subtle = false, keys, apple, className, children, ...rest }) => {
|
|
42
48
|
const cap = cx("crewlet-kbd", subtle && "crewlet-kbd--subtle");
|
|
43
49
|
if (keys === void 0) {
|
|
@@ -54,4 +60,4 @@ var Kbd = ({ subtle = false, keys, apple, className, children, ...rest }) => {
|
|
|
54
60
|
] });
|
|
55
61
|
};
|
|
56
62
|
|
|
57
|
-
export { Kbd, isApplePlatform, keyGlyph };
|
|
63
|
+
export { Kbd, ariaKeyshortcuts, isApplePlatform, keyGlyph };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { StepList } from './chunk-RJWO2PC5.js';
|
|
2
2
|
import { ReceiptStrip } from './chunk-ZWCK4N4L.js';
|
|
3
3
|
import { Meter } from './chunk-RQFRRPV6.js';
|
|
4
|
-
import { StatusCard } from './chunk-
|
|
5
|
-
import { Disclosure } from './chunk-
|
|
4
|
+
import { StatusCard } from './chunk-FLW5U7YS.js';
|
|
5
|
+
import { Disclosure } from './chunk-LVJGN5II.js';
|
|
6
6
|
import { Spinner } from './chunk-XSPCITPN.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './DeepWorkCard-CMRRNISU.css';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Count-
|
|
3
|
+
import './Count-2HXBBYPO.css';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
function Count({ value, label, className }) {
|
|
7
|
-
return /* @__PURE__ */ jsxs("span", { className: cx("crewlet-count", className), children: [
|
|
6
|
+
function Count({ value, label, tone = "quiet", className }) {
|
|
7
|
+
return /* @__PURE__ */ jsxs("span", { className: cx("crewlet-count", tone === "attention" ? "crewlet-count--attention" : void 0, className), children: [
|
|
8
8
|
/* @__PURE__ */ jsx("span", { "aria-hidden": label ? true : void 0, children: value }),
|
|
9
9
|
label ? /* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
10
10
|
value,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Timeline } from './chunk-4MJN2KN6.js';
|
|
2
2
|
import { Section } from './chunk-WFCWPXJN.js';
|
|
3
|
-
import { Composer } from './chunk-
|
|
4
|
-
import { Disclosure } from './chunk-
|
|
5
|
-
import { ArtifactPanel } from './chunk-
|
|
3
|
+
import { Composer } from './chunk-EBVZHVPD.js';
|
|
4
|
+
import { Disclosure } from './chunk-LVJGN5II.js';
|
|
5
|
+
import { ArtifactPanel } from './chunk-5ILRWUE7.js';
|
|
6
6
|
import { Button } from './chunk-DGXZ635L.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './AgentHandoffPanel-AIU7YWWB.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Toolbar } from './chunk-
|
|
2
|
-
import { ShortcutTip } from './chunk-
|
|
1
|
+
import { Toolbar } from './chunk-NXFTCPF6.js';
|
|
2
|
+
import { ShortcutTip } from './chunk-NCUSI4ZU.js';
|
|
3
3
|
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './CanvasToolbar-EM5EVZED.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TreeGrid } from './chunk-
|
|
1
|
+
import { TreeGrid } from './chunk-ZDWAIVWL.js';
|
|
2
2
|
import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
|
|
3
|
-
import { OrgLabel } from './chunk-
|
|
3
|
+
import { OrgLabel } from './chunk-5YXMKZUA.js';
|
|
4
4
|
import { AddPill } from './chunk-CVKANYHD.js';
|
|
5
5
|
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Text } from './chunk-QP2P6GDQ.js';
|
|
2
2
|
import { Inline, Stack, Spacer } from './chunk-ZAC7SKUN.js';
|
|
3
|
-
import { Card } from './chunk-
|
|
3
|
+
import { Card } from './chunk-U2IQNDDR.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './RelatedRow-IZ22XCLP.css';
|
|
6
6
|
import { ChevronRightGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
2
|
+
import './PersonRow-V5GTPNVP.css';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { CheckGlyph, PlusGlyph } from '@crewlethq/icons/glyphs';
|
|
5
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function PersonRowBody({ avatar, name, tag, detail, meta, mark = "none", density = "default", selected = false }) {
|
|
8
|
+
const words = density === "compact" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-person-row__name", children: [
|
|
10
|
+
name,
|
|
11
|
+
tag
|
|
12
|
+
] }),
|
|
13
|
+
detail ? /* @__PURE__ */ jsx("span", { className: "crewlet-person-row__detail", children: detail }) : null
|
|
14
|
+
] }) : /* @__PURE__ */ jsxs("span", { className: "crewlet-person-row__text", children: [
|
|
15
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-person-row__name", children: [
|
|
16
|
+
name,
|
|
17
|
+
tag
|
|
18
|
+
] }),
|
|
19
|
+
detail ? /* @__PURE__ */ jsx("span", { className: "crewlet-person-row__detail", children: detail }) : null
|
|
20
|
+
] });
|
|
21
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-person-row__face", children: avatar }),
|
|
23
|
+
words,
|
|
24
|
+
meta ? /* @__PURE__ */ jsx("span", { className: "crewlet-person-row__meta", children: meta }) : null,
|
|
25
|
+
mark === "toggle" ? /* @__PURE__ */ jsx("span", { className: "crewlet-person-row__mark", "aria-hidden": "true", children: selected ? /* @__PURE__ */ jsx(CheckGlyph, { size: "sm" }) : /* @__PURE__ */ jsx(PlusGlyph, { size: "sm" }) }) : null
|
|
26
|
+
] });
|
|
27
|
+
}
|
|
28
|
+
var PersonRow = forwardRef(function PersonRow2(props, ref) {
|
|
29
|
+
if (props.as === "option") {
|
|
30
|
+
const { as: _as2, avatar: avatar2, name: name2, tag: tag2, detail: detail2, meta: meta2, mark: mark2, density: density2 = "default", selected: selected2 = false, highlighted = false, disabled = false, className: className2, ...rest2 } = props;
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
"li",
|
|
33
|
+
{
|
|
34
|
+
...rest2,
|
|
35
|
+
ref,
|
|
36
|
+
role: "option",
|
|
37
|
+
"aria-selected": selected2,
|
|
38
|
+
"aria-disabled": disabled || void 0,
|
|
39
|
+
className: cx(
|
|
40
|
+
"crewlet-person-row",
|
|
41
|
+
`crewlet-person-row--${density2}`,
|
|
42
|
+
selected2 && "is-selected",
|
|
43
|
+
highlighted && "is-highlighted",
|
|
44
|
+
disabled && "is-disabled",
|
|
45
|
+
className2
|
|
46
|
+
),
|
|
47
|
+
children: /* @__PURE__ */ jsx(PersonRowBody, { avatar: avatar2, name: name2, tag: tag2, detail: detail2, meta: meta2, mark: mark2, density: density2, selected: selected2 })
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
const { as: _as, avatar, name, tag, detail, meta, mark, density = "default", selected, onSelect, onClick, className, type = "button", ...rest } = props;
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
"button",
|
|
54
|
+
{
|
|
55
|
+
...rest,
|
|
56
|
+
ref,
|
|
57
|
+
type,
|
|
58
|
+
"aria-pressed": selected,
|
|
59
|
+
className: cx("crewlet-person-row", `crewlet-person-row--${density}`, selected && "is-selected", className),
|
|
60
|
+
onClick: (event) => {
|
|
61
|
+
onClick?.(event);
|
|
62
|
+
if (!event.defaultPrevented) onSelect?.();
|
|
63
|
+
},
|
|
64
|
+
children: /* @__PURE__ */ jsx(PersonRowBody, { avatar, name, tag, detail, meta, mark, density, selected })
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export { PersonRow };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { isComposing } from './chunk-
|
|
1
|
+
import { Textarea } from './chunk-O7N6W52M.js';
|
|
2
|
+
import { Kbd } from './chunk-CMAZZY2I.js';
|
|
3
|
+
import { isComposing } from './chunk-TUEM2XIW.js';
|
|
4
4
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
-
import './
|
|
6
|
+
import './ChatScale-L4SIHSKL.css';
|
|
7
|
+
import './Composer-ZEGHEAFE.css';
|
|
7
8
|
import { forwardRef, useId } from 'react';
|
|
8
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
10
|
|
|
@@ -14,7 +15,10 @@ var Composer = forwardRef(function Composer2({
|
|
|
14
15
|
onSubmit,
|
|
15
16
|
submitOn = "mod-enter",
|
|
16
17
|
label,
|
|
18
|
+
appearance = "default",
|
|
17
19
|
actions,
|
|
20
|
+
tools,
|
|
21
|
+
toolbar,
|
|
18
22
|
trailing,
|
|
19
23
|
attachments,
|
|
20
24
|
attachmentsLabel = "Attached to this message",
|
|
@@ -32,7 +36,7 @@ var Composer = forwardRef(function Composer2({
|
|
|
32
36
|
const disabled = Boolean(disabledProp) || disabledReason !== void 0;
|
|
33
37
|
const inline = present(trailing);
|
|
34
38
|
const near = maxLength !== void 0 && value.length >= maxLength * COMPOSER_COUNTER_AT;
|
|
35
|
-
const hasActions = present(actions);
|
|
39
|
+
const hasActions = present(actions) || present(tools);
|
|
36
40
|
const hint = onSubmit !== void 0 && submitOn === "mod-enter";
|
|
37
41
|
const keyDown = (event) => {
|
|
38
42
|
onKeyDown?.(event);
|
|
@@ -49,11 +53,13 @@ var Composer = forwardRef(function Composer2({
|
|
|
49
53
|
{
|
|
50
54
|
className: cx(
|
|
51
55
|
"crewlet-composer",
|
|
56
|
+
appearance === "chat" && "crewlet-composer--chat",
|
|
52
57
|
inline && "crewlet-composer--inline",
|
|
53
58
|
disabled && "is-disabled",
|
|
54
59
|
className
|
|
55
60
|
),
|
|
56
61
|
children: [
|
|
62
|
+
present(toolbar) ? /* @__PURE__ */ jsx("div", { className: "crewlet-composer__toolbar", children: toolbar }) : null,
|
|
57
63
|
present(attachments) ? /* @__PURE__ */ jsx("div", { role: "group", "aria-label": attachmentsLabel, className: "crewlet-composer__attachments", children: attachments }) : null,
|
|
58
64
|
/* @__PURE__ */ jsxs("div", { className: "crewlet-composer__row", children: [
|
|
59
65
|
/* @__PURE__ */ jsx(
|
|
@@ -78,6 +84,7 @@ var Composer = forwardRef(function Composer2({
|
|
|
78
84
|
] }),
|
|
79
85
|
disabledReason === void 0 ? null : /* @__PURE__ */ jsx(VisuallyHidden, { id: reasonId, children: disabledReason }),
|
|
80
86
|
hint || near || hasActions ? /* @__PURE__ */ jsxs("div", { className: "crewlet-composer__footer", "data-hint-only": !near && !hasActions || void 0, children: [
|
|
87
|
+
present(tools) ? /* @__PURE__ */ jsx("div", { className: "crewlet-composer__tools", children: tools }) : null,
|
|
81
88
|
hint ? /* @__PURE__ */ jsxs("span", { className: "crewlet-composer__hint", children: [
|
|
82
89
|
/* @__PURE__ */ jsx(Kbd, { keys: ["Mod", "Enter"], subtle: true }),
|
|
83
90
|
" to send"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { useComposedRef } from './chunk-L72URIHR.js';
|
|
1
2
|
import { useLayerContainer, viewportBounds, LAYER_GAP, anchorGone, placePopup, LAYER_REPOSITION_EVENT } from './chunk-OMV5W53A.js';
|
|
2
|
-
import { usePopupLayer, focusables } from './chunk-
|
|
3
|
-
import { returnFocus } from './chunk-
|
|
3
|
+
import { usePopupLayer, focusables } from './chunk-TUEM2XIW.js';
|
|
4
|
+
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
4
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
6
|
import './Popover-QCINR7WG.css';
|
|
6
7
|
import { useId, useState, useRef, useCallback, useLayoutEffect, useEffect, cloneElement } from 'react';
|
|
@@ -122,11 +123,13 @@ function Popover({
|
|
|
122
123
|
}, [close, open, setOpen]);
|
|
123
124
|
const triggerEl = trigger(open, toggle);
|
|
124
125
|
const haspopup = role === "none" ? void 0 : role;
|
|
126
|
+
const anchorRef = useComposedRef(
|
|
127
|
+
anchor,
|
|
128
|
+
layer.insideRef,
|
|
129
|
+
triggerEl.props.ref
|
|
130
|
+
);
|
|
125
131
|
const anchored = cloneElement(triggerEl, {
|
|
126
|
-
ref:
|
|
127
|
-
anchor.current = el;
|
|
128
|
-
layer.insideRef(el);
|
|
129
|
-
},
|
|
132
|
+
ref: anchorRef,
|
|
130
133
|
"aria-expanded": open,
|
|
131
134
|
"aria-haspopup": triggerEl.props["aria-haspopup"] ?? haspopup,
|
|
132
135
|
"aria-controls": open ? panelId : void 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './ThinkingIndicator-
|
|
3
|
+
import './ThinkingIndicator-S7ZL2C77.css';
|
|
4
4
|
import { ProductMark } from '@crewlethq/icons/product-mark';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { presenceHueClass } from './chunk-EFX2YC5T.js';
|
|
2
2
|
import { presenceLabels, presenceOrder } from './chunk-Z7JYG5TF.js';
|
|
3
|
-
import { AVATAR_SIZES, Avatar } from './chunk-
|
|
3
|
+
import { avatarCorner, AVATAR_SIZES, Avatar } from './chunk-XZY6S3UC.js';
|
|
4
4
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
-
import './PresenceStack-
|
|
6
|
+
import './PresenceStack-2DTYRADY.css';
|
|
7
7
|
import { isCrewletCharacter } from '@crewlethq/icons/characters';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -40,7 +40,10 @@ function PresenceStack({ members, self = true, max = 4, size = "sm", onSelect, l
|
|
|
40
40
|
"+",
|
|
41
41
|
hidden.length
|
|
42
42
|
] }) : null;
|
|
43
|
-
const style = {
|
|
43
|
+
const style = {
|
|
44
|
+
"--crewlet-avatar-stack-size": `${AVATAR_SIZES[size]}px`,
|
|
45
|
+
"--crewlet-presence-stack-corner": `${avatarCorner(AVATAR_SIZES[size])}px`
|
|
46
|
+
};
|
|
44
47
|
if (onSelect === void 0) {
|
|
45
48
|
if (ordered.length === 0) return null;
|
|
46
49
|
return /* @__PURE__ */ jsxs("span", { className: cx("crewlet-avatar-stack", "crewlet-presence-stack", className), style, role: "img", "aria-label": spoken, children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Tag } from './chunk-
|
|
2
|
-
import { Card } from './chunk-
|
|
1
|
+
import { Tag } from './chunk-LBGKLYBY.js';
|
|
2
|
+
import { Card } from './chunk-U2IQNDDR.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './StatusCard-72STCSWY.css';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useTreeState, useMeasuredSizes, layoutForest, treeAncestors, useLayoutAnchor, treeExpandable, layoutConnectors, treeItemAction, treeStep, treePosInSet, treeSetSize, treeLevel, placeGroups } from './chunk-MY374UUD.js';
|
|
2
|
-
import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-
|
|
3
|
-
import {
|
|
2
|
+
import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-NCUSI4ZU.js';
|
|
3
|
+
import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-YJQXESOJ.js';
|
|
4
|
+
import { focusables } from './chunk-TUEM2XIW.js';
|
|
4
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
6
|
import './TreeCanvas-5FPK4CII.css';
|
|
6
|
-
import { useState, useRef, useMemo, useLayoutEffect, useCallback, useImperativeHandle, useId
|
|
7
|
+
import { useState, useRef, useMemo, useLayoutEffect, useCallback, useImperativeHandle, useId } from 'react';
|
|
7
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
9
|
|
|
9
10
|
var ENTRANCE_STEP_MS = 60;
|
|
@@ -14,19 +15,7 @@ function entranceOrder(layout) {
|
|
|
14
15
|
return [...layout.nodes].sort((a, b) => row(a) - row(b) || a.x - b.x || (a.id < b.id ? -1 : 1)).map((one) => one.id);
|
|
15
16
|
}
|
|
16
17
|
function useStillness() {
|
|
17
|
-
|
|
18
|
-
const subscribe = useCallback((notify) => {
|
|
19
|
-
if (typeof window === "undefined" || typeof window.matchMedia !== "function") return () => {
|
|
20
|
-
};
|
|
21
|
-
const list = window.matchMedia(query);
|
|
22
|
-
list.addEventListener("change", notify);
|
|
23
|
-
return () => list.removeEventListener("change", notify);
|
|
24
|
-
}, []);
|
|
25
|
-
const read = useCallback(
|
|
26
|
-
() => typeof window !== "undefined" && typeof window.matchMedia === "function" ? window.matchMedia(query).matches : false,
|
|
27
|
-
[]
|
|
28
|
-
);
|
|
29
|
-
return useSyncExternalStore(subscribe, read, () => false);
|
|
18
|
+
return useMediaMatch(REDUCED_MOTION_QUERY);
|
|
30
19
|
}
|
|
31
20
|
function useEntrance(layout, still) {
|
|
32
21
|
const [shown, setShown] = useState(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
2
|
-
import { Combobox } from './chunk-
|
|
3
|
-
import { FormField, Textarea, InputAffix } from './chunk-
|
|
1
|
+
import { Select } from './chunk-3IWZVEXA.js';
|
|
2
|
+
import { Combobox } from './chunk-NNZRTR5M.js';
|
|
3
|
+
import { FormField, Textarea, InputAffix } from './chunk-O7N6W52M.js';
|
|
4
4
|
import './Input-WSMB7JG2.css';
|
|
5
5
|
import './VisuallyHidden-AOEXU5EB.css';
|
|
6
6
|
import './HitArea-QUOS6ZDJ.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IconTile } from './chunk-3LI4TRUR.js';
|
|
2
1
|
import { safeHref } from './chunk-KBZO4B33.js';
|
|
2
|
+
import { IconTile } from './chunk-3LI4TRUR.js';
|
|
3
3
|
import { ReceiptStrip } from './chunk-ZWCK4N4L.js';
|
|
4
|
-
import { StatusCard } from './chunk-
|
|
4
|
+
import { StatusCard } from './chunk-FLW5U7YS.js';
|
|
5
5
|
import { ButtonLink, Button } from './chunk-DGXZ635L.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './OpenInAppCard-CKHCK7DO.css';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useReorder } from './chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { FormField, Textarea } from './chunk-FB3TCNQP.js';
|
|
1
|
+
import { useReorder } from './chunk-BVML4UVB.js';
|
|
2
|
+
import { FormField, Textarea } from './chunk-O7N6W52M.js';
|
|
4
3
|
import { characterCountState, CharacterCount, countCharacters } from './chunk-PGCLHYVP.js';
|
|
5
|
-
import {
|
|
4
|
+
import { Kbd } from './chunk-CMAZZY2I.js';
|
|
6
5
|
import { Button } from './chunk-DGXZ635L.js';
|
|
7
|
-
import { isComposing } from './chunk-
|
|
6
|
+
import { isComposing } from './chunk-TUEM2XIW.js';
|
|
8
7
|
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
8
|
+
import { announce } from './chunk-2G355KDJ.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './ListInput-4ISMGZDQ.css';
|
|
11
11
|
import { forwardRef, useState, useRef, useImperativeHandle, useLayoutEffect, useId } from 'react';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
2
|
+
import './ArtifactKinds-3EH4KR3F.css';
|
|
3
|
+
import './ActionCard-47WSZ2O5.css';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var ACTION_CARD_GROUND = {
|
|
7
|
+
purple: "design",
|
|
8
|
+
blue: "doc",
|
|
9
|
+
amber: "slides",
|
|
10
|
+
green: "sheet",
|
|
11
|
+
teal: "dashboard",
|
|
12
|
+
magenta: "brand",
|
|
13
|
+
rose: "html"
|
|
14
|
+
};
|
|
15
|
+
function ActionCard({ title, tone, art, onSelect, onClick, className, type = "button", ...rest }) {
|
|
16
|
+
return /* @__PURE__ */ jsxs(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
...rest,
|
|
20
|
+
type,
|
|
21
|
+
className: cx("crewlet-action-card", `crewlet-kind--${ACTION_CARD_GROUND[tone]}`, className),
|
|
22
|
+
onClick: (event) => {
|
|
23
|
+
onClick?.(event);
|
|
24
|
+
if (!event.defaultPrevented) onSelect();
|
|
25
|
+
},
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-action-card__title", children: title }),
|
|
28
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-action-card__art", "aria-hidden": "true", children: art })
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function ActionCardRow({ label, children, className }) {
|
|
34
|
+
return /* @__PURE__ */ jsx("div", { role: "group", "aria-label": label, className: cx("crewlet-action-cards", className), children });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { ACTION_CARD_GROUND, ActionCard, ActionCardRow };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Skeleton-
|
|
3
|
+
import './Skeleton-GIXV3KK5.css';
|
|
4
4
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
var range = (n) => Array.from({ length: Math.max(0, n) }, (_, i) => i);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFocusModality } from './chunk-
|
|
1
|
+
import { useFocusModality } from './chunk-4ITETIGZ.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
3
|
import './Document-M6JYGLWV.css';
|
|
4
4
|
import { forwardRef, useRef, useCallback, useLayoutEffect, useEffect } from 'react';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PrincipalAvatar } from './chunk-
|
|
1
|
+
import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
|
|
2
2
|
import { toInstant, RelativeTime, formatExact, toISO } from './chunk-EJNJMHQG.js';
|
|
3
|
-
import { Document } from './chunk-
|
|
4
|
-
import { Composer } from './chunk-
|
|
5
|
-
import { Count } from './chunk-MLDTLZAO.js';
|
|
6
|
-
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
3
|
+
import { Document } from './chunk-I4PBFJGX.js';
|
|
4
|
+
import { Composer } from './chunk-EBVZHVPD.js';
|
|
7
5
|
import { Button } from './chunk-DGXZ635L.js';
|
|
8
6
|
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
7
|
+
import { Count } from './chunk-D2GT3CR4.js';
|
|
8
|
+
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './CommentThread-FRXTDNV6.css';
|
|
11
11
|
import { useState, useRef, useId, useMemo } from 'react';
|