@flytedan/flytebot-design-system 0.87.0 → 0.87.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/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +45 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +12 -4
package/dist/index.d.cts
CHANGED
|
@@ -1489,7 +1489,7 @@ interface FilterFieldBase {
|
|
|
1489
1489
|
icon?: string;
|
|
1490
1490
|
/** DS-55: gives the field's chip a small help button beside it. `summary` is one line saying what
|
|
1491
1491
|
* the help explains; it shows in a Tooltip on hover and focus and is the button's description.
|
|
1492
|
-
* Pressing the button calls FilterBar's `onFieldHelp(key)`; FilterBar draws no help content. */
|
|
1492
|
+
* Pressing the button calls FilterBar's `onFieldHelp(key, button)`; FilterBar draws no help content. */
|
|
1493
1493
|
help?: FilterFieldHelp;
|
|
1494
1494
|
}
|
|
1495
1495
|
interface FilterFieldHelp {
|
|
@@ -1628,8 +1628,10 @@ interface FilterBarProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "on
|
|
|
1628
1628
|
/** Every filter a consumer can add. Order here is the order in the "add filter" list. */
|
|
1629
1629
|
fields: FilterField[];
|
|
1630
1630
|
/** DS-55: fires with the field's key when the help button on a selected chip whose field has `help`
|
|
1631
|
-
* is pressed
|
|
1632
|
-
|
|
1631
|
+
* is pressed, with the pressed button element as the second argument so the app can anchor its help to it
|
|
1632
|
+
* and return focus to it (Safari and Firefox on macOS do not focus a clicked button, so the app cannot
|
|
1633
|
+
* read it from document.activeElement). The app opens its own help for that filter; the press does nothing else. */
|
|
1634
|
+
onFieldHelp?: (key: string, button: HTMLButtonElement) => void;
|
|
1633
1635
|
/** The applied filters, and the single source of truth for them: FilterBar keeps no
|
|
1634
1636
|
* copy. Straight off useServerTable — a value of undefined/""/false reads as "not set",
|
|
1635
1637
|
* same convention that hook already uses for activeFilterCount. multiSelect/range/
|
package/dist/index.d.ts
CHANGED
|
@@ -1489,7 +1489,7 @@ interface FilterFieldBase {
|
|
|
1489
1489
|
icon?: string;
|
|
1490
1490
|
/** DS-55: gives the field's chip a small help button beside it. `summary` is one line saying what
|
|
1491
1491
|
* the help explains; it shows in a Tooltip on hover and focus and is the button's description.
|
|
1492
|
-
* Pressing the button calls FilterBar's `onFieldHelp(key)`; FilterBar draws no help content. */
|
|
1492
|
+
* Pressing the button calls FilterBar's `onFieldHelp(key, button)`; FilterBar draws no help content. */
|
|
1493
1493
|
help?: FilterFieldHelp;
|
|
1494
1494
|
}
|
|
1495
1495
|
interface FilterFieldHelp {
|
|
@@ -1628,8 +1628,10 @@ interface FilterBarProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "on
|
|
|
1628
1628
|
/** Every filter a consumer can add. Order here is the order in the "add filter" list. */
|
|
1629
1629
|
fields: FilterField[];
|
|
1630
1630
|
/** DS-55: fires with the field's key when the help button on a selected chip whose field has `help`
|
|
1631
|
-
* is pressed
|
|
1632
|
-
|
|
1631
|
+
* is pressed, with the pressed button element as the second argument so the app can anchor its help to it
|
|
1632
|
+
* and return focus to it (Safari and Firefox on macOS do not focus a clicked button, so the app cannot
|
|
1633
|
+
* read it from document.activeElement). The app opens its own help for that filter; the press does nothing else. */
|
|
1634
|
+
onFieldHelp?: (key: string, button: HTMLButtonElement) => void;
|
|
1633
1635
|
/** The applied filters, and the single source of truth for them: FilterBar keeps no
|
|
1634
1636
|
* copy. Straight off useServerTable — a value of undefined/""/false reads as "not set",
|
|
1635
1637
|
* same convention that hook already uses for activeFilterCount. multiSelect/range/
|
package/dist/index.js
CHANGED
|
@@ -3170,7 +3170,7 @@ function TrendChart({
|
|
|
3170
3170
|
|
|
3171
3171
|
// src/components/data/DonutChart.tsx
|
|
3172
3172
|
import * as React33 from "react";
|
|
3173
|
-
import { jsx as jsx45, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3173
|
+
import { Fragment as Fragment9, jsx as jsx45, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3174
3174
|
var QUIET_FILL = "var(--n-300)";
|
|
3175
3175
|
function segmentColor(index, seg) {
|
|
3176
3176
|
return seg.color || (seg.variant === "quiet" ? QUIET_FILL : chartColor(index));
|
|
@@ -3288,7 +3288,15 @@ function DonutChart({
|
|
|
3288
3288
|
const pct = total ? Math.round(Number(s.value) / total * 100) : 0;
|
|
3289
3289
|
return {
|
|
3290
3290
|
key: s.id,
|
|
3291
|
-
label:
|
|
3291
|
+
label: /* @__PURE__ */ jsxs35(Fragment9, { children: [
|
|
3292
|
+
s.label,
|
|
3293
|
+
" ",
|
|
3294
|
+
/* @__PURE__ */ jsxs35("span", { className: "fd-donut-legend-value", children: [
|
|
3295
|
+
formatPercent(pct),
|
|
3296
|
+
" \xB7 ",
|
|
3297
|
+
valueFormat(s.value)
|
|
3298
|
+
] })
|
|
3299
|
+
] }),
|
|
3292
3300
|
color: segmentColor(i, s),
|
|
3293
3301
|
// The row's accessible name (ChartLegend bubble={false}): it must contain the row's visible
|
|
3294
3302
|
// text, label then percent, so a person who speaks what they see reaches the row.
|
|
@@ -3571,7 +3579,7 @@ function CsiHero({ band = "weak", crp, label, className = "" }) {
|
|
|
3571
3579
|
}
|
|
3572
3580
|
|
|
3573
3581
|
// src/components/data/DataTable.tsx
|
|
3574
|
-
import { Fragment as
|
|
3582
|
+
import { Fragment as Fragment10, jsx as jsx50, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
3575
3583
|
var STACK_MAX_WIDTH = 640;
|
|
3576
3584
|
function RowActionButton({ action, size }) {
|
|
3577
3585
|
return /* @__PURE__ */ jsx50(
|
|
@@ -3704,7 +3712,7 @@ function StackedRows({ columns, rows, rowKey, loading, stale, skeletonRows, sort
|
|
|
3704
3712
|
const sortable = onSort ? columns.filter((c) => c.sortable) : [];
|
|
3705
3713
|
const primary = columns.filter((c) => c.phone === "primary");
|
|
3706
3714
|
const secondary = columns.filter((c) => c.phone === "secondary");
|
|
3707
|
-
return /* @__PURE__ */ jsxs40(
|
|
3715
|
+
return /* @__PURE__ */ jsxs40(Fragment10, { children: [
|
|
3708
3716
|
onSort && sortable.length ? /* @__PURE__ */ jsx50("div", { className: "fd-dt-sort", role: "group", "aria-label": "Sort by", children: sortable.map((c) => {
|
|
3709
3717
|
const active = sort?.key === c.key;
|
|
3710
3718
|
return /* @__PURE__ */ jsx50(
|
|
@@ -5226,7 +5234,7 @@ function FieldHelpButton({ field, onFieldHelp }) {
|
|
|
5226
5234
|
label: "Help: " + field.label,
|
|
5227
5235
|
title: void 0,
|
|
5228
5236
|
className: "fd-filterbar-help",
|
|
5229
|
-
onClick: () => onFieldHelp?.(field.key)
|
|
5237
|
+
onClick: (e) => onFieldHelp?.(field.key, e.currentTarget)
|
|
5230
5238
|
}
|
|
5231
5239
|
) });
|
|
5232
5240
|
}
|
|
@@ -5495,7 +5503,7 @@ function StatGrid({ columns, className = "", children, ...rest }) {
|
|
|
5495
5503
|
}
|
|
5496
5504
|
|
|
5497
5505
|
// src/components/data/StatTile.tsx
|
|
5498
|
-
import { Fragment as
|
|
5506
|
+
import { Fragment as Fragment11, jsx as jsx59, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5499
5507
|
function isZeroDelta(delta) {
|
|
5500
5508
|
if (!delta) return false;
|
|
5501
5509
|
const match = delta.match(/[\d.]+/);
|
|
@@ -5508,7 +5516,7 @@ function StatTile(props) {
|
|
|
5508
5516
|
const isGood = invert ? isDecrease : !isDecrease;
|
|
5509
5517
|
const deltaToneClass = isZero ? "fd-stat-delta-neutral" : isGood ? "fd-stat-delta-up" : "fd-stat-delta-down";
|
|
5510
5518
|
const infoButton = info && !loading ? /* @__PURE__ */ jsx59(InfoButton, { label, info }) : null;
|
|
5511
|
-
const content = /* @__PURE__ */ jsxs47(
|
|
5519
|
+
const content = /* @__PURE__ */ jsxs47(Fragment11, { children: [
|
|
5512
5520
|
loading ? /* @__PURE__ */ jsx59("span", { className: "fd-skel fd-skel-text", style: { display: "block", height: compact3 ? 20 : 28, width: "62%" } }) : /* @__PURE__ */ jsxs47("span", { className: "fd-stat-top", children: [
|
|
5513
5521
|
/* @__PURE__ */ jsx59("span", { className: "fd-stat-figure", children: value }),
|
|
5514
5522
|
delta ? /* @__PURE__ */ jsxs47("span", { className: "fd-stat-delta " + deltaToneClass, children: [
|
|
@@ -5543,7 +5551,7 @@ function StatTile(props) {
|
|
|
5543
5551
|
|
|
5544
5552
|
// src/components/data/CodeBlock.tsx
|
|
5545
5553
|
import * as React42 from "react";
|
|
5546
|
-
import { Fragment as
|
|
5554
|
+
import { Fragment as Fragment12, jsx as jsx60, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
5547
5555
|
var JS_KW = /^(?:const|let|var|function|return|if|else|for|while|do|new|class|extends|import|from|export|default|await|async|try|catch|finally|throw|typeof|instanceof|of|in|switch|case|break|continue|delete|void|yield|static|get|set|this|super|interface|type|enum|implements|public|private|protected|readonly|abstract|as|satisfies|declare|namespace)$/;
|
|
5548
5556
|
var RULES = {
|
|
5549
5557
|
js: [
|
|
@@ -5699,7 +5707,7 @@ function tokenize(src, lang) {
|
|
|
5699
5707
|
}
|
|
5700
5708
|
function Highlighted({ code, lang }) {
|
|
5701
5709
|
const toks = React42.useMemo(() => tokenize(code, lang), [code, lang]);
|
|
5702
|
-
return /* @__PURE__ */ jsx60(
|
|
5710
|
+
return /* @__PURE__ */ jsx60(Fragment12, { children: toks.map((tk, i) => tk.c ? /* @__PURE__ */ jsx60("span", { className: "tok-" + tk.c, children: tk.t }, i) : tk.t) });
|
|
5703
5711
|
}
|
|
5704
5712
|
function CodeBlock({
|
|
5705
5713
|
code = "",
|
|
@@ -6058,7 +6066,7 @@ function Meter({ segments = [], unallocated = 0, height = 8, label, legend = fal
|
|
|
6058
6066
|
}
|
|
6059
6067
|
|
|
6060
6068
|
// src/components/data/Pagination.tsx
|
|
6061
|
-
import { Fragment as
|
|
6069
|
+
import { Fragment as Fragment14, jsx as jsx63, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
6062
6070
|
var unitPluralRules = new Intl.PluralRules("en-US");
|
|
6063
6071
|
function pluralizeUnit(n, singular, irregularPlural) {
|
|
6064
6072
|
return unitPluralRules.select(n) === "one" ? singular : irregularPlural ?? `${singular}s`;
|
|
@@ -6090,10 +6098,10 @@ function Pagination({
|
|
|
6090
6098
|
else if (nums[nums.length - 1] !== "\u2026") nums.push("\u2026");
|
|
6091
6099
|
}
|
|
6092
6100
|
return /* @__PURE__ */ jsxs51("div", { className: ["fd-pag", className].filter(Boolean).join(" "), ...rest, children: [
|
|
6093
|
-
/* @__PURE__ */ jsx63("span", { className: "fd-pag-count", children: loading ? /* @__PURE__ */ jsx63("span", { className: "fd-skel fd-skel-text", style: { display: "inline-block", height: 12, width: 108 } }) : total === 0 ? /* @__PURE__ */ jsxs51(
|
|
6101
|
+
/* @__PURE__ */ jsx63("span", { className: "fd-pag-count", children: loading ? /* @__PURE__ */ jsx63("span", { className: "fd-skel fd-skel-text", style: { display: "inline-block", height: 12, width: 108 } }) : total === 0 ? /* @__PURE__ */ jsxs51(Fragment14, { children: [
|
|
6094
6102
|
"No ",
|
|
6095
6103
|
unitLabel
|
|
6096
|
-
] }) : /* @__PURE__ */ jsxs51(
|
|
6104
|
+
] }) : /* @__PURE__ */ jsxs51(Fragment14, { children: [
|
|
6097
6105
|
/* @__PURE__ */ jsxs51("strong", { children: [
|
|
6098
6106
|
from.toLocaleString(),
|
|
6099
6107
|
"\u2013",
|
|
@@ -6288,7 +6296,7 @@ function InlinePanelSurface({ panel, align = "right", ...popover }) {
|
|
|
6288
6296
|
}
|
|
6289
6297
|
|
|
6290
6298
|
// src/components/data/SortMenu.tsx
|
|
6291
|
-
import { Fragment as
|
|
6299
|
+
import { Fragment as Fragment16, jsx as jsx66, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
6292
6300
|
var directionWord = (field, dir) => dir === "asc" ? field.numeric ? "lowest first" : "A to Z" : field.numeric ? "highest first" : "Z to A";
|
|
6293
6301
|
function moved(sort, from, to) {
|
|
6294
6302
|
const next = [...sort];
|
|
@@ -6361,7 +6369,7 @@ function SortMenu({
|
|
|
6361
6369
|
] }, f.key);
|
|
6362
6370
|
});
|
|
6363
6371
|
const unused = fields.filter((f) => !active.some((entry) => entry.key === f.key));
|
|
6364
|
-
const multipleBody = /* @__PURE__ */ jsxs54(
|
|
6372
|
+
const multipleBody = /* @__PURE__ */ jsxs54(Fragment16, { children: [
|
|
6365
6373
|
/* @__PURE__ */ jsx66("span", { className: "fd-overline fd-muted", style: { padding: "4px 8px 6px" }, children: "Sorted by" }),
|
|
6366
6374
|
active.length === 0 ? /* @__PURE__ */ jsx66("span", { className: "fd-body-sm fd-muted", style: { padding: "4px 8px" }, children: "Unsorted" }) : /* @__PURE__ */ jsx66("ol", { className: "fd-stack", style: { gap: 2, margin: 0, padding: 0, listStyle: "none" }, "aria-label": "Sort order", children: active.map((entry, index) => {
|
|
6367
6375
|
const f = fieldOf(entry.key);
|
|
@@ -6410,7 +6418,7 @@ function SortMenu({
|
|
|
6410
6418
|
)
|
|
6411
6419
|
] }, entry.key);
|
|
6412
6420
|
}) }),
|
|
6413
|
-
unused.length > 0 ? /* @__PURE__ */ jsxs54(
|
|
6421
|
+
unused.length > 0 ? /* @__PURE__ */ jsxs54(Fragment16, { children: [
|
|
6414
6422
|
/* @__PURE__ */ jsx66("span", { className: "fd-overline fd-muted", style: { padding: "10px 8px 6px" }, children: "Add a sort" }),
|
|
6415
6423
|
unused.map((f) => /* @__PURE__ */ jsxs54("span", { className: "fd-row", style: rowStyle(false), children: [
|
|
6416
6424
|
/* @__PURE__ */ jsx66("span", { className: "fd-body-sm", style: labelStyle(false), children: f.label }),
|
|
@@ -6434,7 +6442,7 @@ function SortMenu({
|
|
|
6434
6442
|
]
|
|
6435
6443
|
}
|
|
6436
6444
|
),
|
|
6437
|
-
/* @__PURE__ */ jsx66(InlinePanelSurface, { panel, align, offset: 6, width: multiple ? 340 : 280, label: "Sort by", children: /* @__PURE__ */ jsx66("span", { className: "fd-stack", style: { gap: 2, padding: 8 }, children: multiple ? multipleBody : /* @__PURE__ */ jsxs54(
|
|
6445
|
+
/* @__PURE__ */ jsx66(InlinePanelSurface, { panel, align, offset: 6, width: multiple ? 340 : 280, label: "Sort by", children: /* @__PURE__ */ jsx66("span", { className: "fd-stack", style: { gap: 2, padding: 8 }, children: multiple ? multipleBody : /* @__PURE__ */ jsxs54(Fragment16, { children: [
|
|
6438
6446
|
/* @__PURE__ */ jsx66("span", { className: "fd-overline fd-muted", style: { padding: "4px 8px 6px" }, children: "Sort by" }),
|
|
6439
6447
|
singleBody
|
|
6440
6448
|
] }) }) })
|
|
@@ -9023,7 +9031,7 @@ function useSessionContext() {
|
|
|
9023
9031
|
}
|
|
9024
9032
|
|
|
9025
9033
|
// src/components/platform/AccountMenu.tsx
|
|
9026
|
-
import { Fragment as
|
|
9034
|
+
import { Fragment as Fragment22, jsx as jsx89, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
9027
9035
|
var DEFAULT_LINKS = [];
|
|
9028
9036
|
var DEFAULT_GROUPS = [];
|
|
9029
9037
|
function Item({ item, onPick }) {
|
|
@@ -9085,7 +9093,7 @@ function AccountMenu({
|
|
|
9085
9093
|
}
|
|
9086
9094
|
};
|
|
9087
9095
|
const showSwitcher = allowUserSwitch && !!demo;
|
|
9088
|
-
return /* @__PURE__ */ jsxs75(
|
|
9096
|
+
return /* @__PURE__ */ jsxs75(Fragment22, { children: [
|
|
9089
9097
|
/* @__PURE__ */ jsxs75(
|
|
9090
9098
|
"button",
|
|
9091
9099
|
{
|
|
@@ -9858,7 +9866,7 @@ function ProfilePage({
|
|
|
9858
9866
|
|
|
9859
9867
|
// src/components/platform/SessionScreen.tsx
|
|
9860
9868
|
import * as React71 from "react";
|
|
9861
|
-
import { Fragment as
|
|
9869
|
+
import { Fragment as Fragment25, jsx as jsx95, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
9862
9870
|
var COPY = {
|
|
9863
9871
|
"signing-in": { busy: "Signing you in\u2026" },
|
|
9864
9872
|
"session-expired": { busy: "Your session expired \u2014 signing you back in\u2026" },
|
|
@@ -9886,7 +9894,7 @@ function SessionScreen({ kind, error, onRetry, productName }) {
|
|
|
9886
9894
|
/* @__PURE__ */ jsx95("div", { className: "fd-session-screen-stripe" }),
|
|
9887
9895
|
/* @__PURE__ */ jsx95(Card, { children: /* @__PURE__ */ jsxs80("div", { className: "fd-session-screen-body", children: [
|
|
9888
9896
|
/* @__PURE__ */ jsx95("h1", { ref: titleRef, tabIndex: -1, className: "fd-h3 fd-session-screen-title", children: productName }),
|
|
9889
|
-
/* @__PURE__ */ jsx95("div", { role: "status", "aria-live": "polite", className: "fd-session-screen-status", children: busyMessage !== null ? /* @__PURE__ */ jsxs80(
|
|
9897
|
+
/* @__PURE__ */ jsx95("div", { role: "status", "aria-live": "polite", className: "fd-session-screen-status", children: busyMessage !== null ? /* @__PURE__ */ jsxs80(Fragment25, { children: [
|
|
9890
9898
|
/* @__PURE__ */ jsx95("span", { className: "fd-spinner fd-spinner-lg fd-session-screen-spinner", "aria-hidden": "true" }),
|
|
9891
9899
|
/* @__PURE__ */ jsx95("p", { className: "fd-body fd-session-screen-message", children: announced })
|
|
9892
9900
|
] }) : null }),
|
|
@@ -11913,7 +11921,7 @@ function RoadmapTimeline({ onOpenFlag, title = "Roadmap", lede }) {
|
|
|
11913
11921
|
// src/components/platform/ComingSoon.tsx
|
|
11914
11922
|
import * as React75 from "react";
|
|
11915
11923
|
import { createPortal as createPortal6 } from "react-dom";
|
|
11916
|
-
import { Fragment as
|
|
11924
|
+
import { Fragment as Fragment27, jsx as jsx97, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
11917
11925
|
var BYPASS_STORE = "fd.soon.bypass.v1";
|
|
11918
11926
|
function readBypassed() {
|
|
11919
11927
|
try {
|
|
@@ -11943,7 +11951,7 @@ function useBypass(key) {
|
|
|
11943
11951
|
return [on, set];
|
|
11944
11952
|
}
|
|
11945
11953
|
function SoonCard({ label, detail, backend, eta, effort, onRoadmap, allowed, onBypass }) {
|
|
11946
|
-
return /* @__PURE__ */ jsxs82(
|
|
11954
|
+
return /* @__PURE__ */ jsxs82(Fragment27, { children: [
|
|
11947
11955
|
/* @__PURE__ */ jsxs82("span", { className: "fd-soon-badge", children: [
|
|
11948
11956
|
/* @__PURE__ */ jsx97("i", { className: "ph ph-traffic-cone", "aria-hidden": "true" }),
|
|
11949
11957
|
label
|
|
@@ -12333,7 +12341,7 @@ function PermissionHint({ perm, children }) {
|
|
|
12333
12341
|
}
|
|
12334
12342
|
|
|
12335
12343
|
// src/components/platform/ModeSwitch.tsx
|
|
12336
|
-
import { Fragment as
|
|
12344
|
+
import { Fragment as Fragment28, jsx as jsx99, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
12337
12345
|
function ModeSwitch({ canToggle = false, requestCount = 0, onClearLog, renderLog, onOpenSpec, summary }) {
|
|
12338
12346
|
const mode2 = useRuntimeMode();
|
|
12339
12347
|
const panel = useInlinePanel();
|
|
@@ -12388,7 +12396,7 @@ function ModeSwitch({ canToggle = false, requestCount = 0, onClearLog, renderLog
|
|
|
12388
12396
|
s.total,
|
|
12389
12397
|
" features complete"
|
|
12390
12398
|
] }),
|
|
12391
|
-
onOpenSpec ? /* @__PURE__ */ jsxs84(
|
|
12399
|
+
onOpenSpec ? /* @__PURE__ */ jsxs84(Fragment28, { children: [
|
|
12392
12400
|
/* @__PURE__ */ jsx99("span", { style: { flex: 1 } }),
|
|
12393
12401
|
/* @__PURE__ */ jsxs84("button", { type: "button", className: "fd-soon-link", onClick: () => {
|
|
12394
12402
|
setOpen(false);
|
|
@@ -12580,7 +12588,7 @@ function SaturationDistribution({ campuses = [], floorBand, floorScore, onSelect
|
|
|
12580
12588
|
|
|
12581
12589
|
// src/components/planner/MixGap.tsx
|
|
12582
12590
|
import * as React76 from "react";
|
|
12583
|
-
import { Fragment as
|
|
12591
|
+
import { Fragment as Fragment29, jsx as jsx102, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
12584
12592
|
var MIX_GAP_LAYOUT = {
|
|
12585
12593
|
trackHeight: 30,
|
|
12586
12594
|
barHeight: 20,
|
|
@@ -12624,7 +12632,7 @@ function MixGap({ rows = [], loading = false, className = "" }) {
|
|
|
12624
12632
|
onMouseLeave: () => setHover(null),
|
|
12625
12633
|
children: [
|
|
12626
12634
|
/* @__PURE__ */ jsx102("span", { style: { width: 128, flex: "none" }, children: /* @__PURE__ */ jsx102(ChannelTag, { channel: r.channel, size: "sm" }) }),
|
|
12627
|
-
/* @__PURE__ */ jsx102("span", { style: { position: "relative", flex: 1, height: trackHeight, minWidth: 120 }, children: loading ? /* @__PURE__ */ jsx102("span", { className: "fd-skel", style: { position: "absolute", left: 0, right: 0, top: barTop, height: barHeight, borderRadius: 3 } }) : /* @__PURE__ */ jsxs87(
|
|
12635
|
+
/* @__PURE__ */ jsx102("span", { style: { position: "relative", flex: 1, height: trackHeight, minWidth: 120 }, children: loading ? /* @__PURE__ */ jsx102("span", { className: "fd-skel", style: { position: "absolute", left: 0, right: 0, top: barTop, height: barHeight, borderRadius: 3 } }) : /* @__PURE__ */ jsxs87(Fragment29, { children: [
|
|
12628
12636
|
/* @__PURE__ */ jsx102("span", { "data-mixgap-bar": "", style: { position: "absolute", left: 0, top: barTop, height: barHeight, width: mixGapOffset(r.realized, max), background: TONE[tone], borderRadius: "2px 3px 3px 2px", transition: "width var(--dur-slow) var(--ease), background var(--dur-base) var(--ease)" } }),
|
|
12629
12637
|
/* @__PURE__ */ jsx102("span", { "data-mixgap-target": "", style: { position: "absolute", left: `calc(${mixGapOffset(r.target, max)} - ${targetWidth / 2}px)`, top: 0, width: targetWidth, height: trackHeight, background: MIX_GAP_TARGET_STRIPE, borderRadius: 1 } }),
|
|
12630
12638
|
/* @__PURE__ */ jsxs87("span", { "data-mixgap-label": "", className: "fd-num", style: { position: "absolute", left: labelLeft, top: "50%", transform: "translateY(-50%)", fontSize: 12, color: "var(--text-muted)", whiteSpace: "nowrap" }, children: [
|
|
@@ -12738,7 +12746,7 @@ function ChannelContribution({
|
|
|
12738
12746
|
|
|
12739
12747
|
// src/components/planner/BudgetReallocator.tsx
|
|
12740
12748
|
import * as React77 from "react";
|
|
12741
|
-
import { Fragment as
|
|
12749
|
+
import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
12742
12750
|
var bandFor = (crp) => crp >= 200 ? "dominant" : crp >= 100 ? "strong" : crp >= 50 ? "adequate" : "weak";
|
|
12743
12751
|
function BudgetReallocator({
|
|
12744
12752
|
campus,
|
|
@@ -12802,7 +12810,7 @@ function BudgetReallocator({
|
|
|
12802
12810
|
/* @__PURE__ */ jsxs89("div", { className: "fd-row", style: { gap: 12, flexWrap: "wrap" }, children: [
|
|
12803
12811
|
/* @__PURE__ */ jsx104("span", { className: "fd-h4", style: { flex: 1, minWidth: 140 }, children: campus }),
|
|
12804
12812
|
/* @__PURE__ */ jsx104(CsiBadge, { band: nowBand, crp, size: "medium" }),
|
|
12805
|
-
dirty ? /* @__PURE__ */ jsxs89(
|
|
12813
|
+
dirty ? /* @__PURE__ */ jsxs89(Fragment30, { children: [
|
|
12806
12814
|
/* @__PURE__ */ jsx104("i", { className: "ph ph-arrow-right fd-muted", "aria-hidden": "true" }),
|
|
12807
12815
|
/* @__PURE__ */ jsx104(CsiBadge, { band: nextBand, crp: nextCrp, size: "medium", preview: true })
|
|
12808
12816
|
] }) : null
|
|
@@ -13559,7 +13567,7 @@ import * as React82 from "react";
|
|
|
13559
13567
|
|
|
13560
13568
|
// src/components/chat/ChatTurn.tsx
|
|
13561
13569
|
import * as React81 from "react";
|
|
13562
|
-
import { Fragment as
|
|
13570
|
+
import { Fragment as Fragment32, jsx as jsx108, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
13563
13571
|
function JsonView({ value }) {
|
|
13564
13572
|
let text;
|
|
13565
13573
|
try {
|
|
@@ -13595,7 +13603,7 @@ function DecisionFooter({ packet, decision, state }) {
|
|
|
13595
13603
|
);
|
|
13596
13604
|
};
|
|
13597
13605
|
const error = failure !== null ? failure : state.error;
|
|
13598
|
-
return /* @__PURE__ */ jsxs93(
|
|
13606
|
+
return /* @__PURE__ */ jsxs93(Fragment32, { children: [
|
|
13599
13607
|
error ? /* @__PURE__ */ jsx108("div", { className: "fdc-packet-decision-msg", children: /* @__PURE__ */ jsx108(Banner, { tone: "danger", title: error }) }) : null,
|
|
13600
13608
|
/* @__PURE__ */ jsxs93("footer", { className: "fdc-packet-foot fdc-packet-decision", children: [
|
|
13601
13609
|
/* @__PURE__ */ jsx108(Button, { variant: "secondary", size: "sm", loading: pending === "dismiss", disabled: pending === "confirm", onClick: () => press("dismiss"), children: decision.dismissLabel || "Dismiss" }),
|
|
@@ -15012,7 +15020,7 @@ function FileViewer({ file, resolveUrl, sidePanel, sidePanelLabel = "Details", o
|
|
|
15012
15020
|
|
|
15013
15021
|
// src/components/files/FileBrowser.tsx
|
|
15014
15022
|
import * as React90 from "react";
|
|
15015
|
-
import { Fragment as
|
|
15023
|
+
import { Fragment as Fragment35, jsx as jsx116, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
15016
15024
|
function childrenOf(folders, parentId) {
|
|
15017
15025
|
return folders.filter((f) => f.parentId === parentId).sort((a, b) => a.name.localeCompare(b.name));
|
|
15018
15026
|
}
|
|
@@ -15311,7 +15319,7 @@ function FileBrowser({
|
|
|
15311
15319
|
] }),
|
|
15312
15320
|
/* @__PURE__ */ jsxs101("span", { className: "fd-fb-actions", children: [
|
|
15313
15321
|
canCreateFolder ? /* @__PURE__ */ jsx116(Button, { variant: "secondary", size: "sm", icon: "folder-simple-plus", onClick: openCreate, children: "New folder" }) : null,
|
|
15314
|
-
canUpload ? /* @__PURE__ */ jsxs101(
|
|
15322
|
+
canUpload ? /* @__PURE__ */ jsxs101(Fragment35, { children: [
|
|
15315
15323
|
/* @__PURE__ */ jsx116(Button, { variant: "secondary", size: "sm", icon: "upload-simple", onClick: () => uploadInputRef.current && uploadInputRef.current.click(), children: "Upload" }),
|
|
15316
15324
|
/* @__PURE__ */ jsx116(
|
|
15317
15325
|
"input",
|
|
@@ -15378,7 +15386,7 @@ function FileBrowser({
|
|
|
15378
15386
|
draggableId: canMove ? { kind: "folder", id: f.id } : void 0,
|
|
15379
15387
|
isDropTarget: canMove,
|
|
15380
15388
|
onDropPayload: (p) => moveIntoFolder(p, f.id),
|
|
15381
|
-
actions: /* @__PURE__ */ jsxs101(
|
|
15389
|
+
actions: /* @__PURE__ */ jsxs101(Fragment35, { children: [
|
|
15382
15390
|
canRenameFolder ? /* @__PURE__ */ jsx116(IconButton, { icon: "pencil-simple", label: "Rename " + f.name, size: "sm", variant: "ghost", onClick: () => openRename(f) }) : null,
|
|
15383
15391
|
canMove ? /* @__PURE__ */ jsx116(
|
|
15384
15392
|
FolderPickerMenu,
|
|
@@ -15401,7 +15409,7 @@ function FileBrowser({
|
|
|
15401
15409
|
meta: file.size ? formatBytes(file.size) : void 0,
|
|
15402
15410
|
onOpen: onOpenFile ? () => onOpenFile(file) : void 0,
|
|
15403
15411
|
draggableId: canMove ? { kind: "file", id: file.id } : void 0,
|
|
15404
|
-
actions: /* @__PURE__ */ jsxs101(
|
|
15412
|
+
actions: /* @__PURE__ */ jsxs101(Fragment35, { children: [
|
|
15405
15413
|
canMove ? /* @__PURE__ */ jsx116(
|
|
15406
15414
|
FolderPickerMenu,
|
|
15407
15415
|
{
|
|
@@ -15419,7 +15427,7 @@ function FileBrowser({
|
|
|
15419
15427
|
}
|
|
15420
15428
|
) })
|
|
15421
15429
|
] }),
|
|
15422
|
-
/* @__PURE__ */ jsx116(Modal, { open: createOpen, title: "New folder", onClose: () => setCreateOpen(false), footer: /* @__PURE__ */ jsxs101(
|
|
15430
|
+
/* @__PURE__ */ jsx116(Modal, { open: createOpen, title: "New folder", onClose: () => setCreateOpen(false), footer: /* @__PURE__ */ jsxs101(Fragment35, { children: [
|
|
15423
15431
|
/* @__PURE__ */ jsx116(Button, { variant: "secondary", onClick: () => setCreateOpen(false), children: "Cancel" }),
|
|
15424
15432
|
/* @__PURE__ */ jsx116(Button, { onClick: submitCreate, disabled: !createName.trim(), children: "Create" })
|
|
15425
15433
|
] }), children: /* @__PURE__ */ jsx116(
|
|
@@ -15436,7 +15444,7 @@ function FileBrowser({
|
|
|
15436
15444
|
autoFocus: true
|
|
15437
15445
|
}
|
|
15438
15446
|
) }),
|
|
15439
|
-
/* @__PURE__ */ jsx116(Modal, { open: renameTarget != null, title: "Rename folder", onClose: () => setRenameTarget(null), footer: /* @__PURE__ */ jsxs101(
|
|
15447
|
+
/* @__PURE__ */ jsx116(Modal, { open: renameTarget != null, title: "Rename folder", onClose: () => setRenameTarget(null), footer: /* @__PURE__ */ jsxs101(Fragment35, { children: [
|
|
15440
15448
|
/* @__PURE__ */ jsx116(Button, { variant: "secondary", onClick: () => setRenameTarget(null), children: "Cancel" }),
|
|
15441
15449
|
/* @__PURE__ */ jsx116(Button, { onClick: submitRename, disabled: !renameValue.trim(), children: "Save" })
|
|
15442
15450
|
] }), children: /* @__PURE__ */ jsx116(
|
|
@@ -15460,7 +15468,7 @@ function FileBrowser({
|
|
|
15460
15468
|
title: deleteTarget ? "Delete \u201C" + deleteTarget.name + "\u201D?" : "Delete folder?",
|
|
15461
15469
|
description: "This can't be undone. The folder must be empty.",
|
|
15462
15470
|
onClose: () => setDeleteTarget(null),
|
|
15463
|
-
footer: /* @__PURE__ */ jsxs101(
|
|
15471
|
+
footer: /* @__PURE__ */ jsxs101(Fragment35, { children: [
|
|
15464
15472
|
/* @__PURE__ */ jsx116(Button, { variant: "secondary", onClick: () => setDeleteTarget(null), children: "Cancel" }),
|
|
15465
15473
|
/* @__PURE__ */ jsx116(Button, { variant: "danger", onClick: confirmDelete, children: "Delete" })
|
|
15466
15474
|
] })
|