catchup-library-web 1.16.9 → 1.16.10
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 +12 -6
- package/dist/index.mjs +12 -6
- package/package.json +1 -1
- package/src/components/buttons/ApproveButton.tsx +2 -1
- package/src/components/buttons/CancelButton.tsx +2 -1
- package/src/components/buttons/CreateButton.tsx +2 -1
- package/src/components/buttons/DeleteButton.tsx +2 -1
- package/src/components/buttons/PrimaryButton.tsx +2 -1
- package/src/components/buttons/SecondaryButton.tsx +2 -1
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);
|
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);
|
package/package.json
CHANGED
|
@@ -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);
|