beacon-ui 3.4.1 → 3.4.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.4.2] - 2026-01-03
9
+
10
+ ### Added
11
+ - Added `underline` prop to Button component for link variant to control text decoration
12
+
8
13
  ## [3.4.1] - 2026-01-03
9
14
 
10
15
  ### Changed
@@ -17,7 +17,8 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<"button">, "type
17
17
  state?: ButtonState;
18
18
  color?: ButtonColor;
19
19
  type?: "button" | "submit" | "reset";
20
+ underline?: boolean;
20
21
  children: React.ReactNode;
21
22
  }
22
- export declare function Button({ variant, size, cornerRadius, startIcon, endIcon, fillContainer, justifyContent, loading, disabled, state: stateProp, color, type, children, className, style, onClick, onMouseEnter, onMouseLeave, onFocus, onBlur, onMouseDown, onMouseUp, ref, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function Button({ variant, size, cornerRadius, startIcon, endIcon, fillContainer, justifyContent, loading, disabled, state: stateProp, color, type, underline, children, className, style, onClick, onMouseEnter, onMouseLeave, onFocus, onBlur, onMouseDown, onMouseUp, ref, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
23
24
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkC,qBAAqB,EAAgC,MAAM,OAAO,CAAC;AAI5G,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI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ACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAkED,wBAAgB,MAAM,CAAC,EACrB,OAAkB,EAClB,IAAW,EACX,YAAgB,EAChB,SAAS,EACT,OAAO,EACP,aAAqB,EACrB,cAAyB,EACzB,OAAe,EACf,QAAgB,EAChB,KAAK,EAAE,SAAS,EAChB,KAAiB,EACjB,IAAe,EACf,SAAS,EACT,QAAQ,EACR,SAAS,EACT,KAAK,EACL,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,MAAM,EACN,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,IAAI,EACR,EAAE,WAAW,2CAsSb"}
@@ -55,7 +55,7 @@ const LOADER_ICON_SIZE_MAP = {
55
55
  lg: 32,
56
56
  xl: 40,
57
57
  };
58
- export function Button({ variant = "filled", size = "md", cornerRadius = 2, startIcon, endIcon, fillContainer = false, justifyContent = "center", loading = false, disabled = false, state: stateProp, color = "primary", type = "button", children, className, style, onClick, onMouseEnter, onMouseLeave, onFocus, onBlur, onMouseDown, onMouseUp, ref, ...rest }) {
58
+ export function Button({ variant = "filled", size = "md", cornerRadius = 2, startIcon, endIcon, fillContainer = false, justifyContent = "center", loading = false, disabled = false, state: stateProp, color = "primary", type = "button", underline, children, className, style, onClick, onMouseEnter, onMouseLeave, onFocus, onBlur, onMouseDown, onMouseUp, ref, ...rest }) {
59
59
  const themeContext = useThemeSafe();
60
60
  const sizeConfig = SIZE_CONFIG[size];
61
61
  const borderRadius = CORNER_RADIUS_MAP[cornerRadius];
@@ -171,8 +171,8 @@ export function Button({ variant = "filled", size = "md", cornerRadius = 2, star
171
171
  borderWidth: 0,
172
172
  borderStyle: "none",
173
173
  borderColor: "transparent",
174
- textDecoration: "underline",
175
- textUnderlineOffset: "2px",
174
+ textDecoration: underline !== false ? "underline" : "none",
175
+ textUnderlineOffset: underline !== false ? "2px" : undefined,
176
176
  };
177
177
  break;
178
178
  }
@@ -234,7 +234,7 @@ export function Button({ variant = "filled", size = "md", cornerRadius = 2, star
234
234
  stateStyles.outlineOffset = "2px";
235
235
  }
236
236
  return { ...baseStyles, ...variantStyles, ...stateStyles, ...style };
237
- }, [variant, sizeConfig, borderRadius, fillContainer, justifyContent, currentState, isDisabled, isLoading, color, style]);
237
+ }, [variant, sizeConfig, borderRadius, fillContainer, justifyContent, currentState, isDisabled, isLoading, color, underline, style]);
238
238
  // Clone icons with the correct size based on button size
239
239
  const iconSize = sizeConfig.iconSize;
240
240
  const clonedStartIcon = startIcon && isValidElement(startIcon)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beacon-ui",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Beacon Design System - Components and tokens",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",