qt-ui-kit 1.0.112 → 1.0.113
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +41 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -20
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +53 -5
- package/package.json +7 -4
package/dist/index.mjs
CHANGED
|
@@ -15485,27 +15485,27 @@ function InsightsIcon2({
|
|
|
15485
15485
|
return {
|
|
15486
15486
|
viewBox: "0 0 16 16",
|
|
15487
15487
|
path: /* @__PURE__ */ jsxs14(Fragment10, { children: [
|
|
15488
|
-
/* @__PURE__ */ jsx19("path", { d: "M7.57056 8.23242C8.09352 9.12376 8.86065 9.86065 9.78247 10.3662C8.86107 10.8715 8.09453 11.6084 7.57153 12.499C7.04828 11.608 6.28062 10.8715 5.35864 10.3662C6.28064 9.86068 7.04747 9.12371 7.57056 8.23242Z", fill: "#4F3ED0", stroke: "#4F3ED0",
|
|
15489
|
-
/* @__PURE__ */ jsx19("path", { d: "M10.1426 4.60156C10.3709 4.92296 10.6514 5.20403 10.9727 5.43262C10.6514 5.66102 10.371 5.94244 10.1426 6.26367C9.91394 5.94224 9.63309 5.66111 9.31152 5.43262C9.63308 5.20398 9.91402 4.92318 10.1426 4.60156Z", fill: "#4F3ED0", stroke: "#4F3ED0",
|
|
15490
|
-
/* @__PURE__ */ jsx19("path", { d: "M6.28516 3.18848C6.43792 3.38705 6.61599 3.56487 6.81445 3.71777C6.61598 3.87054 6.438 4.04864 6.28516 4.24707C6.13225 4.04861 5.95444 3.87053 5.75586 3.71777C5.95443 3.56487 6.1323 3.38705 6.28516 3.18848Z", fill: "#4F3ED0", stroke: "#4F3ED0",
|
|
15488
|
+
/* @__PURE__ */ jsx19("path", { d: "M7.57056 8.23242C8.09352 9.12376 8.86065 9.86065 9.78247 10.3662C8.86107 10.8715 8.09453 11.6084 7.57153 12.499C7.04828 11.608 6.28062 10.8715 5.35864 10.3662C6.28064 9.86068 7.04747 9.12371 7.57056 8.23242Z", fill: "#4F3ED0", stroke: "#4F3ED0", strokeWidth: "1.5" }),
|
|
15489
|
+
/* @__PURE__ */ jsx19("path", { d: "M10.1426 4.60156C10.3709 4.92296 10.6514 5.20403 10.9727 5.43262C10.6514 5.66102 10.371 5.94244 10.1426 6.26367C9.91394 5.94224 9.63309 5.66111 9.31152 5.43262C9.63308 5.20398 9.91402 4.92318 10.1426 4.60156Z", fill: "#4F3ED0", stroke: "#4F3ED0", strokeWidth: "1.3" }),
|
|
15490
|
+
/* @__PURE__ */ jsx19("path", { d: "M6.28516 3.18848C6.43792 3.38705 6.61599 3.56487 6.81445 3.71777C6.61598 3.87054 6.438 4.04864 6.28516 4.24707C6.13225 4.04861 5.95444 3.87053 5.75586 3.71777C5.95443 3.56487 6.1323 3.38705 6.28516 3.18848Z", fill: "#4F3ED0", stroke: "#4F3ED0", strokeWidth: "1.2" })
|
|
15491
15491
|
] })
|
|
15492
15492
|
};
|
|
15493
15493
|
case 20:
|
|
15494
15494
|
return {
|
|
15495
15495
|
viewBox: "0 0 20 20",
|
|
15496
15496
|
path: /* @__PURE__ */ jsxs14(Fragment10, { children: [
|
|
15497
|
-
/* @__PURE__ */ jsx19("path", { d: "M14.999 14.248C16.2754 17.6222 19.0787 20.2871 22.6006 21.5205C19.0788 22.7541 16.2762 25.4195 15 28.793C13.7231 25.4191 10.9201 22.7539 7.39746 21.5205C10.9195 20.2871 13.7226 17.6216 14.999 14.248Z", fill: "#4F3ED0", stroke: "#4F3ED0",
|
|
15497
|
+
/* @__PURE__ */ jsx19("path", { d: "M14.999 14.248C16.2754 17.6222 19.0787 20.2871 22.6006 21.5205C19.0788 22.7541 16.2762 25.4195 15 28.793C13.7231 25.4191 10.9201 22.7539 7.39746 21.5205C10.9195 20.2871 13.7226 17.6216 14.999 14.248Z", fill: "#4F3ED0", stroke: "#4F3ED0", strokeWidth: "1.5" }),
|
|
15498
15498
|
/* @__PURE__ */ jsx19("path", { d: "M21 6.3418C21.7345 7.96846 23.0424 9.27714 24.6689 10.0117C23.0433 10.7457 21.7336 12.0531 20.999 13.6787C20.2642 12.0536 18.9559 10.7456 17.3301 10.0117C18.9568 9.27716 20.2657 7.96871 21 6.3418Z", fill: "#4F3ED0", stroke: "#4F3ED0", "stroke-width": "1.3" }),
|
|
15499
|
-
/* @__PURE__ */ jsx19("path", { d: "M12 3.25977C12.5821 4.45668 13.5524 5.42629 14.749 6.00879C13.5529 6.59057 12.5825 7.5608 12 8.75684C11.4177 7.56091 10.4473 6.59157 9.25098 6.00977C10.4479 5.42726 11.4177 4.45653 12 3.25977Z", fill: "#4F3ED0", stroke: "#4F3ED0",
|
|
15499
|
+
/* @__PURE__ */ jsx19("path", { d: "M12 3.25977C12.5821 4.45668 13.5524 5.42629 14.749 6.00879C13.5529 6.59057 12.5825 7.5608 12 8.75684C11.4177 7.56091 10.4473 6.59157 9.25098 6.00977C10.4479 5.42726 11.4177 4.45653 12 3.25977Z", fill: "#4F3ED0", stroke: "#4F3ED0", strokeWidth: "1.2" })
|
|
15500
15500
|
] })
|
|
15501
15501
|
};
|
|
15502
15502
|
case 24:
|
|
15503
15503
|
return {
|
|
15504
15504
|
viewBox: "0 0 24 24",
|
|
15505
15505
|
path: /* @__PURE__ */ jsxs14(Fragment10, { children: [
|
|
15506
|
-
/* @__PURE__ */ jsx19("path", { d: "M14.999 14.248C16.2754 17.6222 19.0787 20.2871 22.6006 21.5205C19.0788 22.7541 16.2762 25.4195 15 28.793C13.7231 25.4191 10.9201 22.7539 7.39746 21.5205C10.9195 20.2871 13.7226 17.6216 14.999 14.248Z", fill: "#4F3ED0", stroke: "#4F3ED0",
|
|
15507
|
-
/* @__PURE__ */ jsx19("path", { d: "M21 6.3418C21.7345 7.96846 23.0424 9.27714 24.6689 10.0117C23.0433 10.7457 21.7336 12.0531 20.999 13.6787C20.2642 12.0536 18.9559 10.7456 17.3301 10.0117C18.9568 9.27716 20.2657 7.96871 21 6.3418Z", fill: "#4F3ED0", stroke: "#4F3ED0",
|
|
15508
|
-
/* @__PURE__ */ jsx19("path", { d: "M12 3.25977C12.5821 4.45668 13.5524 5.42629 14.749 6.00879C13.5529 6.59057 12.5825 7.5608 12 8.75684C11.4177 7.56091 10.4473 6.59157 9.25098 6.00977C10.4479 5.42726 11.4177 4.45653 12 3.25977Z", fill: "#4F3ED0", stroke: "#4F3ED0",
|
|
15506
|
+
/* @__PURE__ */ jsx19("path", { d: "M14.999 14.248C16.2754 17.6222 19.0787 20.2871 22.6006 21.5205C19.0788 22.7541 16.2762 25.4195 15 28.793C13.7231 25.4191 10.9201 22.7539 7.39746 21.5205C10.9195 20.2871 13.7226 17.6216 14.999 14.248Z", fill: "#4F3ED0", stroke: "#4F3ED0", strokeWidth: "1.5" }),
|
|
15507
|
+
/* @__PURE__ */ jsx19("path", { d: "M21 6.3418C21.7345 7.96846 23.0424 9.27714 24.6689 10.0117C23.0433 10.7457 21.7336 12.0531 20.999 13.6787C20.2642 12.0536 18.9559 10.7456 17.3301 10.0117C18.9568 9.27716 20.2657 7.96871 21 6.3418Z", fill: "#4F3ED0", stroke: "#4F3ED0", strokeWidth: "1.3" }),
|
|
15508
|
+
/* @__PURE__ */ jsx19("path", { d: "M12 3.25977C12.5821 4.45668 13.5524 5.42629 14.749 6.00879C13.5529 6.59057 12.5825 7.5608 12 8.75684C11.4177 7.56091 10.4473 6.59157 9.25098 6.00977C10.4479 5.42726 11.4177 4.45653 12 3.25977Z", fill: "#4F3ED0", stroke: "#4F3ED0", strokeWidth: "1.2" })
|
|
15509
15509
|
] })
|
|
15510
15510
|
};
|
|
15511
15511
|
case 36:
|
|
@@ -16404,7 +16404,7 @@ function EmailBody({
|
|
|
16404
16404
|
}
|
|
16405
16405
|
const isHtmlContent = body && isHtml(body);
|
|
16406
16406
|
const safeText = isHtmlContent ? DOMPurify.sanitize(body) : DOMPurify.sanitize(body?.replace(/\n/g, "<br>") || "");
|
|
16407
|
-
return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl overflow-auto", children: [
|
|
16407
|
+
return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl overflow-y-auto overflow-x-hidden", children: [
|
|
16408
16408
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-0.5", children: [
|
|
16409
16409
|
/* @__PURE__ */ jsx32(MetadataRow, { metadata: [`Subject: ${subjectLine}`] }),
|
|
16410
16410
|
/* @__PURE__ */ jsx32(MetadataRow, { metadata: [`To: ${to}`] }),
|
|
@@ -16415,27 +16415,35 @@ function EmailBody({
|
|
|
16415
16415
|
/* @__PURE__ */ jsx32(MetadataRow, { metadata: [`Attachments: ${attachments}`] })
|
|
16416
16416
|
] }),
|
|
16417
16417
|
/* @__PURE__ */ jsx32("hr", { className: "text-qtneutral-500" }),
|
|
16418
|
-
/* @__PURE__ */ jsx32("div", { className: "body-small break-
|
|
16418
|
+
/* @__PURE__ */ jsx32("div", { className: "body-small break-words whitespace-pre-line w-full overflow-x-hidden", children: body && /* @__PURE__ */ jsx32(
|
|
16419
16419
|
"iframe",
|
|
16420
16420
|
{
|
|
16421
16421
|
srcDoc: `<!DOCTYPE html>
|
|
16422
16422
|
<html>
|
|
16423
16423
|
<head>
|
|
16424
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
16424
16425
|
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet">
|
|
16425
16426
|
<style>
|
|
16427
|
+
html, body { max-width: 100%; overflow-x: hidden; }
|
|
16426
16428
|
body {
|
|
16427
16429
|
font-family: 'Inter', sans-serif;
|
|
16428
16430
|
padding: 0;
|
|
16429
16431
|
margin: 0;
|
|
16430
16432
|
font-size: 14px;
|
|
16431
|
-
|
|
16433
|
+
line-height: 1.5;
|
|
16434
|
+
word-break: break-word;
|
|
16432
16435
|
}
|
|
16436
|
+
img, svg, video, canvas { max-width: 100%; height: auto; }
|
|
16437
|
+
table { width: 100% !important; table-layout: fixed; border-collapse: collapse; }
|
|
16438
|
+
td, th { word-break: break-word; }
|
|
16439
|
+
pre, code { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; max-width: 100%; overflow-x: auto; }
|
|
16440
|
+
a { word-break: break-all; }
|
|
16433
16441
|
</style>
|
|
16434
16442
|
</head>
|
|
16435
16443
|
<body>${safeText}</body>
|
|
16436
16444
|
</html>`,
|
|
16437
16445
|
sandbox: "allow-popups",
|
|
16438
|
-
style: { border: 0, width: "100%", height: "500px" },
|
|
16446
|
+
style: { border: 0, width: "100%", height: "500px", display: "block" },
|
|
16439
16447
|
title: "Email Content"
|
|
16440
16448
|
}
|
|
16441
16449
|
) })
|
|
@@ -17236,18 +17244,27 @@ function PlusLarge({
|
|
|
17236
17244
|
// src/components/molecules/buttons/nav_button/filter_nav_button/filter_nav_button.tsx
|
|
17237
17245
|
import clsx11 from "clsx";
|
|
17238
17246
|
import { jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
17239
|
-
function FilterNavButton({ icon, label, active, onClick }) {
|
|
17247
|
+
function FilterNavButton({ icon, label, active, onClick, totalItems }) {
|
|
17248
|
+
const formatTotalItems = (count) => {
|
|
17249
|
+
if (typeof count === "number" && count > 99) {
|
|
17250
|
+
return "99+";
|
|
17251
|
+
}
|
|
17252
|
+
return count;
|
|
17253
|
+
};
|
|
17254
|
+
const displayCount = formatTotalItems(totalItems);
|
|
17255
|
+
const shouldShowBadge = !!(displayCount && (typeof displayCount === "number" ? displayCount !== 0 : displayCount !== "0"));
|
|
17240
17256
|
return /* @__PURE__ */ jsxs31(
|
|
17241
17257
|
"div",
|
|
17242
17258
|
{
|
|
17243
|
-
className: "w-min h-min flex flex-none flex-col place-items-center gap-
|
|
17259
|
+
className: "w-min h-min flex flex-none flex-col place-items-center gap-0 relative pt-[15px]",
|
|
17244
17260
|
onClick,
|
|
17245
17261
|
children: [
|
|
17262
|
+
shouldShowBadge && /* @__PURE__ */ jsx44("div", { className: "w-[24px] h-[24px] rounded-full flex items-center justify-center bg-[#545454] text-white text-[8px] leading-none absolute right-[-7px] top-[2px] z-999 border-2 border-white", children: displayCount }),
|
|
17246
17263
|
/* @__PURE__ */ jsx44(
|
|
17247
17264
|
"div",
|
|
17248
17265
|
{
|
|
17249
17266
|
className: clsx11(
|
|
17250
|
-
"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"
|
|
17267
|
+
"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 p-[0]"
|
|
17251
17268
|
),
|
|
17252
17269
|
children: icon
|
|
17253
17270
|
}
|
|
@@ -17272,7 +17289,8 @@ function FilterBar({ buttons }) {
|
|
|
17272
17289
|
}
|
|
17273
17290
|
),
|
|
17274
17291
|
label: "Fires",
|
|
17275
|
-
onClick: buttons?.fires?.onClick
|
|
17292
|
+
onClick: buttons?.fires?.onClick,
|
|
17293
|
+
totalItems: buttons?.fires?.count
|
|
17276
17294
|
}
|
|
17277
17295
|
),
|
|
17278
17296
|
!buttons?.insights?.disabled && /* @__PURE__ */ jsx45(
|
|
@@ -17285,7 +17303,8 @@ function FilterBar({ buttons }) {
|
|
|
17285
17303
|
}
|
|
17286
17304
|
),
|
|
17287
17305
|
label: "Q Insights",
|
|
17288
|
-
onClick: buttons?.insights?.onClick
|
|
17306
|
+
onClick: buttons?.insights?.onClick,
|
|
17307
|
+
totalItems: buttons?.insights?.count
|
|
17289
17308
|
}
|
|
17290
17309
|
),
|
|
17291
17310
|
!buttons?.unread?.disabled && /* @__PURE__ */ jsx45(
|
|
@@ -17299,7 +17318,8 @@ function FilterBar({ buttons }) {
|
|
|
17299
17318
|
}
|
|
17300
17319
|
),
|
|
17301
17320
|
label: "Unread",
|
|
17302
|
-
onClick: buttons?.unread?.onClick
|
|
17321
|
+
onClick: buttons?.unread?.onClick,
|
|
17322
|
+
totalItems: buttons?.unread?.count
|
|
17303
17323
|
}
|
|
17304
17324
|
),
|
|
17305
17325
|
!buttons?.done?.disabled && /* @__PURE__ */ jsx45(
|
|
@@ -17314,11 +17334,12 @@ function FilterBar({ buttons }) {
|
|
|
17314
17334
|
}
|
|
17315
17335
|
),
|
|
17316
17336
|
label: "Done",
|
|
17317
|
-
onClick: buttons?.done?.onClick
|
|
17337
|
+
onClick: buttons?.done?.onClick,
|
|
17338
|
+
totalItems: buttons?.done?.count
|
|
17318
17339
|
}
|
|
17319
17340
|
),
|
|
17320
17341
|
/* @__PURE__ */ jsx45("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
|
|
17321
|
-
/* @__PURE__ */ jsxs32("div", { className: "flex-1 min-h-0 w-full overflow-y-auto flex flex-col gap-4 overscroll-contain
|
|
17342
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex-1 min-h-0 w-full overflow-y-auto flex flex-col gap-4 overscroll-contain items-center min-w-[58px]", children: [
|
|
17322
17343
|
!buttons?.slack?.disabled && /* @__PURE__ */ jsx45(
|
|
17323
17344
|
FilterNavButton,
|
|
17324
17345
|
{
|