@homebound/beam 3.104.0 → 3.105.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 +23 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +23 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4833,7 +4833,7 @@ type ProposedValueProps = {
|
|
|
4833
4833
|
declare function ProposedValue$1(props: ProposedValueProps): JSX.Element;
|
|
4834
4834
|
|
|
4835
4835
|
type TagXss = Margin | "backgroundColor" | "color";
|
|
4836
|
-
type TagType = "info" | "update" | "warning" | "error" | "success" | "neutral" | "ai";
|
|
4836
|
+
type TagType = "info" | "update" | "warning" | "error" | "success" | "neutral" | "ai" | "strikethrough";
|
|
4837
4837
|
type TagVariant = "primary" | "secondary";
|
|
4838
4838
|
type TagPropsBase<X> = {
|
|
4839
4839
|
/** Required even if using `iconOnly + preventTooltip`. In those cases an accessibility friendly message is expected */
|
|
@@ -10216,6 +10216,8 @@ type SideNavProps = {
|
|
|
10216
10216
|
items: AppNavItem[];
|
|
10217
10217
|
/** Optional area pinned to the bottom (user menu, settings, sign-out). */
|
|
10218
10218
|
footer?: ReactNode;
|
|
10219
|
+
/** Keep `top` / `items` / `footer` in the collapsed rail (icon-only items). Default hides them. */
|
|
10220
|
+
showContentWhenCollapsed?: boolean;
|
|
10219
10221
|
};
|
|
10220
10222
|
declare function SideNav(props: SideNavProps): JSX.Element;
|
|
10221
10223
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4833,7 +4833,7 @@ type ProposedValueProps = {
|
|
|
4833
4833
|
declare function ProposedValue$1(props: ProposedValueProps): JSX.Element;
|
|
4834
4834
|
|
|
4835
4835
|
type TagXss = Margin | "backgroundColor" | "color";
|
|
4836
|
-
type TagType = "info" | "update" | "warning" | "error" | "success" | "neutral" | "ai";
|
|
4836
|
+
type TagType = "info" | "update" | "warning" | "error" | "success" | "neutral" | "ai" | "strikethrough";
|
|
4837
4837
|
type TagVariant = "primary" | "secondary";
|
|
4838
4838
|
type TagPropsBase<X> = {
|
|
4839
4839
|
/** Required even if using `iconOnly + preventTooltip`. In those cases an accessibility friendly message is expected */
|
|
@@ -10216,6 +10216,8 @@ type SideNavProps = {
|
|
|
10216
10216
|
items: AppNavItem[];
|
|
10217
10217
|
/** Optional area pinned to the bottom (user menu, settings, sign-out). */
|
|
10218
10218
|
footer?: ReactNode;
|
|
10219
|
+
/** Keep `top` / `items` / `footer` in the collapsed rail (icon-only items). Default hides them. */
|
|
10220
|
+
showContentWhenCollapsed?: boolean;
|
|
10219
10221
|
};
|
|
10220
10222
|
declare function SideNav(props: SideNavProps): JSX.Element;
|
|
10221
10223
|
|
package/dist/index.js
CHANGED
|
@@ -24677,6 +24677,7 @@ function Tag(props) {
|
|
|
24677
24677
|
...otherProps
|
|
24678
24678
|
} = props;
|
|
24679
24679
|
const isIconOnly = !!iconOnly && !!icon;
|
|
24680
|
+
const isStrikethrough = type === "strikethrough";
|
|
24680
24681
|
const {
|
|
24681
24682
|
background,
|
|
24682
24683
|
iconColor,
|
|
@@ -24714,10 +24715,23 @@ function Tag(props) {
|
|
|
24714
24715
|
paddingRight: "pr_2px"
|
|
24715
24716
|
} : padding,
|
|
24716
24717
|
...background,
|
|
24718
|
+
...isStrikethrough ? {
|
|
24719
|
+
opacity: "o50"
|
|
24720
|
+
} : {},
|
|
24717
24721
|
...xss
|
|
24718
24722
|
}), children: [
|
|
24719
24723
|
icon && /* @__PURE__ */ jsx196("span", { className: "fs0", children: /* @__PURE__ */ jsx196(Icon, { icon, inc: 1.75, color: iconColor }) }),
|
|
24720
|
-
isIconOnly ? /* @__PURE__ */ jsx196("span", { className: "absolute oh cli_inset_50 clp_none bd_0 h_1px m_neg1px w_1px p_0 wsnw o0", children: text }) : /* @__PURE__ */ jsx196("span", { ref,
|
|
24724
|
+
isIconOnly ? /* @__PURE__ */ jsx196("span", { className: "absolute oh cli_inset_50 clp_none bd_0 h_1px m_neg1px w_1px p_0 wsnw o0", children: text }) : /* @__PURE__ */ jsx196("span", { ref, ...trussProps109({
|
|
24725
|
+
overflow: "oh",
|
|
24726
|
+
display: "d_negwebkit_box",
|
|
24727
|
+
WebkitBoxOrient: "wbo_vertical",
|
|
24728
|
+
textOverflow: "to_ellipsis",
|
|
24729
|
+
WebkitLineClamp: "wlc_1",
|
|
24730
|
+
wordBreak: "wbba",
|
|
24731
|
+
...isStrikethrough ? {
|
|
24732
|
+
textDecoration: "tdlt"
|
|
24733
|
+
} : {}
|
|
24734
|
+
}), children: text })
|
|
24721
24735
|
] })
|
|
24722
24736
|
});
|
|
24723
24737
|
}
|
|
@@ -26592,16 +26606,18 @@ function SideNav(props) {
|
|
|
26592
26606
|
const {
|
|
26593
26607
|
top,
|
|
26594
26608
|
items,
|
|
26595
|
-
footer
|
|
26609
|
+
footer,
|
|
26610
|
+
showContentWhenCollapsed = false
|
|
26596
26611
|
} = props;
|
|
26597
26612
|
const {
|
|
26598
26613
|
navState
|
|
26599
26614
|
} = useSideNavLayoutContext();
|
|
26600
26615
|
const tid = useTestIds(props, "sideNav");
|
|
26601
26616
|
const panelCollapsed = navState === "collapse";
|
|
26602
|
-
const
|
|
26617
|
+
const hideContent = panelCollapsed && !showContentWhenCollapsed;
|
|
26618
|
+
const hideItems = hideContent || panelCollapsed && !allItemsHaveIcons(items);
|
|
26603
26619
|
return /* @__PURE__ */ jsxs111("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
26604
|
-
top !== void 0 && /* @__PURE__ */ jsx217("div", { ...trussProps124({
|
|
26620
|
+
!hideContent && top !== void 0 && /* @__PURE__ */ jsx217("div", { ...trussProps124({
|
|
26605
26621
|
flexShrink: "fs0",
|
|
26606
26622
|
paddingLeft: "pl2",
|
|
26607
26623
|
paddingRight: "pr2",
|
|
@@ -26612,7 +26628,7 @@ function SideNav(props) {
|
|
|
26612
26628
|
paddingBottom: "pb4"
|
|
26613
26629
|
} : {}
|
|
26614
26630
|
}), ...tid.top, children: top }),
|
|
26615
|
-
/* @__PURE__ */ jsx217("div", { ...trussProps124({
|
|
26631
|
+
!hideContent && /* @__PURE__ */ jsx217("div", { ...trussProps124({
|
|
26616
26632
|
flexGrow: "fg1",
|
|
26617
26633
|
overflowY: "oya",
|
|
26618
26634
|
display: "df",
|
|
@@ -26624,8 +26640,8 @@ function SideNav(props) {
|
|
|
26624
26640
|
...top === void 0 ? {
|
|
26625
26641
|
paddingTop: "pt5"
|
|
26626
26642
|
} : {}
|
|
26627
|
-
}), ...tid.items, children: !
|
|
26628
|
-
footer !== void 0 && /* @__PURE__ */ jsx217("div", { ...trussProps124({
|
|
26643
|
+
}), ...tid.items, children: !hideItems && /* @__PURE__ */ jsx217(AppNavItems, { items, panelCollapsed }) }),
|
|
26644
|
+
!hideContent && footer !== void 0 && /* @__PURE__ */ jsx217("div", { ...trussProps124({
|
|
26629
26645
|
flexShrink: "fs0",
|
|
26630
26646
|
paddingLeft: "pl2",
|
|
26631
26647
|
paddingRight: "pr2",
|