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.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16250,7 +16250,7 @@ function EventCard({
|
|
|
16250
16250
|
{
|
|
16251
16251
|
className: (0, import_clsx8.default)(
|
|
16252
16252
|
eventType == "message" /* MESSAGE */ ? "flex-col-reverse" : "flex-col",
|
|
16253
|
-
"overflow-y-auto flex gap-4 w-full"
|
|
16253
|
+
"overflow-y-auto flex gap-4 w-full h-full"
|
|
16254
16254
|
),
|
|
16255
16255
|
children: getEventBody()
|
|
16256
16256
|
}
|
|
@@ -16826,6 +16826,7 @@ function SearchBar({ loading, results, onUpdate }) {
|
|
|
16826
16826
|
const clearQuery = () => {
|
|
16827
16827
|
setQuery("");
|
|
16828
16828
|
};
|
|
16829
|
+
const totalCount = results?.reduce((acc, r) => acc + r.count, 0) ?? 0;
|
|
16829
16830
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "w-full space-y-3", children: [
|
|
16830
16831
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex items-center px-4 py-2 rounded-full bg-gray-100 gap-2 text-gray-900", children: [
|
|
16831
16832
|
loading ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Loading, {}) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Search, {}),
|
|
@@ -16843,9 +16844,9 @@ function SearchBar({ loading, results, onUpdate }) {
|
|
|
16843
16844
|
] }),
|
|
16844
16845
|
results && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "text-sm", children: [
|
|
16845
16846
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("p", { className: "text-gray-700 font-medium", children: [
|
|
16846
|
-
"Search results
|
|
16847
|
-
|
|
16848
|
-
"
|
|
16847
|
+
"Search results",
|
|
16848
|
+
totalCount > 0 ? ` (${totalCount})` : "",
|
|
16849
|
+
":"
|
|
16849
16850
|
] }),
|
|
16850
16851
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex flex-wrap gap-2 mt-2", children: results.map((r) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
16851
16852
|
"span",
|
|
@@ -16853,9 +16854,7 @@ function SearchBar({ loading, results, onUpdate }) {
|
|
|
16853
16854
|
className: "px-3 py-1 rounded-full bg-gray-100 text-gray-700",
|
|
16854
16855
|
children: [
|
|
16855
16856
|
r.label,
|
|
16856
|
-
|
|
16857
|
-
r.count,
|
|
16858
|
-
")"
|
|
16857
|
+
r.count > 0 ? ` (${r.count})` : ""
|
|
16859
16858
|
]
|
|
16860
16859
|
},
|
|
16861
16860
|
r.label
|