@crewlethq/ui 0.141.1 → 0.143.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 -1
- package/dist/AttentionList/AttentionList.d.ts +7 -0
- package/dist/AttentionList/index.js +2 -1
- package/dist/{AttentionList-LVX7KRET.css → AttentionList-CUPNJX6B.css} +12 -0
- package/dist/Callout/Callout.d.ts +6 -2
- package/dist/Callout/index.js +10 -1
- package/dist/CodeBlock/index.js +1 -1
- package/dist/ColorSwatch/index.js +2 -2
- package/dist/CommandPalette/index.js +2 -2
- package/dist/Copyable/Copyable.d.ts +3 -1
- package/dist/Copyable/index.js +1 -1
- package/dist/{Copyable-U3UJL3BP.css → Copyable-U4RPG75T.css} +7 -0
- package/dist/DataTable/index.js +2 -2
- package/dist/DataView/index.js +3 -3
- package/dist/FollowBanner/index.js +3 -2
- package/dist/LinkInterstitial/index.js +3 -3
- package/dist/Modal/index.js +1 -1
- package/dist/{Modal-DL4BPUOM.css → Modal-TVHT3TEL.css} +2 -0
- package/dist/NoticeList/NoticeLineView.d.ts +8 -0
- package/dist/NoticeList/NoticeList.d.ts +50 -0
- package/dist/NoticeList/groupNotices.d.ts +26 -0
- package/dist/NoticeList/index.d.ts +5 -0
- package/dist/NoticeList/index.js +13 -0
- package/dist/NoticeList-LD5APCDU.css +147 -0
- package/dist/ProposalCard/index.js +2 -2
- package/dist/RichEditor/index.js +3 -2
- package/dist/SandboxedFrame/index.js +3 -2
- package/dist/ShareDialog/index.js +4 -4
- package/dist/Switcher/index.js +2 -2
- package/dist/TimeRangePicker/index.js +3 -3
- package/dist/{chunk-5A6PJL5Z.js → chunk-3CUYCSYU.js} +1 -1
- package/dist/{chunk-5VCODDIF.js → chunk-3SWOS2VS.js} +3 -1
- package/dist/{chunk-VWSDM4Y6.js → chunk-4ZC2WPUS.js} +18 -2
- package/dist/{chunk-WTLHCUDU.js → chunk-5LLL6E75.js} +1 -1
- package/dist/{chunk-TIGY46IQ.js → chunk-6KDHSNMA.js} +2 -2
- package/dist/{chunk-RHQWN7DT.js → chunk-6MIZGBRJ.js} +2 -2
- package/dist/{chunk-RCQLXOGS.js → chunk-75NL56IJ.js} +17 -2
- package/dist/{chunk-YRFUJI6W.js → chunk-AGPYXCLM.js} +1 -1
- package/dist/{chunk-Z5V6SJSI.js → chunk-E5WFVNNU.js} +1 -1
- package/dist/chunk-HEYZBH5D.js +91 -0
- package/dist/{chunk-OTATFJJX.js → chunk-LEG2G7CD.js} +1 -1
- package/dist/{chunk-C4TJTJVU.js → chunk-LZHUYFR4.js} +1 -1
- package/dist/{chunk-LGC2Q4IO.js → chunk-OTSZWAQP.js} +1 -1
- package/dist/{chunk-VMYFLZFW.js → chunk-PEBOC3P7.js} +1 -1
- package/dist/chunk-QS5M3A4I.js +41 -0
- package/dist/{chunk-U7G5N5QN.js → chunk-UPXQS3IO.js} +1 -1
- package/dist/{chunk-DPAC4WAI.js → chunk-VRIGGOSK.js} +1 -1
- package/dist/{chunk-PUXIGS42.js → chunk-WMYRWQOE.js} +2 -2
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +35 -33
- package/dist/index.js +35 -33
- package/dist/styles.css +174 -3
- package/package.json +3 -3
- /package/dist/{chunk-K6N75QSD.js → chunk-RH6TJZRO.js} +0 -0
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ import { Button } from '@crewlethq/ui/Button'; // 8 KB of CSS, not 182 KB
|
|
|
45
45
|
| Forms | `Input`, `Textarea`, `Label`, `FormField`, `FormRow`, `Checkbox`, `CheckboxGroup`, `ConfirmField`, `Select`, `Tag`, `TagsInput`, `DateTimePicker`, `TimeWindowPicker`, `TimeRangePicker`, `ImageUpload`, `CharacterPicker`, `HuePicker`, `AvatarPicker`, `FactList`, `ChoiceList`, `ChoiceCards`, `MemberPicker` (groups granted whole, with members left out or chosen on their own, and `chosenMembers`), `KeyValueRows` (keys and their values as rows under one column head, with `keyValueRowsLabels`), `ChipField` (chosen items as chips inside the field), `PersonRow` (a person or an agent as one row of a list), `Composer`, `MarkdownEditor`, `RichEditor` (with `preloadRichEditor`, and the round trip `roundTripMarkdown` and `canonicalMarkdown` from `@crewlethq/ui/RichEditorMarkdown`) |
|
|
46
46
|
| Data display | `DataGrid` (with `useDataGridDriving`, `useAnyDataGridDriving` and `countDataGridRows`), `DataTable`, `CopyableCell`, `Table`, the read-only table cells (`TableKeyCell`, `TableNumberCell`, `TableDateCell`, `TableEntityCell`, `TableStatusCell`, `TableTagsCell`, `TableTextCell`, `TableTwoLineCell`), `StatCard`, `Meter`, `SegmentedMeter`, `Stepper`, `PricingCard`, `Avatar`, `AvatarStack`, `EntityChip`, `CodeBlock`, `QrCode`, `ObjectHeader`, `FactLine`, `SetByLine` (set, seen, observed or confirmed by, with `SET_BY_VERBS`), `GraphCanvas` (a layered map of clusters, groups and three families of line, with its legend, the card beside an entry, the selection dock and fullscreen, its pure layout `layoutGraph`, the trunks `graphTrunks`, the reach `graphReach` and the keyboard walk `graphStep`), `Skeleton`, `Eyebrow`, `StatGroup`, `PinTile`, `IconTile`, `SettingsTable` (with `SettingsTable.Row`), `CatalogTile` |
|
|
47
47
|
| List screens | `DataView`, and its parts on their own: `DataViewToolbar`, `FilterAxisBar`, `FilterAxisChip`, `FilterPill`, plus the filter model (`filterDefsFromColumns`, `applyColumnFilters`, `filterPredicate`, `blankFilterValue`) |
|
|
48
|
-
| Feedback and overlays | `Callout`, `AttentionList` (what needs a person, as rows in one card), `ConflictNote`, `EditingStatus`, `Toaster`, `Modal` (with `variant="sheet"`), `ConfirmModal`, `CommandPalette`, `Tooltip`, `Popover`, `Announcer` |
|
|
48
|
+
| Feedback and overlays | `Callout`, `NoticeList` and `groupNotices` (several notices from one source, each said once), `AttentionList` (what needs a person, as rows in one card), `ConflictNote`, `EditingStatus`, `Toaster`, `Modal` (with `variant="sheet"`), `ConfirmModal`, `CommandPalette`, `Tooltip`, `Popover`, `Announcer` |
|
|
49
49
|
| Documents and review | `DiffView` and `DiffSummary` with the line diff they draw (`diffLines`, `diffStat`, `collapseDiff`, `firstChangedLines`, `splitLines`, `MAX_DIFF_LINES`, with no React in it), `DiffList`, `VersionCompare`, `CommentThread` |
|
|
50
50
|
| Conversations and the assistant | `ChatThread` (with `ChatThreadHandle`), `ChatMessage` and `ChatMessageFailure`, `MessageActions` (with `MessageAction`, `QuickReaction` and `ActionDivider`), `ReactionBar` and `AddReaction` (with `reactionWho`), `EmojiPicker` (with `EMOJI_GROUPS`, `emojiName` and `searchEmoji`), `ThreadSummary`, `ActivityLine`, `WorkingLine` (every agent at work on one line, with `workingSentence`, `workingAnnouncement` and `BouncingDots`), `MentionChip`, `MessageBubble`, `RunChip`, `StepList` and `StepStateMark`, `ProposalCard`, `ChangeList` (with `shortenUnchanged`), `StatusCard`, `ReceiptStrip`, `RefusalStrip`, `ResultTableCard`, `OpenInAppCard`, `BriefCard` (with `points`, what was said, each citing its message), `EntityList`, `RecordChip` and `RecordChipList` (a record named in a sentence, opening a peek, and the Also read line), `RefusalCard`, `SuggestionRow` and `SuggestionList`, `SendButton`, a transcript's timeline (`ChatDay` with `ChatDayPill`, `ChatDivider`), `LinkCard` (a link unfurled under its message), `MentionMenu` (with `mentionQuery`), `ActionCard` and `ActionCardRow` |
|
|
51
51
|
| Charts | `Legend`, `BarList`, `StackedBar`, `StackedColumns`, `StackedRing`, `ActivityStrip`, `TimeSeries`, `Sparkline` (with its `fine` weight), the reading layer they share (`ChartTooltip`, `useChartHover`), and the ramp (`DATA_COLORS`, `DATA_COLOR_OTHER`, `dataColor`) |
|
|
@@ -208,6 +208,18 @@ places:
|
|
|
208
208
|
- A surface that pans or zooms dispatches `LAYER_REPOSITION_EVENT` on its host
|
|
209
209
|
when the content beneath it moves, and every panel anchored inside follows.
|
|
210
210
|
|
|
211
|
+
## Changes in 0.142.0
|
|
212
|
+
|
|
213
|
+
### Notices said once, with one action each
|
|
214
|
+
|
|
215
|
+
**`NoticeList` is new**: several things to know from one source, inside a `Callout` or on its own. Each `Notice` is a bold `subject`, a one-line `title`, its specifics as `lines` (an optional subject and a comma list folded after `itemsShown`, 4, behind "and N more"), the explanation once as `detail`, and one `action` at the row's end (under the text when the list is narrower than 28rem). Past `collapseAfter` notices (3) the rest fold behind "Show N more", and one past the limit is shown rather than folded. A glyph per row, and its tone in words for a screen reader, only when the tones differ. Every word is the caller's (`labels`, with `NOTICE_LIST_LABELS` as the defaults).
|
|
216
|
+
|
|
217
|
+
**`groupNotices` merges repeats**: entries of one `kind` become one notice. One subject lists its `item`s; several subjects without items become a count (`count`, "9 agents") with the names listed; several with items get a line each. Kinds keep their order inside each tone, worst tone first.
|
|
218
|
+
|
|
219
|
+
**`AttentionList` rows take a `subject` and `lines`**: the row's subject in bold before its title, and its specifics under the title, folded as a `NoticeList`'s are, so a panel says a repeated finding once.
|
|
220
|
+
|
|
221
|
+
**`Callout` takes `onDismiss`**: an X after the action, named by `dismissLabel` ("Dismiss"), for a notice the reader may put away.
|
|
222
|
+
|
|
211
223
|
## Changes in 0.140.0
|
|
212
224
|
|
|
213
225
|
### A change drawn as the document it changed
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import { type NoticeLine } from '../NoticeList/NoticeList.js';
|
|
2
3
|
import { type HeadingLevel } from '../utils/headingLevel.js';
|
|
3
4
|
/** How much an item matters: something broken, something owed, or news. */
|
|
4
5
|
export type AttentionTone = 'danger' | 'warning' | 'info';
|
|
@@ -8,8 +9,12 @@ export interface AttentionItem {
|
|
|
8
9
|
tone: AttentionTone;
|
|
9
10
|
/** What it is about, as a picture beside the title: a vendor's mark. Decorative. */
|
|
10
11
|
media?: ReactNode;
|
|
12
|
+
/** Who or what it is about, in bold before the title. */
|
|
13
|
+
subject?: ReactNode;
|
|
11
14
|
/** One line: what is wrong. */
|
|
12
15
|
title: ReactNode;
|
|
16
|
+
/** The specifics under the title, one line per subject, folded after a few. */
|
|
17
|
+
lines?: readonly NoticeLine[] | undefined;
|
|
13
18
|
/** One quieter line: who it stops, since when. */
|
|
14
19
|
meta?: ReactNode;
|
|
15
20
|
/** Its one fix, at the row's end: a small secondary button or link. */
|
|
@@ -25,6 +30,8 @@ export interface AttentionListLabels {
|
|
|
25
30
|
details: string;
|
|
26
31
|
/** The control that shows the rows past the first few: "Show 3 more". */
|
|
27
32
|
more: (hidden: number) => string;
|
|
33
|
+
/** The fold at the end of a row's specifics: "and 6 more". */
|
|
34
|
+
andMore: (hidden: number) => string;
|
|
28
35
|
less: string;
|
|
29
36
|
/** The heading's counts in words, for a screen reader: "1 problem, 2 warnings". */
|
|
30
37
|
summary: (counts: Record<AttentionTone, number>) => string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-
|
|
1
|
+
export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-4ZC2WPUS.js';
|
|
2
|
+
import '../chunk-HEYZBH5D.js';
|
|
2
3
|
import '../chunk-E7KRB77B.js';
|
|
3
4
|
import '../chunk-AV2DXAEL.js';
|
|
4
5
|
import '../chunk-475DOAWF.js';
|
|
@@ -134,6 +134,18 @@
|
|
|
134
134
|
white-space: nowrap;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
.crewlet-attention-list__subject {
|
|
138
|
+
font-weight: var(--font-weight-semibold);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* A row's specifics: the meta line's ink and size, wrapping, folded after a few. */
|
|
142
|
+
.crewlet-attention-list__items {
|
|
143
|
+
margin: 0;
|
|
144
|
+
color: var(--color-text-secondary);
|
|
145
|
+
font-size: var(--font-size-xs);
|
|
146
|
+
overflow-wrap: anywhere;
|
|
147
|
+
}
|
|
148
|
+
|
|
137
149
|
.crewlet-attention-list__meta {
|
|
138
150
|
overflow: hidden;
|
|
139
151
|
color: var(--color-text-secondary);
|
|
@@ -41,8 +41,12 @@ export interface CalloutProps extends Omit<HTMLAttributes<HTMLDivElement>, 'titl
|
|
|
41
41
|
icon?: ReactNode;
|
|
42
42
|
layout?: CalloutLayout | undefined;
|
|
43
43
|
appearance?: CalloutAppearance | undefined;
|
|
44
|
-
/**
|
|
44
|
+
/** The one control at the trailing edge: "Reconnect", "Open Schedules". */
|
|
45
45
|
action?: ReactNode;
|
|
46
|
+
/** Puts the callout away: an X after the action. Only where the reader may. */
|
|
47
|
+
onDismiss?: (() => void) | undefined;
|
|
48
|
+
/** The X's name for a screen reader. */
|
|
49
|
+
dismissLabel?: string | undefined;
|
|
46
50
|
/**
|
|
47
51
|
* Announce this when it appears. OFF by default, which is the change from
|
|
48
52
|
* 0.2.0: every static banner on a screen was a live region, so a screen
|
|
@@ -62,4 +66,4 @@ export interface CalloutProps extends Omit<HTMLAttributes<HTMLDivElement>, 'titl
|
|
|
62
66
|
* anything that is the OUTCOME of a press they just made should not be a
|
|
63
67
|
* callout they have to go looking for.
|
|
64
68
|
*/
|
|
65
|
-
export declare const Callout: ({ variant, title, icon, layout, appearance, action, live, className, children, ...rest }: CalloutProps) => import("react").JSX.Element;
|
|
69
|
+
export declare const Callout: ({ variant, title, icon, layout, appearance, action, onDismiss, dismissLabel, live, className, children, ...rest }: CalloutProps) => import("react").JSX.Element;
|
package/dist/Callout/index.js
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
export { Callout } from '../chunk-
|
|
1
|
+
export { Callout } from '../chunk-75NL56IJ.js';
|
|
2
|
+
import '../chunk-P5HNBRIS.js';
|
|
3
|
+
import '../chunk-TDFLCUBE.js';
|
|
4
|
+
import '../chunk-3YJB5ZF5.js';
|
|
5
|
+
import '../chunk-L72URIHR.js';
|
|
6
|
+
import '../chunk-HTS5RJ7S.js';
|
|
7
|
+
import '../chunk-FIX72ZEC.js';
|
|
8
|
+
import '../chunk-EDPMHSLZ.js';
|
|
9
|
+
import '../chunk-4ITETIGZ.js';
|
|
10
|
+
import '../chunk-RRRK2KB6.js';
|
|
2
11
|
import '../chunk-ODEQTPFM.js';
|
package/dist/CodeBlock/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ColorSwatch } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ColorSwatch } from '../chunk-LEG2G7CD.js';
|
|
2
|
+
import '../chunk-3SWOS2VS.js';
|
|
3
3
|
import '../chunk-NTBZQISB.js';
|
|
4
4
|
import '../chunk-STJ7QBC3.js';
|
|
5
5
|
import '../chunk-DTIW4CHZ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CommandPalette } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CommandPalette } from '../chunk-UPXQS3IO.js';
|
|
2
|
+
import '../chunk-5LLL6E75.js';
|
|
3
3
|
import '../chunk-KW7T23RT.js';
|
|
4
4
|
import '../chunk-NBXUIEKY.js';
|
|
5
5
|
import '../chunk-NICEDVZM.js';
|
|
@@ -4,6 +4,8 @@ export interface CopyableProps {
|
|
|
4
4
|
value: string | number | null | undefined;
|
|
5
5
|
/** Shown instead of the value, when the value itself is not what to read. */
|
|
6
6
|
display?: string | undefined;
|
|
7
|
+
/** `display` is words rather than a shortened identifier: drawn in the surrounding face, not mono. */
|
|
8
|
+
displayWords?: boolean | undefined;
|
|
7
9
|
variant?: CopyableVariant | undefined;
|
|
8
10
|
monospace?: boolean | undefined;
|
|
9
11
|
truncate?: boolean | undefined;
|
|
@@ -30,4 +32,4 @@ export interface CopyableProps {
|
|
|
30
32
|
* An identifier with a control that copies it. The value is plain text and the
|
|
31
33
|
* button the one tab stop; a clipboard the browser refuses is reported.
|
|
32
34
|
*/
|
|
33
|
-
export declare const Copyable: ({ value, display, variant, monospace, truncate, truncateLength, ariaLabel, title, copiedMessage, failedMessage, resetMs, failedResetMs, className, }: CopyableProps) => import("react").JSX.Element | null;
|
|
35
|
+
export declare const Copyable: ({ value, display, displayWords, variant, monospace, truncate, truncateLength, ariaLabel, title, copiedMessage, failedMessage, resetMs, failedResetMs, className, }: CopyableProps) => import("react").JSX.Element | null;
|
package/dist/Copyable/index.js
CHANGED
|
@@ -75,6 +75,13 @@
|
|
|
75
75
|
color: inherit;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
/* Words drawn in an identifier's place take the face of the text around them. */
|
|
79
|
+
.crewlet-copyable--words .crewlet-copyable__value {
|
|
80
|
+
font-family: inherit;
|
|
81
|
+
font-variant-ligatures: normal;
|
|
82
|
+
letter-spacing: inherit;
|
|
83
|
+
}
|
|
84
|
+
|
|
78
85
|
/* ---- block ------------------------------------------------------------- */
|
|
79
86
|
|
|
80
87
|
.crewlet-copyable--block {
|
package/dist/DataTable/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-VRIGGOSK.js';
|
|
2
|
+
import '../chunk-5LLL6E75.js';
|
|
3
3
|
import '../chunk-STJ7QBC3.js';
|
|
4
4
|
import '../chunk-DTIW4CHZ.js';
|
|
5
5
|
import '../chunk-WGLOH33S.js';
|
package/dist/DataView/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-
|
|
1
|
+
export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-PEBOC3P7.js';
|
|
2
2
|
import '../chunk-FPDIHEM4.js';
|
|
3
3
|
import '../chunk-JL27TIRV.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-VRIGGOSK.js';
|
|
5
5
|
import '../chunk-POQCQ6OX.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-5LLL6E75.js';
|
|
7
7
|
import '../chunk-KW7T23RT.js';
|
|
8
8
|
import '../chunk-STJ7QBC3.js';
|
|
9
9
|
import '../chunk-DTIW4CHZ.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { FollowBanner } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { FollowBanner } from '../chunk-E5WFVNNU.js';
|
|
2
|
+
import '../chunk-75NL56IJ.js';
|
|
3
3
|
import '../chunk-CYF22JOT.js';
|
|
4
4
|
import '../chunk-XSPCITPN.js';
|
|
5
|
+
import '../chunk-P5HNBRIS.js';
|
|
5
6
|
import '../chunk-TDFLCUBE.js';
|
|
6
7
|
import '../chunk-3YJB5ZF5.js';
|
|
7
8
|
import '../chunk-L72URIHR.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { LinkInterstitial, openExternal } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { LinkInterstitial, openExternal } from '../chunk-WMYRWQOE.js';
|
|
2
|
+
import '../chunk-5LLL6E75.js';
|
|
3
3
|
import '../chunk-W4UJWFCZ.js';
|
|
4
4
|
import '../chunk-HZXS5CEL.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-75NL56IJ.js';
|
|
6
6
|
import '../chunk-CYF22JOT.js';
|
|
7
7
|
import '../chunk-XSPCITPN.js';
|
|
8
8
|
import '../chunk-P5HNBRIS.js';
|
package/dist/Modal/index.js
CHANGED
|
@@ -448,6 +448,8 @@
|
|
|
448
448
|
font-weight: var(--font-weight-semibold);
|
|
449
449
|
line-height: var(--font-line-height-tight);
|
|
450
450
|
color: var(--color-text-primary);
|
|
451
|
+
/* An identifier in a title (a secret's name) breaks where it must rather than run under the close control. */
|
|
452
|
+
overflow-wrap: anywhere;
|
|
451
453
|
}
|
|
452
454
|
|
|
453
455
|
/*
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NoticeLine } from './NoticeList.js';
|
|
2
|
+
/** A subject's specifics on one line, folded after `shown` behind "and N more". */
|
|
3
|
+
export declare function NoticeLineView({ line, shown, andMore, className, }: {
|
|
4
|
+
line: NoticeLine;
|
|
5
|
+
shown: number;
|
|
6
|
+
andMore: (hidden: number) => string;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { Tone } from '../utils/tone.js';
|
|
3
|
+
export type NoticeTone = Exclude<Tone, 'brand'>;
|
|
4
|
+
/** The specifics under a notice's title, with who they belong to. */
|
|
5
|
+
export interface NoticeLine {
|
|
6
|
+
subject?: ReactNode;
|
|
7
|
+
items: readonly ReactNode[];
|
|
8
|
+
}
|
|
9
|
+
/** One thing to know, said once however many places it applies to. */
|
|
10
|
+
export interface Notice {
|
|
11
|
+
key: string;
|
|
12
|
+
/** Drawn as a glyph only in a list that mixes tones. */
|
|
13
|
+
tone?: NoticeTone | undefined;
|
|
14
|
+
/** Who or what it is about, in bold before the title. */
|
|
15
|
+
subject?: ReactNode;
|
|
16
|
+
/** One line: what is wrong. */
|
|
17
|
+
title: ReactNode;
|
|
18
|
+
/** The specifics, one line per subject, folded after a few. */
|
|
19
|
+
lines?: readonly NoticeLine[] | undefined;
|
|
20
|
+
/** The effect and the fix, in a sentence or two. */
|
|
21
|
+
detail?: ReactNode;
|
|
22
|
+
/** The one action, at the notice's end. */
|
|
23
|
+
action?: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export interface NoticeListLabels {
|
|
26
|
+
more: (hidden: number) => string;
|
|
27
|
+
less: string;
|
|
28
|
+
andMore: (hidden: number) => string;
|
|
29
|
+
/** Each tone in words, before a title, in a list that mixes tones. */
|
|
30
|
+
tones: Record<NoticeTone, string>;
|
|
31
|
+
}
|
|
32
|
+
export declare const NOTICE_LIST_LABELS: NoticeListLabels;
|
|
33
|
+
export interface NoticeListProps {
|
|
34
|
+
notices: readonly Notice[];
|
|
35
|
+
/** Notices shown before the rest fold behind "Show N more". */
|
|
36
|
+
collapseAfter?: number | undefined;
|
|
37
|
+
/** Items shown on a line before "and N more". */
|
|
38
|
+
itemsShown?: number | undefined;
|
|
39
|
+
/** The list's name for a screen reader. */
|
|
40
|
+
label?: string | undefined;
|
|
41
|
+
labels?: Partial<NoticeListLabels> | undefined;
|
|
42
|
+
className?: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Several things to know from one source, one row each: the subject in bold,
|
|
46
|
+
* a one-line title, the specifics folded after a few, the shared explanation
|
|
47
|
+
* once, and one action at the row's end. Inside a Callout it takes the
|
|
48
|
+
* callout's ink; a glyph per row only when the tones differ.
|
|
49
|
+
*/
|
|
50
|
+
export declare function NoticeList({ notices, collapseAfter, itemsShown, label, labels: overrides, className, }: NoticeListProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Notice, NoticeTone } from './NoticeList.js';
|
|
3
|
+
/** One finding as its source reports it, before repeats are merged. */
|
|
4
|
+
export interface NoticeEntry {
|
|
5
|
+
/** Entries that say the same thing share a kind and merge into one notice. */
|
|
6
|
+
kind: string;
|
|
7
|
+
tone?: NoticeTone | undefined;
|
|
8
|
+
/** Who or what it is about: a seat, a unit, a server. */
|
|
9
|
+
subject?: string | undefined;
|
|
10
|
+
/** The specific thing within the subject: a schedule, a file. */
|
|
11
|
+
item?: string | undefined;
|
|
12
|
+
title: ReactNode;
|
|
13
|
+
/** The effect and the fix, the same words for every entry of the kind. */
|
|
14
|
+
detail?: ReactNode;
|
|
15
|
+
action?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export interface GroupNoticesOptions {
|
|
18
|
+
/** Several subjects named together when none carries items: "9 agents". */
|
|
19
|
+
count: (subjects: readonly string[]) => ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Entries merged into one notice per kind, so a warning raised once per
|
|
23
|
+
* schedule or per seat is read once, with its subjects and items listed under
|
|
24
|
+
* it. Kinds keep their first-seen order inside each tone, worst tone first.
|
|
25
|
+
*/
|
|
26
|
+
export declare function groupNotices(entries: readonly NoticeEntry[], { count }: GroupNoticesOptions): Notice[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './NoticeList.css';
|
|
2
|
+
export { NoticeList, NOTICE_LIST_LABELS } from './NoticeList.js';
|
|
3
|
+
export type { Notice, NoticeLine, NoticeListLabels, NoticeListProps, NoticeTone } from './NoticeList.js';
|
|
4
|
+
export { groupNotices } from './groupNotices.js';
|
|
5
|
+
export type { GroupNoticesOptions, NoticeEntry } from './groupNotices.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { groupNotices } from '../chunk-QS5M3A4I.js';
|
|
2
|
+
export { NOTICE_LIST_LABELS, NoticeList } from '../chunk-HEYZBH5D.js';
|
|
3
|
+
import '../chunk-CYF22JOT.js';
|
|
4
|
+
import '../chunk-XSPCITPN.js';
|
|
5
|
+
import '../chunk-TDFLCUBE.js';
|
|
6
|
+
import '../chunk-3YJB5ZF5.js';
|
|
7
|
+
import '../chunk-L72URIHR.js';
|
|
8
|
+
import '../chunk-HTS5RJ7S.js';
|
|
9
|
+
import '../chunk-FIX72ZEC.js';
|
|
10
|
+
import '../chunk-EDPMHSLZ.js';
|
|
11
|
+
import '../chunk-4ITETIGZ.js';
|
|
12
|
+
import '../chunk-RRRK2KB6.js';
|
|
13
|
+
import '../chunk-ODEQTPFM.js';
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Several things to know from one source. Inside a Callout it takes the
|
|
3
|
+
* callout's ink and size; on its own, the page's secondary ink.
|
|
4
|
+
*/
|
|
5
|
+
.crewlet-notice-list {
|
|
6
|
+
display: grid;
|
|
7
|
+
justify-items: start;
|
|
8
|
+
gap: var(--spacing-1);
|
|
9
|
+
min-width: 0;
|
|
10
|
+
container: crewlet-notice-list / inline-size;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.crewlet-notice-list__items {
|
|
14
|
+
display: grid;
|
|
15
|
+
gap: var(--spacing-3);
|
|
16
|
+
width: 100%;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
list-style: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Text, then the action's column only where a row has one; every part placed, so the action never lands first. */
|
|
23
|
+
.crewlet-notice-list__item {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: minmax(0, 1fr);
|
|
26
|
+
grid-auto-columns: auto;
|
|
27
|
+
column-gap: var(--spacing-3);
|
|
28
|
+
align-items: start;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.crewlet-notice-list__text {
|
|
32
|
+
grid-row: 1;
|
|
33
|
+
grid-column: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.crewlet-notice-list__action {
|
|
37
|
+
grid-row: 1;
|
|
38
|
+
grid-column: 2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.crewlet-notice-list--mixed .crewlet-notice-list__item {
|
|
42
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.crewlet-notice-list--mixed .crewlet-notice-list__glyph {
|
|
46
|
+
grid-row: 1;
|
|
47
|
+
grid-column: 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.crewlet-notice-list--mixed .crewlet-notice-list__text {
|
|
51
|
+
grid-column: 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.crewlet-notice-list--mixed .crewlet-notice-list__action {
|
|
55
|
+
grid-column: 3;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.crewlet-notice-list__glyph {
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
height: 1lh;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.crewlet-notice-list__glyph.is-info,
|
|
65
|
+
.crewlet-notice-list__glyph.is-neutral {
|
|
66
|
+
color: var(--color-feedback-info-ink);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.crewlet-notice-list__glyph.is-success {
|
|
70
|
+
color: var(--color-feedback-success-ink);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.crewlet-notice-list__glyph.is-warning {
|
|
74
|
+
color: var(--color-feedback-warning-ink);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.crewlet-notice-list__glyph.is-danger {
|
|
78
|
+
color: var(--color-feedback-danger-ink);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.crewlet-notice-list__text {
|
|
82
|
+
display: grid;
|
|
83
|
+
gap: 2px;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
overflow-wrap: anywhere;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.crewlet-notice-list__title,
|
|
89
|
+
.crewlet-notice-list__line,
|
|
90
|
+
.crewlet-notice-list__detail {
|
|
91
|
+
margin: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.crewlet-notice-list__title {
|
|
95
|
+
font-weight: var(--font-weight-medium);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.crewlet-notice-list__subject {
|
|
99
|
+
font-weight: var(--font-weight-semibold);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* The detail is the same ink at regular weight: a lighter ink on a tinted fill fails contrast. */
|
|
103
|
+
.crewlet-notice-list__line,
|
|
104
|
+
.crewlet-notice-list__detail {
|
|
105
|
+
font-weight: var(--font-weight-regular);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.crewlet-notice-list__and-more {
|
|
109
|
+
padding: 0;
|
|
110
|
+
border: 0;
|
|
111
|
+
background: none;
|
|
112
|
+
color: inherit;
|
|
113
|
+
font: inherit;
|
|
114
|
+
text-decoration: underline;
|
|
115
|
+
text-underline-offset: 2px;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.crewlet-notice-list__and-more:focus-visible {
|
|
120
|
+
outline: 2px solid var(--color-focus);
|
|
121
|
+
outline-offset: 2px;
|
|
122
|
+
border-radius: var(--radius-xs);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.crewlet-notice-list__action {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-wrap: wrap;
|
|
128
|
+
align-items: center;
|
|
129
|
+
gap: var(--spacing-2);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* A narrow list puts the action under the text, so the sentence keeps the width. */
|
|
133
|
+
@container crewlet-notice-list (width < 28rem) {
|
|
134
|
+
.crewlet-notice-list__action {
|
|
135
|
+
grid-row: 2;
|
|
136
|
+
grid-column: 1;
|
|
137
|
+
margin-top: var(--spacing-1);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.crewlet-notice-list--mixed .crewlet-notice-list__action {
|
|
141
|
+
grid-column: 2;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.crewlet-notice-list__more {
|
|
146
|
+
color: inherit;
|
|
147
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-
|
|
1
|
+
export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-OTSZWAQP.js';
|
|
2
2
|
import '../chunk-XMXIPVOS.js';
|
|
3
3
|
import '../chunk-NB53SAL4.js';
|
|
4
4
|
import '../chunk-RGJB34YN.js';
|
|
5
5
|
import '../chunk-NWKH5FF7.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-75NL56IJ.js';
|
|
7
7
|
import '../chunk-SJ3EUCFD.js';
|
|
8
8
|
import '../chunk-GBKBME7Q.js';
|
|
9
9
|
import '../chunk-WGLOH33S.js';
|
package/dist/RichEditor/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { RichEditor, preloadRichEditor } from '../chunk-
|
|
1
|
+
export { RichEditor, preloadRichEditor } from '../chunk-3CUYCSYU.js';
|
|
2
2
|
export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
|
|
3
3
|
import '../chunk-KOJPDCGQ.js';
|
|
4
4
|
import '../chunk-KBZO4B33.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-75NL56IJ.js';
|
|
6
6
|
import '../chunk-WFAJYBLX.js';
|
|
7
7
|
import '../chunk-CYF22JOT.js';
|
|
8
8
|
import '../chunk-XSPCITPN.js';
|
|
9
|
+
import '../chunk-P5HNBRIS.js';
|
|
9
10
|
import '../chunk-TDFLCUBE.js';
|
|
10
11
|
import '../chunk-3YJB5ZF5.js';
|
|
11
12
|
import '../chunk-L72URIHR.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-
|
|
1
|
+
export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-AGPYXCLM.js';
|
|
2
2
|
import '../chunk-F6V2PTN6.js';
|
|
3
3
|
import '../chunk-ZXXDZJQN.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-75NL56IJ.js';
|
|
5
5
|
import '../chunk-WFAJYBLX.js';
|
|
6
6
|
import '../chunk-CYF22JOT.js';
|
|
7
7
|
import '../chunk-XSPCITPN.js';
|
|
8
|
+
import '../chunk-P5HNBRIS.js';
|
|
8
9
|
import '../chunk-TDFLCUBE.js';
|
|
9
10
|
import '../chunk-3YJB5ZF5.js';
|
|
10
11
|
import '../chunk-L72URIHR.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-
|
|
1
|
+
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-6MIZGBRJ.js';
|
|
2
2
|
import '../chunk-OU22GKZK.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-5LLL6E75.js';
|
|
4
4
|
import '../chunk-KW7T23RT.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-3SWOS2VS.js';
|
|
6
6
|
import '../chunk-NTBZQISB.js';
|
|
7
7
|
import '../chunk-STJ7QBC3.js';
|
|
8
8
|
import '../chunk-DTIW4CHZ.js';
|
|
9
9
|
import '../chunk-HZXS5CEL.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-75NL56IJ.js';
|
|
11
11
|
import '../chunk-265IX4YA.js';
|
|
12
12
|
import '../chunk-SPCNQUEU.js';
|
|
13
13
|
import '../chunk-YMFFGPFE.js';
|
package/dist/Switcher/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-6KDHSNMA.js';
|
|
2
|
+
import '../chunk-5LLL6E75.js';
|
|
3
|
+
import '../chunk-75NL56IJ.js';
|
|
4
4
|
import '../chunk-B3UJKLVI.js';
|
|
5
5
|
import '../chunk-PNLCBC2N.js';
|
|
6
6
|
import '../chunk-F2BE5X4J.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
2
|
-
import { Callout } from './chunk-
|
|
2
|
+
import { Callout } from './chunk-75NL56IJ.js';
|
|
3
3
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
4
4
|
import { Button } from './chunk-CYF22JOT.js';
|
|
5
5
|
import './RichEditor-5CF3QV3J.css';
|
|
@@ -3,7 +3,7 @@ import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
|
3
3
|
import { pathBreaks } from './chunk-HZXS5CEL.js';
|
|
4
4
|
import { IconButton } from './chunk-P5HNBRIS.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
-
import './Copyable-
|
|
6
|
+
import './Copyable-U4RPG75T.css';
|
|
7
7
|
import { useCallback } from 'react';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -19,6 +19,7 @@ var truncateValue = (text, length, variant) => {
|
|
|
19
19
|
var Copyable = ({
|
|
20
20
|
value,
|
|
21
21
|
display,
|
|
22
|
+
displayWords = false,
|
|
22
23
|
variant = "chip",
|
|
23
24
|
monospace = false,
|
|
24
25
|
truncate = false,
|
|
@@ -48,6 +49,7 @@ var Copyable = ({
|
|
|
48
49
|
"crewlet-copyable",
|
|
49
50
|
`crewlet-copyable--${variant}`,
|
|
50
51
|
monospace && "crewlet-copyable--monospace",
|
|
52
|
+
displayWords && display !== void 0 && "crewlet-copyable--words",
|
|
51
53
|
opaque && "crewlet-copyable--opaque",
|
|
52
54
|
state === "copied" && "is-copied",
|
|
53
55
|
state === "failed" && "is-failed",
|