@crewlethq/ui 0.135.0 → 0.137.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 +9 -0
- package/dist/ActivityLine/index.js +4 -4
- package/dist/ArtifactBar/index.js +4 -4
- package/dist/ArtifactCard/index.js +4 -4
- package/dist/Avatar/Avatar.d.ts +14 -5
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/Avatar/index.js +2 -2
- package/dist/{Avatar-RHFI55UZ.css → Avatar-HD7YSWDV.css} +9 -0
- package/dist/AvatarPicker/index.js +6 -6
- package/dist/CharacterPicker/index.js +2 -2
- package/dist/CommentThread/index.js +4 -4
- package/dist/ContrastBadge/index.js +2 -2
- package/dist/ContrastHelp/index.js +3 -3
- package/dist/DataView/index.js +1 -1
- package/dist/DiffView/index.js +1 -1
- package/dist/{DiffView-RVLIHTKG.css → DiffView-ZI5C25Q3.css} +8 -9
- package/dist/EntityChip/index.js +3 -3
- package/dist/GraphCanvas/index.js +2 -2
- package/dist/HuePicker/index.js +3 -3
- package/dist/ImageUpload/index.js +3 -3
- package/dist/LogoSlot/index.js +3 -3
- package/dist/MarkdownEditor/index.js +4 -4
- package/dist/MergeConflicts/index.js +4 -4
- package/dist/OrgLabel/index.js +3 -3
- package/dist/OrgNode/index.js +4 -4
- package/dist/OrgTable/index.js +5 -5
- package/dist/PeopleRail/index.js +3 -3
- package/dist/PresenceStack/index.js +3 -3
- package/dist/Principal/index.js +3 -3
- package/dist/PrincipalPicker/index.js +4 -4
- package/dist/RailList/index.js +2 -2
- package/dist/SegmentedControl/index.js +3 -3
- package/dist/ShareDialog/index.js +4 -4
- package/dist/SheetColumnEditor/index.js +4 -4
- package/dist/SheetGrid/index.js +3 -3
- package/dist/TableCells/index.js +3 -3
- package/dist/Tabs/Tabs.d.ts +11 -9
- package/dist/Tabs/index.d.ts +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/{Tabs-BJZ2W5KB.css → Tabs-CLNPYFMW.css} +15 -3
- package/dist/ThemeSwitcher/index.js +4 -4
- package/dist/ThreadSummary/index.js +3 -3
- package/dist/TimeRangePicker/index.js +4 -4
- package/dist/VersionCompare/index.js +5 -5
- package/dist/VersionTimeline/index.js +4 -4
- package/dist/WorkingLine/index.js +3 -3
- package/dist/{chunk-HF5L56YQ.js → chunk-265IX4YA.js} +1 -1
- package/dist/{chunk-ZSSBQRVD.js → chunk-2NBVFM5Y.js} +1 -1
- package/dist/{chunk-TNULHRFR.js → chunk-35FTZBTV.js} +1 -1
- package/dist/{chunk-7KUN5GSE.js → chunk-3ZURY4PP.js} +1 -1
- package/dist/{chunk-GD53KYA7.js → chunk-44DZHJSQ.js} +3 -3
- package/dist/{chunk-K6Y6CDEZ.js → chunk-4QWTD6JO.js} +1 -1
- package/dist/{chunk-VFRX5RAC.js → chunk-6BGDOVTX.js} +1 -1
- package/dist/{chunk-MLPR3QKS.js → chunk-ANER6FP5.js} +1 -1
- package/dist/{chunk-7U4V36SB.js → chunk-B3UJKLVI.js} +1 -1
- package/dist/{chunk-C6AO6FVF.js → chunk-B5UQICQ6.js} +1 -1
- package/dist/{chunk-QU2MISPV.js → chunk-BNUHDX7F.js} +1 -1
- package/dist/{chunk-U4HA6LRQ.js → chunk-BPCXMQMB.js} +1 -1
- package/dist/{chunk-ZIL6MTMZ.js → chunk-CBUAKPF7.js} +1 -1
- package/dist/{chunk-WQAETZOG.js → chunk-CNVUY6Q6.js} +1 -1
- package/dist/{chunk-6BTQVM6O.js → chunk-CRKFCTOR.js} +1 -1
- package/dist/{chunk-HXMR5M4Z.js → chunk-DUYJO6KP.js} +2 -2
- package/dist/{chunk-G7BAJRZ3.js → chunk-EDS3WKC5.js} +2 -2
- package/dist/{chunk-5TTAN723.js → chunk-F2BE5X4J.js} +3 -2
- package/dist/{chunk-U3LHWQQK.js → chunk-F4CM5KD3.js} +1 -1
- package/dist/{chunk-FNJCCVQX.js → chunk-GYVL23ZK.js} +1 -1
- package/dist/{chunk-LRRUVM2U.js → chunk-KFQ4F4R7.js} +2 -2
- package/dist/{chunk-UFNJOKWW.js → chunk-L4H3GDRQ.js} +1 -1
- package/dist/{chunk-MTIW75QU.js → chunk-LL5H2Q5B.js} +1 -1
- package/dist/{chunk-VDQGWPGQ.js → chunk-OPN5Q3OL.js} +1 -1
- package/dist/{chunk-SYMLWDV6.js → chunk-PFP5HHZF.js} +1 -1
- package/dist/{chunk-Q4C75TRH.js → chunk-PNLCBC2N.js} +1 -1
- package/dist/{chunk-R4YUMULC.js → chunk-Q3J23Q6P.js} +1 -1
- package/dist/{chunk-FRR5JFOW.js → chunk-RHQWN7DT.js} +1 -1
- package/dist/{chunk-TM2CG7MM.js → chunk-SLJ5REZM.js} +1 -1
- package/dist/{chunk-ARZGEHWE.js → chunk-SPCNQUEU.js} +2 -2
- package/dist/{chunk-OYKQVTJB.js → chunk-TCQIJ2VO.js} +2 -2
- package/dist/{chunk-XSBFTZBA.js → chunk-TIGY46IQ.js} +1 -1
- package/dist/{chunk-WIICK64W.js → chunk-X3LYR2BK.js} +1 -1
- package/dist/{chunk-Z3PZFLCE.js → chunk-XVRLNGEO.js} +2 -2
- package/dist/{chunk-XZY6S3UC.js → chunk-YMFFGPFE.js} +29 -5
- package/dist/{chunk-UKXISBSG.js → chunk-Z54UPUFB.js} +1 -1
- package/dist/generated/index.js +84 -84
- package/dist/index.js +84 -84
- package/dist/styles.css +35 -15
- package/package.json +3 -3
- package/dist/{chunk-3YOLD7WG.js → chunk-F7NHMBGJ.js} +1 -1
- package/dist/{chunk-KK7FYYED.js → chunk-LOKSHF2S.js} +1 -1
- package/dist/{chunk-3MT6K5VU.js → chunk-VHOHYNL3.js} +1 -1
|
@@ -595,8 +595,8 @@
|
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
/* ── markers ──────────────────────────────────────────────────────────────
|
|
598
|
-
What
|
|
599
|
-
dot for a warning
|
|
598
|
+
What the reader should know behind a tab: a danger count for problems, a
|
|
599
|
+
6px dot for a warning, an unsaved change or a pass. One per tab, the most urgent. */
|
|
600
600
|
.crewlet-tabs__marker {
|
|
601
601
|
display: inline-flex;
|
|
602
602
|
align-items: center;
|
|
@@ -622,7 +622,8 @@
|
|
|
622
622
|
line-height: var(--crewlet-tabs-marker-size);
|
|
623
623
|
}
|
|
624
624
|
.crewlet-tabs__marker--warning,
|
|
625
|
-
.crewlet-tabs__marker--changed
|
|
625
|
+
.crewlet-tabs__marker--changed,
|
|
626
|
+
.crewlet-tabs__marker--success {
|
|
626
627
|
width: 6px;
|
|
627
628
|
height: 6px;
|
|
628
629
|
border-radius: var(--radius-circle);
|
|
@@ -633,3 +634,14 @@
|
|
|
633
634
|
.crewlet-tabs__marker--changed {
|
|
634
635
|
background: var(--color-brand-accent);
|
|
635
636
|
}
|
|
637
|
+
.crewlet-tabs__marker--success {
|
|
638
|
+
background: var(--color-feedback-success);
|
|
639
|
+
}
|
|
640
|
+
/* Forced colours repaint backgrounds to Canvas; a system colour survives. */
|
|
641
|
+
@media (forced-colors: active) {
|
|
642
|
+
.crewlet-tabs__marker--warning,
|
|
643
|
+
.crewlet-tabs__marker--changed,
|
|
644
|
+
.crewlet-tabs__marker--success {
|
|
645
|
+
background: CanvasText;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DensitySwitcher, ThemeSwitcher } from '../chunk-
|
|
1
|
+
export { DensitySwitcher, ThemeSwitcher } from '../chunk-B5UQICQ6.js';
|
|
2
2
|
export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from '../chunk-Z24ZUSTX.js';
|
|
3
3
|
export { DENSITY_PREFERENCES, PALETTE_ID, THEME_PREFERENCES, applyDensity, applyPalette, applyTheme, isDensityPreference, isPaletteId, isThemePreference } from '../chunk-ZXXDZJQN.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-B3UJKLVI.js';
|
|
5
|
+
import '../chunk-PNLCBC2N.js';
|
|
6
|
+
import '../chunk-F2BE5X4J.js';
|
|
7
7
|
import '../chunk-7F3OPUM5.js';
|
|
8
8
|
import '../chunk-QRE6JCHS.js';
|
|
9
9
|
import '../chunk-XHEM234A.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-
|
|
1
|
+
export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-BPCXMQMB.js';
|
|
2
2
|
import '../chunk-SJ3EUCFD.js';
|
|
3
3
|
import '../chunk-QRE6JCHS.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-SPCNQUEU.js';
|
|
5
|
+
import '../chunk-YMFFGPFE.js';
|
|
6
6
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
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-TIGY46IQ.js';
|
|
2
2
|
import '../chunk-WTLHCUDU.js';
|
|
3
3
|
import '../chunk-RCQLXOGS.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-B3UJKLVI.js';
|
|
5
|
+
import '../chunk-PNLCBC2N.js';
|
|
6
|
+
import '../chunk-F2BE5X4J.js';
|
|
7
7
|
import '../chunk-7F3OPUM5.js';
|
|
8
8
|
import '../chunk-QRE6JCHS.js';
|
|
9
9
|
import '../chunk-XHEM234A.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-EDS3WKC5.js';
|
|
2
|
+
import '../chunk-F4CM5KD3.js';
|
|
3
|
+
import '../chunk-B3UJKLVI.js';
|
|
4
|
+
import '../chunk-PNLCBC2N.js';
|
|
5
|
+
import '../chunk-F2BE5X4J.js';
|
|
6
6
|
import '../chunk-7F3OPUM5.js';
|
|
7
7
|
import '../chunk-QRE6JCHS.js';
|
|
8
8
|
import '../chunk-XHEM234A.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { VersionTimeline } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { VersionTimeline } from '../chunk-SLJ5REZM.js';
|
|
2
|
+
import '../chunk-265IX4YA.js';
|
|
3
3
|
import '../chunk-GBKBME7Q.js';
|
|
4
4
|
import '../chunk-WGLOH33S.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-SPCNQUEU.js';
|
|
6
|
+
import '../chunk-YMFFGPFE.js';
|
|
7
7
|
import '../chunk-XDUXAQIS.js';
|
|
8
8
|
import '../chunk-CYF22JOT.js';
|
|
9
9
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-TCQIJ2VO.js';
|
|
2
|
+
import '../chunk-SPCNQUEU.js';
|
|
3
|
+
import '../chunk-YMFFGPFE.js';
|
|
4
4
|
import '../chunk-RRRK2KB6.js';
|
|
5
5
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PRESENCE_LABELS, presenceOrder, collapseSessions } from './chunk-Z7JYG5TF.js';
|
|
2
|
-
import { Avatar } from './chunk-
|
|
2
|
+
import { Avatar } from './chunk-YMFFGPFE.js';
|
|
3
3
|
import { Button } from './chunk-CYF22JOT.js';
|
|
4
4
|
import { IconButton } from './chunk-P5HNBRIS.js';
|
|
5
5
|
import { headingTag, useHeadingLevel } from './chunk-PQADV6P6.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileDrop, FilePickButton } from './chunk-ELKYSKJY.js';
|
|
2
|
-
import { contrastRatio } from './chunk-
|
|
2
|
+
import { contrastRatio } from './chunk-F7NHMBGJ.js';
|
|
3
3
|
import { normalizeHex } from './chunk-7W3LYIOC.js';
|
|
4
4
|
import { Button } from './chunk-CYF22JOT.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HuePicker } from './chunk-
|
|
1
|
+
import { HuePicker } from './chunk-X3LYR2BK.js';
|
|
2
2
|
import { Popover } from './chunk-KDRJZWE3.js';
|
|
3
|
-
import { CharacterPicker } from './chunk-
|
|
3
|
+
import { CharacterPicker } from './chunk-CBUAKPF7.js';
|
|
4
4
|
import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
5
|
-
import { Avatar } from './chunk-
|
|
5
|
+
import { Avatar } from './chunk-YMFFGPFE.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './AvatarPicker-POOJUOKC.css';
|
|
8
8
|
import { CREWLET_CHARACTER_GEOMETRY, CREWLET_CHARACTERS } from '@crewlethq/icons/characters';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Select } from './chunk-OU22GKZK.js';
|
|
2
2
|
import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
|
|
3
|
-
import { HueSwatch } from './chunk-
|
|
3
|
+
import { HueSwatch } from './chunk-X3LYR2BK.js';
|
|
4
4
|
import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
5
5
|
import { Checkbox } from './chunk-XLND4DD6.js';
|
|
6
6
|
import { Menu } from './chunk-XHEM234A.js';
|
|
@@ -8,7 +8,7 @@ import { Tag } from './chunk-SJ3EUCFD.js';
|
|
|
8
8
|
import { Popover } from './chunk-KDRJZWE3.js';
|
|
9
9
|
import { StatusDot } from './chunk-QRE6JCHS.js';
|
|
10
10
|
import { Menu } from './chunk-XHEM234A.js';
|
|
11
|
-
import { Avatar } from './chunk-
|
|
11
|
+
import { Avatar } from './chunk-YMFFGPFE.js';
|
|
12
12
|
import { Button } from './chunk-CYF22JOT.js';
|
|
13
13
|
import { IconButton } from './chunk-P5HNBRIS.js';
|
|
14
14
|
import { Tooltip } from './chunk-3YJB5ZF5.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-PNLCBC2N.js';
|
|
3
3
|
import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Combobox } from './chunk-HHBAQK2U.js';
|
|
2
|
-
import { PRINCIPAL_KINDS, PrincipalAvatar } from './chunk-
|
|
2
|
+
import { PRINCIPAL_KINDS, PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './PrincipalPicker-P6UYHDJR.css';
|
|
5
5
|
import { useState, useId, useMemo } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tag } from './chunk-SJ3EUCFD.js';
|
|
2
|
-
import { AvatarStack } from './chunk-
|
|
2
|
+
import { AvatarStack } from './chunk-SPCNQUEU.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './ChatScale-LGESYXCO.css';
|
|
5
5
|
import './ThreadSummary-3AODTHAM.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRoving, tabStop } from './chunk-7F3OPUM5.js';
|
|
2
|
-
import { Avatar } from './chunk-
|
|
2
|
+
import { Avatar } from './chunk-YMFFGPFE.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import { CREWLET_CHARACTERS, CREWLET_CHARACTER_GEOMETRY } from '@crewlethq/icons/characters';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SegmentedControl } from './chunk-
|
|
1
|
+
import { SegmentedControl } from './chunk-PNLCBC2N.js';
|
|
2
2
|
import { ArtifactIcon } from './chunk-AVL52EME.js';
|
|
3
3
|
import { Menu } from './chunk-XHEM234A.js';
|
|
4
4
|
import { isApplePlatform, Kbd, ariaKeyshortcuts } from './chunk-VBBLHS2Y.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TreeGrid } from './chunk-TKDDIX23.js';
|
|
2
|
-
import { OrgLabel } from './chunk-
|
|
2
|
+
import { OrgLabel } from './chunk-PFP5HHZF.js';
|
|
3
3
|
import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
|
|
4
|
-
import { IconButton } from './chunk-P5HNBRIS.js';
|
|
5
4
|
import { AddPill } from './chunk-5W3EYO5Q.js';
|
|
5
|
+
import { IconButton } from './chunk-P5HNBRIS.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './OrgTable-5NXRECVP.css';
|
|
8
8
|
import { useMemo, useRef, useImperativeHandle, useCallback } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
1
|
+
import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-F4CM5KD3.js';
|
|
2
|
+
import { SegmentedControl } from './chunk-PNLCBC2N.js';
|
|
3
3
|
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
4
4
|
import { useHeadingLevel, headingTag, nextHeadingLevel, HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -6,7 +6,7 @@ import { Count } from './chunk-Y5CMDLQM.js';
|
|
|
6
6
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './HitArea-QUOS6ZDJ.css';
|
|
9
|
-
import './Tabs-
|
|
9
|
+
import './Tabs-CLNPYFMW.css';
|
|
10
10
|
import React, { useRef, useImperativeHandle, useLayoutEffect, useState } from 'react';
|
|
11
11
|
import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
|
|
12
12
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -84,6 +84,7 @@ function useFold(enabled, box, row, values, current, layout = null) {
|
|
|
84
84
|
}, [enabled, box, row, signature, current, layout]);
|
|
85
85
|
return enabled ? fold : NOTHING_FOLDED;
|
|
86
86
|
}
|
|
87
|
+
var TABS_MARKER_TONES = ["danger", "warning", "changed", "success"];
|
|
87
88
|
var FOLDED = { "aria-hidden": true, inert: true };
|
|
88
89
|
var SHOWN = {};
|
|
89
90
|
function figureOf(count) {
|
|
@@ -332,4 +333,4 @@ function TabPanel({ id, value, children, className }) {
|
|
|
332
333
|
);
|
|
333
334
|
}
|
|
334
335
|
|
|
335
|
-
export { TabPanel, Tabs, tabId };
|
|
336
|
+
export { TABS_MARKER_TONES, TabPanel, Tabs, tabId };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
3
|
-
import { tabId } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-PNLCBC2N.js';
|
|
3
|
+
import { tabId } from './chunk-F2BE5X4J.js';
|
|
4
4
|
import { IconButton } from './chunk-P5HNBRIS.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './MarkdownEditor-BLCJRGDC.css';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PrincipalAvatar } from './chunk-
|
|
1
|
+
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
2
2
|
import { toInstant, RelativeTime, formatExact, toISO } from './chunk-GBKBME7Q.js';
|
|
3
3
|
import { Document } from './chunk-I4PBFJGX.js';
|
|
4
4
|
import { Composer } from './chunk-N4JLT5X3.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { presenceHueClass } from './chunk-EFX2YC5T.js';
|
|
2
2
|
import { presenceLabels, presenceOrder } from './chunk-Z7JYG5TF.js';
|
|
3
|
-
import { avatarCorner, AVATAR_SIZES, Avatar } from './chunk-
|
|
3
|
+
import { avatarCorner, AVATAR_SIZES, Avatar } from './chunk-YMFFGPFE.js';
|
|
4
4
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './PresenceStack-2DTYRADY.css';
|
|
@@ -4,7 +4,7 @@ import { RelativeTime } from './chunk-GBKBME7Q.js';
|
|
|
4
4
|
import { EmptyValue } from './chunk-WGLOH33S.js';
|
|
5
5
|
import { Text } from './chunk-475DOAWF.js';
|
|
6
6
|
import { titleIfCut } from './chunk-WSIJDWUG.js';
|
|
7
|
-
import { Avatar } from './chunk-
|
|
7
|
+
import { Avatar } from './chunk-YMFFGPFE.js';
|
|
8
8
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './TableCells-ZALZLLEF.css';
|
|
@@ -2,7 +2,7 @@ import { Select } from './chunk-OU22GKZK.js';
|
|
|
2
2
|
import { Modal } from './chunk-WTLHCUDU.js';
|
|
3
3
|
import { CopyButton } from './chunk-NTBZQISB.js';
|
|
4
4
|
import { Callout } from './chunk-RCQLXOGS.js';
|
|
5
|
-
import { PrincipalAvatar } from './chunk-
|
|
5
|
+
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
6
6
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
7
7
|
import { Button } from './chunk-CYF22JOT.js';
|
|
8
8
|
import { IconButton } from './chunk-P5HNBRIS.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AVATAR_SIZES, Avatar } from './chunk-
|
|
1
|
+
import { AVATAR_SIZES, Avatar } from './chunk-YMFFGPFE.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Avatar-
|
|
3
|
+
import './Avatar-HD7YSWDV.css';
|
|
4
4
|
import './AvatarStack-UNBXFHTZ.css';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AvatarStack } from './chunk-
|
|
2
|
-
import { Avatar } from './chunk-
|
|
1
|
+
import { AvatarStack } from './chunk-SPCNQUEU.js';
|
|
2
|
+
import { Avatar } from './chunk-YMFFGPFE.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './ChatScale-LGESYXCO.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Modal } from './chunk-WTLHCUDU.js';
|
|
2
2
|
import { Callout } from './chunk-RCQLXOGS.js';
|
|
3
|
-
import { SegmentedControl } from './chunk-
|
|
3
|
+
import { SegmentedControl } from './chunk-PNLCBC2N.js';
|
|
4
4
|
import { FormField, Input } from './chunk-NBXUIEKY.js';
|
|
5
5
|
import { Button } from './chunk-CYF22JOT.js';
|
|
6
6
|
import { useState } from 'react';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
2
|
-
import { PrincipalAvatar } from './chunk-
|
|
2
|
+
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
3
3
|
import { RelativeTime } from './chunk-GBKBME7Q.js';
|
|
4
4
|
import { Card } from './chunk-E7KRB77B.js';
|
|
5
5
|
import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
|
|
6
6
|
import { Checkbox } from './chunk-XLND4DD6.js';
|
|
7
7
|
import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
|
|
8
8
|
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
9
|
-
import { AvatarStack } from './chunk-
|
|
9
|
+
import { AvatarStack } from './chunk-SPCNQUEU.js';
|
|
10
10
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
11
11
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
12
12
|
import './ArtifactKinds-27TE3KJL.css';
|
|
@@ -10,6 +10,11 @@ var AVATAR_STATUS_LABELS = {
|
|
|
10
10
|
needs: "needs you",
|
|
11
11
|
stopped: "stopped"
|
|
12
12
|
};
|
|
13
|
+
var AVATAR_VERDICTS = ["approved", "changes-requested"];
|
|
14
|
+
var AVATAR_VERDICT_LABELS = {
|
|
15
|
+
approved: "approved",
|
|
16
|
+
"changes-requested": "requested changes"
|
|
17
|
+
};
|
|
13
18
|
var AVATAR_SIZES = { xs: 20, sm: 26, md: 32, lg: 40 };
|
|
14
19
|
var TEXT_FACE_PIXELS = 16;
|
|
15
20
|
var AVATAR_CORNER_RATIO = 2 / 9;
|
|
@@ -56,6 +61,7 @@ var Avatar = ({
|
|
|
56
61
|
tone = "neutral",
|
|
57
62
|
ring,
|
|
58
63
|
status,
|
|
64
|
+
verdict,
|
|
59
65
|
mark,
|
|
60
66
|
markLabel,
|
|
61
67
|
decorative = false,
|
|
@@ -79,9 +85,10 @@ var Avatar = ({
|
|
|
79
85
|
fontSize: Math.max(9, Math.round(pixels * 0.36))
|
|
80
86
|
} : {};
|
|
81
87
|
const seeded = tone === "seeded" ? avatarTint(colorSeed ?? name ?? "") : null;
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
88
|
+
const shownStatus = verdict === void 0 ? status : void 0;
|
|
89
|
+
const marked = verdict === void 0 && shownStatus === void 0 && mark !== void 0 && mark !== null;
|
|
90
|
+
const framed = verdict !== void 0 || shownStatus !== void 0 || marked;
|
|
91
|
+
const corner = verdict !== void 0 ? AVATAR_VERDICT_LABELS[verdict] : shownStatus !== void 0 ? AVATAR_STATUS_LABELS[shownStatus] : marked ? markLabel : void 0;
|
|
85
92
|
const label = name ? `${name} avatar` : "Avatar";
|
|
86
93
|
const spoken = corner ? `${label}, ${corner}` : label;
|
|
87
94
|
const classes = cx(
|
|
@@ -166,7 +173,7 @@ var Avatar = ({
|
|
|
166
173
|
style: text ? style : { "--crewlet-avatar-size": `${pixels}px`, ...style },
|
|
167
174
|
children: [
|
|
168
175
|
face,
|
|
169
|
-
|
|
176
|
+
verdict !== void 0 ? /* @__PURE__ */ jsx("span", { className: `crewlet-avatar__status crewlet-avatar__status--${verdict}`, "aria-hidden": "true", children: VERDICT_GLYPHS[verdict] }) : shownStatus !== void 0 ? /* @__PURE__ */ jsx("span", { className: `crewlet-avatar__status crewlet-avatar__status--${shownStatus}`, "aria-hidden": "true", children: STATUS_GLYPHS[shownStatus] }) : /* @__PURE__ */ jsx("span", { className: "crewlet-avatar__status crewlet-avatar__status--mark", "aria-hidden": "true", children: mark })
|
|
170
177
|
]
|
|
171
178
|
}
|
|
172
179
|
);
|
|
@@ -188,5 +195,22 @@ var STATUS_GLYPHS = {
|
|
|
188
195
|
] }),
|
|
189
196
|
stopped: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 14 14", focusable: "false", children: /* @__PURE__ */ jsx("rect", { x: "4.6", y: "4.6", width: "4.8", height: "4.8", rx: ".7", fill: "currentColor" }) })
|
|
190
197
|
};
|
|
198
|
+
var VERDICT_GLYPHS = {
|
|
199
|
+
approved: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 14 14", focusable: "false", children: /* @__PURE__ */ jsx(
|
|
200
|
+
"path",
|
|
201
|
+
{
|
|
202
|
+
d: "M4.4 7.2 6.3 9.1 9.6 5.3",
|
|
203
|
+
fill: "none",
|
|
204
|
+
stroke: "currentColor",
|
|
205
|
+
strokeWidth: "1.75",
|
|
206
|
+
strokeLinecap: "round",
|
|
207
|
+
strokeLinejoin: "round"
|
|
208
|
+
}
|
|
209
|
+
) }),
|
|
210
|
+
"changes-requested": /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 14 14", focusable: "false", children: [
|
|
211
|
+
/* @__PURE__ */ jsx("rect", { x: "6.1", y: "3.1", width: "1.8", height: "4.6", rx: ".9", fill: "currentColor" }),
|
|
212
|
+
/* @__PURE__ */ jsx("circle", { cx: "7", cy: "10.1", r: ".95", fill: "currentColor" })
|
|
213
|
+
] })
|
|
214
|
+
};
|
|
191
215
|
|
|
192
|
-
export { AVATAR_CHARACTER_FULL_DETAIL, AVATAR_CORNER_RANGE, AVATAR_CORNER_RATIO, AVATAR_SIZES, AVATAR_STATUSES, AVATAR_STATUS_LABELS, Avatar, avatarCorner, avatarInitialsName, avatarPixels, avatarTint, getInitials };
|
|
216
|
+
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 };
|