@homebound/beam 2.373.0 → 2.374.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.$,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.373.0",
3
+ "version": "2.374.0",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",