@homebound/beam 2.169.0 → 2.170.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.
@@ -665,7 +665,7 @@ function toContent(maybeContent, isHeader, canSortColumn, isClientSideSorting, s
665
665
  content =
666
666
  isGridCellContent(maybeContent) && !!maybeContent.onClick
667
667
  ? (0, getInteractiveElement_1.getButtonOrLink)(content, maybeContent.onClick, {
668
- css: Css_1.Css.maxw100.lightBlue700.if(((_a = style === null || style === void 0 ? void 0 : style.presentationSettings) === null || _a === void 0 ? void 0 : _a.wrap) === false).truncate.$,
668
+ css: Css_1.Css.maxw100.lightBlue700.ta("inherit").if(((_a = style === null || style === void 0 ? void 0 : style.presentationSettings) === null || _a === void 0 ? void 0 : _a.wrap) === false).truncate.$,
669
669
  })
670
670
  : content;
671
671
  if (content && typeof content === "string" && isHeader && canSortColumn) {
@@ -27,7 +27,13 @@ function MenuItemImpl(props) {
27
27
  if (typeof onClick === "string") {
28
28
  // if it is an absolute URL, then open in new window. Assuming this should leave the App
29
29
  if ((0, utils_1.isAbsoluteUrl)(onClick)) {
30
- window.open(onClick, "_blank", "noopener,noreferrer");
30
+ // We want to do `window.open(url, "_blank", "noopener,noreferrer")` but that Safari treats
31
+ // that as "open in new window", this happens when safari has the "Open pages in tabs instead of windows" set to "Automatically" (which is the default)
32
+ // see https://support.apple.com/guide/safari/tabs-ibrw1045/mac (Open pages in tabs instead of windows) for other behaviors
33
+ //
34
+ // So we do this instead, and at least null out the opener
35
+ // as a way to manually mimic the `"noopener"` flag.
36
+ window.open(onClick, "_blank").opener = null;
31
37
  return;
32
38
  }
33
39
  // Otherwise, it is a relative URL and we'll assume it is still within the App.
@@ -25,8 +25,8 @@ function Switch(props) {
25
25
  children: ((0, jsx_runtime_1.jsxs)("label", Object.assign({}, hoverProps, { css: {
26
26
  ...Css_1.Css.relative.cursorPointer.df.w("max-content").smEm.selectNone.$,
27
27
  ...(labelStyle === "form" && Css_1.Css.fdc.$),
28
- ...(labelStyle === "inline" && Css_1.Css.childGap2.aic.$),
29
- ...(labelStyle === "filter" && Css_1.Css.jcsb.aic.w("auto").sm.$),
28
+ ...(labelStyle === "inline" && Css_1.Css.gap2.aic.$),
29
+ ...(labelStyle === "filter" && Css_1.Css.jcsb.gap1.aic.w("auto").sm.$),
30
30
  ...(isDisabled && Css_1.Css.cursorNotAllowed.gray400.$),
31
31
  }, "aria-label": label }, { children: [!hideLabel && labelStyle === "form" && (0, jsx_runtime_1.jsx)(Label_1.Label, { label: label }, void 0), !hideLabel && labelStyle === "filter" && (0, jsx_runtime_1.jsx)("span", { children: label }, void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ "aria-hidden": "true", css: {
32
32
  ...Css_1.Css.wPx(40).hPx(toggleHeight(compact)).bgGray200.br12.relative.transition.$,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.169.0",
3
+ "version": "2.170.0",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",