dhre-ui-kit 2.0.11 → 2.0.12

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.d.ts CHANGED
@@ -608,6 +608,7 @@ declare const _default$6: (props: {
608
608
  clearAllData?: () => void;
609
609
  handleSendFeedback?: () => void;
610
610
  setFeedback: (val: string) => void;
611
+ inputStyle?: ViewStyle;
611
612
  }) => React$1.JSX.Element;
612
613
 
613
614
  interface MobileNumberInputProps {
package/lib/index.js CHANGED
@@ -19,6 +19,7 @@ var reactNativePaper = require('react-native-paper');
19
19
  var reactNativeElementDropdown = require('react-native-element-dropdown');
20
20
  var DocumentPicker = require('react-native-document-picker');
21
21
  var RNFS = require('react-native-fs');
22
+ var Svg = require('react-native-svg');
22
23
 
23
24
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
24
25
 
@@ -51,6 +52,7 @@ var DeviceInfo__default = /*#__PURE__*/_interopDefaultLegacy(DeviceInfo);
51
52
  var CountryPicker__default = /*#__PURE__*/_interopDefaultLegacy(CountryPicker);
52
53
  var DocumentPicker__default = /*#__PURE__*/_interopDefaultLegacy(DocumentPicker);
53
54
  var RNFS__default = /*#__PURE__*/_interopDefaultLegacy(RNFS);
55
+ var Svg__default = /*#__PURE__*/_interopDefaultLegacy(Svg);
54
56
 
55
57
  var ShapeType = /* @__PURE__ */ ((ShapeType2) => {
56
58
  ShapeType2["LINE"] = "line";
@@ -7801,7 +7803,8 @@ const FeedbackForm = ({
7801
7803
  inputText,
7802
7804
  rightBtnTxt,
7803
7805
  leftBtnTxt,
7804
- setFeedback
7806
+ setFeedback,
7807
+ inputStyle = {}
7805
7808
  }) => {
7806
7809
  const maxChars = 200;
7807
7810
  const { theme } = useTheme();
@@ -7817,7 +7820,7 @@ const FeedbackForm = ({
7817
7820
  ), /* @__PURE__ */ React__default["default"].createElement(
7818
7821
  reactNative.TextInput,
7819
7822
  {
7820
- style: [styles.textInput, { height: Math.max(100) }],
7823
+ style: [styles.textInput, inputStyle, { height: Math.max(100) }],
7821
7824
  placeholder: inputText,
7822
7825
  multiline: true,
7823
7826
  placeholderTextColor: Theme.CONTENT_SECONDRY,
@@ -8918,7 +8921,11 @@ const styles$4 = reactNative.StyleSheet.create({
8918
8921
  width: "100%",
8919
8922
  marginLeft: 10
8920
8923
  },
8921
- lableContainer: { width: 60 }
8924
+ lableContainer: { width: 60 },
8925
+ newDividerStyle: {
8926
+ marginLeft: 10,
8927
+ width: "100%"
8928
+ }
8922
8929
  });
8923
8930
 
8924
8931
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -8977,9 +8984,24 @@ const Stepper = ({
8977
8984
  return { borderColor: theme.CONTENT_SECONDRY };
8978
8985
  }
8979
8986
  };
8987
+ const Divider = ({ status }) => {
8988
+ const style = renderDividerStyle(status);
8989
+ const dashed = status !== Status.Completed;
8990
+ return /* @__PURE__ */ React__default["default"].createElement(Svg__default["default"], { height: 1, width: "100%" }, /* @__PURE__ */ React__default["default"].createElement(
8991
+ Svg.Line,
8992
+ {
8993
+ x1: "0",
8994
+ y1: "0",
8995
+ x2: "90%",
8996
+ y2: "0",
8997
+ stroke: style.borderColor,
8998
+ strokeWidth: 1,
8999
+ strokeDasharray: dashed ? "4,4" : void 0
9000
+ }
9001
+ ));
9002
+ };
8980
9003
  return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$4.stepperContainer, ...containerStyle } }, data?.map((item, index) => {
8981
9004
  const stepCircleStyle = renderCircleStyle(item?.status);
8982
- const dividerStyle = renderDividerStyle(item?.status);
8983
9005
  const labelStyle = renderLableStyle(item?.status);
8984
9006
  const lastViewStyle = index === data?.length - 1 ? styles$4.lastStepWrapper : null;
8985
9007
  return /* @__PURE__ */ React__default["default"].createElement(
@@ -8997,7 +9019,7 @@ const Stepper = ({
8997
9019
  color: theme.CONTENT_PRIMARY
8998
9020
  }
8999
9021
  }
9000
- ), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$4.separator, ...dividerStyle } })),
9022
+ ), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$4.newDividerStyle }, /* @__PURE__ */ React__default["default"].createElement(Divider, { status: item.status }))),
9001
9023
  /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$4.lableContainer }, /* @__PURE__ */ React__default["default"].createElement(
9002
9024
  CustomTypography,
9003
9025
  {