@jamsrui/table 0.0.4 → 0.0.6
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.mts +3 -2
- package/dist/{table-kjrxrR3X.d.mts → table-DoFhyPyS.d.mts} +2 -2
- package/dist/table-body.mjs +1 -1
- package/dist/table-config.d.mts +4 -3
- package/dist/table-context.d.mts +2 -1
- package/dist/table-empty-state.d.mts +2 -2
- package/dist/table-empty-state.mjs +1 -1
- package/dist/table.d.mts +3 -2
- package/dist/table.mjs +1 -1
- package/dist/use-table.d.mts +2 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { T as Table } from './table-
|
|
1
|
+
export { T as Table } from './table-DoFhyPyS.mjs';
|
|
2
2
|
export { TableBody } from './table-body.mjs';
|
|
3
3
|
export { TableCell } from './table-cell.mjs';
|
|
4
4
|
export { TableColumn } from './table-column.mjs';
|
|
5
5
|
export { TableConfig, useTableConfig } from './table-config.mjs';
|
|
6
6
|
export { TableHeader } from './table-header.mjs';
|
|
7
7
|
export { TableRow } from './table-row.mjs';
|
|
8
|
-
import 'react';
|
|
8
|
+
import 'react/jsx-runtime';
|
|
9
9
|
import '@jamsrui/utils';
|
|
10
10
|
import './styles.mjs';
|
|
11
11
|
import 'tailwind-variants';
|
|
12
12
|
import './table-footer.mjs';
|
|
13
|
+
import 'react';
|
|
13
14
|
import './table-wrapper.mjs';
|
|
14
15
|
import '@jamsrui/core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
3
3
|
import { TableVariantProps, TableSlots } from './styles.mjs';
|
|
4
4
|
import { TableBody } from './table-body.mjs';
|
|
@@ -36,7 +36,7 @@ declare namespace useTable {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
declare const Table: (props: Table.Props) =>
|
|
39
|
+
declare const Table: (props: Table.Props) => react_jsx_runtime.JSX.Element;
|
|
40
40
|
declare namespace Table {
|
|
41
41
|
interface Props extends useTable.Props {
|
|
42
42
|
}
|
package/dist/table-body.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as n}from"@jamsrui/hooks";import{useTableContext as
|
|
1
|
+
import{jsx as d}from"react/jsx-runtime";import{useRenderElement as n}from"@jamsrui/hooks";import{useTableContext as p}from"./table-context";import{TableEmptyState as s}from"./table-empty-state";const i=e=>{const{children:o}=e,{getBodyProps:r}=p(),t=o??d(s,{});return n("tbody",{props:[r(e),{children:t}]})};export{i as TableBody};
|
package/dist/table-config.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as Table } from './table-
|
|
1
|
+
import { T as Table } from './table-DoFhyPyS.mjs';
|
|
2
2
|
import './table-body.mjs';
|
|
3
3
|
import './table-cell.mjs';
|
|
4
4
|
import './table-column.mjs';
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
7
7
|
import './table-header.mjs';
|
|
8
8
|
import './table-row.mjs';
|
|
@@ -10,12 +10,13 @@ import '@jamsrui/utils';
|
|
|
10
10
|
import './styles.mjs';
|
|
11
11
|
import 'tailwind-variants';
|
|
12
12
|
import './table-footer.mjs';
|
|
13
|
+
import 'react';
|
|
13
14
|
import './table-wrapper.mjs';
|
|
14
15
|
|
|
15
16
|
declare const useTableConfig: () => TableConfig.Props;
|
|
16
17
|
declare const TableConfig: (props: TableConfig.Props & {
|
|
17
18
|
merge?: boolean;
|
|
18
|
-
}) =>
|
|
19
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
19
20
|
declare namespace TableConfig {
|
|
20
21
|
interface Props extends Table.Props, GlobalConfigProps<Table.Props> {
|
|
21
22
|
}
|
package/dist/table-context.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{TableCell as l}from"./table-cell";import{TableRow as o}from"./table-row";const p=()=>e(o,{children:e(l,{className:"text-center py-12",colSpan:100,children:"No data found"})});export{p as TableEmptyState};
|
package/dist/table.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { T as Table } from './table-
|
|
1
|
+
import 'react/jsx-runtime';
|
|
2
|
+
export { T as Table } from './table-DoFhyPyS.mjs';
|
|
3
3
|
import '@jamsrui/utils';
|
|
4
4
|
import './styles.mjs';
|
|
5
5
|
import 'tailwind-variants';
|
|
6
6
|
import './table-body.mjs';
|
|
7
|
+
import 'react';
|
|
7
8
|
import './table-cell.mjs';
|
|
8
9
|
import './table-column.mjs';
|
|
9
10
|
import './table-footer.mjs';
|
package/dist/table.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useRenderElement as m}from"@jamsrui/hooks";import{mergeConfigProps as b}from"@jamsrui/utils";import{useTableConfig as c}from"./table-config";import{TableContext as i}from"./table-context";import{TableTable as T}from"./table-root";import{TableWrapper as f}from"./table-wrapper";import{useTable as d}from"./use-table";const E=o=>{const{children:n}=o,r=c(),p=b(r,r,o),t=d(p),{getRootProps:l}=t,s=e(f,{children:e(T,{children:n})}),a=m("div",{props:[l({}),{children:s}]});return e(i,{value:t,children:a})};export{E as Table};
|
package/dist/use-table.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@jamsrui/utils';
|
|
2
2
|
import './styles.mjs';
|
|
3
|
-
export { u as useTable } from './table-
|
|
3
|
+
export { u as useTable } from './table-DoFhyPyS.mjs';
|
|
4
4
|
import './table-body.mjs';
|
|
5
5
|
import './table-cell.mjs';
|
|
6
6
|
import './table-column.mjs';
|
|
@@ -9,4 +9,5 @@ import './table-header.mjs';
|
|
|
9
9
|
import './table-row.mjs';
|
|
10
10
|
import './table-wrapper.mjs';
|
|
11
11
|
import 'tailwind-variants';
|
|
12
|
+
import 'react/jsx-runtime';
|
|
12
13
|
import 'react';
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/table",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/hooks": "^0.0.
|
|
9
|
-
"@jamsrui/core": "^0.0.
|
|
10
|
-
"@jamsrui/utils": "^0.0.
|
|
8
|
+
"@jamsrui/hooks": "^0.0.6",
|
|
9
|
+
"@jamsrui/core": "^0.0.6",
|
|
10
|
+
"@jamsrui/utils": "^0.0.6"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|