prosperita-dumbo-react 1.4.7 → 1.4.9
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.
|
@@ -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:"400",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;
|