catchup-library-web 1.16.9 → 1.16.11

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 CHANGED
@@ -585,7 +585,8 @@ var PrimaryButton = ({
585
585
  iconOnly
586
586
  }) => {
587
587
  const [loading, setLoading] = (0, import_react3.useState)(false);
588
- const internalOnClick = () => __async(void 0, null, function* () {
588
+ const internalOnClick = (e) => __async(void 0, null, function* () {
589
+ e.stopPropagation();
589
590
  if (loading) return;
590
591
  if (disabled) return;
591
592
  setLoading(true);
@@ -662,7 +663,8 @@ var SecondaryButton = ({
662
663
  }) => {
663
664
  const [loading, setLoading] = (0, import_react4.useState)(false);
664
665
  const [isHovered, setIsHovered] = (0, import_react4.useState)(false);
665
- const internalOnClick = () => __async(void 0, null, function* () {
666
+ const internalOnClick = (e) => __async(void 0, null, function* () {
667
+ e.stopPropagation();
666
668
  if (loading) return;
667
669
  if (disabled) return;
668
670
  setLoading(true);
@@ -744,7 +746,8 @@ var CreateButton = ({
744
746
  iconOnly
745
747
  }) => {
746
748
  const [loading, setLoading] = (0, import_react5.useState)(false);
747
- const internalOnClick = () => __async(void 0, null, function* () {
749
+ const internalOnClick = (e) => __async(void 0, null, function* () {
750
+ e.stopPropagation();
748
751
  if (loading) return;
749
752
  if (disabled) return;
750
753
  setLoading(true);
@@ -821,7 +824,8 @@ var DeleteButton = ({
821
824
  }) => {
822
825
  const [loading, setLoading] = (0, import_react6.useState)(false);
823
826
  const [isHovered, setIsHovered] = (0, import_react6.useState)(false);
824
- const internalOnClick = () => __async(void 0, null, function* () {
827
+ const internalOnClick = (e) => __async(void 0, null, function* () {
828
+ e.stopPropagation();
825
829
  if (loading) return;
826
830
  if (disabled) return;
827
831
  setLoading(true);
@@ -901,7 +905,8 @@ var CancelButton = ({
901
905
  }) => {
902
906
  const [loading, setLoading] = (0, import_react7.useState)(false);
903
907
  const [isHovered, setIsHovered] = (0, import_react7.useState)(false);
904
- const internalOnClick = () => __async(void 0, null, function* () {
908
+ const internalOnClick = (e) => __async(void 0, null, function* () {
909
+ e.stopPropagation();
905
910
  if (loading) return;
906
911
  if (disabled) return;
907
912
  setLoading(true);
@@ -983,7 +988,8 @@ var ApproveButton = ({
983
988
  iconOnly
984
989
  }) => {
985
990
  const [loading, setLoading] = (0, import_react8.useState)(false);
986
- const internalOnClick = () => __async(void 0, null, function* () {
991
+ const internalOnClick = (e) => __async(void 0, null, function* () {
992
+ e.stopPropagation();
987
993
  if (loading) return;
988
994
  if (disabled) return;
989
995
  setLoading(true);
@@ -7621,7 +7627,7 @@ var ActivityTemplateLabel = ({
7621
7627
  icon,
7622
7628
  font
7623
7629
  }) => {
7624
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7630
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7625
7631
  icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
7626
7632
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: font ? font : "text-sm", children: title })
7627
7633
  ] }) });
@@ -7631,7 +7637,7 @@ var ActivityTemplateLabel_default = ActivityTemplateLabel;
7631
7637
  // src/components/labels/BrandLabel.tsx
7632
7638
  var import_jsx_runtime57 = require("react/jsx-runtime");
7633
7639
  var BrandLabel = ({ title, icon, font }) => {
7634
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7640
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7635
7641
  icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
7636
7642
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: font ? font : "text-sm", children: title })
7637
7643
  ] }) });
@@ -7641,7 +7647,7 @@ var BrandLabel_default = BrandLabel;
7641
7647
  // src/components/labels/CategoryLabel.tsx
7642
7648
  var import_jsx_runtime58 = require("react/jsx-runtime");
7643
7649
  var CategoryLabel = ({ title, icon, font }) => {
7644
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7650
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7645
7651
  icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7646
7652
  BaseImage_default,
7647
7653
  {
@@ -7658,21 +7664,21 @@ var CategoryLabel_default = CategoryLabel;
7658
7664
  // src/components/labels/CoterieLabel.tsx
7659
7665
  var import_jsx_runtime59 = require("react/jsx-runtime");
7660
7666
  var CoterieLabel = ({ title, font }) => {
7661
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7667
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7662
7668
  };
7663
7669
  var CoterieLabel_default = CoterieLabel;
7664
7670
 
7665
7671
  // src/components/labels/GradeLabel.tsx
7666
7672
  var import_jsx_runtime60 = require("react/jsx-runtime");
7667
7673
  var GradeLabel = ({ title, font }) => {
7668
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7674
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7669
7675
  };
7670
7676
  var GradeLabel_default = GradeLabel;
7671
7677
 
7672
7678
  // src/components/labels/OutcomeLabel.tsx
7673
7679
  var import_jsx_runtime61 = require("react/jsx-runtime");
7674
7680
  var OutcomeLabel = ({ title, font }) => {
7675
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7681
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7676
7682
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
7677
7683
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: font ? font : "text-sm", children: title })
7678
7684
  ] }) });
@@ -7682,7 +7688,7 @@ var OutcomeLabel_default = OutcomeLabel;
7682
7688
  // src/components/labels/PersonalLabel.tsx
7683
7689
  var import_jsx_runtime62 = require("react/jsx-runtime");
7684
7690
  var PersonalLabel = ({ title, icon, font }) => {
7685
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7691
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7686
7692
  icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
7687
7693
  BaseImage_default,
7688
7694
  {
@@ -7699,7 +7705,7 @@ var PersonalLabel_default = PersonalLabel;
7699
7705
  // src/components/labels/PublishingHouseLabel.tsx
7700
7706
  var import_jsx_runtime63 = require("react/jsx-runtime");
7701
7707
  var PublishingHouseLabel = ({ title, icon, font }) => {
7702
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7708
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7703
7709
  icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
7704
7710
  BaseImage_default,
7705
7711
  {
@@ -7716,7 +7722,7 @@ var PublishingHouseLabel_default = PublishingHouseLabel;
7716
7722
  // src/components/labels/ActivityLabel.tsx
7717
7723
  var import_jsx_runtime64 = require("react/jsx-runtime");
7718
7724
  var ActivityLabel = ({ title, font }) => {
7719
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7725
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7720
7726
  };
7721
7727
  var ActivityLabel_default = ActivityLabel;
7722
7728
 
package/dist/index.mjs CHANGED
@@ -371,7 +371,8 @@ var PrimaryButton = ({
371
371
  iconOnly
372
372
  }) => {
373
373
  const [loading, setLoading] = useState3(false);
374
- const internalOnClick = () => __async(void 0, null, function* () {
374
+ const internalOnClick = (e) => __async(void 0, null, function* () {
375
+ e.stopPropagation();
375
376
  if (loading) return;
376
377
  if (disabled) return;
377
378
  setLoading(true);
@@ -448,7 +449,8 @@ var SecondaryButton = ({
448
449
  }) => {
449
450
  const [loading, setLoading] = useState4(false);
450
451
  const [isHovered, setIsHovered] = useState4(false);
451
- const internalOnClick = () => __async(void 0, null, function* () {
452
+ const internalOnClick = (e) => __async(void 0, null, function* () {
453
+ e.stopPropagation();
452
454
  if (loading) return;
453
455
  if (disabled) return;
454
456
  setLoading(true);
@@ -530,7 +532,8 @@ var CreateButton = ({
530
532
  iconOnly
531
533
  }) => {
532
534
  const [loading, setLoading] = useState5(false);
533
- const internalOnClick = () => __async(void 0, null, function* () {
535
+ const internalOnClick = (e) => __async(void 0, null, function* () {
536
+ e.stopPropagation();
534
537
  if (loading) return;
535
538
  if (disabled) return;
536
539
  setLoading(true);
@@ -607,7 +610,8 @@ var DeleteButton = ({
607
610
  }) => {
608
611
  const [loading, setLoading] = useState6(false);
609
612
  const [isHovered, setIsHovered] = useState6(false);
610
- const internalOnClick = () => __async(void 0, null, function* () {
613
+ const internalOnClick = (e) => __async(void 0, null, function* () {
614
+ e.stopPropagation();
611
615
  if (loading) return;
612
616
  if (disabled) return;
613
617
  setLoading(true);
@@ -687,7 +691,8 @@ var CancelButton = ({
687
691
  }) => {
688
692
  const [loading, setLoading] = useState7(false);
689
693
  const [isHovered, setIsHovered] = useState7(false);
690
- const internalOnClick = () => __async(void 0, null, function* () {
694
+ const internalOnClick = (e) => __async(void 0, null, function* () {
695
+ e.stopPropagation();
691
696
  if (loading) return;
692
697
  if (disabled) return;
693
698
  setLoading(true);
@@ -769,7 +774,8 @@ var ApproveButton = ({
769
774
  iconOnly
770
775
  }) => {
771
776
  const [loading, setLoading] = useState8(false);
772
- const internalOnClick = () => __async(void 0, null, function* () {
777
+ const internalOnClick = (e) => __async(void 0, null, function* () {
778
+ e.stopPropagation();
773
779
  if (loading) return;
774
780
  if (disabled) return;
775
781
  setLoading(true);
@@ -7407,7 +7413,7 @@ var ActivityTemplateLabel = ({
7407
7413
  icon,
7408
7414
  font
7409
7415
  }) => {
7410
- return /* @__PURE__ */ jsx56("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs42("div", { className: "flex flex-row items-center gap-x-2", children: [
7416
+ return /* @__PURE__ */ jsx56("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ jsxs42("div", { className: "flex flex-row items-center gap-x-2", children: [
7411
7417
  icon ? icon : /* @__PURE__ */ jsx56(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
7412
7418
  /* @__PURE__ */ jsx56("p", { className: font ? font : "text-sm", children: title })
7413
7419
  ] }) });
@@ -7417,7 +7423,7 @@ var ActivityTemplateLabel_default = ActivityTemplateLabel;
7417
7423
  // src/components/labels/BrandLabel.tsx
7418
7424
  import { jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
7419
7425
  var BrandLabel = ({ title, icon, font }) => {
7420
- return /* @__PURE__ */ jsx57("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs43("div", { className: "flex flex-row items-center gap-x-2", children: [
7426
+ return /* @__PURE__ */ jsx57("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ jsxs43("div", { className: "flex flex-row items-center gap-x-2", children: [
7421
7427
  icon ? icon : /* @__PURE__ */ jsx57(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
7422
7428
  /* @__PURE__ */ jsx57("p", { className: font ? font : "text-sm", children: title })
7423
7429
  ] }) });
@@ -7427,7 +7433,7 @@ var BrandLabel_default = BrandLabel;
7427
7433
  // src/components/labels/CategoryLabel.tsx
7428
7434
  import { jsx as jsx58, jsxs as jsxs44 } from "react/jsx-runtime";
7429
7435
  var CategoryLabel = ({ title, icon, font }) => {
7430
- return /* @__PURE__ */ jsx58("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
7436
+ return /* @__PURE__ */ jsx58("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
7431
7437
  icon ? icon : /* @__PURE__ */ jsx58(
7432
7438
  BaseImage_default,
7433
7439
  {
@@ -7444,21 +7450,21 @@ var CategoryLabel_default = CategoryLabel;
7444
7450
  // src/components/labels/CoterieLabel.tsx
7445
7451
  import { jsx as jsx59 } from "react/jsx-runtime";
7446
7452
  var CoterieLabel = ({ title, font }) => {
7447
- return /* @__PURE__ */ jsx59("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsx59("p", { className: font ? font : "text-sm", children: title }) });
7453
+ return /* @__PURE__ */ jsx59("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ jsx59("p", { className: font ? font : "text-sm", children: title }) });
7448
7454
  };
7449
7455
  var CoterieLabel_default = CoterieLabel;
7450
7456
 
7451
7457
  // src/components/labels/GradeLabel.tsx
7452
7458
  import { jsx as jsx60 } from "react/jsx-runtime";
7453
7459
  var GradeLabel = ({ title, font }) => {
7454
- return /* @__PURE__ */ jsx60("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsx60("p", { className: font ? font : "text-sm", children: title }) });
7460
+ return /* @__PURE__ */ jsx60("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ jsx60("p", { className: font ? font : "text-sm", children: title }) });
7455
7461
  };
7456
7462
  var GradeLabel_default = GradeLabel;
7457
7463
 
7458
7464
  // src/components/labels/OutcomeLabel.tsx
7459
7465
  import { jsx as jsx61, jsxs as jsxs45 } from "react/jsx-runtime";
7460
7466
  var OutcomeLabel = ({ title, font }) => {
7461
- return /* @__PURE__ */ jsx61("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-row items-center gap-x-2", children: [
7467
+ return /* @__PURE__ */ jsx61("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-row items-center gap-x-2", children: [
7462
7468
  /* @__PURE__ */ jsx61(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
7463
7469
  /* @__PURE__ */ jsx61("p", { className: font ? font : "text-sm", children: title })
7464
7470
  ] }) });
@@ -7468,7 +7474,7 @@ var OutcomeLabel_default = OutcomeLabel;
7468
7474
  // src/components/labels/PersonalLabel.tsx
7469
7475
  import { jsx as jsx62, jsxs as jsxs46 } from "react/jsx-runtime";
7470
7476
  var PersonalLabel = ({ title, icon, font }) => {
7471
- return /* @__PURE__ */ jsx62("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs46("div", { className: "flex flex-row items-center gap-x-2", children: [
7477
+ return /* @__PURE__ */ jsx62("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ jsxs46("div", { className: "flex flex-row items-center gap-x-2", children: [
7472
7478
  icon ? icon : /* @__PURE__ */ jsx62(
7473
7479
  BaseImage_default,
7474
7480
  {
@@ -7485,7 +7491,7 @@ var PersonalLabel_default = PersonalLabel;
7485
7491
  // src/components/labels/PublishingHouseLabel.tsx
7486
7492
  import { jsx as jsx63, jsxs as jsxs47 } from "react/jsx-runtime";
7487
7493
  var PublishingHouseLabel = ({ title, icon, font }) => {
7488
- return /* @__PURE__ */ jsx63("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs47("div", { className: "flex flex-row items-center gap-x-2", children: [
7494
+ return /* @__PURE__ */ jsx63("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ jsxs47("div", { className: "flex flex-row items-center gap-x-2", children: [
7489
7495
  icon ? icon : /* @__PURE__ */ jsx63(
7490
7496
  BaseImage_default,
7491
7497
  {
@@ -7502,7 +7508,7 @@ var PublishingHouseLabel_default = PublishingHouseLabel;
7502
7508
  // src/components/labels/ActivityLabel.tsx
7503
7509
  import { jsx as jsx64 } from "react/jsx-runtime";
7504
7510
  var ActivityLabel = ({ title, font }) => {
7505
- return /* @__PURE__ */ jsx64("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsx64("p", { className: font ? font : "text-sm", children: title }) });
7511
+ return /* @__PURE__ */ jsx64("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto", children: /* @__PURE__ */ jsx64("p", { className: font ? font : "text-sm", children: title }) });
7506
7512
  };
7507
7513
  var ActivityLabel_default = ActivityLabel;
7508
7514
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.16.9",
3
+ "version": "1.16.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -14,7 +14,8 @@ const ApproveButton = ({
14
14
  }: IButtonProps) => {
15
15
  const [loading, setLoading] = useState(false);
16
16
 
17
- const internalOnClick = async () => {
17
+ const internalOnClick = async (e: any) => {
18
+ e.stopPropagation();
18
19
  if (loading) return;
19
20
  if (disabled) return;
20
21
  setLoading(true);
@@ -15,7 +15,8 @@ const CancelButton = ({
15
15
  const [loading, setLoading] = useState(false);
16
16
  const [isHovered, setIsHovered] = useState(false);
17
17
 
18
- const internalOnClick = async () => {
18
+ const internalOnClick = async (e: any) => {
19
+ e.stopPropagation();
19
20
  if (loading) return;
20
21
  if (disabled) return;
21
22
  setLoading(true);
@@ -14,7 +14,8 @@ const CreateButton = ({
14
14
  }: IButtonProps) => {
15
15
  const [loading, setLoading] = useState(false);
16
16
 
17
- const internalOnClick = async () => {
17
+ const internalOnClick = async (e: any) => {
18
+ e.stopPropagation();
18
19
  if (loading) return;
19
20
  if (disabled) return;
20
21
  setLoading(true);
@@ -15,7 +15,8 @@ const DeleteButton = ({
15
15
  const [loading, setLoading] = useState(false);
16
16
  const [isHovered, setIsHovered] = useState(false);
17
17
 
18
- const internalOnClick = async () => {
18
+ const internalOnClick = async (e: any) => {
19
+ e.stopPropagation();
19
20
  if (loading) return;
20
21
  if (disabled) return;
21
22
  setLoading(true);
@@ -14,7 +14,8 @@ const PrimaryButton = ({
14
14
  }: IButtonProps) => {
15
15
  const [loading, setLoading] = useState(false);
16
16
 
17
- const internalOnClick = async () => {
17
+ const internalOnClick = async (e: any) => {
18
+ e.stopPropagation();
18
19
  if (loading) return;
19
20
  if (disabled) return;
20
21
  setLoading(true);
@@ -15,7 +15,8 @@ const SecondaryButton = ({
15
15
  const [loading, setLoading] = useState(false);
16
16
  const [isHovered, setIsHovered] = useState(false);
17
17
 
18
- const internalOnClick = async () => {
18
+ const internalOnClick = async (e: any) => {
19
+ e.stopPropagation();
19
20
  if (loading) return;
20
21
  if (disabled) return;
21
22
  setLoading(true);
@@ -2,7 +2,7 @@ import { IActivityLabelProps } from "../../properties/LabelProperties";
2
2
 
3
3
  const ActivityLabel = ({ title, font }: IActivityLabelProps) => {
4
4
  return (
5
- <div className="px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge">
5
+ <div className="px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto">
6
6
  <p className={font ? font : "text-sm"}>{title}</p>
7
7
  </div>
8
8
  );
@@ -7,7 +7,7 @@ const ActivityTemplateLabel = ({
7
7
  font,
8
8
  }: IActivityTemplateLabelProps) => {
9
9
  return (
10
- <div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge">
10
+ <div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto">
11
11
  <div className="flex flex-row items-center gap-x-2">
12
12
  {icon ? (
13
13
  icon
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const BrandLabel = ({ title, icon, font }: IBrandLabelProps) => {
5
5
  return (
6
- <div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge">
6
+ <div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  {icon ? (
9
9
  icon
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const CategoryLabel = ({ title, icon, font }: ICategoryLabelProps) => {
5
5
  return (
6
- <div className="px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge">
6
+ <div className="px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge m-auto">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  {icon ? (
9
9
  icon
@@ -2,7 +2,7 @@ import { ICoterieLabelProps } from "../../properties/LabelProperties";
2
2
 
3
3
  const CoterieLabel = ({ title, font }: ICoterieLabelProps) => {
4
4
  return (
5
- <div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge">
5
+ <div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto">
6
6
  <p className={font ? font : "text-sm"}>{title}</p>
7
7
  </div>
8
8
  );
@@ -2,7 +2,7 @@ import { IGradeLabelProps } from "../../properties/LabelProperties";
2
2
 
3
3
  const GradeLabel = ({ title, font }: IGradeLabelProps) => {
4
4
  return (
5
- <div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge">
5
+ <div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto">
6
6
  <p className={font ? font : "text-sm"}>{title}</p>
7
7
  </div>
8
8
  );
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const OutcomeLabel = ({ title, font }: IOutcomeLabelProps) => {
5
5
  return (
6
- <div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge">
6
+ <div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  <BaseImage src="/icons/category.webp" alt="label" size="xsmall" />
9
9
  <p className={font ? font : "text-sm"}>{title}</p>
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const PersonalLabel = ({ title, icon, font }: IPersonalLabelProps) => {
5
5
  return (
6
- <div className="px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge">
6
+ <div className="px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge m-auto">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  {icon ? (
9
9
  icon
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const PublishingHouseLabel = ({ title, icon, font }: IPublishingLabelProps) => {
5
5
  return (
6
- <div className="px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge">
6
+ <div className="px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  {icon ? (
9
9
  icon