@homebound/beam 4.14.6 → 4.14.7
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 +29 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +29 -11
- package/dist/index.js.map +1 -1
- package/dist/truss.css +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -10851,8 +10851,14 @@ type RequiredRenderRouteTabs<V extends string, X> = {
|
|
|
10851
10851
|
* If you want to tease apart Tabs from their TabContent, you can use the `Tab`
|
|
10852
10852
|
* and `TabContent` components directly.
|
|
10853
10853
|
*/
|
|
10854
|
-
declare function TabsWithContent<V extends string, X extends Only<TabsContentXss, X>>(props: RequiredRenderTabs<V, X> | RequiredRenderRouteTabs<V, X>)
|
|
10855
|
-
|
|
10854
|
+
declare function TabsWithContent<V extends string, X extends Only<TabsContentXss, X>>(props: (RequiredRenderTabs<V, X> | RequiredRenderRouteTabs<V, X>) & {
|
|
10855
|
+
/** Skip the default top gap. Also set when the tab list is hidden. */
|
|
10856
|
+
omitTopSpacing?: boolean;
|
|
10857
|
+
}): React$1.JSX.Element;
|
|
10858
|
+
declare function TabContent<V extends string, X extends Only<TabsContentXss, X>>(props: (Omit<RequiredRenderTabs<V, X>, "onChange"> | RequiredRenderRouteTabs<V, X>) & {
|
|
10859
|
+
/** Skip the default top gap. `TabsWithContent` sets this when the tab list is hidden. */
|
|
10860
|
+
omitTopSpacing?: boolean;
|
|
10861
|
+
}): React$1.JSX.Element;
|
|
10856
10862
|
/** The top list of tabs. */
|
|
10857
10863
|
declare function Tabs<V extends string, X extends Only<TabsContentXss, X>>(props: TabsProps<V, X> | RouteTabsProps<V, X>): React$1.JSX.Element;
|
|
10858
10864
|
|
package/dist/index.d.ts
CHANGED
|
@@ -10851,8 +10851,14 @@ type RequiredRenderRouteTabs<V extends string, X> = {
|
|
|
10851
10851
|
* If you want to tease apart Tabs from their TabContent, you can use the `Tab`
|
|
10852
10852
|
* and `TabContent` components directly.
|
|
10853
10853
|
*/
|
|
10854
|
-
declare function TabsWithContent<V extends string, X extends Only<TabsContentXss, X>>(props: RequiredRenderTabs<V, X> | RequiredRenderRouteTabs<V, X>)
|
|
10855
|
-
|
|
10854
|
+
declare function TabsWithContent<V extends string, X extends Only<TabsContentXss, X>>(props: (RequiredRenderTabs<V, X> | RequiredRenderRouteTabs<V, X>) & {
|
|
10855
|
+
/** Skip the default top gap. Also set when the tab list is hidden. */
|
|
10856
|
+
omitTopSpacing?: boolean;
|
|
10857
|
+
}): React$1.JSX.Element;
|
|
10858
|
+
declare function TabContent<V extends string, X extends Only<TabsContentXss, X>>(props: (Omit<RequiredRenderTabs<V, X>, "onChange"> | RequiredRenderRouteTabs<V, X>) & {
|
|
10859
|
+
/** Skip the default top gap. `TabsWithContent` sets this when the tab list is hidden. */
|
|
10860
|
+
omitTopSpacing?: boolean;
|
|
10861
|
+
}): React$1.JSX.Element;
|
|
10856
10862
|
/** The top list of tabs. */
|
|
10857
10863
|
declare function Tabs<V extends string, X extends Only<TabsContentXss, X>>(props: TabsProps<V, X> | RouteTabsProps<V, X>): React$1.JSX.Element;
|
|
10858
10864
|
|
package/dist/index.js
CHANGED
|
@@ -28477,15 +28477,13 @@ import { Link as Link7, useLocation as useLocation2 } from "react-router-dom";
|
|
|
28477
28477
|
import { trussProps as trussProps128, maybeCssVar as maybeCssVar61 } from "@homebound/truss/runtime";
|
|
28478
28478
|
import { Fragment as Fragment51, jsx as jsx224, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
28479
28479
|
function TabsWithContent(props) {
|
|
28480
|
-
const
|
|
28481
|
-
|
|
28482
|
-
|
|
28480
|
+
const {
|
|
28481
|
+
omitTopSpacing = false,
|
|
28482
|
+
...tabProps
|
|
28483
|
+
} = props;
|
|
28483
28484
|
return /* @__PURE__ */ jsxs118(Fragment51, { children: [
|
|
28484
|
-
/* @__PURE__ */ jsx224(Tabs, { ...
|
|
28485
|
-
/* @__PURE__ */ jsx224(TabContent, { ...
|
|
28486
|
-
...styles,
|
|
28487
|
-
...props.contentXss
|
|
28488
|
-
} })
|
|
28485
|
+
/* @__PURE__ */ jsx224(Tabs, { ...tabProps }),
|
|
28486
|
+
/* @__PURE__ */ jsx224(TabContent, { ...tabProps, omitTopSpacing: omitTopSpacing || hideTabs(props) })
|
|
28489
28487
|
] });
|
|
28490
28488
|
}
|
|
28491
28489
|
function TabContent(props) {
|
|
@@ -28493,7 +28491,8 @@ function TabContent(props) {
|
|
|
28493
28491
|
const {
|
|
28494
28492
|
tabs,
|
|
28495
28493
|
contentXss = {},
|
|
28496
|
-
omitFullBleedPadding = false
|
|
28494
|
+
omitFullBleedPadding = false,
|
|
28495
|
+
omitTopSpacing = false
|
|
28497
28496
|
} = props;
|
|
28498
28497
|
const location = useLocation2();
|
|
28499
28498
|
const selectedTab = isRouteTabs(props) ? props.tabs.find((t) => {
|
|
@@ -28507,7 +28506,26 @@ function TabContent(props) {
|
|
|
28507
28506
|
return (
|
|
28508
28507
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
28509
28508
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
28510
|
-
/* @__PURE__ */ jsx224(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx224(
|
|
28509
|
+
/* @__PURE__ */ jsx224(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx224(
|
|
28510
|
+
"div",
|
|
28511
|
+
{
|
|
28512
|
+
"aria-labelledby": `${uniqueValue}-tab`,
|
|
28513
|
+
id: `${uniqueValue}-tabPanel`,
|
|
28514
|
+
role: "tabpanel",
|
|
28515
|
+
tabIndex: 0,
|
|
28516
|
+
...tid.panel,
|
|
28517
|
+
...selfTopSpaced,
|
|
28518
|
+
...trussProps128({
|
|
28519
|
+
...{
|
|
28520
|
+
...!omitTopSpacing ? {
|
|
28521
|
+
paddingTop: "first_child_n_data_self_top_spaced_pt3"
|
|
28522
|
+
} : {}
|
|
28523
|
+
},
|
|
28524
|
+
...contentXss
|
|
28525
|
+
}),
|
|
28526
|
+
children: selectedTab.render()
|
|
28527
|
+
}
|
|
28528
|
+
) })
|
|
28511
28529
|
);
|
|
28512
28530
|
}
|
|
28513
28531
|
function Tabs(props) {
|
|
@@ -29570,7 +29588,7 @@ function PageHeaderLayout(props) {
|
|
|
29570
29588
|
flexShrink: "fs0",
|
|
29571
29589
|
width: "w100"
|
|
29572
29590
|
}), children: /* @__PURE__ */ jsx236("div", { ref: headerMetricsRef, ...mergeProps42(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
29573
|
-
/* @__PURE__ */ jsx236("div", { className: "df fdc fg1 mh0 w100
|
|
29591
|
+
/* @__PURE__ */ jsx236("div", { className: "df fdc fg1 mh0 w100 first_child_n_data_self_top_spaced_pt3", ...tid.body, children })
|
|
29574
29592
|
] }) });
|
|
29575
29593
|
}
|
|
29576
29594
|
|