tabexseriescomponents 0.0.164 → 0.0.166

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/dist/index.cjs.js CHANGED
@@ -739,7 +739,7 @@ var Login = function Login(props) {
739
739
  className: "col-lg-12 col-md-12 col-sm-12 mb-5 p-sm-0"
740
740
  }, /*#__PURE__*/React__default["default"].createElement("label", {
741
741
  className: "".concat(loginstyles2.logininputLabel) + ' m-0 text-transform-none d-flex justify-content-start '
742
- }, langdetect == 'en' ? 'E-mail' : 'البريد الإلكترونى'), /*#__PURE__*/React__default["default"].createElement("input", {
742
+ }, langdetect == 'en' ? 'E-mail or Phone number' : 'البريد الإلكترونى او رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
743
743
  type: "text",
744
744
  className: "".concat(loginstyles2.form_control),
745
745
  value: payloadobj.email,
@@ -5226,7 +5226,7 @@ var defaultstyles = {
5226
5226
  backgroundColor: state.isSelected ? '' : '',
5227
5227
  padding: 5,
5228
5228
  textTransform: 'capitalize',
5229
- color: state.isSelected ? '#eac435' : '#022648',
5229
+ color: state.isSelected ? '#eac435' : 'black',
5230
5230
  transition: '.3s',
5231
5231
  '&:hover': {
5232
5232
  // color: '#eac435',
@@ -5264,6 +5264,7 @@ var defaultstylestranslated = {
5264
5264
  padding: 5,
5265
5265
  textTransform: 'capitalize',
5266
5266
  // color: state.isSelected ? '#eac435' : '#022648',
5267
+ color: state.isSelected ? '#eac435' : 'black',
5267
5268
  transition: '.3s',
5268
5269
  textAlign: 'right',
5269
5270
  '&:hover': {
@@ -6616,7 +6617,17 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6616
6617
  })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
6617
6618
  options: fetchTabexCountriesQueryContext.data.data.countries,
6618
6619
  getOptionLabel: function getOptionLabel(option) {
6619
- return option.name;
6620
+ var crname = '';
6621
+ if (langdetect == 'en') {
6622
+ crname = option.name;
6623
+ } else if (langdetect == 'ar') {
6624
+ if (option.name_ar != null) {
6625
+ crname = option.name_ar;
6626
+ } else {
6627
+ crname = option.name;
6628
+ }
6629
+ }
6630
+ return crname;
6620
6631
  },
6621
6632
  getOptionValue: function getOptionValue(option) {
6622
6633
  return option.id;
@@ -6653,7 +6664,17 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6653
6664
  }), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
6654
6665
  options: fetchTabexStatesQueryContext.data.data.states,
6655
6666
  getOptionLabel: function getOptionLabel(option) {
6656
- return option.name;
6667
+ var crname = '';
6668
+ if (langdetect == 'en') {
6669
+ crname = option.name;
6670
+ } else if (langdetect == 'ar') {
6671
+ if (option.name_ar != null) {
6672
+ crname = option.name_ar;
6673
+ } else {
6674
+ crname = option.name;
6675
+ }
6676
+ }
6677
+ return crname;
6657
6678
  },
6658
6679
  getOptionValue: function getOptionValue(option) {
6659
6680
  return option.id;
@@ -6690,7 +6711,17 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6690
6711
  }), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
6691
6712
  options: fetchTabexCitiesQueryContext.data.data.cities,
6692
6713
  getOptionLabel: function getOptionLabel(option) {
6693
- return option.name;
6714
+ var crname = '';
6715
+ if (langdetect == 'en') {
6716
+ crname = option.name;
6717
+ } else if (langdetect == 'ar') {
6718
+ if (option.name_ar != null) {
6719
+ crname = option.name_ar;
6720
+ } else {
6721
+ crname = option.name;
6722
+ }
6723
+ }
6724
+ return crname;
6694
6725
  },
6695
6726
  getOptionValue: function getOptionValue(option) {
6696
6727
  return option.id;
@@ -6765,7 +6796,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6765
6796
  className: "col-lg-6 col-md-12 col-sm-12 mb-4 p-sm-0"
6766
6797
  }, item.inputtype != 'checkbox' && /*#__PURE__*/React__default["default"].createElement("label", {
6767
6798
  className: formstyles.input_label_name
6768
- }, langdetect == 'en' ? item.inputname_en : item.inputname_ar, " ", item.optional == 1 ? '' : '*'), /*#__PURE__*/React__default["default"].createElement("div", {
6799
+ }, langdetect == 'en' ? item.inputname_en : item.inputname_ar, " ", item.optional == 1 ? '*' : ''), /*#__PURE__*/React__default["default"].createElement("div", {
6769
6800
  className: loginstyles.wrap_input100
6770
6801
  }, item.inputtype == 'input' && /*#__PURE__*/React__default["default"].createElement("input", {
6771
6802
  className: "".concat(loginstyles.form_control, " ").concat(formstyles.form_control),
@@ -6845,7 +6876,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6845
6876
  style: {
6846
6877
  background: 'white'
6847
6878
  }
6848
- }, PersonalInformation(), Address(), Password()), dataloaded && props.srcfromprops == 'accountinfo' && /*#__PURE__*/React__default["default"].createElement("div", {
6879
+ }, PersonalInformation(), Address(), Otherinformation(), Password()), dataloaded && props.srcfromprops == 'accountinfo' && /*#__PURE__*/React__default["default"].createElement("div", {
6849
6880
  className: "col-lg-12 p-0"
6850
6881
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6851
6882
  className: "row ml-0 mr-0 w-100"
@@ -6985,7 +7016,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6985
7016
  if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true && payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0) {
6986
7017
  var signupformismissing = true;
6987
7018
  payloadobj.instsignupformvalues.forEach(function (arrayItem) {
6988
- if (arrayItem.optional == 0) {
7019
+ if (arrayItem.optional == 1) {
6989
7020
  if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
6990
7021
  signupformismissing = false;
6991
7022
  }
package/dist/index.esm.js CHANGED
@@ -696,7 +696,7 @@ var Login = function Login(props) {
696
696
  className: "col-lg-12 col-md-12 col-sm-12 mb-5 p-sm-0"
697
697
  }, /*#__PURE__*/React.createElement("label", {
698
698
  className: "".concat(loginstyles2.logininputLabel) + ' m-0 text-transform-none d-flex justify-content-start '
699
- }, langdetect == 'en' ? 'E-mail' : 'البريد الإلكترونى'), /*#__PURE__*/React.createElement("input", {
699
+ }, langdetect == 'en' ? 'E-mail or Phone number' : 'البريد الإلكترونى او رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
700
700
  type: "text",
701
701
  className: "".concat(loginstyles2.form_control),
702
702
  value: payloadobj.email,
@@ -5183,7 +5183,7 @@ var defaultstyles = {
5183
5183
  backgroundColor: state.isSelected ? '' : '',
5184
5184
  padding: 5,
5185
5185
  textTransform: 'capitalize',
5186
- color: state.isSelected ? '#eac435' : '#022648',
5186
+ color: state.isSelected ? '#eac435' : 'black',
5187
5187
  transition: '.3s',
5188
5188
  '&:hover': {
5189
5189
  // color: '#eac435',
@@ -5221,6 +5221,7 @@ var defaultstylestranslated = {
5221
5221
  padding: 5,
5222
5222
  textTransform: 'capitalize',
5223
5223
  // color: state.isSelected ? '#eac435' : '#022648',
5224
+ color: state.isSelected ? '#eac435' : 'black',
5224
5225
  transition: '.3s',
5225
5226
  textAlign: 'right',
5226
5227
  '&:hover': {
@@ -6573,7 +6574,17 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6573
6574
  })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
6574
6575
  options: fetchTabexCountriesQueryContext.data.data.countries,
6575
6576
  getOptionLabel: function getOptionLabel(option) {
6576
- return option.name;
6577
+ var crname = '';
6578
+ if (langdetect == 'en') {
6579
+ crname = option.name;
6580
+ } else if (langdetect == 'ar') {
6581
+ if (option.name_ar != null) {
6582
+ crname = option.name_ar;
6583
+ } else {
6584
+ crname = option.name;
6585
+ }
6586
+ }
6587
+ return crname;
6577
6588
  },
6578
6589
  getOptionValue: function getOptionValue(option) {
6579
6590
  return option.id;
@@ -6610,7 +6621,17 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6610
6621
  }), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
6611
6622
  options: fetchTabexStatesQueryContext.data.data.states,
6612
6623
  getOptionLabel: function getOptionLabel(option) {
6613
- return option.name;
6624
+ var crname = '';
6625
+ if (langdetect == 'en') {
6626
+ crname = option.name;
6627
+ } else if (langdetect == 'ar') {
6628
+ if (option.name_ar != null) {
6629
+ crname = option.name_ar;
6630
+ } else {
6631
+ crname = option.name;
6632
+ }
6633
+ }
6634
+ return crname;
6614
6635
  },
6615
6636
  getOptionValue: function getOptionValue(option) {
6616
6637
  return option.id;
@@ -6647,7 +6668,17 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6647
6668
  }), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
6648
6669
  options: fetchTabexCitiesQueryContext.data.data.cities,
6649
6670
  getOptionLabel: function getOptionLabel(option) {
6650
- return option.name;
6671
+ var crname = '';
6672
+ if (langdetect == 'en') {
6673
+ crname = option.name;
6674
+ } else if (langdetect == 'ar') {
6675
+ if (option.name_ar != null) {
6676
+ crname = option.name_ar;
6677
+ } else {
6678
+ crname = option.name;
6679
+ }
6680
+ }
6681
+ return crname;
6651
6682
  },
6652
6683
  getOptionValue: function getOptionValue(option) {
6653
6684
  return option.id;
@@ -6722,7 +6753,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6722
6753
  className: "col-lg-6 col-md-12 col-sm-12 mb-4 p-sm-0"
6723
6754
  }, item.inputtype != 'checkbox' && /*#__PURE__*/React.createElement("label", {
6724
6755
  className: formstyles.input_label_name
6725
- }, langdetect == 'en' ? item.inputname_en : item.inputname_ar, " ", item.optional == 1 ? '' : '*'), /*#__PURE__*/React.createElement("div", {
6756
+ }, langdetect == 'en' ? item.inputname_en : item.inputname_ar, " ", item.optional == 1 ? '*' : ''), /*#__PURE__*/React.createElement("div", {
6726
6757
  className: loginstyles.wrap_input100
6727
6758
  }, item.inputtype == 'input' && /*#__PURE__*/React.createElement("input", {
6728
6759
  className: "".concat(loginstyles.form_control, " ").concat(formstyles.form_control),
@@ -6802,7 +6833,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6802
6833
  style: {
6803
6834
  background: 'white'
6804
6835
  }
6805
- }, PersonalInformation(), Address(), Password()), dataloaded && props.srcfromprops == 'accountinfo' && /*#__PURE__*/React.createElement("div", {
6836
+ }, PersonalInformation(), Address(), Otherinformation(), Password()), dataloaded && props.srcfromprops == 'accountinfo' && /*#__PURE__*/React.createElement("div", {
6806
6837
  className: "col-lg-12 p-0"
6807
6838
  }, /*#__PURE__*/React.createElement("div", {
6808
6839
  className: "row ml-0 mr-0 w-100"
@@ -6942,7 +6973,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
6942
6973
  if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true && payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0) {
6943
6974
  var signupformismissing = true;
6944
6975
  payloadobj.instsignupformvalues.forEach(function (arrayItem) {
6945
- if (arrayItem.optional == 0) {
6976
+ if (arrayItem.optional == 1) {
6946
6977
  if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
6947
6978
  signupformismissing = false;
6948
6979
  }
package/dist/index.umd.js CHANGED
@@ -603,7 +603,7 @@
603
603
  className: "col-lg-12 col-md-12 col-sm-12 mb-5 p-sm-0"
604
604
  }, /*#__PURE__*/React__default["default"].createElement("label", {
605
605
  className: "".concat(loginstyles2.logininputLabel) + ' m-0 text-transform-none d-flex justify-content-start '
606
- }, langdetect == 'en' ? 'E-mail' : 'البريد الإلكترونى'), /*#__PURE__*/React__default["default"].createElement("input", {
606
+ }, langdetect == 'en' ? 'E-mail or Phone number' : 'البريد الإلكترونى او رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
607
607
  type: "text",
608
608
  className: "".concat(loginstyles2.form_control),
609
609
  value: payloadobj.email,
@@ -5090,7 +5090,7 @@
5090
5090
  backgroundColor: state.isSelected ? '' : '',
5091
5091
  padding: 5,
5092
5092
  textTransform: 'capitalize',
5093
- color: state.isSelected ? '#eac435' : '#022648',
5093
+ color: state.isSelected ? '#eac435' : 'black',
5094
5094
  transition: '.3s',
5095
5095
  '&:hover': {
5096
5096
  // color: '#eac435',
@@ -5128,6 +5128,7 @@
5128
5128
  padding: 5,
5129
5129
  textTransform: 'capitalize',
5130
5130
  // color: state.isSelected ? '#eac435' : '#022648',
5131
+ color: state.isSelected ? '#eac435' : 'black',
5131
5132
  transition: '.3s',
5132
5133
  textAlign: 'right',
5133
5134
  '&:hover': {
@@ -6480,7 +6481,17 @@
6480
6481
  })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
6481
6482
  options: fetchTabexCountriesQueryContext.data.data.countries,
6482
6483
  getOptionLabel: function getOptionLabel(option) {
6483
- return option.name;
6484
+ var crname = '';
6485
+ if (langdetect == 'en') {
6486
+ crname = option.name;
6487
+ } else if (langdetect == 'ar') {
6488
+ if (option.name_ar != null) {
6489
+ crname = option.name_ar;
6490
+ } else {
6491
+ crname = option.name;
6492
+ }
6493
+ }
6494
+ return crname;
6484
6495
  },
6485
6496
  getOptionValue: function getOptionValue(option) {
6486
6497
  return option.id;
@@ -6517,7 +6528,17 @@
6517
6528
  }), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
6518
6529
  options: fetchTabexStatesQueryContext.data.data.states,
6519
6530
  getOptionLabel: function getOptionLabel(option) {
6520
- return option.name;
6531
+ var crname = '';
6532
+ if (langdetect == 'en') {
6533
+ crname = option.name;
6534
+ } else if (langdetect == 'ar') {
6535
+ if (option.name_ar != null) {
6536
+ crname = option.name_ar;
6537
+ } else {
6538
+ crname = option.name;
6539
+ }
6540
+ }
6541
+ return crname;
6521
6542
  },
6522
6543
  getOptionValue: function getOptionValue(option) {
6523
6544
  return option.id;
@@ -6554,7 +6575,17 @@
6554
6575
  }), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
6555
6576
  options: fetchTabexCitiesQueryContext.data.data.cities,
6556
6577
  getOptionLabel: function getOptionLabel(option) {
6557
- return option.name;
6578
+ var crname = '';
6579
+ if (langdetect == 'en') {
6580
+ crname = option.name;
6581
+ } else if (langdetect == 'ar') {
6582
+ if (option.name_ar != null) {
6583
+ crname = option.name_ar;
6584
+ } else {
6585
+ crname = option.name;
6586
+ }
6587
+ }
6588
+ return crname;
6558
6589
  },
6559
6590
  getOptionValue: function getOptionValue(option) {
6560
6591
  return option.id;
@@ -6629,7 +6660,7 @@
6629
6660
  className: "col-lg-6 col-md-12 col-sm-12 mb-4 p-sm-0"
6630
6661
  }, item.inputtype != 'checkbox' && /*#__PURE__*/React__default["default"].createElement("label", {
6631
6662
  className: formstyles.input_label_name
6632
- }, langdetect == 'en' ? item.inputname_en : item.inputname_ar, " ", item.optional == 1 ? '' : '*'), /*#__PURE__*/React__default["default"].createElement("div", {
6663
+ }, langdetect == 'en' ? item.inputname_en : item.inputname_ar, " ", item.optional == 1 ? '*' : ''), /*#__PURE__*/React__default["default"].createElement("div", {
6633
6664
  className: loginstyles.wrap_input100
6634
6665
  }, item.inputtype == 'input' && /*#__PURE__*/React__default["default"].createElement("input", {
6635
6666
  className: "".concat(loginstyles.form_control, " ").concat(formstyles.form_control),
@@ -6709,7 +6740,7 @@
6709
6740
  style: {
6710
6741
  background: 'white'
6711
6742
  }
6712
- }, PersonalInformation(), Address(), Password()), dataloaded && props.srcfromprops == 'accountinfo' && /*#__PURE__*/React__default["default"].createElement("div", {
6743
+ }, PersonalInformation(), Address(), Otherinformation(), Password()), dataloaded && props.srcfromprops == 'accountinfo' && /*#__PURE__*/React__default["default"].createElement("div", {
6713
6744
  className: "col-lg-12 p-0"
6714
6745
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6715
6746
  className: "row ml-0 mr-0 w-100"
@@ -6849,7 +6880,7 @@
6849
6880
  if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true && payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0) {
6850
6881
  var signupformismissing = true;
6851
6882
  payloadobj.instsignupformvalues.forEach(function (arrayItem) {
6852
- if (arrayItem.optional == 0) {
6883
+ if (arrayItem.optional == 1) {
6853
6884
  if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
6854
6885
  signupformismissing = false;
6855
6886
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.164",
3
+ "version": "0.0.166",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {