prosperita-dumbo-react 4.1.2 → 4.1.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.
|
@@ -2869,7 +2869,7 @@ const nn = {
|
|
|
2869
2869
|
align-items: center;
|
|
2870
2870
|
align-self: stretch;
|
|
2871
2871
|
border-radius: ${({ borderNone: e }) => e ? "0px" : "8px"};
|
|
2872
|
-
border: ${({ borderStyle: e }) => e || "
|
|
2872
|
+
border: ${({ borderStyle: e }) => e || "1px solid transparent"};
|
|
2873
2873
|
box-sizing: border-box;
|
|
2874
2874
|
|
|
2875
2875
|
&:active {
|
|
@@ -3017,7 +3017,7 @@ const sr = (e) => {
|
|
|
3017
3017
|
size: n,
|
|
3018
3018
|
loading: r,
|
|
3019
3019
|
type: c,
|
|
3020
|
-
borderStyle: a ? i === "tertiary" || i === "dangerTertiary" ? `
|
|
3020
|
+
borderStyle: a ? i === "tertiary" || i === "dangerTertiary" ? `2px solid ${d.buttonDisabled}` : "2px solid transparent" : i === "tertiary" ? `2px solid ${d.buttonPrimary}` : i === "dangerTertiary" ? `2px solid ${d.buttonDangerSecondary}` : "2px solid transparent",
|
|
3021
3021
|
children: [
|
|
3022
3022
|
/* @__PURE__ */ l(ra, { ...e, kind: i, children: t }),
|
|
3023
3023
|
f ? /* @__PURE__ */ l(j1, { ...e, children: o }) : /* @__PURE__ */ l(na, { src: typeof o == "string" ? o : "", ...e })
|
|
@@ -102,7 +102,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[zn]+=1);const V3="",Yt={defau
|
|
|
102
102
|
align-items: center;
|
|
103
103
|
align-self: stretch;
|
|
104
104
|
border-radius: ${({borderNone:e})=>e?"0px":"8px"};
|
|
105
|
-
border: ${({borderStyle:e})=>e||"
|
|
105
|
+
border: ${({borderStyle:e})=>e||"1px solid transparent"};
|
|
106
106
|
box-sizing: border-box;
|
|
107
107
|
|
|
108
108
|
&:active {
|
|
@@ -158,7 +158,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[zn]+=1);const V3="",Yt={defau
|
|
|
158
158
|
text-wrap: nowrap;
|
|
159
159
|
align-self: start;
|
|
160
160
|
padding: 0;
|
|
161
|
-
`,ma=x.createContext({}),va=!0;function C1({baseColor:e,highlightColor:t,width:n,height:i,borderRadius:r,circle:o,direction:a,duration:c,enableAnimation:s=va}){const d={};return a==="rtl"&&(d["--animation-direction"]="reverse"),typeof c=="number"&&(d["--animation-duration"]=`${c}s`),s||(d["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(d.width=n),(typeof i=="string"||typeof i=="number")&&(d.height=i),(typeof r=="string"||typeof r=="number")&&(d.borderRadius=r),o&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),d}function Ae({count:e=1,wrapper:t,className:n,containerClassName:i,containerTestId:r,circle:o=!1,style:a,...c}){var s,d,f;const p=x.useContext(ma),g={...c};for(const[B,V]of Object.entries(c))typeof V>"u"&&delete g[B];const b={...p,...g,circle:o},v={...a,...C1(b)};let y="react-loading-skeleton";n&&(y+=` ${n}`);const m=(s=b.inline)!==null&&s!==void 0?s:!1,C=[],P=Math.ceil(e);for(let B=0;B<P;B++){let V=v;if(P>e&&B===P-1){const E=(d=V.width)!==null&&d!==void 0?d:"100%",S=e%1,G=typeof E=="number"?E*S:`calc(${E} * ${S})`;V={...V,width:G}}const A=x.createElement("span",{className:y,style:V,key:B},"");m?C.push(A):C.push(x.createElement(x.Fragment,{key:B},A,x.createElement("br",null)))}return x.createElement("span",{className:i,"data-testid":r,"aria-live":"polite","aria-busy":(f=b.enableAnimation)!==null&&f!==void 0?f:va},t?C.map((B,V)=>x.createElement(t,{key:V},B)):C)}function ft({children:e,...t}){return x.createElement(ma.Provider,{value:t},e)}const k3="",dn=e=>{const{label:t,size:n,kind:i,loading:r,icon:o,disabled:a,type:c,forModal:s,full:d,hasIconSvg:f}=e,p={padding:t?Yt.default[n]:Yt.onlyIcon[n],position:"absolute",top:"0",width:"auto",left:"0",right:"0",bottom:"0",borderRadius:"6px"};return l(v1,{full:d,...e,children:r&&!a?w(ga,{...e,kind:i,size:n,loading:r,style:{border:"0"},children:[l(ha,{...e,kind:i,children:t}),l(ft,{baseColor:u.skeletonElement,highlightColor:u.skeletonBackground,children:l(Ae,{count:1,style:p})}),!t&&l(ba,{src:typeof o=="string"?o:"",...e})]}):w(ga,{forModal:s,...e,kind:i,size:n,loading:r,type:c,borderStyle:a?i==="tertiary"||i==="dangerTertiary"?`
|
|
161
|
+
`,ma=x.createContext({}),va=!0;function C1({baseColor:e,highlightColor:t,width:n,height:i,borderRadius:r,circle:o,direction:a,duration:c,enableAnimation:s=va}){const d={};return a==="rtl"&&(d["--animation-direction"]="reverse"),typeof c=="number"&&(d["--animation-duration"]=`${c}s`),s||(d["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(d.width=n),(typeof i=="string"||typeof i=="number")&&(d.height=i),(typeof r=="string"||typeof r=="number")&&(d.borderRadius=r),o&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),d}function Ae({count:e=1,wrapper:t,className:n,containerClassName:i,containerTestId:r,circle:o=!1,style:a,...c}){var s,d,f;const p=x.useContext(ma),g={...c};for(const[B,V]of Object.entries(c))typeof V>"u"&&delete g[B];const b={...p,...g,circle:o},v={...a,...C1(b)};let y="react-loading-skeleton";n&&(y+=` ${n}`);const m=(s=b.inline)!==null&&s!==void 0?s:!1,C=[],P=Math.ceil(e);for(let B=0;B<P;B++){let V=v;if(P>e&&B===P-1){const E=(d=V.width)!==null&&d!==void 0?d:"100%",S=e%1,G=typeof E=="number"?E*S:`calc(${E} * ${S})`;V={...V,width:G}}const A=x.createElement("span",{className:y,style:V,key:B},"");m?C.push(A):C.push(x.createElement(x.Fragment,{key:B},A,x.createElement("br",null)))}return x.createElement("span",{className:i,"data-testid":r,"aria-live":"polite","aria-busy":(f=b.enableAnimation)!==null&&f!==void 0?f:va},t?C.map((B,V)=>x.createElement(t,{key:V},B)):C)}function ft({children:e,...t}){return x.createElement(ma.Provider,{value:t},e)}const k3="",dn=e=>{const{label:t,size:n,kind:i,loading:r,icon:o,disabled:a,type:c,forModal:s,full:d,hasIconSvg:f}=e,p={padding:t?Yt.default[n]:Yt.onlyIcon[n],position:"absolute",top:"0",width:"auto",left:"0",right:"0",bottom:"0",borderRadius:"6px"};return l(v1,{full:d,...e,children:r&&!a?w(ga,{...e,kind:i,size:n,loading:r,style:{border:"0"},children:[l(ha,{...e,kind:i,children:t}),l(ft,{baseColor:u.skeletonElement,highlightColor:u.skeletonBackground,children:l(Ae,{count:1,style:p})}),!t&&l(ba,{src:typeof o=="string"?o:"",...e})]}):w(ga,{forModal:s,...e,kind:i,size:n,loading:r,type:c,borderStyle:a?i==="tertiary"||i==="dangerTertiary"?`2px solid ${u.buttonDisabled}`:"2px solid transparent":i==="tertiary"?`2px solid ${u.buttonPrimary}`:i==="dangerTertiary"?`2px solid ${u.buttonDangerSecondary}`:"2px solid transparent",children:[l(ha,{...e,kind:i,children:t}),f?l(y1,{...e,children:o}):l(ba,{src:typeof o=="string"?o:"",...e})]})})},x1={large:"20px ",small:"15px",medium:"18px"},I1={large:"13px",small:"12px",medium:"15px"},_n=e=>{const{disabled:t,error:n}=e;return t?"2px solid transparent":n?`2px solid ${u.supportError}`:"2px solid transparent"},ri=I.input`
|
|
162
162
|
height: ${({size:e})=>e&&I1[e]};
|
|
163
163
|
box-sizing: border-box;
|
|
164
164
|
padding: ${({size:e})=>e&&x1[e]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUxD,OAAO,0CAA0C,CAAC;AAGlD,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACnE,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUxD,OAAO,0CAA0C,CAAC;AAGlD,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACnE,IAAI,EACF,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,aAAa,CAAC;IAChB,IAAI,EACF,OAAO,GACP,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,WAAW,GACX,YAAY,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,YAAY,4CA8EzC,CAAC"}
|