prosperita-dumbo-react 3.0.1 → 3.0.2

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.
@@ -11744,7 +11744,7 @@ const Jf = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
11744
11744
  border-collapse: collapse;
11745
11745
  margin: 0;
11746
11746
  padding: 0;
11747
- min-width: 100%;
11747
+ width:100%;
11748
11748
  `, aa = x.tr`
11749
11749
  text-align: start;
11750
11750
  background: ${c.layerAccent01};
@@ -11802,7 +11802,7 @@ const Jf = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
11802
11802
  margin:0;
11803
11803
  text-align: start;
11804
11804
  font-style: normal;
11805
- font-weight: bolder;
11805
+ font-weight: 500;
11806
11806
  line-height: 18px;
11807
11807
  letter-spacing: 0.16px;
11808
11808
  cursor: pointer;
@@ -11823,6 +11823,7 @@ const Jf = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
11823
11823
  padding: 0;
11824
11824
  display: flex;
11825
11825
  flex-direction: row;
11826
+
11826
11827
  `, ca = x.button`
11827
11828
  font-family: IBM Plex Sans;
11828
11829
  border: none;
@@ -11978,11 +11979,11 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
11978
11979
  margin: 0;
11979
11980
  padding: 0;
11980
11981
  display: flex;
11981
- width: 1100px;
11982
11982
  align-items: start;
11983
11983
  background: ${c.layer01};
11984
11984
  font-family: IBM Plex Sans;
11985
11985
  flex-direction: column;
11986
+ min-width:1100px;
11986
11987
  & > div:nth-child(2) {
11987
11988
  display: flex;
11988
11989
  align-self: end;
@@ -12036,7 +12037,7 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
12036
12037
  },
12037
12038
  []
12038
12039
  );
12039
- return /* @__PURE__ */ a(k, { children: /* @__PURE__ */ I(f5, { style: { minHeight: "50px", position: "relative" }, children: [
12040
+ return /* @__PURE__ */ a(k, { children: /* @__PURE__ */ I(f5, { style: { position: "relative" }, children: [
12040
12041
  /* @__PURE__ */ a(l5, { children: i }),
12041
12042
  /* @__PURE__ */ I("div", { style: {
12042
12043
  display: "flex",
@@ -12053,7 +12054,7 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
12053
12054
  onChange: m
12054
12055
  }
12055
12056
  ),
12056
- /* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((S) => S.position === "left").map((S, A) => /* @__PURE__ */ I("div", { children: [
12057
+ /* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((S) => S.position === "left").map((S, A) => /* @__PURE__ */ I("div", { style: { marginLeft: "1px" }, children: [
12057
12058
  " ",
12058
12059
  /* @__PURE__ */ a(
12059
12060
  mn,
@@ -12067,7 +12068,7 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
12067
12068
  }
12068
12069
  )
12069
12070
  ] }, A)) }),
12070
- /* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((S) => S.position === "right").map((S, A) => /* @__PURE__ */ I("div", { children: [
12071
+ /* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((S) => S.position === "right").map((S, A) => /* @__PURE__ */ I("div", { style: { marginRight: "1px" }, children: [
12071
12072
  " ",
12072
12073
  /* @__PURE__ */ a(
12073
12074
  mn,
@@ -2013,7 +2013,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2013
2013
  border-collapse: collapse;
2014
2014
  margin: 0;
2015
2015
  padding: 0;
2016
- min-width: 100%;
2016
+ width:100%;
2017
2017
  `,hl=x.tr`
2018
2018
  text-align: start;
2019
2019
  background: ${c.layerAccent01};
@@ -2071,7 +2071,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2071
2071
  margin:0;
2072
2072
  text-align: start;
2073
2073
  font-style: normal;
2074
- font-weight: bolder;
2074
+ font-weight: 500;
2075
2075
  line-height: 18px;
2076
2076
  letter-spacing: 0.16px;
2077
2077
  cursor: pointer;
@@ -2092,6 +2092,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2092
2092
  padding: 0;
2093
2093
  display: flex;
2094
2094
  flex-direction: row;
2095
+
2095
2096
  `,vl=x.button`
2096
2097
  font-family: IBM Plex Sans;
2097
2098
  border: none;
@@ -2190,14 +2191,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2190
2191
  margin: 0;
2191
2192
  padding: 0;
2192
2193
  display: flex;
2193
- width: 1100px;
2194
2194
  align-items: start;
2195
2195
  background: ${c.layer01};
2196
2196
  font-family: IBM Plex Sans;
2197
2197
  flex-direction: column;
2198
+ min-width:1100px;
2198
2199
  & > div:nth-child(2) {
2199
2200
  display: flex;
2200
2201
  align-self: end;
2201
2202
  width: 100%;
2202
2203
  }
2203
- `,Xf=({rowdata:e,pageSizes:t,buttonsTable:n,textLabel:i,searchPlaceholder:r,columnTitles:o,messageDataLength:s})=>{const[d,l]=P.useState(0),[u,f]=P.useState(t[0]),[p,h]=P.useState([]),m=S=>{const A=S.target.value.toLocaleLowerCase(),T=e.filter(L=>o.some(z=>{var re;const U=(re=String(L[z]))==null?void 0:re.toLocaleLowerCase();return U==null?void 0:U.includes(A)}));h(T),l(0)},b=p.length>0?p:e,v=P.useMemo(()=>b.slice(d,d+u),[b,d,u]),C=P.useMemo(()=>Math.ceil(b.length/u),[b.length,u]),I=P.useMemo(()=>Math.floor(d/u)+1,[d,u]),B=P.useCallback(()=>{l(S=>{const A=S+u;return A>=b.length?S:A})},[u,b.length]),E=P.useCallback(()=>{l(S=>{const A=S-u;return A<0?0:A})},[u]),V=P.useCallback(S=>{const A=Number(S.target.value);l((A-1)*u)},[u]),w=P.useCallback(S=>{const A=Number(S.target.value);f(A),l(0)},[]);return a(G,{children:y($f,{style:{minHeight:"50px",position:"relative"},children:[a(Rf,{children:i}),y("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(Yo,{kind:"default",size:"medium",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:m}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(S=>S.position==="left").map((S,A)=>y("div",{children:[" ",a(kt,{onClick:S.onClick,kind:S.kind,size:"medium",icon:S.icon,label:S.label,borderNone:!0})]},A))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(S=>S.position==="right").map((S,A)=>y("div",{children:[" ",a(kt,{onClick:S.onClick,kind:S.kind,size:"medium",icon:S.icon,label:S.label,borderNone:!0})]},A))})]}),e&&e.length>0?y(G,{children:[y(bl,{children:[a(hl,{children:o.map((S,A)=>a(ml,{children:a(Cl,{children:S})},A))}),v.map((S,A)=>a(Df,{onClick:()=>S.onClick?S.onClick(d+A):null,children:Object.keys(S).map(T=>a(Lf,{children:S[T]},T))},A))]}),y(Nf,{children:[y("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(yl,{name:"select",onChange:w,children:t.map((S,A)=>a(xl,{value:S,children:S},A))}),y(Il,{children:[d+1," – ",Math.min(d+u,b.length)," de ",b.length," itens"]})]}),y(Wf,{children:[y("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(yl,{name:"select",value:I,onChange:V,children:Array.from({length:C},(S,A)=>a(xl,{value:A+1,children:A+1},A+1))}),y(Il,{children:["de ",C," páginas"]})]}),a(qe,{align:"top",size:"small",label:"Previous page",width:"110px",children:a(vl,{onClick:E,disabled:d===0,style:{borderLeft:"none",opacity:d===0?".5":"1",cursor:d===0?"not-allowed":"pointer"},children:Zf})}),a(qe,{align:"top-right",size:"small",label:"Next page",width:"100px",children:a(vl,{onClick:B,disabled:d+u>=b.length,style:{borderRight:"none",opacity:d+u>=b.length?".5":"1",cursor:d+u>=b.length?"not-allowed":"pointer"},children:Of})})]})]})]}):a(G,{children:y(bl,{children:[a(hl,{children:a(ml,{children:a(Cl,{})})}),a("div",{style:{height:"350px",width:"100%"},children:a("h4",{style:{fontFamily:"IBM Plex Sans",fontSize:"20px",display:"flex",padding:"0",alignItems:"center",justifyContent:"center",height:"100%",fontStyle:"normal",fontWeight:"400",lineHeight:"18px",letterSpacing:"0.16px",width:"100%",margin:"0"},children:s})})]})})]})})};ie.Breadcrumb=Hf,ie.Button=kt,ie.Checkbox=e1,ie.ContentSwitcher=uf,ie.Dropdown=j1,ie.FileUploader=G1,ie.InlineLoading=So,ie.Input=Ac,ie.InputFluid=Tc,ie.InputSelect=tf,ie.Loading=dr,ie.Margin=rf,ie.MenuButton=h1,ie.Modal=uo,ie.Radio=W1,ie.Search=Yo,ie.TableBatchActions=Xf,ie.Tag=C1,ie.Tile=L1,ie.Toogle=_1,ie.Tooltip=qe,ie.UIHeaderNav=Pf,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
2204
+ `,Xf=({rowdata:e,pageSizes:t,buttonsTable:n,textLabel:i,searchPlaceholder:r,columnTitles:o,messageDataLength:s})=>{const[d,l]=P.useState(0),[u,f]=P.useState(t[0]),[p,h]=P.useState([]),m=S=>{const A=S.target.value.toLocaleLowerCase(),T=e.filter(L=>o.some(z=>{var re;const U=(re=String(L[z]))==null?void 0:re.toLocaleLowerCase();return U==null?void 0:U.includes(A)}));h(T),l(0)},b=p.length>0?p:e,v=P.useMemo(()=>b.slice(d,d+u),[b,d,u]),C=P.useMemo(()=>Math.ceil(b.length/u),[b.length,u]),I=P.useMemo(()=>Math.floor(d/u)+1,[d,u]),B=P.useCallback(()=>{l(S=>{const A=S+u;return A>=b.length?S:A})},[u,b.length]),E=P.useCallback(()=>{l(S=>{const A=S-u;return A<0?0:A})},[u]),V=P.useCallback(S=>{const A=Number(S.target.value);l((A-1)*u)},[u]),w=P.useCallback(S=>{const A=Number(S.target.value);f(A),l(0)},[]);return a(G,{children:y($f,{style:{position:"relative"},children:[a(Rf,{children:i}),y("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(Yo,{kind:"default",size:"medium",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:m}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(S=>S.position==="left").map((S,A)=>y("div",{style:{marginLeft:"1px"},children:[" ",a(kt,{onClick:S.onClick,kind:S.kind,size:"medium",icon:S.icon,label:S.label,borderNone:!0})]},A))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(S=>S.position==="right").map((S,A)=>y("div",{style:{marginRight:"1px"},children:[" ",a(kt,{onClick:S.onClick,kind:S.kind,size:"medium",icon:S.icon,label:S.label,borderNone:!0})]},A))})]}),e&&e.length>0?y(G,{children:[y(bl,{children:[a(hl,{children:o.map((S,A)=>a(ml,{children:a(Cl,{children:S})},A))}),v.map((S,A)=>a(Df,{onClick:()=>S.onClick?S.onClick(d+A):null,children:Object.keys(S).map(T=>a(Lf,{children:S[T]},T))},A))]}),y(Nf,{children:[y("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(yl,{name:"select",onChange:w,children:t.map((S,A)=>a(xl,{value:S,children:S},A))}),y(Il,{children:[d+1," – ",Math.min(d+u,b.length)," de ",b.length," itens"]})]}),y(Wf,{children:[y("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(yl,{name:"select",value:I,onChange:V,children:Array.from({length:C},(S,A)=>a(xl,{value:A+1,children:A+1},A+1))}),y(Il,{children:["de ",C," páginas"]})]}),a(qe,{align:"top",size:"small",label:"Previous page",width:"110px",children:a(vl,{onClick:E,disabled:d===0,style:{borderLeft:"none",opacity:d===0?".5":"1",cursor:d===0?"not-allowed":"pointer"},children:Zf})}),a(qe,{align:"top-right",size:"small",label:"Next page",width:"100px",children:a(vl,{onClick:B,disabled:d+u>=b.length,style:{borderRight:"none",opacity:d+u>=b.length?".5":"1",cursor:d+u>=b.length?"not-allowed":"pointer"},children:Of})})]})]})]}):a(G,{children:y(bl,{children:[a(hl,{children:a(ml,{children:a(Cl,{})})}),a("div",{style:{height:"350px",width:"100%"},children:a("h4",{style:{fontFamily:"IBM Plex Sans",fontSize:"20px",display:"flex",padding:"0",alignItems:"center",justifyContent:"center",height:"100%",fontStyle:"normal",fontWeight:"400",lineHeight:"18px",letterSpacing:"0.16px",width:"100%",margin:"0"},children:s})})]})})]})})};ie.Breadcrumb=Hf,ie.Button=kt,ie.Checkbox=e1,ie.ContentSwitcher=uf,ie.Dropdown=j1,ie.FileUploader=G1,ie.InlineLoading=So,ie.Input=Ac,ie.InputFluid=Tc,ie.InputSelect=tf,ie.Loading=dr,ie.Margin=rf,ie.MenuButton=h1,ie.Modal=uo,ie.Radio=W1,ie.Search=Yo,ie.TableBatchActions=Xf,ie.Tag=C1,ie.Tile=L1,ie.Toogle=_1,ie.Tooltip=qe,ie.UIHeaderNav=Pf,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
@@ -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,sOAMrB,CAAC;AAEF,eAAO,MAAM,GAAG,uOAWf,CAAC;AAGF,eAAO,MAAM,GAAG,mPAMf,CAAC;AAGF,eAAO,MAAM,QAAQ,uOAepB,CAAC;AAEF,eAAO,MAAM,GAAG,uPAMf,CAAC;AAEF,eAAO,MAAM,UAAU,yOAWtB,CAAC;AACF,eAAO,MAAM,aAAa,yOAYzB,CAAC;AAGF,eAAO,MAAM,UAAU,6NAWtB,CAAC;AACF,eAAO,MAAM,OAAO,6NAMnB,CAAC;AACF,eAAO,MAAM,cAAc,yOAW1B,CAAC;AACF,eAAO,MAAM,UAAU,yOAGtB,CAAC;AACF,eAAO,MAAM,SAAS,yOAoBrB,CAAC;AACF,eAAO,MAAM,QAAQ,yOAUpB,CAAC;AAEF,eAAO,MAAM,cAAc,6NAkD1B,CAAC"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableBatchActions/style.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AAInC,eAAO,MAAM,SAAS,sOAMrB,CAAC;AAEF,eAAO,MAAM,GAAG,uOAWf,CAAC;AAGF,eAAO,MAAM,GAAG,mPAMf,CAAC;AAGF,eAAO,MAAM,QAAQ,uOAepB,CAAC;AAEF,eAAO,MAAM,GAAG,uPAMf,CAAC;AAEF,eAAO,MAAM,UAAU,yOAWtB,CAAC;AACF,eAAO,MAAM,aAAa,yOAYzB,CAAC;AAGF,eAAO,MAAM,UAAU,6NAWtB,CAAC;AACF,eAAO,MAAM,OAAO,6NAOnB,CAAC;AACF,eAAO,MAAM,cAAc,yOAW1B,CAAC;AACF,eAAO,MAAM,UAAU,yOAGtB,CAAC;AACF,eAAO,MAAM,SAAS,yOAoBrB,CAAC;AACF,eAAO,MAAM,QAAQ,yOAUpB,CAAC;AAEF,eAAO,MAAM,cAAc,6NAkD1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosperita-dumbo-react",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
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",