contentoh-components-library 21.2.48 → 21.2.50

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.
@@ -17,18 +17,27 @@ var _reactRouterDom = require("react-router-dom");
17
17
 
18
18
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
19
19
 
20
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n box-sizing: border-box;\n padding: 23px 0 70px 0;\n flex-direction: column;\n justify-content: space-between;\n overflow: none;\n width: ", "px;\n background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);\n scrollbar-width: none;\n display: flex;\n text-align: center;\n transition: width 0.3s linear;\n margin: 0;\n & + * {\n margin-left: 30px;\n }\n .navbar-top {\n .logo {\n height: 22px;\n }\n .option {\n .option-div {\n width: 100%;\n & + div {\n margin-top: 10px;\n }\n }\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 50px;\n .active {\n //background: #c8489c;\n text-decoration: none;\n background: #e33aa9;\n }\n .sub-option {\n display: flex;\n flex-direction: column;\n padding-left: 32px;\n height: auto;\n width: auto;\n }\n }\n }\n"])), function (_ref) {
20
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n box-sizing: border-box;\n padding: 23px 0 70px 0;\n flex-direction: column;\n justify-content: space-between;\n overflow: none;\n width: ", "px;\n background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);\n scrollbar-width: none;\n display: flex;\n text-align: center;\n transition: width 0.3s linear;\n margin: 0;\n & + * {\n margin-left: 30px;\n }\n .navbar-top {\n .logo {\n height: 22px;\n }\n .option {\n .option-div {\n width: 100%;\n white-space: nowrap;\n }\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 50px;\n .active {\n text-decoration: none;\n background: rgba(255, 255, 255, 0.1);\n }\n .sub-option {\n display: flex;\n flex-direction: column;\n padding-left: 32px;\n height: auto;\n width: auto;\n &:last-child {\n margin-bottom: 10px;\n }\n }\n }\n }\n"])), function (_ref) {
21
21
  var bar = _ref.bar;
22
22
  return bar ? 240 : 66;
23
23
  });
24
24
 
25
25
  exports.Container = Container;
26
- var NavLinkOption = (0, _styledComponents.default)(_reactRouterDom.NavLink)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 38px;\n display: flex;\n justify-content: ", ";\n align-items: center;\n font-family: sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 18px;\n line-height: 21px;\n letter-spacing: -0.015em;\n color: #fafafa;\n text-decoration: none;\n cursor: pointer;\n padding: ", "px;\n &:hover {\n background: #e33aa9;\n color: #fafafa;\n text-decoration: none;\n }\n p {\n cursor: pointer;\n margin: 0%;\n pointer-events: none;\n }\n img {\n height: 22px;\n position: absolute;\n left: 22px;\n & + * {\n margin-left: 30px;\n }\n }\n &.sub-option-link {\n display: flex;\n justify-content: flex-start;\n text-decoration: none;\n position: relative;\n font-size: 13px;\n border-left: 1px solid #f0eef2;\n border-radius: 0;\n color: #f0eef2;\n padding-top: 14px;\n height: 25px;\n margin: 0;\n padding-left: 12px;\n &::before {\n border-left: 1px solid #e33aa9;\n width: 10px;\n content: \"\";\n border-radius: 50%;\n height: 10px;\n background-color: white;\n position: absolute;\n bottom: 0;\n left: -6px;\n }\n &.active {\n background: none !important;\n color: #fafafa;\n text-decoration: none;\n //transition: all 0.3s linear;\n &::before {\n background-color: #e33aa9;\n }\n }\n &:hover {\n background: none;\n }\n }\n"])), function (_ref2) {
26
+ var NavLinkOption = (0, _styledComponents.default)(_reactRouterDom.NavLink)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 42px;\n display: flex;\n justify-content: ", ";\n align-items: center;\n font-family: sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 17px;\n line-height: 21px;\n letter-spacing: -0.015em;\n transition: color 0.3s linear;\n color: ", ";\n text-decoration: none;\n cursor: pointer;\n padding: ", "px;\n &:hover {\n background: rgba(255, 255, 255, 0.2);\n color: #fafafa;\n text-decoration: none;\n }\n p {\n cursor: pointer;\n margin: 0%;\n pointer-events: none;\n }\n img {\n height: 22px;\n position: absolute;\n left: 22px;\n & + * {\n margin-left: 30px;\n }\n }\n &.sub-option-link {\n display: flex;\n justify-content: flex-start;\n text-decoration: none;\n position: relative;\n font-size: 13px;\n border-left: 1px solid #f0eef2;\n border-radius: 0;\n transition: color 0.3s linear;\n color: ", ";\n padding-top: 14px;\n height: 25px;\n margin: 0;\n padding-left: 12px;\n &::before {\n border-left: 1px solid #e33aa9;\n width: 10px;\n content: \"\";\n border-radius: 50%;\n height: 10px;\n background-color: white;\n position: absolute;\n bottom: 0;\n left: -6px;\n }\n &.active {\n background: none !important;\n text-decoration: none;\n transition: color 0.3s linear;\n color: ", ";\n &::before {\n background-color: #e33aa9;\n }\n }\n &:hover {\n background: none;\n }\n }\n"])), function (_ref2) {
27
27
  var bar = _ref2.bar;
28
28
  return bar ? "flex-start" : "center";
29
29
  }, function (_ref3) {
30
30
  var bar = _ref3.bar;
31
+ return bar ? "#fafafa" : "transparent";
32
+ }, function (_ref4) {
33
+ var bar = _ref4.bar;
31
34
  return bar ? "0 22" : "0 8";
35
+ }, function (_ref5) {
36
+ var bar = _ref5.bar;
37
+ return bar ? "#f0eef2" : "transparent";
38
+ }, function (_ref6) {
39
+ var bar = _ref6.bar;
40
+ return bar ? "#fafafa" : "transparent";
32
41
  });
33
42
  exports.NavLinkOption = NavLinkOption;
34
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.48",
3
+ "version": "21.2.50",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -1,5 +1,5 @@
1
1
  import styled from "styled-components";
2
- import { BrowserRouter as Router, NavLink } from "react-router-dom";
2
+ import { NavLink } from "react-router-dom";
3
3
  import { createGlobalStyle } from "styled-components";
4
4
 
5
5
  export const Container = styled.div`
@@ -26,18 +26,15 @@ export const Container = styled.div`
26
26
  .option {
27
27
  .option-div {
28
28
  width: 100%;
29
- & + div {
30
- margin-top: 10px;
31
- }
29
+ white-space: nowrap;
32
30
  }
33
31
  display: flex;
34
32
  flex-direction: column;
35
33
  align-items: center;
36
34
  margin-top: 50px;
37
35
  .active {
38
- //background: #c8489c;
39
36
  text-decoration: none;
40
- background: #e33aa9;
37
+ background: rgba(255, 255, 255, 0.1);
41
38
  }
42
39
  .sub-option {
43
40
  display: flex;
@@ -45,28 +42,32 @@ export const Container = styled.div`
45
42
  padding-left: 32px;
46
43
  height: auto;
47
44
  width: auto;
45
+ &:last-child {
46
+ margin-bottom: 10px;
47
+ }
48
48
  }
49
49
  }
50
50
  }
51
51
  `;
52
52
 
53
53
  export const NavLinkOption = styled(NavLink)`
54
- height: 38px;
54
+ height: 42px;
55
55
  display: flex;
56
56
  justify-content: ${({ bar }) => (bar ? "flex-start" : "center")};
57
57
  align-items: center;
58
58
  font-family: sans-serif;
59
59
  font-style: normal;
60
60
  font-weight: 400;
61
- font-size: 18px;
61
+ font-size: 17px;
62
62
  line-height: 21px;
63
63
  letter-spacing: -0.015em;
64
- color: #fafafa;
64
+ transition: color 0.3s linear;
65
+ color: ${({ bar }) => (bar ? "#fafafa" : "transparent")};
65
66
  text-decoration: none;
66
67
  cursor: pointer;
67
68
  padding: ${({ bar }) => (bar ? "0 22" : "0 8")}px;
68
69
  &:hover {
69
- background: #e33aa9;
70
+ background: rgba(255, 255, 255, 0.2);
70
71
  color: #fafafa;
71
72
  text-decoration: none;
72
73
  }
@@ -91,7 +92,8 @@ export const NavLinkOption = styled(NavLink)`
91
92
  font-size: 13px;
92
93
  border-left: 1px solid #f0eef2;
93
94
  border-radius: 0;
94
- color: #f0eef2;
95
+ transition: color 0.3s linear;
96
+ color: ${({ bar }) => (bar ? "#f0eef2" : "transparent")};
95
97
  padding-top: 14px;
96
98
  height: 25px;
97
99
  margin: 0;
@@ -109,9 +111,9 @@ export const NavLinkOption = styled(NavLink)`
109
111
  }
110
112
  &.active {
111
113
  background: none !important;
112
- color: #fafafa;
113
114
  text-decoration: none;
114
- //transition: all 0.3s linear;
115
+ transition: color 0.3s linear;
116
+ color: ${({ bar }) => (bar ? "#fafafa" : "transparent")};
115
117
  &::before {
116
118
  background-color: #e33aa9;
117
119
  }