qt-ui-kit 1.0.87 → 1.0.89

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.mjs CHANGED
@@ -16223,7 +16223,7 @@ function EventCard({
16223
16223
  {
16224
16224
  className: clsx8(
16225
16225
  eventType == "message" /* MESSAGE */ ? "flex-col-reverse" : "flex-col",
16226
- "overflow-y-auto flex gap-4 w-full"
16226
+ "overflow-y-auto flex gap-4 w-full h-full"
16227
16227
  ),
16228
16228
  children: getEventBody()
16229
16229
  }
@@ -16799,6 +16799,7 @@ function SearchBar({ loading, results, onUpdate }) {
16799
16799
  const clearQuery = () => {
16800
16800
  setQuery("");
16801
16801
  };
16802
+ const totalCount = results?.reduce((acc, r) => acc + r.count, 0) ?? 0;
16802
16803
  return /* @__PURE__ */ jsxs28("div", { className: "w-full space-y-3", children: [
16803
16804
  /* @__PURE__ */ jsxs28("div", { className: "flex items-center px-4 py-2 rounded-full bg-gray-100 gap-2 text-gray-900", children: [
16804
16805
  loading ? /* @__PURE__ */ jsx40(Loading, {}) : /* @__PURE__ */ jsx40(Search, {}),
@@ -16816,9 +16817,9 @@ function SearchBar({ loading, results, onUpdate }) {
16816
16817
  ] }),
16817
16818
  results && /* @__PURE__ */ jsxs28("div", { className: "text-sm", children: [
16818
16819
  /* @__PURE__ */ jsxs28("p", { className: "text-gray-700 font-medium", children: [
16819
- "Search results (",
16820
- results.reduce((acc, r) => acc + r.count, 0),
16821
- "):"
16820
+ "Search results",
16821
+ totalCount > 0 ? ` (${totalCount})` : "",
16822
+ ":"
16822
16823
  ] }),
16823
16824
  /* @__PURE__ */ jsx40("div", { className: "flex flex-wrap gap-2 mt-2", children: results.map((r) => /* @__PURE__ */ jsxs28(
16824
16825
  "span",
@@ -16826,9 +16827,7 @@ function SearchBar({ loading, results, onUpdate }) {
16826
16827
  className: "px-3 py-1 rounded-full bg-gray-100 text-gray-700",
16827
16828
  children: [
16828
16829
  r.label,
16829
- " (",
16830
- r.count,
16831
- ")"
16830
+ r.count > 0 ? ` (${r.count})` : ""
16832
16831
  ]
16833
16832
  },
16834
16833
  r.label