development #17

Merged
emmanuelvitor merged 35 commits from development into master 2023-02-09 02:41:53 +00:00
4 changed files with 23 additions and 1 deletions
Showing only changes of commit 59896a1f9d - Show all commits

3
react/Placeholder.ts Normal file
View File

@ -0,0 +1,3 @@
import Placeholder from "./components/Placeholder/Placeholder";
export default Placeholder;

View File

@ -0,0 +1,13 @@
const Placeholder = () => {
if (typeof document !== "undefined") {
const m3Input = document.querySelector(".vtex-address-form-4-x-input");
m3Input?.setAttribute("placeholder", "Digite seu CEP");
}
return null;
}
export default Placeholder;

View File

@ -194,7 +194,7 @@
"props": {
"blockClass": "m3-shipping-simulator"
},
"children": ["rich-text", "shipping-simulator"]
"children": ["rich-text", "shipping-simulator", "m3-placeholder"]
},
"rich-text": {
"props": {

View File

@ -5,5 +5,11 @@
"html": {
"component": "html",
"composition": "children"
},
"m3-placeholder": {
"component": "Placeholder"
},
"m3-pix": {
"component": "Pix"
}
}