dhre-ui-kit 0.0.111 → 0.0.114

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,6 +39,7 @@ function _interopNamespace(e) {
39
39
  }
40
40
 
41
41
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
42
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
42
43
  var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
43
44
  var Pdf__default = /*#__PURE__*/_interopDefaultLegacy(Pdf);
44
45
  var Progress__namespace = /*#__PURE__*/_interopNamespace(Progress);
@@ -650,71 +651,71 @@ const styles$B = reactNative.StyleSheet.create({
650
651
  rightIconStyle: { marginLeft: 8 }
651
652
  });
652
653
 
654
+ var _path$3;
653
655
  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); }
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
- }));
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
+ };
666
667
 
668
+ var _path$2;
667
669
  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); }
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
- }));
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
+ };
683
684
 
685
+ var _path$1, _path2;
684
686
  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); }
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
- }));
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
+ };
702
703
 
704
+ var _path;
703
705
  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); }
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
- }));
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
+ };
718
719
 
719
720
  const BottomDrawer = ({
720
721
  isModalVisible,
@@ -729,8 +730,8 @@ const BottomDrawer = ({
729
730
  showBlurView = true,
730
731
  showLeftIcon = false,
731
732
  showRightIcon = true,
732
- leftIcon = /* @__PURE__ */ React__default["default"].createElement(ArrowLeft, null),
733
- rightIcon = /* @__PURE__ */ React__default["default"].createElement(CrossIcon, null),
733
+ leftIcon = /* @__PURE__ */ React__default["default"].createElement(SvgArrowLeft, null),
734
+ rightIcon = /* @__PURE__ */ React__default["default"].createElement(SvgCrossIcon, null),
734
735
  onLeftIconPress,
735
736
  titleStyle,
736
737
  titleVariant = "B2_REGULAR",
@@ -2180,7 +2181,7 @@ const CustomSearchBar = ({
2180
2181
  onCrossIconPress,
2181
2182
  handleOnChangeText,
2182
2183
  setValue,
2183
- rightIcon = /* @__PURE__ */ React__default["default"].createElement(CrossIcon, null),
2184
+ rightIcon = /* @__PURE__ */ React__default["default"].createElement(SvgCrossIcon, null),
2184
2185
  disableBorderColor = "#4F4F4F",
2185
2186
  borderColor = "#FFFFFF",
2186
2187
  disablePlaceHolderStyle = "#686868",
@@ -2268,21 +2269,31 @@ const styles$k = reactNative.StyleSheet.create({
2268
2269
  const CustomHeader = ({
2269
2270
  title,
2270
2271
  testId = "CUSTOM-HEADER",
2271
- leftIcon = /* @__PURE__ */ React__default["default"].createElement(CaretLeft, null),
2272
- rightIcon = /* @__PURE__ */ React__default["default"].createElement(HeaderIcon, null),
2272
+ leftIcon = /* @__PURE__ */ React__default["default"].createElement(SvgCaretLeft, null),
2273
+ rightIcon = /* @__PURE__ */ React__default["default"].createElement(SvgDotsThreeVertical, null),
2273
2274
  showLeftIcon = true,
2274
2275
  showRightIcon = true,
2275
2276
  onLeftPress,
2276
2277
  onRightPress
2277
2278
  }) => {
2278
- return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.container, testID: testId }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.headderContainer }, /* @__PURE__ */ React__default["default"].createElement(
2279
+ return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.container, testID: testId }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.headderContainer }, showLeftIcon && React__default["default"].cloneElement(leftIcon, {
2280
+ width: moderateScale(24),
2281
+ height: moderateScale(24),
2282
+ onPress: onLeftPress,
2283
+ style: styles$k.leftIconStyle
2284
+ }), /* @__PURE__ */ React__default["default"].createElement(
2279
2285
  CustomTypography,
2280
2286
  {
2281
2287
  variant: "B2_REGULAR",
2282
2288
  text: title,
2283
2289
  style: styles$k.headerTitle
2284
2290
  }
2285
- )), /* @__PURE__ */ React__default["default"].createElement(CaretLeft, null), ",");
2291
+ )), showRightIcon && React__default["default"].cloneElement(rightIcon, {
2292
+ width: moderateScale(24),
2293
+ height: moderateScale(24),
2294
+ onPress: onRightPress,
2295
+ style: styles$k.rightIconStyle
2296
+ }));
2286
2297
  };
2287
2298
 
2288
2299
  const styles$j = reactNative.StyleSheet.create({