@xyo-network/react-payload-table 7.5.8 → 7.5.11

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.
Files changed (31) hide show
  1. package/dist/browser/components/Table/TableRowNoData.d.ts.map +1 -1
  2. package/dist/browser/index.mjs +438 -460
  3. package/dist/browser/index.mjs.map +1 -1
  4. package/package.json +182 -44
  5. package/src/components/DynamicTable/DynamicTable.stories.tsx +0 -72
  6. package/src/components/DynamicTable/DynamicTableRow.tsx +0 -134
  7. package/src/components/DynamicTable/PayloadDynamicTableColumnConfig.ts +0 -98
  8. package/src/components/DynamicTable/Table.tsx +0 -194
  9. package/src/components/DynamicTable/index.ts +0 -3
  10. package/src/components/Table/FetchMoreTable.stories.tsx +0 -100
  11. package/src/components/Table/PayloadTableColumnConfig.ts +0 -22
  12. package/src/components/Table/Table.stories.tsx +0 -98
  13. package/src/components/Table/Table.tsx +0 -139
  14. package/src/components/Table/TableBody.tsx +0 -64
  15. package/src/components/Table/TableFooter.tsx +0 -44
  16. package/src/components/Table/TableHead.tsx +0 -31
  17. package/src/components/Table/TablePagination.tsx +0 -88
  18. package/src/components/Table/TableRow.tsx +0 -135
  19. package/src/components/Table/TableRowNoData.tsx +0 -39
  20. package/src/components/Table/index.ts +0 -7
  21. package/src/components/Table/lib/TableColumns.ts +0 -12
  22. package/src/components/Table/lib/index.ts +0 -1
  23. package/src/components/Table/types/PaginationEventNouns.ts +0 -1
  24. package/src/components/Table/types/PayloadTableBodyProps.ts +0 -21
  25. package/src/components/Table/types/PayloadTableFooterProps.ts +0 -13
  26. package/src/components/Table/types/PayloadTableHeadProps.ts +0 -7
  27. package/src/components/Table/types/index.ts +0 -4
  28. package/src/components/index.ts +0 -2
  29. package/src/components/lib/index.ts +0 -3
  30. package/src/global.d.ts +0 -1
  31. package/src/index.ts +0 -1
@@ -1,21 +0,0 @@
1
- import type { TableBodyProps, TableRowProps } from '@mui/material'
2
- import type { Hash } from '@xylabs/sdk-js'
3
- import type { Payload } from '@xyo-network/payload-model'
4
- import type { ComponentType, PropsWithChildren } from 'react'
5
-
6
- import type { PayloadTableColumnSlug } from '../PayloadTableColumnConfig.ts'
7
-
8
- export interface PayloadTableBodyProps<TPayload extends Payload = Payload> extends TableBodyProps, PropsWithChildren {
9
- NoResultRowComponent?: ComponentType<TableRowProps>
10
- /** @deprecated - archives are no longer used */
11
- archive?: string
12
- clickableFields?: PayloadTableColumnSlug[]
13
- emptyRows?: number
14
- /** @deprecated - use events for link building */
15
- exploreDomain?: string
16
- maxSchemaDepth?: number
17
- noResults?: boolean
18
- onHashClick?: (value: Hash) => void
19
- onRowClick?: (value: Payload) => void
20
- payloads?: TPayload[]
21
- }
@@ -1,13 +0,0 @@
1
- import type { TableExVariants } from '@xyo-network/react-table'
2
- import type { ChangeEvent, MouseEvent } from 'react'
3
-
4
- export interface PayloadTableFooterProps {
5
- count?: number
6
- fetchMorePayloads?: () => void
7
- handleChangePage?: (event: MouseEvent<HTMLButtonElement> | null, newPage: number) => void
8
- handleChangeRowsPerPage?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void
9
- loading?: boolean
10
- page?: number
11
- rowsPerPage?: number
12
- variant?: TableExVariants
13
- }
@@ -1,7 +0,0 @@
1
- import type { TableHeadProps } from '@mui/material'
2
-
3
- import type { TableColumnConfig } from '../lib/index.ts'
4
-
5
- export interface PayloadTableHeadProps<TSlugs extends string = string> extends TableHeadProps {
6
- columns?: TableColumnConfig<TSlugs>
7
- }
@@ -1,4 +0,0 @@
1
- export * from './PaginationEventNouns.ts'
2
- export * from './PayloadTableBodyProps.ts'
3
- export * from './PayloadTableFooterProps.ts'
4
- export * from './PayloadTableHeadProps.ts'
@@ -1,2 +0,0 @@
1
- export * from './DynamicTable/index.ts'
2
- export * from './Table/index.ts'
@@ -1,3 +0,0 @@
1
- import type { TableCellProps } from '@mui/material'
2
-
3
- export type TableCellRenderer = (props: TableCellProps) => React.ReactNode
package/src/global.d.ts DELETED
@@ -1 +0,0 @@
1
- import '@mui/material/themeCssVarsAugmentation'
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/index.ts'