@flytedan/flytebot-design-system 0.51.1 → 0.51.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 CHANGED
@@ -4726,8 +4726,10 @@ function FilterBar({ fields = [], filters, onFilterChange, onFilterRemove, align
4726
4726
  removeField(field);
4727
4727
  closeEditing();
4728
4728
  };
4729
- const chipText = field.label + (set ? ": " + chipLabel(field, value) : "");
4730
- const chip = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Tag, { icon: field.icon, selected: true, onClick: toggleOrClose, onRemove: remove, title: chipText, "aria-label": chipText, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MiddleEllipsis, { text: chipText }) });
4729
+ const valueText = set ? chipLabel(field, value) : "";
4730
+ const chipText = set ? field.label + ": " + valueText : field.label;
4731
+ const paintedText = field.icon && set ? valueText : chipText;
4732
+ const chip = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Tag, { icon: field.icon, selected: true, onClick: toggleOrClose, onRemove: remove, title: chipText, "aria-label": chipText, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MiddleEllipsis, { text: paintedText }) });
4731
4733
  if (field.type === "text") {
4732
4734
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "fd-filterbar-chip", children: chip }, field.key);
4733
4735
  }