@bsol-oss/react-datatable5 7.3.0 → 7.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/dist/index.d.ts
CHANGED
|
@@ -389,13 +389,13 @@ declare const widthSanityCheck: <K extends unknown>(widthList: number[], ignoreL
|
|
|
389
389
|
declare const getColumns: <TData extends unknown>({ schema, ignore, width, meta, defaultWidth, }: GetColumnsConfigs<TData>) => ColumnDef<TData>[];
|
|
390
390
|
|
|
391
391
|
interface EmptyStateProps {
|
|
392
|
-
title
|
|
393
|
-
description
|
|
392
|
+
title?: string;
|
|
393
|
+
description?: string;
|
|
394
394
|
}
|
|
395
395
|
declare const EmptyState: ({ title, description, }: EmptyStateProps) => react_jsx_runtime.JSX.Element;
|
|
396
396
|
|
|
397
397
|
interface ErrorAlertProps {
|
|
398
|
-
showMessage
|
|
398
|
+
showMessage?: boolean;
|
|
399
399
|
}
|
|
400
400
|
declare const ErrorAlert: ({ showMessage }: ErrorAlertProps) => react_jsx_runtime.JSX.Element;
|
|
401
401
|
|
package/dist/index.js
CHANGED
|
@@ -1506,7 +1506,7 @@ const EmptyState = ({ title = "No records", description = "Add a new events to g
|
|
|
1506
1506
|
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: (data ?? { count: 0 }).count <= 0 && (jsxRuntime.jsx(react.EmptyState.Root, { children: jsxRuntime.jsxs(react.EmptyState.Content, { children: [jsxRuntime.jsx(react.EmptyState.Indicator, { children: jsxRuntime.jsx(hi.HiColorSwatch, {}) }), jsxRuntime.jsxs(react.VStack, { textAlign: "center", children: [jsxRuntime.jsx(react.EmptyState.Title, { children: title }), jsxRuntime.jsx(react.EmptyState.Description, { children: description })] })] }) })) }));
|
|
1507
1507
|
};
|
|
1508
1508
|
|
|
1509
|
-
const ErrorAlert = ({ showMessage }) => {
|
|
1509
|
+
const ErrorAlert = ({ showMessage = true }) => {
|
|
1510
1510
|
const { query } = useDataTableContext();
|
|
1511
1511
|
const { isError, error } = query;
|
|
1512
1512
|
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: isError && (jsxRuntime.jsxs(react.Alert.Root, { status: "error", children: [jsxRuntime.jsx(react.Alert.Indicator, {}), jsxRuntime.jsxs(react.Alert.Content, { children: [jsxRuntime.jsx(react.Alert.Title, { children: error.name }), showMessage && (jsxRuntime.jsx(react.Alert.Description, { children: error.message }))] })] })) }));
|
package/dist/index.mjs
CHANGED
|
@@ -1486,7 +1486,7 @@ const EmptyState = ({ title = "No records", description = "Add a new events to g
|
|
|
1486
1486
|
return (jsx(Fragment, { children: (data ?? { count: 0 }).count <= 0 && (jsx(EmptyState$2.Root, { children: jsxs(EmptyState$2.Content, { children: [jsx(EmptyState$2.Indicator, { children: jsx(HiColorSwatch, {}) }), jsxs(VStack, { textAlign: "center", children: [jsx(EmptyState$2.Title, { children: title }), jsx(EmptyState$2.Description, { children: description })] })] }) })) }));
|
|
1487
1487
|
};
|
|
1488
1488
|
|
|
1489
|
-
const ErrorAlert = ({ showMessage }) => {
|
|
1489
|
+
const ErrorAlert = ({ showMessage = true }) => {
|
|
1490
1490
|
const { query } = useDataTableContext();
|
|
1491
1491
|
const { isError, error } = query;
|
|
1492
1492
|
return (jsx(Fragment, { children: isError && (jsxs(Alert.Root, { status: "error", children: [jsx(Alert.Indicator, {}), jsxs(Alert.Content, { children: [jsx(Alert.Title, { children: error.name }), showMessage && (jsx(Alert.Description, { children: error.message }))] })] })) }));
|