monica-alexandria 3.9.6 → 3.9.7

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
@@ -543,7 +543,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
543
543
  }
544
544
 
545
545
  & ~ .ValidatorErrors{
546
- display: none;
546
+ display: none !important;
547
547
  }
548
548
  }
549
549
  `,ae=i.ul`
@@ -561,7 +561,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
561
561
  fill: ${e=>e.theme.color};
562
562
  }
563
563
  }
564
- `,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.disabled}),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,n)=>e.createElement(U,{key:1},e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,n.tips&&n.helpers&&n.sucesses?e.createElement(G,{className:"ValidatorHelpers"},n.sucesses.map(((t,n)=>e.createElement(K,{key:n},e.createElement(d,{Icon:"Check"}),e.createElement("h6",null,t)))),n.helpers.map(((t,n)=>e.createElement(q,{key:n},e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),n.tips.map(((t,n)=>e.createElement(W,{key:n},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`
564
+ `,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.disabled}),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,n)=>e.createElement(U,{key:1},e.createElement(d,{Icon:"Error"}),e.createElement("h6",null,t))))):null,n.tips&&n.helpers&&n.successes?e.createElement(G,{className:"ValidatorHelpers"},n.successes.map(((t,n)=>e.createElement(K,{key:n},e.createElement(d,{Icon:"Check"}),e.createElement("h6",null,t)))),n.helpers.map(((t,n)=>e.createElement(q,{key:n},e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t)))),n.tips.map(((t,n)=>e.createElement(W,{key:n},e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))):!n.tips||n.helpers||n.successes?n.helpers&&n.successes&&!n.tips?e.createElement(G,{className:"ValidatorHelpers"},n.successes.map(((t,n)=>e.createElement(K,{key:n},e.createElement(d,{Icon:"Check"}),e.createElement("h6",null,t)))),n.helpers.map((t=>e.createElement(q,null,e.createElement(d,{Icon:"Warning"}),e.createElement("h6",null,t))))):null:e.createElement(G,{className:"ValidatorHelpers"},n.tips.map(((t,n)=>e.createElement(W,{key:n},e.createElement(d,{Icon:"Tip"}),e.createElement("h6",null,t))))),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`
565
565
  position: relative;
566
566
 
567
567
  select{
package/dist/index.js CHANGED
@@ -543,7 +543,7 @@
543
543
  }
544
544
 
545
545
  & ~ .ValidatorErrors{
546
- display: none;
546
+ display: none !important;
547
547
  }
548
548
  }
549
549
  `,K=o.default.ul`
@@ -561,7 +561,7 @@
561
561
  fill: ${e=>e.theme.color};
562
562
  }
563
563
  }
564
- `,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.disabled}),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,t)=>a.default.createElement(P,{key:1},a.default.createElement(u,{Icon:"Error"}),a.default.createElement("h6",null,e))))):null,t.tips&&t.helpers&&t.sucesses?a.default.createElement(z,{className:"ValidatorHelpers"},t.sucesses.map(((e,t)=>a.default.createElement(B,{key:t},a.default.createElement(u,{Icon:"Check"}),a.default.createElement("h6",null,e)))),t.helpers.map(((e,t)=>a.default.createElement(j,{key:t},a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e)))),t.tips.map(((e,t)=>a.default.createElement(Z,{key:t},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`
564
+ `,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.disabled}),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,t)=>a.default.createElement(P,{key:1},a.default.createElement(u,{Icon:"Error"}),a.default.createElement("h6",null,e))))):null,t.tips&&t.helpers&&t.successes?a.default.createElement(z,{className:"ValidatorHelpers"},t.successes.map(((e,t)=>a.default.createElement(B,{key:t},a.default.createElement(u,{Icon:"Check"}),a.default.createElement("h6",null,e)))),t.helpers.map(((e,t)=>a.default.createElement(j,{key:t},a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e)))),t.tips.map(((e,t)=>a.default.createElement(Z,{key:t},a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))):!t.tips||t.helpers||t.successes?t.helpers&&t.successes&&!t.tips?a.default.createElement(z,{className:"ValidatorHelpers"},t.successes.map(((e,t)=>a.default.createElement(B,{key:t},a.default.createElement(u,{Icon:"Check"}),a.default.createElement("h6",null,e)))),t.helpers.map((e=>a.default.createElement(j,null,a.default.createElement(u,{Icon:"Warning"}),a.default.createElement("h6",null,e))))):null:a.default.createElement(z,{className:"ValidatorHelpers"},t.tips.map(((e,t)=>a.default.createElement(Z,{key:t},a.default.createElement(u,{Icon:"Tip"}),a.default.createElement("h6",null,e))))),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`
565
565
  position: relative;
566
566
 
567
567
  select{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monica-alexandria",
3
- "version": "3.9.6",
3
+ "version": "3.9.7",
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",
@@ -74,9 +74,9 @@ export const Input_ = (props) => {
74
74
  :
75
75
  null
76
76
  }
77
- {props.tips && props.helpers && props.sucesses ?
77
+ {props.tips && props.helpers && props.successes ?
78
78
  <Validators className='ValidatorHelpers'>
79
- {props.sucesses.map((success, i) =>
79
+ {props.successes.map((success, i) =>
80
80
  <ValidatorSuccess key={i}>
81
81
  <IconSvg Icon = 'Check' />
82
82
  <h6>{success}</h6>
@@ -95,17 +95,23 @@ export const Input_ = (props) => {
95
95
  </ValidatorTip>
96
96
  )}
97
97
  </Validators>
98
- :props.tips ?
98
+ :props.tips && !props.helpers && !props.successes ?
99
99
  <Validators className='ValidatorHelpers'>
100
- {props.tips.map((tip) =>
101
- <ValidatorTip>
100
+ {props.tips.map((tip, i) =>
101
+ <ValidatorTip key={i}>
102
102
  <IconSvg Icon = 'Tip' />
103
103
  <h6>{tip}</h6>
104
104
  </ValidatorTip>
105
105
  )}
106
106
  </Validators>
107
- :props.helpers ?
107
+ :props.helpers && props.successes && !props.tips ?
108
108
  <Validators className='ValidatorHelpers'>
109
+ {props.successes.map((success, i) =>
110
+ <ValidatorSuccess key={i}>
111
+ <IconSvg Icon = 'Check' />
112
+ <h6>{success}</h6>
113
+ </ValidatorSuccess>
114
+ )}
109
115
  {props.helpers.map((helper) =>
110
116
  <ValidatorWarning>
111
117
  <IconSvg Icon = 'Warning' />
@@ -113,12 +119,6 @@ export const Input_ = (props) => {
113
119
  </ValidatorWarning>
114
120
  )}
115
121
  </Validators>
116
- :props.sucess ?
117
- <Valitaros>
118
- <ValidatorSuccess>
119
-
120
- </ValidatorSuccess>
121
- </Valitaros>
122
122
  :
123
123
  null
124
124
  }
@@ -79,7 +79,7 @@ export const FormGroup = styled.div`
79
79
  }
80
80
 
81
81
  & ~ .ValidatorErrors{
82
- display: none;
82
+ display: none !important;
83
83
  }
84
84
  }
85
85
  `