@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,5 +1,5 @@
|
|
|
1
1
|
import { SlideNav } from './chunk-5AJR6X75.js';
|
|
2
|
-
import { SlideStage, SLIDE_WIDTH, SLIDE_HEIGHT } from './chunk-
|
|
2
|
+
import { SlideStage, SLIDE_WIDTH, SLIDE_HEIGHT } from './chunk-O6EV6GKI.js';
|
|
3
3
|
import { Eyebrow } from './chunk-RK4XPHVG.js';
|
|
4
4
|
import { Button } from './chunk-DGXZ635L.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Avatar } from './chunk-XZY6S3UC.js';
|
|
1
2
|
import { useRoving, tabStop } from './chunk-EGMQURBR.js';
|
|
2
|
-
import { Avatar } from './chunk-KTIQSSME.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import { CREWLET_CHARACTERS, CREWLET_CHARACTER_GEOMETRY } from '@crewlethq/icons/characters';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { heldHint } from './chunk-TDFLCUBE.js';
|
|
2
|
+
import { emojiName } from './chunk-SPNTUQBV.js';
|
|
3
|
+
import { Toolbar } from './chunk-NXFTCPF6.js';
|
|
4
|
+
import { Tooltip } from './chunk-7ZSEUO5Q.js';
|
|
5
|
+
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
6
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
|
+
import './ChatScale-L4SIHSKL.css';
|
|
8
|
+
import './MessageActions-Q4F5UH3S.css';
|
|
9
|
+
import { forwardRef } from 'react';
|
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
function MessageActions({ label = "Message actions", className, children }) {
|
|
13
|
+
return /* @__PURE__ */ jsx(Toolbar, { label, className: cx("crewlet-message-actions", className), children });
|
|
14
|
+
}
|
|
15
|
+
var MessageAction = forwardRef(function MessageAction2({ label, icon, pressed, disabledReason, ...rest }, ref) {
|
|
16
|
+
return /* @__PURE__ */ jsx(Tooltip, { content: heldHint(label, disabledReason), disabled: rest["aria-expanded"] === true || rest["aria-expanded"] === "true", children: /* @__PURE__ */ jsx(
|
|
17
|
+
IconButton,
|
|
18
|
+
{
|
|
19
|
+
...rest,
|
|
20
|
+
ref,
|
|
21
|
+
label,
|
|
22
|
+
icon,
|
|
23
|
+
size: "md",
|
|
24
|
+
variant: "ghost",
|
|
25
|
+
pressed,
|
|
26
|
+
disabledReason
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
29
|
+
});
|
|
30
|
+
function QuickReaction({ emoji, name, onPick, label = (said) => `React with ${said}`, disabledReason }) {
|
|
31
|
+
const words = label(name ?? emojiName(emoji));
|
|
32
|
+
return /* @__PURE__ */ jsx(Tooltip, { content: heldHint(words, disabledReason), children: /* @__PURE__ */ jsx(
|
|
33
|
+
"button",
|
|
34
|
+
{
|
|
35
|
+
type: "button",
|
|
36
|
+
className: "crewlet-message-actions__emoji",
|
|
37
|
+
"aria-label": words,
|
|
38
|
+
"aria-disabled": disabledReason ? true : void 0,
|
|
39
|
+
onClick: () => {
|
|
40
|
+
if (!disabledReason) onPick();
|
|
41
|
+
},
|
|
42
|
+
children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: emoji })
|
|
43
|
+
}
|
|
44
|
+
) });
|
|
45
|
+
}
|
|
46
|
+
function ActionDivider() {
|
|
47
|
+
return /* @__PURE__ */ jsx("span", { className: "crewlet-message-actions__divider", "aria-hidden": "true" });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { ActionDivider, MessageAction, MessageActions, QuickReaction };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isComposing, isModalLayerOpen } from './chunk-
|
|
1
|
+
import { isComposing, isModalLayerOpen } from './chunk-TUEM2XIW.js';
|
|
2
2
|
import { useRef, useEffect } from 'react';
|
|
3
3
|
|
|
4
4
|
var TYPING_ROLES = /* @__PURE__ */ new Set(["combobox", "listbox", "textbox", "searchbox", "spinbutton"]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useRoving, tabStop } from './chunk-EGMQURBR.js';
|
|
2
2
|
import { StatusDot } from './chunk-CYQBDZ6M.js';
|
|
3
|
-
import {
|
|
4
|
-
import { Menu } from './chunk-OQG4P5KU.js';
|
|
3
|
+
import { Menu } from './chunk-TGGYSQRD.js';
|
|
5
4
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
5
|
+
import { Count } from './chunk-D2GT3CR4.js';
|
|
6
6
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './HitArea-QUOS6ZDJ.css';
|
|
@@ -3,7 +3,7 @@ import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
|
3
3
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './HitArea-QUOS6ZDJ.css';
|
|
6
|
-
import './ArtifactKinds-
|
|
6
|
+
import './ArtifactKinds-3EH4KR3F.css';
|
|
7
7
|
import './ArtifactMakeRow-6UX2LTF7.css';
|
|
8
8
|
import { useId } from 'react';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LayerNodeBridge } from './chunk-LM3ISVJA.js';
|
|
2
|
-
import { Tooltip } from './chunk-
|
|
3
|
-
import { Kbd } from './chunk-
|
|
2
|
+
import { Tooltip } from './chunk-7ZSEUO5Q.js';
|
|
3
|
+
import { Kbd } from './chunk-CMAZZY2I.js';
|
|
4
4
|
import { Button } from './chunk-DGXZ635L.js';
|
|
5
5
|
import { LAYER_REPOSITION_EVENT, LayerHost } from './chunk-OMV5W53A.js';
|
|
6
|
+
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
6
7
|
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
7
|
-
import { returnFocus } from './chunk-NUZHC6MM.js';
|
|
8
8
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './Canvas-4QJHVLJ4.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconTile } from './chunk-3LI4TRUR.js';
|
|
2
|
-
import { Tag } from './chunk-
|
|
2
|
+
import { Tag } from './chunk-LBGKLYBY.js';
|
|
3
3
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './ReviewList-2IZA67EX.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useListbox, useOptionKeys } from './chunk-
|
|
2
|
-
import { Input } from './chunk-
|
|
1
|
+
import { useListbox, useOptionKeys } from './chunk-YGRTX67J.js';
|
|
2
|
+
import { Input } from './chunk-O7N6W52M.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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Callout } from './chunk-BPCY7ZID.js';
|
|
2
2
|
import { Button } from './chunk-DGXZ635L.js';
|
|
3
|
-
import { isComposing } from './chunk-
|
|
3
|
+
import { isComposing } from './chunk-TUEM2XIW.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import { useEffect } from 'react';
|
|
6
6
|
import { EyeGlyph, UserGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemeSwatch } from './chunk-3XQUEF5C.js';
|
|
2
|
-
import { useHighlightRest } from './chunk-
|
|
3
|
-
import { Tag } from './chunk-
|
|
2
|
+
import { useHighlightRest } from './chunk-YGRTX67J.js';
|
|
3
|
+
import { Tag } from './chunk-LBGKLYBY.js';
|
|
4
4
|
import { useRoving, tabStop } from './chunk-EGMQURBR.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './ThemeGallery-UEFZRT6W.css';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { safeHref } from './chunk-KBZO4B33.js';
|
|
2
|
+
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
3
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
+
import './ChatScale-L4SIHSKL.css';
|
|
5
|
+
import './VisuallyHidden-AOEXU5EB.css';
|
|
6
|
+
import './LinkCard-5I4MYU6I.css';
|
|
7
|
+
import { useId } from 'react';
|
|
8
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
function LinkCard({
|
|
11
|
+
href,
|
|
12
|
+
external = false,
|
|
13
|
+
newTabLabel = "(opens in a new tab)",
|
|
14
|
+
address,
|
|
15
|
+
source,
|
|
16
|
+
code,
|
|
17
|
+
title,
|
|
18
|
+
meta,
|
|
19
|
+
status,
|
|
20
|
+
statusTone = "neutral",
|
|
21
|
+
owner,
|
|
22
|
+
className,
|
|
23
|
+
...rest
|
|
24
|
+
}) {
|
|
25
|
+
const id = useId();
|
|
26
|
+
const safe = href === void 0 ? null : safeHref(href);
|
|
27
|
+
const ids = {
|
|
28
|
+
title: `${id}-title`,
|
|
29
|
+
tab: `${id}-tab`,
|
|
30
|
+
source: `${id}-source`,
|
|
31
|
+
meta: `${id}-meta`,
|
|
32
|
+
status: `${id}-status`,
|
|
33
|
+
owner: `${id}-owner`
|
|
34
|
+
};
|
|
35
|
+
const body = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
36
|
+
/* @__PURE__ */ jsxs("span", { id: ids.source, className: "crewlet-link-card__source", children: [
|
|
37
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-link-card__mark", "aria-hidden": "true", children: source.mark }),
|
|
38
|
+
source.name
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ jsxs("span", { id: ids.title, className: "crewlet-link-card__title", children: [
|
|
41
|
+
code ? /* @__PURE__ */ jsx("span", { className: "crewlet-link-card__code", children: code }) : null,
|
|
42
|
+
code ? " " : null,
|
|
43
|
+
title
|
|
44
|
+
] }),
|
|
45
|
+
meta ? /* @__PURE__ */ jsx("span", { id: ids.meta, className: "crewlet-link-card__meta", children: meta }) : null,
|
|
46
|
+
status || owner ? /* @__PURE__ */ jsxs("span", { className: "crewlet-link-card__fields", children: [
|
|
47
|
+
status ? /* @__PURE__ */ jsxs("span", { id: ids.status, className: "crewlet-link-card__status", children: [
|
|
48
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-link-card__dot", "aria-hidden": "true" }),
|
|
49
|
+
status
|
|
50
|
+
] }) : null,
|
|
51
|
+
owner ? /* @__PURE__ */ jsxs("span", { id: ids.owner, className: "crewlet-link-card__owner", children: [
|
|
52
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-link-card__face", "aria-hidden": "true", children: owner.face }),
|
|
53
|
+
owner.name
|
|
54
|
+
] }) : null
|
|
55
|
+
] }) : null
|
|
56
|
+
] });
|
|
57
|
+
const classes = cx("crewlet-link-card", `crewlet-link-card--${statusTone}`, className);
|
|
58
|
+
if (safe === null) {
|
|
59
|
+
return /* @__PURE__ */ jsx("div", { className: cx(classes, "crewlet-link-card--inert"), title: address, children: body });
|
|
60
|
+
}
|
|
61
|
+
const describedBy = [ids.source, meta ? ids.meta : null, status ? ids.status : null, owner ? ids.owner : null].filter(Boolean).join(" ");
|
|
62
|
+
return /* @__PURE__ */ jsxs(
|
|
63
|
+
"a",
|
|
64
|
+
{
|
|
65
|
+
...rest,
|
|
66
|
+
href: safe,
|
|
67
|
+
title: address,
|
|
68
|
+
className: classes,
|
|
69
|
+
"aria-labelledby": external ? `${ids.title} ${ids.tab}` : ids.title,
|
|
70
|
+
"aria-describedby": describedBy,
|
|
71
|
+
...external ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
72
|
+
children: [
|
|
73
|
+
body,
|
|
74
|
+
external ? /* @__PURE__ */ jsx(VisuallyHidden, { id: ids.tab, children: newTabLabel }) : null
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { LinkCard };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EditingStatus } from './chunk-
|
|
2
|
-
import { Kbd } from './chunk-
|
|
1
|
+
import { EditingStatus } from './chunk-O55JQ7BE.js';
|
|
2
|
+
import { Kbd } from './chunk-CMAZZY2I.js';
|
|
3
3
|
import { Button } from './chunk-DGXZ635L.js';
|
|
4
|
-
import { isComposing } from './chunk-
|
|
4
|
+
import { isComposing } from './chunk-TUEM2XIW.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './InlineEditor-W55DDKML.css';
|
|
7
7
|
import { useRef, useLayoutEffect } from 'react';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { characterCountState, CharacterCount } from './chunk-PGCLHYVP.js';
|
|
2
|
+
import { isComposing } from './chunk-TUEM2XIW.js';
|
|
3
|
+
import { useFocusModality } from './chunk-4ITETIGZ.js';
|
|
4
|
+
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
2
5
|
import { useHeadingLevel, headingTag, HeadingLevelProvider, nextHeadingLevel } from './chunk-PQADV6P6.js';
|
|
3
6
|
import { announce } from './chunk-2G355KDJ.js';
|
|
4
|
-
import { isComposing } from './chunk-H5XTJ7GJ.js';
|
|
5
|
-
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
6
|
-
import { useFocusModality } from './chunk-NUZHC6MM.js';
|
|
7
7
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
8
8
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
9
9
|
import './Input-WSMB7JG2.css';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChatDivider } from './chunk-K774LUN3.js';
|
|
2
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
+
import './ChatScale-L4SIHSKL.css';
|
|
4
|
+
import './ChatDivider-7ZNDL2PZ.css';
|
|
5
|
+
import './ChatDay-E3FF5HWF.css';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
function ChatDay({ label, pill, unread, className, children, ...rest }) {
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", { ...rest, role: "group", "aria-label": label, className: cx("crewlet-chat-day", className), children: [
|
|
12
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-chat-day__label", children: pill ?? /* @__PURE__ */ jsx("span", { className: "crewlet-chat-day__pill", children: label }) }),
|
|
13
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-chat-day__rule", children: unread ? /* @__PURE__ */ jsx(ChatDivider, { variant: "unread", label: unread }) : null }),
|
|
14
|
+
children
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
var ChatDayPill = forwardRef(function ChatDayPill2({ label, className, type = "button", ...rest }, ref) {
|
|
18
|
+
const opensMenu = rest["aria-haspopup"] !== void 0 && rest["aria-haspopup"] !== false && rest["aria-haspopup"] !== "false";
|
|
19
|
+
return /* @__PURE__ */ jsxs("button", { ...rest, ref, type, className: cx("crewlet-chat-day__pill", "crewlet-chat-day__pill--button", className), children: [
|
|
20
|
+
label,
|
|
21
|
+
opensMenu ? /* @__PURE__ */ jsx(ChevronDownGlyph, { size: "xs" }) : null
|
|
22
|
+
] });
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { ChatDay, ChatDayPill };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeHex, parseColourInput } from './chunk-7W3LYIOC.js';
|
|
2
|
-
import { FormField, Input, InputAffix } from './chunk-
|
|
2
|
+
import { FormField, Input, InputAffix } from './chunk-O7N6W52M.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './ColorField-2OIOWT3Z.css';
|
|
5
5
|
import { useId, useState } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RefusalStrip, ReceiptStrip } from './chunk-ZWCK4N4L.js';
|
|
2
|
-
import { ChangeList } from './chunk-
|
|
3
|
-
import { StatusCard } from './chunk-
|
|
4
|
-
import { Checkbox } from './chunk-
|
|
5
|
-
import { Disclosure } from './chunk-
|
|
2
|
+
import { ChangeList } from './chunk-AOJ6ZA77.js';
|
|
3
|
+
import { StatusCard } from './chunk-FLW5U7YS.js';
|
|
4
|
+
import { Checkbox } from './chunk-YQ7Q52XU.js';
|
|
5
|
+
import { Disclosure } from './chunk-LVJGN5II.js';
|
|
6
6
|
import { Button } from './chunk-DGXZ635L.js';
|
|
7
7
|
import { Spinner } from './chunk-XSPCITPN.js';
|
|
8
8
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-YJQXESOJ.js';
|
|
2
|
+
import { tokenMs } from './chunk-HTS5RJ7S.js';
|
|
3
|
+
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
4
|
+
import { useState, useLayoutEffect } from 'react';
|
|
5
|
+
import { motion } from '@crewlethq/tokens';
|
|
6
|
+
|
|
7
|
+
var MOTION_MARGIN_MS = tokenMs(motion.duration.fast);
|
|
8
|
+
function transitionProperty(animation) {
|
|
9
|
+
const property = animation.transitionProperty;
|
|
10
|
+
return typeof property === "string" ? property : null;
|
|
11
|
+
}
|
|
12
|
+
function animationName(animation) {
|
|
13
|
+
const name = animation.animationName;
|
|
14
|
+
return typeof name === "string" ? name : null;
|
|
15
|
+
}
|
|
16
|
+
function targetOf(animation) {
|
|
17
|
+
const effect = animation.effect;
|
|
18
|
+
return effect && "target" in effect ? effect.target : null;
|
|
19
|
+
}
|
|
20
|
+
function runningMotion(element, owned = {}) {
|
|
21
|
+
if (typeof element.getAnimations !== "function") return [];
|
|
22
|
+
const names = owned.animations ?? [];
|
|
23
|
+
return element.getAnimations({ subtree: names.length > 0 }).filter((animation) => {
|
|
24
|
+
if (animation.playState !== "running") return false;
|
|
25
|
+
const end = animation.effect?.getComputedTiming().endTime;
|
|
26
|
+
if (typeof end !== "number" || !Number.isFinite(end)) return false;
|
|
27
|
+
const property = transitionProperty(animation);
|
|
28
|
+
if (property !== null) {
|
|
29
|
+
return targetOf(animation) === element && (owned.transitions?.includes(property) ?? true);
|
|
30
|
+
}
|
|
31
|
+
const name = animationName(animation);
|
|
32
|
+
return name !== null && names.includes(name);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function remainingMs(running) {
|
|
36
|
+
return Math.max(
|
|
37
|
+
0,
|
|
38
|
+
...running.map((animation) => {
|
|
39
|
+
const end = Number(animation.effect?.getComputedTiming().endTime ?? 0);
|
|
40
|
+
const now = typeof animation.currentTime === "number" ? animation.currentTime : 0;
|
|
41
|
+
return end - now;
|
|
42
|
+
})
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
function afterMotion(element, done, owned = {}) {
|
|
46
|
+
let live = true;
|
|
47
|
+
let bound;
|
|
48
|
+
const stop = () => {
|
|
49
|
+
live = false;
|
|
50
|
+
if (bound !== void 0) clearTimeout(bound);
|
|
51
|
+
};
|
|
52
|
+
const finish = () => {
|
|
53
|
+
if (!live) return;
|
|
54
|
+
stop();
|
|
55
|
+
done();
|
|
56
|
+
};
|
|
57
|
+
const wait = () => {
|
|
58
|
+
if (!live) return;
|
|
59
|
+
const running = element ? runningMotion(element, owned) : [];
|
|
60
|
+
if (running.length === 0) {
|
|
61
|
+
finish();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (bound !== void 0) clearTimeout(bound);
|
|
65
|
+
bound = setTimeout(finish, remainingMs(running) + MOTION_MARGIN_MS);
|
|
66
|
+
void Promise.allSettled(running.map((animation) => animation.finished)).then(wait);
|
|
67
|
+
};
|
|
68
|
+
wait();
|
|
69
|
+
return stop;
|
|
70
|
+
}
|
|
71
|
+
function releaseFocus(container, target) {
|
|
72
|
+
const held = container?.ownerDocument.activeElement;
|
|
73
|
+
if (!container || !(held instanceof HTMLElement) || !container.contains(held)) return;
|
|
74
|
+
if (target?.isConnected && !container.contains(target) && returnFocus(target)) return;
|
|
75
|
+
held.blur();
|
|
76
|
+
}
|
|
77
|
+
function usePresence(shown, motion, { transitions, animations, instant = false } = {}) {
|
|
78
|
+
const still = useMediaMatch(REDUCED_MOTION_QUERY) || instant;
|
|
79
|
+
const [state, setState] = useState({ shown, leaving: false, entering: false, returning: false });
|
|
80
|
+
let current = state;
|
|
81
|
+
if (state.shown !== shown) {
|
|
82
|
+
current = { shown, leaving: !shown && !still, entering: shown && !still, returning: shown && !still && state.leaving };
|
|
83
|
+
}
|
|
84
|
+
if (still && (current.leaving || current.entering)) current = { ...current, leaving: false, entering: false, returning: false };
|
|
85
|
+
if (current !== state) setState(current);
|
|
86
|
+
const { leaving, entering, returning } = current;
|
|
87
|
+
const moving = leaving || entering;
|
|
88
|
+
const ownTransitions = transitions?.join(" ");
|
|
89
|
+
const ownAnimations = animations?.join(" ");
|
|
90
|
+
useLayoutEffect(() => {
|
|
91
|
+
if (!moving) return void 0;
|
|
92
|
+
return afterMotion(
|
|
93
|
+
motion.current,
|
|
94
|
+
() => setState((now) => now.shown === shown ? { ...now, leaving: false, entering: false, returning: false } : now),
|
|
95
|
+
{
|
|
96
|
+
transitions: ownTransitions === void 0 ? void 0 : ownTransitions.split(" ").filter(Boolean),
|
|
97
|
+
animations: ownAnimations === void 0 ? void 0 : ownAnimations.split(" ").filter(Boolean)
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}, [moving, shown, motion, ownTransitions, ownAnimations]);
|
|
101
|
+
return { present: shown || leaving, leaving, entering, returning };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { afterMotion, releaseFocus, runningMotion, usePresence };
|