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.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,6 +15981,7 @@ 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
|
+
console.log("trunk", content, truncated);
|
|
15984
15985
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
15985
15986
|
"div",
|
|
15986
15987
|
{
|
|
@@ -16006,9 +16007,9 @@ function ChatBubble({
|
|
|
16006
16007
|
const [uniqueEmojis, setUniqueEmojis] = (0, import_react3.useState)(
|
|
16007
16008
|
/* @__PURE__ */ new Map()
|
|
16008
16009
|
);
|
|
16009
|
-
|
|
16010
|
+
console.log("tt", truncatedText, text);
|
|
16010
16011
|
(0, import_react3.useEffect)(() => {
|
|
16011
|
-
if (
|
|
16012
|
+
if (text && text.length > 450) {
|
|
16012
16013
|
setTruncatedText(true);
|
|
16013
16014
|
}
|
|
16014
16015
|
}, [text]);
|
|
@@ -16684,24 +16685,31 @@ function PlusLarge({
|
|
|
16684
16685
|
// src/components/molecules/buttons/nav_button/filter_nav_button/filter_nav_button.tsx
|
|
16685
16686
|
var import_clsx11 = __toESM(require("clsx"));
|
|
16686
16687
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
16687
|
-
function FilterNavButton({ icon, label, active }) {
|
|
16688
|
-
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
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
|
+
}
|
|
16694
16703
|
),
|
|
16695
|
-
children:
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
|
|
16699
|
-
] });
|
|
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
|
+
);
|
|
16700
16708
|
}
|
|
16701
16709
|
|
|
16702
16710
|
// src/components/organisms/filter_bar/filter_bar.tsx
|
|
16703
16711
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
16704
|
-
function FilterBar({
|
|
16712
|
+
function FilterBar({ buttons }) {
|
|
16705
16713
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-col w-[54px] place-items-center gap-4", children: [
|
|
16706
16714
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16707
16715
|
FilterNavButton,
|
|
@@ -16709,11 +16717,11 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16709
16717
|
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16710
16718
|
FireIcon,
|
|
16711
16719
|
{
|
|
16712
|
-
variant:
|
|
16720
|
+
variant: buttons?.fires?.active ? void 0 : "none" /* OUTLINED */
|
|
16713
16721
|
}
|
|
16714
16722
|
),
|
|
16715
16723
|
label: "Fires",
|
|
16716
|
-
|
|
16724
|
+
onClick: buttons?.fires?.onClick
|
|
16717
16725
|
}
|
|
16718
16726
|
),
|
|
16719
16727
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
@@ -16723,10 +16731,11 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16723
16731
|
Mail,
|
|
16724
16732
|
{
|
|
16725
16733
|
size: 36,
|
|
16726
|
-
fillColor:
|
|
16734
|
+
fillColor: buttons?.unread?.active ? "#BFF4F6" : void 0
|
|
16727
16735
|
}
|
|
16728
16736
|
),
|
|
16729
|
-
label: "Unread"
|
|
16737
|
+
label: "Unread",
|
|
16738
|
+
onClick: buttons?.unread?.onClick
|
|
16730
16739
|
}
|
|
16731
16740
|
),
|
|
16732
16741
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
@@ -16736,77 +16745,53 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16736
16745
|
CheckBox,
|
|
16737
16746
|
{
|
|
16738
16747
|
size: 36,
|
|
16739
|
-
fillColor:
|
|
16748
|
+
fillColor: buttons?.incomplete?.active ? "#E8FE99" : void 0
|
|
16740
16749
|
}
|
|
16741
16750
|
),
|
|
16742
|
-
label: "Done"
|
|
16751
|
+
label: "Not Done",
|
|
16752
|
+
onClick: buttons?.incomplete?.onClick
|
|
16743
16753
|
}
|
|
16744
16754
|
),
|
|
16745
16755
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
|
|
16746
16756
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16747
16757
|
FilterNavButton,
|
|
16748
16758
|
{
|
|
16749
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16750
|
-
|
|
16751
|
-
{
|
|
16752
|
-
className: activeFilters?.has("slack" /* SLACK */) ? "" : "grayscale",
|
|
16753
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SlackIcon, {})
|
|
16754
|
-
}
|
|
16755
|
-
)
|
|
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
|
|
16756
16761
|
}
|
|
16757
16762
|
),
|
|
16758
16763
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16759
16764
|
FilterNavButton,
|
|
16760
16765
|
{
|
|
16761
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16762
|
-
|
|
16763
|
-
{
|
|
16764
|
-
className: activeFilters?.has("google_mail" /* GMAIL */) ? "" : "grayscale",
|
|
16765
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GoogleMailIcon, {})
|
|
16766
|
-
}
|
|
16767
|
-
)
|
|
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
|
|
16768
16768
|
}
|
|
16769
16769
|
),
|
|
16770
16770
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16771
16771
|
FilterNavButton,
|
|
16772
16772
|
{
|
|
16773
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16774
|
-
|
|
16775
|
-
{
|
|
16776
|
-
className: activeFilters?.has("google_calendar" /* GCAL */) ? "" : "grayscale",
|
|
16777
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GoogleCalendarIcon, {})
|
|
16778
|
-
}
|
|
16779
|
-
)
|
|
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
|
|
16780
16775
|
}
|
|
16781
16776
|
),
|
|
16782
16777
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16783
16778
|
FilterNavButton,
|
|
16784
16779
|
{
|
|
16785
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
16786
|
-
|
|
16787
|
-
|
|
16788
|
-
|
|
16789
|
-
|
|
16790
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AtlassianIcon, {}),
|
|
16791
|
-
" "
|
|
16792
|
-
]
|
|
16793
|
-
}
|
|
16794
|
-
)
|
|
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
|
|
16795
16785
|
}
|
|
16796
16786
|
),
|
|
16797
16787
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
16798
16788
|
FilterNavButton,
|
|
16799
16789
|
{
|
|
16800
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
16801
|
-
|
|
16802
|
-
|
|
16803
|
-
|
|
16804
|
-
|
|
16805
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MicrosoftTeamsIcon, {}),
|
|
16806
|
-
" "
|
|
16807
|
-
]
|
|
16808
|
-
}
|
|
16809
|
-
)
|
|
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
|
|
16810
16795
|
}
|
|
16811
16796
|
),
|
|
16812
16797
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
@@ -16815,19 +16800,18 @@ function FilterBar({ activeFilters, onAddMore }) {
|
|
|
16815
16800
|
icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
16816
16801
|
"div",
|
|
16817
16802
|
{
|
|
16818
|
-
className:
|
|
16819
|
-
"microsoft_mail" /* MSMAIL */ || "microsoft_calendar" /* MSCAL */
|
|
16820
|
-
) ? "" : "grayscale",
|
|
16803
|
+
className: buttons?.microsoft_calendar?.active || buttons?.microsoft_mail?.active ? "" : "grayscale",
|
|
16821
16804
|
children: [
|
|
16822
16805
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MicrosoftOutlookMailIcon, {}),
|
|
16823
16806
|
" "
|
|
16824
16807
|
]
|
|
16825
16808
|
}
|
|
16826
|
-
)
|
|
16809
|
+
),
|
|
16810
|
+
onClick: buttons?.microsoft_mail?.onClick || buttons?.microsoft_calendar?.onClick
|
|
16827
16811
|
}
|
|
16828
16812
|
),
|
|
16829
16813
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
|
|
16830
|
-
/* @__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 }) }) })
|
|
16831
16815
|
] });
|
|
16832
16816
|
}
|
|
16833
16817
|
|