qt-ui-kit 1.0.111 → 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 CHANGED
@@ -178,6 +178,7 @@ type NavButtonConfig = {
178
178
  active?: boolean;
179
179
  onClick?: () => void;
180
180
  disabled?: boolean;
181
+ count?: string | number;
181
182
  };
182
183
  type Props$1 = {
183
184
  buttons?: Partial<Record<FilterButtonKey, NavButtonConfig>>;
package/dist/index.d.ts CHANGED
@@ -178,6 +178,7 @@ type NavButtonConfig = {
178
178
  active?: boolean;
179
179
  onClick?: () => void;
180
180
  disabled?: boolean;
181
+ count?: string | number;
181
182
  };
182
183
  type Props$1 = {
183
184
  buttons?: Partial<Record<FilterButtonKey, NavButtonConfig>>;
package/dist/index.js CHANGED
@@ -15513,27 +15513,27 @@ function InsightsIcon2({
15513
15513
  return {
15514
15514
  viewBox: "0 0 16 16",
15515
15515
  path: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
15516
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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", "stroke-width": "1.5" }),
15517
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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", "stroke-width": "1.3" }),
15518
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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", "stroke-width": "1.2" })
15516
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" }),
15517
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" }),
15518
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" })
15519
15519
  ] })
15520
15520
  };
15521
15521
  case 20:
15522
15522
  return {
15523
15523
  viewBox: "0 0 20 20",
15524
15524
  path: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
15525
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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", "stroke-width": "1.5" }),
15525
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" }),
15526
15526
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" }),
15527
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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", "stroke-width": "1.2" })
15527
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" })
15528
15528
  ] })
15529
15529
  };
15530
15530
  case 24:
15531
15531
  return {
15532
15532
  viewBox: "0 0 24 24",
15533
15533
  path: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
15534
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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", "stroke-width": "1.5" }),
15535
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" }),
15536
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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", "stroke-width": "1.2" })
15534
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" }),
15535
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" }),
15536
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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" })
15537
15537
  ] })
15538
15538
  };
15539
15539
  case 36:
@@ -16432,7 +16432,7 @@ function EmailBody({
16432
16432
  }
16433
16433
  const isHtmlContent = body && isHtml(body);
16434
16434
  const safeText = isHtmlContent ? import_dompurify.default.sanitize(body) : import_dompurify.default.sanitize(body?.replace(/\n/g, "<br>") || "");
16435
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl overflow-auto", children: [
16435
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl overflow-y-auto overflow-x-hidden", children: [
16436
16436
  /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
16437
16437
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`Subject: ${subjectLine}`] }),
16438
16438
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`To: ${to}`] }),
@@ -16443,27 +16443,35 @@ function EmailBody({
16443
16443
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`Attachments: ${attachments}`] })
16444
16444
  ] }),
16445
16445
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("hr", { className: "text-qtneutral-500" }),
16446
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "body-small break-all whitespace-pre-line flex", children: body && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
16446
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "body-small break-words whitespace-pre-line w-full overflow-x-hidden", children: body && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
16447
16447
  "iframe",
16448
16448
  {
16449
16449
  srcDoc: `<!DOCTYPE html>
16450
16450
  <html>
16451
16451
  <head>
16452
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
16452
16453
  <link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet">
16453
16454
  <style>
16455
+ html, body { max-width: 100%; overflow-x: hidden; }
16454
16456
  body {
16455
16457
  font-family: 'Inter', sans-serif;
16456
16458
  padding: 0;
16457
16459
  margin: 0;
16458
16460
  font-size: 14px;
16459
- word-break: break-all;
16461
+ line-height: 1.5;
16462
+ word-break: break-word;
16460
16463
  }
16464
+ img, svg, video, canvas { max-width: 100%; height: auto; }
16465
+ table { width: 100% !important; table-layout: fixed; border-collapse: collapse; }
16466
+ td, th { word-break: break-word; }
16467
+ pre, code { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; max-width: 100%; overflow-x: auto; }
16468
+ a { word-break: break-all; }
16461
16469
  </style>
16462
16470
  </head>
16463
16471
  <body>${safeText}</body>
16464
16472
  </html>`,
16465
16473
  sandbox: "allow-popups",
16466
- style: { border: 0, width: "100%", height: "500px" },
16474
+ style: { border: 0, width: "100%", height: "500px", display: "block" },
16467
16475
  title: "Email Content"
16468
16476
  }
16469
16477
  ) })
@@ -17257,18 +17265,27 @@ function PlusLarge({
17257
17265
  // src/components/molecules/buttons/nav_button/filter_nav_button/filter_nav_button.tsx
17258
17266
  var import_clsx11 = __toESM(require("clsx"));
17259
17267
  var import_jsx_runtime44 = require("react/jsx-runtime");
17260
- function FilterNavButton({ icon, label, active, onClick }) {
17268
+ function FilterNavButton({ icon, label, active, onClick, totalItems }) {
17269
+ const formatTotalItems = (count) => {
17270
+ if (typeof count === "number" && count > 99) {
17271
+ return "99+";
17272
+ }
17273
+ return count;
17274
+ };
17275
+ const displayCount = formatTotalItems(totalItems);
17276
+ const shouldShowBadge = !!(displayCount && (typeof displayCount === "number" ? displayCount !== 0 : displayCount !== "0"));
17261
17277
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
17262
17278
  "div",
17263
17279
  {
17264
- className: "w-min h-min flex flex-none flex-col place-items-center gap-2",
17280
+ className: "w-min h-min flex flex-none flex-col place-items-center gap-0 relative pt-[15px]",
17265
17281
  onClick,
17266
17282
  children: [
17283
+ shouldShowBadge && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("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 }),
17267
17284
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17268
17285
  "div",
17269
17286
  {
17270
17287
  className: (0, import_clsx11.default)(
17271
- "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"
17288
+ "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]"
17272
17289
  ),
17273
17290
  children: icon
17274
17291
  }
@@ -17293,7 +17310,8 @@ function FilterBar({ buttons }) {
17293
17310
  }
17294
17311
  ),
17295
17312
  label: "Fires",
17296
- onClick: buttons?.fires?.onClick
17313
+ onClick: buttons?.fires?.onClick,
17314
+ totalItems: buttons?.fires?.count
17297
17315
  }
17298
17316
  ),
17299
17317
  !buttons?.insights?.disabled && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -17306,7 +17324,8 @@ function FilterBar({ buttons }) {
17306
17324
  }
17307
17325
  ),
17308
17326
  label: "Q Insights",
17309
- onClick: buttons?.insights?.onClick
17327
+ onClick: buttons?.insights?.onClick,
17328
+ totalItems: buttons?.insights?.count
17310
17329
  }
17311
17330
  ),
17312
17331
  !buttons?.unread?.disabled && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -17320,7 +17339,8 @@ function FilterBar({ buttons }) {
17320
17339
  }
17321
17340
  ),
17322
17341
  label: "Unread",
17323
- onClick: buttons?.unread?.onClick
17342
+ onClick: buttons?.unread?.onClick,
17343
+ totalItems: buttons?.unread?.count
17324
17344
  }
17325
17345
  ),
17326
17346
  !buttons?.done?.disabled && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -17335,11 +17355,12 @@ function FilterBar({ buttons }) {
17335
17355
  }
17336
17356
  ),
17337
17357
  label: "Done",
17338
- onClick: buttons?.done?.onClick
17358
+ onClick: buttons?.done?.onClick,
17359
+ totalItems: buttons?.done?.count
17339
17360
  }
17340
17361
  ),
17341
17362
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
17342
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex-1 min-h-0 w-full overflow-y-auto flex flex-col gap-4 overscroll-contain [scrollbar-gutter:stable] pl-1", children: [
17363
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("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: [
17343
17364
  !buttons?.slack?.disabled && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
17344
17365
  FilterNavButton,
17345
17366
  {