odin-system 0.9.0 → 0.9.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.
Files changed (53) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/components/TableExample.d.ts +2 -0
  3. package/dist/components/TableExample.d.ts.map +1 -0
  4. package/dist/components/icons/ChevronDown.d.ts +7 -0
  5. package/dist/components/icons/ChevronDown.d.ts.map +1 -0
  6. package/dist/components/icons/FilterAlt.d.ts +5 -0
  7. package/dist/components/icons/FilterAlt.d.ts.map +1 -0
  8. package/dist/components/icons/KeyboardDoubleArrow.d.ts +7 -0
  9. package/dist/components/icons/KeyboardDoubleArrow.d.ts.map +1 -0
  10. package/dist/components/icons/SwapVert.d.ts +5 -0
  11. package/dist/components/icons/SwapVert.d.ts.map +1 -0
  12. package/dist/components/icons/UnfoldMore.d.ts +4 -0
  13. package/dist/components/icons/UnfoldMore.d.ts.map +1 -0
  14. package/dist/components/ui/data-table/index.d.ts +15 -0
  15. package/dist/components/ui/data-table/index.d.ts.map +1 -0
  16. package/dist/components/ui/table/index.d.ts +11 -0
  17. package/dist/components/ui/table/index.d.ts.map +1 -0
  18. package/dist/components/ui/table-gds/components/column-action-button/index.d.ts +2 -0
  19. package/dist/components/ui/table-gds/components/column-action-button/index.d.ts.map +1 -0
  20. package/dist/components/ui/table-gds/components/table-data/index.d.ts +3 -0
  21. package/dist/components/ui/table-gds/components/table-data/index.d.ts.map +1 -0
  22. package/dist/components/ui/table-gds/components/table-empty/index.d.ts +3 -0
  23. package/dist/components/ui/table-gds/components/table-empty/index.d.ts.map +1 -0
  24. package/dist/components/ui/table-gds/components/table-filters/index.d.ts +7 -0
  25. package/dist/components/ui/table-gds/components/table-filters/index.d.ts.map +1 -0
  26. package/dist/components/ui/table-gds/components/table-footer/index.d.ts +6 -0
  27. package/dist/components/ui/table-gds/components/table-footer/index.d.ts.map +1 -0
  28. package/dist/components/ui/table-gds/components/table-header/index.d.ts +3 -0
  29. package/dist/components/ui/table-gds/components/table-header/index.d.ts.map +1 -0
  30. package/dist/components/ui/table-gds/components/table-loading/index.d.ts +2 -0
  31. package/dist/components/ui/table-gds/components/table-loading/index.d.ts.map +1 -0
  32. package/dist/components/ui/table-gds/components/table-menu/columns-filter.d.ts +5 -0
  33. package/dist/components/ui/table-gds/components/table-menu/columns-filter.d.ts.map +1 -0
  34. package/dist/components/ui/table-gds/components/table-menu/index.d.ts +4 -0
  35. package/dist/components/ui/table-gds/components/table-menu/index.d.ts.map +1 -0
  36. package/dist/components/ui/table-gds/components/table-pagination/index.d.ts +7 -0
  37. package/dist/components/ui/table-gds/components/table-pagination/index.d.ts.map +1 -0
  38. package/dist/components/ui/table-gds/components/table-pagination/pagination-button.d.ts +7 -0
  39. package/dist/components/ui/table-gds/components/table-pagination/pagination-button.d.ts.map +1 -0
  40. package/dist/components/ui/table-gds/hooks/useTableConfig.d.ts +29 -0
  41. package/dist/components/ui/table-gds/hooks/useTableConfig.d.ts.map +1 -0
  42. package/dist/components/ui/table-gds/index.d.ts +4 -0
  43. package/dist/components/ui/table-gds/index.d.ts.map +1 -0
  44. package/dist/components/ui/table-gds/types/index.d.ts +44 -0
  45. package/dist/components/ui/table-gds/types/index.d.ts.map +1 -0
  46. package/dist/index.d.ts +1 -0
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/odin-system.css +1 -1
  49. package/dist/odin-system.es.js +18792 -16880
  50. package/dist/odin-system.es.js.map +1 -1
  51. package/dist/odin-system.umd.js +115 -94
  52. package/dist/odin-system.umd.js.map +1 -1
  53. package/package.json +1 -1
package/dist/App.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AA0IA,eAAO,MAAM,GAAG,+CA6Ef,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AA2IA,eAAO,MAAM,GAAG,+CAiFf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function TableExample(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=TableExample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableExample.d.ts","sourceRoot":"","sources":["../../src/components/TableExample.tsx"],"names":[],"mappings":"AA0FA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAgBnC"}
@@ -0,0 +1,7 @@
1
+ declare const _default: import('react').MemoExoticComponent<({ width, height, ...restProps }: {
2
+ [x: string]: any;
3
+ width?: string | undefined;
4
+ height?: string | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element>;
6
+ export default _default;
7
+ //# sourceMappingURL=ChevronDown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChevronDown.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ChevronDown.tsx"],"names":[],"mappings":";;;;;AAiBA,wBAAqC"}
@@ -0,0 +1,5 @@
1
+ declare const _default: import('react').MemoExoticComponent<({ ...props }: {
2
+ [x: string]: any;
3
+ }) => import("react/jsx-runtime").JSX.Element>;
4
+ export default _default;
5
+ //# sourceMappingURL=FilterAlt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterAlt.d.ts","sourceRoot":"","sources":["../../../src/components/icons/FilterAlt.tsx"],"names":[],"mappings":";;;AAiBA,wBAAmC"}
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ export interface KeyboardDoubleArrowProps extends React.SVGProps<SVGSVGElement> {
3
+ direction?: "up" | "down" | "left" | "right";
4
+ }
5
+ declare const _default: React.MemoExoticComponent<({ direction, width, height, ...restProps }: KeyboardDoubleArrowProps) => import("react/jsx-runtime").JSX.Element>;
6
+ export default _default;
7
+ //# sourceMappingURL=KeyboardDoubleArrow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyboardDoubleArrow.d.ts","sourceRoot":"","sources":["../../../src/components/icons/KeyboardDoubleArrow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC7E,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAC9C;+FAOE,wBAAwB;AAc3B,wBAA+C"}
@@ -0,0 +1,5 @@
1
+ declare const _default: import('react').MemoExoticComponent<({ ...props }: {
2
+ [x: string]: any;
3
+ }) => import("react/jsx-runtime").JSX.Element>;
4
+ export default _default;
5
+ //# sourceMappingURL=SwapVert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapVert.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SwapVert.tsx"],"names":[],"mappings":";;;AAiBA,wBAA8B"}
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ declare const _default: React.NamedExoticComponent<React.SVGProps<SVGSVGElement>>;
3
+ export default _default;
4
+ //# sourceMappingURL=UnfoldMore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnfoldMore.d.ts","sourceRoot":"","sources":["../../../src/components/icons/UnfoldMore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;AAmB/B,wBAAsC"}
@@ -0,0 +1,15 @@
1
+ import { ColumnDef, Column } from '@tanstack/react-table';
2
+ interface DataTableProps<TData, TValue> {
3
+ columns: ColumnDef<TData, TValue>[];
4
+ data: TData[];
5
+ summaryData?: Record<string, React.ReactNode>;
6
+ containerClassName?: string;
7
+ }
8
+ interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
9
+ column: Column<TData, TValue>;
10
+ title: string;
11
+ }
12
+ declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
13
+ declare function DataTable<TData, TValue>({ columns, data, summaryData, containerClassName, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
14
+ export { DataTable, DataTableColumnHeader };
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EAMT,KAAK,MAAM,EACZ,MAAM,uBAAuB,CAAC;AAsB/B,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM;IACpC,OAAO,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC;IACpC,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC9C,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,UAAU,0BAA0B,CAClC,KAAK,EACL,MAAM,CACN,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,iBAAS,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,EAC5C,MAAM,EACN,KAAK,EACL,SAAS,GACV,EAAE,0BAA0B,CAAC,KAAK,EAAE,MAAM,CAAC,2CA+B3C;AAED,iBAAS,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EAChC,OAAO,EACP,IAAI,EACJ,WAAW,EACX,kBAAkB,GACnB,EAAE,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,2CAkF/B;AAED,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ declare function Table({ className, ...props }: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
3
+ declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
4
+ declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
5
+ declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): import("react/jsx-runtime").JSX.Element;
6
+ declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
7
+ declare function TableHead({ className, ...props }: React.ComponentProps<"th">): import("react/jsx-runtime").JSX.Element;
8
+ declare function TableCell({ className, ...props }: React.ComponentProps<"td">): import("react/jsx-runtime").JSX.Element;
9
+ declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): import("react/jsx-runtime").JSX.Element;
10
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAiBpE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAa1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAW1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAYpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,2CAQjC;AAED,OAAO,EACL,KAAK,EACL,SAAS,EACT,YAAY,EACZ,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,GACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function ColumnActionButton(props: React.ButtonHTMLAttributes<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/column-action-button/index.tsx"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,2CAWrD"}
@@ -0,0 +1,3 @@
1
+ import { TableDataProps } from '../../types';
2
+ export default function TableData<T>({ table }: TableDataProps<T>): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-data/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC,2CAiBhE"}
@@ -0,0 +1,3 @@
1
+ declare const TableEmpty: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TableEmpty;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-empty/index.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU,+CASf,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ interface TableFiltersProps extends React.PropsWithChildren {
2
+ applyFilters: (saveFilters?: boolean) => void;
3
+ cleanFilterFields: () => void;
4
+ }
5
+ export declare function TableFilters({ children, applyFilters, cleanFilterFields, }: TableFiltersProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-filters/index.tsx"],"names":[],"mappings":"AAcA,UAAU,iBAAkB,SAAQ,KAAK,CAAC,iBAAiB;IACzD,YAAY,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,YAAY,EACZ,iBAAiB,GAClB,EAAE,iBAAiB,2CAqDnB"}
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ declare const TableFooter: ({ customFooter }: {
3
+ customFooter: ReactNode;
4
+ }) => ReactNode;
5
+ export default TableFooter;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-footer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,QAAA,MAAM,WAAW,GAAI,kBAAkB;IAAE,YAAY,EAAE,SAAS,CAAA;CAAE,cACpD,CAAC;AACf,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { TableHeaderProps } from '../../types';
2
+ export default function TableData<T>({ table }: TableHeaderProps<T>): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-header/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC,2CA0DlE"}
@@ -0,0 +1,2 @@
1
+ export declare function TableLoading(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-loading/index.tsx"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,4CAE3B"}
@@ -0,0 +1,5 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ export default function ColumnsFilter<T>({ table }: {
3
+ table: Table<T>;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=columns-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columns-filter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-menu/columns-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAW9C,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAA;CAAE,2CA2DtE"}
@@ -0,0 +1,4 @@
1
+ import { TableMenuProps } from '../../types';
2
+ declare function TableMenu<T>({ table, title, date, filterComponent, exportData, }: TableMenuProps<T>): import("react/jsx-runtime").JSX.Element;
3
+ export default TableMenu;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-menu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,iBAAS,SAAS,CAAC,CAAC,EAAE,EACpB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,eAAe,EACf,UAAU,GACX,EAAE,cAAc,CAAC,CAAC,CAAC,2CA0BnB;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Pagination } from '../../types';
2
+ interface TablePaginationProps {
3
+ pagination?: [Pagination, React.Dispatch<React.SetStateAction<Pagination>>];
4
+ }
5
+ declare const TablePagination: ({ pagination }: TablePaginationProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default TablePagination;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-pagination/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,UAAU,oBAAoB;IAC5B,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;CAC7E;AAED,QAAA,MAAM,eAAe,GAAI,gBAAgB,oBAAoB,4CAyF5D,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ interface PaginationButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ active?: boolean;
4
+ }
5
+ declare const PaginationButton: ({ children, active, disabled, onClick, ...props }: PaginationButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default PaginationButton;
7
+ //# sourceMappingURL=pagination-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination-button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/table-gds/components/table-pagination/pagination-button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAE7C,UAAU,qBAAsB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC7E,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,QAAA,MAAM,gBAAgB,GAAI,mDAMvB,qBAAqB,4CAYvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { Pagination, SortingObj } from '../types';
2
+ export type FilterValue = string | number | string[] | boolean;
3
+ export type FilterState = Record<string, FilterValue>;
4
+ interface useTableConfigParams {
5
+ initialFilterState?: FilterState;
6
+ id: string;
7
+ defaultSort?: SortingObj[];
8
+ }
9
+ export declare const useTableConfig: ({ id, initialFilterState, defaultSort, }: useTableConfigParams) => {
10
+ sorting: [SortingObj[], import('react').Dispatch<import('react').SetStateAction<SortingObj[]>>];
11
+ pagination: [Pagination, import('react').Dispatch<import('react').SetStateAction<Pagination>>];
12
+ search: [string, import('react').Dispatch<import('react').SetStateAction<string>>];
13
+ date: [{
14
+ initial: string;
15
+ final: string;
16
+ }, import('react').Dispatch<import('react').SetStateAction<{
17
+ initial: string;
18
+ final: string;
19
+ }>>];
20
+ exportData: [string, import('react').Dispatch<import('react').SetStateAction<string>>];
21
+ filter: [FilterState, import('react').Dispatch<import('react').SetStateAction<FilterState>>];
22
+ fieldsInternalfilter: [FilterState, import('react').Dispatch<import('react').SetStateAction<FilterState>>];
23
+ tableId: string;
24
+ applyFilters: (saveFilters?: boolean) => void;
25
+ cleanFilterFields: () => void;
26
+ handleSortingParam: (value: SortingObj[]) => string | undefined;
27
+ };
28
+ export {};
29
+ //# sourceMappingURL=useTableConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableConfig.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/table-gds/hooks/useTableConfig.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC;AAC/D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACtD,UAAU,oBAAoB;IAC5B,kBAAkB,CAAC,EAAE,WAAW,CAAC;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,cAAc,GAAI,0CAI5B,oBAAoB;;;;;;;;;;;;;;;iCA8Be,OAAO;;gCAWjC,UAAU,EAAE;CAkBvB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TableProps } from './types';
2
+ declare function Table<T extends object>({ title, data, loading, columns, sorting, search, date, exportData, customFooter, pagination, filterComponent, onRowSelection, ...props }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
3
+ export { Table };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/table-gds/index.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,iBAAS,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,EAC/B,KAAK,EACL,IAAS,EACT,OAAO,EACP,OAAO,EACP,OAAO,EACP,MAAM,EACN,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,cAAc,EACd,GAAG,KAAK,EACT,EAAE,UAAU,CAAC,CAAC,CAAC,2CAyDf;AACD,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { ColumnDef, Table, TableOptions } from '@tanstack/react-table';
2
+ import { ReactNode } from 'react';
3
+ export type TableDate = {
4
+ initial: string;
5
+ final: string;
6
+ };
7
+ export interface SortingObj {
8
+ id: string;
9
+ desc: boolean;
10
+ }
11
+ export interface Pagination {
12
+ page: number;
13
+ total_pages: number;
14
+ }
15
+ export interface TableProps<T> extends Partial<Omit<TableOptions<T>, "data">> {
16
+ title?: string;
17
+ loading: boolean;
18
+ data?: T[];
19
+ columns: ColumnDef<T>[];
20
+ sorting: [SortingObj[], React.Dispatch<React.SetStateAction<SortingObj[]>>];
21
+ search?: [string, React.Dispatch<React.SetStateAction<string>>];
22
+ date?: [TableDate, React.Dispatch<React.SetStateAction<TableDate>>];
23
+ exportData?: [string, React.Dispatch<React.SetStateAction<string>>];
24
+ pagination?: [Pagination, React.Dispatch<React.SetStateAction<Pagination>>];
25
+ customFooter?: ReactNode;
26
+ filters?: any[];
27
+ onRowSelection?: (selectedRows: T[]) => void;
28
+ filterComponent?: React.ReactNode;
29
+ }
30
+ export interface TableMenuProps<T> {
31
+ table: Table<T>;
32
+ title?: string;
33
+ search?: [string, React.Dispatch<React.SetStateAction<string>>];
34
+ date?: [TableDate, React.Dispatch<React.SetStateAction<TableDate>>];
35
+ exportData?: [string, React.Dispatch<React.SetStateAction<string>>];
36
+ filterComponent?: React.ReactNode;
37
+ }
38
+ export interface TableDataProps<T> {
39
+ table: Table<T>;
40
+ }
41
+ export interface TableHeaderProps<T> {
42
+ table: Table<T>;
43
+ }
44
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/table-gds/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC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AAM,WAAW,cAAc,CAAC,CAAC;IAC/B,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAChE,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpE,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACpE,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACnC;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB"}
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './components/ui/checkbox';
9
9
  export * from './components/ui/collapsible';
10
10
  export * from './components/ui/combobox';
11
11
  export * from './components/ui/command';
12
+ export * from './components/ui/data-table';
12
13
  export * from './components/ui/dialog';
13
14
  export * from './components/ui/dropdown-menu';
14
15
  export * from './components/ui/field';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cA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