@adamjanicki/ui 1.4.4 → 1.4.5

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.
@@ -41,7 +41,7 @@ var Hamburger = function (props) {
41
41
  position: "relative",
42
42
  justifyContent: "center",
43
43
  alignItems: "center",
44
- transition: "all ".concat(duration, "s ease"),
44
+ transition: "transform ".concat(duration, "s ease"),
45
45
  };
46
46
  var commonLineStyle = {
47
47
  height: lineHeight,
@@ -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, { "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) })] })));
63
+ return (_jsxs(UnstyledButton, __assign({ style: __assign(__assign(__assign({}, style), outerStyle), buttonStyle) }, buttonProps, { "aria-label": buttonProps["aria-label"] || "hamburger", "aria-expanded": open, 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.4",
3
+ "version": "1.4.5",
4
4
  "description": "Basic UI components and hooks for React in TypeScript",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",