contentoh-components-library 21.4.68 → 21.4.69
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/assets/fonts/roboto/LICENSE.txt +202 -0
- package/dist/components/atoms/Avatar/index.js +3 -2
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +90 -0
- package/dist/components/atoms/ImageCarousel/index.js +120 -0
- package/dist/components/atoms/ImageCarousel/styles.js +18 -0
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/PercentTag/PercentTag.stories.js +31 -0
- package/dist/components/atoms/PercentTag/index.js +23 -0
- package/dist/components/atoms/PercentTag/styles.js +22 -0
- package/dist/components/atoms/RatingStars/RatingStars.stories.js +30 -0
- package/dist/components/atoms/RatingStars/index.js +53 -0
- package/dist/components/atoms/RatingStars/styles.js +18 -0
- package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +48 -0
- package/dist/components/atoms/RetailerCatalog/index.js +69 -0
- package/dist/components/atoms/RetailerCatalog/styles.js +20 -0
- package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +33 -0
- package/dist/components/atoms/RetailerOption/index.js +62 -0
- package/dist/components/atoms/RetailerOption/styles.js +20 -0
- package/dist/components/atoms/RetailersList/RetailersList.stories.js +45 -0
- package/dist/components/atoms/RetailersList/index.js +46 -0
- package/dist/components/atoms/RetailersList/styles.js +18 -0
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +73 -0
- package/dist/components/atoms/UserCatalog/index.js +101 -0
- package/dist/components/atoms/UserCatalog/styles.js +18 -0
- package/dist/components/atoms/UserOption/UserOption.stories.js +40 -0
- package/dist/components/atoms/UserOption/index.js +130 -0
- package/dist/components/atoms/UserOption/styles.js +20 -0
- package/dist/components/atoms/UserSelector/UserSelector.stories.js +40 -0
- package/dist/components/atoms/UserSelector/index.js +98 -0
- package/dist/components/atoms/UserSelector/styles.js +32 -0
- package/dist/components/molecules/BoxAttribute/index.js +3 -3
- package/dist/components/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/molecules/BoxButtons/index.js +0 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +16 -12
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +3 -0
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/GridItem/GridItem.stories.js +123 -0
- package/dist/components/molecules/GridItem/index.js +152 -0
- package/dist/components/molecules/GridItem/styles.js +20 -0
- package/dist/components/molecules/HeaderItem/ColumnItem.js +23 -0
- package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +70 -0
- package/dist/components/molecules/HeaderItem/index.js +42 -0
- package/dist/components/molecules/HeaderItem/styles.js +30 -0
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/molecules/RowItem/ColumnItem.js +23 -0
- package/dist/components/molecules/RowItem/RowItem.stories.js +5242 -0
- package/dist/components/molecules/RowItem/index.js +58 -0
- package/dist/components/molecules/RowItem/styles.js +30 -0
- package/dist/components/molecules/SignInLogin/index.js +36 -28
- package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
- package/dist/components/organisms/Chat/Chat.stories.js +27 -8
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +49 -4
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/organisms/DashboardMetric/index.js +12 -6
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +5097 -0
- package/dist/components/organisms/GridProducts/index.js +63 -0
- package/dist/components/organisms/GridProducts/styles.js +18 -0
- package/dist/components/organisms/GridProducts/utils.js +149 -0
- package/dist/components/organisms/InputGroup/index.js +1 -10
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/organisms/VersionSelector/index.js +1 -1
- package/dist/components/pages/Dashboard/Dashboard.stories.js +33 -36
- package/dist/components/pages/Dashboard/index.js +37 -9
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +3 -3
- package/dist/components/pages/ProviderProductEdition/index.js +120 -144
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -3
- package/dist/components/pages/RetailerProductEdition/index.js +279 -274
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/dist/global-files/data.js +11 -3
- package/dist/global-files/variables.js +5 -1
- package/dist/index.js +201 -58
- package/package.json +2 -3
- package/src/components/atoms/Avatar/index.js +8 -2
- package/src/components/atoms/CheckBox/styles.js +2 -0
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +76 -0
- package/src/components/atoms/ImageCarousel/index.js +103 -0
- package/src/components/atoms/ImageCarousel/styles.js +79 -0
- package/src/components/atoms/InputFormatter/styles.js +2 -1
- package/src/components/atoms/PercentTag/PercentTag.stories.js +7 -0
- package/src/components/atoms/PercentTag/index.js +9 -0
- package/src/components/atoms/PercentTag/styles.js +69 -0
- package/src/components/atoms/RatingStars/RatingStars.stories.js +10 -0
- package/src/components/atoms/RatingStars/index.js +31 -0
- package/src/components/atoms/RatingStars/styles.js +28 -0
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
- package/src/components/atoms/RetailerCatalog/index.js +49 -0
- package/src/components/atoms/RetailerCatalog/styles.js +30 -0
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
- package/src/components/atoms/RetailerOption/index.js +53 -0
- package/src/components/atoms/RetailerOption/styles.js +41 -0
- package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
- package/src/components/atoms/RetailersList/index.js +20 -0
- package/src/components/atoms/RetailersList/styles.js +19 -0
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/TabSection/styles.js +1 -1
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +67 -0
- package/src/components/atoms/UserCatalog/index.js +100 -0
- package/src/components/atoms/UserCatalog/styles.js +24 -0
- package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
- package/src/components/atoms/UserOption/index.js +95 -0
- package/src/components/atoms/UserOption/styles.js +61 -0
- package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
- package/src/components/atoms/UserSelector/index.js +86 -0
- package/src/components/atoms/UserSelector/styles.js +55 -0
- package/src/components/molecules/BoxAttribute/index.js +32 -25
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/molecules/BoxButtons/index.js +23 -22
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/GalleryElement/index.js +14 -8
- package/src/components/molecules/GalleryElement/styles.js +7 -0
- package/src/components/molecules/GalleryHeader/index.js +1 -0
- package/src/components/molecules/GalleryHeader/styles.js +4 -0
- package/src/components/molecules/GridItem/GridItem.stories.js +126 -0
- package/src/components/molecules/GridItem/index.js +105 -0
- package/src/components/molecules/GridItem/styles.js +104 -0
- package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
- package/src/components/molecules/HeaderItem/index.js +26 -0
- package/src/components/molecules/HeaderItem/styles.js +27 -0
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/molecules/RowItem/ColumnItem.js +9 -0
- package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
- package/src/components/molecules/RowItem/index.js +45 -0
- package/src/components/molecules/RowItem/styles.js +40 -0
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
- package/src/components/molecules/TagAndInput/index.js +6 -5
- package/src/components/organisms/Chat/Chat.stories.js +27 -7
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +14 -2
- package/src/components/organisms/Chat/ContentChat/index.js +88 -12
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +46 -4
- package/src/components/organisms/Chat/styles.js +4 -0
- package/src/components/organisms/DashboardMetric/index.js +6 -3
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/GridProducts/GridProducts.stories.js +5485 -0
- package/src/components/organisms/GridProducts/index.js +50 -0
- package/src/components/organisms/GridProducts/styles.js +14 -0
- package/src/components/organisms/GridProducts/utils.js +111 -0
- package/src/components/organisms/InputGroup/index.js +131 -119
- package/src/components/organisms/Modal/styles.js +4 -1
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
- package/src/components/organisms/VersionSelector/index.js +1 -1
- package/src/components/pages/Dashboard/Dashboard.stories.js +33 -38
- package/src/components/pages/Dashboard/index.js +36 -7
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +100 -83
- package/src/components/pages/ProviderProductEdition/index.js +100 -131
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +6 -2
- package/src/components/pages/RetailerProductEdition/index.js +107 -137
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- package/src/global-files/data.js +7 -13
- package/src/global-files/variables.js +4 -0
- package/src/index.js +11 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.RetailerCatalogDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _ = require(".");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/atoms/RetailerCatalog",
|
|
18
|
+
component: _.RetailerCatalog
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.RetailerCatalog, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var RetailerCatalogDefault = Template.bind({});
|
|
27
|
+
exports.RetailerCatalogDefault = RetailerCatalogDefault;
|
|
28
|
+
RetailerCatalogDefault.args = {
|
|
29
|
+
limit: 3,
|
|
30
|
+
articleId: 39474,
|
|
31
|
+
orderId: 15270,
|
|
32
|
+
retailers: [{
|
|
33
|
+
id: 58,
|
|
34
|
+
name: "The Home Depot Golden"
|
|
35
|
+
}, {
|
|
36
|
+
id: 59,
|
|
37
|
+
name: "The Home Depot Platinum"
|
|
38
|
+
}, {
|
|
39
|
+
id: 60,
|
|
40
|
+
name: "The Home Depot Resizing"
|
|
41
|
+
}, {
|
|
42
|
+
id: 61,
|
|
43
|
+
name: "Home Depot TAB"
|
|
44
|
+
}, {
|
|
45
|
+
id: 68,
|
|
46
|
+
name: "The Home Depot Dropship"
|
|
47
|
+
}]
|
|
48
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.RetailerCatalog = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
|
|
14
|
+
var _Avatar = require("../Avatar");
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _customHooks = require("../../../global-files/customHooks");
|
|
19
|
+
|
|
20
|
+
var _RetailersList = require("../RetailersList");
|
|
21
|
+
|
|
22
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
+
|
|
24
|
+
var RetailerCatalog = function RetailerCatalog(_ref) {
|
|
25
|
+
var _ref$retailers = _ref.retailers,
|
|
26
|
+
retailers = _ref$retailers === void 0 ? [] : _ref$retailers,
|
|
27
|
+
_ref$limit = _ref.limit,
|
|
28
|
+
limit = _ref$limit === void 0 ? 3 : _ref$limit,
|
|
29
|
+
article = _ref.article,
|
|
30
|
+
_ref$id = _ref.id,
|
|
31
|
+
id = _ref$id === void 0 ? "retailers-catalog" : _ref$id;
|
|
32
|
+
|
|
33
|
+
var _useState = (0, _react.useState)(0),
|
|
34
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
35
|
+
retLimit = _useState2[0],
|
|
36
|
+
setRetLimit = _useState2[1];
|
|
37
|
+
|
|
38
|
+
var _useCloseModal = (0, _customHooks.useCloseModal)(id),
|
|
39
|
+
_useCloseModal2 = (0, _slicedToArray2.default)(_useCloseModal, 2),
|
|
40
|
+
showRetailers = _useCloseModal2[0],
|
|
41
|
+
setShowRetailers = _useCloseModal2[1];
|
|
42
|
+
|
|
43
|
+
(0, _react.useEffect)(function () {
|
|
44
|
+
setRetLimit(limit);
|
|
45
|
+
}, [retailers]);
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
47
|
+
onClick: function onClick(e) {
|
|
48
|
+
setShowRetailers(!showRetailers);
|
|
49
|
+
},
|
|
50
|
+
id: id,
|
|
51
|
+
children: [retailers.map(function (retailer, i) {
|
|
52
|
+
return i < limit && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
53
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/".concat(retailer.id, ".png"),
|
|
54
|
+
altText: retailer === null || retailer === void 0 ? void 0 : retailer.name,
|
|
55
|
+
imageType: "medium-image"
|
|
56
|
+
}, retailer.id + "-" + i);
|
|
57
|
+
}), retailers.length > retLimit && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
|
+
className: "retailers-limit",
|
|
59
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
60
|
+
children: ["+", retailers.length - retLimit]
|
|
61
|
+
})
|
|
62
|
+
}), showRetailers && /*#__PURE__*/(0, _jsxRuntime.jsx)(_RetailersList.RetailersList, {
|
|
63
|
+
retailers: retailers,
|
|
64
|
+
article: article
|
|
65
|
+
})]
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
exports.RetailerCatalog = RetailerCatalog;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n position: relative;\n width: 100%;\n\n .retailers-limit {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n background-color: #f0f0f0;\n\n p {\n font-family: ", ";\n font-size: 12px;\n line-height: 26px;\n color: #262626;\n text-align: center;\n }\n }\n\n > * + * {\n margin-left: -5px;\n }\n"])), _variables.FontFamily.Lato);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.RetailerOptionDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _ = require(".");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/atoms/RetailerOptions",
|
|
18
|
+
component: _.RetailerOption
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.RetailerOption, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var RetailerOptionDefault = Template.bind({});
|
|
27
|
+
exports.RetailerOptionDefault = RetailerOptionDefault;
|
|
28
|
+
RetailerOptionDefault.args = {
|
|
29
|
+
retailer: {
|
|
30
|
+
id: 58,
|
|
31
|
+
name: "The Home Depot Golden"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.RetailerOption = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
|
|
14
|
+
var _Avatar = require("../Avatar");
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
|
|
20
|
+
var RetailerOption = function RetailerOption(_ref) {
|
|
21
|
+
var retailer = _ref.retailer,
|
|
22
|
+
_ref$services = _ref.services,
|
|
23
|
+
services = _ref$services === void 0 ? {} : _ref$services;
|
|
24
|
+
|
|
25
|
+
var _useState = (0, _react.useState)([]),
|
|
26
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
27
|
+
service = _useState2[0],
|
|
28
|
+
setService = _useState2[1];
|
|
29
|
+
|
|
30
|
+
(0, _react.useEffect)(function () {
|
|
31
|
+
if (services[retailer.id]) {
|
|
32
|
+
setService(Object.keys(services[retailer.id]));
|
|
33
|
+
}
|
|
34
|
+
}, [services]);
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
36
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
37
|
+
className: "avatar-and-retailer",
|
|
38
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
39
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/".concat(retailer.id, ".png"),
|
|
40
|
+
altText: retailer === null || retailer === void 0 ? void 0 : retailer.name,
|
|
41
|
+
imageType: "medium-image"
|
|
42
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
43
|
+
className: "retailer-name",
|
|
44
|
+
children: retailer === null || retailer === void 0 ? void 0 : retailer.name
|
|
45
|
+
})]
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
47
|
+
className: "services-icons",
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
49
|
+
className: "material-icons small ".concat(service.includes("datasheet") && "is-active"),
|
|
50
|
+
children: "\uF8EE"
|
|
51
|
+
}, "datasheet"), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
52
|
+
className: "material-icons small ".concat(service.includes("description") && "is-active"),
|
|
53
|
+
children: "\uE873"
|
|
54
|
+
}, "description"), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
55
|
+
className: "material-icons small ".concat(service.includes("images") && "is-active"),
|
|
56
|
+
children: "\uE3F4"
|
|
57
|
+
}, "images")]
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
exports.RetailerOption = RetailerOption;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: 7px;\n border: 1px solid #f0f0f0;\n align-items: center;\n justify-content: space-between;\n border-radius: 5px;\n\n .avatar-and-retailer {\n display: flex;\n align-items: center;\n .retailer-name {\n font-family: ", ";\n font-size: 12px;\n color: #262626;\n }\n\n > * + * {\n margin-left: 10px;\n }\n }\n\n .services-icons {\n display: flex;\n\n span {\n color: #f0f0f0;\n font-size: 14px;\n &.is-active {\n color: #8a6caa;\n }\n }\n\n > * + * {\n margin-left: 9px;\n }\n }\n"])), _variables.FontFamily.Lato);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.RetailersListDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _ = require(".");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/atoms/RetailersList",
|
|
18
|
+
component: _.RetailersList
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.RetailersList, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var RetailersListDefault = Template.bind({});
|
|
27
|
+
exports.RetailersListDefault = RetailersListDefault;
|
|
28
|
+
RetailersListDefault.args = {
|
|
29
|
+
retailers: [{
|
|
30
|
+
id: 58,
|
|
31
|
+
name: "The Home Depot Golden"
|
|
32
|
+
}, {
|
|
33
|
+
id: 59,
|
|
34
|
+
name: "The Home Depot Platinum"
|
|
35
|
+
}, {
|
|
36
|
+
id: 60,
|
|
37
|
+
name: "The Home Depot Resizing"
|
|
38
|
+
}, {
|
|
39
|
+
id: 61,
|
|
40
|
+
name: "Home Depot TAB"
|
|
41
|
+
}, {
|
|
42
|
+
id: 68,
|
|
43
|
+
name: "The Home Depot Dropship"
|
|
44
|
+
}]
|
|
45
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.RetailersList = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _RetailerOption = require("../RetailerOption");
|
|
15
|
+
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
|
|
18
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
var RetailersList = function RetailersList(_ref) {
|
|
23
|
+
var retailers = _ref.retailers,
|
|
24
|
+
article = _ref.article,
|
|
25
|
+
id = _ref.id;
|
|
26
|
+
|
|
27
|
+
var _useState = (0, _react.useState)({}),
|
|
28
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
29
|
+
services = _useState2[0],
|
|
30
|
+
setServices = _useState2[1];
|
|
31
|
+
|
|
32
|
+
(0, _react.useEffect)(function () {
|
|
33
|
+
if (article) setServices(article.statusByRetailer);
|
|
34
|
+
}, [article]);
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
36
|
+
id: id,
|
|
37
|
+
children: retailers.map(function (retailer, i) {
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RetailerOption.RetailerOption, {
|
|
39
|
+
retailer: retailer,
|
|
40
|
+
services: services
|
|
41
|
+
}, i);
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports.RetailersList = RetailersList;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _templateObject;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 370px;\n max-height: 200px;\n overflow: auto;\n position: absolute;\n z-index: 500;\n right: 0%;\n top: 100%;\n border: 1px solid #f0f0f0;\n padding: 10px;\n padding-right: 5px;\n background-color: white;\n\n > * + * {\n margin-top: 5px;\n }\n"])));
|
|
17
|
+
|
|
18
|
+
exports.Container = Container;
|
|
@@ -19,6 +19,6 @@ var Container = _styledComponents.default.div(_templateObject || (_templateObjec
|
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
21
21
|
|
|
22
|
-
var Slider = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: sans-serif;\n margin: auto;\n background: #281f33;\n border-radius: 6px;\n width: 310px;\n padding: 16px;\n padding-top: 20px;\n box-sizing: border-box;\n position: absolute;\n cursor: default;\n z-index: 2;\n width: 310px;\n &.top-slide {\n top: calc(100% - 370px);\n left: calc(100% - 175px);\n }\n &.bottom-slide {\n top: 100%;\n right: calc(100% + -
|
|
22
|
+
var Slider = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: sans-serif;\n margin: auto;\n background: #281f33;\n border-radius: 6px;\n width: 310px;\n padding: 16px;\n padding-top: 20px;\n box-sizing: border-box;\n position: absolute;\n cursor: default;\n z-index: 2;\n width: 310px;\n &.top-slide {\n top: calc(100% - 370px);\n left: calc(100% - 175px);\n }\n &.bottom-slide {\n top: 100%;\n right: calc(100% + -100px);\n }\n ul,\n li {\n padding: 0;\n margin: 0;\n list-style: none;\n }\n .slider {\n position: relative;\n max-width: 300px;\n width: 100%;\n height: 270px;\n margin: 0;\n li {\n position: absolute;\n left: 0px;\n top: 0px;\n opacity: 0;\n width: inherit;\n height: inherit;\n transition: opacity 0.5s;\n background: transparent;\n img {\n width: 100%;\n height: 180px;\n border-radius: 4px;\n background-color: #fafafa;\n & + * {\n margin-top: 10px;\n }\n }\n p {\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n text-align: center;\n letter-spacing: -0.015em;\n color: #fafafa;\n background-color: #281f33;\n }\n div {\n background-color: #fafafa;\n height: 180px;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n img {\n width: 90%;\n }\n & + * {\n margin-top: 13px;\n }\n }\n span {\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 15px;\n text-align: center;\n letter-spacing: -0.015em;\n color: #fafafa;\n display: flex;\n justify-content: center;\n background-color: #281f33;\n & + * {\n margin-top: 10px;\n }\n }\n }\n .end-div {\n div {\n height: 130px;\n width: 100%;\n background-color: #fafafa;\n display: flex;\n align-items: center;\n border-radius: 4px;\n img {\n width: 100%;\n height: 115px;\n object-fit: contain;\n }\n }\n .lema-end {\n justify-content: center;\n justify-content: space-evenly;\n height: 110px;\n background-color: #281f33;\n flex-direction: column;\n justify-content: space-evenly;\n border-radius: inherit;\n }\n button {\n display: none;\n justify-content: center;\n align-items: center;\n padding: 10px;\n width: 160px;\n height: 30px;\n border: 1px solid #d4d1d7;\n border-radius: 15px;\n color: #fafafa;\n background-color: #281f33;\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 400;\n font-size: 18px;\n line-height: 25px;\n letter-spacing: -0.015em;\n position: absolute;\n left: 22%;\n top: 90%;\n cursor: pointer;\n }\n }\n }\n li:first-child {\n opacity: 1;\n }\n .menu {\n margin: 0;\n text-align: center;\n li {\n display: inline-block;\n text-align: center;\n & + * {\n margin-left: 15px;\n }\n a {\n display: inline-block;\n text-decoration: none;\n background-color: #c4c4c4;\n width: 10px;\n height: 10px;\n border-radius: 100%;\n cursor: pointer;\n }\n #slidea1 {\n background-color: #e33aa9;\n }\n }\n }\n"])));
|
|
23
23
|
|
|
24
24
|
exports.Slider = Slider;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.UserCatalogDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _ = require(".");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/atoms/UserCatalog",
|
|
18
|
+
component: _.UserCatalog
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.UserCatalog, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var UserCatalogDefault = Template.bind({});
|
|
27
|
+
exports.UserCatalogDefault = UserCatalogDefault;
|
|
28
|
+
UserCatalogDefault.args = {
|
|
29
|
+
product: "product",
|
|
30
|
+
datasheet: 54,
|
|
31
|
+
description: 54,
|
|
32
|
+
images: 55,
|
|
33
|
+
auditor: 37,
|
|
34
|
+
auditors: [{
|
|
35
|
+
name: "José",
|
|
36
|
+
last_name: "Castañeda",
|
|
37
|
+
id_user: 37
|
|
38
|
+
}, {
|
|
39
|
+
name: "Eduardo ",
|
|
40
|
+
last_name: " Reyes",
|
|
41
|
+
id_user: 195
|
|
42
|
+
}],
|
|
43
|
+
textSpecialists: [{
|
|
44
|
+
name: "Especialista",
|
|
45
|
+
last_name: "Textos",
|
|
46
|
+
id_user: 36
|
|
47
|
+
}, {
|
|
48
|
+
name: "ESPECIALISTA TXTS PRUEBA",
|
|
49
|
+
last_name: "",
|
|
50
|
+
id_user: 54
|
|
51
|
+
}, {
|
|
52
|
+
name: "Gerson",
|
|
53
|
+
last_name: "Martínez",
|
|
54
|
+
id_user: 57
|
|
55
|
+
}, {
|
|
56
|
+
name: "Angel",
|
|
57
|
+
last_name: "Perea",
|
|
58
|
+
id_user: 232
|
|
59
|
+
}],
|
|
60
|
+
imagesSpecialists: [{
|
|
61
|
+
name: "Especialista",
|
|
62
|
+
last_name: "Imágenes",
|
|
63
|
+
id_user: 35
|
|
64
|
+
}, {
|
|
65
|
+
name: "ESPECIALISTA ED PRUEBA",
|
|
66
|
+
last_name: "",
|
|
67
|
+
id_user: 55
|
|
68
|
+
}, {
|
|
69
|
+
name: "Uriel",
|
|
70
|
+
last_name: "Herrera",
|
|
71
|
+
id_user: 196
|
|
72
|
+
}]
|
|
73
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.UserCatalog = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _Avatar = require("../Avatar");
|
|
15
|
+
|
|
16
|
+
var _data = require("../../../global-files/data");
|
|
17
|
+
|
|
18
|
+
var _UserOption = require("../UserOption");
|
|
19
|
+
|
|
20
|
+
var _customHooks = require("../../../global-files/customHooks");
|
|
21
|
+
|
|
22
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
+
|
|
24
|
+
var UserCatalog = function UserCatalog(_ref) {
|
|
25
|
+
var datasheet = _ref.datasheet,
|
|
26
|
+
description = _ref.description,
|
|
27
|
+
images = _ref.images,
|
|
28
|
+
auditor = _ref.auditor,
|
|
29
|
+
_ref$auditors = _ref.auditors,
|
|
30
|
+
auditors = _ref$auditors === void 0 ? [] : _ref$auditors,
|
|
31
|
+
_ref$textSpecialists = _ref.textSpecialists,
|
|
32
|
+
textSpecialists = _ref$textSpecialists === void 0 ? [] : _ref$textSpecialists,
|
|
33
|
+
_ref$imagesSpecialist = _ref.imagesSpecialists,
|
|
34
|
+
imagesSpecialists = _ref$imagesSpecialist === void 0 ? [] : _ref$imagesSpecialist,
|
|
35
|
+
_ref$id = _ref.id,
|
|
36
|
+
id = _ref$id === void 0 ? "list-modal" : _ref$id,
|
|
37
|
+
onAssign = _ref.onAssign,
|
|
38
|
+
product = _ref.product;
|
|
39
|
+
|
|
40
|
+
var _useCloseModal = (0, _customHooks.useCloseModal)(id),
|
|
41
|
+
_useCloseModal2 = (0, _slicedToArray2.default)(_useCloseModal, 2),
|
|
42
|
+
showList = _useCloseModal2[0],
|
|
43
|
+
setShowList = _useCloseModal2[1];
|
|
44
|
+
|
|
45
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
46
|
+
id: id,
|
|
47
|
+
onClick: function onClick(e) {
|
|
48
|
+
if (!e.target.closest("#".concat(id, " .users-assigned-list"))) setShowList(!showList);
|
|
49
|
+
},
|
|
50
|
+
children: [datasheet && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
51
|
+
image: (0, _data.getProfilePicture)(datasheet, 26, 26),
|
|
52
|
+
altText: "datasheet specialist",
|
|
53
|
+
imageType: "medium-image"
|
|
54
|
+
}), description && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
55
|
+
image: (0, _data.getProfilePicture)(description, 26, 26),
|
|
56
|
+
altText: "description specialist",
|
|
57
|
+
imageType: "medium-image"
|
|
58
|
+
}), images && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
59
|
+
image: (0, _data.getProfilePicture)(images, 26, 26),
|
|
60
|
+
altText: "images specialist",
|
|
61
|
+
imageType: "medium-image"
|
|
62
|
+
}), auditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
63
|
+
image: (0, _data.getProfilePicture)(auditor, 26, 26),
|
|
64
|
+
altText: "auditor",
|
|
65
|
+
imageType: "medium-image"
|
|
66
|
+
}), showList && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
67
|
+
className: "users-assigned-list",
|
|
68
|
+
children: [product.datasheet_status !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserOption.UserOption, {
|
|
69
|
+
onAssign: onAssign,
|
|
70
|
+
product: product,
|
|
71
|
+
userId: datasheet,
|
|
72
|
+
usersArray: textSpecialists,
|
|
73
|
+
id: id + "-datasheet",
|
|
74
|
+
index: "datasheet"
|
|
75
|
+
}), product.description_status !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserOption.UserOption, {
|
|
76
|
+
onAssign: onAssign,
|
|
77
|
+
product: product,
|
|
78
|
+
userId: description,
|
|
79
|
+
usersArray: textSpecialists,
|
|
80
|
+
id: id + "-description",
|
|
81
|
+
index: "description"
|
|
82
|
+
}), product.images_status !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserOption.UserOption, {
|
|
83
|
+
onAssign: onAssign,
|
|
84
|
+
product: product,
|
|
85
|
+
userId: images,
|
|
86
|
+
usersArray: imagesSpecialists,
|
|
87
|
+
id: id + "-images",
|
|
88
|
+
index: "image"
|
|
89
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserOption.UserOption, {
|
|
90
|
+
onAssign: onAssign,
|
|
91
|
+
product: product,
|
|
92
|
+
userId: auditor,
|
|
93
|
+
usersArray: auditors,
|
|
94
|
+
id: id + "-auditor",
|
|
95
|
+
index: "auditor"
|
|
96
|
+
})]
|
|
97
|
+
})]
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
exports.UserCatalog = UserCatalog;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _templateObject;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n width: 100%;\n height: 100%;\n cursor: pointer;\n position: relative;\n\n .users-assigned-list {\n background-color: white;\n padding: 10px;\n box-shadow: 0px 2px 4px #00000040;\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 400;\n }\n\n > * + * {\n margin-left: -10px;\n }\n"])));
|
|
17
|
+
|
|
18
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.UserOptionDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _ = require(".");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/atoms/UserOption",
|
|
18
|
+
component: _.UserOption
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.UserOption, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var UserOptionDefault = Template.bind({});
|
|
27
|
+
exports.UserOptionDefault = UserOptionDefault;
|
|
28
|
+
UserOptionDefault.args = {
|
|
29
|
+
userId: 37,
|
|
30
|
+
index: "datasheet",
|
|
31
|
+
usersArray: [{
|
|
32
|
+
name: "José",
|
|
33
|
+
last_name: "Castañeda",
|
|
34
|
+
id_user: 37
|
|
35
|
+
}, {
|
|
36
|
+
name: "Eduardo ",
|
|
37
|
+
last_name: " Reyes",
|
|
38
|
+
id_user: 195
|
|
39
|
+
}]
|
|
40
|
+
};
|