@crewlethq/ui 0.150.0 → 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/ArtifactRef/index.js +2 -2
- package/dist/AttentionList/index.js +3 -2
- 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/CommentPin/cursor.d.ts +3 -5
- package/dist/DurationField/index.js +2 -2
- package/dist/FollowBanner/index.js +2 -2
- package/dist/InlineRef/index.js +1 -1
- package/dist/{InlineRef-CUBTBIYD.css → InlineRef-EBQZ26KM.css} +6 -0
- package/dist/LinkInterstitial/index.js +3 -3
- 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/ProposalCard/index.js +2 -2
- package/dist/RailList/index.js +1 -1
- package/dist/RichEditor/index.js +2 -2
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/ShareDialog/index.js +2 -2
- package/dist/TimeRangePicker/index.js +2 -2
- package/dist/{chunk-Q7RI66TT.js → chunk-5DLBGF6I.js} +1 -1
- package/dist/{chunk-W2T7RGH7.js → chunk-5VTJOVK7.js} +1 -1
- package/dist/{chunk-RUNZWWN6.js → chunk-6BGD32C5.js} +1 -1
- package/dist/{chunk-TSLXQVBC.js → chunk-6KCQXKFQ.js} +1 -1
- package/dist/{chunk-733FZXNS.js → chunk-7XE5TC7X.js} +2 -2
- package/dist/{chunk-2QPELDAA.js → chunk-CHUFHUQE.js} +1 -1
- package/dist/chunk-CWACQEPP.js +118 -0
- package/dist/chunk-E2XGQAHV.js +184 -0
- package/dist/{chunk-HJ6ZY4UX.js → chunk-HXAPC3AJ.js} +1 -1
- package/dist/{chunk-R2RHSKAT.js → chunk-JUZKRHQB.js} +2 -2
- package/dist/{chunk-FYVV6GJN.js → chunk-QNSAFNGT.js} +1 -1
- package/dist/{chunk-VARFEAUH.js → chunk-VXTRPLNB.js} +1 -1
- package/dist/{chunk-QS5M3A4I.js → chunk-YAUAMQOP.js} +3 -2
- package/dist/generated/index.js +42 -42
- package/dist/index.js +42 -42
- package/dist/styles.css +162 -3
- package/package.json +3 -3
- package/dist/chunk-7J2RIAZ4.js +0 -91
- package/dist/chunk-UEO3A76N.js +0 -62
- package/dist/{Editor-FXREHINI.js → Editor-LGZMJEUD.js} +1 -1
- package/dist/{chunk-OX332RI7.js → chunk-CKNDBAQ7.js} +1 -1
package/dist/index.js
CHANGED
|
@@ -1,64 +1,63 @@
|
|
|
1
1
|
import './chunk-2DASEYUG.js';
|
|
2
2
|
export { ElementToPngError, elementToPng, parseCsv, peelPunctuation, serializeElement, toCsv } from './chunk-BALBOOKX.js';
|
|
3
|
-
export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from './chunk-HHTAGV5R.js';
|
|
4
3
|
export { TypeSpecimen } from './chunk-JKAFEFFC.js';
|
|
5
4
|
export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from './chunk-TPABM6DW.js';
|
|
6
5
|
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from './chunk-OMVGWZ3V.js';
|
|
7
6
|
export { VersionTimeline } from './chunk-3RLOH5AR.js';
|
|
8
7
|
export { WidgetFrame } from './chunk-5ZTH54O6.js';
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
8
|
+
export { TileGrid } from './chunk-UFID3DSP.js';
|
|
9
|
+
export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from './chunk-VXTRPLNB.js';
|
|
11
10
|
export { ToastProvider, Toaster, readingDuration, toasterInsetStyle, useToast } from './chunk-KWHZXFXJ.js';
|
|
11
|
+
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from './chunk-F6OYNO7O.js';
|
|
12
|
+
export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from './chunk-HHTAGV5R.js';
|
|
13
|
+
export { TagsInput } from './chunk-ZC73GPA3.js';
|
|
12
14
|
export { ThemeGallery } from './chunk-35ALKQC5.js';
|
|
13
15
|
export { ThemeSwatch } from './chunk-3XQUEF5C.js';
|
|
14
|
-
export { ThemeToggle } from './chunk-CXJMWEZC.js';
|
|
15
16
|
export { DensitySwitcher, ThemeSwitcher } from './chunk-ODN3LSYW.js';
|
|
17
|
+
export { ThemeToggle } from './chunk-CXJMWEZC.js';
|
|
16
18
|
export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from './chunk-Z24ZUSTX.js';
|
|
17
19
|
export { ThinkingIndicator } from './chunk-DX7ZHO47.js';
|
|
18
20
|
export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from './chunk-7MAU74EI.js';
|
|
19
|
-
export { TileGrid } from './chunk-UFID3DSP.js';
|
|
20
21
|
export { Switcher } from './chunk-O2J5PSWI.js';
|
|
21
22
|
export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from './chunk-Q3J23Q6P.js';
|
|
22
|
-
export { TagsInput } from './chunk-ZC73GPA3.js';
|
|
23
|
-
export { StatCard } from './chunk-2YADDY4A.js';
|
|
24
23
|
export { StatGroup } from './chunk-OUD75UB2.js';
|
|
25
24
|
export { Statement } from './chunk-MZJKPTA5.js';
|
|
26
25
|
export { StatusLegend } from './chunk-CXFMNOPV.js';
|
|
27
26
|
export { StatusLine } from './chunk-LZ3TKYAY.js';
|
|
28
|
-
export { SLIDE_COMPARE_LABELS, SlideCompare } from './chunk-KQUENZR3.js';
|
|
29
27
|
export { SlideFilmstrip } from './chunk-7CVV3DQC.js';
|
|
30
28
|
export { SlideGrid } from './chunk-73L3774J.js';
|
|
29
|
+
export { SLIDE_COMPARE_LABELS, SlideCompare } from './chunk-KQUENZR3.js';
|
|
31
30
|
export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from './chunk-S656HY4W.js';
|
|
32
|
-
export {
|
|
33
|
-
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from './chunk-RUNZWWN6.js';
|
|
31
|
+
export { StatCard } from './chunk-2YADDY4A.js';
|
|
34
32
|
export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from './chunk-M4VA76JF.js';
|
|
35
33
|
export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from './chunk-7C6NHVMX.js';
|
|
36
34
|
export { TagGroup } from './chunk-FOUIZS7Q.js';
|
|
35
|
+
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from './chunk-6BGD32C5.js';
|
|
37
36
|
export { matchesShortcut, useShortcut } from './chunk-K6PKXCR2.js';
|
|
38
37
|
import './chunk-ZZMXJTII.js';
|
|
39
|
-
export { SegmentedMeter, segmentedMeterLabel } from './chunk-4AK52VHB.js';
|
|
40
38
|
export { SelectionBar } from './chunk-3EL3IF3W.js';
|
|
41
39
|
export { SEND_BUTTON_LABELS, SendButton } from './chunk-2W2KAF7D.js';
|
|
42
40
|
export { SETTING_FORM_LABELS, SettingForm } from './chunk-NG6GEBSJ.js';
|
|
43
41
|
export { SETTINGS_TABLE_ROW_LABELS, SettingsTable, SettingsTableRow } from './chunk-BQMDD2FD.js';
|
|
44
|
-
export {
|
|
45
|
-
export { RICH_EDITOR_LABELS, richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
42
|
+
export { SetupWizard } from './chunk-2DZV4PHK.js';
|
|
46
43
|
export { canonicalMarkdown, roundTripMarkdown } from './chunk-GBASM5EV.js';
|
|
47
44
|
import './chunk-7CSTEH5I.js';
|
|
48
45
|
export { RoomRow } from './chunk-45OOFAL6.js';
|
|
49
46
|
export { RUN_STATES, RunChip } from './chunk-L6SYLG3F.js';
|
|
50
|
-
export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from './chunk-
|
|
47
|
+
export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from './chunk-CHUFHUQE.js';
|
|
51
48
|
export { SearchTrigger } from './chunk-U67UM3VS.js';
|
|
52
49
|
export { SectionFrame, SectionFrameBody, SectionFrameNav } from './chunk-D33K2BCZ.js';
|
|
50
|
+
export { SegmentedMeter, segmentedMeterLabel } from './chunk-4AK52VHB.js';
|
|
53
51
|
export { RecordChip, RecordChipList } from './chunk-DWNKTIRN.js';
|
|
54
52
|
export { REFUSAL_CARD_LABELS, RefusalCard } from './chunk-HW7QJS2C.js';
|
|
55
53
|
export { RelatedRow } from './chunk-ZPLAR53E.js';
|
|
56
54
|
export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard } from './chunk-IZH5DCOQ.js';
|
|
57
55
|
export { Table } from './chunk-YGN4SBNP.js';
|
|
58
56
|
export { ReviewList } from './chunk-7XYU5PSQ.js';
|
|
59
|
-
export {
|
|
57
|
+
export { RichEditor, preloadRichEditor } from './chunk-JUZKRHQB.js';
|
|
58
|
+
export { RICH_EDITOR_LABELS, richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
60
59
|
export { PropertyList } from './chunk-N2DCSSYC.js';
|
|
61
|
-
export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from './chunk-
|
|
60
|
+
export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from './chunk-5DLBGF6I.js';
|
|
62
61
|
export { Prose } from './chunk-DVVP27OD.js';
|
|
63
62
|
export { QR_DARK, QR_LIGHT, QR_QUIET_ZONE, QrCode, qrModulePath, qrModules } from './chunk-Y56FM3K4.js';
|
|
64
63
|
export { RAIL_LIST_LABELS, RailList } from './chunk-ECYA6XZL.js';
|
|
@@ -70,21 +69,21 @@ export { PresenterView, formatStopwatch } from './chunk-BJE7TPO6.js';
|
|
|
70
69
|
export { SLIDE_NAV_LABELS, SlideNav } from './chunk-WSKVFRKK.js';
|
|
71
70
|
export { SLIDE_HEIGHT, SLIDE_WIDTH, SlideStage, useSlideKeys } from './chunk-7O53SWKI.js';
|
|
72
71
|
export { PricingCard } from './chunk-O2XAJDK6.js';
|
|
73
|
-
export {
|
|
72
|
+
export { PrincipalPicker } from './chunk-4DUK2TC4.js';
|
|
74
73
|
export { PageNote } from './chunk-CV4NES3P.js';
|
|
75
|
-
export { PEEK_RAIL_LABELS, PEEK_RAIL_MAX_WIDTH, PEEK_RAIL_MIN_WIDTH, PEEK_RAIL_WIDTH, PeekHost, PeekNeighbours, PeekRail, isPlainPress, peekClickHandler, peekRowActivation, usePeekNeighbours, usePeekOrder, usePeekStep } from './chunk-JNDZGQGS.js';
|
|
76
74
|
export { PEOPLE_RAIL_LABELS, PeopleRail, peopleRailKey } from './chunk-Z7BA2EVV.js';
|
|
77
75
|
import './chunk-CENOOTAV.js';
|
|
76
|
+
export { PEEK_RAIL_LABELS, PEEK_RAIL_MAX_WIDTH, PEEK_RAIL_MIN_WIDTH, PEEK_RAIL_WIDTH, PeekHost, PeekNeighbours, PeekRail, isPlainPress, peekClickHandler, peekRowActivation, usePeekNeighbours, usePeekOrder, usePeekStep } from './chunk-JNDZGQGS.js';
|
|
78
77
|
export { PinTile } from './chunk-ZFSKRN6D.js';
|
|
79
|
-
export { groupNotices } from './chunk-
|
|
78
|
+
export { groupNotices } from './chunk-YAUAMQOP.js';
|
|
80
79
|
export { FactLine, ObjectHeader, SET_BY_VERBS, SetByLine } from './chunk-W443OSWT.js';
|
|
81
80
|
export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from './chunk-AH7R777J.js';
|
|
82
81
|
export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from './chunk-CRKFCTOR.js';
|
|
83
82
|
export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from './chunk-3Q5USPLM.js';
|
|
84
83
|
export { TreeGrid } from './chunk-RUKSDKG5.js';
|
|
85
84
|
export { OrgLabel } from './chunk-PFP5HHZF.js';
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
85
|
+
export { Outline, scrollToHeading, useActiveHeading } from './chunk-WYIPKGEO.js';
|
|
86
|
+
export { MentionChip } from './chunk-SYOMUNKU.js';
|
|
88
87
|
export { MERGE_CONFLICTS_LABELS, MergeConflicts } from './chunk-ZAQ7CEYN.js';
|
|
89
88
|
export { ActionDivider, MessageAction, MessageActions, QuickReaction } from './chunk-FMKQSDBQ.js';
|
|
90
89
|
export { MessageBubble } from './chunk-KAQ2L74F.js';
|
|
@@ -93,11 +92,12 @@ export { LIVE_PREVIEW_DWELL_MS, LIVE_PREVIEW_MARGIN, LIVE_PREVIEW_MAX, LIVE_PREV
|
|
|
93
92
|
export { LogoSlot, LogoSlotGroup } from './chunk-ECHQLOWI.js';
|
|
94
93
|
export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from './chunk-N3LAAA4R.js';
|
|
95
94
|
export { MEMBER_PICKER_LABELS, MemberPicker, chosenMembers } from './chunk-27NS67UI.js';
|
|
96
|
-
export {
|
|
95
|
+
export { MENTION_MENU_LABELS, MentionMenu, mentionQuery } from './chunk-46WA7E5V.js';
|
|
96
|
+
export { PersonRow } from './chunk-42I2VSZZ.js';
|
|
97
97
|
export { Link } from './chunk-UTKI2SAM.js';
|
|
98
98
|
export { LinkCard } from './chunk-346EXHOR.js';
|
|
99
99
|
import './chunk-KOJPDCGQ.js';
|
|
100
|
-
export { LinkInterstitial, openExternal } from './chunk-
|
|
100
|
+
export { LinkInterstitial, openExternal } from './chunk-7XE5TC7X.js';
|
|
101
101
|
export { List, ListItem } from './chunk-GAQU5V5R.js';
|
|
102
102
|
export { ListDetail, ListDetailBack } from './chunk-CJGLMT44.js';
|
|
103
103
|
export { ListInput, withDraft } from './chunk-PW6QXVIX.js';
|
|
@@ -111,15 +111,14 @@ export { ImageUpload } from './chunk-4QWTD6JO.js';
|
|
|
111
111
|
export { INBOX_ROW_LEAVE, InboxGroup, InboxList, InboxMore, InboxRow, InboxToggle } from './chunk-UMEK5DHS.js';
|
|
112
112
|
export { IndicatorAnchor } from './chunk-27MJPU7G.js';
|
|
113
113
|
export { INLINE_EDITOR_LABELS, InlineEditor } from './chunk-CA62YCFK.js';
|
|
114
|
-
export { FindingList } from './chunk-J2GRBRGK.js';
|
|
115
114
|
export { FolderTile, describeFolderContents, folderContentsParts } from './chunk-4VJ5UZIK.js';
|
|
116
|
-
export { FollowBanner } from './chunk-
|
|
115
|
+
export { FollowBanner } from './chunk-HXAPC3AJ.js';
|
|
117
116
|
export { DEFAULT_FRAME_THEME, EXTERNAL_URL_MAX, FRAME_BRIDGE, FRAME_MESSAGE, FRAME_ORIGIN_MODES, FRAME_SANDBOX_TOKENS, applyFrameTheme, checkFrameSandbox, externalUrl, frameFragment, frameOriginMatches, frameThemeMessage, httpOrigin, isFocusExit, isFrameNonce, negotiateBridge, parseFrameFragment, portTargetOrigin, readFrameHello, readFramePortMessage, readFrameTheme, readOpenLink } from './chunk-F6V2PTN6.js';
|
|
118
117
|
export { DENSITY_PREFERENCES, PALETTE_ID, THEME_PREFERENCES, applyDensity, applyPalette, applyTheme, isDensityPreference, isPaletteId, isThemePreference } from './chunk-ZXXDZJQN.js';
|
|
118
|
+
export { Highlight, highlightRanges, highlightTerms } from './chunk-H6VKCIWV.js';
|
|
119
119
|
export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_FOCUS_ZOOM, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_TILE_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphDetail, graphFocusView, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, placeTrunkLabels, routeGraphEdges } from './chunk-IRLHICS4.js';
|
|
120
120
|
export { SIZE_EPSILON, TYPE_AHEAD_RESET_MS, createTreeModel, isTypeAheadKey, layoutConnectors, layoutForest, placeGroups, treeAllExpandable, treeAncestors, treeCollapseOrAscend, treeExpandOrDescend, treeExpandTo, treeExpandable, treeFirst, treeFirstChild, treeItemAction, treeLast, treeLevel, treeNext, treeParent, treePosInSet, treePrevious, treeSetSize, treeStep, treeTypeAhead, treeVisible, typeAheadBuffer, useLayoutAnchor, useMeasuredSizes, useTreeState } from './chunk-MY374UUD.js';
|
|
121
121
|
export { FULLSCREEN_TOGGLE_LABELS, FullscreenToggle, IDLE_AFTER_MS, useFullscreen, useIdle } from './chunk-HYUO2RHC.js';
|
|
122
|
-
export { Highlight, highlightRanges, highlightTerms } from './chunk-H6VKCIWV.js';
|
|
123
122
|
import './chunk-MICRGE3J.js';
|
|
124
123
|
export { EntityList } from './chunk-776LNKD2.js';
|
|
125
124
|
export { ErrorBoundary } from './chunk-CC5NUAOF.js';
|
|
@@ -128,21 +127,22 @@ export { FactList } from './chunk-EO64FXVL.js';
|
|
|
128
127
|
export { FileDrop, FilePickButton, droppedFiles, pickedFiles } from './chunk-AU4EKD2G.js';
|
|
129
128
|
export { FileList } from './chunk-FQBSYMEW.js';
|
|
130
129
|
export { FILTER_CHIP_ATTRIBUTE, FilterChip, FilterChipGroup } from './chunk-L6HUVA33.js';
|
|
130
|
+
export { FindingList } from './chunk-J2GRBRGK.js';
|
|
131
|
+
export { DOCUMENT_DIFF_LABELS, DocumentDiff, DocumentDiffAdded, DocumentDiffRemoved } from './chunk-ZSV2JJV4.js';
|
|
131
132
|
export { DownloadButton } from './chunk-VFC7KVCW.js';
|
|
132
133
|
export { downloadBlob, downloadText, safeFilename, useDownload } from './chunk-YNRKVY7X.js';
|
|
133
|
-
export { DURATION_FIELD_LABELS, DURATION_UNIT_SECONDS, DurationField, durationSeconds, durationValue, durationWords } from './chunk-
|
|
134
|
-
export { Select } from './chunk-657WR3MX.js';
|
|
134
|
+
export { DURATION_FIELD_LABELS, DURATION_UNIT_SECONDS, DurationField, durationSeconds, durationValue, durationWords } from './chunk-CKNDBAQ7.js';
|
|
135
135
|
export { NUMBER_FIELD_LABELS, NumberField, typedNumber } from './chunk-DDGHRDGV.js';
|
|
136
|
+
export { Select } from './chunk-657WR3MX.js';
|
|
136
137
|
export { PresetChips } from './chunk-6QWSGM4W.js';
|
|
137
138
|
export { EditingStatus } from './chunk-KRF3GQ63.js';
|
|
138
|
-
export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from './chunk-N3R2POGO.js';
|
|
139
139
|
export { EMOJI_GROUPS, EMOJI_GROUP_GLYPHS, EMOJI_PICKER_COLUMNS, EMOJI_PICKER_LABELS, EmojiPicker, emojiName, emojiOfShortcode, emojiShortcode, isShortcode, searchEmoji } from './chunk-YMBXTGFC.js';
|
|
140
140
|
export { EntityChip } from './chunk-OPN5Q3OL.js';
|
|
141
141
|
export { DIFF_SUMMARY_LABELS, DIFF_VIEW_LABELS, DiffSummary, DiffView, MAX_DIFF_LINES, collapseDiff, diffLines, diffStat, firstChangedLines, splitLines } from './chunk-F4CM5KD3.js';
|
|
142
142
|
export { DirectoryList } from './chunk-5KTLQ436.js';
|
|
143
143
|
export { Divider } from './chunk-6KWNXIDE.js';
|
|
144
|
+
export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from './chunk-N3R2POGO.js';
|
|
144
145
|
export { DockColumn } from './chunk-UXTW4GOT.js';
|
|
145
|
-
export { DOCUMENT_DIFF_LABELS, DocumentDiff, DocumentDiffAdded, DocumentDiffRemoved } from './chunk-ZSV2JJV4.js';
|
|
146
146
|
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from './chunk-Q3SHCEXN.js';
|
|
147
147
|
export { nextGridSort, parseGridSort } from './chunk-HU56GCZ7.js';
|
|
148
148
|
export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from './chunk-FCRJAFTU.js';
|
|
@@ -157,10 +157,10 @@ export { REFUSAL_STRIP_LABELS, ReceiptStrip, RefusalStrip } from './chunk-OAD4AX
|
|
|
157
157
|
export { DEFAULT_METER_THRESHOLDS, METER_STATES, Meter, meterState, meterStateTone, meterTone, progressTone } from './chunk-MXOT2CWL.js';
|
|
158
158
|
export { DELIVERY_RECEIPT_LABELS, DeliveryReceipt } from './chunk-2EPEVS2M.js';
|
|
159
159
|
export { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
|
|
160
|
+
export { ConfirmField, confirmMatches } from './chunk-V67VL3WD.js';
|
|
161
|
+
export { InlineCode } from './chunk-W4UJWFCZ.js';
|
|
160
162
|
export { CONFLICT_NOTE_LABELS, ConflictNote } from './chunk-WOHPQEBZ.js';
|
|
161
163
|
export { Container } from './chunk-HJO4WCH6.js';
|
|
162
|
-
export { CompactNav, CompactNavGroup, CompactNavItem, CompactNavSeparator, groupBadge, placeFlyout } from './chunk-DF3LU2RW.js';
|
|
163
|
-
export { LockedLabel } from './chunk-TODOBUXO.js';
|
|
164
164
|
export { ContrastHelp } from './chunk-7WXLPNZF.js';
|
|
165
165
|
export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from './chunk-3YOLD7WG.js';
|
|
166
166
|
export { CursorFlag } from './chunk-MMCYH5LB.js';
|
|
@@ -173,8 +173,8 @@ export { ConfirmModal, Modal } from './chunk-7PK2Z5JY.js';
|
|
|
173
173
|
export { HIGHLIGHT_REST_MS, TYPE_AHEAD_WINDOW, useHighlightRest, useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
174
174
|
export { COMMENT_PIN_CURSOR_COLOURS, COMMENT_PIN_CURSOR_SIZE, CommentPin, CommentPinGlyph, commentPinCursor, commentPinCursorAt } from './chunk-ML4E6FFN.js';
|
|
175
175
|
export { COMMENT_THREAD_LABELS, CommentThread } from './chunk-U3ZUZ7VU.js';
|
|
176
|
-
export {
|
|
177
|
-
export {
|
|
176
|
+
export { CompactNav, CompactNavGroup, CompactNavItem, CompactNavSeparator, groupBadge, placeFlyout } from './chunk-DF3LU2RW.js';
|
|
177
|
+
export { LockedLabel } from './chunk-TODOBUXO.js';
|
|
178
178
|
export { CHIP_FIELD_LABELS, ChipField } from './chunk-YUW4DD2Z.js';
|
|
179
179
|
export { ChoiceButtons } from './chunk-AHW3K3SH.js';
|
|
180
180
|
export { ChoiceCards } from './chunk-FHPHRIPO.js';
|
|
@@ -190,8 +190,8 @@ export { ColorChip } from './chunk-C6T4VBEY.js';
|
|
|
190
190
|
import './chunk-3L5NHASN.js';
|
|
191
191
|
export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, StackedRing, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from './chunk-TQ6ZPQI4.js';
|
|
192
192
|
export { ChatDay, ChatDayPill } from './chunk-RBQOS3JC.js';
|
|
193
|
-
export { ChatDivider } from './chunk-EI242VTX.js';
|
|
194
193
|
import './chunk-5QJNA7KD.js';
|
|
194
|
+
export { ChatDivider } from './chunk-EI242VTX.js';
|
|
195
195
|
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from './chunk-RXHY5T2Z.js';
|
|
196
196
|
export { CHAT_MESSAGE_CLASS, CHAT_MESSAGE_FAILURE_LABELS, ChatMessage, ChatMessageFailure } from './chunk-6RBE5RVG.js';
|
|
197
197
|
export { CheckGrid } from './chunk-ZNEMXLTY.js';
|
|
@@ -219,15 +219,15 @@ export { SuggestionList, SuggestionRow } from './chunk-IR3OWPAZ.js';
|
|
|
219
219
|
import './chunk-6C7GQOBV.js';
|
|
220
220
|
export { StatusCard } from './chunk-NWKH5FF7.js';
|
|
221
221
|
export { CalendarGrid, compareDays, daysInMonth, sameDay, shiftDay, shiftMonth, today } from './chunk-EE3DJMSQ.js';
|
|
222
|
-
export { Callout } from './chunk-
|
|
223
|
-
export { ARTIFACT_REF_KIND_LABELS, ArtifactRef } from './chunk-
|
|
224
|
-
export { InlineRef } from './chunk-
|
|
222
|
+
export { Callout } from './chunk-CWACQEPP.js';
|
|
223
|
+
export { ARTIFACT_REF_KIND_LABELS, ArtifactRef } from './chunk-QNSAFNGT.js';
|
|
224
|
+
export { InlineRef } from './chunk-6KCQXKFQ.js';
|
|
225
225
|
export { MARKDOWN_CALLOUT_NAMES, MARKDOWN_CALLOUT_TONES, markdownBreaks, markdownClosesFence, markdownCodeText, markdownFenceOf, markdownHeadingOf, markdownInline, markdownLines, parseMarkdown, parseMarkdownSpans, safeHref } from './chunk-KBZO4B33.js';
|
|
226
226
|
export { ASIDE_LAYOUT_SPLIT_REM, AsideLayout } from './chunk-7UQQEUOT.js';
|
|
227
227
|
export { ATTACHMENT_CHIP_LABELS, AttachmentChip } from './chunk-GZSEIFWB.js';
|
|
228
228
|
export { Tag } from './chunk-SJ3EUCFD.js';
|
|
229
|
-
export { ATTENTION_LIST_LABELS, AttentionList } from './chunk-
|
|
230
|
-
export { NOTICE_LIST_LABELS, NoticeList } from './chunk-
|
|
229
|
+
export { ATTENTION_LIST_LABELS, AttentionList } from './chunk-5VTJOVK7.js';
|
|
230
|
+
export { NOTICE_LIST_LABELS, NoticeList } from './chunk-E2XGQAHV.js';
|
|
231
231
|
export { AuthLayout } from './chunk-HHYFL2GH.js';
|
|
232
232
|
export { BrandLockup } from './chunk-KXWJJWBD.js';
|
|
233
233
|
export { AvatarPicker } from './chunk-X5ZUDJNK.js';
|
|
@@ -248,8 +248,8 @@ import './chunk-WSIJDWUG.js';
|
|
|
248
248
|
export { DashboardCover, DocCover, SHEET_COVER_COLUMNS, SHEET_COVER_ROWS, SheetCover } from './chunk-MMV7NEAC.js';
|
|
249
249
|
export { Document, DocumentTitle, DocumentTitleField } from './chunk-I4PBFJGX.js';
|
|
250
250
|
export { ArtifactKindGround, ArtifactKindIllustration, ArtifactKindTile } from './chunk-W3A6NBUM.js';
|
|
251
|
-
export { ArtifactMakeRow } from './chunk-A3SQWUWG.js';
|
|
252
251
|
export { ArtifactNameCell } from './chunk-3SCASXQH.js';
|
|
252
|
+
export { ArtifactMakeRow } from './chunk-A3SQWUWG.js';
|
|
253
253
|
export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from './chunk-5ORAUELE.js';
|
|
254
254
|
export { afterMotion, releaseFocus, runningMotion, usePresence } from './chunk-SNKQNAJI.js';
|
|
255
255
|
import './chunk-JLOESTT2.js';
|
|
@@ -274,11 +274,11 @@ export { Menu } from './chunk-ZMZNKDPO.js';
|
|
|
274
274
|
export { ACCESS_DENIED_REASONS, AccessDeniedCard } from './chunk-QTMUKRTN.js';
|
|
275
275
|
export { EmptyState } from './chunk-PPUR46MK.js';
|
|
276
276
|
export { Accordion, AccordionItem } from './chunk-3QEAANRP.js';
|
|
277
|
-
export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from './chunk-OM2LABPS.js';
|
|
278
277
|
export { ActivityLine } from './chunk-DLYYW77C.js';
|
|
279
278
|
export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from './chunk-CRGYWLP6.js';
|
|
280
279
|
export { AvatarStack, avatarStackLabel } from './chunk-2PSOUDCS.js';
|
|
281
280
|
export { AVATAR_CHARACTER_FULL_DETAIL, AVATAR_CORNER_RANGE, AVATAR_CORNER_RATIO, AVATAR_SIZES, AVATAR_STATUSES, AVATAR_STATUS_LABELS, AVATAR_VERDICTS, AVATAR_VERDICT_LABELS, Avatar, avatarCorner, avatarInitialsName, avatarPixels, avatarTint, getInitials } from './chunk-YMFFGPFE.js';
|
|
281
|
+
export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from './chunk-OM2LABPS.js';
|
|
282
282
|
export { ADD_PILL_MS, AddPill } from './chunk-5W3EYO5Q.js';
|
|
283
283
|
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from './chunk-S4ADDFRT.js';
|
|
284
284
|
export { Timeline, TimelineItem } from './chunk-XDUXAQIS.js';
|
package/dist/styles.css
CHANGED
|
@@ -7100,7 +7100,7 @@ a.crewlet-btn--danger.crewlet-btn--danger:is(:link, :visited, :hover, :active, :
|
|
|
7100
7100
|
}
|
|
7101
7101
|
|
|
7102
7102
|
|
|
7103
|
-
/* Callout-
|
|
7103
|
+
/* Callout-JGEIJSDG.css */
|
|
7104
7104
|
/*
|
|
7105
7105
|
* The callout: a status that stays in the content flow.
|
|
7106
7106
|
*
|
|
@@ -7228,6 +7228,66 @@ a.crewlet-btn--danger.crewlet-btn--danger:is(:link, :visited, :hover, :active, :
|
|
|
7228
7228
|
color: inherit;
|
|
7229
7229
|
}
|
|
7230
7230
|
|
|
7231
|
+
/*
|
|
7232
|
+
* COLLAPSIBLE: the title is the button that opens the message. A row-sm
|
|
7233
|
+
* target that keeps the line's own height, so the closed callout is one line.
|
|
7234
|
+
*/
|
|
7235
|
+
.crewlet-callout__toggle {
|
|
7236
|
+
display: inline-flex;
|
|
7237
|
+
align-items: center;
|
|
7238
|
+
gap: var(--spacing-1);
|
|
7239
|
+
max-width: 100%;
|
|
7240
|
+
min-height: var(--size-row-sm);
|
|
7241
|
+
margin-block: calc((1lh - var(--size-row-sm)) / 2);
|
|
7242
|
+
padding: 0;
|
|
7243
|
+
border: 0;
|
|
7244
|
+
background: none;
|
|
7245
|
+
color: inherit;
|
|
7246
|
+
font: inherit;
|
|
7247
|
+
text-align: start;
|
|
7248
|
+
cursor: pointer;
|
|
7249
|
+
}
|
|
7250
|
+
|
|
7251
|
+
.crewlet-callout__toggle-words {
|
|
7252
|
+
flex: none;
|
|
7253
|
+
text-underline-offset: 2px;
|
|
7254
|
+
}
|
|
7255
|
+
|
|
7256
|
+
.crewlet-callout__toggle:hover .crewlet-callout__toggle-words {
|
|
7257
|
+
text-decoration: underline;
|
|
7258
|
+
}
|
|
7259
|
+
|
|
7260
|
+
.crewlet-callout__toggle:focus-visible {
|
|
7261
|
+
outline: 2px solid var(--color-focus);
|
|
7262
|
+
outline-offset: 2px;
|
|
7263
|
+
border-radius: var(--radius-xs);
|
|
7264
|
+
}
|
|
7265
|
+
|
|
7266
|
+
/* One glyph, turned, as every disclosure in the package does. */
|
|
7267
|
+
.crewlet-callout__chevron {
|
|
7268
|
+
flex: none;
|
|
7269
|
+
transform: rotate(-90deg);
|
|
7270
|
+
transition: transform var(--motion-duration-base) var(--motion-easing-out);
|
|
7271
|
+
}
|
|
7272
|
+
|
|
7273
|
+
.crewlet-callout__toggle[aria-expanded='true'] .crewlet-callout__chevron {
|
|
7274
|
+
transform: rotate(0deg);
|
|
7275
|
+
}
|
|
7276
|
+
|
|
7277
|
+
.crewlet-callout__body {
|
|
7278
|
+
margin-top: var(--spacing-1);
|
|
7279
|
+
}
|
|
7280
|
+
|
|
7281
|
+
.crewlet-callout__body[hidden] {
|
|
7282
|
+
display: none;
|
|
7283
|
+
}
|
|
7284
|
+
|
|
7285
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7286
|
+
.crewlet-callout__chevron {
|
|
7287
|
+
transition: none;
|
|
7288
|
+
}
|
|
7289
|
+
}
|
|
7290
|
+
|
|
7231
7291
|
/* ── tones ─────────────────────────────────────────────────────────────── */
|
|
7232
7292
|
|
|
7233
7293
|
.crewlet-callout--info {
|
|
@@ -25828,7 +25888,7 @@ a.crewlet-icon-btn {
|
|
|
25828
25888
|
}
|
|
25829
25889
|
|
|
25830
25890
|
|
|
25831
|
-
/* InlineRef-
|
|
25891
|
+
/* InlineRef-EBQZ26KM.css */
|
|
25832
25892
|
/*
|
|
25833
25893
|
* A reference inside a sentence (InlineRef.tsx): a mark a little below the
|
|
25834
25894
|
* text's size, then its words, in the sentence's own ink unless it is a link.
|
|
@@ -25888,6 +25948,12 @@ a.crewlet-icon-btn {
|
|
|
25888
25948
|
text-decoration: underline;
|
|
25889
25949
|
}
|
|
25890
25950
|
|
|
25951
|
+
/* A wrapping link's head is an inline block, which takes no decoration from its
|
|
25952
|
+
anchor: it takes the anchor's own, so a sentence's underlined link is underlined whole. */
|
|
25953
|
+
.crewlet-inline-ref--wrap.crewlet-inline-ref--link > .crewlet-inline-ref__head {
|
|
25954
|
+
text-decoration: inherit;
|
|
25955
|
+
}
|
|
25956
|
+
|
|
25891
25957
|
.crewlet-inline-ref--link:focus-visible {
|
|
25892
25958
|
outline: 2px solid var(--color-focus);
|
|
25893
25959
|
outline-offset: 2px;
|
|
@@ -31364,7 +31430,7 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
31364
31430
|
}
|
|
31365
31431
|
|
|
31366
31432
|
|
|
31367
|
-
/* NoticeList-
|
|
31433
|
+
/* NoticeList-GHCJRR3Z.css */
|
|
31368
31434
|
/*
|
|
31369
31435
|
* Several things to know from one source. Inside a Callout it takes the
|
|
31370
31436
|
* callout's ink and size; on its own, the page's secondary ink.
|
|
@@ -31513,6 +31579,99 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
31513
31579
|
color: inherit;
|
|
31514
31580
|
}
|
|
31515
31581
|
|
|
31582
|
+
/*
|
|
31583
|
+
* COMPACT: one row per notice on the disclosure anatomy, in the list's own ink
|
|
31584
|
+
* and size. The title wraps rather than cuts, so nothing is clipped.
|
|
31585
|
+
*/
|
|
31586
|
+
.crewlet-notice-list--compact {
|
|
31587
|
+
--crewlet-notice-list-mark: calc(14px + var(--spacing-1));
|
|
31588
|
+
}
|
|
31589
|
+
|
|
31590
|
+
.crewlet-notice-list--compact .crewlet-notice-list__items {
|
|
31591
|
+
gap: 0;
|
|
31592
|
+
}
|
|
31593
|
+
|
|
31594
|
+
.crewlet-notice-list--compact .crewlet-notice-list__item {
|
|
31595
|
+
display: block;
|
|
31596
|
+
}
|
|
31597
|
+
|
|
31598
|
+
.crewlet-notice-list--compact .crewlet-disclosure__bar {
|
|
31599
|
+
align-items: flex-start;
|
|
31600
|
+
}
|
|
31601
|
+
|
|
31602
|
+
.crewlet-notice-list .crewlet-notice-list__toggle {
|
|
31603
|
+
align-items: flex-start;
|
|
31604
|
+
margin-inline-start: calc(-1 * var(--spacing-1));
|
|
31605
|
+
padding: calc((var(--size-row-sm) - 1lh) / 2) var(--spacing-1);
|
|
31606
|
+
color: inherit;
|
|
31607
|
+
font-size: inherit;
|
|
31608
|
+
}
|
|
31609
|
+
|
|
31610
|
+
.crewlet-notice-list .crewlet-notice-list__toggle:hover {
|
|
31611
|
+
color: inherit;
|
|
31612
|
+
}
|
|
31613
|
+
|
|
31614
|
+
.crewlet-notice-list__toggle .crewlet-disclosure__title {
|
|
31615
|
+
overflow: visible;
|
|
31616
|
+
white-space: normal;
|
|
31617
|
+
}
|
|
31618
|
+
|
|
31619
|
+
/* The chevron and a tone glyph centre on the first line of a wrapped title. */
|
|
31620
|
+
.crewlet-notice-list__toggle .crewlet-disclosure__chevron {
|
|
31621
|
+
margin-block: calc((1lh - 14px) / 2);
|
|
31622
|
+
color: inherit;
|
|
31623
|
+
}
|
|
31624
|
+
|
|
31625
|
+
.crewlet-notice-list__toggle .crewlet-disclosure__icon {
|
|
31626
|
+
height: 1lh;
|
|
31627
|
+
}
|
|
31628
|
+
|
|
31629
|
+
.crewlet-notice-list--compact .crewlet-notice-list__summary {
|
|
31630
|
+
font-weight: var(--font-weight-regular);
|
|
31631
|
+
}
|
|
31632
|
+
|
|
31633
|
+
.crewlet-notice-list--compact .crewlet-notice-list__summary::before {
|
|
31634
|
+
content: '·' / '';
|
|
31635
|
+
margin-inline-end: var(--spacing-1);
|
|
31636
|
+
}
|
|
31637
|
+
|
|
31638
|
+
.crewlet-notice-list--compact .crewlet-disclosure__actions {
|
|
31639
|
+
min-height: var(--size-row-sm);
|
|
31640
|
+
}
|
|
31641
|
+
|
|
31642
|
+
/* Under the title's first word, past the chevron (and the glyph in a mixed list). */
|
|
31643
|
+
.crewlet-notice-list__panel {
|
|
31644
|
+
display: grid;
|
|
31645
|
+
gap: 2px;
|
|
31646
|
+
padding: 0 0 var(--spacing-1) var(--crewlet-notice-list-mark);
|
|
31647
|
+
overflow-wrap: anywhere;
|
|
31648
|
+
}
|
|
31649
|
+
|
|
31650
|
+
.crewlet-notice-list--mixed .crewlet-notice-list__panel {
|
|
31651
|
+
padding-inline-start: calc(2 * var(--crewlet-notice-list-mark));
|
|
31652
|
+
}
|
|
31653
|
+
|
|
31654
|
+
.crewlet-notice-list__panel[hidden] {
|
|
31655
|
+
display: none;
|
|
31656
|
+
}
|
|
31657
|
+
|
|
31658
|
+
/* A narrow list puts each action under its title. */
|
|
31659
|
+
@container crewlet-notice-list (width < 28rem) {
|
|
31660
|
+
.crewlet-notice-list--compact .crewlet-disclosure__bar {
|
|
31661
|
+
flex-wrap: wrap;
|
|
31662
|
+
row-gap: 0;
|
|
31663
|
+
}
|
|
31664
|
+
|
|
31665
|
+
.crewlet-notice-list--compact .crewlet-disclosure__bar > .crewlet-notice-list__toggle {
|
|
31666
|
+
flex-basis: 100%;
|
|
31667
|
+
}
|
|
31668
|
+
|
|
31669
|
+
.crewlet-notice-list--compact .crewlet-disclosure__actions {
|
|
31670
|
+
min-height: 0;
|
|
31671
|
+
margin-inline-start: var(--crewlet-notice-list-mark);
|
|
31672
|
+
}
|
|
31673
|
+
}
|
|
31674
|
+
|
|
31516
31675
|
|
|
31517
31676
|
/* NumberField-G7H4VNZP.css */
|
|
31518
31677
|
/* NumberField: a field between its two steppers, then its preset chips. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewlethq/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.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.151.0",
|
|
46
|
+
"@crewlethq/tokens": "0.151.0",
|
|
47
47
|
"prosemirror-commands": "1.7.2",
|
|
48
48
|
"prosemirror-gapcursor": "1.4.1",
|
|
49
49
|
"prosemirror-history": "1.5.1",
|
package/dist/chunk-7J2RIAZ4.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { Button } from './chunk-IMF3CPTY.js';
|
|
2
|
-
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
3
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import { useState } from 'react';
|
|
5
|
-
import { CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
|
|
6
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
function NoticeLineView({
|
|
9
|
-
line,
|
|
10
|
-
shown,
|
|
11
|
-
andMore,
|
|
12
|
-
className
|
|
13
|
-
}) {
|
|
14
|
-
const [open, setOpen] = useState(false);
|
|
15
|
-
const folds = line.items.length > shown + 1 && !open;
|
|
16
|
-
const items = folds ? line.items.slice(0, shown) : line.items;
|
|
17
|
-
return /* @__PURE__ */ jsxs("p", { className: cx("crewlet-notice-list__line", className), children: [
|
|
18
|
-
line.subject != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
-
/* @__PURE__ */ jsx("strong", { className: "crewlet-notice-list__subject", children: line.subject }),
|
|
20
|
-
": "
|
|
21
|
-
] }) : null,
|
|
22
|
-
items.map((item, i) => /* @__PURE__ */ jsxs("span", { children: [
|
|
23
|
-
i > 0 ? ", " : null,
|
|
24
|
-
item
|
|
25
|
-
] }, i)),
|
|
26
|
-
folds ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
-
" ",
|
|
28
|
-
/* @__PURE__ */ jsx("button", { type: "button", className: "crewlet-notice-list__and-more", onClick: () => setOpen(true), children: andMore(line.items.length - shown) })
|
|
29
|
-
] }) : null
|
|
30
|
-
] });
|
|
31
|
-
}
|
|
32
|
-
var NOTICE_LIST_LABELS = {
|
|
33
|
-
more: (hidden) => `Show ${hidden} more`,
|
|
34
|
-
less: "Show fewer",
|
|
35
|
-
andMore: (hidden) => `and ${hidden} more`,
|
|
36
|
-
tones: { danger: "Problem", warning: "Warning", info: "Note", success: "Done", neutral: "Note" }
|
|
37
|
-
};
|
|
38
|
-
var GLYPHS = {
|
|
39
|
-
neutral: /* @__PURE__ */ jsx(InfoGlyph, { size: "sm" }),
|
|
40
|
-
info: /* @__PURE__ */ jsx(InfoGlyph, { size: "sm" }),
|
|
41
|
-
success: /* @__PURE__ */ jsx(CircleCheckGlyph, { size: "sm" }),
|
|
42
|
-
warning: /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "sm" }),
|
|
43
|
-
danger: /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "sm" })
|
|
44
|
-
};
|
|
45
|
-
function NoticeList({
|
|
46
|
-
notices,
|
|
47
|
-
collapseAfter = 3,
|
|
48
|
-
itemsShown = 4,
|
|
49
|
-
label,
|
|
50
|
-
labels: overrides,
|
|
51
|
-
className
|
|
52
|
-
}) {
|
|
53
|
-
const words = { ...NOTICE_LIST_LABELS, ...overrides, tones: { ...NOTICE_LIST_LABELS.tones, ...overrides?.tones } };
|
|
54
|
-
const [expanded, setExpanded] = useState(false);
|
|
55
|
-
if (notices.length === 0) return null;
|
|
56
|
-
const mixed = new Set(notices.map((n) => n.tone ?? "neutral")).size > 1;
|
|
57
|
-
const folds = notices.length > collapseAfter + 1;
|
|
58
|
-
const shown = folds && !expanded ? notices.slice(0, collapseAfter) : notices;
|
|
59
|
-
return /* @__PURE__ */ jsxs("div", { className: cx("crewlet-notice-list", mixed && "crewlet-notice-list--mixed", className), children: [
|
|
60
|
-
/* @__PURE__ */ jsx("ul", { className: "crewlet-notice-list__items", "aria-label": label, children: shown.map((notice) => /* @__PURE__ */ jsxs("li", { className: "crewlet-notice-list__item", children: [
|
|
61
|
-
mixed ? /* @__PURE__ */ jsx("span", { className: cx("crewlet-notice-list__glyph", `is-${notice.tone ?? "neutral"}`), "aria-hidden": true, children: GLYPHS[notice.tone ?? "neutral"] }) : null,
|
|
62
|
-
/* @__PURE__ */ jsxs("div", { className: "crewlet-notice-list__text", children: [
|
|
63
|
-
/* @__PURE__ */ jsxs("p", { className: "crewlet-notice-list__title", children: [
|
|
64
|
-
mixed ? /* @__PURE__ */ jsx(VisuallyHidden, { children: `${words.tones[notice.tone ?? "neutral"]}: ` }) : null,
|
|
65
|
-
notice.subject != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
|
-
/* @__PURE__ */ jsx("strong", { className: "crewlet-notice-list__subject", children: notice.subject }),
|
|
67
|
-
": "
|
|
68
|
-
] }) : null,
|
|
69
|
-
notice.title
|
|
70
|
-
] }),
|
|
71
|
-
notice.lines?.map((line, i) => /* @__PURE__ */ jsx(NoticeLineView, { line, shown: itemsShown, andMore: words.andMore }, i)),
|
|
72
|
-
notice.detail != null ? /* @__PURE__ */ jsx("p", { className: "crewlet-notice-list__detail", children: notice.detail }) : null
|
|
73
|
-
] }),
|
|
74
|
-
notice.action != null ? /* @__PURE__ */ jsx("div", { className: "crewlet-notice-list__action", children: notice.action }) : null
|
|
75
|
-
] }, notice.key)) }),
|
|
76
|
-
folds ? /* @__PURE__ */ jsx(
|
|
77
|
-
Button,
|
|
78
|
-
{
|
|
79
|
-
variant: "ghost",
|
|
80
|
-
size: "small",
|
|
81
|
-
flush: true,
|
|
82
|
-
className: "crewlet-notice-list__more",
|
|
83
|
-
"aria-expanded": expanded,
|
|
84
|
-
onClick: () => setExpanded((e) => !e),
|
|
85
|
-
children: expanded ? words.less : words.more(notices.length - collapseAfter)
|
|
86
|
-
}
|
|
87
|
-
) : null
|
|
88
|
-
] });
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export { NOTICE_LIST_LABELS, NoticeLineView, NoticeList };
|
package/dist/chunk-UEO3A76N.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
2
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Callout-WLZKAFPT.css';
|
|
4
|
-
import { XGlyph, CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
|
|
5
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
var GLYPHS = {
|
|
8
|
-
neutral: /* @__PURE__ */ jsx(InfoGlyph, { size: "md" }),
|
|
9
|
-
info: /* @__PURE__ */ jsx(InfoGlyph, { size: "md" }),
|
|
10
|
-
success: /* @__PURE__ */ jsx(CircleCheckGlyph, { size: "md" }),
|
|
11
|
-
warning: /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "md" }),
|
|
12
|
-
danger: /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "md" })
|
|
13
|
-
};
|
|
14
|
-
var Callout = ({
|
|
15
|
-
variant = "info",
|
|
16
|
-
title,
|
|
17
|
-
icon,
|
|
18
|
-
layout = "card",
|
|
19
|
-
appearance = "tinted",
|
|
20
|
-
action,
|
|
21
|
-
onDismiss,
|
|
22
|
-
dismissLabel = "Dismiss",
|
|
23
|
-
live,
|
|
24
|
-
className,
|
|
25
|
-
children,
|
|
26
|
-
...rest
|
|
27
|
-
}) => /* @__PURE__ */ jsxs(
|
|
28
|
-
"div",
|
|
29
|
-
{
|
|
30
|
-
...rest,
|
|
31
|
-
"aria-live": live,
|
|
32
|
-
className: cx(
|
|
33
|
-
"crewlet-callout",
|
|
34
|
-
`crewlet-callout--${variant}`,
|
|
35
|
-
`crewlet-callout--${layout}`,
|
|
36
|
-
appearance === "quiet" && "crewlet-callout--quiet",
|
|
37
|
-
className
|
|
38
|
-
),
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-callout__icon", "aria-hidden": true, children: icon ?? GLYPHS[variant] }),
|
|
41
|
-
/* @__PURE__ */ jsxs("div", { className: "crewlet-callout__content", children: [
|
|
42
|
-
title ? /* @__PURE__ */ jsx("span", { className: "crewlet-callout__title", children: title }) : null,
|
|
43
|
-
children
|
|
44
|
-
] }),
|
|
45
|
-
action || onDismiss ? /* @__PURE__ */ jsxs("div", { className: "crewlet-callout__action", children: [
|
|
46
|
-
action,
|
|
47
|
-
onDismiss ? /* @__PURE__ */ jsx(
|
|
48
|
-
IconButton,
|
|
49
|
-
{
|
|
50
|
-
className: "crewlet-callout__dismiss",
|
|
51
|
-
label: dismissLabel,
|
|
52
|
-
icon: /* @__PURE__ */ jsx(XGlyph, { size: "sm" }),
|
|
53
|
-
size: "sm",
|
|
54
|
-
onClick: onDismiss
|
|
55
|
-
}
|
|
56
|
-
) : null
|
|
57
|
-
] }) : null
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
export { Callout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
2
1
|
import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
|
|
2
|
+
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
3
3
|
import './chunk-KOJPDCGQ.js';
|
|
4
4
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
5
5
|
import { safeHref, MARKDOWN_CALLOUT_TONES } from './chunk-KBZO4B33.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Select } from './chunk-657WR3MX.js';
|
|
2
1
|
import { typedNumber, NumberField } from './chunk-DDGHRDGV.js';
|
|
2
|
+
import { Select } from './chunk-657WR3MX.js';
|
|
3
3
|
import { PresetChips } from './chunk-6QWSGM4W.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './DurationField-TJFIAUMW.css';
|