@flytedan/flytebot-design-system 0.49.1 → 0.49.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
@@ -2029,7 +2029,7 @@ function Tag({ children, icon, selected = false, tone = "neutral", onRemove, onC
2029
2029
  ...rest,
2030
2030
  children: [
2031
2031
  icon ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("i", { className: "ph ph-" + icon, "aria-hidden": "true" }) : null,
2032
- children,
2032
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "fd-tag-label", children }),
2033
2033
  onRemove ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2034
2034
  "span",
2035
2035
  {
@@ -2811,7 +2811,7 @@ function BarList({
2811
2811
  const isEmpty = state === "ready" && ordered.every((r) => !(Number(r.value) > 0));
2812
2812
  const effectiveState = isEmpty ? "empty" : state;
2813
2813
  const maxValue = ordered.reduce((m, r) => Math.max(m, Number(r.value) || 0), 0) || 1;
2814
- const effectiveTotal = total != null ? total : ordered.reduce((n, r) => n + (Number(r.value) || 0), 0);
2814
+ const effectiveTotal = total != null ? total : rows.reduce((n, r) => n + (Number(r.value) || 0), 0);
2815
2815
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: ["fd-barlist", className].filter(Boolean).join(" "), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2816
2816
  LoadingRegion,
2817
2817
  {
@@ -4564,11 +4564,11 @@ function FilterBar({ fields = [], filters, onFilterChange, onFilterRemove, align
4564
4564
  };
4565
4565
  const chipText = field.label + (set ? ": " + chipLabel(field, value) : "");
4566
4566
  if (field.type === "text") {
4567
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, children: chipText }, field.key);
4567
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, title: chipText, children: chipText }, field.key);
4568
4568
  }
4569
4569
  if (field.type === "select") {
4570
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { children: [
4571
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ref: chipRef, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, children: chipText }) }),
4570
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { className: "fd-filterbar-chip", children: [
4571
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ref: chipRef, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, title: chipText, children: chipText }) }),
4572
4572
  editing ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4573
4573
  Popover,
4574
4574
  {
@@ -4602,8 +4602,8 @@ function FilterBar({ fields = [], filters, onFilterChange, onFilterRemove, align
4602
4602
  ] }, field.key);
4603
4603
  }
4604
4604
  if (field.type === "multiSelect") {
4605
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { children: [
4606
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ref: chipRef, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, children: chipText }) }),
4605
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { className: "fd-filterbar-chip", children: [
4606
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ref: chipRef, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, title: chipText, children: chipText }) }),
4607
4607
  editing ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4608
4608
  MultiSelectPanel,
4609
4609
  {
@@ -4617,8 +4617,8 @@ function FilterBar({ fields = [], filters, onFilterChange, onFilterRemove, align
4617
4617
  ] }, field.key);
4618
4618
  }
4619
4619
  if (field.type === "range") {
4620
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { children: [
4621
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ref: chipRef, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, children: chipText }) }),
4620
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { className: "fd-filterbar-chip", children: [
4621
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ref: chipRef, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, title: chipText, children: chipText }) }),
4622
4622
  editing ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4623
4623
  RangePanel,
4624
4624
  {
@@ -4632,8 +4632,8 @@ function FilterBar({ fields = [], filters, onFilterChange, onFilterRemove, align
4632
4632
  ] }, field.key);
4633
4633
  }
4634
4634
  if (field.type === "date") {
4635
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { children: [
4636
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ref: chipRef, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, children: chipText }) }),
4635
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { className: "fd-filterbar-chip", children: [
4636
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ref: chipRef, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { selected: true, onClick: toggleOrClose, onRemove: remove, title: chipText, children: chipText }) }),
4637
4637
  editing ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4638
4638
  DatePanel,
4639
4639
  {