@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: string;
393
- description: string;
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: boolean;
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 }))] })] })) }));
@@ -1,5 +1,5 @@
1
1
  export interface EmptyStateProps {
2
- title: string;
3
- description: string;
2
+ title?: string;
3
+ description?: string;
4
4
  }
5
5
  export declare const EmptyState: ({ title, description, }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export interface ErrorAlertProps {
2
- showMessage: boolean;
2
+ showMessage?: boolean;
3
3
  }
4
4
  export declare const ErrorAlert: ({ showMessage }: ErrorAlertProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsol-oss/react-datatable5",
3
- "version": "7.3.0",
3
+ "version": "7.3.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",