contentoh-components-library 21.3.97 → 21.3.99
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/components/atoms/RetailerCatalog/index.js +4 -4
- package/dist/components/atoms/RetailersList/index.js +3 -1
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +1 -0
- package/dist/components/atoms/UserCatalog/index.js +23 -9
- package/dist/components/atoms/UserOption/index.js +49 -2
- package/dist/components/atoms/UserOption/styles.js +1 -1
- package/dist/components/atoms/UserSelector/index.js +13 -4
- package/dist/components/molecules/GridItem/index.js +4 -3
- package/dist/components/molecules/GridItem/styles.js +1 -1
- package/dist/components/molecules/HeaderItem/styles.js +1 -1
- package/dist/components/molecules/RowItem/index.js +1 -1
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +7 -3
- package/dist/components/organisms/GridProducts/index.js +1 -6
- package/dist/components/organisms/GridProducts/utils.js +6 -2
- package/dist/index.js +72 -59
- package/package.json +1 -1
- package/src/components/atoms/RetailerCatalog/index.js +3 -4
- package/src/components/atoms/RetailersList/index.js +2 -2
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +1 -0
- package/src/components/atoms/UserCatalog/index.js +21 -2
- package/src/components/atoms/UserOption/index.js +40 -1
- package/src/components/atoms/UserOption/styles.js +8 -1
- package/src/components/atoms/UserSelector/index.js +22 -4
- package/src/components/molecules/GridItem/index.js +2 -1
- package/src/components/molecules/GridItem/styles.js +1 -1
- package/src/components/molecules/HeaderItem/styles.js +2 -0
- package/src/components/molecules/RowItem/index.js +1 -1
- package/src/components/organisms/GridProducts/GridProducts.stories.js +14 -3
- package/src/components/organisms/GridProducts/index.js +1 -4
- package/src/components/organisms/GridProducts/utils.js +5 -1
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
- package/src/index.js +1 -0
package/dist/index.js
CHANGED
|
@@ -524,7 +524,7 @@ Object.keys(_index40).forEach(function (key) {
|
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
526
|
|
|
527
|
-
var _index41 = require("./components/
|
|
527
|
+
var _index41 = require("./components/atoms/RetailerCatalog/index");
|
|
528
528
|
|
|
529
529
|
Object.keys(_index41).forEach(function (key) {
|
|
530
530
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -537,33 +537,33 @@ Object.keys(_index41).forEach(function (key) {
|
|
|
537
537
|
});
|
|
538
538
|
});
|
|
539
539
|
|
|
540
|
-
var
|
|
540
|
+
var _index42 = require("./components/molecules/AvatarAndValidation/index");
|
|
541
541
|
|
|
542
|
-
Object.keys(
|
|
542
|
+
Object.keys(_index42).forEach(function (key) {
|
|
543
543
|
if (key === "default" || key === "__esModule") return;
|
|
544
|
-
if (key in exports && exports[key] ===
|
|
544
|
+
if (key in exports && exports[key] === _index42[key]) return;
|
|
545
545
|
Object.defineProperty(exports, key, {
|
|
546
546
|
enumerable: true,
|
|
547
547
|
get: function get() {
|
|
548
|
-
return
|
|
548
|
+
return _index42[key];
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
});
|
|
552
552
|
|
|
553
|
-
var
|
|
553
|
+
var _CarouselImagesLogin = require("./components/molecules/CarouselImagesLogin");
|
|
554
554
|
|
|
555
|
-
Object.keys(
|
|
555
|
+
Object.keys(_CarouselImagesLogin).forEach(function (key) {
|
|
556
556
|
if (key === "default" || key === "__esModule") return;
|
|
557
|
-
if (key in exports && exports[key] ===
|
|
557
|
+
if (key in exports && exports[key] === _CarouselImagesLogin[key]) return;
|
|
558
558
|
Object.defineProperty(exports, key, {
|
|
559
559
|
enumerable: true,
|
|
560
560
|
get: function get() {
|
|
561
|
-
return
|
|
561
|
+
return _CarouselImagesLogin[key];
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
|
|
566
|
-
var _index43 = require("./components/molecules/
|
|
566
|
+
var _index43 = require("./components/molecules/EditionActiveImage/index");
|
|
567
567
|
|
|
568
568
|
Object.keys(_index43).forEach(function (key) {
|
|
569
569
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -576,7 +576,7 @@ Object.keys(_index43).forEach(function (key) {
|
|
|
576
576
|
});
|
|
577
577
|
});
|
|
578
578
|
|
|
579
|
-
var _index44 = require("./components/molecules/
|
|
579
|
+
var _index44 = require("./components/molecules/EmailResetPasswordLogin/index");
|
|
580
580
|
|
|
581
581
|
Object.keys(_index44).forEach(function (key) {
|
|
582
582
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -589,7 +589,7 @@ Object.keys(_index44).forEach(function (key) {
|
|
|
589
589
|
});
|
|
590
590
|
});
|
|
591
591
|
|
|
592
|
-
var _index45 = require("./components/molecules/
|
|
592
|
+
var _index45 = require("./components/molecules/FeaturesBar/index");
|
|
593
593
|
|
|
594
594
|
Object.keys(_index45).forEach(function (key) {
|
|
595
595
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -602,7 +602,7 @@ Object.keys(_index45).forEach(function (key) {
|
|
|
602
602
|
});
|
|
603
603
|
});
|
|
604
604
|
|
|
605
|
-
var _index46 = require("./components/molecules/
|
|
605
|
+
var _index46 = require("./components/molecules/GalleryElement/index");
|
|
606
606
|
|
|
607
607
|
Object.keys(_index46).forEach(function (key) {
|
|
608
608
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -615,7 +615,7 @@ Object.keys(_index46).forEach(function (key) {
|
|
|
615
615
|
});
|
|
616
616
|
});
|
|
617
617
|
|
|
618
|
-
var _index47 = require("./components/molecules/
|
|
618
|
+
var _index47 = require("./components/molecules/HeaderTop/index");
|
|
619
619
|
|
|
620
620
|
Object.keys(_index47).forEach(function (key) {
|
|
621
621
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -628,7 +628,7 @@ Object.keys(_index47).forEach(function (key) {
|
|
|
628
628
|
});
|
|
629
629
|
});
|
|
630
630
|
|
|
631
|
-
var _index48 = require("./components/molecules/
|
|
631
|
+
var _index48 = require("./components/molecules/ImageSelector/index");
|
|
632
632
|
|
|
633
633
|
Object.keys(_index48).forEach(function (key) {
|
|
634
634
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -641,7 +641,7 @@ Object.keys(_index48).forEach(function (key) {
|
|
|
641
641
|
});
|
|
642
642
|
});
|
|
643
643
|
|
|
644
|
-
var _index49 = require("./components/molecules/
|
|
644
|
+
var _index49 = require("./components/molecules/LoginPasswordStrength/index");
|
|
645
645
|
|
|
646
646
|
Object.keys(_index49).forEach(function (key) {
|
|
647
647
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -654,7 +654,7 @@ Object.keys(_index49).forEach(function (key) {
|
|
|
654
654
|
});
|
|
655
655
|
});
|
|
656
656
|
|
|
657
|
-
var _index50 = require("./components/molecules/
|
|
657
|
+
var _index50 = require("./components/molecules/LogoLoading/index");
|
|
658
658
|
|
|
659
659
|
Object.keys(_index50).forEach(function (key) {
|
|
660
660
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -667,7 +667,7 @@ Object.keys(_index50).forEach(function (key) {
|
|
|
667
667
|
});
|
|
668
668
|
});
|
|
669
669
|
|
|
670
|
-
var _index51 = require("./components/molecules/
|
|
670
|
+
var _index51 = require("./components/molecules/PlanSelection/index");
|
|
671
671
|
|
|
672
672
|
Object.keys(_index51).forEach(function (key) {
|
|
673
673
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -680,7 +680,7 @@ Object.keys(_index51).forEach(function (key) {
|
|
|
680
680
|
});
|
|
681
681
|
});
|
|
682
682
|
|
|
683
|
-
var _index52 = require("./components/molecules/
|
|
683
|
+
var _index52 = require("./components/molecules/ProductNameHeader/index");
|
|
684
684
|
|
|
685
685
|
Object.keys(_index52).forEach(function (key) {
|
|
686
686
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -693,7 +693,7 @@ Object.keys(_index52).forEach(function (key) {
|
|
|
693
693
|
});
|
|
694
694
|
});
|
|
695
695
|
|
|
696
|
-
var _index53 = require("./components/molecules/
|
|
696
|
+
var _index53 = require("./components/molecules/RegistrationFirstStep/index");
|
|
697
697
|
|
|
698
698
|
Object.keys(_index53).forEach(function (key) {
|
|
699
699
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -706,7 +706,7 @@ Object.keys(_index53).forEach(function (key) {
|
|
|
706
706
|
});
|
|
707
707
|
});
|
|
708
708
|
|
|
709
|
-
var _index54 = require("./components/molecules/
|
|
709
|
+
var _index54 = require("./components/molecules/RegistrationSecondStep/index");
|
|
710
710
|
|
|
711
711
|
Object.keys(_index54).forEach(function (key) {
|
|
712
712
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -719,7 +719,7 @@ Object.keys(_index54).forEach(function (key) {
|
|
|
719
719
|
});
|
|
720
720
|
});
|
|
721
721
|
|
|
722
|
-
var _index55 = require("./components/molecules/
|
|
722
|
+
var _index55 = require("./components/molecules/RegistrationThirdStep/index");
|
|
723
723
|
|
|
724
724
|
Object.keys(_index55).forEach(function (key) {
|
|
725
725
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -732,7 +732,7 @@ Object.keys(_index55).forEach(function (key) {
|
|
|
732
732
|
});
|
|
733
733
|
});
|
|
734
734
|
|
|
735
|
-
var _index56 = require("./components/molecules/
|
|
735
|
+
var _index56 = require("./components/molecules/SignInLogin/index");
|
|
736
736
|
|
|
737
737
|
Object.keys(_index56).forEach(function (key) {
|
|
738
738
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -745,7 +745,7 @@ Object.keys(_index56).forEach(function (key) {
|
|
|
745
745
|
});
|
|
746
746
|
});
|
|
747
747
|
|
|
748
|
-
var _index57 = require("./components/molecules/
|
|
748
|
+
var _index57 = require("./components/molecules/StatusAsignationInfo/index");
|
|
749
749
|
|
|
750
750
|
Object.keys(_index57).forEach(function (key) {
|
|
751
751
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -758,7 +758,7 @@ Object.keys(_index57).forEach(function (key) {
|
|
|
758
758
|
});
|
|
759
759
|
});
|
|
760
760
|
|
|
761
|
-
var _index58 = require("./components/molecules/
|
|
761
|
+
var _index58 = require("./components/molecules/TableHeader/index");
|
|
762
762
|
|
|
763
763
|
Object.keys(_index58).forEach(function (key) {
|
|
764
764
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -771,7 +771,7 @@ Object.keys(_index58).forEach(function (key) {
|
|
|
771
771
|
});
|
|
772
772
|
});
|
|
773
773
|
|
|
774
|
-
var _index59 = require("./components/molecules/
|
|
774
|
+
var _index59 = require("./components/molecules/TableRow/index");
|
|
775
775
|
|
|
776
776
|
Object.keys(_index59).forEach(function (key) {
|
|
777
777
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -784,7 +784,7 @@ Object.keys(_index59).forEach(function (key) {
|
|
|
784
784
|
});
|
|
785
785
|
});
|
|
786
786
|
|
|
787
|
-
var _index60 = require("./components/molecules/
|
|
787
|
+
var _index60 = require("./components/molecules/TabsMenu/index");
|
|
788
788
|
|
|
789
789
|
Object.keys(_index60).forEach(function (key) {
|
|
790
790
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -797,7 +797,7 @@ Object.keys(_index60).forEach(function (key) {
|
|
|
797
797
|
});
|
|
798
798
|
});
|
|
799
799
|
|
|
800
|
-
var _index61 = require("./components/molecules/
|
|
800
|
+
var _index61 = require("./components/molecules/TagAndInput/index");
|
|
801
801
|
|
|
802
802
|
Object.keys(_index61).forEach(function (key) {
|
|
803
803
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -810,7 +810,7 @@ Object.keys(_index61).forEach(function (key) {
|
|
|
810
810
|
});
|
|
811
811
|
});
|
|
812
812
|
|
|
813
|
-
var _index62 = require("./components/molecules/
|
|
813
|
+
var _index62 = require("./components/molecules/VerificationCodeResetPasswordLogin/index");
|
|
814
814
|
|
|
815
815
|
Object.keys(_index62).forEach(function (key) {
|
|
816
816
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -823,7 +823,7 @@ Object.keys(_index62).forEach(function (key) {
|
|
|
823
823
|
});
|
|
824
824
|
});
|
|
825
825
|
|
|
826
|
-
var _index63 = require("./components/molecules/
|
|
826
|
+
var _index63 = require("./components/molecules/RetailerSelector/index");
|
|
827
827
|
|
|
828
828
|
Object.keys(_index63).forEach(function (key) {
|
|
829
829
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -836,7 +836,7 @@ Object.keys(_index63).forEach(function (key) {
|
|
|
836
836
|
});
|
|
837
837
|
});
|
|
838
838
|
|
|
839
|
-
var _index64 = require("./components/molecules/
|
|
839
|
+
var _index64 = require("./components/molecules/CustomSelect/index");
|
|
840
840
|
|
|
841
841
|
Object.keys(_index64).forEach(function (key) {
|
|
842
842
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -849,7 +849,7 @@ Object.keys(_index64).forEach(function (key) {
|
|
|
849
849
|
});
|
|
850
850
|
});
|
|
851
851
|
|
|
852
|
-
var _index65 = require("./components/molecules/
|
|
852
|
+
var _index65 = require("./components/molecules/ButtonDownloadFile/index");
|
|
853
853
|
|
|
854
854
|
Object.keys(_index65).forEach(function (key) {
|
|
855
855
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -862,7 +862,7 @@ Object.keys(_index65).forEach(function (key) {
|
|
|
862
862
|
});
|
|
863
863
|
});
|
|
864
864
|
|
|
865
|
-
var _index66 = require("./components/molecules/
|
|
865
|
+
var _index66 = require("./components/molecules/ImageTooltip/index");
|
|
866
866
|
|
|
867
867
|
Object.keys(_index66).forEach(function (key) {
|
|
868
868
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -875,7 +875,7 @@ Object.keys(_index66).forEach(function (key) {
|
|
|
875
875
|
});
|
|
876
876
|
});
|
|
877
877
|
|
|
878
|
-
var _index67 = require("./components/molecules/
|
|
878
|
+
var _index67 = require("./components/molecules/SelectV2/index");
|
|
879
879
|
|
|
880
880
|
Object.keys(_index67).forEach(function (key) {
|
|
881
881
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -888,7 +888,7 @@ Object.keys(_index67).forEach(function (key) {
|
|
|
888
888
|
});
|
|
889
889
|
});
|
|
890
890
|
|
|
891
|
-
var _index68 = require("./components/molecules/
|
|
891
|
+
var _index68 = require("./components/molecules/Dropdown/index");
|
|
892
892
|
|
|
893
893
|
Object.keys(_index68).forEach(function (key) {
|
|
894
894
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -901,7 +901,7 @@ Object.keys(_index68).forEach(function (key) {
|
|
|
901
901
|
});
|
|
902
902
|
});
|
|
903
903
|
|
|
904
|
-
var _index69 = require("./components/molecules/
|
|
904
|
+
var _index69 = require("./components/molecules/StripeCardForm/index");
|
|
905
905
|
|
|
906
906
|
Object.keys(_index69).forEach(function (key) {
|
|
907
907
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -914,7 +914,7 @@ Object.keys(_index69).forEach(function (key) {
|
|
|
914
914
|
});
|
|
915
915
|
});
|
|
916
916
|
|
|
917
|
-
var _index70 = require("./components/molecules/
|
|
917
|
+
var _index70 = require("./components/molecules/StripeCardSelector/index");
|
|
918
918
|
|
|
919
919
|
Object.keys(_index70).forEach(function (key) {
|
|
920
920
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -927,7 +927,7 @@ Object.keys(_index70).forEach(function (key) {
|
|
|
927
927
|
});
|
|
928
928
|
});
|
|
929
929
|
|
|
930
|
-
var _index71 = require("./components/molecules/
|
|
930
|
+
var _index71 = require("./components/molecules/GridItem/index");
|
|
931
931
|
|
|
932
932
|
Object.keys(_index71).forEach(function (key) {
|
|
933
933
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -940,7 +940,7 @@ Object.keys(_index71).forEach(function (key) {
|
|
|
940
940
|
});
|
|
941
941
|
});
|
|
942
942
|
|
|
943
|
-
var _index72 = require("./components/molecules/
|
|
943
|
+
var _index72 = require("./components/molecules/HeaderItem/index");
|
|
944
944
|
|
|
945
945
|
Object.keys(_index72).forEach(function (key) {
|
|
946
946
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -953,7 +953,7 @@ Object.keys(_index72).forEach(function (key) {
|
|
|
953
953
|
});
|
|
954
954
|
});
|
|
955
955
|
|
|
956
|
-
var _index73 = require("./components/
|
|
956
|
+
var _index73 = require("./components/molecules/RowItem/index");
|
|
957
957
|
|
|
958
958
|
Object.keys(_index73).forEach(function (key) {
|
|
959
959
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -966,7 +966,7 @@ Object.keys(_index73).forEach(function (key) {
|
|
|
966
966
|
});
|
|
967
967
|
});
|
|
968
968
|
|
|
969
|
-
var _index74 = require("./components/organisms/
|
|
969
|
+
var _index74 = require("./components/organisms/ChangePassword/index");
|
|
970
970
|
|
|
971
971
|
Object.keys(_index74).forEach(function (key) {
|
|
972
972
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -979,7 +979,7 @@ Object.keys(_index74).forEach(function (key) {
|
|
|
979
979
|
});
|
|
980
980
|
});
|
|
981
981
|
|
|
982
|
-
var _index75 = require("./components/organisms/
|
|
982
|
+
var _index75 = require("./components/organisms/Fullplan/index");
|
|
983
983
|
|
|
984
984
|
Object.keys(_index75).forEach(function (key) {
|
|
985
985
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -992,7 +992,7 @@ Object.keys(_index75).forEach(function (key) {
|
|
|
992
992
|
});
|
|
993
993
|
});
|
|
994
994
|
|
|
995
|
-
var _index76 = require("./components/organisms/
|
|
995
|
+
var _index76 = require("./components/organisms/FullProductNameHeader/index");
|
|
996
996
|
|
|
997
997
|
Object.keys(_index76).forEach(function (key) {
|
|
998
998
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1005,7 +1005,7 @@ Object.keys(_index76).forEach(function (key) {
|
|
|
1005
1005
|
});
|
|
1006
1006
|
});
|
|
1007
1007
|
|
|
1008
|
-
var _index77 = require("./components/organisms/
|
|
1008
|
+
var _index77 = require("./components/organisms/FullTabsMenu/index");
|
|
1009
1009
|
|
|
1010
1010
|
Object.keys(_index77).forEach(function (key) {
|
|
1011
1011
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1018,7 +1018,7 @@ Object.keys(_index77).forEach(function (key) {
|
|
|
1018
1018
|
});
|
|
1019
1019
|
});
|
|
1020
1020
|
|
|
1021
|
-
var _index78 = require("./components/organisms/
|
|
1021
|
+
var _index78 = require("./components/organisms/ImageDataTable/index");
|
|
1022
1022
|
|
|
1023
1023
|
Object.keys(_index78).forEach(function (key) {
|
|
1024
1024
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1031,7 +1031,7 @@ Object.keys(_index78).forEach(function (key) {
|
|
|
1031
1031
|
});
|
|
1032
1032
|
});
|
|
1033
1033
|
|
|
1034
|
-
var _index79 = require("./components/organisms/
|
|
1034
|
+
var _index79 = require("./components/organisms/ImagePreviewer/index");
|
|
1035
1035
|
|
|
1036
1036
|
Object.keys(_index79).forEach(function (key) {
|
|
1037
1037
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1044,7 +1044,7 @@ Object.keys(_index79).forEach(function (key) {
|
|
|
1044
1044
|
});
|
|
1045
1045
|
});
|
|
1046
1046
|
|
|
1047
|
-
var _index80 = require("./components/organisms/
|
|
1047
|
+
var _index80 = require("./components/organisms/ImagesGroup/index");
|
|
1048
1048
|
|
|
1049
1049
|
Object.keys(_index80).forEach(function (key) {
|
|
1050
1050
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1057,7 +1057,7 @@ Object.keys(_index80).forEach(function (key) {
|
|
|
1057
1057
|
});
|
|
1058
1058
|
});
|
|
1059
1059
|
|
|
1060
|
-
var _index81 = require("./components/organisms/
|
|
1060
|
+
var _index81 = require("./components/organisms/InputGroup/index");
|
|
1061
1061
|
|
|
1062
1062
|
Object.keys(_index81).forEach(function (key) {
|
|
1063
1063
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1070,7 +1070,7 @@ Object.keys(_index81).forEach(function (key) {
|
|
|
1070
1070
|
});
|
|
1071
1071
|
});
|
|
1072
1072
|
|
|
1073
|
-
var _index82 = require("./components/organisms/
|
|
1073
|
+
var _index82 = require("./components/organisms/ProductImageModal/index");
|
|
1074
1074
|
|
|
1075
1075
|
Object.keys(_index82).forEach(function (key) {
|
|
1076
1076
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1083,7 +1083,7 @@ Object.keys(_index82).forEach(function (key) {
|
|
|
1083
1083
|
});
|
|
1084
1084
|
});
|
|
1085
1085
|
|
|
1086
|
-
var _index83 = require("./components/organisms/
|
|
1086
|
+
var _index83 = require("./components/organisms/Chat/index");
|
|
1087
1087
|
|
|
1088
1088
|
Object.keys(_index83).forEach(function (key) {
|
|
1089
1089
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1096,7 +1096,7 @@ Object.keys(_index83).forEach(function (key) {
|
|
|
1096
1096
|
});
|
|
1097
1097
|
});
|
|
1098
1098
|
|
|
1099
|
-
var _index84 = require("./components/organisms/
|
|
1099
|
+
var _index84 = require("./components/organisms/Modal/index");
|
|
1100
1100
|
|
|
1101
1101
|
Object.keys(_index84).forEach(function (key) {
|
|
1102
1102
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1109,6 +1109,19 @@ Object.keys(_index84).forEach(function (key) {
|
|
|
1109
1109
|
});
|
|
1110
1110
|
});
|
|
1111
1111
|
|
|
1112
|
+
var _index85 = require("./components/organisms/OrderDetail/index");
|
|
1113
|
+
|
|
1114
|
+
Object.keys(_index85).forEach(function (key) {
|
|
1115
|
+
if (key === "default" || key === "__esModule") return;
|
|
1116
|
+
if (key in exports && exports[key] === _index85[key]) return;
|
|
1117
|
+
Object.defineProperty(exports, key, {
|
|
1118
|
+
enumerable: true,
|
|
1119
|
+
get: function get() {
|
|
1120
|
+
return _index85[key];
|
|
1121
|
+
}
|
|
1122
|
+
});
|
|
1123
|
+
});
|
|
1124
|
+
|
|
1112
1125
|
var _RangeCalendar = require("./components/organisms/RangeCalendar");
|
|
1113
1126
|
|
|
1114
1127
|
Object.keys(_RangeCalendar).forEach(function (key) {
|
|
@@ -1135,28 +1148,28 @@ Object.keys(_TableResizable).forEach(function (key) {
|
|
|
1135
1148
|
});
|
|
1136
1149
|
});
|
|
1137
1150
|
|
|
1138
|
-
var
|
|
1151
|
+
var _index86 = require("./components/organisms/SideModal/index");
|
|
1139
1152
|
|
|
1140
|
-
Object.keys(
|
|
1153
|
+
Object.keys(_index86).forEach(function (key) {
|
|
1141
1154
|
if (key === "default" || key === "__esModule") return;
|
|
1142
|
-
if (key in exports && exports[key] ===
|
|
1155
|
+
if (key in exports && exports[key] === _index86[key]) return;
|
|
1143
1156
|
Object.defineProperty(exports, key, {
|
|
1144
1157
|
enumerable: true,
|
|
1145
1158
|
get: function get() {
|
|
1146
|
-
return
|
|
1159
|
+
return _index86[key];
|
|
1147
1160
|
}
|
|
1148
1161
|
});
|
|
1149
1162
|
});
|
|
1150
1163
|
|
|
1151
|
-
var
|
|
1164
|
+
var _index87 = require("./components/organisms/GridProducts/index");
|
|
1152
1165
|
|
|
1153
|
-
Object.keys(
|
|
1166
|
+
Object.keys(_index87).forEach(function (key) {
|
|
1154
1167
|
if (key === "default" || key === "__esModule") return;
|
|
1155
|
-
if (key in exports && exports[key] ===
|
|
1168
|
+
if (key in exports && exports[key] === _index87[key]) return;
|
|
1156
1169
|
Object.defineProperty(exports, key, {
|
|
1157
1170
|
enumerable: true,
|
|
1158
1171
|
get: function get() {
|
|
1159
|
-
return
|
|
1172
|
+
return _index87[key];
|
|
1160
1173
|
}
|
|
1161
1174
|
});
|
|
1162
1175
|
});
|
package/package.json
CHANGED
|
@@ -16,13 +16,12 @@ export const RetailerCatalog = ({
|
|
|
16
16
|
|
|
17
17
|
useEffect(() => {
|
|
18
18
|
setRetLimit(limit);
|
|
19
|
-
console.log("limit");
|
|
20
19
|
}, [retailers]);
|
|
21
20
|
|
|
22
21
|
return (
|
|
23
22
|
<Container
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
onClick={(e) => {
|
|
24
|
+
e.stopPropagation();
|
|
26
25
|
setShowRetailers(true);
|
|
27
26
|
}}
|
|
28
27
|
>
|
|
@@ -43,7 +42,7 @@ export const RetailerCatalog = ({
|
|
|
43
42
|
</div>
|
|
44
43
|
)}
|
|
45
44
|
{showRetailers && (
|
|
46
|
-
<RetailersList retailers={retailers} article={article} />
|
|
45
|
+
<RetailersList retailers={retailers} article={article} id={id} />
|
|
47
46
|
)}
|
|
48
47
|
</Container>
|
|
49
48
|
);
|
|
@@ -3,7 +3,7 @@ import { RetailerOption } from "../RetailerOption";
|
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import axios from "axios";
|
|
5
5
|
|
|
6
|
-
export const RetailersList = ({ retailers, article }) => {
|
|
6
|
+
export const RetailersList = ({ retailers, article, id }) => {
|
|
7
7
|
const [services, setServices] = useState({});
|
|
8
8
|
|
|
9
9
|
useEffect(() => {
|
|
@@ -11,7 +11,7 @@ export const RetailersList = ({ retailers, article }) => {
|
|
|
11
11
|
}, [article]);
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
|
-
<Container>
|
|
14
|
+
<Container id={id}>
|
|
15
15
|
{retailers.map((retailer, i) => (
|
|
16
16
|
<RetailerOption key={i} retailer={retailer} services={services} />
|
|
17
17
|
))}
|
|
@@ -2,8 +2,8 @@ import { Container } from "./styles";
|
|
|
2
2
|
import { Avatar } from "../Avatar";
|
|
3
3
|
import { getProfilePicture } from "../../../global-files/data";
|
|
4
4
|
import { UserOption } from "../UserOption";
|
|
5
|
-
import { useState } from "react";
|
|
6
5
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
6
|
+
import { useState } from "react";
|
|
7
7
|
import { useEffect } from "react";
|
|
8
8
|
|
|
9
9
|
export const UserCatalog = ({
|
|
@@ -15,11 +15,18 @@ export const UserCatalog = ({
|
|
|
15
15
|
textSpecialists = [],
|
|
16
16
|
imagesSpecialists = [],
|
|
17
17
|
id = "list-modal",
|
|
18
|
+
onAssign,
|
|
19
|
+
product,
|
|
18
20
|
}) => {
|
|
19
21
|
const [showList, setShowList] = useCloseModal(id);
|
|
20
22
|
|
|
21
23
|
return (
|
|
22
|
-
<Container
|
|
24
|
+
<Container
|
|
25
|
+
id={id}
|
|
26
|
+
onClick={() => {
|
|
27
|
+
setShowList(true);
|
|
28
|
+
}}
|
|
29
|
+
>
|
|
23
30
|
{datasheet && (
|
|
24
31
|
<Avatar
|
|
25
32
|
image={getProfilePicture(datasheet, 26, 26)}
|
|
@@ -51,24 +58,36 @@ export const UserCatalog = ({
|
|
|
51
58
|
{showList && (
|
|
52
59
|
<div className="users-assigned-list">
|
|
53
60
|
<UserOption
|
|
61
|
+
onAssign={onAssign}
|
|
62
|
+
product={product}
|
|
54
63
|
userId={datasheet}
|
|
55
64
|
usersArray={textSpecialists}
|
|
56
65
|
id={id + "-" + datasheet}
|
|
66
|
+
index={"datasheet"}
|
|
57
67
|
/>
|
|
58
68
|
<UserOption
|
|
69
|
+
onAssign={onAssign}
|
|
70
|
+
product={product}
|
|
59
71
|
userId={description}
|
|
60
72
|
usersArray={textSpecialists}
|
|
61
73
|
id={id + "-" + description}
|
|
74
|
+
index={"description"}
|
|
62
75
|
/>
|
|
63
76
|
<UserOption
|
|
77
|
+
onAssign={onAssign}
|
|
78
|
+
product={product}
|
|
64
79
|
userId={images}
|
|
65
80
|
usersArray={imagesSpecialists}
|
|
66
81
|
id={id + "-" + images}
|
|
82
|
+
index={"image"}
|
|
67
83
|
/>
|
|
68
84
|
<UserOption
|
|
85
|
+
onAssign={onAssign}
|
|
86
|
+
product={product}
|
|
69
87
|
userId={auditor}
|
|
70
88
|
usersArray={auditors}
|
|
71
89
|
id={id + "-" + auditor}
|
|
90
|
+
index={"auditor"}
|
|
72
91
|
/>
|
|
73
92
|
</div>
|
|
74
93
|
)}
|
|
@@ -7,9 +7,20 @@ import { servicesCodeIcon } from "../../organisms/OrderDetail/utils/Table/utils"
|
|
|
7
7
|
import { UserSelector } from "../UserSelector";
|
|
8
8
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
9
9
|
|
|
10
|
-
export const UserOption = ({
|
|
10
|
+
export const UserOption = ({
|
|
11
|
+
userId,
|
|
12
|
+
index,
|
|
13
|
+
usersArray,
|
|
14
|
+
id,
|
|
15
|
+
onAssign,
|
|
16
|
+
product,
|
|
17
|
+
}) => {
|
|
11
18
|
const [userAssigned, setUserAssigned] = useState({});
|
|
12
19
|
const [showSelector, setShowSelector] = useCloseModal(id);
|
|
20
|
+
const [assignationTarget, setAssignationTarget] = useState("");
|
|
21
|
+
const [concept, setConcept] = useState("");
|
|
22
|
+
const [target, setTarget] = useState("");
|
|
23
|
+
|
|
13
24
|
const icons = servicesCodeIcon;
|
|
14
25
|
|
|
15
26
|
useEffect(() => {
|
|
@@ -22,6 +33,29 @@ export const UserOption = ({ userId, index, usersArray, id }) => {
|
|
|
22
33
|
}
|
|
23
34
|
}, [userId, usersArray]);
|
|
24
35
|
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
switch (index) {
|
|
38
|
+
case "datasheet":
|
|
39
|
+
case "description":
|
|
40
|
+
setAssignationTarget(`id_${index}_specialist`);
|
|
41
|
+
setConcept(index);
|
|
42
|
+
setTarget("specialist");
|
|
43
|
+
break;
|
|
44
|
+
case "image":
|
|
45
|
+
setAssignationTarget(`id_${index}s_specialist`);
|
|
46
|
+
setConcept(index + "s");
|
|
47
|
+
setTarget("specialist");
|
|
48
|
+
break;
|
|
49
|
+
case "auditor":
|
|
50
|
+
setAssignationTarget(`id_${index}`);
|
|
51
|
+
setConcept(index);
|
|
52
|
+
setTarget(index);
|
|
53
|
+
break;
|
|
54
|
+
default:
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}, [index]);
|
|
58
|
+
|
|
25
59
|
return (
|
|
26
60
|
<Container onClick={() => setShowSelector(true)}>
|
|
27
61
|
<div className="image-and-name">
|
|
@@ -42,6 +76,11 @@ export const UserOption = ({ userId, index, usersArray, id }) => {
|
|
|
42
76
|
index={index}
|
|
43
77
|
usersArray={usersArray}
|
|
44
78
|
position="absolute"
|
|
79
|
+
onAssign={onAssign}
|
|
80
|
+
product={product}
|
|
81
|
+
assignationTarget={assignationTarget}
|
|
82
|
+
target={target}
|
|
83
|
+
concept={concept}
|
|
45
84
|
/>
|
|
46
85
|
)}
|
|
47
86
|
</Container>
|
|
@@ -14,7 +14,6 @@ export const Container = styled.div`
|
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
position: relative;
|
|
16
16
|
background-color: white;
|
|
17
|
-
width: 217px;
|
|
18
17
|
|
|
19
18
|
.image-and-name {
|
|
20
19
|
display: flex;
|
|
@@ -22,6 +21,11 @@ export const Container = styled.div`
|
|
|
22
21
|
|
|
23
22
|
div + p {
|
|
24
23
|
margin-left: 10px;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& + * {
|
|
28
|
+
margin-left: 10px;
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -38,6 +42,9 @@ export const Container = styled.div`
|
|
|
38
42
|
top: 50%;
|
|
39
43
|
transform: translateY(-50%);
|
|
40
44
|
white-space: nowrap;
|
|
45
|
+
border: 1px solid #f0f0f0;
|
|
46
|
+
padding: 5px;
|
|
47
|
+
background-color: white;
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
&:hover {
|