@crewlethq/ui 0.121.1 → 0.123.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.
Files changed (63) hide show
  1. package/README.md +45 -2
  2. package/dist/Charts/StackedRing.d.ts +40 -0
  3. package/dist/Charts/TimeSeries.d.ts +8 -1
  4. package/dist/Charts/index.d.ts +2 -0
  5. package/dist/Charts/index.js +1 -1
  6. package/dist/{Charts-UJKADWXE.css → Charts-4VQ7T3GB.css} +85 -0
  7. package/dist/DataGrid/DataGrid.d.ts +11 -1
  8. package/dist/DataGrid/index.d.ts +1 -1
  9. package/dist/DataGrid/index.js +1 -1
  10. package/dist/{DataGrid-7KUUYSHA.css → DataGrid-KAFVH4B3.css} +3 -1
  11. package/dist/DeepWorkCard/index.js +2 -2
  12. package/dist/Fullscreen/FullscreenToggle.d.ts +21 -0
  13. package/dist/Fullscreen/index.d.ts +2 -0
  14. package/dist/Fullscreen/index.js +11 -1
  15. package/dist/GraphCanvas/GraphCanvas.d.ts +268 -0
  16. package/dist/GraphCanvas/index.d.ts +9 -0
  17. package/dist/GraphCanvas/index.js +21 -0
  18. package/dist/GraphCanvas/layout.d.ts +231 -0
  19. package/dist/GraphCanvas/reach.d.ts +27 -0
  20. package/dist/GraphCanvas/walk.d.ts +21 -0
  21. package/dist/GraphCanvas-UZPZRP6S.css +793 -0
  22. package/dist/IconTile/IconTile.d.ts +26 -18
  23. package/dist/IconTile/index.d.ts +1 -1
  24. package/dist/IconTile/index.js +1 -1
  25. package/dist/IconTile-6OSCIHYU.css +112 -0
  26. package/dist/ObjectHeader/ObjectHeader.d.ts +17 -2
  27. package/dist/ObjectHeader/index.d.ts +2 -2
  28. package/dist/ObjectHeader/index.js +1 -1
  29. package/dist/{ObjectHeader-5RK5YAUK.css → ObjectHeader-BH7OBEAL.css} +12 -0
  30. package/dist/OpenInAppCard/index.js +2 -2
  31. package/dist/OrgTable/index.js +5 -5
  32. package/dist/PropertyList/index.js +2 -2
  33. package/dist/ReviewList/index.js +2 -2
  34. package/dist/RichEditor/index.js +1 -1
  35. package/dist/SetupWizard/index.js +2 -2
  36. package/dist/StatusLegend/StatusLegend.d.ts +1 -1
  37. package/dist/StatusLegend/index.js +1 -1
  38. package/dist/{StatusLegend-HVMKJQFY.css → StatusLegend-DMSTS2NG.css} +9 -0
  39. package/dist/TreeGrid/index.js +2 -2
  40. package/dist/{chunk-W5XCNEZC.js → chunk-3JLG6KRU.js} +23 -2
  41. package/dist/{chunk-65AMIQSW.js → chunk-4PEPSGCZ.js} +4 -2
  42. package/dist/{chunk-AGVGX52B.js → chunk-7XYU5PSQ.js} +1 -1
  43. package/dist/{chunk-5LIWAA7S.js → chunk-CXFMNOPV.js} +15 -6
  44. package/dist/chunk-DSBKVP73.js +2138 -0
  45. package/dist/{chunk-3RKS3DLF.js → chunk-ENYHABQJ.js} +1 -1
  46. package/dist/{chunk-S2ZUAI6C.js → chunk-EWJOBD25.js} +2 -2
  47. package/dist/{chunk-KZTR3V2P.js → chunk-J44ZIWGH.js} +11 -3
  48. package/dist/{chunk-X5YI6QLW.js → chunk-NOKZULW3.js} +1 -1
  49. package/dist/{chunk-ZOMTCEHR.js → chunk-OFNJE4BN.js} +6 -1
  50. package/dist/{chunk-75O3HCCD.js → chunk-T4TKY4VZ.js} +1 -1
  51. package/dist/chunk-VRVNLJUA.js +46 -0
  52. package/dist/{chunk-MNTN5ESE.js → chunk-ZY5322MJ.js} +77 -3
  53. package/dist/generated/index.d.ts +1 -0
  54. package/dist/generated/index.js +42 -41
  55. package/dist/index.js +42 -41
  56. package/dist/styles.css +1137 -154
  57. package/package.json +3 -3
  58. package/dist/IconTile-G52XZVR4.css +0 -33
  59. package/dist/chunk-3LI4TRUR.js +0 -22
  60. package/dist/{Editor-JCAYNXQX.js → Editor-SBHTMAEK.js} +1 -1
  61. package/dist/{chunk-WLL3PFI3.js → chunk-2DZV4PHK.js} +1 -1
  62. package/dist/{chunk-4Z3AGYOB.js → chunk-P42LNYRX.js} +1 -1
  63. /package/dist/{chunk-33NGH63Z.js → chunk-QV3WVNRA.js} +0 -0
@@ -1,29 +1,37 @@
1
1
  import type { HTMLAttributes, ReactNode } from 'react';
2
2
  import type { NodeHue } from '../utils/nodeHue.js';
3
+ /** What needs a person on the thing a tile pictures: a ring in the tone and a badge with a glyph. */
4
+ export interface IconTileStatus {
5
+ tone: 'danger' | 'warning' | 'info';
6
+ /** Drawn in the badge in place of the tone's own glyph. */
7
+ glyph?: ReactNode;
8
+ }
3
9
  export interface IconTileProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
4
- /** The glyph, at the size the tile is drawn at: `sm` in a `sm` or `md` tile, `md` in a `lg` one. */
10
+ /** The glyph. */
5
11
  children: ReactNode;
6
- /** The hue it is tinted in. Left out, the brand accent's soft fill and ink, or the neutral tile with `tone="neutral"`. */
12
+ /** One of the six node hues, each with its measured fill and ink. Left out, the tone decides. */
7
13
  hue?: NodeHue | undefined;
8
- /**
9
- * `neutral` draws the tile on the raised ground in the secondary ink, for a
10
- * place or a record rather than a kind of thing: colour carries state, never
11
- * identity, so a link to a task is not tinted. Ignored when `hue` is given.
12
- */
14
+ /** With no hue: the brand accent's soft fill, or the neutral raised ground for a place or a record. */
13
15
  tone?: 'accent' | 'neutral' | undefined;
14
- /** One of the row heights: `sm` 28px, `md` 36px, `lg` 48px. */
15
16
  size?: 'sm' | 'md' | 'lg' | undefined;
17
+ /**
18
+ * `disc` is a round tile inside a hairline: one entry of a catalogue (a
19
+ * service, a database, a domain), where the square is a kind of thing.
20
+ */
21
+ shape?: 'square' | 'disc' | undefined;
22
+ /** A small mark on the lower corner, such as the vendor the entry lives at. Decorative. */
23
+ mark?: ReactNode;
24
+ /** A ring and a badge when the entry needs a person. The word is said beside the tile, never here. */
25
+ status?: IconTileStatus | undefined;
26
+ /** Not confirmed yet: a dashed edge. */
27
+ dashed?: boolean | undefined;
16
28
  }
17
29
  /**
18
- * A glyph on a tinted square: what a choice in a library or a catalog is
19
- * told apart by before its name is read. The widget tray draws one per widget
20
- * it offers.
21
- *
22
- * A HUE PER KIND, NOT PER STATE. The tint is decorative and picked for the
23
- * thing it marks (`NodeHue`), so a tile in rose says nothing is wrong; a state
24
- * is a `StatusDot` or a `Tag`.
30
+ * A glyph on a tinted tile, for catalogue items and the entries of one.
25
31
  *
26
- * DECORATION. The tile is hidden from assistive technology: the name beside it
27
- * is what is read.
32
+ * DECORATIVE. The tile is hidden from assistive technology whatever it
33
+ * carries: the name, the vendor and the state it pictures are said in words
34
+ * beside it, so a status here is always a second signal and never the only
35
+ * one.
28
36
  */
29
- export declare function IconTile({ children, hue, tone, size, className, ...rest }: IconTileProps): import("react").JSX.Element;
37
+ export declare function IconTile({ children, hue, tone, size, shape, mark, status, dashed, className, ...rest }: IconTileProps): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import './IconTile.css';
2
2
  export { IconTile } from './IconTile.js';
3
- export type { IconTileProps } from './IconTile.js';
3
+ export type { IconTileProps, IconTileStatus } from './IconTile.js';
@@ -1,2 +1,2 @@
1
- export { IconTile } from '../chunk-3LI4TRUR.js';
1
+ export { IconTile } from '../chunk-VRVNLJUA.js';
2
2
  import '../chunk-ODEQTPFM.js';
@@ -0,0 +1,112 @@
1
+ /*
2
+ * IconTile: a glyph on a tinted square. Each hue pairs its fill and its ink
3
+ * from one measured family (`--color-node-*`); left out, the brand accent's
4
+ * soft fill and ink. No edge: the tile sits inside a card that has one.
5
+ */
6
+ .crewlet-icon-tile {
7
+ --crewlet-icon-tile-fill: var(--color-brand-accent-soft);
8
+ --crewlet-icon-tile-ink: var(--color-brand-accent-ink);
9
+ --crewlet-icon-tile-size: var(--size-row-md);
10
+
11
+ --crewlet-icon-tile-line: var(--color-border-default);
12
+
13
+ position: relative;
14
+ display: inline-flex;
15
+ flex: none;
16
+ align-items: center;
17
+ justify-content: center;
18
+ width: var(--crewlet-icon-tile-size);
19
+ height: var(--crewlet-icon-tile-size);
20
+ border-radius: var(--radius-md);
21
+ background: var(--crewlet-icon-tile-fill);
22
+ color: var(--crewlet-icon-tile-ink);
23
+ }
24
+
25
+ .crewlet-icon-tile--sm { --crewlet-icon-tile-size: var(--size-row-sm); }
26
+ .crewlet-icon-tile--lg { --crewlet-icon-tile-size: var(--size-row-lg); border-radius: var(--radius-lg); }
27
+
28
+ /* A place or a record rather than a kind: the raised ground, the secondary ink. */
29
+ .crewlet-icon-tile--neutral { --crewlet-icon-tile-fill: var(--color-surface-elevated); --crewlet-icon-tile-ink: var(--color-text-secondary); }
30
+
31
+ .crewlet-icon-tile--purple { --crewlet-icon-tile-fill: var(--color-node-purple-fill); --crewlet-icon-tile-ink: var(--color-node-purple-ink); --crewlet-icon-tile-line: var(--color-node-purple-line); }
32
+ .crewlet-icon-tile--cyan { --crewlet-icon-tile-fill: var(--color-node-cyan-fill); --crewlet-icon-tile-ink: var(--color-node-cyan-ink); --crewlet-icon-tile-line: var(--color-node-cyan-line); }
33
+ .crewlet-icon-tile--green { --crewlet-icon-tile-fill: var(--color-node-green-fill); --crewlet-icon-tile-ink: var(--color-node-green-ink); --crewlet-icon-tile-line: var(--color-node-green-line); }
34
+ .crewlet-icon-tile--amber { --crewlet-icon-tile-fill: var(--color-node-amber-fill); --crewlet-icon-tile-ink: var(--color-node-amber-ink); --crewlet-icon-tile-line: var(--color-node-amber-line); }
35
+ .crewlet-icon-tile--rose { --crewlet-icon-tile-fill: var(--color-node-rose-fill); --crewlet-icon-tile-ink: var(--color-node-rose-ink); --crewlet-icon-tile-line: var(--color-node-rose-line); }
36
+ .crewlet-icon-tile--blue { --crewlet-icon-tile-fill: var(--color-node-blue-fill); --crewlet-icon-tile-ink: var(--color-node-blue-ink); --crewlet-icon-tile-line: var(--color-node-blue-line); }
37
+
38
+ /*
39
+ * A DISC: one entry of a catalogue. Round, inside a hairline in its hue, on
40
+ * the sheet under its tint so the tint reads the same on any ground.
41
+ */
42
+ .crewlet-icon-tile--disc,
43
+ .crewlet-icon-tile--disc.crewlet-icon-tile--lg {
44
+ border-radius: var(--radius-circle);
45
+ }
46
+
47
+ .crewlet-icon-tile--disc {
48
+ background:
49
+ linear-gradient(var(--crewlet-icon-tile-fill), var(--crewlet-icon-tile-fill)), var(--color-surface-background);
50
+ box-shadow: inset 0 0 0 1.5px var(--crewlet-icon-tile-line);
51
+ }
52
+
53
+ /* Not confirmed yet: the edge is dashed. */
54
+ .crewlet-icon-tile[data-dashed] {
55
+ box-shadow: none;
56
+ outline: 1.5px dashed var(--color-border-strong);
57
+ outline-offset: -1.5px;
58
+ }
59
+
60
+ /*
61
+ * NEEDS A PERSON: a ring in the tone inside a soft one, and a badge with a
62
+ * glyph, so the tone is never colour alone. The word is beside the tile.
63
+ */
64
+ .crewlet-icon-tile[data-status='danger'] {
65
+ --crewlet-icon-tile-status: var(--color-feedback-danger);
66
+ --crewlet-icon-tile-status-soft: var(--color-feedback-danger-soft);
67
+ }
68
+
69
+ .crewlet-icon-tile[data-status='warning'] {
70
+ --crewlet-icon-tile-status: var(--color-feedback-warning);
71
+ --crewlet-icon-tile-status-soft: var(--color-feedback-warning-soft);
72
+ }
73
+
74
+ .crewlet-icon-tile[data-status='info'] {
75
+ --crewlet-icon-tile-status: var(--color-feedback-info);
76
+ --crewlet-icon-tile-status-soft: var(--color-feedback-info-soft);
77
+ }
78
+
79
+ .crewlet-icon-tile[data-status] {
80
+ box-shadow:
81
+ inset 0 0 0 2px var(--crewlet-icon-tile-status),
82
+ 0 0 0 3px var(--crewlet-icon-tile-status-soft);
83
+ outline: none;
84
+ }
85
+
86
+ .crewlet-icon-tile__mark,
87
+ .crewlet-icon-tile__badge {
88
+ position: absolute;
89
+ display: grid;
90
+ place-items: center;
91
+ width: calc(var(--crewlet-icon-tile-size) * 0.42);
92
+ height: calc(var(--crewlet-icon-tile-size) * 0.42);
93
+ border-radius: var(--radius-circle);
94
+ font-size: calc(var(--crewlet-icon-tile-size) * 0.26);
95
+ }
96
+
97
+ /* A vendor's mark on the lower corner, cut out of the tile by the sheet's colour. */
98
+ .crewlet-icon-tile__mark {
99
+ right: calc(var(--crewlet-icon-tile-size) * -0.1);
100
+ bottom: calc(var(--crewlet-icon-tile-size) * -0.08);
101
+ background: var(--color-surface-background);
102
+ box-shadow: 0 0 0 1px var(--color-border-default);
103
+ color: var(--color-text-primary);
104
+ }
105
+
106
+ .crewlet-icon-tile__badge {
107
+ top: calc(var(--crewlet-icon-tile-size) * -0.1);
108
+ right: calc(var(--crewlet-icon-tile-size) * -0.12);
109
+ background: var(--crewlet-icon-tile-status);
110
+ box-shadow: 0 0 0 1.5px var(--color-surface-background);
111
+ color: var(--color-surface-background);
112
+ }
@@ -1,8 +1,21 @@
1
1
  import type { ReactNode } from 'react';
2
+ /**
3
+ * How the actor came by the value: `set` it (the default), `seen` it in a
4
+ * source's read, `observed` it while working, or `confirmed` it as a person.
5
+ */
6
+ export type SetByVerb = 'set' | 'seen' | 'observed' | 'confirmed';
7
+ /** The words each verb is drawn with, before the actor. */
8
+ export declare const SET_BY_VERBS: Readonly<Record<SetByVerb, string>>;
2
9
  /** Who last changed a value, and where. */
3
10
  export interface SetBy {
4
- /** Who changed it: a seat, a person, the operator. */
11
+ /** Who changed it: a seat, a person, the operator, an integration. */
5
12
  actor: string;
13
+ /** How the actor came by the value. Unset, the line reads "set by". */
14
+ verb?: SetByVerb | undefined;
15
+ /** A short word drawn after the actor, such as a confidence: "observed by sre · likely". */
16
+ qualifier?: string | undefined;
17
+ /** A mark drawn beside the actor's name, such as a vendor's. Decorative: the name is read. */
18
+ mark?: ReactNode;
6
19
  /** When, already said as a relative time ("2h ago"); the caller formats it. */
7
20
  ago?: string | undefined;
8
21
  /** The page of the turn that changed it. Drawn as "turn" with an outward arrow. */
@@ -28,7 +41,9 @@ export interface SetByLineProps {
28
41
  }
29
42
  /**
30
43
  * Who set a value, in the one wording the whole product uses: "set by ada ·
31
- * 2h ago · turn", the last word a link to the turn that did it.
44
+ * 2h ago · turn", the last word a link to the turn that did it. A value the
45
+ * actor did not set takes its own verb: "seen by Cloudflare", "observed by sre
46
+ * · likely", "confirmed by ada".
32
47
  *
33
48
  * ONE WORDING. A header's fact line and a properties rail beside it state the
34
49
  * same provenance, and phrased two ways on one screen a bare handle under a
@@ -1,3 +1,3 @@
1
1
  import './ObjectHeader.css';
2
- export { FactLine, ObjectHeader, SetByLine } from './ObjectHeader.js';
3
- export type { FactLineProps, ObjectFact, ObjectHeaderProps, ObjectHeaderSize, SetBy, SetByLineProps, } from './ObjectHeader.js';
2
+ export { FactLine, ObjectHeader, SET_BY_VERBS, SetByLine } from './ObjectHeader.js';
3
+ export type { FactLineProps, ObjectFact, ObjectHeaderProps, ObjectHeaderSize, SetBy, SetByLineProps, SetByVerb, } from './ObjectHeader.js';
@@ -1,4 +1,4 @@
1
- export { FactLine, ObjectHeader, SetByLine } from '../chunk-KZTR3V2P.js';
1
+ export { FactLine, ObjectHeader, SET_BY_VERBS, SetByLine } from '../chunk-J44ZIWGH.js';
2
2
  import '../chunk-JZI7SIM6.js';
3
3
  import '../chunk-XLMURU75.js';
4
4
  import '../chunk-WSIJDWUG.js';
@@ -252,6 +252,18 @@
252
252
 
253
253
  /* ── the by-line ───────────────────────────────────────────────────────── */
254
254
 
255
+ /* An actor's mark sits on the line's own baseline, at the line's size. */
256
+ .crewlet-set-by__mark {
257
+ display: inline-flex;
258
+ vertical-align: -0.125em;
259
+ margin-right: 0.25em;
260
+ }
261
+
262
+ .crewlet-set-by__mark > svg {
263
+ width: 1em;
264
+ height: 1em;
265
+ }
266
+
255
267
  /* The word and its arrow are one atomic box, so the arrow never takes a line
256
268
  of its own. */
257
269
  .crewlet-set-by__turn {
@@ -1,7 +1,7 @@
1
- export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-75O3HCCD.js';
1
+ export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-T4TKY4VZ.js';
2
2
  import '../chunk-KOJPDCGQ.js';
3
3
  import '../chunk-KBZO4B33.js';
4
- import '../chunk-3LI4TRUR.js';
4
+ import '../chunk-VRVNLJUA.js';
5
5
  import '../chunk-TMHG4576.js';
6
6
  import '../chunk-7L75YB57.js';
7
7
  import '../chunk-SJ3EUCFD.js';
@@ -1,17 +1,17 @@
1
- export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-S2ZUAI6C.js';
2
- import '../chunk-X5YI6QLW.js';
3
- import '../chunk-MY374UUD.js';
1
+ export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-EWJOBD25.js';
2
+ import '../chunk-NOKZULW3.js';
4
3
  import '../chunk-DEVO45TG.js';
5
- import '../chunk-ZOMTCEHR.js';
4
+ import '../chunk-MY374UUD.js';
5
+ import '../chunk-OFNJE4BN.js';
6
6
  import '../chunk-X4HBZSXA.js';
7
7
  import '../chunk-WFAJYBLX.js';
8
8
  import '../chunk-WSIJDWUG.js';
9
9
  import '../chunk-JMBPMSNI.js';
10
10
  import '../chunk-KFTVPWG2.js';
11
11
  import '../chunk-PPUR46MK.js';
12
- import '../chunk-5W3EYO5Q.js';
13
12
  import '../chunk-5SMYKL3D.js';
14
13
  import '../chunk-XZY6S3UC.js';
14
+ import '../chunk-5W3EYO5Q.js';
15
15
  import '../chunk-NN44J7BP.js';
16
16
  import '../chunk-NICEDVZM.js';
17
17
  import '../chunk-JLKO7PSK.js';
@@ -1,5 +1,5 @@
1
- export { PropertyList } from '../chunk-65AMIQSW.js';
2
- import '../chunk-KZTR3V2P.js';
1
+ export { PropertyList } from '../chunk-4PEPSGCZ.js';
2
+ import '../chunk-J44ZIWGH.js';
3
3
  import '../chunk-JZI7SIM6.js';
4
4
  import '../chunk-LH4OF7FI.js';
5
5
  import '../chunk-WGLOH33S.js';
@@ -1,5 +1,5 @@
1
- export { ReviewList } from '../chunk-AGVGX52B.js';
2
- import '../chunk-3LI4TRUR.js';
1
+ export { ReviewList } from '../chunk-7XYU5PSQ.js';
2
+ import '../chunk-VRVNLJUA.js';
3
3
  import '../chunk-SJ3EUCFD.js';
4
4
  import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-PQADV6P6.js';
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-3RKS3DLF.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-ENYHABQJ.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KBZO4B33.js';
@@ -1,6 +1,6 @@
1
- export { SetupWizard } from '../chunk-WLL3PFI3.js';
2
- import '../chunk-EHD4CEHK.js';
1
+ export { SetupWizard } from '../chunk-2DZV4PHK.js';
3
2
  import '../chunk-FPDIHEM4.js';
3
+ import '../chunk-EHD4CEHK.js';
4
4
  import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-D5O64CVE.js';
6
6
  import '../chunk-SK4BIFTG.js';
@@ -28,4 +28,4 @@ export interface StatusLegendProps {
28
28
  * Each status with its dot, its word and a quiet count, as one line that wraps:
29
29
  * the key to a chart's colours, and with `onValueChange` its filter as well.
30
30
  */
31
- export declare function StatusLegend({ label, items, value, onValueChange, countLabel, className }: StatusLegendProps): import("react").JSX.Element;
31
+ export declare function StatusLegend({ label, items, value, onValueChange, countLabel, className, }: StatusLegendProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- export { StatusLegend } from '../chunk-5LIWAA7S.js';
1
+ export { StatusLegend } from '../chunk-CXFMNOPV.js';
2
2
  import '../chunk-QRE6JCHS.js';
3
3
  import '../chunk-RRRK2KB6.js';
4
4
  import '../chunk-ODEQTPFM.js';
@@ -31,6 +31,15 @@
31
31
  white-space: nowrap;
32
32
  }
33
33
 
34
+ /* What a reader sees of an item, hidden from assistive technology, which hears one sentence instead:
35
+ the dot and word, then the count, a step and a half apart on one line. */
36
+ .crewlet-status-legend__face {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ gap: calc(var(--spacing-1) * 1.5);
40
+ min-width: 0;
41
+ }
42
+
34
43
  button.crewlet-status-legend__item {
35
44
  cursor: pointer;
36
45
  transition:
@@ -1,6 +1,6 @@
1
- export { TreeGrid } from '../chunk-X5YI6QLW.js';
1
+ export { TreeGrid } from '../chunk-NOKZULW3.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-ZOMTCEHR.js';
3
+ import '../chunk-OFNJE4BN.js';
4
4
  import '../chunk-X4HBZSXA.js';
5
5
  import '../chunk-WFAJYBLX.js';
6
6
  import '../chunk-WSIJDWUG.js';
@@ -1,6 +1,8 @@
1
+ import { IconButton } from './chunk-X5YI6E5X.js';
2
+ import { MinimizeGlyph, MaximizeGlyph } from '@crewlethq/icons/glyphs';
1
3
  import { useState, useEffect, useCallback } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
2
5
 
3
- // src/Fullscreen/useFullscreen.ts
4
6
  function fullscreenSupported() {
5
7
  return typeof document !== "undefined" && document.fullscreenEnabled === true && typeof Element.prototype.requestFullscreen === "function";
6
8
  }
@@ -32,6 +34,25 @@ function useFullscreen(ref) {
32
34
  }, [enter, exit, ref]);
33
35
  return { supported, active, enter, exit, toggle };
34
36
  }
37
+ var FULLSCREEN_TOGGLE_LABELS = {
38
+ enter: "Fullscreen",
39
+ leave: "Leave fullscreen"
40
+ };
41
+ function FullscreenToggle({ target, size = "sm", labels, className }) {
42
+ const fullscreen = useFullscreen(target);
43
+ if (!fullscreen.supported) return null;
44
+ const text = { ...FULLSCREEN_TOGGLE_LABELS, ...labels };
45
+ return /* @__PURE__ */ jsx(
46
+ IconButton,
47
+ {
48
+ label: fullscreen.active ? text.leave : text.enter,
49
+ icon: fullscreen.active ? /* @__PURE__ */ jsx(MinimizeGlyph, {}) : /* @__PURE__ */ jsx(MaximizeGlyph, {}),
50
+ size,
51
+ className,
52
+ onClick: fullscreen.toggle
53
+ }
54
+ );
55
+ }
35
56
  var IDLE_AFTER_MS = 2500;
36
57
  function useIdle(ref, enabled, timeout = IDLE_AFTER_MS) {
37
58
  const [idle, setIdle] = useState(false);
@@ -71,4 +92,4 @@ function useIdle(ref, enabled, timeout = IDLE_AFTER_MS) {
71
92
  return enabled && idle;
72
93
  }
73
94
 
74
- export { IDLE_AFTER_MS, useFullscreen, useIdle };
95
+ export { FULLSCREEN_TOGGLE_LABELS, FullscreenToggle, IDLE_AFTER_MS, useFullscreen, useIdle };
@@ -1,4 +1,4 @@
1
- import { SetByLine } from './chunk-KZTR3V2P.js';
1
+ import { SetByLine } from './chunk-J44ZIWGH.js';
2
2
  import { Link } from './chunk-JZI7SIM6.js';
3
3
  import { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
4
4
  import { EmptyValue } from './chunk-WGLOH33S.js';
@@ -34,7 +34,9 @@ function attributions(items) {
34
34
  close(i - 1);
35
35
  return;
36
36
  }
37
- const next = [line.actor, line.ago, line.turnHref, line.cleared, item.change].join("\0");
37
+ const next = [line.actor, line.verb ?? "set", line.qualifier, line.ago, line.turnHref, line.cleared, item.change].join(
38
+ "\0"
39
+ );
38
40
  if (start >= 0 && next === key) return;
39
41
  close(i - 1);
40
42
  start = i;
@@ -1,4 +1,4 @@
1
- import { IconTile } from './chunk-3LI4TRUR.js';
1
+ import { IconTile } from './chunk-VRVNLJUA.js';
2
2
  import { Tag } from './chunk-SJ3EUCFD.js';
3
3
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,10 +1,17 @@
1
1
  import { StatusDot } from './chunk-QRE6JCHS.js';
2
2
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
- import './StatusLegend-HVMKJQFY.css';
4
+ import './StatusLegend-DMSTS2NG.css';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
 
7
- function StatusLegend({ label, items, value = null, onValueChange, countLabel = String, className }) {
7
+ function StatusLegend({
8
+ label,
9
+ items,
10
+ value = null,
11
+ onValueChange,
12
+ countLabel = String,
13
+ className
14
+ }) {
8
15
  const content = (item) => /* @__PURE__ */ jsxs(Fragment, { children: [
9
16
  /* @__PURE__ */ jsx(StatusDot, { tone: item.tone, children: item.label }),
10
17
  /* @__PURE__ */ jsx("span", { className: "crewlet-status-legend__count", children: item.count.toLocaleString() })
@@ -12,22 +19,24 @@ function StatusLegend({ label, items, value = null, onValueChange, countLabel =
12
19
  const named = (item) => `${item.label}, ${countLabel(item.count)}`;
13
20
  if (!onValueChange) {
14
21
  return /* @__PURE__ */ jsx("ul", { className: cx("crewlet-status-legend", className), "aria-label": label, children: items.map((item) => /* @__PURE__ */ jsxs("li", { className: "crewlet-status-legend__item", "data-empty": item.count === 0 ? "" : void 0, children: [
15
- /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: content(item) }),
22
+ /* @__PURE__ */ jsx("span", { className: "crewlet-status-legend__face", "aria-hidden": "true", children: content(item) }),
16
23
  /* @__PURE__ */ jsx(VisuallyHidden, { children: named(item) })
17
24
  ] }, item.key)) });
18
25
  }
19
26
  return /* @__PURE__ */ jsx("div", { role: "group", "aria-label": label, className: cx("crewlet-status-legend", className), children: items.map((item) => {
20
27
  const pressed = value === item.key;
21
- return /* @__PURE__ */ jsx(
28
+ return /* @__PURE__ */ jsxs(
22
29
  "button",
23
30
  {
24
31
  type: "button",
25
32
  className: "crewlet-status-legend__item",
26
33
  "aria-pressed": pressed,
27
- "aria-label": named(item),
28
34
  "data-empty": item.count === 0 ? "" : void 0,
29
35
  onClick: () => onValueChange(pressed ? null : item.key),
30
- children: content(item)
36
+ children: [
37
+ /* @__PURE__ */ jsx("span", { className: "crewlet-status-legend__face", "aria-hidden": "true", children: content(item) }),
38
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: named(item) })
39
+ ]
31
40
  },
32
41
  item.key
33
42
  );