@homebound/beam 3.76.0 → 3.77.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 +14 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8586,10 +8586,13 @@ type HeaderAction = ({
|
|
|
8586
8586
|
kind: "icon";
|
|
8587
8587
|
} & Omit<IconButtonProps, "variant">);
|
|
8588
8588
|
|
|
8589
|
-
type
|
|
8589
|
+
type ContentHeaderXss = Xss<Padding>;
|
|
8590
|
+
type ContentHeaderProps<X = ContentHeaderXss> = {
|
|
8590
8591
|
title?: string;
|
|
8591
8592
|
description?: ReactNode;
|
|
8592
8593
|
actions?: HeaderAction[];
|
|
8594
|
+
/** Style overrides for padding. */
|
|
8595
|
+
xss?: X;
|
|
8593
8596
|
};
|
|
8594
8597
|
/**
|
|
8595
8598
|
* Generic title/description/actions header for content sections; stays visible while the page scrolls
|
|
@@ -8603,7 +8606,7 @@ type ContentHeaderProps = {
|
|
|
8603
8606
|
* so the containing block grows to match the full scrollable width — the same technique `GridTable`
|
|
8604
8607
|
* uses internally for its own sticky columns (`src/components/Table/GridTable.tsx`).
|
|
8605
8608
|
*/
|
|
8606
|
-
declare function ContentHeader(props: ContentHeaderProps): JSX.Element | null;
|
|
8609
|
+
declare function ContentHeader<X extends Only<ContentHeaderXss, X>>(props: ContentHeaderProps<X>): JSX.Element | null;
|
|
8607
8610
|
|
|
8608
8611
|
/**
|
|
8609
8612
|
* A helper component for consistently showing helper text below form fields.
|
package/dist/index.d.ts
CHANGED
|
@@ -8586,10 +8586,13 @@ type HeaderAction = ({
|
|
|
8586
8586
|
kind: "icon";
|
|
8587
8587
|
} & Omit<IconButtonProps, "variant">);
|
|
8588
8588
|
|
|
8589
|
-
type
|
|
8589
|
+
type ContentHeaderXss = Xss<Padding>;
|
|
8590
|
+
type ContentHeaderProps<X = ContentHeaderXss> = {
|
|
8590
8591
|
title?: string;
|
|
8591
8592
|
description?: ReactNode;
|
|
8592
8593
|
actions?: HeaderAction[];
|
|
8594
|
+
/** Style overrides for padding. */
|
|
8595
|
+
xss?: X;
|
|
8593
8596
|
};
|
|
8594
8597
|
/**
|
|
8595
8598
|
* Generic title/description/actions header for content sections; stays visible while the page scrolls
|
|
@@ -8603,7 +8606,7 @@ type ContentHeaderProps = {
|
|
|
8603
8606
|
* so the containing block grows to match the full scrollable width — the same technique `GridTable`
|
|
8604
8607
|
* uses internally for its own sticky columns (`src/components/Table/GridTable.tsx`).
|
|
8605
8608
|
*/
|
|
8606
|
-
declare function ContentHeader(props: ContentHeaderProps): JSX.Element | null;
|
|
8609
|
+
declare function ContentHeader<X extends Only<ContentHeaderXss, X>>(props: ContentHeaderProps<X>): JSX.Element | null;
|
|
8607
8610
|
|
|
8608
8611
|
/**
|
|
8609
8612
|
* A helper component for consistently showing helper text below form fields.
|
package/dist/index.js
CHANGED
|
@@ -24001,7 +24001,8 @@ function ContentHeader(props) {
|
|
|
24001
24001
|
const {
|
|
24002
24002
|
title,
|
|
24003
24003
|
description,
|
|
24004
|
-
actions
|
|
24004
|
+
actions,
|
|
24005
|
+
xss
|
|
24005
24006
|
} = props;
|
|
24006
24007
|
const tid = useTestIds(props, "contentHeader");
|
|
24007
24008
|
if (!title && !description && !actions) {
|
|
@@ -24016,15 +24017,18 @@ function ContentHeader(props) {
|
|
|
24016
24017
|
}]
|
|
24017
24018
|
}), ...tid.description, children: description });
|
|
24018
24019
|
return /* @__PURE__ */ jsxs91("div", { ...trussProps101({
|
|
24019
|
-
|
|
24020
|
-
|
|
24021
|
-
|
|
24022
|
-
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
|
|
24027
|
-
|
|
24020
|
+
...{
|
|
24021
|
+
display: "df",
|
|
24022
|
+
flexDirection: "fdc",
|
|
24023
|
+
gap: "gap_12px",
|
|
24024
|
+
width: "w_min_100_calc_var_beam_layout_viewport_width_100vw_var_beam_side_nav_layout_width_0px",
|
|
24025
|
+
left: "l_var_beam_side_nav_layout_width_0px",
|
|
24026
|
+
position: "sticky",
|
|
24027
|
+
backgroundColor: ["bgColor_var", {
|
|
24028
|
+
"--backgroundColor": "var(--b-surface)"
|
|
24029
|
+
}]
|
|
24030
|
+
},
|
|
24031
|
+
...xss
|
|
24028
24032
|
}), ...tid, children: [
|
|
24029
24033
|
/* @__PURE__ */ jsxs91("div", { className: "df aic jcsb mw0", children: [
|
|
24030
24034
|
title ? /* @__PURE__ */ jsx187("h2", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }) : descriptionEl,
|