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.d.mts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +69 -79
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +69 -79
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +17 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -83,12 +83,12 @@ type Props$6 = {
|
|
|
83
83
|
declare function PreviewCard({ eventID, onSelected, selected, onChecked, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, read, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
84
84
|
|
|
85
85
|
type NavButtonKey = "queue" | "account" | "logout";
|
|
86
|
-
type NavButtonConfig = {
|
|
86
|
+
type NavButtonConfig$1 = {
|
|
87
87
|
active?: boolean;
|
|
88
88
|
onClick?: () => void;
|
|
89
89
|
};
|
|
90
90
|
type Props$5 = {
|
|
91
|
-
buttons?: Partial<Record<NavButtonKey, NavButtonConfig>>;
|
|
91
|
+
buttons?: Partial<Record<NavButtonKey, NavButtonConfig$1>>;
|
|
92
92
|
};
|
|
93
93
|
declare function NavBar({ buttons }: Props$5): react_jsx_runtime.JSX.Element;
|
|
94
94
|
|
|
@@ -147,11 +147,15 @@ declare function TicketBody({ issueNumber, notification, project, task, dueDate,
|
|
|
147
147
|
|
|
148
148
|
declare function SearchBar(): react_jsx_runtime.JSX.Element;
|
|
149
149
|
|
|
150
|
+
type FilterButtonKey = "fires" | "unread" | "incomplete" | "more" | IntegrationService;
|
|
151
|
+
type NavButtonConfig = {
|
|
152
|
+
active?: boolean;
|
|
153
|
+
onClick?: () => void;
|
|
154
|
+
};
|
|
150
155
|
type Props = {
|
|
151
|
-
|
|
152
|
-
onAddMore?: () => void;
|
|
156
|
+
buttons?: Partial<Record<FilterButtonKey, NavButtonConfig>>;
|
|
153
157
|
};
|
|
154
|
-
declare function FilterBar({
|
|
158
|
+
declare function FilterBar({ buttons }: Props): react_jsx_runtime.JSX.Element;
|
|
155
159
|
|
|
156
160
|
type IconSize = 16 | 20 | 24 | 36;
|
|
157
161
|
|
package/dist/index.d.ts
CHANGED
|
@@ -83,12 +83,12 @@ type Props$6 = {
|
|
|
83
83
|
declare function PreviewCard({ eventID, onSelected, selected, onChecked, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, read, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
84
84
|
|
|
85
85
|
type NavButtonKey = "queue" | "account" | "logout";
|
|
86
|
-
type NavButtonConfig = {
|
|
86
|
+
type NavButtonConfig$1 = {
|
|
87
87
|
active?: boolean;
|
|
88
88
|
onClick?: () => void;
|
|
89
89
|
};
|
|
90
90
|
type Props$5 = {
|
|
91
|
-
buttons?: Partial<Record<NavButtonKey, NavButtonConfig>>;
|
|
91
|
+
buttons?: Partial<Record<NavButtonKey, NavButtonConfig$1>>;
|
|
92
92
|
};
|
|
93
93
|
declare function NavBar({ buttons }: Props$5): react_jsx_runtime.JSX.Element;
|
|
94
94
|
|
|
@@ -147,11 +147,15 @@ declare function TicketBody({ issueNumber, notification, project, task, dueDate,
|
|
|
147
147
|
|
|
148
148
|
declare function SearchBar(): react_jsx_runtime.JSX.Element;
|
|
149
149
|
|
|
150
|
+
type FilterButtonKey = "fires" | "unread" | "incomplete" | "more" | IntegrationService;
|
|
151
|
+
type NavButtonConfig = {
|
|
152
|
+
active?: boolean;
|
|
153
|
+
onClick?: () => void;
|
|
154
|
+
};
|
|
150
155
|
type Props = {
|
|
151
|
-
|
|
152
|
-
onAddMore?: () => void;
|
|
156
|
+
buttons?: Partial<Record<FilterButtonKey, NavButtonConfig>>;
|
|
153
157
|
};
|
|
154
|
-
declare function FilterBar({
|
|
158
|
+
declare function FilterBar({ buttons }: Props): react_jsx_runtime.JSX.Element;
|
|
155
159
|
|
|
156
160
|
type IconSize = 16 | 20 | 24 | 36;
|
|
157
161
|
|
package/dist/index.js
CHANGED
|
@@ -11199,15 +11199,15 @@ module.exports = __toCommonJS(index_exports);
|
|
|
11199
11199
|
var import_react = require("react");
|
|
11200
11200
|
|
|
11201
11201
|
// src/types/global.ts
|
|
11202
|
-
var IntegrationService = /* @__PURE__ */ ((
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
return
|
|
11202
|
+
var IntegrationService = /* @__PURE__ */ ((IntegrationService6) => {
|
|
11203
|
+
IntegrationService6["SLACK"] = "slack";
|
|
11204
|
+
IntegrationService6["GMAIL"] = "google_mail";
|
|
11205
|
+
IntegrationService6["GCAL"] = "google_calendar";
|
|
11206
|
+
IntegrationService6["MSTEAMS"] = "microsoft_teams";
|
|
11207
|
+
IntegrationService6["MSMAIL"] = "microsoft_mail";
|
|
11208
|
+
IntegrationService6["MSCAL"] = "microsoft_calendar";
|
|
11209
|
+
IntegrationService6["AJIRA"] = "atlassian_jira";
|
|
11210
|
+
return IntegrationService6;
|
|
11211
11211
|
})(IntegrationService || {});
|
|
11212
11212
|
var BaseIconName = /* @__PURE__ */ ((BaseIconName2) => {
|
|
11213
11213
|
BaseIconName2["SEARCH"] = "search";
|
|
@@ -15915,11 +15915,11 @@ function EventCard({
|
|
|
15915
15915
|
"div",
|
|
15916
15916
|
{
|
|
15917
15917
|
className: (0, import_clsx7.default)(
|
|
15918
|
-
"flex flex-col rounded-2xl max-w-[765px] w-full
|
|
15918
|
+
"flex flex-col rounded-2xl max-w-[765px] w-full max-h-full border-qtneutral-500 border-[2px] gap-8",
|
|
15919
15919
|
eventType == "message" /* MESSAGE */ ? "bg-qtneutral-200" : "bg-white py-4 pl-4 pr-2"
|
|
15920
15920
|
),
|
|
15921
15921
|
children: [
|
|
15922
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "overflow-auto flex flex-col gap-4 w-full", children: getEventBody() }),
|
|
15922
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "overflow-y-auto flex flex-col gap-4 w-full", children: getEventBody() }),
|
|
15923
15923
|
eventType == "message" /* MESSAGE */ && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
15924
15924
|
IntelCard,
|
|
15925
15925
|
{
|
|
@@ -15981,7 +15981,14 @@ var import_react_markdown = __toESM(require("react-markdown"));
|
|
|
15981
15981
|
var import_remark_gfm = __toESM(require("remark-gfm"));
|
|
15982
15982
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
15983
15983
|
function MarkdownRenderer({ content, truncated }) {
|
|
15984
|
-
|
|
15984
|
+
console.log("trunk", content, truncated);
|
|
15985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
15986
|
+
"div",
|
|
15987
|
+
{
|
|
15988
|
+
className: (0, import_clsx8.default)("flex flex-col markdown", truncated && "line-clamp-3"),
|
|
15989
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_markdown.default, { remarkPlugins: [import_remark_gfm.default], children: content })
|
|
15990
|
+
}
|
|
15991
|
+
);
|
|
15985
15992
|
}
|
|
15986
15993
|
|
|
15987
15994
|
// src/components/organisms/chat_messages/chat_bubble/chat_bubble.tsx
|
|
@@ -16000,9 +16007,9 @@ function ChatBubble({
|
|
|
16000
16007
|
const [uniqueEmojis, setUniqueEmojis] = (0, import_react3.useState)(
|
|
16001
16008
|
/* @__PURE__ */ new Map()
|
|
16002
16009
|
);
|
|
16003
|
-
|
|
16010
|
+
console.log("tt", truncatedText, text);
|
|
16004
16011
|
(0, import_react3.useEffect)(() => {
|
|
16005
|
-
if (
|
|
16012
|
+
if (text && text.length > 450) {
|
|
16006
16013
|
setTruncatedText(true);
|
|
16007
16014
|
}
|
|
16008
16015
|
}, [text]);
|
|
@@ -16678,24 +16685,31 @@ function PlusLarge({
|
|
|
16678
16685
|
// src/components/molecules/buttons/nav_button/filter_nav_button/filter_nav_button.tsx
|
|
16679
16686
|
var import_clsx11 = __toESM(require("clsx"));
|
|
16680
16687
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
16681
|
-
function FilterNavButton({ icon, label, active }) {
|
|
16682
|
-
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
16683
|
-
|
|
16684
|
-
|
|
16685
|
-
|
|
16686
|
-
|
|
16687
|
-
|
|
16688
|
+
function FilterNavButton({ icon, label, active, onClick }) {
|
|
16689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
16690
|
+
"div",
|
|
16691
|
+
{
|
|
16692
|
+
className: "w-min h-min flex flex-none flex-col place-items-center gap-2",
|
|
16693
|
+
onClick,
|
|
16694
|
+
children: [
|
|
16695
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
16696
|
+
"div",
|
|
16697
|
+
{
|
|
16698
|
+
className: (0, import_clsx11.default)(
|
|
16699
|
+
"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"
|
|
16700
|
+
),
|
|
16701
|
+
children: icon
|
|
16702
|
+
}
|
|
16688
16703
|
),
|
|
16689
|
-
children:
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
] });
|
|
16704
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "font-medium text-[9px] text-qtneutral-900 w-full text-center", children: label })
|
|
16705
|
+
]
|
|
16706
|
+
}
|
|
16707
|
+
);
|
|
16694
16708
|
}
|
|
16695
16709
|
|
|
16696
16710
|
// src/components/organisms/filter_bar/filter_bar.tsx
|
|
16697
16711
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
16698
|
-
function FilterBar({
|
|
16712
|
+
function FilterBar({ buttons }) {
|
|
16699
16713
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-col w-[54px] place-items-center gap-4", children: [
|
|
16700
16714
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16701
16715
|
FilterNavButton,
|
|
@@ -16703,11 +16717,11 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16703
16717
|
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16704
16718
|
FireIcon,
|
|
16705
16719
|
{
|
|
16706
|
-
variant:
|
|
16720
|
+
variant: buttons?.fires?.active ? void 0 : "none" /* OUTLINED */
|
|
16707
16721
|
}
|
|
16708
16722
|
),
|
|
16709
16723
|
label: "Fires",
|
|
16710
|
-
|
|
16724
|
+
onClick: buttons?.fires?.onClick
|
|
16711
16725
|
}
|
|
16712
16726
|
),
|
|
16713
16727
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
@@ -16717,10 +16731,11 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16717
16731
|
Mail,
|
|
16718
16732
|
{
|
|
16719
16733
|
size: 36,
|
|
16720
|
-
fillColor:
|
|
16734
|
+
fillColor: buttons?.unread?.active ? "#BFF4F6" : void 0
|
|
16721
16735
|
}
|
|
16722
16736
|
),
|
|
16723
|
-
label: "Unread"
|
|
16737
|
+
label: "Unread",
|
|
16738
|
+
onClick: buttons?.unread?.onClick
|
|
16724
16739
|
}
|
|
16725
16740
|
),
|
|
16726
16741
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
@@ -16730,77 +16745,53 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16730
16745
|
CheckBox,
|
|
16731
16746
|
{
|
|
16732
16747
|
size: 36,
|
|
16733
|
-
fillColor:
|
|
16748
|
+
fillColor: buttons?.incomplete?.active ? "#E8FE99" : void 0
|
|
16734
16749
|
}
|
|
16735
16750
|
),
|
|
16736
|
-
label: "Done"
|
|
16751
|
+
label: "Not Done",
|
|
16752
|
+
onClick: buttons?.incomplete?.onClick
|
|
16737
16753
|
}
|
|
16738
16754
|
),
|
|
16739
16755
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
|
|
16740
16756
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16741
16757
|
FilterNavButton,
|
|
16742
16758
|
{
|
|
16743
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16744
|
-
|
|
16745
|
-
{
|
|
16746
|
-
className: activeFilters?.has("slack" /* SLACK */) ? "" : "grayscale",
|
|
16747
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SlackIcon, {})
|
|
16748
|
-
}
|
|
16749
|
-
)
|
|
16759
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: buttons?.slack?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SlackIcon, {}) }),
|
|
16760
|
+
onClick: buttons?.slack?.onClick
|
|
16750
16761
|
}
|
|
16751
16762
|
),
|
|
16752
16763
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16753
16764
|
FilterNavButton,
|
|
16754
16765
|
{
|
|
16755
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16756
|
-
|
|
16757
|
-
{
|
|
16758
|
-
className: activeFilters?.has("google_mail" /* GMAIL */) ? "" : "grayscale",
|
|
16759
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GoogleMailIcon, {})
|
|
16760
|
-
}
|
|
16761
|
-
)
|
|
16766
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: buttons?.google_mail?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GoogleMailIcon, {}) }),
|
|
16767
|
+
onClick: buttons?.google_mail?.onClick
|
|
16762
16768
|
}
|
|
16763
16769
|
),
|
|
16764
16770
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16765
16771
|
FilterNavButton,
|
|
16766
16772
|
{
|
|
16767
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16768
|
-
|
|
16769
|
-
{
|
|
16770
|
-
className: activeFilters?.has("google_calendar" /* GCAL */) ? "" : "grayscale",
|
|
16771
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GoogleCalendarIcon, {})
|
|
16772
|
-
}
|
|
16773
|
-
)
|
|
16773
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: buttons?.google_calendar?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GoogleCalendarIcon, {}) }),
|
|
16774
|
+
onClick: buttons?.google_calendar?.onClick
|
|
16774
16775
|
}
|
|
16775
16776
|
),
|
|
16776
16777
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16777
16778
|
FilterNavButton,
|
|
16778
16779
|
{
|
|
16779
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
16783
|
-
|
|
16784
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AtlassianIcon, {}),
|
|
16785
|
-
" "
|
|
16786
|
-
]
|
|
16787
|
-
}
|
|
16788
|
-
)
|
|
16780
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: buttons?.atlassian_jira?.active ? "" : "grayscale", children: [
|
|
16781
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AtlassianIcon, {}),
|
|
16782
|
+
" "
|
|
16783
|
+
] }),
|
|
16784
|
+
onClick: buttons?.atlassian_jira?.onClick
|
|
16789
16785
|
}
|
|
16790
16786
|
),
|
|
16791
16787
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16792
16788
|
FilterNavButton,
|
|
16793
16789
|
{
|
|
16794
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
16795
|
-
|
|
16796
|
-
|
|
16797
|
-
|
|
16798
|
-
|
|
16799
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MicrosoftTeamsIcon, {}),
|
|
16800
|
-
" "
|
|
16801
|
-
]
|
|
16802
|
-
}
|
|
16803
|
-
)
|
|
16790
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: buttons?.microsoft_teams?.active ? "" : "grayscale", children: [
|
|
16791
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MicrosoftTeamsIcon, {}),
|
|
16792
|
+
" "
|
|
16793
|
+
] }),
|
|
16794
|
+
onClick: buttons?.microsoft_teams?.onClick
|
|
16804
16795
|
}
|
|
16805
16796
|
),
|
|
16806
16797
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
@@ -16809,19 +16800,18 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16809
16800
|
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
16810
16801
|
"div",
|
|
16811
16802
|
{
|
|
16812
|
-
className:
|
|
16813
|
-
"microsoft_mail" /* MSMAIL */ || "microsoft_calendar" /* MSCAL */
|
|
16814
|
-
) ? "" : "grayscale",
|
|
16803
|
+
className: buttons?.microsoft_calendar?.active || buttons?.microsoft_mail?.active ? "" : "grayscale",
|
|
16815
16804
|
children: [
|
|
16816
16805
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MicrosoftOutlookMailIcon, {}),
|
|
16817
16806
|
" "
|
|
16818
16807
|
]
|
|
16819
16808
|
}
|
|
16820
|
-
)
|
|
16809
|
+
),
|
|
16810
|
+
onClick: buttons?.microsoft_mail?.onClick || buttons?.microsoft_calendar?.onClick
|
|
16821
16811
|
}
|
|
16822
16812
|
),
|
|
16823
16813
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
|
|
16824
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { onClick:
|
|
16814
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { onClick: buttons?.more?.onClick, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(FilterNavButton, { icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PlusLarge, { size: 36 }) }) })
|
|
16825
16815
|
] });
|
|
16826
16816
|
}
|
|
16827
16817
|
|