prosperita-dumbo-react 1.0.99 → 1.1.0
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.
- package/dist/prosperita-dumbo-react.es.js +10 -2
- package/dist/prosperita-dumbo-react.umd.js +2 -2
- package/dist/types/Components/InputSelect/index.d.ts +3 -4
- package/dist/types/Components/InputSelect/index.d.ts.map +1 -1
- package/dist/types/Components/InputSelect/style.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6950,6 +6950,7 @@ letter-spacing: 0.16px;
|
|
|
6950
6950
|
...e,
|
|
6951
6951
|
color: c.textPrimary,
|
|
6952
6952
|
backgroudColor: c.field01,
|
|
6953
|
+
padding: ".1em",
|
|
6953
6954
|
"&:active": {
|
|
6954
6955
|
color: c.textPrimary
|
|
6955
6956
|
},
|
|
@@ -7044,7 +7045,7 @@ letter-spacing: 0.16px;
|
|
|
7044
7045
|
line-height: 16px;
|
|
7045
7046
|
word-wrap: break-word;
|
|
7046
7047
|
text-align: start;
|
|
7047
|
-
margin: ${({ kind: e }) => e === "fluid" ? "1em 1em
|
|
7048
|
+
margin: ${({ kind: e }) => e === "fluid" ? "1em 1em 3px 1em" : "0 0 7px 0"};
|
|
7048
7049
|
`, ja = m.div`
|
|
7049
7050
|
display: flex;
|
|
7050
7051
|
flex-direction: row;
|
|
@@ -11283,7 +11284,14 @@ const U3 = (e) => {
|
|
|
11283
11284
|
/* @__PURE__ */ a(Ae, { count: 1, style: v })
|
|
11284
11285
|
] }),
|
|
11285
11286
|
/* @__PURE__ */ C("div", { style: { position: "relative" }, children: [
|
|
11286
|
-
/* @__PURE__ */ a(
|
|
11287
|
+
/* @__PURE__ */ a(
|
|
11288
|
+
_n,
|
|
11289
|
+
{
|
|
11290
|
+
options: p,
|
|
11291
|
+
styles: w,
|
|
11292
|
+
...e
|
|
11293
|
+
}
|
|
11294
|
+
),
|
|
11287
11295
|
/* @__PURE__ */ a(Hn, { label: n, ...e, children: /* @__PURE__ */ a("img", { src: r ? Ye : o ? Ke : "" }) }),
|
|
11288
11296
|
/* @__PURE__ */ a(Ae, { count: 1, style: v })
|
|
11289
11297
|
] }),
|
|
@@ -1677,7 +1677,7 @@ letter-spacing: 0.16px;
|
|
|
1677
1677
|
cursor: pointer;
|
|
1678
1678
|
margin: ${({kind:e})=>e==="fluid"?"0 10px 0 0":"0"};
|
|
1679
1679
|
align-self: ${({kind:e})=>e==="fluid"?"end":"center"};
|
|
1680
|
-
`,H0={position:"absolute",display:"flex",top:"0",left:"0",right:"0",bottom:"0"},pn=e=>{const{kind:t,size:n,label:i,loading:r,value:o,onChange:l,id:u,name:s,placeholder:d,ContainedListMenu:f,disabled:p,readOnly:h,expandable:b,...w}=e,g=I.useRef(null),[y,v]=I.useState(o||""),[A,T]=I.useState(!1),P=E=>{const L=E.target.value;v(L),l&&l(E)},S=()=>{v(""),g.current&&(g.current.value="")},k=()=>{var E;T(L=>!L),(E=g.current)==null||E.focus(),v("")};return a($,{children:r?a(gt,{baseColor:c.skeletonBackground,highlightColor:c.skeletonElement,children:C(fl,{...e,children:[a(dl,{type:"search",...e}),a(Ie,{count:1,style:H0})]})}):C(fl,{expandable:A,disabled:p,...e,children:[t==="fluid"&&a(N0,{...e,children:i}),t==="fluid"?C(D0,{expandable:A,...e,children:[a(gl,{...e,children:Ea}),y.length>0&&a(pl,{onClick:S,...e,children:Jn})]}):C($,{children:[a(gl,{expandable:A,onClick:k,...e,children:Ea}),y.length>0&&a(pl,{disabled:p,readOnly:h,onClick:S,...e,children:Jn})]}),a(dl,{expandable:A,type:"text",kind:t,ref:g,size:n,value:y,name:s,disabled:p,readOnly:t==="expandable"&&!A?!0:h,id:u,loading:r,ContainedListMenu:f,onChange:P,placeholder:d,...w})]})})},R0={small:".1em",large:".5em",medium:".4em"},W0={control:(e,t)=>({...e,fontSize:"15px",cursor:t.selectProps.loading?"wait":"pointer",backgroundColor:t.selectProps.readonly?"transparent":c.field01,fontfamily:"IBM Plex Sans",padding:t.selectProps.size&&t.selectProps.kind==="default"?R0[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 ${c.supportError}`:"1px solid transparent",borderBottom:(t.selectProps.kind==="default"||t.selectProps.kind==="little")&&t.selectProps.error?`1px solid ${c.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":c.fieldHover01,border:"1px solid transparent"},"&:focus-within":{border:t.selectProps.kind==="fluid"?"1px solid transparent":`1px solid ${c.focus}`,borderBottom:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)&&"1px solid transparent",boxShadow:"none"}}),option:e=>({...e,fontSize:"15px",fontWeight:"bolder",cursor:"pointer",color:c.textPrimary,display:"flex",justifyContent:"start",alignItems:"center",background:c.field01,zIndex:7,"&:active":{},"&:hover":{width:"100%",background:"#ADC3D7"}}),placeholder:e=>({...e,color:c.textPrimary,backgroudColor:c.field01,"&:active":{color:c.textPrimary},"&:hover":{color:c.textPrimary}}),multiValue:e=>({...e,color:c.textPrimary}),singleValue:e=>({...e,color:c.textPrimary}),container:(e,t)=>({...e,borderRadius:t.selectProps.noRadius?"0px":"8px",width:"100%","&:active":{},"&:hover":{}}),menu:e=>({...e,background:c.field01,color:c.textPrimary,position:"absolute",top:"0",right:"0px",left:"0px",border:`2px solid ${c.borderStrong01}`,zIndex:7}),input:e=>({...e,color:"theme.textPrimary","&:focus":{boxShadow:"none",borderBottom:`1px solid ${c.borderStrong01}`}}),dropdownIndicator:e=>({...e,color:c.textPrimary,padding:"4px",display:"flex",alignItems:"center",justifyContent:"center","& > svg":{width:"26px",height:"16px",color:c.iconPrimary}})},hl=m.div`
|
|
1680
|
+
`,H0={position:"absolute",display:"flex",top:"0",left:"0",right:"0",bottom:"0"},pn=e=>{const{kind:t,size:n,label:i,loading:r,value:o,onChange:l,id:u,name:s,placeholder:d,ContainedListMenu:f,disabled:p,readOnly:h,expandable:b,...w}=e,g=I.useRef(null),[y,v]=I.useState(o||""),[A,T]=I.useState(!1),P=E=>{const L=E.target.value;v(L),l&&l(E)},S=()=>{v(""),g.current&&(g.current.value="")},k=()=>{var E;T(L=>!L),(E=g.current)==null||E.focus(),v("")};return a($,{children:r?a(gt,{baseColor:c.skeletonBackground,highlightColor:c.skeletonElement,children:C(fl,{...e,children:[a(dl,{type:"search",...e}),a(Ie,{count:1,style:H0})]})}):C(fl,{expandable:A,disabled:p,...e,children:[t==="fluid"&&a(N0,{...e,children:i}),t==="fluid"?C(D0,{expandable:A,...e,children:[a(gl,{...e,children:Ea}),y.length>0&&a(pl,{onClick:S,...e,children:Jn})]}):C($,{children:[a(gl,{expandable:A,onClick:k,...e,children:Ea}),y.length>0&&a(pl,{disabled:p,readOnly:h,onClick:S,...e,children:Jn})]}),a(dl,{expandable:A,type:"text",kind:t,ref:g,size:n,value:y,name:s,disabled:p,readOnly:t==="expandable"&&!A?!0:h,id:u,loading:r,ContainedListMenu:f,onChange:P,placeholder:d,...w})]})})},R0={small:".1em",large:".5em",medium:".4em"},W0={control:(e,t)=>({...e,fontSize:"15px",cursor:t.selectProps.loading?"wait":"pointer",backgroundColor:t.selectProps.readonly?"transparent":c.field01,fontfamily:"IBM Plex Sans",padding:t.selectProps.size&&t.selectProps.kind==="default"?R0[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 ${c.supportError}`:"1px solid transparent",borderBottom:(t.selectProps.kind==="default"||t.selectProps.kind==="little")&&t.selectProps.error?`1px solid ${c.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":c.fieldHover01,border:"1px solid transparent"},"&:focus-within":{border:t.selectProps.kind==="fluid"?"1px solid transparent":`1px solid ${c.focus}`,borderBottom:t.selectProps.kind==="fluid"&&(t.selectProps.error||t.selectProps.warning)&&"1px solid transparent",boxShadow:"none"}}),option:e=>({...e,fontSize:"15px",fontWeight:"bolder",cursor:"pointer",color:c.textPrimary,display:"flex",justifyContent:"start",alignItems:"center",background:c.field01,zIndex:7,"&:active":{},"&:hover":{width:"100%",background:"#ADC3D7"}}),placeholder:e=>({...e,color:c.textPrimary,backgroudColor:c.field01,padding:".1em","&:active":{color:c.textPrimary},"&:hover":{color:c.textPrimary}}),multiValue:e=>({...e,color:c.textPrimary}),singleValue:e=>({...e,color:c.textPrimary}),container:(e,t)=>({...e,borderRadius:t.selectProps.noRadius?"0px":"8px",width:"100%","&:active":{},"&:hover":{}}),menu:e=>({...e,background:c.field01,color:c.textPrimary,position:"absolute",top:"0",right:"0px",left:"0px",border:`2px solid ${c.borderStrong01}`,zIndex:7}),input:e=>({...e,color:"theme.textPrimary","&:focus":{boxShadow:"none",borderBottom:`1px solid ${c.borderStrong01}`}}),dropdownIndicator:e=>({...e,color:c.textPrimary,padding:"4px",display:"flex",alignItems:"center",justifyContent:"center","& > svg":{width:"26px",height:"16px",color:c.iconPrimary}})},hl=m.div`
|
|
1681
1681
|
font-size: 12px;
|
|
1682
1682
|
font-style: normal;
|
|
1683
1683
|
min-width: 300px;
|
|
@@ -1713,7 +1713,7 @@ letter-spacing: 0.16px;
|
|
|
1713
1713
|
line-height: 16px;
|
|
1714
1714
|
word-wrap: break-word;
|
|
1715
1715
|
text-align: start;
|
|
1716
|
-
margin: ${({kind:e})=>e==="fluid"?"1em 1em
|
|
1716
|
+
margin: ${({kind:e})=>e==="fluid"?"1em 1em 3px 1em":"0 0 7px 0"};
|
|
1717
1717
|
`,ml=m.div`
|
|
1718
1718
|
display: flex;
|
|
1719
1719
|
flex-direction: row;
|
|
@@ -9,21 +9,20 @@ export type SelectType = {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
error?: boolean;
|
|
11
11
|
warning?: boolean;
|
|
12
|
-
styles?: StylesConfig;
|
|
13
12
|
readonly?: boolean;
|
|
14
13
|
loading?: boolean;
|
|
15
14
|
options?: IoptionsProps[];
|
|
15
|
+
styles?: StylesConfig;
|
|
16
16
|
name?: string;
|
|
17
17
|
id?: string;
|
|
18
18
|
noRadius?: boolean;
|
|
19
|
-
onChange?: (event: unknown | unknown[]) => void;
|
|
20
19
|
isMulti?: boolean;
|
|
21
20
|
value?: string;
|
|
21
|
+
onChange?: (event: any) => void;
|
|
22
22
|
};
|
|
23
|
-
type IoptionsProps = {
|
|
23
|
+
export type IoptionsProps = {
|
|
24
24
|
label: string;
|
|
25
25
|
value: string;
|
|
26
26
|
};
|
|
27
27
|
export declare const InputSelect: (props: SelectType) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export {};
|
|
29
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/InputSelect/index.tsx"],"names":[],"mappings":"AASA,OAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIpD,OAAO,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/InputSelect/index.tsx"],"names":[],"mappings":"AASA,OAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIpD,OAAO,0CAA0C,CAAC;AAGlD,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;IACnC,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,eAAO,MAAM,WAAW,UAAW,UAAU,4CA8L5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/InputSelect/style.tsx"],"names":[],"mappings":";AAGA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,MAAM,MAAM,QAAQ,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAQjD,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/InputSelect/style.tsx"],"names":[],"mappings":";AAGA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,MAAM,MAAM,QAAQ,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAQjD,eAAO,MAAM,aAAa,EAAE,OA4J3B,CAAC;AAEF,eAAO,MAAM,eAAe,+OA8B3B,CAAC;AAEF,eAAO,MAAM,cAAc,iPAc1B,CAAC;AACF,eAAO,MAAM,eAAe,+OAa3B,CAAC;AAEF,eAAO,MAAM,UAAU,iPAStB,CAAC;AAEF,eAAO,MAAM,kBAAkB,+OAS9B,CAAC;AAQF,eAAO,MAAM,aAAa,+OAWzB,CAAC"}
|