qt-ui-kit 1.0.110 → 1.0.112

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 CHANGED
@@ -15617,20 +15617,39 @@ function PreviewCard({
15617
15617
  ] }),
15618
15618
  body && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex flex-col max-w-full w-full wrap-anywhere", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "line-clamp-2 body-small", children: body }) }),
15619
15619
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "w-full relative flex place-content-between place-items-center", children: [
15620
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex flex-row gap-2", children: eventBadges?.map((badge, index) => {
15621
- if (badge.type === "fire") {
15622
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { onClick: (e) => {
15623
- e.stopPropagation();
15624
- setoverrideMenuOpen(!overrideMenuOpen);
15625
- }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CategoryBadge, { active: eventCategory === "fire" }) }, index);
15626
- } else if (badge.type === "insight") {
15627
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-row gap-1 items-center bg-qtpurple-200 border-qtpurple-500 pl-1 pr-2 py-0.5 border-2 border-solid rounded-lg", children: [
15628
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InsightsIcon2, { size: 16, color: "#4F3ED0" }),
15629
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "font-bold text-xs", children: badge.label || "Test" })
15630
- ] }, index);
15631
- }
15632
- return null;
15633
- }) }) }),
15620
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-row gap-2", children: [
15621
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
15622
+ "div",
15623
+ {
15624
+ onClick: (e) => {
15625
+ e.stopPropagation();
15626
+ setoverrideMenuOpen(!overrideMenuOpen);
15627
+ },
15628
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
15629
+ CategoryBadge,
15630
+ {
15631
+ active: eventBadges?.some((b) => b.type === "fire") && eventCategory === "fire"
15632
+ }
15633
+ )
15634
+ }
15635
+ ),
15636
+ eventBadges?.map((badge, index) => {
15637
+ if (badge.type === "insight") {
15638
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
15639
+ "div",
15640
+ {
15641
+ className: "flex flex-row gap-1 items-center bg-qtpurple-200 border-qtpurple-500 pl-1 pr-2 py-0.5 border-2 border-solid rounded-lg",
15642
+ children: [
15643
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InsightsIcon2, { size: 16, color: "#4F3ED0" }),
15644
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "font-bold text-xs", children: badge.label || "Test" })
15645
+ ]
15646
+ },
15647
+ index
15648
+ );
15649
+ }
15650
+ return null;
15651
+ })
15652
+ ] }),
15634
15653
  overrideMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute right-[56%] top-[140%]", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
15635
15654
  DropDown,
15636
15655
  {