@crewlethq/ui 0.172.2 → 0.173.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 +13 -2
- package/dist/AgentHandoffPanel/index.js +12 -12
- package/dist/AgentIdentity/AgentIdentity.d.ts +99 -0
- package/dist/AgentIdentity/AgentIdentitySheet.d.ts +122 -0
- package/dist/AgentIdentity/index.d.ts +6 -0
- package/dist/AgentIdentity/index.js +37 -0
- package/dist/AgentIdentity-KQWGKBNT.css +71 -0
- package/dist/AgentIdentitySheet-D2T7ELGN.css +35 -0
- package/dist/AppShell/index.js +3 -3
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeList/index.js +6 -6
- package/dist/ArtifactBar/index.js +5 -5
- package/dist/ArtifactCard/index.js +7 -7
- package/dist/AuthLayout/index.js +1 -1
- package/dist/AvatarPicker/index.js +7 -7
- package/dist/BriefCard/index.js +4 -4
- package/dist/CheckGrid/index.js +4 -4
- package/dist/Checkbox/index.js +3 -3
- package/dist/ChipField/index.js +2 -2
- package/dist/ColorField/index.js +3 -3
- package/dist/ColorSwatch/index.js +2 -2
- package/dist/Combobox/index.js +4 -4
- package/dist/CommandPalette/index.js +8 -8
- package/dist/CommentThread/index.js +10 -10
- package/dist/Composer/index.js +7 -7
- package/dist/ConfirmField/index.js +3 -3
- package/dist/ContrastHelp/index.js +1 -1
- package/dist/DataGrid/index.js +9 -9
- package/dist/DataTable/index.js +9 -9
- package/dist/DataView/index.js +11 -11
- package/dist/DatasetSource/index.js +3 -3
- package/dist/DeepWorkCard/index.js +5 -5
- package/dist/DocTabsEditor/index.js +8 -8
- package/dist/DockColumn/index.js +1 -1
- package/dist/DurationField/index.js +12 -12
- package/dist/{Editor-B7KMHVA5.js → Editor-MVXYXJLY.js} +4 -4
- package/dist/EmojiPicker/index.js +3 -3
- package/dist/EntityList/index.js +4 -4
- package/dist/GraphCanvas/index.js +1 -1
- package/dist/HuePicker/index.js +5 -5
- package/dist/InlineEditor/index.js +1 -1
- package/dist/Input/index.js +2 -2
- package/dist/KeyValueRows/index.js +5 -5
- package/dist/LinkInterstitial/index.js +1 -1
- package/dist/ListInput/index.js +8 -8
- package/dist/LogoSlot/index.js +2 -2
- package/dist/MarkdownEditor/index.js +5 -5
- package/dist/MemberPicker/index.js +4 -4
- package/dist/MergeConflicts/index.js +5 -5
- package/dist/MessageActions/index.js +4 -4
- package/dist/MoneyField/index.js +3 -3
- package/dist/NumberField/index.js +10 -10
- package/dist/OpenInAppCard/index.js +4 -4
- package/dist/OrgTable/index.js +11 -11
- package/dist/PeekRail/index.js +1 -1
- package/dist/PresetChips/index.js +5 -5
- package/dist/PrincipalPicker/index.js +5 -5
- package/dist/ProposalCard/index.js +14 -14
- package/dist/RailList/index.js +7 -7
- package/dist/ReactionBar/index.js +4 -4
- package/dist/RefusalCard/index.js +4 -4
- package/dist/ResultTableCard/index.js +5 -5
- package/dist/RichEditor/index.js +2 -2
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/ScopeList/ScopeList.d.ts +53 -0
- package/dist/ScopeList/index.d.ts +3 -0
- package/dist/ScopeList/index.js +23 -0
- package/dist/ScopeList-564YHC7Z.css +72 -0
- package/dist/SectionFrame/index.js +3 -3
- package/dist/SegmentedControl/index.js +4 -4
- package/dist/Select/index.js +2 -2
- package/dist/SelectionBar/index.js +2 -2
- package/dist/SendKeys/index.js +2 -2
- package/dist/SettingForm/index.js +5 -5
- package/dist/SettingsTable/index.js +1 -1
- package/dist/SetupWizard/index.js +3 -3
- package/dist/ShareDialog/index.js +10 -10
- package/dist/SheetColumnEditor/index.js +13 -13
- package/dist/SheetGrid/index.js +4 -4
- package/dist/SidebarNav/index.js +2 -2
- package/dist/SlideFilmstrip/index.js +4 -4
- package/dist/StatusCard/index.js +3 -3
- package/dist/Switcher/index.js +8 -8
- package/dist/TableCells/index.js +5 -5
- package/dist/Tabs/index.js +3 -3
- package/dist/TagsInput/index.js +2 -2
- package/dist/ThemeGallery/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +5 -5
- package/dist/ThreadSummary/index.js +3 -3
- package/dist/TimeRangePicker/index.js +11 -11
- package/dist/TimeWindowPicker/index.js +7 -7
- package/dist/ToolCallLog/index.js +5 -5
- package/dist/TreeCanvas/index.js +1 -1
- package/dist/TreeGrid/index.js +10 -10
- package/dist/ValueField/index.js +8 -8
- package/dist/VersionCompare/index.js +5 -5
- package/dist/{chunk-P5DKWJMS.js → chunk-2AC3U3DQ.js} +1 -1
- package/dist/{chunk-E7L4N2PY.js → chunk-32GPM3OE.js} +1 -1
- package/dist/{chunk-ERZ6RXM5.js → chunk-3EVWDE6G.js} +2 -2
- package/dist/{chunk-VQ6BPJIE.js → chunk-3JKNHTOD.js} +1 -1
- package/dist/{chunk-KZS4BOXC.js → chunk-3SJMAV7X.js} +1 -1
- package/dist/{chunk-6D2GT6FR.js → chunk-46MPHLOO.js} +1 -1
- package/dist/{chunk-MYA4J3CW.js → chunk-4Q2YPSTX.js} +1 -1
- package/dist/{chunk-SQX5NRIC.js → chunk-4UBZQ6N6.js} +1 -1
- package/dist/{chunk-D547BNT6.js → chunk-563UNS7A.js} +1 -1
- package/dist/{chunk-4NIIN32I.js → chunk-5CRBQDDG.js} +2 -2
- package/dist/{chunk-EAOB4QGU.js → chunk-5EGST7S2.js} +1 -1
- package/dist/{chunk-Y74VJ4MO.js → chunk-5M6VYJXW.js} +2 -2
- package/dist/{chunk-A3C7WRXS.js → chunk-5OJM2EIY.js} +1 -1
- package/dist/{chunk-L5NEDJC2.js → chunk-6LVS24FG.js} +1 -1
- package/dist/{chunk-N46I6MJG.js → chunk-6MMONW2C.js} +1 -1
- package/dist/{chunk-KAU5SCUQ.js → chunk-6NFJUJRZ.js} +2 -2
- package/dist/{chunk-JBJPBJQC.js → chunk-6NWO46ZX.js} +1 -1
- package/dist/{chunk-YNW3MRJB.js → chunk-6RQDQETJ.js} +2 -2
- package/dist/{chunk-N6DX2HMU.js → chunk-75TKQQPG.js} +2 -2
- package/dist/{chunk-FXWRSFCQ.js → chunk-772DMYGL.js} +1 -1
- package/dist/{chunk-UTWH3INB.js → chunk-7D237RNS.js} +1 -1
- package/dist/{chunk-Q3VLXNY4.js → chunk-7IXPM2BP.js} +2 -2
- package/dist/{chunk-MGNH3R7L.js → chunk-7KFKAGXK.js} +4 -4
- package/dist/{chunk-OGLVYWQ7.js → chunk-ADUMZELH.js} +2 -2
- package/dist/chunk-CKK5OXCO.js +389 -0
- package/dist/{chunk-LM5JYFDV.js → chunk-CVL5DPTA.js} +3 -3
- package/dist/{chunk-FUQT447B.js → chunk-CXN5GSW7.js} +4 -4
- package/dist/{chunk-L4O3X33G.js → chunk-CZLKGR6J.js} +2 -2
- package/dist/{chunk-52DWLGLR.js → chunk-DBA62TC4.js} +1 -1
- package/dist/{chunk-LC3G35W4.js → chunk-DRTN674R.js} +2 -2
- package/dist/{chunk-5CHGZYR4.js → chunk-E5GTHB5O.js} +2 -2
- package/dist/{chunk-LETBMYJG.js → chunk-EQ7OE5MY.js} +2 -2
- package/dist/{chunk-S7PWRGW3.js → chunk-EQFT236C.js} +1 -1
- package/dist/{chunk-YDCH6B75.js → chunk-FN4YNFB3.js} +2 -2
- package/dist/{chunk-NDRLHXSQ.js → chunk-GJLEIHHP.js} +2 -2
- package/dist/{chunk-AYVISS4N.js → chunk-GPYBH5E3.js} +1 -1
- package/dist/{chunk-3WRXDEO6.js → chunk-JZXM2BSZ.js} +1 -1
- package/dist/{chunk-ZBA26C6D.js → chunk-KCDGRJUF.js} +1 -1
- package/dist/{chunk-WPFK5F4Q.js → chunk-KFPESQXJ.js} +4 -4
- package/dist/{chunk-JO3IBN3U.js → chunk-KVXWOCWG.js} +3 -3
- package/dist/{chunk-CZILK3UO.js → chunk-MRYVNY4C.js} +1 -1
- package/dist/{chunk-BO44T7YG.js → chunk-MUP5RPVW.js} +1 -1
- package/dist/chunk-NU5KNA3A.js +92 -0
- package/dist/{chunk-XGEA4WD6.js → chunk-NVQERXLE.js} +1 -1
- package/dist/{chunk-7HZIH6Q2.js → chunk-P3SAKP43.js} +1 -1
- package/dist/{chunk-IZ3RMACF.js → chunk-P4RDLHFP.js} +4 -4
- package/dist/{chunk-55HBOEXP.js → chunk-QAUOY6PU.js} +2 -2
- package/dist/{chunk-7ZCIV3FC.js → chunk-RFGE3ML2.js} +1 -1
- package/dist/{chunk-NRDXN56K.js → chunk-RQATEWU5.js} +2 -2
- package/dist/{chunk-V4FYSUBJ.js → chunk-RZKRHIZN.js} +2 -2
- package/dist/{chunk-FIMLIPFC.js → chunk-UR6LTDKJ.js} +1 -1
- package/dist/{chunk-ULH34BBV.js → chunk-WIMAYZYL.js} +3 -3
- package/dist/{chunk-634JKVMX.js → chunk-XP7Q37EM.js} +1 -1
- package/dist/{chunk-I76M3NYU.js → chunk-YAM24RKM.js} +1 -1
- package/dist/{chunk-5QFS54ET.js → chunk-YXK2CURA.js} +3 -3
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +146 -144
- package/dist/index.js +146 -144
- package/dist/styles.css +187 -0
- package/dist/utils/index.js +1 -1
- package/package.json +3 -3
- package/dist/{chunk-AJFSN642.js → chunk-2ZPHAZMP.js} +1 -1
- package/dist/{chunk-ZFU3NPMI.js → chunk-5S6RR33T.js} +1 -1
- package/dist/{chunk-OYTJ4AWU.js → chunk-5XW77HAT.js} +1 -1
- package/dist/{chunk-FXAV22EB.js → chunk-B7JCU45M.js} +1 -1
- package/dist/{chunk-657WR3MX.js → chunk-D5UVJL4I.js} +1 -1
- package/dist/{chunk-TIOFWBL5.js → chunk-ERMI5DYK.js} +1 -1
- package/dist/{chunk-426IGR6U.js → chunk-FNRI25QN.js} +2 -2
- package/dist/{chunk-BPR6WAZV.js → chunk-J76BZ2T2.js} +0 -0
- package/dist/{chunk-KZ67NXBY.js → chunk-JBDTBWP3.js} +1 -1
- package/dist/{chunk-Z226JFUB.js → chunk-JBIIOFJE.js} +1 -1
- package/dist/{chunk-YMNV6GHW.js → chunk-JG3P2VAZ.js} +1 -1
- package/dist/{chunk-ITFAH735.js → chunk-L4BKQVXX.js} +1 -1
- package/dist/{chunk-R2R7IKQ6.js → chunk-MBIQD6CY.js} +1 -1
- package/dist/{chunk-Z534PYDT.js → chunk-MENY4GKL.js} +1 -1
- package/dist/{chunk-XJEAJ6KD.js → chunk-QEQWDN7K.js} +1 -1
- package/dist/{chunk-3ZBYTHLJ.js → chunk-RS2XGKHL.js} +1 -1
- package/dist/{chunk-HM3HM3OF.js → chunk-U7PELDBC.js} +1 -1
- package/dist/{chunk-DWDL5ZAJ.js → chunk-UZ7JIUAL.js} +1 -1
- package/dist/{chunk-GXX6B5XM.js → chunk-WDYEM22W.js} +2 -2
- package/dist/{chunk-W3PSFOH2.js → chunk-XZOPCQUI.js} +1 -1
- package/dist/{chunk-NFGDQQPN.js → chunk-YDUXCCW7.js} +1 -1
- package/dist/{chunk-ZQE2BHQA.js → chunk-YLZHTTHW.js} +1 -1
- package/dist/{chunk-UZMXC5T6.js → chunk-YUVQUJND.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { richEditorLabels } from './chunk-DGXHQMNP.js';
|
|
2
|
-
import { Callout } from './chunk-I4NRQIRF.js';
|
|
3
2
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
3
|
+
import { Callout } from './chunk-I4NRQIRF.js';
|
|
4
4
|
import { Button } from './chunk-34K3XN47.js';
|
|
5
5
|
import './RichEditor-5CF3QV3J.css';
|
|
6
6
|
import { forwardRef, useState, useEffect } from 'react';
|
|
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var engine = null;
|
|
10
10
|
var loading = null;
|
|
11
11
|
function loadEngine() {
|
|
12
|
-
loading ??= import('./Editor-
|
|
12
|
+
loading ??= import('./Editor-MVXYXJLY.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { PageHeader } from './chunk-FPDIHEM4.js';
|
|
2
2
|
import { FilterPill } from './chunk-UL7X5F5W.js';
|
|
3
|
-
import { DataTable } from './chunk-
|
|
3
|
+
import { DataTable } from './chunk-YXK2CURA.js';
|
|
4
4
|
import { DateTimePicker } from './chunk-5TQRAZQG.js';
|
|
5
5
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
6
6
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
7
7
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
8
8
|
import { RelativeTime } from './chunk-GBKBME7Q.js';
|
|
9
9
|
import { Menu } from './chunk-EUET4PNC.js';
|
|
10
|
-
import { Input } from './chunk-DWDL5ZAJ.js';
|
|
11
10
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
12
11
|
import { Button } from './chunk-34K3XN47.js';
|
|
12
|
+
import { Input } from './chunk-UZ7JIUAL.js';
|
|
13
13
|
import { IconButton } from './chunk-XHTQ4X4P.js';
|
|
14
14
|
import { Count } from './chunk-6YKTRAWI.js';
|
|
15
15
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
1
|
+
import { Select } from './chunk-D5UVJL4I.js';
|
|
2
2
|
import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-EE3DJMSQ.js';
|
|
3
3
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
4
|
-
import { Input } from './chunk-DWDL5ZAJ.js';
|
|
5
4
|
import { Button } from './chunk-34K3XN47.js';
|
|
5
|
+
import { Input } from './chunk-UZ7JIUAL.js';
|
|
6
6
|
import { IconButton } from './chunk-XHTQ4X4P.js';
|
|
7
7
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
8
8
|
import { useFocusModality } from './chunk-4ITETIGZ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-
|
|
1
|
+
import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-46MPHLOO.js';
|
|
2
2
|
import { heldHint } from './chunk-TDFLCUBE.js';
|
|
3
3
|
import { Tooltip } from './chunk-KIPOJKHG.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useScrollerFocus, Modal } from './chunk-HHV5WHTT.js';
|
|
2
1
|
import { useListbox, useHighlightRest } from './chunk-KW7T23RT.js';
|
|
3
|
-
import { Input } from './chunk-DWDL5ZAJ.js';
|
|
4
2
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
5
3
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
|
+
import { useScrollerFocus, Modal } from './chunk-HHV5WHTT.js';
|
|
5
|
+
import { Input } from './chunk-UZ7JIUAL.js';
|
|
6
6
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
7
7
|
import { Count } from './chunk-6YKTRAWI.js';
|
|
8
8
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FormField, Label, Input } from './chunk-DWDL5ZAJ.js';
|
|
2
1
|
import { Button } from './chunk-34K3XN47.js';
|
|
3
|
-
import {
|
|
2
|
+
import { FormField, Label, Input } from './chunk-UZ7JIUAL.js';
|
|
4
3
|
import { announce } from './chunk-WGMKERCR.js';
|
|
4
|
+
import { IconButton } from './chunk-XHTQ4X4P.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './KeyValueRows-US5KW7JK.css';
|
|
7
7
|
import { useId, useRef, useEffect } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SuggestionList, SuggestionRow } from './chunk-IR3OWPAZ.js';
|
|
2
2
|
import { developing } from './chunk-6C7GQOBV.js';
|
|
3
|
-
import { StatusCard } from './chunk-
|
|
3
|
+
import { StatusCard } from './chunk-JBDTBWP3.js';
|
|
4
4
|
import { StatusDot } from './chunk-QRE6JCHS.js';
|
|
5
5
|
import { Button } from './chunk-34K3XN47.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
2
|
-
import { Modal } from './chunk-HHV5WHTT.js';
|
|
3
|
-
import { CopyButton } from './chunk-HUIAYSOC.js';
|
|
4
|
-
import { Callout } from './chunk-I4NRQIRF.js';
|
|
1
|
+
import { Select } from './chunk-D5UVJL4I.js';
|
|
5
2
|
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
6
3
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
4
|
+
import { CopyButton } from './chunk-HUIAYSOC.js';
|
|
5
|
+
import { Modal } from './chunk-HHV5WHTT.js';
|
|
6
|
+
import { Callout } from './chunk-I4NRQIRF.js';
|
|
7
7
|
import { Button } from './chunk-34K3XN47.js';
|
|
8
8
|
import { IconButton } from './chunk-XHTQ4X4P.js';
|
|
9
9
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
2
|
-
import { Combobox } from './chunk-
|
|
3
|
-
import { FormField, Textarea, InputAffix } from './chunk-DWDL5ZAJ.js';
|
|
1
|
+
import { Select } from './chunk-D5UVJL4I.js';
|
|
2
|
+
import { Combobox } from './chunk-5EGST7S2.js';
|
|
4
3
|
import { Button } from './chunk-34K3XN47.js';
|
|
4
|
+
import { FormField, Textarea, InputAffix } from './chunk-UZ7JIUAL.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './Input-YVCNNTYT.css';
|
|
7
7
|
import './VisuallyHidden-OUYVMKEH.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { minorUnits, parseMoney } from './chunk-G6DKKJN6.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
2
|
+
import { Input } from './chunk-UZ7JIUAL.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './MoneyField-4PHZWHJL.css';
|
|
5
5
|
import { forwardRef, useId } from 'react';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Checkbox } from './chunk-NVQERXLE.js';
|
|
2
|
+
import { Text } from './chunk-475DOAWF.js';
|
|
3
|
+
import { Button } from './chunk-34K3XN47.js';
|
|
4
|
+
import { Input } from './chunk-UZ7JIUAL.js';
|
|
5
|
+
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
6
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
|
+
import './ScopeList-564YHC7Z.css';
|
|
8
|
+
import { useId, useState } from 'react';
|
|
9
|
+
import { SearchGlyph } from '@crewlethq/icons/glyphs';
|
|
10
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
var SCOPE_LIST_LABELS = {
|
|
13
|
+
chosen: (chosen, of) => `${chosen.toLocaleString()} of ${of.toLocaleString()} chosen`,
|
|
14
|
+
chooseAll: "Choose all",
|
|
15
|
+
clear: "Clear",
|
|
16
|
+
find: "Find by name or ID",
|
|
17
|
+
noMatch: (term) => `Nothing matches \u201C${term}\u201D.`,
|
|
18
|
+
none: "Nothing to choose from."
|
|
19
|
+
};
|
|
20
|
+
function ScopeList({
|
|
21
|
+
label,
|
|
22
|
+
options,
|
|
23
|
+
value,
|
|
24
|
+
onChange,
|
|
25
|
+
searchFrom = 8,
|
|
26
|
+
bulk = true,
|
|
27
|
+
labels: overrides,
|
|
28
|
+
className
|
|
29
|
+
}) {
|
|
30
|
+
const labels = { ...SCOPE_LIST_LABELS, ...overrides };
|
|
31
|
+
const base = useId();
|
|
32
|
+
const [term, setTerm] = useState("");
|
|
33
|
+
const chosen = new Set(value);
|
|
34
|
+
const searchable = options.length >= searchFrom;
|
|
35
|
+
const find = searchable ? term.trim().toLowerCase() : "";
|
|
36
|
+
const shown = find ? options.filter((o) => `${o.label} ${o.detail ?? ""} ${o.id ?? ""} ${o.value}`.toLowerCase().includes(find)) : options;
|
|
37
|
+
const open = shown.filter((o) => !o.disabled);
|
|
38
|
+
const allShown = open.length > 0 && open.every((o) => chosen.has(o.value));
|
|
39
|
+
const toggleShown = () => {
|
|
40
|
+
if (allShown) {
|
|
41
|
+
const off = new Set(open.map((o) => o.value));
|
|
42
|
+
onChange(value.filter((v) => !off.has(v)));
|
|
43
|
+
} else {
|
|
44
|
+
onChange([...value, ...open.map((o) => o.value).filter((v) => !chosen.has(v))]);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const count = options.filter((o) => chosen.has(o.value)).length;
|
|
48
|
+
return /* @__PURE__ */ jsxs("fieldset", { className: cx("crewlet-scope-list", className), children: [
|
|
49
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { as: "legend", children: label }),
|
|
50
|
+
bulk ? /* @__PURE__ */ jsxs("div", { className: "crewlet-scope-list__bar", children: [
|
|
51
|
+
/* @__PURE__ */ jsx(Text, { variant: "caption", tone: "secondary", children: labels.chosen(count, options.length) }),
|
|
52
|
+
/* @__PURE__ */ jsx(Button, { size: "small", variant: "ghost", disabled: open.length === 0, onClick: toggleShown, children: allShown ? labels.clear : labels.chooseAll })
|
|
53
|
+
] }) : null,
|
|
54
|
+
searchable ? /* @__PURE__ */ jsx(
|
|
55
|
+
Input,
|
|
56
|
+
{
|
|
57
|
+
type: "search",
|
|
58
|
+
"aria-label": labels.find,
|
|
59
|
+
placeholder: labels.find,
|
|
60
|
+
inputSize: "sm",
|
|
61
|
+
width: "full",
|
|
62
|
+
leading: /* @__PURE__ */ jsx(SearchGlyph, { size: "sm" }),
|
|
63
|
+
value: term,
|
|
64
|
+
onChange: (e) => setTerm(e.target.value)
|
|
65
|
+
}
|
|
66
|
+
) : null,
|
|
67
|
+
shown.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "crewlet-scope-list__rows", children: shown.map((o, i) => {
|
|
68
|
+
const on = chosen.has(o.value);
|
|
69
|
+
const idId = o.id && o.id !== o.label ? `${base}-id-${i}` : void 0;
|
|
70
|
+
return /* @__PURE__ */ jsxs("li", { className: "crewlet-scope-list__row", "data-chosen": on || void 0, children: [
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
Checkbox,
|
|
73
|
+
{
|
|
74
|
+
className: "crewlet-scope-list__check",
|
|
75
|
+
label: o.label,
|
|
76
|
+
description: o.detail || o.disabled && o.disabledReason ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
77
|
+
o.detail ? /* @__PURE__ */ jsx("span", { className: "crewlet-scope-list__detail", children: o.detail }) : null,
|
|
78
|
+
o.disabled && o.disabledReason ? /* @__PURE__ */ jsx("span", { children: o.disabledReason }) : null
|
|
79
|
+
] }) : void 0,
|
|
80
|
+
checked: on,
|
|
81
|
+
disabled: o.disabled,
|
|
82
|
+
"aria-describedby": idId,
|
|
83
|
+
onCheckedChange: (next) => onChange(next ? [...value, o.value] : value.filter((v) => v !== o.value))
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
idId ? /* @__PURE__ */ jsx(Text, { id: idId, variant: "caption", tone: "tertiary", mono: true, className: "crewlet-scope-list__id", children: o.id }) : null
|
|
87
|
+
] }, o.value);
|
|
88
|
+
}) }) : /* @__PURE__ */ jsx(Text, { as: "p", variant: "caption", tone: "secondary", className: "crewlet-scope-list__empty", children: find ? labels.noMatch(term.trim()) : labels.none })
|
|
89
|
+
] });
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { SCOPE_LIST_LABELS, ScopeList };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DiffView } from './chunk-4YLN5QVL.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-JZXM2BSZ.js';
|
|
3
3
|
import { EmptyState } from './chunk-HG7J6I65.js';
|
|
4
4
|
import { useHeadingLevel, headingTag, nextHeadingLevel, HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Modal } from './chunk-HHV5WHTT.js';
|
|
2
1
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
3
2
|
import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
|
|
4
3
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
5
4
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
6
|
-
import { Text } from './chunk-475DOAWF.js';
|
|
7
|
-
import { Input } from './chunk-DWDL5ZAJ.js';
|
|
8
5
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
6
|
+
import { Modal } from './chunk-HHV5WHTT.js';
|
|
7
|
+
import { Text } from './chunk-475DOAWF.js';
|
|
8
|
+
import { Input } from './chunk-UZ7JIUAL.js';
|
|
9
|
+
import { announce } from './chunk-WGMKERCR.js';
|
|
9
10
|
import { focusables, isComposing } from './chunk-EDPMHSLZ.js';
|
|
10
11
|
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
11
|
-
import { announce } from './chunk-WGMKERCR.js';
|
|
12
12
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
13
13
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
14
14
|
import './Switcher-MWHFBIWS.css';
|
|
@@ -3,9 +3,9 @@ import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
|
3
3
|
import { RelativeTime } from './chunk-GBKBME7Q.js';
|
|
4
4
|
import { Card } from './chunk-5Y76EWDZ.js';
|
|
5
5
|
import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
|
|
6
|
-
import { Checkbox } from './chunk-XGEA4WD6.js';
|
|
7
|
-
import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
|
|
8
6
|
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
7
|
+
import { Checkbox } from './chunk-NVQERXLE.js';
|
|
8
|
+
import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
|
|
9
9
|
import { AvatarStack } from './chunk-JWHXDVN5.js';
|
|
10
10
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
11
11
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PresetChips } from './chunk-
|
|
2
|
-
import { Input } from './chunk-
|
|
1
|
+
import { PresetChips } from './chunk-KCDGRJUF.js';
|
|
2
|
+
import { Input } from './chunk-UZ7JIUAL.js';
|
|
3
3
|
import { useFieldError } from './chunk-JLKO7PSK.js';
|
|
4
4
|
import { IconButton } from './chunk-XHTQ4X4P.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HuePicker } from './chunk-
|
|
1
|
+
import { HuePicker } from './chunk-YAM24RKM.js';
|
|
2
2
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
3
|
-
import { CharacterPicker } from './chunk-CBUAKPF7.js';
|
|
4
3
|
import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
4
|
+
import { CharacterPicker } from './chunk-CBUAKPF7.js';
|
|
5
5
|
import { Avatar } from './chunk-YMFFGPFE.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './AvatarPicker-POOJUOKC.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
2
|
-
import { typedNumber, NumberField } from './chunk-
|
|
3
|
-
import { PresetChips } from './chunk-
|
|
1
|
+
import { Select } from './chunk-D5UVJL4I.js';
|
|
2
|
+
import { typedNumber, NumberField } from './chunk-RQATEWU5.js';
|
|
3
|
+
import { PresetChips } from './chunk-KCDGRJUF.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './DurationField-TJFIAUMW.css';
|
|
6
6
|
import { useId } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeHex, parseColourInput } from './chunk-7W3LYIOC.js';
|
|
2
|
-
import { FormField, Input, InputAffix } from './chunk-
|
|
2
|
+
import { FormField, Input, InputAffix } from './chunk-UZ7JIUAL.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './ColorField-2OIOWT3Z.css';
|
|
5
5
|
import { useId, useState } from 'react';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Modal } from './chunk-HHV5WHTT.js';
|
|
2
|
-
import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
3
1
|
import { EmptyValue } from './chunk-WGLOH33S.js';
|
|
4
2
|
import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
|
|
5
|
-
import { Checkbox } from './chunk-XGEA4WD6.js';
|
|
6
3
|
import { Menu } from './chunk-EUET4PNC.js';
|
|
4
|
+
import { Checkbox } from './chunk-NVQERXLE.js';
|
|
5
|
+
import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
6
|
+
import { Modal } from './chunk-HHV5WHTT.js';
|
|
7
7
|
import { Button } from './chunk-34K3XN47.js';
|
|
8
8
|
import { IconButton } from './chunk-XHTQ4X4P.js';
|
|
9
9
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
@@ -4,6 +4,7 @@ export * from '../ActionCard/index.js';
|
|
|
4
4
|
export * from '../ActivityLine/index.js';
|
|
5
5
|
export * from '../AddPill/index.js';
|
|
6
6
|
export * from '../AgentHandoffPanel/index.js';
|
|
7
|
+
export * from '../AgentIdentity/index.js';
|
|
7
8
|
export * from '../Announcer/index.js';
|
|
8
9
|
export * from '../AppShell/index.js';
|
|
9
10
|
export * from '../ArrangeBoard/index.js';
|
|
@@ -206,6 +207,7 @@ export * from '../RichEditorMarkdown/index.js';
|
|
|
206
207
|
export * from '../RoomRow/index.js';
|
|
207
208
|
export * from '../RunChip/index.js';
|
|
208
209
|
export * from '../SandboxedFrame/index.js';
|
|
210
|
+
export * from '../ScopeList/index.js';
|
|
209
211
|
export * from '../SearchTrigger/index.js';
|
|
210
212
|
export * from '../Section/index.js';
|
|
211
213
|
export * from '../SectionFrame/index.js';
|