@homebound/beam 3.12.1 → 3.12.3
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 +5 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9579,7 +9579,7 @@ function Button(props) {
|
|
|
9579
9579
|
};
|
|
9580
9580
|
return maybeTooltip({
|
|
9581
9581
|
title: resolveTooltip(disabled, tooltip),
|
|
9582
|
-
placement: "
|
|
9582
|
+
placement: "bottom",
|
|
9583
9583
|
children: getButtonOrLink(buttonContent, onPress, buttonAttrs, openInNew, download)
|
|
9584
9584
|
});
|
|
9585
9585
|
}
|
|
@@ -9935,13 +9935,11 @@ function NavLink(props) {
|
|
|
9935
9935
|
buttonRef,
|
|
9936
9936
|
iconOnly,
|
|
9937
9937
|
onClick,
|
|
9938
|
+
active,
|
|
9939
|
+
variant,
|
|
9940
|
+
icon,
|
|
9938
9941
|
...otherProps
|
|
9939
9942
|
} = props;
|
|
9940
|
-
const {
|
|
9941
|
-
active = false,
|
|
9942
|
-
icon = false,
|
|
9943
|
-
variant
|
|
9944
|
-
} = otherProps;
|
|
9945
9943
|
const asLink = typeof onClick === "string";
|
|
9946
9944
|
const isIconOnly = !!iconOnly && !!icon;
|
|
9947
9945
|
const labelContent = isIconOnly ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "absolute oh cli_inset_50 clp_none bd_0 h_1px m_neg1px w_1px p_0 wsnw o0", children: label }) : label;
|
|
@@ -10267,7 +10265,7 @@ function OverlayTrigger(props) {
|
|
|
10267
10265
|
});
|
|
10268
10266
|
const tid = useTestIds(props, isTextButton(trigger) ? defaultTestId(labelOr(trigger, "overlayTrigger")) : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name);
|
|
10269
10267
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "dib lineHeight_0", children: [
|
|
10270
|
-
isTextButton(trigger) ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { variant: variant ? variant : "secondary", ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, endAdornment: !hideEndAdornment ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { icon: state.isOpen ? "chevronUp" : "chevronDown" }) : null, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen, ...tid }) : isNavLinkButton(trigger) ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(NavLink, {
|
|
10268
|
+
isTextButton(trigger) ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { variant: variant ? variant : "secondary", ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, endAdornment: !hideEndAdornment ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { icon: state.isOpen ? "chevronUp" : "chevronDown" }) : null, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen, ...tid }) : isNavLinkButton(trigger) ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(NavLink, { active: trigger.active, variant: trigger.variant, icon: trigger.icon, label: trigger.navLabel, disabled: !!disabled, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid }) : isIconButton(trigger) ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(IconButton, { ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AvatarButton, { ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen }),
|
|
10271
10269
|
state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Popover, { triggerRef: buttonRef, popoverRef, positionProps, onClose: () => state.close(), isOpen: state.isOpen, children })
|
|
10272
10270
|
] });
|
|
10273
10271
|
}
|