@ufal-lccv/gpsub-ds 0.1.21 → 0.1.22
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/{RequiredLabel.view-czyhddyv.cjs → RequiredLabel.view-D0tfgtFd.cjs} +1 -1
- package/dist/{RequiredLabel.view-Bx2qWo3b.js → RequiredLabel.view-D8UdVPpD.js} +1 -1
- package/dist/{Table.styles-ezTNTUnJ.js → Table.styles-BI-TIGUG.js} +530 -529
- package/dist/{Table.styles-DrI5xZU7.cjs → Table.styles-DCar_v2C.cjs} +50 -50
- package/dist/{Table.view-B8NngmSo.cjs → Table.view-H1iZVxrF.cjs} +1 -1
- package/dist/{Table.view-DpwPxMpm.js → Table.view-uluDFxJ2.js} +1 -1
- package/dist/{Title.view-Be_km3Eq.js → Title.view-BJqSiDEA.js} +1 -1
- package/dist/{Title.view-Av-845Ne.cjs → Title.view-BK5me92_.cjs} +1 -1
- package/dist/components/atoms/index.cjs.js +1 -1
- package/dist/components/atoms/index.es.js +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +4 -4
- package/dist/components/molecules/index.cjs.js +1 -1
- package/dist/components/molecules/index.es.js +2 -2
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.es.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +4 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Table.styles-
|
|
1
|
+
"use strict";const e=require("./Table.styles-DCar_v2C.cjs"),b=require("./index-DrLMJmR7.cjs"),h=require("react-dom"),E=require("react"),R=({id:s,type:t,title:r,description:n,durationInMilliseconds:l=3e3,dataToCopy:c,offset:a={x:0,y:0}})=>{const i=b.dom.portal.add(s+Date.now()+Math.random()),x=()=>{try{i.remove()}catch{console.error("Remoção indevida de alert.")}},d=h.createPortal(e.jsxRuntimeExports.jsx(e.AlertView,{id:s,type:t,title:r,description:n,durationInMilliseconds:l,destroy:x,dataToCopy:c,offset:a}),i);e.clientExports.createRoot(i).render(d)},C=({width:s="100%",height:t="fit-content",type:r,variant:n="small",title:l,message:c,margin:a,open:i=!0,onClose:x,canClose:d=!0})=>{var p,g;const[u,j]=E.useState(i),o={info:{backgroundColor:"#D5EBFD",borderColor:e.sg.colors.feedbackColors.colorFeedbackInfo,icon:e.jsxRuntimeExports.jsx(e.InfoFill_default,{color:e.sg.colors.feedbackColors.colorFeedbackInfo,height:"24px",width:"24px"})},success:{backgroundColor:"#DAF9DB",borderColor:e.sg.colors.feedbackColors.colorFeedbackSuccess,icon:e.jsxRuntimeExports.jsx(e.CheckCircleFill_default,{color:e.sg.colors.feedbackColors.colorFeedbackSuccess,height:"24px",width:"24px"})},warning:{backgroundColor:"#FEEECF",borderColor:e.sg.colors.feedbackColors.colorFeedbackWarning},error:{backgroundColor:"#FFE1E1",borderColor:e.sg.colors.feedbackColors.colorFeedbackError,icon:e.jsxRuntimeExports.jsx(e.ErrorFill_default,{color:e.sg.colors.feedbackColors.colorFeedbackError,height:"24px",width:"24px"})}};function m(){j(!1),x==null||x()}return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:u?e.jsxRuntimeExports.jsxs(e.Container,{width:s,height:t,direction:"horizontal",verticalAlign:l?"top":"center",gap:e.sg.spacings.spacingInline.spacingInlineAnt,padding:n=="small"?`${e.sg.spacings.spacingStack.spacingStackXs} ${e.sg.spacings.spacingInline.spacingInlineAnt}`:e.sg.spacings.spacingInline.spacingInlineSm,backgroundColor:(p=o==null?void 0:o[r])==null?void 0:p.backgroundColor,customStyles:{border:`1px solid ${(g=o==null?void 0:o[r])==null?void 0:g.borderColor}`,borderRadius:e.sg.borders.borderRadius.borderRadiusSm,margin:a,position:"relative"},children:[r==="warning"?e.jsxRuntimeExports.jsx(e.ContainerWarning,{children:e.jsxRuntimeExports.jsx(e.WarningFill_default,{width:"24px",height:"24px"})}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:o==null?void 0:o[r].icon}),e.jsxRuntimeExports.jsxs(e.Container,{width:"100%",flex:"1",height:"100%",children:[e.jsxRuntimeExports.jsx(e.Title$1,{children:l}),e.jsxRuntimeExports.jsx(e.Message,{children:c})]}),d&&e.jsxRuntimeExports.jsx(e.Container,{children:e.jsxRuntimeExports.jsx(e.Close_default,{color:e.sg.colors.neutralColors.colorNeutralCloudy,cursor:"pointer",onClick:m,height:"20px",width:"20px"})})]}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})})},k=({label:s,labelRender:t,infoProps:r={},withInfo:n=!0,flex:l,width:c="100%",isRequired:a=!1})=>{const i={tooltipProps:{position:"top",...r==null?void 0:r.tooltipProps,size:"Small"}};return e.jsxRuntimeExports.jsxs(e.Container,{width:c,direction:"horizontal",gap:"4px",flex:l,children:[t??e.jsxRuntimeExports.jsxs(e.Label$1,{children:[s," ",a?e.jsxRuntimeExports.jsx(e.Required,{}):null]}),n&&e.jsxRuntimeExports.jsx(e.Info,{...i})]})},F=({width:s="100%",flex:t,label:r="Obrigatório",margin:n="0 0 16px 0"})=>e.jsxRuntimeExports.jsx(e.Container,{width:s,flex:t,customStyles:{margin:n},children:e.jsxRuntimeExports.jsx(e.Label$2,{children:`* ${r}`})});exports.AlertInline=C;exports.LabelField=k;exports.RequiredLabelView=F;exports.showAlert=R;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as o, X as C, Y as j, Z as F, K as r, _ as f, V as I, b as x, $ as w, a0 as E, a1 as S, a2 as R, a3 as A, a4 as _, f as $, I as D, a5 as L } from "./Table.styles-
|
|
1
|
+
import { Q as o, X as C, Y as j, Z as F, K as r, _ as f, V as I, b as x, $ as w, a0 as E, a1 as S, a2 as R, a3 as A, a4 as _, f as $, I as D, a5 as L } from "./Table.styles-BI-TIGUG.js";
|
|
2
2
|
import { d as v } from "./index-Cf12FPY6.js";
|
|
3
3
|
import { createPortal as O } from "react-dom";
|
|
4
4
|
import { useState as y } from "react";
|