@agentero/design-system 0.24.3 → 0.24.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.
Files changed (47) hide show
  1. package/mcp/manifests/components.html +1714 -1001
  2. package/mcp/manifests/components.json +6985 -1
  3. package/mcp/server.mjs +3921 -2320
  4. package/package.json +1 -1
  5. package/src/accordion/accordion.d.ts +35 -23
  6. package/src/accordion/accordion.js +1 -8
  7. package/src/accordion/index.d.ts +18 -1
  8. package/src/accordion/index.js +10 -2
  9. package/src/avatar-group/avatar-group.d.ts +2 -0
  10. package/src/avatar-group/avatar-group.js +0 -1
  11. package/src/button/button.js +0 -1
  12. package/src/check-list/check-list.d.ts +15 -14
  13. package/src/check-list/check-list.js +1 -6
  14. package/src/check-list/index.d.ts +11 -1
  15. package/src/check-list/index.js +8 -2
  16. package/src/command/command.d.ts +117 -43
  17. package/src/command/command.js +1 -9
  18. package/src/command/index.d.ts +86 -1
  19. package/src/command/index.js +12 -2
  20. package/src/data-table/data-table.d.ts +81 -46
  21. package/src/data-table/data-table.js +71 -78
  22. package/src/data-table/index.d.ts +175 -2
  23. package/src/data-table/index.js +22 -3
  24. package/src/data-table/table.d.ts +107 -44
  25. package/src/data-table/table.js +1 -12
  26. package/src/divider/divider.js +0 -1
  27. package/src/dropdown-menu/dropdown-menu.d.ts +254 -136
  28. package/src/dropdown-menu/dropdown-menu.js +1 -14
  29. package/src/dropdown-menu/index.d.ts +51 -1
  30. package/src/dropdown-menu/index.js +16 -2
  31. package/src/hover-card/hover-card.d.ts +40 -26
  32. package/src/hover-card/hover-card.js +1 -9
  33. package/src/hover-card/index.d.ts +20 -1
  34. package/src/hover-card/index.js +11 -2
  35. package/src/label/label.js +0 -1
  36. package/src/modal/index.d.ts +38 -1
  37. package/src/modal/index.js +14 -2
  38. package/src/modal/modal.d.ts +125 -81
  39. package/src/modal/modal.js +1 -11
  40. package/src/popover/index.d.ts +24 -1
  41. package/src/popover/index.js +12 -2
  42. package/src/popover/popover.d.ts +30 -30
  43. package/src/popover/popover.js +1 -10
  44. package/src/skeleton/skeleton.js +0 -1
  45. package/src/tag/tag.js +0 -1
  46. package/src/validation-list/validation-list.d.ts +2 -0
  47. package/src/validation-list/validation-list.js +0 -1
@@ -37,35 +37,18 @@ type DataTableRootProps<TData extends RowData> = DataTableProps<TData> & {
37
37
  * framework link (e.g. Next.js `Link`) for client-side navigation. */
38
38
  linkComponent?: ElementType;
39
39
  };
40
- type DataTableTableProps = PropsWithChildren<{
41
- /** Row density: `sm` (48px), `md` (64px), `lg` (88px). Defaults to `'md'`. */
42
- size?: TableRootProps['size'];
43
- /** Which edges stay sticky on scroll. Defaults to `'header'`. */
44
- sticky?: TableRootProps['sticky'];
45
- /** Embedded-in-page style: drops the row dividers and tightens the edge gutter to 1rem. Defaults to `true`. */
46
- embed?: TableRootProps['embed'];
47
- /** Wrap the table in a bordered, rounded container (standalone "card" look). Defaults to `false`. */
48
- enclosed?: TableRootProps['enclosed'];
49
- }>;
50
40
  /**
51
- * Offset/limit pagination state shape, for callers driving server-side paging.
41
+ * Root of the DataTable, the data-driven table compound built on TanStack Table
42
+ * and the `Table` primitive. It builds the TanStack table instance from
43
+ * `data`/`columns` (plus any TanStack options) and shares it with the
44
+ * subcomponents.
52
45
  *
53
- * @property {number} offset - Zero-based index of the first item on the page.
54
- * @property {number} limit - Number of items per page.
55
- */
56
- export type PaginationState = {
57
- offset: number;
58
- limit: number;
59
- };
60
- /**
61
- * Data-driven table compound built on TanStack Table and the `Table` primitive.
62
- * Compose `Root` (owns the table instance) with `ToolBar`, `Table` (headers/rows,
63
- * sorting, navigation, empty state), and `Footer` + `Pagination`. For hand-rendered
64
- * rows without TanStack, drop to the `Table` primitive.
46
+ * Compose `Root` with `ToolBar`, `Table` (headers/rows, sorting, navigation,
47
+ * empty state), and `Footer` + `Pagination`. For hand-rendered rows without
48
+ * TanStack, drop to the `Table` primitive.
65
49
  *
66
- * @summary Data-driven table compound (sorting, toolbar, pagination) over TanStack
50
+ * @summary DataTable root that builds the table instance and shares context
67
51
  * @see {@link https://tanstack.com/table/latest|TanStack Table}
68
- * @namespace DataTable
69
52
  *
70
53
  * @example
71
54
  * ```tsx
@@ -94,26 +77,78 @@ export type PaginationState = {
94
77
  * </DataTable.Root>
95
78
  * ```
96
79
  */
97
- export declare const DataTable: {
98
- Root: {
99
- <TData extends RowData>({ children, isLoading, onRowClick, rowHref, linkComponent, ...tableOptions }: PropsWithChildren<DataTableRootProps<TData>>): import("react/jsx-runtime").JSX.Element;
100
- displayName: string;
101
- };
102
- ToolBar: {
103
- ({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
104
- displayName: string;
105
- };
106
- Table: {
107
- ({ children, size, sticky, embed, enclosed }: DataTableTableProps): import("react/jsx-runtime").JSX.Element;
108
- displayName: string;
109
- };
110
- Footer: {
111
- ({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
112
- displayName: string;
113
- };
114
- Pagination: {
115
- (props: PaginationProps): import("react/jsx-runtime").JSX.Element;
116
- displayName: string;
117
- };
80
+ export declare const Root: {
81
+ <TData extends RowData>({ children, isLoading, onRowClick, rowHref, linkComponent, ...tableOptions }: PropsWithChildren<DataTableRootProps<TData>>): import("react/jsx-runtime").JSX.Element;
82
+ displayName: string;
83
+ };
84
+ /**
85
+ * Toolbar strip above the table for search, filters, and actions. Its `px-4`
86
+ * matches the table's edge cells so toolbar and column content align.
87
+ *
88
+ * @summary Toolbar row above the table for filters and actions
89
+ */
90
+ export declare const ToolBar: {
91
+ ({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
92
+ displayName: string;
93
+ };
94
+ type DataTableTableProps = PropsWithChildren<{
95
+ /** Row density: `sm` (48px), `md` (64px), `lg` (88px). Defaults to `'md'`. */
96
+ size?: TableRootProps['size'];
97
+ /** Which edges stay sticky on scroll. Defaults to `'header'`. */
98
+ sticky?: TableRootProps['sticky'];
99
+ /** Embedded-in-page style: drops the row dividers and tightens the edge gutter to 1rem. Defaults to `true`. */
100
+ embed?: TableRootProps['embed'];
101
+ /** Wrap the table in a bordered, rounded container (standalone "card" look). Defaults to `false`. */
102
+ enclosed?: TableRootProps['enclosed'];
103
+ }>;
104
+ /**
105
+ * Renders the headers and rows from the table instance. Sortable columns toggle
106
+ * sorting on click; rows become clickable when `onRowClick` or `rowHref` is set.
107
+ * Pass a custom empty state as children. `size`/`sticky`/`embed` forward to
108
+ * `Table.Root`.
109
+ *
110
+ * @summary Renders headers and rows, with sorting and row navigation
111
+ *
112
+ * @example
113
+ * ```tsx
114
+ * <DataTable.Table>
115
+ * <CustomEmptyState />
116
+ * </DataTable.Table>
117
+ * ```
118
+ */
119
+ export declare const DataTableTable: {
120
+ ({ children, size, sticky, embed, enclosed }: DataTableTableProps): import("react/jsx-runtime").JSX.Element;
121
+ displayName: string;
122
+ };
123
+ /**
124
+ * Offset/limit pagination state shape, for callers driving server-side paging.
125
+ *
126
+ * @property {number} offset - Zero-based index of the first item on the page.
127
+ * @property {number} limit - Number of items per page.
128
+ */
129
+ export type PaginationState = {
130
+ offset: number;
131
+ limit: number;
132
+ };
133
+ /**
134
+ * Footer strip below the table, typically holding pagination. Separated from
135
+ * the table body by a top border and right-aligns its content.
136
+ *
137
+ * @summary Footer row below the table for pagination
138
+ */
139
+ export declare const Footer: {
140
+ ({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
141
+ displayName: string;
142
+ };
143
+ /**
144
+ * Pagination control wired to the table: scrolls the table viewport back to the
145
+ * top whenever the page changes, then forwards to the caller's `onPageChange`.
146
+ * Place it inside `DataTable.Footer`.
147
+ *
148
+ * @summary Table-aware pagination that scrolls to top on page change
149
+ */
150
+ export declare const DataTablePagination: {
151
+ (props: PaginationProps): import("react/jsx-runtime").JSX.Element;
152
+ displayName: string;
118
153
  };
119
154
  export {};
@@ -1,51 +1,51 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../lib/utils.js";
3
- import { IconArrowUpward as t, IconSwapVert as n } from "./icons.js";
4
- import { Table as r } from "./table.js";
5
- import { Pagination as i } from "../pagination/pagination.js";
6
- import { tv as a } from "tailwind-variants";
7
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
- import { Fragment as l, createContext as u, use as d, useRef as f } from "react";
9
- import { flexRender as p, getCoreRowModel as m, useReactTable as h } from "@tanstack/react-table";
3
+ import { Pagination as t } from "../pagination/pagination.js";
4
+ import { IconArrowUpward as n, IconSwapVert as r } from "./icons.js";
5
+ import { TableBody as i, TableCell as a, TableHead as o, TableHeader as s, TableRoot as c, TableRow as l } from "./table.js";
6
+ import { tv as u } from "tailwind-variants";
7
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
8
+ import { Fragment as m, createContext as h, use as g, useRef as _ } from "react";
9
+ import { flexRender as v, getCoreRowModel as y, useReactTable as b } from "@tanstack/react-table";
10
10
  //#region src/data-table/data-table.tsx
11
- var g = u(null), _ = () => {
12
- let e = d(g);
11
+ var x = h(null), S = () => {
12
+ let e = g(x);
13
13
  if (!e) throw Error("useDataTable must be used within a DataTable.Root");
14
14
  return e;
15
- }, v = ({ children: e, isLoading: t = !1, onRowClick: n, rowHref: r, linkComponent: i = "a", ...a }) => /* @__PURE__ */ s(g, {
15
+ }, C = ({ children: e, isLoading: t = !1, onRowClick: n, rowHref: r, linkComponent: i = "a", ...a }) => /* @__PURE__ */ f(x, {
16
16
  value: {
17
- table: h({
17
+ table: b({
18
18
  ...a,
19
- getCoreRowModel: m()
19
+ getCoreRowModel: y()
20
20
  }),
21
21
  isLoading: t,
22
- scrollRef: f(null),
22
+ scrollRef: _(null),
23
23
  onRowClick: n,
24
24
  rowHref: r,
25
25
  linkComponent: i
26
26
  },
27
- children: /* @__PURE__ */ s("div", {
27
+ children: /* @__PURE__ */ f("div", {
28
28
  "data-slot": "data-table-root",
29
29
  className: "flex min-h-0 flex-1 flex-col",
30
30
  children: e
31
31
  })
32
32
  });
33
- v.displayName = "DataTable.Root";
34
- var y = ({ children: e }) => /* @__PURE__ */ s("div", {
33
+ C.displayName = "DataTable.Root";
34
+ var w = ({ children: e }) => /* @__PURE__ */ f("div", {
35
35
  "data-slot": "data-table-toolbar",
36
36
  role: "toolbar",
37
37
  className: "flex gap-2 border-b border-border-default-base-primary px-4 py-3",
38
38
  children: e
39
39
  });
40
- y.displayName = "DataTable.ToolBar";
41
- var b = a({
40
+ w.displayName = "DataTable.ToolBar";
41
+ var T = u({
42
42
  base: "size-4 transition-transform duration-200",
43
43
  variants: { direction: {
44
44
  asc: "",
45
45
  desc: "rotate-180",
46
46
  false: ""
47
47
  } }
48
- }), x = a({
48
+ }), E = u({
49
49
  base: "flex w-full appearance-none items-center bg-transparent p-0 text-left [font:inherit]",
50
50
  variants: {
51
51
  canSort: {
@@ -57,103 +57,96 @@ var b = a({
57
57
  left: "justify-start"
58
58
  }
59
59
  }
60
- }), S = (e) => !!e.closest("a, button, [role=\"menu\"]"), C = ({ children: i = /* @__PURE__ */ s(w, {}), size: a = "md", sticky: u = "header", embed: d = !0, enclosed: f = !1 }) => {
61
- let { table: m, isLoading: h, scrollRef: g, onRowClick: v, rowHref: y, linkComponent: C } = _(), T = m.getAllColumns().length;
62
- return /* @__PURE__ */ s("div", {
60
+ }), D = (e) => !!e.closest("a, button, [role=\"menu\"]"), O = ({ children: t = /* @__PURE__ */ f(k, {}), size: u = "md", sticky: h = "header", embed: g = !0, enclosed: _ = !1 }) => {
61
+ let { table: y, isLoading: b, scrollRef: x, onRowClick: C, rowHref: w, linkComponent: O } = S(), A = y.getAllColumns().length;
62
+ return /* @__PURE__ */ f("div", {
63
63
  "data-slot": "data-table-loading-overlay",
64
- className: e("flex min-h-0 flex-1 flex-col transition-opacity duration-150", h && "opacity-50"),
65
- children: /* @__PURE__ */ c(r.Root, {
66
- size: a,
67
- sticky: u,
68
- embed: d,
69
- enclosed: f,
70
- ref: g,
71
- children: [/* @__PURE__ */ s(r.Head, { children: m.getHeaderGroups().map((e) => /* @__PURE__ */ s(r.Row, { children: e.headers.map((e) => {
72
- let i = e.column.columnDef.meta, a = e.column.getCanSort(), l = e.column.getIsSorted(), u = i?.style?.textAlign === "right" || i?.className?.includes("text-right") ? "right" : "left", d = e.isPlaceholder ? null : /* @__PURE__ */ c(o, { children: [p(e.column.columnDef.header, e.getContext()), a && /* @__PURE__ */ s("span", {
64
+ className: e("flex min-h-0 flex-1 flex-col transition-opacity duration-150", b && "opacity-50"),
65
+ children: /* @__PURE__ */ p(c, {
66
+ size: u,
67
+ sticky: h,
68
+ embed: g,
69
+ enclosed: _,
70
+ ref: x,
71
+ children: [/* @__PURE__ */ f(o, { children: y.getHeaderGroups().map((e) => /* @__PURE__ */ f(l, { children: e.headers.map((e) => {
72
+ let t = e.column.columnDef.meta, i = e.column.getCanSort(), a = e.column.getIsSorted(), o = t?.style?.textAlign === "right" || t?.className?.includes("text-right") ? "right" : "left", c = e.isPlaceholder ? null : /* @__PURE__ */ p(d, { children: [v(e.column.columnDef.header, e.getContext()), i && /* @__PURE__ */ f("span", {
73
73
  className: "size-4",
74
- children: l ? /* @__PURE__ */ s(t, { className: b({ direction: l }) }) : /* @__PURE__ */ s(n, { className: "size-4" })
74
+ children: a ? /* @__PURE__ */ f(n, { className: T({ direction: a }) }) : /* @__PURE__ */ f(r, { className: "size-4" })
75
75
  })] });
76
- return /* @__PURE__ */ s(r.Header, {
77
- ...i,
78
- "aria-sort": a ? l === "asc" ? "ascending" : l === "desc" ? "descending" : "none" : void 0,
79
- children: a ? /* @__PURE__ */ s("button", {
76
+ return /* @__PURE__ */ f(s, {
77
+ ...t,
78
+ "aria-sort": i ? a === "asc" ? "ascending" : a === "desc" ? "descending" : "none" : void 0,
79
+ children: i ? /* @__PURE__ */ f("button", {
80
80
  type: "button",
81
- className: x({
81
+ className: E({
82
82
  canSort: !0,
83
- align: u
83
+ align: o
84
84
  }),
85
85
  onClick: e.column.getToggleSortingHandler(),
86
86
  title: e.column.getNextSortingOrder() === "asc" ? "Sort ascending" : e.column.getNextSortingOrder() === "desc" ? "Sort descending" : "Clear sort",
87
- children: d
88
- }) : /* @__PURE__ */ s("div", {
89
- className: x({
87
+ children: c
88
+ }) : /* @__PURE__ */ f("div", {
89
+ className: E({
90
90
  canSort: !1,
91
- align: u
91
+ align: o
92
92
  }),
93
- children: d
93
+ children: c
94
94
  })
95
95
  }, e.id);
96
- }) }, e.id)) }), /* @__PURE__ */ s(r.Body, { children: m.getRowModel().rows.length ? m.getRowModel().rows.map((t) => {
97
- let n = y?.(t.original), i = !!v || !!n;
98
- return /* @__PURE__ */ s(l, { children: /* @__PURE__ */ s(r.Row, {
99
- className: e("has-aria-expanded:bg-bg-default-base-secondary", i && "cursor-pointer"),
100
- onClick: i ? (e) => {
101
- S(e.target) || !e.currentTarget.contains(e.target) || (v ? v(t.original) : n && e.currentTarget.querySelector("[data-row-link]")?.click());
96
+ }) }, e.id)) }), /* @__PURE__ */ f(i, { children: y.getRowModel().rows.length ? y.getRowModel().rows.map((t) => {
97
+ let n = w?.(t.original), r = !!C || !!n;
98
+ return /* @__PURE__ */ f(m, { children: /* @__PURE__ */ f(l, {
99
+ className: e("has-aria-expanded:bg-bg-default-base-secondary", r && "cursor-pointer"),
100
+ onClick: r ? (e) => {
101
+ D(e.target) || !e.currentTarget.contains(e.target) || (C ? C(t.original) : n && e.currentTarget.querySelector("[data-row-link]")?.click());
102
102
  } : void 0,
103
103
  children: t.getVisibleCells().map((e, t) => {
104
- let i = e.column.columnDef.meta;
105
- return /* @__PURE__ */ c(r.Cell, {
106
- ...i,
107
- children: [t === 0 && n && /* @__PURE__ */ s(C, {
104
+ let r = e.column.columnDef.meta;
105
+ return /* @__PURE__ */ p(a, {
106
+ ...r,
107
+ children: [t === 0 && n && /* @__PURE__ */ f(O, {
108
108
  href: n,
109
109
  "data-row-link": !0,
110
110
  className: "hidden",
111
111
  tabIndex: -1,
112
112
  "aria-hidden": "true"
113
- }), p(e.column.columnDef.cell, e.getContext())]
113
+ }), v(e.column.columnDef.cell, e.getContext())]
114
114
  }, e.id);
115
115
  })
116
116
  }) }, t.id);
117
- }) : h ? null : /* @__PURE__ */ s(r.Row, { children: /* @__PURE__ */ s(r.Cell, {
118
- colSpan: T,
119
- children: /* @__PURE__ */ s("div", {
117
+ }) : b ? null : /* @__PURE__ */ f(l, { children: /* @__PURE__ */ f(a, {
118
+ colSpan: A,
119
+ children: /* @__PURE__ */ f("div", {
120
120
  "data-slot": "table-empty-state",
121
121
  className: "whitespace-normal",
122
- children: i
122
+ children: t
123
123
  })
124
124
  }) }) })]
125
125
  })
126
126
  });
127
127
  };
128
- C.displayName = "DataTable.Table";
129
- var w = () => /* @__PURE__ */ s("div", {
128
+ O.displayName = "DataTable.Table";
129
+ var k = () => /* @__PURE__ */ f("div", {
130
130
  className: "mb-6 flex flex-col items-center gap-4",
131
- children: /* @__PURE__ */ s("div", {
131
+ children: /* @__PURE__ */ f("div", {
132
132
  className: "text-lg",
133
- children: /* @__PURE__ */ s("b", { children: "No results." })
133
+ children: /* @__PURE__ */ f("b", { children: "No results." })
134
134
  })
135
- }), T = ({ children: e }) => /* @__PURE__ */ s("div", {
135
+ }), A = ({ children: e }) => /* @__PURE__ */ f("div", {
136
136
  "data-slot": "data-table-pagination",
137
137
  className: "flex justify-end border-t border-border-default-base-primary px-6 py-3",
138
138
  children: e
139
139
  });
140
- T.displayName = "DataTable.Footer";
141
- var E = (e) => {
142
- let { scrollRef: t } = _();
143
- return /* @__PURE__ */ s(i, {
140
+ A.displayName = "DataTable.Footer";
141
+ var j = (e) => {
142
+ let { scrollRef: n } = S();
143
+ return /* @__PURE__ */ f(t, {
144
144
  ...e,
145
- onPageChange: (n) => {
146
- t.current?.scrollTo({ top: 0 }), e.onPageChange(n);
145
+ onPageChange: (t) => {
146
+ n.current?.scrollTo({ top: 0 }), e.onPageChange(t);
147
147
  }
148
148
  });
149
149
  };
150
- E.displayName = "DataTable.Pagination";
151
- var D = {
152
- Root: v,
153
- ToolBar: y,
154
- Table: C,
155
- Footer: T,
156
- Pagination: E
157
- };
150
+ j.displayName = "DataTable.Pagination";
158
151
  //#endregion
159
- export { D as DataTable, _ as useDataTable };
152
+ export { j as DataTablePagination, O as DataTableTable, A as Footer, C as Root, w as ToolBar, S as useDataTable };
@@ -1,4 +1,177 @@
1
- export { Table, tableRecipe } from './table';
1
+ export { tableRecipe } from './table';
2
2
  export type { TableRootProps } from './table';
3
- export { DataTable, useDataTable } from './data-table';
3
+ export { useDataTable } from './data-table';
4
4
  export type { DataTableColumnMeta, PaginationState } from './data-table';
5
+ export declare const Table: {
6
+ Root: {
7
+ ({ children, ref, ...variants }: import('react').PropsWithChildren<import('./table').TableRootProps>): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ Head: {
11
+ ({ children, ...props }: import('react').PropsWithChildren<import('react').HTMLAttributes<HTMLTableSectionElement>>): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ Body: {
15
+ ({ children, ...props }: import('react').PropsWithChildren<import('react').HTMLAttributes<HTMLTableSectionElement>>): import("react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ Row: {
19
+ ({ className, ...props }: import('react').ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
20
+ displayName: string;
21
+ };
22
+ Header: {
23
+ ({ className, ...props }: import('react').PropsWithChildren<import('react').HTMLAttributes<HTMLTableCellElement>>): import("react/jsx-runtime").JSX.Element;
24
+ displayName: string;
25
+ };
26
+ Cell: {
27
+ ({ className, ...props }: import('react').PropsWithChildren<import('react').TdHTMLAttributes<HTMLTableCellElement>>): import("react/jsx-runtime").JSX.Element;
28
+ displayName: string;
29
+ };
30
+ ExpandButton: {
31
+ ({ toggleExpanded, isExpanded, className, ...props }: {
32
+ toggleExpanded: () => void;
33
+ isExpanded: boolean;
34
+ } & {
35
+ children?: import('react').ReactNode;
36
+ variant?: import('../button').ButtonVariantType;
37
+ size?: import('../button').ButtonSizeType;
38
+ status?: "danger";
39
+ loading?: boolean;
40
+ disabled?: boolean;
41
+ iconOnly?: boolean;
42
+ rounded?: boolean;
43
+ align?: "center" | "start" | "end" | "justify";
44
+ fitContent?: boolean;
45
+ ref?: import('react').Ref<HTMLButtonElement | HTMLAnchorElement>;
46
+ } & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
47
+ asChild?: boolean;
48
+ }): import("react/jsx-runtime").JSX.Element;
49
+ displayName: string;
50
+ };
51
+ ExpandedRow: {
52
+ ({ className, ...props }: import('react').PropsWithChildren<import('react').HTMLAttributes<HTMLTableRowElement>>): import("react/jsx-runtime").JSX.Element;
53
+ displayName: string;
54
+ };
55
+ RowActions: {
56
+ ({ children }: import('react').PropsWithChildren): import("react/jsx-runtime").JSX.Element;
57
+ displayName: string;
58
+ };
59
+ };
60
+ export declare const DataTable: {
61
+ Root: {
62
+ <TData extends import('@tanstack/table-core').RowData>({ children, isLoading, onRowClick, rowHref, linkComponent, ...tableOptions }: import('react').PropsWithChildren<{
63
+ data: TData[];
64
+ meta?: import('@tanstack/table-core').TableMeta<TData> | undefined;
65
+ columns: import('@tanstack/table-core').ColumnDef<TData, any>[];
66
+ state?: Partial<import('@tanstack/table-core').TableState> | undefined;
67
+ onStateChange?: ((updater: import('@tanstack/table-core').Updater<import('@tanstack/table-core').TableState>) => void) | undefined;
68
+ renderFallbackValue?: any;
69
+ _features?: import('@tanstack/table-core').TableFeature[] | undefined;
70
+ autoResetAll?: boolean | undefined;
71
+ debugAll?: boolean | undefined;
72
+ debugCells?: boolean | undefined;
73
+ debugColumns?: boolean | undefined;
74
+ debugHeaders?: boolean | undefined;
75
+ debugRows?: boolean | undefined;
76
+ debugTable?: boolean | undefined;
77
+ defaultColumn?: Partial<import('@tanstack/table-core').ColumnDef<TData, unknown>> | undefined;
78
+ getRowId?: ((originalRow: TData, index: number, parent?: import('@tanstack/table-core').Row<TData> | undefined) => string) | undefined;
79
+ getSubRows?: ((originalRow: TData, index: number) => TData[] | undefined) | undefined;
80
+ initialState?: import('@tanstack/table-core').InitialTableState | undefined;
81
+ mergeOptions?: ((defaultOptions: import('@tanstack/table-core').TableOptions<TData>, options: Partial<import('@tanstack/table-core').TableOptions<TData>>) => import('@tanstack/table-core').TableOptions<TData>) | undefined;
82
+ enableHiding?: boolean | undefined;
83
+ onColumnVisibilityChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').VisibilityState> | undefined;
84
+ onColumnOrderChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').ColumnOrderState> | undefined;
85
+ enableColumnPinning?: boolean | undefined;
86
+ enablePinning?: boolean | undefined;
87
+ onColumnPinningChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').ColumnPinningState> | undefined;
88
+ enableRowPinning?: boolean | ((row: import('@tanstack/table-core').Row<TData>) => boolean) | undefined;
89
+ keepPinnedRows?: boolean | undefined;
90
+ onRowPinningChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').RowPinningState> | undefined;
91
+ getFacetedMinMaxValues?: ((table: import('@tanstack/table-core').Table<TData>, columnId: string) => () => undefined | [number, number]) | undefined;
92
+ getFacetedRowModel?: ((table: import('@tanstack/table-core').Table<TData>, columnId: string) => () => import('@tanstack/table-core').RowModel<TData>) | undefined;
93
+ getFacetedUniqueValues?: ((table: import('@tanstack/table-core').Table<TData>, columnId: string) => () => Map<any, number>) | undefined;
94
+ enableColumnFilters?: boolean | undefined;
95
+ enableFilters?: boolean | undefined;
96
+ filterFromLeafRows?: boolean | undefined;
97
+ getFilteredRowModel?: ((table: import('@tanstack/table-core').Table<any>) => () => import('@tanstack/table-core').RowModel<any>) | undefined;
98
+ manualFiltering?: boolean | undefined;
99
+ maxLeafRowFilterDepth?: number | undefined;
100
+ onColumnFiltersChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').ColumnFiltersState> | undefined;
101
+ filterFns?: Record<string, import('@tanstack/table-core').FilterFn<any>> | undefined;
102
+ enableGlobalFilter?: boolean | undefined;
103
+ getColumnCanGlobalFilter?: ((column: import('@tanstack/table-core').Column<TData, unknown>) => boolean) | undefined;
104
+ globalFilterFn?: import('@tanstack/table-core').FilterFnOption<TData> | undefined;
105
+ onGlobalFilterChange?: import('@tanstack/table-core').OnChangeFn<any> | undefined;
106
+ enableMultiRemove?: boolean | undefined;
107
+ enableMultiSort?: boolean | undefined;
108
+ enableSorting?: boolean | undefined;
109
+ enableSortingRemoval?: boolean | undefined;
110
+ getSortedRowModel?: ((table: import('@tanstack/table-core').Table<any>) => () => import('@tanstack/table-core').RowModel<any>) | undefined;
111
+ isMultiSortEvent?: ((e: unknown) => boolean) | undefined;
112
+ manualSorting?: boolean | undefined;
113
+ maxMultiSortColCount?: number | undefined;
114
+ onSortingChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').SortingState> | undefined;
115
+ sortDescFirst?: boolean | undefined;
116
+ sortingFns?: Record<string, import('@tanstack/table-core').SortingFn<any>> | undefined;
117
+ enableGrouping?: boolean | undefined;
118
+ getGroupedRowModel?: ((table: import('@tanstack/table-core').Table<any>) => () => import('@tanstack/table-core').RowModel<any>) | undefined;
119
+ groupedColumnMode?: false | "reorder" | "remove" | undefined;
120
+ manualGrouping?: boolean | undefined;
121
+ onGroupingChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').GroupingState> | undefined;
122
+ aggregationFns?: Record<string, import('@tanstack/table-core').AggregationFn<any>> | undefined;
123
+ autoResetExpanded?: boolean | undefined;
124
+ enableExpanding?: boolean | undefined;
125
+ getExpandedRowModel?: ((table: import('@tanstack/table-core').Table<any>) => () => import('@tanstack/table-core').RowModel<any>) | undefined;
126
+ getIsRowExpanded?: ((row: import('@tanstack/table-core').Row<TData>) => boolean) | undefined;
127
+ getRowCanExpand?: ((row: import('@tanstack/table-core').Row<TData>) => boolean) | undefined;
128
+ manualExpanding?: boolean | undefined;
129
+ onExpandedChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').ExpandedState> | undefined;
130
+ paginateExpandedRows?: boolean | undefined;
131
+ columnResizeMode?: import('@tanstack/table-core').ColumnResizeMode | undefined;
132
+ enableColumnResizing?: boolean | undefined;
133
+ columnResizeDirection?: import('@tanstack/table-core').ColumnResizeDirection | undefined;
134
+ onColumnSizingChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').ColumnSizingState> | undefined;
135
+ onColumnSizingInfoChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').ColumnSizingInfoState> | undefined;
136
+ autoResetPageIndex?: boolean | undefined;
137
+ getPaginationRowModel?: ((table: import('@tanstack/table-core').Table<any>) => () => import('@tanstack/table-core').RowModel<any>) | undefined;
138
+ manualPagination?: boolean | undefined;
139
+ onPaginationChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').PaginationState> | undefined;
140
+ pageCount?: number | undefined;
141
+ rowCount?: number | undefined;
142
+ enableMultiRowSelection?: boolean | ((row: import('@tanstack/table-core').Row<TData>) => boolean) | undefined;
143
+ enableRowSelection?: boolean | ((row: import('@tanstack/table-core').Row<TData>) => boolean) | undefined;
144
+ enableSubRowSelection?: boolean | ((row: import('@tanstack/table-core').Row<TData>) => boolean) | undefined;
145
+ onRowSelectionChange?: import('@tanstack/table-core').OnChangeFn<import('@tanstack/table-core').RowSelectionState> | undefined;
146
+ } & {
147
+ isLoading?: boolean;
148
+ onRowClick?: ((row: TData) => void) | undefined;
149
+ rowHref?: ((row: TData) => string) | undefined;
150
+ linkComponent?: import('react').ElementType;
151
+ }>): import("react/jsx-runtime").JSX.Element;
152
+ displayName: string;
153
+ };
154
+ ToolBar: {
155
+ ({ children }: import('react').PropsWithChildren): import("react/jsx-runtime").JSX.Element;
156
+ displayName: string;
157
+ };
158
+ Table: {
159
+ ({ children, size, sticky, embed, enclosed }: {
160
+ size?: import('./table').TableRootProps["size"];
161
+ sticky?: import('./table').TableRootProps["sticky"];
162
+ embed?: import('./table').TableRootProps["embed"];
163
+ enclosed?: import('./table').TableRootProps["enclosed"];
164
+ } & {
165
+ children?: import('react').ReactNode | undefined;
166
+ }): import("react/jsx-runtime").JSX.Element;
167
+ displayName: string;
168
+ };
169
+ Footer: {
170
+ ({ children }: import('react').PropsWithChildren): import("react/jsx-runtime").JSX.Element;
171
+ displayName: string;
172
+ };
173
+ Pagination: {
174
+ (props: import('../pagination').PaginationProps): import("react/jsx-runtime").JSX.Element;
175
+ displayName: string;
176
+ };
177
+ };
@@ -1,3 +1,22 @@
1
- import { Table as e, tableRecipe as t } from "./table.js";
2
- import { DataTable as n, useDataTable as r } from "./data-table.js";
3
- export { n as DataTable, e as Table, t as tableRecipe, r as useDataTable };
1
+ import { TableBody as e, TableCell as t, TableExpandButton as n, TableExpandedRow as r, TableHead as i, TableHeader as a, TableRoot as o, TableRow as s, TableRowActions as c, tableRecipe as l } from "./table.js";
2
+ import { DataTablePagination as u, DataTableTable as d, Footer as f, Root as p, ToolBar as m, useDataTable as h } from "./data-table.js";
3
+ //#region src/data-table/index.ts
4
+ var g = {
5
+ Root: o,
6
+ Head: i,
7
+ Body: e,
8
+ Row: s,
9
+ Header: a,
10
+ Cell: t,
11
+ ExpandButton: n,
12
+ ExpandedRow: r,
13
+ RowActions: c
14
+ }, _ = {
15
+ Root: p,
16
+ ToolBar: m,
17
+ Table: d,
18
+ Footer: f,
19
+ Pagination: u
20
+ };
21
+ //#endregion
22
+ export { _ as DataTable, g as Table, l as tableRecipe, h as useDataTable };