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.mjs CHANGED
@@ -15589,20 +15589,39 @@ function PreviewCard({
15589
15589
  ] }),
15590
15590
  body && /* @__PURE__ */ jsx20("div", { className: "flex flex-col max-w-full w-full wrap-anywhere", children: /* @__PURE__ */ jsx20("p", { className: "line-clamp-2 body-small", children: body }) }),
15591
15591
  /* @__PURE__ */ jsx20("div", { className: "flex", children: /* @__PURE__ */ jsxs15("div", { className: "w-full relative flex place-content-between place-items-center", children: [
15592
- /* @__PURE__ */ jsx20("div", { children: /* @__PURE__ */ jsx20("div", { className: "flex flex-row gap-2", children: eventBadges?.map((badge, index) => {
15593
- if (badge.type === "fire") {
15594
- return /* @__PURE__ */ jsx20("div", { onClick: (e) => {
15595
- e.stopPropagation();
15596
- setoverrideMenuOpen(!overrideMenuOpen);
15597
- }, children: /* @__PURE__ */ jsx20(CategoryBadge, { active: eventCategory === "fire" }) }, index);
15598
- } else if (badge.type === "insight") {
15599
- return /* @__PURE__ */ jsxs15("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: [
15600
- /* @__PURE__ */ jsx20(InsightsIcon2, { size: 16, color: "#4F3ED0" }),
15601
- /* @__PURE__ */ jsx20("div", { className: "font-bold text-xs", children: badge.label || "Test" })
15602
- ] }, index);
15603
- }
15604
- return null;
15605
- }) }) }),
15592
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-row gap-2", children: [
15593
+ /* @__PURE__ */ jsx20(
15594
+ "div",
15595
+ {
15596
+ onClick: (e) => {
15597
+ e.stopPropagation();
15598
+ setoverrideMenuOpen(!overrideMenuOpen);
15599
+ },
15600
+ children: /* @__PURE__ */ jsx20(
15601
+ CategoryBadge,
15602
+ {
15603
+ active: eventBadges?.some((b) => b.type === "fire") && eventCategory === "fire"
15604
+ }
15605
+ )
15606
+ }
15607
+ ),
15608
+ eventBadges?.map((badge, index) => {
15609
+ if (badge.type === "insight") {
15610
+ return /* @__PURE__ */ jsxs15(
15611
+ "div",
15612
+ {
15613
+ 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",
15614
+ children: [
15615
+ /* @__PURE__ */ jsx20(InsightsIcon2, { size: 16, color: "#4F3ED0" }),
15616
+ /* @__PURE__ */ jsx20("div", { className: "font-bold text-xs", children: badge.label || "Test" })
15617
+ ]
15618
+ },
15619
+ index
15620
+ );
15621
+ }
15622
+ return null;
15623
+ })
15624
+ ] }),
15606
15625
  overrideMenuOpen && /* @__PURE__ */ jsx20("div", { className: "absolute right-[56%] top-[140%]", children: /* @__PURE__ */ jsx20(
15607
15626
  DropDown,
15608
15627
  {