@invana/ui 0.0.33 → 0.0.34
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -785,9 +785,9 @@ declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HT
|
|
|
785
785
|
/**
|
|
786
786
|
* No box, and nothing wasted on its outside: only the rules between rows
|
|
787
787
|
* are drawn, and the first and last columns sit flush with the text around
|
|
788
|
-
* the table. For a table
|
|
789
|
-
*
|
|
790
|
-
*
|
|
788
|
+
* the table. For a table set into running text — an assistant's answer.
|
|
789
|
+
* A table inside a card or a panel keeps its cell padding and drops only
|
|
790
|
+
* the box, with `bordered={false}`.
|
|
791
791
|
*/
|
|
792
792
|
seamless?: boolean;
|
|
793
793
|
/**
|
|
@@ -1536,8 +1536,10 @@ interface CastTableProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "c
|
|
|
1536
1536
|
*/
|
|
1537
1537
|
resolved?: CastResolution[];
|
|
1538
1538
|
readOnly?: boolean;
|
|
1539
|
-
/** Passed to the table: no box, outer columns flush — for a cast
|
|
1539
|
+
/** Passed to the table: no box, outer columns flush — for a cast set into running text. */
|
|
1540
1540
|
seamless?: boolean;
|
|
1541
|
+
/** Passed to the table: off drops the box and keeps the cell padding — for a cast inside a panel. */
|
|
1542
|
+
bordered?: boolean;
|
|
1541
1543
|
}
|
|
1542
1544
|
/**
|
|
1543
1545
|
* `role → resolves to → why this one`, four fixed rows.
|
package/dist/index.d.ts
CHANGED
|
@@ -785,9 +785,9 @@ declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HT
|
|
|
785
785
|
/**
|
|
786
786
|
* No box, and nothing wasted on its outside: only the rules between rows
|
|
787
787
|
* are drawn, and the first and last columns sit flush with the text around
|
|
788
|
-
* the table. For a table
|
|
789
|
-
*
|
|
790
|
-
*
|
|
788
|
+
* the table. For a table set into running text — an assistant's answer.
|
|
789
|
+
* A table inside a card or a panel keeps its cell padding and drops only
|
|
790
|
+
* the box, with `bordered={false}`.
|
|
791
791
|
*/
|
|
792
792
|
seamless?: boolean;
|
|
793
793
|
/**
|
|
@@ -1536,8 +1536,10 @@ interface CastTableProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "c
|
|
|
1536
1536
|
*/
|
|
1537
1537
|
resolved?: CastResolution[];
|
|
1538
1538
|
readOnly?: boolean;
|
|
1539
|
-
/** Passed to the table: no box, outer columns flush — for a cast
|
|
1539
|
+
/** Passed to the table: no box, outer columns flush — for a cast set into running text. */
|
|
1540
1540
|
seamless?: boolean;
|
|
1541
|
+
/** Passed to the table: off drops the box and keeps the cell padding — for a cast inside a panel. */
|
|
1542
|
+
bordered?: boolean;
|
|
1541
1543
|
}
|
|
1542
1544
|
/**
|
|
1543
1545
|
* `role → resolves to → why this one`, four fixed rows.
|
package/dist/index.js
CHANGED
|
@@ -4123,10 +4123,10 @@ var PURPOSE = {
|
|
|
4123
4123
|
embed: "text in, vector out"
|
|
4124
4124
|
};
|
|
4125
4125
|
var CastTable = React25.forwardRef(
|
|
4126
|
-
({ cast = {}, resolved, readOnly, seamless, className, ...props }, ref) => {
|
|
4126
|
+
({ cast = {}, resolved, readOnly, seamless, bordered, className, ...props }, ref) => {
|
|
4127
4127
|
const byRole = new Map((resolved ?? []).map((r) => [r.role, r]));
|
|
4128
4128
|
return /* @__PURE__ */ jsxs("div", { ref, className: cn("min-w-0", className), ...props, children: [
|
|
4129
|
-
/* @__PURE__ */ jsxs(Table, { density: "compact", seamless, children: [
|
|
4129
|
+
/* @__PURE__ */ jsxs(Table, { density: "compact", seamless, bordered, children: [
|
|
4130
4130
|
/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
4131
4131
|
/* @__PURE__ */ jsx(TableHead, { className: "w-[5.5rem]", children: "role" }),
|
|
4132
4132
|
/* @__PURE__ */ jsx(TableHead, { children: "resolves to" }),
|