@crewlethq/ui 0.64.0 → 0.65.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/Accordion/index.js +3 -3
- package/dist/{Accordion-ZI2WLD5C.css → Accordion-V7YNDK7Y.css} +10 -0
- package/dist/AddPill/index.js +1 -1
- package/dist/{AddPill-RYCY56P4.css → AddPill-FPM5RUKI.css} +15 -5
- package/dist/AgentHandoffPanel/index.js +12 -12
- package/dist/{AgentHandoffPanel-JWSW62GU.css → AgentHandoffPanel-AIU7YWWB.css} +34 -2
- package/dist/AppShell/index.d.ts +1 -0
- package/dist/AppShell/index.js +3 -3
- package/dist/AppShell/screenWidth.d.ts +66 -0
- package/dist/{AppShell-ZVCJRGXH.css → AppShell-LZQA3XU4.css} +21 -1
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/{ArrangeFrame-QXOQTFAH.css → ArrangeFrame-QCQZ5RF6.css} +6 -0
- package/dist/ArrangeGroup/index.js +2 -2
- package/dist/ArrangeList/index.js +5 -5
- package/dist/ArrangeList-F6Y43I24.css +143 -0
- package/dist/ArtifactAccess/index.js +1 -1
- package/dist/{ArtifactAccess-Y53ZTRFS.css → ArtifactAccess-RNNN2EIG.css} +6 -0
- package/dist/ArtifactBar/index.js +8 -8
- package/dist/{ArtifactBar-LEBMR35Y.css → ArtifactBar-X46WJNW7.css} +8 -3
- package/dist/ArtifactCard/index.js +10 -10
- package/dist/{ArtifactCard-F7IVRL3A.css → ArtifactCard-B2QE5CVL.css} +58 -12
- package/dist/ArtifactCover/index.js +2 -2
- package/dist/ArtifactKindIllustration/index.js +1 -1
- package/dist/{ArtifactKindIllustration-KLFL7KBG.css → ArtifactKindIllustration-D2J3HJMJ.css} +6 -0
- package/dist/ArtifactPanel/index.js +3 -3
- package/dist/{ArtifactPanel-TN4FFK2F.css → ArtifactPanel-MR5Z5AVN.css} +15 -1
- package/dist/AsideLayout/index.js +1 -1
- package/dist/{AsideLayout-TH5SQZNK.css → AsideLayout-AA3DEJKN.css} +7 -3
- package/dist/AttachmentChip/index.js +2 -2
- package/dist/AttachmentChip-RZ6ZCB43.css +33 -0
- package/dist/AuthLayout/index.js +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-3C2H2WA4.css → Avatar-FDQSCB7A.css} +44 -13
- package/dist/AvatarPicker/index.js +7 -7
- package/dist/{AvatarPicker-PREY36MG.css → AvatarPicker-POOJUOKC.css} +14 -0
- package/dist/{AvatarStack-GEJBNV7E.css → AvatarStack-7I3P7LCK.css} +23 -1
- package/dist/BrandChip/index.js +1 -1
- package/dist/{BrandChip-SQWBC2WU.css → BrandChip-7PBEYDTG.css} +4 -0
- package/dist/Breadcrumb/index.js +2 -2
- package/dist/{Breadcrumb-YMWVM3SV.css → Breadcrumb-55VBXIN4.css} +18 -0
- package/dist/CalendarGrid/index.js +1 -1
- package/dist/{CalendarGrid-V6TQ5QKS.css → CalendarGrid-TT624SDR.css} +57 -20
- package/dist/Canvas/index.js +3 -3
- package/dist/CanvasBoard/index.js +5 -5
- package/dist/{CanvasBoard-JMYNIAHK.css → CanvasBoard-U6LR5F6H.css} +6 -1
- package/dist/CanvasToolbar/index.js +4 -4
- package/dist/Card/Card.d.ts +5 -5
- package/dist/Card/index.js +2 -2
- package/dist/{Card-JR2UPQH7.css → Card-O35OMBQ5.css} +97 -17
- package/dist/CatalogTile/index.js +1 -1
- package/dist/{CatalogTile-26XN7L2A.css → CatalogTile-6VF36JWA.css} +14 -1
- package/dist/ChangeList/index.js +6 -6
- package/dist/{ChangeList-KQVD46IC.css → ChangeList-MDFH5NPH.css} +17 -0
- package/dist/ChangeMark/index.js +1 -1
- package/dist/{ChangeMark-3VMTW7MT.css → ChangeMark-KFDGBF6G.css} +5 -0
- package/dist/Charts/index.js +1 -1
- package/dist/{Charts-TZ744HT6.css → Charts-UJKADWXE.css} +33 -7
- package/dist/Checkbox/index.js +3 -3
- package/dist/{Checkbox-MB22OW6P.css → Checkbox-GAMV2XD7.css} +27 -15
- package/dist/ChoiceButtons/index.js +1 -1
- package/dist/{ChoiceButtons-HWXEF2H3.css → ChoiceButtons-Q2ET3I2N.css} +24 -3
- package/dist/ChoiceList/index.js +1 -1
- package/dist/{ChoiceList-KFYFAECP.css → ChoiceList-Q772QLFX.css} +11 -3
- package/dist/CodeBlock/index.js +3 -3
- package/dist/{CodeBlock-N5ETJF24.css → CodeBlock-T47UA5GM.css} +17 -2
- package/dist/ColorField/index.js +3 -3
- package/dist/ColorSwatch/index.js +3 -3
- package/dist/{ColorSwatch-DNMUFHNS.css → ColorSwatch-V4DA4TK5.css} +24 -1
- package/dist/Combobox/index.js +3 -3
- package/dist/CommandPalette/index.js +6 -6
- package/dist/CommentThread/index.js +8 -8
- package/dist/{CommentThread-7VXOFTZO.css → CommentThread-FRXTDNV6.css} +8 -1
- package/dist/Composer/index.js +4 -4
- package/dist/{Composer-JSGTOW3F.css → Composer-HQIMTMRC.css} +23 -1
- package/dist/ConfirmField/index.js +4 -4
- package/dist/ConflictNote/index.js +1 -1
- package/dist/ConflictNote-OP64JJ6T.css +56 -0
- package/dist/ContrastBadge/index.js +2 -2
- package/dist/ContrastHelp/index.js +4 -4
- package/dist/Copyable/index.js +2 -2
- package/dist/{Copyable-5PNRFOLS.css → Copyable-IS3MHMPL.css} +9 -0
- package/dist/Count/index.js +1 -1
- package/dist/{Count-ZVCJ6VPD.css → Count-ZJ6ID4ZU.css} +6 -1
- package/dist/CursorFlag/index.js +2 -2
- package/dist/{DashboardCover-KYGYMRKW.css → DashboardCover-PWXH4GNW.css} +21 -24
- package/dist/DataGrid/DataGrid.d.ts +35 -3
- package/dist/DataGrid/index.js +4 -4
- package/dist/{DataGrid-VNGQESJA.css → DataGrid-NHIN2I42.css} +190 -97
- package/dist/DataTable/index.js +6 -6
- package/dist/{DataTable-NL2YWAIA.css → DataTable-H43JSHOI.css} +279 -35
- package/dist/DataView/index.js +12 -12
- package/dist/{DataView-N6JX464S.css → DataView-RH5UDA5F.css} +4 -0
- package/dist/DatasetSource/index.js +2 -2
- package/dist/{DatasetSource-FFKTD3ZU.css → DatasetSource-23SI5OF2.css} +4 -1
- package/dist/DateTimePicker/index.js +3 -3
- package/dist/{DateTimePicker-3A7JIIVL.css → DateTimePicker-PM6TIRIX.css} +3 -1
- package/dist/DeepWorkCard/index.js +9 -9
- package/dist/{DeepWorkCard-DGHRIQDM.css → DeepWorkCard-CMRRNISU.css} +12 -0
- package/dist/DiffList/index.js +1 -1
- package/dist/{DiffList-GE6YBRLJ.css → DiffList-3JNPLQ2E.css} +10 -0
- package/dist/DirectoryList/index.js +1 -1
- package/dist/{DirectoryList-7OXXN47X.css → DirectoryList-XZOWYOA3.css} +7 -2
- package/dist/Disclosure/index.js +3 -3
- package/dist/{Disclosure-FVMA4RW2.css → Disclosure-D727FN5X.css} +12 -6
- package/dist/DocTabsEditor/index.js +4 -4
- package/dist/{DocTabsEditor-4M452LNS.css → DocTabsEditor-25J6MYZF.css} +17 -1
- package/dist/Document/index.js +1 -1
- package/dist/{Document-TZ2NBLOR.css → Document-M6JYGLWV.css} +7 -2
- package/dist/EditingStatus/index.js +2 -1
- package/dist/{EditingStatus-YU7EGM6Y.css → EditingStatus-TMGT265J.css} +6 -8
- package/dist/{Editor-GHHWWXXL.js → Editor-URGZOK2S.js} +3 -3
- package/dist/EntityChip/index.js +1 -1
- package/dist/EntityList/index.js +5 -5
- package/dist/{EntityList-XIICECVC.css → EntityList-DT3BQLUW.css} +14 -0
- package/dist/FactList/index.js +1 -1
- package/dist/{FactList-G2H73NFR.css → FactList-QEOHLHX3.css} +11 -0
- package/dist/FileList/index.js +1 -1
- package/dist/{FileList-TGDNV2QS.css → FileList-665NXS7T.css} +10 -0
- package/dist/FindingList/index.js +1 -1
- package/dist/{FindingList-PMYA2R6Q.css → FindingList-MPLA2ZTO.css} +13 -1
- package/dist/FolderTile/index.js +3 -3
- package/dist/HuePicker/index.js +6 -6
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-2D2PZ6GU.css → IconButton-LNNHLBAS.css} +8 -0
- package/dist/ImageUpload/index.js +2 -2
- package/dist/{ImageUpload-CYC3Y7M2.css → ImageUpload-OWI7CCG7.css} +13 -0
- package/dist/InboxList/index.js +1 -1
- package/dist/{InboxList-YMFWKGGS.css → InboxList-OCL2M3ZF.css} +14 -1
- package/dist/InlineCode/index.js +1 -1
- package/dist/{InlineCode-ASYHLN3E.css → InlineCode-2ZXFKTKA.css} +5 -0
- package/dist/InlineEditor/index.js +4 -3
- package/dist/Input/Input.d.ts +4 -1
- package/dist/Input/index.js +2 -2
- package/dist/{Input-GMOWHZRG.css → Input-GEFFMKBS.css} +42 -2
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-MCWJTRTT.css → Kbd-YO5U2PSZ.css} +8 -2
- package/dist/KeyChip/index.js +1 -1
- package/dist/{KeyChip-4XJU4BBE.css → KeyChip-QC7TPU65.css} +4 -1
- package/dist/LayersList/index.js +1 -1
- package/dist/{LayersList-TBNF4XGL.css → LayersList-BQHKROBH.css} +16 -6
- package/dist/Link/index.js +1 -1
- package/dist/{Link-WPMVLKLY.css → Link-CLURSR2O.css} +15 -1
- package/dist/LinkInterstitial/index.js +4 -4
- package/dist/List/index.js +1 -1
- package/dist/{List-XY445TKY.css → List-JOELBLTU.css} +38 -0
- package/dist/ListDetail/ListDetail.d.ts +10 -5
- package/dist/ListDetail/index.js +1 -1
- package/dist/ListDetail-N3L7PB46.css +87 -0
- package/dist/ListInput/index.js +4 -4
- package/dist/{ListInput-RLQND5QK.css → ListInput-4ISMGZDQ.css} +42 -0
- package/dist/LiveCursor/index.js +3 -3
- package/dist/{LiveCursor-DZHGIYWE.css → LiveCursor-Z6DHHLWI.css} +10 -0
- package/dist/LogoSlot/LogoSlot.d.ts +6 -0
- package/dist/LogoSlot/index.js +3 -3
- package/dist/{LogoSlot-NAJE5XY3.css → LogoSlot-APCMGE6S.css} +24 -6
- package/dist/MarkdownEditor/index.js +7 -7
- package/dist/{MarkdownEditor-WOKV7CLK.css → MarkdownEditor-BLCJRGDC.css} +11 -1
- package/dist/Menu/index.js +2 -2
- package/dist/{Menu-KEKAD3BZ.css → Menu-OLUGHX56.css} +19 -1
- package/dist/MergeConflicts/index.js +7 -7
- package/dist/{MergeConflicts-O44ESH4T.css → MergeConflicts-HCXPRQVR.css} +11 -0
- package/dist/MessageBubble/index.js +1 -1
- package/dist/{MessageBubble-GKO6X3QG.css → MessageBubble-AHTXBO3X.css} +13 -2
- package/dist/Modal/index.js +2 -2
- package/dist/{Modal-3HMP7WAZ.css → Modal-FYQYEI3N.css} +18 -1
- package/dist/ObjectHeader/index.js +2 -2
- package/dist/OpenInAppCard/index.js +6 -6
- package/dist/OrgLabel/index.js +1 -1
- package/dist/OrgNode/index.js +2 -2
- package/dist/{OrgNode-TCHJH5FO.css → OrgNode-6OCBAIBK.css} +9 -1
- package/dist/OrgTable/index.js +5 -5
- package/dist/PageHeader/index.js +1 -1
- package/dist/{PageHeader-KMT63D56.css → PageHeader-ES5RN55V.css} +11 -1
- package/dist/PeekRail/index.js +2 -2
- package/dist/PeopleRail/index.js +3 -3
- package/dist/{PeopleRail-SZGHZXVT.css → PeopleRail-MRUSDGCZ.css} +11 -1
- package/dist/PinTile/index.js +2 -2
- package/dist/{PinTile-IIA25MNZ.css → PinTile-OWS7JTHD.css} +12 -1
- package/dist/PresenceRing/index.js +1 -1
- package/dist/{PresenceRing-M4C22Q6U.css → PresenceRing-ZMVVTYMH.css} +14 -4
- package/dist/PresenceStack/index.js +3 -3
- package/dist/PresenceStack-ZV67BH4V.css +108 -0
- package/dist/PresenterView/index.js +3 -3
- package/dist/{PresenterView-T3EXIQ5S.css → PresenterView-RKYEK27N.css} +9 -4
- package/dist/PricingCard/index.js +2 -2
- package/dist/{PricingCard-HTAHG4ST.css → PricingCard-BXMLP7KD.css} +11 -2
- package/dist/Principal/index.js +1 -1
- package/dist/PrincipalPicker/index.js +5 -5
- package/dist/{PrincipalPicker-7NNZTGUP.css → PrincipalPicker-P6UYHDJR.css} +18 -1
- package/dist/PropertyList/index.js +3 -3
- package/dist/{PropertyList-SCYM66LL.css → PropertyList-42MEVUXV.css} +4 -1
- package/dist/ProposalCard/index.js +10 -10
- package/dist/{ProposalCard-YDGECRES.css → ProposalCard-VTTCDXYK.css} +8 -0
- package/dist/ReceiptStrip/index.js +1 -1
- package/dist/{ReceiptStrip-IIRKRTBG.css → ReceiptStrip-V7ASVZVV.css} +9 -0
- package/dist/RefusalCard/index.js +5 -5
- package/dist/RelatedRow/index.js +3 -3
- package/dist/RelatedRow-IZ22XCLP.css +19 -0
- package/dist/ResultTableCard/index.js +5 -5
- package/dist/ReviewList/index.js +2 -2
- package/dist/{ReviewList-TIN6C2JN.css → ReviewList-2IZA67EX.css} +13 -1
- package/dist/RichEditor/index.js +2 -2
- package/dist/{RichEditor-NPD2KAPS.css → RichEditor-5CF3QV3J.css} +19 -2
- package/dist/RunChip/index.js +5 -5
- package/dist/{RunChip-D3JYPTTO.css → RunChip-K5DGHXHO.css} +16 -0
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SearchTrigger/index.js +1 -1
- package/dist/{SearchTrigger-UAKWW5HT.css → SearchTrigger-SE4GKNAY.css} +11 -0
- package/dist/Section/index.js +1 -1
- package/dist/{Section-M7SG6NP2.css → Section-X2CTTPI3.css} +19 -0
- package/dist/SectionFrame/index.js +3 -3
- package/dist/SegmentedControl/index.js +6 -6
- package/dist/Select/index.js +1 -1
- package/dist/{Select-F526HLNR.css → Select-6BQPBOHH.css} +37 -7
- package/dist/SelectionBar/index.js +1 -1
- package/dist/{SelectionBar-XPWKUOSC.css → SelectionBar-SCAU6EBY.css} +5 -1
- package/dist/SendButton/index.js +2 -2
- package/dist/SetupWizard/index.js +6 -6
- package/dist/{SetupWizard-Z54H6RYW.css → SetupWizard-WDOFFNIM.css} +25 -0
- package/dist/ShareDialog/index.js +6 -6
- package/dist/{ShareDialog-4QDCBWMH.css → ShareDialog-72VTMM4K.css} +5 -1
- package/dist/SheetColumnEditor/index.js +11 -11
- package/dist/SheetGrid/index.js +9 -9
- package/dist/{SheetGrid-XK7T7M34.css → SheetGrid-QGQAYDEY.css} +132 -10
- package/dist/SidePanel/index.js +2 -2
- package/dist/SidebarNav/index.js +2 -2
- package/dist/{SidebarNav-YI74SPDC.css → SidebarNav-VTQ3G4AE.css} +15 -5
- package/dist/Skeleton/index.js +1 -1
- package/dist/{Skeleton-V735HRGM.css → Skeleton-7ZA5ETJM.css} +21 -16
- package/dist/SlideCompare/index.js +1 -1
- package/dist/{SlideCompare-HTCMPQFY.css → SlideCompare-R4GVZXAM.css} +4 -1
- package/dist/SlideFilmstrip/index.js +4 -4
- package/dist/{SlideFilmstrip-PAT7P4OG.css → SlideFilmstrip-BLGBCLEU.css} +15 -5
- package/dist/SlideGrid/index.js +1 -1
- package/dist/{SlideGrid-FJA33DV4.css → SlideGrid-J4LAOUSJ.css} +20 -3
- package/dist/SlideNav/index.js +2 -2
- package/dist/{SlideNav-BLFJF6AH.css → SlideNav-ODTNGTMT.css} +13 -2
- package/dist/SourceEditor/index.js +1 -1
- package/dist/{SourceEditor-OKPWPFXK.css → SourceEditor-SMQ44O76.css} +4 -2
- package/dist/StatCard/index.js +1 -1
- package/dist/{StatCard-HAA3F5GX.css → StatCard-TPKGB2GB.css} +7 -0
- package/dist/StatusCard/index.js +4 -4
- package/dist/{StatusCard-AMOI6GBK.css → StatusCard-FCJN7SXJ.css} +37 -2
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-QEJI5RGX.css → Stepper-32INSYF7.css} +22 -4
- package/dist/SuggestionRow/index.js +1 -1
- package/dist/{SuggestionRow-OKBGNHSS.css → SuggestionRow-WSU34POM.css} +26 -2
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-66RAQCRE.css → Switch-AUYLQLTN.css} +30 -3
- package/dist/Switcher/index.js +6 -6
- package/dist/{Switcher-K3EPA2RB.css → Switcher-VWQMZUTN.css} +13 -2
- package/dist/TableCells/index.js +4 -4
- package/dist/{TableCells-3VN5N2M3.css → TableCells-F6MUV572.css} +9 -0
- package/dist/Tabs/index.js +4 -4
- package/dist/{Tabs-S7F4RWAN.css → Tabs-7ZK2UF75.css} +18 -10
- package/dist/Tag/index.js +1 -1
- package/dist/{Tag-2DQOVE6W.css → Tag-JTJVZM2D.css} +13 -1
- package/dist/TagGroup/index.js +1 -1
- package/dist/{TagGroup-NAXTJHDS.css → TagGroup-VGL7ZFBK.css} +44 -13
- package/dist/TagsInput/index.js +3 -3
- package/dist/{TagsInput-CLFHP6I2.css → TagsInput-MZXEHKJD.css} +13 -0
- package/dist/ThemeGallery/index.js +3 -3
- package/dist/ThemeSwatch/index.js +1 -1
- package/dist/{ThemeSwatch-4DL457ZB.css → ThemeSwatch-KAA2AEUM.css} +30 -5
- package/dist/ThemeSwitcher/index.js +7 -7
- package/dist/ThemeToggle/index.js +2 -2
- package/dist/TimeRangePicker/index.js +9 -9
- package/dist/TimeWindowPicker/index.js +5 -5
- package/dist/{TimeWindowPicker-I3HXC74I.css → TimeWindowPicker-YZPKNZZI.css} +22 -4
- package/dist/Timeline/index.js +1 -1
- package/dist/{Timeline-27SYKOFX.css → Timeline-PGIZIODK.css} +31 -2
- package/dist/Toaster/index.js +1 -1
- package/dist/{Toaster-MX7TBMC3.css → Toaster-OCW7W3FJ.css} +23 -5
- package/dist/TreeCanvas/index.js +4 -4
- package/dist/{TreeCanvas-QA3PDFTK.css → TreeCanvas-5FPK4CII.css} +19 -3
- package/dist/TreeGrid/TreeGrid.d.ts +9 -1
- package/dist/TreeGrid/index.js +2 -2
- package/dist/{TreeGrid-UCPV37XB.css → TreeGrid-522U6WBG.css} +36 -8
- package/dist/ValueField/index.js +5 -5
- package/dist/VersionCompare/index.js +7 -7
- package/dist/VersionTimeline/index.js +3 -3
- package/dist/{VersionTimeline-6KRXEEOO.css → VersionTimeline-DEAQ7CJG.css} +19 -1
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/{WidgetFrame-BTFW3CRK.css → WidgetFrame-WXYFYAAH.css} +13 -1
- package/dist/{chunk-P4YORMRZ.js → chunk-222VILSP.js} +2 -2
- package/dist/{chunk-OOC7Q67K.js → chunk-25AZQ3GZ.js} +1 -1
- package/dist/{chunk-KA2GAB3N.js → chunk-2A6DL3K5.js} +2 -2
- package/dist/{chunk-QCVAVAF6.js → chunk-2EA2GSA2.js} +1 -1
- package/dist/{chunk-W2Q5DZJB.js → chunk-2SU735S3.js} +1 -1
- package/dist/{chunk-JPVORBWC.js → chunk-2T32N2WD.js} +2 -2
- package/dist/{chunk-KYTOEWJD.js → chunk-3N36CYTU.js} +2 -2
- package/dist/{chunk-A722MUNR.js → chunk-3XDT5ZWL.js} +1 -1
- package/dist/{chunk-MNFU2RNT.js → chunk-3XQUEF5C.js} +1 -1
- package/dist/{chunk-3DMPZZQ6.js → chunk-4EDSEX7U.js} +2 -2
- package/dist/{chunk-Z6X3F4H6.js → chunk-4MJN2KN6.js} +1 -1
- package/dist/{chunk-CVDK3LDB.js → chunk-4TMBAOXK.js} +1 -1
- package/dist/{chunk-LAXXWJ2Z.js → chunk-4WKOLL7C.js} +4 -4
- package/dist/{chunk-PPVWWJIB.js → chunk-56IFLQGF.js} +1 -1
- package/dist/{chunk-DEAFAK3U.js → chunk-5AJR6X75.js} +2 -2
- package/dist/{chunk-K4U2VDOJ.js → chunk-5NJMSYDZ.js} +3 -3
- package/dist/{chunk-5CY6BW4Y.js → chunk-5OFRDX66.js} +3 -3
- package/dist/{chunk-DHIO6Q75.js → chunk-5OVTWY3I.js} +2 -2
- package/dist/{chunk-CZXF6EFK.js → chunk-5WRWBDML.js} +1 -1
- package/dist/{chunk-5KEVSZ4K.js → chunk-62DBFNOK.js} +1 -1
- package/dist/{chunk-ISHLFPNN.js → chunk-6ID4DVML.js} +1 -1
- package/dist/{chunk-IJIC4COR.js → chunk-6MI2GMYG.js} +2 -2
- package/dist/{chunk-GK3PXGLS.js → chunk-6MTJWQ3V.js} +1 -1
- package/dist/{chunk-6IGIYOTV.js → chunk-7EOUVWGQ.js} +1 -1
- package/dist/{chunk-5YIL4WJP.js → chunk-7LSSYHOT.js} +1 -1
- package/dist/{chunk-3V5T5K5H.js → chunk-7MGXHCVK.js} +1 -1
- package/dist/{chunk-MMZZGJHX.js → chunk-7SYEOJLP.js} +1 -1
- package/dist/{chunk-MKKX6N7C.js → chunk-7XKDPTZ5.js} +2 -2
- package/dist/{chunk-ACRRRPWT.js → chunk-ANTAQAR4.js} +1 -1
- package/dist/{chunk-5IPPLWVA.js → chunk-B76OKJMX.js} +3 -2
- package/dist/{chunk-5AQBPHZD.js → chunk-BKP6XCAJ.js} +2 -2
- package/dist/{chunk-QBI5ETKY.js → chunk-BRLZXYPA.js} +1 -1
- package/dist/{chunk-PHQPQZUX.js → chunk-BVNFNFA6.js} +3 -3
- package/dist/{chunk-OD3Z6QKN.js → chunk-BWAUL5MB.js} +5 -5
- package/dist/{chunk-PWG3VHRQ.js → chunk-BXCL6P5Z.js} +15 -1
- package/dist/{chunk-WDPREXOL.js → chunk-CFY257ND.js} +64 -16
- package/dist/{chunk-PUJUWLCX.js → chunk-CLJGFOTV.js} +1 -1
- package/dist/{chunk-HACEB6L4.js → chunk-CSXJIIO4.js} +1 -1
- package/dist/{chunk-QC2DEQCN.js → chunk-CVKANYHD.js} +1 -1
- package/dist/{chunk-VBO2GYWX.js → chunk-CWYU7DNT.js} +1 -1
- package/dist/{chunk-O7VXE4TO.js → chunk-CX6QT4CH.js} +4 -4
- package/dist/{chunk-J4HPMS7F.js → chunk-CYYBE2MM.js} +1 -1
- package/dist/{chunk-YSHQQNB6.js → chunk-DKJJ434E.js} +5 -5
- package/dist/{chunk-SPCSFJNY.js → chunk-DMK2A4IK.js} +7 -4
- package/dist/{chunk-OJ2QULVH.js → chunk-DO4J4TBZ.js} +2 -2
- package/dist/{chunk-BGLKLXL3.js → chunk-DOY3KC6I.js} +1 -1
- package/dist/{chunk-5XACKNYR.js → chunk-DPNVKWJX.js} +3 -3
- package/dist/{chunk-JAOJLEYB.js → chunk-DXVJSBEW.js} +5 -5
- package/dist/{chunk-7SRSPU4O.js → chunk-E55DKVY7.js} +64 -6
- package/dist/{chunk-GXQ3B46I.js → chunk-EE3DJMSQ.js} +14 -2
- package/dist/{chunk-I6POAB4V.js → chunk-EFX2YC5T.js} +1 -1
- package/dist/{chunk-TXA3HMWP.js → chunk-ELLRZ5XR.js} +21 -10
- package/dist/{chunk-YZR57QGE.js → chunk-ERNT3UTB.js} +1 -1
- package/dist/{chunk-TLIJG4TP.js → chunk-ETSF7SU6.js} +2 -2
- package/dist/{chunk-FGRJXZUU.js → chunk-EVXXY75R.js} +2 -2
- package/dist/{chunk-3Q6N6FJL.js → chunk-F32FFE6I.js} +2 -2
- package/dist/{chunk-3OV26XP4.js → chunk-FFGEJUAP.js} +2 -2
- package/dist/{chunk-DKB73KZI.js → chunk-FPDIHEM4.js} +1 -1
- package/dist/{chunk-PGKETYGL.js → chunk-FWUX3F6Q.js} +3 -3
- package/dist/{chunk-WW4E5EUS.js → chunk-G4234OIG.js} +3 -3
- package/dist/{chunk-SHLP2BNA.js → chunk-G4CGDUCP.js} +1 -1
- package/dist/{chunk-VO2PDDRE.js → chunk-G5IZGAWS.js} +1 -1
- package/dist/{chunk-ZRKUTFYE.js → chunk-GDDVI4US.js} +9 -9
- package/dist/{chunk-FYTIJM2T.js → chunk-HBDA76EZ.js} +1 -1
- package/dist/{chunk-VSTD65SL.js → chunk-HEIOLITO.js} +3 -3
- package/dist/{chunk-VBYRA3W6.js → chunk-HIWPPWNY.js} +3 -3
- package/dist/{chunk-Z4EKUMZW.js → chunk-HJBHP66O.js} +1 -1
- package/dist/{chunk-KVWZDCTQ.js → chunk-I24FI46B.js} +2 -2
- package/dist/{chunk-KYIAFNU7.js → chunk-I5OIKDX2.js} +1 -1
- package/dist/{chunk-Q4DNAO3O.js → chunk-IL3XLDW7.js} +2 -2
- package/dist/{chunk-WSV3MBOE.js → chunk-IO374IX6.js} +2 -2
- package/dist/{chunk-RLFPBRN4.js → chunk-IPMJGK2Q.js} +1 -1
- package/dist/{chunk-OB5N3FV2.js → chunk-ISBKJOLI.js} +2 -2
- package/dist/{chunk-ZYO2QFU6.js → chunk-IVTQWOXV.js} +1 -1
- package/dist/{chunk-IOTN23FZ.js → chunk-IYG4ETAQ.js} +2 -2
- package/dist/{chunk-VTUAQYOC.js → chunk-JAFWGVX2.js} +1 -1
- package/dist/{chunk-UTBCDOGP.js → chunk-JEA5OX54.js} +4 -4
- package/dist/{chunk-DMI4QJDY.js → chunk-JVII5264.js} +2 -2
- package/dist/{chunk-C3FX7ZSU.js → chunk-KAQ2L74F.js} +1 -1
- package/dist/{chunk-P5S2SPTK.js → chunk-KHHDCNYM.js} +2 -2
- package/dist/{chunk-5NJ4BIUA.js → chunk-KIJJD4YD.js} +2 -2
- package/dist/{chunk-EQHJTGLY.js → chunk-KQGOVBGF.js} +2 -2
- package/dist/{chunk-BSAQE7PO.js → chunk-KWLH45YC.js} +1 -1
- package/dist/{chunk-GWPWLVN3.js → chunk-LJ3KWQLP.js} +2 -2
- package/dist/{chunk-RO2MZZ66.js → chunk-LR4IWUWQ.js} +1 -1
- package/dist/{chunk-DG6KSGNQ.js → chunk-LSRQ2A6B.js} +1 -1
- package/dist/{chunk-ESUZ27TS.js → chunk-LWFOX3PB.js} +2 -2
- package/dist/{chunk-NLI7OVO2.js → chunk-M25IV5MH.js} +1 -1
- package/dist/{chunk-KW6KCVM7.js → chunk-M52HLPOG.js} +2 -2
- package/dist/{chunk-IOZFPFQS.js → chunk-MFQPGMJT.js} +2 -2
- package/dist/{chunk-5KRRJNQO.js → chunk-MLDTLZAO.js} +1 -1
- package/dist/{chunk-3BYIWOTV.js → chunk-MMCYH5LB.js} +1 -1
- package/dist/{chunk-3PJHUDXD.js → chunk-MNTUIAQT.js} +4 -4
- package/dist/{chunk-EBCH3MRX.js → chunk-N7PXGOZP.js} +10 -10
- package/dist/{chunk-QZLNKLYD.js → chunk-NHLNHH4J.js} +1 -1
- package/dist/{chunk-EAQLI2SO.js → chunk-NQABJAUY.js} +1 -1
- package/dist/{chunk-U4AXQI6U.js → chunk-NWTHGZBH.js} +3 -3
- package/dist/{chunk-EFIURN3U.js → chunk-OFABBAUR.js} +2 -2
- package/dist/{chunk-MYJZCSMA.js → chunk-OGRMOWMO.js} +2 -2
- package/dist/{chunk-WR7UDG7U.js → chunk-OJGI4XJH.js} +1 -1
- package/dist/{chunk-VVVB3OBW.js → chunk-OOC6KXNL.js} +84 -74
- package/dist/{chunk-KIPAFCVS.js → chunk-PBCNINMB.js} +2 -2
- package/dist/{chunk-75QASA62.js → chunk-PIAGTZY3.js} +3 -3
- package/dist/{chunk-5CLW2CXT.js → chunk-PLL7ZJHY.js} +1 -1
- package/dist/{chunk-KBTJMJPX.js → chunk-PLNJEDGI.js} +2 -2
- package/dist/{chunk-S2VMOITT.js → chunk-PQWNK3N7.js} +3 -3
- package/dist/{chunk-34NMOVXO.js → chunk-PS5ZYIA6.js} +11 -7
- package/dist/{chunk-27JCHL64.js → chunk-PVZOP3QK.js} +3 -3
- package/dist/{chunk-2BDPR4I3.js → chunk-PX54PALQ.js} +3 -3
- package/dist/{chunk-I74C4TM6.js → chunk-PZAOUZFZ.js} +4 -4
- package/dist/{chunk-TGSIVB6H.js → chunk-QE4OIE3Q.js} +1 -1
- package/dist/{chunk-HOP3J622.js → chunk-QF5UNP4T.js} +5 -2
- package/dist/{chunk-KY65C4XS.js → chunk-QOXLP5PE.js} +1 -1
- package/dist/{chunk-5DCY2QUY.js → chunk-R2YHKVWN.js} +4 -4
- package/dist/{chunk-P3QWT5VR.js → chunk-R45VM5EX.js} +2 -2
- package/dist/{chunk-LA4PX7Z6.js → chunk-RHL4OMQ3.js} +5 -5
- package/dist/{chunk-OIMWGV2N.js → chunk-RPX3WICJ.js} +1 -1
- package/dist/{chunk-YA3AWELW.js → chunk-RUBKDJAQ.js} +1 -1
- package/dist/{chunk-4MC2EEGO.js → chunk-S7WG53JB.js} +1 -1
- package/dist/{chunk-OU4FLGOZ.js → chunk-SBOUVASH.js} +7 -7
- package/dist/{chunk-4AA6WPQU.js → chunk-SRDNGGZE.js} +1 -1
- package/dist/{chunk-TUNEMQXF.js → chunk-SRSE7FGL.js} +2 -2
- package/dist/{chunk-5FTJNKNX.js → chunk-SUJO3AHN.js} +7 -5
- package/dist/{chunk-XQBLBJN4.js → chunk-SZFKGH2W.js} +1 -1
- package/dist/{chunk-PBR5C5MX.js → chunk-T2GC7UAP.js} +1 -1
- package/dist/{chunk-LODRX4FU.js → chunk-T73DMDU4.js} +2 -2
- package/dist/{chunk-2NNGOCWM.js → chunk-TWJERLT3.js} +4 -4
- package/dist/{chunk-XLJPLCK6.js → chunk-U7J52N67.js} +3 -3
- package/dist/{chunk-2XWFWNDT.js → chunk-UAUP6XGK.js} +1 -1
- package/dist/{chunk-4U2D6BPR.js → chunk-UEOEBOBR.js} +5 -3
- package/dist/{chunk-ZH77BXMA.js → chunk-UH44L7OJ.js} +1 -1
- package/dist/{chunk-XQZ6EWOE.js → chunk-VK45YJLH.js} +12 -3
- package/dist/{chunk-M5GPCENM.js → chunk-VRG2ZXNK.js} +2 -2
- package/dist/{chunk-SELUJSTZ.js → chunk-VTGIDEI5.js} +53 -16
- package/dist/{chunk-M6NQ4XGK.js → chunk-VUYNNILP.js} +1 -1
- package/dist/{chunk-46VE5TVS.js → chunk-VVOFJFRT.js} +2 -2
- package/dist/{chunk-F7VBYCW2.js → chunk-W6UVBBNH.js} +2 -2
- package/dist/{chunk-B53FUJ53.js → chunk-WCDPFTJZ.js} +2 -2
- package/dist/{chunk-KWTRRS7E.js → chunk-WDNURPXU.js} +2 -2
- package/dist/{chunk-JQ7IFSF6.js → chunk-WFCWPXJN.js} +1 -1
- package/dist/{chunk-NOSHT6FL.js → chunk-WQRSZMN4.js} +4 -4
- package/dist/{chunk-6Z4JZHRB.js → chunk-WU5JDEEY.js} +1 -1
- package/dist/{chunk-5UPWU6ZJ.js → chunk-WUQVAFTC.js} +21 -11
- package/dist/{chunk-B5ZHJWAZ.js → chunk-WWXIGN4O.js} +7 -7
- package/dist/{chunk-SG2375ZY.js → chunk-WXLQJUGO.js} +5 -5
- package/dist/{chunk-NM6RR2GA.js → chunk-XGBGEI6V.js} +10 -10
- package/dist/{chunk-YBI7M2JH.js → chunk-Y7PVLEZJ.js} +1 -1
- package/dist/{chunk-R5RCGD7N.js → chunk-YBC2CYPD.js} +4 -4
- package/dist/{chunk-JE4FCRVL.js → chunk-YBKZJBKM.js} +1 -1
- package/dist/{chunk-D2BYJNEH.js → chunk-YWVT7B6N.js} +2 -2
- package/dist/{chunk-66X5WDKE.js → chunk-Z2MZTI3H.js} +1 -1
- package/dist/{chunk-CT6I36FH.js → chunk-ZFN4IBVC.js} +2 -2
- package/dist/{chunk-U3ILLCR2.js → chunk-ZKIEOWR6.js} +5 -4
- package/dist/{chunk-PK2P2QH6.js → chunk-ZUBFVK6B.js} +1 -1
- package/dist/generated/index.js +157 -157
- package/dist/index.js +157 -157
- package/dist/styles.css +2838 -596
- package/package.json +3 -3
- package/dist/ArrangeList-NNRTDFI5.css +0 -94
- package/dist/AttachmentChip-XF4KPQ3G.css +0 -16
- package/dist/ConflictNote-DH77PYF7.css +0 -27
- package/dist/ListDetail-ALKU5VJW.css +0 -53
- package/dist/PresenceStack-FJJQVH74.css +0 -67
- package/dist/RelatedRow-2FVS6QQA.css +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SlideStage } from './chunk-RMEBFYL7.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './SlideGrid-
|
|
3
|
+
import './SlideGrid-J4LAOUSJ.css';
|
|
4
4
|
import { EyeOffGlyph } from '@crewlethq/icons/glyphs';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './ChoiceButtons-
|
|
3
|
+
import './ChoiceButtons-Q2ET3I2N.css';
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CardHeaderSlotContext } from './chunk-AV2DXAEL.js';
|
|
2
|
-
import { Count } from './chunk-
|
|
2
|
+
import { Count } from './chunk-MLDTLZAO.js';
|
|
3
3
|
import { useHeadingLevel, HeadingLevelProvider, nextHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
-
import './Card-
|
|
5
|
+
import './Card-O35OMBQ5.css';
|
|
6
6
|
import { createContext, useId, useState, isValidElement, useRef, useCallback, useMemo, Children, cloneElement, useContext, useEffect, Fragment } from 'react';
|
|
7
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
8
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { StatusDot } from './chunk-WIATRXEJ.js';
|
|
1
2
|
import { toISO, useNow, formatRelative } from './chunk-L6NG7CUA.js';
|
|
2
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './EditingStatus-
|
|
4
|
+
import './EditingStatus-TMGT265J.css';
|
|
4
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
var LABELS = {
|
|
@@ -14,7 +15,7 @@ function EditingStatus({ dirty, saving = false, savedAt, labels, className }) {
|
|
|
14
15
|
const showSaved = !saving && !dirty && savedAt !== void 0 && savedAt !== null && toISO(savedAt) !== null;
|
|
15
16
|
const state = saving ? text.saving : dirty ? text.unsaved : showSaved ? text.saved : null;
|
|
16
17
|
return /* @__PURE__ */ jsxs("span", { className: cx("crewlet-editing-status", dirty && "crewlet-editing-status--dirty", className), children: [
|
|
17
|
-
/* @__PURE__ */ jsx(
|
|
18
|
+
/* @__PURE__ */ jsx(StatusDot, { tone: dirty ? "brand" : "neutral", className: "crewlet-editing-status__dot" }),
|
|
18
19
|
/* @__PURE__ */ jsxs("span", { className: "crewlet-editing-status__text", children: [
|
|
19
20
|
/* @__PURE__ */ jsxs("span", { role: "status", "aria-live": "polite", className: "crewlet-editing-status__live", children: [
|
|
20
21
|
/* @__PURE__ */ jsx("span", { className: "crewlet-editing-status__label", children: text.editing }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AVATAR_SIZES, Avatar } from './chunk-PZKHBB7D.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Avatar-
|
|
4
|
-
import './AvatarStack-
|
|
3
|
+
import './Avatar-FDQSCB7A.css';
|
|
4
|
+
import './AvatarStack-7I3P7LCK.css';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
function counted(count, one, many) {
|
|
@@ -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-7ZA5ETJM.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,15 +1,15 @@
|
|
|
1
1
|
import { richEditorLabels } from './chunk-CSQTDGTS.js';
|
|
2
2
|
import { Callout } from './chunk-BPCY7ZID.js';
|
|
3
|
-
import { Skeleton } from './chunk-
|
|
3
|
+
import { Skeleton } from './chunk-BRLZXYPA.js';
|
|
4
4
|
import { Button } from './chunk-7QTPJDRF.js';
|
|
5
|
-
import './RichEditor-
|
|
5
|
+
import './RichEditor-5CF3QV3J.css';
|
|
6
6
|
import { forwardRef, useState, useEffect } from 'react';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
var engine = null;
|
|
10
10
|
var loading = null;
|
|
11
11
|
function loadEngine() {
|
|
12
|
-
loading ??= import('./Editor-
|
|
12
|
+
loading ??= import('./Editor-URGZOK2S.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
2
|
-
import { Combobox } from './chunk-
|
|
3
|
-
import { FormField, Textarea, InputAffix } from './chunk-
|
|
4
|
-
import './Input-
|
|
1
|
+
import { Select } from './chunk-VK45YJLH.js';
|
|
2
|
+
import { Combobox } from './chunk-ZUBFVK6B.js';
|
|
3
|
+
import { FormField, Textarea, InputAffix } from './chunk-ETSF7SU6.js';
|
|
4
|
+
import './Input-GEFFMKBS.css';
|
|
5
5
|
import './VisuallyHidden-AOEXU5EB.css';
|
|
6
6
|
import './HitArea-QUOS6ZDJ.css';
|
|
7
7
|
import './Combobox-GBCWXWEB.css';
|
|
8
|
-
import './Select-
|
|
8
|
+
import './Select-6BQPBOHH.css';
|
|
9
9
|
import './ValueField-EIBD6RYS.css';
|
|
10
10
|
import { useId, useRef, useState } from 'react';
|
|
11
11
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useFocusModality } from './chunk-NUZHC6MM.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Document-
|
|
3
|
+
import './Document-M6JYGLWV.css';
|
|
4
4
|
import { forwardRef, useRef, useCallback, useLayoutEffect, useEffect } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -55,6 +55,20 @@ var DocumentTitleField = forwardRef(function DocumentTitleField2({ error = false
|
|
|
55
55
|
observer.observe(element);
|
|
56
56
|
return () => observer.disconnect();
|
|
57
57
|
}, [fit]);
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
const fonts = typeof document === "undefined" ? void 0 : document.fonts;
|
|
60
|
+
if (!fonts) return void 0;
|
|
61
|
+
let live = true;
|
|
62
|
+
const loaded = () => {
|
|
63
|
+
if (live) fit();
|
|
64
|
+
};
|
|
65
|
+
void fonts.ready.then(loaded);
|
|
66
|
+
fonts.addEventListener("loadingdone", loaded);
|
|
67
|
+
return () => {
|
|
68
|
+
live = false;
|
|
69
|
+
fonts.removeEventListener("loadingdone", loaded);
|
|
70
|
+
};
|
|
71
|
+
}, [fit]);
|
|
58
72
|
useEffect(() => {
|
|
59
73
|
const element = own.current;
|
|
60
74
|
if (!element) return void 0;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
2
|
-
import { Modal } from './chunk-
|
|
2
|
+
import { Modal } from './chunk-I24FI46B.js';
|
|
3
3
|
import { EmptyValue } from './chunk-RE3FBGQQ.js';
|
|
4
4
|
import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
|
|
5
|
-
import { Checkbox } from './chunk-
|
|
6
|
-
import { Menu } from './chunk-
|
|
5
|
+
import { Checkbox } from './chunk-PBCNINMB.js';
|
|
6
|
+
import { Menu } from './chunk-T73DMDU4.js';
|
|
7
7
|
import { Button } from './chunk-7QTPJDRF.js';
|
|
8
|
-
import { IconButton } from './chunk-
|
|
8
|
+
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
9
9
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
10
10
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
11
|
-
import './DataTable-
|
|
11
|
+
import './DataTable-H43JSHOI.css';
|
|
12
12
|
import React, { useState, useCallback, useMemo, useRef, useLayoutEffect, useEffect, useId } from 'react';
|
|
13
13
|
import { createPortal } from 'react-dom';
|
|
14
14
|
import { CheckGlyph, CircleAlertGlyph, CopyGlyph, ChevronsLeftGlyph, ChevronLeftGlyph, ChevronRightGlyph, ChevronsRightGlyph, SettingsGlyph, GripVerticalGlyph, ChevronUpGlyph, ChevronDownGlyph, TrashGlyph, ArrowUpGlyph, ArrowDownGlyph, ChevronsUpDownGlyph, RotateCcwGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -207,6 +207,8 @@ var DATA_TABLE_LABELS = {
|
|
|
207
207
|
loading: "Loading rows",
|
|
208
208
|
tone: { info: "Active", warning: "Needs attention", danger: "Failed" }
|
|
209
209
|
};
|
|
210
|
+
var COLUMN_LABEL_INFIX = "-col-";
|
|
211
|
+
var columnLabelKey = (columnKey) => columnKey.replace(/\s+/g, "_");
|
|
210
212
|
var DataTable = ({
|
|
211
213
|
data = [],
|
|
212
214
|
columns = {},
|
|
@@ -430,6 +432,12 @@ var DataTable = ({
|
|
|
430
432
|
const scrollRef = useRef(null);
|
|
431
433
|
const [fitRequests, setFitRequests] = useState(0);
|
|
432
434
|
const requestFit = useCallback(() => setFitRequests((n) => n + 1), []);
|
|
435
|
+
const [railOverflows, setRailOverflows] = useState(false);
|
|
436
|
+
const syncRailOverflow = useCallback(() => {
|
|
437
|
+
const el = scrollRef.current;
|
|
438
|
+
if (!el) return;
|
|
439
|
+
setRailOverflows(el.scrollWidth - el.clientWidth > 1);
|
|
440
|
+
}, []);
|
|
433
441
|
const emptyCellRef = useRef(null);
|
|
434
442
|
const [emptySaid, setEmptySaid] = useState("");
|
|
435
443
|
const resetToDefault = () => {
|
|
@@ -493,7 +501,11 @@ var DataTable = ({
|
|
|
493
501
|
if (visibleDataKeys.length === 0) return;
|
|
494
502
|
let chromeWidth = 0;
|
|
495
503
|
if (expandable2) chromeWidth += 32;
|
|
496
|
-
if (hasChromeColumn2)
|
|
504
|
+
if (hasChromeColumn2) {
|
|
505
|
+
const actions = isCompact2 ? el.querySelector(".crewlet-data-table__th--actions") : null;
|
|
506
|
+
const drawn = actions ? Math.ceil(actions.getBoundingClientRect().width) : 0;
|
|
507
|
+
chromeWidth += isCompact2 ? drawn > 0 ? drawn : 48 : columnWidths2.__actions ?? 60;
|
|
508
|
+
}
|
|
497
509
|
chromeWidth += visibleStickyKeys.reduce(
|
|
498
510
|
(sum, key) => sum + (columnWidths2[key] ?? minColumnWidth2),
|
|
499
511
|
0
|
|
@@ -514,9 +526,46 @@ var DataTable = ({
|
|
|
514
526
|
const available = containerWidth - chromeWidth;
|
|
515
527
|
const leftover = available - dataTotal;
|
|
516
528
|
if (leftover >= 0 && leftover <= 1) return;
|
|
529
|
+
const px = (value) => Number.parseFloat(value) || 0;
|
|
530
|
+
const labelSpans = new Map(
|
|
531
|
+
Array.from(el.querySelectorAll("thead th span[id]"), (span) => [
|
|
532
|
+
span.id.slice(span.id.indexOf(COLUMN_LABEL_INFIX) + COLUMN_LABEL_INFIX.length),
|
|
533
|
+
span
|
|
534
|
+
])
|
|
535
|
+
);
|
|
536
|
+
const headerFloor = (key) => {
|
|
537
|
+
const label = labelSpans.get(columnLabelKey(key));
|
|
538
|
+
const row = label?.parentElement;
|
|
539
|
+
const th = label?.closest("th");
|
|
540
|
+
if (!label || !row || !th) return 0;
|
|
541
|
+
const range = label.ownerDocument.createRange();
|
|
542
|
+
if (typeof range.getBoundingClientRect !== "function") return 0;
|
|
543
|
+
range.selectNodeContents(label);
|
|
544
|
+
const name = range.getBoundingClientRect().width;
|
|
545
|
+
if (name <= 0) return 0;
|
|
546
|
+
const rowStyle = getComputedStyle(row);
|
|
547
|
+
const beside = Array.from(row.children).filter(
|
|
548
|
+
(child) => child !== label && getComputedStyle(child).position !== "absolute"
|
|
549
|
+
);
|
|
550
|
+
let need = name + px(rowStyle.paddingLeft) + px(rowStyle.paddingRight);
|
|
551
|
+
beside.forEach((child) => {
|
|
552
|
+
need += child.getBoundingClientRect().width + px(rowStyle.columnGap);
|
|
553
|
+
});
|
|
554
|
+
if (row !== th) {
|
|
555
|
+
const cellStyle = getComputedStyle(th);
|
|
556
|
+
need += px(cellStyle.paddingLeft) + px(cellStyle.paddingRight);
|
|
557
|
+
}
|
|
558
|
+
return Math.ceil(need);
|
|
559
|
+
};
|
|
560
|
+
const floors = new Map(
|
|
561
|
+
visibleDataKeys.map((key) => [
|
|
562
|
+
key,
|
|
563
|
+
Math.max(minColumnWidth2, columns2[key]?.minWidth ?? 0, headerFloor(key))
|
|
564
|
+
])
|
|
565
|
+
);
|
|
517
566
|
const next = { ...columnWidths2 };
|
|
518
567
|
const widthOf = (key) => next[key] ?? minColumnWidth2;
|
|
519
|
-
const floorOf = (key) =>
|
|
568
|
+
const floorOf = (key) => floors.get(key) ?? minColumnWidth2;
|
|
520
569
|
visibleDataKeys.forEach((key) => {
|
|
521
570
|
next[key] = widthOf(key);
|
|
522
571
|
});
|
|
@@ -554,6 +603,7 @@ var DataTable = ({
|
|
|
554
603
|
let lastWidth = el.clientWidth;
|
|
555
604
|
if (typeof ResizeObserver !== "function") return;
|
|
556
605
|
const observer = new ResizeObserver(() => {
|
|
606
|
+
syncRailOverflow();
|
|
557
607
|
const w = el.clientWidth;
|
|
558
608
|
if (w > 0 && w !== lastWidth) {
|
|
559
609
|
lastWidth = w;
|
|
@@ -561,8 +611,10 @@ var DataTable = ({
|
|
|
561
611
|
}
|
|
562
612
|
});
|
|
563
613
|
observer.observe(el);
|
|
614
|
+
const table = el.querySelector("table");
|
|
615
|
+
if (table) observer.observe(table);
|
|
564
616
|
return () => observer.disconnect();
|
|
565
|
-
}, [requestFit]);
|
|
617
|
+
}, [requestFit, syncRailOverflow]);
|
|
566
618
|
useEffect(() => {
|
|
567
619
|
const chosen = Object.keys(resizedColumns);
|
|
568
620
|
if (chosen.length === 0) {
|
|
@@ -759,12 +811,7 @@ var DataTable = ({
|
|
|
759
811
|
const [settingsSaid, setSettingsSaid] = useState("");
|
|
760
812
|
const instanceId = useId();
|
|
761
813
|
const reorderHintId = `${instanceId}-reorder`;
|
|
762
|
-
const columnLabelId = (columnKey) => (
|
|
763
|
-
// Whitespace out of the key: `aria-labelledby` is a SPACE-SEPARATED list
|
|
764
|
-
// of ids, so a column keyed "created at" would point the cell at two ids
|
|
765
|
-
// that do not exist and leave the header with no name at all.
|
|
766
|
-
`${instanceId}-col-${columnKey.replace(/\s+/g, "_")}`
|
|
767
|
-
);
|
|
814
|
+
const columnLabelId = (columnKey) => `${instanceId}${COLUMN_LABEL_INFIX}${columnLabelKey(columnKey)}`;
|
|
768
815
|
const handleToggleColumn = (columnKey) => {
|
|
769
816
|
if (whyFixed(columnKey, draftVisibleColumns) !== null && draftVisibleColumns[columnKey] !== false) return;
|
|
770
817
|
setDraftVisibleColumns((prev) => ({ ...prev, [columnKey]: !prev[columnKey] }));
|
|
@@ -1025,7 +1072,6 @@ var DataTable = ({
|
|
|
1025
1072
|
{
|
|
1026
1073
|
scope: "col",
|
|
1027
1074
|
className: "crewlet-data-table__th--chrome crewlet-data-table__th--actions",
|
|
1028
|
-
style: { width: 1 },
|
|
1029
1075
|
children: /* @__PURE__ */ jsx(VisuallyHidden, { children: labels.actions })
|
|
1030
1076
|
},
|
|
1031
1077
|
"__actions"
|
|
@@ -1113,6 +1159,7 @@ var DataTable = ({
|
|
|
1113
1159
|
};
|
|
1114
1160
|
const displayedData = getDisplayedData();
|
|
1115
1161
|
const bodyHoldsRows = loading && displayedData.length === 0 || !error && displayedData.length > 0;
|
|
1162
|
+
useLayoutEffect(syncRailOverflow, [syncRailOverflow, columnWidths, fittedColumnKeys, bodyHoldsRows, displayedData.length]);
|
|
1116
1163
|
const visibleColumnKeys = columnOrder.filter(isColumnVisible);
|
|
1117
1164
|
const firstVisibleKey = columnOrder.find(
|
|
1118
1165
|
(key) => columns[key]?.sticky !== "right" && isColumnVisible(key)
|
|
@@ -1319,7 +1366,8 @@ var DataTable = ({
|
|
|
1319
1366
|
*/
|
|
1320
1367
|
isCompact && columnOrder.some(
|
|
1321
1368
|
(k) => columns[k]?.sticky === "right" && isColumnVisible(k)
|
|
1322
|
-
) ? "crewlet-data-table__rail--frozen" : void 0
|
|
1369
|
+
) ? "crewlet-data-table__rail--frozen" : void 0,
|
|
1370
|
+
railOverflows ? "crewlet-data-table__rail--overflows" : void 0
|
|
1323
1371
|
].filter(Boolean).join(" "),
|
|
1324
1372
|
style: isCompact ? {
|
|
1325
1373
|
"--crewlet-data-table-sticky-pane-width": `${columnOrder.filter((key) => columns[key]?.sticky === "right" && isColumnVisible(key)).reduce((sum, key) => sum + (columnWidths[key] ?? minColumnWidth), 0)}px`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
2
2
|
import { useAppShellAside, ResizeHandle } from './chunk-PIYJNCN7.js';
|
|
3
3
|
import { useModalLayer } from './chunk-H5XTJ7GJ.js';
|
|
4
|
-
import { IconButton } from './chunk-
|
|
4
|
+
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import { createContext, useId, useRef, useContext, useLayoutEffect, useEffect, useMemo } from 'react';
|
|
7
7
|
import { MinimizeGlyph, MaximizeGlyph, XGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip } from './chunk-I33UIUZD.js';
|
|
2
2
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './FactList-
|
|
4
|
+
import './FactList-QEOHLHX3.css';
|
|
5
5
|
import { LockGlyph } from '@crewlethq/icons/glyphs';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './AddPill-
|
|
3
|
+
import './AddPill-FPM5RUKI.css';
|
|
4
4
|
import { useState, useId, useRef, useCallback, useEffect, Fragment } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useAppShellPeek, ResizeHandle } from './chunk-PIYJNCN7.js';
|
|
2
2
|
import { ButtonLink } from './chunk-7QTPJDRF.js';
|
|
3
|
-
import { IconButton } from './chunk-
|
|
3
|
+
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './HitArea-QUOS6ZDJ.css';
|
|
6
6
|
import './ResizeHandle-2UNSZ4ZQ.css';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useReorder } from './chunk-MPVMB2DV.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
3
|
-
import { Menu } from './chunk-
|
|
4
|
-
import { IconButton } from './chunk-
|
|
2
|
+
import { Input } from './chunk-ETSF7SU6.js';
|
|
3
|
+
import { Menu } from './chunk-T73DMDU4.js';
|
|
4
|
+
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-UT6CW3C7.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
|
-
import './DocTabsEditor-
|
|
7
|
+
import './DocTabsEditor-25J6MYZF.css';
|
|
8
8
|
import { useState, useRef, useId } from 'react';
|
|
9
9
|
import { PlusGlyph, PencilGlyph, ArrowUpGlyph, ArrowDownGlyph, TrashGlyph, GripVerticalGlyph, EllipsisGlyph } from '@crewlethq/icons/glyphs';
|
|
10
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PrincipalAvatar } from './chunk-CI3VPIJN.js';
|
|
2
2
|
import { toInstant, RelativeTime, formatExact, toISO } from './chunk-L6NG7CUA.js';
|
|
3
|
-
import { Document } from './chunk-
|
|
4
|
-
import { Composer } from './chunk-
|
|
5
|
-
import { Count } from './chunk-
|
|
3
|
+
import { Document } from './chunk-BXCL6P5Z.js';
|
|
4
|
+
import { Composer } from './chunk-5OFRDX66.js';
|
|
5
|
+
import { Count } from './chunk-MLDTLZAO.js';
|
|
6
6
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
7
7
|
import { Button } from './chunk-7QTPJDRF.js';
|
|
8
|
-
import { IconButton } from './chunk-
|
|
8
|
+
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
|
-
import './CommentThread-
|
|
10
|
+
import './CommentThread-FRXTDNV6.css';
|
|
11
11
|
import { useState, useRef, useId, useMemo } from 'react';
|
|
12
12
|
import { MessageSquareGlyph, XGlyph } from '@crewlethq/icons/glyphs';
|
|
13
13
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CopyButton } from './chunk-
|
|
1
|
+
import { CopyButton } from './chunk-IYG4ETAQ.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './CodeBlock-
|
|
3
|
+
import './CodeBlock-T47UA5GM.css';
|
|
4
4
|
import { forwardRef, useRef, useState, useLayoutEffect } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -52,8 +52,10 @@ var CodeBlock = forwardRef(function CodeBlock2({
|
|
|
52
52
|
selection.addRange(range);
|
|
53
53
|
};
|
|
54
54
|
let content = body;
|
|
55
|
+
let digits;
|
|
55
56
|
if (perLine) {
|
|
56
57
|
const lines = body.split("\n");
|
|
58
|
+
if (showLineNumbers) digits = String(lines.length).length;
|
|
57
59
|
content = lines.map((line, index) => /* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__line", children: [
|
|
58
60
|
showLineNumbers ? /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__ln", "aria-hidden": true, children: index + 1 }) : null,
|
|
59
61
|
prompt === void 0 ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__prompt", "aria-hidden": true, children: prompt }),
|
|
@@ -73,9 +75,10 @@ var CodeBlock = forwardRef(function CodeBlock2({
|
|
|
73
75
|
maxHeight !== void 0 && "crewlet-codeblock--bounded",
|
|
74
76
|
className
|
|
75
77
|
),
|
|
76
|
-
style: maxHeight === void 0 ? style : {
|
|
78
|
+
style: maxHeight === void 0 && digits === void 0 ? style : {
|
|
77
79
|
...style,
|
|
78
|
-
"--crewlet-codeblock-max-height": typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
|
|
80
|
+
...maxHeight === void 0 ? null : { "--crewlet-codeblock-max-height": typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight },
|
|
81
|
+
...digits === void 0 ? null : { "--crewlet-codeblock-digits": String(digits) }
|
|
79
82
|
},
|
|
80
83
|
children: [
|
|
81
84
|
showHeader ? /* @__PURE__ */ jsxs("div", { className: "crewlet-codeblock__header", children: [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IconTile } from './chunk-3LI4TRUR.js';
|
|
2
|
-
import { Tag } from './chunk-
|
|
2
|
+
import { Tag } from './chunk-I5OIKDX2.js';
|
|
3
3
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
-
import './ReviewList-
|
|
5
|
+
import './ReviewList-2IZA67EX.css';
|
|
6
6
|
import { createElement } from 'react';
|
|
7
7
|
import { CircleAlertGlyph } from '@crewlethq/icons/glyphs';
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CursorFlag } from './chunk-
|
|
2
|
-
import { presenceHueClass } from './chunk-
|
|
1
|
+
import { CursorFlag } from './chunk-MMCYH5LB.js';
|
|
2
|
+
import { presenceHueClass } from './chunk-EFX2YC5T.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './LiveCursor-
|
|
4
|
+
import './LiveCursor-Z6DHHLWI.css';
|
|
5
5
|
import { useState, useEffect } from 'react';
|
|
6
6
|
import { MousePointer2Glyph } from '@crewlethq/icons/glyphs';
|
|
7
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Tooltip } from './chunk-I33UIUZD.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-W6UVBBNH.js';
|
|
3
3
|
import { ArtifactIcon } from './chunk-AVL52EME.js';
|
|
4
|
-
import { isApplePlatform, Kbd } from './chunk-
|
|
5
|
-
import { Menu } from './chunk-
|
|
4
|
+
import { isApplePlatform, Kbd } from './chunk-ANTAQAR4.js';
|
|
5
|
+
import { Menu } from './chunk-T73DMDU4.js';
|
|
6
6
|
import { Button } from './chunk-7QTPJDRF.js';
|
|
7
|
-
import { IconButton } from './chunk-
|
|
7
|
+
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
8
8
|
import { returnFocus } from './chunk-NUZHC6MM.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './ArtifactKinds-O3CALPVX.css';
|
|
11
|
-
import './ArtifactBar-
|
|
11
|
+
import './ArtifactBar-X46WJNW7.css';
|
|
12
12
|
import { useId, useState, useRef, useEffect } from 'react';
|
|
13
13
|
import { ChevronLeftGlyph, EllipsisGlyph, ChevronDownGlyph } from '@crewlethq/icons/glyphs';
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useMediaMatch } from './chunk-RTPQDNW3.js';
|
|
2
|
-
import { Menu } from './chunk-
|
|
2
|
+
import { Menu } from './chunk-T73DMDU4.js';
|
|
3
3
|
import { PeekContext, AsideContext, ResizeHandle, clampSize } from './chunk-PIYJNCN7.js';
|
|
4
4
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
5
5
|
import { focusables, useModalLayer, isComposing, layerCount } from './chunk-H5XTJ7GJ.js';
|
|
6
|
-
import { IconButton } from './chunk-
|
|
6
|
+
import { IconButton } from './chunk-UAUP6XGK.js';
|
|
7
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 './HitArea-QUOS6ZDJ.css';
|
|
11
|
-
import './AppShell-
|
|
11
|
+
import './AppShell-LZQA3XU4.css';
|
|
12
12
|
import './ResizeHandle-2UNSZ4ZQ.css';
|
|
13
|
-
import { createContext, forwardRef, useContext, useId, useState, useRef,
|
|
13
|
+
import { createContext, forwardRef, useContext, useSyncExternalStore, useCallback, useId, useState, useRef, useEffect, useLayoutEffect } from 'react';
|
|
14
14
|
import { breakpoint } from '@crewlethq/tokens';
|
|
15
15
|
import { ChevronUpGlyph, ChevronsUpDownGlyph, ChevronRightGlyph, MenuGlyph } from '@crewlethq/icons/glyphs';
|
|
16
16
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -79,6 +79,49 @@ function AccountRow({
|
|
|
79
79
|
actions ? /* @__PURE__ */ jsx("div", { className: "crewlet-account-row__actions", children: actions }) : null
|
|
80
80
|
] });
|
|
81
81
|
}
|
|
82
|
+
function createScreenWidthStore() {
|
|
83
|
+
let width = null;
|
|
84
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
85
|
+
return {
|
|
86
|
+
get: () => width,
|
|
87
|
+
set(next) {
|
|
88
|
+
if (next === width) return;
|
|
89
|
+
width = next;
|
|
90
|
+
for (const listener of listeners) listener();
|
|
91
|
+
},
|
|
92
|
+
subscribe(listener) {
|
|
93
|
+
listeners.add(listener);
|
|
94
|
+
return () => listeners.delete(listener);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
var ScreenWidthContext = createContext(null);
|
|
99
|
+
var noSubscription = () => () => {
|
|
100
|
+
};
|
|
101
|
+
function contentInlineSize(element) {
|
|
102
|
+
if (element.getClientRects().length === 0) return null;
|
|
103
|
+
const style = getComputedStyle(element);
|
|
104
|
+
const padding = (Number.parseFloat(style.paddingLeft) || 0) + (Number.parseFloat(style.paddingRight) || 0);
|
|
105
|
+
return Math.max(0, Math.round(element.clientWidth - padding));
|
|
106
|
+
}
|
|
107
|
+
function useScreenWidth() {
|
|
108
|
+
const store = useContext(ScreenWidthContext);
|
|
109
|
+
return useSyncExternalStore(
|
|
110
|
+
store ? store.subscribe : noSubscription,
|
|
111
|
+
() => store ? store.get() : null,
|
|
112
|
+
() => null
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
function useScreenBelow(width) {
|
|
116
|
+
const store = useContext(ScreenWidthContext);
|
|
117
|
+
const window2 = useMediaMatch(`(width < ${width}px)`);
|
|
118
|
+
const read = useCallback(() => {
|
|
119
|
+
const measured2 = store ? store.get() : null;
|
|
120
|
+
return measured2 === null ? null : measured2 < width;
|
|
121
|
+
}, [store, width]);
|
|
122
|
+
const measured = useSyncExternalStore(store ? store.subscribe : noSubscription, read, () => null);
|
|
123
|
+
return measured ?? window2;
|
|
124
|
+
}
|
|
82
125
|
var APP_SHELL_ASIDE_WIDTH = 420;
|
|
83
126
|
var NARROW = `(width < ${breakpoint.shell})`;
|
|
84
127
|
var AppShellContext = createContext(null);
|
|
@@ -167,6 +210,21 @@ function AppShell({
|
|
|
167
210
|
observer.observe(frame);
|
|
168
211
|
return () => observer.disconnect();
|
|
169
212
|
}, [asideColumn]);
|
|
213
|
+
const content = useRef(null);
|
|
214
|
+
const [screenWidth] = useState(createScreenWidthStore);
|
|
215
|
+
useLayoutEffect(() => {
|
|
216
|
+
const column = content.current;
|
|
217
|
+
if (!column) return void 0;
|
|
218
|
+
const measure = () => screenWidth.set(contentInlineSize(column));
|
|
219
|
+
measure();
|
|
220
|
+
if (typeof ResizeObserver === "undefined") return void 0;
|
|
221
|
+
const observer = new ResizeObserver(measure);
|
|
222
|
+
observer.observe(column);
|
|
223
|
+
return () => {
|
|
224
|
+
observer.disconnect();
|
|
225
|
+
screenWidth.set(null);
|
|
226
|
+
};
|
|
227
|
+
}, [screenWidth]);
|
|
170
228
|
const shell = {
|
|
171
229
|
narrow,
|
|
172
230
|
drawerOpen,
|
|
@@ -238,7 +296,7 @@ function AppShell({
|
|
|
238
296
|
topbar,
|
|
239
297
|
banner ? /* @__PURE__ */ jsx("div", { className: "crewlet-app-shell__banner", children: banner }) : null,
|
|
240
298
|
/* @__PURE__ */ jsxs("div", { className: "crewlet-app-shell__body", children: [
|
|
241
|
-
/* @__PURE__ */ jsx("main", { id: main, ref: setMain, className: "crewlet-app-shell__main", tabIndex: -1, children: /* @__PURE__ */ jsx("div", { className: "crewlet-app-shell__content", children }) }),
|
|
299
|
+
/* @__PURE__ */ jsx("main", { id: main, ref: setMain, className: "crewlet-app-shell__main", tabIndex: -1, children: /* @__PURE__ */ jsx("div", { ref: content, className: "crewlet-app-shell__content", children: /* @__PURE__ */ jsx(ScreenWidthContext.Provider, { value: screenWidth, children }) }) }),
|
|
242
300
|
hasPeek ? /* @__PURE__ */ jsx(PeekContext.Provider, { value: { shape: peekShape }, children: peek }) : null
|
|
243
301
|
] }),
|
|
244
302
|
footer
|
|
@@ -598,4 +656,4 @@ function useStoredWidth({ key, min, max, storage }) {
|
|
|
598
656
|
return { width, setWidth, commitWidth };
|
|
599
657
|
}
|
|
600
658
|
|
|
601
|
-
export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useStoredWidth };
|
|
659
|
+
export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
2
|
-
import './CalendarGrid-
|
|
2
|
+
import './CalendarGrid-TT624SDR.css';
|
|
3
3
|
import { useRef, useMemo, useEffect } from 'react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -136,6 +136,11 @@ function CalendarGrid({
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
const nameOf = (date) => dayLabel ? dayLabel(date) : `${weekdayNames[new Date(date.year, date.month, date.day).getDay()]} ${date.day} ${monthNames[date.month]} ${date.year}`;
|
|
139
|
+
const banded = (cell) => {
|
|
140
|
+
if (!cell || !cell.inMonth && !showOutsideDays) return false;
|
|
141
|
+
if (!(selected?.some((day) => sameDay(day, cell.date)) ?? false)) return inRange?.(cell.date) ?? false;
|
|
142
|
+
return (inRange?.(shiftDay(cell.date, 1)) ?? false) || (inRange?.(shiftDay(cell.date, -1)) ?? false);
|
|
143
|
+
};
|
|
139
144
|
return /* @__PURE__ */ jsxs(
|
|
140
145
|
"div",
|
|
141
146
|
{
|
|
@@ -159,7 +164,7 @@ function CalendarGrid({
|
|
|
159
164
|
weekday
|
|
160
165
|
);
|
|
161
166
|
}) }),
|
|
162
|
-
weeks.map((week) => /* @__PURE__ */ jsx("div", { role: "row", className: "crewlet-calendar__week", children: week.map(({ date, inMonth }) => {
|
|
167
|
+
weeks.map((week, row) => /* @__PURE__ */ jsx("div", { role: "row", className: "crewlet-calendar__week", children: week.map(({ date, inMonth }, column) => {
|
|
163
168
|
if (!inMonth && !showOutsideDays) {
|
|
164
169
|
return /* @__PURE__ */ jsx(
|
|
165
170
|
"span",
|
|
@@ -176,6 +181,10 @@ function CalendarGrid({
|
|
|
176
181
|
const isToday = sameDay(date, now);
|
|
177
182
|
const opensRange = chosen && (inRange?.(shiftDay(date, 1)) ?? false);
|
|
178
183
|
const closesRange = chosen && (inRange?.(shiftDay(date, -1)) ?? false);
|
|
184
|
+
const band = between || opensRange || closesRange;
|
|
185
|
+
const joinedAfter = band && banded(week[column + 1]);
|
|
186
|
+
const joinedBelow = band && banded(weeks[row + 1]?.[column]);
|
|
187
|
+
const joinedCorner = joinedAfter && joinedBelow && banded(weeks[row + 1]?.[column + 1]);
|
|
179
188
|
return /* @__PURE__ */ jsx(
|
|
180
189
|
"span",
|
|
181
190
|
{
|
|
@@ -194,6 +203,9 @@ function CalendarGrid({
|
|
|
194
203
|
between && "is-in-range",
|
|
195
204
|
opensRange && "is-range-start",
|
|
196
205
|
closesRange && "is-range-end",
|
|
206
|
+
joinedAfter && "is-joined-after",
|
|
207
|
+
joinedBelow && "is-joined-below",
|
|
208
|
+
joinedCorner && "is-joined-corner",
|
|
197
209
|
isToday && "is-today"
|
|
198
210
|
),
|
|
199
211
|
onClick: () => {
|