qt-ui-kit 1.0.42 → 1.0.44

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
@@ -11172,15 +11172,15 @@ var require_lib7 = __commonJS({
11172
11172
  import { useState } from "react";
11173
11173
 
11174
11174
  // src/types/global.ts
11175
- var IntegrationService = /* @__PURE__ */ ((IntegrationService5) => {
11176
- IntegrationService5["SLACK"] = "slack";
11177
- IntegrationService5["GMAIL"] = "google_mail";
11178
- IntegrationService5["GCAL"] = "google_calendar";
11179
- IntegrationService5["MSTEAMS"] = "microsoft_teams";
11180
- IntegrationService5["MSMAIL"] = "microsoft_mail";
11181
- IntegrationService5["MSCAL"] = "microsoft_calendar";
11182
- IntegrationService5["AJIRA"] = "atlassian_jira";
11183
- return IntegrationService5;
11175
+ var IntegrationService = /* @__PURE__ */ ((IntegrationService6) => {
11176
+ IntegrationService6["SLACK"] = "slack";
11177
+ IntegrationService6["GMAIL"] = "google_mail";
11178
+ IntegrationService6["GCAL"] = "google_calendar";
11179
+ IntegrationService6["MSTEAMS"] = "microsoft_teams";
11180
+ IntegrationService6["MSMAIL"] = "microsoft_mail";
11181
+ IntegrationService6["MSCAL"] = "microsoft_calendar";
11182
+ IntegrationService6["AJIRA"] = "atlassian_jira";
11183
+ return IntegrationService6;
11184
11184
  })(IntegrationService || {});
11185
11185
  var BaseIconName = /* @__PURE__ */ ((BaseIconName2) => {
11186
11186
  BaseIconName2["SEARCH"] = "search";
@@ -15888,11 +15888,11 @@ function EventCard({
15888
15888
  "div",
15889
15889
  {
15890
15890
  className: clsx7(
15891
- "flex flex-col rounded-2xl max-w-[765px] w-full h-min max-h-full border-qtneutral-500 border-[2px] gap-8",
15891
+ "flex flex-col rounded-2xl max-w-[765px] w-full max-h-full border-qtneutral-500 border-[2px] gap-8",
15892
15892
  eventType == "message" /* MESSAGE */ ? "bg-qtneutral-200" : "bg-white py-4 pl-4 pr-2"
15893
15893
  ),
15894
15894
  children: [
15895
- /* @__PURE__ */ jsx28("div", { className: "overflow-auto flex flex-col gap-4 w-full", children: getEventBody() }),
15895
+ /* @__PURE__ */ jsx28("div", { className: "overflow-y-auto flex flex-col gap-4 w-full", children: getEventBody() }),
15896
15896
  eventType == "message" /* MESSAGE */ && /* @__PURE__ */ jsx28(
15897
15897
  IntelCard,
15898
15898
  {
@@ -15954,7 +15954,14 @@ import ReactMarkdown from "react-markdown";
15954
15954
  import remarkGfm from "remark-gfm";
15955
15955
  import { jsx as jsx31 } from "react/jsx-runtime";
15956
15956
  function MarkdownRenderer({ content, truncated }) {
15957
- return /* @__PURE__ */ jsx31("div", { className: clsx8("flex markdown", truncated && "line-clamp-3"), children: /* @__PURE__ */ jsx31(ReactMarkdown, { remarkPlugins: [remarkGfm], children: content }) });
15957
+ console.log("trunk", content, truncated);
15958
+ return /* @__PURE__ */ jsx31(
15959
+ "div",
15960
+ {
15961
+ className: clsx8("flex flex-col markdown", truncated && "line-clamp-3"),
15962
+ children: /* @__PURE__ */ jsx31(ReactMarkdown, { remarkPlugins: [remarkGfm], children: content })
15963
+ }
15964
+ );
15958
15965
  }
15959
15966
 
15960
15967
  // src/components/organisms/chat_messages/chat_bubble/chat_bubble.tsx
@@ -15973,9 +15980,9 @@ function ChatBubble({
15973
15980
  const [uniqueEmojis, setUniqueEmojis] = useState3(
15974
15981
  /* @__PURE__ */ new Map()
15975
15982
  );
15976
- const textLen = text?.length;
15983
+ console.log("tt", truncatedText, text);
15977
15984
  useEffect2(() => {
15978
- if (textLen && textLen > 450) {
15985
+ if (text && text.length > 450) {
15979
15986
  setTruncatedText(true);
15980
15987
  }
15981
15988
  }, [text]);
@@ -16651,24 +16658,31 @@ function PlusLarge({
16651
16658
  // src/components/molecules/buttons/nav_button/filter_nav_button/filter_nav_button.tsx
16652
16659
  import clsx11 from "clsx";
16653
16660
  import { jsx as jsx41, jsxs as jsxs27 } from "react/jsx-runtime";
16654
- function FilterNavButton({ icon, label, active }) {
16655
- return /* @__PURE__ */ jsxs27("div", { className: "w-min h-min flex flex-none flex-col place-items-center gap-2", children: [
16656
- /* @__PURE__ */ jsx41(
16657
- "div",
16658
- {
16659
- className: clsx11(
16660
- "w-[44px] h-[44px] flex flex-none flex-col place-items-center place-content-center rounded-xl hover:bg-qtneutral-200 hover:border-2 hover:border-qtneutral-500"
16661
+ function FilterNavButton({ icon, label, active, onClick }) {
16662
+ return /* @__PURE__ */ jsxs27(
16663
+ "div",
16664
+ {
16665
+ className: "w-min h-min flex flex-none flex-col place-items-center gap-2",
16666
+ onClick,
16667
+ children: [
16668
+ /* @__PURE__ */ jsx41(
16669
+ "div",
16670
+ {
16671
+ className: clsx11(
16672
+ "w-[44px] h-[44px] flex flex-none flex-col place-items-center place-content-center rounded-xl hover:bg-qtneutral-200 hover:border-2 hover:border-qtneutral-500"
16673
+ ),
16674
+ children: icon
16675
+ }
16661
16676
  ),
16662
- children: icon
16663
- }
16664
- ),
16665
- /* @__PURE__ */ jsx41("div", { className: "font-medium text-[0.7rem] text-qtneutral-900", children: label })
16666
- ] });
16677
+ /* @__PURE__ */ jsx41("div", { className: "font-medium text-[9px] text-qtneutral-900 w-full text-center", children: label })
16678
+ ]
16679
+ }
16680
+ );
16667
16681
  }
16668
16682
 
16669
16683
  // src/components/organisms/filter_bar/filter_bar.tsx
16670
16684
  import { jsx as jsx42, jsxs as jsxs28 } from "react/jsx-runtime";
16671
- function FilterBar({ activeFilters, onAddMore }) {
16685
+ function FilterBar({ buttons }) {
16672
16686
  return /* @__PURE__ */ jsxs28("div", { className: "flex flex-col w-[54px] place-items-center gap-4", children: [
16673
16687
  /* @__PURE__ */ jsx42(
16674
16688
  FilterNavButton,
@@ -16676,11 +16690,11 @@ function FilterBar({ activeFilters, onAddMore }) {
16676
16690
  icon: /* @__PURE__ */ jsx42(
16677
16691
  FireIcon,
16678
16692
  {
16679
- variant: activeFilters?.has("fires") ? void 0 : "none" /* OUTLINED */
16693
+ variant: buttons?.fires?.active ? void 0 : "none" /* OUTLINED */
16680
16694
  }
16681
16695
  ),
16682
16696
  label: "Fires",
16683
- active: true
16697
+ onClick: buttons?.fires?.onClick
16684
16698
  }
16685
16699
  ),
16686
16700
  /* @__PURE__ */ jsx42(
@@ -16690,10 +16704,11 @@ function FilterBar({ activeFilters, onAddMore }) {
16690
16704
  Mail,
16691
16705
  {
16692
16706
  size: 36,
16693
- fillColor: activeFilters?.has("new") ? "#BFF4F6" : void 0
16707
+ fillColor: buttons?.unread?.active ? "#BFF4F6" : void 0
16694
16708
  }
16695
16709
  ),
16696
- label: "Unread"
16710
+ label: "Unread",
16711
+ onClick: buttons?.unread?.onClick
16697
16712
  }
16698
16713
  ),
16699
16714
  /* @__PURE__ */ jsx42(
@@ -16703,77 +16718,53 @@ function FilterBar({ activeFilters, onAddMore }) {
16703
16718
  CheckBox,
16704
16719
  {
16705
16720
  size: 36,
16706
- fillColor: activeFilters?.has("done") ? "#E8FE99" : void 0
16721
+ fillColor: buttons?.incomplete?.active ? "#E8FE99" : void 0
16707
16722
  }
16708
16723
  ),
16709
- label: "Done"
16724
+ label: "Not Done",
16725
+ onClick: buttons?.incomplete?.onClick
16710
16726
  }
16711
16727
  ),
16712
16728
  /* @__PURE__ */ jsx42("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
16713
16729
  /* @__PURE__ */ jsx42(
16714
16730
  FilterNavButton,
16715
16731
  {
16716
- icon: /* @__PURE__ */ jsx42(
16717
- "div",
16718
- {
16719
- className: activeFilters?.has("slack" /* SLACK */) ? "" : "grayscale",
16720
- children: /* @__PURE__ */ jsx42(SlackIcon, {})
16721
- }
16722
- )
16732
+ icon: /* @__PURE__ */ jsx42("div", { className: buttons?.slack?.active ? "" : "grayscale", children: /* @__PURE__ */ jsx42(SlackIcon, {}) }),
16733
+ onClick: buttons?.slack?.onClick
16723
16734
  }
16724
16735
  ),
16725
16736
  /* @__PURE__ */ jsx42(
16726
16737
  FilterNavButton,
16727
16738
  {
16728
- icon: /* @__PURE__ */ jsx42(
16729
- "div",
16730
- {
16731
- className: activeFilters?.has("google_mail" /* GMAIL */) ? "" : "grayscale",
16732
- children: /* @__PURE__ */ jsx42(GoogleMailIcon, {})
16733
- }
16734
- )
16739
+ icon: /* @__PURE__ */ jsx42("div", { className: buttons?.google_mail?.active ? "" : "grayscale", children: /* @__PURE__ */ jsx42(GoogleMailIcon, {}) }),
16740
+ onClick: buttons?.google_mail?.onClick
16735
16741
  }
16736
16742
  ),
16737
16743
  /* @__PURE__ */ jsx42(
16738
16744
  FilterNavButton,
16739
16745
  {
16740
- icon: /* @__PURE__ */ jsx42(
16741
- "div",
16742
- {
16743
- className: activeFilters?.has("google_calendar" /* GCAL */) ? "" : "grayscale",
16744
- children: /* @__PURE__ */ jsx42(GoogleCalendarIcon, {})
16745
- }
16746
- )
16746
+ icon: /* @__PURE__ */ jsx42("div", { className: buttons?.google_calendar?.active ? "" : "grayscale", children: /* @__PURE__ */ jsx42(GoogleCalendarIcon, {}) }),
16747
+ onClick: buttons?.google_calendar?.onClick
16747
16748
  }
16748
16749
  ),
16749
16750
  /* @__PURE__ */ jsx42(
16750
16751
  FilterNavButton,
16751
16752
  {
16752
- icon: /* @__PURE__ */ jsxs28(
16753
- "div",
16754
- {
16755
- className: activeFilters?.has("atlassian_jira" /* AJIRA */) ? "" : "grayscale",
16756
- children: [
16757
- /* @__PURE__ */ jsx42(AtlassianIcon, {}),
16758
- " "
16759
- ]
16760
- }
16761
- )
16753
+ icon: /* @__PURE__ */ jsxs28("div", { className: buttons?.atlassian_jira?.active ? "" : "grayscale", children: [
16754
+ /* @__PURE__ */ jsx42(AtlassianIcon, {}),
16755
+ " "
16756
+ ] }),
16757
+ onClick: buttons?.atlassian_jira?.onClick
16762
16758
  }
16763
16759
  ),
16764
16760
  /* @__PURE__ */ jsx42(
16765
16761
  FilterNavButton,
16766
16762
  {
16767
- icon: /* @__PURE__ */ jsxs28(
16768
- "div",
16769
- {
16770
- className: activeFilters?.has("microsoft_teams" /* MSTEAMS */) ? "" : "grayscale",
16771
- children: [
16772
- /* @__PURE__ */ jsx42(MicrosoftTeamsIcon, {}),
16773
- " "
16774
- ]
16775
- }
16776
- )
16763
+ icon: /* @__PURE__ */ jsxs28("div", { className: buttons?.microsoft_teams?.active ? "" : "grayscale", children: [
16764
+ /* @__PURE__ */ jsx42(MicrosoftTeamsIcon, {}),
16765
+ " "
16766
+ ] }),
16767
+ onClick: buttons?.microsoft_teams?.onClick
16777
16768
  }
16778
16769
  ),
16779
16770
  /* @__PURE__ */ jsx42(
@@ -16782,19 +16773,18 @@ function FilterBar({ activeFilters, onAddMore }) {
16782
16773
  icon: /* @__PURE__ */ jsxs28(
16783
16774
  "div",
16784
16775
  {
16785
- className: activeFilters?.has(
16786
- "microsoft_mail" /* MSMAIL */ || "microsoft_calendar" /* MSCAL */
16787
- ) ? "" : "grayscale",
16776
+ className: buttons?.microsoft_calendar?.active || buttons?.microsoft_mail?.active ? "" : "grayscale",
16788
16777
  children: [
16789
16778
  /* @__PURE__ */ jsx42(MicrosoftOutlookMailIcon, {}),
16790
16779
  " "
16791
16780
  ]
16792
16781
  }
16793
- )
16782
+ ),
16783
+ onClick: buttons?.microsoft_mail?.onClick || buttons?.microsoft_calendar?.onClick
16794
16784
  }
16795
16785
  ),
16796
16786
  /* @__PURE__ */ jsx42("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
16797
- /* @__PURE__ */ jsx42("div", { onClick: onAddMore, children: /* @__PURE__ */ jsx42(FilterNavButton, { icon: /* @__PURE__ */ jsx42(PlusLarge, { size: 36 }) }) })
16787
+ /* @__PURE__ */ jsx42("div", { onClick: buttons?.more?.onClick, children: /* @__PURE__ */ jsx42(FilterNavButton, { icon: /* @__PURE__ */ jsx42(PlusLarge, { size: 36 }) }) })
16798
16788
  ] });
16799
16789
  }
16800
16790