qt-ui-kit 1.0.60 → 1.0.61
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.js +48 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -43
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +11 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15256,10 +15256,10 @@ function SenderSourceRow({
|
|
|
15256
15256
|
}) {
|
|
15257
15257
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex w-full place-content-between text-neutral-1 text-[14px] leading-[130%] flex-nowrap", children: [
|
|
15258
15258
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex gap-[4px] place-items-center", children: [
|
|
15259
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-small-bold
|
|
15260
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-
|
|
15261
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-small-bold text-
|
|
15262
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "label-3 flex
|
|
15259
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-small-bold line-clamp-1", children: leftText }),
|
|
15260
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-smal text-center", children: seperator }),
|
|
15261
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-small-bold text-center line-clamp-1", children: rightText }),
|
|
15262
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "label-3 flex flex-nowrap", children: date && formatCustomRelative(date) })
|
|
15263
15263
|
] }),
|
|
15264
15264
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { onClick, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ExternalLink, { size: shrunk ? 16 : 24 }) })
|
|
15265
15265
|
] });
|
|
@@ -15274,7 +15274,7 @@ function SubjectLineRow({ text }) {
|
|
|
15274
15274
|
// src/components/molecules/text_content/metadata_row/metadata_row.tsx
|
|
15275
15275
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
15276
15276
|
function MetadataRow({ metadata }) {
|
|
15277
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex
|
|
15277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex w-full flex-wrap break-all body-small text-neutral-900 gap-2", children: [
|
|
15278
15278
|
metadata && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: metadata[0] + (metadata.length == 2 ? "," : "") }),
|
|
15279
15279
|
metadata?.length == 2 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: metadata[1] })
|
|
15280
15280
|
] });
|
|
@@ -15723,7 +15723,7 @@ function PreviewCard({
|
|
|
15723
15723
|
"div",
|
|
15724
15724
|
{
|
|
15725
15725
|
className: (0, import_clsx4.default)(
|
|
15726
|
-
"flex gap-4 h-min w-[
|
|
15726
|
+
"flex gap-4 h-min w-[459px] bg-neutral-6 rounded-3xl p-4 border-[2px] preview-card-shadow",
|
|
15727
15727
|
selected ? "bg-qtpurple-200 border-qtpurple-200" : "",
|
|
15728
15728
|
!read ? "border-qtpurple-500" : "border-neutral-6"
|
|
15729
15729
|
),
|
|
@@ -15753,26 +15753,32 @@ function PreviewCard({
|
|
|
15753
15753
|
}
|
|
15754
15754
|
)
|
|
15755
15755
|
] }),
|
|
15756
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
15757
|
-
|
|
15758
|
-
|
|
15759
|
-
|
|
15760
|
-
|
|
15761
|
-
|
|
15762
|
-
|
|
15763
|
-
|
|
15764
|
-
|
|
15765
|
-
|
|
15766
|
-
|
|
15767
|
-
|
|
15768
|
-
|
|
15769
|
-
|
|
15770
|
-
|
|
15771
|
-
|
|
15772
|
-
|
|
15773
|
-
|
|
15774
|
-
|
|
15775
|
-
|
|
15756
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
15757
|
+
"div",
|
|
15758
|
+
{
|
|
15759
|
+
className: "flex flex-col gap-2 w-full\n \n ",
|
|
15760
|
+
children: [
|
|
15761
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col w-full gap-1", children: [
|
|
15762
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
15763
|
+
SenderSourceRow,
|
|
15764
|
+
{
|
|
15765
|
+
leftText: sender,
|
|
15766
|
+
seperator: "via",
|
|
15767
|
+
rightText: source,
|
|
15768
|
+
date,
|
|
15769
|
+
onClick: onClickGoToSource
|
|
15770
|
+
}
|
|
15771
|
+
),
|
|
15772
|
+
subjectLine && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SubjectLineRow, { text: subjectLine }),
|
|
15773
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(MetadataRow, { metadata })
|
|
15774
|
+
] }),
|
|
15775
|
+
body && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "bg-white flex flex-col max-w-full w-full gap-2 wrap-anywhere rounded-2xl text-sm p-4 leading-[120%] font-normal", children: [
|
|
15776
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "line-clamp-4", children: body }),
|
|
15777
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ThumbGroup, {})
|
|
15778
|
+
] })
|
|
15779
|
+
]
|
|
15780
|
+
}
|
|
15781
|
+
)
|
|
15776
15782
|
]
|
|
15777
15783
|
}
|
|
15778
15784
|
);
|
|
@@ -16356,7 +16362,8 @@ function SingleEvent({
|
|
|
16356
16362
|
source,
|
|
16357
16363
|
subjectLine,
|
|
16358
16364
|
onExternal,
|
|
16359
|
-
summary
|
|
16365
|
+
summary,
|
|
16366
|
+
urgencyExplanation
|
|
16360
16367
|
}) {
|
|
16361
16368
|
const [selected, setSelected] = (0, import_react3.useState)(false);
|
|
16362
16369
|
const [expanded, setExpanded] = (0, import_react3.useState)(false);
|
|
@@ -16407,7 +16414,14 @@ function SingleEvent({
|
|
|
16407
16414
|
] }),
|
|
16408
16415
|
expanded && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
16409
16416
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
|
|
16410
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
16417
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
16418
|
+
IntelCard,
|
|
16419
|
+
{
|
|
16420
|
+
urgencyText: urgencyExplanation,
|
|
16421
|
+
summary,
|
|
16422
|
+
urgency
|
|
16423
|
+
}
|
|
16424
|
+
),
|
|
16411
16425
|
body
|
|
16412
16426
|
] }),
|
|
16413
16427
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(BrandIcon, { service })
|
|
@@ -16436,9 +16450,10 @@ function EventCard({
|
|
|
16436
16450
|
SingleEvent,
|
|
16437
16451
|
{
|
|
16438
16452
|
urgency: d.urgency,
|
|
16453
|
+
urgencyExplanation: d.urgencyText,
|
|
16439
16454
|
service: d.service,
|
|
16440
16455
|
body: d.eventBody,
|
|
16441
|
-
startExpanded: i ==
|
|
16456
|
+
startExpanded: i == 0,
|
|
16442
16457
|
sender: d.sender,
|
|
16443
16458
|
source: d.source,
|
|
16444
16459
|
subjectLine: d.subjectLine,
|
|
@@ -16453,7 +16468,7 @@ function EventCard({
|
|
|
16453
16468
|
urgency: d.urgency,
|
|
16454
16469
|
service: d.service,
|
|
16455
16470
|
body: d.eventBody,
|
|
16456
|
-
startExpanded: i ==
|
|
16471
|
+
startExpanded: i == 0,
|
|
16457
16472
|
sender: d.sender,
|
|
16458
16473
|
source: d.source,
|
|
16459
16474
|
subjectLine: d.subjectLine,
|
|
@@ -16489,11 +16504,7 @@ function EventCard({
|
|
|
16489
16504
|
}
|
|
16490
16505
|
|
|
16491
16506
|
// src/components/organisms/message_body/email_body.tsx
|
|
16492
|
-
var import_dompurify = __toESM(require("dompurify"));
|
|
16493
16507
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
16494
|
-
function isHtml(content) {
|
|
16495
|
-
return /<\/?[a-z][\s\S]*>/i.test(content);
|
|
16496
|
-
}
|
|
16497
16508
|
function EmailBody({
|
|
16498
16509
|
subjectLine,
|
|
16499
16510
|
to,
|
|
@@ -16504,6 +16515,7 @@ function EmailBody({
|
|
|
16504
16515
|
attachments,
|
|
16505
16516
|
body
|
|
16506
16517
|
}) {
|
|
16518
|
+
body = "Hi Greg,\n\nJust checking in on the milestone for Project Alpha this week. We\u2019re hoping to see visible progress by Friday, per the plan. Can you confirm we\u2019re still on track?\n\nThanks so much,\nDana\n\nDirector Major Projects\nAmtryx Co.";
|
|
16507
16519
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl", children: [
|
|
16508
16520
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
|
|
16509
16521
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MetadataRow, { metadata: [`Subject: ${subjectLine}`] }),
|
|
@@ -16515,14 +16527,7 @@ function EmailBody({
|
|
|
16515
16527
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MetadataRow, { metadata: [`Attachments: ${attachments}`] })
|
|
16516
16528
|
] }),
|
|
16517
16529
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("hr", { className: "text-qtneutral-500" }),
|
|
16518
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "body-medium prose break-all", children: body
|
|
16519
|
-
"div",
|
|
16520
|
-
{
|
|
16521
|
-
dangerouslySetInnerHTML: {
|
|
16522
|
-
__html: import_dompurify.default.sanitize(body)
|
|
16523
|
-
}
|
|
16524
|
-
}
|
|
16525
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("pre", { className: "whitespace-pre-wrap", children: body }) : null })
|
|
16530
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "body-medium prose break-all", children: body && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("pre", { className: "whitespace-pre-wrap", children: body }) })
|
|
16526
16531
|
] });
|
|
16527
16532
|
}
|
|
16528
16533
|
|
|
@@ -16695,7 +16700,7 @@ function TicketBody({
|
|
|
16695
16700
|
description,
|
|
16696
16701
|
comments
|
|
16697
16702
|
}) {
|
|
16698
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl", children: [
|
|
16703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl max-w-full", children: [
|
|
16699
16704
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
|
|
16700
16705
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MetadataRow, { metadata: [`Issue: ${issueNumber}`] }),
|
|
16701
16706
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MetadataRow, { metadata: [`Notification: ${notification}`] }),
|