contentoh-components-library 21.4.7 → 21.4.9
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/.env.development +1 -5
- package/.env.production +1 -3
- package/dist/assets/fonts/roboto/LICENSE.txt +202 -0
- package/dist/components/atoms/Avatar/index.js +2 -3
- package/dist/components/atoms/Card/index.js +5 -46
- package/dist/components/atoms/Card/styles.js +1 -3
- package/dist/components/atoms/CheckBox/index.js +2 -7
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/molecules/TagAndInput/index.js +1 -1
- package/dist/components/organisms/Chat/Chat.stories.js +8 -27
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +4 -49
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +29 -169
- package/dist/components/pages/ProviderProductEdition/index.js +203 -213
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +60 -85
- package/dist/components/pages/RetailerProductEdition/index.js +303 -315
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/dist/index.js +52 -234
- package/package.json +1 -4
- package/src/components/atoms/Avatar/index.js +2 -8
- package/src/components/atoms/Card/index.js +2 -35
- package/src/components/atoms/Card/styles.js +5 -41
- package/src/components/atoms/CheckBox/index.js +1 -4
- package/src/components/atoms/CheckBox/styles.js +0 -2
- package/src/components/atoms/InputFormatter/styles.js +1 -2
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/TagAndInput/index.js +8 -10
- package/src/components/organisms/Chat/Chat.stories.js +7 -27
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -10
- package/src/components/organisms/Chat/ContentChat/index.js +12 -88
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +4 -46
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/Modal/styles.js +1 -4
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +34 -188
- package/src/components/pages/ProviderProductEdition/index.js +132 -132
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +41 -72
- package/src/components/pages/RetailerProductEdition/index.js +138 -122
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/index.js +0 -15
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
- package/src/components/atoms/ImageCarousel/index.js +0 -103
- package/src/components/atoms/ImageCarousel/styles.js +0 -79
- package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
- package/src/components/atoms/PercentTag/index.js +0 -9
- package/src/components/atoms/PercentTag/styles.js +0 -69
- package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
- package/src/components/atoms/RatingStars/index.js +0 -31
- package/src/components/atoms/RatingStars/styles.js +0 -28
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
- package/src/components/atoms/RetailerCatalog/index.js +0 -49
- package/src/components/atoms/RetailerCatalog/styles.js +0 -30
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
- package/src/components/atoms/RetailerOption/index.js +0 -53
- package/src/components/atoms/RetailerOption/styles.js +0 -41
- package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
- package/src/components/atoms/RetailersList/index.js +0 -20
- package/src/components/atoms/RetailersList/styles.js +0 -19
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
- package/src/components/atoms/UserCatalog/index.js +0 -96
- package/src/components/atoms/UserCatalog/styles.js +0 -24
- package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
- package/src/components/atoms/UserOption/index.js +0 -95
- package/src/components/atoms/UserOption/styles.js +0 -61
- package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
- package/src/components/atoms/UserSelector/index.js +0 -86
- package/src/components/atoms/UserSelector/styles.js +0 -55
- package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
- package/src/components/molecules/GridItem/index.js +0 -97
- package/src/components/molecules/GridItem/styles.js +0 -104
- package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
- package/src/components/molecules/HeaderItem/index.js +0 -26
- package/src/components/molecules/HeaderItem/styles.js +0 -27
- package/src/components/molecules/RowItem/ColumnItem.js +0 -9
- package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
- package/src/components/molecules/RowItem/index.js +0 -45
- package/src/components/molecules/RowItem/styles.js +0 -40
- package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +0 -13
- package/src/components/molecules/StripeCardForm/index.js +0 -42
- package/src/components/molecules/StripeCardForm/paymentForm.js +0 -124
- package/src/components/molecules/StripeCardForm/styles.js +0 -73
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +0 -12
- package/src/components/molecules/StripeCardSelector/index.js +0 -44
- package/src/components/molecules/StripeCardSelector/styles.js +0 -4
- package/src/components/molecules/StripeCardSelector/utils.js +0 -17
- package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
- package/src/components/organisms/GridProducts/index.js +0 -50
- package/src/components/organisms/GridProducts/styles.js +0 -14
- package/src/components/organisms/GridProducts/utils.js +0 -111
- package/src/components/organisms/SideModal/SideModal.stories.js +0 -23
- package/src/components/organisms/SideModal/index.js +0 -50
- package/src/components/organisms/SideModal/styles.js +0 -30
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n\n .required-inputs-message {\n font-family: ", ";\n font-size: 13px;\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n\n p + * {\n margin-top: 10px;\n }\n\n button {\n min-width: fit-content;\n }\n }\n }\n }\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n\n .required-inputs-message {\n font-family: ", ";\n font-size: 13px;\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n\n p + * {\n margin-top: 10px;\n }\n\n button {\n min-width: fit-content;\n }\n }\n }\n }\n .container {\n width: 100%;\n height: 100%;\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n"])), function (_ref) {
|
|
19
19
|
var headerTop = _ref.headerTop;
|
|
20
20
|
return headerTop;
|
|
21
21
|
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
@@ -7,16 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.RetailerProductEditionDefault = void 0;
|
|
9
9
|
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
|
11
|
-
|
|
12
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
13
11
|
|
|
14
12
|
var _index = require("./index");
|
|
15
13
|
|
|
16
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
15
|
|
|
18
|
-
var _productSelected;
|
|
19
|
-
|
|
20
16
|
var _default = {
|
|
21
17
|
title: "Components/pages/RetailerProductEdition",
|
|
22
18
|
component: _index.RetailerProductEdition
|
|
@@ -35,104 +31,83 @@ RetailerProductEditionDefault.args = {
|
|
|
35
31
|
"Ficha técnica": false,
|
|
36
32
|
Imágenes: false
|
|
37
33
|
},
|
|
38
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
39
|
-
productSelected:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyYjU3MjZlMy04MjM2LTRmYzMtODBkMi05NWVmYmU4ODdjOTYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MjAxNjI5MSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MjAxOTg5MSwiaWF0IjoxNjgyMDE2MjkxLCJlbWFpbCI6ImV0Y0Bjb250ZW50b2guY29tIn0.SCj_yp1NkGCED59JHoDSdFAOakIOvZVeC0yLwt9z0BtenDXlU0m5cUofQQonnWPM8Q70yMFEkyMGI9kQs_fz1gxrmrSc2FGefn3B_1Vymq3pQ_S1JrY_syYf88m_GtJKOywEnE6--Ef9lZhFBFKGtqRJ4H8JBa9Xb96uCjAKyEMCSURDlw37pk2RQdULlZPj17Zb6Xrqi2lwrhpI1ByptX3__UoTiZklnTXwIxM4JdU7yuhXLznaEH8NOSd2Jw-CV6FCUbYBHlnRYBQg7B5mwyVKtDQm6QpRgBTBPCvljJJpFjRKUcnon8WZiFXx1qVbkWPt2vCT1TZqqoSLdlP6lA",
|
|
35
|
+
productSelected: {
|
|
36
|
+
services: {
|
|
37
|
+
datasheets: 1,
|
|
38
|
+
descriptions: 1,
|
|
39
|
+
images: 1
|
|
40
|
+
},
|
|
41
|
+
orderId: 15275,
|
|
42
|
+
status: "AC",
|
|
43
|
+
datasheet_status: "AC",
|
|
43
44
|
prio: "none",
|
|
44
45
|
version: 3,
|
|
45
|
-
description_status: "
|
|
46
|
-
images_status: "
|
|
46
|
+
description_status: "AC",
|
|
47
|
+
images_status: "AC",
|
|
47
48
|
statusByRetailer: {
|
|
48
|
-
|
|
49
|
-
datasheet: "
|
|
50
|
-
description: "
|
|
51
|
-
images: "
|
|
52
|
-
},
|
|
53
|
-
5: {
|
|
54
|
-
datasheet: "RA/AC",
|
|
55
|
-
description: "RA/AC",
|
|
56
|
-
images: "RA/AC"
|
|
57
|
-
},
|
|
58
|
-
6: {
|
|
59
|
-
description: "RA/AC",
|
|
60
|
-
images: "RA/AC",
|
|
61
|
-
datasheet: "RA/AC"
|
|
62
|
-
},
|
|
63
|
-
12: {
|
|
64
|
-
datasheet: "RA/AC",
|
|
65
|
-
description: "RA/AC",
|
|
66
|
-
images: "RA/AC"
|
|
67
|
-
},
|
|
68
|
-
17: {
|
|
69
|
-
datasheet: "RA/AC",
|
|
70
|
-
description: "RA/AC",
|
|
71
|
-
images: "RA/AC"
|
|
49
|
+
34: {
|
|
50
|
+
datasheet: "AC",
|
|
51
|
+
description: "AC",
|
|
52
|
+
images: "AC"
|
|
72
53
|
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
54
|
+
},
|
|
55
|
+
article: {
|
|
56
|
+
id_article: 39485,
|
|
57
|
+
id_category: "11",
|
|
58
|
+
name: "Mix de nueces",
|
|
59
|
+
upc: "7543453453",
|
|
60
|
+
timestamp: "2023-07-14T21:02:54.000Z",
|
|
61
|
+
id_user: 28,
|
|
62
|
+
status: "NULL",
|
|
63
|
+
active: 1,
|
|
64
|
+
company_id: 1,
|
|
65
|
+
company_name: "GRUPO BRAHMA",
|
|
66
|
+
country: "México",
|
|
67
|
+
id_order: 15275,
|
|
68
|
+
id_datasheet_especialist: 54,
|
|
69
|
+
id_datasheet_facilitator: 52,
|
|
70
|
+
id_description_especialist: 54,
|
|
71
|
+
id_description_facilitator: 52,
|
|
72
|
+
id_images_especialist: 55,
|
|
73
|
+
id_images_facilitator: 53,
|
|
74
|
+
id_auditor: 37,
|
|
75
|
+
id_recepcionist: null,
|
|
76
|
+
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
77
|
+
missingAttributes: 0,
|
|
78
|
+
missingDescriptions: 0,
|
|
79
|
+
missingImages: 0
|
|
80
|
+
},
|
|
81
|
+
retailers: [{
|
|
82
|
+
id: 34,
|
|
83
|
+
name: "San Pablo"
|
|
84
|
+
}],
|
|
91
85
|
country: "México",
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
id_datasheet_facilitator: 52,
|
|
95
|
-
id_description_especialist: 232,
|
|
96
|
-
id_description_facilitator: 52,
|
|
97
|
-
id_images_especialist: 196,
|
|
98
|
-
id_images_facilitator: 53,
|
|
99
|
-
id_auditor: 195,
|
|
100
|
-
id_recepcionist: null,
|
|
101
|
-
category: "Ropa Interior Dama|Ropa Interior|Ropa Interior",
|
|
102
|
-
missingAttributes: 0,
|
|
103
|
-
missingDescriptions: 0,
|
|
104
|
-
missingImages: 0
|
|
105
|
-
}), (0, _defineProperty2.default)(_productSelected, "retailers", [{
|
|
106
|
-
id: 70,
|
|
107
|
-
name: "Bodega Aurrera"
|
|
108
|
-
}]), _productSelected),
|
|
86
|
+
upc: "7543453453"
|
|
87
|
+
},
|
|
109
88
|
location: {
|
|
110
89
|
product: {
|
|
111
|
-
articleId:
|
|
112
|
-
versionId:
|
|
113
|
-
},
|
|
114
|
-
state: {
|
|
115
|
-
withChat: true,
|
|
116
|
-
chatType: "product_status"
|
|
90
|
+
articleId: 39290,
|
|
91
|
+
versionId: 7
|
|
117
92
|
}
|
|
118
93
|
},
|
|
119
94
|
user: {
|
|
120
|
-
id_user:
|
|
121
|
-
name: "
|
|
122
|
-
last_name: "",
|
|
123
|
-
email: "
|
|
124
|
-
position: "",
|
|
95
|
+
id_user: 37,
|
|
96
|
+
name: "José",
|
|
97
|
+
last_name: "Castañeda",
|
|
98
|
+
email: "ismael97lopez@gmail.com",
|
|
99
|
+
position: "Auditor",
|
|
125
100
|
telephone: "",
|
|
126
|
-
country: "",
|
|
101
|
+
country: "México",
|
|
127
102
|
id_company: 2,
|
|
128
|
-
id_cognito: "
|
|
103
|
+
id_cognito: "9a213128-6482-4c16-a4b6-6e64f225b1bd",
|
|
129
104
|
birth_Date: null,
|
|
130
105
|
about_me: "",
|
|
131
106
|
zip_code: "",
|
|
132
107
|
address: "",
|
|
133
108
|
job: "",
|
|
134
109
|
id_stripe: "",
|
|
135
|
-
id_role:
|
|
110
|
+
id_role: 6,
|
|
136
111
|
active: 1,
|
|
137
112
|
is_retailer: 0,
|
|
138
113
|
email_notify: 1,
|
|
@@ -148,6 +123,6 @@ RetailerProductEditionDefault.args = {
|
|
|
148
123
|
products_limit: "3",
|
|
149
124
|
type: "PyMES"
|
|
150
125
|
},
|
|
151
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
126
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1691175586149"
|
|
152
127
|
}
|
|
153
128
|
};
|