@kopexa/table 0.0.4 → 1.0.0

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.
@@ -7,7 +7,7 @@ var __export = (target, all) => {
7
7
 
8
8
  // src/table.tsx
9
9
  import { createContext, mergeRefs } from "@kopexa/react-utils";
10
- import { callAllHandlers, dataAttr } from "@kopexa/shared-utils";
10
+ import { callAllHandlers, cn, dataAttr } from "@kopexa/shared-utils";
11
11
  import {
12
12
  table
13
13
  } from "@kopexa/theme";
@@ -26,16 +26,29 @@ var TableRoot = (props) => {
26
26
  layout,
27
27
  fullWidth,
28
28
  overscroll,
29
+ variant,
30
+ bleed,
31
+ classNames,
29
32
  ...rest
30
33
  } = props;
31
34
  const styles = table({
32
- className,
33
35
  isSelectable,
34
36
  layout,
35
37
  fullWidth,
36
- overscroll
38
+ variant,
39
+ overscroll,
40
+ bleed
37
41
  });
38
- return /* @__PURE__ */ jsx(Provider, { value: { styles, onRowClick }, children: /* @__PURE__ */ jsx("table", { className: styles.table(), ...rest, children }) });
42
+ return /* @__PURE__ */ jsx(Provider, { value: { styles, onRowClick }, children: /* @__PURE__ */ jsx("div", { className: styles.container({ className: classNames == null ? void 0 : classNames.container }), children: /* @__PURE__ */ jsx("div", { className: styles.wrapper({ className: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ jsx(
43
+ "table",
44
+ {
45
+ className: styles.table({
46
+ className: cn(className, classNames == null ? void 0 : classNames.table)
47
+ }),
48
+ ...rest,
49
+ children
50
+ }
51
+ ) }) }) });
39
52
  };
40
53
  function TableHead(props) {
41
54
  const { className, ...rest } = props;
@@ -7,7 +7,7 @@ import {
7
7
  TableRoot,
8
8
  TableRow,
9
9
  __export
10
- } from "./chunk-TNTMVIA6.mjs";
10
+ } from "./chunk-CSL5I4TN.mjs";
11
11
 
12
12
  // src/namespace.ts
13
13
  var namespace_exports = {};
package/dist/index.js CHANGED
@@ -55,16 +55,29 @@ var TableRoot = (props) => {
55
55
  layout,
56
56
  fullWidth,
57
57
  overscroll,
58
+ variant,
59
+ bleed,
60
+ classNames,
58
61
  ...rest
59
62
  } = props;
60
63
  const styles = (0, import_theme.table)({
61
- className,
62
64
  isSelectable,
63
65
  layout,
64
66
  fullWidth,
65
- overscroll
67
+ variant,
68
+ overscroll,
69
+ bleed
66
70
  });
67
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles, onRowClick }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("table", { className: styles.table(), ...rest, children }) });
71
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles, onRowClick }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.container({ className: classNames == null ? void 0 : classNames.container }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.wrapper({ className: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
+ "table",
73
+ {
74
+ className: styles.table({
75
+ className: (0, import_shared_utils.cn)(className, classNames == null ? void 0 : classNames.table)
76
+ }),
77
+ ...rest,
78
+ children
79
+ }
80
+ ) }) }) });
68
81
  };
69
82
  function TableHead(props) {
70
83
  const { className, ...rest } = props;
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  namespace_exports
4
- } from "./chunk-XZPIY5WV.mjs";
5
- import "./chunk-TNTMVIA6.mjs";
4
+ } from "./chunk-QXAVSODK.mjs";
5
+ import "./chunk-CSL5I4TN.mjs";
6
6
  export {
7
7
  namespace_exports as Table
8
8
  };
package/dist/namespace.js CHANGED
@@ -49,16 +49,29 @@ var TableRoot = (props) => {
49
49
  layout,
50
50
  fullWidth,
51
51
  overscroll,
52
+ variant,
53
+ bleed,
54
+ classNames,
52
55
  ...rest
53
56
  } = props;
54
57
  const styles = (0, import_theme.table)({
55
- className,
56
58
  isSelectable,
57
59
  layout,
58
60
  fullWidth,
59
- overscroll
61
+ variant,
62
+ overscroll,
63
+ bleed
60
64
  });
61
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles, onRowClick }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("table", { className: styles.table(), ...rest, children }) });
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles, onRowClick }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.container({ className: classNames == null ? void 0 : classNames.container }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.wrapper({ className: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
66
+ "table",
67
+ {
68
+ className: styles.table({
69
+ className: (0, import_shared_utils.cn)(className, classNames == null ? void 0 : classNames.table)
70
+ }),
71
+ ...rest,
72
+ children
73
+ }
74
+ ) }) }) });
62
75
  };
63
76
  function TableHead(props) {
64
77
  const { className, ...rest } = props;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import "./chunk-XZPIY5WV.mjs";
2
+ import "./chunk-QXAVSODK.mjs";
3
3
  import {
4
4
  TableBody,
5
5
  TableCell,
@@ -7,7 +7,7 @@ import {
7
7
  TableHeaderCell,
8
8
  TableRoot,
9
9
  TableRow
10
- } from "./chunk-TNTMVIA6.mjs";
10
+ } from "./chunk-CSL5I4TN.mjs";
11
11
  export {
12
12
  TableBody as Body,
13
13
  TableCell as Cell,
package/dist/table.js CHANGED
@@ -47,16 +47,29 @@ var TableRoot = (props) => {
47
47
  layout,
48
48
  fullWidth,
49
49
  overscroll,
50
+ variant,
51
+ bleed,
52
+ classNames,
50
53
  ...rest
51
54
  } = props;
52
55
  const styles = (0, import_theme.table)({
53
- className,
54
56
  isSelectable,
55
57
  layout,
56
58
  fullWidth,
57
- overscroll
59
+ variant,
60
+ overscroll,
61
+ bleed
58
62
  });
59
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles, onRowClick }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("table", { className: styles.table(), ...rest, children }) });
63
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles, onRowClick }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.container({ className: classNames == null ? void 0 : classNames.container }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.wrapper({ className: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
64
+ "table",
65
+ {
66
+ className: styles.table({
67
+ className: (0, import_shared_utils.cn)(className, classNames == null ? void 0 : classNames.table)
68
+ }),
69
+ ...rest,
70
+ children
71
+ }
72
+ ) }) }) });
60
73
  };
61
74
  function TableHead(props) {
62
75
  const { className, ...rest } = props;
package/dist/table.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  TableHeaderCell,
7
7
  TableRoot,
8
8
  TableRow
9
- } from "./chunk-TNTMVIA6.mjs";
9
+ } from "./chunk-CSL5I4TN.mjs";
10
10
  export {
11
11
  TableBody,
12
12
  TableCell,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/table",
3
- "version": "0.0.4",
3
+ "version": "1.0.0",
4
4
  "description": "ables are used to display tabular data using rows and columns. ",
5
5
  "keywords": [
6
6
  "table"
@@ -28,11 +28,11 @@
28
28
  "react": ">=19.0.0-rc.0",
29
29
  "react-dom": ">=19.0.0-rc.0",
30
30
  "motion": ">=12.23.6",
31
- "@kopexa/theme": "1.5.7"
31
+ "@kopexa/theme": "1.6.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "@kopexa/shared-utils": "1.1.5",
35
- "@kopexa/react-utils": "2.0.5",
35
+ "@kopexa/react-utils": "2.0.6",
36
36
  "@kopexa/use-hover": "0.0.1"
37
37
  },
38
38
  "clean-package": "../../../clean-package.config.json",