@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 CHANGED
@@ -1,14 +1,15 @@
1
- export { T as Table } from './table-kjrxrR3X.mjs';
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 react from 'react';
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) => react.JSX.Element;
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
  }
@@ -1 +1 @@
1
- import{useRenderElement as n}from"@jamsrui/hooks";import{useTableContext as s}from"./table-context";import{TableEmptyState as p}from"./table-empty-state";const c=e=>{const{children:o}=e,{getBodyProps:r}=s(),t=o??React.createElement(p,null);return n("tbody",{props:[r(e),{children:t}]})};export{c as TableBody};
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};
@@ -1,8 +1,8 @@
1
- import { T as Table } from './table-kjrxrR3X.mjs';
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 react from 'react';
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
- }) => react.JSX.Element;
19
+ }) => react_jsx_runtime.JSX.Element;
19
20
  declare namespace TableConfig {
20
21
  interface Props extends Table.Props, GlobalConfigProps<Table.Props> {
21
22
  }
@@ -1,5 +1,6 @@
1
1
  import * as react from 'react';
2
- import { u as useTable } from './table-kjrxrR3X.mjs';
2
+ import { u as useTable } from './table-DoFhyPyS.mjs';
3
+ import 'react/jsx-runtime';
3
4
  import '@jamsrui/utils';
4
5
  import './styles.mjs';
5
6
  import 'tailwind-variants';
@@ -1,5 +1,5 @@
1
- import * as react from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- declare const TableEmptyState: () => react.JSX.Element;
3
+ declare const TableEmptyState: () => react_jsx_runtime.JSX.Element;
4
4
 
5
5
  export { TableEmptyState };
@@ -1 +1 @@
1
- import{TableCell as e}from"./table-cell";import{TableRow as t}from"./table-row";const o=()=>React.createElement(t,null,React.createElement(e,{className:"text-center py-12",colSpan:100},"No data found"));export{o as TableEmptyState};
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-kjrxrR3X.mjs';
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 l}from"@jamsrui/hooks";import{mergeConfigProps as m}from"@jamsrui/utils";import{useTableConfig as c}from"./table-config";import{TableContext as i}from"./table-context";import{TableTable as b}from"./table-root";import{TableWrapper as T}from"./table-wrapper";import{useTable as f}from"./use-table";const v=e=>{const{children:t}=e,o=c(),n=m(o,o,e),r=f(n),{getRootProps:p}=r,s=React.createElement(T,null,React.createElement(b,null,t)),a=l("div",{props:[p({}),{children:s}]});return React.createElement(i,{value:r},a)};export{v as Table};
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};
@@ -1,6 +1,6 @@
1
1
  import '@jamsrui/utils';
2
2
  import './styles.mjs';
3
- export { u as useTable } from './table-kjrxrR3X.mjs';
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.4",
3
+ "version": "0.0.6",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.4",
9
- "@jamsrui/core": "^0.0.4",
10
- "@jamsrui/utils": "^0.0.4"
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
  ".": {