contentoh-components-library 21.3.38 → 21.3.40
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/dist/components/atoms/VerticalSideMenuMainPage/index.js +18 -23
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
- package/dist/components/organisms/TableResizable/index.js +6 -10
- package/dist/components/pages/Dashboard/Dashboard.stories.js +31 -50
- package/dist/index.js +13 -0
- package/package.json +1 -1
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +18 -22
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +3 -4
- package/src/components/organisms/TableResizable/index.js +0 -2
- package/src/components/pages/Dashboard/Dashboard.stories.js +31 -55
- package/src/index.js +1 -0
|
@@ -11,16 +11,16 @@ exports.VerticalSideMenuMainPage = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
13
13
|
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
16
|
+
var _reactRouterDom = require("react-router-dom");
|
|
17
|
+
|
|
14
18
|
var _styles = require("./styles");
|
|
15
19
|
|
|
16
20
|
var _iconLogoContentoh = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg"));
|
|
17
21
|
|
|
18
22
|
var _iconLogo = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogo.svg"));
|
|
19
23
|
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
|
-
var _reactRouterDom = require("react-router-dom");
|
|
23
|
-
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
|
|
26
26
|
var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
|
|
@@ -28,7 +28,7 @@ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
|
|
|
28
28
|
menuoption = _ref$menuoption === void 0 ? [] : _ref$menuoption,
|
|
29
29
|
containerdash = _ref.containerdash;
|
|
30
30
|
|
|
31
|
-
var _useState = (0, _react.useState)(),
|
|
31
|
+
var _useState = (0, _react.useState)(false),
|
|
32
32
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
33
33
|
trueBar = _useState2[0],
|
|
34
34
|
setTrueBar = _useState2[1];
|
|
@@ -55,31 +55,26 @@ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
|
|
|
55
55
|
var _item$suboption;
|
|
56
56
|
|
|
57
57
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
58
|
-
bar: trueBar,
|
|
59
58
|
className: "option-div",
|
|
60
59
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.NavLinkOption, {
|
|
61
60
|
to: item.path,
|
|
62
|
-
bar: trueBar,
|
|
61
|
+
bar: trueBar.toString(),
|
|
63
62
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
64
63
|
src: item.icon,
|
|
65
64
|
alt: item.title
|
|
66
|
-
}), trueBar
|
|
65
|
+
}), trueBar ? /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
67
66
|
children: item.title
|
|
68
|
-
})]
|
|
69
|
-
}), item.suboption
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
})
|
|
80
|
-
})
|
|
81
|
-
});
|
|
82
|
-
})
|
|
67
|
+
}) : null]
|
|
68
|
+
}), item === null || item === void 0 ? void 0 : (_item$suboption = item.suboption) === null || _item$suboption === void 0 ? void 0 : _item$suboption.map(function (subitem, index) {
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
70
|
+
className: "sub-option",
|
|
71
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.NavLinkOption, {
|
|
72
|
+
to: subitem.path,
|
|
73
|
+
className: "sub-option-link",
|
|
74
|
+
bar: trueBar.toString(),
|
|
75
|
+
children: trueBar ? subitem.title : null
|
|
76
|
+
})
|
|
77
|
+
}, index);
|
|
83
78
|
})]
|
|
84
79
|
}, index);
|
|
85
80
|
})
|
|
@@ -17,13 +17,13 @@ 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: ", "
|
|
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: ", ";\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
|
-
return bar ?
|
|
22
|
+
return bar ? "240px" : "66px";
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.Container = Container;
|
|
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: ", "
|
|
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: ", ";\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 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 top: 13;\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) {
|
|
@@ -31,7 +31,7 @@ var NavLinkOption = (0, _styledComponents.default)(_reactRouterDom.NavLink)(_tem
|
|
|
31
31
|
return bar ? "#fafafa" : "transparent";
|
|
32
32
|
}, function (_ref4) {
|
|
33
33
|
var bar = _ref4.bar;
|
|
34
|
-
return bar ? "0
|
|
34
|
+
return bar ? "0 22px" : "0 8px";
|
|
35
35
|
}, function (_ref5) {
|
|
36
36
|
var bar = _ref5.bar;
|
|
37
37
|
return bar ? "#f0eef2" : "transparent";
|
|
@@ -109,10 +109,8 @@ var TableResizable = function TableResizable(props) {
|
|
|
109
109
|
className: "resizeable-table",
|
|
110
110
|
ref: tableElement,
|
|
111
111
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("thead", {
|
|
112
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
113
|
-
children:
|
|
114
|
-
columns: columns
|
|
115
|
-
}), columns === null || columns === void 0 ? void 0 : columns.map(function (_ref, i) {
|
|
112
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
113
|
+
children: columns === null || columns === void 0 ? void 0 : columns.map(function (_ref, i) {
|
|
116
114
|
var ref = _ref.ref,
|
|
117
115
|
text = _ref.text;
|
|
118
116
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("th", {
|
|
@@ -131,12 +129,10 @@ var TableResizable = function TableResizable(props) {
|
|
|
131
129
|
className: "resize-handle ".concat(activeIndex === i ? "active" : "idle")
|
|
132
130
|
})]
|
|
133
131
|
}, i);
|
|
134
|
-
})
|
|
132
|
+
})
|
|
135
133
|
})
|
|
136
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
137
|
-
children:
|
|
138
|
-
tableContent: tableContent
|
|
139
|
-
}), tableContent.map(function (row) {
|
|
134
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("tbody", {
|
|
135
|
+
children: tableContent.map(function (row) {
|
|
140
136
|
var _row$columns;
|
|
141
137
|
|
|
142
138
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
@@ -149,7 +145,7 @@ var TableResizable = function TableResizable(props) {
|
|
|
149
145
|
}, "".concat(row.key, "-").concat(indexColumn));
|
|
150
146
|
})
|
|
151
147
|
}, row.key);
|
|
152
|
-
})
|
|
148
|
+
})
|
|
153
149
|
})]
|
|
154
150
|
})
|
|
155
151
|
})]
|
|
@@ -27,76 +27,57 @@ var DashboardDeafult = Template.bind({});
|
|
|
27
27
|
exports.DashboardDeafult = DashboardDeafult;
|
|
28
28
|
DashboardDeafult.args = {
|
|
29
29
|
user: {
|
|
30
|
-
id_user:
|
|
31
|
-
name: "
|
|
32
|
-
last_name: "
|
|
33
|
-
email: "
|
|
34
|
-
position: "
|
|
35
|
-
telephone: "
|
|
36
|
-
country: "
|
|
37
|
-
id_company:
|
|
38
|
-
id_cognito: "
|
|
30
|
+
id_user: 51,
|
|
31
|
+
name: "ADMIN PRUEBA",
|
|
32
|
+
last_name: "",
|
|
33
|
+
email: "etc@contentoh.com",
|
|
34
|
+
position: "",
|
|
35
|
+
telephone: "",
|
|
36
|
+
country: "",
|
|
37
|
+
id_company: 2,
|
|
38
|
+
id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
|
|
39
39
|
birth_Date: null,
|
|
40
40
|
about_me: "",
|
|
41
41
|
zip_code: "",
|
|
42
42
|
address: "",
|
|
43
43
|
job: "",
|
|
44
44
|
id_stripe: "",
|
|
45
|
-
id_role:
|
|
45
|
+
id_role: 1,
|
|
46
46
|
active: 1,
|
|
47
|
-
is_retailer:
|
|
48
|
-
email_notify:
|
|
47
|
+
is_retailer: 0,
|
|
48
|
+
email_notify: 1,
|
|
49
49
|
is_user_tech: null,
|
|
50
50
|
membership: {
|
|
51
|
-
id:
|
|
52
|
-
start_date: "
|
|
53
|
-
end_date: "
|
|
54
|
-
planID:
|
|
55
|
-
plan: "
|
|
56
|
-
name: "Plan
|
|
57
|
-
user_limit: "
|
|
58
|
-
products_limit: "
|
|
51
|
+
id: 2,
|
|
52
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
53
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
54
|
+
planID: 1,
|
|
55
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
56
|
+
name: "Plan Free",
|
|
57
|
+
user_limit: "1",
|
|
58
|
+
products_limit: "3",
|
|
59
59
|
type: "PyMES"
|
|
60
60
|
},
|
|
61
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
61
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1681499918721"
|
|
62
62
|
},
|
|
63
63
|
company: {
|
|
64
|
-
id_company:
|
|
65
|
-
trade_name: "
|
|
66
|
-
company_name: "
|
|
67
|
-
rfc:
|
|
68
|
-
adress:
|
|
64
|
+
id_company: 2,
|
|
65
|
+
trade_name: "Content-oh!",
|
|
66
|
+
company_name: "Content-oh!",
|
|
67
|
+
rfc: null,
|
|
68
|
+
adress: null,
|
|
69
69
|
about_company: null,
|
|
70
70
|
telephone: null,
|
|
71
71
|
web_site: null,
|
|
72
72
|
zip_code: null,
|
|
73
73
|
email: null,
|
|
74
74
|
social_link: null,
|
|
75
|
-
is_retailer:
|
|
76
|
-
financedRetailers: [{
|
|
77
|
-
id: 68,
|
|
78
|
-
name: "The Home Depot Merchants",
|
|
79
|
-
country: "México",
|
|
80
|
-
id_region: 1,
|
|
81
|
-
active: 1
|
|
82
|
-
}],
|
|
75
|
+
is_retailer: 0,
|
|
83
76
|
retailers: [{
|
|
84
|
-
id:
|
|
85
|
-
name:
|
|
86
|
-
country:
|
|
87
|
-
}, {
|
|
88
|
-
id: 60,
|
|
89
|
-
name: "The Home Depot Resizing",
|
|
90
|
-
country: "México"
|
|
91
|
-
}, {
|
|
92
|
-
id: 61,
|
|
93
|
-
name: "Home Depot TAB",
|
|
94
|
-
country: "México"
|
|
95
|
-
}, {
|
|
96
|
-
id: 68,
|
|
97
|
-
name: "The Home Depot Merchants",
|
|
98
|
-
country: "México"
|
|
77
|
+
id: null,
|
|
78
|
+
name: null,
|
|
79
|
+
country: null
|
|
99
80
|
}]
|
|
100
81
|
},
|
|
101
|
-
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
82
|
+
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyNjJmNTBkNC0xZjMzLTQ3YTktOWY2MS1mMGY5NTcxNTcxNWUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MTQ5OTkxNywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MTUwMzUxNywiaWF0IjoxNjgxNDk5OTE3LCJlbWFpbCI6ImV0Y0Bjb250ZW50b2guY29tIn0.FKonzS94MWaxk2_Ip1p87zPjtguiHtkasBrLc6bPOGpeVSz4RYab0_Bwus_ANfiauJhQzhcY5vq2tmUmQtM8kEQ2oSIP3S58A9BTTkH0qkiXO8fkG_s9yricPePx1ut4gQ2wMCtDnrTF6k1NVn2VvWnEPr4dv4t0jYIjW2af48g2souwETOUiukAoRFq3BDuMgVg_pXW7lZfMR73Q6FS_l-RKVZp-f0_Jk3HBvLimmOUTxjbHcfp2Z7JIcxndZcnzQPAXdNjeP1DV9J4e4ePedX4163qTDOx264edNZbUFcLl4ErKPJE2RJIBPvoo9Ics2shBAdDFbY5wkkea0ODwQ"
|
|
102
83
|
};
|
package/dist/index.js
CHANGED
|
@@ -979,6 +979,19 @@ Object.keys(_RangeCalendar).forEach(function (key) {
|
|
|
979
979
|
});
|
|
980
980
|
});
|
|
981
981
|
|
|
982
|
+
var _TableResizable = require("./components/organisms/TableResizable");
|
|
983
|
+
|
|
984
|
+
Object.keys(_TableResizable).forEach(function (key) {
|
|
985
|
+
if (key === "default" || key === "__esModule") return;
|
|
986
|
+
if (key in exports && exports[key] === _TableResizable[key]) return;
|
|
987
|
+
Object.defineProperty(exports, key, {
|
|
988
|
+
enumerable: true,
|
|
989
|
+
get: function get() {
|
|
990
|
+
return _TableResizable[key];
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
});
|
|
994
|
+
|
|
982
995
|
var _ChangePasswordLogin = require("./components/pages/ChangePasswordLogin");
|
|
983
996
|
|
|
984
997
|
Object.keys(_ChangePasswordLogin).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { BrowserRouter as Router } from "react-router-dom";
|
|
1
3
|
import {
|
|
2
4
|
Container,
|
|
3
5
|
NavLinkOption,
|
|
@@ -6,14 +8,12 @@ import {
|
|
|
6
8
|
} from "./styles";
|
|
7
9
|
import iconLogoContentoh from "../../../assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg";
|
|
8
10
|
import iconLogo from "../../../assets/images/verticalSideMenuMainPage/iconLogo.svg";
|
|
9
|
-
import React, { useState } from "react";
|
|
10
|
-
import { BrowserRouter as Router } from "react-router-dom";
|
|
11
11
|
|
|
12
12
|
export const VerticalSideMenuMainPage = ({
|
|
13
13
|
menuoption = [],
|
|
14
14
|
containerdash,
|
|
15
15
|
}) => {
|
|
16
|
-
const [trueBar, setTrueBar] = useState();
|
|
16
|
+
const [trueBar, setTrueBar] = useState(false);
|
|
17
17
|
return (
|
|
18
18
|
<Router>
|
|
19
19
|
<ContainerPrincipal>
|
|
@@ -27,29 +27,25 @@ export const VerticalSideMenuMainPage = ({
|
|
|
27
27
|
src={trueBar ? iconLogoContentoh : iconLogo}
|
|
28
28
|
alt="Logo"
|
|
29
29
|
className="logo"
|
|
30
|
-
|
|
30
|
+
/>
|
|
31
31
|
<div className="option">
|
|
32
32
|
{menuoption.map((item, index) => (
|
|
33
|
-
<div key={index}
|
|
34
|
-
<NavLinkOption to={item.path} bar={trueBar}>
|
|
33
|
+
<div key={index} className="option-div">
|
|
34
|
+
<NavLinkOption to={item.path} bar={trueBar.toString()}>
|
|
35
35
|
<img src={item.icon} alt={item.title}></img>
|
|
36
|
-
{trueBar
|
|
36
|
+
{trueBar ? <p>{item.title}</p> : null}
|
|
37
37
|
</NavLinkOption>
|
|
38
|
-
{item
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</div>
|
|
50
|
-
))}
|
|
51
|
-
</>
|
|
52
|
-
)}
|
|
38
|
+
{item?.suboption?.map((subitem, index) => (
|
|
39
|
+
<div className="sub-option" key={index}>
|
|
40
|
+
<NavLinkOption
|
|
41
|
+
to={subitem.path}
|
|
42
|
+
className="sub-option-link"
|
|
43
|
+
bar={trueBar.toString()}
|
|
44
|
+
>
|
|
45
|
+
{trueBar ? subitem.title : null}
|
|
46
|
+
</NavLinkOption>
|
|
47
|
+
</div>
|
|
48
|
+
))}
|
|
53
49
|
</div>
|
|
54
50
|
))}
|
|
55
51
|
</div>
|
|
@@ -9,7 +9,7 @@ export const Container = styled.div`
|
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
justify-content: space-between;
|
|
11
11
|
overflow: none;
|
|
12
|
-
width: ${({ bar }) => (bar ?
|
|
12
|
+
width: ${({ bar }) => (bar ? "240px" : "66px")};
|
|
13
13
|
background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);
|
|
14
14
|
scrollbar-width: none;
|
|
15
15
|
display: flex;
|
|
@@ -65,7 +65,7 @@ export const NavLinkOption = styled(NavLink)`
|
|
|
65
65
|
color: ${({ bar }) => (bar ? "#fafafa" : "transparent")};
|
|
66
66
|
text-decoration: none;
|
|
67
67
|
cursor: pointer;
|
|
68
|
-
padding: ${({ bar }) => (bar ? "0
|
|
68
|
+
padding: ${({ bar }) => (bar ? "0 22px" : "0 8px")};
|
|
69
69
|
&:hover {
|
|
70
70
|
background: rgba(255, 255, 255, 0.2);
|
|
71
71
|
color: #fafafa;
|
|
@@ -94,7 +94,6 @@ export const NavLinkOption = styled(NavLink)`
|
|
|
94
94
|
border-radius: 0;
|
|
95
95
|
transition: color 0.3s linear;
|
|
96
96
|
color: ${({ bar }) => (bar ? "#f0eef2" : "transparent")};
|
|
97
|
-
padding-top: 14px;
|
|
98
97
|
height: 25px;
|
|
99
98
|
margin: 0;
|
|
100
99
|
padding-left: 12px;
|
|
@@ -106,7 +105,7 @@ export const NavLinkOption = styled(NavLink)`
|
|
|
106
105
|
height: 10px;
|
|
107
106
|
background-color: white;
|
|
108
107
|
position: absolute;
|
|
109
|
-
|
|
108
|
+
top: 13;
|
|
110
109
|
left: -6px;
|
|
111
110
|
}
|
|
112
111
|
&.active {
|
|
@@ -84,7 +84,6 @@ export const TableResizable = (props) => {
|
|
|
84
84
|
<table className="resizeable-table" ref={tableElement}>
|
|
85
85
|
<thead>
|
|
86
86
|
<tr>
|
|
87
|
-
{console.log({ columns })}
|
|
88
87
|
{columns?.map(({ ref, text }, i) => (
|
|
89
88
|
<th ref={ref} key={i}>
|
|
90
89
|
<span>{text}</span>
|
|
@@ -100,7 +99,6 @@ export const TableResizable = (props) => {
|
|
|
100
99
|
</tr>
|
|
101
100
|
</thead>
|
|
102
101
|
<tbody>
|
|
103
|
-
{console.log({ tableContent })}
|
|
104
102
|
{tableContent.map((row) => (
|
|
105
103
|
<tr key={row.key}>
|
|
106
104
|
{row?.columns?.map((column, indexColumn) => (
|
|
@@ -9,83 +9,59 @@ const Template = (args) => <Dashboard {...args} />;
|
|
|
9
9
|
export const DashboardDeafult = Template.bind({});
|
|
10
10
|
DashboardDeafult.args = {
|
|
11
11
|
user: {
|
|
12
|
-
id_user:
|
|
13
|
-
name: "
|
|
14
|
-
last_name: "
|
|
15
|
-
email: "
|
|
16
|
-
position: "
|
|
17
|
-
telephone: "
|
|
18
|
-
country: "
|
|
19
|
-
id_company:
|
|
20
|
-
id_cognito: "
|
|
12
|
+
id_user: 51,
|
|
13
|
+
name: "ADMIN PRUEBA",
|
|
14
|
+
last_name: "",
|
|
15
|
+
email: "etc@contentoh.com",
|
|
16
|
+
position: "",
|
|
17
|
+
telephone: "",
|
|
18
|
+
country: "",
|
|
19
|
+
id_company: 2,
|
|
20
|
+
id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
|
|
21
21
|
birth_Date: null,
|
|
22
22
|
about_me: "",
|
|
23
23
|
zip_code: "",
|
|
24
24
|
address: "",
|
|
25
25
|
job: "",
|
|
26
26
|
id_stripe: "",
|
|
27
|
-
id_role:
|
|
27
|
+
id_role: 1,
|
|
28
28
|
active: 1,
|
|
29
|
-
is_retailer:
|
|
30
|
-
email_notify:
|
|
29
|
+
is_retailer: 0,
|
|
30
|
+
email_notify: 1,
|
|
31
31
|
is_user_tech: null,
|
|
32
32
|
membership: {
|
|
33
|
-
id:
|
|
34
|
-
start_date: "
|
|
35
|
-
end_date: "
|
|
36
|
-
planID:
|
|
37
|
-
plan: "
|
|
38
|
-
name: "Plan
|
|
39
|
-
user_limit: "
|
|
40
|
-
products_limit: "
|
|
33
|
+
id: 2,
|
|
34
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
35
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
36
|
+
planID: 1,
|
|
37
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
38
|
+
name: "Plan Free",
|
|
39
|
+
user_limit: "1",
|
|
40
|
+
products_limit: "3",
|
|
41
41
|
type: "PyMES",
|
|
42
42
|
},
|
|
43
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
43
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1681499918721",
|
|
44
44
|
},
|
|
45
45
|
company: {
|
|
46
|
-
id_company:
|
|
47
|
-
trade_name: "
|
|
48
|
-
company_name: "
|
|
49
|
-
rfc:
|
|
50
|
-
adress:
|
|
46
|
+
id_company: 2,
|
|
47
|
+
trade_name: "Content-oh!",
|
|
48
|
+
company_name: "Content-oh!",
|
|
49
|
+
rfc: null,
|
|
50
|
+
adress: null,
|
|
51
51
|
about_company: null,
|
|
52
52
|
telephone: null,
|
|
53
53
|
web_site: null,
|
|
54
54
|
zip_code: null,
|
|
55
55
|
email: null,
|
|
56
56
|
social_link: null,
|
|
57
|
-
is_retailer:
|
|
58
|
-
financedRetailers: [
|
|
59
|
-
{
|
|
60
|
-
id: 68,
|
|
61
|
-
name: "The Home Depot Merchants",
|
|
62
|
-
country: "México",
|
|
63
|
-
id_region: 1,
|
|
64
|
-
active: 1,
|
|
65
|
-
},
|
|
66
|
-
],
|
|
57
|
+
is_retailer: 0,
|
|
67
58
|
retailers: [
|
|
68
59
|
{
|
|
69
|
-
id:
|
|
70
|
-
name:
|
|
71
|
-
country:
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: 60,
|
|
75
|
-
name: "The Home Depot Resizing",
|
|
76
|
-
country: "México",
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: 61,
|
|
80
|
-
name: "Home Depot TAB",
|
|
81
|
-
country: "México",
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
id: 68,
|
|
85
|
-
name: "The Home Depot Merchants",
|
|
86
|
-
country: "México",
|
|
60
|
+
id: null,
|
|
61
|
+
name: null,
|
|
62
|
+
country: null,
|
|
87
63
|
},
|
|
88
64
|
],
|
|
89
65
|
},
|
|
90
|
-
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
66
|
+
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyNjJmNTBkNC0xZjMzLTQ3YTktOWY2MS1mMGY5NTcxNTcxNWUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MTQ5OTkxNywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MTUwMzUxNywiaWF0IjoxNjgxNDk5OTE3LCJlbWFpbCI6ImV0Y0Bjb250ZW50b2guY29tIn0.FKonzS94MWaxk2_Ip1p87zPjtguiHtkasBrLc6bPOGpeVSz4RYab0_Bwus_ANfiauJhQzhcY5vq2tmUmQtM8kEQ2oSIP3S58A9BTTkH0qkiXO8fkG_s9yricPePx1ut4gQ2wMCtDnrTF6k1NVn2VvWnEPr4dv4t0jYIjW2af48g2souwETOUiukAoRFq3BDuMgVg_pXW7lZfMR73Q6FS_l-RKVZp-f0_Jk3HBvLimmOUTxjbHcfp2Z7JIcxndZcnzQPAXdNjeP1DV9J4e4ePedX4163qTDOx264edNZbUFcLl4ErKPJE2RJIBPvoo9Ics2shBAdDFbY5wkkea0ODwQ",
|
|
91
67
|
};
|
package/src/index.js
CHANGED
|
@@ -78,6 +78,7 @@ export * from "./components/organisms/Chat/index";
|
|
|
78
78
|
export * from "./components/organisms/Modal/index";
|
|
79
79
|
export * from "./components/organisms/OrderDetail/index";
|
|
80
80
|
export * from "./components/organisms/RangeCalendar";
|
|
81
|
+
export * from "./components/organisms/TableResizable";
|
|
81
82
|
|
|
82
83
|
//pages
|
|
83
84
|
export * from "./components/pages/ChangePasswordLogin";
|