prosperita-dumbo-react 1.0.14 → 1.0.15
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.
|
@@ -1641,7 +1641,7 @@ letter-spacing: 0.16px;
|
|
|
1641
1641
|
cursor: pointer;
|
|
1642
1642
|
margin: ${({kind:e})=>e==="fluid"?"0 10px 0 0":"0"};
|
|
1643
1643
|
align-self: ${({kind:e})=>e==="fluid"?"end":"center"};
|
|
1644
|
-
`,m0={position:"absolute",display:"flex",top:"0",left:"0",right:"0",bottom:"0"},hl=e=>{const{kind:t,size:n,Title:i,loading:r,value:o,onChange:a,id:c,name:s,placeholder:d,ContainedListMenu:f,disabled:p,readOnly:g,expandable:h,...m}=e,v=x.useRef(null),[y,C]=x.useState(o||""),[P,B]=x.useState(!1),V=S=>{const G=S.target.value;C(G),a&&a(S)},A=()=>{C(""),v.current&&(v.current.value="")},E=()=>{var S;B(G=>!G),(S=v.current)==null||S.focus(),C("")};return l(F,{children:r?l(ft,{baseColor:u.skeletonBackground,highlightColor:u.skeletonElement,children:w(pl,{...e,children:[l(fl,{type:"search",...e}),l(Ae,{count:1,style:m0})]})}):w(pl,{expandable:P,disabled:p,...e,children:[t==="fluid"&&l(b0,{...e,children:i}),t==="fluid"?w(h0,{expandable:P,...e,children:[l(bl,{...e,children:Pa}),y.length>0&&l(gl,{onClick:A,...e,children:Yn})]}):w(F,{children:[l(bl,{expandable:P,onClick:E,...e,children:Pa}),y.length>0&&l(gl,{disabled:p,readOnly:g,onClick:A,...e,children:Yn})]}),l(fl,{expandable:P,type:"text",kind:t,ref:v,size:n,value:y,name:s,disabled:p,readOnly:t==="expandable"&&!P?!0:g,id:c,loading:r,ContainedListMenu:f,onChange:V,placeholder:d,...m})]})})},v0={small:".1em",large:".5em",medium:".4em"},y0={control:(e,t)=>({...e,fontSize:"15px",cursor:t.selectProps.loading?"wait":"pointer",backgroundColor:t.selectProps.readonly?"transparent":u.field01,fontfamily:"IBM Plex Sans",padding:t.selectProps.size&&t.selectProps.kind==="default"?v0[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?`2px solid ${u.supportError}`:"2px solid transparent",borderBottom:(t.selectProps.kind==="default"||t.selectProps.kind==="little")&&t.selectProps.error?`2px solid ${u.supportError}`:`2px solid ${u.borderSubtle01}`,minWidth:"30px",width:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)?"95%":t.selectProps.kind==="little"?"155px":"100%",margin:"0 auto","&:active":{border:"2px solid transparent",borderBottom:`2px solid ${u.borderStrong01}`},"&:hover":{backgroundColor:t.selectProps.kind==="fluid"?"transparent":u.fieldHover01},"&:focus-within":{border:t.selectProps.kind==="fluid"?"":`2px solid ${u.focus}`,borderBottom:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)&&`2px solid ${u.borderSubtle01}`,boxShadow:"none"}}),option:e=>({...e,fontSize:"15px",fontWeight:"
|
|
1644
|
+
`,m0={position:"absolute",display:"flex",top:"0",left:"0",right:"0",bottom:"0"},hl=e=>{const{kind:t,size:n,Title:i,loading:r,value:o,onChange:a,id:c,name:s,placeholder:d,ContainedListMenu:f,disabled:p,readOnly:g,expandable:h,...m}=e,v=x.useRef(null),[y,C]=x.useState(o||""),[P,B]=x.useState(!1),V=S=>{const G=S.target.value;C(G),a&&a(S)},A=()=>{C(""),v.current&&(v.current.value="")},E=()=>{var S;B(G=>!G),(S=v.current)==null||S.focus(),C("")};return l(F,{children:r?l(ft,{baseColor:u.skeletonBackground,highlightColor:u.skeletonElement,children:w(pl,{...e,children:[l(fl,{type:"search",...e}),l(Ae,{count:1,style:m0})]})}):w(pl,{expandable:P,disabled:p,...e,children:[t==="fluid"&&l(b0,{...e,children:i}),t==="fluid"?w(h0,{expandable:P,...e,children:[l(bl,{...e,children:Pa}),y.length>0&&l(gl,{onClick:A,...e,children:Yn})]}):w(F,{children:[l(bl,{expandable:P,onClick:E,...e,children:Pa}),y.length>0&&l(gl,{disabled:p,readOnly:g,onClick:A,...e,children:Yn})]}),l(fl,{expandable:P,type:"text",kind:t,ref:v,size:n,value:y,name:s,disabled:p,readOnly:t==="expandable"&&!P?!0:g,id:c,loading:r,ContainedListMenu:f,onChange:V,placeholder:d,...m})]})})},v0={small:".1em",large:".5em",medium:".4em"},y0={control:(e,t)=>({...e,fontSize:"15px",cursor:t.selectProps.loading?"wait":"pointer",backgroundColor:t.selectProps.readonly?"transparent":u.field01,fontfamily:"IBM Plex Sans",padding:t.selectProps.size&&t.selectProps.kind==="default"?v0[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?`2px solid ${u.supportError}`:"2px solid transparent",borderBottom:(t.selectProps.kind==="default"||t.selectProps.kind==="little")&&t.selectProps.error?`2px solid ${u.supportError}`:`2px solid ${u.borderSubtle01}`,minWidth:"30px",width:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)?"95%":t.selectProps.kind==="little"?"155px":"100%",margin:"0 auto","&:active":{border:"2px solid transparent",borderBottom:`2px solid ${u.borderStrong01}`},"&:hover":{backgroundColor:t.selectProps.kind==="fluid"?"transparent":u.fieldHover01},"&:focus-within":{border:t.selectProps.kind==="fluid"?"":`2px solid ${u.focus}`,borderBottom:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)&&`2px solid ${u.borderSubtle01}`,boxShadow:"none"}}),option:e=>({...e,fontSize:"15px",fontWeight:"500",cursor:"pointer",color:u.textPrimary,display:"flex",justifyContent:"start",alignItems:"center",background:u.field01,fontfamily:"IBM Plex Sans","&:active":{border:"none"},"&:hover":{border:"none",width:"100%",background:"#ADC3D7"}}),placeholder:e=>({...e,color:u.textPrimary,backgroudColor:u.field01,"&:active":{border:"none",color:u.textPrimary},"&:hover":{border:"none",color:u.textPrimary}}),multiValue:e=>({...e,color:u.textPrimary}),singleValue:e=>({...e,color:u.textPrimary}),container:(e,t)=>({...e,borderRadius:t.selectProps.noRadius?"0px":"8px",width:"100%","&:active":{border:"none"},"&:hover":{border:"none"}}),menu:e=>({...e,background:u.field01,color:u.textPrimary,position:"absolute",top:"0",right:"0px",left:"0px",border:`1px solid ${u.borderStrong03}`,fontfamily:"IBM Plex Sans"}),input:e=>({...e,color:"theme.textPrimary","&:focus":{boxShadow:"none",border:"none"}}),dropdownIndicator:e=>({...e,color:u.textPrimary,padding:"4px",display:"flex",alignItems:"center",justifyContent:"center","& > svg":{width:"26px",height:"16px",color:u.iconPrimary}})},ml=I.div`
|
|
1645
1645
|
font-size: 12px;
|
|
1646
1646
|
font-style: normal;
|
|
1647
1647
|
min-width: 300px;
|