prosperita-dumbo-react 1.3.69 → 1.4.3
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.
|
@@ -6978,7 +6978,7 @@ letter-spacing: 0.16px;
|
|
|
6978
6978
|
option: (e) => ({
|
|
6979
6979
|
...e,
|
|
6980
6980
|
fontSize: "15px",
|
|
6981
|
-
fontWeight: "
|
|
6981
|
+
fontWeight: "500",
|
|
6982
6982
|
cursor: "pointer",
|
|
6983
6983
|
color: f.textPrimary,
|
|
6984
6984
|
display: "flex",
|
|
@@ -7032,7 +7032,7 @@ letter-spacing: 0.16px;
|
|
|
7032
7032
|
right: "0px",
|
|
7033
7033
|
left: "0px",
|
|
7034
7034
|
border: `2px solid ${f.borderStrong01}`,
|
|
7035
|
-
zIndex: t.selectProps.zIndex ??
|
|
7035
|
+
zIndex: t.selectProps.zIndex ?? 10,
|
|
7036
7036
|
marginTop: "50px"
|
|
7037
7037
|
}),
|
|
7038
7038
|
input: (e) => ({
|
|
@@ -1681,7 +1681,7 @@ letter-spacing: 0.16px;
|
|
|
1681
1681
|
cursor: pointer;
|
|
1682
1682
|
margin: ${({kind:e})=>e==="fluid"?"0 10px 0 0":"0"};
|
|
1683
1683
|
align-self: ${({kind:e})=>e==="fluid"?"end":"center"};
|
|
1684
|
-
`,sb={position:"absolute",display:"flex",top:"0",left:"0",right:"0",bottom:"0"},Mt=e=>{const{kind:t,size:n,label:i,loading:r,value:o,onChange:l,id:c,name:s,placeholder:d,ContainedListMenu:u,disabled:p,readOnly:g,expandable:h,borderTable:v,...m}=e,b=x.useRef(null),[y,w]=x.useState(o||""),[E,D]=x.useState(!1),A=M=>{const _=M.target.value;w(_),l&&l(M)},S=()=>{w(""),b.current&&(b.current.value="")},P=()=>{var M;D(_=>!_),(M=b.current)==null||M.focus(),w("")};return a(k,{children:r?a(kt,{baseColor:f.skeletonBackground,highlightColor:f.skeletonElement,children:I(zc,{...e,children:[a(Wc,{type:"search",...e}),a(He,{count:1,style:sb})]})}):I(zc,{expandable:E,disabled:p,borderTable:v,...e,children:[t==="fluid"&&a(ab,{...e,children:i}),t==="fluid"?I(lb,{expandable:E,...e,children:[a(Xc,{...e,children:ac}),y.length>0&&a(Zc,{onClick:S,...e,children:ii})]}):I(k,{children:[a(Xc,{expandable:E,onClick:P,...e,children:ac}),y.length>0&&a(Zc,{disabled:p,readOnly:g,onClick:S,...e,children:ii})]}),a(Wc,{expandable:E,type:"text",kind:t,borderTable:v,ref:b,size:n,value:y,name:s,disabled:p,readOnly:t==="expandable"&&!E?!0:g,id:c,loading:r,ContainedListMenu:u,onChange:A,placeholder:d,autoComplete:"off",...m})]})})},cb={small:".1em",large:".5em",medium:".4em"},db={control:(e,t)=>({...e,fontSize:"15px",cursor:t.selectProps.loading?"wait":"pointer",backgroundColor:t.selectProps.readonly?"transparent":f.field01,fontfamily:"IBM Plex Sans",padding:t.selectProps.size&&t.selectProps.kind==="default"?cb[t.selectProps.size||"medium"]:t.selectProps.kind==="little"?"7px":"0",borderRadius:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)||t.selectProps.noRadius?"0":"8px",border:(t.selectProps.kind==="default"||t.selectProps.kind==="little")&&t.selectProps.error?`1px solid ${f.supportError}`:"1px solid transparent",borderBottom:(t.selectProps.kind==="default"||t.selectProps.kind==="little")&&t.selectProps.error?`1px solid ${f.supportError}`:"1px solid transparent",minWidth:"30px",width:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)?"95%":t.selectProps.kind==="little"?"155px":"100%",margin:"0 auto","&:active":{},"&:hover":{backgroundColor:t.selectProps.kind==="fluid"?"transparent":f.fieldHover01,border:"1px solid transparent"},"&:focus-within":{border:t.selectProps.kind==="fluid"?"1px solid transparent":`1px solid ${f.focus}`,borderBottom:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)&&"1px solid transparent",boxShadow:"none"}}),option:e=>({...e,fontSize:"15px",fontWeight:"
|
|
1684
|
+
`,sb={position:"absolute",display:"flex",top:"0",left:"0",right:"0",bottom:"0"},Mt=e=>{const{kind:t,size:n,label:i,loading:r,value:o,onChange:l,id:c,name:s,placeholder:d,ContainedListMenu:u,disabled:p,readOnly:g,expandable:h,borderTable:v,...m}=e,b=x.useRef(null),[y,w]=x.useState(o||""),[E,D]=x.useState(!1),A=M=>{const _=M.target.value;w(_),l&&l(M)},S=()=>{w(""),b.current&&(b.current.value="")},P=()=>{var M;D(_=>!_),(M=b.current)==null||M.focus(),w("")};return a(k,{children:r?a(kt,{baseColor:f.skeletonBackground,highlightColor:f.skeletonElement,children:I(zc,{...e,children:[a(Wc,{type:"search",...e}),a(He,{count:1,style:sb})]})}):I(zc,{expandable:E,disabled:p,borderTable:v,...e,children:[t==="fluid"&&a(ab,{...e,children:i}),t==="fluid"?I(lb,{expandable:E,...e,children:[a(Xc,{...e,children:ac}),y.length>0&&a(Zc,{onClick:S,...e,children:ii})]}):I(k,{children:[a(Xc,{expandable:E,onClick:P,...e,children:ac}),y.length>0&&a(Zc,{disabled:p,readOnly:g,onClick:S,...e,children:ii})]}),a(Wc,{expandable:E,type:"text",kind:t,borderTable:v,ref:b,size:n,value:y,name:s,disabled:p,readOnly:t==="expandable"&&!E?!0:g,id:c,loading:r,ContainedListMenu:u,onChange:A,placeholder:d,autoComplete:"off",...m})]})})},cb={small:".1em",large:".5em",medium:".4em"},db={control:(e,t)=>({...e,fontSize:"15px",cursor:t.selectProps.loading?"wait":"pointer",backgroundColor:t.selectProps.readonly?"transparent":f.field01,fontfamily:"IBM Plex Sans",padding:t.selectProps.size&&t.selectProps.kind==="default"?cb[t.selectProps.size||"medium"]:t.selectProps.kind==="little"?"7px":"0",borderRadius:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)||t.selectProps.noRadius?"0":"8px",border:(t.selectProps.kind==="default"||t.selectProps.kind==="little")&&t.selectProps.error?`1px solid ${f.supportError}`:"1px solid transparent",borderBottom:(t.selectProps.kind==="default"||t.selectProps.kind==="little")&&t.selectProps.error?`1px solid ${f.supportError}`:"1px solid transparent",minWidth:"30px",width:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)?"95%":t.selectProps.kind==="little"?"155px":"100%",margin:"0 auto","&:active":{},"&:hover":{backgroundColor:t.selectProps.kind==="fluid"?"transparent":f.fieldHover01,border:"1px solid transparent"},"&:focus-within":{border:t.selectProps.kind==="fluid"?"1px solid transparent":`1px solid ${f.focus}`,borderBottom:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)&&"1px solid transparent",boxShadow:"none"}}),option:e=>({...e,fontSize:"15px",fontWeight:"500",cursor:"pointer",color:f.textPrimary,display:"flex",justifyContent:"start",alignItems:"center",background:f.field01,zIndex:5,"&:active":{},"&:hover":{width:"100%",background:"#ADC3D7"}}),placeholder:e=>({...e,color:f.textPrimary,backgroudColor:f.field01,padding:".1em","&:active":{color:f.textPrimary},"&:hover":{color:f.textPrimary}}),multiValue:e=>({...e,color:f.textPrimary}),singleValue:e=>({...e,color:f.textPrimary}),container:(e,t)=>({...e,borderRadius:t.selectProps.noRadius?"0px":"8px",width:"100%","&:active":{},"&:hover":{}}),menu:(e,t)=>({...e,background:f.field01,color:f.textPrimary,position:"absolute",top:"0",right:"0px",left:"0px",border:`2px solid ${f.borderStrong01}`,zIndex:t.selectProps.zIndex??10,marginTop:"50px"}),input:e=>({...e,color:"theme.textPrimary","&:focus":{boxShadow:"none",borderBottom:`1px solid ${f.borderStrong01}`}}),dropdownIndicator:e=>({...e,color:f.textPrimary,padding:"4px",display:"flex",alignItems:"center",justifyContent:"center","& > svg":{width:"26px",height:"16px",color:f.iconPrimary}})},jc=C.div`
|
|
1685
1685
|
font-size: 12px;
|
|
1686
1686
|
font-style: normal;
|
|
1687
1687
|
min-width: 300px;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosperita-dumbo-react",
|
|
3
|
-
"version": "1.3
|
|
3
|
+
"version": "1.4.3",
|
|
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",
|
|
7
|
+
"license": "MIT",
|
|
7
8
|
"keywords": "biblioteca de components prosperita",
|
|
8
9
|
"files": [
|
|
9
10
|
"dist"
|