@crewlethq/ui 0.54.1 → 0.56.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 +90 -7
- package/dist/Accordion/index.js +2 -2
- package/dist/AgentHandoffPanel/index.js +13 -8
- package/dist/AppShell/AppShell.d.ts +74 -1
- package/dist/AppShell/ResizeHandle.d.ts +74 -0
- package/dist/AppShell/index.d.ts +7 -2
- package/dist/AppShell/index.js +6 -4
- package/dist/AppShell/regions.d.ts +34 -0
- package/dist/AppShell/storedWidth.d.ts +47 -0
- package/dist/{AppShell-5LPXYUV3.css → AppShell-ZVCJRGXH.css} +172 -1
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeList/index.js +4 -4
- package/dist/ArtifactBar/ArtifactBar.d.ts +13 -2
- package/dist/ArtifactBar/index.js +7 -6
- package/dist/{ArtifactBar-UMZCTARR.css → ArtifactBar-LEBMR35Y.css} +19 -1
- package/dist/ArtifactCard/index.js +5 -5
- package/dist/ArtifactNameCell/ArtifactNameCell.d.ts +7 -1
- package/dist/ArtifactNameCell/index.js +1 -1
- package/dist/ArtifactPanel/ArtifactPanel.d.ts +11 -17
- package/dist/ArtifactPanel/index.d.ts +3 -0
- package/dist/ArtifactPanel/index.js +8 -2
- package/dist/ArtifactPanel-TN4FFK2F.css +43 -0
- package/dist/AvatarPicker/index.js +8 -7
- package/dist/Breadcrumb/index.js +1 -1
- package/dist/Button/index.js +2 -1
- package/dist/{Button-UWKBTKYD.css → Button-VXJ7M5XF.css} +9 -32
- package/dist/Canvas/index.js +4 -3
- package/dist/CanvasBoard/index.js +6 -5
- package/dist/CanvasToolbar/index.js +5 -4
- package/dist/ChangeList/ChangeList.d.ts +114 -0
- package/dist/ChangeList/index.d.ts +3 -0
- package/dist/ChangeList/index.js +10 -0
- package/dist/ChangeList-CB2DLR5S.css +151 -0
- package/dist/ChatThread/ChatThread.d.ts +53 -0
- package/dist/ChatThread/index.d.ts +3 -0
- package/dist/ChatThread/index.js +6 -0
- package/dist/ChatThread-52KMDXHB.css +58 -0
- package/dist/Checkbox/index.js +3 -3
- package/dist/CodeBlock/index.js +5 -4
- package/dist/ColorField/index.js +3 -3
- package/dist/ColorSwatch/index.js +5 -4
- package/dist/Combobox/index.js +3 -3
- package/dist/CommandPalette/index.js +6 -5
- package/dist/CommentThread/index.js +8 -6
- package/dist/Composer/Composer.d.ts +39 -2
- package/dist/Composer/index.js +4 -3
- package/dist/Composer-JSGTOW3F.css +192 -0
- package/dist/ConfirmField/index.js +3 -3
- package/dist/ConflictNote/index.js +3 -2
- package/dist/ContrastHelp/index.js +2 -2
- package/dist/Copyable/index.js +4 -3
- package/dist/DataGrid/driving.d.ts +48 -0
- package/dist/DataGrid/index.d.ts +2 -0
- package/dist/DataGrid/index.js +6 -5
- package/dist/DataTable/index.js +8 -7
- package/dist/DataView/index.js +12 -11
- package/dist/DatasetSource/index.js +2 -2
- package/dist/DateTimePicker/index.js +4 -3
- package/dist/DiffList/DiffList.d.ts +12 -3
- package/dist/DiffList/index.d.ts +1 -1
- package/dist/DiffList/index.js +1 -1
- package/dist/{DiffList-3EX64AAE.css → DiffList-GE6YBRLJ.css} +53 -0
- package/dist/Disclosure/anatomy.d.ts +14 -1
- package/dist/Disclosure/index.js +2 -2
- package/dist/{Disclosure-P4FH3C35.css → Disclosure-FVMA4RW2.css} +36 -0
- package/dist/DocTabsEditor/index.js +6 -5
- package/dist/DownloadButton/DownloadButton.d.ts +21 -4
- package/dist/DownloadButton/index.d.ts +1 -1
- package/dist/DownloadButton/index.js +4 -3
- package/dist/EditingStatus/index.js +2 -2
- package/dist/{Editor-FEKMRFBK.js → Editor-X2J47LPD.js} +5 -4
- package/dist/EntityList/EntityList.d.ts +37 -0
- package/dist/EntityList/index.d.ts +3 -0
- package/dist/EntityList/index.js +10 -0
- package/dist/EntityList-XIICECVC.css +55 -0
- package/dist/ErrorBoundary/index.js +3 -2
- package/dist/FileDrop/index.js +3 -2
- package/dist/FollowBanner/index.js +3 -2
- package/dist/HuePicker/index.js +7 -6
- package/dist/IconButton/IconButton.d.ts +6 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-K24JQHLF.css → IconButton-6WA7UEBJ.css} +44 -21
- package/dist/IconTile/IconTile.d.ts +8 -2
- package/dist/IconTile/index.js +1 -1
- package/dist/{IconTile-4GNWTLAW.css → IconTile-G52XZVR4.css} +3 -0
- package/dist/InlineEditor/index.js +5 -4
- package/dist/Input/index.js +2 -2
- package/dist/LinkInterstitial/index.js +5 -4
- package/dist/ListInput/index.js +5 -4
- package/dist/LogoSlot/index.js +4 -3
- package/dist/Markdown/grammar.d.ts +1 -1
- package/dist/MarkdownEditor/index.js +7 -6
- package/dist/Menu/index.js +4 -3
- package/dist/MergeConflicts/index.js +7 -6
- package/dist/MessageBubble/MessageBubble.d.ts +34 -0
- package/dist/MessageBubble/index.d.ts +3 -0
- package/dist/MessageBubble/index.js +2 -0
- package/dist/MessageBubble-GKO6X3QG.css +71 -0
- package/dist/Modal/index.js +4 -3
- package/dist/OpenInAppCard/OpenInAppCard.d.ts +44 -0
- package/dist/OpenInAppCard/index.d.ts +3 -0
- package/dist/OpenInAppCard/index.js +15 -0
- package/dist/OpenInAppCard-CKHCK7DO.css +24 -0
- package/dist/OrgTable/index.js +3 -3
- package/dist/PeekRail/PeekHost.d.ts +90 -0
- package/dist/PeekRail/PeekRail.d.ts +83 -0
- package/dist/PeekRail/activation.d.ts +30 -0
- package/dist/PeekRail/index.d.ts +8 -0
- package/dist/PeekRail/index.js +8 -0
- package/dist/PeekRail-4L5YUQMW.css +95 -0
- package/dist/PeopleRail/index.js +4 -3
- package/dist/PinTile/index.js +2 -2
- package/dist/PresenterView/index.js +5 -4
- package/dist/PrincipalPicker/index.js +4 -4
- package/dist/ProposalCard/ProposalCard.d.ts +134 -0
- package/dist/ProposalCard/index.d.ts +3 -0
- package/dist/ProposalCard/index.js +17 -0
- package/dist/ProposalCard-HLB3FNLA.css +19 -0
- package/dist/ReceiptStrip/ReceiptStrip.d.ts +66 -0
- package/dist/ReceiptStrip/index.d.ts +3 -0
- package/dist/ReceiptStrip/index.js +5 -0
- package/dist/ReceiptStrip-IIRKRTBG.css +93 -0
- package/dist/RefusalCard/RefusalCard.d.ts +34 -0
- package/dist/RefusalCard/index.d.ts +3 -0
- package/dist/RefusalCard/index.js +10 -0
- package/dist/RefusalCard-UM67F5HB.css +8 -0
- package/dist/RelativeTime/clock.d.ts +0 -6
- package/dist/RelativeTime/index.js +1 -1
- package/dist/ResizeHandle-2UNSZ4ZQ.css +59 -0
- package/dist/ResultTableCard/ResultTableCard.d.ts +64 -0
- package/dist/ResultTableCard/index.d.ts +3 -0
- package/dist/ResultTableCard/index.js +16 -0
- package/dist/ResultTableCard-HZRUDNTX.css +40 -0
- package/dist/ReviewList/index.js +2 -2
- package/dist/RichEditor/codec.d.ts +1 -1
- package/dist/RichEditor/index.js +3 -2
- package/dist/RichEditor/roundtrip.d.ts +1 -1
- package/dist/RunChip/RunChip.d.ts +53 -0
- package/dist/RunChip/index.d.ts +3 -0
- package/dist/RunChip/index.js +10 -0
- package/dist/RunChip-I2S4VZ3R.css +43 -0
- package/dist/SandboxedFrame/index.js +3 -2
- package/dist/SegmentedControl/index.js +6 -5
- package/dist/SelectionBar/index.js +3 -2
- package/dist/SendButton/SendButton.d.ts +38 -0
- package/dist/SendButton/index.d.ts +2 -0
- package/dist/SendButton/index.js +4 -0
- package/dist/SetupWizard/index.js +5 -4
- package/dist/ShareDialog/index.js +7 -6
- package/dist/SheetColumnEditor/index.js +10 -9
- package/dist/SheetGrid/index.js +6 -5
- package/dist/SidePanel/SidePanel.d.ts +137 -0
- package/dist/SidePanel/SidePanelBase.d.ts +59 -0
- package/dist/SidePanel/index.d.ts +5 -0
- package/dist/SidePanel/index.js +11 -0
- package/dist/SidePanel-ERBUIELD.css +235 -0
- package/dist/SlideCompare/index.js +3 -2
- package/dist/SlideFilmstrip/index.js +5 -4
- package/dist/SlideNav/index.js +2 -2
- package/dist/Spinner/Spinner.d.ts +35 -0
- package/dist/Spinner/index.d.ts +3 -0
- package/dist/Spinner/index.js +2 -0
- package/dist/Spinner-XZ2TVYE5.css +46 -0
- package/dist/StatusCard/StatusCard.d.ts +59 -0
- package/dist/StatusCard/index.d.ts +3 -0
- package/dist/StatusCard/index.js +9 -0
- package/dist/StatusCard-6RPEE6UU.css +62 -0
- package/dist/StepList-A4YVU4JI.css +119 -0
- package/dist/Stepper/StepList.d.ts +72 -0
- package/dist/Stepper/index.d.ts +3 -0
- package/dist/Stepper/index.js +2 -1
- package/dist/SuggestionRow/SuggestionRow.d.ts +45 -0
- package/dist/SuggestionRow/index.d.ts +3 -0
- package/dist/SuggestionRow/index.js +3 -0
- package/dist/SuggestionRow-OKBGNHSS.css +102 -0
- package/dist/Switcher/index.js +6 -5
- package/dist/Table/Table.d.ts +23 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-TGCS4C3F.css → Table-RUYMMWXT.css} +49 -0
- package/dist/TableCells/index.js +2 -2
- package/dist/Tabs/index.js +5 -4
- package/dist/TagsInput/index.js +3 -3
- package/dist/ThemeGallery/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +7 -6
- package/dist/ThemeToggle/index.js +2 -2
- package/dist/TimeRangePicker/TimeRangePicker.d.ts +121 -0
- package/dist/TimeRangePicker/index.d.ts +2 -0
- package/dist/TimeRangePicker/index.js +23 -0
- package/dist/TimeWindowPicker/index.js +5 -4
- package/dist/Toaster/Toaster.d.ts +27 -3
- package/dist/Toaster/index.d.ts +2 -2
- package/dist/Toaster/index.js +1 -1
- package/dist/{Toaster-C6BQ7L6I.css → Toaster-MX7TBMC3.css} +32 -11
- package/dist/TreeCanvas/index.js +5 -4
- package/dist/TreeGrid/index.js +2 -2
- package/dist/VersionCompare/index.js +7 -6
- package/dist/VersionTimeline/index.js +4 -3
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/{chunk-SS4XCUUJ.js → chunk-272Y3YMV.js} +3 -3
- package/dist/{chunk-LACA4JGC.js → chunk-2BQYODY3.js} +1 -1
- package/dist/{chunk-XS2FJVMT.js → chunk-2TTFDRR3.js} +2 -2
- package/dist/{chunk-4BJK7FE5.js → chunk-3EYSYEXP.js} +1 -1
- package/dist/chunk-3LI4TRUR.js +22 -0
- package/dist/{chunk-5WYPSVRX.js → chunk-3NQS6KYG.js} +1 -1
- package/dist/{chunk-V2N3BMOT.js → chunk-45KMH3E3.js} +11 -4
- package/dist/{chunk-2GIWL7IS.js → chunk-4CBGIRVU.js} +1 -1
- package/dist/{chunk-3QSKDZR5.js → chunk-4OINEWR4.js} +1 -1
- package/dist/{chunk-EZ43L6T7.js → chunk-56P72ZBE.js} +4 -4
- package/dist/{chunk-J24Q4HTD.js → chunk-5NT6OIPP.js} +13 -3
- package/dist/{chunk-FNPZ3LLQ.js → chunk-5OMV75GE.js} +3 -3
- package/dist/{chunk-6RMZH7P7.js → chunk-672GLRBU.js} +2 -2
- package/dist/{chunk-GPZXBJFU.js → chunk-67F2AM4R.js} +2 -2
- package/dist/{chunk-NQCY44B3.js → chunk-67MW366X.js} +2 -2
- package/dist/{chunk-SSHDQBHR.js → chunk-6KLK7E76.js} +2 -2
- package/dist/{chunk-ZFM5L7M4.js → chunk-6NJW5KSX.js} +2 -2
- package/dist/{chunk-A4GFEMVI.js → chunk-6T6V5565.js} +1 -1
- package/dist/{chunk-THDGBD6Y.js → chunk-AKFHMLEX.js} +1 -1
- package/dist/{chunk-6FVGSWLS.js → chunk-AWSFK2IK.js} +1 -1
- package/dist/{chunk-HQJ24WPM.js → chunk-AZ5BKSGV.js} +1 -1
- package/dist/chunk-BLPT6GHV.js +31 -0
- package/dist/chunk-C3FX7ZSU.js +30 -0
- package/dist/{chunk-LDGQIDIZ.js → chunk-CGT4R7LW.js} +64 -2
- package/dist/{chunk-WXWMHYKW.js → chunk-D5OSP3KI.js} +2 -2
- package/dist/{chunk-CQEYF3UW.js → chunk-DOPPU6TZ.js} +3 -3
- package/dist/{chunk-AC22RZKC.js → chunk-DRT4L4WC.js} +17 -5
- package/dist/chunk-E4DZOE55.js +162 -0
- package/dist/chunk-EA23JG6R.js +9 -0
- package/dist/{chunk-J53T2QAH.js → chunk-EBG3V4MK.js} +6 -6
- package/dist/{chunk-7PE56HHD.js → chunk-EDNZHW4K.js} +57 -7
- package/dist/{chunk-E6HXFFWO.js → chunk-EGL24VY5.js} +2 -2
- package/dist/{chunk-7SHAFLEX.js → chunk-ES4HR34Y.js} +2 -2
- package/dist/chunk-EVWTLFKI.js +102 -0
- package/dist/chunk-FA44M2YT.js +25 -0
- package/dist/{chunk-VWYT3GVV.js → chunk-FLTMDSC3.js} +1 -1
- package/dist/{chunk-LJHH4WWB.js → chunk-FXQLNETQ.js} +1 -1
- package/dist/{chunk-3NXWH5NC.js → chunk-GCASX3FD.js} +4 -4
- package/dist/{chunk-OGXHZHRX.js → chunk-GG4QZWMQ.js} +2 -2
- package/dist/{chunk-XP7EXNKF.js → chunk-GPW4M4OI.js} +2 -2
- package/dist/chunk-GZMEWWXW.js +78 -0
- package/dist/{chunk-OG6CL3EB.js → chunk-HD4QJ2SI.js} +3 -2
- package/dist/{chunk-SYY26XBX.js → chunk-HGCDJOEF.js} +2 -2
- package/dist/chunk-HGYHWWA5.js +54 -0
- package/dist/{chunk-GRKGLZFM.js → chunk-HL4CPLEK.js} +7 -7
- package/dist/{chunk-BEHFTRMZ.js → chunk-HNK43Z3P.js} +23 -5
- package/dist/{chunk-UO7JZVCO.js → chunk-HVEDVKXL.js} +1 -1
- package/dist/{chunk-ILFEWRLG.js → chunk-I7VG6RQE.js} +1 -1
- package/dist/{chunk-3RCHEFIL.js → chunk-ICJRP6QW.js} +2 -2
- package/dist/{chunk-CUL5XV6O.js → chunk-IDQBSMMZ.js} +2 -2
- package/dist/chunk-JILNCBBS.js +27 -0
- package/dist/{chunk-5O72FSOK.js → chunk-JJ3NOBJ6.js} +5 -5
- package/dist/chunk-JLRXCKTS.js +97 -0
- package/dist/{chunk-OJCVVCAZ.js → chunk-JMMS2PQU.js} +1 -1
- package/dist/{chunk-SXBJMBSV.js → chunk-JS2TRHBF.js} +2 -2
- package/dist/{chunk-3CZ7XAVY.js → chunk-KS7YIJ4S.js} +10 -6
- package/dist/{chunk-VWNC2L6W.js → chunk-KW6KCVM7.js} +1 -1
- package/dist/{chunk-X4NIE7CI.js → chunk-LQ6AGUDL.js} +2 -2
- package/dist/chunk-LXYSWQNE.js +214 -0
- package/dist/{chunk-6VQA2LZC.js → chunk-MYX4XABB.js} +3 -3
- package/dist/{chunk-PM3JVNRY.js → chunk-N3ISZVLK.js} +1 -1
- package/dist/chunk-NEHSV55H.js +119 -0
- package/dist/{chunk-RQI43UJ7.js → chunk-NHJQXDHA.js} +1 -1
- package/dist/{chunk-VVOPDWLX.js → chunk-NI7WUPH3.js} +2 -2
- package/dist/{chunk-OCRVY42T.js → chunk-NK3D66PB.js} +1 -1
- package/dist/{chunk-RHPBTE3F.js → chunk-NQGZRMUG.js} +1 -1
- package/dist/chunk-NVZCANJ5.js +3 -0
- package/dist/{chunk-RRO7UEYU.js → chunk-OHBXOEP3.js} +1 -1
- package/dist/{chunk-RFPCHMSX.js → chunk-OHG7762N.js} +1 -1
- package/dist/{chunk-OBUQVGEG.js → chunk-OJ2QULVH.js} +1 -1
- package/dist/{chunk-PGYIDNGG.js → chunk-OOZ5AGPS.js} +4 -4
- package/dist/{chunk-34RMTXDZ.js → chunk-OYAXKHVW.js} +1 -1
- package/dist/{chunk-WQQ5T5SA.js → chunk-OZIBNFLO.js} +1 -1
- package/dist/{chunk-DFK5EQTU.js → chunk-PDTEPN4D.js} +1 -1
- package/dist/chunk-PIYJNCN7.js +124 -0
- package/dist/{chunk-VP2ODUCC.js → chunk-Q6R6EUQ4.js} +3 -3
- package/dist/chunk-QYEOGGVS.js +161 -0
- package/dist/{chunk-YCC2S7DF.js → chunk-QZ4B72FP.js} +2 -2
- package/dist/chunk-RV2FGESF.js +98 -0
- package/dist/{chunk-SEPSXOGJ.js → chunk-S5C64PTT.js} +1 -1
- package/dist/chunk-SDSBVVLL.js +45 -0
- package/dist/{chunk-ZNOXQACX.js → chunk-T4D7RZNI.js} +2 -2
- package/dist/{chunk-G5SUSCWL.js → chunk-TA72CURM.js} +1 -1
- package/dist/{chunk-WXOYHVWG.js → chunk-TD3UHDFY.js} +4 -4
- package/dist/{chunk-VN47PYUF.js → chunk-TDQZ4LB5.js} +8 -6
- package/dist/chunk-TFGCNBWP.js +64 -0
- package/dist/{chunk-TMM32U7D.js → chunk-TKS7FTTO.js} +2 -2
- package/dist/{chunk-C6Z3MLSA.js → chunk-U5PJSGHG.js} +1 -1
- package/dist/{chunk-7CGPPAYR.js → chunk-UV4LOQ3E.js} +1 -1
- package/dist/{chunk-34ANLQW2.js → chunk-UVYGMCJ4.js} +173 -8
- package/dist/{chunk-ON2E46DX.js → chunk-VRNUKH2W.js} +1 -1
- package/dist/{chunk-XX2VQE55.js → chunk-WBRC3MNE.js} +1 -1
- package/dist/chunk-WDIVALLP.js +51 -0
- package/dist/{chunk-SQ4JFHO7.js → chunk-WOW5SCEK.js} +1 -1
- package/dist/chunk-XODESBSR.js +250 -0
- package/dist/chunk-XQI2OUV4.js +59 -0
- package/dist/{chunk-EJWPYEG4.js → chunk-XRZGGB6I.js} +1 -1
- package/dist/{chunk-34C7NYIQ.js → chunk-Y73BQL74.js} +1 -1
- package/dist/{chunk-KIRQZG3G.js → chunk-YCGZK2E4.js} +1 -1
- package/dist/{chunk-CAVWDJF4.js → chunk-YCZ2FBKA.js} +1 -1
- package/dist/{chunk-D7Q5MQRF.js → chunk-YEURM24I.js} +2 -2
- package/dist/{chunk-IW55G7XG.js → chunk-YNRKVY7X.js} +11 -1
- package/dist/chunk-YY445YFQ.js +55 -0
- package/dist/{chunk-LFHCXZO5.js → chunk-Z3GDMNMU.js} +3 -3
- package/dist/{chunk-NMR7AJSB.js → chunk-Z7PJF6F3.js} +2 -2
- package/dist/{chunk-U3LNU4B2.js → chunk-ZH4MJM73.js} +1 -1
- package/dist/generated/index.d.ts +17 -0
- package/dist/generated/index.js +138 -119
- package/dist/index.js +138 -119
- package/dist/styles.css +1877 -218
- package/dist/utils/index.js +1 -1
- package/dist/utils/useDownload.d.ts +6 -0
- package/package.json +3 -3
- package/dist/ArtifactPanel-KKUUIPEU.css +0 -159
- package/dist/Composer-TXULCPPV.css +0 -99
- package/dist/chunk-FZVJDJFN.js +0 -54
- package/dist/chunk-IXJHTFXG.js +0 -17
- package/dist/chunk-NBDN5JZV.js +0 -123
- package/dist/chunk-UJ4VVK7R.js +0 -48
- package/dist/{chunk-UTESMBPL.js → chunk-ESUZ27TS.js} +1 -1
- /package/dist/{chunk-55MPFB2U.js → chunk-EWTPXRRM.js} +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Table } from './chunk-45KMH3E3.js';
|
|
2
|
+
import { StatusCard } from './chunk-WDIVALLP.js';
|
|
3
|
+
import { DownloadButton } from './chunk-HNK43Z3P.js';
|
|
4
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
+
import './ResultTableCard-HZRUDNTX.css';
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var RESULT_TABLE_CARD_LABELS = {
|
|
10
|
+
showAll: (count) => `Show all ${count.toLocaleString()}`
|
|
11
|
+
};
|
|
12
|
+
var RESULT_TABLE_MAX_ROWS = 20;
|
|
13
|
+
var RESULT_TABLE_COLLAPSED_ROWS = 10;
|
|
14
|
+
function ResultTableCard({
|
|
15
|
+
title,
|
|
16
|
+
window: span,
|
|
17
|
+
headers,
|
|
18
|
+
rows,
|
|
19
|
+
align,
|
|
20
|
+
total,
|
|
21
|
+
downloads,
|
|
22
|
+
link,
|
|
23
|
+
maxRows = RESULT_TABLE_MAX_ROWS,
|
|
24
|
+
collapsedRows = RESULT_TABLE_COLLAPSED_ROWS,
|
|
25
|
+
emptyMessage = "No rows match.",
|
|
26
|
+
labels: overrides,
|
|
27
|
+
className,
|
|
28
|
+
...rest
|
|
29
|
+
}) {
|
|
30
|
+
const labels = overrides ? { ...RESULT_TABLE_CARD_LABELS, ...overrides } : RESULT_TABLE_CARD_LABELS;
|
|
31
|
+
const [expanded, setExpanded] = useState(false);
|
|
32
|
+
const long = rows.length > maxRows;
|
|
33
|
+
const shown = long && !expanded ? rows.slice(0, collapsedRows) : rows;
|
|
34
|
+
const hasLink = link !== void 0 && link !== null && link !== false;
|
|
35
|
+
const foot = downloads && downloads.length > 0 || hasLink ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
36
|
+
downloads?.map((download) => /* @__PURE__ */ jsx(
|
|
37
|
+
DownloadButton,
|
|
38
|
+
{
|
|
39
|
+
label: download.label,
|
|
40
|
+
filename: download.filename,
|
|
41
|
+
file: download.file,
|
|
42
|
+
className: "crewlet-result-table-card__download"
|
|
43
|
+
},
|
|
44
|
+
download.filename
|
|
45
|
+
)),
|
|
46
|
+
hasLink ? /* @__PURE__ */ jsx("span", { className: "crewlet-result-table-card__link", children: link }) : null
|
|
47
|
+
] }) : void 0;
|
|
48
|
+
return /* @__PURE__ */ jsx(
|
|
49
|
+
StatusCard,
|
|
50
|
+
{
|
|
51
|
+
...rest,
|
|
52
|
+
title,
|
|
53
|
+
subtitle: span,
|
|
54
|
+
subtitlePlacement: "below",
|
|
55
|
+
bodyPadding: "none",
|
|
56
|
+
actions: foot,
|
|
57
|
+
actionsAlign: "start",
|
|
58
|
+
className: cx("crewlet-result-table-card", className),
|
|
59
|
+
children: /* @__PURE__ */ jsx(
|
|
60
|
+
Table,
|
|
61
|
+
{
|
|
62
|
+
framed: false,
|
|
63
|
+
caption: title,
|
|
64
|
+
captionHidden: true,
|
|
65
|
+
headers,
|
|
66
|
+
data: shown,
|
|
67
|
+
align,
|
|
68
|
+
footer: total,
|
|
69
|
+
emptyMessage,
|
|
70
|
+
actionButton: long && !expanded ? { label: labels.showAll(rows.length), onClick: () => setExpanded(true) } : void 0,
|
|
71
|
+
className: "crewlet-result-table-card__table"
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Spinner } from './chunk-EA23JG6R.js';
|
|
1
2
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
2
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Button-
|
|
4
|
+
import './Button-VXJ7M5XF.css';
|
|
4
5
|
import { forwardRef, useId, Children, isValidElement, cloneElement } from 'react';
|
|
5
6
|
import { ExternalLinkGlyph } from '@crewlethq/icons/glyphs';
|
|
6
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -23,7 +24,7 @@ function Inner({
|
|
|
23
24
|
children
|
|
24
25
|
}) {
|
|
25
26
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
26
|
-
loading ? /* @__PURE__ */ jsx(
|
|
27
|
+
loading ? /* @__PURE__ */ jsx(Spinner, { className: "crewlet-btn__spinner" }) : leadingIcon ? /* @__PURE__ */ jsx("span", { className: "crewlet-btn__icon", children: leadingIcon }) : null,
|
|
27
28
|
/* @__PURE__ */ jsx("span", { className: "crewlet-btn__label", children }),
|
|
28
29
|
trailingIcon ? /* @__PURE__ */ jsx("span", { className: "crewlet-btn__icon", children: trailingIcon }) : null
|
|
29
30
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FileDrop, FilePickButton } from './chunk-
|
|
1
|
+
import { FileDrop, FilePickButton } from './chunk-AKFHMLEX.js';
|
|
2
2
|
import { contrastRatio } from './chunk-WW7TU6HE.js';
|
|
3
3
|
import { normalizeHex } from './chunk-7W3LYIOC.js';
|
|
4
|
-
import { Button } from './chunk-
|
|
4
|
+
import { Button } from './chunk-HD4QJ2SI.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './LogoSlot-NAJE5XY3.css';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { SidePanelBase, SidePanelFrameBase } from './chunk-XODESBSR.js';
|
|
2
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
+
import './HitArea-QUOS6ZDJ.css';
|
|
4
|
+
import './ResizeHandle-2UNSZ4ZQ.css';
|
|
5
|
+
import './SidePanel-ERBUIELD.css';
|
|
6
|
+
import './ArtifactPanel-TN4FFK2F.css';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var ARTIFACT_PANEL_LABELS = {
|
|
10
|
+
close: (title) => `Close ${title.toLowerCase()}`,
|
|
11
|
+
expand: "Expand to the full view",
|
|
12
|
+
collapse: "Back to the side"
|
|
13
|
+
};
|
|
14
|
+
function ArtifactPanel({
|
|
15
|
+
title,
|
|
16
|
+
icon,
|
|
17
|
+
onClose,
|
|
18
|
+
size = "md",
|
|
19
|
+
expanded = false,
|
|
20
|
+
onExpandedChange,
|
|
21
|
+
actions,
|
|
22
|
+
footer,
|
|
23
|
+
focusOnOpen = true,
|
|
24
|
+
labels,
|
|
25
|
+
className,
|
|
26
|
+
children
|
|
27
|
+
}) {
|
|
28
|
+
const words = { ...ARTIFACT_PANEL_LABELS, ...labels };
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
SidePanelBase,
|
|
31
|
+
{
|
|
32
|
+
alias: "crewlet-artifact-panel",
|
|
33
|
+
title,
|
|
34
|
+
icon,
|
|
35
|
+
onClose,
|
|
36
|
+
closeLabel: words.close(title),
|
|
37
|
+
actions,
|
|
38
|
+
footer,
|
|
39
|
+
initialFocus: focusOnOpen ? "heading" : "none",
|
|
40
|
+
ringHeading: true,
|
|
41
|
+
expanded,
|
|
42
|
+
onExpandedChange,
|
|
43
|
+
expandLabel: words.expand,
|
|
44
|
+
collapseLabel: words.collapse,
|
|
45
|
+
className: cx(`crewlet-artifact-panel--${size}`, className),
|
|
46
|
+
children
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function ArtifactWorkspace(props) {
|
|
51
|
+
return /* @__PURE__ */ jsx(SidePanelFrameBase, { ...props, alias: "crewlet-artifact-workspace" });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { ARTIFACT_PANEL_LABELS, ArtifactPanel, ArtifactWorkspace };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { PageHeader } from './chunk-DKB73KZI.js';
|
|
2
|
-
import { DataTable } from './chunk-
|
|
3
|
-
import { DateTimePicker } from './chunk-
|
|
2
|
+
import { DataTable } from './chunk-JJ3NOBJ6.js';
|
|
3
|
+
import { DateTimePicker } from './chunk-6NJW5KSX.js';
|
|
4
4
|
import { useListbox, useOptionKeys } from './chunk-7KHM2FZH.js';
|
|
5
5
|
import { Toolbar } from './chunk-NR4CPM4T.js';
|
|
6
6
|
import { Popover } from './chunk-KHJIEPZV.js';
|
|
7
|
-
import { RelativeTime } from './chunk-
|
|
7
|
+
import { RelativeTime } from './chunk-KS7YIJ4S.js';
|
|
8
8
|
import { Kbd } from './chunk-SMBKXWML.js';
|
|
9
|
-
import { Input } from './chunk-
|
|
9
|
+
import { Input } from './chunk-FXQLNETQ.js';
|
|
10
10
|
import { Count } from './chunk-BHHIIK3M.js';
|
|
11
|
-
import { Menu } from './chunk-
|
|
12
|
-
import { Button } from './chunk-
|
|
13
|
-
import { IconButton } from './chunk-
|
|
11
|
+
import { Menu } from './chunk-TKS7FTTO.js';
|
|
12
|
+
import { Button } from './chunk-HD4QJ2SI.js';
|
|
13
|
+
import { IconButton } from './chunk-2BQYODY3.js';
|
|
14
14
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
15
15
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
16
16
|
import './DataView-N6JX464S.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useDownload, safeFilename } from './chunk-
|
|
2
|
-
import { Button } from './chunk-
|
|
1
|
+
import { useDownload, safeFilename } from './chunk-YNRKVY7X.js';
|
|
2
|
+
import { Button } from './chunk-HD4QJ2SI.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
4
|
-
import { useMemo, useCallback } from 'react';
|
|
4
|
+
import { useMemo, useState, useRef, useEffect, useCallback } from 'react';
|
|
5
5
|
import { CheckGlyph, CircleAlertGlyph, SaveGlyph } from '@crewlethq/icons/glyphs';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
@@ -12,6 +12,7 @@ function downloadGlyph(state) {
|
|
|
12
12
|
}
|
|
13
13
|
function DownloadButton({
|
|
14
14
|
text,
|
|
15
|
+
file,
|
|
15
16
|
filename,
|
|
16
17
|
mime,
|
|
17
18
|
label = "Download",
|
|
@@ -27,11 +28,27 @@ function DownloadButton({
|
|
|
27
28
|
failedResetMs = null,
|
|
28
29
|
className
|
|
29
30
|
}) {
|
|
30
|
-
const { state, attempt, download } = useDownload({ resetMs, failedResetMs });
|
|
31
|
+
const { state, attempt, download, downloadFile } = useDownload({ resetMs, failedResetMs });
|
|
31
32
|
const name = useMemo(() => safeFilename(filename), [filename]);
|
|
33
|
+
const [fetching, setFetching] = useState(false);
|
|
34
|
+
const live = useRef(true);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
live.current = true;
|
|
37
|
+
return () => {
|
|
38
|
+
live.current = false;
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
32
41
|
const onClick = useCallback(() => {
|
|
42
|
+
if (file) {
|
|
43
|
+
if (fetching) return;
|
|
44
|
+
setFetching(true);
|
|
45
|
+
void downloadFile(file, filename).finally(() => {
|
|
46
|
+
if (live.current) setFetching(false);
|
|
47
|
+
});
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
33
50
|
void download(text, filename, mime);
|
|
34
|
-
}, [download, text, filename, mime]);
|
|
51
|
+
}, [download, downloadFile, fetching, file, text, filename, mime]);
|
|
35
52
|
const said = state === "started" ? startedMessage ?? `download started: ${name}` : state === "failed" ? failedMessage : "";
|
|
36
53
|
return /* @__PURE__ */ jsxs("span", { className, children: [
|
|
37
54
|
/* @__PURE__ */ jsx(
|
|
@@ -41,6 +58,7 @@ function DownloadButton({
|
|
|
41
58
|
variant,
|
|
42
59
|
leadingIcon: downloadGlyph(state),
|
|
43
60
|
onClick,
|
|
61
|
+
loading: fetching,
|
|
44
62
|
disabled,
|
|
45
63
|
title: state === "failed" ? failedMessage : title,
|
|
46
64
|
children: state === "started" ? startedLabel : state === "failed" ? failedLabel : label
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StatusDot } from './chunk-WIATRXEJ.js';
|
|
2
2
|
import { useRoving, tabStop } from './chunk-EGMQURBR.js';
|
|
3
3
|
import { Count } from './chunk-BHHIIK3M.js';
|
|
4
|
-
import { Menu } from './chunk-
|
|
4
|
+
import { Menu } from './chunk-TKS7FTTO.js';
|
|
5
5
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
6
6
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PRESENCE_LABELS, presenceOrder, collapseSessions } from './chunk-Z7JYG5TF.js';
|
|
2
2
|
import { Avatar } from './chunk-PZKHBB7D.js';
|
|
3
3
|
import { headingTag, useHeadingLevel } from './chunk-PQADV6P6.js';
|
|
4
|
-
import { Button } from './chunk-
|
|
5
|
-
import { IconButton } from './chunk-
|
|
4
|
+
import { Button } from './chunk-HD4QJ2SI.js';
|
|
5
|
+
import { IconButton } from './chunk-2BQYODY3.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './PeopleRail-SZGHZXVT.css';
|
|
8
8
|
import { useId } from 'react';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Skeleton } from './chunk-TEUQWOWZ.js';
|
|
2
2
|
import { PrincipalAvatar } from './chunk-CI3VPIJN.js';
|
|
3
|
-
import { RelativeTime } from './chunk-
|
|
3
|
+
import { RelativeTime } from './chunk-KS7YIJ4S.js';
|
|
4
4
|
import { AvatarStack } from './chunk-5AQBPHZD.js';
|
|
5
5
|
import { ArtifactKindGround } from './chunk-RV6XB5UV.js';
|
|
6
6
|
import { Card } from './chunk-INHXF2CL.js';
|
|
7
|
-
import { Checkbox } from './chunk-
|
|
7
|
+
import { Checkbox } from './chunk-NHJQXDHA.js';
|
|
8
8
|
import { ArtifactAccessGlyph } from './chunk-BGLKLXL3.js';
|
|
9
9
|
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
10
10
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IconButton } from './chunk-2BQYODY3.js';
|
|
2
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { SquareGlyph, ArrowUpGlyph } from '@crewlethq/icons/glyphs';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var SEND_BUTTON_LABELS = { send: "Send", stop: "Stop" };
|
|
8
|
+
var SendButton = forwardRef(function SendButton2({ mode, onPress, disabledReason, labels: overrides, className, ...rest }, ref) {
|
|
9
|
+
const labels = overrides ? { ...SEND_BUTTON_LABELS, ...overrides } : SEND_BUTTON_LABELS;
|
|
10
|
+
const stopping = mode === "stop";
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
IconButton,
|
|
13
|
+
{
|
|
14
|
+
...rest,
|
|
15
|
+
ref,
|
|
16
|
+
size: "md",
|
|
17
|
+
variant: stopping ? "secondary" : "primary",
|
|
18
|
+
label: stopping ? labels.stop : labels.send,
|
|
19
|
+
icon: stopping ? /* @__PURE__ */ jsx(SquareGlyph, { filled: true }) : /* @__PURE__ */ jsx(ArrowUpGlyph, {}),
|
|
20
|
+
disabledReason: stopping ? void 0 : disabledReason,
|
|
21
|
+
className: cx("crewlet-send-button", `crewlet-send-button--${mode}`, className),
|
|
22
|
+
onClick: onPress
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export { SEND_BUTTON_LABELS, SendButton };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Modal } from './chunk-YCC2S7DF.js';
|
|
2
1
|
import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
2
|
+
import { Modal } from './chunk-QZ4B72FP.js';
|
|
3
3
|
import { EmptyValue } from './chunk-EUCC37WY.js';
|
|
4
4
|
import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
|
|
5
|
-
import { Checkbox } from './chunk-
|
|
6
|
-
import { Menu } from './chunk-
|
|
7
|
-
import { Button } from './chunk-
|
|
8
|
-
import { IconButton } from './chunk-
|
|
5
|
+
import { Checkbox } from './chunk-NHJQXDHA.js';
|
|
6
|
+
import { Menu } from './chunk-TKS7FTTO.js';
|
|
7
|
+
import { Button } from './chunk-HD4QJ2SI.js';
|
|
8
|
+
import { IconButton } from './chunk-2BQYODY3.js';
|
|
9
9
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
10
10
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
11
11
|
import './DataTable-NL2YWAIA.css';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Kbd } from './chunk-SMBKXWML.js';
|
|
2
|
+
import { Textarea } from './chunk-FXQLNETQ.js';
|
|
3
|
+
import { isComposing } from './chunk-H5XTJ7GJ.js';
|
|
4
|
+
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
5
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
+
import './Composer-JSGTOW3F.css';
|
|
7
|
+
import { forwardRef, useId } from 'react';
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
var COMPOSER_COUNTER_AT = 0.8;
|
|
11
|
+
var Composer = forwardRef(function Composer2({
|
|
12
|
+
value,
|
|
13
|
+
onChange,
|
|
14
|
+
onSubmit,
|
|
15
|
+
submitOn = "mod-enter",
|
|
16
|
+
label,
|
|
17
|
+
actions,
|
|
18
|
+
trailing,
|
|
19
|
+
attachments,
|
|
20
|
+
attachmentsLabel = "Attached to this message",
|
|
21
|
+
disabledReason,
|
|
22
|
+
disabled: disabledProp,
|
|
23
|
+
placeholder,
|
|
24
|
+
maxLength,
|
|
25
|
+
className,
|
|
26
|
+
rows,
|
|
27
|
+
onKeyDown,
|
|
28
|
+
"aria-describedby": describedBy,
|
|
29
|
+
...rest
|
|
30
|
+
}, ref) {
|
|
31
|
+
const reasonId = useId();
|
|
32
|
+
const disabled = Boolean(disabledProp) || disabledReason !== void 0;
|
|
33
|
+
const inline = present(trailing);
|
|
34
|
+
const near = maxLength !== void 0 && value.length >= maxLength * COMPOSER_COUNTER_AT;
|
|
35
|
+
const hasActions = present(actions);
|
|
36
|
+
const hint = onSubmit !== void 0 && submitOn === "mod-enter";
|
|
37
|
+
const keyDown = (event) => {
|
|
38
|
+
onKeyDown?.(event);
|
|
39
|
+
if (event.defaultPrevented || !onSubmit || disabled || event.key !== "Enter") return;
|
|
40
|
+
if (isComposing(event)) return;
|
|
41
|
+
const mod = event.metaKey || event.ctrlKey;
|
|
42
|
+
const sends = submitOn === "enter" ? !event.shiftKey || mod : mod;
|
|
43
|
+
if (!sends) return;
|
|
44
|
+
event.preventDefault();
|
|
45
|
+
onSubmit();
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ jsxs(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
className: cx(
|
|
51
|
+
"crewlet-composer",
|
|
52
|
+
inline && "crewlet-composer--inline",
|
|
53
|
+
disabled && "is-disabled",
|
|
54
|
+
className
|
|
55
|
+
),
|
|
56
|
+
children: [
|
|
57
|
+
present(attachments) ? /* @__PURE__ */ jsx("div", { role: "group", "aria-label": attachmentsLabel, className: "crewlet-composer__attachments", children: attachments }) : null,
|
|
58
|
+
/* @__PURE__ */ jsxs("div", { className: "crewlet-composer__row", children: [
|
|
59
|
+
/* @__PURE__ */ jsx(
|
|
60
|
+
Textarea,
|
|
61
|
+
{
|
|
62
|
+
ref,
|
|
63
|
+
className: "crewlet-composer__field",
|
|
64
|
+
"aria-label": label,
|
|
65
|
+
"aria-describedby": disabledReason === void 0 ? describedBy : cx(describedBy, reasonId),
|
|
66
|
+
value,
|
|
67
|
+
onChange: (event) => onChange(event.target.value),
|
|
68
|
+
onKeyDown: keyDown,
|
|
69
|
+
maxLength,
|
|
70
|
+
rows: rows ?? (inline ? 1 : 3),
|
|
71
|
+
disabled,
|
|
72
|
+
placeholder: disabledReason ?? placeholder,
|
|
73
|
+
autoResize: true,
|
|
74
|
+
...rest
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
inline ? /* @__PURE__ */ jsx("div", { className: "crewlet-composer__trailing", children: trailing }) : null
|
|
78
|
+
] }),
|
|
79
|
+
disabledReason === void 0 ? null : /* @__PURE__ */ jsx(VisuallyHidden, { id: reasonId, children: disabledReason }),
|
|
80
|
+
hint || near || hasActions ? /* @__PURE__ */ jsxs("div", { className: "crewlet-composer__footer", "data-hint-only": !near && !hasActions || void 0, children: [
|
|
81
|
+
hint ? /* @__PURE__ */ jsxs("span", { className: "crewlet-composer__hint", children: [
|
|
82
|
+
/* @__PURE__ */ jsx(Kbd, { keys: ["Mod", "Enter"], subtle: true }),
|
|
83
|
+
" to send"
|
|
84
|
+
] }) : null,
|
|
85
|
+
near ? /* @__PURE__ */ jsx("span", { className: "crewlet-composer__counter", "aria-live": "polite", children: `${value.length.toLocaleString()} / ${maxLength.toLocaleString()}` }) : null,
|
|
86
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-composer__spacer" }),
|
|
87
|
+
actions
|
|
88
|
+
] }) : null
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
});
|
|
93
|
+
function present(node) {
|
|
94
|
+
return node !== void 0 && node !== null && node !== false;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { COMPOSER_COUNTER_AT, Composer };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Tag } from './chunk-KYIAFNU7.js';
|
|
2
1
|
import { useListbox } from './chunk-7KHM2FZH.js';
|
|
2
|
+
import { Tag } from './chunk-KYIAFNU7.js';
|
|
3
3
|
import { announce } from './chunk-RSAQOKH3.js';
|
|
4
4
|
import { isComposing } from './chunk-H5XTJ7GJ.js';
|
|
5
|
-
import { IconButton } from './chunk-
|
|
5
|
+
import { IconButton } from './chunk-2BQYODY3.js';
|
|
6
6
|
import { useFocusModality } from './chunk-NUZHC6MM.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './TagsInput-CLFHP6I2.css';
|
|
@@ -35,15 +35,19 @@ function subscribe(listener) {
|
|
|
35
35
|
if (listeners.size === 0) stop();
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
+
var TICK = 1e3;
|
|
39
|
+
function read() {
|
|
40
|
+
if (!timer) {
|
|
41
|
+
const current = Date.now();
|
|
42
|
+
if (Math.abs(current - now) >= TICK) now = current;
|
|
43
|
+
}
|
|
44
|
+
return now;
|
|
45
|
+
}
|
|
38
46
|
function useNow() {
|
|
39
|
-
return useSyncExternalStore(
|
|
40
|
-
subscribe,
|
|
41
|
-
() => now,
|
|
42
|
-
() => now
|
|
43
|
-
);
|
|
47
|
+
return useSyncExternalStore(subscribe, read, read);
|
|
44
48
|
}
|
|
45
49
|
function currentNow() {
|
|
46
|
-
return
|
|
50
|
+
return read();
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
// src/RelativeTime/format.ts
|
|
@@ -46,7 +46,7 @@ function Breadcrumb({ crumbs, current, label = "Breadcrumb", className, style, .
|
|
|
46
46
|
}
|
|
47
47
|
) : crumb.href ? /* @__PURE__ */ jsx("a", { className: cx("crewlet-breadcrumb__crumb", face), href: crumb.href, children: words }) : (
|
|
48
48
|
// AN ANCESTOR WITH NO PAGE OF ITS OWN, or one the reader is
|
|
49
|
-
// already on ("
|
|
49
|
+
// already on ("Worklet" on Worklet's landing): its words in the
|
|
50
50
|
// ancestors' quiet ink, with nothing to press.
|
|
51
51
|
/* @__PURE__ */ jsx("span", { className: cx("crewlet-breadcrumb__crumb", face), children: words })
|
|
52
52
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Toolbar } from './chunk-NR4CPM4T.js';
|
|
2
|
-
import { ShortcutTip } from './chunk-
|
|
3
|
-
import { IconButton } from './chunk-
|
|
2
|
+
import { ShortcutTip } from './chunk-YEURM24I.js';
|
|
3
|
+
import { IconButton } from './chunk-2BQYODY3.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './CanvasToolbar-EM5EVZED.css';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|