@tecsinapse/cortex-react 1.1.0 → 1.2.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.
|
@@ -3,14 +3,45 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var cortexCore = require('@tecsinapse/cortex-core');
|
|
5
5
|
|
|
6
|
-
const THead = ({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
const THead = ({
|
|
7
|
+
children,
|
|
8
|
+
className,
|
|
9
|
+
...rest
|
|
10
|
+
}) => /* @__PURE__ */ React.createElement("thead", { className: cortexCore.tHead({ className }), ...rest }, children);
|
|
11
|
+
const TRow = ({
|
|
12
|
+
children,
|
|
13
|
+
className,
|
|
14
|
+
...rest
|
|
15
|
+
}) => /* @__PURE__ */ React.createElement("tr", { className: cortexCore.tRow({ className }), ...rest }, children);
|
|
16
|
+
const THeadCell = ({
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
...rest
|
|
20
|
+
}) => /* @__PURE__ */ React.createElement("th", { className: cortexCore.tHeadCell({ className }), ...rest }, children);
|
|
21
|
+
const TCell = ({
|
|
22
|
+
children,
|
|
23
|
+
className,
|
|
24
|
+
...rest
|
|
25
|
+
}) => /* @__PURE__ */ React.createElement("td", { className: cortexCore.tCell({ className }), ...rest }, children);
|
|
26
|
+
const TFoot = ({
|
|
27
|
+
children,
|
|
28
|
+
className,
|
|
29
|
+
...rest
|
|
30
|
+
}) => /* @__PURE__ */ React.createElement("tfoot", { className: cortexCore.tFoot({ className }), ...rest }, children);
|
|
31
|
+
const Table = ({
|
|
32
|
+
children,
|
|
33
|
+
className,
|
|
34
|
+
...rest
|
|
35
|
+
}) => /* @__PURE__ */ React.createElement("table", { className: cortexCore.tRoot({ className }), ...rest }, children);
|
|
36
|
+
const Hr = ({
|
|
37
|
+
children,
|
|
38
|
+
className,
|
|
39
|
+
...rest
|
|
40
|
+
}) => /* @__PURE__ */ React.createElement("hr", { className: cortexCore.hr({ className }), ...rest }, children);
|
|
41
|
+
const Td = ({
|
|
42
|
+
children,
|
|
43
|
+
...rest
|
|
44
|
+
}) => /* @__PURE__ */ React.createElement("td", { colSpan: 99, ...rest }, children);
|
|
14
45
|
|
|
15
46
|
exports.Hr = Hr;
|
|
16
47
|
exports.TCell = TCell;
|
|
@@ -1,13 +1,44 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { tHead, tRow, tHeadCell, tCell, tFoot, tRoot, hr } from '@tecsinapse/cortex-core';
|
|
3
3
|
|
|
4
|
-
const THead = ({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
const THead = ({
|
|
5
|
+
children,
|
|
6
|
+
className,
|
|
7
|
+
...rest
|
|
8
|
+
}) => /* @__PURE__ */ React.createElement("thead", { className: tHead({ className }), ...rest }, children);
|
|
9
|
+
const TRow = ({
|
|
10
|
+
children,
|
|
11
|
+
className,
|
|
12
|
+
...rest
|
|
13
|
+
}) => /* @__PURE__ */ React.createElement("tr", { className: tRow({ className }), ...rest }, children);
|
|
14
|
+
const THeadCell = ({
|
|
15
|
+
children,
|
|
16
|
+
className,
|
|
17
|
+
...rest
|
|
18
|
+
}) => /* @__PURE__ */ React.createElement("th", { className: tHeadCell({ className }), ...rest }, children);
|
|
19
|
+
const TCell = ({
|
|
20
|
+
children,
|
|
21
|
+
className,
|
|
22
|
+
...rest
|
|
23
|
+
}) => /* @__PURE__ */ React.createElement("td", { className: tCell({ className }), ...rest }, children);
|
|
24
|
+
const TFoot = ({
|
|
25
|
+
children,
|
|
26
|
+
className,
|
|
27
|
+
...rest
|
|
28
|
+
}) => /* @__PURE__ */ React.createElement("tfoot", { className: tFoot({ className }), ...rest }, children);
|
|
29
|
+
const Table = ({
|
|
30
|
+
children,
|
|
31
|
+
className,
|
|
32
|
+
...rest
|
|
33
|
+
}) => /* @__PURE__ */ React.createElement("table", { className: tRoot({ className }), ...rest }, children);
|
|
34
|
+
const Hr = ({
|
|
35
|
+
children,
|
|
36
|
+
className,
|
|
37
|
+
...rest
|
|
38
|
+
}) => /* @__PURE__ */ React.createElement("hr", { className: hr({ className }), ...rest }, children);
|
|
39
|
+
const Td = ({
|
|
40
|
+
children,
|
|
41
|
+
...rest
|
|
42
|
+
}) => /* @__PURE__ */ React.createElement("td", { colSpan: 99, ...rest }, children);
|
|
12
43
|
|
|
13
44
|
export { Hr, TCell, TFoot, THead, THeadCell, TRow, Table, Td };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { HTMLAttributes, ReactNode, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
2
2
|
interface TableCommon {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const THead: ({ children }: TableCommon) => JSX.Element;
|
|
6
|
-
export declare const TRow: ({ children }: TableCommon) => JSX.Element;
|
|
7
|
-
export declare const THeadCell: ({ children }: TableCommon) => JSX.Element;
|
|
8
|
-
export declare const TCell: ({ children }: TableCommon) => JSX.Element;
|
|
9
|
-
export declare const TFoot: ({ children }: TableCommon) => JSX.Element;
|
|
10
|
-
export declare const Table: ({ children }: TableCommon) => JSX.Element;
|
|
11
|
-
export declare const Hr: ({ children }: TableCommon) => JSX.Element;
|
|
12
|
-
export declare const Td: ({ children }: TableCommon) => JSX.Element;
|
|
5
|
+
export declare const THead: ({ children, className, ...rest }: TableCommon & HTMLAttributes<HTMLTableSectionElement>) => JSX.Element;
|
|
6
|
+
export declare const TRow: ({ children, className, ...rest }: TableCommon & React.HTMLAttributes<HTMLTableRowElement>) => JSX.Element;
|
|
7
|
+
export declare const THeadCell: ({ children, className, ...rest }: TableCommon & ThHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
8
|
+
export declare const TCell: ({ children, className, ...rest }: TableCommon & TdHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
9
|
+
export declare const TFoot: ({ children, className, ...rest }: TableCommon & HTMLAttributes<HTMLTableSectionElement>) => JSX.Element;
|
|
10
|
+
export declare const Table: ({ children, className, ...rest }: TableCommon & TableHTMLAttributes<HTMLTableElement>) => JSX.Element;
|
|
11
|
+
export declare const Hr: ({ children, className, ...rest }: TableCommon & HTMLAttributes<HTMLHRElement>) => JSX.Element;
|
|
12
|
+
export declare const Td: ({ children, ...rest }: TableCommon & TdHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
13
13
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"react-dom": ">=18.0.0",
|
|
35
35
|
"tailwind": ">=3.3.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "5fdf13313937b667682216c4f86b6b84fa4612a4"
|
|
38
38
|
}
|