prosperita-dumbo-react 4.1.5 → 4.1.7
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 +5 -18
- package/dist/prosperita-dumbo-react.umd.js +5 -18
- package/dist/types/Components/Dropdown/style.d.ts.map +1 -1
- package/dist/types/Components/TableBatchActions/index.d.ts.map +1 -1
- package/dist/types/Components/TableBatchActions/style.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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 || "
|
|
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:
|
|
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" ? `
|
|
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:
|
|
6042
|
+
min-height:20px;
|
|
6043
|
+
max-height:270px
|
|
6043
6044
|
`, V0 = x.label`
|
|
6044
6045
|
width: 100%;
|
|
6045
6046
|
`, F0 = x.span`
|
|
@@ -11824,7 +11825,6 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11824
11825
|
h.length - 1 !== y && /* @__PURE__ */ l(p5, { children: "/" })
|
|
11825
11826
|
] })) });
|
|
11826
11827
|
}, m5 = x.table`
|
|
11827
|
-
font-family: IBM Plex Sans;
|
|
11828
11828
|
border-collapse: collapse;
|
|
11829
11829
|
margin: 0;
|
|
11830
11830
|
padding: 0;
|
|
@@ -11833,7 +11833,6 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11833
11833
|
text-align: start;
|
|
11834
11834
|
background: ${d.layerAccent01};
|
|
11835
11835
|
color: ${d.textPrimary};
|
|
11836
|
-
font-family: "IBM Plex Sans";
|
|
11837
11836
|
font-size: 14px;
|
|
11838
11837
|
font-style: normal;
|
|
11839
11838
|
font-weight: 600;
|
|
@@ -11854,7 +11853,6 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11854
11853
|
background: ${d.layer01};
|
|
11855
11854
|
text-align: start;
|
|
11856
11855
|
color: ${d.textSecondary};
|
|
11857
|
-
font-family: IBM Plex Sans;
|
|
11858
11856
|
font-size: 14px;
|
|
11859
11857
|
font-style: normal;
|
|
11860
11858
|
font-weight: 400;
|
|
@@ -11871,11 +11869,9 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11871
11869
|
padding: .7em;
|
|
11872
11870
|
text-align: start;
|
|
11873
11871
|
margin: 0;
|
|
11874
|
-
font-family: IBM Plex Sans;
|
|
11875
11872
|
font-size:14px;
|
|
11876
11873
|
word-wrap: break-word
|
|
11877
11874
|
`, y5 = x.p`
|
|
11878
|
-
font-family:IBM Plex Sans;
|
|
11879
11875
|
font-size:20px;
|
|
11880
11876
|
display:flex;
|
|
11881
11877
|
padding:1em;
|
|
@@ -11887,7 +11883,6 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11887
11883
|
letter-spacing: 0.16px;
|
|
11888
11884
|
cursor: pointer;
|
|
11889
11885
|
`, C5 = x.h4`
|
|
11890
|
-
font-family:Andale Mono, sans-serif;
|
|
11891
11886
|
font-size:14px;
|
|
11892
11887
|
display:flex;
|
|
11893
11888
|
padding:0;
|
|
@@ -11900,7 +11895,6 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11900
11895
|
cursor: pointer;
|
|
11901
11896
|
word-wrap: break-word
|
|
11902
11897
|
`, x5 = x.div`
|
|
11903
|
-
font-family: IBM Plex Sans;
|
|
11904
11898
|
background: ${d.layer01};
|
|
11905
11899
|
margin: 0;
|
|
11906
11900
|
padding: 0;
|
|
@@ -11911,14 +11905,12 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11911
11905
|
border-right: 1px solid transparent;
|
|
11912
11906
|
border-bottom: 1px solid transparent;
|
|
11913
11907
|
`, I5 = x.div`
|
|
11914
|
-
font-family: IBM Plex Sans;
|
|
11915
11908
|
margin: 0;
|
|
11916
11909
|
padding: 0;
|
|
11917
11910
|
display: flex;
|
|
11918
11911
|
flex-direction: row;
|
|
11919
11912
|
|
|
11920
11913
|
`, Tl = x.button`
|
|
11921
|
-
font-family: IBM Plex Sans;
|
|
11922
11914
|
border: none;
|
|
11923
11915
|
outline: none;
|
|
11924
11916
|
cursor: pointer;
|
|
@@ -11938,7 +11930,6 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11938
11930
|
outline: none;
|
|
11939
11931
|
background: ${d.layer01};
|
|
11940
11932
|
border: none;
|
|
11941
|
-
font-family: "IBM Plex Sans";
|
|
11942
11933
|
font-size: 14px;
|
|
11943
11934
|
font-style: normal;
|
|
11944
11935
|
font-weight: 400;
|
|
@@ -11957,7 +11948,6 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11957
11948
|
color: ${d.textPrimary};
|
|
11958
11949
|
padding: 0 10px;
|
|
11959
11950
|
margin: 0;
|
|
11960
|
-
font-family: IBM Plex Sans;
|
|
11961
11951
|
font-size: 14px;
|
|
11962
11952
|
font-style: normal;
|
|
11963
11953
|
font-weight: 500;
|
|
@@ -11973,7 +11963,6 @@ x.div`
|
|
|
11973
11963
|
color: ${d.textOnColor} !important;
|
|
11974
11964
|
justify-content: space-between;
|
|
11975
11965
|
flex-direction: row;
|
|
11976
|
-
font-family: IBM Plex Sans;
|
|
11977
11966
|
align-items: center;
|
|
11978
11967
|
position: absolute;
|
|
11979
11968
|
bottom: 0;
|
|
@@ -11985,7 +11974,6 @@ x.div`
|
|
|
11985
11974
|
padding: 1em;
|
|
11986
11975
|
font-size: 16px;
|
|
11987
11976
|
color: ${d.textOnColor} !important;
|
|
11988
|
-
font-family: IBM Plex Sans;
|
|
11989
11977
|
cursor: pointer;
|
|
11990
11978
|
box-sizing: border-box;
|
|
11991
11979
|
height: 100%;
|
|
@@ -12079,7 +12067,6 @@ const w5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
12079
12067
|
display: flex;
|
|
12080
12068
|
align-items: start;
|
|
12081
12069
|
background: ${d.layer01};
|
|
12082
|
-
font-family: IBM Plex Sans;
|
|
12083
12070
|
flex-direction: column;
|
|
12084
12071
|
min-width: ${({ width: e }) => e || "100%"};
|
|
12085
12072
|
`, L3 = ({
|
|
@@ -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||"
|
|
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:
|
|
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"?`
|
|
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:
|
|
1381
|
+
min-height:20px;
|
|
1382
|
+
max-height:270px
|
|
1382
1383
|
`,l0=I.label`
|
|
1383
1384
|
width: 100%;
|
|
1384
1385
|
`,s0=I.span`
|
|
@@ -2029,7 +2030,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2029
2030
|
border: 1px solid ${u.focus};
|
|
2030
2031
|
}
|
|
2031
2032
|
`,q2=e=>{const{overflow:t,crumbsOptions:n,startHiddenIndex:i,endHiddenIndex:r}=e,[o,a]=x.useState(!1),c=n.slice(i,r),s=x.useRef(null),d=x.useRef(null),f=x.useRef(null),p=v=>{s.current&&!s.current.contains(v.target)&&f.current&&!f.current.contains(v.target)&&a(!1)},g=()=>{a(v=>!v)};x.useEffect(()=>(document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}),[]),x.useEffect(()=>{f&&d.current&&d.current.focus()},[o]);const b=n.map((v,y)=>t?y===i-1?[{crumb:v.crumb,onClick:v.onClick},{crumb:w(F,{children:[l(mt,{align:"top",size:"medium",label:"Options",children:l(K2,{tabIndex:0,style:{margin:"0",textDecoration:"none"},onClick:g,ref:f,children:"..."})}),o&&l(U2,{ref:s,children:c.map((m,C)=>l(Q2,{tabIndex:0,onClick:m.onClick,style:{textDecoration:"none"},ref:C===0?d:null,children:m.crumb}))})]})}]:y===r?[v,n[r+1]]:y<i||y>r+1?v:null:v).flat().filter(Boolean);return l(_2,{children:b.map((v,y)=>w(F,{children:[l(Y2,{style:{cursor:b.length-1!==y?"pointer":"text",color:b.length-1!==y?u.focus:""},onMouseEnter:m=>{b.length-1!==y&&(m.currentTarget.style.textDecoration="underline")},onMouseLeave:m=>{b.length-1!==y&&(m.currentTarget.style.textDecoration="none")},children:l("p",{style:{margin:"0",padding:"0"},onClick:v==null?void 0:v.onClick,children:v==null?void 0:v.crumb})}),b.length-1!==y&&l(J2,{children:"/"})]}))})},e5=I.table`
|
|
2032
|
-
font-family: IBM Plex Sans;
|
|
2033
2033
|
border-collapse: collapse;
|
|
2034
2034
|
margin: 0;
|
|
2035
2035
|
padding: 0;
|
|
@@ -2038,7 +2038,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2038
2038
|
text-align: start;
|
|
2039
2039
|
background: ${u.layerAccent01};
|
|
2040
2040
|
color: ${u.textPrimary};
|
|
2041
|
-
font-family: "IBM Plex Sans";
|
|
2042
2041
|
font-size: 14px;
|
|
2043
2042
|
font-style: normal;
|
|
2044
2043
|
font-weight: 600;
|
|
@@ -2059,7 +2058,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2059
2058
|
background: ${u.layer01};
|
|
2060
2059
|
text-align: start;
|
|
2061
2060
|
color: ${u.textSecondary};
|
|
2062
|
-
font-family: IBM Plex Sans;
|
|
2063
2061
|
font-size: 14px;
|
|
2064
2062
|
font-style: normal;
|
|
2065
2063
|
font-weight: 400;
|
|
@@ -2076,11 +2074,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2076
2074
|
padding: .7em;
|
|
2077
2075
|
text-align: start;
|
|
2078
2076
|
margin: 0;
|
|
2079
|
-
font-family: IBM Plex Sans;
|
|
2080
2077
|
font-size:14px;
|
|
2081
2078
|
word-wrap: break-word
|
|
2082
2079
|
`,n5=I.p`
|
|
2083
|
-
font-family:IBM Plex Sans;
|
|
2084
2080
|
font-size:20px;
|
|
2085
2081
|
display:flex;
|
|
2086
2082
|
padding:1em;
|
|
@@ -2092,7 +2088,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2092
2088
|
letter-spacing: 0.16px;
|
|
2093
2089
|
cursor: pointer;
|
|
2094
2090
|
`,r5=I.h4`
|
|
2095
|
-
font-family:Andale Mono, sans-serif;
|
|
2096
2091
|
font-size:14px;
|
|
2097
2092
|
display:flex;
|
|
2098
2093
|
padding:0;
|
|
@@ -2105,7 +2100,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2105
2100
|
cursor: pointer;
|
|
2106
2101
|
word-wrap: break-word
|
|
2107
2102
|
`,i5=I.div`
|
|
2108
|
-
font-family: IBM Plex Sans;
|
|
2109
2103
|
background: ${u.layer01};
|
|
2110
2104
|
margin: 0;
|
|
2111
2105
|
padding: 0;
|
|
@@ -2116,14 +2110,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2116
2110
|
border-right: 1px solid transparent;
|
|
2117
2111
|
border-bottom: 1px solid transparent;
|
|
2118
2112
|
`,o5=I.div`
|
|
2119
|
-
font-family: IBM Plex Sans;
|
|
2120
2113
|
margin: 0;
|
|
2121
2114
|
padding: 0;
|
|
2122
2115
|
display: flex;
|
|
2123
2116
|
flex-direction: row;
|
|
2124
2117
|
|
|
2125
2118
|
`,Rs=I.button`
|
|
2126
|
-
font-family: IBM Plex Sans;
|
|
2127
2119
|
border: none;
|
|
2128
2120
|
outline: none;
|
|
2129
2121
|
cursor: pointer;
|
|
@@ -2143,7 +2135,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2143
2135
|
outline: none;
|
|
2144
2136
|
background: ${u.layer01};
|
|
2145
2137
|
border: none;
|
|
2146
|
-
font-family: "IBM Plex Sans";
|
|
2147
2138
|
font-size: 14px;
|
|
2148
2139
|
font-style: normal;
|
|
2149
2140
|
font-weight: 400;
|
|
@@ -2162,7 +2153,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2162
2153
|
color: ${u.textPrimary};
|
|
2163
2154
|
padding: 0 10px;
|
|
2164
2155
|
margin: 0;
|
|
2165
|
-
font-family: IBM Plex Sans;
|
|
2166
2156
|
font-size: 14px;
|
|
2167
2157
|
font-style: normal;
|
|
2168
2158
|
font-weight: 500;
|
|
@@ -2177,7 +2167,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2177
2167
|
color: ${u.textOnColor} !important;
|
|
2178
2168
|
justify-content: space-between;
|
|
2179
2169
|
flex-direction: row;
|
|
2180
|
-
font-family: IBM Plex Sans;
|
|
2181
2170
|
align-items: center;
|
|
2182
2171
|
position: absolute;
|
|
2183
2172
|
bottom: 0;
|
|
@@ -2189,7 +2178,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2189
2178
|
padding: 1em;
|
|
2190
2179
|
font-size: 16px;
|
|
2191
2180
|
color: ${u.textOnColor} !important;
|
|
2192
|
-
font-family: IBM Plex Sans;
|
|
2193
2181
|
cursor: pointer;
|
|
2194
2182
|
box-sizing: border-box;
|
|
2195
2183
|
height: 100%;
|
|
@@ -2224,7 +2212,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2224
2212
|
display: flex;
|
|
2225
2213
|
align-items: start;
|
|
2226
2214
|
background: ${u.layer01};
|
|
2227
|
-
font-family: IBM Plex Sans;
|
|
2228
2215
|
flex-direction: column;
|
|
2229
2216
|
min-width: ${({width:e})=>e||"100%"};
|
|
2230
2217
|
`,u5=({rowdata:e,pageSizes:t,buttons:n,label:i,search:r,columnTitles:o,messagedatalength:a,width:c,expandedRowData:s,columskeys:d,actions:f})=>{const[p,g]=x.useState(0),[b,v]=x.useState(t[0]),[y,m]=x.useState([]),[C,P]=x.useState(Array(e.length).fill(!1)),[B,V]=x.useState(Array(e.length).fill(!1)),[A,E]=x.useState(!1),[S,G]=x.useState(!1),_=M=>{V(R=>{const ne=[...R];ne[M]=!ne[M];const pe=ne.filter(Boolean).length,ye=pe===e.length,ue=pe>0;return E(ye),G(!ye&&ue),ne})},U=()=>{const M=!A;V(Array(e.length).fill(M)),E(M),G(!1)},te=M=>{const R=M.target.value.toLocaleLowerCase(),ne=e.filter(pe=>o.some(ye=>{var Te;const ue=(Te=String(pe[ye]))==null?void 0:Te.toLocaleLowerCase();return ue==null?void 0:ue.includes(R)}));m(ne),g(0)},Y=y.length>0?y:e,Q=x.useMemo(()=>Y.slice(p,p+b),[Y,p,b]),H=x.useMemo(()=>Math.ceil(Y.length/b),[Y.length,b]),O=x.useMemo(()=>Math.floor(p/b)+1,[p,b]),W=x.useCallback(()=>{g(M=>{const R=M+b;return R>=Y.length?M:R})},[b,Y.length]),le=x.useCallback(()=>{g(M=>{const R=M-b;return R<0?0:R})},[b]),ve=x.useCallback(M=>{const R=Number(M.target.value);g((R-1)*b)},[b]),ce=x.useCallback(M=>{const R=Number(M.target.value);v(R),g(0)},[]),Ee=M=>{P(R=>{const ne=[...R];return ne[M]=!ne[M],ne})},Pe=()=>B.filter(M=>M).length,K=M=>C[M]?"up":"down";return x.useEffect(()=>{V(Array(Y.length).fill(!1))},[Y]),l(F,{children:w(c5,{width:c,pageSizes:t,rowdata:e,columnTitles:o,messagedatalength:a,expandedRowData:s,style:{position:"relative"},children:[i&&l(n5,{children:i}),w("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&l(hl,{kind:"default",size:"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:te}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(M=>M.position==="left").map((M,R)=>l("div",{style:{marginLeft:"1px"},children:l(dn,{onClick:M.onClick,kind:M.kind,size:"small",icon:M.icon,label:M.label,borderNone:!0})},R))}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(M=>M.position==="right").map((M,R)=>l("div",{style:{marginRight:"1px"},children:l(dn,{onClick:M.onClick,kind:M.kind,size:"small",icon:M.icon,label:M.label,borderNone:!0})},R))})]}),e&&e.length>0?w(F,{children:[Pe()>0&&l("div",{style:{width:"100%",height:"45px",background:u.buttonPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",color:u.textOnColor},children:w(F,{children:[w("p",{style:{textAlign:"start",fontSize:"14px"},children:[l("span",{style:{margin:"0 5px 0 20px"},children:Pe()}),"item selecionados"]}),l("div",{style:{display:"flex",gap:"10px",marginRight:"10px",alignItems:"center"},children:f==null?void 0:f.map(M=>l(F,{children:w("p",{style:{display:"flex",gap:"8px",marginRight:"10px",cursor:"pointer",fontFamily:"IBM Plex sans,sans-serif",fontWeight:"400",fontSize:"14px"},onClick:M.onClick,children:[M.text,l("img",{style:{objectFit:"none"},src:M.icon})]})}))})]})}),w(e5,{children:[w(t5,{children:[l(Hs,{}),o.map((M,R)=>w(Hs,{children:[R===0&&l(li,{checked:A,indeterminate:S,onChange:U}),l(r5,{children:M})]},R))]}),Q.map((M,R)=>w(F,{children:[w(Ns,{onClick:()=>{Ee(R)},children:[l(xr,{children:l("p",{style:{margin:"0 auto",textAlign:"center",transform:K(R)==="up"?"rotate(180deg)":"rotate(0deg)"},children:s5})}),l(xr,{children:l(li,{checked:B[p+R],onClick:()=>{_(p+R),M.onClick&&M.onClick(p+R)}})}),d==null?void 0:d.map(ne=>l(xr,{children:M[ne]},ne))]}),C[R]&&l(Ns,{children:l(xr,{colSpan:o.length+2,style:{background:u.borderSubtle00},children:l("div",{style:{margin:"10px auto",textAlign:"start",minHeight:"100px",width:"95%",borderTop:`1px solid ${u.borderSubtle01}`},children:l(F,{children:l("div",{style:{width:"90%",margin:"20px auto"},children:s==null?void 0:s.map(ne=>l("p",{style:{margin:"2px"},children:ne+""+M[ne]}))})})})})})]}))]}),w(i5,{children:[w("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${u.borderSubtle01}`},children:[l(Zs,{name:"select",onChange:ce,children:t.map((M,R)=>l(Ws,{value:M,children:M},R))}),w(Wi,{children:[p+1," – ",Math.min(p+b,Y.length)," de ",Y.length," itens"]})]}),w(o5,{children:[w("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${u.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[l(Zs,{name:"select",value:O,onChange:ve,children:Array.from({length:H},(M,R)=>l(Ws,{value:R+1,children:R+1},R+1))}),w(Wi,{children:["de ",H," páginas"]})]}),l(mt,{align:"top",size:"small",label:"Página Anterior",width:"110px",children:l(Rs,{onClick:le,disabled:p===0,style:{borderLeft:"none",opacity:p===0?".5":"1",cursor:p===0?"not-allowed":"pointer"},children:l5})}),l(mt,{align:"top-right",size:"small",label:"Próxima página",width:"110px",children:l(Rs,{onClick:W,disabled:p+b>=Y.length,style:{borderRight:"none",opacity:p+b>=Y.length?".5":"1",cursor:p+b>=Y.length?"not-allowed":"pointer"},children:a5})})]})]})]}):l(Wi,{children:a||"Nenhum item encontrado"})]})})},d5=I.button`
|
|
@@ -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,
|
|
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,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I,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EACF,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,aAAa,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC7B,CAAC;AAYF,eAAO,MAAM,iBAAiB,iIAY3B,UAAU,4CAmXZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableBatchActions/style.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AAInC,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableBatchActions/style.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AAInC,eAAO,MAAM,SAAS,sOAKrB,CAAC;AAEF,eAAO,MAAM,GAAG,uOAWf,CAAC;AAEF,eAAO,MAAM,GAAG,mPASf,CAAC;AAGF,eAAO,MAAM,QAAQ,uOAgBpB,CAAC;AAEF,eAAO,MAAM,GAAG,uPAMf,CAAC;AAEF,eAAO,MAAM,UAAU,yOAWtB,CAAC;AAGF,eAAO,MAAM,aAAa,qOAYzB,CAAC;AAEF,eAAO,MAAM,UAAU,6NAUtB,CAAC;AACF,eAAO,MAAM,OAAO,6NAMnB,CAAC;AACF,eAAO,MAAM,cAAc,yOAW1B,CAAC;AACF,eAAO,MAAM,UAAU,yOAItB,CAAC;AACF,eAAO,MAAM,SAAS,yOAmBrB,CAAC;AACF,eAAO,MAAM,QAAQ,yOASpB,CAAC;AAEF,eAAO,MAAM,cAAc,6NAgD1B,CAAC"}
|