prosperita-dumbo-react 1.0.60 → 1.0.61
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 -5
- package/dist/prosperita-dumbo-react.umd.js +4 -3
- package/dist/types/Components/Table/index.d.ts +1 -0
- package/dist/types/Components/Table/index.d.ts.map +1 -1
- package/dist/types/Components/TableData/index.d.ts +1 -0
- package/dist/types/Components/TableData/index.d.ts.map +1 -1
- package/dist/types/Components/TableData/style.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2786,12 +2786,12 @@ const rn = {
|
|
|
2786
2786
|
expressive: "14px"
|
|
2787
2787
|
},
|
|
2788
2788
|
ghost: {
|
|
2789
|
-
large: "
|
|
2790
|
-
medium: "11px
|
|
2791
|
-
small: "7px
|
|
2792
|
-
extraLarge: "15px
|
|
2789
|
+
large: "18px 80px 18px 16px",
|
|
2790
|
+
medium: "11px 74px 13px 16px",
|
|
2791
|
+
small: "7px 74px 7px 16px",
|
|
2792
|
+
extraLarge: "15px 64px 31px 16px",
|
|
2793
2793
|
twoXLarge: "15px 64px 47px 16px",
|
|
2794
|
-
expressive: "13px
|
|
2794
|
+
expressive: "13px 64px 13px 16px"
|
|
2795
2795
|
}
|
|
2796
2796
|
}, gn = {
|
|
2797
2797
|
primary: {
|
|
@@ -14241,6 +14241,7 @@ const $6 = v.input`
|
|
|
14241
14241
|
width: 1%;
|
|
14242
14242
|
white-space: nowrap;
|
|
14243
14243
|
vertical-align: middle;
|
|
14244
|
+
font-family: Arial, sans-serif;
|
|
14244
14245
|
`, W6 = v.tr`
|
|
14245
14246
|
background: ${c.layer01};
|
|
14246
14247
|
text-align: start;
|
|
@@ -14556,6 +14557,7 @@ const j6 = /* @__PURE__ */ a(F, { children: /* @__PURE__ */ a(
|
|
|
14556
14557
|
kind: w.kind,
|
|
14557
14558
|
size: "small",
|
|
14558
14559
|
icon: w.icon,
|
|
14560
|
+
dimension: w.dimension,
|
|
14559
14561
|
label: w.label,
|
|
14560
14562
|
borderNone: !0
|
|
14561
14563
|
}
|
|
@@ -14570,6 +14572,7 @@ const j6 = /* @__PURE__ */ a(F, { children: /* @__PURE__ */ a(
|
|
|
14570
14572
|
size: "small",
|
|
14571
14573
|
icon: w.icon,
|
|
14572
14574
|
label: w.label,
|
|
14575
|
+
dimension: w.dimension,
|
|
14573
14576
|
borderNone: !0
|
|
14574
14577
|
}
|
|
14575
14578
|
) }, k)) })
|
|
@@ -15038,6 +15041,7 @@ const i3 = /* @__PURE__ */ a(F, { children: /* @__PURE__ */ a(
|
|
|
15038
15041
|
size: "small",
|
|
15039
15042
|
icon: G.icon,
|
|
15040
15043
|
label: G.label,
|
|
15044
|
+
dimension: G.dimension,
|
|
15041
15045
|
borderNone: !0
|
|
15042
15046
|
}
|
|
15043
15047
|
) }, M)) }),
|
|
@@ -15052,6 +15056,7 @@ const i3 = /* @__PURE__ */ a(F, { children: /* @__PURE__ */ a(
|
|
|
15052
15056
|
size: "small",
|
|
15053
15057
|
icon: G.icon,
|
|
15054
15058
|
label: G.label,
|
|
15059
|
+
dimension: G.dimension,
|
|
15055
15060
|
borderNone: !0
|
|
15056
15061
|
}
|
|
15057
15062
|
) }, M)) })
|
|
@@ -86,7 +86,7 @@ Example:
|
|
|
86
86
|
Perhaps you're looking to import 'styled-components/native'?
|
|
87
87
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var _n="__sc-".concat(At,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[_n]||(window[_n]=0),window[_n]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
88
88
|
|
|
89
|
-
See https://s-c.sh/2BAXzed for more info.`),window[_n]+=1);const L3="",Ut={default:{large:"18px 80px 18px 16px",medium:"11px 74px 13px 16px",small:"7px 74px 7px 16px",extraLarge:"15px 64px 31px 16px",twoXLarge:"15px 64px 47px 16px",expressive:"13px 64px 13px 16px"},onlyIcon:{large:"16px",medium:"12px",small:"6px",extraLarge:"24px",twoXLarge:"24px",expressive:"14px"},ghost:{large:"
|
|
89
|
+
See https://s-c.sh/2BAXzed for more info.`),window[_n]+=1);const L3="",Ut={default:{large:"18px 80px 18px 16px",medium:"11px 74px 13px 16px",small:"7px 74px 7px 16px",extraLarge:"15px 64px 31px 16px",twoXLarge:"15px 64px 47px 16px",expressive:"13px 64px 13px 16px"},onlyIcon:{large:"16px",medium:"12px",small:"6px",extraLarge:"24px",twoXLarge:"24px",expressive:"14px"},ghost:{large:"18px 80px 18px 16px",medium:"11px 74px 13px 16px",small:"7px 74px 7px 16px",extraLarge:"15px 64px 31px 16px",twoXLarge:"15px 64px 47px 16px",expressive:"13px 64px 13px 16px"}},fn={primary:{default:c.buttonPrimary,hover:c.buttonPrimaryHover,active:c.buttonPrimaryActive,disabled:c.buttonDisabled},secondary:{default:c.buttonSecondary,hover:c.buttonSecondaryHover,active:c.buttonSecondaryActive,disabled:c.buttonDisabled},tertiary:{default:"transparent",hover:c.buttonTertiaryHover,active:c.buttonTertiaryActive,disabled:"transparent"},ghost:{default:"transparent",hover:c.backgroundHover,active:c.backgroundActive,disabled:"transparent"},dangerPrimary:{default:"#DA1E28",hover:"#B81A21",active:c.buttonAccentActive,disabled:c.buttonDisabled},dangerTertiary:{default:"transparent",hover:c.buttonDangerSecondary,active:c.buttonDangerActive,disabled:"transparent"},dangerGhost:{default:"transparent",hover:c.buttonDangerHover,active:c.buttonDangerActive,disabled:c.buttonDisabled}},da={primary:c.textOnColor,tertiary:c.buttonTertiary,disabled:c.textOnColorDisabled,dangerTertiary:c.buttonDangerSecondary,ghost:c.focus,secondary:c.textOnColor,dangerGhost:c.buttonDangerSecondary,dangerPrimary:c.textOnColor},ku={primary:c.textOnColor,tertiary:c.textOnColor,disabled:c.buttonDisabled,dangerTertiary:c.textOnColor,dangerGhost:c.textOnColor,ghost:c.focus,dangerPrimary:c.textOnColor},fa=({kind:e,disabled:t})=>t?da.disabled:da[e],Bu=({kind:e,size:t})=>e==="ghost"||e==="dangerGhost"?Ut.ghost[t]:Ut.default[t],Vu=v.div`
|
|
90
90
|
width: ${({full:e})=>e?"100%":"auto"};
|
|
91
91
|
`,pa=v.button`
|
|
92
92
|
width: 100%;
|
|
@@ -2412,6 +2412,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2412
2412
|
width: 1%;
|
|
2413
2413
|
white-space: nowrap;
|
|
2414
2414
|
vertical-align: middle;
|
|
2415
|
+
font-family: Arial, sans-serif;
|
|
2415
2416
|
`,V6=v.tr`
|
|
2416
2417
|
background: ${c.layer01};
|
|
2417
2418
|
text-align: start;
|
|
@@ -2588,7 +2589,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2588
2589
|
align-self: end;
|
|
2589
2590
|
width: 100%;
|
|
2590
2591
|
}
|
|
2591
|
-
`,D6=({rowdata:e,pageSizes:t,buttons:n,label:i,search:r,columnTitles:o,messagedatalength:l,width:u})=>{const[s,d]=I.useState(0),[f,p]=I.useState(t[0]),[g,b]=I.useState([]),h=A=>{const F=A.target.value.toLocaleLowerCase(),z=e.filter(L=>o.some(O=>{var W;const D=(W=String(L[O]))==null?void 0:W.toLocaleLowerCase();return D==null?void 0:D.includes(F)}));b(z),d(0)},y=g.length>0?g:e,C=I.useMemo(()=>y.slice(s,s+f),[y,s,f]),w=I.useMemo(()=>Math.ceil(y.length/f),[y.length,f]),E=I.useMemo(()=>Math.floor(s/f)+1,[s,f]),P=I.useCallback(()=>{d(A=>{const F=A+f;return F>=y.length?A:F})},[f,y.length]),B=I.useCallback(()=>{d(A=>{const F=A-f;return F<0?0:F})},[f]),S=I.useCallback(A=>{const F=Number(A.target.value);d((F-1)*f)},[f]),k=I.useCallback(A=>{const F=Number(A.target.value);p(F),d(0)},[]);return a(M,{children:x(O6,{width:u,pageSizes:t,rowdata:e,columnTitles:o,messagedatalength:l,style:{position:"relative"},children:[i&&a(F6,{children:i}),x("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(qn,{kind:"default",size:"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:h}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(A=>A.position==="left").map((A,F)=>a("div",{style:{marginLeft:"1px"},children:a(at,{onClick:A.onClick,kind:A.kind,size:"small",icon:A.icon,label:A.label,borderNone:!0})},F))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(A=>A.position==="right").map((A,F)=>a("div",{style:{marginRight:"1px"},children:a(at,{onClick:z=>{z.stopPropagation(),A.onClick&&A.onClick()},kind:A.kind,size:"small",icon:A.icon,label:A.label,borderNone:!0})},F))})]}),e&&e.length>0?x(M,{children:[x(Yc,{children:[a(Jc,{children:o.map((A,F)=>a(Uc,{children:a(Qc,{children:A})},F))}),C.map((A,F)=>a(V6,{children:Object.keys(A).map(z=>a(B6,{children:A[z]},z))},F))]}),x(M6,{children:[x("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(e1,{name:"select",onChange:k,children:t.map((A,F)=>a(qc,{value:A,children:A},F))}),x(t1,{children:[s+1," – ",Math.min(s+f,y.length)," de ",y.length," itens"]})]}),x($6,{children:[x("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(e1,{name:"select",value:E,onChange:S,children:Array.from({length:w},(A,F)=>a(qc,{value:F+1,children:F+1},F+1))}),x(t1,{children:["de ",w," páginas"]})]}),a(je,{align:"top",size:"small",label:"Pagina Anterior",width:"110px",children:a(Kc,{onClick:B,disabled:s===0,style:{borderLeft:"none",opacity:s===0?".5":"1",cursor:s===0?"not-allowed":"pointer"},children:L6})}),a(je,{align:"top-right",size:"small",label:"Proxima Pagina",width:"110px",children:a(Kc,{onClick:P,disabled:s+f>=y.length,style:{borderRight:"none",opacity:s+f>=y.length?".5":"1",cursor:s+f>=y.length?"not-allowed":"pointer"},children:G6})})]})]})]}):a(M,{children:x(Yc,{children:[a(Jc,{children:a(Uc,{children:a(Qc,{})})}),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:l||"Nenhum dado disponível."})})]})})]})})},N6=v.table`
|
|
2592
|
+
`,D6=({rowdata:e,pageSizes:t,buttons:n,label:i,search:r,columnTitles:o,messagedatalength:l,width:u})=>{const[s,d]=I.useState(0),[f,p]=I.useState(t[0]),[g,b]=I.useState([]),h=A=>{const F=A.target.value.toLocaleLowerCase(),z=e.filter(L=>o.some(O=>{var W;const D=(W=String(L[O]))==null?void 0:W.toLocaleLowerCase();return D==null?void 0:D.includes(F)}));b(z),d(0)},y=g.length>0?g:e,C=I.useMemo(()=>y.slice(s,s+f),[y,s,f]),w=I.useMemo(()=>Math.ceil(y.length/f),[y.length,f]),E=I.useMemo(()=>Math.floor(s/f)+1,[s,f]),P=I.useCallback(()=>{d(A=>{const F=A+f;return F>=y.length?A:F})},[f,y.length]),B=I.useCallback(()=>{d(A=>{const F=A-f;return F<0?0:F})},[f]),S=I.useCallback(A=>{const F=Number(A.target.value);d((F-1)*f)},[f]),k=I.useCallback(A=>{const F=Number(A.target.value);p(F),d(0)},[]);return a(M,{children:x(O6,{width:u,pageSizes:t,rowdata:e,columnTitles:o,messagedatalength:l,style:{position:"relative"},children:[i&&a(F6,{children:i}),x("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(qn,{kind:"default",size:"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:h}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(A=>A.position==="left").map((A,F)=>a("div",{style:{marginLeft:"1px"},children:a(at,{onClick:A.onClick,kind:A.kind,size:"small",icon:A.icon,dimension:A.dimension,label:A.label,borderNone:!0})},F))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(A=>A.position==="right").map((A,F)=>a("div",{style:{marginRight:"1px"},children:a(at,{onClick:z=>{z.stopPropagation(),A.onClick&&A.onClick()},kind:A.kind,size:"small",icon:A.icon,label:A.label,dimension:A.dimension,borderNone:!0})},F))})]}),e&&e.length>0?x(M,{children:[x(Yc,{children:[a(Jc,{children:o.map((A,F)=>a(Uc,{children:a(Qc,{children:A})},F))}),C.map((A,F)=>a(V6,{children:Object.keys(A).map(z=>a(B6,{children:A[z]},z))},F))]}),x(M6,{children:[x("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(e1,{name:"select",onChange:k,children:t.map((A,F)=>a(qc,{value:A,children:A},F))}),x(t1,{children:[s+1," – ",Math.min(s+f,y.length)," de ",y.length," itens"]})]}),x($6,{children:[x("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(e1,{name:"select",value:E,onChange:S,children:Array.from({length:w},(A,F)=>a(qc,{value:F+1,children:F+1},F+1))}),x(t1,{children:["de ",w," páginas"]})]}),a(je,{align:"top",size:"small",label:"Pagina Anterior",width:"110px",children:a(Kc,{onClick:B,disabled:s===0,style:{borderLeft:"none",opacity:s===0?".5":"1",cursor:s===0?"not-allowed":"pointer"},children:L6})}),a(je,{align:"top-right",size:"small",label:"Proxima Pagina",width:"110px",children:a(Kc,{onClick:P,disabled:s+f>=y.length,style:{borderRight:"none",opacity:s+f>=y.length?".5":"1",cursor:s+f>=y.length?"not-allowed":"pointer"},children:G6})})]})]})]}):a(M,{children:x(Yc,{children:[a(Jc,{children:a(Uc,{children:a(Qc,{})})}),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:l||"Nenhum dado disponível."})})]})})]})})},N6=v.table`
|
|
2592
2593
|
border-collapse: collapse;
|
|
2593
2594
|
margin: 0;
|
|
2594
2595
|
padding: 0;
|
|
@@ -2784,7 +2785,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2784
2785
|
background: ${c.layer01};
|
|
2785
2786
|
flex-direction: column;
|
|
2786
2787
|
min-width: ${({width:e})=>e||"100%"};
|
|
2787
|
-
`,Q6=({rowData:e,pageSizes:t,buttons:n,label:i,search:r,columnTitles:o,messagedatalength:l,width:u,columsKeys:s,actions:d,headerAction:f})=>{const[p,g]=I.useState(0),[b,h]=I.useState(t[0]),[y,C]=I.useState([]),w=L=>{const O=L.target.value.toLocaleLowerCase(),D=e.filter(W=>o.some(Z=>{var G;const V=(G=String(W[typeof Z=="string"?Z:""]))==null?void 0:G.toLocaleLowerCase();return V==null?void 0:V.includes(O)}));C(D),g(0)},E=y.length>0?y:e,P=I.useMemo(()=>E.slice(p,p+b),[E,p,b]),B=I.useMemo(()=>Math.ceil(E.length/b),[E.length,b]),S=I.useMemo(()=>Math.floor(p/b)+1,[p,b]),k=I.useCallback(()=>{g(L=>{const O=L+b;return O>=E.length?L:O})},[b,E.length]),A=I.useCallback(()=>{g(L=>{const O=L-b;return O<0?0:O})},[b]),F=I.useCallback(L=>{const O=Number(L.target.value);g((O-1)*b)},[b]),z=I.useCallback(L=>{const O=Number(L.target.value);h(O),g(0)},[]);return a(M,{children:x(U6,{width:u,pageSizes:t,rowData:e,columnTitles:o,messagedatalength:l,style:{position:"relative"},children:[i&&a(Z6,{children:i}),x("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(qn,{kind:"default",size:"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:w}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(L=>L.position==="left").map((L,O)=>a("div",{style:{marginLeft:"1px"},children:a(at,{hasIconSvg:L.hasIconSvg,onClick:L.onClick,kind:L.kind,size:"small",icon:L.icon,label:L.label,borderNone:!0})},O))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(L=>L.position==="right").map((L,O)=>a("div",{style:{marginRight:"1px"},children:a(at,{hasIconSvg:L.hasIconSvg,onClick:D=>{L.onClick&&L.onClick(),D.stopPropagation(),D.preventDefault()},kind:L.kind,size:"small",icon:L.icon,label:L.label,borderNone:!0})},O))})]}),e&&e.length>0?x(M,{children:[(f==null?void 0:f.active)&&a("div",{style:{width:"100%",height:"38px",background:c.buttonPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",color:c.textOnColor},children:x(M,{children:[x("p",{style:{textAlign:"start",fontSize:"14px"},children:[a("span",{style:{margin:"0 5px 0 20px"},children:f==null?void 0:f.count}),"item selecionados"]}),a("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:d==null?void 0:d.map(L=>x(M,{children:[a(at,{fortable:!0,borderNone:!0,kind:"primary",size:"small",label:L.text,icon:L.icon,onClick:L.onClick}),L.feature&&a("div",{style:{height:"20px",width:"1px",background:"white"}})]}))})]})}),x(N6,{children:[x(H6,{children:[a(n1,{}),o.map((L,O)=>a(n1,{children:a(X6,{children:L})},O))]}),P.map((L,O)=>a(M,{children:a(W6,{children:s==null?void 0:s.map((D,W)=>a(R6,{children:typeof D=="string"?L[D]:D},W))},O)}))]}),x(z6,{children:[x("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(o1,{name:"select",onChange:z,children:t.map((L,O)=>a(i1,{value:L,children:L},O))}),x(a1,{children:[p+1," – ",Math.min(p+b,E.length)," de ",E.length," itens"]})]}),x(j6,{children:[x("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(o1,{name:"select",value:S,onChange:F,children:Array.from({length:B},(L,O)=>a(i1,{value:O+1,children:O+1},O+1))}),x(a1,{children:["de ",B," páginas"]})]}),a(je,{align:"top",size:"small",label:"Página Anterior",width:"110px",children:a(r1,{onClick:A,disabled:p===0,style:{borderLeft:"none",opacity:p===0?".5":"1",cursor:p===0?"not-allowed":"pointer"},children:J6})}),a(je,{align:"top-right",size:"small",label:"Próxima página",width:"110px",children:a(r1,{onClick:k,disabled:p+b>=E.length,style:{borderRight:"none",opacity:p+b>=E.length?".5":"1",cursor:p+b>=E.length?"not-allowed":"pointer"},children:Y6})})]})]})]}):a(_6,{children:l||"Nenhum item encontrado"})]})})},K6=v.pre`
|
|
2788
|
+
`,Q6=({rowData:e,pageSizes:t,buttons:n,label:i,search:r,columnTitles:o,messagedatalength:l,width:u,columsKeys:s,actions:d,headerAction:f})=>{const[p,g]=I.useState(0),[b,h]=I.useState(t[0]),[y,C]=I.useState([]),w=L=>{const O=L.target.value.toLocaleLowerCase(),D=e.filter(W=>o.some(Z=>{var G;const V=(G=String(W[typeof Z=="string"?Z:""]))==null?void 0:G.toLocaleLowerCase();return V==null?void 0:V.includes(O)}));C(D),g(0)},E=y.length>0?y:e,P=I.useMemo(()=>E.slice(p,p+b),[E,p,b]),B=I.useMemo(()=>Math.ceil(E.length/b),[E.length,b]),S=I.useMemo(()=>Math.floor(p/b)+1,[p,b]),k=I.useCallback(()=>{g(L=>{const O=L+b;return O>=E.length?L:O})},[b,E.length]),A=I.useCallback(()=>{g(L=>{const O=L-b;return O<0?0:O})},[b]),F=I.useCallback(L=>{const O=Number(L.target.value);g((O-1)*b)},[b]),z=I.useCallback(L=>{const O=Number(L.target.value);h(O),g(0)},[]);return a(M,{children:x(U6,{width:u,pageSizes:t,rowData:e,columnTitles:o,messagedatalength:l,style:{position:"relative"},children:[i&&a(Z6,{children:i}),x("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(qn,{kind:"default",size:"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:w}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(L=>L.position==="left").map((L,O)=>a("div",{style:{marginLeft:"1px"},children:a(at,{hasIconSvg:L.hasIconSvg,onClick:L.onClick,kind:L.kind,size:"small",icon:L.icon,label:L.label,dimension:L.dimension,borderNone:!0})},O))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(L=>L.position==="right").map((L,O)=>a("div",{style:{marginRight:"1px"},children:a(at,{hasIconSvg:L.hasIconSvg,onClick:D=>{L.onClick&&L.onClick(),D.stopPropagation(),D.preventDefault()},kind:L.kind,size:"small",icon:L.icon,label:L.label,dimension:L.dimension,borderNone:!0})},O))})]}),e&&e.length>0?x(M,{children:[(f==null?void 0:f.active)&&a("div",{style:{width:"100%",height:"38px",background:c.buttonPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",color:c.textOnColor},children:x(M,{children:[x("p",{style:{textAlign:"start",fontSize:"14px"},children:[a("span",{style:{margin:"0 5px 0 20px"},children:f==null?void 0:f.count}),"item selecionados"]}),a("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:d==null?void 0:d.map(L=>x(M,{children:[a(at,{fortable:!0,borderNone:!0,kind:"primary",size:"small",label:L.text,icon:L.icon,onClick:L.onClick}),L.feature&&a("div",{style:{height:"20px",width:"1px",background:"white"}})]}))})]})}),x(N6,{children:[x(H6,{children:[a(n1,{}),o.map((L,O)=>a(n1,{children:a(X6,{children:L})},O))]}),P.map((L,O)=>a(M,{children:a(W6,{children:s==null?void 0:s.map((D,W)=>a(R6,{children:typeof D=="string"?L[D]:D},W))},O)}))]}),x(z6,{children:[x("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(o1,{name:"select",onChange:z,children:t.map((L,O)=>a(i1,{value:L,children:L},O))}),x(a1,{children:[p+1," – ",Math.min(p+b,E.length)," de ",E.length," itens"]})]}),x(j6,{children:[x("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(o1,{name:"select",value:S,onChange:F,children:Array.from({length:B},(L,O)=>a(i1,{value:O+1,children:O+1},O+1))}),x(a1,{children:["de ",B," páginas"]})]}),a(je,{align:"top",size:"small",label:"Página Anterior",width:"110px",children:a(r1,{onClick:A,disabled:p===0,style:{borderLeft:"none",opacity:p===0?".5":"1",cursor:p===0?"not-allowed":"pointer"},children:J6})}),a(je,{align:"top-right",size:"small",label:"Próxima página",width:"110px",children:a(r1,{onClick:k,disabled:p+b>=E.length,style:{borderRight:"none",opacity:p+b>=E.length?".5":"1",cursor:p+b>=E.length?"not-allowed":"pointer"},children:Y6})})]})]})]}):a(_6,{children:l||"Nenhum item encontrado"})]})})},K6=v.pre`
|
|
2788
2789
|
background-color:${({background:e})=>e||"#282c34"} ;
|
|
2789
2790
|
padding: 5px 5px 5px 20px;
|
|
2790
2791
|
border-radius: 8px;
|
|
@@ -32,6 +32,7 @@ type ButtonTable = {
|
|
|
32
32
|
kind: "primary" | "secondary" | "tertiary" | "ghost" | "dangerPrimary" | "dangerTertiary" | "dangerGhost";
|
|
33
33
|
position?: "right" | "left";
|
|
34
34
|
hasIconSvg?: boolean;
|
|
35
|
+
dimension?: string;
|
|
35
36
|
};
|
|
36
37
|
export declare const Table: ({ rowData, pageSizes, buttons, label, search, columnTitles, messagedatalength, width, columsKeys, actions, headerAction }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
38
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAEV,MAAM,OAAO,CAAC;AAkBf,OAAO,2BAA2B,CAAC;AAQnC,KAAK,QAAQ,GAAG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AE,MAAM,CAAA;CACnB,CAAC;AAYF,eAAO,MAAM,KAAK,8HAYf,UAAU,4CAkTZ,CAAC"}
|
|
@@ -24,6 +24,7 @@ type ButtonTable = {
|
|
|
24
24
|
icon?: string;
|
|
25
25
|
kind: "primary" | "secondary" | "tertiary" | "ghost" | "dangerPrimary" | "dangerTertiary" | "dangerGhost";
|
|
26
26
|
position?: "right" | "left";
|
|
27
|
+
dimension?: string;
|
|
27
28
|
};
|
|
28
29
|
export declare const DataTable: ({ rowdata, pageSizes, buttons, label, search, columnTitles, messagedatalength, width }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableData/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACV,MAAM,OAAO,CAAC;AAiBf,OAAO,2BAA2B,CAAC;AASnC,KAAK,QAAQ,GAAG;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;CACjD,CAAA;AAGD,KAAK,UAAU,GAAG;IAChB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableData/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACV,MAAM,OAAO,CAAC;AAiBf,OAAO,2BAA2B,CAAC;AASnC,KAAK,QAAQ,GAAG;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;CACjD,CAAA;AAGD,KAAK,UAAU,GAAG;IAChB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,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;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAkBF,eAAO,MAAM,SAAS,2FASnB,UAAU,4CAsQZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableData/style.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AAInC,eAAO,MAAM,SAAS,sOAMrB,CAAC;AAEF,eAAO,MAAM,GAAG,uOAaf,CAAC;AAEF,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableData/style.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AAInC,eAAO,MAAM,SAAS,sOAMrB,CAAC;AAEF,eAAO,MAAM,GAAG,uOAaf,CAAC;AAEF,eAAO,MAAM,GAAG,mPASf,CAAC;AAGF,eAAO,MAAM,QAAQ,uOAiBpB,CAAC;AAEF,eAAO,MAAM,GAAG,uPAQf,CAAC;AAEF,eAAO,MAAM,UAAU,yOAYtB,CAAC;AAGF,eAAO,MAAM,aAAa,qOAYzB,CAAC;AAEF,eAAO,MAAM,UAAU,6NAWtB,CAAC;AACF,eAAO,MAAM,OAAO,6NAOnB,CAAC;AACF,eAAO,MAAM,cAAc,yOAW1B,CAAC;AACF,eAAO,MAAM,UAAU,yOAItB,CAAC;AACF,eAAO,MAAM,SAAS,yOAoBrB,CAAC;AACF,eAAO,MAAM,QAAQ,yOAUpB,CAAC;AAEF,eAAO,MAAM,cAAc,6NAkD1B,CAAC"}
|