sodtrack-web-ui 0.9.3 → 0.9.5

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/button.d.mts CHANGED
@@ -8,7 +8,7 @@ type ButtonProps = {
8
8
  } & React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & VariantProps<typeof button>;
9
9
  declare const Button: FC<ButtonProps>;
10
10
  declare const button: (props?: ({
11
- size?: "small" | "large" | "medium" | undefined;
11
+ size?: "large" | "medium" | "small" | undefined;
12
12
  variant?: "link" | "contained" | "outlined" | "ghost" | "standard" | undefined;
13
13
  loading?: boolean | undefined;
14
14
  } & ({
@@ -3,7 +3,7 @@ import { FC, HTMLAttributes } from 'react';
3
3
 
4
4
  declare const chipStatus: (props?: ({
5
5
  variant?: "success" | "info" | "warning" | "error" | undefined;
6
- size?: "xs" | "sm" | "md" | undefined;
6
+ size?: "sm" | "md" | "xs" | undefined;
7
7
  } & ({
8
8
  class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
9
9
  [x: string]: any;
@@ -1,9 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default, { HTMLAttributes } from 'react';
3
- import { ColumnDef, OnChangeFn, PaginationState } from '@tanstack/react-table';
3
+ import { ColumnDef as ColumnDef$1, PaginationState as PaginationState$1, OnChangeFn } from '@tanstack/react-table';
4
4
 
5
- interface DataTableProps<TData, TValue> extends HTMLAttributes<HTMLDivElement> {
6
- columns: ColumnDef<TData, TValue>[];
5
+ type ColumnDef<TData> = ColumnDef$1<TData>;
6
+ type PaginationState = PaginationState$1;
7
+ interface DataTableProps<TData> extends HTMLAttributes<HTMLDivElement> {
8
+ columns: ColumnDef<TData>[];
7
9
  data: TData[];
8
10
  rowsCount?: number;
9
11
  pagination?: {
@@ -19,6 +21,6 @@ interface DataTableProps<TData, TValue> extends HTMLAttributes<HTMLDivElement> {
19
21
  rowsPerPageText?: string;
20
22
  ofText?: string;
21
23
  }
22
- declare function DataTable<TData, TValue>({ columns, data, rowsCount, pagination, onPaginationChange, noResults, rowsPerPageText, ofText, className, ...props }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
24
+ declare function DataTable<TData>({ columns, data, rowsCount, pagination, onPaginationChange, noResults, rowsPerPageText, ofText, className, ...props }: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
23
25
 
24
- export { DataTable, type DataTableProps, DataTable as default };
26
+ export { type ColumnDef, DataTable, type DataTableProps, type PaginationState, DataTable as default };
@@ -6,7 +6,7 @@ type IconButtonProps = {
6
6
  } & VariantProps<typeof iconButton> & React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
7
7
  declare const iconButton: (props?: ({
8
8
  variant?: "contained" | "outlined" | "ghost" | "standard" | undefined;
9
- size?: "small" | "large" | "medium" | undefined;
9
+ size?: "large" | "medium" | "small" | undefined;
10
10
  } & ({
11
11
  class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
12
12
  [x: string]: any;
package/dist/index.d.mts CHANGED
@@ -8,7 +8,7 @@ export { Spinner } from './spinner.mjs';
8
8
  export { ChipForm } from './chip-form.mjs';
9
9
  export { ChipStatus } from './chip-status.mjs';
10
10
  export { ScrollArea, ScrollBar } from './scrollarea.mjs';
11
- export { default as DataTable, DataTableProps } from './data-table.mjs';
11
+ export { ColumnDef, default as DataTable, DataTableProps, PaginationState } from './data-table.mjs';
12
12
  import 'react';
13
13
  import 'cva';
14
14
  import '@radix-ui/react-tooltip';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sodtrack-web-ui",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "description": "UI components for Sodtrack Web",
5
5
  "exports": {
6
6
  "./dist/index.css": "./dist/index.css",