s-platform-landing-section 0.1.23 → 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 +12 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -8505,7 +8505,7 @@ var Select = forwardRef(function (props, ref) {
|
|
|
8505
8505
|
style: {
|
|
8506
8506
|
background: "#FFFFFF"
|
|
8507
8507
|
},
|
|
8508
|
-
className: "overflow-y-auto max-h-72 absolute p-1 my-2 rounded-2xl w-full z-
|
|
8508
|
+
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
|
|
8509
8509
|
}, /*#__PURE__*/React__default.createElement("div", null, isSearch ? /*#__PURE__*/React__default.createElement("div", {
|
|
8510
8510
|
className: "px-3 flex items-center border-b-[1px]"
|
|
8511
8511
|
}, /*#__PURE__*/React__default.createElement(LuSearch, {
|
|
@@ -8699,10 +8699,11 @@ var InputPhoneNumber = forwardRef(function (props, ref) {
|
|
|
8699
8699
|
return _setValue(text);
|
|
8700
8700
|
},
|
|
8701
8701
|
getValue: function getValue() {
|
|
8702
|
+
var cleanedValue = value === null || value === void 0 ? void 0 : value.replace(/\s+/g, '');
|
|
8702
8703
|
if (!(value !== null && value !== void 0 && value.startsWith(countryCode === null || countryCode === void 0 ? void 0 : countryCode.value))) {
|
|
8703
|
-
return (countryCode === null || countryCode === void 0 ? void 0 : countryCode.value) + (
|
|
8704
|
+
return (countryCode === null || countryCode === void 0 ? void 0 : countryCode.value) + (cleanedValue === null || cleanedValue === void 0 ? void 0 : cleanedValue.replace(/^0/, ''));
|
|
8704
8705
|
}
|
|
8705
|
-
return
|
|
8706
|
+
return cleanedValue;
|
|
8706
8707
|
},
|
|
8707
8708
|
setError: function setError(err) {
|
|
8708
8709
|
return _setError(err);
|
|
@@ -8718,7 +8719,7 @@ var InputPhoneNumber = forwardRef(function (props, ref) {
|
|
|
8718
8719
|
_setError(e === null || e === void 0 ? void 0 : e.message);
|
|
8719
8720
|
count++;
|
|
8720
8721
|
break;
|
|
8721
|
-
} 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))) {
|
|
8722
|
+
} 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, '')))) {
|
|
8722
8723
|
_setError(e === null || e === void 0 ? void 0 : e.message);
|
|
8723
8724
|
count++;
|
|
8724
8725
|
break;
|
|
@@ -8754,7 +8755,7 @@ var InputPhoneNumber = forwardRef(function (props, ref) {
|
|
|
8754
8755
|
optionClassName: "w-max",
|
|
8755
8756
|
placeholder: "+84",
|
|
8756
8757
|
onClick: setCountryCode,
|
|
8757
|
-
selectClassName: "h-full !rounded-none py-[
|
|
8758
|
+
selectClassName: "h-full !rounded-none py-[6px] ps-2 pr-1",
|
|
8758
8759
|
renderItem: function renderItem(item) {
|
|
8759
8760
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
8760
8761
|
className: "flex gap-3 items-center w-full"
|
|
@@ -9505,6 +9506,9 @@ var ServiceDetail1 = function ServiceDetail1(props) {
|
|
|
9505
9506
|
quantity: 1,
|
|
9506
9507
|
technical: {},
|
|
9507
9508
|
oldService: false,
|
|
9509
|
+
productInfo: {
|
|
9510
|
+
productId: product === null || product === void 0 ? void 0 : product.productId
|
|
9511
|
+
},
|
|
9508
9512
|
label: product === null || product === void 0 ? void 0 : product.productName,
|
|
9509
9513
|
value: product === null || product === void 0 ? void 0 : product.productId
|
|
9510
9514
|
})]);
|
|
@@ -9637,6 +9641,9 @@ var TreatmentDetail1 = function TreatmentDetail1(props) {
|
|
|
9637
9641
|
quantity: 1,
|
|
9638
9642
|
technical: {},
|
|
9639
9643
|
oldService: false,
|
|
9644
|
+
productInfo: {
|
|
9645
|
+
productId: product === null || product === void 0 ? void 0 : product.productId
|
|
9646
|
+
},
|
|
9640
9647
|
label: product === null || product === void 0 ? void 0 : product.productName,
|
|
9641
9648
|
value: product === null || product === void 0 ? void 0 : product.productId
|
|
9642
9649
|
})]);
|