@homebound/beam 3.9.0 → 3.9.1
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8574,16 +8574,16 @@ interface SuperDrawerContentProps {
|
|
|
8574
8574
|
*/
|
|
8575
8575
|
declare const SuperDrawerContent: ({ children, actions }: SuperDrawerContentProps) => JSX.Element;
|
|
8576
8576
|
|
|
8577
|
-
|
|
8577
|
+
type Tab<V extends string = string> = {
|
|
8578
8578
|
name: string;
|
|
8579
8579
|
value: V;
|
|
8580
8580
|
icon?: IconKey;
|
|
8581
8581
|
endAdornment?: ReactNode;
|
|
8582
8582
|
/** Whether the Tab is disabled. If a ReactNode, it's treated as a "disabled reason" that's shown in a tooltip. */
|
|
8583
8583
|
disabled?: boolean | ReactNode;
|
|
8584
|
-
}
|
|
8584
|
+
};
|
|
8585
8585
|
type TabsContentXss = Xss<Margin | Padding | "backgroundColor">;
|
|
8586
|
-
|
|
8586
|
+
type TabsProps<V extends string, X> = {
|
|
8587
8587
|
ariaLabel?: string;
|
|
8588
8588
|
selected: V;
|
|
8589
8589
|
tabs: Tab<V>[];
|
|
@@ -8594,26 +8594,26 @@ interface TabsProps<V extends string, X> {
|
|
|
8594
8594
|
alwaysShowAllTabs?: boolean;
|
|
8595
8595
|
includeBottomBorder?: boolean;
|
|
8596
8596
|
right?: ReactNode;
|
|
8597
|
-
}
|
|
8598
|
-
|
|
8597
|
+
};
|
|
8598
|
+
type RouteTabsProps<V extends string, X> = {
|
|
8599
8599
|
tabs: RouteTab<V>[];
|
|
8600
|
-
}
|
|
8601
|
-
|
|
8600
|
+
} & Omit<TabsProps<V, X>, "onChange" | "selected" | "tabs">;
|
|
8601
|
+
type RouteTab<V extends string = string> = {
|
|
8602
8602
|
href: V;
|
|
8603
8603
|
path: string | string[];
|
|
8604
|
-
}
|
|
8605
|
-
|
|
8604
|
+
} & Omit<Tab<V>, "value">;
|
|
8605
|
+
type TabWithContent<V extends string = string> = {
|
|
8606
8606
|
render: () => ReactNode;
|
|
8607
|
-
}
|
|
8608
|
-
|
|
8607
|
+
} & Omit<Tab<V>, "render">;
|
|
8608
|
+
type RouteTabWithContent<V extends string = string> = {
|
|
8609
8609
|
render: () => ReactNode;
|
|
8610
|
-
}
|
|
8611
|
-
|
|
8610
|
+
} & Omit<RouteTab<V>, "render">;
|
|
8611
|
+
type RequiredRenderTabs<V extends string, X> = {
|
|
8612
8612
|
tabs: TabWithContent<V>[];
|
|
8613
|
-
}
|
|
8614
|
-
|
|
8613
|
+
} & Omit<TabsProps<V, X>, "tabs">;
|
|
8614
|
+
type RequiredRenderRouteTabs<V extends string, X> = {
|
|
8615
8615
|
tabs: RouteTabWithContent<V>[];
|
|
8616
|
-
}
|
|
8616
|
+
} & Omit<RouteTabsProps<V, X>, "tabs">;
|
|
8617
8617
|
/**
|
|
8618
8618
|
* Provides a list of tabs and their content.
|
|
8619
8619
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -8574,16 +8574,16 @@ interface SuperDrawerContentProps {
|
|
|
8574
8574
|
*/
|
|
8575
8575
|
declare const SuperDrawerContent: ({ children, actions }: SuperDrawerContentProps) => JSX.Element;
|
|
8576
8576
|
|
|
8577
|
-
|
|
8577
|
+
type Tab<V extends string = string> = {
|
|
8578
8578
|
name: string;
|
|
8579
8579
|
value: V;
|
|
8580
8580
|
icon?: IconKey;
|
|
8581
8581
|
endAdornment?: ReactNode;
|
|
8582
8582
|
/** Whether the Tab is disabled. If a ReactNode, it's treated as a "disabled reason" that's shown in a tooltip. */
|
|
8583
8583
|
disabled?: boolean | ReactNode;
|
|
8584
|
-
}
|
|
8584
|
+
};
|
|
8585
8585
|
type TabsContentXss = Xss<Margin | Padding | "backgroundColor">;
|
|
8586
|
-
|
|
8586
|
+
type TabsProps<V extends string, X> = {
|
|
8587
8587
|
ariaLabel?: string;
|
|
8588
8588
|
selected: V;
|
|
8589
8589
|
tabs: Tab<V>[];
|
|
@@ -8594,26 +8594,26 @@ interface TabsProps<V extends string, X> {
|
|
|
8594
8594
|
alwaysShowAllTabs?: boolean;
|
|
8595
8595
|
includeBottomBorder?: boolean;
|
|
8596
8596
|
right?: ReactNode;
|
|
8597
|
-
}
|
|
8598
|
-
|
|
8597
|
+
};
|
|
8598
|
+
type RouteTabsProps<V extends string, X> = {
|
|
8599
8599
|
tabs: RouteTab<V>[];
|
|
8600
|
-
}
|
|
8601
|
-
|
|
8600
|
+
} & Omit<TabsProps<V, X>, "onChange" | "selected" | "tabs">;
|
|
8601
|
+
type RouteTab<V extends string = string> = {
|
|
8602
8602
|
href: V;
|
|
8603
8603
|
path: string | string[];
|
|
8604
|
-
}
|
|
8605
|
-
|
|
8604
|
+
} & Omit<Tab<V>, "value">;
|
|
8605
|
+
type TabWithContent<V extends string = string> = {
|
|
8606
8606
|
render: () => ReactNode;
|
|
8607
|
-
}
|
|
8608
|
-
|
|
8607
|
+
} & Omit<Tab<V>, "render">;
|
|
8608
|
+
type RouteTabWithContent<V extends string = string> = {
|
|
8609
8609
|
render: () => ReactNode;
|
|
8610
|
-
}
|
|
8611
|
-
|
|
8610
|
+
} & Omit<RouteTab<V>, "render">;
|
|
8611
|
+
type RequiredRenderTabs<V extends string, X> = {
|
|
8612
8612
|
tabs: TabWithContent<V>[];
|
|
8613
|
-
}
|
|
8614
|
-
|
|
8613
|
+
} & Omit<TabsProps<V, X>, "tabs">;
|
|
8614
|
+
type RequiredRenderRouteTabs<V extends string, X> = {
|
|
8615
8615
|
tabs: RouteTabWithContent<V>[];
|
|
8616
|
-
}
|
|
8616
|
+
} & Omit<RouteTabsProps<V, X>, "tabs">;
|
|
8617
8617
|
/**
|
|
8618
8618
|
* Provides a list of tabs and their content.
|
|
8619
8619
|
*
|
package/dist/index.js
CHANGED
|
@@ -21622,7 +21622,7 @@ function visit(rows, fn) {
|
|
|
21622
21622
|
import { camelCase as camelCase5 } from "change-case";
|
|
21623
21623
|
import { useEffect as useEffect33, useMemo as useMemo49, useRef as useRef54, useState as useState48 } from "react";
|
|
21624
21624
|
import { mergeProps as mergeProps26, useFocusRing as useFocusRing15, useHover as useHover19 } from "react-aria";
|
|
21625
|
-
import { matchPath
|
|
21625
|
+
import { matchPath } from "react-router";
|
|
21626
21626
|
import { Link as Link5, useLocation } from "react-router-dom";
|
|
21627
21627
|
import { trussProps as trussProps85, maybeCssVar as maybeCssVar44 } from "@homebound/truss/runtime";
|
|
21628
21628
|
import { Fragment as Fragment40, jsx as jsx171, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
@@ -21657,7 +21657,7 @@ function TabContent(props) {
|
|
|
21657
21657
|
return (
|
|
21658
21658
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
21659
21659
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
21660
|
-
/* @__PURE__ */ jsx171(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx171("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...trussProps85(contentXss), children:
|
|
21660
|
+
/* @__PURE__ */ jsx171(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx171("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...trussProps85(contentXss), children: selectedTab.render() }) })
|
|
21661
21661
|
);
|
|
21662
21662
|
}
|
|
21663
21663
|
function Tabs(props) {
|