@crewlethq/ui 0.108.1 → 0.110.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/dist/AgentHandoffPanel/index.js +6 -6
- package/dist/AppShell/index.js +6 -5
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeList/index.js +7 -6
- package/dist/ArtifactBar/index.js +6 -6
- package/dist/ArtifactCard/index.js +4 -4
- package/dist/ArtifactPanel/index.js +3 -3
- package/dist/AvatarPicker/index.js +6 -6
- package/dist/Canvas/index.js +2 -2
- package/dist/CanvasBoard/index.js +4 -4
- package/dist/CanvasToolbar/index.js +3 -3
- package/dist/ChatThread/index.js +3 -2
- package/dist/CheckGrid/index.js +4 -4
- package/dist/Checkbox/index.js +3 -3
- package/dist/CodeBlock/index.js +3 -3
- package/dist/ColorField/index.js +3 -3
- package/dist/ColorSwatch/index.js +3 -3
- package/dist/Combobox/index.js +3 -3
- package/dist/CommandPalette/index.js +4 -4
- package/dist/CommentThread/index.js +4 -4
- package/dist/Composer/index.js +3 -3
- package/dist/{Composer-XVQFBCIB.css → Composer-UGPNQMYI.css} +39 -12
- package/dist/ConfirmField/index.js +3 -3
- package/dist/ContrastHelp/index.js +2 -2
- package/dist/Copyable/index.js +2 -2
- package/dist/DataGrid/index.js +7 -6
- package/dist/DataTable/index.js +6 -6
- package/dist/DataView/index.js +11 -11
- package/dist/DateTimePicker/index.js +2 -2
- package/dist/DocTabsEditor/index.js +7 -6
- package/dist/DockColumn/index.js +4 -3
- package/dist/{Editor-JRMMNTXI.js → Editor-GIEZ6PPP.js} +3 -3
- package/dist/EmojiPicker/index.js +3 -3
- package/dist/FilterPill/index.js +2 -2
- package/dist/HuePicker/index.js +5 -5
- package/dist/IconButton/IconButton.d.ts +3 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-LNNHLBAS.css → IconButton-NUZ242OY.css} +12 -0
- package/dist/InboxList/index.js +4 -3
- package/dist/Input/index.js +2 -2
- package/dist/KeyValueRows/index.js +3 -3
- package/dist/LinkInterstitial/index.js +3 -3
- package/dist/ListInput/index.js +6 -5
- package/dist/MarkdownEditor/index.js +6 -6
- package/dist/MediaMatch/index.js +2 -1
- package/dist/MemberPicker/index.js +4 -4
- package/dist/Menu/index.js +2 -2
- package/dist/MergeConflicts/index.js +6 -6
- package/dist/MessageActions/index.js +4 -4
- package/dist/Modal/index.js +2 -2
- package/dist/OrgTable/index.js +9 -8
- package/dist/Outline/index.js +3 -2
- package/dist/PeekRail/index.js +2 -2
- package/dist/PeopleRail/index.js +2 -2
- package/dist/PinTile/index.js +2 -2
- package/dist/Presence/index.js +3 -2
- package/dist/PresenterView/index.js +3 -3
- package/dist/PrincipalPicker/index.js +4 -4
- package/dist/ProposalCard/index.js +4 -4
- package/dist/RailList/index.js +10 -3
- package/dist/ReactionBar/index.js +4 -4
- package/dist/Reorder/index.js +3 -2
- package/dist/RichEditor/index.js +1 -1
- package/dist/SectionFrame/index.js +12 -2
- package/dist/SegmentedControl/index.js +5 -5
- package/dist/SendButton/index.js +2 -2
- package/dist/SetupWizard/index.js +3 -2
- package/dist/ShareDialog/index.js +7 -6
- package/dist/SheetColumnEditor/index.js +8 -8
- package/dist/SheetGrid/index.js +3 -3
- package/dist/SidePanel/index.js +2 -2
- package/dist/SidebarNav/SidebarNav.d.ts +10 -1
- package/dist/SidebarNav/index.d.ts +1 -0
- package/dist/SidebarNav/index.js +11 -1
- package/dist/SidebarNav/unseen.d.ts +41 -0
- package/dist/{SidebarNav-VXDUW6W5.css → SidebarNav-3SU7UDXK.css} +41 -0
- package/dist/SlideFilmstrip/index.js +6 -5
- package/dist/SlideNav/index.js +2 -2
- package/dist/Switcher/index.js +6 -5
- package/dist/Tabs/Tabs.d.ts +8 -1
- package/dist/Tabs/index.d.ts +1 -1
- package/dist/Tabs/index.js +3 -3
- package/dist/{Tabs-M2ELSU3V.css → Tabs-244SPRII.css} +9 -0
- package/dist/TagsInput/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +6 -6
- package/dist/ThemeToggle/index.js +2 -2
- package/dist/TimeRangePicker/index.js +8 -8
- package/dist/TimeWindowPicker/index.js +3 -3
- package/dist/TreeCanvas/index.js +5 -4
- package/dist/TreeGrid/index.js +8 -7
- package/dist/ValueField/index.js +4 -4
- package/dist/VersionCompare/index.js +6 -6
- package/dist/{chunk-TCC46LXY.js → chunk-2QLZCD5Q.js} +1 -1
- package/dist/{chunk-GELMY4I7.js → chunk-3R76X3MI.js} +1 -1
- package/dist/{chunk-IQELH56T.js → chunk-43UOZIYG.js} +1 -1
- package/dist/{chunk-AGP5U4VT.js → chunk-43YZWF2B.js} +4 -4
- package/dist/{chunk-RC7BU5YS.js → chunk-4JEHXJPO.js} +1 -1
- package/dist/{chunk-OY33ZBWU.js → chunk-4QI7VFLV.js} +2 -2
- package/dist/{chunk-M5L5APY2.js → chunk-4WOLHRHH.js} +1 -1
- package/dist/{chunk-MIIB3ZS6.js → chunk-4ZZ7G3XC.js} +1 -1
- package/dist/{chunk-YBO5PGUG.js → chunk-5LBIIEHJ.js} +143 -7
- package/dist/{chunk-JK42RK54.js → chunk-6BVGVAKH.js} +1 -1
- package/dist/{chunk-7EAZGL5B.js → chunk-6D7GTMNO.js} +1 -1
- package/dist/{chunk-7AKCC2QA.js → chunk-ALGG2HRE.js} +1 -1
- package/dist/{chunk-OSJD2WSV.js → chunk-AXGSKD72.js} +4 -4
- package/dist/{chunk-B7WZADFX.js → chunk-AZKGH2UI.js} +1 -1
- package/dist/{chunk-67T6TIGJ.js → chunk-BRJ6LZM2.js} +1 -1
- package/dist/{chunk-J76ZZ6U2.js → chunk-CUE3WM7L.js} +1 -1
- package/dist/{chunk-OINMHTDX.js → chunk-DEMG2UTW.js} +2 -2
- package/dist/{chunk-XOVSHJTZ.js → chunk-DK4SRL6D.js} +1 -1
- package/dist/{chunk-YWNCZMI7.js → chunk-EJEBRXOF.js} +2 -2
- package/dist/{chunk-5TUCQGQW.js → chunk-ET4RCHNJ.js} +1 -1
- package/dist/{chunk-LDNJZ2XA.js → chunk-FANYWNER.js} +1 -1
- package/dist/{chunk-22DNDOBR.js → chunk-FWDU7E34.js} +1 -1
- package/dist/{chunk-AFHDUM4V.js → chunk-G2B4Y67G.js} +1 -1
- package/dist/{chunk-MUR33XFM.js → chunk-G32JHH7N.js} +1 -1
- package/dist/{chunk-V464L4IL.js → chunk-G6HS6QA4.js} +3 -3
- package/dist/{chunk-V6EG4FGM.js → chunk-GA7HSINF.js} +1 -1
- package/dist/{chunk-KAHTBXQ7.js → chunk-HUSMU5EL.js} +1 -1
- package/dist/{chunk-R23HSPSU.js → chunk-HY2JXBPO.js} +3 -3
- package/dist/{chunk-OMVDF3RD.js → chunk-HY336MR6.js} +1 -1
- package/dist/{chunk-WZDL6DIC.js → chunk-IGFQ4LWZ.js} +3 -3
- package/dist/{chunk-UYKWJNXO.js → chunk-IIEDUSMU.js} +5 -5
- package/dist/{chunk-5I2XHHOH.js → chunk-IVZLFSQS.js} +1 -1
- package/dist/{chunk-SY47JXUV.js → chunk-JJLYGLH6.js} +2 -2
- package/dist/{chunk-4S2AN5W4.js → chunk-JMBPMSNI.js} +1 -1
- package/dist/{chunk-F7K3O742.js → chunk-K3IJWNHL.js} +1 -1
- package/dist/{chunk-BWFFDNVD.js → chunk-KRO66LZZ.js} +1 -1
- package/dist/{chunk-IS5EUMJW.js → chunk-LYHAR4DX.js} +3 -3
- package/dist/{chunk-2ONUTSER.js → chunk-MEAFEAFF.js} +1 -1
- package/dist/{chunk-OJ7NHII2.js → chunk-MNKXYGZ2.js} +2 -2
- package/dist/{chunk-N764LLIQ.js → chunk-N7CYJVV4.js} +1 -1
- package/dist/{chunk-YNAFW4QI.js → chunk-NIDLT7UM.js} +1 -1
- package/dist/{chunk-VWZECTOJ.js → chunk-NPMMCFKI.js} +1 -1
- package/dist/{chunk-XRDKB27X.js → chunk-NQIWSKQX.js} +1 -1
- package/dist/{chunk-YHQBSKGZ.js → chunk-NVQUEZU5.js} +2 -2
- package/dist/{chunk-DR7TJL55.js → chunk-O4J3FUIX.js} +4 -4
- package/dist/{chunk-IODIP2SA.js → chunk-O73RB4P7.js} +1 -1
- package/dist/{chunk-S7WNMAH6.js → chunk-OIF6UMPY.js} +3 -3
- package/dist/{chunk-ARGOJVRC.js → chunk-OJ3BGBU5.js} +2 -2
- package/dist/{chunk-GNKTHRWP.js → chunk-OPX4OGN3.js} +3 -3
- package/dist/{chunk-Y7KBBP2M.js → chunk-OQO7NSHR.js} +4 -2
- package/dist/{chunk-Z6OI7FXJ.js → chunk-OSKXOCH3.js} +4 -4
- package/dist/{chunk-JDHZH3JR.js → chunk-OTZNIWZA.js} +1 -1
- package/dist/{chunk-BHF26PSV.js → chunk-P3BEB4E6.js} +2 -2
- package/dist/{chunk-NM3WGXPJ.js → chunk-PJMDXZHP.js} +1 -1
- package/dist/{chunk-7DMD3U7S.js → chunk-PRZO2LAG.js} +1 -1
- package/dist/{chunk-3J3WAQCN.js → chunk-QHXO5H2S.js} +2 -2
- package/dist/{chunk-NNO5GSIB.js → chunk-QNSL4JCU.js} +1 -1
- package/dist/{chunk-X5DOWML3.js → chunk-R5OUUSLB.js} +2 -2
- package/dist/{chunk-6KHWTMCO.js → chunk-RBNYJP77.js} +2 -2
- package/dist/{chunk-VJ4OGNS7.js → chunk-RM4PUCDQ.js} +1 -1
- package/dist/{chunk-K6HBEWRI.js → chunk-RWUY53VW.js} +3 -3
- package/dist/chunk-SK4BIFTG.js +1 -0
- package/dist/{chunk-PCAT2EFB.js → chunk-SNKQNAJI.js} +1 -1
- package/dist/{chunk-CYPG4DXC.js → chunk-T5G5DM3H.js} +1 -1
- package/dist/{chunk-RKLPQGJ7.js → chunk-THVGTKST.js} +1 -1
- package/dist/{chunk-JFI5YB3R.js → chunk-TIAZSF7H.js} +1 -1
- package/dist/{chunk-GCAQ2UTU.js → chunk-TIOYPPIX.js} +2 -2
- package/dist/{chunk-EKWLQFL2.js → chunk-UXTW4GOT.js} +1 -1
- package/dist/{chunk-DVZIMJND.js → chunk-V35GTX74.js} +1 -1
- package/dist/{chunk-CJXDCURD.js → chunk-V5ANQP4E.js} +1 -1
- package/dist/{chunk-TZ4ZXED7.js → chunk-W4YNOUHF.js} +4 -4
- package/dist/{chunk-PNYANWZ6.js → chunk-WF4Q5LD6.js} +1 -1
- package/dist/{chunk-Z4PTR5FX.js → chunk-WM55LPY7.js} +1 -1
- package/dist/{chunk-6KYD6DOL.js → chunk-WOD6L2DC.js} +1 -1
- package/dist/{chunk-7QCSISHM.js → chunk-WYIPKGEO.js} +1 -1
- package/dist/{chunk-3VT5QVQF.js → chunk-XLJELX5W.js} +2 -2
- package/dist/{chunk-KPB4ZUBI.js → chunk-YRSNOCFL.js} +1 -1
- package/dist/{chunk-2SWDUJCT.js → chunk-YWTZHIKA.js} +2 -2
- package/dist/{chunk-QIWQFXKX.js → chunk-YXY6B5VB.js} +1 -1
- package/dist/{chunk-PFNTWGQB.js → chunk-ZBON36GU.js} +4 -4
- package/dist/{chunk-SKMTVBJT.js → chunk-ZFFIUJ4C.js} +1 -1
- package/dist/{chunk-J7XQSROY.js → chunk-ZQKLFN2J.js} +6 -6
- package/dist/generated/index.js +108 -107
- package/dist/index.js +108 -107
- package/dist/styles.css +105 -16
- package/package.json +3 -3
- /package/dist/{chunk-YJQXESOJ.js → chunk-COS6LJ4K.js} +0 -0
|
@@ -1,14 +1,116 @@
|
|
|
1
1
|
import { LockedLabel } from './chunk-TODOBUXO.js';
|
|
2
2
|
import { KeyChip } from './chunk-HBDA76EZ.js';
|
|
3
|
+
import { prefersReducedMotion } from './chunk-COS6LJ4K.js';
|
|
4
|
+
import { Button } from './chunk-RTHWXAXT.js';
|
|
3
5
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
6
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
5
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
8
|
import './HitArea-QUOS6ZDJ.css';
|
|
7
|
-
import './SidebarNav-
|
|
8
|
-
import { createContext, useId, useState, useContext } from 'react';
|
|
9
|
-
import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
|
|
10
|
-
import {
|
|
9
|
+
import './SidebarNav-3SU7UDXK.css';
|
|
10
|
+
import { createContext, useRef, useId, useState, useContext, useLayoutEffect, useCallback } from 'react';
|
|
11
|
+
import { ChevronDownGlyph, ArrowUpGlyph, ArrowDownGlyph } from '@crewlethq/icons/glyphs';
|
|
12
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
11
13
|
|
|
14
|
+
var NONE = { above: 0, below: 0 };
|
|
15
|
+
var CALLING_ROWS = ".crewlet-nav-item--unread > .crewlet-nav-item__head > .crewlet-nav-item__row";
|
|
16
|
+
var PILL_CLEARANCE = 8;
|
|
17
|
+
var isAbove = (box, view) => box.bottom <= view.top + 1;
|
|
18
|
+
var isBelow = (box, view) => box.top >= view.bottom - 1;
|
|
19
|
+
function callingRows(root) {
|
|
20
|
+
return [...root.querySelectorAll(CALLING_ROWS)].filter((row) => row.getBoundingClientRect().height > 0);
|
|
21
|
+
}
|
|
22
|
+
function unseenIn(rows, view) {
|
|
23
|
+
let above = 0;
|
|
24
|
+
let below = 0;
|
|
25
|
+
for (const row of rows) {
|
|
26
|
+
const box = row.getBoundingClientRect();
|
|
27
|
+
if (isAbove(box, view)) above += 1;
|
|
28
|
+
else if (isBelow(box, view)) below += 1;
|
|
29
|
+
}
|
|
30
|
+
return above === 0 && below === 0 ? NONE : { above, below };
|
|
31
|
+
}
|
|
32
|
+
function nearestUnseen(rows, view, scrollTop, side, clear) {
|
|
33
|
+
let hidden;
|
|
34
|
+
if (side === "below") {
|
|
35
|
+
hidden = rows.find((row) => isBelow(row.getBoundingClientRect(), view));
|
|
36
|
+
} else {
|
|
37
|
+
for (const row of rows) if (isAbove(row.getBoundingClientRect(), view)) hidden = row;
|
|
38
|
+
}
|
|
39
|
+
if (!hidden) return null;
|
|
40
|
+
const box = hidden.getBoundingClientRect();
|
|
41
|
+
const top = side === "below" ? scrollTop + (box.bottom - view.bottom) + clear : scrollTop - (view.top - box.top) - clear;
|
|
42
|
+
return { row: hidden, top: Math.max(0, Math.round(top)) };
|
|
43
|
+
}
|
|
44
|
+
function scrollerOf(el) {
|
|
45
|
+
const view = el.ownerDocument.defaultView;
|
|
46
|
+
for (let at = el; at && at !== el.ownerDocument.body; at = at.parentElement) {
|
|
47
|
+
const overflow = view?.getComputedStyle(at).overflowY ?? "";
|
|
48
|
+
if (overflow === "auto" || overflow === "scroll" || overflow === "overlay") return at;
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
function spanOf(scroller, view) {
|
|
53
|
+
if (scroller === null) return { top: 0, bottom: view.innerHeight };
|
|
54
|
+
const box = scroller.getBoundingClientRect();
|
|
55
|
+
return { top: box.top, bottom: box.bottom };
|
|
56
|
+
}
|
|
57
|
+
function useUnseenRows(list, enabled) {
|
|
58
|
+
const [unseen, setUnseen] = useState(NONE);
|
|
59
|
+
useLayoutEffect(() => {
|
|
60
|
+
const el = list.current;
|
|
61
|
+
const view = el?.ownerDocument.defaultView;
|
|
62
|
+
if (!enabled || !el || !view) {
|
|
63
|
+
setUnseen(NONE);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const scroller = scrollerOf(el);
|
|
67
|
+
let frame = 0;
|
|
68
|
+
const measure = () => {
|
|
69
|
+
frame = 0;
|
|
70
|
+
const next = unseenIn(callingRows(el), spanOf(scroller, view));
|
|
71
|
+
setUnseen((was) => was.above === next.above && was.below === next.below ? was : next);
|
|
72
|
+
};
|
|
73
|
+
const schedule = () => {
|
|
74
|
+
if (frame === 0) frame = view.requestAnimationFrame(measure);
|
|
75
|
+
};
|
|
76
|
+
measure();
|
|
77
|
+
const scrolled = scroller ?? view;
|
|
78
|
+
scrolled.addEventListener("scroll", schedule, { passive: true });
|
|
79
|
+
view.addEventListener("resize", schedule);
|
|
80
|
+
const resized = typeof view.ResizeObserver === "function" ? new view.ResizeObserver(schedule) : null;
|
|
81
|
+
resized?.observe(el);
|
|
82
|
+
if (scroller) resized?.observe(scroller);
|
|
83
|
+
const changed = new view.MutationObserver(schedule);
|
|
84
|
+
changed.observe(el, { childList: true, subtree: true, attributes: true, attributeFilter: ["class", "hidden"] });
|
|
85
|
+
return () => {
|
|
86
|
+
scrolled.removeEventListener("scroll", schedule);
|
|
87
|
+
view.removeEventListener("resize", schedule);
|
|
88
|
+
resized?.disconnect();
|
|
89
|
+
changed.disconnect();
|
|
90
|
+
if (frame !== 0) view.cancelAnimationFrame(frame);
|
|
91
|
+
};
|
|
92
|
+
}, [list, enabled]);
|
|
93
|
+
const reveal = useCallback(
|
|
94
|
+
(side, pill) => {
|
|
95
|
+
const el = list.current;
|
|
96
|
+
const view = el?.ownerDocument.defaultView;
|
|
97
|
+
if (!el || !view) return;
|
|
98
|
+
const scroller = scrollerOf(el);
|
|
99
|
+
const span = spanOf(scroller, view);
|
|
100
|
+
const box = pill?.getBoundingClientRect();
|
|
101
|
+
const reach = box && box.height > 0 ? side === "below" ? span.bottom - box.top : box.bottom - span.top : 0;
|
|
102
|
+
const clear = Math.max(0, Math.ceil(reach)) + PILL_CLEARANCE;
|
|
103
|
+
const scrollTop = scroller ? scroller.scrollTop : view.scrollY;
|
|
104
|
+
const next = nearestUnseen(callingRows(el), span, scrollTop, side, clear);
|
|
105
|
+
if (!next) return;
|
|
106
|
+
(scroller ?? view).scrollTo({ top: next.top, behavior: prefersReducedMotion(view) ? "auto" : "smooth" });
|
|
107
|
+
next.row.focus({ preventScroll: true });
|
|
108
|
+
},
|
|
109
|
+
[list]
|
|
110
|
+
);
|
|
111
|
+
return { unseen, reveal };
|
|
112
|
+
}
|
|
113
|
+
var pillLabel = (count, side) => `${count} unread ${side}`;
|
|
12
114
|
var GroupLocked = createContext(false);
|
|
13
115
|
var GroupFolded = createContext(false);
|
|
14
116
|
var DENSE_STOPS = ".crewlet-nav-item__row, .crewlet-nav-group__toggle";
|
|
@@ -25,21 +127,55 @@ function moveInDense(event) {
|
|
|
25
127
|
event.preventDefault();
|
|
26
128
|
stops[next].focus();
|
|
27
129
|
}
|
|
28
|
-
function SidebarNav({
|
|
130
|
+
function SidebarNav({
|
|
131
|
+
label,
|
|
132
|
+
dense = false,
|
|
133
|
+
unreadPills = false,
|
|
134
|
+
unreadPillLabel = pillLabel,
|
|
135
|
+
className,
|
|
136
|
+
children
|
|
137
|
+
}) {
|
|
138
|
+
const nav = useRef(null);
|
|
139
|
+
const { unseen, reveal } = useUnseenRows(nav, unreadPills);
|
|
140
|
+
const pill = (side, count) => count > 0 ? /* @__PURE__ */ jsx(UnseenPill, { side, label: unreadPillLabel(count, side), onReveal: reveal }) : null;
|
|
29
141
|
return (
|
|
30
142
|
// The keys are its links' and buttons', handled where they bubble to.
|
|
31
143
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
32
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ jsxs(
|
|
33
145
|
"nav",
|
|
34
146
|
{
|
|
147
|
+
ref: nav,
|
|
35
148
|
className: cx("crewlet-sidebar-nav", dense && "crewlet-sidebar-nav--dense", className),
|
|
36
149
|
"aria-label": label,
|
|
37
150
|
onKeyDown: dense ? moveInDense : void 0,
|
|
38
|
-
children
|
|
151
|
+
children: [
|
|
152
|
+
pill("above", unseen.above),
|
|
153
|
+
children,
|
|
154
|
+
pill("below", unseen.below)
|
|
155
|
+
]
|
|
39
156
|
}
|
|
40
157
|
)
|
|
41
158
|
);
|
|
42
159
|
}
|
|
160
|
+
function UnseenPill({
|
|
161
|
+
side,
|
|
162
|
+
label,
|
|
163
|
+
onReveal
|
|
164
|
+
}) {
|
|
165
|
+
const Arrow = side === "above" ? ArrowUpGlyph : ArrowDownGlyph;
|
|
166
|
+
return /* @__PURE__ */ jsx("div", { className: cx("crewlet-sidebar-nav__unseen", `crewlet-sidebar-nav__unseen--${side}`), children: /* @__PURE__ */ jsx(
|
|
167
|
+
Button,
|
|
168
|
+
{
|
|
169
|
+
className: "crewlet-sidebar-nav__unseen-pill",
|
|
170
|
+
variant: "secondary",
|
|
171
|
+
size: "small",
|
|
172
|
+
shape: "pill",
|
|
173
|
+
leadingIcon: /* @__PURE__ */ jsx(Arrow, { size: "sm" }),
|
|
174
|
+
onClick: (event) => onReveal(side, event.currentTarget),
|
|
175
|
+
children: label
|
|
176
|
+
}
|
|
177
|
+
) });
|
|
178
|
+
}
|
|
43
179
|
function NavGroup({
|
|
44
180
|
label,
|
|
45
181
|
icon,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useReorder } from './chunk-
|
|
2
|
-
import { Menu } from './chunk-
|
|
3
|
-
import { Input } from './chunk-
|
|
4
|
-
import { IconButton } from './chunk-
|
|
1
|
+
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
2
|
+
import { Menu } from './chunk-AZKGH2UI.js';
|
|
3
|
+
import { Input } from './chunk-FWDU7E34.js';
|
|
4
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './DocTabsEditor-25J6MYZF.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
2
|
-
import { IconButton } from './chunk-
|
|
2
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
3
3
|
import { Tooltip } from './chunk-4SKN3BLH.js';
|
|
4
4
|
import { useComposedRef } from './chunk-L72URIHR.js';
|
|
5
5
|
import { useLayerContainer, viewportBounds, visibleBounds, LAYER_GAP, anchorGone, placePopup, LAYER_REPOSITION_EVENT } from './chunk-FIX72ZEC.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SlideStage } from './chunk-7O53SWKI.js';
|
|
2
|
-
import { useReorder } from './chunk-
|
|
3
|
-
import { Menu } from './chunk-
|
|
2
|
+
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
3
|
+
import { Menu } from './chunk-AZKGH2UI.js';
|
|
4
4
|
import { Kbd, isApplePlatform } from './chunk-VBBLHS2Y.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { emojiName } from './chunk-
|
|
1
|
+
import { emojiName } from './chunk-GA7HSINF.js';
|
|
2
2
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
3
|
-
import { IconButton } from './chunk-
|
|
3
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
4
4
|
import { heldHint } from './chunk-TDFLCUBE.js';
|
|
5
5
|
import { Tooltip } from './chunk-4SKN3BLH.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useAppShellAside } from './chunk-MBEZOURR.js';
|
|
2
2
|
import { ResizeHandle } from './chunk-FQ6J4DK7.js';
|
|
3
|
-
import { IconButton } from './chunk-
|
|
3
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
4
4
|
import { useEscapeWithin, useModalLayer } from './chunk-EDPMHSLZ.js';
|
|
5
5
|
import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeHex, parseColourInput } from './chunk-7W3LYIOC.js';
|
|
2
|
-
import { FormField, Input, InputAffix } from './chunk-
|
|
2
|
+
import { FormField, Input, InputAffix } from './chunk-FWDU7E34.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './ColorField-2OIOWT3Z.css';
|
|
5
5
|
import { useId, useState } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SECRET_INPUT_PROPS } from './chunk-NICEDVZM.js';
|
|
2
2
|
import { useFieldError, FormFieldInvalidContext } from './chunk-JLKO7PSK.js';
|
|
3
3
|
import { characterCountState, CharacterCount } from './chunk-TEXK4RK6.js';
|
|
4
|
-
import { IconButton } from './chunk-
|
|
4
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
5
5
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
6
6
|
import { useFocusModality } from './chunk-4ITETIGZ.js';
|
|
7
7
|
import { useHeadingLevel, headingTag, HeadingLevelProvider, nextHeadingLevel } from './chunk-PQADV6P6.js';
|
|
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var engine = null;
|
|
10
10
|
var loading = null;
|
|
11
11
|
function loadEngine() {
|
|
12
|
-
loading ??= import('./Editor-
|
|
12
|
+
loading ??= import('./Editor-GIEZ6PPP.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefusalStrip, ReceiptStrip } from './chunk-I2FNTMX2.js';
|
|
2
2
|
import { ChangeList } from './chunk-BRUJ3XXH.js';
|
|
3
3
|
import { StatusCard } from './chunk-7L75YB57.js';
|
|
4
|
-
import { Checkbox } from './chunk-
|
|
4
|
+
import { Checkbox } from './chunk-PJMDXZHP.js';
|
|
5
5
|
import { Disclosure } from './chunk-D5O64CVE.js';
|
|
6
6
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
7
7
|
import { Spinner } from './chunk-XSPCITPN.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Note } from './chunk-5SZGKSGL.js';
|
|
2
|
-
import { CanvasToolbar, toolForKey } from './chunk-
|
|
3
|
-
import { IDENTITY_VIEW, Canvas } from './chunk-
|
|
4
|
-
import { IconButton } from './chunk-
|
|
2
|
+
import { CanvasToolbar, toolForKey } from './chunk-MNKXYGZ2.js';
|
|
3
|
+
import { IDENTITY_VIEW, Canvas } from './chunk-HUSMU5EL.js';
|
|
4
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './CanvasBoard-U6LR5F6H.css';
|
|
7
7
|
import { useState, useRef, useImperativeHandle, useCallback, useMemo, useEffect } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Popover } from './chunk-VYUEAMA4.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
2
|
+
import { Input } from './chunk-FWDU7E34.js';
|
|
3
3
|
import { Tooltip } from './chunk-4SKN3BLH.js';
|
|
4
4
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LayerNodeBridge } from './chunk-X4HBZSXA.js';
|
|
2
2
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
3
3
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
4
|
-
import { IconButton } from './chunk-
|
|
4
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
5
5
|
import { Tooltip } from './chunk-4SKN3BLH.js';
|
|
6
6
|
import { LAYER_REPOSITION_EVENT, LayerHost } from './chunk-FIX72ZEC.js';
|
|
7
7
|
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-3R76X3MI.js';
|
|
2
2
|
import { Callout } from './chunk-BPCY7ZID.js';
|
|
3
|
-
import { SegmentedControl } from './chunk-
|
|
4
|
-
import { FormField, Input } from './chunk-
|
|
3
|
+
import { SegmentedControl } from './chunk-RM4PUCDQ.js';
|
|
4
|
+
import { FormField, Input } from './chunk-FWDU7E34.js';
|
|
5
5
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
import { ClockGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useListbox } from './chunk-KW7T23RT.js';
|
|
2
2
|
import { Tag } from './chunk-SJ3EUCFD.js';
|
|
3
|
-
import { IconButton } from './chunk-
|
|
3
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
4
4
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
5
5
|
import { useFocusModality } from './chunk-4ITETIGZ.js';
|
|
6
6
|
import { announce } from './chunk-WGMKERCR.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useReorder } from './chunk-
|
|
2
|
-
import { FormField, Textarea } from './chunk-
|
|
1
|
+
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
2
|
+
import { FormField, Textarea } from './chunk-FWDU7E34.js';
|
|
3
3
|
import { characterCountState, CharacterCount, countCharacters } from './chunk-TEXK4RK6.js';
|
|
4
4
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
5
5
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
6
|
-
import { IconButton } from './chunk-
|
|
6
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
7
7
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
8
8
|
import { announce } from './chunk-WGMKERCR.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Select } from './chunk-JUZOMYOZ.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-43UOZIYG.js';
|
|
4
4
|
import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
5
|
-
import { Checkbox } from './chunk-
|
|
6
|
-
import { Menu } from './chunk-
|
|
7
|
-
import { FormField, Input } from './chunk-
|
|
5
|
+
import { Checkbox } from './chunk-PJMDXZHP.js';
|
|
6
|
+
import { Menu } from './chunk-AZKGH2UI.js';
|
|
7
|
+
import { FormField, Input } from './chunk-FWDU7E34.js';
|
|
8
8
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
9
9
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
10
|
-
import { IconButton } from './chunk-
|
|
10
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
11
11
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
12
12
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
13
13
|
import './SheetColumnEditor-BO2HKFRB.css';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-
|
|
1
|
+
import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-GA7HSINF.js';
|
|
2
2
|
import { heldHint } from './chunk-TDFLCUBE.js';
|
|
3
3
|
import { Tooltip } from './chunk-4SKN3BLH.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormField, Label, Input } from './chunk-
|
|
1
|
+
import { FormField, Label, Input } from './chunk-FWDU7E34.js';
|
|
2
2
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
3
|
-
import { IconButton } from './chunk-
|
|
3
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
4
4
|
import { announce } from './chunk-WGMKERCR.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './KeyValueRows-US5KW7JK.css';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlideNav } from './chunk-
|
|
1
|
+
import { SlideNav } from './chunk-6D7GTMNO.js';
|
|
2
2
|
import { SlideStage, SLIDE_WIDTH, SLIDE_HEIGHT } from './chunk-7O53SWKI.js';
|
|
3
3
|
import { Eyebrow } from './chunk-RK4XPHVG.js';
|
|
4
4
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SegmentedControl } from './chunk-
|
|
1
|
+
import { SegmentedControl } from './chunk-RM4PUCDQ.js';
|
|
2
2
|
import { ArtifactIcon } from './chunk-AVL52EME.js';
|
|
3
|
-
import { Menu } from './chunk-
|
|
3
|
+
import { Menu } from './chunk-AZKGH2UI.js';
|
|
4
4
|
import { isApplePlatform, Kbd, ariaKeyshortcuts } from './chunk-VBBLHS2Y.js';
|
|
5
5
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
6
|
-
import { IconButton } from './chunk-
|
|
6
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
7
7
|
import { Tooltip } from './chunk-4SKN3BLH.js';
|
|
8
8
|
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
2
|
-
import { ShortcutTip } from './chunk-
|
|
3
|
-
import { IconButton } from './chunk-
|
|
2
|
+
import { ShortcutTip } from './chunk-HUSMU5EL.js';
|
|
3
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './CanvasToolbar-EM5EVZED.css';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-RM4PUCDQ.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 { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
2
|
+
import { Input } from './chunk-FWDU7E34.js';
|
|
3
3
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './HitArea-QUOS6ZDJ.css';
|
|
@@ -4,7 +4,7 @@ import { RelativeTime } from './chunk-GBKBME7Q.js';
|
|
|
4
4
|
import { Card } from './chunk-3C3TSWRR.js';
|
|
5
5
|
import { AvatarStack } from './chunk-WUCRLA25.js';
|
|
6
6
|
import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
|
|
7
|
-
import { Checkbox } from './chunk-
|
|
7
|
+
import { Checkbox } from './chunk-PJMDXZHP.js';
|
|
8
8
|
import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
|
|
9
9
|
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
10
10
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Select } from './chunk-JUZOMYOZ.js';
|
|
2
2
|
import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-EE3DJMSQ.js';
|
|
3
3
|
import { Popover } from './chunk-VYUEAMA4.js';
|
|
4
|
-
import { Input } from './chunk-
|
|
4
|
+
import { Input } from './chunk-FWDU7E34.js';
|
|
5
5
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
6
|
-
import { IconButton } from './chunk-
|
|
6
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
7
7
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
8
8
|
import { useFocusModality } from './chunk-4ITETIGZ.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Select } from './chunk-JUZOMYOZ.js';
|
|
2
|
-
import { Modal } from './chunk-
|
|
3
|
-
import { CopyButton } from './chunk-
|
|
2
|
+
import { Modal } from './chunk-3R76X3MI.js';
|
|
3
|
+
import { CopyButton } from './chunk-QNSL4JCU.js';
|
|
4
4
|
import { Callout } from './chunk-BPCY7ZID.js';
|
|
5
5
|
import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
|
|
6
|
-
import { useMediaMatch } from './chunk-
|
|
6
|
+
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
7
7
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
8
|
-
import { IconButton } from './chunk-
|
|
8
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
9
9
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
10
10
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
11
11
|
import './ShareDialog-72VTMM4K.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CHAT_MESSAGE_CLASS } from './chunk-LSOPZVR7.js';
|
|
2
|
-
import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-
|
|
2
|
+
import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
|
|
3
3
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
4
4
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-3R76X3MI.js';
|
|
2
2
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
3
3
|
import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
|
|
4
4
|
import { Popover } from './chunk-VYUEAMA4.js';
|
|
5
5
|
import { Skeleton } from './chunk-DEIHV2H3.js';
|
|
6
6
|
import { Text } from './chunk-XLMURU75.js';
|
|
7
|
-
import { useMediaMatch } from './chunk-
|
|
8
|
-
import { Input } from './chunk-
|
|
7
|
+
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
8
|
+
import { Input } from './chunk-FWDU7E34.js';
|
|
9
9
|
import { focusables, isComposing } from './chunk-EDPMHSLZ.js';
|
|
10
10
|
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
11
11
|
import { announce } from './chunk-WGMKERCR.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Select } from './chunk-JUZOMYOZ.js';
|
|
2
|
-
import { Combobox } from './chunk-
|
|
3
|
-
import { FormField, Textarea, InputAffix } from './chunk-
|
|
2
|
+
import { Combobox } from './chunk-NIDLT7UM.js';
|
|
3
|
+
import { FormField, Textarea, InputAffix } from './chunk-FWDU7E34.js';
|
|
4
4
|
import './Input-YVCNNTYT.css';
|
|
5
5
|
import './VisuallyHidden-OUYVMKEH.css';
|
|
6
6
|
import './HitArea-QUOS6ZDJ.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Switch } from './chunk-6YYRFGXO.js';
|
|
2
|
-
import { useReorder } from './chunk-
|
|
3
|
-
import { Checkbox } from './chunk-
|
|
4
|
-
import { IconButton } from './chunk-
|
|
2
|
+
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
3
|
+
import { Checkbox } from './chunk-PJMDXZHP.js';
|
|
4
|
+
import { IconButton } from './chunk-WF4Q5LD6.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './ArrangeList-F6Y43I24.css';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useRoving, tabStop } from './chunk-EGMQURBR.js';
|
|
2
2
|
import { StatusDot } from './chunk-QRE6JCHS.js';
|
|
3
|
-
import { Menu } from './chunk-
|
|
3
|
+
import { Menu } from './chunk-AZKGH2UI.js';
|
|
4
4
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
5
5
|
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-244SPRII.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';
|
|
@@ -105,6 +105,7 @@ function Tabs({
|
|
|
105
105
|
items,
|
|
106
106
|
variant = "pill",
|
|
107
107
|
size = "md",
|
|
108
|
+
density = "default",
|
|
108
109
|
ariaLabel,
|
|
109
110
|
className = "",
|
|
110
111
|
value,
|
|
@@ -174,6 +175,7 @@ function Tabs({
|
|
|
174
175
|
"crewlet-tabs",
|
|
175
176
|
`crewlet-tabs--${variant}`,
|
|
176
177
|
`crewlet-tabs--${size}`,
|
|
178
|
+
density === "chat" && "crewlet-tabs--chat",
|
|
177
179
|
folding && "crewlet-tabs--fold",
|
|
178
180
|
!boxed && !barred && className
|
|
179
181
|
);
|