prosperita-dumbo-react 1.0.91 → 1.0.92

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.
@@ -4777,7 +4777,8 @@ line-height: 28px;
4777
4777
  size: b.size || "large",
4778
4778
  kind: b.kind || "secondary",
4779
4779
  label: b.label,
4780
- icon: "item.icon",
4780
+ hasIconSvg: b.hasIconSvg,
4781
+ icon: b.icon,
4781
4782
  disabled: b.disabled,
4782
4783
  onClick: () => {
4783
4784
  var w;
@@ -737,7 +737,7 @@ line-height: 28px;
737
737
  top: ${({align:e})=>e==="bottom"||e==="bottom-left"||e==="bottom-right"?"112%":"auto"};
738
738
  right: ${({align:e})=>e==="left"&&"105%"};
739
739
  left: ${({align:e})=>e==="right"&&"105%"};
740
- `,Gd={small:"2px",large:"13px",medium:"7px"},_e=e=>{const{children:t,size:n,label:i}=e;return a($,{children:I(Vd,{...e,children:[a($d,{...e,children:t||a("p",{style:{margin:"0",padding:"0"},children:"Tooltip Text"})}),a(Md,{className:"tooltip",...e,children:a(Fd,{...e,children:a("p",{style:{wordWrap:"break-word",width:"100%",boxSizing:"border-box",padding:Gd[n||"large"],margin:"0 auto",display:"block",textAlign:"center",fontFamily:"IBM Plex Sans",fontSize:"14px",fontStyle:"normal",fontWeight:"400",lineHeight:"18px",letterSpacing:"0.16px"},children:i||"Exemplo"})})})]})})},Ga=e=>{const{label:t,textLabel:n,buttons:i,open:r,children:o,backgroundModal:l,onClose:u,height:s,width:d,overflow:f,background:p,radius:g}=e,m=w.useRef(null),C=w.useCallback(b=>{m.current&&!m.current.contains(b.target)&&(u==null||u())},[u]);w.useEffect(()=>(r&&document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}),[r,C]);const h=(b,x)=>x===0&&(i==null?void 0:i.length)===3?"70%":"50%";return a(Cd,{backgroundModal:l,open:r,children:I(Id,{radius:g,height:s,width:d,background:p,open:r,ref:m,children:[I(Ed,{children:[I(kd,{children:[a(Pd,{children:t}),a(Bd,{children:n})]}),a("div",{children:a(_e,{align:"left",size:"small",label:"Close",width:"70px",children:a(Td,{onClick:u,children:Jn})})})]}),a(Ad,{overflow:f,children:a(wd,{children:o})}),a(Sd,{children:i==null?void 0:i.map((b,x)=>a("div",{style:{width:h(b,x),boxSizing:"border-box"},children:a(Ke,{dimension:b.dimension||"70",size:b.size||"large",kind:b.kind||"secondary",label:b.label,icon:"item.icon",disabled:b.disabled,onClick:()=>{var A;(A=b.onClick)==null||A.call(b)},style:{borderRadius:x===i.length-1?g?"0 0 8px 0":"0 0 0px 0":x===0&&g?"0 0px 0 5px":"0"}})},x))})]})})},Ld=v.label`
740
+ `,Gd={small:"2px",large:"13px",medium:"7px"},_e=e=>{const{children:t,size:n,label:i}=e;return a($,{children:I(Vd,{...e,children:[a($d,{...e,children:t||a("p",{style:{margin:"0",padding:"0"},children:"Tooltip Text"})}),a(Md,{className:"tooltip",...e,children:a(Fd,{...e,children:a("p",{style:{wordWrap:"break-word",width:"100%",boxSizing:"border-box",padding:Gd[n||"large"],margin:"0 auto",display:"block",textAlign:"center",fontFamily:"IBM Plex Sans",fontSize:"14px",fontStyle:"normal",fontWeight:"400",lineHeight:"18px",letterSpacing:"0.16px"},children:i||"Exemplo"})})})]})})},Ga=e=>{const{label:t,textLabel:n,buttons:i,open:r,children:o,backgroundModal:l,onClose:u,height:s,width:d,overflow:f,background:p,radius:g}=e,m=w.useRef(null),C=w.useCallback(b=>{m.current&&!m.current.contains(b.target)&&(u==null||u())},[u]);w.useEffect(()=>(r&&document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}),[r,C]);const h=(b,x)=>x===0&&(i==null?void 0:i.length)===3?"70%":"50%";return a(Cd,{backgroundModal:l,open:r,children:I(Id,{radius:g,height:s,width:d,background:p,open:r,ref:m,children:[I(Ed,{children:[I(kd,{children:[a(Pd,{children:t}),a(Bd,{children:n})]}),a("div",{children:a(_e,{align:"left",size:"small",label:"Close",width:"70px",children:a(Td,{onClick:u,children:Jn})})})]}),a(Ad,{overflow:f,children:a(wd,{children:o})}),a(Sd,{children:i==null?void 0:i.map((b,x)=>a("div",{style:{width:h(b,x),boxSizing:"border-box"},children:a(Ke,{dimension:b.dimension||"70",size:b.size||"large",kind:b.kind||"secondary",label:b.label,hasIconSvg:b.hasIconSvg,icon:b.icon,disabled:b.disabled,onClick:()=>{var A;(A=b.onClick)==null||A.call(b)},style:{borderRadius:x===i.length-1?g?"0 0 8px 0":"0 0 0px 0":x===0&&g?"0 0px 0 5px":"0"}})},x))})]})})},Ld=v.label`
741
741
  width: 17px;
742
742
  height: 17px;
743
743
  display: flex;
@@ -19,6 +19,7 @@ type IbuttonProps = {
19
19
  icon?: string;
20
20
  onClick?: () => void;
21
21
  disabled?: boolean;
22
+ hasIconSvg?: boolean;
22
23
  dimension?: string;
23
24
  size?: "large" | "medium" | "small" | "extraLarge" | "twoXLarge" | "expressive";
24
25
  kind?: "primary" | "secondary" | "tertiary" | "ghost" | "dangerPrimary" | "dangerTertiary" | "dangerGhost";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkC,MAAM,OAAO,CAAC;AAelE,OAAO,2BAA2B,CAAC;AAGnC,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,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B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EACH,OAAO,GACP,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,WAAW,GACX,YAAY,CAAC;IACf,IAAI,CAAC,EACH,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,aAAa,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,KAAK,UAAW,UAAU,4CA4FtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosperita-dumbo-react",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "main": "dist/prosperita-dumbo-react.umd.js",
5
5
  "module": "dist/prosperita-dumbo-react.es.js",
6
6
  "types": "dist/types/index.d.ts",