@s_mart/telas-de-acesso 2.0.0 → 2.0.1
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
> div:last-of-type {
|
|
241
241
|
gap: ${i(8)};
|
|
242
242
|
}
|
|
243
|
-
`;var p=require("react/jsx-runtime");function P1(u){var d=u,{logo:C,initialValues:e,onSubmit:r,onEsqueciMinhaSenha:a,errorLabel:n}=d,s=w(d,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let f=typeof C=="string"?(0,p.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:h}=_(),g=Z1(),P=(0,k1.useMemo)(()=>b({manterConectado:!1},e),[e]);return(0,p.jsx)(v,E(b({},s),{paperStyle:{minWidth:h>500?456:void 0,width:h>500?void 0:"90%"},children:(0,p.jsxs)(E1,{children:[(0,p.jsx)(w1,{children:C&&(0,p.jsx)("div",{children:f})}),(0,p.jsx)(U.Form,{onSubmit:r,defaultValues:P,children:(0,p.jsxs)(T1,{children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:u2([O,H2])}),(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:O}),g&&(0,p.jsx)(j.Indicator,{severity:"warning",children:"Capslock ativado"}),!!n&&(0,p.jsx)(j.Typography,{variant:"titleXXS",color:H.red[300],children:n})]})]}),(0,p.jsx)(U.Checkbox,{name:"manterConectado",label:"Manter conectado"}),(0,p.jsxs)("div",{children:[(0,p.jsx)(j.Button,{type:"submit",fullWidth:!0,children:"Entrar"}),a&&(0,p.jsx)(j.Button,{type:"button",fullWidth:!0,variant:"text",onClick:a,children:"Esqueci minha senha"})]})]})})]})}))}var q=require("@s_mart/core");var I2=M(require("@emotion/styled"));var $1=I2.default.div`
|
|
243
|
+
`;var p=require("react/jsx-runtime");function P1(u){var d=u,{logo:C,initialValues:e,onSubmit:r,onEsqueciMinhaSenha:a,errorLabel:n}=d,s=w(d,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let f=typeof C=="string"?(0,p.jsx)("img",{src:C,alt:"Logo do sistema"}):C,{width:h}=_(),g=Z1(),P=(0,k1.useMemo)(()=>b({manterConectado:!1},e),[e]);return(0,p.jsx)(v,E(b({},s),{paperStyle:{minWidth:h>500?456:void 0,width:h>500?void 0:"90%"},children:(0,p.jsxs)(E1,{children:[(0,p.jsx)(w1,{children:C&&(0,p.jsx)("div",{children:f})}),(0,p.jsx)(U.Form,{onSubmit:r,defaultValues:P,children:(0,p.jsxs)(T1,{children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"email",label:"E-mail de acesso",required:!0,rules:u2([O,H2]),autoComplete:"email",type:"email"}),(0,p.jsxs)("div",{children:[(0,p.jsx)(U.TextField,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:O}),g&&(0,p.jsx)(j.Indicator,{severity:"warning",children:"Capslock ativado"}),!!n&&(0,p.jsx)(j.Typography,{variant:"titleXXS",color:H.red[300],children:n})]})]}),(0,p.jsx)(U.Checkbox,{name:"manterConectado",label:"Manter conectado"}),(0,p.jsxs)("div",{children:[(0,p.jsx)(j.Button,{type:"submit",fullWidth:!0,children:"Entrar"}),a&&(0,p.jsx)(j.Button,{type:"button",fullWidth:!0,variant:"text",onClick:a,children:"Esqueci minha senha"})]})]})})]})}))}var q=require("@s_mart/core");var I2=M(require("@emotion/styled"));var $1=I2.default.div`
|
|
244
244
|
display: grid;
|
|
245
245
|
gap: ${i(32)};
|
|
246
246
|
|
package/dist/index.mjs
CHANGED
|
@@ -240,7 +240,7 @@ var p3=Object.create;var h2=Object.defineProperty,V3=Object.defineProperties,f3=
|
|
|
240
240
|
> div:last-of-type {
|
|
241
241
|
gap: ${i(8)};
|
|
242
242
|
}
|
|
243
|
-
`;import{jsx as S,jsxs as U}from"react/jsx-runtime";function f5(c){var L=c,{logo:C,initialValues:e,onSubmit:r,onEsqueciMinhaSenha:a,errorLabel:n}=L,o=x(L,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let p=typeof C=="string"?S("img",{src:C,alt:"Logo do sistema"}):C,{width:m}=O(),f=d1(),E=d5(()=>Z({manterConectado:!1},e),[e]);return S(v,y(Z({},o),{paperStyle:{minWidth:m>500?456:void 0,width:m>500?void 0:"90%"},children:U(V1,{children:[S(f1,{children:C&&S("div",{children:p})}),S(V5,{onSubmit:r,defaultValues:E,children:U(m1,{children:[U("div",{children:[S(g1,{name:"email",label:"E-mail de acesso",required:!0,rules:t2([T,a2])}),U("div",{children:[S(g1,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:T}),f&&S(u5,{severity:"warning",children:"Capslock ativado"}),!!n&&S(H5,{variant:"titleXXS",color:d.red[300],children:n})]})]}),S(p5,{name:"manterConectado",label:"Manter conectado"}),U("div",{children:[S(M1,{type:"submit",fullWidth:!0,children:"Entrar"}),a&&S(M1,{type:"button",fullWidth:!0,variant:"text",onClick:a,children:"Esqueci minha senha"})]})]})})]})}))}import{Button as y1,LIcon as m5,Typography as x1}from"@s_mart/core";import Z1 from"@emotion/styled";var v1=Z1.div`
|
|
243
|
+
`;import{jsx as S,jsxs as U}from"react/jsx-runtime";function f5(c){var L=c,{logo:C,initialValues:e,onSubmit:r,onEsqueciMinhaSenha:a,errorLabel:n}=L,o=x(L,["logo","initialValues","onSubmit","onEsqueciMinhaSenha","errorLabel"]);let p=typeof C=="string"?S("img",{src:C,alt:"Logo do sistema"}):C,{width:m}=O(),f=d1(),E=d5(()=>Z({manterConectado:!1},e),[e]);return S(v,y(Z({},o),{paperStyle:{minWidth:m>500?456:void 0,width:m>500?void 0:"90%"},children:U(V1,{children:[S(f1,{children:C&&S("div",{children:p})}),S(V5,{onSubmit:r,defaultValues:E,children:U(m1,{children:[U("div",{children:[S(g1,{name:"email",label:"E-mail de acesso",required:!0,rules:t2([T,a2]),autoComplete:"email",type:"email"}),U("div",{children:[S(g1,{name:"senha",label:"Senha de acesso",type:"password",required:!0,rules:T}),f&&S(u5,{severity:"warning",children:"Capslock ativado"}),!!n&&S(H5,{variant:"titleXXS",color:d.red[300],children:n})]})]}),S(p5,{name:"manterConectado",label:"Manter conectado"}),U("div",{children:[S(M1,{type:"submit",fullWidth:!0,children:"Entrar"}),a&&S(M1,{type:"button",fullWidth:!0,variant:"text",onClick:a,children:"Esqueci minha senha"})]})]})})]})}))}import{Button as y1,LIcon as m5,Typography as x1}from"@s_mart/core";import Z1 from"@emotion/styled";var v1=Z1.div`
|
|
244
244
|
display: grid;
|
|
245
245
|
gap: ${i(32)};
|
|
246
246
|
|