qt-ui-kit 1.0.59 → 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 +52 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -45
- 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,13 +16450,15 @@ 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,
|
|
16445
|
-
onExternal: () => window.open(d.link, "_blank")
|
|
16460
|
+
onExternal: () => window.open(d.link, "_blank"),
|
|
16461
|
+
summary: d.summary
|
|
16446
16462
|
}
|
|
16447
16463
|
)) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: " " }) });
|
|
16448
16464
|
case "ticket" /* TICKET */:
|
|
@@ -16452,11 +16468,12 @@ function EventCard({
|
|
|
16452
16468
|
urgency: d.urgency,
|
|
16453
16469
|
service: d.service,
|
|
16454
16470
|
body: d.eventBody,
|
|
16455
|
-
startExpanded: i ==
|
|
16471
|
+
startExpanded: i == 0,
|
|
16456
16472
|
sender: d.sender,
|
|
16457
16473
|
source: d.source,
|
|
16458
16474
|
subjectLine: d.subjectLine,
|
|
16459
|
-
onExternal: () => window.open(d.link, "_blank")
|
|
16475
|
+
onExternal: () => window.open(d.link, "_blank"),
|
|
16476
|
+
summary: d.summary
|
|
16460
16477
|
}
|
|
16461
16478
|
)) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: " " }) });
|
|
16462
16479
|
default:
|
|
@@ -16487,11 +16504,7 @@ function EventCard({
|
|
|
16487
16504
|
}
|
|
16488
16505
|
|
|
16489
16506
|
// src/components/organisms/message_body/email_body.tsx
|
|
16490
|
-
var import_dompurify = __toESM(require("dompurify"));
|
|
16491
16507
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
16492
|
-
function isHtml(content) {
|
|
16493
|
-
return /<\/?[a-z][\s\S]*>/i.test(content);
|
|
16494
|
-
}
|
|
16495
16508
|
function EmailBody({
|
|
16496
16509
|
subjectLine,
|
|
16497
16510
|
to,
|
|
@@ -16502,6 +16515,7 @@ function EmailBody({
|
|
|
16502
16515
|
attachments,
|
|
16503
16516
|
body
|
|
16504
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.";
|
|
16505
16519
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl", children: [
|
|
16506
16520
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
|
|
16507
16521
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MetadataRow, { metadata: [`Subject: ${subjectLine}`] }),
|
|
@@ -16513,14 +16527,7 @@ function EmailBody({
|
|
|
16513
16527
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MetadataRow, { metadata: [`Attachments: ${attachments}`] })
|
|
16514
16528
|
] }),
|
|
16515
16529
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("hr", { className: "text-qtneutral-500" }),
|
|
16516
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "body-medium prose break-all", children: body
|
|
16517
|
-
"div",
|
|
16518
|
-
{
|
|
16519
|
-
dangerouslySetInnerHTML: {
|
|
16520
|
-
__html: import_dompurify.default.sanitize(body)
|
|
16521
|
-
}
|
|
16522
|
-
}
|
|
16523
|
-
) : /* @__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 }) })
|
|
16524
16531
|
] });
|
|
16525
16532
|
}
|
|
16526
16533
|
|
|
@@ -16693,7 +16700,7 @@ function TicketBody({
|
|
|
16693
16700
|
description,
|
|
16694
16701
|
comments
|
|
16695
16702
|
}) {
|
|
16696
|
-
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: [
|
|
16697
16704
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
|
|
16698
16705
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MetadataRow, { metadata: [`Issue: ${issueNumber}`] }),
|
|
16699
16706
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MetadataRow, { metadata: [`Notification: ${notification}`] }),
|