dhre-ui-kit 2.0.10 → 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.mjs CHANGED
@@ -15,6 +15,7 @@ import { TextInput as TextInput$1, MD3LightTheme } from 'react-native-paper';
15
15
  import { Dropdown } from 'react-native-element-dropdown';
16
16
  import DocumentPicker from 'react-native-document-picker';
17
17
  import RNFS from 'react-native-fs';
18
+ import Svg, { Line as Line$1 } from 'react-native-svg';
18
19
 
19
20
  var ShapeType = /* @__PURE__ */ ((ShapeType2) => {
20
21
  ShapeType2["LINE"] = "line";
@@ -98,6 +99,8 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
98
99
  Theme2["CONTENT_STATIC"] = "CONTENT_STATIC";
99
100
  Theme2["CONTENT_PRIMARY_STATIC"] = "CONTENT_PRIMARY_STATIC";
100
101
  Theme2["CONTENT_SECONDRY_STATIC"] = "CONTENT_SECONDRY_STATIC";
102
+ Theme2["CONTENT_SECONDARY_TEXT"] = "CONTENT_SECONDARY_TEXT";
103
+ Theme2["CONTENT_SECTION_HEADER_TEXT"] = "CONTENT_SECTION_HEADER_TEXT";
101
104
  Theme2["BORDER_PRIMARY"] = "BORDER_PRIMARY";
102
105
  Theme2["BORDER_SECONDRY"] = "BORDER_SECONDRY";
103
106
  Theme2["BORDER_DISABLE"] = "BORDER_DISABLE";
@@ -180,6 +183,14 @@ const theme = {
180
183
  light: "#686868",
181
184
  dark: "#A7A7A7"
182
185
  },
186
+ [Theme.CONTENT_SECONDARY_TEXT]: {
187
+ light: "#686868",
188
+ dark: "#C4BFB6"
189
+ },
190
+ [Theme.CONTENT_SECTION_HEADER_TEXT]: {
191
+ light: "#00263A",
192
+ dark: "#E3D6BF"
193
+ },
183
194
  [Theme.CONTENT_DISABLE]: {
184
195
  light: "#A7A7A7",
185
196
  dark: "#686868"
@@ -7600,7 +7611,8 @@ const ScrollableList = ({
7600
7611
  errorStyle,
7601
7612
  errorTextStyle,
7602
7613
  activeTextStyle,
7603
- enableTextWrap
7614
+ enableTextWrap,
7615
+ inActiveTextStyle
7604
7616
  }) => {
7605
7617
  const [selectedItem, setSelectedItem] = useState(
7606
7618
  data && data.length > 0 ? data[0].name : null
@@ -7640,7 +7652,7 @@ const ScrollableList = ({
7640
7652
  text: item.name,
7641
7653
  variant: "L1_REGULAR",
7642
7654
  textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor,
7643
- style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : {}
7655
+ style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : inActiveTextStyle ? inActiveTextStyle : {}
7644
7656
  }
7645
7657
  )),
7646
7658
  item?.isError ? /* @__PURE__ */ React.createElement(View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React.createElement(
@@ -7754,7 +7766,8 @@ const FeedbackForm = ({
7754
7766
  inputText,
7755
7767
  rightBtnTxt,
7756
7768
  leftBtnTxt,
7757
- setFeedback
7769
+ setFeedback,
7770
+ inputStyle = {}
7758
7771
  }) => {
7759
7772
  const maxChars = 200;
7760
7773
  const { theme } = useTheme();
@@ -7770,7 +7783,7 @@ const FeedbackForm = ({
7770
7783
  ), /* @__PURE__ */ React.createElement(
7771
7784
  TextInput,
7772
7785
  {
7773
- style: [styles.textInput, { height: Math.max(100) }],
7786
+ style: [styles.textInput, inputStyle, { height: Math.max(100) }],
7774
7787
  placeholder: inputText,
7775
7788
  multiline: true,
7776
7789
  placeholderTextColor: Theme.CONTENT_SECONDRY,
@@ -8871,7 +8884,11 @@ const styles$4 = StyleSheet.create({
8871
8884
  width: "100%",
8872
8885
  marginLeft: 10
8873
8886
  },
8874
- lableContainer: { width: 60 }
8887
+ lableContainer: { width: 60 },
8888
+ newDividerStyle: {
8889
+ marginLeft: 10,
8890
+ width: "100%"
8891
+ }
8875
8892
  });
8876
8893
 
8877
8894
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -8930,9 +8947,24 @@ const Stepper = ({
8930
8947
  return { borderColor: theme.CONTENT_SECONDRY };
8931
8948
  }
8932
8949
  };
8950
+ const Divider = ({ status }) => {
8951
+ const style = renderDividerStyle(status);
8952
+ const dashed = status !== Status.Completed;
8953
+ return /* @__PURE__ */ React.createElement(Svg, { height: 1, width: "100%" }, /* @__PURE__ */ React.createElement(
8954
+ Line$1,
8955
+ {
8956
+ x1: "0",
8957
+ y1: "0",
8958
+ x2: "90%",
8959
+ y2: "0",
8960
+ stroke: style.borderColor,
8961
+ strokeWidth: 1,
8962
+ strokeDasharray: dashed ? "4,4" : void 0
8963
+ }
8964
+ ));
8965
+ };
8933
8966
  return /* @__PURE__ */ React.createElement(View, { style: { ...styles$4.stepperContainer, ...containerStyle } }, data?.map((item, index) => {
8934
8967
  const stepCircleStyle = renderCircleStyle(item?.status);
8935
- const dividerStyle = renderDividerStyle(item?.status);
8936
8968
  const labelStyle = renderLableStyle(item?.status);
8937
8969
  const lastViewStyle = index === data?.length - 1 ? styles$4.lastStepWrapper : null;
8938
8970
  return /* @__PURE__ */ React.createElement(
@@ -8950,7 +8982,7 @@ const Stepper = ({
8950
8982
  color: theme.CONTENT_PRIMARY
8951
8983
  }
8952
8984
  }
8953
- ), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React.createElement(View, { style: { ...styles$4.separator, ...dividerStyle } })),
8985
+ ), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React.createElement(View, { style: styles$4.newDividerStyle }, /* @__PURE__ */ React.createElement(Divider, { status: item.status }))),
8954
8986
  /* @__PURE__ */ React.createElement(View, { style: styles$4.lableContainer }, /* @__PURE__ */ React.createElement(
8955
8987
  CustomTypography,
8956
8988
  {