@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 CHANGED
@@ -4474,7 +4474,15 @@ function DonutChart({
4474
4474
  const pct = total ? Math.round(Number(s.value) / total * 100) : 0;
4475
4475
  return {
4476
4476
  key: s.id,
4477
- label: `${s.label} ${formatPercent(pct)} \xB7 ${valueFormat(s.value)}`,
4477
+ label: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
4478
+ s.label,
4479
+ " ",
4480
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { className: "fd-donut-legend-value", children: [
4481
+ formatPercent(pct),
4482
+ " \xB7 ",
4483
+ valueFormat(s.value)
4484
+ ] })
4485
+ ] }),
4478
4486
  color: segmentColor(i, s),
4479
4487
  // The row's accessible name (ChartLegend bubble={false}): it must contain the row's visible
4480
4488
  // text, label then percent, so a person who speaks what they see reaches the row.
@@ -6412,7 +6420,7 @@ function FieldHelpButton({ field, onFieldHelp }) {
6412
6420
  label: "Help: " + field.label,
6413
6421
  title: void 0,
6414
6422
  className: "fd-filterbar-help",
6415
- onClick: () => onFieldHelp?.(field.key)
6423
+ onClick: (e) => onFieldHelp?.(field.key, e.currentTarget)
6416
6424
  }
6417
6425
  ) });
6418
6426
  }