qt-ui-kit 1.0.25 → 1.0.27

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.mjs CHANGED
@@ -14873,9 +14873,9 @@ function formatCustomRelative(date) {
14873
14873
  return `Tomorrow @ ${format(date, "h:mm a")}`;
14874
14874
  }
14875
14875
  if (isSameWeek(date, now, { weekStartsOn: 1 })) {
14876
- return `${format(date, "EEEE")} @ ${format(date, "h:mm a")}`;
14876
+ return `${format(date, "EEE")} @ ${format(date, "h:mm a")}`;
14877
14877
  }
14878
- return `${format(date, "EEEE, do MMMM")} @ ${format(date, "h:mm a")}`;
14878
+ return `${format(date, "EEE, do MMMM")} @ ${format(date, "h:mm a")}`;
14879
14879
  }
14880
14880
 
14881
14881
  // src/components/molecules/text_content/sender_source_row/sender_source_row.tsx
@@ -16373,6 +16373,282 @@ function SearchBar() {
16373
16373
  ] });
16374
16374
  }
16375
16375
 
16376
+ // src/components/atoms/icons/base_icons/Mail.tsx
16377
+ import { jsx as jsx39 } from "react/jsx-runtime";
16378
+ function Mail({
16379
+ size = 24,
16380
+ color = "#1D1D1F",
16381
+ fillColor = "none"
16382
+ }) {
16383
+ const getIconData = () => {
16384
+ switch (size) {
16385
+ case 16:
16386
+ return {
16387
+ viewBox: "0 0 16 16",
16388
+ path: /* @__PURE__ */ jsx39(
16389
+ "path",
16390
+ {
16391
+ d: "M2 5.33337L7.2604 8.84031C7.70827 9.13888 8.29173 9.13888 8.7396 8.84031L14 5.33337M3.33333 12.6667H12.6667C13.403 12.6667 14 12.0698 14 11.3334V4.66671C14 3.93033 13.403 3.33337 12.6667 3.33337H3.33333C2.59695 3.33337 2 3.93033 2 4.66671V11.3334C2 12.0698 2.59695 12.6667 3.33333 12.6667Z",
16392
+ stroke: color,
16393
+ "stroke-width": "1.25",
16394
+ "stroke-linecap": "round",
16395
+ "stroke-linejoin": "round"
16396
+ }
16397
+ )
16398
+ };
16399
+ case 20:
16400
+ return {
16401
+ viewBox: "0 0 20 20",
16402
+ path: /* @__PURE__ */ jsx39(
16403
+ "path",
16404
+ {
16405
+ d: "M2.5 6.66663L9.0755 11.0503C9.63533 11.4235 10.3647 11.4235 10.9245 11.0503L17.5 6.66663M4.16667 15.8333H15.8333C16.7538 15.8333 17.5 15.0871 17.5 14.1666V5.83329C17.5 4.91282 16.7538 4.16663 15.8333 4.16663H4.16667C3.24619 4.16663 2.5 4.91282 2.5 5.83329V14.1666C2.5 15.0871 3.24619 15.8333 4.16667 15.8333Z",
16406
+ stroke: color,
16407
+ "stroke-width": "1.5",
16408
+ "stroke-linecap": "round",
16409
+ "stroke-linejoin": "round"
16410
+ }
16411
+ )
16412
+ };
16413
+ case 24:
16414
+ return {
16415
+ viewBox: "0 0 24 24",
16416
+ path: /* @__PURE__ */ jsx39(
16417
+ "path",
16418
+ {
16419
+ d: "M3 8L10.8906 13.2604C11.5624 13.7083 12.4376 13.7083 13.1094 13.2604L21 8M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19Z",
16420
+ stroke: color,
16421
+ "stroke-width": "2",
16422
+ "stroke-linecap": "round",
16423
+ "stroke-linejoin": "round"
16424
+ }
16425
+ )
16426
+ };
16427
+ case 36:
16428
+ return {
16429
+ viewBox: "0 0 36 36",
16430
+ path: /* @__PURE__ */ jsx39(
16431
+ "path",
16432
+ {
16433
+ d: "M4.5 12L16.3359 19.8906C17.3436 20.5624 18.6564 20.5624 19.6641 19.8906L31.5 12M7.5 28.5H28.5C30.1569 28.5 31.5 27.1569 31.5 25.5V10.5C31.5 8.84315 30.1569 7.5 28.5 7.5H7.5C5.84315 7.5 4.5 8.84315 4.5 10.5V25.5C4.5 27.1569 5.84315 28.5 7.5 28.5Z",
16434
+ stroke: color,
16435
+ "stroke-width": "2.25",
16436
+ "stroke-linecap": "round",
16437
+ "stroke-linejoin": "round"
16438
+ }
16439
+ )
16440
+ };
16441
+ }
16442
+ };
16443
+ const { viewBox, path } = getIconData();
16444
+ return /* @__PURE__ */ jsx39(
16445
+ "svg",
16446
+ {
16447
+ width: size,
16448
+ height: size,
16449
+ viewBox,
16450
+ fill: fillColor,
16451
+ xmlns: "http://www.w3.org/2000/svg",
16452
+ children: path
16453
+ }
16454
+ );
16455
+ }
16456
+
16457
+ // src/components/atoms/icons/base_icons/PlusLarge.tsx
16458
+ import { jsx as jsx40 } from "react/jsx-runtime";
16459
+ function PlusLarge({
16460
+ size = 24,
16461
+ color = "#1D1D1F",
16462
+ fillColor = "none"
16463
+ }) {
16464
+ const getIconData = () => {
16465
+ switch (size) {
16466
+ case 16:
16467
+ return {
16468
+ viewBox: "0 0 16 16",
16469
+ path: /* @__PURE__ */ jsx40("path", { d: "M8.00033 2.66663V13.3333M13.3337 7.99996L2.66699 7.99996", stroke: color, "stroke-width": "1.25", "stroke-linecap": "round", "stroke-linejoin": "round" })
16470
+ };
16471
+ case 20:
16472
+ return {
16473
+ viewBox: "0 0 20 20",
16474
+ path: /* @__PURE__ */ jsx40("path", { d: "M9.99967 3.33337V16.6667M16.6663 10L3.33301 10", stroke: color, "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
16475
+ };
16476
+ case 24:
16477
+ return {
16478
+ viewBox: "0 0 24 24",
16479
+ path: /* @__PURE__ */ jsx40("path", { d: "M12 4V20M20 12L4 12", stroke: color, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })
16480
+ };
16481
+ case 36:
16482
+ return {
16483
+ viewBox: "0 0 36 36",
16484
+ path: /* @__PURE__ */ jsx40("path", { d: "M18 6V30M30 18L6 18", stroke: color, "stroke-width": "2.25", "stroke-linecap": "round", "stroke-linejoin": "round" })
16485
+ };
16486
+ }
16487
+ };
16488
+ const { viewBox, path } = getIconData();
16489
+ return /* @__PURE__ */ jsx40(
16490
+ "svg",
16491
+ {
16492
+ width: size,
16493
+ height: size,
16494
+ viewBox,
16495
+ fill: "none",
16496
+ xmlns: "http://www.w3.org/2000/svg",
16497
+ children: path
16498
+ }
16499
+ );
16500
+ }
16501
+
16502
+ // src/components/molecules/buttons/nav_button/filter_nav_button/filter_nav_button.tsx
16503
+ import clsx11 from "clsx";
16504
+ import { jsx as jsx41, jsxs as jsxs27 } from "react/jsx-runtime";
16505
+ function FilterNavButton({ icon, label, active }) {
16506
+ return /* @__PURE__ */ jsxs27("div", { className: "w-min h-min flex flex-none flex-col place-items-center gap-2", children: [
16507
+ /* @__PURE__ */ jsx41(
16508
+ "div",
16509
+ {
16510
+ className: clsx11(
16511
+ "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"
16512
+ ),
16513
+ children: icon
16514
+ }
16515
+ ),
16516
+ /* @__PURE__ */ jsx41("div", { className: "font-medium text-[0.7rem] text-qtneutral-900", children: label })
16517
+ ] });
16518
+ }
16519
+
16520
+ // src/components/organisms/filter_bar/filter_bar.tsx
16521
+ import { jsx as jsx42, jsxs as jsxs28 } from "react/jsx-runtime";
16522
+ function FilterBar({ activeFilters, onAddMore }) {
16523
+ return /* @__PURE__ */ jsxs28("div", { className: "flex flex-col w-[54px] place-items-center gap-4", children: [
16524
+ /* @__PURE__ */ jsx42(
16525
+ FilterNavButton,
16526
+ {
16527
+ icon: /* @__PURE__ */ jsx42(
16528
+ FireIcon,
16529
+ {
16530
+ variant: activeFilters?.has("fires") ? void 0 : "none" /* OUTLINED */
16531
+ }
16532
+ ),
16533
+ label: "Fires",
16534
+ active: true
16535
+ }
16536
+ ),
16537
+ /* @__PURE__ */ jsx42(
16538
+ FilterNavButton,
16539
+ {
16540
+ icon: /* @__PURE__ */ jsx42(
16541
+ Mail,
16542
+ {
16543
+ size: 36,
16544
+ fillColor: activeFilters?.has("new") ? "#BFF4F6" : void 0
16545
+ }
16546
+ ),
16547
+ label: "Unread"
16548
+ }
16549
+ ),
16550
+ /* @__PURE__ */ jsx42(
16551
+ FilterNavButton,
16552
+ {
16553
+ icon: /* @__PURE__ */ jsx42(
16554
+ CheckBox,
16555
+ {
16556
+ size: 36,
16557
+ fillColor: activeFilters?.has("done") ? "#E8FE99" : void 0
16558
+ }
16559
+ ),
16560
+ label: "Done"
16561
+ }
16562
+ ),
16563
+ /* @__PURE__ */ jsx42("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
16564
+ /* @__PURE__ */ jsx42(
16565
+ FilterNavButton,
16566
+ {
16567
+ icon: /* @__PURE__ */ jsx42(
16568
+ "div",
16569
+ {
16570
+ className: activeFilters?.has("slack" /* SLACK */) ? "" : "grayscale",
16571
+ children: /* @__PURE__ */ jsx42(SlackIcon, {})
16572
+ }
16573
+ )
16574
+ }
16575
+ ),
16576
+ /* @__PURE__ */ jsx42(
16577
+ FilterNavButton,
16578
+ {
16579
+ icon: /* @__PURE__ */ jsx42(
16580
+ "div",
16581
+ {
16582
+ className: activeFilters?.has("google_mail" /* GMAIL */) ? "" : "grayscale",
16583
+ children: /* @__PURE__ */ jsx42(GoogleMailIcon, {})
16584
+ }
16585
+ )
16586
+ }
16587
+ ),
16588
+ /* @__PURE__ */ jsx42(
16589
+ FilterNavButton,
16590
+ {
16591
+ icon: /* @__PURE__ */ jsx42(
16592
+ "div",
16593
+ {
16594
+ className: activeFilters?.has("google_calendar" /* GCAL */) ? "" : "grayscale",
16595
+ children: /* @__PURE__ */ jsx42(GoogleCalendarIcon, {})
16596
+ }
16597
+ )
16598
+ }
16599
+ ),
16600
+ /* @__PURE__ */ jsx42(
16601
+ FilterNavButton,
16602
+ {
16603
+ icon: /* @__PURE__ */ jsxs28(
16604
+ "div",
16605
+ {
16606
+ className: activeFilters?.has("atlassian_jira" /* AJIRA */) ? "" : "grayscale",
16607
+ children: [
16608
+ /* @__PURE__ */ jsx42(AtlassianIcon, {}),
16609
+ " "
16610
+ ]
16611
+ }
16612
+ )
16613
+ }
16614
+ ),
16615
+ /* @__PURE__ */ jsx42(
16616
+ FilterNavButton,
16617
+ {
16618
+ icon: /* @__PURE__ */ jsxs28(
16619
+ "div",
16620
+ {
16621
+ className: activeFilters?.has("microsoft_teams" /* MSTEAMS */) ? "" : "grayscale",
16622
+ children: [
16623
+ /* @__PURE__ */ jsx42(MicrosoftTeamsIcon, {}),
16624
+ " "
16625
+ ]
16626
+ }
16627
+ )
16628
+ }
16629
+ ),
16630
+ /* @__PURE__ */ jsx42(
16631
+ FilterNavButton,
16632
+ {
16633
+ icon: /* @__PURE__ */ jsxs28(
16634
+ "div",
16635
+ {
16636
+ className: activeFilters?.has(
16637
+ "microsoft_mail" /* MSMAIL */ || "microsoft_calendar" /* MSCAL */
16638
+ ) ? "" : "grayscale",
16639
+ children: [
16640
+ /* @__PURE__ */ jsx42(MicrosoftOutlookMailIcon, {}),
16641
+ " "
16642
+ ]
16643
+ }
16644
+ )
16645
+ }
16646
+ ),
16647
+ /* @__PURE__ */ jsx42("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
16648
+ /* @__PURE__ */ jsx42("div", { onClick: onAddMore, children: /* @__PURE__ */ jsx42(FilterNavButton, { icon: /* @__PURE__ */ jsx42(PlusLarge, { size: 36 }) }) })
16649
+ ] });
16650
+ }
16651
+
16376
16652
  // src/types/events.ts
16377
16653
  var EventState = /* @__PURE__ */ ((EventState2) => {
16378
16654
  EventState2["NEW"] = "new";
@@ -16479,7 +16755,7 @@ export {
16479
16755
  EventCard,
16480
16756
  EventState,
16481
16757
  EventType,
16482
- NavBar as FilterBar,
16758
+ FilterBar,
16483
16759
  IntegrationService,
16484
16760
  NavBar,
16485
16761
  PreviewCard,