@trackunit/react-table-base-components 1.0.80 → 1.1.1
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/index.cjs.js
CHANGED
|
@@ -104,8 +104,8 @@ const cvaSecondaryRowText = cssClassVarianceUtilities.cvaMerge(["overflow-hidden
|
|
|
104
104
|
* @param {MultiRowTableCellProps} props - The props for the MultiRowTableCell component
|
|
105
105
|
* @returns {JSX.Element} MultiRowTableCell component
|
|
106
106
|
*/
|
|
107
|
-
const MultiRowTableCell = ({ main, secondary, dataTestId }) => {
|
|
108
|
-
return (jsxRuntime.jsx("div", { className: cvaMultiRowTableCell(), children: jsxRuntime.jsxs("section", { className: cvaMultiRowTableCellSection(), "data-testid": dataTestId, children: [typeof main === "string" ? jsxRuntime.jsx("div", { className: cvaMainRowText(), children: main }) : main, secondary && typeof secondary === "string" ? (jsxRuntime.jsx("div", { className: cvaSecondaryRowText(), children: secondary })) : (secondary)] }) }));
|
|
107
|
+
const MultiRowTableCell = ({ main, secondary, dataTestId, className }) => {
|
|
108
|
+
return (jsxRuntime.jsx("div", { className: cvaMultiRowTableCell({ className }), children: jsxRuntime.jsxs("section", { className: cvaMultiRowTableCellSection(), "data-testid": dataTestId, children: [typeof main === "string" ? jsxRuntime.jsx("div", { className: cvaMainRowText(), children: main }) : main, secondary && typeof secondary === "string" ? (jsxRuntime.jsx("div", { className: cvaSecondaryRowText(), children: secondary })) : (secondary)] }) }));
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
const cvaMultiValueTextCellWrapper = cssClassVarianceUtilities.cvaMerge(["flex", "flex-row", "items-center", "gap-1", "overflow-hidden"]);
|
package/index.esm.js
CHANGED
|
@@ -102,8 +102,8 @@ const cvaSecondaryRowText = cvaMerge(["overflow-hidden", "text-ellipsis", "text-
|
|
|
102
102
|
* @param {MultiRowTableCellProps} props - The props for the MultiRowTableCell component
|
|
103
103
|
* @returns {JSX.Element} MultiRowTableCell component
|
|
104
104
|
*/
|
|
105
|
-
const MultiRowTableCell = ({ main, secondary, dataTestId }) => {
|
|
106
|
-
return (jsx("div", { className: cvaMultiRowTableCell(), children: jsxs("section", { className: cvaMultiRowTableCellSection(), "data-testid": dataTestId, children: [typeof main === "string" ? jsx("div", { className: cvaMainRowText(), children: main }) : main, secondary && typeof secondary === "string" ? (jsx("div", { className: cvaSecondaryRowText(), children: secondary })) : (secondary)] }) }));
|
|
105
|
+
const MultiRowTableCell = ({ main, secondary, dataTestId, className }) => {
|
|
106
|
+
return (jsx("div", { className: cvaMultiRowTableCell({ className }), children: jsxs("section", { className: cvaMultiRowTableCellSection(), "data-testid": dataTestId, children: [typeof main === "string" ? jsx("div", { className: cvaMainRowText(), children: main }) : main, secondary && typeof secondary === "string" ? (jsx("div", { className: cvaSecondaryRowText(), children: secondary })) : (secondary)] }) }));
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
const cvaMultiValueTextCellWrapper = cvaMerge(["flex", "flex-row", "items-center", "gap-1", "overflow-hidden"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table-base-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "18.3.1",
|
|
11
11
|
"@js-temporal/polyfill": "^0.4.4",
|
|
12
|
-
"@trackunit/react-components": "1.1
|
|
13
|
-
"@trackunit/ui-icons": "1.
|
|
14
|
-
"@trackunit/react-form-components": "1.
|
|
15
|
-
"@trackunit/css-class-variance-utilities": "1.
|
|
16
|
-
"@trackunit/date-and-time-utils": "1.
|
|
17
|
-
"@trackunit/shared-utils": "1.
|
|
12
|
+
"@trackunit/react-components": "1.2.1",
|
|
13
|
+
"@trackunit/ui-icons": "1.1.1",
|
|
14
|
+
"@trackunit/react-form-components": "1.1.1",
|
|
15
|
+
"@trackunit/css-class-variance-utilities": "1.1.1",
|
|
16
|
+
"@trackunit/date-and-time-utils": "1.1.1",
|
|
17
|
+
"@trackunit/shared-utils": "1.3.1"
|
|
18
18
|
},
|
|
19
19
|
"module": "./index.esm.js",
|
|
20
20
|
"main": "./index.cjs.js",
|
|
@@ -15,4 +15,4 @@ export interface MultiRowTableCellProps extends CommonProps {
|
|
|
15
15
|
* @param {MultiRowTableCellProps} props - The props for the MultiRowTableCell component
|
|
16
16
|
* @returns {JSX.Element} MultiRowTableCell component
|
|
17
17
|
*/
|
|
18
|
-
export declare const MultiRowTableCell: ({ main, secondary, dataTestId }: MultiRowTableCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const MultiRowTableCell: ({ main, secondary, dataTestId, className }: MultiRowTableCellProps) => import("react/jsx-runtime").JSX.Element;
|