@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.
- package/dist/{chunk-TNTMVIA6.mjs → chunk-CSL5I4TN.mjs} +17 -4
- package/dist/{chunk-XZPIY5WV.mjs → chunk-QXAVSODK.mjs} +1 -1
- package/dist/index.js +16 -3
- package/dist/index.mjs +2 -2
- package/dist/namespace.js +16 -3
- package/dist/namespace.mjs +2 -2
- package/dist/table.js +16 -3
- package/dist/table.mjs +1 -1
- package/package.json +3 -3
|
@@ -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
|
-
|
|
38
|
+
variant,
|
|
39
|
+
overscroll,
|
|
40
|
+
bleed
|
|
37
41
|
});
|
|
38
|
-
return /* @__PURE__ */ jsx(Provider, { value: { styles, onRowClick }, children: /* @__PURE__ */ jsx("
|
|
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;
|
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
|
-
|
|
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)("
|
|
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
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
|
-
|
|
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)("
|
|
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;
|
package/dist/namespace.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-
|
|
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-
|
|
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
|
-
|
|
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)("
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/table",
|
|
3
|
-
"version": "0.0
|
|
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.
|
|
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.
|
|
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",
|