prosperita-dumbo-react 4.1.5 → 4.1.6

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 || "2px solid transparent"};
2872
+ border: ${({ borderStyle: e }) => e || "1px solid transparent"};
2873
2873
  box-sizing: border-box;
2874
2874
 
2875
2875
  &:active {
@@ -2882,7 +2882,7 @@ const nn = {
2882
2882
  }
2883
2883
 
2884
2884
  &:focus {
2885
- border: 2px solid ${d.focus};
2885
+ border: 1px solid ${d.focus};
2886
2886
  background: ${({ disabled: e, kind: t }) => !e && fn[t].default};
2887
2887
  color: ${ea};
2888
2888
  }
@@ -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" ? `2px solid ${d.buttonDisabled}` : "2px solid transparent" : i === "tertiary" ? `2px solid ${d.buttonPrimary}` : i === "dangerTertiary" ? `2px solid ${d.buttonDangerSecondary}` : "2px solid transparent",
3020
+ borderStyle: a ? i === "tertiary" || i === "dangerTertiary" ? `1px solid ${d.buttonDisabled}` : "1px solid transparent" : i === "tertiary" ? `1px solid ${d.buttonPrimary}` : i === "dangerTertiary" ? `1px solid ${d.buttonDangerSecondary}` : "1px 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 })
@@ -6039,7 +6039,8 @@ letter-spacing: 0.16px;
6039
6039
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
6040
6040
  overflow: auto;
6041
6041
  z-index: 6;
6042
- height:270px
6042
+ min-height:20px;
6043
+ max-height:270px
6043
6044
  `, V0 = x.label`
6044
6045
  width: 100%;
6045
6046
  `, F0 = x.span`
@@ -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||"2px solid transparent"};
105
+ border: ${({borderStyle:e})=>e||"1px solid transparent"};
106
106
  box-sizing: border-box;
107
107
 
108
108
  &:active {
@@ -115,7 +115,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[zn]+=1);const V3="",Yt={defau
115
115
  }
116
116
 
117
117
  &:focus {
118
- border: 2px solid ${u.focus};
118
+ border: 1px solid ${u.focus};
119
119
  background: ${({disabled:e,kind:t})=>!e&&un[t].default};
120
120
  color: ${pa};
121
121
  }
@@ -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"?`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`
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"?`1px solid ${u.buttonDisabled}`:"1px solid transparent":i==="tertiary"?`1px solid ${u.buttonPrimary}`:i==="dangerTertiary"?`1px solid ${u.buttonDangerSecondary}`:"1px 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]};
@@ -1378,7 +1378,8 @@ letter-spacing: 0.16px;
1378
1378
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
1379
1379
  overflow: auto;
1380
1380
  z-index: 6;
1381
- height:270px
1381
+ min-height:20px;
1382
+ max-height:270px
1382
1383
  `,l0=I.label`
1383
1384
  width: 100%;
1384
1385
  `,s0=I.span`
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/Dropdown/style.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,2BAA2B,CAAC;AASnC,eAAO,MAAM,SAAS,kPAkBrB,CAAC;AAEF,eAAO,MAAM,cAAc,2PA2C1B,CAAC;AASF,eAAO,MAAM,WAAW,kPAcvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,2PAE5B,CAAC;AAEF,eAAO,MAAM,SAAS,oPAIrB,CAAC;AAEF,eAAO,MAAM,aAAa,oPAQzB,CAAC;AAEF,eAAO,MAAM,eAAe,yPAO3B,CAAC;AAEF,eAAO,MAAM,UAAU,kPAsBtB,CAAC;AAEF,eAAO,MAAM,KAAK,8PAqBjB,CAAC;AAEF,eAAO,MAAM,QAAQ,8PAyBpB,CAAC"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/Dropdown/style.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,2BAA2B,CAAC;AASnC,eAAO,MAAM,SAAS,kPAkBrB,CAAC;AAEF,eAAO,MAAM,cAAc,2PA2C1B,CAAC;AASF,eAAO,MAAM,WAAW,kPAevB,CAAC;AAEF,eAAO,MAAM,gBAAgB,2PAE5B,CAAC;AAEF,eAAO,MAAM,SAAS,oPAIrB,CAAC;AAEF,eAAO,MAAM,aAAa,oPAQzB,CAAC;AAEF,eAAO,MAAM,eAAe,yPAO3B,CAAC;AAEF,eAAO,MAAM,UAAU,kPAsBtB,CAAC;AAEF,eAAO,MAAM,KAAK,8PAqBjB,CAAC;AAEF,eAAO,MAAM,QAAQ,8PAyBpB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosperita-dumbo-react",
3
- "version": "4.1.5",
3
+ "version": "4.1.6",
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",