@max-ts/kit 1.3.0 → 1.3.1
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/lib/components/DataGrid/DataGrid.d.ts +1 -2
- package/lib/components/DataGrid/DataGrid.d.ts.map +1 -1
- package/lib/components/DataGrid/Header/Header.d.ts +1 -2
- package/lib/components/DataGrid/Header/Header.d.ts.map +1 -1
- package/lib/components/DataGrid/Header/styles.css.d.ts +1 -1
- package/lib/components/DataGrid/Header/styles.css.d.ts.map +1 -1
- package/lib/index.mjs +5 -8
- package/lib/stories/DataGrid.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ export type DataGridProps<TRow> = {
|
|
|
11
11
|
isLoading?: boolean;
|
|
12
12
|
isDisabled?: boolean;
|
|
13
13
|
isError?: boolean;
|
|
14
|
-
stickyHeader?: boolean;
|
|
15
14
|
emptyState?: DataGridState;
|
|
16
15
|
errorState?: DataGridState;
|
|
17
16
|
onSelectRow?: (row: TRow[]) => void;
|
|
@@ -20,5 +19,5 @@ export type DataGridProps<TRow> = {
|
|
|
20
19
|
title?: string;
|
|
21
20
|
footer?: ReactNode;
|
|
22
21
|
};
|
|
23
|
-
export declare function DataGrid<TRow>({ rows, columns, height, className, rowHeight, headerHeight, keyId, onRowClick, isLoading, isDisabled, isError, emptyState, errorState, footer, title,
|
|
22
|
+
export declare function DataGrid<TRow>({ rows, columns, height, className, rowHeight, headerHeight, keyId, onRowClick, isLoading, isDisabled, isError, emptyState, errorState, footer, title, onRetry, }: DataGridProps<TRow>): import("react").JSX.Element;
|
|
24
23
|
//# sourceMappingURL=DataGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../../src/components/DataGrid/DataGrid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAatD,OAAO,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Aa,CAAC;IAC3B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,EAC9B,IAAI,EACJ,OAAO,EACP,MAAe,EACf,SAAS,EACT,SAAsB,EACtB,YAAyB,EACzB,KAAK,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,OAAO,EACP,UAAU,EACV,UAAU,EACV,MAAM,EACN,KAAK,EACL,OAAO,GACP,EAAE,aAAa,CAAC,IAAI,CAAC,+BAqCrB"}
|
|
@@ -3,8 +3,7 @@ import type { DataGridColumn } from '../types';
|
|
|
3
3
|
type HeaderProps<TData> = {
|
|
4
4
|
columns: DataGridColumn<TData>[];
|
|
5
5
|
height: CSSProperties['height'];
|
|
6
|
-
sticky?: boolean;
|
|
7
6
|
};
|
|
8
|
-
export declare function Header<TData>({ columns, height
|
|
7
|
+
export declare function Header<TData>({ columns, height }: HeaderProps<TData>): import("react").JSX.Element;
|
|
9
8
|
export {};
|
|
10
9
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/Header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,KAAK,WAAW,CAAC,KAAK,IAAI;IACzB,OAAO,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;IACjC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/Header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,KAAK,WAAW,CAAC,KAAK,IAAI;IACzB,OAAO,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;IACjC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;CAChC,CAAC;AAEF,wBAAgB,MAAM,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,KAAK,CAAC,+BAepE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const headerRow: string;
|
|
2
2
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/Header/styles.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/Header/styles.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QAIpB,CAAC"}
|
package/lib/index.mjs
CHANGED
|
@@ -2014,13 +2014,11 @@ function HeaderCell({ column, height, width }) {
|
|
|
2014
2014
|
children: column.renderHeaderCell?.(column) || column.title
|
|
2015
2015
|
});
|
|
2016
2016
|
}
|
|
2017
|
-
var
|
|
2018
|
-
function Header_Header({ columns, height
|
|
2017
|
+
var headerRow = 'style__fkgoub0';
|
|
2018
|
+
function Header_Header({ columns, height }) {
|
|
2019
2019
|
return /*#__PURE__*/ jsx("thead", {
|
|
2020
2020
|
children: /*#__PURE__*/ jsx("tr", {
|
|
2021
|
-
className: clsx(
|
|
2022
|
-
[stickyClass]: sticky
|
|
2023
|
-
}),
|
|
2021
|
+
className: clsx(headerRow),
|
|
2024
2022
|
children: columns.map((col)=>/*#__PURE__*/ jsx(HeaderCell, {
|
|
2025
2023
|
column: col,
|
|
2026
2024
|
height: height,
|
|
@@ -2035,7 +2033,7 @@ var fullHeight = 'style__1gqvluf2';
|
|
|
2035
2033
|
var styles_css_loading = 'style__1gqvluf4';
|
|
2036
2034
|
var table = 'style__1gqvluf1';
|
|
2037
2035
|
var titleClass = 'style__1gqvluf5';
|
|
2038
|
-
function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, headerHeight = 40, keyId, onRowClick, isLoading, isDisabled, isError, emptyState, errorState, footer, title,
|
|
2036
|
+
function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, headerHeight = 40, keyId, onRowClick, isLoading, isDisabled, isError, emptyState, errorState, footer, title, onRetry }) {
|
|
2039
2037
|
const isFullHeight = isLoading || isError || 0 === rows.length;
|
|
2040
2038
|
return /*#__PURE__*/ jsxs("div", {
|
|
2041
2039
|
"data-slot": "data-grid",
|
|
@@ -2057,8 +2055,7 @@ function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, h
|
|
|
2057
2055
|
}),
|
|
2058
2056
|
/*#__PURE__*/ jsx(Header_Header, {
|
|
2059
2057
|
columns: columns,
|
|
2060
|
-
height: headerHeight
|
|
2061
|
-
sticky: stickyHeader
|
|
2058
|
+
height: headerHeight
|
|
2062
2059
|
}),
|
|
2063
2060
|
/*#__PURE__*/ jsx(Body, {
|
|
2064
2061
|
rows: rows,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataGrid.stories.d.ts","sourceRoot":"","sources":["../../src/stories/DataGrid.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EACN,QAAQ,EAMR,MAAM,cAAc,CAAC;;;;;;;;;AAGtB,wBAOkC;AA6JlC,eAAO,MAAM,WAAW,mCAMvB,CAAC;AAEF,eAAO,MAAM,WAAW,mCA6BvB,CAAC;AAEF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"DataGrid.stories.d.ts","sourceRoot":"","sources":["../../src/stories/DataGrid.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EACN,QAAQ,EAMR,MAAM,cAAc,CAAC;;;;;;;;;AAGtB,wBAOkC;AA6JlC,eAAO,MAAM,WAAW,mCAMvB,CAAC;AAEF,eAAO,MAAM,WAAW,mCA6BvB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAmDvB,CAAC;AAEF,eAAO,MAAM,OAAO,mCAEnB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAEtB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAEtB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAsB1B,CAAC"}
|