qt-ui-kit 1.0.43 → 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.d.mts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +62 -78
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +62 -78
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +17 -2
- package/package.json +1 -1
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__ */ ((
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
return
|
|
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
|
|
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,6 +15954,7 @@ 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
|
+
console.log("trunk", content, truncated);
|
|
15957
15958
|
return /* @__PURE__ */ jsx31(
|
|
15958
15959
|
"div",
|
|
15959
15960
|
{
|
|
@@ -15979,9 +15980,9 @@ function ChatBubble({
|
|
|
15979
15980
|
const [uniqueEmojis, setUniqueEmojis] = useState3(
|
|
15980
15981
|
/* @__PURE__ */ new Map()
|
|
15981
15982
|
);
|
|
15982
|
-
|
|
15983
|
+
console.log("tt", truncatedText, text);
|
|
15983
15984
|
useEffect2(() => {
|
|
15984
|
-
if (
|
|
15985
|
+
if (text && text.length > 450) {
|
|
15985
15986
|
setTruncatedText(true);
|
|
15986
15987
|
}
|
|
15987
15988
|
}, [text]);
|
|
@@ -16657,24 +16658,31 @@ function PlusLarge({
|
|
|
16657
16658
|
// src/components/molecules/buttons/nav_button/filter_nav_button/filter_nav_button.tsx
|
|
16658
16659
|
import clsx11 from "clsx";
|
|
16659
16660
|
import { jsx as jsx41, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
16660
|
-
function FilterNavButton({ icon, label, active }) {
|
|
16661
|
-
return /* @__PURE__ */ jsxs27(
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16666
|
-
|
|
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
|
+
}
|
|
16667
16676
|
),
|
|
16668
|
-
children:
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
] });
|
|
16677
|
+
/* @__PURE__ */ jsx41("div", { className: "font-medium text-[9px] text-qtneutral-900 w-full text-center", children: label })
|
|
16678
|
+
]
|
|
16679
|
+
}
|
|
16680
|
+
);
|
|
16673
16681
|
}
|
|
16674
16682
|
|
|
16675
16683
|
// src/components/organisms/filter_bar/filter_bar.tsx
|
|
16676
16684
|
import { jsx as jsx42, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
16677
|
-
function FilterBar({
|
|
16685
|
+
function FilterBar({ buttons }) {
|
|
16678
16686
|
return /* @__PURE__ */ jsxs28("div", { className: "flex flex-col w-[54px] place-items-center gap-4", children: [
|
|
16679
16687
|
/* @__PURE__ */ jsx42(
|
|
16680
16688
|
FilterNavButton,
|
|
@@ -16682,11 +16690,11 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16682
16690
|
icon: /* @__PURE__ */ jsx42(
|
|
16683
16691
|
FireIcon,
|
|
16684
16692
|
{
|
|
16685
|
-
variant:
|
|
16693
|
+
variant: buttons?.fires?.active ? void 0 : "none" /* OUTLINED */
|
|
16686
16694
|
}
|
|
16687
16695
|
),
|
|
16688
16696
|
label: "Fires",
|
|
16689
|
-
|
|
16697
|
+
onClick: buttons?.fires?.onClick
|
|
16690
16698
|
}
|
|
16691
16699
|
),
|
|
16692
16700
|
/* @__PURE__ */ jsx42(
|
|
@@ -16696,10 +16704,11 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16696
16704
|
Mail,
|
|
16697
16705
|
{
|
|
16698
16706
|
size: 36,
|
|
16699
|
-
fillColor:
|
|
16707
|
+
fillColor: buttons?.unread?.active ? "#BFF4F6" : void 0
|
|
16700
16708
|
}
|
|
16701
16709
|
),
|
|
16702
|
-
label: "Unread"
|
|
16710
|
+
label: "Unread",
|
|
16711
|
+
onClick: buttons?.unread?.onClick
|
|
16703
16712
|
}
|
|
16704
16713
|
),
|
|
16705
16714
|
/* @__PURE__ */ jsx42(
|
|
@@ -16709,77 +16718,53 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16709
16718
|
CheckBox,
|
|
16710
16719
|
{
|
|
16711
16720
|
size: 36,
|
|
16712
|
-
fillColor:
|
|
16721
|
+
fillColor: buttons?.incomplete?.active ? "#E8FE99" : void 0
|
|
16713
16722
|
}
|
|
16714
16723
|
),
|
|
16715
|
-
label: "Done"
|
|
16724
|
+
label: "Not Done",
|
|
16725
|
+
onClick: buttons?.incomplete?.onClick
|
|
16716
16726
|
}
|
|
16717
16727
|
),
|
|
16718
16728
|
/* @__PURE__ */ jsx42("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
|
|
16719
16729
|
/* @__PURE__ */ jsx42(
|
|
16720
16730
|
FilterNavButton,
|
|
16721
16731
|
{
|
|
16722
|
-
icon: /* @__PURE__ */ jsx42(
|
|
16723
|
-
|
|
16724
|
-
{
|
|
16725
|
-
className: activeFilters?.has("slack" /* SLACK */) ? "" : "grayscale",
|
|
16726
|
-
children: /* @__PURE__ */ jsx42(SlackIcon, {})
|
|
16727
|
-
}
|
|
16728
|
-
)
|
|
16732
|
+
icon: /* @__PURE__ */ jsx42("div", { className: buttons?.slack?.active ? "" : "grayscale", children: /* @__PURE__ */ jsx42(SlackIcon, {}) }),
|
|
16733
|
+
onClick: buttons?.slack?.onClick
|
|
16729
16734
|
}
|
|
16730
16735
|
),
|
|
16731
16736
|
/* @__PURE__ */ jsx42(
|
|
16732
16737
|
FilterNavButton,
|
|
16733
16738
|
{
|
|
16734
|
-
icon: /* @__PURE__ */ jsx42(
|
|
16735
|
-
|
|
16736
|
-
{
|
|
16737
|
-
className: activeFilters?.has("google_mail" /* GMAIL */) ? "" : "grayscale",
|
|
16738
|
-
children: /* @__PURE__ */ jsx42(GoogleMailIcon, {})
|
|
16739
|
-
}
|
|
16740
|
-
)
|
|
16739
|
+
icon: /* @__PURE__ */ jsx42("div", { className: buttons?.google_mail?.active ? "" : "grayscale", children: /* @__PURE__ */ jsx42(GoogleMailIcon, {}) }),
|
|
16740
|
+
onClick: buttons?.google_mail?.onClick
|
|
16741
16741
|
}
|
|
16742
16742
|
),
|
|
16743
16743
|
/* @__PURE__ */ jsx42(
|
|
16744
16744
|
FilterNavButton,
|
|
16745
16745
|
{
|
|
16746
|
-
icon: /* @__PURE__ */ jsx42(
|
|
16747
|
-
|
|
16748
|
-
{
|
|
16749
|
-
className: activeFilters?.has("google_calendar" /* GCAL */) ? "" : "grayscale",
|
|
16750
|
-
children: /* @__PURE__ */ jsx42(GoogleCalendarIcon, {})
|
|
16751
|
-
}
|
|
16752
|
-
)
|
|
16746
|
+
icon: /* @__PURE__ */ jsx42("div", { className: buttons?.google_calendar?.active ? "" : "grayscale", children: /* @__PURE__ */ jsx42(GoogleCalendarIcon, {}) }),
|
|
16747
|
+
onClick: buttons?.google_calendar?.onClick
|
|
16753
16748
|
}
|
|
16754
16749
|
),
|
|
16755
16750
|
/* @__PURE__ */ jsx42(
|
|
16756
16751
|
FilterNavButton,
|
|
16757
16752
|
{
|
|
16758
|
-
icon: /* @__PURE__ */ jsxs28(
|
|
16759
|
-
|
|
16760
|
-
|
|
16761
|
-
|
|
16762
|
-
|
|
16763
|
-
/* @__PURE__ */ jsx42(AtlassianIcon, {}),
|
|
16764
|
-
" "
|
|
16765
|
-
]
|
|
16766
|
-
}
|
|
16767
|
-
)
|
|
16753
|
+
icon: /* @__PURE__ */ jsxs28("div", { className: buttons?.atlassian_jira?.active ? "" : "grayscale", children: [
|
|
16754
|
+
/* @__PURE__ */ jsx42(AtlassianIcon, {}),
|
|
16755
|
+
" "
|
|
16756
|
+
] }),
|
|
16757
|
+
onClick: buttons?.atlassian_jira?.onClick
|
|
16768
16758
|
}
|
|
16769
16759
|
),
|
|
16770
16760
|
/* @__PURE__ */ jsx42(
|
|
16771
16761
|
FilterNavButton,
|
|
16772
16762
|
{
|
|
16773
|
-
icon: /* @__PURE__ */ jsxs28(
|
|
16774
|
-
|
|
16775
|
-
|
|
16776
|
-
|
|
16777
|
-
|
|
16778
|
-
/* @__PURE__ */ jsx42(MicrosoftTeamsIcon, {}),
|
|
16779
|
-
" "
|
|
16780
|
-
]
|
|
16781
|
-
}
|
|
16782
|
-
)
|
|
16763
|
+
icon: /* @__PURE__ */ jsxs28("div", { className: buttons?.microsoft_teams?.active ? "" : "grayscale", children: [
|
|
16764
|
+
/* @__PURE__ */ jsx42(MicrosoftTeamsIcon, {}),
|
|
16765
|
+
" "
|
|
16766
|
+
] }),
|
|
16767
|
+
onClick: buttons?.microsoft_teams?.onClick
|
|
16783
16768
|
}
|
|
16784
16769
|
),
|
|
16785
16770
|
/* @__PURE__ */ jsx42(
|
|
@@ -16788,19 +16773,18 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16788
16773
|
icon: /* @__PURE__ */ jsxs28(
|
|
16789
16774
|
"div",
|
|
16790
16775
|
{
|
|
16791
|
-
className:
|
|
16792
|
-
"microsoft_mail" /* MSMAIL */ || "microsoft_calendar" /* MSCAL */
|
|
16793
|
-
) ? "" : "grayscale",
|
|
16776
|
+
className: buttons?.microsoft_calendar?.active || buttons?.microsoft_mail?.active ? "" : "grayscale",
|
|
16794
16777
|
children: [
|
|
16795
16778
|
/* @__PURE__ */ jsx42(MicrosoftOutlookMailIcon, {}),
|
|
16796
16779
|
" "
|
|
16797
16780
|
]
|
|
16798
16781
|
}
|
|
16799
|
-
)
|
|
16782
|
+
),
|
|
16783
|
+
onClick: buttons?.microsoft_mail?.onClick || buttons?.microsoft_calendar?.onClick
|
|
16800
16784
|
}
|
|
16801
16785
|
),
|
|
16802
16786
|
/* @__PURE__ */ jsx42("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
|
|
16803
|
-
/* @__PURE__ */ jsx42("div", { onClick:
|
|
16787
|
+
/* @__PURE__ */ jsx42("div", { onClick: buttons?.more?.onClick, children: /* @__PURE__ */ jsx42(FilterNavButton, { icon: /* @__PURE__ */ jsx42(PlusLarge, { size: 36 }) }) })
|
|
16804
16788
|
] });
|
|
16805
16789
|
}
|
|
16806
16790
|
|