@xyo-network/react-table 6.1.4 → 7.0.0

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.
@@ -1,91 +1,4 @@
1
- import * as _emotion_styled from '@emotion/styled';
2
- import * as _mui_system from '@mui/system';
3
- import * as _mui_material from '@mui/material';
4
- import { TableCellProps, TableProps, TableFooterProps } from '@mui/material';
5
- import * as react from 'react';
6
- import react__default, { PropsWithChildren, Dispatch, SetStateAction } from 'react';
7
- import * as _xylabs_react_shared from '@xylabs/react-shared';
8
- import { ContextExProviderProps, ContextExState } from '@xylabs/react-shared';
9
-
10
- interface TableCellExProps extends TableCellProps {
11
- noBgColor?: boolean;
12
- }
13
- declare const TableCellEx: _emotion_styled.StyledComponent<TableCellProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & TableCellExProps, {}, {}>;
14
-
15
- type TableExVariants = 'scrollable' | 'normal';
16
-
17
- interface TableExProps extends PropsWithChildren, TableProps {
18
- variant?: TableExVariants;
19
- }
20
- declare const TableExWithRef: react__default.FC<TableExProps>;
21
- declare const TableEx: react__default.FC<TableExProps>;
22
-
23
- interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
24
- variant?: TableExVariants;
25
- }
26
- declare const TableFooterEx: react__default.FC<TableFooterExProps>;
27
-
28
- declare const TableHeightContext: react.Context<({
29
- height?: string;
30
- rowHeight?: number;
31
- setRowHeight?: react.Dispatch<react.SetStateAction<number | undefined>>;
32
- setVisibleRows?: react.Dispatch<react.SetStateAction<number | undefined>>;
33
- visibleRows?: number;
34
- } & {
35
- provided: true;
36
- }) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.ProvidedContextExState<{
37
- height?: string;
38
- rowHeight?: number;
39
- setRowHeight?: react.Dispatch<react.SetStateAction<number | undefined>>;
40
- setVisibleRows?: react.Dispatch<react.SetStateAction<number | undefined>>;
41
- visibleRows?: number;
42
- }>, never> & {
43
- provided: false;
44
- }) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.NotProvidedContextExState<{
45
- height?: string;
46
- rowHeight?: number;
47
- setRowHeight?: react.Dispatch<react.SetStateAction<number | undefined>>;
48
- setVisibleRows?: react.Dispatch<react.SetStateAction<number | undefined>>;
49
- visibleRows?: number;
50
- }>, never> & {
51
- provided: false;
52
- })>;
53
-
54
- interface TableHeightProviderProps extends ContextExProviderProps, PropsWithChildren {
55
- /** @field Account for optional header and footer rows */
56
- additionalRows?: number;
57
- defaultVisibleRows?: number;
58
- heightFormat?: string;
59
- }
60
- declare const TableHeightProvider: react__default.FC<TableHeightProviderProps>;
61
-
62
- type TableHeightState = ContextExState<{
63
- height?: string;
64
- rowHeight?: number;
65
- setRowHeight?: Dispatch<SetStateAction<number | undefined>>;
66
- setVisibleRows?: Dispatch<SetStateAction<number | undefined>>;
67
- visibleRows?: number;
68
- }>;
69
-
70
- declare const useTableHeight: (required?: boolean) => Omit<{
71
- height?: string;
72
- rowHeight?: number;
73
- setRowHeight?: react.Dispatch<react.SetStateAction<number | undefined>>;
74
- setVisibleRows?: react.Dispatch<react.SetStateAction<number | undefined>>;
75
- visibleRows?: number;
76
- } & {
77
- provided: true;
78
- }, "provided"> | Omit<_xylabs_react_shared.NotProvidedContextExState<TableHeightState>, "provided">;
79
-
80
- interface TableHeadCell {
81
- align?: 'left' | 'right' | 'center';
82
- disablePadding: boolean;
83
- id: string;
84
- label: string;
85
- numeric: boolean;
86
- showOnMobile: boolean;
87
- width?: TableCellProps['width'];
88
- }
89
-
90
- export { TableCellEx, TableEx, TableExWithRef, TableFooterEx, TableHeightContext, TableHeightProvider, useTableHeight };
91
- export type { TableCellExProps, TableExProps, TableExVariants, TableFooterExProps, TableHeadCell, TableHeightProviderProps, TableHeightState };
1
+ export * from './components/index.ts';
2
+ export * from './context/index.ts';
3
+ export * from './types/index.ts';
4
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-table",
3
- "version": "6.1.4",
3
+ "version": "7.0.0",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -38,21 +38,25 @@
38
38
  },
39
39
  "module": "dist/browser/index.mjs",
40
40
  "types": "dist/browser/index.d.ts",
41
+ "files": [
42
+ "dist",
43
+ "src"
44
+ ],
41
45
  "dependencies": {
42
- "@xylabs/react-hooks": "^6.3.13",
43
- "@xylabs/react-shared": "^6.3.13"
46
+ "@xylabs/react-hooks": "^7.0.0",
47
+ "@xylabs/react-shared": "^7.0.0"
44
48
  },
45
49
  "devDependencies": {
46
50
  "@mui/icons-material": "^7.2.0",
47
51
  "@mui/material": "^7.2.0",
48
52
  "@storybook/react-vite": "^9.0.18",
49
- "@types/react": "^19.1.8",
50
- "@xylabs/ts-scripts-yarn3": "next",
51
- "@xylabs/tsconfig-react": "next",
52
- "@xyo-network/react-storybook": "^6.1.4",
53
- "react": "^19.1.0",
54
- "react-dom": "^19.1.0",
55
- "react-router-dom": "^7.7.0",
53
+ "@types/react": "^19.1.9",
54
+ "@xylabs/ts-scripts-yarn3": "^7.0.2",
55
+ "@xylabs/tsconfig-react": "^7.0.2",
56
+ "@xyo-network/react-storybook": "^7.0.0",
57
+ "react": "^19.1.1",
58
+ "react-dom": "^19.1.1",
59
+ "react-router-dom": "^7.7.1",
56
60
  "storybook": "^9.0.18",
57
61
  "typescript": "^5.8.3"
58
62
  },
package/src/global.d.ts CHANGED
@@ -1 +1 @@
1
- import type {} from '@mui/material/themeCssVarsAugmentation'
1
+ import '@mui/material/themeCssVarsAugmentation'
package/typedoc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "$schema": "https://typedoc.org/schema.json",
3
- "entryPoints": ["src/index.ts"],
4
- "tsconfig": "./tsconfig.typedoc.json"
5
- }
package/xy.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
- const config: XyTsupConfig = {
3
- compile: {
4
- browser: { src: true },
5
- node: {},
6
- neutral: {},
7
- },
8
- }
9
-
10
- export default config