contentoh-components-library 21.0.20 → 21.0.23
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/ActivedFilter/ActivedFilter.stories.js +7 -1
- package/dist/components/atoms/ActivedFilter/index.js +12 -4
- package/dist/components/atoms/AsignationOption/AsignationOptions.stories.js +7 -1
- package/dist/components/atoms/AsignationOption/index.js +28 -20
- package/dist/components/atoms/AtomList/AtomList.stories.js +7 -1
- package/dist/components/atoms/AtomList/index.js +14 -9
- package/dist/components/atoms/Avatar/AsignationImage.stories.js +7 -1
- package/dist/components/atoms/Avatar/index.js +11 -8
- package/dist/components/atoms/Card/Card.stories.js +7 -1
- package/dist/components/atoms/Card/index.js +8 -4
- package/dist/components/atoms/CheckBox/CheckBox.stories.js +7 -1
- package/dist/components/atoms/CheckBox/index.js +16 -12
- package/dist/components/atoms/CustomerTypeImage/CustomerTypeImage.stories.js +7 -1
- package/dist/components/atoms/CustomerTypeImage/index.js +8 -6
- package/dist/components/atoms/DropDownButton/DropDownButton.stories.js +7 -1
- package/dist/components/atoms/DropDownButton/index.js +9 -6
- package/dist/components/atoms/EditField/EditField.stories.js +7 -1
- package/dist/components/atoms/EditField/index.js +17 -10
- package/dist/components/atoms/FeatureTag/FeatureTag.stories.js +7 -1
- package/dist/components/atoms/FeatureTag/index.js +11 -5
- package/dist/components/atoms/GeneralButton/GeneralButton.stories.js +7 -1
- package/dist/components/atoms/GeneralButton/index.js +8 -6
- package/dist/components/atoms/GeneralInput/GeneralInput.stories.js +7 -1
- package/dist/components/atoms/GeneralInput/index.js +24 -20
- package/dist/components/atoms/GeneralTextBox/GeneralTextBox.stories.js +7 -1
- package/dist/components/atoms/GeneralTextBox/index.js +12 -7
- package/dist/components/atoms/GenericModal/GenericModal.stories.js +46 -59
- package/dist/components/atoms/GenericModal/index.js +12 -7
- package/dist/components/atoms/GradientPanel/GradientPanel.stories.js +85 -80
- package/dist/components/atoms/GradientPanel/index.js +11 -7
- package/dist/components/atoms/Graphic/Graphic.stories.js +7 -1
- package/dist/components/atoms/Graphic/index.js +9 -5
- package/dist/components/atoms/LoadImageMenu/LoadImageMenu.stories.js +7 -1
- package/dist/components/atoms/LoadImageMenu/index.js +33 -22
- package/dist/components/atoms/LogoImage/LogoImage.stories.js +7 -1
- package/dist/components/atoms/LogoImage/index.js +8 -6
- package/dist/components/atoms/MenuNotification/MenuNotification.stories.js +7 -1
- package/dist/components/atoms/MenuNotification/index.js +21 -15
- package/dist/components/atoms/MenuProfile/MenuProfile.stories.js +7 -1
- package/dist/components/atoms/MenuProfile/index.js +25 -15
- package/dist/components/atoms/Notification/Notification.stories.js +5 -1
- package/dist/components/atoms/Notification/index.js +15 -9
- package/dist/components/atoms/PriorityFlag/PriorityFlag.stories.js +7 -1
- package/dist/components/atoms/PriorityFlag/index.js +8 -4
- package/dist/components/atoms/ProductImage/ProductImage.stories.js +7 -1
- package/dist/components/atoms/ProductImage/index.js +11 -8
- package/dist/components/atoms/ProductPercentCard/Percent.stories.js +7 -1
- package/dist/components/atoms/ProductPercentCard/index.js +21 -14
- package/dist/components/atoms/ProgressBar/ProgressBar.stories.js +7 -1
- package/dist/components/atoms/ProgressBar/index.js +8 -3
- package/dist/components/atoms/ScreenHeader/ScreenHeader.stories.js +7 -1
- package/dist/components/atoms/ScreenHeader/index.js +9 -3
- package/dist/components/atoms/SideMenuButton/SideMenuButton.stories.js +5 -1
- package/dist/components/atoms/SideMenuButton/index.js +10 -4
- package/dist/components/atoms/StatusTag/StatusTag.stories.js +7 -1
- package/dist/components/atoms/StatusTag/index.js +8 -3
- package/dist/components/atoms/TabSection/TabSection.stories.js +7 -1
- package/dist/components/atoms/TabSection/index.js +8 -3
- package/dist/components/atoms/ValidationPanel/ValidationPanel.stories.js +7 -1
- package/dist/components/atoms/ValidationPanel/index.js +39 -27
- package/dist/components/molecules/AddProvidersAndProducts/AddProvidersAndProducts.stories.js +5 -1
- package/dist/components/molecules/AddProvidersAndProducts/index.js +18 -12
- package/dist/components/molecules/AssignedWork/AssignedWork.stories.js +5 -1
- package/dist/components/molecules/AssignedWork/index.js +36 -30
- package/dist/components/molecules/AvatarAndValidation/AvatarAndValidation.stories.js +7 -1
- package/dist/components/molecules/AvatarAndValidation/index.js +20 -15
- package/dist/components/molecules/CarouselImagesLogin/CarouselImagesLogin.stories.js +5 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +60 -58
- package/dist/components/molecules/EditionActiveImage/EditionActiveImage.stories.js +7 -1
- package/dist/components/molecules/EditionActiveImage/index.js +14 -10
- package/dist/components/molecules/FeaturesBar/FeaturesBar.stories.js +7 -1
- package/dist/components/molecules/FeaturesBar/index.js +11 -9
- package/dist/components/molecules/GalleryElement/GalleryElement.stories.js +7 -1
- package/dist/components/molecules/GalleryElement/index.js +37 -29
- package/dist/components/molecules/GalleryHeader/GalleryHeader.stories.js +7 -1
- package/dist/components/molecules/GalleryHeader/index.js +23 -5
- package/dist/components/molecules/HeaderTop/HeaderTop.stories.js +7 -1
- package/dist/components/molecules/HeaderTop/index.js +10 -7
- package/dist/components/molecules/ImageSelector/ImageSelector.stories.js +7 -1
- package/dist/components/molecules/ImageSelector/index.js +15 -13
- package/dist/components/molecules/Login/Login.stories.js +28 -0
- package/dist/components/molecules/Login/index.js +142 -0
- package/dist/components/molecules/Login/styles.js +20 -0
- package/dist/components/molecules/LoginPasswordStrength/LoginPasswordStrength.stories.js +7 -1
- package/dist/components/molecules/LoginPasswordStrength/index.js +60 -38
- package/dist/components/molecules/ParentComponent/ParentComponent.stories.js +10 -2
- package/dist/components/molecules/ParentComponent/index.js +9 -5
- package/dist/components/molecules/PayMethod/PayMethod.stories.js +7 -1
- package/dist/components/molecules/PayMethod/index.js +38 -33
- package/dist/components/molecules/PlanSelection/PlanSelection.stories.js +7 -1
- package/dist/components/molecules/PlanSelection/index.js +14 -11
- package/dist/components/molecules/ProductNameHeader/ProductNameHeader.stories.js +7 -1
- package/dist/components/molecules/ProductNameHeader/index.js +18 -14
- package/dist/components/molecules/ProductNotification/ProductNotification.stories.js +7 -1
- package/dist/components/molecules/ProductNotification/index.js +12 -9
- package/dist/components/molecules/ProfileHeader/ProfileHeader.stories.js +5 -1
- package/dist/components/molecules/ProfileHeader/index.js +21 -15
- package/dist/components/molecules/SidebarNotification/SidebarNotification.stories.js +5 -1
- package/dist/components/molecules/SidebarNotification/index.js +43 -37
- package/dist/components/molecules/StatusAsignationInfo/StatusAsignationInfo.stories.js +7 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +86 -70
- package/dist/components/molecules/TableHeader/TableHeader.stories.js +7 -1
- package/dist/components/molecules/TableHeader/index.js +12 -8
- package/dist/components/molecules/TableRow/TableRow.stories.js +7 -1
- package/dist/components/molecules/TableRow/index.js +11 -7
- package/dist/components/molecules/TabsMenu/TabsMenu.stories.js +7 -1
- package/dist/components/molecules/TabsMenu/index.js +13 -10
- package/dist/components/molecules/TagAndInput/TagAndInput.stories.js +7 -1
- package/dist/components/molecules/TagAndInput/index.js +13 -11
- package/dist/components/organisms/FullProductNameHeader/FullProductNameHeader.stories.js +7 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +20 -15
- package/dist/components/organisms/FullTabsMenu/FullTabsMenu.stories.js +7 -1
- package/dist/components/organisms/FullTabsMenu/index.js +14 -10
- package/dist/components/organisms/Fullplan/FullPlan.stories.js +7 -1
- package/dist/components/organisms/Fullplan/index.js +23 -15
- package/dist/components/organisms/ImageDataTable/ImageDataTable.stories.js +7 -1
- package/dist/components/organisms/ImageDataTable/index.js +15 -13
- package/dist/components/organisms/ImagePreviewer/ImagePreviewer.stories.js +7 -1
- package/dist/components/organisms/ImagePreviewer/index.js +12 -8
- package/dist/components/organisms/ImagesGroup/index.js +5 -1
- package/dist/components/organisms/InputGroup/InputGroup.stories.js +7 -1
- package/dist/components/organisms/InputGroup/index.js +27 -25
- package/dist/components/organisms/ProductImageModal/ProductImageModal.stories.js +7 -1
- package/dist/components/organisms/ProductImageModal/index.js +47 -38
- package/dist/components/pages/ChangePasswordLogin/ChangePasswordLogin.stories.js +5 -1
- package/dist/components/pages/ChangePasswordLogin/index.js +36 -33
- package/dist/components/pages/CustomerLogin/CustomerLogin.stories.js +52 -47
- package/dist/components/pages/CustomerLogin/index.js +18 -12
- package/dist/components/pages/CustomerPayMethod/CustomerPayMethod.stories.js +36 -28
- package/dist/components/pages/CustomerPayMethod/index.js +18 -12
- package/dist/components/pages/CustomerType/CustomerType.stories.js +21 -22
- package/dist/components/pages/CustomerType/index.js +18 -12
- package/dist/components/pages/EmailResetPassword/EmailResetPassword.stories.js +5 -1
- package/dist/components/pages/EmailResetPassword/index.js +49 -39
- package/dist/components/pages/OnboardPlan/OnboardPlan.stories.js +12 -9
- package/dist/components/pages/OnboardPlan/index.js +18 -12
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +5 -1
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +155 -104
- package/dist/components/pages/RegistrationLoginSecondStep/RegistrationLoginSecondStep.stories.js +5 -1
- package/dist/components/pages/RegistrationLoginSecondStep/index.js +74 -63
- package/dist/components/pages/RegistrationLoginThirdStep/RegistrationLoginThirdStep.stories.js +5 -1
- package/dist/components/pages/RegistrationLoginThirdStep/index.js +79 -65
- package/dist/components/pages/RetailerPlan/RetailerPlan.stories.js +13 -10
- package/dist/components/pages/RetailerPlan/index.js +18 -12
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -1
- package/dist/components/pages/RetailerProductEdition/index.js +54 -49
- package/dist/components/pages/VerificationCodeResetPassword/VerificationCodeResetPassword.stories.js +5 -1
- package/dist/components/pages/VerificationCodeResetPassword/index.js +62 -51
- package/package.json +9 -2
- package/src/components/molecules/CarouselImagesLogin/index.js +34 -37
- package/src/components/molecules/Login/Login.stories.js +11 -0
- package/src/components/molecules/Login/index.js +79 -0
- package/src/components/molecules/Login/styles.js +77 -0
|
@@ -21,41 +21,46 @@ var _TagAndInput = require("../TagAndInput");
|
|
|
21
21
|
|
|
22
22
|
var _masterCardIcon = _interopRequireDefault(require("../../../assets/images/card/masterCardIcon.svg"));
|
|
23
23
|
|
|
24
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
|
|
24
26
|
var PayMethod = function PayMethod(_ref) {
|
|
25
27
|
(0, _objectDestructuringEmpty2.default)(_ref);
|
|
26
|
-
return /*#__PURE__*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
29
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
30
|
+
className: "master",
|
|
31
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
32
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
33
|
+
color: _variables.GlobalColors.s5,
|
|
34
|
+
headerType: "input-name-header",
|
|
35
|
+
text: "Agrega tarjeta de credito"
|
|
36
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Card.Card, {
|
|
37
|
+
cardIcon: _masterCardIcon.default,
|
|
38
|
+
altText: "master-card-icon"
|
|
39
|
+
})]
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
|
+
className: "card-number",
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
43
|
+
inputType: "text",
|
|
44
|
+
label: "Número de tarjeta de credito",
|
|
45
|
+
inputPlaceHolder: "1234 5678 1234 5678"
|
|
46
|
+
})
|
|
47
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
48
|
+
className: "card-data",
|
|
49
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
50
|
+
inputType: "text",
|
|
51
|
+
label: "Nombre del titular",
|
|
52
|
+
inputPlaceHolder: "Bart Simpson"
|
|
53
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
54
|
+
inputType: "text",
|
|
55
|
+
label: "Expira",
|
|
56
|
+
inputPlaceHolder: "22/27"
|
|
57
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
58
|
+
inputType: "text",
|
|
59
|
+
label: "CVV",
|
|
60
|
+
inputPlaceHolder: "***"
|
|
61
|
+
})]
|
|
62
|
+
})]
|
|
63
|
+
}, "pay");
|
|
59
64
|
};
|
|
60
65
|
|
|
61
66
|
exports.PayMethod = PayMethod;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = exports.PlanSelectionDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/molecules/PlanSelection",
|
|
12
18
|
component: _index.PlanSelection
|
|
@@ -14,7 +20,7 @@ var _default = {
|
|
|
14
20
|
exports.default = _default;
|
|
15
21
|
|
|
16
22
|
var Template = function Template(args) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.PlanSelection, (0, _objectSpread2.default)({}, args));
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
var PlanSelectionDefault = Template.bind({});
|
|
@@ -9,6 +9,8 @@ var _styles = require("./styles");
|
|
|
9
9
|
|
|
10
10
|
var _index = require("../../atoms/GeneralTextBox/index");
|
|
11
11
|
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
|
|
12
14
|
var PlanSelection = function PlanSelection(_ref) {
|
|
13
15
|
var planSelection = _ref.planSelection,
|
|
14
16
|
setbuttonActive = _ref.setbuttonActive;
|
|
@@ -22,17 +24,18 @@ var PlanSelection = function PlanSelection(_ref) {
|
|
|
22
24
|
setbuttonActive(true);
|
|
23
25
|
};
|
|
24
26
|
|
|
25
|
-
return /*#__PURE__*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
28
|
+
children: planSelection === null || planSelection === void 0 ? void 0 : planSelection.map(function (plan, index) {
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GeneralTextBox, {
|
|
30
|
+
className: "button-plan",
|
|
31
|
+
onClick: function onClick(e) {
|
|
32
|
+
return setActivePlan(e);
|
|
33
|
+
},
|
|
34
|
+
number: plan === null || plan === void 0 ? void 0 : plan.number,
|
|
35
|
+
name: plan === null || plan === void 0 ? void 0 : plan.name
|
|
36
|
+
}, index);
|
|
37
|
+
})
|
|
38
|
+
});
|
|
36
39
|
};
|
|
37
40
|
|
|
38
41
|
exports.PlanSelection = PlanSelection;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = exports.ProductNameHeaderDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
10
14
|
var _variables = require("../../../global-files/variables");
|
|
11
15
|
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
12
18
|
var _default = {
|
|
13
19
|
title: "Components/molecules/ProductNameHeader",
|
|
14
20
|
component: _index.ProductNameHeader,
|
|
@@ -44,7 +50,7 @@ var _default = {
|
|
|
44
50
|
exports.default = _default;
|
|
45
51
|
|
|
46
52
|
var Template = function Template(args) {
|
|
47
|
-
return /*#__PURE__*/
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProductNameHeader, (0, _objectSpread2.default)({}, args));
|
|
48
54
|
};
|
|
49
55
|
|
|
50
56
|
var ProductNameHeaderDefault = Template.bind({});
|
|
@@ -15,6 +15,8 @@ var _index3 = require("../../atoms/ProgressBar/index");
|
|
|
15
15
|
|
|
16
16
|
var _index4 = require("../../atoms/PriorityFlag/index");
|
|
17
17
|
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
|
|
18
20
|
var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
19
21
|
var productName = _ref.productName,
|
|
20
22
|
statusType = _ref.statusType,
|
|
@@ -22,20 +24,22 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
|
22
24
|
backgroundColor = _ref.backgroundColor,
|
|
23
25
|
priority = _ref.priority,
|
|
24
26
|
date = _ref.date;
|
|
25
|
-
return /*#__PURE__*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
28
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
29
|
+
headerType: "product-name-header",
|
|
30
|
+
text: productName
|
|
31
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
|
|
32
|
+
statusType: statusType
|
|
33
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.ProgressBar, {
|
|
34
|
+
percent: percent,
|
|
35
|
+
backgroundColor: backgroundColor
|
|
36
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.PriorityFlag, {
|
|
37
|
+
priority: priority
|
|
38
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
39
|
+
headerType: "date-header",
|
|
40
|
+
text: date
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
39
43
|
};
|
|
40
44
|
|
|
41
45
|
exports.ProductNameHeader = ProductNameHeader;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = exports.ProductNotificationDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/molecules/ProductNotification",
|
|
12
18
|
component: _index.ProductNotification
|
|
@@ -14,7 +20,7 @@ var _default = {
|
|
|
14
20
|
exports.default = _default;
|
|
15
21
|
|
|
16
22
|
var Template = function Template(args) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProductNotification, (0, _objectSpread2.default)({}, args));
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
var ProductNotificationDefault = Template.bind({});
|
|
@@ -19,6 +19,8 @@ var _MenuNotification = require("../../atoms/MenuNotification");
|
|
|
19
19
|
|
|
20
20
|
var _productNotification = _interopRequireDefault(require("../../../assets/images/productNotification/productNotification.svg"));
|
|
21
21
|
|
|
22
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
+
|
|
22
24
|
var ProductNotification = function ProductNotification(_ref) {
|
|
23
25
|
var notification = _ref.notification;
|
|
24
26
|
|
|
@@ -49,7 +51,7 @@ var ProductNotification = function ProductNotification(_ref) {
|
|
|
49
51
|
notificationType: "productAssignation",
|
|
50
52
|
label: "Agregaron comentario en producto 123"
|
|
51
53
|
}];
|
|
52
|
-
return /*#__PURE__*/
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
53
55
|
onClick: function onClick(e) {
|
|
54
56
|
e.stopPropagation();
|
|
55
57
|
setShowMenu(!showMenu);
|
|
@@ -58,14 +60,15 @@ var ProductNotification = function ProductNotification(_ref) {
|
|
|
58
60
|
document.removeEventListener("click", closeMenu, false);
|
|
59
61
|
}
|
|
60
62
|
},
|
|
61
|
-
className: notification && "new-notification"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
className: notification && "new-notification",
|
|
64
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Avatar, {
|
|
65
|
+
image: _productNotification.default,
|
|
66
|
+
imageType: "big-image",
|
|
67
|
+
altText: "Notification Picture"
|
|
68
|
+
}), showMenu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuNotification.MenuNotification, {
|
|
69
|
+
content: content
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
exports.ProductNotification = ProductNotification;
|
|
@@ -7,10 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.ProfileHeaderDefault = void 0;
|
|
9
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
10
12
|
var _index = require("./index");
|
|
11
13
|
|
|
12
14
|
var _profilePicture = _interopRequireDefault(require("../../../assets/images/profileHeader/profilePicture.svg"));
|
|
13
15
|
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
14
18
|
var _default = {
|
|
15
19
|
title: "Components/molecules/ProfileHeader",
|
|
16
20
|
component: _index.ProfileHeader
|
|
@@ -18,7 +22,7 @@ var _default = {
|
|
|
18
22
|
exports.default = _default;
|
|
19
23
|
|
|
20
24
|
var Template = function Template(args) {
|
|
21
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProfileHeader, (0, _objectSpread2.default)({}, args));
|
|
22
26
|
};
|
|
23
27
|
|
|
24
28
|
var ProfileHeaderDefault = Template.bind({});
|
|
@@ -21,6 +21,8 @@ var _react = require("react");
|
|
|
21
21
|
|
|
22
22
|
var _MenuProfile = require("../../atoms/MenuProfile");
|
|
23
23
|
|
|
24
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
|
|
24
26
|
var ProfileHeader = function ProfileHeader(_ref) {
|
|
25
27
|
var customerProfileImg = _ref.customerProfileImg,
|
|
26
28
|
customerName = _ref.customerName,
|
|
@@ -46,7 +48,7 @@ var ProfileHeader = function ProfileHeader(_ref) {
|
|
|
46
48
|
var MenuInfo = {
|
|
47
49
|
user: "Administrador"
|
|
48
50
|
};
|
|
49
|
-
return /*#__PURE__*/
|
|
51
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
50
52
|
onClick: function onClick(e) {
|
|
51
53
|
e.stopPropagation();
|
|
52
54
|
setShowMenu(!showMenu);
|
|
@@ -54,20 +56,24 @@ var ProfileHeader = function ProfileHeader(_ref) {
|
|
|
54
56
|
if (showMenu) {
|
|
55
57
|
document.removeEventListener("click", closeMenu, false);
|
|
56
58
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
},
|
|
60
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Avatar, {
|
|
61
|
+
image: customerProfileImg,
|
|
62
|
+
imageType: "profile-image",
|
|
63
|
+
altText: "Profile Picture"
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
65
|
+
className: "user-info",
|
|
66
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
67
|
+
headerType: "retailer-name-header",
|
|
68
|
+
text: customerName,
|
|
69
|
+
color: _variables.GlobalColors.original_magenta
|
|
70
|
+
}), customer && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
71
|
+
children: customer
|
|
72
|
+
})]
|
|
73
|
+
}), showMenu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuProfile.MenuProfile, {
|
|
74
|
+
user: MenuInfo.user
|
|
75
|
+
})]
|
|
76
|
+
});
|
|
71
77
|
};
|
|
72
78
|
|
|
73
79
|
exports.ProfileHeader = ProfileHeader;
|
|
@@ -7,10 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.SidebarNotificationDefault = void 0;
|
|
9
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
10
12
|
var _index = require("./index");
|
|
11
13
|
|
|
12
14
|
var _defaultProfileImage = _interopRequireDefault(require("../../../assets/images/defaultImages/defaultProfileImage.svg"));
|
|
13
15
|
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
14
18
|
var _default = {
|
|
15
19
|
title: "Components/molecules/SidebarNotification",
|
|
16
20
|
component: _index.SidebarNotification,
|
|
@@ -31,7 +35,7 @@ var setShowSidebar = function setShowSidebar(value) {
|
|
|
31
35
|
};
|
|
32
36
|
|
|
33
37
|
var Template = function Template(args) {
|
|
34
|
-
return /*#__PURE__*/
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.SidebarNotification, (0, _objectSpread2.default)({}, args));
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
var SidebarNotificationDefault = Template.bind({});
|
|
@@ -23,6 +23,8 @@ var _Notification = require("../../atoms/Notification");
|
|
|
23
23
|
|
|
24
24
|
var _react = require("react");
|
|
25
25
|
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
|
|
26
28
|
var SidebarNotification = function SidebarNotification(_ref) {
|
|
27
29
|
var _ref$array = _ref.array,
|
|
28
30
|
array = _ref$array === void 0 ? [] : _ref$array,
|
|
@@ -63,43 +65,47 @@ var SidebarNotification = function SidebarNotification(_ref) {
|
|
|
63
65
|
return date;
|
|
64
66
|
};
|
|
65
67
|
|
|
66
|
-
return /*#__PURE__*/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
69
|
+
children: [showSidebar && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
70
|
+
id: "side-bar",
|
|
71
|
+
ref: sidebar,
|
|
72
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
73
|
+
className: "notification-header",
|
|
74
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Avatar, {
|
|
75
|
+
image: _productNotification.default,
|
|
76
|
+
imageType: "retailer-image",
|
|
77
|
+
altText: "Notification Picture"
|
|
78
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
79
|
+
headerType: "product-name-header",
|
|
80
|
+
text: "Notificaciones",
|
|
81
|
+
color: "#867586"
|
|
82
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
83
|
+
buttonType: "close-button"
|
|
84
|
+
})]
|
|
85
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
86
|
+
className: "scroll",
|
|
87
|
+
children: array === null || array === void 0 ? void 0 : array.map(function (element, index) {
|
|
88
|
+
var _element$notification;
|
|
89
|
+
|
|
90
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
91
|
+
className: "date-notification",
|
|
92
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
93
|
+
headerType: "input-name-header",
|
|
94
|
+
text: comparisonDate(element === null || element === void 0 ? void 0 : element.dates),
|
|
95
|
+
color: "#6A5880",
|
|
96
|
+
FontFamily: _variables.FontFamily.AvenirNext
|
|
97
|
+
}), element === null || element === void 0 ? void 0 : (_element$notification = element.notifications) === null || _element$notification === void 0 ? void 0 : _element$notification.map(function (notification, index) {
|
|
98
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Notification.Notification, {
|
|
99
|
+
profilePicture: notification === null || notification === void 0 ? void 0 : notification.profilePicture,
|
|
100
|
+
notification: notification === null || notification === void 0 ? void 0 : notification.notification,
|
|
101
|
+
newNotification: notification === null || notification === void 0 ? void 0 : notification.newNotification
|
|
102
|
+
}, index);
|
|
103
|
+
})]
|
|
104
|
+
}, index + "-" + (element === null || element === void 0 ? void 0 : element.dates));
|
|
105
|
+
})
|
|
106
|
+
})]
|
|
107
|
+
}), " "]
|
|
108
|
+
});
|
|
103
109
|
};
|
|
104
110
|
|
|
105
111
|
exports.SidebarNotification = SidebarNotification;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = exports.StatusAsignationInfoDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/molecules/StatusAsignationInfo",
|
|
12
18
|
component: _index.StatusAsignationInfo
|
|
@@ -14,7 +20,7 @@ var _default = {
|
|
|
14
20
|
exports.default = _default;
|
|
15
21
|
|
|
16
22
|
var Template = function Template(args) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StatusAsignationInfo, (0, _objectSpread2.default)({}, args));
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
var StatusAsignationInfoDefault = Template.bind({});
|