dhre-ui-kit 0.0.110 → 0.0.111

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 CHANGED
@@ -39,7 +39,6 @@ function _interopNamespace(e) {
39
39
  }
40
40
 
41
41
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
42
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
43
42
  var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
44
43
  var Pdf__default = /*#__PURE__*/_interopDefaultLegacy(Pdf);
45
44
  var Progress__namespace = /*#__PURE__*/_interopNamespace(Progress);
@@ -651,71 +650,71 @@ const styles$B = reactNative.StyleSheet.create({
651
650
  rightIconStyle: { marginLeft: 8 }
652
651
  });
653
652
 
654
- var _path$3;
655
653
  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); }
656
- var SvgCrossIcon = function SvgCrossIcon(props) {
657
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
658
- xmlns: "http://www.w3.org/2000/svg",
659
- width: 24,
660
- height: 25,
661
- fill: "none"
662
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
663
- fill: "#fff",
664
- 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"
665
- })));
666
- };
654
+ var CrossIcon = ({
655
+ styles = {},
656
+ ...props
657
+ }) => /*#__PURE__*/React__default["default"].createElement("svg", _extends$3({
658
+ width: "24",
659
+ height: "25",
660
+ fill: "none",
661
+ xmlns: "http://www.w3.org/2000/svg"
662
+ }, props), /*#__PURE__*/React__default["default"].createElement("path", {
663
+ d: "M17.657 8.032a.686.686 0 00-.97-.97L12 11.749 7.313 7.062a.686.686 0 10-.97.97l4.687 4.687-4.687 4.687a.686.686 0 10.97.97L12 13.688l4.687 4.688a.686.686 0 10.97-.97l-4.687-4.687 4.687-4.687z",
664
+ fill: "#fff"
665
+ }));
667
666
 
668
- var _path$2;
669
667
  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); }
670
- var SvgCaretLeft = function SvgCaretLeft(props) {
671
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
672
- xmlns: "http://www.w3.org/2000/svg",
673
- width: 24,
674
- height: 24,
675
- fill: "none"
676
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
677
- stroke: "#fff",
678
- strokeLinecap: "round",
679
- strokeLinejoin: "round",
680
- strokeWidth: 1.5,
681
- d: "M15 19.5 7.5 12 15 4.5"
682
- })));
683
- };
668
+ var CaretLeft = ({
669
+ styles = {},
670
+ ...props
671
+ }) => /*#__PURE__*/React__default["default"].createElement("svg", _extends$2({
672
+ width: "24",
673
+ height: "24",
674
+ fill: "none",
675
+ xmlns: "http://www.w3.org/2000/svg"
676
+ }, props), /*#__PURE__*/React__default["default"].createElement("path", {
677
+ d: "M15 19.5L7.5 12 15 4.5",
678
+ stroke: "#fff",
679
+ strokeWidth: "1.5",
680
+ strokeLinecap: "round",
681
+ strokeLinejoin: "round"
682
+ }));
684
683
 
685
- var _path$1, _path2;
686
684
  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); }
687
- var SvgDotsThreeVertical = function SvgDotsThreeVertical(props) {
688
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
689
- xmlns: "http://www.w3.org/2000/svg",
690
- width: 24,
691
- height: 24,
692
- fill: "none"
693
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
694
- fill: "#fff",
695
- stroke: "#fff",
696
- strokeWidth: 0.125,
697
- 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"
698
- })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
699
- fill: "#fff",
700
- d: "M12 19.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"
701
- })));
702
- };
685
+ var HeaderIcon = ({
686
+ styles = {},
687
+ ...props
688
+ }) => /*#__PURE__*/React__default["default"].createElement("svg", _extends$1({
689
+ width: "24",
690
+ height: "24",
691
+ fill: "none",
692
+ xmlns: "http://www.w3.org/2000/svg"
693
+ }, props), /*#__PURE__*/React__default["default"].createElement("path", {
694
+ d: "M13.438 6a1.438 1.438 0 11-2.876 0 1.438 1.438 0 012.876 0zM13.438 12a1.438 1.438 0 11-2.876 0 1.438 1.438 0 012.876 0z",
695
+ fill: "#fff",
696
+ stroke: "#fff",
697
+ strokeWidth: ".125"
698
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
699
+ d: "M12 19.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",
700
+ fill: "#fff"
701
+ }));
703
702
 
704
- var _path;
705
703
  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); }
706
- var SvgArrowLeft = function SvgArrowLeft(props) {
707
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
708
- xmlns: "http://www.w3.org/2000/svg",
709
- width: 24,
710
- height: 24,
711
- fill: "none"
712
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
713
- fill: "#fff",
714
- fillRule: "evenodd",
715
- 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",
716
- clipRule: "evenodd"
717
- })));
718
- };
704
+ var ArrowLeft = ({
705
+ styles = {},
706
+ ...props
707
+ }) => /*#__PURE__*/React__default["default"].createElement("svg", _extends({
708
+ width: "24",
709
+ height: "24",
710
+ fill: "none",
711
+ xmlns: "http://www.w3.org/2000/svg"
712
+ }, props), /*#__PURE__*/React__default["default"].createElement("path", {
713
+ fillRule: "evenodd",
714
+ clipRule: "evenodd",
715
+ d: "M15.6 4.186a.774.774 0 01.085 1.092L9.923 12l5.762 6.722a.774.774 0 01-1.176 1.008l-6.194-7.226a.774.774 0 010-1.008L14.51 4.27a.774.774 0 011.092-.084z",
716
+ fill: "#fff"
717
+ }));
719
718
 
720
719
  const BottomDrawer = ({
721
720
  isModalVisible,
@@ -730,8 +729,8 @@ const BottomDrawer = ({
730
729
  showBlurView = true,
731
730
  showLeftIcon = false,
732
731
  showRightIcon = true,
733
- leftIcon = /* @__PURE__ */ React__default["default"].createElement(SvgArrowLeft, null),
734
- rightIcon = /* @__PURE__ */ React__default["default"].createElement(SvgCrossIcon, null),
732
+ leftIcon = /* @__PURE__ */ React__default["default"].createElement(ArrowLeft, null),
733
+ rightIcon = /* @__PURE__ */ React__default["default"].createElement(CrossIcon, null),
735
734
  onLeftIconPress,
736
735
  titleStyle,
737
736
  titleVariant = "B2_REGULAR",
@@ -2181,7 +2180,7 @@ const CustomSearchBar = ({
2181
2180
  onCrossIconPress,
2182
2181
  handleOnChangeText,
2183
2182
  setValue,
2184
- rightIcon = /* @__PURE__ */ React__default["default"].createElement(SvgCrossIcon, null),
2183
+ rightIcon = /* @__PURE__ */ React__default["default"].createElement(CrossIcon, null),
2185
2184
  disableBorderColor = "#4F4F4F",
2186
2185
  borderColor = "#FFFFFF",
2187
2186
  disablePlaceHolderStyle = "#686868",
@@ -2269,8 +2268,8 @@ const styles$k = reactNative.StyleSheet.create({
2269
2268
  const CustomHeader = ({
2270
2269
  title,
2271
2270
  testId = "CUSTOM-HEADER",
2272
- leftIcon = /* @__PURE__ */ React__default["default"].createElement(SvgCaretLeft, null),
2273
- rightIcon = /* @__PURE__ */ React__default["default"].createElement(SvgDotsThreeVertical, null),
2271
+ leftIcon = /* @__PURE__ */ React__default["default"].createElement(CaretLeft, null),
2272
+ rightIcon = /* @__PURE__ */ React__default["default"].createElement(HeaderIcon, null),
2274
2273
  showLeftIcon = true,
2275
2274
  showRightIcon = true,
2276
2275
  onLeftPress,
@@ -2283,7 +2282,7 @@ const CustomHeader = ({
2283
2282
  text: title,
2284
2283
  style: styles$k.headerTitle
2285
2284
  }
2286
- )), /* @__PURE__ */ React__default["default"].createElement(SvgCaretLeft, null), ",");
2285
+ )), /* @__PURE__ */ React__default["default"].createElement(CaretLeft, null), ",");
2287
2286
  };
2288
2287
 
2289
2288
  const styles$j = reactNative.StyleSheet.create({