@homebound/beam 2.277.0 → 2.278.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.
|
@@ -94,6 +94,7 @@ export declare const Icons: {
|
|
|
94
94
|
file: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
95
95
|
images: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
96
96
|
openBook: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
97
|
+
criticalPath: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
97
98
|
calendarError: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
98
99
|
nested: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
99
100
|
estimate: import("@emotion/react/jsx-runtime").JSX.Element;
|
package/dist/components/Icon.js
CHANGED
|
@@ -103,6 +103,7 @@ exports.Icons = {
|
|
|
103
103
|
images: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M20 2H8C6.897 2 6 2.897 6 4V16C6 17.103 6.897 18 8 18H20C21.103 18 22 17.103 22 16V4C22 2.897 21.103 2 20 2ZM8 16V4H20L20.002 16H8Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M4 8H2V20C2 21.103 2.897 22 4 22H16V20H4V8Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M12 12L11 11L9 14H19L15 8L12 12Z" })] })),
|
|
104
104
|
openBook: ((0, jsx_runtime_1.jsx)("path", { d: "M21 3H14C13.229 3 12.532 3.301 12 3.78C11.468 3.301 10.771 3 10 3H3C2.447 3 2 3.448 2 4V19C2 19.553 2.447 20 3 20H8.758C9.284 20 9.8 20.214 10.172 20.586L11.293 21.707C11.302 21.716 11.314 21.719 11.323 21.728C11.409 21.807 11.505 21.877 11.617 21.924C11.618 21.924 11.618 21.924 11.619 21.924C11.74 21.974 11.869 22 12 22C12.131 22 12.26 21.974 12.381 21.924C12.382 21.924 12.382 21.924 12.383 21.924C12.495 21.877 12.591 21.807 12.677 21.728C12.686 21.719 12.698 21.716 12.707 21.707L13.828 20.586C14.2 20.214 14.716 20 15.242 20H21C21.553 20 22 19.553 22 19V4C22 3.448 21.553 3 21 3ZM8.758 18H4V5H10C10.552 5 11 5.449 11 6V18.689C10.342 18.246 9.557 18 8.758 18ZM20 18H15.242C14.443 18 13.658 18.246 13 18.689V6C13 5.449 13.448 5 14 5H20V18Z" })),
|
|
105
105
|
// Misc
|
|
106
|
+
criticalPath: ((0, jsx_runtime_1.jsx)("path", { d: "M5.41663 16.666H12.37C12.6666 17.2935 13.03 17.851 13.4108 18.3327H5.41663C3.34913 18.3327 1.66663 16.6502 1.66663 14.5827C1.66663 12.5152 3.34913 10.8327 5.41663 10.8327H11.25C11.9391 10.8327 12.5 10.2718 12.5 9.58268C12.5 8.89352 11.9391 8.33268 11.25 8.33268H6.07079C6.47579 7.86852 6.87329 7.30852 7.19913 6.66602H11.25C12.8583 6.66602 14.1666 7.97435 14.1666 9.58268C14.1666 11.191 12.8583 12.4993 11.25 12.4993H5.41663C4.26746 12.4993 3.33329 13.4335 3.33329 14.5827C3.33329 15.7318 4.26746 16.666 5.41663 16.666ZM1.66663 4.16602C1.66663 2.78768 2.78829 1.66602 4.16663 1.66602C5.54496 1.66602 6.66663 2.78768 6.66663 4.16602C6.66663 6.82185 4.16663 8.33268 4.16663 8.33268C4.16663 8.33268 1.66663 6.82268 1.66663 4.16602ZM2.91663 4.16602C2.91663 4.85602 3.47663 5.41602 4.16663 5.41602C4.85663 5.41602 5.41663 4.85602 5.41663 4.16602C5.41663 3.47602 4.85663 2.91602 4.16663 2.91602C3.47663 2.91602 2.91663 3.47602 2.91663 4.16602ZM13.3333 14.166C13.3333 12.7877 14.455 11.666 15.8333 11.666C17.2116 11.666 18.3333 12.7877 18.3333 14.166C18.3333 16.8218 15.8333 18.3327 15.8333 18.3327C15.8333 18.3327 13.3333 16.8227 13.3333 14.166ZM14.5833 14.166C14.5833 14.856 15.1433 15.416 15.8333 15.416C16.5233 15.416 17.0833 14.856 17.0833 14.166C17.0833 13.476 16.5233 12.916 15.8333 12.916C15.1433 12.916 14.5833 13.476 14.5833 14.166Z" })),
|
|
106
107
|
calendarError: ((0, jsx_runtime_1.jsx)("path", { d: "M2.99902 8V6C2.99902 4.897 3.89602 4 4.99902 4H6.99902V2H8.99902V4H14.999V2H16.999V4H18.999C20.102 4 20.999 4.897 20.999 6V8V20C20.999 21.103 20.102 22 18.999 22H4.99902C3.89602 22 2.99902 21.103 2.99902 20V8ZM4.99902 20H19.001L18.999 7H4.99902V20ZM13 9H11V15H13V9ZM13 16H11V18H13V16Z" })),
|
|
107
108
|
nested: (0, jsx_runtime_1.jsx)("path", { d: "M7 6.99994V16.3333L16.3333 16.3333V14.3333H9L9 6.99994H7Z" }),
|
|
108
109
|
estimate: ((0, jsx_runtime_1.jsx)("path", { d: "M11.4409 2.01586C5.9355 2.32427 1.70744 7.05416 2.01585 12.5595C2.03847 12.9633 2.08488 13.3602 2.15363 13.749L0 14.6172L4.55475 16.5548L6.49234 12L4.06026 12.9804C4.03868 12.8046 4.02277 12.627 4.01272 12.4477C3.766 8.04357 7.14864 4.25944 11.5527 4.01273C13.5759 3.89938 15.4683 4.55199 16.947 5.71769L17.9477 3.96644C16.1361 2.62291 13.8636 1.88014 11.4409 2.01586ZM12 11C10 11 10 10.374 10 9.99996C10 9.51596 10.701 8.99996 12 8.99996C13.185 8.99996 13.386 9.63796 13.4 10.018L14.4 9.99996H15.4C15.4 8.97396 14.734 7.53096 13 7.12096V6.01196H11V7.08496C9.029 7.41596 8 8.71196 8 9.99996C8 11.12 8.52 13 12 13C14 13 14 13.676 14 14C14 14.415 13.38 15 12 15C10.159 15 10.011 14.143 10 14H8C8 14.918 8.661 16.553 11 16.92V18H13V16.915C14.971 16.584 16 15.288 16 14C16 12.88 15.48 11 12 11ZM21.9318 10.9952C22.2403 16.5005 18.0122 21.2304 12.5068 21.5388C10.0841 21.6746 7.81163 20.9318 5.99999 19.5882L7.00071 17.837C8.47939 19.0027 10.3718 19.6553 12.395 19.542C16.7991 19.2952 20.1817 15.5111 19.935 11.107C19.9249 10.9277 19.909 10.75 19.8874 10.5743L17.4554 11.5547L19.3929 6.99994L23.9477 8.93752L21.7941 9.80568C21.8628 10.1944 21.9092 10.5914 21.9318 10.9952Z" })),
|
|
@@ -12,6 +12,9 @@ const Css_1 = require("../../Css");
|
|
|
12
12
|
const utils_1 = require("../../utils");
|
|
13
13
|
const defaultTestId_1 = require("../../utils/defaultTestId");
|
|
14
14
|
const react_router_dom_1 = require("react-router-dom");
|
|
15
|
+
// Note: Respect Ctrl-clicking pop-up elements to open a link in a new tab on a menu item
|
|
16
|
+
// See https://github.com/adobe/react-spectrum/issues/1244#issuecomment-1125813249
|
|
17
|
+
const noopWorkaround = () => { };
|
|
15
18
|
function MenuItemImpl(props) {
|
|
16
19
|
const { item, state, onClose, contrast } = props;
|
|
17
20
|
const menuItem = item.value;
|
|
@@ -57,7 +60,7 @@ function MenuItemImpl(props) {
|
|
|
57
60
|
...(isDisabled ? Css_1.Css.gray500.cursorNotAllowed.$ : {}),
|
|
58
61
|
...(destructive ? Css_1.Css.red600.$ : {}),
|
|
59
62
|
...(isSelected ? Css_1.Css.fw5.$ : {}),
|
|
60
|
-
}, ...tid[(0, defaultTestId_1.defaultTestId)(menuItem.label)], children: (0, Tooltip_1.maybeTooltip)({
|
|
63
|
+
}, ...tid[(0, defaultTestId_1.defaultTestId)(menuItem.label)], onPointerUp: noopWorkaround, onKeyDown: noopWorkaround, children: (0, Tooltip_1.maybeTooltip)({
|
|
61
64
|
title: (0, Tooltip_1.resolveTooltip)(disabled),
|
|
62
65
|
placement: "right",
|
|
63
66
|
children: renderMenuItem(menuItem, isSelected, isDisabled, contrast),
|
|
@@ -85,7 +88,7 @@ function maybeWrapInLink(onClick, content, disabled) {
|
|
|
85
88
|
if (disabled || typeof onClick !== "string") {
|
|
86
89
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: content });
|
|
87
90
|
}
|
|
88
|
-
return (0, utils_1.isAbsoluteUrl)(onClick) ? ((0, jsx_runtime_1.jsxs)("a", { href: onClick, target: "_blank", rel: "noopener noreferrer", className: "navLink", css: Css_1.Css.df.aic.jcsb.w100.$, children: [content, (0, jsx_runtime_1.jsx)("span", { css: Css_1.Css.fs0.ml2.$, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { icon: "linkExternal" }) })] })) : ((0, jsx_runtime_1.jsx)(react_router_dom_1.Link, { className: "navLink", to: onClick, children: content }));
|
|
91
|
+
return (0, utils_1.isAbsoluteUrl)(onClick) ? ((0, jsx_runtime_1.jsxs)("a", { href: onClick, target: "_blank", rel: "noopener noreferrer", className: "navLink", css: Css_1.Css.df.aic.jcsb.w100.$, children: [content, (0, jsx_runtime_1.jsx)("span", { css: Css_1.Css.fs0.ml2.$, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { icon: "linkExternal" }) })] })) : ((0, jsx_runtime_1.jsx)(react_router_dom_1.Link, { className: "navLink", to: onClick, onPointerUp: noopWorkaround, onKeyDown: noopWorkaround, children: content }));
|
|
89
92
|
}
|
|
90
93
|
function isIconMenuItem(item) {
|
|
91
94
|
return item && typeof item === "object" && "icon" in item;
|