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.js
CHANGED
|
@@ -4107,6 +4107,7 @@ function KeyedRecorderView({
|
|
|
4107
4107
|
return /* @__PURE__ */ jsxs17("div", { style: { overflow: "auto", height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
4108
4108
|
description && /* @__PURE__ */ jsx18("div", { style: { padding: "6px 12px", fontSize: 11, color: theme.textMuted, fontStyle: "italic", borderBottom: `1px solid ${theme.border}`, flexShrink: 0 }, children: description }),
|
|
4109
4109
|
/* @__PURE__ */ jsxs17("div", { style: { padding: 12, flex: 1, overflow: "auto" }, children: [
|
|
4110
|
+
/* @__PURE__ */ jsx18("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 6, fontWeight: 600 }, children: "Translate \u2014 per-step detail" }),
|
|
4110
4111
|
visibleEntries.map((key) => {
|
|
4111
4112
|
const entry = steps[key];
|
|
4112
4113
|
const label = entry.stageName ?? key;
|
|
@@ -4118,22 +4119,19 @@ function KeyedRecorderView({
|
|
|
4118
4119
|
] }, key);
|
|
4119
4120
|
}),
|
|
4120
4121
|
visibleEntries.length === 0 && /* @__PURE__ */ jsx18("div", { style: { color: theme.textMuted, fontSize: 11, fontStyle: "italic", padding: "8px 0" }, children: "Scrub the slider to reveal entries..." }),
|
|
4121
|
-
numFieldKey && visibleEntries.length > 0 && /* @__PURE__ */ jsxs17("div", { style: { marginTop:
|
|
4122
|
-
/* @__PURE__ */
|
|
4123
|
-
|
|
4124
|
-
numFieldKey,
|
|
4125
|
-
"):"
|
|
4126
|
-
] }),
|
|
4127
|
-
/* @__PURE__ */ jsx18("span", { style: { fontWeight: 700, marginLeft: 8, color: theme.primary }, children: runningTotal < 1 ? runningTotal.toFixed(3) : runningTotal.toFixed(1) }),
|
|
4122
|
+
numFieldKey && visibleEntries.length > 0 && /* @__PURE__ */ jsxs17("div", { style: { marginTop: 16, padding: "8px 12px", background: `color-mix(in srgb, ${theme.primary} 8%, transparent)`, borderRadius: 6, fontSize: 12 }, children: [
|
|
4123
|
+
/* @__PURE__ */ jsx18("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" }),
|
|
4124
|
+
/* @__PURE__ */ jsx18("span", { style: { fontWeight: 700, fontSize: 16, color: theme.primary }, children: runningTotal < 1 ? runningTotal.toFixed(3) : runningTotal.toFixed(1) }),
|
|
4128
4125
|
/* @__PURE__ */ jsxs17("span", { style: { color: theme.textMuted, marginLeft: 8, fontSize: 10 }, children: [
|
|
4129
|
-
|
|
4126
|
+
numFieldKey,
|
|
4127
|
+
" \xB7 ",
|
|
4130
4128
|
visibleEntries.length,
|
|
4131
4129
|
" of ",
|
|
4132
4130
|
allKeys.length,
|
|
4133
|
-
" steps
|
|
4131
|
+
" steps"
|
|
4134
4132
|
] })
|
|
4135
4133
|
] }),
|
|
4136
|
-
isAtEnd && numFieldKey && /* @__PURE__ */ jsx18("div", { style: { marginTop:
|
|
4134
|
+
isAtEnd && numFieldKey && /* @__PURE__ */ jsx18("div", { style: { marginTop: 16 }, children: !showAggregate ? /* @__PURE__ */ jsx18(
|
|
4137
4135
|
"button",
|
|
4138
4136
|
{
|
|
4139
4137
|
onClick: () => setShowAggregate(true),
|
|
@@ -4142,21 +4140,18 @@ function KeyedRecorderView({
|
|
|
4142
4140
|
color: "#fff",
|
|
4143
4141
|
border: "none",
|
|
4144
4142
|
borderRadius: 6,
|
|
4145
|
-
padding: "
|
|
4143
|
+
padding: "10px 20px",
|
|
4146
4144
|
fontSize: 12,
|
|
4147
4145
|
fontWeight: 600,
|
|
4148
4146
|
cursor: "pointer",
|
|
4149
|
-
fontFamily: "inherit"
|
|
4147
|
+
fontFamily: "inherit",
|
|
4148
|
+
width: "100%"
|
|
4150
4149
|
},
|
|
4151
|
-
children:
|
|
4152
|
-
"Aggregate (",
|
|
4153
|
-
numFieldKey,
|
|
4154
|
-
")"
|
|
4155
|
-
]
|
|
4150
|
+
children: "Show Aggregate \u2014 Grand Total"
|
|
4156
4151
|
}
|
|
4157
4152
|
) : /* @__PURE__ */ jsxs17("div", { style: { padding: "10px 14px", background: `color-mix(in srgb, ${theme.success} 12%, transparent)`, borderRadius: 6, border: `1px solid ${theme.success}44` }, children: [
|
|
4158
|
-
/* @__PURE__ */ jsx18("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 4 }, children: "Aggregate \u2014
|
|
4159
|
-
/* @__PURE__ */ jsx18("div", { style: { fontSize:
|
|
4153
|
+
/* @__PURE__ */ jsx18("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 4, fontWeight: 600 }, children: "Aggregate \u2014 grand total across all steps" }),
|
|
4154
|
+
/* @__PURE__ */ jsx18("div", { style: { fontSize: 22, fontWeight: 700, color: theme.success }, children: grandTotal < 1 ? grandTotal.toFixed(3) : grandTotal.toFixed(1) }),
|
|
4160
4155
|
/* @__PURE__ */ jsxs17("div", { style: { fontSize: 10, color: theme.textMuted, marginTop: 2 }, children: [
|
|
4161
4156
|
allKeys.length,
|
|
4162
4157
|
" steps \xB7 ",
|