@ksp-gonogo/ui-kit 1.0.0-rc.38 → 1.0.0-rc.43
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/{chunk-YPSVSCHQ.js → chunk-Z2JTH2MG.js} +605 -259
- package/dist/chunk-Z2JTH2MG.js.map +1 -0
- package/dist/index.d.ts +67 -26
- package/dist/index.js +833 -851
- package/dist/index.js.map +1 -1
- package/dist/reads-index.json +0 -7
- package/dist/testing.js +28 -3
- package/dist/testing.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-YPSVSCHQ.js.map +0 -1
|
@@ -6058,16 +6058,299 @@ function ContributionsAggregation({
|
|
|
6058
6058
|
] });
|
|
6059
6059
|
}
|
|
6060
6060
|
|
|
6061
|
-
// src/
|
|
6061
|
+
// src/Dial.tsx
|
|
6062
|
+
import { bandIn as bandIn2 } from "@ksp-gonogo/sitrep-sdk";
|
|
6062
6063
|
import styled17 from "styled-components";
|
|
6063
|
-
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
6064
|
+
import { Fragment as Fragment10, jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
6065
|
+
var TRACK_THICKNESS = 6;
|
|
6066
|
+
var HUB_RADIUS = 3;
|
|
6067
|
+
var RAISED = { track: 8, hub: 4, needle: 0.92 };
|
|
6068
|
+
var READOUT = {
|
|
6069
|
+
regular: { size: 16, drop: 18 },
|
|
6070
|
+
large: { size: 24, drop: 32 }
|
|
6071
|
+
};
|
|
6072
|
+
function pointAt(cx, cy, r, angleDeg) {
|
|
6073
|
+
const a = angleDeg * Math.PI / 180;
|
|
6074
|
+
return { x: cx + r * Math.sin(a), y: cy - r * Math.cos(a) };
|
|
6075
|
+
}
|
|
6076
|
+
function arcPath(cx, cy, r, a0, a1) {
|
|
6077
|
+
const p0 = pointAt(cx, cy, r, a0);
|
|
6078
|
+
const p1 = pointAt(cx, cy, r, a1);
|
|
6079
|
+
const delta = a1 - a0;
|
|
6080
|
+
const largeArc = Math.abs(delta) > 180 ? 1 : 0;
|
|
6081
|
+
const sweepFlag = delta >= 0 ? 1 : 0;
|
|
6082
|
+
return `M ${p0.x.toFixed(2)} ${p0.y.toFixed(2)} A ${r} ${r} 0 ${largeArc} ${sweepFlag} ${p1.x.toFixed(2)} ${p1.y.toFixed(2)}`;
|
|
6083
|
+
}
|
|
6084
|
+
function Dial({
|
|
6085
|
+
value: value3,
|
|
6086
|
+
min,
|
|
6087
|
+
max,
|
|
6088
|
+
width = 120,
|
|
6089
|
+
height = 120,
|
|
6090
|
+
startAngle = 0,
|
|
6091
|
+
sweep = 360,
|
|
6092
|
+
wrap = false,
|
|
6093
|
+
zones,
|
|
6094
|
+
ticks,
|
|
6095
|
+
valueLabel,
|
|
6096
|
+
readout,
|
|
6097
|
+
format: format2,
|
|
6098
|
+
needleColor = "var(--color-text-primary)",
|
|
6099
|
+
trackColor = "var(--color-border-subtle)",
|
|
6100
|
+
"aria-label": ariaLabel
|
|
6101
|
+
}) {
|
|
6102
|
+
const resolved = resolveCurrency(value3);
|
|
6103
|
+
const { shown, held, caption, band } = resolved;
|
|
6104
|
+
const { anchor, tip } = useTooltip(caption);
|
|
6105
|
+
const current = shown?.magnitude ?? Number.NaN;
|
|
6106
|
+
const finite = Number.isFinite(current) ? shown : null;
|
|
6107
|
+
const axisMin = min.magnitude;
|
|
6108
|
+
const axisMax = max.magnitude;
|
|
6109
|
+
const span = axisMax - axisMin;
|
|
6110
|
+
const safe = Number.isFinite(current) ? current : axisMin;
|
|
6111
|
+
const display = span > 0 ? wrap ? axisMin + ((safe - axisMin) % span + span) % span : Math.max(axisMin, Math.min(axisMax, safe)) : axisMin;
|
|
6112
|
+
const hasFigure = finite != null;
|
|
6113
|
+
const face = finite == null ? null : { magnitude: wrap ? display : current, unit: finite.unit };
|
|
6114
|
+
const centreLabel = valueLabel ?? (face === null ? null : writeQuantity(face, { format: format2 }));
|
|
6115
|
+
const spoken = face === null ? NULL_DISPLAY : speakQuantity(face, { format: format2 });
|
|
6116
|
+
const interval = finite == null || band === null ? null : bandIn2(band, finite.unit) ?? null;
|
|
6117
|
+
const raised = readout !== void 0 && sweep <= 180;
|
|
6118
|
+
const trackThickness = raised ? RAISED.track : TRACK_THICKNESS;
|
|
6119
|
+
const hubRadius = raised ? RAISED.hub : HUB_RADIUS;
|
|
6120
|
+
const figure = readout === void 0 ? null : READOUT[readout];
|
|
6121
|
+
const cx = width / 2;
|
|
6122
|
+
const r = raised && figure !== null ? Math.min(
|
|
6123
|
+
(width - trackThickness) / 2,
|
|
6124
|
+
height - trackThickness - figure.drop
|
|
6125
|
+
) : Math.min(width, height) / 2 - trackThickness - 2;
|
|
6126
|
+
const cy = raised ? r + trackThickness / 2 : height / 2;
|
|
6127
|
+
const angleOf = (v) => {
|
|
6128
|
+
const t = span > 0 ? (v - axisMin) / span : 0;
|
|
6129
|
+
return startAngle + t * sweep;
|
|
6130
|
+
};
|
|
6131
|
+
const onAxis = (q) => q.max(min).min(max);
|
|
6132
|
+
const onFace = (q) => angleOf(q.magnitude);
|
|
6133
|
+
const onSweep = (angle) => sweep !== 0 ? (angle - startAngle) / sweep : 0;
|
|
6134
|
+
const drawnInterval = interval !== null && standsApart(
|
|
6135
|
+
onSweep(angleOf(display)),
|
|
6136
|
+
[
|
|
6137
|
+
onSweep(onFace(onAxis(interval.lo))),
|
|
6138
|
+
onSweep(onFace(onAxis(interval.hi)))
|
|
6139
|
+
],
|
|
6140
|
+
placedOnScale({ wraps: wrap })
|
|
6141
|
+
) ? interval : null;
|
|
6142
|
+
const isFullCircle = sweep >= 360;
|
|
6143
|
+
const needle = pointAt(
|
|
6144
|
+
cx,
|
|
6145
|
+
cy,
|
|
6146
|
+
r * (raised ? RAISED.needle : 0.88),
|
|
6147
|
+
angleOf(display)
|
|
6148
|
+
);
|
|
6149
|
+
return /* @__PURE__ */ jsxs12(
|
|
6150
|
+
Dial__Meter,
|
|
6151
|
+
{
|
|
6152
|
+
...figureAttributes(resolved),
|
|
6153
|
+
...anchor,
|
|
6154
|
+
...hasFigure ? {
|
|
6155
|
+
role: "meter",
|
|
6156
|
+
"aria-label": sayHeld(ariaLabel, caption),
|
|
6157
|
+
...heldNameMarker(caption),
|
|
6158
|
+
"aria-valuenow": display,
|
|
6159
|
+
"aria-valuemin": axisMin,
|
|
6160
|
+
"aria-valuemax": axisMax,
|
|
6161
|
+
"aria-valuetext": spoken
|
|
6162
|
+
} : {
|
|
6163
|
+
/* With no value to state, the face is an image rather than a meter at its minimum. */
|
|
6164
|
+
role: "img",
|
|
6165
|
+
"aria-label": sayHeld(`${ariaLabel}: ${spoken}`, caption),
|
|
6166
|
+
...heldNameMarker(caption)
|
|
6167
|
+
},
|
|
6168
|
+
children: [
|
|
6169
|
+
/* @__PURE__ */ jsxs12(
|
|
6170
|
+
"svg",
|
|
6171
|
+
{
|
|
6172
|
+
width,
|
|
6173
|
+
height,
|
|
6174
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
6175
|
+
"aria-hidden": "true",
|
|
6176
|
+
style: {
|
|
6177
|
+
display: "block",
|
|
6178
|
+
fontFamily: "var(--font-family-mono)",
|
|
6179
|
+
maxWidth: "100%",
|
|
6180
|
+
height: "auto",
|
|
6181
|
+
// The raised figure's line box runs a few pixels past the viewBox; its glyphs sit inside it.
|
|
6182
|
+
overflow: raised ? "visible" : void 0
|
|
6183
|
+
},
|
|
6184
|
+
children: [
|
|
6185
|
+
r > 0 && (isFullCircle ? /* @__PURE__ */ jsx29(
|
|
6186
|
+
"circle",
|
|
6187
|
+
{
|
|
6188
|
+
cx,
|
|
6189
|
+
cy,
|
|
6190
|
+
r,
|
|
6191
|
+
fill: "none",
|
|
6192
|
+
stroke: trackColor,
|
|
6193
|
+
strokeWidth: trackThickness
|
|
6194
|
+
}
|
|
6195
|
+
) : /* @__PURE__ */ jsx29(
|
|
6196
|
+
"path",
|
|
6197
|
+
{
|
|
6198
|
+
d: arcPath(cx, cy, r, startAngle, startAngle + sweep),
|
|
6199
|
+
fill: "none",
|
|
6200
|
+
stroke: trackColor,
|
|
6201
|
+
strokeWidth: trackThickness,
|
|
6202
|
+
strokeLinecap: "round"
|
|
6203
|
+
}
|
|
6204
|
+
)),
|
|
6205
|
+
r > 0 && !isFullCircle && zones?.flatMap((z) => {
|
|
6206
|
+
const lo = onAxis(z.from.min(z.to));
|
|
6207
|
+
const hi = onAxis(z.from.max(z.to));
|
|
6208
|
+
if (!hi.greaterThan(lo)) return [];
|
|
6209
|
+
return [
|
|
6210
|
+
// Clamped onto the axis already, so "not past the end" is "at the end".
|
|
6211
|
+
lo.greaterThan(min) ? null : startAngle,
|
|
6212
|
+
max.greaterThan(hi) ? null : startAngle + sweep
|
|
6213
|
+
].flatMap((angle) => {
|
|
6214
|
+
if (angle === null) return [];
|
|
6215
|
+
const end = pointAt(cx, cy, r, angle);
|
|
6216
|
+
return [
|
|
6217
|
+
/* @__PURE__ */ jsx29(
|
|
6218
|
+
"circle",
|
|
6219
|
+
{
|
|
6220
|
+
"data-dial-cap": "",
|
|
6221
|
+
cx: end.x,
|
|
6222
|
+
cy: end.y,
|
|
6223
|
+
r: trackThickness / 2,
|
|
6224
|
+
fill: z.color
|
|
6225
|
+
},
|
|
6226
|
+
`cap-${z.color}-${angle}`
|
|
6227
|
+
)
|
|
6228
|
+
];
|
|
6229
|
+
});
|
|
6230
|
+
}),
|
|
6231
|
+
r > 0 && zones?.map((z) => {
|
|
6232
|
+
const lo = onAxis(z.from.min(z.to));
|
|
6233
|
+
const hi = onAxis(z.from.max(z.to));
|
|
6234
|
+
if (!hi.greaterThan(lo)) return null;
|
|
6235
|
+
return /* @__PURE__ */ jsx29(
|
|
6236
|
+
"path",
|
|
6237
|
+
{
|
|
6238
|
+
d: arcPath(cx, cy, r, onFace(lo), onFace(hi)),
|
|
6239
|
+
fill: "none",
|
|
6240
|
+
stroke: z.color,
|
|
6241
|
+
strokeWidth: trackThickness,
|
|
6242
|
+
strokeLinecap: "butt"
|
|
6243
|
+
},
|
|
6244
|
+
`zone-${z.color}-${onFace(lo)}-${onFace(hi)}`
|
|
6245
|
+
);
|
|
6246
|
+
}),
|
|
6247
|
+
r > 0 && ticks?.map((tk) => {
|
|
6248
|
+
const at = tk.value.magnitude;
|
|
6249
|
+
const a = angleOf(at);
|
|
6250
|
+
const outer = pointAt(cx, cy, r, a);
|
|
6251
|
+
const inner = pointAt(cx, cy, r - trackThickness, a);
|
|
6252
|
+
const labelPt = pointAt(cx, cy, r - trackThickness - 8, a);
|
|
6253
|
+
return /* @__PURE__ */ jsxs12("g", { children: [
|
|
6254
|
+
/* @__PURE__ */ jsx29(
|
|
6255
|
+
"line",
|
|
6256
|
+
{
|
|
6257
|
+
x1: inner.x,
|
|
6258
|
+
y1: inner.y,
|
|
6259
|
+
x2: outer.x,
|
|
6260
|
+
y2: outer.y,
|
|
6261
|
+
stroke: "var(--color-text-faint)",
|
|
6262
|
+
strokeWidth: 1
|
|
6263
|
+
}
|
|
6264
|
+
),
|
|
6265
|
+
tk.label && /* @__PURE__ */ jsx29(
|
|
6266
|
+
"text",
|
|
6267
|
+
{
|
|
6268
|
+
x: labelPt.x,
|
|
6269
|
+
y: labelPt.y,
|
|
6270
|
+
textAnchor: "middle",
|
|
6271
|
+
dominantBaseline: "middle",
|
|
6272
|
+
fontSize: 9,
|
|
6273
|
+
fill: "var(--color-text-faint)",
|
|
6274
|
+
children: tk.label
|
|
6275
|
+
}
|
|
6276
|
+
)
|
|
6277
|
+
] }, `tick-${at}-${tk.label ?? ""}`);
|
|
6278
|
+
}),
|
|
6279
|
+
r > 0 && drawnInterval !== null && ["lo", "hi"].map((end) => {
|
|
6280
|
+
const a = onFace(onAxis(drawnInterval[end]));
|
|
6281
|
+
const inner = pointAt(cx, cy, r - trackThickness / 2, a);
|
|
6282
|
+
const outer = pointAt(cx, cy, r + trackThickness / 2, a);
|
|
6283
|
+
return /* @__PURE__ */ jsx29(
|
|
6284
|
+
InstrumentBound,
|
|
6285
|
+
{
|
|
6286
|
+
end,
|
|
6287
|
+
x1: inner.x,
|
|
6288
|
+
y1: inner.y,
|
|
6289
|
+
x2: outer.x,
|
|
6290
|
+
y2: outer.y
|
|
6291
|
+
},
|
|
6292
|
+
end
|
|
6293
|
+
);
|
|
6294
|
+
}),
|
|
6295
|
+
r > 0 && hasFigure && /* @__PURE__ */ jsxs12(Fragment10, { children: [
|
|
6296
|
+
/* @__PURE__ */ jsx29(
|
|
6297
|
+
"line",
|
|
6298
|
+
{
|
|
6299
|
+
x1: cx,
|
|
6300
|
+
y1: cy,
|
|
6301
|
+
x2: needle.x,
|
|
6302
|
+
y2: needle.y,
|
|
6303
|
+
stroke: needleColor,
|
|
6304
|
+
strokeWidth: 2,
|
|
6305
|
+
strokeLinecap: "round"
|
|
6306
|
+
}
|
|
6307
|
+
),
|
|
6308
|
+
/* @__PURE__ */ jsx29("circle", { cx, cy, r: hubRadius, fill: needleColor })
|
|
6309
|
+
] }),
|
|
6310
|
+
/* @__PURE__ */ jsxs12(
|
|
6311
|
+
"text",
|
|
6312
|
+
{
|
|
6313
|
+
x: cx,
|
|
6314
|
+
y: raised && figure !== null ? cy + figure.drop : cy + r * 0.55,
|
|
6315
|
+
textAnchor: "middle",
|
|
6316
|
+
fontSize: raised && figure !== null ? figure.size : 13,
|
|
6317
|
+
fontWeight: raised ? void 0 : "bold",
|
|
6318
|
+
fill: centreLabel === null ? "var(--color-text-muted)" : "var(--color-text-primary)",
|
|
6319
|
+
children: [
|
|
6320
|
+
centreLabel ?? NULL_DISPLAY,
|
|
6321
|
+
held && centreLabel !== null && /* @__PURE__ */ jsx29(
|
|
6322
|
+
InstrumentHeldMark,
|
|
6323
|
+
{
|
|
6324
|
+
size: raised ? 7 : 6,
|
|
6325
|
+
figureSize: raised && figure !== null ? figure.size : 13
|
|
6326
|
+
}
|
|
6327
|
+
)
|
|
6328
|
+
]
|
|
6329
|
+
}
|
|
6330
|
+
)
|
|
6331
|
+
]
|
|
6332
|
+
}
|
|
6333
|
+
),
|
|
6334
|
+
tip
|
|
6335
|
+
]
|
|
6336
|
+
}
|
|
6337
|
+
);
|
|
6338
|
+
}
|
|
6339
|
+
var Dial__Meter = styled17.div`
|
|
6340
|
+
display: block;
|
|
6341
|
+
max-width: 100%;
|
|
6342
|
+
`;
|
|
6343
|
+
|
|
6344
|
+
// src/FilterChip.tsx
|
|
6345
|
+
import styled18 from "styled-components";
|
|
6346
|
+
import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
6064
6347
|
function FilterChip({
|
|
6065
6348
|
label,
|
|
6066
6349
|
selected,
|
|
6067
6350
|
count,
|
|
6068
6351
|
onToggle
|
|
6069
6352
|
}) {
|
|
6070
|
-
return /* @__PURE__ */
|
|
6353
|
+
return /* @__PURE__ */ jsxs13(
|
|
6071
6354
|
ChipButton,
|
|
6072
6355
|
{
|
|
6073
6356
|
type: "button",
|
|
@@ -6075,13 +6358,13 @@ function FilterChip({
|
|
|
6075
6358
|
onClick: onToggle,
|
|
6076
6359
|
"aria-pressed": selected,
|
|
6077
6360
|
children: [
|
|
6078
|
-
/* @__PURE__ */
|
|
6079
|
-
count !== void 0 && /* @__PURE__ */
|
|
6361
|
+
/* @__PURE__ */ jsx30("span", { children: label }),
|
|
6362
|
+
count !== void 0 && /* @__PURE__ */ jsx30(Count, { children: count })
|
|
6080
6363
|
]
|
|
6081
6364
|
}
|
|
6082
6365
|
);
|
|
6083
6366
|
}
|
|
6084
|
-
var ChipButton =
|
|
6367
|
+
var ChipButton = styled18.button`
|
|
6085
6368
|
${fitBox("chip")}
|
|
6086
6369
|
display: inline-flex;
|
|
6087
6370
|
align-items: center;
|
|
@@ -6110,7 +6393,7 @@ var ChipButton = styled17.button`
|
|
|
6110
6393
|
|
|
6111
6394
|
${focusRing}
|
|
6112
6395
|
`;
|
|
6113
|
-
var Count =
|
|
6396
|
+
var Count = styled18.span`
|
|
6114
6397
|
font-variant-numeric: tabular-nums;
|
|
6115
6398
|
font-size: var(--font-size-caption);
|
|
6116
6399
|
opacity: 0.75;
|
|
@@ -6118,8 +6401,8 @@ var Count = styled17.span`
|
|
|
6118
6401
|
|
|
6119
6402
|
// src/SearchBox.tsx
|
|
6120
6403
|
import { useRef as useRef6 } from "react";
|
|
6121
|
-
import
|
|
6122
|
-
import { jsx as
|
|
6404
|
+
import styled19 from "styled-components";
|
|
6405
|
+
import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
6123
6406
|
function SearchBox({
|
|
6124
6407
|
value: value3,
|
|
6125
6408
|
onChange,
|
|
@@ -6128,8 +6411,8 @@ function SearchBox({
|
|
|
6128
6411
|
...rest
|
|
6129
6412
|
}) {
|
|
6130
6413
|
const field = useRef6(null);
|
|
6131
|
-
return /* @__PURE__ */
|
|
6132
|
-
/* @__PURE__ */
|
|
6414
|
+
return /* @__PURE__ */ jsxs14(SearchBox__Root, { className, children: [
|
|
6415
|
+
/* @__PURE__ */ jsx31(
|
|
6133
6416
|
SearchBox__Field,
|
|
6134
6417
|
{
|
|
6135
6418
|
...rest,
|
|
@@ -6139,7 +6422,7 @@ function SearchBox({
|
|
|
6139
6422
|
onChange: (event) => onChange(event.target.value)
|
|
6140
6423
|
}
|
|
6141
6424
|
),
|
|
6142
|
-
value3 !== "" && /* @__PURE__ */
|
|
6425
|
+
value3 !== "" && /* @__PURE__ */ jsx31(
|
|
6143
6426
|
SearchBox__Clear,
|
|
6144
6427
|
{
|
|
6145
6428
|
type: "button",
|
|
@@ -6148,22 +6431,22 @@ function SearchBox({
|
|
|
6148
6431
|
onChange("");
|
|
6149
6432
|
field.current?.focus();
|
|
6150
6433
|
},
|
|
6151
|
-
children: /* @__PURE__ */
|
|
6434
|
+
children: /* @__PURE__ */ jsx31(CloseIcon, { size: "var(--icon-size-control)" })
|
|
6152
6435
|
}
|
|
6153
6436
|
)
|
|
6154
6437
|
] });
|
|
6155
6438
|
}
|
|
6156
|
-
var SearchBox__Root =
|
|
6439
|
+
var SearchBox__Root = styled19.div`
|
|
6157
6440
|
position: relative;
|
|
6158
6441
|
display: flex;
|
|
6159
6442
|
align-items: center;
|
|
6160
6443
|
`;
|
|
6161
|
-
var SearchBox__Field =
|
|
6444
|
+
var SearchBox__Field = styled19(Input)`
|
|
6162
6445
|
&& {
|
|
6163
6446
|
padding-right: var(--inset-field-clearable-end);
|
|
6164
6447
|
}
|
|
6165
6448
|
`;
|
|
6166
|
-
var SearchBox__Clear =
|
|
6449
|
+
var SearchBox__Clear = styled19(IconButton)`
|
|
6167
6450
|
position: absolute;
|
|
6168
6451
|
right: 0;
|
|
6169
6452
|
display: inline-flex;
|
|
@@ -6173,7 +6456,7 @@ var SearchBox__Clear = styled18(IconButton)`
|
|
|
6173
6456
|
|
|
6174
6457
|
// src/useRowFilter.tsx
|
|
6175
6458
|
import { useId as useId4, useState as useState5 } from "react";
|
|
6176
|
-
import { jsx as
|
|
6459
|
+
import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
6177
6460
|
function useRowFilter({
|
|
6178
6461
|
segment = "filters",
|
|
6179
6462
|
label = "Search",
|
|
@@ -6195,10 +6478,10 @@ function useRowFilter({
|
|
|
6195
6478
|
});
|
|
6196
6479
|
};
|
|
6197
6480
|
const needles = [...selected, typed].filter((s) => s.length > 0).map((s) => s.toLowerCase());
|
|
6198
|
-
const control = /* @__PURE__ */
|
|
6199
|
-
/* @__PURE__ */
|
|
6200
|
-
/* @__PURE__ */
|
|
6201
|
-
/* @__PURE__ */
|
|
6481
|
+
const control = /* @__PURE__ */ jsxs15(Stack, { gap: "related-packed", children: [
|
|
6482
|
+
/* @__PURE__ */ jsxs15(Field, { children: [
|
|
6483
|
+
/* @__PURE__ */ jsx32(FieldLabel, { htmlFor: searchId, children: label }),
|
|
6484
|
+
/* @__PURE__ */ jsx32(
|
|
6202
6485
|
SearchBox,
|
|
6203
6486
|
{
|
|
6204
6487
|
id: searchId,
|
|
@@ -6208,7 +6491,7 @@ function useRowFilter({
|
|
|
6208
6491
|
}
|
|
6209
6492
|
)
|
|
6210
6493
|
] }),
|
|
6211
|
-
uniqueTerms.length > 0 && /* @__PURE__ */
|
|
6494
|
+
uniqueTerms.length > 0 && /* @__PURE__ */ jsx32(
|
|
6212
6495
|
Cluster,
|
|
6213
6496
|
{
|
|
6214
6497
|
justify: "start",
|
|
@@ -6216,7 +6499,7 @@ function useRowFilter({
|
|
|
6216
6499
|
wrap: true,
|
|
6217
6500
|
role: "group",
|
|
6218
6501
|
"aria-label": "Filters",
|
|
6219
|
-
children: uniqueTerms.map((term) => /* @__PURE__ */
|
|
6502
|
+
children: uniqueTerms.map((term) => /* @__PURE__ */ jsx32(
|
|
6220
6503
|
FilterChip,
|
|
6221
6504
|
{
|
|
6222
6505
|
label: term,
|
|
@@ -6247,15 +6530,15 @@ function FilterRegion({
|
|
|
6247
6530
|
children,
|
|
6248
6531
|
fill = false
|
|
6249
6532
|
}) {
|
|
6250
|
-
return /* @__PURE__ */
|
|
6533
|
+
return /* @__PURE__ */ jsxs15(Stack, { gap: "related-dense", fill, children: [
|
|
6251
6534
|
filterControlOf(filter),
|
|
6252
6535
|
children
|
|
6253
6536
|
] });
|
|
6254
6537
|
}
|
|
6255
6538
|
|
|
6256
6539
|
// src/FramedDisplay.tsx
|
|
6257
|
-
import
|
|
6258
|
-
import { Fragment as
|
|
6540
|
+
import styled20 from "styled-components";
|
|
6541
|
+
import { Fragment as Fragment11, jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
6259
6542
|
var STRIP_MIN_PX = 24;
|
|
6260
6543
|
var STRIP_MAX_PX = 96;
|
|
6261
6544
|
function FramedDisplay({
|
|
@@ -6267,24 +6550,24 @@ function FramedDisplay({
|
|
|
6267
6550
|
...rest
|
|
6268
6551
|
}) {
|
|
6269
6552
|
const hasStrip = strip !== void 0 && strip !== null && strip !== false;
|
|
6270
|
-
return /* @__PURE__ */
|
|
6553
|
+
return /* @__PURE__ */ jsxs16(
|
|
6271
6554
|
FramedDisplay__Box,
|
|
6272
6555
|
{
|
|
6273
6556
|
$padded: padded && !hasStrip,
|
|
6274
6557
|
$stacked: hasStrip,
|
|
6275
6558
|
...rest,
|
|
6276
6559
|
children: [
|
|
6277
|
-
hasStrip ? /* @__PURE__ */
|
|
6278
|
-
/* @__PURE__ */
|
|
6279
|
-
/* @__PURE__ */
|
|
6560
|
+
hasStrip ? /* @__PURE__ */ jsxs16(Fragment11, { children: [
|
|
6561
|
+
/* @__PURE__ */ jsx33(FramedDisplay__Main, { $padded: padded, children }),
|
|
6562
|
+
/* @__PURE__ */ jsx33(FramedDisplay__Strip, { "data-framed-display-strip": "", children: strip })
|
|
6280
6563
|
] }) : children,
|
|
6281
|
-
caption !== void 0 && caption !== null && /* @__PURE__ */
|
|
6282
|
-
footer !== void 0 && footer !== null && /* @__PURE__ */
|
|
6564
|
+
caption !== void 0 && caption !== null && /* @__PURE__ */ jsx33(FramedDisplay__Caption, { children: caption }),
|
|
6565
|
+
footer !== void 0 && footer !== null && /* @__PURE__ */ jsx33(FramedDisplay__Footer, { children: footer })
|
|
6283
6566
|
]
|
|
6284
6567
|
}
|
|
6285
6568
|
);
|
|
6286
6569
|
}
|
|
6287
|
-
var FramedDisplay__Box =
|
|
6570
|
+
var FramedDisplay__Box = styled20.div`
|
|
6288
6571
|
position: relative;
|
|
6289
6572
|
display: flex;
|
|
6290
6573
|
flex-direction: ${({ $stacked }) => $stacked ? "column" : "row"};
|
|
@@ -6306,7 +6589,7 @@ var FramedDisplay__Box = styled19.div`
|
|
|
6306
6589
|
height: 100%;
|
|
6307
6590
|
}
|
|
6308
6591
|
`;
|
|
6309
|
-
var FramedDisplay__Main =
|
|
6592
|
+
var FramedDisplay__Main = styled20.div`
|
|
6310
6593
|
flex: 7 1 0;
|
|
6311
6594
|
display: flex;
|
|
6312
6595
|
min-height: 0;
|
|
@@ -6320,7 +6603,7 @@ var FramedDisplay__Main = styled19.div`
|
|
|
6320
6603
|
height: 100%;
|
|
6321
6604
|
}
|
|
6322
6605
|
`;
|
|
6323
|
-
var FramedDisplay__Strip =
|
|
6606
|
+
var FramedDisplay__Strip = styled20.div`
|
|
6324
6607
|
flex: 3 1 0;
|
|
6325
6608
|
display: flex;
|
|
6326
6609
|
min-height: ${STRIP_MIN_PX}px;
|
|
@@ -6328,7 +6611,7 @@ var FramedDisplay__Strip = styled19.div`
|
|
|
6328
6611
|
min-width: 0;
|
|
6329
6612
|
overflow: hidden;
|
|
6330
6613
|
`;
|
|
6331
|
-
var FramedDisplay__Caption =
|
|
6614
|
+
var FramedDisplay__Caption = styled20.div`
|
|
6332
6615
|
position: absolute;
|
|
6333
6616
|
top: var(--offset-frame-caption-top);
|
|
6334
6617
|
left: var(--offset-frame-caption-left);
|
|
@@ -6342,15 +6625,15 @@ var FramedDisplay__Caption = styled19.div`
|
|
|
6342
6625
|
background: var(--color-surface-sunken);
|
|
6343
6626
|
pointer-events: none;
|
|
6344
6627
|
`;
|
|
6345
|
-
var FramedDisplay__Footer =
|
|
6628
|
+
var FramedDisplay__Footer = styled20(FramedDisplay__Caption)`
|
|
6346
6629
|
top: auto;
|
|
6347
6630
|
bottom: var(--offset-frame-footer-bottom);
|
|
6348
6631
|
left: var(--offset-frame-footer-left);
|
|
6349
6632
|
`;
|
|
6350
6633
|
|
|
6351
6634
|
// src/GraphNotice.tsx
|
|
6352
|
-
import
|
|
6353
|
-
import { jsx as
|
|
6635
|
+
import styled21, { css as css11 } from "styled-components";
|
|
6636
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
6354
6637
|
var OVERLAY_MIN = { width: 160, height: 72 };
|
|
6355
6638
|
var BESIDE_ASPECT = 2.5;
|
|
6356
6639
|
var BESIDE_MIN_WIDTH = 420;
|
|
@@ -6399,9 +6682,9 @@ function GraphNotice({
|
|
|
6399
6682
|
children,
|
|
6400
6683
|
...rest
|
|
6401
6684
|
}) {
|
|
6402
|
-
return /* @__PURE__ */
|
|
6685
|
+
return /* @__PURE__ */ jsx34(GraphNotice__Root, { $placement: placement, role, ...rest, children });
|
|
6403
6686
|
}
|
|
6404
|
-
var GraphNotice__Root =
|
|
6687
|
+
var GraphNotice__Root = styled21.div`
|
|
6405
6688
|
font-size: var(--font-size-compact);
|
|
6406
6689
|
color: var(--color-text-faint);
|
|
6407
6690
|
/* No surface token is translucent, so this scrim stays a raw value. */
|
|
@@ -6415,13 +6698,13 @@ var GraphNotice__Root = styled20.div`
|
|
|
6415
6698
|
|
|
6416
6699
|
// src/PanelBadges.tsx
|
|
6417
6700
|
import { createContext as createContext6, useContext as useContext6 } from "react";
|
|
6418
|
-
import { jsx as
|
|
6701
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
6419
6702
|
var PanelBadgesCtx = createContext6(null);
|
|
6420
6703
|
function PanelBadgesProvider({
|
|
6421
6704
|
badges,
|
|
6422
6705
|
children
|
|
6423
6706
|
}) {
|
|
6424
|
-
return /* @__PURE__ */
|
|
6707
|
+
return /* @__PURE__ */ jsx35(PanelBadgesCtx.Provider, { value: badges, children });
|
|
6425
6708
|
}
|
|
6426
6709
|
function usePanelBadgesContext() {
|
|
6427
6710
|
return useContext6(PanelBadgesCtx);
|
|
@@ -6597,7 +6880,7 @@ function usePanelAsideSize() {
|
|
|
6597
6880
|
import {
|
|
6598
6881
|
Children as Children2,
|
|
6599
6882
|
createContext as createContext8,
|
|
6600
|
-
Fragment as
|
|
6883
|
+
Fragment as Fragment12,
|
|
6601
6884
|
forwardRef as forwardRef7,
|
|
6602
6885
|
isValidElement as isValidElement2,
|
|
6603
6886
|
useCallback as useCallback6,
|
|
@@ -6610,11 +6893,11 @@ import {
|
|
|
6610
6893
|
useRef as useRef10,
|
|
6611
6894
|
useState as useState10
|
|
6612
6895
|
} from "react";
|
|
6613
|
-
import
|
|
6896
|
+
import styled24, { css as css14 } from "styled-components";
|
|
6614
6897
|
|
|
6615
6898
|
// src/CommandDelay/PanelDelayRail.tsx
|
|
6616
6899
|
import { useEffect as useEffect7, useId as useId5, useState as useState7 } from "react";
|
|
6617
|
-
import
|
|
6900
|
+
import styled22, { css as css12 } from "styled-components";
|
|
6618
6901
|
|
|
6619
6902
|
// src/CommandDelay/railAnnouncer.ts
|
|
6620
6903
|
import { useSyncExternalStore as useSyncExternalStore9 } from "react";
|
|
@@ -6648,7 +6931,7 @@ function useRailAnnounces() {
|
|
|
6648
6931
|
}
|
|
6649
6932
|
|
|
6650
6933
|
// src/CommandDelay/PanelDelayRail.tsx
|
|
6651
|
-
import { jsx as
|
|
6934
|
+
import { jsx as jsx36, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
6652
6935
|
function handleHasContent(handle) {
|
|
6653
6936
|
if (railMark(handle.tags) === "ribbon") {
|
|
6654
6937
|
const delay = handle.effectiveDelaySeconds;
|
|
@@ -6718,21 +7001,21 @@ function PanelDelayRail({ tiny } = {}) {
|
|
|
6718
7001
|
const dismissFound = canDismissFound ? (id) => handles.find((h) => h.founds?.some((f) => f.id === id))?.dismiss?.(id) : void 0;
|
|
6719
7002
|
return (
|
|
6720
7003
|
// An EMPTY band carries only its own marker, since every widget renders it.
|
|
6721
|
-
/* @__PURE__ */
|
|
7004
|
+
/* @__PURE__ */ jsxs17(
|
|
6722
7005
|
PanelDelayRail__Frame,
|
|
6723
7006
|
{
|
|
6724
7007
|
"data-panel-rail-frame": "",
|
|
6725
7008
|
$tiny: tiny,
|
|
6726
7009
|
$hasContent: hasContent,
|
|
6727
7010
|
children: [
|
|
6728
|
-
handles.length > 0 && /* @__PURE__ */
|
|
6729
|
-
refusals.map((r) => /* @__PURE__ */
|
|
6730
|
-
losses.map((l) => /* @__PURE__ */
|
|
6731
|
-
undelivered.map((u) => /* @__PURE__ */
|
|
6732
|
-
failures.map((f) => /* @__PURE__ */
|
|
6733
|
-
founds.map((f) => /* @__PURE__ */
|
|
7011
|
+
handles.length > 0 && /* @__PURE__ */ jsxs17(LiveRegion, { visuallyHidden: true, additionsOnly: true, children: [
|
|
7012
|
+
refusals.map((r) => /* @__PURE__ */ jsx36("span", { children: commandRefusalSentence(r) }, `refusal:${r.id}`)),
|
|
7013
|
+
losses.map((l) => /* @__PURE__ */ jsx36("span", { children: commandLossSentence(l) }, `loss:${l.id}`)),
|
|
7014
|
+
undelivered.map((u) => /* @__PURE__ */ jsx36("span", { children: commandUndeliveredSentence(u) }, `undelivered:${u.id}`)),
|
|
7015
|
+
failures.map((f) => /* @__PURE__ */ jsx36("span", { children: commandFailedSentence(f) }, `failure:${f.id}`)),
|
|
7016
|
+
founds.map((f) => /* @__PURE__ */ jsx36("span", { children: commandFoundSentence(f) }, `found:${f.id}`))
|
|
6734
7017
|
] }),
|
|
6735
|
-
!hasContent ? null : /* @__PURE__ */
|
|
7018
|
+
!hasContent ? null : /* @__PURE__ */ jsxs17(
|
|
6736
7019
|
PanelDelayRail__Rail,
|
|
6737
7020
|
{
|
|
6738
7021
|
"data-panel-rail": "",
|
|
@@ -6752,7 +7035,7 @@ function PanelDelayRail({ tiny } = {}) {
|
|
|
6752
7035
|
}
|
|
6753
7036
|
},
|
|
6754
7037
|
children: [
|
|
6755
|
-
/* @__PURE__ */
|
|
7038
|
+
/* @__PURE__ */ jsx36(
|
|
6756
7039
|
PanelDelayRail__Toggle,
|
|
6757
7040
|
{
|
|
6758
7041
|
type: "button",
|
|
@@ -6766,11 +7049,11 @@ function PanelDelayRail({ tiny } = {}) {
|
|
|
6766
7049
|
return next;
|
|
6767
7050
|
});
|
|
6768
7051
|
},
|
|
6769
|
-
children: /* @__PURE__ */
|
|
7052
|
+
children: /* @__PURE__ */ jsx36(PanelDelayRail__CollapseHint, { "aria-hidden": "true", hidden: !grown, children: "\u25B2" })
|
|
6770
7053
|
}
|
|
6771
7054
|
),
|
|
6772
|
-
/* @__PURE__ */
|
|
6773
|
-
ordered.map((h) => /* @__PURE__ */
|
|
7055
|
+
/* @__PURE__ */ jsxs17(PanelDelayRail__Detail, { id: detailId, "data-panel-rail-detail": "", children: [
|
|
7056
|
+
ordered.map((h) => /* @__PURE__ */ jsx36(
|
|
6774
7057
|
CommandDelay,
|
|
6775
7058
|
{
|
|
6776
7059
|
handle: h,
|
|
@@ -6780,16 +7063,16 @@ function PanelDelayRail({ tiny } = {}) {
|
|
|
6780
7063
|
h.id
|
|
6781
7064
|
)),
|
|
6782
7065
|
!grown && (failedCount > 0 || losses.length > 0 || founds.length > 0) && // One run for every count, since they share the band's single grid cell.
|
|
6783
|
-
/* @__PURE__ */
|
|
6784
|
-
failedCount > 0 && /* @__PURE__ */
|
|
6785
|
-
losses.length > 0 && /* @__PURE__ */
|
|
6786
|
-
founds.length > 0 && /* @__PURE__ */
|
|
7066
|
+
/* @__PURE__ */ jsxs17(PanelDelayRail__Summaries, { children: [
|
|
7067
|
+
failedCount > 0 && /* @__PURE__ */ jsx36(PanelDelayRail__WarnSummary, { children: failedCount === 1 ? "1 command failed" : `${failedCount} commands failed` }),
|
|
7068
|
+
losses.length > 0 && /* @__PURE__ */ jsx36(PanelDelayRail__WarnSummary, { children: losses.length === 1 ? "1 command unconfirmed" : `${losses.length} commands unconfirmed` }),
|
|
7069
|
+
founds.length > 0 && /* @__PURE__ */ jsx36(PanelDelayRail__FoundSummary, { children: founds.length === 1 ? "1 unconfirmed command answered" : `${founds.length} unconfirmed commands answered` })
|
|
6787
7070
|
] })
|
|
6788
7071
|
] })
|
|
6789
7072
|
]
|
|
6790
7073
|
}
|
|
6791
7074
|
),
|
|
6792
|
-
grown && refusals.length > 0 && /* @__PURE__ */
|
|
7075
|
+
grown && refusals.length > 0 && /* @__PURE__ */ jsx36(
|
|
6793
7076
|
CommandList,
|
|
6794
7077
|
{
|
|
6795
7078
|
kind: "refused",
|
|
@@ -6798,7 +7081,7 @@ function PanelDelayRail({ tiny } = {}) {
|
|
|
6798
7081
|
live: false
|
|
6799
7082
|
}
|
|
6800
7083
|
),
|
|
6801
|
-
grown && losses.length > 0 && /* @__PURE__ */
|
|
7084
|
+
grown && losses.length > 0 && /* @__PURE__ */ jsx36(
|
|
6802
7085
|
CommandList,
|
|
6803
7086
|
{
|
|
6804
7087
|
kind: "lost",
|
|
@@ -6807,7 +7090,7 @@ function PanelDelayRail({ tiny } = {}) {
|
|
|
6807
7090
|
live: false
|
|
6808
7091
|
}
|
|
6809
7092
|
),
|
|
6810
|
-
grown && undelivered.length > 0 && /* @__PURE__ */
|
|
7093
|
+
grown && undelivered.length > 0 && /* @__PURE__ */ jsx36(
|
|
6811
7094
|
CommandList,
|
|
6812
7095
|
{
|
|
6813
7096
|
kind: "undelivered",
|
|
@@ -6816,7 +7099,7 @@ function PanelDelayRail({ tiny } = {}) {
|
|
|
6816
7099
|
live: false
|
|
6817
7100
|
}
|
|
6818
7101
|
),
|
|
6819
|
-
grown && failures.length > 0 && /* @__PURE__ */
|
|
7102
|
+
grown && failures.length > 0 && /* @__PURE__ */ jsx36(
|
|
6820
7103
|
CommandList,
|
|
6821
7104
|
{
|
|
6822
7105
|
kind: "failed",
|
|
@@ -6825,7 +7108,7 @@ function PanelDelayRail({ tiny } = {}) {
|
|
|
6825
7108
|
live: false
|
|
6826
7109
|
}
|
|
6827
7110
|
),
|
|
6828
|
-
grown && founds.length > 0 && /* @__PURE__ */
|
|
7111
|
+
grown && founds.length > 0 && /* @__PURE__ */ jsx36(
|
|
6829
7112
|
CommandList,
|
|
6830
7113
|
{
|
|
6831
7114
|
kind: "found",
|
|
@@ -6839,7 +7122,7 @@ function PanelDelayRail({ tiny } = {}) {
|
|
|
6839
7122
|
)
|
|
6840
7123
|
);
|
|
6841
7124
|
}
|
|
6842
|
-
var PanelDelayRail__Frame =
|
|
7125
|
+
var PanelDelayRail__Frame = styled22.div`
|
|
6843
7126
|
/* Never shrinks below its content: the grown rail keeps its full height and the body gives up the difference. */
|
|
6844
7127
|
flex: 0 0 auto;
|
|
6845
7128
|
/* Fully opaque so content scrolling under the rail never ghosts through: except a tiny panel's empty band, which paints nothing so the panel's own focus ring stays visible behind it. */
|
|
@@ -6862,7 +7145,7 @@ var grownRail = css12`
|
|
|
6862
7145
|
grid-area: auto;
|
|
6863
7146
|
}
|
|
6864
7147
|
`;
|
|
6865
|
-
var PanelDelayRail__Rail =
|
|
7148
|
+
var PanelDelayRail__Rail = styled22.div`
|
|
6866
7149
|
width: 100%;
|
|
6867
7150
|
margin: 0;
|
|
6868
7151
|
padding: 0;
|
|
@@ -6894,7 +7177,7 @@ var PanelDelayRail__Rail = styled21.div`
|
|
|
6894
7177
|
${grownRail}
|
|
6895
7178
|
}
|
|
6896
7179
|
`;
|
|
6897
|
-
var PanelDelayRail__Toggle =
|
|
7180
|
+
var PanelDelayRail__Toggle = styled22.button`
|
|
6898
7181
|
appearance: none;
|
|
6899
7182
|
position: absolute;
|
|
6900
7183
|
inset: 0;
|
|
@@ -6913,13 +7196,13 @@ var PanelDelayRail__Toggle = styled21.button`
|
|
|
6913
7196
|
}
|
|
6914
7197
|
|
|
6915
7198
|
`;
|
|
6916
|
-
var PanelDelayRail__Detail =
|
|
7199
|
+
var PanelDelayRail__Detail = styled22.div`
|
|
6917
7200
|
display: contents;
|
|
6918
7201
|
`;
|
|
6919
|
-
var PanelDelayRail__WarnSummary =
|
|
7202
|
+
var PanelDelayRail__WarnSummary = styled22.span`
|
|
6920
7203
|
color: ${TONE_TEXT.warn};
|
|
6921
7204
|
`;
|
|
6922
|
-
var PanelDelayRail__Summaries =
|
|
7205
|
+
var PanelDelayRail__Summaries = styled22.span`
|
|
6923
7206
|
align-self: center;
|
|
6924
7207
|
justify-self: end;
|
|
6925
7208
|
display: flex;
|
|
@@ -6933,10 +7216,10 @@ var PanelDelayRail__Summaries = styled21.span`
|
|
|
6933
7216
|
white-space: nowrap;
|
|
6934
7217
|
pointer-events: none;
|
|
6935
7218
|
`;
|
|
6936
|
-
var PanelDelayRail__FoundSummary =
|
|
7219
|
+
var PanelDelayRail__FoundSummary = styled22.span`
|
|
6937
7220
|
color: var(--color-info-text);
|
|
6938
7221
|
`;
|
|
6939
|
-
var PanelDelayRail__CollapseHint =
|
|
7222
|
+
var PanelDelayRail__CollapseHint = styled22.span`
|
|
6940
7223
|
position: absolute;
|
|
6941
7224
|
top: var(--offset-rail-hint);
|
|
6942
7225
|
right: var(--gutter-panel);
|
|
@@ -6956,11 +7239,11 @@ var PanelDelayRail__CollapseHint = styled21.span`
|
|
|
6956
7239
|
`;
|
|
6957
7240
|
|
|
6958
7241
|
// src/status/PanelStatusDot.tsx
|
|
6959
|
-
import
|
|
6960
|
-
import { jsx as
|
|
7242
|
+
import styled23 from "styled-components";
|
|
7243
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
6961
7244
|
function PanelStatusDot({ severity, count = 1 }) {
|
|
6962
7245
|
const withCount = count > 1;
|
|
6963
|
-
return /* @__PURE__ */
|
|
7246
|
+
return /* @__PURE__ */ jsx37(
|
|
6964
7247
|
PanelStatusDot__Root,
|
|
6965
7248
|
{
|
|
6966
7249
|
"data-panel-status-dot": "",
|
|
@@ -6969,7 +7252,7 @@ function PanelStatusDot({ severity, count = 1 }) {
|
|
|
6969
7252
|
"aria-label": withCount ? `${count} ${TONE_LABEL[severity]}` : TONE_LABEL[severity],
|
|
6970
7253
|
$mark: TONE_MARK[severity],
|
|
6971
7254
|
$digits: withCount ? String(count).length : 1,
|
|
6972
|
-
children: withCount && /* @__PURE__ */
|
|
7255
|
+
children: withCount && /* @__PURE__ */ jsx37(
|
|
6973
7256
|
PanelStatusDot__Count,
|
|
6974
7257
|
{
|
|
6975
7258
|
$fill: TONE_STATUS[severity],
|
|
@@ -6981,7 +7264,7 @@ function PanelStatusDot({ severity, count = 1 }) {
|
|
|
6981
7264
|
);
|
|
6982
7265
|
}
|
|
6983
7266
|
var DOT_DIAMETER = "8px";
|
|
6984
|
-
var PanelStatusDot__Root =
|
|
7267
|
+
var PanelStatusDot__Root = styled23.span`
|
|
6985
7268
|
position: relative;
|
|
6986
7269
|
flex: 0 0 auto;
|
|
6987
7270
|
display: inline-flex;
|
|
@@ -7000,7 +7283,7 @@ var PanelStatusDot__Root = styled22.span`
|
|
|
7000
7283
|
0 0 0 1px color-mix(in srgb, ${({ $mark }) => $mark} 78%, white),
|
|
7001
7284
|
0 0 4px 1px ${({ $mark }) => $mark};
|
|
7002
7285
|
`;
|
|
7003
|
-
var PanelStatusDot__Count =
|
|
7286
|
+
var PanelStatusDot__Count = styled23.span`
|
|
7004
7287
|
/* Out of flow, centred over the fixed parent box with no say over its size. */
|
|
7005
7288
|
position: absolute;
|
|
7006
7289
|
inset: 0;
|
|
@@ -7120,15 +7403,30 @@ function useScrollerMetric(el, compute, isEqual, initial) {
|
|
|
7120
7403
|
const ro = new ResizeObserver(update);
|
|
7121
7404
|
ro.observe(el);
|
|
7122
7405
|
for (const child of Array.from(el.children)) ro.observe(child);
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7406
|
+
let frame;
|
|
7407
|
+
const mo = new MutationObserver((records) => {
|
|
7408
|
+
if (records.some((r) => r.type === "childList")) {
|
|
7409
|
+
for (const child of Array.from(el.children)) ro.observe(child);
|
|
7410
|
+
update();
|
|
7411
|
+
return;
|
|
7412
|
+
}
|
|
7413
|
+
if (frame === void 0)
|
|
7414
|
+
frame = requestAnimationFrame(() => {
|
|
7415
|
+
frame = void 0;
|
|
7416
|
+
update();
|
|
7417
|
+
});
|
|
7418
|
+
});
|
|
7419
|
+
mo.observe(el, {
|
|
7420
|
+
childList: true,
|
|
7421
|
+
subtree: true,
|
|
7422
|
+
attributes: true,
|
|
7423
|
+
attributeFilter: ["style"]
|
|
7126
7424
|
});
|
|
7127
|
-
mo.observe(el, { childList: true, subtree: true });
|
|
7128
7425
|
return () => {
|
|
7129
7426
|
el.removeEventListener("scroll", update);
|
|
7130
7427
|
ro.disconnect();
|
|
7131
7428
|
mo.disconnect();
|
|
7429
|
+
if (frame !== void 0) cancelAnimationFrame(frame);
|
|
7132
7430
|
};
|
|
7133
7431
|
}, [el]);
|
|
7134
7432
|
return value3;
|
|
@@ -7142,7 +7440,7 @@ function useKeyboardScrollable(el) {
|
|
|
7142
7440
|
}
|
|
7143
7441
|
|
|
7144
7442
|
// src/Panel.tsx
|
|
7145
|
-
import { Fragment as
|
|
7443
|
+
import { Fragment as Fragment13, jsx as jsx38, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
7146
7444
|
var PanelCtx = createContext8(null);
|
|
7147
7445
|
function PanelContextProvider({ children }) {
|
|
7148
7446
|
const [scroller, setScroller] = useState10(null);
|
|
@@ -7150,10 +7448,10 @@ function PanelContextProvider({ children }) {
|
|
|
7150
7448
|
() => ({ scroller, registerScroller: setScroller }),
|
|
7151
7449
|
[scroller]
|
|
7152
7450
|
);
|
|
7153
|
-
return /* @__PURE__ */
|
|
7451
|
+
return /* @__PURE__ */ jsx38(PanelCtx.Provider, { value: value3, children });
|
|
7154
7452
|
}
|
|
7155
7453
|
function PanelProviders({ children }) {
|
|
7156
|
-
return /* @__PURE__ */
|
|
7454
|
+
return /* @__PURE__ */ jsx38(PanelContextProvider, { children });
|
|
7157
7455
|
}
|
|
7158
7456
|
var SECTION_FILL_RULE = `
|
|
7159
7457
|
& > [${SECTION_FILL_ATTR}] {
|
|
@@ -7161,7 +7459,7 @@ var SECTION_FILL_RULE = `
|
|
|
7161
7459
|
min-height: var(--size-section-fill-floor);
|
|
7162
7460
|
}
|
|
7163
7461
|
`;
|
|
7164
|
-
var PanelContainer =
|
|
7462
|
+
var PanelContainer = styled24.div`
|
|
7165
7463
|
/* Chrome only: border, surface and clip. The inset is Panel.Body's and the glow is Panel.Glow's. */
|
|
7166
7464
|
background: var(--color-surface-panel);
|
|
7167
7465
|
/* A size container, so the popped-open aside sizes itself in cqw against the panel's width. */
|
|
@@ -7184,7 +7482,7 @@ var PanelContainer = styled23.div`
|
|
|
7184
7482
|
/* A hand-composed panel can put sections straight in here, so this box owns the leftover height. */
|
|
7185
7483
|
${SECTION_FILL_RULE}
|
|
7186
7484
|
`;
|
|
7187
|
-
var PanelTitle__Box =
|
|
7485
|
+
var PanelTitle__Box = styled24.h3`
|
|
7188
7486
|
margin: 0;
|
|
7189
7487
|
/* No top inset: PanelHeader__Row carries it, so the header pays for it once. */
|
|
7190
7488
|
padding: var(--inset-panel-header);
|
|
@@ -7202,7 +7500,7 @@ var PanelTitle = forwardRef7(
|
|
|
7202
7500
|
const full = typeof children === "string" ? children : "";
|
|
7203
7501
|
const forms = compact2 === void 0 || full === "" ? EMPTY_COMPACT : typeof compact2 === "string" ? [compact2] : compact2;
|
|
7204
7502
|
const { index, compacted } = useFittedTitle(own, full, forms);
|
|
7205
|
-
return /* @__PURE__ */
|
|
7503
|
+
return /* @__PURE__ */ jsx38(Tooltip, { text: compacted ? full : void 0, children: /* @__PURE__ */ jsx38(
|
|
7206
7504
|
PanelTitle__Box,
|
|
7207
7505
|
{
|
|
7208
7506
|
...rest,
|
|
@@ -7221,7 +7519,7 @@ var PanelTitle = forwardRef7(
|
|
|
7221
7519
|
}
|
|
7222
7520
|
);
|
|
7223
7521
|
var EMPTY_COMPACT = [];
|
|
7224
|
-
var PanelHeader__Row =
|
|
7522
|
+
var PanelHeader__Row = styled24.div`
|
|
7225
7523
|
padding-top: var(--inset-panel-header-top);
|
|
7226
7524
|
display: flex;
|
|
7227
7525
|
/* Centred, which levels the collapsed dots and chevron on the single-line title. */
|
|
@@ -7234,7 +7532,7 @@ var PanelHeader__Row = styled23.div`
|
|
|
7234
7532
|
/* Never shrink, or a short tile's body would overprint the title. */
|
|
7235
7533
|
flex-shrink: 0;
|
|
7236
7534
|
`;
|
|
7237
|
-
var PanelHeader__Titles =
|
|
7535
|
+
var PanelHeader__Titles = styled24.div`
|
|
7238
7536
|
min-width: 0;
|
|
7239
7537
|
/* A zero basis, so a long title shrinks beside the aside instead of wrapping it onto a second line; useFittedTitle measures the room this leaves. */
|
|
7240
7538
|
flex-grow: 1;
|
|
@@ -7247,7 +7545,7 @@ var PanelHeader__Titles = styled23.div`
|
|
|
7247
7545
|
min-width: 0;
|
|
7248
7546
|
}
|
|
7249
7547
|
`;
|
|
7250
|
-
var PanelHeader__Strut =
|
|
7548
|
+
var PanelHeader__Strut = styled24.span`
|
|
7251
7549
|
display: flex;
|
|
7252
7550
|
flex: 0 0 0;
|
|
7253
7551
|
width: 0;
|
|
@@ -7257,7 +7555,7 @@ var PanelHeader__Strut = styled23.span`
|
|
|
7257
7555
|
content: "\\00a0";
|
|
7258
7556
|
}
|
|
7259
7557
|
`;
|
|
7260
|
-
var PanelHeader__Aside =
|
|
7558
|
+
var PanelHeader__Aside = styled24.div`
|
|
7261
7559
|
display: flex;
|
|
7262
7560
|
align-items: center;
|
|
7263
7561
|
gap: var(--gap-panel-aside);
|
|
@@ -7267,7 +7565,7 @@ var PanelHeader__Aside = styled23.div`
|
|
|
7267
7565
|
/* Mirrors PanelTitle's inset so the badges line up with the title. */
|
|
7268
7566
|
padding: var(--inset-panel-header);
|
|
7269
7567
|
`;
|
|
7270
|
-
var PanelAsideExpand =
|
|
7568
|
+
var PanelAsideExpand = styled24.details`
|
|
7271
7569
|
position: relative;
|
|
7272
7570
|
margin: 0;
|
|
7273
7571
|
display: flex;
|
|
@@ -7432,12 +7730,12 @@ function PanelHeader({
|
|
|
7432
7730
|
);
|
|
7433
7731
|
return (
|
|
7434
7732
|
/* `data-panel-header` is a stable targeting hook. */
|
|
7435
|
-
/* @__PURE__ */
|
|
7436
|
-
/* @__PURE__ */
|
|
7437
|
-
title !== void 0 && /* @__PURE__ */
|
|
7438
|
-
/* @__PURE__ */
|
|
7733
|
+
/* @__PURE__ */ jsxs18(PanelHeader__Row, { ref: rowRef, "data-panel-header": "", ...rest, children: [
|
|
7734
|
+
/* @__PURE__ */ jsxs18(PanelHeader__Titles, { children: [
|
|
7735
|
+
title !== void 0 && /* @__PURE__ */ jsx38(PanelTitle, { ref: titleRef, compact: compactTitle, children: title }),
|
|
7736
|
+
/* @__PURE__ */ jsx38(PanelHeader__Strut, { "aria-hidden": "true", children: /* @__PURE__ */ jsx38(Badge, { children: null }) })
|
|
7439
7737
|
] }),
|
|
7440
|
-
aside !== void 0 && /* @__PURE__ */
|
|
7738
|
+
aside !== void 0 && /* @__PURE__ */ jsx38(PanelHeader__Aside, { children: /* @__PURE__ */ jsxs18(
|
|
7441
7739
|
PanelAsideExpand,
|
|
7442
7740
|
{
|
|
7443
7741
|
ref: expandRef,
|
|
@@ -7464,7 +7762,7 @@ function PanelHeader({
|
|
|
7464
7762
|
}, MENU_CROSSING_MS);
|
|
7465
7763
|
},
|
|
7466
7764
|
children: [
|
|
7467
|
-
/* @__PURE__ */
|
|
7765
|
+
/* @__PURE__ */ jsxs18(
|
|
7468
7766
|
"summary",
|
|
7469
7767
|
{
|
|
7470
7768
|
ref: summaryRef,
|
|
@@ -7476,7 +7774,7 @@ function PanelHeader({
|
|
|
7476
7774
|
"aria-description": description ?? void 0,
|
|
7477
7775
|
"aria-label": breakdown.length === 0 ? "Panel status and controls" : `${breakdown.map((e) => `${e.count} ${TONE_LABEL[e.severity]}`).join(", ")}. Panel status and controls`,
|
|
7478
7776
|
children: [
|
|
7479
|
-
breakdown.map((e) => /* @__PURE__ */
|
|
7777
|
+
breakdown.map((e) => /* @__PURE__ */ jsx38(
|
|
7480
7778
|
PanelStatusDot,
|
|
7481
7779
|
{
|
|
7482
7780
|
severity: e.severity,
|
|
@@ -7484,20 +7782,20 @@ function PanelHeader({
|
|
|
7484
7782
|
},
|
|
7485
7783
|
e.severity
|
|
7486
7784
|
)),
|
|
7487
|
-
/* @__PURE__ */
|
|
7785
|
+
/* @__PURE__ */ jsx38("span", { "data-panel-aside-chevron": "", "aria-hidden": "true" })
|
|
7488
7786
|
]
|
|
7489
7787
|
}
|
|
7490
7788
|
),
|
|
7491
7789
|
summaryTipBody,
|
|
7492
|
-
/* @__PURE__ */
|
|
7790
|
+
/* @__PURE__ */ jsx38(PanelAsideSizeProvider, { value: collapsed ? "collapsed" : "full", children: /* @__PURE__ */ jsx38("div", { "data-panel-aside-full": "", ref: asideFullRef, children: aside }) })
|
|
7493
7791
|
]
|
|
7494
7792
|
}
|
|
7495
7793
|
) }),
|
|
7496
|
-
toolbar !== void 0 && /* @__PURE__ */
|
|
7794
|
+
toolbar !== void 0 && /* @__PURE__ */ jsx38(PanelToolbar, { children: toolbar })
|
|
7497
7795
|
] })
|
|
7498
7796
|
);
|
|
7499
7797
|
}
|
|
7500
|
-
var PanelToolbar =
|
|
7798
|
+
var PanelToolbar = styled24.div`
|
|
7501
7799
|
${fitBox("panel-toolbar")}
|
|
7502
7800
|
display: flex;
|
|
7503
7801
|
align-items: center;
|
|
@@ -7513,7 +7811,7 @@ var PanelToolbar = styled23.div`
|
|
|
7513
7811
|
/* Opaque: the sticky header's scroll glow only masks its top strip, so a tall toolbar would let scrolled rows draw through it. */
|
|
7514
7812
|
background: var(--color-surface-panel);
|
|
7515
7813
|
`;
|
|
7516
|
-
var PanelBody__Box =
|
|
7814
|
+
var PanelBody__Box = styled24.div`
|
|
7517
7815
|
--gap-related: var(--gap-related-comfortable);
|
|
7518
7816
|
--gap-section: var(--gap-section-comfortable);
|
|
7519
7817
|
--bleed-inline: var(--gutter-panel);
|
|
@@ -7580,7 +7878,7 @@ function PanelBody({
|
|
|
7580
7878
|
const tabIndex = useKeyboardScrollable(scroller);
|
|
7581
7879
|
return (
|
|
7582
7880
|
/* `data-panel-body` is a stable targeting hook for the scroller's visible height. */
|
|
7583
|
-
/* @__PURE__ */
|
|
7881
|
+
/* @__PURE__ */ jsx38(
|
|
7584
7882
|
PanelBody__Box,
|
|
7585
7883
|
{
|
|
7586
7884
|
ref,
|
|
@@ -7597,7 +7895,7 @@ function PanelBody({
|
|
|
7597
7895
|
);
|
|
7598
7896
|
}
|
|
7599
7897
|
var DEFAULT_SECTION_MIN_WIDTH = "13rem";
|
|
7600
|
-
var PanelSections__Grid =
|
|
7898
|
+
var PanelSections__Grid = styled24.div`
|
|
7601
7899
|
display: grid;
|
|
7602
7900
|
grid-template-columns: repeat(
|
|
7603
7901
|
auto-fit,
|
|
@@ -7616,6 +7914,10 @@ var PanelSections__Grid = styled23.div`
|
|
|
7616
7914
|
& > [${SECTION_FULL_ATTR}] {
|
|
7617
7915
|
grid-column: 1 / -1;
|
|
7618
7916
|
}
|
|
7917
|
+
/* A grid opened only to carry the augment slot, with nothing bound, takes no gap above it: a filling section reaches the body's bottom inset. */
|
|
7918
|
+
&:empty {
|
|
7919
|
+
display: none;
|
|
7920
|
+
}
|
|
7619
7921
|
`;
|
|
7620
7922
|
function PanelFitBody({
|
|
7621
7923
|
children,
|
|
@@ -7624,7 +7926,7 @@ function PanelFitBody({
|
|
|
7624
7926
|
const outerRef = useRef10(null);
|
|
7625
7927
|
const innerRef = useRef10(null);
|
|
7626
7928
|
const fits = useContentFits(outerRef, innerRef);
|
|
7627
|
-
return /* @__PURE__ */
|
|
7929
|
+
return /* @__PURE__ */ jsx38(PanelBody__FitOuter, { ref: outerRef, $fits: fits, "data-panel-fit-body": "", children: /* @__PURE__ */ jsx38(
|
|
7628
7930
|
PanelBody__FitContent,
|
|
7629
7931
|
{
|
|
7630
7932
|
ref: innerRef,
|
|
@@ -7634,7 +7936,7 @@ function PanelFitBody({
|
|
|
7634
7936
|
}
|
|
7635
7937
|
) });
|
|
7636
7938
|
}
|
|
7637
|
-
var PanelBody__FitOuter =
|
|
7939
|
+
var PanelBody__FitOuter = styled24.div`
|
|
7638
7940
|
flex: 1;
|
|
7639
7941
|
min-height: 0;
|
|
7640
7942
|
/* Takes back the body's gap above and its bottom inset, so the box is all the room a tiny tile has and centring is measured against it. Reads the body's own custom property rather than the raw token, so a stepped-down bottom inset (loneFrame, hoverTitle) is taken back by exactly as much. */
|
|
@@ -7645,7 +7947,7 @@ var PanelBody__FitOuter = styled23.div`
|
|
|
7645
7947
|
/* Never clips: the body owns the real boundary. */
|
|
7646
7948
|
${({ $fits }) => $fits ? "justify-content: center;" : "justify-content: flex-start;"}
|
|
7647
7949
|
`;
|
|
7648
|
-
var PanelBody__FitContent =
|
|
7950
|
+
var PanelBody__FitContent = styled24.div`
|
|
7649
7951
|
display: flex;
|
|
7650
7952
|
flex-direction: column;
|
|
7651
7953
|
align-items: center;
|
|
@@ -7713,7 +8015,7 @@ function contentExtent(content) {
|
|
|
7713
8015
|
function contentFits(content, box) {
|
|
7714
8016
|
return content <= box;
|
|
7715
8017
|
}
|
|
7716
|
-
var ScrollAreaRoot =
|
|
8018
|
+
var ScrollAreaRoot = styled24.div`
|
|
7717
8019
|
position: relative;
|
|
7718
8020
|
display: flex;
|
|
7719
8021
|
flex-direction: column;
|
|
@@ -7723,7 +8025,7 @@ var ScrollAreaRoot = styled23.div`
|
|
|
7723
8025
|
/* Out to the panel's edges, its content back on the column, so a strip inside that bleeds is not clipped by this scroller. */
|
|
7724
8026
|
margin-inline: calc(-1 * var(--bleed-inline));
|
|
7725
8027
|
`;
|
|
7726
|
-
var ScrollAreaInner =
|
|
8028
|
+
var ScrollAreaInner = styled24.div`
|
|
7727
8029
|
flex: 1;
|
|
7728
8030
|
min-height: 0;
|
|
7729
8031
|
overflow: auto;
|
|
@@ -7738,7 +8040,7 @@ var ScrollAreaInner = styled23.div`
|
|
|
7738
8040
|
display: none;
|
|
7739
8041
|
}
|
|
7740
8042
|
`;
|
|
7741
|
-
var ScrollOverflowGlow =
|
|
8043
|
+
var ScrollOverflowGlow = styled24.div`
|
|
7742
8044
|
position: absolute;
|
|
7743
8045
|
/* Flush with the scroller's edges: the body's inset is inside the scroller, so nothing pads this. */
|
|
7744
8046
|
left: 0;
|
|
@@ -7790,8 +8092,8 @@ var ScrollArea = forwardRef7(function ScrollArea2({ children, ...rest }, ref) {
|
|
|
7790
8092
|
NO_OVERFLOW
|
|
7791
8093
|
);
|
|
7792
8094
|
const innerTabIndex = useKeyboardScrollable(inner);
|
|
7793
|
-
return /* @__PURE__ */
|
|
7794
|
-
/* @__PURE__ */
|
|
8095
|
+
return /* @__PURE__ */ jsxs18(ScrollAreaRoot, { ...rest, children: [
|
|
8096
|
+
/* @__PURE__ */ jsx38(
|
|
7795
8097
|
ScrollAreaInner,
|
|
7796
8098
|
{
|
|
7797
8099
|
ref: attachInner,
|
|
@@ -7800,8 +8102,8 @@ var ScrollArea = forwardRef7(function ScrollArea2({ children, ...rest }, ref) {
|
|
|
7800
8102
|
children
|
|
7801
8103
|
}
|
|
7802
8104
|
),
|
|
7803
|
-
/* @__PURE__ */
|
|
7804
|
-
/* @__PURE__ */
|
|
8105
|
+
/* @__PURE__ */ jsx38(ScrollOverflowGlow, { $position: "top", $visible: overflow.top }),
|
|
8106
|
+
/* @__PURE__ */ jsx38(ScrollOverflowGlow, { $position: "bottom", $visible: overflow.bottom })
|
|
7805
8107
|
] });
|
|
7806
8108
|
});
|
|
7807
8109
|
function resolveCssLength(value3) {
|
|
@@ -7823,7 +8125,7 @@ var SIDEBAR_BLOCK_SIZE = `min(${gridToPixels(1, SIDEBAR_BLOCK_ROWS).pxH}px, ${SI
|
|
|
7823
8125
|
function sidebarTracks(side, size) {
|
|
7824
8126
|
return side === "start" ? `minmax(0, ${size}) minmax(0, 1fr)` : `minmax(0, 1fr) minmax(0, ${size})`;
|
|
7825
8127
|
}
|
|
7826
|
-
var PanelSplit__Box =
|
|
8128
|
+
var PanelSplit__Box = styled24.div`
|
|
7827
8129
|
flex: 1;
|
|
7828
8130
|
min-height: 0;
|
|
7829
8131
|
min-width: 0;
|
|
@@ -7873,7 +8175,7 @@ function PanelSplit({
|
|
|
7873
8175
|
const resolvedSize = size ?? (axis === "inline" ? SIDEBAR_INLINE_SIZE : SIDEBAR_BLOCK_SIZE);
|
|
7874
8176
|
return (
|
|
7875
8177
|
/* `data-panel-split` is a stable targeting hook carrying the resolved axis. */
|
|
7876
|
-
/* @__PURE__ */
|
|
8178
|
+
/* @__PURE__ */ jsx38(
|
|
7877
8179
|
PanelSplit__Box,
|
|
7878
8180
|
{
|
|
7879
8181
|
ref,
|
|
@@ -7888,7 +8190,7 @@ function PanelSplit({
|
|
|
7888
8190
|
)
|
|
7889
8191
|
);
|
|
7890
8192
|
}
|
|
7891
|
-
var PanelSidebar__Scroll =
|
|
8193
|
+
var PanelSidebar__Scroll = styled24(ScrollArea)`
|
|
7892
8194
|
/* Longhands, because jsdom drops a shorthand made of var() calls. */
|
|
7893
8195
|
& > [data-scroll-area-inner] {
|
|
7894
8196
|
padding-top: var(--inset-panel-top);
|
|
@@ -7897,7 +8199,7 @@ var PanelSidebar__Scroll = styled23(ScrollArea)`
|
|
|
7897
8199
|
padding-left: var(--gutter-panel);
|
|
7898
8200
|
}
|
|
7899
8201
|
`;
|
|
7900
|
-
var PanelSidebar__Box =
|
|
8202
|
+
var PanelSidebar__Box = styled24.div`
|
|
7901
8203
|
display: flex;
|
|
7902
8204
|
flex-direction: column;
|
|
7903
8205
|
/* Grid items floor at min-content, which would let the ScrollArea grow the track instead of scrolling. */
|
|
@@ -7908,7 +8210,7 @@ function PanelSidebar({
|
|
|
7908
8210
|
children,
|
|
7909
8211
|
...rest
|
|
7910
8212
|
}) {
|
|
7911
|
-
return /* @__PURE__ */
|
|
8213
|
+
return /* @__PURE__ */ jsx38(PanelSidebar__Box, { "data-panel-sidebar": "", ...rest, children: /* @__PURE__ */ jsx38(PanelSidebar__Scroll, { children }) });
|
|
7912
8214
|
}
|
|
7913
8215
|
var NO_OVERFLOW = { top: false, bottom: false };
|
|
7914
8216
|
function scrollOverflow(el) {
|
|
@@ -7920,7 +8222,7 @@ function scrollOverflow(el) {
|
|
|
7920
8222
|
function sameOverflow(a, b) {
|
|
7921
8223
|
return a.top === b.top && a.bottom === b.bottom;
|
|
7922
8224
|
}
|
|
7923
|
-
var PanelGlow__Root =
|
|
8225
|
+
var PanelGlow__Root = styled24.div`
|
|
7924
8226
|
position: relative;
|
|
7925
8227
|
display: flex;
|
|
7926
8228
|
flex-direction: column;
|
|
@@ -7947,9 +8249,9 @@ function PanelGlow({
|
|
|
7947
8249
|
sameOverflow,
|
|
7948
8250
|
NO_OVERFLOW
|
|
7949
8251
|
);
|
|
7950
|
-
return /* @__PURE__ */
|
|
8252
|
+
return /* @__PURE__ */ jsxs18(PanelGlow__Root, { ...rest, children: [
|
|
7951
8253
|
children,
|
|
7952
|
-
/* @__PURE__ */
|
|
8254
|
+
/* @__PURE__ */ jsx38(
|
|
7953
8255
|
ScrollOverflowGlow,
|
|
7954
8256
|
{
|
|
7955
8257
|
$position: "top",
|
|
@@ -7957,7 +8259,7 @@ function PanelGlow({
|
|
|
7957
8259
|
$topOffset: railBandAbove ? "var(--panel-rail-band)" : void 0
|
|
7958
8260
|
}
|
|
7959
8261
|
),
|
|
7960
|
-
/* @__PURE__ */
|
|
8262
|
+
/* @__PURE__ */ jsx38(ScrollOverflowGlow, { $position: "bottom", $visible: overflow.bottom })
|
|
7961
8263
|
] });
|
|
7962
8264
|
}
|
|
7963
8265
|
function mergeBadges(own, contributed) {
|
|
@@ -7978,9 +8280,9 @@ function PanelSummaryBadge({ summary }) {
|
|
|
7978
8280
|
}
|
|
7979
8281
|
}, [summary.severity]);
|
|
7980
8282
|
const description = describeBreakdown(useStatusBreakdown());
|
|
7981
|
-
return /* @__PURE__ */
|
|
8283
|
+
return /* @__PURE__ */ jsx38(PanelSummaryBadge__Pulse, { $pulse: pulseCount, children: /* @__PURE__ */ jsx38(Tooltip, { text: description, focusable: true, children: /* @__PURE__ */ jsx38(Badge, { tone: summary.severity, size: "sm", children: summary.label }) }) });
|
|
7982
8284
|
}
|
|
7983
|
-
var PanelSummaryBadge__Pulse =
|
|
8285
|
+
var PanelSummaryBadge__Pulse = styled24.span`
|
|
7984
8286
|
display: inline-flex;
|
|
7985
8287
|
${({ $pulse }) => $pulse > 0 && css14`
|
|
7986
8288
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -8011,13 +8313,13 @@ var PanelSummaryBadge__Pulse = styled23.span`
|
|
|
8011
8313
|
}
|
|
8012
8314
|
}
|
|
8013
8315
|
`;
|
|
8014
|
-
var PanelFooter =
|
|
8316
|
+
var PanelFooter = styled24.div`
|
|
8015
8317
|
flex-shrink: 0;
|
|
8016
8318
|
border-top: 1px solid var(--color-border-subtle);
|
|
8017
8319
|
padding: var(--inset-panel-footer);
|
|
8018
8320
|
background: var(--color-surface-panel);
|
|
8019
8321
|
`;
|
|
8020
|
-
var PanelStickyTop =
|
|
8322
|
+
var PanelStickyTop = styled24.div`
|
|
8021
8323
|
position: sticky;
|
|
8022
8324
|
/* Reach the scroller's true top edge, cancelling the body's own top inset. */
|
|
8023
8325
|
top: calc(-1 * var(--inset-panel-top));
|
|
@@ -8039,19 +8341,19 @@ function PanelTrend({
|
|
|
8039
8341
|
render
|
|
8040
8342
|
}) {
|
|
8041
8343
|
const { ref, size } = useElementSize({ w: 0, h: 0 });
|
|
8042
|
-
return /* @__PURE__ */
|
|
8344
|
+
return /* @__PURE__ */ jsx38(PanelTrend__Strip, { ref, "data-panel-trend": "", children: size.w > 0 && size.h > 0 && render(size) });
|
|
8043
8345
|
}
|
|
8044
|
-
var PanelTrend__Strip =
|
|
8346
|
+
var PanelTrend__Strip = styled24.div`
|
|
8045
8347
|
flex: 0 0 var(--size-panel-trend);
|
|
8046
8348
|
height: var(--size-panel-trend);
|
|
8047
8349
|
min-width: 0;
|
|
8048
8350
|
overflow: hidden;
|
|
8049
8351
|
`;
|
|
8050
|
-
var PanelFilterSlot =
|
|
8352
|
+
var PanelFilterSlot = styled24.div`
|
|
8051
8353
|
flex: 1 1 100%;
|
|
8052
8354
|
min-width: 0;
|
|
8053
8355
|
`;
|
|
8054
|
-
var PanelStickyHeader =
|
|
8356
|
+
var PanelStickyHeader = styled24(PanelHeader)`
|
|
8055
8357
|
/* Transparent: the panel glow under it is its backing. */
|
|
8056
8358
|
/* The rail band above is this header's top inset. */
|
|
8057
8359
|
padding-top: 0;
|
|
@@ -8064,7 +8366,7 @@ var PanelStickyHeader = styled23(PanelHeader)`
|
|
|
8064
8366
|
);
|
|
8065
8367
|
}
|
|
8066
8368
|
`;
|
|
8067
|
-
var PanelHoverTop =
|
|
8369
|
+
var PanelHoverTop = styled24.div`
|
|
8068
8370
|
position: absolute;
|
|
8069
8371
|
top: var(--inset-tiny);
|
|
8070
8372
|
left: var(--inset-tiny);
|
|
@@ -8076,7 +8378,7 @@ var PanelHoverTop = styled23.div`
|
|
|
8076
8378
|
gap: var(--gap-panel-aside);
|
|
8077
8379
|
pointer-events: none;
|
|
8078
8380
|
`;
|
|
8079
|
-
var PanelHoverTitlePill =
|
|
8381
|
+
var PanelHoverTitlePill = styled24(VisuallyHidden)`
|
|
8080
8382
|
margin: 0;
|
|
8081
8383
|
${titleText}
|
|
8082
8384
|
font-size: var(--font-size-caption);
|
|
@@ -8107,7 +8409,7 @@ function worstBadge(badges) {
|
|
|
8107
8409
|
return worst;
|
|
8108
8410
|
}
|
|
8109
8411
|
function PanelBadgeReports({ badges }) {
|
|
8110
|
-
return /* @__PURE__ */
|
|
8412
|
+
return /* @__PURE__ */ jsx38(Fragment13, { children: badges.map((b) => /* @__PURE__ */ jsx38(PanelBadgeReport, { entry: b }, b.id)) });
|
|
8111
8413
|
}
|
|
8112
8414
|
function PanelBadgeReport({ entry }) {
|
|
8113
8415
|
const { label, tone } = badgeFace(entry);
|
|
@@ -8120,17 +8422,17 @@ function PanelHoverStatus({
|
|
|
8120
8422
|
summary,
|
|
8121
8423
|
announcement
|
|
8122
8424
|
}) {
|
|
8123
|
-
return /* @__PURE__ */
|
|
8124
|
-
/* @__PURE__ */
|
|
8125
|
-
/* @__PURE__ */
|
|
8425
|
+
return /* @__PURE__ */ jsxs18(Fragment13, { children: [
|
|
8426
|
+
/* @__PURE__ */ jsx38(Tooltip, { text: summary.label, focusable: true, children: /* @__PURE__ */ jsx38(PanelHoverStatus__Hit, { children: /* @__PURE__ */ jsx38(PanelStatusDot, { severity: summary.severity }) }) }),
|
|
8427
|
+
/* @__PURE__ */ jsx38(LiveRegion, { visuallyHidden: true, assertive: true, children: announcement })
|
|
8126
8428
|
] });
|
|
8127
8429
|
}
|
|
8128
|
-
var PanelHoverStatus__Hit =
|
|
8430
|
+
var PanelHoverStatus__Hit = styled24.span`
|
|
8129
8431
|
display: inline-flex;
|
|
8130
8432
|
align-items: center;
|
|
8131
8433
|
padding: var(--inset-chip);
|
|
8132
8434
|
`;
|
|
8133
|
-
var PanelHoverAside =
|
|
8435
|
+
var PanelHoverAside = styled24.div`
|
|
8134
8436
|
margin-left: auto;
|
|
8135
8437
|
display: flex;
|
|
8136
8438
|
align-items: center;
|
|
@@ -8138,11 +8440,11 @@ var PanelHoverAside = styled23.div`
|
|
|
8138
8440
|
pointer-events: auto;
|
|
8139
8441
|
`;
|
|
8140
8442
|
function PanelRoot(props) {
|
|
8141
|
-
return props.hoverTitle ? /* @__PURE__ */
|
|
8443
|
+
return props.hoverTitle ? /* @__PURE__ */ jsx38(PanelRootWithHoverTitle, { ...props }) : /* @__PURE__ */ jsx38(PanelRootImpl, { ...props, hoverTitleId: void 0 });
|
|
8142
8444
|
}
|
|
8143
8445
|
function PanelRootWithHoverTitle(props) {
|
|
8144
8446
|
const hoverTitleId = useId6();
|
|
8145
|
-
return /* @__PURE__ */
|
|
8447
|
+
return /* @__PURE__ */ jsx38(PanelRootImpl, { ...props, hoverTitleId });
|
|
8146
8448
|
}
|
|
8147
8449
|
function PanelRootImpl({
|
|
8148
8450
|
panelTitle,
|
|
@@ -8172,7 +8474,7 @@ function PanelRootImpl({
|
|
|
8172
8474
|
const badges = mergeBadges(panelBadges, contextBadges);
|
|
8173
8475
|
const badgePills = badges.length === 0 ? null : badges.map((b) => {
|
|
8174
8476
|
const { label, tone, title } = badgeFace(b);
|
|
8175
|
-
return /* @__PURE__ */
|
|
8477
|
+
return /* @__PURE__ */ jsx38(Tooltip, { text: title, focusable: true, children: /* @__PURE__ */ jsx38(
|
|
8176
8478
|
Badge,
|
|
8177
8479
|
{
|
|
8178
8480
|
tone,
|
|
@@ -8181,9 +8483,9 @@ function PanelRootImpl({
|
|
|
8181
8483
|
}
|
|
8182
8484
|
) }, b.id);
|
|
8183
8485
|
});
|
|
8184
|
-
const toolbar = panelFilter === void 0 ? panelToolbar : /* @__PURE__ */
|
|
8486
|
+
const toolbar = panelFilter === void 0 ? panelToolbar : /* @__PURE__ */ jsxs18(Fragment13, { children: [
|
|
8185
8487
|
panelToolbar,
|
|
8186
|
-
/* @__PURE__ */
|
|
8488
|
+
/* @__PURE__ */ jsx38(PanelFilterSlot, { children: filterControlOf(panelFilter) })
|
|
8187
8489
|
] });
|
|
8188
8490
|
const status = panelStatus ?? null;
|
|
8189
8491
|
const streamStatus = status !== null && status !== "none" && status !== "live" ? status : null;
|
|
@@ -8197,12 +8499,12 @@ function PanelRootImpl({
|
|
|
8197
8499
|
const summary = useStatusSummary();
|
|
8198
8500
|
const summaryDuplicatesABadgePill = summary !== null && badges.some((b) => b.id === summary.id);
|
|
8199
8501
|
const streamLabel = streamStatus === null ? null : formatStreamStatus(streamStatus);
|
|
8200
|
-
const statusBadge = summaryDuplicatesABadgePill ? null : summary !== null ? /* @__PURE__ */
|
|
8502
|
+
const statusBadge = summaryDuplicatesABadgePill ? null : summary !== null ? /* @__PURE__ */ jsx38(PanelSummaryBadge, { summary }) : streamStatus === null || streamLabel === null ? null : /* @__PURE__ */ jsx38(Tooltip, { text: `Telemetry stream: ${streamLabel}`, focusable: true, children: /* @__PURE__ */ jsx38(Badge, { tone: severityFromStreamStatus(streamStatus), size: "sm", children: streamLabel }) });
|
|
8201
8503
|
const statusLabel = summary?.label ?? streamLabel;
|
|
8202
8504
|
const statusAnnouncement = statusLabel === null || statusLabel === "" ? "" : typeof panelTitle === "string" ? `${panelTitle}: ${statusLabel}` : `Status: ${statusLabel}`;
|
|
8203
|
-
const aside = panelAside === void 0 && statusBadge === null && badgePills === null && !hasActionAugments ? void 0 : /* @__PURE__ */
|
|
8505
|
+
const aside = panelAside === void 0 && statusBadge === null && badgePills === null && !hasActionAugments ? void 0 : /* @__PURE__ */ jsxs18(Fragment13, { children: [
|
|
8204
8506
|
panelAside,
|
|
8205
|
-
hasActionAugments && /* @__PURE__ */
|
|
8507
|
+
hasActionAugments && /* @__PURE__ */ jsx38(AugmentSlot, { segment: "actions", props: NO_SEGMENT_PROPS }),
|
|
8206
8508
|
badgePills,
|
|
8207
8509
|
statusBadge
|
|
8208
8510
|
] });
|
|
@@ -8211,11 +8513,11 @@ function PanelRootImpl({
|
|
|
8211
8513
|
label: streamLabel
|
|
8212
8514
|
});
|
|
8213
8515
|
const tinyAnnouncement = tinySummary?.severity !== "nogo" ? void 0 : typeof panelTitle === "string" ? `${panelTitle}: ${tinySummary.label}` : `Status: ${tinySummary.label}`;
|
|
8214
|
-
const tinyAside = panelAside === void 0 && tinySummary === null && !hasActionAugments ? badges.length === 0 ? void 0 : /* @__PURE__ */
|
|
8516
|
+
const tinyAside = panelAside === void 0 && tinySummary === null && !hasActionAugments ? badges.length === 0 ? void 0 : /* @__PURE__ */ jsx38(PanelBadgeReports, { badges }) : /* @__PURE__ */ jsxs18(Fragment13, { children: [
|
|
8215
8517
|
panelAside,
|
|
8216
|
-
hasActionAugments && /* @__PURE__ */
|
|
8217
|
-
/* @__PURE__ */
|
|
8218
|
-
tinySummary !== null && /* @__PURE__ */
|
|
8518
|
+
hasActionAugments && /* @__PURE__ */ jsx38(AugmentSlot, { segment: "actions", props: NO_SEGMENT_PROPS }),
|
|
8519
|
+
/* @__PURE__ */ jsx38(PanelBadgeReports, { badges }),
|
|
8520
|
+
tinySummary !== null && /* @__PURE__ */ jsx38(
|
|
8219
8521
|
PanelHoverStatus,
|
|
8220
8522
|
{
|
|
8221
8523
|
summary: tinySummary,
|
|
@@ -8252,34 +8554,34 @@ function PanelRootImpl({
|
|
|
8252
8554
|
continue;
|
|
8253
8555
|
}
|
|
8254
8556
|
sectionRuns.push(
|
|
8255
|
-
/* @__PURE__ */
|
|
8557
|
+
/* @__PURE__ */ jsxs18(
|
|
8256
8558
|
PanelSections__Grid,
|
|
8257
8559
|
{
|
|
8258
8560
|
$min: sectionMinWidth,
|
|
8259
8561
|
$columns: flowingIn(run.nodes),
|
|
8260
8562
|
children: [
|
|
8261
8563
|
run.nodes,
|
|
8262
|
-
index === augmentRun && /* @__PURE__ */
|
|
8564
|
+
index === augmentRun && /* @__PURE__ */ jsx38(AugmentSlot, { segment: "sections", props: NO_SEGMENT_PROPS })
|
|
8263
8565
|
]
|
|
8264
8566
|
},
|
|
8265
8567
|
`sections-${index}`
|
|
8266
8568
|
)
|
|
8267
8569
|
);
|
|
8268
8570
|
}
|
|
8269
|
-
const content = isInactive ? /* @__PURE__ */
|
|
8571
|
+
const content = isInactive ? /* @__PURE__ */ jsx38(InactiveNotice, { reason: inactive }) : !hasSections ? children : /* @__PURE__ */ jsxs18(Fragment13, { children: [
|
|
8270
8572
|
children,
|
|
8271
8573
|
sectionRuns
|
|
8272
8574
|
] });
|
|
8273
|
-
const body = /* @__PURE__ */
|
|
8575
|
+
const body = /* @__PURE__ */ jsxs18(
|
|
8274
8576
|
PanelBody,
|
|
8275
8577
|
{
|
|
8276
8578
|
fitToSize,
|
|
8277
8579
|
loneFrame,
|
|
8278
8580
|
hoverTitle,
|
|
8279
8581
|
children: [
|
|
8280
|
-
/* @__PURE__ */
|
|
8281
|
-
/* @__PURE__ */
|
|
8282
|
-
!hoverTitle && /* @__PURE__ */
|
|
8582
|
+
/* @__PURE__ */ jsxs18(PanelStickyTop, { "data-panel-sticky-top": "", children: [
|
|
8583
|
+
/* @__PURE__ */ jsx38(PanelDelayRail, { tiny: hoverTitle }),
|
|
8584
|
+
!hoverTitle && /* @__PURE__ */ jsx38(
|
|
8283
8585
|
PanelStickyHeader,
|
|
8284
8586
|
{
|
|
8285
8587
|
title: panelTitle,
|
|
@@ -8289,12 +8591,12 @@ function PanelRootImpl({
|
|
|
8289
8591
|
}
|
|
8290
8592
|
)
|
|
8291
8593
|
] }),
|
|
8292
|
-
fitToSize ? /* @__PURE__ */
|
|
8293
|
-
!hasSections && !isInactive && /* @__PURE__ */
|
|
8594
|
+
fitToSize ? /* @__PURE__ */ jsx38(PanelFitBody, { hoverTitle, children: content }) : content,
|
|
8595
|
+
!hasSections && !isInactive && /* @__PURE__ */ jsx38(AugmentSlot, { segment: "sections", props: NO_SEGMENT_PROPS })
|
|
8294
8596
|
]
|
|
8295
8597
|
}
|
|
8296
8598
|
);
|
|
8297
|
-
return /* @__PURE__ */
|
|
8599
|
+
return /* @__PURE__ */ jsx38(PanelProviders, { children: /* @__PURE__ */ jsxs18(
|
|
8298
8600
|
PanelContainer,
|
|
8299
8601
|
{
|
|
8300
8602
|
$railTravels: true,
|
|
@@ -8307,17 +8609,17 @@ function PanelRootImpl({
|
|
|
8307
8609
|
} : {},
|
|
8308
8610
|
...rest,
|
|
8309
8611
|
children: [
|
|
8310
|
-
/* @__PURE__ */
|
|
8612
|
+
/* @__PURE__ */ jsx38(PanelGlow, { railBandAbove: true, children: panelSidebar === void 0 || isInactive ? body : /* @__PURE__ */ jsxs18(PanelSplit, { side: sidebarSide, size: sidebarSize, railBand: true, children: [
|
|
8311
8613
|
body,
|
|
8312
|
-
/* @__PURE__ */
|
|
8614
|
+
/* @__PURE__ */ jsx38(PanelSidebar, { children: panelSidebar })
|
|
8313
8615
|
] }) }),
|
|
8314
|
-
!isInactive && panelTrend !== void 0 && /* @__PURE__ */
|
|
8315
|
-
!isInactive && panelFooter !== void 0 && /* @__PURE__ */
|
|
8316
|
-
hoverTitle && /* @__PURE__ */
|
|
8317
|
-
/* @__PURE__ */
|
|
8318
|
-
tinyAside !== void 0 && /* @__PURE__ */
|
|
8616
|
+
!isInactive && panelTrend !== void 0 && /* @__PURE__ */ jsx38(PanelTrend, { render: panelTrend }),
|
|
8617
|
+
!isInactive && panelFooter !== void 0 && /* @__PURE__ */ jsx38(PanelFooter, { children: panelFooter }),
|
|
8618
|
+
hoverTitle && /* @__PURE__ */ jsxs18(PanelHoverTop, { "data-panel-hover-title": "", children: [
|
|
8619
|
+
/* @__PURE__ */ jsx38(PanelHoverTitlePill, { as: "h3", id: hoverTitleId, children: panelTitle }),
|
|
8620
|
+
tinyAside !== void 0 && /* @__PURE__ */ jsx38(PanelHoverAside, { children: tinyAside })
|
|
8319
8621
|
] }),
|
|
8320
|
-
/* @__PURE__ */
|
|
8622
|
+
/* @__PURE__ */ jsx38(LiveRegion, { visuallyHidden: true, children: hoverTitle && tinyAnnouncement !== void 0 ? "" : statusAnnouncement })
|
|
8321
8623
|
]
|
|
8322
8624
|
}
|
|
8323
8625
|
) });
|
|
@@ -8336,7 +8638,7 @@ function holdsOnlyAFrame(section) {
|
|
|
8336
8638
|
const [child] = only;
|
|
8337
8639
|
if (!isValidElement2(child)) return false;
|
|
8338
8640
|
if (child.type === FramedDisplay) return true;
|
|
8339
|
-
if (child.type !==
|
|
8641
|
+
if (child.type !== Fragment12 && typeof child.type !== "string") return false;
|
|
8340
8642
|
node = child.props.children;
|
|
8341
8643
|
}
|
|
8342
8644
|
}
|
|
@@ -8355,8 +8657,8 @@ var Panel = Object.assign(PanelRoot, {
|
|
|
8355
8657
|
});
|
|
8356
8658
|
|
|
8357
8659
|
// src/LevelBars.tsx
|
|
8358
|
-
import
|
|
8359
|
-
import { jsx as
|
|
8660
|
+
import styled25 from "styled-components";
|
|
8661
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
8360
8662
|
function LevelBars({
|
|
8361
8663
|
lit,
|
|
8362
8664
|
of,
|
|
@@ -8364,13 +8666,13 @@ function LevelBars({
|
|
|
8364
8666
|
label
|
|
8365
8667
|
}) {
|
|
8366
8668
|
const count = lit === null ? "unknown" : `${lit} of ${of}`;
|
|
8367
|
-
return /* @__PURE__ */
|
|
8669
|
+
return /* @__PURE__ */ jsx39(
|
|
8368
8670
|
LevelBars__Root,
|
|
8369
8671
|
{
|
|
8370
8672
|
role: "img",
|
|
8371
8673
|
"aria-label": label === void 0 ? count : `${label} ${count}`,
|
|
8372
8674
|
"data-level-bars": "",
|
|
8373
|
-
children: Array.from({ length: of }, (_, index) => /* @__PURE__ */
|
|
8675
|
+
children: Array.from({ length: of }, (_, index) => /* @__PURE__ */ jsx39(
|
|
8374
8676
|
LevelBars__Bar,
|
|
8375
8677
|
{
|
|
8376
8678
|
$fill: lit !== null && index < lit ? TONE_MARK[tone] : null,
|
|
@@ -8381,14 +8683,14 @@ function LevelBars({
|
|
|
8381
8683
|
}
|
|
8382
8684
|
);
|
|
8383
8685
|
}
|
|
8384
|
-
var LevelBars__Root =
|
|
8686
|
+
var LevelBars__Root = styled25.span`
|
|
8385
8687
|
display: inline-flex;
|
|
8386
8688
|
align-items: flex-end;
|
|
8387
8689
|
gap: var(--gap-signal-bars);
|
|
8388
8690
|
height: 0.8em;
|
|
8389
8691
|
flex: none;
|
|
8390
8692
|
`;
|
|
8391
|
-
var LevelBars__Bar =
|
|
8693
|
+
var LevelBars__Bar = styled25.span`
|
|
8392
8694
|
width: 0.22em;
|
|
8393
8695
|
height: ${({ $height }) => `${Math.round($height * 100)}%`};
|
|
8394
8696
|
background: ${({ $fill }) => $fill ?? "transparent"};
|
|
@@ -8397,7 +8699,7 @@ var LevelBars__Bar = styled24.span`
|
|
|
8397
8699
|
|
|
8398
8700
|
// src/Sparkline.tsx
|
|
8399
8701
|
import { useId as useId7, useMemo as useMemo5 } from "react";
|
|
8400
|
-
import { jsx as
|
|
8702
|
+
import { jsx as jsx40, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
8401
8703
|
function makeScale(domainMin, domainMax, rangeMin, rangeMax) {
|
|
8402
8704
|
const span = domainMax - domainMin;
|
|
8403
8705
|
if (span === 0) {
|
|
@@ -8443,7 +8745,7 @@ function Sparkline({
|
|
|
8443
8745
|
return [min, max];
|
|
8444
8746
|
}, [yDomain, finite]);
|
|
8445
8747
|
if (width <= 0 || height <= 0 || finite.length < 2) {
|
|
8446
|
-
return /* @__PURE__ */
|
|
8748
|
+
return /* @__PURE__ */ jsx40(
|
|
8447
8749
|
"svg",
|
|
8448
8750
|
{
|
|
8449
8751
|
width: Math.max(0, width),
|
|
@@ -8451,7 +8753,7 @@ function Sparkline({
|
|
|
8451
8753
|
role: "img",
|
|
8452
8754
|
"aria-label": ariaLabel,
|
|
8453
8755
|
style: { display: "block" },
|
|
8454
|
-
children: /* @__PURE__ */
|
|
8756
|
+
children: /* @__PURE__ */ jsx40("title", { children: ariaLabel })
|
|
8455
8757
|
}
|
|
8456
8758
|
);
|
|
8457
8759
|
}
|
|
@@ -8463,7 +8765,7 @@ function Sparkline({
|
|
|
8463
8765
|
const dFill = `${d} L ${width},${height} L 0,${height} Z`;
|
|
8464
8766
|
const showBaseline = showZeroBaseline && domain[0] <= 0 && domain[1] >= 0;
|
|
8465
8767
|
const zeroY = showBaseline ? scaleY(0) : null;
|
|
8466
|
-
return /* @__PURE__ */
|
|
8768
|
+
return /* @__PURE__ */ jsxs19(
|
|
8467
8769
|
"svg",
|
|
8468
8770
|
{
|
|
8469
8771
|
width,
|
|
@@ -8472,12 +8774,12 @@ function Sparkline({
|
|
|
8472
8774
|
"aria-label": ariaLabel,
|
|
8473
8775
|
style: { display: "block" },
|
|
8474
8776
|
children: [
|
|
8475
|
-
/* @__PURE__ */
|
|
8476
|
-
background && /* @__PURE__ */
|
|
8477
|
-
/* @__PURE__ */
|
|
8478
|
-
/* @__PURE__ */
|
|
8777
|
+
/* @__PURE__ */ jsx40("title", { children: ariaLabel }),
|
|
8778
|
+
background && /* @__PURE__ */ jsx40("defs", { children: /* @__PURE__ */ jsxs19("linearGradient", { id: fillId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
8779
|
+
/* @__PURE__ */ jsx40("stop", { offset: "0%", stopColor: color, stopOpacity: "0.25" }),
|
|
8780
|
+
/* @__PURE__ */ jsx40("stop", { offset: "100%", stopColor: color, stopOpacity: "0.02" })
|
|
8479
8781
|
] }) }),
|
|
8480
|
-
showBaseline && zeroY !== null && /* @__PURE__ */
|
|
8782
|
+
showBaseline && zeroY !== null && /* @__PURE__ */ jsx40(
|
|
8481
8783
|
"line",
|
|
8482
8784
|
{
|
|
8483
8785
|
x1: 0,
|
|
@@ -8488,8 +8790,8 @@ function Sparkline({
|
|
|
8488
8790
|
strokeWidth: 1
|
|
8489
8791
|
}
|
|
8490
8792
|
),
|
|
8491
|
-
background && /* @__PURE__ */
|
|
8492
|
-
/* @__PURE__ */
|
|
8793
|
+
background && /* @__PURE__ */ jsx40("path", { d: dFill, fill: `url(#${fillId})`, stroke: "none" }),
|
|
8794
|
+
/* @__PURE__ */ jsx40(
|
|
8493
8795
|
"path",
|
|
8494
8796
|
{
|
|
8495
8797
|
d,
|
|
@@ -8507,7 +8809,7 @@ function Sparkline({
|
|
|
8507
8809
|
|
|
8508
8810
|
// src/ToggleButton.tsx
|
|
8509
8811
|
import { forwardRef as forwardRef8 } from "react";
|
|
8510
|
-
import { jsx as
|
|
8812
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
8511
8813
|
var ToggleButton = forwardRef8(
|
|
8512
8814
|
function ToggleButton2({
|
|
8513
8815
|
pressed = false,
|
|
@@ -8517,7 +8819,7 @@ var ToggleButton = forwardRef8(
|
|
|
8517
8819
|
"aria-pressed": ariaPressed,
|
|
8518
8820
|
...rest
|
|
8519
8821
|
}, ref) {
|
|
8520
|
-
return /* @__PURE__ */
|
|
8822
|
+
return /* @__PURE__ */ jsx41(
|
|
8521
8823
|
Button,
|
|
8522
8824
|
{
|
|
8523
8825
|
ref,
|
|
@@ -8561,8 +8863,8 @@ function getWidgetShape(w, h) {
|
|
|
8561
8863
|
}
|
|
8562
8864
|
|
|
8563
8865
|
// src/TinyEssentials.tsx
|
|
8564
|
-
import { Fragment as
|
|
8565
|
-
import
|
|
8866
|
+
import { Fragment as Fragment14, useLayoutEffect as useLayoutEffect5, useRef as useRef11, useState as useState11 } from "react";
|
|
8867
|
+
import styled26, { css as css15 } from "styled-components";
|
|
8566
8868
|
|
|
8567
8869
|
// src/fillQuantity.ts
|
|
8568
8870
|
function fillFraction(pair) {
|
|
@@ -8572,7 +8874,7 @@ function fillFraction(pair) {
|
|
|
8572
8874
|
}
|
|
8573
8875
|
|
|
8574
8876
|
// src/TinyEssentials.tsx
|
|
8575
|
-
import { Fragment as
|
|
8877
|
+
import { Fragment as Fragment15, jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
8576
8878
|
function TinyEssentials({
|
|
8577
8879
|
title,
|
|
8578
8880
|
essentials,
|
|
@@ -8583,13 +8885,15 @@ function TinyEssentials({
|
|
|
8583
8885
|
const { rowsRef, drawn } = useRowsThatFit(rest);
|
|
8584
8886
|
const mayInterrupt = essentials.some((e) => e.urgent !== void 0);
|
|
8585
8887
|
const heroNamedByTitle = hero !== void 0 && rest.length === 0 && hero.label.toUpperCase() === title.toUpperCase();
|
|
8586
|
-
|
|
8888
|
+
const arcGauge = hero?.value != null && hero.gauge?.style === "arc" ? hero.gauge : void 0;
|
|
8889
|
+
const arcHero = arcGauge !== void 0;
|
|
8890
|
+
return /* @__PURE__ */ jsx42(
|
|
8587
8891
|
Panel,
|
|
8588
8892
|
{
|
|
8589
8893
|
panelTitle: title,
|
|
8590
8894
|
fitToSize: true,
|
|
8591
8895
|
hoverTitle: true,
|
|
8592
|
-
panelTrend: hero?.trend === void 0 ? void 0 : ({ w, h }) => /* @__PURE__ */
|
|
8896
|
+
panelTrend: hero?.trend === void 0 ? void 0 : ({ w, h }) => /* @__PURE__ */ jsx42(
|
|
8593
8897
|
Sparkline,
|
|
8594
8898
|
{
|
|
8595
8899
|
values: hero.trend ?? [],
|
|
@@ -8598,38 +8902,38 @@ function TinyEssentials({
|
|
|
8598
8902
|
"aria-label": `${hero.label} trend`
|
|
8599
8903
|
}
|
|
8600
8904
|
),
|
|
8601
|
-
sections: /* @__PURE__ */
|
|
8602
|
-
/* @__PURE__ */
|
|
8603
|
-
mayInterrupt && /* @__PURE__ */
|
|
8604
|
-
hero !== void 0 && /* @__PURE__ */
|
|
8605
|
-
heroNamedByTitle ? /* @__PURE__ */
|
|
8606
|
-
hero.gauge === void 0 ? /* @__PURE__ */
|
|
8607
|
-
/* @__PURE__ */
|
|
8608
|
-
/* @__PURE__ */
|
|
8905
|
+
sections: /* @__PURE__ */ jsxs20(Section, { full: true, children: [
|
|
8906
|
+
/* @__PURE__ */ jsx42(LiveRegion, { visuallyHidden: true, children: spokenWords(essentials.filter((e) => e.urgent !== true)) }),
|
|
8907
|
+
mayInterrupt && /* @__PURE__ */ jsx42(LiveRegion, { visuallyHidden: true, assertive: true, additionsOnly: true, children: urgentWords(essentials).map((said2) => /* @__PURE__ */ jsx42(Fragment14, { children: `${said2}. ` }, said2)) }),
|
|
8908
|
+
hero !== void 0 && /* @__PURE__ */ jsxs20(TinyEssentials__Hero, { "data-tiny-essential": "", children: [
|
|
8909
|
+
heroNamedByTitle || arcHero ? /* @__PURE__ */ jsx42(VisuallyHidden, { as: "dt", children: hero.label }) : /* @__PURE__ */ jsx42(TinyEssentials__Label, { children: hero.label }),
|
|
8910
|
+
hero.value != null && arcGauge !== void 0 ? /* @__PURE__ */ jsx42(ArcGauge, { essential: hero, gauge: arcGauge }) : hero.gauge === void 0 ? /* @__PURE__ */ jsx42(TinyEssentials__HeroFigure, { $tone: hero.tone ?? "neutral", children: /* @__PURE__ */ jsx42(EssentialFigure, { essential: hero }) }) : /* @__PURE__ */ jsxs20(TinyEssentials__GaugedFigure, { $tone: hero.tone ?? "neutral", children: [
|
|
8911
|
+
/* @__PURE__ */ jsx42(TinyEssentials__FigureLine, { children: /* @__PURE__ */ jsx42(EssentialFigure, { essential: hero }) }),
|
|
8912
|
+
/* @__PURE__ */ jsx42(CompactGauge, { essential: hero, gauge: hero.gauge })
|
|
8609
8913
|
] })
|
|
8610
8914
|
] }),
|
|
8611
|
-
rest.length > 0 && /* @__PURE__ */
|
|
8612
|
-
rest.slice(0, drawn).map((essential) => /* @__PURE__ */
|
|
8915
|
+
rest.length > 0 && /* @__PURE__ */ jsxs20(TinyEssentials__Rows, { ref: rowsRef, $equal: equalRows, children: [
|
|
8916
|
+
rest.slice(0, drawn).map((essential) => /* @__PURE__ */ jsxs20(
|
|
8613
8917
|
TinyEssentials__Row,
|
|
8614
8918
|
{
|
|
8615
8919
|
"data-tiny-essential": "",
|
|
8616
8920
|
$equal: equalRows,
|
|
8617
8921
|
children: [
|
|
8618
|
-
/* @__PURE__ */
|
|
8619
|
-
/* @__PURE__ */
|
|
8922
|
+
/* @__PURE__ */ jsx42(TinyEssentials__Label, { children: essential.label }),
|
|
8923
|
+
/* @__PURE__ */ jsx42(
|
|
8620
8924
|
TinyEssentials__RowFigure,
|
|
8621
8925
|
{
|
|
8622
8926
|
$tone: essential.tone ?? "neutral",
|
|
8623
|
-
children: /* @__PURE__ */
|
|
8927
|
+
children: /* @__PURE__ */ jsx42(EssentialFigure, { essential })
|
|
8624
8928
|
}
|
|
8625
8929
|
)
|
|
8626
8930
|
]
|
|
8627
8931
|
},
|
|
8628
8932
|
essential.label
|
|
8629
8933
|
)),
|
|
8630
|
-
rest.slice(drawn).map((essential) => /* @__PURE__ */
|
|
8631
|
-
/* @__PURE__ */
|
|
8632
|
-
/* @__PURE__ */
|
|
8934
|
+
rest.slice(drawn).map((essential) => /* @__PURE__ */ jsxs20(VisuallyHidden, { as: "div", children: [
|
|
8935
|
+
/* @__PURE__ */ jsx42("dt", { children: essential.label }),
|
|
8936
|
+
/* @__PURE__ */ jsx42("dd", { children: essential.control === void 0 ? /* @__PURE__ */ jsx42(EssentialFigure, { essential }) : essential.control.label })
|
|
8633
8937
|
] }, essential.label))
|
|
8634
8938
|
] })
|
|
8635
8939
|
] })
|
|
@@ -8687,7 +8991,7 @@ function extentOf(content) {
|
|
|
8687
8991
|
function EssentialFigure({ essential }) {
|
|
8688
8992
|
const { control } = essential;
|
|
8689
8993
|
if (control !== void 0) {
|
|
8690
|
-
return /* @__PURE__ */
|
|
8994
|
+
return /* @__PURE__ */ jsx42(Tooltip, { text: control.hint ?? control.title, children: /* @__PURE__ */ jsx42(
|
|
8691
8995
|
ToggleButton,
|
|
8692
8996
|
{
|
|
8693
8997
|
size: "sm",
|
|
@@ -8699,8 +9003,8 @@ function EssentialFigure({ essential }) {
|
|
|
8699
9003
|
}
|
|
8700
9004
|
) });
|
|
8701
9005
|
}
|
|
8702
|
-
return /* @__PURE__ */
|
|
8703
|
-
essential.level !== void 0 && /* @__PURE__ */
|
|
9006
|
+
return /* @__PURE__ */ jsxs20(Fragment15, { children: [
|
|
9007
|
+
essential.level !== void 0 && /* @__PURE__ */ jsx42(
|
|
8704
9008
|
LevelBars,
|
|
8705
9009
|
{
|
|
8706
9010
|
lit: essential.level.lit,
|
|
@@ -8709,7 +9013,7 @@ function EssentialFigure({ essential }) {
|
|
|
8709
9013
|
label: essential.label
|
|
8710
9014
|
}
|
|
8711
9015
|
),
|
|
8712
|
-
essential.word !== void 0 ? essential.word : /* @__PURE__ */
|
|
9016
|
+
essential.word !== void 0 ? essential.word : /* @__PURE__ */ jsx42(MarkedFigure, { essential })
|
|
8713
9017
|
] });
|
|
8714
9018
|
}
|
|
8715
9019
|
function asZero(value3, shown) {
|
|
@@ -8725,9 +9029,9 @@ function MarkedFigure({ essential }) {
|
|
|
8725
9029
|
const roundsToZero = finite && decimals !== void 0 && Math.abs(shown.valueOf()) < 0.5 * 10 ** -decimals;
|
|
8726
9030
|
const plus = finite && (roundsToZero || !shown.isNegative()) ? "+" : "";
|
|
8727
9031
|
const drawn = roundsToZero ? asZero(value3, shown) : value3;
|
|
8728
|
-
const figure = /* @__PURE__ */
|
|
9032
|
+
const figure = /* @__PURE__ */ jsxs20(Fragment15, { children: [
|
|
8729
9033
|
plus,
|
|
8730
|
-
/* @__PURE__ */
|
|
9034
|
+
/* @__PURE__ */ jsx42(
|
|
8731
9035
|
Unit,
|
|
8732
9036
|
{
|
|
8733
9037
|
value: drawn,
|
|
@@ -8738,7 +9042,7 @@ function MarkedFigure({ essential }) {
|
|
|
8738
9042
|
)
|
|
8739
9043
|
] });
|
|
8740
9044
|
if (mark === void 0 || held || mark.kind === void 0) return figure;
|
|
8741
|
-
return /* @__PURE__ */
|
|
9045
|
+
return /* @__PURE__ */ jsx42(
|
|
8742
9046
|
HeldFigure,
|
|
8743
9047
|
{
|
|
8744
9048
|
kind: mark.kind,
|
|
@@ -8758,7 +9062,7 @@ function CompactGauge({
|
|
|
8758
9062
|
capacity: gauge.max.minus(gauge.min)
|
|
8759
9063
|
}) ?? 0;
|
|
8760
9064
|
const share = shown == null ? null : at(shown);
|
|
8761
|
-
return /* @__PURE__ */
|
|
9065
|
+
return /* @__PURE__ */ jsxs20(
|
|
8762
9066
|
TinyEssentials__Gauge,
|
|
8763
9067
|
{
|
|
8764
9068
|
"aria-hidden": "true",
|
|
@@ -8767,7 +9071,7 @@ function CompactGauge({
|
|
|
8767
9071
|
viewBox: "0 0 100 1",
|
|
8768
9072
|
preserveAspectRatio: "none",
|
|
8769
9073
|
children: [
|
|
8770
|
-
(gauge.bands ?? []).map((band) => /* @__PURE__ */
|
|
9074
|
+
(gauge.bands ?? []).map((band) => /* @__PURE__ */ jsx42(
|
|
8771
9075
|
"rect",
|
|
8772
9076
|
{
|
|
8773
9077
|
x: at(band.from) * 100,
|
|
@@ -8779,7 +9083,7 @@ function CompactGauge({
|
|
|
8779
9083
|
},
|
|
8780
9084
|
`${at(band.from)}-${at(band.to)}`
|
|
8781
9085
|
)),
|
|
8782
|
-
share !== null && /* @__PURE__ */
|
|
9086
|
+
share !== null && /* @__PURE__ */ jsx42(
|
|
8783
9087
|
"rect",
|
|
8784
9088
|
{
|
|
8785
9089
|
"data-tiny-gauge-fill": "",
|
|
@@ -8795,22 +9099,69 @@ function CompactGauge({
|
|
|
8795
9099
|
}
|
|
8796
9100
|
);
|
|
8797
9101
|
}
|
|
9102
|
+
function ArcGauge({
|
|
9103
|
+
essential,
|
|
9104
|
+
gauge
|
|
9105
|
+
}) {
|
|
9106
|
+
const { ref, room } = useFitRoom();
|
|
9107
|
+
const width = Math.min(room.w, ARC_MAX_W);
|
|
9108
|
+
const height = Math.min(
|
|
9109
|
+
room.h - ARC_EDGE_CLEARANCE,
|
|
9110
|
+
Math.round(width / 2) + ARC_FIGURE_H
|
|
9111
|
+
);
|
|
9112
|
+
const shown = essential.value;
|
|
9113
|
+
if (shown == null) return null;
|
|
9114
|
+
const spoken = resolveCurrency(shown).shown;
|
|
9115
|
+
return /* @__PURE__ */ jsx42(TinyEssentials__ArcBox, { ref, children: /* @__PURE__ */ jsx42(
|
|
9116
|
+
Dial,
|
|
9117
|
+
{
|
|
9118
|
+
startAngle: -90,
|
|
9119
|
+
sweep: 180,
|
|
9120
|
+
value: shown,
|
|
9121
|
+
min: gauge.min,
|
|
9122
|
+
max: gauge.max,
|
|
9123
|
+
zones: (gauge.bands ?? []).map((band) => ({
|
|
9124
|
+
from: band.from,
|
|
9125
|
+
to: band.to,
|
|
9126
|
+
color: TONE_MARK[band.tone]
|
|
9127
|
+
})),
|
|
9128
|
+
width,
|
|
9129
|
+
height,
|
|
9130
|
+
readout: "large",
|
|
9131
|
+
"aria-label": spoken == null ? essential.label : `${essential.label} ${writeQuantity(spoken)}`
|
|
9132
|
+
}
|
|
9133
|
+
) });
|
|
9134
|
+
}
|
|
9135
|
+
function useFitRoom() {
|
|
9136
|
+
const ref = useRef11(null);
|
|
9137
|
+
const [room, setRoom] = useState11({ w: 200, h: 110 });
|
|
9138
|
+
useLayoutEffect5(() => {
|
|
9139
|
+
const fit = ref.current?.closest("[data-panel-fit-body]");
|
|
9140
|
+
const body = fit?.closest("[data-panel-body]");
|
|
9141
|
+
if (!fit || !body || typeof ResizeObserver === "undefined") return;
|
|
9142
|
+
const measure = () => {
|
|
9143
|
+
const box = getComputedStyle(body);
|
|
9144
|
+
const taken = getComputedStyle(fit);
|
|
9145
|
+
const w = body.clientWidth - Number.parseFloat(box.paddingLeft) - Number.parseFloat(box.paddingRight);
|
|
9146
|
+
const h = body.clientHeight - Number.parseFloat(box.paddingTop) - Number.parseFloat(box.paddingBottom) - Number.parseFloat(taken.marginTop) - Number.parseFloat(taken.marginBottom);
|
|
9147
|
+
if (w > 0 && h > 0) setRoom({ w: Math.floor(w), h: Math.floor(h) });
|
|
9148
|
+
};
|
|
9149
|
+
measure();
|
|
9150
|
+
const observer = new ResizeObserver(measure);
|
|
9151
|
+
observer.observe(body);
|
|
9152
|
+
return () => observer.disconnect();
|
|
9153
|
+
}, []);
|
|
9154
|
+
return { ref, room };
|
|
9155
|
+
}
|
|
9156
|
+
var ARC_MAX_W = 280;
|
|
9157
|
+
var ARC_EDGE_CLEARANCE = 16;
|
|
9158
|
+
var ARC_FIGURE_H = 40;
|
|
8798
9159
|
function spokenWords(essentials) {
|
|
8799
9160
|
return essentials.filter((e) => e.word !== void 0).map((e) => `${e.label} ${e.word}`).join(", ");
|
|
8800
9161
|
}
|
|
8801
9162
|
function urgentWords(essentials) {
|
|
8802
9163
|
return essentials.filter((e) => e.urgent === true && e.word !== void 0).map((e) => `${e.label} ${e.word}`);
|
|
8803
9164
|
}
|
|
8804
|
-
function WidgetBody({
|
|
8805
|
-
def,
|
|
8806
|
-
...props
|
|
8807
|
-
}) {
|
|
8808
|
-
if (def.tiny !== void 0 && showsTiny(def, props.w, props.h)) {
|
|
8809
|
-
return /* @__PURE__ */ jsx41(TinyBody, { tiny: def.tiny, props });
|
|
8810
|
-
}
|
|
8811
|
-
const Widget = def.component;
|
|
8812
|
-
return /* @__PURE__ */ jsx41(Widget, { ...props });
|
|
8813
|
-
}
|
|
8814
9165
|
function showsTiny(def, w, h) {
|
|
8815
9166
|
if (def.tiny === void 0 || w === void 0 || h === void 0) {
|
|
8816
9167
|
return false;
|
|
@@ -8821,18 +9172,7 @@ function showsTiny(def, w, h) {
|
|
|
8821
9172
|
function gridFloor(def) {
|
|
8822
9173
|
return def.tiny !== void 0 ? TINY_SIZE : def.minSize;
|
|
8823
9174
|
}
|
|
8824
|
-
|
|
8825
|
-
const essentials = tiny.useEssentials(props);
|
|
8826
|
-
return /* @__PURE__ */ jsx41(
|
|
8827
|
-
TinyEssentials,
|
|
8828
|
-
{
|
|
8829
|
-
title: tiny.title,
|
|
8830
|
-
essentials,
|
|
8831
|
-
equalRows: tiny.equalRows
|
|
8832
|
-
}
|
|
8833
|
-
);
|
|
8834
|
-
}
|
|
8835
|
-
var TinyEssentials__Hero = styled25.dl`
|
|
9175
|
+
var TinyEssentials__Hero = styled26.dl`
|
|
8836
9176
|
display: flex;
|
|
8837
9177
|
flex-direction: column-reverse;
|
|
8838
9178
|
align-items: center;
|
|
@@ -8840,7 +9180,7 @@ var TinyEssentials__Hero = styled25.dl`
|
|
|
8840
9180
|
margin: 0;
|
|
8841
9181
|
min-width: 0;
|
|
8842
9182
|
`;
|
|
8843
|
-
var TinyEssentials__HeroFigure =
|
|
9183
|
+
var TinyEssentials__HeroFigure = styled26.dd`
|
|
8844
9184
|
display: inline-flex;
|
|
8845
9185
|
align-items: baseline;
|
|
8846
9186
|
gap: var(--gap-figure-parts);
|
|
@@ -8857,31 +9197,37 @@ var TinyEssentials__HeroFigure = styled25.dd`
|
|
|
8857
9197
|
white-space: nowrap;
|
|
8858
9198
|
color: ${({ $tone }) => TONE_TEXT[$tone]};
|
|
8859
9199
|
`;
|
|
8860
|
-
var TinyEssentials__GaugedFigure =
|
|
9200
|
+
var TinyEssentials__GaugedFigure = styled26(TinyEssentials__HeroFigure)`
|
|
8861
9201
|
flex-direction: column;
|
|
8862
9202
|
align-items: stretch;
|
|
8863
9203
|
gap: var(--gap-caption);
|
|
8864
9204
|
line-height: var(--line-height-flush);
|
|
8865
9205
|
`;
|
|
8866
|
-
var TinyEssentials__FigureLine =
|
|
9206
|
+
var TinyEssentials__FigureLine = styled26.span`
|
|
8867
9207
|
display: inline-flex;
|
|
8868
9208
|
align-items: baseline;
|
|
8869
9209
|
justify-content: center;
|
|
8870
9210
|
gap: var(--gap-figure-parts);
|
|
8871
9211
|
`;
|
|
8872
|
-
var
|
|
9212
|
+
var TinyEssentials__ArcBox = styled26.dd`
|
|
9213
|
+
display: flex;
|
|
9214
|
+
align-items: center;
|
|
9215
|
+
justify-content: center;
|
|
9216
|
+
margin: 0;
|
|
9217
|
+
`;
|
|
9218
|
+
var TinyEssentials__Gauge = styled26.svg`
|
|
8873
9219
|
display: block;
|
|
8874
9220
|
width: 100%;
|
|
8875
9221
|
height: var(--size-tiny-gauge);
|
|
8876
9222
|
`;
|
|
8877
|
-
var TinyEssentials__Label =
|
|
9223
|
+
var TinyEssentials__Label = styled26.dt`
|
|
8878
9224
|
font-size: var(--font-size-caption);
|
|
8879
9225
|
letter-spacing: 0.1em;
|
|
8880
9226
|
text-transform: uppercase;
|
|
8881
9227
|
color: var(--color-text-muted);
|
|
8882
9228
|
white-space: nowrap;
|
|
8883
9229
|
`;
|
|
8884
|
-
var TinyEssentials__Rows =
|
|
9230
|
+
var TinyEssentials__Rows = styled26.dl`
|
|
8885
9231
|
${({ $equal }) => $equal ? css15`
|
|
8886
9232
|
display: grid;
|
|
8887
9233
|
grid-template-columns: auto auto;
|
|
@@ -8900,7 +9246,7 @@ var TinyEssentials__Rows = styled25.dl`
|
|
|
8900
9246
|
margin: 0;
|
|
8901
9247
|
max-width: 100%;
|
|
8902
9248
|
`;
|
|
8903
|
-
var TinyEssentials__Row =
|
|
9249
|
+
var TinyEssentials__Row = styled26.div`
|
|
8904
9250
|
${({ $equal }) => $equal ? css15`
|
|
8905
9251
|
display: grid;
|
|
8906
9252
|
grid-template-columns: subgrid;
|
|
@@ -8916,7 +9262,7 @@ var TinyEssentials__Row = styled25.div`
|
|
|
8916
9262
|
`}
|
|
8917
9263
|
max-width: 100%;
|
|
8918
9264
|
`;
|
|
8919
|
-
var TinyEssentials__RowFigure =
|
|
9265
|
+
var TinyEssentials__RowFigure = styled26.dd`
|
|
8920
9266
|
display: inline-flex;
|
|
8921
9267
|
justify-content: flex-end;
|
|
8922
9268
|
align-items: baseline;
|
|
@@ -9126,6 +9472,7 @@ export {
|
|
|
9126
9472
|
useContributions,
|
|
9127
9473
|
ContributionsProvider,
|
|
9128
9474
|
useKeyboardScrollable,
|
|
9475
|
+
Dial,
|
|
9129
9476
|
FilterChip,
|
|
9130
9477
|
SearchBox,
|
|
9131
9478
|
useRowFilter,
|
|
@@ -9149,7 +9496,6 @@ export {
|
|
|
9149
9496
|
getWidgetShape,
|
|
9150
9497
|
TINY_SIZE,
|
|
9151
9498
|
TinyEssentials,
|
|
9152
|
-
WidgetBody,
|
|
9153
9499
|
showsTiny,
|
|
9154
9500
|
gridFloor,
|
|
9155
9501
|
useWidgetBadges
|
|
@@ -9216,4 +9562,4 @@ lucide-react/dist/esm/lucide-react.mjs:
|
|
|
9216
9562
|
* See the LICENSE file in the root directory of this source tree.
|
|
9217
9563
|
*)
|
|
9218
9564
|
*/
|
|
9219
|
-
//# sourceMappingURL=chunk-
|
|
9565
|
+
//# sourceMappingURL=chunk-Z2JTH2MG.js.map
|