@jamsrui/table 0.0.9 → 0.0.10

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 (38) hide show
  1. package/dist/chunk-2F5JM5AO.mjs +1 -0
  2. package/dist/chunk-2UOENW6T.mjs +1 -0
  3. package/dist/chunk-64OJE7BG.mjs +1 -0
  4. package/dist/chunk-6TH4QLR4.mjs +1 -0
  5. package/dist/chunk-BHSFC5BI.mjs +1 -0
  6. package/dist/chunk-EALHLWMO.mjs +1 -0
  7. package/dist/chunk-F5AMPC53.mjs +1 -0
  8. package/dist/chunk-G56JYZMX.mjs +1 -0
  9. package/dist/chunk-GSDCBY3X.mjs +1 -0
  10. package/dist/chunk-HZMKIGNF.mjs +0 -0
  11. package/dist/chunk-IPKE7YHM.mjs +1 -0
  12. package/dist/chunk-J4ZX6AQY.mjs +1 -0
  13. package/dist/chunk-NO7Q6M3H.mjs +1 -0
  14. package/dist/chunk-RJDA7IF5.mjs +1 -0
  15. package/dist/chunk-VJMTZ2OI.mjs +1 -0
  16. package/dist/chunk-VV6AJGJT.mjs +1 -0
  17. package/dist/chunk-XPEMMX4W.mjs +1 -0
  18. package/dist/chunk-YJQDUGSR.mjs +1 -0
  19. package/dist/index.mjs +1 -1
  20. package/dist/primitive/index.mjs +1 -1
  21. package/dist/primitive/styles.mjs +1 -1
  22. package/dist/primitive/table-body.mjs +1 -1
  23. package/dist/primitive/table-cell.mjs +1 -1
  24. package/dist/primitive/table-column.mjs +1 -1
  25. package/dist/primitive/table-config.mjs +1 -1
  26. package/dist/primitive/table-context.mjs +1 -1
  27. package/dist/primitive/table-empty-state.mjs +1 -1
  28. package/dist/primitive/table-footer.mjs +1 -1
  29. package/dist/primitive/table-header.mjs +1 -1
  30. package/dist/primitive/table-root.mjs +1 -1
  31. package/dist/primitive/table-row.mjs +1 -1
  32. package/dist/primitive/table-table.mjs +1 -1
  33. package/dist/primitive/table-wrapper.mjs +1 -1
  34. package/dist/primitive/table.mjs +1 -1
  35. package/dist/primitive/use-table.mjs +1 -1
  36. package/dist/table-config.mjs +1 -1
  37. package/dist/table.mjs +1 -1
  38. package/package.json +5 -6
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-EALHLWMO.mjs";import{b as e}from"./chunk-2F5JM5AO.mjs";import{useRenderElement as d}from"@jamsrui/hooks";import{jsx as l}from"react/jsx-runtime";var b=t=>{let{children:r,emptySlot:p=l(o,{}),...s}=t,{getBodyProps:n}=e(),m=r??p;return d("tbody",{props:[n(s),{children:m}]})};export{b as a};
@@ -0,0 +1 @@
1
+ import{radiusVariant as r,tv as e}from"@jamsrui/utils";var a=e({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 px-3 text-left text-sm font-normal","data-pinned:bg-background/90 data-pinned:backdrop-blur-xl"],tbody:"",tr:"group/tr",td:["overflow-hidden px-3 text-sm","data-pinned:bg-background/90 data-pinned:backdrop-blur-xl"],tfoot:""},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-divider-dark bg-surface-secondary text-foreground-secondary font-normal text-xs",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 [&>tr]:shadow-sm",wrapper:"flex max-h-[400px] flex-col overflow-auto",th:" bg-surface-secondary/90 backdrop-blur-xl"}},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:"bordered",radius:"md"}});export{a};
@@ -0,0 +1 @@
1
+ import{createConfigContext as o}from"@jamsrui/utils";var[r,a]=o({displayName:"TableConfig"});export{r as a,a as b};
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-64OJE7BG.mjs";import{useCallback as s,useMemo as g}from"react";import{cn as r,dataAttrDev as o,mapPropsVariants as w,mergeProps as G}from"@jamsrui/utils";var x=y=>{let[f,u]=w(y,m.variantKeys),{classNames:a,...l}=f,t=m(u),p=s(e=>({...e,"data-slot":o("root"),"data-component":o("table"),className:t.root({className:r(a?.root,e.className)})}),[a?.root,t]),c=s(e=>({...e,"data-slot":o("wrapper"),className:t.wrapper({className:r(a?.wrapper,e.className)})}),[a?.wrapper,t]),b=s(e=>({...G(l,e),"data-slot":o("table"),className:t.table({className:r(l.className,a?.table,e.className)})}),[a?.table,l,t]),P=s(e=>({...e,"data-slot":o("header"),className:t.thead({className:r(a?.thead,e.className)})}),[a?.thead,t]),n=s(e=>({...e,"data-slot":o("column"),className:t.th({className:r(a?.th,e.className)})}),[a?.th,t]),N=s(e=>({...e,"data-slot":o("body"),className:t.tbody({className:r(a?.tbody,e.className)})}),[a?.tbody,t]),d=s(e=>({...e,"data-slot":o("row"),className:t.tr({className:r(a?.tr,e.className)})}),[a?.tr,t]),T=s(e=>({...e,"data-slot":o("cell"),className:t.td({className:r(a?.td,e.className)})}),[a?.td,t]),i=s(e=>({...e,"data-slot":o("footer"),className:t.tfoot({className:r(a?.tfoot,e.className)})}),[a?.tfoot,t]);return g(()=>({getRootProps:p,getTableProps:b,getHeaderProps:P,getColumnProps:n,getBodyProps:N,getRowProps:d,getCellProps:T,getFooterProps:i,getWrapperProps:c}),[N,T,n,i,P,p,d,b,c])};export{x as a};
@@ -0,0 +1 @@
1
+ import{a as l}from"./chunk-IPKE7YHM.mjs";import{a as e}from"./chunk-VJMTZ2OI.mjs";import{jsx as o}from"react/jsx-runtime";var p=()=>o(l,{children:o(e,{className:"text-center py-12",colSpan:100,children:"No data found"})});export{p as a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-2F5JM5AO.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};
@@ -0,0 +1 @@
1
+ import{createConfigContext as o}from"@jamsrui/utils";var[r,a]=o({displayName:"TableConfig"});export{r as a,a as b};
@@ -0,0 +1 @@
1
+ import{a as b}from"./chunk-RJDA7IF5.mjs";import{a as m}from"./chunk-BHSFC5BI.mjs";import{b as t}from"./chunk-6TH4QLR4.mjs";import{a as l}from"./chunk-NO7Q6M3H.mjs";import{a as p}from"./chunk-VV6AJGJT.mjs";import{a}from"./chunk-2F5JM5AO.mjs";import{mergeConfigProps as f}from"@jamsrui/utils";import{jsx as e}from"react/jsx-runtime";var d=o=>{let{children:T}=o,r=t(),n=f(r,r,o),s=m(n);return e(a,{value:s,children:e(l,{children:e(b,{children:e(p,{children:T})})})})};export{d as a};
File without changes
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-2F5JM5AO.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};
@@ -0,0 +1 @@
1
+ import{b as n}from"./chunk-G56JYZMX.mjs";import{a as b}from"./chunk-RJDA7IF5.mjs";import{a as T}from"./chunk-BHSFC5BI.mjs";import{a as t}from"./chunk-NO7Q6M3H.mjs";import{a as l}from"./chunk-VV6AJGJT.mjs";import{a as r}from"./chunk-2F5JM5AO.mjs";import{mergeConfigProps as m}from"@jamsrui/utils";import{jsx as e}from"react/jsx-runtime";var g=o=>{let{children:p}=o,a=n(),s=m(a,a,o),c=T(s);return e(r,{value:c,children:e(t,{children:e(b,{children:e(l,{children:p})})})})};export{g as a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-2F5JM5AO.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var m=o=>{let{getRootProps:r}=e();return t("div",{props:[r(o)]})};export{m as a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-2F5JM5AO.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var a=r=>{let{getWrapperProps:p}=e();return t("div",{props:[p(r)]})};export{a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-2F5JM5AO.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};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-2F5JM5AO.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};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-2F5JM5AO.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};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-2F5JM5AO.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var m=o=>{let{getFooterProps:r}=e();return t("tfoot",{props:[r(o)]})};export{m as a};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import{TableBody as o,TableCell as a,TableColumn as b,TableFooter as T,TableHeader as r,TableRow as f}from"./primitive";import{Table as m}from"./table";import{TableConfig as C,useTableConfig as i}from"./table-config";export{m as Table,o as TableBody,a as TableCell,b as TableColumn,C as TableConfig,T as TableFooter,r as TableHeader,f as TableRow,i as useTableConfig};
1
+ "use client";import{a as t}from"./chunk-J4ZX6AQY.mjs";import{a as r,b as f}from"./chunk-G56JYZMX.mjs";import"./chunk-HZMKIGNF.mjs";import"./chunk-GSDCBY3X.mjs";import"./chunk-RJDA7IF5.mjs";import"./chunk-BHSFC5BI.mjs";import"./chunk-6TH4QLR4.mjs";import{a as b}from"./chunk-YJQDUGSR.mjs";import{a as T}from"./chunk-F5AMPC53.mjs";import"./chunk-NO7Q6M3H.mjs";import"./chunk-VV6AJGJT.mjs";import"./chunk-64OJE7BG.mjs";import{a as o}from"./chunk-2UOENW6T.mjs";import"./chunk-EALHLWMO.mjs";import{a as l}from"./chunk-IPKE7YHM.mjs";import{a as e}from"./chunk-VJMTZ2OI.mjs";import{a}from"./chunk-XPEMMX4W.mjs";import"./chunk-2F5JM5AO.mjs";export{t as Table,o as TableBody,e as TableCell,a as TableColumn,r as TableConfig,b as TableFooter,T as TableHeader,l as TableRow,f as useTableConfig};
@@ -1 +1 @@
1
- import{Table as r}from"./table";import{TableBody as a}from"./table-body";import{TableCell as p}from"./table-cell";import{TableColumn as T}from"./table-column";import{TableConfig as m,useTableConfig as x}from"./table-config";import{TableContext as n,useTableContext as C}from"./table-context";import{TableEmptyState as u}from"./table-empty-state";import{TableFooter as d}from"./table-footer";import{TableHeader as R}from"./table-header";import{TableRoot as V}from"./table-root";import{TableRow as B}from"./table-row";import{TableTable as F}from"./table-table";import{TableWrapper as P}from"./table-wrapper";import{useTable as c}from"./use-table";import{tableVariants as j}from"./styles";export{r as Table,a as TableBody,p as TableCell,T as TableColumn,m as TableConfig,n as TableContext,u as TableEmptyState,d as TableFooter,R as TableHeader,V as TableRoot,B as TableRow,F as TableTable,P as TableWrapper,j as tableVariants,c as useTable,x as useTableConfig,C as useTableContext};
1
+ import"../chunk-HZMKIGNF.mjs";import{a as j}from"../chunk-GSDCBY3X.mjs";import{a as g}from"../chunk-RJDA7IF5.mjs";import{a as i}from"../chunk-BHSFC5BI.mjs";import{a,b}from"../chunk-6TH4QLR4.mjs";import{a as p}from"../chunk-YJQDUGSR.mjs";import{a as q}from"../chunk-F5AMPC53.mjs";import{a as e}from"../chunk-NO7Q6M3H.mjs";import{a as f}from"../chunk-VV6AJGJT.mjs";import{a as h}from"../chunk-64OJE7BG.mjs";import{a as n}from"../chunk-2UOENW6T.mjs";import{a as m}from"../chunk-EALHLWMO.mjs";import{a as l}from"../chunk-IPKE7YHM.mjs";import{a as k}from"../chunk-VJMTZ2OI.mjs";import{a as o}from"../chunk-XPEMMX4W.mjs";import{a as c,b as d}from"../chunk-2F5JM5AO.mjs";export{j as Table,n as TableBody,k as TableCell,o as TableColumn,a as TableConfig,c as TableContext,m as TableEmptyState,p as TableFooter,q as TableHeader,e as TableRoot,l as TableRow,f as TableTable,g as TableWrapper,h as tableVariants,i as useTable,b as useTableConfig,d as useTableContext};
@@ -1 +1 @@
1
- import{radiusVariant as r,tv as e}from"@jamsrui/utils";const a=e({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 px-3 text-left text-sm font-normal","data-pinned:bg-background/90 data-pinned:backdrop-blur-xl"],tbody:"",tr:"group/tr",td:["overflow-hidden px-3 text-sm","data-pinned:bg-background/90 data-pinned:backdrop-blur-xl"],tfoot:""},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-divider-dark bg-surface-secondary text-foreground-secondary font-normal text-xs",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 [&>tr]:shadow-sm",wrapper:"flex max-h-[400px] flex-col overflow-auto",th:" bg-surface-secondary/90 backdrop-blur-xl"}},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:"bordered",radius:"md"}});export{a as tableVariants};
1
+ import{a}from"../chunk-64OJE7BG.mjs";export{a as tableVariants};
@@ -1 +1 @@
1
- import{jsx as l}from"react/jsx-runtime";import{useRenderElement as n}from"@jamsrui/hooks";import{useTableContext as m}from"./table-context";import{TableEmptyState as d}from"./table-empty-state";const b=e=>{const{children:o,emptySlot:t=l(d,{}),...r}=e,{getBodyProps:p}=m(),s=o??t;return n("tbody",{props:[p(r),{children:s}]})};export{b as TableBody};
1
+ import{a}from"../chunk-2UOENW6T.mjs";import"../chunk-EALHLWMO.mjs";import"../chunk-IPKE7YHM.mjs";import"../chunk-VJMTZ2OI.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableBody};
@@ -1 +1 @@
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};
1
+ import{a}from"../chunk-VJMTZ2OI.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableCell};
@@ -1 +1 @@
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};
1
+ import{a}from"../chunk-XPEMMX4W.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableColumn};
@@ -1 +1 @@
1
- import{createConfigContext as o}from"@jamsrui/utils";const[r,a]=o({displayName:"TableConfig"});export{r as TableConfig,a as useTableConfig};
1
+ import{a,b}from"../chunk-6TH4QLR4.mjs";export{a as TableConfig,b as useTableConfig};
@@ -1 +1 @@
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
+ import{a,b}from"../chunk-2F5JM5AO.mjs";export{a as TableContext,b as useTableContext};
@@ -1 +1 @@
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};
1
+ import{a}from"../chunk-EALHLWMO.mjs";import"../chunk-IPKE7YHM.mjs";import"../chunk-VJMTZ2OI.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableEmptyState};
@@ -1 +1 @@
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};
1
+ import{a}from"../chunk-YJQDUGSR.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableFooter};
@@ -1 +1 @@
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};
1
+ import{a}from"../chunk-F5AMPC53.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableHeader};
@@ -1 +1 @@
1
- import{useRenderElement as r}from"@jamsrui/hooks";import{useTableContext as t}from"./table-context";const m=e=>{const{getRootProps:o}=t();return r("div",{props:[o(e)]})};export{m as TableRoot};
1
+ import{a}from"../chunk-NO7Q6M3H.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableRoot};
@@ -1 +1 @@
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};
1
+ import{a}from"../chunk-IPKE7YHM.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableRow};
@@ -1 +1 @@
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};
1
+ import{a}from"../chunk-VV6AJGJT.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableTable};
@@ -1 +1 @@
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};
1
+ import{a}from"../chunk-RJDA7IF5.mjs";import"../chunk-2F5JM5AO.mjs";export{a as TableWrapper};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{mergeConfigProps as p}from"@jamsrui/utils";import{useTableConfig as b}from"./table-config";import{TableContext as m}from"./table-context";import{TableRoot as T}from"./table-root";import{TableTable as n}from"./table-table";import{TableWrapper as s}from"./table-wrapper";import{useTable as f}from"./use-table";const d=o=>{const{children:t}=o,r=b(),a=p(r,r,o),l=f(a);return e(m,{value:l,children:e(T,{children:e(s,{children:e(n,{children:t})})})})};export{d as Table};
1
+ import{a}from"../chunk-GSDCBY3X.mjs";import"../chunk-RJDA7IF5.mjs";import"../chunk-BHSFC5BI.mjs";import"../chunk-6TH4QLR4.mjs";import"../chunk-NO7Q6M3H.mjs";import"../chunk-VV6AJGJT.mjs";import"../chunk-64OJE7BG.mjs";import"../chunk-2F5JM5AO.mjs";export{a as Table};
@@ -1 +1 @@
1
- import{useCallback as s,useMemo as g}from"react";import{cn as r,dataAttrDev as o,mapPropsVariants as w,mergeProps as G}from"@jamsrui/utils";import{tableVariants as i}from"./styles";const x=y=>{const[f,u]=w(y,i.variantKeys),{classNames:a,...l}=f,t=i(u),m=s(e=>({...e,"data-slot":o("root"),"data-component":o("table"),className:t.root({className:r(a?.root,e.className)})}),[a?.root,t]),p=s(e=>({...e,"data-slot":o("wrapper"),className:t.wrapper({className:r(a?.wrapper,e.className)})}),[a?.wrapper,t]),c=s(e=>({...G(l,e),"data-slot":o("table"),className:t.table({className:r(l.className,a?.table,e.className)})}),[a?.table,l,t]),b=s(e=>({...e,"data-slot":o("header"),className:t.thead({className:r(a?.thead,e.className)})}),[a?.thead,t]),P=s(e=>({...e,"data-slot":o("column"),className:t.th({className:r(a?.th,e.className)})}),[a?.th,t]),n=s(e=>({...e,"data-slot":o("body"),className:t.tbody({className:r(a?.tbody,e.className)})}),[a?.tbody,t]),N=s(e=>({...e,"data-slot":o("row"),className:t.tr({className:r(a?.tr,e.className)})}),[a?.tr,t]),d=s(e=>({...e,"data-slot":o("cell"),className:t.td({className:r(a?.td,e.className)})}),[a?.td,t]),T=s(e=>({...e,"data-slot":o("footer"),className:t.tfoot({className:r(a?.tfoot,e.className)})}),[a?.tfoot,t]);return g(()=>({getRootProps:m,getTableProps:c,getHeaderProps:b,getColumnProps:P,getBodyProps:n,getRowProps:N,getCellProps:d,getFooterProps:T,getWrapperProps:p}),[n,d,P,T,b,m,N,c,p])};export{x as useTable};
1
+ import{a}from"../chunk-BHSFC5BI.mjs";import"../chunk-64OJE7BG.mjs";export{a as useTable};
@@ -1 +1 @@
1
- import{createConfigContext as o}from"@jamsrui/utils";const[r,a]=o({displayName:"TableConfig"});export{r as TableConfig,a as useTableConfig};
1
+ import{a,b}from"./chunk-G56JYZMX.mjs";export{a as TableConfig,b as useTableConfig};
package/dist/table.mjs CHANGED
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{mergeConfigProps as b}from"@jamsrui/utils";import{TableContext as T,TableRoot as n,TableTable as p,TableWrapper as s,useTable as c}from"./primitive";import{useTableConfig as m}from"./table-config";const g=o=>{const{children:r}=o,a=m(),t=b(a,a,o),l=c(t);return e(T,{value:l,children:e(n,{children:e(s,{children:e(p,{children:r})})})})};export{g as Table};
1
+ import{a}from"./chunk-J4ZX6AQY.mjs";import"./chunk-G56JYZMX.mjs";import"./chunk-HZMKIGNF.mjs";import"./chunk-GSDCBY3X.mjs";import"./chunk-RJDA7IF5.mjs";import"./chunk-BHSFC5BI.mjs";import"./chunk-6TH4QLR4.mjs";import"./chunk-YJQDUGSR.mjs";import"./chunk-F5AMPC53.mjs";import"./chunk-NO7Q6M3H.mjs";import"./chunk-VV6AJGJT.mjs";import"./chunk-64OJE7BG.mjs";import"./chunk-2UOENW6T.mjs";import"./chunk-EALHLWMO.mjs";import"./chunk-IPKE7YHM.mjs";import"./chunk-VJMTZ2OI.mjs";import"./chunk-XPEMMX4W.mjs";import"./chunk-2F5JM5AO.mjs";export{a as Table};
package/package.json CHANGED
@@ -1,19 +1,18 @@
1
1
  {
2
2
  "name": "@jamsrui/table",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.9",
9
- "@jamsrui/core": "^0.0.8",
10
- "@jamsrui/utils": "^0.0.9"
8
+ "@jamsrui/core": "^0.0.9",
9
+ "@jamsrui/hooks": "^0.0.10",
10
+ "@jamsrui/utils": "^0.0.10"
11
11
  },
12
12
  "exports": {
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
- "import": "./dist/index.mjs",
16
- "require": "./dist/index.js"
15
+ "import": "./dist/index.mjs"
17
16
  }
18
17
  },
19
18
  "description": "A modern and beautiful Next.js UI components library.",