monica-alexandria 3.9.2 → 3.9.4
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.es.js
CHANGED
|
@@ -550,7 +550,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
|
|
|
550
550
|
fill: ${e=>e.theme.color};
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
`,ie=n=>{const[r,a]=t(0),[i,o]=t(n.list);return e.createElement(re,null,e.createElement(te,{value:n.value,className:n.className,placeholder:n.placeholder,id:n.id,autoComplete:"off",type:"text",onChange:
|
|
553
|
+
`,ie=n=>{const[r,a]=t(0),[i,o]=t(n.list);return e.createElement(re,null,e.createElement(te,{value:n.value,className:n.className,placeholder:n.placeholder,id:n.id,autoComplete:"off",type:"text",onChange:n.onChange,defaultValue:n.defaultValue,onKeyPress:n.onKeyPress,onKeyDown:n.onKeyDown,disabled:n.disableInput}),e.createElement(ne,null,n.placeholder),n.list?e.createElement(b,{size:"small",text:n.add,iconLeft:"Add",className:"FormAddButton",onClick:()=>(e=>{let t=JSON.parse(JSON.stringify(n.list));t.push(e),n.updateItemList(t),o(t)})(n.value)}):null,n.required?e.createElement(J,{className:"ValidatorRequired"},e.createElement(d,{Icon:"Asterisk"})):null,n.errors&&0==r?e.createElement(G,{className:"ValidatorErrors"},n.errors.map((t=>e.createElement(U,null,e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,n.tips&&n.helpers?e.createElement(G,{className:"ValidatorHelpers"},n.helpers.map((t=>e.createElement(q,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),n.tips.map((t=>e.createElement(W,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):n.tips?e.createElement(G,{className:"ValidatorHelpers"},n.tips.map((t=>e.createElement(W,null,e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):n.helpers?e.createElement(G,{className:"ValidatorHelpers"},n.helpers.map((t=>e.createElement(q,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):n.sucess?e.createElement(Valitaros,null,e.createElement(K,null)):null,n.list?e.createElement(ae,null,i.map(((t,r)=>e.createElement("li",{key:r},e.createElement(d,{Icon:n.icon_ListItem}),e.createElement("h6",null,t),e.createElement(A,{onClick:()=>(e=>{let t=JSON.parse(JSON.stringify(n.list));t.splice(e,1),n.updateItemList(t),o(t)})(r),size:"small",iconLeft:"Delete"}))))):null)},oe=i.div`
|
|
554
554
|
position: relative;
|
|
555
555
|
|
|
556
556
|
select{
|
package/dist/index.js
CHANGED
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
fill: ${e=>e.theme.color};
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
`,U=t=>{const[n,r]=e.useState(0),[o,i]=e.useState(t.list);return a.default.createElement(q,null,a.default.createElement(D,{value:t.value,className:t.className,placeholder:t.placeholder,id:t.id,autoComplete:"off",type:"text",onChange:
|
|
553
|
+
`,U=t=>{const[n,r]=e.useState(0),[o,i]=e.useState(t.list);return a.default.createElement(q,null,a.default.createElement(D,{value:t.value,className:t.className,placeholder:t.placeholder,id:t.id,autoComplete:"off",type:"text",onChange:t.onChange,defaultValue:t.defaultValue,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,disabled:t.disableInput}),a.default.createElement(W,null,t.placeholder),t.list?a.default.createElement(v,{size:"small",text:t.add,iconLeft:"Add",className:"FormAddButton",onClick:()=>(e=>{let n=JSON.parse(JSON.stringify(t.list));n.push(e),t.updateItemList(n),i(n)})(t.value)}):null,t.required?a.default.createElement(F,{className:"ValidatorRequired"},a.default.createElement(u,{Icon:"Asterisk"})):null,t.errors&&0==n?a.default.createElement(z,{className:"ValidatorErrors"},t.errors.map((e=>a.default.createElement(P,null,a.default.createElement(u,{Icon:"Error"}),a.default.createElement("h6",null,e))))):null,t.tips&&t.helpers?a.default.createElement(z,{className:"ValidatorHelpers"},t.helpers.map((e=>a.default.createElement(j,null,a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e)))),t.tips.map((e=>a.default.createElement(Z,null,a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):t.tips?a.default.createElement(z,{className:"ValidatorHelpers"},t.tips.map((e=>a.default.createElement(Z,null,a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):t.helpers?a.default.createElement(z,{className:"ValidatorHelpers"},t.helpers.map((e=>a.default.createElement(j,null,a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e))))):t.sucess?a.default.createElement(Valitaros,null,a.default.createElement(B,null)):null,t.list?a.default.createElement(K,null,o.map(((e,n)=>a.default.createElement("li",{key:n},a.default.createElement(u,{Icon:t.icon_ListItem}),a.default.createElement("h6",null,e),a.default.createElement(w,{onClick:()=>(e=>{let n=JSON.parse(JSON.stringify(t.list));n.splice(e,1),t.updateItemList(n),i(n)})(n),size:"small",iconLeft:"Delete"}))))):null)},J=o.default.div`
|
|
554
554
|
position: relative;
|
|
555
555
|
|
|
556
556
|
select{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monica-alexandria",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.4",
|
|
4
4
|
"description": "A styled-components styles library for Doitforme platorm and universal tweeks to create your own new styled library for your project",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -33,11 +33,11 @@ export const Input_ = (props) => {
|
|
|
33
33
|
id={props.id}
|
|
34
34
|
autoComplete="off"
|
|
35
35
|
type="text"
|
|
36
|
-
onChange={(e) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}}
|
|
40
|
-
|
|
36
|
+
// onChange={(e) => {
|
|
37
|
+
// props.onChange();
|
|
38
|
+
// setValueLength(e?.target?.value?.length);
|
|
39
|
+
// }}
|
|
40
|
+
onChange = {props.onChange}
|
|
41
41
|
defaultValue={props.defaultValue}
|
|
42
42
|
onKeyPress={props.onKeyPress}
|
|
43
43
|
onKeyDown={props.onKeyDown}
|