prosperita-dumbo-react 1.2.27 → 1.2.28

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.
@@ -15080,6 +15080,7 @@ const l3 = b.div`
15080
15080
  label: h.label,
15081
15081
  width: h.width,
15082
15082
  dimension: h.dimension,
15083
+ disabled: h.disabled,
15083
15084
  borderNone: !0
15084
15085
  }
15085
15086
  ) }, v)) }),
@@ -15095,6 +15096,7 @@ const l3 = b.div`
15095
15096
  label: h.label,
15096
15097
  width: h.width,
15097
15098
  dimension: h.dimension,
15099
+ disabled: h.disabled,
15098
15100
  borderNone: !0
15099
15101
  }
15100
15102
  ) }, v)) })
@@ -2807,7 +2807,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2807
2807
  }
2808
2808
  border-radius:${({radius:e})=>e?"15px 15px 0px 0px":"0"};
2809
2809
  overflow: hidden;
2810
- `,K6=({rowData:e,buttons:t,label:n,search:i,columnTitles:r,messagedatalength:a,width:l,sizeSearch:u,rowSizes:s,radius:d,footer:f})=>{const[p,g]=I.useState([]),m=h=>{const v=h.target.value.toLocaleLowerCase(),x=e.filter(S=>r.some(T=>{var A;const P=(A=String(S[T]))==null?void 0:A.toLocaleLowerCase();return P==null?void 0:P.includes(v)}));g(x)},w=p.length>0?p:e;return o($,{children:C(Q6,{width:l,rowData:e,radius:d,columnTitles:r,messagedatalength:a,style:{position:"relative"},children:[n&&o(J6,{children:n}),C("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[i&&o(pn,{kind:"default",size:u||"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:m}),o("div",{style:{display:"flex",alignItems:"center"},children:t==null?void 0:t.filter(h=>h.position==="left").map((h,v)=>o("div",{style:{marginLeft:"1px"},children:o(De,{onClick:h.onClick,kind:h.kind,size:h.size||"small",icon:h.icon,label:h.label,width:h.width,dimension:h.dimension,borderNone:!0})},v))}),o("div",{style:{display:"flex",alignItems:"center"},children:t==null?void 0:t.filter(h=>h.position==="right").map((h,v)=>o("div",{style:{marginRight:"1px"},children:o(De,{onClick:x=>{x.stopPropagation(),h.onClick&&h.onClick()},kind:h.kind,size:h.size||"small",icon:h.icon,label:h.label,width:h.width,dimension:h.dimension,borderNone:!0})},v))})]}),e&&e.length>0?C($,{children:[C(e1,{children:[o(t1,{children:r.map((h,v)=>o(n1,{children:o(r1,{children:h})},v))}),w.map((h,v)=>o(Y6,{children:Object.keys(h).map(x=>o(_6,{rowSizes:s,columnTitles:r,rowData:e,children:h[x]},x))},v))]}),f&&o(U6,{radius:d,bg:f.bg,ht:f.ht,rowData:e,columnTitles:r,children:f.element})]}):o($,{children:C(e1,{children:[o(t1,{children:o(n1,{children:o(r1,{})})}),o("div",{style:{height:"350px",width:"100%"},children:o("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:a||"Nenhum dado disponível."})})]})})]})})},q6=b.table`
2810
+ `,K6=({rowData:e,buttons:t,label:n,search:i,columnTitles:r,messagedatalength:a,width:l,sizeSearch:u,rowSizes:s,radius:d,footer:f})=>{const[p,g]=I.useState([]),m=h=>{const v=h.target.value.toLocaleLowerCase(),x=e.filter(S=>r.some(T=>{var A;const P=(A=String(S[T]))==null?void 0:A.toLocaleLowerCase();return P==null?void 0:P.includes(v)}));g(x)},w=p.length>0?p:e;return o($,{children:C(Q6,{width:l,rowData:e,radius:d,columnTitles:r,messagedatalength:a,style:{position:"relative"},children:[n&&o(J6,{children:n}),C("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[i&&o(pn,{kind:"default",size:u||"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:m}),o("div",{style:{display:"flex",alignItems:"center"},children:t==null?void 0:t.filter(h=>h.position==="left").map((h,v)=>o("div",{style:{marginLeft:"1px"},children:o(De,{onClick:h.onClick,kind:h.kind,size:h.size||"small",icon:h.icon,label:h.label,width:h.width,dimension:h.dimension,disabled:h.disabled,borderNone:!0})},v))}),o("div",{style:{display:"flex",alignItems:"center"},children:t==null?void 0:t.filter(h=>h.position==="right").map((h,v)=>o("div",{style:{marginRight:"1px"},children:o(De,{onClick:x=>{x.stopPropagation(),h.onClick&&h.onClick()},kind:h.kind,size:h.size||"small",icon:h.icon,label:h.label,width:h.width,dimension:h.dimension,disabled:h.disabled,borderNone:!0})},v))})]}),e&&e.length>0?C($,{children:[C(e1,{children:[o(t1,{children:r.map((h,v)=>o(n1,{children:o(r1,{children:h})},v))}),w.map((h,v)=>o(Y6,{children:Object.keys(h).map(x=>o(_6,{rowSizes:s,columnTitles:r,rowData:e,children:h[x]},x))},v))]}),f&&o(U6,{radius:d,bg:f.bg,ht:f.ht,rowData:e,columnTitles:r,children:f.element})]}):o($,{children:C(e1,{children:[o(t1,{children:o(n1,{children:o(r1,{})})}),o("div",{style:{height:"350px",width:"100%"},children:o("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:a||"Nenhum dado disponível."})})]})})]})})},q6=b.table`
2811
2811
  border-collapse: collapse;
2812
2812
  margin: 0;
2813
2813
  padding: 0;
@@ -36,6 +36,7 @@ type ButtonTable = {
36
36
  width?: string;
37
37
  dimension?: string;
38
38
  size?: "small" | "large" | "medium" | "extraLarge" | "twoXLarge" | "expressive";
39
+ disabled?: boolean;
39
40
  };
40
41
  export declare const Table: ({ rowData, buttons, label, search, columnTitles, messagedatalength, width, sizeSearch, rowSizes, radius, footer, }: TableProps) => import("react/jsx-runtime").JSX.Element;
41
42
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Table/index.tsx"],"names":[],"mappings":"AAAA,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,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,KAAK,WAAW,GAAG;IACf,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,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,CAAA;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAmBF,eAAO,MAAM,KAAK,uHAYf,UAAU,4CAgJZ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosperita-dumbo-react",
3
- "version": "1.2.27",
3
+ "version": "1.2.28",
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",