@adamjanicki/ui 1.4.3 → 1.4.4

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.
@@ -20,8 +20,9 @@ export type Props = {
20
20
  onClick?: () => void;
21
21
  /**
22
22
  * Aria label for the button
23
+ * @default "hamburger"
23
24
  */
24
- "aria-label": string;
25
+ "aria-label"?: string;
25
26
  /**
26
27
  * Duration of the animation in seconds
27
28
  * @default 0.25
@@ -60,6 +60,6 @@ var Hamburger = function (props) {
60
60
  ? bottom
61
61
  : { transform: "translateY(".concat(yTranslateMagnitude, "px)") };
62
62
  var middleStyle = open ? middle : {};
63
- return (_jsxs(UnstyledButton, __assign({ style: __assign(__assign(__assign({}, style), outerStyle), buttonStyle) }, buttonProps, { children: [_jsx("span", { style: __assign(__assign({}, commonLineStyle), topStyle) }), !double && _jsx("span", { style: __assign(__assign({}, commonLineStyle), middleStyle) }), _jsx("span", { style: __assign(__assign({}, commonLineStyle), bottomStyle) })] })));
63
+ return (_jsxs(UnstyledButton, __assign({ style: __assign(__assign(__assign({}, style), outerStyle), buttonStyle) }, buttonProps, { "aria-label": buttonProps["aria-label"] || "hamburger", children: [_jsx("span", { style: __assign(__assign({}, commonLineStyle), topStyle) }), !double && _jsx("span", { style: __assign(__assign({}, commonLineStyle), middleStyle) }), _jsx("span", { style: __assign(__assign({}, commonLineStyle), bottomStyle) })] })));
64
64
  };
65
65
  export default Hamburger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamjanicki/ui",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Basic UI components and hooks for React in TypeScript",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",