@crewlethq/ui 0.110.0 → 0.112.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/ActivityLine/index.js +1 -1
- package/dist/AgentHandoffPanel/index.js +9 -8
- package/dist/AppShell/index.js +5 -5
- package/dist/ArrangeFrame/index.js +3 -3
- package/dist/ArrangeList/index.js +6 -5
- package/dist/ArtifactBar/index.js +7 -7
- package/dist/ArtifactCard/index.js +8 -7
- package/dist/ArtifactPanel/index.js +4 -4
- package/dist/AttentionList/index.js +3 -3
- package/dist/Avatar/AvatarStack.d.ts +9 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/AvatarPicker/index.js +9 -9
- package/dist/{AvatarStack-EQZZJZ3V.css → AvatarStack-GNEJHEU6.css} +20 -0
- package/dist/BriefCard/index.js +3 -3
- package/dist/Button/index.js +2 -2
- package/dist/Canvas/index.js +4 -4
- package/dist/CanvasBoard/index.js +6 -6
- package/dist/CanvasToolbar/index.js +5 -5
- package/dist/ChangeMark/index.js +2 -2
- package/dist/ChatDay/ChatDay.d.ts +3 -1
- package/dist/ChatDay/index.js +2 -2
- package/dist/ChatDivider/ChatDivider.d.ts +8 -1
- package/dist/ChatDivider/index.js +1 -1
- package/dist/{ChatDivider-7SPCQXUQ.css → ChatDivider-BRODST2E.css} +23 -0
- package/dist/ChatMessage/ChatMessage.d.ts +10 -3
- package/dist/ChatMessage/index.js +4 -4
- package/dist/{ChatMessage-OJO6ASZP.css → ChatMessage-SZGZT7O2.css} +35 -0
- package/dist/{ChatScale-ST24RFPO.css → ChatScale-6NM4TP7R.css} +6 -3
- package/dist/ChatThread/index.js +4 -4
- package/dist/CheckGrid/index.js +6 -5
- package/dist/Checkbox/index.js +5 -4
- package/dist/CodeBlock/CodeBlock.d.ts +14 -1
- package/dist/CodeBlock/index.d.ts +1 -1
- package/dist/CodeBlock/index.js +5 -5
- package/dist/{CodeBlock-T47UA5GM.css → CodeBlock-LS7H6KUQ.css} +45 -0
- package/dist/ColorField/index.js +5 -4
- package/dist/ColorSwatch/index.js +5 -5
- package/dist/Combobox/index.js +5 -4
- package/dist/CommandPalette/index.js +7 -6
- package/dist/CommentThread/index.js +8 -7
- package/dist/Composer/index.js +5 -4
- package/dist/ConfirmField/index.js +5 -4
- package/dist/ConflictNote/index.js +3 -3
- package/dist/ContrastHelp/index.js +4 -4
- package/dist/Copyable/index.js +4 -4
- package/dist/DataGrid/index.js +8 -7
- package/dist/DataTable/index.js +9 -8
- package/dist/DataView/index.js +13 -12
- package/dist/DateTimePicker/index.js +5 -5
- package/dist/DeepWorkCard/index.js +4 -4
- package/dist/DeliveryReceipt/index.js +1 -1
- package/dist/DocTabsEditor/index.js +7 -6
- package/dist/DownloadButton/index.js +3 -3
- package/dist/{Editor-GIEZ6PPP.js → Editor-YITN2DWX.js} +6 -5
- package/dist/EmojiPicker/EmojiPicker.d.ts +23 -5
- package/dist/EmojiPicker/index.d.ts +1 -1
- package/dist/EmojiPicker/index.js +7 -5
- package/dist/EmojiPicker-V6XM56GJ.css +180 -0
- package/dist/EntityChip/index.js +1 -1
- package/dist/ErrorBoundary/index.js +3 -3
- package/dist/FactList/index.js +2 -2
- package/dist/FileDrop/index.js +3 -3
- package/dist/FilterPill/index.js +3 -3
- package/dist/FollowBanner/index.js +3 -3
- package/dist/HuePicker/index.js +7 -7
- package/dist/IconButton/index.js +2 -2
- package/dist/ImageUpload/index.js +1 -1
- package/dist/InlineEditor/index.js +3 -3
- package/dist/Input/index.js +4 -3
- package/dist/KeyValueRows/index.js +6 -5
- package/dist/Layer/index.d.ts +1 -1
- package/dist/Layer/place.d.ts +6 -0
- package/dist/LinkCard/index.js +1 -1
- package/dist/LinkInterstitial/index.js +5 -5
- package/dist/ListInput/index.js +6 -5
- package/dist/LogoSlot/index.js +4 -4
- package/dist/MarkdownEditor/index.js +7 -7
- package/dist/MemberPicker/index.js +6 -5
- package/dist/MentionMenu/MentionMenu.d.ts +18 -2
- package/dist/MentionMenu/index.d.ts +4 -1
- package/dist/MentionMenu/index.js +2 -1
- package/dist/{MentionMenu-77P7C4F7.css → MentionMenu-AWZSOTNU.css} +45 -1
- package/dist/Menu/Menu.d.ts +13 -1
- package/dist/Menu/index.js +4 -4
- package/dist/{Menu-7AARCFX5.css → Menu-PXOAJ4DP.css} +48 -0
- package/dist/MergeConflicts/index.js +7 -7
- package/dist/MessageActions/MessageActions.d.ts +4 -4
- package/dist/MessageActions/index.js +7 -6
- package/dist/{MessageActions-UGMXBGKY.css → MessageActions-Y2IXY24H.css} +18 -5
- package/dist/Modal/index.js +4 -4
- package/dist/OpenInAppCard/index.js +4 -4
- package/dist/OrgLabel/index.js +1 -1
- package/dist/OrgNode/index.js +1 -1
- package/dist/OrgTable/index.js +11 -10
- package/dist/PeekRail/index.js +4 -4
- package/dist/PeopleRail/index.js +5 -5
- package/dist/PinTile/index.js +3 -3
- package/dist/Popover/Popover.d.ts +4 -2
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-QCINR7WG.css → Popover-EKG6OBZL.css} +5 -0
- package/dist/PresenceStack/index.js +1 -1
- package/dist/PresenterView/index.js +5 -5
- package/dist/Principal/index.js +1 -1
- package/dist/PrincipalPicker/index.js +7 -6
- package/dist/ProposalCard/index.js +8 -7
- package/dist/RailList/index.js +5 -4
- package/dist/ReactionBar/ReactionBar.d.ts +4 -2
- package/dist/ReactionBar/index.js +8 -6
- package/dist/ReceiptStrip/index.js +3 -3
- package/dist/RecordChip/index.js +2 -2
- package/dist/ResultTableCard/index.js +4 -4
- package/dist/RichEditor/index.js +4 -4
- package/dist/RoomRow/index.js +1 -1
- package/dist/SandboxedFrame/index.js +4 -4
- package/dist/SectionFrame/index.js +5 -4
- package/dist/SegmentedControl/index.js +6 -6
- package/dist/SelectionBar/index.js +3 -3
- package/dist/SendButton/index.js +3 -3
- package/dist/ShareDialog/index.js +7 -7
- package/dist/SheetColumnEditor/index.js +11 -10
- package/dist/SheetGrid/index.js +8 -8
- package/dist/SidePanel/SidePanel.d.ts +8 -3
- package/dist/SidePanel/SidePanelBase.d.ts +4 -1
- package/dist/SidePanel/index.d.ts +1 -1
- package/dist/SidePanel/index.js +4 -4
- package/dist/{SidePanel-FVZVNSHI.css → SidePanel-DZ4E5SNP.css} +26 -0
- package/dist/SidebarNav/SidebarNav.d.ts +6 -0
- package/dist/SidebarNav/index.d.ts +2 -2
- package/dist/SidebarNav/index.js +4 -3
- package/dist/{SidebarNav-3SU7UDXK.css → SidebarNav-JCHQXFIM.css} +41 -4
- package/dist/Skeleton/index.js +1 -1
- package/dist/SlideCompare/index.js +3 -3
- package/dist/SlideFilmstrip/index.js +5 -5
- package/dist/SlideNav/index.js +3 -3
- package/dist/StatusLine/index.js +2 -2
- package/dist/Switcher/index.js +9 -8
- package/dist/TableCells/index.js +1 -1
- package/dist/Tabs/index.js +5 -5
- package/dist/TagsInput/index.js +3 -3
- package/dist/ThemeSwitcher/index.js +7 -7
- package/dist/ThemeToggle/index.js +3 -3
- package/dist/ThreadSummary/ThreadSummary.d.ts +2 -0
- package/dist/ThreadSummary/index.d.ts +1 -1
- package/dist/ThreadSummary/index.js +2 -2
- package/dist/{ThreadSummary-CFAHYY57.css → ThreadSummary-2AFEU6NH.css} +2 -1
- package/dist/TimeRangePicker/index.js +10 -9
- package/dist/TimeWindowPicker/index.js +7 -6
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tooltip-PRPBX6OG.css +61 -0
- package/dist/TreeCanvas/index.js +5 -5
- package/dist/TreeGrid/index.js +9 -8
- package/dist/ValueField/index.js +6 -5
- package/dist/VersionCompare/index.js +7 -7
- package/dist/VersionTimeline/index.js +4 -4
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/{chunk-6BVGVAKH.js → chunk-2D7IVGEV.js} +1 -1
- package/dist/{chunk-HY336MR6.js → chunk-2ILQUAB7.js} +1 -1
- package/dist/{chunk-PRZO2LAG.js → chunk-3AUFRPG3.js} +1 -1
- package/dist/{chunk-4ZZ7G3XC.js → chunk-3GF2PTYZ.js} +28 -5
- package/dist/{chunk-IIM6UAJJ.js → chunk-3SAJXMM6.js} +1 -1
- package/dist/{chunk-KRO66LZZ.js → chunk-3UFIYOVD.js} +1 -1
- package/dist/{chunk-K3IJWNHL.js → chunk-3W7NG6ST.js} +2 -2
- package/dist/{chunk-HWTTVN6T.js → chunk-435WY2WT.js} +1 -1
- package/dist/{chunk-G2B4Y67G.js → chunk-45VQPH27.js} +3 -3
- package/dist/chunk-47V3ASMW.js +74 -0
- package/dist/{chunk-NPMMCFKI.js → chunk-4KU5LLXU.js} +1 -1
- package/dist/{chunk-ZFFIUJ4C.js → chunk-4ONGTD7Y.js} +2 -2
- package/dist/{chunk-ET4RCHNJ.js → chunk-4VHRO7HZ.js} +67 -29
- package/dist/{chunk-46BY2WPZ.js → chunk-5CWB52JK.js} +1 -1
- package/dist/{chunk-O73RB4P7.js → chunk-5FOJLJYN.js} +2 -2
- package/dist/{chunk-IGFQ4LWZ.js → chunk-5G3KASPV.js} +3 -3
- package/dist/{chunk-TIOYPPIX.js → chunk-5SBMYPWG.js} +3 -3
- package/dist/{chunk-WUCRLA25.js → chunk-5SMYKL3D.js} +9 -3
- package/dist/{chunk-MNKXYGZ2.js → chunk-5SV47YN7.js} +2 -2
- package/dist/{chunk-EKC4MOGY.js → chunk-5YFQMMTJ.js} +1 -1
- package/dist/{chunk-F3E66TBM.js → chunk-6QLMET36.js} +1 -1
- package/dist/{chunk-OJ3BGBU5.js → chunk-76LJUPDA.js} +2 -2
- package/dist/{chunk-5LBIIEHJ.js → chunk-7GUZSA5U.js} +8 -3
- package/dist/{chunk-HVFN4DJT.js → chunk-7MB7RUZZ.js} +1 -1
- package/dist/{chunk-AXGSKD72.js → chunk-7TLM7E5N.js} +3 -3
- package/dist/{chunk-3R76X3MI.js → chunk-A2TYEOB4.js} +2 -2
- package/dist/{chunk-JNP5EMLV.js → chunk-ANIJQ25E.js} +2 -2
- package/dist/{chunk-4QI7VFLV.js → chunk-AQMB6ONN.js} +6 -6
- package/dist/{chunk-YX5KEKPL.js → chunk-AXMXXAGB.js} +1 -1
- package/dist/{chunk-WM55LPY7.js → chunk-BBE656JU.js} +2 -2
- package/dist/{chunk-WF4Q5LD6.js → chunk-BF2BXM6V.js} +1 -1
- package/dist/{chunk-TIAZSF7H.js → chunk-BGFWCOFR.js} +2 -2
- package/dist/{chunk-YWTZHIKA.js → chunk-BJEWRSV7.js} +1 -1
- package/dist/{chunk-OAP576OR.js → chunk-BLFHFMXQ.js} +1 -1
- package/dist/{chunk-DEIHV2H3.js → chunk-BMTNY3FK.js} +1 -1
- package/dist/{chunk-BUOBTY3X.js → chunk-CHB7T3PT.js} +5 -5
- package/dist/{chunk-WOD6L2DC.js → chunk-CJRWESDZ.js} +1 -1
- package/dist/{chunk-OPX4OGN3.js → chunk-CTIJTW4R.js} +2 -2
- package/dist/{chunk-EJEBRXOF.js → chunk-D7NXK77P.js} +5 -5
- package/dist/{chunk-ZAN7Q4WG.js → chunk-DF5B4QO5.js} +1 -1
- package/dist/{chunk-HUSMU5EL.js → chunk-DKDSBI75.js} +3 -3
- package/dist/{chunk-DEMG2UTW.js → chunk-DRI6OXWY.js} +1 -1
- package/dist/{chunk-PJMDXZHP.js → chunk-DTEDUAEW.js} +1 -1
- package/dist/{chunk-OSKXOCH3.js → chunk-DTZ72KVX.js} +3 -3
- package/dist/{chunk-V5ANQP4E.js → chunk-ECGYBWRI.js} +2 -2
- package/dist/{chunk-NQIWSKQX.js → chunk-ENYB3HIA.js} +3 -3
- package/dist/{chunk-3EXGTJQU.js → chunk-EYY2ZMSY.js} +1 -1
- package/dist/{chunk-K5L7FJTH.js → chunk-FC4T5ILA.js} +1 -1
- package/dist/{chunk-5QKNXTIC.js → chunk-FZY4TTR4.js} +1 -1
- package/dist/{chunk-OTZNIWZA.js → chunk-GBX5Y3P2.js} +1 -1
- package/dist/{chunk-N7CYJVV4.js → chunk-GFOPTRRY.js} +1 -1
- package/dist/{chunk-AWXCILIT.js → chunk-GG5CFBSE.js} +2 -2
- package/dist/{chunk-PH5APLMB.js → chunk-GMQ54OQF.js} +1 -1
- package/dist/{chunk-RBNYJP77.js → chunk-HHRYIXBM.js} +2 -2
- package/dist/{chunk-4SKN3BLH.js → chunk-HXVMXH6U.js} +5 -4
- package/dist/{chunk-LQZMCR2K.js → chunk-I6GVXOHK.js} +1 -1
- package/dist/{chunk-AV5NWTYU.js → chunk-IHJRLVU3.js} +1 -1
- package/dist/{chunk-JJLYGLH6.js → chunk-J4OL6KHY.js} +3 -3
- package/dist/{chunk-VYUEAMA4.js → chunk-KDRJZWE3.js} +3 -1
- package/dist/{chunk-RWUY53VW.js → chunk-KG3PHAUX.js} +3 -3
- package/dist/{chunk-XLJELX5W.js → chunk-KVNVLBCB.js} +2 -2
- package/dist/{chunk-ZQKLFN2J.js → chunk-KYWIUH5R.js} +8 -8
- package/dist/{chunk-T5G5DM3H.js → chunk-L4YD6SVT.js} +1 -1
- package/dist/{chunk-ALGG2HRE.js → chunk-LGJJIPYZ.js} +1 -1
- package/dist/{chunk-6D7GTMNO.js → chunk-LNE5AMFQ.js} +1 -1
- package/dist/{chunk-QAQKJ4PO.js → chunk-LNSAYEOA.js} +1 -1
- package/dist/{chunk-2QLZCD5Q.js → chunk-LSVX4DTF.js} +2 -2
- package/dist/{chunk-FANYWNER.js → chunk-M7EALYXZ.js} +1 -1
- package/dist/{chunk-GA7HSINF.js → chunk-NOP55WRY.js} +108 -45
- package/dist/{chunk-RTHWXAXT.js → chunk-NPPPQSRU.js} +1 -1
- package/dist/{chunk-IOLOWL33.js → chunk-O3DHDBTW.js} +1 -1
- package/dist/{chunk-CUE3WM7L.js → chunk-OKOHQ3E7.js} +1 -1
- package/dist/{chunk-I2FNTMX2.js → chunk-OKPGW76D.js} +1 -1
- package/dist/{chunk-3IYS6YNX.js → chunk-OYV7BFRC.js} +1 -1
- package/dist/{chunk-IVZLFSQS.js → chunk-P366K4RX.js} +5 -4
- package/dist/{chunk-I476JLNZ.js → chunk-P5AOTCGQ.js} +1 -1
- package/dist/{chunk-NIDLT7UM.js → chunk-PBDMJHXV.js} +1 -1
- package/dist/chunk-PJV5HVZY.js +67 -0
- package/dist/{chunk-ZBON36GU.js → chunk-PWB2LWBE.js} +3 -3
- package/dist/chunk-Q5LDZPFF.js +2 -0
- package/dist/{chunk-G32JHH7N.js → chunk-QCJ3UBCZ.js} +3 -3
- package/dist/{chunk-BRJ6LZM2.js → chunk-QFSPIYCM.js} +1 -1
- package/dist/{chunk-AZKGH2UI.js → chunk-QHUKJN33.js} +57 -15
- package/dist/{chunk-IIEDUSMU.js → chunk-QLGZBN6A.js} +6 -6
- package/dist/{chunk-OIF6UMPY.js → chunk-QMEKGAEA.js} +4 -4
- package/dist/{chunk-43UOZIYG.js → chunk-QVNEQSOL.js} +1 -1
- package/dist/{chunk-P3BEB4E6.js → chunk-RHD46WIZ.js} +2 -2
- package/dist/{chunk-TCAX77BH.js → chunk-RTDFRFTF.js} +9 -4
- package/dist/{chunk-HY2JXBPO.js → chunk-SDYLFZKZ.js} +4 -4
- package/dist/{chunk-LYHAR4DX.js → chunk-SJNJBXUA.js} +5 -5
- package/dist/{chunk-G6HS6QA4.js → chunk-SJV7VVSS.js} +3 -3
- package/dist/{chunk-OQO7NSHR.js → chunk-STJPIP3R.js} +1 -1
- package/dist/{chunk-QNSL4JCU.js → chunk-T2RRTICC.js} +4 -4
- package/dist/{chunk-L3G2YQE3.js → chunk-T63HK6T5.js} +1 -1
- package/dist/{chunk-MEAFEAFF.js → chunk-T75L3PFN.js} +1 -1
- package/dist/{chunk-FNKOULI4.js → chunk-TCNTMTPI.js} +2 -2
- package/dist/{chunk-FWDU7E34.js → chunk-TE3OMB3Z.js} +3 -29
- package/dist/{chunk-4JEHXJPO.js → chunk-TP7PRSGX.js} +2 -2
- package/dist/{chunk-5DYV5Q67.js → chunk-TYQJRTTK.js} +1 -1
- package/dist/{chunk-O4J3FUIX.js → chunk-UJ7SHDE7.js} +4 -4
- package/dist/{chunk-43YZWF2B.js → chunk-V6BEBGO3.js} +5 -5
- package/dist/{chunk-YRSNOCFL.js → chunk-VZ42TS3C.js} +3 -3
- package/dist/{chunk-THVGTKST.js → chunk-WEZU4DX2.js} +1 -1
- package/dist/{chunk-ZBV6BNG7.js → chunk-WN3YE3ND.js} +1 -1
- package/dist/{chunk-QHE4CNBM.js → chunk-WNVUN3LJ.js} +1 -1
- package/dist/{chunk-R5OUUSLB.js → chunk-Y36N7TB7.js} +2 -2
- package/dist/{chunk-W4YNOUHF.js → chunk-Y3FLNQEE.js} +4 -4
- package/dist/{chunk-4WOLHRHH.js → chunk-Y4L7WNWU.js} +1 -1
- package/dist/{chunk-RM4PUCDQ.js → chunk-YD5UCBFV.js} +1 -1
- package/dist/{chunk-NVQUEZU5.js → chunk-YE76GTQU.js} +4 -4
- package/dist/{chunk-QHXO5H2S.js → chunk-ZGJCVXFU.js} +3 -3
- package/dist/{chunk-LSOPZVR7.js → chunk-ZJVGVTC3.js} +20 -6
- package/dist/{chunk-YLOQNVR2.js → chunk-ZUFV7753.js} +6 -5
- package/dist/generated/index.js +123 -122
- package/dist/index.js +123 -122
- package/dist/styles.css +435 -70
- package/dist/utils/fieldMirror.d.ts +22 -0
- package/package.json +3 -3
- package/dist/EmojiPicker-W722WJ5M.css +0 -105
- package/dist/Tooltip-LKQF7CE4.css +0 -71
- package/dist/chunk-VZ7DNXCW.js +0 -58
- package/dist/chunk-XETR2N6C.js +0 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hidden mirror of a text field: the styles that decide where its text
|
|
3
|
+
* wraps, and the caret's place measured on such a mirror. Shared by the
|
|
4
|
+
* Textarea's auto-resize and the mention list's caret anchor.
|
|
5
|
+
*/
|
|
6
|
+
/** The text styles a mirror copies so it wraps exactly as the field does. */
|
|
7
|
+
export declare const MIRRORED_TEXT_STYLES: readonly ["boxSizing", "width", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth", "borderStyle", "direction", "fontFamily", "fontSize", "fontStretch", "fontStyle", "fontVariant", "fontWeight", "letterSpacing", "lineHeight", "tabSize", "textIndent", "textTransform", "whiteSpace", "wordBreak", "wordSpacing", "overflowWrap"];
|
|
8
|
+
/** Copies a field's wrapping styles onto its mirror. */
|
|
9
|
+
export declare function copyTextStyles(from: CSSStyleDeclaration, to: HTMLElement): void;
|
|
10
|
+
/** Where a character of a text field starts: px from a box's left and top edges, and the line's height. */
|
|
11
|
+
export interface CaretPoint {
|
|
12
|
+
left: number;
|
|
13
|
+
top: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Where character `index` of a text field starts, measured on a hidden mirror
|
|
18
|
+
* of the field that wraps its text the same way, less the field's scroll. In
|
|
19
|
+
* px from the field's border box, or from `relativeTo`'s when given (the box a
|
|
20
|
+
* `MentionMenu` is placed in, for its `anchor`).
|
|
21
|
+
*/
|
|
22
|
+
export declare function caretPoint(field: HTMLTextAreaElement | HTMLInputElement, index: number, relativeTo?: Element): CaretPoint;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewlethq/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.112.0",
|
|
4
4
|
"description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"clean": "rm -rf dist src/generated"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@crewlethq/icons": "0.
|
|
46
|
-
"@crewlethq/tokens": "0.
|
|
45
|
+
"@crewlethq/icons": "0.112.0",
|
|
46
|
+
"@crewlethq/tokens": "0.112.0",
|
|
47
47
|
"prosemirror-commands": "1.7.2",
|
|
48
48
|
"prosemirror-gapcursor": "1.4.1",
|
|
49
49
|
"prosemirror-history": "1.5.1",
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* A searchable grid of emoji in a popover: the field, then each group under
|
|
3
|
-
* its quiet heading, eight to a row, in a scroller of its own, and a preview
|
|
4
|
-
* line under the grid that is always there, so the panel never changes size.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
.crewlet-emoji-picker__body {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
gap: var(--spacing-2);
|
|
11
|
-
width: 296px;
|
|
12
|
-
max-width: 100%;
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
padding: var(--spacing-2);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.crewlet-emoji-picker__scroll {
|
|
18
|
-
max-height: 240px;
|
|
19
|
-
overflow-y: auto;
|
|
20
|
-
overscroll-behavior: contain;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* A group's heading, in the meta register at the regular weight. */
|
|
24
|
-
.crewlet-emoji-picker__group {
|
|
25
|
-
padding: var(--spacing-2) var(--spacing-1) var(--spacing-1);
|
|
26
|
-
color: var(--color-text-tertiary);
|
|
27
|
-
font-size: var(--font-size-2xs);
|
|
28
|
-
font-weight: var(--font-weight-regular);
|
|
29
|
-
letter-spacing: var(--font-letter-spacing-wide);
|
|
30
|
-
text-transform: uppercase;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.crewlet-emoji-picker__grid {
|
|
34
|
-
display: grid;
|
|
35
|
-
grid-template-columns: repeat(var(--crewlet-emoji-picker-columns), minmax(0, 1fr));
|
|
36
|
-
gap: 2px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.crewlet-emoji-picker__cell {
|
|
40
|
-
aspect-ratio: 1;
|
|
41
|
-
padding: 0;
|
|
42
|
-
border: 0;
|
|
43
|
-
border-radius: var(--radius-sm);
|
|
44
|
-
background: transparent;
|
|
45
|
-
font-size: var(--font-size-lg);
|
|
46
|
-
line-height: 1;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.crewlet-emoji-picker__cell:hover {
|
|
51
|
-
background: var(--color-surface-hover);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* The match Enter picks while searching: the accent's soft fill, which the
|
|
55
|
-
pointer's step does not take away. */
|
|
56
|
-
.crewlet-emoji-picker__cell.is-chosen {
|
|
57
|
-
background: var(--color-brand-accent-soft);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.crewlet-emoji-picker__cell:focus-visible {
|
|
61
|
-
background: var(--color-surface-hover);
|
|
62
|
-
outline: 2px solid var(--color-focus);
|
|
63
|
-
outline-offset: var(--size-focus-ring-inset-offset);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.crewlet-emoji-picker__preview {
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
gap: var(--spacing-2);
|
|
70
|
-
min-height: var(--size-control-md);
|
|
71
|
-
padding: var(--spacing-2) var(--spacing-1) 0;
|
|
72
|
-
border-top: 1px solid var(--color-edge-hairline);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.crewlet-emoji-picker__preview-emoji {
|
|
76
|
-
font-size: var(--font-size-xl);
|
|
77
|
-
line-height: 1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.crewlet-emoji-picker__preview-words {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
min-width: 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.crewlet-emoji-picker__preview-name {
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
color: var(--color-text-primary);
|
|
89
|
-
font-size: var(--font-size-sm);
|
|
90
|
-
font-weight: var(--font-weight-semibold);
|
|
91
|
-
text-overflow: ellipsis;
|
|
92
|
-
white-space: nowrap;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.crewlet-emoji-picker__preview-code,
|
|
96
|
-
.crewlet-emoji-picker__preview-idle {
|
|
97
|
-
color: var(--color-text-tertiary);
|
|
98
|
-
font-size: var(--font-size-xs);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.crewlet-emoji-picker__none {
|
|
102
|
-
margin: var(--spacing-3) var(--spacing-1);
|
|
103
|
-
color: var(--color-text-tertiary);
|
|
104
|
-
font-size: var(--font-size-sm);
|
|
105
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* The tooltip panel.
|
|
3
|
-
*
|
|
4
|
-
* It is placed by arithmetic (see Tooltip.tsx), so this owns what the panel
|
|
5
|
-
* looks like and how it arrives.
|
|
6
|
-
*
|
|
7
|
-
* TWO THINGS ARE DELIBERATE AND LOOK LIKE OVERSIGHTS.
|
|
8
|
-
*
|
|
9
|
-
* It TAKES THE POINTER (`pointer-events: auto`, which the layer host's own
|
|
10
|
-
* children already have). A panel a pointer cannot land on cannot be hovered,
|
|
11
|
-
* and WCAG 2.2's 1.4.13 asks that it can be, so the reader can travel onto it
|
|
12
|
-
* and read the line at their own pace.
|
|
13
|
-
*
|
|
14
|
-
* It is OPAQUE and it is SMALL, but it is not quiet: the ink is the primary
|
|
15
|
-
* step on the panel surface, not a muted one. A hint drawn in a decoration
|
|
16
|
-
* ink is a hint nobody with low vision can read, and the whole point of it is
|
|
17
|
-
* to be read.
|
|
18
|
-
*
|
|
19
|
-
* IT IS DRAWN AS THE SMALLEST MEMBER OF THE OVERLAY FAMILY, on the same panel
|
|
20
|
-
* step as a menu, a popover and a dialog, with the same corner the other small
|
|
21
|
-
* floating objects take. A tooltip is the one surface a reader meets by
|
|
22
|
-
* accident, and a surface that arrives looking like nothing else in the
|
|
23
|
-
* product is one they have to work out before they can read it.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
.crewlet-tooltip {
|
|
27
|
-
position: fixed;
|
|
28
|
-
max-width: 260px;
|
|
29
|
-
padding: var(--spacing-1) var(--spacing-2);
|
|
30
|
-
background: var(--color-surface-subtle);
|
|
31
|
-
color: var(--color-text-primary);
|
|
32
|
-
border: 1px solid var(--color-border-default);
|
|
33
|
-
border-radius: var(--radius-md);
|
|
34
|
-
box-shadow: var(--shadow-md);
|
|
35
|
-
font-size: var(--font-size-xs);
|
|
36
|
-
line-height: var(--font-line-height-snug);
|
|
37
|
-
/* One short line, wrapped rather than cut: a hint that ends in an ellipsis
|
|
38
|
-
is a hint that failed. */
|
|
39
|
-
overflow-wrap: break-word;
|
|
40
|
-
animation: crewlet-tooltip-in var(--motion-duration-base) var(--motion-easing-emphasized);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Inside a LayerHost the panel is absolute in that host's own box. */
|
|
44
|
-
.crewlet-tooltip--in-host {
|
|
45
|
-
position: absolute;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/*
|
|
49
|
-
* The side the tip was placed on is left on the element for anything that has
|
|
50
|
-
* to know which way it went, and it draws nothing: the entrance is a rise
|
|
51
|
-
* rather than a scale now, and a transform-origin under a translate is a
|
|
52
|
-
* declaration that reads as a decision and is not one.
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
/*
|
|
56
|
-
* The same entrance every floating surface here has, at the smallest step: a
|
|
57
|
-
* short rise. A scale was its own gesture for no reason, and next to a menu
|
|
58
|
-
* opening beside it the two read as two different products.
|
|
59
|
-
*/
|
|
60
|
-
@keyframes crewlet-tooltip-in {
|
|
61
|
-
from {
|
|
62
|
-
opacity: 0;
|
|
63
|
-
transform: translateY(var(--spacing-1));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@media (prefers-reduced-motion: reduce) {
|
|
68
|
-
.crewlet-tooltip {
|
|
69
|
-
animation: none;
|
|
70
|
-
}
|
|
71
|
-
}
|
package/dist/chunk-VZ7DNXCW.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { PersonRow } from './chunk-XROJ6XQ3.js';
|
|
2
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './PersonRow-3HOWUD6H.css';
|
|
4
|
-
import './MentionMenu-77P7C4F7.css';
|
|
5
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
var MENTION_MENU_LABELS = {
|
|
8
|
-
hints: ["\u2191\u2193 to move", "Enter or Tab to choose", "Esc to close"]
|
|
9
|
-
};
|
|
10
|
-
function MentionMenu({
|
|
11
|
-
id,
|
|
12
|
-
label,
|
|
13
|
-
options,
|
|
14
|
-
active,
|
|
15
|
-
onPick,
|
|
16
|
-
onHover,
|
|
17
|
-
listRef,
|
|
18
|
-
keyed = true,
|
|
19
|
-
footer,
|
|
20
|
-
labels: overrides,
|
|
21
|
-
className
|
|
22
|
-
}) {
|
|
23
|
-
const labels = overrides ? { ...MENTION_MENU_LABELS, ...overrides } : MENTION_MENU_LABELS;
|
|
24
|
-
const foot = footer === void 0 ? /* @__PURE__ */ jsx("div", { className: "crewlet-mention-menu__footer", children: labels.hints.map((hint) => /* @__PURE__ */ jsx("span", { children: hint }, hint)) }) : footer === null ? null : /* @__PURE__ */ jsx("div", { className: "crewlet-mention-menu__footer", children: footer });
|
|
25
|
-
return /* @__PURE__ */ jsxs("div", { className: cx("crewlet-mention-menu", !keyed && "crewlet-mention-menu--resting", className), children: [
|
|
26
|
-
/* @__PURE__ */ jsx("div", { className: "crewlet-mention-menu__label", "aria-hidden": "true", children: label }),
|
|
27
|
-
/* @__PURE__ */ jsx("ul", { ref: listRef, id, role: "listbox", "aria-label": label, className: "crewlet-mention-menu__list", children: options.map((option, index) => /* @__PURE__ */ jsx(
|
|
28
|
-
PersonRow,
|
|
29
|
-
{
|
|
30
|
-
as: "option",
|
|
31
|
-
id: `${id}-${index}`,
|
|
32
|
-
density: "compact",
|
|
33
|
-
avatar: option.mark,
|
|
34
|
-
name: option.label,
|
|
35
|
-
detail: option.detail,
|
|
36
|
-
meta: option.note,
|
|
37
|
-
selected: index === active,
|
|
38
|
-
highlighted: index === active,
|
|
39
|
-
onMouseDown: (event) => {
|
|
40
|
-
event.preventDefault();
|
|
41
|
-
onPick(option, index);
|
|
42
|
-
},
|
|
43
|
-
onMouseEnter: () => onHover(index)
|
|
44
|
-
},
|
|
45
|
-
option.id
|
|
46
|
-
)) }),
|
|
47
|
-
foot
|
|
48
|
-
] });
|
|
49
|
-
}
|
|
50
|
-
function mentionQuery(text, caret) {
|
|
51
|
-
const before = text.slice(0, Math.max(0, Math.min(caret, text.length)));
|
|
52
|
-
const match = /(^|\s)([@#])([\p{L}\p{N}_-]*)$/u.exec(before);
|
|
53
|
-
if (!match) return null;
|
|
54
|
-
const query = match[3] ?? "";
|
|
55
|
-
return { trigger: match[2], query, start: before.length - query.length - 1 };
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { MENTION_MENU_LABELS, MentionMenu, mentionQuery };
|
package/dist/chunk-XETR2N6C.js
DELETED