@trackunit/react-table-base-components 0.0.14 → 0.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table-base-components",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,8 +8,8 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@trackunit/css-class-variance-utilities": "0.0.14",
11
- "@trackunit/react-components": "0.1.158",
12
- "@trackunit/react-form-components": "0.0.143",
11
+ "@trackunit/react-components": "0.1.159",
12
+ "@trackunit/react-form-components": "0.0.145",
13
13
  "react": "18.2.0"
14
14
  },
15
15
  "module": "./index.esm.js",
@@ -0,0 +1,12 @@
1
+ import { CommonProps } from "@trackunit/react-components";
2
+ export interface TextCellProps extends CommonProps {
3
+ content?: string;
4
+ }
5
+ /**
6
+ * The `<TextCell>` component is used for displaying text in a table cell.
7
+ * The text is not editable and will be truncated if the cell is too narrow.
8
+ *
9
+ * @param {TextCellProps} props - The props for the TextCell component
10
+ * @returns {JSX.Element} TextCell component
11
+ */
12
+ export declare const TextCell: ({ content, className, dataTestId }: TextCellProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { TextCell } from "./TextCell";
3
+ import "./TextCell.variants";
4
+ type Story = StoryObj<typeof TextCell>;
5
+ declare const meta: Meta<typeof TextCell>;
6
+ export default meta;
7
+ export declare const Default: Story;
8
+ export declare const Example: Story;
@@ -0,0 +1 @@
1
+ export declare const cvaTextCell: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;