@jamsrui/table 0.0.2 → 0.0.3
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.mjs +1 -1
- package/dist/styles.mjs +1 -1
- package/dist/table-body.mjs +1 -1
- package/dist/table-cell.mjs +1 -1
- package/dist/table-column.mjs +1 -1
- package/dist/table-config.mjs +1 -1
- package/dist/table-context.mjs +1 -1
- package/dist/table-empty-state.mjs +1 -1
- package/dist/table-footer.mjs +1 -1
- package/dist/table-header.mjs +1 -1
- package/dist/table-root.mjs +1 -1
- package/dist/table-row.mjs +1 -1
- package/dist/table-wrapper.mjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/use-table.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-33TE2BHZ.js +0 -1
- package/dist/chunk-3DEGOO53.js +0 -1
- package/dist/chunk-4HKO3A5Q.js +0 -1
- package/dist/chunk-AE6FXOJG.mjs +0 -1
- package/dist/chunk-AOUQYQBM.js +0 -1
- package/dist/chunk-BNDB4QJQ.mjs +0 -1
- package/dist/chunk-C226J2M3.mjs +0 -1
- package/dist/chunk-CUSCOOCX.mjs +0 -1
- package/dist/chunk-E66GNLTH.mjs +0 -1
- package/dist/chunk-FCXZ6T4U.mjs +0 -1
- package/dist/chunk-G56JYZMX.mjs +0 -1
- package/dist/chunk-GKIPZGG6.js +0 -1
- package/dist/chunk-GYUJBPIW.mjs +0 -1
- package/dist/chunk-IUKUUQL4.js +0 -1
- package/dist/chunk-J4IKCIFW.js +0 -1
- package/dist/chunk-NTBPFXNE.js +0 -1
- package/dist/chunk-QMFUPHXA.js +0 -1
- package/dist/chunk-SDQMNVG7.mjs +0 -1
- package/dist/chunk-TUDBCRW7.js +0 -1
- package/dist/chunk-TYYVDMZS.mjs +0 -1
- package/dist/chunk-U734EP46.js +0 -1
- package/dist/chunk-VOSLASEC.js +0 -1
- package/dist/chunk-VVMX3GVS.mjs +0 -1
- package/dist/chunk-WKT355RZ.mjs +0 -1
- package/dist/chunk-YRMO4O4W.mjs +0 -1
- package/dist/chunk-ZEQXYD6G.js +0 -1
- package/dist/index.d.ts +0 -14
- package/dist/index.js +0 -1
- package/dist/styles.d.ts +0 -210
- package/dist/styles.js +0 -1
- package/dist/table-2IVtRYPc.d.ts +0 -45
- package/dist/table-body.d.ts +0 -10
- package/dist/table-body.js +0 -1
- package/dist/table-cell.d.ts +0 -10
- package/dist/table-cell.js +0 -1
- package/dist/table-column.d.ts +0 -10
- package/dist/table-column.js +0 -1
- package/dist/table-config.d.ts +0 -24
- package/dist/table-config.js +0 -1
- package/dist/table-context.d.ts +0 -21
- package/dist/table-context.js +0 -1
- package/dist/table-empty-state.d.ts +0 -5
- package/dist/table-empty-state.js +0 -1
- package/dist/table-footer.d.ts +0 -10
- package/dist/table-footer.js +0 -1
- package/dist/table-header.d.ts +0 -10
- package/dist/table-header.js +0 -1
- package/dist/table-root.d.ts +0 -10
- package/dist/table-root.js +0 -1
- package/dist/table-row.d.ts +0 -10
- package/dist/table-row.js +0 -1
- package/dist/table-wrapper.d.ts +0 -10
- package/dist/table-wrapper.js +0 -1
- package/dist/table.d.ts +0 -12
- package/dist/table.js +0 -1
- package/dist/use-table.d.ts +0 -12
- package/dist/use-table.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{Table as r}from"./table";import{TableBody as a}from"./table-body";import{TableCell as b}from"./table-cell";import{TableColumn as t}from"./table-column";import{TableConfig as p,useTableConfig as x}from"./table-config";import{TableHeader as C}from"./table-header";import{TableRow as u}from"./table-row";export{r as Table,a as TableBody,b as TableCell,t as TableColumn,p as TableConfig,C as TableHeader,u as TableRow,x as useTableConfig};
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}
|
|
1
|
+
import{radiusVariant as r,tv as t}from"@jamsrui/utils";const o="",a=t({slots:{root:"relative flex flex-col gap-2 overflow-hidden",wrapper:"grid w-full gap-2 overflow-x-auto",table:"group/table w-full min-w-full",thead:"h-10",th:"h-10 grow items-center whitespace-nowrap px-3 text-left text-sm",tbody:"",tr:"group/tr",td:"overflow-hidden whitespace-nowrap px-3 text-sm",tfoot:"",sortIcon:"",emptyWrapper:"",loadingWrapper:""},variants:{variant:{solid:{th:"bg-surface-secondary first:rounded-l-lg last:rounded-r-lg",root:"rounded-2xl bg-surface p-4"},bordered:{th:"border-b border-b-stroke-secondary",td:"border-b border-divider",root:"bg-surface"}},radius:r("root"),density:{compact:{td:"py-2"},standard:{td:"py-4"},comfortable:{td:"py-6"}},isHeaderSticky:{true:{thead:"sticky top-0 z-10 bg-surface [&>tr]:shadow-sm",wrapper:"flex max-h-[400px] flex-col overflow-auto"}},allowHover:{true:{td:"md:group-hover/tr:bg-surface-secondary"},false:{td:""}},separateRows:{true:{tr:"border-b-2 border-transparent",td:"border-none bg-surface",root:"border-none bg-transparent p-0"}}},defaultVariants:{isHeaderSticky:!1,density:"compact",allowHover:!1,separateRows:!1,variant:"solid",radius:"md"}});export{a as tableVariants,o as test};
|
package/dist/table-body.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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};
|
package/dist/table-cell.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useRenderElement as t}from"@jamsrui/hooks";import{useTableContext as o}from"./table-context";const n=e=>{const{getCellProps:r}=o();return t("td",{props:[r(e)]})};export{n as TableCell};
|
package/dist/table-column.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useRenderElement as o}from"@jamsrui/hooks";import{useTableContext as t}from"./table-context";const s=e=>{const{getColumnProps:r}=t();return o("th",{props:[r(e)]})};export{s as TableColumn};
|
package/dist/table-config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createConfigContext as o}from"@jamsrui/utils";const[r,a]=o({displayName:"TableConfig"});export{r as TableConfig,a as useTableConfig};
|
package/dist/table-context.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createContext as t,use as o}from"react";const n=t(null),s=()=>{const e=o(n);if(!e)throw new Error("useTableContext must be used within TableContext");return e};export{n as TableContext,s as useTableContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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};
|
package/dist/table-footer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useRenderElement as r}from"@jamsrui/hooks";import{useTableContext as t}from"./table-context";const m=e=>{const{getFooterProps:o}=t();return r("tfoot",{props:[o(e)]})};export{m as TableFooter};
|
package/dist/table-header.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useRenderElement as t}from"@jamsrui/hooks";import{useTableContext as o}from"./table-context";const n=e=>{const{getHeaderProps:r}=o();return t("thead",{props:[r(e)]})};export{n as TableHeader};
|
package/dist/table-root.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useRenderElement as t}from"@jamsrui/hooks";import{useTableContext as o}from"./table-context";const l=e=>{const{getTableProps:r}=o();return t("table",{props:[r(e)]})};export{l as TableTable};
|
package/dist/table-row.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useRenderElement as o}from"@jamsrui/hooks";import{useTableContext as t}from"./table-context";const m=e=>{const{getRowProps:r}=t();return o("tr",{props:[r(e)]})};export{m as TableRow};
|
package/dist/table-wrapper.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useRenderElement as p}from"@jamsrui/hooks";import{useTableContext as t}from"./table-context";const a=e=>{const{getWrapperProps:r}=t();return p("div",{props:[r(e)]})};export{a as TableWrapper};
|
package/dist/table.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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};
|
package/dist/use-table.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useCallback as r,useMemo as C}from"react";import{cn as l,dataAttrDev as s,mapPropsVariants as g,mergeProps as p}from"@jamsrui/utils";import{tableVariants as w}from"./styles";const B=u=>{const[m,h]=g(u,w.variantKeys),{classNames:o,slotProps:e,...c}=m,t=w(h),b=r(()=>({...c,"data-slot":s("root"),"data-component":s("table"),className:t.root({className:l(o?.root,m.className)})}),[m.className,o?.root,c,t]),P=r(a=>({...p(e?.wrapper,a),"data-slot":s("wrapper"),className:t.wrapper({className:l(e?.wrapper?.className,o?.wrapper,a.className)})}),[o?.wrapper,e?.wrapper,t]),d=r(a=>({...p(e?.table,a),"data-slot":s("table"),className:t.table({className:l(e?.table?.className,o?.table,a.className)})}),[o?.table,e?.table,t]),N=r(a=>({...p(e?.header,a),"data-slot":s("header"),className:t.thead({className:l(e?.header?.className,o?.thead,a.className)})}),[o?.thead,e?.header,t]),n=r(a=>({...p(e?.column,a),"data-slot":s("column"),className:t.th({className:l(e?.column,o?.th,a.className)})}),[o?.th,e?.column,t]),T=r(a=>({...p(e?.body,a),"data-slot":s("body"),className:t.tbody({className:l(e?.body?.className,o?.tbody,a.className)})}),[o?.tbody,e?.body,t]),y=r(a=>({...p(e?.row,a),"data-slot":s("row"),className:t.tr({className:l(e?.row?.className,o?.tr,a.className)})}),[o?.tr,e?.row,t]),f=r(a=>({...p(e?.cell,a),"data-slot":s("cell"),className:t.td({className:l(e?.cell?.className,o?.td,a.className)})}),[o?.td,e?.cell,t]),i=r(a=>({...p(e?.footer,a),"data-slot":s("footer"),className:t.tfoot({className:l(e?.footer?.className,o?.tfoot,a.className)})}),[o?.tfoot,e?.footer,t]);return C(()=>({getRootProps:b,getTableProps:d,getHeaderProps:N,getColumnProps:n,getBodyProps:T,getRowProps:y,getCellProps:f,getFooterProps:i,getWrapperProps:P}),[T,f,n,i,N,b,y,d,P])};export{B as useTable};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/table",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
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.3",
|
|
9
|
+
"@jamsrui/core": "^0.0.3",
|
|
10
|
+
"@jamsrui/utils": "^0.0.3"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
package/dist/chunk-33TE2BHZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');var _hooks = require('@jamsrui/hooks');var a=r=>{let{getWrapperProps:p}=_chunkGKIPZGG6js.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "div",{props:[p(r)]})};exports.a = a;
|
package/dist/chunk-3DEGOO53.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');var _hooks = require('@jamsrui/hooks');var l=r=>{let{getTableProps:t}=_chunkGKIPZGG6js.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "table",{props:[t(r)]})};exports.a = l;
|
package/dist/chunk-4HKO3A5Q.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');var _hooks = require('@jamsrui/hooks');var m=r=>{let{getRowProps:o}=_chunkGKIPZGG6js.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "tr",{props:[o(r)]})};exports.a = m;
|
package/dist/chunk-AE6FXOJG.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-TYYVDMZS.mjs";import{useRenderElement as o}from"@jamsrui/hooks";var n=r=>{let{getCellProps:t}=e();return o("td",{props:[t(r)]})};export{n as a};
|
package/dist/chunk-AOUQYQBM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');var _hooks = require('@jamsrui/hooks');var n=r=>{let{getHeaderProps:t}=_chunkGKIPZGG6js.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "thead",{props:[t(r)]})};exports.a = n;
|
package/dist/chunk-BNDB4QJQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-GYUJBPIW.mjs";import{b as o}from"./chunk-TYYVDMZS.mjs";import{useRenderElement as p}from"@jamsrui/hooks";var c=e=>{let{children:t}=e,{getBodyProps:n}=o(),s=t??React.createElement(r,null);return p("tbody",{props:[n(e),{children:s}]})};export{c as a};
|
package/dist/chunk-C226J2M3.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-TYYVDMZS.mjs";import{useRenderElement as o}from"@jamsrui/hooks";var n=r=>{let{getHeaderProps:t}=e();return o("thead",{props:[t(r)]})};export{n as a};
|
package/dist/chunk-CUSCOOCX.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk-SDQMNVG7.mjs";import{a as s}from"./chunk-WKT355RZ.mjs";import{a}from"./chunk-FCXZ6T4U.mjs";import{b as t}from"./chunk-G56JYZMX.mjs";import{a as n}from"./chunk-TYYVDMZS.mjs";import{useRenderElement as T}from"@jamsrui/hooks";import{mergeConfigProps as f}from"@jamsrui/utils";var v=e=>{let{children:l}=e,o=t(),m=f(o,o,e),r=a(m),{getRootProps:c}=r,i=React.createElement(s,null,React.createElement(p,null,l)),b=T("div",{props:[c({}),{children:i}]});return React.createElement(n,{value:r},b)};export{v as a};
|
package/dist/chunk-E66GNLTH.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-TYYVDMZS.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var m=r=>{let{getRowProps:o}=e();return t("tr",{props:[o(r)]})};export{m as a};
|
package/dist/chunk-FCXZ6T4U.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as c}from"./chunk-YRMO4O4W.mjs";import{useCallback as r,useMemo as C}from"react";import{cn as l,dataAttrDev as s,mapPropsVariants as g,mergeProps as p}from"@jamsrui/utils";var B=u=>{let[m,h]=g(u,c.variantKeys),{classNames:o,slotProps:e,...b}=m,t=c(h),P=r(()=>({...b,"data-slot":s("root"),"data-component":s("table"),className:t.root({className:l(o?.root,m.className)})}),[m.className,o?.root,b,t]),d=r(a=>({...p(e?.wrapper,a),"data-slot":s("wrapper"),className:t.wrapper({className:l(e?.wrapper?.className,o?.wrapper,a.className)})}),[o?.wrapper,e?.wrapper,t]),N=r(a=>({...p(e?.table,a),"data-slot":s("table"),className:t.table({className:l(e?.table?.className,o?.table,a.className)})}),[o?.table,e?.table,t]),n=r(a=>({...p(e?.header,a),"data-slot":s("header"),className:t.thead({className:l(e?.header?.className,o?.thead,a.className)})}),[o?.thead,e?.header,t]),T=r(a=>({...p(e?.column,a),"data-slot":s("column"),className:t.th({className:l(e?.column,o?.th,a.className)})}),[o?.th,e?.column,t]),y=r(a=>({...p(e?.body,a),"data-slot":s("body"),className:t.tbody({className:l(e?.body?.className,o?.tbody,a.className)})}),[o?.tbody,e?.body,t]),f=r(a=>({...p(e?.row,a),"data-slot":s("row"),className:t.tr({className:l(e?.row?.className,o?.tr,a.className)})}),[o?.tr,e?.row,t]),i=r(a=>({...p(e?.cell,a),"data-slot":s("cell"),className:t.td({className:l(e?.cell?.className,o?.td,a.className)})}),[o?.td,e?.cell,t]),w=r(a=>({...p(e?.footer,a),"data-slot":s("footer"),className:t.tfoot({className:l(e?.footer?.className,o?.tfoot,a.className)})}),[o?.tfoot,e?.footer,t]);return C(()=>({getRootProps:P,getTableProps:N,getHeaderProps:n,getColumnProps:T,getBodyProps:y,getRowProps:f,getCellProps:i,getFooterProps:w,getWrapperProps:d}),[y,i,T,w,n,P,f,N,d])};export{B as a};
|
package/dist/chunk-G56JYZMX.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createConfigContext as o}from"@jamsrui/utils";var[r,a]=o({displayName:"TableConfig"});export{r as a,a as b};
|
package/dist/chunk-GKIPZGG6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _react = require('react');var n=_react.createContext.call(void 0, null),s= exports.b =()=>{let e=_react.use.call(void 0, n);if(!e)throw new Error("useTableContext must be used within TableContext");return e};exports.a = n; exports.b = s;
|
package/dist/chunk-GYUJBPIW.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-E66GNLTH.mjs";import{a as e}from"./chunk-AE6FXOJG.mjs";var o=()=>React.createElement(t,null,React.createElement(e,{className:"text-center py-12",colSpan:100},"No data found"));export{o as a};
|
package/dist/chunk-IUKUUQL4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4HKO3A5Qjs = require('./chunk-4HKO3A5Q.js');var _chunkNTBPFXNEjs = require('./chunk-NTBPFXNE.js');var o=()=>React.createElement(_chunk4HKO3A5Qjs.a,null,React.createElement(_chunkNTBPFXNEjs.a,{className:"text-center py-12",colSpan:100},"No data found"));exports.a = o;
|
package/dist/chunk-J4IKCIFW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkTUDBCRW7js = require('./chunk-TUDBCRW7.js');var _react = require('react');var _utils = require('@jamsrui/utils');var B=u=>{let[m,h]=_utils.mapPropsVariants.call(void 0, u,_chunkTUDBCRW7js.b.variantKeys),{classNames:o,slotProps:e,...b}=m,t=_chunkTUDBCRW7js.b.call(void 0, h),P=_react.useCallback.call(void 0, ()=>({...b,"data-slot":_utils.dataAttrDev.call(void 0, "root"),"data-component":_utils.dataAttrDev.call(void 0, "table"),className:t.root({className:_utils.cn.call(void 0, _optionalChain([o, 'optionalAccess', _ => _.root]),m.className)})}),[m.className,_optionalChain([o, 'optionalAccess', _2 => _2.root]),b,t]),d=_react.useCallback.call(void 0, a=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _3 => _3.wrapper]),a),"data-slot":_utils.dataAttrDev.call(void 0, "wrapper"),className:t.wrapper({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _4 => _4.wrapper, 'optionalAccess', _5 => _5.className]),_optionalChain([o, 'optionalAccess', _6 => _6.wrapper]),a.className)})}),[_optionalChain([o, 'optionalAccess', _7 => _7.wrapper]),_optionalChain([e, 'optionalAccess', _8 => _8.wrapper]),t]),N=_react.useCallback.call(void 0, a=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _9 => _9.table]),a),"data-slot":_utils.dataAttrDev.call(void 0, "table"),className:t.table({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _10 => _10.table, 'optionalAccess', _11 => _11.className]),_optionalChain([o, 'optionalAccess', _12 => _12.table]),a.className)})}),[_optionalChain([o, 'optionalAccess', _13 => _13.table]),_optionalChain([e, 'optionalAccess', _14 => _14.table]),t]),n=_react.useCallback.call(void 0, a=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _15 => _15.header]),a),"data-slot":_utils.dataAttrDev.call(void 0, "header"),className:t.thead({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _16 => _16.header, 'optionalAccess', _17 => _17.className]),_optionalChain([o, 'optionalAccess', _18 => _18.thead]),a.className)})}),[_optionalChain([o, 'optionalAccess', _19 => _19.thead]),_optionalChain([e, 'optionalAccess', _20 => _20.header]),t]),T=_react.useCallback.call(void 0, a=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _21 => _21.column]),a),"data-slot":_utils.dataAttrDev.call(void 0, "column"),className:t.th({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _22 => _22.column]),_optionalChain([o, 'optionalAccess', _23 => _23.th]),a.className)})}),[_optionalChain([o, 'optionalAccess', _24 => _24.th]),_optionalChain([e, 'optionalAccess', _25 => _25.column]),t]),y=_react.useCallback.call(void 0, a=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _26 => _26.body]),a),"data-slot":_utils.dataAttrDev.call(void 0, "body"),className:t.tbody({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _27 => _27.body, 'optionalAccess', _28 => _28.className]),_optionalChain([o, 'optionalAccess', _29 => _29.tbody]),a.className)})}),[_optionalChain([o, 'optionalAccess', _30 => _30.tbody]),_optionalChain([e, 'optionalAccess', _31 => _31.body]),t]),f=_react.useCallback.call(void 0, a=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _32 => _32.row]),a),"data-slot":_utils.dataAttrDev.call(void 0, "row"),className:t.tr({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _33 => _33.row, 'optionalAccess', _34 => _34.className]),_optionalChain([o, 'optionalAccess', _35 => _35.tr]),a.className)})}),[_optionalChain([o, 'optionalAccess', _36 => _36.tr]),_optionalChain([e, 'optionalAccess', _37 => _37.row]),t]),i=_react.useCallback.call(void 0, a=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _38 => _38.cell]),a),"data-slot":_utils.dataAttrDev.call(void 0, "cell"),className:t.td({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _39 => _39.cell, 'optionalAccess', _40 => _40.className]),_optionalChain([o, 'optionalAccess', _41 => _41.td]),a.className)})}),[_optionalChain([o, 'optionalAccess', _42 => _42.td]),_optionalChain([e, 'optionalAccess', _43 => _43.cell]),t]),w=_react.useCallback.call(void 0, a=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _44 => _44.footer]),a),"data-slot":_utils.dataAttrDev.call(void 0, "footer"),className:t.tfoot({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _45 => _45.footer, 'optionalAccess', _46 => _46.className]),_optionalChain([o, 'optionalAccess', _47 => _47.tfoot]),a.className)})}),[_optionalChain([o, 'optionalAccess', _48 => _48.tfoot]),_optionalChain([e, 'optionalAccess', _49 => _49.footer]),t]);return _react.useMemo.call(void 0, ()=>({getRootProps:P,getTableProps:N,getHeaderProps:n,getColumnProps:T,getBodyProps:y,getRowProps:f,getCellProps:i,getFooterProps:w,getWrapperProps:d}),[y,i,T,w,n,P,f,N,d])};exports.a = B;
|
package/dist/chunk-NTBPFXNE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');var _hooks = require('@jamsrui/hooks');var n=r=>{let{getCellProps:t}=_chunkGKIPZGG6js.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "td",{props:[t(r)]})};exports.a = n;
|
package/dist/chunk-QMFUPHXA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var[r,a]=_utils.createConfigContext.call(void 0, {displayName:"TableConfig"});exports.a = r; exports.b = a;
|
package/dist/chunk-SDQMNVG7.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-TYYVDMZS.mjs";import{useRenderElement as o}from"@jamsrui/hooks";var l=r=>{let{getTableProps:t}=e();return o("table",{props:[t(r)]})};export{l as a};
|
package/dist/chunk-TUDBCRW7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var o="",a= exports.b =_utils.tv.call(void 0, {slots:{root:"relative flex flex-col gap-2 overflow-hidden",wrapper:"grid w-full gap-2 overflow-x-auto",table:"group/table w-full min-w-full",thead:"h-10",th:"h-10 grow items-center whitespace-nowrap px-3 text-left text-sm",tbody:"",tr:"group/tr",td:"overflow-hidden whitespace-nowrap px-3 text-sm",tfoot:"",sortIcon:"",emptyWrapper:"",loadingWrapper:""},variants:{variant:{solid:{th:"bg-surface-secondary first:rounded-l-lg last:rounded-r-lg",root:"rounded-2xl bg-surface p-4"},bordered:{th:"border-b border-b-stroke-secondary",td:"border-b border-divider",root:"bg-surface"}},radius:_utils.radiusVariant.call(void 0, "root"),density:{compact:{td:"py-2"},standard:{td:"py-4"},comfortable:{td:"py-6"}},isHeaderSticky:{true:{thead:"sticky top-0 z-10 bg-surface [&>tr]:shadow-sm",wrapper:"flex max-h-[400px] flex-col overflow-auto"}},allowHover:{true:{td:"md:group-hover/tr:bg-surface-secondary"},false:{td:""}},separateRows:{true:{tr:"border-b-2 border-transparent",td:"border-none bg-surface",root:"border-none bg-transparent p-0"}}},defaultVariants:{isHeaderSticky:!1,density:"compact",allowHover:!1,separateRows:!1,variant:"solid",radius:"md"}});exports.a = o; exports.b = a;
|
package/dist/chunk-TYYVDMZS.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createContext as t,use as o}from"react";var n=t(null),s=()=>{let e=o(n);if(!e)throw new Error("useTableContext must be used within TableContext");return e};export{n as a,s as b};
|
package/dist/chunk-U734EP46.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3DEGOO53js = require('./chunk-3DEGOO53.js');var _chunk33TE2BHZjs = require('./chunk-33TE2BHZ.js');var _chunkJ4IKCIFWjs = require('./chunk-J4IKCIFW.js');var _chunkQMFUPHXAjs = require('./chunk-QMFUPHXA.js');var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var v=e=>{let{children:l}=e,o=_chunkQMFUPHXAjs.b.call(void 0, ),m=_utils.mergeConfigProps.call(void 0, o,o,e),r=_chunkJ4IKCIFWjs.a.call(void 0, m),{getRootProps:c}=r,i=React.createElement(_chunk33TE2BHZjs.a,null,React.createElement(_chunk3DEGOO53js.a,null,l)),b=_hooks.useRenderElement.call(void 0, "div",{props:[c({}),{children:i}]});return React.createElement(_chunkGKIPZGG6js.a,{value:r},b)};exports.a = v;
|
package/dist/chunk-VOSLASEC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkIUKUUQL4js = require('./chunk-IUKUUQL4.js');var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');var _hooks = require('@jamsrui/hooks');var c=e=>{let{children:t}=e,{getBodyProps:n}=_chunkGKIPZGG6js.b.call(void 0, ),s=_nullishCoalesce(t, () => (React.createElement(_chunkIUKUUQL4js.a,null)));return _hooks.useRenderElement.call(void 0, "tbody",{props:[n(e),{children:s}]})};exports.a = c;
|
package/dist/chunk-VVMX3GVS.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-TYYVDMZS.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var s=r=>{let{getColumnProps:o}=e();return t("th",{props:[o(r)]})};export{s as a};
|
package/dist/chunk-WKT355RZ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-TYYVDMZS.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var a=r=>{let{getWrapperProps:p}=e();return t("div",{props:[p(r)]})};export{a};
|
package/dist/chunk-YRMO4O4W.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{radiusVariant as r,tv as t}from"@jamsrui/utils";var o="",a=t({slots:{root:"relative flex flex-col gap-2 overflow-hidden",wrapper:"grid w-full gap-2 overflow-x-auto",table:"group/table w-full min-w-full",thead:"h-10",th:"h-10 grow items-center whitespace-nowrap px-3 text-left text-sm",tbody:"",tr:"group/tr",td:"overflow-hidden whitespace-nowrap px-3 text-sm",tfoot:"",sortIcon:"",emptyWrapper:"",loadingWrapper:""},variants:{variant:{solid:{th:"bg-surface-secondary first:rounded-l-lg last:rounded-r-lg",root:"rounded-2xl bg-surface p-4"},bordered:{th:"border-b border-b-stroke-secondary",td:"border-b border-divider",root:"bg-surface"}},radius:r("root"),density:{compact:{td:"py-2"},standard:{td:"py-4"},comfortable:{td:"py-6"}},isHeaderSticky:{true:{thead:"sticky top-0 z-10 bg-surface [&>tr]:shadow-sm",wrapper:"flex max-h-[400px] flex-col overflow-auto"}},allowHover:{true:{td:"md:group-hover/tr:bg-surface-secondary"},false:{td:""}},separateRows:{true:{tr:"border-b-2 border-transparent",td:"border-none bg-surface",root:"border-none bg-transparent p-0"}}},defaultVariants:{isHeaderSticky:!1,density:"compact",allowHover:!1,separateRows:!1,variant:"solid",radius:"md"}});export{o as a,a as b};
|
package/dist/chunk-ZEQXYD6G.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');var _hooks = require('@jamsrui/hooks');var s=r=>{let{getColumnProps:o}=_chunkGKIPZGG6js.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "th",{props:[o(r)]})};exports.a = s;
|
package/dist/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { T as Table } from './table-2IVtRYPc.js';
|
|
2
|
-
export { TableBody } from './table-body.js';
|
|
3
|
-
export { TableCell } from './table-cell.js';
|
|
4
|
-
export { TableColumn } from './table-column.js';
|
|
5
|
-
export { TableConfig, useTableConfig } from './table-config.js';
|
|
6
|
-
export { TableHeader } from './table-header.js';
|
|
7
|
-
export { TableRow } from './table-row.js';
|
|
8
|
-
import 'react';
|
|
9
|
-
import '@jamsrui/utils';
|
|
10
|
-
import './styles.js';
|
|
11
|
-
import 'tailwind-variants';
|
|
12
|
-
import './table-footer.js';
|
|
13
|
-
import './table-wrapper.js';
|
|
14
|
-
import '@jamsrui/core';
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkAOUQYQBMjs = require('./chunk-AOUQYQBM.js');var _chunkU734EP46js = require('./chunk-U734EP46.js');require('./chunk-3DEGOO53.js');require('./chunk-33TE2BHZ.js');require('./chunk-J4IKCIFW.js');require('./chunk-TUDBCRW7.js');var _chunkVOSLASECjs = require('./chunk-VOSLASEC.js');var _chunkZEQXYD6Gjs = require('./chunk-ZEQXYD6G.js');var _chunkQMFUPHXAjs = require('./chunk-QMFUPHXA.js');require('./chunk-IUKUUQL4.js');var _chunk4HKO3A5Qjs = require('./chunk-4HKO3A5Q.js');var _chunkNTBPFXNEjs = require('./chunk-NTBPFXNE.js');require('./chunk-GKIPZGG6.js');exports.Table = _chunkU734EP46js.a; exports.TableBody = _chunkVOSLASECjs.a; exports.TableCell = _chunkNTBPFXNEjs.a; exports.TableColumn = _chunkZEQXYD6Gjs.a; exports.TableConfig = _chunkQMFUPHXAjs.a; exports.TableHeader = _chunkAOUQYQBMjs.a; exports.TableRow = _chunk4HKO3A5Qjs.a; exports.useTableConfig = _chunkQMFUPHXAjs.b;
|
package/dist/styles.d.ts
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
-
import { VariantProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const test = "";
|
|
5
|
-
declare const tableVariants: tailwind_variants.TVReturnType<{
|
|
6
|
-
variant: {
|
|
7
|
-
solid: {
|
|
8
|
-
th: string;
|
|
9
|
-
root: string;
|
|
10
|
-
};
|
|
11
|
-
bordered: {
|
|
12
|
-
th: string;
|
|
13
|
-
td: string;
|
|
14
|
-
root: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
radius: {
|
|
18
|
-
sm: {};
|
|
19
|
-
md: {};
|
|
20
|
-
lg: {};
|
|
21
|
-
xl: {};
|
|
22
|
-
"2xl": {};
|
|
23
|
-
"3xl": {};
|
|
24
|
-
full: {};
|
|
25
|
-
none: {};
|
|
26
|
-
};
|
|
27
|
-
density: {
|
|
28
|
-
compact: {
|
|
29
|
-
td: string;
|
|
30
|
-
};
|
|
31
|
-
standard: {
|
|
32
|
-
td: string;
|
|
33
|
-
};
|
|
34
|
-
comfortable: {
|
|
35
|
-
td: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
isHeaderSticky: {
|
|
39
|
-
true: {
|
|
40
|
-
thead: string;
|
|
41
|
-
wrapper: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
allowHover: {
|
|
45
|
-
true: {
|
|
46
|
-
td: string;
|
|
47
|
-
};
|
|
48
|
-
false: {
|
|
49
|
-
td: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
separateRows: {
|
|
53
|
-
true: {
|
|
54
|
-
tr: string;
|
|
55
|
-
td: string;
|
|
56
|
-
root: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
}, {
|
|
60
|
-
root: string;
|
|
61
|
-
wrapper: string;
|
|
62
|
-
table: string;
|
|
63
|
-
thead: string;
|
|
64
|
-
th: string;
|
|
65
|
-
tbody: string;
|
|
66
|
-
tr: string;
|
|
67
|
-
td: string;
|
|
68
|
-
tfoot: string;
|
|
69
|
-
sortIcon: string;
|
|
70
|
-
emptyWrapper: string;
|
|
71
|
-
loadingWrapper: string;
|
|
72
|
-
}, undefined, {
|
|
73
|
-
variant: {
|
|
74
|
-
solid: {
|
|
75
|
-
th: string;
|
|
76
|
-
root: string;
|
|
77
|
-
};
|
|
78
|
-
bordered: {
|
|
79
|
-
th: string;
|
|
80
|
-
td: string;
|
|
81
|
-
root: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
radius: {
|
|
85
|
-
sm: {};
|
|
86
|
-
md: {};
|
|
87
|
-
lg: {};
|
|
88
|
-
xl: {};
|
|
89
|
-
"2xl": {};
|
|
90
|
-
"3xl": {};
|
|
91
|
-
full: {};
|
|
92
|
-
none: {};
|
|
93
|
-
};
|
|
94
|
-
density: {
|
|
95
|
-
compact: {
|
|
96
|
-
td: string;
|
|
97
|
-
};
|
|
98
|
-
standard: {
|
|
99
|
-
td: string;
|
|
100
|
-
};
|
|
101
|
-
comfortable: {
|
|
102
|
-
td: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
isHeaderSticky: {
|
|
106
|
-
true: {
|
|
107
|
-
thead: string;
|
|
108
|
-
wrapper: string;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
allowHover: {
|
|
112
|
-
true: {
|
|
113
|
-
td: string;
|
|
114
|
-
};
|
|
115
|
-
false: {
|
|
116
|
-
td: string;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
separateRows: {
|
|
120
|
-
true: {
|
|
121
|
-
tr: string;
|
|
122
|
-
td: string;
|
|
123
|
-
root: string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
}, {
|
|
127
|
-
root: string;
|
|
128
|
-
wrapper: string;
|
|
129
|
-
table: string;
|
|
130
|
-
thead: string;
|
|
131
|
-
th: string;
|
|
132
|
-
tbody: string;
|
|
133
|
-
tr: string;
|
|
134
|
-
td: string;
|
|
135
|
-
tfoot: string;
|
|
136
|
-
sortIcon: string;
|
|
137
|
-
emptyWrapper: string;
|
|
138
|
-
loadingWrapper: string;
|
|
139
|
-
}, tailwind_variants.TVReturnType<{
|
|
140
|
-
variant: {
|
|
141
|
-
solid: {
|
|
142
|
-
th: string;
|
|
143
|
-
root: string;
|
|
144
|
-
};
|
|
145
|
-
bordered: {
|
|
146
|
-
th: string;
|
|
147
|
-
td: string;
|
|
148
|
-
root: string;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
radius: {
|
|
152
|
-
sm: {};
|
|
153
|
-
md: {};
|
|
154
|
-
lg: {};
|
|
155
|
-
xl: {};
|
|
156
|
-
"2xl": {};
|
|
157
|
-
"3xl": {};
|
|
158
|
-
full: {};
|
|
159
|
-
none: {};
|
|
160
|
-
};
|
|
161
|
-
density: {
|
|
162
|
-
compact: {
|
|
163
|
-
td: string;
|
|
164
|
-
};
|
|
165
|
-
standard: {
|
|
166
|
-
td: string;
|
|
167
|
-
};
|
|
168
|
-
comfortable: {
|
|
169
|
-
td: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
isHeaderSticky: {
|
|
173
|
-
true: {
|
|
174
|
-
thead: string;
|
|
175
|
-
wrapper: string;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
allowHover: {
|
|
179
|
-
true: {
|
|
180
|
-
td: string;
|
|
181
|
-
};
|
|
182
|
-
false: {
|
|
183
|
-
td: string;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
separateRows: {
|
|
187
|
-
true: {
|
|
188
|
-
tr: string;
|
|
189
|
-
td: string;
|
|
190
|
-
root: string;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
}, {
|
|
194
|
-
root: string;
|
|
195
|
-
wrapper: string;
|
|
196
|
-
table: string;
|
|
197
|
-
thead: string;
|
|
198
|
-
th: string;
|
|
199
|
-
tbody: string;
|
|
200
|
-
tr: string;
|
|
201
|
-
td: string;
|
|
202
|
-
tfoot: string;
|
|
203
|
-
sortIcon: string;
|
|
204
|
-
emptyWrapper: string;
|
|
205
|
-
loadingWrapper: string;
|
|
206
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
207
|
-
type TableVariantProps = VariantProps<typeof tableVariants>;
|
|
208
|
-
type TableSlots = keyof ReturnType<typeof tableVariants>;
|
|
209
|
-
|
|
210
|
-
export { type TableSlots, type TableVariantProps, tableVariants, test };
|
package/dist/styles.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTUDBCRW7js = require('./chunk-TUDBCRW7.js');exports.tableVariants = _chunkTUDBCRW7js.b; exports.test = _chunkTUDBCRW7js.a;
|
package/dist/table-2IVtRYPc.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
3
|
-
import { TableVariantProps, TableSlots } from './styles.js';
|
|
4
|
-
import { TableBody } from './table-body.js';
|
|
5
|
-
import { TableCell } from './table-cell.js';
|
|
6
|
-
import { TableColumn } from './table-column.js';
|
|
7
|
-
import { TableFooter } from './table-footer.js';
|
|
8
|
-
import { TableHeader } from './table-header.js';
|
|
9
|
-
import { TableRow } from './table-row.js';
|
|
10
|
-
import { TableWrapper } from './table-wrapper.js';
|
|
11
|
-
|
|
12
|
-
declare const useTable: (props: useTable.Props) => {
|
|
13
|
-
getRootProps: PropGetter<Table.Props>;
|
|
14
|
-
getTableProps: PropGetter<Table.Props>;
|
|
15
|
-
getHeaderProps: PropGetter<TableHeader.Props>;
|
|
16
|
-
getColumnProps: PropGetter<TableColumn.Props>;
|
|
17
|
-
getBodyProps: PropGetter<TableBody.Props>;
|
|
18
|
-
getRowProps: PropGetter<TableRow.Props>;
|
|
19
|
-
getCellProps: PropGetter<TableCell.Props>;
|
|
20
|
-
getFooterProps: PropGetter<TableFooter.Props>;
|
|
21
|
-
getWrapperProps: PropGetter<TableWrapper.Props>;
|
|
22
|
-
};
|
|
23
|
-
declare namespace useTable {
|
|
24
|
-
interface Props extends UIProps<"table">, TableVariantProps {
|
|
25
|
-
classNames?: SlotsToClassNames<TableSlots>;
|
|
26
|
-
slotProps?: {
|
|
27
|
-
table?: Table.Props;
|
|
28
|
-
header?: TableHeader.Props;
|
|
29
|
-
column?: TableColumn.Props;
|
|
30
|
-
body?: TableBody.Props;
|
|
31
|
-
row?: TableRow.Props;
|
|
32
|
-
cell?: TableCell.Props;
|
|
33
|
-
footer?: TableFooter.Props;
|
|
34
|
-
wrapper?: TableWrapper.Props;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare const Table: (props: Table.Props) => react.JSX.Element;
|
|
40
|
-
declare namespace Table {
|
|
41
|
-
interface Props extends useTable.Props {
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { Table as T, useTable as u };
|
package/dist/table-body.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const TableBody: (props: TableBody.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace TableBody {
|
|
6
|
-
interface Props extends UIProps<"tbody"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { TableBody };
|
package/dist/table-body.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVOSLASECjs = require('./chunk-VOSLASEC.js');require('./chunk-IUKUUQL4.js');require('./chunk-4HKO3A5Q.js');require('./chunk-NTBPFXNE.js');require('./chunk-GKIPZGG6.js');exports.TableBody = _chunkVOSLASECjs.a;
|
package/dist/table-cell.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const TableCell: (props: TableCell.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace TableCell {
|
|
6
|
-
interface Props extends UIProps<"td"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { TableCell };
|
package/dist/table-cell.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNTBPFXNEjs = require('./chunk-NTBPFXNE.js');require('./chunk-GKIPZGG6.js');exports.TableCell = _chunkNTBPFXNEjs.a;
|
package/dist/table-column.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const TableColumn: (props: TableColumn.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace TableColumn {
|
|
6
|
-
interface Props extends UIProps<"th"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { TableColumn };
|
package/dist/table-column.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZEQXYD6Gjs = require('./chunk-ZEQXYD6G.js');require('./chunk-GKIPZGG6.js');exports.TableColumn = _chunkZEQXYD6Gjs.a;
|
package/dist/table-config.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { T as Table } from './table-2IVtRYPc.js';
|
|
2
|
-
import './table-body.js';
|
|
3
|
-
import './table-cell.js';
|
|
4
|
-
import './table-column.js';
|
|
5
|
-
import * as react from 'react';
|
|
6
|
-
import { GlobalConfigProps } from '@jamsrui/core';
|
|
7
|
-
import './table-header.js';
|
|
8
|
-
import './table-row.js';
|
|
9
|
-
import '@jamsrui/utils';
|
|
10
|
-
import './styles.js';
|
|
11
|
-
import 'tailwind-variants';
|
|
12
|
-
import './table-footer.js';
|
|
13
|
-
import './table-wrapper.js';
|
|
14
|
-
|
|
15
|
-
declare const useTableConfig: () => TableConfig.Props;
|
|
16
|
-
declare const TableConfig: (props: TableConfig.Props & {
|
|
17
|
-
merge?: boolean;
|
|
18
|
-
}) => react.JSX.Element;
|
|
19
|
-
declare namespace TableConfig {
|
|
20
|
-
interface Props extends Table.Props, GlobalConfigProps<Table.Props> {
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { TableConfig, useTableConfig };
|
package/dist/table-config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQMFUPHXAjs = require('./chunk-QMFUPHXA.js');exports.TableConfig = _chunkQMFUPHXAjs.a; exports.useTableConfig = _chunkQMFUPHXAjs.b;
|
package/dist/table-context.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { u as useTable } from './table-2IVtRYPc.js';
|
|
3
|
-
import '@jamsrui/utils';
|
|
4
|
-
import './styles.js';
|
|
5
|
-
import 'tailwind-variants';
|
|
6
|
-
import './table-body.js';
|
|
7
|
-
import './table-cell.js';
|
|
8
|
-
import './table-column.js';
|
|
9
|
-
import './table-footer.js';
|
|
10
|
-
import './table-header.js';
|
|
11
|
-
import './table-row.js';
|
|
12
|
-
import './table-wrapper.js';
|
|
13
|
-
|
|
14
|
-
declare const useTableContext: () => TableContext.Props;
|
|
15
|
-
declare const TableContext: react.Context<TableContext.Props | null>;
|
|
16
|
-
declare namespace TableContext {
|
|
17
|
-
interface Props extends ReturnType<typeof useTable> {
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { TableContext, useTableContext };
|
package/dist/table-context.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');exports.TableContext = _chunkGKIPZGG6js.a; exports.useTableContext = _chunkGKIPZGG6js.b;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIUKUUQL4js = require('./chunk-IUKUUQL4.js');require('./chunk-4HKO3A5Q.js');require('./chunk-NTBPFXNE.js');require('./chunk-GKIPZGG6.js');exports.TableEmptyState = _chunkIUKUUQL4js.a;
|
package/dist/table-footer.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const TableFooter: (props: TableFooter.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace TableFooter {
|
|
6
|
-
interface Props extends UIProps<"tfoot"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { TableFooter };
|
package/dist/table-footer.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGKIPZGG6js = require('./chunk-GKIPZGG6.js');var _hooks = require('@jamsrui/hooks');var m=o=>{let{getFooterProps:r}=_chunkGKIPZGG6js.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "tfoot",{props:[r(o)]})};exports.TableFooter = m;
|
package/dist/table-header.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const TableHeader: (props: TableHeader.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace TableHeader {
|
|
6
|
-
interface Props extends UIProps<"thead"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { TableHeader };
|
package/dist/table-header.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAOUQYQBMjs = require('./chunk-AOUQYQBM.js');require('./chunk-GKIPZGG6.js');exports.TableHeader = _chunkAOUQYQBMjs.a;
|
package/dist/table-root.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const TableTable: (props: TableTable.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace TableTable {
|
|
6
|
-
interface Props extends UIProps<"table"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { TableTable };
|
package/dist/table-root.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3DEGOO53js = require('./chunk-3DEGOO53.js');require('./chunk-GKIPZGG6.js');exports.TableTable = _chunk3DEGOO53js.a;
|
package/dist/table-row.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const TableRow: (props: TableRow.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace TableRow {
|
|
6
|
-
interface Props extends UIProps<"tr"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { TableRow };
|
package/dist/table-row.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4HKO3A5Qjs = require('./chunk-4HKO3A5Q.js');require('./chunk-GKIPZGG6.js');exports.TableRow = _chunk4HKO3A5Qjs.a;
|
package/dist/table-wrapper.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const TableWrapper: (props: TableWrapper.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace TableWrapper {
|
|
6
|
-
interface Props extends UIProps<"div"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { TableWrapper };
|
package/dist/table-wrapper.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk33TE2BHZjs = require('./chunk-33TE2BHZ.js');require('./chunk-GKIPZGG6.js');exports.TableWrapper = _chunk33TE2BHZjs.a;
|
package/dist/table.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { T as Table } from './table-2IVtRYPc.js';
|
|
3
|
-
import '@jamsrui/utils';
|
|
4
|
-
import './styles.js';
|
|
5
|
-
import 'tailwind-variants';
|
|
6
|
-
import './table-body.js';
|
|
7
|
-
import './table-cell.js';
|
|
8
|
-
import './table-column.js';
|
|
9
|
-
import './table-footer.js';
|
|
10
|
-
import './table-header.js';
|
|
11
|
-
import './table-row.js';
|
|
12
|
-
import './table-wrapper.js';
|
package/dist/table.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkU734EP46js = require('./chunk-U734EP46.js');require('./chunk-3DEGOO53.js');require('./chunk-33TE2BHZ.js');require('./chunk-J4IKCIFW.js');require('./chunk-TUDBCRW7.js');require('./chunk-QMFUPHXA.js');require('./chunk-GKIPZGG6.js');exports.Table = _chunkU734EP46js.a;
|
package/dist/use-table.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import '@jamsrui/utils';
|
|
2
|
-
import './styles.js';
|
|
3
|
-
export { u as useTable } from './table-2IVtRYPc.js';
|
|
4
|
-
import './table-body.js';
|
|
5
|
-
import './table-cell.js';
|
|
6
|
-
import './table-column.js';
|
|
7
|
-
import './table-footer.js';
|
|
8
|
-
import './table-header.js';
|
|
9
|
-
import './table-row.js';
|
|
10
|
-
import './table-wrapper.js';
|
|
11
|
-
import 'tailwind-variants';
|
|
12
|
-
import 'react';
|
package/dist/use-table.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJ4IKCIFWjs = require('./chunk-J4IKCIFW.js');require('./chunk-TUDBCRW7.js');exports.useTable = _chunkJ4IKCIFWjs.a;
|