@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/README.md
CHANGED
|
@@ -208,6 +208,14 @@ 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.151.0
|
|
212
|
+
|
|
213
|
+
### A standing advisory rests as one line
|
|
214
|
+
|
|
215
|
+
**`Callout` takes `collapsible`**: its `title` becomes the button that shows and hides the message, with "Review" or "Hide" after it (`showLabel`, `hideLabel`) and a turning chevron, so the callout rests as one line until the reader asks for the rest. Closed by default (`defaultOpen`, or `open` and `onOpenChange` to control it). `storageKey` keeps the reader's choice in `localStorage` under the caller's key, and storage that cannot be read leaves it working for the screen. A callout with no title draws its message as before.
|
|
216
|
+
|
|
217
|
+
**`NoticeList` takes `compact`**: one line per notice on the disclosure anatomy, its title, a quiet summary of what it applies to and its one action beside it. The specifics and the detail open under one notice at a time. The summary is the notice's new `summary`, else its subject, else its one line's subject or first item ("sonnet and 2 more"); `groupNotices` sets it to the subjects' count where several subjects carry items. A notice with nothing to open is words, its chevron's slot kept. Titles wrap rather than cut, the action moves under its title in a list narrower than 28rem, and the list folds after 5 rather than 3.
|
|
218
|
+
|
|
211
219
|
## Changes in 0.148.0
|
|
212
220
|
|
|
213
221
|
### An artifact named as a work item is, and one idea for placing a comment
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ARTIFACT_REF_KIND_LABELS, ArtifactRef } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ARTIFACT_REF_KIND_LABELS, ArtifactRef } from '../chunk-QNSAFNGT.js';
|
|
2
|
+
import '../chunk-6KCQXKFQ.js';
|
|
3
3
|
import '../chunk-KBZO4B33.js';
|
|
4
4
|
import '../chunk-RSKW25Y5.js';
|
|
5
5
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-5VTJOVK7.js';
|
|
2
|
+
import '../chunk-E2XGQAHV.js';
|
|
3
3
|
import '../chunk-E7KRB77B.js';
|
|
4
4
|
import '../chunk-AV2DXAEL.js';
|
|
5
5
|
import '../chunk-475DOAWF.js';
|
|
@@ -13,6 +13,7 @@ import '../chunk-HTS5RJ7S.js';
|
|
|
13
13
|
import '../chunk-AVJKMQXK.js';
|
|
14
14
|
import '../chunk-EDPMHSLZ.js';
|
|
15
15
|
import '../chunk-4ITETIGZ.js';
|
|
16
|
+
import '../chunk-ODN2TPIG.js';
|
|
16
17
|
import '../chunk-Y5CMDLQM.js';
|
|
17
18
|
import '../chunk-PQADV6P6.js';
|
|
18
19
|
import '../chunk-RRRK2KB6.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import type { Tone } from '../utils/tone.js';
|
|
3
3
|
/**
|
|
4
4
|
* The tones a callout speaks in.
|
|
@@ -56,6 +56,20 @@ export interface CalloutProps extends Omit<HTMLAttributes<HTMLDivElement>, 'titl
|
|
|
56
56
|
* that must interrupt.
|
|
57
57
|
*/
|
|
58
58
|
live?: 'polite' | 'assertive' | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* The title becomes the button that shows and hides the message, so the
|
|
61
|
+
* callout rests as one line. Closed by default; needs a `title`.
|
|
62
|
+
*/
|
|
63
|
+
collapsible?: boolean | undefined;
|
|
64
|
+
/** A collapsible callout's open state, controlled. */
|
|
65
|
+
open?: boolean | undefined;
|
|
66
|
+
defaultOpen?: boolean | undefined;
|
|
67
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
68
|
+
/** Keeps the reader's open or closed choice in `localStorage` under this key, from the application's registry. */
|
|
69
|
+
storageKey?: string | undefined;
|
|
70
|
+
/** The words after a collapsible title, closed and open. */
|
|
71
|
+
showLabel?: string | undefined;
|
|
72
|
+
hideLabel?: string | undefined;
|
|
59
73
|
}
|
|
60
74
|
/**
|
|
61
75
|
* A status in the content flow: an unreachable backend, a permission gate, a
|
|
@@ -66,4 +80,4 @@ export interface CalloutProps extends Omit<HTMLAttributes<HTMLDivElement>, 'titl
|
|
|
66
80
|
* anything that is the OUTCOME of a press they just made should not be a
|
|
67
81
|
* callout they have to go looking for.
|
|
68
82
|
*/
|
|
69
|
-
export declare
|
|
83
|
+
export declare function Callout({ variant, title, icon, layout, appearance, action, onDismiss, dismissLabel, live, collapsible, open: controlledOpen, defaultOpen, onOpenChange, storageKey, showLabel, hideLabel, className, children, ...rest }: CalloutProps): import("react").JSX.Element;
|
package/dist/Callout/index.js
CHANGED
|
@@ -125,6 +125,66 @@
|
|
|
125
125
|
color: inherit;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
/*
|
|
129
|
+
* COLLAPSIBLE: the title is the button that opens the message. A row-sm
|
|
130
|
+
* target that keeps the line's own height, so the closed callout is one line.
|
|
131
|
+
*/
|
|
132
|
+
.crewlet-callout__toggle {
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: var(--spacing-1);
|
|
136
|
+
max-width: 100%;
|
|
137
|
+
min-height: var(--size-row-sm);
|
|
138
|
+
margin-block: calc((1lh - var(--size-row-sm)) / 2);
|
|
139
|
+
padding: 0;
|
|
140
|
+
border: 0;
|
|
141
|
+
background: none;
|
|
142
|
+
color: inherit;
|
|
143
|
+
font: inherit;
|
|
144
|
+
text-align: start;
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.crewlet-callout__toggle-words {
|
|
149
|
+
flex: none;
|
|
150
|
+
text-underline-offset: 2px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.crewlet-callout__toggle:hover .crewlet-callout__toggle-words {
|
|
154
|
+
text-decoration: underline;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.crewlet-callout__toggle:focus-visible {
|
|
158
|
+
outline: 2px solid var(--color-focus);
|
|
159
|
+
outline-offset: 2px;
|
|
160
|
+
border-radius: var(--radius-xs);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* One glyph, turned, as every disclosure in the package does. */
|
|
164
|
+
.crewlet-callout__chevron {
|
|
165
|
+
flex: none;
|
|
166
|
+
transform: rotate(-90deg);
|
|
167
|
+
transition: transform var(--motion-duration-base) var(--motion-easing-out);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.crewlet-callout__toggle[aria-expanded='true'] .crewlet-callout__chevron {
|
|
171
|
+
transform: rotate(0deg);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.crewlet-callout__body {
|
|
175
|
+
margin-top: var(--spacing-1);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.crewlet-callout__body[hidden] {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@media (prefers-reduced-motion: reduce) {
|
|
183
|
+
.crewlet-callout__chevron {
|
|
184
|
+
transition: none;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
128
188
|
/* ── tones ─────────────────────────────────────────────────────────────── */
|
|
129
189
|
|
|
130
190
|
.crewlet-callout--info {
|
|
@@ -7,13 +7,11 @@ export interface CommentPinCursorColours {
|
|
|
7
7
|
}
|
|
8
8
|
/** The light theme's draft pin, for a page with no tokens to read. */
|
|
9
9
|
export declare const COMMENT_PIN_CURSOR_COLOURS: CommentPinCursorColours;
|
|
10
|
-
/** The cursor's side, in CSS px
|
|
10
|
+
/** The cursor's side, in CSS px. */
|
|
11
11
|
export declare const COMMENT_PIN_CURSOR_SIZE = 24;
|
|
12
12
|
/**
|
|
13
|
-
* The CSS `cursor`
|
|
14
|
-
*
|
|
15
|
-
* right-to-left page, whose pins stand up and to the left. Falls back to a
|
|
16
|
-
* crosshair where a custom cursor is not drawn.
|
|
13
|
+
* The CSS `cursor` that draws the draft pin, its hotspot on the pin's tip so a
|
|
14
|
+
* click pins where the tip is; mirrored right to left, with a crosshair fallback.
|
|
17
15
|
*/
|
|
18
16
|
export declare function commentPinCursor(colours?: Partial<CommentPinCursorColours>, dir?: 'ltr' | 'rtl'): string;
|
|
19
17
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { DURATION_FIELD_LABELS, DURATION_UNIT_SECONDS, DurationField, durationSeconds, durationValue, durationWords } from '../chunk-
|
|
2
|
-
import '../chunk-657WR3MX.js';
|
|
1
|
+
export { DURATION_FIELD_LABELS, DURATION_UNIT_SECONDS, DurationField, durationSeconds, durationValue, durationWords } from '../chunk-CKNDBAQ7.js';
|
|
3
2
|
import '../chunk-DDGHRDGV.js';
|
|
3
|
+
import '../chunk-657WR3MX.js';
|
|
4
4
|
import '../chunk-6QWSGM4W.js';
|
|
5
5
|
import '../chunk-KW7T23RT.js';
|
|
6
6
|
import '../chunk-B3UJKLVI.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FollowBanner } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { FollowBanner } from '../chunk-HXAPC3AJ.js';
|
|
2
|
+
import '../chunk-CWACQEPP.js';
|
|
3
3
|
import '../chunk-IMF3CPTY.js';
|
|
4
4
|
import '../chunk-XSPCITPN.js';
|
|
5
5
|
import '../chunk-KM5OKCW6.js';
|
package/dist/InlineRef/index.js
CHANGED
|
@@ -57,6 +57,12 @@
|
|
|
57
57
|
text-decoration: underline;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/* A wrapping link's head is an inline block, which takes no decoration from its
|
|
61
|
+
anchor: it takes the anchor's own, so a sentence's underlined link is underlined whole. */
|
|
62
|
+
.crewlet-inline-ref--wrap.crewlet-inline-ref--link > .crewlet-inline-ref__head {
|
|
63
|
+
text-decoration: inherit;
|
|
64
|
+
}
|
|
65
|
+
|
|
60
66
|
.crewlet-inline-ref--link:focus-visible {
|
|
61
67
|
outline: 2px solid var(--color-focus);
|
|
62
68
|
outline-offset: 2px;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { LinkInterstitial, openExternal } from '../chunk-
|
|
2
|
-
import '../chunk-7PK2Z5JY.js';
|
|
1
|
+
export { LinkInterstitial, openExternal } from '../chunk-7XE5TC7X.js';
|
|
3
2
|
import '../chunk-W4UJWFCZ.js';
|
|
3
|
+
import '../chunk-7PK2Z5JY.js';
|
|
4
4
|
import '../chunk-HZXS5CEL.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-CWACQEPP.js';
|
|
6
6
|
import '../chunk-IMF3CPTY.js';
|
|
7
7
|
import '../chunk-XSPCITPN.js';
|
|
8
8
|
import '../chunk-KM5OKCW6.js';
|
|
@@ -13,6 +13,8 @@ export interface Notice {
|
|
|
13
13
|
tone?: NoticeTone | undefined;
|
|
14
14
|
/** Who or what it is about, in bold before the title. */
|
|
15
15
|
subject?: ReactNode;
|
|
16
|
+
/** What it applies to in a word or two, after the title on a compact row: "9 agents". */
|
|
17
|
+
summary?: ReactNode;
|
|
16
18
|
/** One line: what is wrong. */
|
|
17
19
|
title: ReactNode;
|
|
18
20
|
/** The specifics, one line per subject, folded after a few. */
|
|
@@ -39,6 +41,11 @@ export interface NoticeListProps {
|
|
|
39
41
|
/** The list's name for a screen reader. */
|
|
40
42
|
label?: string | undefined;
|
|
41
43
|
labels?: Partial<NoticeListLabels> | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* One line per notice: its title, its summary and its action. The specifics
|
|
46
|
+
* and the detail open under one notice at a time.
|
|
47
|
+
*/
|
|
48
|
+
compact?: boolean | undefined;
|
|
42
49
|
className?: string | undefined;
|
|
43
50
|
}
|
|
44
51
|
/**
|
|
@@ -47,4 +54,4 @@ export interface NoticeListProps {
|
|
|
47
54
|
* once, and one action at the row's end. Inside a Callout it takes the
|
|
48
55
|
* callout's ink; a glyph per row only when the tones differ.
|
|
49
56
|
*/
|
|
50
|
-
export declare function NoticeList({ notices, collapseAfter, itemsShown, label, labels: overrides, className, }: NoticeListProps): import("react").JSX.Element | null;
|
|
57
|
+
export declare function NoticeList({ notices, compact, collapseAfter, itemsShown, label, labels: overrides, className, }: NoticeListProps): import("react").JSX.Element | null;
|
|
@@ -15,7 +15,7 @@ export interface NoticeEntry {
|
|
|
15
15
|
action?: ReactNode;
|
|
16
16
|
}
|
|
17
17
|
export interface GroupNoticesOptions {
|
|
18
|
-
/** Several subjects named together when
|
|
18
|
+
/** Several subjects named together: "9 agents", as the subject or, when they carry items, the summary. */
|
|
19
19
|
count: (subjects: readonly string[]) => ReactNode;
|
|
20
20
|
}
|
|
21
21
|
/**
|
package/dist/NoticeList/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { groupNotices } from '../chunk-
|
|
2
|
-
export { NOTICE_LIST_LABELS, NoticeList } from '../chunk-
|
|
1
|
+
export { groupNotices } from '../chunk-YAUAMQOP.js';
|
|
2
|
+
export { NOTICE_LIST_LABELS, NoticeList } from '../chunk-E2XGQAHV.js';
|
|
3
3
|
import '../chunk-IMF3CPTY.js';
|
|
4
4
|
import '../chunk-XSPCITPN.js';
|
|
5
5
|
import '../chunk-TDFLCUBE.js';
|
|
@@ -9,5 +9,8 @@ import '../chunk-HTS5RJ7S.js';
|
|
|
9
9
|
import '../chunk-AVJKMQXK.js';
|
|
10
10
|
import '../chunk-EDPMHSLZ.js';
|
|
11
11
|
import '../chunk-4ITETIGZ.js';
|
|
12
|
+
import '../chunk-ODN2TPIG.js';
|
|
13
|
+
import '../chunk-Y5CMDLQM.js';
|
|
14
|
+
import '../chunk-PQADV6P6.js';
|
|
12
15
|
import '../chunk-RRRK2KB6.js';
|
|
13
16
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -145,3 +145,96 @@
|
|
|
145
145
|
.crewlet-notice-list__more {
|
|
146
146
|
color: inherit;
|
|
147
147
|
}
|
|
148
|
+
|
|
149
|
+
/*
|
|
150
|
+
* COMPACT: one row per notice on the disclosure anatomy, in the list's own ink
|
|
151
|
+
* and size. The title wraps rather than cuts, so nothing is clipped.
|
|
152
|
+
*/
|
|
153
|
+
.crewlet-notice-list--compact {
|
|
154
|
+
--crewlet-notice-list-mark: calc(14px + var(--spacing-1));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.crewlet-notice-list--compact .crewlet-notice-list__items {
|
|
158
|
+
gap: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.crewlet-notice-list--compact .crewlet-notice-list__item {
|
|
162
|
+
display: block;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.crewlet-notice-list--compact .crewlet-disclosure__bar {
|
|
166
|
+
align-items: flex-start;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.crewlet-notice-list .crewlet-notice-list__toggle {
|
|
170
|
+
align-items: flex-start;
|
|
171
|
+
margin-inline-start: calc(-1 * var(--spacing-1));
|
|
172
|
+
padding: calc((var(--size-row-sm) - 1lh) / 2) var(--spacing-1);
|
|
173
|
+
color: inherit;
|
|
174
|
+
font-size: inherit;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.crewlet-notice-list .crewlet-notice-list__toggle:hover {
|
|
178
|
+
color: inherit;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.crewlet-notice-list__toggle .crewlet-disclosure__title {
|
|
182
|
+
overflow: visible;
|
|
183
|
+
white-space: normal;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* The chevron and a tone glyph centre on the first line of a wrapped title. */
|
|
187
|
+
.crewlet-notice-list__toggle .crewlet-disclosure__chevron {
|
|
188
|
+
margin-block: calc((1lh - 14px) / 2);
|
|
189
|
+
color: inherit;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.crewlet-notice-list__toggle .crewlet-disclosure__icon {
|
|
193
|
+
height: 1lh;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.crewlet-notice-list--compact .crewlet-notice-list__summary {
|
|
197
|
+
font-weight: var(--font-weight-regular);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.crewlet-notice-list--compact .crewlet-notice-list__summary::before {
|
|
201
|
+
content: '·' / '';
|
|
202
|
+
margin-inline-end: var(--spacing-1);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.crewlet-notice-list--compact .crewlet-disclosure__actions {
|
|
206
|
+
min-height: var(--size-row-sm);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* Under the title's first word, past the chevron (and the glyph in a mixed list). */
|
|
210
|
+
.crewlet-notice-list__panel {
|
|
211
|
+
display: grid;
|
|
212
|
+
gap: 2px;
|
|
213
|
+
padding: 0 0 var(--spacing-1) var(--crewlet-notice-list-mark);
|
|
214
|
+
overflow-wrap: anywhere;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.crewlet-notice-list--mixed .crewlet-notice-list__panel {
|
|
218
|
+
padding-inline-start: calc(2 * var(--crewlet-notice-list-mark));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.crewlet-notice-list__panel[hidden] {
|
|
222
|
+
display: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* A narrow list puts each action under its title. */
|
|
226
|
+
@container crewlet-notice-list (width < 28rem) {
|
|
227
|
+
.crewlet-notice-list--compact .crewlet-disclosure__bar {
|
|
228
|
+
flex-wrap: wrap;
|
|
229
|
+
row-gap: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.crewlet-notice-list--compact .crewlet-disclosure__bar > .crewlet-notice-list__toggle {
|
|
233
|
+
flex-basis: 100%;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.crewlet-notice-list--compact .crewlet-disclosure__actions {
|
|
237
|
+
min-height: 0;
|
|
238
|
+
margin-inline-start: var(--crewlet-notice-list-mark);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
@@ -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-5DLBGF6I.js';
|
|
2
2
|
import '../chunk-OAD4AXYJ.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-CWACQEPP.js';
|
|
7
7
|
import '../chunk-SJ3EUCFD.js';
|
|
8
8
|
import '../chunk-GBKBME7Q.js';
|
|
9
9
|
import '../chunk-WGLOH33S.js';
|
package/dist/RailList/index.js
CHANGED
|
@@ -2,8 +2,8 @@ export { RAIL_LIST_LABELS, RailList } from '../chunk-ECYA6XZL.js';
|
|
|
2
2
|
import '../chunk-TTUFOH2Y.js';
|
|
3
3
|
import '../chunk-657WR3MX.js';
|
|
4
4
|
import '../chunk-6KWNXIDE.js';
|
|
5
|
-
import '../chunk-TODOBUXO.js';
|
|
6
5
|
import '../chunk-KW7T23RT.js';
|
|
6
|
+
import '../chunk-TODOBUXO.js';
|
|
7
7
|
import '../chunk-HBDA76EZ.js';
|
|
8
8
|
import '../chunk-E7KRB77B.js';
|
|
9
9
|
import '../chunk-AV2DXAEL.js';
|
package/dist/RichEditor/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { RichEditor, preloadRichEditor } from '../chunk-
|
|
1
|
+
export { RichEditor, preloadRichEditor } from '../chunk-JUZKRHQB.js';
|
|
2
2
|
export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
|
|
3
3
|
import '../chunk-KOJPDCGQ.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-CWACQEPP.js';
|
|
5
5
|
import '../chunk-KBZO4B33.js';
|
|
6
6
|
import '../chunk-WFAJYBLX.js';
|
|
7
7
|
import '../chunk-IMF3CPTY.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-CHUFHUQE.js';
|
|
2
2
|
import '../chunk-F6V2PTN6.js';
|
|
3
3
|
import '../chunk-ZXXDZJQN.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-CWACQEPP.js';
|
|
5
5
|
import '../chunk-WFAJYBLX.js';
|
|
6
6
|
import '../chunk-IMF3CPTY.js';
|
|
7
7
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-
|
|
1
|
+
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-6BGD32C5.js';
|
|
2
2
|
import '../chunk-657WR3MX.js';
|
|
3
3
|
import '../chunk-7PK2Z5JY.js';
|
|
4
4
|
import '../chunk-KW7T23RT.js';
|
|
@@ -7,7 +7,7 @@ import '../chunk-IRGS5FEC.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-CWACQEPP.js';
|
|
11
11
|
import '../chunk-265IX4YA.js';
|
|
12
12
|
import '../chunk-2PSOUDCS.js';
|
|
13
13
|
import '../chunk-YMFFGPFE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-
|
|
1
|
+
export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-VXTRPLNB.js';
|
|
2
2
|
import '../chunk-7PK2Z5JY.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-CWACQEPP.js';
|
|
4
4
|
import '../chunk-B3UJKLVI.js';
|
|
5
5
|
import '../chunk-GMXOZEF5.js';
|
|
6
6
|
import '../chunk-XJU53WMW.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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
6
|
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
7
7
|
import { Disclosure } from './chunk-D5O64CVE.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
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
3
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
4
4
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Select } from './chunk-657WR3MX.js';
|
|
2
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
6
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
7
7
|
import { Button } from './chunk-IMF3CPTY.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { safeHref } from './chunk-KBZO4B33.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './InlineRef-
|
|
3
|
+
import './InlineRef-EBQZ26KM.css';
|
|
4
4
|
import { Children, isValidElement, cloneElement } from 'react';
|
|
5
5
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConfirmModal } from './chunk-7PK2Z5JY.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';
|
|
@@ -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 };
|