contentoh-components-library 21.2.31 → 21.2.33

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.
@@ -56,6 +56,7 @@ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
56
56
 
57
57
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
58
58
  bar: trueBar,
59
+ className: "option-div",
59
60
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.NavLinkOption, {
60
61
  to: item.path,
61
62
  bar: trueBar,
@@ -17,7 +17,7 @@ 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: 98%;\n box-sizing: border-box;\n padding: 23px 10px 70px 10px;\n flex-direction: column;\n justify-content: space-between;\n overflow: none;\n width: ", "px;\n border-radius: ", "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: 10px 0 10px 20px;\n & + * {\n margin-left: 30px;\n }\n .navbar-top {\n transition: all 0.3s linear;\n .option {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-top: ", "%;\n padding-left: ", "px;\n .active {\n background: #e33aa9;\n }\n & + div {\n margin-top: 5px;\n }\n .sub-option {\n display: flex;\n flex-direction: column;\n padding-left: ", "px;\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: 98%;\n box-sizing: border-box;\n padding: 23px 10px 70px 10px;\n flex-direction: column;\n justify-content: space-between;\n overflow: none;\n width: ", "px;\n border-radius: ", "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: 10px 0 10px 20px;\n & + * {\n margin-left: 30px;\n }\n .navbar-top {\n transition: all 0.3s linear;\n .option {\n .option-div {\n & + div {\n margin-top: 10px;\n }\n }\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-top: ", "%;\n padding-left: ", "px;\n .active {\n background: #e33aa9;\n color: #fafafa;\n text-decoration: none;\n transition: all 0.3s linear;\n }\n .sub-option {\n display: flex;\n flex-direction: column;\n padding-left: ", "px;\n height: auto;\n width: auto;\n }\n }\n }\n"])), function (_ref) {
21
21
  var bar = _ref.bar;
22
22
  return bar ? 260 : 58;
23
23
  }, function (_ref2) {
@@ -35,7 +35,7 @@ var Container = _styledComponents.default.div(_templateObject || (_templateObjec
35
35
  });
36
36
 
37
37
  exports.Container = Container;
38
- var NavLinkOption = (0, _styledComponents.default)(_reactRouterDom.NavLink)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: ", "px;\n display: flex;\n justify-content: ", ";\n border-radius: ", "px;\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 margin: 5px 0;\n letter-spacing: -0.015em;\n color: #fafafa;\n text-decoration: none;\n cursor: pointer;\n width: ", "px;\n padding: 0 17px;\n &:hover {\n background: #e33aa9;\n }\n p {\n cursor: pointer;\n margin: 0%;\n pointer-events: none;\n }\n img {\n width: 22px;\n & + * {\n margin-left: 12px;\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: ", "%;\n }\n &.active {\n background: none !important;\n &::before {\n background-color: #e33aa9;\n }\n }\n &:hover {\n background: none;\n }\n }\n"])), function (_ref6) {
38
+ var NavLinkOption = (0, _styledComponents.default)(_reactRouterDom.NavLink)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: ", "px;\n display: flex;\n justify-content: ", ";\n border-radius: ", "px;\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 //margin: 5px 0;\n letter-spacing: -0.015em;\n color: #fafafa;\n text-decoration: none;\n cursor: pointer;\n width: ", "px;\n padding: 0 17px;\n &:hover {\n background: #e33aa9;\n }\n p {\n cursor: pointer;\n margin: 0%;\n pointer-events: none;\n }\n img {\n width: 22px;\n & + * {\n margin-left: 12px;\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: ", "%;\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 (_ref6) {
39
39
  var bar = _ref6.bar;
40
40
  return bar ? 32 : 38;
41
41
  }, function (_ref7) {
@@ -116,7 +116,7 @@ var CustomSelect = function CustomSelect(_ref) {
116
116
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
117
117
  className: "button-list",
118
118
  onClick: function onClick() {
119
- return setShowList(true);
119
+ return setShowList(!showList);
120
120
  },
121
121
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
122
122
  children: selectLabel
package/dist/index.js CHANGED
@@ -615,7 +615,7 @@ Object.keys(_index46).forEach(function (key) {
615
615
  });
616
616
  });
617
617
 
618
- var _index47 = require("./components/organisms/ChangePassword/index");
618
+ var _index47 = require("./components/molecules/CustomSelect/index");
619
619
 
620
620
  Object.keys(_index47).forEach(function (key) {
621
621
  if (key === "default" || key === "__esModule") return;
@@ -628,7 +628,7 @@ Object.keys(_index47).forEach(function (key) {
628
628
  });
629
629
  });
630
630
 
631
- var _index48 = require("./components/organisms/Fullplan/index");
631
+ var _index48 = require("./components/organisms/ChangePassword/index");
632
632
 
633
633
  Object.keys(_index48).forEach(function (key) {
634
634
  if (key === "default" || key === "__esModule") return;
@@ -641,7 +641,7 @@ Object.keys(_index48).forEach(function (key) {
641
641
  });
642
642
  });
643
643
 
644
- var _index49 = require("./components/organisms/FullProductNameHeader/index");
644
+ var _index49 = require("./components/organisms/Fullplan/index");
645
645
 
646
646
  Object.keys(_index49).forEach(function (key) {
647
647
  if (key === "default" || key === "__esModule") return;
@@ -654,7 +654,7 @@ Object.keys(_index49).forEach(function (key) {
654
654
  });
655
655
  });
656
656
 
657
- var _index50 = require("./components/organisms/FullTabsMenu/index");
657
+ var _index50 = require("./components/organisms/FullProductNameHeader/index");
658
658
 
659
659
  Object.keys(_index50).forEach(function (key) {
660
660
  if (key === "default" || key === "__esModule") return;
@@ -667,7 +667,7 @@ Object.keys(_index50).forEach(function (key) {
667
667
  });
668
668
  });
669
669
 
670
- var _index51 = require("./components/organisms/ImageDataTable/index");
670
+ var _index51 = require("./components/organisms/FullTabsMenu/index");
671
671
 
672
672
  Object.keys(_index51).forEach(function (key) {
673
673
  if (key === "default" || key === "__esModule") return;
@@ -680,7 +680,7 @@ Object.keys(_index51).forEach(function (key) {
680
680
  });
681
681
  });
682
682
 
683
- var _index52 = require("./components/organisms/ImagePreviewer/index");
683
+ var _index52 = require("./components/organisms/ImageDataTable/index");
684
684
 
685
685
  Object.keys(_index52).forEach(function (key) {
686
686
  if (key === "default" || key === "__esModule") return;
@@ -693,7 +693,7 @@ Object.keys(_index52).forEach(function (key) {
693
693
  });
694
694
  });
695
695
 
696
- var _index53 = require("./components/organisms/ImagesGroup/index");
696
+ var _index53 = require("./components/organisms/ImagePreviewer/index");
697
697
 
698
698
  Object.keys(_index53).forEach(function (key) {
699
699
  if (key === "default" || key === "__esModule") return;
@@ -706,7 +706,7 @@ Object.keys(_index53).forEach(function (key) {
706
706
  });
707
707
  });
708
708
 
709
- var _index54 = require("./components/organisms/InputGroup/index");
709
+ var _index54 = require("./components/organisms/ImagesGroup/index");
710
710
 
711
711
  Object.keys(_index54).forEach(function (key) {
712
712
  if (key === "default" || key === "__esModule") return;
@@ -719,7 +719,7 @@ Object.keys(_index54).forEach(function (key) {
719
719
  });
720
720
  });
721
721
 
722
- var _index55 = require("./components/organisms/ProductImageModal/index");
722
+ var _index55 = require("./components/organisms/InputGroup/index");
723
723
 
724
724
  Object.keys(_index55).forEach(function (key) {
725
725
  if (key === "default" || key === "__esModule") return;
@@ -732,6 +732,19 @@ Object.keys(_index55).forEach(function (key) {
732
732
  });
733
733
  });
734
734
 
735
+ var _index56 = require("./components/organisms/ProductImageModal/index");
736
+
737
+ Object.keys(_index56).forEach(function (key) {
738
+ if (key === "default" || key === "__esModule") return;
739
+ if (key in exports && exports[key] === _index56[key]) return;
740
+ Object.defineProperty(exports, key, {
741
+ enumerable: true,
742
+ get: function get() {
743
+ return _index56[key];
744
+ }
745
+ });
746
+ });
747
+
735
748
  var _ChangePasswordLogin = require("./components/pages/ChangePasswordLogin");
736
749
 
737
750
  Object.keys(_ChangePasswordLogin).forEach(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.31",
3
+ "version": "21.2.33",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -30,7 +30,7 @@ export const VerticalSideMenuMainPage = ({
30
30
  ></img>
31
31
  <div className="option">
32
32
  {menuoption.map((item, index) => (
33
- <div key={index} bar={trueBar}>
33
+ <div key={index} bar={trueBar} className="option-div">
34
34
  <NavLinkOption to={item.path} bar={trueBar}>
35
35
  <img src={item.icon} alt={item.title}></img>
36
36
  {trueBar && <p>{item.title}</p>}
@@ -23,6 +23,11 @@ export const Container = styled.div`
23
23
  .navbar-top {
24
24
  transition: all 0.3s linear;
25
25
  .option {
26
+ .option-div {
27
+ & + div {
28
+ margin-top: 10px;
29
+ }
30
+ }
26
31
  display: flex;
27
32
  flex-direction: column;
28
33
  align-items: flex-start;
@@ -30,9 +35,9 @@ export const Container = styled.div`
30
35
  padding-left: ${({ bar }) => (bar ? 10 : 0)}px;
31
36
  .active {
32
37
  background: #e33aa9;
33
- }
34
- & + div {
35
- margin-top: 5px;
38
+ color: #fafafa;
39
+ text-decoration: none;
40
+ transition: all 0.3s linear;
36
41
  }
37
42
  .sub-option {
38
43
  display: flex;
@@ -56,7 +61,7 @@ export const NavLinkOption = styled(NavLink)`
56
61
  font-weight: 400;
57
62
  font-size: 18px;
58
63
  line-height: 21px;
59
- margin: 5px 0;
64
+ //margin: 5px 0;
60
65
  letter-spacing: -0.015em;
61
66
  color: #fafafa;
62
67
  text-decoration: none;
@@ -103,6 +108,9 @@ export const NavLinkOption = styled(NavLink)`
103
108
  }
104
109
  &.active {
105
110
  background: none !important;
111
+ color: #fafafa;
112
+ text-decoration: none;
113
+ transition: all 0.3s linear;
106
114
  &::before {
107
115
  background-color: #e33aa9;
108
116
  }
@@ -65,7 +65,7 @@ export const CustomSelect = ({
65
65
 
66
66
  return (
67
67
  <Container id={customSelectId}>
68
- <div className="button-list" onClick={() => setShowList(true)}>
68
+ <div className="button-list" onClick={() => setShowList(!showList)}>
69
69
  <p>{selectLabel}</p>
70
70
  <div className="arrow-item">&#9664;</div>
71
71
  </div>
package/src/index.js CHANGED
@@ -48,6 +48,7 @@ export * from "./components/molecules/TabsMenu/index";
48
48
  export * from "./components/molecules/TagAndInput/index";
49
49
  export * from "./components/molecules/VerificationCodeResetPasswordLogin/index";
50
50
  export * from "./components/molecules/RetailerSelector/index";
51
+ export * from "./components/molecules/CustomSelect/index";
51
52
 
52
53
  //organisms
53
54
  export * from "./components/organisms/ChangePassword/index";