norma-library 0.6.91 → 0.6.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "norma-library",
3
- "version": "0.6.91",
3
+ "version": "0.6.92",
4
4
  "private": false,
5
5
  "description": "Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.",
6
6
  "scripts": {
@@ -289,7 +289,7 @@ const UncontrolledTable = (props: UncontrolledTableProps) => {
289
289
  <Pagination
290
290
  pagination={pagination}
291
291
  count={totalPages}
292
- onChangePage={(page: number) => onChangePage({ ...pagination, pageIndex: page })}
292
+ onChangePage={(page: number) => onChangePage?.({ ...pagination, pageIndex: page })}
293
293
  />
294
294
  )}
295
295
  </S.Container>
@@ -2,11 +2,11 @@ import { ColumnDef } from '@tanstack/react-table'
2
2
  import { JSX } from 'react'
3
3
 
4
4
  type Labels = {
5
- orderAsc: string
6
- orderDesc: string
7
- filter: string
8
- clearFilter: string
9
- columns: string
5
+ orderAsc?: string
6
+ orderDesc?: string
7
+ filter?: string
8
+ clearFilter?: string
9
+ columns?: string
10
10
  }
11
11
 
12
12
  interface Pagination {
@@ -53,7 +53,7 @@ export interface UncontrolledTableProps {
53
53
  onMouseOver?: () => void
54
54
  onMouseOut?: () => void
55
55
  onColumnVisibilityChange?: (column: string, value: boolean) => void
56
- onChangePage: (pagination: Pagination) => void
56
+ onChangePage?: (pagination: Pagination) => void
57
57
  onFilterClick?: (column: string) => void
58
58
  onSortClick?: (column: string, direction: string) => void
59
59
  onDragEnd?: (data: any[]) => void