tabexseriescomponents 0.2.1003 → 0.2.1005

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
@@ -14209,7 +14209,8 @@ var Checkout = function Checkout(props) {
14209
14209
  id: item.id,
14210
14210
  title_en: item.title_en,
14211
14211
  title_ar: item.title_ar,
14212
- value: item.value
14212
+ value: item.value,
14213
+ isrequired: item.isrequired
14213
14214
  };
14214
14215
  OrderExtraFieldsToBeSentArr.push(obj);
14215
14216
  }
@@ -14863,7 +14864,9 @@ var Checkout = function Checkout(props) {
14863
14864
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14864
14865
  value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.customercart.mobile,
14865
14866
  onChange: function onChange(event) {
14866
- cartinfoupdater('mobile', event.target.value);
14867
+ var onlyNumbers = event.target.value.replace(/\D/g, ''); // remove non-digits
14868
+ cartinfoupdater('mobile', onlyNumbers);
14869
+ // cartinfoupdater('mobile', event.target.value);
14867
14870
  },
14868
14871
  style: {
14869
14872
  resize: 'none',
package/dist/index.esm.js CHANGED
@@ -14158,7 +14158,8 @@ var Checkout = function Checkout(props) {
14158
14158
  id: item.id,
14159
14159
  title_en: item.title_en,
14160
14160
  title_ar: item.title_ar,
14161
- value: item.value
14161
+ value: item.value,
14162
+ isrequired: item.isrequired
14162
14163
  };
14163
14164
  OrderExtraFieldsToBeSentArr.push(obj);
14164
14165
  }
@@ -14812,7 +14813,9 @@ var Checkout = function Checkout(props) {
14812
14813
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14813
14814
  value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.customercart.mobile,
14814
14815
  onChange: function onChange(event) {
14815
- cartinfoupdater('mobile', event.target.value);
14816
+ var onlyNumbers = event.target.value.replace(/\D/g, ''); // remove non-digits
14817
+ cartinfoupdater('mobile', onlyNumbers);
14818
+ // cartinfoupdater('mobile', event.target.value);
14816
14819
  },
14817
14820
  style: {
14818
14821
  resize: 'none',
package/dist/index.umd.js CHANGED
@@ -14018,7 +14018,8 @@
14018
14018
  id: item.id,
14019
14019
  title_en: item.title_en,
14020
14020
  title_ar: item.title_ar,
14021
- value: item.value
14021
+ value: item.value,
14022
+ isrequired: item.isrequired
14022
14023
  };
14023
14024
  OrderExtraFieldsToBeSentArr.push(obj);
14024
14025
  }
@@ -14672,7 +14673,9 @@
14672
14673
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
14673
14674
  value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.customercart.mobile,
14674
14675
  onChange: function onChange(event) {
14675
- cartinfoupdater('mobile', event.target.value);
14676
+ var onlyNumbers = event.target.value.replace(/\D/g, ''); // remove non-digits
14677
+ cartinfoupdater('mobile', onlyNumbers);
14678
+ // cartinfoupdater('mobile', event.target.value);
14676
14679
  },
14677
14680
  style: {
14678
14681
  resize: 'none',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.2.1003",
3
+ "version": "0.2.1005",
4
4
  "type": "module",
5
5
  "description": "your description",
6
6
  "main": "dist/index.cjs.js",