ag-common 0.0.544 → 0.0.546
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.
|
@@ -14,7 +14,6 @@ const Base = styled_1.default.div `
|
|
|
14
14
|
position: relative;
|
|
15
15
|
transition: all 200ms;
|
|
16
16
|
border-right: solid 1px #ccc;
|
|
17
|
-
margin-right: 1rem;
|
|
18
17
|
padding-left: 0.5rem;
|
|
19
18
|
//width set in style
|
|
20
19
|
|
|
@@ -32,12 +31,13 @@ const Base = styled_1.default.div `
|
|
|
32
31
|
${common_1.NoTextSelect};
|
|
33
32
|
|
|
34
33
|
&:hover {
|
|
35
|
-
[data-content] {
|
|
34
|
+
[data-type='content-block'] {
|
|
36
35
|
left: 1rem;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
`;
|
|
40
39
|
const ContentBlock = styled_1.default.div `
|
|
40
|
+
height: 100%;
|
|
41
41
|
left: -18rem;
|
|
42
42
|
transition: left 200ms;
|
|
43
43
|
&[data-open='false'] {
|
|
@@ -52,11 +52,8 @@ const Content = styled_1.default.div `
|
|
|
52
52
|
flex-flow: column;
|
|
53
53
|
width: 100%;
|
|
54
54
|
height: 100%;
|
|
55
|
-
margin-top: 2rem;
|
|
56
55
|
|
|
57
56
|
&[data-open='false'] {
|
|
58
|
-
padding: 1rem;
|
|
59
|
-
background-color: white;
|
|
60
57
|
filter: drop-shadow(1px 1px 0.5rem #555);
|
|
61
58
|
border-radius: 1rem;
|
|
62
59
|
}
|
|
@@ -96,11 +93,11 @@ const Sidebar = ({ children, className, key = 'sidebar', cookieDocument, width =
|
|
|
96
93
|
defaultValue: false,
|
|
97
94
|
cookieDocument: cookieDocument,
|
|
98
95
|
});
|
|
99
|
-
return (react_1.default.createElement(Base, { className: className, "data-open": open, onClick: () => !open && setOpen(true), "data-hover": true, style: { width: !open ? '0.5rem' : width } },
|
|
96
|
+
return (react_1.default.createElement(Base, { "data-type": "sidebar", className: className, "data-open": open, onClick: () => !open && setOpen(true), "data-hover": true, style: { width: !open ? '0.5rem' : width } },
|
|
100
97
|
react_1.default.createElement(Hamburger, { "data-open": open, onClick: () => setOpen(!open), "data-hover": true },
|
|
101
98
|
react_1.default.createElement(ChevronStyled, { point: open ? 'left' : 'right', width: "100%" })),
|
|
102
|
-
react_1.default.createElement(ContentBlock, { "data-
|
|
103
|
-
react_1.default.createElement(Content, { "data-open": open, onClick: (e) => {
|
|
99
|
+
react_1.default.createElement(ContentBlock, { "data-type": "content-block", "data-open": open, style: { width: !open ? width : undefined } },
|
|
100
|
+
react_1.default.createElement(Content, { "data-type": "content", "data-open": open, onClick: (e) => {
|
|
104
101
|
e.stopPropagation();
|
|
105
102
|
} }, children))));
|
|
106
103
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.546",
|
|
3
3
|
"name": "ag-common",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"@emotion/react": "11.11.1",
|
|
44
44
|
"@emotion/styled": "11.11.0",
|
|
45
45
|
"@smithy/types": "2.4.0",
|
|
46
|
-
"@storybook/addon-actions": "7.5.
|
|
47
|
-
"@storybook/addon-docs": "7.5.
|
|
48
|
-
"@storybook/addon-essentials": "7.5.
|
|
49
|
-
"@storybook/addon-interactions": "7.5.
|
|
50
|
-
"@storybook/addon-links": "7.5.
|
|
51
|
-
"@storybook/addons": "7.5.
|
|
52
|
-
"@storybook/react": "7.5.
|
|
53
|
-
"@storybook/react-webpack5": "7.5.
|
|
54
|
-
"@storybook/theming": "7.5.
|
|
46
|
+
"@storybook/addon-actions": "7.5.2",
|
|
47
|
+
"@storybook/addon-docs": "7.5.2",
|
|
48
|
+
"@storybook/addon-essentials": "7.5.2",
|
|
49
|
+
"@storybook/addon-interactions": "7.5.2",
|
|
50
|
+
"@storybook/addon-links": "7.5.2",
|
|
51
|
+
"@storybook/addons": "7.5.2",
|
|
52
|
+
"@storybook/react": "7.5.2",
|
|
53
|
+
"@storybook/react-webpack5": "7.5.2",
|
|
54
|
+
"@storybook/theming": "7.5.2",
|
|
55
55
|
"@types/jest": "29.5.6",
|
|
56
56
|
"@types/jsonwebtoken": "9.0.4",
|
|
57
57
|
"@types/node": "20.8.9",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"eslint-config-e7npm": "0.0.49",
|
|
62
62
|
"jest": "29.7.0",
|
|
63
63
|
"rimraf": "5.0.5",
|
|
64
|
-
"storybook": "7.5.
|
|
64
|
+
"storybook": "7.5.2",
|
|
65
65
|
"ts-jest": "29.1.1"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|