dhre-ui-kit 0.0.106 → 0.0.107
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/lib/index.js +86 -270
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +86 -270
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -618,78 +618,29 @@ const styles$B = StyleSheet.create({
|
|
|
618
618
|
rightIconStyle: { marginLeft: 8 }
|
|
619
619
|
});
|
|
620
620
|
|
|
621
|
-
var _path$
|
|
622
|
-
function _extends$
|
|
623
|
-
var SvgSearchIcon = function SvgSearchIcon(props) {
|
|
624
|
-
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
625
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
626
|
-
width: 24,
|
|
627
|
-
height: 25,
|
|
628
|
-
fill: "none"
|
|
629
|
-
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
630
|
-
stroke: "#A7A7A7",
|
|
631
|
-
strokeLinecap: "round",
|
|
632
|
-
strokeLinejoin: "round",
|
|
633
|
-
strokeWidth: 1.5,
|
|
634
|
-
d: "M10.875 19.469a7.875 7.875 0 1 0 0-15.75 7.875 7.875 0 0 0 0 15.75M16.444 17.163 21 21.719"
|
|
635
|
-
})));
|
|
636
|
-
};
|
|
637
|
-
|
|
638
|
-
var _path$b;
|
|
639
|
-
function _extends$c() { return _extends$c = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$c.apply(null, arguments); }
|
|
621
|
+
var _path$4;
|
|
622
|
+
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
640
623
|
var SvgCrossIcon = function SvgCrossIcon(props) {
|
|
641
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
624
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
642
625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
643
626
|
width: 24,
|
|
644
627
|
height: 25,
|
|
645
628
|
fill: "none"
|
|
646
|
-
}, props), _path$
|
|
629
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
647
630
|
fill: "#fff",
|
|
648
631
|
d: "M17.657 8.032a.686.686 0 0 0-.97-.97L12 11.749 7.313 7.062a.686.686 0 1 0-.97.97l4.687 4.687-4.687 4.687a.686.686 0 1 0 .97.97L12 13.688l4.687 4.688a.686.686 0 1 0 .97-.97l-4.687-4.687z"
|
|
649
632
|
})));
|
|
650
633
|
};
|
|
651
634
|
|
|
652
|
-
var _path$
|
|
653
|
-
function _extends$
|
|
654
|
-
var SvgCaretUp = function SvgCaretUp(props) {
|
|
655
|
-
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
656
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
657
|
-
width: 28,
|
|
658
|
-
height: 20,
|
|
659
|
-
fill: "none"
|
|
660
|
-
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
661
|
-
stroke: "#A7A7A7",
|
|
662
|
-
strokeLinecap: "round",
|
|
663
|
-
strokeLinejoin: "round",
|
|
664
|
-
d: "M3.75 12.5 10 6.25l6.25 6.25"
|
|
665
|
-
})));
|
|
666
|
-
};
|
|
667
|
-
|
|
668
|
-
var _path$9;
|
|
669
|
-
function _extends$a() { return _extends$a = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$a.apply(null, arguments); }
|
|
670
|
-
var SvgCaretDown = function SvgCaretDown(props) {
|
|
671
|
-
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
672
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
673
|
-
width: 28,
|
|
674
|
-
height: 20,
|
|
675
|
-
fill: "none"
|
|
676
|
-
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
677
|
-
stroke: "#A7A7A7",
|
|
678
|
-
strokeLinecap: "round",
|
|
679
|
-
strokeLinejoin: "round",
|
|
680
|
-
d: "M16.25 7.5 10 13.75 3.75 7.5"
|
|
681
|
-
})));
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
var _path$8;
|
|
685
|
-
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
635
|
+
var _path$3;
|
|
636
|
+
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
686
637
|
var SvgCaretLeft = function SvgCaretLeft(props) {
|
|
687
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
638
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
688
639
|
xmlns: "http://www.w3.org/2000/svg",
|
|
689
640
|
width: 24,
|
|
690
641
|
height: 24,
|
|
691
642
|
fill: "none"
|
|
692
|
-
}, props), _path$
|
|
643
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
693
644
|
stroke: "#fff",
|
|
694
645
|
strokeLinecap: "round",
|
|
695
646
|
strokeLinejoin: "round",
|
|
@@ -698,48 +649,34 @@ var SvgCaretLeft = function SvgCaretLeft(props) {
|
|
|
698
649
|
})));
|
|
699
650
|
};
|
|
700
651
|
|
|
701
|
-
var _path$
|
|
702
|
-
function _extends$
|
|
652
|
+
var _path$2, _path2;
|
|
653
|
+
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
703
654
|
var SvgDotsThreeVertical = function SvgDotsThreeVertical(props) {
|
|
704
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
655
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
705
656
|
xmlns: "http://www.w3.org/2000/svg",
|
|
706
657
|
width: 24,
|
|
707
658
|
height: 24,
|
|
708
659
|
fill: "none"
|
|
709
|
-
}, props), _path$
|
|
660
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
710
661
|
fill: "#fff",
|
|
711
662
|
stroke: "#fff",
|
|
712
663
|
strokeWidth: 0.125,
|
|
713
664
|
d: "M13.438 6a1.438 1.438 0 1 1-2.876 0 1.438 1.438 0 0 1 2.876 0ZM13.438 12a1.438 1.438 0 1 1-2.876 0 1.438 1.438 0 0 1 2.876 0Z"
|
|
714
|
-
})), _path2
|
|
665
|
+
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
715
666
|
fill: "#fff",
|
|
716
667
|
d: "M12 19.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"
|
|
717
668
|
})));
|
|
718
669
|
};
|
|
719
670
|
|
|
720
|
-
var _path$
|
|
721
|
-
function _extends$
|
|
722
|
-
var SvgCircleTick = function SvgCircleTick(props) {
|
|
723
|
-
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
724
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
725
|
-
width: 20,
|
|
726
|
-
height: 20,
|
|
727
|
-
fill: "none"
|
|
728
|
-
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
729
|
-
fill: "#fff",
|
|
730
|
-
d: "M14.03 7.22a.75.75 0 0 1 0 1.06l-5.25 5.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l1.72 1.72 4.72-4.72a.75.75 0 0 1 1.06 0M19.5 10A9.75 9.75 0 1 1 9.75.25 9.76 9.76 0 0 1 19.5 10M18 10a8.25 8.25 0 1 0-8.25 8.25A8.26 8.26 0 0 0 18 10"
|
|
731
|
-
})));
|
|
732
|
-
};
|
|
733
|
-
|
|
734
|
-
var _path$5;
|
|
735
|
-
function _extends$6() { return _extends$6 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$6.apply(null, arguments); }
|
|
671
|
+
var _path$1;
|
|
672
|
+
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
736
673
|
var SvgArrowLeft = function SvgArrowLeft(props) {
|
|
737
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
674
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
738
675
|
xmlns: "http://www.w3.org/2000/svg",
|
|
739
676
|
width: 24,
|
|
740
677
|
height: 24,
|
|
741
678
|
fill: "none"
|
|
742
|
-
}, props), _path$
|
|
679
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
743
680
|
fill: "#fff",
|
|
744
681
|
fillRule: "evenodd",
|
|
745
682
|
d: "M15.6 4.186a.774.774 0 0 1 .085 1.092L9.923 12l5.762 6.722a.774.774 0 0 1-1.176 1.008l-6.194-7.226a.774.774 0 0 1 0-1.008L14.51 4.27a.774.774 0 0 1 1.092-.084",
|
|
@@ -747,52 +684,15 @@ var SvgArrowLeft = function SvgArrowLeft(props) {
|
|
|
747
684
|
})));
|
|
748
685
|
};
|
|
749
686
|
|
|
750
|
-
var _path
|
|
751
|
-
function _extends
|
|
752
|
-
var SvgBellSimple = function SvgBellSimple(props) {
|
|
753
|
-
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
754
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
755
|
-
width: 29,
|
|
756
|
-
height: 29,
|
|
757
|
-
fill: "none"
|
|
758
|
-
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
759
|
-
fill: "#fff",
|
|
760
|
-
d: "M18.805 25.375a.68.68 0 0 1-.68.68h-7.25a.68.68 0 1 1 0-1.36h7.25a.68.68 0 0 1 .68.68m6.13-3.738a1.57 1.57 0 0 1-1.371.793H5.437a1.587 1.587 0 0 1-1.366-2.386c.64-1.103 1.593-4.214 1.593-8.263a8.836 8.836 0 0 1 17.672 0c0 4.048.954 7.16 1.595 8.263a1.57 1.57 0 0 1 .003 1.593m-1.18-.907c-.857-1.472-1.778-4.907-1.778-8.949a7.477 7.477 0 0 0-14.954 0c0 4.043-.922 7.477-1.78 8.95a.23.23 0 0 0 0 .226.22.22 0 0 0 .193.113h18.127a.22.22 0 0 0 .192-.113.23.23 0 0 0 0-.227"
|
|
761
|
-
})));
|
|
762
|
-
};
|
|
763
|
-
|
|
764
|
-
var _g, _defs;
|
|
765
|
-
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
766
|
-
var SvgUploadFileIcon = function SvgUploadFileIcon(props) {
|
|
767
|
-
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
768
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
769
|
-
width: 24,
|
|
770
|
-
height: 25,
|
|
771
|
-
fill: "none"
|
|
772
|
-
}, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
773
|
-
stroke: "#000",
|
|
774
|
-
strokeLinecap: "round",
|
|
775
|
-
strokeLinejoin: "round",
|
|
776
|
-
clipPath: "url(#uploadFileIcon_svg__a)"
|
|
777
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
778
|
-
d: "M12 14V3.5M20.25 14v6H3.75v-6M8.25 7.25 12 3.5l3.75 3.75"
|
|
779
|
-
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
780
|
-
id: "uploadFileIcon_svg__a"
|
|
781
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
782
|
-
fill: "#fff",
|
|
783
|
-
d: "M0 .5h24v24H0z"
|
|
784
|
-
})))));
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
var _path$3;
|
|
788
|
-
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
687
|
+
var _path;
|
|
688
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
789
689
|
var SvgCaretRight = function SvgCaretRight(props) {
|
|
790
|
-
return /*#__PURE__*/React.createElement("svg", _extends
|
|
690
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
791
691
|
xmlns: "http://www.w3.org/2000/svg",
|
|
792
692
|
width: 18,
|
|
793
693
|
height: 18,
|
|
794
694
|
fill: "none"
|
|
795
|
-
}, props), _path
|
|
695
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
796
696
|
stroke: "#fff",
|
|
797
697
|
strokeLinecap: "round",
|
|
798
698
|
strokeLinejoin: "round",
|
|
@@ -800,60 +700,6 @@ var SvgCaretRight = function SvgCaretRight(props) {
|
|
|
800
700
|
})));
|
|
801
701
|
};
|
|
802
702
|
|
|
803
|
-
var _path$2;
|
|
804
|
-
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
805
|
-
var SvgCheckWhite = function SvgCheckWhite(props) {
|
|
806
|
-
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
807
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
808
|
-
width: 16,
|
|
809
|
-
height: 16,
|
|
810
|
-
fill: "none"
|
|
811
|
-
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
812
|
-
stroke: "#fff",
|
|
813
|
-
strokeLinecap: "round",
|
|
814
|
-
strokeLinejoin: "round",
|
|
815
|
-
strokeWidth: 2,
|
|
816
|
-
d: "m13.5 4.5-7 7L3 8"
|
|
817
|
-
})));
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
var _path$1, _path2;
|
|
821
|
-
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
822
|
-
var SvgFileIcon = function SvgFileIcon(props) {
|
|
823
|
-
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
824
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
825
|
-
width: 24,
|
|
826
|
-
height: 24,
|
|
827
|
-
fill: "none"
|
|
828
|
-
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
829
|
-
stroke: "#000",
|
|
830
|
-
strokeLinecap: "round",
|
|
831
|
-
strokeLinejoin: "round",
|
|
832
|
-
d: "M4.5 12V3.75A.75.75 0 0 1 5.25 3h9l5.25 5.25V12"
|
|
833
|
-
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
834
|
-
stroke: "#000",
|
|
835
|
-
strokeLinecap: "round",
|
|
836
|
-
strokeLinejoin: "round",
|
|
837
|
-
d: "M14.25 3v5.25h5.25M4.5 18.75H6a1.5 1.5 0 1 0 0-3H4.5v4.5M20.25 15.75h-2.625v4.5M19.875 18.375h-2.25M12 20.25a2.25 2.25 0 0 0 0-4.5h-1.312v4.5z"
|
|
838
|
-
})));
|
|
839
|
-
};
|
|
840
|
-
|
|
841
|
-
var _path;
|
|
842
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
843
|
-
var SvgTrash = function SvgTrash(props) {
|
|
844
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
845
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
846
|
-
width: 24,
|
|
847
|
-
height: 24,
|
|
848
|
-
fill: "none"
|
|
849
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
850
|
-
stroke: "#EB0542",
|
|
851
|
-
strokeLinecap: "round",
|
|
852
|
-
strokeLinejoin: "round",
|
|
853
|
-
d: "M20.25 5.25H3.75M9.75 9.75v6M14.25 9.75v6M18.75 5.25V19.5a.75.75 0 0 1-.75.75H6a.75.75 0 0 1-.75-.75V5.25M15.75 5.25v-1.5a1.5 1.5 0 0 0-1.5-1.5h-4.5a1.5 1.5 0 0 0-1.5 1.5v1.5"
|
|
854
|
-
})));
|
|
855
|
-
};
|
|
856
|
-
|
|
857
703
|
const BottomDrawer = ({
|
|
858
704
|
isModalVisible,
|
|
859
705
|
toggleModal,
|
|
@@ -901,24 +747,14 @@ const BottomDrawer = ({
|
|
|
901
747
|
blurType: "light",
|
|
902
748
|
blurAmount
|
|
903
749
|
}
|
|
904
|
-
) : null, /* @__PURE__ */ React__default.createElement(View, { style: [styles$B.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(View, { style: styles$B.separator }), /* @__PURE__ */ React__default.createElement(View, { style: styles$B.headerContainer },
|
|
905
|
-
width: moderateScale(24),
|
|
906
|
-
height: moderateScale(24),
|
|
907
|
-
style: styles$B.leftIconStyle,
|
|
908
|
-
onPress: onLeftIconPress
|
|
909
|
-
}), /* @__PURE__ */ React__default.createElement(
|
|
750
|
+
) : null, /* @__PURE__ */ React__default.createElement(View, { style: [styles$B.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(View, { style: styles$B.separator }), /* @__PURE__ */ React__default.createElement(View, { style: styles$B.headerContainer }, /* @__PURE__ */ React__default.createElement(
|
|
910
751
|
CustomTypography,
|
|
911
752
|
{
|
|
912
753
|
variant: titleVariant,
|
|
913
754
|
text: title,
|
|
914
755
|
style: { ...styles$B.title, ...titleStyle }
|
|
915
756
|
}
|
|
916
|
-
),
|
|
917
|
-
width: moderateScale(24),
|
|
918
|
-
height: moderateScale(24),
|
|
919
|
-
style: styles$B.rightIconStyle,
|
|
920
|
-
onPress: toggleModal
|
|
921
|
-
}))), children))
|
|
757
|
+
))), children))
|
|
922
758
|
))
|
|
923
759
|
);
|
|
924
760
|
};
|
|
@@ -2159,12 +1995,7 @@ const Accordion = ({
|
|
|
2159
1995
|
text: title,
|
|
2160
1996
|
style: [styles$n.title, titleStyle]
|
|
2161
1997
|
}
|
|
2162
|
-
)
|
|
2163
|
-
React__default.cloneElement(isOpen ? /* @__PURE__ */ React__default.createElement(SvgCaretUp, null) : /* @__PURE__ */ React__default.createElement(SvgCaretDown, null), {
|
|
2164
|
-
width: moderateScale(20),
|
|
2165
|
-
height: moderateScale(20),
|
|
2166
|
-
style: styles$n.iconStyle
|
|
2167
|
-
})
|
|
1998
|
+
)
|
|
2168
1999
|
), optionalElement ? optionalElement() : null, isOpen && /* @__PURE__ */ React__default.createElement(Animated.View, { style: [styles$n.content, { height: cardHeight }] }, /* @__PURE__ */ React__default.createElement(
|
|
2169
2000
|
View,
|
|
2170
2001
|
{
|
|
@@ -2265,7 +2096,7 @@ const Toast = React__default.forwardRef((_props, ref) => {
|
|
|
2265
2096
|
],
|
|
2266
2097
|
testID: "TOAST"
|
|
2267
2098
|
},
|
|
2268
|
-
/* @__PURE__ */ React__default.createElement(View, { style: styles$m.toastContainer }, /* @__PURE__ */ React__default.createElement(View, { style: styles$m.innerContainer },
|
|
2099
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$m.toastContainer }, /* @__PURE__ */ React__default.createElement(View, { style: styles$m.innerContainer }, /* @__PURE__ */ React__default.createElement(
|
|
2269
2100
|
CustomTypography,
|
|
2270
2101
|
{
|
|
2271
2102
|
variant: "L2_REGULAR",
|
|
@@ -2361,12 +2192,7 @@ const CustomSearchBar = ({
|
|
|
2361
2192
|
onSearchIconPress?.();
|
|
2362
2193
|
},
|
|
2363
2194
|
style: searchIconStyle
|
|
2364
|
-
}
|
|
2365
|
-
React__default.cloneElement(/* @__PURE__ */ React__default.createElement(SvgSearchIcon, null), {
|
|
2366
|
-
width: moderateScale(24),
|
|
2367
|
-
height: moderateScale(24),
|
|
2368
|
-
style: [styles$l.searchIconStyle, searchIconStyle]
|
|
2369
|
-
})
|
|
2195
|
+
}
|
|
2370
2196
|
),
|
|
2371
2197
|
/* @__PURE__ */ React__default.createElement(
|
|
2372
2198
|
TextInput,
|
|
@@ -2423,44 +2249,6 @@ const styles$k = StyleSheet.create({
|
|
|
2423
2249
|
rightIconStyle: { marginLeft: horizontalScale(8) }
|
|
2424
2250
|
});
|
|
2425
2251
|
|
|
2426
|
-
const styles$j = StyleSheet.create({
|
|
2427
|
-
container: {
|
|
2428
|
-
justifyContent: "center",
|
|
2429
|
-
alignItems: "center"
|
|
2430
|
-
},
|
|
2431
|
-
title: {
|
|
2432
|
-
color: "#000"
|
|
2433
|
-
}
|
|
2434
|
-
});
|
|
2435
|
-
|
|
2436
|
-
const CustomIcon = ({
|
|
2437
|
-
icon,
|
|
2438
|
-
title,
|
|
2439
|
-
titleVariant = "L1_REGULAR",
|
|
2440
|
-
testId = "CUSTOM-ICON",
|
|
2441
|
-
onPress,
|
|
2442
|
-
containerStyle,
|
|
2443
|
-
titleStyle
|
|
2444
|
-
}) => {
|
|
2445
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
2446
|
-
Pressable,
|
|
2447
|
-
{
|
|
2448
|
-
style: [styles$j.container, containerStyle],
|
|
2449
|
-
onPress,
|
|
2450
|
-
testID: testId
|
|
2451
|
-
},
|
|
2452
|
-
icon,
|
|
2453
|
-
title && /* @__PURE__ */ React__default.createElement(
|
|
2454
|
-
CustomTypography,
|
|
2455
|
-
{
|
|
2456
|
-
variant: titleVariant,
|
|
2457
|
-
text: title,
|
|
2458
|
-
style: [styles$j.title, titleStyle]
|
|
2459
|
-
}
|
|
2460
|
-
)
|
|
2461
|
-
);
|
|
2462
|
-
};
|
|
2463
|
-
|
|
2464
2252
|
const CustomHeader = ({
|
|
2465
2253
|
title,
|
|
2466
2254
|
testId = "CUSTOM-HEADER",
|
|
@@ -2471,31 +2259,17 @@ const CustomHeader = ({
|
|
|
2471
2259
|
onLeftPress,
|
|
2472
2260
|
onRightPress
|
|
2473
2261
|
}) => {
|
|
2474
|
-
return /* @__PURE__ */ React__default.createElement(View, { style: styles$k.container, testID: testId }, /* @__PURE__ */ React__default.createElement(View, { style: styles$k.headderContainer },
|
|
2475
|
-
CustomIcon,
|
|
2476
|
-
{
|
|
2477
|
-
icon: leftIcon,
|
|
2478
|
-
onPress: onLeftPress,
|
|
2479
|
-
containerStyle: styles$k.leftIconStyle
|
|
2480
|
-
}
|
|
2481
|
-
), /* @__PURE__ */ React__default.createElement(
|
|
2262
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$k.container, testID: testId }, /* @__PURE__ */ React__default.createElement(View, { style: styles$k.headderContainer }, /* @__PURE__ */ React__default.createElement(
|
|
2482
2263
|
CustomTypography,
|
|
2483
2264
|
{
|
|
2484
2265
|
variant: "B2_REGULAR",
|
|
2485
2266
|
text: title,
|
|
2486
2267
|
style: styles$k.headerTitle
|
|
2487
2268
|
}
|
|
2488
|
-
))
|
|
2489
|
-
CustomIcon,
|
|
2490
|
-
{
|
|
2491
|
-
icon: rightIcon,
|
|
2492
|
-
onPress: onRightPress,
|
|
2493
|
-
containerStyle: styles$k.rightIconStyle
|
|
2494
|
-
}
|
|
2495
|
-
));
|
|
2269
|
+
)));
|
|
2496
2270
|
};
|
|
2497
2271
|
|
|
2498
|
-
const styles$
|
|
2272
|
+
const styles$j = StyleSheet.create({
|
|
2499
2273
|
container: {
|
|
2500
2274
|
flex: 1
|
|
2501
2275
|
},
|
|
@@ -2556,19 +2330,19 @@ const SwipableList = (props) => {
|
|
|
2556
2330
|
{
|
|
2557
2331
|
testID,
|
|
2558
2332
|
onPress,
|
|
2559
|
-
style: [styles$
|
|
2333
|
+
style: [styles$j.actionButton, style]
|
|
2560
2334
|
},
|
|
2561
2335
|
icon,
|
|
2562
2336
|
/* @__PURE__ */ React__default.createElement(
|
|
2563
2337
|
CustomTypography,
|
|
2564
2338
|
{
|
|
2565
2339
|
variant: "L1_REGULAR",
|
|
2566
|
-
style: [styles$
|
|
2340
|
+
style: [styles$j.titleStyle, titleStyle],
|
|
2567
2341
|
text: title
|
|
2568
2342
|
}
|
|
2569
2343
|
)
|
|
2570
2344
|
);
|
|
2571
|
-
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React__default.createElement(View, { style: [styles$
|
|
2345
|
+
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React__default.createElement(View, { style: [styles$j.leftActions, leftPrimaryActionStyle] }, leftPrimaryActionIcon && /* @__PURE__ */ React__default.createElement(
|
|
2572
2346
|
ActionButton,
|
|
2573
2347
|
{
|
|
2574
2348
|
icon: leftPrimaryActionIcon,
|
|
@@ -2587,7 +2361,7 @@ const SwipableList = (props) => {
|
|
|
2587
2361
|
testID: `${testId}-LEFT-SECONDARY-${item.id}`
|
|
2588
2362
|
}
|
|
2589
2363
|
));
|
|
2590
|
-
const rightActionHandle = (item) => /* @__PURE__ */ React__default.createElement(View, { style: [styles$
|
|
2364
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React__default.createElement(View, { style: [styles$j.rightActions, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React__default.createElement(
|
|
2591
2365
|
ActionButton,
|
|
2592
2366
|
{
|
|
2593
2367
|
icon: rightPrimaryActionIcon,
|
|
@@ -2597,7 +2371,7 @@ const SwipableList = (props) => {
|
|
|
2597
2371
|
testID: `${testId}-RIGHT-PRIMARY-${item.id}`
|
|
2598
2372
|
}
|
|
2599
2373
|
));
|
|
2600
|
-
const renderItem = ({ item }) => /* @__PURE__ */ React__default.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$
|
|
2374
|
+
const renderItem = ({ item }) => /* @__PURE__ */ React__default.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$j.container }, /* @__PURE__ */ React__default.createElement(
|
|
2601
2375
|
Swipeable,
|
|
2602
2376
|
{
|
|
2603
2377
|
renderLeftActions: () => leftActionHandle(
|
|
@@ -2608,7 +2382,7 @@ const SwipableList = (props) => {
|
|
|
2608
2382
|
item.isRead ? leftSecondaryActionInActiveTitle : leftSecondaryActionActiveTitle
|
|
2609
2383
|
),
|
|
2610
2384
|
renderRightActions: () => rightActionHandle(item),
|
|
2611
|
-
containerStyle: styles$
|
|
2385
|
+
containerStyle: styles$j.swippableContainer
|
|
2612
2386
|
},
|
|
2613
2387
|
props?.renderItem(item)
|
|
2614
2388
|
));
|
|
@@ -2618,11 +2392,49 @@ const SwipableList = (props) => {
|
|
|
2618
2392
|
data,
|
|
2619
2393
|
renderItem,
|
|
2620
2394
|
keyExtractor: (item) => item.id,
|
|
2621
|
-
ItemSeparatorComponent: () => /* @__PURE__ */ React__default.createElement(View, { style: styles$
|
|
2395
|
+
ItemSeparatorComponent: () => /* @__PURE__ */ React__default.createElement(View, { style: styles$j.seprator })
|
|
2622
2396
|
}
|
|
2623
2397
|
));
|
|
2624
2398
|
};
|
|
2625
2399
|
|
|
2400
|
+
const styles$i = StyleSheet.create({
|
|
2401
|
+
container: {
|
|
2402
|
+
justifyContent: "center",
|
|
2403
|
+
alignItems: "center"
|
|
2404
|
+
},
|
|
2405
|
+
title: {
|
|
2406
|
+
color: "#000"
|
|
2407
|
+
}
|
|
2408
|
+
});
|
|
2409
|
+
|
|
2410
|
+
const CustomIcon = ({
|
|
2411
|
+
icon,
|
|
2412
|
+
title,
|
|
2413
|
+
titleVariant = "L1_REGULAR",
|
|
2414
|
+
testId = "CUSTOM-ICON",
|
|
2415
|
+
onPress,
|
|
2416
|
+
containerStyle,
|
|
2417
|
+
titleStyle
|
|
2418
|
+
}) => {
|
|
2419
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2420
|
+
Pressable,
|
|
2421
|
+
{
|
|
2422
|
+
style: [styles$i.container, containerStyle],
|
|
2423
|
+
onPress,
|
|
2424
|
+
testID: testId
|
|
2425
|
+
},
|
|
2426
|
+
icon,
|
|
2427
|
+
title && /* @__PURE__ */ React__default.createElement(
|
|
2428
|
+
CustomTypography,
|
|
2429
|
+
{
|
|
2430
|
+
variant: titleVariant,
|
|
2431
|
+
text: title,
|
|
2432
|
+
style: [styles$i.title, titleStyle]
|
|
2433
|
+
}
|
|
2434
|
+
)
|
|
2435
|
+
);
|
|
2436
|
+
};
|
|
2437
|
+
|
|
2626
2438
|
const styles$h = StyleSheet.create({
|
|
2627
2439
|
container: {
|
|
2628
2440
|
flex: 1,
|
|
@@ -3079,9 +2891,9 @@ const NotificationBandge = ({
|
|
|
3079
2891
|
notificationCount = 0
|
|
3080
2892
|
}) => {
|
|
3081
2893
|
if (notificationCount <= 0) {
|
|
3082
|
-
return
|
|
2894
|
+
return null;
|
|
3083
2895
|
}
|
|
3084
|
-
return /* @__PURE__ */ React__default.createElement(View, { style: styles$b.iconContainer }, /* @__PURE__ */ React__default.createElement(
|
|
2896
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$b.iconContainer }, /* @__PURE__ */ React__default.createElement(View, { style: styles$b.badge }, /* @__PURE__ */ React__default.createElement(Text, { style: [styles$b.badgeText] }, notificationCount > 99 ? "99+" : notificationCount)));
|
|
3085
2897
|
};
|
|
3086
2898
|
|
|
3087
2899
|
const ScrollableList = ({
|
|
@@ -3669,8 +3481,13 @@ const CustomSwitchBtn = ({
|
|
|
3669
3481
|
);
|
|
3670
3482
|
};
|
|
3671
3483
|
|
|
3484
|
+
var __defProp = Object.defineProperty;
|
|
3485
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3486
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3672
3487
|
class ToastService {
|
|
3673
|
-
|
|
3488
|
+
constructor() {
|
|
3489
|
+
__publicField(this, "toastRef", null);
|
|
3490
|
+
}
|
|
3674
3491
|
setRef(ref) {
|
|
3675
3492
|
this.toastRef = ref;
|
|
3676
3493
|
}
|
|
@@ -3836,7 +3653,7 @@ const CustomDocumentPicker = ({
|
|
|
3836
3653
|
}
|
|
3837
3654
|
}
|
|
3838
3655
|
}, [fileTypes, maxFileSize, onDocumentUpload]);
|
|
3839
|
-
|
|
3656
|
+
useCallback(() => {
|
|
3840
3657
|
setDocDetails(void 0);
|
|
3841
3658
|
}, []);
|
|
3842
3659
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
@@ -3849,7 +3666,7 @@ const CustomDocumentPicker = ({
|
|
|
3849
3666
|
containerStyle
|
|
3850
3667
|
]
|
|
3851
3668
|
},
|
|
3852
|
-
/* @__PURE__ */ React__default.createElement(Pressable, { style: styles$3.innerContainer, onPress: pickDocument },
|
|
3669
|
+
/* @__PURE__ */ React__default.createElement(Pressable, { style: styles$3.innerContainer, onPress: pickDocument }, /* @__PURE__ */ React__default.createElement(View, { style: styles$3.titleContainer }, /* @__PURE__ */ React__default.createElement(
|
|
3853
3670
|
CustomTypography,
|
|
3854
3671
|
{
|
|
3855
3672
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -3863,8 +3680,7 @@ const CustomDocumentPicker = ({
|
|
|
3863
3680
|
text: hint,
|
|
3864
3681
|
style: [{ color: theme.CONTENT_SECONDRY }, hintStyle]
|
|
3865
3682
|
}
|
|
3866
|
-
)))
|
|
3867
|
-
docDetails && /* @__PURE__ */ React__default.createElement(SvgTrash, { onPress: removeDocument })
|
|
3683
|
+
)))
|
|
3868
3684
|
), error && /* @__PURE__ */ React__default.createElement(
|
|
3869
3685
|
CustomTypography,
|
|
3870
3686
|
{
|
|
@@ -4161,7 +3977,7 @@ const Stepper = ({
|
|
|
4161
3977
|
color: theme.CONTENT_PRIMARY
|
|
4162
3978
|
}
|
|
4163
3979
|
}
|
|
4164
|
-
)
|
|
3980
|
+
)), index != data?.length - 1 && /* @__PURE__ */ React__default.createElement(View, { style: { ...styles$1.separator, ...dividerStyle } })),
|
|
4165
3981
|
/* @__PURE__ */ React__default.createElement(View, { style: styles$1.lableContainer }, /* @__PURE__ */ React__default.createElement(
|
|
4166
3982
|
CustomTypography,
|
|
4167
3983
|
{
|