s-platform-landing-section 0.1.24 → 0.1.25

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.js CHANGED
@@ -8508,7 +8508,7 @@ var Select = React.forwardRef(function (props, ref) {
8508
8508
  style: {
8509
8509
  background: "#FFFFFF"
8510
8510
  },
8511
- className: "overflow-y-auto max-h-72 absolute p-1 my-2 rounded-2xl w-full z-50 border " + (dropdownPosition === 'top' ? 'bottom-full mb-2' : 'top-full mt-2') + " " + optionClassName
8511
+ className: "overflow-y-auto max-h-72 absolute p-1 my-2 rounded-2xl w-full z-40 border " + (dropdownPosition === 'top' ? 'bottom-full mb-2' : 'top-full mt-2') + " " + optionClassName
8512
8512
  }, /*#__PURE__*/React__default.createElement("div", null, isSearch ? /*#__PURE__*/React__default.createElement("div", {
8513
8513
  className: "px-3 flex items-center border-b-[1px]"
8514
8514
  }, /*#__PURE__*/React__default.createElement(lu.LuSearch, {
@@ -8702,10 +8702,11 @@ var InputPhoneNumber = React.forwardRef(function (props, ref) {
8702
8702
  return _setValue(text);
8703
8703
  },
8704
8704
  getValue: function getValue() {
8705
+ var cleanedValue = value === null || value === void 0 ? void 0 : value.replace(/\s+/g, '');
8705
8706
  if (!(value !== null && value !== void 0 && value.startsWith(countryCode === null || countryCode === void 0 ? void 0 : countryCode.value))) {
8706
- return (countryCode === null || countryCode === void 0 ? void 0 : countryCode.value) + (value === null || value === void 0 ? void 0 : value.replace(/^0/, ''));
8707
+ return (countryCode === null || countryCode === void 0 ? void 0 : countryCode.value) + (cleanedValue === null || cleanedValue === void 0 ? void 0 : cleanedValue.replace(/^0/, ''));
8707
8708
  }
8708
- return value;
8709
+ return cleanedValue;
8709
8710
  },
8710
8711
  setError: function setError(err) {
8711
8712
  return _setError(err);
@@ -8721,7 +8722,7 @@ var InputPhoneNumber = React.forwardRef(function (props, ref) {
8721
8722
  _setError(e === null || e === void 0 ? void 0 : e.message);
8722
8723
  count++;
8723
8724
  break;
8724
- } else if (value && (e === null || e === void 0 ? void 0 : e.type) === 'pattern' && !(e !== null && e !== void 0 && (_e$pattern = e.pattern) !== null && _e$pattern !== void 0 && _e$pattern.test(value))) {
8725
+ } else if (value && (e === null || e === void 0 ? void 0 : e.type) === 'pattern' && !(e !== null && e !== void 0 && (_e$pattern = e.pattern) !== null && _e$pattern !== void 0 && _e$pattern.test(value === null || value === void 0 ? void 0 : value.replace(/\s+/g, '')))) {
8725
8726
  _setError(e === null || e === void 0 ? void 0 : e.message);
8726
8727
  count++;
8727
8728
  break;
@@ -8757,7 +8758,7 @@ var InputPhoneNumber = React.forwardRef(function (props, ref) {
8757
8758
  optionClassName: "w-max",
8758
8759
  placeholder: "+84",
8759
8760
  onClick: setCountryCode,
8760
- selectClassName: "h-full !rounded-none py-[7px] ps-2 pr-1",
8761
+ selectClassName: "h-full !rounded-none py-[6px] ps-2 pr-1",
8761
8762
  renderItem: function renderItem(item) {
8762
8763
  return /*#__PURE__*/React__default.createElement("div", {
8763
8764
  className: "flex gap-3 items-center w-full"