footprint-explainable-ui 0.14.2 → 0.14.3
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 +14 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4156,6 +4156,7 @@ function KeyedRecorderView({
|
|
|
4156
4156
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { overflow: "auto", height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
4157
4157
|
description && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { padding: "6px 12px", fontSize: 11, color: theme.textMuted, fontStyle: "italic", borderBottom: `1px solid ${theme.border}`, flexShrink: 0 }, children: description }),
|
|
4158
4158
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { padding: 12, flex: 1, overflow: "auto" }, children: [
|
|
4159
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 6, fontWeight: 600 }, children: "Translate \u2014 per-step detail" }),
|
|
4159
4160
|
visibleEntries.map((key) => {
|
|
4160
4161
|
const entry = steps[key];
|
|
4161
4162
|
const label = entry.stageName ?? key;
|
|
@@ -4167,22 +4168,19 @@ function KeyedRecorderView({
|
|
|
4167
4168
|
] }, key);
|
|
4168
4169
|
}),
|
|
4169
4170
|
visibleEntries.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { color: theme.textMuted, fontSize: 11, fontStyle: "italic", padding: "8px 0" }, children: "Scrub the slider to reveal entries..." }),
|
|
4170
|
-
numFieldKey && visibleEntries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { marginTop:
|
|
4171
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.
|
|
4172
|
-
|
|
4173
|
-
numFieldKey,
|
|
4174
|
-
"):"
|
|
4175
|
-
] }),
|
|
4176
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { style: { fontWeight: 700, marginLeft: 8, color: theme.primary }, children: runningTotal < 1 ? runningTotal.toFixed(3) : runningTotal.toFixed(1) }),
|
|
4171
|
+
numFieldKey && visibleEntries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { marginTop: 16, padding: "8px 12px", background: `color-mix(in srgb, ${theme.primary} 8%, transparent)`, borderRadius: 6, fontSize: 12 }, children: [
|
|
4172
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 4, fontWeight: 600 }, children: "Accumulate \u2014 running total up to this step" }),
|
|
4173
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { style: { fontWeight: 700, fontSize: 16, color: theme.primary }, children: runningTotal < 1 ? runningTotal.toFixed(3) : runningTotal.toFixed(1) }),
|
|
4177
4174
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { style: { color: theme.textMuted, marginLeft: 8, fontSize: 10 }, children: [
|
|
4178
|
-
|
|
4175
|
+
numFieldKey,
|
|
4176
|
+
" \xB7 ",
|
|
4179
4177
|
visibleEntries.length,
|
|
4180
4178
|
" of ",
|
|
4181
4179
|
allKeys.length,
|
|
4182
|
-
" steps
|
|
4180
|
+
" steps"
|
|
4183
4181
|
] })
|
|
4184
4182
|
] }),
|
|
4185
|
-
isAtEnd && numFieldKey && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { marginTop:
|
|
4183
|
+
isAtEnd && numFieldKey && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { marginTop: 16 }, children: !showAggregate ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
4186
4184
|
"button",
|
|
4187
4185
|
{
|
|
4188
4186
|
onClick: () => setShowAggregate(true),
|
|
@@ -4191,21 +4189,18 @@ function KeyedRecorderView({
|
|
|
4191
4189
|
color: "#fff",
|
|
4192
4190
|
border: "none",
|
|
4193
4191
|
borderRadius: 6,
|
|
4194
|
-
padding: "
|
|
4192
|
+
padding: "10px 20px",
|
|
4195
4193
|
fontSize: 12,
|
|
4196
4194
|
fontWeight: 600,
|
|
4197
4195
|
cursor: "pointer",
|
|
4198
|
-
fontFamily: "inherit"
|
|
4196
|
+
fontFamily: "inherit",
|
|
4197
|
+
width: "100%"
|
|
4199
4198
|
},
|
|
4200
|
-
children:
|
|
4201
|
-
"Aggregate (",
|
|
4202
|
-
numFieldKey,
|
|
4203
|
-
")"
|
|
4204
|
-
]
|
|
4199
|
+
children: "Show Aggregate \u2014 Grand Total"
|
|
4205
4200
|
}
|
|
4206
4201
|
) : /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { padding: "10px 14px", background: `color-mix(in srgb, ${theme.success} 12%, transparent)`, borderRadius: 6, border: `1px solid ${theme.success}44` }, children: [
|
|
4207
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 4 }, children: "Aggregate \u2014
|
|
4208
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize:
|
|
4202
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 4, fontWeight: 600 }, children: "Aggregate \u2014 grand total across all steps" }),
|
|
4203
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 22, fontWeight: 700, color: theme.success }, children: grandTotal < 1 ? grandTotal.toFixed(3) : grandTotal.toFixed(1) }),
|
|
4209
4204
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { fontSize: 10, color: theme.textMuted, marginTop: 2 }, children: [
|
|
4210
4205
|
allKeys.length,
|
|
4211
4206
|
" steps \xB7 ",
|