dhre-ui-kit 0.0.111 → 0.0.115

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,65 @@ const styles$B = reactNative.StyleSheet.create({
650
651
  rightIconStyle: { marginLeft: 8 }
651
652
  });
652
653
 
654
+ var _path$2;
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$2 || (_path$2 = /*#__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
 
667
668
  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
- }));
669
+ var SvgCaretLeft = function SvgCaretLeft(props) {
670
+ return /*#__PURE__*/React__namespace.createElement(Svg, _extends$2({
671
+ xmlns: "http://www.w3.org/2000/svg",
672
+ width: 24,
673
+ height: 24,
674
+ fill: "none",
675
+ viewBox: "0 0 24 24"
676
+ }, props));
677
+ };
683
678
 
679
+ var _path$1, _path2;
684
680
  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
- }));
681
+ var SvgDotsThreeVertical = function SvgDotsThreeVertical(props) {
682
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
683
+ xmlns: "http://www.w3.org/2000/svg",
684
+ width: 24,
685
+ height: 24,
686
+ fill: "none"
687
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
688
+ fill: "#fff",
689
+ stroke: "#fff",
690
+ strokeWidth: 0.125,
691
+ 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"
692
+ })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
693
+ fill: "#fff",
694
+ d: "M12 19.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"
695
+ })));
696
+ };
702
697
 
698
+ var _path;
703
699
  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
- }));
700
+ var SvgArrowLeft = function SvgArrowLeft(props) {
701
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
702
+ xmlns: "http://www.w3.org/2000/svg",
703
+ width: 24,
704
+ height: 24,
705
+ fill: "none"
706
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
707
+ fill: "#fff",
708
+ fillRule: "evenodd",
709
+ 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",
710
+ clipRule: "evenodd"
711
+ })));
712
+ };
718
713
 
719
714
  const BottomDrawer = ({
720
715
  isModalVisible,
@@ -729,8 +724,8 @@ const BottomDrawer = ({
729
724
  showBlurView = true,
730
725
  showLeftIcon = false,
731
726
  showRightIcon = true,
732
- leftIcon = /* @__PURE__ */ React__default["default"].createElement(ArrowLeft, null),
733
- rightIcon = /* @__PURE__ */ React__default["default"].createElement(CrossIcon, null),
727
+ leftIcon = /* @__PURE__ */ React__default["default"].createElement(SvgArrowLeft, null),
728
+ rightIcon = /* @__PURE__ */ React__default["default"].createElement(SvgCrossIcon, null),
734
729
  onLeftIconPress,
735
730
  titleStyle,
736
731
  titleVariant = "B2_REGULAR",
@@ -2180,7 +2175,7 @@ const CustomSearchBar = ({
2180
2175
  onCrossIconPress,
2181
2176
  handleOnChangeText,
2182
2177
  setValue,
2183
- rightIcon = /* @__PURE__ */ React__default["default"].createElement(CrossIcon, null),
2178
+ rightIcon = /* @__PURE__ */ React__default["default"].createElement(SvgCrossIcon, null),
2184
2179
  disableBorderColor = "#4F4F4F",
2185
2180
  borderColor = "#FFFFFF",
2186
2181
  disablePlaceHolderStyle = "#686868",
@@ -2268,21 +2263,31 @@ const styles$k = reactNative.StyleSheet.create({
2268
2263
  const CustomHeader = ({
2269
2264
  title,
2270
2265
  testId = "CUSTOM-HEADER",
2271
- leftIcon = /* @__PURE__ */ React__default["default"].createElement(CaretLeft, null),
2272
- rightIcon = /* @__PURE__ */ React__default["default"].createElement(HeaderIcon, null),
2266
+ leftIcon = /* @__PURE__ */ React__default["default"].createElement(SvgCaretLeft, null),
2267
+ rightIcon = /* @__PURE__ */ React__default["default"].createElement(SvgDotsThreeVertical, null),
2273
2268
  showLeftIcon = true,
2274
2269
  showRightIcon = true,
2275
2270
  onLeftPress,
2276
2271
  onRightPress
2277
2272
  }) => {
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(
2273
+ 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, {
2274
+ width: moderateScale(24),
2275
+ height: moderateScale(24),
2276
+ onPress: onLeftPress,
2277
+ style: styles$k.leftIconStyle
2278
+ }), /* @__PURE__ */ React__default["default"].createElement(
2279
2279
  CustomTypography,
2280
2280
  {
2281
2281
  variant: "B2_REGULAR",
2282
2282
  text: title,
2283
2283
  style: styles$k.headerTitle
2284
2284
  }
2285
- )), /* @__PURE__ */ React__default["default"].createElement(CaretLeft, null), ",");
2285
+ )), showRightIcon && React__default["default"].cloneElement(rightIcon, {
2286
+ width: moderateScale(24),
2287
+ height: moderateScale(24),
2288
+ onPress: onRightPress,
2289
+ style: styles$k.rightIconStyle
2290
+ }));
2286
2291
  };
2287
2292
 
2288
2293
  const styles$j = reactNative.StyleSheet.create({