ag-common 0.0.549 → 0.0.550
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.
|
@@ -32,6 +32,7 @@ const styled_1 = __importDefault(require("@emotion/styled"));
|
|
|
32
32
|
const react_1 = __importStar(require("react"));
|
|
33
33
|
const helpers_1 = require("../../helpers");
|
|
34
34
|
const use_1 = require("../../helpers/cookie/use");
|
|
35
|
+
const Hamburger_1 = require("../../icons/Hamburger");
|
|
35
36
|
const common_1 = require("../../styles/common");
|
|
36
37
|
const media_1 = require("../../styles/media");
|
|
37
38
|
const Chevron_1 = require("../Chevron");
|
|
@@ -96,7 +97,7 @@ const Content = styled_1.default.div `
|
|
|
96
97
|
background-color: rgba(255, 255, 255, 0.1);
|
|
97
98
|
}
|
|
98
99
|
`;
|
|
99
|
-
const
|
|
100
|
+
const HamburgerB = styled_1.default.div `
|
|
100
101
|
position: absolute;
|
|
101
102
|
transition: all 200ms;
|
|
102
103
|
z-index: 2;
|
|
@@ -114,8 +115,9 @@ const Hamburger = styled_1.default.div `
|
|
|
114
115
|
width: 1.5rem;
|
|
115
116
|
height: 1.5rem;
|
|
116
117
|
background-color: rgba(255, 255, 255, 0.9);
|
|
118
|
+
padding: 0.25rem;
|
|
117
119
|
&:hover {
|
|
118
|
-
background-color: rgba(
|
|
120
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
119
121
|
}
|
|
120
122
|
border-radius: 50%;
|
|
121
123
|
border: solid 1px rgba(0, 0, 0, 0.5);
|
|
@@ -140,8 +142,7 @@ const Sidebar = ({ children, className, key = 'sidebar', cookieDocument, }) => {
|
|
|
140
142
|
setOpen(false);
|
|
141
143
|
});
|
|
142
144
|
return (react_1.default.createElement(Base, { "data-type": "sidebar", className: className, "data-open": open, onClick: () => !open && setOpen(true), "data-hover": true, ref: ref },
|
|
143
|
-
react_1.default.createElement(
|
|
144
|
-
react_1.default.createElement(ChevronStyled, { point: open ? 'left' : 'right', width: "100%" })),
|
|
145
|
+
react_1.default.createElement(HamburgerB, { "data-open": open, onClick: () => setOpen(!open), "data-hover": true }, open ? react_1.default.createElement(ChevronStyled, { point: 'left', width: "100%" }) : react_1.default.createElement(Hamburger_1.Hamburger, null)),
|
|
145
146
|
react_1.default.createElement(ContentBlock, { "data-type": "content-block", "data-open": open },
|
|
146
147
|
react_1.default.createElement(Content, { "data-type": "content", "data-open": open, onClick: (e) => {
|
|
147
148
|
e.stopPropagation();
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Hamburger = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Hamburger = ({ className }) => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32 ", xmlSpace: "preserve", className: className },
|
|
9
|
+
react_1.default.createElement("path", { d: "M4 10h24a2 2 0 0 0 0-4H4a2 2 0 0 0 0 4zm24 4H4a2 2 0 0 0 0 4h24a2 2 0 0 0 0-4zm0 8H4a2 2 0 0 0 0 4h24a2 2 0 0 0 0-4z" })));
|
|
10
|
+
exports.Hamburger = Hamburger;
|
package/dist/ui/icons/index.d.ts
CHANGED
package/dist/ui/icons/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./Circle"), exports);
|
|
|
20
20
|
__exportStar(require("./CircleDot"), exports);
|
|
21
21
|
__exportStar(require("./CrossIcon"), exports);
|
|
22
22
|
__exportStar(require("./Door"), exports);
|
|
23
|
+
__exportStar(require("./Hamburger"), exports);
|
|
23
24
|
__exportStar(require("./HorizontalDots"), exports);
|
|
24
25
|
__exportStar(require("./Magnify"), exports);
|
|
25
26
|
__exportStar(require("./Pencil"), exports);
|
package/package.json
CHANGED