@crewlethq/ui 0.131.0 → 0.131.2
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/AppShell/AppShell.d.ts +47 -196
- package/dist/AppShell/index.js +2 -2
- package/dist/{AppShell-N5IHITJM.css → AppShell-RPILZZW5.css} +109 -431
- package/dist/ArtifactBar/index.js +4 -4
- package/dist/ArtifactCard/ArtifactCard.d.ts +13 -39
- package/dist/ArtifactCard/index.js +1 -1
- package/dist/{ArtifactCard-ZH6KCD5O.css → ArtifactCard-PWMC7RAY.css} +15 -49
- package/dist/ArtifactMakeRow/ArtifactMakeRow.d.ts +3 -16
- package/dist/AvatarPicker/index.js +5 -5
- package/dist/BrandSample/index.js +1 -1
- package/dist/{BrandSample-3OSKZAGG.css → BrandSample-WSBT7FQ5.css} +5 -25
- package/dist/Breadcrumb/Breadcrumb.d.ts +5 -41
- package/dist/Breadcrumb/index.js +1 -1
- package/dist/{Breadcrumb-MQJWJVN3.css → Breadcrumb-JDBQXPR5.css} +12 -58
- package/dist/Canvas/Canvas.d.ts +52 -228
- package/dist/Canvas/geometry.d.ts +31 -139
- package/dist/Canvas/index.js +1 -1
- package/dist/CanvasBoard/index.js +3 -3
- package/dist/CanvasToolbar/index.js +2 -2
- package/dist/CodeBlock/index.js +1 -1
- package/dist/ColorSwatch/index.js +2 -2
- package/dist/CommentThread/CommentThread.d.ts +3 -21
- package/dist/CommentThread/index.js +1 -1
- package/dist/{CommentThread-544KCZT7.css → CommentThread-YU6VSVS4.css} +2 -4
- package/dist/Composer/Composer.d.ts +17 -54
- package/dist/ConfirmField/index.js +2 -2
- package/dist/ContrastBadge/index.js +2 -2
- package/dist/ContrastHelp/index.js +3 -3
- package/dist/Copyable/Copyable.d.ts +2 -11
- package/dist/Copyable/index.js +1 -1
- package/dist/{Copyable-XMLKKJDT.css → Copyable-U3UJL3BP.css} +9 -32
- package/dist/DataGrid/DataGrid.d.ts +46 -136
- package/dist/DataGrid/index.js +1 -1
- package/dist/DataTable/index.js +2 -2
- package/dist/DataView/index.js +3 -3
- package/dist/DocTabsEditor/index.js +2 -2
- package/dist/{Editor-MEPTWBY5.js → Editor-HDHT5BX2.js} +2 -2
- package/dist/GraphCanvas/GraphCanvas.d.ts +22 -79
- package/dist/GraphCanvas/index.js +2 -2
- package/dist/GraphCanvas/layout.d.ts +10 -35
- package/dist/HuePicker/index.js +4 -4
- package/dist/InlineCode/InlineCode.d.ts +7 -28
- package/dist/InlineCode/index.js +1 -1
- package/dist/InlineCode-3KJCBT5I.css +80 -0
- package/dist/Link/Link.d.ts +3 -25
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Y7RHTR6F.css → Link-7AADYG2F.css} +12 -35
- package/dist/LinkInterstitial/index.js +2 -2
- package/dist/LogoSlot/index.js +3 -3
- package/dist/MarkdownEditor/index.js +4 -4
- package/dist/MentionMenu/MentionMenu.d.ts +9 -31
- package/dist/Menu/Menu.d.ts +9 -91
- package/dist/Menu/index.js +1 -1
- package/dist/MergeConflicts/index.js +4 -4
- package/dist/ObjectHeader/index.js +2 -2
- package/dist/OrgTable/index.js +3 -3
- package/dist/PresenterView/index.js +2 -2
- package/dist/PropertyList/index.js +3 -3
- package/dist/RailList/index.js +3 -3
- package/dist/RichEditor/index.js +1 -1
- package/dist/SearchTrigger/SearchTrigger.d.ts +8 -36
- package/dist/SearchTrigger/index.js +1 -1
- package/dist/{SearchTrigger-MME7NIHX.css → SearchTrigger-3HO7D6NP.css} +5 -17
- package/dist/SegmentedControl/index.js +3 -3
- package/dist/Select/Select.d.ts +6 -0
- package/dist/Select/index.js +1 -1
- package/dist/{Select-AF5YMSC6.css → Select-2FAOIL73.css} +64 -6
- package/dist/ShareDialog/index.js +3 -3
- package/dist/SheetColumnEditor/index.js +6 -6
- package/dist/SheetGrid/index.js +2 -2
- package/dist/SlideFilmstrip/index.js +2 -2
- package/dist/TableCells/index.js +2 -2
- package/dist/Tabs/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +4 -4
- package/dist/TimeRangePicker/index.js +4 -4
- package/dist/TimeWindowPicker/index.js +2 -2
- package/dist/TreeCanvas/TreeCanvas.d.ts +50 -248
- package/dist/TreeCanvas/index.js +2 -2
- package/dist/TreeGrid/index.js +2 -2
- package/dist/ValueField/index.js +2 -2
- package/dist/VersionCompare/index.js +4 -4
- package/dist/{chunk-O43SIR3W.js → chunk-3QQ3QHQR.js} +1 -1
- package/dist/{chunk-MZV45HQB.js → chunk-3T6URIXM.js} +1 -1
- package/dist/{chunk-H2QSDZTX.js → chunk-3ZURIGQ7.js} +1 -1
- package/dist/{chunk-KQFOPY2P.js → chunk-4H577HEE.js} +1 -1
- package/dist/{chunk-3WSDAVE6.js → chunk-5PAABHF7.js} +1 -1
- package/dist/{chunk-3DAIOPAV.js → chunk-63NULHGF.js} +1 -1
- package/dist/{chunk-NFA7CSCD.js → chunk-6BMPVSUB.js} +1 -1
- package/dist/{chunk-GQPKDPMS.js → chunk-6W5D4A3V.js} +1 -1
- package/dist/{chunk-WZ5TDJ2K.js → chunk-7GFLKLCG.js} +1 -1
- package/dist/{chunk-JY6WSDUG.js → chunk-AIQHJ2HF.js} +1 -1
- package/dist/{chunk-M32NBSS7.js → chunk-B2RTWEZZ.js} +4 -6
- package/dist/{chunk-3P24SMTI.js → chunk-B5MCTPXL.js} +1 -1
- package/dist/{chunk-V2FD4RPS.js → chunk-BGPHGCDT.js} +1 -1
- package/dist/{chunk-QNDXLHBO.js → chunk-CN2EDXAW.js} +1 -1
- package/dist/{chunk-NLGRDKCK.js → chunk-EPH5EPKN.js} +2 -2
- package/dist/{chunk-AKCIF6XN.js → chunk-FEJVDORA.js} +1 -1
- package/dist/{chunk-PFTUWDZN.js → chunk-FIH5EMJF.js} +1 -1
- package/dist/{chunk-OWYIRWEX.js → chunk-FMRRKLNX.js} +1 -1
- package/dist/{chunk-QM2QFKIA.js → chunk-FVXNR63H.js} +2 -2
- package/dist/{chunk-2AKVGQ73.js → chunk-GDBROEQ5.js} +1 -1
- package/dist/{chunk-NMBGVHGQ.js → chunk-GSLN7WL2.js} +2 -2
- package/dist/{chunk-KMIS2R67.js → chunk-HJAX4356.js} +1 -1
- package/dist/{chunk-WLCPN22T.js → chunk-HKYLPYVF.js} +1 -1
- package/dist/{chunk-Q4JX6UO7.js → chunk-HMEFWPAA.js} +3 -7
- package/dist/{chunk-OVFB63RZ.js → chunk-JANUABBT.js} +3 -5
- package/dist/{chunk-AIYSPVVZ.js → chunk-JDRBZYIA.js} +1 -1
- package/dist/{chunk-7FSIBX4S.js → chunk-JG66SXCX.js} +1 -1
- package/dist/{chunk-SIL5WE55.js → chunk-LPQF7Z44.js} +1 -1
- package/dist/{chunk-D2KJ5GQC.js → chunk-N2DCSSYC.js} +2 -2
- package/dist/{chunk-2TZNTPF5.js → chunk-NDWXVEY6.js} +2 -4
- package/dist/{chunk-4Q7AWZ6O.js → chunk-OIC6S5ES.js} +1 -1
- package/dist/{chunk-6ZFQ6TAM.js → chunk-OU22GKZK.js} +32 -18
- package/dist/{chunk-QFE6T6GW.js → chunk-P4QAS5TS.js} +1 -1
- package/dist/{chunk-JKFA2F7J.js → chunk-R4YUMULC.js} +1 -1
- package/dist/{chunk-E3AFQTWT.js → chunk-SRPV3EAJ.js} +1 -1
- package/dist/{chunk-QDXSBVZR.js → chunk-TBNA64RD.js} +2 -2
- package/dist/{chunk-K5WTII2H.js → chunk-U67UM3VS.js} +1 -1
- package/dist/{chunk-RMGPZQVJ.js → chunk-UTKI2SAM.js} +1 -1
- package/dist/{chunk-KUECTV2P.js → chunk-W443OSWT.js} +1 -1
- package/dist/{chunk-XHNV272L.js → chunk-W4UJWFCZ.js} +1 -1
- package/dist/{chunk-EGHOU7U2.js → chunk-WGAEHKGW.js} +5 -12
- package/dist/{chunk-MNACKUBB.js → chunk-WIGJ4J5U.js} +3 -3
- package/dist/{chunk-32QLSXKL.js → chunk-WWCQDCH5.js} +1 -1
- package/dist/{chunk-3DGNF2EH.js → chunk-XGZXKG53.js} +2 -2
- package/dist/{chunk-MNVIIZQP.js → chunk-YADYQHHW.js} +2 -5
- package/dist/{chunk-Y7FPSBCN.js → chunk-YBOGOTYV.js} +1 -1
- package/dist/{chunk-ECOWCJHQ.js → chunk-YTDZY3PY.js} +1 -1
- package/dist/{chunk-6POROC4M.js → chunk-ZO3MXMAC.js} +1 -1
- package/dist/generated/index.js +78 -78
- package/dist/index.js +78 -78
- package/dist/styles.css +253 -703
- package/dist/utils/pathBreaks.d.ts +3 -8
- package/package.json +3 -3
- package/dist/InlineCode-BEYQFJQT.css +0 -106
- package/dist/{chunk-HERJFKPF.js → chunk-AF3F35DQ.js} +1 -1
- package/dist/{chunk-3YOLD7WG.js → chunk-F7NHMBGJ.js} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BrandScope } from './chunk-X7WEE3EK.js';
|
|
2
2
|
import { normalizeHex } from './chunk-7W3LYIOC.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './BrandSample-
|
|
4
|
+
import './BrandSample-WSBT7FQ5.css';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var LABELS = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Note } from './chunk-YJPQJVRJ.js';
|
|
2
|
-
import { CanvasToolbar, toolForKey } from './chunk-
|
|
3
|
-
import { IDENTITY_VIEW, Canvas } from './chunk-
|
|
2
|
+
import { CanvasToolbar, toolForKey } from './chunk-FEJVDORA.js';
|
|
3
|
+
import { IDENTITY_VIEW, Canvas } from './chunk-YADYQHHW.js';
|
|
4
4
|
import { IconButton } from './chunk-X5YI6E5X.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './CanvasBoard-U6LR5F6H.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMeasuredSizes, isTypeAheadKey, typeAheadBuffer } from './chunk-MY374UUD.js';
|
|
2
2
|
import { FullscreenToggle } from './chunk-3JLG6KRU.js';
|
|
3
3
|
import { FilterChip } from './chunk-L6HUVA33.js';
|
|
4
|
-
import { CANVAS_FIT_PADDING, Canvas } from './chunk-
|
|
4
|
+
import { CANVAS_FIT_PADDING, Canvas } from './chunk-YADYQHHW.js';
|
|
5
5
|
import { Text } from './chunk-475DOAWF.js';
|
|
6
6
|
import { LayerHost } from './chunk-FIX72ZEC.js';
|
|
7
7
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
@@ -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-BGPHGCDT.js';
|
|
3
|
+
import { tabId } from './chunk-AIQHJ2HF.js';
|
|
4
4
|
import { IconButton } from './chunk-X5YI6E5X.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './MarkdownEditor-BLCJRGDC.css';
|
|
@@ -7,7 +7,7 @@ import { IconButton } from './chunk-X5YI6E5X.js';
|
|
|
7
7
|
import { Count } from './chunk-Y5CMDLQM.js';
|
|
8
8
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
|
-
import './CommentThread-
|
|
10
|
+
import './CommentThread-YU6VSVS4.css';
|
|
11
11
|
import { useState, useRef, useId, useMemo, useEffect } from 'react';
|
|
12
12
|
import { MessageSquareGlyph, XGlyph } from '@crewlethq/icons/glyphs';
|
|
13
13
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTreeState, useMeasuredSizes, layoutForest, treeAncestors, useLayoutAnchor, treeExpandable, layoutConnectors, treeItemAction, treeStep, treePosInSet, treeSetSize, treeLevel, placeGroups } from './chunk-MY374UUD.js';
|
|
2
|
-
import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-
|
|
2
|
+
import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-YADYQHHW.js';
|
|
3
3
|
import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
|
|
4
4
|
import { focusables } from './chunk-EDPMHSLZ.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -594,12 +594,8 @@ function TreeCanvas({
|
|
|
594
594
|
id
|
|
595
595
|
);
|
|
596
596
|
}) }),
|
|
597
|
-
composing !== null && /*
|
|
598
|
-
|
|
599
|
-
be in, so one handler on the boundary catches it from all of them,
|
|
600
|
-
which is the same arrangement the tree above makes for its items.
|
|
601
|
-
It takes no tab stop of its own: the -1 is there so focus can be
|
|
602
|
-
PUT on it before the form has drawn a control. */
|
|
597
|
+
composing !== null && /* The region catches Escape from every field; it is not a control.
|
|
598
|
+
Its -1 lets focus be put on it before the form draws a control. */
|
|
603
599
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- see above
|
|
604
600
|
/* @__PURE__ */ jsx(
|
|
605
601
|
"div",
|
|
@@ -10,7 +10,7 @@ import { AvatarStack } from './chunk-ARZGEHWE.js';
|
|
|
10
10
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
11
11
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
12
12
|
import './ArtifactKinds-27TE3KJL.css';
|
|
13
|
-
import './ArtifactCard-
|
|
13
|
+
import './ArtifactCard-PWMC7RAY.css';
|
|
14
14
|
import { useId } from 'react';
|
|
15
15
|
import { PinGlyph } from '@crewlethq/icons/glyphs';
|
|
16
16
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -163,10 +163,8 @@ function ArtifactCard({
|
|
|
163
163
|
/* @__PURE__ */ jsx("label", { htmlFor: boxId, className: "crewlet-artifact-card__link", children: bodyContent })
|
|
164
164
|
) : /* @__PURE__ */ jsx("a", { href, className: "crewlet-artifact-card__link", "aria-labelledby": titleId, "aria-describedby": factsId, children: bodyContent }),
|
|
165
165
|
selectable ? (
|
|
166
|
-
//
|
|
167
|
-
//
|
|
168
|
-
// words. The anchor has the preview's shape, so the box sits on the
|
|
169
|
-
// seam opposite the kind's badge whatever the card's width.
|
|
166
|
+
// The box sits on the preview's foot, opposite the kind's badge, so it
|
|
167
|
+
// never covers the start of a cover's own title.
|
|
170
168
|
/* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__select-anchor", children: /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__select", children: /* @__PURE__ */ jsx(
|
|
171
169
|
Checkbox,
|
|
172
170
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-BGPHGCDT.js';
|
|
3
3
|
import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SlideStage } from './chunk-7O53SWKI.js';
|
|
2
2
|
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
3
|
-
import { Menu } from './chunk-
|
|
3
|
+
import { Menu } from './chunk-WGAEHKGW.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,5 +1,5 @@
|
|
|
1
|
-
import { SetByLine } from './chunk-
|
|
2
|
-
import { Link } from './chunk-
|
|
1
|
+
import { SetByLine } from './chunk-W443OSWT.js';
|
|
2
|
+
import { Link } from './chunk-UTKI2SAM.js';
|
|
3
3
|
import { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
|
|
4
4
|
import { EmptyValue } from './chunk-WGLOH33S.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -629,10 +629,8 @@ function DataGrid({
|
|
|
629
629
|
body.current?.querySelector(`[data-row-index="${next}"]`)?.scrollIntoView({ block: "nearest" });
|
|
630
630
|
return next;
|
|
631
631
|
}),
|
|
632
|
-
//
|
|
633
|
-
//
|
|
634
|
-
// keys held, so a modified Enter opens it elsewhere as a modified
|
|
635
|
-
// click does). A grid of links only had no Enter at all.
|
|
632
|
+
// Enter runs the row's handler, else follows its link as a click with
|
|
633
|
+
// the same modifier keys would.
|
|
636
634
|
activate: (event) => {
|
|
637
635
|
const row = flat[cursor];
|
|
638
636
|
if (row === void 0) return false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileDrop, FilePickButton } from './chunk-XF5PDUDH.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-M2M6ZD7P.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useListbox, useOptionKeys, useHighlightRest } from './chunk-KW7T23RT.js';
|
|
2
2
|
import { useFieldError } from './chunk-JLKO7PSK.js';
|
|
3
3
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
|
-
import { useLayerContainer, viewportBounds, LAYER_GAP, anchorGone, placePopup, LAYER_REPOSITION_EVENT } from './chunk-FIX72ZEC.js';
|
|
4
|
+
import { useLayerContainer, viewportBounds, visibleBounds, LAYER_GAP, anchorGone, placePopup, LAYER_REPOSITION_EVENT } from './chunk-FIX72ZEC.js';
|
|
5
5
|
import { useFocusModality, returnFocus } from './chunk-4ITETIGZ.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 './Select-
|
|
9
|
+
import './Select-2FAOIL73.css';
|
|
10
10
|
import { forwardRef, useId, useMemo, useState, useRef, useCallback, useEffect, useLayoutEffect } from 'react';
|
|
11
11
|
import { createPortal } from 'react-dom';
|
|
12
12
|
import { ChevronDownGlyph, CheckGlyph, SearchGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -169,6 +169,13 @@ var NativeSelect = forwardRef(function NativeSelect2({ id, value, onChange, opti
|
|
|
169
169
|
}
|
|
170
170
|
);
|
|
171
171
|
});
|
|
172
|
+
function placeVars({ anchor, room, tall }) {
|
|
173
|
+
return {
|
|
174
|
+
"--crewlet-select-anchor-width": `${anchor}px`,
|
|
175
|
+
"--crewlet-select-room-width": `${room}px`,
|
|
176
|
+
"--crewlet-select-room-height": `${tall}px`
|
|
177
|
+
};
|
|
178
|
+
}
|
|
172
179
|
var ListboxSelect = forwardRef(function ListboxSelect2({
|
|
173
180
|
id,
|
|
174
181
|
chosen,
|
|
@@ -334,16 +341,25 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
|
|
|
334
341
|
const inHost = container !== document.body;
|
|
335
342
|
const host = inHost ? container.getBoundingClientRect() : viewportBounds();
|
|
336
343
|
const rect = at.getBoundingClientRect();
|
|
337
|
-
const
|
|
338
|
-
const
|
|
339
|
-
const
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
344
|
+
const bounds = visibleBounds(host, inHost);
|
|
345
|
+
const anchorY = rect.top - (inHost ? host.y : 0);
|
|
346
|
+
const sizes = {
|
|
347
|
+
anchor: rect.width,
|
|
348
|
+
// NEVER WIDER THAN THE ROOM IT IS PLACED IN: sized to its longest
|
|
349
|
+
// option, a panel wider than a phone hung past the edge however it was
|
|
350
|
+
// slid.
|
|
351
|
+
room: bounds.width,
|
|
352
|
+
tall: Math.max(
|
|
353
|
+
bounds.y + bounds.height - (anchorY + rect.height + LAYER_GAP),
|
|
354
|
+
anchorY - LAYER_GAP - bounds.y,
|
|
355
|
+
0
|
|
356
|
+
)
|
|
357
|
+
};
|
|
358
|
+
for (const [name2, value] of Object.entries(placeVars(sizes))) box.style.setProperty(name2, value);
|
|
343
359
|
const own = box.getBoundingClientRect();
|
|
344
360
|
const local = {
|
|
345
361
|
x: (align === "right" ? rect.right - own.width : rect.left) - (inHost ? host.x : 0),
|
|
346
|
-
y:
|
|
362
|
+
y: anchorY,
|
|
347
363
|
width: rect.width,
|
|
348
364
|
height: rect.height
|
|
349
365
|
};
|
|
@@ -351,16 +367,11 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
|
|
|
351
367
|
close(panel.current?.contains(document.activeElement) ?? false);
|
|
352
368
|
return;
|
|
353
369
|
}
|
|
354
|
-
const spot = placePopup(
|
|
355
|
-
local,
|
|
356
|
-
{ width: own.width, height: own.height },
|
|
357
|
-
{ x: LAYER_GAP, y: LAYER_GAP, width: host.width - 2 * LAYER_GAP, height: host.height - 2 * LAYER_GAP }
|
|
358
|
-
);
|
|
359
|
-
const applied = matches ? Math.min(rect.width, room) : void 0;
|
|
370
|
+
const spot = placePopup(local, { width: own.width, height: own.height }, bounds);
|
|
360
371
|
setPlace(
|
|
361
|
-
(was) => was && was.left === spot.left && was.top === spot.top && was.
|
|
372
|
+
(was) => was && was.left === spot.left && was.top === spot.top && was.anchor === sizes.anchor && was.room === sizes.room && was.tall === sizes.tall ? was : { left: spot.left, top: spot.top, ...sizes }
|
|
362
373
|
);
|
|
363
|
-
}, [align, close, container
|
|
374
|
+
}, [align, close, container]);
|
|
364
375
|
useLayoutEffect(() => {
|
|
365
376
|
if (!open) {
|
|
366
377
|
setPlace(null);
|
|
@@ -498,10 +509,13 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
|
|
|
498
509
|
// lines tall, so the one-line cap scrolled a list of four described
|
|
499
510
|
// answers and cut the first or the last of them.
|
|
500
511
|
described && "crewlet-select__menu--described",
|
|
512
|
+
// A field's list matches its field; a picker's sizes to its options.
|
|
513
|
+
// The width policy follows the mode (Select.css, "The panel").
|
|
514
|
+
width === "full" && "crewlet-select__menu--matches",
|
|
501
515
|
container !== null && container !== document.body ? "crewlet-select__menu--in-host" : "crewlet-select__menu--fixed",
|
|
502
516
|
menuClassName
|
|
503
517
|
),
|
|
504
|
-
style: place ? { left: place.left, top: place.top,
|
|
518
|
+
style: place ? { left: place.left, top: place.top, ...placeVars(place) } : (
|
|
505
519
|
// Laid out but not painted, so its own height can be measured
|
|
506
520
|
// before it is placed and no reader sees it in a corner first.
|
|
507
521
|
{ visibility: "hidden" }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
|
|
2
|
-
import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-
|
|
2
|
+
import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-NDWXVEY6.js';
|
|
3
3
|
import { LayerNodeBridge } from './chunk-X4HBZSXA.js';
|
|
4
4
|
import { Checkbox } from './chunk-KFTVPWG2.js';
|
|
5
5
|
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
@@ -7,7 +7,7 @@ import { presenceLabels } from './chunk-Z7JYG5TF.js';
|
|
|
7
7
|
import { Tag } from './chunk-SJ3EUCFD.js';
|
|
8
8
|
import { Popover } from './chunk-KDRJZWE3.js';
|
|
9
9
|
import { StatusDot } from './chunk-QRE6JCHS.js';
|
|
10
|
-
import { Menu } from './chunk-
|
|
10
|
+
import { Menu } from './chunk-WGAEHKGW.js';
|
|
11
11
|
import { Avatar } from './chunk-XZY6S3UC.js';
|
|
12
12
|
import { Button } from './chunk-M2M6ZD7P.js';
|
|
13
13
|
import { IconButton } from './chunk-X5YI6E5X.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
1
|
+
import { Select } from './chunk-OU22GKZK.js';
|
|
2
2
|
import { Combobox } from './chunk-WUJ54OTI.js';
|
|
3
3
|
import { FormField, Textarea, InputAffix } from './chunk-NN44J7BP.js';
|
|
4
4
|
import './Input-YVCNNTYT.css';
|
|
5
5
|
import './VisuallyHidden-OUYVMKEH.css';
|
|
6
6
|
import './HitArea-QUOS6ZDJ.css';
|
|
7
7
|
import './Combobox-F5VEJIAO.css';
|
|
8
|
-
import './Select-
|
|
8
|
+
import './Select-2FAOIL73.css';
|
|
9
9
|
import './ValueField-EIBD6RYS.css';
|
|
10
10
|
import { useId, useRef, useState } from 'react';
|
|
11
11
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Link-
|
|
3
|
+
import './Link-7AADYG2F.css';
|
|
4
4
|
import { forwardRef, Children, isValidElement, cloneElement } from 'react';
|
|
5
5
|
import { ExternalLinkGlyph } from '@crewlethq/icons/glyphs';
|
|
6
6
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -248,10 +248,7 @@ function Menu({
|
|
|
248
248
|
className: cx(
|
|
249
249
|
activeDescendant && order.get(entry.key) === active && "is-active",
|
|
250
250
|
"crewlet-menu__item",
|
|
251
|
-
//
|
|
252
|
-
// so: the row height alone would hold both lines in the space meant
|
|
253
|
-
// for one, and giving every row the taller padding turns six verbs
|
|
254
|
-
// into a scroller.
|
|
251
|
+
// Only a row with a second line gets the taller padding.
|
|
255
252
|
described(entry) ? "crewlet-menu__item--described" : void 0,
|
|
256
253
|
entry.danger && "is-danger",
|
|
257
254
|
entry.disabled && "is-disabled"
|
|
@@ -271,9 +268,8 @@ function Menu({
|
|
|
271
268
|
entry.key
|
|
272
269
|
);
|
|
273
270
|
const list = open ? (
|
|
274
|
-
//
|
|
275
|
-
//
|
|
276
|
-
// not a press outside that closes the menu.
|
|
271
|
+
// Not a control: its keys bubble from the list, and its presses stop
|
|
272
|
+
// here so one on the header is not a press outside that closes the menu.
|
|
277
273
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
278
274
|
/* @__PURE__ */ jsxs(
|
|
279
275
|
"div",
|
|
@@ -301,11 +297,8 @@ function Menu({
|
|
|
301
297
|
onClick: (event) => event.stopPropagation(),
|
|
302
298
|
children: [
|
|
303
299
|
header ? (
|
|
304
|
-
//
|
|
305
|
-
//
|
|
306
|
-
// its own role, not its contents': a header holding a description
|
|
307
|
-
// list or a tag was a menu owning a list. It is still the menu's
|
|
308
|
-
// description, so what it says is heard when the menu opens.
|
|
300
|
+
// Outside the menu element, which may own only items, groups and
|
|
301
|
+
// separators; it still describes the menu (`aria-describedby`).
|
|
309
302
|
/* @__PURE__ */ jsx("div", { id: headerId, className: "crewlet-menu__header", children: header })
|
|
310
303
|
) : null,
|
|
311
304
|
/* @__PURE__ */ jsx(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
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-FIH5EMJF.js';
|
|
4
4
|
import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
5
5
|
import { Checkbox } from './chunk-KFTVPWG2.js';
|
|
6
|
-
import { Menu } from './chunk-
|
|
6
|
+
import { Menu } from './chunk-WGAEHKGW.js';
|
|
7
7
|
import { FormField, Input } from './chunk-NN44J7BP.js';
|
|
8
8
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
9
9
|
import { Button } from './chunk-M2M6ZD7P.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SidebarNav, NavItem } from './chunk-SM2MM4DQ.js';
|
|
2
|
-
import { Select } from './chunk-
|
|
2
|
+
import { Select } from './chunk-OU22GKZK.js';
|
|
3
3
|
import { Card } from './chunk-RABEMWTA.js';
|
|
4
4
|
import { Text } from './chunk-475DOAWF.js';
|
|
5
5
|
import './RailList-N2ZBPRM2.css';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PageHeader } from './chunk-FPDIHEM4.js';
|
|
2
2
|
import { FilterPill } from './chunk-E4QX4VET.js';
|
|
3
3
|
import { DateTimePicker } from './chunk-AQZPZYSY.js';
|
|
4
|
-
import { DataTable } from './chunk-
|
|
4
|
+
import { DataTable } from './chunk-YBOGOTYV.js';
|
|
5
5
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
6
6
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
7
7
|
import { Popover } from './chunk-KDRJZWE3.js';
|
|
8
8
|
import { RelativeTime } from './chunk-GBKBME7Q.js';
|
|
9
|
-
import { Menu } from './chunk-
|
|
9
|
+
import { Menu } from './chunk-WGAEHKGW.js';
|
|
10
10
|
import { Input } from './chunk-NN44J7BP.js';
|
|
11
11
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
12
12
|
import { Button } from './chunk-M2M6ZD7P.js';
|
|
@@ -619,11 +619,8 @@ function Canvas({
|
|
|
619
619
|
controlsStart ? /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__controls crewlet-canvas__controls--start", "data-placement": controlsPlacement, children: /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__bar", children: controlsStart }) }) : null,
|
|
620
620
|
hasEnd ? /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__controls crewlet-canvas__controls--end", "data-placement": controlsPlacement, children: /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__bar", ref: endBar, children: overlayEnd }) }) : null,
|
|
621
621
|
(controls || touchActive || controlsBelow || hint) && /*
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
* arrangement, and the reason it is a column rather than three things
|
|
625
|
-
* the page places itself is that all of them act on the canvas, so
|
|
626
|
-
* they belong beside the canvas and beside each other.
|
|
622
|
+
* One group in one corner: the zoom bar, then the caller's bars under
|
|
623
|
+
* it, all acting on the canvas.
|
|
627
624
|
*/
|
|
628
625
|
/* @__PURE__ */ jsxs("div", { className: "crewlet-canvas__controls", "data-placement": controlsPlacement, children: [
|
|
629
626
|
(controls || touchActive) && /* @__PURE__ */ jsxs("div", { className: "crewlet-canvas__bar", children: [
|
|
@@ -3,7 +3,7 @@ import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
|
3
3
|
import { EmptyValue } from './chunk-WGLOH33S.js';
|
|
4
4
|
import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
|
|
5
5
|
import { Checkbox } from './chunk-KFTVPWG2.js';
|
|
6
|
-
import { Menu } from './chunk-
|
|
6
|
+
import { Menu } from './chunk-WGAEHKGW.js';
|
|
7
7
|
import { Button } from './chunk-M2M6ZD7P.js';
|
|
8
8
|
import { IconButton } from './chunk-X5YI6E5X.js';
|
|
9
9
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfirmModal } from './chunk-VSD3536L.js';
|
|
2
|
-
import { InlineCode } from './chunk-
|
|
2
|
+
import { InlineCode } from './chunk-W4UJWFCZ.js';
|
|
3
3
|
import { Callout } from './chunk-RCQLXOGS.js';
|
|
4
4
|
import './LinkInterstitial-ET4MSVSV.css';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|