footprint-explainable-ui 0.14.6 → 0.14.7

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 CHANGED
@@ -4155,9 +4155,27 @@ function KeyedRecorderView({
4155
4155
  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 }),
4156
4156
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { padding: 12, flex: 1, overflow: "auto" }, children: [
4157
4157
  preferredOperation === "aggregate" ? (
4158
- /* AGGREGATE primary: collect silently during scrub, reveal grand total at end */
4158
+ /* AGGREGATE: collect silently during scrub, button at end to reveal total */
4159
4159
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
4160
- isAtEnd ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { padding: "14px 16px", background: `color-mix(in srgb, ${theme.success} 12%, transparent)`, borderRadius: 8, border: `1px solid ${theme.success}44`, marginBottom: 16 }, children: [
4160
+ isAtEnd ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { marginBottom: 16 }, children: !showAggregate ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4161
+ "button",
4162
+ {
4163
+ onClick: () => setShowAggregate(true),
4164
+ style: {
4165
+ background: theme.primary,
4166
+ color: "#fff",
4167
+ border: "none",
4168
+ borderRadius: 8,
4169
+ padding: "12px 20px",
4170
+ fontSize: 13,
4171
+ fontWeight: 600,
4172
+ cursor: "pointer",
4173
+ fontFamily: "inherit",
4174
+ width: "100%"
4175
+ },
4176
+ children: "Aggregate \u2014 Show Grand Total"
4177
+ }
4178
+ ) : /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { padding: "14px 16px", background: `color-mix(in srgb, ${theme.success} 12%, transparent)`, borderRadius: 8, border: `1px solid ${theme.success}44` }, children: [
4161
4179
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 6, fontWeight: 600 }, children: "Aggregate \u2014 grand total" }),
4162
4180
  numFieldKey && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { fontSize: 26, fontWeight: 700, color: theme.success }, children: [
4163
4181
  grandTotal < 1 ? grandTotal.toFixed(3) : grandTotal.toFixed(1),
@@ -4168,19 +4186,19 @@ function KeyedRecorderView({
4168
4186
  " steps"
4169
4187
  ] })
4170
4188
  ] })
4171
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { padding: "10px 14px", background: `color-mix(in srgb, ${theme.textMuted} 6%, transparent)`, borderRadius: 6, marginBottom: 16, border: `1px dashed ${theme.border}` }, children: [
4189
+ ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { padding: "10px 14px", background: `color-mix(in srgb, ${theme.textMuted} 6%, transparent)`, borderRadius: 6, marginBottom: 16, border: `1px dashed ${theme.border}` }, children: [
4172
4190
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", fontWeight: 600 }, children: "Collecting data..." }),
4173
4191
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { fontSize: 11, color: theme.textMuted, marginTop: 4 }, children: [
4174
4192
  visibleEntries.length,
4175
4193
  " of ",
4176
4194
  allKeys.length,
4177
- " steps collected. Scrub to end for aggregate total."
4195
+ " steps collected. Scrub to end to aggregate."
4178
4196
  ] })
4179
4197
  ] }),
4180
4198
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 6, fontWeight: 600 }, children: "Per-step detail" })
4181
4199
  ] })
4182
4200
  ) : preferredOperation === "accumulate" ? (
4183
- /* ACCUMULATE primary: running total prominent, per-step listed */
4201
+ /* ACCUMULATE: running total grows with slider — IS the total at end, no button */
4184
4202
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
4185
4203
  numFieldKey && visibleEntries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { padding: "10px 14px", background: `color-mix(in srgb, ${theme.primary} 8%, transparent)`, borderRadius: 6, marginBottom: 16 }, children: [
4186
4204
  /* @__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" }),
@@ -4197,7 +4215,7 @@ function KeyedRecorderView({
4197
4215
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 10, color: theme.textMuted, textTransform: "uppercase", letterSpacing: "0.08em", marginBottom: 6, fontWeight: 600 }, children: "Per-step detail" })
4198
4216
  ] })
4199
4217
  ) : (
4200
- /* TRANSLATE primary: per-step entries prominent */
4218
+ /* TRANSLATE: per-step entries prominent, no totals */
4201
4219
  /* @__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" })
4202
4220
  ),
4203
4221
  visibleEntries.map((key) => {
@@ -4210,34 +4228,7 @@ function KeyedRecorderView({
4210
4228
  numVal !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { style: { color: theme.primary, fontWeight: 700, marginLeft: 8 }, children: numVal < 1 ? numVal.toFixed(3) : numVal.toFixed(1) })
4211
4229
  ] }, key);
4212
4230
  }),
4213
- 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..." }),
4214
- preferredOperation === "accumulate" && isAtEnd && numFieldKey && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { marginTop: 16 }, children: !showAggregate ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4215
- "button",
4216
- {
4217
- onClick: () => setShowAggregate(true),
4218
- style: {
4219
- background: theme.primary,
4220
- color: "#fff",
4221
- border: "none",
4222
- borderRadius: 6,
4223
- padding: "10px 20px",
4224
- fontSize: 12,
4225
- fontWeight: 600,
4226
- cursor: "pointer",
4227
- fontFamily: "inherit",
4228
- width: "100%"
4229
- },
4230
- children: "Show Aggregate \u2014 Grand Total"
4231
- }
4232
- ) : /* @__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: [
4233
- /* @__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" }),
4234
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontSize: 22, fontWeight: 700, color: theme.success }, children: grandTotal < 1 ? grandTotal.toFixed(3) : grandTotal.toFixed(1) }),
4235
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { fontSize: 10, color: theme.textMuted, marginTop: 2 }, children: [
4236
- allKeys.length,
4237
- " steps \xB7 ",
4238
- numFieldKey
4239
- ] })
4240
- ] }) })
4231
+ 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..." })
4241
4232
  ] })
4242
4233
  ] });
4243
4234
  }