@crewlethq/ui 0.150.1 → 0.151.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 +8 -0
- package/dist/AgentHandoffPanel/index.js +11 -11
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeList/index.js +6 -6
- package/dist/ArtifactBar/index.js +4 -4
- package/dist/ArtifactCard/index.js +6 -6
- package/dist/ArtifactPanel/index.js +3 -3
- package/dist/AttentionList/index.js +5 -4
- package/dist/AuthLayout/index.js +1 -1
- package/dist/AvatarPicker/index.js +6 -6
- package/dist/BriefCard/index.js +3 -3
- package/dist/Callout/Callout.d.ts +16 -2
- package/dist/Callout/index.js +1 -1
- package/dist/{Callout-WLZKAFPT.css → Callout-JGEIJSDG.css} +60 -0
- package/dist/CheckGrid/index.js +5 -5
- package/dist/Checkbox/index.js +4 -4
- package/dist/ChipField/index.js +2 -2
- package/dist/ColorField/index.js +4 -4
- package/dist/Combobox/index.js +4 -4
- package/dist/CommandPalette/index.js +6 -6
- package/dist/CommentThread/index.js +7 -7
- package/dist/Composer/index.js +4 -4
- package/dist/ConfirmField/index.js +4 -4
- package/dist/DataGrid/index.js +6 -6
- package/dist/DataTable/index.js +7 -7
- package/dist/DataView/index.js +9 -9
- package/dist/DatasetSource/index.js +1 -1
- package/dist/DeepWorkCard/index.js +4 -4
- package/dist/DocTabsEditor/index.js +6 -6
- package/dist/DurationField/index.js +10 -10
- package/dist/EditingStatus/index.js +2 -2
- package/dist/{Editor-XAJF2WQ3.js → Editor-LGZMJEUD.js} +5 -5
- package/dist/EmojiPicker/index.js +4 -4
- package/dist/EntityList/index.js +1 -1
- package/dist/FollowBanner/index.js +2 -2
- package/dist/HuePicker/index.js +4 -4
- package/dist/InboxList/index.js +2 -2
- package/dist/InlineEditor/index.js +3 -3
- package/dist/Input/index.js +3 -3
- package/dist/KeyValueRows/index.js +4 -4
- package/dist/LinkInterstitial/index.js +4 -4
- package/dist/ListInput/index.js +5 -5
- package/dist/MarkdownEditor/index.js +4 -4
- package/dist/MemberPicker/index.js +5 -5
- package/dist/MergeConflicts/index.js +4 -4
- package/dist/MessageActions/index.js +5 -5
- package/dist/Modal/index.js +2 -2
- package/dist/NoticeList/NoticeList.d.ts +8 -1
- package/dist/NoticeList/groupNotices.d.ts +1 -1
- package/dist/NoticeList/index.d.ts +1 -0
- package/dist/NoticeList/index.js +5 -2
- package/dist/{NoticeList-LD5APCDU.css → NoticeList-GHCJRR3Z.css} +93 -0
- package/dist/NumberField/index.js +9 -9
- package/dist/OpenInAppCard/index.js +4 -4
- package/dist/OrgTable/index.js +8 -8
- package/dist/PeopleRail/index.js +2 -2
- package/dist/PresetChips/index.js +4 -4
- package/dist/PrincipalPicker/index.js +5 -5
- package/dist/ProposalCard/index.js +9 -9
- package/dist/RailList/index.js +2 -2
- package/dist/ReactionBar/index.js +5 -5
- package/dist/ReadingPane/index.js +2 -2
- package/dist/RefusalCard/index.js +1 -1
- package/dist/Reorder/index.js +2 -2
- package/dist/ResultTableCard/index.js +3 -3
- package/dist/RichEditor/index.js +2 -2
- package/dist/RunChip/index.js +1 -1
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SegmentedControl/index.js +3 -3
- package/dist/SelectionBar/index.js +2 -2
- package/dist/SettingForm/index.js +4 -4
- package/dist/SettingsTable/index.js +1 -1
- package/dist/SetupWizard/index.js +4 -4
- package/dist/ShareDialog/index.js +4 -4
- package/dist/SheetColumnEditor/index.js +10 -10
- package/dist/SheetGrid/index.js +3 -3
- package/dist/SidePanel/index.js +2 -2
- package/dist/SlideFilmstrip/index.js +3 -3
- package/dist/StatusCard/index.js +1 -1
- package/dist/Switcher/index.js +5 -5
- package/dist/TableCells/index.js +1 -1
- package/dist/Tabs/index.js +2 -2
- package/dist/TagsInput/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +4 -4
- package/dist/TimeRangePicker/index.js +10 -10
- package/dist/TimeWindowPicker/index.js +4 -4
- package/dist/TreeGrid/index.js +7 -7
- package/dist/ValueField/index.js +5 -5
- package/dist/VersionCompare/index.js +6 -6
- package/dist/{chunk-ABWPMBMX.js → chunk-27NS67UI.js} +1 -1
- package/dist/{chunk-FWXAPOMM.js → chunk-27ZF7D3C.js} +1 -1
- package/dist/{chunk-VZWRSV4M.js → chunk-3Q5USPLM.js} +1 -1
- package/dist/{chunk-B4QF35QY.js → chunk-4DUK2TC4.js} +1 -1
- package/dist/{chunk-VI2ZUOP7.js → chunk-5DLBGF6I.js} +2 -2
- package/dist/{chunk-UR3UUHPC.js → chunk-5VTJOVK7.js} +2 -2
- package/dist/{chunk-OESG3U7F.js → chunk-6BGD32C5.js} +3 -3
- package/dist/{chunk-C7BK32JK.js → chunk-6QWSGM4W.js} +1 -1
- package/dist/{chunk-GVD7GVPM.js → chunk-7CVV3DQC.js} +1 -1
- package/dist/{chunk-BCOTJM4W.js → chunk-7FY7L6WD.js} +3 -3
- package/dist/{chunk-SG3XSUJ5.js → chunk-7XE5TC7X.js} +2 -2
- package/dist/{chunk-MALV624H.js → chunk-BRMJPZC4.js} +1 -1
- package/dist/{chunk-WTWYN7Z5.js → chunk-CA62YCFK.js} +1 -1
- package/dist/{chunk-2QPELDAA.js → chunk-CHUFHUQE.js} +1 -1
- package/dist/{chunk-7TITGQ3A.js → chunk-CKNDBAQ7.js} +2 -2
- package/dist/chunk-CWACQEPP.js +118 -0
- package/dist/{chunk-Q5OB4LBX.js → chunk-DDGHRDGV.js} +2 -2
- package/dist/chunk-E2XGQAHV.js +184 -0
- package/dist/{chunk-VZOGZZCA.js → chunk-E3JUS3CR.js} +1 -1
- package/dist/{chunk-SM7NURKY.js → chunk-EDQHZOU3.js} +2 -2
- package/dist/{chunk-YLDZ3TXH.js → chunk-F6OYNO7O.js} +1 -1
- package/dist/{chunk-OIX7B57V.js → chunk-FCRJAFTU.js} +3 -3
- package/dist/{chunk-SZH7MLBY.js → chunk-FMKQSDBQ.js} +1 -1
- package/dist/{chunk-ANXCMHTP.js → chunk-GMXOZEF5.js} +2 -2
- package/dist/{chunk-3ZSKFZP3.js → chunk-HIDOUXLD.js} +1 -1
- package/dist/{chunk-HJ6ZY4UX.js → chunk-HXAPC3AJ.js} +1 -1
- package/dist/{chunk-BC4OVFBQ.js → chunk-JUZKRHQB.js} +2 -2
- package/dist/{chunk-NCQBZ7FU.js → chunk-M4VA76JF.js} +3 -3
- package/dist/{chunk-LMWDWGPE.js → chunk-MUBJN75T.js} +1 -1
- package/dist/{chunk-7NEHBDNS.js → chunk-N3LAAA4R.js} +2 -2
- package/dist/{chunk-JGJSCWZY.js → chunk-N3R2POGO.js} +2 -2
- package/dist/{chunk-TYZSARP5.js → chunk-NG6GEBSJ.js} +1 -1
- package/dist/{chunk-YQHSUUMN.js → chunk-O2J5PSWI.js} +3 -3
- package/dist/{chunk-T2457TRX.js → chunk-ODN3LSYW.js} +1 -1
- package/dist/{chunk-6DL4HM7T.js → chunk-OMVGWZ3V.js} +1 -1
- package/dist/{chunk-CFSPFFHJ.js → chunk-PW6QXVIX.js} +3 -3
- package/dist/{chunk-PQDMYIEJ.js → chunk-Q3SHCEXN.js} +2 -2
- package/dist/{chunk-CUU24MKQ.js → chunk-QRUQOITJ.js} +1 -1
- package/dist/{chunk-PN6VKDRF.js → chunk-RNVPYDRQ.js} +1 -1
- package/dist/{chunk-MWAQEHAF.js → chunk-RUKSDKG5.js} +2 -2
- package/dist/{chunk-S7TZH45K.js → chunk-S4ADDFRT.js} +2 -2
- package/dist/{chunk-2LTJUWCR.js → chunk-TPABM6DW.js} +2 -2
- package/dist/{chunk-KCFF2MBD.js → chunk-U3ZUZ7VU.js} +4 -4
- package/dist/{chunk-2IOI52YU.js → chunk-V67VL3WD.js} +1 -1
- package/dist/{chunk-ZEKRJMX5.js → chunk-VXTRPLNB.js} +4 -4
- package/dist/{chunk-6VSR7TW7.js → chunk-WAF36OFS.js} +2 -2
- package/dist/{chunk-5K7D64VG.js → chunk-X5ZUDJNK.js} +1 -1
- package/dist/{chunk-QS5M3A4I.js → chunk-YAUAMQOP.js} +3 -2
- package/dist/{chunk-K7C4BIX6.js → chunk-YMBXTGFC.js} +1 -1
- package/dist/{chunk-PMS3TIU2.js → chunk-YRNIPS4M.js} +2 -2
- package/dist/{chunk-UH6B2HTX.js → chunk-YWPUT6JQ.js} +1 -1
- package/dist/{chunk-ROE6HKEI.js → chunk-Z6OZNSHF.js} +1 -1
- package/dist/{chunk-SIM6FR5B.js → chunk-ZAQ7CEYN.js} +1 -1
- package/dist/{chunk-KY6W76V3.js → chunk-ZNEMXLTY.js} +1 -1
- package/dist/generated/index.js +116 -116
- package/dist/index.js +116 -116
- package/dist/styles.css +155 -2
- package/dist/utils/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-7J2RIAZ4.js +0 -91
- package/dist/chunk-UEO3A76N.js +0 -62
- package/dist/{chunk-R76HBPY5.js → chunk-2DZV4PHK.js} +1 -1
- package/dist/{chunk-DZPT7P2I.js → chunk-3EL3IF3W.js} +1 -1
- package/dist/{chunk-DHYJNBWC.js → chunk-3OZPHFDT.js} +1 -1
- package/dist/{chunk-HKRNKAHN.js → chunk-7C6NHVMX.js} +1 -1
- package/dist/{chunk-73XXYQC7.js → chunk-7PK2Z5JY.js} +1 -1
- package/dist/{chunk-PWRYYOQ4.js → chunk-DGB7R42F.js} +1 -1
- package/dist/{chunk-NIOE6ZAL.js → chunk-JMBPMSNI.js} +1 -1
- package/dist/{chunk-6N53ZWRM.js → chunk-KRF3GQ63.js} +1 -1
- package/dist/{chunk-6VWBIHSJ.js → chunk-UMEK5DHS.js} +1 -1
- package/dist/{chunk-V3RQYIZO.js → chunk-XJU53WMW.js} +1 -1
- package/dist/{chunk-GTAAOGDQ.js → chunk-XQMRSL7Z.js} +2 -2
- package/dist/{chunk-LXPA2SRT.js → chunk-XZ47PWVD.js} +1 -1
- package/dist/{chunk-H5CN7YWD.js → chunk-YUW4DD2Z.js} +1 -1
- package/dist/{chunk-EDUK7DD5.js → chunk-Z7BA2EVV.js} +1 -1
- package/dist/{chunk-RJDRNXDB.js → chunk-ZC73GPA3.js} +1 -1
package/dist/TagsInput/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export { TagsInput } from '../chunk-
|
|
1
|
+
export { TagsInput } from '../chunk-ZC73GPA3.js';
|
|
2
2
|
import '../chunk-KW7T23RT.js';
|
|
3
3
|
import '../chunk-SJ3EUCFD.js';
|
|
4
4
|
import '../chunk-QRE6JCHS.js';
|
|
5
|
-
import '../chunk-WGMKERCR.js';
|
|
6
5
|
import '../chunk-KM5OKCW6.js';
|
|
7
6
|
import '../chunk-TDFLCUBE.js';
|
|
8
7
|
import '../chunk-BFZAGIXR.js';
|
|
@@ -11,5 +10,6 @@ import '../chunk-HTS5RJ7S.js';
|
|
|
11
10
|
import '../chunk-AVJKMQXK.js';
|
|
12
11
|
import '../chunk-EDPMHSLZ.js';
|
|
13
12
|
import '../chunk-4ITETIGZ.js';
|
|
13
|
+
import '../chunk-WGMKERCR.js';
|
|
14
14
|
import '../chunk-RRRK2KB6.js';
|
|
15
15
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export { DensitySwitcher, ThemeSwitcher } from '../chunk-
|
|
1
|
+
export { DensitySwitcher, ThemeSwitcher } from '../chunk-ODN3LSYW.js';
|
|
2
2
|
export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from '../chunk-Z24ZUSTX.js';
|
|
3
3
|
export { DENSITY_PREFERENCES, PALETTE_ID, THEME_PREFERENCES, applyDensity, applyPalette, applyTheme, isDensityPreference, isPaletteId, isThemePreference } from '../chunk-ZXXDZJQN.js';
|
|
4
4
|
import '../chunk-B3UJKLVI.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-GMXOZEF5.js';
|
|
6
|
+
import '../chunk-XJU53WMW.js';
|
|
7
7
|
import '../chunk-7F3OPUM5.js';
|
|
8
8
|
import '../chunk-QRE6JCHS.js';
|
|
9
|
-
import '../chunk-Y5CMDLQM.js';
|
|
10
9
|
import '../chunk-ZMZNKDPO.js';
|
|
11
10
|
import '../chunk-IMF3CPTY.js';
|
|
12
11
|
import '../chunk-XSPCITPN.js';
|
|
@@ -19,5 +18,6 @@ import '../chunk-HTS5RJ7S.js';
|
|
|
19
18
|
import '../chunk-AVJKMQXK.js';
|
|
20
19
|
import '../chunk-EDPMHSLZ.js';
|
|
21
20
|
import '../chunk-4ITETIGZ.js';
|
|
21
|
+
import '../chunk-Y5CMDLQM.js';
|
|
22
22
|
import '../chunk-RRRK2KB6.js';
|
|
23
23
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-VXTRPLNB.js';
|
|
2
|
+
import '../chunk-7PK2Z5JY.js';
|
|
3
|
+
import '../chunk-CWACQEPP.js';
|
|
4
4
|
import '../chunk-B3UJKLVI.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-GMXOZEF5.js';
|
|
6
|
+
import '../chunk-XJU53WMW.js';
|
|
7
7
|
import '../chunk-7F3OPUM5.js';
|
|
8
8
|
import '../chunk-QRE6JCHS.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-ZMZNKDPO.js';
|
|
10
|
+
import '../chunk-XQMRSL7Z.js';
|
|
10
11
|
import '../chunk-NICEDVZM.js';
|
|
11
12
|
import '../chunk-JLKO7PSK.js';
|
|
12
13
|
import '../chunk-PJV5HVZY.js';
|
|
13
14
|
import '../chunk-TEXK4RK6.js';
|
|
14
|
-
import '../chunk-Y5CMDLQM.js';
|
|
15
|
-
import '../chunk-PQADV6P6.js';
|
|
16
|
-
import '../chunk-WGMKERCR.js';
|
|
17
|
-
import '../chunk-ZMZNKDPO.js';
|
|
18
15
|
import '../chunk-IMF3CPTY.js';
|
|
19
16
|
import '../chunk-XSPCITPN.js';
|
|
20
17
|
import '../chunk-2YTOOH3A.js';
|
|
@@ -26,5 +23,8 @@ import '../chunk-HTS5RJ7S.js';
|
|
|
26
23
|
import '../chunk-AVJKMQXK.js';
|
|
27
24
|
import '../chunk-EDPMHSLZ.js';
|
|
28
25
|
import '../chunk-4ITETIGZ.js';
|
|
26
|
+
import '../chunk-Y5CMDLQM.js';
|
|
27
|
+
import '../chunk-PQADV6P6.js';
|
|
28
|
+
import '../chunk-WGMKERCR.js';
|
|
29
29
|
import '../chunk-RRRK2KB6.js';
|
|
30
30
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-
|
|
1
|
+
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-F6OYNO7O.js';
|
|
2
2
|
import '../chunk-657WR3MX.js';
|
|
3
3
|
import '../chunk-KW7T23RT.js';
|
|
4
4
|
import '../chunk-EE3DJMSQ.js';
|
|
5
5
|
import '../chunk-AJFA2XDQ.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-XQMRSL7Z.js';
|
|
7
7
|
import '../chunk-NICEDVZM.js';
|
|
8
8
|
import '../chunk-JLKO7PSK.js';
|
|
9
9
|
import '../chunk-PJV5HVZY.js';
|
|
10
10
|
import '../chunk-TEXK4RK6.js';
|
|
11
|
-
import '../chunk-PQADV6P6.js';
|
|
12
|
-
import '../chunk-WGMKERCR.js';
|
|
13
11
|
import '../chunk-IMF3CPTY.js';
|
|
14
12
|
import '../chunk-XSPCITPN.js';
|
|
15
13
|
import '../chunk-2YTOOH3A.js';
|
|
@@ -21,5 +19,7 @@ import '../chunk-HTS5RJ7S.js';
|
|
|
21
19
|
import '../chunk-AVJKMQXK.js';
|
|
22
20
|
import '../chunk-EDPMHSLZ.js';
|
|
23
21
|
import '../chunk-4ITETIGZ.js';
|
|
22
|
+
import '../chunk-PQADV6P6.js';
|
|
23
|
+
import '../chunk-WGMKERCR.js';
|
|
24
24
|
import '../chunk-RRRK2KB6.js';
|
|
25
25
|
import '../chunk-ODEQTPFM.js';
|
package/dist/TreeGrid/index.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
export { TreeGrid } from '../chunk-
|
|
1
|
+
export { TreeGrid } from '../chunk-RUKSDKG5.js';
|
|
2
2
|
import '../chunk-MY374UUD.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-Q3SHCEXN.js';
|
|
4
4
|
import '../chunk-HU56GCZ7.js';
|
|
5
5
|
import '../chunk-CUEPPDBC.js';
|
|
6
|
-
import '../chunk-NIOE6ZAL.js';
|
|
7
6
|
import '../chunk-WFAJYBLX.js';
|
|
8
7
|
import '../chunk-WSIJDWUG.js';
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-JMBPMSNI.js';
|
|
9
|
+
import '../chunk-BRMJPZC4.js';
|
|
10
10
|
import '../chunk-PPUR46MK.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-XQMRSL7Z.js';
|
|
12
12
|
import '../chunk-NICEDVZM.js';
|
|
13
13
|
import '../chunk-JLKO7PSK.js';
|
|
14
14
|
import '../chunk-PJV5HVZY.js';
|
|
15
15
|
import '../chunk-TEXK4RK6.js';
|
|
16
|
-
import '../chunk-PQADV6P6.js';
|
|
17
|
-
import '../chunk-WGMKERCR.js';
|
|
18
16
|
import '../chunk-SK4BIFTG.js';
|
|
19
17
|
import '../chunk-COS6LJ4K.js';
|
|
20
18
|
import '../chunk-IMF3CPTY.js';
|
|
@@ -27,5 +25,7 @@ import '../chunk-HTS5RJ7S.js';
|
|
|
27
25
|
import '../chunk-AVJKMQXK.js';
|
|
28
26
|
import '../chunk-EDPMHSLZ.js';
|
|
29
27
|
import '../chunk-4ITETIGZ.js';
|
|
28
|
+
import '../chunk-PQADV6P6.js';
|
|
29
|
+
import '../chunk-WGMKERCR.js';
|
|
30
30
|
import '../chunk-RRRK2KB6.js';
|
|
31
31
|
import '../chunk-ODEQTPFM.js';
|
package/dist/ValueField/index.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-
|
|
1
|
+
export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-TPABM6DW.js';
|
|
2
2
|
import '../chunk-657WR3MX.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-Z6OZNSHF.js';
|
|
4
4
|
import '../chunk-KW7T23RT.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-XQMRSL7Z.js';
|
|
6
6
|
import '../chunk-NICEDVZM.js';
|
|
7
7
|
import '../chunk-JLKO7PSK.js';
|
|
8
8
|
import '../chunk-PJV5HVZY.js';
|
|
9
9
|
import '../chunk-TEXK4RK6.js';
|
|
10
|
-
import '../chunk-PQADV6P6.js';
|
|
11
|
-
import '../chunk-WGMKERCR.js';
|
|
12
10
|
import '../chunk-2YTOOH3A.js';
|
|
13
11
|
import '../chunk-KM5OKCW6.js';
|
|
14
12
|
import '../chunk-TDFLCUBE.js';
|
|
@@ -18,5 +16,7 @@ import '../chunk-HTS5RJ7S.js';
|
|
|
18
16
|
import '../chunk-AVJKMQXK.js';
|
|
19
17
|
import '../chunk-EDPMHSLZ.js';
|
|
20
18
|
import '../chunk-4ITETIGZ.js';
|
|
19
|
+
import '../chunk-PQADV6P6.js';
|
|
20
|
+
import '../chunk-WGMKERCR.js';
|
|
21
21
|
import '../chunk-RRRK2KB6.js';
|
|
22
22
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-
|
|
1
|
+
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-OMVGWZ3V.js';
|
|
2
2
|
import '../chunk-F4CM5KD3.js';
|
|
3
3
|
import '../chunk-B3UJKLVI.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-GMXOZEF5.js';
|
|
5
|
+
import '../chunk-XJU53WMW.js';
|
|
6
6
|
import '../chunk-7F3OPUM5.js';
|
|
7
7
|
import '../chunk-QRE6JCHS.js';
|
|
8
|
-
import '../chunk-PPUR46MK.js';
|
|
9
|
-
import '../chunk-Y5CMDLQM.js';
|
|
10
|
-
import '../chunk-PQADV6P6.js';
|
|
11
8
|
import '../chunk-ZMZNKDPO.js';
|
|
9
|
+
import '../chunk-PPUR46MK.js';
|
|
12
10
|
import '../chunk-IMF3CPTY.js';
|
|
13
11
|
import '../chunk-XSPCITPN.js';
|
|
14
12
|
import '../chunk-2YTOOH3A.js';
|
|
@@ -20,5 +18,7 @@ import '../chunk-HTS5RJ7S.js';
|
|
|
20
18
|
import '../chunk-AVJKMQXK.js';
|
|
21
19
|
import '../chunk-EDPMHSLZ.js';
|
|
22
20
|
import '../chunk-4ITETIGZ.js';
|
|
21
|
+
import '../chunk-Y5CMDLQM.js';
|
|
22
|
+
import '../chunk-PQADV6P6.js';
|
|
23
23
|
import '../chunk-RRRK2KB6.js';
|
|
24
24
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-
|
|
1
|
+
import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-YMBXTGFC.js';
|
|
2
2
|
import { heldHint } from './chunk-TDFLCUBE.js';
|
|
3
3
|
import { Tooltip } from './chunk-BFZAGIXR.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RefusalStrip, ReceiptStrip } from './chunk-OAD4AXYJ.js';
|
|
2
2
|
import { ChangeList } from './chunk-NB53SAL4.js';
|
|
3
3
|
import { StatusCard } from './chunk-NWKH5FF7.js';
|
|
4
|
-
import { Callout } from './chunk-
|
|
4
|
+
import { Callout } from './chunk-CWACQEPP.js';
|
|
5
5
|
import { toInstant, formatUntil, useNow, formatExact, toISO } from './chunk-GBKBME7Q.js';
|
|
6
|
-
import { Checkbox } from './chunk-
|
|
6
|
+
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
7
7
|
import { Disclosure } from './chunk-D5O64CVE.js';
|
|
8
8
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
9
9
|
import { Spinner } from './chunk-XSPCITPN.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NOTICE_LIST_LABELS, NoticeLineView } from './chunk-
|
|
1
|
+
import { NOTICE_LIST_LABELS, NoticeLineView } from './chunk-E2XGQAHV.js';
|
|
2
2
|
import { Card } from './chunk-E7KRB77B.js';
|
|
3
|
-
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
4
3
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
4
|
+
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './AttentionList-CUPNJX6B.css';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Select } from './chunk-657WR3MX.js';
|
|
2
|
-
import { Modal } from './chunk-
|
|
2
|
+
import { Modal } from './chunk-7PK2Z5JY.js';
|
|
3
3
|
import { CopyButton } from './chunk-IRGS5FEC.js';
|
|
4
|
-
import { Callout } from './chunk-
|
|
4
|
+
import { Callout } from './chunk-CWACQEPP.js';
|
|
5
5
|
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
6
|
-
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
7
6
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
8
7
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
9
8
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
9
|
+
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
10
10
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
11
11
|
import './ShareDialog-72VTMM4K.css';
|
|
12
12
|
import { useState, useId } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SlideStage } from './chunk-7O53SWKI.js';
|
|
2
|
-
import { useReorder } from './chunk-
|
|
2
|
+
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
3
3
|
import { Menu } from './chunk-ZMZNKDPO.js';
|
|
4
4
|
import { Kbd, isApplePlatform } from './chunk-VBBLHS2Y.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useScrollerFocus, Modal } from './chunk-
|
|
1
|
+
import { useScrollerFocus, Modal } from './chunk-7PK2Z5JY.js';
|
|
2
2
|
import { useListbox, useHighlightRest } from './chunk-KW7T23RT.js';
|
|
3
|
-
import { Input } from './chunk-
|
|
4
|
-
import { Count } from './chunk-Y5CMDLQM.js';
|
|
3
|
+
import { Input } from './chunk-XQMRSL7Z.js';
|
|
5
4
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
6
5
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
7
6
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
7
|
+
import { Count } from './chunk-Y5CMDLQM.js';
|
|
8
8
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './HitArea-QUOS6ZDJ.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConfirmModal } from './chunk-73XXYQC7.js';
|
|
2
1
|
import { InlineCode } from './chunk-W4UJWFCZ.js';
|
|
3
|
-
import {
|
|
2
|
+
import { ConfirmModal } from './chunk-7PK2Z5JY.js';
|
|
3
|
+
import { Callout } from './chunk-CWACQEPP.js';
|
|
4
4
|
import './LinkInterstitial-ET4MSVSV.css';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { frameThemeMessage, readFrameHello, frameOriginMatches, negotiateBridge, FRAME_MESSAGE, portTargetOrigin, checkFrameSandbox, httpOrigin, isFrameNonce, frameFragment, readOpenLink, externalUrl, isFocusExit } from './chunk-F6V2PTN6.js';
|
|
2
|
-
import { Callout } from './chunk-
|
|
2
|
+
import { Callout } from './chunk-CWACQEPP.js';
|
|
3
3
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
4
4
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { typedNumber, NumberField } from './chunk-DDGHRDGV.js';
|
|
1
2
|
import { Select } from './chunk-657WR3MX.js';
|
|
2
|
-
import {
|
|
3
|
-
import { PresetChips } from './chunk-C7BK32JK.js';
|
|
3
|
+
import { PresetChips } from './chunk-6QWSGM4W.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './DurationField-TJFIAUMW.css';
|
|
6
6
|
import { useId } from 'react';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
2
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
+
import './Callout-JGEIJSDG.css';
|
|
4
|
+
import { useId, useState } from 'react';
|
|
5
|
+
import { ChevronDownGlyph, XGlyph, CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
|
|
6
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var GLYPHS = {
|
|
9
|
+
neutral: /* @__PURE__ */ jsx(InfoGlyph, { size: "md" }),
|
|
10
|
+
info: /* @__PURE__ */ jsx(InfoGlyph, { size: "md" }),
|
|
11
|
+
success: /* @__PURE__ */ jsx(CircleCheckGlyph, { size: "md" }),
|
|
12
|
+
warning: /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "md" }),
|
|
13
|
+
danger: /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "md" })
|
|
14
|
+
};
|
|
15
|
+
function Callout({
|
|
16
|
+
variant = "info",
|
|
17
|
+
title,
|
|
18
|
+
icon,
|
|
19
|
+
layout = "card",
|
|
20
|
+
appearance = "tinted",
|
|
21
|
+
action,
|
|
22
|
+
onDismiss,
|
|
23
|
+
dismissLabel = "Dismiss",
|
|
24
|
+
live,
|
|
25
|
+
collapsible = false,
|
|
26
|
+
open: controlledOpen,
|
|
27
|
+
defaultOpen = false,
|
|
28
|
+
onOpenChange,
|
|
29
|
+
storageKey,
|
|
30
|
+
showLabel = "Review",
|
|
31
|
+
hideLabel = "Hide",
|
|
32
|
+
className,
|
|
33
|
+
children,
|
|
34
|
+
...rest
|
|
35
|
+
}) {
|
|
36
|
+
const id = useId();
|
|
37
|
+
const [stored, setStored] = useState(() => readStoredOpen(storageKey) ?? defaultOpen);
|
|
38
|
+
const folds = collapsible && title != null && title !== false && title !== "";
|
|
39
|
+
const open = !folds || (controlledOpen ?? stored);
|
|
40
|
+
const toggle = () => {
|
|
41
|
+
const next = !open;
|
|
42
|
+
if (controlledOpen === void 0) setStored(next);
|
|
43
|
+
writeStoredOpen(storageKey, next);
|
|
44
|
+
onOpenChange?.(next);
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ jsxs(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
...rest,
|
|
50
|
+
"aria-live": live,
|
|
51
|
+
className: cx(
|
|
52
|
+
"crewlet-callout",
|
|
53
|
+
`crewlet-callout--${variant}`,
|
|
54
|
+
`crewlet-callout--${layout}`,
|
|
55
|
+
appearance === "quiet" && "crewlet-callout--quiet",
|
|
56
|
+
folds && "crewlet-callout--collapsible",
|
|
57
|
+
className
|
|
58
|
+
),
|
|
59
|
+
"data-state": folds ? open ? "open" : "closed" : void 0,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-callout__icon", "aria-hidden": true, children: icon ?? GLYPHS[variant] }),
|
|
62
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-callout__content", children: folds ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
63
|
+
/* @__PURE__ */ jsxs(
|
|
64
|
+
"button",
|
|
65
|
+
{
|
|
66
|
+
type: "button",
|
|
67
|
+
className: "crewlet-callout__toggle",
|
|
68
|
+
"aria-expanded": open,
|
|
69
|
+
"aria-controls": `${id}-body`,
|
|
70
|
+
onClick: toggle,
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-callout__title", children: title }),
|
|
73
|
+
" ",
|
|
74
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-callout__toggle-words", children: open ? hideLabel : showLabel }),
|
|
75
|
+
/* @__PURE__ */ jsx(ChevronDownGlyph, { className: "crewlet-callout__chevron", size: "sm" })
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsx("div", { id: `${id}-body`, className: "crewlet-callout__body", hidden: !open, children })
|
|
80
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
81
|
+
title ? /* @__PURE__ */ jsx("span", { className: "crewlet-callout__title", children: title }) : null,
|
|
82
|
+
children
|
|
83
|
+
] }) }),
|
|
84
|
+
action || onDismiss ? /* @__PURE__ */ jsxs("div", { className: "crewlet-callout__action", children: [
|
|
85
|
+
action,
|
|
86
|
+
onDismiss ? /* @__PURE__ */ jsx(
|
|
87
|
+
IconButton,
|
|
88
|
+
{
|
|
89
|
+
className: "crewlet-callout__dismiss",
|
|
90
|
+
label: dismissLabel,
|
|
91
|
+
icon: /* @__PURE__ */ jsx(XGlyph, { size: "sm" }),
|
|
92
|
+
size: "sm",
|
|
93
|
+
onClick: onDismiss
|
|
94
|
+
}
|
|
95
|
+
) : null
|
|
96
|
+
] }) : null
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
function readStoredOpen(key) {
|
|
102
|
+
if (!key) return void 0;
|
|
103
|
+
try {
|
|
104
|
+
const value = globalThis.localStorage?.getItem(key);
|
|
105
|
+
return value === "open" ? true : value === "closed" ? false : void 0;
|
|
106
|
+
} catch {
|
|
107
|
+
return void 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function writeStoredOpen(key, open) {
|
|
111
|
+
if (!key) return;
|
|
112
|
+
try {
|
|
113
|
+
globalThis.localStorage?.setItem(key, open ? "open" : "closed");
|
|
114
|
+
} catch {
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export { Callout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PresetChips } from './chunk-
|
|
2
|
-
import { Input } from './chunk-
|
|
1
|
+
import { PresetChips } from './chunk-6QWSGM4W.js';
|
|
2
|
+
import { Input } from './chunk-XQMRSL7Z.js';
|
|
3
3
|
import { useFieldError } from './chunk-JLKO7PSK.js';
|
|
4
4
|
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
2
|
+
import { DisclosureAnatomy } from './chunk-ODN2TPIG.js';
|
|
3
|
+
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
4
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
+
import { useState, useId } from 'react';
|
|
6
|
+
import { CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
|
|
7
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function NoticeLineView({
|
|
10
|
+
line,
|
|
11
|
+
shown,
|
|
12
|
+
andMore,
|
|
13
|
+
className
|
|
14
|
+
}) {
|
|
15
|
+
const [open, setOpen] = useState(false);
|
|
16
|
+
const folds = line.items.length > shown + 1 && !open;
|
|
17
|
+
const items = folds ? line.items.slice(0, shown) : line.items;
|
|
18
|
+
return /* @__PURE__ */ jsxs("p", { className: cx("crewlet-notice-list__line", className), children: [
|
|
19
|
+
line.subject != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
+
/* @__PURE__ */ jsx("strong", { className: "crewlet-notice-list__subject", children: line.subject }),
|
|
21
|
+
": "
|
|
22
|
+
] }) : null,
|
|
23
|
+
items.map((item, i) => /* @__PURE__ */ jsxs("span", { children: [
|
|
24
|
+
i > 0 ? ", " : null,
|
|
25
|
+
item
|
|
26
|
+
] }, i)),
|
|
27
|
+
folds ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28
|
+
" ",
|
|
29
|
+
/* @__PURE__ */ jsx("button", { type: "button", className: "crewlet-notice-list__and-more", onClick: () => setOpen(true), children: andMore(line.items.length - shown) })
|
|
30
|
+
] }) : null
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
33
|
+
var NOTICE_LIST_LABELS = {
|
|
34
|
+
more: (hidden) => `Show ${hidden} more`,
|
|
35
|
+
less: "Show fewer",
|
|
36
|
+
andMore: (hidden) => `and ${hidden} more`,
|
|
37
|
+
tones: { danger: "Problem", warning: "Warning", info: "Note", success: "Done", neutral: "Note" }
|
|
38
|
+
};
|
|
39
|
+
var GLYPHS = {
|
|
40
|
+
neutral: /* @__PURE__ */ jsx(InfoGlyph, { size: "sm" }),
|
|
41
|
+
info: /* @__PURE__ */ jsx(InfoGlyph, { size: "sm" }),
|
|
42
|
+
success: /* @__PURE__ */ jsx(CircleCheckGlyph, { size: "sm" }),
|
|
43
|
+
warning: /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "sm" }),
|
|
44
|
+
danger: /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "sm" })
|
|
45
|
+
};
|
|
46
|
+
function NoticeList({
|
|
47
|
+
notices,
|
|
48
|
+
compact = false,
|
|
49
|
+
collapseAfter = compact ? 5 : 3,
|
|
50
|
+
itemsShown = 4,
|
|
51
|
+
label,
|
|
52
|
+
labels: overrides,
|
|
53
|
+
className
|
|
54
|
+
}) {
|
|
55
|
+
const words = { ...NOTICE_LIST_LABELS, ...overrides, tones: { ...NOTICE_LIST_LABELS.tones, ...overrides?.tones } };
|
|
56
|
+
const [expanded, setExpanded] = useState(false);
|
|
57
|
+
const [openKey, setOpenKey] = useState(null);
|
|
58
|
+
const rid = useId();
|
|
59
|
+
if (notices.length === 0) return null;
|
|
60
|
+
const mixed = new Set(notices.map((n) => n.tone ?? "neutral")).size > 1;
|
|
61
|
+
const folds = notices.length > collapseAfter + 1;
|
|
62
|
+
const shown = folds && !expanded ? notices.slice(0, collapseAfter) : notices;
|
|
63
|
+
return /* @__PURE__ */ jsxs(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
className: cx(
|
|
67
|
+
"crewlet-notice-list",
|
|
68
|
+
mixed && "crewlet-notice-list--mixed",
|
|
69
|
+
compact && "crewlet-notice-list--compact",
|
|
70
|
+
className
|
|
71
|
+
),
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ jsx("ul", { className: "crewlet-notice-list__items", "aria-label": label, children: shown.map(
|
|
74
|
+
(notice, index) => compact ? /* @__PURE__ */ jsx(
|
|
75
|
+
CompactNotice,
|
|
76
|
+
{
|
|
77
|
+
notice,
|
|
78
|
+
id: `${rid}-${index}`,
|
|
79
|
+
open: openKey === notice.key,
|
|
80
|
+
onToggle: () => setOpenKey((k) => k === notice.key ? null : notice.key),
|
|
81
|
+
mixed,
|
|
82
|
+
itemsShown,
|
|
83
|
+
words
|
|
84
|
+
},
|
|
85
|
+
notice.key
|
|
86
|
+
) : /* @__PURE__ */ jsx(FullNotice, { notice, mixed, itemsShown, words }, notice.key)
|
|
87
|
+
) }),
|
|
88
|
+
folds ? /* @__PURE__ */ jsx(
|
|
89
|
+
Button,
|
|
90
|
+
{
|
|
91
|
+
variant: "ghost",
|
|
92
|
+
size: "small",
|
|
93
|
+
flush: true,
|
|
94
|
+
className: "crewlet-notice-list__more",
|
|
95
|
+
"aria-expanded": expanded,
|
|
96
|
+
onClick: () => setExpanded((e) => !e),
|
|
97
|
+
children: expanded ? words.less : words.more(notices.length - collapseAfter)
|
|
98
|
+
}
|
|
99
|
+
) : null
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function FullNotice({
|
|
105
|
+
notice,
|
|
106
|
+
mixed,
|
|
107
|
+
itemsShown,
|
|
108
|
+
words
|
|
109
|
+
}) {
|
|
110
|
+
const tone = notice.tone ?? "neutral";
|
|
111
|
+
return /* @__PURE__ */ jsxs("li", { className: "crewlet-notice-list__item", children: [
|
|
112
|
+
mixed ? /* @__PURE__ */ jsx("span", { className: cx("crewlet-notice-list__glyph", `is-${tone}`), "aria-hidden": true, children: GLYPHS[tone] }) : null,
|
|
113
|
+
/* @__PURE__ */ jsxs("div", { className: "crewlet-notice-list__text", children: [
|
|
114
|
+
/* @__PURE__ */ jsxs("p", { className: "crewlet-notice-list__title", children: [
|
|
115
|
+
mixed ? /* @__PURE__ */ jsx(VisuallyHidden, { children: `${words.tones[tone]}: ` }) : null,
|
|
116
|
+
notice.subject != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
117
|
+
/* @__PURE__ */ jsx("strong", { className: "crewlet-notice-list__subject", children: notice.subject }),
|
|
118
|
+
": "
|
|
119
|
+
] }) : null,
|
|
120
|
+
notice.title
|
|
121
|
+
] }),
|
|
122
|
+
notice.lines?.map((line, i) => /* @__PURE__ */ jsx(NoticeLineView, { line, shown: itemsShown, andMore: words.andMore }, i)),
|
|
123
|
+
notice.detail != null ? /* @__PURE__ */ jsx("p", { className: "crewlet-notice-list__detail", children: notice.detail }) : null
|
|
124
|
+
] }),
|
|
125
|
+
notice.action != null ? /* @__PURE__ */ jsx("div", { className: "crewlet-notice-list__action", children: notice.action }) : null
|
|
126
|
+
] });
|
|
127
|
+
}
|
|
128
|
+
function CompactNotice({
|
|
129
|
+
notice,
|
|
130
|
+
id,
|
|
131
|
+
open,
|
|
132
|
+
onToggle,
|
|
133
|
+
mixed,
|
|
134
|
+
itemsShown,
|
|
135
|
+
words
|
|
136
|
+
}) {
|
|
137
|
+
const tone = notice.tone ?? "neutral";
|
|
138
|
+
const summary = summaryOf(notice, words.andMore);
|
|
139
|
+
const opens = (notice.lines?.length ?? 0) > 0 || notice.detail != null;
|
|
140
|
+
return /* @__PURE__ */ jsxs("li", { className: "crewlet-notice-list__item", children: [
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
DisclosureAnatomy,
|
|
143
|
+
{
|
|
144
|
+
open,
|
|
145
|
+
onToggle,
|
|
146
|
+
title: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
147
|
+
mixed ? /* @__PURE__ */ jsx(VisuallyHidden, { children: `${words.tones[tone]}: ` }) : null,
|
|
148
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-notice-list__title", children: notice.title }),
|
|
149
|
+
summary != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
150
|
+
" ",
|
|
151
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-notice-list__summary", children: summary })
|
|
152
|
+
] }) : null
|
|
153
|
+
] }),
|
|
154
|
+
icon: mixed ? /* @__PURE__ */ jsx("span", { className: cx("crewlet-notice-list__glyph", `is-${tone}`), children: GLYPHS[tone] }) : void 0,
|
|
155
|
+
actions: notice.action ?? void 0,
|
|
156
|
+
expandable: opens,
|
|
157
|
+
headingLevel: "none",
|
|
158
|
+
triggerId: `${id}-trigger`,
|
|
159
|
+
panelId: `${id}-panel`,
|
|
160
|
+
triggerClassName: "crewlet-notice-list__toggle"
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
opens ? /* @__PURE__ */ jsxs("div", { id: `${id}-panel`, className: "crewlet-notice-list__panel", hidden: !open, children: [
|
|
164
|
+
notice.lines?.map((line, i) => /* @__PURE__ */ jsx(NoticeLineView, { line, shown: itemsShown, andMore: words.andMore }, i)),
|
|
165
|
+
notice.detail != null ? /* @__PURE__ */ jsx("p", { className: "crewlet-notice-list__detail", children: notice.detail }) : null
|
|
166
|
+
] }) : null
|
|
167
|
+
] });
|
|
168
|
+
}
|
|
169
|
+
function summaryOf(notice, andMore) {
|
|
170
|
+
if (notice.summary != null) return notice.summary;
|
|
171
|
+
if (notice.subject != null) return notice.subject;
|
|
172
|
+
const [line, ...others] = notice.lines ?? [];
|
|
173
|
+
if (line === void 0 || others.length > 0) return void 0;
|
|
174
|
+
if (line.subject != null) return line.subject;
|
|
175
|
+
const [first, ...rest] = line.items;
|
|
176
|
+
if (first === void 0) return void 0;
|
|
177
|
+
return rest.length === 0 ? first : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
178
|
+
first,
|
|
179
|
+
" ",
|
|
180
|
+
andMore(rest.length)
|
|
181
|
+
] });
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export { NOTICE_LIST_LABELS, NoticeLineView, NoticeList };
|