contentoh-components-library 21.2.29 → 21.2.31
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/.env.production +1 -1
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
- package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
- package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
- package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
- package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
- package/dist/components/atoms/MenuProductImage/index.js +88 -0
- package/dist/components/atoms/MenuProductImage/styles.js +20 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +1 -3
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +53 -46
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +27 -18
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
- package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
- package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
- package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
- package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
- package/package.json +1 -1
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +3 -4
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +54 -37
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +137 -69
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
+
import { BrowserRouter as Router, NavLink } from "react-router-dom";
|
|
3
|
+
import { createGlobalStyle } from "styled-components";
|
|
2
4
|
|
|
3
5
|
export const Container = styled.div`
|
|
4
6
|
height: 98%;
|
|
@@ -6,8 +8,8 @@ export const Container = styled.div`
|
|
|
6
8
|
padding: 23px 10px 70px 10px;
|
|
7
9
|
flex-direction: column;
|
|
8
10
|
justify-content: space-between;
|
|
9
|
-
overflow:
|
|
10
|
-
width: ${({ bar }) => (bar ?
|
|
11
|
+
overflow: none;
|
|
12
|
+
width: ${({ bar }) => (bar ? 260 : 58)}px;
|
|
11
13
|
border-radius: ${({ bar }) => (bar ? 20 : 50)}px;
|
|
12
14
|
background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);
|
|
13
15
|
scrollbar-width: none;
|
|
@@ -24,86 +26,152 @@ export const Container = styled.div`
|
|
|
24
26
|
display: flex;
|
|
25
27
|
flex-direction: column;
|
|
26
28
|
align-items: flex-start;
|
|
27
|
-
margin-top: ${({ bar }) => (bar === "" ? 145 :
|
|
28
|
-
padding-left: ${({ bar }) => (bar ?
|
|
29
|
+
margin-top: ${({ bar }) => (bar === "" ? 145 : 40)}%;
|
|
30
|
+
padding-left: ${({ bar }) => (bar ? 10 : 0)}px;
|
|
29
31
|
.active {
|
|
30
32
|
background: #e33aa9;
|
|
31
33
|
}
|
|
32
34
|
& + div {
|
|
33
35
|
margin-top: 5px;
|
|
34
36
|
}
|
|
35
|
-
a {
|
|
36
|
-
height: ${({ bar }) => (bar ? 32 : 38)}px;
|
|
37
|
-
display: flex;
|
|
38
|
-
justify-content: ${({ bar }) => (bar ? "flex-start" : "center")};
|
|
39
|
-
border-radius: ${({ bar }) => (bar ? 18 : 100)}px;
|
|
40
|
-
align-items: center;
|
|
41
|
-
font-family: sans-serif;
|
|
42
|
-
font-style: normal;
|
|
43
|
-
font-weight: 400;
|
|
44
|
-
font-size: 18px;
|
|
45
|
-
line-height: 21px;
|
|
46
|
-
letter-spacing: -0.015em;
|
|
47
|
-
color: #fafafa;
|
|
48
|
-
text-decoration: none;
|
|
49
|
-
&.option-link {
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
width: ${({ bar }) => (bar ? "160" : "38")}px;
|
|
52
|
-
margin: 5px 0;
|
|
53
|
-
padding-left: ${({ bar }) => (bar ? 15 : 0)}px;
|
|
54
|
-
}
|
|
55
|
-
p {
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
margin: 0%;
|
|
58
|
-
pointer-events: none;
|
|
59
|
-
}
|
|
60
|
-
img {
|
|
61
|
-
width: 22px;
|
|
62
|
-
& + * {
|
|
63
|
-
margin-left: 12px;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
.option-link:hover {
|
|
68
|
-
background: #e33aa9;
|
|
69
|
-
}
|
|
70
37
|
.sub-option {
|
|
71
38
|
display: flex;
|
|
72
39
|
flex-direction: column;
|
|
73
40
|
padding-left: ${({ bar }) => (bar ? 28 : 20)}px;
|
|
74
41
|
height: auto;
|
|
75
42
|
width: auto;
|
|
76
|
-
a {
|
|
77
|
-
display: flex;
|
|
78
|
-
justify-content: flex-start;
|
|
79
|
-
text-decoration: none;
|
|
80
|
-
position: relative;
|
|
81
|
-
font-size: 13px;
|
|
82
|
-
border-left: 1px solid #f0eef2;
|
|
83
|
-
border-radius: 0;
|
|
84
|
-
color: #f0eef2;
|
|
85
|
-
padding-top: 14px;
|
|
86
|
-
padding-left: 12px;
|
|
87
|
-
height: 25px;
|
|
88
|
-
&::before {
|
|
89
|
-
border-left: 1px solid #e33aa9;
|
|
90
|
-
width: 10px;
|
|
91
|
-
content: "";
|
|
92
|
-
border-radius: 50%;
|
|
93
|
-
height: 10px;
|
|
94
|
-
background-color: white;
|
|
95
|
-
position: absolute;
|
|
96
|
-
bottom: 0;
|
|
97
|
-
left: ${({ bar }) => (bar ? -4 : -34)}%;
|
|
98
|
-
}
|
|
99
|
-
&.active {
|
|
100
|
-
background: none;
|
|
101
|
-
&::before {
|
|
102
|
-
background-color: #e33aa9;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
43
|
}
|
|
107
44
|
}
|
|
108
45
|
}
|
|
109
46
|
`;
|
|
47
|
+
|
|
48
|
+
export const NavLinkOption = styled(NavLink)`
|
|
49
|
+
height: ${({ bar }) => (bar ? 32 : 38)}px;
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: ${({ bar }) => (bar ? "flex-start" : "center")};
|
|
52
|
+
border-radius: ${({ bar }) => (bar ? 18 : 100)}px;
|
|
53
|
+
align-items: center;
|
|
54
|
+
font-family: sans-serif;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
font-size: 18px;
|
|
58
|
+
line-height: 21px;
|
|
59
|
+
margin: 5px 0;
|
|
60
|
+
letter-spacing: -0.015em;
|
|
61
|
+
color: #fafafa;
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
width: ${({ bar }) => (bar ? "163" : "38")}px;
|
|
65
|
+
padding: 0 17px;
|
|
66
|
+
&:hover {
|
|
67
|
+
background: #e33aa9;
|
|
68
|
+
}
|
|
69
|
+
p {
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
margin: 0%;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
img {
|
|
75
|
+
width: 22px;
|
|
76
|
+
& + * {
|
|
77
|
+
margin-left: 12px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
&.sub-option-link {
|
|
81
|
+
display: flex;
|
|
82
|
+
justify-content: flex-start;
|
|
83
|
+
text-decoration: none;
|
|
84
|
+
position: relative;
|
|
85
|
+
font-size: 13px;
|
|
86
|
+
border-left: 1px solid #f0eef2;
|
|
87
|
+
border-radius: 0;
|
|
88
|
+
color: #f0eef2;
|
|
89
|
+
padding-top: 14px;
|
|
90
|
+
height: 25px;
|
|
91
|
+
margin: 0;
|
|
92
|
+
padding-left: 12px;
|
|
93
|
+
&::before {
|
|
94
|
+
border-left: 1px solid #e33aa9;
|
|
95
|
+
width: 10px;
|
|
96
|
+
content: "";
|
|
97
|
+
border-radius: 50%;
|
|
98
|
+
height: 10px;
|
|
99
|
+
background-color: white;
|
|
100
|
+
position: absolute;
|
|
101
|
+
bottom: 0;
|
|
102
|
+
left: ${({ bar }) => (bar ? -4 : -16)}%;
|
|
103
|
+
}
|
|
104
|
+
&.active {
|
|
105
|
+
background: none !important;
|
|
106
|
+
&::before {
|
|
107
|
+
background-color: #e33aa9;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
&:hover {
|
|
111
|
+
background: none;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
`;
|
|
115
|
+
|
|
116
|
+
export const ContainerPrincipal = styled.div`
|
|
117
|
+
width: 100%;
|
|
118
|
+
display: flex;
|
|
119
|
+
height: 100vh;
|
|
120
|
+
`;
|
|
121
|
+
|
|
122
|
+
export const GlobalStyle = createGlobalStyle`
|
|
123
|
+
@font-face {
|
|
124
|
+
font-family: 'Avenir Next';
|
|
125
|
+
font-style: normal;
|
|
126
|
+
font-weight: normal;
|
|
127
|
+
src:
|
|
128
|
+
url('../../assets/fonts/AvenirNextLTPro-Bold.otf') format('otf'),
|
|
129
|
+
url('../../assets/fonts/AvenirNextLTPro-Regular.otf') format('otf');
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
html, body, div, span, applet, object, iframe,
|
|
133
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
134
|
+
a, abbr, acronym, address, big, cite, code,
|
|
135
|
+
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
|
136
|
+
small, strike, strong, sub, sup, tt, var,
|
|
137
|
+
b, u, i, center,
|
|
138
|
+
dl, dt, dd, ol, ul, li,
|
|
139
|
+
fieldset, figure, form, label, legend,
|
|
140
|
+
table, caption, tbody, tfoot, thead, tr, th, td {
|
|
141
|
+
margin: 0;
|
|
142
|
+
padding: 0;
|
|
143
|
+
border: 0;
|
|
144
|
+
outline: 0;
|
|
145
|
+
font-size: 100%;
|
|
146
|
+
vertical-align: baseline;
|
|
147
|
+
background: transparent;
|
|
148
|
+
}
|
|
149
|
+
body {
|
|
150
|
+
line-height: 1;
|
|
151
|
+
}
|
|
152
|
+
ol, ul {
|
|
153
|
+
list-style: none;
|
|
154
|
+
}
|
|
155
|
+
blockquote, q {
|
|
156
|
+
quotes: none;
|
|
157
|
+
}
|
|
158
|
+
blockquote:before, blockquote:after,
|
|
159
|
+
q:before, q:after {
|
|
160
|
+
content: '';
|
|
161
|
+
content: none;
|
|
162
|
+
}
|
|
163
|
+
:focus {
|
|
164
|
+
outline: 0;
|
|
165
|
+
}
|
|
166
|
+
ins {
|
|
167
|
+
text-decoration: none;
|
|
168
|
+
}
|
|
169
|
+
del {
|
|
170
|
+
text-decoration: line-through;
|
|
171
|
+
}
|
|
172
|
+
table {
|
|
173
|
+
border-collapse: collapse;
|
|
174
|
+
border-spacing: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
`;
|