@homebound/beam 2.373.0 → 2.375.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.
@@ -22,4 +22,4 @@ export interface ButtonProps extends BeamButtonProps, BeamFocusableProps {
22
22
  }
23
23
  export declare function Button(props: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
24
  export type ButtonSize = "sm" | "md" | "lg";
25
- export type ButtonVariant = "primary" | "secondary" | "tertiary" | "tertiaryDanger" | "danger" | "text" | "textSecondary";
25
+ export type ButtonVariant = "primary" | "secondary" | "tertiary" | "tertiaryDanger" | "caution" | "danger" | "text" | "textSecondary";
@@ -113,6 +113,13 @@ const variantStyles = (contrast) => ({
113
113
  disabledStyles: Css_1.Css.bgRed200.if(contrast).bgRed900.gray600.$,
114
114
  focusStyles: Css_1.Css.bshDanger.if(contrast).boxShadow(`0 0 0 2px ${Css_1.Palette.White}`).$,
115
115
  },
116
+ caution: {
117
+ baseStyles: Css_1.Css.bgYellow200.gray900.$,
118
+ hoverStyles: Css_1.Css.bgYellow300.$,
119
+ pressedStyles: Css_1.Css.bgYellow400.$,
120
+ disabledStyles: Css_1.Css.bgYellow200.if(contrast).bgYellow900.white.$,
121
+ focusStyles: Css_1.Css.bshDanger.if(contrast).boxShadow(`0 0 0 2px ${Css_1.Palette.White}`).$,
122
+ },
116
123
  text: {
117
124
  baseStyles: Css_1.Css.blue700.add("fontSize", "inherit").if(contrast).blue400.$,
118
125
  hoverStyles: Css_1.Css.blue600.if(contrast).blue300.$,
@@ -8,6 +8,7 @@ const mobx_utils_1 = require("mobx-utils");
8
8
  const react_1 = require("react");
9
9
  const index_1 = require("../index");
10
10
  const TableState_1 = require("./utils/TableState");
11
+ const utils_1 = require("../../utils");
11
12
  /**
12
13
  * Creates an `api` handle to drive a `GridTable`.
13
14
  *
@@ -152,7 +153,7 @@ class GridTableApiImpl {
152
153
  if (!(0, index_1.isJSX)(content))
153
154
  return content;
154
155
  // Otherwise use the value/sortValue values
155
- return cell.value ? maybeApply(cell.value) : cell.sortValue ? maybeApply(cell.sortValue) : "-";
156
+ return (0, utils_1.isDefined)(cell.value) ? maybeApply(cell.value) : cell.sortValue ? maybeApply(cell.sortValue) : "-"; // Do we need the "-" handling unclear if we use it ever
156
157
  }
157
158
  else {
158
159
  // ReactNode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.373.0",
3
+ "version": "2.375.0",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",