@peasant-labs/fairtrade 0.0.24 → 0.0.25
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/lib/commons.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gn as e, Hn as t, Jn as n, Jt as r, Kn as i, Kt as a, Rn as o, Xt as s, Yt as c, _t as l, at as u, gt as d, jn as f, mt as p, ot as m, rt as h, tt as g, ur as _, vt as v, xt as y, yt as b } from "./ui-
|
|
1
|
+
import { Gn as e, Hn as t, Jn as n, Jt as r, Kn as i, Kt as a, Rn as o, Xt as s, Yt as c, _t as l, at as u, gt as d, jn as f, mt as p, ot as m, rt as h, tt as g, ur as _, vt as v, xt as y, yt as b } from "./ui-C2WXsEFz.js";
|
|
2
2
|
import { St as x, ft as S, ut as C } from "./GraphLegend-sgixmPER.js";
|
|
3
3
|
import { useEffect as w, useId as T, useMemo as E, useRef as D, useState as O } from "react";
|
|
4
4
|
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* SessionGroupDisclosure - the one collapsed count control for a session list.
|
|
3
3
|
*
|
|
4
4
|
* The label names the group's membership and its count ("orphan sessions 2"),
|
|
5
|
-
* a chevron leads the control, and
|
|
5
|
+
* a chevron leads the control, and by default trailing `show`/`hide` states what the
|
|
6
6
|
* press will do. The control is a real `<button>` with `aria-expanded` and
|
|
7
7
|
* `aria-controls`, so the row it reveals is named, not inferred.
|
|
8
8
|
*
|
|
@@ -24,12 +24,14 @@
|
|
|
24
24
|
* inside an already-bordered panel
|
|
25
25
|
* @param {boolean} [props.indent] - indent one step, so a group nested inside a
|
|
26
26
|
* list reads as belonging to it rather than as another list row
|
|
27
|
+
* @param {boolean} [props.showActionHint=true] - show the trailing show/hide
|
|
28
|
+
* hint; false omits only the hint, keeping the labelled disclosure control
|
|
27
29
|
* @param {string} [props.testID] - base for the wrapper and control test ids:
|
|
28
30
|
* `<base>`, `<base>-toggle`, and `<base>-label`
|
|
29
31
|
* @param {import('react').ReactNode} [props.children] - revealed only while
|
|
30
32
|
* expanded
|
|
31
33
|
*/
|
|
32
|
-
export default function SessionGroupDisclosure({ label, collapsedLabel, expanded, onToggle, rowsID, bare, indent, testID, children, }: {
|
|
34
|
+
export default function SessionGroupDisclosure({ label, collapsedLabel, expanded, onToggle, rowsID, bare, indent, showActionHint, testID, children, }: {
|
|
33
35
|
label: import("react").ReactNode;
|
|
34
36
|
collapsedLabel: import("react").ReactNode;
|
|
35
37
|
expanded: boolean;
|
|
@@ -37,6 +39,7 @@ export default function SessionGroupDisclosure({ label, collapsedLabel, expanded
|
|
|
37
39
|
rowsID: string;
|
|
38
40
|
bare?: boolean;
|
|
39
41
|
indent?: boolean;
|
|
42
|
+
showActionHint?: boolean;
|
|
40
43
|
testID?: string;
|
|
41
44
|
children?: import("react").ReactNode;
|
|
42
45
|
}): import("react").JSX.Element;
|
|
@@ -1431,16 +1431,16 @@ function Qn({ items: e, defaultOpen: t, allowMultiple: n = !1, headingLevel: r =
|
|
|
1431
1431
|
}
|
|
1432
1432
|
//#endregion
|
|
1433
1433
|
//#region src/ui/SessionGroupDisclosure.jsx
|
|
1434
|
-
function $n({ label: e, collapsedLabel: t, expanded: n, onToggle: r, rowsID: i, bare: a = !1, indent: o = !1,
|
|
1434
|
+
function $n({ label: e, collapsedLabel: t, expanded: n, onToggle: r, rowsID: i, bare: a = !1, indent: o = !1, showActionHint: s = !0, testID: c = "session-group-disclosure", children: l }) {
|
|
1435
1435
|
return /* @__PURE__ */ x("div", {
|
|
1436
1436
|
className: `sgd${o ? " sgd-indent" : ""}${a ? " sgd-bare" : ""}`,
|
|
1437
|
-
"data-testid":
|
|
1437
|
+
"data-testid": c,
|
|
1438
1438
|
children: [/* @__PURE__ */ x("button", {
|
|
1439
1439
|
type: "button",
|
|
1440
1440
|
className: "sgd-trigger",
|
|
1441
1441
|
"aria-expanded": n,
|
|
1442
1442
|
"aria-controls": i,
|
|
1443
|
-
"data-testid": `${
|
|
1443
|
+
"data-testid": `${c}-toggle`,
|
|
1444
1444
|
onClick: r,
|
|
1445
1445
|
children: [
|
|
1446
1446
|
b(n ? F : I, {
|
|
@@ -1449,19 +1449,19 @@ function $n({ label: e, collapsedLabel: t, expanded: n, onToggle: r, rowsID: i,
|
|
|
1449
1449
|
}),
|
|
1450
1450
|
/* @__PURE__ */ b("span", {
|
|
1451
1451
|
className: "sgd-count",
|
|
1452
|
-
"data-testid": `${
|
|
1452
|
+
"data-testid": `${c}-label`,
|
|
1453
1453
|
children: n ? e : t
|
|
1454
1454
|
}),
|
|
1455
1455
|
/* @__PURE__ */ b("span", {
|
|
1456
1456
|
className: "sgd-spacer",
|
|
1457
1457
|
"aria-hidden": "true"
|
|
1458
1458
|
}),
|
|
1459
|
-
/* @__PURE__ */ b("span", {
|
|
1459
|
+
s && /* @__PURE__ */ b("span", {
|
|
1460
1460
|
className: "sgd-show",
|
|
1461
1461
|
children: n ? "hide" : "show"
|
|
1462
1462
|
})
|
|
1463
1463
|
]
|
|
1464
|
-
}), n &&
|
|
1464
|
+
}), n && l]
|
|
1465
1465
|
});
|
|
1466
1466
|
}
|
|
1467
1467
|
//#endregion
|
package/dist/lib/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, Bt as c, C as l, Cn as u, Ct as d, D as f, Dn as p, Dt as m, E as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, Gt as C, H as w, Hn as T, Ht as E, I as D, In as O, It as k, J as A, Jn as j, Jt as M, K as N, Kn as P, Kt as F, L as I, Ln as L, Lt as R, M as z, Mn as B, Mt as V, N as H, Nn as U, Nt as W, O as G, On as K, Ot as q, P as J, Pn as Y, Pt as X, Q as Z, Qn as Q, Qt as $, R as ee, Rn as te, Rt as ne, S as re, Sn as ie, St as ae, T as oe, Tn as se, Tt as ce, U as le, Un as ue, Ut as de, V as fe, Vn as pe, Vt as me, W as he, Wn as ge, Wt as _e, X as ve, Xn as ye, Xt as be, Y as xe, Yn as Se, Yt as Ce, Z as we, Zn as Te, Zt as Ee, _ as De, _n as Oe, _t as ke, a as Ae, an as je, ar as Me, at as Ne, b as Pe, bn as Fe, bt as Ie, c as Le, cn as Re, cr as ze, ct as Be, d as Ve, dn as He, dr as Ue, dt as We, en as Ge, er as Ke, et as qe, f as Je, fn as Ye, fr as Xe, ft as Ze, g as Qe, gn as $e, gt as et, h as tt, hn as nt, hr as rt, ht as it, i as at, in as ot, ir as st, it as ct, j as lt, jn as ut, jt as dt, k as ft, kn as pt, kt as mt, l as ht, ln as gt, lr as _t, lt as vt, m as yt, mn as bt, mr as xt, mt as St, n as Ct, nn as wt, nr as Tt, nt as Et, o as Dt, on as Ot, or as kt, ot as At, p as jt, pn as Mt, pr as Nt, pt as Pt, q as Ft, qn as It, qt as Lt, r as Rt, rn as zt, rr as Bt, rt as Vt, s as Ht, sn as Ut, sr as Wt, st as Gt, t as Kt, tn as qt, tr as Jt, tt as Yt, u as Xt, un as Zt, ur as Qt, ut as $t, v as en, vn as tn, vt as nn, w as rn, wn as an, wt as on, x as sn, xn as cn, xt as ln, y as un, yn as dn, yt as fn, z as pn, zn as mn, zt as hn } from "./ui-
|
|
1
|
+
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, Bt as c, C as l, Cn as u, Ct as d, D as f, Dn as p, Dt as m, E as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, Gt as C, H as w, Hn as T, Ht as E, I as D, In as O, It as k, J as A, Jn as j, Jt as M, K as N, Kn as P, Kt as F, L as I, Ln as L, Lt as R, M as z, Mn as B, Mt as V, N as H, Nn as U, Nt as W, O as G, On as K, Ot as q, P as J, Pn as Y, Pt as X, Q as Z, Qn as Q, Qt as $, R as ee, Rn as te, Rt as ne, S as re, Sn as ie, St as ae, T as oe, Tn as se, Tt as ce, U as le, Un as ue, Ut as de, V as fe, Vn as pe, Vt as me, W as he, Wn as ge, Wt as _e, X as ve, Xn as ye, Xt as be, Y as xe, Yn as Se, Yt as Ce, Z as we, Zn as Te, Zt as Ee, _ as De, _n as Oe, _t as ke, a as Ae, an as je, ar as Me, at as Ne, b as Pe, bn as Fe, bt as Ie, c as Le, cn as Re, cr as ze, ct as Be, d as Ve, dn as He, dr as Ue, dt as We, en as Ge, er as Ke, et as qe, f as Je, fn as Ye, fr as Xe, ft as Ze, g as Qe, gn as $e, gt as et, h as tt, hn as nt, hr as rt, ht as it, i as at, in as ot, ir as st, it as ct, j as lt, jn as ut, jt as dt, k as ft, kn as pt, kt as mt, l as ht, ln as gt, lr as _t, lt as vt, m as yt, mn as bt, mr as xt, mt as St, n as Ct, nn as wt, nr as Tt, nt as Et, o as Dt, on as Ot, or as kt, ot as At, p as jt, pn as Mt, pr as Nt, pt as Pt, q as Ft, qn as It, qt as Lt, r as Rt, rn as zt, rr as Bt, rt as Vt, s as Ht, sn as Ut, sr as Wt, st as Gt, t as Kt, tn as qt, tr as Jt, tt as Yt, u as Xt, un as Zt, ur as Qt, ut as $t, v as en, vn as tn, vt as nn, w as rn, wn as an, wt as on, x as sn, xn as cn, xt as ln, y as un, yn as dn, yt as fn, z as pn, zn as mn, zt as hn } from "./ui-C2WXsEFz.js";
|
|
2
2
|
import { Ct as gn, St as _n, _t as vn, a as yn, bt as bn, c as xn, ct as Sn, d as Cn, dt as wn, et as Tn, f as En, ft as Dn, gt as On, h as kn, ht as An, i as jn, l as Mn, lt as Nn, m as Pn, mt as Fn, n as In, o as Ln, p as Rn, pt as zn, r as Bn, s as Vn, t as Hn, tt as Un, u as Wn, ut as Gn, vt as Kn, wt as qn, xt as Jn, yt as Yn } from "./GraphLegend-sgixmPER.js";
|
|
3
3
|
import { n as Xn, t as Zn } from "./ChartLine-Cycmpjep.js";
|
|
4
4
|
export { Sn as AccentLegend, Gt as AccessList, pt as Accordion, Lt as ApprovalBar, te as Avatar, mn as AvatarGroup, gn as BrandMark, j as Breadcrumb, Nt as Button, xt as ButtonGroup, Te as Card, Q as CardImg, Xn as ChartBar, Zn as ChartLine, kt as Checkbox, X as CheckpointMarker, Jt as Chip, ae as CliSteps, Be as CollectivePicker, d as CommandBlock, Ut as CommandPalette, Un as CommitGraph, _e as ConfirmInline, q as ConnectionPill, be as ConsentDialog, Ee as ConsentSummary, it as CopyIconButton, Tt as CountBadge, gt as DATE_PRESETS, C as DangerZone, mt as DataState, ut as DataTable, Zt as DateRange, He as DateRangeCalendar, Re as Dialog, Tn as DiffView, Ft as ENTRY_TYPES, L as EmptyState, c as EvidenceCaption, me as EvidenceTarget, Ge as Explainer, ln as FacetRail, B as FeedbackPanel, _t as Field, Bt as FilterChip, e as FocusedModeToggle, Ln as GRAPH_APP_SECTIONS, Hn as GRAPH_LEGEND_ITEMS, on as GettingStarted, ke as GovTile, Vn as GraphAppShell, In as GraphLegend, xn as GraphSectionNav, Bn as GraphSubagentBranch, jn as GraphToolNode, yn as GraphTurnNode, E as GroupedMultiSelect, A as HARNESSES, dn as HELPER_OWNER_STATE, ce as HandleClaim, zn as Heatmap, Fe as HelperGroup, cn as HelperGroupListItem, ie as HelperThreadRow, Mn as IN_USE_APPS, Wn as InUseShell, Qt as Input, Fn as IntensityScope, An as IntensitySwatch, s as Kbd, pe as KbdChord, Cn as LOCAL_APP_SECTIONS, a as LocalOfflineBanner, kn as MapCanvas, On as MapNode, S as Menu, t as MetaItem, M as ModerationQueue, _ as OnboardingCard, St as OverflowList, Nn as PROVIDER_ACCENT, vt as PUBLISH_DIALOG_STATES, $t as PUBLISH_STATES, It as Pager, P as Pagination, b as Phase, k as PhaseDivider, Ce as PolicySelect, ue as Popover, U as Progress, hn as PromptDigest, nn as ProviderBars, Gn as ProviderIcon, wn as ProviderName, Dn as ProviderTag, We as PublishBar, Ze as PublishDialog, Pt as PublishStateLabel, xe as ROLES, Wt as Radio, ze as RadioGroup, En as RailSection, Rn as RailShell, vn as RampLegend, $ as RedactionReview, Vt as RepoPicker, F as RoleRoster, Ke as Row, ve as SESSION_OUTCOMES, ct as SETTING_ROW_STATES, we as STOP_REASONS, qe as ScopeChip, rt as Segmented, Ue as Select, K as SessionGroupDisclosure, Ne as SettingGroup, At as SettingRow, m as SignInProviders, Y as Skeleton, i as Sparkline, y as Spinner, Pn as SplitRail, fn as StatGrid, Ie as StatTile, et as StatsStrip, st as StatusDot, zt as StepIndicator, ot as StepWizard, Se as Steps, de as StepsWaterfall, Me as Switch, Z as TOOL_CALL_KINDS, N as TOOL_GROUPS, ye as Tabs, T as Tag, R as TaskBoundary, dt as TeachingEmptyState, qt as Term, Xe as Textarea, nt as ThinkingBlock, wt as TimeStrip, $e as Timeline, Oe as TimelineItem, O as Toast, Mt as ToastProvider, tn as ToolCall, W as ToolCallRenderer, ge as Tooltip, V as Tour, yt as TranscriptCheckRow, re as TranscriptDiffEntryCard, l as TranscriptDiffHunks, tt as TranscriptFilterSection, Je as TranscriptFiltersRail, ht as TranscriptLabelPopover, oe as TranscriptMarkdown, De as TranscriptOutcomeChip, Qe as TranscriptOutlineRail, Xt as TranscriptScorecard, Ve as TranscriptScrubber, sn as TranscriptTaskBody, rn as TranscriptThinking, Pe as TranscriptToolBody, un as TranscriptToolCall, en as TranscriptTurnCard, jt as TranscriptViewSwitch, Kt as TranscriptViewer, je as Treemap, ne as TurnContextBar, Yt as VisibilityEye, Et as VisibilitySegmented, n as WhereDoesThisGo, H as adaptTranscript, Rt as advanceTranscriptInitialPositionConsumption, D as annotateTranscript, I as assessScorecard, ee as buildTaskWaterfall, h as composeSessionTitle, pn as computeAnalytics, o as computePersonalMedians, fe as computeTaskGroups, w as computeTasks, le as computeTurnLabels, Kn as coverageLevel, he as detectPhases, J as diffLines, Yn as effortLevel, ft as formatDateLong, r as formatDurationMins, Ye as formatRange, lt as formatRelative, u as helperMemberToggle, an as helperOwnerState, se as helperOwnerToggle, g as helperSelectionIds, bn as locSize, z as nextNavTurn, at as normalizeTranscriptInitialPosition, x as phaseLabel, v as prefilterTurns, f as projectLabel, Jn as providerAccent, _n as providerDisplayName, qn as resolveBrand, Ae as resolveTranscriptInitialPosition, Dt as shouldApplyTranscriptInitialPosition, Ot as squarify, G as summarizePrompt, Ht as transcriptInitialPositionReadiness, Le as transcriptInitialPositionToken, p as useHelperSelection, bt as useToast, Ct as useTranscriptInitialPosition };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peasant-labs/fairtrade",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.25",
|
|
5
5
|
"description": "Fairtrade design-system library: canonical tokens, base styles, component CSS, and React UI exports.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "Apache-2.0",
|