@homebound/beam 4.49.0 → 4.50.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/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -6242,6 +6242,8 @@ type GridCellContent = {
|
|
|
6242
6242
|
tooltip?: ReactNode;
|
|
6243
6243
|
/** Set by `fieldCell`. Flexible body rows use 4px vertical padding. */
|
|
6244
6244
|
field?: true;
|
|
6245
|
+
/** Styles the cell's text with the AI treatment (`Tokens.AiFieldFg`, semibold), e.g. for text cells in a `GridDataRow.aiMode` row. */
|
|
6246
|
+
aiMode?: boolean;
|
|
6245
6247
|
};
|
|
6246
6248
|
/** Marks a cell as hosting a field. Flexible rows use 4px vertical padding so the field lines up with text cells. */
|
|
6247
6249
|
declare function fieldCell(cell: ReactNode | Omit<GridCellContent, "field">): GridCellContent;
|
package/dist/index.d.ts
CHANGED
|
@@ -6242,6 +6242,8 @@ type GridCellContent = {
|
|
|
6242
6242
|
tooltip?: ReactNode;
|
|
6243
6243
|
/** Set by `fieldCell`. Flexible body rows use 4px vertical padding. */
|
|
6244
6244
|
field?: true;
|
|
6245
|
+
/** Styles the cell's text with the AI treatment (`Tokens.AiFieldFg`, semibold), e.g. for text cells in a `GridDataRow.aiMode` row. */
|
|
6246
|
+
aiMode?: boolean;
|
|
6245
6247
|
};
|
|
6246
6248
|
/** Marks a cell as hosting a field. Flexible rows use 4px vertical padding so the field lines up with text cells. */
|
|
6247
6249
|
declare function fieldCell(cell: ReactNode | Omit<GridCellContent, "field">): GridCellContent;
|
package/dist/index.js
CHANGED
|
@@ -10878,6 +10878,13 @@ function RowImpl(props) {
|
|
|
10878
10878
|
...isGridCellContent(maybeContent) && maybeContent.typeScale ? {
|
|
10879
10879
|
...__typography2[maybeContent.typeScale] ?? {}
|
|
10880
10880
|
} : {},
|
|
10881
|
+
// AI text treatment, before the cell's `css` so callers can still override it
|
|
10882
|
+
...isGridCellContent(maybeContent) && maybeContent.aiMode && {
|
|
10883
|
+
fontWeight: "fw6",
|
|
10884
|
+
color: ["color_var", {
|
|
10885
|
+
"--color": "var(--b-ai-field-fg)"
|
|
10886
|
+
}]
|
|
10887
|
+
},
|
|
10881
10888
|
...isBodyRow && (column2.isField || isGridCellContent(maybeContent) && maybeContent.field) && style.fieldCellCss,
|
|
10882
10889
|
// And any cell specific css
|
|
10883
10890
|
...isGridCellContent(maybeContent) && maybeContent.css ? maybeContent.css : {},
|